@oneworks/client 0.1.0-beta.0 → 0.1.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/{ActionSearchToolbar-8q-bk3mu.js → ActionSearchToolbar-BqRwfUQY.js} +1 -1
- package/dist/assets/{AgentRoomRoute-DfSI_dFH.js → AgentRoomRoute-BYgM7vgg.js} +1 -1
- package/dist/assets/{AgentRoomSessionRoute-DH9PdjZm.js → AgentRoomSessionRoute-DdoZY7qL.js} +1 -1
- package/dist/assets/{ArchiveRoute-E9-htB4H.js → ArchiveRoute-ydgLUN7p.js} +1 -1
- package/dist/assets/{AuthenticatedApp-CgBrvMuc.js → AuthenticatedApp-CK9TT7Nk.js} +192 -192
- package/dist/assets/{AutomationRoute-Bw2xw5bx.js → AutomationRoute-CpcRbNa8.js} +1 -1
- package/dist/assets/{BenchmarkRoute-3VS17jHr.js → BenchmarkRoute-CZRZVolT.js} +1 -1
- package/dist/assets/{ChatRoute-CBQ3j4Je.js → ChatRoute-DdRVEkAb.js} +1 -1
- package/dist/assets/{Collapse-B-oCiEx4.js → Collapse-CxTS9FJh.js} +1 -1
- package/dist/assets/{ComposerLanding-SZn_zRGX.js → ComposerLanding-BChGuCjF.js} +1 -1
- package/dist/assets/{ConfigRoute-Dv-7BRGG.js → ConfigRoute-D_EkHryB.js} +1 -1
- package/dist/assets/{InteractionStructureRoute-FDl9jRvT.js → InteractionStructureRoute-Dpjr6hIq.js} +1 -1
- package/dist/assets/{KnowledgeRoute-C5em_VSL.js → KnowledgeRoute-Bp4Da65A.js} +1 -1
- package/dist/assets/{LauncherApp-olYmK_zO.js → LauncherApp-ByUpDwod.js} +2 -2
- package/dist/assets/{LauncherRoute-Qt8dQkIk.js → LauncherRoute-B94P9m3I.js} +1 -1
- package/dist/assets/{MobileAwareSelect-BmK6WApn.js → MobileAwareSelect-CCAQrsxL.js} +1 -1
- package/dist/assets/{ModuleManagementRoute-B1I_8JKc.js → ModuleManagementRoute-DcrMX6P7.js} +1 -1
- package/dist/assets/{NotFoundRoute-Bj6_YY3I.js → NotFoundRoute-C1IfsiZY.js} +1 -1
- package/dist/assets/{PluginStoreRoute-B847PAZ5.js → PluginStoreRoute-7UBLkrWc.js} +1 -1
- package/dist/assets/{RouteContainerPanelTabs-BnIptVwq.js → RouteContainerPanelTabs-D8pC61tF.js} +1 -1
- package/dist/assets/{SchemaObjectEditor-B9fPfDyT.js → SchemaObjectEditor-DvwrURac.js} +1 -1
- package/dist/assets/{StandaloneMobileDebugRoute-BR4w_LeM.js → StandaloneMobileDebugRoute--yiQ5EdW.js} +1 -1
- package/dist/assets/{WorkspaceApp-BNmtIdn4.js → WorkspaceApp-l-h_IsMp.js} +3 -3
- package/dist/assets/{agent-room-session-paths-Dca8S6NN.js → agent-room-session-paths-DNpYqOr3.js} +3 -3
- package/dist/assets/{arc-JBUpUV6M.js → arc-Xh4h56Fv.js} +1 -1
- package/dist/assets/{blockDiagram-c4efeb88-DKhNwgEQ.js → blockDiagram-c4efeb88-CG3HxYeL.js} +1 -1
- package/dist/assets/{c4Diagram-c83219d4-CWODEGms.js → c4Diagram-c83219d4-DiEPAqCg.js} +1 -1
- package/dist/assets/channel-DH-F5Uqk.js +1 -0
- package/dist/assets/{classDiagram-beda092f-DlghsOqF.js → classDiagram-beda092f-Dwx44PuJ.js} +1 -1
- package/dist/assets/{classDiagram-v2-2358418a-CrSR8gWz.js → classDiagram-v2-2358418a-COXM437u.js} +1 -1
- package/dist/assets/client-build-info-6B4KoYHs.js +1 -0
- package/dist/assets/clone-DGri7oGq.js +1 -0
- package/dist/assets/{createText-1719965b-CLlPr73k.js → createText-1719965b-DPLMqVqY.js} +1 -1
- package/dist/assets/{cssMode-Bt_74RVV.js → cssMode-DfDq4hLs.js} +1 -1
- package/dist/assets/{dockPanelConstants-BWuu_DJp.js → dockPanelConstants-OzU6hJl5.js} +1 -1
- package/dist/assets/{edges-96097737-L_gy1fky.js → edges-96097737-ry9ejc8v.js} +1 -1
- package/dist/assets/{erDiagram-0228fc6a-X1QMD6me.js → erDiagram-0228fc6a-AcCPz3wc.js} +1 -1
- package/dist/assets/{flowDb-c6c81e3f-DNdWK0Po.js → flowDb-c6c81e3f-BGnBxhJf.js} +1 -1
- package/dist/assets/{flowDiagram-50d868cf-C2khStgw.js → flowDiagram-50d868cf-BnS6RFWo.js} +1 -1
- package/dist/assets/flowDiagram-v2-4f6560a1-C3klqpJG.js +1 -0
- package/dist/assets/{flowchart-elk-definition-6af322e1-C89sxd2D.js → flowchart-elk-definition-6af322e1-8-ynORZL.js} +1 -1
- package/dist/assets/{freemarker2-DZ1XIuHj.js → freemarker2-uFZBYLEW.js} +1 -1
- package/dist/assets/{ganttDiagram-a2739b55-Ba3rPNKd.js → ganttDiagram-a2739b55-3MEPfmMB.js} +1 -1
- package/dist/assets/{gitGraphDiagram-82fe8481-DTEFHHtN.js → gitGraphDiagram-82fe8481-BKYGV9pb.js} +1 -1
- package/dist/assets/{graph-BPujwFoF.js → graph-BEwlNa_j.js} +1 -1
- package/dist/assets/{handlebars-lOgsnnQw.js → handlebars-dg6IZCa7.js} +1 -1
- package/dist/assets/{html-DLHadu9L.js → html-KunL9NkW.js} +1 -1
- package/dist/assets/{htmlMode-VeiQ-IsQ.js → htmlMode-CrFpTEpC.js} +1 -1
- package/dist/assets/{index-5325376f-Cx2RM6pk.js → index-5325376f-CCcP_Ahl.js} +1 -1
- package/dist/assets/{index-D4eelxQF.js → index-BIs5hzci.js} +1 -1
- package/dist/assets/{index-CJEVYkL9.js → index-BggFUwYR.js} +1 -1
- package/dist/assets/{index-Cp4GfHnF.js → index-DdUqPqXW.js} +3 -3
- package/dist/assets/{index-CBFCjoHv.js → index-DhpAFZQZ.js} +1 -1
- package/dist/assets/{index-sFqkb8xv.js → index-YzfSzOLk.js} +1 -1
- package/dist/assets/{index-CWmEuVWV.js → index-ZOsqqPVv.js} +1 -1
- package/dist/assets/{index-DBUG8CzV.js → index-nXq6jwfM.js} +1 -1
- package/dist/assets/{infoDiagram-8eee0895-Bj9hWnDg.js → infoDiagram-8eee0895-BzZ34kgw.js} +1 -1
- package/dist/assets/{interaction-panel-mobile-debug-pages-1Gdivksn.js → interaction-panel-mobile-debug-pages-DXC3HSZU.js} +1 -1
- package/dist/assets/{javascript-CXJw-bvU.js → javascript-DA3fh3oR.js} +1 -1
- package/dist/assets/{journeyDiagram-c64418c1-BXAycrrn.js → journeyDiagram-c64418c1-B_kSGErn.js} +1 -1
- package/dist/assets/{jsonMode-DmUNJfpX.js → jsonMode-BDucSIBv.js} +1 -1
- package/dist/assets/{layout-Bp8GVMnq.js → layout-CRLM1T9z.js} +1 -1
- package/dist/assets/{line-olpPNgnh.js → line-Cdyr_7ve.js} +1 -1
- package/dist/assets/{linear-flh_7ux_.js → linear-y86GycLK.js} +1 -1
- package/dist/assets/{liquid-BiVpRgBP.js → liquid-mJp997il.js} +1 -1
- package/dist/assets/{lspLanguageFeatures-olWF83eX.js → lspLanguageFeatures-DiGGmudW.js} +1 -1
- package/dist/assets/{mdx-B5dr7YB-.js → mdx-Co6h2mZ2.js} +1 -1
- package/dist/assets/{mermaid.core-NVIiXnRA.js → mermaid.core-VYJIZL_J.js} +4 -4
- package/dist/assets/{mindmap-definition-8da855dc-BOCh8K8K.js → mindmap-definition-8da855dc-DKNG2gyr.js} +1 -1
- package/dist/assets/{pieDiagram-a8764435-CCitKBQK.js → pieDiagram-a8764435-Cu3up9mc.js} +1 -1
- package/dist/assets/{project-file-tree-icons-DqqhgvoI.js → project-file-tree-icons-CfonMx-1.js} +1 -1
- package/dist/assets/{python-BkEOPIle.js → python-BUUKzwmG.js} +1 -1
- package/dist/assets/{quadrantDiagram-1e28029f-C_FvcHzZ.js → quadrantDiagram-1e28029f-DHW8R4el.js} +1 -1
- package/dist/assets/{razor-BCMQgdis.js → razor-ZPlQfY47.js} +1 -1
- package/dist/assets/{requirementDiagram-08caed73-B001ugYd.js → requirementDiagram-08caed73-CXWNC-_B.js} +1 -1
- package/dist/assets/{route-plugin-chrome-B-Goj3vG.js → route-plugin-chrome-bV1HEaju.js} +1 -1
- package/dist/assets/{sankeyDiagram-a04cb91d-BnkC9YW5.js → sankeyDiagram-a04cb91d-DhKL8pMH.js} +1 -1
- package/dist/assets/{sequenceDiagram-c5b8d532-BGiFCs5z.js → sequenceDiagram-c5b8d532-D3fAcQeI.js} +1 -1
- package/dist/assets/{shortcutUtils-20iqPDwh.js → shortcutUtils-B8h6g_7o.js} +1 -1
- package/dist/assets/{stateDiagram-1ecb1508-Uk4XxTkP.js → stateDiagram-1ecb1508-wKQS4LMF.js} +1 -1
- package/dist/assets/{stateDiagram-v2-c2b004d7-Db6Ouywh.js → stateDiagram-v2-c2b004d7-D5qOKtOa.js} +1 -1
- package/dist/assets/{styles-b4e223ce-CfG45yIm.js → styles-b4e223ce-CpBwPex_.js} +1 -1
- package/dist/assets/{styles-ca3715f6-BGGbMvKc.js → styles-ca3715f6-4bqpN1KH.js} +1 -1
- package/dist/assets/{styles-d45a18b0-mHteeqS2.js → styles-d45a18b0-B0RCBD5D.js} +1 -1
- package/dist/assets/{svgDrawCommon-b86b1483-BAMR2PsF.js → svgDrawCommon-b86b1483-C9KXk4gS.js} +1 -1
- package/dist/assets/{timeline-definition-faaaa080-DLBoPuJD.js → timeline-definition-faaaa080-B1Bfjd0m.js} +1 -1
- package/dist/assets/{tsMode-BTzZ8Zos.js → tsMode-Bd8BwKXc.js} +1 -1
- package/dist/assets/{typescript-_rLmAd51.js → typescript-CLd6MPK0.js} +1 -1
- package/dist/assets/{use-app-preferences-gyulV-hA.js → use-app-preferences-DGCafwsP.js} +1 -1
- package/dist/assets/{use-chat-session-actions-DDZ5KCua.js → use-chat-session-actions-wF_HiVzj.js} +1 -1
- package/dist/assets/{vendor-state-BYwEPTaO.js → vendor-state-zjcHRN98.js} +1 -1
- package/dist/assets/{workspace-file-openers-BwZ5cSeq.js → workspace-file-openers-Dj_Cfk1S.js} +1 -1
- package/dist/assets/{xml-BAU8TJ-c.js → xml-BeC1cWk3.js} +1 -1
- package/dist/assets/{xychartDiagram-f5964ef8-CNfcxTsi.js → xychartDiagram-f5964ef8-DbJVUSHy.js} +1 -1
- package/dist/assets/{yaml-_cphTIn0.js → yaml-gQrw9AcN.js} +1 -1
- package/dist/index.html +2 -2
- package/package.json +17 -17
- package/dist/assets/channel-BsuHYNQO.js +0 -1
- package/dist/assets/client-build-info-bcijLdfD.js +0 -1
- package/dist/assets/clone-BKV6leIk.js +0 -1
- package/dist/assets/flowDiagram-v2-4f6560a1-DW5hyUju.js +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/angular-html-CU67Zn6k.js","assets/html-GMplVEZG.js","assets/javascript-wDzz0qaB.js","assets/css-DPfMkruS.js","assets/angular-ts-BwZT4LLn.js","assets/scss-OYdSNvt2.js","assets/apl-dKokRX4l.js","assets/xml-sdJ4AIDG.js","assets/java-CylS5w8V.js","assets/json-Cp-IABpG.js","assets/astro-CbQHKStN.js","assets/typescript-BPQ3VLAy.js","assets/postcss-CXtECtnM.js","assets/tsx-COt5Ahok.js","assets/blade-D4QpJJKB.js","assets/html-derivative-BFtXZ54Q.js","assets/sql-BLtJtn59.js","assets/bsl-BO_Y6i37.js","assets/sdbl-DVxCFoDh.js","assets/cairo-KRGpt6FW.js","assets/python-B6aJPvgy.js","assets/cobol-nwyudZeR.js","assets/coffee-Ch7k5sss.js","assets/cpp-CofmeUqb.js","assets/regexp-CDVJQ6XC.js","assets/glsl-DplSGwfg.js","assets/c-BIGW1oBm.js","assets/crystal-tKQVLTB8.js","assets/shellscript-Yzrsuije.js","assets/edge-BkV0erSs.js","assets/elixir-CDX3lj18.js","assets/elm-DbKCFpqz.js","assets/erb-BOJIQeun.js","assets/ruby-BvKwtOVI.js","assets/haml-B8DHNrY2.js","assets/graphql-ChdNCCLP.js","assets/jsx-g9-lgVsj.js","assets/lua-BbnMAYS6.js","assets/yaml-Buea-lGh.js","assets/erlang-DsQrWhSR.js","assets/markdown-Cvjx9yec.js","assets/fortran-fixed-form-CkoXwp7k.js","assets/fortran-free-form-BxgE0vQu.js","assets/fsharp-CXgrBDvD.js","assets/gdresource-B7Tvp0Sc.js","assets/gdshader-DkwncUOv.js","assets/gdscript-DTMYz4Jt.js","assets/git-commit-F4YmCXRG.js","assets/diff-D97Zzqfu.js","assets/git-rebase-r7XF79zn.js","assets/glimmer-js-Rg0-pVw9.js","assets/glimmer-ts-U6CK756n.js","assets/hack-CaT9iCJl.js","assets/handlebars-BL8al0AC.js","assets/http-jrhK8wxY.js","assets/hurl-irOxFIW8.js","assets/csv-fuZLfV_i.js","assets/hxml-Bvhsp5Yf.js","assets/haxe-CzTSHFRz.js","assets/jinja-4LBKfQ-Z.js","assets/jison-wvAkD_A8.js","assets/julia-CxzCAyBv.js","assets/r-Dspwwk_N.js","assets/latex-B4uzh10-.js","assets/tex-CvyZ59Mk.js","assets/liquid-DYVedYrR.js","assets/marko-DZsq8hO1.js","assets/less-B1dDrJ26.js","assets/mdc-DUICxH0z.js","assets/nginx-DknmC5AR.js","assets/nim-CVrawwO9.js","assets/perl-C0TMdlhV.js","assets/php-CDn_0X-4.js","assets/pug-CGlum2m_.js","assets/qml-3beO22l8.js","assets/razor-C1TweQQi.js","assets/csharp-K5feNrxe.js","assets/rst-B0xPkSld.js","assets/cmake-D1j8_8rp.js","assets/sas-cz2c8ADy.js","assets/shaderlab-Dg9Lc6iA.js","assets/hlsl-D3lLCCz7.js","assets/shellsession-BADoaaVG.js","assets/soy-Brmx7dQM.js","assets/sparql-rVzFXLq3.js","assets/turtle-BsS91CYL.js","assets/stata-BH5u7GGu.js","assets/svelte-zxCyuUbr.js","assets/templ-W15q3VgB.js","assets/go-Dn2_MT6a.js","assets/ts-tags-zn1MmPIZ.js","assets/twig-CO9l9SDP.js","assets/vue-DN_0RTcg.js","assets/vue-html-AaS7Mt5G.js","assets/vue-vine-CQOfvN7w.js","assets/stylus-BEDo0Tqx.js","assets/xsl-CtQFsRM5.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
var Jt=Object.defineProperty;var Qt=(i,e,t)=>e in i?Jt(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t;var _=(i,e,t)=>Qt(i,typeof e!="symbol"?e+"":e,t);import{_ as c}from"./index-Cp4GfHnF.js";import{cb as je,cc as ft,cd as Yt,ce as Xt,cf as Zt,cg as Ye,ch as er}from"./AuthenticatedApp-CgBrvMuc.js";import"./vendor-react-CnooHTJc.js";import"./vendor-state-BYwEPTaO.js";import"./MobileAwareSelect-BmK6WApn.js";import"./use-app-preferences-gyulV-hA.js";import"./route-plugin-chrome-B-Goj3vG.js";import"./shortcutUtils-20iqPDwh.js";import"./project-file-tree-icons-DqqhgvoI.js";import"./WorkspaceApp-BNmtIdn4.js";import"./index-CWmEuVWV.js";import"./client-build-info-bcijLdfD.js";const Xe={}.hasOwnProperty;function tr(i,e){const t=e||{};function r(n,...s){let o=r.invalid;const l=r.handlers;if(n&&Xe.call(n,i)){const a=String(n[i]);o=Xe.call(l,a)?l[a]:r.unknown}if(o)return o.call(this,n,...s)}return r.handlers=t.handlers||{},r.invalid=t.invalid,r.unknown=t.unknown,r}let P=class extends Error{constructor(e){super(e),this.name="ShikiError"}};function rr(i){return $e(i)}function $e(i){return Array.isArray(i)?ir(i):i instanceof RegExp?i:typeof i=="object"?nr(i):i}function ir(i){let e=[];for(let t=0,r=i.length;t<r;t++)e[t]=$e(i[t]);return e}function nr(i){let e={};for(let t in i)e[t]=$e(i[t]);return e}function gt(i,...e){return e.forEach(t=>{for(let r in t)i[r]=t[r]}),i}function Et(i){const e=~i.lastIndexOf("/")||~i.lastIndexOf("\\");return e===0?i:~e===i.length-1?Et(i.substring(0,i.length-1)):i.substr(~e+1)}var be=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,ne=class{static hasCaptures(i){return i===null?!1:(be.lastIndex=0,be.test(i))}static replaceCaptures(i,e,t){return i.replace(be,(r,n,s,o)=>{let l=t[parseInt(n||s,10)];if(l){let a=e.substring(l.start,l.end);for(;a[0]===".";)a=a.substring(1);switch(o){case"downcase":return a.toLowerCase();case"upcase":return a.toUpperCase();default:return a}}else return r})}};function yt(i,e){return i<e?-1:i>e?1:0}function vt(i,e){if(i===null&&e===null)return 0;if(!i)return-1;if(!e)return 1;let t=i.length,r=e.length;if(t===r){for(let n=0;n<t;n++){let s=yt(i[n],e[n]);if(s!==0)return s}return 0}return t-r}function Ze(i){return!!(/^#[0-9a-f]{6}$/i.test(i)||/^#[0-9a-f]{8}$/i.test(i)||/^#[0-9a-f]{3}$/i.test(i)||/^#[0-9a-f]{4}$/i.test(i))}function Rt(i){return i.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")}var At=class{constructor(i){_(this,"cache",new Map);this.fn=i}get(i){if(this.cache.has(i))return this.cache.get(i);const e=this.fn(i);return this.cache.set(i,e),e}},ue=class{constructor(i,e,t){_(this,"_cachedMatchRoot",new At(i=>this._root.match(i)));this._colorMap=i,this._defaults=e,this._root=t}static createFromRawTheme(i,e){return this.createFromParsedTheme(ar(i),e)}static createFromParsedTheme(i,e){return lr(i,e)}getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(i){if(i===null)return this._defaults;const e=i.scopeName,r=this._cachedMatchRoot.get(e).find(n=>sr(i.parent,n.parentScopes));return r?new Tt(r.fontStyle,r.foreground,r.background):null}},Pe=class ce{constructor(e,t){this.parent=e,this.scopeName=t}static push(e,t){for(const r of t)e=new ce(e,r);return e}static from(...e){let t=null;for(let r=0;r<e.length;r++)t=new ce(t,e[r]);return t}push(e){return new ce(this,e)}getSegments(){let e=this;const t=[];for(;e;)t.push(e.scopeName),e=e.parent;return t.reverse(),t}toString(){return this.getSegments().join(" ")}extends(e){return this===e?!0:this.parent===null?!1:this.parent.extends(e)}getExtensionIfDefined(e){const t=[];let r=this;for(;r&&r!==e;)t.push(r.scopeName),r=r.parent;return r===e?t.reverse():void 0}};function sr(i,e){if(e.length===0)return!0;for(let t=0;t<e.length;t++){let r=e[t],n=!1;if(r===">"){if(t===e.length-1)return!1;r=e[++t],n=!0}for(;i&&!or(i.scopeName,r);){if(n)return!1;i=i.parent}if(!i)return!1;i=i.parent}return!0}function or(i,e){return e===i||i.startsWith(e)&&i[e.length]==="."}var Tt=class{constructor(i,e,t){this.fontStyle=i,this.foregroundId=e,this.backgroundId=t}};function ar(i){if(!i)return[];if(!i.settings||!Array.isArray(i.settings))return[];let e=i.settings,t=[],r=0;for(let n=0,s=e.length;n<s;n++){let o=e[n];if(!o.settings)continue;let l;if(typeof o.scope=="string"){let m=o.scope;m=m.replace(/^[,]+/,""),m=m.replace(/[,]+$/,""),l=m.split(",")}else Array.isArray(o.scope)?l=o.scope:l=[""];let a=-1;if(typeof o.settings.fontStyle=="string"){a=0;let m=o.settings.fontStyle.split(" ");for(let h=0,p=m.length;h<p;h++)switch(m[h]){case"italic":a=a|1;break;case"bold":a=a|2;break;case"underline":a=a|4;break;case"strikethrough":a=a|8;break}}let u=null;typeof o.settings.foreground=="string"&&Ze(o.settings.foreground)&&(u=o.settings.foreground);let d=null;typeof o.settings.background=="string"&&Ze(o.settings.background)&&(d=o.settings.background);for(let m=0,h=l.length;m<h;m++){let f=l[m].trim().split(" "),v=f[f.length-1],R=null;f.length>1&&(R=f.slice(0,f.length-1),R.reverse()),t[r++]=new cr(v,R,n,a,u,d)}}return t}var cr=class{constructor(i,e,t,r,n,s){this.scope=i,this.parentScopes=e,this.index=t,this.fontStyle=r,this.foreground=n,this.background=s}},C=(i=>(i[i.NotSet=-1]="NotSet",i[i.None=0]="None",i[i.Italic=1]="Italic",i[i.Bold=2]="Bold",i[i.Underline=4]="Underline",i[i.Strikethrough=8]="Strikethrough",i))(C||{});function lr(i,e){i.sort((a,u)=>{let d=yt(a.scope,u.scope);return d!==0||(d=vt(a.parentScopes,u.parentScopes),d!==0)?d:a.index-u.index});let t=0,r="#000000",n="#ffffff";for(;i.length>=1&&i[0].scope==="";){let a=i.shift();a.fontStyle!==-1&&(t=a.fontStyle),a.foreground!==null&&(r=a.foreground),a.background!==null&&(n=a.background)}let s=new ur(e),o=new Tt(t,s.getId(r),s.getId(n)),l=new dr(new ke(0,null,-1,0,0),[]);for(let a=0,u=i.length;a<u;a++){let d=i[a];l.insert(0,d.scope,d.parentScopes,d.fontStyle,s.getId(d.foreground),s.getId(d.background))}return new ue(s,o,l)}var ur=class{constructor(i){_(this,"_isFrozen");_(this,"_lastColorId");_(this,"_id2color");_(this,"_color2id");if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(i)){this._isFrozen=!0;for(let e=0,t=i.length;e<t;e++)this._color2id[i[e]]=e,this._id2color[e]=i[e]}else this._isFrozen=!1}getId(i){if(i===null)return 0;i=i.toUpperCase();let e=this._color2id[i];if(e)return e;if(this._isFrozen)throw new Error(`Missing color in color map - ${i}`);return e=++this._lastColorId,this._color2id[i]=e,this._id2color[e]=i,e}getColorMap(){return this._id2color.slice(0)}},mr=Object.freeze([]),ke=class Lt{constructor(e,t,r,n,s){_(this,"scopeDepth");_(this,"parentScopes");_(this,"fontStyle");_(this,"foreground");_(this,"background");this.scopeDepth=e,this.parentScopes=t||mr,this.fontStyle=r,this.foreground=n,this.background=s}clone(){return new Lt(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(e){let t=[];for(let r=0,n=e.length;r<n;r++)t[r]=e[r].clone();return t}acceptOverwrite(e,t,r,n){this.scopeDepth>e?console.log("how did this happen?"):this.scopeDepth=e,t!==-1&&(this.fontStyle=t),r!==0&&(this.foreground=r),n!==0&&(this.background=n)}},dr=class De{constructor(e,t=[],r={}){_(this,"_rulesWithParentScopes");this._mainRule=e,this._children=r,this._rulesWithParentScopes=t}static _cmpBySpecificity(e,t){if(e.scopeDepth!==t.scopeDepth)return t.scopeDepth-e.scopeDepth;let r=0,n=0;for(;e.parentScopes[r]===">"&&r++,t.parentScopes[n]===">"&&n++,!(r>=e.parentScopes.length||n>=t.parentScopes.length);){const s=t.parentScopes[n].length-e.parentScopes[r].length;if(s!==0)return s;r++,n++}return t.parentScopes.length-e.parentScopes.length}match(e){if(e!==""){let r=e.indexOf("."),n,s;if(r===-1?(n=e,s=""):(n=e.substring(0,r),s=e.substring(r+1)),this._children.hasOwnProperty(n))return this._children[n].match(s)}const t=this._rulesWithParentScopes.concat(this._mainRule);return t.sort(De._cmpBySpecificity),t}insert(e,t,r,n,s,o){if(t===""){this._doInsertHere(e,r,n,s,o);return}let l=t.indexOf("."),a,u;l===-1?(a=t,u=""):(a=t.substring(0,l),u=t.substring(l+1));let d;this._children.hasOwnProperty(a)?d=this._children[a]:(d=new De(this._mainRule.clone(),ke.cloneArr(this._rulesWithParentScopes)),this._children[a]=d),d.insert(e+1,u,r,n,s,o)}_doInsertHere(e,t,r,n,s){if(t===null){this._mainRule.acceptOverwrite(e,r,n,s);return}for(let o=0,l=this._rulesWithParentScopes.length;o<l;o++){let a=this._rulesWithParentScopes[o];if(vt(a.parentScopes,t)===0){a.acceptOverwrite(e,r,n,s);return}}r===-1&&(r=this._mainRule.fontStyle),n===0&&(n=this._mainRule.foreground),s===0&&(s=this._mainRule.background),this._rulesWithParentScopes.push(new ke(e,t,r,n,s))}},K=class D{static toBinaryStr(e){return e.toString(2).padStart(32,"0")}static print(e){const t=D.getLanguageId(e),r=D.getTokenType(e),n=D.getFontStyle(e),s=D.getForeground(e),o=D.getBackground(e);console.log({languageId:t,tokenType:r,fontStyle:n,foreground:s,background:o})}static getLanguageId(e){return(e&255)>>>0}static getTokenType(e){return(e&768)>>>8}static containsBalancedBrackets(e){return(e&1024)!==0}static getFontStyle(e){return(e&30720)>>>11}static getForeground(e){return(e&16744448)>>>15}static getBackground(e){return(e&4278190080)>>>24}static set(e,t,r,n,s,o,l){let a=D.getLanguageId(e),u=D.getTokenType(e),d=D.containsBalancedBrackets(e)?1:0,m=D.getFontStyle(e),h=D.getForeground(e),p=D.getBackground(e);return t!==0&&(a=t),r!==8&&(u=r),n!==null&&(d=n?1:0),s!==-1&&(m=s),o!==0&&(h=o),l!==0&&(p=l),(a<<0|u<<8|d<<10|m<<11|h<<15|p<<24)>>>0}};function me(i,e){const t=[],r=hr(i);let n=r.next();for(;n!==null;){let a=0;if(n.length===2&&n.charAt(1)===":"){switch(n.charAt(0)){case"R":a=1;break;case"L":a=-1;break;default:console.log(`Unknown priority ${n} in scope selector`)}n=r.next()}let u=o();if(t.push({matcher:u,priority:a}),n!==",")break;n=r.next()}return t;function s(){if(n==="-"){n=r.next();const a=s();return u=>!!a&&!a(u)}if(n==="("){n=r.next();const a=l();return n===")"&&(n=r.next()),a}if(et(n)){const a=[];do a.push(n),n=r.next();while(et(n));return u=>e(a,u)}return null}function o(){const a=[];let u=s();for(;u;)a.push(u),u=s();return d=>a.every(m=>m(d))}function l(){const a=[];let u=o();for(;u&&(a.push(u),n==="|"||n===",");){do n=r.next();while(n==="|"||n===",");u=o()}return d=>a.some(m=>m(d))}}function et(i){return!!i&&!!i.match(/[\w\.:]+/)}function hr(i){let e=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,t=e.exec(i);return{next:()=>{if(!t)return null;const r=t[0];return t=e.exec(i),r}}}function bt(i){typeof i.dispose=="function"&&i.dispose()}var Z=class{constructor(i){this.scopeName=i}toKey(){return this.scopeName}},pr=class{constructor(i,e){this.scopeName=i,this.ruleName=e}toKey(){return`${this.scopeName}#${this.ruleName}`}},_r=class{constructor(){_(this,"_references",[]);_(this,"_seenReferenceKeys",new Set);_(this,"visitedRule",new Set)}get references(){return this._references}add(i){const e=i.toKey();this._seenReferenceKeys.has(e)||(this._seenReferenceKeys.add(e),this._references.push(i))}},fr=class{constructor(i,e){_(this,"seenFullScopeRequests",new Set);_(this,"seenPartialScopeRequests",new Set);_(this,"Q");this.repo=i,this.initialScopeName=e,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new Z(this.initialScopeName)]}processQueue(){const i=this.Q;this.Q=[];const e=new _r;for(const t of i)gr(t,this.initialScopeName,this.repo,e);for(const t of e.references)if(t instanceof Z){if(this.seenFullScopeRequests.has(t.scopeName))continue;this.seenFullScopeRequests.add(t.scopeName),this.Q.push(t)}else{if(this.seenFullScopeRequests.has(t.scopeName)||this.seenPartialScopeRequests.has(t.toKey()))continue;this.seenPartialScopeRequests.add(t.toKey()),this.Q.push(t)}}};function gr(i,e,t,r){const n=t.lookup(i.scopeName);if(!n){if(i.scopeName===e)throw new Error(`No grammar provided for <${e}>`);return}const s=t.lookup(e);i instanceof Z?le({baseGrammar:s,selfGrammar:n},r):Ne(i.ruleName,{baseGrammar:s,selfGrammar:n,repository:n.repository},r);const o=t.injections(i.scopeName);if(o)for(const l of o)r.add(new Z(l))}function Ne(i,e,t){if(e.repository&&e.repository[i]){const r=e.repository[i];de([r],e,t)}}function le(i,e){i.selfGrammar.patterns&&Array.isArray(i.selfGrammar.patterns)&&de(i.selfGrammar.patterns,{...i,repository:i.selfGrammar.repository},e),i.selfGrammar.injections&&de(Object.values(i.selfGrammar.injections),{...i,repository:i.selfGrammar.repository},e)}function de(i,e,t){for(const r of i){if(t.visitedRule.has(r))continue;t.visitedRule.add(r);const n=r.repository?gt({},e.repository,r.repository):e.repository;Array.isArray(r.patterns)&&de(r.patterns,{...e,repository:n},t);const s=r.include;if(!s)continue;const o=Pt(s);switch(o.kind){case 0:le({...e,selfGrammar:e.baseGrammar},t);break;case 1:le(e,t);break;case 2:Ne(o.ruleName,{...e,repository:n},t);break;case 3:case 4:const l=o.scopeName===e.selfGrammar.scopeName?e.selfGrammar:o.scopeName===e.baseGrammar.scopeName?e.baseGrammar:void 0;if(l){const a={baseGrammar:e.baseGrammar,selfGrammar:l,repository:n};o.kind===4?Ne(o.ruleName,a,t):le(a,t)}else o.kind===4?t.add(new pr(o.scopeName,o.ruleName)):t.add(new Z(o.scopeName));break}}}var Er=class{constructor(){_(this,"kind",0)}},yr=class{constructor(){_(this,"kind",1)}},vr=class{constructor(i){_(this,"kind",2);this.ruleName=i}},Rr=class{constructor(i){_(this,"kind",3);this.scopeName=i}},Ar=class{constructor(i,e){_(this,"kind",4);this.scopeName=i,this.ruleName=e}};function Pt(i){if(i==="$base")return new Er;if(i==="$self")return new yr;const e=i.indexOf("#");if(e===-1)return new Rr(i);if(e===0)return new vr(i.substring(1));{const t=i.substring(0,e),r=i.substring(e+1);return new Ar(t,r)}}var Tr=/\\(\d+)/,tt=/\\(\d+)/g,Lr=-1,It=-2;var ie=class{constructor(i,e,t,r){_(this,"$location");_(this,"id");_(this,"_nameIsCapturing");_(this,"_name");_(this,"_contentNameIsCapturing");_(this,"_contentName");this.$location=i,this.id=e,this._name=t||null,this._nameIsCapturing=ne.hasCaptures(this._name),this._contentName=r||null,this._contentNameIsCapturing=ne.hasCaptures(this._contentName)}get debugName(){const i=this.$location?`${Et(this.$location.filename)}:${this.$location.line}`:"unknown";return`${this.constructor.name}#${this.id} @ ${i}`}getName(i,e){return!this._nameIsCapturing||this._name===null||i===null||e===null?this._name:ne.replaceCaptures(this._name,i,e)}getContentName(i,e){return!this._contentNameIsCapturing||this._contentName===null?this._contentName:ne.replaceCaptures(this._contentName,i,e)}},br=class extends ie{constructor(e,t,r,n,s){super(e,t,r,n);_(this,"retokenizeCapturedWithRuleId");this.retokenizeCapturedWithRuleId=s}dispose(){}collectPatterns(e,t){throw new Error("Not supported!")}compile(e,t){throw new Error("Not supported!")}compileAG(e,t,r,n){throw new Error("Not supported!")}},Pr=class extends ie{constructor(e,t,r,n,s){super(e,t,r,null);_(this,"_match");_(this,"captures");_(this,"_cachedCompiledPatterns");this._match=new ee(n,this.id),this.captures=s,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(e,t){t.push(this._match)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,r,n){return this._getCachedCompiledPatterns(e).compileAG(e,r,n)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new te,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},rt=class extends ie{constructor(e,t,r,n,s){super(e,t,r,n);_(this,"hasMissingPatterns");_(this,"patterns");_(this,"_cachedCompiledPatterns");this.patterns=s.patterns,this.hasMissingPatterns=s.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(e,t){for(const r of this.patterns)e.getRule(r).collectPatterns(e,t)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,r,n){return this._getCachedCompiledPatterns(e).compileAG(e,r,n)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new te,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},Ve=class extends ie{constructor(e,t,r,n,s,o,l,a,u,d){super(e,t,r,n);_(this,"_begin");_(this,"beginCaptures");_(this,"_end");_(this,"endHasBackReferences");_(this,"endCaptures");_(this,"applyEndPatternLast");_(this,"hasMissingPatterns");_(this,"patterns");_(this,"_cachedCompiledPatterns");this._begin=new ee(s,this.id),this.beginCaptures=o,this._end=new ee(l||"",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=a,this.applyEndPatternLast=u||!1,this.patterns=d.patterns,this.hasMissingPatterns=d.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugEndRegExp(){return`${this._end.source}`}getEndWithResolvedBackReferences(e,t){return this._end.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e,t).compile(e)}compileAG(e,t,r,n){return this._getCachedCompiledPatterns(e,t).compileAG(e,r,n)}_getCachedCompiledPatterns(e,t){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new te;for(const r of this.patterns)e.getRule(r).collectPatterns(e,this._cachedCompiledPatterns);this.applyEndPatternLast?this._cachedCompiledPatterns.push(this._end.hasBackReferences?this._end.clone():this._end):this._cachedCompiledPatterns.unshift(this._end.hasBackReferences?this._end.clone():this._end)}return this._end.hasBackReferences&&(this.applyEndPatternLast?this._cachedCompiledPatterns.setSource(this._cachedCompiledPatterns.length()-1,t):this._cachedCompiledPatterns.setSource(0,t)),this._cachedCompiledPatterns}},he=class extends ie{constructor(e,t,r,n,s,o,l,a,u){super(e,t,r,n);_(this,"_begin");_(this,"beginCaptures");_(this,"whileCaptures");_(this,"_while");_(this,"whileHasBackReferences");_(this,"hasMissingPatterns");_(this,"patterns");_(this,"_cachedCompiledPatterns");_(this,"_cachedCompiledWhilePatterns");this._begin=new ee(s,this.id),this.beginCaptures=o,this.whileCaptures=a,this._while=new ee(l,It),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=u.patterns,this.hasMissingPatterns=u.hasMissingPatterns,this._cachedCompiledPatterns=null,this._cachedCompiledWhilePatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null),this._cachedCompiledWhilePatterns&&(this._cachedCompiledWhilePatterns.dispose(),this._cachedCompiledWhilePatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugWhileRegExp(){return`${this._while.source}`}getWhileWithResolvedBackReferences(e,t){return this._while.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,r,n){return this._getCachedCompiledPatterns(e).compileAG(e,r,n)}_getCachedCompiledPatterns(e){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new te;for(const t of this.patterns)e.getRule(t).collectPatterns(e,this._cachedCompiledPatterns)}return this._cachedCompiledPatterns}compileWhile(e,t){return this._getCachedCompiledWhilePatterns(e,t).compile(e)}compileWhileAG(e,t,r,n){return this._getCachedCompiledWhilePatterns(e,t).compileAG(e,r,n)}_getCachedCompiledWhilePatterns(e,t){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new te,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,t||""),this._cachedCompiledWhilePatterns}},St=class w{static createCaptureRule(e,t,r,n,s){return e.registerRule(o=>new br(t,o,r,n,s))}static getCompiledRuleId(e,t,r){return e.id||t.registerRule(n=>{if(e.id=n,e.match)return new Pr(e.$vscodeTextmateLocation,e.id,e.name,e.match,w._compileCaptures(e.captures,t,r));if(typeof e.begin>"u"){e.repository&&(r=gt({},r,e.repository));let s=e.patterns;return typeof s>"u"&&e.include&&(s=[{include:e.include}]),new rt(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,w._compilePatterns(s,t,r))}return e.while?new he(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,w._compileCaptures(e.beginCaptures||e.captures,t,r),e.while,w._compileCaptures(e.whileCaptures||e.captures,t,r),w._compilePatterns(e.patterns,t,r)):new Ve(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,w._compileCaptures(e.beginCaptures||e.captures,t,r),e.end,w._compileCaptures(e.endCaptures||e.captures,t,r),e.applyEndPatternLast,w._compilePatterns(e.patterns,t,r))}),e.id}static _compileCaptures(e,t,r){let n=[];if(e){let s=0;for(const o in e){if(o==="$vscodeTextmateLocation")continue;const l=parseInt(o,10);l>s&&(s=l)}for(let o=0;o<=s;o++)n[o]=null;for(const o in e){if(o==="$vscodeTextmateLocation")continue;const l=parseInt(o,10);let a=0;e[o].patterns&&(a=w.getCompiledRuleId(e[o],t,r)),n[l]=w.createCaptureRule(t,e[o].$vscodeTextmateLocation,e[o].name,e[o].contentName,a)}}return n}static _compilePatterns(e,t,r){let n=[];if(e)for(let s=0,o=e.length;s<o;s++){const l=e[s];let a=-1;if(l.include){const u=Pt(l.include);switch(u.kind){case 0:case 1:a=w.getCompiledRuleId(r[l.include],t,r);break;case 2:let d=r[u.ruleName];d&&(a=w.getCompiledRuleId(d,t,r));break;case 3:case 4:const m=u.scopeName,h=u.kind===4?u.ruleName:null,p=t.getExternalGrammar(m,r);if(p)if(h){let f=p.repository[h];f&&(a=w.getCompiledRuleId(f,t,p.repository))}else a=w.getCompiledRuleId(p.repository.$self,t,p.repository);break}}else a=w.getCompiledRuleId(l,t,r);if(a!==-1){const u=t.getRule(a);let d=!1;if((u instanceof rt||u instanceof Ve||u instanceof he)&&u.hasMissingPatterns&&u.patterns.length===0&&(d=!0),d)continue;n.push(a)}}return{patterns:n,hasMissingPatterns:(e?e.length:0)!==n.length}}},ee=class Ot{constructor(e,t){_(this,"source");_(this,"ruleId");_(this,"hasAnchor");_(this,"hasBackReferences");_(this,"_anchorCache");if(e&&typeof e=="string"){const r=e.length;let n=0,s=[],o=!1;for(let l=0;l<r;l++)if(e.charAt(l)==="\\"&&l+1<r){const u=e.charAt(l+1);u==="z"?(s.push(e.substring(n,l)),s.push("$(?!\\n)(?<!\\n)"),n=l+2):(u==="A"||u==="G")&&(o=!0),l++}this.hasAnchor=o,n===0?this.source=e:(s.push(e.substring(n,r)),this.source=s.join(""))}else this.hasAnchor=!1,this.source=e;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=t,typeof this.source=="string"?this.hasBackReferences=Tr.test(this.source):this.hasBackReferences=!1}clone(){return new Ot(this.source,this.ruleId)}setSource(e){this.source!==e&&(this.source=e,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(e,t){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let r=t.map(n=>e.substring(n.start,n.end));return tt.lastIndex=0,this.source.replace(tt,(n,s)=>Rt(r[parseInt(s,10)]||""))}_buildAnchorCache(){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let e=[],t=[],r=[],n=[],s,o,l,a;for(s=0,o=this.source.length;s<o;s++)l=this.source.charAt(s),e[s]=l,t[s]=l,r[s]=l,n[s]=l,l==="\\"&&s+1<o&&(a=this.source.charAt(s+1),a==="A"?(e[s+1]="",t[s+1]="",r[s+1]="A",n[s+1]="A"):a==="G"?(e[s+1]="",t[s+1]="G",r[s+1]="",n[s+1]="G"):(e[s+1]=a,t[s+1]=a,r[s+1]=a,n[s+1]=a),s++);return{A0_G0:e.join(""),A0_G1:t.join(""),A1_G0:r.join(""),A1_G1:n.join("")}}resolveAnchors(e,t){return!this.hasAnchor||!this._anchorCache||typeof this.source!="string"?this.source:e?t?this._anchorCache.A1_G1:this._anchorCache.A1_G0:t?this._anchorCache.A0_G1:this._anchorCache.A0_G0}},te=class{constructor(){_(this,"_items");_(this,"_hasAnchors");_(this,"_cached");_(this,"_anchorCache");this._items=[],this._hasAnchors=!1,this._cached=null,this._anchorCache={A0_G0:null,A0_G1:null,A1_G0:null,A1_G1:null}}dispose(){this._disposeCaches()}_disposeCaches(){this._cached&&(this._cached.dispose(),this._cached=null),this._anchorCache.A0_G0&&(this._anchorCache.A0_G0.dispose(),this._anchorCache.A0_G0=null),this._anchorCache.A0_G1&&(this._anchorCache.A0_G1.dispose(),this._anchorCache.A0_G1=null),this._anchorCache.A1_G0&&(this._anchorCache.A1_G0.dispose(),this._anchorCache.A1_G0=null),this._anchorCache.A1_G1&&(this._anchorCache.A1_G1.dispose(),this._anchorCache.A1_G1=null)}push(i){this._items.push(i),this._hasAnchors=this._hasAnchors||i.hasAnchor}unshift(i){this._items.unshift(i),this._hasAnchors=this._hasAnchors||i.hasAnchor}length(){return this._items.length}setSource(i,e){this._items[i].source!==e&&(this._disposeCaches(),this._items[i].setSource(e))}compile(i){if(!this._cached){let e=this._items.map(t=>t.source);this._cached=new it(i,e,this._items.map(t=>t.ruleId))}return this._cached}compileAG(i,e,t){return this._hasAnchors?e?t?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(i,e,t)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(i,e,t)),this._anchorCache.A1_G0):t?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(i,e,t)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(i,e,t)),this._anchorCache.A0_G0):this.compile(i)}_resolveAnchors(i,e,t){let r=this._items.map(n=>n.resolveAnchors(e,t));return new it(i,r,this._items.map(n=>n.ruleId))}},it=class{constructor(i,e,t){_(this,"scanner");this.regExps=e,this.rules=t,this.scanner=i.createOnigScanner(e)}dispose(){typeof this.scanner.dispose=="function"&&this.scanner.dispose()}toString(){const i=[];for(let e=0,t=this.rules.length;e<t;e++)i.push(" - "+this.rules[e]+": "+this.regExps[e]);return i.join(`
|
|
2
|
+
var Jt=Object.defineProperty;var Qt=(i,e,t)=>e in i?Jt(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t;var _=(i,e,t)=>Qt(i,typeof e!="symbol"?e+"":e,t);import{_ as c}from"./index-DdUqPqXW.js";import{cb as je,cc as ft,cd as Yt,ce as Xt,cf as Zt,cg as Ye,ch as er}from"./AuthenticatedApp-CK9TT7Nk.js";import"./vendor-react-CnooHTJc.js";import"./vendor-state-zjcHRN98.js";import"./MobileAwareSelect-CCAQrsxL.js";import"./use-app-preferences-DGCafwsP.js";import"./route-plugin-chrome-bV1HEaju.js";import"./shortcutUtils-B8h6g_7o.js";import"./project-file-tree-icons-CfonMx-1.js";import"./WorkspaceApp-l-h_IsMp.js";import"./index-ZOsqqPVv.js";import"./client-build-info-6B4KoYHs.js";const Xe={}.hasOwnProperty;function tr(i,e){const t=e||{};function r(n,...s){let o=r.invalid;const l=r.handlers;if(n&&Xe.call(n,i)){const a=String(n[i]);o=Xe.call(l,a)?l[a]:r.unknown}if(o)return o.call(this,n,...s)}return r.handlers=t.handlers||{},r.invalid=t.invalid,r.unknown=t.unknown,r}let P=class extends Error{constructor(e){super(e),this.name="ShikiError"}};function rr(i){return $e(i)}function $e(i){return Array.isArray(i)?ir(i):i instanceof RegExp?i:typeof i=="object"?nr(i):i}function ir(i){let e=[];for(let t=0,r=i.length;t<r;t++)e[t]=$e(i[t]);return e}function nr(i){let e={};for(let t in i)e[t]=$e(i[t]);return e}function gt(i,...e){return e.forEach(t=>{for(let r in t)i[r]=t[r]}),i}function Et(i){const e=~i.lastIndexOf("/")||~i.lastIndexOf("\\");return e===0?i:~e===i.length-1?Et(i.substring(0,i.length-1)):i.substr(~e+1)}var be=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,ne=class{static hasCaptures(i){return i===null?!1:(be.lastIndex=0,be.test(i))}static replaceCaptures(i,e,t){return i.replace(be,(r,n,s,o)=>{let l=t[parseInt(n||s,10)];if(l){let a=e.substring(l.start,l.end);for(;a[0]===".";)a=a.substring(1);switch(o){case"downcase":return a.toLowerCase();case"upcase":return a.toUpperCase();default:return a}}else return r})}};function yt(i,e){return i<e?-1:i>e?1:0}function vt(i,e){if(i===null&&e===null)return 0;if(!i)return-1;if(!e)return 1;let t=i.length,r=e.length;if(t===r){for(let n=0;n<t;n++){let s=yt(i[n],e[n]);if(s!==0)return s}return 0}return t-r}function Ze(i){return!!(/^#[0-9a-f]{6}$/i.test(i)||/^#[0-9a-f]{8}$/i.test(i)||/^#[0-9a-f]{3}$/i.test(i)||/^#[0-9a-f]{4}$/i.test(i))}function Rt(i){return i.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")}var At=class{constructor(i){_(this,"cache",new Map);this.fn=i}get(i){if(this.cache.has(i))return this.cache.get(i);const e=this.fn(i);return this.cache.set(i,e),e}},ue=class{constructor(i,e,t){_(this,"_cachedMatchRoot",new At(i=>this._root.match(i)));this._colorMap=i,this._defaults=e,this._root=t}static createFromRawTheme(i,e){return this.createFromParsedTheme(ar(i),e)}static createFromParsedTheme(i,e){return lr(i,e)}getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(i){if(i===null)return this._defaults;const e=i.scopeName,r=this._cachedMatchRoot.get(e).find(n=>sr(i.parent,n.parentScopes));return r?new Tt(r.fontStyle,r.foreground,r.background):null}},Pe=class ce{constructor(e,t){this.parent=e,this.scopeName=t}static push(e,t){for(const r of t)e=new ce(e,r);return e}static from(...e){let t=null;for(let r=0;r<e.length;r++)t=new ce(t,e[r]);return t}push(e){return new ce(this,e)}getSegments(){let e=this;const t=[];for(;e;)t.push(e.scopeName),e=e.parent;return t.reverse(),t}toString(){return this.getSegments().join(" ")}extends(e){return this===e?!0:this.parent===null?!1:this.parent.extends(e)}getExtensionIfDefined(e){const t=[];let r=this;for(;r&&r!==e;)t.push(r.scopeName),r=r.parent;return r===e?t.reverse():void 0}};function sr(i,e){if(e.length===0)return!0;for(let t=0;t<e.length;t++){let r=e[t],n=!1;if(r===">"){if(t===e.length-1)return!1;r=e[++t],n=!0}for(;i&&!or(i.scopeName,r);){if(n)return!1;i=i.parent}if(!i)return!1;i=i.parent}return!0}function or(i,e){return e===i||i.startsWith(e)&&i[e.length]==="."}var Tt=class{constructor(i,e,t){this.fontStyle=i,this.foregroundId=e,this.backgroundId=t}};function ar(i){if(!i)return[];if(!i.settings||!Array.isArray(i.settings))return[];let e=i.settings,t=[],r=0;for(let n=0,s=e.length;n<s;n++){let o=e[n];if(!o.settings)continue;let l;if(typeof o.scope=="string"){let m=o.scope;m=m.replace(/^[,]+/,""),m=m.replace(/[,]+$/,""),l=m.split(",")}else Array.isArray(o.scope)?l=o.scope:l=[""];let a=-1;if(typeof o.settings.fontStyle=="string"){a=0;let m=o.settings.fontStyle.split(" ");for(let h=0,p=m.length;h<p;h++)switch(m[h]){case"italic":a=a|1;break;case"bold":a=a|2;break;case"underline":a=a|4;break;case"strikethrough":a=a|8;break}}let u=null;typeof o.settings.foreground=="string"&&Ze(o.settings.foreground)&&(u=o.settings.foreground);let d=null;typeof o.settings.background=="string"&&Ze(o.settings.background)&&(d=o.settings.background);for(let m=0,h=l.length;m<h;m++){let f=l[m].trim().split(" "),v=f[f.length-1],R=null;f.length>1&&(R=f.slice(0,f.length-1),R.reverse()),t[r++]=new cr(v,R,n,a,u,d)}}return t}var cr=class{constructor(i,e,t,r,n,s){this.scope=i,this.parentScopes=e,this.index=t,this.fontStyle=r,this.foreground=n,this.background=s}},C=(i=>(i[i.NotSet=-1]="NotSet",i[i.None=0]="None",i[i.Italic=1]="Italic",i[i.Bold=2]="Bold",i[i.Underline=4]="Underline",i[i.Strikethrough=8]="Strikethrough",i))(C||{});function lr(i,e){i.sort((a,u)=>{let d=yt(a.scope,u.scope);return d!==0||(d=vt(a.parentScopes,u.parentScopes),d!==0)?d:a.index-u.index});let t=0,r="#000000",n="#ffffff";for(;i.length>=1&&i[0].scope==="";){let a=i.shift();a.fontStyle!==-1&&(t=a.fontStyle),a.foreground!==null&&(r=a.foreground),a.background!==null&&(n=a.background)}let s=new ur(e),o=new Tt(t,s.getId(r),s.getId(n)),l=new dr(new ke(0,null,-1,0,0),[]);for(let a=0,u=i.length;a<u;a++){let d=i[a];l.insert(0,d.scope,d.parentScopes,d.fontStyle,s.getId(d.foreground),s.getId(d.background))}return new ue(s,o,l)}var ur=class{constructor(i){_(this,"_isFrozen");_(this,"_lastColorId");_(this,"_id2color");_(this,"_color2id");if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(i)){this._isFrozen=!0;for(let e=0,t=i.length;e<t;e++)this._color2id[i[e]]=e,this._id2color[e]=i[e]}else this._isFrozen=!1}getId(i){if(i===null)return 0;i=i.toUpperCase();let e=this._color2id[i];if(e)return e;if(this._isFrozen)throw new Error(`Missing color in color map - ${i}`);return e=++this._lastColorId,this._color2id[i]=e,this._id2color[e]=i,e}getColorMap(){return this._id2color.slice(0)}},mr=Object.freeze([]),ke=class Lt{constructor(e,t,r,n,s){_(this,"scopeDepth");_(this,"parentScopes");_(this,"fontStyle");_(this,"foreground");_(this,"background");this.scopeDepth=e,this.parentScopes=t||mr,this.fontStyle=r,this.foreground=n,this.background=s}clone(){return new Lt(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(e){let t=[];for(let r=0,n=e.length;r<n;r++)t[r]=e[r].clone();return t}acceptOverwrite(e,t,r,n){this.scopeDepth>e?console.log("how did this happen?"):this.scopeDepth=e,t!==-1&&(this.fontStyle=t),r!==0&&(this.foreground=r),n!==0&&(this.background=n)}},dr=class De{constructor(e,t=[],r={}){_(this,"_rulesWithParentScopes");this._mainRule=e,this._children=r,this._rulesWithParentScopes=t}static _cmpBySpecificity(e,t){if(e.scopeDepth!==t.scopeDepth)return t.scopeDepth-e.scopeDepth;let r=0,n=0;for(;e.parentScopes[r]===">"&&r++,t.parentScopes[n]===">"&&n++,!(r>=e.parentScopes.length||n>=t.parentScopes.length);){const s=t.parentScopes[n].length-e.parentScopes[r].length;if(s!==0)return s;r++,n++}return t.parentScopes.length-e.parentScopes.length}match(e){if(e!==""){let r=e.indexOf("."),n,s;if(r===-1?(n=e,s=""):(n=e.substring(0,r),s=e.substring(r+1)),this._children.hasOwnProperty(n))return this._children[n].match(s)}const t=this._rulesWithParentScopes.concat(this._mainRule);return t.sort(De._cmpBySpecificity),t}insert(e,t,r,n,s,o){if(t===""){this._doInsertHere(e,r,n,s,o);return}let l=t.indexOf("."),a,u;l===-1?(a=t,u=""):(a=t.substring(0,l),u=t.substring(l+1));let d;this._children.hasOwnProperty(a)?d=this._children[a]:(d=new De(this._mainRule.clone(),ke.cloneArr(this._rulesWithParentScopes)),this._children[a]=d),d.insert(e+1,u,r,n,s,o)}_doInsertHere(e,t,r,n,s){if(t===null){this._mainRule.acceptOverwrite(e,r,n,s);return}for(let o=0,l=this._rulesWithParentScopes.length;o<l;o++){let a=this._rulesWithParentScopes[o];if(vt(a.parentScopes,t)===0){a.acceptOverwrite(e,r,n,s);return}}r===-1&&(r=this._mainRule.fontStyle),n===0&&(n=this._mainRule.foreground),s===0&&(s=this._mainRule.background),this._rulesWithParentScopes.push(new ke(e,t,r,n,s))}},K=class D{static toBinaryStr(e){return e.toString(2).padStart(32,"0")}static print(e){const t=D.getLanguageId(e),r=D.getTokenType(e),n=D.getFontStyle(e),s=D.getForeground(e),o=D.getBackground(e);console.log({languageId:t,tokenType:r,fontStyle:n,foreground:s,background:o})}static getLanguageId(e){return(e&255)>>>0}static getTokenType(e){return(e&768)>>>8}static containsBalancedBrackets(e){return(e&1024)!==0}static getFontStyle(e){return(e&30720)>>>11}static getForeground(e){return(e&16744448)>>>15}static getBackground(e){return(e&4278190080)>>>24}static set(e,t,r,n,s,o,l){let a=D.getLanguageId(e),u=D.getTokenType(e),d=D.containsBalancedBrackets(e)?1:0,m=D.getFontStyle(e),h=D.getForeground(e),p=D.getBackground(e);return t!==0&&(a=t),r!==8&&(u=r),n!==null&&(d=n?1:0),s!==-1&&(m=s),o!==0&&(h=o),l!==0&&(p=l),(a<<0|u<<8|d<<10|m<<11|h<<15|p<<24)>>>0}};function me(i,e){const t=[],r=hr(i);let n=r.next();for(;n!==null;){let a=0;if(n.length===2&&n.charAt(1)===":"){switch(n.charAt(0)){case"R":a=1;break;case"L":a=-1;break;default:console.log(`Unknown priority ${n} in scope selector`)}n=r.next()}let u=o();if(t.push({matcher:u,priority:a}),n!==",")break;n=r.next()}return t;function s(){if(n==="-"){n=r.next();const a=s();return u=>!!a&&!a(u)}if(n==="("){n=r.next();const a=l();return n===")"&&(n=r.next()),a}if(et(n)){const a=[];do a.push(n),n=r.next();while(et(n));return u=>e(a,u)}return null}function o(){const a=[];let u=s();for(;u;)a.push(u),u=s();return d=>a.every(m=>m(d))}function l(){const a=[];let u=o();for(;u&&(a.push(u),n==="|"||n===",");){do n=r.next();while(n==="|"||n===",");u=o()}return d=>a.some(m=>m(d))}}function et(i){return!!i&&!!i.match(/[\w\.:]+/)}function hr(i){let e=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,t=e.exec(i);return{next:()=>{if(!t)return null;const r=t[0];return t=e.exec(i),r}}}function bt(i){typeof i.dispose=="function"&&i.dispose()}var Z=class{constructor(i){this.scopeName=i}toKey(){return this.scopeName}},pr=class{constructor(i,e){this.scopeName=i,this.ruleName=e}toKey(){return`${this.scopeName}#${this.ruleName}`}},_r=class{constructor(){_(this,"_references",[]);_(this,"_seenReferenceKeys",new Set);_(this,"visitedRule",new Set)}get references(){return this._references}add(i){const e=i.toKey();this._seenReferenceKeys.has(e)||(this._seenReferenceKeys.add(e),this._references.push(i))}},fr=class{constructor(i,e){_(this,"seenFullScopeRequests",new Set);_(this,"seenPartialScopeRequests",new Set);_(this,"Q");this.repo=i,this.initialScopeName=e,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new Z(this.initialScopeName)]}processQueue(){const i=this.Q;this.Q=[];const e=new _r;for(const t of i)gr(t,this.initialScopeName,this.repo,e);for(const t of e.references)if(t instanceof Z){if(this.seenFullScopeRequests.has(t.scopeName))continue;this.seenFullScopeRequests.add(t.scopeName),this.Q.push(t)}else{if(this.seenFullScopeRequests.has(t.scopeName)||this.seenPartialScopeRequests.has(t.toKey()))continue;this.seenPartialScopeRequests.add(t.toKey()),this.Q.push(t)}}};function gr(i,e,t,r){const n=t.lookup(i.scopeName);if(!n){if(i.scopeName===e)throw new Error(`No grammar provided for <${e}>`);return}const s=t.lookup(e);i instanceof Z?le({baseGrammar:s,selfGrammar:n},r):Ne(i.ruleName,{baseGrammar:s,selfGrammar:n,repository:n.repository},r);const o=t.injections(i.scopeName);if(o)for(const l of o)r.add(new Z(l))}function Ne(i,e,t){if(e.repository&&e.repository[i]){const r=e.repository[i];de([r],e,t)}}function le(i,e){i.selfGrammar.patterns&&Array.isArray(i.selfGrammar.patterns)&&de(i.selfGrammar.patterns,{...i,repository:i.selfGrammar.repository},e),i.selfGrammar.injections&&de(Object.values(i.selfGrammar.injections),{...i,repository:i.selfGrammar.repository},e)}function de(i,e,t){for(const r of i){if(t.visitedRule.has(r))continue;t.visitedRule.add(r);const n=r.repository?gt({},e.repository,r.repository):e.repository;Array.isArray(r.patterns)&&de(r.patterns,{...e,repository:n},t);const s=r.include;if(!s)continue;const o=Pt(s);switch(o.kind){case 0:le({...e,selfGrammar:e.baseGrammar},t);break;case 1:le(e,t);break;case 2:Ne(o.ruleName,{...e,repository:n},t);break;case 3:case 4:const l=o.scopeName===e.selfGrammar.scopeName?e.selfGrammar:o.scopeName===e.baseGrammar.scopeName?e.baseGrammar:void 0;if(l){const a={baseGrammar:e.baseGrammar,selfGrammar:l,repository:n};o.kind===4?Ne(o.ruleName,a,t):le(a,t)}else o.kind===4?t.add(new pr(o.scopeName,o.ruleName)):t.add(new Z(o.scopeName));break}}}var Er=class{constructor(){_(this,"kind",0)}},yr=class{constructor(){_(this,"kind",1)}},vr=class{constructor(i){_(this,"kind",2);this.ruleName=i}},Rr=class{constructor(i){_(this,"kind",3);this.scopeName=i}},Ar=class{constructor(i,e){_(this,"kind",4);this.scopeName=i,this.ruleName=e}};function Pt(i){if(i==="$base")return new Er;if(i==="$self")return new yr;const e=i.indexOf("#");if(e===-1)return new Rr(i);if(e===0)return new vr(i.substring(1));{const t=i.substring(0,e),r=i.substring(e+1);return new Ar(t,r)}}var Tr=/\\(\d+)/,tt=/\\(\d+)/g,Lr=-1,It=-2;var ie=class{constructor(i,e,t,r){_(this,"$location");_(this,"id");_(this,"_nameIsCapturing");_(this,"_name");_(this,"_contentNameIsCapturing");_(this,"_contentName");this.$location=i,this.id=e,this._name=t||null,this._nameIsCapturing=ne.hasCaptures(this._name),this._contentName=r||null,this._contentNameIsCapturing=ne.hasCaptures(this._contentName)}get debugName(){const i=this.$location?`${Et(this.$location.filename)}:${this.$location.line}`:"unknown";return`${this.constructor.name}#${this.id} @ ${i}`}getName(i,e){return!this._nameIsCapturing||this._name===null||i===null||e===null?this._name:ne.replaceCaptures(this._name,i,e)}getContentName(i,e){return!this._contentNameIsCapturing||this._contentName===null?this._contentName:ne.replaceCaptures(this._contentName,i,e)}},br=class extends ie{constructor(e,t,r,n,s){super(e,t,r,n);_(this,"retokenizeCapturedWithRuleId");this.retokenizeCapturedWithRuleId=s}dispose(){}collectPatterns(e,t){throw new Error("Not supported!")}compile(e,t){throw new Error("Not supported!")}compileAG(e,t,r,n){throw new Error("Not supported!")}},Pr=class extends ie{constructor(e,t,r,n,s){super(e,t,r,null);_(this,"_match");_(this,"captures");_(this,"_cachedCompiledPatterns");this._match=new ee(n,this.id),this.captures=s,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(e,t){t.push(this._match)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,r,n){return this._getCachedCompiledPatterns(e).compileAG(e,r,n)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new te,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},rt=class extends ie{constructor(e,t,r,n,s){super(e,t,r,n);_(this,"hasMissingPatterns");_(this,"patterns");_(this,"_cachedCompiledPatterns");this.patterns=s.patterns,this.hasMissingPatterns=s.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(e,t){for(const r of this.patterns)e.getRule(r).collectPatterns(e,t)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,r,n){return this._getCachedCompiledPatterns(e).compileAG(e,r,n)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new te,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},Ve=class extends ie{constructor(e,t,r,n,s,o,l,a,u,d){super(e,t,r,n);_(this,"_begin");_(this,"beginCaptures");_(this,"_end");_(this,"endHasBackReferences");_(this,"endCaptures");_(this,"applyEndPatternLast");_(this,"hasMissingPatterns");_(this,"patterns");_(this,"_cachedCompiledPatterns");this._begin=new ee(s,this.id),this.beginCaptures=o,this._end=new ee(l||"",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=a,this.applyEndPatternLast=u||!1,this.patterns=d.patterns,this.hasMissingPatterns=d.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugEndRegExp(){return`${this._end.source}`}getEndWithResolvedBackReferences(e,t){return this._end.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e,t).compile(e)}compileAG(e,t,r,n){return this._getCachedCompiledPatterns(e,t).compileAG(e,r,n)}_getCachedCompiledPatterns(e,t){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new te;for(const r of this.patterns)e.getRule(r).collectPatterns(e,this._cachedCompiledPatterns);this.applyEndPatternLast?this._cachedCompiledPatterns.push(this._end.hasBackReferences?this._end.clone():this._end):this._cachedCompiledPatterns.unshift(this._end.hasBackReferences?this._end.clone():this._end)}return this._end.hasBackReferences&&(this.applyEndPatternLast?this._cachedCompiledPatterns.setSource(this._cachedCompiledPatterns.length()-1,t):this._cachedCompiledPatterns.setSource(0,t)),this._cachedCompiledPatterns}},he=class extends ie{constructor(e,t,r,n,s,o,l,a,u){super(e,t,r,n);_(this,"_begin");_(this,"beginCaptures");_(this,"whileCaptures");_(this,"_while");_(this,"whileHasBackReferences");_(this,"hasMissingPatterns");_(this,"patterns");_(this,"_cachedCompiledPatterns");_(this,"_cachedCompiledWhilePatterns");this._begin=new ee(s,this.id),this.beginCaptures=o,this.whileCaptures=a,this._while=new ee(l,It),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=u.patterns,this.hasMissingPatterns=u.hasMissingPatterns,this._cachedCompiledPatterns=null,this._cachedCompiledWhilePatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null),this._cachedCompiledWhilePatterns&&(this._cachedCompiledWhilePatterns.dispose(),this._cachedCompiledWhilePatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugWhileRegExp(){return`${this._while.source}`}getWhileWithResolvedBackReferences(e,t){return this._while.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,r,n){return this._getCachedCompiledPatterns(e).compileAG(e,r,n)}_getCachedCompiledPatterns(e){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new te;for(const t of this.patterns)e.getRule(t).collectPatterns(e,this._cachedCompiledPatterns)}return this._cachedCompiledPatterns}compileWhile(e,t){return this._getCachedCompiledWhilePatterns(e,t).compile(e)}compileWhileAG(e,t,r,n){return this._getCachedCompiledWhilePatterns(e,t).compileAG(e,r,n)}_getCachedCompiledWhilePatterns(e,t){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new te,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,t||""),this._cachedCompiledWhilePatterns}},St=class w{static createCaptureRule(e,t,r,n,s){return e.registerRule(o=>new br(t,o,r,n,s))}static getCompiledRuleId(e,t,r){return e.id||t.registerRule(n=>{if(e.id=n,e.match)return new Pr(e.$vscodeTextmateLocation,e.id,e.name,e.match,w._compileCaptures(e.captures,t,r));if(typeof e.begin>"u"){e.repository&&(r=gt({},r,e.repository));let s=e.patterns;return typeof s>"u"&&e.include&&(s=[{include:e.include}]),new rt(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,w._compilePatterns(s,t,r))}return e.while?new he(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,w._compileCaptures(e.beginCaptures||e.captures,t,r),e.while,w._compileCaptures(e.whileCaptures||e.captures,t,r),w._compilePatterns(e.patterns,t,r)):new Ve(e.$vscodeTextmateLocation,e.id,e.name,e.contentName,e.begin,w._compileCaptures(e.beginCaptures||e.captures,t,r),e.end,w._compileCaptures(e.endCaptures||e.captures,t,r),e.applyEndPatternLast,w._compilePatterns(e.patterns,t,r))}),e.id}static _compileCaptures(e,t,r){let n=[];if(e){let s=0;for(const o in e){if(o==="$vscodeTextmateLocation")continue;const l=parseInt(o,10);l>s&&(s=l)}for(let o=0;o<=s;o++)n[o]=null;for(const o in e){if(o==="$vscodeTextmateLocation")continue;const l=parseInt(o,10);let a=0;e[o].patterns&&(a=w.getCompiledRuleId(e[o],t,r)),n[l]=w.createCaptureRule(t,e[o].$vscodeTextmateLocation,e[o].name,e[o].contentName,a)}}return n}static _compilePatterns(e,t,r){let n=[];if(e)for(let s=0,o=e.length;s<o;s++){const l=e[s];let a=-1;if(l.include){const u=Pt(l.include);switch(u.kind){case 0:case 1:a=w.getCompiledRuleId(r[l.include],t,r);break;case 2:let d=r[u.ruleName];d&&(a=w.getCompiledRuleId(d,t,r));break;case 3:case 4:const m=u.scopeName,h=u.kind===4?u.ruleName:null,p=t.getExternalGrammar(m,r);if(p)if(h){let f=p.repository[h];f&&(a=w.getCompiledRuleId(f,t,p.repository))}else a=w.getCompiledRuleId(p.repository.$self,t,p.repository);break}}else a=w.getCompiledRuleId(l,t,r);if(a!==-1){const u=t.getRule(a);let d=!1;if((u instanceof rt||u instanceof Ve||u instanceof he)&&u.hasMissingPatterns&&u.patterns.length===0&&(d=!0),d)continue;n.push(a)}}return{patterns:n,hasMissingPatterns:(e?e.length:0)!==n.length}}},ee=class Ot{constructor(e,t){_(this,"source");_(this,"ruleId");_(this,"hasAnchor");_(this,"hasBackReferences");_(this,"_anchorCache");if(e&&typeof e=="string"){const r=e.length;let n=0,s=[],o=!1;for(let l=0;l<r;l++)if(e.charAt(l)==="\\"&&l+1<r){const u=e.charAt(l+1);u==="z"?(s.push(e.substring(n,l)),s.push("$(?!\\n)(?<!\\n)"),n=l+2):(u==="A"||u==="G")&&(o=!0),l++}this.hasAnchor=o,n===0?this.source=e:(s.push(e.substring(n,r)),this.source=s.join(""))}else this.hasAnchor=!1,this.source=e;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=t,typeof this.source=="string"?this.hasBackReferences=Tr.test(this.source):this.hasBackReferences=!1}clone(){return new Ot(this.source,this.ruleId)}setSource(e){this.source!==e&&(this.source=e,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(e,t){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let r=t.map(n=>e.substring(n.start,n.end));return tt.lastIndex=0,this.source.replace(tt,(n,s)=>Rt(r[parseInt(s,10)]||""))}_buildAnchorCache(){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let e=[],t=[],r=[],n=[],s,o,l,a;for(s=0,o=this.source.length;s<o;s++)l=this.source.charAt(s),e[s]=l,t[s]=l,r[s]=l,n[s]=l,l==="\\"&&s+1<o&&(a=this.source.charAt(s+1),a==="A"?(e[s+1]="",t[s+1]="",r[s+1]="A",n[s+1]="A"):a==="G"?(e[s+1]="",t[s+1]="G",r[s+1]="",n[s+1]="G"):(e[s+1]=a,t[s+1]=a,r[s+1]=a,n[s+1]=a),s++);return{A0_G0:e.join(""),A0_G1:t.join(""),A1_G0:r.join(""),A1_G1:n.join("")}}resolveAnchors(e,t){return!this.hasAnchor||!this._anchorCache||typeof this.source!="string"?this.source:e?t?this._anchorCache.A1_G1:this._anchorCache.A1_G0:t?this._anchorCache.A0_G1:this._anchorCache.A0_G0}},te=class{constructor(){_(this,"_items");_(this,"_hasAnchors");_(this,"_cached");_(this,"_anchorCache");this._items=[],this._hasAnchors=!1,this._cached=null,this._anchorCache={A0_G0:null,A0_G1:null,A1_G0:null,A1_G1:null}}dispose(){this._disposeCaches()}_disposeCaches(){this._cached&&(this._cached.dispose(),this._cached=null),this._anchorCache.A0_G0&&(this._anchorCache.A0_G0.dispose(),this._anchorCache.A0_G0=null),this._anchorCache.A0_G1&&(this._anchorCache.A0_G1.dispose(),this._anchorCache.A0_G1=null),this._anchorCache.A1_G0&&(this._anchorCache.A1_G0.dispose(),this._anchorCache.A1_G0=null),this._anchorCache.A1_G1&&(this._anchorCache.A1_G1.dispose(),this._anchorCache.A1_G1=null)}push(i){this._items.push(i),this._hasAnchors=this._hasAnchors||i.hasAnchor}unshift(i){this._items.unshift(i),this._hasAnchors=this._hasAnchors||i.hasAnchor}length(){return this._items.length}setSource(i,e){this._items[i].source!==e&&(this._disposeCaches(),this._items[i].setSource(e))}compile(i){if(!this._cached){let e=this._items.map(t=>t.source);this._cached=new it(i,e,this._items.map(t=>t.ruleId))}return this._cached}compileAG(i,e,t){return this._hasAnchors?e?t?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(i,e,t)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(i,e,t)),this._anchorCache.A1_G0):t?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(i,e,t)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(i,e,t)),this._anchorCache.A0_G0):this.compile(i)}_resolveAnchors(i,e,t){let r=this._items.map(n=>n.resolveAnchors(e,t));return new it(i,r,this._items.map(n=>n.ruleId))}},it=class{constructor(i,e,t){_(this,"scanner");this.regExps=e,this.rules=t,this.scanner=i.createOnigScanner(e)}dispose(){typeof this.scanner.dispose=="function"&&this.scanner.dispose()}toString(){const i=[];for(let e=0,t=this.rules.length;e<t;e++)i.push(" - "+this.rules[e]+": "+this.regExps[e]);return i.join(`
|
|
3
3
|
`)}findNextMatchSync(i,e,t){const r=this.scanner.findNextMatchSync(i,e,t);return r?{ruleId:this.rules[r.index],captureIndices:r.captureIndices}:null}},Ie=class{constructor(i,e){this.languageId=i,this.tokenType=e}},M,Ir=(M=class{constructor(e,t){_(this,"_defaultAttributes");_(this,"_embeddedLanguagesMatcher");_(this,"_getBasicScopeAttributes",new At(e=>{const t=this._scopeToLanguage(e),r=this._toStandardTokenType(e);return new Ie(t,r)}));this._defaultAttributes=new Ie(e,8),this._embeddedLanguagesMatcher=new Sr(Object.entries(t||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(e){return e===null?M._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(e)}_scopeToLanguage(e){return this._embeddedLanguagesMatcher.match(e)||0}_toStandardTokenType(e){const t=e.match(M.STANDARD_TOKEN_TYPE_REGEXP);if(!t)return 8;switch(t[1]){case"comment":return 1;case"string":return 2;case"regex":return 3;case"meta.embedded":return 0}throw new Error("Unexpected match for standard token type!")}},_(M,"_NULL_SCOPE_METADATA",new Ie(0,0)),_(M,"STANDARD_TOKEN_TYPE_REGEXP",/\b(comment|string|regex|meta\.embedded)\b/),M),Sr=class{constructor(i){_(this,"values");_(this,"scopesRegExp");if(i.length===0)this.values=null,this.scopesRegExp=null;else{this.values=new Map(i);const e=i.map(([t,r])=>Rt(t));e.sort(),e.reverse(),this.scopesRegExp=new RegExp(`^((${e.join(")|(")}))($|\\.)`,"")}}match(i){if(!this.scopesRegExp)return;const e=i.match(this.scopesRegExp);if(e)return this.values.get(e[1])}},nt=class{constructor(i,e){this.stack=i,this.stoppedEarly=e}};function wt(i,e,t,r,n,s,o,l){const a=e.content.length;let u=!1,d=-1;if(o){const p=Or(i,e,t,r,n,s);n=p.stack,r=p.linePos,t=p.isFirstLine,d=p.anchorPosition}const m=Date.now();for(;!u;){if(l!==0&&Date.now()-m>l)return new nt(n,!0);h()}return new nt(n,!1);function h(){const p=wr(i,e,t,r,n,d);if(!p){s.produce(n,a),u=!0;return}const f=p.captureIndices,v=p.matchedRuleId,R=f&&f.length>0?f[0].end>r:!1;if(v===Lr){const E=n.getRule(i);s.produce(n,f[0].start),n=n.withContentNameScopesList(n.nameScopesList),Y(i,e,t,n,s,E.endCaptures,f),s.produce(n,f[0].end);const y=n;if(n=n.parent,d=y.getAnchorPos(),!R&&y.getEnterPos()===r){n=y,s.produce(n,a),u=!0;return}}else{const E=i.getRule(v);s.produce(n,f[0].start);const y=n,g=E.getName(e.content,f),A=n.contentNameScopesList.pushAttributed(g,i);if(n=n.push(v,r,d,f[0].end===a,null,A,A),E instanceof Ve){const T=E;Y(i,e,t,n,s,T.beginCaptures,f),s.produce(n,f[0].end),d=f[0].end;const b=T.getContentName(e.content,f),L=A.pushAttributed(b,i);if(n=n.withContentNameScopesList(L),T.endHasBackReferences&&(n=n.withEndRule(T.getEndWithResolvedBackReferences(e.content,f))),!R&&y.hasSameRuleAs(n)){n=n.pop(),s.produce(n,a),u=!0;return}}else if(E instanceof he){const T=E;Y(i,e,t,n,s,T.beginCaptures,f),s.produce(n,f[0].end),d=f[0].end;const b=T.getContentName(e.content,f),L=A.pushAttributed(b,i);if(n=n.withContentNameScopesList(L),T.whileHasBackReferences&&(n=n.withEndRule(T.getWhileWithResolvedBackReferences(e.content,f))),!R&&y.hasSameRuleAs(n)){n=n.pop(),s.produce(n,a),u=!0;return}}else if(Y(i,e,t,n,s,E.captures,f),s.produce(n,f[0].end),n=n.pop(),!R){n=n.safePop(),s.produce(n,a),u=!0;return}}f[0].end>r&&(r=f[0].end,t=!1)}}function Or(i,e,t,r,n,s){let o=n.beginRuleCapturedEOL?0:-1;const l=[];for(let a=n;a;a=a.pop()){const u=a.getRule(i);u instanceof he&&l.push({rule:u,stack:a})}for(let a=l.pop();a;a=l.pop()){const{ruleScanner:u,findOptions:d}=Dr(a.rule,i,a.stack.endRule,t,r===o),m=u.findNextMatchSync(e,r,d);if(m){if(m.ruleId!==It){n=a.stack.pop();break}m.captureIndices&&m.captureIndices.length&&(s.produce(a.stack,m.captureIndices[0].start),Y(i,e,t,a.stack,s,a.rule.whileCaptures,m.captureIndices),s.produce(a.stack,m.captureIndices[0].end),o=m.captureIndices[0].end,m.captureIndices[0].end>r&&(r=m.captureIndices[0].end,t=!1))}else{n=a.stack.pop();break}}return{stack:n,linePos:r,anchorPosition:o,isFirstLine:t}}function wr(i,e,t,r,n,s){const o=Cr(i,e,t,r,n,s),l=i.getInjections();if(l.length===0)return o;const a=kr(l,i,e,t,r,n,s);if(!a)return o;if(!o)return a;const u=o.captureIndices[0].start,d=a.captureIndices[0].start;return d<u||a.priorityMatch&&d===u?a:o}function Cr(i,e,t,r,n,s){const o=n.getRule(i),{ruleScanner:l,findOptions:a}=Ct(o,i,n.endRule,t,r===s),u=l.findNextMatchSync(e,r,a);return u?{captureIndices:u.captureIndices,matchedRuleId:u.ruleId}:null}function kr(i,e,t,r,n,s,o){let l=Number.MAX_VALUE,a=null,u,d=0;const m=s.contentNameScopesList.getScopeNames();for(let h=0,p=i.length;h<p;h++){const f=i[h];if(!f.matcher(m))continue;const v=e.getRule(f.ruleId),{ruleScanner:R,findOptions:E}=Ct(v,e,null,r,n===o),y=R.findNextMatchSync(t,n,E);if(!y)continue;const g=y.captureIndices[0].start;if(!(g>=l)&&(l=g,a=y.captureIndices,u=y.ruleId,d=f.priority,l===n))break}return a?{priorityMatch:d===-1,captureIndices:a,matchedRuleId:u}:null}function Ct(i,e,t,r,n){return{ruleScanner:i.compileAG(e,t,r,n),findOptions:0}}function Dr(i,e,t,r,n){return{ruleScanner:i.compileWhileAG(e,t,r,n),findOptions:0}}function Y(i,e,t,r,n,s,o){if(s.length===0)return;const l=e.content,a=Math.min(s.length,o.length),u=[],d=o[0].end;for(let m=0;m<a;m++){const h=s[m];if(h===null)continue;const p=o[m];if(p.length===0)continue;if(p.start>d)break;for(;u.length>0&&u[u.length-1].endPos<=p.start;)n.produceFromScopes(u[u.length-1].scopes,u[u.length-1].endPos),u.pop();if(u.length>0?n.produceFromScopes(u[u.length-1].scopes,p.start):n.produce(r,p.start),h.retokenizeCapturedWithRuleId){const v=h.getName(l,o),R=r.contentNameScopesList.pushAttributed(v,i),E=h.getContentName(l,o),y=R.pushAttributed(E,i),g=r.push(h.retokenizeCapturedWithRuleId,p.start,-1,!1,null,R,y),A=i.createOnigString(l.substring(0,p.end));wt(i,A,t&&p.start===0,p.start,g,n,!1,0),bt(A);continue}const f=h.getName(l,o);if(f!==null){const R=(u.length>0?u[u.length-1].scopes:r.contentNameScopesList).pushAttributed(f,i);u.push(new Nr(R,p.end))}}for(;u.length>0;)n.produceFromScopes(u[u.length-1].scopes,u[u.length-1].endPos),u.pop()}var Nr=class{constructor(i,e){_(this,"scopes");_(this,"endPos");this.scopes=i,this.endPos=e}};function Vr(i,e,t,r,n,s,o,l){return new Gr(i,e,t,r,n,s,o,l)}function st(i,e,t,r,n){const s=me(e,pe),o=St.getCompiledRuleId(t,r,n.repository);for(const l of s)i.push({debugSelector:e,matcher:l.matcher,ruleId:o,grammar:n,priority:l.priority})}function pe(i,e){if(e.length<i.length)return!1;let t=0;return i.every(r=>{for(let n=t;n<e.length;n++)if(xr(e[n],r))return t=n+1,!0;return!1})}function xr(i,e){if(!i)return!1;if(i===e)return!0;const t=e.length;return i.length>t&&i.substr(0,t)===e&&i[t]==="."}var Gr=class{constructor(i,e,t,r,n,s,o,l){_(this,"_rootId");_(this,"_lastRuleId");_(this,"_ruleId2desc");_(this,"_includedGrammars");_(this,"_grammarRepository");_(this,"_grammar");_(this,"_injections");_(this,"_basicScopeAttributesProvider");_(this,"_tokenTypeMatchers");if(this._rootScopeName=i,this.balancedBracketSelectors=s,this._onigLib=l,this._basicScopeAttributesProvider=new Ir(t,r),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=o,this._grammar=ot(e,null),this._injections=null,this._tokenTypeMatchers=[],n)for(const a of Object.keys(n)){const u=me(a,pe);for(const d of u)this._tokenTypeMatchers.push({matcher:d.matcher,type:n[a]})}}get themeProvider(){return this._grammarRepository}dispose(){for(const i of this._ruleId2desc)i&&i.dispose()}createOnigScanner(i){return this._onigLib.createOnigScanner(i)}createOnigString(i){return this._onigLib.createOnigString(i)}getMetadataForScope(i){return this._basicScopeAttributesProvider.getBasicScopeAttributes(i)}_collectInjections(){const i={lookup:n=>n===this._rootScopeName?this._grammar:this.getExternalGrammar(n),injections:n=>this._grammarRepository.injections(n)},e=[],t=this._rootScopeName,r=i.lookup(t);if(r){const n=r.injections;if(n)for(let o in n)st(e,o,n[o],this,r);const s=this._grammarRepository.injections(t);s&&s.forEach(o=>{const l=this.getExternalGrammar(o);if(l){const a=l.injectionSelector;a&&st(e,a,l,this,l)}})}return e.sort((n,s)=>n.priority-s.priority),e}getInjections(){return this._injections===null&&(this._injections=this._collectInjections()),this._injections}registerRule(i){const e=++this._lastRuleId,t=i(e);return this._ruleId2desc[e]=t,t}getRule(i){return this._ruleId2desc[i]}getExternalGrammar(i,e){if(this._includedGrammars[i])return this._includedGrammars[i];if(this._grammarRepository){const t=this._grammarRepository.lookup(i);if(t)return this._includedGrammars[i]=ot(t,e&&e.$base),this._includedGrammars[i]}}tokenizeLine(i,e,t=0){const r=this._tokenize(i,e,!1,t);return{tokens:r.lineTokens.getResult(r.ruleStack,r.lineLength),ruleStack:r.ruleStack,stoppedEarly:r.stoppedEarly}}tokenizeLine2(i,e,t=0){const r=this._tokenize(i,e,!0,t);return{tokens:r.lineTokens.getBinaryResult(r.ruleStack,r.lineLength),ruleStack:r.ruleStack,stoppedEarly:r.stoppedEarly}}_tokenize(i,e,t,r){this._rootId===-1&&(this._rootId=St.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository),this.getInjections());let n;if(!e||e===xe.NULL){n=!0;const u=this._basicScopeAttributesProvider.getDefaultAttributes(),d=this.themeProvider.getDefaults(),m=K.set(0,u.languageId,u.tokenType,null,d.fontStyle,d.foregroundId,d.backgroundId),h=this.getRule(this._rootId).getName(null,null);let p;h?p=X.createRootAndLookUpScopeName(h,m,this):p=X.createRoot("unknown",m),e=new xe(null,this._rootId,-1,-1,!1,null,p,p)}else n=!1,e.reset();i=i+`
|
|
4
4
|
`;const s=this.createOnigString(i),o=s.content.length,l=new Br(t,i,this._tokenTypeMatchers,this.balancedBracketSelectors),a=wt(this,s,n,0,e,l,!0,r);return bt(s),{lineLength:o,lineTokens:l,ruleStack:a.stack,stoppedEarly:a.stoppedEarly}}};function ot(i,e){return i=rr(i),i.repository=i.repository||{},i.repository.$self={$vscodeTextmateLocation:i.$vscodeTextmateLocation,patterns:i.patterns,name:i.scopeName},i.repository.$base=e||i.repository.$self,i}var X=class V{constructor(e,t,r){this.parent=e,this.scopePath=t,this.tokenAttributes=r}static fromExtension(e,t){let r=e,n=(e==null?void 0:e.scopePath)??null;for(const s of t)n=Pe.push(n,s.scopeNames),r=new V(r,n,s.encodedTokenAttributes);return r}static createRoot(e,t){return new V(null,new Pe(null,e),t)}static createRootAndLookUpScopeName(e,t,r){const n=r.getMetadataForScope(e),s=new Pe(null,e),o=r.themeProvider.themeMatch(s),l=V.mergeAttributes(t,n,o);return new V(null,s,l)}get scopeName(){return this.scopePath.scopeName}toString(){return this.getScopeNames().join(" ")}equals(e){return V.equals(this,e)}static equals(e,t){do{if(e===t||!e&&!t)return!0;if(!e||!t||e.scopeName!==t.scopeName||e.tokenAttributes!==t.tokenAttributes)return!1;e=e.parent,t=t.parent}while(!0)}static mergeAttributes(e,t,r){let n=-1,s=0,o=0;return r!==null&&(n=r.fontStyle,s=r.foregroundId,o=r.backgroundId),K.set(e,t.languageId,t.tokenType,null,n,s,o)}pushAttributed(e,t){if(e===null)return this;if(e.indexOf(" ")===-1)return V._pushAttributed(this,e,t);const r=e.split(/ /g);let n=this;for(const s of r)n=V._pushAttributed(n,s,t);return n}static _pushAttributed(e,t,r){const n=r.getMetadataForScope(t),s=e.scopePath.push(t),o=r.themeProvider.themeMatch(s),l=V.mergeAttributes(e.tokenAttributes,n,o);return new V(e,s,l)}getScopeNames(){return this.scopePath.getSegments()}getExtensionIfDefined(e){var n;const t=[];let r=this;for(;r&&r!==e;)t.push({encodedTokenAttributes:r.tokenAttributes,scopeNames:r.scopePath.getExtensionIfDefined(((n=r.parent)==null?void 0:n.scopePath)??null)}),r=r.parent;return r===e?t.reverse():void 0}},N,xe=(N=class{constructor(e,t,r,n,s,o,l,a){_(this,"_stackElementBrand");_(this,"_enterPos");_(this,"_anchorPos");_(this,"depth");this.parent=e,this.ruleId=t,this.beginRuleCapturedEOL=s,this.endRule=o,this.nameScopesList=l,this.contentNameScopesList=a,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=r,this._anchorPos=n}equals(e){return e===null?!1:N._equals(this,e)}static _equals(e,t){return e===t?!0:this._structuralEquals(e,t)?X.equals(e.contentNameScopesList,t.contentNameScopesList):!1}static _structuralEquals(e,t){do{if(e===t||!e&&!t)return!0;if(!e||!t||e.depth!==t.depth||e.ruleId!==t.ruleId||e.endRule!==t.endRule)return!1;e=e.parent,t=t.parent}while(!0)}clone(){return this}static _reset(e){for(;e;)e._enterPos=-1,e._anchorPos=-1,e=e.parent}reset(){N._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(e,t,r,n,s,o,l){return new N(this,e,t,r,n,s,o,l)}getEnterPos(){return this._enterPos}getAnchorPos(){return this._anchorPos}getRule(e){return e.getRule(this.ruleId)}toString(){const e=[];return this._writeString(e,0),"["+e.join(",")+"]"}_writeString(e,t){var r,n;return this.parent&&(t=this.parent._writeString(e,t)),e[t++]=`(${this.ruleId}, ${(r=this.nameScopesList)==null?void 0:r.toString()}, ${(n=this.contentNameScopesList)==null?void 0:n.toString()})`,t}withContentNameScopesList(e){return this.contentNameScopesList===e?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,e)}withEndRule(e){return this.endRule===e?this:new N(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,e,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(e){let t=this;for(;t&&t._enterPos===e._enterPos;){if(t.ruleId===e.ruleId)return!0;t=t.parent}return!1}toStateStackFrame(){var e,t,r;return{ruleId:this.ruleId,beginRuleCapturedEOL:this.beginRuleCapturedEOL,endRule:this.endRule,nameScopesList:((t=this.nameScopesList)==null?void 0:t.getExtensionIfDefined(((e=this.parent)==null?void 0:e.nameScopesList)??null))??[],contentNameScopesList:((r=this.contentNameScopesList)==null?void 0:r.getExtensionIfDefined(this.nameScopesList))??[]}}static pushFrame(e,t){const r=X.fromExtension((e==null?void 0:e.nameScopesList)??null,t.nameScopesList);return new N(e,t.ruleId,t.enterPos??-1,t.anchorPos??-1,t.beginRuleCapturedEOL,t.endRule,r,X.fromExtension(r,t.contentNameScopesList))}},_(N,"NULL",new N(null,0,0,0,!1,null,null,null)),N),Mr=class{constructor(i,e){_(this,"balancedBracketScopes");_(this,"unbalancedBracketScopes");_(this,"allowAny",!1);this.balancedBracketScopes=i.flatMap(t=>t==="*"?(this.allowAny=!0,[]):me(t,pe).map(r=>r.matcher)),this.unbalancedBracketScopes=e.flatMap(t=>me(t,pe).map(r=>r.matcher))}get matchesAlways(){return this.allowAny&&this.unbalancedBracketScopes.length===0}get matchesNever(){return this.balancedBracketScopes.length===0&&!this.allowAny}match(i){for(const e of this.unbalancedBracketScopes)if(e(i))return!1;for(const e of this.balancedBracketScopes)if(e(i))return!0;return this.allowAny}},Br=class{constructor(i,e,t,r){_(this,"_emitBinaryTokens");_(this,"_lineText");_(this,"_tokens");_(this,"_binaryTokens");_(this,"_lastTokenEndIndex");_(this,"_tokenTypeOverrides");this.balancedBracketSelectors=r,this._emitBinaryTokens=i,this._tokenTypeOverrides=t,this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}produce(i,e){this.produceFromScopes(i.contentNameScopesList,e)}produceFromScopes(i,e){var r;if(this._lastTokenEndIndex>=e)return;if(this._emitBinaryTokens){let n=(i==null?void 0:i.tokenAttributes)??0,s=!1;if((r=this.balancedBracketSelectors)!=null&&r.matchesAlways&&(s=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){const o=(i==null?void 0:i.getScopeNames())??[];for(const l of this._tokenTypeOverrides)l.matcher(o)&&(n=K.set(n,0,l.type,null,-1,0,0));this.balancedBracketSelectors&&(s=this.balancedBracketSelectors.match(o))}if(s&&(n=K.set(n,0,8,s,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===n){this._lastTokenEndIndex=e;return}this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(n),this._lastTokenEndIndex=e;return}const t=(i==null?void 0:i.getScopeNames())??[];this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:e,scopes:t}),this._lastTokenEndIndex=e}getResult(i,e){return this._tokens.length>0&&this._tokens[this._tokens.length-1].startIndex===e-1&&this._tokens.pop(),this._tokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(i,e),this._tokens[this._tokens.length-1].startIndex=0),this._tokens}getBinaryResult(i,e){this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-2]===e-1&&(this._binaryTokens.pop(),this._binaryTokens.pop()),this._binaryTokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(i,e),this._binaryTokens[this._binaryTokens.length-2]=0);const t=new Uint32Array(this._binaryTokens.length);for(let r=0,n=this._binaryTokens.length;r<n;r++)t[r]=this._binaryTokens[r];return t}},jr=class{constructor(i,e){_(this,"_grammars",new Map);_(this,"_rawGrammars",new Map);_(this,"_injectionGrammars",new Map);_(this,"_theme");this._onigLib=e,this._theme=i}dispose(){for(const i of this._grammars.values())i.dispose()}setTheme(i){this._theme=i}getColorMap(){return this._theme.getColorMap()}addGrammar(i,e){this._rawGrammars.set(i.scopeName,i),e&&this._injectionGrammars.set(i.scopeName,e)}lookup(i){return this._rawGrammars.get(i)}injections(i){return this._injectionGrammars.get(i)}getDefaults(){return this._theme.getDefaults()}themeMatch(i){return this._theme.match(i)}grammarForScopeName(i,e,t,r,n){if(!this._grammars.has(i)){let s=this._rawGrammars.get(i);if(!s)return null;this._grammars.set(i,Vr(i,s,e,t,r,n,this,this._onigLib))}return this._grammars.get(i)}},$r=class{constructor(e){_(this,"_options");_(this,"_syncRegistry");_(this,"_ensureGrammarCache");this._options=e,this._syncRegistry=new jr(ue.createFromRawTheme(e.theme,e.colorMap),e.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(e,t){this._syncRegistry.setTheme(ue.createFromRawTheme(e,t))}getColorMap(){return this._syncRegistry.getColorMap()}loadGrammarWithEmbeddedLanguages(e,t,r){return this.loadGrammarWithConfiguration(e,t,{embeddedLanguages:r})}loadGrammarWithConfiguration(e,t,r){return this._loadGrammar(e,t,r.embeddedLanguages,r.tokenTypes,new Mr(r.balancedBracketSelectors||[],r.unbalancedBracketSelectors||[]))}loadGrammar(e){return this._loadGrammar(e,0,null,null,null)}_loadGrammar(e,t,r,n,s){const o=new fr(this._syncRegistry,e);for(;o.Q.length>0;)o.Q.map(l=>this._loadSingleGrammar(l.scopeName)),o.processQueue();return this._grammarForScopeName(e,t,r,n,s)}_loadSingleGrammar(e){this._ensureGrammarCache.has(e)||(this._doLoadSingleGrammar(e),this._ensureGrammarCache.set(e,!0))}_doLoadSingleGrammar(e){const t=this._options.loadGrammar(e);if(t){const r=typeof this._options.getInjections=="function"?this._options.getInjections(e):void 0;this._syncRegistry.addGrammar(t,r)}}addGrammar(e,t=[],r=0,n=null){return this._syncRegistry.addGrammar(e,t),this._grammarForScopeName(e.scopeName,r,n)}_grammarForScopeName(e,t=0,r=null,n=null,s=null){return this._syncRegistry.grammarForScopeName(e,t,r,n,s)}},Ge=xe.NULL;const Wr=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"],Ur=/["&'<>`]/g,Hr=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Fr=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,qr=/[|\\{}()[\]^$+*?.]/g,at=new WeakMap;function zr(i,e){if(i=i.replace(e.subset?Kr(e.subset):Ur,r),e.subset||e.escapeOnly)return i;return i.replace(Hr,t).replace(Fr,r);function t(n,s,o){return e.format((n.charCodeAt(0)-55296)*1024+n.charCodeAt(1)-56320+65536,o.charCodeAt(s+2),e)}function r(n,s,o){return e.format(n.charCodeAt(0),o.charCodeAt(s+1),e)}}function Kr(i){let e=at.get(i);return e||(e=Jr(i),at.set(i,e)),e}function Jr(i){const e=[];let t=-1;for(;++t<i.length;)e.push(i[t].replace(qr,"\\$&"));return new RegExp("(?:"+e.join("|")+")","g")}const Qr=/[\dA-Fa-f]/;function Yr(i,e,t){const r="&#x"+i.toString(16).toUpperCase();return t&&e&&!Qr.test(String.fromCharCode(e))?r:r+";"}const Xr=/\d/;function Zr(i,e,t){const r="&#"+String(i);return t&&e&&!Xr.test(String.fromCharCode(e))?r:r+";"}const ei=["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslash","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"],Se={nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",fnof:"ƒ",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",bull:"•",hellip:"…",prime:"′",Prime:"″",oline:"‾",frasl:"⁄",weierp:"℘",image:"ℑ",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦",quot:'"',amp:"&",lt:"<",gt:">",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",circ:"ˆ",tilde:"˜",ensp:" ",emsp:" ",thinsp:" ",zwnj:"",zwj:"",lrm:"",rlm:"",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",permil:"‰",lsaquo:"‹",rsaquo:"›",euro:"€"},ti=["cent","copy","divide","gt","lt","not","para","times"],kt={}.hasOwnProperty,Me={};let se;for(se in Se)kt.call(Se,se)&&(Me[Se[se]]=se);const ri=/[^\dA-Za-z]/;function ii(i,e,t,r){const n=String.fromCharCode(i);if(kt.call(Me,n)){const s=Me[n],o="&"+s;return t&&ei.includes(s)&&!ti.includes(s)&&(!r||e&&e!==61&&ri.test(String.fromCharCode(e)))?o:o+";"}return""}function ni(i,e,t){let r=Yr(i,e,t.omitOptionalSemicolons),n;if((t.useNamedReferences||t.useShortestReferences)&&(n=ii(i,e,t.omitOptionalSemicolons,t.attribute)),(t.useShortestReferences||!n)&&t.useShortestReferences){const s=Zr(i,e,t.omitOptionalSemicolons);s.length<r.length&&(r=s)}return n&&(!t.useShortestReferences||n.length<r.length)?n:r}function z(i,e){return zr(i,Object.assign({format:ni},e))}const si=/^>|^->|<!--|-->|--!>|<!-$/g,oi=[">"],ai=["<",">"];function ci(i,e,t,r){return r.settings.bogusComments?"<?"+z(i.value,Object.assign({},r.settings.characterReferences,{subset:oi}))+">":"<!--"+i.value.replace(si,n)+"-->";function n(s){return z(s,Object.assign({},r.settings.characterReferences,{subset:ai}))}}function li(i,e,t,r){return"<!"+(r.settings.upperDoctype?"DOCTYPE":"doctype")+(r.settings.tightDoctype?"":" ")+"html>"}const S=Nt(1),Dt=Nt(-1),ui=[];function Nt(i){return e;function e(t,r,n){const s=t?t.children:ui;let o=(r||0)+i,l=s[o];if(!n)for(;l&&je(l);)o+=i,l=s[o];return l}}const mi={}.hasOwnProperty;function Vt(i){return e;function e(t,r,n){return mi.call(i,t.tagName)&&i[t.tagName](t,r,n)}}const We=Vt({body:hi,caption:Oe,colgroup:Oe,dd:gi,dt:fi,head:Oe,html:di,li:_i,optgroup:Ei,option:yi,p:pi,rp:ct,rt:ct,tbody:Ri,td:lt,tfoot:Ai,th:lt,thead:vi,tr:Ti});function Oe(i,e,t){const r=S(t,e,!0);return!r||r.type!=="comment"&&!(r.type==="text"&&je(r.value.charAt(0)))}function di(i,e,t){const r=S(t,e);return!r||r.type!=="comment"}function hi(i,e,t){const r=S(t,e);return!r||r.type!=="comment"}function pi(i,e,t){const r=S(t,e);return r?r.type==="element"&&(r.tagName==="address"||r.tagName==="article"||r.tagName==="aside"||r.tagName==="blockquote"||r.tagName==="details"||r.tagName==="div"||r.tagName==="dl"||r.tagName==="fieldset"||r.tagName==="figcaption"||r.tagName==="figure"||r.tagName==="footer"||r.tagName==="form"||r.tagName==="h1"||r.tagName==="h2"||r.tagName==="h3"||r.tagName==="h4"||r.tagName==="h5"||r.tagName==="h6"||r.tagName==="header"||r.tagName==="hgroup"||r.tagName==="hr"||r.tagName==="main"||r.tagName==="menu"||r.tagName==="nav"||r.tagName==="ol"||r.tagName==="p"||r.tagName==="pre"||r.tagName==="section"||r.tagName==="table"||r.tagName==="ul"):!t||!(t.type==="element"&&(t.tagName==="a"||t.tagName==="audio"||t.tagName==="del"||t.tagName==="ins"||t.tagName==="map"||t.tagName==="noscript"||t.tagName==="video"))}function _i(i,e,t){const r=S(t,e);return!r||r.type==="element"&&r.tagName==="li"}function fi(i,e,t){const r=S(t,e);return!!(r&&r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd"))}function gi(i,e,t){const r=S(t,e);return!r||r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd")}function ct(i,e,t){const r=S(t,e);return!r||r.type==="element"&&(r.tagName==="rp"||r.tagName==="rt")}function Ei(i,e,t){const r=S(t,e);return!r||r.type==="element"&&r.tagName==="optgroup"}function yi(i,e,t){const r=S(t,e);return!r||r.type==="element"&&(r.tagName==="option"||r.tagName==="optgroup")}function vi(i,e,t){const r=S(t,e);return!!(r&&r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot"))}function Ri(i,e,t){const r=S(t,e);return!r||r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot")}function Ai(i,e,t){return!S(t,e)}function Ti(i,e,t){const r=S(t,e);return!r||r.type==="element"&&r.tagName==="tr"}function lt(i,e,t){const r=S(t,e);return!r||r.type==="element"&&(r.tagName==="td"||r.tagName==="th")}const Li=Vt({body:Ii,colgroup:Si,head:Pi,html:bi,tbody:Oi});function bi(i){const e=S(i,-1);return!e||e.type!=="comment"}function Pi(i){const e=new Set;for(const r of i.children)if(r.type==="element"&&(r.tagName==="base"||r.tagName==="title")){if(e.has(r.tagName))return!1;e.add(r.tagName)}const t=i.children[0];return!t||t.type==="element"}function Ii(i){const e=S(i,-1,!0);return!e||e.type!=="comment"&&!(e.type==="text"&&je(e.value.charAt(0)))&&!(e.type==="element"&&(e.tagName==="meta"||e.tagName==="link"||e.tagName==="script"||e.tagName==="style"||e.tagName==="template"))}function Si(i,e,t){const r=Dt(t,e),n=S(i,-1,!0);return t&&r&&r.type==="element"&&r.tagName==="colgroup"&&We(r,t.children.indexOf(r),t)?!1:!!(n&&n.type==="element"&&n.tagName==="col")}function Oi(i,e,t){const r=Dt(t,e),n=S(i,-1);return t&&r&&r.type==="element"&&(r.tagName==="thead"||r.tagName==="tbody")&&We(r,t.children.indexOf(r),t)?!1:!!(n&&n.type==="element"&&n.tagName==="tr")}const oe={name:[[`
|
|
5
5
|
\f\r &/=>`.split(""),`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as i}from"./vendor-react-CnooHTJc.js";import{H as ot,a as st,b as Ve,z as lt,c as ut}from"./MobileAwareSelect-BmK6WApn.js";import{X as ct,Y as ae,bb as Ge,ba as He,aX as y,bp as dt,aW as re,e as ft,O as ce,j as T,aV as Le,b2 as mt,be as Ie,Q as gt,bt as pt,l as vt,m as ht,aZ as bt,r as ye,o as C,bw as St,h as Nt,q as It,b3 as yt,M as $t,G as wt,A as Et,b4 as Fe,C as xt}from"./index-Cp4GfHnF.js";import{B as Rt,t as Ct,a as Ot,i as Dt,g as Pe,j as Bt,l as Mt,k as _t,m as At,n as Vt,o as Ft,p as jt,q as kt}from"./index-CWmEuVWV.js";var Wt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z"}}]},name:"up",theme:"outlined"},Tt=function(t,n){return i.createElement(ct,ae({},t,{ref:n,icon:Wt}))},Gt=i.forwardRef(Tt);function $e(){return typeof BigInt=="function"}function ze(e){return!e&&e!==0&&!Number.isNaN(e)||!String(e).trim()}function q(e){var t=e.trim(),n=t.startsWith("-");n&&(t=t.slice(1)),t=t.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,""),t.startsWith(".")&&(t="0".concat(t));var r=t||"0",a=r.split("."),o=a[0]||"0",v=a[1]||"0";o==="0"&&v==="0"&&(n=!1);var f=n?"-":"";return{negative:n,negativeStr:f,trimStr:r,integerStr:o,decimalStr:v,fullStr:"".concat(f).concat(r)}}function we(e){var t=String(e);return!Number.isNaN(Number(t))&&t.includes("e")}function z(e){var t=String(e);if(we(e)){var n=Number(t.slice(t.indexOf("e-")+2)),r=t.match(/\.(\d+)/);return r!=null&&r[1]&&(n+=r[1].length),n}return t.includes(".")&&Ee(t)?t.length-t.indexOf(".")-1:0}function de(e){var t=String(e);if(we(e)){if(e>Number.MAX_SAFE_INTEGER)return String($e()?BigInt(e).toString():Number.MAX_SAFE_INTEGER);if(e<Number.MIN_SAFE_INTEGER)return String($e()?BigInt(e).toString():Number.MIN_SAFE_INTEGER);t=e.toFixed(z(t))}return q(t).fullStr}function Ee(e){return typeof e=="number"?!Number.isNaN(e):e?/^\s*-?\d+(\.\d+)?\s*$/.test(e)||/^\s*-?\d+\.\s*$/.test(e)||/^\s*-?\.\d+\s*$/.test(e):!1}var Ht=function(){function e(t){if(He(this,e),y(this,"origin",""),y(this,"negative",void 0),y(this,"integer",void 0),y(this,"decimal",void 0),y(this,"decimalLen",void 0),y(this,"empty",void 0),y(this,"nan",void 0),ze(t)){this.empty=!0;return}if(this.origin=String(t),t==="-"||Number.isNaN(t)){this.nan=!0;return}var n=t;if(we(n)&&(n=Number(n)),n=typeof n=="string"?n:de(n),Ee(n)){var r=q(n);this.negative=r.negative;var a=r.trimStr.split(".");this.integer=BigInt(a[0]);var o=a[1]||"0";this.decimal=BigInt(o),this.decimalLen=o.length}else this.nan=!0}return Ge(e,[{key:"getMark",value:function(){return this.negative?"-":""}},{key:"getIntegerStr",value:function(){return this.integer.toString()}},{key:"getDecimalStr",value:function(){return this.decimal.toString().padStart(this.decimalLen,"0")}},{key:"alignDecimal",value:function(n){var r="".concat(this.getMark()).concat(this.getIntegerStr()).concat(this.getDecimalStr().padEnd(n,"0"));return BigInt(r)}},{key:"negate",value:function(){var n=new e(this.toString());return n.negative=!n.negative,n}},{key:"cal",value:function(n,r,a){var o=Math.max(this.getDecimalStr().length,n.getDecimalStr().length),v=this.alignDecimal(o),f=n.alignDecimal(o),g=r(v,f).toString(),m=a(o),c=q(g),b=c.negativeStr,S=c.trimStr,N="".concat(b).concat(S.padStart(m+1,"0"));return new e("".concat(N.slice(0,-m),".").concat(N.slice(-m)))}},{key:"add",value:function(n){if(this.isInvalidate())return new e(n);var r=new e(n);return r.isInvalidate()?this:this.cal(r,function(a,o){return a+o},function(a){return a})}},{key:"multi",value:function(n){var r=new e(n);return this.isInvalidate()||r.isInvalidate()?new e(NaN):this.cal(r,function(a,o){return a*o},function(a){return a*2})}},{key:"isEmpty",value:function(){return this.empty}},{key:"isNaN",value:function(){return this.nan}},{key:"isInvalidate",value:function(){return this.isEmpty()||this.isNaN()}},{key:"equals",value:function(n){return this.toString()===(n==null?void 0:n.toString())}},{key:"lessEquals",value:function(n){return this.add(n.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.isNaN()?NaN:Number(this.toString())}},{key:"toString",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return n?this.isInvalidate()?"":q("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),e}(),Lt=function(){function e(t){if(He(this,e),y(this,"origin",""),y(this,"number",void 0),y(this,"empty",void 0),ze(t)){this.empty=!0;return}this.origin=String(t),this.number=Number(t)}return Ge(e,[{key:"negate",value:function(){return new e(-this.toNumber())}},{key:"add",value:function(n){if(this.isInvalidate())return new e(n);var r=Number(n);if(Number.isNaN(r))return this;var a=this.number+r;if(a>Number.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(a<Number.MIN_SAFE_INTEGER)return new e(Number.MIN_SAFE_INTEGER);var o=Math.max(z(this.number),z(r));return new e(a.toFixed(o))}},{key:"multi",value:function(n){var r=Number(n);if(this.isInvalidate()||Number.isNaN(r))return new e(NaN);var a=this.number*r;if(a>Number.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(a<Number.MIN_SAFE_INTEGER)return new e(Number.MIN_SAFE_INTEGER);var o=Math.max(z(this.number),z(r));return new e(a.toFixed(o))}},{key:"isEmpty",value:function(){return this.empty}},{key:"isNaN",value:function(){return Number.isNaN(this.number)}},{key:"isInvalidate",value:function(){return this.isEmpty()||this.isNaN()}},{key:"equals",value:function(n){return this.toNumber()===(n==null?void 0:n.toNumber())}},{key:"lessEquals",value:function(n){return this.add(n.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.number}},{key:"toString",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return n?this.isInvalidate()?"":de(this.number):this.origin}}]),e}();function _(e){return $e()?new Ht(e):new Lt(e)}function ue(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(e==="")return"";var a=q(e),o=a.negativeStr,v=a.integerStr,f=a.decimalStr,g="".concat(t).concat(f),m="".concat(o).concat(v);if(n>=0){var c=Number(f[n]);if(c>=5&&!r){var b=_(e).add("".concat(o,"0.").concat("0".repeat(n)).concat(10-c));return ue(b.toString(),t,n,r)}return n===0?m:"".concat(m).concat(t).concat(f.padEnd(n,"0").slice(0,n))}return g===".0"?m:"".concat(m).concat(g)}function Pt(e,t){return typeof Proxy<"u"&&e?new Proxy(e,{get:function(r,a){if(t[a])return t[a];var o=r[a];return typeof o=="function"?o.bind(r):o}}):e}function zt(e,t){var n=i.useRef(null);function r(){try{var o=e.selectionStart,v=e.selectionEnd,f=e.value,g=f.substring(0,o),m=f.substring(v);n.current={start:o,end:v,value:f,beforeTxt:g,afterTxt:m}}catch{}}function a(){if(e&&n.current&&t)try{var o=e.value,v=n.current,f=v.beforeTxt,g=v.afterTxt,m=v.start,c=o.length;if(o.startsWith(f))c=f.length;else if(o.endsWith(g))c=o.length-n.current.afterTxt.length;else{var b=f[m-1],S=o.indexOf(b,m-1);S!==-1&&(c=S+1)}e.setSelectionRange(c,c)}catch(N){dt(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(N.message))}}return[r,a]}var qt=function(){var t=i.useState(!1),n=re(t,2),r=n[0],a=n[1];return ft(function(){a(ot())},[]),r},Ut=200,Xt=600;function Kt(e){var t=e.prefixCls,n=e.upNode,r=e.downNode,a=e.upDisabled,o=e.downDisabled,v=e.onStep,f=i.useRef(),g=i.useRef([]),m=i.useRef();m.current=v;var c=function(){clearTimeout(f.current)},b=function(R,d){R.preventDefault(),c(),m.current(d);function O(){m.current(d),f.current=setTimeout(O,Ut)}f.current=setTimeout(O,Xt)};i.useEffect(function(){return function(){c(),g.current.forEach(function(E){return ce.cancel(E)})}},[]);var S=qt();if(S)return null;var N="".concat(t,"-handler"),D=T(N,"".concat(N,"-up"),y({},"".concat(N,"-up-disabled"),a)),$=T(N,"".concat(N,"-down"),y({},"".concat(N,"-down-disabled"),o)),w=function(){return g.current.push(ce(c))},I={unselectable:"on",role:"button",onMouseUp:w,onMouseLeave:w};return i.createElement("div",{className:"".concat(N,"-wrap")},i.createElement("span",ae({},I,{onMouseDown:function(R){b(R,!0)},"aria-label":"Increase Value","aria-disabled":a,className:D}),n||i.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-up-inner")})),i.createElement("span",ae({},I,{onMouseDown:function(R){b(R,!1)},"aria-label":"Decrease Value","aria-disabled":o,className:$}),r||i.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-down-inner")})))}function je(e){var t=typeof e=="number"?de(e):q(e).fullStr,n=t.includes(".");return n?q(t.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:e+"0"}const Yt=function(){var e=i.useRef(0),t=function(){ce.cancel(e.current)};return i.useEffect(function(){return t},[]),function(n){t(),e.current=ce(function(){n()})}};var Qt=["prefixCls","className","style","min","max","step","defaultValue","value","disabled","readOnly","upHandler","downHandler","keyboard","changeOnWheel","controls","classNames","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep","changeOnBlur","domRef"],Zt=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","className","classNames"],ke=function(t,n){return t||n.isEmpty()?n.toString():n.toNumber()},We=function(t){var n=_(t);return n.isInvalidate()?null:n},Jt=i.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,a=e.style,o=e.min,v=e.max,f=e.step,g=f===void 0?1:f,m=e.defaultValue,c=e.value,b=e.disabled,S=e.readOnly,N=e.upHandler,D=e.downHandler,$=e.keyboard,w=e.changeOnWheel,I=w===void 0?!1:w,E=e.controls,R=E===void 0?!0:E;e.classNames;var d=e.stringMode,O=e.parser,A=e.formatter,x=e.precision,B=e.decimalSeparator,L=e.onChange,V=e.onInput,j=e.onPressEnter,k=e.onStep,W=e.changeOnBlur,Z=W===void 0?!0:W,fe=e.domRef,me=Le(e,Qt),ie="".concat(n,"-input"),G=i.useRef(null),H=i.useState(!1),oe=re(H,2),U=oe[0],J=oe[1],M=i.useRef(!1),P=i.useRef(!1),X=i.useRef(!1),ge=i.useState(function(){return _(c??m)}),se=re(ge,2),h=se[0],K=se[1];function Ue(l){c===void 0&&K(l)}var pe=i.useCallback(function(l,s){if(!s)return x>=0?x:Math.max(z(l),z(g))},[x,g]),ve=i.useCallback(function(l){var s=String(l);if(O)return O(s);var p=s;return B&&(p=p.replace(B,".")),p.replace(/[^\w.-]+/g,"")},[O,B]),he=i.useRef(""),xe=i.useCallback(function(l,s){if(A)return A(l,{userTyping:s,input:String(he.current)});var p=typeof l=="number"?de(l):l;if(!s){var u=pe(p,s);if(Ee(p)&&(B||u>=0)){var F=B||".";p=ue(p,F,u)}}return p},[A,pe,B]),Xe=i.useState(function(){var l=m??c;return h.isInvalidate()&&["string","number"].includes(mt(l))?Number.isNaN(l)?"":l:xe(h.toString(),!1)}),Re=re(Xe,2),ee=Re[0],Ce=Re[1];he.current=ee;function te(l,s){Ce(xe(l.isInvalidate()?l.toString(!1):l.toString(!s),s))}var Y=i.useMemo(function(){return We(v)},[v,x]),Q=i.useMemo(function(){return We(o)},[o,x]),Oe=i.useMemo(function(){return!Y||!h||h.isInvalidate()?!1:Y.lessEquals(h)},[Y,h]),De=i.useMemo(function(){return!Q||!h||h.isInvalidate()?!1:h.lessEquals(Q)},[Q,h]),Ke=zt(G.current,U),Be=re(Ke,2),Ye=Be[0],Qe=Be[1],Me=function(s){return Y&&!s.lessEquals(Y)?Y:Q&&!Q.lessEquals(s)?Q:null},be=function(s){return!Me(s)},le=function(s,p){var u=s,F=be(u)||u.isEmpty();if(!u.isEmpty()&&!p&&(u=Me(u)||u,F=!0),!S&&!b&&F){var ne=u.toString(),Ne=pe(ne,p);return Ne>=0&&(u=_(ue(ne,".",Ne)),be(u)||(u=_(ue(ne,".",Ne,!0)))),u.equals(h)||(Ue(u),L==null||L(u.isEmpty()?null:ke(d,u)),c===void 0&&te(u,p)),u}return h},Ze=Yt(),_e=function l(s){if(Ye(),he.current=s,Ce(s),!P.current){var p=ve(s),u=_(p);u.isNaN()||le(u,!0)}V==null||V(s),Ze(function(){var F=s;O||(F=s.replace(/。/g,".")),F!==s&&l(F)})},Je=function(){P.current=!0},et=function(){P.current=!1,_e(G.current.value)},tt=function(s){_e(s.target.value)},Se=function(s){var p;if(!(s&&Oe||!s&&De)){M.current=!1;var u=_(X.current?je(g):g);s||(u=u.negate());var F=(h||_(0)).add(u.toString()),ne=le(F,!1);k==null||k(ke(d,ne),{offset:X.current?je(g):g,type:s?"up":"down"}),(p=G.current)===null||p===void 0||p.focus()}},Ae=function(s){var p=_(ve(ee)),u;p.isNaN()?u=le(h,s):u=le(p,s),c!==void 0?te(h,!1):u.isNaN()||te(u,!1)},nt=function(){M.current=!0},rt=function(s){var p=s.key,u=s.shiftKey;M.current=!0,X.current=u,p==="Enter"&&(P.current||(M.current=!1),Ae(!1),j==null||j(s)),$!==!1&&!P.current&&["Up","ArrowUp","Down","ArrowDown"].includes(p)&&(Se(p==="Up"||p==="ArrowUp"),s.preventDefault())},at=function(){M.current=!1,X.current=!1};i.useEffect(function(){if(I&&U){var l=function(u){Se(u.deltaY<0),u.preventDefault()},s=G.current;if(s)return s.addEventListener("wheel",l,{passive:!1}),function(){return s.removeEventListener("wheel",l)}}});var it=function(){Z&&Ae(!1),J(!1),M.current=!1};return Ie(function(){h.isInvalidate()||te(h,!1)},[x,A]),Ie(function(){var l=_(c);K(l);var s=_(ve(ee));(!l.equals(s)||!M.current||A)&&te(l,M.current)},[c]),Ie(function(){A&&Qe()},[ee]),i.createElement("div",{ref:fe,className:T(n,r,y(y(y(y(y({},"".concat(n,"-focused"),U),"".concat(n,"-disabled"),b),"".concat(n,"-readonly"),S),"".concat(n,"-not-a-number"),h.isNaN()),"".concat(n,"-out-of-range"),!h.isInvalidate()&&!be(h))),style:a,onFocus:function(){J(!0)},onBlur:it,onKeyDown:rt,onKeyUp:at,onCompositionStart:Je,onCompositionEnd:et,onBeforeInput:nt},R&&i.createElement(Kt,{prefixCls:n,upNode:N,downNode:D,upDisabled:Oe,downDisabled:De,onStep:Se}),i.createElement("div",{className:"".concat(ie,"-wrap")},i.createElement("input",ae({autoComplete:"off",role:"spinbutton","aria-valuemin":o,"aria-valuemax":v,"aria-valuenow":h.isInvalidate()?null:h.toString(),step:g},me,{ref:gt(G,t),className:ie,value:ee,onChange:tt,disabled:b,readOnly:S}))))}),en=i.forwardRef(function(e,t){var n=e.disabled,r=e.style,a=e.prefixCls,o=a===void 0?"rc-input-number":a,v=e.value,f=e.prefix,g=e.suffix,m=e.addonBefore,c=e.addonAfter,b=e.className,S=e.classNames,N=Le(e,Zt),D=i.useRef(null),$=i.useRef(null),w=i.useRef(null),I=function(R){w.current&&Ct(w.current,R)};return i.useImperativeHandle(t,function(){return Pt(w.current,{focus:I,nativeElement:D.current.nativeElement||$.current})}),i.createElement(Rt,{className:b,triggerFocus:I,prefixCls:o,value:v,disabled:n,style:r,prefix:f,suffix:g,addonAfter:c,addonBefore:m,classNames:S,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"},ref:D},i.createElement(Jt,ae({prefixCls:o,disabled:n,ref:w,domRef:$,className:S==null?void 0:S.input},N)))});const tn=e=>{var t;const n=(t=e.handleVisible)!==null&&t!==void 0?t:"auto",r=e.controlHeightSM-e.lineWidth*2;return Object.assign(Object.assign({},Ot(e)),{controlWidth:90,handleWidth:r,handleFontSize:e.fontSize/2,handleVisible:n,handleActiveBg:e.colorFillAlter,handleBg:e.colorBgContainer,filledHandleBg:new pt(e.colorFillSecondary).onBackground(e.colorBgContainer).toHexString(),handleHoverColor:e.colorPrimary,handleBorderColor:e.colorBorder,handleOpacity:n===!0?1:0,handleVisibleWidth:n===!0?r:0})},Te=({componentCls:e,borderRadiusSM:t,borderRadiusLG:n},r)=>{const a=r==="lg"?n:t;return{[`&-${r}`]:{[`${e}-handler-wrap`]:{borderStartEndRadius:a,borderEndEndRadius:a},[`${e}-handler-up`]:{borderStartEndRadius:a},[`${e}-handler-down`]:{borderEndEndRadius:a}}}},nn=e=>{const{componentCls:t,lineWidth:n,lineType:r,borderRadius:a,inputFontSizeSM:o,inputFontSizeLG:v,controlHeightLG:f,controlHeightSM:g,colorError:m,paddingInlineSM:c,paddingBlockSM:b,paddingBlockLG:S,paddingInlineLG:N,colorIcon:D,motionDurationMid:$,handleHoverColor:w,handleOpacity:I,paddingInline:E,paddingBlock:R,handleBg:d,handleActiveBg:O,colorTextDisabled:A,borderRadiusSM:x,borderRadiusLG:B,controlWidth:L,handleBorderColor:V,filledHandleBg:j,lineHeightLG:k,calc:W}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},ye(e)),Pe(e)),{display:"inline-block",width:L,margin:0,padding:0,borderRadius:a}),Bt(e,{[`${t}-handler-wrap`]:{background:d,[`${t}-handler-down`]:{borderBlockStart:`${C(n)} ${r} ${V}`}}})),Mt(e,{[`${t}-handler-wrap`]:{background:j,[`${t}-handler-down`]:{borderBlockStart:`${C(n)} ${r} ${V}`}},"&:focus-within":{[`${t}-handler-wrap`]:{background:d}}})),_t(e,{[`${t}-handler-wrap`]:{background:d,[`${t}-handler-down`]:{borderBlockStart:`${C(n)} ${r} ${V}`}}})),At(e)),{"&-rtl":{direction:"rtl",[`${t}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:v,lineHeight:k,borderRadius:B,[`input${t}-input`]:{height:W(f).sub(W(n).mul(2)).equal(),padding:`${C(S)} ${C(N)}`}},"&-sm":{padding:0,fontSize:o,borderRadius:x,[`input${t}-input`]:{height:W(g).sub(W(n).mul(2)).equal(),padding:`${C(b)} ${C(c)}`}},"&-out-of-range":{[`${t}-input-wrap`]:{input:{color:m}}},"&-group":Object.assign(Object.assign(Object.assign({},ye(e)),Ft(e)),{"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",textAlign:"start",verticalAlign:"top",[`${t}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${t}-group-addon`]:{borderRadius:B,fontSize:e.fontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:x}}},jt(e)),kt(e)),{[`&:not(${t}-compact-first-item):not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}, ${t}-group-addon`]:{borderRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-first-item`]:{[`${t}, ${t}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-last-item`]:{[`${t}, ${t}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}}})}),[`&-disabled ${t}-input`]:{cursor:"not-allowed"},[t]:{"&-input":Object.assign(Object.assign(Object.assign(Object.assign({},ye(e)),{width:"100%",padding:`${C(R)} ${C(E)}`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:a,outline:0,transition:`all ${$} linear`,appearance:"textfield",fontSize:"inherit"}),Vt(e.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,appearance:"none"}})},[`&:hover ${t}-handler-wrap, &-focused ${t}-handler-wrap`]:{width:e.handleWidth,opacity:1}})},{[t]:Object.assign(Object.assign(Object.assign({[`${t}-handler-wrap`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:e.handleVisibleWidth,opacity:I,height:"100%",borderStartStartRadius:0,borderStartEndRadius:a,borderEndEndRadius:a,borderEndStartRadius:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`all ${$}`,overflow:"hidden",[`${t}-handler`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",[`
|
|
1
|
+
import{r as i}from"./vendor-react-CnooHTJc.js";import{H as ot,a as st,b as Ve,z as lt,c as ut}from"./MobileAwareSelect-CCAQrsxL.js";import{X as ct,Y as ae,bb as Ge,ba as He,aX as y,bp as dt,aW as re,e as ft,O as ce,j as T,aV as Le,b2 as mt,be as Ie,Q as gt,bt as pt,l as vt,m as ht,aZ as bt,r as ye,o as C,bw as St,h as Nt,q as It,b3 as yt,M as $t,G as wt,A as Et,b4 as Fe,C as xt}from"./index-DdUqPqXW.js";import{B as Rt,t as Ct,a as Ot,i as Dt,g as Pe,j as Bt,l as Mt,k as _t,m as At,n as Vt,o as Ft,p as jt,q as kt}from"./index-ZOsqqPVv.js";var Wt={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z"}}]},name:"up",theme:"outlined"},Tt=function(t,n){return i.createElement(ct,ae({},t,{ref:n,icon:Wt}))},Gt=i.forwardRef(Tt);function $e(){return typeof BigInt=="function"}function ze(e){return!e&&e!==0&&!Number.isNaN(e)||!String(e).trim()}function q(e){var t=e.trim(),n=t.startsWith("-");n&&(t=t.slice(1)),t=t.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,""),t.startsWith(".")&&(t="0".concat(t));var r=t||"0",a=r.split("."),o=a[0]||"0",v=a[1]||"0";o==="0"&&v==="0"&&(n=!1);var f=n?"-":"";return{negative:n,negativeStr:f,trimStr:r,integerStr:o,decimalStr:v,fullStr:"".concat(f).concat(r)}}function we(e){var t=String(e);return!Number.isNaN(Number(t))&&t.includes("e")}function z(e){var t=String(e);if(we(e)){var n=Number(t.slice(t.indexOf("e-")+2)),r=t.match(/\.(\d+)/);return r!=null&&r[1]&&(n+=r[1].length),n}return t.includes(".")&&Ee(t)?t.length-t.indexOf(".")-1:0}function de(e){var t=String(e);if(we(e)){if(e>Number.MAX_SAFE_INTEGER)return String($e()?BigInt(e).toString():Number.MAX_SAFE_INTEGER);if(e<Number.MIN_SAFE_INTEGER)return String($e()?BigInt(e).toString():Number.MIN_SAFE_INTEGER);t=e.toFixed(z(t))}return q(t).fullStr}function Ee(e){return typeof e=="number"?!Number.isNaN(e):e?/^\s*-?\d+(\.\d+)?\s*$/.test(e)||/^\s*-?\d+\.\s*$/.test(e)||/^\s*-?\.\d+\s*$/.test(e):!1}var Ht=function(){function e(t){if(He(this,e),y(this,"origin",""),y(this,"negative",void 0),y(this,"integer",void 0),y(this,"decimal",void 0),y(this,"decimalLen",void 0),y(this,"empty",void 0),y(this,"nan",void 0),ze(t)){this.empty=!0;return}if(this.origin=String(t),t==="-"||Number.isNaN(t)){this.nan=!0;return}var n=t;if(we(n)&&(n=Number(n)),n=typeof n=="string"?n:de(n),Ee(n)){var r=q(n);this.negative=r.negative;var a=r.trimStr.split(".");this.integer=BigInt(a[0]);var o=a[1]||"0";this.decimal=BigInt(o),this.decimalLen=o.length}else this.nan=!0}return Ge(e,[{key:"getMark",value:function(){return this.negative?"-":""}},{key:"getIntegerStr",value:function(){return this.integer.toString()}},{key:"getDecimalStr",value:function(){return this.decimal.toString().padStart(this.decimalLen,"0")}},{key:"alignDecimal",value:function(n){var r="".concat(this.getMark()).concat(this.getIntegerStr()).concat(this.getDecimalStr().padEnd(n,"0"));return BigInt(r)}},{key:"negate",value:function(){var n=new e(this.toString());return n.negative=!n.negative,n}},{key:"cal",value:function(n,r,a){var o=Math.max(this.getDecimalStr().length,n.getDecimalStr().length),v=this.alignDecimal(o),f=n.alignDecimal(o),g=r(v,f).toString(),m=a(o),c=q(g),b=c.negativeStr,S=c.trimStr,N="".concat(b).concat(S.padStart(m+1,"0"));return new e("".concat(N.slice(0,-m),".").concat(N.slice(-m)))}},{key:"add",value:function(n){if(this.isInvalidate())return new e(n);var r=new e(n);return r.isInvalidate()?this:this.cal(r,function(a,o){return a+o},function(a){return a})}},{key:"multi",value:function(n){var r=new e(n);return this.isInvalidate()||r.isInvalidate()?new e(NaN):this.cal(r,function(a,o){return a*o},function(a){return a*2})}},{key:"isEmpty",value:function(){return this.empty}},{key:"isNaN",value:function(){return this.nan}},{key:"isInvalidate",value:function(){return this.isEmpty()||this.isNaN()}},{key:"equals",value:function(n){return this.toString()===(n==null?void 0:n.toString())}},{key:"lessEquals",value:function(n){return this.add(n.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.isNaN()?NaN:Number(this.toString())}},{key:"toString",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return n?this.isInvalidate()?"":q("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),e}(),Lt=function(){function e(t){if(He(this,e),y(this,"origin",""),y(this,"number",void 0),y(this,"empty",void 0),ze(t)){this.empty=!0;return}this.origin=String(t),this.number=Number(t)}return Ge(e,[{key:"negate",value:function(){return new e(-this.toNumber())}},{key:"add",value:function(n){if(this.isInvalidate())return new e(n);var r=Number(n);if(Number.isNaN(r))return this;var a=this.number+r;if(a>Number.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(a<Number.MIN_SAFE_INTEGER)return new e(Number.MIN_SAFE_INTEGER);var o=Math.max(z(this.number),z(r));return new e(a.toFixed(o))}},{key:"multi",value:function(n){var r=Number(n);if(this.isInvalidate()||Number.isNaN(r))return new e(NaN);var a=this.number*r;if(a>Number.MAX_SAFE_INTEGER)return new e(Number.MAX_SAFE_INTEGER);if(a<Number.MIN_SAFE_INTEGER)return new e(Number.MIN_SAFE_INTEGER);var o=Math.max(z(this.number),z(r));return new e(a.toFixed(o))}},{key:"isEmpty",value:function(){return this.empty}},{key:"isNaN",value:function(){return Number.isNaN(this.number)}},{key:"isInvalidate",value:function(){return this.isEmpty()||this.isNaN()}},{key:"equals",value:function(n){return this.toNumber()===(n==null?void 0:n.toNumber())}},{key:"lessEquals",value:function(n){return this.add(n.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.number}},{key:"toString",value:function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return n?this.isInvalidate()?"":de(this.number):this.origin}}]),e}();function _(e){return $e()?new Ht(e):new Lt(e)}function ue(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(e==="")return"";var a=q(e),o=a.negativeStr,v=a.integerStr,f=a.decimalStr,g="".concat(t).concat(f),m="".concat(o).concat(v);if(n>=0){var c=Number(f[n]);if(c>=5&&!r){var b=_(e).add("".concat(o,"0.").concat("0".repeat(n)).concat(10-c));return ue(b.toString(),t,n,r)}return n===0?m:"".concat(m).concat(t).concat(f.padEnd(n,"0").slice(0,n))}return g===".0"?m:"".concat(m).concat(g)}function Pt(e,t){return typeof Proxy<"u"&&e?new Proxy(e,{get:function(r,a){if(t[a])return t[a];var o=r[a];return typeof o=="function"?o.bind(r):o}}):e}function zt(e,t){var n=i.useRef(null);function r(){try{var o=e.selectionStart,v=e.selectionEnd,f=e.value,g=f.substring(0,o),m=f.substring(v);n.current={start:o,end:v,value:f,beforeTxt:g,afterTxt:m}}catch{}}function a(){if(e&&n.current&&t)try{var o=e.value,v=n.current,f=v.beforeTxt,g=v.afterTxt,m=v.start,c=o.length;if(o.startsWith(f))c=f.length;else if(o.endsWith(g))c=o.length-n.current.afterTxt.length;else{var b=f[m-1],S=o.indexOf(b,m-1);S!==-1&&(c=S+1)}e.setSelectionRange(c,c)}catch(N){dt(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(N.message))}}return[r,a]}var qt=function(){var t=i.useState(!1),n=re(t,2),r=n[0],a=n[1];return ft(function(){a(ot())},[]),r},Ut=200,Xt=600;function Kt(e){var t=e.prefixCls,n=e.upNode,r=e.downNode,a=e.upDisabled,o=e.downDisabled,v=e.onStep,f=i.useRef(),g=i.useRef([]),m=i.useRef();m.current=v;var c=function(){clearTimeout(f.current)},b=function(R,d){R.preventDefault(),c(),m.current(d);function O(){m.current(d),f.current=setTimeout(O,Ut)}f.current=setTimeout(O,Xt)};i.useEffect(function(){return function(){c(),g.current.forEach(function(E){return ce.cancel(E)})}},[]);var S=qt();if(S)return null;var N="".concat(t,"-handler"),D=T(N,"".concat(N,"-up"),y({},"".concat(N,"-up-disabled"),a)),$=T(N,"".concat(N,"-down"),y({},"".concat(N,"-down-disabled"),o)),w=function(){return g.current.push(ce(c))},I={unselectable:"on",role:"button",onMouseUp:w,onMouseLeave:w};return i.createElement("div",{className:"".concat(N,"-wrap")},i.createElement("span",ae({},I,{onMouseDown:function(R){b(R,!0)},"aria-label":"Increase Value","aria-disabled":a,className:D}),n||i.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-up-inner")})),i.createElement("span",ae({},I,{onMouseDown:function(R){b(R,!1)},"aria-label":"Decrease Value","aria-disabled":o,className:$}),r||i.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-down-inner")})))}function je(e){var t=typeof e=="number"?de(e):q(e).fullStr,n=t.includes(".");return n?q(t.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:e+"0"}const Yt=function(){var e=i.useRef(0),t=function(){ce.cancel(e.current)};return i.useEffect(function(){return t},[]),function(n){t(),e.current=ce(function(){n()})}};var Qt=["prefixCls","className","style","min","max","step","defaultValue","value","disabled","readOnly","upHandler","downHandler","keyboard","changeOnWheel","controls","classNames","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep","changeOnBlur","domRef"],Zt=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","className","classNames"],ke=function(t,n){return t||n.isEmpty()?n.toString():n.toNumber()},We=function(t){var n=_(t);return n.isInvalidate()?null:n},Jt=i.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,a=e.style,o=e.min,v=e.max,f=e.step,g=f===void 0?1:f,m=e.defaultValue,c=e.value,b=e.disabled,S=e.readOnly,N=e.upHandler,D=e.downHandler,$=e.keyboard,w=e.changeOnWheel,I=w===void 0?!1:w,E=e.controls,R=E===void 0?!0:E;e.classNames;var d=e.stringMode,O=e.parser,A=e.formatter,x=e.precision,B=e.decimalSeparator,L=e.onChange,V=e.onInput,j=e.onPressEnter,k=e.onStep,W=e.changeOnBlur,Z=W===void 0?!0:W,fe=e.domRef,me=Le(e,Qt),ie="".concat(n,"-input"),G=i.useRef(null),H=i.useState(!1),oe=re(H,2),U=oe[0],J=oe[1],M=i.useRef(!1),P=i.useRef(!1),X=i.useRef(!1),ge=i.useState(function(){return _(c??m)}),se=re(ge,2),h=se[0],K=se[1];function Ue(l){c===void 0&&K(l)}var pe=i.useCallback(function(l,s){if(!s)return x>=0?x:Math.max(z(l),z(g))},[x,g]),ve=i.useCallback(function(l){var s=String(l);if(O)return O(s);var p=s;return B&&(p=p.replace(B,".")),p.replace(/[^\w.-]+/g,"")},[O,B]),he=i.useRef(""),xe=i.useCallback(function(l,s){if(A)return A(l,{userTyping:s,input:String(he.current)});var p=typeof l=="number"?de(l):l;if(!s){var u=pe(p,s);if(Ee(p)&&(B||u>=0)){var F=B||".";p=ue(p,F,u)}}return p},[A,pe,B]),Xe=i.useState(function(){var l=m??c;return h.isInvalidate()&&["string","number"].includes(mt(l))?Number.isNaN(l)?"":l:xe(h.toString(),!1)}),Re=re(Xe,2),ee=Re[0],Ce=Re[1];he.current=ee;function te(l,s){Ce(xe(l.isInvalidate()?l.toString(!1):l.toString(!s),s))}var Y=i.useMemo(function(){return We(v)},[v,x]),Q=i.useMemo(function(){return We(o)},[o,x]),Oe=i.useMemo(function(){return!Y||!h||h.isInvalidate()?!1:Y.lessEquals(h)},[Y,h]),De=i.useMemo(function(){return!Q||!h||h.isInvalidate()?!1:h.lessEquals(Q)},[Q,h]),Ke=zt(G.current,U),Be=re(Ke,2),Ye=Be[0],Qe=Be[1],Me=function(s){return Y&&!s.lessEquals(Y)?Y:Q&&!Q.lessEquals(s)?Q:null},be=function(s){return!Me(s)},le=function(s,p){var u=s,F=be(u)||u.isEmpty();if(!u.isEmpty()&&!p&&(u=Me(u)||u,F=!0),!S&&!b&&F){var ne=u.toString(),Ne=pe(ne,p);return Ne>=0&&(u=_(ue(ne,".",Ne)),be(u)||(u=_(ue(ne,".",Ne,!0)))),u.equals(h)||(Ue(u),L==null||L(u.isEmpty()?null:ke(d,u)),c===void 0&&te(u,p)),u}return h},Ze=Yt(),_e=function l(s){if(Ye(),he.current=s,Ce(s),!P.current){var p=ve(s),u=_(p);u.isNaN()||le(u,!0)}V==null||V(s),Ze(function(){var F=s;O||(F=s.replace(/。/g,".")),F!==s&&l(F)})},Je=function(){P.current=!0},et=function(){P.current=!1,_e(G.current.value)},tt=function(s){_e(s.target.value)},Se=function(s){var p;if(!(s&&Oe||!s&&De)){M.current=!1;var u=_(X.current?je(g):g);s||(u=u.negate());var F=(h||_(0)).add(u.toString()),ne=le(F,!1);k==null||k(ke(d,ne),{offset:X.current?je(g):g,type:s?"up":"down"}),(p=G.current)===null||p===void 0||p.focus()}},Ae=function(s){var p=_(ve(ee)),u;p.isNaN()?u=le(h,s):u=le(p,s),c!==void 0?te(h,!1):u.isNaN()||te(u,!1)},nt=function(){M.current=!0},rt=function(s){var p=s.key,u=s.shiftKey;M.current=!0,X.current=u,p==="Enter"&&(P.current||(M.current=!1),Ae(!1),j==null||j(s)),$!==!1&&!P.current&&["Up","ArrowUp","Down","ArrowDown"].includes(p)&&(Se(p==="Up"||p==="ArrowUp"),s.preventDefault())},at=function(){M.current=!1,X.current=!1};i.useEffect(function(){if(I&&U){var l=function(u){Se(u.deltaY<0),u.preventDefault()},s=G.current;if(s)return s.addEventListener("wheel",l,{passive:!1}),function(){return s.removeEventListener("wheel",l)}}});var it=function(){Z&&Ae(!1),J(!1),M.current=!1};return Ie(function(){h.isInvalidate()||te(h,!1)},[x,A]),Ie(function(){var l=_(c);K(l);var s=_(ve(ee));(!l.equals(s)||!M.current||A)&&te(l,M.current)},[c]),Ie(function(){A&&Qe()},[ee]),i.createElement("div",{ref:fe,className:T(n,r,y(y(y(y(y({},"".concat(n,"-focused"),U),"".concat(n,"-disabled"),b),"".concat(n,"-readonly"),S),"".concat(n,"-not-a-number"),h.isNaN()),"".concat(n,"-out-of-range"),!h.isInvalidate()&&!be(h))),style:a,onFocus:function(){J(!0)},onBlur:it,onKeyDown:rt,onKeyUp:at,onCompositionStart:Je,onCompositionEnd:et,onBeforeInput:nt},R&&i.createElement(Kt,{prefixCls:n,upNode:N,downNode:D,upDisabled:Oe,downDisabled:De,onStep:Se}),i.createElement("div",{className:"".concat(ie,"-wrap")},i.createElement("input",ae({autoComplete:"off",role:"spinbutton","aria-valuemin":o,"aria-valuemax":v,"aria-valuenow":h.isInvalidate()?null:h.toString(),step:g},me,{ref:gt(G,t),className:ie,value:ee,onChange:tt,disabled:b,readOnly:S}))))}),en=i.forwardRef(function(e,t){var n=e.disabled,r=e.style,a=e.prefixCls,o=a===void 0?"rc-input-number":a,v=e.value,f=e.prefix,g=e.suffix,m=e.addonBefore,c=e.addonAfter,b=e.className,S=e.classNames,N=Le(e,Zt),D=i.useRef(null),$=i.useRef(null),w=i.useRef(null),I=function(R){w.current&&Ct(w.current,R)};return i.useImperativeHandle(t,function(){return Pt(w.current,{focus:I,nativeElement:D.current.nativeElement||$.current})}),i.createElement(Rt,{className:b,triggerFocus:I,prefixCls:o,value:v,disabled:n,style:r,prefix:f,suffix:g,addonAfter:c,addonBefore:m,classNames:S,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"},ref:D},i.createElement(Jt,ae({prefixCls:o,disabled:n,ref:w,domRef:$,className:S==null?void 0:S.input},N)))});const tn=e=>{var t;const n=(t=e.handleVisible)!==null&&t!==void 0?t:"auto",r=e.controlHeightSM-e.lineWidth*2;return Object.assign(Object.assign({},Ot(e)),{controlWidth:90,handleWidth:r,handleFontSize:e.fontSize/2,handleVisible:n,handleActiveBg:e.colorFillAlter,handleBg:e.colorBgContainer,filledHandleBg:new pt(e.colorFillSecondary).onBackground(e.colorBgContainer).toHexString(),handleHoverColor:e.colorPrimary,handleBorderColor:e.colorBorder,handleOpacity:n===!0?1:0,handleVisibleWidth:n===!0?r:0})},Te=({componentCls:e,borderRadiusSM:t,borderRadiusLG:n},r)=>{const a=r==="lg"?n:t;return{[`&-${r}`]:{[`${e}-handler-wrap`]:{borderStartEndRadius:a,borderEndEndRadius:a},[`${e}-handler-up`]:{borderStartEndRadius:a},[`${e}-handler-down`]:{borderEndEndRadius:a}}}},nn=e=>{const{componentCls:t,lineWidth:n,lineType:r,borderRadius:a,inputFontSizeSM:o,inputFontSizeLG:v,controlHeightLG:f,controlHeightSM:g,colorError:m,paddingInlineSM:c,paddingBlockSM:b,paddingBlockLG:S,paddingInlineLG:N,colorIcon:D,motionDurationMid:$,handleHoverColor:w,handleOpacity:I,paddingInline:E,paddingBlock:R,handleBg:d,handleActiveBg:O,colorTextDisabled:A,borderRadiusSM:x,borderRadiusLG:B,controlWidth:L,handleBorderColor:V,filledHandleBg:j,lineHeightLG:k,calc:W}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},ye(e)),Pe(e)),{display:"inline-block",width:L,margin:0,padding:0,borderRadius:a}),Bt(e,{[`${t}-handler-wrap`]:{background:d,[`${t}-handler-down`]:{borderBlockStart:`${C(n)} ${r} ${V}`}}})),Mt(e,{[`${t}-handler-wrap`]:{background:j,[`${t}-handler-down`]:{borderBlockStart:`${C(n)} ${r} ${V}`}},"&:focus-within":{[`${t}-handler-wrap`]:{background:d}}})),_t(e,{[`${t}-handler-wrap`]:{background:d,[`${t}-handler-down`]:{borderBlockStart:`${C(n)} ${r} ${V}`}}})),At(e)),{"&-rtl":{direction:"rtl",[`${t}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:v,lineHeight:k,borderRadius:B,[`input${t}-input`]:{height:W(f).sub(W(n).mul(2)).equal(),padding:`${C(S)} ${C(N)}`}},"&-sm":{padding:0,fontSize:o,borderRadius:x,[`input${t}-input`]:{height:W(g).sub(W(n).mul(2)).equal(),padding:`${C(b)} ${C(c)}`}},"&-out-of-range":{[`${t}-input-wrap`]:{input:{color:m}}},"&-group":Object.assign(Object.assign(Object.assign({},ye(e)),Ft(e)),{"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",textAlign:"start",verticalAlign:"top",[`${t}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${t}-group-addon`]:{borderRadius:B,fontSize:e.fontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:x}}},jt(e)),kt(e)),{[`&:not(${t}-compact-first-item):not(${t}-compact-last-item)${t}-compact-item`]:{[`${t}, ${t}-group-addon`]:{borderRadius:0}},[`&:not(${t}-compact-last-item)${t}-compact-first-item`]:{[`${t}, ${t}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${t}-compact-first-item)${t}-compact-last-item`]:{[`${t}, ${t}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}}})}),[`&-disabled ${t}-input`]:{cursor:"not-allowed"},[t]:{"&-input":Object.assign(Object.assign(Object.assign(Object.assign({},ye(e)),{width:"100%",padding:`${C(R)} ${C(E)}`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:a,outline:0,transition:`all ${$} linear`,appearance:"textfield",fontSize:"inherit"}),Vt(e.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,appearance:"none"}})},[`&:hover ${t}-handler-wrap, &-focused ${t}-handler-wrap`]:{width:e.handleWidth,opacity:1}})},{[t]:Object.assign(Object.assign(Object.assign({[`${t}-handler-wrap`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:e.handleVisibleWidth,opacity:I,height:"100%",borderStartStartRadius:0,borderStartEndRadius:a,borderEndEndRadius:a,borderEndStartRadius:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`all ${$}`,overflow:"hidden",[`${t}-handler`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",[`
|
|
2
2
|
${t}-handler-up-inner,
|
|
3
3
|
${t}-handler-down-inner
|
|
4
4
|
`]:{marginInlineEnd:0,fontSize:e.handleFontSize}}},[`${t}-handler`]:{height:"50%",overflow:"hidden",color:D,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${C(n)} ${r} ${V}`,transition:`all ${$} linear`,"&:active":{background:O},"&:hover":{height:"60%",[`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as a,R as M}from"./vendor-react-CnooHTJc.js";import{aV as ze,aW as fe,j as W,aX as le,Y as he,aY as ae,O as Oe,m as ye,o as Z,l as Be,aZ as Nt,r as Re,a_ as At,a$ as Tt,h as we,M as Se,A as _e,Q as Fe,q as Me,b0 as _t,b1 as Ft,a5 as Qe,w as Ie,b2 as Ze,a1 as Mt,E as ut,b3 as Je,G as We,b4 as tt,X as ft,b5 as Wt,b6 as rt,ad as nt,B as Dt,e as ot}from"./index-Cp4GfHnF.js";import{u as De,a as pt,b as Ye,c as ke,R as Ht,d as Lt}from"./MobileAwareSelect-BmK6WApn.js";var Vt=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"],Gt=a.forwardRef(function(e,t){var n=e.prefixCls,r=n===void 0?"rc-checkbox":n,o=e.className,s=e.style,l=e.checked,i=e.disabled,$=e.defaultChecked,v=$===void 0?!1:$,c=e.type,S=c===void 0?"checkbox":c,I=e.title,h=e.onChange,E=ze(e,Vt),N=a.useRef(null),w=a.useRef(null),d=De(v,{value:l}),R=fe(d,2),_=R[0],H=R[1];a.useImperativeHandle(t,function(){return{focus:function(m){var z;(z=N.current)===null||z===void 0||z.focus(m)},blur:function(){var m;(m=N.current)===null||m===void 0||m.blur()},input:N.current,nativeElement:w.current}});var g=W(r,o,le(le({},"".concat(r,"-checked"),_),"".concat(r,"-disabled"),i)),x=function(m){i||("checked"in e||H(m.target.checked),h==null||h({target:ae(ae({},e),{},{type:S,checked:m.target.checked}),stopPropagation:function(){m.stopPropagation()},preventDefault:function(){m.preventDefault()},nativeEvent:m.nativeEvent}))};return a.createElement("span",{className:g,title:I,style:s,ref:w},a.createElement("input",he({},E,{className:"".concat(r,"-input"),ref:N,onChange:x,disabled:i,checked:!!_,type:S})),a.createElement("span",{className:"".concat(r,"-inner")}))});function qt(e){const t=M.useRef(null),n=()=>{Oe.cancel(t.current),t.current=null};return[()=>{n(),t.current=Oe(()=>{t.current=null})},s=>{t.current&&(s.stopPropagation(),n()),e==null||e(s)}]}function He(e){return ye(e,{inputAffixPadding:e.paddingXXS})}const Le=e=>{const{controlHeight:t,fontSize:n,lineHeight:r,lineWidth:o,controlHeightSM:s,controlHeightLG:l,fontSizeLG:i,lineHeightLG:$,paddingSM:v,controlPaddingHorizontalSM:c,controlPaddingHorizontal:S,colorFillAlter:I,colorPrimaryHover:h,colorPrimary:E,controlOutlineWidth:N,controlOutline:w,colorErrorOutline:d,colorWarningOutline:R,colorBgContainer:_,inputFontSize:H,inputFontSizeLG:g,inputFontSizeSM:x}=e,u=H||n,m=x||u,z=g||i,B=Math.round((t-u*r)/2*10)/10-o,F=Math.round((s-m*r)/2*10)/10-o,D=Math.ceil((l-z*$)/2*10)/10-o;return{paddingBlock:Math.max(B,0),paddingBlockSM:Math.max(F,0),paddingBlockLG:Math.max(D,0),paddingInline:v-o,paddingInlineSM:c-o,paddingInlineLG:S-o,addonBg:I,activeBorderColor:E,hoverBorderColor:h,activeShadow:`0 0 0 ${N}px ${w}`,errorActiveShadow:`0 0 0 ${N}px ${d}`,warningActiveShadow:`0 0 0 ${N}px ${R}`,hoverBg:_,activeBg:_,inputFontSize:u,inputFontSizeLG:z,inputFontSizeSM:m}},Kt=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),et=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"input[disabled], textarea[disabled]":{cursor:"not-allowed"},"&:hover:not([disabled])":Object.assign({},Kt(ye(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),gt=(e,t)=>({background:e.colorBgContainer,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:t.borderColor,"&:hover":{borderColor:t.hoverBorderColor,backgroundColor:e.hoverBg},"&:focus, &:focus-within":{borderColor:t.activeBorderColor,boxShadow:t.activeShadow,outline:0,backgroundColor:e.activeBg}}),at=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},gt(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),Xt=(e,t)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},gt(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},et(e))}),at(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),at(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),lt=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),Ut=e=>({"&-outlined":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${Z(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},lt(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText})),lt(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:Object.assign({},et(e))}})}),Yt=(e,t)=>{const{componentCls:n}=e;return{"&-borderless":Object.assign({background:"transparent",border:"none","&:focus, &:focus-within":{outline:"none"},[`&${n}-disabled, &[disabled]`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${n}-status-error`]:{"&, & input, & textarea":{color:e.colorError}},[`&${n}-status-warning`]:{"&, & input, & textarea":{color:e.colorWarning}}},t)}},vt=(e,t)=>{var n;return{background:t.bg,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:"transparent","input&, & input, textarea&, & textarea":{color:(n=t==null?void 0:t.inputColor)!==null&&n!==void 0?n:"unset"},"&:hover":{background:t.hoverBg},"&:focus, &:focus-within":{outline:0,borderColor:t.activeBorderColor,backgroundColor:e.activeBg}}},it=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},vt(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}})}),Qt=(e,t)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},vt(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},et(e))}),it(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError})),it(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning})),t)}),st=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),Zt=e=>({"&-filled":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group-addon`]:{background:e.colorFillTertiary,"&:last-child":{position:"static"}}},st(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText})),st(e,{status:"warning",addonBg:e.colorWarningBg,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group`]:{"&-addon":{background:e.colorFillTertiary,color:e.colorTextDisabled},"&-addon:first-child":{borderInlineStart:`${Z(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${Z(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${Z(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${Z(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${Z(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${Z(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}})}),mt=(e,t)=>({background:e.colorBgContainer,borderWidth:`${Z(e.lineWidth)} 0`,borderStyle:`${e.lineType} none`,borderColor:`transparent transparent ${t.borderColor} transparent`,borderRadius:0,"&:hover":{borderColor:`transparent transparent ${t.hoverBorderColor} transparent`,backgroundColor:e.hoverBg},"&:focus, &:focus-within":{borderColor:`transparent transparent ${t.activeBorderColor} transparent`,outline:0,backgroundColor:e.activeBg}}),ct=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},mt(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:`transparent transparent ${t.borderColor} transparent`}}),Jt=(e,t)=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},mt(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:{color:e.colorTextDisabled,boxShadow:"none",cursor:"not-allowed","&:hover":{borderColor:`transparent transparent ${e.colorBorder} transparent`}},"input[disabled], textarea[disabled]":{cursor:"not-allowed"}}),ct(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),ct(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),kt=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),bt=e=>{const{paddingBlockLG:t,lineHeightLG:n,borderRadiusLG:r,paddingInlineLG:o}=e;return{padding:`${Z(t)} ${Z(o)}`,fontSize:e.inputFontSizeLG,lineHeight:n,borderRadius:r}},ht=e=>({padding:`${Z(e.paddingBlockSM)} ${Z(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),Ct=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${Z(e.paddingBlock)} ${Z(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},kt(e.colorTextPlaceholder)),{"&-lg":Object.assign({},bt(e)),"&-sm":Object.assign({},ht(e)),"&-rtl, &-textarea-rtl":{direction:"rtl"}}),er=e=>{const{componentCls:t,antCls:n}=e;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:e.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${t}, &-lg > ${t}-group-addon`]:Object.assign({},bt(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},ht(e)),[`&-lg ${n}-select-single ${n}-select-selector`]:{height:e.controlHeightLG},[`&-sm ${n}-select-single ${n}-select-selector`]:{height:e.controlHeightSM},[`> ${t}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${t}-group`]:{"&-addon, &-wrap":{display:"table-cell",width:1,whiteSpace:"nowrap",verticalAlign:"middle","&:not(:first-child):not(:last-child)":{borderRadius:0}},"&-wrap > *":{display:"block !important"},"&-addon":{position:"relative",padding:`0 ${Z(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`${Z(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${Z(e.calc(e.paddingInline).mul(-1).equal())}`,[`&${n}-select-single:not(${n}-select-customize-input):not(${n}-pagination-size-changer)`]:{[`${n}-select-selector`]:{backgroundColor:"inherit",border:`${Z(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}}},[`${n}-cascader-picker`]:{margin:`-9px ${Z(e.calc(e.paddingInline).mul(-1).equal())}`,backgroundColor:"transparent",[`${n}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}}},[t]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${t}-search-with-button &`]:{zIndex:0}}},[`> ${t}:first-child, ${t}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}-affix-wrapper`]:{[`&:not(:first-child) ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}:last-child, ${t}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${t}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${t}-search &`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius}},[`&:not(:first-child), ${t}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${t}-group-compact`]:Object.assign(Object.assign({display:"block"},At()),{[`${t}-group-addon, ${t}-group-wrap, > ${t}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:e.lineWidth,"&:hover, &:focus":{zIndex:1}}},"& > *":{display:"inline-flex",float:"none",verticalAlign:"top",borderRadius:0},[`
|
|
1
|
+
import{r as a,R as M}from"./vendor-react-CnooHTJc.js";import{aV as ze,aW as fe,j as W,aX as le,Y as he,aY as ae,O as Oe,m as ye,o as Z,l as Be,aZ as Nt,r as Re,a_ as At,a$ as Tt,h as we,M as Se,A as _e,Q as Fe,q as Me,b0 as _t,b1 as Ft,a5 as Qe,w as Ie,b2 as Ze,a1 as Mt,E as ut,b3 as Je,G as We,b4 as tt,X as ft,b5 as Wt,b6 as rt,ad as nt,B as Dt,e as ot}from"./index-DdUqPqXW.js";import{u as De,a as pt,b as Ye,c as ke,R as Ht,d as Lt}from"./MobileAwareSelect-CCAQrsxL.js";var Vt=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"],Gt=a.forwardRef(function(e,t){var n=e.prefixCls,r=n===void 0?"rc-checkbox":n,o=e.className,s=e.style,l=e.checked,i=e.disabled,$=e.defaultChecked,v=$===void 0?!1:$,c=e.type,S=c===void 0?"checkbox":c,I=e.title,h=e.onChange,E=ze(e,Vt),N=a.useRef(null),w=a.useRef(null),d=De(v,{value:l}),R=fe(d,2),_=R[0],H=R[1];a.useImperativeHandle(t,function(){return{focus:function(m){var z;(z=N.current)===null||z===void 0||z.focus(m)},blur:function(){var m;(m=N.current)===null||m===void 0||m.blur()},input:N.current,nativeElement:w.current}});var g=W(r,o,le(le({},"".concat(r,"-checked"),_),"".concat(r,"-disabled"),i)),x=function(m){i||("checked"in e||H(m.target.checked),h==null||h({target:ae(ae({},e),{},{type:S,checked:m.target.checked}),stopPropagation:function(){m.stopPropagation()},preventDefault:function(){m.preventDefault()},nativeEvent:m.nativeEvent}))};return a.createElement("span",{className:g,title:I,style:s,ref:w},a.createElement("input",he({},E,{className:"".concat(r,"-input"),ref:N,onChange:x,disabled:i,checked:!!_,type:S})),a.createElement("span",{className:"".concat(r,"-inner")}))});function qt(e){const t=M.useRef(null),n=()=>{Oe.cancel(t.current),t.current=null};return[()=>{n(),t.current=Oe(()=>{t.current=null})},s=>{t.current&&(s.stopPropagation(),n()),e==null||e(s)}]}function He(e){return ye(e,{inputAffixPadding:e.paddingXXS})}const Le=e=>{const{controlHeight:t,fontSize:n,lineHeight:r,lineWidth:o,controlHeightSM:s,controlHeightLG:l,fontSizeLG:i,lineHeightLG:$,paddingSM:v,controlPaddingHorizontalSM:c,controlPaddingHorizontal:S,colorFillAlter:I,colorPrimaryHover:h,colorPrimary:E,controlOutlineWidth:N,controlOutline:w,colorErrorOutline:d,colorWarningOutline:R,colorBgContainer:_,inputFontSize:H,inputFontSizeLG:g,inputFontSizeSM:x}=e,u=H||n,m=x||u,z=g||i,B=Math.round((t-u*r)/2*10)/10-o,F=Math.round((s-m*r)/2*10)/10-o,D=Math.ceil((l-z*$)/2*10)/10-o;return{paddingBlock:Math.max(B,0),paddingBlockSM:Math.max(F,0),paddingBlockLG:Math.max(D,0),paddingInline:v-o,paddingInlineSM:c-o,paddingInlineLG:S-o,addonBg:I,activeBorderColor:E,hoverBorderColor:h,activeShadow:`0 0 0 ${N}px ${w}`,errorActiveShadow:`0 0 0 ${N}px ${d}`,warningActiveShadow:`0 0 0 ${N}px ${R}`,hoverBg:_,activeBg:_,inputFontSize:u,inputFontSizeLG:z,inputFontSizeSM:m}},Kt=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),et=e=>({color:e.colorTextDisabled,backgroundColor:e.colorBgContainerDisabled,borderColor:e.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"input[disabled], textarea[disabled]":{cursor:"not-allowed"},"&:hover:not([disabled])":Object.assign({},Kt(ye(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),gt=(e,t)=>({background:e.colorBgContainer,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:t.borderColor,"&:hover":{borderColor:t.hoverBorderColor,backgroundColor:e.hoverBg},"&:focus, &:focus-within":{borderColor:t.activeBorderColor,boxShadow:t.activeShadow,outline:0,backgroundColor:e.activeBg}}),at=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},gt(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),Xt=(e,t)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},gt(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},et(e))}),at(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),at(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),lt=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),Ut=e=>({"&-outlined":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${Z(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},lt(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText})),lt(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:Object.assign({},et(e))}})}),Yt=(e,t)=>{const{componentCls:n}=e;return{"&-borderless":Object.assign({background:"transparent",border:"none","&:focus, &:focus-within":{outline:"none"},[`&${n}-disabled, &[disabled]`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${n}-status-error`]:{"&, & input, & textarea":{color:e.colorError}},[`&${n}-status-warning`]:{"&, & input, & textarea":{color:e.colorWarning}}},t)}},vt=(e,t)=>{var n;return{background:t.bg,borderWidth:e.lineWidth,borderStyle:e.lineType,borderColor:"transparent","input&, & input, textarea&, & textarea":{color:(n=t==null?void 0:t.inputColor)!==null&&n!==void 0?n:"unset"},"&:hover":{background:t.hoverBg},"&:focus, &:focus-within":{outline:0,borderColor:t.activeBorderColor,backgroundColor:e.activeBg}}},it=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},vt(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}})}),Qt=(e,t)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},vt(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},et(e))}),it(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError})),it(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning})),t)}),st=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),Zt=e=>({"&-filled":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group-addon`]:{background:e.colorFillTertiary,"&:last-child":{position:"static"}}},st(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText})),st(e,{status:"warning",addonBg:e.colorWarningBg,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group`]:{"&-addon":{background:e.colorFillTertiary,color:e.colorTextDisabled},"&-addon:first-child":{borderInlineStart:`${Z(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${Z(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${Z(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${Z(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${Z(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${Z(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}})}),mt=(e,t)=>({background:e.colorBgContainer,borderWidth:`${Z(e.lineWidth)} 0`,borderStyle:`${e.lineType} none`,borderColor:`transparent transparent ${t.borderColor} transparent`,borderRadius:0,"&:hover":{borderColor:`transparent transparent ${t.hoverBorderColor} transparent`,backgroundColor:e.hoverBg},"&:focus, &:focus-within":{borderColor:`transparent transparent ${t.activeBorderColor} transparent`,outline:0,backgroundColor:e.activeBg}}),ct=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},mt(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:`transparent transparent ${t.borderColor} transparent`}}),Jt=(e,t)=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},mt(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:{color:e.colorTextDisabled,boxShadow:"none",cursor:"not-allowed","&:hover":{borderColor:`transparent transparent ${e.colorBorder} transparent`}},"input[disabled], textarea[disabled]":{cursor:"not-allowed"}}),ct(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),ct(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),kt=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),bt=e=>{const{paddingBlockLG:t,lineHeightLG:n,borderRadiusLG:r,paddingInlineLG:o}=e;return{padding:`${Z(t)} ${Z(o)}`,fontSize:e.inputFontSizeLG,lineHeight:n,borderRadius:r}},ht=e=>({padding:`${Z(e.paddingBlockSM)} ${Z(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),Ct=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${Z(e.paddingBlock)} ${Z(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},kt(e.colorTextPlaceholder)),{"&-lg":Object.assign({},bt(e)),"&-sm":Object.assign({},ht(e)),"&-rtl, &-textarea-rtl":{direction:"rtl"}}),er=e=>{const{componentCls:t,antCls:n}=e;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:e.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${t}, &-lg > ${t}-group-addon`]:Object.assign({},bt(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},ht(e)),[`&-lg ${n}-select-single ${n}-select-selector`]:{height:e.controlHeightLG},[`&-sm ${n}-select-single ${n}-select-selector`]:{height:e.controlHeightSM},[`> ${t}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${t}-group`]:{"&-addon, &-wrap":{display:"table-cell",width:1,whiteSpace:"nowrap",verticalAlign:"middle","&:not(:first-child):not(:last-child)":{borderRadius:0}},"&-wrap > *":{display:"block !important"},"&-addon":{position:"relative",padding:`0 ${Z(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`${Z(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${Z(e.calc(e.paddingInline).mul(-1).equal())}`,[`&${n}-select-single:not(${n}-select-customize-input):not(${n}-pagination-size-changer)`]:{[`${n}-select-selector`]:{backgroundColor:"inherit",border:`${Z(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}}},[`${n}-cascader-picker`]:{margin:`-9px ${Z(e.calc(e.paddingInline).mul(-1).equal())}`,backgroundColor:"transparent",[`${n}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}}},[t]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${t}-search-with-button &`]:{zIndex:0}}},[`> ${t}:first-child, ${t}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}-affix-wrapper`]:{[`&:not(:first-child) ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${t}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${t}:last-child, ${t}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${n}-select ${n}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${t}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${t}-search &`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius}},[`&:not(:first-child), ${t}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${t}-group-compact`]:Object.assign(Object.assign({display:"block"},At()),{[`${t}-group-addon, ${t}-group-wrap, > ${t}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:e.lineWidth,"&:hover, &:focus":{zIndex:1}}},"& > *":{display:"inline-flex",float:"none",verticalAlign:"top",borderRadius:0},[`
|
|
2
2
|
& > ${t}-affix-wrapper,
|
|
3
3
|
& > ${t}-number-affix-wrapper,
|
|
4
4
|
& > ${n}-picker-range
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{r as a,R as Yt}from"./vendor-react-CnooHTJc.js";import{X as Jt,Y as ce,aW as M,O as ut,aY as ae,be as Qt,b2 as Ve,aX as F,j as Q,bi as ve,b6 as Zt,w as vt,bc as ea,aV as Le,x as ta,bz as aa,L as na,l as ra,m as ia,o as S,r as Ct,bv as oa,a$ as wt,bG as Ke,h as la,q as ca,bx as sa,G as da}from"./index-Cp4GfHnF.js";import{E as ua,e as va,h as fa,j as ba}from"./shortcutUtils-20iqPDwh.js";import{d as je,H as ma,u as ft,o as bt}from"./MobileAwareSelect-BmK6WApn.js";var ha={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"},ga=function(t,n){return a.createElement(Jt,ce({},t,{ref:n,icon:ha}))},pa=a.forwardRef(ga);const ze=a.createContext(null);var $a=function(t){var n=t.activeTabOffset,r=t.horizontal,i=t.rtl,l=t.indicator,c=l===void 0?{}:l,o=c.size,s=c.align,d=s===void 0?"center":s,m=a.useState(),b=M(m,2),y=b[0],R=b[1],H=a.useRef(),E=Yt.useCallback(function(f){return typeof o=="function"?o(f):typeof o=="number"?o:f},[o]);function G(){ut.cancel(H.current)}return a.useEffect(function(){var f={};if(n)if(r){f.width=E(n.width);var g=i?"right":"left";d==="start"&&(f[g]=n[g]),d==="center"&&(f[g]=n[g]+n.width/2,f.transform=i?"translateX(50%)":"translateX(-50%)"),d==="end"&&(f[g]=n[g]+n.width,f.transform="translateX(-100%)")}else f.height=E(n.height),d==="start"&&(f.top=n.top),d==="center"&&(f.top=n.top+n.height/2,f.transform="translateY(-50%)"),d==="end"&&(f.top=n.top+n.height,f.transform="translateY(-100%)");return G(),H.current=ut(function(){var I=y&&f&&Object.keys(f).every(function(O){var L=f[O],k=y[O];return typeof L=="number"&&typeof k=="number"?Math.round(L)===Math.round(k):L===k});I||R(f)}),G},[JSON.stringify(n),r,i,d,E]),{style:y}},mt={width:0,height:0,left:0,top:0};function Sa(e,t,n){return a.useMemo(function(){for(var r,i=new Map,l=t.get((r=e[0])===null||r===void 0?void 0:r.key)||mt,c=l.left+l.width,o=0;o<e.length;o+=1){var s=e[o].key,d=t.get(s);if(!d){var m;d=t.get((m=e[o-1])===null||m===void 0?void 0:m.key)||mt}var b=i.get(s)||ae({},d);b.right=c-b.left-b.width,i.set(s,b)}return i},[e.map(function(r){return r.key}).join("_"),t,n])}function ht(e,t){var n=a.useRef(e),r=a.useState({}),i=M(r,2),l=i[1];function c(o){var s=typeof o=="function"?o(n.current):o;s!==n.current&&t(s,n.current),n.current=s,l({})}return[n.current,c]}var ya=.1,gt=.01,Me=20,pt=Math.pow(.995,Me);function _a(e,t){var n=a.useState(),r=M(n,2),i=r[0],l=r[1],c=a.useState(0),o=M(c,2),s=o[0],d=o[1],m=a.useState(0),b=M(m,2),y=b[0],R=b[1],H=a.useState(),E=M(H,2),G=E[0],f=E[1],g=a.useRef();function I(w){var P=w.touches[0],v=P.screenX,_=P.screenY;l({x:v,y:_}),window.clearInterval(g.current)}function O(w){if(i){var P=w.touches[0],v=P.screenX,_=P.screenY;l({x:v,y:_});var C=v-i.x,h=_-i.y;t(C,h);var K=Date.now();d(K),R(K-s),f({x:C,y:h})}}function L(){if(i&&(l(null),f(null),G)){var w=G.x/y,P=G.y/y,v=Math.abs(w),_=Math.abs(P);if(Math.max(v,_)<ya)return;var C=w,h=P;g.current=window.setInterval(function(){if(Math.abs(C)<gt&&Math.abs(h)<gt){window.clearInterval(g.current);return}C*=pt,h*=pt,t(C*Me,h*Me)},Me)}}var k=a.useRef();function W(w){var P=w.deltaX,v=w.deltaY,_=0,C=Math.abs(P),h=Math.abs(v);C===h?_=k.current==="x"?P:v:C>h?(_=P,k.current="x"):(_=v,k.current="y"),t(-_,-_)&&w.preventDefault()}var N=a.useRef(null);N.current={onTouchStart:I,onTouchMove:O,onTouchEnd:L,onWheel:W},a.useEffect(function(){function w(C){N.current.onTouchStart(C)}function P(C){N.current.onTouchMove(C)}function v(C){N.current.onTouchEnd(C)}function _(C){N.current.onWheel(C)}return document.addEventListener("touchmove",P,{passive:!1}),document.addEventListener("touchend",v,{passive:!0}),e.current.addEventListener("touchstart",w,{passive:!0}),e.current.addEventListener("wheel",_,{passive:!1}),function(){document.removeEventListener("touchmove",P),document.removeEventListener("touchend",v)}},[])}function Tt(e){var t=a.useState(0),n=M(t,2),r=n[0],i=n[1],l=a.useRef(0),c=a.useRef();return c.current=e,Qt(function(){var o;(o=c.current)===null||o===void 0||o.call(c)},[r]),function(){l.current===r&&(l.current+=1,i(l.current))}}function xa(e){var t=a.useRef([]),n=a.useState({}),r=M(n,2),i=r[1],l=a.useRef(typeof e=="function"?e():e),c=Tt(function(){var s=l.current;t.current.forEach(function(d){s=d(s)}),t.current=[],l.current=s,i({})});function o(s){t.current.push(s),c()}return[l.current,o]}var $t={width:0,height:0,left:0,top:0,right:0};function Ca(e,t,n,r,i,l,c){var o=c.tabs,s=c.tabPosition,d=c.rtl,m,b,y;return["top","bottom"].includes(s)?(m="width",b=d?"right":"left",y=Math.abs(n)):(m="height",b="top",y=-n),a.useMemo(function(){if(!o.length)return[0,0];for(var R=o.length,H=R,E=0;E<R;E+=1){var G=e.get(o[E].key)||$t;if(Math.floor(G[b]+G[m])>Math.floor(y+t)){H=E-1;break}}for(var f=0,g=R-1;g>=0;g-=1){var I=e.get(o[g].key)||$t;if(I[b]<y){f=g+1;break}}return f>H?[0,-1]:[f,H]},[e,t,r,i,l,y,s,o.map(function(R){return R.key}).join("_"),d])}function St(e){var t;return e instanceof Map?(t={},e.forEach(function(n,r){t[r]=n})):t=e,JSON.stringify(t)}var wa="TABS_DQ";function Et(e){return String(e).replace(/"/g,wa)}function Xe(e,t,n,r){return!(!n||r||e===!1||e===void 0&&(t===!1||t===null))}var Rt=a.forwardRef(function(e,t){var n=e.prefixCls,r=e.editable,i=e.locale,l=e.style;return!r||r.showAdd===!1?null:a.createElement("button",{ref:t,type:"button",className:"".concat(n,"-nav-add"),style:l,"aria-label":(i==null?void 0:i.addAriaLabel)||"Add tab",onClick:function(o){r.onEdit("add",{event:o})}},r.addIcon||"+")}),yt=a.forwardRef(function(e,t){var n=e.position,r=e.prefixCls,i=e.extra;if(!i)return null;var l,c={};return Ve(i)==="object"&&!a.isValidElement(i)?c=i:c.right=i,n==="right"&&(l=c.right),n==="left"&&(l=c.left),l?a.createElement("div",{className:"".concat(r,"-extra-content"),ref:t},l):null}),Ta=a.forwardRef(function(e,t){var n=e.prefixCls,r=e.id,i=e.tabs,l=e.locale,c=e.mobile,o=e.more,s=o===void 0?{}:o,d=e.style,m=e.className,b=e.editable,y=e.tabBarGutter,R=e.rtl,H=e.removeAriaLabel,E=e.onTabClick,G=e.getPopupContainer,f=e.popupClassName,g=a.useState(!1),I=M(g,2),O=I[0],L=I[1],k=a.useState(null),W=M(k,2),N=W[0],w=W[1],P=s.icon,v=P===void 0?"More":P,_="".concat(r,"-more-popup"),C="".concat(n,"-dropdown"),h=N!==null?"".concat(_,"-").concat(N):null,K=l==null?void 0:l.dropdownAriaLabel;function j($,A){$.preventDefault(),$.stopPropagation(),b.onEdit("remove",{key:A,event:$})}var V=a.createElement(ua,{onClick:function(A){var X=A.key,U=A.domEvent;E(X,U),L(!1)},prefixCls:"".concat(C,"-menu"),id:_,tabIndex:-1,role:"listbox","aria-activedescendant":h,selectedKeys:[N],"aria-label":K!==void 0?K:"expanded dropdown"},i.map(function($){var A=$.closable,X=$.disabled,U=$.closeIcon,Y=$.key,te=$.label,ee=Xe(A,U,b,X);return a.createElement(va,{key:Y,id:"".concat(_,"-").concat(Y),role:"option","aria-controls":r&&"".concat(r,"-panel-").concat(Y),disabled:X},a.createElement("span",null,te),ee&&a.createElement("button",{type:"button","aria-label":H||"remove",tabIndex:0,className:"".concat(C,"-menu-item-remove"),onClick:function(ie){ie.stopPropagation(),j(ie,Y)}},U||b.removeIcon||"×"))}));function q($){for(var A=i.filter(function(ee){return!ee.disabled}),X=A.findIndex(function(ee){return ee.key===N})||0,U=A.length,Y=0;Y<U;Y+=1){X=(X+$+U)%U;var te=A[X];if(!te.disabled){w(te.key);return}}}function re($){var A=$.which;if(!O){[ve.DOWN,ve.SPACE,ve.ENTER].includes(A)&&(L(!0),$.preventDefault());return}switch(A){case ve.UP:q(-1),$.preventDefault();break;case ve.DOWN:q(1),$.preventDefault();break;case ve.ESC:L(!1);break;case ve.SPACE:case ve.ENTER:N!==null&&E(N,$);break}}a.useEffect(function(){var $=document.getElementById(h);$&&$.scrollIntoView&&$.scrollIntoView(!1)},[N]),a.useEffect(function(){O||w(null)},[O]);var p=F({},R?"marginRight":"marginLeft",y);i.length||(p.visibility="hidden",p.order=1);var Z=Q(F({},"".concat(C,"-rtl"),R)),se=c?null:a.createElement(fa,ce({prefixCls:C,overlay:V,visible:i.length?O:!1,onVisibleChange:L,overlayClassName:Q(Z,f),mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:G},s),a.createElement("button",{type:"button",className:"".concat(n,"-nav-more"),style:p,"aria-haspopup":"listbox","aria-controls":_,id:"".concat(r,"-more"),"aria-expanded":O,onKeyDown:re},v));return a.createElement("div",{className:Q("".concat(n,"-nav-operations"),m),style:d,ref:t},se,a.createElement(Rt,{prefixCls:n,locale:l,editable:b}))});const Ea=a.memo(Ta,function(e,t){return t.tabMoving});var Ra=function(t){var n=t.prefixCls,r=t.id,i=t.active,l=t.focus,c=t.tab,o=c.key,s=c.label,d=c.disabled,m=c.closeIcon,b=c.icon,y=t.closable,R=t.renderWrapper,H=t.removeAriaLabel,E=t.editable,G=t.onClick,f=t.onFocus,g=t.onBlur,I=t.onKeyDown,O=t.onMouseDown,L=t.onMouseUp,k=t.style,W=t.tabCount,N=t.currentPosition,w="".concat(n,"-tab"),P=Xe(y,m,E,d);function v(j){d||G(j)}function _(j){j.preventDefault(),j.stopPropagation(),E.onEdit("remove",{key:o,event:j})}var C=a.useMemo(function(){return b&&typeof s=="string"?a.createElement("span",null,s):s},[s,b]),h=a.useRef(null);a.useEffect(function(){l&&h.current&&h.current.focus()},[l]);var K=a.createElement("div",{key:o,"data-node-key":Et(o),className:Q(w,F(F(F(F({},"".concat(w,"-with-remove"),P),"".concat(w,"-active"),i),"".concat(w,"-disabled"),d),"".concat(w,"-focus"),l)),style:k,onClick:v},a.createElement("div",{ref:h,role:"tab","aria-selected":i,id:r&&"".concat(r,"-tab-").concat(o),className:"".concat(w,"-btn"),"aria-controls":r&&"".concat(r,"-panel-").concat(o),"aria-disabled":d,tabIndex:d?null:i?0:-1,onClick:function(V){V.stopPropagation(),v(V)},onKeyDown:I,onMouseDown:O,onMouseUp:L,onFocus:f,onBlur:g},l&&a.createElement("div",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"Tab ".concat(N," of ").concat(W)),b&&a.createElement("span",{className:"".concat(w,"-icon")},b),s&&C),P&&a.createElement("button",{type:"button",role:"tab","aria-label":H||"remove",tabIndex:i?0:-1,className:"".concat(w,"-remove"),onClick:function(V){V.stopPropagation(),_(V)}},m||E.removeIcon||"×"));return R?R(K):K},Pa=function(t,n){var r=t.offsetWidth,i=t.offsetHeight,l=t.offsetTop,c=t.offsetLeft,o=t.getBoundingClientRect(),s=o.width,d=o.height,m=o.left,b=o.top;return Math.abs(s-r)<1?[s,d,m-n.left,b-n.top]:[r,i,c,l]},Se=function(t){var n=t.current||{},r=n.offsetWidth,i=r===void 0?0:r,l=n.offsetHeight,c=l===void 0?0:l;if(t.current){var o=t.current.getBoundingClientRect(),s=o.width,d=o.height;if(Math.abs(s-i)<1)return[s,d]}return[i,c]},Ie=function(t,n){return t[n?0:1]},_t=a.forwardRef(function(e,t){var n=e.className,r=e.style,i=e.id,l=e.animated,c=e.activeKey,o=e.rtl,s=e.extra,d=e.editable,m=e.locale,b=e.tabPosition,y=e.tabBarGutter,R=e.children,H=e.onTabClick,E=e.onTabScroll,G=e.indicator,f=a.useContext(ze),g=f.prefixCls,I=f.tabs,O=a.useRef(null),L=a.useRef(null),k=a.useRef(null),W=a.useRef(null),N=a.useRef(null),w=a.useRef(null),P=a.useRef(null),v=b==="top"||b==="bottom",_=ht(0,function(T,u){v&&E&&E({direction:T>u?"left":"right"})}),C=M(_,2),h=C[0],K=C[1],j=ht(0,function(T,u){!v&&E&&E({direction:T>u?"top":"bottom"})}),V=M(j,2),q=V[0],re=V[1],p=a.useState([0,0]),Z=M(p,2),se=Z[0],$=Z[1],A=a.useState([0,0]),X=M(A,2),U=X[0],Y=X[1],te=a.useState([0,0]),ee=M(te,2),be=ee[0],ie=ee[1],me=a.useState([0,0]),he=M(me,2),z=he[0],oe=he[1],de=xa(new Map),Ce=M(de,2),Oe=Ce[0],It=Ce[1],we=Sa(I,Oe,U[0]),Ne=Ie(se,v),ye=Ie(U,v),De=Ie(be,v),Ue=Ie(z,v),Fe=Math.floor(Ne)<Math.floor(ye+De),ne=Fe?Ne-Ue:Ne-De,Mt="".concat(g,"-nav-operations-hidden"),ue=0,fe=0;v&&o?(ue=0,fe=Math.max(0,ye-ne)):(ue=Math.min(0,ne-ye),fe=0);function Be(T){return T<ue?ue:T>fe?fe:T}var ke=a.useRef(null),Lt=a.useState(),qe=M(Lt,2),Te=qe[0],Ye=qe[1];function Ae(){Ye(Date.now())}function He(){ke.current&&clearTimeout(ke.current)}_a(W,function(T,u){function x(D,B){D(function(J){var $e=Be(J+B);return $e})}return Fe?(v?x(K,T):x(re,u),He(),Ae(),!0):!1}),a.useEffect(function(){return He(),Te&&(ke.current=setTimeout(function(){Ye(0)},100)),He},[Te]);var zt=Ca(we,ne,v?h:q,ye,De,Ue,ae(ae({},e),{},{tabs:I})),Je=M(zt,2),Ot=Je[0],Nt=Je[1],Qe=Zt(function(){var T=arguments.length>0&&arguments[0]!==void 0?arguments[0]:c,u=we.get(T)||{width:0,height:0,left:0,right:0,top:0};if(v){var x=h;o?u.right<h?x=u.right:u.right+u.width>h+ne&&(x=u.right+u.width-ne):u.left<-h?x=-u.left:u.left+u.width>-h+ne&&(x=-(u.left+u.width-ne)),re(0),K(Be(x))}else{var D=q;u.top<-q?D=-u.top:u.top+u.height>-q+ne&&(D=-(u.top+u.height-ne)),K(0),re(Be(D))}}),Dt=a.useState(),Ze=M(Dt,2),ge=Ze[0],_e=Ze[1],Bt=a.useState(!1),et=M(Bt,2),kt=et[0],tt=et[1],le=I.filter(function(T){return!T.disabled}).map(function(T){return T.key}),pe=function(u){var x=le.indexOf(ge||c),D=le.length,B=(x+u+D)%D,J=le[B];_e(J)},at=function(u,x){var D=le.indexOf(u),B=I.find(function($e){return $e.key===u}),J=Xe(B==null?void 0:B.closable,B==null?void 0:B.closeIcon,d,B==null?void 0:B.disabled);J&&(x.preventDefault(),x.stopPropagation(),d.onEdit("remove",{key:u,event:x}),D===le.length-1?pe(-1):pe(1))},At=function(u,x){tt(!0),x.button===1&&at(u,x)},Ht=function(u){var x=u.code,D=o&&v,B=le[0],J=le[le.length-1];switch(x){case"ArrowLeft":{v&&pe(D?1:-1);break}case"ArrowRight":{v&&pe(D?-1:1);break}case"ArrowUp":{u.preventDefault(),v||pe(-1);break}case"ArrowDown":{u.preventDefault(),v||pe(1);break}case"Home":{u.preventDefault(),_e(B);break}case"End":{u.preventDefault(),_e(J);break}case"Enter":case"Space":{u.preventDefault(),H(ge??c,u);break}case"Backspace":case"Delete":{at(ge,u);break}}},Ee={};v?Ee[o?"marginRight":"marginLeft"]=y:Ee.marginTop=y;var nt=I.map(function(T,u){var x=T.key;return a.createElement(Ra,{id:i,prefixCls:g,key:x,tab:T,style:u===0?void 0:Ee,closable:T.closable,editable:d,active:x===c,focus:x===ge,renderWrapper:R,removeAriaLabel:m==null?void 0:m.removeAriaLabel,tabCount:le.length,currentPosition:u+1,onClick:function(B){H(x,B)},onKeyDown:Ht,onFocus:function(){kt||_e(x),Qe(x),Ae(),W.current&&(o||(W.current.scrollLeft=0),W.current.scrollTop=0)},onBlur:function(){_e(void 0)},onMouseDown:function(B){return At(x,B)},onMouseUp:function(){tt(!1)}})}),rt=function(){return It(function(){var u,x=new Map,D=(u=N.current)===null||u===void 0?void 0:u.getBoundingClientRect();return I.forEach(function(B){var J,$e=B.key,dt=(J=N.current)===null||J===void 0?void 0:J.querySelector('[data-node-key="'.concat(Et($e),'"]'));if(dt){var Vt=Pa(dt,D),Pe=M(Vt,4),Xt=Pe[0],Ut=Pe[1],Ft=Pe[2],qt=Pe[3];x.set($e,{width:Xt,height:Ut,left:Ft,top:qt})}}),x})};a.useEffect(function(){rt()},[I.map(function(T){return T.key}).join("_")]);var Re=Tt(function(){var T=Se(O),u=Se(L),x=Se(k);$([T[0]-u[0]-x[0],T[1]-u[1]-x[1]]);var D=Se(P);ie(D);var B=Se(w);oe(B);var J=Se(N);Y([J[0]-D[0],J[1]-D[1]]),rt()}),Gt=I.slice(0,Ot),Wt=I.slice(Nt+1),it=[].concat(vt(Gt),vt(Wt)),ot=we.get(c),jt=$a({activeTabOffset:ot,horizontal:v,indicator:G,rtl:o}),Kt=jt.style;a.useEffect(function(){Qe()},[c,ue,fe,St(ot),St(we),v]),a.useEffect(function(){Re()},[o]);var lt=!!it.length,xe="".concat(g,"-nav-wrap"),Ge,We,ct,st;return v?o?(We=h>0,Ge=h!==fe):(Ge=h<0,We=h!==ue):(ct=q<0,st=q!==ue),a.createElement(je,{onResize:Re},a.createElement("div",{ref:ea(t,O),role:"tablist","aria-orientation":v?"horizontal":"vertical",className:Q("".concat(g,"-nav"),n),style:r,onKeyDown:function(){Ae()}},a.createElement(yt,{ref:L,position:"left",extra:s,prefixCls:g}),a.createElement(je,{onResize:Re},a.createElement("div",{className:Q(xe,F(F(F(F({},"".concat(xe,"-ping-left"),Ge),"".concat(xe,"-ping-right"),We),"".concat(xe,"-ping-top"),ct),"".concat(xe,"-ping-bottom"),st)),ref:W},a.createElement(je,{onResize:Re},a.createElement("div",{ref:N,className:"".concat(g,"-nav-list"),style:{transform:"translate(".concat(h,"px, ").concat(q,"px)"),transition:Te?"none":void 0}},nt,a.createElement(Rt,{ref:P,prefixCls:g,locale:m,editable:d,style:ae(ae({},nt.length===0?void 0:Ee),{},{visibility:lt?"hidden":null})}),a.createElement("div",{className:Q("".concat(g,"-ink-bar"),F({},"".concat(g,"-ink-bar-animated"),l.inkBar)),style:Kt}))))),a.createElement(Ea,ce({},e,{removeAriaLabel:m==null?void 0:m.removeAriaLabel,ref:w,prefixCls:g,tabs:it,className:!lt&&Mt,tabMoving:!!Te})),a.createElement(yt,{ref:k,position:"right",extra:s,prefixCls:g})))}),Pt=a.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,i=e.style,l=e.id,c=e.active,o=e.tabKey,s=e.children;return a.createElement("div",{id:l&&"".concat(l,"-panel-").concat(o),role:"tabpanel",tabIndex:c?0:-1,"aria-labelledby":l&&"".concat(l,"-tab-").concat(o),"aria-hidden":!c,style:i,className:Q(n,c&&"".concat(n,"-active"),r),ref:t},s)}),Ia=["renderTabBar"],Ma=["label","key"],La=function(t){var n=t.renderTabBar,r=Le(t,Ia),i=a.useContext(ze),l=i.tabs;if(n){var c=ae(ae({},r),{},{panes:l.map(function(o){var s=o.label,d=o.key,m=Le(o,Ma);return a.createElement(Pt,ce({tab:s,key:d,tabKey:d},m))})});return n(c,_t)}return a.createElement(_t,r)},za=["key","forceRender","style","className","destroyInactiveTabPane"],Oa=function(t){var n=t.id,r=t.activeKey,i=t.animated,l=t.tabPosition,c=t.destroyInactiveTabPane,o=a.useContext(ze),s=o.prefixCls,d=o.tabs,m=i.tabPane,b="".concat(s,"-tabpane");return a.createElement("div",{className:Q("".concat(s,"-content-holder"))},a.createElement("div",{className:Q("".concat(s,"-content"),"".concat(s,"-content-").concat(l),F({},"".concat(s,"-content-animated"),m))},d.map(function(y){var R=y.key,H=y.forceRender,E=y.style,G=y.className,f=y.destroyInactiveTabPane,g=Le(y,za),I=R===r;return a.createElement(ta,ce({key:R,visible:I,forceRender:H,removeOnLeave:!!(c||f),leavedClassName:"".concat(b,"-hidden")},i.tabPaneMotion),function(O,L){var k=O.style,W=O.className;return a.createElement(Pt,ce({},g,{prefixCls:b,id:n,tabKey:R,animated:m,active:I,style:ae(ae({},E),k),className:Q(G,W),ref:L}))})})))};function Na(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{inkBar:!0,tabPane:!1},t;return e===!1?t={inkBar:!1,tabPane:!1}:e===!0?t={inkBar:!0,tabPane:!1}:t=ae({inkBar:!0},Ve(e)==="object"?e:{}),t.tabPaneMotion&&t.tabPane===void 0&&(t.tabPane=!0),!t.tabPaneMotion&&t.tabPane&&(t.tabPane=!1),t}var Da=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","more","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicator"],xt=0,Ba=a.forwardRef(function(e,t){var n=e.id,r=e.prefixCls,i=r===void 0?"rc-tabs":r,l=e.className,c=e.items,o=e.direction,s=e.activeKey,d=e.defaultActiveKey,m=e.editable,b=e.animated,y=e.tabPosition,R=y===void 0?"top":y,H=e.tabBarGutter,E=e.tabBarStyle,G=e.tabBarExtraContent,f=e.locale,g=e.more,I=e.destroyInactiveTabPane,O=e.renderTabBar,L=e.onChange,k=e.onTabClick,W=e.onTabScroll,N=e.getPopupContainer,w=e.popupClassName,P=e.indicator,v=Le(e,Da),_=a.useMemo(function(){return(c||[]).filter(function(z){return z&&Ve(z)==="object"&&"key"in z})},[c]),C=o==="rtl",h=Na(b),K=a.useState(!1),j=M(K,2),V=j[0],q=j[1];a.useEffect(function(){q(ma())},[]);var re=ft(function(){var z;return(z=_[0])===null||z===void 0?void 0:z.key},{value:s,defaultValue:d}),p=M(re,2),Z=p[0],se=p[1],$=a.useState(function(){return _.findIndex(function(z){return z.key===Z})}),A=M($,2),X=A[0],U=A[1];a.useEffect(function(){var z=_.findIndex(function(de){return de.key===Z});if(z===-1){var oe;z=Math.max(0,Math.min(X,_.length-1)),se((oe=_[z])===null||oe===void 0?void 0:oe.key)}U(z)},[_.map(function(z){return z.key}).join("_"),Z,X]);var Y=ft(null,{value:n}),te=M(Y,2),ee=te[0],be=te[1];a.useEffect(function(){n||(be("rc-tabs-".concat(xt)),xt+=1)},[]);function ie(z,oe){k==null||k(z,oe);var de=z!==Z;se(z),de&&(L==null||L(z))}var me={id:ee,activeKey:Z,animated:h,tabPosition:R,rtl:C,mobile:V},he=ae(ae({},me),{},{editable:m,locale:f,more:g,tabBarGutter:H,onTabClick:ie,onTabScroll:W,extra:G,style:E,panes:null,getPopupContainer:N,popupClassName:w,indicator:P});return a.createElement(ze.Provider,{value:{tabs:_,prefixCls:i}},a.createElement("div",ce({ref:t,id:n,className:Q(i,"".concat(i,"-").concat(R),F(F(F({},"".concat(i,"-mobile"),V),"".concat(i,"-editable"),m),"".concat(i,"-rtl"),C),l)},v),a.createElement(La,ce({},he,{renderTabBar:O})),a.createElement(Oa,ce({destroyInactiveTabPane:I},me,{animated:h}))))});const ka={motionAppear:!1,motionEnter:!0,motionLeave:!0};function Aa(e,t={inkBar:!0,tabPane:!1}){let n;return t===!1?n={inkBar:!1,tabPane:!1}:t===!0?n={inkBar:!0,tabPane:!0}:n=Object.assign({inkBar:!0},typeof t=="object"?t:{}),n.tabPane&&(n.tabPaneMotion=Object.assign(Object.assign({},ka),{motionName:aa(e,"switch")})),n}var Ha=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};function Ga(e){return e.filter(t=>t)}function Wa(e,t){if(e)return e.map(r=>{var i;const l=(i=r.destroyOnHidden)!==null&&i!==void 0?i:r.destroyInactiveTabPane;return Object.assign(Object.assign({},r),{destroyInactiveTabPane:l})});const n=na(t).map(r=>{if(a.isValidElement(r)){const{key:i,props:l}=r,c=l||{},{tab:o}=c,s=Ha(c,["tab"]);return Object.assign(Object.assign({key:String(i)},s),{label:o})}return null});return Ga(n)}const ja=e=>{const{componentCls:t,motionDurationSlow:n}=e;return[{[t]:{[`${t}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${n}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${n}`}}}}},[bt(e,"slide-up"),bt(e,"slide-down")]]},Ka=e=>{const{componentCls:t,tabsCardPadding:n,cardBg:r,cardGutter:i,colorBorderSecondary:l,itemSelectedColor:c}=e;return{[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:n,background:r,border:`${S(e.lineWidth)} ${e.lineType} ${l}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:c,background:e.colorBgContainer},[`${t}-tab-focus:has(${t}-tab-btn:focus-visible)`]:wt(e,-3),[`& ${t}-tab${t}-tab-focus ${t}-tab-btn:focus-visible`]:{outline:"none"},[`${t}-ink-bar`]:{visibility:"hidden"}},[`&${t}-top, &${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginLeft:{_skip_check_:!0,value:S(i)}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${S(e.borderRadiusLG)} ${S(e.borderRadiusLG)} 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${S(e.borderRadiusLG)} ${S(e.borderRadiusLG)}`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:S(i)}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${S(e.borderRadiusLG)} 0 0 ${S(e.borderRadiusLG)}`}},[`${t}-tab-active`]:{borderRightColor:{_skip_check_:!0,value:e.colorBgContainer}}}},[`&${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${S(e.borderRadiusLG)} ${S(e.borderRadiusLG)} 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},Va=e=>{const{componentCls:t,itemHoverColor:n,dropdownEdgeChildVerticalPadding:r}=e;return{[`${t}-dropdown`]:Object.assign(Object.assign({},Ct(e)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:e.zIndexPopup,display:"block","&-hidden":{display:"none"},[`${t}-dropdown-menu`]:{maxHeight:e.tabsDropdownHeight,margin:0,padding:`${S(r)} 0`,overflowX:"hidden",overflowY:"auto",textAlign:{_skip_check_:!0,value:"left"},listStyleType:"none",backgroundColor:e.colorBgContainer,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,"&-item":Object.assign(Object.assign({},oa),{display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${S(e.paddingXXS)} ${S(e.paddingSM)}`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"> span":{flex:1,whiteSpace:"nowrap"},"&-remove":{flex:"none",marginLeft:{_skip_check_:!0,value:e.marginSM},color:e.colorIcon,fontSize:e.fontSizeSM,background:"transparent",border:0,cursor:"pointer","&:hover":{color:n}},"&:hover":{background:e.controlItemBgHover},"&-disabled":{"&, &:hover":{color:e.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}})}})}},Xa=e=>{const{componentCls:t,margin:n,colorBorderSecondary:r,horizontalMargin:i,verticalItemPadding:l,verticalItemMargin:c,calc:o}=e;return{[`${t}-top, ${t}-bottom`]:{flexDirection:"column",[`> ${t}-nav, > div > ${t}-nav`]:{margin:i,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${S(e.lineWidth)} ${e.lineType} ${r}`,content:"''"},[`${t}-ink-bar`]:{height:e.lineWidthBold,"&-animated":{transition:`width ${e.motionDurationSlow}, left ${e.motionDurationSlow},
|
|
1
|
+
import{r as a,R as Yt}from"./vendor-react-CnooHTJc.js";import{X as Jt,Y as ce,aW as M,O as ut,aY as ae,be as Qt,b2 as Ve,aX as F,j as Q,bi as ve,b6 as Zt,w as vt,bc as ea,aV as Le,x as ta,bz as aa,L as na,l as ra,m as ia,o as S,r as Ct,bv as oa,a$ as wt,bG as Ke,h as la,q as ca,bx as sa,G as da}from"./index-DdUqPqXW.js";import{E as ua,e as va,h as fa,j as ba}from"./shortcutUtils-B8h6g_7o.js";import{d as je,H as ma,u as ft,o as bt}from"./MobileAwareSelect-CCAQrsxL.js";var ha={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"},ga=function(t,n){return a.createElement(Jt,ce({},t,{ref:n,icon:ha}))},pa=a.forwardRef(ga);const ze=a.createContext(null);var $a=function(t){var n=t.activeTabOffset,r=t.horizontal,i=t.rtl,l=t.indicator,c=l===void 0?{}:l,o=c.size,s=c.align,d=s===void 0?"center":s,m=a.useState(),b=M(m,2),y=b[0],R=b[1],H=a.useRef(),E=Yt.useCallback(function(f){return typeof o=="function"?o(f):typeof o=="number"?o:f},[o]);function G(){ut.cancel(H.current)}return a.useEffect(function(){var f={};if(n)if(r){f.width=E(n.width);var g=i?"right":"left";d==="start"&&(f[g]=n[g]),d==="center"&&(f[g]=n[g]+n.width/2,f.transform=i?"translateX(50%)":"translateX(-50%)"),d==="end"&&(f[g]=n[g]+n.width,f.transform="translateX(-100%)")}else f.height=E(n.height),d==="start"&&(f.top=n.top),d==="center"&&(f.top=n.top+n.height/2,f.transform="translateY(-50%)"),d==="end"&&(f.top=n.top+n.height,f.transform="translateY(-100%)");return G(),H.current=ut(function(){var I=y&&f&&Object.keys(f).every(function(O){var L=f[O],k=y[O];return typeof L=="number"&&typeof k=="number"?Math.round(L)===Math.round(k):L===k});I||R(f)}),G},[JSON.stringify(n),r,i,d,E]),{style:y}},mt={width:0,height:0,left:0,top:0};function Sa(e,t,n){return a.useMemo(function(){for(var r,i=new Map,l=t.get((r=e[0])===null||r===void 0?void 0:r.key)||mt,c=l.left+l.width,o=0;o<e.length;o+=1){var s=e[o].key,d=t.get(s);if(!d){var m;d=t.get((m=e[o-1])===null||m===void 0?void 0:m.key)||mt}var b=i.get(s)||ae({},d);b.right=c-b.left-b.width,i.set(s,b)}return i},[e.map(function(r){return r.key}).join("_"),t,n])}function ht(e,t){var n=a.useRef(e),r=a.useState({}),i=M(r,2),l=i[1];function c(o){var s=typeof o=="function"?o(n.current):o;s!==n.current&&t(s,n.current),n.current=s,l({})}return[n.current,c]}var ya=.1,gt=.01,Me=20,pt=Math.pow(.995,Me);function _a(e,t){var n=a.useState(),r=M(n,2),i=r[0],l=r[1],c=a.useState(0),o=M(c,2),s=o[0],d=o[1],m=a.useState(0),b=M(m,2),y=b[0],R=b[1],H=a.useState(),E=M(H,2),G=E[0],f=E[1],g=a.useRef();function I(w){var P=w.touches[0],v=P.screenX,_=P.screenY;l({x:v,y:_}),window.clearInterval(g.current)}function O(w){if(i){var P=w.touches[0],v=P.screenX,_=P.screenY;l({x:v,y:_});var C=v-i.x,h=_-i.y;t(C,h);var K=Date.now();d(K),R(K-s),f({x:C,y:h})}}function L(){if(i&&(l(null),f(null),G)){var w=G.x/y,P=G.y/y,v=Math.abs(w),_=Math.abs(P);if(Math.max(v,_)<ya)return;var C=w,h=P;g.current=window.setInterval(function(){if(Math.abs(C)<gt&&Math.abs(h)<gt){window.clearInterval(g.current);return}C*=pt,h*=pt,t(C*Me,h*Me)},Me)}}var k=a.useRef();function W(w){var P=w.deltaX,v=w.deltaY,_=0,C=Math.abs(P),h=Math.abs(v);C===h?_=k.current==="x"?P:v:C>h?(_=P,k.current="x"):(_=v,k.current="y"),t(-_,-_)&&w.preventDefault()}var N=a.useRef(null);N.current={onTouchStart:I,onTouchMove:O,onTouchEnd:L,onWheel:W},a.useEffect(function(){function w(C){N.current.onTouchStart(C)}function P(C){N.current.onTouchMove(C)}function v(C){N.current.onTouchEnd(C)}function _(C){N.current.onWheel(C)}return document.addEventListener("touchmove",P,{passive:!1}),document.addEventListener("touchend",v,{passive:!0}),e.current.addEventListener("touchstart",w,{passive:!0}),e.current.addEventListener("wheel",_,{passive:!1}),function(){document.removeEventListener("touchmove",P),document.removeEventListener("touchend",v)}},[])}function Tt(e){var t=a.useState(0),n=M(t,2),r=n[0],i=n[1],l=a.useRef(0),c=a.useRef();return c.current=e,Qt(function(){var o;(o=c.current)===null||o===void 0||o.call(c)},[r]),function(){l.current===r&&(l.current+=1,i(l.current))}}function xa(e){var t=a.useRef([]),n=a.useState({}),r=M(n,2),i=r[1],l=a.useRef(typeof e=="function"?e():e),c=Tt(function(){var s=l.current;t.current.forEach(function(d){s=d(s)}),t.current=[],l.current=s,i({})});function o(s){t.current.push(s),c()}return[l.current,o]}var $t={width:0,height:0,left:0,top:0,right:0};function Ca(e,t,n,r,i,l,c){var o=c.tabs,s=c.tabPosition,d=c.rtl,m,b,y;return["top","bottom"].includes(s)?(m="width",b=d?"right":"left",y=Math.abs(n)):(m="height",b="top",y=-n),a.useMemo(function(){if(!o.length)return[0,0];for(var R=o.length,H=R,E=0;E<R;E+=1){var G=e.get(o[E].key)||$t;if(Math.floor(G[b]+G[m])>Math.floor(y+t)){H=E-1;break}}for(var f=0,g=R-1;g>=0;g-=1){var I=e.get(o[g].key)||$t;if(I[b]<y){f=g+1;break}}return f>H?[0,-1]:[f,H]},[e,t,r,i,l,y,s,o.map(function(R){return R.key}).join("_"),d])}function St(e){var t;return e instanceof Map?(t={},e.forEach(function(n,r){t[r]=n})):t=e,JSON.stringify(t)}var wa="TABS_DQ";function Et(e){return String(e).replace(/"/g,wa)}function Xe(e,t,n,r){return!(!n||r||e===!1||e===void 0&&(t===!1||t===null))}var Rt=a.forwardRef(function(e,t){var n=e.prefixCls,r=e.editable,i=e.locale,l=e.style;return!r||r.showAdd===!1?null:a.createElement("button",{ref:t,type:"button",className:"".concat(n,"-nav-add"),style:l,"aria-label":(i==null?void 0:i.addAriaLabel)||"Add tab",onClick:function(o){r.onEdit("add",{event:o})}},r.addIcon||"+")}),yt=a.forwardRef(function(e,t){var n=e.position,r=e.prefixCls,i=e.extra;if(!i)return null;var l,c={};return Ve(i)==="object"&&!a.isValidElement(i)?c=i:c.right=i,n==="right"&&(l=c.right),n==="left"&&(l=c.left),l?a.createElement("div",{className:"".concat(r,"-extra-content"),ref:t},l):null}),Ta=a.forwardRef(function(e,t){var n=e.prefixCls,r=e.id,i=e.tabs,l=e.locale,c=e.mobile,o=e.more,s=o===void 0?{}:o,d=e.style,m=e.className,b=e.editable,y=e.tabBarGutter,R=e.rtl,H=e.removeAriaLabel,E=e.onTabClick,G=e.getPopupContainer,f=e.popupClassName,g=a.useState(!1),I=M(g,2),O=I[0],L=I[1],k=a.useState(null),W=M(k,2),N=W[0],w=W[1],P=s.icon,v=P===void 0?"More":P,_="".concat(r,"-more-popup"),C="".concat(n,"-dropdown"),h=N!==null?"".concat(_,"-").concat(N):null,K=l==null?void 0:l.dropdownAriaLabel;function j($,A){$.preventDefault(),$.stopPropagation(),b.onEdit("remove",{key:A,event:$})}var V=a.createElement(ua,{onClick:function(A){var X=A.key,U=A.domEvent;E(X,U),L(!1)},prefixCls:"".concat(C,"-menu"),id:_,tabIndex:-1,role:"listbox","aria-activedescendant":h,selectedKeys:[N],"aria-label":K!==void 0?K:"expanded dropdown"},i.map(function($){var A=$.closable,X=$.disabled,U=$.closeIcon,Y=$.key,te=$.label,ee=Xe(A,U,b,X);return a.createElement(va,{key:Y,id:"".concat(_,"-").concat(Y),role:"option","aria-controls":r&&"".concat(r,"-panel-").concat(Y),disabled:X},a.createElement("span",null,te),ee&&a.createElement("button",{type:"button","aria-label":H||"remove",tabIndex:0,className:"".concat(C,"-menu-item-remove"),onClick:function(ie){ie.stopPropagation(),j(ie,Y)}},U||b.removeIcon||"×"))}));function q($){for(var A=i.filter(function(ee){return!ee.disabled}),X=A.findIndex(function(ee){return ee.key===N})||0,U=A.length,Y=0;Y<U;Y+=1){X=(X+$+U)%U;var te=A[X];if(!te.disabled){w(te.key);return}}}function re($){var A=$.which;if(!O){[ve.DOWN,ve.SPACE,ve.ENTER].includes(A)&&(L(!0),$.preventDefault());return}switch(A){case ve.UP:q(-1),$.preventDefault();break;case ve.DOWN:q(1),$.preventDefault();break;case ve.ESC:L(!1);break;case ve.SPACE:case ve.ENTER:N!==null&&E(N,$);break}}a.useEffect(function(){var $=document.getElementById(h);$&&$.scrollIntoView&&$.scrollIntoView(!1)},[N]),a.useEffect(function(){O||w(null)},[O]);var p=F({},R?"marginRight":"marginLeft",y);i.length||(p.visibility="hidden",p.order=1);var Z=Q(F({},"".concat(C,"-rtl"),R)),se=c?null:a.createElement(fa,ce({prefixCls:C,overlay:V,visible:i.length?O:!1,onVisibleChange:L,overlayClassName:Q(Z,f),mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:G},s),a.createElement("button",{type:"button",className:"".concat(n,"-nav-more"),style:p,"aria-haspopup":"listbox","aria-controls":_,id:"".concat(r,"-more"),"aria-expanded":O,onKeyDown:re},v));return a.createElement("div",{className:Q("".concat(n,"-nav-operations"),m),style:d,ref:t},se,a.createElement(Rt,{prefixCls:n,locale:l,editable:b}))});const Ea=a.memo(Ta,function(e,t){return t.tabMoving});var Ra=function(t){var n=t.prefixCls,r=t.id,i=t.active,l=t.focus,c=t.tab,o=c.key,s=c.label,d=c.disabled,m=c.closeIcon,b=c.icon,y=t.closable,R=t.renderWrapper,H=t.removeAriaLabel,E=t.editable,G=t.onClick,f=t.onFocus,g=t.onBlur,I=t.onKeyDown,O=t.onMouseDown,L=t.onMouseUp,k=t.style,W=t.tabCount,N=t.currentPosition,w="".concat(n,"-tab"),P=Xe(y,m,E,d);function v(j){d||G(j)}function _(j){j.preventDefault(),j.stopPropagation(),E.onEdit("remove",{key:o,event:j})}var C=a.useMemo(function(){return b&&typeof s=="string"?a.createElement("span",null,s):s},[s,b]),h=a.useRef(null);a.useEffect(function(){l&&h.current&&h.current.focus()},[l]);var K=a.createElement("div",{key:o,"data-node-key":Et(o),className:Q(w,F(F(F(F({},"".concat(w,"-with-remove"),P),"".concat(w,"-active"),i),"".concat(w,"-disabled"),d),"".concat(w,"-focus"),l)),style:k,onClick:v},a.createElement("div",{ref:h,role:"tab","aria-selected":i,id:r&&"".concat(r,"-tab-").concat(o),className:"".concat(w,"-btn"),"aria-controls":r&&"".concat(r,"-panel-").concat(o),"aria-disabled":d,tabIndex:d?null:i?0:-1,onClick:function(V){V.stopPropagation(),v(V)},onKeyDown:I,onMouseDown:O,onMouseUp:L,onFocus:f,onBlur:g},l&&a.createElement("div",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"Tab ".concat(N," of ").concat(W)),b&&a.createElement("span",{className:"".concat(w,"-icon")},b),s&&C),P&&a.createElement("button",{type:"button",role:"tab","aria-label":H||"remove",tabIndex:i?0:-1,className:"".concat(w,"-remove"),onClick:function(V){V.stopPropagation(),_(V)}},m||E.removeIcon||"×"));return R?R(K):K},Pa=function(t,n){var r=t.offsetWidth,i=t.offsetHeight,l=t.offsetTop,c=t.offsetLeft,o=t.getBoundingClientRect(),s=o.width,d=o.height,m=o.left,b=o.top;return Math.abs(s-r)<1?[s,d,m-n.left,b-n.top]:[r,i,c,l]},Se=function(t){var n=t.current||{},r=n.offsetWidth,i=r===void 0?0:r,l=n.offsetHeight,c=l===void 0?0:l;if(t.current){var o=t.current.getBoundingClientRect(),s=o.width,d=o.height;if(Math.abs(s-i)<1)return[s,d]}return[i,c]},Ie=function(t,n){return t[n?0:1]},_t=a.forwardRef(function(e,t){var n=e.className,r=e.style,i=e.id,l=e.animated,c=e.activeKey,o=e.rtl,s=e.extra,d=e.editable,m=e.locale,b=e.tabPosition,y=e.tabBarGutter,R=e.children,H=e.onTabClick,E=e.onTabScroll,G=e.indicator,f=a.useContext(ze),g=f.prefixCls,I=f.tabs,O=a.useRef(null),L=a.useRef(null),k=a.useRef(null),W=a.useRef(null),N=a.useRef(null),w=a.useRef(null),P=a.useRef(null),v=b==="top"||b==="bottom",_=ht(0,function(T,u){v&&E&&E({direction:T>u?"left":"right"})}),C=M(_,2),h=C[0],K=C[1],j=ht(0,function(T,u){!v&&E&&E({direction:T>u?"top":"bottom"})}),V=M(j,2),q=V[0],re=V[1],p=a.useState([0,0]),Z=M(p,2),se=Z[0],$=Z[1],A=a.useState([0,0]),X=M(A,2),U=X[0],Y=X[1],te=a.useState([0,0]),ee=M(te,2),be=ee[0],ie=ee[1],me=a.useState([0,0]),he=M(me,2),z=he[0],oe=he[1],de=xa(new Map),Ce=M(de,2),Oe=Ce[0],It=Ce[1],we=Sa(I,Oe,U[0]),Ne=Ie(se,v),ye=Ie(U,v),De=Ie(be,v),Ue=Ie(z,v),Fe=Math.floor(Ne)<Math.floor(ye+De),ne=Fe?Ne-Ue:Ne-De,Mt="".concat(g,"-nav-operations-hidden"),ue=0,fe=0;v&&o?(ue=0,fe=Math.max(0,ye-ne)):(ue=Math.min(0,ne-ye),fe=0);function Be(T){return T<ue?ue:T>fe?fe:T}var ke=a.useRef(null),Lt=a.useState(),qe=M(Lt,2),Te=qe[0],Ye=qe[1];function Ae(){Ye(Date.now())}function He(){ke.current&&clearTimeout(ke.current)}_a(W,function(T,u){function x(D,B){D(function(J){var $e=Be(J+B);return $e})}return Fe?(v?x(K,T):x(re,u),He(),Ae(),!0):!1}),a.useEffect(function(){return He(),Te&&(ke.current=setTimeout(function(){Ye(0)},100)),He},[Te]);var zt=Ca(we,ne,v?h:q,ye,De,Ue,ae(ae({},e),{},{tabs:I})),Je=M(zt,2),Ot=Je[0],Nt=Je[1],Qe=Zt(function(){var T=arguments.length>0&&arguments[0]!==void 0?arguments[0]:c,u=we.get(T)||{width:0,height:0,left:0,right:0,top:0};if(v){var x=h;o?u.right<h?x=u.right:u.right+u.width>h+ne&&(x=u.right+u.width-ne):u.left<-h?x=-u.left:u.left+u.width>-h+ne&&(x=-(u.left+u.width-ne)),re(0),K(Be(x))}else{var D=q;u.top<-q?D=-u.top:u.top+u.height>-q+ne&&(D=-(u.top+u.height-ne)),K(0),re(Be(D))}}),Dt=a.useState(),Ze=M(Dt,2),ge=Ze[0],_e=Ze[1],Bt=a.useState(!1),et=M(Bt,2),kt=et[0],tt=et[1],le=I.filter(function(T){return!T.disabled}).map(function(T){return T.key}),pe=function(u){var x=le.indexOf(ge||c),D=le.length,B=(x+u+D)%D,J=le[B];_e(J)},at=function(u,x){var D=le.indexOf(u),B=I.find(function($e){return $e.key===u}),J=Xe(B==null?void 0:B.closable,B==null?void 0:B.closeIcon,d,B==null?void 0:B.disabled);J&&(x.preventDefault(),x.stopPropagation(),d.onEdit("remove",{key:u,event:x}),D===le.length-1?pe(-1):pe(1))},At=function(u,x){tt(!0),x.button===1&&at(u,x)},Ht=function(u){var x=u.code,D=o&&v,B=le[0],J=le[le.length-1];switch(x){case"ArrowLeft":{v&&pe(D?1:-1);break}case"ArrowRight":{v&&pe(D?-1:1);break}case"ArrowUp":{u.preventDefault(),v||pe(-1);break}case"ArrowDown":{u.preventDefault(),v||pe(1);break}case"Home":{u.preventDefault(),_e(B);break}case"End":{u.preventDefault(),_e(J);break}case"Enter":case"Space":{u.preventDefault(),H(ge??c,u);break}case"Backspace":case"Delete":{at(ge,u);break}}},Ee={};v?Ee[o?"marginRight":"marginLeft"]=y:Ee.marginTop=y;var nt=I.map(function(T,u){var x=T.key;return a.createElement(Ra,{id:i,prefixCls:g,key:x,tab:T,style:u===0?void 0:Ee,closable:T.closable,editable:d,active:x===c,focus:x===ge,renderWrapper:R,removeAriaLabel:m==null?void 0:m.removeAriaLabel,tabCount:le.length,currentPosition:u+1,onClick:function(B){H(x,B)},onKeyDown:Ht,onFocus:function(){kt||_e(x),Qe(x),Ae(),W.current&&(o||(W.current.scrollLeft=0),W.current.scrollTop=0)},onBlur:function(){_e(void 0)},onMouseDown:function(B){return At(x,B)},onMouseUp:function(){tt(!1)}})}),rt=function(){return It(function(){var u,x=new Map,D=(u=N.current)===null||u===void 0?void 0:u.getBoundingClientRect();return I.forEach(function(B){var J,$e=B.key,dt=(J=N.current)===null||J===void 0?void 0:J.querySelector('[data-node-key="'.concat(Et($e),'"]'));if(dt){var Vt=Pa(dt,D),Pe=M(Vt,4),Xt=Pe[0],Ut=Pe[1],Ft=Pe[2],qt=Pe[3];x.set($e,{width:Xt,height:Ut,left:Ft,top:qt})}}),x})};a.useEffect(function(){rt()},[I.map(function(T){return T.key}).join("_")]);var Re=Tt(function(){var T=Se(O),u=Se(L),x=Se(k);$([T[0]-u[0]-x[0],T[1]-u[1]-x[1]]);var D=Se(P);ie(D);var B=Se(w);oe(B);var J=Se(N);Y([J[0]-D[0],J[1]-D[1]]),rt()}),Gt=I.slice(0,Ot),Wt=I.slice(Nt+1),it=[].concat(vt(Gt),vt(Wt)),ot=we.get(c),jt=$a({activeTabOffset:ot,horizontal:v,indicator:G,rtl:o}),Kt=jt.style;a.useEffect(function(){Qe()},[c,ue,fe,St(ot),St(we),v]),a.useEffect(function(){Re()},[o]);var lt=!!it.length,xe="".concat(g,"-nav-wrap"),Ge,We,ct,st;return v?o?(We=h>0,Ge=h!==fe):(Ge=h<0,We=h!==ue):(ct=q<0,st=q!==ue),a.createElement(je,{onResize:Re},a.createElement("div",{ref:ea(t,O),role:"tablist","aria-orientation":v?"horizontal":"vertical",className:Q("".concat(g,"-nav"),n),style:r,onKeyDown:function(){Ae()}},a.createElement(yt,{ref:L,position:"left",extra:s,prefixCls:g}),a.createElement(je,{onResize:Re},a.createElement("div",{className:Q(xe,F(F(F(F({},"".concat(xe,"-ping-left"),Ge),"".concat(xe,"-ping-right"),We),"".concat(xe,"-ping-top"),ct),"".concat(xe,"-ping-bottom"),st)),ref:W},a.createElement(je,{onResize:Re},a.createElement("div",{ref:N,className:"".concat(g,"-nav-list"),style:{transform:"translate(".concat(h,"px, ").concat(q,"px)"),transition:Te?"none":void 0}},nt,a.createElement(Rt,{ref:P,prefixCls:g,locale:m,editable:d,style:ae(ae({},nt.length===0?void 0:Ee),{},{visibility:lt?"hidden":null})}),a.createElement("div",{className:Q("".concat(g,"-ink-bar"),F({},"".concat(g,"-ink-bar-animated"),l.inkBar)),style:Kt}))))),a.createElement(Ea,ce({},e,{removeAriaLabel:m==null?void 0:m.removeAriaLabel,ref:w,prefixCls:g,tabs:it,className:!lt&&Mt,tabMoving:!!Te})),a.createElement(yt,{ref:k,position:"right",extra:s,prefixCls:g})))}),Pt=a.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,i=e.style,l=e.id,c=e.active,o=e.tabKey,s=e.children;return a.createElement("div",{id:l&&"".concat(l,"-panel-").concat(o),role:"tabpanel",tabIndex:c?0:-1,"aria-labelledby":l&&"".concat(l,"-tab-").concat(o),"aria-hidden":!c,style:i,className:Q(n,c&&"".concat(n,"-active"),r),ref:t},s)}),Ia=["renderTabBar"],Ma=["label","key"],La=function(t){var n=t.renderTabBar,r=Le(t,Ia),i=a.useContext(ze),l=i.tabs;if(n){var c=ae(ae({},r),{},{panes:l.map(function(o){var s=o.label,d=o.key,m=Le(o,Ma);return a.createElement(Pt,ce({tab:s,key:d,tabKey:d},m))})});return n(c,_t)}return a.createElement(_t,r)},za=["key","forceRender","style","className","destroyInactiveTabPane"],Oa=function(t){var n=t.id,r=t.activeKey,i=t.animated,l=t.tabPosition,c=t.destroyInactiveTabPane,o=a.useContext(ze),s=o.prefixCls,d=o.tabs,m=i.tabPane,b="".concat(s,"-tabpane");return a.createElement("div",{className:Q("".concat(s,"-content-holder"))},a.createElement("div",{className:Q("".concat(s,"-content"),"".concat(s,"-content-").concat(l),F({},"".concat(s,"-content-animated"),m))},d.map(function(y){var R=y.key,H=y.forceRender,E=y.style,G=y.className,f=y.destroyInactiveTabPane,g=Le(y,za),I=R===r;return a.createElement(ta,ce({key:R,visible:I,forceRender:H,removeOnLeave:!!(c||f),leavedClassName:"".concat(b,"-hidden")},i.tabPaneMotion),function(O,L){var k=O.style,W=O.className;return a.createElement(Pt,ce({},g,{prefixCls:b,id:n,tabKey:R,animated:m,active:I,style:ae(ae({},E),k),className:Q(G,W),ref:L}))})})))};function Na(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{inkBar:!0,tabPane:!1},t;return e===!1?t={inkBar:!1,tabPane:!1}:e===!0?t={inkBar:!0,tabPane:!1}:t=ae({inkBar:!0},Ve(e)==="object"?e:{}),t.tabPaneMotion&&t.tabPane===void 0&&(t.tabPane=!0),!t.tabPaneMotion&&t.tabPane&&(t.tabPane=!1),t}var Da=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","more","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicator"],xt=0,Ba=a.forwardRef(function(e,t){var n=e.id,r=e.prefixCls,i=r===void 0?"rc-tabs":r,l=e.className,c=e.items,o=e.direction,s=e.activeKey,d=e.defaultActiveKey,m=e.editable,b=e.animated,y=e.tabPosition,R=y===void 0?"top":y,H=e.tabBarGutter,E=e.tabBarStyle,G=e.tabBarExtraContent,f=e.locale,g=e.more,I=e.destroyInactiveTabPane,O=e.renderTabBar,L=e.onChange,k=e.onTabClick,W=e.onTabScroll,N=e.getPopupContainer,w=e.popupClassName,P=e.indicator,v=Le(e,Da),_=a.useMemo(function(){return(c||[]).filter(function(z){return z&&Ve(z)==="object"&&"key"in z})},[c]),C=o==="rtl",h=Na(b),K=a.useState(!1),j=M(K,2),V=j[0],q=j[1];a.useEffect(function(){q(ma())},[]);var re=ft(function(){var z;return(z=_[0])===null||z===void 0?void 0:z.key},{value:s,defaultValue:d}),p=M(re,2),Z=p[0],se=p[1],$=a.useState(function(){return _.findIndex(function(z){return z.key===Z})}),A=M($,2),X=A[0],U=A[1];a.useEffect(function(){var z=_.findIndex(function(de){return de.key===Z});if(z===-1){var oe;z=Math.max(0,Math.min(X,_.length-1)),se((oe=_[z])===null||oe===void 0?void 0:oe.key)}U(z)},[_.map(function(z){return z.key}).join("_"),Z,X]);var Y=ft(null,{value:n}),te=M(Y,2),ee=te[0],be=te[1];a.useEffect(function(){n||(be("rc-tabs-".concat(xt)),xt+=1)},[]);function ie(z,oe){k==null||k(z,oe);var de=z!==Z;se(z),de&&(L==null||L(z))}var me={id:ee,activeKey:Z,animated:h,tabPosition:R,rtl:C,mobile:V},he=ae(ae({},me),{},{editable:m,locale:f,more:g,tabBarGutter:H,onTabClick:ie,onTabScroll:W,extra:G,style:E,panes:null,getPopupContainer:N,popupClassName:w,indicator:P});return a.createElement(ze.Provider,{value:{tabs:_,prefixCls:i}},a.createElement("div",ce({ref:t,id:n,className:Q(i,"".concat(i,"-").concat(R),F(F(F({},"".concat(i,"-mobile"),V),"".concat(i,"-editable"),m),"".concat(i,"-rtl"),C),l)},v),a.createElement(La,ce({},he,{renderTabBar:O})),a.createElement(Oa,ce({destroyInactiveTabPane:I},me,{animated:h}))))});const ka={motionAppear:!1,motionEnter:!0,motionLeave:!0};function Aa(e,t={inkBar:!0,tabPane:!1}){let n;return t===!1?n={inkBar:!1,tabPane:!1}:t===!0?n={inkBar:!0,tabPane:!0}:n=Object.assign({inkBar:!0},typeof t=="object"?t:{}),n.tabPane&&(n.tabPaneMotion=Object.assign(Object.assign({},ka),{motionName:aa(e,"switch")})),n}var Ha=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};function Ga(e){return e.filter(t=>t)}function Wa(e,t){if(e)return e.map(r=>{var i;const l=(i=r.destroyOnHidden)!==null&&i!==void 0?i:r.destroyInactiveTabPane;return Object.assign(Object.assign({},r),{destroyInactiveTabPane:l})});const n=na(t).map(r=>{if(a.isValidElement(r)){const{key:i,props:l}=r,c=l||{},{tab:o}=c,s=Ha(c,["tab"]);return Object.assign(Object.assign({key:String(i)},s),{label:o})}return null});return Ga(n)}const ja=e=>{const{componentCls:t,motionDurationSlow:n}=e;return[{[t]:{[`${t}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${n}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${n}`}}}}},[bt(e,"slide-up"),bt(e,"slide-down")]]},Ka=e=>{const{componentCls:t,tabsCardPadding:n,cardBg:r,cardGutter:i,colorBorderSecondary:l,itemSelectedColor:c}=e;return{[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:n,background:r,border:`${S(e.lineWidth)} ${e.lineType} ${l}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:c,background:e.colorBgContainer},[`${t}-tab-focus:has(${t}-tab-btn:focus-visible)`]:wt(e,-3),[`& ${t}-tab${t}-tab-focus ${t}-tab-btn:focus-visible`]:{outline:"none"},[`${t}-ink-bar`]:{visibility:"hidden"}},[`&${t}-top, &${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginLeft:{_skip_check_:!0,value:S(i)}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${S(e.borderRadiusLG)} ${S(e.borderRadiusLG)} 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${S(e.borderRadiusLG)} ${S(e.borderRadiusLG)}`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:S(i)}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${S(e.borderRadiusLG)} 0 0 ${S(e.borderRadiusLG)}`}},[`${t}-tab-active`]:{borderRightColor:{_skip_check_:!0,value:e.colorBgContainer}}}},[`&${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${S(e.borderRadiusLG)} ${S(e.borderRadiusLG)} 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},Va=e=>{const{componentCls:t,itemHoverColor:n,dropdownEdgeChildVerticalPadding:r}=e;return{[`${t}-dropdown`]:Object.assign(Object.assign({},Ct(e)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:e.zIndexPopup,display:"block","&-hidden":{display:"none"},[`${t}-dropdown-menu`]:{maxHeight:e.tabsDropdownHeight,margin:0,padding:`${S(r)} 0`,overflowX:"hidden",overflowY:"auto",textAlign:{_skip_check_:!0,value:"left"},listStyleType:"none",backgroundColor:e.colorBgContainer,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,"&-item":Object.assign(Object.assign({},oa),{display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${S(e.paddingXXS)} ${S(e.paddingSM)}`,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"> span":{flex:1,whiteSpace:"nowrap"},"&-remove":{flex:"none",marginLeft:{_skip_check_:!0,value:e.marginSM},color:e.colorIcon,fontSize:e.fontSizeSM,background:"transparent",border:0,cursor:"pointer","&:hover":{color:n}},"&:hover":{background:e.controlItemBgHover},"&-disabled":{"&, &:hover":{color:e.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}})}})}},Xa=e=>{const{componentCls:t,margin:n,colorBorderSecondary:r,horizontalMargin:i,verticalItemPadding:l,verticalItemMargin:c,calc:o}=e;return{[`${t}-top, ${t}-bottom`]:{flexDirection:"column",[`> ${t}-nav, > div > ${t}-nav`]:{margin:i,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${S(e.lineWidth)} ${e.lineType} ${r}`,content:"''"},[`${t}-ink-bar`]:{height:e.lineWidthBold,"&-animated":{transition:`width ${e.motionDurationSlow}, left ${e.motionDurationSlow},
|
|
2
2
|
right ${e.motionDurationSlow}`}},[`${t}-nav-wrap`]:{"&::before, &::after":{top:0,bottom:0,width:e.controlHeight},"&::before":{left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowLeft},"&::after":{right:{_skip_check_:!0,value:0},boxShadow:e.boxShadowTabsOverflowRight},[`&${t}-nav-wrap-ping-left::before`]:{opacity:1},[`&${t}-nav-wrap-ping-right::after`]:{opacity:1}}}},[`${t}-top`]:{[`> ${t}-nav,
|
|
3
3
|
> div > ${t}-nav`]:{"&::before":{bottom:0},[`${t}-ink-bar`]:{bottom:0}}},[`${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,marginTop:n,marginBottom:0,"&::before":{top:0},[`${t}-ink-bar`]:{top:0}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0}},[`${t}-left, ${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{flexDirection:"column",minWidth:o(e.controlHeight).mul(1.25).equal(),[`${t}-tab`]:{padding:l,textAlign:"center"},[`${t}-tab + ${t}-tab`]:{margin:c},[`${t}-nav-wrap`]:{flexDirection:"column","&::before, &::after":{right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},height:e.controlHeight},"&::before":{top:0,boxShadow:e.boxShadowTabsOverflowTop},"&::after":{bottom:0,boxShadow:e.boxShadowTabsOverflowBottom},[`&${t}-nav-wrap-ping-top::before`]:{opacity:1},[`&${t}-nav-wrap-ping-bottom::after`]:{opacity:1}},[`${t}-ink-bar`]:{width:e.lineWidthBold,"&-animated":{transition:`height ${e.motionDurationSlow}, top ${e.motionDurationSlow}`}},[`${t}-nav-list, ${t}-nav-operations`]:{flex:"1 0 auto",flexDirection:"column"}}},[`${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-ink-bar`]:{right:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{marginLeft:{_skip_check_:!0,value:S(o(e.lineWidth).mul(-1).equal())},borderLeft:{_skip_check_:!0,value:`${S(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingLeft:{_skip_check_:!0,value:e.paddingLG}}}},[`${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{order:1,[`${t}-ink-bar`]:{left:{_skip_check_:!0,value:0}}},[`> ${t}-content-holder, > div > ${t}-content-holder`]:{order:0,marginRight:{_skip_check_:!0,value:o(e.lineWidth).mul(-1).equal()},borderRight:{_skip_check_:!0,value:`${S(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},Ua=e=>{const{componentCls:t,cardPaddingSM:n,cardPaddingLG:r,cardHeightSM:i,cardHeightLG:l,horizontalItemPaddingSM:c,horizontalItemPaddingLG:o}=e;return{[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:c,fontSize:e.titleFontSizeSM}}},"&-large":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:o,fontSize:e.titleFontSizeLG,lineHeight:e.lineHeightLG}}}},[`${t}-card`]:{[`&${t}-small`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:n},[`${t}-nav-add`]:{minWidth:i,minHeight:i}},[`&${t}-bottom`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`0 0 ${S(e.borderRadius)} ${S(e.borderRadius)}`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${S(e.borderRadius)} ${S(e.borderRadius)} 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${S(e.borderRadius)} ${S(e.borderRadius)} 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${S(e.borderRadius)} 0 0 ${S(e.borderRadius)}`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:r},[`${t}-nav-add`]:{minWidth:l,minHeight:l}}}}}},Fa=e=>{const{componentCls:t,itemActiveColor:n,itemHoverColor:r,iconCls:i,tabsHorizontalItemMargin:l,horizontalItemPadding:c,itemSelectedColor:o,itemColor:s}=e,d=`${t}-tab`;return{[d]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:c,fontSize:e.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:s,"&-btn, &-remove":{"&:focus:not(:focus-visible), &:active":{color:n}},"&-btn":{outline:"none",transition:`all ${e.motionDurationSlow}`,[`${d}-icon:not(:last-child)`]:{marginInlineEnd:e.marginSM}},"&-remove":Object.assign({flex:"none",lineHeight:1,marginRight:{_skip_check_:!0,value:e.calc(e.marginXXS).mul(-1).equal()},marginLeft:{_skip_check_:!0,value:e.marginXS},color:e.colorIcon,fontSize:e.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}`,"&:hover":{color:e.colorTextHeading}},Ke(e)),"&:hover":{color:r},[`&${d}-active ${d}-btn`]:{color:o,textShadow:e.tabsActiveTextShadow},[`&${d}-focus ${d}-btn:focus-visible`]:wt(e),[`&${d}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed"},[`&${d}-disabled ${d}-btn, &${d}-disabled ${t}-remove`]:{"&:focus, &:active":{color:e.colorTextDisabled}},[`& ${d}-remove ${i}`]:{margin:0,verticalAlign:"middle"},[`${i}:not(:last-child)`]:{marginRight:{_skip_check_:!0,value:e.marginSM}}},[`${d} + ${d}`]:{margin:{_skip_check_:!0,value:l}}}},qa=e=>{const{componentCls:t,tabsHorizontalItemMarginRTL:n,iconCls:r,cardGutter:i,calc:l}=e;return{[`${t}-rtl`]:{direction:"rtl",[`${t}-nav`]:{[`${t}-tab`]:{margin:{_skip_check_:!0,value:n},[`${t}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[r]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:S(e.marginSM)}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:S(e.marginXS)},marginLeft:{_skip_check_:!0,value:S(l(e.marginXXS).mul(-1).equal())},[r]:{margin:0}}}},[`&${t}-left`]:{[`> ${t}-nav`]:{order:1},[`> ${t}-content-holder`]:{order:0}},[`&${t}-right`]:{[`> ${t}-nav`]:{order:0},[`> ${t}-content-holder`]:{order:1}},[`&${t}-card${t}-top, &${t}-card${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginRight:{_skip_check_:!0,value:i},marginLeft:{_skip_check_:!0,value:0}}}}},[`${t}-dropdown-rtl`]:{direction:"rtl"},[`${t}-menu-item`]:{[`${t}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},Ya=e=>{const{componentCls:t,tabsCardPadding:n,cardHeight:r,cardGutter:i,itemHoverColor:l,itemActiveColor:c,colorBorderSecondary:o}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},Ct(e)),{display:"flex",[`> ${t}-nav, > div > ${t}-nav`]:{position:"relative",display:"flex",flex:"none",alignItems:"center",[`${t}-nav-wrap`]:{position:"relative",display:"flex",flex:"auto",alignSelf:"stretch",overflow:"hidden",whiteSpace:"nowrap",transform:"translate(0)","&::before, &::after":{position:"absolute",zIndex:1,opacity:0,transition:`opacity ${e.motionDurationSlow}`,content:"''",pointerEvents:"none"}},[`${t}-nav-list`]:{position:"relative",display:"flex",transition:`opacity ${e.motionDurationSlow}`},[`${t}-nav-operations`]:{display:"flex",alignSelf:"stretch"},[`${t}-nav-operations-hidden`]:{position:"absolute",visibility:"hidden",pointerEvents:"none"},[`${t}-nav-more`]:{position:"relative",padding:n,background:"transparent",border:0,color:e.colorText,"&::after":{position:"absolute",right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:e.calc(e.controlHeightLG).div(8).equal(),transform:"translateY(100%)",content:"''"}},[`${t}-nav-add`]:Object.assign({minWidth:r,minHeight:r,marginLeft:{_skip_check_:!0,value:i},background:"transparent",border:`${S(e.lineWidth)} ${e.lineType} ${o}`,borderRadius:`${S(e.borderRadiusLG)} ${S(e.borderRadiusLG)} 0 0`,outline:"none",cursor:"pointer",color:e.colorText,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&:hover":{color:l},"&:active, &:focus:not(:focus-visible)":{color:c}},Ke(e,-3))},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"}}),Fa(e)),{[`${t}-content`]:{position:"relative",width:"100%"},[`${t}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${t}-tabpane`]:Object.assign(Object.assign({},Ke(e)),{"&-hidden":{display:"none"}})}),[`${t}-centered`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-nav-wrap`]:{[`&:not([class*='${t}-nav-wrap-ping']) > ${t}-nav-list`]:{margin:"auto"}}}}}},Ja=e=>{const{cardHeight:t,cardHeightSM:n,cardHeightLG:r,controlHeight:i,controlHeightLG:l}=e,c=t||l,o=n||i,s=r||l+8;return{zIndexPopup:e.zIndexPopupBase+50,cardBg:e.colorFillAlter,cardHeight:c,cardHeightSM:o,cardHeightLG:s,cardPadding:`${(c-e.fontHeight)/2-e.lineWidth}px ${e.padding}px`,cardPaddingSM:`${(o-e.fontHeight)/2-e.lineWidth}px ${e.paddingXS}px`,cardPaddingLG:`${(s-e.fontHeightLG)/2-e.lineWidth}px ${e.padding}px`,titleFontSize:e.fontSize,titleFontSizeLG:e.fontSizeLG,titleFontSizeSM:e.fontSize,inkBarColor:e.colorPrimary,horizontalMargin:`0 0 ${e.margin}px 0`,horizontalItemGutter:32,horizontalItemMargin:"",horizontalItemMarginRTL:"",horizontalItemPadding:`${e.paddingSM}px 0`,horizontalItemPaddingSM:`${e.paddingXS}px 0`,horizontalItemPaddingLG:`${e.padding}px 0`,verticalItemPadding:`${e.paddingXS}px ${e.paddingLG}px`,verticalItemMargin:`${e.margin}px 0 0 0`,itemColor:e.colorText,itemSelectedColor:e.colorPrimary,itemHoverColor:e.colorPrimaryHover,itemActiveColor:e.colorPrimaryActive,cardGutter:e.marginXXS/2}},Qa=ra("Tabs",e=>{const t=ia(e,{tabsCardPadding:e.cardPadding,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${S(e.horizontalItemGutter)}`,tabsHorizontalItemMarginRTL:`0 0 0 ${S(e.horizontalItemGutter)}`});return[Ua(t),qa(t),Xa(t),Va(t),Ka(t),Ya(t),ja(t)]},Ja),Za=()=>null;var en=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};const tn=a.forwardRef((e,t)=>{var n,r,i,l,c,o,s,d,m,b,y;const{type:R,className:H,rootClassName:E,size:G,onEdit:f,hideAdd:g,centered:I,addIcon:O,removeIcon:L,moreIcon:k,more:W,popupClassName:N,children:w,items:P,animated:v,style:_,indicatorSize:C,indicator:h,destroyInactiveTabPane:K,destroyOnHidden:j}=e,V=en(e,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","removeIcon","moreIcon","more","popupClassName","children","items","animated","style","indicatorSize","indicator","destroyInactiveTabPane","destroyOnHidden"]),{prefixCls:q}=V,{direction:re,tabs:p,getPrefixCls:Z,getPopupContainer:se}=a.useContext(la),$=Z("tabs",q),A=ca($),[X,U,Y]=Qa($,A),te=a.useRef(null);a.useImperativeHandle(t,()=>({nativeElement:te.current}));let ee;R==="editable-card"&&(ee={onEdit:(de,{key:Ce,event:Oe})=>{f==null||f(de==="add"?Oe:Ce,de)},removeIcon:(n=L??(p==null?void 0:p.removeIcon))!==null&&n!==void 0?n:a.createElement(sa,null),addIcon:(O??(p==null?void 0:p.addIcon))||a.createElement(pa,null),showAdd:g!==!0});const be=Z(),ie=da(G),me=Wa(P,w),he=Aa($,v),z=Object.assign(Object.assign({},p==null?void 0:p.style),_),oe={align:(r=h==null?void 0:h.align)!==null&&r!==void 0?r:(i=p==null?void 0:p.indicator)===null||i===void 0?void 0:i.align,size:(s=(c=(l=h==null?void 0:h.size)!==null&&l!==void 0?l:C)!==null&&c!==void 0?c:(o=p==null?void 0:p.indicator)===null||o===void 0?void 0:o.size)!==null&&s!==void 0?s:p==null?void 0:p.indicatorSize};return X(a.createElement(Ba,Object.assign({ref:te,direction:re,getPopupContainer:se},V,{items:me,className:Q({[`${$}-${ie}`]:ie,[`${$}-card`]:["card","editable-card"].includes(R),[`${$}-editable-card`]:R==="editable-card",[`${$}-centered`]:I},p==null?void 0:p.className,H,E,U,Y,A),popupClassName:Q(N,U,Y,A),style:z,editable:ee,more:Object.assign({icon:(y=(b=(m=(d=p==null?void 0:p.more)===null||d===void 0?void 0:d.icon)!==null&&m!==void 0?m:p==null?void 0:p.moreIcon)!==null&&b!==void 0?b:k)!==null&&y!==void 0?y:a.createElement(ba,null),transitionName:`${be}-slide-up`},W),prefixCls:$,animated:he,indicator:oe,destroyInactiveTabPane:j??K})))}),an=tn;an.TabPane=Za;export{an as T};
|