@cortex-agent/server 2026.10.27 → 2026.11.17
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/LICENSE +255 -21
- package/README.md +54 -7
- package/THIRD_PARTY_NOTICES.txt +1109 -278
- package/defaults/hooks/cortex-hook-api.mjs +2 -1
- package/defaults/plugins/cortex-system/skills/client-manage/SKILL.md +23 -15
- package/dist/agent-adapter/claude/remote-mcp-proxy.js +1 -1
- package/dist/chunks/{anthropic-messages-M3SMXACA.js → anthropic-messages-M732OMEE.js} +1 -1
- package/dist/chunks/{azure-openai-responses-76YWXHSB.js → azure-openai-responses-RAKTV6JY.js} +1 -1
- package/dist/chunks/bedrock-converse-stream-WNUGNZ27.js +62 -0
- package/dist/chunks/bowser-MLGGLXTZ.js +20 -0
- package/dist/chunks/child-runner-MO5RT6FH.js +4 -0
- package/dist/chunks/chunk-2ATTYCRJ.js +4 -0
- package/dist/chunks/{chunk-PXS5SHOV.js → chunk-2ROGTDM2.js} +1 -1
- package/dist/chunks/chunk-2VVRTJQN.js +4 -0
- package/dist/chunks/{chunk-OZGBWAT2.js → chunk-2YTYYG4K.js} +1 -1
- package/dist/chunks/chunk-3CPIMAYX.js +30 -0
- package/dist/chunks/{chunk-FXDIR3SQ.js → chunk-3CZPBLB3.js} +1 -1
- package/dist/chunks/chunk-3ORG56I5.js +8 -0
- package/dist/chunks/{chunk-LEUENXI2.js → chunk-4YLAGSDM.js} +1 -1
- package/dist/chunks/{chunk-HU6UIDEJ.js → chunk-53TQNK7Z.js} +1 -1
- package/dist/chunks/{chunk-4U7XXM4W.js → chunk-5A6CA5TM.js} +1 -1
- package/dist/chunks/{chunk-PBJ5MPPX.js → chunk-5DF5WJNM.js} +1 -1
- package/dist/chunks/chunk-5PAW3DEU.js +50 -0
- package/dist/chunks/{chunk-DXBSQXJL.js → chunk-7GAYFN52.js} +1 -1
- package/dist/chunks/chunk-7GEBDPTT.js +4 -0
- package/dist/chunks/{chunk-NR6U3WIZ.js → chunk-AFTBQRPN.js} +1 -1
- package/dist/chunks/chunk-AVXDF7AG.js +4 -0
- package/dist/chunks/chunk-BDLKI2NT.js +4 -0
- package/dist/chunks/{chunk-P52RMIYX.js → chunk-BJGYGEZO.js} +1 -1
- package/dist/chunks/chunk-BUZQBTV2.js +10 -0
- package/dist/chunks/chunk-BZDIAI5M.js +125 -0
- package/dist/chunks/{chunk-A34TDMIC.js → chunk-CEGSDGYQ.js} +1 -1
- package/dist/chunks/{chunk-Q7CE3UIE.js → chunk-CK3P345X.js} +69 -69
- package/dist/chunks/{chunk-YAEVYJAR.js → chunk-EE3WT25T.js} +1 -1
- package/dist/chunks/chunk-ETIBCA2S.js +4 -0
- package/dist/chunks/{chunk-REBNWCKI.js → chunk-FP7ML72L.js} +1 -1
- package/dist/chunks/{chunk-H2FP6DG4.js → chunk-H4QZ2P3Z.js} +1 -1
- package/dist/chunks/chunk-IA6IODY3.js +4 -0
- package/dist/chunks/{chunk-D3NXKK2L.js → chunk-IKLTEWA3.js} +1 -1
- package/dist/chunks/chunk-IYVZHGUQ.js +5 -0
- package/dist/chunks/chunk-JJDEQ6N2.js +4 -0
- package/dist/chunks/chunk-JKL3AK5D.js +106 -0
- package/dist/chunks/chunk-KDPY2YA3.js +129 -0
- package/dist/chunks/{chunk-SUFW24P4.js → chunk-KUDK7GPS.js} +1 -1
- package/dist/chunks/chunk-LAWOWPZX.js +363 -0
- package/dist/chunks/chunk-LEAV3FFG.js +4 -0
- package/dist/chunks/chunk-LP72AF56.js +45 -0
- package/dist/chunks/{chunk-KENCMLRE.js → chunk-LP7T32PW.js} +1 -1
- package/dist/chunks/chunk-LQTFDC67.js +4 -0
- package/dist/chunks/{chunk-HALUQ7ZF.js → chunk-MGYYSX7Y.js} +1 -1
- package/dist/chunks/chunk-NNBSSISP.js +4 -0
- package/dist/chunks/chunk-NNTQUHLO.js +877 -0
- package/dist/chunks/{chunk-PFMEUFJ7.js → chunk-NRD57ICT.js} +1 -1
- package/dist/chunks/{chunk-QWAQHHRS.js → chunk-NXZS5PEW.js} +1 -1
- package/dist/chunks/chunk-OFEPDNRB.js +4 -0
- package/dist/chunks/{chunk-6LZK4DDH.js → chunk-P7TVR4GY.js} +1 -1
- package/dist/chunks/chunk-QEL6CMLE.js +4 -0
- package/dist/chunks/chunk-QMSSIDRQ.js +70 -0
- package/dist/chunks/chunk-QUXPMNFQ.js +4 -0
- package/dist/chunks/chunk-R52AVUQB.js +5 -0
- package/dist/chunks/chunk-R6CGBSTC.js +22 -0
- package/dist/chunks/chunk-RA2BUYI3.js +6 -0
- package/dist/chunks/chunk-RDW6FRF5.js +4 -0
- package/dist/chunks/chunk-RF4JLYBX.js +6 -0
- package/dist/chunks/{chunk-YPK2CAIZ.js → chunk-ROVKOIHF.js} +1 -1
- package/dist/chunks/chunk-RYLSRII6.js +7 -0
- package/dist/chunks/{chunk-XNSSUVT6.js → chunk-S3MR37DL.js} +1 -1
- package/dist/chunks/chunk-SAJD4EKE.js +10 -0
- package/dist/chunks/chunk-SFX7V5O2.js +10 -0
- package/dist/chunks/chunk-STCNHXPJ.js +6 -0
- package/dist/chunks/{chunk-FOJQXLL2.js → chunk-SY2HV3V5.js} +1 -1
- package/dist/chunks/chunk-T73GHMFB.js +4 -0
- package/dist/chunks/chunk-TKFFQNAP.js +19 -0
- package/dist/chunks/chunk-TMV2ZDOI.js +18 -0
- package/dist/chunks/chunk-TX46YMGI.js +5 -0
- package/dist/chunks/chunk-U23S37TT.js +6 -0
- package/dist/chunks/chunk-UT6DGZDO.js +4 -0
- package/dist/chunks/{chunk-JERCOLY3.js → chunk-V35MFAUQ.js} +4 -6
- package/dist/chunks/chunk-V6X7Y62J.js +7 -0
- package/dist/chunks/chunk-V7K3KNDM.js +4 -0
- package/dist/chunks/{chunk-NAA7GF6Q.js → chunk-VBN2JSER.js} +1 -1
- package/dist/chunks/chunk-VIMHSW6J.js +4 -0
- package/dist/chunks/chunk-VK5J556O.js +4 -0
- package/dist/chunks/chunk-VPVSKJGX.js +6 -0
- package/dist/chunks/chunk-VTL3Z2OP.js +23 -0
- package/dist/chunks/{chunk-X2GYYRVM.js → chunk-VW7TLY3P.js} +1 -1
- package/dist/chunks/chunk-W34AK4SK.js +65 -0
- package/dist/chunks/chunk-W6AKCEYF.js +8 -0
- package/dist/chunks/chunk-WBSE3EF3.js +27 -0
- package/dist/chunks/chunk-WZYS2HAK.js +4 -0
- package/dist/chunks/{chunk-UNVEZI57.js → chunk-XEBEWR6Y.js} +1 -1
- package/dist/chunks/chunk-XPPZ6Y3X.js +8 -0
- package/dist/chunks/chunk-XYSXL3KX.js +4 -0
- package/dist/chunks/chunk-YAAKL3QS.js +80 -0
- package/dist/chunks/chunk-YB5LUJHS.js +65 -0
- package/dist/chunks/chunk-Z24SBRJK.js +4 -0
- package/dist/chunks/cloudflare-workers-ai-system-one-32JCFHI3.js +1 -1
- package/dist/chunks/context-GQKWKFRM.js +4 -0
- package/dist/chunks/cost-OOO32GLC.js +5 -0
- package/dist/chunks/dist-V5FRMUFH.js +4 -0
- package/dist/chunks/easter-egg-3d-CZH7AYZ7.js +4 -0
- package/dist/chunks/{event-streams-3JSFPOTZ.js → event-streams-AVE4MSS6.js} +1 -1
- package/dist/chunks/execution-repo-XXL4FXC6.js +4 -0
- package/dist/chunks/{executions-6ARGR3IO.js → executions-BN6OLLVM.js} +1 -1
- package/dist/chunks/file-H572PL2Z.js +4 -0
- package/dist/chunks/google-generative-ai-2G4ITOZL.js +4 -0
- package/dist/chunks/google-vertex-PACHCMRZ.js +4 -0
- package/dist/chunks/init-75F4V7SK.js +4 -0
- package/dist/chunks/{install-cli-4IZCSDFZ.js → install-cli-ABBD7DO5.js} +1 -1
- package/dist/chunks/{interaction-ask-G5T3H3CG.js → interaction-ask-EE2UPR3Q.js} +1 -1
- package/dist/chunks/{interaction-plan-E5V42MUP.js → interaction-plan-C446T2GZ.js} +1 -1
- package/dist/chunks/{llama-cpp-classify-OTXZWCMW.js → llama-cpp-classify-IA2F2H7A.js} +1 -1
- package/dist/chunks/local-client-stop-5YOLXGYT.js +4 -0
- package/dist/chunks/memory-cli-5SSF6YJM.js +11 -0
- package/dist/chunks/{mistral-conversations-34F66L3O.js → mistral-conversations-VHP63CDS.js} +1 -1
- package/dist/chunks/{model-resolver-N3DTAQ2S.js → model-resolver-FVJNZ6NA.js} +1 -1
- package/dist/chunks/{node-PTK2HCDV.js → node-DAO3SX7O.js} +1 -1
- package/dist/chunks/{openai-codex-2REL6UQU.js → openai-codex-JULCKICT.js} +1 -1
- package/dist/chunks/{openai-codex-responses-ZBVHREB3.js → openai-codex-responses-EHJ4AZBE.js} +1 -1
- package/dist/chunks/{openai-completions-VVIB26SH.js → openai-completions-CRAGQFCE.js} +1 -1
- package/dist/chunks/{openai-decisions-2N6ZRPZC.js → openai-decisions-P5UX7BWY.js} +1 -1
- package/dist/chunks/{openai-responses-735XA2ZX.js → openai-responses-IZ22NVQ7.js} +1 -1
- package/dist/chunks/{openrouter-images-3IKETHAC.js → openrouter-images-W2JAMSRH.js} +1 -1
- package/dist/chunks/{pi-messages-I3E4ZFHA.js → pi-messages-MJEEQU2R.js} +1 -1
- package/dist/chunks/{radius-HXRZVBDB.js → radius-ZM7ZRMXF.js} +1 -1
- package/dist/chunks/{remote-ops-BALZYKH6.js → remote-ops-O5CR4RGA.js} +1 -1
- package/dist/chunks/runner-S6R3US24.js +4 -0
- package/dist/chunks/schedule-cli-4T4YC5V5.js +4 -0
- package/dist/chunks/slack-2CGM4SMY.js +4 -0
- package/dist/chunks/start-ui-http-3D7QNHGB.js +43 -0
- package/dist/chunks/subagent-OZGUOV3J.js +4 -0
- package/dist/chunks/{time-KEHDQT6K.js → time-P6PE52WL.js} +1 -1
- package/dist/chunks/tool-shims-IA2WELXJ.js +4 -0
- package/dist/chunks/typesafe-system-one-6ULACYD4.js +1 -1
- package/dist/chunks/ui-board-H4INJD6C.js +5 -0
- package/dist/chunks/ui-decision-6HHNROIT.js +4 -0
- package/dist/chunks/{ui-file-GVH53O3X.js → ui-file-6PLXHSTB.js} +1 -1
- package/dist/chunks/ui-view-6MDU4GXY.js +4 -0
- package/dist/chunks/virtual-modules-OFI7QKYH.js +4 -0
- package/dist/chunks/waitpoint-W5M3BE55.js +5 -0
- package/dist/chunks/workers-GTFP75MS.js +4 -0
- package/dist/client-bundle/client.mjs +44 -31
- package/dist/client-bundle/manifest.json +2 -2
- package/dist/core/pi-sdk.js +1 -1
- package/dist/domain/auth/cc-auth-cli.js +1 -1
- package/dist/domain/mcp/bundled-server.js +1 -1
- package/dist/domain/mcp/feishu/client.js +4 -0
- package/dist/entry/app.js +201 -191
- package/dist/entry/browser-cli.js +10 -10
- package/dist/entry/cli.js +1 -1
- package/dist/entry/cortex-cli.js +1 -1
- package/dist/entry/daemon.js +4 -4
- package/dist/entry/hook-cli.js +2 -2
- package/dist/entry/production-app-bootstrap.js +1 -1
- package/dist/entry/production-evidence-export-cli.js +1 -1
- package/dist/entry/signal-cli.js +2 -2
- package/dist/tui/index.js +41 -41
- package/package.json +3 -3
- package/vendor/pi/dist/core/extensions/loader.js +1 -1
- package/vendor/pi/dist/extensions/codemode/execute.js +1 -1
- package/vendor/pi-ai/bedrock.js +1 -1
- package/vendor/pi-ai/oauth-load.js +1 -1
- package/web/dist/assets/{board-math-css-BmiXB1z5.js → board-math-css-BgIyUG-C.js} +1 -1
- package/web/dist/assets/index-9lyu2S6W.css +1 -0
- package/web/dist/assets/index-C-hpzey7.js +532 -0
- package/web/dist/assets/{index-XBRXpnC5.js → index-C2eMpcuI.js} +1 -1
- package/web/dist/assets/pdf-worker-DdZgk2mV.js +57 -0
- package/web/dist/assets/pdf.worker.min-Bz_KHX45.js +55 -0
- package/web/dist/index.html +2 -2
- package/web/dist/theme.css +22 -0
- package/dist/chunks/api-GM53PHIL-GFHEXXE6.js +0 -4
- package/dist/chunks/bedrock-converse-stream-5UPX4NTQ.js +0 -58
- package/dist/chunks/child-runner-3GHOWGZP.js +0 -4
- package/dist/chunks/chunk-2ZNLUY2U.js +0 -128
- package/dist/chunks/chunk-3F6WW7HR.js +0 -13
- package/dist/chunks/chunk-3OKHUVEM.js +0 -7
- package/dist/chunks/chunk-3THJYAEF.js +0 -4
- package/dist/chunks/chunk-3YHOCPQU.js +0 -10
- package/dist/chunks/chunk-4LLH5OWM.js +0 -10
- package/dist/chunks/chunk-52T37Y47.js +0 -8
- package/dist/chunks/chunk-7MU2AKNM.js +0 -4
- package/dist/chunks/chunk-AAA3UBIS.js +0 -4
- package/dist/chunks/chunk-ASYQHJVQ.js +0 -9
- package/dist/chunks/chunk-BGVHA2D4.js +0 -4
- package/dist/chunks/chunk-BKHDWCRT.js +0 -79
- package/dist/chunks/chunk-CQLH4UVX.js +0 -4
- package/dist/chunks/chunk-D6UA4BZC.js +0 -19
- package/dist/chunks/chunk-DGMNI4AO.js +0 -4
- package/dist/chunks/chunk-DHSA5ACV.js +0 -125
- package/dist/chunks/chunk-DPQPXBTP.js +0 -68
- package/dist/chunks/chunk-E7ZMYIY6.js +0 -30
- package/dist/chunks/chunk-EQITBTJC.js +0 -10
- package/dist/chunks/chunk-EXJA5RIX.js +0 -357
- package/dist/chunks/chunk-FH74NME3.js +0 -115
- package/dist/chunks/chunk-FOQ7VLIL.js +0 -17
- package/dist/chunks/chunk-J5DVLUKY.js +0 -6
- package/dist/chunks/chunk-JW2HFMTF.js +0 -4
- package/dist/chunks/chunk-KIGMAATV.js +0 -23
- package/dist/chunks/chunk-KIU5FAPY.js +0 -5
- package/dist/chunks/chunk-KIWMQPH7.js +0 -739
- package/dist/chunks/chunk-LMSQZ6TQ.js +0 -4
- package/dist/chunks/chunk-MEPASGPP.js +0 -6
- package/dist/chunks/chunk-MFAEUHMV.js +0 -28
- package/dist/chunks/chunk-NKDMKRSB.js +0 -68
- package/dist/chunks/chunk-NKXV32S6.js +0 -4
- package/dist/chunks/chunk-NVX5IPRN.js +0 -4
- package/dist/chunks/chunk-O3JW2F7D.js +0 -8
- package/dist/chunks/chunk-OISO5JXB.js +0 -4
- package/dist/chunks/chunk-OPYXNSMY.js +0 -4
- package/dist/chunks/chunk-PZMXHA6X.js +0 -9
- package/dist/chunks/chunk-QEOFEETJ.js +0 -4
- package/dist/chunks/chunk-REPYBMQS.js +0 -4
- package/dist/chunks/chunk-TAWLERZA.js +0 -4
- package/dist/chunks/chunk-TWAEABGG.js +0 -52
- package/dist/chunks/chunk-TZFLHVOQ.js +0 -7
- package/dist/chunks/chunk-UD3NMUHR.js +0 -12
- package/dist/chunks/chunk-W25TB3PU.js +0 -4
- package/dist/chunks/chunk-W5LGYSPZ.js +0 -4
- package/dist/chunks/chunk-XAJLZR7C.js +0 -28
- package/dist/chunks/chunk-XH6FMP3N.js +0 -71
- package/dist/chunks/chunk-XSRZHN63.js +0 -4
- package/dist/chunks/chunk-YG7OEPR2.js +0 -6
- package/dist/chunks/chunk-YHIWOGVL.js +0 -4
- package/dist/chunks/chunk-YZSHTWNM.js +0 -92
- package/dist/chunks/chunk-Z4H3VDHI.js +0 -4
- package/dist/chunks/client-XOGYH5UR.js +0 -4
- package/dist/chunks/config-DJSQI77S-335IXHSM.js +0 -4
- package/dist/chunks/context-VCQH5OB6.js +0 -4
- package/dist/chunks/cost-PGGFI7QJ.js +0 -5
- package/dist/chunks/dist-PUKMZ7GW.js +0 -4
- package/dist/chunks/easter-egg-3d-MO4MOEVF.js +0 -4
- package/dist/chunks/es5-VNTQPCKX.js +0 -4
- package/dist/chunks/execution-repo-ZLJTBWFC.js +0 -4
- package/dist/chunks/file-7BN7RCAY.js +0 -4
- package/dist/chunks/gateway-UCRPMR75.js +0 -36
- package/dist/chunks/google-generative-ai-2VXWLHWI.js +0 -4
- package/dist/chunks/google-vertex-UA36QP2U.js +0 -4
- package/dist/chunks/init-HA7FAQ73.js +0 -4
- package/dist/chunks/local-client-stop-SQRU7ZZM.js +0 -4
- package/dist/chunks/memory-cli-PYOILNN5.js +0 -11
- package/dist/chunks/models-L5VF4I5O-XXNJYQMQ.js +0 -4
- package/dist/chunks/runner-PLVZDGHB.js +0 -4
- package/dist/chunks/schedule-cli-OLASBBYJ.js +0 -4
- package/dist/chunks/slack-WAGSPZUX.js +0 -4
- package/dist/chunks/start-ui-http-QALT7C3P.js +0 -43
- package/dist/chunks/subagent-E3UC7ZHC.js +0 -4
- package/dist/chunks/tool-shims-Q6P6UXVC.js +0 -4
- package/dist/chunks/ui-board-4GYW6KKW.js +0 -5
- package/dist/chunks/ui-decision-U2FXSEC2.js +0 -4
- package/dist/chunks/ui-view-O7PLANT7.js +0 -4
- package/dist/chunks/virtual-modules-IDC5YKZJ.js +0 -4
- package/dist/chunks/waitpoint-2FGQBIAC.js +0 -5
- package/dist/chunks/workers-XN4PSTH6.js +0 -4
- package/vendor/aistatus/gateway-cli.js +0 -21
- package/web/dist/assets/index-DqWMdMkh.css +0 -1
- package/web/dist/assets/index-btKNdkvc.js +0 -525
- package/web/dist/assets/pdf-worker-Hp15W1QJ.js +0 -57
- package/web/dist/assets/pdf.worker.min-DnhTvCwe.js +0 -55
|
@@ -1,125 +0,0 @@
|
|
|
1
|
-
import { createRequire as __cortexCreateRequire } from 'node:module';
|
|
2
|
-
const require = __cortexCreateRequire(import.meta.url);
|
|
3
|
-
const __cortexPackageRoot = new URL("../../", import.meta.url);
|
|
4
|
-
import{A as bl,B as El,E as yl,f as tl,l as rl,m as nl,n as il,o as al,p as ol,t as xl,u as ml,v as hl,w as os,z as gl}from"./chunk-KIU5FAPY.js";import{a as xg}from"./chunk-B3XBQEFM.js";import{a as Wu,b as zu,c as Xu,d as Qu,e as Yu,f as Zu,g as Ju,k as ns,m as el}from"./chunk-CQLH4UVX.js";import{a as as,b as fl,c as pl,d as dl}from"./chunk-3F6WW7HR.js";import{fa as ul,ga as ll}from"./chunk-FOQ7VLIL.js";import{c as cl}from"./chunk-YG7OEPR2.js";import{a as sl}from"./chunk-7MU2AKNM.js";import{c as ga,d as is}from"./chunk-LMSQZ6TQ.js";import{a as ha,e as $u,h as rs}from"./chunk-OE4KH3NJ.js";import{e as Ku}from"./chunk-NAA7GF6Q.js";import{c as C,d as es,e as ts}from"./chunk-WHC7AYZD.js";var Fn=C((FF,gp)=>{"use strict";gp.exports=an;an.CAPTURING_PHASE=1;an.AT_TARGET=2;an.BUBBLING_PHASE=3;function an(e,t){if(this.type="",this.target=null,this.currentTarget=null,this.eventPhase=an.AT_TARGET,this.bubbles=!1,this.cancelable=!1,this.isTrusted=!1,this.defaultPrevented=!1,this.timeStamp=Date.now(),this._propagationStopped=!1,this._immediatePropagationStopped=!1,this._initialized=!0,this._dispatching=!1,e&&(this.type=e),t)for(var r in t)this[r]=t[r]}an.prototype=Object.create(Object.prototype,{constructor:{value:an},stopPropagation:{value:function(){this._propagationStopped=!0}},stopImmediatePropagation:{value:function(){this._propagationStopped=!0,this._immediatePropagationStopped=!0}},preventDefault:{value:function(){this.cancelable&&(this.defaultPrevented=!0)}},initEvent:{value:function(t,r,n){this._initialized=!0,!this._dispatching&&(this._propagationStopped=!1,this._immediatePropagationStopped=!1,this.defaultPrevented=!1,this.isTrusted=!1,this.target=null,this.type=t,this.bubbles=r,this.cancelable=n)}}})});var Qs=C((qF,Ep)=>{"use strict";var bp=Fn();Ep.exports=Xs;function Xs(){bp.call(this),this.view=null,this.detail=0}Xs.prototype=Object.create(bp.prototype,{constructor:{value:Xs},initUIEvent:{value:function(e,t,r,n,i){this.initEvent(e,t,r),this.view=n,this.detail=i}}})});var Zs=C((PF,Tp)=>{"use strict";var yp=Qs();Tp.exports=Ys;function Ys(){yp.call(this),this.screenX=this.screenY=this.clientX=this.clientY=0,this.ctrlKey=this.altKey=this.shiftKey=this.metaKey=!1,this.button=0,this.buttons=1,this.relatedTarget=null}Ys.prototype=Object.create(yp.prototype,{constructor:{value:Ys},initMouseEvent:{value:function(e,t,r,n,i,s,c,d,b,T,S,ce,fe,f,Be){switch(this.initEvent(e,t,r,n,i),this.screenX=s,this.screenY=c,this.clientX=d,this.clientY=b,this.ctrlKey=T,this.altKey=S,this.shiftKey=ce,this.metaKey=fe,this.button=f,f){case 0:this.buttons=1;break;case 1:this.buttons=4;break;case 2:this.buttons=2;break;default:this.buttons=0;break}this.relatedTarget=Be}},getModifierState:{value:function(e){switch(e){case"Alt":return this.altKey;case"Control":return this.ctrlKey;case"Shift":return this.shiftKey;case"Meta":return this.metaKey;default:return!1}}}})});var Qa=C((HF,Ip)=>{"use strict";Ip.exports=Xa;var jT=1,VT=3,GT=4,KT=5,$T=7,WT=8,zT=9,XT=11,QT=12,YT=13,ZT=14,JT=15,e_=17,t_=18,r_=19,n_=20,i_=21,a_=22,o_=23,s_=24,c_=25,u_=[null,"INDEX_SIZE_ERR",null,"HIERARCHY_REQUEST_ERR","WRONG_DOCUMENT_ERR","INVALID_CHARACTER_ERR",null,"NO_MODIFICATION_ALLOWED_ERR","NOT_FOUND_ERR","NOT_SUPPORTED_ERR","INUSE_ATTRIBUTE_ERR","INVALID_STATE_ERR","SYNTAX_ERR","INVALID_MODIFICATION_ERR","NAMESPACE_ERR","INVALID_ACCESS_ERR",null,"TYPE_MISMATCH_ERR","SECURITY_ERR","NETWORK_ERR","ABORT_ERR","URL_MISMATCH_ERR","QUOTA_EXCEEDED_ERR","TIMEOUT_ERR","INVALID_NODE_TYPE_ERR","DATA_CLONE_ERR"],l_=[null,"INDEX_SIZE_ERR (1): the index is not in the allowed range",null,"HIERARCHY_REQUEST_ERR (3): the operation would yield an incorrect nodes model","WRONG_DOCUMENT_ERR (4): the object is in the wrong Document, a call to importNode is required","INVALID_CHARACTER_ERR (5): the string contains invalid characters",null,"NO_MODIFICATION_ALLOWED_ERR (7): the object can not be modified","NOT_FOUND_ERR (8): the object can not be found here","NOT_SUPPORTED_ERR (9): this operation is not supported","INUSE_ATTRIBUTE_ERR (10): setAttributeNode called on owned Attribute","INVALID_STATE_ERR (11): the object is in an invalid state","SYNTAX_ERR (12): the string did not match the expected pattern","INVALID_MODIFICATION_ERR (13): the object can not be modified in this way","NAMESPACE_ERR (14): the operation is not allowed by Namespaces in XML","INVALID_ACCESS_ERR (15): the object does not support the operation or argument",null,"TYPE_MISMATCH_ERR (17): the type of the object does not match the expected type","SECURITY_ERR (18): the operation is insecure","NETWORK_ERR (19): a network error occurred","ABORT_ERR (20): the user aborted an operation","URL_MISMATCH_ERR (21): the given URL does not match another URL","QUOTA_EXCEEDED_ERR (22): the quota has been exceeded","TIMEOUT_ERR (23): a timeout occurred","INVALID_NODE_TYPE_ERR (24): the supplied node is invalid or has an invalid ancestor for this operation","DATA_CLONE_ERR (25): the object can not be cloned."],_p={INDEX_SIZE_ERR:jT,DOMSTRING_SIZE_ERR:2,HIERARCHY_REQUEST_ERR:VT,WRONG_DOCUMENT_ERR:GT,INVALID_CHARACTER_ERR:KT,NO_DATA_ALLOWED_ERR:6,NO_MODIFICATION_ALLOWED_ERR:$T,NOT_FOUND_ERR:WT,NOT_SUPPORTED_ERR:zT,INUSE_ATTRIBUTE_ERR:10,INVALID_STATE_ERR:XT,SYNTAX_ERR:QT,INVALID_MODIFICATION_ERR:YT,NAMESPACE_ERR:ZT,INVALID_ACCESS_ERR:JT,VALIDATION_ERR:16,TYPE_MISMATCH_ERR:e_,SECURITY_ERR:t_,NETWORK_ERR:r_,ABORT_ERR:n_,URL_MISMATCH_ERR:i_,QUOTA_EXCEEDED_ERR:a_,TIMEOUT_ERR:o_,INVALID_NODE_TYPE_ERR:s_,DATA_CLONE_ERR:c_};function Xa(e){Error.call(this),Error.captureStackTrace(this,this.constructor),this.code=e,this.message=l_[e],this.name=u_[e]}Xa.prototype.__proto__=Error.prototype;for(za in _p)Js={value:_p[za]},Object.defineProperty(Xa,za,Js),Object.defineProperty(Xa.prototype,za,Js);var Js,za});var Ya=C(wp=>{wp.isApiWritable=!globalThis.__domino_frozen__});var ve=C(ee=>{"use strict";var Se=Qa(),Le=Se,f_=Ya().isApiWritable;ee.NAMESPACE={HTML:"http://www.w3.org/1999/xhtml",XML:"http://www.w3.org/XML/1998/namespace",XMLNS:"http://www.w3.org/2000/xmlns/",MATHML:"http://www.w3.org/1998/Math/MathML",SVG:"http://www.w3.org/2000/svg",XLINK:"http://www.w3.org/1999/xlink"};ee.IndexSizeError=function(){throw new Se(Le.INDEX_SIZE_ERR)};ee.HierarchyRequestError=function(){throw new Se(Le.HIERARCHY_REQUEST_ERR)};ee.WrongDocumentError=function(){throw new Se(Le.WRONG_DOCUMENT_ERR)};ee.InvalidCharacterError=function(){throw new Se(Le.INVALID_CHARACTER_ERR)};ee.NoModificationAllowedError=function(){throw new Se(Le.NO_MODIFICATION_ALLOWED_ERR)};ee.NotFoundError=function(){throw new Se(Le.NOT_FOUND_ERR)};ee.NotSupportedError=function(){throw new Se(Le.NOT_SUPPORTED_ERR)};ee.InvalidStateError=function(){throw new Se(Le.INVALID_STATE_ERR)};ee.SyntaxError=function(){throw new Se(Le.SYNTAX_ERR)};ee.InvalidModificationError=function(){throw new Se(Le.INVALID_MODIFICATION_ERR)};ee.NamespaceError=function(){throw new Se(Le.NAMESPACE_ERR)};ee.InvalidAccessError=function(){throw new Se(Le.INVALID_ACCESS_ERR)};ee.TypeMismatchError=function(){throw new Se(Le.TYPE_MISMATCH_ERR)};ee.SecurityError=function(){throw new Se(Le.SECURITY_ERR)};ee.NetworkError=function(){throw new Se(Le.NETWORK_ERR)};ee.AbortError=function(){throw new Se(Le.ABORT_ERR)};ee.UrlMismatchError=function(){throw new Se(Le.URL_MISMATCH_ERR)};ee.QuotaExceededError=function(){throw new Se(Le.QUOTA_EXCEEDED_ERR)};ee.TimeoutError=function(){throw new Se(Le.TIMEOUT_ERR)};ee.InvalidNodeTypeError=function(){throw new Se(Le.INVALID_NODE_TYPE_ERR)};ee.DataCloneError=function(){throw new Se(Le.DATA_CLONE_ERR)};ee.nyi=function(){throw new Error("NotYetImplemented")};ee.shouldOverride=function(){throw new Error("Abstract function; should be overriding in subclass.")};ee.assert=function(e,t){if(!e)throw new Error("Assertion failed: "+(t||"")+`
|
|
5
|
-
`+new Error().stack)};ee.expose=function(e,t){for(var r in e)Object.defineProperty(t.prototype,r,{value:e[r],writable:f_})};ee.merge=function(e,t){for(var r in t)e[r]=t[r]};ee.documentOrder=function(e,t){return 3-(e.compareDocumentPosition(t)&6)};ee.toASCIILowerCase=function(e){return e.replace(/[A-Z]+/g,function(t){return t.toLowerCase()})};ee.toASCIIUpperCase=function(e){return e.replace(/[a-z]+/g,function(t){return t.toUpperCase()})}});var ec=C((jF,vp)=>{"use strict";var on=Fn(),p_=Zs(),d_=ve();vp.exports=Sp;function Sp(){}Sp.prototype={addEventListener:function(t,r,n){if(r){n===void 0&&(n=!1),this._listeners||(this._listeners=Object.create(null)),this._listeners[t]||(this._listeners[t]=[]);for(var i=this._listeners[t],s=0,c=i.length;s<c;s++){var d=i[s];if(d.listener===r&&d.capture===n)return}var b={listener:r,capture:n};typeof r=="function"&&(b.f=r),i.push(b)}},removeEventListener:function(t,r,n){if(n===void 0&&(n=!1),this._listeners){var i=this._listeners[t];if(i)for(var s=0,c=i.length;s<c;s++){var d=i[s];if(d.listener===r&&d.capture===n){i.length===1?this._listeners[t]=void 0:i.splice(s,1);return}}}},dispatchEvent:function(t){return this._dispatchEvent(t,!1)},_dispatchEvent:function(t,r){typeof r!="boolean"&&(r=!1);function n(T,S){var ce=S.type,fe=S.eventPhase;if(S.currentTarget=T,fe!==on.CAPTURING_PHASE&&T._handlers&&T._handlers[ce]){var f=T._handlers[ce],Be;if(typeof f=="function")Be=f.call(S.currentTarget,S);else{var xe=f.handleEvent;if(typeof xe!="function")throw new TypeError("handleEvent property of event handler object isnot a function.");Be=xe.call(f,S)}S.type==="mouseover"?Be===!0&&S.preventDefault():Be===!1&&S.preventDefault()}var B=T._listeners&&T._listeners[ce];if(B){B=B.slice();for(var xr=0,W=B.length;xr<W;xr++){if(S._immediatePropagationStopped)return;var De=B[xr];if(!(fe===on.CAPTURING_PHASE&&!De.capture||fe===on.BUBBLING_PHASE&&De.capture))if(De.f)De.f.call(S.currentTarget,S);else{var je=De.listener.handleEvent;if(typeof je!="function")throw new TypeError("handleEvent property of event listener object is not a function.");je.call(De.listener,S)}}}}(!t._initialized||t._dispatching)&&d_.InvalidStateError(),t.isTrusted=r,t._dispatching=!0,t.target=this;for(var i=[],s=this.parentNode;s;s=s.parentNode)i.push(s);t.eventPhase=on.CAPTURING_PHASE;for(var c=i.length-1;c>=0&&(n(i[c],t),!t._propagationStopped);c--);if(t._propagationStopped||(t.eventPhase=on.AT_TARGET,n(this,t)),t.bubbles&&!t._propagationStopped){t.eventPhase=on.BUBBLING_PHASE;for(var d=0,b=i.length;d<b&&(n(i[d],t),!t._propagationStopped);d++);}if(t._dispatching=!1,t.eventPhase=on.AT_TARGET,t.currentTarget=null,r&&!t.defaultPrevented&&t instanceof p_)switch(t.type){case"mousedown":this._armed={x:t.clientX,y:t.clientY,t:t.timeStamp};break;case"mouseout":case"mouseover":this._armed=null;break;case"mouseup":this._isClick(t)&&this._doClick(t),this._armed=null;break}return!t.defaultPrevented},_isClick:function(e){return this._armed!==null&&e.type==="mouseup"&&e.isTrusted&&e.button===0&&e.timeStamp-this._armed.t<1e3&&Math.abs(e.clientX-this._armed.x)<10&&Math.abs(e.clientY-this._armed.Y)<10},_doClick:function(e){if(!this._click_in_progress){this._click_in_progress=!0;for(var t=this;t&&!t._post_click_activation_steps;)t=t.parentNode;t&&t._pre_click_activation_steps&&t._pre_click_activation_steps();var r=this.ownerDocument.createEvent("MouseEvent");r.initMouseEvent("click",!0,!0,this.ownerDocument.defaultView,1,e.screenX,e.screenY,e.clientX,e.clientY,e.ctrlKey,e.altKey,e.shiftKey,e.metaKey,e.button,null);var n=this._dispatchEvent(r,!0);t&&(n?t._post_click_activation_steps&&t._post_click_activation_steps(r):t._cancelled_activation_steps&&t._cancelled_activation_steps())}},_setEventHandler:function(t,r){this._handlers||(this._handlers=Object.create(null)),this._handlers[t]=r},_getEventHandler:function(t){return this._handlers&&this._handlers[t]||null}}});var tc=C((VF,Np)=>{"use strict";var fr=ve(),vt=Np.exports={valid:function(e){return fr.assert(e,"list falsy"),fr.assert(e._previousSibling,"previous falsy"),fr.assert(e._nextSibling,"next falsy"),!0},insertBefore:function(e,t){fr.assert(vt.valid(e)&&vt.valid(t));var r=e,n=e._previousSibling,i=t,s=t._previousSibling;r._previousSibling=s,n._nextSibling=i,s._nextSibling=r,i._previousSibling=n,fr.assert(vt.valid(e)&&vt.valid(t))},replace:function(e,t){fr.assert(vt.valid(e)&&(t===null||vt.valid(t))),t!==null&&vt.insertBefore(t,e),vt.remove(e),fr.assert(vt.valid(e)&&(t===null||vt.valid(t)))},remove:function(e){fr.assert(vt.valid(e));var t=e._previousSibling;if(t!==e){var r=e._nextSibling;t._nextSibling=r,r._previousSibling=t,e._previousSibling=e._nextSibling=e,fr.assert(vt.valid(e))}}}});var rc=C((GF,Mp)=>{"use strict";Mp.exports={serializeOne:y_,\u0275escapeMatchingClosingTag:Lp,\u0275escapeClosingCommentTag:Dp,\u0275escapeProcessingInstructionContent:kp};var Op=ve(),sn=Op.NAMESPACE,Ap={STYLE:!0,SCRIPT:!0,XMP:!0,IFRAME:!0,NOEMBED:!0,NOFRAMES:!0,PLAINTEXT:!0},x_={area:!0,base:!0,basefont:!0,bgsound:!0,br:!0,col:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0},m_={},Cp=/[&<>\u00A0]/g,Rp=/[&"<>\u00A0]/g;function h_(e){return Cp.test(e)?e.replace(Cp,t=>{switch(t){case"&":return"&";case"<":return"<";case">":return">";case"\xA0":return" "}}):e}function g_(e){return Rp.test(e)?e.replace(Rp,t=>{switch(t){case"<":return"<";case">":return">";case"&":return"&";case'"':return""";case"\xA0":return" "}}):e}function b_(e){var t=e.namespaceURI;return t?t===sn.XML?"xml:"+e.localName:t===sn.XLINK?"xlink:"+e.localName:t===sn.XMLNS?e.localName==="xmlns"?"xmlns":"xmlns:"+e.localName:e.name:e.localName}function Lp(e,t){let r="</"+t;if(!e.toLowerCase().includes(r))return e;let n=[...e],i=e.matchAll(new RegExp(r,"ig"));for(let s of i)n[s.index]="<";return n.join("")}var E_=/--!?>/;function Dp(e){return E_.test(e)?e.replace(/(--\!?)>/g,"$1>"):e}function kp(e){return e.includes(">")?e.replaceAll(">",">"):e}function y_(e,t){var r="";switch(e.nodeType){case 1:var n=e.namespaceURI,i=n===sn.HTML,s=i||n===sn.SVG||n===sn.MATHML?e.localName:e.tagName;r+="<"+s;for(var c=0,d=e._numattrs;c<d;c++){var b=e._attr(c);r+=" "+b_(b),b.value!==void 0&&(r+='="'+g_(b.value)+'"')}if(r+=">",!(i&&x_[s])){var T=e.serialize();Ap[s.toUpperCase()]&&(T=Lp(T,s)),i&&m_[s]&&T.charAt(0)===`
|
|
6
|
-
`&&(r+=`
|
|
7
|
-
`),r+=T,r+="</"+s+">"}break;case 3:case 4:var S;t.nodeType===1&&t.namespaceURI===sn.HTML?S=t.tagName:S="",Ap[S]||S==="NOSCRIPT"&&t.ownerDocument._scripting_enabled?r+=e.data:r+=h_(e.data);break;case 8:r+="<!--"+Dp(e.data)+"-->";break;case 7:let ce=kp(e.data);r+="<?"+e.target+" "+ce+"?>";break;case 10:r+="<!DOCTYPE "+e.name,r+=">";break;default:Op.InvalidStateError()}return r}});var Ke=C((KF,Bp)=>{"use strict";Bp.exports=ge;var Up=ec(),Za=tc(),Fp=rc(),te=ve();function ge(){Up.call(this),this.parentNode=null,this._nextSibling=this._previousSibling=this,this._index=void 0}var st=ge.ELEMENT_NODE=1,nc=ge.ATTRIBUTE_NODE=2,Ja=ge.TEXT_NODE=3,T_=ge.CDATA_SECTION_NODE=4,__=ge.ENTITY_REFERENCE_NODE=5,ic=ge.ENTITY_NODE=6,qp=ge.PROCESSING_INSTRUCTION_NODE=7,Pp=ge.COMMENT_NODE=8,Ni=ge.DOCUMENT_NODE=9,Nt=ge.DOCUMENT_TYPE_NODE=10,Pr=ge.DOCUMENT_FRAGMENT_NODE=11,ac=ge.NOTATION_NODE=12,oc=ge.DOCUMENT_POSITION_DISCONNECTED=1,sc=ge.DOCUMENT_POSITION_PRECEDING=2,cc=ge.DOCUMENT_POSITION_FOLLOWING=4,Hp=ge.DOCUMENT_POSITION_CONTAINS=8,uc=ge.DOCUMENT_POSITION_CONTAINED_BY=16,lc=ge.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC=32;ge.prototype=Object.create(Up.prototype,{baseURI:{get:te.nyi},parentElement:{get:function(){return this.parentNode&&this.parentNode.nodeType===st?this.parentNode:null}},hasChildNodes:{value:te.shouldOverride},firstChild:{get:te.shouldOverride},lastChild:{get:te.shouldOverride},isConnected:{get:function(){let e=this;for(;e!=null;){if(e.nodeType===ge.DOCUMENT_NODE)return!0;e=e.parentNode,e!=null&&e.nodeType===ge.DOCUMENT_FRAGMENT_NODE&&(e=e.host)}return!1}},previousSibling:{get:function(){var e=this.parentNode;return!e||this===e.firstChild?null:this._previousSibling}},nextSibling:{get:function(){var e=this.parentNode,t=this._nextSibling;return!e||t===e.firstChild?null:t}},textContent:{get:function(){return null},set:function(e){}},innerText:{get:function(){return null},set:function(e){}},_countChildrenOfType:{value:function(e){for(var t=0,r=this.firstChild;r!==null;r=r.nextSibling)r.nodeType===e&&t++;return t}},_ensureInsertValid:{value:function(t,r,n){var i=this,s,c;if(!t.nodeType)throw new TypeError("not a node");switch(i.nodeType){case Ni:case Pr:case st:break;default:te.HierarchyRequestError()}switch(t.isAncestor(i)&&te.HierarchyRequestError(),(r!==null||!n)&&r.parentNode!==i&&te.NotFoundError(),t.nodeType){case Pr:case Nt:case st:case Ja:case qp:case Pp:break;default:te.HierarchyRequestError()}if(i.nodeType===Ni)switch(t.nodeType){case Ja:te.HierarchyRequestError();break;case Pr:switch(t._countChildrenOfType(Ja)>0&&te.HierarchyRequestError(),t._countChildrenOfType(st)){case 0:break;case 1:if(r!==null)for(n&&r.nodeType===Nt&&te.HierarchyRequestError(),c=r.nextSibling;c!==null;c=c.nextSibling)c.nodeType===Nt&&te.HierarchyRequestError();s=i._countChildrenOfType(st),n?s>0&&te.HierarchyRequestError():(s>1||s===1&&r.nodeType!==st)&&te.HierarchyRequestError();break;default:te.HierarchyRequestError()}break;case st:if(r!==null)for(n&&r.nodeType===Nt&&te.HierarchyRequestError(),c=r.nextSibling;c!==null;c=c.nextSibling)c.nodeType===Nt&&te.HierarchyRequestError();s=i._countChildrenOfType(st),n?s>0&&te.HierarchyRequestError():(s>1||s===1&&r.nodeType!==st)&&te.HierarchyRequestError();break;case Nt:if(r===null)i._countChildrenOfType(st)&&te.HierarchyRequestError();else for(c=i.firstChild;c!==null&&c!==r;c=c.nextSibling)c.nodeType===st&&te.HierarchyRequestError();s=i._countChildrenOfType(Nt),n?s>0&&te.HierarchyRequestError():(s>1||s===1&&r.nodeType!==Nt)&&te.HierarchyRequestError();break}else t.nodeType===Nt&&te.HierarchyRequestError()}},insertBefore:{value:function(t,r){var n=this;n._ensureInsertValid(t,r,!0);var i=r;return i===t&&(i=t.nextSibling),n.doc.adoptNode(t),t._insertOrReplace(n,i,!1),t}},appendChild:{value:function(e){return this.insertBefore(e,null)}},_appendChild:{value:function(e){e._insertOrReplace(this,null,!1)}},removeChild:{value:function(t){var r=this;if(!t.nodeType)throw new TypeError("not a node");return t.parentNode!==r&&te.NotFoundError(),t.remove(),t}},replaceChild:{value:function(t,r){var n=this;return n._ensureInsertValid(t,r,!1),t.doc!==n.doc&&n.doc.adoptNode(t),t._insertOrReplace(n,r,!0),r}},contains:{value:function(t){return t===null?!1:this===t?!0:(this.compareDocumentPosition(t)&uc)!==0}},compareDocumentPosition:{value:function(t){if(this===t)return 0;if(this.doc!==t.doc||this.rooted!==t.rooted)return oc+lc;for(var r=[],n=[],i=this;i!==null;i=i.parentNode)r.push(i);for(i=t;i!==null;i=i.parentNode)n.push(i);if(r.reverse(),n.reverse(),r[0]!==n[0])return oc+lc;i=Math.min(r.length,n.length);for(var s=1;s<i;s++)if(r[s]!==n[s])return r[s].index<n[s].index?cc:sc;return r.length<n.length?cc+uc:sc+Hp}},isSameNode:{value:function(t){return this===t}},isEqualNode:{value:function(t){if(!t||t.nodeType!==this.nodeType||!this.isEqual(t))return!1;for(var r=this.firstChild,n=t.firstChild;r&&n;r=r.nextSibling,n=n.nextSibling)if(!r.isEqualNode(n))return!1;return r===null&&n===null}},cloneNode:{value:function(e){var t=this.clone();if(e)for(var r=this.firstChild;r!==null;r=r.nextSibling)t._appendChild(r.cloneNode(!0));return t}},lookupPrefix:{value:function(t){var r;if(t===""||t===null||t===void 0)return null;switch(this.nodeType){case st:return this._lookupNamespacePrefix(t,this);case Ni:return r=this.documentElement,r?r.lookupPrefix(t):null;case ic:case ac:case Pr:case Nt:return null;case nc:return r=this.ownerElement,r?r.lookupPrefix(t):null;default:return r=this.parentElement,r?r.lookupPrefix(t):null}}},lookupNamespaceURI:{value:function(t){(t===""||t===void 0)&&(t=null);var r;switch(this.nodeType){case st:return te.shouldOverride();case Ni:return r=this.documentElement,r?r.lookupNamespaceURI(t):null;case ic:case ac:case Nt:case Pr:return null;case nc:return r=this.ownerElement,r?r.lookupNamespaceURI(t):null;default:return r=this.parentElement,r?r.lookupNamespaceURI(t):null}}},isDefaultNamespace:{value:function(t){(t===""||t===void 0)&&(t=null);var r=this.lookupNamespaceURI(null);return r===t}},index:{get:function(){var e=this.parentNode;if(this===e.firstChild)return 0;var t=e.childNodes;if(this._index===void 0||t[this._index]!==this){for(var r=0;r<t.length;r++)t[r]._index=r;te.assert(t[this._index]===this)}return this._index}},isAncestor:{value:function(e){if(this.doc!==e.doc||this.rooted!==e.rooted)return!1;for(var t=e;t;t=t.parentNode)if(t===this)return!0;return!1}},ensureSameDoc:{value:function(e){e.ownerDocument===null?e.ownerDocument=this.doc:e.ownerDocument!==this.doc&&te.WrongDocumentError()}},removeChildren:{value:te.shouldOverride},_insertOrReplace:{value:function(t,r,n){var i=this,s,c;if(i.nodeType===Pr&&i.rooted&&te.HierarchyRequestError(),t._childNodes&&(s=r===null?t._childNodes.length:r.index,i.parentNode===t)){var d=i.index;d<s&&s--}n&&(r.rooted&&r.doc.mutateRemove(r),r.parentNode=null);var b=r;b===null&&(b=t.firstChild);var T=i.rooted&&t.rooted;if(i.nodeType===Pr){for(var S=[0,n?1:0],ce,fe=i.firstChild;fe!==null;fe=ce)ce=fe.nextSibling,S.push(fe),fe.parentNode=t;var f=S.length;if(n?Za.replace(b,f>2?S[2]:null):f>2&&b!==null&&Za.insertBefore(S[2],b),t._childNodes)for(S[0]=r===null?t._childNodes.length:r._index,t._childNodes.splice.apply(t._childNodes,S),c=2;c<f;c++)S[c]._index=S[0]+(c-2);else t._firstChild===r&&(f>2?t._firstChild=S[2]:n&&(t._firstChild=null));if(i._childNodes?i._childNodes.length=0:i._firstChild=null,t.rooted)for(t.modify(),c=2;c<f;c++)t.doc.mutateInsert(S[c])}else{if(r===i)return;T?i._remove():i.parentNode&&i.remove(),i.parentNode=t,n?(Za.replace(b,i),t._childNodes?(i._index=s,t._childNodes[s]=i):t._firstChild===r&&(t._firstChild=i)):(b!==null&&Za.insertBefore(i,b),t._childNodes?(i._index=s,t._childNodes.splice(s,0,i)):t._firstChild===r&&(t._firstChild=i)),T?(t.modify(),t.doc.mutateMove(i)):t.rooted&&(t.modify(),t.doc.mutateInsert(i))}}},lastModTime:{get:function(){return this._lastModTime||(this._lastModTime=this.doc.modclock),this._lastModTime}},modify:{value:function(){if(this.doc.modclock)for(var e=++this.doc.modclock,t=this;t;t=t.parentElement)t._lastModTime&&(t._lastModTime=e)}},doc:{get:function(){return this.ownerDocument||this}},rooted:{get:function(){return!!this._nid}},normalize:{value:function(){for(var e,t=this.firstChild;t!==null;t=e)if(e=t.nextSibling,t.normalize&&t.normalize(),t.nodeType===ge.TEXT_NODE){if(t.nodeValue===""){this.removeChild(t);continue}var r=t.previousSibling;r!==null&&r.nodeType===ge.TEXT_NODE&&(r.appendData(t.nodeValue),this.removeChild(t))}}},serialize:{value:function(){if(this._innerHTML)return this._innerHTML;for(var e="",t=this.firstChild;t!==null;t=t.nextSibling)e+=Fp.serializeOne(t,this);return e}},outerHTML:{get:function(){return Fp.serializeOne(this,{nodeType:0})},set:te.nyi},ELEMENT_NODE:{value:st},ATTRIBUTE_NODE:{value:nc},TEXT_NODE:{value:Ja},CDATA_SECTION_NODE:{value:T_},ENTITY_REFERENCE_NODE:{value:__},ENTITY_NODE:{value:ic},PROCESSING_INSTRUCTION_NODE:{value:qp},COMMENT_NODE:{value:Pp},DOCUMENT_NODE:{value:Ni},DOCUMENT_TYPE_NODE:{value:Nt},DOCUMENT_FRAGMENT_NODE:{value:Pr},NOTATION_NODE:{value:ac},DOCUMENT_POSITION_DISCONNECTED:{value:oc},DOCUMENT_POSITION_PRECEDING:{value:sc},DOCUMENT_POSITION_FOLLOWING:{value:cc},DOCUMENT_POSITION_CONTAINS:{value:Hp},DOCUMENT_POSITION_CONTAINED_BY:{value:uc},DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC:{value:lc}})});var Vp=C((WF,jp)=>{"use strict";jp.exports=class extends Array{constructor(t){if(super(t&&t.length||0),t)for(var r in t)this[r]=t[r]}item(t){return this[t]||null}}});var Kp=C((zF,Gp)=>{"use strict";function I_(e){return this[e]||null}function w_(e){return e||(e=[]),e.item=I_,e}Gp.exports=w_});var cn=C((XF,$p)=>{"use strict";var fc;try{fc=Vp()}catch{fc=Kp()}$p.exports=fc});var eo=C((QF,Xp)=>{"use strict";Xp.exports=zp;var Wp=Ke(),S_=cn();function zp(){Wp.call(this),this._firstChild=this._childNodes=null}zp.prototype=Object.create(Wp.prototype,{hasChildNodes:{value:function(){return this._childNodes?this._childNodes.length>0:this._firstChild!==null}},childNodes:{get:function(){return this._ensureChildNodes(),this._childNodes}},firstChild:{get:function(){return this._childNodes?this._childNodes.length===0?null:this._childNodes[0]:this._firstChild}},lastChild:{get:function(){var e=this._childNodes,t;return e?e.length===0?null:e[e.length-1]:(t=this._firstChild,t===null?null:t._previousSibling)}},_ensureChildNodes:{value:function(){if(!this._childNodes){var e=this._firstChild,t=e,r=this._childNodes=new S_;if(e)do r.push(t),t=t._nextSibling;while(t!==e);this._firstChild=null}}},removeChildren:{value:function(){for(var t=this.rooted?this.ownerDocument:null,r=this.firstChild,n;r!==null;)n=r,r=n.nextSibling,t&&t.mutateRemove(n),n.parentNode=null;this._childNodes?this._childNodes.length=0:this._firstChild=null,this.modify()}}})});var to=C(xc=>{"use strict";xc.isValidName=L_;xc.isValidQName=D_;var v_=/^[_:A-Za-z][-.:\w]+$/,N_=/^([_A-Za-z][-.\w]+|[_A-Za-z][-.\w]+:[_A-Za-z][-.\w]+)$/,Ai="_A-Za-z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD",Ci="-._A-Za-z0-9\xB7\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0300-\u037D\u037F-\u1FFF\u200C\u200D\u203F\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD",un="["+Ai+"]["+Ci+"]*",pc=Ai+":",dc=Ci+":",A_=new RegExp("^["+pc+"]["+dc+"]*$"),C_=new RegExp("^("+un+"|"+un+":"+un+")$"),Qp=/[\uD800-\uDB7F\uDC00-\uDFFF]/,Yp=/[\uD800-\uDB7F\uDC00-\uDFFF]/g,Zp=/[\uD800-\uDB7F][\uDC00-\uDFFF]/g;Ai+="\uD800-\u{EFC00}-\uDFFF";Ci+="\uD800-\u{EFC00}-\uDFFF";un="["+Ai+"]["+Ci+"]*";pc=Ai+":";dc=Ci+":";var R_=new RegExp("^["+pc+"]["+dc+"]*$"),O_=new RegExp("^("+un+"|"+un+":"+un+")$");function L_(e){if(v_.test(e)||A_.test(e))return!0;if(!Qp.test(e)||!R_.test(e))return!1;var t=e.match(Yp),r=e.match(Zp);return r!==null&&2*r.length===t.length}function D_(e){if(N_.test(e)||C_.test(e))return!0;if(!Qp.test(e)||!O_.test(e))return!1;var t=e.match(Yp),r=e.match(Zp);return r!==null&&2*r.length===t.length}});var hc=C(mc=>{"use strict";var Jp=ve();mc.property=function(e){if(Array.isArray(e.type)){var t=Object.create(null);e.type.forEach(function(i){t[i.value||i]=i.alias||i});var r=e.missing;r===void 0&&(r=null);var n=e.invalid;return n===void 0&&(n=r),{get:function(){var i=this._getattr(e.name);return i===null?r:(i=t[i.toLowerCase()],i!==void 0?i:n!==null?n:i)},set:function(i){this._setattr(e.name,i)}}}else{if(e.type===Boolean)return{get:function(){return this.hasAttribute(e.name)},set:function(i){i?this._setattr(e.name,""):this.removeAttribute(e.name)}};if(e.type===Number||e.type==="long"||e.type==="unsigned long"||e.type==="limited unsigned long with fallback")return k_(e);if(!e.type||e.type===String)return{get:function(){return this._getattr(e.name)||""},set:function(i){e.treatNullAsEmptyString&&i===null&&(i=""),this._setattr(e.name,i)}};if(typeof e.type=="function")return e.type(e.name,e)}throw new Error("Invalid attribute definition")};function k_(e){var t;typeof e.default=="function"?t=e.default:typeof e.default=="number"?t=function(){return e.default}:t=function(){Jp.assert(!1,typeof e.default)};var r=e.type==="unsigned long",n=e.type==="long",i=e.type==="limited unsigned long with fallback",s=e.min,c=e.max,d=e.setmin;return s===void 0&&(r&&(s=0),n&&(s=-2147483648),i&&(s=1)),c===void 0&&(r||n||i)&&(c=2147483647),{get:function(){var b=this._getattr(e.name),T=e.float?parseFloat(b):parseInt(b,10);if(b===null||!isFinite(T)||s!==void 0&&T<s||c!==void 0&&T>c)return t.call(this);if(r||n||i){if(!/^[ \t\n\f\r]*[-+]?[0-9]/.test(b))return t.call(this);T=T|0}return T},set:function(b){e.float||(b=Math.floor(b)),d!==void 0&&b<d&&Jp.IndexSizeError(e.name+" set to "+b),r?b=b<0||b>2147483647?t.call(this):b|0:i?b=b<1||b>2147483647?t.call(this):b|0:n&&(b=b<-2147483648||b>2147483647?t.call(this):b|0),this._setattr(e.name,String(b))}}}mc.registerChangeHandler=function(e,t,r){var n=e.prototype;Object.prototype.hasOwnProperty.call(n,"_attributeChangeHandlers")||(n._attributeChangeHandlers=Object.create(n._attributeChangeHandlers||null)),n._attributeChangeHandlers[t]=r}});var rd=C((JF,td)=>{"use strict";td.exports=ed;var M_=Ke();function ed(e,t){this.root=e,this.filter=t,this.lastModTime=e.lastModTime,this.done=!1,this.cache=[],this.traverse()}ed.prototype=Object.create(Object.prototype,{length:{get:function(){return this.checkcache(),this.done||this.traverse(),this.cache.length}},item:{value:function(e){return this.checkcache(),!this.done&&e>=this.cache.length&&this.traverse(),this.cache[e]}},checkcache:{value:function(){if(this.lastModTime!==this.root.lastModTime){for(var e=this.cache.length-1;e>=0;e--)this[e]=void 0;this.cache.length=0,this.done=!1,this.lastModTime=this.root.lastModTime}}},traverse:{value:function(e){e!==void 0&&e++;for(var t;(t=this.next())!==null;)if(this[this.cache.length]=t,this.cache.push(t),e&&this.cache.length===e)return;this.done=!0}},next:{value:function(){var e=this.cache.length===0?this.root:this.cache[this.cache.length-1],t;for(e.nodeType===M_.DOCUMENT_NODE?t=e.documentElement:t=e.nextElement(this.root);t;){if(this.filter(t))return t;t=t.nextElement(this.root)}return null}}})});var bc=C((e3,ad)=>{"use strict";var gc=ve();ad.exports=id;function id(e,t){this._getString=e,this._setString=t,this._length=0,this._lastStringValue="",this._update()}Object.defineProperties(id.prototype,{length:{get:function(){return this._length}},item:{value:function(e){var t=qn(this);return e<0||e>=t.length?null:t[e]}},contains:{value:function(e){e=String(e);var t=qn(this);return t.indexOf(e)>-1}},add:{value:function(){for(var e=qn(this),t=0,r=arguments.length;t<r;t++){var n=Ri(arguments[t]);e.indexOf(n)<0&&e.push(n)}this._update(e)}},remove:{value:function(){for(var e=qn(this),t=0,r=arguments.length;t<r;t++){var n=Ri(arguments[t]),i=e.indexOf(n);i>-1&&e.splice(i,1)}this._update(e)}},toggle:{value:function(t,r){return t=Ri(t),this.contains(t)?r===void 0||r===!1?(this.remove(t),!1):!0:r===void 0||r===!0?(this.add(t),!0):!1}},replace:{value:function(t,r){String(r)===""&&gc.SyntaxError(),t=Ri(t),r=Ri(r);var n=qn(this),i=n.indexOf(t);if(i<0)return!1;var s=n.indexOf(r);return s<0?n[i]=r:i<s?(n[i]=r,n.splice(s,1)):n.splice(i,1),this._update(n),!0}},toString:{value:function(){return this._getString()}},value:{get:function(){return this._getString()},set:function(e){this._setString(e),this._update()}},_update:{value:function(e){e?(nd(this,e),this._setString(e.join(" ").trim())):nd(this,qn(this)),this._lastStringValue=this._getString()}}});function nd(e,t){var r=e._length,n;for(e._length=t.length,n=0;n<t.length;n++)e[n]=t[n];for(;n<r;n++)e[n]=void 0}function Ri(e){return e=String(e),e===""&&gc.SyntaxError(),/[ \t\r\n\f]/.test(e)&&gc.InvalidCharacterError(),e}function F_(e){for(var t=e._length,r=Array(t),n=0;n<t;n++)r[n]=e[n];return r}function qn(e){var t=e._getString();if(t===e._lastStringValue)return F_(e);var r=t.replace(/(^[ \t\r\n\f]+)|([ \t\r\n\f]+$)/g,"");if(r==="")return[];var n=Object.create(null);return r.split(/[ \t\r\n\f]+/g).filter(function(i){var s="$"+i;return n[s]?!1:(n[s]=!0,!0)})}});var ao=C((Un,fd)=>{"use strict";var ro=Object.create(null,{location:{get:function(){throw new Error("window.location is not supported.")}}}),q_=function(e,t){return e.compareDocumentPosition(t)},P_=function(e,t){return q_(e,t)&2?1:-1},io=function(e){for(;(e=e.nextSibling)&&e.nodeType!==1;);return e},Hn=function(e){for(;(e=e.previousSibling)&&e.nodeType!==1;);return e},H_=function(e){if(e=e.firstChild)for(;e.nodeType!==1&&(e=e.nextSibling););return e},U_=function(e){if(e=e.lastChild)for(;e.nodeType!==1&&(e=e.previousSibling););return e},Pn=function(e){if(!e.parentNode)return!1;var t=e.parentNode.nodeType;return t===1||t===9},od=function(e){if(!e)return e;var t=e[0];return t==='"'||t==="'"?(e[e.length-1]===t?e=e.slice(1,-1):e=e.slice(1),e.replace(D.str_escape,function(r){var n=/^\\(?:([0-9A-Fa-f]+)|([\r\n\f]+))/.exec(r);if(!n)return r.slice(1);if(n[2])return"";var i=parseInt(n[1],16);return String.fromCodePoint?String.fromCodePoint(i):String.fromCharCode(i)})):D.ident.test(e)?Hr(e):e},Hr=function(e){return e.replace(D.escape,function(t){var r=/^\\([0-9A-Fa-f]+)/.exec(t);if(!r)return t[1];var n=parseInt(r[1],16);return String.fromCodePoint?String.fromCodePoint(n):String.fromCharCode(n)})},B_=(function(){return Array.prototype.indexOf?Array.prototype.indexOf:function(e,t){for(var r=this.length;r--;)if(this[r]===t)return r;return-1}})(),cd=function(e,t){var r=D.inside.source.replace(/</g,e).replace(/>/g,t);return new RegExp(r)},ct=function(e,t,r){return e=e.source,e=e.replace(t,r.source||r),new RegExp(e)},sd=function(e,t){return e.replace(/^(?:\w+:\/\/|\/+)/,"").replace(/(?:\/+|\/*#.*?)$/,"").split("/",t).join("/")},j_=function(e,t){var r=e.replace(/\s+/g,""),n;return r==="even"?r="2n+0":r==="odd"?r="2n+1":r.indexOf("n")===-1&&(r="0n"+r),n=/^([+-])?(\d+)?n([+-])?(\d+)?$/.exec(r),{group:n[1]==="-"?-(n[2]||1):+(n[2]||1),offset:n[4]?n[3]==="-"?-n[4]:+n[4]:0}},Ec=function(e,t,r){var n=j_(e),i=n.group,s=n.offset,c=r?U_:H_,d=r?Hn:io;return function(b){if(Pn(b))for(var T=c(b.parentNode),S=0;T;){if(t(T,b)&&S++,T===b)return S-=s,i&&S?S%i===0&&S<0==i<0:!S;T=d(T)}}},He={"*":(function(){return function(){return!0}})(),type:function(e){return e=e.toLowerCase(),function(t){return t.nodeName.toLowerCase()===e}},attr:function(e,t,r,n){return t=ud[t],function(i){var s;switch(e){case"for":s=i.htmlFor;break;case"class":s=i.className,s===""&&i.getAttribute("class")==null&&(s=null);break;case"href":case"src":s=i.getAttribute(e,2);break;case"title":s=i.getAttribute("title")||null;break;case"id":case"lang":case"dir":case"accessKey":case"hidden":case"tabIndex":case"style":if(i.getAttribute){s=i.getAttribute(e);break}default:if(i.hasAttribute&&!i.hasAttribute(e))break;s=i[e]!=null?i[e]:i.getAttribute&&i.getAttribute(e);break}if(s!=null)return s=s+"",n&&(s=s.toLowerCase(),r=r.toLowerCase()),t(s,r)}},":first-child":function(e){return!Hn(e)&&Pn(e)},":last-child":function(e){return!io(e)&&Pn(e)},":only-child":function(e){return!Hn(e)&&!io(e)&&Pn(e)},":nth-child":function(e,t){return Ec(e,function(){return!0},t)},":nth-last-child":function(e){return He[":nth-child"](e,!0)},":root":function(e){return e.ownerDocument.documentElement===e},":empty":function(e){return!e.firstChild},":not":function(e){var t=Tc(e);return function(r){return!t(r)}},":first-of-type":function(e){if(Pn(e)){for(var t=e.nodeName;e=Hn(e);)if(e.nodeName===t)return;return!0}},":last-of-type":function(e){if(Pn(e)){for(var t=e.nodeName;e=io(e);)if(e.nodeName===t)return;return!0}},":only-of-type":function(e){return He[":first-of-type"](e)&&He[":last-of-type"](e)},":nth-of-type":function(e,t){return Ec(e,function(r,n){return r.nodeName===n.nodeName},t)},":nth-last-of-type":function(e){return He[":nth-of-type"](e,!0)},":checked":function(e){return!!(e.checked||e.selected)},":indeterminate":function(e){return!He[":checked"](e)},":enabled":function(e){return!e.disabled&&e.type!=="hidden"},":disabled":function(e){return!!e.disabled},":target":function(e){return e.id===ro.location.hash.substring(1)},":focus":function(e){return e===e.ownerDocument.activeElement},":is":function(e){return Tc(e)},":matches":function(e){return He[":is"](e)},":nth-match":function(e,t){var r=e.split(/\s*,\s*/),n=r.shift(),i=Tc(r.join(","));return Ec(n,i,t)},":nth-last-match":function(e){return He[":nth-match"](e,!0)},":links-here":function(e){return e+""==ro.location+""},":lang":function(e){return function(t){for(;t;){if(t.lang)return t.lang.indexOf(e)===0;t=t.parentNode}}},":dir":function(e){return function(t){for(;t;){if(t.dir)return t.dir===e;t=t.parentNode}}},":scope":function(e,t){var r=t||e.ownerDocument;return r.nodeType===9?e===r.documentElement:e===r},":any-link":function(e){return typeof e.href=="string"},":local-link":function(e){if(e.nodeName)return e.href&&e.host===ro.location.host;var t=+e+1;return function(r){if(r.href){var n=ro.location+"",i=r+"";return sd(n,t)===sd(i,t)}}},":default":function(e){return!!e.defaultSelected},":valid":function(e){return e.willValidate||e.validity&&e.validity.valid},":invalid":function(e){return!He[":valid"](e)},":in-range":function(e){return e.value>e.min&&e.value<=e.max},":out-of-range":function(e){return!He[":in-range"](e)},":required":function(e){return!!e.required},":optional":function(e){return!e.required},":read-only":function(e){if(e.readOnly)return!0;var t=e.getAttribute("contenteditable"),r=e.contentEditable,n=e.nodeName.toLowerCase();return n=n!=="input"&&n!=="textarea",(n||e.disabled)&&t==null&&r!=="true"},":read-write":function(e){return!He[":read-only"](e)},":hover":function(){throw new Error(":hover is not supported.")},":active":function(){throw new Error(":active is not supported.")},":link":function(){throw new Error(":link is not supported.")},":visited":function(){throw new Error(":visited is not supported.")},":column":function(){throw new Error(":column is not supported.")},":nth-column":function(){throw new Error(":nth-column is not supported.")},":nth-last-column":function(){throw new Error(":nth-last-column is not supported.")},":current":function(){throw new Error(":current is not supported.")},":past":function(){throw new Error(":past is not supported.")},":future":function(){throw new Error(":future is not supported.")},":contains":function(e){return function(t){var r=t.innerText||t.textContent||t.value||"";return r.indexOf(e)!==-1}},":has":function(e){return function(t){return ld(e,t).length>0}}},ud={"-":function(){return!0},"=":function(e,t){return e===t},"*=":function(e,t){return e.indexOf(t)!==-1},"~=":function(e,t){var r,n,i,s;for(n=0;;n=r+1){if(r=e.indexOf(t,n),r===-1)return!1;if(i=e[r-1],s=e[r+t.length],(!i||i===" ")&&(!s||s===" "))return!0}},"|=":function(e,t){var r=e.indexOf(t),n;if(r===0)return n=e[r+t.length],n==="-"||!n},"^=":function(e,t){return e.indexOf(t)===0},"$=":function(e,t){var r=e.lastIndexOf(t);return r!==-1&&r+t.length===e.length},"!=":function(e,t){return e!==t}},Oi={" ":function(e){return function(t){for(;t=t.parentNode;)if(e(t))return t}},">":function(e){return function(t){if(t=t.parentNode)return e(t)&&t}},"+":function(e){return function(t){if(t=Hn(t))return e(t)&&t}},"~":function(e){return function(t){for(;t=Hn(t);)if(e(t))return t}},noop:function(e){return function(t){return e(t)&&t}},ref:function(e,t){var r;function n(i){for(var s=i.ownerDocument,c=s.getElementsByTagName("*"),d=c.length;d--;)if(r=c[d],n.test(i))return r=null,!0;r=null}return n.combinator=function(i){if(!(!r||!r.getAttribute)){var s=r.getAttribute(t)||"";if(s[0]==="#"&&(s=s.substring(1)),s===i.id&&e(r))return r}},n}},D={escape:/\\(?:[^0-9A-Fa-f\r\n]|[0-9A-Fa-f]{1,6}[\r\n\t ]?)/g,str_escape:/(escape)|\\(\n|\r\n?|\f)/g,nonascii:/[\u00A0-\uFFFF]/,cssid:/(?:(?!-?[0-9])(?:escape|nonascii|[-_a-zA-Z0-9])+)/,qname:/^ *(cssid|\*)/,simple:/^(?:([.#]cssid)|pseudo|attr)/,ref:/^ *\/(cssid)\/ */,combinator:/^(?: +([^ \w*.#\\]) +|( )+|([^ \w*.#\\]))(?! *$)/,attr:/^\[(cssid)(?:([^\w]?=)(inside))?\]/,pseudo:/^(:cssid)(?:\((inside)\))?/,inside:/(?:"(?:\\"|[^"])*"|'(?:\\'|[^'])*'|<[^"'>]*>|\\["'>]|[^"'>])*/,ident:/^(cssid)$/};D.cssid=ct(D.cssid,"nonascii",D.nonascii);D.cssid=ct(D.cssid,"escape",D.escape);D.qname=ct(D.qname,"cssid",D.cssid);D.simple=ct(D.simple,"cssid",D.cssid);D.ref=ct(D.ref,"cssid",D.cssid);D.attr=ct(D.attr,"cssid",D.cssid);D.pseudo=ct(D.pseudo,"cssid",D.cssid);D.inside=ct(D.inside,`[^"'>]*`,D.inside);D.attr=ct(D.attr,"inside",cd("\\[","\\]"));D.pseudo=ct(D.pseudo,"inside",cd("\\(","\\)"));D.simple=ct(D.simple,"pseudo",D.pseudo);D.simple=ct(D.simple,"attr",D.attr);D.ident=ct(D.ident,"cssid",D.cssid);D.str_escape=ct(D.str_escape,"escape",D.escape);var Li=function(e){for(var t=e.replace(/^\s+|\s+$/g,""),r,n=[],i=[],s,c,d,b,T;t;){if(d=D.qname.exec(t))t=t.substring(d[0].length),c=Hr(d[1]),i.push(no(c,!0));else if(d=D.simple.exec(t))t=t.substring(d[0].length),c="*",i.push(no(c,!0)),i.push(no(d));else throw new SyntaxError("Invalid selector.");for(;d=D.simple.exec(t);)t=t.substring(d[0].length),i.push(no(d));if(t[0]==="!"&&(t=t.substring(1),s=G_(),s.qname=c,i.push(s.simple)),d=D.ref.exec(t)){t=t.substring(d[0].length),T=Oi.ref(yc(i),Hr(d[1])),n.push(T.combinator),i=[];continue}if(d=D.combinator.exec(t)){if(t=t.substring(d[0].length),b=d[1]||d[2]||d[3],b===","){n.push(Oi.noop(yc(i)));break}}else b="noop";if(!Oi[b])throw new SyntaxError("Bad combinator.");n.push(Oi[b](yc(i))),i=[]}return r=V_(n),r.qname=c,r.sel=t,s&&(s.lname=r.qname,s.test=r,s.qname=s.qname,s.sel=r.sel,r=s),T&&(T.test=r,T.qname=r.qname,T.sel=r.sel,r=T),r},no=function(e,t){if(t)return e==="*"?He["*"]:He.type(e);if(e[1])return e[1][0]==="."?He.attr("class","~=",Hr(e[1].substring(1)),!1):He.attr("id","=",Hr(e[1].substring(1)),!1);if(e[2])return e[3]?He[Hr(e[2])](od(e[3])):He[Hr(e[2])];if(e[4]){var r=e[6],n=/["'\s]\s*I$/i.test(r);return n&&(r=r.replace(/\s*I$/i,"")),He.attr(Hr(e[4]),e[5]||"-",od(r),n)}throw new SyntaxError("Unknown Selector.")},yc=function(e){var t=e.length,r;return t<2?e[0]:function(n){if(n){for(r=0;r<t;r++)if(!e[r](n))return;return!0}}},V_=function(e){return e.length<2?function(t){return!!e[0](t)}:function(t){for(var r=e.length;r--;)if(!(t=e[r](t)))return;return!0}},G_=function(){var e;function t(r){for(var n=r.ownerDocument,i=n.getElementsByTagName(t.lname),s=i.length;s--;)if(t.test(i[s])&&e===r)return e=null,!0;e=null}return t.simple=function(r){return e=r,!0},t},Tc=function(e){for(var t=Li(e),r=[t];t.sel;)t=Li(t.sel),r.push(t);return r.length<2?t:function(n){for(var i=r.length,s=0;s<i;s++)if(r[s](n))return!0}},ld=function(e,t){for(var r=[],n=Li(e),i=t.getElementsByTagName(n.qname),s=0,c;c=i[s++];)n(c)&&r.push(c);if(n.sel){for(;n.sel;)for(n=Li(n.sel),i=t.getElementsByTagName(n.qname),s=0;c=i[s++];)n(c)&&B_.call(r,c)===-1&&r.push(c);r.sort(P_)}return r};fd.exports=Un=function(e,t){var r,n;if(t.nodeType!==11&&e.indexOf(" ")===-1){if(e[0]==="#"&&t.rooted&&/^#[A-Z_][-A-Z0-9_]*$/i.test(e)&&t.doc._hasMultipleElementsWithId&&(r=e.substring(1),!t.doc._hasMultipleElementsWithId(r)))return n=t.doc.getElementById(r),n?[n]:[];if(e[0]==="."&&/^\.\w+$/.test(e))return t.getElementsByClassName(e.substring(1));if(/^\w+$/.test(e))return t.getElementsByTagName(e)}return ld(e,t)};Un.selectors=He;Un.operators=ud;Un.combinators=Oi;Un.matches=function(e,t){var r={sel:t};do if(r=Li(r.sel),r(e))return!0;while(r.sel);return!1}});var oo=C((t3,pd)=>{"use strict";var K_=Ke(),$_=tc(),_c=function(e,t){for(var r=e.createDocumentFragment(),n=0;n<t.length;n++){var i=t[n],s=i instanceof K_;r.appendChild(s?i:e.createTextNode(String(i)))}return r},W_={after:{value:function(){var t=Array.prototype.slice.call(arguments),r=this.parentNode,n=this.nextSibling;if(r!==null){for(;n&&t.some(function(s){return s===n});)n=n.nextSibling;var i=_c(this.doc,t);r.insertBefore(i,n)}}},before:{value:function(){var t=Array.prototype.slice.call(arguments),r=this.parentNode,n=this.previousSibling;if(r!==null){for(;n&&t.some(function(c){return c===n});)n=n.previousSibling;var i=_c(this.doc,t),s=n?n.nextSibling:r.firstChild;r.insertBefore(i,s)}}},remove:{value:function(){this.parentNode!==null&&(this.doc&&(this.doc._preremoveNodeIterators(this),this.rooted&&this.doc.mutateRemove(this)),this._remove(),this.parentNode=null)}},_remove:{value:function(){var t=this.parentNode;t!==null&&(t._childNodes?t._childNodes.splice(this.index,1):t._firstChild===this&&(this._nextSibling===this?t._firstChild=null:t._firstChild=this._nextSibling),$_.remove(this),t.modify())}},replaceWith:{value:function(){var t=Array.prototype.slice.call(arguments),r=this.parentNode,n=this.nextSibling;if(r!==null){for(;n&&t.some(function(s){return s===n});)n=n.nextSibling;var i=_c(this.doc,t);this.parentNode===r?r.replaceChild(i,this):r.insertBefore(i,n)}}}};pd.exports=W_});var Ic=C((r3,xd)=>{"use strict";var dd=Ke(),z_={nextElementSibling:{get:function(){if(this.parentNode){for(var e=this.nextSibling;e!==null;e=e.nextSibling)if(e.nodeType===dd.ELEMENT_NODE)return e}return null}},previousElementSibling:{get:function(){if(this.parentNode){for(var e=this.previousSibling;e!==null;e=e.previousSibling)if(e.nodeType===dd.ELEMENT_NODE)return e}return null}}};xd.exports=z_});var wc=C((n3,hd)=>{"use strict";hd.exports=md;var Bn=ve();function md(e){this.element=e}Object.defineProperties(md.prototype,{length:{get:Bn.shouldOverride},item:{value:Bn.shouldOverride},getNamedItem:{value:function(t){return this.element.getAttributeNode(t)}},getNamedItemNS:{value:function(t,r){return this.element.getAttributeNodeNS(t,r)}},setNamedItem:{value:Bn.nyi},setNamedItemNS:{value:Bn.nyi},removeNamedItem:{value:function(t){var r=this.element.getAttributeNode(t);if(r)return this.element.removeAttribute(t),r;Bn.NotFoundError()}},removeNamedItemNS:{value:function(t,r){var n=this.element.getAttributeNodeNS(t,r);if(n)return this.element.removeAttributeNS(t,r),n;Bn.NotFoundError()}}})});var Vn=C((i3,Td)=>{"use strict";Td.exports=Ur;var Sc=to(),Te=ve(),Qt=Te.NAMESPACE,co=hc(),Ut=Ke(),vc=cn(),X_=rc(),so=rd(),jn=Qa(),Q_=bc(),Nc=ao(),bd=eo(),Y_=oo(),Z_=Ic(),Ed=wc(),gd=Object.create(null);function Ur(e,t,r,n){bd.call(this),this.nodeType=Ut.ELEMENT_NODE,this.ownerDocument=e,this.localName=t,this.namespaceURI=r,this.prefix=n,this._tagName=void 0,this._attrsByQName=Object.create(null),this._attrsByLName=Object.create(null),this._attrKeys=[]}function Ac(e,t){if(e.nodeType===Ut.TEXT_NODE)t.push(e._data);else for(var r=0,n=e.childNodes.length;r<n;r++)Ac(e.childNodes[r],t)}Ur.prototype=Object.create(bd.prototype,{isHTML:{get:function(){return this.namespaceURI===Qt.HTML&&this.ownerDocument.isHTML}},tagName:{get:function(){if(this._tagName===void 0){var t;if(this.prefix===null?t=this.localName:t=this.prefix+":"+this.localName,this.isHTML){var r=gd[t];r||(gd[t]=r=Te.toASCIIUpperCase(t)),t=r}this._tagName=t}return this._tagName}},nodeName:{get:function(){return this.tagName}},nodeValue:{get:function(){return null},set:function(){}},textContent:{get:function(){var e=[];return Ac(this,e),e.join("")},set:function(e){this.removeChildren(),e!=null&&e!==""&&this._appendChild(this.ownerDocument.createTextNode(e))}},innerText:{get:function(){var e=[];return Ac(this,e),e.join("").replace(/[ \t\n\f\r]+/g," ").trim()},set:function(e){this.removeChildren(),e!=null&&e!==""&&this._appendChild(this.ownerDocument.createTextNode(e))}},innerHTML:{get:function(){return this.serialize()},set:Te.nyi},outerHTML:{get:function(){return X_.serializeOne(this,{nodeType:0})},set:function(e){var t=this.ownerDocument,r=this.parentNode;if(r!==null){r.nodeType===Ut.DOCUMENT_NODE&&Te.NoModificationAllowedError(),r.nodeType===Ut.DOCUMENT_FRAGMENT_NODE&&(r=r.ownerDocument.createElement("body"));var n=t.implementation.mozHTMLParser(t._address,r);n.parse(e===null?"":String(e),!0),this.replaceWith(n._asDocumentFragment())}}},_insertAdjacent:{value:function(t,r){var n=!1;switch(t){case"beforebegin":n=!0;case"afterend":var i=this.parentNode;return i===null?null:i.insertBefore(r,n?this:this.nextSibling);case"afterbegin":n=!0;case"beforeend":return this.insertBefore(r,n?this.firstChild:null);default:return Te.SyntaxError()}}},insertAdjacentElement:{value:function(t,r){if(r.nodeType!==Ut.ELEMENT_NODE)throw new TypeError("not an element");return t=Te.toASCIILowerCase(String(t)),this._insertAdjacent(t,r)}},insertAdjacentText:{value:function(t,r){var n=this.ownerDocument.createTextNode(r);t=Te.toASCIILowerCase(String(t)),this._insertAdjacent(t,n)}},insertAdjacentHTML:{value:function(t,r){t=Te.toASCIILowerCase(String(t)),r=String(r);var n;switch(t){case"beforebegin":case"afterend":n=this.parentNode,(n===null||n.nodeType===Ut.DOCUMENT_NODE)&&Te.NoModificationAllowedError();break;case"afterbegin":case"beforeend":n=this;break;default:Te.SyntaxError()}(!(n instanceof Ur)||n.ownerDocument.isHTML&&n.localName==="html"&&n.namespaceURI===Qt.HTML)&&(n=n.ownerDocument.createElementNS(Qt.HTML,"body"));var i=this.ownerDocument.implementation.mozHTMLParser(this.ownerDocument._address,n);i.parse(r,!0),this._insertAdjacent(t,i._asDocumentFragment())}},children:{get:function(){return this._children||(this._children=new yd(this)),this._children}},attributes:{get:function(){return this._attributes||(this._attributes=new Rc(this)),this._attributes}},firstElementChild:{get:function(){for(var e=this.firstChild;e!==null;e=e.nextSibling)if(e.nodeType===Ut.ELEMENT_NODE)return e;return null}},lastElementChild:{get:function(){for(var e=this.lastChild;e!==null;e=e.previousSibling)if(e.nodeType===Ut.ELEMENT_NODE)return e;return null}},childElementCount:{get:function(){return this.children.length}},nextElement:{value:function(e){e||(e=this.ownerDocument.documentElement);var t=this.firstElementChild;if(!t){if(this===e)return null;t=this.nextElementSibling}if(t)return t;for(var r=this.parentElement;r&&r!==e;r=r.parentElement)if(t=r.nextElementSibling,t)return t;return null}},getElementsByTagName:{value:function(t){var r;return t?(t==="*"?r=function(){return!0}:this.isHTML?r=J_(t):r=Cc(t),new so(this,r)):new vc}},getElementsByTagNameNS:{value:function(t,r){var n;return t==="*"&&r==="*"?n=function(){return!0}:t==="*"?n=Cc(r):r==="*"?n=eI(t):n=tI(t,r),new so(this,n)}},getElementsByClassName:{value:function(t){if(t=String(t).trim(),t===""){var r=new vc;return r}return t=t.split(/[ \t\r\n\f]+/),new so(this,rI(t))}},getElementsByName:{value:function(t){return new so(this,nI(String(t)))}},clone:{value:function(){var t;this.namespaceURI!==Qt.HTML||this.prefix||!this.ownerDocument.isHTML?t=this.ownerDocument.createElementNS(this.namespaceURI,this.prefix!==null?this.prefix+":"+this.localName:this.localName):t=this.ownerDocument.createElement(this.localName);for(var r=0,n=this._attrKeys.length;r<n;r++){var i=this._attrKeys[r],s=this._attrsByLName[i],c=s.cloneNode();c._setOwnerElement(t),t._attrsByLName[i]=c,t._addQName(c)}return t._attrKeys=this._attrKeys.concat(),t}},isEqual:{value:function(t){if(this.localName!==t.localName||this.namespaceURI!==t.namespaceURI||this.prefix!==t.prefix||this._numattrs!==t._numattrs)return!1;for(var r=0,n=this._numattrs;r<n;r++){var i=this._attr(r);if(!t.hasAttributeNS(i.namespaceURI,i.localName)||t.getAttributeNS(i.namespaceURI,i.localName)!==i.value)return!1}return!0}},_lookupNamespacePrefix:{value:function(t,r){if(this.namespaceURI&&this.namespaceURI===t&&this.prefix!==null&&r.lookupNamespaceURI(this.prefix)===t)return this.prefix;for(var n=0,i=this._numattrs;n<i;n++){var s=this._attr(n);if(s.prefix==="xmlns"&&s.value===t&&r.lookupNamespaceURI(s.localName)===t)return s.localName}var c=this.parentElement;return c?c._lookupNamespacePrefix(t,r):null}},lookupNamespaceURI:{value:function(t){if((t===""||t===void 0)&&(t=null),this.namespaceURI!==null&&this.prefix===t)return this.namespaceURI;for(var r=0,n=this._numattrs;r<n;r++){var i=this._attr(r);if(i.namespaceURI===Qt.XMLNS&&(i.prefix==="xmlns"&&i.localName===t||t===null&&i.prefix===null&&i.localName==="xmlns"))return i.value||null}var s=this.parentElement;return s?s.lookupNamespaceURI(t):null}},getAttribute:{value:function(t){var r=this.getAttributeNode(t);return r?r.value:null}},getAttributeNS:{value:function(t,r){var n=this.getAttributeNodeNS(t,r);return n?n.value:null}},getAttributeNode:{value:function(t){t=String(t),/[A-Z]/.test(t)&&this.isHTML&&(t=Te.toASCIILowerCase(t));var r=this._attrsByQName[t];return r?(Array.isArray(r)&&(r=r[0]),r):null}},getAttributeNodeNS:{value:function(t,r){t=t==null?"":String(t),r=String(r);var n=this._attrsByLName[t+"|"+r];return n||null}},hasAttribute:{value:function(t){return t=String(t),/[A-Z]/.test(t)&&this.isHTML&&(t=Te.toASCIILowerCase(t)),this._attrsByQName[t]!==void 0}},hasAttributeNS:{value:function(t,r){t=t==null?"":String(t),r=String(r);var n=t+"|"+r;return this._attrsByLName[n]!==void 0}},hasAttributes:{value:function(){return this._numattrs>0}},toggleAttribute:{value:function(t,r){t=String(t),Sc.isValidName(t)||Te.InvalidCharacterError(),/[A-Z]/.test(t)&&this.isHTML&&(t=Te.toASCIILowerCase(t));var n=this._attrsByQName[t];return n===void 0?r===void 0||r===!0?(this._setAttribute(t,""),!0):!1:r===void 0||r===!1?(this.removeAttribute(t),!1):!0}},_setAttribute:{value:function(t,r){var n=this._attrsByQName[t],i;n?Array.isArray(n)&&(n=n[0]):(n=this._newattr(t),i=!0),n.value=r,this._attributes&&(this._attributes[t]=n),i&&this._newattrhook&&this._newattrhook(t,r)}},setAttribute:{value:function(t,r){t=String(t),Sc.isValidName(t)||Te.InvalidCharacterError(),/[A-Z]/.test(t)&&this.isHTML&&(t=Te.toASCIILowerCase(t)),this._setAttribute(t,String(r))}},_setAttributeNS:{value:function(t,r,n){var i=r.indexOf(":"),s,c;i<0?(s=null,c=r):(s=r.substring(0,i),c=r.substring(i+1)),(t===""||t===void 0)&&(t=null);var d=(t===null?"":t)+"|"+c,b=this._attrsByLName[d],T;b||(b=new Di(this,c,s,t),T=!0,this._attrsByLName[d]=b,this._attributes&&(this._attributes[this._attrKeys.length]=b),this._attrKeys.push(d),this._addQName(b)),b.value=n,T&&this._newattrhook&&this._newattrhook(r,n)}},setAttributeNS:{value:function(t,r,n){t=t==null||t===""?null:String(t),r=String(r),Sc.isValidQName(r)||Te.InvalidCharacterError();var i=r.indexOf(":"),s=i<0?null:r.substring(0,i);(s!==null&&t===null||s==="xml"&&t!==Qt.XML||(r==="xmlns"||s==="xmlns")&&t!==Qt.XMLNS||t===Qt.XMLNS&&!(r==="xmlns"||s==="xmlns"))&&Te.NamespaceError(),this._setAttributeNS(t,r,String(n))}},setAttributeNode:{value:function(t){if(t.ownerElement!==null&&t.ownerElement!==this)throw new jn(jn.INUSE_ATTRIBUTE_ERR);var r=null,n=this._attrsByQName[t.name];if(n){if(Array.isArray(n)||(n=[n]),n.some(function(i){return i===t}))return t;if(t.ownerElement!==null)throw new jn(jn.INUSE_ATTRIBUTE_ERR);n.forEach(function(i){this.removeAttributeNode(i)},this),r=n[0]}return this.setAttributeNodeNS(t),r}},setAttributeNodeNS:{value:function(t){if(t.ownerElement!==null)throw new jn(jn.INUSE_ATTRIBUTE_ERR);var r=t.namespaceURI,n=(r===null?"":r)+"|"+t.localName,i=this._attrsByLName[n];return i&&this.removeAttributeNode(i),t._setOwnerElement(this),this._attrsByLName[n]=t,this._attributes&&(this._attributes[this._attrKeys.length]=t),this._attrKeys.push(n),this._addQName(t),this._newattrhook&&this._newattrhook(t.name,t.value),i||null}},removeAttribute:{value:function(t){t=String(t),/[A-Z]/.test(t)&&this.isHTML&&(t=Te.toASCIILowerCase(t));var r=this._attrsByQName[t];if(r){Array.isArray(r)?r.length>2?r=r.shift():(this._attrsByQName[t]=r[1],r=r[0]):this._attrsByQName[t]=void 0;var n=r.namespaceURI,i=(n===null?"":n)+"|"+r.localName;this._attrsByLName[i]=void 0;var s=this._attrKeys.indexOf(i);this._attributes&&(Array.prototype.splice.call(this._attributes,s,1),this._attributes[t]=void 0),this._attrKeys.splice(s,1);var c=r.onchange;r._setOwnerElement(null),c&&c.call(r,this,r.localName,r.value,null),this.rooted&&this.ownerDocument.mutateRemoveAttr(r)}}},removeAttributeNS:{value:function(t,r){t=t==null?"":String(t),r=String(r);var n=t+"|"+r,i=this._attrsByLName[n];if(i){this._attrsByLName[n]=void 0;var s=this._attrKeys.indexOf(n);this._attributes&&Array.prototype.splice.call(this._attributes,s,1),this._attrKeys.splice(s,1),this._removeQName(i);var c=i.onchange;i._setOwnerElement(null),c&&c.call(i,this,i.localName,i.value,null),this.rooted&&this.ownerDocument.mutateRemoveAttr(i)}}},removeAttributeNode:{value:function(t){var r=t.namespaceURI,n=(r===null?"":r)+"|"+t.localName;return this._attrsByLName[n]!==t&&Te.NotFoundError(),this.removeAttributeNS(r,t.localName),t}},getAttributeNames:{value:function(){var t=this;return this._attrKeys.map(function(r){return t._attrsByLName[r].name})}},_getattr:{value:function(t){var r=this._attrsByQName[t];return r?r.value:null}},_setattr:{value:function(t,r){var n=this._attrsByQName[t],i;n||(n=this._newattr(t),i=!0),n.value=String(r),this._attributes&&(this._attributes[t]=n),i&&this._newattrhook&&this._newattrhook(t,r)}},_newattr:{value:function(t){var r=new Di(this,t,null,null),n="|"+t;return this._attrsByQName[t]=r,this._attrsByLName[n]=r,this._attributes&&(this._attributes[this._attrKeys.length]=r),this._attrKeys.push(n),r}},_addQName:{value:function(e){var t=e.name,r=this._attrsByQName[t];r?Array.isArray(r)?r.push(e):this._attrsByQName[t]=[r,e]:this._attrsByQName[t]=e,this._attributes&&(this._attributes[t]=e)}},_removeQName:{value:function(e){var t=e.name,r=this._attrsByQName[t];if(Array.isArray(r)){var n=r.indexOf(e);Te.assert(n!==-1),r.length===2?(this._attrsByQName[t]=r[1-n],this._attributes&&(this._attributes[t]=this._attrsByQName[t])):(r.splice(n,1),this._attributes&&this._attributes[t]===e&&(this._attributes[t]=r[0]))}else Te.assert(r===e),this._attrsByQName[t]=void 0,this._attributes&&(this._attributes[t]=void 0)}},_numattrs:{get:function(){return this._attrKeys.length}},_attr:{value:function(e){return this._attrsByLName[this._attrKeys[e]]}},id:co.property({name:"id"}),className:co.property({name:"class"}),classList:{get:function(){var e=this;if(this._classList)return this._classList;var t=new Q_(function(){return e.className||""},function(r){e.className=r});return this._classList=t,t},set:function(e){this.className=e}},matches:{value:function(e){return Nc.matches(this,e)}},closest:{value:function(e){var t=this;do{if(t.matches&&t.matches(e))return t;t=t.parentElement||t.parentNode}while(t!==null&&t.nodeType===Ut.ELEMENT_NODE);return null}},querySelector:{value:function(e){return Nc(e,this)[0]}},querySelectorAll:{value:function(e){var t=Nc(e,this);return t.item?t:new vc(t)}}});Object.defineProperties(Ur.prototype,Y_);Object.defineProperties(Ur.prototype,Z_);co.registerChangeHandler(Ur,"id",function(e,t,r,n){e.rooted&&(r&&e.ownerDocument.delId(r,e),n&&e.ownerDocument.addId(n,e))});co.registerChangeHandler(Ur,"class",function(e,t,r,n){e._classList&&e._classList._update()});function Di(e,t,r,n,i){this.localName=t,this.prefix=r===null||r===""?null:""+r,this.namespaceURI=n===null||n===""?null:""+n,this.data=i,this._setOwnerElement(e)}Di.prototype=Object.create(Object.prototype,{ownerElement:{get:function(){return this._ownerElement}},_setOwnerElement:{value:function(t){this._ownerElement=t,this.prefix===null&&this.namespaceURI===null&&t?this.onchange=t._attributeChangeHandlers[this.localName]:this.onchange=null}},name:{get:function(){return this.prefix?this.prefix+":"+this.localName:this.localName}},specified:{get:function(){return!0}},value:{get:function(){return this.data},set:function(e){var t=this.data;e=e===void 0?"":e+"",e!==t&&(this.data=e,this.ownerElement&&(this.onchange&&this.onchange(this.ownerElement,this.localName,t,e),this.ownerElement.rooted&&this.ownerElement.ownerDocument.mutateAttr(this,t)))}},cloneNode:{value:function(t){return new Di(null,this.localName,this.prefix,this.namespaceURI,this.data)}},nodeType:{get:function(){return Ut.ATTRIBUTE_NODE}},nodeName:{get:function(){return this.name}},nodeValue:{get:function(){return this.value},set:function(e){this.value=e}},textContent:{get:function(){return this.value},set:function(e){e==null&&(e=""),this.value=e}},innerText:{get:function(){return this.value},set:function(e){e==null&&(e=""),this.value=e}}});Ur._Attr=Di;function Rc(e){Ed.call(this,e);for(var t in e._attrsByQName)this[t]=e._attrsByQName[t];for(var r=0;r<e._attrKeys.length;r++)this[r]=e._attrsByLName[e._attrKeys[r]]}Rc.prototype=Object.create(Ed.prototype,{length:{get:function(){return this.element._attrKeys.length},set:function(){}},item:{value:function(e){return e=e>>>0,e>=this.length?null:this.element._attrsByLName[this.element._attrKeys[e]]}}});globalThis.Symbol?.iterator&&(Rc.prototype[globalThis.Symbol.iterator]=function(){var e=0,t=this.length,r=this;return{next:function(){return e<t?{value:r.item(e++)}:{done:!0}}}});function yd(e){this.element=e,this.updateCache()}yd.prototype=Object.create(Object.prototype,{length:{get:function(){return this.updateCache(),this.childrenByNumber.length}},item:{value:function(t){return this.updateCache(),this.childrenByNumber[t]||null}},namedItem:{value:function(t){return this.updateCache(),this.childrenByName[t]||null}},namedItems:{get:function(){return this.updateCache(),this.childrenByName}},updateCache:{value:function(){var t=/^(a|applet|area|embed|form|frame|frameset|iframe|img|object)$/;if(this.lastModTime!==this.element.lastModTime){this.lastModTime=this.element.lastModTime;for(var r=this.childrenByNumber&&this.childrenByNumber.length||0,n=0;n<r;n++)this[n]=void 0;this.childrenByNumber=[],this.childrenByName=Object.create(null);for(var i=this.element.firstChild;i!==null;i=i.nextSibling)if(i.nodeType===Ut.ELEMENT_NODE){this[this.childrenByNumber.length]=i,this.childrenByNumber.push(i);var s=i.getAttribute("id");s&&!this.childrenByName[s]&&(this.childrenByName[s]=i);var c=i.getAttribute("name");c&&this.element.namespaceURI===Qt.HTML&&t.test(this.element.localName)&&!this.childrenByName[c]&&(this.childrenByName[s]=i)}}}}});function Cc(e){return function(t){return t.localName===e}}function J_(e){var t=Te.toASCIILowerCase(e);return t===e?Cc(e):function(r){return r.isHTML?r.localName===t:r.localName===e}}function eI(e){return function(t){return t.namespaceURI===e}}function tI(e,t){return function(r){return r.namespaceURI===e&&r.localName===t}}function rI(e){return function(t){return e.every(function(r){return t.classList.contains(r)})}}function nI(e){return function(t){return t.namespaceURI!==Qt.HTML?!1:t.getAttribute("name")===e}}});var Oc=C((a3,vd)=>{"use strict";vd.exports=Sd;var Id=Ke(),iI=cn(),wd=ve(),_d=wd.HierarchyRequestError,aI=wd.NotFoundError;function Sd(){Id.call(this)}Sd.prototype=Object.create(Id.prototype,{hasChildNodes:{value:function(){return!1}},firstChild:{value:null},lastChild:{value:null},insertBefore:{value:function(e,t){if(!e.nodeType)throw new TypeError("not a node");_d()}},replaceChild:{value:function(e,t){if(!e.nodeType)throw new TypeError("not a node");_d()}},removeChild:{value:function(e){if(!e.nodeType)throw new TypeError("not a node");aI()}},removeChildren:{value:function(){}},childNodes:{get:function(){return this._childNodes||(this._childNodes=new iI),this._childNodes}}})});var ki=C((o3,Cd)=>{"use strict";Cd.exports=uo;var Ad=Oc(),Nd=ve(),oI=oo(),sI=Ic();function uo(){Ad.call(this)}uo.prototype=Object.create(Ad.prototype,{substringData:{value:function(t,r){if(arguments.length<2)throw new TypeError("Not enough arguments");return t=t>>>0,r=r>>>0,(t>this.data.length||t<0||r<0)&&Nd.IndexSizeError(),this.data.substring(t,t+r)}},appendData:{value:function(t){if(arguments.length<1)throw new TypeError("Not enough arguments");this.data+=String(t)}},insertData:{value:function(t,r){return this.replaceData(t,0,r)}},deleteData:{value:function(t,r){return this.replaceData(t,r,"")}},replaceData:{value:function(t,r,n){var i=this.data,s=i.length;t=t>>>0,r=r>>>0,n=String(n),(t>s||t<0)&&Nd.IndexSizeError(),t+r>s&&(r=s-t);var c=i.substring(0,t),d=i.substring(t+r);this.data=c+n+d}},isEqual:{value:function(t){return this._data===t._data}},length:{get:function(){return this.data.length}}});Object.defineProperties(uo.prototype,oI);Object.defineProperties(uo.prototype,sI)});var Dc=C((s3,Dd)=>{"use strict";Dd.exports=Lc;var Rd=ve(),Od=Ke(),Ld=ki();function Lc(e,t){Ld.call(this),this.nodeType=Od.TEXT_NODE,this.ownerDocument=e,this._data=t,this._index=void 0}var Mi={get:function(){return this._data},set:function(e){e==null?e="":e=String(e),e!==this._data&&(this._data=e,this.rooted&&this.ownerDocument.mutateValue(this),this.parentNode&&this.parentNode._textchangehook&&this.parentNode._textchangehook(this))}};Lc.prototype=Object.create(Ld.prototype,{nodeName:{value:"#text"},nodeValue:Mi,textContent:Mi,innerText:Mi,data:{get:Mi.get,set:function(e){Mi.set.call(this,e===null?"":String(e))}},splitText:{value:function(t){(t>this._data.length||t<0)&&Rd.IndexSizeError();var r=this._data.substring(t),n=this.ownerDocument.createTextNode(r);this.data=this.data.substring(0,t);var i=this.parentNode;return i!==null&&i.insertBefore(n,this.nextSibling),n}},wholeText:{get:function(){for(var t=this.textContent,r=this.nextSibling;r&&r.nodeType===Od.TEXT_NODE;r=r.nextSibling)t+=r.textContent;return t}},replaceWholeText:{value:Rd.nyi},clone:{value:function(){return new Lc(this.ownerDocument,this._data)}}})});var Mc=C((c3,Md)=>{"use strict";Md.exports=kc;var cI=Ke(),kd=ki();function kc(e,t){kd.call(this),this.nodeType=cI.COMMENT_NODE,this.ownerDocument=e,this._data=t}var Fi={get:function(){return this._data},set:function(e){e==null?e="":e=String(e),this._data=e,this.rooted&&this.ownerDocument.mutateValue(this)}};kc.prototype=Object.create(kd.prototype,{nodeName:{value:"#comment"},nodeValue:Fi,textContent:Fi,innerText:Fi,data:{get:Fi.get,set:function(e){Fi.set.call(this,e===null?"":String(e))}},clone:{value:function(){return new kc(this.ownerDocument,this._data)}}})});var qc=C((u3,Pd)=>{"use strict";Pd.exports=Fc;var uI=Ke(),lI=cn(),qd=eo(),lo=Vn(),fI=ao(),Fd=ve();function Fc(e){qd.call(this),this.nodeType=uI.DOCUMENT_FRAGMENT_NODE,this.ownerDocument=e}Fc.prototype=Object.create(qd.prototype,{nodeName:{value:"#document-fragment"},nodeValue:{get:function(){return null},set:function(){}},textContent:Object.getOwnPropertyDescriptor(lo.prototype,"textContent"),innerText:Object.getOwnPropertyDescriptor(lo.prototype,"innerText"),querySelector:{value:function(e){var t=this.querySelectorAll(e);return t.length?t[0]:null}},querySelectorAll:{value:function(e){var t=Object.create(this);t.isHTML=!0,t.getElementsByTagName=lo.prototype.getElementsByTagName,t.nextElement=Object.getOwnPropertyDescriptor(lo.prototype,"firstElementChild").get;var r=fI(e,t);return r.item?r:new lI(r)}},clone:{value:function(){return new Fc(this.ownerDocument)}},isEqual:{value:function(t){return!0}},innerHTML:{get:function(){return this.serialize()},set:Fd.nyi},outerHTML:{get:function(){return this.serialize()},set:Fd.nyi}})});var Hc=C((l3,Ud)=>{"use strict";Ud.exports=Pc;var pI=Ke(),Hd=ki();function Pc(e,t,r){Hd.call(this),this.nodeType=pI.PROCESSING_INSTRUCTION_NODE,this.ownerDocument=e,this.target=t,this._data=r}var qi={get:function(){return this._data},set:function(e){e==null?e="":e=String(e),this._data=e,this.rooted&&this.ownerDocument.mutateValue(this)}};Pc.prototype=Object.create(Hd.prototype,{nodeName:{get:function(){return this.target}},nodeValue:qi,textContent:qi,innerText:qi,data:{get:qi.get,set:function(e){qi.set.call(this,e===null?"":String(e))}},clone:{value:function(){return new Pc(this.ownerDocument,this.target,this._data)}},isEqual:{value:function(t){return this.target===t.target&&this._data===t._data}}})});var Pi=C((f3,Bd)=>{"use strict";var Uc={FILTER_ACCEPT:1,FILTER_REJECT:2,FILTER_SKIP:3,SHOW_ALL:4294967295,SHOW_ELEMENT:1,SHOW_ATTRIBUTE:2,SHOW_TEXT:4,SHOW_CDATA_SECTION:8,SHOW_ENTITY_REFERENCE:16,SHOW_ENTITY:32,SHOW_PROCESSING_INSTRUCTION:64,SHOW_COMMENT:128,SHOW_DOCUMENT:256,SHOW_DOCUMENT_TYPE:512,SHOW_DOCUMENT_FRAGMENT:1024,SHOW_NOTATION:2048};Bd.exports=Uc.constructor=Uc.prototype=Uc});var jc=C((d3,Vd)=>{"use strict";var p3=Vd.exports={nextSkippingChildren:dI,nextAncestorSibling:Bc,next:xI,previous:mI,deepLastChild:jd};function dI(e,t){return e===t?null:e.nextSibling!==null?e.nextSibling:Bc(e,t)}function Bc(e,t){for(e=e.parentNode;e!==null;e=e.parentNode){if(e===t)return null;if(e.nextSibling!==null)return e.nextSibling}return null}function xI(e,t){var r;return r=e.firstChild,r!==null?r:e===t?null:(r=e.nextSibling,r!==null?r:Bc(e,t))}function jd(e){for(;e.lastChild;)e=e.lastChild;return e}function mI(e,t){var r;return r=e.previousSibling,r!==null?jd(r):(r=e.parentNode,r===t?null:r)}});var Qd=C((x3,Xd)=>{"use strict";Xd.exports=zd;var hI=Ke(),$e=Pi(),Gd=jc(),Wd=ve(),Vc={first:"firstChild",last:"lastChild",next:"firstChild",previous:"lastChild"},Gc={first:"nextSibling",last:"previousSibling",next:"nextSibling",previous:"previousSibling"};function Kd(e,t){var r,n,i,s,c;for(n=e._currentNode[Vc[t]];n!==null;){if(s=e._internalFilter(n),s===$e.FILTER_ACCEPT)return e._currentNode=n,n;if(s===$e.FILTER_SKIP&&(r=n[Vc[t]],r!==null)){n=r;continue}for(;n!==null;){if(c=n[Gc[t]],c!==null){n=c;break}if(i=n.parentNode,i===null||i===e.root||i===e._currentNode)return null;n=i}}return null}function $d(e,t){var r,n,i;if(r=e._currentNode,r===e.root)return null;for(;;){for(i=r[Gc[t]];i!==null;){if(r=i,n=e._internalFilter(r),n===$e.FILTER_ACCEPT)return e._currentNode=r,r;i=r[Vc[t]],(n===$e.FILTER_REJECT||i===null)&&(i=r[Gc[t]])}if(r=r.parentNode,r===null||r===e.root||e._internalFilter(r)===$e.FILTER_ACCEPT)return null}}function zd(e,t,r){(!e||!e.nodeType)&&Wd.NotSupportedError(),this._root=e,this._whatToShow=Number(t)||0,this._filter=r||null,this._active=!1,this._currentNode=e}Object.defineProperties(zd.prototype,{root:{get:function(){return this._root}},whatToShow:{get:function(){return this._whatToShow}},filter:{get:function(){return this._filter}},currentNode:{get:function(){return this._currentNode},set:function(t){if(!(t instanceof hI))throw new TypeError("Not a Node");this._currentNode=t}},_internalFilter:{value:function(t){var r,n;if(this._active&&Wd.InvalidStateError(),!(1<<t.nodeType-1&this._whatToShow))return $e.FILTER_SKIP;if(n=this._filter,n===null)r=$e.FILTER_ACCEPT;else{this._active=!0;try{typeof n=="function"?r=n(t):r=n.acceptNode(t)}finally{this._active=!1}}return+r}},parentNode:{value:function(){for(var t=this._currentNode;t!==this.root;){if(t=t.parentNode,t===null)return null;if(this._internalFilter(t)===$e.FILTER_ACCEPT)return this._currentNode=t,t}return null}},firstChild:{value:function(){return Kd(this,"first")}},lastChild:{value:function(){return Kd(this,"last")}},previousSibling:{value:function(){return $d(this,"previous")}},nextSibling:{value:function(){return $d(this,"next")}},previousNode:{value:function(){var t,r,n,i;for(t=this._currentNode;t!==this._root;){for(n=t.previousSibling;n;n=t.previousSibling)if(t=n,r=this._internalFilter(t),r!==$e.FILTER_REJECT){for(i=t.lastChild;i&&(t=i,r=this._internalFilter(t),r!==$e.FILTER_REJECT);i=t.lastChild);if(r===$e.FILTER_ACCEPT)return this._currentNode=t,t}if(t===this.root||t.parentNode===null)return null;if(t=t.parentNode,this._internalFilter(t)===$e.FILTER_ACCEPT)return this._currentNode=t,t}return null}},nextNode:{value:function(){var t,r,n,i;t=this._currentNode,r=$e.FILTER_ACCEPT;e:for(;;){for(n=t.firstChild;n;n=t.firstChild){if(t=n,r=this._internalFilter(t),r===$e.FILTER_ACCEPT)return this._currentNode=t,t;if(r===$e.FILTER_REJECT)break}for(i=Gd.nextSkippingChildren(t,this.root);i;i=Gd.nextSkippingChildren(t,this.root)){if(t=i,r=this._internalFilter(t),r===$e.FILTER_ACCEPT)return this._currentNode=t,t;if(r===$e.FILTER_SKIP)continue e}return null}}},toString:{value:function(){return"[object TreeWalker]"}}})});var rx=C((m3,tx)=>{"use strict";tx.exports=ex;var Kc=Pi(),$c=jc(),Jd=ve();function gI(e,t,r){return r?$c.next(e,t):e===t?null:$c.previous(e,null)}function Yd(e,t){for(;t;t=t.parentNode)if(e===t)return!0;return!1}function Zd(e,t){var r,n;for(r=e._referenceNode,n=e._pointerBeforeReferenceNode;;){if(n===t)n=!n;else if(r=gI(r,e._root,t),r===null)return null;var i=e._internalFilter(r);if(i===Kc.FILTER_ACCEPT)break}return e._referenceNode=r,e._pointerBeforeReferenceNode=n,r}function ex(e,t,r){(!e||!e.nodeType)&&Jd.NotSupportedError(),this._root=e,this._referenceNode=e,this._pointerBeforeReferenceNode=!0,this._whatToShow=Number(t)||0,this._filter=r||null,this._active=!1,e.doc._attachNodeIterator(this)}Object.defineProperties(ex.prototype,{root:{get:function(){return this._root}},referenceNode:{get:function(){return this._referenceNode}},pointerBeforeReferenceNode:{get:function(){return this._pointerBeforeReferenceNode}},whatToShow:{get:function(){return this._whatToShow}},filter:{get:function(){return this._filter}},_internalFilter:{value:function(t){var r,n;if(this._active&&Jd.InvalidStateError(),!(1<<t.nodeType-1&this._whatToShow))return Kc.FILTER_SKIP;if(n=this._filter,n===null)r=Kc.FILTER_ACCEPT;else{this._active=!0;try{typeof n=="function"?r=n(t):r=n.acceptNode(t)}finally{this._active=!1}}return+r}},_preremove:{value:function(t){if(!Yd(t,this._root)&&Yd(t,this._referenceNode)){if(this._pointerBeforeReferenceNode){for(var r=t;r.lastChild;)r=r.lastChild;if(r=$c.next(r,this.root),r){this._referenceNode=r;return}this._pointerBeforeReferenceNode=!1}if(t.previousSibling===null)this._referenceNode=t.parentNode;else{this._referenceNode=t.previousSibling;var n;for(n=this._referenceNode.lastChild;n;n=this._referenceNode.lastChild)this._referenceNode=n}}}},nextNode:{value:function(){return Zd(this,!0)}},previousNode:{value:function(){return Zd(this,!1)}},detach:{value:function(){}},toString:{value:function(){return"[object NodeIterator]"}}})});var fo=C((h3,nx)=>{"use strict";nx.exports=We;function We(e){if(!e)return Object.create(We.prototype);this.url=e.replace(/^[ \t\n\r\f]+|[ \t\n\r\f]+$/g,"");var t=We.pattern.exec(this.url);if(t){if(t[2]&&(this.scheme=t[2]),t[4]){var r=t[4].match(We.userinfoPattern);if(r&&(this.username=r[1],this.password=r[3],t[4]=t[4].substring(r[0].length)),t[4].match(We.portPattern)){var n=t[4].lastIndexOf(":");this.host=t[4].substring(0,n),this.port=t[4].substring(n+1)}else this.host=t[4]}t[5]&&(this.path=t[5]),t[6]&&(this.query=t[7]),t[8]&&(this.fragment=t[9])}}We.pattern=/^(([^:\/?#]+):)?(\/\/([^\/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/;We.userinfoPattern=/^([^@:]*)(:([^@]*))?@/;We.portPattern=/:\d+$/;We.authorityPattern=/^[^:\/?#]+:\/\//;We.hierarchyPattern=/^[^:\/?#]+:\//;We.percentEncode=function(t){var r=t.charCodeAt(0);if(r<256)return"%"+r.toString(16);throw Error("can't percent-encode codepoints > 255 yet")};We.prototype={constructor:We,isAbsolute:function(){return!!this.scheme},isAuthorityBased:function(){return We.authorityPattern.test(this.url)},isHierarchical:function(){return We.hierarchyPattern.test(this.url)},toString:function(){var e="";return this.scheme!==void 0&&(e+=this.scheme+":"),this.isAbsolute()&&(e+="//",(this.username||this.password)&&(e+=this.username||"",this.password&&(e+=":"+this.password),e+="@"),this.host&&(e+=this.host)),this.port!==void 0&&(e+=":"+this.port),this.path!==void 0&&(e+=this.path),this.query!==void 0&&(e+="?"+this.query),this.fragment!==void 0&&(e+="#"+this.fragment),e},resolve:function(e){var t=this,r=new We(e),n=new We;return r.scheme!==void 0?(n.scheme=r.scheme,n.username=r.username,n.password=r.password,n.host=r.host,n.port=r.port,n.path=s(r.path),n.query=r.query):(n.scheme=t.scheme,r.host!==void 0?(n.username=r.username,n.password=r.password,n.host=r.host,n.port=r.port,n.path=s(r.path),n.query=r.query):(n.username=t.username,n.password=t.password,n.host=t.host,n.port=t.port,r.path?(r.path.charAt(0)==="/"?n.path=s(r.path):(n.path=i(t.path,r.path),n.path=s(n.path)),n.query=r.query):(n.path=t.path,r.query!==void 0?n.query=r.query:n.query=t.query))),n.fragment=r.fragment,n.toString();function i(c,d){if(t.host!==void 0&&!t.path)return"/"+d;var b=c.lastIndexOf("/");return b===-1?d:c.substring(0,b+1)+d}function s(c){if(!c)return c;for(var d="";c.length>0;){if(c==="."||c===".."){c="";break}var b=c.substring(0,2),T=c.substring(0,3),S=c.substring(0,4);if(T==="../")c=c.substring(3);else if(b==="./")c=c.substring(2);else if(T==="/./")c="/"+c.substring(3);else if(b==="/."&&c.length===2)c="/";else if(S==="/../"||T==="/.."&&c.length===3)c="/"+c.substring(4),d=d.replace(/\/?[^\/]*$/,"");else{var ce=c.match(/(\/?([^\/]*))/)[0];d+=ce,c=c.substring(ce.length)}}return d}}}});var ox=C((g3,ax)=>{"use strict";ax.exports=Wc;var ix=Fn();function Wc(e,t){ix.call(this,e,t)}Wc.prototype=Object.create(ix.prototype,{constructor:{value:Wc}})});var zc=C((b3,sx)=>{"use strict";sx.exports={Event:Fn(),UIEvent:Qs(),MouseEvent:Zs(),CustomEvent:ox()}});var ux=C(Gn=>{"use strict";Object.defineProperty(Gn,"__esModule",{value:!0});Gn.hyphenate=Gn.parse=void 0;function bI(e){let t=[],r=0,n=0,i=0,s=0,c=0,d=null;for(;r<e.length;)switch(e.charCodeAt(r++)){case 40:n++;break;case 41:n--;break;case 39:i===0?i=39:i===39&&e.charCodeAt(r-1)!==92&&(i=0);break;case 34:i===0?i=34:i===34&&e.charCodeAt(r-1)!==92&&(i=0);break;case 58:!d&&n===0&&i===0&&(d=cx(e.substring(c,r-1).trim()),s=r);break;case 59:if(d&&s>0&&n===0&&i===0){let T=e.substring(s,r-1).trim();t.push(d,T),c=r,s=0,d=null}break}if(d&&s){let b=e.slice(s).trim();t.push(d,b)}return t}Gn.parse=bI;function cx(e){return e.replace(/[a-z][A-Z]/g,t=>t.charAt(0)+"-"+t.charAt(1)).toLowerCase()}Gn.hyphenate=cx});var po=C((y3,xx)=>{"use strict";var{parse:EI}=ux();xx.exports=function(e){let t=new dx(e),r={get:function(n,i){return i in n?n[i]:n.getPropertyValue(lx(i))},has:function(n,i){return!0},set:function(n,i,s){return i in n?n[i]=s:n.setProperty(lx(i),s??void 0),!0}};return new Proxy(t,r)};function lx(e){return e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function dx(e){this._element=e}var fx="!important";function px(e){let t={property:{},priority:{}};if(!e)return t;let r=EI(e);if(r.length<2)return t;for(let n=0;n<r.length;n+=2){let i=r[n],s=r[n+1];s.endsWith(fx)&&(t.priority[i]="important",s=s.slice(0,-fx.length).trim()),t.property[i]=s}return t}var Kn={};dx.prototype=Object.create(Object.prototype,{_parsed:{get:function(){if(!this._parsedStyles||this.cssText!==this._lastParsedText){var e=this.cssText;this._parsedStyles=px(e),this._lastParsedText=e,delete this._names}return this._parsedStyles}},_serialize:{value:function(){var e=this._parsed,t="";for(var r in e.property)t&&(t+=" "),t+=r+": "+e.property[r],e.priority[r]&&(t+=" !"+e.priority[r]),t+=";";this.cssText=t,this._lastParsedText=t,delete this._names}},cssText:{get:function(){return this._element.getAttribute("style")},set:function(e){this._element.setAttribute("style",e)}},length:{get:function(){return this._names||(this._names=Object.getOwnPropertyNames(this._parsed.property)),this._names.length}},item:{value:function(e){return this._names||(this._names=Object.getOwnPropertyNames(this._parsed.property)),this._names[e]}},getPropertyValue:{value:function(e){return e=e.toLowerCase(),this._parsed.property[e]||""}},getPropertyPriority:{value:function(e){return e=e.toLowerCase(),this._parsed.priority[e]||""}},setProperty:{value:function(e,t,r){if(e=e.toLowerCase(),t==null&&(t=""),r==null&&(r=""),t!==Kn&&(t=""+t),t=t.trim(),t===""){this.removeProperty(e);return}if(!(r!==""&&r!==Kn&&!/^important$/i.test(r))){var n=this._parsed;if(t===Kn){if(!n.property[e])return;r!==""?n.priority[e]="important":delete n.priority[e]}else{if(t.indexOf(";")!==-1)return;var i=px(e+":"+t);if(Object.getOwnPropertyNames(i.property).length===0||Object.getOwnPropertyNames(i.priority).length!==0)return;for(var s in i.property)n.property[s]=i.property[s],r!==Kn&&(r!==""?n.priority[s]="important":n.priority[s]&&delete n.priority[s])}this._serialize()}}},setPropertyValue:{value:function(e,t){return this.setProperty(e,t,Kn)}},setPropertyPriority:{value:function(e,t){return this.setProperty(e,Kn,t)}},removeProperty:{value:function(e){e=e.toLowerCase();var t=this._parsed;e in t.property&&(delete t.property[e],delete t.priority[e],this._serialize())}}})});var Xc=C((T3,mx)=>{"use strict";var Ue=fo();mx.exports=Hi;function Hi(){}Hi.prototype=Object.create(Object.prototype,{_url:{get:function(){return new Ue(this.href)}},protocol:{get:function(){var e=this._url;return e&&e.scheme?e.scheme+":":":"},set:function(e){var t=this.href,r=new Ue(t);r.isAbsolute()&&(e=e.replace(/:+$/,""),e=e.replace(/[^-+\.a-zA-Z0-9]/g,Ue.percentEncode),e.length>0&&(r.scheme=e,t=r.toString())),this.href=t}},host:{get:function(){var e=this._url;return e.isAbsolute()&&e.isAuthorityBased()?e.host+(e.port?":"+e.port:""):""},set:function(e){var t=this.href,r=new Ue(t);r.isAbsolute()&&r.isAuthorityBased()&&(e=e.replace(/[^-+\._~!$&'()*,;:=a-zA-Z0-9]/g,Ue.percentEncode),e.length>0&&(r.host=e,delete r.port,t=r.toString())),this.href=t}},hostname:{get:function(){var e=this._url;return e.isAbsolute()&&e.isAuthorityBased()?e.host:""},set:function(e){var t=this.href,r=new Ue(t);r.isAbsolute()&&r.isAuthorityBased()&&(e=e.replace(/^\/+/,""),e=e.replace(/[^-+\._~!$&'()*,;:=a-zA-Z0-9]/g,Ue.percentEncode),e.length>0&&(r.host=e,t=r.toString())),this.href=t}},port:{get:function(){var e=this._url;return e.isAbsolute()&&e.isAuthorityBased()&&e.port!==void 0?e.port:""},set:function(e){var t=this.href,r=new Ue(t);r.isAbsolute()&&r.isAuthorityBased()&&(e=""+e,e=e.replace(/[^0-9].*$/,""),e=e.replace(/^0+/,""),e.length===0&&(e="0"),parseInt(e,10)<=65535&&(r.port=e,t=r.toString())),this.href=t}},pathname:{get:function(){var e=this._url;return e.isAbsolute()&&e.isHierarchical()?e.path:""},set:function(e){var t=this.href,r=new Ue(t);r.isAbsolute()&&r.isHierarchical()&&(e.charAt(0)!=="/"&&(e="/"+e),e=e.replace(/[^-+\._~!$&'()*,;:=@\/a-zA-Z0-9]/g,Ue.percentEncode),r.path=e,t=r.toString()),this.href=t}},search:{get:function(){var e=this._url;return e.isAbsolute()&&e.isHierarchical()&&e.query!==void 0?"?"+e.query:""},set:function(e){var t=this.href,r=new Ue(t);r.isAbsolute()&&r.isHierarchical()&&(e.charAt(0)==="?"&&(e=e.substring(1)),e=e.replace(/[^-+\._~!$&'()*,;:=@\/?a-zA-Z0-9]/g,Ue.percentEncode),r.query=e,t=r.toString()),this.href=t}},hash:{get:function(){var e=this._url;return e==null||e.fragment==null||e.fragment===""?"":"#"+e.fragment},set:function(e){var t=this.href,r=new Ue(t);e.charAt(0)==="#"&&(e=e.substring(1)),e=e.replace(/[^-+\._~!$&'()*,;:=@\/?a-zA-Z0-9]/g,Ue.percentEncode),r.fragment=e,t=r.toString(),this.href=t}},username:{get:function(){var e=this._url;return e.username||""},set:function(e){var t=this.href,r=new Ue(t);r.isAbsolute()&&(e=e.replace(/[\x00-\x1F\x7F-\uFFFF "#<>?`\/@\\:]/g,Ue.percentEncode),r.username=e,t=r.toString()),this.href=t}},password:{get:function(){var e=this._url;return e.password||""},set:function(e){var t=this.href,r=new Ue(t);r.isAbsolute()&&(e===""?r.password=null:(e=e.replace(/[\x00-\x1F\x7F-\uFFFF "#<>?`\/@\\]/g,Ue.percentEncode),r.password=e),t=r.toString()),this.href=t}},origin:{get:function(){var e=this._url;if(e==null)return"";var t=function(r){var n=[e.scheme,e.host,+e.port||r];return n[0]+"://"+n[1]+(n[2]===r?"":":"+n[2])};switch(e.scheme){case"ftp":return t(21);case"gopher":return t(70);case"http":case"ws":return t(80);case"https":case"wss":return t(443);default:return e.scheme+"://"}}}});Hi._inherit=function(e){Object.getOwnPropertyNames(Hi.prototype).forEach(function(t){if(!(t==="constructor"||t==="href")){var r=Object.getOwnPropertyDescriptor(Hi.prototype,t);Object.defineProperty(e,t,r)}})}});var Qc=C((_3,bx)=>{"use strict";var hx=hc(),yI=Ya().isApiWritable;bx.exports=function(e,t,r,n){var i=e.ctor;if(i){var s=e.props||{};if(e.attributes)for(var c in e.attributes){var d=e.attributes[c];(typeof d!="object"||Array.isArray(d))&&(d={type:d}),d.name||(d.name=c.toLowerCase()),s[c]=hx.property(d)}s.constructor={value:i,writable:yI},i.prototype=Object.create((e.superclass||t).prototype,s),e.events&&_I(i,e.events),r[e.name]=i}else i=t;return(e.tags||e.tag&&[e.tag]||[]).forEach(function(b){n[b]=i}),i};function gx(e,t,r,n){this.body=e,this.document=t,this.form=r,this.element=n}gx.prototype.build=function(){return()=>{}};function TI(e,t,r,n){var i=e.ownerDocument||Object.create(null),s=e.form||Object.create(null);e[t]=new gx(n,i,s,e).build()}function _I(e,t){var r=e.prototype;t.forEach(function(n){Object.defineProperty(r,"on"+n,{get:function(){return this._getEventHandler(n)},set:function(i){this._setEventHandler(n,i)}}),hx.registerChangeHandler(e,"on"+n,TI)})}});var ho=C(mo=>{"use strict";var Yc=Ke(),Ex=Vn(),II=po(),ht=ve(),yx=Xc(),wI=Qc(),pr=mo.elements={},Ui=Object.create(null);mo.createElement=function(e,t,r){var n=Ui[t]||vI;return new n(e,t,r)};function w(e){return wI(e,v,pr,Ui)}function Ne(e){return{get:function(){var t=this._getattr(e);if(t===null)return"";var r=this.doc._resolve(t);return r===null?t:r},set:function(t){this._setattr(e,t)}}}function xo(e){return{get:function(){var t=this._getattr(e);return t===null?null:t.toLowerCase()==="use-credentials"?"use-credentials":"anonymous"},set:function(t){t==null?this.removeAttribute(e):this._setattr(e,t)}}}var $n={type:["","no-referrer","no-referrer-when-downgrade","same-origin","origin","strict-origin","origin-when-cross-origin","strict-origin-when-cross-origin","unsafe-url"],missing:""},SI={A:!0,LINK:!0,BUTTON:!0,INPUT:!0,SELECT:!0,TEXTAREA:!0,COMMAND:!0},Bt=function(e,t,r){v.call(this,e,t,r),this._form=null},v=mo.HTMLElement=w({superclass:Ex,name:"HTMLElement",ctor:function(t,r,n){Ex.call(this,t,r,ht.NAMESPACE.HTML,n)},props:{dangerouslySetInnerHTML:{set:function(e){this._innerHTML=e}},innerHTML:{get:function(){return this.serialize()},set:function(e){var t=this.ownerDocument.implementation.mozHTMLParser(this.ownerDocument._address,this);t.parse(e===null?"":String(e),!0);for(var r=this instanceof Ui.template?this.content:this;r.hasChildNodes();)r.removeChild(r.firstChild);r.appendChild(t._asDocumentFragment())}},style:{get:function(){return this._style||(this._style=new II(this)),this._style},set:function(e){e==null&&(e=""),this._setattr("style",String(e))}},blur:{value:function(){}},focus:{value:function(){}},forceSpellCheck:{value:function(){}},click:{value:function(){if(!this._click_in_progress){this._click_in_progress=!0;try{this._pre_click_activation_steps&&this._pre_click_activation_steps();var e=this.ownerDocument.createEvent("MouseEvent");e.initMouseEvent("click",!0,!0,this.ownerDocument.defaultView,1,0,0,0,0,!1,!1,!1,!1,0,null);var t=this.dispatchEvent(e);t?this._post_click_activation_steps&&this._post_click_activation_steps(e):this._cancelled_activation_steps&&this._cancelled_activation_steps()}finally{this._click_in_progress=!1}}}},submit:{value:ht.nyi}},attributes:{title:String,lang:String,dir:{type:["ltr","rtl","auto"],missing:""},draggable:{type:["true","false"],treatNullAsEmptyString:!0},spellcheck:{type:["true","false"],missing:""},enterKeyHint:{type:["enter","done","go","next","previous","search","send"],missing:""},autoCapitalize:{type:["off","on","none","sentences","words","characters"],missing:""},autoFocus:Boolean,accessKey:String,nonce:String,hidden:Boolean,translate:{type:["no","yes"],missing:""},tabIndex:{type:"long",default:function(){return this.tagName in SI||this.contentEditable?0:-1}}},events:["abort","canplay","canplaythrough","change","click","contextmenu","cuechange","dblclick","drag","dragend","dragenter","dragleave","dragover","dragstart","drop","durationchange","emptied","ended","input","invalid","keydown","keypress","keyup","loadeddata","loadedmetadata","loadstart","mousedown","mousemove","mouseout","mouseover","mouseup","mousewheel","pause","play","playing","progress","ratechange","readystatechange","reset","seeked","seeking","select","show","stalled","submit","suspend","timeupdate","volumechange","waiting","blur","error","focus","load","scroll"]}),vI=w({name:"HTMLUnknownElement",ctor:function(t,r,n){v.call(this,t,r,n)}}),jt={form:{get:function(){return this._form}}};w({tag:"a",name:"HTMLAnchorElement",ctor:function(t,r,n){v.call(this,t,r,n)},props:{_post_click_activation_steps:{value:function(e){this.href&&(this.ownerDocument.defaultView.location=this.href)}}},attributes:{href:Ne,ping:String,download:String,target:String,rel:String,media:String,hreflang:String,type:String,referrerPolicy:$n,coords:String,charset:String,name:String,rev:String,shape:String}});yx._inherit(Ui.a.prototype);w({tag:"area",name:"HTMLAreaElement",ctor:function(t,r,n){v.call(this,t,r,n)},attributes:{alt:String,target:String,download:String,rel:String,media:String,href:Ne,hreflang:String,type:String,shape:String,coords:String,ping:String,referrerPolicy:$n,noHref:Boolean}});yx._inherit(Ui.area.prototype);w({tag:"br",name:"HTMLBRElement",ctor:function(t,r,n){v.call(this,t,r,n)},attributes:{clear:String}});w({tag:"base",name:"HTMLBaseElement",ctor:function(t,r,n){v.call(this,t,r,n)},attributes:{target:String}});w({tag:"body",name:"HTMLBodyElement",ctor:function(t,r,n){v.call(this,t,r,n)},events:["afterprint","beforeprint","beforeunload","blur","error","focus","hashchange","load","message","offline","online","pagehide","pageshow","popstate","resize","scroll","storage","unload"],attributes:{text:{type:String,treatNullAsEmptyString:!0},link:{type:String,treatNullAsEmptyString:!0},vLink:{type:String,treatNullAsEmptyString:!0},aLink:{type:String,treatNullAsEmptyString:!0},bgColor:{type:String,treatNullAsEmptyString:!0},background:String}});w({tag:"button",name:"HTMLButtonElement",ctor:function(t,r,n){Bt.call(this,t,r,n)},props:jt,attributes:{name:String,value:String,disabled:Boolean,autofocus:Boolean,type:{type:["submit","reset","button","menu"],missing:"submit"},formTarget:String,formAction:Ne,formNoValidate:Boolean,formMethod:{type:["get","post","dialog"],invalid:"get",missing:""},formEnctype:{type:["application/x-www-form-urlencoded","multipart/form-data","text/plain"],invalid:"application/x-www-form-urlencoded",missing:""}}});w({tag:"dl",name:"HTMLDListElement",ctor:function(t,r,n){v.call(this,t,r,n)},attributes:{compact:Boolean}});w({tag:"data",name:"HTMLDataElement",ctor:function(t,r,n){v.call(this,t,r,n)},attributes:{value:String}});w({tag:"datalist",name:"HTMLDataListElement",ctor:function(t,r,n){v.call(this,t,r,n)}});w({tag:"details",name:"HTMLDetailsElement",ctor:function(t,r,n){v.call(this,t,r,n)},attributes:{open:Boolean}});w({tag:"div",name:"HTMLDivElement",ctor:function(t,r,n){v.call(this,t,r,n)},attributes:{align:String}});w({tag:"embed",name:"HTMLEmbedElement",ctor:function(t,r,n){v.call(this,t,r,n)},attributes:{src:Ne,type:String,width:String,height:String,align:String,name:String}});w({tag:"fieldset",name:"HTMLFieldSetElement",ctor:function(t,r,n){Bt.call(this,t,r,n)},props:jt,attributes:{disabled:Boolean,name:String}});w({tag:"form",name:"HTMLFormElement",ctor:function(t,r,n){v.call(this,t,r,n)},attributes:{action:String,autocomplete:{type:["on","off"],missing:"on"},name:String,acceptCharset:{name:"accept-charset"},target:String,noValidate:Boolean,method:{type:["get","post","dialog"],invalid:"get",missing:"get"},enctype:{type:["application/x-www-form-urlencoded","multipart/form-data","text/plain"],invalid:"application/x-www-form-urlencoded",missing:"application/x-www-form-urlencoded"},encoding:{name:"enctype",type:["application/x-www-form-urlencoded","multipart/form-data","text/plain"],invalid:"application/x-www-form-urlencoded",missing:"application/x-www-form-urlencoded"}}});w({tag:"hr",name:"HTMLHRElement",ctor:function(t,r,n){v.call(this,t,r,n)},attributes:{align:String,color:String,noShade:Boolean,size:String,width:String}});w({tag:"head",name:"HTMLHeadElement",ctor:function(t,r,n){v.call(this,t,r,n)}});w({tags:["h1","h2","h3","h4","h5","h6"],name:"HTMLHeadingElement",ctor:function(t,r,n){v.call(this,t,r,n)},attributes:{align:String}});w({tag:"html",name:"HTMLHtmlElement",ctor:function(t,r,n){v.call(this,t,r,n)},attributes:{xmlns:Ne,version:String}});w({tag:"iframe",name:"HTMLIFrameElement",ctor:function(t,r,n){v.call(this,t,r,n)},attributes:{src:Ne,srcdoc:String,name:String,width:String,height:String,seamless:Boolean,allow:Boolean,allowFullscreen:Boolean,allowUserMedia:Boolean,allowPaymentRequest:Boolean,referrerPolicy:$n,loading:{type:["eager","lazy"],treatNullAsEmptyString:!0},align:String,scrolling:String,frameBorder:String,longDesc:Ne,marginHeight:{type:String,treatNullAsEmptyString:!0},marginWidth:{type:String,treatNullAsEmptyString:!0}}});w({tag:"img",name:"HTMLImageElement",ctor:function(t,r,n){v.call(this,t,r,n)},attributes:{alt:String,src:Ne,srcset:String,crossOrigin:xo,useMap:String,isMap:Boolean,sizes:String,height:{type:"unsigned long",default:0},width:{type:"unsigned long",default:0},referrerPolicy:$n,loading:{type:["eager","lazy"],missing:""},name:String,lowsrc:Ne,align:String,hspace:{type:"unsigned long",default:0},vspace:{type:"unsigned long",default:0},longDesc:Ne,border:{type:String,treatNullAsEmptyString:!0}}});w({tag:"input",name:"HTMLInputElement",ctor:function(t,r,n){Bt.call(this,t,r,n)},props:{form:jt.form,_post_click_activation_steps:{value:function(e){if(this.type==="checkbox")this.checked=!this.checked;else if(this.type==="radio")for(var t=this.form.getElementsByName(this.name),r=t.length-1;r>=0;r--){var n=t[r];n.checked=n===this}}}},attributes:{name:String,disabled:Boolean,autofocus:Boolean,accept:String,alt:String,max:String,min:String,pattern:String,placeholder:String,step:String,dirName:String,defaultValue:{name:"value"},multiple:Boolean,required:Boolean,readOnly:Boolean,checked:Boolean,value:String,src:Ne,defaultChecked:{name:"checked",type:Boolean},size:{type:"unsigned long",default:20,min:1,setmin:1},width:{type:"unsigned long",min:0,setmin:0,default:0},height:{type:"unsigned long",min:0,setmin:0,default:0},minLength:{type:"unsigned long",min:0,setmin:0,default:-1},maxLength:{type:"unsigned long",min:0,setmin:0,default:-1},autocomplete:String,type:{type:["text","hidden","search","tel","url","email","password","datetime","date","month","week","time","datetime-local","number","range","color","checkbox","radio","file","submit","image","reset","button"],missing:"text"},formTarget:String,formNoValidate:Boolean,formMethod:{type:["get","post"],invalid:"get",missing:""},formEnctype:{type:["application/x-www-form-urlencoded","multipart/form-data","text/plain"],invalid:"application/x-www-form-urlencoded",missing:""},inputMode:{type:["verbatim","latin","latin-name","latin-prose","full-width-latin","kana","kana-name","katakana","numeric","tel","email","url"],missing:""},align:String,useMap:String}});w({tag:"keygen",name:"HTMLKeygenElement",ctor:function(t,r,n){Bt.call(this,t,r,n)},props:jt,attributes:{name:String,disabled:Boolean,autofocus:Boolean,challenge:String,keytype:{type:["rsa"],missing:""}}});w({tag:"li",name:"HTMLLIElement",ctor:function(t,r,n){v.call(this,t,r,n)},attributes:{value:{type:"long",default:0},type:String}});w({tag:"label",name:"HTMLLabelElement",ctor:function(t,r,n){Bt.call(this,t,r,n)},props:jt,attributes:{htmlFor:{name:"for",type:String}}});w({tag:"legend",name:"HTMLLegendElement",ctor:function(t,r,n){v.call(this,t,r,n)},attributes:{align:String}});w({tag:"link",name:"HTMLLinkElement",ctor:function(t,r,n){v.call(this,t,r,n)},attributes:{href:Ne,rel:String,media:String,hreflang:String,type:String,crossOrigin:xo,nonce:String,integrity:String,referrerPolicy:$n,imageSizes:String,imageSrcset:String,charset:String,rev:String,target:String}});w({tag:"map",name:"HTMLMapElement",ctor:function(t,r,n){v.call(this,t,r,n)},attributes:{name:String}});w({tag:"menu",name:"HTMLMenuElement",ctor:function(t,r,n){v.call(this,t,r,n)},attributes:{type:{type:["context","popup","toolbar"],missing:"toolbar"},label:String,compact:Boolean}});w({tag:"meta",name:"HTMLMetaElement",ctor:function(t,r,n){v.call(this,t,r,n)},attributes:{name:String,content:String,httpEquiv:{name:"http-equiv",type:String},scheme:String}});w({tag:"meter",name:"HTMLMeterElement",ctor:function(t,r,n){Bt.call(this,t,r,n)},props:jt});w({tags:["ins","del"],name:"HTMLModElement",ctor:function(t,r,n){v.call(this,t,r,n)},attributes:{cite:Ne,dateTime:String}});w({tag:"ol",name:"HTMLOListElement",ctor:function(t,r,n){v.call(this,t,r,n)},props:{_numitems:{get:function(){var e=0;return this.childNodes.forEach(function(t){t.nodeType===Yc.ELEMENT_NODE&&t.tagName==="LI"&&e++}),e}}},attributes:{type:String,reversed:Boolean,start:{type:"long",default:function(){return this.reversed?this._numitems:1}},compact:Boolean}});w({tag:"object",name:"HTMLObjectElement",ctor:function(t,r,n){Bt.call(this,t,r,n)},props:jt,attributes:{data:Ne,type:String,name:String,useMap:String,typeMustMatch:Boolean,width:String,height:String,align:String,archive:String,code:String,declare:Boolean,hspace:{type:"unsigned long",default:0},standby:String,vspace:{type:"unsigned long",default:0},codeBase:Ne,codeType:String,border:{type:String,treatNullAsEmptyString:!0}}});w({tag:"optgroup",name:"HTMLOptGroupElement",ctor:function(t,r,n){v.call(this,t,r,n)},attributes:{disabled:Boolean,label:String}});w({tag:"option",name:"HTMLOptionElement",ctor:function(t,r,n){v.call(this,t,r,n)},props:{form:{get:function(){for(var e=this.parentNode;e&&e.nodeType===Yc.ELEMENT_NODE;){if(e.localName==="select")return e.form;e=e.parentNode}}},value:{get:function(){return this._getattr("value")||this.text},set:function(e){this._setattr("value",e)}},text:{get:function(){return this.textContent.replace(/[ \t\n\f\r]+/g," ").trim()},set:function(e){this.textContent=e}}},attributes:{disabled:Boolean,defaultSelected:{name:"selected",type:Boolean},label:String}});w({tag:"output",name:"HTMLOutputElement",ctor:function(t,r,n){Bt.call(this,t,r,n)},props:jt,attributes:{name:String}});w({tag:"p",name:"HTMLParagraphElement",ctor:function(t,r,n){v.call(this,t,r,n)},attributes:{align:String}});w({tag:"param",name:"HTMLParamElement",ctor:function(t,r,n){v.call(this,t,r,n)},attributes:{name:String,value:String,type:String,valueType:String}});w({tags:["pre","listing","xmp"],name:"HTMLPreElement",ctor:function(t,r,n){v.call(this,t,r,n)},attributes:{width:{type:"long",default:0}}});w({tag:"progress",name:"HTMLProgressElement",ctor:function(t,r,n){Bt.call(this,t,r,n)},props:jt,attributes:{max:{type:Number,float:!0,default:1,min:0}}});w({tags:["q","blockquote"],name:"HTMLQuoteElement",ctor:function(t,r,n){v.call(this,t,r,n)},attributes:{cite:Ne}});w({tag:"script",name:"HTMLScriptElement",ctor:function(t,r,n){v.call(this,t,r,n)},props:{text:{get:function(){for(var e="",t=0,r=this.childNodes.length;t<r;t++){var n=this.childNodes[t];n.nodeType===Yc.TEXT_NODE&&(e+=n._data)}return e},set:function(e){this.removeChildren(),e!==null&&e!==""&&this.appendChild(this.ownerDocument.createTextNode(e))}}},attributes:{src:Ne,type:String,charset:String,referrerPolicy:$n,defer:Boolean,async:Boolean,nomodule:Boolean,crossOrigin:xo,nonce:String,integrity:String}});w({tag:"select",name:"HTMLSelectElement",ctor:function(t,r,n){Bt.call(this,t,r,n)},props:{form:jt.form,options:{get:function(){return this.getElementsByTagName("option")}}},attributes:{autocomplete:String,name:String,disabled:Boolean,autofocus:Boolean,multiple:Boolean,required:Boolean,size:{type:"unsigned long",default:0}}});w({tag:"span",name:"HTMLSpanElement",ctor:function(t,r,n){v.call(this,t,r,n)}});w({tag:"style",name:"HTMLStyleElement",ctor:function(t,r,n){v.call(this,t,r,n)},attributes:{media:String,type:String,scoped:Boolean}});w({tag:"caption",name:"HTMLTableCaptionElement",ctor:function(t,r,n){v.call(this,t,r,n)},attributes:{align:String}});w({name:"HTMLTableCellElement",ctor:function(t,r,n){v.call(this,t,r,n)},attributes:{colSpan:{type:"unsigned long",default:1},rowSpan:{type:"unsigned long",default:1},scope:{type:["row","col","rowgroup","colgroup"],missing:""},abbr:String,align:String,axis:String,height:String,width:String,ch:{name:"char",type:String},chOff:{name:"charoff",type:String},noWrap:Boolean,vAlign:String,bgColor:{type:String,treatNullAsEmptyString:!0}}});w({tags:["col","colgroup"],name:"HTMLTableColElement",ctor:function(t,r,n){v.call(this,t,r,n)},attributes:{span:{type:"limited unsigned long with fallback",default:1,min:1},align:String,ch:{name:"char",type:String},chOff:{name:"charoff",type:String},vAlign:String,width:String}});w({tag:"table",name:"HTMLTableElement",ctor:function(t,r,n){v.call(this,t,r,n)},props:{rows:{get:function(){return this.getElementsByTagName("tr")}}},attributes:{align:String,border:String,frame:String,rules:String,summary:String,width:String,bgColor:{type:String,treatNullAsEmptyString:!0},cellPadding:{type:String,treatNullAsEmptyString:!0},cellSpacing:{type:String,treatNullAsEmptyString:!0}}});w({tag:"template",name:"HTMLTemplateElement",ctor:function(t,r,n){v.call(this,t,r,n),this._contentFragment=t._templateDoc.createDocumentFragment()},props:{content:{get:function(){return this._contentFragment}},serialize:{value:function(){return this.content.serialize()}}}});w({tag:"tr",name:"HTMLTableRowElement",ctor:function(t,r,n){v.call(this,t,r,n)},props:{cells:{get:function(){return this.querySelectorAll("td,th")}}},attributes:{align:String,ch:{name:"char",type:String},chOff:{name:"charoff",type:String},vAlign:String,bgColor:{type:String,treatNullAsEmptyString:!0}}});w({tags:["thead","tfoot","tbody"],name:"HTMLTableSectionElement",ctor:function(t,r,n){v.call(this,t,r,n)},props:{rows:{get:function(){return this.getElementsByTagName("tr")}}},attributes:{align:String,ch:{name:"char",type:String},chOff:{name:"charoff",type:String},vAlign:String}});w({tag:"textarea",name:"HTMLTextAreaElement",ctor:function(t,r,n){Bt.call(this,t,r,n)},props:{form:jt.form,type:{get:function(){return"textarea"}},defaultValue:{get:function(){return this.textContent},set:function(e){this.textContent=e}},value:{get:function(){return this.defaultValue},set:function(e){this.defaultValue=e}},textLength:{get:function(){return this.value.length}}},attributes:{autocomplete:String,name:String,disabled:Boolean,autofocus:Boolean,placeholder:String,wrap:String,dirName:String,required:Boolean,readOnly:Boolean,rows:{type:"limited unsigned long with fallback",default:2},cols:{type:"limited unsigned long with fallback",default:20},maxLength:{type:"unsigned long",min:0,setmin:0,default:-1},minLength:{type:"unsigned long",min:0,setmin:0,default:-1},inputMode:{type:["verbatim","latin","latin-name","latin-prose","full-width-latin","kana","kana-name","katakana","numeric","tel","email","url"],missing:""}}});w({tag:"time",name:"HTMLTimeElement",ctor:function(t,r,n){v.call(this,t,r,n)},attributes:{dateTime:String,pubDate:Boolean}});w({tag:"title",name:"HTMLTitleElement",ctor:function(t,r,n){v.call(this,t,r,n)},props:{text:{get:function(){return this.textContent}}}});w({tag:"ul",name:"HTMLUListElement",ctor:function(t,r,n){v.call(this,t,r,n)},attributes:{type:String,compact:Boolean}});w({name:"HTMLMediaElement",ctor:function(t,r,n){v.call(this,t,r,n)},attributes:{src:Ne,crossOrigin:xo,preload:{type:["metadata","none","auto",{value:"",alias:"auto"}],missing:"auto"},loop:Boolean,autoplay:Boolean,mediaGroup:String,controls:Boolean,defaultMuted:{name:"muted",type:Boolean}}});w({name:"HTMLAudioElement",tag:"audio",superclass:pr.HTMLMediaElement,ctor:function(t,r,n){pr.HTMLMediaElement.call(this,t,r,n)}});w({name:"HTMLVideoElement",tag:"video",superclass:pr.HTMLMediaElement,ctor:function(t,r,n){pr.HTMLMediaElement.call(this,t,r,n)},attributes:{poster:Ne,width:{type:"unsigned long",min:0,default:0},height:{type:"unsigned long",min:0,default:0}}});w({tag:"td",name:"HTMLTableDataCellElement",superclass:pr.HTMLTableCellElement,ctor:function(t,r,n){pr.HTMLTableCellElement.call(this,t,r,n)}});w({tag:"th",name:"HTMLTableHeaderCellElement",superclass:pr.HTMLTableCellElement,ctor:function(t,r,n){pr.HTMLTableCellElement.call(this,t,r,n)}});w({tag:"frameset",name:"HTMLFrameSetElement",ctor:function(t,r,n){v.call(this,t,r,n)}});w({tag:"frame",name:"HTMLFrameElement",ctor:function(t,r,n){v.call(this,t,r,n)}});w({tag:"canvas",name:"HTMLCanvasElement",ctor:function(t,r,n){v.call(this,t,r,n)},props:{getContext:{value:ht.nyi},probablySupportsContext:{value:ht.nyi},setContext:{value:ht.nyi},transferControlToProxy:{value:ht.nyi},toDataURL:{value:ht.nyi},toBlob:{value:ht.nyi}},attributes:{width:{type:"unsigned long",default:300},height:{type:"unsigned long",default:150}}});w({tag:"dialog",name:"HTMLDialogElement",ctor:function(t,r,n){v.call(this,t,r,n)},props:{show:{value:ht.nyi},showModal:{value:ht.nyi},close:{value:ht.nyi}},attributes:{open:Boolean,returnValue:String}});w({tag:"menuitem",name:"HTMLMenuItemElement",ctor:function(t,r,n){v.call(this,t,r,n)},props:{_label:{get:function(){var e=this._getattr("label");return e!==null&&e!==""?e:(e=this.textContent,e.replace(/[ \t\n\f\r]+/g," ").trim())}},label:{get:function(){var e=this._getattr("label");return e!==null?e:this._label},set:function(e){this._setattr("label",e)}}},attributes:{type:{type:["command","checkbox","radio"],missing:"command"},icon:Ne,disabled:Boolean,checked:Boolean,radiogroup:String,default:Boolean}});w({tag:"source",name:"HTMLSourceElement",ctor:function(t,r,n){v.call(this,t,r,n)},attributes:{srcset:String,sizes:String,media:String,src:Ne,type:String,width:String,height:String}});w({tag:"track",name:"HTMLTrackElement",ctor:function(t,r,n){v.call(this,t,r,n)},attributes:{src:Ne,srclang:String,label:String,default:Boolean,kind:{type:["subtitles","captions","descriptions","chapters","metadata"],missing:"subtitles",invalid:"metadata"}},props:{NONE:{get:function(){return 0}},LOADING:{get:function(){return 1}},LOADED:{get:function(){return 2}},ERROR:{get:function(){return 3}},readyState:{get:ht.nyi},track:{get:ht.nyi}}});w({tag:"font",name:"HTMLFontElement",ctor:function(t,r,n){v.call(this,t,r,n)},attributes:{color:{type:String,treatNullAsEmptyString:!0},face:{type:String},size:{type:String}}});w({tag:"dir",name:"HTMLDirectoryElement",ctor:function(t,r,n){v.call(this,t,r,n)},attributes:{compact:Boolean}});w({tags:["abbr","address","article","aside","b","bdi","bdo","cite","content","code","dd","dfn","dt","em","figcaption","figure","footer","header","hgroup","i","kbd","main","mark","nav","noscript","rb","rp","rt","rtc","ruby","s","samp","section","small","strong","sub","summary","sup","u","var","wbr","acronym","basefont","big","center","nobr","noembed","noframes","plaintext","strike","tt"]})});var eu=C(go=>{"use strict";var Tx=Vn(),NI=Qc(),AI=ve(),CI=po(),RI=go.elements={},_x=Object.create(null);go.createElement=function(e,t,r){var n=_x[t]||Jc;return new n(e,t,r)};function Zc(e){return NI(e,Jc,RI,_x)}var Jc=Zc({superclass:Tx,name:"SVGElement",ctor:function(t,r,n){Tx.call(this,t,r,AI.NAMESPACE.SVG,n)},props:{style:{get:function(){return this._style||(this._style=new CI(this)),this._style}}}});Zc({name:"SVGSVGElement",ctor:function(t,r,n){Jc.call(this,t,r,n)},tag:"svg",props:{createSVGRect:{value:function(){return go.createElement(this.ownerDocument,"rect",null)}}}});Zc({tags:["a","altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignObject","g","glyph","glyphRef","hkern","image","line","linearGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","script","set","stop","style","switch","symbol","text","textPath","title","tref","tspan","use","view","vkern"]})});var wx=C((S3,Ix)=>{"use strict";Ix.exports={VALUE:1,ATTR:2,REMOVE_ATTR:3,REMOVE:4,MOVE:5,INSERT:6}});var Eo=C((v3,kx)=>{"use strict";kx.exports=ji;var Ze=Ke(),OI=cn(),Rx=eo(),Br=Vn(),LI=Dc(),DI=Mc(),Bi=Fn(),kI=qc(),MI=Hc(),FI=Vi(),qI=Qd(),PI=rx(),Sx=Pi(),vx=fo(),Nx=ao(),HI=zc(),bo=to(),tu=ho(),UI=eu(),Q=ve(),Wn=wx(),Xn=Q.NAMESPACE,ru=Ya().isApiWritable;function ji(e,t){Rx.call(this),this.nodeType=Ze.DOCUMENT_NODE,this.isHTML=e,this._address=t||"about:blank",this.readyState="loading",this.implementation=new FI(this),this.ownerDocument=null,this._contentType=e?"text/html":"application/xml",this.doctype=null,this.documentElement=null,this._templateDocCache=null,this._nodeIterators=null,this._nid=1,this._nextnid=2,this._nodes=[null,this],this.byId=Object.create(null),this.modclock=0}var BI={event:"Event",customevent:"CustomEvent",uievent:"UIEvent",mouseevent:"MouseEvent"},jI={events:"event",htmlevents:"event",mouseevents:"mouseevent",mutationevents:"mutationevent",uievents:"uievent"},zn=function(e,t,r){return{get:function(){var n=e.call(this);return n?n[t]:r},set:function(n){var i=e.call(this);i&&(i[t]=n)}}};function Ax(e,t){var r,n,i;return e===""&&(e=null),bo.isValidQName(t)||Q.InvalidCharacterError(),r=null,n=t,i=t.indexOf(":"),i>=0&&(r=t.substring(0,i),n=t.substring(i+1)),r!==null&&e===null&&Q.NamespaceError(),r==="xml"&&e!==Xn.XML&&Q.NamespaceError(),(r==="xmlns"||t==="xmlns")&&e!==Xn.XMLNS&&Q.NamespaceError(),e===Xn.XMLNS&&!(r==="xmlns"||t==="xmlns")&&Q.NamespaceError(),{namespace:e,prefix:r,localName:n}}ji.prototype=Object.create(Rx.prototype,{_setMutationHandler:{value:function(e){this.mutationHandler=e}},_dispatchRendererEvent:{value:function(e,t,r){var n=this._nodes[e];n&&n._dispatchEvent(new Bi(t,r),!0)}},nodeName:{value:"#document"},nodeValue:{get:function(){return null},set:function(){}},documentURI:{get:function(){return this._address},set:Q.nyi},compatMode:{get:function(){return this._quirks?"BackCompat":"CSS1Compat"}},createTextNode:{value:function(e){return new LI(this,String(e))}},createComment:{value:function(e){return new DI(this,e)}},createDocumentFragment:{value:function(){return new kI(this)}},createProcessingInstruction:{value:function(e,t){return(!bo.isValidName(e)||t.indexOf("?>")!==-1)&&Q.InvalidCharacterError(),new MI(this,e,t)}},createAttribute:{value:function(e){return e=String(e),bo.isValidName(e)||Q.InvalidCharacterError(),this.isHTML&&(e=Q.toASCIILowerCase(e)),new Br._Attr(null,e,null,null,"")}},createAttributeNS:{value:function(e,t){e=e==null||e===""?null:String(e),t=String(t);var r=Ax(e,t);return new Br._Attr(null,r.localName,r.prefix,r.namespace,"")}},createElement:{value:function(e){return e=String(e),bo.isValidName(e)||Q.InvalidCharacterError(),this.isHTML?(/[A-Z]/.test(e)&&(e=Q.toASCIILowerCase(e)),tu.createElement(this,e,null)):this.contentType==="application/xhtml+xml"?tu.createElement(this,e,null):new Br(this,e,null,null)},writable:ru},createElementNS:{value:function(e,t){e=e==null||e===""?null:String(e),t=String(t);var r=Ax(e,t);return this._createElementNS(r.localName,r.namespace,r.prefix)},writable:ru},_createElementNS:{value:function(e,t,r){return t===Xn.HTML?tu.createElement(this,e,r):t===Xn.SVG?UI.createElement(this,e,r):new Br(this,e,t,r)}},createEvent:{value:function(t){t=t.toLowerCase();var r=jI[t]||t,n=HI[BI[r]];if(n){var i=new n;return i._initialized=!1,i}else Q.NotSupportedError()}},createTreeWalker:{value:function(e,t,r){if(!e)throw new TypeError("root argument is required");if(!(e instanceof Ze))throw new TypeError("root not a node");return t=t===void 0?Sx.SHOW_ALL:+t,r=r===void 0?null:r,new qI(e,t,r)}},createNodeIterator:{value:function(e,t,r){if(!e)throw new TypeError("root argument is required");if(!(e instanceof Ze))throw new TypeError("root not a node");return t=t===void 0?Sx.SHOW_ALL:+t,r=r===void 0?null:r,new PI(e,t,r)}},_attachNodeIterator:{value:function(e){this._nodeIterators||(this._nodeIterators=[]),this._nodeIterators.push(e)}},_detachNodeIterator:{value:function(e){var t=this._nodeIterators.indexOf(e);this._nodeIterators.splice(t,1)}},_preremoveNodeIterators:{value:function(e){this._nodeIterators&&this._nodeIterators.forEach(function(t){t._preremove(e)})}},_updateDocTypeElement:{value:function(){this.doctype=this.documentElement=null;for(var t=this.firstChild;t!==null;t=t.nextSibling)t.nodeType===Ze.DOCUMENT_TYPE_NODE?this.doctype=t:t.nodeType===Ze.ELEMENT_NODE&&(this.documentElement=t)}},insertBefore:{value:function(t,r){return Ze.prototype.insertBefore.call(this,t,r),this._updateDocTypeElement(),t}},replaceChild:{value:function(t,r){return Ze.prototype.replaceChild.call(this,t,r),this._updateDocTypeElement(),r}},removeChild:{value:function(t){return Ze.prototype.removeChild.call(this,t),this._updateDocTypeElement(),t}},getElementById:{value:function(e){var t=this.byId[e];return t?t instanceof dr?t.getFirst():t:null}},_hasMultipleElementsWithId:{value:function(e){return this.byId[e]instanceof dr}},getElementsByName:{value:Br.prototype.getElementsByName},getElementsByTagName:{value:Br.prototype.getElementsByTagName},getElementsByTagNameNS:{value:Br.prototype.getElementsByTagNameNS},getElementsByClassName:{value:Br.prototype.getElementsByClassName},adoptNode:{value:function(t){return t.nodeType===Ze.DOCUMENT_NODE&&Q.NotSupportedError(),t.nodeType===Ze.ATTRIBUTE_NODE||(t.parentNode&&t.parentNode.removeChild(t),t.ownerDocument!==this&&Dx(t,this)),t}},importNode:{value:function(t,r){return this.adoptNode(t.cloneNode(r))},writable:ru},origin:{get:function(){return null}},characterSet:{get:function(){return"UTF-8"}},contentType:{get:function(){return this._contentType}},URL:{get:function(){return this._address}},domain:{get:Q.nyi,set:Q.nyi},referrer:{get:Q.nyi},cookie:{get:Q.nyi,set:Q.nyi},lastModified:{get:Q.nyi},location:{get:function(){return this.defaultView?this.defaultView.location:null},set:Q.nyi},_titleElement:{get:function(){return this.getElementsByTagName("title").item(0)||null}},title:{get:function(){var e=this._titleElement,t=e?e.textContent:"";return t.replace(/[ \t\n\r\f]+/g," ").replace(/(^ )|( $)/g,"")},set:function(e){var t=this._titleElement,r=this.head;!t&&!r||(t||(t=this.createElement("title"),r.appendChild(t)),t.textContent=e)}},dir:zn(function(){var e=this.documentElement;if(e&&e.tagName==="HTML")return e},"dir",""),fgColor:zn(function(){return this.body},"text",""),linkColor:zn(function(){return this.body},"link",""),vlinkColor:zn(function(){return this.body},"vLink",""),alinkColor:zn(function(){return this.body},"aLink",""),bgColor:zn(function(){return this.body},"bgColor",""),charset:{get:function(){return this.characterSet}},inputEncoding:{get:function(){return this.characterSet}},scrollingElement:{get:function(){return this._quirks?this.body:this.documentElement}},body:{get:function(){return Cx(this.documentElement,"body")},set:Q.nyi},head:{get:function(){return Cx(this.documentElement,"head")}},images:{get:Q.nyi},embeds:{get:Q.nyi},plugins:{get:Q.nyi},links:{get:Q.nyi},forms:{get:Q.nyi},scripts:{get:Q.nyi},applets:{get:function(){return[]}},activeElement:{get:function(){return null}},innerHTML:{get:function(){return this.serialize()},set:Q.nyi},outerHTML:{get:function(){return this.serialize()},set:Q.nyi},write:{value:function(e){if(this.isHTML||Q.InvalidStateError(),!!this._parser){this._parser;var t=arguments.join("");this._parser.parse(t)}}},writeln:{value:function(t){this.write(Array.prototype.join.call(arguments,"")+`
|
|
8
|
-
`)}},open:{value:function(){this.documentElement=null}},close:{value:function(){this.readyState="interactive",this._dispatchEvent(new Bi("readystatechange"),!0),this._dispatchEvent(new Bi("DOMContentLoaded"),!0),this.readyState="complete",this._dispatchEvent(new Bi("readystatechange"),!0),this.defaultView&&this.defaultView._dispatchEvent(new Bi("load"),!0)}},clone:{value:function(){var t=new ji(this.isHTML,this._address);return t._quirks=this._quirks,t._contentType=this._contentType,t}},cloneNode:{value:function(t){var r=Ze.prototype.cloneNode.call(this,!1);if(t)for(var n=this.firstChild;n!==null;n=n.nextSibling)r._appendChild(r.importNode(n,!0));return r._updateDocTypeElement(),r}},isEqual:{value:function(t){return!0}},mutateValue:{value:function(e){this.mutationHandler&&this.mutationHandler({type:Wn.VALUE,target:e,data:e.data})}},mutateAttr:{value:function(e,t){this.mutationHandler&&this.mutationHandler({type:Wn.ATTR,target:e.ownerElement,attr:e})}},mutateRemoveAttr:{value:function(e){this.mutationHandler&&this.mutationHandler({type:Wn.REMOVE_ATTR,target:e.ownerElement,attr:e})}},mutateRemove:{value:function(e){this.mutationHandler&&this.mutationHandler({type:Wn.REMOVE,target:e.parentNode,node:e}),Lx(e)}},mutateInsert:{value:function(e){Ox(e),this.mutationHandler&&this.mutationHandler({type:Wn.INSERT,target:e.parentNode,node:e})}},mutateMove:{value:function(e){this.mutationHandler&&this.mutationHandler({type:Wn.MOVE,target:e})}},addId:{value:function(t,r){var n=this.byId[t];n?(n instanceof dr||(n=new dr(n),this.byId[t]=n),n.add(r)):this.byId[t]=r}},delId:{value:function(t,r){var n=this.byId[t];Q.assert(n),n instanceof dr?(n.del(r),n.length===1&&(this.byId[t]=n.downgrade())):this.byId[t]=void 0}},_resolve:{value:function(e){return new vx(this._documentBaseURL).resolve(e)}},_documentBaseURL:{get:function(){var e=this._address;e==="about:blank"&&(e="/");var t=this.querySelector("base[href]");return t?new vx(e).resolve(t.getAttribute("href")):e}},_templateDoc:{get:function(){if(!this._templateDocCache){var e=new ji(this.isHTML,this._address);this._templateDocCache=e._templateDocCache=e}return this._templateDocCache}},querySelector:{value:function(e){return Nx(e,this)[0]}},querySelectorAll:{value:function(e){var t=Nx(e,this);return t.item?t:new OI(t)}}});var VI=["abort","canplay","canplaythrough","change","click","contextmenu","cuechange","dblclick","drag","dragend","dragenter","dragleave","dragover","dragstart","drop","durationchange","emptied","ended","input","invalid","keydown","keypress","keyup","loadeddata","loadedmetadata","loadstart","mousedown","mousemove","mouseout","mouseover","mouseup","mousewheel","pause","play","playing","progress","ratechange","readystatechange","reset","seeked","seeking","select","show","stalled","submit","suspend","timeupdate","volumechange","waiting","blur","error","focus","load","scroll"];VI.forEach(function(e){Object.defineProperty(ji.prototype,"on"+e,{get:function(){return this._getEventHandler(e)},set:function(t){this._setEventHandler(e,t)}})});function Cx(e,t){if(e&&e.isHTML){for(var r=e.firstChild;r!==null;r=r.nextSibling)if(r.nodeType===Ze.ELEMENT_NODE&&r.localName===t&&r.namespaceURI===Xn.HTML)return r}return null}function GI(e){if(e._nid=e.ownerDocument._nextnid++,e.ownerDocument._nodes[e._nid]=e,e.nodeType===Ze.ELEMENT_NODE){var t=e.getAttribute("id");t&&e.ownerDocument.addId(t,e),e._roothook&&e._roothook()}}function KI(e){if(e.nodeType===Ze.ELEMENT_NODE){var t=e.getAttribute("id");t&&e.ownerDocument.delId(t,e)}e.ownerDocument._nodes[e._nid]=void 0,e._nid=void 0}function Ox(e){if(GI(e),e.nodeType===Ze.ELEMENT_NODE)for(var t=e.firstChild;t!==null;t=t.nextSibling)Ox(t)}function Lx(e){KI(e);for(var t=e.firstChild;t!==null;t=t.nextSibling)Lx(t)}function Dx(e,t){e.ownerDocument=t,e._lastModTime=void 0,Object.prototype.hasOwnProperty.call(e,"_tagName")&&(e._tagName=void 0);for(var r=e.firstChild;r!==null;r=r.nextSibling)Dx(r,t)}function dr(e){this.nodes=Object.create(null),this.nodes[e._nid]=e,this.length=1,this.firstNode=void 0}dr.prototype.add=function(e){this.nodes[e._nid]||(this.nodes[e._nid]=e,this.length++,this.firstNode=void 0)};dr.prototype.del=function(e){this.nodes[e._nid]&&(delete this.nodes[e._nid],this.length--,this.firstNode=void 0)};dr.prototype.getFirst=function(){if(!this.firstNode){var e;for(e in this.nodes)(this.firstNode===void 0||this.firstNode.compareDocumentPosition(this.nodes[e])&Ze.DOCUMENT_POSITION_PRECEDING)&&(this.firstNode=this.nodes[e])}return this.firstNode};dr.prototype.downgrade=function(){if(this.length===1){var e;for(e in this.nodes)return this.nodes[e]}return this}});var To=C((N3,Fx)=>{"use strict";Fx.exports=yo;var $I=Ke(),Mx=Oc(),WI=oo();function yo(e,t,r,n){Mx.call(this),this.nodeType=$I.DOCUMENT_TYPE_NODE,this.ownerDocument=e||null,this.name=t,this.publicId=r||"",this.systemId=n||""}yo.prototype=Object.create(Mx.prototype,{nodeName:{get:function(){return this.name}},nodeValue:{get:function(){return null},set:function(){}},clone:{value:function(){return new yo(this.ownerDocument,this.name,this.publicId,this.systemId)}},isEqual:{value:function(t){return this.name===t.name&&this.publicId===t.publicId&&this.systemId===t.systemId}}});Object.defineProperties(yo.prototype,WI)});var Ao=C((A3,am)=>{"use strict";am.exports=$;var zI=Eo(),XI=To(),nu=Ke(),R=ve().NAMESPACE,Yx=ho(),re=Yx.elements,ln=Function.prototype.apply.bind(Array.prototype.push),_o=-1,Qn=1,Je=2,U=3,Yt=4,QI=5,YI=[],ZI=/^HTML$|^-\/\/W3O\/\/DTD W3 HTML Strict 3\.0\/\/EN\/\/$|^-\/W3C\/DTD HTML 4\.0 Transitional\/EN$|^\+\/\/Silmaril\/\/dtd html Pro v0r11 19970101\/\/|^-\/\/AdvaSoft Ltd\/\/DTD HTML 3\.0 asWedit \+ extensions\/\/|^-\/\/AS\/\/DTD HTML 3\.0 asWedit \+ extensions\/\/|^-\/\/IETF\/\/DTD HTML 2\.0 Level 1\/\/|^-\/\/IETF\/\/DTD HTML 2\.0 Level 2\/\/|^-\/\/IETF\/\/DTD HTML 2\.0 Strict Level 1\/\/|^-\/\/IETF\/\/DTD HTML 2\.0 Strict Level 2\/\/|^-\/\/IETF\/\/DTD HTML 2\.0 Strict\/\/|^-\/\/IETF\/\/DTD HTML 2\.0\/\/|^-\/\/IETF\/\/DTD HTML 2\.1E\/\/|^-\/\/IETF\/\/DTD HTML 3\.0\/\/|^-\/\/IETF\/\/DTD HTML 3\.2 Final\/\/|^-\/\/IETF\/\/DTD HTML 3\.2\/\/|^-\/\/IETF\/\/DTD HTML 3\/\/|^-\/\/IETF\/\/DTD HTML Level 0\/\/|^-\/\/IETF\/\/DTD HTML Level 1\/\/|^-\/\/IETF\/\/DTD HTML Level 2\/\/|^-\/\/IETF\/\/DTD HTML Level 3\/\/|^-\/\/IETF\/\/DTD HTML Strict Level 0\/\/|^-\/\/IETF\/\/DTD HTML Strict Level 1\/\/|^-\/\/IETF\/\/DTD HTML Strict Level 2\/\/|^-\/\/IETF\/\/DTD HTML Strict Level 3\/\/|^-\/\/IETF\/\/DTD HTML Strict\/\/|^-\/\/IETF\/\/DTD HTML\/\/|^-\/\/Metrius\/\/DTD Metrius Presentational\/\/|^-\/\/Microsoft\/\/DTD Internet Explorer 2\.0 HTML Strict\/\/|^-\/\/Microsoft\/\/DTD Internet Explorer 2\.0 HTML\/\/|^-\/\/Microsoft\/\/DTD Internet Explorer 2\.0 Tables\/\/|^-\/\/Microsoft\/\/DTD Internet Explorer 3\.0 HTML Strict\/\/|^-\/\/Microsoft\/\/DTD Internet Explorer 3\.0 HTML\/\/|^-\/\/Microsoft\/\/DTD Internet Explorer 3\.0 Tables\/\/|^-\/\/Netscape Comm\. Corp\.\/\/DTD HTML\/\/|^-\/\/Netscape Comm\. Corp\.\/\/DTD Strict HTML\/\/|^-\/\/O'Reilly and Associates\/\/DTD HTML 2\.0\/\/|^-\/\/O'Reilly and Associates\/\/DTD HTML Extended 1\.0\/\/|^-\/\/O'Reilly and Associates\/\/DTD HTML Extended Relaxed 1\.0\/\/|^-\/\/SoftQuad Software\/\/DTD HoTMetaL PRO 6\.0::19990601::extensions to HTML 4\.0\/\/|^-\/\/SoftQuad\/\/DTD HoTMetaL PRO 4\.0::19971010::extensions to HTML 4\.0\/\/|^-\/\/Spyglass\/\/DTD HTML 2\.0 Extended\/\/|^-\/\/SQ\/\/DTD HTML 2\.0 HoTMetaL \+ extensions\/\/|^-\/\/Sun Microsystems Corp\.\/\/DTD HotJava HTML\/\/|^-\/\/Sun Microsystems Corp\.\/\/DTD HotJava Strict HTML\/\/|^-\/\/W3C\/\/DTD HTML 3 1995-03-24\/\/|^-\/\/W3C\/\/DTD HTML 3\.2 Draft\/\/|^-\/\/W3C\/\/DTD HTML 3\.2 Final\/\/|^-\/\/W3C\/\/DTD HTML 3\.2\/\/|^-\/\/W3C\/\/DTD HTML 3\.2S Draft\/\/|^-\/\/W3C\/\/DTD HTML 4\.0 Frameset\/\/|^-\/\/W3C\/\/DTD HTML 4\.0 Transitional\/\/|^-\/\/W3C\/\/DTD HTML Experimental 19960712\/\/|^-\/\/W3C\/\/DTD HTML Experimental 970421\/\/|^-\/\/W3C\/\/DTD W3 HTML\/\/|^-\/\/W3O\/\/DTD W3 HTML 3\.0\/\/|^-\/\/WebTechs\/\/DTD Mozilla HTML 2\.0\/\/|^-\/\/WebTechs\/\/DTD Mozilla HTML\/\//i,JI="http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd",qx=/^-\/\/W3C\/\/DTD HTML 4\.01 Frameset\/\/|^-\/\/W3C\/\/DTD HTML 4\.01 Transitional\/\//i,ew=/^-\/\/W3C\/\/DTD XHTML 1\.0 Frameset\/\/|^-\/\/W3C\/\/DTD XHTML 1\.0 Transitional\/\//i,pn=Object.create(null);pn[R.HTML]={__proto__:null,address:!0,applet:!0,area:!0,article:!0,aside:!0,base:!0,basefont:!0,bgsound:!0,blockquote:!0,body:!0,br:!0,button:!0,caption:!0,center:!0,col:!0,colgroup:!0,dd:!0,details:!0,dir:!0,div:!0,dl:!0,dt:!0,embed:!0,fieldset:!0,figcaption:!0,figure:!0,footer:!0,form:!0,frame:!0,frameset:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,head:!0,header:!0,hgroup:!0,hr:!0,html:!0,iframe:!0,img:!0,input:!0,li:!0,link:!0,listing:!0,main:!0,marquee:!0,menu:!0,meta:!0,nav:!0,noembed:!0,noframes:!0,noscript:!0,object:!0,ol:!0,p:!0,param:!0,plaintext:!0,pre:!0,script:!0,section:!0,select:!0,source:!0,style:!0,summary:!0,table:!0,tbody:!0,td:!0,template:!0,textarea:!0,tfoot:!0,th:!0,thead:!0,title:!0,tr:!0,track:!0,ul:!0,wbr:!0,xmp:!0};pn[R.SVG]={__proto__:null,foreignObject:!0,desc:!0,title:!0};pn[R.MATHML]={__proto__:null,mi:!0,mo:!0,mn:!0,ms:!0,mtext:!0,"annotation-xml":!0};var ou=Object.create(null);ou[R.HTML]={__proto__:null,address:!0,div:!0,p:!0};var Zx=Object.create(null);Zx[R.HTML]={__proto__:null,dd:!0,dt:!0};var Yn=Object.create(null);Yn[R.HTML]={__proto__:null,table:!0,thead:!0,tbody:!0,tfoot:!0,tr:!0};var Jx=Object.create(null);Jx[R.HTML]={__proto__:null,dd:!0,dt:!0,li:!0,menuitem:!0,optgroup:!0,option:!0,p:!0,rb:!0,rp:!0,rt:!0,rtc:!0};var em=Object.create(null);em[R.HTML]={__proto__:null,caption:!0,colgroup:!0,dd:!0,dt:!0,li:!0,optgroup:!0,option:!0,p:!0,rb:!0,rp:!0,rt:!0,rtc:!0,tbody:!0,td:!0,tfoot:!0,th:!0,thead:!0,tr:!0};var So=Object.create(null);So[R.HTML]={__proto__:null,table:!0,template:!0,html:!0};var vo=Object.create(null);vo[R.HTML]={__proto__:null,tbody:!0,tfoot:!0,thead:!0,template:!0,html:!0};var su=Object.create(null);su[R.HTML]={__proto__:null,tr:!0,template:!0,html:!0};var tm=Object.create(null);tm[R.HTML]={__proto__:null,button:!0,fieldset:!0,input:!0,keygen:!0,object:!0,output:!0,select:!0,textarea:!0,img:!0};var Zt=Object.create(null);Zt[R.HTML]={__proto__:null,applet:!0,caption:!0,html:!0,table:!0,td:!0,th:!0,marquee:!0,object:!0,template:!0};Zt[R.MATHML]={__proto__:null,mi:!0,mo:!0,mn:!0,ms:!0,mtext:!0,"annotation-xml":!0};Zt[R.SVG]={__proto__:null,foreignObject:!0,desc:!0,title:!0};var No=Object.create(Zt);No[R.HTML]=Object.create(Zt[R.HTML]);No[R.HTML].ol=!0;No[R.HTML].ul=!0;var cu=Object.create(Zt);cu[R.HTML]=Object.create(Zt[R.HTML]);cu[R.HTML].button=!0;var rm=Object.create(null);rm[R.HTML]={__proto__:null,html:!0,table:!0,template:!0};var tw=Object.create(null);tw[R.HTML]={__proto__:null,optgroup:!0,option:!0};var nm=Object.create(null);nm[R.MATHML]={__proto__:null,mi:!0,mo:!0,mn:!0,ms:!0,mtext:!0};var im=Object.create(null);im[R.SVG]={__proto__:null,foreignObject:!0,desc:!0,title:!0};var Px={__proto__:null,"xlink:actuate":R.XLINK,"xlink:arcrole":R.XLINK,"xlink:href":R.XLINK,"xlink:role":R.XLINK,"xlink:show":R.XLINK,"xlink:title":R.XLINK,"xlink:type":R.XLINK,"xml:base":R.XML,"xml:lang":R.XML,"xml:space":R.XML,xmlns:R.XMLNS,"xmlns:xlink":R.XMLNS},Hx={__proto__:null,attributename:"attributeName",attributetype:"attributeType",basefrequency:"baseFrequency",baseprofile:"baseProfile",calcmode:"calcMode",clippathunits:"clipPathUnits",diffuseconstant:"diffuseConstant",edgemode:"edgeMode",filterunits:"filterUnits",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",limitingconeangle:"limitingConeAngle",markerheight:"markerHeight",markerunits:"markerUnits",markerwidth:"markerWidth",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",numoctaves:"numOctaves",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",refx:"refX",refy:"refY",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",specularconstant:"specularConstant",specularexponent:"specularExponent",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stitchtiles:"stitchTiles",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textlength:"textLength",viewbox:"viewBox",viewtarget:"viewTarget",xchannelselector:"xChannelSelector",ychannelselector:"yChannelSelector",zoomandpan:"zoomAndPan"},Ux={__proto__:null,altglyph:"altGlyph",altglyphdef:"altGlyphDef",altglyphitem:"altGlyphItem",animatecolor:"animateColor",animatemotion:"animateMotion",animatetransform:"animateTransform",clippath:"clipPath",feblend:"feBlend",fecolormatrix:"feColorMatrix",fecomponenttransfer:"feComponentTransfer",fecomposite:"feComposite",feconvolvematrix:"feConvolveMatrix",fediffuselighting:"feDiffuseLighting",fedisplacementmap:"feDisplacementMap",fedistantlight:"feDistantLight",feflood:"feFlood",fefunca:"feFuncA",fefuncb:"feFuncB",fefuncg:"feFuncG",fefuncr:"feFuncR",fegaussianblur:"feGaussianBlur",feimage:"feImage",femerge:"feMerge",femergenode:"feMergeNode",femorphology:"feMorphology",feoffset:"feOffset",fepointlight:"fePointLight",fespecularlighting:"feSpecularLighting",fespotlight:"feSpotLight",fetile:"feTile",feturbulence:"feTurbulence",foreignobject:"foreignObject",glyphref:"glyphRef",lineargradient:"linearGradient",radialgradient:"radialGradient",textpath:"textPath"},Bx={__proto__:null,0:65533,128:8364,130:8218,131:402,132:8222,133:8230,134:8224,135:8225,136:710,137:8240,138:352,139:8249,140:338,142:381,145:8216,146:8217,147:8220,148:8221,149:8226,150:8211,151:8212,152:732,153:8482,154:353,155:8250,156:339,158:382,159:376},rw={__proto__:null,AElig:198,"AElig;":198,AMP:38,"AMP;":38,Aacute:193,"Aacute;":193,"Abreve;":258,Acirc:194,"Acirc;":194,"Acy;":1040,"Afr;":[55349,56580],Agrave:192,"Agrave;":192,"Alpha;":913,"Amacr;":256,"And;":10835,"Aogon;":260,"Aopf;":[55349,56632],"ApplyFunction;":8289,Aring:197,"Aring;":197,"Ascr;":[55349,56476],"Assign;":8788,Atilde:195,"Atilde;":195,Auml:196,"Auml;":196,"Backslash;":8726,"Barv;":10983,"Barwed;":8966,"Bcy;":1041,"Because;":8757,"Bernoullis;":8492,"Beta;":914,"Bfr;":[55349,56581],"Bopf;":[55349,56633],"Breve;":728,"Bscr;":8492,"Bumpeq;":8782,"CHcy;":1063,COPY:169,"COPY;":169,"Cacute;":262,"Cap;":8914,"CapitalDifferentialD;":8517,"Cayleys;":8493,"Ccaron;":268,Ccedil:199,"Ccedil;":199,"Ccirc;":264,"Cconint;":8752,"Cdot;":266,"Cedilla;":184,"CenterDot;":183,"Cfr;":8493,"Chi;":935,"CircleDot;":8857,"CircleMinus;":8854,"CirclePlus;":8853,"CircleTimes;":8855,"ClockwiseContourIntegral;":8754,"CloseCurlyDoubleQuote;":8221,"CloseCurlyQuote;":8217,"Colon;":8759,"Colone;":10868,"Congruent;":8801,"Conint;":8751,"ContourIntegral;":8750,"Copf;":8450,"Coproduct;":8720,"CounterClockwiseContourIntegral;":8755,"Cross;":10799,"Cscr;":[55349,56478],"Cup;":8915,"CupCap;":8781,"DD;":8517,"DDotrahd;":10513,"DJcy;":1026,"DScy;":1029,"DZcy;":1039,"Dagger;":8225,"Darr;":8609,"Dashv;":10980,"Dcaron;":270,"Dcy;":1044,"Del;":8711,"Delta;":916,"Dfr;":[55349,56583],"DiacriticalAcute;":180,"DiacriticalDot;":729,"DiacriticalDoubleAcute;":733,"DiacriticalGrave;":96,"DiacriticalTilde;":732,"Diamond;":8900,"DifferentialD;":8518,"Dopf;":[55349,56635],"Dot;":168,"DotDot;":8412,"DotEqual;":8784,"DoubleContourIntegral;":8751,"DoubleDot;":168,"DoubleDownArrow;":8659,"DoubleLeftArrow;":8656,"DoubleLeftRightArrow;":8660,"DoubleLeftTee;":10980,"DoubleLongLeftArrow;":10232,"DoubleLongLeftRightArrow;":10234,"DoubleLongRightArrow;":10233,"DoubleRightArrow;":8658,"DoubleRightTee;":8872,"DoubleUpArrow;":8657,"DoubleUpDownArrow;":8661,"DoubleVerticalBar;":8741,"DownArrow;":8595,"DownArrowBar;":10515,"DownArrowUpArrow;":8693,"DownBreve;":785,"DownLeftRightVector;":10576,"DownLeftTeeVector;":10590,"DownLeftVector;":8637,"DownLeftVectorBar;":10582,"DownRightTeeVector;":10591,"DownRightVector;":8641,"DownRightVectorBar;":10583,"DownTee;":8868,"DownTeeArrow;":8615,"Downarrow;":8659,"Dscr;":[55349,56479],"Dstrok;":272,"ENG;":330,ETH:208,"ETH;":208,Eacute:201,"Eacute;":201,"Ecaron;":282,Ecirc:202,"Ecirc;":202,"Ecy;":1069,"Edot;":278,"Efr;":[55349,56584],Egrave:200,"Egrave;":200,"Element;":8712,"Emacr;":274,"EmptySmallSquare;":9723,"EmptyVerySmallSquare;":9643,"Eogon;":280,"Eopf;":[55349,56636],"Epsilon;":917,"Equal;":10869,"EqualTilde;":8770,"Equilibrium;":8652,"Escr;":8496,"Esim;":10867,"Eta;":919,Euml:203,"Euml;":203,"Exists;":8707,"ExponentialE;":8519,"Fcy;":1060,"Ffr;":[55349,56585],"FilledSmallSquare;":9724,"FilledVerySmallSquare;":9642,"Fopf;":[55349,56637],"ForAll;":8704,"Fouriertrf;":8497,"Fscr;":8497,"GJcy;":1027,GT:62,"GT;":62,"Gamma;":915,"Gammad;":988,"Gbreve;":286,"Gcedil;":290,"Gcirc;":284,"Gcy;":1043,"Gdot;":288,"Gfr;":[55349,56586],"Gg;":8921,"Gopf;":[55349,56638],"GreaterEqual;":8805,"GreaterEqualLess;":8923,"GreaterFullEqual;":8807,"GreaterGreater;":10914,"GreaterLess;":8823,"GreaterSlantEqual;":10878,"GreaterTilde;":8819,"Gscr;":[55349,56482],"Gt;":8811,"HARDcy;":1066,"Hacek;":711,"Hat;":94,"Hcirc;":292,"Hfr;":8460,"HilbertSpace;":8459,"Hopf;":8461,"HorizontalLine;":9472,"Hscr;":8459,"Hstrok;":294,"HumpDownHump;":8782,"HumpEqual;":8783,"IEcy;":1045,"IJlig;":306,"IOcy;":1025,Iacute:205,"Iacute;":205,Icirc:206,"Icirc;":206,"Icy;":1048,"Idot;":304,"Ifr;":8465,Igrave:204,"Igrave;":204,"Im;":8465,"Imacr;":298,"ImaginaryI;":8520,"Implies;":8658,"Int;":8748,"Integral;":8747,"Intersection;":8898,"InvisibleComma;":8291,"InvisibleTimes;":8290,"Iogon;":302,"Iopf;":[55349,56640],"Iota;":921,"Iscr;":8464,"Itilde;":296,"Iukcy;":1030,Iuml:207,"Iuml;":207,"Jcirc;":308,"Jcy;":1049,"Jfr;":[55349,56589],"Jopf;":[55349,56641],"Jscr;":[55349,56485],"Jsercy;":1032,"Jukcy;":1028,"KHcy;":1061,"KJcy;":1036,"Kappa;":922,"Kcedil;":310,"Kcy;":1050,"Kfr;":[55349,56590],"Kopf;":[55349,56642],"Kscr;":[55349,56486],"LJcy;":1033,LT:60,"LT;":60,"Lacute;":313,"Lambda;":923,"Lang;":10218,"Laplacetrf;":8466,"Larr;":8606,"Lcaron;":317,"Lcedil;":315,"Lcy;":1051,"LeftAngleBracket;":10216,"LeftArrow;":8592,"LeftArrowBar;":8676,"LeftArrowRightArrow;":8646,"LeftCeiling;":8968,"LeftDoubleBracket;":10214,"LeftDownTeeVector;":10593,"LeftDownVector;":8643,"LeftDownVectorBar;":10585,"LeftFloor;":8970,"LeftRightArrow;":8596,"LeftRightVector;":10574,"LeftTee;":8867,"LeftTeeArrow;":8612,"LeftTeeVector;":10586,"LeftTriangle;":8882,"LeftTriangleBar;":10703,"LeftTriangleEqual;":8884,"LeftUpDownVector;":10577,"LeftUpTeeVector;":10592,"LeftUpVector;":8639,"LeftUpVectorBar;":10584,"LeftVector;":8636,"LeftVectorBar;":10578,"Leftarrow;":8656,"Leftrightarrow;":8660,"LessEqualGreater;":8922,"LessFullEqual;":8806,"LessGreater;":8822,"LessLess;":10913,"LessSlantEqual;":10877,"LessTilde;":8818,"Lfr;":[55349,56591],"Ll;":8920,"Lleftarrow;":8666,"Lmidot;":319,"LongLeftArrow;":10229,"LongLeftRightArrow;":10231,"LongRightArrow;":10230,"Longleftarrow;":10232,"Longleftrightarrow;":10234,"Longrightarrow;":10233,"Lopf;":[55349,56643],"LowerLeftArrow;":8601,"LowerRightArrow;":8600,"Lscr;":8466,"Lsh;":8624,"Lstrok;":321,"Lt;":8810,"Map;":10501,"Mcy;":1052,"MediumSpace;":8287,"Mellintrf;":8499,"Mfr;":[55349,56592],"MinusPlus;":8723,"Mopf;":[55349,56644],"Mscr;":8499,"Mu;":924,"NJcy;":1034,"Nacute;":323,"Ncaron;":327,"Ncedil;":325,"Ncy;":1053,"NegativeMediumSpace;":8203,"NegativeThickSpace;":8203,"NegativeThinSpace;":8203,"NegativeVeryThinSpace;":8203,"NestedGreaterGreater;":8811,"NestedLessLess;":8810,"NewLine;":10,"Nfr;":[55349,56593],"NoBreak;":8288,"NonBreakingSpace;":160,"Nopf;":8469,"Not;":10988,"NotCongruent;":8802,"NotCupCap;":8813,"NotDoubleVerticalBar;":8742,"NotElement;":8713,"NotEqual;":8800,"NotEqualTilde;":[8770,824],"NotExists;":8708,"NotGreater;":8815,"NotGreaterEqual;":8817,"NotGreaterFullEqual;":[8807,824],"NotGreaterGreater;":[8811,824],"NotGreaterLess;":8825,"NotGreaterSlantEqual;":[10878,824],"NotGreaterTilde;":8821,"NotHumpDownHump;":[8782,824],"NotHumpEqual;":[8783,824],"NotLeftTriangle;":8938,"NotLeftTriangleBar;":[10703,824],"NotLeftTriangleEqual;":8940,"NotLess;":8814,"NotLessEqual;":8816,"NotLessGreater;":8824,"NotLessLess;":[8810,824],"NotLessSlantEqual;":[10877,824],"NotLessTilde;":8820,"NotNestedGreaterGreater;":[10914,824],"NotNestedLessLess;":[10913,824],"NotPrecedes;":8832,"NotPrecedesEqual;":[10927,824],"NotPrecedesSlantEqual;":8928,"NotReverseElement;":8716,"NotRightTriangle;":8939,"NotRightTriangleBar;":[10704,824],"NotRightTriangleEqual;":8941,"NotSquareSubset;":[8847,824],"NotSquareSubsetEqual;":8930,"NotSquareSuperset;":[8848,824],"NotSquareSupersetEqual;":8931,"NotSubset;":[8834,8402],"NotSubsetEqual;":8840,"NotSucceeds;":8833,"NotSucceedsEqual;":[10928,824],"NotSucceedsSlantEqual;":8929,"NotSucceedsTilde;":[8831,824],"NotSuperset;":[8835,8402],"NotSupersetEqual;":8841,"NotTilde;":8769,"NotTildeEqual;":8772,"NotTildeFullEqual;":8775,"NotTildeTilde;":8777,"NotVerticalBar;":8740,"Nscr;":[55349,56489],Ntilde:209,"Ntilde;":209,"Nu;":925,"OElig;":338,Oacute:211,"Oacute;":211,Ocirc:212,"Ocirc;":212,"Ocy;":1054,"Odblac;":336,"Ofr;":[55349,56594],Ograve:210,"Ograve;":210,"Omacr;":332,"Omega;":937,"Omicron;":927,"Oopf;":[55349,56646],"OpenCurlyDoubleQuote;":8220,"OpenCurlyQuote;":8216,"Or;":10836,"Oscr;":[55349,56490],Oslash:216,"Oslash;":216,Otilde:213,"Otilde;":213,"Otimes;":10807,Ouml:214,"Ouml;":214,"OverBar;":8254,"OverBrace;":9182,"OverBracket;":9140,"OverParenthesis;":9180,"PartialD;":8706,"Pcy;":1055,"Pfr;":[55349,56595],"Phi;":934,"Pi;":928,"PlusMinus;":177,"Poincareplane;":8460,"Popf;":8473,"Pr;":10939,"Precedes;":8826,"PrecedesEqual;":10927,"PrecedesSlantEqual;":8828,"PrecedesTilde;":8830,"Prime;":8243,"Product;":8719,"Proportion;":8759,"Proportional;":8733,"Pscr;":[55349,56491],"Psi;":936,QUOT:34,"QUOT;":34,"Qfr;":[55349,56596],"Qopf;":8474,"Qscr;":[55349,56492],"RBarr;":10512,REG:174,"REG;":174,"Racute;":340,"Rang;":10219,"Rarr;":8608,"Rarrtl;":10518,"Rcaron;":344,"Rcedil;":342,"Rcy;":1056,"Re;":8476,"ReverseElement;":8715,"ReverseEquilibrium;":8651,"ReverseUpEquilibrium;":10607,"Rfr;":8476,"Rho;":929,"RightAngleBracket;":10217,"RightArrow;":8594,"RightArrowBar;":8677,"RightArrowLeftArrow;":8644,"RightCeiling;":8969,"RightDoubleBracket;":10215,"RightDownTeeVector;":10589,"RightDownVector;":8642,"RightDownVectorBar;":10581,"RightFloor;":8971,"RightTee;":8866,"RightTeeArrow;":8614,"RightTeeVector;":10587,"RightTriangle;":8883,"RightTriangleBar;":10704,"RightTriangleEqual;":8885,"RightUpDownVector;":10575,"RightUpTeeVector;":10588,"RightUpVector;":8638,"RightUpVectorBar;":10580,"RightVector;":8640,"RightVectorBar;":10579,"Rightarrow;":8658,"Ropf;":8477,"RoundImplies;":10608,"Rrightarrow;":8667,"Rscr;":8475,"Rsh;":8625,"RuleDelayed;":10740,"SHCHcy;":1065,"SHcy;":1064,"SOFTcy;":1068,"Sacute;":346,"Sc;":10940,"Scaron;":352,"Scedil;":350,"Scirc;":348,"Scy;":1057,"Sfr;":[55349,56598],"ShortDownArrow;":8595,"ShortLeftArrow;":8592,"ShortRightArrow;":8594,"ShortUpArrow;":8593,"Sigma;":931,"SmallCircle;":8728,"Sopf;":[55349,56650],"Sqrt;":8730,"Square;":9633,"SquareIntersection;":8851,"SquareSubset;":8847,"SquareSubsetEqual;":8849,"SquareSuperset;":8848,"SquareSupersetEqual;":8850,"SquareUnion;":8852,"Sscr;":[55349,56494],"Star;":8902,"Sub;":8912,"Subset;":8912,"SubsetEqual;":8838,"Succeeds;":8827,"SucceedsEqual;":10928,"SucceedsSlantEqual;":8829,"SucceedsTilde;":8831,"SuchThat;":8715,"Sum;":8721,"Sup;":8913,"Superset;":8835,"SupersetEqual;":8839,"Supset;":8913,THORN:222,"THORN;":222,"TRADE;":8482,"TSHcy;":1035,"TScy;":1062,"Tab;":9,"Tau;":932,"Tcaron;":356,"Tcedil;":354,"Tcy;":1058,"Tfr;":[55349,56599],"Therefore;":8756,"Theta;":920,"ThickSpace;":[8287,8202],"ThinSpace;":8201,"Tilde;":8764,"TildeEqual;":8771,"TildeFullEqual;":8773,"TildeTilde;":8776,"Topf;":[55349,56651],"TripleDot;":8411,"Tscr;":[55349,56495],"Tstrok;":358,Uacute:218,"Uacute;":218,"Uarr;":8607,"Uarrocir;":10569,"Ubrcy;":1038,"Ubreve;":364,Ucirc:219,"Ucirc;":219,"Ucy;":1059,"Udblac;":368,"Ufr;":[55349,56600],Ugrave:217,"Ugrave;":217,"Umacr;":362,"UnderBar;":95,"UnderBrace;":9183,"UnderBracket;":9141,"UnderParenthesis;":9181,"Union;":8899,"UnionPlus;":8846,"Uogon;":370,"Uopf;":[55349,56652],"UpArrow;":8593,"UpArrowBar;":10514,"UpArrowDownArrow;":8645,"UpDownArrow;":8597,"UpEquilibrium;":10606,"UpTee;":8869,"UpTeeArrow;":8613,"Uparrow;":8657,"Updownarrow;":8661,"UpperLeftArrow;":8598,"UpperRightArrow;":8599,"Upsi;":978,"Upsilon;":933,"Uring;":366,"Uscr;":[55349,56496],"Utilde;":360,Uuml:220,"Uuml;":220,"VDash;":8875,"Vbar;":10987,"Vcy;":1042,"Vdash;":8873,"Vdashl;":10982,"Vee;":8897,"Verbar;":8214,"Vert;":8214,"VerticalBar;":8739,"VerticalLine;":124,"VerticalSeparator;":10072,"VerticalTilde;":8768,"VeryThinSpace;":8202,"Vfr;":[55349,56601],"Vopf;":[55349,56653],"Vscr;":[55349,56497],"Vvdash;":8874,"Wcirc;":372,"Wedge;":8896,"Wfr;":[55349,56602],"Wopf;":[55349,56654],"Wscr;":[55349,56498],"Xfr;":[55349,56603],"Xi;":926,"Xopf;":[55349,56655],"Xscr;":[55349,56499],"YAcy;":1071,"YIcy;":1031,"YUcy;":1070,Yacute:221,"Yacute;":221,"Ycirc;":374,"Ycy;":1067,"Yfr;":[55349,56604],"Yopf;":[55349,56656],"Yscr;":[55349,56500],"Yuml;":376,"ZHcy;":1046,"Zacute;":377,"Zcaron;":381,"Zcy;":1047,"Zdot;":379,"ZeroWidthSpace;":8203,"Zeta;":918,"Zfr;":8488,"Zopf;":8484,"Zscr;":[55349,56501],aacute:225,"aacute;":225,"abreve;":259,"ac;":8766,"acE;":[8766,819],"acd;":8767,acirc:226,"acirc;":226,acute:180,"acute;":180,"acy;":1072,aelig:230,"aelig;":230,"af;":8289,"afr;":[55349,56606],agrave:224,"agrave;":224,"alefsym;":8501,"aleph;":8501,"alpha;":945,"amacr;":257,"amalg;":10815,amp:38,"amp;":38,"and;":8743,"andand;":10837,"andd;":10844,"andslope;":10840,"andv;":10842,"ang;":8736,"ange;":10660,"angle;":8736,"angmsd;":8737,"angmsdaa;":10664,"angmsdab;":10665,"angmsdac;":10666,"angmsdad;":10667,"angmsdae;":10668,"angmsdaf;":10669,"angmsdag;":10670,"angmsdah;":10671,"angrt;":8735,"angrtvb;":8894,"angrtvbd;":10653,"angsph;":8738,"angst;":197,"angzarr;":9084,"aogon;":261,"aopf;":[55349,56658],"ap;":8776,"apE;":10864,"apacir;":10863,"ape;":8778,"apid;":8779,"apos;":39,"approx;":8776,"approxeq;":8778,aring:229,"aring;":229,"ascr;":[55349,56502],"ast;":42,"asymp;":8776,"asympeq;":8781,atilde:227,"atilde;":227,auml:228,"auml;":228,"awconint;":8755,"awint;":10769,"bNot;":10989,"backcong;":8780,"backepsilon;":1014,"backprime;":8245,"backsim;":8765,"backsimeq;":8909,"barvee;":8893,"barwed;":8965,"barwedge;":8965,"bbrk;":9141,"bbrktbrk;":9142,"bcong;":8780,"bcy;":1073,"bdquo;":8222,"becaus;":8757,"because;":8757,"bemptyv;":10672,"bepsi;":1014,"bernou;":8492,"beta;":946,"beth;":8502,"between;":8812,"bfr;":[55349,56607],"bigcap;":8898,"bigcirc;":9711,"bigcup;":8899,"bigodot;":10752,"bigoplus;":10753,"bigotimes;":10754,"bigsqcup;":10758,"bigstar;":9733,"bigtriangledown;":9661,"bigtriangleup;":9651,"biguplus;":10756,"bigvee;":8897,"bigwedge;":8896,"bkarow;":10509,"blacklozenge;":10731,"blacksquare;":9642,"blacktriangle;":9652,"blacktriangledown;":9662,"blacktriangleleft;":9666,"blacktriangleright;":9656,"blank;":9251,"blk12;":9618,"blk14;":9617,"blk34;":9619,"block;":9608,"bne;":[61,8421],"bnequiv;":[8801,8421],"bnot;":8976,"bopf;":[55349,56659],"bot;":8869,"bottom;":8869,"bowtie;":8904,"boxDL;":9559,"boxDR;":9556,"boxDl;":9558,"boxDr;":9555,"boxH;":9552,"boxHD;":9574,"boxHU;":9577,"boxHd;":9572,"boxHu;":9575,"boxUL;":9565,"boxUR;":9562,"boxUl;":9564,"boxUr;":9561,"boxV;":9553,"boxVH;":9580,"boxVL;":9571,"boxVR;":9568,"boxVh;":9579,"boxVl;":9570,"boxVr;":9567,"boxbox;":10697,"boxdL;":9557,"boxdR;":9554,"boxdl;":9488,"boxdr;":9484,"boxh;":9472,"boxhD;":9573,"boxhU;":9576,"boxhd;":9516,"boxhu;":9524,"boxminus;":8863,"boxplus;":8862,"boxtimes;":8864,"boxuL;":9563,"boxuR;":9560,"boxul;":9496,"boxur;":9492,"boxv;":9474,"boxvH;":9578,"boxvL;":9569,"boxvR;":9566,"boxvh;":9532,"boxvl;":9508,"boxvr;":9500,"bprime;":8245,"breve;":728,brvbar:166,"brvbar;":166,"bscr;":[55349,56503],"bsemi;":8271,"bsim;":8765,"bsime;":8909,"bsol;":92,"bsolb;":10693,"bsolhsub;":10184,"bull;":8226,"bullet;":8226,"bump;":8782,"bumpE;":10926,"bumpe;":8783,"bumpeq;":8783,"cacute;":263,"cap;":8745,"capand;":10820,"capbrcup;":10825,"capcap;":10827,"capcup;":10823,"capdot;":10816,"caps;":[8745,65024],"caret;":8257,"caron;":711,"ccaps;":10829,"ccaron;":269,ccedil:231,"ccedil;":231,"ccirc;":265,"ccups;":10828,"ccupssm;":10832,"cdot;":267,cedil:184,"cedil;":184,"cemptyv;":10674,cent:162,"cent;":162,"centerdot;":183,"cfr;":[55349,56608],"chcy;":1095,"check;":10003,"checkmark;":10003,"chi;":967,"cir;":9675,"cirE;":10691,"circ;":710,"circeq;":8791,"circlearrowleft;":8634,"circlearrowright;":8635,"circledR;":174,"circledS;":9416,"circledast;":8859,"circledcirc;":8858,"circleddash;":8861,"cire;":8791,"cirfnint;":10768,"cirmid;":10991,"cirscir;":10690,"clubs;":9827,"clubsuit;":9827,"colon;":58,"colone;":8788,"coloneq;":8788,"comma;":44,"commat;":64,"comp;":8705,"compfn;":8728,"complement;":8705,"complexes;":8450,"cong;":8773,"congdot;":10861,"conint;":8750,"copf;":[55349,56660],"coprod;":8720,copy:169,"copy;":169,"copysr;":8471,"crarr;":8629,"cross;":10007,"cscr;":[55349,56504],"csub;":10959,"csube;":10961,"csup;":10960,"csupe;":10962,"ctdot;":8943,"cudarrl;":10552,"cudarrr;":10549,"cuepr;":8926,"cuesc;":8927,"cularr;":8630,"cularrp;":10557,"cup;":8746,"cupbrcap;":10824,"cupcap;":10822,"cupcup;":10826,"cupdot;":8845,"cupor;":10821,"cups;":[8746,65024],"curarr;":8631,"curarrm;":10556,"curlyeqprec;":8926,"curlyeqsucc;":8927,"curlyvee;":8910,"curlywedge;":8911,curren:164,"curren;":164,"curvearrowleft;":8630,"curvearrowright;":8631,"cuvee;":8910,"cuwed;":8911,"cwconint;":8754,"cwint;":8753,"cylcty;":9005,"dArr;":8659,"dHar;":10597,"dagger;":8224,"daleth;":8504,"darr;":8595,"dash;":8208,"dashv;":8867,"dbkarow;":10511,"dblac;":733,"dcaron;":271,"dcy;":1076,"dd;":8518,"ddagger;":8225,"ddarr;":8650,"ddotseq;":10871,deg:176,"deg;":176,"delta;":948,"demptyv;":10673,"dfisht;":10623,"dfr;":[55349,56609],"dharl;":8643,"dharr;":8642,"diam;":8900,"diamond;":8900,"diamondsuit;":9830,"diams;":9830,"die;":168,"digamma;":989,"disin;":8946,"div;":247,divide:247,"divide;":247,"divideontimes;":8903,"divonx;":8903,"djcy;":1106,"dlcorn;":8990,"dlcrop;":8973,"dollar;":36,"dopf;":[55349,56661],"dot;":729,"doteq;":8784,"doteqdot;":8785,"dotminus;":8760,"dotplus;":8724,"dotsquare;":8865,"doublebarwedge;":8966,"downarrow;":8595,"downdownarrows;":8650,"downharpoonleft;":8643,"downharpoonright;":8642,"drbkarow;":10512,"drcorn;":8991,"drcrop;":8972,"dscr;":[55349,56505],"dscy;":1109,"dsol;":10742,"dstrok;":273,"dtdot;":8945,"dtri;":9663,"dtrif;":9662,"duarr;":8693,"duhar;":10607,"dwangle;":10662,"dzcy;":1119,"dzigrarr;":10239,"eDDot;":10871,"eDot;":8785,eacute:233,"eacute;":233,"easter;":10862,"ecaron;":283,"ecir;":8790,ecirc:234,"ecirc;":234,"ecolon;":8789,"ecy;":1101,"edot;":279,"ee;":8519,"efDot;":8786,"efr;":[55349,56610],"eg;":10906,egrave:232,"egrave;":232,"egs;":10902,"egsdot;":10904,"el;":10905,"elinters;":9191,"ell;":8467,"els;":10901,"elsdot;":10903,"emacr;":275,"empty;":8709,"emptyset;":8709,"emptyv;":8709,"emsp13;":8196,"emsp14;":8197,"emsp;":8195,"eng;":331,"ensp;":8194,"eogon;":281,"eopf;":[55349,56662],"epar;":8917,"eparsl;":10723,"eplus;":10865,"epsi;":949,"epsilon;":949,"epsiv;":1013,"eqcirc;":8790,"eqcolon;":8789,"eqsim;":8770,"eqslantgtr;":10902,"eqslantless;":10901,"equals;":61,"equest;":8799,"equiv;":8801,"equivDD;":10872,"eqvparsl;":10725,"erDot;":8787,"erarr;":10609,"escr;":8495,"esdot;":8784,"esim;":8770,"eta;":951,eth:240,"eth;":240,euml:235,"euml;":235,"euro;":8364,"excl;":33,"exist;":8707,"expectation;":8496,"exponentiale;":8519,"fallingdotseq;":8786,"fcy;":1092,"female;":9792,"ffilig;":64259,"fflig;":64256,"ffllig;":64260,"ffr;":[55349,56611],"filig;":64257,"fjlig;":[102,106],"flat;":9837,"fllig;":64258,"fltns;":9649,"fnof;":402,"fopf;":[55349,56663],"forall;":8704,"fork;":8916,"forkv;":10969,"fpartint;":10765,frac12:189,"frac12;":189,"frac13;":8531,frac14:188,"frac14;":188,"frac15;":8533,"frac16;":8537,"frac18;":8539,"frac23;":8532,"frac25;":8534,frac34:190,"frac34;":190,"frac35;":8535,"frac38;":8540,"frac45;":8536,"frac56;":8538,"frac58;":8541,"frac78;":8542,"frasl;":8260,"frown;":8994,"fscr;":[55349,56507],"gE;":8807,"gEl;":10892,"gacute;":501,"gamma;":947,"gammad;":989,"gap;":10886,"gbreve;":287,"gcirc;":285,"gcy;":1075,"gdot;":289,"ge;":8805,"gel;":8923,"geq;":8805,"geqq;":8807,"geqslant;":10878,"ges;":10878,"gescc;":10921,"gesdot;":10880,"gesdoto;":10882,"gesdotol;":10884,"gesl;":[8923,65024],"gesles;":10900,"gfr;":[55349,56612],"gg;":8811,"ggg;":8921,"gimel;":8503,"gjcy;":1107,"gl;":8823,"glE;":10898,"gla;":10917,"glj;":10916,"gnE;":8809,"gnap;":10890,"gnapprox;":10890,"gne;":10888,"gneq;":10888,"gneqq;":8809,"gnsim;":8935,"gopf;":[55349,56664],"grave;":96,"gscr;":8458,"gsim;":8819,"gsime;":10894,"gsiml;":10896,gt:62,"gt;":62,"gtcc;":10919,"gtcir;":10874,"gtdot;":8919,"gtlPar;":10645,"gtquest;":10876,"gtrapprox;":10886,"gtrarr;":10616,"gtrdot;":8919,"gtreqless;":8923,"gtreqqless;":10892,"gtrless;":8823,"gtrsim;":8819,"gvertneqq;":[8809,65024],"gvnE;":[8809,65024],"hArr;":8660,"hairsp;":8202,"half;":189,"hamilt;":8459,"hardcy;":1098,"harr;":8596,"harrcir;":10568,"harrw;":8621,"hbar;":8463,"hcirc;":293,"hearts;":9829,"heartsuit;":9829,"hellip;":8230,"hercon;":8889,"hfr;":[55349,56613],"hksearow;":10533,"hkswarow;":10534,"hoarr;":8703,"homtht;":8763,"hookleftarrow;":8617,"hookrightarrow;":8618,"hopf;":[55349,56665],"horbar;":8213,"hscr;":[55349,56509],"hslash;":8463,"hstrok;":295,"hybull;":8259,"hyphen;":8208,iacute:237,"iacute;":237,"ic;":8291,icirc:238,"icirc;":238,"icy;":1080,"iecy;":1077,iexcl:161,"iexcl;":161,"iff;":8660,"ifr;":[55349,56614],igrave:236,"igrave;":236,"ii;":8520,"iiiint;":10764,"iiint;":8749,"iinfin;":10716,"iiota;":8489,"ijlig;":307,"imacr;":299,"image;":8465,"imagline;":8464,"imagpart;":8465,"imath;":305,"imof;":8887,"imped;":437,"in;":8712,"incare;":8453,"infin;":8734,"infintie;":10717,"inodot;":305,"int;":8747,"intcal;":8890,"integers;":8484,"intercal;":8890,"intlarhk;":10775,"intprod;":10812,"iocy;":1105,"iogon;":303,"iopf;":[55349,56666],"iota;":953,"iprod;":10812,iquest:191,"iquest;":191,"iscr;":[55349,56510],"isin;":8712,"isinE;":8953,"isindot;":8949,"isins;":8948,"isinsv;":8947,"isinv;":8712,"it;":8290,"itilde;":297,"iukcy;":1110,iuml:239,"iuml;":239,"jcirc;":309,"jcy;":1081,"jfr;":[55349,56615],"jmath;":567,"jopf;":[55349,56667],"jscr;":[55349,56511],"jsercy;":1112,"jukcy;":1108,"kappa;":954,"kappav;":1008,"kcedil;":311,"kcy;":1082,"kfr;":[55349,56616],"kgreen;":312,"khcy;":1093,"kjcy;":1116,"kopf;":[55349,56668],"kscr;":[55349,56512],"lAarr;":8666,"lArr;":8656,"lAtail;":10523,"lBarr;":10510,"lE;":8806,"lEg;":10891,"lHar;":10594,"lacute;":314,"laemptyv;":10676,"lagran;":8466,"lambda;":955,"lang;":10216,"langd;":10641,"langle;":10216,"lap;":10885,laquo:171,"laquo;":171,"larr;":8592,"larrb;":8676,"larrbfs;":10527,"larrfs;":10525,"larrhk;":8617,"larrlp;":8619,"larrpl;":10553,"larrsim;":10611,"larrtl;":8610,"lat;":10923,"latail;":10521,"late;":10925,"lates;":[10925,65024],"lbarr;":10508,"lbbrk;":10098,"lbrace;":123,"lbrack;":91,"lbrke;":10635,"lbrksld;":10639,"lbrkslu;":10637,"lcaron;":318,"lcedil;":316,"lceil;":8968,"lcub;":123,"lcy;":1083,"ldca;":10550,"ldquo;":8220,"ldquor;":8222,"ldrdhar;":10599,"ldrushar;":10571,"ldsh;":8626,"le;":8804,"leftarrow;":8592,"leftarrowtail;":8610,"leftharpoondown;":8637,"leftharpoonup;":8636,"leftleftarrows;":8647,"leftrightarrow;":8596,"leftrightarrows;":8646,"leftrightharpoons;":8651,"leftrightsquigarrow;":8621,"leftthreetimes;":8907,"leg;":8922,"leq;":8804,"leqq;":8806,"leqslant;":10877,"les;":10877,"lescc;":10920,"lesdot;":10879,"lesdoto;":10881,"lesdotor;":10883,"lesg;":[8922,65024],"lesges;":10899,"lessapprox;":10885,"lessdot;":8918,"lesseqgtr;":8922,"lesseqqgtr;":10891,"lessgtr;":8822,"lesssim;":8818,"lfisht;":10620,"lfloor;":8970,"lfr;":[55349,56617],"lg;":8822,"lgE;":10897,"lhard;":8637,"lharu;":8636,"lharul;":10602,"lhblk;":9604,"ljcy;":1113,"ll;":8810,"llarr;":8647,"llcorner;":8990,"llhard;":10603,"lltri;":9722,"lmidot;":320,"lmoust;":9136,"lmoustache;":9136,"lnE;":8808,"lnap;":10889,"lnapprox;":10889,"lne;":10887,"lneq;":10887,"lneqq;":8808,"lnsim;":8934,"loang;":10220,"loarr;":8701,"lobrk;":10214,"longleftarrow;":10229,"longleftrightarrow;":10231,"longmapsto;":10236,"longrightarrow;":10230,"looparrowleft;":8619,"looparrowright;":8620,"lopar;":10629,"lopf;":[55349,56669],"loplus;":10797,"lotimes;":10804,"lowast;":8727,"lowbar;":95,"loz;":9674,"lozenge;":9674,"lozf;":10731,"lpar;":40,"lparlt;":10643,"lrarr;":8646,"lrcorner;":8991,"lrhar;":8651,"lrhard;":10605,"lrm;":8206,"lrtri;":8895,"lsaquo;":8249,"lscr;":[55349,56513],"lsh;":8624,"lsim;":8818,"lsime;":10893,"lsimg;":10895,"lsqb;":91,"lsquo;":8216,"lsquor;":8218,"lstrok;":322,lt:60,"lt;":60,"ltcc;":10918,"ltcir;":10873,"ltdot;":8918,"lthree;":8907,"ltimes;":8905,"ltlarr;":10614,"ltquest;":10875,"ltrPar;":10646,"ltri;":9667,"ltrie;":8884,"ltrif;":9666,"lurdshar;":10570,"luruhar;":10598,"lvertneqq;":[8808,65024],"lvnE;":[8808,65024],"mDDot;":8762,macr:175,"macr;":175,"male;":9794,"malt;":10016,"maltese;":10016,"map;":8614,"mapsto;":8614,"mapstodown;":8615,"mapstoleft;":8612,"mapstoup;":8613,"marker;":9646,"mcomma;":10793,"mcy;":1084,"mdash;":8212,"measuredangle;":8737,"mfr;":[55349,56618],"mho;":8487,micro:181,"micro;":181,"mid;":8739,"midast;":42,"midcir;":10992,middot:183,"middot;":183,"minus;":8722,"minusb;":8863,"minusd;":8760,"minusdu;":10794,"mlcp;":10971,"mldr;":8230,"mnplus;":8723,"models;":8871,"mopf;":[55349,56670],"mp;":8723,"mscr;":[55349,56514],"mstpos;":8766,"mu;":956,"multimap;":8888,"mumap;":8888,"nGg;":[8921,824],"nGt;":[8811,8402],"nGtv;":[8811,824],"nLeftarrow;":8653,"nLeftrightarrow;":8654,"nLl;":[8920,824],"nLt;":[8810,8402],"nLtv;":[8810,824],"nRightarrow;":8655,"nVDash;":8879,"nVdash;":8878,"nabla;":8711,"nacute;":324,"nang;":[8736,8402],"nap;":8777,"napE;":[10864,824],"napid;":[8779,824],"napos;":329,"napprox;":8777,"natur;":9838,"natural;":9838,"naturals;":8469,nbsp:160,"nbsp;":160,"nbump;":[8782,824],"nbumpe;":[8783,824],"ncap;":10819,"ncaron;":328,"ncedil;":326,"ncong;":8775,"ncongdot;":[10861,824],"ncup;":10818,"ncy;":1085,"ndash;":8211,"ne;":8800,"neArr;":8663,"nearhk;":10532,"nearr;":8599,"nearrow;":8599,"nedot;":[8784,824],"nequiv;":8802,"nesear;":10536,"nesim;":[8770,824],"nexist;":8708,"nexists;":8708,"nfr;":[55349,56619],"ngE;":[8807,824],"nge;":8817,"ngeq;":8817,"ngeqq;":[8807,824],"ngeqslant;":[10878,824],"nges;":[10878,824],"ngsim;":8821,"ngt;":8815,"ngtr;":8815,"nhArr;":8654,"nharr;":8622,"nhpar;":10994,"ni;":8715,"nis;":8956,"nisd;":8954,"niv;":8715,"njcy;":1114,"nlArr;":8653,"nlE;":[8806,824],"nlarr;":8602,"nldr;":8229,"nle;":8816,"nleftarrow;":8602,"nleftrightarrow;":8622,"nleq;":8816,"nleqq;":[8806,824],"nleqslant;":[10877,824],"nles;":[10877,824],"nless;":8814,"nlsim;":8820,"nlt;":8814,"nltri;":8938,"nltrie;":8940,"nmid;":8740,"nopf;":[55349,56671],not:172,"not;":172,"notin;":8713,"notinE;":[8953,824],"notindot;":[8949,824],"notinva;":8713,"notinvb;":8951,"notinvc;":8950,"notni;":8716,"notniva;":8716,"notnivb;":8958,"notnivc;":8957,"npar;":8742,"nparallel;":8742,"nparsl;":[11005,8421],"npart;":[8706,824],"npolint;":10772,"npr;":8832,"nprcue;":8928,"npre;":[10927,824],"nprec;":8832,"npreceq;":[10927,824],"nrArr;":8655,"nrarr;":8603,"nrarrc;":[10547,824],"nrarrw;":[8605,824],"nrightarrow;":8603,"nrtri;":8939,"nrtrie;":8941,"nsc;":8833,"nsccue;":8929,"nsce;":[10928,824],"nscr;":[55349,56515],"nshortmid;":8740,"nshortparallel;":8742,"nsim;":8769,"nsime;":8772,"nsimeq;":8772,"nsmid;":8740,"nspar;":8742,"nsqsube;":8930,"nsqsupe;":8931,"nsub;":8836,"nsubE;":[10949,824],"nsube;":8840,"nsubset;":[8834,8402],"nsubseteq;":8840,"nsubseteqq;":[10949,824],"nsucc;":8833,"nsucceq;":[10928,824],"nsup;":8837,"nsupE;":[10950,824],"nsupe;":8841,"nsupset;":[8835,8402],"nsupseteq;":8841,"nsupseteqq;":[10950,824],"ntgl;":8825,ntilde:241,"ntilde;":241,"ntlg;":8824,"ntriangleleft;":8938,"ntrianglelefteq;":8940,"ntriangleright;":8939,"ntrianglerighteq;":8941,"nu;":957,"num;":35,"numero;":8470,"numsp;":8199,"nvDash;":8877,"nvHarr;":10500,"nvap;":[8781,8402],"nvdash;":8876,"nvge;":[8805,8402],"nvgt;":[62,8402],"nvinfin;":10718,"nvlArr;":10498,"nvle;":[8804,8402],"nvlt;":[60,8402],"nvltrie;":[8884,8402],"nvrArr;":10499,"nvrtrie;":[8885,8402],"nvsim;":[8764,8402],"nwArr;":8662,"nwarhk;":10531,"nwarr;":8598,"nwarrow;":8598,"nwnear;":10535,"oS;":9416,oacute:243,"oacute;":243,"oast;":8859,"ocir;":8858,ocirc:244,"ocirc;":244,"ocy;":1086,"odash;":8861,"odblac;":337,"odiv;":10808,"odot;":8857,"odsold;":10684,"oelig;":339,"ofcir;":10687,"ofr;":[55349,56620],"ogon;":731,ograve:242,"ograve;":242,"ogt;":10689,"ohbar;":10677,"ohm;":937,"oint;":8750,"olarr;":8634,"olcir;":10686,"olcross;":10683,"oline;":8254,"olt;":10688,"omacr;":333,"omega;":969,"omicron;":959,"omid;":10678,"ominus;":8854,"oopf;":[55349,56672],"opar;":10679,"operp;":10681,"oplus;":8853,"or;":8744,"orarr;":8635,"ord;":10845,"order;":8500,"orderof;":8500,ordf:170,"ordf;":170,ordm:186,"ordm;":186,"origof;":8886,"oror;":10838,"orslope;":10839,"orv;":10843,"oscr;":8500,oslash:248,"oslash;":248,"osol;":8856,otilde:245,"otilde;":245,"otimes;":8855,"otimesas;":10806,ouml:246,"ouml;":246,"ovbar;":9021,"par;":8741,para:182,"para;":182,"parallel;":8741,"parsim;":10995,"parsl;":11005,"part;":8706,"pcy;":1087,"percnt;":37,"period;":46,"permil;":8240,"perp;":8869,"pertenk;":8241,"pfr;":[55349,56621],"phi;":966,"phiv;":981,"phmmat;":8499,"phone;":9742,"pi;":960,"pitchfork;":8916,"piv;":982,"planck;":8463,"planckh;":8462,"plankv;":8463,"plus;":43,"plusacir;":10787,"plusb;":8862,"pluscir;":10786,"plusdo;":8724,"plusdu;":10789,"pluse;":10866,plusmn:177,"plusmn;":177,"plussim;":10790,"plustwo;":10791,"pm;":177,"pointint;":10773,"popf;":[55349,56673],pound:163,"pound;":163,"pr;":8826,"prE;":10931,"prap;":10935,"prcue;":8828,"pre;":10927,"prec;":8826,"precapprox;":10935,"preccurlyeq;":8828,"preceq;":10927,"precnapprox;":10937,"precneqq;":10933,"precnsim;":8936,"precsim;":8830,"prime;":8242,"primes;":8473,"prnE;":10933,"prnap;":10937,"prnsim;":8936,"prod;":8719,"profalar;":9006,"profline;":8978,"profsurf;":8979,"prop;":8733,"propto;":8733,"prsim;":8830,"prurel;":8880,"pscr;":[55349,56517],"psi;":968,"puncsp;":8200,"qfr;":[55349,56622],"qint;":10764,"qopf;":[55349,56674],"qprime;":8279,"qscr;":[55349,56518],"quaternions;":8461,"quatint;":10774,"quest;":63,"questeq;":8799,quot:34,"quot;":34,"rAarr;":8667,"rArr;":8658,"rAtail;":10524,"rBarr;":10511,"rHar;":10596,"race;":[8765,817],"racute;":341,"radic;":8730,"raemptyv;":10675,"rang;":10217,"rangd;":10642,"range;":10661,"rangle;":10217,raquo:187,"raquo;":187,"rarr;":8594,"rarrap;":10613,"rarrb;":8677,"rarrbfs;":10528,"rarrc;":10547,"rarrfs;":10526,"rarrhk;":8618,"rarrlp;":8620,"rarrpl;":10565,"rarrsim;":10612,"rarrtl;":8611,"rarrw;":8605,"ratail;":10522,"ratio;":8758,"rationals;":8474,"rbarr;":10509,"rbbrk;":10099,"rbrace;":125,"rbrack;":93,"rbrke;":10636,"rbrksld;":10638,"rbrkslu;":10640,"rcaron;":345,"rcedil;":343,"rceil;":8969,"rcub;":125,"rcy;":1088,"rdca;":10551,"rdldhar;":10601,"rdquo;":8221,"rdquor;":8221,"rdsh;":8627,"real;":8476,"realine;":8475,"realpart;":8476,"reals;":8477,"rect;":9645,reg:174,"reg;":174,"rfisht;":10621,"rfloor;":8971,"rfr;":[55349,56623],"rhard;":8641,"rharu;":8640,"rharul;":10604,"rho;":961,"rhov;":1009,"rightarrow;":8594,"rightarrowtail;":8611,"rightharpoondown;":8641,"rightharpoonup;":8640,"rightleftarrows;":8644,"rightleftharpoons;":8652,"rightrightarrows;":8649,"rightsquigarrow;":8605,"rightthreetimes;":8908,"ring;":730,"risingdotseq;":8787,"rlarr;":8644,"rlhar;":8652,"rlm;":8207,"rmoust;":9137,"rmoustache;":9137,"rnmid;":10990,"roang;":10221,"roarr;":8702,"robrk;":10215,"ropar;":10630,"ropf;":[55349,56675],"roplus;":10798,"rotimes;":10805,"rpar;":41,"rpargt;":10644,"rppolint;":10770,"rrarr;":8649,"rsaquo;":8250,"rscr;":[55349,56519],"rsh;":8625,"rsqb;":93,"rsquo;":8217,"rsquor;":8217,"rthree;":8908,"rtimes;":8906,"rtri;":9657,"rtrie;":8885,"rtrif;":9656,"rtriltri;":10702,"ruluhar;":10600,"rx;":8478,"sacute;":347,"sbquo;":8218,"sc;":8827,"scE;":10932,"scap;":10936,"scaron;":353,"sccue;":8829,"sce;":10928,"scedil;":351,"scirc;":349,"scnE;":10934,"scnap;":10938,"scnsim;":8937,"scpolint;":10771,"scsim;":8831,"scy;":1089,"sdot;":8901,"sdotb;":8865,"sdote;":10854,"seArr;":8664,"searhk;":10533,"searr;":8600,"searrow;":8600,sect:167,"sect;":167,"semi;":59,"seswar;":10537,"setminus;":8726,"setmn;":8726,"sext;":10038,"sfr;":[55349,56624],"sfrown;":8994,"sharp;":9839,"shchcy;":1097,"shcy;":1096,"shortmid;":8739,"shortparallel;":8741,shy:173,"shy;":173,"sigma;":963,"sigmaf;":962,"sigmav;":962,"sim;":8764,"simdot;":10858,"sime;":8771,"simeq;":8771,"simg;":10910,"simgE;":10912,"siml;":10909,"simlE;":10911,"simne;":8774,"simplus;":10788,"simrarr;":10610,"slarr;":8592,"smallsetminus;":8726,"smashp;":10803,"smeparsl;":10724,"smid;":8739,"smile;":8995,"smt;":10922,"smte;":10924,"smtes;":[10924,65024],"softcy;":1100,"sol;":47,"solb;":10692,"solbar;":9023,"sopf;":[55349,56676],"spades;":9824,"spadesuit;":9824,"spar;":8741,"sqcap;":8851,"sqcaps;":[8851,65024],"sqcup;":8852,"sqcups;":[8852,65024],"sqsub;":8847,"sqsube;":8849,"sqsubset;":8847,"sqsubseteq;":8849,"sqsup;":8848,"sqsupe;":8850,"sqsupset;":8848,"sqsupseteq;":8850,"squ;":9633,"square;":9633,"squarf;":9642,"squf;":9642,"srarr;":8594,"sscr;":[55349,56520],"ssetmn;":8726,"ssmile;":8995,"sstarf;":8902,"star;":9734,"starf;":9733,"straightepsilon;":1013,"straightphi;":981,"strns;":175,"sub;":8834,"subE;":10949,"subdot;":10941,"sube;":8838,"subedot;":10947,"submult;":10945,"subnE;":10955,"subne;":8842,"subplus;":10943,"subrarr;":10617,"subset;":8834,"subseteq;":8838,"subseteqq;":10949,"subsetneq;":8842,"subsetneqq;":10955,"subsim;":10951,"subsub;":10965,"subsup;":10963,"succ;":8827,"succapprox;":10936,"succcurlyeq;":8829,"succeq;":10928,"succnapprox;":10938,"succneqq;":10934,"succnsim;":8937,"succsim;":8831,"sum;":8721,"sung;":9834,sup1:185,"sup1;":185,sup2:178,"sup2;":178,sup3:179,"sup3;":179,"sup;":8835,"supE;":10950,"supdot;":10942,"supdsub;":10968,"supe;":8839,"supedot;":10948,"suphsol;":10185,"suphsub;":10967,"suplarr;":10619,"supmult;":10946,"supnE;":10956,"supne;":8843,"supplus;":10944,"supset;":8835,"supseteq;":8839,"supseteqq;":10950,"supsetneq;":8843,"supsetneqq;":10956,"supsim;":10952,"supsub;":10964,"supsup;":10966,"swArr;":8665,"swarhk;":10534,"swarr;":8601,"swarrow;":8601,"swnwar;":10538,szlig:223,"szlig;":223,"target;":8982,"tau;":964,"tbrk;":9140,"tcaron;":357,"tcedil;":355,"tcy;":1090,"tdot;":8411,"telrec;":8981,"tfr;":[55349,56625],"there4;":8756,"therefore;":8756,"theta;":952,"thetasym;":977,"thetav;":977,"thickapprox;":8776,"thicksim;":8764,"thinsp;":8201,"thkap;":8776,"thksim;":8764,thorn:254,"thorn;":254,"tilde;":732,times:215,"times;":215,"timesb;":8864,"timesbar;":10801,"timesd;":10800,"tint;":8749,"toea;":10536,"top;":8868,"topbot;":9014,"topcir;":10993,"topf;":[55349,56677],"topfork;":10970,"tosa;":10537,"tprime;":8244,"trade;":8482,"triangle;":9653,"triangledown;":9663,"triangleleft;":9667,"trianglelefteq;":8884,"triangleq;":8796,"triangleright;":9657,"trianglerighteq;":8885,"tridot;":9708,"trie;":8796,"triminus;":10810,"triplus;":10809,"trisb;":10701,"tritime;":10811,"trpezium;":9186,"tscr;":[55349,56521],"tscy;":1094,"tshcy;":1115,"tstrok;":359,"twixt;":8812,"twoheadleftarrow;":8606,"twoheadrightarrow;":8608,"uArr;":8657,"uHar;":10595,uacute:250,"uacute;":250,"uarr;":8593,"ubrcy;":1118,"ubreve;":365,ucirc:251,"ucirc;":251,"ucy;":1091,"udarr;":8645,"udblac;":369,"udhar;":10606,"ufisht;":10622,"ufr;":[55349,56626],ugrave:249,"ugrave;":249,"uharl;":8639,"uharr;":8638,"uhblk;":9600,"ulcorn;":8988,"ulcorner;":8988,"ulcrop;":8975,"ultri;":9720,"umacr;":363,uml:168,"uml;":168,"uogon;":371,"uopf;":[55349,56678],"uparrow;":8593,"updownarrow;":8597,"upharpoonleft;":8639,"upharpoonright;":8638,"uplus;":8846,"upsi;":965,"upsih;":978,"upsilon;":965,"upuparrows;":8648,"urcorn;":8989,"urcorner;":8989,"urcrop;":8974,"uring;":367,"urtri;":9721,"uscr;":[55349,56522],"utdot;":8944,"utilde;":361,"utri;":9653,"utrif;":9652,"uuarr;":8648,uuml:252,"uuml;":252,"uwangle;":10663,"vArr;":8661,"vBar;":10984,"vBarv;":10985,"vDash;":8872,"vangrt;":10652,"varepsilon;":1013,"varkappa;":1008,"varnothing;":8709,"varphi;":981,"varpi;":982,"varpropto;":8733,"varr;":8597,"varrho;":1009,"varsigma;":962,"varsubsetneq;":[8842,65024],"varsubsetneqq;":[10955,65024],"varsupsetneq;":[8843,65024],"varsupsetneqq;":[10956,65024],"vartheta;":977,"vartriangleleft;":8882,"vartriangleright;":8883,"vcy;":1074,"vdash;":8866,"vee;":8744,"veebar;":8891,"veeeq;":8794,"vellip;":8942,"verbar;":124,"vert;":124,"vfr;":[55349,56627],"vltri;":8882,"vnsub;":[8834,8402],"vnsup;":[8835,8402],"vopf;":[55349,56679],"vprop;":8733,"vrtri;":8883,"vscr;":[55349,56523],"vsubnE;":[10955,65024],"vsubne;":[8842,65024],"vsupnE;":[10956,65024],"vsupne;":[8843,65024],"vzigzag;":10650,"wcirc;":373,"wedbar;":10847,"wedge;":8743,"wedgeq;":8793,"weierp;":8472,"wfr;":[55349,56628],"wopf;":[55349,56680],"wp;":8472,"wr;":8768,"wreath;":8768,"wscr;":[55349,56524],"xcap;":8898,"xcirc;":9711,"xcup;":8899,"xdtri;":9661,"xfr;":[55349,56629],"xhArr;":10234,"xharr;":10231,"xi;":958,"xlArr;":10232,"xlarr;":10229,"xmap;":10236,"xnis;":8955,"xodot;":10752,"xopf;":[55349,56681],"xoplus;":10753,"xotime;":10754,"xrArr;":10233,"xrarr;":10230,"xscr;":[55349,56525],"xsqcup;":10758,"xuplus;":10756,"xutri;":9651,"xvee;":8897,"xwedge;":8896,yacute:253,"yacute;":253,"yacy;":1103,"ycirc;":375,"ycy;":1099,yen:165,"yen;":165,"yfr;":[55349,56630],"yicy;":1111,"yopf;":[55349,56682],"yscr;":[55349,56526],"yucy;":1102,yuml:255,"yuml;":255,"zacute;":378,"zcaron;":382,"zcy;":1079,"zdot;":380,"zeetrf;":8488,"zeta;":950,"zfr;":[55349,56631],"zhcy;":1078,"zigrarr;":8669,"zopf;":[55349,56683],"zscr;":[55349,56527],"zwj;":8205,"zwnj;":8204},jx=/(A(?:Elig;?|MP;?|acute;?|breve;|c(?:irc;?|y;)|fr;|grave;?|lpha;|macr;|nd;|o(?:gon;|pf;)|pplyFunction;|ring;?|s(?:cr;|sign;)|tilde;?|uml;?)|B(?:a(?:ckslash;|r(?:v;|wed;))|cy;|e(?:cause;|rnoullis;|ta;)|fr;|opf;|reve;|scr;|umpeq;)|C(?:Hcy;|OPY;?|a(?:cute;|p(?:;|italDifferentialD;)|yleys;)|c(?:aron;|edil;?|irc;|onint;)|dot;|e(?:dilla;|nterDot;)|fr;|hi;|ircle(?:Dot;|Minus;|Plus;|Times;)|lo(?:ckwiseContourIntegral;|seCurly(?:DoubleQuote;|Quote;))|o(?:lon(?:;|e;)|n(?:gruent;|int;|tourIntegral;)|p(?:f;|roduct;)|unterClockwiseContourIntegral;)|ross;|scr;|up(?:;|Cap;))|D(?:D(?:;|otrahd;)|Jcy;|Scy;|Zcy;|a(?:gger;|rr;|shv;)|c(?:aron;|y;)|el(?:;|ta;)|fr;|i(?:a(?:critical(?:Acute;|Do(?:t;|ubleAcute;)|Grave;|Tilde;)|mond;)|fferentialD;)|o(?:pf;|t(?:;|Dot;|Equal;)|uble(?:ContourIntegral;|Do(?:t;|wnArrow;)|L(?:eft(?:Arrow;|RightArrow;|Tee;)|ong(?:Left(?:Arrow;|RightArrow;)|RightArrow;))|Right(?:Arrow;|Tee;)|Up(?:Arrow;|DownArrow;)|VerticalBar;)|wn(?:Arrow(?:;|Bar;|UpArrow;)|Breve;|Left(?:RightVector;|TeeVector;|Vector(?:;|Bar;))|Right(?:TeeVector;|Vector(?:;|Bar;))|Tee(?:;|Arrow;)|arrow;))|s(?:cr;|trok;))|E(?:NG;|TH;?|acute;?|c(?:aron;|irc;?|y;)|dot;|fr;|grave;?|lement;|m(?:acr;|pty(?:SmallSquare;|VerySmallSquare;))|o(?:gon;|pf;)|psilon;|qu(?:al(?:;|Tilde;)|ilibrium;)|s(?:cr;|im;)|ta;|uml;?|x(?:ists;|ponentialE;))|F(?:cy;|fr;|illed(?:SmallSquare;|VerySmallSquare;)|o(?:pf;|rAll;|uriertrf;)|scr;)|G(?:Jcy;|T;?|amma(?:;|d;)|breve;|c(?:edil;|irc;|y;)|dot;|fr;|g;|opf;|reater(?:Equal(?:;|Less;)|FullEqual;|Greater;|Less;|SlantEqual;|Tilde;)|scr;|t;)|H(?:ARDcy;|a(?:cek;|t;)|circ;|fr;|ilbertSpace;|o(?:pf;|rizontalLine;)|s(?:cr;|trok;)|ump(?:DownHump;|Equal;))|I(?:Ecy;|Jlig;|Ocy;|acute;?|c(?:irc;?|y;)|dot;|fr;|grave;?|m(?:;|a(?:cr;|ginaryI;)|plies;)|n(?:t(?:;|e(?:gral;|rsection;))|visible(?:Comma;|Times;))|o(?:gon;|pf;|ta;)|scr;|tilde;|u(?:kcy;|ml;?))|J(?:c(?:irc;|y;)|fr;|opf;|s(?:cr;|ercy;)|ukcy;)|K(?:Hcy;|Jcy;|appa;|c(?:edil;|y;)|fr;|opf;|scr;)|L(?:Jcy;|T;?|a(?:cute;|mbda;|ng;|placetrf;|rr;)|c(?:aron;|edil;|y;)|e(?:ft(?:A(?:ngleBracket;|rrow(?:;|Bar;|RightArrow;))|Ceiling;|Do(?:ubleBracket;|wn(?:TeeVector;|Vector(?:;|Bar;)))|Floor;|Right(?:Arrow;|Vector;)|T(?:ee(?:;|Arrow;|Vector;)|riangle(?:;|Bar;|Equal;))|Up(?:DownVector;|TeeVector;|Vector(?:;|Bar;))|Vector(?:;|Bar;)|arrow;|rightarrow;)|ss(?:EqualGreater;|FullEqual;|Greater;|Less;|SlantEqual;|Tilde;))|fr;|l(?:;|eftarrow;)|midot;|o(?:ng(?:Left(?:Arrow;|RightArrow;)|RightArrow;|left(?:arrow;|rightarrow;)|rightarrow;)|pf;|wer(?:LeftArrow;|RightArrow;))|s(?:cr;|h;|trok;)|t;)|M(?:ap;|cy;|e(?:diumSpace;|llintrf;)|fr;|inusPlus;|opf;|scr;|u;)|N(?:Jcy;|acute;|c(?:aron;|edil;|y;)|e(?:gative(?:MediumSpace;|Thi(?:ckSpace;|nSpace;)|VeryThinSpace;)|sted(?:GreaterGreater;|LessLess;)|wLine;)|fr;|o(?:Break;|nBreakingSpace;|pf;|t(?:;|C(?:ongruent;|upCap;)|DoubleVerticalBar;|E(?:lement;|qual(?:;|Tilde;)|xists;)|Greater(?:;|Equal;|FullEqual;|Greater;|Less;|SlantEqual;|Tilde;)|Hump(?:DownHump;|Equal;)|Le(?:ftTriangle(?:;|Bar;|Equal;)|ss(?:;|Equal;|Greater;|Less;|SlantEqual;|Tilde;))|Nested(?:GreaterGreater;|LessLess;)|Precedes(?:;|Equal;|SlantEqual;)|R(?:everseElement;|ightTriangle(?:;|Bar;|Equal;))|S(?:quareSu(?:bset(?:;|Equal;)|perset(?:;|Equal;))|u(?:bset(?:;|Equal;)|cceeds(?:;|Equal;|SlantEqual;|Tilde;)|perset(?:;|Equal;)))|Tilde(?:;|Equal;|FullEqual;|Tilde;)|VerticalBar;))|scr;|tilde;?|u;)|O(?:Elig;|acute;?|c(?:irc;?|y;)|dblac;|fr;|grave;?|m(?:acr;|ega;|icron;)|opf;|penCurly(?:DoubleQuote;|Quote;)|r;|s(?:cr;|lash;?)|ti(?:lde;?|mes;)|uml;?|ver(?:B(?:ar;|rac(?:e;|ket;))|Parenthesis;))|P(?:artialD;|cy;|fr;|hi;|i;|lusMinus;|o(?:incareplane;|pf;)|r(?:;|ecedes(?:;|Equal;|SlantEqual;|Tilde;)|ime;|o(?:duct;|portion(?:;|al;)))|s(?:cr;|i;))|Q(?:UOT;?|fr;|opf;|scr;)|R(?:Barr;|EG;?|a(?:cute;|ng;|rr(?:;|tl;))|c(?:aron;|edil;|y;)|e(?:;|verse(?:E(?:lement;|quilibrium;)|UpEquilibrium;))|fr;|ho;|ight(?:A(?:ngleBracket;|rrow(?:;|Bar;|LeftArrow;))|Ceiling;|Do(?:ubleBracket;|wn(?:TeeVector;|Vector(?:;|Bar;)))|Floor;|T(?:ee(?:;|Arrow;|Vector;)|riangle(?:;|Bar;|Equal;))|Up(?:DownVector;|TeeVector;|Vector(?:;|Bar;))|Vector(?:;|Bar;)|arrow;)|o(?:pf;|undImplies;)|rightarrow;|s(?:cr;|h;)|uleDelayed;)|S(?:H(?:CHcy;|cy;)|OFTcy;|acute;|c(?:;|aron;|edil;|irc;|y;)|fr;|hort(?:DownArrow;|LeftArrow;|RightArrow;|UpArrow;)|igma;|mallCircle;|opf;|q(?:rt;|uare(?:;|Intersection;|Su(?:bset(?:;|Equal;)|perset(?:;|Equal;))|Union;))|scr;|tar;|u(?:b(?:;|set(?:;|Equal;))|c(?:ceeds(?:;|Equal;|SlantEqual;|Tilde;)|hThat;)|m;|p(?:;|erset(?:;|Equal;)|set;)))|T(?:HORN;?|RADE;|S(?:Hcy;|cy;)|a(?:b;|u;)|c(?:aron;|edil;|y;)|fr;|h(?:e(?:refore;|ta;)|i(?:ckSpace;|nSpace;))|ilde(?:;|Equal;|FullEqual;|Tilde;)|opf;|ripleDot;|s(?:cr;|trok;))|U(?:a(?:cute;?|rr(?:;|ocir;))|br(?:cy;|eve;)|c(?:irc;?|y;)|dblac;|fr;|grave;?|macr;|n(?:der(?:B(?:ar;|rac(?:e;|ket;))|Parenthesis;)|ion(?:;|Plus;))|o(?:gon;|pf;)|p(?:Arrow(?:;|Bar;|DownArrow;)|DownArrow;|Equilibrium;|Tee(?:;|Arrow;)|arrow;|downarrow;|per(?:LeftArrow;|RightArrow;)|si(?:;|lon;))|ring;|scr;|tilde;|uml;?)|V(?:Dash;|bar;|cy;|dash(?:;|l;)|e(?:e;|r(?:bar;|t(?:;|ical(?:Bar;|Line;|Separator;|Tilde;))|yThinSpace;))|fr;|opf;|scr;|vdash;)|W(?:circ;|edge;|fr;|opf;|scr;)|X(?:fr;|i;|opf;|scr;)|Y(?:Acy;|Icy;|Ucy;|acute;?|c(?:irc;|y;)|fr;|opf;|scr;|uml;)|Z(?:Hcy;|acute;|c(?:aron;|y;)|dot;|e(?:roWidthSpace;|ta;)|fr;|opf;|scr;)|a(?:acute;?|breve;|c(?:;|E;|d;|irc;?|ute;?|y;)|elig;?|f(?:;|r;)|grave;?|l(?:e(?:fsym;|ph;)|pha;)|m(?:a(?:cr;|lg;)|p;?)|n(?:d(?:;|and;|d;|slope;|v;)|g(?:;|e;|le;|msd(?:;|a(?:a;|b;|c;|d;|e;|f;|g;|h;))|rt(?:;|vb(?:;|d;))|s(?:ph;|t;)|zarr;))|o(?:gon;|pf;)|p(?:;|E;|acir;|e;|id;|os;|prox(?:;|eq;))|ring;?|s(?:cr;|t;|ymp(?:;|eq;))|tilde;?|uml;?|w(?:conint;|int;))|b(?:Not;|a(?:ck(?:cong;|epsilon;|prime;|sim(?:;|eq;))|r(?:vee;|wed(?:;|ge;)))|brk(?:;|tbrk;)|c(?:ong;|y;)|dquo;|e(?:caus(?:;|e;)|mptyv;|psi;|rnou;|t(?:a;|h;|ween;))|fr;|ig(?:c(?:ap;|irc;|up;)|o(?:dot;|plus;|times;)|s(?:qcup;|tar;)|triangle(?:down;|up;)|uplus;|vee;|wedge;)|karow;|l(?:a(?:ck(?:lozenge;|square;|triangle(?:;|down;|left;|right;))|nk;)|k(?:1(?:2;|4;)|34;)|ock;)|n(?:e(?:;|quiv;)|ot;)|o(?:pf;|t(?:;|tom;)|wtie;|x(?:D(?:L;|R;|l;|r;)|H(?:;|D;|U;|d;|u;)|U(?:L;|R;|l;|r;)|V(?:;|H;|L;|R;|h;|l;|r;)|box;|d(?:L;|R;|l;|r;)|h(?:;|D;|U;|d;|u;)|minus;|plus;|times;|u(?:L;|R;|l;|r;)|v(?:;|H;|L;|R;|h;|l;|r;)))|prime;|r(?:eve;|vbar;?)|s(?:cr;|emi;|im(?:;|e;)|ol(?:;|b;|hsub;))|u(?:ll(?:;|et;)|mp(?:;|E;|e(?:;|q;))))|c(?:a(?:cute;|p(?:;|and;|brcup;|c(?:ap;|up;)|dot;|s;)|r(?:et;|on;))|c(?:a(?:ps;|ron;)|edil;?|irc;|ups(?:;|sm;))|dot;|e(?:dil;?|mptyv;|nt(?:;|erdot;|))|fr;|h(?:cy;|eck(?:;|mark;)|i;)|ir(?:;|E;|c(?:;|eq;|le(?:arrow(?:left;|right;)|d(?:R;|S;|ast;|circ;|dash;)))|e;|fnint;|mid;|scir;)|lubs(?:;|uit;)|o(?:lon(?:;|e(?:;|q;))|m(?:ma(?:;|t;)|p(?:;|fn;|le(?:ment;|xes;)))|n(?:g(?:;|dot;)|int;)|p(?:f;|rod;|y(?:;|sr;|)))|r(?:arr;|oss;)|s(?:cr;|u(?:b(?:;|e;)|p(?:;|e;)))|tdot;|u(?:darr(?:l;|r;)|e(?:pr;|sc;)|larr(?:;|p;)|p(?:;|brcap;|c(?:ap;|up;)|dot;|or;|s;)|r(?:arr(?:;|m;)|ly(?:eq(?:prec;|succ;)|vee;|wedge;)|ren;?|vearrow(?:left;|right;))|vee;|wed;)|w(?:conint;|int;)|ylcty;)|d(?:Arr;|Har;|a(?:gger;|leth;|rr;|sh(?:;|v;))|b(?:karow;|lac;)|c(?:aron;|y;)|d(?:;|a(?:gger;|rr;)|otseq;)|e(?:g;?|lta;|mptyv;)|f(?:isht;|r;)|har(?:l;|r;)|i(?:am(?:;|ond(?:;|suit;)|s;)|e;|gamma;|sin;|v(?:;|ide(?:;|ontimes;|)|onx;))|jcy;|lc(?:orn;|rop;)|o(?:llar;|pf;|t(?:;|eq(?:;|dot;)|minus;|plus;|square;)|ublebarwedge;|wn(?:arrow;|downarrows;|harpoon(?:left;|right;)))|r(?:bkarow;|c(?:orn;|rop;))|s(?:c(?:r;|y;)|ol;|trok;)|t(?:dot;|ri(?:;|f;))|u(?:arr;|har;)|wangle;|z(?:cy;|igrarr;))|e(?:D(?:Dot;|ot;)|a(?:cute;?|ster;)|c(?:aron;|ir(?:;|c;?)|olon;|y;)|dot;|e;|f(?:Dot;|r;)|g(?:;|rave;?|s(?:;|dot;))|l(?:;|inters;|l;|s(?:;|dot;))|m(?:acr;|pty(?:;|set;|v;)|sp(?:1(?:3;|4;)|;))|n(?:g;|sp;)|o(?:gon;|pf;)|p(?:ar(?:;|sl;)|lus;|si(?:;|lon;|v;))|q(?:c(?:irc;|olon;)|s(?:im;|lant(?:gtr;|less;))|u(?:als;|est;|iv(?:;|DD;))|vparsl;)|r(?:Dot;|arr;)|s(?:cr;|dot;|im;)|t(?:a;|h;?)|u(?:ml;?|ro;)|x(?:cl;|ist;|p(?:ectation;|onentiale;)))|f(?:allingdotseq;|cy;|emale;|f(?:ilig;|l(?:ig;|lig;)|r;)|ilig;|jlig;|l(?:at;|lig;|tns;)|nof;|o(?:pf;|r(?:all;|k(?:;|v;)))|partint;|r(?:a(?:c(?:1(?:2;?|3;|4;?|5;|6;|8;)|2(?:3;|5;)|3(?:4;?|5;|8;)|45;|5(?:6;|8;)|78;)|sl;)|own;)|scr;)|g(?:E(?:;|l;)|a(?:cute;|mma(?:;|d;)|p;)|breve;|c(?:irc;|y;)|dot;|e(?:;|l;|q(?:;|q;|slant;)|s(?:;|cc;|dot(?:;|o(?:;|l;))|l(?:;|es;)))|fr;|g(?:;|g;)|imel;|jcy;|l(?:;|E;|a;|j;)|n(?:E;|ap(?:;|prox;)|e(?:;|q(?:;|q;))|sim;)|opf;|rave;|s(?:cr;|im(?:;|e;|l;))|t(?:;|c(?:c;|ir;)|dot;|lPar;|quest;|r(?:a(?:pprox;|rr;)|dot;|eq(?:less;|qless;)|less;|sim;)|)|v(?:ertneqq;|nE;))|h(?:Arr;|a(?:irsp;|lf;|milt;|r(?:dcy;|r(?:;|cir;|w;)))|bar;|circ;|e(?:arts(?:;|uit;)|llip;|rcon;)|fr;|ks(?:earow;|warow;)|o(?:arr;|mtht;|ok(?:leftarrow;|rightarrow;)|pf;|rbar;)|s(?:cr;|lash;|trok;)|y(?:bull;|phen;))|i(?:acute;?|c(?:;|irc;?|y;)|e(?:cy;|xcl;?)|f(?:f;|r;)|grave;?|i(?:;|i(?:int;|nt;)|nfin;|ota;)|jlig;|m(?:a(?:cr;|g(?:e;|line;|part;)|th;)|of;|ped;)|n(?:;|care;|fin(?:;|tie;)|odot;|t(?:;|cal;|e(?:gers;|rcal;)|larhk;|prod;))|o(?:cy;|gon;|pf;|ta;)|prod;|quest;?|s(?:cr;|in(?:;|E;|dot;|s(?:;|v;)|v;))|t(?:;|ilde;)|u(?:kcy;|ml;?))|j(?:c(?:irc;|y;)|fr;|math;|opf;|s(?:cr;|ercy;)|ukcy;)|k(?:appa(?:;|v;)|c(?:edil;|y;)|fr;|green;|hcy;|jcy;|opf;|scr;)|l(?:A(?:arr;|rr;|tail;)|Barr;|E(?:;|g;)|Har;|a(?:cute;|emptyv;|gran;|mbda;|ng(?:;|d;|le;)|p;|quo;?|rr(?:;|b(?:;|fs;)|fs;|hk;|lp;|pl;|sim;|tl;)|t(?:;|ail;|e(?:;|s;)))|b(?:arr;|brk;|r(?:ac(?:e;|k;)|k(?:e;|sl(?:d;|u;))))|c(?:aron;|e(?:dil;|il;)|ub;|y;)|d(?:ca;|quo(?:;|r;)|r(?:dhar;|ushar;)|sh;)|e(?:;|ft(?:arrow(?:;|tail;)|harpoon(?:down;|up;)|leftarrows;|right(?:arrow(?:;|s;)|harpoons;|squigarrow;)|threetimes;)|g;|q(?:;|q;|slant;)|s(?:;|cc;|dot(?:;|o(?:;|r;))|g(?:;|es;)|s(?:approx;|dot;|eq(?:gtr;|qgtr;)|gtr;|sim;)))|f(?:isht;|loor;|r;)|g(?:;|E;)|h(?:ar(?:d;|u(?:;|l;))|blk;)|jcy;|l(?:;|arr;|corner;|hard;|tri;)|m(?:idot;|oust(?:;|ache;))|n(?:E;|ap(?:;|prox;)|e(?:;|q(?:;|q;))|sim;)|o(?:a(?:ng;|rr;)|brk;|ng(?:left(?:arrow;|rightarrow;)|mapsto;|rightarrow;)|oparrow(?:left;|right;)|p(?:ar;|f;|lus;)|times;|w(?:ast;|bar;)|z(?:;|enge;|f;))|par(?:;|lt;)|r(?:arr;|corner;|har(?:;|d;)|m;|tri;)|s(?:aquo;|cr;|h;|im(?:;|e;|g;)|q(?:b;|uo(?:;|r;))|trok;)|t(?:;|c(?:c;|ir;)|dot;|hree;|imes;|larr;|quest;|r(?:Par;|i(?:;|e;|f;))|)|ur(?:dshar;|uhar;)|v(?:ertneqq;|nE;))|m(?:DDot;|a(?:cr;?|l(?:e;|t(?:;|ese;))|p(?:;|sto(?:;|down;|left;|up;))|rker;)|c(?:omma;|y;)|dash;|easuredangle;|fr;|ho;|i(?:cro;?|d(?:;|ast;|cir;|dot;?)|nus(?:;|b;|d(?:;|u;)))|l(?:cp;|dr;)|nplus;|o(?:dels;|pf;)|p;|s(?:cr;|tpos;)|u(?:;|ltimap;|map;))|n(?:G(?:g;|t(?:;|v;))|L(?:eft(?:arrow;|rightarrow;)|l;|t(?:;|v;))|Rightarrow;|V(?:Dash;|dash;)|a(?:bla;|cute;|ng;|p(?:;|E;|id;|os;|prox;)|tur(?:;|al(?:;|s;)))|b(?:sp;?|ump(?:;|e;))|c(?:a(?:p;|ron;)|edil;|ong(?:;|dot;)|up;|y;)|dash;|e(?:;|Arr;|ar(?:hk;|r(?:;|ow;))|dot;|quiv;|s(?:ear;|im;)|xist(?:;|s;))|fr;|g(?:E;|e(?:;|q(?:;|q;|slant;)|s;)|sim;|t(?:;|r;))|h(?:Arr;|arr;|par;)|i(?:;|s(?:;|d;)|v;)|jcy;|l(?:Arr;|E;|arr;|dr;|e(?:;|ft(?:arrow;|rightarrow;)|q(?:;|q;|slant;)|s(?:;|s;))|sim;|t(?:;|ri(?:;|e;)))|mid;|o(?:pf;|t(?:;|in(?:;|E;|dot;|v(?:a;|b;|c;))|ni(?:;|v(?:a;|b;|c;))|))|p(?:ar(?:;|allel;|sl;|t;)|olint;|r(?:;|cue;|e(?:;|c(?:;|eq;))))|r(?:Arr;|arr(?:;|c;|w;)|ightarrow;|tri(?:;|e;))|s(?:c(?:;|cue;|e;|r;)|hort(?:mid;|parallel;)|im(?:;|e(?:;|q;))|mid;|par;|qsu(?:be;|pe;)|u(?:b(?:;|E;|e;|set(?:;|eq(?:;|q;)))|cc(?:;|eq;)|p(?:;|E;|e;|set(?:;|eq(?:;|q;)))))|t(?:gl;|ilde;?|lg;|riangle(?:left(?:;|eq;)|right(?:;|eq;)))|u(?:;|m(?:;|ero;|sp;))|v(?:Dash;|Harr;|ap;|dash;|g(?:e;|t;)|infin;|l(?:Arr;|e;|t(?:;|rie;))|r(?:Arr;|trie;)|sim;)|w(?:Arr;|ar(?:hk;|r(?:;|ow;))|near;))|o(?:S;|a(?:cute;?|st;)|c(?:ir(?:;|c;?)|y;)|d(?:ash;|blac;|iv;|ot;|sold;)|elig;|f(?:cir;|r;)|g(?:on;|rave;?|t;)|h(?:bar;|m;)|int;|l(?:arr;|c(?:ir;|ross;)|ine;|t;)|m(?:acr;|ega;|i(?:cron;|d;|nus;))|opf;|p(?:ar;|erp;|lus;)|r(?:;|arr;|d(?:;|er(?:;|of;)|f;?|m;?)|igof;|or;|slope;|v;)|s(?:cr;|lash;?|ol;)|ti(?:lde;?|mes(?:;|as;))|uml;?|vbar;)|p(?:ar(?:;|a(?:;|llel;|)|s(?:im;|l;)|t;)|cy;|er(?:cnt;|iod;|mil;|p;|tenk;)|fr;|h(?:i(?:;|v;)|mmat;|one;)|i(?:;|tchfork;|v;)|l(?:an(?:ck(?:;|h;)|kv;)|us(?:;|acir;|b;|cir;|d(?:o;|u;)|e;|mn;?|sim;|two;))|m;|o(?:intint;|pf;|und;?)|r(?:;|E;|ap;|cue;|e(?:;|c(?:;|approx;|curlyeq;|eq;|n(?:approx;|eqq;|sim;)|sim;))|ime(?:;|s;)|n(?:E;|ap;|sim;)|o(?:d;|f(?:alar;|line;|surf;)|p(?:;|to;))|sim;|urel;)|s(?:cr;|i;)|uncsp;)|q(?:fr;|int;|opf;|prime;|scr;|u(?:at(?:ernions;|int;)|est(?:;|eq;)|ot;?))|r(?:A(?:arr;|rr;|tail;)|Barr;|Har;|a(?:c(?:e;|ute;)|dic;|emptyv;|ng(?:;|d;|e;|le;)|quo;?|rr(?:;|ap;|b(?:;|fs;)|c;|fs;|hk;|lp;|pl;|sim;|tl;|w;)|t(?:ail;|io(?:;|nals;)))|b(?:arr;|brk;|r(?:ac(?:e;|k;)|k(?:e;|sl(?:d;|u;))))|c(?:aron;|e(?:dil;|il;)|ub;|y;)|d(?:ca;|ldhar;|quo(?:;|r;)|sh;)|e(?:al(?:;|ine;|part;|s;)|ct;|g;?)|f(?:isht;|loor;|r;)|h(?:ar(?:d;|u(?:;|l;))|o(?:;|v;))|i(?:ght(?:arrow(?:;|tail;)|harpoon(?:down;|up;)|left(?:arrows;|harpoons;)|rightarrows;|squigarrow;|threetimes;)|ng;|singdotseq;)|l(?:arr;|har;|m;)|moust(?:;|ache;)|nmid;|o(?:a(?:ng;|rr;)|brk;|p(?:ar;|f;|lus;)|times;)|p(?:ar(?:;|gt;)|polint;)|rarr;|s(?:aquo;|cr;|h;|q(?:b;|uo(?:;|r;)))|t(?:hree;|imes;|ri(?:;|e;|f;|ltri;))|uluhar;|x;)|s(?:acute;|bquo;|c(?:;|E;|a(?:p;|ron;)|cue;|e(?:;|dil;)|irc;|n(?:E;|ap;|sim;)|polint;|sim;|y;)|dot(?:;|b;|e;)|e(?:Arr;|ar(?:hk;|r(?:;|ow;))|ct;?|mi;|swar;|tm(?:inus;|n;)|xt;)|fr(?:;|own;)|h(?:arp;|c(?:hcy;|y;)|ort(?:mid;|parallel;)|y;?)|i(?:gma(?:;|f;|v;)|m(?:;|dot;|e(?:;|q;)|g(?:;|E;)|l(?:;|E;)|ne;|plus;|rarr;))|larr;|m(?:a(?:llsetminus;|shp;)|eparsl;|i(?:d;|le;)|t(?:;|e(?:;|s;)))|o(?:ftcy;|l(?:;|b(?:;|ar;))|pf;)|pa(?:des(?:;|uit;)|r;)|q(?:c(?:ap(?:;|s;)|up(?:;|s;))|su(?:b(?:;|e;|set(?:;|eq;))|p(?:;|e;|set(?:;|eq;)))|u(?:;|ar(?:e;|f;)|f;))|rarr;|s(?:cr;|etmn;|mile;|tarf;)|t(?:ar(?:;|f;)|r(?:aight(?:epsilon;|phi;)|ns;))|u(?:b(?:;|E;|dot;|e(?:;|dot;)|mult;|n(?:E;|e;)|plus;|rarr;|s(?:et(?:;|eq(?:;|q;)|neq(?:;|q;))|im;|u(?:b;|p;)))|cc(?:;|approx;|curlyeq;|eq;|n(?:approx;|eqq;|sim;)|sim;)|m;|ng;|p(?:1;?|2;?|3;?|;|E;|d(?:ot;|sub;)|e(?:;|dot;)|hs(?:ol;|ub;)|larr;|mult;|n(?:E;|e;)|plus;|s(?:et(?:;|eq(?:;|q;)|neq(?:;|q;))|im;|u(?:b;|p;))))|w(?:Arr;|ar(?:hk;|r(?:;|ow;))|nwar;)|zlig;?)|t(?:a(?:rget;|u;)|brk;|c(?:aron;|edil;|y;)|dot;|elrec;|fr;|h(?:e(?:re(?:4;|fore;)|ta(?:;|sym;|v;))|i(?:ck(?:approx;|sim;)|nsp;)|k(?:ap;|sim;)|orn;?)|i(?:lde;|mes(?:;|b(?:;|ar;)|d;|)|nt;)|o(?:ea;|p(?:;|bot;|cir;|f(?:;|ork;))|sa;)|prime;|r(?:ade;|i(?:angle(?:;|down;|left(?:;|eq;)|q;|right(?:;|eq;))|dot;|e;|minus;|plus;|sb;|time;)|pezium;)|s(?:c(?:r;|y;)|hcy;|trok;)|w(?:ixt;|ohead(?:leftarrow;|rightarrow;)))|u(?:Arr;|Har;|a(?:cute;?|rr;)|br(?:cy;|eve;)|c(?:irc;?|y;)|d(?:arr;|blac;|har;)|f(?:isht;|r;)|grave;?|h(?:ar(?:l;|r;)|blk;)|l(?:c(?:orn(?:;|er;)|rop;)|tri;)|m(?:acr;|l;?)|o(?:gon;|pf;)|p(?:arrow;|downarrow;|harpoon(?:left;|right;)|lus;|si(?:;|h;|lon;)|uparrows;)|r(?:c(?:orn(?:;|er;)|rop;)|ing;|tri;)|scr;|t(?:dot;|ilde;|ri(?:;|f;))|u(?:arr;|ml;?)|wangle;)|v(?:Arr;|Bar(?:;|v;)|Dash;|a(?:ngrt;|r(?:epsilon;|kappa;|nothing;|p(?:hi;|i;|ropto;)|r(?:;|ho;)|s(?:igma;|u(?:bsetneq(?:;|q;)|psetneq(?:;|q;)))|t(?:heta;|riangle(?:left;|right;))))|cy;|dash;|e(?:e(?:;|bar;|eq;)|llip;|r(?:bar;|t;))|fr;|ltri;|nsu(?:b;|p;)|opf;|prop;|rtri;|s(?:cr;|u(?:bn(?:E;|e;)|pn(?:E;|e;)))|zigzag;)|w(?:circ;|e(?:d(?:bar;|ge(?:;|q;))|ierp;)|fr;|opf;|p;|r(?:;|eath;)|scr;)|x(?:c(?:ap;|irc;|up;)|dtri;|fr;|h(?:Arr;|arr;)|i;|l(?:Arr;|arr;)|map;|nis;|o(?:dot;|p(?:f;|lus;)|time;)|r(?:Arr;|arr;)|s(?:cr;|qcup;)|u(?:plus;|tri;)|vee;|wedge;)|y(?:ac(?:ute;?|y;)|c(?:irc;|y;)|en;?|fr;|icy;|opf;|scr;|u(?:cy;|ml;?))|z(?:acute;|c(?:aron;|y;)|dot;|e(?:etrf;|ta;)|fr;|hcy;|igrarr;|opf;|scr;|w(?:j;|nj;)))|[\s\S]/g,nw=32,iw=/[^\r"&\u0000]+/g,aw=/[^\r'&\u0000]+/g,ow=/[^\r\t\n\f &>\u0000]+/g,sw=/[^\r\t\n\f \/>A-Z\u0000]+/g,cw=/[^\r\t\n\f \/=>A-Z\u0000]+/g,uw=/[^\]\r\u0000\uffff]*/g,lw=/[^&<\r\u0000\uffff]*/g,Vx=/[^<\r\u0000\uffff]*/g,fw=/[^\r\u0000\uffff]*/g,Gx=/(?:(\/)?([a-z]+)>)|[\s\S]/g,Kx=/(?:([-a-z]+)[ \t\n\f]*=[ \t\n\f]*('[^'&\r\u0000]*'|"[^"&\r\u0000]*"|[^\t\n\r\f "&'\u0000>][^&> \t\n\r\f\u0000]*[ \t\n\f]))|[\s\S]/g,Io=/[^\x09\x0A\x0C\x0D\x20]/,iu=/[^\x09\x0A\x0C\x0D\x20]/g,pw=/[^\x00\x09\x0A\x0C\x0D\x20]/,fn=/^[\x09\x0A\x0C\x0D\x20]+/,wo=/\x00/g;function et(e){var t=16384;if(e.length<t)return String.fromCharCode.apply(String,e);for(var r="",n=0;n<e.length;n+=t)r+=String.fromCharCode.apply(String,e.slice(n,n+t));return r}function dw(e){for(var t=[],r=0;r<e.length;r++)t[r]=e.charCodeAt(r);return t}function ne(e,t){if(typeof t=="string")return e.namespaceURI===R.HTML&&e.localName===t;var r=t[e.namespaceURI];return r&&r[e.localName]}function $x(e){return ne(e,nm)}function Wx(e){if(ne(e,im))return!0;if(e.namespaceURI===R.MATHML&&e.localName==="annotation-xml"){var t=e.getAttribute("encoding");if(t&&(t=t.toLowerCase()),t==="text/html"||t==="application/xhtml+xml")return!0}return!1}function xw(e){return e in Ux?Ux[e]:e}function zx(e){for(var t=0,r=e.length;t<r;t++)e[t][0]in Hx&&(e[t][0]=Hx[e[t][0]])}function Xx(e){for(var t=0,r=e.length;t<r;t++)if(e[t][0]==="definitionurl"){e[t][0]="definitionURL";break}}function au(e){for(var t=0,r=e.length;t<r;t++)e[t][0]in Px&&e[t].push(Px[e[t][0]])}function Qx(e,t){for(var r=0,n=e.length;r<n;r++){var i=e[r][0],s=e[r][1];t.hasAttribute(i)||t._setAttribute(i,s)}}$.ElementStack=function(){this.elements=[],this.top=null};$.ElementStack.prototype.push=function(e){this.elements.push(e),this.top=e};$.ElementStack.prototype.pop=function(e){this.elements.pop(),this.top=this.elements[this.elements.length-1]};$.ElementStack.prototype.popTag=function(e){for(var t=this.elements.length-1;t>0;t--){var r=this.elements[t];if(ne(r,e))break}this.elements.length=t,this.top=this.elements[t-1]};$.ElementStack.prototype.popElementType=function(e){for(var t=this.elements.length-1;t>0&&!(this.elements[t]instanceof e);t--);this.elements.length=t,this.top=this.elements[t-1]};$.ElementStack.prototype.popElement=function(e){for(var t=this.elements.length-1;t>0&&this.elements[t]!==e;t--);this.elements.length=t,this.top=this.elements[t-1]};$.ElementStack.prototype.removeElement=function(e){if(this.top===e)this.pop();else{var t=this.elements.lastIndexOf(e);t!==-1&&this.elements.splice(t,1)}};$.ElementStack.prototype.clearToContext=function(e){for(var t=this.elements.length-1;t>0&&!ne(this.elements[t],e);t--);this.elements.length=t+1,this.top=this.elements[t]};$.ElementStack.prototype.contains=function(e){return this.inSpecificScope(e,Object.create(null))};$.ElementStack.prototype.inSpecificScope=function(e,t){for(var r=this.elements.length-1;r>=0;r--){var n=this.elements[r];if(ne(n,e))return!0;if(ne(n,t))return!1}return!1};$.ElementStack.prototype.elementInSpecificScope=function(e,t){for(var r=this.elements.length-1;r>=0;r--){var n=this.elements[r];if(n===e)return!0;if(ne(n,t))return!1}return!1};$.ElementStack.prototype.elementTypeInSpecificScope=function(e,t){for(var r=this.elements.length-1;r>=0;r--){var n=this.elements[r];if(n instanceof e)return!0;if(ne(n,t))return!1}return!1};$.ElementStack.prototype.inScope=function(e){return this.inSpecificScope(e,Zt)};$.ElementStack.prototype.elementInScope=function(e){return this.elementInSpecificScope(e,Zt)};$.ElementStack.prototype.elementTypeInScope=function(e){return this.elementTypeInSpecificScope(e,Zt)};$.ElementStack.prototype.inButtonScope=function(e){return this.inSpecificScope(e,cu)};$.ElementStack.prototype.inListItemScope=function(e){return this.inSpecificScope(e,No)};$.ElementStack.prototype.inTableScope=function(e){return this.inSpecificScope(e,rm)};$.ElementStack.prototype.inSelectScope=function(e){for(var t=this.elements.length-1;t>=0;t--){var r=this.elements[t];if(r.namespaceURI!==R.HTML)return!1;var n=r.localName;if(n===e)return!0;if(n!=="optgroup"&&n!=="option")return!1}return!1};$.ElementStack.prototype.generateImpliedEndTags=function(e,t){for(var r=t?em:Jx,n=this.elements.length-1;n>=0;n--){var i=this.elements[n];if(e&&ne(i,e)||!ne(this.elements[n],r))break}this.elements.length=n+1,this.top=this.elements[n]};$.ActiveFormattingElements=function(){this.list=[],this.attrs=[]};$.ActiveFormattingElements.prototype.MARKER={localName:"|"};$.ActiveFormattingElements.prototype.insertMarker=function(){this.list.push(this.MARKER),this.attrs.push(this.MARKER)};$.ActiveFormattingElements.prototype.push=function(e,t){for(var r=0,n=this.list.length-1;n>=0&&this.list[n]!==this.MARKER;n--)if(c(e,this.list[n],this.attrs[n])&&(r++,r===3)){this.list.splice(n,1),this.attrs.splice(n,1);break}this.list.push(e);for(var i=[],s=0;s<t.length;s++)i[s]=t[s];this.attrs.push(i);function c(d,b,T){if(d.localName!==b.localName||d._numattrs!==T.length)return!1;for(var S=0,ce=T.length;S<ce;S++){var fe=T[S][0],f=T[S][1];if(!d.hasAttribute(fe)||d.getAttribute(fe)!==f)return!1}return!0}};$.ActiveFormattingElements.prototype.clearToMarker=function(){for(var e=this.list.length-1;e>=0&&this.list[e]!==this.MARKER;e--);e<0&&(e=0),this.list.length=e,this.attrs.length=e};$.ActiveFormattingElements.prototype.findElementByTag=function(e){for(var t=this.list.length-1;t>=0;t--){var r=this.list[t];if(r===this.MARKER)break;if(r.localName===e)return r}return null};$.ActiveFormattingElements.prototype.indexOf=function(e){return this.list.lastIndexOf(e)};$.ActiveFormattingElements.prototype.remove=function(e){var t=this.list.lastIndexOf(e);t!==-1&&(this.list.splice(t,1),this.attrs.splice(t,1))};$.ActiveFormattingElements.prototype.replace=function(e,t,r){var n=this.list.lastIndexOf(e);n!==-1&&(this.list[n]=t,this.attrs[n]=r)};$.ActiveFormattingElements.prototype.insertAfter=function(e,t){var r=this.list.lastIndexOf(e);r!==-1&&(this.list.splice(r,0,t),this.attrs.splice(r,0,t))};function $(e,t,r){var n=null,i=0,s=0,c=!1,d=!1,b=0,T=[],S="",ce=!0,fe=0,f=P,Be,xe,B="",xr="",W=[],De="",je="",pe=[],mr=[],hr=[],gr=[],At=[],zi=!1,E=cg,Jt=null,er=[],l=new $.ElementStack,F=new $.ActiveFormattingElements,jr=t!==void 0,Xi=null,tr=null,Qi=!0;t&&(Qi=t.ownerDocument._scripting_enabled),r&&r.scripting_enabled===!1&&(Qi=!1);var _e=!0,Fo=!1,Yi,qo,_=[],br=!1,Vr=!1,Zi={document:function(){return z},_asDocumentFragment:function(){for(var a=z.createDocumentFragment(),o=z.firstChild;o.hasChildNodes();)a.appendChild(o.firstChild);return a},pause:function(){fe++},resume:function(){fe--,this.parse("")},parse:function(a,o,u){var x;return fe>0?(S+=a,!0):(b===0?(S&&(a=S+a,S=""),o&&(a+="\uFFFF",c=!0),n=a,i=a.length,s=0,ce&&(ce=!1,n.charCodeAt(0)===65279&&(s=1)),b++,x=Nu(u),S=n.substring(s,i),b--):(b++,T.push(n,i,s),n=a,i=a.length,s=0,Nu(),x=!1,S=n.substring(s,i),s=T.pop(),i=T.pop(),n=T.pop(),S&&(n=S+n.substring(s),i=n.length,s=0,S=""),b--),x)}},z=new zI(!0,e);if(z._parser=Zi,z._scripting_enabled=Qi,t){if(t.ownerDocument._quirks&&(z._quirks=!0),t.ownerDocument._limitedQuirks&&(z._limitedQuirks=!0),t.namespaceURI===R.HTML)switch(t.localName){case"title":case"textarea":f=_r;break;case"style":case"xmp":case"iframe":case"noembed":case"noframes":case"script":case"plaintext":f=jo;break}var vu=z.createElement("html");z._appendChild(vu),l.push(vu),t instanceof re.HTMLTemplateElement&&er.push(Zo),ii();for(var Jn=t;Jn!==null;Jn=Jn.parentElement)if(Jn instanceof re.HTMLFormElement){tr=Jn;break}}function Nu(a){for(var o,u,x,g;s<i;){if(fe>0||a&&a())return!0;switch(typeof f.lookahead){case"undefined":if(o=n.charCodeAt(s++),d&&(d=!1,o===10)){s++;continue}switch(o){case 13:s<i?n.charCodeAt(s)===10&&s++:d=!0,f(10);break;case 65535:if(c&&s===i){f(_o);break}default:f(o);break}break;case"number":o=n.charCodeAt(s);var I=f.lookahead,L=!0;if(I<0&&(L=!1,I=-I),I<i-s)u=L?n.substring(s,s+I):null,g=!1;else if(c)u=L?n.substring(s,i):null,g=!0,o===65535&&s===i-1&&(o=_o);else return!0;f(o,u,g);break;case"string":o=n.charCodeAt(s),x=f.lookahead;var H=n.indexOf(x,s);if(H!==-1)u=n.substring(s,H+x.length),g=!1;else{if(!c)return!0;u=n.substring(s,i),o===65535&&s===i-1&&(o=_o),g=!0}f(o,u,g);break}}return!1}function Er(a,o){for(var u=0;u<At.length;u++)if(At[u][0]===a)return;o!==void 0?At.push([a,o]):At.push([a])}function ph(){Kx.lastIndex=s-1;var a=Kx.exec(n);if(!a)throw new Error("should never happen");var o=a[1];if(!o)return!1;var u=a[2],x=u.length;switch(u[0]){case'"':case"'":u=u.substring(1,x-1),s+=a[0].length-1,f=$o;break;default:f=$t,s+=a[0].length-1,u=u.substring(0,x-1);break}for(var g=0;g<At.length;g++)if(At[g][0]===o)return!0;return At.push([o,u]),!0}function dh(){zi=!1,B="",At.length=0}function ei(){zi=!0,B="",At.length=0}function rr(){W.length=0}function Po(){De=""}function Ho(){je=""}function Au(){pe.length=0}function mn(){mr.length=0,hr=null,gr=null}function Ji(){hr=[]}function yr(){gr=[]}function Y(){Fo=!0}function xh(){return l.top&&l.top.namespaceURI!=="http://www.w3.org/1999/xhtml"}function gt(a){return xr===a}function hn(){if(_.length>0){var a=et(_);if(_.length=0,Vr&&(Vr=!1,a[0]===`
|
|
9
|
-
`&&(a=a.substring(1)),a.length===0))return;Ae(Qn,a),br=!1}Vr=!1}function ti(a){a.lastIndex=s-1;var o=a.exec(n);if(o&&o.index===s-1)return o=o[0],s+=o.length-1,c&&s===i&&(o=o.slice(0,-1),s--),o;throw new Error("should never happen")}function ri(a){a.lastIndex=s-1;var o=a.exec(n)[0];return o?(mh(o),s+=o.length-1,!0):!1}function mh(a){_.length>0&&hn(),!(Vr&&(Vr=!1,a[0]===`
|
|
10
|
-
`&&(a=a.substring(1)),a.length===0))&&Ae(Qn,a)}function nr(){if(zi)Ae(U,B);else{var a=B;B="",xr=a,Ae(Je,a,At)}}function hh(){if(s===i)return!1;Gx.lastIndex=s;var a=Gx.exec(n);if(!a)throw new Error("should never happen");var o=a[2];if(!o)return!1;var u=a[1];return u?(s+=o.length+2,Ae(U,o)):(s+=o.length+1,xr=o,Ae(Je,o,YI)),!0}function gh(){zi?Ae(U,B,null,!0):Ae(Je,B,At,!0)}function Z(){Ae(QI,et(mr),hr?et(hr):void 0,gr?et(gr):void 0)}function M(){hn(),E(_o),z.modclock=1}var Ae=Zi.insertToken=function(o,u,x,g){hn();var I=l.top;!I||I.namespaceURI===R.HTML?E(o,u,x,g):o!==Je&&o!==Qn?Gu(o,u,x,g):$x(I)&&(o===Qn||o===Je&&u!=="mglyph"&&u!=="malignmark")||o===Je&&u==="svg"&&I.namespaceURI===R.MATHML&&I.localName==="annotation-xml"||Wx(I)?(qo=!0,E(o,u,x,g),qo=!1):Gu(o,u,x,g)};function Vt(a){var o=l.top;Tr&&ne(o,Yn)?ta(function(u){return u.createComment(a)}):(o instanceof re.HTMLTemplateElement&&(o=o.content),o._appendChild(o.ownerDocument.createComment(a)))}function Gt(a){var o=l.top;if(Tr&&ne(o,Yn))ta(function(x){return x.createTextNode(a)});else{o instanceof re.HTMLTemplateElement&&(o=o.content);var u=o.lastChild;u&&u.nodeType===nu.TEXT_NODE?u.appendData(a):o._appendChild(o.ownerDocument.createTextNode(a))}}function ni(a,o,u){var x=Yx.createElement(a,o,null);if(u)for(var g=0,I=u.length;g<I;g++)x._setAttribute(u[g][0],u[g][1]);return x}var Tr=!1;function k(a,o){var u=ea(function(x){return ni(x,a,o)});return ne(u,tm)&&(u._form=tr),u}function ea(a){var o;return Tr&&ne(l.top,Yn)?o=ta(a):l.top instanceof re.HTMLTemplateElement?(o=a(l.top.content.ownerDocument),l.top.content._appendChild(o)):(o=a(l.top.ownerDocument),l.top._appendChild(o)),l.push(o),o}function Uo(a,o,u){return ea(function(x){var g=x._createElementNS(a,u,null);if(o)for(var I=0,L=o.length;I<L;I++){var H=o[I];H.length===2?g._setAttribute(H[0],H[1]):g._setAttributeNS(H[2],H[0],H[1])}return g})}function Cu(a){for(var o=l.elements.length-1;o>=0;o--)if(l.elements[o]instanceof a)return o;return-1}function ta(a){var o,u,x=-1,g=-1,I;if(x=Cu(re.HTMLTableElement),g=Cu(re.HTMLTemplateElement),g>=0&&(x<0||g>x)?o=l.elements[g]:x>=0&&(o=l.elements[x].parentNode,o?u=l.elements[x]:o=l.elements[x-1]),o||(o=l.elements[0]),o instanceof re.HTMLTemplateElement&&(o=o.content),I=a(o.ownerDocument),I.nodeType===nu.TEXT_NODE){var L;if(u?L=u.previousSibling:L=o.lastChild,L&&L.nodeType===nu.TEXT_NODE)return L.appendData(I.data),I}return u?o.insertBefore(I,u):o._appendChild(I),I}function ii(){for(var a=!1,o=l.elements.length-1;o>=0;o--){var u=l.elements[o];if(o===0&&(a=!0,jr&&(u=t)),u.namespaceURI===R.HTML){var x=u.localName;switch(x){case"select":for(var g=o;g>0;){var I=l.elements[--g];if(I instanceof re.HTMLTemplateElement)break;if(I instanceof re.HTMLTableElement){E=ma;return}}E=ir;return;case"tr":E=si;return;case"tbody":case"tfoot":case"thead":E=Wr;return;case"caption":E=Yo;return;case"colgroup":E=xa;return;case"table":E=bt;return;case"template":E=er[er.length-1];return;case"body":E=O;return;case"frameset":E=Jo;return;case"html":Xi===null?E=pa:E=Qo;return;default:if(!a){if(x==="head"){E=Ie;return}if(x==="td"||x==="th"){E=gn;return}}}}if(a){E=O;return}}}function ra(a,o){k(a,o),f=ai,Jt=E,E=da}function bh(a,o){k(a,o),f=_r,Jt=E,E=da}function Bo(a,o){return{elt:ni(a,F.list[o].localName,F.attrs[o]),attrs:F.attrs[o]}}function rt(){if(F.list.length!==0){var a=F.list[F.list.length-1];if(a!==F.MARKER&&l.elements.lastIndexOf(a)===-1){for(var o=F.list.length-2;o>=0&&(a=F.list[o],!(a===F.MARKER||l.elements.lastIndexOf(a)!==-1));o--);for(o=o+1;o<F.list.length;o++){var u=ea(function(x){return Bo(x,o).elt});F.list[o]=u}}}}var na={localName:"BM"};function Eh(a){if(ne(l.top,a)&&F.indexOf(l.top)===-1)return l.pop(),!0;for(var o=0;o<8;){o++;var u=F.findElementByTag(a);if(!u)return!1;var x=l.elements.lastIndexOf(u);if(x===-1)return F.remove(u),!0;if(!l.elementInScope(u))return!0;for(var g=null,I,L=x+1;L<l.elements.length;L++)if(ne(l.elements[L],pn)){g=l.elements[L],I=L;break}if(g){var H=l.elements[x-1];F.insertAfter(u,na);for(var be=g,Ve=g,Et=I,Ct,zr=0;zr++,be=l.elements[--Et],be!==u;){if(Ct=F.indexOf(be),zr>3&&Ct!==-1&&(F.remove(be),Ct=-1),Ct===-1){l.removeElement(be);continue}var Nr=Bo(H.ownerDocument,Ct);F.replace(be,Nr.elt,Nr.attrs),l.elements[Et]=Nr.elt,be=Nr.elt,Ve===g&&(F.remove(na),F.insertAfter(Nr.elt,na)),be._appendChild(Ve),Ve=be}Tr&&ne(H,Yn)?ta(function(){return Ve}):H instanceof re.HTMLTemplateElement?H.content._appendChild(Ve):H._appendChild(Ve);for(var ci=Bo(g.ownerDocument,F.indexOf(u));g.hasChildNodes();)ci.elt._appendChild(g.firstChild);g._appendChild(ci.elt),F.remove(u),F.replace(na,ci.elt,ci.attrs),l.removeElement(u);var dg=l.elements.lastIndexOf(g);l.elements.splice(dg+1,0,ci.elt)}else return l.popElement(u),F.remove(u),!0}return!0}function yh(){l.pop(),E=Jt}function Gr(){delete z._parser,l.elements.length=0,z.defaultView&&z.defaultView.dispatchEvent(new re.Event("load",{}))}function N(a,o){f=o,s--}function P(a){switch(a){case 38:Be=P,f=oi;break;case 60:if(hh())break;f=Th;break;case 0:_.push(a),br=!0;break;case-1:M();break;default:ri(lw)||_.push(a);break}}function _r(a){switch(a){case 38:Be=_r,f=oi;break;case 60:f=Ih;break;case 0:_.push(65533),br=!0;break;case-1:M();break;default:_.push(a);break}}function ai(a){switch(a){case 60:f=vh;break;case 0:_.push(65533);break;case-1:M();break;default:ri(Vx)||_.push(a);break}}function Ir(a){switch(a){case 60:f=Ch;break;case 0:_.push(65533);break;case-1:M();break;default:ri(Vx)||_.push(a);break}}function jo(a){switch(a){case 0:_.push(65533);break;case-1:M();break;default:ri(fw)||_.push(a);break}}function Th(a){switch(a){case 33:f=Du;break;case 47:f=_h;break;case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 72:case 73:case 74:case 75:case 76:case 77:case 78:case 79:case 80:case 81:case 82:case 83:case 84:case 85:case 86:case 87:case 88:case 89:case 90:case 97:case 98:case 99:case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 107:case 108:case 109:case 110:case 111:case 112:case 113:case 114:case 115:case 116:case 117:case 118:case 119:case 120:case 121:case 122:dh(),N(a,Ru);break;case 63:N(a,sa);break;default:_.push(60),N(a,P);break}}function _h(a){switch(a){case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 72:case 73:case 74:case 75:case 76:case 77:case 78:case 79:case 80:case 81:case 82:case 83:case 84:case 85:case 86:case 87:case 88:case 89:case 90:case 97:case 98:case 99:case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 107:case 108:case 109:case 110:case 111:case 112:case 113:case 114:case 115:case 116:case 117:case 118:case 119:case 120:case 121:case 122:ei(),N(a,Ru);break;case 62:f=P;break;case-1:_.push(60),_.push(47),M();break;default:N(a,sa);break}}function Ru(a){switch(a){case 9:case 10:case 12:case 32:f=$t;break;case 47:f=Sr;break;case 62:f=P,nr();break;case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 72:case 73:case 74:case 75:case 76:case 77:case 78:case 79:case 80:case 81:case 82:case 83:case 84:case 85:case 86:case 87:case 88:case 89:case 90:B+=String.fromCharCode(a+32);break;case 0:B+="\uFFFD";break;case-1:M();break;default:B+=ti(sw);break}}function Ih(a){a===47?(rr(),f=wh):(_.push(60),N(a,_r))}function wh(a){switch(a){case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 72:case 73:case 74:case 75:case 76:case 77:case 78:case 79:case 80:case 81:case 82:case 83:case 84:case 85:case 86:case 87:case 88:case 89:case 90:case 97:case 98:case 99:case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 107:case 108:case 109:case 110:case 111:case 112:case 113:case 114:case 115:case 116:case 117:case 118:case 119:case 120:case 121:case 122:ei(),N(a,Sh);break;default:_.push(60),_.push(47),N(a,_r);break}}function Sh(a){switch(a){case 9:case 10:case 12:case 32:if(gt(B)){f=$t;return}break;case 47:if(gt(B)){f=Sr;return}break;case 62:if(gt(B)){f=P,nr();return}break;case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 72:case 73:case 74:case 75:case 76:case 77:case 78:case 79:case 80:case 81:case 82:case 83:case 84:case 85:case 86:case 87:case 88:case 89:case 90:B+=String.fromCharCode(a+32),W.push(a);return;case 97:case 98:case 99:case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 107:case 108:case 109:case 110:case 111:case 112:case 113:case 114:case 115:case 116:case 117:case 118:case 119:case 120:case 121:case 122:B+=String.fromCharCode(a),W.push(a);return;default:break}_.push(60),_.push(47),ln(_,W),N(a,_r)}function vh(a){a===47?(rr(),f=Nh):(_.push(60),N(a,ai))}function Nh(a){switch(a){case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 72:case 73:case 74:case 75:case 76:case 77:case 78:case 79:case 80:case 81:case 82:case 83:case 84:case 85:case 86:case 87:case 88:case 89:case 90:case 97:case 98:case 99:case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 107:case 108:case 109:case 110:case 111:case 112:case 113:case 114:case 115:case 116:case 117:case 118:case 119:case 120:case 121:case 122:ei(),N(a,Ah);break;default:_.push(60),_.push(47),N(a,ai);break}}function Ah(a){switch(a){case 9:case 10:case 12:case 32:if(gt(B)){f=$t;return}break;case 47:if(gt(B)){f=Sr;return}break;case 62:if(gt(B)){f=P,nr();return}break;case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 72:case 73:case 74:case 75:case 76:case 77:case 78:case 79:case 80:case 81:case 82:case 83:case 84:case 85:case 86:case 87:case 88:case 89:case 90:B+=String.fromCharCode(a+32),W.push(a);return;case 97:case 98:case 99:case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 107:case 108:case 109:case 110:case 111:case 112:case 113:case 114:case 115:case 116:case 117:case 118:case 119:case 120:case 121:case 122:B+=String.fromCharCode(a),W.push(a);return;default:break}_.push(60),_.push(47),ln(_,W),N(a,ai)}function Ch(a){switch(a){case 47:rr(),f=Rh;break;case 33:f=Lh,_.push(60),_.push(33);break;default:_.push(60),N(a,Ir);break}}function Rh(a){switch(a){case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 72:case 73:case 74:case 75:case 76:case 77:case 78:case 79:case 80:case 81:case 82:case 83:case 84:case 85:case 86:case 87:case 88:case 89:case 90:case 97:case 98:case 99:case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 107:case 108:case 109:case 110:case 111:case 112:case 113:case 114:case 115:case 116:case 117:case 118:case 119:case 120:case 121:case 122:ei(),N(a,Oh);break;default:_.push(60),_.push(47),N(a,Ir);break}}function Oh(a){switch(a){case 9:case 10:case 12:case 32:if(gt(B)){f=$t;return}break;case 47:if(gt(B)){f=Sr;return}break;case 62:if(gt(B)){f=P,nr();return}break;case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 72:case 73:case 74:case 75:case 76:case 77:case 78:case 79:case 80:case 81:case 82:case 83:case 84:case 85:case 86:case 87:case 88:case 89:case 90:B+=String.fromCharCode(a+32),W.push(a);return;case 97:case 98:case 99:case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 107:case 108:case 109:case 110:case 111:case 112:case 113:case 114:case 115:case 116:case 117:case 118:case 119:case 120:case 121:case 122:B+=String.fromCharCode(a),W.push(a);return;default:break}_.push(60),_.push(47),ln(_,W),N(a,Ir)}function Lh(a){a===45?(f=Dh,_.push(45)):N(a,Ir)}function Dh(a){a===45?(f=Ou,_.push(45)):N(a,Ir)}function Kt(a){switch(a){case 45:f=kh,_.push(45);break;case 60:f=Vo;break;case 0:_.push(65533);break;case-1:M();break;default:_.push(a);break}}function kh(a){switch(a){case 45:f=Ou,_.push(45);break;case 60:f=Vo;break;case 0:f=Kt,_.push(65533);break;case-1:M();break;default:f=Kt,_.push(a);break}}function Ou(a){switch(a){case 45:_.push(45);break;case 60:f=Vo;break;case 62:f=Ir,_.push(62);break;case 0:f=Kt,_.push(65533);break;case-1:M();break;default:f=Kt,_.push(a);break}}function Vo(a){switch(a){case 47:rr(),f=Mh;break;case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 72:case 73:case 74:case 75:case 76:case 77:case 78:case 79:case 80:case 81:case 82:case 83:case 84:case 85:case 86:case 87:case 88:case 89:case 90:case 97:case 98:case 99:case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 107:case 108:case 109:case 110:case 111:case 112:case 113:case 114:case 115:case 116:case 117:case 118:case 119:case 120:case 121:case 122:rr(),_.push(60),N(a,qh);break;default:_.push(60),N(a,Kt);break}}function Mh(a){switch(a){case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 72:case 73:case 74:case 75:case 76:case 77:case 78:case 79:case 80:case 81:case 82:case 83:case 84:case 85:case 86:case 87:case 88:case 89:case 90:case 97:case 98:case 99:case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 107:case 108:case 109:case 110:case 111:case 112:case 113:case 114:case 115:case 116:case 117:case 118:case 119:case 120:case 121:case 122:ei(),N(a,Fh);break;default:_.push(60),_.push(47),N(a,Kt);break}}function Fh(a){switch(a){case 9:case 10:case 12:case 32:if(gt(B)){f=$t;return}break;case 47:if(gt(B)){f=Sr;return}break;case 62:if(gt(B)){f=P,nr();return}break;case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 72:case 73:case 74:case 75:case 76:case 77:case 78:case 79:case 80:case 81:case 82:case 83:case 84:case 85:case 86:case 87:case 88:case 89:case 90:B+=String.fromCharCode(a+32),W.push(a);return;case 97:case 98:case 99:case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 107:case 108:case 109:case 110:case 111:case 112:case 113:case 114:case 115:case 116:case 117:case 118:case 119:case 120:case 121:case 122:B+=String.fromCharCode(a),W.push(a);return;default:break}_.push(60),_.push(47),ln(_,W),N(a,Kt)}function qh(a){switch(a){case 9:case 10:case 12:case 32:case 47:case 62:et(W)==="script"?f=wr:f=Kt,_.push(a);break;case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 72:case 73:case 74:case 75:case 76:case 77:case 78:case 79:case 80:case 81:case 82:case 83:case 84:case 85:case 86:case 87:case 88:case 89:case 90:W.push(a+32),_.push(a);break;case 97:case 98:case 99:case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 107:case 108:case 109:case 110:case 111:case 112:case 113:case 114:case 115:case 116:case 117:case 118:case 119:case 120:case 121:case 122:W.push(a),_.push(a);break;default:N(a,Kt);break}}function wr(a){switch(a){case 45:f=Ph,_.push(45);break;case 60:f=Go,_.push(60);break;case 0:_.push(65533);break;case-1:M();break;default:_.push(a);break}}function Ph(a){switch(a){case 45:f=Hh,_.push(45);break;case 60:f=Go,_.push(60);break;case 0:f=wr,_.push(65533);break;case-1:M();break;default:f=wr,_.push(a);break}}function Hh(a){switch(a){case 45:_.push(45);break;case 60:f=Go,_.push(60);break;case 62:f=Ir,_.push(62);break;case 0:f=wr,_.push(65533);break;case-1:M();break;default:f=wr,_.push(a);break}}function Go(a){a===47?(rr(),f=Uh,_.push(47)):N(a,wr)}function Uh(a){switch(a){case 9:case 10:case 12:case 32:case 47:case 62:et(W)==="script"?f=Kt:f=wr,_.push(a);break;case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 72:case 73:case 74:case 75:case 76:case 77:case 78:case 79:case 80:case 81:case 82:case 83:case 84:case 85:case 86:case 87:case 88:case 89:case 90:W.push(a+32),_.push(a);break;case 97:case 98:case 99:case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 107:case 108:case 109:case 110:case 111:case 112:case 113:case 114:case 115:case 116:case 117:case 118:case 119:case 120:case 121:case 122:W.push(a),_.push(a);break;default:N(a,wr);break}}function $t(a){switch(a){case 9:case 10:case 12:case 32:break;case 47:f=Sr;break;case 62:f=P,nr();break;case-1:M();break;case 61:Po(),De+=String.fromCharCode(a),f=Ko;break;default:if(ph())break;Po(),N(a,Ko);break}}function Ko(a){switch(a){case 9:case 10:case 12:case 32:case 47:case 62:case-1:N(a,Bh);break;case 61:f=Lu;break;case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 72:case 73:case 74:case 75:case 76:case 77:case 78:case 79:case 80:case 81:case 82:case 83:case 84:case 85:case 86:case 87:case 88:case 89:case 90:De+=String.fromCharCode(a+32);break;case 0:De+="\uFFFD";break;default:De+=ti(cw);break}}function Bh(a){switch(a){case 9:case 10:case 12:case 32:break;case 47:Er(De),f=Sr;break;case 61:f=Lu;break;case 62:f=P,Er(De),nr();break;case-1:Er(De),M();break;default:Er(De),Po(),N(a,Ko);break}}function Lu(a){switch(a){case 9:case 10:case 12:case 32:break;case 34:Ho(),f=ia;break;case 39:Ho(),f=aa;break;default:Ho(),N(a,oa);break}}function ia(a){switch(a){case 34:Er(De,je),f=$o;break;case 38:Be=ia,f=oi;break;case 0:je+="\uFFFD";break;case-1:M();break;case 10:je+=String.fromCharCode(a);break;default:je+=ti(iw);break}}function aa(a){switch(a){case 39:Er(De,je),f=$o;break;case 38:Be=aa,f=oi;break;case 0:je+="\uFFFD";break;case-1:M();break;case 10:je+=String.fromCharCode(a);break;default:je+=ti(aw);break}}function oa(a){switch(a){case 9:case 10:case 12:case 32:Er(De,je),f=$t;break;case 38:Be=oa,f=oi;break;case 62:Er(De,je),f=P,nr();break;case 0:je+="\uFFFD";break;case-1:s--,f=P;break;default:je+=ti(ow);break}}function $o(a){switch(a){case 9:case 10:case 12:case 32:f=$t;break;case 47:f=Sr;break;case 62:f=P,nr();break;case-1:M();break;default:N(a,$t);break}}function Sr(a){switch(a){case 62:f=P,gh(!0);break;case-1:M();break;default:N(a,$t);break}}function sa(a,o,u){var x=o.length;u?s+=x-1:s+=x;var g=o.substring(0,x-1);g=g.replace(/\u0000/g,"\uFFFD"),g=g.replace(/\u000D\u000A/g,`
|
|
11
|
-
`),g=g.replace(/\u000D/g,`
|
|
12
|
-
`),Ae(Yt,g),f=P}sa.lookahead=">";function Du(a,o,u){if(o[0]==="-"&&o[1]==="-"){s+=2,Au(),f=jh;return}o.toUpperCase()==="DOCTYPE"?(s+=7,f=Xh):o==="[CDATA["&&xh()?(s+=7,f=Xo):f=sa}Du.lookahead=7;function jh(a){switch(Au(),a){case 45:f=Vh;break;case 62:f=P,Ae(Yt,et(pe));break;default:N(a,Kr);break}}function Vh(a){switch(a){case 45:f=ca;break;case 62:f=P,Ae(Yt,et(pe));break;case-1:Ae(Yt,et(pe)),M();break;default:pe.push(45),N(a,Kr);break}}function Kr(a){switch(a){case 60:pe.push(a),f=Gh;break;case 45:f=Wo;break;case 0:pe.push(65533);break;case-1:Ae(Yt,et(pe)),M();break;default:pe.push(a);break}}function Gh(a){switch(a){case 33:pe.push(a),f=Kh;break;case 60:pe.push(a);break;default:N(a,Kr);break}}function Kh(a){a===45?f=$h:N(a,Kr)}function $h(a){a===45?f=Wh:N(a,Wo)}function Wh(a){switch(a){case 62:case-1:N(a,ca);break;default:N(a,ca);break}}function Wo(a){switch(a){case 45:f=ca;break;case-1:Ae(Yt,et(pe)),M();break;default:pe.push(45),N(a,Kr);break}}function ca(a){switch(a){case 62:f=P,Ae(Yt,et(pe));break;case 33:f=zh;break;case 45:pe.push(45);break;case-1:Ae(Yt,et(pe)),M();break;default:pe.push(45),pe.push(45),N(a,Kr);break}}function zh(a){switch(a){case 45:pe.push(45),pe.push(45),pe.push(33),f=Wo;break;case 62:f=P,Ae(Yt,et(pe));break;case-1:Ae(Yt,et(pe)),M();break;default:pe.push(45),pe.push(45),pe.push(33),N(a,Kr);break}}function Xh(a){switch(a){case 9:case 10:case 12:case 32:f=ku;break;case-1:mn(),Y(),Z(),M();break;default:N(a,ku);break}}function ku(a){switch(a){case 9:case 10:case 12:case 32:break;case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 72:case 73:case 74:case 75:case 76:case 77:case 78:case 79:case 80:case 81:case 82:case 83:case 84:case 85:case 86:case 87:case 88:case 89:case 90:mn(),mr.push(a+32),f=zo;break;case 0:mn(),mr.push(65533),f=zo;break;case 62:mn(),Y(),f=P,Z();break;case-1:mn(),Y(),Z(),M();break;default:mn(),mr.push(a),f=zo;break}}function zo(a){switch(a){case 9:case 10:case 12:case 32:f=Mu;break;case 62:f=P,Z();break;case 65:case 66:case 67:case 68:case 69:case 70:case 71:case 72:case 73:case 74:case 75:case 76:case 77:case 78:case 79:case 80:case 81:case 82:case 83:case 84:case 85:case 86:case 87:case 88:case 89:case 90:mr.push(a+32);break;case 0:mr.push(65533);break;case-1:Y(),Z(),M();break;default:mr.push(a);break}}function Mu(a,o,u){switch(a){case 9:case 10:case 12:case 32:s+=1;break;case 62:f=P,s+=1,Z();break;case-1:Y(),Z(),M();break;default:o=o.toUpperCase(),o==="PUBLIC"?(s+=6,f=Qh):o==="SYSTEM"?(s+=6,f=Jh):(Y(),f=vr);break}}Mu.lookahead=6;function Qh(a){switch(a){case 9:case 10:case 12:case 32:f=Yh;break;case 34:Ji(),f=Fu;break;case 39:Ji(),f=qu;break;case 62:Y(),f=P,Z();break;case-1:Y(),Z(),M();break;default:Y(),f=vr;break}}function Yh(a){switch(a){case 9:case 10:case 12:case 32:break;case 34:Ji(),f=Fu;break;case 39:Ji(),f=qu;break;case 62:Y(),f=P,Z();break;case-1:Y(),Z(),M();break;default:Y(),f=vr;break}}function Fu(a){switch(a){case 34:f=Pu;break;case 0:hr.push(65533);break;case 62:Y(),f=P,Z();break;case-1:Y(),Z(),M();break;default:hr.push(a);break}}function qu(a){switch(a){case 39:f=Pu;break;case 0:hr.push(65533);break;case 62:Y(),f=P,Z();break;case-1:Y(),Z(),M();break;default:hr.push(a);break}}function Pu(a){switch(a){case 9:case 10:case 12:case 32:f=Zh;break;case 62:f=P,Z();break;case 34:yr(),f=ua;break;case 39:yr(),f=la;break;case-1:Y(),Z(),M();break;default:Y(),f=vr;break}}function Zh(a){switch(a){case 9:case 10:case 12:case 32:break;case 62:f=P,Z();break;case 34:yr(),f=ua;break;case 39:yr(),f=la;break;case-1:Y(),Z(),M();break;default:Y(),f=vr;break}}function Jh(a){switch(a){case 9:case 10:case 12:case 32:f=eg;break;case 34:yr(),f=ua;break;case 39:yr(),f=la;break;case 62:Y(),f=P,Z();break;case-1:Y(),Z(),M();break;default:Y(),f=vr;break}}function eg(a){switch(a){case 9:case 10:case 12:case 32:break;case 34:yr(),f=ua;break;case 39:yr(),f=la;break;case 62:Y(),f=P,Z();break;case-1:Y(),Z(),M();break;default:Y(),f=vr;break}}function ua(a){switch(a){case 34:f=Hu;break;case 0:gr.push(65533);break;case 62:Y(),f=P,Z();break;case-1:Y(),Z(),M();break;default:gr.push(a);break}}function la(a){switch(a){case 39:f=Hu;break;case 0:gr.push(65533);break;case 62:Y(),f=P,Z();break;case-1:Y(),Z(),M();break;default:gr.push(a);break}}function Hu(a){switch(a){case 9:case 10:case 12:case 32:break;case 62:f=P,Z();break;case-1:Y(),Z(),M();break;default:f=vr;break}}function vr(a){switch(a){case 62:f=P,Z();break;case-1:Z(),M();break;default:break}}function Xo(a){switch(a){case 93:f=tg;break;case-1:M();break;case 0:br=!0;default:ri(uw)||_.push(a);break}}function tg(a){a===93?f=rg:(_.push(93),N(a,Xo))}function rg(a){switch(a){case 93:_.push(93);break;case 62:hn(),f=P;break;default:_.push(93),_.push(93),N(a,Xo);break}}function oi(a){switch(rr(),W.push(38),a){case 9:case 10:case 12:case 32:case 60:case 38:case-1:N(a,$r);break;case 35:W.push(a),f=ng;break;default:N(a,Uu);break}}function Uu(a){jx.lastIndex=s;var o=jx.exec(n);if(!o)throw new Error("should never happen");var u=o[1];if(!u){f=$r;return}switch(s+=u.length,ln(W,dw(u)),Be){case ia:case aa:case oa:if(u[u.length-1]!==";"&&/[=A-Za-z0-9]/.test(n[s])){f=$r;return}break;default:break}rr();var x=rw[u];typeof x=="number"?W.push(x):ln(W,x),f=$r}Uu.lookahead=-nw;function ng(a){switch(xe=0,a){case 120:case 88:W.push(a),f=ig;break;default:N(a,ag);break}}function ig(a){switch(a){case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:case 65:case 66:case 67:case 68:case 69:case 70:case 97:case 98:case 99:case 100:case 101:case 102:N(a,og);break;default:N(a,$r);break}}function ag(a){switch(a){case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:N(a,sg);break;default:N(a,$r);break}}function og(a){switch(a){case 65:case 66:case 67:case 68:case 69:case 70:xe*=16,xe+=a-55;break;case 97:case 98:case 99:case 100:case 101:case 102:xe*=16,xe+=a-87;break;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:xe*=16,xe+=a-48;break;case 59:f=fa;break;default:N(a,fa);break}}function sg(a){switch(a){case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:xe*=10,xe+=a-48;break;case 59:f=fa;break;default:N(a,fa);break}}function fa(a){xe in Bx?xe=Bx[xe]:(xe>1114111||xe>=55296&&xe<57344)&&(xe=65533),rr(),xe<=65535?W.push(xe):(xe=xe-65536,W.push(55296+(xe>>10)),W.push(56320+(xe&1023))),N(a,$r)}function $r(a){switch(Be){case ia:case aa:case oa:je+=et(W);break;default:ln(_,W);break}N(a,Be)}function cg(a,o,u,x){switch(a){case 1:if(o=o.replace(fn,""),o.length===0)return;break;case 4:z._appendChild(z.createComment(o));return;case 5:var g=o,I=u,L=x;z.appendChild(new XI(z,g,I,L)),Fo||g.toLowerCase()!=="html"||ZI.test(I)||L&&L.toLowerCase()===JI||L===void 0&&qx.test(I)?z._quirks=!0:(ew.test(I)||L!==void 0&&qx.test(I))&&(z._limitedQuirks=!0),E=Bu;return}z._quirks=!0,E=Bu,E(a,o,u,x)}function Bu(a,o,u,x){var g;switch(a){case 1:if(o=o.replace(fn,""),o.length===0)return;break;case 5:return;case 4:z._appendChild(z.createComment(o));return;case 2:if(o==="html"){g=ni(z,o,u),l.push(g),z.appendChild(g),E=pa;return}break;case 3:switch(o){case"html":case"head":case"body":case"br":break;default:return}}g=ni(z,"html",null),l.push(g),z.appendChild(g),E=pa,E(a,o,u,x)}function pa(a,o,u,x){switch(a){case 1:if(o=o.replace(fn,""),o.length===0)return;break;case 5:return;case 4:Vt(o);return;case 2:switch(o){case"html":O(a,o,u,x);return;case"head":var g=k(o,u);Xi=g,E=Ie;return}break;case 3:switch(o){case"html":case"head":case"body":case"br":break;default:return}}pa(Je,"head",null),E(a,o,u,x)}function Ie(a,o,u,x){switch(a){case 1:var g=o.match(fn);if(g&&(Gt(g[0]),o=o.substring(g[0].length)),o.length===0)return;break;case 4:Vt(o);return;case 5:return;case 2:switch(o){case"html":O(a,o,u,x);return;case"meta":case"base":case"basefont":case"bgsound":case"link":k(o,u),l.pop();return;case"title":bh(o,u);return;case"noscript":if(!Qi){k(o,u),E=ju;return}case"noframes":case"style":ra(o,u);return;case"script":ea(function(I){var L=ni(I,o,u);return L._parser_inserted=!0,L._force_async=!1,jr&&(L._already_started=!0),hn(),L}),f=Ir,Jt=E,E=da;return;case"template":k(o,u),F.insertMarker(),_e=!1,E=Zo,er.push(E);return;case"head":return}break;case 3:switch(o){case"head":l.pop(),E=Qo;return;case"body":case"html":case"br":break;case"template":if(!l.contains("template"))return;l.generateImpliedEndTags(null,"thorough"),l.popTag("template"),F.clearToMarker(),er.pop(),ii();return;default:return}break}Ie(U,"head",null),E(a,o,u,x)}function ju(a,o,u,x){switch(a){case 5:return;case 4:Ie(a,o);return;case 1:var g=o.match(fn);if(g&&(Ie(a,g[0]),o=o.substring(g[0].length)),o.length===0)return;break;case 2:switch(o){case"html":O(a,o,u,x);return;case"basefont":case"bgsound":case"link":case"meta":case"noframes":case"style":Ie(a,o,u);return;case"head":case"noscript":return}break;case 3:switch(o){case"noscript":l.pop(),E=Ie;return;case"br":break;default:return}break}ju(U,"noscript",null),E(a,o,u,x)}function Qo(a,o,u,x){switch(a){case 1:var g=o.match(fn);if(g&&(Gt(g[0]),o=o.substring(g[0].length)),o.length===0)return;break;case 4:Vt(o);return;case 5:return;case 2:switch(o){case"html":O(a,o,u,x);return;case"body":k(o,u),_e=!1,E=O;return;case"frameset":k(o,u),E=Jo;return;case"base":case"basefont":case"bgsound":case"link":case"meta":case"noframes":case"script":case"style":case"template":case"title":l.push(Xi),Ie(Je,o,u),l.removeElement(Xi);return;case"head":return}break;case 3:switch(o){case"template":return Ie(a,o,u,x);case"body":case"html":case"br":break;default:return}break}Qo(Je,"body",null),_e=!0,E(a,o,u,x)}function O(a,o,u,x){var g,I,L,H;switch(a){case 1:if(br&&(o=o.replace(wo,""),o.length===0))return;_e&&Io.test(o)&&(_e=!1),rt(),Gt(o);return;case 5:return;case 4:Vt(o);return;case-1:if(er.length)return Zo(a);Gr();return;case 2:switch(o){case"html":if(l.contains("template"))return;Qx(u,l.elements[0]);return;case"base":case"basefont":case"bgsound":case"link":case"meta":case"noframes":case"script":case"style":case"template":case"title":Ie(Je,o,u);return;case"body":if(g=l.elements[1],!g||!(g instanceof re.HTMLBodyElement)||l.contains("template"))return;_e=!1,Qx(u,g);return;case"frameset":if(!_e||(g=l.elements[1],!g||!(g instanceof re.HTMLBodyElement)))return;for(g.parentNode&&g.parentNode.removeChild(g);!(l.top instanceof re.HTMLHtmlElement);)l.pop();k(o,u),E=Jo;return;case"address":case"article":case"aside":case"blockquote":case"center":case"details":case"dialog":case"dir":case"div":case"dl":case"fieldset":case"figcaption":case"figure":case"footer":case"header":case"hgroup":case"main":case"nav":case"ol":case"p":case"section":case"summary":case"ul":l.inButtonScope("p")&&O(U,"p"),k(o,u);return;case"menu":l.inButtonScope("p")&&O(U,"p"),ne(l.top,"menuitem")&&l.pop(),k(o,u);return;case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":l.inButtonScope("p")&&O(U,"p"),l.top instanceof re.HTMLHeadingElement&&l.pop(),k(o,u);return;case"pre":case"listing":l.inButtonScope("p")&&O(U,"p"),k(o,u),Vr=!0,_e=!1;return;case"form":if(tr&&!l.contains("template"))return;l.inButtonScope("p")&&O(U,"p"),H=k(o,u),l.contains("template")||(tr=H);return;case"li":for(_e=!1,I=l.elements.length-1;I>=0;I--){if(L=l.elements[I],L instanceof re.HTMLLIElement){O(U,"li");break}if(ne(L,pn)&&!ne(L,ou))break}l.inButtonScope("p")&&O(U,"p"),k(o,u);return;case"dd":case"dt":for(_e=!1,I=l.elements.length-1;I>=0;I--){if(L=l.elements[I],ne(L,Zx)){O(U,L.localName);break}if(ne(L,pn)&&!ne(L,ou))break}l.inButtonScope("p")&&O(U,"p"),k(o,u);return;case"plaintext":l.inButtonScope("p")&&O(U,"p"),k(o,u),f=jo;return;case"button":l.inScope("button")?(O(U,"button"),E(a,o,u,x)):(rt(),k(o,u),_e=!1);return;case"a":var be=F.findElementByTag("a");be&&(O(U,o),F.remove(be),l.removeElement(be));case"b":case"big":case"code":case"em":case"font":case"i":case"s":case"small":case"strike":case"strong":case"tt":case"u":rt(),F.push(k(o,u),u);return;case"nobr":rt(),l.inScope(o)&&(O(U,o),rt()),F.push(k(o,u),u);return;case"applet":case"marquee":case"object":rt(),k(o,u),F.insertMarker(),_e=!1;return;case"table":!z._quirks&&l.inButtonScope("p")&&O(U,"p"),k(o,u),_e=!1,E=bt;return;case"area":case"br":case"embed":case"img":case"keygen":case"wbr":rt(),k(o,u),l.pop(),_e=!1;return;case"input":rt(),H=k(o,u),l.pop();var Ve=H.getAttribute("type");(!Ve||Ve.toLowerCase()!=="hidden")&&(_e=!1);return;case"param":case"source":case"track":k(o,u),l.pop();return;case"hr":l.inButtonScope("p")&&O(U,"p"),ne(l.top,"menuitem")&&l.pop(),k(o,u),l.pop(),_e=!1;return;case"image":O(Je,"img",u,x);return;case"textarea":k(o,u),Vr=!0,_e=!1,f=_r,Jt=E,E=da;return;case"xmp":l.inButtonScope("p")&&O(U,"p"),rt(),_e=!1,ra(o,u);return;case"iframe":_e=!1,ra(o,u);return;case"noembed":ra(o,u);return;case"select":rt(),k(o,u),_e=!1,E===bt||E===Yo||E===Wr||E===si||E===gn?E=ma:E=ir;return;case"optgroup":case"option":l.top instanceof re.HTMLOptionElement&&O(U,"option"),rt(),k(o,u);return;case"menuitem":ne(l.top,"menuitem")&&l.pop(),rt(),k(o,u);return;case"rb":case"rtc":l.inScope("ruby")&&l.generateImpliedEndTags(),k(o,u);return;case"rp":case"rt":l.inScope("ruby")&&l.generateImpliedEndTags("rtc"),k(o,u);return;case"math":rt(),Xx(u),au(u),Uo(o,u,R.MATHML),x&&l.pop();return;case"svg":rt(),zx(u),au(u),Uo(o,u,R.SVG),x&&l.pop();return;case"caption":case"col":case"colgroup":case"frame":case"head":case"tbody":case"td":case"tfoot":case"th":case"thead":case"tr":return}rt(),k(o,u);return;case 3:switch(o){case"template":Ie(U,o,u);return;case"body":if(!l.inScope("body"))return;E=Vu;return;case"html":if(!l.inScope("body"))return;E=Vu,E(a,o,u);return;case"address":case"article":case"aside":case"blockquote":case"button":case"center":case"details":case"dialog":case"dir":case"div":case"dl":case"fieldset":case"figcaption":case"figure":case"footer":case"header":case"hgroup":case"listing":case"main":case"menu":case"nav":case"ol":case"pre":case"section":case"summary":case"ul":if(!l.inScope(o))return;l.generateImpliedEndTags(),l.popTag(o);return;case"form":if(l.contains("template")){if(!l.inScope("form"))return;l.generateImpliedEndTags(),l.popTag("form")}else{var Et=tr;if(tr=null,!Et||!l.elementInScope(Et))return;l.generateImpliedEndTags(),l.removeElement(Et)}return;case"p":l.inButtonScope(o)?(l.generateImpliedEndTags(o),l.popTag(o)):(O(Je,o,null),E(a,o,u,x));return;case"li":if(!l.inListItemScope(o))return;l.generateImpliedEndTags(o),l.popTag(o);return;case"dd":case"dt":if(!l.inScope(o))return;l.generateImpliedEndTags(o),l.popTag(o);return;case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":if(!l.elementTypeInScope(re.HTMLHeadingElement))return;l.generateImpliedEndTags(),l.popElementType(re.HTMLHeadingElement);return;case"sarcasm":break;case"a":case"b":case"big":case"code":case"em":case"font":case"i":case"nobr":case"s":case"small":case"strike":case"strong":case"tt":case"u":var Ct=Eh(o);if(Ct)return;break;case"applet":case"marquee":case"object":if(!l.inScope(o))return;l.generateImpliedEndTags(),l.popTag(o),F.clearToMarker();return;case"br":O(Je,o,null);return}for(I=l.elements.length-1;I>=0;I--)if(L=l.elements[I],ne(L,o)){l.generateImpliedEndTags(o),l.popElement(L);break}else if(ne(L,pn))return;return}}function da(a,o,u,x){switch(a){case 1:Gt(o);return;case-1:l.top instanceof re.HTMLScriptElement&&(l.top._already_started=!0),l.pop(),E=Jt,E(a);return;case 3:o==="script"?yh():(l.pop(),E=Jt);return;default:return}}function bt(a,o,u,x){function g(L){for(var H=0,be=L.length;H<be;H++)if(L[H][0]==="type")return L[H][1].toLowerCase();return null}switch(a){case 1:if(qo){O(a,o,u,x);return}else if(ne(l.top,Yn)){Yi=[],Jt=E,E=ug,E(a,o,u,x);return}break;case 4:Vt(o);return;case 5:return;case 2:switch(o){case"caption":l.clearToContext(So),F.insertMarker(),k(o,u),E=Yo;return;case"colgroup":l.clearToContext(So),k(o,u),E=xa;return;case"col":bt(Je,"colgroup",null),E(a,o,u,x);return;case"tbody":case"tfoot":case"thead":l.clearToContext(So),k(o,u),E=Wr;return;case"td":case"th":case"tr":bt(Je,"tbody",null),E(a,o,u,x);return;case"table":if(!l.inTableScope(o))return;bt(U,o),E(a,o,u,x);return;case"style":case"script":case"template":Ie(a,o,u,x);return;case"input":var I=g(u);if(I!=="hidden")break;k(o,u),l.pop();return;case"form":if(tr||l.contains("template"))return;tr=k(o,u),l.popElement(tr);return}break;case 3:switch(o){case"table":if(!l.inTableScope(o))return;l.popTag(o),ii();return;case"body":case"caption":case"col":case"colgroup":case"html":case"tbody":case"td":case"tfoot":case"th":case"thead":case"tr":return;case"template":Ie(a,o,u,x);return}break;case-1:O(a,o,u,x);return}Tr=!0,O(a,o,u,x),Tr=!1}function ug(a,o,u,x){if(a===Qn){if(br&&(o=o.replace(wo,""),o.length===0))return;Yi.push(o)}else{var g=Yi.join("");Yi.length=0,Io.test(g)?(Tr=!0,O(Qn,g),Tr=!1):Gt(g),E=Jt,E(a,o,u,x)}}function Yo(a,o,u,x){function g(){return l.inTableScope("caption")?(l.generateImpliedEndTags(),l.popTag("caption"),F.clearToMarker(),E=bt,!0):!1}switch(a){case 2:switch(o){case"caption":case"col":case"colgroup":case"tbody":case"td":case"tfoot":case"th":case"thead":case"tr":g()&&E(a,o,u,x);return}break;case 3:switch(o){case"caption":g();return;case"table":g()&&E(a,o,u,x);return;case"body":case"col":case"colgroup":case"html":case"tbody":case"td":case"tfoot":case"th":case"thead":case"tr":return}break}O(a,o,u,x)}function xa(a,o,u,x){switch(a){case 1:var g=o.match(fn);if(g&&(Gt(g[0]),o=o.substring(g[0].length)),o.length===0)return;break;case 4:Vt(o);return;case 5:return;case 2:switch(o){case"html":O(a,o,u,x);return;case"col":k(o,u),l.pop();return;case"template":Ie(a,o,u,x);return}break;case 3:switch(o){case"colgroup":if(!ne(l.top,"colgroup"))return;l.pop(),E=bt;return;case"col":return;case"template":Ie(a,o,u,x);return}break;case-1:O(a,o,u,x);return}ne(l.top,"colgroup")&&(xa(U,"colgroup"),E(a,o,u,x))}function Wr(a,o,u,x){function g(){!l.inTableScope("tbody")&&!l.inTableScope("thead")&&!l.inTableScope("tfoot")||(l.clearToContext(vo),Wr(U,l.top.localName,null),E(a,o,u,x))}switch(a){case 2:switch(o){case"tr":l.clearToContext(vo),k(o,u),E=si;return;case"th":case"td":Wr(Je,"tr",null),E(a,o,u,x);return;case"caption":case"col":case"colgroup":case"tbody":case"tfoot":case"thead":g();return}break;case 3:switch(o){case"table":g();return;case"tbody":case"tfoot":case"thead":l.inTableScope(o)&&(l.clearToContext(vo),l.pop(),E=bt);return;case"body":case"caption":case"col":case"colgroup":case"html":case"td":case"th":case"tr":return}break}bt(a,o,u,x)}function si(a,o,u,x){function g(){return l.inTableScope("tr")?(l.clearToContext(su),l.pop(),E=Wr,!0):!1}switch(a){case 2:switch(o){case"th":case"td":l.clearToContext(su),k(o,u),E=gn,F.insertMarker();return;case"caption":case"col":case"colgroup":case"tbody":case"tfoot":case"thead":case"tr":g()&&E(a,o,u,x);return}break;case 3:switch(o){case"tr":g();return;case"table":g()&&E(a,o,u,x);return;case"tbody":case"tfoot":case"thead":l.inTableScope(o)&&g()&&E(a,o,u,x);return;case"body":case"caption":case"col":case"colgroup":case"html":case"td":case"th":return}break}bt(a,o,u,x)}function gn(a,o,u,x){switch(a){case 2:switch(o){case"caption":case"col":case"colgroup":case"tbody":case"td":case"tfoot":case"th":case"thead":case"tr":l.inTableScope("td")?(gn(U,"td"),E(a,o,u,x)):l.inTableScope("th")&&(gn(U,"th"),E(a,o,u,x));return}break;case 3:switch(o){case"td":case"th":if(!l.inTableScope(o))return;l.generateImpliedEndTags(),l.popTag(o),F.clearToMarker(),E=si;return;case"body":case"caption":case"col":case"colgroup":case"html":return;case"table":case"tbody":case"tfoot":case"thead":case"tr":if(!l.inTableScope(o))return;gn(U,l.inTableScope("td")?"td":"th"),E(a,o,u,x);return}break}O(a,o,u,x)}function ir(a,o,u,x){switch(a){case 1:if(br&&(o=o.replace(wo,""),o.length===0))return;Gt(o);return;case 4:Vt(o);return;case 5:return;case-1:O(a,o,u,x);return;case 2:switch(o){case"html":O(a,o,u,x);return;case"option":l.top instanceof re.HTMLOptionElement&&ir(U,o),k(o,u);return;case"optgroup":l.top instanceof re.HTMLOptionElement&&ir(U,"option"),l.top instanceof re.HTMLOptGroupElement&&ir(U,o),k(o,u);return;case"select":ir(U,o);return;case"input":case"keygen":case"textarea":if(!l.inSelectScope("select"))return;ir(U,"select"),E(a,o,u,x);return;case"script":case"template":Ie(a,o,u,x);return}break;case 3:switch(o){case"optgroup":l.top instanceof re.HTMLOptionElement&&l.elements[l.elements.length-2]instanceof re.HTMLOptGroupElement&&ir(U,"option"),l.top instanceof re.HTMLOptGroupElement&&l.pop();return;case"option":l.top instanceof re.HTMLOptionElement&&l.pop();return;case"select":if(!l.inSelectScope(o))return;l.popTag(o),ii();return;case"template":Ie(a,o,u,x);return}break}}function ma(a,o,u,x){switch(o){case"caption":case"table":case"tbody":case"tfoot":case"thead":case"tr":case"td":case"th":switch(a){case 2:ma(U,"select"),E(a,o,u,x);return;case 3:l.inTableScope(o)&&(ma(U,"select"),E(a,o,u,x));return}}ir(a,o,u,x)}function Zo(a,o,u,x){function g(I){E=I,er[er.length-1]=E,E(a,o,u,x)}switch(a){case 1:case 4:case 5:O(a,o,u,x);return;case-1:l.contains("template")?(l.popTag("template"),F.clearToMarker(),er.pop(),ii(),E(a,o,u,x)):Gr();return;case 2:switch(o){case"base":case"basefont":case"bgsound":case"link":case"meta":case"noframes":case"script":case"style":case"template":case"title":Ie(a,o,u,x);return;case"caption":case"colgroup":case"tbody":case"tfoot":case"thead":g(bt);return;case"col":g(xa);return;case"tr":g(Wr);return;case"td":case"th":g(si);return}g(O);return;case 3:if(o==="template"){Ie(a,o,u,x);return}else return}}function Vu(a,o,u,x){switch(a){case 1:if(Io.test(o))break;O(a,o);return;case 4:l.elements[0]._appendChild(z.createComment(o));return;case 5:return;case-1:Gr();return;case 2:if(o==="html"){O(a,o,u,x);return}break;case 3:if(o==="html"){if(jr)return;E=fg;return}break}E=O,E(a,o,u,x)}function Jo(a,o,u,x){switch(a){case 1:o=o.replace(iu,""),o.length>0&&Gt(o);return;case 4:Vt(o);return;case 5:return;case-1:Gr();return;case 2:switch(o){case"html":O(a,o,u,x);return;case"frameset":k(o,u);return;case"frame":k(o,u),l.pop();return;case"noframes":Ie(a,o,u,x);return}break;case 3:if(o==="frameset"){if(jr&&l.top instanceof re.HTMLHtmlElement)return;l.pop(),!jr&&!(l.top instanceof re.HTMLFrameSetElement)&&(E=lg);return}break}}function lg(a,o,u,x){switch(a){case 1:o=o.replace(iu,""),o.length>0&&Gt(o);return;case 4:Vt(o);return;case 5:return;case-1:Gr();return;case 2:switch(o){case"html":O(a,o,u,x);return;case"noframes":Ie(a,o,u,x);return}break;case 3:if(o==="html"){E=pg;return}break}}function fg(a,o,u,x){switch(a){case 1:if(Io.test(o))break;O(a,o,u,x);return;case 4:z._appendChild(z.createComment(o));return;case 5:O(a,o,u,x);return;case-1:Gr();return;case 2:if(o==="html"){O(a,o,u,x);return}break}E=O,E(a,o,u,x)}function pg(a,o,u,x){switch(a){case 1:o=o.replace(iu,""),o.length>0&&O(a,o,u,x);return;case 4:z._appendChild(z.createComment(o));return;case 5:O(a,o,u,x);return;case-1:Gr();return;case 2:switch(o){case"html":O(a,o,u,x);return;case"noframes":Ie(a,o,u,x);return}break}}function Gu(a,o,u,x){function g(be){for(var Ve=0,Et=be.length;Ve<Et;Ve++)switch(be[Ve][0]){case"color":case"face":case"size":return!0}return!1}var I;switch(a){case 1:_e&&pw.test(o)&&(_e=!1),br&&(o=o.replace(wo,"\uFFFD")),Gt(o);return;case 4:Vt(o);return;case 5:return;case 2:switch(o){case"font":if(!g(u))break;case"b":case"big":case"blockquote":case"body":case"br":case"center":case"code":case"dd":case"div":case"dl":case"dt":case"em":case"embed":case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":case"head":case"hr":case"i":case"img":case"li":case"listing":case"menu":case"meta":case"nobr":case"ol":case"p":case"pre":case"ruby":case"s":case"small":case"span":case"strong":case"strike":case"sub":case"sup":case"table":case"tt":case"u":case"ul":case"var":if(jr)break;do l.pop(),I=l.top;while(I.namespaceURI!==R.HTML&&!$x(I)&&!Wx(I));Ae(a,o,u,x);return}I=l.elements.length===1&&jr?t:l.top,I.namespaceURI===R.MATHML?Xx(u):I.namespaceURI===R.SVG&&(o=xw(o),zx(u)),au(u),Uo(o,u,I.namespaceURI),x&&(o==="script"&&(I.namespaceURI,R.SVG),l.pop());return;case 3:if(I=l.top,o==="script"&&I.namespaceURI===R.SVG&&I.localName==="script")l.pop();else for(var L=l.elements.length-1,H=l.elements[L];;){if(H.localName.toLowerCase()===o){l.popElement(H);break}if(H=l.elements[--L],H.namespaceURI===R.HTML){E(a,o,u,x);break}}return}}return Zi.testTokenizer=function(a,o,u,x){var g=[];switch(o){case"PCDATA state":f=P;break;case"RCDATA state":f=_r;break;case"RAWTEXT state":f=ai;break;case"PLAINTEXT state":f=jo;break}if(u&&(xr=u),Ae=function(L,H,be,Ve){switch(hn(),L){case 1:g.length>0&&g[g.length-1][0]==="Character"?g[g.length-1][1]+=H:g.push(["Character",H]);break;case 4:g.push(["Comment",H]);break;case 5:g.push(["DOCTYPE",H,be===void 0?null:be,Ve===void 0?null:Ve,!Fo]);break;case 2:for(var Et=Object.create(null),Ct=0;Ct<be.length;Ct++){var zr=be[Ct];zr.length===1?Et[zr[0]]="":Et[zr[0]]=zr[1]}var Nr=["StartTag",H,Et];Ve&&Nr.push(!0),g.push(Nr);break;case 3:g.push(["EndTag",H]);break;case-1:break}},!x)this.parse(a,!0);else{for(var I=0;I<a.length;I++)this.parse(a[I]);this.parse("",!0)}return g},Zi}});var Vi=C((C3,um)=>{"use strict";um.exports=cm;var om=Eo(),sm=To(),mw=Ao(),Co=ve(),hw=to();function cm(e){this.contextObject=e}var gw={xml:{"":!0,"1.0":!0,"2.0":!0},core:{"":!0,"2.0":!0},html:{"":!0,"1.0":!0,"2.0":!0},xhtml:{"":!0,"1.0":!0,"2.0":!0}};cm.prototype={hasFeature:function(t,r){var n=gw[(t||"").toLowerCase()];return n&&n[r||""]||!1},createDocumentType:function(t,r,n){return hw.isValidQName(t)||Co.InvalidCharacterError(),new sm(this.contextObject,t,r,n)},createDocument:function(t,r,n){var i=new om(!1,null),s;return r?s=i.createElementNS(t,r):s=null,n&&i.appendChild(n),s&&i.appendChild(s),t===Co.NAMESPACE.HTML?i._contentType="application/xhtml+xml":t===Co.NAMESPACE.SVG?i._contentType="image/svg+xml":i._contentType="application/xml",i},createHTMLDocument:function(t){var r=new om(!0,null);r.appendChild(new sm(r,"html"));var n=r.createElement("html");r.appendChild(n);var i=r.createElement("head");if(n.appendChild(i),t!==void 0){var s=r.createElement("title");i.appendChild(s),s.appendChild(r.createTextNode(t))}return n.appendChild(r.createElement("body")),r.modclock=1,r},mozSetOutputMutationHandler:function(e,t){e.mutationHandler=t},mozGetInputMutationHandler:function(e){Co.nyi()},mozHTMLParser:mw}});var fm=C((R3,lm)=>{"use strict";var bw=fo(),Ew=Xc();lm.exports=uu;function uu(e,t){this._window=e,this._href=t}uu.prototype=Object.create(Ew.prototype,{constructor:{value:uu},href:{get:function(){return this._href},set:function(e){this.assign(e)}},assign:{value:function(e){var t=new bw(this._href),r=t.resolve(e);this._href=r}},replace:{value:function(e){this.assign(e)}},reload:{value:function(){this.assign(this.href)}},toString:{value:function(){return this.href}}})});var dm=C((O3,pm)=>{"use strict";var yw=Object.create(null,{appCodeName:{value:"Mozilla"},appName:{value:"Netscape"},appVersion:{value:"4.0"},platform:{value:""},product:{value:"Gecko"},productSub:{value:"20100101"},userAgent:{value:""},vendor:{value:""},vendorSub:{value:""},taintEnabled:{value:function(){return!1}}});pm.exports=yw});var mm=C((L3,xm)=>{"use strict";var Tw={setTimeout,clearTimeout,setInterval,clearInterval};xm.exports=Tw});var fu=C((Gi,hm)=>{"use strict";var lu=ve();Gi=hm.exports={CSSStyleDeclaration:po(),CharacterData:ki(),Comment:Mc(),DOMException:Qa(),DOMImplementation:Vi(),DOMTokenList:bc(),Document:Eo(),DocumentFragment:qc(),DocumentType:To(),Element:Vn(),HTMLParser:Ao(),NamedNodeMap:wc(),Node:Ke(),NodeList:cn(),NodeFilter:Pi(),ProcessingInstruction:Hc(),Text:Dc(),Window:pu()};lu.merge(Gi,zc());lu.merge(Gi,ho().elements);lu.merge(Gi,eu().elements)});var pu=C((D3,gm)=>{"use strict";var _w=Vi(),Iw=ec(),ww=fm(),Ki=ve();gm.exports=Ro;function Ro(e){this.document=e||new _w(null).createHTMLDocument(""),this.document._scripting_enabled=!0,this.document.defaultView=this,this.location=new ww(this,this.document._address||"about:blank")}Ro.prototype=Object.create(Iw.prototype,{console:{value:console},history:{value:{back:Ki.nyi,forward:Ki.nyi,go:Ki.nyi}},navigator:{value:dm()},window:{get:function(){return this}},self:{get:function(){return this}},frames:{get:function(){return this}},parent:{get:function(){return this}},top:{get:function(){return this}},length:{value:0},frameElement:{value:null},opener:{value:null},onload:{get:function(){return this._getEventHandler("load")},set:function(e){this._setEventHandler("load",e)}},getComputedStyle:{value:function(t){return t.style}}});Ki.expose(mm(),Ro);Ki.expose(fu(),Ro)});var Tm=C(dn=>{"use strict";var bm=Vi(),Em=Ao(),k3=pu(),ym=fu();dn.createDOMImplementation=function(){return new bm(null)};dn.createDocument=function(e,t){if(e||t){var r=new Em;return r.parse(e||"",!0),r.document()}return new bm(null).createHTMLDocument("")};dn.createIncrementalHTMLParser=function(){var e=new Em;return{write:function(t){t.length>0&&e.parse(t,!1,function(){return!0})},end:function(t){e.parse(t||"",!0,function(){return!0})},process:function(t){return e.parse("",!1,t)},document:function(){return e.document()}}};dn.createWindow=function(e,t){var r=dn.createDocument(e);return t!==void 0&&(r._address=t),new ym.Window(r)};dn.impl=ym});var qm=C((F3,Fm)=>{"use strict";function Sw(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}function hu(e,t){return Array(t+1).join(e)}function wm(e){return e.replace(/^\n*/,"")}function Sm(e){for(var t=e.length;t>0&&e[t-1]===`
|
|
13
|
-
`;)t--;return e.substring(0,t)}function vm(e){return Sm(wm(e))}var vw=["ADDRESS","ARTICLE","ASIDE","AUDIO","BLOCKQUOTE","BODY","CANVAS","CENTER","DD","DIR","DIV","DL","DT","FIELDSET","FIGCAPTION","FIGURE","FOOTER","FORM","FRAMESET","H1","H2","H3","H4","H5","H6","HEADER","HGROUP","HR","HTML","ISINDEX","LI","MAIN","MENU","NAV","NOFRAMES","NOSCRIPT","OL","OUTPUT","P","PRE","SECTION","TABLE","TBODY","TD","TFOOT","TH","THEAD","TR","UL"];function gu(e){return bu(e,vw)}var Nm=["AREA","BASE","BR","COL","COMMAND","EMBED","HR","IMG","INPUT","KEYGEN","LINK","META","PARAM","SOURCE","TRACK","WBR"];function Am(e){return bu(e,Nm)}function Nw(e){return Rm(e,Nm)}var Cm=["A","TABLE","THEAD","TBODY","TFOOT","TH","TD","IFRAME","SCRIPT","AUDIO","VIDEO"];function Aw(e){return bu(e,Cm)}function Cw(e){return Rm(e,Cm)}function bu(e,t){return t.indexOf(e.nodeName)>=0}function Rm(e,t){return e.getElementsByTagName&&t.some(function(r){return e.getElementsByTagName(r).length})}var Rw=[[/\\/g,"\\\\"],[/\*/g,"\\*"],[/^-/g,"\\-"],[/^\+ /g,"\\+ "],[/^(=+)/g,"\\$1"],[/^(#{1,6}) /g,"\\$1 "],[/`/g,"\\`"],[/^~~~/g,"\\~~~"],[/\[/g,"\\["],[/\]/g,"\\]"],[/^>/g,"\\>"],[/_/g,"\\_"],[/^(\d+)\. /g,"$1\\. "]];function Om(e){return Rw.reduce(function(t,r){return t.replace(r[0],r[1])},e)}var tt={};tt.paragraph={filter:"p",replacement:function(e){return`
|
|
14
|
-
|
|
15
|
-
`+e+`
|
|
16
|
-
|
|
17
|
-
`}};tt.lineBreak={filter:"br",replacement:function(e,t,r){return r.br+`
|
|
18
|
-
`}};tt.heading={filter:["h1","h2","h3","h4","h5","h6"],replacement:function(e,t,r){var n=Number(t.nodeName.charAt(1));if(r.headingStyle==="setext"&&n<3){var i=hu(n===1?"=":"-",e.length);return`
|
|
19
|
-
|
|
20
|
-
`+e+`
|
|
21
|
-
`+i+`
|
|
22
|
-
|
|
23
|
-
`}else return`
|
|
24
|
-
|
|
25
|
-
`+hu("#",n)+" "+e+`
|
|
26
|
-
|
|
27
|
-
`}};tt.blockquote={filter:"blockquote",replacement:function(e){return e=vm(e).replace(/^/gm,"> "),`
|
|
28
|
-
|
|
29
|
-
`+e+`
|
|
30
|
-
|
|
31
|
-
`}};tt.list={filter:["ul","ol"],replacement:function(e,t){var r=t.parentNode;return r.nodeName==="LI"&&r.lastElementChild===t?`
|
|
32
|
-
`+e:`
|
|
33
|
-
|
|
34
|
-
`+e+`
|
|
35
|
-
|
|
36
|
-
`}};tt.listItem={filter:"li",replacement:function(e,t,r){var n=r.bulletListMarker+" ",i=t.parentNode;if(i.nodeName==="OL"){var s=i.getAttribute("start"),c=Array.prototype.indexOf.call(i.children,t);n=(s?Number(s)+c:c+1)+". "}var d=/\n$/.test(e);return e=vm(e)+(d?`
|
|
37
|
-
`:""),e=e.replace(/\n/gm,`
|
|
38
|
-
`+" ".repeat(n.length)),n+e+(t.nextSibling?`
|
|
39
|
-
`:"")}};tt.indentedCodeBlock={filter:function(e,t){return t.codeBlockStyle==="indented"&&e.nodeName==="PRE"&&e.firstChild&&e.firstChild.nodeName==="CODE"},replacement:function(e,t,r){return`
|
|
40
|
-
|
|
41
|
-
`+t.firstChild.textContent.replace(/\n/g,`
|
|
42
|
-
`)+`
|
|
43
|
-
|
|
44
|
-
`}};tt.fencedCodeBlock={filter:function(e,t){return t.codeBlockStyle==="fenced"&&e.nodeName==="PRE"&&e.firstChild&&e.firstChild.nodeName==="CODE"},replacement:function(e,t,r){for(var n=t.firstChild.getAttribute("class")||"",i=(n.match(/language-(\S+)/)||[null,""])[1],s=t.firstChild.textContent,c=r.fence.charAt(0),d=3,b=new RegExp("^"+c+"{3,}","gm"),T;T=b.exec(s);)T[0].length>=d&&(d=T[0].length+1);var S=hu(c,d);return`
|
|
45
|
-
|
|
46
|
-
`+S+i+`
|
|
47
|
-
`+s.replace(/\n$/,"")+`
|
|
48
|
-
`+S+`
|
|
49
|
-
|
|
50
|
-
`}};tt.horizontalRule={filter:"hr",replacement:function(e,t,r){return`
|
|
51
|
-
|
|
52
|
-
`+r.hr+`
|
|
53
|
-
|
|
54
|
-
`}};tt.inlineLink={filter:function(e,t){return t.linkStyle==="inlined"&&e.nodeName==="A"&&e.getAttribute("href")},replacement:function(e,t){var r=Eu(t.getAttribute("href")),n=yu(Oo(t.getAttribute("title"))),i=n?' "'+n+'"':"";return"["+e+"]("+r+i+")"}};tt.referenceLink={filter:function(e,t){return t.linkStyle==="referenced"&&e.nodeName==="A"&&e.getAttribute("href")},replacement:function(e,t,r){var n=Eu(t.getAttribute("href")),i=Oo(t.getAttribute("title"));i&&(i=' "'+yu(i)+'"');var s,c;switch(r.linkReferenceStyle){case"collapsed":s="["+e+"][]",c="["+e+"]: "+n+i;break;case"shortcut":s="["+e+"]",c="["+e+"]: "+n+i;break;default:var d=this.references.length+1;s="["+e+"]["+d+"]",c="["+d+"]: "+n+i}return this.references.push(c),s},references:[],append:function(e){var t="";return this.references.length&&(t=`
|
|
55
|
-
|
|
56
|
-
`+this.references.join(`
|
|
57
|
-
`)+`
|
|
58
|
-
|
|
59
|
-
`,this.references=[]),t}};tt.emphasis={filter:["em","i"],replacement:function(e,t,r){return e.trim()?r.emDelimiter+e+r.emDelimiter:""}};tt.strong={filter:["strong","b"],replacement:function(e,t,r){return e.trim()?r.strongDelimiter+e+r.strongDelimiter:""}};tt.code={filter:function(e){var t=e.previousSibling||e.nextSibling,r=e.parentNode.nodeName==="PRE"&&!t;return e.nodeName==="CODE"&&!r},replacement:function(e){if(!e)return"";e=e.replace(/\r?\n|\r/g," ");for(var t=/^`|^ .*?[^ ].* $|`$/.test(e)?" ":"",r="`",n=e.match(/`+/gm)||[];n.indexOf(r)!==-1;)r=r+"`";return r+t+e+t+r}};tt.image={filter:"img",replacement:function(e,t){var r=Om(Oo(t.getAttribute("alt"))),n=Eu(t.getAttribute("src")||""),i=Oo(t.getAttribute("title")),s=i?' "'+yu(i)+'"':"";return n?"":""}};function Oo(e){return e?e.replace(/(\n+\s*)+/g,`
|
|
60
|
-
`):""}function Eu(e){var t=e.replace(/([<>()])/g,"\\$1");return t.indexOf(" ")>=0?"<"+t+">":t}function yu(e){return e.replace(/"/g,'\\"')}function Lm(e){this.options=e,this._keep=[],this._remove=[],this.blankRule={replacement:e.blankReplacement},this.keepReplacement=e.keepReplacement,this.defaultRule={replacement:e.defaultReplacement},this.array=[];for(var t in e.rules)this.array.push(e.rules[t])}Lm.prototype={add:function(e,t){this.array.unshift(t)},keep:function(e){this._keep.unshift({filter:e,replacement:this.keepReplacement})},remove:function(e){this._remove.unshift({filter:e,replacement:function(){return""}})},forNode:function(e){if(e.isBlank)return this.blankRule;var t;return(t=du(this.array,e,this.options))||(t=du(this._keep,e,this.options))||(t=du(this._remove,e,this.options))?t:this.defaultRule},forEach:function(e){for(var t=0;t<this.array.length;t++)e(this.array[t],t)}};function du(e,t,r){for(var n=0;n<e.length;n++){var i=e[n];if(Ow(i,t,r))return i}}function Ow(e,t,r){var n=e.filter;if(typeof n=="string"){if(n===t.nodeName.toLowerCase())return!0}else if(Array.isArray(n)){if(n.indexOf(t.nodeName.toLowerCase())>-1)return!0}else if(typeof n=="function"){if(n.call(e,t,r))return!0}else throw new TypeError("`filter` needs to be a string, array, or function")}function Lw(e){var t=e.element,r=e.isBlock,n=e.isVoid,i=e.isPre||function(ce){return ce.nodeName==="PRE"};if(!(!t.firstChild||i(t))){for(var s=null,c=!1,d=null,b=_m(d,t,i);b!==t;){if(b.nodeType===3||b.nodeType===4){var T=b.data.replace(/[ \r\n\t]+/g," ");if((!s||/ $/.test(s.data))&&!c&&T[0]===" "&&(T=T.substr(1)),!T){b=xu(b);continue}b.data=T,s=b}else if(b.nodeType===1)r(b)||b.nodeName==="BR"?(s&&(s.data=s.data.replace(/ $/,"")),s=null,c=!1):n(b)||i(b)?(s=null,c=!0):s&&(c=!1);else{b=xu(b);continue}var S=_m(d,b,i);d=b,b=S}s&&(s.data=s.data.replace(/ $/,""),s.data||xu(s))}}function xu(e){var t=e.nextSibling||e.parentNode;return e.parentNode.removeChild(e),t}function _m(e,t,r){return e&&e.parentNode===t||r(t)?t.nextSibling||t.parentNode:t.firstChild||t.nextSibling||t.parentNode}var Dm=typeof window<"u"?window:{};function Dw(){var e=Dm.DOMParser,t=!1;try{new e().parseFromString("","text/html")&&(t=!0)}catch{}return t}function kw(){var e=function(){};{var t=Tm();e.prototype.parseFromString=function(r){return t.createDocument(r)}}return e}var Mw=Dw()?Dm.DOMParser:kw();function Fw(e,t){var r;if(typeof e=="string"){var n=qw().parseFromString('<x-turndown id="turndown-root">'+e+"</x-turndown>","text/html");r=n.getElementById("turndown-root")}else r=e.cloneNode(!0);return Lw({element:r,isBlock:gu,isVoid:Am,isPre:t.preformattedCode?Pw:null}),r}var mu;function qw(){return mu=mu||new Mw,mu}function Pw(e){return e.nodeName==="PRE"||e.nodeName==="CODE"}function Hw(e,t){return e.isBlock=gu(e),e.isCode=e.nodeName==="CODE"||e.parentNode.isCode,e.isBlank=Uw(e),e.flankingWhitespace=Bw(e,t),e}function Uw(e){return!Am(e)&&!Aw(e)&&/^\s*$/i.test(e.textContent)&&!Nw(e)&&!Cw(e)}function Bw(e,t){if(e.isBlock||t.preformattedCode&&e.isCode)return{leading:"",trailing:""};var r=jw(e.textContent);return r.leadingAscii&&Im("left",e,t)&&(r.leading=r.leadingNonAscii),r.trailingAscii&&Im("right",e,t)&&(r.trailing=r.trailingNonAscii),{leading:r.leading,trailing:r.trailing}}function jw(e){var t=e.match(/^(([ \t\r\n]*)(\s*))(?:(?=\S)[\s\S]*\S)?((\s*?)([ \t\r\n]*))$/);return{leading:t[1],leadingAscii:t[2],leadingNonAscii:t[3],trailing:t[4],trailingNonAscii:t[5],trailingAscii:t[6]}}function Im(e,t,r){var n,i,s;return e==="left"?(n=t.previousSibling,i=/ $/):(n=t.nextSibling,i=/^ /),n&&(n.nodeType===3?s=i.test(n.nodeValue):r.preformattedCode&&n.nodeName==="CODE"?s=!1:n.nodeType===1&&!gu(n)&&(s=i.test(n.textContent))),s}var Vw=Array.prototype.reduce;function Lo(e){if(!(this instanceof Lo))return new Lo(e);var t={rules:tt,headingStyle:"setext",hr:"* * *",bulletListMarker:"*",codeBlockStyle:"indented",fence:"```",emDelimiter:"_",strongDelimiter:"**",linkStyle:"inlined",linkReferenceStyle:"full",br:" ",preformattedCode:!1,blankReplacement:function(r,n){return n.isBlock?`
|
|
61
|
-
|
|
62
|
-
`:""},keepReplacement:function(r,n){return n.isBlock?`
|
|
63
|
-
|
|
64
|
-
`+n.outerHTML+`
|
|
65
|
-
|
|
66
|
-
`:n.outerHTML},defaultReplacement:function(r,n){return n.isBlock?`
|
|
67
|
-
|
|
68
|
-
`+r+`
|
|
69
|
-
|
|
70
|
-
`:r}};this.options=Sw({},t,e),this.rules=new Lm(this.options)}Lo.prototype={turndown:function(e){if(!$w(e))throw new TypeError(e+" is not a string, or an element/document/fragment node.");if(e==="")return"";var t=km.call(this,new Fw(e,this.options));return Gw.call(this,t)},use:function(e){if(Array.isArray(e))for(var t=0;t<e.length;t++)this.use(e[t]);else if(typeof e=="function")e(this);else throw new TypeError("plugin must be a Function or an Array of Functions");return this},addRule:function(e,t){return this.rules.add(e,t),this},keep:function(e){return this.rules.keep(e),this},remove:function(e){return this.rules.remove(e),this},escape:function(e){return Om(e)}};function km(e){var t=this;return Vw.call(e.childNodes,function(r,n){n=new Hw(n,t.options);var i="";return n.nodeType===3?i=n.isCode?n.nodeValue:t.escape(n.nodeValue):n.nodeType===1&&(i=Kw.call(t,n)),Mm(r,i)},"")}function Gw(e){var t=this;return this.rules.forEach(function(r){typeof r.append=="function"&&(e=Mm(e,r.append(t.options)))}),e.replace(/^[\t\r\n]+/,"").replace(/[\t\r\n\s]+$/,"")}function Kw(e){var t=this.rules.forNode(e),r=km.call(this,e),n=e.flankingWhitespace;return(n.leading||n.trailing)&&(r=r.trim()),n.leading+t.replacement(r,e,this.options)+n.trailing}function Mm(e,t){var r=Sm(e),n=wm(t),i=Math.max(e.length-r.length,t.length-n.length),s=`
|
|
71
|
-
|
|
72
|
-
`.substring(0,i);return r+s+n}function $w(e){return e!=null&&(typeof e=="string"||e.nodeType&&(e.nodeType===1||e.nodeType===9||e.nodeType===11))}Fm.exports=Lo});var Gm=C(xn=>{"use strict";Object.defineProperty(xn,"__esModule",{value:!0});var Pm=/highlight-(?:text|source)-([a-z0-9]+)/;function Hm(e){e.addRule("highlightedCodeBlock",{filter:function(t){var r=t.firstChild;return t.nodeName==="DIV"&&Pm.test(t.className)&&r&&r.nodeName==="PRE"},replacement:function(t,r,n){var i=r.className||"",s=(i.match(Pm)||[null,""])[1];return`
|
|
73
|
-
|
|
74
|
-
`+n.fence+s+`
|
|
75
|
-
`+r.firstChild.textContent+`
|
|
76
|
-
`+n.fence+`
|
|
77
|
-
|
|
78
|
-
`}})}function Um(e){e.addRule("strikethrough",{filter:["del","s","strike"],replacement:function(t){return"~"+t+"~"}})}var Ww=Array.prototype.indexOf,zw=Array.prototype.every,Zn={};Zn.tableCell={filter:["th","td"],replacement:function(e,t){return Bm(e,t)}};Zn.tableRow={filter:"tr",replacement:function(e,t){var r="",n={left:":--",right:"--:",center:":-:"};if(Tu(t))for(var i=0;i<t.childNodes.length;i++){var s="---",c=(t.childNodes[i].getAttribute("align")||"").toLowerCase();c&&(s=n[c]||s),r+=Bm(s,t.childNodes[i])}return`
|
|
79
|
-
`+e+(r?`
|
|
80
|
-
`+r:"")}};Zn.table={filter:function(e){return e.nodeName==="TABLE"&&Tu(e.rows[0])},replacement:function(e){return e=e.replace(`
|
|
81
|
-
|
|
82
|
-
`,`
|
|
83
|
-
`),`
|
|
84
|
-
|
|
85
|
-
`+e+`
|
|
86
|
-
|
|
87
|
-
`}};Zn.tableSection={filter:["thead","tbody","tfoot"],replacement:function(e){return e}};function Tu(e){var t=e.parentNode;return t.nodeName==="THEAD"||t.firstChild===e&&(t.nodeName==="TABLE"||Xw(t))&&zw.call(e.childNodes,function(r){return r.nodeName==="TH"})}function Xw(e){var t=e.previousSibling;return e.nodeName==="TBODY"&&(!t||t.nodeName==="THEAD"&&/^\s*$/i.test(t.textContent))}function Bm(e,t){var r=Ww.call(t.parentNode.childNodes,t),n=" ";return r===0&&(n="| "),n+e+" |"}function jm(e){e.keep(function(r){return r.nodeName==="TABLE"&&!Tu(r.rows[0])});for(var t in Zn)e.addRule(t,Zn[t])}function Vm(e){e.addRule("taskListItems",{filter:function(t){return t.type==="checkbox"&&t.parentNode.nodeName==="LI"},replacement:function(t,r){return(r.checked?"[x]":"[ ]")+" "}})}function Qw(e){e.use([Hm,Um,jm,Vm])}xn.gfm=Qw;xn.highlightedCodeBlock=Hm;xn.strikethrough=Um;xn.tables=jm;xn.taskListItems=Vm});var ze={};es(ze,{HasPropertyKey:()=>ba,IsArray:()=>Ce,IsAsyncIterator:()=>ss,IsBigInt:()=>ui,IsBoolean:()=>ar,IsDate:()=>Xr,IsFunction:()=>cs,IsIterator:()=>us,IsNull:()=>ls,IsNumber:()=>ut,IsObject:()=>ie,IsRegExp:()=>li,IsString:()=>ue,IsSymbol:()=>fs,IsUint8Array:()=>or,IsUndefined:()=>Re});function ba(e,t){return t in e}function ss(e){return ie(e)&&!Ce(e)&&!or(e)&&Symbol.asyncIterator in e}function Ce(e){return Array.isArray(e)}function ui(e){return typeof e=="bigint"}function ar(e){return typeof e=="boolean"}function Xr(e){return e instanceof globalThis.Date}function cs(e){return typeof e=="function"}function us(e){return ie(e)&&!Ce(e)&&!or(e)&&Symbol.iterator in e}function ls(e){return e===null}function ut(e){return typeof e=="number"}function ie(e){return typeof e=="object"&&e!==null}function li(e){return e instanceof globalThis.RegExp}function ue(e){return typeof e=="string"}function fs(e){return typeof e=="symbol"}function or(e){return e instanceof globalThis.Uint8Array}function Re(e){return e===void 0}function mg(e){return e.map(t=>Ea(t))}function hg(e){return new Date(e.getTime())}function gg(e){return new Uint8Array(e)}function bg(e){return new RegExp(e.source,e.flags)}function Eg(e){let t={};for(let r of Object.getOwnPropertyNames(e))t[r]=Ea(e[r]);for(let r of Object.getOwnPropertySymbols(e))t[r]=Ea(e[r]);return t}function Ea(e){return Ce(e)?mg(e):Xr(e)?hg(e):or(e)?gg(e):li(e)?bg(e):ie(e)?Eg(e):e}function me(e){return Ea(e)}function bn(e,t){return t===void 0?me(e):me({...t,...e})}function Tl(e){return e!==null&&typeof e=="object"}function _l(e){return globalThis.Array.isArray(e)&&!globalThis.ArrayBuffer.isView(e)}function Il(e){return e===void 0}function wl(e){return typeof e=="number"}var ya;(function(e){e.InstanceMode="default",e.ExactOptionalPropertyTypes=!1,e.AllowArrayObject=!1,e.AllowNaN=!1,e.AllowNullVoid=!1;function t(c,d){return e.ExactOptionalPropertyTypes?d in c:c[d]!==void 0}e.IsExactOptionalProperty=t;function r(c){let d=Tl(c);return e.AllowArrayObject?d:d&&!_l(c)}e.IsObjectLike=r;function n(c){return r(c)&&!(c instanceof Date)&&!(c instanceof Uint8Array)}e.IsRecordLike=n;function i(c){return e.AllowNaN?wl(c):Number.isFinite(c)}e.IsNumberLike=i;function s(c){let d=Il(c);return e.AllowNullVoid?d||c===null:d}e.IsVoidLike=s})(ya||(ya={}));function yg(e){return globalThis.Object.freeze(e).map(t=>fi(t))}function Tg(e){let t={};for(let r of Object.getOwnPropertyNames(e))t[r]=fi(e[r]);for(let r of Object.getOwnPropertySymbols(e))t[r]=fi(e[r]);return globalThis.Object.freeze(t)}function fi(e){return Ce(e)?yg(e):Xr(e)?e:or(e)?e:li(e)?e:ie(e)?Tg(e):e}function m(e,t){let r=t!==void 0?{...t,...e}:e;switch(ya.InstanceMode){case"freeze":return fi(r);case"clone":return me(r);default:return r}}var qe=class extends Error{constructor(t){super(t)}};var ke=Symbol.for("TypeBox.Transform"),Rt=Symbol.for("TypeBox.Readonly"),Ge=Symbol.for("TypeBox.Optional"),yt=Symbol.for("TypeBox.Hint"),y=Symbol.for("TypeBox.Kind");function En(e){return ie(e)&&e[Rt]==="Readonly"}function nt(e){return ie(e)&&e[Ge]==="Optional"}function ps(e){return j(e,"Any")}function ds(e){return j(e,"Argument")}function Ot(e){return j(e,"Array")}function Qr(e){return j(e,"AsyncIterator")}function Yr(e){return j(e,"BigInt")}function sr(e){return j(e,"Boolean")}function Lt(e){return j(e,"Computed")}function Dt(e){return j(e,"Constructor")}function _g(e){return j(e,"Date")}function kt(e){return j(e,"Function")}function Mt(e){return j(e,"Integer")}function Ee(e){return j(e,"Intersect")}function Zr(e){return j(e,"Iterator")}function j(e,t){return ie(e)&&y in e&&e[y]===t}function Ta(e){return ar(e)||ut(e)||ue(e)}function lt(e){return j(e,"Literal")}function ft(e){return j(e,"MappedKey")}function he(e){return j(e,"MappedResult")}function Ar(e){return j(e,"Never")}function Ig(e){return j(e,"Not")}function pi(e){return j(e,"Null")}function Ft(e){return j(e,"Number")}function Oe(e){return j(e,"Object")}function Jr(e){return j(e,"Promise")}function en(e){return j(e,"Record")}function we(e){return j(e,"Ref")}function xs(e){return j(e,"RegExp")}function cr(e){return j(e,"String")}function di(e){return j(e,"Symbol")}function pt(e){return j(e,"TemplateLiteral")}function wg(e){return j(e,"This")}function Cr(e){return ie(e)&&ke in e}function dt(e){return j(e,"Tuple")}function xi(e){return j(e,"Undefined")}function V(e){return j(e,"Union")}function Sg(e){return j(e,"Uint8Array")}function vg(e){return j(e,"Unknown")}function Ng(e){return j(e,"Unsafe")}function Ag(e){return j(e,"Void")}function Cg(e){return ie(e)&&y in e&&ue(e[y])}function xt(e){return ps(e)||ds(e)||Ot(e)||sr(e)||Yr(e)||Qr(e)||Lt(e)||Dt(e)||_g(e)||kt(e)||Mt(e)||Ee(e)||Zr(e)||lt(e)||ft(e)||he(e)||Ar(e)||Ig(e)||pi(e)||Ft(e)||Oe(e)||Jr(e)||en(e)||we(e)||xs(e)||cr(e)||di(e)||pt(e)||wg(e)||dt(e)||xi(e)||V(e)||Sg(e)||vg(e)||Ng(e)||Ag(e)||Cg(e)}var p={};es(p,{IsAny:()=>Al,IsArgument:()=>Cl,IsArray:()=>Rl,IsAsyncIterator:()=>Ol,IsBigInt:()=>Ll,IsBoolean:()=>Dl,IsComputed:()=>kl,IsConstructor:()=>Ml,IsDate:()=>Fl,IsFunction:()=>ql,IsImport:()=>Mg,IsInteger:()=>Pl,IsIntersect:()=>Hl,IsIterator:()=>Ul,IsKind:()=>p0,IsKindOf:()=>q,IsLiteral:()=>hi,IsLiteralBoolean:()=>Fg,IsLiteralNumber:()=>jl,IsLiteralString:()=>Bl,IsLiteralValue:()=>Vl,IsMappedKey:()=>Gl,IsMappedResult:()=>Kl,IsNever:()=>$l,IsNot:()=>Wl,IsNull:()=>zl,IsNumber:()=>Xl,IsObject:()=>Ql,IsOptional:()=>kg,IsPromise:()=>Yl,IsProperties:()=>_a,IsReadonly:()=>Dg,IsRecord:()=>Zl,IsRecursive:()=>qg,IsRef:()=>Jl,IsRegExp:()=>e0,IsSchema:()=>Pe,IsString:()=>t0,IsSymbol:()=>r0,IsTemplateLiteral:()=>n0,IsThis:()=>i0,IsTransform:()=>a0,IsTuple:()=>o0,IsUint8Array:()=>c0,IsUndefined:()=>s0,IsUnion:()=>bs,IsUnionLiteral:()=>Pg,IsUnknown:()=>u0,IsUnsafe:()=>l0,IsVoid:()=>f0,TypeGuardUnknownTypeError:()=>ms});var ms=class extends qe{},Rg=["Argument","Any","Array","AsyncIterator","BigInt","Boolean","Computed","Constructor","Date","Enum","Function","Integer","Intersect","Iterator","Literal","MappedKey","MappedResult","Not","Null","Number","Object","Promise","Record","Ref","RegExp","String","Symbol","TemplateLiteral","This","Tuple","Undefined","Union","Uint8Array","Unknown","Void"];function Sl(e){try{return new RegExp(e),!0}catch{return!1}}function hs(e){if(!ue(e))return!1;for(let t=0;t<e.length;t++){let r=e.charCodeAt(t);if(r>=7&&r<=13||r===27||r===127)return!1}return!0}function vl(e){return gs(e)||Pe(e)}function mi(e){return Re(e)||ui(e)}function le(e){return Re(e)||ut(e)}function gs(e){return Re(e)||ar(e)}function ae(e){return Re(e)||ue(e)}function Og(e){return Re(e)||ue(e)&&hs(e)&&Sl(e)}function Lg(e){return Re(e)||ue(e)&&hs(e)}function Nl(e){return Re(e)||Pe(e)}function Dg(e){return ie(e)&&e[Rt]==="Readonly"}function kg(e){return ie(e)&&e[Ge]==="Optional"}function Al(e){return q(e,"Any")&&ae(e.$id)}function Cl(e){return q(e,"Argument")&&ut(e.index)}function Rl(e){return q(e,"Array")&&e.type==="array"&&ae(e.$id)&&Pe(e.items)&&le(e.minItems)&&le(e.maxItems)&&gs(e.uniqueItems)&&Nl(e.contains)&&le(e.minContains)&&le(e.maxContains)}function Ol(e){return q(e,"AsyncIterator")&&e.type==="AsyncIterator"&&ae(e.$id)&&Pe(e.items)}function Ll(e){return q(e,"BigInt")&&e.type==="bigint"&&ae(e.$id)&&mi(e.exclusiveMaximum)&&mi(e.exclusiveMinimum)&&mi(e.maximum)&&mi(e.minimum)&&mi(e.multipleOf)}function Dl(e){return q(e,"Boolean")&&e.type==="boolean"&&ae(e.$id)}function kl(e){return q(e,"Computed")&&ue(e.target)&&Ce(e.parameters)&&e.parameters.every(t=>Pe(t))}function Ml(e){return q(e,"Constructor")&&e.type==="Constructor"&&ae(e.$id)&&Ce(e.parameters)&&e.parameters.every(t=>Pe(t))&&Pe(e.returns)}function Fl(e){return q(e,"Date")&&e.type==="Date"&&ae(e.$id)&&le(e.exclusiveMaximumTimestamp)&&le(e.exclusiveMinimumTimestamp)&&le(e.maximumTimestamp)&&le(e.minimumTimestamp)&&le(e.multipleOfTimestamp)}function ql(e){return q(e,"Function")&&e.type==="Function"&&ae(e.$id)&&Ce(e.parameters)&&e.parameters.every(t=>Pe(t))&&Pe(e.returns)}function Mg(e){return q(e,"Import")&&ba(e,"$defs")&&ie(e.$defs)&&_a(e.$defs)&&ba(e,"$ref")&&ue(e.$ref)&&e.$ref in e.$defs}function Pl(e){return q(e,"Integer")&&e.type==="integer"&&ae(e.$id)&&le(e.exclusiveMaximum)&&le(e.exclusiveMinimum)&&le(e.maximum)&&le(e.minimum)&&le(e.multipleOf)}function _a(e){return ie(e)&&Object.entries(e).every(([t,r])=>hs(t)&&Pe(r))}function Hl(e){return q(e,"Intersect")&&!(ue(e.type)&&e.type!=="object")&&Ce(e.allOf)&&e.allOf.every(t=>Pe(t)&&!a0(t))&&ae(e.type)&&(gs(e.unevaluatedProperties)||Nl(e.unevaluatedProperties))&&ae(e.$id)}function Ul(e){return q(e,"Iterator")&&e.type==="Iterator"&&ae(e.$id)&&Pe(e.items)}function q(e,t){return ie(e)&&y in e&&e[y]===t}function Bl(e){return hi(e)&&ue(e.const)}function jl(e){return hi(e)&&ut(e.const)}function Fg(e){return hi(e)&&ar(e.const)}function hi(e){return q(e,"Literal")&&ae(e.$id)&&Vl(e.const)}function Vl(e){return ar(e)||ut(e)||ue(e)}function Gl(e){return q(e,"MappedKey")&&Ce(e.keys)&&e.keys.every(t=>ut(t)||ue(t))}function Kl(e){return q(e,"MappedResult")&&_a(e.properties)}function $l(e){return q(e,"Never")&&ie(e.not)&&Object.getOwnPropertyNames(e.not).length===0}function Wl(e){return q(e,"Not")&&Pe(e.not)}function zl(e){return q(e,"Null")&&e.type==="null"&&ae(e.$id)}function Xl(e){return q(e,"Number")&&e.type==="number"&&ae(e.$id)&&le(e.exclusiveMaximum)&&le(e.exclusiveMinimum)&&le(e.maximum)&&le(e.minimum)&&le(e.multipleOf)}function Ql(e){return q(e,"Object")&&e.type==="object"&&ae(e.$id)&&_a(e.properties)&&vl(e.additionalProperties)&&le(e.minProperties)&&le(e.maxProperties)}function Yl(e){return q(e,"Promise")&&e.type==="Promise"&&ae(e.$id)&&Pe(e.item)}function Zl(e){return q(e,"Record")&&e.type==="object"&&ae(e.$id)&&vl(e.additionalProperties)&&ie(e.patternProperties)&&(t=>{let r=Object.getOwnPropertyNames(t.patternProperties);return r.length===1&&Sl(r[0])&&ie(t.patternProperties)&&Pe(t.patternProperties[r[0]])})(e)}function qg(e){return ie(e)&&yt in e&&e[yt]==="Recursive"}function Jl(e){return q(e,"Ref")&&ae(e.$id)&&ue(e.$ref)}function e0(e){return q(e,"RegExp")&&ae(e.$id)&&ue(e.source)&&ue(e.flags)&&le(e.maxLength)&&le(e.minLength)}function t0(e){return q(e,"String")&&e.type==="string"&&ae(e.$id)&&le(e.minLength)&&le(e.maxLength)&&Og(e.pattern)&&Lg(e.format)}function r0(e){return q(e,"Symbol")&&e.type==="symbol"&&ae(e.$id)}function n0(e){return q(e,"TemplateLiteral")&&e.type==="string"&&ue(e.pattern)&&e.pattern[0]==="^"&&e.pattern[e.pattern.length-1]==="$"}function i0(e){return q(e,"This")&&ae(e.$id)&&ue(e.$ref)}function a0(e){return ie(e)&&ke in e}function o0(e){return q(e,"Tuple")&&e.type==="array"&&ae(e.$id)&&ut(e.minItems)&&ut(e.maxItems)&&e.minItems===e.maxItems&&(Re(e.items)&&Re(e.additionalItems)&&e.minItems===0||Ce(e.items)&&e.items.every(t=>Pe(t)))}function s0(e){return q(e,"Undefined")&&e.type==="undefined"&&ae(e.$id)}function Pg(e){return bs(e)&&e.anyOf.every(t=>Bl(t)||jl(t))}function bs(e){return q(e,"Union")&&ae(e.$id)&&ie(e)&&Ce(e.anyOf)&&e.anyOf.every(t=>Pe(t))}function c0(e){return q(e,"Uint8Array")&&e.type==="Uint8Array"&&ae(e.$id)&&le(e.minByteLength)&&le(e.maxByteLength)}function u0(e){return q(e,"Unknown")&&ae(e.$id)}function l0(e){return q(e,"Unsafe")}function f0(e){return q(e,"Void")&&e.type==="void"&&ae(e.$id)}function p0(e){return ie(e)&&y in e&&ue(e[y])&&!Rg.includes(e[y])}function Pe(e){return ie(e)&&(Al(e)||Cl(e)||Rl(e)||Dl(e)||Ll(e)||Ol(e)||kl(e)||Ml(e)||Fl(e)||ql(e)||Pl(e)||Hl(e)||Ul(e)||hi(e)||Gl(e)||Kl(e)||$l(e)||Wl(e)||zl(e)||Xl(e)||Ql(e)||Yl(e)||Zl(e)||Jl(e)||e0(e)||t0(e)||r0(e)||n0(e)||i0(e)||o0(e)||s0(e)||bs(e)||c0(e)||u0(e)||l0(e)||f0(e)||p0(e))}var Es="(true|false)",gi="(0|[1-9][0-9]*)",ys="(.*)",Hg="(?!.*)",vv=`^${Es}$`,Rr=`^${gi}$`,Or=`^${ys}$`,d0=`^${Hg}$`;function x0(e,t){return e.includes(t)}function m0(e){return[...new Set(e)]}function Ug(e,t){return e.filter(r=>t.includes(r))}function Bg(e,t){return e.reduce((r,n)=>Ug(r,n),t)}function h0(e){return e.length===1?e[0]:e.length>1?Bg(e.slice(1),e[0]):[]}function g0(e){let t=[];for(let r of e)t.push(...r);return t}function Lr(e){return m({[y]:"Any"},e)}function yn(e,t){return m({[y]:"Array",type:"array",items:e},t)}function b0(e){return m({[y]:"Argument",index:e})}function Tn(e,t){return m({[y]:"AsyncIterator",type:"AsyncIterator",items:e},t)}function de(e,t,r){return m({[y]:"Computed",target:e,parameters:t},r)}function jg(e,t){let{[t]:r,...n}=e;return n}function ye(e,t){return t.reduce((r,n)=>jg(r,n),e)}function G(e){return m({[y]:"Never",not:{}},e)}function K(e){return m({[y]:"MappedResult",properties:e})}function _n(e,t,r){return m({[y]:"Constructor",type:"Constructor",parameters:e,returns:t},r)}function Wt(e,t,r){return m({[y]:"Function",type:"Function",parameters:e,returns:t},r)}function bi(e,t){return m({[y]:"Union",anyOf:e},t)}function Vg(e){return e.some(t=>nt(t))}function E0(e){return e.map(t=>nt(t)?Gg(t):t)}function Gg(e){return ye(e,[Ge])}function Kg(e,t){return Vg(e)?Xe(bi(E0(e),t)):bi(E0(e),t)}function zt(e,t){return e.length===1?m(e[0],t):e.length===0?G(t):Kg(e,t)}function J(e,t){return e.length===0?G(t):e.length===1?m(e[0],t):bi(e,t)}var Ia=class extends qe{};function $g(e){return e.replace(/\\\$/g,"$").replace(/\\\*/g,"*").replace(/\\\^/g,"^").replace(/\\\|/g,"|").replace(/\\\(/g,"(").replace(/\\\)/g,")")}function Ts(e,t,r){return e[t]===r&&e.charCodeAt(t-1)!==92}function lr(e,t){return Ts(e,t,"(")}function Ei(e,t){return Ts(e,t,")")}function y0(e,t){return Ts(e,t,"|")}function Wg(e){if(!(lr(e,0)&&Ei(e,e.length-1)))return!1;let t=0;for(let r=0;r<e.length;r++)if(lr(e,r)&&(t+=1),Ei(e,r)&&(t-=1),t===0&&r!==e.length-1)return!1;return!0}function zg(e){return e.slice(1,e.length-1)}function Xg(e){let t=0;for(let r=0;r<e.length;r++)if(lr(e,r)&&(t+=1),Ei(e,r)&&(t-=1),y0(e,r)&&t===0)return!0;return!1}function Qg(e){for(let t=0;t<e.length;t++)if(lr(e,t))return!0;return!1}function Yg(e){let[t,r]=[0,0],n=[];for(let s=0;s<e.length;s++)if(lr(e,s)&&(t+=1),Ei(e,s)&&(t-=1),y0(e,s)&&t===0){let c=e.slice(r,s);c.length>0&&n.push(In(c)),r=s+1}let i=e.slice(r);return i.length>0&&n.push(In(i)),n.length===0?{type:"const",const:""}:n.length===1?n[0]:{type:"or",expr:n}}function Zg(e){function t(i,s){if(!lr(i,s))throw new Ia("TemplateLiteralParser: Index must point to open parens");let c=0;for(let d=s;d<i.length;d++)if(lr(i,d)&&(c+=1),Ei(i,d)&&(c-=1),c===0)return[s,d];throw new Ia("TemplateLiteralParser: Unclosed group parens in expression")}function r(i,s){for(let c=s;c<i.length;c++)if(lr(i,c))return[s,c];return[s,i.length]}let n=[];for(let i=0;i<e.length;i++)if(lr(e,i)){let[s,c]=t(e,i),d=e.slice(s,c+1);n.push(In(d)),i=c}else{let[s,c]=r(e,i),d=e.slice(s,c);d.length>0&&n.push(In(d)),i=c-1}return n.length===0?{type:"const",const:""}:n.length===1?n[0]:{type:"and",expr:n}}function In(e){return Wg(e)?In(zg(e)):Xg(e)?Yg(e):Qg(e)?Zg(e):{type:"const",const:$g(e)}}function wn(e){return In(e.slice(1,e.length-1))}var _s=class extends qe{};function Jg(e){return e.type==="or"&&e.expr.length===2&&e.expr[0].type==="const"&&e.expr[0].const==="0"&&e.expr[1].type==="const"&&e.expr[1].const==="[1-9][0-9]*"}function e2(e){return e.type==="or"&&e.expr.length===2&&e.expr[0].type==="const"&&e.expr[0].const==="true"&&e.expr[1].type==="const"&&e.expr[1].const==="false"}function t2(e){return e.type==="const"&&e.const===".*"}function tn(e){return Jg(e)||t2(e)?!1:e2(e)?!0:e.type==="and"?e.expr.every(t=>tn(t)):e.type==="or"?e.expr.every(t=>tn(t)):e.type==="const"?!0:(()=>{throw new _s("Unknown expression type")})()}function T0(e){let t=wn(e.pattern);return tn(t)}var Is=class extends qe{};function*_0(e){if(e.length===1)return yield*e[0];for(let t of e[0])for(let r of _0(e.slice(1)))yield`${t}${r}`}function*r2(e){return yield*_0(e.expr.map(t=>[...yi(t)]))}function*n2(e){for(let t of e.expr)yield*yi(t)}function*i2(e){return yield e.const}function*yi(e){return e.type==="and"?yield*r2(e):e.type==="or"?yield*n2(e):e.type==="const"?yield*i2(e):(()=>{throw new Is("Unknown expression")})()}function wa(e){let t=wn(e.pattern);return tn(t)?[...yi(t)]:[]}function X(e,t){return m({[y]:"Literal",const:e,type:typeof e},t)}function Sa(e){return m({[y]:"Boolean",type:"boolean"},e)}function Sn(e){return m({[y]:"BigInt",type:"bigint"},e)}function Tt(e){return m({[y]:"Number",type:"number"},e)}function qt(e){return m({[y]:"String",type:"string"},e)}function*a2(e){let t=e.trim().replace(/"|'/g,"");return t==="boolean"?yield Sa():t==="number"?yield Tt():t==="bigint"?yield Sn():t==="string"?yield qt():yield(()=>{let r=t.split("|").map(n=>X(n.trim()));return r.length===0?G():r.length===1?r[0]:zt(r)})()}function*o2(e){if(e[1]!=="{"){let t=X("$"),r=ws(e.slice(1));return yield*[t,...r]}for(let t=2;t<e.length;t++)if(e[t]==="}"){let r=a2(e.slice(2,t)),n=ws(e.slice(t+1));return yield*[...r,...n]}yield X(e)}function*ws(e){for(let t=0;t<e.length;t++)if(e[t]==="$"){let r=X(e.slice(0,t)),n=o2(e.slice(t));return yield*[r,...n]}yield X(e)}function I0(e){return[...ws(e)]}var Ss=class extends qe{};function s2(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function w0(e,t){return pt(e)?e.pattern.slice(1,e.pattern.length-1):V(e)?`(${e.anyOf.map(r=>w0(r,t)).join("|")})`:Ft(e)?`${t}${gi}`:Mt(e)?`${t}${gi}`:Yr(e)?`${t}${gi}`:cr(e)?`${t}${ys}`:lt(e)?`${t}${s2(e.const.toString())}`:sr(e)?`${t}${Es}`:(()=>{throw new Ss(`Unexpected Kind '${e[y]}'`)})()}function vs(e){return`^${e.map(t=>w0(t,"")).join("")}$`}function rn(e){let r=wa(e).map(n=>X(n));return zt(r)}function va(e,t){let r=ue(e)?vs(I0(e)):vs(e);return m({[y]:"TemplateLiteral",type:"string",pattern:r},t)}function c2(e){return wa(e).map(r=>r.toString())}function u2(e){let t=[];for(let r of e)t.push(...it(r));return t}function l2(e){return[e.toString()]}function it(e){return[...new Set(pt(e)?c2(e):V(e)?u2(e.anyOf):lt(e)?l2(e.const):Ft(e)?["[number]"]:Mt(e)?["[number]"]:[])]}function f2(e,t,r){let n={};for(let i of Object.getOwnPropertyNames(t))n[i]=Dr(e,it(t[i]),r);return n}function p2(e,t,r){return f2(e,t.properties,r)}function S0(e,t,r){let n=p2(e,t,r);return K(n)}function N0(e,t){return e.map(r=>A0(r,t))}function d2(e){return e.filter(t=>!Ar(t))}function x2(e,t){return Na(d2(N0(e,t)))}function m2(e){return e.some(t=>Ar(t))?[]:e}function h2(e,t){return zt(m2(N0(e,t)))}function g2(e,t){return t in e?e[t]:t==="[number]"?zt(e):G()}function b2(e,t){return t==="[number]"?e:G()}function E2(e,t){return t in e?e[t]:G()}function A0(e,t){return Ee(e)?x2(e.allOf,t):V(e)?h2(e.anyOf,t):dt(e)?g2(e.items??[],t):Ot(e)?b2(e.items,t):Oe(e)?E2(e.properties,t):G()}function Ns(e,t){return t.map(r=>A0(e,r))}function v0(e,t){return zt(Ns(e,t))}function Dr(e,t,r){if(we(e)||we(t)){let n="Index types using Ref parameters require both Type and Key to be of TSchema";if(!xt(e)||!xt(t))throw new qe(n);return de("Index",[e,t])}return he(t)?S0(e,t,r):ft(t)?C0(e,t,r):m(xt(t)?v0(e,it(t)):v0(e,t),r)}function y2(e,t,r){return{[t]:Dr(e,[t],me(r))}}function T2(e,t,r){return t.reduce((n,i)=>({...n,...y2(e,i,r)}),{})}function _2(e,t,r){return T2(e,t.keys,r)}function C0(e,t,r){let n=_2(e,t,r);return K(n)}function vn(e,t){return m({[y]:"Iterator",type:"Iterator",items:e},t)}function I2(e){return globalThis.Object.keys(e).filter(t=>!nt(e[t]))}function w2(e,t){let r=I2(e),n=r.length>0?{[y]:"Object",type:"object",required:r,properties:e}:{[y]:"Object",type:"object",properties:e};return m(n,t)}var oe=w2;function Aa(e,t){return m({[y]:"Promise",type:"Promise",item:e},t)}function S2(e){return m(ye(e,[Rt]))}function v2(e){return m({...e,[Rt]:"Readonly"})}function N2(e,t){return t===!1?S2(e):v2(e)}function at(e,t){let r=t??!0;return he(e)?R0(e,r):N2(e,r)}function A2(e,t){let r={};for(let n of globalThis.Object.getOwnPropertyNames(e))r[n]=at(e[n],t);return r}function C2(e,t){return A2(e.properties,t)}function R0(e,t){let r=C2(e,t);return K(r)}function _t(e,t){return m(e.length>0?{[y]:"Tuple",type:"array",items:e,additionalItems:!1,minItems:e.length,maxItems:e.length}:{[y]:"Tuple",type:"array",minItems:e.length,maxItems:e.length},t)}function O0(e,t){return e in t?It(e,t[e]):K(t)}function R2(e){return{[e]:X(e)}}function O2(e){let t={};for(let r of e)t[r]=X(r);return t}function L2(e,t){return x0(t,e)?R2(e):O2(t)}function D2(e,t){let r=L2(e,t);return O0(e,r)}function Ti(e,t){return t.map(r=>It(e,r))}function k2(e,t){let r={};for(let n of globalThis.Object.getOwnPropertyNames(t))r[n]=It(e,t[n]);return r}function It(e,t){let r={...t};return nt(t)?Xe(It(e,ye(t,[Ge]))):En(t)?at(It(e,ye(t,[Rt]))):he(t)?O0(e,t.properties):ft(t)?D2(e,t.keys):Dt(t)?_n(Ti(e,t.parameters),It(e,t.returns),r):kt(t)?Wt(Ti(e,t.parameters),It(e,t.returns),r):Qr(t)?Tn(It(e,t.items),r):Zr(t)?vn(It(e,t.items),r):Ee(t)?Qe(Ti(e,t.allOf),r):V(t)?J(Ti(e,t.anyOf),r):dt(t)?_t(Ti(e,t.items??[]),r):Oe(t)?oe(k2(e,t.properties),r):Ot(t)?yn(It(e,t.items),r):Jr(t)?Aa(It(e,t.item),r):t}function M2(e,t){let r={};for(let n of e)r[n]=It(n,t);return r}function L0(e,t,r){let n=xt(e)?it(e):e,i=t({[y]:"MappedKey",keys:n}),s=M2(n,i);return oe(s,r)}function F2(e){return m(ye(e,[Ge]))}function q2(e){return m({...e,[Ge]:"Optional"})}function P2(e,t){return t===!1?F2(e):q2(e)}function Xe(e,t){let r=t??!0;return he(e)?D0(e,r):P2(e,r)}function H2(e,t){let r={};for(let n of globalThis.Object.getOwnPropertyNames(e))r[n]=Xe(e[n],t);return r}function U2(e,t){return H2(e.properties,t)}function D0(e,t){let r=U2(e,t);return K(r)}function _i(e,t={}){let r=e.every(i=>Oe(i)),n=xt(t.unevaluatedProperties)?{unevaluatedProperties:t.unevaluatedProperties}:{};return m(t.unevaluatedProperties===!1||xt(t.unevaluatedProperties)||r?{...n,[y]:"Intersect",type:"object",allOf:e}:{...n,[y]:"Intersect",allOf:e},t)}function B2(e){return e.every(t=>nt(t))}function j2(e){return ye(e,[Ge])}function k0(e){return e.map(t=>nt(t)?j2(t):t)}function V2(e,t){return B2(e)?Xe(_i(k0(e),t)):_i(k0(e),t)}function Na(e,t={}){if(e.length===1)return m(e[0],t);if(e.length===0)return G(t);if(e.some(r=>Cr(r)))throw new Error("Cannot intersect transform types");return V2(e,t)}function Qe(e,t){if(e.length===1)return m(e[0],t);if(e.length===0)return G(t);if(e.some(r=>Cr(r)))throw new Error("Cannot intersect transform types");return _i(e,t)}function Xt(...e){let[t,r]=typeof e[0]=="string"?[e[0],e[1]]:[e[0].$id,e[1]];if(typeof t!="string")throw new qe("Ref: $ref must be a string");return m({[y]:"Ref",$ref:t},r)}function G2(e,t){return de("Awaited",[de(e,t)])}function K2(e){return de("Awaited",[Xt(e)])}function $2(e){return Qe(M0(e))}function W2(e){return J(M0(e))}function z2(e){return Nn(e)}function M0(e){return e.map(t=>Nn(t))}function Nn(e,t){return m(Lt(e)?G2(e.target,e.parameters):Ee(e)?$2(e.allOf):V(e)?W2(e.anyOf):Jr(e)?z2(e.item):we(e)?K2(e.$ref):e,t)}function F0(e){let t=[];for(let r of e)t.push(Ii(r));return t}function X2(e){let t=F0(e);return g0(t)}function Q2(e){let t=F0(e);return h0(t)}function Y2(e){return e.map((t,r)=>r.toString())}function Z2(e){return["[number]"]}function J2(e){return globalThis.Object.getOwnPropertyNames(e)}function eb(e){return tb?globalThis.Object.getOwnPropertyNames(e).map(r=>r[0]==="^"&&r[r.length-1]==="$"?r.slice(1,r.length-1):r):[]}function Ii(e){return Ee(e)?X2(e.allOf):V(e)?Q2(e.anyOf):dt(e)?Y2(e.items??[]):Ot(e)?Z2(e.items):Oe(e)?J2(e.properties):en(e)?eb(e.patternProperties):[]}var tb=!1;function rb(e,t){return de("KeyOf",[de(e,t)])}function nb(e){return de("KeyOf",[Xt(e)])}function ib(e,t){let r=Ii(e),n=ab(r),i=zt(n);return m(i,t)}function ab(e){return e.map(t=>t==="[number]"?Tt():X(t))}function An(e,t){return Lt(e)?rb(e.target,e.parameters):we(e)?nb(e.$ref):he(e)?q0(e,t):ib(e,t)}function ob(e,t){let r={};for(let n of globalThis.Object.getOwnPropertyNames(e))r[n]=An(e[n],me(t));return r}function sb(e,t){return ob(e.properties,t)}function q0(e,t){let r=sb(e,t);return K(r)}function cb(e){let t=[];for(let r of e)t.push(...Ii(r));return m0(t)}function ub(e){return e.filter(t=>!Ar(t))}function lb(e,t){let r=[];for(let n of e)r.push(...Ns(n,[t]));return ub(r)}function fb(e,t){let r={};for(let n of t)r[n]=Na(lb(e,n));return r}function P0(e,t){let r=cb(e),n=fb(e,r);return oe(n,t)}function Ca(e){return m({[y]:"Date",type:"Date"},e)}function Ra(e){return m({[y]:"Null",type:"null"},e)}function Oa(e){return m({[y]:"Symbol",type:"symbol"},e)}function La(e){return m({[y]:"Undefined",type:"undefined"},e)}function Da(e){return m({[y]:"Uint8Array",type:"Uint8Array"},e)}function kr(e){return m({[y]:"Unknown"},e)}function pb(e){return e.map(t=>As(t,!1))}function db(e){let t={};for(let r of globalThis.Object.getOwnPropertyNames(e))t[r]=at(As(e[r],!1));return t}function ka(e,t){return t===!0?e:at(e)}function As(e,t){return ss(e)?ka(Lr(),t):us(e)?ka(Lr(),t):Ce(e)?at(_t(pb(e))):or(e)?Da():Xr(e)?Ca():ie(e)?ka(oe(db(e)),t):cs(e)?ka(Wt([],kr()),t):Re(e)?La():ls(e)?Ra():fs(e)?Oa():ui(e)?Sn():ut(e)?X(e):ar(e)?X(e):ue(e)?X(e):oe({})}function H0(e,t){return m(As(e,!0),t)}function U0(e,t){return Dt(e)?_t(e.parameters,t):G(t)}function B0(e,t){if(Re(e))throw new Error("Enum undefined or empty");let r=globalThis.Object.getOwnPropertyNames(e).filter(s=>isNaN(s)).map(s=>e[s]),i=[...new Set(r)].map(s=>X(s));return J(i,{...t,[yt]:"Enum"})}var Rs=class extends qe{},h;(function(e){e[e.Union=0]="Union",e[e.True=1]="True",e[e.False=2]="False"})(h||(h={}));function wt(e){return e===h.False?e:h.True}function Cn(e){throw new Rs(e)}function Me(e){return p.IsNever(e)||p.IsIntersect(e)||p.IsUnion(e)||p.IsUnknown(e)||p.IsAny(e)}function Fe(e,t){return p.IsNever(t)?z0(e,t):p.IsIntersect(t)?Ma(e,t):p.IsUnion(t)?ks(e,t):p.IsUnknown(t)?Z0(e,t):p.IsAny(t)?Ds(e,t):Cn("StructuralRight")}function Ds(e,t){return h.True}function xb(e,t){return p.IsIntersect(t)?Ma(e,t):p.IsUnion(t)&&t.anyOf.some(r=>p.IsAny(r)||p.IsUnknown(r))?h.True:p.IsUnion(t)?h.Union:p.IsUnknown(t)||p.IsAny(t)?h.True:h.Union}function mb(e,t){return p.IsUnknown(e)?h.False:p.IsAny(e)?h.Union:p.IsNever(e)?h.True:h.False}function hb(e,t){return p.IsObject(t)&&Fa(t)?h.True:Me(t)?Fe(e,t):p.IsArray(t)?wt(se(e.items,t.items)):h.False}function gb(e,t){return Me(t)?Fe(e,t):p.IsAsyncIterator(t)?wt(se(e.items,t.items)):h.False}function bb(e,t){return Me(t)?Fe(e,t):p.IsObject(t)?Ye(e,t):p.IsRecord(t)?St(e,t):p.IsBigInt(t)?h.True:h.False}function $0(e,t){return p.IsLiteralBoolean(e)||p.IsBoolean(e)?h.True:h.False}function Eb(e,t){return Me(t)?Fe(e,t):p.IsObject(t)?Ye(e,t):p.IsRecord(t)?St(e,t):p.IsBoolean(t)?h.True:h.False}function yb(e,t){return Me(t)?Fe(e,t):p.IsObject(t)?Ye(e,t):p.IsConstructor(t)?e.parameters.length>t.parameters.length?h.False:e.parameters.every((r,n)=>wt(se(t.parameters[n],r))===h.True)?wt(se(e.returns,t.returns)):h.False:h.False}function Tb(e,t){return Me(t)?Fe(e,t):p.IsObject(t)?Ye(e,t):p.IsRecord(t)?St(e,t):p.IsDate(t)?h.True:h.False}function _b(e,t){return Me(t)?Fe(e,t):p.IsObject(t)?Ye(e,t):p.IsFunction(t)?e.parameters.length>t.parameters.length?h.False:e.parameters.every((r,n)=>wt(se(t.parameters[n],r))===h.True)?wt(se(e.returns,t.returns)):h.False:h.False}function W0(e,t){return p.IsLiteral(e)&&ze.IsNumber(e.const)||p.IsNumber(e)||p.IsInteger(e)?h.True:h.False}function Ib(e,t){return p.IsInteger(t)||p.IsNumber(t)?h.True:Me(t)?Fe(e,t):p.IsObject(t)?Ye(e,t):p.IsRecord(t)?St(e,t):h.False}function Ma(e,t){return t.allOf.every(r=>se(e,r)===h.True)?h.True:h.False}function wb(e,t){return e.allOf.some(r=>se(r,t)===h.True)?h.True:h.False}function Sb(e,t){return Me(t)?Fe(e,t):p.IsIterator(t)?wt(se(e.items,t.items)):h.False}function vb(e,t){return p.IsLiteral(t)&&t.const===e.const?h.True:Me(t)?Fe(e,t):p.IsObject(t)?Ye(e,t):p.IsRecord(t)?St(e,t):p.IsString(t)?Y0(e,t):p.IsNumber(t)?X0(e,t):p.IsInteger(t)?W0(e,t):p.IsBoolean(t)?$0(e,t):h.False}function z0(e,t){return h.False}function Nb(e,t){return h.True}function j0(e){let[t,r]=[e,0];for(;p.IsNot(t);)t=t.not,r+=1;return r%2===0?t:kr()}function Ab(e,t){return p.IsNot(e)?se(j0(e),t):p.IsNot(t)?se(e,j0(t)):Cn("Invalid fallthrough for Not")}function Cb(e,t){return Me(t)?Fe(e,t):p.IsObject(t)?Ye(e,t):p.IsRecord(t)?St(e,t):p.IsNull(t)?h.True:h.False}function X0(e,t){return p.IsLiteralNumber(e)||p.IsNumber(e)||p.IsInteger(e)?h.True:h.False}function Rb(e,t){return Me(t)?Fe(e,t):p.IsObject(t)?Ye(e,t):p.IsRecord(t)?St(e,t):p.IsInteger(t)||p.IsNumber(t)?h.True:h.False}function ot(e,t){return Object.getOwnPropertyNames(e.properties).length===t}function V0(e){return Fa(e)}function G0(e){return ot(e,0)||ot(e,1)&&"description"in e.properties&&p.IsUnion(e.properties.description)&&e.properties.description.anyOf.length===2&&(p.IsString(e.properties.description.anyOf[0])&&p.IsUndefined(e.properties.description.anyOf[1])||p.IsString(e.properties.description.anyOf[1])&&p.IsUndefined(e.properties.description.anyOf[0]))}function Cs(e){return ot(e,0)}function K0(e){return ot(e,0)}function Ob(e){return ot(e,0)}function Lb(e){return ot(e,0)}function Db(e){return Fa(e)}function kb(e){let t=Tt();return ot(e,0)||ot(e,1)&&"length"in e.properties&&wt(se(e.properties.length,t))===h.True}function Mb(e){return ot(e,0)}function Fa(e){let t=Tt();return ot(e,0)||ot(e,1)&&"length"in e.properties&&wt(se(e.properties.length,t))===h.True}function Fb(e){let t=Wt([Lr()],Lr());return ot(e,0)||ot(e,1)&&"then"in e.properties&&wt(se(e.properties.then,t))===h.True}function Q0(e,t){return se(e,t)===h.False||p.IsOptional(e)&&!p.IsOptional(t)?h.False:h.True}function Ye(e,t){return p.IsUnknown(e)?h.False:p.IsAny(e)?h.Union:p.IsNever(e)||p.IsLiteralString(e)&&V0(t)||p.IsLiteralNumber(e)&&Cs(t)||p.IsLiteralBoolean(e)&&K0(t)||p.IsSymbol(e)&&G0(t)||p.IsBigInt(e)&&Ob(t)||p.IsString(e)&&V0(t)||p.IsSymbol(e)&&G0(t)||p.IsNumber(e)&&Cs(t)||p.IsInteger(e)&&Cs(t)||p.IsBoolean(e)&&K0(t)||p.IsUint8Array(e)&&Db(t)||p.IsDate(e)&&Lb(t)||p.IsConstructor(e)&&Mb(t)||p.IsFunction(e)&&kb(t)?h.True:p.IsRecord(e)&&p.IsString(Os(e))?t[yt]==="Record"?h.True:h.False:p.IsRecord(e)&&p.IsNumber(Os(e))&&ot(t,0)?h.True:h.False}function qb(e,t){return Me(t)?Fe(e,t):p.IsRecord(t)?St(e,t):p.IsObject(t)?(()=>{for(let r of Object.getOwnPropertyNames(t.properties)){if(!(r in e.properties)&&!p.IsOptional(t.properties[r]))return h.False;if(p.IsOptional(t.properties[r]))return h.True;if(Q0(e.properties[r],t.properties[r])===h.False)return h.False}return h.True})():h.False}function Pb(e,t){return Me(t)?Fe(e,t):p.IsObject(t)&&Fb(t)?h.True:p.IsPromise(t)?wt(se(e.item,t.item)):h.False}function Os(e){return Rr in e.patternProperties?Tt():Or in e.patternProperties?qt():Cn("Unknown record key pattern")}function Ls(e){return Rr in e.patternProperties?e.patternProperties[Rr]:Or in e.patternProperties?e.patternProperties[Or]:Cn("Unable to get record value schema")}function St(e,t){let[r,n]=[Os(t),Ls(t)];return p.IsLiteralString(e)&&p.IsNumber(r)&&wt(se(e,n))===h.True?h.True:p.IsUint8Array(e)&&p.IsNumber(r)||p.IsString(e)&&p.IsNumber(r)||p.IsArray(e)&&p.IsNumber(r)?se(e,n):p.IsObject(e)?(()=>{for(let i of Object.getOwnPropertyNames(e.properties))if(Q0(n,e.properties[i])===h.False)return h.False;return h.True})():h.False}function Hb(e,t){return Me(t)?Fe(e,t):p.IsObject(t)?Ye(e,t):p.IsRecord(t)?se(Ls(e),Ls(t)):h.False}function Ub(e,t){let r=p.IsRegExp(e)?qt():e,n=p.IsRegExp(t)?qt():t;return se(r,n)}function Y0(e,t){return p.IsLiteral(e)&&ze.IsString(e.const)||p.IsString(e)?h.True:h.False}function Bb(e,t){return Me(t)?Fe(e,t):p.IsObject(t)?Ye(e,t):p.IsRecord(t)?St(e,t):p.IsString(t)?h.True:h.False}function jb(e,t){return Me(t)?Fe(e,t):p.IsObject(t)?Ye(e,t):p.IsRecord(t)?St(e,t):p.IsSymbol(t)?h.True:h.False}function Vb(e,t){return p.IsTemplateLiteral(e)?se(rn(e),t):p.IsTemplateLiteral(t)?se(e,rn(t)):Cn("Invalid fallthrough for TemplateLiteral")}function Gb(e,t){return p.IsArray(t)&&e.items!==void 0&&e.items.every(r=>se(r,t.items)===h.True)}function Kb(e,t){return p.IsNever(e)?h.True:p.IsUnknown(e)?h.False:p.IsAny(e)?h.Union:h.False}function $b(e,t){return Me(t)?Fe(e,t):p.IsObject(t)&&Fa(t)||p.IsArray(t)&&Gb(e,t)?h.True:p.IsTuple(t)?ze.IsUndefined(e.items)&&!ze.IsUndefined(t.items)||!ze.IsUndefined(e.items)&&ze.IsUndefined(t.items)?h.False:ze.IsUndefined(e.items)&&!ze.IsUndefined(t.items)||e.items.every((r,n)=>se(r,t.items[n])===h.True)?h.True:h.False:h.False}function Wb(e,t){return Me(t)?Fe(e,t):p.IsObject(t)?Ye(e,t):p.IsRecord(t)?St(e,t):p.IsUint8Array(t)?h.True:h.False}function zb(e,t){return Me(t)?Fe(e,t):p.IsObject(t)?Ye(e,t):p.IsRecord(t)?St(e,t):p.IsVoid(t)?Yb(e,t):p.IsUndefined(t)?h.True:h.False}function ks(e,t){return t.anyOf.some(r=>se(e,r)===h.True)?h.True:h.False}function Xb(e,t){return e.anyOf.every(r=>se(r,t)===h.True)?h.True:h.False}function Z0(e,t){return h.True}function Qb(e,t){return p.IsNever(t)?z0(e,t):p.IsIntersect(t)?Ma(e,t):p.IsUnion(t)?ks(e,t):p.IsAny(t)?Ds(e,t):p.IsString(t)?Y0(e,t):p.IsNumber(t)?X0(e,t):p.IsInteger(t)?W0(e,t):p.IsBoolean(t)?$0(e,t):p.IsArray(t)?mb(e,t):p.IsTuple(t)?Kb(e,t):p.IsObject(t)?Ye(e,t):p.IsUnknown(t)?h.True:h.False}function Yb(e,t){return p.IsUndefined(e)||p.IsUndefined(e)?h.True:h.False}function Zb(e,t){return p.IsIntersect(t)?Ma(e,t):p.IsUnion(t)?ks(e,t):p.IsUnknown(t)?Z0(e,t):p.IsAny(t)?Ds(e,t):p.IsObject(t)?Ye(e,t):p.IsVoid(t)?h.True:h.False}function se(e,t){return p.IsTemplateLiteral(e)||p.IsTemplateLiteral(t)?Vb(e,t):p.IsRegExp(e)||p.IsRegExp(t)?Ub(e,t):p.IsNot(e)||p.IsNot(t)?Ab(e,t):p.IsAny(e)?xb(e,t):p.IsArray(e)?hb(e,t):p.IsBigInt(e)?bb(e,t):p.IsBoolean(e)?Eb(e,t):p.IsAsyncIterator(e)?gb(e,t):p.IsConstructor(e)?yb(e,t):p.IsDate(e)?Tb(e,t):p.IsFunction(e)?_b(e,t):p.IsInteger(e)?Ib(e,t):p.IsIntersect(e)?wb(e,t):p.IsIterator(e)?Sb(e,t):p.IsLiteral(e)?vb(e,t):p.IsNever(e)?Nb(e,t):p.IsNull(e)?Cb(e,t):p.IsNumber(e)?Rb(e,t):p.IsObject(e)?qb(e,t):p.IsRecord(e)?Hb(e,t):p.IsString(e)?Bb(e,t):p.IsSymbol(e)?jb(e,t):p.IsTuple(e)?$b(e,t):p.IsPromise(e)?Pb(e,t):p.IsUint8Array(e)?Wb(e,t):p.IsUndefined(e)?zb(e,t):p.IsUnion(e)?Xb(e,t):p.IsUnknown(e)?Qb(e,t):p.IsVoid(e)?Zb(e,t):Cn(`Unknown left type operand '${e[y]}'`)}function Mr(e,t){return se(e,t)}function Jb(e,t,r,n,i){let s={};for(let c of globalThis.Object.getOwnPropertyNames(e))s[c]=Rn(e[c],t,r,n,me(i));return s}function eE(e,t,r,n,i){return Jb(e.properties,t,r,n,i)}function J0(e,t,r,n,i){let s=eE(e,t,r,n,i);return K(s)}function tE(e,t,r,n){let i=Mr(e,t);return i===h.Union?J([r,n]):i===h.True?r:n}function Rn(e,t,r,n,i){return he(e)?J0(e,t,r,n,i):ft(e)?m(ef(e,t,r,n,i)):m(tE(e,t,r,n),i)}function rE(e,t,r,n,i){return{[e]:Rn(X(e),t,r,n,me(i))}}function nE(e,t,r,n,i){return e.reduce((s,c)=>({...s,...rE(c,t,r,n,i)}),{})}function iE(e,t,r,n,i){return nE(e.keys,t,r,n,i)}function ef(e,t,r,n,i){let s=iE(e,t,r,n,i);return K(s)}function tf(e,t){return On(rn(e),t)}function aE(e,t){let r=e.filter(n=>Mr(n,t)===h.False);return r.length===1?r[0]:J(r)}function On(e,t,r={}){return pt(e)?m(tf(e,t),r):he(e)?m(rf(e,t),r):m(V(e)?aE(e.anyOf,t):Mr(e,t)!==h.False?G():e,r)}function oE(e,t){let r={};for(let n of globalThis.Object.getOwnPropertyNames(e))r[n]=On(e[n],t);return r}function sE(e,t){return oE(e.properties,t)}function rf(e,t){let r=sE(e,t);return K(r)}function nf(e,t){return Ln(rn(e),t)}function cE(e,t){let r=e.filter(n=>Mr(n,t)!==h.False);return r.length===1?r[0]:J(r)}function Ln(e,t,r){return pt(e)?m(nf(e,t),r):he(e)?m(af(e,t),r):m(V(e)?cE(e.anyOf,t):Mr(e,t)!==h.False?e:G(),r)}function uE(e,t){let r={};for(let n of globalThis.Object.getOwnPropertyNames(e))r[n]=Ln(e[n],t);return r}function lE(e,t){return uE(e.properties,t)}function af(e,t){let r=lE(e,t);return K(r)}function of(e,t){return Dt(e)?m(e.returns,t):G(t)}function qa(e){return at(Xe(e))}function nn(e,t,r){return m({[y]:"Record",type:"object",patternProperties:{[e]:t}},r)}function Ms(e,t,r){let n={};for(let i of e)n[i]=t;return oe(n,{...r,[yt]:"Record"})}function fE(e,t,r){return T0(e)?Ms(it(e),t,r):nn(e.pattern,t,r)}function pE(e,t,r){return Ms(it(J(e)),t,r)}function dE(e,t,r){return Ms([e.toString()],t,r)}function xE(e,t,r){return nn(e.source,t,r)}function mE(e,t,r){let n=Re(e.pattern)?Or:e.pattern;return nn(n,t,r)}function hE(e,t,r){return nn(Or,t,r)}function gE(e,t,r){return nn(d0,t,r)}function bE(e,t,r){return oe({true:t,false:t},r)}function EE(e,t,r){return nn(Rr,t,r)}function yE(e,t,r){return nn(Rr,t,r)}function Pa(e,t,r={}){return V(e)?pE(e.anyOf,t,r):pt(e)?fE(e,t,r):lt(e)?dE(e.const,t,r):sr(e)?bE(e,t,r):Mt(e)?EE(e,t,r):Ft(e)?yE(e,t,r):xs(e)?xE(e,t,r):cr(e)?mE(e,t,r):ps(e)?hE(e,t,r):Ar(e)?gE(e,t,r):G(r)}function Ha(e){return globalThis.Object.getOwnPropertyNames(e.patternProperties)[0]}function sf(e){let t=Ha(e);return t===Or?qt():t===Rr?Tt():qt({pattern:t})}function Ua(e){return e.patternProperties[Ha(e)]}function TE(e,t){return t.parameters=wi(e,t.parameters),t.returns=Pt(e,t.returns),t}function _E(e,t){return t.parameters=wi(e,t.parameters),t.returns=Pt(e,t.returns),t}function IE(e,t){return t.allOf=wi(e,t.allOf),t}function wE(e,t){return t.anyOf=wi(e,t.anyOf),t}function SE(e,t){return Re(t.items)||(t.items=wi(e,t.items)),t}function vE(e,t){return t.items=Pt(e,t.items),t}function NE(e,t){return t.items=Pt(e,t.items),t}function AE(e,t){return t.items=Pt(e,t.items),t}function CE(e,t){return t.item=Pt(e,t.item),t}function RE(e,t){let r=kE(e,t.properties);return{...t,...oe(r)}}function OE(e,t){let r=Pt(e,sf(t)),n=Pt(e,Ua(t)),i=Pa(r,n);return{...t,...i}}function LE(e,t){return t.index in e?e[t.index]:kr()}function DE(e,t){let r=En(t),n=nt(t),i=Pt(e,t);return r&&n?qa(i):r&&!n?at(i):!r&&n?Xe(i):i}function kE(e,t){return globalThis.Object.getOwnPropertyNames(t).reduce((r,n)=>({...r,[n]:DE(e,t[n])}),{})}function wi(e,t){return t.map(r=>Pt(e,r))}function Pt(e,t){return Dt(t)?TE(e,t):kt(t)?_E(e,t):Ee(t)?IE(e,t):V(t)?wE(e,t):dt(t)?SE(e,t):Ot(t)?vE(e,t):Qr(t)?NE(e,t):Zr(t)?AE(e,t):Jr(t)?CE(e,t):Oe(t)?RE(e,t):en(t)?OE(e,t):ds(t)?LE(e,t):t}function cf(e,t){return Pt(t,bn(e))}function uf(e){return m({[y]:"Integer",type:"integer"},e)}function ME(e,t,r){return{[e]:Ht(X(e),t,me(r))}}function FE(e,t,r){return e.reduce((i,s)=>({...i,...ME(s,t,r)}),{})}function qE(e,t,r){return FE(e.keys,t,r)}function lf(e,t,r){let n=qE(e,t,r);return K(n)}function PE(e){let[t,r]=[e.slice(0,1),e.slice(1)];return[t.toLowerCase(),r].join("")}function HE(e){let[t,r]=[e.slice(0,1),e.slice(1)];return[t.toUpperCase(),r].join("")}function UE(e){return e.toUpperCase()}function BE(e){return e.toLowerCase()}function jE(e,t,r){let n=wn(e.pattern);if(!tn(n))return{...e,pattern:ff(e.pattern,t)};let c=[...yi(n)].map(T=>X(T)),d=pf(c,t),b=J(d);return va([b],r)}function ff(e,t){return typeof e=="string"?t==="Uncapitalize"?PE(e):t==="Capitalize"?HE(e):t==="Uppercase"?UE(e):t==="Lowercase"?BE(e):e:e.toString()}function pf(e,t){return e.map(r=>Ht(r,t))}function Ht(e,t,r={}){return ft(e)?lf(e,t,r):pt(e)?jE(e,t,r):V(e)?J(pf(e.anyOf,t),r):lt(e)?X(ff(e.const,t),r):m(e,r)}function df(e,t={}){return Ht(e,"Capitalize",t)}function xf(e,t={}){return Ht(e,"Lowercase",t)}function mf(e,t={}){return Ht(e,"Uncapitalize",t)}function hf(e,t={}){return Ht(e,"Uppercase",t)}function VE(e,t,r){let n={};for(let i of globalThis.Object.getOwnPropertyNames(e))n[i]=Fr(e[i],t,me(r));return n}function GE(e,t,r){return VE(e.properties,t,r)}function gf(e,t,r){let n=GE(e,t,r);return K(n)}function KE(e,t){return e.map(r=>Fs(r,t))}function $E(e,t){return e.map(r=>Fs(r,t))}function WE(e,t){let{[t]:r,...n}=e;return n}function zE(e,t){return t.reduce((r,n)=>WE(r,n),e)}function XE(e,t,r){let n=ye(e,[ke,"$id","required","properties"]),i=zE(r,t);return oe(i,n)}function QE(e){let t=e.reduce((r,n)=>Ta(n)?[...r,X(n)]:r,[]);return J(t)}function Fs(e,t){return Ee(e)?Qe(KE(e.allOf,t)):V(e)?J($E(e.anyOf,t)):Oe(e)?XE(e,t,e.properties):oe({})}function Fr(e,t,r){let n=Ce(t)?QE(t):t,i=xt(t)?it(t):t,s=we(e),c=we(t);return he(e)?gf(e,i,r):ft(t)?bf(e,t,r):s&&c?de("Omit",[e,n],r):!s&&c?de("Omit",[e,n],r):s&&!c?de("Omit",[e,n],r):m({...Fs(e,i),...r})}function YE(e,t,r){return{[t]:Fr(e,[t],me(r))}}function ZE(e,t,r){return t.reduce((n,i)=>({...n,...YE(e,i,r)}),{})}function JE(e,t,r){return ZE(e,t.keys,r)}function bf(e,t,r){let n=JE(e,t,r);return K(n)}function ey(e,t,r){let n={};for(let i of globalThis.Object.getOwnPropertyNames(e))n[i]=qr(e[i],t,me(r));return n}function ty(e,t,r){return ey(e.properties,t,r)}function Ef(e,t,r){let n=ty(e,t,r);return K(n)}function ry(e,t){return e.map(r=>qs(r,t))}function ny(e,t){return e.map(r=>qs(r,t))}function iy(e,t){let r={};for(let n of t)n in e&&(r[n]=e[n]);return r}function ay(e,t,r){let n=ye(e,[ke,"$id","required","properties"]),i=iy(r,t);return oe(i,n)}function oy(e){let t=e.reduce((r,n)=>Ta(n)?[...r,X(n)]:r,[]);return J(t)}function qs(e,t){return Ee(e)?Qe(ry(e.allOf,t)):V(e)?J(ny(e.anyOf,t)):Oe(e)?ay(e,t,e.properties):oe({})}function qr(e,t,r){let n=Ce(t)?oy(t):t,i=xt(t)?it(t):t,s=we(e),c=we(t);return he(e)?Ef(e,i,r):ft(t)?yf(e,t,r):s&&c?de("Pick",[e,n],r):!s&&c?de("Pick",[e,n],r):s&&!c?de("Pick",[e,n],r):m({...qs(e,i),...r})}function sy(e,t,r){return{[t]:qr(e,[t],me(r))}}function cy(e,t,r){return t.reduce((n,i)=>({...n,...sy(e,i,r)}),{})}function uy(e,t,r){return cy(e,t.keys,r)}function yf(e,t,r){let n=uy(e,t,r);return K(n)}function ly(e,t){return de("Partial",[de(e,t)])}function fy(e){return de("Partial",[Xt(e)])}function py(e){let t={};for(let r of globalThis.Object.getOwnPropertyNames(e))t[r]=Xe(e[r]);return t}function dy(e,t){let r=ye(e,[ke,"$id","required","properties"]),n=py(t);return oe(n,r)}function Tf(e){return e.map(t=>_f(t))}function _f(e){return Lt(e)?ly(e.target,e.parameters):we(e)?fy(e.$ref):Ee(e)?Qe(Tf(e.allOf)):V(e)?J(Tf(e.anyOf)):Oe(e)?dy(e,e.properties):Yr(e)||sr(e)||Mt(e)||lt(e)||pi(e)||Ft(e)||cr(e)||di(e)||xi(e)?e:oe({})}function Dn(e,t){return he(e)?If(e,t):m({..._f(e),...t})}function xy(e,t){let r={};for(let n of globalThis.Object.getOwnPropertyNames(e))r[n]=Dn(e[n],me(t));return r}function my(e,t){return xy(e.properties,t)}function If(e,t){let r=my(e,t);return K(r)}function hy(e,t){return de("Required",[de(e,t)])}function gy(e){return de("Required",[Xt(e)])}function by(e){let t={};for(let r of globalThis.Object.getOwnPropertyNames(e))t[r]=ye(e[r],[Ge]);return t}function Ey(e,t){let r=ye(e,[ke,"$id","required","properties"]),n=by(t);return oe(n,r)}function wf(e){return e.map(t=>Sf(t))}function Sf(e){return Lt(e)?hy(e.target,e.parameters):we(e)?gy(e.$ref):Ee(e)?Qe(wf(e.allOf)):V(e)?J(wf(e.anyOf)):Oe(e)?Ey(e,e.properties):Yr(e)||sr(e)||Mt(e)||lt(e)||pi(e)||Ft(e)||cr(e)||di(e)||xi(e)?e:oe({})}function kn(e,t){return he(e)?vf(e,t):m({...Sf(e),...t})}function yy(e,t){let r={};for(let n of globalThis.Object.getOwnPropertyNames(e))r[n]=kn(e[n],t);return r}function Ty(e,t){return yy(e.properties,t)}function vf(e,t){let r=Ty(e,t);return K(r)}function _y(e,t){return t.map(r=>we(r)?Ps(e,r.$ref):mt(e,r))}function Ps(e,t){return t in e?we(e[t])?Ps(e,e[t].$ref):mt(e,e[t]):G()}function Iy(e){return Nn(e[0])}function wy(e){return Dr(e[0],e[1])}function Sy(e){return An(e[0])}function vy(e){return Dn(e[0])}function Ny(e){return Fr(e[0],e[1])}function Ay(e){return qr(e[0],e[1])}function Cy(e){return kn(e[0])}function Ry(e,t,r){let n=_y(e,r);return t==="Awaited"?Iy(n):t==="Index"?wy(n):t==="KeyOf"?Sy(n):t==="Partial"?vy(n):t==="Omit"?Ny(n):t==="Pick"?Ay(n):t==="Required"?Cy(n):G()}function Oy(e,t){return yn(mt(e,t))}function Ly(e,t){return Tn(mt(e,t))}function Dy(e,t,r){return _n(Si(e,t),mt(e,r))}function ky(e,t,r){return Wt(Si(e,t),mt(e,r))}function My(e,t){return Qe(Si(e,t))}function Fy(e,t){return vn(mt(e,t))}function qy(e,t){return oe(globalThis.Object.keys(t).reduce((r,n)=>({...r,[n]:mt(e,t[n])}),{}))}function Py(e,t){let[r,n]=[mt(e,Ua(t)),Ha(t)],i=bn(t);return i.patternProperties[n]=r,i}function Hy(e,t){return we(t)?{...Ps(e,t.$ref),[ke]:t[ke]}:t}function Uy(e,t){return _t(Si(e,t))}function By(e,t){return J(Si(e,t))}function Si(e,t){return t.map(r=>mt(e,r))}function mt(e,t){return nt(t)?m(mt(e,ye(t,[Ge])),t):En(t)?m(mt(e,ye(t,[Rt])),t):Cr(t)?m(Hy(e,t),t):Ot(t)?m(Oy(e,t.items),t):Qr(t)?m(Ly(e,t.items),t):Lt(t)?m(Ry(e,t.target,t.parameters)):Dt(t)?m(Dy(e,t.parameters,t.returns),t):kt(t)?m(ky(e,t.parameters,t.returns),t):Ee(t)?m(My(e,t.allOf),t):Zr(t)?m(Fy(e,t.items),t):Oe(t)?m(qy(e,t.properties),t):en(t)?m(Py(e,t)):dt(t)?m(Uy(e,t.items||[]),t):V(t)?m(By(e,t.anyOf),t):t}function jy(e,t){return t in e?mt(e,e[t]):G()}function Nf(e){return globalThis.Object.getOwnPropertyNames(e).reduce((t,r)=>({...t,[r]:jy(e,r)}),{})}var Hs=class{constructor(t){let r=Nf(t),n=this.WithIdentifiers(r);this.$defs=n}Import(t,r){let n={...this.$defs,[t]:m(this.$defs[t],r)};return m({[y]:"Import",$defs:n,$ref:t})}WithIdentifiers(t){return globalThis.Object.getOwnPropertyNames(t).reduce((r,n)=>({...r,[n]:{...t[n],$id:n}}),{})}};function Af(e){return new Hs(e)}function Cf(e,t){return m({[y]:"Not",not:e},t)}function Rf(e,t){return kt(e)?_t(e.parameters,t):G()}var Vy=0;function Of(e,t={}){Re(t.$id)&&(t.$id=`T${Vy++}`);let r=bn(e({[y]:"This",$ref:`${t.$id}`}));return r.$id=t.$id,m({[yt]:"Recursive",...r},t)}function Lf(e,t){let r=ue(e)?new globalThis.RegExp(e):e;return m({[y]:"RegExp",type:"RegExp",source:r.source,flags:r.flags},t)}function Gy(e){return Ee(e)?e.allOf:V(e)?e.anyOf:dt(e)?e.items??[]:[]}function Df(e){return Gy(e)}function kf(e,t){return kt(e)?m(e.returns,t):G(t)}var Us=class{constructor(t){this.schema=t}Decode(t){return new Bs(this.schema,t)}},Bs=class{constructor(t,r){this.schema=t,this.decode=r}EncodeTransform(t,r){let s={Encode:c=>r[ke].Encode(t(c)),Decode:c=>this.decode(r[ke].Decode(c))};return{...r,[ke]:s}}EncodeSchema(t,r){let n={Decode:this.decode,Encode:t};return{...r,[ke]:n}}Encode(t){return Cr(this.schema)?this.EncodeTransform(t,this.schema):this.EncodeSchema(t,this.schema)}};function Mf(e){return new Us(e)}function Ff(e={}){return m({[y]:e[y]??"Unsafe"},e)}function qf(e){return m({[y]:"Void",type:"void"},e)}var js={};es(js,{Any:()=>Lr,Argument:()=>b0,Array:()=>yn,AsyncIterator:()=>Tn,Awaited:()=>Nn,BigInt:()=>Sn,Boolean:()=>Sa,Capitalize:()=>df,Composite:()=>P0,Const:()=>H0,Constructor:()=>_n,ConstructorParameters:()=>U0,Date:()=>Ca,Enum:()=>B0,Exclude:()=>On,Extends:()=>Rn,Extract:()=>Ln,Function:()=>Wt,Index:()=>Dr,InstanceType:()=>of,Instantiate:()=>cf,Integer:()=>uf,Intersect:()=>Qe,Iterator:()=>vn,KeyOf:()=>An,Literal:()=>X,Lowercase:()=>xf,Mapped:()=>L0,Module:()=>Af,Never:()=>G,Not:()=>Cf,Null:()=>Ra,Number:()=>Tt,Object:()=>oe,Omit:()=>Fr,Optional:()=>Xe,Parameters:()=>Rf,Partial:()=>Dn,Pick:()=>qr,Promise:()=>Aa,Readonly:()=>at,ReadonlyOptional:()=>qa,Record:()=>Pa,Recursive:()=>Of,Ref:()=>Xt,RegExp:()=>Lf,Required:()=>kn,Rest:()=>Df,ReturnType:()=>kf,String:()=>qt,Symbol:()=>Oa,TemplateLiteral:()=>va,Transform:()=>Mf,Tuple:()=>_t,Uint8Array:()=>Da,Uncapitalize:()=>mf,Undefined:()=>La,Union:()=>J,Unknown:()=>kr,Unsafe:()=>Ff,Uppercase:()=>hf,Void:()=>qf});var A=js;import*as fh from"node:path";var Pf=ts(xg(),1);import Vs from"node:process";import{PassThrough as Ky}from"node:stream";var $y=Vs.platform==="win32"?["APPDATA","HOMEDRIVE","HOMEPATH","LOCALAPPDATA","PATH","PROCESSOR_ARCHITECTURE","SYSTEMDRIVE","SYSTEMROOT","TEMP","USERNAME","USERPROFILE","PROGRAMFILES"]:["HOME","LOGNAME","PATH","SHELL","TERM","USER"];function Wy(){let e={};for(let t of $y){let r=Vs.env[t];r!==void 0&&(r.startsWith("()")||(e[t]=r))}return e}var Ba=class{constructor(t){this._readBuffer=new ul,this._stderrStream=null,this._serverParams=t,(t.stderr==="pipe"||t.stderr==="overlapped")&&(this._stderrStream=new Ky)}async start(){if(this._process)throw new Error("StdioClientTransport already started! If using Client class, note that connect() calls start() automatically.");return new Promise((t,r)=>{this._process=(0,Pf.default)(this._serverParams.command,this._serverParams.args??[],{env:{...Wy(),...this._serverParams.env},stdio:["pipe","pipe",this._serverParams.stderr??"inherit"],shell:!1,windowsHide:Vs.platform==="win32",cwd:this._serverParams.cwd}),this._process.on("error",n=>{r(n),this.onerror?.(n)}),this._process.on("spawn",()=>{t()}),this._process.on("close",n=>{this._process=void 0,this.onclose?.()}),this._process.stdin?.on("error",n=>{this.onerror?.(n)}),this._process.stdout?.on("data",n=>{this._readBuffer.append(n),this.processReadBuffer()}),this._process.stdout?.on("error",n=>{this.onerror?.(n)}),this._stderrStream&&this._process.stderr&&this._process.stderr.pipe(this._stderrStream)})}get stderr(){return this._stderrStream?this._stderrStream:this._process?.stderr??null}get pid(){return this._process?.pid??null}processReadBuffer(){for(;;)try{let t=this._readBuffer.readMessage();if(t===null)break;this.onmessage?.(t)}catch(t){this.onerror?.(t)}}async close(){if(this._process){let t=this._process;this._process=void 0;let r=new Promise(n=>{t.once("close",()=>{n()})});try{t.stdin?.end()}catch{}if(await Promise.race([r,new Promise(n=>setTimeout(n,2e3).unref())]),t.exitCode===null){try{t.kill("SIGTERM")}catch{}await Promise.race([r,new Promise(n=>setTimeout(n,2e3).unref())])}if(t.exitCode===null)try{t.kill("SIGKILL")}catch{}}this._readBuffer.clear()}send(t){return new Promise(r=>{if(!this._process?.stdin)throw new Error("Not connected");let n=ll(t);this._process.stdin.write(n)?r():this._process.stdin.once("drain",r)})}};var ja=class e{constructor(){this._messageQueue=[]}static createLinkedPair(){let t=new e,r=new e;return t._otherTransport=r,r._otherTransport=t,[t,r]}async start(){for(;this._messageQueue.length>0;){let t=this._messageQueue.shift();this.onmessage?.(t.message,t.extra)}}async close(){let t=this._otherTransport;this._otherTransport=void 0,await t?.close(),this.onclose?.()}async send(t,r){if(!this._otherTransport)throw new Error("Not connected");this._otherTransport.onmessage?this._otherTransport.onmessage(t,{authInfo:r?.authInfo}):this._otherTransport._messageQueue.push({message:t,extra:{authInfo:r?.authInfo}})}};function Uf(e){return!!e&&e.startsWith("slack:")}function Bf(e){return!!e&&e.startsWith("feishu:")}function jf(e){return!!e&&e.startsWith("web:")}var zy=new Set(["image/png","image/jpeg","image/gif","image/webp"]);function Xy(e){if(!e)return null;let t=e.split(";")[0]?.trim().toLowerCase();if(!t)return null;let r=t==="image/jpg"?"image/jpeg":t;return zy.has(r)?r:null}function Hf(e,t){let r=Xy(t);return!r||typeof e!="string"||e.length===0?null:{type:"image",data:e,mimeType:r}}function Vf(e){if(e.type==="text"&&typeof e.text=="string")return{type:"text",text:e.text};if(e.type==="image"){let t=Hf(e.data,e.mimeType);if(t)return t;let r=typeof e.data=="string"?e.data.length:0;return{type:"text",text:`[Image: mimeType=${e.mimeType??"unknown"}, base64(${r} chars)]`}}if(e.type==="resource"&&e.resource){let t=e.resource;if(typeof t.text=="string")return{type:"text",text:t.text};if(typeof t.blob=="string"){let r=Hf(t.blob,t.mimeType);return r||{type:"text",text:`[Binary resource: uri=${t.uri??"unknown"}, mimeType=${t.mimeType??"unknown"}]`}}}return{type:"text",text:JSON.stringify(e)}}import{createHash as Qy}from"node:crypto";var Gf=/[^A-Za-z0-9_-]+/g,Yy=/[^a-z0-9]+/g,Kf=64,Zy=10,$f="_",Wf=/^[0-9A-Za-z][0-9A-Za-z._-]{0,63}$/;function Jy(e){return Qy("sha256").update(e,"utf8").digest("hex").slice(0,Zy)}function Va(e,t,r){return e.replace(t,r).replace(new RegExp(`${r}+`,"g"),r)}function vi(e,t){return e.replace(new RegExp(`^${t}+|${t}+$`,"g"),"")}function Gs(e,t,r){let n=`${r}${Jy(t)}`,i=Kf-n.length;return`${e.slice(0,Math.max(1,i))}${n}`}function zf(e,t){return e!==t||e.length>Kf}function Xf(e,t="plugin"){let r=vi(Va(e,Gf,"_"),"_")||t;return zf(r,e)?Gs(r,e,$f):r}function Qf(e,t="plugin"){let r=e.map(i=>vi(Va(i,Gf,"_"),"_")||"part"),n=vi([t,...r].join("_"),"_")||t;return Gs(n,JSON.stringify({prefix:t,parts:[...e]}),$f)}function eT(e){let t=vi(Va(e.toLowerCase(),Yy,"-"),"-")||"plugin";return/^[a-z]/.test(t)?t:`plugin-${t}`}function WM(e){let t=eT(e);return zf(t,e)?Gs(t,e,"-"):t}function tT(e){let t=vi(Va(e.toLowerCase(),/[^a-z0-9._-]+/g,"-"),"-");return Wf.test(t)?t:void 0}function zM(e){let t=e?.trim();if(t)return Wf.test(t)?t:tT(t)}function Ks(e){let t=e.CORTEX_PI_ALLOWED_TOOLS?.trim();return t?new Set(t.split(",").map(r=>r.trim()).filter(Boolean)):null}function Ga(e){let t=Ks(e);return e.CORTEX_PI_SUBAGENT!=="1"&&(t===null||t.has("Agent"))}var rT=Ku("pi-mcp-bridge"),Zf={stdio:e=>new Ba(e),streamableHttp:(e,t)=>new fl(e,t),sse:(e,t)=>new pl(e,t)};function nT(e){return{...e,SLACK_BOT_TOKEN:e.SLACK_BOT_TOKEN||"",SLACK_CHANNEL:e.SLACK_CHANNEL||"",FEISHU_CHANNEL:e.FEISHU_CHANNEL||""}}function iT(e,t){let r=nT(t),n=rs(t[ha]),i=$u(n?[...n]:void 0,e);return r[ha]=JSON.stringify(i),r}function Jf(e,t){return{name:e,source:t,handle:null,registered:!1,registeredToolNames:new Set}}function aT(e){let t=e.SLACK_CHANNEL;return[[!0,"cortex-ext"],[Uf(t),"cortex-slack"],[Bf(t),"cortex-feishu"],[jf(t),"cortex-web"]].filter(([n])=>n).map(([,n])=>n)}function oT(e,t){let r=[],n=new Set,i=e.slice().sort((s,c)=>s.name.localeCompare(c.name));for(let s of i){let c=uT(s.name);if(n.has(c)){t(`Duplicate MCP server state name: ${c}`);continue}n.add(c),r.push(Jf(c,{kind:"plugin",config:s}))}return r}function sT(e,t=[],r=()=>{}){let n=e[rl];if(n==="none")return rs(e[ha]),[];let i=["cortex-core"];e.CORTEX_PI_SUBAGENT!=="1"&&(n==="direct"&&e[nl]==="1"&&i.push("cortex-interaction-bridge"),n==="direct"&&e[il]==="1"&&i.push("cortex-workers"),n==="direct"&&e[al]==="1"&&i.push("cortex-worker-report"),i.push(...aT(e)));let s=[Jf("core",{kind:"bundled",bundles:i,env:iT(i,e)})];return e.CORTEX_PI_SUBAGENT!=="1"&&s.push(...oT(t,r)),s}function Ka(e,t,r){let n=r instanceof Error?r.message:String(r);return new Error(`MCP server ${e} ${t} failed: ${n}`,{cause:r})}function cT(e){let t=e instanceof Error?e.message:String(e);rT.warn(`MCP setup failed; will retry on next turn: ${t}`)}function uT(e){return Xf(`plugin_server_${e}`,"plugin_server")}function lT(e,t){return Qf([e,t],"plugin_tool")}function fT(e,t){return e.source.kind==="bundled"?t:lT(e.name,t)}var pT=dl;function dT(e,t=Zf,r=process.env){if(e.type==="stdio")return t.stdio({command:e.command,args:[...e.args],env:{...r,...e.env},cwd:e.cwd,stderr:"pipe"});let n={...e.headers},i=pT(n);return e.type==="streamable-http"?t.streamableHttp(new URL(e.url),{requestInit:{headers:n},fetch:i}):t.sse(new URL(e.url),{fetch:i,eventSourceInit:{fetch:i},requestInit:{headers:n}})}async function xT(e,t,r,n){let i=await n(t,r),[s,c]=ja.createLinkedPair(),d=new as({name:`pi-mcp-bridge-${e.name}`,version:"1.0.0"});await i.connect(c);try{await d.connect(s)}catch(b){try{await i.close()}catch{}throw b}return{client:d,transport:{close:async()=>{try{await s.close()}finally{await i.close()}}}}}async function mT(e,t,r){let n=dT(t,Zf,r),i=new as({name:`pi-mcp-bridge-${e.name}`,version:"1.0.0"});try{return await i.connect(n),{client:i,transport:n}}catch(s){try{await n.close()}catch{}throw s}}function ep(e,t=[],r){return{env:e,pluginServers:t,spawnClient:n=>n.source.kind!=="bundled"?mT(n,n.source.config,e):r?xT(n,n.source.bundles,n.source.env,r):Promise.reject(new Error("Cortex MCP bundles are unavailable in this session.")),reportFailure:cT}}var $s=class{pi;deps;states=null;registeredNames=new Map;constructor(t,r){this.pi=t,this.deps=r}install(){this.pi.on("before_agent_start",async()=>this.beforeAgentStart()),this.pi.on("session_shutdown",async()=>this.shutdown())}resolveStates(){return this.states?this.states:(this.states=sT(this.deps.env,this.deps.pluginServers??[],t=>this.deps.reportFailure(new Error(t))),this.states)}resolveStatesSafely(){try{return this.resolveStates()}catch(t){return this.deps.reportFailure(t),null}}async discoverState(t){if(t.registered)return{state:t,status:"skip"};try{await this.connect(t);let r=await this.listTools(t);return{state:t,status:"ready",tools:r}}catch(r){return{state:t,status:"failed",failure:r}}}finalizeDiscovery(t){if(t.status!=="skip"){if(t.status==="failed"){this.deps.reportFailure(t.failure);return}try{this.registerDiscoveredTools(t.state,t.tools)}catch(r){this.deps.reportFailure(r)}}}async beforeAgentStart(){let t=this.resolveStatesSafely();if(!t)return;let r=t.map(n=>this.discoverState(n));for(let n of r)this.finalizeDiscovery(await n)}async connect(t){if(!t.handle)try{t.handle=await this.deps.spawnClient(t)}catch(r){throw Ka(t.name,"connect",r)}}async listTools(t){if(!t.handle)throw new Error(`MCP server ${t.name} is not connected`);try{let{tools:r}=await t.handle.client.listTools();return r}catch(r){throw Ka(t.name,"list tools",r)}}discoveredTools(t,r){let n=new Map;for(let i of r){let s=fT(t,i.name);if(n.has(s))throw Ka(t.name,"register tools",new Error(`Duplicate MCP tool name: ${s}`));n.set(s,i)}return n}toolOwnedElsewhere(t,r){let n=this.registeredNames.get(r);return!!(n&&n!==t.name)}registerNewTool(t,r,n){try{this.registerTool(t,r,n)}catch(i){throw Ka(t.name,"register tools",i)}t.registeredToolNames.add(r),this.registeredNames.set(r,t.name)}registerDiscoveredTool(t,r,n){this.toolOwnedElsewhere(t,r)||t.registeredToolNames.has(r)||this.registerNewTool(t,r,n)}registerDiscoveredTools(t,r){for(let[n,i]of this.discoveredTools(t,r))this.registerDiscoveredTool(t,n,i);t.registered=!0}toolDescription(t,r){let n=r.description??"";return t.source.kind==="bundled"&&r.name==="worker_spawn"&&Ga(this.deps.env)?el(n):n}registerTool(t,r,n){if(!t.handle)throw new Error(`MCP server ${t.name} is not connected`);let i=A.Unsafe(n.inputSchema),s=t.handle;this.pi.registerTool({name:r,label:r,description:this.toolDescription(t,n),parameters:i,async execute(c,d,b){let T=await s.client.callTool({name:n.name,arguments:d},void 0,{...b?{signal:b}:{},timeout:183e4,maxTotalTimeout:183e4}),S=T.content.map(Vf);if(T.isError){let ce=S.map(fe=>fe.type==="text"?fe.text:"").filter(Boolean).join(`
|
|
88
|
-
`);throw new Error(ce||`${r} failed`)}return{content:S,details:void 0}}})}async shutdown(){let t=this.states??[];this.registeredNames.clear();for(let r of t){if(r.registered=!1,r.registeredToolNames.clear(),r.handle)try{await r.handle.transport.close()}catch{}r.handle=null}}};async function tp(e,t){new $s(e,t).install()}var hT="openai-codex",gT=["primary","secondary"];function bT(e){let t=new Map;for(let[r,n]of Object.entries(e))t.set(r.toLowerCase(),n);return t}function $a(e,t){let r=e.get(t);if(r===void 0||r.trim()==="")return null;let n=Number(r);return Number.isFinite(n)?n:null}function ET(e,t,r){let n=$a(e,`x-codex-${t}-reset-at`);if(n!==null&&n>0)return n;let i=$a(e,`x-codex-${t}-reset-after-seconds`);return i===null?null:Math.floor(r/1e3)+i}function yT(e,t,r){let n=$a(e,`x-codex-${t}-window-minutes`);if(n===null||n<=0)return null;let i=$a(e,`x-codex-${t}-used-percent`);if(i===null||i<0||i>100)return null;let s=ET(e,t,r);return s===null?null:{type:`codex_${t}`,utilization:i/100,resetsAt:s}}function rp(e,t){let r=bT(e),n=[];for(let i of gT){let s=yT(r,i,t.nowMs);s&&n.push(s)}return n.length===0?null:{provider:hT,planType:r.get("x-codex-plan-type")??null,windows:n}}function TT(e){let t=e?.headers;return t&&typeof t=="object"&&!Array.isArray(t)?t:null}function np(e){return t=>{t.on("after_provider_response",r=>{try{let n=TT(r);if(!n)return;let i=rp(n,{nowMs:Date.now()});i&&e(i)}catch{}})}}function Wa(e){return e!==null&&typeof e=="object"?e:void 0}function _T(e){let t=Wa(e);if(t?.type!=="tool_result"||!Array.isArray(t.content))return;let r=[],n=[];for(let i of t.content)(Wa(i)?.type==="image"?r:n).push(i);r.length&&(t.content=[...r,...n])}function ip(e){e.on("before_provider_request",(t,r)=>{if(r.model?.api!=="anthropic-messages")return;let n=Wa(t.payload)?.messages;if(Array.isArray(n)){for(let i of n){let s=Wa(i)?.content;Array.isArray(s)&&s.forEach(_T)}return t.payload}})}function Mn(e){return e.stopReason==="error"||e.stopReason==="aborted"}function ap(e){return e.stopReason==="aborted"?"killed":Mn(e)?"failed":"completed"}function op(e){return Mn(e)?e.errorMessage||e.output||"(no output)":e.output||"(no output)"}function sp(e,t){return{description:e.description,prompt:e.prompt,subagentType:e.subagent_type,output:"",usage:ml(),backend:e.backend,stopReason:"error",errorMessage:t instanceof Error?t.message:String(t)}}async function wT(e,t,r){let n=new Array(e.length),i=0,s=async()=>{for(;;){let d=i++;if(d>=e.length)return;n[d]=await r(e[d],d)}},c=Array.from({length:Math.min(t,e.length)},s);return await Promise.all(c),n}async function ST(e,t,r,n){return wT(e,8,(i,s)=>t(i,s,r,n?.forChild(s,i)))}async function vT(e,t,r,n){let i=[],s="",c=0;for(let d of e){let b={...d,prompt:d.prompt.replace(/\{previous\}/g,s)},T=await t(b,c,r,n?.forChild(c,b));if(c++,i.push(T),Mn(T))break;s=T.output}return i}function NT(e){let t=e.filter(n=>!Mn(n)).length,r=e.map(n=>{let i=Mn(n)?"failed":"completed";return`### [${n.description}] ${i}
|
|
89
|
-
|
|
90
|
-
${op(n)}`});return`Parallel: ${t}/${e.length} succeeded
|
|
91
|
-
|
|
92
|
-
${r.join(`
|
|
93
|
-
|
|
94
|
-
---
|
|
95
|
-
|
|
96
|
-
`)}`}function Ws(e,t){let r={mode:e,results:t,usage:hl(t)};if(e==="parallel")return{content:[{type:"text",text:NT(t)}],details:r};let n=t.at(-1);return{content:[{type:"text",text:(n&&Mn(n)?"Agent failed: ":"")+(n?op(n):"(no output)")}],details:r}}async function cp(e,t,r,n){if(e.mode==="parallel")return Ws("parallel",await ST(e.tasks,t,r,n));if(e.mode==="chain")return Ws("chain",await vT(e.tasks,t,r,n));let i=e.tasks[0],s=await t(i,0,r,n?.forChild(0,i));return Ws("single",[s])}function AT(e){let t=e?.trim();if(!t)return{};let r=t.lastIndexOf(":"),n=r>0&&t.slice(r+1).trim()||void 0,i=r>0?t.slice(0,r):t,s=i.indexOf("/");return s<0?{model:i||void 0,thinking:n}:{provider:i.slice(0,s)||void 0,model:i.slice(s+1)||void 0,thinking:n}}function up(e,t,r){let n=AT(e.model?.trim()||t.model?.trim());return n.model?n:r?.model?{model:r.model,...r.provider?{provider:r.provider}:{}}:{}}import{existsSync as CT}from"node:fs";function lp(e,t){return{...e,tasks:e.tasks.map(r=>RT(r,t))}}function RT(e,t){let r=(e.files??[]).map(i=>{let s=El(i,t.cwd);if(!CT(s))throw new Error(`Agent task file not found: ${i}`);return s});return e.clean===!0||r.length>0||t.parentWorkspace!==null?{...e,clean:!0,...r.length>0?{files:r}:{}}:e}function OT(e){return e.replace(/[^A-Za-z0-9_-]/g,"").slice(0,32)||"run"}async function fp(e,t){if(!e.clean)return null;let r=t.parentWorkspace??gl(`sub-${OT(t.runId)}-${t.index}`);for(let n of e.files??[])await bl(r,n);return r}function pp(e,t){if(!t)return e;let r=`Workspace: ${t}`;return{...e,output:e.output?`${e.output}
|
|
97
|
-
|
|
98
|
-
${r}`:r}}function xp(e){return{model:A.Optional(A.String({description:e.model})),backend:A.Optional(A.Union([A.Literal("claude"),A.Literal("pi")],{description:e.backend})),clean:A.Optional(A.Boolean({description:zu})),files:A.Optional(A.Array(A.String(),{description:Xu}))}}function LT(e){let t=A.Object({description:A.String({description:"Short description of the delegated task."}),prompt:A.String({description:"Complete task prompt for the subagent."}),subagent_type:A.String({description:e.subagentType}),...xp(e)});return A.Object({description:A.Optional(A.String({description:"Short description for single mode."})),prompt:A.Optional(A.String({description:"Complete prompt for single mode."})),subagent_type:A.Optional(A.String({description:e.subagentTypeSingle})),...xp(e),parallel:A.Optional(A.Array(t,{minItems:1,maxItems:8,description:"Tasks to execute concurrently."})),chain:A.Optional(A.Array(t,{minItems:1,maxItems:8,description:"Tasks to execute sequentially; {previous} inserts the prior output."})),run_in_background:A.Optional(A.Boolean({description:"Return agent_id immediately; results arrive later. Default: wait for completion."}))})}var DT=A.Object({agent_id:A.String({description:"The agent_id returned when the subagent was started."})});function kT(e,t){if(!(!e.onUsage||!t.provider||t.usage.turns===0))try{e.onUsage({provider:t.provider,model:t.model??"",usage:t.usage,description:t.description})}catch{}}function MT(e){return e.model?{id:e.model.id,provider:e.model.provider}:null}function FT(e,t){return e.backend??t.backend??"pi"}function qT(e,t,r,n){return(i,s,c,d)=>{let b=is(r,i.subagent_type),T=FT(i,b),S=`${n}#${s}`;return PT(t,i,T,S,c,async()=>{let fe=i.clean?await fp(i,{parentWorkspace:e.parentWorkspace,runId:n,index:s}):null,f={cwd:fe??e.cwd,workspace:fe},Be=T==="pi"?await yl({task:i,role:b,...f,agentDir:t.agentDir,parentEnv:t.parentEnv,model:up(i,b,e.model&&{model:e.model.id,provider:e.model.provider}),createSession:t.createSession,childExtensions:t.childExtensions,signal:c,forward:d}):await HT(e,t,{task:i,role:b,backend:T,ref:S,...f},c);return pp(Be,fe)})}}async function PT(e,t,r,n,i,s){let c=d=>{try{e.onEvent?.(tl(n,t,r,d))}catch{}};try{let d=await s();return r==="pi"&&kT(e,d),c(i?.aborted?"killed":ap(d)),d}catch(d){if(c(i?.aborted?"killed":"failed"),i?.aborted)throw d;return sp(t,d)}}function HT(e,t,r,n){if(!t.runForeignSubagent)throw new Error(`Delegating to the ${r.backend} backend is unavailable in this session.`);let i=e.model;return t.runForeignSubagent({...r,parent:{backend:"pi",model:i?.id??null,provider:i?.provider??null,env:t.parentEnv},signal:n,onNotice:t.onEvent})}function zs(e){return{content:[{type:"text",text:e}],details:void 0}}async function UT(e,t,r,n){if(!e.startBackgroundSubagent)throw new Error("run_in_background is unavailable in this session.");let{id:i}=await e.startBackgroundSubagent({invocation:t,toolCallId:n,bindNoticeSink:(s,c)=>({runChild:r({...e,onEvent:s,onUsage:c}),channel:os(n,s,t.mode==="chain")}),sessionId:e.parentEnv.CORTEX_SESSION_ID||null,conduit:e.parentEnv.SLACK_CHANNEL||e.parentEnv.FEISHU_CHANNEL||void 0,project:e.parentEnv.CORTEX_PROJECT||void 0});return zs(`Agent ${i} started in the background. Its result will be delivered to you when it is ready. Stop it early with agent_stop("${i}").`)}function BT(e){return async(t,r,n,i,s)=>{e.ensureRoles();let c=e.parentEnv[ol]||null,d=lp(Qu(r),{cwd:s.cwd,parentWorkspace:c}),b=ga(e.rolesDir);for(let ce of d.tasks)is(b,ce.subagent_type);let T={cwd:s.cwd,model:MT(s),parentWorkspace:c},S=ce=>qT(T,ce,b,t);return r.run_in_background?UT(e,d,S,t):cp(d,S(e),n,os(t,e.onEvent,d.mode==="chain"))}}function mp(e,t={}){let r=Zu(t);return{name:"agent",label:"Agent",description:Wu+r.catalog,parameters:LT(r),execute:BT(e)}}function hp(e){let t=e.stopBackgroundSubagent;return t?{name:"agent_stop",label:"AgentStop",description:"Stop a subagent and discard its output; not for collecting results.",parameters:DT,async execute(r,n){let i=await t(n.agent_id);return zs(i?`Agent ${n.agent_id} is now ${i}.`:`No such agent run: ${n.agent_id}.`)}}:null}var Wm=ts(qm(),1),zm=ts(Gm(),1),Km=5,Xm=3e4,Yw=5*1024*1024,$m=1e5,Zw=`
|
|
99
|
-
|
|
100
|
-
[Content truncated: WebFetch size limit exceeded.]`,Jw=new Set([301,302,303,307,308]),eS=["script","style","noscript","iframe"],tS="[Embedded image omitted]",rS=A.Object({url:A.String({description:"The HTTP or HTTPS URL to fetch."}),prompt:A.Optional(A.String({description:"Compatibility-only; ignored. Returns content without summarizing."}))});function Qm(e){let t;try{t=new URL(e)}catch{throw new Error("WebFetch requires a valid URL.")}if(t.protocol!=="http:"&&t.protocol!=="https:")throw new Error("WebFetch only supports HTTP and HTTPS URLs.");return t}function nS(e){let t=new AbortController,r=!1,n=()=>t.abort(e?.reason);e?.aborted?n():e?.addEventListener("abort",n,{once:!0});let i=setTimeout(()=>{r=!0,t.abort()},Xm);return{signal:t.signal,didTimeout:()=>r,dispose:()=>{clearTimeout(i),e?.removeEventListener("abort",n)}}}function Do(e){e.body?.cancel()?.catch(()=>{})}function iS(e,t){let r=e.headers.get("location");if(!r)throw new Error("WebFetch received a redirect without a Location header.");let n;try{n=new URL(r,t).toString()}catch{throw new Error(`WebFetch received an invalid redirect target: ${r}`)}return Qm(n)}async function aS(e,t){let r=e;for(let n=0;;n+=1){let i=await fetch(r.toString(),{redirect:"manual",signal:t});if(!Jw.has(i.status))return i;if(n>=Km)throw Do(i),new Error(`WebFetch redirect limit exceeded (${Km}).`);try{r=iS(i,r)}finally{Do(i)}}}function Ym(e,t){throw Do(e),new Error(t)}function oS(e,t){let r=t.startsWith("text/")?"text":"binary";return Ym(e,`WebFetch rejected unsupported ${r} content-type: ${t}.`)}function sS(e){let t=e.headers.get("content-type");if(!t)return Ym(e,"WebFetch response is missing Content-Type.");let r=t.split(";",1)[0].trim().toLowerCase();if(r==="text/html")return"html";let n=r==="application/json"||r.startsWith("application/")&&r.endsWith("+json");return r==="text/plain"||n?"text":oS(e,r)}async function cS(e){let t=new TextDecoder,r="",n=0;for(;;){let{done:i,value:s}=await e.read();if(i)return{text:r+t.decode(),truncated:!1};let c=Yw-n;if(s.byteLength>c)return r+=t.decode(s.subarray(0,c),{stream:!0})+t.decode(),await e.cancel().catch(()=>{}),{text:r,truncated:!0};r+=t.decode(s,{stream:!0}),n+=s.byteLength}}async function uS(e){if(!e.body)return{text:"",truncated:!1};let t=e.body.getReader();try{return await cS(t)}finally{t.releaseLock()}}function lS(e){let t=new Wm.default({headingStyle:"atx",bulletListMarker:"-",codeBlockStyle:"fenced"});return t.use(zm.gfm),t.remove([...eS]),t.addRule("embedded-image",{filter:r=>r.nodeName==="IMG"&&/^\s*data:/i.test(r.getAttribute("src")??""),replacement:()=>tS}),t.turndown(e)}function fS(e,t){let r=Array.from(e),n=r.length>$m,i=n?r.slice(0,$m).join(""):e;return t||n?i+Zw:i}async function pS(e,t){let r=Qm(e),n=nS(t);try{let i=await aS(r,n.signal);if(!i.ok)throw Do(i),new Error(`WebFetch HTTP ${i.status} ${i.statusText||"error"}.`);let s=sS(i),c=await uS(i),d=s==="html"?lS(c.text):c.text;return fS(d,c.truncated)}catch(i){throw n.didTimeout()?new Error(`WebFetch timed out after ${Xm} ms.`):i}finally{n.dispose()}}var Zm={name:"web_fetch",label:"WebFetch",description:"Fetch HTTP(S) content locally: HTML as Markdown, JSON/text unchanged. No summarization.",parameters:rS,async execute(e,t,r,n,i){return{content:[{type:"text",text:await pS(t.url,r)}],details:void 0}}};import{randomUUID as dS}from"node:crypto";function Jm(e){let t=e.split(".")[1];if(!t)return null;try{return JSON.parse(Buffer.from(t,"base64url").toString("utf8"))}catch{return null}}function eh(e){let t=[e];for(;t.length>0;){let r=t.shift();if(!r||typeof r!="object")continue;let n=r;if(typeof n.chatgpt_account_id=="string")return n.chatgpt_account_id;t.push(...Object.values(n))}}var xS=3,mS="cortex-agent/pi-web-search",hS=new Set(["response.completed","response.done","response.incomplete"]),th=new Set,gS=A.Object({query:A.String({description:"The search query to run."}),allowed_domains:A.Optional(A.Array(A.String({description:"Only include results from these domains."}))),blocked_domains:A.Optional(A.Array(A.String({description:"Exclude results from these domains."})))});function $i(e,t){return`${e.trim().replace(/\/+$/,"")}${t}`}function rh(e){return`${e.provider}:${e.api}`}function nh(e){return new Error(`WebSearch unavailable for model "${e.id}" (api: ${e.api}); its provider does not expose server-side search for this API.`)}function Wi(e,t,r){let n=new Headers(e.headers);for(let[i,s]of Object.entries(t.headers??{}))n.set(i,s);return n.has("accept")||n.set("accept",r),n.has("content-type")||n.set("content-type","application/json"),n.has("user-agent")||n.set("user-agent",mS),n}function _u(e,t){return t.some(r=>e.has(r))}function bS(e,t){!t||_u(e,["authorization","x-api-key","cf-aig-authorization"])||(t.startsWith("sk-ant-oat")?e.set("authorization",`Bearer ${t}`):e.set("x-api-key",t))}function ih(e,t){!t||_u(e,["authorization","cf-aig-authorization"])||e.set("authorization",`Bearer ${t}`)}function ES(e,t){!t||_u(e,["api-key","authorization"])||e.set("api-key",t)}function ah(e){let t=[`Search the web for: ${e.query}`,"Return a concise answer grounded in the search results and include source URLs."];return e.allowed_domains?.length&&t.push(`Only use these domains: ${e.allowed_domains.join(", ")}`),e.blocked_domains?.length&&t.push(`Do not use these domains: ${e.blocked_domains.join(", ")}`),t.join(`
|
|
101
|
-
`)}function yS(e,t){return{type:"web_search_20250305",name:"web_search",max_uses:xS,...t&&e.allowed_domains?.length?{allowed_domains:e.allowed_domains}:{},...t&&e.blocked_domains?.length?{blocked_domains:e.blocked_domains}:{}}}function oh(e,t,r){return{model:e.id,max_tokens:e.maxTokens,messages:[{role:"user",content:ah(t)}],tools:[yS(t,r)]}}function TS(e,t,r,n){let i=Wi(e,t,"application/json");return bS(i,t.apiKey),i.has("anthropic-version")||i.set("anthropic-version","2023-06-01"),{url:$i(e.baseUrl,"/v1/messages"),init:{method:"POST",headers:i,body:JSON.stringify(oh(e,r,n))},responseType:"anthropic"}}function _S(e,t,r,n){let i=Wi(e,t,"application/json");return ih(i,t.apiKey),i.has("anthropic-version")||i.set("anthropic-version","2023-06-01"),{url:$i(e.baseUrl,"/anthropic/v1/messages"),init:{method:"POST",headers:i,body:JSON.stringify(oh(e,r,n))},responseType:"anthropic"}}function IS(){return{type:"web_search"}}function Iu(e,t){return{model:e.id,input:[{role:"user",content:[{type:"input_text",text:ah(t)}]}],store:!1,stream:!0,tool_choice:"auto",tools:[IS()]}}function wS(e,t,r,n){let i=Wi(e,t,"text/event-stream");return ih(i,t.apiKey),{url:$i(e.baseUrl,"/responses"),init:{method:"POST",headers:i,body:JSON.stringify(Iu(e,r))},responseType:"responses"}}function SS(e,t,r,n){let i=Wi(e,t,"text/event-stream");return ES(i,t.apiKey),{url:$i(e.baseUrl,"/responses"),init:{method:"POST",headers:i,body:JSON.stringify(Iu(e,r))},responseType:"responses"}}function vS(e,t){if(t)return t;let n=(e.get("authorization")??"").replace(/^Bearer\s+/i,"");if(!n)throw new Error("WebSearch authentication did not provide a bearer token.");return n}function NS(e,t){let r=e.get("chatgpt-account-id");if(r)return r;let n=Jm(t);if(n===null)throw new Error("WebSearch could not decode the Codex account token.");let i=eh(n);if(!i)throw new Error("WebSearch could not find an account ID in the Codex token.");return i}function AS(e,t,r,n){let i=Wi(e,t,"text/event-stream"),s=vS(i,t.apiKey),c=dS();i.set("authorization",`Bearer ${s}`),i.set("chatgpt-account-id",NS(i,s)),i.set("openai-beta","responses=experimental"),i.set("originator","pi"),i.set("session-id",c),i.set("x-client-request-id",c);let d={...Iu(e,r),instructions:"Use server-side web search and cite every source URL.",text:{verbosity:"low"},include:["reasoning.encrypted_content"],prompt_cache_key:c,parallel_tool_calls:!0};return{url:$i(e.baseUrl,"/codex/responses"),init:{method:"POST",headers:i,body:JSON.stringify(d)},responseType:"responses"}}var CS={"anthropic-messages":{buildRequest:TS,sendsDomainFields:!0},"openai-responses":{buildRequest:wS,sendsDomainFields:!1},"azure-openai-responses":{buildRequest:SS,sendsDomainFields:!1},"openai-codex-responses":{buildRequest:AS,sendsDomainFields:!1}},RS={buildRequest:_S,sendsDomainFields:!0};function OS(e){return e.provider==="deepseek"&&e.api==="openai-completions"?RS:CS[e.api]??null}function wu(e){let t=new Set,r=[e];for(;r.length>0;){let n=r.shift();if(Array.isArray(n)){r.push(...n);continue}if(!n||typeof n!="object")continue;let i=n;typeof i.url=="string"&&/^https?:\/\//i.test(i.url)&&t.add(i.url),r.push(...Object.values(i))}return[...t]}function LS(e){if(!e||typeof e!="object")return[];let t=e;return typeof t.query=="string"?[t.query]:Array.isArray(t.queries)?t.queries.filter(r=>typeof r=="string"):[]}function Su(e){let t=new Set,r=[e];for(;r.length>0;){let n=r.shift();if(Array.isArray(n)){r.push(...n);continue}if(!n||typeof n!="object")continue;let i=n,s=i.type==="server_tool_use"?i.input:i.type==="web_search_call"?i.action:void 0;for(let c of LS(s))t.add(c);r.push(...Object.values(i))}return[...t]}function DS(e){return(e.match(/https?:\/\/[^\s<>{}\[\]"']+/gi)??[]).map(r=>r.replace(/[),.;:!?]+$/,""))}function kS(e){return Array.isArray(e.content)?e.content.filter(t=>!!t&&typeof t=="object").filter(t=>t.type==="text"&&typeof t.text=="string").map(t=>String(t.text)).join(`
|
|
102
|
-
`):""}function sh(e){let t=[],r=[e];for(;r.length>0;){let n=r.shift();if(Array.isArray(n)){r.push(...n);continue}if(!n||typeof n!="object")continue;let i=n;i.type==="output_text"&&typeof i.text=="string"&&t.push(i.text),r.push(...Object.values(i))}return t}function MS(e){let t=[];for(let r of e.split(/\r?\n/)){if(!r.startsWith("data:"))continue;let n=r.slice(5).trim();if(!(!n||n==="[DONE]"))try{t.push(JSON.parse(n))}catch{throw new Error("WebSearch received malformed provider event data.")}}return t}function ko(e){return e&&typeof e=="object"?e:void 0}function FS(e){let t=ko(e);if(!t)return typeof e=="string"?e:"";let r=ko(t.error)??t,n=typeof r.code=="string"?r.code:"",i=typeof r.message=="string"?r.message:"";if(n||i)return[n,i].filter(Boolean).join(": ");let s=ko(t.incomplete_details);return typeof s?.reason=="string"?s.reason:JSON.stringify(e).slice(0,500)}function Mo(e,t){let r=FS(t);throw new Error(`WebSearch Responses ${e}${r?`: ${r}`:""}`)}function ch(e,t){let r=typeof e.status=="string"?e.status:void 0;r==="completed"&&!e.error||(r||Mo(`${t} has no successful terminal status`,e.error),Mo(`${t} terminal status "${r}"`,e))}function qS(e){e.type==="error"&&Mo("stream error",e),e.type==="response.failed"&&Mo("stream failed",e.response??e)}function PS(e){if(!(typeof e.type!="string"||!hS.has(e.type)))return ko(e.response)??{}}function HS(e){let t;for(let r of e)qS(r),t=PS(r)??t;if(!t)throw new Error("WebSearch Responses stream ended before a terminal response.");ch(t,"stream")}function US(e){HS(e);let t=e.filter(n=>n.type==="response.output_text.delta").map(n=>typeof n.delta=="string"?n.delta:"").join(""),r=sh(e).join(`
|
|
103
|
-
`);return{text:t||r,urls:wu(e),queries:Su(e)}}async function BS(e){let t=await e.json();return{text:kS(t),urls:wu(t),queries:Su(t)}}function jS(e){return e.replace(/^\uFEFF/,"").trimStart()}function VS(e,t){return t.startsWith("event:")||t.startsWith("data:")?!0:t.startsWith("{")||t.startsWith("[")?!1:e.toLowerCase().includes("text/event-stream")}function GS(e){try{return JSON.parse(e)}catch{throw new Error("WebSearch received neither valid SSE nor JSON provider data.")}}async function KS(e){let t=e.headers.get("content-type")??"",r=jS(await e.text());if(VS(t,r))return US(MS(r));let n=GS(r);return ch(n,"JSON payload"),{text:sh(n).join(`
|
|
104
|
-
`),urls:wu(n),queries:Su(n)}}function $S(e,t){let r=/(web[_ -]?search|tools?(?:\.\d+)?\.type)/i.test(t);return e===400&&r&&/unknown variant/i.test(t)}function WS(e,t){return e===400&&/(allowed_domains|blocked_domains)/i.test(t)}function uh(e,t,r){if($S(e,t))throw th.add(rh(r)),nh(r);let n=t.trim().slice(0,500);throw new Error(`WebSearch HTTP ${e}${n?`: ${n}`:""}`)}function zS(e,t){let r=e.text.trim();if(!r)throw new Error("WebSearch unavailable: the provider returned no search result.");let n=[...new Set([...e.urls,...DS(r)])];if(n.length===0)throw new Error("WebSearch provider response did not include a source URL.");let i=[...new Set(e.queries.map(c=>c.trim()).filter(Boolean))];if(i.length===0)throw new Error("WebSearch provider response did not include the executed query.");return`${r}${t?`
|
|
105
|
-
|
|
106
|
-
Domain filtering was applied through the query prompt after provider field rejection.`:""}
|
|
107
|
-
|
|
108
|
-
Queries:
|
|
109
|
-
${i.map(c=>`- ${c}`).join(`
|
|
110
|
-
`)}
|
|
111
|
-
|
|
112
|
-
Sources:
|
|
113
|
-
${n.map(c=>`- ${c}`).join(`
|
|
114
|
-
`)}`}async function XS(e,t){if(!e.modelRegistry)throw new Error("WebSearch unavailable: PI has no model registry.");let r=await e.modelRegistry.getApiKeyAndHeaders(t);if(r.ok===!1)throw new Error(`WebSearch authentication failed: ${r.error}`);return r}async function QS(e,t,r,n){let i=await fetch(e.url,{...e.init,signal:n});if(i.ok)return{response:i,degradedDomains:!1};let s=await i.text();return!t||!WS(i.status,s)?uh(i.status,s,r):{response:await fetch(t.url,{...t.init,signal:n}),degradedDomains:!0}}async function YS(e,t){return t==="anthropic"?BS(e):KS(e)}async function ZS(e,t,r,n){let i=await QS(e,t,r,n);if(!i.response.ok){let c=await i.response.text();return uh(i.response.status,c,r)}let s=await YS(i.response,e.responseType);return zS(s,i.degradedDomains)}function JS(e){return!!e.allowed_domains?.length||!!e.blocked_domains?.length}async function ev(e,t,r){let n=r.model;if(!n)throw new Error("WebSearch unavailable: PI has no active model.");let i=OS(n);if(!i||th.has(rh(n)))throw nh(n);let s=await XS(r,n),c=i.buildRequest(n,s,e,i.sendsDomainFields),d=i.sendsDomainFields&&JS(e)?i.buildRequest(n,s,e,!1):void 0;return ZS(c,d,n,t)}var lh={name:"web_search",label:"WebSearch",description:"Search the web through the active model provider and return a concise answer with source URLs.",parameters:gS,async execute(e,t,r,n,i){return{content:[{type:"text",text:await ev(t,r,i)}],details:void 0}}};var tv=A.Object({todos:A.Array(A.Object({content:A.String({description:"Task description (imperative form)."}),status:A.Union([A.Literal("pending"),A.Literal("in_progress"),A.Literal("completed")]),activeForm:A.String({description:"Present-continuous form shown when the task is in progress."})}))});function rv(e){e.registerTool({name:"todo_write",label:"TodoWrite",description:"Track a multi-step task with a session checklist.",parameters:tv,async execute(t,r){let n=r.todos.length,i=r.todos.filter(c=>c.status==="completed").length,s=r.todos.filter(c=>c.status==="in_progress").length;return{content:[{type:"text",text:`Todos updated: ${n} total, ${i} completed, ${s} in progress.`}],details:void 0}}})}function nv(e,t){let r=Yu({claudeModel:e.CORTEX_CLAUDE_MODEL,subagentClaudeModels:ns(e.CORTEX_SUBAGENT_CLAUDE_MODELS),subagentPiModels:ns(e.CORTEX_SUBAGENT_PI_MODELS)});try{return t.ensureRoles(),{roles:Ju(ga(t.rolesDir)),models:r}}catch{return{models:r}}}function iv(e,t){return[{name:"cortex-image-first",factory:ip},{name:"cortex-mcp-bridge",factory:r=>tp(r,ep(e,[],t))},{name:"cortex-tool-shims",factory:r=>cv(r,e,{openBundledMcpServer:t})}]}function av(e){if(!e.onProviderQuota)return()=>null;let t={name:"cortex-quota-probe",factory:np(e.onProviderQuota)};return(r,n)=>r&&n===r?t:null}function ov(e,t,r){let n=t.PI_CODING_AGENT_DIR??sl,i=null,s=av(r),c={agentDir:n,ensureRoles:()=>cl({legacyDir:fh.join(n,"agents")}),createSession:r.createChildSession??xl,childExtensions:(d,b)=>{let T=iv(d,r.openBundledMcpServer),S=s(i,b);return S?[...T,S]:T},parentEnv:t,onEvent:r.onSubagentEvent,onUsage:r.onSubagentUsage,runForeignSubagent:r.runForeignSubagent,startBackgroundSubagent:r.startBackgroundSubagent,stopBackgroundSubagent:r.stopBackgroundSubagent};e.on("session_start",(d,b)=>{i=b.model?.provider??null,e.registerTool(mp(c,nv(t,c)));let T=hp(c);T&&e.registerTool(T)})}var sv=[["web_fetch","WebFetch",e=>e.registerTool(Zm)],["web_search","WebSearch",e=>e.registerTool(lh)],["todo_write","TodoWrite",rv]];function cv(e,t,r={}){let n=Ks(t),i=s=>n===null||n.has(s);Ga(t)&&ov(e,t,r);for(let[,s,c]of sv)i(s)&&c(e)}export{hT as a,Qf as b,WM as c,zM as d,ep as e,tp as f,np as g,ip as h,ap as i,sp as j,cp as k,AT as l,up as m,lp as n,fp as o,pp as p,Jm as q,eh as r,iv as s,cv as t};
|
|
115
|
-
/*! Bundled license information:
|
|
116
|
-
|
|
117
|
-
@mixmark-io/domino/lib/style_parser.js:
|
|
118
|
-
(**
|
|
119
|
-
* @license
|
|
120
|
-
* Copyright Google LLC All Rights Reserved.
|
|
121
|
-
*
|
|
122
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
123
|
-
* found in the LICENSE file at https://angular.io/license
|
|
124
|
-
*)
|
|
125
|
-
*/
|