@ootc/markdown 0.1.0 → 0.2.0
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/README.md +63 -9
- package/dist/CodeBlock-BquZ4WRk.cjs +2 -0
- package/dist/CodeBlock-DSwq2gw5.js +74 -0
- package/dist/MarkdownPreview-CMvzqhTd.js +7592 -0
- package/dist/MarkdownPreview-DfDx-wep.cjs +29 -0
- package/dist/code.cjs +1 -1
- package/dist/code.js +1 -1
- package/dist/components/code-block/CodeBlock.d.ts +7 -1
- package/dist/components/markdown/MarkdownPreview.d.ts +8 -2
- package/dist/components/markdown-editor/MarkdownEditor.d.ts +4 -1
- package/dist/css/MarkdownPreview.css +1 -1
- package/dist/css/plugin-mermaid.css +1 -0
- package/dist/editor.cjs +1 -1
- package/dist/editor.js +24 -22
- package/dist/index-BJZhyxD_.cjs +9 -0
- package/dist/index-DWVMYNE4.js +800 -0
- package/dist/index-HmBYTPyZ.js +1179 -0
- package/dist/index-jsnhzgIQ.cjs +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/jsx-runtime-DXgJBoQh.js +264 -0
- package/dist/jsx-runtime-nZSsnGb7.cjs +6 -0
- package/dist/plugin-highlight.cjs +1 -0
- package/dist/plugin-highlight.js +20 -0
- package/dist/plugin-katex.cjs +1 -0
- package/dist/plugin-katex.js +12 -0
- package/dist/plugin-mermaid.cjs +1 -0
- package/dist/plugin-mermaid.css +1 -0
- package/dist/plugin-mermaid.js +266 -0
- package/dist/plugins/types.d.ts +38 -0
- package/dist/preview.cjs +1 -1
- package/dist/preview.js +2 -2
- package/dist/style.css +1 -0
- package/package.json +49 -9
- package/dist/CodeBlock-B_Wu_RsD.cjs +0 -15
- package/dist/CodeBlock-BdSjKnRY.js +0 -2320
- package/dist/MarkdownPreview-CcTDfsgR.js +0 -20425
- package/dist/MarkdownPreview-imz9Sn8T.cjs +0 -295
- package/dist/_baseUniq-CmzFJAby.js +0 -477
- package/dist/_baseUniq-DTl9zLUk.cjs +0 -1
- package/dist/_commonjsHelpers-C6fGbg64.js +0 -6
- package/dist/_commonjsHelpers-DwGv2jUC.cjs +0 -1
- package/dist/arc-CLsgE_FO.cjs +0 -1
- package/dist/arc-DN0J6orD.js +0 -83
- package/dist/architectureDiagram-VXUJARFQ-C0Ox22_L.cjs +0 -36
- package/dist/architectureDiagram-VXUJARFQ-DD1WVkEB.js +0 -4662
- package/dist/blockDiagram-VD42YOAC-CXFrXgPY.cjs +0 -122
- package/dist/blockDiagram-VD42YOAC-DzX-b-6d.js +0 -2256
- package/dist/c4Diagram-YG6GDRKO-8tK3jTST.cjs +0 -10
- package/dist/c4Diagram-YG6GDRKO-CBo9Z0K5.js +0 -1580
- package/dist/channel-BWUNfmCm.js +0 -5
- package/dist/channel-MPm5yYgZ.cjs +0 -1
- package/dist/chunk-4BX2VUAB-BC2JrFPv.js +0 -8
- package/dist/chunk-4BX2VUAB-CVibkmL0.cjs +0 -1
- package/dist/chunk-55IACEB6-CzZUDZ70.js +0 -8
- package/dist/chunk-55IACEB6-DZnx2f_C.cjs +0 -1
- package/dist/chunk-B4BG7PRW-D0a_-7vE.cjs +0 -165
- package/dist/chunk-B4BG7PRW-DU2I6H4s.js +0 -1375
- package/dist/chunk-DI55MBZ5-BuXMX149.js +0 -1370
- package/dist/chunk-DI55MBZ5-Dr1JJdkm.cjs +0 -220
- package/dist/chunk-FMBD7UC4-DekHPa2I.cjs +0 -15
- package/dist/chunk-FMBD7UC4-RBUwxloo.js +0 -19
- package/dist/chunk-QN33PNHL-B6FGlZxV.js +0 -19
- package/dist/chunk-QN33PNHL-C1YRBk0j.cjs +0 -1
- package/dist/chunk-QZHKN3VN-BspjB43V.cjs +0 -1
- package/dist/chunk-QZHKN3VN-DR_oy1P1.js +0 -15
- package/dist/chunk-TZMSLE5B-BRck7Be7.cjs +0 -1
- package/dist/chunk-TZMSLE5B-pyixj0XE.js +0 -64
- package/dist/classDiagram-2ON5EDUG-Bvw7buPq.cjs +0 -1
- package/dist/classDiagram-2ON5EDUG-DK3Yvqrk.js +0 -16
- package/dist/classDiagram-v2-WZHVMYZB-Bvw7buPq.cjs +0 -1
- package/dist/classDiagram-v2-WZHVMYZB-DK3Yvqrk.js +0 -16
- package/dist/clone-D2V_3-x6.cjs +0 -1
- package/dist/clone-O816pP2i.js +0 -8
- package/dist/cose-bilkent-S5V4N54A-Bu3r2cA0.js +0 -2609
- package/dist/cose-bilkent-S5V4N54A-vz9hoE-P.cjs +0 -1
- package/dist/cytoscape.esm-CNUX3VTg.cjs +0 -321
- package/dist/cytoscape.esm-Cvf3sx9F.js +0 -18704
- package/dist/dagre-6UL2VRFP-D2UBESo6.cjs +0 -4
- package/dist/dagre-6UL2VRFP-DiBRZkX2.js +0 -443
- package/dist/defaultLocale-D7EN2tov.js +0 -171
- package/dist/defaultLocale-DIVzfLaQ.cjs +0 -1
- package/dist/diagram-PSM6KHXK-CUF6rC_5.js +0 -531
- package/dist/diagram-PSM6KHXK-uKXJz4r1.cjs +0 -24
- package/dist/diagram-QEK2KX5R-Da150Pqe.js +0 -217
- package/dist/diagram-QEK2KX5R-kQTDsG_x.cjs +0 -43
- package/dist/diagram-S2PKOQOG-C5ATPkHT.cjs +0 -24
- package/dist/diagram-S2PKOQOG-DA2RxLrC.js +0 -142
- package/dist/erDiagram-Q2GNP2WA-BsCdOw62.cjs +0 -60
- package/dist/erDiagram-Q2GNP2WA-YfCaUJjx.js +0 -841
- package/dist/flowDiagram-NV44I4VS-BG0KW3ec.cjs +0 -162
- package/dist/flowDiagram-NV44I4VS-D7WLCw1w.js +0 -1620
- package/dist/fonts/font-00b26ac8.woff2 +0 -0
- package/dist/fonts/font-036d4e95.woff2 +0 -0
- package/dist/fonts/font-07d8e303.ttf +0 -0
- package/dist/fonts/font-08ce98e5.ttf +0 -0
- package/dist/fonts/font-0cdd387c.woff2 +0 -0
- package/dist/fonts/font-0d85ae7c.ttf +0 -0
- package/dist/fonts/font-0f60d1b8.woff2 +0 -0
- package/dist/fonts/font-11e4dc8a.woff +0 -0
- package/dist/fonts/font-138ac28d.ttf +0 -0
- package/dist/fonts/font-1ae6bd74.woff +0 -0
- package/dist/fonts/font-1c67f068.ttf +0 -0
- package/dist/fonts/font-1e6f9579.ttf +0 -0
- package/dist/fonts/font-1ece03f7.ttf +0 -0
- package/dist/fonts/font-2014c523.woff +0 -0
- package/dist/fonts/font-30da91e8.woff +0 -0
- package/dist/fonts/font-3398dd02.woff +0 -0
- package/dist/fonts/font-3931dd81.ttf +0 -0
- package/dist/fonts/font-500e04d5.ttf +0 -0
- package/dist/fonts/font-51814d27.woff2 +0 -0
- package/dist/fonts/font-5d53e70a.woff2 +0 -0
- package/dist/fonts/font-5e28753b.woff +0 -0
- package/dist/fonts/font-68534840.ttf +0 -0
- package/dist/fonts/font-68e8c73e.woff2 +0 -0
- package/dist/fonts/font-6ab6b62e.woff +0 -0
- package/dist/fonts/font-6b47c401.woff2 +0 -0
- package/dist/fonts/font-70ee1f64.ttf +0 -0
- package/dist/fonts/font-71d517d6.woff2 +0 -0
- package/dist/fonts/font-73d59127.woff2 +0 -0
- package/dist/fonts/font-74444efd.woff2 +0 -0
- package/dist/fonts/font-7af58c5e.woff2 +0 -0
- package/dist/fonts/font-850c0af5.woff +0 -0
- package/dist/fonts/font-8a8d2445.woff +0 -0
- package/dist/fonts/font-9163df9c.ttf +0 -0
- package/dist/fonts/font-91ee6750.woff +0 -0
- package/dist/fonts/font-95b6d2f1.ttf +0 -0
- package/dist/fonts/font-97479ca6.woff2 +0 -0
- package/dist/fonts/font-99cd42a3.woff2 +0 -0
- package/dist/fonts/font-99f9c675.woff +0 -0
- package/dist/fonts/font-9be7ceb8.woff +0 -0
- package/dist/fonts/font-a4af7d41.woff2 +0 -0
- package/dist/fonts/font-a6b2099f.ttf +0 -0
- package/dist/fonts/font-a6f7ec0d.woff +0 -0
- package/dist/fonts/font-c2342cd8.woff2 +0 -0
- package/dist/fonts/font-c6368d87.woff +0 -0
- package/dist/fonts/font-c647367d.ttf +0 -0
- package/dist/fonts/font-c76c5d69.woff +0 -0
- package/dist/fonts/font-c943cc98.woff +0 -0
- package/dist/fonts/font-d0332f52.ttf +0 -0
- package/dist/fonts/font-d04c5421.woff2 +0 -0
- package/dist/fonts/font-d96cdf2b.woff +0 -0
- package/dist/fonts/font-dc47344d.woff2 +0 -0
- package/dist/fonts/font-de7701e4.woff2 +0 -0
- package/dist/fonts/font-e14fed02.woff +0 -0
- package/dist/fonts/font-e99ae511.woff2 +0 -0
- package/dist/fonts/font-ece03cfd.woff +0 -0
- package/dist/fonts/font-ed0b7437.ttf +0 -0
- package/dist/fonts/font-f01f3e87.ttf +0 -0
- package/dist/fonts/font-f1d6ef86.woff +0 -0
- package/dist/fonts/font-f36ea897.ttf +0 -0
- package/dist/fonts/font-f9377ab0.ttf +0 -0
- package/dist/ganttDiagram-JELNMOA3-BUA8njzO.cjs +0 -267
- package/dist/ganttDiagram-JELNMOA3-DSi9nt2I.js +0 -2671
- package/dist/gitGraphDiagram-NY62KEGX-C_9BbRSY.cjs +0 -65
- package/dist/gitGraphDiagram-NY62KEGX-Dr7HXTzE.js +0 -699
- package/dist/graph-Bd_3fIRG.cjs +0 -1
- package/dist/graph-DKQwyqwf.js +0 -381
- package/dist/index-BCrgOJjI.js +0 -38514
- package/dist/index-CPmaHYSB.cjs +0 -3920
- package/dist/infoDiagram-WHAUD3N6-LqpiKtaK.cjs +0 -2
- package/dist/infoDiagram-WHAUD3N6-cs5PUkbs.js +0 -24
- package/dist/init-CHZsXQcr.cjs +0 -1
- package/dist/init-DjUOC4st.js +0 -16
- package/dist/journeyDiagram-XKPGCS4Q-Uzzobun-.cjs +0 -139
- package/dist/journeyDiagram-XKPGCS4Q-Xh1PuBF3.js +0 -834
- package/dist/kanban-definition-3W4ZIXB7-BGNcniUS.cjs +0 -89
- package/dist/kanban-definition-3W4ZIXB7-BrCevkcy.js +0 -719
- package/dist/layout-C1JPMjBE.cjs +0 -1
- package/dist/layout-DCT3c1G0.js +0 -1441
- package/dist/linear-1V2v3HAv.js +0 -259
- package/dist/linear-BguQgdYO.cjs +0 -1
- package/dist/mermaid.core-B7U3vlPn.js +0 -15269
- package/dist/mermaid.core-Bi8BVJjR.cjs +0 -249
- package/dist/min-DxTpsh5w.js +0 -38
- package/dist/min-IWR7y697.cjs +0 -1
- package/dist/mindmap-definition-VGOIOE7T-Bo_AaB3S.cjs +0 -68
- package/dist/mindmap-definition-VGOIOE7T-y7MJRkKb.js +0 -784
- package/dist/ordinal-B6-f3MAq.js +0 -61
- package/dist/ordinal-CagbB1m8.cjs +0 -1
- package/dist/pieDiagram-ADFJNKIX-B3MwEiQQ.cjs +0 -30
- package/dist/pieDiagram-ADFJNKIX-Dat2qDxW.js +0 -161
- package/dist/quadrantDiagram-AYHSOK5B-BPI6p5FS.js +0 -1022
- package/dist/quadrantDiagram-AYHSOK5B-DJPxR-7E.cjs +0 -7
- package/dist/requirementDiagram-UZGBJVZJ-BjJSqttW.js +0 -850
- package/dist/requirementDiagram-UZGBJVZJ-CmIwuHrt.cjs +0 -64
- package/dist/sankeyDiagram-TZEHDZUN-CLroAHms.cjs +0 -10
- package/dist/sankeyDiagram-TZEHDZUN-jMmEhl5n.js +0 -810
- package/dist/sequenceDiagram-WL72ISMW-BVZMWdMT.cjs +0 -145
- package/dist/sequenceDiagram-WL72ISMW-CqGWWpuM.js +0 -2511
- package/dist/stateDiagram-FKZM4ZOC-DYHXgEjX.cjs +0 -1
- package/dist/stateDiagram-FKZM4ZOC-h1ovMUWJ.js +0 -263
- package/dist/stateDiagram-v2-4FDKWEC3-Di23ehqW.cjs +0 -1
- package/dist/stateDiagram-v2-4FDKWEC3-GGpuzcKb.js +0 -16
- package/dist/timeline-definition-IT6M3QCI-DC_axTKs.js +0 -795
- package/dist/timeline-definition-IT6M3QCI-DYx-RdCk.cjs +0 -61
- package/dist/treemap-KMMF4GRG-B-9lqUoG.js +0 -14192
- package/dist/treemap-KMMF4GRG-EXqF5Yz1.cjs +0 -128
- package/dist/xychartDiagram-PRI3JC2R-CedpkbBs.cjs +0 -7
- package/dist/xychartDiagram-PRI3JC2R-gFwsBSHN.js +0 -1340
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";function E(l,e){const t=e||{};return(l[l.length-1]===""?[...l,""]:l).join((t.padRight?" ":"")+","+(t.padLeft===!1?"":" ")).trim()}const A=/[ \t\n\f\r]/g;function U(l){return typeof l=="object"?l.type==="text"?C(l.value):!1:C(l)}function C(l){return l.replace(A,"")===""}class f{constructor(e,t,r){this.normal=t,this.property=e,r&&(this.space=r)}}f.prototype.normal={};f.prototype.property={};f.prototype.space=void 0;function P(l,e){const t={},r={};for(const s of l)Object.assign(t,s.property),Object.assign(r,s.normal);return new f(t,r,e)}function v(l){return l.toLowerCase()}class i{constructor(e,t){this.attribute=t,this.property=e}}i.prototype.attribute="";i.prototype.booleanish=!1;i.prototype.boolean=!1;i.prototype.commaOrSpaceSeparated=!1;i.prototype.commaSeparated=!1;i.prototype.defined=!1;i.prototype.mustUseProperty=!1;i.prototype.number=!1;i.prototype.overloadedBoolean=!1;i.prototype.property="";i.prototype.spaceSeparated=!1;i.prototype.space=void 0;let z=0;const o=g(),u=g(),k=g(),n=g(),a=g(),h=g(),p=g();function g(){return 2**++z}const b=Object.freeze(Object.defineProperty({__proto__:null,boolean:o,booleanish:u,commaOrSpaceSeparated:p,commaSeparated:h,number:n,overloadedBoolean:k,spaceSeparated:a},Symbol.toStringTag,{value:"Module"})),y=Object.keys(b);class S extends i{constructor(e,t,r,s){let c=-1;if(super(e,t),x(this,"space",s),typeof r=="number")for(;++c<y.length;){const d=y[c];x(this,y[c],(r&b[d])===b[d])}}}S.prototype.defined=!0;function x(l,e,t){t&&(l[e]=t)}function m(l){const e={},t={};for(const[r,s]of Object.entries(l.properties)){const c=new S(r,l.transform(l.attributes||{},r),s,l.space);l.mustUseProperty&&l.mustUseProperty.includes(r)&&(c.mustUseProperty=!0),e[r]=c,t[v(r)]=r,t[v(c.attribute)]=r}return new f(e,t,l.space)}const M=m({properties:{ariaActiveDescendant:null,ariaAtomic:u,ariaAutoComplete:null,ariaBusy:u,ariaChecked:u,ariaColCount:n,ariaColIndex:n,ariaColSpan:n,ariaControls:a,ariaCurrent:null,ariaDescribedBy:a,ariaDetails:null,ariaDisabled:u,ariaDropEffect:a,ariaErrorMessage:null,ariaExpanded:u,ariaFlowTo:a,ariaGrabbed:u,ariaHasPopup:null,ariaHidden:u,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:a,ariaLevel:n,ariaLive:null,ariaModal:u,ariaMultiLine:u,ariaMultiSelectable:u,ariaOrientation:null,ariaOwns:a,ariaPlaceholder:null,ariaPosInSet:n,ariaPressed:u,ariaReadOnly:u,ariaRelevant:null,ariaRequired:u,ariaRoleDescription:a,ariaRowCount:n,ariaRowIndex:n,ariaRowSpan:n,ariaSelected:u,ariaSetSize:n,ariaSort:null,ariaValueMax:n,ariaValueMin:n,ariaValueNow:n,ariaValueText:null,role:null},transform(l,e){return e==="role"?e:"aria-"+e.slice(4).toLowerCase()}});function L(l,e){return e in l?l[e]:e}function O(l,e){return L(l,e.toLowerCase())}const B=m({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:h,acceptCharset:a,accessKey:a,action:null,allow:null,allowFullScreen:o,allowPaymentRequest:o,allowUserMedia:o,alt:null,as:null,async:o,autoCapitalize:null,autoComplete:a,autoFocus:o,autoPlay:o,blocking:a,capture:null,charSet:null,checked:o,cite:null,className:a,cols:n,colSpan:null,content:null,contentEditable:u,controls:o,controlsList:a,coords:n|h,crossOrigin:null,data:null,dateTime:null,decoding:null,default:o,defer:o,dir:null,dirName:null,disabled:o,download:k,draggable:u,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:o,formTarget:null,headers:a,height:n,hidden:k,high:n,href:null,hrefLang:null,htmlFor:a,httpEquiv:a,id:null,imageSizes:null,imageSrcSet:null,inert:o,inputMode:null,integrity:null,is:null,isMap:o,itemId:null,itemProp:a,itemRef:a,itemScope:o,itemType:a,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:o,low:n,manifest:null,max:null,maxLength:n,media:null,method:null,min:null,minLength:n,multiple:o,muted:o,name:null,nonce:null,noModule:o,noValidate:o,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:o,optimum:n,pattern:null,ping:a,placeholder:null,playsInline:o,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:o,referrerPolicy:null,rel:a,required:o,reversed:o,rows:n,rowSpan:n,sandbox:a,scope:null,scoped:o,seamless:o,selected:o,shadowRootClonable:o,shadowRootDelegatesFocus:o,shadowRootMode:null,shape:null,size:n,sizes:null,slot:null,span:n,spellCheck:u,src:null,srcDoc:null,srcLang:null,srcSet:null,start:n,step:null,style:null,tabIndex:n,target:null,title:null,translate:null,type:null,typeMustMatch:o,useMap:null,value:u,width:n,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:a,axis:null,background:null,bgColor:null,border:n,borderColor:null,bottomMargin:n,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:o,declare:o,event:null,face:null,frame:null,frameBorder:null,hSpace:n,leftMargin:n,link:null,longDesc:null,lowSrc:null,marginHeight:n,marginWidth:n,noResize:o,noHref:o,noShade:o,noWrap:o,object:null,profile:null,prompt:null,rev:null,rightMargin:n,rules:null,scheme:null,scrolling:u,standby:null,summary:null,text:null,topMargin:n,valueType:null,version:null,vAlign:null,vLink:null,vSpace:n,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:o,disableRemotePlayback:o,prefix:null,property:null,results:n,security:null,unselectable:null},space:"html",transform:O}),I=m({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:p,accentHeight:n,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:n,amplitude:n,arabicForm:null,ascent:n,attributeName:null,attributeType:null,azimuth:n,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:n,by:null,calcMode:null,capHeight:n,className:a,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:n,diffuseConstant:n,direction:null,display:null,dur:null,divisor:n,dominantBaseline:null,download:o,dx:null,dy:null,edgeMode:null,editable:null,elevation:n,enableBackground:null,end:null,event:null,exponent:n,externalResourcesRequired:null,fill:null,fillOpacity:n,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:h,g2:h,glyphName:h,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:n,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:n,horizOriginX:n,horizOriginY:n,id:null,ideographic:n,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:n,k:n,k1:n,k2:n,k3:n,k4:n,kernelMatrix:p,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:n,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:n,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:n,overlineThickness:n,paintOrder:null,panose1:null,path:null,pathLength:n,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:a,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:n,pointsAtY:n,pointsAtZ:n,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:p,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:p,rev:p,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:p,requiredFeatures:p,requiredFonts:p,requiredFormats:p,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:n,specularExponent:n,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:n,strikethroughThickness:n,string:null,stroke:null,strokeDashArray:p,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:n,strokeOpacity:n,strokeWidth:null,style:null,surfaceScale:n,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:p,tabIndex:n,tableValues:null,target:null,targetX:n,targetY:n,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:p,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:n,underlineThickness:n,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:n,values:null,vAlphabetic:n,vMathematical:n,vectorEffect:null,vHanging:n,vIdeographic:n,version:null,vertAdvY:n,vertOriginX:n,vertOriginY:n,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:n,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:L}),D=m({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(l,e){return"xlink:"+e.slice(5).toLowerCase()}}),R=m({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:O}),T=m({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(l,e){return"xml:"+e.slice(3).toLowerCase()}}),H=/[A-Z]/g,w=/-[a-z]/g,F=/^data[-\w.:]+$/i;function j(l,e){const t=v(e);let r=e,s=i;if(t in l.normal)return l.property[l.normal[t]];if(t.length>4&&t.slice(0,4)==="data"&&F.test(e)){if(e.charAt(4)==="-"){const c=e.slice(5).replace(w,W);r="data"+c.charAt(0).toUpperCase()+c.slice(1)}else{const c=e.slice(4);if(!w.test(c)){let d=c.replace(H,V);d.charAt(0)!=="-"&&(d="-"+d),e="data"+d}}s=S}return new s(r,e)}function V(l){return"-"+l.toLowerCase()}function W(l){return l.charAt(1).toUpperCase()}const q=P([M,B,D,R,T],"html"),K=P([M,I,D,R,T],"svg");function N(l){return l.join(" ").trim()}function X(l,e){const t=String(l);if(typeof e!="string")throw new TypeError("Expected character");let r=0,s=t.indexOf(e);for(;s!==-1;)r++,s=t.indexOf(e,s+e.length);return r}exports.ccount=X;exports.find=j;exports.html=q;exports.stringify=E;exports.stringify$1=N;exports.svg=K;exports.whitespace=U;
|
package/dist/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./CodeBlock-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./CodeBlock-BquZ4WRk.cjs");exports.CodeBlock=e.CodeBlock;exports.default=e.CodeBlock;
|
package/dist/index.js
CHANGED
|
@@ -0,0 +1,264 @@
|
|
|
1
|
+
import K from "react";
|
|
2
|
+
var v = { exports: {} }, m = {};
|
|
3
|
+
var $;
|
|
4
|
+
function ee() {
|
|
5
|
+
if ($) return m;
|
|
6
|
+
$ = 1;
|
|
7
|
+
var u = /* @__PURE__ */ Symbol.for("react.transitional.element"), E = /* @__PURE__ */ Symbol.for("react.fragment");
|
|
8
|
+
function c(i, o, s) {
|
|
9
|
+
var f = null;
|
|
10
|
+
if (s !== void 0 && (f = "" + s), o.key !== void 0 && (f = "" + o.key), "key" in o) {
|
|
11
|
+
s = {};
|
|
12
|
+
for (var d in o)
|
|
13
|
+
d !== "key" && (s[d] = o[d]);
|
|
14
|
+
} else s = o;
|
|
15
|
+
return o = s.ref, {
|
|
16
|
+
$$typeof: u,
|
|
17
|
+
type: i,
|
|
18
|
+
key: f,
|
|
19
|
+
ref: o !== void 0 ? o : null,
|
|
20
|
+
props: s
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
return m.Fragment = E, m.jsx = c, m.jsxs = c, m;
|
|
24
|
+
}
|
|
25
|
+
var _ = {};
|
|
26
|
+
var I;
|
|
27
|
+
function re() {
|
|
28
|
+
return I || (I = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
29
|
+
function u(e) {
|
|
30
|
+
if (e == null) return null;
|
|
31
|
+
if (typeof e == "function")
|
|
32
|
+
return e.$$typeof === H ? null : e.displayName || e.name || null;
|
|
33
|
+
if (typeof e == "string") return e;
|
|
34
|
+
switch (e) {
|
|
35
|
+
case p:
|
|
36
|
+
return "Fragment";
|
|
37
|
+
case U:
|
|
38
|
+
return "Profiler";
|
|
39
|
+
case W:
|
|
40
|
+
return "StrictMode";
|
|
41
|
+
case z:
|
|
42
|
+
return "Suspense";
|
|
43
|
+
case G:
|
|
44
|
+
return "SuspenseList";
|
|
45
|
+
case B:
|
|
46
|
+
return "Activity";
|
|
47
|
+
}
|
|
48
|
+
if (typeof e == "object")
|
|
49
|
+
switch (typeof e.tag == "number" && console.error(
|
|
50
|
+
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
|
|
51
|
+
), e.$$typeof) {
|
|
52
|
+
case M:
|
|
53
|
+
return "Portal";
|
|
54
|
+
case J:
|
|
55
|
+
return e.displayName || "Context";
|
|
56
|
+
case q:
|
|
57
|
+
return (e._context.displayName || "Context") + ".Consumer";
|
|
58
|
+
case V:
|
|
59
|
+
var r = e.render;
|
|
60
|
+
return e = e.displayName, e || (e = r.displayName || r.name || "", e = e !== "" ? "ForwardRef(" + e + ")" : "ForwardRef"), e;
|
|
61
|
+
case X:
|
|
62
|
+
return r = e.displayName || null, r !== null ? r : u(e.type) || "Memo";
|
|
63
|
+
case T:
|
|
64
|
+
r = e._payload, e = e._init;
|
|
65
|
+
try {
|
|
66
|
+
return u(e(r));
|
|
67
|
+
} catch {
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
return null;
|
|
71
|
+
}
|
|
72
|
+
function E(e) {
|
|
73
|
+
return "" + e;
|
|
74
|
+
}
|
|
75
|
+
function c(e) {
|
|
76
|
+
try {
|
|
77
|
+
E(e);
|
|
78
|
+
var r = !1;
|
|
79
|
+
} catch {
|
|
80
|
+
r = !0;
|
|
81
|
+
}
|
|
82
|
+
if (r) {
|
|
83
|
+
r = console;
|
|
84
|
+
var t = r.error, n = typeof Symbol == "function" && Symbol.toStringTag && e[Symbol.toStringTag] || e.constructor.name || "Object";
|
|
85
|
+
return t.call(
|
|
86
|
+
r,
|
|
87
|
+
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
88
|
+
n
|
|
89
|
+
), E(e);
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
function i(e) {
|
|
93
|
+
if (e === p) return "<>";
|
|
94
|
+
if (typeof e == "object" && e !== null && e.$$typeof === T)
|
|
95
|
+
return "<...>";
|
|
96
|
+
try {
|
|
97
|
+
var r = u(e);
|
|
98
|
+
return r ? "<" + r + ">" : "<...>";
|
|
99
|
+
} catch {
|
|
100
|
+
return "<...>";
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
function o() {
|
|
104
|
+
var e = k.A;
|
|
105
|
+
return e === null ? null : e.getOwner();
|
|
106
|
+
}
|
|
107
|
+
function s() {
|
|
108
|
+
return Error("react-stack-top-frame");
|
|
109
|
+
}
|
|
110
|
+
function f(e) {
|
|
111
|
+
if (x.call(e, "key")) {
|
|
112
|
+
var r = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
113
|
+
if (r && r.isReactWarning) return !1;
|
|
114
|
+
}
|
|
115
|
+
return e.key !== void 0;
|
|
116
|
+
}
|
|
117
|
+
function d(e, r) {
|
|
118
|
+
function t() {
|
|
119
|
+
g || (g = !0, console.error(
|
|
120
|
+
"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
|
|
121
|
+
r
|
|
122
|
+
));
|
|
123
|
+
}
|
|
124
|
+
t.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
125
|
+
get: t,
|
|
126
|
+
configurable: !0
|
|
127
|
+
});
|
|
128
|
+
}
|
|
129
|
+
function D() {
|
|
130
|
+
var e = u(this.type);
|
|
131
|
+
return h[e] || (h[e] = !0, console.error(
|
|
132
|
+
"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
|
|
133
|
+
)), e = this.props.ref, e !== void 0 ? e : null;
|
|
134
|
+
}
|
|
135
|
+
function L(e, r, t, n, b, A) {
|
|
136
|
+
var a = t.ref;
|
|
137
|
+
return e = {
|
|
138
|
+
$$typeof: j,
|
|
139
|
+
type: e,
|
|
140
|
+
key: r,
|
|
141
|
+
props: t,
|
|
142
|
+
_owner: n
|
|
143
|
+
}, (a !== void 0 ? a : null) !== null ? Object.defineProperty(e, "ref", {
|
|
144
|
+
enumerable: !1,
|
|
145
|
+
get: D
|
|
146
|
+
}) : Object.defineProperty(e, "ref", { enumerable: !1, value: null }), e._store = {}, Object.defineProperty(e._store, "validated", {
|
|
147
|
+
configurable: !1,
|
|
148
|
+
enumerable: !1,
|
|
149
|
+
writable: !0,
|
|
150
|
+
value: 0
|
|
151
|
+
}), Object.defineProperty(e, "_debugInfo", {
|
|
152
|
+
configurable: !1,
|
|
153
|
+
enumerable: !1,
|
|
154
|
+
writable: !0,
|
|
155
|
+
value: null
|
|
156
|
+
}), Object.defineProperty(e, "_debugStack", {
|
|
157
|
+
configurable: !1,
|
|
158
|
+
enumerable: !1,
|
|
159
|
+
writable: !0,
|
|
160
|
+
value: b
|
|
161
|
+
}), Object.defineProperty(e, "_debugTask", {
|
|
162
|
+
configurable: !1,
|
|
163
|
+
enumerable: !1,
|
|
164
|
+
writable: !0,
|
|
165
|
+
value: A
|
|
166
|
+
}), Object.freeze && (Object.freeze(e.props), Object.freeze(e)), e;
|
|
167
|
+
}
|
|
168
|
+
function P(e, r, t, n, b, A) {
|
|
169
|
+
var a = r.children;
|
|
170
|
+
if (a !== void 0)
|
|
171
|
+
if (n)
|
|
172
|
+
if (Z(a)) {
|
|
173
|
+
for (n = 0; n < a.length; n++)
|
|
174
|
+
w(a[n]);
|
|
175
|
+
Object.freeze && Object.freeze(a);
|
|
176
|
+
} else
|
|
177
|
+
console.error(
|
|
178
|
+
"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
|
|
179
|
+
);
|
|
180
|
+
else w(a);
|
|
181
|
+
if (x.call(r, "key")) {
|
|
182
|
+
a = u(e);
|
|
183
|
+
var l = Object.keys(r).filter(function(Q) {
|
|
184
|
+
return Q !== "key";
|
|
185
|
+
});
|
|
186
|
+
n = 0 < l.length ? "{key: someKey, " + l.join(": ..., ") + ": ...}" : "{key: someKey}", Y[a + n] || (l = 0 < l.length ? "{" + l.join(": ..., ") + ": ...}" : "{}", console.error(
|
|
187
|
+
`A props object containing a "key" prop is being spread into JSX:
|
|
188
|
+
let props = %s;
|
|
189
|
+
<%s {...props} />
|
|
190
|
+
React keys must be passed directly to JSX without using spread:
|
|
191
|
+
let props = %s;
|
|
192
|
+
<%s key={someKey} {...props} />`,
|
|
193
|
+
n,
|
|
194
|
+
a,
|
|
195
|
+
l,
|
|
196
|
+
a
|
|
197
|
+
), Y[a + n] = !0);
|
|
198
|
+
}
|
|
199
|
+
if (a = null, t !== void 0 && (c(t), a = "" + t), f(r) && (c(r.key), a = "" + r.key), "key" in r) {
|
|
200
|
+
t = {};
|
|
201
|
+
for (var S in r)
|
|
202
|
+
S !== "key" && (t[S] = r[S]);
|
|
203
|
+
} else t = r;
|
|
204
|
+
return a && d(
|
|
205
|
+
t,
|
|
206
|
+
typeof e == "function" ? e.displayName || e.name || "Unknown" : e
|
|
207
|
+
), L(
|
|
208
|
+
e,
|
|
209
|
+
a,
|
|
210
|
+
t,
|
|
211
|
+
o(),
|
|
212
|
+
b,
|
|
213
|
+
A
|
|
214
|
+
);
|
|
215
|
+
}
|
|
216
|
+
function w(e) {
|
|
217
|
+
y(e) ? e._store && (e._store.validated = 1) : typeof e == "object" && e !== null && e.$$typeof === T && (e._payload.status === "fulfilled" ? y(e._payload.value) && e._payload.value._store && (e._payload.value._store.validated = 1) : e._store && (e._store.validated = 1));
|
|
218
|
+
}
|
|
219
|
+
function y(e) {
|
|
220
|
+
return typeof e == "object" && e !== null && e.$$typeof === j;
|
|
221
|
+
}
|
|
222
|
+
var R = K, j = /* @__PURE__ */ Symbol.for("react.transitional.element"), M = /* @__PURE__ */ Symbol.for("react.portal"), p = /* @__PURE__ */ Symbol.for("react.fragment"), W = /* @__PURE__ */ Symbol.for("react.strict_mode"), U = /* @__PURE__ */ Symbol.for("react.profiler"), q = /* @__PURE__ */ Symbol.for("react.consumer"), J = /* @__PURE__ */ Symbol.for("react.context"), V = /* @__PURE__ */ Symbol.for("react.forward_ref"), z = /* @__PURE__ */ Symbol.for("react.suspense"), G = /* @__PURE__ */ Symbol.for("react.suspense_list"), X = /* @__PURE__ */ Symbol.for("react.memo"), T = /* @__PURE__ */ Symbol.for("react.lazy"), B = /* @__PURE__ */ Symbol.for("react.activity"), H = /* @__PURE__ */ Symbol.for("react.client.reference"), k = R.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, x = Object.prototype.hasOwnProperty, Z = Array.isArray, O = console.createTask ? console.createTask : function() {
|
|
223
|
+
return null;
|
|
224
|
+
};
|
|
225
|
+
R = {
|
|
226
|
+
react_stack_bottom_frame: function(e) {
|
|
227
|
+
return e();
|
|
228
|
+
}
|
|
229
|
+
};
|
|
230
|
+
var g, h = {}, N = R.react_stack_bottom_frame.bind(
|
|
231
|
+
R,
|
|
232
|
+
s
|
|
233
|
+
)(), C = O(i(s)), Y = {};
|
|
234
|
+
_.Fragment = p, _.jsx = function(e, r, t) {
|
|
235
|
+
var n = 1e4 > k.recentlyCreatedOwnerStacks++;
|
|
236
|
+
return P(
|
|
237
|
+
e,
|
|
238
|
+
r,
|
|
239
|
+
t,
|
|
240
|
+
!1,
|
|
241
|
+
n ? Error("react-stack-top-frame") : N,
|
|
242
|
+
n ? O(i(e)) : C
|
|
243
|
+
);
|
|
244
|
+
}, _.jsxs = function(e, r, t) {
|
|
245
|
+
var n = 1e4 > k.recentlyCreatedOwnerStacks++;
|
|
246
|
+
return P(
|
|
247
|
+
e,
|
|
248
|
+
r,
|
|
249
|
+
t,
|
|
250
|
+
!0,
|
|
251
|
+
n ? Error("react-stack-top-frame") : N,
|
|
252
|
+
n ? O(i(e)) : C
|
|
253
|
+
);
|
|
254
|
+
};
|
|
255
|
+
})()), _;
|
|
256
|
+
}
|
|
257
|
+
var F;
|
|
258
|
+
function te() {
|
|
259
|
+
return F || (F = 1, process.env.NODE_ENV === "production" ? v.exports = ee() : v.exports = re()), v.exports;
|
|
260
|
+
}
|
|
261
|
+
var ae = te();
|
|
262
|
+
export {
|
|
263
|
+
ae as j
|
|
264
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";const K=require("react");var v={exports:{}},m={};var $;function ee(){if($)return m;$=1;var u=Symbol.for("react.transitional.element"),_=Symbol.for("react.fragment");function c(i,o,s){var f=null;if(s!==void 0&&(f=""+s),o.key!==void 0&&(f=""+o.key),"key"in o){s={};for(var d in o)d!=="key"&&(s[d]=o[d])}else s=o;return o=s.ref,{$$typeof:u,type:i,key:f,ref:o!==void 0?o:null,props:s}}return m.Fragment=_,m.jsx=c,m.jsxs=c,m}var E={};var I;function re(){return I||(I=1,process.env.NODE_ENV!=="production"&&(function(){function u(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===H?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case p:return"Fragment";case U:return"Profiler";case W:return"StrictMode";case z:return"Suspense";case G:return"SuspenseList";case B:return"Activity"}if(typeof e=="object")switch(typeof e.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),e.$$typeof){case M:return"Portal";case J:return e.displayName||"Context";case q:return(e._context.displayName||"Context")+".Consumer";case V:var r=e.render;return e=e.displayName,e||(e=r.displayName||r.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case X:return r=e.displayName||null,r!==null?r:u(e.type)||"Memo";case T:r=e._payload,e=e._init;try{return u(e(r))}catch{}}return null}function _(e){return""+e}function c(e){try{_(e);var r=!1}catch{r=!0}if(r){r=console;var t=r.error,n=typeof Symbol=="function"&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object";return t.call(r,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",n),_(e)}}function i(e){if(e===p)return"<>";if(typeof e=="object"&&e!==null&&e.$$typeof===T)return"<...>";try{var r=u(e);return r?"<"+r+">":"<...>"}catch{return"<...>"}}function o(){var e=k.A;return e===null?null:e.getOwner()}function s(){return Error("react-stack-top-frame")}function f(e){if(j.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return e.key!==void 0}function d(e,r){function t(){g||(g=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",r))}t.isReactWarning=!0,Object.defineProperty(e,"key",{get:t,configurable:!0})}function D(){var e=u(this.type);return h[e]||(h[e]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),e=this.props.ref,e!==void 0?e:null}function L(e,r,t,n,b,A){var a=t.ref;return e={$$typeof:y,type:e,key:r,props:t,_owner:n},(a!==void 0?a:null)!==null?Object.defineProperty(e,"ref",{enumerable:!1,get:D}):Object.defineProperty(e,"ref",{enumerable:!1,value:null}),e._store={},Object.defineProperty(e._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(e,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(e,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:b}),Object.defineProperty(e,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:A}),Object.freeze&&(Object.freeze(e.props),Object.freeze(e)),e}function P(e,r,t,n,b,A){var a=r.children;if(a!==void 0)if(n)if(Z(a)){for(n=0;n<a.length;n++)w(a[n]);Object.freeze&&Object.freeze(a)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else w(a);if(j.call(r,"key")){a=u(e);var l=Object.keys(r).filter(function(Q){return Q!=="key"});n=0<l.length?"{key: someKey, "+l.join(": ..., ")+": ...}":"{key: someKey}",Y[a+n]||(l=0<l.length?"{"+l.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
|
|
2
|
+
let props = %s;
|
|
3
|
+
<%s {...props} />
|
|
4
|
+
React keys must be passed directly to JSX without using spread:
|
|
5
|
+
let props = %s;
|
|
6
|
+
<%s key={someKey} {...props} />`,n,a,l,a),Y[a+n]=!0)}if(a=null,t!==void 0&&(c(t),a=""+t),f(r)&&(c(r.key),a=""+r.key),"key"in r){t={};for(var S in r)S!=="key"&&(t[S]=r[S])}else t=r;return a&&d(t,typeof e=="function"?e.displayName||e.name||"Unknown":e),L(e,a,t,o(),b,A)}function w(e){x(e)?e._store&&(e._store.validated=1):typeof e=="object"&&e!==null&&e.$$typeof===T&&(e._payload.status==="fulfilled"?x(e._payload.value)&&e._payload.value._store&&(e._payload.value._store.validated=1):e._store&&(e._store.validated=1))}function x(e){return typeof e=="object"&&e!==null&&e.$$typeof===y}var R=K,y=Symbol.for("react.transitional.element"),M=Symbol.for("react.portal"),p=Symbol.for("react.fragment"),W=Symbol.for("react.strict_mode"),U=Symbol.for("react.profiler"),q=Symbol.for("react.consumer"),J=Symbol.for("react.context"),V=Symbol.for("react.forward_ref"),z=Symbol.for("react.suspense"),G=Symbol.for("react.suspense_list"),X=Symbol.for("react.memo"),T=Symbol.for("react.lazy"),B=Symbol.for("react.activity"),H=Symbol.for("react.client.reference"),k=R.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,j=Object.prototype.hasOwnProperty,Z=Array.isArray,O=console.createTask?console.createTask:function(){return null};R={react_stack_bottom_frame:function(e){return e()}};var g,h={},N=R.react_stack_bottom_frame.bind(R,s)(),C=O(i(s)),Y={};E.Fragment=p,E.jsx=function(e,r,t){var n=1e4>k.recentlyCreatedOwnerStacks++;return P(e,r,t,!1,n?Error("react-stack-top-frame"):N,n?O(i(e)):C)},E.jsxs=function(e,r,t){var n=1e4>k.recentlyCreatedOwnerStacks++;return P(e,r,t,!0,n?Error("react-stack-top-frame"):N,n?O(i(e)):C)}})()),E}var F;function te(){return F||(F=1,process.env.NODE_ENV==="production"?v.exports=ee():v.exports=re()),v.exports}var ne=te();exports.jsxRuntimeExports=ne;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var g=Object.create;var n=Object.defineProperty;var u=Object.getOwnPropertyDescriptor;var a=Object.getOwnPropertyNames;var s=Object.getPrototypeOf,c=Object.prototype.hasOwnProperty;var f=(t,e,i,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let l of a(e))!c.call(t,l)&&l!==i&&n(t,l,{get:()=>e[l],enumerable:!(r=u(e,l))||r.enumerable});return t};var m=(t,e,i)=>(i=t!=null?g(s(t)):{},f(e||!t||!t.__esModule?n(i,"default",{value:t,enumerable:!0}):i,t));Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});let h=null;function d(){return h||(h=import("@wooorm/starry-night").then(({createStarryNight:t,common:e})=>t(e)).catch(t=>{throw h=null,t})),h}const o={name:"highlight",highlight:async(t,e)=>{const i=await d(),r=i.flagToScope(e);if(!r)return null;const{toHtml:l}=await Promise.resolve().then(()=>require("./index-BJZhyxD_.cjs"));return l(i.highlight(t,r))}};exports.default=o;exports.highlightPlugin=o;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
let i = null;
|
|
2
|
+
function o() {
|
|
3
|
+
return i || (i = import("@wooorm/starry-night").then(({ createStarryNight: t, common: h }) => t(h)).catch((t) => {
|
|
4
|
+
throw i = null, t;
|
|
5
|
+
})), i;
|
|
6
|
+
}
|
|
7
|
+
const a = {
|
|
8
|
+
name: "highlight",
|
|
9
|
+
highlight: async (t, h) => {
|
|
10
|
+
const r = await o(), l = r.flagToScope(h);
|
|
11
|
+
if (!l)
|
|
12
|
+
return null;
|
|
13
|
+
const { toHtml: n } = await import("./index-DWVMYNE4.js");
|
|
14
|
+
return n(r.highlight(t, l));
|
|
15
|
+
}
|
|
16
|
+
};
|
|
17
|
+
export {
|
|
18
|
+
a as default,
|
|
19
|
+
a as highlightPlugin
|
|
20
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r=require("remark-math"),t=require("rehype-katex");require("katex/dist/katex.min.css");const e={name:"katex",remarkPlugins:[r],rehypePlugins:[t]};exports.default=e;exports.katexPlugin=e;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var re=Object.create;var $=Object.defineProperty;var ne=Object.getOwnPropertyDescriptor;var ie=Object.getOwnPropertyNames;var ae=Object.getPrototypeOf,oe=Object.prototype.hasOwnProperty;var se=(t,n,i,c)=>{if(n&&typeof n=="object"||typeof n=="function")for(let o of ie(n))!oe.call(t,o)&&o!==i&&$(t,o,{get:()=>n[o],enumerable:!(c=ne(n,o))||c.enumerable});return t};var ce=(t,n,i)=>(i=t!=null?re(ae(t)):{},se(n||!t||!t.__esModule?$(i,"default",{value:t,enumerable:!0}):i,t));Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const r=require("react"),I=require("./jsx-runtime-nZSsnGb7.cjs"),ue="_mermaidContainer_1x453_1",de="_mermaidCanPan_1x453_9",le="_mermaidPanning_1x453_17",me="_mermaidViewport_1x453_22",fe="_mermaidDiagram_1x453_30",ge="_mermaidError_1x453_41",he="_mermaidErrorDetails_1x453_51",P={mermaidContainer:ue,mermaidCanPan:de,mermaidPanning:le,mermaidViewport:me,mermaidDiagram:fe,mermaidError:ge,mermaidErrorDetails:he},pe="markdown-mermaid";let v=null;function xe(){return v||(v=import("mermaid")),v}function R(t,n,i){if(typeof window>"u"||typeof document>"u")return n;const c=i??document.documentElement;return c&&getComputedStyle(c).getPropertyValue(t).trim()||n}function H(t="system"){if(t==="light"||t==="dark")return t;if(typeof window>"u"||typeof document>"u"||!document.documentElement)return"light";const i=document.documentElement.getAttribute("data-theme");return i==="dark"?"dark":i==="light"?"light":window.matchMedia?.("(prefers-color-scheme: dark)").matches?"dark":"light"}function ye(t,n){const i=t==="dark"?"#d4d4d4":"#222222",c=t==="dark"?"#569cd6":"#1f6feb",o=t==="dark"?"#1e1e1e":"#ffffff",h=t==="dark"?"#2d2d30":"#f6f8fa",p=R("--md-text",i,n),u=R("--md-heading",c,n),_=R("--preview-bg",o,n),l=R("--md-pre-bg",h,n),E=R("--md-code-bg",l,n),f=u;return{startOnLoad:!1,theme:"base",themeVariables:{background:_,fontFamily:"inherit",primaryColor:l,primaryTextColor:p,primaryBorderColor:f,secondaryColor:E,secondaryTextColor:p,tertiaryColor:l,lineColor:f,arrowheadColor:f,textColor:p,edgeLabelBackground:l,clusterBkg:l,clusterBorder:f,labelBoxBorderColor:f,nodeBorder:f,actorBorder:f,actorLineColor:f,noteBorderColor:f}}}function be(t="system"){const[n,i]=r.useState(()=>H(t));return r.useEffect(()=>{if(t==="light"||t==="dark"){i(t);return}if(typeof window>"u"||typeof document>"u"||!document.documentElement)return;const c=()=>i(H(t));c();const o=window.matchMedia("(prefers-color-scheme: dark)"),h=()=>c();try{o.addEventListener("change",h)}catch{o.addListener(h)}const p=new MutationObserver(u=>{for(const _ of u)if(_.type==="attributes"){c();break}});return p.observe(document.documentElement,{attributes:!0,attributeFilter:["data-theme"]}),()=>{try{o.removeEventListener("change",h)}catch{o.removeListener(h)}p.disconnect()}},[t]),n}function T({code:t,theme:n}){const i=r.useRef(null),c=r.useRef(null),o=r.useRef(null),[h,p]=r.useState(null),[u,_]=r.useState(1),[l,E]=r.useState(null),[f,B]=r.useState({x:0,y:0}),[W,X]=r.useState(!1),Y=r.useId(),L=r.useMemo(()=>`${pe}-${Y.replace(/[:]/g,"-")}`,[Y]),F=be(n),k=r.useRef({pointerId:null,lastX:0,lastY:0,active:!1});r.useEffect(()=>{_(1),B({x:0,y:0})},[t]),r.useEffect(()=>{let e=!1;p(null);const a=i.current;return a&&(a.innerHTML=""),o.current=null,E(null),(async()=>{try{const{default:s}=await xe();if(e)return;s.initialize(ye(F,i.current));const{svg:x,bindFunctions:g}=await s.render(L,t.trim());if(e)return;const M=i.current;if(!M)return;M.innerHTML=x,g&&g(M);const d=M.querySelector("svg");if(d){d.style.maxWidth="none",o.current=d;const N=d.getAttribute("width")||"",S=d.getAttribute("height")||"",D=Number.parseFloat(N),j=Number.parseFloat(S),Z=N.includes("%"),ee=S.includes("%");let y=!Number.isNaN(D)&&Number.isFinite(D)&&D>0&&!Z?D:0,b=!Number.isNaN(j)&&Number.isFinite(j)&&j>0&&!ee?j:0;if(!y||!b){const C=d.getBoundingClientRect();y=y||C.width,b=b||C.height}if((!y||!b)&&d.viewBox){const{width:C,height:te}=d.viewBox.baseVal;y=y||C,b=b||te}e||(y>0&&b>0?E(C=>C&&C.width===y&&C.height===b?C:{width:y,height:b}):E(null))}else e||E(null)}catch(s){if(e)return;const x=s instanceof Error?s.message:String(s);p(x);const g=i.current;g&&(g.innerHTML=""),o.current=null,E(null)}})(),()=>{e=!0}},[t,L,F]);const w=r.useCallback(e=>{const{pointerId:a,active:m}=k.current;if(m){if(a!==null){const s=e??c.current;if(s&&typeof s.releasePointerCapture=="function")try{s.releasePointerCapture(a)}catch{}}k.current={pointerId:null,lastX:0,lastY:0,active:!1},X(!1)}},[]),q=r.useCallback(e=>{const a=c.current;if(a){if(e.ctrlKey||e.metaKey){e.preventDefault();const m=a.getBoundingClientRect(),s=e.clientX-m.left,x=e.clientY-m.top;_(g=>{const M=g*(e.deltaY>0?.9:1.1),d=Math.min(Math.max(M,.25),4);return!Number.isFinite(d)||d===g?g:(B(N=>{if(d<=1.0001)return{x:0,y:0};const S=(s-N.x)/g,D=(x-N.y)/g;return{x:s-S*d,y:x-D*d}}),d)});return}u<=1||(e.preventDefault(),B(m=>({x:m.x-e.deltaX,y:m.y-e.deltaY})))}},[u]),A=r.useCallback(e=>{if(e.button!==0||u<=1)return;e.preventDefault();const a=e.currentTarget;if(k.current={pointerId:e.pointerId,lastX:e.clientX,lastY:e.clientY,active:!0},X(!0),typeof a.setPointerCapture=="function")try{a.setPointerCapture(e.pointerId)}catch{}},[u]),O=r.useCallback(e=>{const a=k.current;if(!a.active||a.pointerId!==e.pointerId)return;e.preventDefault();const m=e.clientX-a.lastX,s=e.clientY-a.lastY;!m&&!s||(a.lastX=e.clientX,a.lastY=e.clientY,B(x=>({x:x.x+m,y:x.y+s})))},[]),z=r.useCallback(e=>{k.current.pointerId===e.pointerId&&w(e.currentTarget)},[w]),K=r.useCallback(e=>{k.current.pointerId===e.pointerId&&w(e.currentTarget)},[w]),U=r.useCallback(e=>{k.current.active&&w(e.currentTarget)},[w]);r.useEffect(()=>()=>{w()},[w]),r.useEffect(()=>{const e=o.current;if(!e||!l)return;const a=l.width*u,m=l.height*u;e.style.width=`${a}px`,e.style.height=`${m}px`},[l,u]);const G=r.useMemo(()=>{if(l)return{width:`${l.width*u}px`,height:`${l.height*u}px`}},[l,u]),J=u>1,Q=[P.mermaidContainer,J?P.mermaidCanPan:"",W?P.mermaidPanning:""].filter(Boolean).join(" ");return h?I.jsxRuntimeExports.jsx("div",{className:P.mermaidContainer,children:I.jsxRuntimeExports.jsx("div",{className:P.mermaidError,children:I.jsxRuntimeExports.jsx("div",{className:P.mermaidErrorDetails,children:h})})}):I.jsxRuntimeExports.jsx("div",{className:Q,onWheel:q,children:I.jsxRuntimeExports.jsx("div",{ref:c,className:P.mermaidViewport,style:G,onPointerDown:A,onPointerMove:O,onPointerUp:z,onPointerCancel:K,onPointerLeave:U,children:I.jsxRuntimeExports.jsx("div",{ref:i,className:P.mermaidDiagram,role:"img","aria-label":"Mermaid diagram",style:{transform:`translate(${f.x}px, ${f.y}px)`,transformOrigin:"0 0"}})})})}const V={name:"mermaid",renderFence:({code:t,language:n,theme:i})=>n!=="mermaid"?null:r.createElement(T,{code:t,theme:i})};exports.MermaidDiagram=T;exports.default=V;exports.mermaidPlugin=V;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@import "./css/plugin-mermaid.css";
|