forked from kevin.shehu/GGD
41 lines
526 KiB
JavaScript
41 lines
526 KiB
JavaScript
|
var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function t(e){return e&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var n={version:"2.5.1"},r={},o={};!function(e){function t(){}function n(e,t,n,r,o){for(var i=0,u=t.length,s=0,a=0;i<u;i++){var c=t[i];if(c.removed){if(c.value=e.join(r.slice(a,a+c.count)),a+=c.count,i&&t[i-1].added){var l=t[i-1];t[i-1]=t[i],t[i]=l}}else{if(!c.added&&o){var p=n.slice(s,s+c.count);p=p.map((function(e,t){var n=r[a+t];return n.length>e.length?n:e})),c.value=e.join(p)}else c.value=e.join(n.slice(s,s+c.count));s+=c.count,c.added||(a+=c.count)}}var f=t[u-1];return u>1&&"string"==typeof f.value&&(f.added||f.removed)&&e.equals("",f.value)&&(t[u-2].value+=f.value,t.pop()),t}function r(e){return{newPos:e.newPos,components:e.components.slice(0)}}Object.defineProperty(e,"__esModule",{value:!0}),e.default=t,t.prototype={diff:function(e,t){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=o.callback;"function"==typeof o&&(i=o,o={}),this.options=o;var u=this;function s(e){return i?(setTimeout((function(){i(void 0,e)}),0),!0):e}e=this.castInput(e),t=this.castInput(t),e=this.removeEmpty(this.tokenize(e));var a=(t=this.removeEmpty(this.tokenize(t))).length,c=e.length,l=1,p=a+c,f=[{newPos:-1,components:[]}],d=this.extractCommon(f[0],t,e,0);if(f[0].newPos+1>=a&&d+1>=c)return s([{value:this.join(t),count:t.length}]);function h(){for(var o=-1*l;o<=l;o+=2){var i=void 0,p=f[o-1],d=f[o+1],h=(d?d.newPos:0)-o;p&&(f[o-1]=void 0);var g=p&&p.newPos+1<a,m=d&&0<=h&&h<c;if(g||m){if(!g||m&&p.newPos<d.newPos?(i=r(d),u.pushComponent(i.components,void 0,!0)):((i=p).newPos++,u.pushComponent(i.components,!0,void 0)),h=u.extractCommon(i,t,e,o),i.newPos+1>=a&&h+1>=c)return s(n(u,i.components,t,e,u.useLongestToken));f[o]=i}else f[o]=void 0}l++}if(i)!function e(){setTimeout((function(){if(l>p)return i();h()||e()}),0)}();else for(;l<=p;){var g=h();if(g)return g}},pushComponent:function(e,t,n){var r=e[e.length-1];r&&r.added===t&&r.removed===n?e[e.length-1]={count:r.count+1,added:t,removed:n}:e.push({count:1,added:t,removed:n})},extractCommon:function(e,t,n,r){for(var o=t.length,i=n.length,u=e.newPos,s=u-r,a=0;u+1<o&&s+1<i&&this.equals(t[u+1],n[s+1]);)u++,s++,a++;return a&&e.components.push({count:a}),e.newPos=u,s},equals:function(e,t){return this.options.comparator?this.options.comparator(e,t):e===t||this.options.ignoreCase&&e.toLowerCase()===t.toLowerCase()},removeEmpty:function(e){for(var t=[],n=0;n<e.length;n++)e[n]&&t.push(e[n]);return t},castInput:function(e){return e},tokenize:function(e){return e.split("")},join:function(e){return e.join("")}}}(o);var i,u={};Object.defineProperty(u,"__esModule",{value:!0}),u.diffChars=function(e,t,n){return s.diff(e,t,n)},u.characterDiff=void 0;var s=new((i=o)&&i.__esModule?i:{default:i}).default;u.characterDiff=s;var a={},c={};Object.defineProperty(c,"__esModule",{value:!0}),c.generateOptions=function(e,t){if("function"==typeof e)t.callback=e;else if(e)for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t},Object.defineProperty(a,"__esModule",{value:!0}),a.diffWords=function(e,t,n){return n=(0,p.generateOptions)(n,{ignoreWhitespace:!0}),h.diff(e,t,n)},a.diffWordsWithSpace=function(e,t,n){return h.diff(e,t,n)},a.wordDiff=void 0;var l=function(e){return e&&e.__esModule?e:{default:e}}(o),p=c;var f=/^[A-Za-z\xC0-\u02C6\u02C8-\u02D7\u02DE-\u02FF\u1E00-\u1EFF]+$/,d=/\S/,h=new l.default;a.wordDiff=h,h.equals=function(e,t){return this.options.ignoreCase&&(e=e.toLowerCase(),t=t.toLowerCase()),e===t||this.options.ignoreWhitespace&&!d.test(e)&&!d.test(t)},h.tokenize=function(e){for(var t=e.split(/([^\S\r\n]+|[()[\]{}'"\r\n]|\b)/),n=0;n<t.length-1;n++)!t[n+1]&&t[n+2]&&f.test(t[n])&&f.test(t[n+2])&&(t[n]+=t[n+2],t.splice(n+1,2),n--);return t};var g={};Object.defineProperty(g,"__esModule",{value:!0}),g.diffLines=function(e,t,n){return D.diff(e,t,n)},g.diffTrimmedLines=function(e,t,n){var r=(0,y.generateOptions)(n,{ignoreWhitespace:!0});return D.diff(e,t,r)},g.lineDiff=voi
|
||
|
/**
|
||
|
* @license
|
||
|
* Copyright Google Inc. All Rights Reserved.
|
||
|
*
|
||
|
* Use of this source code is governed by an MIT-style license that can be
|
||
|
* found in the LICENSE file at https://angular.io/license
|
||
|
*/
|
||
|
Object.defineProperty(e,"__esModule",{value:!0}),e.$EOF=0,e.$BSPACE=8,e.$TAB=9,e.$LF=10,e.$VTAB=11,e.$FF=12,e.$CR=13,e.$SPACE=32,e.$BANG=33,e.$DQ=34,e.$HASH=35,e.$$=36,e.$PERCENT=37,e.$AMPERSAND=38,e.$SQ=39,e.$LPAREN=40,e.$RPAREN=41,e.$STAR=42,e.$PLUS=43,e.$COMMA=44,e.$MINUS=45,e.$PERIOD=46,e.$SLASH=47,e.$COLON=58,e.$SEMICOLON=59,e.$LT=60,e.$EQ=61,e.$GT=62,e.$QUESTION=63,e.$0=48,e.$7=55,e.$9=57,e.$A=65,e.$E=69,e.$F=70,e.$X=88,e.$Z=90,e.$LBRACKET=91,e.$BACKSLASH=92,e.$RBRACKET=93,e.$CARET=94,e.$_=95,e.$a=97,e.$b=98,e.$e=101,e.$f=102,e.$n=110,e.$r=114,e.$t=116,e.$u=117,e.$v=118,e.$x=120,e.$z=122,e.$LBRACE=123,e.$BAR=124,e.$RBRACE=125,e.$NBSP=160,e.$PIPE=124,e.$TILDA=126,e.$AT=64,e.$BT=96,e.isWhitespace=function(t){return t>=e.$TAB&&t<=e.$SPACE||t==e.$NBSP},e.isDigit=t,e.isAsciiLetter=function(t){return t>=e.$a&&t<=e.$z||t>=e.$A&&t<=e.$Z},e.isAsciiHexDigit=function(n){return n>=e.$a&&n<=e.$f||n>=e.$A&&n<=e.$F||t(n)},e.isNewLine=function(t){return t===e.$LF||t===e.$CR},e.isOctalDigit=function(t){return e.$0<=t&&t<=e.$7}}(nq);var rq={},oq={};
|
||
|
/**
|
||
|
* @license
|
||
|
* Copyright Google Inc. All Rights Reserved.
|
||
|
*
|
||
|
* Use of this source code is governed by an MIT-style license that can be
|
||
|
* found in the LICENSE file at https://angular.io/license
|
||
|
*/
|
||
|
Object.defineProperty(oq,"__esModule",{value:!0});class iq{constructor(e,t,n){this.filePath=e,this.name=t,this.members=n}assertNoMembers(){if(this.members.length)throw new Error("Illegal state: symbol without members expected, but got ".concat(JSON.stringify(this),"."))}}oq.StaticSymbol=iq;oq.StaticSymbolCache=class{constructor(){this.cache=new Map}get(e,t,n){const r=(n=n||[]).length?".".concat(n.join(".")):"",o='"'.concat(e,'".').concat(t).concat(r);let i=this.cache.get(o);return i||(i=new iq(e,t,n),this.cache.set(o,i)),i}};var uq={};
|
||
|
/**
|
||
|
* @license
|
||
|
* Copyright Google Inc. All Rights Reserved.
|
||
|
*
|
||
|
* Use of this source code is governed by an MIT-style license that can be
|
||
|
* found in the LICENSE file at https://angular.io/license
|
||
|
*/Object.defineProperty(uq,"__esModule",{value:!0});const sq=/-+([a-z0-9])/g;function aq(e,t,n){const r=e.indexOf(t);return-1==r?n:[e.slice(0,r).trim(),e.slice(r+1).trim()]}function cq(e,t,n){return Array.isArray(e)?t.visitArray(e,n):function(e){return"object"==typeof e&&null!==e&&Object.getPrototypeOf(e)===fq}(e)?t.visitStringMap(e,n):null==e||"string"==typeof e||"number"==typeof e||"boolean"==typeof e?t.visitPrimitive(e,n):t.visitOther(e,n)}uq.dashCaseToCamelCase=function(e){return e.replace(sq,(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t[1].toUpperCase()}))},uq.splitAtColon=function(e,t){return aq(e,":",t)},uq.splitAtPeriod=function(e,t){return aq(e,".",t)},uq.visitValue=cq,uq.isDefined=function(e){return null!=e},uq.noUndefined=function(e){return void 0===e?null:e};uq.ValueTransformer=class{visitArray(e,t){return e.map((e=>cq(e,this,t)))}visitStringMap(e,t){const n={};return Object.keys(e).forEach((r=>{n[r]=cq(e[r],this,t)})),n}visitPrimitive(e,t){return e}visitOther(e,t){return e}},uq.SyncAsync={assertSync:e=>{if(dq(e))throw new Error("Illegal state: value cannot be a promise");return e},then:(e,t)=>dq(e)?e.then(t):t(e),all:e=>e.some(dq)?Promise.all(e):e},uq.error=function(e){throw new Error("Internal Error: ".concat(e))},uq.syntaxError=function(e,t){const n=Error(e);return n[lq]=!0,t&&(n[pq]=t),n};const lq="ngSyntaxError",pq="ngParseErrors";uq.isSyntaxError=function(e){return e[lq]},uq.getParseErrors=function(e){return e[pq]||[]},uq.escapeRegExp=function(e){return e.replace(/([.*+?^=!:${}()|[\]\/\\])/g,"\\$1")};const fq=Object.getPrototypeOf({});function dq(e){return!!e&&"function"==typeof e.then}uq.utf8Encode=function(e){let t="";for(let n=0;n<e.length;n++){let r=e.charCodeAt(n);if(r>=55296&&r<=56319&&e.length>n+1){const t=e.charCodeAt(n+1);t>=56320&&t<=57343&&(n++,r=(r-55296<<10)+t-56320+65536)}r<=127?t+=String.fromCharCode(r):r<=2047?t+=String.fromCharCode(r>>6&31|192,63&r|128):r<=65535?t+=String.fromCharCode(r>>12|224,r>>6&63|128,63&r|128):r<=2097151&&(t+=String.fromCharCode(r>>18&7|240,r>>12&63|128,r>>6&63|128,63&r|128))}return t},uq.stringify=function e(t){if("string"==typeof t)return t;if(t instanceof Array)return"["+t.map(e).join(", ")+"]";if(null==t)return""+t;if(t.overriddenName)return"".concat(t.overriddenName);if(t.name)return"".concat(t.name);if(!t.toString)return"object";const n=t.toString();if(null==n)return""+n;const r=n.indexOf("\n");return-1===r?n:n.substring(0,r)},uq.resolveForwardRef=function(e){return"function"==typeof e&&e.hasOwnProperty("__forward_ref__")?e():e},uq.isPromise=dq;uq.Version=class{constructor(e){this.full=e;const t=e.split(".");this.major=t[0],this.minor=t[1],this.patch=t.slice(2).join(".")}};const hq="undefined"!=typeof window&&window,gq="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,mq=void 0!==e&&e||hq||gq;uq.global=mq,function(e){
|
||
|
/**
|
||
|
* @license
|
||
|
* Copyright Google Inc. All Rights Reserved.
|
||
|
*
|
||
|
* Use of this source code is governed by an MIT-style license that can be
|
||
|
* found in the LICENSE file at https://angular.io/license
|
||
|
*/
|
||
|
Object.defineProperty(e,"__esModule",{value:!0});const t=oq,n=uq,r=/^(?:(?:\[([^\]]+)\])|(?:\(([^\)]+)\)))|(\@[-\w]+)$/;function o(e){return e.replace(/\W/g,"_")}e.sanitizeIdentifier=o;let i=0;function u(e){if(!e||!e.reference)return null;const r=e.reference;if(r instanceof t.StaticSymbol)return r.name;if(r.__anonymousType)return r.__anonymousType;let u=n.stringify(r);return u.indexOf("(")>=0?(u="anonymous_".concat(i++),r.__anonymousType=u):u=o(u),u}var s;e.identifierName=u,e.identifierModuleUrl=function(e){const r=e.reference;return r instanceof t.StaticSymbol?r.filePath:"./".concat(n.stringify(r))},e.viewClassName=function(e,t){return"View_".concat(u({reference:e}),"_").concat(t)},e.rendererTypeName=function(e){return"RenderType_".concat(u({reference:e}))},e.hostViewClassName=function(e){return"HostView_".concat(u({reference:e}))},e.componentFactoryName=function(e){return"".concat(u({reference:e}),"NgFactory")},function(e){e[e.Pipe=0]="Pipe",e[e.Directive=1]="Directive",e[e.NgModule=2]="NgModule",e[e.Injectable=3]="Injectable"}(s=e.CompileSummaryKind||(e.CompileSummaryKind={})),e.tokenName=function(e){return null!=e.value?o(e.value):u(e.identifier)},e.tokenReference=function(e){return null!=e.identifier?e.identifier.reference:e.value};e.CompileStylesheetMetadata=class{constructor(){let{moduleUrl:e,styles:t,styleUrls:n}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.moduleUrl=e||null,this.styles=c(t),this.styleUrls=c(n)}};e.CompileTemplateMetadata=class{constructor(e){let{encapsulation:t,template:n,templateUrl:r,htmlAst:o,styles:i,styleUrls:u,externalStylesheets:s,animations:a,ngContentSelectors:p,interpolation:f,isInline:d,preserveWhitespaces:h}=e;if(this.encapsulation=t,this.template=n,this.templateUrl=r,this.htmlAst=o,this.styles=c(i),this.styleUrls=c(u),this.externalStylesheets=c(s),this.animations=a?l(a):[],this.ngContentSelectors=p||[],f&&2!=f.length)throw new Error("'interpolation' should have a start and an end symbol.");this.interpolation=f,this.isInline=d,this.preserveWhitespaces=h}toSummary(){return{ngContentSelectors:this.ngContentSelectors,encapsulation:this.encapsulation,styles:this.styles,animations:this.animations}}};class a{static create(e){let{isHost:t,type:o,isComponent:i,selector:u,exportAs:s,changeDetection:c,inputs:l,outputs:p,host:f,providers:d,viewProviders:h,queries:g,guards:m,viewQueries:y,entryComponents:D,template:E,componentViewType:C,rendererType:b,componentFactory:v}=e;const A={},F={},x={};null!=f&&Object.keys(f).forEach((e=>{const t=f[e],n=e.match(r);null===n?x[e]=t:null!=n[1]?F[n[1]]=t:null!=n[2]&&(A[n[2]]=t)}));const S={};null!=l&&l.forEach((e=>{const t=n.splitAtColon(e,[e,e]);S[t[0]]=t[1]}));const w={};return null!=p&&p.forEach((e=>{const t=n.splitAtColon(e,[e,e]);w[t[0]]=t[1]})),new a({isHost:t,type:o,isComponent:!!i,selector:u,exportAs:s,changeDetection:c,inputs:S,outputs:w,hostListeners:A,hostProperties:F,hostAttributes:x,providers:d,viewProviders:h,queries:g,guards:m,viewQueries:y,entryComponents:D,template:E,componentViewType:C,rendererType:b,componentFactory:v})}constructor(e){let{isHost:t,type:n,isComponent:r,selector:o,exportAs:i,changeDetection:u,inputs:s,outputs:a,hostListeners:l,hostProperties:p,hostAttributes:f,providers:d,viewProviders:h,queries:g,guards:m,viewQueries:y,entryComponents:D,template:E,componentViewType:C,rendererType:b,componentFactory:v}=e;this.isHost=!!t,this.type=n,this.isComponent=r,this.selector=o,this.exportAs=i,this.changeDetection=u,this.inputs=s,this.outputs=a,this.hostListeners=l,this.hostProperties=p,this.hostAttributes=f,this.providers=c(d),this.viewProviders=c(h),this.queries=c(g),this.guards=m,this.viewQueries=c(y),this.entryComponents=c(D),this.template=E,this.componentViewType=C,this.rendererType=b,this.componentFactory=v}toSummary(){return{summaryKind:s.Directive,type:this.type,isComponent:this.isComponent,selector:this.selector,exportAs:this.exportAs,inputs:this.inputs,outputs:this.outputs,hostListeners:this.hostListeners,hostProperties:this.hostProperties,hostAttributes:this.hostAttributes,providers:this.providers,viewProvi
|
||
|
/**
|
||
|
* @license
|
||
|
* Copyright Google Inc. All Rights Reserved.
|
||
|
*
|
||
|
* Use of this source code is governed by an MIT-style license that can be
|
||
|
* found in the LICENSE file at https://angular.io/license
|
||
|
*/
|
||
|
const t=nq,n=rq;class r{constructor(e,t,n,r){this.file=e,this.offset=t,this.line=n,this.col=r}toString(){return null!=this.offset?"".concat(this.file.url,"@").concat(this.line,":").concat(this.col):this.file.url}moveBy(e){const n=this.file.content,o=n.length;let i=this.offset,u=this.line,s=this.col;for(;i>0&&e<0;){i--,e++;if(n.charCodeAt(i)==t.$LF){u--;const e=n.substr(0,i-1).lastIndexOf(String.fromCharCode(t.$LF));s=e>0?i-e:i}else s--}for(;i<o&&e>0;){const r=n.charCodeAt(i);i++,e--,r==t.$LF?(u++,s=0):s++}return new r(this.file,i,u,s)}getContext(e,t){const n=this.file.content;let r=this.offset;if(null!=r){r>n.length-1&&(r=n.length-1);let o=r,i=0,u=0;for(;i<e&&r>0&&(r--,i++,"\n"!=n[r]||++u!=t););for(i=0,u=0;i<e&&o<n.length-1&&(o++,i++,"\n"!=n[o]||++u!=t););return{before:n.substring(r,this.offset),after:n.substring(this.offset,o+1)}}return null}}e.ParseLocation=r;class o{constructor(e,t){this.content=e,this.url=t}}e.ParseSourceFile=o;class i{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this.start=e,this.end=t,this.details=n}toString(){return this.start.file.content.substring(this.start.offset,this.end.offset)}}var u;e.ParseSourceSpan=i,e.EMPTY_PARSE_LOCATION=new r(new o("",""),0,0,0),e.EMPTY_SOURCE_SPAN=new i(e.EMPTY_PARSE_LOCATION,e.EMPTY_PARSE_LOCATION),function(e){e[e.WARNING=0]="WARNING",e[e.ERROR=1]="ERROR"}(u=e.ParseErrorLevel||(e.ParseErrorLevel={}));e.ParseError=class{constructor(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:u.ERROR;this.span=e,this.msg=t,this.level=n}contextualMessage(){const e=this.span.start.getContext(100,3);return e?"".concat(this.msg,' ("').concat(e.before,"[").concat(u[this.level]," ->]").concat(e.after,'")'):this.msg}toString(){const e=this.span.details?", ".concat(this.span.details):"";return"".concat(this.contextualMessage(),": ").concat(this.span.start).concat(e)}},e.typeSourceSpan=function(e,t){const u=n.identifierModuleUrl(t),s=null!=u?"in ".concat(e," ").concat(n.identifierName(t)," in ").concat(u):"in ".concat(e," ").concat(n.identifierName(t)),a=new o("",s);return new i(new r(a,-1,-1,-1),new r(a,-1,-1,-1))},e.r3JitTypeSourceSpan=function(e,t,n){const u="in ".concat(e," ").concat(t," in ").concat(n),s=new o("",u);return new i(new r(s,-1,-1,-1),new r(s,-1,-1,-1))}}(tq);const{ParseSourceSpan:yq}=tq,Dq=su,{htmlTrim:Eq,getLeadingAndTrailingHtmlWhitespace:Cq,hasHtmlWhitespace:bq,canHaveInterpolation:vq,getNodeCssStyleDisplay:Aq,isDanglingSpaceSensitiveNode:Fq,isIndentationSensitiveNode:xq,isLeadingSpaceSensitiveNode:Sq,isTrailingSpaceSensitiveNode:wq,isWhitespaceSensitiveNode:Tq}=eq,Bq=[function(e){e.walk((e=>{if("element"===e.type&&e.tagDefinition.ignoreFirstLf&&e.children.length>0&&"text"===e.children[0].type&&"\n"===e.children[0].value[0]){const[t,...n]=e.children;e.setChildren(1===t.value.length?n:[t.clone({value:t.value.slice(1)}),...n])}}))},function(e){const t=e=>"element"===e.type&&e.prev&&"ieConditionalStartComment"===e.prev.type&&e.prev.sourceSpan.end.offset===e.startSourceSpan.start.offset&&e.firstChild&&"ieConditionalEndComment"===e.firstChild.type&&e.firstChild.sourceSpan.start.offset===e.startSourceSpan.end.offset;e.walk((e=>{if(e.children){const n=e.children.map(t);if(n.some(Boolean)){const t=[];for(let r=0;r<e.children.length;r++){const o=e.children[r];if(!n[r+1])if(n[r]){const e=o.prev,n=o.firstChild,r=new yq(e.sourceSpan.start,n.sourceSpan.end),i=new yq(r.start,o.sourceSpan.end);t.push(o.clone({condition:e.condition,sourceSpan:i,startSourceSpan:r,children:o.children.slice(1)}))}else t.push(o)}e.setChildren(t)}}}))},function(e){return function(e,t,n){e.walk((e=>{if(e.children){const r=e.children.map(t);if(r.some(Boolean)){const t=[];for(let o=0;o<e.children.length;o++){const i=e.children[o];if("text"!==i.type&&!r[o]){t.push(i);continue}const u="text"===i.type?i:i.clone({type:"text",value:n(i)});if(0===t.length||"text"!==Dq(t).type){t.push(u);continue}const s=t.pop();t.push(s.clone({value:s.value+u.value,sourceSpan:new yq(s.sourceSpan.start,u.sourceSpan.end)}))}e.setChildren(t)}}}))}(e,(e=>"cdata"===e.type),(e=>"<!
|