2 lines
62 KiB
JavaScript
2 lines
62 KiB
JavaScript
|
|
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-98c77ebe"],{"00ee":function(t,e,n){"use strict";var i=n("b622"),r=i("toStringTag"),o={};o[r]="z",t.exports="[object z]"===String(o)},"0366":function(t,e,n){"use strict";var i=n("4625"),r=n("59ed"),o=n("40d5"),a=i(i.bind);t.exports=function(t,e){return r(t),void 0===e?t:o?a(t,e):function(){return t.apply(e,arguments)}}},"05dd":function(t,e,n){(function(t){t(n("56b3"),n("a2c1"))})((function(t){t.defineOption("autoCloseTags",!1,(function(e,n,r){if(r!=t.Init&&r&&e.removeKeyMap("autoCloseTags"),n){var a={name:"autoCloseTags"};"object"==typeof n&&!1===n.whenClosing||(a["'/'"]=function(t){return o(t)}),"object"==typeof n&&!1===n.whenOpening||(a["'>'"]=function(t){return i(t)}),e.addKeyMap(a)}}));var e=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],n=["applet","blockquote","body","button","div","dl","fieldset","form","frameset","h1","h2","h3","h4","h5","h6","head","html","iframe","layer","legend","object","ol","p","select","table","ul"];function i(i){if(i.getOption("disableInput"))return t.Pass;for(var r=i.listSelections(),o=[],l=i.getOption("autoCloseTags"),c=0;c<r.length;c++){if(!r[c].empty())return t.Pass;var u=r[c].head,d=i.getTokenAt(u),h=t.innerMode(i.getMode(),d.state),f=h.state,m=h.mode.xmlCurrentTag&&h.mode.xmlCurrentTag(f),p=m&&m.name;if(!p)return t.Pass;var g="html"==h.mode.configuration,v="object"==typeof l&&l.dontCloseTags||g&&e,b="object"==typeof l&&l.indentTags||g&&n;d.end>u.ch&&(p=p.slice(0,p.length-d.end+u.ch));var x=p.toLowerCase();if(!p||"string"==d.type&&(d.end!=u.ch||!/[\"\']/.test(d.string.charAt(d.string.length-1))||1==d.string.length)||"tag"==d.type&&m.close||d.string.indexOf("/")==u.ch-d.start-1||v&&a(v,x)>-1||s(i,h.mode.xmlCurrentContext&&h.mode.xmlCurrentContext(f)||[],p,u,!0))return t.Pass;var y="object"==typeof l&&l.emptyTags;if(y&&a(y,p)>-1)o[c]={text:"/>",newPos:t.Pos(u.line,u.ch+2)};else{var C=b&&a(b,x)>-1;o[c]={indent:C,text:">"+(C?"\n\n":"")+"</"+p+">",newPos:C?t.Pos(u.line+1,0):t.Pos(u.line,u.ch+1)}}}var w="object"==typeof l&&l.dontIndentOnAutoClose;for(c=r.length-1;c>=0;c--){var k=o[c];i.replaceRange(k.text,r[c].head,r[c].anchor,"+insert");var T=i.listSelections().slice(0);T[c]={head:k.newPos,anchor:k.newPos},i.setSelections(T),!w&&k.indent&&(i.indentLine(k.newPos.line,null,!0),i.indentLine(k.newPos.line+1,null,!0))}}function r(e,n){for(var i=e.listSelections(),r=[],o=n?"/":"</",a=e.getOption("autoCloseTags"),l="object"==typeof a&&a.dontIndentOnSlash,c=0;c<i.length;c++){if(!i[c].empty())return t.Pass;var u=i[c].head,d=e.getTokenAt(u),h=t.innerMode(e.getMode(),d.state),f=h.state;if(n&&("string"==d.type||"<"!=d.string.charAt(0)||d.start!=u.ch-1))return t.Pass;var m,p="xml"!=h.mode.name&&"htmlmixed"==e.getMode().name;if(p&&"javascript"==h.mode.name)m=o+"script";else if(p&&"css"==h.mode.name)m=o+"style";else{var g=h.mode.xmlCurrentContext&&h.mode.xmlCurrentContext(f),v=g.length?g[g.length-1]:"";if(!g||g.length&&s(e,g,v,u))return t.Pass;m=o+v}">"!=e.getLine(u.line).charAt(d.end)&&(m+=">"),r[c]=m}if(e.replaceSelections(r),i=e.listSelections(),!l)for(c=0;c<i.length;c++)(c==i.length-1||i[c].head.line<i[c+1].head.line)&&e.indentLine(i[c].head.line)}function o(e){return e.getOption("disableInput")?t.Pass:r(e,!0)}function a(t,e){if(t.indexOf)return t.indexOf(e);for(var n=0,i=t.length;n<i;++n)if(t[n]==e)return n;return-1}function s(e,n,i,r,o){if(!t.scanForClosingTag)return!1;var a=Math.min(e.lastLine()+1,r.line+500),s=t.scanForClosingTag(e,r,null,a);if(!s||s.tag!=i)return!1;for(var l=o?1:0,c=n.length-1;c>=0;c--){if(n[c]!=i)break;++l}r=s.to;for(c=1;c<l;c++){var u=t.scanForClosingTag(e,r,null,a);if(!u||u.tag!=i)return!1;r=u.to}return!0}t.commands.closeTag=function(t){return r(t)}}))},"0aa2":function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA8AAAAPCAYAAAA71pVKAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAADmSURBVCiRpc69SgNBFIbhd8borARBUEkEWzsREW/IRkxhHY0SDotCthK2kFh4Q1YpxELBgDaCFv5Es4nsjI0IppqDX3eKl+fAP2YARCTB1erR1Sh5FNkujIhUbFK/B5bjzfDki4UVOxhUnS4EMEvOPVc
|
||
|
|
//# sourceMappingURL=chunk-98c77ebe.c9ccd446.js.map
|