@doubao-dev/cli 0.0.34 → 0.0.36

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.
Files changed (142) hide show
  1. package/dist/1232.js +1 -0
  2. package/dist/1264.js +1 -0
  3. package/dist/1611.js +2 -0
  4. package/dist/2232.js +60 -0
  5. package/dist/2507.js +1 -0
  6. package/dist/275.js +5 -8
  7. package/dist/2932.js +1 -1
  8. package/dist/4525.js +1 -1
  9. package/dist/4880.js +1 -1
  10. package/dist/4931.js +1 -1
  11. package/dist/{3688.js → 5887.js} +3 -3
  12. package/dist/6438.js +140 -0
  13. package/dist/6976.js +280 -0
  14. package/dist/{8981.js.LICENSE.txt → 6976.js.LICENSE.txt} +108 -0
  15. package/dist/7410.js +1 -2
  16. package/dist/@byted-doubao-apps/create.js +1 -1
  17. package/dist/@byted-doubao-apps/kit.js +1 -1
  18. package/dist/@byted-doubao-apps/login.js +2 -2
  19. package/dist/@byted-doubao-apps/login~1.js +2 -2
  20. package/dist/@byted-doubao-apps/template-empty/package.json +3 -3
  21. package/dist/@byted-doubao-apps/template-starter/package.json +3 -3
  22. package/dist/@byted-hdt/cli.js +1 -1
  23. package/dist/@inquirer/select.js +1 -1
  24. package/dist/{assets/web-sdk-debugger/static/wasm/eaf690f2cd.module.wasm → @lynx-js/static/wasm/77fb77f77f.module.wasm} +0 -0
  25. package/dist/@lynx-js/{web-core-canary.js → web-core.js} +2 -2
  26. package/dist/app.js +1 -1
  27. package/dist/assets/web-sdk-debugger/__doubao_web_sdk_native_modules/applet-bridge-module-core.js +1 -1
  28. package/dist/assets/web-sdk-debugger/index.html +1 -1
  29. package/dist/assets/web-sdk-debugger/preact-devtools/index.js +4 -1
  30. package/dist/assets/web-sdk-debugger/static/css/index.ef5d8bc5ad.css +1 -0
  31. package/dist/assets/web-sdk-debugger/static/js/{682.de47e82f6b.js → 426.53c43a8594.js} +2 -2
  32. package/dist/assets/web-sdk-debugger/static/js/479.26e0b1d922.js +1829 -0
  33. package/dist/assets/web-sdk-debugger/static/js/async/503.259fed5610.js +1 -0
  34. package/dist/assets/web-sdk-debugger/static/js/async/{legacy-wasm-js.bacc8b5564.js → legacy-wasm-js.9b9367f818.js} +2 -2
  35. package/dist/assets/web-sdk-debugger/static/js/async/lynx-core-chunk.7f5e94dfae.js +5 -0
  36. package/dist/assets/web-sdk-debugger/static/js/async/web-core-main-chunk.f78260697f.js +1 -0
  37. package/dist/assets/web-sdk-debugger/static/js/async/web-core-markup-encoder.33c43c480e.js +4 -0
  38. package/dist/assets/web-sdk-debugger/static/js/async/web-core-template-loader-thread.ba290b32d7.js +4 -0
  39. package/dist/assets/web-sdk-debugger/static/js/async/web-core-worker-chunk.9a5989b104.js +1 -0
  40. package/dist/assets/web-sdk-debugger/static/js/async/web-elements.3fbd53918e.js +365 -0
  41. package/dist/assets/web-sdk-debugger/static/js/async/xmarkdown-deps.efd0ffb051.js +5 -0
  42. package/dist/assets/web-sdk-debugger/static/js/async/{xmarkdown-deps.3ea5672b2c.js.LICENSE.txt → xmarkdown-deps.efd0ffb051.js.LICENSE.txt} +1 -1
  43. package/dist/assets/web-sdk-debugger/static/js/index.b6e5c76345.js +44 -0
  44. package/dist/assets/web-sdk-debugger/static/js/lib-polyfill.c91181f230.js +1 -0
  45. package/dist/assets/web-sdk-debugger/static/wasm/{69a8ba8eb9.module.wasm → 4c402c7981.module.wasm} +0 -0
  46. package/dist/assets/web-sdk-debugger/static/wasm/{03b02f9e5a.module.wasm → 72aaf7d0aa.module.wasm} +0 -0
  47. package/dist/{@lynx-js/static/wasm/eaf690f2cd.module.wasm → assets/web-sdk-debugger/static/wasm/77fb77f77f.module.wasm} +0 -0
  48. package/dist/assets/web-sdk-debugger/wsd/doubao-apps-api.template.js +0 -0
  49. package/dist/assets/web-sdk-debugger/wsd/doubao-apps-framework.template.js +0 -0
  50. package/dist/assets/web-sdk-debugger/wsd/doubao-apps-react-dev.template.js +0 -0
  51. package/dist/assets/web-sdk-debugger/wsd/doubao-apps-react.template.js +0 -0
  52. package/dist/browser.js +1 -1
  53. package/dist/build.js +1 -1
  54. package/dist/build~1.js +10 -10
  55. package/dist/check.js +1 -1
  56. package/dist/client.js +1 -0
  57. package/dist/client~1.js +1 -0
  58. package/dist/components-loader.js +1 -1
  59. package/dist/demo-server.js +2 -2
  60. package/dist/demo.js +2 -2
  61. package/dist/dev-config.js +2 -2
  62. package/dist/dev-shell.js +1 -1
  63. package/dist/dev.js +19 -16
  64. package/dist/explore.js +10 -0
  65. package/dist/gen-explore.js +1 -1
  66. package/dist/gen-trajectory.js +1 -1
  67. package/dist/info.js +2 -2
  68. package/dist/init.js +4 -4
  69. package/dist/ink.js +1 -1
  70. package/dist/inquirer.js +1 -1
  71. package/dist/json-file.js +2 -2
  72. package/dist/legacy-status.js +1 -1
  73. package/dist/legacy-upload.js +1 -1
  74. package/dist/lepus.js +1 -1
  75. package/dist/login.js +2 -1
  76. package/dist/main.js +1 -1
  77. package/dist/{manifest-mcp-config.js → manifest-headers.js} +1 -1
  78. package/dist/ora.js +1 -1
  79. package/dist/portal.js +1 -1
  80. package/dist/project-layout.js +1 -1
  81. package/dist/project.js +1 -1
  82. package/dist/prompt.js +8 -8
  83. package/dist/prompts.js +1 -1
  84. package/dist/qrcode.js +1 -0
  85. package/dist/report.js +1 -1
  86. package/dist/run-registry.js +1 -1
  87. package/dist/run.js +321 -321
  88. package/dist/sandbox.js +1 -1
  89. package/dist/scan.js +1 -1
  90. package/dist/sdk.js +192 -59
  91. package/dist/sdk~1.js +66 -58
  92. package/dist/server.js +10 -10
  93. package/dist/skill.js +1 -1
  94. package/dist/skills.js +1 -1
  95. package/dist/skills~1.js +1 -1
  96. package/dist/status.js +1 -1
  97. package/dist/status~1.js +2 -2
  98. package/dist/stop.js +1 -1
  99. package/dist/sync.js +1 -1
  100. package/dist/trajectory.js +3 -0
  101. package/dist/update.js +1 -1
  102. package/dist/upgrade.js +1 -1
  103. package/dist/workspace.js +1 -1
  104. package/dist/yaml.js +1 -1
  105. package/package.json +7 -7
  106. package/skills/doubao-agentic-service-development/references/frontend/doubao-agentic-service-api/02-/347/263/273/347/273/237.md +2 -2
  107. package/skills/doubao-agentic-service-development/references/frontend/doubao-agentic-service-api/06-/350/267/257/347/224/261.md +4 -0
  108. package/skills/doubao-agentic-service-development/references/frontend/doubao-agentic-service-api/07-/347/225/214/351/235/242.md +8 -0
  109. package/skills/doubao-agentic-service-development/references/frontend/doubao-agentic-service-api/26-/345/237/272/347/241/200/344/277/241/346/201/257.md +2 -1
  110. package/skills/doubao-agentic-service-development/references/frontend/doubao-agentic-service-api/33-/345/261/217/345/271/225.md +124 -8
  111. package/skills/doubao-agentic-service-development/references/frontend/doubao-agentic-service-api/groups.md +1 -1
  112. package/skills/doubao-agentic-service-development/references/frontend/doubao-agentic-service-api/quick-reference.md +2 -1
  113. package/skills/doubao-agentic-service-development/references/frontend/examples/page-widget-basics.md +1 -0
  114. package/skills/doubao-agentic-service-development/references/frontend/guides/client-tools-and-events.md +209 -0
  115. package/skills/doubao-agentic-service-development/references/frontend/guides/component-development.md +7 -1
  116. package/skills/doubao-agentic-service-development/references/frontend/guides/debugger-mcp.md +1 -1
  117. package/skills/doubao-agentic-service-development/references/frontend/widget-templates/overview.md +13 -9
  118. package/skills/doubao-agentic-service-development/references/frontend/widget-templates/props.md +26 -1
  119. package/skills/doubao-agentic-service-development/references/frontend-dev.md +2 -0
  120. package/dist/2168.js +0 -60
  121. package/dist/318.js +0 -1
  122. package/dist/3974.js +0 -151
  123. package/dist/6427.js +0 -126
  124. package/dist/7417.js +0 -204
  125. package/dist/7417.js.LICENSE.txt +0 -107
  126. package/dist/7945.js +0 -1
  127. package/dist/8981.js +0 -78
  128. package/dist/assets/web-sdk-debugger/static/css/index.7c65607402.css +0 -1
  129. package/dist/assets/web-sdk-debugger/static/js/670.8a8f0f7d57.js +0 -1829
  130. package/dist/assets/web-sdk-debugger/static/js/async/503.cf61731bba.js +0 -1
  131. package/dist/assets/web-sdk-debugger/static/js/async/lynx-core-chunk.afc1ded023.js +0 -5
  132. package/dist/assets/web-sdk-debugger/static/js/async/web-core-main-chunk.7fe9af852c.js +0 -1
  133. package/dist/assets/web-sdk-debugger/static/js/async/web-core-markup-encoder.f81d6d2cae.js +0 -4
  134. package/dist/assets/web-sdk-debugger/static/js/async/web-core-template-loader-thread.4a49f8a286.js +0 -4
  135. package/dist/assets/web-sdk-debugger/static/js/async/web-core-worker-chunk.c315fd6753.js +0 -1
  136. package/dist/assets/web-sdk-debugger/static/js/async/web-elements.43d1e29387.js +0 -365
  137. package/dist/assets/web-sdk-debugger/static/js/async/xmarkdown-deps.3ea5672b2c.js +0 -5
  138. package/dist/assets/web-sdk-debugger/static/js/index.9f626ba3a2.js +0 -44
  139. package/dist/assets/web-sdk-debugger/static/js/lib-polyfill.9daa7c863e.js +0 -1
  140. package/dist/simulator-client.js +0 -1
  141. /package/dist/{7410.js.LICENSE.txt → 1611.js.LICENSE.txt} +0 -0
  142. /package/dist/assets/web-sdk-debugger/static/js/{670.8a8f0f7d57.js.LICENSE.txt → 479.26e0b1d922.js.LICENSE.txt} +0 -0
@@ -0,0 +1 @@
1
+ "use strict";(globalThis.rspackChunk_byted_doubao_apps_web_sdk_debugger_app||=[]).push([[493],{70860(r,t,e){var n=e(68039),o=e(25229),a=TypeError;r.exports=function(r){if(n(r))return r;throw new a(o(r)+" is not a function")}},11928(r,t,e){var n=e(74694).has;r.exports=function(r){return n(r),r}},30216(r,t,e){var n=e(30643),o=String,a=TypeError;r.exports=function(r){if(n(r))return r;throw new a("Can't set "+o(r)+" as a prototype")}},47234(r,t,e){var n=e(58260).has;r.exports=function(r){return n(r),r}},63145(r){var t=TypeError;r.exports=function(r){if("string"==typeof r)return r;throw new t("Argument is not a string")}},38398(r,t,e){var n=e(96717),o=new n.WeakMap,a=n.set,i=n.remove;r.exports=function(r){return a(o,r,1),i(o,r),r}},60175(r,t,e){var n=e(96717).has;r.exports=function(r){return n(r),r}},25969(r,t,e){var n=e(48219).has;r.exports=function(r){return n(r),r}},1643(r,t,e){var n=e(75869),o=e(12326),a=e(33919).f,i=n("unscopables"),c=Array.prototype;void 0===c[i]&&a(c,i,{configurable:!0,value:o(null)}),r.exports=function(r){c[i][r]=!0}},50473(r,t,e){var n=e(66227),o=TypeError;r.exports=function(r,t){if(n(t,r))return r;throw new o("Incorrect invocation")}},88302(r,t,e){var n=e(48188),o=String,a=TypeError;r.exports=function(r){if(void 0===r||n(r))return r;throw new a(o(r)+" is not an object or undefined")}},46177(r,t,e){var n=e(48188),o=String,a=TypeError;r.exports=function(r){if(n(r))return r;throw new a(o(r)+" is not an object")}},36476(r,t,e){var n=e(73485),o=TypeError;r.exports=function(r){if("Uint8Array"===n(r))return r;throw new o("Argument is not an Uint8Array")}},53869(r){r.exports="u">typeof ArrayBuffer&&"u">typeof DataView},82144(r,t,e){var n=e(6974),o=e(76572),a=e(74026),i=n.ArrayBuffer,c=n.TypeError;r.exports=i&&o(i.prototype,"byteLength","get")||function(r){if("ArrayBuffer"!==a(r))throw new c("ArrayBuffer expected");return r.byteLength}},80408(r,t,e){var n=e(6974),o=e(53869),a=e(82144),i=n.DataView;r.exports=function(r){if(!o||0!==a(r))return!1;try{return new i(r),!1}catch(r){return!0}}},30315(r,t,e){var n=e(80408),o=TypeError;r.exports=function(r){if(n(r))throw new o("ArrayBuffer is detached");return r}},2982(r,t,e){var n=e(6974),o=e(52782),a=e(76572),i=e(26722),c=e(30315),u=e(82144),s=e(47541),f=e(75698),p=n.structuredClone,h=n.ArrayBuffer,l=n.DataView,v=Math.min,d=h.prototype,y=l.prototype,g=o(d.slice),w=a(d,"resizable","get"),b=a(d,"maxByteLength","get"),m=o(y.getInt8),x=o(y.setInt8);r.exports=(f||s)&&function(r,t,e){var n,o=u(r),a=void 0===t?o:i(t),d=!w||!w(r);if(c(r),f&&(r=p(r,{transfer:[r]}),o===a&&(e||d)))return r;if(o>=a&&(!e||d))n=g(r,0,a);else{n=new h(a,e&&!d&&b?{maxByteLength:b(r)}:void 0);for(var y=new l(r),E=new l(n),A=v(a,o),S=0;S<A;S++)x(E,S,m(y,S))}return f||s(r),n}},97882(r,t,e){var n,o,a,i=e(53869),c=e(19058),u=e(6974),s=e(68039),f=e(48188),p=e(76151),h=e(73485),l=e(25229),v=e(80081),d=e(59430),y=e(7108),g=e(66227),w=e(69681),b=e(87261),m=e(75869),x=e(702),E=e(66935),A=E.enforce,S=E.get,T=u.Int8Array,O=T&&T.prototype,R=u.Uint8ClampedArray,I=R&&R.prototype,k=T&&w(T),_=O&&w(O),M=Object.prototype,D=u.TypeError,j=m("toStringTag"),C=x("TYPED_ARRAY_TAG"),P="TypedArrayConstructor",U=i&&!!b&&"Opera"!==h(u.opera),B=!1,F={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},N={BigInt64Array:8,BigUint64Array:8},L=function(r){var t=w(r);if(f(t)){var e=S(t);return e&&p(e,P)?e[P]:L(t)}},z=function(r){if(!f(r))return!1;var t=h(r);return p(F,t)||p(N,t)};for(n in F)(a=(o=u[n])&&o.prototype)?A(a)[P]=o:U=!1;for(n in N)(a=(o=u[n])&&o.prototype)&&(A(a)[P]=o);if((!U||!s(k)||k===Function.prototype)&&(k=function(){throw new D("Incorrect invocation")},U))for(n in F)u[n]&&b(u[n],k);if((!U||!_||_===M)&&(_=k.prototype,U))for(n in F)u[n]&&b(u[n].prototype,_);if(U&&w(I)!==_&&b(I,_),c&&!p(_,j))for(n in B=!0,y(_,j,{configurable:!0,get:function(){return f(this)?this[C]:void 0}}),F)u[n]&&v(u[n],C,n);r.exports={NATIVE_ARRAY_BUFFER_VIEWS:U,TYPED_ARRAY_TAG:B&&C,aTypedArray:function(r){if(z(r))return r;throw new D("Target is not a typed array")},aTypedArrayConstructor:function(r){if(s(r)&&(!b||g(k,r)))return r;throw new D(l(r)+" is not a typed array constructor")},exportTypedArrayMethod:function(r,t,e,n){if(c){if(e)for(var o in F){var a=u[o];if(a&&p(a.prototype,r))try{delete a.prototype[r]}catch(e){try{a.prototype[r]=t}catch(r){}}}(!_[r]||e)&&d(_,r,e?t:U&&O[r]||t,n)}},exportTypedArrayStaticMethod:function(r,t,e){var n,o;if(c){if(b){if(e){for(n in F)if((o=u[n])&&p(o,r))try{delete o[r]}catch(r){}}if(k[r]&&!e)return;try{return d(k,r,e?t:U&&k[r]||t)}catch(r){}}for(n in F)(o=u[n])&&(!o[r]||e)&&d(o,r,t)}},getTypedArrayConstructor:L,isView:function(r){if(!f(r))return!1;var t=h(r);return"DataView"===t||p(F,t)||p(N,t)},isTypedArray:z,TypedArray:k,TypedArrayPrototype:_}},11372(r,t,e){var n=e(92956);r.exports=function(r,t,e){for(var o=0,a=arguments.length>2?e:n(t),i=new r(a);a>o;)i[o]=t[o++];return i}},18663(r,t,e){var n=e(92254),o=e(52782),a=e(14461),i=e(72095),c=e(11611),u=e(92956),s=e(12326),f=e(11372),p=Array,h=o([].push);r.exports=function(r,t,e,o){for(var l,v,d,y=i(r),g=a(y),w=n(t,e),b=s(null),m=u(g),x=0;m>x;x++)(v=c(w(d=g[x],x,y)))in b?h(b[v],d):b[v]=[d];if(o&&(l=o(y))!==p)for(v in b)b[v]=f(l,b[v]);return b}},25383(r,t,e){var n=e(41555),o=e(3108),a=e(92956),i=function(r){return function(t,e,i){var c,u=n(t),s=a(u);if(0===s)return!r&&-1;var f=o(i,s);if(r&&e!=e){for(;s>f;)if((c=u[f++])!=c)return!0}else for(;s>f;f++)if((r||f in u)&&u[f]===e)return r||f||0;return!r&&-1}};r.exports={includes:i(!0),indexOf:i(!1)}},61857(r,t,e){var n=e(92254),o=e(14461),a=e(72095),i=e(92956),c=function(r){var t=1===r;return function(e,c,u){for(var s,f=a(e),p=o(f),h=i(p),l=n(c,u);h-- >0;)if(l(s=p[h],h,f))switch(r){case 0:return s;case 1:return h}return t?-1:void 0}};r.exports={findLast:c(0),findLastIndex:c(1)}},23831(r,t,e){var n=e(92254),o=e(52782),a=e(14461),i=e(72095),c=e(92956),u=e(971),s=o([].push),f=function(r){var t=1===r,e=2===r,o=3===r,f=4===r,p=6===r,h=7===r,l=5===r||p;return function(v,d,y,g){for(var w,b,m=i(v),x=a(m),E=c(x),A=n(d,y),S=0,T=g||u,O=t?T(v,E):e||h?T(v,0):void 0;E>S;S++)if((l||S in x)&&(b=A(w=x[S],S,m),r))if(t)O[S]=b;else if(b)switch(r){case 3:return!0;case 5:return w;case 6:return S;case 2:s(O,w)}else switch(r){case 4:return!1;case 7:s(O,w)}return p?-1:o||f?f:O}};r.exports={forEach:f(0),map:f(1),filter:f(2),some:f(3),every:f(4),find:f(5),findIndex:f(6),filterReject:f(7)}},27021(r,t,e){var n=e(19058),o=e(57958),a=TypeError,i=Object.getOwnPropertyDescriptor;r.exports=n&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(r){return r instanceof TypeError}}()?function(r,t){if(o(r)&&!i(r,"length").writable)throw new a("Cannot set read only .length");return r.length=t}:function(r,t){return r.length=t}},45051(r,t,e){var n=e(57958),o=e(59811),a=e(48188),i=e(75869)("species"),c=Array;r.exports=function(r){var t;return n(r)&&(o(t=r.constructor)&&(t===c||n(t.prototype))?t=void 0:a(t)&&null===(t=t[i])&&(t=void 0)),void 0===t?c:t}},971(r,t,e){var n=e(45051);r.exports=function(r,t){return new(n(r))(0===t?0:t)}},4062(r,t,e){var n=e(92956);r.exports=function(r,t){for(var e=n(r),o=new t(e),a=0;a<e;a++)o[a]=r[e-a-1];return o}},80099(r,t,e){var n=e(52782),o=e(70860),a=e(3563),i=e(92956),c=e(72095),u=e(74694),s=e(58881),f=u.Map,p=u.has,h=u.set,l=n([].push);r.exports=function(r){var t,e,n,u=c(this),v=i(u),d=[],y=new f,g=a(r)?function(r){return r}:o(r);for(t=0;t<v;t++)p(y,n=g(e=u[t]))||h(y,n,e);return s(y,function(r){l(d,r)}),d}},49718(r,t,e){var n=e(92956),o=e(65825),a=RangeError;r.exports=function(r,t,e,i){var c=n(r),u=o(e),s=u<0?c+u:u;if(s>=c||s<0)throw new a("Incorrect index");for(var f=new t(c),p=0;p<c;p++)f[p]=p===s?i:r[p];return f}},25274(r,t,e){var n=e(33179),o=e(72485),a=e(25112);r.exports=function(r,t,e,i){try{var c=a(r,"return");if(c)return o("Promise").resolve(n(c,r)).then(function(){t(e)},function(r){i(r)})}catch(r){return i(r)}t(e)}},37693(r,t,e){var n=e(33179),o=e(70860),a=e(46177),i=e(48188),c=e(61959),u=e(72485),s=e(86845),f=e(25274),p=function(r){var t=0===r,e=1===r,p=2===r,h=3===r;return function(r,l,v){a(r);var d=void 0!==l;(d||!t)&&o(l);var y=s(r),g=u("Promise"),w=y.iterator,b=y.next,m=0;return new g(function(r,o){var u=function(r){f(w,o,r,o)},s=function(){try{if(d)try{c(m)}catch(r){u(r)}g.resolve(a(n(b,w))).then(function(n){try{if(a(n).done)t?(v.length=m,r(v)):r(!h&&(p||void 0));else{var c=n.value;try{if(d){var y=l(c,m),b=function(n){if(e)s();else if(p)n?s():f(w,r,!1,o);else if(t)try{v[m++]=n,s()}catch(r){u(r)}else n?f(w,r,h||c,o):s()};i(y)?g.resolve(y).then(b,u):b(y)}else v[m++]=c,s()}catch(r){u(r)}}}catch(r){o(r)}},o)}catch(r){o(r)}};s()})}};r.exports={toArray:p(0),forEach:p(1),every:p(2),some:p(3),find:p(4)}},1036(r,t,e){var n,o,a=e(6974),i=e(66851),c=e(68039),u=e(12326),s=e(69681),f=e(59430),p=e(75869),h=e(81201),l="USE_FUNCTION_CONSTRUCTOR",v=p("asyncIterator"),d=a.AsyncIterator,y=i.AsyncIteratorPrototype;if(y)n=y;else if(c(d))n=d.prototype;else if(i[l]||a[l])try{o=s(s(s(Function("return async function*(){}()")()))),s(o)===Object.prototype&&(n=o)}catch(r){}n?h&&(n=u(n)):n={},c(n[v])||f(n,v,function(){return this}),r.exports=n},38634(r){var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",e=t+"+/",n=t+"-_",o=function(r){for(var t={},e=0;e<64;e++)t[r.charAt(e)]=e;return t};r.exports={i2c:e,c2i:o(e),i2cUrl:n,c2iUrl:o(n)}},75017(r,t,e){var n=e(46177),o=e(55053);r.exports=function(r,t,e,a){try{return a?t(n(e)[0],e[1]):t(e)}catch(t){o(r,"throw",t)}}},74026(r,t,e){var n=e(52782),o=n({}.toString),a=n("".slice);r.exports=function(r){return a(o(r),8,-1)}},73485(r,t,e){var n=e(23886),o=e(68039),a=e(74026),i=e(75869)("toStringTag"),c=Object,u="Arguments"===a(function(){return arguments}()),s=function(r,t){try{return r[t]}catch(r){}};r.exports=n?a:function(r){var t,e,n;return void 0===r?"Undefined":null===r?"Null":"string"==typeof(e=s(t=c(r),i))?e:u?a(t):"Object"===(n=a(t))&&o(t.callee)?"Arguments":n}},18770(r,t,e){var n=e(76151),o=e(73517),a=e(43069),i=e(33919);r.exports=function(r,t,e){for(var c=o(t),u=i.f,s=a.f,f=0;f<c.length;f++){var p=c[f];n(r,p)||e&&n(e,p)||u(r,p,s(t,p))}}},1109(r,t,e){r.exports=!e(59293)(function(){function r(){}return r.prototype.constructor=null,Object.getPrototypeOf(new r)!==r.prototype})},46827(r){r.exports=function(r,t){return{value:r,done:t}}},80081(r,t,e){var n=e(19058),o=e(33919),a=e(56582);r.exports=n?function(r,t,e){return o.f(r,t,a(1,e))}:function(r,t,e){return r[t]=e,r}},56582(r){r.exports=function(r,t){return{enumerable:!(1&r),configurable:!(2&r),writable:!(4&r),value:t}}},84634(r,t,e){var n=e(19058),o=e(33919),a=e(56582);r.exports=function(r,t,e){n?o.f(r,t,a(0,e)):r[t]=e}},7108(r,t,e){var n=e(72461),o=e(33919);r.exports=function(r,t,e){return e.get&&n(e.get,t,{getter:!0}),e.set&&n(e.set,t,{setter:!0}),o.f(r,t,e)}},59430(r,t,e){var n=e(68039),o=e(33919),a=e(72461),i=e(75963);r.exports=function(r,t,e,c){c||(c={});var u=c.enumerable,s=void 0!==c.name?c.name:t;if(n(e)&&a(e,s,c),c.global)u?r[t]=e:i(t,e);else{try{c.unsafe?r[t]&&(u=!0):delete r[t]}catch(r){}u?r[t]=e:o.f(r,t,{value:e,enumerable:!1,configurable:!c.nonConfigurable,writable:!c.nonWritable})}return r}},27597(r,t,e){var n=e(59430);r.exports=function(r,t,e){for(var o in t)n(r,o,t[o],e);return r}},75963(r,t,e){var n=e(6974),o=Object.defineProperty;r.exports=function(r,t){try{o(n,r,{value:t,configurable:!0,writable:!0})}catch(e){n[r]=t}return t}},36152(r,t,e){var n=e(25229),o=TypeError;r.exports=function(r,t){if(!delete r[t])throw new o("Cannot delete property "+n(t)+" of "+n(r))}},19058(r,t,e){r.exports=!e(59293)(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})},47541(r,t,e){var n,o,a,i,c=e(6974),u=e(55423),s=e(75698),f=c.structuredClone,p=c.ArrayBuffer,h=c.MessageChannel,l=!1;if(s)l=function(r){f(r,{transfer:[r]})};else if(p)try{!h&&(n=u("worker_threads"))&&(h=n.MessageChannel),h&&(o=new h,a=new p(2),i=function(r){o.port1.postMessage(null,[r])},2===a.byteLength&&(i(a),0===a.byteLength&&(l=i)))}catch(r){}r.exports=l},95637(r,t,e){var n=e(6974),o=e(48188),a=n.document,i=o(a)&&o(a.createElement);r.exports=function(r){return i?a.createElement(r):{}}},61959(r){var t=TypeError;r.exports=function(r){if(r>0x1fffffffffffff)throw t("Maximum allowed index exceeded");return r}},94864(r){r.exports={IndexSizeError:{s:"INDEX_SIZE_ERR",c:1,m:1},DOMStringSizeError:{s:"DOMSTRING_SIZE_ERR",c:2,m:0},HierarchyRequestError:{s:"HIERARCHY_REQUEST_ERR",c:3,m:1},WrongDocumentError:{s:"WRONG_DOCUMENT_ERR",c:4,m:1},InvalidCharacterError:{s:"INVALID_CHARACTER_ERR",c:5,m:1},NoDataAllowedError:{s:"NO_DATA_ALLOWED_ERR",c:6,m:0},NoModificationAllowedError:{s:"NO_MODIFICATION_ALLOWED_ERR",c:7,m:1},NotFoundError:{s:"NOT_FOUND_ERR",c:8,m:1},NotSupportedError:{s:"NOT_SUPPORTED_ERR",c:9,m:1},InUseAttributeError:{s:"INUSE_ATTRIBUTE_ERR",c:10,m:1},InvalidStateError:{s:"INVALID_STATE_ERR",c:11,m:1},SyntaxError:{s:"SYNTAX_ERR",c:12,m:1},InvalidModificationError:{s:"INVALID_MODIFICATION_ERR",c:13,m:1},NamespaceError:{s:"NAMESPACE_ERR",c:14,m:1},InvalidAccessError:{s:"INVALID_ACCESS_ERR",c:15,m:1},ValidationError:{s:"VALIDATION_ERR",c:16,m:0},TypeMismatchError:{s:"TYPE_MISMATCH_ERR",c:17,m:1},SecurityError:{s:"SECURITY_ERR",c:18,m:1},NetworkError:{s:"NETWORK_ERR",c:19,m:1},AbortError:{s:"ABORT_ERR",c:20,m:1},URLMismatchError:{s:"URL_MISMATCH_ERR",c:21,m:1},QuotaExceededError:{s:"QUOTA_EXCEEDED_ERR",c:22,m:1},TimeoutError:{s:"TIMEOUT_ERR",c:23,m:1},InvalidNodeTypeError:{s:"INVALID_NODE_TYPE_ERR",c:24,m:1},DataCloneError:{s:"DATA_CLONE_ERR",c:25,m:1}}},65985(r){r.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},15523(r,t,e){r.exports="NODE"===e(70229)},34857(r,t,e){var n=e(6974).navigator,o=n&&n.userAgent;r.exports=o?String(o):""},76153(r,t,e){var n,o,a=e(6974),i=e(34857),c=a.process,u=a.Deno,s=c&&c.versions||u&&u.version,f=s&&s.v8;f&&(o=(n=f.split("."))[0]>0&&n[0]<4?1:+(n[0]+n[1])),!o&&i&&(!(n=i.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=i.match(/Chrome\/(\d+)/))&&(o=+n[1]),r.exports=o},70229(r,t,e){var n=e(6974),o=e(34857),a=e(74026),i=function(r){return o.slice(0,r.length)===r};r.exports=i("Bun/")?"BUN":i("Cloudflare-Workers")?"CLOUDFLARE":i("Deno/")?"DENO":i("Node.js/")?"NODE":n.Bun&&"string"==typeof Bun.version?"BUN":n.Deno&&"object"==typeof Deno.version?"DENO":"process"===a(n.process)?"NODE":n.window&&n.document?"BROWSER":"REST"},50747(r,t,e){var n=e(52782),o=Error,a=n("".replace),i=String(new o("zxcasd").stack),c=/\n\s*at [^:]*:[^\n]*/,u=c.test(i);r.exports=function(r,t){if(u&&"string"==typeof r&&!o.prepareStackTrace)for(;t--;)r=a(r,c,"");return r}},87245(r,t,e){var n=e(80081),o=e(50747),a=e(96041),i=Error.captureStackTrace;r.exports=function(r,t,e,c){a&&(i?i(r,t):n(r,"stack",o(e,c)))}},96041(r,t,e){var n=e(59293),o=e(56582);r.exports=!n(function(){var r=Error("a");return!("stack"in r)||(Object.defineProperty(r,"stack",o(1,7)),7!==r.stack)})},64808(r,t,e){var n=e(6974),o=e(43069).f,a=e(80081),i=e(59430),c=e(75963),u=e(18770),s=e(76518);r.exports=function(r,t){var e,f,p,h,l,v=r.target,d=r.global,y=r.stat;if(e=d?n:y?n[v]||c(v,{}):n[v]&&n[v].prototype)for(f in t){if(h=t[f],p=r.dontCallGetSet?(l=o(e,f))&&l.value:e[f],!s(d?f:v+(y?".":"#")+f,r.forced)&&void 0!==p){if(typeof h==typeof p)continue;u(h,p)}(r.sham||p&&p.sham)&&a(h,"sham",!0),i(e,f,h,r)}}},59293(r){r.exports=function(r){try{return!!r()}catch(r){return!0}}},16263(r,t,e){var n=e(27470),o=Function.prototype,a=o.apply,i=o.call;r.exports="object"==typeof Reflect&&Reflect.apply||(n?i.bind(a):function(){return i.apply(a,arguments)})},92254(r,t,e){var n=e(3350),o=e(70860),a=e(27470),i=n(n.bind);r.exports=function(r,t){return o(r),void 0===t?r:a?i(r,t):function(){return r.apply(t,arguments)}}},27470(r,t,e){r.exports=!e(59293)(function(){var r=(function(){}).bind();return"function"!=typeof r||r.hasOwnProperty("prototype")})},33179(r,t,e){var n=e(27470),o=Function.prototype.call;r.exports=n?o.bind(o):function(){return o.apply(o,arguments)}},6916(r,t,e){var n=e(19058),o=e(76151),a=Function.prototype,i=n&&Object.getOwnPropertyDescriptor,c=o(a,"name"),u=c&&(!n||n&&i(a,"name").configurable);r.exports={EXISTS:c,PROPER:c&&"something"===(function(){}).name,CONFIGURABLE:u}},76572(r,t,e){var n=e(52782),o=e(70860);r.exports=function(r,t,e){try{return n(o(Object.getOwnPropertyDescriptor(r,t)[e]))}catch(r){}}},3350(r,t,e){var n=e(74026),o=e(52782);r.exports=function(r){if("Function"===n(r))return o(r)}},52782(r,t,e){var n=e(27470),o=Function.prototype,a=o.call,i=n&&o.bind.bind(a,a);r.exports=n?i:function(r){return function(){return a.apply(r,arguments)}}},18594(r){var t=TypeError;r.exports=function(r){var e=r&&r.alphabet;if(void 0===e||"base64"===e||"base64url"===e)return e||"base64";throw new t("Incorrect `alphabet` option")}},55423(r,t,e){var n=e(6974),o=e(15523);r.exports=function(r){if(o){try{return n.process.getBuiltinModule(r)}catch(r){}try{return Function('return require("'+r+'")')()}catch(r){}}}},72485(r,t,e){var n=e(6974),o=e(68039);r.exports=function(r,t){var e;return arguments.length<2?o(e=n[r])?e:void 0:n[r]&&n[r][t]}},86845(r){r.exports=function(r){return{iterator:r,next:r.next,done:!1}}},68852(r,t,e){var n=e(33179),o=e(46177),a=e(86845),i=e(18301);r.exports=function(r,t){t&&"string"==typeof r||o(r);var e=i(r);return a(o(void 0!==e?n(e,r):r))}},18301(r,t,e){var n=e(73485),o=e(25112),a=e(3563),i=e(49227),c=e(75869)("iterator");r.exports=function(r){if(!a(r))return o(r,c)||o(r,"@@iterator")||i[n(r)]}},56563(r,t,e){var n=e(33179),o=e(70860),a=e(46177),i=e(25229),c=e(18301),u=TypeError;r.exports=function(r,t){var e=arguments.length<2?c(r):t;if(o(e))return a(n(e,r));throw new u(i(r)+" is not iterable")}},25112(r,t,e){var n=e(70860),o=e(3563);r.exports=function(r,t){var e=r[t];return o(e)?void 0:n(e)}},65447(r,t,e){var n=e(70860),o=e(46177),a=e(33179),i=e(65825),c=e(86845),u="Invalid size",s=RangeError,f=TypeError,p=Math.max,h=function(r,t){this.set=r,this.size=p(t,0),this.has=n(r.has),this.keys=n(r.keys)};h.prototype={getIterator:function(){return c(o(a(this.keys,this.set)))},includes:function(r){return a(this.has,this.set,r)}},r.exports=function(r){o(r);var t=+r.size;if(t!=t)throw new f(u);var e=i(t);if(e<0)throw new s(u);return new h(r,e)}},6974(r,t,e){var n=function(r){return r&&r.Math===Math&&r};r.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof e.g&&e.g)||n("object"==typeof this&&this)||function(){return this}()||Function("return this")()},76151(r,t,e){var n=e(52782),o=e(72095),a=n({}.hasOwnProperty);r.exports=Object.hasOwn||function(r,t){return a(o(r),t)}},30903(r){r.exports={}},39247(r,t,e){r.exports=e(72485)("document","documentElement")},60299(r,t,e){var n=e(19058),o=e(59293),a=e(95637);r.exports=!n&&!o(function(){return 7!==Object.defineProperty(a("div"),"a",{get:function(){return 7}}).a})},14461(r,t,e){var n=e(52782),o=e(59293),a=e(74026),i=Object,c=n("".split);r.exports=o(function(){return!i("z").propertyIsEnumerable(0)})?function(r){return"String"===a(r)?c(r,""):i(r)}:i},3153(r,t,e){var n=e(68039),o=e(48188),a=e(87261);r.exports=function(r,t,e){var i,c;return a&&n(i=t.constructor)&&i!==e&&o(c=i.prototype)&&c!==e.prototype&&a(r,c),r}},49576(r,t,e){var n=e(52782),o=e(68039),a=e(66851),i=n(Function.toString);o(a.inspectSource)||(a.inspectSource=function(r){return i(r)}),r.exports=a.inspectSource},35910(r,t,e){var n=e(48188),o=e(80081);r.exports=function(r,t){n(t)&&"cause"in t&&o(r,"cause",t.cause)}},66935(r,t,e){var n,o,a,i=e(24232),c=e(6974),u=e(48188),s=e(80081),f=e(76151),p=e(66851),h=e(16845),l=e(30903),v="Object already initialized",d=c.TypeError,y=c.WeakMap;if(i||p.state){var g=p.state||(p.state=new y);g.get=g.get,g.has=g.has,g.set=g.set,n=function(r,t){if(g.has(r))throw new d(v);return t.facade=r,g.set(r,t),t},o=function(r){return g.get(r)||{}},a=function(r){return g.has(r)}}else{var w=h("state");l[w]=!0,n=function(r,t){if(f(r,w))throw new d(v);return t.facade=r,s(r,w,t),t},o=function(r){return f(r,w)?r[w]:{}},a=function(r){return f(r,w)}}r.exports={set:n,get:o,has:a,enforce:function(r){return a(r)?o(r):n(r,{})},getterFor:function(r){return function(t){var e;if(!u(t)||(e=o(t)).type!==r)throw new d("Incompatible receiver, "+r+" required");return e}}}},64623(r,t,e){var n=e(75869),o=e(49227),a=n("iterator"),i=Array.prototype;r.exports=function(r){return void 0!==r&&(o.Array===r||i[a]===r)}},57958(r,t,e){var n=e(74026);r.exports=Array.isArray||function(r){return"Array"===n(r)}},63633(r,t,e){var n=e(73485);r.exports=function(r){var t=n(r);return"BigInt64Array"===t||"BigUint64Array"===t}},68039(r){var t="object"==typeof document&&document.all;r.exports=void 0===t&&void 0!==t?function(r){return"function"==typeof r||r===t}:function(r){return"function"==typeof r}},59811(r,t,e){var n=e(52782),o=e(59293),a=e(68039),i=e(73485),c=e(72485),u=e(49576),s=function(){},f=c("Reflect","construct"),p=/^\s*(?:class|function)\b/,h=n(p.exec),l=!p.test(s),v=function(r){if(!a(r))return!1;try{return f(s,[],r),!0}catch(r){return!1}},d=function(r){if(!a(r))return!1;switch(i(r)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return l||!!h(p,u(r))}catch(r){return!0}};d.sham=!0,r.exports=!f||o(function(){var r;return v(v.call)||!v(Object)||!v(function(){r=!0})||r})?d:v},76518(r,t,e){var n=e(59293),o=e(68039),a=/#|\.prototype\./,i=function(r,t){var e=u[c(r)];return e===f||e!==s&&(o(t)?n(t):!!t)},c=i.normalize=function(r){return String(r).replace(a,".").toLowerCase()},u=i.data={},s=i.NATIVE="N",f=i.POLYFILL="P";r.exports=i},61605(r,t,e){var n=e(73485),o=e(76151),a=e(3563),i=e(75869),c=e(49227),u=i("iterator"),s=Object;r.exports=function(r){if(a(r))return!1;var t=s(r);return void 0!==t[u]||"@@iterator"in t||o(c,n(t))}},3563(r){r.exports=function(r){return null==r}},48188(r,t,e){var n=e(68039);r.exports=function(r){return"object"==typeof r?null!==r:n(r)}},30643(r,t,e){var n=e(48188);r.exports=function(r){return n(r)||null===r}},81201(r){r.exports=!1},12131(r,t,e){var n=e(72485),o=e(68039),a=e(66227),i=e(95058),c=Object;r.exports=i?function(r){return"symbol"==typeof r}:function(r){var t=n("Symbol");return o(t)&&a(t.prototype,c(r))}},81885(r,t,e){var n=e(33179);r.exports=function(r,t,e){for(var o,a,i=e?r:r.iterator,c=r.next;!(o=n(c,i)).done;)if(void 0!==(a=t(o.value)))return a}},82150(r,t,e){var n=e(92254),o=e(33179),a=e(46177),i=e(25229),c=e(64623),u=e(92956),s=e(66227),f=e(56563),p=e(18301),h=e(55053),l=TypeError,v=function(r,t){this.stopped=r,this.result=t},d=v.prototype;r.exports=function(r,t,e){var y,g,w,b,m,x,E,A=e&&e.that,S=!!(e&&e.AS_ENTRIES),T=!!(e&&e.IS_RECORD),O=!!(e&&e.IS_ITERATOR),R=!!(e&&e.INTERRUPTED),I=n(t,A),k=function(r){return y&&h(y,"normal"),new v(!0,r)},_=function(r){return S?(a(r),R?I(r[0],r[1],k):I(r[0],r[1])):R?I(r,k):I(r)};if(T)y=r.iterator;else if(O)y=r;else{if(!(g=p(r)))throw new l(i(r)+" is not iterable");if(c(g)){for(w=0,b=u(r);b>w;w++)if((m=_(r[w]))&&s(d,m))return m;return new v(!1)}y=f(r,g)}for(x=T?r.next:y.next;!(E=o(x,y)).done;){try{m=_(E.value)}catch(r){h(y,"throw",r)}if("object"==typeof m&&m&&s(d,m))return m}return new v(!1)}},83795(r,t,e){var n=e(55053);r.exports=function(r,t,e){for(var o=r.length-1;o>=0;o--)if(void 0!==r[o])try{e=n(r[o].iterator,t,e)}catch(r){t="throw",e=r}if("throw"===t)throw e;return e}},55053(r,t,e){var n=e(33179),o=e(46177),a=e(25112);r.exports=function(r,t,e){var i,c;o(r);try{if(!(i=a(r,"return"))){if("throw"===t)throw e;return e}i=n(i,r)}catch(r){c=!0,i=r}if("throw"===t)throw e;if(c)throw i;return o(i),e}},21352(r,t,e){var n=e(33179),o=e(12326),a=e(80081),i=e(27597),c=e(75869),u=e(66935),s=e(25112),f=e(66479).IteratorPrototype,p=e(46827),h=e(55053),l=e(83795),v=c("toStringTag"),d="IteratorHelper",y="WrapForValidIterator",g="normal",w="throw",b=u.set,m=function(r){var t=u.getterFor(r?y:d);return i(o(f),{next:function(){var e=t(this);if(r)return e.nextHandler();if(e.done)return p(void 0,!0);try{var n=e.nextHandler();return e.returnHandlerResult?n:p(n,e.done)}catch(r){throw e.done=!0,r}},return:function(){var e=t(this),o=e.iterator;if(e.done=!0,r){var a=s(o,"return");return a?n(a,o):p(void 0,!0)}if(e.inner)try{h(e.inner.iterator,g)}catch(r){return h(o,w,r)}if(e.openIters)try{l(e.openIters,g)}catch(r){return h(o,w,r)}return o&&h(o,g),p(void 0,!0)}})},x=m(!0),E=m(!1);a(E,v,"Iterator Helper"),r.exports=function(r,t,e){var n=function(n,o){o?(o.iterator=n.iterator,o.next=n.next):o=n,o.type=t?y:d,o.returnHandlerResult=!!e,o.nextHandler=r,o.counter=0,o.done=!1,b(this,o)};return n.prototype=t?x:E,n}},65682(r){r.exports=function(r,t){var e="function"==typeof Iterator&&Iterator.prototype[r];if(e)try{e.call({next:null},t).next()}catch(r){return!0}}},6655(r,t,e){var n=e(6974);r.exports=function(r,t){var e=n.Iterator,o=e&&e.prototype,a=o&&o[r],i=!1;if(a)try{a.call({next:function(){return{done:!0}},return:function(){i=!0}},-1)}catch(r){r instanceof t||(i=!1)}if(!i)return a}},66479(r,t,e){var n,o,a,i=e(59293),c=e(68039),u=e(48188),s=e(12326),f=e(69681),p=e(59430),h=e(75869),l=e(81201),v=h("iterator"),d=!1;[].keys&&("next"in(a=[].keys())?(o=f(f(a)))!==Object.prototype&&(n=o):d=!0),!u(n)||i(function(){var r={};return n[v].call(r)!==r})?n={}:l&&(n=s(n)),c(n[v])||p(n,v,function(){return this}),r.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:d}},49227(r){r.exports={}},92956(r,t,e){var n=e(57864);r.exports=function(r){return n(r.length)}},72461(r,t,e){var n=e(52782),o=e(59293),a=e(68039),i=e(76151),c=e(19058),u=e(6916).CONFIGURABLE,s=e(49576),f=e(66935),p=f.enforce,h=f.get,l=String,v=Object.defineProperty,d=n("".slice),y=n("".replace),g=n([].join),w=c&&!o(function(){return 8!==v(function(){},"length",{value:8}).length}),b=String(String).split("String"),m=r.exports=function(r,t,e){"Symbol("===d(l(t),0,7)&&(t="["+y(l(t),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),e&&e.getter&&(t="get "+t),e&&e.setter&&(t="set "+t),(!i(r,"name")||u&&r.name!==t)&&(c?v(r,"name",{value:t,configurable:!0}):r.name=t),w&&e&&i(e,"arity")&&r.length!==e.arity&&v(r,"length",{value:e.arity});try{e&&i(e,"constructor")&&e.constructor?c&&v(r,"prototype",{writable:!1}):r.prototype&&(r.prototype=void 0)}catch(r){}var n=p(r);return i(n,"source")||(n.source=g(b,"string"==typeof t?t:"")),r};Function.prototype.toString=m(function(){return a(this)&&h(this).source||s(this)},"toString")},74694(r,t,e){var n=e(52782),o=Map.prototype;r.exports={Map:Map,set:n(o.set),get:n(o.get),has:n(o.has),remove:n(o.delete),proto:o}},58881(r,t,e){var n=e(52782),o=e(81885),a=e(74694),i=a.Map,c=a.proto,u=n(c.forEach),s=n(c.entries),f=s(new i).next;r.exports=function(r,t,e){return e?o({iterator:s(r),next:f},function(r){return t(r[1],r[0])}):u(r,t)}},83427(r){var t=Math.ceil,e=Math.floor;r.exports=Math.trunc||function(r){var n=+r;return(n>0?e:t)(n)}},14901(r,t,e){var n=e(13641);r.exports=function(r,t){return void 0===r?arguments.length<2?"":t:n(r)}},12326(r,t,e){var n,o=e(46177),a=e(23827),i=e(65985),c=e(30903),u=e(39247),s=e(95637),f=e(16845),p="prototype",h="script",l=f("IE_PROTO"),v=function(){},d=function(r){return"<"+h+">"+r+"</"+h+">"},y=function(r){r.write(d("")),r.close();var t=r.parentWindow.Object;return r=null,t},g=function(){var r,t=s("iframe");return t.style.display="none",u.appendChild(t),t.src=String("java"+h+":"),(r=t.contentWindow.document).open(),r.write(d("document.F=Object")),r.close(),r.F},w=function(){try{n=new ActiveXObject("htmlfile")}catch(r){}w="u">typeof document?document.domain&&n?y(n):g():y(n);for(var r=i.length;r--;)delete w[p][i[r]];return w()};c[l]=!0,r.exports=Object.create||function(r,t){var e;return null!==r?(v[p]=o(r),e=new v,v[p]=null,e[l]=r):e=w(),void 0===t?e:a.f(e,t)}},23827(r,t,e){var n=e(19058),o=e(18636),a=e(33919),i=e(46177),c=e(41555),u=e(42262);t.f=n&&!o?Object.defineProperties:function(r,t){i(r);for(var e,n=c(t),o=u(t),s=o.length,f=0;s>f;)a.f(r,e=o[f++],n[e]);return r}},33919(r,t,e){var n=e(19058),o=e(60299),a=e(18636),i=e(46177),c=e(11611),u=TypeError,s=Object.defineProperty,f=Object.getOwnPropertyDescriptor,p="enumerable",h="configurable",l="writable";t.f=n?a?function(r,t,e){if(i(r),t=c(t),i(e),"function"==typeof r&&"prototype"===t&&"value"in e&&l in e&&!e[l]){var n=f(r,t);n&&n[l]&&(r[t]=e.value,e={configurable:h in e?e[h]:n[h],enumerable:p in e?e[p]:n[p],writable:!1})}return s(r,t,e)}:s:function(r,t,e){if(i(r),t=c(t),i(e),o)try{return s(r,t,e)}catch(r){}if("get"in e||"set"in e)throw new u("Accessors not supported");return"value"in e&&(r[t]=e.value),r}},43069(r,t,e){var n=e(19058),o=e(33179),a=e(74639),i=e(56582),c=e(41555),u=e(11611),s=e(76151),f=e(60299),p=Object.getOwnPropertyDescriptor;t.f=n?p:function(r,t){if(r=c(r),t=u(t),f)try{return p(r,t)}catch(r){}if(s(r,t))return i(!o(a.f,r,t),r[t])}},62482(r,t,e){var n=e(6730),o=e(65985).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(r){return n(r,o)}},34343(r,t){t.f=Object.getOwnPropertySymbols},69681(r,t,e){var n=e(76151),o=e(68039),a=e(72095),i=e(16845),c=e(1109),u=i("IE_PROTO"),s=Object,f=s.prototype;r.exports=c?s.getPrototypeOf:function(r){var t=a(r);if(n(t,u))return t[u];var e=t.constructor;return o(e)&&t instanceof e?e.prototype:t instanceof s?f:null}},66227(r,t,e){r.exports=e(52782)({}.isPrototypeOf)},6730(r,t,e){var n=e(52782),o=e(76151),a=e(41555),i=e(25383).indexOf,c=e(30903),u=n([].push);r.exports=function(r,t){var e,n=a(r),s=0,f=[];for(e in n)!o(c,e)&&o(n,e)&&u(f,e);for(;t.length>s;)o(n,e=t[s++])&&(~i(f,e)||u(f,e));return f}},42262(r,t,e){var n=e(6730),o=e(65985);r.exports=Object.keys||function(r){return n(r,o)}},74639(r,t){var e={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor;t.f=n&&!e.call({1:2},1)?function(r){var t=n(this,r);return!!t&&t.enumerable}:e},87261(r,t,e){var n=e(76572),o=e(48188),a=e(15804),i=e(30216);r.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var r,t=!1,e={};try{(r=n(Object.prototype,"__proto__","set"))(e,[]),t=e instanceof Array}catch(r){}return function(e,n){return a(e),i(n),o(e)&&(t?r(e,n):e.__proto__=n),e}}():void 0)},18424(r,t,e){var n=e(33179),o=e(68039),a=e(48188),i=TypeError;r.exports=function(r,t){var e,c;if("string"===t&&o(e=r.toString)&&!a(c=n(e,r))||o(e=r.valueOf)&&!a(c=n(e,r))||"string"!==t&&o(e=r.toString)&&!a(c=n(e,r)))return c;throw new i("Can't convert object to primitive value")}},73517(r,t,e){var n=e(72485),o=e(52782),a=e(62482),i=e(34343),c=e(46177),u=o([].concat);r.exports=n("Reflect","ownKeys")||function(r){var t=a.f(c(r)),e=i.f;return e?u(t,e(r)):t}},14470(r,t,e){var n=e(52782),o=e(76151),a=SyntaxError,i=parseInt,c=String.fromCharCode,u=n("".charAt),s=n("".slice),f=n(/./.exec),p={'\\"':'"',"\\\\":"\\","\\/":"/","\\b":"\b","\\f":"\f","\\n":"\n","\\r":"\r","\\t":" "},h=/^[\da-f]{4}$/i,l=/^[\u0000-\u001F]$/;r.exports=function(r,t){for(var e=!0,n="";t<r.length;){var v=u(r,t);if("\\"===v){var d=s(r,t,t+2);if(o(p,d))n+=p[d],t+=2;else if("\\u"===d){var y=s(r,t+=2,t+4);if(!f(h,y))throw new a("Bad Unicode escape at: "+t);n+=c(i(y,16)),t+=4}else throw new a('Unknown escape sequence: "'+d+'"')}else if('"'===v){e=!1,t++;break}else{if(f(l,v))throw new a("Bad control character in string literal at: "+t);n+=v,t++}}if(e)throw new a("Unterminated string at: "+t);return{value:n,end:t}}},70977(r,t,e){r.exports=e(6974)},64122(r,t,e){var n=e(33919).f;r.exports=function(r,t,e){e in r||n(r,e,{configurable:!0,get:function(){return t[e]},set:function(r){t[e]=r}})}},26823(r,t,e){var n=e(6974),o=e(59293),a=n.RegExp;r.exports={correct:!o(function(){var r=!0;try{a(".","d")}catch(t){r=!1}var t={},e="",n=r?"dgimsy":"gimsy",o=function(r,n){Object.defineProperty(t,r,{get:function(){return e+=n,!0}})},i={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};for(var c in r&&(i.hasIndices="d"),i)o(c,i[c]);return Object.getOwnPropertyDescriptor(a.prototype,"flags").get.call(t)!==n||e!==n})}},62337(r,t,e){var n=e(46177);r.exports=function(){var r=n(this),t="";return r.hasIndices&&(t+="d"),r.global&&(t+="g"),r.ignoreCase&&(t+="i"),r.multiline&&(t+="m"),r.dotAll&&(t+="s"),r.unicode&&(t+="u"),r.unicodeSets&&(t+="v"),r.sticky&&(t+="y"),t}},41148(r,t,e){var n=e(33179),o=e(76151),a=e(66227),i=e(26823),c=e(62337),u=RegExp.prototype;r.exports=i.correct?function(r){return r.flags}:function(r){return!i.correct&&a(u,r)&&!o(r,"flags")?n(c,r):r.flags}},15804(r,t,e){var n=e(3563),o=TypeError;r.exports=function(r){if(n(r))throw new o("Can't call method on "+r);return r}},48079(r){r.exports=function(r,t){return r===t||r!=r&&t!=t}},47988(r,t,e){var n=e(58260),o=e(25475),a=n.Set,i=n.add;r.exports=function(r){var t=new a;return o(r,function(r){i(t,r)}),t}},95474(r,t,e){var n=e(47234),o=e(58260),a=e(47988),i=e(41888),c=e(65447),u=e(25475),s=e(81885),f=o.has,p=o.remove;r.exports=function(r){var t=n(this),e=c(r),o=a(t);return i(t)<=e.size?u(t,function(r){e.includes(r)&&p(o,r)}):s(e.getIterator(),function(r){f(o,r)&&p(o,r)}),o}},58260(r,t,e){var n=e(52782),o=Set.prototype;r.exports={Set:Set,add:n(o.add),has:n(o.has),remove:n(o.delete),proto:o}},48396(r,t,e){var n=e(47234),o=e(58260),a=e(41888),i=e(65447),c=e(25475),u=e(81885),s=o.Set,f=o.add,p=o.has;r.exports=function(r){var t=n(this),e=i(r),o=new s;return a(t)>e.size?u(e.getIterator(),function(r){p(t,r)&&f(o,r)}):c(t,function(r){e.includes(r)&&f(o,r)}),o}},46839(r,t,e){var n=e(47234),o=e(58260).has,a=e(41888),i=e(65447),c=e(25475),u=e(81885),s=e(55053);r.exports=function(r){var t=n(this),e=i(r);if(a(t)<=e.size)return!1!==c(t,function(r){if(e.includes(r))return!1},!0);var f=e.getIterator();return!1!==u(f,function(r){if(o(t,r))return s(f,"normal",!1)})}},43388(r,t,e){var n=e(47234),o=e(41888),a=e(25475),i=e(65447);r.exports=function(r){var t=n(this),e=i(r);return!(o(t)>e.size)&&!1!==a(t,function(r){if(!e.includes(r))return!1},!0)}},53965(r,t,e){var n=e(47234),o=e(58260).has,a=e(41888),i=e(65447),c=e(81885),u=e(55053);r.exports=function(r){var t=n(this),e=i(r);if(a(t)<e.size)return!1;var s=e.getIterator();return!1!==c(s,function(r){if(!o(t,r))return u(s,"normal",!1)})}},25475(r,t,e){var n=e(52782),o=e(81885),a=e(58260),i=a.Set,c=a.proto,u=n(c.forEach),s=n(c.keys),f=s(new i).next;r.exports=function(r,t,e){return e?o({iterator:s(r),next:f},t):u(r,t)}},24206(r,t,e){var n=e(72485),o=function(r){return{size:r,has:function(){return!1},keys:function(){return{next:function(){return{done:!0}}}}}},a=function(r){return{size:r,has:function(){return!0},keys:function(){throw Error("e")}}};r.exports=function(r,t){var e=n("Set");try{new e()[r](o(0));try{return new e()[r](o(-1)),!1}catch(n){if(!t)return!0;try{return new e()[r](a(-1/0)),!1}catch(n){var i=new e([1,2]);return t(i[r](a(1/0)))}}}catch(r){return!1}}},29617(r){r.exports=function(r){try{var t=new Set,e=t[r]({size:0,has:function(){return!0},keys:function(){return Object.defineProperty({},"next",{get:function(){return t.clear(),t.add(4),function(){return{done:!0}}}})}});return 1===e.size&&4===e.values().next().value}catch(r){return!1}}},41888(r,t,e){r.exports=e(76572)(e(58260).proto,"size","get")||function(r){return r.size}},13264(r,t,e){var n=e(47234),o=e(58260),a=e(47988),i=e(65447),c=e(81885),u=o.add,s=o.has,f=o.remove;r.exports=function(r){var t=n(this),e=i(r).getIterator(),o=a(t);return c(e,function(r){s(t,r)?f(o,r):u(o,r)}),o}},21898(r,t,e){var n=e(47234),o=e(58260).add,a=e(47988),i=e(65447),c=e(81885);r.exports=function(r){var t=n(this),e=i(r).getIterator(),u=a(t);return c(e,function(r){o(u,r)}),u}},16845(r,t,e){var n=e(55219),o=e(702),a=n("keys");r.exports=function(r){return a[r]||(a[r]=o(r))}},66851(r,t,e){var n=e(81201),o=e(6974),a=e(75963),i="__core-js_shared__",c=r.exports=o[i]||a(i,{});(c.versions||(c.versions=[])).push({version:"3.47.0",mode:n?"pure":"global",copyright:"© 2014-2025 Denis Pushkarev (zloirock.ru), 2025 CoreJS Company (core-js.io)",license:"https://github.com/zloirock/core-js/blob/v3.47.0/LICENSE",source:"https://github.com/zloirock/core-js"})},55219(r,t,e){var n=e(66851);r.exports=function(r,t){return n[r]||(n[r]=t||{})}},68445(r,t,e){var n=e(52782),o=e(65825),a=e(13641),i=e(15804),c=n("".charAt),u=n("".charCodeAt),s=n("".slice),f=function(r){return function(t,e){var n,f,p=a(i(t)),h=o(e),l=p.length;return h<0||h>=l?r?"":void 0:(n=u(p,h))<55296||n>56319||h+1===l||(f=u(p,h+1))<56320||f>57343?r?c(p,h):n:r?s(p,h,h+2):(n-55296<<10)+(f-56320)+65536}};r.exports={codeAt:f(!1),charAt:f(!0)}},75698(r,t,e){var n=e(6974),o=e(59293),a=e(76153),i=e(70229),c=n.structuredClone;r.exports=!!c&&!o(function(){if("DENO"===i&&a>92||"NODE"===i&&a>94||"BROWSER"===i&&a>97)return!1;var r=new ArrayBuffer(8),t=c(r,{transfer:[r]});return 0!==r.byteLength||8!==t.byteLength})},8953(r,t,e){var n=e(76153),o=e(59293),a=e(6974).String;r.exports=!!Object.getOwnPropertySymbols&&!o(function(){var r=Symbol("symbol detection");return!a(r)||!(Object(r)instanceof Symbol)||!Symbol.sham&&n&&n<41})},3108(r,t,e){var n=e(65825),o=Math.max,a=Math.min;r.exports=function(r,t){var e=n(r);return e<0?o(e+t,0):a(e,t)}},32216(r,t,e){var n=e(28535),o=TypeError;r.exports=function(r){var t=n(r,"number");if("number"==typeof t)throw new o("Can't convert number to bigint");return BigInt(t)}},26722(r,t,e){var n=e(65825),o=e(57864),a=RangeError;r.exports=function(r){if(void 0===r)return 0;var t=n(r),e=o(t);if(t!==e)throw new a("Wrong length or index");return e}},41555(r,t,e){var n=e(14461),o=e(15804);r.exports=function(r){return n(o(r))}},65825(r,t,e){var n=e(83427);r.exports=function(r){var t=+r;return t!=t||0===t?0:n(t)}},57864(r,t,e){var n=e(65825),o=Math.min;r.exports=function(r){var t=n(r);return t>0?o(t,0x1fffffffffffff):0}},72095(r,t,e){var n=e(15804),o=Object;r.exports=function(r){return o(n(r))}},7751(r,t,e){var n=e(11280),o=RangeError;r.exports=function(r,t){var e=n(r);if(e%t)throw new o("Wrong offset");return e}},11280(r,t,e){var n=e(65825),o=RangeError;r.exports=function(r){var t=n(r);if(t<0)throw new o("The argument can't be less than 0");return t}},28535(r,t,e){var n=e(33179),o=e(48188),a=e(12131),i=e(25112),c=e(18424),u=e(75869),s=TypeError,f=u("toPrimitive");r.exports=function(r,t){if(!o(r)||a(r))return r;var e,u=i(r,f);if(u){if(void 0===t&&(t="default"),!o(e=n(u,r,t))||a(e))return e;throw new s("Can't convert object to primitive value")}return void 0===t&&(t="number"),c(r,t)}},11611(r,t,e){var n=e(28535),o=e(12131);r.exports=function(r){var t=n(r,"string");return o(t)?t:t+""}},11708(r,t,e){var n=e(72485),o=e(68039),a=e(61605),i=e(48188),c=n("Set");r.exports=function(r){return i(r)&&"number"==typeof r.size&&o(r.has)&&o(r.keys)?r:a(r)?new c(r):r}},23886(r,t,e){var n=e(75869)("toStringTag"),o={};o[n]="z",r.exports="[object z]"===String(o)},13641(r,t,e){var n=e(73485),o=String;r.exports=function(r){if("Symbol"===n(r))throw TypeError("Cannot convert a Symbol value to a string");return o(r)}},25229(r){var t=String;r.exports=function(r){try{return t(r)}catch(r){return"Object"}}},68154(r,t,e){var n=e(11372),o=e(97882).getTypedArrayConstructor;r.exports=function(r,t){return n(o(r),t)}},702(r,t,e){var n=e(52782),o=0,a=Math.random(),i=n(1.1.toString);r.exports=function(r){return"Symbol("+(void 0===r?"":r)+")_"+i(++o+a,36)}},43777(r,t,e){var n=e(6974),o=e(52782),a=e(88302),i=e(63145),c=e(76151),u=e(38634),s=e(18594),f=e(30315),p=u.c2i,h=u.c2iUrl,l=n.SyntaxError,v=n.TypeError,d=o("".charAt),y=function(r,t){for(var e=r.length;t<e;t++){var n=d(r,t);if(" "!==n&&" "!==n&&"\n"!==n&&"\f"!==n&&"\r"!==n)break}return t},g=function(r,t,e){var n=r.length;n<4&&(r+=2===n?"AA":"A");var o=(t[d(r,0)]<<18)+(t[d(r,1)]<<12)+(t[d(r,2)]<<6)+t[d(r,3)],a=[o>>16&255,o>>8&255,255&o];if(2===n){if(e&&0!==a[1])throw new l("Extra bits");return[a[0]]}if(3===n){if(e&&0!==a[2])throw new l("Extra bits");return[a[0],a[1]]}return a},w=function(r,t,e){for(var n=t.length,o=0;o<n;o++)r[e+o]=t[o];return e+n};r.exports=function(r,t,e,n){i(r),a(t);var o="base64"===s(t)?p:h,u=t?t.lastChunkHandling:void 0;if(void 0===u&&(u="loose"),"loose"!==u&&"strict"!==u&&"stop-before-partial"!==u)throw new v("Incorrect `lastChunkHandling` option");e&&f(e.buffer);var b=r.length,m=e||[],x=0,E=0,A="",S=0;if(n)for(;;){if((S=y(r,S))===b){if(A.length>0){if("stop-before-partial"===u)break;if("loose"===u){if(1===A.length)throw new l("Malformed padding: exactly one additional character");x=w(m,g(A,o,!1),x)}else throw new l("Missing padding")}E=b;break}var T=d(r,S);if(++S,"="===T){if(A.length<2)throw new l("Padding is too early");if(S=y(r,S),2===A.length){if(S===b){if("stop-before-partial"===u)break;throw new l("Malformed padding: only one =")}"="===d(r,S)&&(S=y(r,++S))}if(S<b)throw new l("Unexpected character after padding");x=w(m,g(A,o,"strict"===u),x),E=b;break}if(!c(o,T))throw new l("Unexpected character");var O=n-x;if(1===O&&2===A.length||2===O&&3===A.length||4===(A+=T).length&&(x=w(m,g(A,o,!1),x),A="",E=S,x===n))break}return{bytes:m,read:E,written:x}}},30081(r,t,e){var n=e(6974),o=e(52782),a=n.Uint8Array,i=n.SyntaxError,c=n.parseInt,u=Math.min,s=/[^\da-f]/i,f=o(s.exec),p=o("".slice);r.exports=function(r,t){var e=r.length;if(e%2!=0)throw new i("String should be an even number of characters");for(var n=t?u(t.length,e/2):e/2,o=t||new a(n),h=0,l=0;l<n;){var v=p(r,h,h+=2);if(f(s,v))throw new i("String should only contain hex characters");o[l++]=c(v,16)}return{bytes:o,read:h}}},95058(r,t,e){r.exports=e(8953)&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},18636(r,t,e){var n=e(19058),o=e(59293);r.exports=n&&o(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype})},26406(r){var t=TypeError;r.exports=function(r,e){if(r<e)throw new t("Not enough arguments");return r}},24232(r,t,e){var n=e(6974),o=e(68039),a=n.WeakMap;r.exports=o(a)&&/native code/.test(String(a))},96717(r,t,e){var n=e(52782),o=WeakMap.prototype;r.exports={WeakMap:WeakMap,set:n(o.set),get:n(o.get),has:n(o.has),remove:n(o.delete)}},48219(r,t,e){var n=e(52782),o=WeakSet.prototype;r.exports={WeakSet:WeakSet,add:n(o.add),has:n(o.has),remove:n(o.delete)}},93693(r,t,e){var n=e(70977),o=e(76151),a=e(56409),i=e(33919).f;r.exports=function(r){var t=n.Symbol||(n.Symbol={});o(t,r)||i(t,r,{value:a.f(r)})}},56409(r,t,e){t.f=e(75869)},75869(r,t,e){var n=e(6974),o=e(55219),a=e(76151),i=e(702),c=e(8953),u=e(95058),s=n.Symbol,f=o("wks"),p=u?s.for||s:s&&s.withoutSetter||i;r.exports=function(r){return a(f,r)||(f[r]=c&&a(s,r)?s[r]:p("Symbol."+r)),f[r]}},50859(r,t,e){var n=e(72485),o=e(76151),a=e(80081),i=e(66227),c=e(87261),u=e(18770),s=e(64122),f=e(3153),p=e(14901),h=e(35910),l=e(87245),v=e(19058),d=e(81201);r.exports=function(r,t,e,y){var g="stackTraceLimit",w=y?2:1,b=r.split("."),m=b[b.length-1],x=n.apply(null,b);if(x){var E=x.prototype;if(!d&&o(E,"cause")&&delete E.cause,!e)return x;var A=n("Error"),S=t(function(r,t){var e=p(y?t:r,void 0),n=y?new x(r):new x;return void 0!==e&&a(n,"message",e),l(n,S,n.stack,2),this&&i(E,this)&&f(n,this,S),arguments.length>w&&h(n,arguments[w]),n});if(S.prototype=E,"Error"!==m?c?c(S,A):u(S,A,{name:!0}):v&&g in x&&(s(S,x,g),s(S,x,"prepareStackTrace")),u(S,x),!d)try{E.name!==m&&a(E,"name",m),E.constructor=S}catch(r){}return S}}},20303(r,t,e){var n=e(19058),o=e(7108),a=e(80408),i=ArrayBuffer.prototype;!n||"detached"in i||o(i,"detached",{configurable:!0,get:function(){return a(this)}})},6106(r,t,e){var n=e(64808),o=e(2982);o&&n({target:"ArrayBuffer",proto:!0},{transferToFixedLength:function(){return o(this,arguments.length?arguments[0]:void 0,!1)}})},99166(r,t,e){var n=e(64808),o=e(2982);o&&n({target:"ArrayBuffer",proto:!0},{transfer:function(){return o(this,arguments.length?arguments[0]:void 0,!0)}})},20789(r,t,e){var n=e(64808),o=e(72095),a=e(92956),i=e(65825),c=e(1643);n({target:"Array",proto:!0},{at:function(r){var t=o(this),e=a(t),n=i(r),c=n>=0?n:e+n;return c<0||c>=e?void 0:t[c]}}),c("at")},66249(r,t,e){var n=e(64808),o=e(61857).findLastIndex,a=e(1643);n({target:"Array",proto:!0},{findLastIndex:function(r){return o(this,r,arguments.length>1?arguments[1]:void 0)}}),a("findLastIndex")},35336(r,t,e){var n=e(64808),o=e(61857).findLast,a=e(1643);n({target:"Array",proto:!0},{findLast:function(r){return o(this,r,arguments.length>1?arguments[1]:void 0)}}),a("findLast")},14104(r,t,e){var n=e(64808),o=e(72095),a=e(92956),i=e(27021),c=e(61959);n({target:"Array",proto:!0,arity:1,forced:e(59293)(function(){return 0x100000001!==[].push.call({length:0x100000000},1)})||!function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(r){return r instanceof TypeError}}()},{push:function(r){var t=o(this),e=a(t),n=arguments.length;c(e+n);for(var u=0;u<n;u++)t[e]=arguments[u],e++;return i(t,e),e}})},61203(r,t,e){var n=e(64808),o=e(72095),a=e(92956),i=e(27021),c=e(36152),u=e(61959);n({target:"Array",proto:!0,arity:1,forced:1!==[].unshift(0)||!function(){try{Object.defineProperty([],"length",{writable:!1}).unshift()}catch(r){return r instanceof TypeError}}()},{unshift:function(r){var t=o(this),e=a(t),n=arguments.length;if(n){u(e+n);for(var s=e;s--;){var f=s+n;s in t?t[f]=t[s]:c(t,f)}for(var p=0;p<n;p++)t[p]=arguments[p]}return i(t,e+n)}})},81574(r,t,e){var n=e(33179),o=e(59430),a=e(72485),i=e(25112),c=e(76151),u=e(75869),s=e(1036),f=u("asyncDispose"),p=a("Promise");c(s,f)||o(s,f,function(){var r=this;return new p(function(t,e){var o=i(r,"return");o?p.resolve(n(o,r)).then(function(){t(void 0)},e):t(void 0)})})},15254(r,t,e){var n=e(64808),o=e(6974),a=e(16263),i=e(50859),c="WebAssembly",u=o[c],s=7!==Error("e",{cause:7}).cause,f=function(r,t){var e={};e[r]=i(r,t,s),n({global:!0,constructor:!0,arity:1,forced:s},e)},p=function(r,t){if(u&&u[r]){var e={};e[r]=i(c+"."+r,t,s),n({target:c,stat:!0,constructor:!0,arity:1,forced:s},e)}};f("Error",function(r){return function(t){return a(r,this,arguments)}}),f("EvalError",function(r){return function(t){return a(r,this,arguments)}}),f("RangeError",function(r){return function(t){return a(r,this,arguments)}}),f("ReferenceError",function(r){return function(t){return a(r,this,arguments)}}),f("SyntaxError",function(r){return function(t){return a(r,this,arguments)}}),f("TypeError",function(r){return function(t){return a(r,this,arguments)}}),f("URIError",function(r){return function(t){return a(r,this,arguments)}}),p("CompileError",function(r){return function(t){return a(r,this,arguments)}}),p("LinkError",function(r){return function(t){return a(r,this,arguments)}}),p("RuntimeError",function(r){return function(t){return a(r,this,arguments)}})},42949(r,t,e){var n=e(64808),o=e(6974),a=e(50473),i=e(46177),c=e(68039),u=e(69681),s=e(7108),f=e(84634),p=e(59293),h=e(76151),l=e(75869),v=e(66479).IteratorPrototype,d=e(19058),y=e(81201),g="constructor",w="Iterator",b=l("toStringTag"),m=TypeError,x=o[w],E=y||!c(x)||x.prototype!==v||!p(function(){x({})}),A=function(){if(a(this,v),u(this)===v)throw new m("Abstract class Iterator not directly constructable")},S=function(r,t){d?s(v,r,{configurable:!0,get:function(){return t},set:function(t){if(i(this),this===v)throw new m("You can't redefine this property");h(this,r)?this[r]=t:f(this,r,t)}}):v[r]=t};h(v,b)||S(b,w),(E||!h(v,g)||v[g]===Object)&&S(g,A),A.prototype=v,n({global:!0,constructor:!0,forced:E},{Iterator:A})},66528(r,t,e){var n=e(33179),o=e(59430),a=e(25112),i=e(76151),c=e(75869),u=e(66479).IteratorPrototype,s=c("dispose");i(u,s)||o(u,s,function(){var r=a(this,"return");r&&n(r,this)})},31178(r,t,e){var n=e(64808),o=e(33179),a=e(82150),i=e(70860),c=e(46177),u=e(86845),s=e(55053),f=e(6655)("every",TypeError);n({target:"Iterator",proto:!0,real:!0,forced:f},{every:function(r){c(this);try{i(r)}catch(r){s(this,"throw",r)}if(f)return o(f,this,r);var t=u(this),e=0;return!a(t,function(t,n){if(!r(t,e++))return n()},{IS_RECORD:!0,INTERRUPTED:!0}).stopped}})},18723(r,t,e){var n=e(64808),o=e(33179),a=e(70860),i=e(46177),c=e(86845),u=e(21352),s=e(75017),f=e(81201),p=e(55053),h=e(65682),l=e(6655),v=!f&&!h("filter",function(){}),d=!f&&!v&&l("filter",TypeError),y=f||v||d,g=u(function(){for(var r,t,e=this.iterator,n=this.predicate,a=this.next;;){if(r=i(o(a,e)),this.done=!!r.done)return;if(s(e,n,[t=r.value,this.counter++],!0))return t}});n({target:"Iterator",proto:!0,real:!0,forced:y},{filter:function(r){i(this);try{a(r)}catch(r){p(this,"throw",r)}return d?o(d,this,r):new g(c(this),{predicate:r})}})},49678(r,t,e){var n=e(64808),o=e(33179),a=e(82150),i=e(70860),c=e(46177),u=e(86845),s=e(55053),f=e(6655)("find",TypeError);n({target:"Iterator",proto:!0,real:!0,forced:f},{find:function(r){c(this);try{i(r)}catch(r){s(this,"throw",r)}if(f)return o(f,this,r);var t=u(this),e=0;return a(t,function(t,n){if(r(t,e++))return n(t)},{IS_RECORD:!0,INTERRUPTED:!0}).result}})},45249(r,t,e){var n=e(64808),o=e(33179),a=e(70860),i=e(46177),c=e(86845),u=e(68852),s=e(21352),f=e(55053),p=e(81201),h=e(65682),l=e(6655),v=!p&&!h("flatMap",function(){}),d=!p&&!v&&l("flatMap",TypeError),y=p||v||d,g=s(function(){for(var r,t,e=this.iterator,n=this.mapper;;){if(t=this.inner)try{if(!(r=i(o(t.next,t.iterator))).done)return r.value;this.inner=null}catch(r){f(e,"throw",r)}if(r=i(o(this.next,e)),this.done=!!r.done)return;try{this.inner=u(n(r.value,this.counter++),!1)}catch(r){f(e,"throw",r)}}});n({target:"Iterator",proto:!0,real:!0,forced:y},{flatMap:function(r){i(this);try{a(r)}catch(r){f(this,"throw",r)}return d?o(d,this,r):new g(c(this),{mapper:r,inner:null})}})},84086(r,t,e){var n=e(64808),o=e(33179),a=e(82150),i=e(70860),c=e(46177),u=e(86845),s=e(55053),f=e(6655)("forEach",TypeError);n({target:"Iterator",proto:!0,real:!0,forced:f},{forEach:function(r){c(this);try{i(r)}catch(r){s(this,"throw",r)}if(f)return o(f,this,r);var t=u(this),e=0;a(t,function(t){r(t,e++)},{IS_RECORD:!0})}})},37891(r,t,e){var n=e(64808),o=e(33179),a=e(70860),i=e(46177),c=e(86845),u=e(21352),s=e(75017),f=e(55053),p=e(65682),h=e(6655),l=e(81201),v=!l&&!p("map",function(){}),d=!l&&!v&&h("map",TypeError),y=l||v||d,g=u(function(){var r=this.iterator,t=i(o(this.next,r));if(!(this.done=!!t.done))return s(r,this.mapper,[t.value,this.counter++],!0)});n({target:"Iterator",proto:!0,real:!0,forced:y},{map:function(r){i(this);try{a(r)}catch(r){f(this,"throw",r)}return d?o(d,this,r):new g(c(this),{mapper:r})}})},46455(r,t,e){var n=e(64808),o=e(82150),a=e(70860),i=e(46177),c=e(86845),u=e(55053),s=e(6655),f=e(16263),p=e(59293),h=TypeError,l=p(function(){[].keys().reduce(function(){},void 0)}),v=!l&&s("reduce",h);n({target:"Iterator",proto:!0,real:!0,forced:l||v},{reduce:function(r){i(this);try{a(r)}catch(r){u(this,"throw",r)}var t=arguments.length<2,e=t?void 0:arguments[1];if(v)return f(v,this,t?[r]:[r,e]);var n=c(this),s=0;if(o(n,function(n){t?(t=!1,e=n):e=r(e,n,s),s++},{IS_RECORD:!0}),t)throw new h("Reduce of empty iterator with no initial value");return e}})},12021(r,t,e){var n=e(64808),o=e(33179),a=e(82150),i=e(70860),c=e(46177),u=e(86845),s=e(55053),f=e(6655)("some",TypeError);n({target:"Iterator",proto:!0,real:!0,forced:f},{some:function(r){c(this);try{i(r)}catch(r){s(this,"throw",r)}if(f)return o(f,this,r);var t=u(this),e=0;return a(t,function(t,n){if(r(t,e++))return n()},{IS_RECORD:!0,INTERRUPTED:!0}).stopped}})},98972(r,t,e){var n=e(64808),o=e(46177),a=e(82150),i=e(86845),c=[].push;n({target:"Iterator",proto:!0,real:!0},{toArray:function(){var r=[];return a(i(o(this)),c,{that:r,IS_RECORD:!0}),r}})},97602(r,t,e){var n=e(64808),o=e(19058),a=e(6974),i=e(72485),c=e(52782),u=e(33179),s=e(68039),f=e(48188),p=e(57958),h=e(76151),l=e(13641),v=e(92956),d=e(84634),y=e(59293),g=e(14470),w=e(8953),b=a.JSON,m=a.Number,x=a.SyntaxError,E=b&&b.parse,A=i("Object","keys"),S=Object.getOwnPropertyDescriptor,T=c("".charAt),O=c("".slice),R=c(/./.exec),I=c([].push),k=/^\d$/,_=/^[1-9]$/,M=/^[\d-]$/,D=/^[\t\n\r ]$/,j=function(r,t){var e=new B(r=l(r),0),n=e.parse(),o=n.value,a=e.skip(D,n.end);if(a<r.length)throw new x('Unexpected extra character: "'+T(r,a)+'" after the parsed data at: '+a);return s(t)?C({"":o},"",t,n):o},C=function(r,t,e,n){var o,a,i,c,s,l=r[t],d=n&&l===n.value,y=d&&"string"==typeof n.source?{source:n.source}:{};if(f(l)){var g=p(l),w=d?n.nodes:g?[]:{};if(g)for(o=w.length,i=v(l),c=0;c<i;c++)P(l,c,C(l,""+c,e,c<o?w[c]:void 0));else for(i=v(a=A(l)),c=0;c<i;c++)P(l,s=a[c],C(l,s,e,h(w,s)?w[s]:void 0))}return u(e,r,t,l,y)},P=function(r,t,e){if(o){var n=S(r,t);if(n&&!n.configurable)return}void 0===e?delete r[t]:d(r,t,e)},U=function(r,t,e,n){this.value=r,this.end=t,this.source=e,this.nodes=n},B=function(r,t){this.source=r,this.index=t};B.prototype={fork:function(r){return new B(this.source,r)},parse:function(){var r=this.source,t=this.skip(D,this.index),e=this.fork(t),n=T(r,t);if(R(M,n))return e.number();switch(n){case"{":return e.object();case"[":return e.array();case'"':return e.string();case"t":return e.keyword(!0);case"f":return e.keyword(!1);case"n":return e.keyword(null)}throw new x('Unexpected character: "'+n+'" at: '+t)},node:function(r,t,e,n,o){return new U(t,n,r?null:O(this.source,e,n),o)},object:function(){for(var r=this.source,t=this.index+1,e=!1,n={},o={};t<r.length;){if("}"===T(r,t=this.until(['"',"}"],t))&&!e){t++;break}var a=this.fork(t).string(),i=a.value;t=a.end,t=this.until([":"],t)+1,t=this.skip(D,t),d(o,i,a=this.fork(t).parse()),d(n,i,a.value);var c=T(r,t=this.until([",","}"],a.end));if(","===c)e=!0,t++;else if("}"===c){t++;break}}return this.node(1,n,this.index,t,o)},array:function(){for(var r=this.source,t=this.index+1,e=!1,n=[],o=[];t<r.length;){if("]"===T(r,t=this.skip(D,t))&&!e){t++;break}var a=this.fork(t).parse();if(I(o,a),I(n,a.value),","===T(r,t=this.until([",","]"],a.end)))e=!0,t++;else if("]"===T(r,t)){t++;break}}return this.node(1,n,this.index,t,o)},string:function(){var r=this.index,t=g(this.source,this.index+1);return this.node(0,t.value,r,t.end)},number:function(){var r=this.source,t=this.index,e=t;if("-"===T(r,e)&&e++,"0"===T(r,e))e++;else if(R(_,T(r,e)))e=this.skip(k,e+1);else throw new x("Failed to parse number at: "+e);if("."===T(r,e)&&(e=this.skip(k,e+1)),("e"===T(r,e)||"E"===T(r,e))&&(("+"===T(r,++e)||"-"===T(r,e))&&e++,e===(e=this.skip(k,e))))throw new x("Failed to parse number's exponent value at: "+e);return this.node(0,m(O(r,t,e)),t,e)},keyword:function(r){var t=""+r,e=this.index,n=e+t.length;if(O(this.source,e,n)!==t)throw new x("Failed to parse value at: "+e);return this.node(0,r,e,n)},skip:function(r,t){for(var e=this.source;t<e.length&&R(r,T(e,t));t++);return t},until:function(r,t){t=this.skip(D,t);for(var e=T(this.source,t),n=0;n<r.length;n++)if(r[n]===e)return t;throw new x('Unexpected character: "'+e+'" at: '+t)}};var F=y(function(){var r,t="9007199254740993";return E(t,function(t,e,n){r=n.source}),r!==t}),N=w&&!y(function(){return 1/E("-0 ")!=-1/0});n({target:"JSON",stat:!0,forced:F},{parse:function(r,t){return N&&!s(t)?E(r):j(r,t)}})},67548(r,t,e){var n=e(64808),o=e(95474),a=e(59293);n({target:"Set",proto:!0,real:!0,forced:!e(24206)("difference",function(r){return 0===r.size})||a(function(){var r=new Set([1,2,3,4]);return 3!==r.difference({size:1,has:function(){return!0},keys:function(){var t=0;return{next:function(){var e=t++>1;return r.has(1)&&r.clear(),{done:e,value:2}}}}}).size})},{difference:o})},70954(r,t,e){var n=e(64808),o=e(59293),a=e(48396);n({target:"Set",proto:!0,real:!0,forced:!e(24206)("intersection",function(r){return 2===r.size&&r.has(1)&&r.has(2)})||o(function(){return"3,2"!==String(Array.from(new Set([1,2,3]).intersection(new Set([3,2]))))})},{intersection:a})},98803(r,t,e){var n=e(64808),o=e(46839);n({target:"Set",proto:!0,real:!0,forced:!e(24206)("isDisjointFrom",function(r){return!r})},{isDisjointFrom:o})},79162(r,t,e){var n=e(64808),o=e(43388);n({target:"Set",proto:!0,real:!0,forced:!e(24206)("isSubsetOf",function(r){return r})},{isSubsetOf:o})},15385(r,t,e){var n=e(64808),o=e(53965);n({target:"Set",proto:!0,real:!0,forced:!e(24206)("isSupersetOf",function(r){return!r})},{isSupersetOf:o})},39342(r,t,e){var n=e(64808),o=e(13264),a=e(29617);n({target:"Set",proto:!0,real:!0,forced:!e(24206)("symmetricDifference")||!a("symmetricDifference")},{symmetricDifference:o})},69152(r,t,e){var n=e(64808),o=e(21898),a=e(29617);n({target:"Set",proto:!0,real:!0,forced:!e(24206)("union")||!a("union")},{union:o})},62839(r,t,e){var n=e(64808),o=e(52782),a=e(15804),i=e(65825),c=e(13641),u=e(59293),s=o("".charAt);n({target:"String",proto:!0,forced:u(function(){return"\uD842"!=="𠮷".at(-2)})},{at:function(r){var t=c(a(this)),e=t.length,n=i(r),o=n>=0?n:e+n;return o<0||o>=e?void 0:s(t,o)}})},25447(r,t,e){var n=e(6974),o=e(93693),a=e(33919).f,i=e(43069).f,c=n.Symbol;if(o("asyncDispose"),c){var u=i(c,"asyncDispose");u.enumerable&&u.configurable&&u.writable&&a(c,"asyncDispose",{value:u.value,enumerable:!1,configurable:!1,writable:!1})}},44622(r,t,e){var n=e(6974),o=e(93693),a=e(33919).f,i=e(43069).f,c=n.Symbol;if(o("dispose"),c){var u=i(c,"dispose");u.enumerable&&u.configurable&&u.writable&&a(c,"dispose",{value:u.value,enumerable:!1,configurable:!1,writable:!1})}},22742(r,t,e){var n=e(97882),o=e(92956),a=e(65825),i=n.aTypedArray;(0,n.exportTypedArrayMethod)("at",function(r){var t=i(this),e=o(t),n=a(r),c=n>=0?n:e+n;return c<0||c>=e?void 0:t[c]})},62148(r,t,e){var n=e(97882),o=e(61857).findLastIndex,a=n.aTypedArray;(0,n.exportTypedArrayMethod)("findLastIndex",function(r){return o(a(this),r,arguments.length>1?arguments[1]:void 0)})},37553(r,t,e){var n=e(97882),o=e(61857).findLast,a=n.aTypedArray;(0,n.exportTypedArrayMethod)("findLast",function(r){return o(a(this),r,arguments.length>1?arguments[1]:void 0)})},89055(r,t,e){var n=e(6974),o=e(33179),a=e(97882),i=e(92956),c=e(7751),u=e(72095),s=e(59293),f=n.RangeError,p=n.Int8Array,h=p&&p.prototype,l=h&&h.set,v=a.aTypedArray,d=a.exportTypedArrayMethod,y=!s(function(){var r=new Uint8ClampedArray(2);return o(l,r,{length:1,0:3},1),3!==r[1]}),g=y&&a.NATIVE_ARRAY_BUFFER_VIEWS&&s(function(){var r=new p(2);return r.set(1),r.set("2",1),0!==r[0]||2!==r[1]});d("set",function(r){v(this);var t=c(arguments.length>1?arguments[1]:void 0,1),e=u(r);if(y)return o(l,this,e,t);var n=this.length,a=i(e),s=0;if(a+t>n)throw new f("Wrong length");for(;s<a;)this[t+s]=e[s++]},!y||g)},12205(r,t,e){var n=e(4062),o=e(97882),a=o.aTypedArray,i=o.exportTypedArrayMethod,c=o.getTypedArrayConstructor;i("toReversed",function(){return n(a(this),c(this))})},65850(r,t,e){var n=e(97882),o=e(52782),a=e(70860),i=e(11372),c=n.aTypedArray,u=n.getTypedArrayConstructor,s=n.exportTypedArrayMethod,f=o(n.TypedArrayPrototype.sort);s("toSorted",function(r){void 0!==r&&a(r);var t=c(this);return f(i(u(t),t),r)})},65135(r,t,e){var n=e(49718),o=e(97882),a=e(63633),i=e(65825),c=e(32216),u=o.aTypedArray,s=o.getTypedArrayConstructor,f=o.exportTypedArrayMethod,p=function(){try{new Int8Array(1).with(2,{valueOf:function(){throw 8}})}catch(r){return 8===r}}(),h=p&&function(){try{new Int8Array(1).with(-.5,1)}catch(r){return!0}}();f("with",{with:function(r,t){var e=u(this),o=i(r),f=a(e)?c(t):+t;return n(e,s(e),o,f)}}.with,!p||h)},23774(r,t,e){var n=e(64808),o=e(6974),a=e(43777),i=e(36476),c=o.Uint8Array,u=!c||!c.prototype.setFromBase64||!function(){var r=new c([255,255,255,255,255]);try{r.setFromBase64("",null);return}catch(r){}try{r.setFromBase64("a");return}catch(r){}try{r.setFromBase64("MjYyZg===")}catch(t){return 50===r[0]&&54===r[1]&&50===r[2]&&255===r[3]&&255===r[4]}}();c&&n({target:"Uint8Array",proto:!0,forced:u},{setFromBase64:function(r){i(this);var t=a(r,arguments.length>1?arguments[1]:void 0,this,this.length);return{read:t.read,written:t.written}}})},15736(r,t,e){var n=e(64808),o=e(6974),a=e(63145),i=e(36476),c=e(30315),u=e(30081);o.Uint8Array&&n({target:"Uint8Array",proto:!0},{setFromHex:function(r){i(this),a(r),c(this.buffer);var t=u(r,this).read;return{read:t,written:t/2}}})},21920(r,t,e){var n=e(64808),o=e(6974),a=e(52782),i=e(88302),c=e(36476),u=e(30315),s=e(38634),f=e(18594),p=s.i2c,h=s.i2cUrl,l=a("".charAt),v=o.Uint8Array,d=!v||!v.prototype.toBase64||!function(){try{new v().toBase64(null)}catch(r){return!0}}();v&&n({target:"Uint8Array",proto:!0,forced:d},{toBase64:function(){var r,t=c(this),e=arguments.length?i(arguments[0]):void 0,n="base64"===f(e)?p:h,o=!!e&&!!e.omitPadding;u(this.buffer);for(var a="",s=0,v=t.length,d=function(t){return l(n,r>>6*t&63)};s+2<v;s+=3)r=(t[s]<<16)+(t[s+1]<<8)+t[s+2],a+=d(3)+d(2)+d(1)+d(0);return s+2===v?(r=(t[s]<<16)+(t[s+1]<<8),a+=d(3)+d(2)+d(1)+(o?"":"=")):s+1===v&&(r=t[s]<<16,a+=d(3)+d(2)+(o?"":"==")),a}})},77130(r,t,e){var n=e(64808),o=e(6974),a=e(52782),i=e(36476),c=e(30315),u=a(1.1.toString),s=o.Uint8Array,f=!s||!s.prototype.toHex||!function(){try{var r=new s([255,255,255,255,255,255,255,255]);return"ffffffffffffffff"===r.toHex()}catch(r){return!1}}();s&&n({target:"Uint8Array",proto:!0,forced:f},{toHex:function(){i(this),c(this.buffer);for(var r="",t=0,e=this.length;t<e;t++){var n=u(this[t],16);r+=1===n.length?"0"+n:n}return r}})},27105(r,t,e){var n=e(64808),o=e(50473),a=e(69681),i=e(80081),c=e(76151),u=e(75869),s=e(1036),f=e(81201),p=u("toStringTag"),h=TypeError,l=function(){if(o(this,s),a(this)===s)throw new h("Abstract class AsyncIterator not directly constructable")};l.prototype=s,c(s,p)||i(s,p,"AsyncIterator"),(f||!c(s,"constructor")||s.constructor===Object)&&i(s,"constructor",l),n({global:!0,constructor:!0,forced:f},{AsyncIterator:l})},18232(r,t,e){var n=e(64808),o=e(37693).toArray;n({target:"AsyncIterator",proto:!0,real:!0,forced:!0},{toArray:function(){return o(this,void 0,[])}})},97903(r,t,e){var n=e(75869),o=e(33919).f,a=n("metadata"),i=Function.prototype;void 0===i[a]&&o(i,a,{value:null})},21301(r,t,e){e(97602)},99811(r,t,e){var n=e(64808),o=e(11928),a=e(74694).remove;n({target:"Map",proto:!0,real:!0,forced:!0},{deleteAll:function(){for(var r,t=o(this),e=!0,n=0,i=arguments.length;n<i;n++)r=a(t,arguments[n]),e=e&&r;return!!e}})},40009(r,t,e){var n=e(64808),o=e(11928),a=e(74694),i=a.get,c=a.has,u=a.set;n({target:"Map",proto:!0,real:!0,forced:!0},{emplace:function(r,t){var e,n,a=o(this);return c(a,r)?(e=i(a,r),"update"in t&&(e=t.update(e,r,a),u(a,r,e)),e):(n=t.insert(r,a),u(a,r,n),n)}})},13035(r,t,e){var n=e(64808),o=e(92254),a=e(11928),i=e(58881);n({target:"Map",proto:!0,real:!0,forced:!0},{every:function(r){var t=a(this),e=o(r,arguments.length>1?arguments[1]:void 0);return!1!==i(t,function(r,n){if(!e(r,n,t))return!1},!0)}})},13412(r,t,e){var n=e(64808),o=e(92254),a=e(11928),i=e(74694),c=e(58881),u=i.Map,s=i.set;n({target:"Map",proto:!0,real:!0,forced:!0},{filter:function(r){var t=a(this),e=o(r,arguments.length>1?arguments[1]:void 0),n=new u;return c(t,function(r,o){e(r,o,t)&&s(n,o,r)}),n}})},64955(r,t,e){var n=e(64808),o=e(92254),a=e(11928),i=e(58881);n({target:"Map",proto:!0,real:!0,forced:!0},{findKey:function(r){var t=a(this),e=o(r,arguments.length>1?arguments[1]:void 0),n=i(t,function(r,n){if(e(r,n,t))return{key:n}},!0);return n&&n.key}})},17973(r,t,e){var n=e(64808),o=e(92254),a=e(11928),i=e(58881);n({target:"Map",proto:!0,real:!0,forced:!0},{find:function(r){var t=a(this),e=o(r,arguments.length>1?arguments[1]:void 0),n=i(t,function(r,n){if(e(r,n,t))return{value:r}},!0);return n&&n.value}})},23306(r,t,e){var n=e(64808),o=e(70860),a=e(11928),i=e(74694),c=e(81201),u=i.get,s=i.has,f=i.set;n({target:"Map",proto:!0,real:!0,forced:c},{getOrInsertComputed:function(r,t){if(a(this),o(t),s(this,r))return u(this,r);0===r&&1/r==-1/0&&(r=0);var e=t(r);return f(this,r,e),e}})},91016(r,t,e){var n=e(64808),o=e(11928),a=e(74694),i=e(81201),c=a.get,u=a.has,s=a.set;n({target:"Map",proto:!0,real:!0,forced:i},{getOrInsert:function(r,t){return u(o(this),r)?c(this,r):(s(this,r,t),t)}})},76619(r,t,e){var n=e(64808),o=e(48079),a=e(11928),i=e(58881);n({target:"Map",proto:!0,real:!0,forced:!0},{includes:function(r){return!0===i(a(this),function(t){if(o(t,r))return!0},!0)}})},57857(r,t,e){var n=e(64808),o=e(11928),a=e(58881);n({target:"Map",proto:!0,real:!0,forced:!0},{keyOf:function(r){var t=a(o(this),function(t,e){if(t===r)return{key:e}},!0);return t&&t.key}})},9975(r,t,e){var n=e(64808),o=e(92254),a=e(11928),i=e(74694),c=e(58881),u=i.Map,s=i.set;n({target:"Map",proto:!0,real:!0,forced:!0},{mapKeys:function(r){var t=a(this),e=o(r,arguments.length>1?arguments[1]:void 0),n=new u;return c(t,function(r,o){s(n,e(r,o,t),r)}),n}})},93885(r,t,e){var n=e(64808),o=e(92254),a=e(11928),i=e(74694),c=e(58881),u=i.Map,s=i.set;n({target:"Map",proto:!0,real:!0,forced:!0},{mapValues:function(r){var t=a(this),e=o(r,arguments.length>1?arguments[1]:void 0),n=new u;return c(t,function(r,o){s(n,o,e(r,o,t))}),n}})},812(r,t,e){var n=e(64808),o=e(11928),a=e(82150),i=e(74694).set;n({target:"Map",proto:!0,real:!0,arity:1,forced:!0},{merge:function(r){for(var t=o(this),e=arguments.length,n=0;n<e;)a(arguments[n++],function(r,e){i(t,r,e)},{AS_ENTRIES:!0});return t}})},74180(r,t,e){var n=e(64808),o=e(70860),a=e(11928),i=e(58881),c=TypeError;n({target:"Map",proto:!0,real:!0,forced:!0},{reduce:function(r){var t=a(this),e=arguments.length<2,n=e?void 0:arguments[1];if(o(r),i(t,function(o,a){e?(e=!1,n=o):n=r(n,o,a,t)}),e)throw new c("Reduce of empty map with no initial value");return n}})},994(r,t,e){var n=e(64808),o=e(92254),a=e(11928),i=e(58881);n({target:"Map",proto:!0,real:!0,forced:!0},{some:function(r){var t=a(this),e=o(r,arguments.length>1?arguments[1]:void 0);return!0===i(t,function(r,n){if(e(r,n,t))return!0},!0)}})},4267(r,t,e){var n=e(64808),o=e(70860),a=e(11928),i=e(74694),c=TypeError,u=i.get,s=i.has,f=i.set;n({target:"Map",proto:!0,real:!0,forced:!0},{update:function(r,t){var e=a(this),n=arguments.length;o(t);var i=s(e,r);if(!i&&n<3)throw new c("Updating absent value");var p=i?u(e,r):o(n>2?arguments[2]:void 0)(r,e);return f(e,r,t(p,r,e)),e}})},61955(r,t,e){var n=e(64808),o=e(47234),a=e(58260).add;n({target:"Set",proto:!0,real:!0,forced:!0},{addAll:function(){for(var r=o(this),t=0,e=arguments.length;t<e;t++)a(r,arguments[t]);return r}})},82689(r,t,e){var n=e(64808),o=e(47234),a=e(58260).remove;n({target:"Set",proto:!0,real:!0,forced:!0},{deleteAll:function(){for(var r,t=o(this),e=!0,n=0,i=arguments.length;n<i;n++)r=a(t,arguments[n]),e=e&&r;return!!e}})},84847(r,t,e){var n=e(64808),o=e(33179),a=e(11708),i=e(95474);n({target:"Set",proto:!0,real:!0,forced:!0},{difference:function(r){return o(i,this,a(r))}})},16285(r,t,e){var n=e(64808),o=e(92254),a=e(47234),i=e(25475);n({target:"Set",proto:!0,real:!0,forced:!0},{every:function(r){var t=a(this),e=o(r,arguments.length>1?arguments[1]:void 0);return!1!==i(t,function(r){if(!e(r,r,t))return!1},!0)}})},20602(r,t,e){var n=e(64808),o=e(92254),a=e(47234),i=e(58260),c=e(25475),u=i.Set,s=i.add;n({target:"Set",proto:!0,real:!0,forced:!0},{filter:function(r){var t=a(this),e=o(r,arguments.length>1?arguments[1]:void 0),n=new u;return c(t,function(r){e(r,r,t)&&s(n,r)}),n}})},33307(r,t,e){var n=e(64808),o=e(92254),a=e(47234),i=e(25475);n({target:"Set",proto:!0,real:!0,forced:!0},{find:function(r){var t=a(this),e=o(r,arguments.length>1?arguments[1]:void 0),n=i(t,function(r){if(e(r,r,t))return{value:r}},!0);return n&&n.value}})},94341(r,t,e){var n=e(64808),o=e(33179),a=e(11708),i=e(48396);n({target:"Set",proto:!0,real:!0,forced:!0},{intersection:function(r){return o(i,this,a(r))}})},7270(r,t,e){var n=e(64808),o=e(33179),a=e(11708),i=e(46839);n({target:"Set",proto:!0,real:!0,forced:!0},{isDisjointFrom:function(r){return o(i,this,a(r))}})},44997(r,t,e){var n=e(64808),o=e(33179),a=e(11708),i=e(43388);n({target:"Set",proto:!0,real:!0,forced:!0},{isSubsetOf:function(r){return o(i,this,a(r))}})},50364(r,t,e){var n=e(64808),o=e(33179),a=e(11708),i=e(53965);n({target:"Set",proto:!0,real:!0,forced:!0},{isSupersetOf:function(r){return o(i,this,a(r))}})},79780(r,t,e){var n=e(64808),o=e(52782),a=e(47234),i=e(25475),c=e(13641),u=o([].join),s=o([].push);n({target:"Set",proto:!0,real:!0,forced:!0},{join:function(r){var t=a(this),e=void 0===r?",":c(r),n=[];return i(t,function(r){s(n,r)}),u(n,e)}})},80372(r,t,e){var n=e(64808),o=e(92254),a=e(47234),i=e(58260),c=e(25475),u=i.Set,s=i.add;n({target:"Set",proto:!0,real:!0,forced:!0},{map:function(r){var t=a(this),e=o(r,arguments.length>1?arguments[1]:void 0),n=new u;return c(t,function(r){s(n,e(r,r,t))}),n}})},72498(r,t,e){var n=e(64808),o=e(70860),a=e(47234),i=e(25475),c=TypeError;n({target:"Set",proto:!0,real:!0,forced:!0},{reduce:function(r){var t=a(this),e=arguments.length<2,n=e?void 0:arguments[1];if(o(r),i(t,function(o){e?(e=!1,n=o):n=r(n,o,o,t)}),e)throw new c("Reduce of empty set with no initial value");return n}})},37928(r,t,e){var n=e(64808),o=e(92254),a=e(47234),i=e(25475);n({target:"Set",proto:!0,real:!0,forced:!0},{some:function(r){var t=a(this),e=o(r,arguments.length>1?arguments[1]:void 0);return!0===i(t,function(r){if(e(r,r,t))return!0},!0)}})},25597(r,t,e){var n=e(64808),o=e(33179),a=e(11708),i=e(13264);n({target:"Set",proto:!0,real:!0,forced:!0},{symmetricDifference:function(r){return o(i,this,a(r))}})},92321(r,t,e){var n=e(64808),o=e(33179),a=e(11708),i=e(21898);n({target:"Set",proto:!0,real:!0,forced:!0},{union:function(r){return o(i,this,a(r))}})},66876(r,t,e){var n=e(64808),o=e(68445).charAt,a=e(15804),i=e(65825),c=e(13641);n({target:"String",proto:!0,forced:!0},{at:function(r){var t=c(a(this)),e=t.length,n=i(r),u=n>=0?n:e+n;return u<0||u>=e?void 0:o(t,u)}})},20959(r,t,e){e(93693)("metadata")},5876(r,t,e){var n=e(97882),o=e(23831).filterReject,a=e(68154),i=n.aTypedArray;(0,n.exportTypedArrayMethod)("filterReject",function(r){var t=o(i(this),r,arguments.length>1?arguments[1]:void 0);return a(this,t)},!0)},94359(r,t,e){var n=e(97882),o=e(18663),a=n.aTypedArray,i=n.getTypedArrayConstructor;(0,n.exportTypedArrayMethod)("groupBy",function(r){var t=arguments.length>1?arguments[1]:void 0;return o(a(this),r,t,i)},!0)},28016(r,t,e){var n=e(97882),o=e(92956),a=e(63633),i=e(3108),c=e(32216),u=e(65825),s=n.aTypedArray,f=n.getTypedArrayConstructor,p=n.exportTypedArrayMethod,h=Math.max,l=Math.min;p("toSpliced",function(r,t){var e,n,p,v,d,y,g,w=s(this),b=f(w),m=o(w),x=i(r,m),E=arguments.length,A=0;if(0===E)e=n=0;else if(1===E)e=0,n=m-x;else if(n=l(h(u(t),0),m-x),e=E-2){p=a(v=new b(e));for(var S=2;S<E;S++)d=arguments[S],v[S-2]=p?c(d):+d}for(g=new b(y=m+e-n);A<x;A++)g[A]=w[A];for(;A<x+e;A++)g[A]=v[A-x];for(;A<y;A++)g[A]=w[A+n-e];return g},!0)},38641(r,t,e){var n=e(52782),o=e(97882),a=e(11372),i=e(80099),c=o.aTypedArray,u=o.getTypedArrayConstructor,s=o.exportTypedArrayMethod,f=n(i);s("uniqueBy",function(r){return c(this),a(u(this),f(this,r))},!0)},82247(r,t,e){e(23774)},11839(r,t,e){e(15736)},56109(r,t,e){e(21920)},63589(r,t,e){e(77130)},74678(r,t,e){var n=e(64808),o=e(60175),a=e(96717).remove;n({target:"WeakMap",proto:!0,real:!0,forced:!0},{deleteAll:function(){for(var r,t=o(this),e=!0,n=0,i=arguments.length;n<i;n++)r=a(t,arguments[n]),e=e&&r;return!!e}})},55910(r,t,e){var n=e(64808),o=e(60175),a=e(96717),i=a.get,c=a.has,u=a.set;n({target:"WeakMap",proto:!0,real:!0,forced:!0},{emplace:function(r,t){var e,n,a=o(this);return c(a,r)?(e=i(a,r),"update"in t&&(e=t.update(e,r,a),u(a,r,e)),e):(n=t.insert(r,a),u(a,r,n),n)}})},72919(r,t,e){var n=e(64808),o=e(70860),a=e(60175),i=e(38398),c=e(96717),u=e(81201),s=c.get,f=c.has,p=c.set;n({target:"WeakMap",proto:!0,real:!0,forced:u||!function(){try{WeakMap.prototype.getOrInsertComputed&&new WeakMap().getOrInsertComputed(1,function(){throw 1})}catch(r){return r instanceof TypeError}}()},{getOrInsertComputed:function(r,t){if(a(this),i(r),o(t),f(this,r))return s(this,r);var e=t(r);return p(this,r,e),e}})},76691(r,t,e){var n=e(64808),o=e(60175),a=e(96717),i=e(81201),c=a.get,u=a.has,s=a.set;n({target:"WeakMap",proto:!0,real:!0,forced:i},{getOrInsert:function(r,t){return u(o(this),r)?c(this,r):(s(this,r,t),t)}})},78872(r,t,e){var n=e(64808),o=e(25969),a=e(48219).add;n({target:"WeakSet",proto:!0,real:!0,forced:!0},{addAll:function(){for(var r=o(this),t=0,e=arguments.length;t<e;t++)a(r,arguments[t]);return r}})},60972(r,t,e){var n=e(64808),o=e(25969),a=e(48219).remove;n({target:"WeakSet",proto:!0,real:!0,forced:!0},{deleteAll:function(){for(var r,t=o(this),e=!0,n=0,i=arguments.length;n<i;n++)r=a(t,arguments[n]),e=e&&r;return!!e}})},32037(r,t,e){var n=e(64808),o=e(6974),a=e(72485),i=e(56582),c=e(33919).f,u=e(76151),s=e(50473),f=e(3153),p=e(14901),h=e(94864),l=e(50747),v=e(19058),d=e(81201),y="DOMException",g=a("Error"),w=a(y),b=function(){s(this,m);var r=arguments.length,t=p(r<1?void 0:arguments[0]),e=p(r<2?void 0:arguments[1],"Error"),n=new w(t,e),o=new g(t);return o.name=y,c(n,"stack",i(1,l(o.stack,1))),f(n,this,b),n},m=b.prototype=w.prototype,x="stack"in new g(y),E="stack"in new w(1,2),A=w&&v&&Object.getOwnPropertyDescriptor(o,y),S=!!A&&!(A.writable&&A.configurable),T=x&&!S&&!E;n({global:!0,constructor:!0,forced:d||T},{DOMException:T?b:w});var O=a(y),R=O.prototype;if(R.constructor!==O){for(var I in d||c(R,"constructor",i(1,O)),h)if(u(h,I)){var k=h[I],_=k.s;u(O,_)||c(O,_,i(6,k.c))}}},95600(r,t,e){var n=e(81201),o=e(64808),a=e(6974),i=e(72485),c=e(52782),u=e(59293),s=e(702),f=e(68039),p=e(59811),h=e(3563),l=e(48188),v=e(12131),d=e(82150),y=e(46177),g=e(73485),w=e(76151),b=e(84634),m=e(80081),x=e(92956),E=e(26406),A=e(41148),S=e(74694),T=e(58260),O=e(25475),R=e(47541),I=e(96041),k=e(75698),_=a.Object,M=a.Array,D=a.Date,j=a.Error,C=a.TypeError,P=a.PerformanceMark,U=i("DOMException"),B=S.Map,F=S.has,N=S.get,L=S.set,z=T.Set,W=T.add,V=T.has,H=i("Object","keys"),Y=c([].push),G=c((!0).valueOf),$=c(1.1.valueOf),q=c("".valueOf),K=c(D.prototype.getTime),Q=s("structuredClone"),X="DataCloneError",J="Transferring",Z=function(r){return!u(function(){var t=new a.Set([7]),e=r(t),n=r(_(7));return e===t||!e.has(7)||!l(n)||7!=+n})&&r},rr=function(r,t){return!u(function(){var e=new t,n=r({a:e,b:e});return!(n&&n.a===n.b&&n.a instanceof t&&n.a.stack===e.stack)})},rt=a.structuredClone,re=n||!rr(rt,j)||!rr(rt,U)||!!u(function(){var r=rt(new a.AggregateError([1],Q,{cause:3}));return"AggregateError"!==r.name||1!==r.errors[0]||r.message!==Q||3!==r.cause}),rn=!rt&&Z(function(r){return new P(Q,{detail:r}).detail}),ro=Z(rt)||rn,ra=function(r){throw new U("Uncloneable type: "+r,X)},ri=function(r,t){throw new U((t||"Cloning")+" of "+r+" cannot be properly polyfilled in this engine",X)},rc=function(r,t){return ro||ri(t),ro(r)},ru=function(){var r;try{r=new a.DataTransfer}catch(t){try{r=new a.ClipboardEvent("").clipboardData}catch(r){}}return r&&r.items&&r.files?r:null},rs=function(r,t,e){if(F(t,r))return N(t,r);if("SharedArrayBuffer"===(e||g(r)))n=ro?ro(r):r;else{var n,o,i,c,u,s,p=a.DataView;p||f(r.slice)||ri("ArrayBuffer");try{if(f(r.slice)&&!r.resizable)n=r.slice(0);else for(o=r.byteLength,i=("maxByteLength"in r)?{maxByteLength:r.maxByteLength}:void 0,n=new ArrayBuffer(o,i),c=new p(r),u=new p(n),s=0;s<o;s++)u.setUint8(s,c.getUint8(s))}catch(r){throw new U("ArrayBuffer is detached",X)}}return L(t,r,n),n},rf=function(r,t,e,n,o){var i=a[t];return l(i)||ri(t),new i(rs(r.buffer,o),e,n)},rp=function(r,t){if(v(r)&&ra("Symbol"),!l(r))return r;if(t){if(F(t,r))return N(t,r)}else t=new B;var e,n,o,c,u,s,p,h,d=g(r);switch(d){case"Array":o=M(x(r));break;case"Object":o={};break;case"Map":o=new B;break;case"Set":o=new z;break;case"RegExp":o=new RegExp(r.source,A(r));break;case"Error":switch(n=r.name){case"AggregateError":o=new(i(n))([]);break;case"EvalError":case"RangeError":case"ReferenceError":case"SuppressedError":case"SyntaxError":case"TypeError":case"URIError":o=new(i(n));break;case"CompileError":case"LinkError":case"RuntimeError":o=new(i("WebAssembly",n));break;default:o=new j}break;case"DOMException":o=new U(r.message,r.name);break;case"ArrayBuffer":case"SharedArrayBuffer":o=rs(r,t,d);break;case"DataView":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float16Array":case"Float32Array":case"Float64Array":case"BigInt64Array":case"BigUint64Array":s="DataView"===d?r.byteLength:r.length,o=rf(r,d,r.byteOffset,s,t);break;case"DOMQuad":try{o=new DOMQuad(rp(r.p1,t),rp(r.p2,t),rp(r.p3,t),rp(r.p4,t))}catch(t){o=rc(r,d)}break;case"File":if(ro)try{o=ro(r),g(o)!==d&&(o=void 0)}catch(r){}if(!o)try{o=new File([r],r.name,r)}catch(r){}o||ri(d);break;case"FileList":if(c=ru()){for(u=0,s=x(r);u<s;u++)c.items.add(rp(r[u],t));o=c.files}else o=rc(r,d);break;case"ImageData":try{o=new ImageData(rp(r.data,t),r.width,r.height,{colorSpace:r.colorSpace})}catch(t){o=rc(r,d)}break;default:if(ro)o=ro(r);else switch(d){case"BigInt":o=_(r.valueOf());break;case"Boolean":o=_(G(r));break;case"Number":o=_($(r));break;case"String":o=_(q(r));break;case"Date":o=new D(K(r));break;case"Blob":try{o=r.slice(0,r.size,r.type)}catch(r){ri(d)}break;case"DOMPoint":case"DOMPointReadOnly":e=a[d];try{o=e.fromPoint?e.fromPoint(r):new e(r.x,r.y,r.z,r.w)}catch(r){ri(d)}break;case"DOMRect":case"DOMRectReadOnly":e=a[d];try{o=e.fromRect?e.fromRect(r):new e(r.x,r.y,r.width,r.height)}catch(r){ri(d)}break;case"DOMMatrix":case"DOMMatrixReadOnly":e=a[d];try{o=e.fromMatrix?e.fromMatrix(r):new e(r)}catch(r){ri(d)}break;case"AudioData":case"VideoFrame":f(r.clone)||ri(d);try{o=r.clone()}catch(r){ra(d)}break;case"CropTarget":case"CryptoKey":case"FileSystemDirectoryHandle":case"FileSystemFileHandle":case"FileSystemHandle":case"GPUCompilationInfo":case"GPUCompilationMessage":case"ImageBitmap":case"RTCCertificate":case"WebAssembly.Module":ri(d);default:ra(d)}}switch(L(t,r,o),d){case"Array":case"Object":for(u=0,s=x(p=H(r));u<s;u++)h=p[u],b(o,h,rp(r[h],t));break;case"Map":r.forEach(function(r,e){L(o,rp(e,t),rp(r,t))});break;case"Set":r.forEach(function(r){W(o,rp(r,t))});break;case"Error":m(o,"message",rp(r.message,t)),w(r,"cause")&&m(o,"cause",rp(r.cause,t)),"AggregateError"===n?o.errors=rp(r.errors,t):"SuppressedError"===n&&(o.error=rp(r.error,t),o.suppressed=rp(r.suppressed,t));case"DOMException":I&&m(o,"stack",rp(r.stack,t))}return o},rh=function(r,t){if(!l(r))throw new C("Transfer option cannot be converted to a sequence");var e,n,o,i,c,u=[];d(r,function(r){Y(u,y(r))});for(var s=0,h=x(u),v=new z;s<h;){if("ArrayBuffer"===(n=g(e=u[s++]))?V(v,e):F(t,e))throw new U("Duplicate transferable",X);if("ArrayBuffer"===n){W(v,e);continue}if(k)i=rt(e,{transfer:[e]});else switch(n){case"ImageBitmap":p(o=a.OffscreenCanvas)||ri(n,J);try{(c=new o(e.width,e.height)).getContext("bitmaprenderer").transferFromImageBitmap(e),i=c.transferToImageBitmap()}catch(r){}break;case"AudioData":case"VideoFrame":f(e.clone)&&f(e.close)||ri(n,J);try{i=e.clone(),e.close()}catch(r){}break;case"MediaSourceHandle":case"MessagePort":case"MIDIAccess":case"OffscreenCanvas":case"ReadableStream":case"RTCDataChannel":case"TransformStream":case"WebTransportReceiveStream":case"WebTransportSendStream":case"WritableStream":ri(n,J)}if(void 0===i)throw new U("This object cannot be transferred: "+n,X);L(t,e,i)}return v},rl=function(r){O(r,function(r){k?ro(r,{transfer:[r]}):f(r.transfer)?r.transfer():R?R(r):ri("ArrayBuffer",J)})};o({global:!0,enumerable:!0,sham:!k,forced:re},{structuredClone:function(r){var t,e,n=E(arguments.length,1)>1&&!h(arguments[1])?y(arguments[1]):void 0,o=n?n.transfer:void 0;void 0!==o&&(e=rh(o,t=new B));var a=rp(r,t);return e&&rl(e),a}})},52205(r,t,e){var n=e(59430),o=e(52782),a=e(13641),i=e(26406),c=URLSearchParams,u=c.prototype,s=o(u.append),f=o(u.delete),p=o(u.forEach),h=o([].push),l=new c("a=1&a=2&b=3");l.delete("a",1),l.delete("b",void 0),l+""!="a=2"&&n(u,"delete",function(r){var t,e=arguments.length,n=e<2?void 0:arguments[1];if(e&&void 0===n)return f(this,r);var o=[];p(this,function(r,t){h(o,{key:t,value:r})}),i(e,1);for(var c=a(r),u=a(n),l=0,v=0,d=!1,y=o.length;l<y;)t=o[l++],d||t.key===c?(d=!0,f(this,t.key)):v++;for(;v<y;)((t=o[v++]).key!==c||t.value!==u)&&s(this,t.key,t.value)},{enumerable:!0,unsafe:!0})},40768(r,t,e){var n=e(59430),o=e(52782),a=e(13641),i=e(26406),c=URLSearchParams,u=c.prototype,s=o(u.getAll),f=o(u.has),p=new c("a=1");(p.has("a",2)||!p.has("a",void 0))&&n(u,"has",function(r){var t=arguments.length,e=t<2?void 0:arguments[1];if(t&&void 0===e)return f(this,r);var n=s(this,r);i(t,1);for(var o=a(e),c=0;c<n.length;)if(n[c++]===o)return!0;return!1},{enumerable:!0,unsafe:!0})},76235(r,t,e){var n=e(19058),o=e(52782),a=e(7108),i=URLSearchParams.prototype,c=o(i.forEach);!n||"size"in i||a(i,"size",{get:function(){var r=0;return c(this,function(){r++}),r},configurable:!0,enumerable:!0})},3718(r,t,e){function n(r,t){if(t.has(r))throw TypeError("Cannot initialize the same private elements twice on an object")}e.d(t,{_:()=>n})},90122(r,t,e){function n(r,t){return t.get?t.get.call(r):t.value}e.d(t,{_:()=>n})},99830(r,t,e){function n(r,t,e){if(t.set)t.set.call(r,e);else{if(!t.writable)throw TypeError("attempted to set read only private field");t.value=e}}e.d(t,{_:()=>n})},18543(r,t,e){function n(r,t,e){if(!t.has(r))throw TypeError("attempted to "+e+" private field on non-instance");return t.get(r)}e.d(t,{_:()=>n})},82810(r,t,e){if(410==e.j)var n=e(90122);if(410==e.j)var o=e(18543);function a(r,t){var e=(0,o._)(r,t,"get");return(0,n._)(r,e)}e.d(t,{_:()=>a})},11402(r,t,e){if(410==e.j)var n=e(3718);function o(r,t,e){(0,n._)(r,t),t.set(r,e)}e.d(t,{_:()=>o})},62502(r,t,e){if(410==e.j)var n=e(99830);if(410==e.j)var o=e(18543);function a(r,t,e){var a=(0,o._)(r,t,"set");return(0,n._)(r,a,e),e}e.d(t,{_:()=>a})},66927(r,t,e){if(350!=e.j)var n=e(55750);function o(r,t){if("object"!==(0,n._)(r)||null===r)return r;var e=r[Symbol.toPrimitive];if(void 0!==e){var o=e.call(r,t||"default");if("object"!==(0,n._)(o))return o;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(r)}e.d(t,{_:()=>o})},33553(r,t,e){if(350!=e.j)var n=e(66927);if(350!=e.j)var o=e(55750);function a(r){var t=(0,n._)(r,"string");return"symbol"===(0,o._)(t)?t:String(t)}e.d(t,{_:()=>a})},55750(r,t,e){function n(r){return r&&"u">typeof Symbol&&r.constructor===Symbol?"symbol":typeof r}e.d(t,{_:()=>n})},65959(r,t,e){function n(r,t,e,n,o,a){function i(r){if(void 0!==r&&"function"!=typeof r)throw TypeError("Function expected");return r}for(var c,u=n.kind,s="getter"===u?"get":"setter"===u?"set":"value",f=!t&&r?n.static?r:r.prototype:null,p=t||(f?Object.getOwnPropertyDescriptor(f,n.name):{}),h=!1,l=e.length-1;l>=0;l--){var v={};for(var d in n)v[d]="access"===d?{}:n[d];for(var d in n.access)v.access[d]=n.access[d];v.addInitializer=function(r){if(h)throw TypeError("Cannot add initializers after decoration has completed");a.push(i(r||null))};var y=(0,e[l])("accessor"===u?{get:p.get,set:p.set}:p[s],v);if("accessor"===u){if(void 0===y)continue;if(null===y||"object"!=typeof y)throw TypeError("Object expected");(c=i(y.get))&&(p.get=c),(c=i(y.set))&&(p.set=c),(c=i(y.init))&&o.unshift(c)}else(c=i(y))&&("field"===u?o.unshift(c):p[s]=c)}f&&Object.defineProperty(f,n.name,p),h=!0}function o(r,t,e){for(var n=arguments.length>2,o=0;o<t.length;o++)e=n?t[o].call(r,e):t[o].call(r);return n?e:void 0}e.d(t,{G4:()=>n,zF:()=>o})}}]);
package/dist/browser.js CHANGED
@@ -1 +1 @@
1
- import"node:module";import{execa as r}from"./2168.js";let n={async run(n){await r(n.command,n.args,{stdio:"ignore",windowsVerbatimArguments:n.windowsVerbatimArguments})}};async function a(r,o=n){await o.run(function(r,n=process.platform){switch(n){case"darwin":return{command:"open",args:[r]};case"win32":return{command:"cmd",args:["/c","start","",r],windowsVerbatimArguments:!0};default:return{command:"xdg-open",args:[r]}}}(r))}export{a as openUrlInBrowser};
1
+ import"node:module";import{execa as r}from"./2232.js";let n={async run(n){await r(n.command,n.args,{stdio:"ignore",windowsVerbatimArguments:n.windowsVerbatimArguments})}};async function a(r,o=n){await o.run(function(r,n=process.platform){switch(n){case"darwin":return{command:"open",args:[r]};case"win32":return{command:"cmd",args:["/c","start","",r],windowsVerbatimArguments:!0};default:return{command:"xdg-open",args:[r]}}}(r))}export{a as openUrlInBrowser};
package/dist/build.js CHANGED
@@ -1 +1 @@
1
- import"node:module";import{__webpack_require__ as e}from"./rslib-runtime.js";import"./ora.js";import{withCliErrorCode as t,CliUsageError as o,parsePositiveInteger as i,runCommand as r,command_Command as n,option_Option as a,CliError as s}from"./2168.js";import{resolveProjectAppId as _}from"./project.js";import{waitForArtifactStatus as l,logArtifactBuildFailure as d,logArtifactDebugInstructions as u,queryArtifactStatus as p}from"./status~1.js";import{uploadArtifacts as c}from"./build~1.js";import{normalizeAppVersionTag as f}from"./app.js";var g={};e.r(g),e.d(g,{default:()=>R});let v=e("../../../node_modules/.pnpm/ora@5.4.1/node_modules/ora/index.js");var m=e.n(v);let b={queued:"排队中",building:"构建中",succeeded:"成功",failed:"失败",unknown:"未知"};async function w(e,o,i=c,r=l){let n=_(o.project);e.targetAppId=n,e.log("正在检查应用级平台配置;同步后的配置不会随应用版本回滚");let a=e.json?void 0:m()("正在准备构建...").start(),p=await t("DBX_UPLOAD_FAILED",()=>i(e,{appId:n,project:o.project,release:!!o.release,appVersionTag:"string"==typeof o.release?o.release:void 0,quiet:!0,env:o.env,secretEnv:o.secretEnv})).finally(()=>a?.stop()),f=p.version_tag;if(!f)throw new s("Build submission returned no version",{code:"DBX_UPLOAD_FAILED"});let g={operation:"build",app_id:n,version_tag:f,version_kind:o.release?"release":"test",state:"queued",terminal:!1,uploaded_artifacts:p.uploaded_artifacts,packages:p.packages,config_sync_results:p.uploaded_artifacts.includes("business_templates")?[{config_type:"business-templates",scope:"app",state:"succeeded",rolled_back_with_version:!1,result:p.business_template_sync_result}]:[],version_detail_url:p.next?.version_detail_url,next_actions:[{purpose:"check_build_status",argv:["dbx","--json","build","status",f,"--project",o.project]}],log_id:p.log_id};if(!o.wait)return C(e,g),g;a?.start("正在等待云端构建...");let v=await t("DBX_REMOTE_ERROR",()=>r(n,f,o.timeoutSeconds)).finally(()=>a?.stop()),b={...g,...A(v),version_detail_url:v.version_detail_url??g.version_detail_url,next_actions:[]};if(C(e,b),d(e,v),u(e,v),"failed"===b.state)throw new s("Cloud build failed",{code:"DBX_BUILD_FAILED",details:b,logId:v.log_id});return b}async function E(e,o,i,r=p){let n=_(o);e.targetAppId=n;let a=await t("DBX_REMOTE_ERROR",()=>r(n,i,0)),s={operation:"build.status",...A(a)};return C(e,s),d(e,a),u(e,a),s}function S(e){try{let t=f(e);if(t)return t}catch{}throw new o(`正式版本号 ${JSON.stringify(e.trim())} 格式不正确。请使用三段纯数字,例如 1.2.3;不要添加 v 前缀或预发布后缀。`,"DBX_VERSION_TAG_INVALID")}function A(e){let t=e.status;return{app_id:e.app_id,version_tag:e.version_tag,state:t,terminal:"succeeded"===t||"failed"===t,provider_status:e.artifact_status,status_description:e.artifact_status_description,version_detail_url:e.version_detail_url,app_detail_url:e.app_detail_url,doubao_debug_conversation_url:e.doubao_debug_conversation_url,build_error:e.artifact_build_error_info,error_info_file:e.error_info_file,log_id:e.log_id}}function C(e,t){e.log(`构建状态: ${b[t.state]??t.state}`),e.log(`AppID: ${t.app_id}`),e.log(`版本号: ${t.version_tag}`),t.log_id&&e.log(`log_id: ${t.log_id}`),"succeeded"!==t.state&&t.version_detail_url&&e.log(`版本详情: ${t.version_detail_url}`),t.config_sync_results?.length&&e.log("应用级平台配置已同步;这些配置不会随应用版本回滚")}function R(){let e=h(new n("build").description("上传并触发云构建")).addOption(new a("--release [version]","构建正式版本,可指定版本号(如 1.2.3)").argParser(S)).option("--no-wait","提交后直接返回,不等待构建完成").option("--env <path>","构建变量文件;真实文件名须以 .env 开头,相对 --project 解析").option("--secret-env <path>","秘密构建变量文件;覆盖 --env 中的同名变量").addOption(new a("--timeout-seconds <seconds>","等待构建的最长时间(秒)").default(300).argParser(i)).addHelpText("after","\n默认构建测试版本;加 --release 构建正式版本,版本号留空时自动生成。\n构建不会自动提审或发布。平台配置会一并同步,不随版本回滚。\n").action(async(e,t)=>r(t,i=>((function(e,t){if(!t.wait&&"cli"===e.getOptionValueSourceWithGlobals("timeoutSeconds"))throw new o("--timeout-seconds cannot be used with --no-wait")})(t,e),w(i,e))));return e.addCommand(h(new n("status").description("查看构建状态").argument("<version>","版本号")).action(async(e,t,o)=>r(o,t=>E(t,o.optsWithGlobals().project,e)))),e}function h(e){return e.option("--project <path>","项目目录",".")}export{g as build_namespaceObject};
1
+ import"node:module";import{__webpack_require__ as e}from"./rslib-runtime.js";import"./qrcode.js";import"./ora.js";import{normalizeAppVersionTag as t,createPreviewShortLink as o,listMiniAppVersions as i}from"./app.js";import{source as r}from"./5887.js";import{withCliErrorCode as n,CliUsageError as a,parsePositiveInteger as s,runCommand as _,command_Command as l,option_Option as d,CliError as u}from"./2232.js";import{resolveProjectAppId as p}from"./project.js";import{waitForArtifactStatus as c,logArtifactBuildFailure as f,logArtifactDebugInstructions as g,queryArtifactStatus as m}from"./status~1.js";import{uploadArtifacts as v}from"./build~1.js";var b={};e.r(b),e.d(b,{default:()=>I});let w=e("../../../node_modules/.pnpm/qrcode@1.5.4/node_modules/qrcode/lib/index.js");async function S(e,t,i=!1){if(!e.json&&"succeeded"===t.status)try{let n=AbortSignal.timeout(1e4),a=await h(t.app_id,t.version_tag,n),s=String(a?.artifact_version_code??"");if(!s.trim())throw Error("构建产物尚未就绪");let _={app_key:t.app_id,app_version_tag:t.version_tag,artifact_version_code:s,debug_switch:!0},{data:l}=await o(`doubaoapp://debug?debugInfo=${encodeURIComponent(JSON.stringify(_))}`,n);if("string"!=typeof l?.token||!l.token.trim())throw Error("服务端未返回有效 token");let d=await E(`doubaoapp://debug?short_token=${encodeURIComponent(l.token)}`,i);if(!d)return void e.warn("终端宽度不足,请拉宽窗口后重试,或通过版本详情页扫码。");e.log();let u=i?"":r.dim("(无法扫码时加 --qr full)");e.log(`${r.blue.bold(" 豆包扫码预览")}${u}`),e.log(),e.log(d)}catch{e.warn("预览二维码暂不可用,请通过版本详情页扫码。")}}async function E(e,t){let{modules:o}=w.create(e),i=t?(o.size+2)*2:o.size+4;if(process.stdout.columns&&i+2>process.stdout.columns)return;if(!t)return(await w.toString(e,{type:"utf8",margin:2})).split("\n").map(e=>` \x1b[38;2;0;0;0m\x1b[48;2;255;255;255m${e}\x1b[0m`).join("\n");let r=Array.from({length:o.size+2},(e,t)=>t-1);return r.map(e=>{let t=r.map(t=>{let i=t>=0&&e>=0&&t<o.size&&e<o.size&&o.get(e,t);return`\x1b[48;2;${i?"0;0;0":"255;255;255"}m `}).join("");return` ${t}\x1b[0m`}).join("\n")}async function h(e,t,o){for(let r=1;;r++){let{data:n}=await i(e,{page:r,page_size:100},o),a=n?.version_list??[],s=a.find(e=>e.version_tag===t);if(s)return s;if(!a.length||(n?.total===void 0?a.length<100:100*r>=n.total))return}}let y=e("../../../node_modules/.pnpm/ora@5.4.1/node_modules/ora/index.js");var A=e.n(y);let C={queued:"排队中",building:"构建中",succeeded:"成功",failed:"失败",unknown:"未知"};async function R(e,t,o=v,i=c){let r=p(t.project);e.targetAppId=r;let a=e.json?void 0:A()("正在校验配置并准备构建...").start(),s=await n("DBX_UPLOAD_FAILED",()=>o(e,{appId:r,project:t.project,release:!!t.release,appVersionTag:"string"==typeof t.release?t.release:void 0,quiet:!0,env:t.env,secretEnv:t.secretEnv})).finally(()=>a?.stop()),_=s.version_tag;if(!_)throw new u("构建已提交,但平台未返回版本号,暂时无法查询构建进度",{code:"DBX_UPLOAD_FAILED"});let l={operation:"build",app_id:r,version_tag:_,version_kind:t.release?"release":"test",state:"queued",terminal:!1,uploaded_artifacts:s.uploaded_artifacts,packages:s.packages,config_sync_results:s.uploaded_artifacts.includes("business_templates")?[{config_type:"business-templates",scope:"app",state:"succeeded",rolled_back_with_version:!1,result:s.business_template_sync_result}]:[],version_detail_url:s.next?.version_detail_url,next_actions:[{purpose:"check_build_status",argv:["dbx","--json","build","status",_,"--project",t.project]}],log_id:s.log_id};if(!t.wait)return D(e,l),l;a?.start("正在等待云端构建...");let d=await n("DBX_REMOTE_ERROR",()=>i(r,_,t.timeoutSeconds)).finally(()=>a?.stop()),m={...l,...$(d),version_detail_url:d.version_detail_url??l.version_detail_url,next_actions:[]};if(D(e,m),f(e,d),await S(e,d,"full"===t.qr),g(e,d),"failed"===m.state)throw new u("云构建失败",{code:"DBX_BUILD_FAILED",details:m,logId:d.log_id});return m}async function K(e,t,o,i=m,r=!1){let a=p(t);e.targetAppId=a;let s=await n("DBX_REMOTE_ERROR",()=>i(a,o,0)),_={operation:"build.status",...$(s)};return D(e,_),f(e,s),await S(e,s,r),g(e,s),_}function j(e){try{let o=t(e);if(o)return o}catch{}throw new a(`正式版本号 ${JSON.stringify(e.trim())} 格式不正确。请使用三段纯数字,例如 1.2.3;不要添加 v 前缀或预发布后缀。`,"DBX_VERSION_TAG_INVALID")}function $(e){let t=e.status;return{app_id:e.app_id,version_tag:e.version_tag,state:t,terminal:"succeeded"===t||"failed"===t,provider_status:e.artifact_status,status_description:e.artifact_status_description,version_detail_url:e.version_detail_url,app_detail_url:e.app_detail_url,doubao_debug_conversation_url:e.doubao_debug_conversation_url,build_error:e.artifact_build_error_info,error_info_file:e.error_info_file,log_id:e.log_id}}function D(e,t){if("succeeded"===t.state)e.log(),e.log(r.green("✓ 构建成功")),e.log(` AppID ${t.app_id}`),e.log(` 版本号 ${t.version_tag}`);else{let o=`构建状态: ${C[t.state]??t.state}`;e.log("failed"===t.state?r.red(o):o),e.log(`AppID: ${t.app_id}`),e.log(`版本号: ${t.version_tag}`)}t.log_id&&(e.verbose||"succeeded"!==t.state)&&e.log("succeeded"===t.state?` ${r.dim("log_id")} ${t.log_id}`:`log_id: ${t.log_id}`),"succeeded"!==t.state&&t.version_detail_url&&e.log(`版本详情: ${t.version_detail_url}`),t.config_sync_results?.length&&e.log(r.dim(" 平台配置已同步(不随版本回滚)"))}function I(){let e=O(new l("build").description("上传并触发云构建")).addOption(new d("--release [version]","构建正式版本,可指定版本号(如 1.2.3)").argParser(j)).option("--no-wait","提交后直接返回,不等待构建完成").option("--env <path>","构建变量文件;真实文件名须以 .env 开头,相对 --project 解析").option("--secret-env <path>","秘密构建变量文件;覆盖 --env 中的同名变量").addOption(new d("--timeout-seconds <seconds>","等待构建的最长时间(秒)").default(300).argParser(s)).addHelpText("after","\n默认构建测试版本;加 --release 构建正式版本,版本号留空时自动生成。\n构建不会自动提审或发布。平台配置会一并同步,不随版本回滚。\n").action(async(e,t)=>_(t,o=>((function(e,t){if(!t.wait&&"cli"===e.getOptionValueSourceWithGlobals("timeoutSeconds"))throw new a("--timeout-seconds 不能与 --no-wait 同时使用")})(t,e),R(o,e))));return e.addCommand(O(new l("status").description("查看构建状态").argument("<version>","版本号")).action(async(e,t,o)=>_(o,t=>{let i=o.optsWithGlobals();return K(t,i.project,e,void 0,"full"===i.qr)}))),e}function O(e){return e.option("--project <path>","项目目录",".").addOption(new d("--qr <mode>","二维码样式(默认 compact;扫码困难时用 full)").choices(["compact","full"]))}export{b as build_namespaceObject};
package/dist/build~1.js CHANGED
@@ -1,12 +1,12 @@
1
- import"node:module";import{__webpack_require__ as e}from"./rslib-runtime.js";import"./yaml.js";import"./7945.js";import{CliUsageError as t,getLastHttpResponseLogId as r,CliError as n,isRecord as i}from"./2168.js";import{uploadMiniAppVersionDraftPackage as s,verifyYAML as o,submitMiniAppVersionDraft as a,uploadMiniAppVersionDraftSourceCode as l,normalizeAppVersionTag as p}from"./app.js";import{remoteFileName as c,sourceTypeForWorkspaceFileType as u,describeWorkspaceUpload as d,resolveAppKey as f}from"./workspace.js";import{requireRuntimeSkillEntries as _,resolveProjectLayout as m}from"./project-layout.js";import{miniAppVersionDetailUrl as h}from"./portal.js";import"./3551.js";e.add({"../../../node_modules/.pnpm/dotenv@17.2.3/node_modules/dotenv/lib/main.js"(e,t,r){let n=r("fs"),i=r("path"),s=r("os"),o=r("crypto"),a=r("../../../node_modules/.pnpm/dotenv@17.2.3/node_modules/dotenv/package.json").version,l=["\uD83D\uDD10 encrypt with Dotenvx: https://dotenvx.com","\uD83D\uDD10 prevent committing .env to code: https://dotenvx.com/precommit","\uD83D\uDD10 prevent building .env in docker: https://dotenvx.com/prebuild","\uD83D\uDCE1 add observability to secrets: https://dotenvx.com/ops","\uD83D\uDC65 sync secrets across teammates & machines: https://dotenvx.com/ops","\uD83D\uDDC2️ backup and recover secrets: https://dotenvx.com/ops","✅ audit secrets and track compliance: https://dotenvx.com/ops","\uD83D\uDD04 add secrets lifecycle management: https://dotenvx.com/ops","\uD83D\uDD11 add access controls to secrets: https://dotenvx.com/ops","\uD83D\uDEE0️ run anywhere with `dotenvx run -- yourcommand`","⚙️ specify custom .env file path with { path: '/custom/path/.env' }","⚙️ enable debug logging with { debug: true }","⚙️ override existing env vars with { override: true }","⚙️ suppress all logs with { quiet: true }","⚙️ write to custom object with { processEnv: myObject }","⚙️ load multiple .env files with { path: ['.env.local', '.env'] }"];function p(e){return"string"==typeof e?!["false","0","no","off",""].includes(e.toLowerCase()):!!e}let c=/(?:^|^)\s*(?:export\s+)?([\w.-]+)(?:\s*=\s*?|:\s+?)(\s*'(?:\\'|[^'])*'|\s*"(?:\\"|[^"])*"|\s*`(?:\\`|[^`])*`|[^#\r\n]+)?\s*(?:#.*)?(?:$|$)/mg;function u(e){console.log(`[dotenv@${a}][DEBUG] ${e}`)}function d(e){console.log(`[dotenv@${a}] ${e}`)}function f(e){return e&&e.DOTENV_KEY&&e.DOTENV_KEY.length>0?e.DOTENV_KEY:process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0?process.env.DOTENV_KEY:""}function _(e){let t=null;if(e&&e.path&&e.path.length>0)if(Array.isArray(e.path))for(let r of e.path)n.existsSync(r)&&(t=r.endsWith(".vault")?r:`${r}.vault`);else t=e.path.endsWith(".vault")?e.path:`${e.path}.vault`;else t=i.resolve(process.cwd(),".env.vault");return n.existsSync(t)?t:null}function m(e){return"~"===e[0]?i.join(s.homedir(),e.slice(1)):e}let h={configDotenv:function(e){let t,r=i.resolve(process.cwd(),".env"),s="utf8",o=process.env;e&&null!=e.processEnv&&(o=e.processEnv);let a=p(o.DOTENV_CONFIG_DEBUG||e&&e.debug),c=p(o.DOTENV_CONFIG_QUIET||e&&e.quiet);e&&e.encoding?s=e.encoding:a&&u("No encoding is specified. UTF-8 is used by default");let f=[r];if(e&&e.path)if(Array.isArray(e.path))for(let t of(f=[],e.path))f.push(m(t));else f=[m(e.path)];let _={};for(let r of f)try{let t=h.parse(n.readFileSync(r,{encoding:s}));h.populate(_,t,e)}catch(e){a&&u(`Failed to load ${r} ${e.message}`),t=e}let v=h.populate(o,_,e);if(a=p(o.DOTENV_CONFIG_DEBUG||a),c=p(o.DOTENV_CONFIG_QUIET||c),a||!c){var g;let e=Object.keys(v).length,r=[];for(let e of f)try{let t=i.relative(process.cwd(),e);r.push(t)}catch(r){a&&u(`Failed to load ${e} ${r.message}`),t=r}d(`injecting env (${e}) from ${r.join(",")} ${(g=`-- tip: ${l[Math.floor(Math.random()*l.length)]}`,process.stdout.isTTY?`\x1b[2m${g}\x1b[0m`:g)}`)}return t?{parsed:_,error:t}:{parsed:_}},_configVault:function(e){let t=p(process.env.DOTENV_CONFIG_DEBUG||e&&e.debug),r=p(process.env.DOTENV_CONFIG_QUIET||e&&e.quiet);(t||!r)&&d("Loading env from encrypted .env.vault");let n=h._parseVault(e),i=process.env;return e&&null!=e.processEnv&&(i=e.processEnv),h.populate(i,n,e),{parsed:n}},_parseVault:function(e){let t,r=_(e=e||{});e.path=r;let n=h.configDotenv(e);if(!n.parsed){let e=Error(`MISSING_DATA: Cannot parse ${r} for an unknown reason`);throw e.code="MISSING_DATA",e}let i=f(e).split(","),s=i.length;for(let e=0;e<s;e++)try{let r=i[e].trim(),s=function(e,t){let r;try{r=new URL(t)}catch(e){if("ERR_INVALID_URL"===e.code){let e=Error("INVALID_DOTENV_KEY: Wrong format. Must be in valid uri format like dotenv://:key_1234@dotenvx.com/vault/.env.vault?environment=development");throw e.code="INVALID_DOTENV_KEY",e}throw e}let n=r.password;if(!n){let e=Error("INVALID_DOTENV_KEY: Missing key part");throw e.code="INVALID_DOTENV_KEY",e}let i=r.searchParams.get("environment");if(!i){let e=Error("INVALID_DOTENV_KEY: Missing environment part");throw e.code="INVALID_DOTENV_KEY",e}let s=`DOTENV_VAULT_${i.toUpperCase()}`,o=e.parsed[s];if(!o){let e=Error(`NOT_FOUND_DOTENV_ENVIRONMENT: Cannot locate environment ${s} in your .env.vault file.`);throw e.code="NOT_FOUND_DOTENV_ENVIRONMENT",e}return{ciphertext:o,key:n}}(n,r);t=h.decrypt(s.ciphertext,s.key);break}catch(t){if(e+1>=s)throw t}return h.parse(t)},config:function(e){if(0===f(e).length)return h.configDotenv(e);let t=_(e);if(!t){var r;return r=`You set DOTENV_KEY but you are missing a .env.vault file at ${t}. Did you forget to build it?`,console.error(`[dotenv@${a}][WARN] ${r}`),h.configDotenv(e)}return h._configVault(e)},decrypt:function(e,t){let r=Buffer.from(t.slice(-64),"hex"),n=Buffer.from(e,"base64"),i=n.subarray(0,12),s=n.subarray(-16);n=n.subarray(12,-16);try{let e=o.createDecipheriv("aes-256-gcm",r,i);return e.setAuthTag(s),`${e.update(n)}${e.final()}`}catch(n){let e=n instanceof RangeError,t="Invalid key length"===n.message,r="Unsupported state or unable to authenticate data"===n.message;if(e||t){let e=Error("INVALID_DOTENV_KEY: It must be 64 characters long (or more)");throw e.code="INVALID_DOTENV_KEY",e}if(r){let e=Error("DECRYPTION_FAILED: Please check your DOTENV_KEY");throw e.code="DECRYPTION_FAILED",e}throw n}},parse:function(e){let t,r={},n=e.toString();for(n=n.replace(/\r\n?/mg,"\n");null!=(t=c.exec(n));){let e=t[1],n=t[2]||"",i=(n=n.trim())[0];n=n.replace(/^(['"`])([\s\S]*)\1$/mg,"$2"),'"'===i&&(n=(n=n.replace(/\\n/g,"\n")).replace(/\\r/g,"\r")),r[e]=n}return r},populate:function(e,t,r={}){let n=!!(r&&r.debug),i=!!(r&&r.override),s={};if("object"!=typeof t){let e=Error("OBJECT_REQUIRED: Please check the processEnv argument being passed to populate");throw e.code="OBJECT_REQUIRED",e}for(let r of Object.keys(t))Object.prototype.hasOwnProperty.call(e,r)?(!0===i&&(e[r]=t[r],s[r]=t[r]),n&&(!0===i?u(`"${r}" is already defined and WAS overwritten`):u(`"${r}" is already defined and was NOT overwritten`))):(e[r]=t[r],s[r]=t[r]);return s}};e.exports.configDotenv=h.configDotenv,e.exports._configVault=h._configVault,e.exports._parseVault=h._parseVault,e.exports.config=h.config,e.exports.decrypt=h.decrypt,e.exports.parse=h.parse,e.exports.populate=h.populate,e.exports=h},"../../../node_modules/.pnpm/dotenv@17.2.3/node_modules/dotenv/package.json"(e){e.exports={version:"17.2.3"}}});let v=e("../../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/index.js");function g(e){if(!i(e))return;let t=i(e.mcp_server)?e.mcp_server:void 0,r=t?.end_point;return"string"==typeof r&&r.trim()?r:void 0}function y(e,t,r){return{checked:!0,endpoint:e,cloud_reachable:!1,reason:t,message:r}}function w(e){let t=e.split(".");if(4!==t.length)return;let r=t.map(e=>Number(e));if(!r.some(e=>!Number.isInteger(e)||e<0||e>255))return r}let E=e("node:fs"),b=e("node:util");async function I(e,t={}){let r=N(e),n={cwd:r};try{await $({action:"build",appDir:r,appId:t.appId})}catch(e){throw new D(r,e,n)}return n}async function k(e,t,r){let n=N(e),i={cwd:n,output_dir:t},s="";try{i.archive_path=s=(await $({action:"cloudPackage",appDir:n,outputDir:t})).archivePath||""}catch(e){throw new S(n,e,i,r)}if(!s)throw new S(n,Error("DoubaoAppsSDK.cloudPackage did not return an archive path"),i,r);return s}function N(e){if(!(0,E.existsSync)(e))throw Error(`frontend_code path not found: ${e}`);if((0,E.statSync)(e).isFile())throw Error(`frontend_code must be a directory: ${e}`);return(0,E.realpathSync)(e)}async function $(e){let t,r,n,s,o=process.cwd(),a={...process.env},l=(t=[],r=[],n=process.stdout.write,s=process.stderr.write,process.stdout.write=U(t),process.stderr.write=U(r),{result(){let e=O({stdout:t.join(""),stderr:r.join("")});return{...e,...e.stdout||e.stderr?{output:L([e.stdout,e.stderr].filter(Boolean).join("\n"))}:{}}},restore(){process.stdout.write=n,process.stderr.write=s}});try{process.chdir(e.appDir),process.env.CI="true",process.env.FORCE_COLOR="0",process.env.NO_COLOR="1";let{DoubaoAppsSDK:t}=await import("./sdk.js"),r=new t(e.appDir);if("build"===e.action)return await r.build(e.appId?{appId:e.appId}:void 0),l.result();let n=await r.cloudPackage({outputDir:e.outputDir});return{...l.result(),archivePath:n}}catch(t){let e=l.result();throw i(t)&&Object.assign(t,e),t}finally{l.restore(),process.chdir(o),function(e){for(let t of Object.keys(process.env))Object.prototype.hasOwnProperty.call(e,t)||delete process.env[t];Object.assign(process.env,e)}(a)}}function U(e){return(t,r,n)=>{e.push("string"==typeof t?t:Buffer.from(t).toString("string"==typeof r?r:"utf8"));let i="function"==typeof r?r:n;return i?.(),!0}}function O(e){let t=L(e.stdout),r=L(e.stderr),n=L(e.output);return{...t?{stdout:t}:{},...r?{stderr:r}:{},...n?{output:n}:{}}}class D extends Error{exitCode=1;details;constructor(e,t,r){var n;let i,s=x(t),o=r?.stdout||s.stdout,a=r?.stderr||s.stderr,l=T(r?.output||s.output||a||o),p={code:"frontend_build_check_failed",cwd:r?.cwd||e,...void 0===s.exitCode?{}:{exit_code:s.exitCode},...s.signal?{signal:s.signal}:{},...s.shortMessage?{short_message:s.shortMessage}:{},...s.originalMessage?{original_message:s.originalMessage}:{},...l?{output:l}:{}};super((i=(n=p).output||n.stderr||n.stdout||n.short_message||n.original_message||"unknown build failure",["frontend build check failed",`cwd: ${n.cwd}`,"build output:",i].join("\n"))),this.name="FrontendBuildCheckError",this.details=p}}class S extends Error{exitCode=1;details;constructor(e,t,r,n){var i;let s,o=function(e,t){let r=x(e),n=[...new Set(t?.flatMap(({value:e,is_secret:t})=>t&&e?[e,JSON.stringify(e).slice(1,-1),L(e)??""].filter(Boolean):[]))].sort((e,t)=>t.length-e.length);for(let[e,t]of Object.entries(r))"string"==typeof t&&Object.assign(r,{[e]:n.reduce((e,t)=>e.split(t).join("[REDACTED]"),t)});return r}(t,n),a=r?.stdout||o.stdout,l=r?.stderr||o.stderr,p=T(r?.output||o.output||l||a),c={code:"frontend_package_failed",cwd:r?.cwd||e,output_dir:r?.output_dir??"",...r?.archive_path?{archive_path:r.archive_path}:{},...void 0===o.exitCode?{}:{exit_code:o.exitCode},...o.signal?{signal:o.signal}:{},...o.shortMessage?{short_message:o.shortMessage}:{},...o.originalMessage?{original_message:o.originalMessage}:{},...p?{output:p}:{}};super((s=(i=c).output||i.stderr||i.stdout||i.short_message||i.original_message||"unknown package failure",["frontend package failed",`cwd: ${i.cwd}`,"package output:",s].join("\n"))),this.name="FrontendPackageError",this.details=c}}function x(e){if(!i(e))return{output:String(e)};let t=O({stdout:e.stdout,stderr:e.stderr,output:e.all??e.output}),r=!!(t.stdout||t.stderr||t.output);return{exitCode:"number"==typeof e.exitCode?e.exitCode:void 0,signal:"string"==typeof e.signal?e.signal:void 0,shortMessage:r||"string"!=typeof e.shortMessage?void 0:e.shortMessage,originalMessage:"string"==typeof e.originalMessage?e.originalMessage:r||"string"!=typeof e.message?void 0:e.message,...t}}function L(e){let t=Buffer.isBuffer(e)?e.toString("utf8"):"string"==typeof e?e:"";return(0,b.stripVTControlCharacters)(t).replace(/\r\n/g,"\n").replace(/\r/g,"\n").split("\n").map(e=>e.trimEnd()).join("\n").trim()||void 0}function T(e){let t,r=L(e);if(!r)return;let n=(t=[r.search(/(^|\n)error\s+Build error:/i),r.search(/(^|\n)Build error:/i),r.search(/(^|\n)File:\s/i),r.search(/(^|\n)\s*[×x]\s+.*TS\d+:/i)].filter(e=>e>=0)).length>0?Math.min(...t):-1,i=n>=0?r.slice(n).trim():r;return i.length<=4e3?i:`${i.slice(0,4e3).trimEnd()}
2
- ... output truncated ...`}let C=e("node:fs/promises"),j=e("node:path"),V=e("../../../node_modules/.pnpm/dotenv@17.2.3/node_modules/dotenv/lib/main.js"),P=/^[A-Za-z_][A-Za-z0-9_]*$/,A=new Set(["platform_info_version_tag","platform_info_upload_token","platform_info_app_name","platform_info_app_icon","platform_info_app_key","skip_uploading","X_TT_ENV"]);async function M(e){if(void 0===e.env&&void 0===e.secretEnv)return;let r=K(e.project,e.env,"--env"),n=K(e.project,e.secretEnv,"--secret-env"),i=new Map;try{for(let[e,t]of[[r,!1],[n,!0]])if(e)for(let[r,n]of Object.entries((0,V.parse)(await (0,C.readFile)(e,"utf8"))))i.set(r,{name:r,value:n,env_var_name:r,...t?{is_secret:!0}:{}})}catch{throw new t("Selected build environment files must be readable files")}let s=[...i.values()];for(let{name:e,value:r,is_secret:n}of s){if(!P.test(e))throw new t("Invalid build environment variable name");if(A.has(e))throw new t(`Build environment variable is reserved: ${e}`);if(n&&e.startsWith("PUBLIC_"))throw new t(`Secret build environment cannot contain PUBLIC_ variables: ${e}`);if("NODE_ENV"===e&&"production"!==r)throw new t("Build environment variable NODE_ENV must be production")}return s}function K(e,r,n){let i;if(void 0!==r){try{if(i=(0,E.realpathSync)((0,j.resolve)(e,r)),!(0,E.statSync)(i).isFile())throw Error("not a file")}catch{throw new t(`${n} must refer to a readable file`)}if(!(0,j.basename)(i).startsWith(".env"))throw new t(`${n} real filename must start with .env`);return i}}async function F(e,t){let n=p(t.appVersionTag);if(t.businessTemplatesOnly&&(void 0!==t.env||void 0!==t.secretEnv))throw Error("--env and --secret-env cannot be used with --business-templates-only");let s=await M(t);if(t.businessTemplatesOnly&&(t.release||n))throw Error("--release cannot be used with --business-templates-only because this mode does not submit a version");let o=m(t.project),l=B(t.project,t.manifest,o.manifestPath),u=B(t.project,t.skill,o.skillDirectory),d=B(t.project,t.frontendCode,(0,j.resolve)(t.project,o.frontendDirectory)),_=f(t.project,t.appId,l);if(e.targetAppId=_,t.businessTemplatesOnly)return R(e,_,t);let b=t.keepPackages,k=H(),N="",$="",U="",O="",D=[],S=[];try{var x,L,T,C,V,P,A;let i,o,p,f,M=[],K=void 0===s?await I(d,{appId:_}):{cwd:d,skipped:!0};T=l,C=k,en(T,"manifest"),i=(0,j.join)(C,"manifest.yaml"),(0,E.copyFileSync)(T,i),N=i,S.push(J({type:"manifest",file:N}));let F=await X(N),B=Y(t);B&&(O=z(B,k),S.push(J({type:"business_templates",file:O})));let R=O?await Z(O):void 0;V=t.project,P=k,o=m(V),D=[{type:"events",file:o.eventsPath},{type:"tools",file:o.toolsPath}].flatMap(e=>{if(!(0,E.existsSync)(e.file))return[];en(e.file,e.type);let t=(0,j.join)(P,c(e.type));return(0,E.copyFileSync)(e.file,t),[{type:e.type,file:t}]}),S.push(...D.map(J));let H=(x=(0,E.readFileSync)(N,"utf8"),L=F.manifest,(p=g(function(e){try{return v.qg(e)}catch{return}}(x))??g(L))?function(e){let t,r=e.trim();try{t=new URL(r)}catch{return y(r,"invalid_url","manifest.mcp_server.end_point must be a valid http(s) URL.")}if("http:"!==t.protocol&&"https:"!==t.protocol)return y(r,"invalid_protocol","manifest.mcp_server.end_point must use http:// or https://.");let n=function(e){if(!e)return"empty_hostname";if("localhost"===e||e.endsWith(".localhost"))return"localhost";if(e.endsWith(".local")||e.endsWith(".lan")||e.endsWith(".internal"))return"private_hostname";if(!e.includes(".")&&!e.includes(":"))return"unqualified_hostname";let t=w(e)??function(e){let t="::ffff:";if(!e.startsWith(t))return;let r=e.slice(t.length),n=w(r);if(n)return n;let i=r.split(":");if(2!==i.length)return;let s=i.map(e=>Number.parseInt(e,16));if(s.some((e,t)=>!/^[0-9a-f]{1,4}$/i.test(i[t])||!Number.isInteger(e)||e<0||e>65535))return;let[o,a]=s;return[o>>8,255&o,a>>8,255&a]}(e);return t?function(e){let[t,r]=e;return 10===t?"private_ipv4":127===t?"loopback_ipv4":172===t&&r>=16&&r<=31||192===t&&168===r?"private_ipv4":169===t&&254===r?"link_local_ipv4":100===t&&r>=64&&r<=127?"carrier_grade_nat_ipv4":0===t?"reserved_ipv4":192===t&&0===e[1]&&2===e[2]||198===t&&51===e[1]&&100===e[2]||203===t&&0===e[1]&&113===e[2]?"documentation_ipv4":198===t&&(18===r||19===r)?"benchmark_ipv4":t>=224?"reserved_ipv4":void 0}(t):e.includes(":")?function(e){if("::1"===e||"0:0:0:0:0:0:0:1"===e)return"loopback_ipv6";let t=Number.parseInt(e.split(":")[0]||"0",16);if(Number.isFinite(t)){if((65024&t)==64512)return"unique_local_ipv6";if((65472&t)==65152)return"link_local_ipv6"}}(e):void 0}(t.hostname.replace(/^\[/,"").replace(/\]$/,"").toLowerCase());return n?y(r,n,"manifest.mcp_server.end_point points to a local or private network address that cloud build and real devices cannot reach."):{checked:!0,endpoint:r,cloud_reachable:!0}}(p):{checked:!1,cloud_reachable:!1,reason:"mcp_endpoint_missing",message:"manifest.mcp_server.end_point is missing"});if(H.checked&&!H.cloud_reachable&&e.warn((f=H.endpoint??"(missing)",`manifest.mcp_server.end_point may not be reachable from cloud build or real devices.
3
- endpoint: ${f}
4
- reason: ${H.reason??"unknown"}
1
+ import"node:module";import{__webpack_require__ as e}from"./rslib-runtime.js";import"./yaml.js";import"./1264.js";import{CliUsageError as t,getLastHttpResponseLogId as r,CliError as n,isRecord as s}from"./2232.js";import{uploadMiniAppVersionDraftPackage as o,verifyYAML as i,submitMiniAppVersionDraft as a,uploadMiniAppVersionDraftSourceCode as l,normalizeAppVersionTag as p}from"./app.js";import{remoteFileName as c,sourceTypeForWorkspaceFileType as u,describeWorkspaceUpload as d,resolveAppKey as f}from"./workspace.js";import{requireRuntimeSkillEntries as _,resolveProjectLayout as m}from"./project-layout.js";import{miniAppVersionDetailUrl as h}from"./portal.js";import"./3551.js";e.add({"../../../node_modules/.pnpm/dotenv@17.2.3/node_modules/dotenv/lib/main.js"(e,t,r){let n=r("fs"),s=r("path"),o=r("os"),i=r("crypto"),a=r("../../../node_modules/.pnpm/dotenv@17.2.3/node_modules/dotenv/package.json").version,l=["\uD83D\uDD10 encrypt with Dotenvx: https://dotenvx.com","\uD83D\uDD10 prevent committing .env to code: https://dotenvx.com/precommit","\uD83D\uDD10 prevent building .env in docker: https://dotenvx.com/prebuild","\uD83D\uDCE1 add observability to secrets: https://dotenvx.com/ops","\uD83D\uDC65 sync secrets across teammates & machines: https://dotenvx.com/ops","\uD83D\uDDC2️ backup and recover secrets: https://dotenvx.com/ops","✅ audit secrets and track compliance: https://dotenvx.com/ops","\uD83D\uDD04 add secrets lifecycle management: https://dotenvx.com/ops","\uD83D\uDD11 add access controls to secrets: https://dotenvx.com/ops","\uD83D\uDEE0️ run anywhere with `dotenvx run -- yourcommand`","⚙️ specify custom .env file path with { path: '/custom/path/.env' }","⚙️ enable debug logging with { debug: true }","⚙️ override existing env vars with { override: true }","⚙️ suppress all logs with { quiet: true }","⚙️ write to custom object with { processEnv: myObject }","⚙️ load multiple .env files with { path: ['.env.local', '.env'] }"];function p(e){return"string"==typeof e?!["false","0","no","off",""].includes(e.toLowerCase()):!!e}let c=/(?:^|^)\s*(?:export\s+)?([\w.-]+)(?:\s*=\s*?|:\s+?)(\s*'(?:\\'|[^'])*'|\s*"(?:\\"|[^"])*"|\s*`(?:\\`|[^`])*`|[^#\r\n]+)?\s*(?:#.*)?(?:$|$)/mg;function u(e){console.log(`[dotenv@${a}][DEBUG] ${e}`)}function d(e){console.log(`[dotenv@${a}] ${e}`)}function f(e){return e&&e.DOTENV_KEY&&e.DOTENV_KEY.length>0?e.DOTENV_KEY:process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0?process.env.DOTENV_KEY:""}function _(e){let t=null;if(e&&e.path&&e.path.length>0)if(Array.isArray(e.path))for(let r of e.path)n.existsSync(r)&&(t=r.endsWith(".vault")?r:`${r}.vault`);else t=e.path.endsWith(".vault")?e.path:`${e.path}.vault`;else t=s.resolve(process.cwd(),".env.vault");return n.existsSync(t)?t:null}function m(e){return"~"===e[0]?s.join(o.homedir(),e.slice(1)):e}let h={configDotenv:function(e){let t,r=s.resolve(process.cwd(),".env"),o="utf8",i=process.env;e&&null!=e.processEnv&&(i=e.processEnv);let a=p(i.DOTENV_CONFIG_DEBUG||e&&e.debug),c=p(i.DOTENV_CONFIG_QUIET||e&&e.quiet);e&&e.encoding?o=e.encoding:a&&u("No encoding is specified. UTF-8 is used by default");let f=[r];if(e&&e.path)if(Array.isArray(e.path))for(let t of(f=[],e.path))f.push(m(t));else f=[m(e.path)];let _={};for(let r of f)try{let t=h.parse(n.readFileSync(r,{encoding:o}));h.populate(_,t,e)}catch(e){a&&u(`Failed to load ${r} ${e.message}`),t=e}let g=h.populate(i,_,e);if(a=p(i.DOTENV_CONFIG_DEBUG||a),c=p(i.DOTENV_CONFIG_QUIET||c),a||!c){var v;let e=Object.keys(g).length,r=[];for(let e of f)try{let t=s.relative(process.cwd(),e);r.push(t)}catch(r){a&&u(`Failed to load ${e} ${r.message}`),t=r}d(`injecting env (${e}) from ${r.join(",")} ${(v=`-- tip: ${l[Math.floor(Math.random()*l.length)]}`,process.stdout.isTTY?`\x1b[2m${v}\x1b[0m`:v)}`)}return t?{parsed:_,error:t}:{parsed:_}},_configVault:function(e){let t=p(process.env.DOTENV_CONFIG_DEBUG||e&&e.debug),r=p(process.env.DOTENV_CONFIG_QUIET||e&&e.quiet);(t||!r)&&d("Loading env from encrypted .env.vault");let n=h._parseVault(e),s=process.env;return e&&null!=e.processEnv&&(s=e.processEnv),h.populate(s,n,e),{parsed:n}},_parseVault:function(e){let t,r=_(e=e||{});e.path=r;let n=h.configDotenv(e);if(!n.parsed){let e=Error(`MISSING_DATA: Cannot parse ${r} for an unknown reason`);throw e.code="MISSING_DATA",e}let s=f(e).split(","),o=s.length;for(let e=0;e<o;e++)try{let r=s[e].trim(),o=function(e,t){let r;try{r=new URL(t)}catch(e){if("ERR_INVALID_URL"===e.code){let e=Error("INVALID_DOTENV_KEY: Wrong format. Must be in valid uri format like dotenv://:key_1234@dotenvx.com/vault/.env.vault?environment=development");throw e.code="INVALID_DOTENV_KEY",e}throw e}let n=r.password;if(!n){let e=Error("INVALID_DOTENV_KEY: Missing key part");throw e.code="INVALID_DOTENV_KEY",e}let s=r.searchParams.get("environment");if(!s){let e=Error("INVALID_DOTENV_KEY: Missing environment part");throw e.code="INVALID_DOTENV_KEY",e}let o=`DOTENV_VAULT_${s.toUpperCase()}`,i=e.parsed[o];if(!i){let e=Error(`NOT_FOUND_DOTENV_ENVIRONMENT: Cannot locate environment ${o} in your .env.vault file.`);throw e.code="NOT_FOUND_DOTENV_ENVIRONMENT",e}return{ciphertext:i,key:n}}(n,r);t=h.decrypt(o.ciphertext,o.key);break}catch(t){if(e+1>=o)throw t}return h.parse(t)},config:function(e){if(0===f(e).length)return h.configDotenv(e);let t=_(e);if(!t){var r;return r=`You set DOTENV_KEY but you are missing a .env.vault file at ${t}. Did you forget to build it?`,console.error(`[dotenv@${a}][WARN] ${r}`),h.configDotenv(e)}return h._configVault(e)},decrypt:function(e,t){let r=Buffer.from(t.slice(-64),"hex"),n=Buffer.from(e,"base64"),s=n.subarray(0,12),o=n.subarray(-16);n=n.subarray(12,-16);try{let e=i.createDecipheriv("aes-256-gcm",r,s);return e.setAuthTag(o),`${e.update(n)}${e.final()}`}catch(n){let e=n instanceof RangeError,t="Invalid key length"===n.message,r="Unsupported state or unable to authenticate data"===n.message;if(e||t){let e=Error("INVALID_DOTENV_KEY: It must be 64 characters long (or more)");throw e.code="INVALID_DOTENV_KEY",e}if(r){let e=Error("DECRYPTION_FAILED: Please check your DOTENV_KEY");throw e.code="DECRYPTION_FAILED",e}throw n}},parse:function(e){let t,r={},n=e.toString();for(n=n.replace(/\r\n?/mg,"\n");null!=(t=c.exec(n));){let e=t[1],n=t[2]||"",s=(n=n.trim())[0];n=n.replace(/^(['"`])([\s\S]*)\1$/mg,"$2"),'"'===s&&(n=(n=n.replace(/\\n/g,"\n")).replace(/\\r/g,"\r")),r[e]=n}return r},populate:function(e,t,r={}){let n=!!(r&&r.debug),s=!!(r&&r.override),o={};if("object"!=typeof t){let e=Error("OBJECT_REQUIRED: Please check the processEnv argument being passed to populate");throw e.code="OBJECT_REQUIRED",e}for(let r of Object.keys(t))Object.prototype.hasOwnProperty.call(e,r)?(!0===s&&(e[r]=t[r],o[r]=t[r]),n&&(!0===s?u(`"${r}" is already defined and WAS overwritten`):u(`"${r}" is already defined and was NOT overwritten`))):(e[r]=t[r],o[r]=t[r]);return o}};e.exports.configDotenv=h.configDotenv,e.exports._configVault=h._configVault,e.exports._parseVault=h._parseVault,e.exports.config=h.config,e.exports.decrypt=h.decrypt,e.exports.parse=h.parse,e.exports.populate=h.populate,e.exports=h},"../../../node_modules/.pnpm/dotenv@17.2.3/node_modules/dotenv/package.json"(e){e.exports={version:"17.2.3"}}});let g=e("../../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/dist/index.js");function v(e){if(!s(e))return;let t=s(e.mcp_server)?e.mcp_server:void 0,r=t?.end_point;return"string"==typeof r&&r.trim()?r:void 0}function y(e,t,r){return{checked:!0,endpoint:e,cloud_reachable:!1,reason:t,message:r}}function E(e){let t=e.split(".");if(4!==t.length)return;let r=t.map(e=>Number(e));if(!r.some(e=>!Number.isInteger(e)||e<0||e>255))return r}let w=e("node:fs"),b=e("node:util");async function I(e,t={}){let r=$(e),n={cwd:r};try{await U({action:"build",appDir:r,appId:t.appId})}catch(e){throw new x(r,e,n)}return n}async function N(e,t,r){let n=$(e),s={cwd:n,output_dir:t},o="";try{s.archive_path=o=(await U({action:"cloudPackage",appDir:n,outputDir:t})).archivePath||""}catch(e){throw new L(n,e,s,r)}if(!o)throw new L(n,Error("DoubaoAppsSDK.cloudPackage 未返回压缩包路径"),s,r);return o}function $(e){if(!(0,w.existsSync)(e))throw Error(`未找到 frontend_code 路径: ${e}`);if((0,w.statSync)(e).isFile())throw Error(`frontend_code 必须是目录: ${e}`);return(0,w.realpathSync)(e)}async function U(e){let t,r,n,o,i=process.cwd(),a={...process.env},l=(t=[],r=[],n=process.stdout.write,o=process.stderr.write,process.stdout.write=O(t),process.stderr.write=O(r),{result(){let e=D({stdout:t.join(""),stderr:r.join("")});return{...e,...e.stdout||e.stderr?{output:k([e.stdout,e.stderr].filter(Boolean).join("\n"))}:{}}},restore(){process.stdout.write=n,process.stderr.write=o}});try{process.chdir(e.appDir),process.env.CI="true",process.env.FORCE_COLOR="0",process.env.NO_COLOR="1";let{DoubaoAppsSDK:t}=await import("./sdk.js"),r=new t(e.appDir);if("build"===e.action)return await r.build(e.appId?{appId:e.appId}:void 0),l.result();let n=await r.cloudPackage({outputDir:e.outputDir});return{...l.result(),archivePath:n}}catch(t){let e=l.result();throw s(t)&&Object.assign(t,e),t}finally{l.restore(),process.chdir(i),function(e){for(let t of Object.keys(process.env))Object.prototype.hasOwnProperty.call(e,t)||delete process.env[t];Object.assign(process.env,e)}(a)}}function O(e){return(t,r,n)=>{e.push("string"==typeof t?t:Buffer.from(t).toString("string"==typeof r?r:"utf8"));let s="function"==typeof r?r:n;return s?.(),!0}}function D(e){let t=k(e.stdout),r=k(e.stderr),n=k(e.output);return{...t?{stdout:t}:{},...r?{stderr:r}:{},...n?{output:n}:{}}}class x extends Error{exitCode=1;details;constructor(e,t,r){var n;let s,o=S(t),i=r?.stdout||o.stdout,a=r?.stderr||o.stderr,l=T(r?.output||o.output||a||i),p={code:"frontend_build_check_failed",cwd:r?.cwd||e,...void 0===o.exitCode?{}:{exit_code:o.exitCode},...o.signal?{signal:o.signal}:{},...o.shortMessage?{short_message:o.shortMessage}:{},...o.originalMessage?{original_message:o.originalMessage}:{},...l?{output:l}:{}};super((s=(n=p).output||n.stderr||n.stdout||n.short_message||n.original_message||"未知构建错误",["前端构建检查失败",`工作目录: ${n.cwd}`,"构建输出:",s].join("\n"))),this.name="FrontendBuildCheckError",this.details=p}}class L extends Error{exitCode=1;details;constructor(e,t,r,n){var s;let o,i=function(e,t){let r=S(e),n=[...new Set(t?.flatMap(({value:e,is_secret:t})=>t&&e?[e,JSON.stringify(e).slice(1,-1),k(e)??""].filter(Boolean):[]))].sort((e,t)=>t.length-e.length);for(let[e,t]of Object.entries(r))"string"==typeof t&&Object.assign(r,{[e]:n.reduce((e,t)=>e.split(t).join("[REDACTED]"),t)});return r}(t,n),a=r?.stdout||i.stdout,l=r?.stderr||i.stderr,p=T(r?.output||i.output||l||a),c={code:"frontend_package_failed",cwd:r?.cwd||e,output_dir:r?.output_dir??"",...r?.archive_path?{archive_path:r.archive_path}:{},...void 0===i.exitCode?{}:{exit_code:i.exitCode},...i.signal?{signal:i.signal}:{},...i.shortMessage?{short_message:i.shortMessage}:{},...i.originalMessage?{original_message:i.originalMessage}:{},...p?{output:p}:{}};super((o=(s=c).output||s.stderr||s.stdout||s.short_message||s.original_message||"未知打包错误",["前端打包失败",`工作目录: ${s.cwd}`,"打包输出:",o].join("\n"))),this.name="FrontendPackageError",this.details=c}}function S(e){if(!s(e))return{output:String(e)};let t=D({stdout:e.stdout,stderr:e.stderr,output:e.all??e.output}),r=!!(t.stdout||t.stderr||t.output);return{exitCode:"number"==typeof e.exitCode?e.exitCode:void 0,signal:"string"==typeof e.signal?e.signal:void 0,shortMessage:r||"string"!=typeof e.shortMessage?void 0:e.shortMessage,originalMessage:"string"==typeof e.originalMessage?e.originalMessage:r||"string"!=typeof e.message?void 0:e.message,...t}}function k(e){let t=Buffer.isBuffer(e)?e.toString("utf8"):"string"==typeof e?e:"";return(0,b.stripVTControlCharacters)(t).replace(/\r\n/g,"\n").replace(/\r/g,"\n").split("\n").map(e=>e.trimEnd()).join("\n").trim()||void 0}function T(e){let t,r=k(e);if(!r)return;let n=(t=[r.search(/(^|\n)error\s+Build error:/i),r.search(/(^|\n)Build error:/i),r.search(/(^|\n)File:\s/i),r.search(/(^|\n)\s*[×x]\s+.*TS\d+:/i)].filter(e=>e>=0)).length>0?Math.min(...t):-1,s=n>=0?r.slice(n).trim():r;return s.length<=4e3?s:`${s.slice(0,4e3).trimEnd()}
2
+ ... output truncated ...`}let C=e("node:fs/promises"),j=e("node:path"),V=e("../../../node_modules/.pnpm/dotenv@17.2.3/node_modules/dotenv/lib/main.js"),P=/^[A-Za-z_][A-Za-z0-9_]*$/,A=new Set(["platform_info_version_tag","platform_info_upload_token","platform_info_app_name","platform_info_app_icon","platform_info_app_key","skip_uploading","X_TT_ENV"]);async function M(e){if(void 0===e.env&&void 0===e.secretEnv)return;let r=K(e.project,e.env,"--env"),n=K(e.project,e.secretEnv,"--secret-env"),s=new Map;try{for(let[e,t]of[[r,!1],[n,!0]])if(e)for(let[r,n]of Object.entries((0,V.parse)(await (0,C.readFile)(e,"utf8"))))s.set(r,{name:r,value:n,env_var_name:r,...t?{is_secret:!0}:{}})}catch{throw new t("所选构建环境文件必须是可读取的文件")}let o=[...s.values()];for(let{name:e,value:r,is_secret:n}of o){if(!P.test(e))throw new t("构建环境变量名称无效");if(A.has(e))throw new t(`不能使用保留的构建环境变量: ${e}`);if(n&&e.startsWith("PUBLIC_"))throw new t(`密钥环境文件不能包含 PUBLIC_ 变量: ${e}`);if("NODE_ENV"===e&&"production"!==r)throw new t("构建环境变量 NODE_ENV 必须为 production")}return o}function K(e,r,n){let s;if(void 0!==r){try{if(s=(0,w.realpathSync)((0,j.resolve)(e,r)),!(0,w.statSync)(s).isFile())throw Error("not a file")}catch{throw new t(`${n} 必须指向可读取的文件`)}if(!(0,j.basename)(s).startsWith(".env"))throw new t(`${n} 实际文件名必须以 .env 开头`);return s}}async function F(e,t){let n=p(t.appVersionTag);if(t.businessTemplatesOnly&&(void 0!==t.env||void 0!==t.secretEnv))throw Error("--env 和 --secret-env 不能与 --business-templates-only 同时使用");let o=await M(t);if(t.businessTemplatesOnly&&(t.release||n))throw Error("--release 和 --app-version-tag 不能与 --business-templates-only 同时使用,因为该模式不提交版本");let i=m(t.project),l=B(t.project,t.manifest,i.manifestPath),u=B(t.project,t.skill,i.skillDirectory),d=B(t.project,t.frontendCode,(0,j.resolve)(t.project,i.frontendDirectory)),_=f(t.project,t.appId,l);if(e.targetAppId=_,t.businessTemplatesOnly)return R(e,_,t);let b=t.keepPackages,N=H(),$="",U="",O="",D="",x=[],L=[];try{var S,k,T,C,V,P,A;let s,i,p,M,K=[],F=void 0===o?await I(d,{appId:_}):{cwd:d,skipped:!0};T=l,C=N,en(T,"manifest"),s=(0,j.join)(C,"manifest.yaml"),(0,w.copyFileSync)(T,s),$=s,L.push(Z({type:"manifest",file:$}));let B=await J($),R=z(t);R&&(D=Y(R,N),L.push(Z({type:"business_templates",file:D})));let H=D?await X(D):void 0;V=t.project,P=N,i=m(V),x=[{type:"events",file:i.eventsPath},{type:"tools",file:i.toolsPath}].flatMap(e=>{if(!(0,w.existsSync)(e.file))return[];en(e.file,e.type);let t=(0,j.join)(P,c(e.type));return(0,w.copyFileSync)(e.file,t),[{type:e.type,file:t}]}),L.push(...x.map(Z));let q=(S=(0,w.readFileSync)($,"utf8"),k=B.manifest,(p=v(function(e){try{return g.qg(e)}catch{return}}(S))??v(k))?function(e){let t,r=e.trim();try{t=new URL(r)}catch{return y(r,"invalid_url","manifest.mcp_server.end_point 必须是有效的 http(s) URL。")}if("http:"!==t.protocol&&"https:"!==t.protocol)return y(r,"invalid_protocol","manifest.mcp_server.end_point 必须使用 http:// 或 https://。");let n=function(e){if(!e)return"empty_hostname";if("localhost"===e||e.endsWith(".localhost"))return"localhost";if(e.endsWith(".local")||e.endsWith(".lan")||e.endsWith(".internal"))return"private_hostname";if(!e.includes(".")&&!e.includes(":"))return"unqualified_hostname";let t=E(e)??function(e){let t="::ffff:";if(!e.startsWith(t))return;let r=e.slice(t.length),n=E(r);if(n)return n;let s=r.split(":");if(2!==s.length)return;let o=s.map(e=>Number.parseInt(e,16));if(o.some((e,t)=>!/^[0-9a-f]{1,4}$/i.test(s[t])||!Number.isInteger(e)||e<0||e>65535))return;let[i,a]=o;return[i>>8,255&i,a>>8,255&a]}(e);return t?function(e){let[t,r]=e;return 10===t?"private_ipv4":127===t?"loopback_ipv4":172===t&&r>=16&&r<=31||192===t&&168===r?"private_ipv4":169===t&&254===r?"link_local_ipv4":100===t&&r>=64&&r<=127?"carrier_grade_nat_ipv4":0===t?"reserved_ipv4":192===t&&0===e[1]&&2===e[2]||198===t&&51===e[1]&&100===e[2]||203===t&&0===e[1]&&113===e[2]?"documentation_ipv4":198===t&&(18===r||19===r)?"benchmark_ipv4":t>=224?"reserved_ipv4":void 0}(t):e.includes(":")?function(e){if("::1"===e||"0:0:0:0:0:0:0:1"===e)return"loopback_ipv6";let t=Number.parseInt(e.split(":")[0]||"0",16);if(Number.isFinite(t)){if((65024&t)==64512)return"unique_local_ipv6";if((65472&t)==65152)return"link_local_ipv6"}}(e):void 0}(t.hostname.replace(/^\[/,"").replace(/\]$/,"").toLowerCase());return n?y(r,n,"manifest.mcp_server.end_point 指向本地或私有网络地址,云构建环境和真机无法访问。"):{checked:!0,endpoint:r,cloud_reachable:!0}}(p):{checked:!1,cloud_reachable:!1,reason:"mcp_endpoint_missing",message:"缺少 manifest.mcp_server.end_point"});if(q.checked&&!q.cloud_reachable&&e.warn((M=q.endpoint??"(未配置)",`云构建环境或真机可能无法访问 manifest.mcp_server.end_point。
3
+ 服务地址: ${M}
4
+ 原因:${q.message??"未知"}
5
5
 
6
- Impact:
7
- - Upload will continue.
8
- - Cloud build may still succeed, but runtime MCP calls may fail if the endpoint is not reachable from the cloud/device environment.
6
+ 影响:
7
+ - 上传将继续。
8
+ - 云构建仍可能成功,但如果云端或设备无法访问该地址,运行时 MCP 调用可能失败。
9
9
 
10
- Action:
11
- Set manifest.mcp_server.end_point to an http(s) MCP URL reachable from the cloud/device environment before release.`),{style:"label"}),M.push(await Q(_,{type:"manifest",file:N})),O){let e={type:"business_templates",file:O},t=await Q(_,e);er(t.business_template_sync_result),M.push(t)}for(let e of D)M.push(await Q(_,e));let q=await G(u,k);$=q.file,S.push(J({type:"skill",file:$}));let ee=function(e,t){let r,n=(0,E.readFileSync)(e);if(n.byteLength<22||(r=n.readUInt32LE(0),0x4034b50!==r&&0x6054b50!==r&&0x8074b50!==r))throw Error(`invalid skill zip: ${e} is not a zip file`);let i=function(e){let t=function(e){let t=Math.max(0,e.length-65535-22);for(let r=e.length-22;r>=t;r-=1)if(0x6054b50===e.readUInt32LE(r))return r;return -1}(e);if(t<0)return[];let r=e.readUInt32LE(t+12),n=e.readUInt32LE(t+16),i=Math.min(e.length,n+r),s=[],o=n;for(;o+46<=i&&0x2014b50===e.readUInt32LE(o);){let t=e.readUInt16LE(o+28),r=e.readUInt16LE(o+30),n=e.readUInt16LE(o+32),i=o+46,a=i+t;s.push(e.toString("utf8",i,a)),o=a+r+n}return s}(n),s=t.map(e=>e.relativePath),o=s.filter(e=>!i.includes(e));if(o.length>0)throw Error(`invalid skill zip: missing discovered Skill entries: ${o.join(", ")}`);return{valid:!0,file_name:(0,j.basename)(e),skill_paths:s}}($,q.skills);M.push(await Q(_,{type:"skill",file:$})),U=await W(d,k,s),S.push(J({type:"frontend_code",file:U})),M.push(await Q(_,{type:"frontend_code",file:U}));let et=await a(_,{appVersionTag:n,release:t.release,variables:s}),ei=et.data?.version_tag||(A=M,A.find(e=>e.version_tag)?.version_tag??""),es={app_id:_,version_tag:ei,status:"submitted",submitted:!0,build_triggered:!0,uploaded_artifacts:M.map(e=>e.type),packages:S,business_template_sync_result:M.find(e=>"business_templates"===e.type)?.business_template_sync_result,next:{status_command:`dbx app artifacts status --app-id ${_} --version-tag ${ei} --poll`,version_detail_url:h(_,ei)},...b?{kept_packages:{temp_dir:k,manifest:N,skill_zip:$,frontend_code_zip:U,...O?{business_templates:O}:{},...Object.fromEntries(D.map(e=>[e.type,e.file]))}}:{},...e.debug?{debug:{frontend_build_check:K,manifest:F,...R?{business_templates:R}:{},skill:ee,uploads:M,endpoints:{manifest_validate:{method:"POST",path:"/app_developer/api/yaml/verify"},upload:{method:"POST",path:"/app_developer/api/apps/:app_key/draft/upload"},source_code_upload_start:{method:"POST",path:"/app_developer/api/apps/:app_key/draft/source_code/upload/start"},source_code_tos_upload:{method:"PUT",path:"<upload_url>"},source_code_upload_finish:{method:"POST",path:"/app_developer/api/apps/:app_key/draft/source_code/upload/finish"},submit:{method:"POST",path:"/app_developer/api/apps/:app_key/draft/submit"}}}}:{},log_id:et.log_id??r()??""};if(!t.quiet){for(let t of(e.log("artifacts uploaded and build triggered"),e.log(`app_id: ${_}`),e.log(`version_tag: ${ei}`),e.log(`status: ${es.status}`),e.log(`next: ${es.next.status_command}`),e.log(`version detail: ${es.next.version_detail_url}`),e.log("package sizes:"),S))e.log(` ${t.type}: ${t.file_name} (${t.file_size_human})`);b&&e.log(`kept packages: ${k}`)}return es}catch(e){throw function(e,t){let r=e instanceof Error?e:Error(String(e));if(0===t.length)return r;let n=t.map(e=>({...e})),s=r.details;return r.details=i(s)?{...s,package_sizes:n}:{...void 0===s?{}:{cause:s},package_sizes:n},r.message.includes("package sizes:")||(r.message=`${r.message}
12
- ${["package sizes:",...t.map(e=>` ${e.type}: ${e.file_name} (${e.file_size_human})`)].join("\n")}`),r}(e,S)}finally{b||(0,E.rmSync)(k,{recursive:!0,force:!0})}}function B(e,t,r){return t?.trim()?(0,j.resolve)(e,t.trim()):r}async function R(e,t,n){let i=Y(n);if(!i)throw Error(`business_templates file not found: ${(0,j.resolve)(n.project,"business-templates.yaml")}`);let s=H(),o=z(i,s);try{let i=await Z(o),a=await Q(t,{type:"business_templates",file:o});er(a.business_template_sync_result);let l={app_id:t,status:"uploaded",submitted:!1,build_triggered:!1,uploaded_artifacts:[a.type],packages:[J({type:"business_templates",file:o})],business_template_validation:i,business_template_sync_result:a.business_template_sync_result,log_id:r()??"",...n.keepPackages?{kept_packages:{temp_dir:s,business_templates:o}}:{}};return n.quiet||(e.log("business templates uploaded"),e.log(`app_id: ${t}`)),l}finally{n.keepPackages||(0,E.rmSync)(s,{recursive:!0,force:!0})}}function z(e,t){en(e,"business_templates");let r=(0,j.join)(t,"business-templates.yaml");return(0,E.copyFileSync)(e,r),r}function Y(e){if(e.businessTemplates){let t=(0,j.resolve)(e.project,e.businessTemplates.trim());return en(t,"business_templates"),t}let t=m(e.project).businessTemplatesPath;return(0,E.existsSync)(t)&&(0,E.statSync)(t).isFile()?t:""}async function G(e,t){let r=_(e),n=(0,j.join)(t,"skill.zip");return function(e,t){let r=[],n=[],i=0;for(let t of e){let e=t.data,s=Buffer.from(t.zipPath),o=function(e){let t=0xffffffff;for(let r of e)t=t>>>8^q[(t^r)&255];return(0xffffffff^t)>>>0}(e),a=Buffer.alloc(30);a.writeUInt32LE(0x4034b50,0),a.writeUInt16LE(20,4),a.writeUInt16LE(2048,6),a.writeUInt16LE(0,8),a.writeUInt16LE(0,10),a.writeUInt16LE(0,12),a.writeUInt32LE(o,14),a.writeUInt32LE(e.length,18),a.writeUInt32LE(e.length,22),a.writeUInt16LE(s.length,26),a.writeUInt16LE(0,28),r.push(a,s,e);let l=Buffer.alloc(46);l.writeUInt32LE(0x2014b50,0),l.writeUInt16LE(20,4),l.writeUInt16LE(20,6),l.writeUInt16LE(2048,8),l.writeUInt16LE(0,10),l.writeUInt16LE(0,12),l.writeUInt16LE(0,14),l.writeUInt32LE(o,16),l.writeUInt32LE(e.length,20),l.writeUInt32LE(e.length,24),l.writeUInt16LE(s.length,28),l.writeUInt16LE(0,30),l.writeUInt16LE(0,32),l.writeUInt16LE(0,34),l.writeUInt16LE(0,36),l.writeUInt32LE(0,38),l.writeUInt32LE(i,42),n.push(l,s),i+=a.length+s.length+e.length}let s=i,o=Buffer.concat(n),a=Buffer.alloc(22);a.writeUInt32LE(0x6054b50,0),a.writeUInt16LE(0,4),a.writeUInt16LE(0,6),a.writeUInt16LE(e.length,8),a.writeUInt16LE(e.length,10),a.writeUInt32LE(o.length,12),a.writeUInt32LE(s,16),a.writeUInt16LE(0,20),(0,E.writeFileSync)(t,Buffer.concat([...r,o,a]))}(r.map(e=>({zipPath:e.relativePath,data:Buffer.from(e.content)})),n),{file:n,skills:r}}async function W(e,t,r){if(function(e,t){if(!(0,E.existsSync)(e))throw Error(`${t} path not found: ${e}`)}(e,"frontend_code"),(0,E.statSync)(e).isFile())throw Error(`frontend_code must be a directory: ${e}`);let n=await k(e,t,r);return en(n,"frontend_code"),n}function H(){let e=(0,j.join)("/tmp","dbx","artifacts-upload");return(0,E.mkdirSync)(e,{recursive:!0}),(0,E.mkdtempSync)((0,j.join)(e,"upload-"))}let q=function(){let e=[];for(let t=0;t<256;t+=1){let r=t;for(let e=0;e<8;e+=1)r=1&r?0xedb88320^r>>>1:r>>>1;e[t]=r>>>0}return e}();async function Q(e,t){var r;if("frontend_code"===t.type){let r=await l({appKey:e,filePath:t.file});return{...d(t),source_type:u(t.type),version_tag:r.data?.version_tag??""}}let n=await s({appKey:e,sourceType:u(t.type),filePath:t.file,contentType:"manifest"===(r=t.type)||"business_templates"===r?"application/x-yaml":"events"===r||"tools"===r?"application/json":"application/zip"});return{...d(t),source_type:u(t.type),version_tag:n.data?.version_tag??"",business_template_sync_result:n.data?.business_template_sync_result}}function J(e){let t=d(e);return{type:t.type,file_name:t.file_name,file_size:t.file_size,file_size_human:function(e){let t=["B","KiB","MiB","GiB"],r=e,n=0;for(;r>=1024&&n<t.length-1;)r/=1024,n+=1;return 0===n?`${e} B`:`${r>=10?r.toFixed(1):r.toFixed(2)} ${t[n]}`}(t.file_size)}}async function X(e){return ee(e,"manifest","manifest")}async function Z(e){return ee(e,"business templates","business_templates")}async function ee(e,t,i){let s=await o((0,E.readFileSync)(e,"utf8"),"strict",i),a=s.data,l={valid:!!a?.success,manifest:a?.manifest,errors:et(a?.errors??[]),warnings:et(a?.warnings??[]),log_id:s.log_id??r()??""};if(!l.valid){var p,c;throw new n((p=t,0===(c=l.errors).length?`${p} validation failed`:[`${p} validation failed`,`${p} validation errors:`,...c.map(e=>` - [${e.code}] ${e.path}: ${e.message}`)].join("\n")),{code:"DBX_VALIDATION_FAILED",details:l,logId:l.log_id})}return{...l,valid:!0}}function et(e){return e.map(e=>({code:e.code,path:e.path,message:e.message}))}function er(e){let t=e?.results.find(e=>3!==e.sync_status||e.error_message?.trim());if(e&&!t)return;let i=t?`${t.template_key}: ${t.error_message?.trim()||`sync_status=${t.sync_status}`}`:"no sync result returned";throw new n(`business templates sync failed: ${i}`,{code:"DBX_CONFIG_SYNC_FAILED",details:e,logId:r()})}function en(e,t){if(!(0,E.existsSync)(e)||!(0,E.statSync)(e).isFile())throw Error(`${t} file not found: ${e}`)}export{R as runBusinessTemplatesUpload,F as uploadArtifacts};
10
+ 处理方法:
11
+ 发布前,请将 manifest.mcp_server.end_point 设置为云端和设备可访问的 http(s) MCP URL。`),{style:"label"}),K.push(await Q(_,{type:"manifest",file:$})),D){let e={type:"business_templates",file:D},t=await Q(_,e);er(t.business_template_sync_result),K.push(t)}for(let e of x)K.push(await Q(_,e));let ee=await G(u,N);U=ee.file,L.push(Z({type:"skill",file:U}));let et=function(e,t){let r,n=(0,w.readFileSync)(e);if(n.byteLength<22||(r=n.readUInt32LE(0),0x4034b50!==r&&0x6054b50!==r&&0x8074b50!==r))throw Error(`Skill 压缩包无效:${e} 不是 ZIP 文件`);let s=function(e){let t=function(e){let t=Math.max(0,e.length-65535-22);for(let r=e.length-22;r>=t;r-=1)if(0x6054b50===e.readUInt32LE(r))return r;return -1}(e);if(t<0)return[];let r=e.readUInt32LE(t+12),n=e.readUInt32LE(t+16),s=Math.min(e.length,n+r),o=[],i=n;for(;i+46<=s&&0x2014b50===e.readUInt32LE(i);){let t=e.readUInt16LE(i+28),r=e.readUInt16LE(i+30),n=e.readUInt16LE(i+32),s=i+46,a=s+t;o.push(e.toString("utf8",s,a)),i=a+r+n}return o}(n),o=t.map(e=>e.relativePath),i=o.filter(e=>!s.includes(e));if(i.length>0)throw Error(`Skill 压缩包无效:缺少已发现的 Skill 文件: ${i.join(", ")}`);return{valid:!0,file_name:(0,j.basename)(e),skill_paths:o}}(U,ee.skills);K.push(await Q(_,{type:"skill",file:U})),O=await W(d,N,o),L.push(Z({type:"frontend_code",file:O})),K.push(await Q(_,{type:"frontend_code",file:O}));let es=await a(_,{appVersionTag:n,release:t.release,variables:o}),eo=es.data?.version_tag||(A=K,A.find(e=>e.version_tag)?.version_tag??""),ei=function(e,t,r){try{if(f(e)!==t)return}catch{return}return["dbx","build","status",r,"--project",(0,j.resolve)(e)].map(e=>/^[a-zA-Z0-9_./:-]+$/.test(e)?e:`'${e.replace(/'/g,"'\\''")}'`).join(" ")}(t.project,_,eo),ea={app_id:_,version_tag:eo,status:"submitted",submitted:!0,build_triggered:!0,uploaded_artifacts:K.map(e=>e.type),packages:L,business_template_sync_result:K.find(e=>"business_templates"===e.type)?.business_template_sync_result,next:{...ei?{status_command:ei}:{},version_detail_url:h(_,eo)},...b?{kept_packages:{temp_dir:N,manifest:$,skill_zip:U,frontend_code_zip:O,...D?{business_templates:D}:{},...Object.fromEntries(x.map(e=>[e.type,e.file]))}}:{},...e.verbose?{debug:{frontend_build_check:F,manifest:B,...H?{business_templates:H}:{},skill:et,uploads:K,endpoints:{manifest_validate:{method:"POST",path:"/app_developer/api/yaml/verify"},upload:{method:"POST",path:"/app_developer/api/apps/:app_key/draft/upload"},source_code_upload_start:{method:"POST",path:"/app_developer/api/apps/:app_key/draft/source_code/upload/start"},source_code_tos_upload:{method:"PUT",path:"<upload_url>"},source_code_upload_finish:{method:"POST",path:"/app_developer/api/apps/:app_key/draft/source_code/upload/finish"},submit:{method:"POST",path:"/app_developer/api/apps/:app_key/draft/submit"}}}}:{},log_id:es.log_id??r()??""};if(!t.quiet){for(let t of(e.log("产物已上传,已触发构建"),e.log(`app_id: ${_}`),e.log(`版本号: ${eo}`),e.log("状态:已提交"),ea.next.status_command&&e.log(`下一步: ${ea.next.status_command}`),e.log(`版本详情: ${ea.next.version_detail_url}`),e.log("压缩包大小:"),L))e.log(` ${t.type}: ${t.file_name} (${t.file_size_human})`);b&&e.log(`已保留压缩包: ${N}`)}return ea}catch(e){throw function(e,t){let r=e instanceof Error?e:Error(String(e));if(0===t.length)return r;let n=t.map(e=>({...e})),o=r.details;return r.details=s(o)?{...o,package_sizes:n}:{...void 0===o?{}:{cause:o},package_sizes:n},r.message.includes("压缩包大小:")||(r.message=`${r.message}
12
+ ${["压缩包大小:",...t.map(e=>` ${e.type}: ${e.file_name} (${e.file_size_human})`)].join("\n")}`),r}(e,L)}finally{b||(0,w.rmSync)(N,{recursive:!0,force:!0})}}function B(e,t,r){return t?.trim()?(0,j.resolve)(e,t.trim()):r}async function R(e,t,n){let s=z(n);if(!s)throw Error(`未找到 business_templates 文件: ${(0,j.resolve)(n.project,"business-templates.yaml")}`);let o=H(),i=Y(s,o);try{let s=await X(i),a=await Q(t,{type:"business_templates",file:i});er(a.business_template_sync_result);let l={app_id:t,status:"uploaded",submitted:!1,build_triggered:!1,uploaded_artifacts:[a.type],packages:[Z({type:"business_templates",file:i})],business_template_validation:s,business_template_sync_result:a.business_template_sync_result,log_id:r()??"",...n.keepPackages?{kept_packages:{temp_dir:o,business_templates:i}}:{}};return n.quiet||(e.log("业务模板已上传"),e.log(`app_id: ${t}`)),l}finally{n.keepPackages||(0,w.rmSync)(o,{recursive:!0,force:!0})}}function Y(e,t){en(e,"business_templates");let r=(0,j.join)(t,"business-templates.yaml");return(0,w.copyFileSync)(e,r),r}function z(e){if(e.businessTemplates){let t=(0,j.resolve)(e.project,e.businessTemplates.trim());return en(t,"business_templates"),t}let t=m(e.project).businessTemplatesPath;return(0,w.existsSync)(t)&&(0,w.statSync)(t).isFile()?t:""}async function G(e,t){let r=_(e),n=(0,j.join)(t,"skill.zip");return function(e,t){let r=[],n=[],s=0;for(let t of e){let e=t.data,o=Buffer.from(t.zipPath),i=function(e){let t=0xffffffff;for(let r of e)t=t>>>8^q[(t^r)&255];return(0xffffffff^t)>>>0}(e),a=Buffer.alloc(30);a.writeUInt32LE(0x4034b50,0),a.writeUInt16LE(20,4),a.writeUInt16LE(2048,6),a.writeUInt16LE(0,8),a.writeUInt16LE(0,10),a.writeUInt16LE(0,12),a.writeUInt32LE(i,14),a.writeUInt32LE(e.length,18),a.writeUInt32LE(e.length,22),a.writeUInt16LE(o.length,26),a.writeUInt16LE(0,28),r.push(a,o,e);let l=Buffer.alloc(46);l.writeUInt32LE(0x2014b50,0),l.writeUInt16LE(20,4),l.writeUInt16LE(20,6),l.writeUInt16LE(2048,8),l.writeUInt16LE(0,10),l.writeUInt16LE(0,12),l.writeUInt16LE(0,14),l.writeUInt32LE(i,16),l.writeUInt32LE(e.length,20),l.writeUInt32LE(e.length,24),l.writeUInt16LE(o.length,28),l.writeUInt16LE(0,30),l.writeUInt16LE(0,32),l.writeUInt16LE(0,34),l.writeUInt16LE(0,36),l.writeUInt32LE(0,38),l.writeUInt32LE(s,42),n.push(l,o),s+=a.length+o.length+e.length}let o=s,i=Buffer.concat(n),a=Buffer.alloc(22);a.writeUInt32LE(0x6054b50,0),a.writeUInt16LE(0,4),a.writeUInt16LE(0,6),a.writeUInt16LE(e.length,8),a.writeUInt16LE(e.length,10),a.writeUInt32LE(i.length,12),a.writeUInt32LE(o,16),a.writeUInt16LE(0,20),(0,w.writeFileSync)(t,Buffer.concat([...r,i,a]))}(r.map(e=>({zipPath:e.relativePath,data:Buffer.from(e.content)})),n),{file:n,skills:r}}async function W(e,t,r){if(function(e,t){if(!(0,w.existsSync)(e))throw Error(`未找到 ${t} 路径: ${e}`)}(e,"frontend_code"),(0,w.statSync)(e).isFile())throw Error(`frontend_code 必须是目录: ${e}`);let n=await N(e,t,r);return en(n,"frontend_code"),n}function H(){let e=(0,j.join)("/tmp","dbx","artifacts-upload");return(0,w.mkdirSync)(e,{recursive:!0}),(0,w.mkdtempSync)((0,j.join)(e,"upload-"))}let q=function(){let e=[];for(let t=0;t<256;t+=1){let r=t;for(let e=0;e<8;e+=1)r=1&r?0xedb88320^r>>>1:r>>>1;e[t]=r>>>0}return e}();async function Q(e,t){var r;if("frontend_code"===t.type){let r=await l({appKey:e,filePath:t.file});return{...d(t),source_type:u(t.type),version_tag:r.data?.version_tag??""}}let n=await o({appKey:e,sourceType:u(t.type),filePath:t.file,contentType:"manifest"===(r=t.type)||"business_templates"===r?"application/x-yaml":"events"===r||"tools"===r?"application/json":"application/zip"});return{...d(t),source_type:u(t.type),version_tag:n.data?.version_tag??"",business_template_sync_result:n.data?.business_template_sync_result}}function Z(e){let t=d(e);return{type:t.type,file_name:t.file_name,file_size:t.file_size,file_size_human:function(e){let t=["B","KiB","MiB","GiB"],r=e,n=0;for(;r>=1024&&n<t.length-1;)r/=1024,n+=1;return 0===n?`${e} B`:`${r>=10?r.toFixed(1):r.toFixed(2)} ${t[n]}`}(t.file_size)}}async function J(e){return ee(e,"manifest","manifest")}async function X(e){return ee(e,"业务模板","business_templates")}async function ee(e,t,s){let o=await i((0,w.readFileSync)(e,"utf8"),"strict",s),a=o.data,l={valid:!!a?.success,manifest:a?.manifest,errors:et(a?.errors??[]),warnings:et(a?.warnings??[]),log_id:o.log_id??r()??""};if(!l.valid){var p,c;throw new n((p=t,0===(c=l.errors).length?`${p} 校验失败`:[`${p} 校验失败`,`${p} 校验错误:`,...c.map(e=>` - [${e.code}] ${e.path}: ${e.message}`)].join("\n")),{code:"DBX_VALIDATION_FAILED",details:l,logId:l.log_id})}return{...l,valid:!0}}function et(e){return e.map(e=>({code:e.code,path:e.path,message:e.message}))}function er(e){let t=e?.results.find(e=>3!==e.sync_status||e.error_message?.trim());if(e&&!t)return;let s=t?`${t.template_key}: ${t.error_message?.trim()||`sync_status=${t.sync_status}`}`:"未返回同步结果";throw new n(`业务模板同步失败: ${s}`,{code:"DBX_CONFIG_SYNC_FAILED",details:e,logId:r()})}function en(e,t){if(!(0,w.existsSync)(e)||!(0,w.statSync)(e).isFile())throw Error(`未找到 ${t} 文件: ${e}`)}export{R as runBusinessTemplatesUpload,F as uploadArtifacts};