forked from SimplePEG/simplepeg.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.b5d2d6fc8eea73dee145.bundle.js
More file actions
1 lines (1 loc) · 33.3 KB
/
main.b5d2d6fc8eea73dee145.bundle.js
File metadata and controls
1 lines (1 loc) · 33.3 KB
1
webpackJsonp([1],{"+h1B":function(n,l,t){"use strict";var u=t("/oeL"),e=t("aR8+"),r=t("wQAS"),a=t("ZErz"),o=t("LWGJ"),_=t("LD44"),i=t("ERzY"),c=t("NIw1"),s=t("AQta"),d=t("q4dy"),p=t("qbdv"),f=t("fc+i"),m=t("f9zQ"),g=t("fL27"),b=t("EyWH"),h=t("p4Sk"),v=t("Z04r"),x=t("BkNc"),C=t("7EI0"),L=t("biyL"),y=t("ECCM"),E=t("xtl5"),P=t("A/nq"),k=t("M5kg"),O=t("Y20a"),M=t("iCB8");t.d(l,"a",function(){return I});var I=u.b(e.a,[r.a],function(n){return u.c([u.d(512,u.e,u.f,[[8,[a.a,o.a,_.a,i.a,c.a,s.a,d.a]],[3,u.e],u.g]),u.d(5120,u.h,u.i,[[3,u.h]]),u.d(4608,p.a,p.b,[u.h]),u.d(5120,u.j,u.k,[]),u.d(5120,u.l,u.m,[]),u.d(5120,u.n,u.o,[]),u.d(4608,f.b,f.c,[p.c]),u.d(6144,u.p,null,[f.b]),u.d(4608,f.d,f.e,[]),u.d(5120,f.f,function(n,l,t,u){return[new f.g(n),new f.h(l),new f.i(t,u)]},[p.c,p.c,p.c,f.d]),u.d(4608,f.j,f.j,[f.f,u.q]),u.d(135680,f.k,f.k,[p.c]),u.d(4608,f.l,f.l,[f.j,f.k]),u.d(5120,m.a,g.a,[]),u.d(5120,m.b,g.b,[]),u.d(4608,m.c,g.c,[m.a,m.b]),u.d(5120,u.r,g.d,[f.l,m.c,u.q]),u.d(6144,f.m,null,[f.k]),u.d(4608,u.s,u.s,[u.q]),u.d(4608,f.n,f.n,[p.c]),u.d(4608,f.o,f.o,[p.c]),u.d(4608,b.a,g.e,[u.r]),u.d(6144,h.a,null,[f.p]),u.d(4608,h.b,h.b,[[2,h.a]]),u.d(4608,h.c,h.c,[]),u.d(5120,v.a,v.b,[[3,v.a],u.q,h.c]),u.d(5120,v.c,v.d,[[3,v.c],v.a]),u.d(4608,v.e,v.e,[v.a,v.c]),u.d(4608,h.d,h.d,[]),u.d(5120,v.f,v.g,[[3,v.f],u.q,h.c]),u.d(5120,x.a,x.b,[x.c]),u.d(4608,x.d,x.d,[]),u.d(6144,x.e,null,[x.d]),u.d(135680,x.f,x.f,[x.c,u.t,u.u,u.v,x.e]),u.d(4608,x.g,x.g,[]),u.d(5120,x.h,x.i,[x.j]),u.d(5120,u.w,function(n){return[n]},[x.h]),u.d(4608,C.a,C.a,[]),u.d(512,L.AceEditorModule,L.AceEditorModule,[]),u.d(512,p.d,p.d,[]),u.d(1024,u.x,f.q,[]),u.d(1024,u.y,function(){return[x.k()]},[]),u.d(512,x.j,x.j,[u.v]),u.d(1024,u.z,function(n,l,t){return[f.r(n,l),x.l(t)]},[[2,f.s],[2,u.y],x.j]),u.d(512,u.A,u.A,[[2,u.z]]),u.d(131584,u.B,u.B,[u.q,u.C,u.v,u.x,u.e,u.A]),u.d(2048,u.D,null,[u.B]),u.d(512,u.E,u.E,[u.D]),u.d(512,f.t,f.t,[[3,f.t]]),u.d(512,g.f,g.f,[]),u.d(1024,x.m,x.n,[[3,x.c]]),u.d(512,x.o,x.p,[]),u.d(512,x.q,x.q,[]),u.d(256,x.r,{useHash:!0},[]),u.d(1024,p.e,x.s,[p.f,[2,p.g],x.r]),u.d(512,p.h,p.h,[p.e]),u.d(512,u.u,u.u,[]),u.d(512,u.t,u.F,[u.u,[2,u.G]]),u.d(1024,x.t,function(){return[[{path:"",component:y.a},{path:"quick-start",component:E.a},{path:"languages",component:P.a},{path:"visitors",component:k.a},{path:"documentation",component:O.a},{path:"playground",component:M.a}]]},[]),u.d(1024,x.c,x.u,[u.D,x.o,x.q,p.h,u.v,u.t,u.u,x.t,x.r,[2,x.v],[2,x.w]]),u.d(512,x.x,x.x,[[2,x.m],[2,x.c]]),u.d(512,v.h,v.h,[]),u.d(512,h.e,h.e,[]),u.d(256,v.i,!0,[]),u.d(512,v.j,v.j,[[2,f.p],[2,v.i]]),u.d(512,v.k,v.k,[]),u.d(512,h.f,h.f,[]),u.d(512,h.g,h.g,[]),u.d(512,v.l,v.l,[]),u.d(512,v.m,v.m,[]),u.d(512,h.h,h.h,[]),u.d(512,v.n,v.n,[]),u.d(512,v.o,v.o,[]),u.d(512,v.p,v.p,[]),u.d(512,v.q,v.q,[]),u.d(512,e.a,e.a,[])])})},0:function(n,l,t){n.exports=t("cDNt")},"2s64":function(n,l,t){"use strict";t.d(l,"a",function(){return u});var u=["[_nghost-%COMP%]{display:-webkit-box;display:-ms-flexbox;display:flex}.language[_ngcontent-%COMP%]{margin:30px;-webkit-box-flex:1;-ms-flex:1;flex:1}"]},"7EI0":function(n,l,t){"use strict";t.d(l,"a",function(){return u});var u=function(){function n(){this.languages=[{name:"JavaScript",github:"https://github.com/SimplePEG/JavaScript"},{name:"Python",github:"https://github.com/SimplePEG/Python"}]}return n.ctorParameters=function(){return[]},n}()},"9w5t":function(n,l,t){"use strict";var u=t("FHn3");t.n(u);t.d(l,"a",function(){return r});var e=this&&this.__extends||function(){var n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,l){n.__proto__=l}||function(n,l){for(var t in l)l.hasOwnProperty(t)&&(n[t]=l[t])};return function(l,t){function u(){this.constructor=l}n(l,t),l.prototype=null===t?Object.create(t):(u.prototype=t.prototype,new u)}}(),r=function(n){function l(){return null!==n&&n.apply(this,arguments)||this}return e(l,n),l.prototype.init=function(){n.prototype.init.call(this),this._editor.$blockScrolling=1/0},l}(u.AceEditorComponent)},"A/nq":function(n,l,t){"use strict";var u=t("7EI0");t.d(l,"a",function(){return e});var e=function(){function n(n){this.languagesService=n}return n.prototype.ngOnInit=function(){},n.prototype.notImplemented=function(){alert("Not implemented")},n.prototype.goToGitHub=function(n){window.open(n.github)},n.ctorParameters=function(){return[{type:u.a}]},n}()},AQta:function(n,l,t){"use strict";function u(n){return h._30(0,[(n()(),h._31(0,null,null,1,"i",[["class","material-icons"]],null,null,null,null,null)),(n()(),h._33(null,["report_problem"]))],null,null)}function e(n){return h._30(0,[(n()(),h._31(0,null,null,1,"pre",[["class","error"]],null,null,null,null,null)),(n()(),h._33(null,["",""]))],null,function(n,l){n(l,1,0,l.component.grammarError)})}function r(n){return h._30(0,[(n()(),h._31(0,null,null,1,"i",[["class","material-icons"]],null,null,null,null,null)),(n()(),h._33(null,["report_problem"]))],null,null)}function a(n){return h._30(0,[(n()(),h._31(0,null,null,1,"pre",[["class","error"]],null,null,null,null,null)),(n()(),h._33(null,["",""]))],null,function(n,l){n(l,1,0,l.component.textError)})}function o(n){return h._30(0,[(n()(),h._31(0,null,null,2,"pre",[],null,null,null,null,null)),(n()(),h._33(null,["",""])),h._42(0,v.u,[])],null,function(n,l){var t=l.component;n(l,1,0,h._43(l,1,0,h._34(l,2).transform(t.ast)))})}function _(n){return h._30(0,[(n()(),h._31(0,null,null,1,"pre",[],null,null,null,null,null)),(n()(),h._33(null,["no result"]))],null,null)}function i(n){return h._30(0,[(n()(),h._31(0,null,null,2,"pre",[],null,null,null,null,null)),(n()(),h._33(null,["",""])),h._42(0,v.u,[])],null,function(n,l){var t=l.component;n(l,1,0,h._43(l,1,0,h._34(l,2).transform(t.meta)))})}function c(n){return h._30(0,[(n()(),h._31(0,null,null,1,"pre",[],null,null,null,null,null)),(n()(),h._33(null,["no meta info"]))],null,null)}function s(n){return h._30(0,[(n()(),h._31(0,null,null,2,"pre",[],null,null,null,null,null)),(n()(),h._33(null,["",""])),h._42(0,v.u,[])],null,function(n,l){var t=l.component;n(l,1,0,h._43(l,1,0,h._34(l,2).transform(t.ast)))})}function d(n){return h._30(0,[(n()(),h._31(0,null,null,1,"pre",[],null,null,null,null,null)),(n()(),h._33(null,["no result"]))],null,null)}function p(n){return h._30(0,[(n()(),h._31(0,null,null,2,"pre",[],null,null,null,null,null)),(n()(),h._33(null,["",""])),h._42(0,v.u,[])],null,function(n,l){var t=l.component;n(l,1,0,h._43(l,1,0,h._34(l,2).transform(t.converted_ast)))})}function f(n){return h._30(0,[(n()(),h._31(0,null,null,1,"pre",[],null,null,null,null,null)),(n()(),h._33(null,["no converted result"]))],null,null)}function m(n){return h._30(0,[(n()(),h._31(0,null,null,137,"div",[["class","wrapper"]],null,null,null,null,null)),(n()(),h._33(null,["\n\n "])),(n()(),h._31(0,null,null,21,"md-card",[["class","grammar mat-card"]],null,null,null,x.e,x.f)),h._32(16384,null,0,C.r,[[2,C.s],h.L],null,null),h._32(49152,null,0,C._32,[],null,null),(n()(),h._33(0,["\n "])),(n()(),h._31(0,null,0,1,"h4",[],null,null,null,null,null)),(n()(),h._33(null,["Grammar"])),(n()(),h._38(16777216,null,0,1,null,u)),h._32(16384,null,0,v.q,[h.X,h.W],{ngIf:[0,"ngIf"]},null),(n()(),h._33(0,["\n "])),(n()(),h._31(0,null,0,8,"md-card-content",[["class","mat-card-content"]],null,null,null,null,null)),h._32(16384,null,0,C.r,[[2,C.s],h.L],null,null),h._32(16384,null,0,C._93,[],null,null),(n()(),h._33(null,["\n "])),(n()(),h._31(0,null,null,3,"app-ace-editor",[["class","editor"]],null,[[null,"textChanged"]],function(n,l,t){var u=!0,e=n.component;if("textChanged"===l){u=!1!==e.onGrammarChange(t)&&u}return u},y.a,y.b)),h._40(5120,null,E.a,function(n){return[n]},[P.AceEditorComponent]),h._32(114688,null,0,k.a,[h.L],{mode:[0,"mode"],text:[1,"text"]},{textChanged:"textChanged"}),(n()(),h._33(null,["\n "])),(n()(),h._33(null,["\n "])),(n()(),h._33(0,["\n "])),(n()(),h._38(16777216,null,0,1,null,e)),h._32(16384,null,0,v.q,[h.X,h.W],{ngIf:[0,"ngIf"]},null),(n()(),h._33(0,["\n "])),(n()(),h._33(null,["\n\n "])),(n()(),h._31(0,null,null,21,"md-card",[["class","text mat-card"]],null,null,null,x.e,x.f)),h._32(16384,null,0,C.r,[[2,C.s],h.L],null,null),h._32(49152,null,0,C._32,[],null,null),(n()(),h._33(0,["\n "])),(n()(),h._31(0,null,0,1,"h4",[],null,null,null,null,null)),(n()(),h._33(null,["Text"])),(n()(),h._38(16777216,null,0,1,null,r)),h._32(16384,null,0,v.q,[h.X,h.W],{ngIf:[0,"ngIf"]},null),(n()(),h._33(0,["\n "])),(n()(),h._31(0,null,0,8,"md-card-content",[["class","mat-card-content"]],null,null,null,null,null)),h._32(16384,null,0,C.r,[[2,C.s],h.L],null,null),h._32(16384,null,0,C._93,[],null,null),(n()(),h._33(null,["\n "])),(n()(),h._31(0,null,null,3,"app-ace-editor",[["class","editor"]],null,[[null,"textChanged"]],function(n,l,t){var u=!0,e=n.component;if("textChanged"===l){u=!1!==e.onTextChange(t)&&u}return u},y.a,y.b)),h._40(5120,null,E.a,function(n){return[n]},[P.AceEditorComponent]),h._32(114688,null,0,k.a,[h.L],{text:[0,"text"]},{textChanged:"textChanged"}),(n()(),h._33(null,["\n "])),(n()(),h._33(null,["\n "])),(n()(),h._33(0,["\n "])),(n()(),h._38(16777216,null,0,1,null,a)),h._32(16384,null,0,v.q,[h.X,h.W],{ngIf:[0,"ngIf"]},null),(n()(),h._33(0,["\n "])),(n()(),h._33(null,["\n\n "])),(n()(),h._31(0,null,null,88,"md-card",[["class","result mat-card"]],null,null,null,x.e,x.f)),h._32(16384,null,0,C.r,[[2,C.s],h.L],null,null),h._32(49152,null,0,C._32,[],null,null),(n()(),h._33(0,["\n "])),(n()(),h._31(0,null,0,83,"md-card-content",[["class","mat-card-content"]],null,null,null,null,null)),h._32(16384,null,0,C.r,[[2,C.s],h.L],null,null),h._32(16384,null,0,C._93,[],null,null),(n()(),h._33(null,["\n "])),(n()(),h._31(0,null,null,78,"md-tab-group",[["class","mat-tab-group"]],[[2,"mat-tab-group-dynamic-height",null],[2,"mat-tab-group-inverted-header",null]],null,null,x.g,x.h)),h._32(16384,null,0,C.r,[[2,C.s],h.L],null,null),h._32(10534912,null,1,C._88,[h.R],null,null),h._35(603979776,1,{_tabs:1}),(n()(),h._33(null,["\n "])),(n()(),h._31(16777216,null,null,10,"md-tab",[["label","Result"]],null,null,null,x.i,x.j)),h._32(16384,null,0,C.r,[[2,C.s],h.L],null,null),h._32(114688,[[1,4]],1,C._89,[h.X],{textLabel:[0,"textLabel"]},null),h._35(335544320,2,{templateLabel:0}),(n()(),h._33(0,["\n "])),(n()(),h._38(16777216,null,0,1,null,o)),h._32(16384,null,0,v.q,[h.X,h.W],{ngIf:[0,"ngIf"]},null),(n()(),h._33(0,["\n "])),(n()(),h._38(16777216,null,0,1,null,_)),h._32(16384,null,0,v.q,[h.X,h.W],{ngIf:[0,"ngIf"]},null),(n()(),h._33(0,["\n "])),(n()(),h._33(null,["\n "])),(n()(),h._31(16777216,null,null,10,"md-tab",[["label","Meta Info"]],null,null,null,x.i,x.j)),h._32(16384,null,0,C.r,[[2,C.s],h.L],null,null),h._32(114688,[[1,4]],1,C._89,[h.X],{textLabel:[0,"textLabel"]},null),h._35(335544320,3,{templateLabel:0}),(n()(),h._33(0,["\n "])),(n()(),h._38(16777216,null,0,1,null,i)),h._32(16384,null,0,v.q,[h.X,h.W],{ngIf:[0,"ngIf"]},null),(n()(),h._33(0,["\n "])),(n()(),h._38(16777216,null,0,1,null,c)),h._32(16384,null,0,v.q,[h.X,h.W],{ngIf:[0,"ngIf"]},null),(n()(),h._33(0,["\n "])),(n()(),h._33(null,["\n "])),(n()(),h._31(16777216,null,null,48,"md-tab",[["label","Visitor"]],null,null,null,x.i,x.j)),h._32(16384,null,0,C.r,[[2,C.s],h.L],null,null),h._32(114688,[[1,4]],1,C._89,[h.X],{textLabel:[0,"textLabel"]},null),h._35(335544320,4,{templateLabel:0}),(n()(),h._33(0,["\n "])),(n()(),h._31(0,null,0,42,"div",[["class","visitor"]],null,null,null,null,null)),(n()(),h._33(null,["\n "])),(n()(),h._31(0,null,null,4,"button",[["class","mat-raised-button"],["md-raised-button",""]],[[8,"disabled",0]],[[null,"click"]],function(n,l,t){var u=!0,e=n.component;if("click"===l){u=!1!==e.generateVisitor()&&u}return u},x.k,x.l)),h._32(16384,null,0,C.r,[[2,C.s],h.L],null,null),h._32(180224,null,0,C._28,[h.R,h.L,O.c,C.f],null,null),h._32(16384,null,0,C._94,[],null,null),(n()(),h._33(0,["Generate from grammar"])),(n()(),h._33(null,["\n "])),(n()(),h._31(0,null,null,3,"app-ace-editor",[["class","visitor-editor"]],null,[[null,"textChanged"]],function(n,l,t){var u=!0,e=n.component;if("textChanged"===l){u=!1!==e.onVisitorChange(t)&&u}return u},y.a,y.b)),h._40(5120,null,E.a,function(n){return[n]},[P.AceEditorComponent]),h._32(114688,null,0,k.a,[h.L],{mode:[0,"mode"],text:[1,"text"]},{textChanged:"textChanged"}),(n()(),h._33(null,["\n "])),(n()(),h._33(null,["\n "])),(n()(),h._31(0,null,null,28,"md-tab-group",[["class","mat-tab-group"]],[[2,"mat-tab-group-dynamic-height",null],[2,"mat-tab-group-inverted-header",null]],null,null,x.g,x.h)),h._32(16384,null,0,C.r,[[2,C.s],h.L],null,null),h._32(10534912,null,1,C._88,[h.R],null,null),h._35(603979776,5,{_tabs:1}),(n()(),h._33(null,["\n "])),(n()(),h._31(16777216,null,null,10,"md-tab",[["label","Original Result"]],null,null,null,x.i,x.j)),h._32(16384,null,0,C.r,[[2,C.s],h.L],null,null),h._32(114688,[[5,4]],1,C._89,[h.X],{textLabel:[0,"textLabel"]},null),h._35(335544320,6,{templateLabel:0}),(n()(),h._33(0,["\n "])),(n()(),h._38(16777216,null,0,1,null,s)),h._32(16384,null,0,v.q,[h.X,h.W],{ngIf:[0,"ngIf"]},null),(n()(),h._33(0,["\n "])),(n()(),h._38(16777216,null,0,1,null,d)),h._32(16384,null,0,v.q,[h.X,h.W],{ngIf:[0,"ngIf"]},null),(n()(),h._33(0,["\n "])),(n()(),h._33(null,["\n "])),(n()(),h._31(16777216,null,null,10,"md-tab",[["label","Converted Result"]],null,null,null,x.i,x.j)),h._32(16384,null,0,C.r,[[2,C.s],h.L],null,null),h._32(114688,[[5,4]],1,C._89,[h.X],{textLabel:[0,"textLabel"]},null),h._35(335544320,7,{templateLabel:0}),(n()(),h._33(0,["\n "])),(n()(),h._38(16777216,null,0,1,null,p)),h._32(16384,null,0,v.q,[h.X,h.W],{ngIf:[0,"ngIf"]},null),(n()(),h._33(0,["\n "])),(n()(),h._38(16777216,null,0,1,null,f)),h._32(16384,null,0,v.q,[h.X,h.W],{ngIf:[0,"ngIf"]},null),(n()(),h._33(0,["\n "])),(n()(),h._33(null,["\n "])),(n()(),h._33(null,["\n "])),(n()(),h._33(0,["\n "])),(n()(),h._33(null,["\n "])),(n()(),h._33(null,["\n "])),(n()(),h._33(0,["\n "])),(n()(),h._33(null,["\n\n "])),(n()(),h._33(null,["\n"]))],function(n,l){var t=l.component;n(l,9,0,t.grammarError);n(l,17,0,"ruby",t.grammar),n(l,22,0,t.grammarError),n(l,32,0,t.textError),n(l,40,0,t.text),n(l,45,0,t.textError);n(l,63,0,"Result"),n(l,67,0,t.ast),n(l,70,0,!t.ast);n(l,75,0,"Meta Info"),n(l,79,0,t.meta),n(l,82,0,!t.meta);n(l,87,0,"Visitor");n(l,100,0,"javascript",t.visitor);n(l,110,0,"Original Result"),n(l,114,0,t.ast),n(l,117,0,!t.ast);n(l,122,0,"Converted Result"),n(l,126,0,t.converted_ast),n(l,129,0,!t.converted_ast)},function(n,l){n(l,56,0,h._34(l,58).dynamicHeight,"below"===h._34(l,58).headerPosition),n(l,92,0,h._34(l,94).disabled||null),n(l,103,0,h._34(l,105).dynamicHeight,"below"===h._34(l,105).headerPosition)})}function g(n){return h._30(0,[(n()(),h._31(0,null,null,1,"app-playground",[],null,null,null,m,w)),h._32(114688,null,0,L.a,[M.c,M.a],null,null)],function(n,l){n(l,1,0)},null)}var b=t("zZ9H"),h=t("/oeL"),v=t("qbdv"),x=t("v6Q/"),C=t("Z04r"),L=t("iCB8"),y=t("BkzC"),E=t("bm2B"),P=t("8ymd"),k=t("9w5t"),O=t("p4Sk"),M=t("BkNc");t.d(l,"a",function(){return q});var I=[b.a],w=h._29({encapsulation:0,styles:I,data:{}}),q=h._37("app-playground",L.a,g,{},{},[])},BkzC:function(n,l,t){"use strict";function u(n){return r._30(0,[],null,null)}function e(n){return r._30(0,[(n()(),r._31(0,null,null,2,"app-ace-editor",[],null,null,null,u,c)),r._40(5120,null,a.a,function(n){return[n]},[o.AceEditorComponent]),r._32(114688,null,0,_.a,[r.L],null,null)],function(n,l){n(l,2,0)},null)}var r=t("/oeL"),a=t("bm2B"),o=t("8ymd"),_=t("9w5t");t.d(l,"b",function(){return c}),l.a=u;var i=["[_nghost-%COMP%] { display:block;width:100%; }"],c=r._29({encapsulation:0,styles:i,data:{}});r._37("app-ace-editor",_.a,e,{style:"style",options:"options",readOnly:"readOnly",theme:"theme",mode:"mode",value:"value",text:"text",autoUpdateContent:"autoUpdateContent",durationBeforeCallback:"durationBeforeCallback"},{textChanged:"textChanged",textChange:"textChange"},[])},ECCM:function(n,l,t){"use strict";t.d(l,"a",function(){return u});var u=function(){function n(){}return n.prototype.ngOnInit=function(){},n.ctorParameters=function(){return[]},n}()},ERzY:function(n,l,t){"use strict";function u(n){return a._30(0,[(n()(),a._31(0,null,null,1,"p",[],null,null,null,null,null)),(n()(),a._33(null,["\n visitors works!\n"])),(n()(),a._33(null,["\n"]))],null,null)}function e(n){return a._30(0,[(n()(),a._31(0,null,null,1,"app-visitors",[],null,null,null,u,i)),a._32(114688,null,0,o.a,[],null,null)],function(n,l){n(l,1,0)},null)}var r=t("st+I"),a=t("/oeL"),o=t("M5kg");t.d(l,"a",function(){return c});var _=[r.a],i=a._29({encapsulation:0,styles:_,data:{}}),c=a._37("app-visitors",o.a,e,{},{},[])},FPEE:function(n,l,t){"use strict";t.d(l,"a",function(){return u});var u=[""]},JdMA:function(n,l,t){"use strict";t.d(l,"a",function(){return u});var u=[".quote[_ngcontent-%COMP%]{max-width:600px;margin:30px auto}"]},LD44:function(n,l,t){"use strict";function u(n){return o._30(0,[(n()(),o._31(0,null,null,29,"md-card",[["class","language mat-card"]],null,null,null,_.e,_.f)),o._32(16384,null,0,i.r,[[2,i.s],o.L],null,null),o._32(49152,null,0,i._32,[],null,null),(n()(),o._33(0,["\n "])),(n()(),o._31(0,null,0,1,"h1",[],null,null,null,null,null)),(n()(),o._33(null,["SimplePEG - ",""])),(n()(),o._33(0,["\n "])),(n()(),o._31(0,null,0,21,"md-card-actions",[["class","mat-card-actions"]],null,null,null,null,null)),o._32(16384,null,0,i.r,[[2,i.s],o.L],null,null),o._32(16384,null,0,i._95,[],null,null),(n()(),o._33(null,["\n "])),(n()(),o._31(0,null,null,4,"button",[["class","mat-button"],["md-button",""]],[[8,"disabled",0]],[[null,"click"]],function(n,l,t){var u=!0,e=n.component;if("click"===l){u=!1!==e.goToGitHub(n.context.$implicit)&&u}return u},_.k,_.l)),o._32(16384,null,0,i.r,[[2,i.s],o.L],null,null),o._32(180224,null,0,i._28,[o.R,o.L,c.c,i.f],null,null),o._32(16384,null,0,i.v,[],null,null),(n()(),o._33(0,["GitHub"])),(n()(),o._33(null,["\n "])),(n()(),o._31(0,null,null,4,"button",[["class","mat-button"],["md-button",""]],[[8,"disabled",0]],[[null,"click"]],function(n,l,t){var u=!0,e=n.component;if("click"===l){u=!1!==e.notImplemented()&&u}return u},_.k,_.l)),o._32(16384,null,0,i.r,[[2,i.s],o.L],null,null),o._32(180224,null,0,i._28,[o.R,o.L,c.c,i.f],null,null),o._32(16384,null,0,i.v,[],null,null),(n()(),o._33(0,["Quick Start"])),(n()(),o._33(null,["\n "])),(n()(),o._31(0,null,null,4,"button",[["class","mat-button"],["md-button",""]],[[8,"disabled",0]],[[null,"click"]],function(n,l,t){var u=!0,e=n.component;if("click"===l){u=!1!==e.notImplemented()&&u}return u},_.k,_.l)),o._32(16384,null,0,i.r,[[2,i.s],o.L],null,null),o._32(180224,null,0,i._28,[o.R,o.L,c.c,i.f],null,null),o._32(16384,null,0,i.v,[],null,null),(n()(),o._33(0,["Documentation"])),(n()(),o._33(null,["\n "])),(n()(),o._33(0,["\n"]))],null,function(n,l){n(l,5,0,l.context.$implicit.name),n(l,11,0,o._34(l,13).disabled||null),n(l,17,0,o._34(l,19).disabled||null),n(l,23,0,o._34(l,25).disabled||null)})}function e(n){return o._30(0,[(n()(),o._38(16777216,null,null,1,null,u)),o._32(802816,null,0,s.s,[o.X,o.W,o.l],{ngForOf:[0,"ngForOf"]},null),(n()(),o._33(null,["\n\n"]))],function(n,l){n(l,1,0,l.component.languagesService.languages)},null)}function r(n){return o._30(0,[(n()(),o._31(0,null,null,1,"app-languages",[],null,null,null,e,m)),o._32(114688,null,0,d.a,[p.a],null,null)],function(n,l){n(l,1,0)},null)}var a=t("2s64"),o=t("/oeL"),_=t("v6Q/"),i=t("Z04r"),c=t("p4Sk"),s=t("qbdv"),d=t("A/nq"),p=t("7EI0");t.d(l,"a",function(){return g});var f=[a.a],m=o._29({encapsulation:0,styles:f,data:{}}),g=o._37("app-languages",d.a,r,{},{},[])},LWGJ:function(n,l,t){"use strict";function u(n){return a._30(0,[(n()(),a._31(0,null,null,1,"p",[],null,null,null,null,null)),(n()(),a._33(null,["\n start works!\n"])),(n()(),a._33(null,["\n"]))],null,null)}function e(n){return a._30(0,[(n()(),a._31(0,null,null,1,"app-start",[],null,null,null,u,i)),a._32(114688,null,0,o.a,[],null,null)],function(n,l){n(l,1,0)},null)}var r=t("FPEE"),a=t("/oeL"),o=t("xtl5");t.d(l,"a",function(){return c});var _=[r.a],i=a._29({encapsulation:0,styles:_,data:{}}),c=a._37("app-start",o.a,e,{},{},[])},M5kg:function(n,l,t){"use strict";t.d(l,"a",function(){return u});var u=function(){function n(){}return n.prototype.ngOnInit=function(){},n.ctorParameters=function(){return[]},n}()},NIw1:function(n,l,t){"use strict";function u(n){return a._30(0,[(n()(),a._31(0,null,null,1,"p",[],null,null,null,null,null)),(n()(),a._33(null,["\n documentation works!\n"])),(n()(),a._33(null,["\n"]))],null,null)}function e(n){return a._30(0,[(n()(),a._31(0,null,null,1,"app-documentation",[],null,null,null,u,i)),a._32(114688,null,0,o.a,[],null,null)],function(n,l){n(l,1,0)},null)}var r=t("bI1g"),a=t("/oeL"),o=t("Y20a");t.d(l,"a",function(){return c});var _=[r.a],i=a._29({encapsulation:0,styles:_,data:{}}),c=a._37("app-documentation",o.a,e,{},{},[])},NhKt:function(n,l,t){"use strict";t.d(l,"a",function(){return u});var u=[".space[_ngcontent-%COMP%]{width:20px}.spacer[_ngcontent-%COMP%]{-webkit-box-flex:1;-ms-flex:1 1 auto;flex:1 1 auto}.active[_ngcontent-%COMP%]{text-decoration:underline}"]},Y20a:function(n,l,t){"use strict";t.d(l,"a",function(){return u});var u=function(){function n(){}return n.prototype.ngOnInit=function(){},n.ctorParameters=function(){return[]},n}()},ZErz:function(n,l,t){"use strict";function u(n){return a._30(0,[(n()(),a._31(0,null,null,3,"md-card",[["class","quote mat-card"]],null,null,null,o.e,o.f)),a._32(16384,null,0,_.r,[[2,_.s],a.L],null,null),a._32(49152,null,0,_._32,[],null,null),(n()(),a._33(0,['Simple PEG - is a very simple implementation of PEG parser generator, this allowes us to port it to many languages. With help of "visitor" design pattern this library have endless posibilities'])),(n()(),a._33(null,["\n"]))],null,null)}function e(n){return a._30(0,[(n()(),a._31(0,null,null,1,"app-home",[],null,null,null,u,s)),a._32(114688,null,0,i.a,[],null,null)],function(n,l){n(l,1,0)},null)}var r=t("JdMA"),a=t("/oeL"),o=t("v6Q/"),_=t("Z04r"),i=t("ECCM");t.d(l,"a",function(){return d});var c=[r.a],s=a._29({encapsulation:0,styles:c,data:{}}),d=a._37("app-home",i.a,e,{},{},[])},"aR8+":function(n,l,t){"use strict";var u=t("rgUS"),e=(t.n(u),t("Xq7M")),r=(t.n(e),t("P8yk")),a=(t.n(r),t("R1uI")),o=(t.n(a),t("Y20a")),_=t("ECCM"),i=t("A/nq"),c=t("iCB8"),s=t("xtl5"),d=t("M5kg");t.d(l,"a",function(){return p});var p=(_.a,s.a,i.a,d.a,o.a,c.a,function(){function n(){}return n}())},bI1g:function(n,l,t){"use strict";t.d(l,"a",function(){return u});var u=[""]},cDNt:function(n,l,t){"use strict";Object.defineProperty(l,"__esModule",{value:!0});var u=t("/oeL"),e=t("p5Ee"),r=t("fc+i"),a=t("+h1B");e.a.production&&t.i(u.a)(),t.i(r.a)().bootstrapModuleFactory(a.a)},iCB8:function(module,__webpack_exports__,__webpack_require__){"use strict";var __WEBPACK_IMPORTED_MODULE_0_rxjs_Observable__=__webpack_require__("bKpL"),__WEBPACK_IMPORTED_MODULE_0_rxjs_Observable___default=__webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_rxjs_Observable__),__WEBPACK_IMPORTED_MODULE_1__angular_router__=__webpack_require__("BkNc"),__WEBPACK_IMPORTED_MODULE_2_rxjs_add_operator_debounceTime__=__webpack_require__("azLz"),__WEBPACK_IMPORTED_MODULE_2_rxjs_add_operator_debounceTime___default=__webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_rxjs_add_operator_debounceTime__),__WEBPACK_IMPORTED_MODULE_3_rxjs_add_operator_do__=__webpack_require__("eqpX"),__WEBPACK_IMPORTED_MODULE_3_rxjs_add_operator_do___default=__webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_rxjs_add_operator_do__),__WEBPACK_IMPORTED_MODULE_4_simplepeg__=__webpack_require__("DbBI"),__WEBPACK_IMPORTED_MODULE_4_simplepeg___default=__webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_simplepeg__);__webpack_require__.d(__webpack_exports__,"a",function(){return PlaygroundComponent});var parser=new __WEBPACK_IMPORTED_MODULE_4_simplepeg__.SPEG,PlaygroundComponent=function(){function PlaygroundComponent(n,l){this.router=n,this.route=l,this.grammar='GRAMMAR url\n\nurl -> scheme "://" host pathname search hash?;\nscheme -> "http" "s"?;\nhost -> hostname port?;\nhostname -> segment ("." segment)*;\nsegment -> [a-z0-9-]+;\nport -> ":" [0-9]+;\npathname -> "/" [^ ?]*;\nsearch -> ("?" [^ #]*)?;\nhash -> "#" [^ ]*;\n ',this.text="https://simplepeg.github.io/",this.visitor="",this.grammarError="",this.textError=""}return PlaygroundComponent.prototype.ngOnInit=function(){var n=this,l=this.route.snapshot.queryParams.g,t=this.route.snapshot.queryParams.t;l&&t&&(this.grammar=decodeURIComponent(l),this.text=decodeURIComponent(t)),this.parseGrammar(this.grammar),this.parseText(this.text),__WEBPACK_IMPORTED_MODULE_0_rxjs_Observable__.Observable.create(function(l){return n.$grammar=l}).do(function(n){}).debounceTime(1e3).subscribe(function(l){console.log("grammar",l),n.router.navigate([],{queryParams:{g:encodeURIComponent(l),t:encodeURIComponent(n.text)}}),n.ast=null,n.meta=null,n.grammar=l,n.grammarError="",n.textError="",n.parseGrammar(l),n.parseText(n.text)}),__WEBPACK_IMPORTED_MODULE_0_rxjs_Observable__.Observable.create(function(l){return n.$text=l}).do(function(){}).debounceTime(300).subscribe(function(l){n.router.navigate([],{queryParams:{g:encodeURIComponent(n.grammar),t:encodeURIComponent(l)}}),n.ast=null,n.meta=null,n.text=l,n.textError="",n.parseText(l)})},PlaygroundComponent.prototype.parseGrammar=function(n){try{parser.parse_grammar(n)}catch(n){this.grammarError=n.message}},PlaygroundComponent.prototype.parseText=function(n){try{this.ast=parser.parse_text(n)}catch(n){this.textError=n.message}this.meta=parser.state,console.log(this.meta)},PlaygroundComponent.prototype.onGrammarChange=function(n){this.$grammar.next(n)},PlaygroundComponent.prototype.onTextChange=function(n){this.$text.next(n)},PlaygroundComponent.prototype.generateVisitor=function(){if(!this.meta)return void alert("no parsed text");this.visitor="(function visitor() {\n return {\n"+this.meta.rules.map(function(n){return" "+n.name+": function(node) {\n return node;\n }"}).join(",\n")+"\n }\n})",this.visitAst()},PlaygroundComponent.prototype.visitAst=function(){if(!this.ast)return void alert("No result to visit");var visitor=eval(this.visitor)();this.converted_ast=this.visitNode(JSON.parse(JSON.stringify(this.ast)),visitor)},PlaygroundComponent.prototype.visitNode=function(n,l){var t=this;return n.children&&(n.children=n.children.map(function(n){return n&&t.visitNode(n,l)})),n.rule&&l[n.rule]?l[n.rule](n):n},PlaygroundComponent.prototype.onVisitorChange=function(n){this.visitor=n,this.visitAst()},PlaygroundComponent.ctorParameters=function(){return[{type:__WEBPACK_IMPORTED_MODULE_1__angular_router__.c},{type:__WEBPACK_IMPORTED_MODULE_1__angular_router__.a}]},PlaygroundComponent}()},p5Ee:function(n,l,t){"use strict";t.d(l,"a",function(){return u});var u={production:!0}},q4dy:function(n,l,t){"use strict";function u(n){return a._30(0,[(n()(),a._31(0,null,null,50,"md-toolbar",[["class","mat-toolbar"],["color","primary"],["role","toolbar"]],null,null,null,o.a,o.b)),a._32(16384,null,0,_.r,[[2,_.s],a.L],null,null),a._32(49152,null,0,_.t,[a.R,a.L],{color:[0,"color"]},null),(n()(),a._33(0,["\n "])),(n()(),a._31(0,null,0,1,"span",[],null,null,null,null,null)),(n()(),a._33(null,["SimplePEG"])),(n()(),a._33(0,["\n "])),(n()(),a._31(0,null,0,0,"span",[["class","space"]],null,null,null,null,null)),(n()(),a._33(0,["\n "])),(n()(),a._31(0,null,0,9,"a",[["class","mat-button"],["md-button",""],["routerLink","/"],["routerLinkActive","active"]],[[1,"target",0],[8,"href",4],[1,"disabled",0],[1,"aria-disabled",0],[8,"tabIndex",0]],[[null,"click"]],function(n,l,t){var u=!0;if("click"===l){u=!1!==a._34(n,10).onClick(t.button,t.ctrlKey,t.metaKey,t.shiftKey)&&u}if("click"===l){u=!1!==a._34(n,16)._haltDisabledEvents(t)&&u}return u},o.c,o.d)),a._32(671744,[[2,4]],0,i.y,[i.c,i.a,c.e],{routerLink:[0,"routerLink"]},null),a._32(1720320,null,2,i.z,[i.c,a.L,a.R,a._4],{routerLinkActiveOptions:[0,"routerLinkActiveOptions"],routerLinkActive:[1,"routerLinkActive"]},null),a._35(603979776,1,{links:1}),a._35(603979776,2,{linksWithHrefs:1}),a._36({exact:0}),a._32(16384,null,0,_.r,[[2,_.s],a.L],null,null),a._32(180224,null,0,_.u,[s.c,_.f,a.L,a.R],null,null),a._32(16384,null,0,_.v,[],null,null),(n()(),a._33(0,["Home"])),(n()(),a._33(0,["\n "])),(n()(),a._33(0,["\n "])),(n()(),a._31(0,null,0,8,"a",[["class","mat-button"],["md-button",""],["routerLink","/languages"],["routerLinkActive","active"]],[[1,"target",0],[8,"href",4],[1,"disabled",0],[1,"aria-disabled",0],[8,"tabIndex",0]],[[null,"click"]],function(n,l,t){var u=!0;if("click"===l){u=!1!==a._34(n,22).onClick(t.button,t.ctrlKey,t.metaKey,t.shiftKey)&&u}if("click"===l){u=!1!==a._34(n,27)._haltDisabledEvents(t)&&u}return u},o.c,o.d)),a._32(671744,[[4,4]],0,i.y,[i.c,i.a,c.e],{routerLink:[0,"routerLink"]},null),a._32(1720320,null,2,i.z,[i.c,a.L,a.R,a._4],{routerLinkActive:[0,"routerLinkActive"]},null),a._35(603979776,3,{links:1}),a._35(603979776,4,{linksWithHrefs:1}),a._32(16384,null,0,_.r,[[2,_.s],a.L],null,null),a._32(180224,null,0,_.u,[s.c,_.f,a.L,a.R],null,null),a._32(16384,null,0,_.v,[],null,null),(n()(),a._33(0,["Languages"])),(n()(),a._33(0,["\n "])),(n()(),a._33(0,["\n "])),(n()(),a._33(0,["\n "])),(n()(),a._31(0,null,0,8,"a",[["class","mat-button"],["md-button",""],["routerLink","/playground"],["routerLinkActive","active"]],[[1,"target",0],[8,"href",4],[1,"disabled",0],[1,"aria-disabled",0],[8,"tabIndex",0]],[[null,"click"]],function(n,l,t){var u=!0;if("click"===l){u=!1!==a._34(n,34).onClick(t.button,t.ctrlKey,t.metaKey,t.shiftKey)&&u}if("click"===l){u=!1!==a._34(n,39)._haltDisabledEvents(t)&&u}return u},o.c,o.d)),a._32(671744,[[6,4]],0,i.y,[i.c,i.a,c.e],{routerLink:[0,"routerLink"]},null),a._32(1720320,null,2,i.z,[i.c,a.L,a.R,a._4],{routerLinkActive:[0,"routerLinkActive"]},null),a._35(603979776,5,{links:1}),a._35(603979776,6,{linksWithHrefs:1}),a._32(16384,null,0,_.r,[[2,_.s],a.L],null,null),a._32(180224,null,0,_.u,[s.c,_.f,a.L,a.R],null,null),a._32(16384,null,0,_.v,[],null,null),(n()(),a._33(0,["Playground"])),(n()(),a._33(0,["\n\n "])),(n()(),a._31(0,null,0,0,"span",[["class","spacer"]],null,null,null,null,null)),(n()(),a._33(0,["\n\n "])),(n()(),a._31(0,null,0,4,"a",[["class","mat-button"],["href","https://github.com/SimplePEG/SimplePEG"],["md-button",""]],[[1,"disabled",0],[1,"aria-disabled",0],[8,"tabIndex",0]],[[null,"click"]],function(n,l,t){var u=!0;if("click"===l){u=!1!==a._34(n,47)._haltDisabledEvents(t)&&u}return u},o.c,o.d)),a._32(16384,null,0,_.r,[[2,_.s],a.L],null,null),a._32(180224,null,0,_.u,[s.c,_.f,a.L,a.R],null,null),a._32(16384,null,0,_.v,[],null,null),(n()(),a._33(0,["GitHub"])),(n()(),a._33(0,["\n"])),(n()(),a._33(null,["\n\n"])),(n()(),a._31(16777216,null,null,1,"router-outlet",[],null,null,null,null,null)),a._32(212992,null,0,i.A,[i.q,a.X,a.e,[8,null],a._4],null,null),(n()(),a._33(null,["\n"]))],function(n,l){n(l,2,0,"primary");n(l,10,0,"/");n(l,11,0,n(l,14,0,!0),"active");n(l,22,0,"/languages");n(l,23,0,"active");n(l,34,0,"/playground");n(l,35,0,"active"),n(l,53,0)},function(n,l){n(l,9,0,a._34(l,10).target,a._34(l,10).href,a._34(l,16).disabled||null,a._34(l,16).disabled.toString(),a._34(l,16).tabIndex),n(l,21,0,a._34(l,22).target,a._34(l,22).href,a._34(l,27).disabled||null,a._34(l,27).disabled.toString(),a._34(l,27).tabIndex),n(l,33,0,a._34(l,34).target,a._34(l,34).href,a._34(l,39).disabled||null,a._34(l,39).disabled.toString(),a._34(l,39).tabIndex),n(l,45,0,a._34(l,47).disabled||null,a._34(l,47).disabled.toString(),a._34(l,47).tabIndex)})}function e(n){return a._30(0,[(n()(),a._31(0,null,null,1,"app-root",[],null,null,null,u,f)),a._32(49152,null,0,d.a,[],null,null)],null,null)}var r=t("NhKt"),a=t("/oeL"),o=t("v6Q/"),_=t("Z04r"),i=t("BkNc"),c=t("qbdv"),s=t("p4Sk"),d=t("wQAS");t.d(l,"a",function(){return m});var p=[r.a],f=a._29({encapsulation:0,styles:p,data:{}}),m=a._37("app-root",d.a,e,{},{},[])},qtrl:function(n,l){function t(n){throw new Error("Cannot find module '"+n+"'.")}t.keys=function(){return[]},t.resolve=t,n.exports=t,t.id="qtrl"},"st+I":function(n,l,t){"use strict";t.d(l,"a",function(){return u});var u=[""]},wQAS:function(n,l,t){"use strict";t.d(l,"a",function(){return u});var u=function(){function n(){this.title="app"}return n}()},xtl5:function(n,l,t){"use strict";t.d(l,"a",function(){return u});var u=function(){function n(){}return n.prototype.ngOnInit=function(){},n.ctorParameters=function(){return[]},n}()},zZ9H:function(n,l,t){"use strict";t.d(l,"a",function(){return u});var u=[".wrapper[_ngcontent-%COMP%]{margin:24px;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap}@media (max-width:1000px){.wrapper[_ngcontent-%COMP%]{margin:8px;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.mat-card[_ngcontent-%COMP%]{padding:16px}}.wrapper[_ngcontent-%COMP%] md-card[_ngcontent-%COMP%]{margin-bottom:8px;margin-right:8px}.editor[_ngcontent-%COMP%]{width:100%;min-height:200px}.visitor-editor[_ngcontent-%COMP%]{width:100%;min-height:500px}.grammar[_ngcontent-%COMP%], .text[_ngcontent-%COMP%]{-webkit-box-flex:1;-ms-flex:1;flex:1}.grammar[_ngcontent-%COMP%] h4[_ngcontent-%COMP%], .text[_ngcontent-%COMP%] h4[_ngcontent-%COMP%]{display:inline-block;margin-bottom:10px}.grammar[_ngcontent-%COMP%] .material-icons[_ngcontent-%COMP%], .text[_ngcontent-%COMP%] .material-icons[_ngcontent-%COMP%]{margin-left:8px;margin-right:8px;color:#830000;position:absolute;top:23px;font-size:20px}.result[_ngcontent-%COMP%]{width:100%}.error[_ngcontent-%COMP%]{background:maroon;color:#fff;padding:8px 16px}.visitor[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{margin:10px 10px 10px 0}"]}},[0]);