2 lines
1.5 KiB
JavaScript
2 lines
1.5 KiB
JavaScript
(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[47731],{47731:function(S,i,o){"use strict";o.r(i),o.d(i,{mbox:function(){return E}});var u=["From","Sender","Reply-To","To","Cc","Bcc","Message-ID","In-Reply-To","References","Resent-From","Resent-Sender","Resent-To","Resent-Cc","Resent-Bcc","Resent-Message-ID","Return-Path","Received"],d=["Date","Subject","Comments","Keywords","Resent-Date"],c=/^[ \t]/,f=/^From /,t=new RegExp("^("+u.join("|")+"): "),m=new RegExp("^("+d.join("|")+"): "),p=/^[^:]+:/,h=/^[^ ]+@[^ ]+/,H=/^.*?(?=[^ ]+?@[^ ]+)/,k=/^<.*?>/,v=/^.*?(?=<.*>)/;function R(e){return e==="Subject"?"header":"string"}function s(e,r){if(e.sol()){if(r.inSeparator=!1,r.inHeader&&e.match(c))return null;if(r.inHeader=!1,r.header=null,e.match(f))return r.inHeaders=!0,r.inSeparator=!0,"atom";var n,l=!1;return(n=e.match(m))||(l=!0)&&(n=e.match(t))?(r.inHeaders=!0,r.inHeader=!0,r.emailPermitted=l,r.header=n[1],"atom"):r.inHeaders&&(n=e.match(p))?(r.inHeader=!0,r.emailPermitted=!0,r.header=n[1],"atom"):(r.inHeaders=!1,e.skipToEnd(),null)}if(r.inSeparator)return e.match(h)?"link":(e.match(H)||e.skipToEnd(),"atom");if(r.inHeader){var a=R(r.header);if(r.emailPermitted){if(e.match(k))return a+" link";if(e.match(v))return a}return e.skipToEnd(),a}return e.skipToEnd(),null}const E={name:"mbox",startState:function(){return{inSeparator:!1,inHeader:!1,emailPermitted:!1,header:null,inHeaders:!1}},token:s,blankLine:function(e){e.inHeaders=e.inSeparator=e.inHeader=!1},languageData:{autocomplete:u.concat(d)}}}}]);
|