github.com/oinume/lekcije@v0.0.0-20231017100347-5b4c5eb6ab24/backend/infrastructure/dmm_eikaiwa/testdata/49393_files/2.951ff6ec.chunk.js (about)

     1  (this["webpackJsonp@biboglobal/eikaiwa-core-front"]=this["webpackJsonp@biboglobal/eikaiwa-core-front"]||[]).push([[2],{261:function(t,e,n){t.exports=function(){"use strict";var t=/\r\n?/g,e=/\t/g,n=/\f/g,r=function(r){return r.replace(t,"\n").replace(n,"").replace(e,"    ")},a=function(t,e){var n=t||{};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n},o=function(t,e){var n,o=Object.keys(t).filter((function(e){var n=t[e];if(null==n||null==n.match)return!1;var r=n.order;return"number"===typeof r&&isFinite(r)||"undefined"===typeof console||console.warn("simple-markdown: Invalid order for rule `"+e+"`: "+String(r)),!0}));o.sort((function(e,n){var r=t[e],a=t[n],o=r.order,u=a.order;if(o!==u)return o-u;var l=r.quality?0:1,c=a.quality?0:1;return l!==c?l-c:e<n?-1:e>n?1:0}));var u=function e(r,a){var u=[];for(n=a=a||n;r;){var l=null,c=null,i=null,f=NaN,p=0,s=o[0],d=t[s];do{var h=d.order,m=null==a.prevCapture?"":a.prevCapture[0],y=d.match(r,a,m);if(y){var g=d.quality?d.quality(y,a,m):0;g<=f||(l=s,c=d,i=y,f=g)}p++,s=o[p],d=t[s]}while(d&&(!i||d.order===h&&d.quality));if(null==c||null==i)throw new Error("Could not find a matching rule for the below content. The rule with highest `order` should always match content provided to it. Check the definition of `match` for '"+o[o.length-1]+"'. It seems to not match the following source:\n"+r);if(i.index)throw new Error("`match` must return a capture starting at index 0 (the current parse index). Did you forget a ^ at the start of the RegExp?");var v=c.parse(i,e,a);Array.isArray(v)?Array.prototype.push.apply(u,v):(null==v.type&&(v.type=l),u.push(v)),a.prevCapture=i,r=r.substring(a.prevCapture[0].length)}return u};return function(t,o){return(n=a(o,e)).inline||n.disableAutoBlockNewlines||(t+="\n\n"),n.prevCapture=null,u(r(t),n)}},u=function(t){var e=function(e,n){return n.inline?t.exec(e):null};return e.regex=t,e},l=function(t){var e=function(e,n){return n.inline?null:t.exec(e)};return e.regex=t,e},c=function(t){var e=function(e,n){return t.exec(e)};return e.regex=t,e},i="function"===typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,f=function(t,e,n){return{$$typeof:i,type:t,key:null==e?void 0:e,ref:null,props:n,_owner:null}},p=function(t,e,n,r){n=n||{},r="undefined"===typeof r||r;var a="";for(var o in n){var u=n[o];Object.prototype.hasOwnProperty.call(n,o)&&u&&(a+=" "+y(o)+'="'+y(u)+'"')}var l="<"+t+a+">";return r?l+e+"</"+t+">":l},s={},d=function(t){if(null==t)return null;try{var e=decodeURIComponent(t).replace(/[^A-Za-z0-9/:]/g,"").toLowerCase();if(0===e.indexOf("javascript:")||0===e.indexOf("vbscript:")||0===e.indexOf("data:"))return null}catch(n){return null}return t},h=/[<>&"']/g,m={"<":"&lt;",">":"&gt;","&":"&amp;",'"':"&quot;","'":"&#x27;","/":"&#x2F;","`":"&#96;"},y=function(t){return String(t).replace(h,(function(t){return m[t]}))},g=/\\([^0-9A-Za-z\s])/g,v=function(t){return t.replace(g,"$1")},k=function(t,e,n){var r=n.inline||!1;n.inline=!0;var a=t(e,n);return n.inline=r,a},b=function(t,e,n){var r=n.inline||!1;n.inline=!1;var a=t(e+"\n\n",n);return n.inline=r,a},w=function(t,e,n){return{content:k(e,t[1],n)}},x=function(){return{}},_="(?:[*+-]|\\d+\\.)",E="( *)("+_+") +",S=new RegExp("^"+E),A=new RegExp(E+"[^\\n]*(?:\\n(?!\\1"+_+" )[^\\n]*)*(\n|$)","gm"),R=/\n{2,}$/,$=/^ (?= *`)|(` *) $/g,O=R,T=/ *\n+$/,C=new RegExp("^( *)("+_+") [\\s\\S]+?(?:\n{2,}(?! )(?!\\1"+_+" )\\n*|\\s*\n*$)"),j=/(?:^|\n)( *)$/,P=function(){var t=/^ *\| *| *\| *$/g,e=/ *$/,n=/^ *-+: *$/,r=/^ *:-+: *$/,a=/^ *:-+ *$/,o=function(t){return n.test(t)?"right":r.test(t)?"center":a.test(t)?"left":null},u=function(e,n,r,a){return a&&(e=e.replace(t,"")),e.trim().split("|").map(o)},l=function(t,n,r,a){var o=r.inTable;r.inTable=!0;var u=n(t.trim(),r);r.inTable=o;var l=[[]];return u.forEach((function(t,n){"tableSeparator"===t.type?(!a||0!==n&&n!==u.length-1)&&l.push([]):("text"!==t.type||null!=u[n+1]&&"tableSeparator"!==u[n+1].type||(t.content=t.content.replace(e,"")),l[l.length-1].push(t))})),l},c=function(t,e,n,r){return t.trim().split("\n").map((function(t){return l(t,e,n,r)}))},i=function(t){return function(e,n,r){r.inline=!0;var a=l(e[1],n,r,t),o=u(e[2],n,r,t),i=c(e[3],n,r,t);return r.inline=!1,{type:"table",header:a,align:o,cells:i}}};return{parseTable:i(!0),parseNpTable:i(!1),TABLE_REGEX:/^ *(\|.+)\n *\|( *[-:]+[-| :]*)\n((?: *\|.*(?:\n|$))*)\n*/,NPTABLE_REGEX:/^ *(\S.*\|.*)\n *([-:]+ *\|[-| :]*)\n((?:.*\|.*(?:\n|$))*)\n*/}}(),q="(?:\\[[^\\]]*\\]|[^\\[\\]]|\\](?=[^\\[]*\\]))*",F="\\s*<?((?:\\([^)]*\\)|[^\\s\\\\]|\\\\.)*?)>?(?:\\s+['\"]([\\s\\S]*?)['\"])?\\s*",B=/mailto:/i,N=function(t,e,n){var r=(t[2]||t[1]).replace(/\s+/g," ").toLowerCase();if(e._defs&&e._defs[r]){var a=e._defs[r];n.target=a.target,n.title=a.title}return e._refs=e._refs||{},e._refs[r]=e._refs[r]||[],e._refs[r].push(n),n},I=0,L={Array:{react:function(t,e,n){for(var r=n.key,a=[],o=0,u=0;o<t.length;o++,u++){n.key=""+o;var l=t[o];if("text"===l.type)for(l={type:"text",content:l.content};o+1<t.length&&"text"===t[o+1].type;o++)l.content+=t[o+1].content;a.push(e(l,n))}return n.key=r,a},html:function(t,e,n){for(var r="",a=0;a<t.length;a++){var o=t[a];if("text"===o.type)for(o={type:"text",content:o.content};a+1<t.length&&"text"===t[a+1].type;a++)o.content+=t[a+1].content;r+=e(o,n)}return r}},heading:{order:I++,match:l(/^ *(#{1,6})([^\n]+?)#* *(?:\n *)+\n/),parse:function(t,e,n){return{level:t[1].length,content:k(e,t[2].trim(),n)}},react:function(t,e,n){return f("h"+t.level,n.key,{children:e(t.content,n)})},html:function(t,e,n){return p("h"+t.level,e(t.content,n))}},nptable:{order:I++,match:l(P.NPTABLE_REGEX),parse:P.parseNpTable,react:null,html:null},lheading:{order:I++,match:l(/^([^\n]+)\n *(=|-){3,} *(?:\n *)+\n/),parse:function(t,e,n){return{type:"heading",level:"="===t[2]?1:2,content:k(e,t[1],n)}},react:null,html:null},hr:{order:I++,match:l(/^( *[-*_]){3,} *(?:\n *)+\n/),parse:x,react:function(t,e,n){return f("hr",n.key,s)},html:function(t,e,n){return"<hr>"}},codeBlock:{order:I++,match:l(/^(?:    [^\n]+\n*)+(?:\n *)+\n/),parse:function(t,e,n){return{lang:void 0,content:t[0].replace(/^    /gm,"").replace(/\n+$/,"")}},react:function(t,e,n){var r=t.lang?"markdown-code-"+t.lang:void 0;return f("pre",n.key,{children:f("code",null,{className:r,children:t.content})})},html:function(t,e,n){var r=t.lang?"markdown-code-"+t.lang:void 0,a=p("code",y(t.content),{class:r});return p("pre",a)}},fence:{order:I++,match:l(/^ *(`{3,}|~{3,}) *(?:(\S+) *)?\n([\s\S]+?)\n?\1 *(?:\n *)+\n/),parse:function(t,e,n){return{type:"codeBlock",lang:t[2]||void 0,content:t[3]}},react:null,html:null},blockQuote:{order:I++,match:l(/^( *>[^\n]+(\n[^\n]+)*\n*)+\n{2,}/),parse:function(t,e,n){return{content:e(t[0].replace(/^ *> ?/gm,""),n)}},react:function(t,e,n){return f("blockquote",n.key,{children:e(t.content,n)})},html:function(t,e,n){return p("blockquote",e(t.content,n))}},list:{order:I++,match:function(t,e){var n=null==e.prevCapture?"":e.prevCapture[0],r=j.exec(n),a=e._list||!e.inline;return r&&a?(t=r[1]+t,C.exec(t)):null},parse:function(t,e,n){var r=t[2],a=r.length>1,o=a?+r:void 0,u=t[0].replace(O,"\n").match(A),l=!1;return{ordered:a,start:o,items:u.map((function(t,r){var a=S.exec(t),o=a?a[0].length:0,c=new RegExp("^ {1,"+o+"}","gm"),i=t.replace(c,"").replace(S,""),f=r===u.length-1,p=-1!==i.indexOf("\n\n")||f&&l;l=p;var s,d=n.inline,h=n._list;n._list=!0,p?(n.inline=!1,s=i.replace(T,"\n\n")):(n.inline=!0,s=i.replace(T,""));var m=e(s,n);return n.inline=d,n._list=h,m}))}},react:function(t,e,n){var r=t.ordered?"ol":"ul";return f(r,n.key,{start:t.start,children:t.items.map((function(t,r){return f("li",""+r,{children:e(t,n)})}))})},html:function(t,e,n){var r=t.items.map((function(t){return p("li",e(t,n))})).join(""),a=t.ordered?"ol":"ul",o={start:t.start};return p(a,r,o)}},def:{order:I++,match:l(/^ *\[([^\]]+)\]: *<?([^\s>]*)>?(?: +["(]([^\n]+)[")])? *\n(?: *\n)*/),parse:function(t,e,n){var r=t[1].replace(/\s+/g," ").toLowerCase(),a=t[2],o=t[3];return n._refs&&n._refs[r]&&n._refs[r].forEach((function(t){t.target=a,t.title=o})),n._defs=n._defs||{},n._defs[r]={target:a,title:o},{def:r,target:a,title:o}},react:function(){return null},html:function(){return""}},table:{order:I++,match:l(P.TABLE_REGEX),parse:P.parseTable,react:function(t,e,n){var r=function(e){return null==t.align[e]?{}:{textAlign:t.align[e]}},a=t.header.map((function(t,a){return f("th",""+a,{style:r(a),scope:"col",children:e(t,n)})})),o=t.cells.map((function(t,a){return f("tr",""+a,{children:t.map((function(t,a){return f("td",""+a,{style:r(a),children:e(t,n)})}))})}));return f("table",n.key,{children:[f("thead","thead",{children:f("tr",null,{children:a})}),f("tbody","tbody",{children:o})]})},html:function(t,e,n){var r=function(e){return null==t.align[e]?"":"text-align:"+t.align[e]+";"},a=t.header.map((function(t,a){return p("th",e(t,n),{style:r(a),scope:"col"})})).join(""),o=t.cells.map((function(t){var a=t.map((function(t,a){return p("td",e(t,n),{style:r(a)})})).join("");return p("tr",a)})).join(""),u=p("thead",p("tr",a)),l=p("tbody",o);return p("table",u+l)}},newline:{order:I++,match:l(/^(?:\n *)*\n/),parse:x,react:function(t,e,n){return"\n"},html:function(t,e,n){return"\n"}},paragraph:{order:I++,match:l(/^((?:[^\n]|\n(?! *\n))+)(?:\n *)+\n/),parse:w,react:function(t,e,n){return f("div",n.key,{className:"paragraph",children:e(t.content,n)})},html:function(t,e,n){var r={class:"paragraph"};return p("div",e(t.content,n),r)}},escape:{order:I++,match:u(/^\\([^0-9A-Za-z\s])/),parse:function(t,e,n){return{type:"text",content:t[1]}},react:null,html:null},tableSeparator:{order:I++,match:function(t,e){return e.inTable?/^ *\| */.exec(t):null},parse:function(){return{type:"tableSeparator"}},react:function(){return" | "},html:function(){return" &vert; "}},autolink:{order:I++,match:u(/^<([^: >]+:\/[^ >]+)>/),parse:function(t,e,n){return{type:"link",content:[{type:"text",content:t[1]}],target:t[1]}},react:null,html:null},mailto:{order:I++,match:u(/^<([^ >]+@[^ >]+)>/),parse:function(t,e,n){var r=t[1],a=t[1];return B.test(a)||(a="mailto:"+a),{type:"link",content:[{type:"text",content:r}],target:a}},react:null,html:null},url:{order:I++,match:u(/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/),parse:function(t,e,n){return{type:"link",content:[{type:"text",content:t[1]}],target:t[1],title:void 0}},react:null,html:null},link:{order:I++,match:u(new RegExp("^\\[("+q+")\\]\\("+F+"\\)")),parse:function(t,e,n){return{content:e(t[1],n),target:v(t[2]),title:t[3]}},react:function(t,e,n){return f("a",n.key,{href:d(t.target),title:t.title,children:e(t.content,n)})},html:function(t,e,n){var r={href:d(t.target),title:t.title};return p("a",e(t.content,n),r)}},image:{order:I++,match:u(new RegExp("^!\\[("+q+")\\]\\("+F+"\\)")),parse:function(t,e,n){return{alt:t[1],target:v(t[2]),title:t[3]}},react:function(t,e,n){return f("img",n.key,{src:d(t.target),alt:t.alt,title:t.title})},html:function(t,e,n){var r={src:d(t.target),alt:t.alt,title:t.title};return p("img","",r,!1)}},reflink:{order:I++,match:u(new RegExp("^\\[("+q+")\\]\\s*\\[([^\\]]*)\\]")),parse:function(t,e,n){return N(t,n,{type:"link",content:e(t[1],n)})},react:null,html:null},refimage:{order:I++,match:u(new RegExp("^!\\[("+q+")\\]\\s*\\[([^\\]]*)\\]")),parse:function(t,e,n){return N(t,n,{type:"image",alt:t[1]})},react:null,html:null},em:{order:I,match:u(new RegExp("^\\b_((?:__|\\\\[\\s\\S]|[^\\\\_])+?)_\\b|^\\*(?=\\S)((?:\\*\\*|\\\\[\\s\\S]|\\s+(?:\\\\[\\s\\S]|[^\\s\\*\\\\]|\\*\\*)|[^\\s\\*\\\\])+?)\\*(?!\\*)")),quality:function(t){return t[0].length+.2},parse:function(t,e,n){return{content:e(t[2]||t[1],n)}},react:function(t,e,n){return f("em",n.key,{children:e(t.content,n)})},html:function(t,e,n){return p("em",e(t.content,n))}},strong:{order:I,match:u(/^\*\*((?:\\[\s\S]|[^\\])+?)\*\*(?!\*)/),quality:function(t){return t[0].length+.1},parse:w,react:function(t,e,n){return f("strong",n.key,{children:e(t.content,n)})},html:function(t,e,n){return p("strong",e(t.content,n))}},u:{order:I++,match:u(/^__((?:\\[\s\S]|[^\\])+?)__(?!_)/),quality:function(t){return t[0].length},parse:w,react:function(t,e,n){return f("u",n.key,{children:e(t.content,n)})},html:function(t,e,n){return p("u",e(t.content,n))}},del:{order:I++,match:u(/^~~(?=\S)((?:\\[\s\S]|~(?!~)|[^\s~\\]|\s(?!~~))+?)~~/),parse:w,react:function(t,e,n){return f("del",n.key,{children:e(t.content,n)})},html:function(t,e,n){return p("del",e(t.content,n))}},inlineCode:{order:I++,match:u(/^(`+)([\s\S]*?[^`])\1(?!`)/),parse:function(t,e,n){return{content:t[2].replace($,"$1")}},react:function(t,e,n){return f("code",n.key,{children:t.content})},html:function(t,e,n){return p("code",y(t.content))}},br:{order:I++,match:c(/^ {2,}\n/),parse:x,react:function(t,e,n){return f("br",n.key,s)},html:function(t,e,n){return"<br>"}},text:{order:I++,match:c(/^[\s\S]+?(?=[^0-9A-Za-z\s\u00c0-\uffff]|\n\n| {2,}\n|\w+:\S|$)/),parse:function(t,e,n){return{content:t[0]}},react:function(t,e,n){return t.content},html:function(t,e,n){return y(t.content)}}},z=function(t,e){return e||"undefined"===typeof console||console.warn("simple-markdown ruleOutput should take 'react' or 'html' as the second argument."),function(n,r,a){return t[n.type][e](n,r,a)}},G=function(t){return function e(n,r){if(r=r||{},Array.isArray(n)){for(var a=r.key,o=[],u=null,l=0;l<n.length;l++){r.key=""+l;var c=e(n[l],r);"string"===typeof c&&"string"===typeof u?(u+=c,o[o.length-1]=u):(o.push(c),u=c)}return r.key=a,o}return t(n,e,r)}},X=function(t){return function e(n,r){return r=r||{},Array.isArray(n)?n.map((function(t){return e(t,r)})).join(""):t(n,e,r)}},Z=function(t,e,n){if(!e)throw new Error("simple-markdown: outputFor: `property` must be defined. if you just upgraded, you probably need to replace `outputFor` with `reactFor`");var r,o=(t.Array||L.Array)[e];if(!o)throw new Error("simple-markdown: outputFor: to join nodes of type `"+e+"` you must provide an `Array:` joiner rule with that type, Please see the docs for details on specifying an Array rule.");var u=o,l=function n(a,o){return r=o=o||r,Array.isArray(a)?u(a,n,o):t[a.type][e](a,n,o)};return function(t,e){return r=a(e,n),l(t,r)}},U=o(L),H=function(t,e){return(e=e||{}).inline=!1,U(t,e)},J=function(t,e){return(e=e||{}).inline=!0,U(t,e)},D=function(t,e){var n=R.test(t);return(e=e||{}).inline=!n,U(t,e)},M=Z(L,"react"),Q=Z(L,"html"),K=function(t,e){return M(H(t,e),e)},V=function(t){var e={};for(var n in t)"source"!==n&&Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.children=K(t.source),f("div",null,e)};return{defaultRules:L,parserFor:o,outputFor:Z,inlineRegex:u,blockRegex:l,anyScopeRegex:c,parseInline:k,parseBlock:b,markdownToReact:K,markdownToHtml:function(t,e){return Q(H(t,e),e)},ReactMarkdown:V,defaultBlockParse:H,defaultInlineParse:J,defaultImplicitParse:D,defaultReactOutput:M,defaultHtmlOutput:Q,preprocess:r,sanitizeText:y,sanitizeUrl:d,unescapeUrl:v,htmlTag:p,reactElement:f,defaultRawParse:U,ruleOutput:z,reactFor:G,htmlFor:X,defaultParse:function(){return"undefined"!==typeof console&&console.warn("defaultParse is deprecated, please use `defaultImplicitParse`"),D.apply(null,arguments)},defaultOutput:function(){return"undefined"!==typeof console&&console.warn("defaultOutput is deprecated, please use `defaultReactOutput`"),M.apply(null,arguments)}}}()}}]);
     2  //# sourceMappingURL=2.951ff6ec.chunk.js.map