@servicenow/sdk 4.4.0 → 4.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/lsp/index.js CHANGED
@@ -31022,7 +31022,7 @@ function print() { __p += __j.call(arguments, '') }
31022
31022
  `)?`\`${O2.escapeBackticks(this.literalText)}\``:`'${O2.escapeSingleQuotes(this.literalText)}'`}};kp.StringLiteralShape=Ete;var Kft=class extends O2{static{e(this,"TemplateSpanShape")}literalText;expression;constructor({source:t,literalText:i,expression:a}){super({source:t}),this.literalText=bh.from(t,i).asString().getValue(),this.expression=a}getLiteralText(){return this.literalText}getExpression(){return this.expression}getValue(t){return`${t instanceof bh?t.getValue():typeof t=="function"?t(this.expression):t??this.expression.toString().getValue()}${this.literalText}`}getCode(){return`\${${this.expression.getCode()}}${O2.escapeBackticks(this.literalText)}`}};kp.TemplateSpanShape=Kft;var q3e=class extends O2{static{e(this,"TemplateExpressionShape")}literalText;spans;constructor({source:t,literalText:i,spans:a}){super({source:t}),this.literalText=bh.from(t,i).asString().getValue(),this.spans=a??[]}getLiteralText(){return this.literalText}hasSubstitution(){return this.spans.length>0}getSpans(){return this.spans}getValue(t){return`${this.literalText}${this.spans.map((i,a)=>i.getValue(typeof t=="function"?t:t?.[a])).join("")}`}getCode(){return`\`${O2.escapeBackticks(this.literalText)}${this.spans.map(t=>t.getCode()).join("")}\``}};kp.TemplateExpressionShape=q3e;var Jft=class extends O2{static{e(this,"TaggedTemplateExpressionShape")}tag;template;constructor({source:t,tag:i,template:a}){super({source:t}),this.tag=bh.from(t,i).asString().getValue(),this.template=a.as(q3e,"Template must be a template expression shape")}getTag(){return this.tag}getTemplate(){return this.template}getValue(t){return this.template.getValue(t)}getCode(){return`${this.tag||""}${this.template.getCode()}`}};kp.TaggedTemplateExpressionShape=Jft;var JG=class extends bh{static{e(this,"NumberShape")}value;constructor({source:t,value:i}){super({source:t}),this.value=i}getValue(){return this.value}};kp.NumberShape=JG;var Cj=class extends bh{static{e(this,"BooleanShape")}value;constructor({source:t,value:i}){super({source:t}),this.value=i}getValue(){return this.value}};kp.BooleanShape=Cj;var XG=class r extends bh{static{e(this,"ArrayShape")}elements;constructor({source:t,elements:i}){super({source:t}),this.elements=i.map(a=>bh.from(t,a))}getValue(){return this.elements.map(t=>t.getValue())}getElements(t=!0){return t?this.elements.map(i=>i.isResolvable()?i.resolve(!0):i):this.elements}getElement(t,i=!0){return this.getElements(i)[t]??new N5({source:this})}hasElement(t){return t<this.elements.length}map(t,i=!0){return this.getElements(i).map(t)}equals(t){let i=bh.from(this,t);if(!i.isArray()||this.elements.length!==i.elements.length)return!1;for(let[a,c]of this.elements.entries())if(!c.equals(i.getElement(a)))return!1;return!0}static from(t,i){if(i instanceof r)return i;i=i instanceof bh?i.getValue():i;let a=Array.isArray(i)?i:[i];return new r({source:t,elements:a})}getCode(){return`[${this.map(t=>t.getCode(),!1).join(", ")}]`}};kp.ArrayShape=XG;var pbe=Symbol("MERGE"),_Sr=e((r,t)=>{switch(r){case"string":return t.toString();case"number":return t.toNumber();case"cdata":return t.toString().withContentType("cdata");default:return t.toBoolean()}},"coerceTo"),H3e=class r{static{e(this,"ShapeTransform")}shape;resolve;_from;_map;_def;_coerce;constructor(t,i=!0,a=void 0,c=void 0,d=void 0,f=void 0){this.shape=t,this.resolve=i,this._from=a,this._map=c,this._def=d,this._coerce=f}_(t){let i=(this._from??(t===pbe?[]:[t])).map(c=>this.shape.get(c,this.resolve)),a=this._map?this._map(...i):this._from?this._from.length===1?this.shape.get(this._from[0],this.resolve):this.shape.pick(this._from,{resolve:this.resolve}):t!==pbe?this.shape.get(t,this.resolve):this.shape.properties({resolve:this.resolve});if(this._coerce){let c=bh.from(this.shape,a);return{def:this._def,val:c.ifUndefined()??_Sr(this._coerce,c)}}else return{def:this._def,val:a}}from(...t){return new r(this.shape,this.resolve,t,this._map,this._def,this._coerce)}map(t){return new r(this.shape,this.resolve,this._from,t,this._def,this._coerce)}val(t){return new r(this.shape,this.resolve,this._from,()=>t,this._def,this._coerce)}def(t){return new r(this.shape,this.resolve,this._from,this._map,t,this._coerce)}toCdata(){return new r(this.shape,this.resolve,this._from,this._map,this._def,"cdata")}toString(){return new r(this.shape,this.resolve,this._from,this._map,this._def,"string")}toNumber(){return new r(this.shape,this.resolve,this._from,this._map,this._def,"number")}toBoolean(){return new r(this.shape,this.resolve,this._from,this._map,this._def,"boolean")}};kp.ShapeTransform=H3e;function dbe(r,t){if(t)for(let[i,a]of Object.entries(t))i in r||(r[i]=a)}e(dbe,"assignWithoutOverwriting");var Ij=class r extends bh{static{e(this,"ObjectShape")}setProperties;defaultProperties;aliasedKeys;constructor({source:t,properties:i}){super({source:t}),i instanceof r?(this.defaultProperties=i.defaultProperties,this.setProperties=i.setProperties,this.aliasedKeys=i.aliasedKeys):(this.defaultProperties={},this.aliasedKeys={},this.setProperties=Object.fromEntries(Object.entries(i).map(([a,c])=>[a,bh.from(t,c)])))}withAliasedKeys(t){return this.aliasedKeys=t,this}getAliasedKeys(){return this.aliasedKeys}findAliasUsed(t){let i=this.getAliases(t),a=this.properties({resolve:!1});return i.find(c=>a[c])}getAliases(t){return this.aliasedKeys[t]??[]}properties({nonDefaultsOnly:t=!1,resolve:i=!0}={}){let a={};if(t){for(let c in this.setProperties){let d=this.setProperties[c];d&&d.isDefined()&&!d.equals(this.getDefault(c))&&(a[c]=i&&d.isResolvable()?d.resolve():d)}return a}for(let c in this.setProperties){let d=this.setProperties[c];d&&(a[c]=i&&d.isResolvable()?d.resolve():d)}for(let c in this.defaultProperties)if(!this.setProperties[c]||this.setProperties[c].isUndefined()){let d=this.defaultProperties[c];d&&(a[c]=i&&d.isResolvable()?d.resolve():d)}return a}getValue(t=!1){return Object.fromEntries(this.entries({nonDefaultsOnly:t}).map(([i,a])=>[i,a.getValue()]))}get(t,i=!0){let[a,c,...d]=typeof t=="string"?[t]:t,f=[a,...this.getAliases(a)],g=this.properties({resolve:i}),v=f.find(E=>E in g),S=v!==void 0?g[v]:void 0;return(c?S?.ifObject()?.get([c,...d],i):S)??new N5({source:this.getSource()})}getDefault(t){return this.defaultProperties[t]??new N5({source:this.getSource()})}keys(t=!1){return Object.keys(this.properties({nonDefaultsOnly:t}))}values(t={}){return Object.values(this.properties(t))}entries(t={}){return Object.entries(this.properties(t))}has(t){return t in this.setProperties}omit(t,i={}){t=typeof t=="string"?[t]:t;let a=new RegExp(`^(${t.map(c=>c.replaceAll("$","\\$")).join("|")})$`);return Object.fromEntries(this.entries(i).filter(([c])=>!a.test(c)).map(([c,d])=>[c,d]))}pick(t,i={}){t=typeof t=="string"?[t]:t;let a=new RegExp(`^(${t.join("|")})$`);return Object.fromEntries(this.entries(i).filter(([c])=>a.test(c)).map(([c,d])=>[c,d]))}setDefaults(t){this.defaultProperties=Object.fromEntries(Object.entries(t).map(([i,a])=>[i,bh.from(this.getSource(),a)]));for(let[i,a]of Object.entries(this.setProperties))a.isObject()&&this.defaultProperties[i]?.isObject()&&a.setDefaults(this.defaultProperties[i].getValue());return this}transform(t,i=!0){let a={},c={},d=t({merge:pbe,$:new H3e(this,i)});for(let f of[...Object.keys(d),pbe])if(d[f]){let g=d[f]._(f);if(f===pbe){let{val:v,def:S}=g;if(v&&(typeof v!="object"||Array.isArray(v)))throw new Error("Cannot merge non-object value");if(S&&(typeof S!="object"||Array.isArray(S)))throw new Error("Cannot merge non-object default value");v instanceof r?(dbe(a,v.setProperties),dbe(c,v.defaultProperties)):dbe(a,v),S instanceof r?dbe(c,S.setProperties):S&&dbe(c,S)}else a[f]=g.val,g.def!==void 0&&(c[f]=g.def)}return new r({source:this.getSource(),properties:a}).setDefaults(c)}merge(t){let i={...this.setProperties},a={...this.defaultProperties};for(let[c,d]of[[i,t instanceof r?t.setProperties:t],[a,t instanceof r?t.defaultProperties:{}]])for(let[f,g]of Object.entries(d)){let v=bh.from(this,g);!(f in c)&&v.isUndefined()||c[f]?.equals(v)||(c[f]?.isObject()&&v.isObject()?c[f]=c[f].merge(v):c[f]=v)}return new r({source:this.getSource(),properties:i}).setDefaults(a).setCreator(this.getCreator())}equals(t){let i=bh.from(this,t);if(!i.isObject()||this.keys().length!==i.keys().length)return!1;for(let[a,c]of this.entries())if(!c.equals(i.get(a)))return!1;return!0}getCode(){return`{
31023
31023
  ${this.entries({nonDefaultsOnly:!0,resolve:!1}).map(([t,i])=>`${r.quotePropertyNameIfNeeded(t)}: ${i.getCode()}`).join(`,
31024
31024
  `)}
31025
- }`}static quotePropertyNameIfNeeded(t){return t===""||/[^\w$]/.test(t)?`'${t}'`:t}};kp.ObjectShape=Ij;var K3e=class extends bh{static{e(this,"CallExpressionShape")}callee;args;exportName;constructor({source:t,callee:i,args:a,exportName:c}){super({source:t}),this.callee=i,this.args=new XG({source:t,elements:a}),this.exportName=c}getCallee(){return this.callee}getExportName(){if(this.exportName)return Pin.camelCase(this.exportName)}hasExportName(){return!!this.exportName}getArguments(t=!0){return this.args.getElements(t)}getArgument(t,i=!0){return this.args.getElement(t,i)}hasArgument(t){return this.args.hasElement(t)}getDescription(){return`${this.getKind()} (${this.callee})`}getCode(){return`${this.callee}(${this.args.map(t=>t.getCode(),!1).join(", ")})`}};kp.CallExpressionShape=K3e;var Xft=class extends O2{static{e(this,"SourceFileShape")}path;content;constructor({source:t,path:i,content:a}){super({source:t}),this.path=typeof i=="string"?i:i.asString(`Source file path must be a string, but received: ${i.getDescription()}`).getValue(),this.content=typeof a=="string"?a:a.asString(`Source file content must be a string, but received: ${a.getDescription()}`).getValue()}getPath(){return this.path}getBaseName(){return win.path.basename(this.path)}getExtension(){return win.path.extname(this.path)}getContent(){return this.content}getValue(){return this.getContent()}getCode(){return this.getContent()}};kp.SourceFileShape=Xft;var $ft=class extends bh{static{e(this,"ElementAccessExpressionShape")}callee;arg;constructor({source:t,callee:i,arg:a}){super({source:t}),this.callee=i,this.arg=bh.from(t,a).pipe(c=>c.isResolvable()?c.resolve():c).as([O2,JG],`Invalid argument to element access expression: ${a instanceof bh?a.getDescription():JSON.stringify(a)}`)}getCallee(){return this.callee}getArg(){return this.arg}};kp.ElementAccessExpressionShape=$ft;var Yft=class extends bh{static{e(this,"VariableStatementShape")}variableName;initializer;_isExported;constructor({source:t,variableName:i,initializer:a,isExported:c=!1}){super({source:t}),this.variableName=i instanceof bh?i:new JX({source:t,name:i}),this.initializer=bh.from(t,a),this._isExported=c}getVariableName(){return this.variableName}getInitializer(){return this.initializer}isExported(){return this._isExported}getCode(){return`${this.isExported()?"export ":""}const ${this.getVariableName().getName()} = ${this.getInitializer().getCode()}`}};kp.VariableStatementShape=Yft;function Nin(r){return r==="sys_app"?"scope":"update"}e(Nin,"getDefaultCategoryFromTable");function mSr(r){return r==="demo"?"unload.demo":"unload"}e(mSr,"getInstallCategoryFromInstallMethod");function hSr(r,t){let i=Nin(t);if(r instanceof K3e){let a=r.getArgument(0).ifObject()?.get(["$meta","installMethod"]).ifString()?.getValue();a&&(i=mSr(a))}return i}e(hSr,"getInstallCategory");var tce=class r extends Ij{static{e(this,"Record")}id;related=[];action;installCategory;constructor({source:t,id:i,properties:a,action:c="INSERT_OR_UPDATE",installCategory:d=Nin(i.getTable())}){super({source:t,properties:a}),this.action=c,this.id=i,this.installCategory=d}static isDeleteAction(t){return t==="DELETE"||t==="delete_multiple"}getId(){return this.id}getInstallCategory(){return this.installCategory}getTable(){return this.id.getTable()}getAction(){return this.action}isDeleted(){return r.isDeleteAction(this.getAction())}with(...t){return this.related.length=0,this.related.push(...t),this}getRelated(){return this.related}flat(){return[this,...this.related.flatMap(t=>t.flat())]}getCount(){return 1+this.related.reduce((t,i)=>t+i.getCount(),0)}merge(t){return new r({source:this.getSource(),id:this.getId(),action:t instanceof r?t.getAction():this.getAction(),installCategory:this.getInstallCategory(),properties:super.merge(t)}).setCreator(this.getCreator()).with(...this.related)}equals(t){return this.getId().equals(t)}strictEquals(t){return!this.equals(t)||!(t instanceof r)?!1:this.getAction()===t.getAction()&&super.equals(t)}setCreator(t,i=!1){return this.related.forEach(a=>a.setCreator(t,i)),super.setCreator(t,i)}toRecordId(){return this.id}toString(){return this.id}};kp.Record=tce;var nce=class extends O2{static{e(this,"RecordId")}table;guid;keys;nowIdKey;constructor({source:t,table:i,guid:a,keys:c,nowIdKey:d}){let f=c instanceof Ij?Object.fromEntries(c.entries().map(([g,v])=>[g,v.ifString()?.getValue()??v.toRecordId()])):c;if(f&&Object.keys(f).length<=0)throw new Error("Failed to create RecordId shape. Coalesce keys must contain at least one entry.");super({source:t}),this.table=i,this.guid=a,this.keys=f,this.nowIdKey=d}getTable(){return this.table}getGuidProducer(){return this.guid}getNowIdKey(){return this.nowIdKey}getKeys(){return this.keys}resolveKeys(){if(this.keys)return Object.fromEntries(Object.entries(this.keys).map(([t,i])=>[t,typeof i=="string"?i:i.getValue()]))}getKey(t){return this.getKeys()?.[t]}getPrimaryKey(){let t=Object.values(this.keys??{}),[i]=t;if(t.length!==1||!i||typeof i!="string")throw new Error("Tried to get primary key of record ID that doesn't have one");return i}hasPrimaryKey(){return!!this.keys&&Object.keys(this.keys).length===1}getValue(){return typeof this.guid=="string"?this.guid:this.guid()}equals(t){let i=bh.from(this,t);return i.isRecord()?this.equals(i.getId()):i.isRecordId()?this.getTable()===i.getTable()&&(this.getValue()===i.getValue()||this.keys!==void 0&&Pin.isEqual(this.keys,i.keys)):this.hasPrimaryKey()&&i.equals(this.getPrimaryKey())||super.equals(t)}getCode(){return`'${this.hasPrimaryKey()?this.getPrimaryKey():this.getValue()}'`}};kp.RecordId=nce;function gSr(r){return typeof r.evaluate=="function"}e(gSr,"isLazyValue");function ySr(r){return typeof r.createAssociatedRecords=="function"}e(ySr,"hasAssociatedRecords")});var Zft=Je($G=>{"use strict";V();G();U();z();Object.defineProperty($G,"__esModule",{value:!0});$G.formatDateToPlatformFormat=vSr;$G.formatDateToPlatformFormatLocal=bSr;$G.parseGlideDuration=SSr;$G.parseGlideTime=ESr;$G.parseDateTime=Qft;$G.durationFieldToXML=xSr;$G.timeFieldToXML=TSr;var wj=e(r=>String(r).padStart(2,"0"),"padZero");function vSr(r){return r===void 0?"1970-01-01 00:00:00":`${r.getUTCFullYear()}-${wj(r.getUTCMonth()+1)}-${wj(r.getUTCDate())} ${wj(r.getUTCHours())}:${wj(r.getUTCMinutes())}:${wj(r.getUTCSeconds())}`}e(vSr,"formatDateToPlatformFormat");function bSr(r){return r===void 0?"1970-01-01 00:00:00":`${r.getFullYear()}-${wj(r.getMonth()+1)}-${wj(r.getDate())} ${wj(r.getHours())}:${wj(r.getMinutes())}:${wj(r.getSeconds())}`}e(bSr,"formatDateToPlatformFormatLocal");function SSr(r){if(!r)return;let t=Qft(r);if(!t)return;let i=new Date(t.year,t.month-1,t.day,t.hours,t.minutes,t.seconds),a=new Date(1970,0,1,0,0,0),c=i.getTime()-a.getTime(),d={},f=Math.floor(c/(1e3*60*60*24));f>0&&(d.days=f,c-=f*1e3*60*60*24);let g=Math.floor(c/(1e3*60*60));g>0&&(d.hours=g,c-=g*1e3*60*60);let v=Math.floor(c/(1e3*60));v>0&&(d.minutes=v,c-=v*1e3*60);let S=Math.floor(c/1e3);return S>0&&(d.seconds=S),d}e(SSr,"parseGlideDuration");function ESr(r,t){if(!r)return;let i=Qft(r);if(!i)return;let a=new Date(Date.UTC(i.year,i.month-1,i.day,i.hours,i.minutes,i.seconds)),c,d,f;if(t){let{hour:v,minute:S,second:E}=new Intl.DateTimeFormat("en-US",{timeZone:t,hour:"numeric",minute:"numeric",second:"numeric",hourCycle:"h23"}).formatToParts(a).reduce((A,C)=>((C.type==="hour"||C.type==="minute"||C.type==="second")&&(A[C.type]=Number(C.value)),A),{hour:0,minute:0,second:0});c=v,d=S,f=E}else c=a.getHours(),d=a.getMinutes(),f=a.getSeconds();let g={};return c>0&&(g.hours=c),d>0&&(g.minutes=d),f>0&&(g.seconds=f),g}e(ESr,"parseGlideTime");function Qft(r){if(!r)return;let t=/^(\d{4})-(\d{2})-(\d{2}) (\d{2}):(\d{2}):(\d{2})$/,i=r.match(t);if(i){let[,a,c,d,f,g,v]=i;return{year:Number(a),month:Number(c),day:Number(d),hours:Number(f),minutes:Number(g),seconds:Number(v)}}}e(Qft,"parseDateTime");function xSr(r){let t=DSr(r.days!==void 0?r.days:0,r.hours!==void 0?r.hours:0,r.minutes!==void 0?r.minutes:0,r.seconds!==void 0?r.seconds:0);return new Date(Date.UTC(1970,0,1)+t)}e(xSr,"durationFieldToXML");function TSr(r,t){let i=r.hours??0,a=r.minutes??0,c=r.seconds??0;if(t){let d=Date.UTC(1970,0,1,12,0,0),v=new Date(d).toLocaleString("en-US",{timeZone:t,hour:"2-digit",minute:"2-digit",hour12:!1}).split(":").map(Number),S=v[0]??12,E=v[1]??0,A=(S-12)*60+E,C=i*60+a-A;return new Date(Date.UTC(1970,0,1,Math.floor(C/60),C%60,c))}return new Date(1970,0,1,i,a,c)}e(TSr,"timeFieldToXML");function DSr(r,t,i,a){return r*864e5+t*36e5+i*6e4+a*1e3}e(DSr,"toMilliseconds")});var Rin=Je(xT=>{"use strict";V();G();U();z();Object.defineProperty(xT,"__esModule",{value:!0});xT.TemplateValueShape=xT.FieldListShape=xT.TimeShape=xT.DurationShape=xT.DATA_HELPER_NAMES=void 0;xT.asDataHelper=ASr;var lF=J3e(),rce=Zft();xT.DATA_HELPER_NAMES={DURATION:"Duration",TIME:"Time",FIELD_LIST:"FieldList",TEMPLATE_VALUE:"TemplateValue"};var ice=class extends lF.CallExpressionShape{static{e(this,"DataHelperShape")}equals(t){return typeof t=="string"?this.toString().getValue()===t:t instanceof lF.Shape?t.equals(this.toString().getValue()):super.equals(t)}},X3e=class r extends ice{static{e(this,"DurationShape")}constructor({source:t,value:i}){let a;if(i instanceof lF.ObjectShape){let c=i.pick(["days","hours","minutes","seconds"]);a=Object.fromEntries(Object.entries(c).map(([d,f])=>[d,lF.Shape.from(t,f).asNumber(`fields in Duration object can only contain numbers, got ${typeof f}`)]))}else a=i;super({source:t,callee:xT.DATA_HELPER_NAMES.DURATION,args:[a]})}getDuration(){return this.getArgument(0).asObject().getValue()}toString(){let t=(0,rce.durationFieldToXML)(this.getDuration()),i=(0,rce.formatDateToPlatformFormat)(t);return lF.Shape.from(this.getSource(),i).asString()}static from(t,i){if(i instanceof lF.StringShape){let a=(0,rce.parseGlideDuration)(i.getValue());if(!a)throw new Error(`Invalid duration value: ${i.getValue()}`);return new r({source:t,value:a})}return new r({source:t,value:i})}static zero(t){return new r({source:t,value:{seconds:0}})}};xT.DurationShape=X3e;var $3e=class r extends ice{static{e(this,"TimeShape")}timeZone;constructor({source:t,value:i,timeZone:a}){let c;if(i instanceof lF.ObjectShape){let f=i.pick(["hours","minutes","seconds"]);c=Object.fromEntries(Object.entries(f).map(([g,v])=>[g,lF.Shape.from(t,v).asNumber(`fields in Time object can only contain numbers, got ${typeof v}`)]))}else c=i;let d=[c];a&&d.push(a),super({source:t,callee:xT.DATA_HELPER_NAMES.TIME,args:d}),this.timeZone=a}getTimeData(){return this.getArgument(0).asObject().getValue()}getTimeZone(){return this.timeZone}toString(){let t=(0,rce.timeFieldToXML)(this.getTimeData(),this.timeZone),i=(0,rce.formatDateToPlatformFormat)(t);return lF.Shape.from(this.getSource(),i).toString()}static from(t,i,a){if(i instanceof lF.StringShape){let c=(0,rce.parseGlideTime)(i.getValue(),a);if(!c)throw new Error(`Invalid time value: ${i.getValue()}`);return new r({source:t,value:c,timeZone:a})}return new r({source:t,value:i,timeZone:a})}};xT.TimeShape=$3e;var Y3e=class r extends ice{static{e(this,"FieldListShape")}constructor({source:t,fields:i}){super({source:t,callee:xT.DATA_HELPER_NAMES.FIELD_LIST,args:[i]})}getFields(){return this.getArgument(0).asArray().getElements()}toString(){let t=this.getFields().map(i=>i.isRecord()?i.getId().getValue():i.getValue());return lF.Shape.from(this.getSource(),t.join(",")).asString()}static from(t,i){let a=i.getValue().split(",").map(c=>lF.Shape.from(t,c.trim()));return new r({source:t,fields:a})}};xT.FieldListShape=Y3e;var Q3e=class r extends ice{static{e(this,"TemplateValueShape")}constructor({source:t,value:i}){super({source:t,callee:xT.DATA_HELPER_NAMES.TEMPLATE_VALUE,args:[i]})}getTemplateValue(){return this.getArgument(0).asObject()}toString(){let t=this.getTemplateValue().getValue(),i=Object.entries(t).map(([a,c])=>{let d=String(c).replace(/\^/g,"^^");return`${a}=${d}`}).join("^");return lF.Shape.from(this.getSource(),`${i}^EQ`).asString()}static from(t,i){let a=i.getValue(),c="\0CARET\0",f=a.replace(/\^\^/g,c).split("^"),g={};for(let v of f){let S=v.indexOf("=");if(S===-1)continue;let E=v.substring(0,S),A=v.substring(S+1);!E||!A||(g[E]=A.replace(new RegExp(c,"g"),"^"))}return new r({source:t,value:g})}};xT.TemplateValueShape=Q3e;function ASr(r,t,i){switch(r){case xT.DATA_HELPER_NAMES.DURATION:return X3e.from(t.getSource(),t);case xT.DATA_HELPER_NAMES.TIME:return $3e.from(t.getSource(),t,i);case xT.DATA_HELPER_NAMES.FIELD_LIST:return Y3e.from(t.getSource(),t);case xT.DATA_HELPER_NAMES.TEMPLATE_VALUE:return Q3e.from(t.getSource(),t);default:return}}e(ASr,"asDataHelper")});var Min=Je(Lin=>{"use strict";V();G();U();z();Object.defineProperty(Lin,"__esModule",{value:!0})});var Oin=Je(kin=>{"use strict";V();G();U();z();Object.defineProperty(kin,"__esModule",{value:!0})});var e_t=Je(oce=>{"use strict";V();G();U();z();Object.defineProperty(oce,"__esModule",{value:!0});oce.DiffDatabase=oce.Database=void 0;var Z3e=class r{static{e(this,"Database")}database={};constructor(t=[]){this.insert(...t)}insert(...t){for(let i of t){let a=this.database[i.getTable()]??={},c=i.getId().getValue();a[c]=i}}resolve(t){let i=t.getTable(),a=t.getValue(),c=this.database[i]?.[a];if(c)return c;let d=t.getKeys();if(!d)return;let f=this.query(i,d);if(f.length>1)throw new Error(`Multiple records found for table "${i}" with coalesce keys: ${JSON.stringify(d)}`);return f[0]}get(t,i){if(typeof i=="string")return this.database[t]?.[i];let[a,...c]=this.query(t,i);if(c.length>0)throw new Error(`Expected get() to return no more than 1 match, but ${c.length+1} matches were found.`);return a}query(t,i={}){if(!t)return Object.values(this.database).flatMap(c=>Object.values(c));let a=[];e:for(let c of Object.values(this.database[t]??{})){for(let[d,f]of Object.entries(i))if(!c.get(d).equals(f))continue e;a.push(c)}return a}compare(t){let i=new e6e(this.query());return i.insert(...t instanceof r?t.query():t),i}delete(t){let i=t.getTable(),a=t.getValue();if(this.database[i]?.[a]){delete this.database[i]?.[a];return}let d=t.getKeys();d&&Object.values(this.database[i]??{}).filter(f=>Object.entries(d).every(([g,v])=>f.get(g).equals(v))).forEach(f=>{delete this.database[i]?.[f.getId().getValue()]})}[Symbol.iterator](){return this.query()[Symbol.iterator]()}};oce.Database=Z3e;var e6e=class extends Z3e{static{e(this,"DiffDatabase")}changedGuids=[];constructor(t=[]){super(t)}hasChanges(){return this.changedGuids.length>0}insert(...t){if(!this.changedGuids){super.insert(...t);return}for(let i of t){let a=i.getId(),c=this.resolve(a);c&&!c.strictEquals(i)?(this.changedGuids.push(a.getValue()),super.insert(c.merge(i))):c||(this.changedGuids.push(a.getValue()),super.insert(i))}}isChanged(t){return this.changedGuids.includes(t.getId().getValue())}};oce.DiffDatabase=e6e});var Fin=Je(t6e=>{"use strict";V();G();U();z();Object.defineProperty(t6e,"__esModule",{value:!0});t6e.Cache=void 0;var t_t=class{static{e(this,"Cache")}cache=new WeakMap;get(t){return this.cache.get(t)}put(t,i){return this.cache.set(t,{success:!0,value:i}),i}error(t,i){return this.cache.set(t,{success:!1,error:i}),i}clear(){this.cache=new WeakMap}};t6e.Cache=t_t});var Bin=Je(sce=>{"use strict";V();G();U();z();Object.defineProperty(sce,"__esModule",{value:!0});sce.Plugins=sce.Plugin=void 0;var n_t=yj(),CSr=J3e(),YG=e_t(),_be=a_t(),r_t=Fin(),ISr=Vs(),ace=Vs();function mbe(r,t){return t.success&&(t.value=Array.isArray(t.value)?t.value.map(i=>i.setCreator(r)):t.value.setCreator(r)),t}e(mbe,"setCreator");var i_t=class r{static{e(this,"Plugin")}config;nodeToShapeCache=new r_t.Cache;shapeToSubclassCache=new r_t.Cache;shapeToRecordCache=new r_t.Cache;relationships={};references={};constructor(t){this.config=t;for(let[i,a]of Object.entries(this.config.records??{}))this.parseRelationships([i,a.relationships])}parseRelationships([t,i]){if(!(t==="*"||!i)){this.relationships[t]={...this.relationships[t],...i};for(let[a,c]of Object.entries(i)){if(typeof c.via=="string"){let[d,f]=c.inverse?[a,t]:[t,a];this.references[f]={...this.references[f],[c.via]:d}}this.parseRelationships([a,c.relationships])}}}isComposite(t){return this.config.records?.[t]?.composite??!1}static create(t){return new r(t)}getName(){return this.config.name}getDocsMetadata(){if(!this.config.docs)return;let t={};for(let i of this.config.docs)t[i.apiName]={docPath:i.docPath,tags:i.tags};return t}getDescendants(t,i){let a=Object.entries(this.relationships[t.getTable()]??{}).filter(([,{descendant:f}])=>f),c=[],d=e(f=>{for(let g of[f].flat())g&&t!==g&&(c.push(g),c.push(...this.getDescendants(g,i)))},"push");for(let[f,{via:g,inverse:v=!1}]of a)typeof g=="string"?v?t.get(g).ifDefined()?.toString().pipe(S=>d(i.get(f,S.getValue()))):d(i.query(f,{[g]:t.toString().getValue()})):typeof g=="function"?d(i.query(f).filter(S=>g(t,S))):Array.isArray(g)?d(i.query(f).filter(S=>{for(let E of g){let{parent:[A,C],child:[L,W]}=E,O=t.get(A).ifString()?.asString(`Expected string value for column ${A} in regex-based via relationship`).getValue(),w=S.get(L).ifString()?.asString(`Expected string value for column ${L} in regex-based via relationship`).getValue();if(!O||!w)return!1;let M=O.match(new RegExp(C)),J=w.match(new RegExp(W));if(!M||!J)return!1;let Z=M.slice(1),Q=J.slice(1);if(Z.length!==Q.length||Z.some((me,be)=>me!==Q[be]))return!1}return!0})):d(i.query(f,Object.fromEntries(Object.entries(g).map(S=>{let[E,A]=v?S:[S[1],S[0]];return[A,t.get(E).getValue()]}))));return c}getCoalesceStrategy(t){return this.config.records?.[t]?.coalesce}getCoalesceTables(){return Object.entries(this.config.records??{}).filter(([t,i])=>i.coalesce).map(([t])=>t)}getTables(t,i=[]){let a=t?Object.entries(t).filter(([,c])=>c.descendant):Object.entries(this.config.records??{}).filter(([,c])=>c.toShape);return i.push(...a.filter(([c])=>c!=="*").map(([c])=>c)),a.filter(([c,d])=>d.relationships).forEach(([c,d])=>this.getTables(d.relationships,i)),new Set(i)}getReferenceColumns(t){return this.references[t]??{}}getRelationships(){return this.relationships}flushCache(){this.nodeToShapeCache.clear(),this.shapeToRecordCache.clear()}async nodeToShape(t,i){let a=this.nodeToShapeCache.get(t.compilerNode);if(a)return a.success?a.value:{success:!1};try{for(let c of this.config.nodes??[])if(c.toShape&&(0,n_t.getKindName)(t)===c.node&&(!c.fileTypes||c.fileTypes.includes((0,_be.getFileType)(t.getSourceFile().getFilePath(),i.project)))){let d=mbe(this,await c.toShape.bind(this)(t,{...i,self:this}));if(d.success)return this.nodeToShapeCache.put(t.compilerNode,d)}return this.nodeToShapeCache.put(t.compilerNode,{success:!1})}catch(c){throw this.nodeToShapeCache.error(t.compilerNode,c)}}async commit(t,i,a){for(let{shape:c,commit:d}of this.config.shapes??[])if(t.is(c)&&d){let f=await d.bind(this)(t,i,{...a,self:this});if(f.success)return f}return{success:!1}}async getTarget(t,i){for(let{shape:a,getTarget:c}of this.config.shapes??[])if(t.is(a)&&c){let d=await c.bind(this)(t,{...i,self:this});if(d.success)return d}return{success:!1}}async shapeToSubclass(t,i){let a=this.shapeToSubclassCache.get(t);if(a)return a.success?a.value:{success:!1};try{for(let c of this.config.shapes??[])if(c.toSubclass&&t.constructor===c.shape&&(!c.fileTypes||c.fileTypes.includes((0,_be.getFileType)(t.getOriginalFilePath(),i.project)))){let d=mbe(this,await c.toSubclass.bind(this)(t,{...i,self:this}));if(d.success){if(d.value.constructor===c.shape)throw new Error(`Result of subclassing "${c.shape.name}" is an instance of the same class. The result MUST be a subclass.`);return this.shapeToSubclassCache.put(t,d)}}return this.shapeToSubclassCache.put(t,{success:!1})}catch(c){throw this.shapeToSubclassCache.error(t,c)}}async shapeToRecord(t,i){let a=this.shapeToRecordCache.get(t);if(a)return a.success?a.value:{success:!1};try{for(let c of this.config.shapes??[])if(c.toRecord&&t.is(c.shape)&&(!c.fileTypes||c.fileTypes.includes((0,_be.getFileType)(t.getOriginalFilePath(),i.project)))){let d=mbe(this,await c.toRecord.bind(this)(t,{...i,self:this}));if(d.success)return this.shapeToRecordCache.put(t,d)}return this.shapeToRecordCache.put(t,{success:!1})}catch(c){throw this.shapeToRecordCache.error(t,c)}}async recordToShape0(t,i){if(t.getAction()!=="INSERT_OR_UPDATE")return{success:!0,value:new CSr.DeletedShape({source:t})};let a=t.getTable();for(let[c,{toShape:d}]of Object.entries(this.config.records??{}))if((c==="*"||c===a)&&d){let f=mbe(this,await d.bind(this)(t,{...i,self:this}));if(f.success)return f}return{success:!1}}async recordToShape({record:t,database:i,context:a}){a.logger.debug(`Transforming record into shape: ${t.getTable()}.${t.getId().getValue()}`);let c=this.getDescendants(t,i);return this.recordToShape0(t,{...a,database:i,descendants:new YG.Database(c.filter(d=>d.getAction()==="INSERT_OR_UPDATE"))})}async recordsToShapes({database:t,creatorOnly:i,changedOnly:a=!1,mode:c,handledRecords:d,context:f}){let g=!1,v=[];for(let[S,{toShape:E}]of Object.entries(this.config.records??{})){if(E){if(c==="explicit"&&S==="*")continue;if(c==="catch-all"&&S!=="*")continue}else continue;for(let A of S==="*"?t.query():t.query(S)){if(d.resolve(A.getId())||i&&A.getCreator()!==this)continue;f.logger.debug(`Database contains ${t.query().length} records for transformation.`),f.logger.debug(`Transforming record into shape: ${A.getTable()}.${A.getId().getValue()}`);let C=this.getDescendants(A,t);if(a){if(!(t instanceof YG.DiffDatabase))throw new Error("Tried to check for changed records while creating shapes, but the provided database does not support diffing.");if(![A,...C].some(J=>t.isChanged(J)))continue}let L=new YG.Database,W=new YG.Database;for(let J of C)J.isDeleted()?L.insert(J):W.insert(J);let O=await this.recordToShape0(A,{...f,database:t,descendants:W}),w=[],M=[];if(O.success==="partial")for(let J of O.unhandledRecords)w.push(J),M.push(J.getId().getValue());if(O.success){g=!0,d.insert(A),v.push(...[O.value].flat());for(let J of[...L,...W])M.includes(J.getId().getValue())||d.insert(J);if(f.logger.debug(`Plugin ${this.getName()} deferred handling of records: ${w.map(J=>J.getTable()+"_"+J.getId().getValue()).join(", ")}`),w.length>0)return{success:"partial",value:v,unhandledRecords:w}}}}return{success:g,value:v}}async computeDiff({mode:t,existing:i,incoming:a,context:c,visitedRecords:d,mergedDatabase:f}){let g=[];for(let[v,{diff:S}]of Object.entries(this.config.records??{})){if(S){if(t==="explicit"&&v==="*")continue;if(t==="catch-all"&&v!=="*")continue}else continue;let E=v==="*"?f.query():f.query(v);for(let A of E){if(d.resolve(A.getId()))continue;let C=this.getDescendants(A,f),L=new YG.Database(C),W=[...[i.resolve(A.getId())].filter(M=>M!==void 0),...i.query().filter(M=>L.resolve(M.getId())!==void 0)],O=[...[a.resolve(A.getId())].filter(M=>M!==void 0),...a.query().filter(M=>L.resolve(M.getId())!==void 0)],w=await S.bind(this)(new YG.Database(W),new YG.Database(O),new YG.Database(C),{...c,self:this});w.success&&(g.push(...w.value.query()),d.insert(...W,...O))}}return g}async recordToFile(t,i){let a=t.getTable();for(let[c,{toFile:d}]of Object.entries(this.config.records??{}))if((c==="*"||c===a)&&d){let f=await d.bind(this)(t,{...i,self:this});if(f.success){let g=Array.isArray(f.value)?f.value:[f.value],v=ace.path.normalize(t.getOriginalFilePath());if((0,_be.isSNScope)(i.config.scope)&&v.endsWith(ISr.NOW_FILE_EXTENSION)){let S=ace.path.relative(ace.path.join(i.config.fluentDir,"if"),v);if(!S.startsWith("..")&&ace.path.dirname(S)!==".")return{success:!0,value:g.map(E=>({...E,ifDirectoryPackage:ace.path.join("if",ace.path.dirname(S))}))}}return{success:!0,value:g}}}return{success:!1}}async recordsToFiles({database:t,mode:i,handledGuids:a,context:c}){let d=!1,f=[];for(let[g,{toFile:v}]of Object.entries(this.config.records??{})){if(v){if(i==="explicit"&&g==="*")continue;if(i==="catch-all"&&g!=="*")continue}else continue;for(let S of g==="*"?t.query():t.query(g)){if(a.has(S.getId().getValue()))continue;let E=this.getDescendants(S,t),A=await this.recordToFile(S,{...c,database:t,descendants:new YG.Database(E.filter(C=>C.getAction()==="INSERT_OR_UPDATE"))});A.success&&(d=!0,a.add(S.getId().getValue()),E.forEach(C=>a.add(C.getId().getValue())),c.config.type==="configuration"&&(Array.isArray(A.value)?A.value.forEach(C=>C.category=""):A.value.category=""),f.push(...[A.value].flat()))}}return{success:d,value:f}}async isEntryPoint(t,i){if(n_t.ts.Node.isNode(t))for(let a of this.config.nodes??[]){if((0,n_t.getKindName)(t)!==a.node)continue;let c=(0,_be.getFileType)(t.getSourceFile().getFilePath(),i.project);if(!(a.fileTypes&&!a.fileTypes.includes(c)))return!!a.entryPoint}else for(let a of this.config.files??[])if(!(a.matcher instanceof RegExp&&!a.matcher.test(t))&&!(typeof a.matcher=="function"&&!await a.matcher(t,{...i,self:this})))return!!a.entryPoint;return!1}async fileToRecord(t,i){for(let a of this.config.files??[]){if(!a.toRecord||a.matcher instanceof RegExp&&!a.matcher.test(t.path)||typeof a.matcher=="function"&&!a.matcher(t.path,{...i,self:this}))continue;let c=mbe(this,await a.toRecord.bind(this)(t,{...i,self:this}));if(c.success)return c}return{success:!1}}inspect(t,i){for(let a of this.config.shapes??[])t.is(a.shape)&&a.inspect&&a.inspect.bind(this)(t,{...i,self:this})}async getUpdateName(t,i){let a=t.getTable();for(let[c,{getUpdateName:d}]of Object.entries(this.config.records??{}))if((c==="*"||c===a)&&d){let f=await d.bind(this)(t,{...i,self:this});if(f.success)return f}return{success:!1}}};sce.Plugin=i_t;var o_t=class{static{e(this,"Plugins")}plugins;constructor(t){this.plugins=t}toArray(){return this.plugins}prepend(...t){this.plugins.unshift(...t)}append(...t){this.plugins.push(...t)}getCoalesceStrategy(t){for(let i of this.plugins){let a=i.getCoalesceStrategy(t);if(a)return a}}isComposite(t){for(let i of this.plugins)if(i.isComposite(t))return!0;return!1}getCoalesceTables(){let t=new Set;for(let i of this.plugins)i.getCoalesceTables().forEach(a=>{t.add(a)});return t}getReferenceColumns(t){let i=[];for(let a of this.plugins)i.push(...Object.entries(a.getReferenceColumns(t)));return Object.fromEntries(i)}async isEntryPoint(t,i){for(let a of this.plugins)if(await a.isEntryPoint(t,i))return!0;return!1}getDocsMetadata(){return this.plugins.reduce((t,i)=>{let a=i.getDocsMetadata();return a&&Object.assign(t,a),t},{})}};sce.Plugins=o_t});var jin=Je(Win=>{"use strict";V();G();U();z();Object.defineProperty(Win,"__esModule",{value:!0})});var Vin=Je(n6e=>{"use strict";V();G();U();z();Object.defineProperty(n6e,"__esModule",{value:!0});n6e.PluginUsageTracker=void 0;var s_t=class{static{e(this,"PluginUsageTracker")}sourcesConvertedToRecords=new Set;recordCountPerPlugin=new Map;clearPluginToRecordUsage(){this.sourcesConvertedToRecords.clear(),this.recordCountPerPlugin.clear()}addPluginToRecordUsage(t,i,a){if(!this.sourcesConvertedToRecords.has(i)){this.sourcesConvertedToRecords.add(i);let c=this.recordCountPerPlugin.get(t)??0;this.recordCountPerPlugin.set(t,c+a)}}getRecordCountPerPlugin(){return[...this.recordCountPerPlugin.entries()].map(([t,i])=>({plugin:t.getName().replace(/Plugin$/,""),count:i}))}};n6e.PluginUsageTracker=s_t});var r6e=Je(Yw=>{"use strict";V();G();U();z();var wSr=Yw&&Yw.__createBinding||(Object.create?function(r,t,i,a){a===void 0&&(a=i);var c=Object.getOwnPropertyDescriptor(t,i);(!c||("get"in c?!t.__esModule:c.writable||c.configurable))&&(c={enumerable:!0,get:e(function(){return t[i]},"get")}),Object.defineProperty(r,a,c)}:function(r,t,i,a){a===void 0&&(a=i),r[a]=t[i]}),Pj=Yw&&Yw.__exportStar||function(r,t){for(var i in r)i!=="default"&&!Object.prototype.hasOwnProperty.call(t,i)&&wSr(t,r,i)};Object.defineProperty(Yw,"__esModule",{value:!0});Pj(J3e(),Yw);Pj(Rin(),Yw);Pj(Min(),Yw);Pj(Oin(),Yw);Pj(Bin(),Yw);Pj(Out(),Yw);Pj(jin(),Yw);Pj(e_t(),Yw);Pj(Zft(),Yw);Pj(Vin(),Yw)});var zin=Je(c_t=>{"use strict";V();G();U();z();Object.defineProperty(c_t,"__esModule",{value:!0});c_t.deleteMultipleDiff=PSr;var l_t=r6e();async function PSr(r,t,i,{factory:a}){if(t.query().length===0)return{success:!0,value:new l_t.Database};let c=r.compare(t),d=i.query().filter(f=>!t.resolve(f.getId()));for(let f of d){let g=await a.createRecord({source:f.getSource(),table:f.getTable(),explicitId:f.getId(),properties:f.properties(),action:"DELETE"});c.insert(g)}return{success:!0,value:c.hasChanges()?new l_t.Database(c.query()):new l_t.Database}}e(PSr,"deleteMultipleDiff")});var a_t=Je(QG=>{"use strict";V();G();U();z();var NSr=QG&&QG.__createBinding||(Object.create?function(r,t,i,a){a===void 0&&(a=i);var c=Object.getOwnPropertyDescriptor(t,i);(!c||("get"in c?!t.__esModule:c.writable||c.configurable))&&(c={enumerable:!0,get:e(function(){return t[i]},"get")}),Object.defineProperty(r,a,c)}:function(r,t,i,a){a===void 0&&(a=i),r[a]=t[i]}),u_t=QG&&QG.__exportStar||function(r,t){for(var i in r)i!=="default"&&!Object.prototype.hasOwnProperty.call(t,i)&&NSr(t,r,i)};Object.defineProperty(QG,"__esModule",{value:!0});u_t(tjt(),QG);u_t(njt(),QG);u_t(zin(),QG)});var Uin=Je(i6e=>{V();G();U();z();(function(r){r.parser=function(Zt,Bt){return new i(Zt,Bt)},r.SAXParser=i,r.SAXStream=S,r.createStream=v,r.MAX_BUFFER_LENGTH=64*1024;var t=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];r.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","opentagstart","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"];function i(Zt,Bt){if(!(this instanceof i))return new i(Zt,Bt);var ht=this;c(ht),ht.q=ht.c="",ht.bufferCheckPosition=r.MAX_BUFFER_LENGTH,ht.opt=Bt||{},ht.opt.lowercase=ht.opt.lowercase||ht.opt.lowercasetags,ht.looseCase=ht.opt.lowercase?"toLowerCase":"toUpperCase",ht.tags=[],ht.closed=ht.closedRoot=ht.sawRoot=!1,ht.tag=ht.error=null,ht.strict=!!Zt,ht.noscript=!!(Zt||ht.opt.noscript),ht.state=_e.BEGIN,ht.strictEntities=ht.opt.strictEntities,ht.ENTITIES=ht.strictEntities?Object.create(r.XML_ENTITIES):Object.create(r.ENTITIES),ht.attribList=[],ht.opt.xmlns&&(ht.ns=Object.create(W)),ht.opt.unquotedAttributeValues===void 0&&(ht.opt.unquotedAttributeValues=!Zt),ht.trackPosition=ht.opt.position!==!1,ht.trackPosition&&(ht.position=ht.line=ht.column=0),et(ht,"onready")}e(i,"SAXParser"),Object.create||(Object.create=function(Zt){function Bt(){}e(Bt,"F"),Bt.prototype=Zt;var ht=new Bt;return ht}),Object.keys||(Object.keys=function(Zt){var Bt=[];for(var ht in Zt)Zt.hasOwnProperty(ht)&&Bt.push(ht);return Bt});function a(Zt){for(var Bt=Math.max(r.MAX_BUFFER_LENGTH,10),ht=0,de=0,At=t.length;de<At;de++){var ct=Zt[t[de]].length;if(ct>Bt)switch(t[de]){case"textNode":ft(Zt);break;case"cdata":ut(Zt,"oncdata",Zt.cdata),Zt.cdata="";break;case"script":ut(Zt,"onscript",Zt.script),Zt.script="";break;default:En(Zt,"Max buffer length exceeded: "+t[de])}ht=Math.max(ht,ct)}var Lt=r.MAX_BUFFER_LENGTH-ht;Zt.bufferCheckPosition=Lt+Zt.position}e(a,"checkBufferLength");function c(Zt){for(var Bt=0,ht=t.length;Bt<ht;Bt++)Zt[t[Bt]]=""}e(c,"clearBuffers");function d(Zt){ft(Zt),Zt.cdata!==""&&(ut(Zt,"oncdata",Zt.cdata),Zt.cdata=""),Zt.script!==""&&(ut(Zt,"onscript",Zt.script),Zt.script="")}e(d,"flushBuffers"),i.prototype={end:e(function(){fn(this)},"end"),write:ir,resume:e(function(){return this.error=null,this},"resume"),close:e(function(){return this.write(null)},"close"),flush:e(function(){d(this)},"flush")};var f;try{f=(yee(),nd(pse)).Stream}catch{f=e(function(){},"Stream")}f||(f=e(function(){},"Stream"));var g=r.EVENTS.filter(function(Zt){return Zt!=="error"&&Zt!=="end"});function v(Zt,Bt){return new S(Zt,Bt)}e(v,"createStream");function S(Zt,Bt){if(!(this instanceof S))return new S(Zt,Bt);f.apply(this),this._parser=new i(Zt,Bt),this.writable=!0,this.readable=!0;var ht=this;this._parser.onend=function(){ht.emit("end")},this._parser.onerror=function(de){ht.emit("error",de),ht._parser.error=null},this._decoder=null,g.forEach(function(de){Object.defineProperty(ht,"on"+de,{get:e(function(){return ht._parser["on"+de]},"get"),set:e(function(At){if(!At)return ht.removeAllListeners(de),ht._parser["on"+de]=At,At;ht.on(de,At)},"set"),enumerable:!0,configurable:!1})})}e(S,"SAXStream"),S.prototype=Object.create(f.prototype,{constructor:{value:S}}),S.prototype.write=function(Zt){if(typeof xe=="function"&&typeof xe.isBuffer=="function"&&xe.isBuffer(Zt)){if(!this._decoder){var Bt=Fye().StringDecoder;this._decoder=new Bt("utf8")}Zt=this._decoder.write(Zt)}return this._parser.write(Zt.toString()),this.emit("data",Zt),!0},S.prototype.end=function(Zt){return Zt&&Zt.length&&this.write(Zt),this._parser.end(),!0},S.prototype.on=function(Zt,Bt){var ht=this;return!ht._parser["on"+Zt]&&g.indexOf(Zt)!==-1&&(ht._parser["on"+Zt]=function(){var de=arguments.length===1?[arguments[0]]:Array.apply(null,arguments);de.splice(0,0,Zt),ht.emit.apply(ht,de)}),f.prototype.on.call(ht,Zt,Bt)};var E="[CDATA[",A="DOCTYPE",C="http://www.w3.org/XML/1998/namespace",L="http://www.w3.org/2000/xmlns/",W={xml:C,xmlns:L},O=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,w=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/,M=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,J=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/;function Z(Zt){return Zt===" "||Zt===`
31025
+ }`}static quotePropertyNameIfNeeded(t){return t===""||/[^\w$]/.test(t)?`'${t}'`:t}};kp.ObjectShape=Ij;var K3e=class extends bh{static{e(this,"CallExpressionShape")}callee;args;exportName;constructor({source:t,callee:i,args:a,exportName:c}){super({source:t}),this.callee=i,this.args=new XG({source:t,elements:a}),this.exportName=c}getCallee(){return this.callee}getExportName(){if(this.exportName)return Pin.camelCase(this.exportName)}hasExportName(){return!!this.exportName}getArguments(t=!0){return this.args.getElements(t)}getArgument(t,i=!0){return this.args.getElement(t,i)}hasArgument(t){return this.args.hasElement(t)}getDescription(){return`${this.getKind()} (${this.callee})`}getCode(){return`${this.callee}(${this.args.map(t=>t.getCode(),!1).join(", ")})`}};kp.CallExpressionShape=K3e;var Xft=class extends O2{static{e(this,"SourceFileShape")}path;content;constructor({source:t,path:i,content:a}){super({source:t}),this.path=typeof i=="string"?i:i.asString(`Source file path must be a string, but received: ${i.getDescription()}`).getValue(),this.content=typeof a=="string"?a:a.asString(`Source file content must be a string, but received: ${a.getDescription()}`).getValue()}getPath(){return this.path}getBaseName(){return win.path.basename(this.path)}getExtension(){return win.path.extname(this.path)}getContent(){return this.content}getValue(){return this.getContent()}getCode(){return this.getContent()}};kp.SourceFileShape=Xft;var $ft=class extends bh{static{e(this,"ElementAccessExpressionShape")}callee;arg;constructor({source:t,callee:i,arg:a}){super({source:t}),this.callee=i,this.arg=bh.from(t,a).pipe(c=>c.isResolvable()?c.resolve():c).as([O2,JG],`Invalid argument to element access expression: ${a instanceof bh?a.getDescription():JSON.stringify(a)}`)}getCallee(){return this.callee}getArg(){return this.arg}};kp.ElementAccessExpressionShape=$ft;var Yft=class extends bh{static{e(this,"VariableStatementShape")}variableName;initializer;_isExported;constructor({source:t,variableName:i,initializer:a,isExported:c=!1}){super({source:t}),this.variableName=i instanceof bh?i:new JX({source:t,name:i}),this.initializer=bh.from(t,a),this._isExported=c}getVariableName(){return this.variableName}getInitializer(){return this.initializer}isExported(){return this._isExported}getCode(){return`${this.isExported()?"export ":""}const ${this.getVariableName().getName()} = ${this.getInitializer().getCode()}`}};kp.VariableStatementShape=Yft;function Nin(r){return r==="sys_app"?"scope":"update"}e(Nin,"getDefaultCategoryFromTable");function mSr(r){return r==="demo"?"unload.demo":"unload"}e(mSr,"getInstallCategoryFromInstallMethod");function hSr(r,t){let i=Nin(t);if(r instanceof K3e){let a=r.getArgument(0).ifObject()?.get(["$meta","installMethod"]).ifString()?.getValue();a&&(i=mSr(a))}return i}e(hSr,"getInstallCategory");var tce=class r extends Ij{static{e(this,"Record")}id;related=[];action;installCategory;constructor({source:t,id:i,properties:a,action:c="INSERT_OR_UPDATE",installCategory:d=Nin(i.getTable())}){super({source:t,properties:a}),this.action=c,this.id=i,this.installCategory=d}static isDeleteAction(t){return t==="DELETE"||t==="delete_multiple"}getId(){return this.id}getInstallCategory(){return this.installCategory}getTable(){return this.id.getTable()}getAction(){return this.action}isDeleted(){return r.isDeleteAction(this.getAction())}with(...t){return this.related.length=0,this.related.push(...t),this}getRelated(){return this.related}flat(){return[this,...this.related.flatMap(t=>t.flat())]}getCount(){return 1+this.related.reduce((t,i)=>t+i.getCount(),0)}merge(t){return new r({source:this.getSource(),id:this.getId(),action:t instanceof r?t.getAction():this.getAction(),installCategory:this.getInstallCategory(),properties:super.merge(t)}).setCreator(this.getCreator()).with(...this.related)}equals(t){return this.getId().equals(t)}strictEquals(t){return!this.equals(t)||!(t instanceof r)?!1:this.getAction()===t.getAction()&&super.equals(t)}setCreator(t,i=!1){return this.related.forEach(a=>a.setCreator(t,i)),super.setCreator(t,i)}toRecordId(){return this.id}toString(){return this.id}};kp.Record=tce;var nce=class extends O2{static{e(this,"RecordId")}table;guid;keys;nowIdKey;constructor({source:t,table:i,guid:a,keys:c,nowIdKey:d}){let f=c instanceof Ij?Object.fromEntries(c.entries().map(([g,v])=>[g,v.ifString()?.getValue()??v.toRecordId()])):c;if(f&&Object.keys(f).length<=0)throw new Error("Failed to create RecordId shape. Coalesce keys must contain at least one entry.");super({source:t}),this.table=i,this.guid=a,this.keys=f,this.nowIdKey=d}getTable(){return this.table}getGuidProducer(){return this.guid}getNowIdKey(){return this.nowIdKey}getKeys(){return this.keys}resolveKeys(){if(this.keys)return Object.fromEntries(Object.entries(this.keys).map(([t,i])=>[t,typeof i=="string"?i:i.getValue()]))}getKey(t){return this.getKeys()?.[t]}getPrimaryKey(){let t=Object.values(this.keys??{}),[i]=t;if(t.length!==1||!i||typeof i!="string")throw new Error("Tried to get primary key of record ID that doesn't have one");return i}hasPrimaryKey(){return!!this.keys&&Object.keys(this.keys).length===1}getValue(){return typeof this.guid=="string"?this.guid:this.guid()}equals(t){let i=bh.from(this,t);return i.isRecord()?this.equals(i.getId()):i.isRecordId()?this.getTable()===i.getTable()&&(this.getValue()===i.getValue()||this.keys!==void 0&&Pin.isEqual(this.keys,i.keys)):this.hasPrimaryKey()&&i.equals(this.getPrimaryKey())||super.equals(t)}getCode(){return`'${this.hasPrimaryKey()?this.getPrimaryKey():this.getValue()}'`}};kp.RecordId=nce;function gSr(r){return typeof r.evaluate=="function"}e(gSr,"isLazyValue");function ySr(r){return typeof r.createAssociatedRecords=="function"}e(ySr,"hasAssociatedRecords")});var Zft=Je($G=>{"use strict";V();G();U();z();Object.defineProperty($G,"__esModule",{value:!0});$G.formatDateToPlatformFormat=vSr;$G.formatDateToPlatformFormatLocal=bSr;$G.parseGlideDuration=SSr;$G.parseGlideTime=ESr;$G.parseDateTime=Qft;$G.durationFieldToXML=xSr;$G.timeFieldToXML=TSr;var wj=e(r=>String(r).padStart(2,"0"),"padZero");function vSr(r){return r===void 0?"1970-01-01 00:00:00":`${r.getUTCFullYear()}-${wj(r.getUTCMonth()+1)}-${wj(r.getUTCDate())} ${wj(r.getUTCHours())}:${wj(r.getUTCMinutes())}:${wj(r.getUTCSeconds())}`}e(vSr,"formatDateToPlatformFormat");function bSr(r){return r===void 0?"1970-01-01 00:00:00":`${r.getFullYear()}-${wj(r.getMonth()+1)}-${wj(r.getDate())} ${wj(r.getHours())}:${wj(r.getMinutes())}:${wj(r.getSeconds())}`}e(bSr,"formatDateToPlatformFormatLocal");function SSr(r){if(!r)return;let t=Qft(r);if(!t)return;let i=new Date(t.year,t.month-1,t.day,t.hours,t.minutes,t.seconds),a=new Date(1970,0,1,0,0,0),c=i.getTime()-a.getTime(),d={},f=Math.floor(c/(1e3*60*60*24));f>0&&(d.days=f,c-=f*1e3*60*60*24);let g=Math.floor(c/(1e3*60*60));g>0&&(d.hours=g,c-=g*1e3*60*60);let v=Math.floor(c/(1e3*60));v>0&&(d.minutes=v,c-=v*1e3*60);let S=Math.floor(c/1e3);return S>0&&(d.seconds=S),d}e(SSr,"parseGlideDuration");function ESr(r,t){if(!r)return;let i=Qft(r);if(!i)return;let a=new Date(Date.UTC(i.year,i.month-1,i.day,i.hours,i.minutes,i.seconds)),c,d,f;if(t){let{hour:v,minute:S,second:E}=new Intl.DateTimeFormat("en-US",{timeZone:t,hour:"numeric",minute:"numeric",second:"numeric",hourCycle:"h23"}).formatToParts(a).reduce((A,C)=>((C.type==="hour"||C.type==="minute"||C.type==="second")&&(A[C.type]=Number(C.value)),A),{hour:0,minute:0,second:0});c=v,d=S,f=E}else c=a.getHours(),d=a.getMinutes(),f=a.getSeconds();let g={};return c>0&&(g.hours=c),d>0&&(g.minutes=d),f>0&&(g.seconds=f),g}e(ESr,"parseGlideTime");function Qft(r){if(!r)return;let t=/^(\d{4})-(\d{2})-(\d{2}) (\d{2}):(\d{2}):(\d{2})$/,i=r.match(t);if(i){let[,a,c,d,f,g,v]=i;return{year:Number(a),month:Number(c),day:Number(d),hours:Number(f),minutes:Number(g),seconds:Number(v)}}}e(Qft,"parseDateTime");function xSr(r){let t=DSr(r.days!==void 0?r.days:0,r.hours!==void 0?r.hours:0,r.minutes!==void 0?r.minutes:0,r.seconds!==void 0?r.seconds:0);return new Date(Date.UTC(1970,0,1)+t)}e(xSr,"durationFieldToXML");function TSr(r,t){let i=r.hours??0,a=r.minutes??0,c=r.seconds??0;if(t){let d=Date.UTC(1970,0,1,12,0,0),v=new Date(d).toLocaleString("en-US",{timeZone:t,hour:"2-digit",minute:"2-digit",hour12:!1}).split(":").map(Number),S=v[0]??12,E=v[1]??0,A=(S-12)*60+E,C=i*60+a-A;return new Date(Date.UTC(1970,0,1,Math.floor(C/60),C%60,c))}return new Date(1970,0,1,i,a,c)}e(TSr,"timeFieldToXML");function DSr(r,t,i,a){return r*864e5+t*36e5+i*6e4+a*1e3}e(DSr,"toMilliseconds")});var Rin=Je(xT=>{"use strict";V();G();U();z();Object.defineProperty(xT,"__esModule",{value:!0});xT.TemplateValueShape=xT.FieldListShape=xT.TimeShape=xT.DurationShape=xT.DATA_HELPER_NAMES=void 0;xT.asDataHelper=ASr;var lF=J3e(),rce=Zft();xT.DATA_HELPER_NAMES={DURATION:"Duration",TIME:"Time",FIELD_LIST:"FieldList",TEMPLATE_VALUE:"TemplateValue"};var ice=class extends lF.CallExpressionShape{static{e(this,"DataHelperShape")}equals(t){return typeof t=="string"?this.toString().getValue()===t:t instanceof lF.Shape?t.equals(this.toString().getValue()):super.equals(t)}},X3e=class r extends ice{static{e(this,"DurationShape")}constructor({source:t,value:i}){let a;if(i instanceof lF.ObjectShape){let c=i.pick(["days","hours","minutes","seconds"]);a=Object.fromEntries(Object.entries(c).map(([d,f])=>[d,lF.Shape.from(t,f).asNumber(`fields in Duration object can only contain numbers, got ${typeof f}`)]))}else a=i;super({source:t,callee:xT.DATA_HELPER_NAMES.DURATION,args:[a]})}getDuration(){return this.getArgument(0).asObject().getValue()}toString(){let t=(0,rce.durationFieldToXML)(this.getDuration()),i=(0,rce.formatDateToPlatformFormat)(t);return lF.Shape.from(this.getSource(),i).asString()}static from(t,i){if(i instanceof lF.StringShape){let a=(0,rce.parseGlideDuration)(i.getValue());if(!a)throw new Error(`Invalid duration value: ${i.getValue()}`);return new r({source:t,value:a})}return new r({source:t,value:i})}static zero(t){return new r({source:t,value:{seconds:0}})}};xT.DurationShape=X3e;var $3e=class r extends ice{static{e(this,"TimeShape")}timeZone;constructor({source:t,value:i,timeZone:a}){let c;if(i instanceof lF.ObjectShape){let f=i.pick(["hours","minutes","seconds"]);c=Object.fromEntries(Object.entries(f).map(([g,v])=>[g,lF.Shape.from(t,v).asNumber(`fields in Time object can only contain numbers, got ${typeof v}`)]))}else c=i;let d=[c];a&&d.push(a),super({source:t,callee:xT.DATA_HELPER_NAMES.TIME,args:d}),this.timeZone=a}getTimeData(){return this.getArgument(0).asObject().getValue()}getTimeZone(){return this.timeZone}toString(){let t=(0,rce.timeFieldToXML)(this.getTimeData(),this.timeZone),i=(0,rce.formatDateToPlatformFormat)(t);return lF.Shape.from(this.getSource(),i).toString()}static from(t,i,a){if(i instanceof lF.StringShape){let c=(0,rce.parseGlideTime)(i.getValue(),a);if(!c)throw new Error(`Invalid time value: ${i.getValue()}`);return new r({source:t,value:c,timeZone:a})}return new r({source:t,value:i,timeZone:a})}};xT.TimeShape=$3e;var Y3e=class r extends ice{static{e(this,"FieldListShape")}constructor({source:t,fields:i}){super({source:t,callee:xT.DATA_HELPER_NAMES.FIELD_LIST,args:[i]})}getFields(){return this.getArgument(0).asArray().getElements()}toString(){let t=this.getFields().map(i=>i.isRecord()?i.getId().getValue():i.getValue());return lF.Shape.from(this.getSource(),t.join(",")).asString()}static from(t,i){let a=i.getValue().split(",").map(c=>lF.Shape.from(t,c.trim()));return new r({source:t,fields:a})}};xT.FieldListShape=Y3e;var Q3e=class r extends ice{static{e(this,"TemplateValueShape")}constructor({source:t,value:i}){super({source:t,callee:xT.DATA_HELPER_NAMES.TEMPLATE_VALUE,args:[i]})}getTemplateValue(){return this.getArgument(0).asObject()}toString(){let t=this.getTemplateValue().getValue(),i=Object.entries(t).map(([a,c])=>{let d=String(c).replace(/\^/g,"^^");return`${a}=${d}`}).join("^");return lF.Shape.from(this.getSource(),`${i}^EQ`).asString()}static from(t,i){let a=i.getValue(),c="\0CARET\0",f=a.replace(/\^\^/g,c).split("^"),g={};for(let v of f){let S=v.indexOf("=");if(S===-1)continue;let E=v.substring(0,S),A=v.substring(S+1);!E||!A||(g[E]=A.replace(new RegExp(c,"g"),"^"))}return new r({source:t,value:g})}};xT.TemplateValueShape=Q3e;function ASr(r,t,i){switch(r){case xT.DATA_HELPER_NAMES.DURATION:return X3e.from(t.getSource(),t);case xT.DATA_HELPER_NAMES.TIME:return $3e.from(t.getSource(),t,i);case xT.DATA_HELPER_NAMES.FIELD_LIST:return Y3e.from(t.getSource(),t);case xT.DATA_HELPER_NAMES.TEMPLATE_VALUE:return Q3e.from(t.getSource(),t);default:return}}e(ASr,"asDataHelper")});var Min=Je(Lin=>{"use strict";V();G();U();z();Object.defineProperty(Lin,"__esModule",{value:!0})});var Oin=Je(kin=>{"use strict";V();G();U();z();Object.defineProperty(kin,"__esModule",{value:!0})});var e_t=Je(oce=>{"use strict";V();G();U();z();Object.defineProperty(oce,"__esModule",{value:!0});oce.DiffDatabase=oce.Database=void 0;var Z3e=class r{static{e(this,"Database")}database={};constructor(t=[]){this.insert(...t)}insert(...t){for(let i of t){let a=this.database[i.getTable()]??={},c=i.getId().getValue();a[c]=i}}resolve(t){let i=t.getTable(),a=t.getValue(),c=this.database[i]?.[a];if(c)return c;let d=t.getKeys();if(!d)return;let f=this.query(i,d);if(f.length>1)throw new Error(`Multiple records found for table "${i}" with coalesce keys: ${JSON.stringify(d)}`);return f[0]}get(t,i){if(typeof i=="string")return this.database[t]?.[i];let[a,...c]=this.query(t,i);if(c.length>0)throw new Error(`Expected get() to return no more than 1 match, but ${c.length+1} matches were found.`);return a}query(t,i={}){if(!t)return Object.values(this.database).flatMap(c=>Object.values(c));let a=[];e:for(let c of Object.values(this.database[t]??{})){for(let[d,f]of Object.entries(i))if(!c.get(d).equals(f))continue e;a.push(c)}return a}compare(t){let i=new e6e(this.query());return i.insert(...t instanceof r?t.query():t),i}delete(t){let i=t.getTable(),a=t.getValue();if(this.database[i]?.[a]){delete this.database[i]?.[a];return}let d=t.getKeys();d&&Object.values(this.database[i]??{}).filter(f=>Object.entries(d).every(([g,v])=>f.get(g).equals(v))).forEach(f=>{delete this.database[i]?.[f.getId().getValue()]})}[Symbol.iterator](){return this.query()[Symbol.iterator]()}};oce.Database=Z3e;var e6e=class extends Z3e{static{e(this,"DiffDatabase")}changedGuids=[];constructor(t=[]){super(t)}hasChanges(){return this.changedGuids.length>0}insert(...t){if(!this.changedGuids){super.insert(...t);return}for(let i of t){let a=i.getId(),c=this.resolve(a);c&&!c.strictEquals(i)?(this.changedGuids.push(a.getValue()),super.insert(c.merge(i))):c||(this.changedGuids.push(a.getValue()),super.insert(i))}}isChanged(t){return this.changedGuids.includes(t.getId().getValue())}};oce.DiffDatabase=e6e});var Fin=Je(t6e=>{"use strict";V();G();U();z();Object.defineProperty(t6e,"__esModule",{value:!0});t6e.Cache=void 0;var t_t=class{static{e(this,"Cache")}cache=new WeakMap;get(t){return this.cache.get(t)}put(t,i){return this.cache.set(t,{success:!0,value:i}),i}error(t,i){return this.cache.set(t,{success:!1,error:i}),i}clear(){this.cache=new WeakMap}};t6e.Cache=t_t});var Bin=Je(sce=>{"use strict";V();G();U();z();Object.defineProperty(sce,"__esModule",{value:!0});sce.Plugins=sce.Plugin=void 0;var n_t=yj(),CSr=J3e(),YG=e_t(),_be=a_t(),r_t=Fin(),ISr=Vs(),ace=Vs();function mbe(r,t){return t.success&&(t.value=Array.isArray(t.value)?t.value.map(i=>i.setCreator(r)):t.value.setCreator(r)),t}e(mbe,"setCreator");var i_t=class r{static{e(this,"Plugin")}config;nodeToShapeCache=new r_t.Cache;shapeToSubclassCache=new r_t.Cache;shapeToRecordCache=new r_t.Cache;relationships={};references={};constructor(t){this.config=t;for(let[i,a]of Object.entries(this.config.records??{}))this.parseRelationships([i,a.relationships])}parseRelationships([t,i]){if(!(t==="*"||!i)){this.relationships[t]={...this.relationships[t],...i};for(let[a,c]of Object.entries(i)){if(typeof c.via=="string"){let[d,f]=c.inverse?[a,t]:[t,a];this.references[f]={...this.references[f],[c.via]:d}}this.parseRelationships([a,c.relationships])}}}isComposite(t){return this.config.records?.[t]?.composite??!1}static create(t){return new r(t)}getName(){return this.config.name}getDocsMetadata(){if(!this.config.docs)return;let t={};for(let i of this.config.docs)t[i.apiName]={docPath:i.docPath,tags:i.tags};return t}getDescendants(t,i){let a=Object.entries(this.relationships[t.getTable()]??{}).filter(([,{descendant:f}])=>f),c=[],d=e(f=>{for(let g of[f].flat())g&&t!==g&&(c.push(g),c.push(...this.getDescendants(g,i)))},"push");for(let[f,{via:g,inverse:v=!1}]of a)typeof g=="string"?v?t.get(g).ifDefined()?.toString().pipe(S=>d(i.get(f,S.getValue()))):d(i.query(f,{[g]:t.toString().getValue()})):typeof g=="function"?d(i.query(f).filter(S=>g(t,S))):Array.isArray(g)?d(i.query(f).filter(S=>{for(let E of g){let{parent:[A,C],child:[L,W]}=E,O=t.get(A).ifString()?.asString(`Expected string value for column ${A} in regex-based via relationship`).getValue(),w=S.get(L).ifString()?.asString(`Expected string value for column ${L} in regex-based via relationship`).getValue();if(!O||!w)return!1;let M=O.match(new RegExp(C)),J=w.match(new RegExp(W));if(!M||!J)return!1;let Z=M.slice(1),Q=J.slice(1);if(Z.length!==Q.length||Z.some((me,be)=>me!==Q[be]))return!1}return!0})):d(i.query(f,Object.fromEntries(Object.entries(g).map(S=>{let[E,A]=v?S:[S[1],S[0]];return[A,t.get(E).getValue()]}))));return c}getCoalesceStrategy(t){return this.config.records?.[t]?.coalesce}getCoalesceTables(){return Object.entries(this.config.records??{}).filter(([t,i])=>i.coalesce).map(([t])=>t)}getTables(t,i=[]){let a=t?Object.entries(t).filter(([,c])=>c.descendant):Object.entries(this.config.records??{}).filter(([,c])=>c.toShape);return i.push(...a.filter(([c])=>c!=="*").map(([c])=>c)),a.filter(([c,d])=>d.relationships).forEach(([c,d])=>this.getTables(d.relationships,i)),new Set(i)}getReferenceColumns(t){return this.references[t]??{}}getRelationships(){return this.relationships}flushCache(){this.nodeToShapeCache.clear(),this.shapeToRecordCache.clear()}async nodeToShape(t,i){let a=this.nodeToShapeCache.get(t.compilerNode);if(a)return a.success?a.value:{success:!1};try{for(let c of this.config.nodes??[])if(c.toShape&&(0,n_t.getKindName)(t)===c.node&&(!c.fileTypes||c.fileTypes.includes((0,_be.getFileType)(t.getSourceFile().getFilePath(),i.project)))){let d=mbe(this,await c.toShape.bind(this)(t,{...i,self:this}));if(d.success)return this.nodeToShapeCache.put(t.compilerNode,d)}return this.nodeToShapeCache.put(t.compilerNode,{success:!1})}catch(c){throw this.nodeToShapeCache.error(t.compilerNode,c)}}async commit(t,i,a){for(let{shape:c,commit:d}of this.config.shapes??[])if(t.is(c)&&d){let f=await d.bind(this)(t,i,{...a,self:this});if(f.success)return f}return{success:!1}}async getTarget(t,i){for(let{shape:a,getTarget:c}of this.config.shapes??[])if(t.is(a)&&c){let d=await c.bind(this)(t,{...i,self:this});if(d.success)return d}return{success:!1}}async shapeToSubclass(t,i){let a=this.shapeToSubclassCache.get(t);if(a)return a.success?a.value:{success:!1};try{for(let c of this.config.shapes??[])if(c.toSubclass&&t.constructor===c.shape&&(!c.fileTypes||c.fileTypes.includes((0,_be.getFileType)(t.getOriginalFilePath(),i.project)))){let d=mbe(this,await c.toSubclass.bind(this)(t,{...i,self:this}));if(d.success){if(d.value.constructor===c.shape)throw new Error(`Result of subclassing "${c.shape.name}" is an instance of the same class. The result MUST be a subclass.`);return this.shapeToSubclassCache.put(t,d)}}return this.shapeToSubclassCache.put(t,{success:!1})}catch(c){throw this.shapeToSubclassCache.error(t,c)}}async shapeToRecord(t,i){let a=this.shapeToRecordCache.get(t);if(a)return a.success?a.value:{success:!1};try{for(let c of this.config.shapes??[])if(c.toRecord&&t.is(c.shape)&&(!c.fileTypes||c.fileTypes.includes((0,_be.getFileType)(t.getOriginalFilePath(),i.project)))){let d=mbe(this,await c.toRecord.bind(this)(t,{...i,self:this}));if(d.success)return this.shapeToRecordCache.put(t,d)}return this.shapeToRecordCache.put(t,{success:!1})}catch(c){throw this.shapeToRecordCache.error(t,c)}}async recordToShape0(t,i){if(t.getAction()!=="INSERT_OR_UPDATE")return{success:!0,value:new CSr.DeletedShape({source:t})};let a=t.getTable();for(let[c,{toShape:d}]of Object.entries(this.config.records??{}))if((c==="*"||c===a)&&d){let f=mbe(this,await d.bind(this)(t,{...i,self:this}));if(f.success)return f}return{success:!1}}async recordToShape({record:t,database:i,context:a}){a.logger.debug(`Transforming record into shape: ${t.getTable()}.${t.getId().getValue()}`);let c=this.getDescendants(t,i);return this.recordToShape0(t,{...a,database:i,descendants:new YG.Database(c.filter(d=>d.getAction()==="INSERT_OR_UPDATE"))})}async recordsToShapes({database:t,creatorOnly:i,changedOnly:a=!1,mode:c,handledRecords:d,context:f}){let g=!1,v=[];for(let[S,{toShape:E}]of Object.entries(this.config.records??{})){if(E){if(c==="explicit"&&S==="*")continue;if(c==="catch-all"&&S!=="*")continue}else continue;for(let A of S==="*"?t.query():t.query(S)){if(d.resolve(A.getId())||i&&A.getCreator()!==this)continue;f.logger.debug(`Database contains ${t.query().length} records for transformation.`),f.logger.debug(`Transforming record into shape: ${A.getTable()}.${A.getId().getValue()}`);let C=this.getDescendants(A,t);if(a){if(!(t instanceof YG.DiffDatabase))throw new Error("Tried to check for changed records while creating shapes, but the provided database does not support diffing.");if(![A,...C].some(J=>t.isChanged(J)))continue}let L=new YG.Database,W=new YG.Database;for(let J of C)J.isDeleted()?L.insert(J):W.insert(J);let O=await this.recordToShape0(A,{...f,database:t,descendants:W}),w=[],M=[];if(O.success==="partial")for(let J of O.unhandledRecords)w.push(J),M.push(J.getId().getValue());if(O.success){g=!0,d.insert(A),v.push(...[O.value].flat());for(let J of[...L,...W])M.includes(J.getId().getValue())||d.insert(J);if(f.logger.debug(`Plugin ${this.getName()} deferred handling of records: ${w.map(J=>J.getTable()+"_"+J.getId().getValue()).join(", ")}`),w.length>0)return{success:"partial",value:v,unhandledRecords:w}}}}return{success:g,value:v}}async computeDiff({mode:t,existing:i,incoming:a,context:c,visitedRecords:d,mergedDatabase:f}){let g=[];for(let[v,{diff:S}]of Object.entries(this.config.records??{})){if(S){if(t==="explicit"&&v==="*")continue;if(t==="catch-all"&&v!=="*")continue}else continue;let E=v==="*"?f.query():f.query(v);for(let A of E){if(d.resolve(A.getId()))continue;let C=this.getDescendants(A,f),L=new YG.Database(C),W=[...[i.resolve(A.getId())].filter(M=>M!==void 0),...i.query().filter(M=>L.resolve(M.getId())!==void 0)],O=[...[a.resolve(A.getId())].filter(M=>M!==void 0),...a.query().filter(M=>L.resolve(M.getId())!==void 0)],w=await S.bind(this)(new YG.Database(W),new YG.Database(O),new YG.Database(C),{...c,self:this});w.success&&(g.push(...w.value.query()),d.insert(...W,...O))}}return g}async recordToFile(t,i){let a=t.getTable();for(let[c,{toFile:d}]of Object.entries(this.config.records??{}))if((c==="*"||c===a)&&d){let f=await d.bind(this)(t,{...i,self:this});if(f.success){let g=Array.isArray(f.value)?f.value:[f.value],v=ace.path.normalize(t.getOriginalFilePath());if((0,_be.isSNScope)(i.config.scope)&&v.endsWith(ISr.NOW_FILE_EXTENSION)){let S=ace.path.relative(ace.path.join(i.config.fluentDir,"if"),v);if(!S.startsWith("..")&&ace.path.dirname(S)!==".")return{success:!0,value:g.map(E=>({...E,ifDirectoryPackage:ace.path.join("if",ace.path.dirname(S))}))}}return{success:!0,value:g}}}return{success:!1}}async recordsToFiles({database:t,mode:i,handledGuids:a,context:c}){let d=!1,f=[];for(let[g,{toFile:v}]of Object.entries(this.config.records??{})){if(v){if(i==="explicit"&&g==="*")continue;if(i==="catch-all"&&g!=="*")continue}else continue;for(let S of g==="*"?t.query():t.query(g)){if(a.has(S.getId().getValue()))continue;let E=this.getDescendants(S,t),A=await this.recordToFile(S,{...c,database:t,descendants:new YG.Database(E.filter(C=>C.getAction()==="INSERT_OR_UPDATE"))});A.success&&(d=!0,a.add(S.getId().getValue()),E.forEach(C=>a.add(C.getId().getValue())),c.config.type==="configuration"&&(Array.isArray(A.value)?A.value.forEach(C=>C.category=""):A.value.category=""),f.push(...[A.value].flat()))}}return{success:d,value:f}}async isEntryPoint(t,i){if(n_t.ts.Node.isNode(t))for(let a of this.config.nodes??[]){if((0,n_t.getKindName)(t)!==a.node)continue;let c=(0,_be.getFileType)(t.getSourceFile().getFilePath(),i.project);if(!(a.fileTypes&&!a.fileTypes.includes(c)))return!!a.entryPoint}else for(let a of this.config.files??[])if(!(a.matcher instanceof RegExp&&!a.matcher.test(t))&&!(typeof a.matcher=="function"&&!await a.matcher(t,{...i,self:this})))return!!a.entryPoint;return!1}async fileToRecord(t,i){for(let a of this.config.files??[]){if(!a.toRecord||a.matcher instanceof RegExp&&!a.matcher.test(t.path)||typeof a.matcher=="function"&&!a.matcher(t.path,{...i,self:this}))continue;let c=mbe(this,await a.toRecord.bind(this)(t,{...i,self:this}));if(c.success)return c}return{success:!1}}inspect(t,i){for(let a of this.config.shapes??[])t.is(a.shape)&&a.inspect&&a.inspect.bind(this)(t,{...i,self:this})}async getUpdateName(t,i){let a=t.getTable();for(let[c,{getUpdateName:d}]of Object.entries(this.config.records??{}))if((c==="*"||c===a)&&d){let f=await d.bind(this)(t,{...i,self:this});if(f.success)return f}return{success:!1}}};sce.Plugin=i_t;var o_t=class{static{e(this,"Plugins")}plugins;constructor(t){this.plugins=t}toArray(){return this.plugins}prepend(...t){this.plugins.unshift(...t)}append(...t){this.plugins.push(...t)}getCoalesceStrategy(t){for(let i of this.plugins){let a=i.getCoalesceStrategy(t);if(a)return a}}isComposite(t){for(let i of this.plugins)if(i.isComposite(t))return!0;return!1}getCoalesceTables(){let t=new Set;for(let i of this.plugins)i.getCoalesceTables().forEach(a=>{t.add(a)});return t}getReferenceColumns(t){let i=[];for(let a of this.plugins)i.push(...Object.entries(a.getReferenceColumns(t)));return Object.fromEntries(i)}async isEntryPoint(t,i){for(let a of this.plugins)if(await a.isEntryPoint(t,i))return!0;return!1}getDocsMetadata(){return this.plugins.reduce((t,i)=>{let a=i.getDocsMetadata();return a&&Object.assign(t,a),t},{})}};sce.Plugins=o_t});var jin=Je(Win=>{"use strict";V();G();U();z();Object.defineProperty(Win,"__esModule",{value:!0})});var Vin=Je(n6e=>{"use strict";V();G();U();z();Object.defineProperty(n6e,"__esModule",{value:!0});n6e.PluginUsageTracker=void 0;var s_t=class{static{e(this,"PluginUsageTracker")}trackedSources=new Set;shapeCountPerPlugin=new Map;clearPluginShapeUsage(){this.trackedSources.clear(),this.shapeCountPerPlugin.clear()}addPluginShapeUsage(t,i){if(!this.trackedSources.has(i)){this.trackedSources.add(i);let a=this.shapeCountPerPlugin.get(t)??0;this.shapeCountPerPlugin.set(t,a+1)}}getShapeCountPerPlugin(){return[...this.shapeCountPerPlugin.entries()].map(([t,i])=>({plugin:t.getName().replace(/Plugin$/,""),count:i}))}};n6e.PluginUsageTracker=s_t});var r6e=Je(Yw=>{"use strict";V();G();U();z();var wSr=Yw&&Yw.__createBinding||(Object.create?function(r,t,i,a){a===void 0&&(a=i);var c=Object.getOwnPropertyDescriptor(t,i);(!c||("get"in c?!t.__esModule:c.writable||c.configurable))&&(c={enumerable:!0,get:e(function(){return t[i]},"get")}),Object.defineProperty(r,a,c)}:function(r,t,i,a){a===void 0&&(a=i),r[a]=t[i]}),Pj=Yw&&Yw.__exportStar||function(r,t){for(var i in r)i!=="default"&&!Object.prototype.hasOwnProperty.call(t,i)&&wSr(t,r,i)};Object.defineProperty(Yw,"__esModule",{value:!0});Pj(J3e(),Yw);Pj(Rin(),Yw);Pj(Min(),Yw);Pj(Oin(),Yw);Pj(Bin(),Yw);Pj(Out(),Yw);Pj(jin(),Yw);Pj(e_t(),Yw);Pj(Zft(),Yw);Pj(Vin(),Yw)});var zin=Je(c_t=>{"use strict";V();G();U();z();Object.defineProperty(c_t,"__esModule",{value:!0});c_t.deleteMultipleDiff=PSr;var l_t=r6e();async function PSr(r,t,i,{factory:a}){if(t.query().length===0)return{success:!0,value:new l_t.Database};let c=r.compare(t),d=i.query().filter(f=>!t.resolve(f.getId()));for(let f of d){let g=await a.createRecord({source:f.getSource(),table:f.getTable(),explicitId:f.getId(),properties:f.properties(),action:"DELETE"});c.insert(g)}return{success:!0,value:c.hasChanges()?new l_t.Database(c.query()):new l_t.Database}}e(PSr,"deleteMultipleDiff")});var a_t=Je(QG=>{"use strict";V();G();U();z();var NSr=QG&&QG.__createBinding||(Object.create?function(r,t,i,a){a===void 0&&(a=i);var c=Object.getOwnPropertyDescriptor(t,i);(!c||("get"in c?!t.__esModule:c.writable||c.configurable))&&(c={enumerable:!0,get:e(function(){return t[i]},"get")}),Object.defineProperty(r,a,c)}:function(r,t,i,a){a===void 0&&(a=i),r[a]=t[i]}),u_t=QG&&QG.__exportStar||function(r,t){for(var i in r)i!=="default"&&!Object.prototype.hasOwnProperty.call(t,i)&&NSr(t,r,i)};Object.defineProperty(QG,"__esModule",{value:!0});u_t(tjt(),QG);u_t(njt(),QG);u_t(zin(),QG)});var Uin=Je(i6e=>{V();G();U();z();(function(r){r.parser=function(Zt,Bt){return new i(Zt,Bt)},r.SAXParser=i,r.SAXStream=S,r.createStream=v,r.MAX_BUFFER_LENGTH=64*1024;var t=["comment","sgmlDecl","textNode","tagName","doctype","procInstName","procInstBody","entity","attribName","attribValue","cdata","script"];r.EVENTS=["text","processinginstruction","sgmldeclaration","doctype","comment","opentagstart","attribute","opentag","closetag","opencdata","cdata","closecdata","error","end","ready","script","opennamespace","closenamespace"];function i(Zt,Bt){if(!(this instanceof i))return new i(Zt,Bt);var ht=this;c(ht),ht.q=ht.c="",ht.bufferCheckPosition=r.MAX_BUFFER_LENGTH,ht.opt=Bt||{},ht.opt.lowercase=ht.opt.lowercase||ht.opt.lowercasetags,ht.looseCase=ht.opt.lowercase?"toLowerCase":"toUpperCase",ht.tags=[],ht.closed=ht.closedRoot=ht.sawRoot=!1,ht.tag=ht.error=null,ht.strict=!!Zt,ht.noscript=!!(Zt||ht.opt.noscript),ht.state=_e.BEGIN,ht.strictEntities=ht.opt.strictEntities,ht.ENTITIES=ht.strictEntities?Object.create(r.XML_ENTITIES):Object.create(r.ENTITIES),ht.attribList=[],ht.opt.xmlns&&(ht.ns=Object.create(W)),ht.opt.unquotedAttributeValues===void 0&&(ht.opt.unquotedAttributeValues=!Zt),ht.trackPosition=ht.opt.position!==!1,ht.trackPosition&&(ht.position=ht.line=ht.column=0),et(ht,"onready")}e(i,"SAXParser"),Object.create||(Object.create=function(Zt){function Bt(){}e(Bt,"F"),Bt.prototype=Zt;var ht=new Bt;return ht}),Object.keys||(Object.keys=function(Zt){var Bt=[];for(var ht in Zt)Zt.hasOwnProperty(ht)&&Bt.push(ht);return Bt});function a(Zt){for(var Bt=Math.max(r.MAX_BUFFER_LENGTH,10),ht=0,de=0,At=t.length;de<At;de++){var ct=Zt[t[de]].length;if(ct>Bt)switch(t[de]){case"textNode":ft(Zt);break;case"cdata":ut(Zt,"oncdata",Zt.cdata),Zt.cdata="";break;case"script":ut(Zt,"onscript",Zt.script),Zt.script="";break;default:En(Zt,"Max buffer length exceeded: "+t[de])}ht=Math.max(ht,ct)}var Lt=r.MAX_BUFFER_LENGTH-ht;Zt.bufferCheckPosition=Lt+Zt.position}e(a,"checkBufferLength");function c(Zt){for(var Bt=0,ht=t.length;Bt<ht;Bt++)Zt[t[Bt]]=""}e(c,"clearBuffers");function d(Zt){ft(Zt),Zt.cdata!==""&&(ut(Zt,"oncdata",Zt.cdata),Zt.cdata=""),Zt.script!==""&&(ut(Zt,"onscript",Zt.script),Zt.script="")}e(d,"flushBuffers"),i.prototype={end:e(function(){fn(this)},"end"),write:ir,resume:e(function(){return this.error=null,this},"resume"),close:e(function(){return this.write(null)},"close"),flush:e(function(){d(this)},"flush")};var f;try{f=(yee(),nd(pse)).Stream}catch{f=e(function(){},"Stream")}f||(f=e(function(){},"Stream"));var g=r.EVENTS.filter(function(Zt){return Zt!=="error"&&Zt!=="end"});function v(Zt,Bt){return new S(Zt,Bt)}e(v,"createStream");function S(Zt,Bt){if(!(this instanceof S))return new S(Zt,Bt);f.apply(this),this._parser=new i(Zt,Bt),this.writable=!0,this.readable=!0;var ht=this;this._parser.onend=function(){ht.emit("end")},this._parser.onerror=function(de){ht.emit("error",de),ht._parser.error=null},this._decoder=null,g.forEach(function(de){Object.defineProperty(ht,"on"+de,{get:e(function(){return ht._parser["on"+de]},"get"),set:e(function(At){if(!At)return ht.removeAllListeners(de),ht._parser["on"+de]=At,At;ht.on(de,At)},"set"),enumerable:!0,configurable:!1})})}e(S,"SAXStream"),S.prototype=Object.create(f.prototype,{constructor:{value:S}}),S.prototype.write=function(Zt){if(typeof xe=="function"&&typeof xe.isBuffer=="function"&&xe.isBuffer(Zt)){if(!this._decoder){var Bt=Fye().StringDecoder;this._decoder=new Bt("utf8")}Zt=this._decoder.write(Zt)}return this._parser.write(Zt.toString()),this.emit("data",Zt),!0},S.prototype.end=function(Zt){return Zt&&Zt.length&&this.write(Zt),this._parser.end(),!0},S.prototype.on=function(Zt,Bt){var ht=this;return!ht._parser["on"+Zt]&&g.indexOf(Zt)!==-1&&(ht._parser["on"+Zt]=function(){var de=arguments.length===1?[arguments[0]]:Array.apply(null,arguments);de.splice(0,0,Zt),ht.emit.apply(ht,de)}),f.prototype.on.call(ht,Zt,Bt)};var E="[CDATA[",A="DOCTYPE",C="http://www.w3.org/XML/1998/namespace",L="http://www.w3.org/2000/xmlns/",W={xml:C,xmlns:L},O=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,w=/[:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/,M=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,J=/[#:_A-Za-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u00B7\u0300-\u036F\u203F-\u2040.\d-]/;function Z(Zt){return Zt===" "||Zt===`
31026
31026
  `||Zt==="\r"||Zt===" "}e(Z,"isWhitespace");function Q(Zt){return Zt==='"'||Zt==="'"}e(Q,"isQuote");function me(Zt){return Zt===">"||Z(Zt)}e(me,"isAttribEnd");function be(Zt,Bt){return Zt.test(Bt)}e(be,"isMatch");function he(Zt,Bt){return!be(Zt,Bt)}e(he,"notMatch");var _e=0;r.STATE={BEGIN:_e++,BEGIN_WHITESPACE:_e++,TEXT:_e++,TEXT_ENTITY:_e++,OPEN_WAKA:_e++,SGML_DECL:_e++,SGML_DECL_QUOTED:_e++,DOCTYPE:_e++,DOCTYPE_QUOTED:_e++,DOCTYPE_DTD:_e++,DOCTYPE_DTD_QUOTED:_e++,COMMENT_STARTING:_e++,COMMENT:_e++,COMMENT_ENDING:_e++,COMMENT_ENDED:_e++,CDATA:_e++,CDATA_ENDING:_e++,CDATA_ENDING_2:_e++,PROC_INST:_e++,PROC_INST_BODY:_e++,PROC_INST_ENDING:_e++,OPEN_TAG:_e++,OPEN_TAG_SLASH:_e++,ATTRIB:_e++,ATTRIB_NAME:_e++,ATTRIB_NAME_SAW_WHITE:_e++,ATTRIB_VALUE:_e++,ATTRIB_VALUE_QUOTED:_e++,ATTRIB_VALUE_CLOSED:_e++,ATTRIB_VALUE_UNQUOTED:_e++,ATTRIB_VALUE_ENTITY_Q:_e++,ATTRIB_VALUE_ENTITY_U:_e++,CLOSE_TAG:_e++,CLOSE_TAG_SAW_WHITE:_e++,SCRIPT:_e++,SCRIPT_ENDING:_e++},r.XML_ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'"},r.ENTITIES={amp:"&",gt:">",lt:"<",quot:'"',apos:"'",AElig:198,Aacute:193,Acirc:194,Agrave:192,Aring:197,Atilde:195,Auml:196,Ccedil:199,ETH:208,Eacute:201,Ecirc:202,Egrave:200,Euml:203,Iacute:205,Icirc:206,Igrave:204,Iuml:207,Ntilde:209,Oacute:211,Ocirc:212,Ograve:210,Oslash:216,Otilde:213,Ouml:214,THORN:222,Uacute:218,Ucirc:219,Ugrave:217,Uuml:220,Yacute:221,aacute:225,acirc:226,aelig:230,agrave:224,aring:229,atilde:227,auml:228,ccedil:231,eacute:233,ecirc:234,egrave:232,eth:240,euml:235,iacute:237,icirc:238,igrave:236,iuml:239,ntilde:241,oacute:243,ocirc:244,ograve:242,oslash:248,otilde:245,ouml:246,szlig:223,thorn:254,uacute:250,ucirc:251,ugrave:249,uuml:252,yacute:253,yuml:255,copy:169,reg:174,nbsp:160,iexcl:161,cent:162,pound:163,curren:164,yen:165,brvbar:166,sect:167,uml:168,ordf:170,laquo:171,not:172,shy:173,macr:175,deg:176,plusmn:177,sup1:185,sup2:178,sup3:179,acute:180,micro:181,para:182,middot:183,cedil:184,ordm:186,raquo:187,frac14:188,frac12:189,frac34:190,iquest:191,times:215,divide:247,OElig:338,oelig:339,Scaron:352,scaron:353,Yuml:376,fnof:402,circ:710,tilde:732,Alpha:913,Beta:914,Gamma:915,Delta:916,Epsilon:917,Zeta:918,Eta:919,Theta:920,Iota:921,Kappa:922,Lambda:923,Mu:924,Nu:925,Xi:926,Omicron:927,Pi:928,Rho:929,Sigma:931,Tau:932,Upsilon:933,Phi:934,Chi:935,Psi:936,Omega:937,alpha:945,beta:946,gamma:947,delta:948,epsilon:949,zeta:950,eta:951,theta:952,iota:953,kappa:954,lambda:955,mu:956,nu:957,xi:958,omicron:959,pi:960,rho:961,sigmaf:962,sigma:963,tau:964,upsilon:965,phi:966,chi:967,psi:968,omega:969,thetasym:977,upsih:978,piv:982,ensp:8194,emsp:8195,thinsp:8201,zwnj:8204,zwj:8205,lrm:8206,rlm:8207,ndash:8211,mdash:8212,lsquo:8216,rsquo:8217,sbquo:8218,ldquo:8220,rdquo:8221,bdquo:8222,dagger:8224,Dagger:8225,bull:8226,hellip:8230,permil:8240,prime:8242,Prime:8243,lsaquo:8249,rsaquo:8250,oline:8254,frasl:8260,euro:8364,image:8465,weierp:8472,real:8476,trade:8482,alefsym:8501,larr:8592,uarr:8593,rarr:8594,darr:8595,harr:8596,crarr:8629,lArr:8656,uArr:8657,rArr:8658,dArr:8659,hArr:8660,forall:8704,part:8706,exist:8707,empty:8709,nabla:8711,isin:8712,notin:8713,ni:8715,prod:8719,sum:8721,minus:8722,lowast:8727,radic:8730,prop:8733,infin:8734,ang:8736,and:8743,or:8744,cap:8745,cup:8746,int:8747,there4:8756,sim:8764,cong:8773,asymp:8776,ne:8800,equiv:8801,le:8804,ge:8805,sub:8834,sup:8835,nsub:8836,sube:8838,supe:8839,oplus:8853,otimes:8855,perp:8869,sdot:8901,lceil:8968,rceil:8969,lfloor:8970,rfloor:8971,lang:9001,rang:9002,loz:9674,spades:9824,clubs:9827,hearts:9829,diams:9830},Object.keys(r.ENTITIES).forEach(function(Zt){var Bt=r.ENTITIES[Zt],ht=typeof Bt=="number"?String.fromCharCode(Bt):Bt;r.ENTITIES[Zt]=ht});for(var He in r.STATE)r.STATE[r.STATE[He]]=He;_e=r.STATE;function et(Zt,Bt,ht){Zt[Bt]&&Zt[Bt](ht)}e(et,"emit");function ut(Zt,Bt,ht){Zt.textNode&&ft(Zt),et(Zt,Bt,ht)}e(ut,"emitNode");function ft(Zt){Zt.textNode=Wt(Zt.opt,Zt.textNode),Zt.textNode&&et(Zt,"ontext",Zt.textNode),Zt.textNode=""}e(ft,"closeText");function Wt(Zt,Bt){return Zt.trim&&(Bt=Bt.trim()),Zt.normalize&&(Bt=Bt.replace(/\s+/g," ")),Bt}e(Wt,"textopts");function En(Zt,Bt){return ft(Zt),Zt.trackPosition&&(Bt+=`
31027
31027
  Line: `+Zt.line+`
31028
31028
  Column: `+Zt.column+`
@@ -31141,11 +31141,11 @@ declare global {
31141
31141
  If you are not intending to do custom module transpilation, please remove 'transpiledSourceDir'
31142
31142
  and ensure 'serverModulesDir' is set to the directory containing modules `},r.parse=(d,f)=>(EDr(d),SDr(d,f),hDr(d)),r.parseFromPath=(d,f,g)=>{let v=Psn(d,f);if(!v)throw new Error(`Failed to parse config file at path ${d}`);return r.parse(v,g)},r.parseFromDirectory=(d,f,g)=>r.parse(Psn(r.getFilePath(d),f)??(0,wsn.parsePackageJson)(d,f).now??{},g),r.exists=(d,f)=>imt.FileSystem.existsSync(f,r.getFilePath(d))?!0:!!(imt.FileSystem.existsSync(f,nM.path.join(d,"package.json"))&&(0,wsn.parsePackageJson)(d,f).now),r.getFilePath=d=>nM.path.join(d,r.FILE_NAME);function t({scope:d,scopeId:f,...g}={}){return Nsn.parse({scope:d??"global",scopeId:f??(0,dDr.GUID)(),...g})}e(t,"create"),r.create=t;function i({rootDir:d,compiler:f,fileSystem:g,logger:v}){let S=r.getFilePath(d);return f.getSourceFile(S)?r.parseFromPath(S,f,v):r.exists(d,g)?r.parseFromPath(S,g,v):r.create()}e(i,"load"),r.load=i;function a(d,f,g,...v){return r.legacyPackageResolution(d)?g?nM.path.join(d.scope,...v):nM.path.join(d.scope,f.name,f.version,...v):nM.path.join(d.scope==="global"?nM.path.sep:"",d.scope,f.name,f.version,...v)}e(a,"moduleResolutionPath"),r.moduleResolutionPath=a;function c(d){if(d.packageResolverVersion){if(d.scope==="global"&&d.packageResolverVersion===rM.MODULE_RESOLUTION.V1)throw new Error("Global modules must use packageResolverVersion: '2.0.0' or higher");return d.packageResolverVersion===rM.MODULE_RESOLUTION.V1}return d.scope!=="global"}e(c,"legacyPackageResolution"),r.legacyPackageResolution=c})(vce||(rM.NowConfig=vce={}));var _Dr=Isn();function mDr(r){return new lDr.Validator().validate(r,_Dr)}e(mDr,"getNowConfigFileValidationResults");function hDr(r){let t=Nsn.safeParse(r);if(!t.success){let i=`Invalid '${vce.FILE_NAME}' file:
31143
31143
  `;throw t.error.errors.map(a=>i+=`${a.path}: ${a.message}
31144
- `),new Error(i)}return t.data}e(hDr,"getParsedNowConfigData");function gDr(r,t){let i=(0,cDr.readJson)(r,"",t);if(!vDr(i))throw new Error(`Config file '${vce.FILE_NAME}' is empty or malformed`);let a=mDr(i);if(a.errors.length>0)throw new Error(`${vce.FILE_NAME} - error: ${yDr(a.errors)}`);return i}e(gDr,"validateNowConfigJsonFile");function yDr(r){return r.filter(t=>!t.message.includes("does not match allOf schema")).map(t=>t.path.length?`"${t.path.join(".")}" ${t.message}`:t.message==="is of prohibited type [object Object]"?t.argument.errorMessage:t.message).join(", ")}e(yDr,"formatValidationErrorMessage");function Psn(r,t){return(t instanceof uDr.Compiler?!!t.getSourceFile(r):imt.FileSystem.existsSync(t,r))?gDr(r,t):null}e(Psn,"readNowConfigJsonFile");function vDr(r){if(!r||typeof r!="object"||Array.isArray(r))return!1;for(let t in r)if(typeof t!="string")return!1;return!0}e(vDr,"isObjectWithStringKeys");var bDr={moduleDir:{replacedBy:"serverModulesDir",transfer:!0},compileOutputDir:{replacedBy:"appOutputDir",transfer:!0},entitiesDir:{replacedBy:"fluentDir",transfer:!0},transpiledSourceDir:{replacedBy:"modulePaths"},sourceDir:{}};function SDr(r,t){for(let[i,{replacedBy:a,transfer:c}]of Object.entries(bDr))i in r&&(t.warn(`'${i}' is deprecated${a?`, please replace with '${a}'`:" and can be removed"}`),c&&a&&(r[a]=r[i]))}e(SDr,"replaceDeprecatedFields");function EDr(r){for(let[t,i]of Object.entries(vce.ERROR_ON_DEPRECATED_PROPS))if(t in r)throw new Error(i)}e(EDr,"checkRemovedProperties")});var Lsn=Je(I6e=>{"use strict";V();G();U();z();Object.defineProperty(I6e,"__esModule",{value:!0});I6e.createConsoleLogger=xDr;I6e.createSilentLogger=TDr;function xDr(){return console}e(xDr,"createConsoleLogger");function TDr(){return{info:e(()=>{},"info"),warn:e(()=>{},"warn"),error:e(()=>{},"error"),debug:e(()=>{},"debug")}}e(TDr,"createSilentLogger")});var gln=Je(e_=>{"use strict";V();G();U();z();var Msn={},Fsn={};Fsn.default=function(r,t,i,a,c){var d=new Worker(Msn[t]||(Msn[t]=URL.createObjectURL(new Blob([r+';addEventListener("error",function(e){e=e.error;postMessage({$e$:[e.message,e.code,e.stack]})})'],{type:"text/javascript"}))));return d.onmessage=function(f){var g=f.data,v=g.$e$;if(v){var S=new Error(v[0]);S.code=v[1],S.stack=v[2],c(S,null)}else c(null,g)},d.postMessage(i,a),d};var Gm=Uint8Array,MN=Uint16Array,Nbe=Int32Array,Tce=new Gm([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),Dce=new Gm([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),Ibe=new Gm([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),Bsn=e(function(r,t){for(var i=new MN(31),a=0;a<31;++a)i[a]=t+=1<<r[a-1];for(var c=new Nbe(i[30]),a=1;a<30;++a)for(var d=i[a];d<i[a+1];++d)c[d]=d-i[a]<<5|a;return{b:i,r:c}},"freb"),Wsn=Bsn(Tce,2),fmt=Wsn.b,L6e=Wsn.r;fmt[28]=258,L6e[258]=28;var jsn=Bsn(Dce,0),Vsn=jsn.b,amt=jsn.r,wbe=new MN(32768);for(nv=0;nv<32768;++nv)rq=(nv&43690)>>1|(nv&21845)<<1,rq=(rq&52428)>>2|(rq&13107)<<2,rq=(rq&61680)>>4|(rq&3855)<<4,wbe[nv]=((rq&65280)>>8|(rq&255)<<8)>>1;var rq,nv,a8=e(function(r,t,i){for(var a=r.length,c=0,d=new MN(t);c<a;++c)r[c]&&++d[r[c]-1];var f=new MN(t);for(c=1;c<t;++c)f[c]=f[c-1]+d[c-1]<<1;var g;if(i){g=new MN(1<<t);var v=15-t;for(c=0;c<a;++c)if(r[c])for(var S=c<<4|r[c],E=t-r[c],A=f[r[c]-1]++<<E,C=A|(1<<E)-1;A<=C;++A)g[wbe[A]>>v]=S}else for(g=new MN(a),c=0;c<a;++c)r[c]&&(g[c]=wbe[f[r[c]-1]++]>>15-r[c]);return g},"hMap"),iq=new Gm(288);for(nv=0;nv<144;++nv)iq[nv]=8;var nv;for(nv=144;nv<256;++nv)iq[nv]=9;var nv;for(nv=256;nv<280;++nv)iq[nv]=7;var nv;for(nv=280;nv<288;++nv)iq[nv]=8;var nv,Ece=new Gm(32);for(nv=0;nv<32;++nv)Ece[nv]=5;var nv,zsn=a8(iq,9,0),Usn=a8(iq,9,1),Gsn=a8(Ece,5,0),qsn=a8(Ece,5,1),P6e=e(function(r){for(var t=r[0],i=1;i<r.length;++i)r[i]>t&&(t=r[i]);return t},"max"),o8=e(function(r,t,i){var a=t/8|0;return(r[a]|r[a+1]<<8)>>(t&7)&i},"bits"),N6e=e(function(r,t){var i=t/8|0;return(r[i]|r[i+1]<<8|r[i+2]<<16)>>(t&7)},"bits16"),Ace=e(function(r){return(r+7)/8|0},"shft"),s8=e(function(r,t,i){return(t==null||t<0)&&(t=0),(i==null||i>r.length)&&(i=r.length),new Gm(r.subarray(t,i))},"slc");e_.FlateErrorCode={UnexpectedEOF:0,InvalidBlockType:1,InvalidLengthLiteral:2,InvalidDistance:3,StreamFinished:4,NoStreamHandler:5,InvalidHeader:6,NoCallback:7,InvalidUTF8:8,ExtraFieldTooLong:9,InvalidDate:10,FilenameTooLong:11,StreamFinishing:12,InvalidZipData:13,UnknownCompressionMethod:14};var Hsn=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],Up=e(function(r,t,i){var a=new Error(t||Hsn[r]);if(a.code=r,Error.captureStackTrace&&Error.captureStackTrace(a,Up),!i)throw a;return a},"err"),Rbe=e(function(r,t,i,a){var c=r.length,d=a?a.length:0;if(!c||t.f&&!t.l)return i||new Gm(0);var f=!i,g=f||t.i!=2,v=t.i;f&&(i=new Gm(c*3));var S=e(function(ct){var Lt=i.length;if(ct>Lt){var jt=new Gm(Math.max(Lt*2,ct));jt.set(i),i=jt}},"cbuf"),E=t.f||0,A=t.p||0,C=t.b||0,L=t.l,W=t.d,O=t.m,w=t.n,M=c*8;do{if(!L){E=o8(r,A,1);var J=o8(r,A+1,3);if(A+=3,J)if(J==1)L=Usn,W=qsn,O=9,w=5;else if(J==2){var be=o8(r,A,31)+257,he=o8(r,A+10,15)+4,_e=be+o8(r,A+5,31)+1;A+=14;for(var He=new Gm(_e),et=new Gm(19),ut=0;ut<he;++ut)et[Ibe[ut]]=o8(r,A+ut*3,7);A+=he*3;for(var ft=P6e(et),Wt=(1<<ft)-1,En=a8(et,ft,1),ut=0;ut<_e;){var fn=En[o8(r,A,Wt)];A+=fn&15;var Z=fn>>4;if(Z<16)He[ut++]=Z;else{var Gt=0,Kt=0;for(Z==16?(Kt=3+o8(r,A,3),A+=2,Gt=He[ut-1]):Z==17?(Kt=3+o8(r,A,7),A+=3):Z==18&&(Kt=11+o8(r,A,127),A+=7);Kt--;)He[ut++]=Gt}}var wt=He.subarray(0,be),Xt=He.subarray(be);O=P6e(wt),w=P6e(Xt),L=a8(wt,O,1),W=a8(Xt,w,1)}else Up(1);else{var Z=Ace(A)+4,Q=r[Z-4]|r[Z-3]<<8,me=Z+Q;if(me>c){v&&Up(0);break}g&&S(C+Q),i.set(r.subarray(Z,me),C),t.b=C+=Q,t.p=A=me*8,t.f=E;continue}if(A>M){v&&Up(0);break}}g&&S(C+131072);for(var yt=(1<<O)-1,Nn=(1<<w)-1,kn=A;;kn=A){var Gt=L[N6e(r,A)&yt],an=Gt>>4;if(A+=Gt&15,A>M){v&&Up(0);break}if(Gt||Up(2),an<256)i[C++]=an;else if(an==256){kn=A,L=null;break}else{var Mn=an-254;if(an>264){var ut=an-257,ir=Tce[ut];Mn=o8(r,A,(1<<ir)-1)+fmt[ut],A+=ir}var Zt=W[N6e(r,A)&Nn],Bt=Zt>>4;Zt||Up(3),A+=Zt&15;var Xt=Vsn[Bt];if(Bt>3){var ir=Dce[Bt];Xt+=N6e(r,A)&(1<<ir)-1,A+=ir}if(A>M){v&&Up(0);break}g&&S(C+131072);var ht=C+Mn;if(C<Xt){var de=d-Xt,At=Math.min(Xt,ht);for(de+C<0&&Up(3);C<At;++C)i[C]=a[de+C]}for(;C<ht;++C)i[C]=i[C-Xt]}}t.l=L,t.p=kn,t.b=C,t.f=E,L&&(E=1,t.m=O,t.d=W,t.n=w)}while(!E);return C!=i.length&&f?s8(i,0,C):i.subarray(0,C)},"inflt"),Bj=e(function(r,t,i){i<<=t&7;var a=t/8|0;r[a]|=i,r[a+1]|=i>>8},"wbits"),bce=e(function(r,t,i){i<<=t&7;var a=t/8|0;r[a]|=i,r[a+1]|=i>>8,r[a+2]|=i>>16},"wbits16"),R6e=e(function(r,t){for(var i=[],a=0;a<r.length;++a)r[a]&&i.push({s:a,f:r[a]});var c=i.length,d=i.slice();if(!c)return{t:r$,l:0};if(c==1){var f=new Gm(i[0].s+1);return f[i[0].s]=1,{t:f,l:1}}i.sort(function(me,be){return me.f-be.f}),i.push({s:-1,f:25001});var g=i[0],v=i[1],S=0,E=1,A=2;for(i[0]={s:-1,f:g.f+v.f,l:g,r:v};E!=c-1;)g=i[i[S].f<i[A].f?S++:A++],v=i[S!=E&&i[S].f<i[A].f?S++:A++],i[E++]={s:-1,f:g.f+v.f,l:g,r:v};for(var C=d[0].s,a=1;a<c;++a)d[a].s>C&&(C=d[a].s);var L=new MN(C+1),W=M6e(i[E-1],L,0);if(W>t){var a=0,O=0,w=W-t,M=1<<w;for(d.sort(function(be,he){return L[he.s]-L[be.s]||be.f-he.f});a<c;++a){var J=d[a].s;if(L[J]>t)O+=M-(1<<W-L[J]),L[J]=t;else break}for(O>>=w;O>0;){var Z=d[a].s;L[Z]<t?O-=1<<t-L[Z]++-1:++a}for(;a>=0&&O;--a){var Q=d[a].s;L[Q]==t&&(--L[Q],++O)}W=t}return{t:new Gm(L),l:W}},"hTree"),M6e=e(function(r,t,i){return r.s==-1?Math.max(M6e(r.l,t,i+1),M6e(r.r,t,i+1)):t[r.s]=i},"ln"),smt=e(function(r){for(var t=r.length;t&&!r[--t];);for(var i=new MN(++t),a=0,c=r[0],d=1,f=e(function(v){i[a++]=v},"w"),g=1;g<=t;++g)if(r[g]==c&&g!=t)++d;else{if(!c&&d>2){for(;d>138;d-=138)f(32754);d>2&&(f(d>10?d-11<<5|28690:d-3<<5|12305),d=0)}else if(d>3){for(f(c),--d;d>6;d-=6)f(8304);d>2&&(f(d-3<<5|8208),d=0)}for(;d--;)f(c);d=1,c=r[g]}return{c:i.subarray(0,a),n:t}},"lc"),Sce=e(function(r,t){for(var i=0,a=0;a<t.length;++a)i+=r[a]*t[a];return i},"clen"),_mt=e(function(r,t,i){var a=i.length,c=Ace(t+2);r[c]=a&255,r[c+1]=a>>8,r[c+2]=r[c]^255,r[c+3]=r[c+1]^255;for(var d=0;d<a;++d)r[c+d+4]=i[d];return(c+4+a)*8},"wfblk"),lmt=e(function(r,t,i,a,c,d,f,g,v,S,E){Bj(t,E++,i),++c[256];for(var A=R6e(c,15),C=A.t,L=A.l,W=R6e(d,15),O=W.t,w=W.l,M=smt(C),J=M.c,Z=M.n,Q=smt(O),me=Q.c,be=Q.n,he=new MN(19),_e=0;_e<J.length;++_e)++he[J[_e]&31];for(var _e=0;_e<me.length;++_e)++he[me[_e]&31];for(var He=R6e(he,7),et=He.t,ut=He.l,ft=19;ft>4&&!et[Ibe[ft-1]];--ft);var Wt=S+5<<3,En=Sce(c,iq)+Sce(d,Ece)+f,fn=Sce(c,C)+Sce(d,O)+f+14+3*ft+Sce(he,et)+2*he[16]+3*he[17]+7*he[18];if(v>=0&&Wt<=En&&Wt<=fn)return _mt(t,E,r.subarray(v,v+S));var Gt,Kt,wt,Xt;if(Bj(t,E,1+(fn<En)),E+=2,fn<En){Gt=a8(C,L,0),Kt=C,wt=a8(O,w,0),Xt=O;var yt=a8(et,ut,0);Bj(t,E,Z-257),Bj(t,E+5,be-1),Bj(t,E+10,ft-4),E+=14;for(var _e=0;_e<ft;++_e)Bj(t,E+3*_e,et[Ibe[_e]]);E+=3*ft;for(var Nn=[J,me],kn=0;kn<2;++kn)for(var an=Nn[kn],_e=0;_e<an.length;++_e){var Mn=an[_e]&31;Bj(t,E,yt[Mn]),E+=et[Mn],Mn>15&&(Bj(t,E,an[_e]>>5&127),E+=an[_e]>>12)}}else Gt=zsn,Kt=iq,wt=Gsn,Xt=Ece;for(var _e=0;_e<g;++_e){var ir=a[_e];if(ir>255){var Mn=ir>>18&31;bce(t,E,Gt[Mn+257]),E+=Kt[Mn+257],Mn>7&&(Bj(t,E,ir>>23&31),E+=Tce[Mn]);var Zt=ir&31;bce(t,E,wt[Zt]),E+=Xt[Zt],Zt>3&&(bce(t,E,ir>>5&8191),E+=Dce[Zt])}else bce(t,E,Gt[ir]),E+=Kt[ir]}return bce(t,E,Gt[256]),E+Kt[256]},"wblk"),Ksn=new Nbe([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),r$=new Gm(0),Jsn=e(function(r,t,i,a,c,d){var f=d.z||r.length,g=new Gm(a+f+5*(1+Math.ceil(f/7e3))+c),v=g.subarray(a,g.length-c),S=d.l,E=(d.r||0)&7;if(t){E&&(v[0]=d.r>>3);for(var A=Ksn[t-1],C=A>>13,L=A&8191,W=(1<<i)-1,O=d.p||new MN(32768),w=d.h||new MN(W+1),M=Math.ceil(i/3),J=2*M,Z=e(function(wn){return(r[wn]^r[wn+1]<<M^r[wn+2]<<J)&W},"hsh"),Q=new Nbe(25e3),me=new MN(288),be=new MN(32),he=0,_e=0,He=d.i||0,et=0,ut=d.w||0,ft=0;He+2<f;++He){var Wt=Z(He),En=He&32767,fn=w[Wt];if(O[En]=fn,w[Wt]=En,ut<=He){var Gt=f-He;if((he>7e3||et>24576)&&(Gt>423||!S)){E=lmt(r,v,0,Q,me,be,_e,et,ft,He-ft,E),et=he=_e=0,ft=He;for(var Kt=0;Kt<286;++Kt)me[Kt]=0;for(var Kt=0;Kt<30;++Kt)be[Kt]=0}var wt=2,Xt=0,yt=L,Nn=En-fn&32767;if(Gt>2&&Wt==Z(He-Nn))for(var kn=Math.min(C,Gt)-1,an=Math.min(32767,He),Mn=Math.min(258,Gt);Nn<=an&&--yt&&En!=fn;){if(r[He+wt]==r[He+wt-Nn]){for(var ir=0;ir<Mn&&r[He+ir]==r[He+ir-Nn];++ir);if(ir>wt){if(wt=ir,Xt=Nn,ir>kn)break;for(var Zt=Math.min(Nn,ir-2),Bt=0,Kt=0;Kt<Zt;++Kt){var ht=He-Nn+Kt&32767,de=O[ht],At=ht-de&32767;At>Bt&&(Bt=At,fn=ht)}}}En=fn,fn=O[En],Nn+=En-fn&32767}if(Xt){Q[et++]=268435456|L6e[wt]<<18|amt[Xt];var ct=L6e[wt]&31,Lt=amt[Xt]&31;_e+=Tce[ct]+Dce[Lt],++me[257+ct],++be[Lt],ut=He+wt,++he}else Q[et++]=r[He],++me[r[He]]}}for(He=Math.max(He,ut);He<f;++He)Q[et++]=r[He],++me[r[He]];E=lmt(r,v,S,Q,me,be,_e,et,ft,He-ft,E),S||(d.r=E&7|v[E/8|0]<<3,E-=7,d.h=w,d.p=O,d.i=He,d.w=ut)}else{for(var He=d.w||0;He<f+S;He+=65535){var jt=He+65535;jt>=f&&(v[E/8|0]=S,jt=f),E=_mt(v,E+1,r.subarray(He,jt))}d.i=f}return s8(g,0,a+Ace(E)+c)},"dflt"),Xsn=function(){for(var r=new Int32Array(256),t=0;t<256;++t){for(var i=t,a=9;--a;)i=(i&1&&-306674912)^i>>>1;r[t]=i}return r}(),Cce=e(function(){var r=-1;return{p:e(function(t){for(var i=r,a=0;a<t.length;++a)i=Xsn[i&255^t[a]]^i>>>8;r=i},"p"),d:e(function(){return~r},"d")}},"crc"),z6e=e(function(){var r=1,t=0;return{p:e(function(i){for(var a=r,c=t,d=i.length|0,f=0;f!=d;){for(var g=Math.min(f+2655,d);f<g;++f)c+=a+=i[f];a=(a&65535)+15*(a>>16),c=(c&65535)+15*(c>>16)}r=a,t=c},"p"),d:e(function(){return r%=65521,t%=65521,(r&255)<<24|(r&65280)<<8|(t&255)<<8|t>>8},"d")}},"adler"),Ute=e(function(r,t,i,a,c){if(!c&&(c={l:1},t.dictionary)){var d=t.dictionary.subarray(-32768),f=new Gm(d.length+r.length);f.set(d),f.set(r,d.length),r=f,c.w=d.length}return Jsn(r,t.level==null?6:t.level,t.mem==null?c.l?Math.ceil(Math.max(8,Math.min(13,Math.log(r.length)))*1.5):20:12+t.mem,i,a,c)},"dopt"),Lbe=e(function(r,t){var i={};for(var a in r)i[a]=r[a];for(var a in t)i[a]=t[a];return i},"mrg"),ksn=e(function(r,t,i){for(var a=r(),c=r.toString(),d=c.slice(c.indexOf("[")+1,c.lastIndexOf("]")).replace(/\s+/g,"").split(","),f=0;f<a.length;++f){var g=a[f],v=d[f];if(typeof g=="function"){t+=";"+v+"=";var S=g.toString();if(g.prototype)if(S.indexOf("[native code]")!=-1){var E=S.indexOf(" ",8)+1;t+=S.slice(E,S.indexOf("(",E))}else{t+=S;for(var A in g.prototype)t+=";"+v+".prototype."+A+"="+g.prototype[A].toString()}else t+=S}else i[v]=g}return t},"wcln"),w6e=[],DDr=e(function(r){var t=[];for(var i in r)r[i].buffer&&t.push((r[i]=new r[i].constructor(r[i])).buffer);return t},"cbfs"),$sn=e(function(r,t,i,a){if(!w6e[i]){for(var c="",d={},f=r.length-1,g=0;g<f;++g)c=ksn(r[g],c,d);w6e[i]={c:ksn(r[f],c,d),e:d}}var v=Lbe({},w6e[i].e);return(0,Fsn.default)(w6e[i].c+";onmessage=function(e){for(var k in e.data)self[k]=e.data[k];onmessage="+t.toString()+"}",i,v,DDr(v),a)},"wrkr"),Ice=e(function(){return[Gm,MN,Nbe,Tce,Dce,Ibe,fmt,Vsn,Usn,qsn,wbe,Hsn,a8,P6e,o8,N6e,Ace,s8,Up,Rbe,Rce,a$,mmt]},"bInflt"),wce=e(function(){return[Gm,MN,Nbe,Tce,Dce,Ibe,L6e,amt,zsn,iq,Gsn,Ece,wbe,Ksn,r$,a8,Bj,bce,R6e,M6e,smt,Sce,_mt,lmt,Ace,s8,Jsn,Ute,Mbe,a$]},"bDflt"),Ysn=e(function(){return[hmt,ymt,tv,Cce,Xsn]},"gze"),Qsn=e(function(){return[gmt,tln]},"guze"),Zsn=e(function(){return[vmt,tv,z6e]},"zle"),eln=e(function(){return[bmt]},"zule"),a$=e(function(r){return postMessage(r,[r.buffer])},"pbf"),mmt=e(function(r){return r&&{out:r.size&&new Gm(r.size),dictionary:r.dictionary}},"gopt"),Pce=e(function(r,t,i,a,c,d){var f=$sn(i,a,c,function(g,v){f.terminate(),d(g,v)});return f.postMessage([r,t],t.consume?[r.buffer]:[]),function(){f.terminate()}},"cbify"),c8=e(function(r){return r.ondata=function(t,i){return postMessage([t,i],[t.buffer])},function(t){t.data.length?(r.push(t.data[0],t.data[1]),postMessage([t.data[0].length])):r.flush()}},"astrm"),Nce=e(function(r,t,i,a,c,d,f){var g,v=$sn(r,a,c,function(S,E){S?(v.terminate(),t.ondata.call(t,S)):Array.isArray(E)?E.length==1?(t.queuedSize-=E[0],t.ondrain&&t.ondrain(E[0])):(E[1]&&v.terminate(),t.ondata.call(t,S,E[0],E[1])):f(E)});v.postMessage(i),t.queuedSize=0,t.push=function(S,E){t.ondata||Up(5),g&&t.ondata(Up(4,0,1),null,!!E),t.queuedSize+=S.length,v.postMessage([S,g=E],[S.buffer])},t.terminate=function(){v.terminate()},d&&(t.flush=function(){v.postMessage([])})},"astrmify"),LN=e(function(r,t){return r[t]|r[t+1]<<8},"b2"),TT=e(function(r,t){return(r[t]|r[t+1]<<8|r[t+2]<<16|r[t+3]<<24)>>>0},"b4"),omt=e(function(r,t){return TT(r,t)+TT(r,t+4)*4294967296},"b8"),tv=e(function(r,t,i){for(;i;++t)r[t]=i,i>>>=8},"wbytes"),hmt=e(function(r,t){var i=t.filename;if(r[0]=31,r[1]=139,r[2]=8,r[8]=t.level<2?4:t.level==9?2:0,r[9]=3,t.mtime!=0&&tv(r,4,Math.floor(new Date(t.mtime||Date.now())/1e3)),i){r[3]=8;for(var a=0;a<=i.length;++a)r[a+10]=i.charCodeAt(a)}},"gzh"),gmt=e(function(r){(r[0]!=31||r[1]!=139||r[2]!=8)&&Up(6,"invalid gzip data");var t=r[3],i=10;t&4&&(i+=(r[10]|r[11]<<8)+2);for(var a=(t>>3&1)+(t>>4&1);a>0;a-=!r[i++]);return i+(t&2)},"gzs"),tln=e(function(r){var t=r.length;return(r[t-4]|r[t-3]<<8|r[t-2]<<16|r[t-1]<<24)>>>0},"gzl"),ymt=e(function(r){return 10+(r.filename?r.filename.length+1:0)},"gzhl"),vmt=e(function(r,t){var i=t.level,a=i==0?0:i<6?1:i==9?3:2;if(r[0]=120,r[1]=a<<6|(t.dictionary&&32),r[1]|=31-(r[0]<<8|r[1])%31,t.dictionary){var c=z6e();c.p(t.dictionary),tv(r,2,c.d())}},"zlh"),bmt=e(function(r,t){return((r[0]&15)!=8||r[0]>>4>7||(r[0]<<8|r[1])%31)&&Up(6,"invalid zlib data"),(r[1]>>5&1)==+!t&&Up(6,"invalid zlib data: "+(r[1]&32?"need":"unexpected")+" dictionary"),(r[1]>>3&4)+2},"zls");function Gte(r,t){return typeof r=="function"&&(t=r,r={}),this.ondata=t,r}e(Gte,"StrmOpt");var l8=function(){function r(t,i){if(typeof t=="function"&&(i=t,t={}),this.ondata=i,this.o=t||{},this.s={l:0,i:32768,w:32768,z:32768},this.b=new Gm(98304),this.o.dictionary){var a=this.o.dictionary.subarray(-32768);this.b.set(a,32768-a.length),this.s.i=32768-a.length}}return e(r,"Deflate"),r.prototype.p=function(t,i){this.ondata(Ute(t,this.o,0,0,this.s),i)},r.prototype.push=function(t,i){this.ondata||Up(5),this.s.l&&Up(4);var a=t.length+this.s.z;if(a>this.b.length){if(a>2*this.b.length-32768){var c=new Gm(a&-32768);c.set(this.b.subarray(0,this.s.z)),this.b=c}var d=this.b.length-this.s.z;this.b.set(t.subarray(0,d),this.s.z),this.s.z=this.b.length,this.p(this.b,!1),this.b.set(this.b.subarray(-32768)),this.b.set(t.subarray(d),32768),this.s.z=t.length-d+32768,this.s.i=32766,this.s.w=32768}else this.b.set(t,this.s.z),this.s.z+=t.length;this.s.l=i&1,(this.s.z>this.s.w+8191||i)&&(this.p(this.b,i||!1),this.s.w=this.s.i,this.s.i-=2)},r.prototype.flush=function(){this.ondata||Up(5),this.s.l&&Up(4),this.p(this.b,!1),this.s.w=this.s.i,this.s.i-=2},r}();e_.Deflate=l8;var nln=function(){function r(t,i){Nce([wce,function(){return[c8,l8]}],this,Gte.call(this,t,i),function(a){var c=new l8(a.data);onmessage=c8(c)},6,1)}return e(r,"AsyncDeflate"),r}();e_.AsyncDeflate=nln;function rln(r,t,i){return i||(i=t,t={}),typeof i!="function"&&Up(7),Pce(r,t,[wce],function(a){return a$(Mbe(a.data[0],a.data[1]))},0,i)}e(rln,"deflate");e_.deflate=rln;function Mbe(r,t){return Ute(r,t||{},0,0)}e(Mbe,"deflateSync");e_.deflateSync=Mbe;var iM=function(){function r(t,i){typeof t=="function"&&(i=t,t={}),this.ondata=i;var a=t&&t.dictionary&&t.dictionary.subarray(-32768);this.s={i:0,b:a?a.length:0},this.o=new Gm(32768),this.p=new Gm(0),a&&this.o.set(a)}return e(r,"Inflate"),r.prototype.e=function(t){if(this.ondata||Up(5),this.d&&Up(4),!this.p.length)this.p=t;else if(t.length){var i=new Gm(this.p.length+t.length);i.set(this.p),i.set(t,this.p.length),this.p=i}},r.prototype.c=function(t){this.s.i=+(this.d=t||!1);var i=this.s.b,a=Rbe(this.p,this.s,this.o);this.ondata(s8(a,i,this.s.b),this.d),this.o=s8(a,this.s.b-32768),this.s.b=this.o.length,this.p=s8(this.p,this.s.p/8|0),this.s.p&=7},r.prototype.push=function(t,i){this.e(t),this.c(i)},r}();e_.Inflate=iM;var Smt=function(){function r(t,i){Nce([Ice,function(){return[c8,iM]}],this,Gte.call(this,t,i),function(a){var c=new iM(a.data);onmessage=c8(c)},7,0)}return e(r,"AsyncInflate"),r}();e_.AsyncInflate=Smt;function Emt(r,t,i){return i||(i=t,t={}),typeof i!="function"&&Up(7),Pce(r,t,[Ice],function(a){return a$(Rce(a.data[0],mmt(a.data[1])))},1,i)}e(Emt,"inflate");e_.inflate=Emt;function Rce(r,t){return Rbe(r,{i:2},t&&t.out,t&&t.dictionary)}e(Rce,"inflateSync");e_.inflateSync=Rce;var k6e=function(){function r(t,i){this.c=Cce(),this.l=0,this.v=1,l8.call(this,t,i)}return e(r,"Gzip"),r.prototype.push=function(t,i){this.c.p(t),this.l+=t.length,l8.prototype.push.call(this,t,i)},r.prototype.p=function(t,i){var a=Ute(t,this.o,this.v&&ymt(this.o),i&&8,this.s);this.v&&(hmt(a,this.o),this.v=0),i&&(tv(a,a.length-8,this.c.d()),tv(a,a.length-4,this.l)),this.ondata(a,i)},r.prototype.flush=function(){l8.prototype.flush.call(this)},r}();e_.Gzip=k6e;e_.Compress=k6e;var iln=function(){function r(t,i){Nce([wce,Ysn,function(){return[c8,l8,k6e]}],this,Gte.call(this,t,i),function(a){var c=new k6e(a.data);onmessage=c8(c)},8,1)}return e(r,"AsyncGzip"),r}();e_.AsyncGzip=iln;e_.AsyncCompress=iln;function oln(r,t,i){return i||(i=t,t={}),typeof i!="function"&&Up(7),Pce(r,t,[wce,Ysn,function(){return[O6e]}],function(a){return a$(O6e(a.data[0],a.data[1]))},2,i)}e(oln,"gzip");e_.gzip=oln;e_.compress=oln;function O6e(r,t){t||(t={});var i=Cce(),a=r.length;i.p(r);var c=Ute(r,t,ymt(t),8),d=c.length;return hmt(c,t),tv(c,d-8,i.d()),tv(c,d-4,a),c}e(O6e,"gzipSync");e_.gzipSync=O6e;e_.compressSync=O6e;var F6e=function(){function r(t,i){this.v=1,this.r=0,iM.call(this,t,i)}return e(r,"Gunzip"),r.prototype.push=function(t,i){if(iM.prototype.e.call(this,t),this.r+=t.length,this.v){var a=this.p.subarray(this.v-1),c=a.length>3?gmt(a):4;if(c>a.length){if(!i)return}else this.v>1&&this.onmember&&this.onmember(this.r-a.length);this.p=a.subarray(c),this.v=0}iM.prototype.c.call(this,i),this.s.f&&!this.s.l&&!i&&(this.v=Ace(this.s.p)+9,this.s={i:0},this.o=new Gm(0),this.push(new Gm(0),i))},r}();e_.Gunzip=F6e;var aln=function(){function r(t,i){var a=this;Nce([Ice,Qsn,function(){return[c8,iM,F6e]}],this,Gte.call(this,t,i),function(c){var d=new F6e(c.data);d.onmember=function(f){return postMessage(f)},onmessage=c8(d)},9,0,function(c){return a.onmember&&a.onmember(c)})}return e(r,"AsyncGunzip"),r}();e_.AsyncGunzip=aln;function sln(r,t,i){return i||(i=t,t={}),typeof i!="function"&&Up(7),Pce(r,t,[Ice,Qsn,function(){return[B6e]}],function(a){return a$(B6e(a.data[0],a.data[1]))},3,i)}e(sln,"gunzip");e_.gunzip=sln;function B6e(r,t){var i=gmt(r);return i+8>r.length&&Up(6,"invalid gzip data"),Rbe(r.subarray(i,-8),{i:2},t&&t.out||new Gm(tln(r)),t&&t.dictionary)}e(B6e,"gunzipSync");e_.gunzipSync=B6e;var cmt=function(){function r(t,i){this.c=z6e(),this.v=1,l8.call(this,t,i)}return e(r,"Zlib"),r.prototype.push=function(t,i){this.c.p(t),l8.prototype.push.call(this,t,i)},r.prototype.p=function(t,i){var a=Ute(t,this.o,this.v&&(this.o.dictionary?6:2),i&&4,this.s);this.v&&(vmt(a,this.o),this.v=0),i&&tv(a,a.length-4,this.c.d()),this.ondata(a,i)},r.prototype.flush=function(){l8.prototype.flush.call(this)},r}();e_.Zlib=cmt;var ADr=function(){function r(t,i){Nce([wce,Zsn,function(){return[c8,l8,cmt]}],this,Gte.call(this,t,i),function(a){var c=new cmt(a.data);onmessage=c8(c)},10,1)}return e(r,"AsyncZlib"),r}();e_.AsyncZlib=ADr;function CDr(r,t,i){return i||(i=t,t={}),typeof i!="function"&&Up(7),Pce(r,t,[wce,Zsn,function(){return[umt]}],function(a){return a$(umt(a.data[0],a.data[1]))},4,i)}e(CDr,"zlib");e_.zlib=CDr;function umt(r,t){t||(t={});var i=z6e();i.p(r);var a=Ute(r,t,t.dictionary?6:2,4);return vmt(a,t),tv(a,a.length-4,i.d()),a}e(umt,"zlibSync");e_.zlibSync=umt;var W6e=function(){function r(t,i){iM.call(this,t,i),this.v=t&&t.dictionary?2:1}return e(r,"Unzlib"),r.prototype.push=function(t,i){if(iM.prototype.e.call(this,t),this.v){if(this.p.length<6&&!i)return;this.p=this.p.subarray(bmt(this.p,this.v-1)),this.v=0}i&&(this.p.length<4&&Up(6,"invalid zlib data"),this.p=this.p.subarray(0,-4)),iM.prototype.c.call(this,i)},r}();e_.Unzlib=W6e;var lln=function(){function r(t,i){Nce([Ice,eln,function(){return[c8,iM,W6e]}],this,Gte.call(this,t,i),function(a){var c=new W6e(a.data);onmessage=c8(c)},11,0)}return e(r,"AsyncUnzlib"),r}();e_.AsyncUnzlib=lln;function cln(r,t,i){return i||(i=t,t={}),typeof i!="function"&&Up(7),Pce(r,t,[Ice,eln,function(){return[j6e]}],function(a){return a$(j6e(a.data[0],mmt(a.data[1])))},5,i)}e(cln,"unzlib");e_.unzlib=cln;function j6e(r,t){return Rbe(r.subarray(bmt(r,t&&t.dictionary),-4),{i:2},t&&t.out,t&&t.dictionary)}e(j6e,"unzlibSync");e_.unzlibSync=j6e;var dmt=function(){function r(t,i){this.o=Gte.call(this,t,i)||{},this.G=F6e,this.I=iM,this.Z=W6e}return e(r,"Decompress"),r.prototype.i=function(){var t=this;this.s.ondata=function(i,a){t.ondata(i,a)}},r.prototype.push=function(t,i){if(this.ondata||Up(5),this.s)this.s.push(t,i);else{if(this.p&&this.p.length){var a=new Gm(this.p.length+t.length);a.set(this.p),a.set(t,this.p.length)}else this.p=t;this.p.length>2&&(this.s=this.p[0]==31&&this.p[1]==139&&this.p[2]==8?new this.G(this.o):(this.p[0]&15)!=8||this.p[0]>>4>7||(this.p[0]<<8|this.p[1])%31?new this.I(this.o):new this.Z(this.o),this.i(),this.s.push(this.p,i),this.p=null)}},r}();e_.Decompress=dmt;var IDr=function(){function r(t,i){dmt.call(this,t,i),this.queuedSize=0,this.G=aln,this.I=Smt,this.Z=lln}return e(r,"AsyncDecompress"),r.prototype.i=function(){var t=this;this.s.ondata=function(i,a,c){t.ondata(i,a,c)},this.s.ondrain=function(i){t.queuedSize-=i,t.ondrain&&t.ondrain(i)}},r.prototype.push=function(t,i){this.queuedSize+=t.length,dmt.prototype.push.call(this,t,i)},r}();e_.AsyncDecompress=IDr;function wDr(r,t,i){return i||(i=t,t={}),typeof i!="function"&&Up(7),r[0]==31&&r[1]==139&&r[2]==8?sln(r,t,i):(r[0]&15)!=8||r[0]>>4>7||(r[0]<<8|r[1])%31?Emt(r,t,i):cln(r,t,i)}e(wDr,"decompress");e_.decompress=wDr;function PDr(r,t){return r[0]==31&&r[1]==139&&r[2]==8?B6e(r,t):(r[0]&15)!=8||r[0]>>4>7||(r[0]<<8|r[1])%31?Rce(r,t):j6e(r,t)}e(PDr,"decompressSync");e_.decompressSync=PDr;var xmt=e(function(r,t,i,a){for(var c in r){var d=r[c],f=t+c,g=a;Array.isArray(d)&&(g=Lbe(a,d[1]),d=d[0]),d instanceof Gm?i[f]=[d,g]:(i[f+="/"]=[new Gm(0),g],xmt(d,f,i,a))}},"fltn"),Osn=typeof TextEncoder<"u"&&new TextEncoder,pmt=typeof TextDecoder<"u"&&new TextDecoder,uln=0;try{pmt.decode(r$,{stream:!0}),uln=1}catch{}var dln=e(function(r){for(var t="",i=0;;){var a=r[i++],c=(a>127)+(a>223)+(a>239);if(i+c>r.length)return{s:t,r:s8(r,i-1)};c?c==3?(a=((a&15)<<18|(r[i++]&63)<<12|(r[i++]&63)<<6|r[i++]&63)-65536,t+=String.fromCharCode(55296|a>>10,56320|a&1023)):c&1?t+=String.fromCharCode((a&31)<<6|r[i++]&63):t+=String.fromCharCode((a&15)<<12|(r[i++]&63)<<6|r[i++]&63):t+=String.fromCharCode(a)}},"dutf8"),NDr=function(){function r(t){this.ondata=t,uln?this.t=new TextDecoder:this.p=r$}return e(r,"DecodeUTF8"),r.prototype.push=function(t,i){if(this.ondata||Up(5),i=!!i,this.t){this.ondata(this.t.decode(t,{stream:!0}),i),i&&(this.t.decode().length&&Up(8),this.t=null);return}this.p||Up(4);var a=new Gm(this.p.length+t.length);a.set(this.p),a.set(t,this.p.length);var c=dln(a),d=c.s,f=c.r;i?(f.length&&Up(8),this.p=null):this.p=f,this.ondata(d,i)},r}();e_.DecodeUTF8=NDr;var RDr=function(){function r(t){this.ondata=t}return e(r,"EncodeUTF8"),r.prototype.push=function(t,i){this.ondata||Up(5),this.d&&Up(4),this.ondata(o$(t),this.d=i||!1)},r}();e_.EncodeUTF8=RDr;function o$(r,t){if(t){for(var i=new Gm(r.length),a=0;a<r.length;++a)i[a]=r.charCodeAt(a);return i}if(Osn)return Osn.encode(r);for(var c=r.length,d=new Gm(r.length+(r.length>>1)),f=0,g=e(function(E){d[f++]=E},"w"),a=0;a<c;++a){if(f+5>d.length){var v=new Gm(f+8+(c-a<<1));v.set(d),d=v}var S=r.charCodeAt(a);S<128||t?g(S):S<2048?(g(192|S>>6),g(128|S&63)):S>55295&&S<57344?(S=65536+(S&1047552)|r.charCodeAt(++a)&1023,g(240|S>>18),g(128|S>>12&63),g(128|S>>6&63),g(128|S&63)):(g(224|S>>12),g(128|S>>6&63),g(128|S&63))}return s8(d,0,f)}e(o$,"strToU8");e_.strToU8=o$;function Tmt(r,t){if(t){for(var i="",a=0;a<r.length;a+=16384)i+=String.fromCharCode.apply(null,r.subarray(a,a+16384));return i}else{if(pmt)return pmt.decode(r);var c=dln(r),d=c.s,i=c.r;return i.length&&Up(8),d}}e(Tmt,"strFromU8");e_.strFromU8=Tmt;var pln=e(function(r){return r==1?3:r<6?2:r==9?1:0},"dbf"),fln=e(function(r,t){return t+30+LN(r,t+26)+LN(r,t+28)},"slzh"),_ln=e(function(r,t,i){var a=LN(r,t+28),c=Tmt(r.subarray(t+46,t+46+a),!(LN(r,t+8)&2048)),d=t+46+a,f=TT(r,t+20),g=i&&f==4294967295?mln(r,d):[f,TT(r,t+24),TT(r,t+42)],v=g[0],S=g[1],E=g[2];return[LN(r,t+10),v,S,c,d+LN(r,t+30)+LN(r,t+32),E]},"zh"),mln=e(function(r,t){for(;LN(r,t)!=1;t+=4+LN(r,t+2));return[omt(r,t+12),omt(r,t+4),omt(r,t+20)]},"z64e"),i$=e(function(r){var t=0;if(r)for(var i in r){var a=r[i].length;a>65535&&Up(9),t+=a+4}return t},"exfl"),xce=e(function(r,t,i,a,c,d,f,g){var v=a.length,S=i.extra,E=g&&g.length,A=i$(S);tv(r,t,f!=null?33639248:67324752),t+=4,f!=null&&(r[t++]=20,r[t++]=i.os),r[t]=20,t+=2,r[t++]=i.flag<<1|(d<0&&8),r[t++]=c&&8,r[t++]=i.compression&255,r[t++]=i.compression>>8;var C=new Date(i.mtime==null?Date.now():i.mtime),L=C.getFullYear()-1980;if((L<0||L>119)&&Up(10),tv(r,t,L<<25|C.getMonth()+1<<21|C.getDate()<<16|C.getHours()<<11|C.getMinutes()<<5|C.getSeconds()>>1),t+=4,d!=-1&&(tv(r,t,i.crc),tv(r,t+4,d<0?-d-2:d),tv(r,t+8,i.size)),tv(r,t+12,v),tv(r,t+14,A),t+=16,f!=null&&(tv(r,t,E),tv(r,t+6,i.attrs),tv(r,t+10,f),t+=14),r.set(a,t),t+=v,A)for(var W in S){var O=S[W],w=O.length;tv(r,t,+W),tv(r,t+2,w),r.set(O,t+4),t+=4+w}return E&&(r.set(g,t),t+=E),t},"wzh"),Dmt=e(function(r,t,i,a,c){tv(r,t,101010256),tv(r,t+8,i),tv(r,t+10,i),tv(r,t+12,a),tv(r,t+16,c)},"wzf"),Pbe=function(){function r(t){this.filename=t,this.c=Cce(),this.size=0,this.compression=0}return e(r,"ZipPassThrough"),r.prototype.process=function(t,i){this.ondata(null,t,i)},r.prototype.push=function(t,i){this.ondata||Up(5),this.c.p(t),this.size+=t.length,i&&(this.crc=this.c.d()),this.process(t,i||!1)},r}();e_.ZipPassThrough=Pbe;var LDr=function(){function r(t,i){var a=this;i||(i={}),Pbe.call(this,t),this.d=new l8(i,function(c,d){a.ondata(null,c,d)}),this.compression=8,this.flag=pln(i.level)}return e(r,"ZipDeflate"),r.prototype.process=function(t,i){try{this.d.push(t,i)}catch(a){this.ondata(a,null,i)}},r.prototype.push=function(t,i){Pbe.prototype.push.call(this,t,i)},r}();e_.ZipDeflate=LDr;var MDr=function(){function r(t,i){var a=this;i||(i={}),Pbe.call(this,t),this.d=new nln(i,function(c,d,f){a.ondata(c,d,f)}),this.compression=8,this.flag=pln(i.level),this.terminate=this.d.terminate}return e(r,"AsyncZipDeflate"),r.prototype.process=function(t,i){this.d.push(t,i)},r.prototype.push=function(t,i){Pbe.prototype.push.call(this,t,i)},r}();e_.AsyncZipDeflate=MDr;var kDr=function(){function r(t){this.ondata=t,this.u=[],this.d=1}return e(r,"Zip"),r.prototype.add=function(t){var i=this;if(this.ondata||Up(5),this.d&2)this.ondata(Up(4+(this.d&1)*8,0,1),null,!1);else{var a=o$(t.filename),c=a.length,d=t.comment,f=d&&o$(d),g=c!=t.filename.length||f&&d.length!=f.length,v=c+i$(t.extra)+30;c>65535&&this.ondata(Up(11,0,1),null,!1);var S=new Gm(v);xce(S,0,t,a,g,-1);var E=[S],A=e(function(){for(var w=0,M=E;w<M.length;w++){var J=M[w];i.ondata(null,J,!1)}E=[]},"pAll_1"),C=this.d;this.d=0;var L=this.u.length,W=Lbe(t,{f:a,u:g,o:f,t:e(function(){t.terminate&&t.terminate()},"t"),r:e(function(){if(A(),C){var w=i.u[L+1];w?w.r():i.d=1}C=1},"r")}),O=0;t.ondata=function(w,M,J){if(w)i.ondata(w,M,J),i.terminate();else if(O+=M.length,E.push(M),J){var Z=new Gm(16);tv(Z,0,134695760),tv(Z,4,t.crc),tv(Z,8,O),tv(Z,12,t.size),E.push(Z),W.c=O,W.b=v+O+16,W.crc=t.crc,W.size=t.size,C&&W.r(),C=1}else C&&A()},this.u.push(W)}},r.prototype.end=function(){var t=this;if(this.d&2){this.ondata(Up(4+(this.d&1)*8,0,1),null,!0);return}this.d?this.e():this.u.push({r:e(function(){t.d&1&&(t.u.splice(-1,1),t.e())},"r"),t:e(function(){},"t")}),this.d=3},r.prototype.e=function(){for(var t=0,i=0,a=0,c=0,d=this.u;c<d.length;c++){var f=d[c];a+=46+f.f.length+i$(f.extra)+(f.o?f.o.length:0)}for(var g=new Gm(a+22),v=0,S=this.u;v<S.length;v++){var f=S[v];xce(g,t,f,f.f,f.u,-f.c-2,i,f.o),t+=46+f.f.length+i$(f.extra)+(f.o?f.o.length:0),i+=f.b}Dmt(g,t,this.u.length,a,i),this.ondata(null,g,!0),this.d=2},r.prototype.terminate=function(){for(var t=0,i=this.u;t<i.length;t++){var a=i[t];a.t()}this.d=2},r}();e_.Zip=kDr;function ODr(r,t,i){i||(i=t,t={}),typeof i!="function"&&Up(7);var a={};xmt(r,"",a,t);var c=Object.keys(a),d=c.length,f=0,g=0,v=d,S=new Array(d),E=[],A=e(function(){for(var w=0;w<E.length;++w)E[w]()},"tAll"),C=e(function(w,M){V6e(function(){i(w,M)})},"cbd");V6e(function(){C=i});var L=e(function(){var w=new Gm(g+22),M=f,J=g-f;g=0;for(var Z=0;Z<v;++Z){var Q=S[Z];try{var me=Q.c.length;xce(w,g,Q,Q.f,Q.u,me);var be=30+Q.f.length+i$(Q.extra),he=g+be;w.set(Q.c,he),xce(w,f,Q,Q.f,Q.u,me,g,Q.m),f+=16+be+(Q.m?Q.m.length:0),g=he+me}catch(_e){return C(_e,null)}}Dmt(w,f,S.length,J,M),C(null,w)},"cbf");d||L();for(var W=e(function(w){var M=c[w],J=a[M],Z=J[0],Q=J[1],me=Cce(),be=Z.length;me.p(Z);var he=o$(M),_e=he.length,He=Q.comment,et=He&&o$(He),ut=et&&et.length,ft=i$(Q.extra),Wt=Q.level==0?0:8,En=e(function(fn,Gt){if(fn)A(),C(fn,null);else{var Kt=Gt.length;S[w]=Lbe(Q,{size:be,crc:me.d(),c:Gt,f:he,m:et,u:_e!=M.length||et&&He.length!=ut,compression:Wt}),f+=30+_e+ft+Kt,g+=76+2*(_e+ft)+(ut||0)+Kt,--d||L()}},"cbl");if(_e>65535&&En(Up(11,0,1),null),!Wt)En(null,Z);else if(be<16e4)try{En(null,Mbe(Z,Q))}catch(fn){En(fn,null)}else E.push(rln(Z,Q,En))},"_loop_1"),O=0;O<v;++O)W(O);return A}e(ODr,"zip");e_.zip=ODr;function FDr(r,t){t||(t={});var i={},a=[];xmt(r,"",i,t);var c=0,d=0;for(var f in i){var g=i[f],v=g[0],S=g[1],E=S.level==0?0:8,A=o$(f),C=A.length,L=S.comment,W=L&&o$(L),O=W&&W.length,w=i$(S.extra);C>65535&&Up(11);var M=E?Mbe(v,S):v,J=M.length,Z=Cce();Z.p(v),a.push(Lbe(S,{size:v.length,crc:Z.d(),c:M,f:A,m:W,u:C!=f.length||W&&L.length!=O,o:c,compression:E})),c+=30+C+w+J,d+=76+2*(C+w)+(O||0)+J}for(var Q=new Gm(d+22),me=c,be=d-c,he=0;he<a.length;++he){var A=a[he];xce(Q,A.o,A,A.f,A.u,A.c.length);var _e=30+A.f.length+i$(A.extra);Q.set(A.c,A.o+_e),xce(Q,c,A,A.f,A.u,A.c.length,A.o,A.m),c+=16+_e+(A.m?A.m.length:0)}return Dmt(Q,c,a.length,be,me),Q}e(FDr,"zipSync");e_.zipSync=FDr;var hln=function(){function r(){}return e(r,"UnzipPassThrough"),r.prototype.push=function(t,i){this.ondata(null,t,i)},r.compression=0,r}();e_.UnzipPassThrough=hln;var BDr=function(){function r(){var t=this;this.i=new iM(function(i,a){t.ondata(null,i,a)})}return e(r,"UnzipInflate"),r.prototype.push=function(t,i){try{this.i.push(t,i)}catch(a){this.ondata(a,null,i)}},r.compression=8,r}();e_.UnzipInflate=BDr;var WDr=function(){function r(t,i){var a=this;i<32e4?this.i=new iM(function(c,d){a.ondata(null,c,d)}):(this.i=new Smt(function(c,d,f){a.ondata(c,d,f)}),this.terminate=this.i.terminate)}return e(r,"AsyncUnzipInflate"),r.prototype.push=function(t,i){this.i.terminate&&(t=s8(t,0)),this.i.push(t,i)},r.compression=8,r}();e_.AsyncUnzipInflate=WDr;var jDr=function(){function r(t){this.onfile=t,this.k=[],this.o={0:hln},this.p=r$}return e(r,"Unzip"),r.prototype.push=function(t,i){var a=this;if(this.onfile||Up(5),this.p||Up(4),this.c>0){var c=Math.min(this.c,t.length),d=t.subarray(0,c);if(this.c-=c,this.d?this.d.push(d,!this.c):this.k[0].push(d),t=t.subarray(c),t.length)return this.push(t,i)}else{var f=0,g=0,v=void 0,S=void 0;this.p.length?t.length?(S=new Gm(this.p.length+t.length),S.set(this.p),S.set(t,this.p.length)):S=this.p:S=t;for(var E=S.length,A=this.c,C=A&&this.d,L=e(function(){var M,J=TT(S,g);if(J==67324752){f=1,v=g,W.d=null,W.c=0;var Z=LN(S,g+6),Q=LN(S,g+8),me=Z&2048,be=Z&8,he=LN(S,g+26),_e=LN(S,g+28);if(E>g+30+he+_e){var He=[];W.k.unshift(He),f=2;var et=TT(S,g+18),ut=TT(S,g+22),ft=Tmt(S.subarray(g+30,g+=30+he),!me);et==4294967295?(M=be?[-2]:mln(S,g),et=M[0],ut=M[1]):be&&(et=-1),g+=_e,W.c=et;var Wt,En={name:ft,compression:Q,start:e(function(){if(En.ondata||Up(5),!et)En.ondata(null,r$,!0);else{var fn=a.o[Q];fn||En.ondata(Up(14,"unknown compression type "+Q,1),null,!1),Wt=et<0?new fn(ft):new fn(ft,et,ut),Wt.ondata=function(Xt,yt,Nn){En.ondata(Xt,yt,Nn)};for(var Gt=0,Kt=He;Gt<Kt.length;Gt++){var wt=Kt[Gt];Wt.push(wt,!1)}a.k[0]==He&&a.c?a.d=Wt:Wt.push(r$,!0)}},"start"),terminate:e(function(){Wt&&Wt.terminate&&Wt.terminate()},"terminate")};et>=0&&(En.size=et,En.originalSize=ut),W.onfile(En)}return"break"}else if(A){if(J==134695760)return v=g+=12+(A==-2&&8),f=3,W.c=0,"break";if(J==33639248)return v=g-=4,f=3,W.c=0,"break"}},"_loop_2"),W=this;g<E-4;++g){var O=L();if(O==="break")break}if(this.p=r$,A<0){var w=f?S.subarray(0,v-12-(A==-2&&8)-(TT(S,v-16)==134695760&&4)):S.subarray(0,g);C?C.push(w,!!f):this.k[+(f==2)].push(w)}if(f&2)return this.push(S.subarray(g),i);this.p=S.subarray(g)}i&&(this.c&&Up(13),this.p=null)},r.prototype.register=function(t){this.o[t.compression]=t},r}();e_.Unzip=jDr;var V6e=typeof queueMicrotask=="function"?queueMicrotask:typeof setTimeout=="function"?setTimeout:function(r){r()};function VDr(r,t,i){i||(i=t,t={}),typeof i!="function"&&Up(7);var a=[],c=e(function(){for(var w=0;w<a.length;++w)a[w]()},"tAll"),d={},f=e(function(w,M){V6e(function(){i(w,M)})},"cbd");V6e(function(){f=i});for(var g=r.length-22;TT(r,g)!=101010256;--g)if(!g||r.length-g>65558)return f(Up(13,0,1),null),c;var v=LN(r,g+8);if(v){var S=v,E=TT(r,g+16),A=E==4294967295||S==65535;if(A){var C=TT(r,g-12);A=TT(r,C)==101075792,A&&(S=v=TT(r,C+32),E=TT(r,C+48))}for(var L=t&&t.filter,W=e(function(w){var M=_ln(r,E,A),J=M[0],Z=M[1],Q=M[2],me=M[3],be=M[4],he=M[5],_e=fln(r,he);E=be;var He=e(function(ut,ft){ut?(c(),f(ut,null)):(ft&&(d[me]=ft),--v||f(null,d))},"cbl");if(!L||L({name:me,size:Z,originalSize:Q,compression:J}))if(!J)He(null,s8(r,_e,_e+Z));else if(J==8){var et=r.subarray(_e,_e+Z);if(Q<524288||Z>.8*Q)try{He(null,Rce(et,{out:new Gm(Q)}))}catch(ut){He(ut,null)}else a.push(Emt(et,{size:Q},He))}else He(Up(14,"unknown compression type "+J,1),null);else He(null,null)},"_loop_3"),O=0;O<S;++O)W(O)}else f(null,{});return c}e(VDr,"unzip");e_.unzip=VDr;function zDr(r,t){for(var i={},a=r.length-22;TT(r,a)!=101010256;--a)(!a||r.length-a>65558)&&Up(13);var c=LN(r,a+8);if(!c)return{};var d=TT(r,a+16),f=d==4294967295||c==65535;if(f){var g=TT(r,a-12);f=TT(r,g)==101075792,f&&(c=TT(r,g+32),d=TT(r,g+48))}for(var v=t&&t.filter,S=0;S<c;++S){var E=_ln(r,d,f),A=E[0],C=E[1],L=E[2],W=E[3],O=E[4],w=E[5],M=fln(r,w);d=O,(!v||v({name:W,size:C,originalSize:L,compression:A}))&&(A?A==8?i[W]=Rce(r.subarray(M,M+C),{out:new Gm(L)}):Up(14,"unknown compression type "+A):i[W]=s8(r,M,M+C))}return i}e(zDr,"unzipSync");e_.unzipSync=zDr});var yln=Je(nP=>{"use strict";V();G();U();z();Object.defineProperty(nP,"__esModule",{value:!0});nP.unzipSync=nP.zipSync=nP.gunzipSync=nP.gunzip=nP.gzipSync=nP.zipDirectory=nP.unzipAppPackage=void 0;var s$=gln();Object.defineProperty(nP,"unzipSync",{enumerable:!0,get:e(function(){return s$.unzipSync},"get")});Object.defineProperty(nP,"zipSync",{enumerable:!0,get:e(function(){return s$.zipSync},"get")});Object.defineProperty(nP,"gzipSync",{enumerable:!0,get:e(function(){return s$.gzipSync},"get")});Object.defineProperty(nP,"gunzipSync",{enumerable:!0,get:e(function(){return s$.gunzipSync},"get")});var Cmt=cbe(),Imt=vj(),Amt="status.json",UDr=e(async(r,t,i)=>{let a=new Uint8Array(r.readFileSync(t)),c=(0,s$.unzipSync)(a);if(c["package_inventory.csv"]&&delete c["package_inventory.csv"],Amt in c){let f=JSON.parse(xe.from(c[Amt]).toString("utf8"));if(f.status==="error")throw new Error("Application download failed with error, "+f.message);delete c[Amt]}return{files:Object.entries(c).map(([f,g])=>{let v=Imt.path.join(i,f),S=Imt.path.dirname(v);return Cmt.FileSystem.ensureDirSync(r,S),r.writeFileSync(v,g),v})}},"unzipAppPackage");nP.unzipAppPackage=UDr;var GDr=e(async(r,t,i)=>new Promise((a,c)=>{try{let d=new s$.Zip,f=Cmt.FileSystem.createWriteStream(r,i);d.ondata=(S,E,A)=>{S?(f.destroy(),c(S)):(f.write(E),A&&f.end())},f.on("finish",()=>{a(i)}),f.on("error",S=>{c(S)});let v=new Cmt.TsMorphFileSystemWrapper(r).globSync(["**"],{cwd:t});v.length===0&&c(`No files found in ${t} directory to create zip.`);for(let S of v){let E=Imt.path.normalize(S),A=r.readFileSync(E),C=new s$.ZipDeflate(E.replace(t,""),{level:6});d.add(C),C.push(A,!0)}d.end()}catch(d){c(d)}}),"zipDirectory");nP.zipDirectory=GDr;var qDr=e(r=>new Promise((t,i)=>(0,s$.gunzip)(r,(a,c)=>{a?i(a):t(c)})),"gunzip");nP.gunzip=qDr});var vln=Je(U6e=>{"use strict";V();G();U();z();Object.defineProperty(U6e,"__esModule",{value:!0});U6e.NoOpTelemetry=void 0;var wmt=class{static{e(this,"NoOpTelemetry")}startTimerEvent(){return{end:e(()=>({name:"",data:{}}),"end")}}start=e(()=>{},"start");sendEvent=e(()=>{},"sendEvent");error=e(()=>{},"error")};U6e.NoOpTelemetry=wmt});var bln=Je((_ji,HDr)=>{HDr.exports=[{name:"Agola CI",constant:"AGOLA",env:"AGOLA_GIT_REF",pr:"AGOLA_PULL_REQUEST_ID"},{name:"Alpic",constant:"ALPIC",env:"ALPIC_HOST"},{name:"Appcircle",constant:"APPCIRCLE",env:"AC_APPCIRCLE",pr:{env:"AC_GIT_PR",ne:"false"}},{name:"AppVeyor",constant:"APPVEYOR",env:"APPVEYOR",pr:"APPVEYOR_PULL_REQUEST_NUMBER"},{name:"AWS CodeBuild",constant:"CODEBUILD",env:"CODEBUILD_BUILD_ARN",pr:{env:"CODEBUILD_WEBHOOK_EVENT",any:["PULL_REQUEST_CREATED","PULL_REQUEST_UPDATED","PULL_REQUEST_REOPENED"]}},{name:"Azure Pipelines",constant:"AZURE_PIPELINES",env:"TF_BUILD",pr:{BUILD_REASON:"PullRequest"}},{name:"Bamboo",constant:"BAMBOO",env:"bamboo_planKey"},{name:"Bitbucket Pipelines",constant:"BITBUCKET",env:"BITBUCKET_COMMIT",pr:"BITBUCKET_PR_ID"},{name:"Bitrise",constant:"BITRISE",env:"BITRISE_IO",pr:"BITRISE_PULL_REQUEST"},{name:"Buddy",constant:"BUDDY",env:"BUDDY_WORKSPACE_ID",pr:"BUDDY_EXECUTION_PULL_REQUEST_ID"},{name:"Buildkite",constant:"BUILDKITE",env:"BUILDKITE",pr:{env:"BUILDKITE_PULL_REQUEST",ne:"false"}},{name:"CircleCI",constant:"CIRCLE",env:"CIRCLECI",pr:"CIRCLE_PULL_REQUEST"},{name:"Cirrus CI",constant:"CIRRUS",env:"CIRRUS_CI",pr:"CIRRUS_PR"},{name:"Cloudflare Pages",constant:"CLOUDFLARE_PAGES",env:"CF_PAGES"},{name:"Cloudflare Workers",constant:"CLOUDFLARE_WORKERS",env:"WORKERS_CI"},{name:"Codefresh",constant:"CODEFRESH",env:"CF_BUILD_ID",pr:{any:["CF_PULL_REQUEST_NUMBER","CF_PULL_REQUEST_ID"]}},{name:"Codemagic",constant:"CODEMAGIC",env:"CM_BUILD_ID",pr:"CM_PULL_REQUEST"},{name:"Codeship",constant:"CODESHIP",env:{CI_NAME:"codeship"}},{name:"Drone",constant:"DRONE",env:"DRONE",pr:{DRONE_BUILD_EVENT:"pull_request"}},{name:"dsari",constant:"DSARI",env:"DSARI"},{name:"Earthly",constant:"EARTHLY",env:"EARTHLY_CI"},{name:"Expo Application Services",constant:"EAS",env:"EAS_BUILD"},{name:"Gerrit",constant:"GERRIT",env:"GERRIT_PROJECT"},{name:"Gitea Actions",constant:"GITEA_ACTIONS",env:"GITEA_ACTIONS"},{name:"GitHub Actions",constant:"GITHUB_ACTIONS",env:"GITHUB_ACTIONS",pr:{GITHUB_EVENT_NAME:"pull_request"}},{name:"GitLab CI",constant:"GITLAB",env:"GITLAB_CI",pr:"CI_MERGE_REQUEST_ID"},{name:"GoCD",constant:"GOCD",env:"GO_PIPELINE_LABEL"},{name:"Google Cloud Build",constant:"GOOGLE_CLOUD_BUILD",env:"BUILDER_OUTPUT"},{name:"Harness CI",constant:"HARNESS",env:"HARNESS_BUILD_ID"},{name:"Heroku",constant:"HEROKU",env:{env:"NODE",includes:"/app/.heroku/node/bin/node"}},{name:"Hudson",constant:"HUDSON",env:"HUDSON_URL"},{name:"Jenkins",constant:"JENKINS",env:["JENKINS_URL","BUILD_ID"],pr:{any:["ghprbPullId","CHANGE_ID"]}},{name:"LayerCI",constant:"LAYERCI",env:"LAYERCI",pr:"LAYERCI_PULL_REQUEST"},{name:"Magnum CI",constant:"MAGNUM",env:"MAGNUM"},{name:"Netlify CI",constant:"NETLIFY",env:"NETLIFY",pr:{env:"PULL_REQUEST",ne:"false"}},{name:"Nevercode",constant:"NEVERCODE",env:"NEVERCODE",pr:{env:"NEVERCODE_PULL_REQUEST",ne:"false"}},{name:"Prow",constant:"PROW",env:"PROW_JOB_ID"},{name:"ReleaseHub",constant:"RELEASEHUB",env:"RELEASE_BUILD_ID"},{name:"Render",constant:"RENDER",env:"RENDER",pr:{IS_PULL_REQUEST:"true"}},{name:"Sail CI",constant:"SAIL",env:"SAILCI",pr:"SAIL_PULL_REQUEST_NUMBER"},{name:"Screwdriver",constant:"SCREWDRIVER",env:"SCREWDRIVER",pr:{env:"SD_PULL_REQUEST",ne:"false"}},{name:"Semaphore",constant:"SEMAPHORE",env:"SEMAPHORE",pr:"PULL_REQUEST_NUMBER"},{name:"Sourcehut",constant:"SOURCEHUT",env:{CI_NAME:"sourcehut"}},{name:"Strider CD",constant:"STRIDER",env:"STRIDER"},{name:"TaskCluster",constant:"TASKCLUSTER",env:["TASK_ID","RUN_ID"]},{name:"TeamCity",constant:"TEAMCITY",env:"TEAMCITY_VERSION"},{name:"Travis CI",constant:"TRAVIS",env:"TRAVIS",pr:{env:"TRAVIS_PULL_REQUEST",ne:"false"}},{name:"Vela",constant:"VELA",env:"VELA",pr:{VELA_PULL_REQUEST:"1"}},{name:"Vercel",constant:"VERCEL",env:{any:["NOW_BUILDER","VERCEL"]},pr:"VERCEL_GIT_PULL_REQUEST_ID"},{name:"Visual Studio App Center",constant:"APPCENTER",env:"APPCENTER_BUILD_ID"},{name:"Woodpecker",constant:"WOODPECKER",env:{CI:"woodpecker"},pr:{CI_BUILD_EVENT:"pull_request"}},{name:"Xcode Cloud",constant:"XCODE_CLOUD",env:"CI_XCODE_PROJECT",pr:"CI_PULL_REQUEST_NUMBER"},{name:"Xcode Server",constant:"XCODE_SERVER",env:"XCS"}]});var xln=Je(O5=>{"use strict";V();G();U();z();var Sln=bln(),DT=Se.env;Object.defineProperty(O5,"_vendors",{value:Sln.map(function(r){return r.constant})});O5.name=null;O5.isPR=null;O5.id=null;DT.CI!=="false"&&Sln.forEach(function(r){let i=(Array.isArray(r.env)?r.env:[r.env]).every(function(a){return Eln(a)});O5[r.constant]=i,i&&(O5.name=r.name,O5.isPR=KDr(r),O5.id=r.constant)});O5.isCI=!!(DT.CI!=="false"&&(DT.BUILD_ID||DT.BUILD_NUMBER||DT.CI||DT.CI_APP_ID||DT.CI_BUILD_ID||DT.CI_BUILD_NUMBER||DT.CI_NAME||DT.CONTINUOUS_INTEGRATION||DT.RUN_ID||O5.name));function Eln(r){return typeof r=="string"?!!DT[r]:"env"in r?DT[r.env]&&DT[r.env].includes(r.includes):"any"in r?r.any.some(function(t){return!!DT[t]}):Object.keys(r).every(function(t){return DT[t]===r[t]})}e(Eln,"checkEnv");function KDr(r){switch(typeof r.pr){case"string":return!!DT[r.pr];case"object":return"env"in r.pr?"any"in r.pr?r.pr.any.some(function(t){return DT[r.pr.env]===t}):r.pr.env in DT&&DT[r.pr.env]!==r.pr.ne:"any"in r.pr?r.pr.any.some(function(t){return!!DT[t]}):Eln(r.pr);default:return null}}e(KDr,"checkPR")});var Pmt=Je(Lce=>{"use strict";V();G();U();z();Object.defineProperty(Lce,"__esModule",{value:!0});Lce.DatapointType=Lce.NETWORK_TIMEOUT_MS=void 0;Lce.NETWORK_TIMEOUT_MS=2e3;var Tln;(function(r){r[r.Page=0]="Page",r[r.Event=1]="Event",r[r.User=2]="User",r[r.PerformanceTrace=3]="PerformanceTrace"})(Tln||(Lce.DatapointType=Tln={}))});var Dln=Je(G6e=>{"use strict";V();G();U();z();Object.defineProperty(G6e,"__esModule",{value:!0});G6e.AppSeeTimerMetric=void 0;var Nmt=class{static{e(this,"AppSeeTimerMetric")}name;startTime;constructor(t){this.name=t,this.startTime=Date.now()}getDurationMs(){let t=Date.now();return{duration:t-this.startTime,now:t}}end(t){let i=Date.now()-this.startTime;return{name:this.name,appInfo:t?.appInfo||{},data:{...t?.data,durationMs:i}}}};G6e.AppSeeTimerMetric=Nmt});var Lmt=Je(q6e=>{"use strict";V();G();U();z();Object.defineProperty(q6e,"__esModule",{value:!0});q6e.AbstractAppSeeClient=void 0;var JDr=Dln(),Rmt=class{static{e(this,"AbstractAppSeeClient")}config;telemetryAttributes;sdkVersion;clientName;hostname;session;startPromise;constructor(t,i){this.config=t,this.telemetryAttributes=i,this.sdkVersion=i.sdkVersion,this.clientName=i.clientName,this.hostname=i.hostname}startTimerEvent(t){return new JDr.AppSeeTimerMetric(t)}start(){return this.startPromise||(this.startPromise=this.doStart()),this.startPromise}sendEvent(t){this.start().then(()=>this.doSendEvent(t)).catch(()=>{})}error(t,i,a){this.sendEvent([{name:"error",data:{event:t,...i instanceof Error?{name:i.name,message:i.message,stack:i.stack}:{message:i?.toString()},...a}}])}};q6e.AbstractAppSeeClient=Rmt});var Cln=Je(u8=>{"use strict";V();G();U();z();var XDr=u8&&u8.__createBinding||(Object.create?function(r,t,i,a){a===void 0&&(a=i);var c=Object.getOwnPropertyDescriptor(t,i);(!c||("get"in c?!t.__esModule:c.writable||c.configurable))&&(c={enumerable:!0,get:e(function(){return t[i]},"get")}),Object.defineProperty(r,a,c)}:function(r,t,i,a){a===void 0&&(a=i),r[a]=t[i]}),$Dr=u8&&u8.__setModuleDefault||(Object.create?function(r,t){Object.defineProperty(r,"default",{enumerable:!0,value:t})}:function(r,t){r.default=t}),YDr=u8&&u8.__importStar||function(r){if(r&&r.__esModule)return r;var t={};if(r!=null)for(var i in r)i!=="default"&&Object.prototype.hasOwnProperty.call(r,i)&&XDr(t,r,i);return $Dr(t,r),t},QDr=u8&&u8.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(u8,"__esModule",{value:!0});u8.NodeTelemetryClient=void 0;var kmt=YDr((m5(),nd(_5))),Mmt=QDr(xln()),H6e=Pmt(),ZDr=Lmt();function Aln(){return(RD(),nd(ND)).randomBytes(16).toString("hex")}e(Aln,"generateHexString");async function eAr(){let r=`${kmt.userInfo().username}:${kmt.hostname()}`;if(!r)return"unknown";let t=new TextEncoder().encode(r),i=await crypto.subtle.digest("SHA-256",t);return xe.from(i).toString("hex")}e(eAr,"getUserHash");var Omt=class extends ZDr.AbstractAppSeeClient{static{e(this,"NodeTelemetryClient")}constructor(t,i){super(t,{...i??{},clientName:i?.clientName??"cli"})}userId;async doStart(){try{if(this.session)return;this.userId=await eAr();let t=Aln(),i={RequestId:Aln(),TabId:t,SystemLocale:(Se.env.LANG||"unknown").split(".")[0],AppUserId:this.userId,ScreenHeight:0,ScreenWidth:0,ClientTime:new Date().toISOString(),TrackingLevel:"Full"},a=await fetch(new URL("/web/config",this.config.BaseUrl),{method:"POST",headers:this.getHeaders(),body:JSON.stringify(i),signal:AbortSignal.timeout(H6e.NETWORK_TIMEOUT_MS)}),c=await a.json();if(a.ok)this.session={...c,TabId:t};else throw new Error(`Failed to start session with status ${a.status}: ${c.Error}`)}catch{}}doSendEvent(t){try{if(!this.session)return;let i=this.getDefaultDataValues(),a=Array.isArray(t)?t:[t],c=Date.now(),d=this.hostname?{hostname:this.hostname}:{},f=a.map(S=>({t:H6e.DatapointType.Event,d:c,n:S.name,p:{scopeId:S.appInfo?.scopeId,...d,...i,...S.data}})),g=this.applyCITelemetry({...d});f.push({t:H6e.DatapointType.User,d:c,n:this.userId,p:g});let v={SessionId:this.session.SessionId,DataPoints:f,TabId:this.session.TabId||"0",ClientTime:new Date().toISOString(),ConfigReceivedTime:new Date().toISOString()};fetch(new URL("/web/heartbeat",this.config.BaseUrl),{method:"POST",headers:this.getHeaders(),body:JSON.stringify(v),signal:AbortSignal.timeout(H6e.NETWORK_TIMEOUT_MS)}).catch(()=>{})}catch{}}getHeaders(){return{APIKey:this.config.APIKey,APIAuth:this.config.APIAuth,BrowserId:"0",ClientId:this.session?.ClientId||"0",Version:this.sdkVersion||"unknown","Content-Type":"application/json"}}getDefaultDataValues(){let t={os:kmt.type(),version:this.sdkVersion||"unknown",nodeVersion:Se.version,clientName:this.clientName};return this.applyCITelemetry(t)}applyCITelemetry(t){return Mmt.default.isCI?{...t,ci:!0,ciName:Mmt.default.name,ciPR:Mmt.default.isPR}:t}};u8.NodeTelemetryClient=Omt});var Iln=Je(J6e=>{"use strict";V();G();U();z();Object.defineProperty(J6e,"__esModule",{value:!0});J6e.BrowserTelemetryClient=void 0;var K6e=Pmt(),tAr=Lmt(),Fmt=class extends tAr.AbstractAppSeeClient{static{e(this,"BrowserTelemetryClient")}constructor(t,i){let{ideVersion:a,...c}=i??{};super(t,{...c,clientName:i?.clientName??"ide"}),this.ideVersion=a}ideVersion;userId;async getUserHash(){let t=await this.getUserIdentifier(),i=new TextEncoder().encode(t),a=await crypto.subtle.digest("SHA-256",i);return Array.from(new Uint8Array(a)).map(d=>d.toString(16).padStart(2,"0")).join("")}async getUserIdentifier(){if(typeof window>"u")return"unknown";let t="sdk_telemetry_user_id";try{let i=localStorage.getItem(t);return i||(i=`anon_${Date.now()}_${Math.random().toString(36).substring(2,15)}`,localStorage.setItem(t,i)),i}catch{return`temp_${Math.random().toString(36).substring(2,15)}`}}generateHexString(){return crypto.randomUUID()}async doStart(){try{if(this.session)return;this.userId=await this.getUserHash();let t=this.generateHexString(),i={RequestId:this.generateHexString(),TabId:t,SystemLocale:Le.language??"unknown",AppUserId:this.userId,ScreenHeight:typeof screen<"u"?screen.height:0,ScreenWidth:typeof screen<"u"?screen.width:0,ClientTime:new Date().toISOString(),TrackingLevel:"Full"},a=await fetch(new URL("/web/config",this.config.BaseUrl),{method:"POST",headers:this.getHeaders(),body:JSON.stringify(i),signal:AbortSignal.timeout(K6e.NETWORK_TIMEOUT_MS)}),c=await a.json();if(a.ok)this.session={...c,TabId:t};else throw new Error(`Failed to start session with status ${a.status}: ${c.Error}`)}catch{}}doSendEvent(t){try{if(!this.session)return;let i=this.getDefaultDataValues(),a=Array.isArray(t)?t:[t],c=Date.now(),d=this.hostname?{hostname:this.hostname}:{},f=a.map(S=>({t:K6e.DatapointType.Event,d:c,n:S.name,p:{scopeId:S.appInfo?.scopeId,...d,...i,...S.data}})),g={hostname:d};f.push({t:K6e.DatapointType.User,d:c,n:this.userId,p:g});let v={SessionId:this.session.SessionId,DataPoints:f,TabId:this.session.TabId||"0",ClientTime:new Date().toISOString(),ConfigReceivedTime:new Date().toISOString()};fetch(new URL("/web/heartbeat",this.config.BaseUrl),{method:"POST",headers:this.getHeaders(),body:JSON.stringify(v),signal:AbortSignal.timeout(K6e.NETWORK_TIMEOUT_MS)}).catch(()=>{})}catch{}}getHeaders(){return{APIKey:this.config.APIKey,APIAuth:this.config.APIAuth,BrowserId:"0",ClientId:this.session?.ClientId||"0",Version:this.sdkVersion||"unknown","Content-Type":"application/json"}}getDefaultDataValues(){return{browser:Le.userAgent||"unknown",version:this.sdkVersion||"unknown",clientName:this.clientName,ideVersion:this.ideVersion||"unknown"}}};J6e.BrowserTelemetryClient=Fmt});var Nln=Je(($ji,Pln)=>{"use strict";V();G();U();z();var Bmt=Object.defineProperty,nAr=Object.getOwnPropertyDescriptor,rAr=Object.getOwnPropertyNames,iAr=Object.prototype.hasOwnProperty,oAr=e((r,t)=>{for(var i in t)Bmt(r,i,{get:t[i],enumerable:!0})},"__export"),aAr=e((r,t,i,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let c of rAr(t))!iAr.call(r,c)&&c!==i&&Bmt(r,c,{get:e(()=>t[c],"get"),enumerable:!(a=nAr(t,c))||a.enumerable});return r},"__copyProps"),sAr=e(r=>aAr(Bmt({},"__esModule",{value:!0}),r),"__toCommonJS"),wln={};oAr(wln,{getAppSeeConfig:e(()=>lAr,"getAppSeeConfig")});Pln.exports=sAr(wln);var lAr=e(()=>({APIKey:"demonightlycrf:6488f3cdc18547c19b2c8852b276a210",APIAuth:"f3bfba5cdd1f417589a0b1b290fd3346",BaseUrl:"https://api-appsee.service-now.com"}),"getAppSeeConfig")});var Rln=Je(X6e=>{"use strict";V();G();U();z();Object.defineProperty(X6e,"__esModule",{value:!0});X6e.TelemetryFactory=void 0;var cAr=vln(),uAr=Cln(),dAr=Iln(),pAr=Nln(),Wmt=class{static{e(this,"TelemetryFactory")}static create(t){let i=(0,pAr.getAppSeeConfig)();if(!t||!t.type||!i.APIKey||!i.APIAuth||!i.BaseUrl)return new cAr.NoOpTelemetry;if(t.type==="node")return new uAr.NodeTelemetryClient(i,t.attributes);if(t.type==="browser")return new dAr.BrowserTelemetryClient(i,t.attributes);throw new Error("Invalid telemetry type.")}};X6e.TelemetryFactory=Wmt});var Lln=Je($6e=>{"use strict";V();G();U();z();Object.defineProperty($6e,"__esModule",{value:!0});$6e.TelemetryFactory=void 0;var fAr=Rln();Object.defineProperty($6e,"TelemetryFactory",{enumerable:!0,get:e(function(){return fAr.TelemetryFactory},"get")})});var Mln=Je(jmt=>{"use strict";V();G();U();z();Object.defineProperty(jmt,"__esModule",{value:!0});jmt.validateClaimsFile=gAr;var _Ar=HX(),mAr=Z_t(),hAr={id:"/.claims",type:"object",patternProperties:{".*":{type:"array"}}};function gAr(r){let t=_Ar.JSON5.parse(r),a=new mAr.Validator().validate(t,hAr);if(a.errors&&a.errors.length>0)throw new Error(`Error reading .claims.json, ${a.errors[0]?.stack}`)}e(gAr,"validateClaimsFile")});var Vs=Je(lb=>{"use strict";V();G();U();z();var yAr=lb&&lb.__createBinding||(Object.create?function(r,t,i,a){a===void 0&&(a=i);var c=Object.getOwnPropertyDescriptor(t,i);(!c||("get"in c?!t.__esModule:c.writable||c.configurable))&&(c={enumerable:!0,get:e(function(){return t[i]},"get")}),Object.defineProperty(r,a,c)}:function(r,t,i,a){a===void 0&&(a=i),r[a]=t[i]}),DE=lb&&lb.__exportStar||function(r,t){for(var i in r)i!=="default"&&!Object.prototype.hasOwnProperty.call(t,i)&&yAr(t,r,i)};Object.defineProperty(lb,"__esModule",{value:!0});DE(a_t(),lb);DE(gon(),lb);DE(r6e(),lb);DE(d6e(),lb);DE(ean(),lb);DE(tan(),lb);DE(oan(),lb);DE(Fft(),lb);DE(Rsn(),lb);DE(G3e(),lb);DE(V3e(),lb);DE(U_t(),lb);DE(HX(),lb);DE(Lsn(),lb);DE(cbe(),lb);DE(vj(),lb);DE(yj(),lb);DE(m_t(),lb);DE(yln(),lb);DE(k_t(),lb);DE(Lln(),lb);DE(Mln(),lb);DE(nmt(),lb)});var kln=Je(d8=>{"use strict";V();G();U();z();var vAr=d8&&d8.__createBinding||(Object.create?function(r,t,i,a){a===void 0&&(a=i);var c=Object.getOwnPropertyDescriptor(t,i);(!c||("get"in c?!t.__esModule:c.writable||c.configurable))&&(c={enumerable:!0,get:e(function(){return t[i]},"get")}),Object.defineProperty(r,a,c)}:function(r,t,i,a){a===void 0&&(a=i),r[a]=t[i]}),bAr=d8&&d8.__setModuleDefault||(Object.create?function(r,t){Object.defineProperty(r,"default",{enumerable:!0,value:t})}:function(r,t){r.default=t}),SAr=d8&&d8.__importStar||function(r){if(r&&r.__esModule)return r;var t={};if(r!=null)for(var i in r)i!=="default"&&Object.prototype.hasOwnProperty.call(r,i)&&vAr(t,r,i);return bAr(t,r),t};Object.defineProperty(d8,"__esModule",{value:!0});d8.writeFileWithParentDirs=xAr;d8.createDirIfNotExists=TAr;d8.defaultDownloadDir=DAr;d8.writeFileStream=AAr;var Mce=Vs(),EAr=SAr((m5(),nd(_5)));function xAr(r,{path:t,content:i}){let a=Mce.path.dirname(t);Mce.FileSystem.existsSync(r,a)||r.mkdirSync(a,{recursive:!0}),r.writeFileSync(t,i,{encoding:"utf-8"})}e(xAr,"writeFileWithParentDirs");function TAr(r,t){Mce.FileSystem.existsSync(t,r)||t.mkdirSync(r,{recursive:!0})}e(TAr,"createDirIfNotExists");function DAr(){return Mce.path.join(EAr.tmpdir(),".now/metadata",(0,Mce.GUID)())}e(DAr,"defaultDownloadDir");function AAr(r,t,i){let a=Mce.FileSystem.createWriteStream(r,t);return i.pipeTo(new WritableStream({write:e(c=>new Promise((d,f)=>{a.write(c,g=>{g?f(g):d()})}),"write"),close:e(()=>new Promise((c,d)=>{a.end(f=>{f?d(f):c()})}),"close"),abort:e(c=>new Promise((d,f)=>{a.end(g=>{f(c??g)})}),"abort")}))}e(AAr,"writeFileStream")});var Bln=Je(Vmt=>{"use strict";V();G();U();z();Object.defineProperty(Vmt,"__esModule",{value:!0});Vmt.traverseDirectory=Fln;var Oln=Vs();function Fln(r,t,i){if(!Oln.FileSystem.existsSync(r,t))return;let a=r.readdirSync(t,{withFileTypes:!0}),{extensions:c,ignore_extensions:d,visitor:f}=i||{};for(let g of a){let v=Oln.path.resolve(t,g.name);g.isDirectory()?Fln(r,v,i):d&&d.find(S=>v.toLocaleLowerCase().endsWith(S.toLocaleLowerCase()))||(!c||c.length===0||c.some(S=>v.toLocaleLowerCase().endsWith(S.toLocaleLowerCase())))&&f(v)}}e(Fln,"traverseDirectory")});var Wln=Je(zmt=>{"use strict";V();G();U();z();Object.defineProperty(zmt,"__esModule",{value:!0});zmt.getOutput=CAr;async function CAr(r,t){let i=new Set,a=[];for(let c of[{mode:"explicit",creatorOnly:!1},{mode:"catch-all",creatorOnly:!1}])for(let d of t.plugins.toArray()){let f=await d.recordsToFiles({...c,database:r,context:t,handledGuids:i});f.success&&a.push(...f.value)}return a.map(c=>({source:c.source,path:t.project.resolvePath(t.config.appOutputDir,c.ifDirectoryPackage??"",c.category,c.name),content:c.content}))}e(CAr,"getOutput")});var jln=Je(kbe=>{"use strict";V();G();U();z();Object.defineProperty(kbe,"__esModule",{value:!0});kbe.createPackageJson=IAr;kbe.getPackageJsonFilePath=wAr;kbe.validatePackageName=PAr;var Y6e=Vs();function IAr({rootDir:r,compiler:t,fileSystem:i}){let a=Y6e.path.join(r,"package.json"),c=t.getSourceFile(a);if(!c&&!Y6e.FileSystem.existsSync(i,a))return{name:"my-fluent-app",version:"0.0.1"};let d=c?c.getFullText():i.readFileSync(a,{encoding:"utf-8"});return Y6e.JSON5.parse(d)}e(IAr,"createPackageJson");function wAr(r){return Y6e.path.join(r,"package.json")}e(wAr,"getPackageJsonFilePath");function PAr(r){if(r===null)throw new Error("name cannot be null");if(r===void 0)throw new Error("name cannot be undefined");if(!r.length)throw new Error("name length must be greater than zero");if(r.match(/^\./))throw new Error("name cannot start with a period");if(r.match(/^_/))throw new Error("name cannot start with an underscore");if(r.trim()!==r)throw new Error("name cannot contain leading or trailing spaces");if(encodeURIComponent(r)!==r){let t=/^(?:@([^/]+?)[/])?([^/]+?)$/,i=r.match(t);if(i){let a=i[1],c=i[2];if(encodeURIComponent(a)===a&&encodeURIComponent(c)===c)return}throw new Error("name can only contain URL-friendly characters")}}e(PAr,"validatePackageName")});var Q6e=Je(Obe=>{"use strict";V();G();U();z();Object.defineProperty(Obe,"__esModule",{value:!0});Obe.isWebWorker=void 0;Obe.hasModuleLoader=NAr;Obe.isWebWorker=typeof self=="object"&&self.constructor&&self.constructor.name==="DedicatedWorkerGlobalScope";function NAr(){return require?.IDE_MODULE_LOADER}e(NAr,"hasModuleLoader")});var Umt=Je(Z6e=>{"use strict";V();G();U();z();Object.defineProperty(Z6e,"__esModule",{value:!0});Z6e.createSandboxedRegisterExplicitId=void 0;var RAr="sys_ux_theme_asset",LAr=e(r=>e((i,a)=>{if(i!==RAr)throw new Error(`registerExplicitId is not supported for the "${i}" table.`);return r.registerExplicitId(i,a)},"registerExplicitId"),"createSandboxedRegisterExplicitId");Z6e.createSandboxedRegisterExplicitId=LAr});var Gmt=Je(e8e=>{"use strict";V();G();U();z();Object.defineProperty(e8e,"__esModule",{value:!0});e8e.projectHasScript=kAr;e8e.runScriptInProject=OAr;var Fbe=Vs(),Vln=Q6e(),MAr=Umt();function kAr(r,t){let i=r.getFileSystem(),c=r.getConfig().scripts?.[t];if(c){let f=r.resolvePath(c);if(Fbe.FileSystem.existsSync(i,f))return!0}let d=r.resolvePath(`now.${t}.mjs`);return!!Fbe.FileSystem.existsSync(i,d)}e(kAr,"projectHasScript");async function OAr({scriptName:r,project:t,credential:i,throwIfNotFound:a=!1}){let c=t.getRootDir(),d=t.getFileSystem(),f=t.getConfig(),g=t.getLogger(),v=(0,MAr.createSandboxedRegisterExplicitId)(t),S=null,E=f.scripts?.[r];if(E){let L=t.resolvePath(E);if(!Fbe.FileSystem.existsSync(d,L)){if(a)throw Error(`Script "${r}" defined in config at "${E}" not found at ${L}.`);return}S=L}else{let L=t.resolvePath(`now.${r}.mjs`);if(Fbe.FileSystem.existsSync(d,L))S=L;else{if(a)throw Error(`No script defined for "${r}". Please add it to scripts in now.config.json or create now.${r}.mjs.`);return}}g.info(`Running script "${r}" from ${S}`);let A=null;Vln.isWebWorker&&(0,Vln.hasModuleLoader)()?A=await require(S):A=await import(e(W=>`file://${W}`,"webpackWillIgnoreThisIhateYouWebpack")(S));let C=Array.isArray(A.default)?A.default:[A.default];for(let L of C)typeof L=="function"?await L({rootDir:c,config:f,fs:d,path:Fbe.path,logger:g,registerExplicitId:v,credential:i}):g.warn(`Skipping non-function task in script "${r}": ${L?.toString()} . Please export a function or an array of functions.`);g.info(`Script "${r}" completed successfully`)}e(OAr,"runScriptInProject")});var Uln=Je(zln=>{"use strict";V();G();U();z();Object.defineProperty(zln,"__esModule",{value:!0})});var Gln=Je(qmt=>{"use strict";V();G();U();z();Object.defineProperty(qmt,"__esModule",{value:!0});qmt.defaultUiBuild=BAr;var t8e=(RD(),nd(ND)),n8e=Vs(),FAr=Umt();async function BAr({project:r}){let t=r.getFileSystem(),i=r.getConfig(),a=r.getLogger(),c=r.getRootDir(),d=(0,FAr.createSandboxedRegisterExplicitId)(r),f=n8e.path.join(c,i.clientDir);if(!n8e.FileSystem.existsSync(t,f)){a.debug(`No client files in ${f} found, skipping UI build.`);return}let g=n8e.path.join(f,"**","*.html");if(!(await(0,t8e.glob)(g,{fs:t})).length){a.warn(`No HTML files found in ${f}, skipping UI build.`);return}let S=n8e.path.join(c,i.staticContentDir);t.rmSync(S,{recursive:!0,force:!0});let E=await(0,t8e.servicenowFrontEndPlugins)({scope:i.scope,rootDir:f,registerExplicitId:d});(await(await(0,t8e.rollup)({fs:t,input:g,plugins:[...E,(0,t8e.uiPageSourceManifest)({rootDir:c,clientDir:f})]})).write({dir:S,sourcemap:!0})).output.forEach(L=>{L.type==="asset"?a.info(`Bundled asset: ${L.fileName} (${L.source.length} bytes)`):L.type==="chunk"&&a.info(`Bundled chunk: ${L.fileName} (${L.code.length} bytes)`)})}e(BAr,"defaultUiBuild")});var qln=Je(qte=>{"use strict";V();G();U();z();Object.defineProperty(qte,"__esModule",{value:!0});qte.typeCheckProject=void 0;qte.uiPrebuild=jAr;qte.uiPostbuild=VAr;var p8=Vs(),r8e=Gmt(),i8e=Q6e(),WAr=e(r=>{let t=r.getLogger(),i=r.getConfig(),a=r.getFileSystem(),c=r.resolvePath(i.clientDir);if(i.clientDir&&p8.FileSystem.existsSync(a,c)){let d={moduleResolution:p8.ts.ModuleResolutionKind.Bundler,module:p8.ts.ModuleKind.ES2022,target:p8.ts.ScriptTarget.ES2022,lib:["lib.es2022.d.ts","lib.dom.d.ts"],jsx:p8.tsc.JsxEmit.Preserve},f=r.resolvePath(i.clientDir,"tsconfig.json"),g={fileSystem:new p8.TsMorphFileSystemWrapper(a),defaultCompilerOptions:d};p8.FileSystem.existsSync(a,f)?(t.debug(`Using client tsconfig.json for type checking: ${f}`),g.tsConfigFilePath=f,g.skipAddingFilesFromTsConfig=!0):t.warn("No client tsconfig.json found, using default compiler options for type checking");let v=new p8.ts.Project(g);t.debug(`Type checking client project with options:
31144
+ `),new Error(i)}return t.data}e(hDr,"getParsedNowConfigData");function gDr(r,t){let i=(0,cDr.readJson)(r,"",t);if(!vDr(i))throw new Error(`Config file '${vce.FILE_NAME}' is empty or malformed`);let a=mDr(i);if(a.errors.length>0)throw new Error(`${vce.FILE_NAME} - error: ${yDr(a.errors)}`);return i}e(gDr,"validateNowConfigJsonFile");function yDr(r){return r.filter(t=>!t.message.includes("does not match allOf schema")).map(t=>t.path.length?`"${t.path.join(".")}" ${t.message}`:t.message==="is of prohibited type [object Object]"?t.argument.errorMessage:t.message).join(", ")}e(yDr,"formatValidationErrorMessage");function Psn(r,t){return(t instanceof uDr.Compiler?!!t.getSourceFile(r):imt.FileSystem.existsSync(t,r))?gDr(r,t):null}e(Psn,"readNowConfigJsonFile");function vDr(r){if(!r||typeof r!="object"||Array.isArray(r))return!1;for(let t in r)if(typeof t!="string")return!1;return!0}e(vDr,"isObjectWithStringKeys");var bDr={moduleDir:{replacedBy:"serverModulesDir",transfer:!0},compileOutputDir:{replacedBy:"appOutputDir",transfer:!0},entitiesDir:{replacedBy:"fluentDir",transfer:!0},transpiledSourceDir:{replacedBy:"modulePaths"},sourceDir:{}};function SDr(r,t){for(let[i,{replacedBy:a,transfer:c}]of Object.entries(bDr))i in r&&(t.warn(`'${i}' is deprecated${a?`, please replace with '${a}'`:" and can be removed"}`),c&&a&&(r[a]=r[i]))}e(SDr,"replaceDeprecatedFields");function EDr(r){for(let[t,i]of Object.entries(vce.ERROR_ON_DEPRECATED_PROPS))if(t in r)throw new Error(i)}e(EDr,"checkRemovedProperties")});var Lsn=Je(I6e=>{"use strict";V();G();U();z();Object.defineProperty(I6e,"__esModule",{value:!0});I6e.createConsoleLogger=xDr;I6e.createSilentLogger=TDr;function xDr(){return console}e(xDr,"createConsoleLogger");function TDr(){return{info:e(()=>{},"info"),warn:e(()=>{},"warn"),error:e(()=>{},"error"),debug:e(()=>{},"debug")}}e(TDr,"createSilentLogger")});var gln=Je(e_=>{"use strict";V();G();U();z();var Msn={},Fsn={};Fsn.default=function(r,t,i,a,c){var d=new Worker(Msn[t]||(Msn[t]=URL.createObjectURL(new Blob([r+';addEventListener("error",function(e){e=e.error;postMessage({$e$:[e.message,e.code,e.stack]})})'],{type:"text/javascript"}))));return d.onmessage=function(f){var g=f.data,v=g.$e$;if(v){var S=new Error(v[0]);S.code=v[1],S.stack=v[2],c(S,null)}else c(null,g)},d.postMessage(i,a),d};var Gm=Uint8Array,MN=Uint16Array,Nbe=Int32Array,Tce=new Gm([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),Dce=new Gm([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),Ibe=new Gm([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),Bsn=e(function(r,t){for(var i=new MN(31),a=0;a<31;++a)i[a]=t+=1<<r[a-1];for(var c=new Nbe(i[30]),a=1;a<30;++a)for(var d=i[a];d<i[a+1];++d)c[d]=d-i[a]<<5|a;return{b:i,r:c}},"freb"),Wsn=Bsn(Tce,2),fmt=Wsn.b,L6e=Wsn.r;fmt[28]=258,L6e[258]=28;var jsn=Bsn(Dce,0),Vsn=jsn.b,amt=jsn.r,wbe=new MN(32768);for(nv=0;nv<32768;++nv)rq=(nv&43690)>>1|(nv&21845)<<1,rq=(rq&52428)>>2|(rq&13107)<<2,rq=(rq&61680)>>4|(rq&3855)<<4,wbe[nv]=((rq&65280)>>8|(rq&255)<<8)>>1;var rq,nv,a8=e(function(r,t,i){for(var a=r.length,c=0,d=new MN(t);c<a;++c)r[c]&&++d[r[c]-1];var f=new MN(t);for(c=1;c<t;++c)f[c]=f[c-1]+d[c-1]<<1;var g;if(i){g=new MN(1<<t);var v=15-t;for(c=0;c<a;++c)if(r[c])for(var S=c<<4|r[c],E=t-r[c],A=f[r[c]-1]++<<E,C=A|(1<<E)-1;A<=C;++A)g[wbe[A]>>v]=S}else for(g=new MN(a),c=0;c<a;++c)r[c]&&(g[c]=wbe[f[r[c]-1]++]>>15-r[c]);return g},"hMap"),iq=new Gm(288);for(nv=0;nv<144;++nv)iq[nv]=8;var nv;for(nv=144;nv<256;++nv)iq[nv]=9;var nv;for(nv=256;nv<280;++nv)iq[nv]=7;var nv;for(nv=280;nv<288;++nv)iq[nv]=8;var nv,Ece=new Gm(32);for(nv=0;nv<32;++nv)Ece[nv]=5;var nv,zsn=a8(iq,9,0),Usn=a8(iq,9,1),Gsn=a8(Ece,5,0),qsn=a8(Ece,5,1),P6e=e(function(r){for(var t=r[0],i=1;i<r.length;++i)r[i]>t&&(t=r[i]);return t},"max"),o8=e(function(r,t,i){var a=t/8|0;return(r[a]|r[a+1]<<8)>>(t&7)&i},"bits"),N6e=e(function(r,t){var i=t/8|0;return(r[i]|r[i+1]<<8|r[i+2]<<16)>>(t&7)},"bits16"),Ace=e(function(r){return(r+7)/8|0},"shft"),s8=e(function(r,t,i){return(t==null||t<0)&&(t=0),(i==null||i>r.length)&&(i=r.length),new Gm(r.subarray(t,i))},"slc");e_.FlateErrorCode={UnexpectedEOF:0,InvalidBlockType:1,InvalidLengthLiteral:2,InvalidDistance:3,StreamFinished:4,NoStreamHandler:5,InvalidHeader:6,NoCallback:7,InvalidUTF8:8,ExtraFieldTooLong:9,InvalidDate:10,FilenameTooLong:11,StreamFinishing:12,InvalidZipData:13,UnknownCompressionMethod:14};var Hsn=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],Up=e(function(r,t,i){var a=new Error(t||Hsn[r]);if(a.code=r,Error.captureStackTrace&&Error.captureStackTrace(a,Up),!i)throw a;return a},"err"),Rbe=e(function(r,t,i,a){var c=r.length,d=a?a.length:0;if(!c||t.f&&!t.l)return i||new Gm(0);var f=!i,g=f||t.i!=2,v=t.i;f&&(i=new Gm(c*3));var S=e(function(ct){var Lt=i.length;if(ct>Lt){var jt=new Gm(Math.max(Lt*2,ct));jt.set(i),i=jt}},"cbuf"),E=t.f||0,A=t.p||0,C=t.b||0,L=t.l,W=t.d,O=t.m,w=t.n,M=c*8;do{if(!L){E=o8(r,A,1);var J=o8(r,A+1,3);if(A+=3,J)if(J==1)L=Usn,W=qsn,O=9,w=5;else if(J==2){var be=o8(r,A,31)+257,he=o8(r,A+10,15)+4,_e=be+o8(r,A+5,31)+1;A+=14;for(var He=new Gm(_e),et=new Gm(19),ut=0;ut<he;++ut)et[Ibe[ut]]=o8(r,A+ut*3,7);A+=he*3;for(var ft=P6e(et),Wt=(1<<ft)-1,En=a8(et,ft,1),ut=0;ut<_e;){var fn=En[o8(r,A,Wt)];A+=fn&15;var Z=fn>>4;if(Z<16)He[ut++]=Z;else{var Gt=0,Kt=0;for(Z==16?(Kt=3+o8(r,A,3),A+=2,Gt=He[ut-1]):Z==17?(Kt=3+o8(r,A,7),A+=3):Z==18&&(Kt=11+o8(r,A,127),A+=7);Kt--;)He[ut++]=Gt}}var wt=He.subarray(0,be),Xt=He.subarray(be);O=P6e(wt),w=P6e(Xt),L=a8(wt,O,1),W=a8(Xt,w,1)}else Up(1);else{var Z=Ace(A)+4,Q=r[Z-4]|r[Z-3]<<8,me=Z+Q;if(me>c){v&&Up(0);break}g&&S(C+Q),i.set(r.subarray(Z,me),C),t.b=C+=Q,t.p=A=me*8,t.f=E;continue}if(A>M){v&&Up(0);break}}g&&S(C+131072);for(var yt=(1<<O)-1,Nn=(1<<w)-1,kn=A;;kn=A){var Gt=L[N6e(r,A)&yt],an=Gt>>4;if(A+=Gt&15,A>M){v&&Up(0);break}if(Gt||Up(2),an<256)i[C++]=an;else if(an==256){kn=A,L=null;break}else{var Mn=an-254;if(an>264){var ut=an-257,ir=Tce[ut];Mn=o8(r,A,(1<<ir)-1)+fmt[ut],A+=ir}var Zt=W[N6e(r,A)&Nn],Bt=Zt>>4;Zt||Up(3),A+=Zt&15;var Xt=Vsn[Bt];if(Bt>3){var ir=Dce[Bt];Xt+=N6e(r,A)&(1<<ir)-1,A+=ir}if(A>M){v&&Up(0);break}g&&S(C+131072);var ht=C+Mn;if(C<Xt){var de=d-Xt,At=Math.min(Xt,ht);for(de+C<0&&Up(3);C<At;++C)i[C]=a[de+C]}for(;C<ht;++C)i[C]=i[C-Xt]}}t.l=L,t.p=kn,t.b=C,t.f=E,L&&(E=1,t.m=O,t.d=W,t.n=w)}while(!E);return C!=i.length&&f?s8(i,0,C):i.subarray(0,C)},"inflt"),Bj=e(function(r,t,i){i<<=t&7;var a=t/8|0;r[a]|=i,r[a+1]|=i>>8},"wbits"),bce=e(function(r,t,i){i<<=t&7;var a=t/8|0;r[a]|=i,r[a+1]|=i>>8,r[a+2]|=i>>16},"wbits16"),R6e=e(function(r,t){for(var i=[],a=0;a<r.length;++a)r[a]&&i.push({s:a,f:r[a]});var c=i.length,d=i.slice();if(!c)return{t:r$,l:0};if(c==1){var f=new Gm(i[0].s+1);return f[i[0].s]=1,{t:f,l:1}}i.sort(function(me,be){return me.f-be.f}),i.push({s:-1,f:25001});var g=i[0],v=i[1],S=0,E=1,A=2;for(i[0]={s:-1,f:g.f+v.f,l:g,r:v};E!=c-1;)g=i[i[S].f<i[A].f?S++:A++],v=i[S!=E&&i[S].f<i[A].f?S++:A++],i[E++]={s:-1,f:g.f+v.f,l:g,r:v};for(var C=d[0].s,a=1;a<c;++a)d[a].s>C&&(C=d[a].s);var L=new MN(C+1),W=M6e(i[E-1],L,0);if(W>t){var a=0,O=0,w=W-t,M=1<<w;for(d.sort(function(be,he){return L[he.s]-L[be.s]||be.f-he.f});a<c;++a){var J=d[a].s;if(L[J]>t)O+=M-(1<<W-L[J]),L[J]=t;else break}for(O>>=w;O>0;){var Z=d[a].s;L[Z]<t?O-=1<<t-L[Z]++-1:++a}for(;a>=0&&O;--a){var Q=d[a].s;L[Q]==t&&(--L[Q],++O)}W=t}return{t:new Gm(L),l:W}},"hTree"),M6e=e(function(r,t,i){return r.s==-1?Math.max(M6e(r.l,t,i+1),M6e(r.r,t,i+1)):t[r.s]=i},"ln"),smt=e(function(r){for(var t=r.length;t&&!r[--t];);for(var i=new MN(++t),a=0,c=r[0],d=1,f=e(function(v){i[a++]=v},"w"),g=1;g<=t;++g)if(r[g]==c&&g!=t)++d;else{if(!c&&d>2){for(;d>138;d-=138)f(32754);d>2&&(f(d>10?d-11<<5|28690:d-3<<5|12305),d=0)}else if(d>3){for(f(c),--d;d>6;d-=6)f(8304);d>2&&(f(d-3<<5|8208),d=0)}for(;d--;)f(c);d=1,c=r[g]}return{c:i.subarray(0,a),n:t}},"lc"),Sce=e(function(r,t){for(var i=0,a=0;a<t.length;++a)i+=r[a]*t[a];return i},"clen"),_mt=e(function(r,t,i){var a=i.length,c=Ace(t+2);r[c]=a&255,r[c+1]=a>>8,r[c+2]=r[c]^255,r[c+3]=r[c+1]^255;for(var d=0;d<a;++d)r[c+d+4]=i[d];return(c+4+a)*8},"wfblk"),lmt=e(function(r,t,i,a,c,d,f,g,v,S,E){Bj(t,E++,i),++c[256];for(var A=R6e(c,15),C=A.t,L=A.l,W=R6e(d,15),O=W.t,w=W.l,M=smt(C),J=M.c,Z=M.n,Q=smt(O),me=Q.c,be=Q.n,he=new MN(19),_e=0;_e<J.length;++_e)++he[J[_e]&31];for(var _e=0;_e<me.length;++_e)++he[me[_e]&31];for(var He=R6e(he,7),et=He.t,ut=He.l,ft=19;ft>4&&!et[Ibe[ft-1]];--ft);var Wt=S+5<<3,En=Sce(c,iq)+Sce(d,Ece)+f,fn=Sce(c,C)+Sce(d,O)+f+14+3*ft+Sce(he,et)+2*he[16]+3*he[17]+7*he[18];if(v>=0&&Wt<=En&&Wt<=fn)return _mt(t,E,r.subarray(v,v+S));var Gt,Kt,wt,Xt;if(Bj(t,E,1+(fn<En)),E+=2,fn<En){Gt=a8(C,L,0),Kt=C,wt=a8(O,w,0),Xt=O;var yt=a8(et,ut,0);Bj(t,E,Z-257),Bj(t,E+5,be-1),Bj(t,E+10,ft-4),E+=14;for(var _e=0;_e<ft;++_e)Bj(t,E+3*_e,et[Ibe[_e]]);E+=3*ft;for(var Nn=[J,me],kn=0;kn<2;++kn)for(var an=Nn[kn],_e=0;_e<an.length;++_e){var Mn=an[_e]&31;Bj(t,E,yt[Mn]),E+=et[Mn],Mn>15&&(Bj(t,E,an[_e]>>5&127),E+=an[_e]>>12)}}else Gt=zsn,Kt=iq,wt=Gsn,Xt=Ece;for(var _e=0;_e<g;++_e){var ir=a[_e];if(ir>255){var Mn=ir>>18&31;bce(t,E,Gt[Mn+257]),E+=Kt[Mn+257],Mn>7&&(Bj(t,E,ir>>23&31),E+=Tce[Mn]);var Zt=ir&31;bce(t,E,wt[Zt]),E+=Xt[Zt],Zt>3&&(bce(t,E,ir>>5&8191),E+=Dce[Zt])}else bce(t,E,Gt[ir]),E+=Kt[ir]}return bce(t,E,Gt[256]),E+Kt[256]},"wblk"),Ksn=new Nbe([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),r$=new Gm(0),Jsn=e(function(r,t,i,a,c,d){var f=d.z||r.length,g=new Gm(a+f+5*(1+Math.ceil(f/7e3))+c),v=g.subarray(a,g.length-c),S=d.l,E=(d.r||0)&7;if(t){E&&(v[0]=d.r>>3);for(var A=Ksn[t-1],C=A>>13,L=A&8191,W=(1<<i)-1,O=d.p||new MN(32768),w=d.h||new MN(W+1),M=Math.ceil(i/3),J=2*M,Z=e(function(wn){return(r[wn]^r[wn+1]<<M^r[wn+2]<<J)&W},"hsh"),Q=new Nbe(25e3),me=new MN(288),be=new MN(32),he=0,_e=0,He=d.i||0,et=0,ut=d.w||0,ft=0;He+2<f;++He){var Wt=Z(He),En=He&32767,fn=w[Wt];if(O[En]=fn,w[Wt]=En,ut<=He){var Gt=f-He;if((he>7e3||et>24576)&&(Gt>423||!S)){E=lmt(r,v,0,Q,me,be,_e,et,ft,He-ft,E),et=he=_e=0,ft=He;for(var Kt=0;Kt<286;++Kt)me[Kt]=0;for(var Kt=0;Kt<30;++Kt)be[Kt]=0}var wt=2,Xt=0,yt=L,Nn=En-fn&32767;if(Gt>2&&Wt==Z(He-Nn))for(var kn=Math.min(C,Gt)-1,an=Math.min(32767,He),Mn=Math.min(258,Gt);Nn<=an&&--yt&&En!=fn;){if(r[He+wt]==r[He+wt-Nn]){for(var ir=0;ir<Mn&&r[He+ir]==r[He+ir-Nn];++ir);if(ir>wt){if(wt=ir,Xt=Nn,ir>kn)break;for(var Zt=Math.min(Nn,ir-2),Bt=0,Kt=0;Kt<Zt;++Kt){var ht=He-Nn+Kt&32767,de=O[ht],At=ht-de&32767;At>Bt&&(Bt=At,fn=ht)}}}En=fn,fn=O[En],Nn+=En-fn&32767}if(Xt){Q[et++]=268435456|L6e[wt]<<18|amt[Xt];var ct=L6e[wt]&31,Lt=amt[Xt]&31;_e+=Tce[ct]+Dce[Lt],++me[257+ct],++be[Lt],ut=He+wt,++he}else Q[et++]=r[He],++me[r[He]]}}for(He=Math.max(He,ut);He<f;++He)Q[et++]=r[He],++me[r[He]];E=lmt(r,v,S,Q,me,be,_e,et,ft,He-ft,E),S||(d.r=E&7|v[E/8|0]<<3,E-=7,d.h=w,d.p=O,d.i=He,d.w=ut)}else{for(var He=d.w||0;He<f+S;He+=65535){var jt=He+65535;jt>=f&&(v[E/8|0]=S,jt=f),E=_mt(v,E+1,r.subarray(He,jt))}d.i=f}return s8(g,0,a+Ace(E)+c)},"dflt"),Xsn=function(){for(var r=new Int32Array(256),t=0;t<256;++t){for(var i=t,a=9;--a;)i=(i&1&&-306674912)^i>>>1;r[t]=i}return r}(),Cce=e(function(){var r=-1;return{p:e(function(t){for(var i=r,a=0;a<t.length;++a)i=Xsn[i&255^t[a]]^i>>>8;r=i},"p"),d:e(function(){return~r},"d")}},"crc"),z6e=e(function(){var r=1,t=0;return{p:e(function(i){for(var a=r,c=t,d=i.length|0,f=0;f!=d;){for(var g=Math.min(f+2655,d);f<g;++f)c+=a+=i[f];a=(a&65535)+15*(a>>16),c=(c&65535)+15*(c>>16)}r=a,t=c},"p"),d:e(function(){return r%=65521,t%=65521,(r&255)<<24|(r&65280)<<8|(t&255)<<8|t>>8},"d")}},"adler"),Ute=e(function(r,t,i,a,c){if(!c&&(c={l:1},t.dictionary)){var d=t.dictionary.subarray(-32768),f=new Gm(d.length+r.length);f.set(d),f.set(r,d.length),r=f,c.w=d.length}return Jsn(r,t.level==null?6:t.level,t.mem==null?c.l?Math.ceil(Math.max(8,Math.min(13,Math.log(r.length)))*1.5):20:12+t.mem,i,a,c)},"dopt"),Lbe=e(function(r,t){var i={};for(var a in r)i[a]=r[a];for(var a in t)i[a]=t[a];return i},"mrg"),ksn=e(function(r,t,i){for(var a=r(),c=r.toString(),d=c.slice(c.indexOf("[")+1,c.lastIndexOf("]")).replace(/\s+/g,"").split(","),f=0;f<a.length;++f){var g=a[f],v=d[f];if(typeof g=="function"){t+=";"+v+"=";var S=g.toString();if(g.prototype)if(S.indexOf("[native code]")!=-1){var E=S.indexOf(" ",8)+1;t+=S.slice(E,S.indexOf("(",E))}else{t+=S;for(var A in g.prototype)t+=";"+v+".prototype."+A+"="+g.prototype[A].toString()}else t+=S}else i[v]=g}return t},"wcln"),w6e=[],DDr=e(function(r){var t=[];for(var i in r)r[i].buffer&&t.push((r[i]=new r[i].constructor(r[i])).buffer);return t},"cbfs"),$sn=e(function(r,t,i,a){if(!w6e[i]){for(var c="",d={},f=r.length-1,g=0;g<f;++g)c=ksn(r[g],c,d);w6e[i]={c:ksn(r[f],c,d),e:d}}var v=Lbe({},w6e[i].e);return(0,Fsn.default)(w6e[i].c+";onmessage=function(e){for(var k in e.data)self[k]=e.data[k];onmessage="+t.toString()+"}",i,v,DDr(v),a)},"wrkr"),Ice=e(function(){return[Gm,MN,Nbe,Tce,Dce,Ibe,fmt,Vsn,Usn,qsn,wbe,Hsn,a8,P6e,o8,N6e,Ace,s8,Up,Rbe,Rce,a$,mmt]},"bInflt"),wce=e(function(){return[Gm,MN,Nbe,Tce,Dce,Ibe,L6e,amt,zsn,iq,Gsn,Ece,wbe,Ksn,r$,a8,Bj,bce,R6e,M6e,smt,Sce,_mt,lmt,Ace,s8,Jsn,Ute,Mbe,a$]},"bDflt"),Ysn=e(function(){return[hmt,ymt,tv,Cce,Xsn]},"gze"),Qsn=e(function(){return[gmt,tln]},"guze"),Zsn=e(function(){return[vmt,tv,z6e]},"zle"),eln=e(function(){return[bmt]},"zule"),a$=e(function(r){return postMessage(r,[r.buffer])},"pbf"),mmt=e(function(r){return r&&{out:r.size&&new Gm(r.size),dictionary:r.dictionary}},"gopt"),Pce=e(function(r,t,i,a,c,d){var f=$sn(i,a,c,function(g,v){f.terminate(),d(g,v)});return f.postMessage([r,t],t.consume?[r.buffer]:[]),function(){f.terminate()}},"cbify"),c8=e(function(r){return r.ondata=function(t,i){return postMessage([t,i],[t.buffer])},function(t){t.data.length?(r.push(t.data[0],t.data[1]),postMessage([t.data[0].length])):r.flush()}},"astrm"),Nce=e(function(r,t,i,a,c,d,f){var g,v=$sn(r,a,c,function(S,E){S?(v.terminate(),t.ondata.call(t,S)):Array.isArray(E)?E.length==1?(t.queuedSize-=E[0],t.ondrain&&t.ondrain(E[0])):(E[1]&&v.terminate(),t.ondata.call(t,S,E[0],E[1])):f(E)});v.postMessage(i),t.queuedSize=0,t.push=function(S,E){t.ondata||Up(5),g&&t.ondata(Up(4,0,1),null,!!E),t.queuedSize+=S.length,v.postMessage([S,g=E],[S.buffer])},t.terminate=function(){v.terminate()},d&&(t.flush=function(){v.postMessage([])})},"astrmify"),LN=e(function(r,t){return r[t]|r[t+1]<<8},"b2"),TT=e(function(r,t){return(r[t]|r[t+1]<<8|r[t+2]<<16|r[t+3]<<24)>>>0},"b4"),omt=e(function(r,t){return TT(r,t)+TT(r,t+4)*4294967296},"b8"),tv=e(function(r,t,i){for(;i;++t)r[t]=i,i>>>=8},"wbytes"),hmt=e(function(r,t){var i=t.filename;if(r[0]=31,r[1]=139,r[2]=8,r[8]=t.level<2?4:t.level==9?2:0,r[9]=3,t.mtime!=0&&tv(r,4,Math.floor(new Date(t.mtime||Date.now())/1e3)),i){r[3]=8;for(var a=0;a<=i.length;++a)r[a+10]=i.charCodeAt(a)}},"gzh"),gmt=e(function(r){(r[0]!=31||r[1]!=139||r[2]!=8)&&Up(6,"invalid gzip data");var t=r[3],i=10;t&4&&(i+=(r[10]|r[11]<<8)+2);for(var a=(t>>3&1)+(t>>4&1);a>0;a-=!r[i++]);return i+(t&2)},"gzs"),tln=e(function(r){var t=r.length;return(r[t-4]|r[t-3]<<8|r[t-2]<<16|r[t-1]<<24)>>>0},"gzl"),ymt=e(function(r){return 10+(r.filename?r.filename.length+1:0)},"gzhl"),vmt=e(function(r,t){var i=t.level,a=i==0?0:i<6?1:i==9?3:2;if(r[0]=120,r[1]=a<<6|(t.dictionary&&32),r[1]|=31-(r[0]<<8|r[1])%31,t.dictionary){var c=z6e();c.p(t.dictionary),tv(r,2,c.d())}},"zlh"),bmt=e(function(r,t){return((r[0]&15)!=8||r[0]>>4>7||(r[0]<<8|r[1])%31)&&Up(6,"invalid zlib data"),(r[1]>>5&1)==+!t&&Up(6,"invalid zlib data: "+(r[1]&32?"need":"unexpected")+" dictionary"),(r[1]>>3&4)+2},"zls");function Gte(r,t){return typeof r=="function"&&(t=r,r={}),this.ondata=t,r}e(Gte,"StrmOpt");var l8=function(){function r(t,i){if(typeof t=="function"&&(i=t,t={}),this.ondata=i,this.o=t||{},this.s={l:0,i:32768,w:32768,z:32768},this.b=new Gm(98304),this.o.dictionary){var a=this.o.dictionary.subarray(-32768);this.b.set(a,32768-a.length),this.s.i=32768-a.length}}return e(r,"Deflate"),r.prototype.p=function(t,i){this.ondata(Ute(t,this.o,0,0,this.s),i)},r.prototype.push=function(t,i){this.ondata||Up(5),this.s.l&&Up(4);var a=t.length+this.s.z;if(a>this.b.length){if(a>2*this.b.length-32768){var c=new Gm(a&-32768);c.set(this.b.subarray(0,this.s.z)),this.b=c}var d=this.b.length-this.s.z;this.b.set(t.subarray(0,d),this.s.z),this.s.z=this.b.length,this.p(this.b,!1),this.b.set(this.b.subarray(-32768)),this.b.set(t.subarray(d),32768),this.s.z=t.length-d+32768,this.s.i=32766,this.s.w=32768}else this.b.set(t,this.s.z),this.s.z+=t.length;this.s.l=i&1,(this.s.z>this.s.w+8191||i)&&(this.p(this.b,i||!1),this.s.w=this.s.i,this.s.i-=2)},r.prototype.flush=function(){this.ondata||Up(5),this.s.l&&Up(4),this.p(this.b,!1),this.s.w=this.s.i,this.s.i-=2},r}();e_.Deflate=l8;var nln=function(){function r(t,i){Nce([wce,function(){return[c8,l8]}],this,Gte.call(this,t,i),function(a){var c=new l8(a.data);onmessage=c8(c)},6,1)}return e(r,"AsyncDeflate"),r}();e_.AsyncDeflate=nln;function rln(r,t,i){return i||(i=t,t={}),typeof i!="function"&&Up(7),Pce(r,t,[wce],function(a){return a$(Mbe(a.data[0],a.data[1]))},0,i)}e(rln,"deflate");e_.deflate=rln;function Mbe(r,t){return Ute(r,t||{},0,0)}e(Mbe,"deflateSync");e_.deflateSync=Mbe;var iM=function(){function r(t,i){typeof t=="function"&&(i=t,t={}),this.ondata=i;var a=t&&t.dictionary&&t.dictionary.subarray(-32768);this.s={i:0,b:a?a.length:0},this.o=new Gm(32768),this.p=new Gm(0),a&&this.o.set(a)}return e(r,"Inflate"),r.prototype.e=function(t){if(this.ondata||Up(5),this.d&&Up(4),!this.p.length)this.p=t;else if(t.length){var i=new Gm(this.p.length+t.length);i.set(this.p),i.set(t,this.p.length),this.p=i}},r.prototype.c=function(t){this.s.i=+(this.d=t||!1);var i=this.s.b,a=Rbe(this.p,this.s,this.o);this.ondata(s8(a,i,this.s.b),this.d),this.o=s8(a,this.s.b-32768),this.s.b=this.o.length,this.p=s8(this.p,this.s.p/8|0),this.s.p&=7},r.prototype.push=function(t,i){this.e(t),this.c(i)},r}();e_.Inflate=iM;var Smt=function(){function r(t,i){Nce([Ice,function(){return[c8,iM]}],this,Gte.call(this,t,i),function(a){var c=new iM(a.data);onmessage=c8(c)},7,0)}return e(r,"AsyncInflate"),r}();e_.AsyncInflate=Smt;function Emt(r,t,i){return i||(i=t,t={}),typeof i!="function"&&Up(7),Pce(r,t,[Ice],function(a){return a$(Rce(a.data[0],mmt(a.data[1])))},1,i)}e(Emt,"inflate");e_.inflate=Emt;function Rce(r,t){return Rbe(r,{i:2},t&&t.out,t&&t.dictionary)}e(Rce,"inflateSync");e_.inflateSync=Rce;var k6e=function(){function r(t,i){this.c=Cce(),this.l=0,this.v=1,l8.call(this,t,i)}return e(r,"Gzip"),r.prototype.push=function(t,i){this.c.p(t),this.l+=t.length,l8.prototype.push.call(this,t,i)},r.prototype.p=function(t,i){var a=Ute(t,this.o,this.v&&ymt(this.o),i&&8,this.s);this.v&&(hmt(a,this.o),this.v=0),i&&(tv(a,a.length-8,this.c.d()),tv(a,a.length-4,this.l)),this.ondata(a,i)},r.prototype.flush=function(){l8.prototype.flush.call(this)},r}();e_.Gzip=k6e;e_.Compress=k6e;var iln=function(){function r(t,i){Nce([wce,Ysn,function(){return[c8,l8,k6e]}],this,Gte.call(this,t,i),function(a){var c=new k6e(a.data);onmessage=c8(c)},8,1)}return e(r,"AsyncGzip"),r}();e_.AsyncGzip=iln;e_.AsyncCompress=iln;function oln(r,t,i){return i||(i=t,t={}),typeof i!="function"&&Up(7),Pce(r,t,[wce,Ysn,function(){return[O6e]}],function(a){return a$(O6e(a.data[0],a.data[1]))},2,i)}e(oln,"gzip");e_.gzip=oln;e_.compress=oln;function O6e(r,t){t||(t={});var i=Cce(),a=r.length;i.p(r);var c=Ute(r,t,ymt(t),8),d=c.length;return hmt(c,t),tv(c,d-8,i.d()),tv(c,d-4,a),c}e(O6e,"gzipSync");e_.gzipSync=O6e;e_.compressSync=O6e;var F6e=function(){function r(t,i){this.v=1,this.r=0,iM.call(this,t,i)}return e(r,"Gunzip"),r.prototype.push=function(t,i){if(iM.prototype.e.call(this,t),this.r+=t.length,this.v){var a=this.p.subarray(this.v-1),c=a.length>3?gmt(a):4;if(c>a.length){if(!i)return}else this.v>1&&this.onmember&&this.onmember(this.r-a.length);this.p=a.subarray(c),this.v=0}iM.prototype.c.call(this,i),this.s.f&&!this.s.l&&!i&&(this.v=Ace(this.s.p)+9,this.s={i:0},this.o=new Gm(0),this.push(new Gm(0),i))},r}();e_.Gunzip=F6e;var aln=function(){function r(t,i){var a=this;Nce([Ice,Qsn,function(){return[c8,iM,F6e]}],this,Gte.call(this,t,i),function(c){var d=new F6e(c.data);d.onmember=function(f){return postMessage(f)},onmessage=c8(d)},9,0,function(c){return a.onmember&&a.onmember(c)})}return e(r,"AsyncGunzip"),r}();e_.AsyncGunzip=aln;function sln(r,t,i){return i||(i=t,t={}),typeof i!="function"&&Up(7),Pce(r,t,[Ice,Qsn,function(){return[B6e]}],function(a){return a$(B6e(a.data[0],a.data[1]))},3,i)}e(sln,"gunzip");e_.gunzip=sln;function B6e(r,t){var i=gmt(r);return i+8>r.length&&Up(6,"invalid gzip data"),Rbe(r.subarray(i,-8),{i:2},t&&t.out||new Gm(tln(r)),t&&t.dictionary)}e(B6e,"gunzipSync");e_.gunzipSync=B6e;var cmt=function(){function r(t,i){this.c=z6e(),this.v=1,l8.call(this,t,i)}return e(r,"Zlib"),r.prototype.push=function(t,i){this.c.p(t),l8.prototype.push.call(this,t,i)},r.prototype.p=function(t,i){var a=Ute(t,this.o,this.v&&(this.o.dictionary?6:2),i&&4,this.s);this.v&&(vmt(a,this.o),this.v=0),i&&tv(a,a.length-4,this.c.d()),this.ondata(a,i)},r.prototype.flush=function(){l8.prototype.flush.call(this)},r}();e_.Zlib=cmt;var ADr=function(){function r(t,i){Nce([wce,Zsn,function(){return[c8,l8,cmt]}],this,Gte.call(this,t,i),function(a){var c=new cmt(a.data);onmessage=c8(c)},10,1)}return e(r,"AsyncZlib"),r}();e_.AsyncZlib=ADr;function CDr(r,t,i){return i||(i=t,t={}),typeof i!="function"&&Up(7),Pce(r,t,[wce,Zsn,function(){return[umt]}],function(a){return a$(umt(a.data[0],a.data[1]))},4,i)}e(CDr,"zlib");e_.zlib=CDr;function umt(r,t){t||(t={});var i=z6e();i.p(r);var a=Ute(r,t,t.dictionary?6:2,4);return vmt(a,t),tv(a,a.length-4,i.d()),a}e(umt,"zlibSync");e_.zlibSync=umt;var W6e=function(){function r(t,i){iM.call(this,t,i),this.v=t&&t.dictionary?2:1}return e(r,"Unzlib"),r.prototype.push=function(t,i){if(iM.prototype.e.call(this,t),this.v){if(this.p.length<6&&!i)return;this.p=this.p.subarray(bmt(this.p,this.v-1)),this.v=0}i&&(this.p.length<4&&Up(6,"invalid zlib data"),this.p=this.p.subarray(0,-4)),iM.prototype.c.call(this,i)},r}();e_.Unzlib=W6e;var lln=function(){function r(t,i){Nce([Ice,eln,function(){return[c8,iM,W6e]}],this,Gte.call(this,t,i),function(a){var c=new W6e(a.data);onmessage=c8(c)},11,0)}return e(r,"AsyncUnzlib"),r}();e_.AsyncUnzlib=lln;function cln(r,t,i){return i||(i=t,t={}),typeof i!="function"&&Up(7),Pce(r,t,[Ice,eln,function(){return[j6e]}],function(a){return a$(j6e(a.data[0],mmt(a.data[1])))},5,i)}e(cln,"unzlib");e_.unzlib=cln;function j6e(r,t){return Rbe(r.subarray(bmt(r,t&&t.dictionary),-4),{i:2},t&&t.out,t&&t.dictionary)}e(j6e,"unzlibSync");e_.unzlibSync=j6e;var dmt=function(){function r(t,i){this.o=Gte.call(this,t,i)||{},this.G=F6e,this.I=iM,this.Z=W6e}return e(r,"Decompress"),r.prototype.i=function(){var t=this;this.s.ondata=function(i,a){t.ondata(i,a)}},r.prototype.push=function(t,i){if(this.ondata||Up(5),this.s)this.s.push(t,i);else{if(this.p&&this.p.length){var a=new Gm(this.p.length+t.length);a.set(this.p),a.set(t,this.p.length)}else this.p=t;this.p.length>2&&(this.s=this.p[0]==31&&this.p[1]==139&&this.p[2]==8?new this.G(this.o):(this.p[0]&15)!=8||this.p[0]>>4>7||(this.p[0]<<8|this.p[1])%31?new this.I(this.o):new this.Z(this.o),this.i(),this.s.push(this.p,i),this.p=null)}},r}();e_.Decompress=dmt;var IDr=function(){function r(t,i){dmt.call(this,t,i),this.queuedSize=0,this.G=aln,this.I=Smt,this.Z=lln}return e(r,"AsyncDecompress"),r.prototype.i=function(){var t=this;this.s.ondata=function(i,a,c){t.ondata(i,a,c)},this.s.ondrain=function(i){t.queuedSize-=i,t.ondrain&&t.ondrain(i)}},r.prototype.push=function(t,i){this.queuedSize+=t.length,dmt.prototype.push.call(this,t,i)},r}();e_.AsyncDecompress=IDr;function wDr(r,t,i){return i||(i=t,t={}),typeof i!="function"&&Up(7),r[0]==31&&r[1]==139&&r[2]==8?sln(r,t,i):(r[0]&15)!=8||r[0]>>4>7||(r[0]<<8|r[1])%31?Emt(r,t,i):cln(r,t,i)}e(wDr,"decompress");e_.decompress=wDr;function PDr(r,t){return r[0]==31&&r[1]==139&&r[2]==8?B6e(r,t):(r[0]&15)!=8||r[0]>>4>7||(r[0]<<8|r[1])%31?Rce(r,t):j6e(r,t)}e(PDr,"decompressSync");e_.decompressSync=PDr;var xmt=e(function(r,t,i,a){for(var c in r){var d=r[c],f=t+c,g=a;Array.isArray(d)&&(g=Lbe(a,d[1]),d=d[0]),d instanceof Gm?i[f]=[d,g]:(i[f+="/"]=[new Gm(0),g],xmt(d,f,i,a))}},"fltn"),Osn=typeof TextEncoder<"u"&&new TextEncoder,pmt=typeof TextDecoder<"u"&&new TextDecoder,uln=0;try{pmt.decode(r$,{stream:!0}),uln=1}catch{}var dln=e(function(r){for(var t="",i=0;;){var a=r[i++],c=(a>127)+(a>223)+(a>239);if(i+c>r.length)return{s:t,r:s8(r,i-1)};c?c==3?(a=((a&15)<<18|(r[i++]&63)<<12|(r[i++]&63)<<6|r[i++]&63)-65536,t+=String.fromCharCode(55296|a>>10,56320|a&1023)):c&1?t+=String.fromCharCode((a&31)<<6|r[i++]&63):t+=String.fromCharCode((a&15)<<12|(r[i++]&63)<<6|r[i++]&63):t+=String.fromCharCode(a)}},"dutf8"),NDr=function(){function r(t){this.ondata=t,uln?this.t=new TextDecoder:this.p=r$}return e(r,"DecodeUTF8"),r.prototype.push=function(t,i){if(this.ondata||Up(5),i=!!i,this.t){this.ondata(this.t.decode(t,{stream:!0}),i),i&&(this.t.decode().length&&Up(8),this.t=null);return}this.p||Up(4);var a=new Gm(this.p.length+t.length);a.set(this.p),a.set(t,this.p.length);var c=dln(a),d=c.s,f=c.r;i?(f.length&&Up(8),this.p=null):this.p=f,this.ondata(d,i)},r}();e_.DecodeUTF8=NDr;var RDr=function(){function r(t){this.ondata=t}return e(r,"EncodeUTF8"),r.prototype.push=function(t,i){this.ondata||Up(5),this.d&&Up(4),this.ondata(o$(t),this.d=i||!1)},r}();e_.EncodeUTF8=RDr;function o$(r,t){if(t){for(var i=new Gm(r.length),a=0;a<r.length;++a)i[a]=r.charCodeAt(a);return i}if(Osn)return Osn.encode(r);for(var c=r.length,d=new Gm(r.length+(r.length>>1)),f=0,g=e(function(E){d[f++]=E},"w"),a=0;a<c;++a){if(f+5>d.length){var v=new Gm(f+8+(c-a<<1));v.set(d),d=v}var S=r.charCodeAt(a);S<128||t?g(S):S<2048?(g(192|S>>6),g(128|S&63)):S>55295&&S<57344?(S=65536+(S&1047552)|r.charCodeAt(++a)&1023,g(240|S>>18),g(128|S>>12&63),g(128|S>>6&63),g(128|S&63)):(g(224|S>>12),g(128|S>>6&63),g(128|S&63))}return s8(d,0,f)}e(o$,"strToU8");e_.strToU8=o$;function Tmt(r,t){if(t){for(var i="",a=0;a<r.length;a+=16384)i+=String.fromCharCode.apply(null,r.subarray(a,a+16384));return i}else{if(pmt)return pmt.decode(r);var c=dln(r),d=c.s,i=c.r;return i.length&&Up(8),d}}e(Tmt,"strFromU8");e_.strFromU8=Tmt;var pln=e(function(r){return r==1?3:r<6?2:r==9?1:0},"dbf"),fln=e(function(r,t){return t+30+LN(r,t+26)+LN(r,t+28)},"slzh"),_ln=e(function(r,t,i){var a=LN(r,t+28),c=Tmt(r.subarray(t+46,t+46+a),!(LN(r,t+8)&2048)),d=t+46+a,f=TT(r,t+20),g=i&&f==4294967295?mln(r,d):[f,TT(r,t+24),TT(r,t+42)],v=g[0],S=g[1],E=g[2];return[LN(r,t+10),v,S,c,d+LN(r,t+30)+LN(r,t+32),E]},"zh"),mln=e(function(r,t){for(;LN(r,t)!=1;t+=4+LN(r,t+2));return[omt(r,t+12),omt(r,t+4),omt(r,t+20)]},"z64e"),i$=e(function(r){var t=0;if(r)for(var i in r){var a=r[i].length;a>65535&&Up(9),t+=a+4}return t},"exfl"),xce=e(function(r,t,i,a,c,d,f,g){var v=a.length,S=i.extra,E=g&&g.length,A=i$(S);tv(r,t,f!=null?33639248:67324752),t+=4,f!=null&&(r[t++]=20,r[t++]=i.os),r[t]=20,t+=2,r[t++]=i.flag<<1|(d<0&&8),r[t++]=c&&8,r[t++]=i.compression&255,r[t++]=i.compression>>8;var C=new Date(i.mtime==null?Date.now():i.mtime),L=C.getFullYear()-1980;if((L<0||L>119)&&Up(10),tv(r,t,L<<25|C.getMonth()+1<<21|C.getDate()<<16|C.getHours()<<11|C.getMinutes()<<5|C.getSeconds()>>1),t+=4,d!=-1&&(tv(r,t,i.crc),tv(r,t+4,d<0?-d-2:d),tv(r,t+8,i.size)),tv(r,t+12,v),tv(r,t+14,A),t+=16,f!=null&&(tv(r,t,E),tv(r,t+6,i.attrs),tv(r,t+10,f),t+=14),r.set(a,t),t+=v,A)for(var W in S){var O=S[W],w=O.length;tv(r,t,+W),tv(r,t+2,w),r.set(O,t+4),t+=4+w}return E&&(r.set(g,t),t+=E),t},"wzh"),Dmt=e(function(r,t,i,a,c){tv(r,t,101010256),tv(r,t+8,i),tv(r,t+10,i),tv(r,t+12,a),tv(r,t+16,c)},"wzf"),Pbe=function(){function r(t){this.filename=t,this.c=Cce(),this.size=0,this.compression=0}return e(r,"ZipPassThrough"),r.prototype.process=function(t,i){this.ondata(null,t,i)},r.prototype.push=function(t,i){this.ondata||Up(5),this.c.p(t),this.size+=t.length,i&&(this.crc=this.c.d()),this.process(t,i||!1)},r}();e_.ZipPassThrough=Pbe;var LDr=function(){function r(t,i){var a=this;i||(i={}),Pbe.call(this,t),this.d=new l8(i,function(c,d){a.ondata(null,c,d)}),this.compression=8,this.flag=pln(i.level)}return e(r,"ZipDeflate"),r.prototype.process=function(t,i){try{this.d.push(t,i)}catch(a){this.ondata(a,null,i)}},r.prototype.push=function(t,i){Pbe.prototype.push.call(this,t,i)},r}();e_.ZipDeflate=LDr;var MDr=function(){function r(t,i){var a=this;i||(i={}),Pbe.call(this,t),this.d=new nln(i,function(c,d,f){a.ondata(c,d,f)}),this.compression=8,this.flag=pln(i.level),this.terminate=this.d.terminate}return e(r,"AsyncZipDeflate"),r.prototype.process=function(t,i){this.d.push(t,i)},r.prototype.push=function(t,i){Pbe.prototype.push.call(this,t,i)},r}();e_.AsyncZipDeflate=MDr;var kDr=function(){function r(t){this.ondata=t,this.u=[],this.d=1}return e(r,"Zip"),r.prototype.add=function(t){var i=this;if(this.ondata||Up(5),this.d&2)this.ondata(Up(4+(this.d&1)*8,0,1),null,!1);else{var a=o$(t.filename),c=a.length,d=t.comment,f=d&&o$(d),g=c!=t.filename.length||f&&d.length!=f.length,v=c+i$(t.extra)+30;c>65535&&this.ondata(Up(11,0,1),null,!1);var S=new Gm(v);xce(S,0,t,a,g,-1);var E=[S],A=e(function(){for(var w=0,M=E;w<M.length;w++){var J=M[w];i.ondata(null,J,!1)}E=[]},"pAll_1"),C=this.d;this.d=0;var L=this.u.length,W=Lbe(t,{f:a,u:g,o:f,t:e(function(){t.terminate&&t.terminate()},"t"),r:e(function(){if(A(),C){var w=i.u[L+1];w?w.r():i.d=1}C=1},"r")}),O=0;t.ondata=function(w,M,J){if(w)i.ondata(w,M,J),i.terminate();else if(O+=M.length,E.push(M),J){var Z=new Gm(16);tv(Z,0,134695760),tv(Z,4,t.crc),tv(Z,8,O),tv(Z,12,t.size),E.push(Z),W.c=O,W.b=v+O+16,W.crc=t.crc,W.size=t.size,C&&W.r(),C=1}else C&&A()},this.u.push(W)}},r.prototype.end=function(){var t=this;if(this.d&2){this.ondata(Up(4+(this.d&1)*8,0,1),null,!0);return}this.d?this.e():this.u.push({r:e(function(){t.d&1&&(t.u.splice(-1,1),t.e())},"r"),t:e(function(){},"t")}),this.d=3},r.prototype.e=function(){for(var t=0,i=0,a=0,c=0,d=this.u;c<d.length;c++){var f=d[c];a+=46+f.f.length+i$(f.extra)+(f.o?f.o.length:0)}for(var g=new Gm(a+22),v=0,S=this.u;v<S.length;v++){var f=S[v];xce(g,t,f,f.f,f.u,-f.c-2,i,f.o),t+=46+f.f.length+i$(f.extra)+(f.o?f.o.length:0),i+=f.b}Dmt(g,t,this.u.length,a,i),this.ondata(null,g,!0),this.d=2},r.prototype.terminate=function(){for(var t=0,i=this.u;t<i.length;t++){var a=i[t];a.t()}this.d=2},r}();e_.Zip=kDr;function ODr(r,t,i){i||(i=t,t={}),typeof i!="function"&&Up(7);var a={};xmt(r,"",a,t);var c=Object.keys(a),d=c.length,f=0,g=0,v=d,S=new Array(d),E=[],A=e(function(){for(var w=0;w<E.length;++w)E[w]()},"tAll"),C=e(function(w,M){V6e(function(){i(w,M)})},"cbd");V6e(function(){C=i});var L=e(function(){var w=new Gm(g+22),M=f,J=g-f;g=0;for(var Z=0;Z<v;++Z){var Q=S[Z];try{var me=Q.c.length;xce(w,g,Q,Q.f,Q.u,me);var be=30+Q.f.length+i$(Q.extra),he=g+be;w.set(Q.c,he),xce(w,f,Q,Q.f,Q.u,me,g,Q.m),f+=16+be+(Q.m?Q.m.length:0),g=he+me}catch(_e){return C(_e,null)}}Dmt(w,f,S.length,J,M),C(null,w)},"cbf");d||L();for(var W=e(function(w){var M=c[w],J=a[M],Z=J[0],Q=J[1],me=Cce(),be=Z.length;me.p(Z);var he=o$(M),_e=he.length,He=Q.comment,et=He&&o$(He),ut=et&&et.length,ft=i$(Q.extra),Wt=Q.level==0?0:8,En=e(function(fn,Gt){if(fn)A(),C(fn,null);else{var Kt=Gt.length;S[w]=Lbe(Q,{size:be,crc:me.d(),c:Gt,f:he,m:et,u:_e!=M.length||et&&He.length!=ut,compression:Wt}),f+=30+_e+ft+Kt,g+=76+2*(_e+ft)+(ut||0)+Kt,--d||L()}},"cbl");if(_e>65535&&En(Up(11,0,1),null),!Wt)En(null,Z);else if(be<16e4)try{En(null,Mbe(Z,Q))}catch(fn){En(fn,null)}else E.push(rln(Z,Q,En))},"_loop_1"),O=0;O<v;++O)W(O);return A}e(ODr,"zip");e_.zip=ODr;function FDr(r,t){t||(t={});var i={},a=[];xmt(r,"",i,t);var c=0,d=0;for(var f in i){var g=i[f],v=g[0],S=g[1],E=S.level==0?0:8,A=o$(f),C=A.length,L=S.comment,W=L&&o$(L),O=W&&W.length,w=i$(S.extra);C>65535&&Up(11);var M=E?Mbe(v,S):v,J=M.length,Z=Cce();Z.p(v),a.push(Lbe(S,{size:v.length,crc:Z.d(),c:M,f:A,m:W,u:C!=f.length||W&&L.length!=O,o:c,compression:E})),c+=30+C+w+J,d+=76+2*(C+w)+(O||0)+J}for(var Q=new Gm(d+22),me=c,be=d-c,he=0;he<a.length;++he){var A=a[he];xce(Q,A.o,A,A.f,A.u,A.c.length);var _e=30+A.f.length+i$(A.extra);Q.set(A.c,A.o+_e),xce(Q,c,A,A.f,A.u,A.c.length,A.o,A.m),c+=16+_e+(A.m?A.m.length:0)}return Dmt(Q,c,a.length,be,me),Q}e(FDr,"zipSync");e_.zipSync=FDr;var hln=function(){function r(){}return e(r,"UnzipPassThrough"),r.prototype.push=function(t,i){this.ondata(null,t,i)},r.compression=0,r}();e_.UnzipPassThrough=hln;var BDr=function(){function r(){var t=this;this.i=new iM(function(i,a){t.ondata(null,i,a)})}return e(r,"UnzipInflate"),r.prototype.push=function(t,i){try{this.i.push(t,i)}catch(a){this.ondata(a,null,i)}},r.compression=8,r}();e_.UnzipInflate=BDr;var WDr=function(){function r(t,i){var a=this;i<32e4?this.i=new iM(function(c,d){a.ondata(null,c,d)}):(this.i=new Smt(function(c,d,f){a.ondata(c,d,f)}),this.terminate=this.i.terminate)}return e(r,"AsyncUnzipInflate"),r.prototype.push=function(t,i){this.i.terminate&&(t=s8(t,0)),this.i.push(t,i)},r.compression=8,r}();e_.AsyncUnzipInflate=WDr;var jDr=function(){function r(t){this.onfile=t,this.k=[],this.o={0:hln},this.p=r$}return e(r,"Unzip"),r.prototype.push=function(t,i){var a=this;if(this.onfile||Up(5),this.p||Up(4),this.c>0){var c=Math.min(this.c,t.length),d=t.subarray(0,c);if(this.c-=c,this.d?this.d.push(d,!this.c):this.k[0].push(d),t=t.subarray(c),t.length)return this.push(t,i)}else{var f=0,g=0,v=void 0,S=void 0;this.p.length?t.length?(S=new Gm(this.p.length+t.length),S.set(this.p),S.set(t,this.p.length)):S=this.p:S=t;for(var E=S.length,A=this.c,C=A&&this.d,L=e(function(){var M,J=TT(S,g);if(J==67324752){f=1,v=g,W.d=null,W.c=0;var Z=LN(S,g+6),Q=LN(S,g+8),me=Z&2048,be=Z&8,he=LN(S,g+26),_e=LN(S,g+28);if(E>g+30+he+_e){var He=[];W.k.unshift(He),f=2;var et=TT(S,g+18),ut=TT(S,g+22),ft=Tmt(S.subarray(g+30,g+=30+he),!me);et==4294967295?(M=be?[-2]:mln(S,g),et=M[0],ut=M[1]):be&&(et=-1),g+=_e,W.c=et;var Wt,En={name:ft,compression:Q,start:e(function(){if(En.ondata||Up(5),!et)En.ondata(null,r$,!0);else{var fn=a.o[Q];fn||En.ondata(Up(14,"unknown compression type "+Q,1),null,!1),Wt=et<0?new fn(ft):new fn(ft,et,ut),Wt.ondata=function(Xt,yt,Nn){En.ondata(Xt,yt,Nn)};for(var Gt=0,Kt=He;Gt<Kt.length;Gt++){var wt=Kt[Gt];Wt.push(wt,!1)}a.k[0]==He&&a.c?a.d=Wt:Wt.push(r$,!0)}},"start"),terminate:e(function(){Wt&&Wt.terminate&&Wt.terminate()},"terminate")};et>=0&&(En.size=et,En.originalSize=ut),W.onfile(En)}return"break"}else if(A){if(J==134695760)return v=g+=12+(A==-2&&8),f=3,W.c=0,"break";if(J==33639248)return v=g-=4,f=3,W.c=0,"break"}},"_loop_2"),W=this;g<E-4;++g){var O=L();if(O==="break")break}if(this.p=r$,A<0){var w=f?S.subarray(0,v-12-(A==-2&&8)-(TT(S,v-16)==134695760&&4)):S.subarray(0,g);C?C.push(w,!!f):this.k[+(f==2)].push(w)}if(f&2)return this.push(S.subarray(g),i);this.p=S.subarray(g)}i&&(this.c&&Up(13),this.p=null)},r.prototype.register=function(t){this.o[t.compression]=t},r}();e_.Unzip=jDr;var V6e=typeof queueMicrotask=="function"?queueMicrotask:typeof setTimeout=="function"?setTimeout:function(r){r()};function VDr(r,t,i){i||(i=t,t={}),typeof i!="function"&&Up(7);var a=[],c=e(function(){for(var w=0;w<a.length;++w)a[w]()},"tAll"),d={},f=e(function(w,M){V6e(function(){i(w,M)})},"cbd");V6e(function(){f=i});for(var g=r.length-22;TT(r,g)!=101010256;--g)if(!g||r.length-g>65558)return f(Up(13,0,1),null),c;var v=LN(r,g+8);if(v){var S=v,E=TT(r,g+16),A=E==4294967295||S==65535;if(A){var C=TT(r,g-12);A=TT(r,C)==101075792,A&&(S=v=TT(r,C+32),E=TT(r,C+48))}for(var L=t&&t.filter,W=e(function(w){var M=_ln(r,E,A),J=M[0],Z=M[1],Q=M[2],me=M[3],be=M[4],he=M[5],_e=fln(r,he);E=be;var He=e(function(ut,ft){ut?(c(),f(ut,null)):(ft&&(d[me]=ft),--v||f(null,d))},"cbl");if(!L||L({name:me,size:Z,originalSize:Q,compression:J}))if(!J)He(null,s8(r,_e,_e+Z));else if(J==8){var et=r.subarray(_e,_e+Z);if(Q<524288||Z>.8*Q)try{He(null,Rce(et,{out:new Gm(Q)}))}catch(ut){He(ut,null)}else a.push(Emt(et,{size:Q},He))}else He(Up(14,"unknown compression type "+J,1),null);else He(null,null)},"_loop_3"),O=0;O<S;++O)W(O)}else f(null,{});return c}e(VDr,"unzip");e_.unzip=VDr;function zDr(r,t){for(var i={},a=r.length-22;TT(r,a)!=101010256;--a)(!a||r.length-a>65558)&&Up(13);var c=LN(r,a+8);if(!c)return{};var d=TT(r,a+16),f=d==4294967295||c==65535;if(f){var g=TT(r,a-12);f=TT(r,g)==101075792,f&&(c=TT(r,g+32),d=TT(r,g+48))}for(var v=t&&t.filter,S=0;S<c;++S){var E=_ln(r,d,f),A=E[0],C=E[1],L=E[2],W=E[3],O=E[4],w=E[5],M=fln(r,w);d=O,(!v||v({name:W,size:C,originalSize:L,compression:A}))&&(A?A==8?i[W]=Rce(r.subarray(M,M+C),{out:new Gm(L)}):Up(14,"unknown compression type "+A):i[W]=s8(r,M,M+C))}return i}e(zDr,"unzipSync");e_.unzipSync=zDr});var yln=Je(nP=>{"use strict";V();G();U();z();Object.defineProperty(nP,"__esModule",{value:!0});nP.unzipSync=nP.zipSync=nP.gunzipSync=nP.gunzip=nP.gzipSync=nP.zipDirectory=nP.unzipAppPackage=void 0;var s$=gln();Object.defineProperty(nP,"unzipSync",{enumerable:!0,get:e(function(){return s$.unzipSync},"get")});Object.defineProperty(nP,"zipSync",{enumerable:!0,get:e(function(){return s$.zipSync},"get")});Object.defineProperty(nP,"gzipSync",{enumerable:!0,get:e(function(){return s$.gzipSync},"get")});Object.defineProperty(nP,"gunzipSync",{enumerable:!0,get:e(function(){return s$.gunzipSync},"get")});var Cmt=cbe(),Imt=vj(),Amt="status.json",UDr=e(async(r,t,i)=>{let a=new Uint8Array(r.readFileSync(t)),c=(0,s$.unzipSync)(a);if(c["package_inventory.csv"]&&delete c["package_inventory.csv"],Amt in c){let f=JSON.parse(xe.from(c[Amt]).toString("utf8"));if(f.status==="error")throw new Error("Application download failed with error, "+f.message);delete c[Amt]}return{files:Object.entries(c).map(([f,g])=>{let v=Imt.path.join(i,f),S=Imt.path.dirname(v);return Cmt.FileSystem.ensureDirSync(r,S),r.writeFileSync(v,g),v})}},"unzipAppPackage");nP.unzipAppPackage=UDr;var GDr=e(async(r,t,i)=>new Promise((a,c)=>{try{let d=new s$.Zip,f=Cmt.FileSystem.createWriteStream(r,i);d.ondata=(S,E,A)=>{S?(f.destroy(),c(S)):(f.write(E),A&&f.end())},f.on("finish",()=>{a(i)}),f.on("error",S=>{c(S)});let v=new Cmt.TsMorphFileSystemWrapper(r).globSync(["**"],{cwd:t});v.length===0&&c(`No files found in ${t} directory to create zip.`);for(let S of v){let E=Imt.path.normalize(S),A=r.readFileSync(E),C=new s$.ZipDeflate(E.replace(t,""),{level:6});d.add(C),C.push(A,!0)}d.end()}catch(d){c(d)}}),"zipDirectory");nP.zipDirectory=GDr;var qDr=e(r=>new Promise((t,i)=>(0,s$.gunzip)(r,(a,c)=>{a?i(a):t(c)})),"gunzip");nP.gunzip=qDr});var vln=Je(U6e=>{"use strict";V();G();U();z();Object.defineProperty(U6e,"__esModule",{value:!0});U6e.NoOpTelemetry=void 0;var wmt=class{static{e(this,"NoOpTelemetry")}startTimerEvent(){return{end:e(()=>({name:"",data:{}}),"end")}}start=e(()=>{},"start");sendEvent=e(()=>{},"sendEvent");error=e(()=>{},"error")};U6e.NoOpTelemetry=wmt});var bln=Je((_ji,HDr)=>{HDr.exports=[{name:"Agola CI",constant:"AGOLA",env:"AGOLA_GIT_REF",pr:"AGOLA_PULL_REQUEST_ID"},{name:"Alpic",constant:"ALPIC",env:"ALPIC_HOST"},{name:"Appcircle",constant:"APPCIRCLE",env:"AC_APPCIRCLE",pr:{env:"AC_GIT_PR",ne:"false"}},{name:"AppVeyor",constant:"APPVEYOR",env:"APPVEYOR",pr:"APPVEYOR_PULL_REQUEST_NUMBER"},{name:"AWS CodeBuild",constant:"CODEBUILD",env:"CODEBUILD_BUILD_ARN",pr:{env:"CODEBUILD_WEBHOOK_EVENT",any:["PULL_REQUEST_CREATED","PULL_REQUEST_UPDATED","PULL_REQUEST_REOPENED"]}},{name:"Azure Pipelines",constant:"AZURE_PIPELINES",env:"TF_BUILD",pr:{BUILD_REASON:"PullRequest"}},{name:"Bamboo",constant:"BAMBOO",env:"bamboo_planKey"},{name:"Bitbucket Pipelines",constant:"BITBUCKET",env:"BITBUCKET_COMMIT",pr:"BITBUCKET_PR_ID"},{name:"Bitrise",constant:"BITRISE",env:"BITRISE_IO",pr:"BITRISE_PULL_REQUEST"},{name:"Buddy",constant:"BUDDY",env:"BUDDY_WORKSPACE_ID",pr:"BUDDY_EXECUTION_PULL_REQUEST_ID"},{name:"Buildkite",constant:"BUILDKITE",env:"BUILDKITE",pr:{env:"BUILDKITE_PULL_REQUEST",ne:"false"}},{name:"CircleCI",constant:"CIRCLE",env:"CIRCLECI",pr:"CIRCLE_PULL_REQUEST"},{name:"Cirrus CI",constant:"CIRRUS",env:"CIRRUS_CI",pr:"CIRRUS_PR"},{name:"Cloudflare Pages",constant:"CLOUDFLARE_PAGES",env:"CF_PAGES"},{name:"Cloudflare Workers",constant:"CLOUDFLARE_WORKERS",env:"WORKERS_CI"},{name:"Codefresh",constant:"CODEFRESH",env:"CF_BUILD_ID",pr:{any:["CF_PULL_REQUEST_NUMBER","CF_PULL_REQUEST_ID"]}},{name:"Codemagic",constant:"CODEMAGIC",env:"CM_BUILD_ID",pr:"CM_PULL_REQUEST"},{name:"Codeship",constant:"CODESHIP",env:{CI_NAME:"codeship"}},{name:"Drone",constant:"DRONE",env:"DRONE",pr:{DRONE_BUILD_EVENT:"pull_request"}},{name:"dsari",constant:"DSARI",env:"DSARI"},{name:"Earthly",constant:"EARTHLY",env:"EARTHLY_CI"},{name:"Expo Application Services",constant:"EAS",env:"EAS_BUILD"},{name:"Gerrit",constant:"GERRIT",env:"GERRIT_PROJECT"},{name:"Gitea Actions",constant:"GITEA_ACTIONS",env:"GITEA_ACTIONS"},{name:"GitHub Actions",constant:"GITHUB_ACTIONS",env:"GITHUB_ACTIONS",pr:{GITHUB_EVENT_NAME:"pull_request"}},{name:"GitLab CI",constant:"GITLAB",env:"GITLAB_CI",pr:"CI_MERGE_REQUEST_ID"},{name:"GoCD",constant:"GOCD",env:"GO_PIPELINE_LABEL"},{name:"Google Cloud Build",constant:"GOOGLE_CLOUD_BUILD",env:"BUILDER_OUTPUT"},{name:"Harness CI",constant:"HARNESS",env:"HARNESS_BUILD_ID"},{name:"Heroku",constant:"HEROKU",env:{env:"NODE",includes:"/app/.heroku/node/bin/node"}},{name:"Hudson",constant:"HUDSON",env:"HUDSON_URL"},{name:"Jenkins",constant:"JENKINS",env:["JENKINS_URL","BUILD_ID"],pr:{any:["ghprbPullId","CHANGE_ID"]}},{name:"LayerCI",constant:"LAYERCI",env:"LAYERCI",pr:"LAYERCI_PULL_REQUEST"},{name:"Magnum CI",constant:"MAGNUM",env:"MAGNUM"},{name:"Netlify CI",constant:"NETLIFY",env:"NETLIFY",pr:{env:"PULL_REQUEST",ne:"false"}},{name:"Nevercode",constant:"NEVERCODE",env:"NEVERCODE",pr:{env:"NEVERCODE_PULL_REQUEST",ne:"false"}},{name:"Prow",constant:"PROW",env:"PROW_JOB_ID"},{name:"ReleaseHub",constant:"RELEASEHUB",env:"RELEASE_BUILD_ID"},{name:"Render",constant:"RENDER",env:"RENDER",pr:{IS_PULL_REQUEST:"true"}},{name:"Sail CI",constant:"SAIL",env:"SAILCI",pr:"SAIL_PULL_REQUEST_NUMBER"},{name:"Screwdriver",constant:"SCREWDRIVER",env:"SCREWDRIVER",pr:{env:"SD_PULL_REQUEST",ne:"false"}},{name:"Semaphore",constant:"SEMAPHORE",env:"SEMAPHORE",pr:"PULL_REQUEST_NUMBER"},{name:"Sourcehut",constant:"SOURCEHUT",env:{CI_NAME:"sourcehut"}},{name:"Strider CD",constant:"STRIDER",env:"STRIDER"},{name:"TaskCluster",constant:"TASKCLUSTER",env:["TASK_ID","RUN_ID"]},{name:"TeamCity",constant:"TEAMCITY",env:"TEAMCITY_VERSION"},{name:"Travis CI",constant:"TRAVIS",env:"TRAVIS",pr:{env:"TRAVIS_PULL_REQUEST",ne:"false"}},{name:"Vela",constant:"VELA",env:"VELA",pr:{VELA_PULL_REQUEST:"1"}},{name:"Vercel",constant:"VERCEL",env:{any:["NOW_BUILDER","VERCEL"]},pr:"VERCEL_GIT_PULL_REQUEST_ID"},{name:"Visual Studio App Center",constant:"APPCENTER",env:"APPCENTER_BUILD_ID"},{name:"Woodpecker",constant:"WOODPECKER",env:{CI:"woodpecker"},pr:{CI_BUILD_EVENT:"pull_request"}},{name:"Xcode Cloud",constant:"XCODE_CLOUD",env:"CI_XCODE_PROJECT",pr:"CI_PULL_REQUEST_NUMBER"},{name:"Xcode Server",constant:"XCODE_SERVER",env:"XCS"}]});var xln=Je(O5=>{"use strict";V();G();U();z();var Sln=bln(),DT=Se.env;Object.defineProperty(O5,"_vendors",{value:Sln.map(function(r){return r.constant})});O5.name=null;O5.isPR=null;O5.id=null;DT.CI!=="false"&&Sln.forEach(function(r){let i=(Array.isArray(r.env)?r.env:[r.env]).every(function(a){return Eln(a)});O5[r.constant]=i,i&&(O5.name=r.name,O5.isPR=KDr(r),O5.id=r.constant)});O5.isCI=!!(DT.CI!=="false"&&(DT.BUILD_ID||DT.BUILD_NUMBER||DT.CI||DT.CI_APP_ID||DT.CI_BUILD_ID||DT.CI_BUILD_NUMBER||DT.CI_NAME||DT.CONTINUOUS_INTEGRATION||DT.RUN_ID||O5.name));function Eln(r){return typeof r=="string"?!!DT[r]:"env"in r?DT[r.env]&&DT[r.env].includes(r.includes):"any"in r?r.any.some(function(t){return!!DT[t]}):Object.keys(r).every(function(t){return DT[t]===r[t]})}e(Eln,"checkEnv");function KDr(r){switch(typeof r.pr){case"string":return!!DT[r.pr];case"object":return"env"in r.pr?"any"in r.pr?r.pr.any.some(function(t){return DT[r.pr.env]===t}):r.pr.env in DT&&DT[r.pr.env]!==r.pr.ne:"any"in r.pr?r.pr.any.some(function(t){return!!DT[t]}):Eln(r.pr);default:return null}}e(KDr,"checkPR")});var Pmt=Je(Lce=>{"use strict";V();G();U();z();Object.defineProperty(Lce,"__esModule",{value:!0});Lce.DatapointType=Lce.NETWORK_TIMEOUT_MS=void 0;Lce.NETWORK_TIMEOUT_MS=2e3;var Tln;(function(r){r[r.Page=0]="Page",r[r.Event=1]="Event",r[r.User=2]="User",r[r.PerformanceTrace=3]="PerformanceTrace"})(Tln||(Lce.DatapointType=Tln={}))});var Dln=Je(G6e=>{"use strict";V();G();U();z();Object.defineProperty(G6e,"__esModule",{value:!0});G6e.AppSeeTimerMetric=void 0;var Nmt=class{static{e(this,"AppSeeTimerMetric")}name;startTime;constructor(t){this.name=t,this.startTime=Date.now()}getDurationMs(){let t=Date.now();return{duration:t-this.startTime,now:t}}end(t){let i=Date.now()-this.startTime;return{name:this.name,appInfo:t?.appInfo||{},data:{...t?.data,durationMs:i}}}};G6e.AppSeeTimerMetric=Nmt});var Lmt=Je(q6e=>{"use strict";V();G();U();z();Object.defineProperty(q6e,"__esModule",{value:!0});q6e.AbstractAppSeeClient=void 0;var JDr=Dln(),Rmt=class{static{e(this,"AbstractAppSeeClient")}config;telemetryAttributes;sdkVersion;clientName;hostname;session;startPromise;constructor(t,i){this.config=t,this.telemetryAttributes=i,this.sdkVersion=i.sdkVersion,this.clientName=i.clientName,this.hostname=i.hostname}startTimerEvent(t){return new JDr.AppSeeTimerMetric(t)}start(){return this.startPromise||(this.startPromise=this.doStart()),this.startPromise}sendEvent(t){this.start().then(()=>this.doSendEvent(t)).catch(()=>{})}error(t,i,a){this.sendEvent([{name:"error",data:{event:t,...i instanceof Error?{name:i.name,message:i.message,stack:i.stack}:{message:i?.toString()},...a}}])}};q6e.AbstractAppSeeClient=Rmt});var Cln=Je(u8=>{"use strict";V();G();U();z();var XDr=u8&&u8.__createBinding||(Object.create?function(r,t,i,a){a===void 0&&(a=i);var c=Object.getOwnPropertyDescriptor(t,i);(!c||("get"in c?!t.__esModule:c.writable||c.configurable))&&(c={enumerable:!0,get:e(function(){return t[i]},"get")}),Object.defineProperty(r,a,c)}:function(r,t,i,a){a===void 0&&(a=i),r[a]=t[i]}),$Dr=u8&&u8.__setModuleDefault||(Object.create?function(r,t){Object.defineProperty(r,"default",{enumerable:!0,value:t})}:function(r,t){r.default=t}),YDr=u8&&u8.__importStar||function(r){if(r&&r.__esModule)return r;var t={};if(r!=null)for(var i in r)i!=="default"&&Object.prototype.hasOwnProperty.call(r,i)&&XDr(t,r,i);return $Dr(t,r),t},QDr=u8&&u8.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(u8,"__esModule",{value:!0});u8.NodeTelemetryClient=void 0;var kmt=YDr((m5(),nd(_5))),Mmt=QDr(xln()),H6e=Pmt(),ZDr=Lmt();function Aln(){return(RD(),nd(ND)).randomBytes(16).toString("hex")}e(Aln,"generateHexString");async function eAr(){let r=`${kmt.userInfo().username}:${kmt.hostname()}`;if(!r)return"unknown";let t=new TextEncoder().encode(r),i=await crypto.subtle.digest("SHA-256",t);return xe.from(i).toString("hex")}e(eAr,"getUserHash");var Omt=class extends ZDr.AbstractAppSeeClient{static{e(this,"NodeTelemetryClient")}constructor(t,i){super(t,{...i??{},clientName:i?.clientName??"cli"})}userId;async doStart(){try{if(this.session)return;this.userId=await eAr();let t=Aln(),i={RequestId:Aln(),TabId:t,SystemLocale:(Se.env.LANG||"unknown").split(".")[0],AppUserId:this.userId,ScreenHeight:0,ScreenWidth:0,ClientTime:new Date().toISOString(),TrackingLevel:"Full"},a=await fetch(new URL("/web/config",this.config.BaseUrl),{method:"POST",headers:this.getHeaders(),body:JSON.stringify(i),signal:AbortSignal.timeout(H6e.NETWORK_TIMEOUT_MS)}),c=await a.json();if(a.ok)this.session={...c,TabId:t};else throw new Error(`Failed to start session with status ${a.status}: ${c.Error}`)}catch{}}doSendEvent(t){try{if(!this.session)return;let i=this.getDefaultDataValues(),a=Array.isArray(t)?t:[t],c=Date.now(),d=this.hostname?{hostname:this.hostname}:{},f=a.map(S=>({t:H6e.DatapointType.Event,d:c,n:S.name,p:{scopeId:S.appInfo?.scopeId,...d,...i,...S.data}})),g=this.applyCITelemetry({...d});f.push({t:H6e.DatapointType.User,d:c,n:this.userId,p:g});let v={SessionId:this.session.SessionId,DataPoints:f,TabId:this.session.TabId||"0",ClientTime:new Date().toISOString(),ConfigReceivedTime:new Date().toISOString()};fetch(new URL("/web/heartbeat",this.config.BaseUrl),{method:"POST",headers:this.getHeaders(),body:JSON.stringify(v),signal:AbortSignal.timeout(H6e.NETWORK_TIMEOUT_MS)}).catch(()=>{})}catch{}}getHeaders(){return{APIKey:this.config.APIKey,APIAuth:this.config.APIAuth,BrowserId:"0",ClientId:this.session?.ClientId||"0",Version:this.sdkVersion||"unknown","Content-Type":"application/json"}}getDefaultDataValues(){let t={os:kmt.type(),version:this.sdkVersion||"unknown",nodeVersion:Se.version,clientName:this.clientName};return this.applyCITelemetry(t)}applyCITelemetry(t){return Mmt.default.isCI?{...t,ci:!0,ciName:Mmt.default.name,ciPR:Mmt.default.isPR}:t}};u8.NodeTelemetryClient=Omt});var Iln=Je(J6e=>{"use strict";V();G();U();z();Object.defineProperty(J6e,"__esModule",{value:!0});J6e.BrowserTelemetryClient=void 0;var K6e=Pmt(),tAr=Lmt(),Fmt=class extends tAr.AbstractAppSeeClient{static{e(this,"BrowserTelemetryClient")}constructor(t,i){let{ideVersion:a,...c}=i??{};super(t,{...c,clientName:i?.clientName??"ide"}),this.ideVersion=a}ideVersion;userId;async getUserHash(){let t=await this.getUserIdentifier(),i=new TextEncoder().encode(t),a=await crypto.subtle.digest("SHA-256",i);return Array.from(new Uint8Array(a)).map(d=>d.toString(16).padStart(2,"0")).join("")}async getUserIdentifier(){if(typeof window>"u")return"unknown";let t="sdk_telemetry_user_id";try{let i=localStorage.getItem(t);return i||(i=`anon_${Date.now()}_${Math.random().toString(36).substring(2,15)}`,localStorage.setItem(t,i)),i}catch{return`temp_${Math.random().toString(36).substring(2,15)}`}}generateHexString(){return crypto.randomUUID()}async doStart(){try{if(this.session)return;this.userId=await this.getUserHash();let t=this.generateHexString(),i={RequestId:this.generateHexString(),TabId:t,SystemLocale:Le.language??"unknown",AppUserId:this.userId,ScreenHeight:typeof screen<"u"?screen.height:0,ScreenWidth:typeof screen<"u"?screen.width:0,ClientTime:new Date().toISOString(),TrackingLevel:"Full"},a=await fetch(new URL("/web/config",this.config.BaseUrl),{method:"POST",headers:this.getHeaders(),body:JSON.stringify(i),signal:AbortSignal.timeout(K6e.NETWORK_TIMEOUT_MS)}),c=await a.json();if(a.ok)this.session={...c,TabId:t};else throw new Error(`Failed to start session with status ${a.status}: ${c.Error}`)}catch{}}doSendEvent(t){try{if(!this.session)return;let i=this.getDefaultDataValues(),a=Array.isArray(t)?t:[t],c=Date.now(),d=this.hostname?{hostname:this.hostname}:{},f=a.map(S=>({t:K6e.DatapointType.Event,d:c,n:S.name,p:{scopeId:S.appInfo?.scopeId,...d,...i,...S.data}})),g={hostname:d};f.push({t:K6e.DatapointType.User,d:c,n:this.userId,p:g});let v={SessionId:this.session.SessionId,DataPoints:f,TabId:this.session.TabId||"0",ClientTime:new Date().toISOString(),ConfigReceivedTime:new Date().toISOString()};fetch(new URL("/web/heartbeat",this.config.BaseUrl),{method:"POST",headers:this.getHeaders(),body:JSON.stringify(v),signal:AbortSignal.timeout(K6e.NETWORK_TIMEOUT_MS)}).catch(()=>{})}catch{}}getHeaders(){return{APIKey:this.config.APIKey,APIAuth:this.config.APIAuth,BrowserId:"0",ClientId:this.session?.ClientId||"0",Version:this.sdkVersion||"unknown","Content-Type":"application/json"}}getDefaultDataValues(){return{browser:Le.userAgent||"unknown",version:this.sdkVersion||"unknown",clientName:this.clientName,ideVersion:this.ideVersion||"unknown"}}};J6e.BrowserTelemetryClient=Fmt});var Nln=Je(($ji,Pln)=>{"use strict";V();G();U();z();var Bmt=Object.defineProperty,nAr=Object.getOwnPropertyDescriptor,rAr=Object.getOwnPropertyNames,iAr=Object.prototype.hasOwnProperty,oAr=e((r,t)=>{for(var i in t)Bmt(r,i,{get:t[i],enumerable:!0})},"__export"),aAr=e((r,t,i,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let c of rAr(t))!iAr.call(r,c)&&c!==i&&Bmt(r,c,{get:e(()=>t[c],"get"),enumerable:!(a=nAr(t,c))||a.enumerable});return r},"__copyProps"),sAr=e(r=>aAr(Bmt({},"__esModule",{value:!0}),r),"__toCommonJS"),wln={};oAr(wln,{getAppSeeConfig:e(()=>lAr,"getAppSeeConfig")});Pln.exports=sAr(wln);var lAr=e(()=>({APIKey:"demonightlycrf:6488f3cdc18547c19b2c8852b276a210",APIAuth:"f3bfba5cdd1f417589a0b1b290fd3346",BaseUrl:"https://api-appsee.service-now.com"}),"getAppSeeConfig")});var Rln=Je(X6e=>{"use strict";V();G();U();z();Object.defineProperty(X6e,"__esModule",{value:!0});X6e.TelemetryFactory=void 0;var cAr=vln(),uAr=Cln(),dAr=Iln(),pAr=Nln(),Wmt=class{static{e(this,"TelemetryFactory")}static create(t){let i=(0,pAr.getAppSeeConfig)();if(!t||!t.type||!i.APIKey||!i.APIAuth||!i.BaseUrl)return new cAr.NoOpTelemetry;if(t.type==="node")return new uAr.NodeTelemetryClient(i,t.attributes);if(t.type==="browser")return new dAr.BrowserTelemetryClient(i,t.attributes);throw new Error("Invalid telemetry type.")}};X6e.TelemetryFactory=Wmt});var Lln=Je($6e=>{"use strict";V();G();U();z();Object.defineProperty($6e,"__esModule",{value:!0});$6e.TelemetryFactory=void 0;var fAr=Rln();Object.defineProperty($6e,"TelemetryFactory",{enumerable:!0,get:e(function(){return fAr.TelemetryFactory},"get")})});var Mln=Je(jmt=>{"use strict";V();G();U();z();Object.defineProperty(jmt,"__esModule",{value:!0});jmt.validateClaimsFile=gAr;var _Ar=HX(),mAr=Z_t(),hAr={id:"/.claims",type:"object",patternProperties:{".*":{type:"array"}}};function gAr(r){let t=_Ar.JSON5.parse(r),a=new mAr.Validator().validate(t,hAr);if(a.errors&&a.errors.length>0)throw new Error(`Error reading .claims.json, ${a.errors[0]?.stack}`)}e(gAr,"validateClaimsFile")});var Vs=Je(lb=>{"use strict";V();G();U();z();var yAr=lb&&lb.__createBinding||(Object.create?function(r,t,i,a){a===void 0&&(a=i);var c=Object.getOwnPropertyDescriptor(t,i);(!c||("get"in c?!t.__esModule:c.writable||c.configurable))&&(c={enumerable:!0,get:e(function(){return t[i]},"get")}),Object.defineProperty(r,a,c)}:function(r,t,i,a){a===void 0&&(a=i),r[a]=t[i]}),DE=lb&&lb.__exportStar||function(r,t){for(var i in r)i!=="default"&&!Object.prototype.hasOwnProperty.call(t,i)&&yAr(t,r,i)};Object.defineProperty(lb,"__esModule",{value:!0});DE(a_t(),lb);DE(gon(),lb);DE(r6e(),lb);DE(d6e(),lb);DE(ean(),lb);DE(tan(),lb);DE(oan(),lb);DE(Fft(),lb);DE(Rsn(),lb);DE(G3e(),lb);DE(V3e(),lb);DE(U_t(),lb);DE(HX(),lb);DE(Lsn(),lb);DE(cbe(),lb);DE(vj(),lb);DE(yj(),lb);DE(m_t(),lb);DE(yln(),lb);DE(k_t(),lb);DE(Lln(),lb);DE(Mln(),lb);DE(nmt(),lb)});var kln=Je(d8=>{"use strict";V();G();U();z();var vAr=d8&&d8.__createBinding||(Object.create?function(r,t,i,a){a===void 0&&(a=i);var c=Object.getOwnPropertyDescriptor(t,i);(!c||("get"in c?!t.__esModule:c.writable||c.configurable))&&(c={enumerable:!0,get:e(function(){return t[i]},"get")}),Object.defineProperty(r,a,c)}:function(r,t,i,a){a===void 0&&(a=i),r[a]=t[i]}),bAr=d8&&d8.__setModuleDefault||(Object.create?function(r,t){Object.defineProperty(r,"default",{enumerable:!0,value:t})}:function(r,t){r.default=t}),SAr=d8&&d8.__importStar||function(r){if(r&&r.__esModule)return r;var t={};if(r!=null)for(var i in r)i!=="default"&&Object.prototype.hasOwnProperty.call(r,i)&&vAr(t,r,i);return bAr(t,r),t};Object.defineProperty(d8,"__esModule",{value:!0});d8.writeFileWithParentDirs=xAr;d8.createDirIfNotExists=TAr;d8.defaultDownloadDir=DAr;d8.writeFileStream=AAr;var Mce=Vs(),EAr=SAr((m5(),nd(_5)));function xAr(r,{path:t,content:i,originalPath:a}){let c=Mce.path.dirname(t);Mce.FileSystem.existsSync(r,c)||r.mkdirSync(c,{recursive:!0}),a?r.copyFileSync(a,t):r.writeFileSync(t,i,{encoding:"utf-8"})}e(xAr,"writeFileWithParentDirs");function TAr(r,t){Mce.FileSystem.existsSync(t,r)||t.mkdirSync(r,{recursive:!0})}e(TAr,"createDirIfNotExists");function DAr(){return Mce.path.join(EAr.tmpdir(),".now/metadata",(0,Mce.GUID)())}e(DAr,"defaultDownloadDir");function AAr(r,t,i){let a=Mce.FileSystem.createWriteStream(r,t);return i.pipeTo(new WritableStream({write:e(c=>new Promise((d,f)=>{a.write(c,g=>{g?f(g):d()})}),"write"),close:e(()=>new Promise((c,d)=>{a.end(f=>{f?d(f):c()})}),"close"),abort:e(c=>new Promise((d,f)=>{a.end(g=>{f(c??g)})}),"abort")}))}e(AAr,"writeFileStream")});var Bln=Je(Vmt=>{"use strict";V();G();U();z();Object.defineProperty(Vmt,"__esModule",{value:!0});Vmt.traverseDirectory=Fln;var Oln=Vs();function Fln(r,t,i){if(!Oln.FileSystem.existsSync(r,t))return;let a=r.readdirSync(t,{withFileTypes:!0}),{extensions:c,ignore_extensions:d,visitor:f}=i||{};for(let g of a){let v=Oln.path.resolve(t,g.name);g.isDirectory()?Fln(r,v,i):d&&d.find(S=>v.toLocaleLowerCase().endsWith(S.toLocaleLowerCase()))||(!c||c.length===0||c.some(S=>v.toLocaleLowerCase().endsWith(S.toLocaleLowerCase())))&&f(v)}}e(Fln,"traverseDirectory")});var Wln=Je(zmt=>{"use strict";V();G();U();z();Object.defineProperty(zmt,"__esModule",{value:!0});zmt.getOutput=CAr;async function CAr(r,t){let i=new Set,a=[];for(let c of[{mode:"explicit",creatorOnly:!1},{mode:"catch-all",creatorOnly:!1}])for(let d of t.plugins.toArray()){let f=await d.recordsToFiles({...c,database:r,context:t,handledGuids:i});f.success&&a.push(...f.value)}return a.map(c=>({source:c.source,path:t.project.resolvePath(t.config.appOutputDir,c.ifDirectoryPackage??"",c.category,c.name),content:c.content}))}e(CAr,"getOutput")});var jln=Je(kbe=>{"use strict";V();G();U();z();Object.defineProperty(kbe,"__esModule",{value:!0});kbe.createPackageJson=IAr;kbe.getPackageJsonFilePath=wAr;kbe.validatePackageName=PAr;var Y6e=Vs();function IAr({rootDir:r,compiler:t,fileSystem:i}){let a=Y6e.path.join(r,"package.json"),c=t.getSourceFile(a);if(!c&&!Y6e.FileSystem.existsSync(i,a))return{name:"my-fluent-app",version:"0.0.1"};let d=c?c.getFullText():i.readFileSync(a,{encoding:"utf-8"});return Y6e.JSON5.parse(d)}e(IAr,"createPackageJson");function wAr(r){return Y6e.path.join(r,"package.json")}e(wAr,"getPackageJsonFilePath");function PAr(r){if(r===null)throw new Error("name cannot be null");if(r===void 0)throw new Error("name cannot be undefined");if(!r.length)throw new Error("name length must be greater than zero");if(r.match(/^\./))throw new Error("name cannot start with a period");if(r.match(/^_/))throw new Error("name cannot start with an underscore");if(r.trim()!==r)throw new Error("name cannot contain leading or trailing spaces");if(encodeURIComponent(r)!==r){let t=/^(?:@([^/]+?)[/])?([^/]+?)$/,i=r.match(t);if(i){let a=i[1],c=i[2];if(encodeURIComponent(a)===a&&encodeURIComponent(c)===c)return}throw new Error("name can only contain URL-friendly characters")}}e(PAr,"validatePackageName")});var Q6e=Je(Obe=>{"use strict";V();G();U();z();Object.defineProperty(Obe,"__esModule",{value:!0});Obe.isWebWorker=void 0;Obe.hasModuleLoader=NAr;Obe.isWebWorker=typeof self=="object"&&self.constructor&&self.constructor.name==="DedicatedWorkerGlobalScope";function NAr(){return require?.IDE_MODULE_LOADER}e(NAr,"hasModuleLoader")});var Umt=Je(Z6e=>{"use strict";V();G();U();z();Object.defineProperty(Z6e,"__esModule",{value:!0});Z6e.createSandboxedRegisterExplicitId=void 0;var RAr="sys_ux_theme_asset",LAr=e(r=>e((i,a)=>{if(i!==RAr)throw new Error(`registerExplicitId is not supported for the "${i}" table.`);return r.registerExplicitId(i,a)},"registerExplicitId"),"createSandboxedRegisterExplicitId");Z6e.createSandboxedRegisterExplicitId=LAr});var Gmt=Je(e8e=>{"use strict";V();G();U();z();Object.defineProperty(e8e,"__esModule",{value:!0});e8e.projectHasScript=kAr;e8e.runScriptInProject=OAr;var Fbe=Vs(),Vln=Q6e(),MAr=Umt();function kAr(r,t){let i=r.getFileSystem(),c=r.getConfig().scripts?.[t];if(c){let f=r.resolvePath(c);if(Fbe.FileSystem.existsSync(i,f))return!0}let d=r.resolvePath(`now.${t}.mjs`);return!!Fbe.FileSystem.existsSync(i,d)}e(kAr,"projectHasScript");async function OAr({scriptName:r,project:t,credential:i,throwIfNotFound:a=!1}){let c=t.getRootDir(),d=t.getFileSystem(),f=t.getConfig(),g=t.getLogger(),v=(0,MAr.createSandboxedRegisterExplicitId)(t),S=null,E=f.scripts?.[r];if(E){let L=t.resolvePath(E);if(!Fbe.FileSystem.existsSync(d,L)){if(a)throw Error(`Script "${r}" defined in config at "${E}" not found at ${L}.`);return}S=L}else{let L=t.resolvePath(`now.${r}.mjs`);if(Fbe.FileSystem.existsSync(d,L))S=L;else{if(a)throw Error(`No script defined for "${r}". Please add it to scripts in now.config.json or create now.${r}.mjs.`);return}}g.info(`Running script "${r}" from ${S}`);let A=null;Vln.isWebWorker&&(0,Vln.hasModuleLoader)()?A=await require(S):A=await import(e(W=>`file://${W}`,"webpackWillIgnoreThisIhateYouWebpack")(S));let C=Array.isArray(A.default)?A.default:[A.default];for(let L of C)typeof L=="function"?await L({rootDir:c,config:f,fs:d,path:Fbe.path,logger:g,registerExplicitId:v,credential:i}):g.warn(`Skipping non-function task in script "${r}": ${L?.toString()} . Please export a function or an array of functions.`);g.info(`Script "${r}" completed successfully`)}e(OAr,"runScriptInProject")});var Uln=Je(zln=>{"use strict";V();G();U();z();Object.defineProperty(zln,"__esModule",{value:!0})});var Gln=Je(qmt=>{"use strict";V();G();U();z();Object.defineProperty(qmt,"__esModule",{value:!0});qmt.defaultUiBuild=BAr;var t8e=(RD(),nd(ND)),n8e=Vs(),FAr=Umt();async function BAr({project:r}){let t=r.getFileSystem(),i=r.getConfig(),a=r.getLogger(),c=r.getRootDir(),d=(0,FAr.createSandboxedRegisterExplicitId)(r),f=n8e.path.join(c,i.clientDir);if(!n8e.FileSystem.existsSync(t,f)){a.debug(`No client files in ${f} found, skipping UI build.`);return}let g=n8e.path.join(f,"**","*.html");if(!(await(0,t8e.glob)(g,{fs:t})).length){a.warn(`No HTML files found in ${f}, skipping UI build.`);return}let S=n8e.path.join(c,i.staticContentDir);t.rmSync(S,{recursive:!0,force:!0});let E=await(0,t8e.servicenowFrontEndPlugins)({scope:i.scope,rootDir:f,registerExplicitId:d});(await(await(0,t8e.rollup)({fs:t,input:g,plugins:[...E,(0,t8e.uiPageSourceManifest)({rootDir:c,clientDir:f})]})).write({dir:S,sourcemap:!0})).output.forEach(L=>{L.type==="asset"?a.info(`Bundled asset: ${L.fileName} (${L.source.length} bytes)`):L.type==="chunk"&&a.info(`Bundled chunk: ${L.fileName} (${L.code.length} bytes)`)})}e(BAr,"defaultUiBuild")});var qln=Je(qte=>{"use strict";V();G();U();z();Object.defineProperty(qte,"__esModule",{value:!0});qte.typeCheckProject=void 0;qte.uiPrebuild=jAr;qte.uiPostbuild=VAr;var p8=Vs(),r8e=Gmt(),i8e=Q6e(),WAr=e(r=>{let t=r.getLogger(),i=r.getConfig(),a=r.getFileSystem(),c=r.resolvePath(i.clientDir);if(i.clientDir&&p8.FileSystem.existsSync(a,c)){let d={moduleResolution:p8.ts.ModuleResolutionKind.Bundler,module:p8.ts.ModuleKind.ES2022,target:p8.ts.ScriptTarget.ES2022,lib:["lib.es2022.d.ts","lib.dom.d.ts"],jsx:p8.tsc.JsxEmit.Preserve},f=r.resolvePath(i.clientDir,"tsconfig.json"),g={fileSystem:new p8.TsMorphFileSystemWrapper(a),defaultCompilerOptions:d};p8.FileSystem.existsSync(a,f)?(t.debug(`Using client tsconfig.json for type checking: ${f}`),g.tsConfigFilePath=f,g.skipAddingFilesFromTsConfig=!0):t.warn("No client tsconfig.json found, using default compiler options for type checking");let v=new p8.ts.Project(g);t.debug(`Type checking client project with options:
31145
31145
  ${JSON.stringify(v.getCompilerOptions(),null,2)}`);let S=v.addSourceFilesAtPaths([p8.path.join(c,"**/*.ts"),p8.path.join(c,"**/*.tsx"),p8.path.join(c,"**/*.d.ts"),"!**/node_modules/**"]);t.debug(`Type checking ${S.length} client source files:
31146
31146
  ${S.map(A=>` - ${A.getFilePath()}`).join(`
31147
31147
  `)}`);let E=v.getPreEmitDiagnostics();if(E.length>0)throw new Error(`Type check failed!
31148
- ${v.formatDiagnosticsWithColorAndContext(E)}`);t.info("Type check completed successfully")}},"typeCheckProject");qte.typeCheckProject=WAr;async function jAr({project:r}){let t=r.getLogger(),i=r.getConfig(),a=r.getFileSystem();(0,qte.typeCheckProject)(r);let c=(0,r8e.projectHasScript)(r,"prebuild");if((!i8e.isWebWorker||(0,i8e.hasModuleLoader)())&&c)await(0,r8e.runScriptInProject)({scriptName:"prebuild",project:r,throwIfNotFound:!1});else if(i.clientDir){c&&t.debug("Custom scripts are not supported, so using the default UI build");let{defaultUiBuild:f}=await Promise.resolve().then(()=>cee(Gln()));await f({project:r})}if(p8.FileSystem.existsSync(a,r.resolvePath(i.staticContentDir)))for(let f of r.reloadDirectory(i.staticContentDir))f.setReadOnly(!0)}e(jAr,"uiPrebuild");async function VAr({project:r}){let t=r.getLogger();!i8e.isWebWorker||(0,i8e.hasModuleLoader)()?await(0,r8e.runScriptInProject)({scriptName:"postbuild",project:r,throwIfNotFound:!1}):(0,r8e.projectHasScript)(r,"postbuild")&&t.warn("Custom scripts are not supported, skipping postbuild script")}e(VAr,"uiPostbuild")});var c$=Je(oM=>{"use strict";V();G();U();z();var zAr=oM&&oM.__createBinding||(Object.create?function(r,t,i,a){a===void 0&&(a=i);var c=Object.getOwnPropertyDescriptor(t,i);(!c||("get"in c?!t.__esModule:c.writable||c.configurable))&&(c={enumerable:!0,get:e(function(){return t[i]},"get")}),Object.defineProperty(r,a,c)}:function(r,t,i,a){a===void 0&&(a=i),r[a]=t[i]}),l$=oM&&oM.__exportStar||function(r,t){for(var i in r)i!=="default"&&!Object.prototype.hasOwnProperty.call(t,i)&&zAr(t,r,i)};Object.defineProperty(oM,"__esModule",{value:!0});l$(kln(),oM);l$(Bln(),oM);l$(Wln(),oM);l$(jln(),oM);l$(Gmt(),oM);l$(Q6e(),oM);l$(Uln(),oM);l$(qln(),oM)});var Hln=Je(a8e=>{"use strict";V();G();U();z();Object.defineProperty(a8e,"__esModule",{value:!0});a8e.Diagnostics=void 0;var aM=Vs();function o8e(r){return aM.ts.Node.isNode(r)?r:r.getOriginalNode()}e(o8e,"getOriginalNode");var Hmt=class{static{e(this,"Diagnostics")}diagnostics=[];error(t,i){this.add(new aM.FluentDiagnostic(o8e(t),i,{level:aM.Diagnostic.Level.Error}))}warn(t,i){this.add(new aM.FluentDiagnostic(o8e(t),i,{level:aM.Diagnostic.Level.Warn}))}info(t,i){this.add(new aM.FluentDiagnostic(o8e(t),i,{level:aM.Diagnostic.Level.Info}))}hint(t,i){this.add(new aM.FluentDiagnostic(o8e(t),i,{level:aM.Diagnostic.Level.Hint}))}add(t){UAr(t)||this.diagnostics.some(i=>i.message===t.message&&i.code===t.code&&i.level===t.level&&i.source===t.source&&i.position.start===t.position.start&&i.position.end===t.position.end&&i.file.getFilePath()===t.file.getFilePath())||this.diagnostics.push(t)}getAll(t){return t?this.diagnostics.filter(i=>i.file.getFilePath()===t):this.diagnostics}clear(t){this.diagnostics=t?this.diagnostics.filter(i=>i.file.getFilePath()!==t):[]}getWarnings(t){return this.getAll(t).filter(i=>i.level===aM.Diagnostic.Level.Warn)}hasErrors(t){return this.getAll(t).some(i=>i.level===aM.Diagnostic.Level.Error)}getErrors(t){return this.getAll(t).filter(i=>i.level===aM.Diagnostic.Level.Error)}};a8e.Diagnostics=Hmt;function UAr(r){return r instanceof aM.FluentDiagnostic&&(0,aM.hasDirective)(r.node,"@fluent-ignore")}e(UAr,"isIgnored")});var Kln=Je(l8e=>{"use strict";V();G();U();z();Object.defineProperty(l8e,"__esModule",{value:!0});l8e.MultiProjectTransform=void 0;var Wj=Vs(),GAr=Bbe(),s8e=class{static{e(this,"Transform")}project;pluginUsageTracker;constructor(t,i){this.project=t,this.pluginUsageTracker=i}async shapeToSubclass(t,i){for(let a of i.length>0?i:this.project.getPlugins().toArray())try{let c=await a.shapeToSubclass(t,this.project.getContext());if(c.success)return await this.shapeToSubclass(c.value,i)}catch(c){this.project.getLogger().error(`Plugin "${a.getName()}" failed to subclass "${t.getKind()}" shape:`,c)}return{success:!0,value:t}}async shapeToRecord(t,i){if(t.isRecord())return{success:!0,value:t};for(let a of i.length>0?i:this.project.getPlugins().toArray())try{let c=await a.shapeToRecord(t,this.project.getContext());if(c.success)return this.pluginUsageTracker.addPluginToRecordUsage(a,t,c.value.getCount()),{success:!0,value:c.value}}catch(c){this.project.getLogger().error(`Plugin "${a.getName()}" failed to transform "${t.getKind()}" shape into record:`,c)}return{success:!1}}async nodeToRecord(t,i){let a=await this.toShape(t,...i);return a.success?this.shapeToRecord(a.value,i):a}async fileToRecord(t,i){for(let a of i.length>0?i:this.project.getPlugins().toArray())try{let c=await a.fileToRecord(t,this.project.getContext());if(c.success)return this.pluginUsageTracker.addPluginToRecordUsage(a,t,c.value.getCount()),{success:!0,value:c.value}}catch(c){this.project.getLogger().error(`Plugin "${a.getName()}" failed to transform "${t.path}" into records:`,c)}return{success:!1}}async toRecord(t,...i){return Wj.ts.Node.isNode(t)?this.nodeToRecord(t,i):t instanceof Wj.Shape?this.shapeToRecord(t,i):this.fileToRecord(t,i)}async toShape(t,...i){let a=this.project.getDiagnosticsService();if(!(0,Wj.isSupportedNode)(t))return(0,Wj.isFluentNode)(t)&&a.error(t,`Node kind "${(0,Wj.getUnsupportedKindName)(t)}" is not allowed in Fluent files.`),{success:!1};for(let c of i.length>0?i:this.project.getPlugins().toArray())try{let d=await c.nodeToShape(t,this.project.getContext()),f=d.success?await this.shapeToSubclass(d.value,i):d,g=f.success?await this.toRecord(f.value,...i):f,v=g.success?g:f;if(v.success)return v}catch(d){this.project.getLogger().error(`Plugin "${c.getName()}" failed to transform "${t.getKindName()}" node into shape:`,d)}return{success:!1}}async recordToShape(t,i,...a){for(let c of a.length>0?a:this.project.getPlugins().toArray()){let d=await c.recordToShape({record:t,database:i,context:this.project.getContext()});if(d.success)return d}return{success:!1}}async toSubclass(t,...i){return this.shapeToSubclass(t,i)}async getUpdateName(t,...i){for(let a of i.length>0?i:this.project.getPlugins().toArray())try{let c=await a.getUpdateName(t,this.project.getContext());if(c.success)return c.value}catch(c){this.project.getLogger().error(`Plugin "${a.getName()}" failed to get update name for record: ${t.getTable()}`,c)}throw new Error(`Failed to get update name for record: ${t.getTable()}`)}},Kmt=class{static{e(this,"MultiProjectTransform")}rootProject;pluginUsageTracker;fallbackTransform;rootTransform;transformMap={};constructor(t,i){this.rootProject=t,this.pluginUsageTracker=i,this.rootTransform=new s8e(t,this.pluginUsageTracker),this.transformMap[t.getRootDir()]=this.rootTransform}toRecord(t,...i){return this.getTransformForPath(Wj.ts.Node.isNode(t)?t.getSourceFile().getFilePath():t instanceof Wj.Shape?t.getOriginalFilePath():t.path).toRecord(t,...i)}async toShape(t,...i){return this.getTransformForPath(t.getSourceFile().getFilePath()).toShape(t,...i)}async recordToShape(t,i,...a){return this.getTransformForPath(t.getOriginalFilePath()).recordToShape(t,i,...a)}async toSubclass(t,...i){return this.getTransformForPath(t.getOriginalFilePath()).toSubclass(t,...i)}async getUpdateName(t,...i){return this.getTransformForPath(t.getOriginalFilePath()).getUpdateName(t,...i)}createTransform(t){let{plugins:i,fs:a,logger:c,diagnostics:d,transform:f}=this.rootProject.getContext();return new s8e(new GAr.Project({rootDir:t,plugins:i,fileSystem:a,logger:c,diagnostics:d,transform:f}),this.pluginUsageTracker)}getFallbackTransform(){return this.fallbackTransform??=this.createTransform(this.rootProject.getRootDir())}getTransformForPath(t){if(this.transformMap[t])return this.transformMap[t];if(this.rootProject.getFileIfExists(t))return this.transformMap[t]=this.rootTransform;let i=this.findProjectRootForPath(t);return i&&this.transformMap[i]?this.transformMap[i]:i?this.transformMap[i]=this.createTransform(i):this.getFallbackTransform()}findProjectRootForPath(t){if(this.isProjectRoot(t))return t;let i=Wj.path.dirname(t);if(i!==t)return this.findProjectRootForPath(i)}isProjectRootCache={};isProjectRoot(t){if(typeof this.isProjectRootCache[t]=="boolean")return this.isProjectRootCache[t];let i=Wj.path.join(t,"now.config.json");return this.isProjectRootCache[t]=t in this.transformMap||!!this.rootProject.getCompiler().getSourceFile(i)||Wj.FileSystem.existsSync(this.rootProject.getFileSystem(),i)}};l8e.MultiProjectTransform=Kmt});var Jln=Je(c8e=>{"use strict";V();G();U();z();Object.defineProperty(c8e,"__esModule",{value:!0});c8e.Keys=void 0;var Jmt=Vs(),Xmt=class{static{e(this,"Keys")}keys;constructor(t){this.keys=new Jmt.KeysRegistry(t.getCompiler(),{rootDir:t.getRootDir(),config:t.getConfig(),package:t.getPackage()},t.getFileSystem())}queryExplicitId(t,i){return this.keys.queryExplicitId(t,i instanceof Jmt.Shape?(i.ifString()??i.asNumber("Explicit key must be a string or number")).getValue():i)}registerExplicitId(t,i,a){return i instanceof Jmt.Shape?this.keys.registerExplicitId(t,(i.ifString()??i.asNumber("Explicit key must be a string or number")).getValue(),a):this.keys.registerExplicitId(t,i,a)}deleteExplicitId(t,i,a){return this.keys.deleteExplicitId(t,i,a)}queryCoalesceId(t,i){return this.keys.queryCompositeId(t,i)}registerCoalesceId(t,i,a){return this.keys.registerCompositeId(t,i,a)}deleteCoalesceId(t,i,a){return this.keys.deleteCompositeId(t,i,a)}getEffectiveDeletedKeys(){return this.keys.getEffectiveDeletedKeys()}getSourceFile(){return this.keys.getSourceFile()}getFilePath(){return this.keys.getSourceFile().getFilePath()}getValue(){return this.keys.getValue()}async commit(t){await this.keys.commit(t)}reload(){this.keys.reload()}};c8e.Keys=Xmt});var Xln=Je(u8e=>{"use strict";V();G();U();z();Object.defineProperty(u8e,"__esModule",{value:!0});u8e.Inspector=void 0;var $mt=class{static{e(this,"Inspector")}project;constructor(t){this.project=t}inspect(t,...i){for(let a of i.length>0?i:this.project.getPlugins().toArray())try{a.inspect(t,this.project.getContext())}catch(c){this.project.getLogger().error(`Plugin "${a.getName()}" failed to inspect shape "${t.getKind()}":`,c)}}};u8e.Inspector=$mt});var Zm=Je(kce=>{"use strict";V();G();U();z();Object.defineProperty(kce,"__esModule",{value:!0});kce.NowIdPlugin=kce.NowIdShape=void 0;var d8e=Vs(),p8e=class r extends d8e.ElementAccessExpressionShape{static{e(this,"NowIdShape")}constructor({source:t,id:i}){super({source:t,callee:"Now.ID",arg:i})}getValue(){return this.getArg().getValue()}static from(t){let i=t.getId().getNowIdKey()??t.getId().getValue();return new r({source:t,id:i})}getCode(){return`Now.ID[${this.getArg().getCode()}]`}};kce.NowIdShape=p8e;kce.NowIdPlugin=d8e.Plugin.create({name:"NowIdPlugin",shapes:[{shape:d8e.ElementAccessExpressionShape,fileTypes:["fluent"],toSubclass(r,{diagnostics:t}){if(r.getCallee()!=="Now.ID")return{success:!1};let i=r.getArg();return!i.isString()&&!i.isNumber()?(t.error(i,"Now.ID argument must be a string or number"),{success:!1}):{success:!0,value:new p8e({source:r,id:i.getValue().toString()})}}}],nodes:[{node:"PropertyAccessExpression",fileTypes:["fluent"],async toShape(r,{transform:t}){if(r.getName()!=="$id")return{success:!1};let i=r.getExpressionIfKind(d8e.ts.SyntaxKind.Identifier);if(!i)return{success:!1};let a=await t.toShape(i);if(!a.success||!a.value.isIdentifier())return{success:!1};let c=a.value.resolve();return c.isRecord()?{success:!0,value:c.getId()}:{success:!1}}}]})});var $ln=Je(f8e=>{"use strict";V();G();U();z();Object.defineProperty(f8e,"__esModule",{value:!0});f8e.ApplicationMenuPlugin=void 0;var Ymt=Vs(),qAr=Zm();f8e.ApplicationMenuPlugin=Ymt.Plugin.create({name:"ApplicationMenuPlugin",records:{sys_app_application:{relationships:{sys_app_category:{via:"category",inverse:!0},sys_app_application:{via:"sys_overrides",inverse:!0}},async toShape(r,{factory:t}){let i=r.get("roles"),a=i.ifString()?.ifNotEmpty()?.split(",")??[],c=[];for(let d of a)c.push(await t.createReference({source:i,table:"sys_user_role",keys:{name:d}}));return{success:!0,value:new Ymt.CallExpressionShape({source:r,callee:"ApplicationMenu",exportName:r.get("sys_name")?.ifString()?.getValue(),args:[r.transform(({$:d})=>({$id:d.val(qAr.NowIdShape.from(r)),title:d,category:d,hint:d.def(""),description:d.def(""),name:d.def(""),active:d.toBoolean().def(!0),order:d.map(f=>f.ifString()?.ifNotEmpty()?.toNumber()).def(100),roles:d.val(c).def([])}))]})}}}},shapes:[{shape:Ymt.CallExpressionShape,fileTypes:["fluent"],async toRecord(r,{factory:t}){if(r.getCallee()!=="ApplicationMenu")return{success:!1};let i=r.getArgument(0).asObject();return{success:!0,value:await t.createRecord({source:r,table:"sys_app_application",explicitId:i.get("$id"),properties:i.transform(({$:a})=>({title:a,hint:a.def(""),description:a.def(""),name:a.def(""),active:a.def(!0),order:a.def(100),device_type:a.val("browser"),roles:a.map(c=>c.ifArray()?.map(d=>(d.ifRecord()?.get("name")??d.asString()).getValue()).join(",")).def(""),category:a}))})}}}]})});var nS=Je(f8=>{"use strict";V();G();U();z();Object.defineProperty(f8,"__esModule",{value:!0});f8.INVALID_XML_CHARACTERS=void 0;f8.toReference=HAr;f8.reverseObject=KAr;f8.noThrow=JAr;f8.applyPathMappings=XAr;f8.getCallExpressionName=$Ar;f8.generateDeprecatedDiagnostics=YAr;f8.validateClientSideScript=ZAr;f8.createSdkDocEntry=eCr;var Wbe=Vs();function HAr(r){return r.ifRecord()?.getId()??r.ifString()?.getValue()??""}e(HAr,"toReference");function KAr(r){let t={};for(let i in r){let a=r[i];typeof a=="string"&&(t[a]=i)}return t}e(KAr,"reverseObject");function JAr(r){try{return r()}catch(t){return t}}e(JAr,"noThrow");f8.INVALID_XML_CHARACTERS=/[\0-\x08\x0B\f\x0E-\x1F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/g;function XAr(r,t){if(!t)return r;for(let[i,a]of Object.entries(t)){let c=r.match(`${i.replace(/\./,"\\.").replace(/\*+/,"(.*)")}$`)?.[1];if(c!==void 0)return a.replace(/\*+/,c)}return r}e(XAr,"applyPathMappings");function $Ar(r){let t=r.getExpression();if(Wbe.ts.Node.isIdentifier(t)||Wbe.ts.Node.isPropertyAccessExpression(t))return t.getText();throw`CallExpression does not have a name: ${t.getText()}`}e($Ar,"getCallExpressionName");function YAr(r,t){Object.keys(r.getAliasedKeys()).forEach(i=>{let a=r.findAliasUsed(i);a&&t.hint(r.get(i),`The property '${a}' is deprecated, use '${i}' instead.`)})}e(YAr,"generateDeprecatedDiagnostics");function QAr(r){let t=r.getExpression();return Wbe.ts.Node.isIdentifier(t)&&t.getText()==="require"}e(QAr,"isRequire");function ZAr(r,t){let i=t.createSourceFile("tmp-script.ts",r),a=i.getDescendantsOfKind(Wbe.ts.SyntaxKind.ImportDeclaration).length>0,c=i.getDescendantsOfKind(Wbe.ts.SyntaxKind.CallExpression).some(QAr),d=!(a||c);return t.removeSourceFile(i),d}e(ZAr,"validateClientSideScript");function eCr(r,t){return{apiName:r,docPath:`@servicenow/sdk/docs/${r}/${r}.md`,tags:t}}e(eCr,"createSdkDocEntry")});var Qmt=Je(jbe=>{"use strict";V();G();U();z();Object.defineProperty(jbe,"__esModule",{value:!0});jbe.DataPlugin=void 0;jbe.isDataHelper=nCr;var pF=Vs(),tCr=nS();function nCr(r){if(!pF.ts.Node.isCallExpression(r))return!1;let t=(0,tCr.getCallExpressionName)(r);return Object.values(pF.DATA_HELPER_NAMES).includes(t)}e(nCr,"isDataHelper");var rCr={[pF.DATA_HELPER_NAMES.DURATION]:iCr,[pF.DATA_HELPER_NAMES.TIME]:oCr,[pF.DATA_HELPER_NAMES.FIELD_LIST]:aCr,[pF.DATA_HELPER_NAMES.TEMPLATE_VALUE]:sCr};jbe.DataPlugin=pF.Plugin.create({name:"DataPlugin",shapes:[{shape:pF.CallExpressionShape,fileTypes:["fluent"],toSubclass(r,{diagnostics:t}){let i=r.getCallee(),a=rCr[i];return a?a(r,t):{success:!1}}}]});function Yln(r,t){let i=[];for(let a of t){let c=r[a];if(!c?.isDefined()||!c.isNumber())continue;let d=c.asNumber().getValue();d<0&&i.push(`${a} must be >= 0, got ${d}`)}return i}e(Yln,"validateNonNegative");function Qln(r,t){return t.some(i=>r[i]?.isDefined())}e(Qln,"hasAtLeastOneField");function iCr(r,t){let i=r.getArgument(0),a=i.asObject().properties({resolve:!1});if(!Qln(a,["days","hours","minutes","seconds"]))return t.error(r,"Duration must have at least one field defined (days, hours, minutes, or seconds)"),{success:!1};let c=Yln(a,["days","hours","minutes","seconds"]);return c.length>0?(t.error(r,`Invalid duration values: ${c.join(", ")}`),{success:!1}):{success:!0,value:new pF.DurationShape({source:r,value:i.asObject()})}}e(iCr,"createDurationShape");function oCr(r,t){let i=r.getArgument(0),a=i.asObject().properties({resolve:!1});if(!Qln(a,["hours","minutes","seconds"]))return t.error(r,"Time must have at least one field defined (hours, minutes, or seconds)"),{success:!1};let c=Yln(a,["hours","minutes","seconds"]);if(c.length>0)return t.error(r,`Invalid time values: ${c.join(", ")}`),{success:!1};let d=r.getArgument(1);if(d.isUndefined())return{success:!0,value:new pF.TimeShape({source:r,value:i.asObject()})};if(!d.isString())return t.error(r,"Second argument (timezone) must be a string literal"),{success:!1};let f=d.asString().getValue();return lCr(f)?{success:!0,value:new pF.TimeShape({source:r,value:i.asObject(),timeZone:f})}:(t.error(r,`Invalid IANA timezone: '${f}'. Use a valid timezone like 'America/New_York', 'Europe/London', or 'UTC'.`),{success:!1})}e(oCr,"createTimeShape");function aCr(r,t){let i=r.getArgument(0).asArray().getElements();return{success:!0,value:new pF.FieldListShape({source:r,fields:i})}}e(aCr,"createFieldListShape");function sCr(r,t){let i=r.getArgument(0).asObject().properties({resolve:!1});for(let[a,c]of Object.entries(i))if(c.isString()&&c.getValue().includes("^^"))return t.error(r,`Template field '${a}' contains an invalid character sequence: multiple carets (^^). Use a single caret (^) if needed, it will be escaped automatically.`),{success:!1};return{success:!0,value:new pF.TemplateValueShape({source:r,value:i})}}e(sCr,"createTemplateValueShape");function lCr(r){try{return Intl.DateTimeFormat(void 0,{timeZone:r}),!0}catch{return!1}}e(lCr,"isValidTimeZone")});var Zmt=Je(_8e=>{"use strict";V();G();U();z();Object.defineProperty(_8e,"__esModule",{value:!0});_8e.BasicSyntaxPlugin=void 0;var rc=Vs(),cCr=Qmt(),uCr=nS();_8e.BasicSyntaxPlugin=rc.Plugin.create({name:"BasicSyntaxPlugin",files:[{entryPoint:!0,matcher:RegExp(`${rc.NOW_FILE_EXTENSION}$`)}],shapes:[{shape:rc.SourceFileShape,getTarget(r,{compiler:t,project:i}){let a=r.getOriginalSource();return{success:!0,value:rc.ts.Node.isNode(a)?a:t.getOrCreateSourceFile(i.resolvePath(r.getPath()))}},commit(r,t,{project:i}){let a=i.getFileIfExists(r.getPath());return a?a.setContent(r.getContent()):i.addFile({path:r.getPath(),content:r.getContent()}),{success:!0}}},{shape:rc.Shape,getTarget(r,{compiler:t,project:i,config:a}){let c=r.getOriginalSource();if((0,rc.isValidNode)(c))return{success:!0,value:c};if(r.isNoOp()||r.isUndefined()||r.isRecord()&&r.isDeleted())return{success:!1};let{generatedDir:d,taxonomy:f}=a,g=r.getSource()instanceof rc.Record?r.getSource().getTable():void 0,v=g&&f.mapping[g]?rc.path.join(d,f.mapping[g]):d,S=rc.path.basename(c.path).replace(RegExp(`${rc.path.extname(c.path)}$`),"");if(!S){let C=r.getSource()instanceof rc.Record?r.getSource().getId().getValue():void 0;S=`${g}_${C}`}i.isTypesGenerationMode()&&r.is(rc.VariableStatementShape)&&r.isExported()&&(S=r.getVariableName().getName());let E=t.getOrCreateSourceFile(i.resolvePath(i.getRootDir(),v,`${S}.now.ts`)),A=i.addFile(E.getFilePath(),{resolveDependencies:!1}).addStatement(r.getCode());return{success:!0,value:A.isKind(rc.ts.SyntaxKind.ExpressionStatement)?A.getExpression():A}}},{shape:rc.DeletedShape,commit(r,t){return(0,rc.removeReferences)(t),(0,rc.remove)(t),{success:!0}}},{shape:rc.UndefinedShape,commit(r,t){return(0,rc.isUndefined)(t)||t.replaceWithText("undefined"),{success:!0}}},{shape:rc.TemplateExpressionShape,async commit(r,t,{commit:i}){if(!rc.ts.Node.isTemplateExpression(t)&&!rc.ts.Node.isTaggedTemplateExpression(t)&&!rc.ts.Node.isNoSubstitutionTemplateLiteral(t))return t.replaceWithText(r.getCode()),{success:!0};let a=rc.ts.Node.isTaggedTemplateExpression(t)?t.removeTag():t,c=rc.ts.Node.isTemplateExpression(a)?a.getTemplateSpans():[],d=r.getSpans();if(d.length!==c.length)return a.replaceWithText(r.getCode()),{success:!0};for(let[f,g]of c.entries()){let v=d[f];if(!v)throw new Error(`Expected shape to have a span at index ${f}`);await i(v,g)}return{success:!0}}},{shape:rc.TemplateSpanShape,async commit(r,t,{commit:i}){if(!rc.ts.Node.isTemplateSpan(t))return t.replaceWithText(r.getCode()),{success:!0};let a=t.getLiteral();return r.getLiteralText()!==a.getLiteralText()&&(a.isKind(rc.ts.SyntaxKind.TemplateMiddle)?a.replaceWithText(`}${r.getLiteralText()}\${`):a.isKind(rc.ts.SyntaxKind.TemplateTail)&&a.replaceWithText(`}${r.getLiteralText()}\``)),await i(r.getExpression(),t.getExpression()),{success:!0}}},{shape:rc.StringLiteralShape,async commit(r,t,{commit:i}){let a=(()=>{try{if(rc.ts.Node.isTrueLiteral(t)||rc.ts.Node.isFalseLiteral(t))return r.toBoolean();if(rc.ts.Node.isNumericLiteral(t)){let c=r.toNumber();return c.getValue().toString()===r.getValue()?c:void 0}else if((0,cCr.isDataHelper)(t)){if(!rc.ts.Node.isCallExpression(t))return;let c=(0,uCr.getCallExpressionName)(t),d=t.getArguments()[1]?.asKind(rc.ts.SyntaxKind.StringLiteral)?.getLiteralValue();return(0,rc.asDataHelper)(c,r,d)}else return}catch{return}})();return a?(await i(a,t),{success:!0}):(rc.ts.Node.isTaggedTemplateExpression(t)?t.getTemplate().replaceWithText(new rc.TemplateExpressionShape({source:r,literalText:r}).getCode()):t.replaceWithText(r.getCode()),{success:!0})}},{shape:rc.NumberShape,commit(r,t){return rc.ts.Node.isNumericLiteral(t)&&t.getLiteralValue()===r.getValue()?{success:!0}:(t.replaceWithText(r.getValue().toString()),{success:!0})}},{shape:rc.BooleanShape,commit(r,t){return(rc.ts.Node.isTrueLiteral(t)||rc.ts.Node.isFalseLiteral(t))&&t.getLiteralValue()===r.getValue()?{success:!0}:(t.replaceWithText(r.getValue().toString()),{success:!0})}},{shape:rc.ArrayShape,async commit(r,t,{commit:i}){if(!rc.ts.Node.isArrayLiteralExpression(t))return t.replaceWithText(r.getCode()),{success:!0};let a=t.getElements(),c=r.getElements(!1),d=a.length-c.length;for(let g=1;g<=d;g++)t.removeElement(a.length-g);for(let[g,v]of t.getElements().entries())await i(r.getElement(g,!1),v);let f=c.slice(t.getElements().length).map(g=>g.getCode());return f.length>0&&t.addElements(f),{success:!0}}},{shape:rc.ObjectShape,async commit(r,t,{commit:i}){if(!rc.ts.Node.isObjectLiteralExpression(t))return t.replaceWithText(r.getCode()),{success:!0};let a=t.getProperties().filter(g=>g.isKind(rc.ts.SyntaxKind.PropertyAssignment)).reduce((g,v)=>g.set(dCr(v),v.getInitializerOrThrow()),new Map),c=new Set(["$meta"]),d=[];for(let[g,v]of r.entries({resolve:!1})){let S=[...r.getAliases(g),g].find(E=>a.has(E));S!==void 0?(S!==g&&t.getPropertyOrThrow(S).asKindOrThrow(rc.ts.SyntaxKind.PropertyAssignment).getNameNode().replaceWithText(g),await i(v,a.get(S))):v.equals(r.getDefault(g))||d.push({name:rc.ObjectShape.quotePropertyNameIfNeeded(g),initializer:v.getCode(),kind:rc.ts.StructureKind.PropertyAssignment}),c.add(g)}return d.length>0&&t.addPropertyAssignments(d),[...a.keys()].filter(g=>!c.has(g)).forEach(g=>{t.getProperty(g)?.asKindOrThrow(rc.ts.SyntaxKind.PropertyAssignment).remove()}),{success:!0}}},{shape:rc.IdentifierShape,commit(r,t){return rc.ts.Node.isIdentifier(t)&&t.getText()===r.getName()?{success:!0}:(t.replaceWithText(r.getName()),{success:!0})}},{shape:rc.VariableStatementShape,async commit(r,t,{commit:i}){if(rc.ts.Node.isExpressionStatement(t))return t.replaceWithText(r.getCode()),{success:!0};if(rc.ts.Node.isCallExpression(t)){let g=t.getParentIfKind(rc.ts.SyntaxKind.ExpressionStatement);if(g)return g.replaceWithText(r.getCode()),{success:!0}}let a=rc.ts.Node.isVariableStatement(t)?t:t.getFirstAncestorByKindOrThrow(rc.ts.SyntaxKind.VariableStatement);a.isExported()!==r.isExported()&&a.setIsExported(r.isExported());let[c,d]=a.getDeclarations();if(!c)throw new Error(`Variable statement is missing a declaration: ${a.getFullText()}`);d&&((0,rc.removeReferences)(d),(0,rc.remove)(d));let f=r.getVariableName();return c.getName()!==f.getName()&&await i(f,c.getNameNode()),await i(r.getInitializer(),c.getInitializerOrThrow()),{success:!0}}}],nodes:[{node:"SourceFile",async toShape(r,{diagnostics:t,transform:i}){if((0,rc.isFluentFile)(r)){let a=r.getChildSyntaxList();if(!a)return t.error(r,"Fluent source file contains no meaningful content."),{success:!1};for(let c of a.getChildren()){if(rc.ts.Node.isCommentNode(c))continue;if(!(await i.toShape(c)).success)return t.error(c,"Unsupported statement in Fluent source file."),{success:!1}}}return{success:!0,value:new rc.SourceFileShape({source:r,path:r.getFilePath(),content:r.getFullText()})}}},{node:"StringLiteral",toShape(r){return{success:!0,value:new rc.StringLiteralShape({source:r,literalText:r.getLiteralValue()})}}},{node:"NoSubstitutionTemplateLiteral",toShape(r){return{success:!0,value:new rc.TemplateExpressionShape({source:r,literalText:r.getLiteralValue()})}}},{node:"NumericLiteral",toShape(r){return{success:!0,value:new rc.NumberShape({source:r,value:r.getLiteralValue()})}}},{node:"NullKeyword",toShape(r){return{success:!0,value:new rc.UndefinedShape({source:r})}}},{node:"TrueKeyword",toShape(r){return{success:!0,value:new rc.BooleanShape({source:r,value:!0})}}},{node:"FalseKeyword",toShape(r){return{success:!0,value:new rc.BooleanShape({source:r,value:!1})}}},{node:"AsExpression",toShape(r,{transform:t}){return t.toShape(r.getExpression())}},{node:"ExportAssignment",toShape(r,{transform:t}){return t.toShape(r.getExpression())}},{node:"ComputedPropertyName",toShape(r,{transform:t}){return t.toShape(r.getExpression())}},{node:"PropertyAccessExpression",async toShape(r,{transform:t,diagnostics:i}){let a=r.getNameNode(),c=await t.toShape(a);if(!c.success||!c.value.isIdentifier())return i.error(a,"Last element of property access expression is unsupported"),{success:!1};let d=r.getExpression(),f=await t.toShape(d);if(!f.success||!f.value.is([rc.IdentifierShape,rc.PropertyAccessShape]))return i.error(d,"Left side of property access expression is unsupported"),{success:!1};let g=f.value.isIdentifier()?[f.value,c.value]:[...f.value.getElements(),c.value];return{success:!0,value:new rc.PropertyAccessShape({source:r,elements:g})}}},{node:"ExpressionStatement",toShape(r,{transform:t}){return t.toShape(r.getExpression())}},{node:"Identifier",async toShape(r,{transform:t}){if((0,rc.isUndefined)(r))return{success:!0,value:new rc.UndefinedShape({source:r})};let i=r.getSymbol()?.getName()??r.getText(),a=(0,rc.getValueDeclaration)(r),c=a&&await t.toShape(a);return{success:!0,value:c?.success?new rc.IdentifierShape({source:r,name:i,value:c.value}):new rc.IdentifierShape({source:r,name:i})}}},{node:"Parameter",toShape(r){return{success:!0,value:new rc.IdentifierShape({source:r,name:r.getName()})}}},{node:"VariableStatement",async toShape(r,{transform:t,diagnostics:i}){let a=r.getDeclarationKind();if(a!==rc.ts.VariableDeclarationKind.Const)return i.error(r.getDeclarationKindKeywords()[0]??r,`Declaration kind "${a}" is not supported. Only const variables are supported.`),{success:!1};let c=r.getDefaultKeyword();if(c)return i.error(c,"Default exports are not supported"),{success:!1};let[d,f]=r.getDeclarations();if(!d)return i.error(r,"Missing declaration in variable statement"),{success:!1};if(f)return i.error(f,"Additional declarations in variable statements are not supported"),{success:!1};let g=d.getInitializerOrThrow(),v=await t.toShape(g);return v.success?{success:!0,value:new rc.VariableStatementShape({source:r,variableName:new rc.IdentifierShape({source:r,name:d.getName()}),initializer:v.value,isExported:r.isExported()})}:(i.error(g,"Unsupported variable initializer"),{success:!1})}},{node:"VariableDeclaration",toShape(r,{transform:t}){let i=r.getInitializer();return i?t.toShape(i):{success:!0,value:new rc.UndefinedShape({source:r})}}},{node:"ArrayLiteralExpression",async toShape(r,{transform:t}){let i=[];for(let a of r.getElements()){let c=await t.toShape(a);if(!c.success)return{success:!1};i.push(c.value)}return{success:!0,value:new rc.ArrayShape({source:r,elements:i})}}},{node:"PropertyAssignment",toShape(r,{transform:t,diagnostics:i}){let a=r.getInitializer();return a?t.toShape(a):(i.error(r,"Property must have an initializer"),{success:!1})}},{node:"ObjectLiteralExpression",async toShape(r,{transform:t,diagnostics:i}){let a={};for(let c of r.getProperties()){if(!rc.ts.Node.isPropertyAssignment(c)){i.error(c,"Only property assignments are allowed");continue}let d=await t.toShape(c);if(!d.success)return i.error(c,"Failed to parse property"),{success:!1};let f=c.getNameNode(),g=rc.ts.Node.isStringLiteral(f)?f.getLiteralValue():c.getName();a[g]=d.value}return{success:!0,value:new rc.ObjectShape({source:r,properties:a})}}},{node:"TemplateSpan",async toShape(r,{transform:t,diagnostics:i}){let a=await t.toShape(r.getExpression());return a.success?{success:!0,value:new rc.TemplateSpanShape({source:r,expression:a.value,literalText:r.getLiteral().getLiteralText()})}:(i.error(r,"Unsupported expression in template"),{success:!1})}},{node:"TemplateExpression",async toShape(r,{transform:t,diagnostics:i}){let a=[];for(let c of r.getTemplateSpans()){let d=await t.toShape(c);if(!d.success||!d.value.is(rc.TemplateSpanShape))return i.error(c,"Unsupported span in template expression"),{success:!1};a.push(d.value)}return{success:!0,value:new rc.TemplateExpressionShape({source:r,literalText:r.getHead().getLiteralText(),spans:a})}}},{node:"TaggedTemplateExpression",async toShape(r,{transform:t,diagnostics:i}){let a=r.getTemplate(),c=await t.toShape(a);return!c.success||!c.value.is(rc.TemplateExpressionShape)?(i.error(a,"Unsupported template in tagged template expression"),{success:!1}):{success:!0,value:new rc.TaggedTemplateExpressionShape({source:r,tag:r.getTag().getText(),template:c.value})}}},{node:"PrefixUnaryExpression",toShape(r,{diagnostics:t}){return!rc.ts.Node.isNumericLiteral(r.getOperand())||r.getOperatorToken()!==rc.ts.SyntaxKind.MinusToken?(t.error(r,"Unsupported prefix unary expression"),{success:!1}):{success:!0,value:new rc.NumberShape({source:r,value:-r.getOperand().asKindOrThrow(rc.ts.SyntaxKind.NumericLiteral).getLiteralValue()})}}},{node:"ElementAccessExpression",async toShape(r,{transform:t,diagnostics:i}){let a=r.getArgumentExpression();if(!a)return i.error(r,"Element access expression must have an argument"),{success:!1};let c=await t.toShape(a);return c.success?{success:!0,value:new rc.ElementAccessExpressionShape({source:r,callee:r.getExpression().getText(),arg:c.value})}:(i.error(r,"Unsupported element access expression argument"),{success:!1})}},{node:"ImportDeclaration",toShape(r){return{success:!0,value:rc.Shape.noOp(r)}}},{node:"ExportDeclaration",toShape(r){return{success:!0,value:rc.Shape.noOp(r)}}}]});function dCr(r){let t=r.getNameNode();return rc.ts.Node.isStringLiteral(t)||rc.ts.Node.isNoSubstitutionTemplateLiteral(t)?t.getLiteralValue():t.getText()}e(dCr,"getName")});var zbe=Je(m8e=>{"use strict";V();G();U();z();Object.defineProperty(m8e,"__esModule",{value:!0});m8e.CallExpressionPlugin=void 0;var Vbe=Vs(),pCr=nS();m8e.CallExpressionPlugin=Vbe.Plugin.create({name:"CallExpressionPlugin",nodes:[{node:"CallExpression",fileTypes:["fluent"],entryPoint:!0,async toShape(r,{transform:t}){let i=[];for(let a of r.getArguments()){let c=await t.toShape(a);if(!c.success)return{success:!1};i.push(c.value)}return{success:!0,value:new Vbe.CallExpressionShape({source:r,callee:(0,pCr.getCallExpressionName)(r),args:i})}}}],shapes:[{shape:Vbe.CallExpressionShape,async commit(r,t,{commit:i}){if(t.isKind(Vbe.ts.SyntaxKind.ExpressionStatement)&&(t=t.getExpression()),!Vbe.ts.Node.isCallExpression(t))return t.replaceWithText(r.getCode()),{success:!0};let a=t.getExpression();a.getText()!==r.getCallee()&&a.replaceWithText(r.getCallee());let c=t.getArguments(),d=r.getArguments(!1),f=c.length-d.length;for(let v=1;v<=f;v++)t.removeArgument(c.length-v);for(let[v,S]of t.getArguments().entries())await i(r.getArgument(v,!1),S);let g=d.slice(t.getArguments().length).map(v=>v.getCode());return g.length>0&&t.addArguments(g),{success:!0}}}]})});var oq=Je(Oce=>{"use strict";V();G();U();z();Object.defineProperty(Oce,"__esModule",{value:!0});Oce.NowIncludePlugin=Oce.NowIncludeShape=void 0;var _8=Vs(),fCr=zbe(),Hte=class r extends _8.CallExpressionShape{static{e(this,"NowIncludeShape")}includedText;constructor({source:t,path:i,includedText:a}){super({source:t,callee:"Now.include",args:[i]}),this.includedText=a}getPath(){return this.getArgument(0).asString().getValue()}getValue(){return this.includedText}toString(){return _8.Shape.from(this,this.getValue()).asString().withContentType("cdata")}equals(t){return typeof t=="string"?this.includedText===t:t instanceof _8.Shape?t.equals(this.includedText):super.equals(t)}static async fromRecord(t,i,a){let c=_8.taxonomySchemaDefault[t.getTable()],d=c?.startsWith("client-development")?".client":c?.startsWith("server-development")?".server":"";return new r({source:t,path:`./${await a.getUpdateName(t)}${d}.js`,includedText:i instanceof _8.Shape?i.toString().getValue():i})}};Oce.NowIncludeShape=Hte;Oce.NowIncludePlugin=_8.Plugin.create({name:"NowIncludePlugin",shapes:[{shape:_8.CallExpressionShape,fileTypes:["fluent"],toSubclass(r,{diagnostics:t,project:i}){if(r.getCallee()!=="Now.include")return{success:!1};let a=r.getArgument(0);if(!a.isString())return t.error(a,"Now.include() must have a string argument"),{success:!1};let c=a.getValue();if(!/^\.\.?\/.*$/.test(c.trim())&&c.includes("/"))return t.error(a,"Now.include() argument must be a relative path"),{success:!1};let d=_8.path.resolve(_8.path.dirname(r.getOriginalFilePath()),c);if(!i.isInRootDir(d))return t.error(a,`Included file path is not within project: ${d}`),{success:!1};let f;try{f=i.addFile(d,{resolveDependencies:!1,excludeFromCompiler:!0})}catch(g){return t.error(a,`Failed to include file. Reason: ${g instanceof Error?g.message:g}`),{success:!1}}return{success:!0,value:new Hte({source:r,path:c,includedText:f.getContent()})}}},{shape:Hte,async commit(r,t,{transform:i,commit:a,project:c,fs:d}){let f=await i.toShape(t);if(!f.success)return{success:!1};let g=t.getSourceFile().getDirectoryPath(),v=c.resolvePath(g,r.getPath()),{value:S}=f;return S.equals(r.getValue())?{success:!0}:(S.is(Hte)?c.getFile(c.resolvePath(g,S.getPath())).setContent(r.getValue()):S.is(_8.CallExpressionShape)&&S.getCallee()==="Now.include"?(await a(r,t,fCr.CallExpressionPlugin),_8.FileSystem.existsSync(d,v)?c.addFile(v,{resolveDependencies:!1,excludeFromCompiler:!0}).setContent(r.getValue()):c.addFile({path:v,content:r.getValue()},{resolveDependencies:!1,excludeFromCompiler:!0})):t.replaceWithText(r.toString().getCode()),{success:!0})}},{shape:_8.StringShape,async commit(r,t,{transform:i,project:a}){let c=await i.toShape(t);if(!c.success)return{success:!1};let d=c.value.ifIdentifier()?.resolve()??c.value;if(!d.is(Hte))return{success:!1};if(!r.equals(d.getValue())){let f=t.getSourceFile().getDirectoryPath();a.getFile(a.resolvePath(f,d.getPath())).setContent(r.getValue())}return{success:!0}}}]})});var tcn=Je(h8e=>{"use strict";V();G();U();z();Object.defineProperty(h8e,"__esModule",{value:!0});h8e.ClientScriptPlugin=void 0;var eht=Vs(),_Cr=Zm(),Zln=nS(),mCr=oq(),Ube;(function(r){r[r.desktop=0]="desktop",r[r.mobile_or_service_portal=1]="mobile_or_service_portal",r[r.all=10]="all"})(Ube||(Ube={}));var ecn={appliesExtended:["applies_extended"],isolateScript:["isolate_script"],uiType:["ui_type"]};h8e.ClientScriptPlugin=eht.Plugin.create({name:"ClientScriptPlugin",records:{sys_script_client:{async toShape(r,{transform:t}){let i=await mCr.NowIncludeShape.fromRecord(r,r.get("script"),t);return{success:!0,value:new eht.CallExpressionShape({source:r,callee:"ClientScript",args:[r.transform(({$:a,merge:c})=>({$id:a.val(_Cr.NowIdShape.from(r)),type:a.def(""),table:a,appliesExtended:a.from("applies_extended").toBoolean().def(!1),isolateScript:a.from("isolate_script").toBoolean().def(!1),script:a.val(i),name:a,description:a.def(""),messages:a.def(""),global:a.toBoolean().def(!0),active:a.toBoolean().def(!0),view:a.def(""),uiType:a.from("ui_type").map(d=>hCr(d.toNumber().getValue())).def("desktop"),[c]:a.from("field","type").map((d,f)=>f.isString()&&["onChange","onCellEdit"].includes(f.getValue())&&!d.ifString()?.isEmpty()?{field:d}:{})})).withAliasedKeys(ecn)]})}}}},shapes:[{shape:eht.CallExpressionShape,fileTypes:["fluent"],async toRecord(r,{diagnostics:t,factory:i,compiler:a}){if(r.getCallee()!=="ClientScript")return{success:!1};let c=r.getArgument(0).asObject().withAliasedKeys(ecn);(0,Zln.generateDeprecatedDiagnostics)(c,t);let d=c.get("script").ifDefined()?.toString().getValue(),f=c.get("type").ifString()?.getValue();return c.get("field").ifString()?.getValue()&&!f&&t.error(c.get("field"),"Field values are allowed only when type is set to onChange or onCellEdit"),d&&!(0,Zln.validateClientSideScript)(d,a)&&t.error(c.get("script"),"Client side scripts cannot import or require modules."),{success:!0,value:await i.createRecord({source:r,table:"sys_script_client",explicitId:c.get("$id"),properties:c.transform(({$:v})=>({table:v,global:v.def(!0),view:v,field:v,script:v.toCdata(),type:v,name:v,active:v.def(!0),applies_extended:v.from("appliesExtended").def(!1),description:v,messages:v,isolate_script:v.from("isolateScript").def(!1),ui_type:v.from("uiType").map(S=>S.isString()?gCr(S.getValue()):void 0).def(0)}))})}}}]});function hCr(r){let t=Ube[r];if(!t)throw Error("Invalid UI Type encountered, check XML data before transforming again.");return t}e(hCr,"getUITypeFromId");function gCr(r){if(r in Ube)return Ube[r];throw Error("Invalid ui_type found in xml")}e(gCr,"getUITypeId")});var rcn=Je(g8e=>{"use strict";V();G();U();z();Object.defineProperty(g8e,"__esModule",{value:!0});g8e.CrossScopePrivilegePlugin=void 0;var tht=Vs(),yCr=Zm(),vCr=nS(),ncn={targetName:["target_name"],targetScope:["target_scope"],targetType:["target_type"]};g8e.CrossScopePrivilegePlugin=tht.Plugin.create({name:"CrossScopePrivilegePlugin",records:{sys_scope_privilege:{relationships:{sys_scope:{via:"target_scope",inverse:!0}},toShape(r){return{success:!0,value:new tht.CallExpressionShape({source:r,callee:"CrossScopePrivilege",args:[r.transform(({$:t})=>({$id:t.val(yCr.NowIdShape.from(r)),operation:t,status:t,targetName:t.from("target_name"),targetScope:t.from("target_scope"),targetType:t.from("target_type")})).withAliasedKeys(ncn)]})}}}},shapes:[{shape:tht.CallExpressionShape,fileTypes:["fluent"],async toRecord(r,{factory:t,config:i,diagnostics:a}){if(r.getCallee()!=="CrossScopePrivilege")return{success:!1};let c=r.getArgument(0).asObject().withAliasedKeys(ncn);(0,vCr.generateDeprecatedDiagnostics)(c,a);let d=c.get("targetScope"),f=d.isString()?await t.createReference({source:d,table:"sys_scope",guid:d}):void 0;return{success:!0,value:await t.createRecord({source:r,table:"sys_scope_privilege",explicitId:c.get("$id"),properties:c.transform(({$:g})=>({operation:g,status:g,target_name:g.from("targetName"),target_scope:g.val(f),target_type:g.from("targetType"),source_scope:g.val(i.scopeId)}))})}}}]})});var icn=Je(nht=>{"use strict";V();G();U();z();Object.defineProperty(nht,"__esModule",{value:!0});nht.ApplicationMenu=bCr;function bCr(r){return r}e(bCr,"ApplicationMenu")});var ocn=Je(rht=>{"use strict";V();G();U();z();Object.defineProperty(rht,"__esModule",{value:!0});rht.Property=SCr;function SCr(r){return r}e(SCr,"Property")});var acn=Je(iht=>{"use strict";V();G();U();z();Object.defineProperty(iht,"__esModule",{value:!0});iht.UserPreference=ECr;function ECr(r){return r}e(ECr,"UserPreference")});var scn=Je(oht=>{"use strict";V();G();U();z();Object.defineProperty(oht,"__esModule",{value:!0});oht.CrossScopePrivilege=xCr;function xCr(r){return r}e(xCr,"CrossScopePrivilege")});var lcn=Je(aht=>{"use strict";V();G();U();z();Object.defineProperty(aht,"__esModule",{value:!0});aht.BusinessRule=TCr;function TCr(r){return r}e(TCr,"BusinessRule")});var ccn=Je(m8=>{"use strict";V();G();U();z();Object.defineProperty(m8,"__esModule",{value:!0});m8.AclAttributes=m8.AclOperations=m8.AclTypes=m8.AclNamedTypes=void 0;m8.Acl=ACr;var DCr={ux_data_broker:"6d9c40e9531210101cb3ddeeff7b12f6",pd_action:"pd_action",record:"record"};m8.AclNamedTypes={client_callable_flow_object:"client_callable_flow_object",client_callable_script_include:"client_callable_script_include",graphql:"GraphQL",processor:"processor",rest_endpoint:"REST_Endpoint",ui_page:"ui_page",ux_page:"b9eb8a1b873303002941b53046cb0b18",ux_route:"b9eb8a1b873303002941b53046cb1234"};m8.AclTypes={...DCr,...m8.AclNamedTypes};m8.AclOperations={execute:"execute",create:"create",read:"read",write:"write",delete:"delete",conditional_table_query_range:"7aad4c50b7f4621062b62181ce11a918",data_fabric:"e60cd19b4f602210f2c160cc32ce0b06",query_match:"521c7497b7300210240b06dd1e11a979",query_range:"e66cf897b7300210240b06dd1e11a9fd",edit_task_relations:"b718b0e2c0a80204005b2705d3b6a0a0",edit_ci_relations:"b7199572c0a8020400ee6d907c07d6cc",save_as_template:"e5a2b9c50a0a0bc5005dd4a3096ac37b",add_to_list:"394af8150a0a0b270096f5ac9d6bac47",report_on:"f6861c32c0a8016400647951e901525d",list_edit:"54f535270a0a0b8c007c67009ab2bdc0",report_view:"0997ab83733303005978e4b9cdf6a7b9",personalize_choices:"76742c60c0a801657735f3789a7327d0"};m8.AclAttributes={user_is_authenticated:"239bdf0c47d23110ba46ff58936d4330",has_admin_role:"8637f144b732111074f706dd1e11a981"};function ACr(r){return r}e(ACr,"Acl")});var ucn=Je(sht=>{"use strict";V();G();U();z();Object.defineProperty(sht,"__esModule",{value:!0});sht.Role=CCr;function CCr(r){return r}e(CCr,"Role")});var pcn=Je(dcn=>{"use strict";V();G();U();z();Object.defineProperty(dcn,"__esModule",{value:!0})});var _cn=Je(fcn=>{"use strict";V();G();U();z();Object.defineProperty(fcn,"__esModule",{value:!0})});var hcn=Je(mcn=>{"use strict";V();G();U();z();Object.defineProperty(mcn,"__esModule",{value:!0})});var ycn=Je(gcn=>{"use strict";V();G();U();z();Object.defineProperty(gcn,"__esModule",{value:!0})});var bcn=Je(vcn=>{"use strict";V();G();U();z();Object.defineProperty(vcn,"__esModule",{value:!0})});var Ecn=Je(Scn=>{"use strict";V();G();U();z();Object.defineProperty(Scn,"__esModule",{value:!0})});var Tcn=Je(xcn=>{"use strict";V();G();U();z();Object.defineProperty(xcn,"__esModule",{value:!0})});var Acn=Je(Dcn=>{"use strict";V();G();U();z();Object.defineProperty(Dcn,"__esModule",{value:!0})});var Icn=Je(Ccn=>{"use strict";V();G();U();z();Object.defineProperty(Ccn,"__esModule",{value:!0})});var wcn=Je(sM=>{"use strict";V();G();U();z();var ICr=sM&&sM.__createBinding||(Object.create?function(r,t,i,a){a===void 0&&(a=i);var c=Object.getOwnPropertyDescriptor(t,i);(!c||("get"in c?!t.__esModule:c.writable||c.configurable))&&(c={enumerable:!0,get:e(function(){return t[i]},"get")}),Object.defineProperty(r,a,c)}:function(r,t,i,a){a===void 0&&(a=i),r[a]=t[i]}),u$=sM&&sM.__exportStar||function(r,t){for(var i in r)i!=="default"&&!Object.prototype.hasOwnProperty.call(t,i)&&ICr(t,r,i)};Object.defineProperty(sM,"__esModule",{value:!0});u$(pcn(),sM);u$(_cn(),sM);u$(hcn(),sM);u$(ycn(),sM);u$(bcn(),sM);u$(Ecn(),sM);u$(Tcn(),sM);u$(Acn(),sM);Icn()});var Pcn=Je(lht=>{"use strict";V();G();U();z();Object.defineProperty(lht,"__esModule",{value:!0});lht.Test=wCr;wcn();function wCr(r,t){return{inputObject:r,configurationFunction:t}}e(wCr,"Test")});var Ncn=Je(cht=>{"use strict";V();G();U();z();Object.defineProperty(cht,"__esModule",{value:!0});cht.ImportSet=PCr;function PCr(r){return r}e(PCr,"ImportSet")});var Rcn=Je(uht=>{"use strict";V();G();U();z();Object.defineProperty(uht,"__esModule",{value:!0});uht.Sla=NCr;function NCr(r){return r}e(NCr,"Sla")});var y8e=Je(rP=>{"use strict";V();G();U();z();var RCr=rP&&rP.__createBinding||(Object.create?function(r,t,i,a){a===void 0&&(a=i);var c=Object.getOwnPropertyDescriptor(t,i);(!c||("get"in c?!t.__esModule:c.writable||c.configurable))&&(c={enumerable:!0,get:e(function(){return t[i]},"get")}),Object.defineProperty(r,a,c)}:function(r,t,i,a){a===void 0&&(a=i),r[a]=t[i]}),jj=rP&&rP.__exportStar||function(r,t){for(var i in r)i!=="default"&&!Object.prototype.hasOwnProperty.call(t,i)&&RCr(t,r,i)};Object.defineProperty(rP,"__esModule",{value:!0});jj(icn(),rP);jj(ocn(),rP);jj(acn(),rP);jj(scn(),rP);jj(lcn(),rP);jj(ccn(),rP);jj(ucn(),rP);jj(Pcn(),rP);jj(Ncn(),rP);jj(Rcn(),rP)});var Lcn=Je(dht=>{"use strict";V();G();U();z();Object.defineProperty(dht,"__esModule",{value:!0});dht.SPAngularProvider=LCr;function LCr(r){return r}e(LCr,"SPAngularProvider")});var Mcn=Je(Gbe=>{"use strict";V();G();U();z();Object.defineProperty(Gbe,"__esModule",{value:!0});Gbe.SPWidgetDependency=MCr;Gbe.JsInclude=kCr;Gbe.CssInclude=OCr;function MCr(r){return r}e(MCr,"SPWidgetDependency");function kCr(r){return r}e(kCr,"JsInclude");function OCr(r){return r}e(OCr,"CssInclude")});var kcn=Je(qbe=>{"use strict";V();G();U();z();Object.defineProperty(qbe,"__esModule",{value:!0});qbe.WidgetCategories=void 0;qbe.SPWidget=FCr;qbe.WidgetCategories={standard:"standard",otherApplications:"other",custom:"custom",sample:"sample",knowledgeBase:"kb",servicePortal:"sp_platform",serviceCatalog:"sc"};function FCr(r){return r}e(FCr,"SPWidget")});var fht=Je(aq=>{"use strict";V();G();U();z();var BCr=aq&&aq.__createBinding||(Object.create?function(r,t,i,a){a===void 0&&(a=i);var c=Object.getOwnPropertyDescriptor(t,i);(!c||("get"in c?!t.__esModule:c.writable||c.configurable))&&(c={enumerable:!0,get:e(function(){return t[i]},"get")}),Object.defineProperty(r,a,c)}:function(r,t,i,a){a===void 0&&(a=i),r[a]=t[i]}),pht=aq&&aq.__exportStar||function(r,t){for(var i in r)i!=="default"&&!Object.prototype.hasOwnProperty.call(t,i)&&BCr(t,r,i)};Object.defineProperty(aq,"__esModule",{value:!0});pht(Lcn(),aq);pht(Mcn(),aq);pht(kcn(),aq)});var Ocn=Je(_ht=>{"use strict";V();G();U();z();Object.defineProperty(_ht,"__esModule",{value:!0});_ht.AttachmentVariable=WCr;function WCr(r){return r}e(WCr,"AttachmentVariable")});var Fcn=Je(mht=>{"use strict";V();G();U();z();Object.defineProperty(mht,"__esModule",{value:!0});mht.BreakVariable=jCr;function jCr(r){return r}e(jCr,"BreakVariable")});var Wcn=Je(Bcn=>{"use strict";V();G();U();z();Object.defineProperty(Bcn,"__esModule",{value:!0})});var jcn=Je(hht=>{"use strict";V();G();U();z();Object.defineProperty(hht,"__esModule",{value:!0});hht.CheckboxVariable=VCr;function VCr(r){return r}e(VCr,"CheckboxVariable")});var Vcn=Je(ght=>{"use strict";V();G();U();z();Object.defineProperty(ght,"__esModule",{value:!0});ght.ContainerEndVariable=zCr;function zCr(r){return r}e(zCr,"ContainerEndVariable")});var zcn=Je(yht=>{"use strict";V();G();U();z();Object.defineProperty(yht,"__esModule",{value:!0});yht.ContainerSplitVariable=UCr;function UCr(r){return r}e(UCr,"ContainerSplitVariable")});var Ucn=Je(vht=>{"use strict";V();G();U();z();Object.defineProperty(vht,"__esModule",{value:!0});vht.ContainerStartVariable=GCr;function GCr(r){return r}e(GCr,"ContainerStartVariable")});var Gcn=Je(bht=>{"use strict";V();G();U();z();Object.defineProperty(bht,"__esModule",{value:!0});bht.CustomVariable=qCr;function qCr(r){return r}e(qCr,"CustomVariable")});var qcn=Je(Sht=>{"use strict";V();G();U();z();Object.defineProperty(Sht,"__esModule",{value:!0});Sht.CustomWithLabelVariable=HCr;function HCr(r){return r}e(HCr,"CustomWithLabelVariable")});var Hcn=Je(Eht=>{"use strict";V();G();U();z();Object.defineProperty(Eht,"__esModule",{value:!0});Eht.DateVariable=KCr;function KCr(r){return r}e(KCr,"DateVariable")});var Kcn=Je(xht=>{"use strict";V();G();U();z();Object.defineProperty(xht,"__esModule",{value:!0});xht.DateTimeVariable=JCr;function JCr(r){return r}e(JCr,"DateTimeVariable")});var Jcn=Je(Tht=>{"use strict";V();G();U();z();Object.defineProperty(Tht,"__esModule",{value:!0});Tht.DurationVariable=XCr;function XCr(r){return r}e(XCr,"DurationVariable")});var Xcn=Je(Dht=>{"use strict";V();G();U();z();Object.defineProperty(Dht,"__esModule",{value:!0});Dht.EmailVariable=$Cr;function $Cr(r){return r}e($Cr,"EmailVariable")});var $cn=Je(Aht=>{"use strict";V();G();U();z();Object.defineProperty(Aht,"__esModule",{value:!0});Aht.HtmlVariable=YCr;function YCr(r){return r}e(YCr,"HtmlVariable")});var Ycn=Je(Cht=>{"use strict";V();G();U();z();Object.defineProperty(Cht,"__esModule",{value:!0});Cht.IpAddressVariable=QCr;function QCr(r){return r}e(QCr,"IpAddressVariable")});var Qcn=Je(Iht=>{"use strict";V();G();U();z();Object.defineProperty(Iht,"__esModule",{value:!0});Iht.LabelVariable=ZCr;function ZCr(r){return r}e(ZCr,"LabelVariable")});var Zcn=Je(wht=>{"use strict";V();G();U();z();Object.defineProperty(wht,"__esModule",{value:!0});wht.ListCollectorVariable=eIr;function eIr(r){return r}e(eIr,"ListCollectorVariable")});var eun=Je(Pht=>{"use strict";V();G();U();z();Object.defineProperty(Pht,"__esModule",{value:!0});Pht.LookupMultipleChoiceVariable=tIr;function tIr(r){return r}e(tIr,"LookupMultipleChoiceVariable")});var tun=Je(Nht=>{"use strict";V();G();U();z();Object.defineProperty(Nht,"__esModule",{value:!0});Nht.LookupSelectBoxVariable=nIr;function nIr(r){return r}e(nIr,"LookupSelectBoxVariable")});var nun=Je(Rht=>{"use strict";V();G();U();z();Object.defineProperty(Rht,"__esModule",{value:!0});Rht.MaskedVariable=rIr;function rIr(r){return r}e(rIr,"MaskedVariable")});var run=Je(Lht=>{"use strict";V();G();U();z();Object.defineProperty(Lht,"__esModule",{value:!0});Lht.MultiLineTextVariable=iIr;function iIr(r){return r}e(iIr,"MultiLineTextVariable")});var iun=Je(Mht=>{"use strict";V();G();U();z();Object.defineProperty(Mht,"__esModule",{value:!0});Mht.MultipleChoiceVariable=oIr;function oIr(r){return r}e(oIr,"MultipleChoiceVariable")});var oun=Je(kht=>{"use strict";V();G();U();z();Object.defineProperty(kht,"__esModule",{value:!0});kht.NumericScaleVariable=aIr;function aIr(r){return r}e(aIr,"NumericScaleVariable")});var aun=Je(Oht=>{"use strict";V();G();U();z();Object.defineProperty(Oht,"__esModule",{value:!0});Oht.ReferenceVariable=sIr;function sIr(r){return r}e(sIr,"ReferenceVariable")});var sun=Je(Fht=>{"use strict";V();G();U();z();Object.defineProperty(Fht,"__esModule",{value:!0});Fht.RequestedForVariable=lIr;function lIr(r){return r}e(lIr,"RequestedForVariable")});var lun=Je(Bht=>{"use strict";V();G();U();z();Object.defineProperty(Bht,"__esModule",{value:!0});Bht.RichTextLabelVariable=cIr;function cIr(r){return r}e(cIr,"RichTextLabelVariable")});var cun=Je(Wht=>{"use strict";V();G();U();z();Object.defineProperty(Wht,"__esModule",{value:!0});Wht.SelectBoxVariable=uIr;function uIr(r){return r}e(uIr,"SelectBoxVariable")});var uun=Je(jht=>{"use strict";V();G();U();z();Object.defineProperty(jht,"__esModule",{value:!0});jht.SingleLineTextVariable=dIr;function dIr(r){return r}e(dIr,"SingleLineTextVariable")});var dun=Je(Vht=>{"use strict";V();G();U();z();Object.defineProperty(Vht,"__esModule",{value:!0});Vht.UrlVariable=pIr;function pIr(r){return r}e(pIr,"UrlVariable")});var pun=Je(zht=>{"use strict";V();G();U();z();Object.defineProperty(zht,"__esModule",{value:!0});zht.WideSingleLineTextVariable=fIr;function fIr(r){return r}e(fIr,"WideSingleLineTextVariable")});var fun=Je(Uht=>{"use strict";V();G();U();z();Object.defineProperty(Uht,"__esModule",{value:!0});Uht.YesNoVariable=_Ir;function _Ir(r){return r}e(_Ir,"YesNoVariable")});var _un=Je(Ght=>{"use strict";V();G();U();z();Object.defineProperty(Ght,"__esModule",{value:!0});Ght.UIPageVariable=mIr;function mIr(r){return r}e(mIr,"UIPageVariable")});var mun=Je(Vh=>{"use strict";V();G();U();z();var hIr=Vh&&Vh.__createBinding||(Object.create?function(r,t,i,a){a===void 0&&(a=i);var c=Object.getOwnPropertyDescriptor(t,i);(!c||("get"in c?!t.__esModule:c.writable||c.configurable))&&(c={enumerable:!0,get:e(function(){return t[i]},"get")}),Object.defineProperty(r,a,c)}:function(r,t,i,a){a===void 0&&(a=i),r[a]=t[i]}),Ny=Vh&&Vh.__exportStar||function(r,t){for(var i in r)i!=="default"&&!Object.prototype.hasOwnProperty.call(t,i)&&hIr(t,r,i)};Object.defineProperty(Vh,"__esModule",{value:!0});Ny(Ocn(),Vh);Ny(Fcn(),Vh);Ny(Wcn(),Vh);Ny(jcn(),Vh);Ny(Vcn(),Vh);Ny(zcn(),Vh);Ny(Ucn(),Vh);Ny(Gcn(),Vh);Ny(qcn(),Vh);Ny(Hcn(),Vh);Ny(Kcn(),Vh);Ny(Jcn(),Vh);Ny(Xcn(),Vh);Ny($cn(),Vh);Ny(Ycn(),Vh);Ny(Qcn(),Vh);Ny(Zcn(),Vh);Ny(eun(),Vh);Ny(tun(),Vh);Ny(nun(),Vh);Ny(run(),Vh);Ny(iun(),Vh);Ny(oun(),Vh);Ny(aun(),Vh);Ny(sun(),Vh);Ny(lun(),Vh);Ny(cun(),Vh);Ny(uun(),Vh);Ny(dun(),Vh);Ny(pun(),Vh);Ny(fun(),Vh);Ny(_un(),Vh)});var hun=Je(qht=>{"use strict";V();G();U();z();Object.defineProperty(qht,"__esModule",{value:!0});qht.VariableSet=gIr;function gIr(r){return r}e(gIr,"VariableSet")});var gun=Je(Hht=>{"use strict";V();G();U();z();Object.defineProperty(Hht,"__esModule",{value:!0});Hht.CatalogItem=yIr;function yIr(r){return r}e(yIr,"CatalogItem")});var yun=Je(Kht=>{"use strict";V();G();U();z();Object.defineProperty(Kht,"__esModule",{value:!0});Kht.CatalogItemRecordProducer=vIr;function vIr(r){return r}e(vIr,"CatalogItemRecordProducer")});var vun=Je(Jht=>{"use strict";V();G();U();z();Object.defineProperty(Jht,"__esModule",{value:!0});Jht.CatalogUiPolicy=bIr;function bIr(r){return r}e(bIr,"CatalogUiPolicy")});var bun=Je(Xht=>{"use strict";V();G();U();z();Object.defineProperty(Xht,"__esModule",{value:!0});Xht.CatalogClientScript=SIr;function SIr(r){return r}e(SIr,"CatalogClientScript")});var $ht=Je(h8=>{"use strict";V();G();U();z();var EIr=h8&&h8.__createBinding||(Object.create?function(r,t,i,a){a===void 0&&(a=i);var c=Object.getOwnPropertyDescriptor(t,i);(!c||("get"in c?!t.__esModule:c.writable||c.configurable))&&(c={enumerable:!0,get:e(function(){return t[i]},"get")}),Object.defineProperty(r,a,c)}:function(r,t,i,a){a===void 0&&(a=i),r[a]=t[i]}),Fce=h8&&h8.__exportStar||function(r,t){for(var i in r)i!=="default"&&!Object.prototype.hasOwnProperty.call(t,i)&&EIr(t,r,i)};Object.defineProperty(h8,"__esModule",{value:!0});Fce(mun(),h8);Fce(hun(),h8);Fce(gun(),h8);Fce(yun(),h8);Fce(vun(),h8);Fce(bun(),h8)});var Sun=Je(Yht=>{"use strict";V();G();U();z();Object.defineProperty(Yht,"__esModule",{value:!0});Yht.ClientScript=xIr;function xIr(r){return r}e(xIr,"ClientScript")});var Eun=Je(Kte=>{"use strict";V();G();U();z();var TIr=Kte&&Kte.__createBinding||(Object.create?function(r,t,i,a){a===void 0&&(a=i);var c=Object.getOwnPropertyDescriptor(t,i);(!c||("get"in c?!t.__esModule:c.writable||c.configurable))&&(c={enumerable:!0,get:e(function(){return t[i]},"get")}),Object.defineProperty(r,a,c)}:function(r,t,i,a){a===void 0&&(a=i),r[a]=t[i]}),DIr=Kte&&Kte.__exportStar||function(r,t){for(var i in r)i!=="default"&&!Object.prototype.hasOwnProperty.call(t,i)&&TIr(t,r,i)};Object.defineProperty(Kte,"__esModule",{value:!0});DIr(Sun(),Kte)});var xun=Je(Qht=>{"use strict";V();G();U();z();Object.defineProperty(Qht,"__esModule",{value:!0});Qht.SysAttachment=AIr;function AIr(r){return r}e(AIr,"SysAttachment")});var Tun=Je(Zht=>{"use strict";V();G();U();z();Object.defineProperty(Zht,"__esModule",{value:!0});Zht.ScriptInclude=CIr;function CIr(r){return r}e(CIr,"ScriptInclude")});var Dun=Je(egt=>{"use strict";V();G();U();z();Object.defineProperty(egt,"__esModule",{value:!0});egt.ScriptAction=IIr;function IIr(r){return r}e(IIr,"ScriptAction")});var Aun=Je(sq=>{"use strict";V();G();U();z();var wIr=sq&&sq.__createBinding||(Object.create?function(r,t,i,a){a===void 0&&(a=i);var c=Object.getOwnPropertyDescriptor(t,i);(!c||("get"in c?!t.__esModule:c.writable||c.configurable))&&(c={enumerable:!0,get:e(function(){return t[i]},"get")}),Object.defineProperty(r,a,c)}:function(r,t,i,a){a===void 0&&(a=i),r[a]=t[i]}),tgt=sq&&sq.__exportStar||function(r,t){for(var i in r)i!=="default"&&!Object.prototype.hasOwnProperty.call(t,i)&&wIr(t,r,i)};Object.defineProperty(sq,"__esModule",{value:!0});tgt(xun(),sq);tgt(Tun(),sq);tgt(Dun(),sq)});var Cun=Je(ngt=>{"use strict";V();G();U();z();Object.defineProperty(ngt,"__esModule",{value:!0});ngt.List=PIr;function PIr(r){return r}e(PIr,"List")});var Iun=Je(rgt=>{"use strict";V();G();U();z();Object.defineProperty(rgt,"__esModule",{value:!0});rgt.UiPage=NIr;function NIr(r){return r}e(NIr,"UiPage")});var wun=Je(igt=>{"use strict";V();G();U();z();Object.defineProperty(igt,"__esModule",{value:!0});igt.UiAction=RIr;function RIr(r){return r}e(RIr,"UiAction")});var Pun=Je(ogt=>{"use strict";V();G();U();z();Object.defineProperty(ogt,"__esModule",{value:!0});ogt.UiPolicy=LIr;function LIr(r){return r}e(LIr,"UiPolicy")});var agt=Je(Vj=>{"use strict";V();G();U();z();Object.defineProperty(Vj,"__esModule",{value:!0});Vj.UiPolicy=Vj.UiAction=Vj.UiPage=Vj.List=void 0;var MIr=Cun();Object.defineProperty(Vj,"List",{enumerable:!0,get:e(function(){return MIr.List},"get")});var kIr=Iun();Object.defineProperty(Vj,"UiPage",{enumerable:!0,get:e(function(){return kIr.UiPage},"get")});var OIr=wun();Object.defineProperty(Vj,"UiAction",{enumerable:!0,get:e(function(){return OIr.UiAction},"get")});var FIr=Pun();Object.defineProperty(Vj,"UiPolicy",{enumerable:!0,get:e(function(){return FIr.UiPolicy},"get")})});var Nun=Je(sgt=>{"use strict";V();G();U();z();Object.defineProperty(sgt,"__esModule",{value:!0});sgt.Table=BIr;function BIr(r){return r}e(BIr,"Table")});var Run=Je(lgt=>{"use strict";V();G();U();z();Object.defineProperty(lgt,"__esModule",{value:!0});lgt.Record=WIr;function WIr(r){return r}e(WIr,"Record")});var Lun=Je(Jte=>{"use strict";V();G();U();z();Object.defineProperty(Jte,"__esModule",{value:!0});Jte.readOnlyOption=Jte.type=void 0;Jte.Column=jIr;Jte.type="__type__";Jte.readOnlyOption=["instance_configured","display_read_only","client_script_modifiable","strict_read_only"];function jIr(r){return r}e(jIr,"Column")});var Mun=Je(Hbe=>{"use strict";V();G();U();z();Object.defineProperty(Hbe,"__esModule",{value:!0});Hbe.choiceDropdown=void 0;Hbe.ChoiceColumn=VIr;Hbe.choiceDropdown=["none","dropdown_with_none","suggestion","dropdown_without_none"];function VIr(r){return r}e(VIr,"ChoiceColumn")});var kun=Je(Bce=>{"use strict";V();G();U();z();Object.defineProperty(Bce,"__esModule",{value:!0});Bce.StringColumn=zIr;Bce.MultiLineTextColumn=UIr;Bce.ApprovalRulesColumn=GIr;Bce.SlushBucketColumn=qIr;function zIr(r){return r}e(zIr,"StringColumn");function UIr(r){return r}e(UIr,"MultiLineTextColumn");function GIr(r){return r}e(GIr,"ApprovalRulesColumn");function qIr(r){return r}e(qIr,"SlushBucketColumn")});var Oun=Je(cgt=>{"use strict";V();G();U();z();Object.defineProperty(cgt,"__esModule",{value:!0});cgt.IntegerColumn=HIr;function HIr(r){return r}e(HIr,"IntegerColumn")});var Fun=Je(ugt=>{"use strict";V();G();U();z();Object.defineProperty(ugt,"__esModule",{value:!0});ugt.BooleanColumn=KIr;function KIr(r){return r}e(KIr,"BooleanColumn")});var Bun=Je(zj=>{"use strict";V();G();U();z();Object.defineProperty(zj,"__esModule",{value:!0});zj.DateColumn=JIr;zj.DateTimeColumn=XIr;zj.CalendarDateTimeColumn=$Ir;zj.ScheduleDateTimeColumn=YIr;zj.IntegerDateColumn=QIr;zj.DueDateColumn=ZIr;zj.BasicDateTimeColumn=e2r;zj.OtherDateColumn=t2r;function JIr(r){return r}e(JIr,"DateColumn");function XIr(r){return r}e(XIr,"DateTimeColumn");function $Ir(r){return r}e($Ir,"CalendarDateTimeColumn");function YIr(r){return r}e(YIr,"ScheduleDateTimeColumn");function QIr(r){return r}e(QIr,"IntegerDateColumn");function ZIr(r){return r}e(ZIr,"DueDateColumn");function e2r(r){return r}e(e2r,"BasicDateTimeColumn");function t2r(r){return r}e(t2r,"OtherDateColumn")});var Wun=Je(dgt=>{"use strict";V();G();U();z();Object.defineProperty(dgt,"__esModule",{value:!0});dgt.ScriptColumn=n2r;function n2r(r){return{...r,columnType:"script"}}e(n2r,"ScriptColumn")});var jun=Je(pgt=>{"use strict";V();G();U();z();Object.defineProperty(pgt,"__esModule",{value:!0});pgt.TableNameColumn=r2r;function r2r(r){return r}e(r2r,"TableNameColumn")});var Vun=Je(fgt=>{"use strict";V();G();U();z();Object.defineProperty(fgt,"__esModule",{value:!0});fgt.DocumentIdColumn=i2r;function i2r(r){return r}e(i2r,"DocumentIdColumn")});var zun=Je(_gt=>{"use strict";V();G();U();z();Object.defineProperty(_gt,"__esModule",{value:!0});_gt.ReferenceColumn=o2r;function o2r(r){return r}e(o2r,"ReferenceColumn")});var Uun=Je(mgt=>{"use strict";V();G();U();z();Object.defineProperty(mgt,"__esModule",{value:!0});mgt.ListColumn=a2r;function a2r(r){return r}e(a2r,"ListColumn")});var Gun=Je(hgt=>{"use strict";V();G();U();z();Object.defineProperty(hgt,"__esModule",{value:!0});hgt.DecimalColumn=s2r;function s2r(r){return r}e(s2r,"DecimalColumn")});var qun=Je(ggt=>{"use strict";V();G();U();z();Object.defineProperty(ggt,"__esModule",{value:!0});ggt.DomainIdColumn=l2r;function l2r(r){return r}e(l2r,"DomainIdColumn")});var Hun=Je(ygt=>{"use strict";V();G();U();z();Object.defineProperty(ygt,"__esModule",{value:!0});ygt.DomainPathColumn=c2r;function c2r(r){return r}e(c2r,"DomainPathColumn")});var Kun=Je(vgt=>{"use strict";V();G();U();z();Object.defineProperty(vgt,"__esModule",{value:!0});vgt.TemplateValueColumn=u2r;function u2r(r){return r}e(u2r,"TemplateValueColumn")});var Jun=Je(bgt=>{"use strict";V();G();U();z();Object.defineProperty(bgt,"__esModule",{value:!0});bgt.TranslatedFieldColumn=d2r;function d2r(r){return r}e(d2r,"TranslatedFieldColumn")});var Xun=Je(Sgt=>{"use strict";V();G();U();z();Object.defineProperty(Sgt,"__esModule",{value:!0});Sgt.UserRolesColumn=p2r;function p2r(r){return r}e(p2r,"UserRolesColumn")});var $un=Je(Egt=>{"use strict";V();G();U();z();Object.defineProperty(Egt,"__esModule",{value:!0});Egt.BasicImageColumn=f2r;function f2r(r){return r}e(f2r,"BasicImageColumn")});var Yun=Je(xgt=>{"use strict";V();G();U();z();Object.defineProperty(xgt,"__esModule",{value:!0});xgt.ConditionsColumn=_2r;function _2r(r){return r}e(_2r,"ConditionsColumn")});var Qun=Je(Tgt=>{"use strict";V();G();U();z();Object.defineProperty(Tgt,"__esModule",{value:!0});Tgt.TranslatedTextColumn=m2r;function m2r(r){return r}e(m2r,"TranslatedTextColumn")});var Zun=Je(Dgt=>{"use strict";V();G();U();z();Object.defineProperty(Dgt,"__esModule",{value:!0});Dgt.VersionColumn=h2r;function h2r(r){return r}e(h2r,"VersionColumn")});var edn=Je(Agt=>{"use strict";V();G();U();z();Object.defineProperty(Agt,"__esModule",{value:!0});Agt.SystemClassNameColumn=g2r;function g2r(r){return r}e(g2r,"SystemClassNameColumn")});var tdn=Je(Cgt=>{"use strict";V();G();U();z();Object.defineProperty(Cgt,"__esModule",{value:!0});Cgt.FieldNameColumn=y2r;function y2r(r){return r}e(y2r,"FieldNameColumn")});var ndn=Je(Igt=>{"use strict";V();G();U();z();Object.defineProperty(Igt,"__esModule",{value:!0});Igt.RadioColumn=v2r;function v2r(r){return r}e(v2r,"RadioColumn")});var rdn=Je(wgt=>{"use strict";V();G();U();z();Object.defineProperty(wgt,"__esModule",{value:!0});wgt.GenericColumn=b2r;function b2r(r){return r}e(b2r,"GenericColumn")});var idn=Je(Pgt=>{"use strict";V();G();U();z();Object.defineProperty(Pgt,"__esModule",{value:!0});Pgt.GuidColumn=S2r;function S2r(r){return r}e(S2r,"GuidColumn")});var odn=Je(Ngt=>{"use strict";V();G();U();z();Object.defineProperty(Ngt,"__esModule",{value:!0});Ngt.Password2Column=E2r;function E2r(r){return r}e(E2r,"Password2Column")});var adn=Je(v8e=>{"use strict";V();G();U();z();Object.defineProperty(v8e,"__esModule",{value:!0});v8e.JsonColumn=x2r;v8e.NameValuePairsColumn=T2r;function x2r(r){return r}e(x2r,"JsonColumn");function T2r(r){return r}e(T2r,"NameValuePairsColumn")});var sdn=Je(Rgt=>{"use strict";V();G();U();z();Object.defineProperty(Rgt,"__esModule",{value:!0});Rgt.UrlColumn=D2r;function D2r(r){return r}e(D2r,"UrlColumn")});var ldn=Je(Lgt=>{"use strict";V();G();U();z();Object.defineProperty(Lgt,"__esModule",{value:!0});Lgt.EmailColumn=A2r;function A2r(r){return r}e(A2r,"EmailColumn")});var cdn=Je(Mgt=>{"use strict";V();G();U();z();Object.defineProperty(Mgt,"__esModule",{value:!0});Mgt.HtmlColumn=C2r;function C2r(r){return r}e(C2r,"HtmlColumn")});var udn=Je(kgt=>{"use strict";V();G();U();z();Object.defineProperty(kgt,"__esModule",{value:!0});kgt.FloatColumn=I2r;function I2r(r){return r}e(I2r,"FloatColumn")});var ddn=Je(Ogt=>{"use strict";V();G();U();z();Object.defineProperty(Ogt,"__esModule",{value:!0});Ogt.FieldListColumn=w2r;function w2r(r){return r}e(w2r,"FieldListColumn")});var pdn=Je(b8e=>{"use strict";V();G();U();z();Object.defineProperty(b8e,"__esModule",{value:!0});b8e.DurationColumn=P2r;b8e.TimeColumn=N2r;function P2r(r){return r}e(P2r,"DurationColumn");function N2r(r){return r}e(N2r,"TimeColumn")});var fdn=Je(S8e=>{"use strict";V();G();U();z();Object.defineProperty(S8e,"__esModule",{value:!0});S8e.DayOfWeekColumn=R2r;S8e.DaysOfWeekColumn=L2r;function R2r(r){return r}e(R2r,"DayOfWeekColumn");function L2r(r){return r}e(L2r,"DaysOfWeekColumn")});var _dn=Je(Fgt=>{"use strict";V();G();U();z();Object.defineProperty(Fgt,"__esModule",{value:!0});Fgt.RecordsColumn=M2r;function M2r(r){return r}e(M2r,"RecordsColumn")});var mdn=Je(Bgt=>{"use strict";V();G();U();z();Object.defineProperty(Bgt,"__esModule",{value:!0});Bgt.UserImageColumn=k2r;function k2r(r){return{...r,columnType:"user_image"}}e(k2r,"UserImageColumn")});var bf=Je(nm=>{"use strict";V();G();U();z();var O2r=nm&&nm.__createBinding||(Object.create?function(r,t,i,a){a===void 0&&(a=i);var c=Object.getOwnPropertyDescriptor(t,i);(!c||("get"in c?!t.__esModule:c.writable||c.configurable))&&(c={enumerable:!0,get:e(function(){return t[i]},"get")}),Object.defineProperty(r,a,c)}:function(r,t,i,a){a===void 0&&(a=i),r[a]=t[i]}),Eh=nm&&nm.__exportStar||function(r,t){for(var i in r)i!=="default"&&!Object.prototype.hasOwnProperty.call(t,i)&&O2r(t,r,i)};Object.defineProperty(nm,"__esModule",{value:!0});Eh(Nun(),nm);Eh(Run(),nm);Eh(Lun(),nm);Eh(Mun(),nm);Eh(kun(),nm);Eh(Oun(),nm);Eh(Fun(),nm);Eh(Bun(),nm);Eh(Wun(),nm);Eh(jun(),nm);Eh(Vun(),nm);Eh(zun(),nm);Eh(Uun(),nm);Eh(Gun(),nm);Eh(qun(),nm);Eh(Hun(),nm);Eh(Kun(),nm);Eh(Jun(),nm);Eh(Xun(),nm);Eh($un(),nm);Eh(Yun(),nm);Eh(Qun(),nm);Eh(Zun(),nm);Eh(edn(),nm);Eh(tdn(),nm);Eh(ndn(),nm);Eh(rdn(),nm);Eh(idn(),nm);Eh(odn(),nm);Eh(adn(),nm);Eh(sdn(),nm);Eh(ldn(),nm);Eh(cdn(),nm);Eh(udn(),nm);Eh(ddn(),nm);Eh(pdn(),nm);Eh(fdn(),nm);Eh(_dn(),nm);Eh(mdn(),nm)});var hdn=Je(Wgt=>{"use strict";V();G();U();z();Object.defineProperty(Wgt,"__esModule",{value:!0});Wgt.RestApi=F2r;function F2r(r){return r}e(F2r,"RestApi")});var gdn=Je(Xte=>{"use strict";V();G();U();z();var B2r=Xte&&Xte.__createBinding||(Object.create?function(r,t,i,a){a===void 0&&(a=i);var c=Object.getOwnPropertyDescriptor(t,i);(!c||("get"in c?!t.__esModule:c.writable||c.configurable))&&(c={enumerable:!0,get:e(function(){return t[i]},"get")}),Object.defineProperty(r,a,c)}:function(r,t,i,a){a===void 0&&(a=i),r[a]=t[i]}),W2r=Xte&&Xte.__exportStar||function(r,t){for(var i in r)i!=="default"&&!Object.prototype.hasOwnProperty.call(t,i)&&B2r(t,r,i)};Object.defineProperty(Xte,"__esModule",{value:!0});W2r(hdn(),Xte)});var ydn=Je(jgt=>{"use strict";V();G();U();z();Object.defineProperty(jgt,"__esModule",{value:!0});jgt.EmailNotification=j2r;function j2r(r){return r}e(j2r,"EmailNotification")});var vdn=Je($te=>{"use strict";V();G();U();z();var V2r=$te&&$te.__createBinding||(Object.create?function(r,t,i,a){a===void 0&&(a=i);var c=Object.getOwnPropertyDescriptor(t,i);(!c||("get"in c?!t.__esModule:c.writable||c.configurable))&&(c={enumerable:!0,get:e(function(){return t[i]},"get")}),Object.defineProperty(r,a,c)}:function(r,t,i,a){a===void 0&&(a=i),r[a]=t[i]}),z2r=$te&&$te.__exportStar||function(r,t){for(var i in r)i!=="default"&&!Object.prototype.hasOwnProperty.call(t,i)&&V2r(t,r,i)};Object.defineProperty($te,"__esModule",{value:!0});z2r(ydn(),$te)});var bdn=Je(Vgt=>{"use strict";V();G();U();z();Object.defineProperty(Vgt,"__esModule",{value:!0});Vgt.Workspace=U2r;function U2r(r){return r}e(U2r,"Workspace")});var Sdn=Je(zgt=>{"use strict";V();G();U();z();Object.defineProperty(zgt,"__esModule",{value:!0});zgt.UxListMenuConfig=G2r;function G2r(r){return r}e(G2r,"UxListMenuConfig")});var Edn=Je(Ugt=>{"use strict";V();G();U();z();Object.defineProperty(Ugt,"__esModule",{value:!0});Ugt.Applicability=q2r;function q2r(r){return r}e(q2r,"Applicability")});var xdn=Je(d$=>{"use strict";V();G();U();z();Object.defineProperty(d$,"__esModule",{value:!0});d$.Applicability=d$.UxListMenuConfig=d$.Workspace=void 0;var H2r=bdn();Object.defineProperty(d$,"Workspace",{enumerable:!0,get:e(function(){return H2r.Workspace},"get")});var K2r=Sdn();Object.defineProperty(d$,"UxListMenuConfig",{enumerable:!0,get:e(function(){return K2r.UxListMenuConfig},"get")});var J2r=Edn();Object.defineProperty(d$,"Applicability",{enumerable:!0,get:e(function(){return J2r.Applicability},"get")})});var Tdn=Je(Ggt=>{"use strict";V();G();U();z();Object.defineProperty(Ggt,"__esModule",{value:!0});Ggt.Dashboard=X2r;function X2r(r){return r}e(X2r,"Dashboard")});var Ddn=Je(E8e=>{"use strict";V();G();U();z();Object.defineProperty(E8e,"__esModule",{value:!0});E8e.Dashboard=void 0;var $2r=Tdn();Object.defineProperty(E8e,"Dashboard",{enumerable:!0,get:e(function(){return $2r.Dashboard},"get")})});var wdn=Je(ene=>{"use strict";V();G();U();z();Object.defineProperty(ene,"__esModule",{value:!0});ene.TableOwnership=ene.RecordPlugin=void 0;var Wce=Vs(),Y2r=Zm(),lM=y8e(),F5=fht(),Kbe=$ht(),Q2r=Eun(),Adn=Aun(),Cdn=agt(),Idn=bf(),Yte=gdn(),Z2r=vdn(),Qte=agt(),Zte=xdn(),jce=Ddn();ene.RecordPlugin=Wce.Plugin.create({name:"RecordPlugin",records:{"*":{getUpdateName(r){return{success:!0,value:`${r.getTable()}_${r.getId().getValue()}`}},async diff(r,t){let i=r.compare(t);return{success:!0,value:i.hasChanges()?new Wce.Database(i.query()):new Wce.Database}},async toShape(r,{compiler:t}){let i=r.getTable(),a=t.getTableColumnTypes(i),c=r.transform(({$:f})=>Object.fromEntries(r.keys().filter(g=>g!=="sys_name").map(g=>{let v=r.get(g);if(a?.has(g)&&v?.isString()){let S=a.get(g);try{if(S==="boolean")return[g,f.val(v.toBoolean())];if(S==="number")return[g,f.val(v.toNumber())];if(S==="array")return[g,f.val(v.asString().split(",")).def([""])];if(S==="array-optional"){let E=v.asString().includes(",");return[g,E?f.val(v.asString().split(",")).def([""]):f]}}catch{}}return[g,v?.isString()?f.def(""):f]})));return{success:!0,value:new Wce.CallExpressionShape({source:r,callee:"Record",exportName:r.get("sys_name")?.ifDefined()?.asString().getValue(),args:[{$id:Y2r.NowIdShape.from(r),table:i,data:c}]})}},async toFile(r,{config:t,database:i,transform:a}){let c=(0,Wce.unloadBuilder)({scope:t.scope,scopeId:t.scopeId,table:r.getTable()}),d=await a.getUpdateName(r),f=c.record(r,d);r.entries().sort(([v],[S])=>v.localeCompare(S)).forEach(([v,S])=>f.field(v,S));let g=i.query("sys_claim").filter(v=>v.get("metadata_update_name").equals(d));for(let v of g){let S=await a.getUpdateName(v),E=c.record(v,S);v.entries().sort(([A],[C])=>A.localeCompare(C)).forEach(([A,C])=>E.field(A,C))}return{success:!0,value:{source:r,name:`${d}.xml`,category:r.getInstallCategory(),content:c.end()}}}}},shapes:[{shape:Wce.CallExpressionShape,fileTypes:["fluent"],async toRecord(r,{factory:t,diagnostics:i}){if(r.getCallee()!=="Record")return{success:!1};let a=r.getArgument(0).asObject(),c=a.get("table").asString().getValue(),d=ene.TableOwnership[c];return d&&i.hint(r,`For a better experience, consider using the ${d} API`),{success:!0,value:await t.createRecord({source:r,table:c,explicitId:a.get("$id"),properties:a.get("data").asObject()})}}}],files:[{matcher:/\.xml$/,async toRecord(r,{parser:t,logger:i}){try{let a=await t.parsePayload(r),c=new Map;for(let v of a){let S=`${v.getTable()}::${v.getId().getValue()}`,E=c.get(S),A=E?E.merge(v.properties()):v;c.set(S,A)}let d=Array.from(c.values()),[f,...g]=d;return f?{success:!0,value:f.with(...g)}:{success:!1}}catch(a){return i.debug(a),{success:!1}}}}]});ene.TableOwnership={contract_sla:lM.Sla.name,sys_security_acl:lM.Acl.name,sys_security_acl_role:lM.Acl.name,sys_app_application:lM.ApplicationMenu.name,sys_script:lM.BusinessRule.name,sys_script_client:Q2r.ClientScript.name,sys_scope_privilege:lM.CrossScopePrivilege.name,sys_ui_list_element:Cdn.List.name,sys_ui_list:Cdn.List.name,sys_properties:lM.Property.name,sys_user_role:lM.Role.name,sys_user_role_contains:lM.Role.name,sys_script_include:Adn.ScriptInclude.name,sp_widget:F5.SPWidget.name,m2m_sp_widget_dependency:F5.SPWidget.name,m2m_sp_ng_pro_sp_widget:F5.SPWidget.name,sp_ng_template:F5.SPWidget.name,sp_dependency:F5.SPWidgetDependency.name,m2m_sp_dependency_css_include:F5.SPWidgetDependency.name,m2m_sp_dependency_js_include:F5.SPWidgetDependency.name,sp_css_include:F5.CssInclude.name,sp_js_include:F5.JsInclude.name,sp_angular_provider:F5.SPAngularProvider.name,m2m_sp_ng_pro_sp_ng_pro:F5.SPAngularProvider.name,sys_atf_test:lM.Test.name,sys_ws_header_map:Yte.RestApi.name,sys_ws_query_parameter_map:Yte.RestApi.name,sys_ws_definition:Yte.RestApi.name,sys_ws_operation:Yte.RestApi.name,sys_ws_version:Yte.RestApi.name,sys_ws_header:Yte.RestApi.name,sys_ws_query_parameter:Yte.RestApi.name,sys_user_preference:lM.UserPreference.name,sys_ui_page:Qte.UiPage.name,sys_ui_action:Qte.UiAction.name,sys_ui_action_role:Qte.UiAction.name,sys_ui_action_view:Qte.UiAction.name,sys_ui_policy:Qte.UiPolicy.name,sys_ui_policy_action:Qte.UiPolicy.name,sys_ui_policy_rl_action:Qte.UiPolicy.name,sysevent_script_action:Adn.ScriptAction.name,sysevent_email_action:Z2r.EmailNotification.name,sys_db_object:Idn.Table.name,sys_dictionary:Idn.Table.name,sys_hub_flow:"Flow",sys_hub_trigger_instance_v2:"wfa.trigger",sys_hub_action_instance_v2:"wfa.action",sys_hub_sub_flow_instance_v2:"wfa.subflow",sys_hub_flow_logic_instance_v2:"wfa.flowLogic",sys_flow_step_definition:"ActionStepDefinition",sys_decision:"DecisionTablePlugin",sys_hub_action_type_definition:"Action",sys_hub_step_instance:"wfa.action_step",sys_transform_map:lM.ImportSet.name,sys_transform_entry:lM.ImportSet.name,sys_transform_script:lM.ImportSet.name,sys_ux_applicability:Zte.Applicability.name,sys_ux_list_menu_config:Zte.UxListMenuConfig.name,sys_ux_list_category:Zte.UxListMenuConfig.name,sys_ux_list:Zte.UxListMenuConfig.name,sys_ux_applicability_m2m_list:Zte.UxListMenuConfig.name,sys_ux_page_registry:Zte.Workspace.name,sys_ux_app_config:Zte.Workspace.name,par_dashboard:jce.Dashboard.name,par_dashboard_canvas:jce.Dashboard.name,par_dashboard_tab:jce.Dashboard.name,par_dashboard_widget:jce.Dashboard.name,par_dashboard_permission:jce.Dashboard.name,par_dashboard_visibility:jce.Dashboard.name,item_option_new_set:Kbe.VariableSet.name,sc_cat_item:Kbe.CatalogItem.name,sc_cat_item_producer:Kbe.CatalogItemRecordProducer.name,catalog_script_client:Kbe.CatalogClientScript.name,catalog_ui_policy:Kbe.CatalogUiPolicy.name}});var Pdn=Je(T8e=>{"use strict";V();G();U();z();Object.defineProperty(T8e,"__esModule",{value:!0});T8e.NowRefPlugin=void 0;var x8e=Vs(),ewr=zbe();T8e.NowRefPlugin=x8e.Plugin.create({name:"NowRefPlugin",nodes:[{node:"CallExpression",async toShape(r,{transform:t,factory:i}){let a=await t.toShape(r,ewr.CallExpressionPlugin);if(!a.success||!a.value.is(x8e.CallExpressionShape)||a.value.getCallee()!=="Now.ref")return{success:!1};let c=a.value,d=c.getArgument(0).asString("The first argument to Now.ref() must be a table name"),f=c.getArgument(1).as([x8e.StringShape,x8e.ObjectShape],"The second argument to Now.ref() must be a GUID, a Now ID string, or a coalesce keys object"),g=c.hasArgument(2)?c.getArgument(2).asObject("The third argument to Now.ref() must be a coalesce keys object"):void 0,[v,S]=g?[f.asString(),g]:f.isString()?[f.asString(),void 0]:[void 0,f.asObject()];return{success:!0,value:await i.createReference({source:r,table:d,guid:v,keys:S})}}}]})});var Ndn=Je(A8e=>{"use strict";V();G();U();z();Object.defineProperty(A8e,"__esModule",{value:!0});A8e.NowUnresolvedPlugin=void 0;var D8e=Vs();A8e.NowUnresolvedPlugin=D8e.Plugin.create({name:"NowUnresolvedPlugin",shapes:[{shape:D8e.UnresolvedShape,commit(r,t){return t.replaceWithText(r.getCode()),{success:!0}}}],nodes:[{node:"PropertyAccessExpression",fileTypes:["fluent"],toShape(r){return r.getText()!==D8e.UnresolvedShape.CODE?{success:!1}:{success:!0,value:new D8e.UnresolvedShape({source:r})}}}]})});var Mdn=Je(C8e=>{"use strict";V();G();U();z();Object.defineProperty(C8e,"__esModule",{value:!0});C8e.PropertyPlugin=void 0;var twr=Vs(),qgt=Vs(),nwr=Zm(),Rdn=e(r=>r.split(",").map(t=>t.trim()).filter(t=>t),"getRolesArray");C8e.PropertyPlugin=qgt.Plugin.create({name:"PropertyPlugin",records:{sys_properties:{toShape(r,{config:t}){return{success:!0,value:new qgt.CallExpressionShape({source:r,callee:"Property",args:[r.transform(({$:i})=>({$id:i.val(nwr.NowIdShape.from(r)),name:i.from("name","suffix").map((a,c)=>a.ifString()??(t.scope==="global"?c:`${t.scope}.${c.asString().getValue()}`)),value:i,description:i.def(""),type:i.def("string"),choices:i.map(a=>a.toString().getValue().split(/[,\n]/).map(d=>d.trim()).filter(d=>d)).def([]),isPrivate:i.from("is_private").toBoolean().def(!1),ignoreCache:i.from("ignore_cache").toBoolean().def(!1),roles:i.from("read_roles","write_roles").def({read:[],write:[]}).map((a,c)=>({read:a.ifString()?.pipe(d=>Rdn(d.getValue())),write:c.ifString()?.pipe(d=>Rdn(d.getValue()))}))}))]})}}}},shapes:[{shape:qgt.CallExpressionShape,fileTypes:["fluent"],async toRecord(r,{config:t,diagnostics:i,factory:a}){if(r.getCallee()!=="Property")return{success:!1};let c=r.getArgument(0).asObject(),d=t.scope,f=c.get("name").asString();return!(0,twr.isSNScope)(d)&&t.scope!=="global"&&!f.asString().startsWith(`${d}.`)&&i.error(f.getOriginalNode(),`Property name must begin with '${d}.'`),{success:!0,value:await a.createRecord({source:r,table:"sys_properties",explicitId:c.get("$id"),properties:c.transform(({$:g,merge:v})=>({name:g,suffix:g.from("name").map(S=>S.asString().replace(new RegExp(`^${t.scope}\\.`),"")),description:g,type:g.def("string"),value:g.toString(),is_private:g.from("isPrivate").def(!1),ignore_cache:g.from("ignoreCache").def(!1),choices:g.map(S=>S.ifArray()?.getValue().join(",")),[v]:g.from("roles").def({read_roles:"",write_roles:""}).map(S=>S.ifObject()?.transform(({$:E})=>({read_roles:E.from("read").map(A=>Ldn(A)),write_roles:E.from("write").map(A=>Ldn(A))})).properties())}))})}}}]});function Ldn(r){return r.ifArray()?.pipe(t=>Array.from(new Set(t.getElements().map(i=>i.ifRecord()?.get("name").getValue()??i.getValue()))).join(","))}e(Ldn,"getRolesString")});var Odn=Je(I8e=>{"use strict";V();G();U();z();Object.defineProperty(I8e,"__esModule",{value:!0});I8e.RolePlugin=void 0;var rwr=Vs(),Hgt=Vs(),iwr=nS(),kdn={canDelegate:["can_delegate"],elevatedPrivilege:["elevated_privilege"],assignableBy:["assignable_by"],containsRoles:["contains_roles"],scopedAdmin:["scoped_admin"]};I8e.RolePlugin=Hgt.Plugin.create({name:"RolePlugin",records:{sys_user_role:{relationships:{sys_user_role_contains:{via:"role",descendant:!0,relationships:{sys_user_role:{via:"contains",inverse:!0}}}},coalesce:["name"],toShape(r,{descendants:t}){return{success:!0,value:new Hgt.CallExpressionShape({source:r,exportName:r.get("name").ifString()?.getValue(),callee:"Role",args:[r.transform(({$:i})=>({name:i,assignableBy:i.from("assignable_by").def(""),description:i.def(""),canDelegate:i.from("can_delegate").toBoolean().def(!0),elevatedPrivilege:i.from("elevated_privilege").toBoolean().def(!1),grantable:i.toBoolean().def(!0),scopedAdmin:i.from("scoped_admin").toBoolean().def(!1),containsRoles:i.val(t.query("sys_user_role_contains").map(a=>a.get("contains").toRecordId())).def([])})).withAliasedKeys(kdn)]})}}},sys_user_role_contains:{coalesce:["role","contains"]}},shapes:[{shape:Hgt.CallExpressionShape,fileTypes:["fluent"],async toRecord(r,{config:t,diagnostics:i,factory:a}){if(r.getCallee()!=="Role")return{success:!1};let c=r.getArgument(0).asObject().withAliasedKeys(kdn);(0,iwr.generateDeprecatedDiagnostics)(c,i);let d=t.scope,f=c.get("name").asString();d!=="global"&&!(0,rwr.isSNScope)(d)&&!f.getValue().startsWith(`${d}.`)&&i.error(f.getOriginalNode(),`Role name must begin with '${d}.'`);let g=await a.createRecord({explicitId:c.get("$id"),source:r,table:"sys_user_role",properties:c.transform(({$:S})=>({name:S,assignable_by:S.from("assignableBy").def(""),can_delegate:S.from("canDelegate").def(!0),description:S.def(""),elevated_privilege:S.from("elevatedPrivilege").def(!1),grantable:S.def(!0),scoped_admin:S.from("scopedAdmin").def(!1),suffix:S.from("name").map(E=>E.asString().getValue().replace(new RegExp(`^${t.scope}\\.`),""))}))}),v=[];for(let S of c.get("containsRoles").ifArray()?.getElements()??[])v.push(await a.createRecord({source:r,table:"sys_user_role_contains",properties:{role:g,contains:S.isStringLiteral()?await a.createReference({source:S,table:"sys_user_role",keys:{name:S}}):S}}));return{success:!0,value:g.with(...v??[])}}}]})});var P8e=Je(w8e=>{"use strict";V();G();U();z();Object.defineProperty(w8e,"__esModule",{value:!0});w8e.fileExists=void 0;var owr=e(async(r,t)=>{try{return(await t.stat(r)).isFile()}catch{return!1}},"fileExists");w8e.fileExists=owr});var Vce=Je(Jbe=>{"use strict";V();G();U();z();Object.defineProperty(Jbe,"__esModule",{value:!0});Jbe.splitModuleRequest=void 0;Jbe.getRealPkgJson=pwr;var awr=(RD(),nd(ND)),swr=Vs(),lwr=P8e(),cwr=/^(@[a-z0-9-~][a-z0-9-._~]*\/|node:)?[a-z0-9-~][a-z0-9-._~]*/,uwr=e((r="")=>{let t=r.match(cwr);return t?.length&&t[0]},"getModuleName"),dwr=e(r=>{let t=uwr(r);if(!t)return{moduleName:"",entry:""};let i=swr.path.relative(t,r);return i?{moduleName:t,entry:i}:{moduleName:t,entry:""}},"splitModuleRequest");Jbe.splitModuleRequest=dwr;async function pwr(r="",t,i,a){try{let c=(0,awr.resolver)({fs:i,warn:a?.warn,ignoreExports:!0}),d=`${r}/package.json`,g=(await c(d,t))?.id,v;if(g&&await(0,lwr.fileExists)(g,i)&&(v=JSON.parse(await i.readFile(g,"utf8")),v&&"name"in v&&v.name===r))return{packageJson:v,path:g}}catch(c){console.error(`Error fetching package.json for ${r}:`,c)}}e(pwr,"getRealPkgJson")});var N8e=Je(kN=>{"use strict";V();G();U();z();Object.defineProperty(kN,"__esModule",{value:!0});kN.writePackageJson=kN.DEFAULT_EXPORTS_DIR=void 0;kN.notifyUserOfFluentDependency=mwr;kN.shouldBundlePkg=hwr;var zce=Vs(),fwr=P8e(),Wdn=Vce();kN.DEFAULT_EXPORTS_DIR=".";var _wr=["@servicenow/glide"];function mwr(r,t,i,a){if(r&&zce.NowConfig.exists(t,a)){let c=r.packageJson,{name:d}=c;i.info(`${d} is a ServiceNow Scoped App and will not be installed automatically.`),i.info(`You will be able to use JavaScript Modules from ${d} but please make sure it is installed on your ServiceNow instance to use any other application resources.`)}}e(mwr,"notifyUserOfFluentDependency");function hwr(r){if(!r)return!0;let t=r.packageJson,{name:i}=t;return!_wr.includes(i)}e(hwr,"shouldBundlePkg");var gwr=e(async(r="",t,i,a,c,d,f)=>{let g,v=zce.path.resolve(zce.path.join(a,"package.json"));if(c&&await(0,fwr.fileExists)(v,d)){g=JSON.parse(await d.readFile(v,"utf8"));let S=Fdn(t),A={...g.exports||(g.main?{[kN.DEFAULT_EXPORTS_DIR]:g.main}:{}),...S},C=Object.keys(A).length===1&&A[kN.DEFAULT_EXPORTS_DIR];g.exports?g.exports=A:C?g.main=A[kN.DEFAULT_EXPORTS_DIR]:(delete g.main,g.exports=A),g.dependencies={...g.dependencies,...await Bdn(zce.path.dirname(c.path),i,t,d)}}else if(c){g=c.packageJson;let S=!!g.exports,E=g.main;delete g.module,delete g.browser,delete g.exports,delete g.main;let A=Fdn(t),C=Object.keys(A).length===1&&A[kN.DEFAULT_EXPORTS_DIR];S?g.exports=A:E&&C?g.main=A[kN.DEFAULT_EXPORTS_DIR]:g.exports=A,g.dependencies=await Bdn(zce.path.dirname(c.path),i,t,d)}else throw new Error(`No package.json found for ${r}`);return f.writeFileSync(v,JSON.stringify(g,null,2),{encoding:"utf-8"}),{packageJsonPath:v,packageJson:g}},"writePackageJson");kN.writePackageJson=gwr;function Fdn(r){return r.reduce((i,{fileName:a,entryName:c})=>{if(c)a==="index.js"?i[kN.DEFAULT_EXPORTS_DIR]=`./${a}`:c.startsWith(kN.DEFAULT_EXPORTS_DIR)?c&&(i[c]=`./${a}`):i[`./${c}`]=`./${a}`;else return i;return i},{})}e(Fdn,"getExportsField");async function Bdn(r,t,i,a){let c=t.reduce((g,v)=>{let{moduleName:S}=(0,Wdn.splitModuleRequest)(v);return S&&!(S in g)&&(g[S]=v),g},{}),d=new Set(Object.keys(c)),f={};for(let g of d)i.some(({fileName:v})=>v===g)||(f[g]=await ywr(g,r,a));return f}e(Bdn,"getDependencies");async function ywr(r,t,i){return(await(0,Wdn.getRealPkgJson)(r,zce.path.join(t,"package.json"),i))?.packageJson?.version}e(ywr,"getDependencyVersion")});var Vdn=Je(R8e=>{"use strict";V();G();U();z();Object.defineProperty(R8e,"__esModule",{value:!0});R8e.isImportedByPolyfill=Swr;R8e.needsPolyfill=Ewr;var vwr=(RD(),nd(ND)),jdn="\0polyfill-node.",bwr=e(r=>{let t=(0,vwr.polyfill)()?.resolveId(r);return t&&t.id?t.id.startsWith(jdn):!1},"isNodeBuiltIn");function Swr(r){return r?.startsWith(jdn)}e(Swr,"isImportedByPolyfill");function Ewr(r){return bwr(r)}e(Ewr,"needsPolyfill")});var Udn=Je(Kgt=>{"use strict";V();G();U();z();Object.defineProperty(Kgt,"__esModule",{value:!0});var xwr=Vce(),zdn=Vdn();Kgt.default=r=>{let{addDependency:t,dependencyId:i}=r;return e((c,d,f)=>{let{moduleName:g,entry:v}=(0,xwr.splitModuleRequest)(c);return!g||f||g===i||(0,zdn.isImportedByPolyfill)(d)||(0,zdn.needsPolyfill)(c)?!1:(r?.cb&&r.cb({moduleName:g}),t({dependencyId:g,moduleRoot:r.moduleRoot,importer:d,subPaths:[v||"."]}),!0)},"handler")}});var Gdn=Je(Jgt=>{"use strict";V();G();U();z();Object.defineProperty(Jgt,"__esModule",{value:!0});var Twr=P8e();Jgt.default=r=>({name:"rollup-web-fs",resolveId:{order:"post",async handler(t,i){if(await(0,Twr.fileExists)(t,r.fs))return t;throw new Error(`Could not resolve import "${t}" from "${i}"`)}},load(t){return r.fs.readFile(t,"utf8")}})});var qdn=Je(Xbe=>{"use strict";V();G();U();z();var Dwr=Xbe&&Xbe.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Xbe,"__esModule",{value:!0});var Uce=(RD(),nd(ND)),Awr=Dwr(Gdn()),Cwr=e(r=>r.filter(t=>t),"compact"),Iwr=typeof self=="object"&&self.constructor&&self.constructor.name==="DedicatedWorkerGlobalScope";Xbe.default=({moduleRoot:r,rollUpFS:t,useWebFsLoader:i})=>Cwr([(0,Uce.replace)({"global*":"__global$*",preventAssignment:!0,"process.env.NODE_ENV":"production"}),(0,Uce.json)(),(0,Uce.nodeResolve)({fs:t,rootDir:r,preferBuiltins:!1}),(0,Uce.swc)({swc:{jsc:{parser:{jsx:!0,syntax:"ecmascript"}}}}),(0,Uce.commonjs)({fs:t,rootDir:r,dynamicRequireRoot:r}),(0,Uce.polyfill)({resolveEntryPoints:!1}),(Iwr||i)&&(0,Awr.default)({fs:t})])});var $gt=Je(L8e=>{"use strict";V();G();U();z();Object.defineProperty(L8e,"__esModule",{value:!0});L8e.RollupFs=void 0;var Xgt=class{static{e(this,"RollupFs")}fs;promises;constructor(t){this.fs=t,this.promises={lstat:this.lstatPromise,readdir:this.readdirPromise,readlink:this.readlinkPromise,realpath:this.realpath}}lstatSync;readdirSync;readlinkSync;realpath(t){return new Promise((i,a)=>{try{i(this.fs.realpathSync(t))}catch(c){a(c)}})}realpathSync(t){return this.fs.realpathSync(t)}async access(t){try{return!!this.fs.statSync(t)}catch{return!1}}readFile(t,i){return new Promise((a,c)=>{try{let d=i?{encoding:"utf-8"}:void 0;a(this.fs.readFileSync(t,d))}catch(d){c(d)}})}stat(t){return new Promise((i,a)=>{try{i(this.fs.statSync(t))}catch(c){a(c)}})}readdir=e((t,i,a)=>{this.readdirPromise(t,i).then(c=>a(null,c)).catch(c=>a(c))},"readdir");lstatPromise(t){return new Promise((i,a)=>{try{i(this.fs.statSync(t))}catch(c){a(c)}})}readdirPromise(t,i){return new Promise((a,c)=>{try{let d=this.fs.readdirSync(t,i);a(d)}catch(d){c(d)}})}async readlinkPromise(t){return this.realpath(t)}mkdir(t,i){return new Promise((a,c)=>{try{i?.recursive?this.fs.mkdirSync(t,{recursive:!0}):this.fs.mkdirSync(t),a()}catch(d){c(d)}})}writeFile(t,i,a){return new Promise((c,d)=>{try{let f=a?{encoding:"utf-8"}:void 0;this.fs.writeFileSync(t,i,f),c()}catch(f){d(f)}})}};L8e.RollupFs=Xgt});var Jdn=Je(Ygt=>{"use strict";V();G();U();z();Object.defineProperty(Ygt,"__esModule",{value:!0});Ygt.getInputMap=wwr;var Hdn=Vs(),Kdn=N8e();async function wwr(r,t=""){let i={input:{}};return r?r?.reduce((a,c)=>{let d=c.substring(0,c.length-Hdn.path.extname(c).length);d===Kdn.DEFAULT_EXPORTS_DIR&&(d="index");let f=c===Kdn.DEFAULT_EXPORTS_DIR?t:Hdn.path.join(t,c);return{input:{...a.input,[d]:{entryTarget:f,originalMapping:c}}}},i):i}e(wwr,"getInputMap")});var Xdn=Je(M8e=>{"use strict";V();G();U();z();Object.defineProperty(M8e,"__esModule",{value:!0});M8e.JobStack=void 0;var Pwr=N8e(),Nwr=Vce(),Rwr=e(r=>r?.packageJson.version,"getVersion"),Qgt=class{static{e(this,"JobStack")}rollUpFS;currentJobs=[];finishedJobs=[];stagedJobs=[];duplicatedDeps=new Map;constructor(t){this.rollUpFS=t}pushJob(t){this.stagedJobs.push(t)}getDuplicatedDeps(){return this.duplicatedDeps}hasJobsInQueue(){return this.currentJobs.length>0||this.stagedJobs.length>0}async processStagedJobs(){for(;this.stagedJobs.length>0;){let t=this.stagedJobs.shift();if(t){let{dependencyId:i="",...a}=t;if(a.importer?.endsWith("?commonjs-external"))continue;let d=await(0,Nwr.getRealPkgJson)(i,a.importer||a.moduleRoot,this.rollUpFS),f=Rwr(d),g=a.subPaths?.length?a.subPaths:[Pwr.DEFAULT_EXPORTS_DIR],v=g.map(A=>`${i}/${f}/${A}`).filter(A=>!this.finishedJobs.includes(A)),S=g.map(A=>`${i}/${f}/${A}`).filter(A=>this.finishedJobs.includes(A));if(v.length>0){let A=this.currentJobs.findIndex(C=>C.dependencyId===i&&C.version===f);A>-1&&this.currentJobs[A]?this.currentJobs[A]={...this.currentJobs[A],subPaths:[...this.currentJobs[A]?.subPaths||[],...a.subPaths||[]]}:this.currentJobs.push({...t,version:f}),this.finishedJobs.push(...v)}let E=`${i}@${f}`;if(d&&S.length>0)if(!this.duplicatedDeps.get(E))this.duplicatedDeps.set(E,[d.path]);else{let C=this.duplicatedDeps.get(E);C.find(L=>L===d.path)||(C.push(d.path),this.duplicatedDeps.set(E,C))}}}}async popJob(){return await this.processStagedJobs(),this.currentJobs.pop()}};M8e.JobStack=Qgt});var Zdn=Je(Gce=>{"use strict";V();G();U();z();var $dn=Gce&&Gce.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Gce,"__esModule",{value:!0});Gce.runBuild=void 0;var Lwr=(RD(),nd(ND)),Zgt=N8e(),Mwr=$dn(Udn()),kwr=$dn(qdn()),cM=Vs(),Owr=$gt(),Fwr=Jdn(),Ydn=Vce(),Bwr=Xdn(),Wwr=e(async({pkgName:r,entryPoint:t,outputDir:i,rootDir:a,fs:c,options:d,logger:f,legacyPackageResolution:g=!0,useWebFsLoader:v=!1})=>{let S=new Map,E=new Owr.RollupFs(c),A=new Bwr.JobStack(E),C=[],L=cM.path.join(a,"node_modules"),W=cM.path.resolve(a,i);cM.FileSystem.ensureDirSync(c,W);let O={dependencyId:r,subPaths:t,moduleRoot:L};A.pushJob(O);let w=e(async({subPaths:J,outDir:Z,options:Q={repackage:{omitProto:!0}},dependencyId:me,importer:be,requestorModuleRoot:he})=>{let _e=await(0,Ydn.getRealPkgJson)(me,be||he,E),He=_e?cM.path.dirname(_e.path):he;if(!(0,Zgt.shouldBundlePkg)(_e)){f.info(`Not bundling ${me}`);return}(0,Zgt.notifyUserOfFluentDependency)(_e,He,f,c);let et=_e?.packageJson.version;if(!et){f.warn(`No version found for ${me}`);return}f.info(`Building ${me} ${et}...`);let ut={format:"cjs",interop:"compat",intro:'var __global$ = globalThis || (typeof window !== "undefined" ? window : self);'};try{let{input:ft}=await(0,Fwr.getInputMap)(J,me),Wt=new Set,En=e(({moduleName:kn})=>{Wt.add(kn)},"captureImportedPackages"),fn=Object.entries(ft).reduce((kn,[an,Mn])=>(kn[an]=Mn.entryTarget,kn),{}),Gt=await(0,Lwr.rollup)({input:fn,output:ut,preserveSymlinks:!0,external:(0,Mwr.default)({cb:En,addDependency:A.pushJob.bind(A),dependencyId:me,moduleRoot:He}),plugins:(0,kwr.default)({moduleRoot:He,rollUpFS:E,useWebFsLoader:v})}),{output:Kt}=await Gt.generate(ut),wt=cM.path.join(a,Z,me,et);cM.FileSystem.ensureDirSync(c,wt);let Xt=[];for(let kn of Kt)if(kn.type==="chunk"){let an=kn.code;Q.repackage.omitProto&&(an=an.replaceAll(/__proto__: ?null,?/g,""));let Mn=cM.path.resolve(cM.path.join(wt,kn.fileName)),ir=cM.path.dirname(Mn);cM.FileSystem.ensureDirSync(c,ir),c.writeFileSync(Mn,an,{encoding:"utf-8"}),kn.isEntry?Xt.push({entryName:ft[kn.name].originalMapping,fileName:kn.fileName}):Xt.push({fileName:kn.fileName})}else if(kn.type==="asset"){let an=cM.path.resolve(cM.path.join(wt,kn.fileName)),Mn=cM.path.dirname(an);cM.FileSystem.ensureDirSync(c,Mn),c.writeFileSync(an,kn.source,{encoding:"utf-8"}),Xt.push({fileName:kn.fileName})}let{packageJson:yt}=await(0,Zgt.writePackageJson)(me,Xt,[...Wt],wt,_e,E,c);return{files:[...Xt.map(({fileName:kn})=>kn),"package.json"],packagePath:wt,updatedManifest:yt,pkgName:me,originalPath:He,importedPackages:Wt}}catch(ft){f.info(ft.toString())}},"buildDependency");for(;A.hasJobsInQueue();){let J=await A.popJob();if(!J)continue;let{dependencyId:Z,subPaths:Q,moduleRoot:me,importer:be}=J,he=await w({subPaths:Q?.filter(He=>He),outDir:i,options:d,dependencyId:Z,importer:be,requestorModuleRoot:me,originalPath:me});if(!he)continue;let _e=`${he.updatedManifest.name}@${he.updatedManifest.version}`;S.set(_e,he.importedPackages),C.push(he)}return g?C:await jwr(C,A.getDuplicatedDeps(),S,E)},"runBuild");Gce.runBuild=Wwr;async function jwr(r,t,i,a){let c=[];for(let d of r){c.push(d);let f=`${d.pkgName}@${d.updatedManifest.version}`,g=t.get(f);if(g)for(let v of g)c.push({...d,originalPath:v.substring(0,v.indexOf("/package.json"))}),i.get(f)&&await Qdn(f,c,r,i,v,a)}return c}e(jwr,"addDuplicatedDependencies");async function Qdn(r,t,i,a,c,d){let f=a.get(r);if(f)for(let g of f.values()){let v=await(0,Ydn.getRealPkgJson)(g,c,d);if(!v)continue;let S=v?.path.substring(0,v?.path.indexOf("/package.json"));if(t.find(L=>L.updatedManifest.name===v.packageJson.name&&L.updatedManifest.version===v.packageJson.version&&L.originalPath===S))continue;let A=i.find(L=>L.updatedManifest.name===v.packageJson.name&&L.updatedManifest.version===v.packageJson.version);if(!A)continue;t.push({...A,originalPath:S});let C=`${A.pkgName}@${A.updatedManifest.version}`;await Qdn(C,t,i,a,A.pkgName,d)}}e(Qdn,"addDuplicatesFromTree")});var npn=Je(fF=>{"use strict";V();G();U();z();Object.defineProperty(fF,"__esModule",{value:!0});fF.resolveModule=fF.checkModuleExists=fF.getPkgInfo=fF.build=fF.emptyLogger=void 0;var Vwr=Zdn(),$be=Vs(),epn=Vce(),eyt=$gt(),tpn=(RD(),nd(ND));fF.emptyLogger={info:e((...r)=>{},"info"),warn:e((...r)=>{},"warn"),error:e((...r)=>{},"error"),debug:e((...r)=>{},"debug")};var zwr=e(async({id:r,minify:t=!1,entry:i,logger:a=fF.emptyLogger,workingDir:c,fs:d,legacyPackageResolution:f,useWebFsLoader:g,outputDir:v=$be.path.join(".now",".output")})=>{let S=await(0,Vwr.runBuild)({pkgName:(0,epn.splitModuleRequest)(r).moduleName,entryPoint:i,options:{repackage:{minify:t,omitProto:!0}},rootDir:c,logger:a,fs:d,legacyPackageResolution:f,useWebFsLoader:g,outputDir:v});return a.info("Done!"),S},"build");fF.build=zwr;var Uwr=e(async({dependencyName:r,fs:t,workingDir:i,logger:a})=>{let c=$be.path.join(i,"node_modules"),d=await(0,epn.getRealPkgJson)(r,c,new eyt.RollupFs(t),a);if(!d)throw new Error(`No package.json found for ${r}`);return{name:d.packageJson.name,version:d.packageJson.version}},"getPkgInfo");fF.getPkgInfo=Uwr;var Gwr=e(async(r,t,i,a)=>{let c=$be.path.join(i,"package.json"),f=await(0,tpn.resolver)({fs:new eyt.RollupFs(t),warn:a?.warn,rootDir:i})(r,c);return $be.FileSystem.existsSync(t,f?.id)},"checkModuleExists");fF.checkModuleExists=Gwr;var qwr=e(async(r,t,i,a)=>{let c=$be.path.join(i,"package.json");return(await(0,tpn.resolver)({fs:new eyt.RollupFs(t),warn:a?.warn,rootDir:i})(r,c))?.id},"resolveModule");fF.resolveModule=qwr});var k8e=Je(lq=>{"use strict";V();G();U();z();Object.defineProperty(lq,"__esModule",{value:!0});lq.RepackService=lq.REPACK_OUTPUT_DIR=void 0;lq.checkModuleExists=Kwr;lq.resolveModule=Jwr;var Hwr=Vs();async function Kwr(r,t,i,a){return(await Ybe.create(t,i,a)).checkModuleExists(r)}e(Kwr,"checkModuleExists");async function Jwr(r,t,i,a){return(await Ybe.create(t,i,a)).resolveModule(r)}e(Jwr,"resolveModule");lq.REPACK_OUTPUT_DIR=Hwr.path.join(".now",".output");var Ybe=class r{static{e(this,"RepackService")}repack;logger;fs;workingDir;constructor(t,i,a,c){this.repack=t,this.logger=i,this.fs=a,this.workingDir=c}static async create(t,i,a){let c=await Promise.resolve().then(()=>cee(npn()));return new r(c,t,i,a)}async execute(t){return this.repack.build({...t,logger:this.logger,fs:this.fs,workingDir:this.workingDir,outputDir:lq.REPACK_OUTPUT_DIR})}async getResolvedDepDetails(t){return this.repack.getPkgInfo({dependencyName:t,workingDir:this.workingDir,fs:this.fs,logger:this.logger})}async checkModuleExists(t){return this.repack.checkModuleExists(t,this.fs,this.workingDir,this.logger)}async resolveModule(t){return this.repack.resolveModule(t,this.fs,this.workingDir,this.logger)}};lq.RepackService=Ybe});var nyt=Je(O8e=>{"use strict";V();G();U();z();Object.defineProperty(O8e,"__esModule",{value:!0});O8e.BomRefDiscriminator=void 0;var tyt=class{static{e(this,"BomRefDiscriminator")}#e;#t;constructor(t,i="BomRef"){this.#e=Array.from(t,a=>[a,a.value]),this.#t=i}get prefix(){return this.#t}*[Symbol.iterator](){for(let[t]of this.#e)yield t}discriminate(){let t=new Set([""]);for(let[i]of this.#e){let a=i.value;(a===void 0||t.has(a))&&(a=this.#n(),i.value=a),t.add(a)}}reset(){for(let[t,i]of this.#e)t.value=i}#n(){return`${this.#t}${Math.random().toString(32).substring(1)}${Math.random().toString(32).substring(1)}`}};O8e.BomRefDiscriminator=tyt});var B8e=Je(F8e=>{"use strict";V();G();U();z();Object.defineProperty(F8e,"__esModule",{value:!0});F8e.OptPlugError=void 0;var ryt=class extends Error{static{e(this,"OptPlugError")}cause;constructor(t,i){super(t),this.cause=i}};F8e.OptPlugError=ryt});var oyt=Je(W8e=>{"use strict";V();G();U();z();Object.defineProperty(W8e,"__esModule",{value:!0});W8e.MissingOptionalDependencyError=void 0;var Xwr=B8e(),iyt=class extends Xwr.OptPlugError{static{e(this,"MissingOptionalDependencyError")}};W8e.MissingOptionalDependencyError=iyt});var ipn=Je(rpn=>{"use strict";V();G();U();z();Object.defineProperty(rpn,"__esModule",{value:!0})});var qce=Je(j8e=>{"use strict";V();G();U();z();Object.defineProperty(j8e,"__esModule",{value:!0});j8e.treeIteratorSymbol=void 0;j8e.treeIteratorSymbol=Symbol("iterator of a tree/nesting-like structure")});var z8e=Je(V8e=>{"use strict";V();G();U();z();Object.defineProperty(V8e,"__esModule",{value:!0});V8e.BaseSerializer=void 0;var ayt=qce(),$wr=nyt(),syt=class{static{e(this,"BaseSerializer")}*#e(t){if(t.metadata.component!==void 0){yield t.metadata.component.bomRef;for(let{bomRef:i}of t.metadata.component.components[ayt.treeIteratorSymbol]())yield i}for(let{bomRef:i}of t.components[ayt.treeIteratorSymbol]())yield i;for(let{bomRef:i}of t.services[ayt.treeIteratorSymbol]())yield i;for(let{bomRef:i}of t.vulnerabilities)yield i}#t(t,i){let a=new $wr.BomRefDiscriminator(this.#e(t));a.discriminate();try{return this._normalize(t,i)}finally{a.reset()}}serialize(t,i){return this._serialize(this.#t(t,i),i)}};V8e.BaseSerializer=syt});var cyt=Je(lyt=>{"use strict";V();G();U();z();Object.defineProperty(lyt,"__esModule",{value:!0});lyt.chainI=Ywr;function*Ywr(...r){for(let t of r)for(let i of t)yield i}e(Ywr,"chainI")});var U8e=Je(uyt=>{"use strict";V();G();U();z();Object.defineProperty(uyt,"__esModule",{value:!0});uyt.isNotUndefined=Qwr;function Qwr(r){return r!==void 0}e(Qwr,"isNotUndefined")});var pyt=Je(dyt=>{"use strict";V();G();U();z();Object.defineProperty(dyt,"__esModule",{value:!0});dyt.escapeUri=ePr;var Zwr=[[/ /g,"%20"],[/"/g,"%22"],[/'/g,"%27"],[/\[/g,"%5B"],[/]/g,"%5D"],[/</g,"%3C"],[/>/g,"%3E"],[/\{/g,"%7B"],[/}/g,"%7D"]];function ePr(r){if(r===void 0)return r;for(let[t,i]of Zwr)r=r.replace(t,i);return r}e(ePr,"escapeUri")});var cq=Je(Uj=>{"use strict";V();G();U();z();Object.defineProperty(Uj,"__esModule",{value:!0});Uj.LicenseRepository=Uj.SpdxLicense=Uj.NamedLicense=Uj.LicenseExpression=void 0;var fyt=class{static{e(this,"LicenseExpression")}#e;acknowledgement;constructor(t){this.expression=t}get expression(){return this.#e}set expression(t){if(t==="")throw new RangeError("value is empty string");this.#e=t}compare(t){return this.#e.localeCompare(t.#e)}};Uj.LicenseExpression=fyt;var G8e=class{static{e(this,"DisjunctiveLicenseBase")}acknowledgement;text;#e;constructor(t={}){this.acknowledgement=t.acknowledgement,this.text=t.text,this.url=t.url}get url(){return this.#e}set url(t){this.#e=t===""?void 0:t}},_yt=class extends G8e{static{e(this,"NamedLicense")}name;constructor(t,i={}){super(i),this.name=t}compare(t){return this.name.localeCompare(t.name)}};Uj.NamedLicense=_yt;var myt=class extends G8e{static{e(this,"SpdxLicense")}#e;constructor(t,i={}){super(i),this.id=t}get id(){return this.#e}set id(t){if(t==="")throw new RangeError("value is empty string");this.#e=t}compare(t){return this.#e.localeCompare(t.#e)}};Uj.SpdxLicense=myt;var hyt=class r extends Set{static{e(this,"LicenseRepository")}static#e(t,i){return t.constructor===i.constructor?t.compare(i):t.constructor.name.localeCompare(i.constructor.name)}sorted(){return Array.from(this).sort(r.#e)}};Uj.LicenseRepository=hyt});var Qbe=Je(Hce=>{"use strict";V();G();U();z();Object.defineProperty(Hce,"__esModule",{value:!0});Hce.LifecycleRepository=Hce.NamedLifecycle=void 0;var q8e=class{static{e(this,"NamedLifecycle")}name;description;constructor(t,i={}){this.name=t,this.description=i.description}compare(t){return this.name.localeCompare(t.name)}};Hce.NamedLifecycle=q8e;var gyt=class r extends Set{static{e(this,"LifecycleRepository")}static#e(t,i){return t.constructor===i.constructor?t instanceof q8e?t.compare(i):t.localeCompare(i):t.constructor.name.localeCompare(i.constructor.name)}sorted(){return Array.from(this).sort(r.#e)}};Hce.LifecycleRepository=gyt});var iP=Je(F2=>{"use strict";V();G();U();z();Object.defineProperty(F2,"__esModule",{value:!0});F2.SortableNumbers=F2.SortableStringables=F2.SortableComparables=F2.SortableSet=F2.compareObjectsSymbol=void 0;F2.compareObjectsSymbol=Symbol("internal compare function");var Kce=class extends Set{static{e(this,"SortableSet")}sorted(){return Array.from(this).sort(this[F2.compareObjectsSymbol])}compare(t){let i=t.sorted(),a=this.sorted();if(a.length!==i.length)return a.length-i.length;for(let c=a.length-1;c>=0;--c){let d=this[F2.compareObjectsSymbol](a[c],i[c]);if(d!==0)return d}return 0}};F2.SortableSet=Kce;var yyt=class extends Kce{static{e(this,"SortableComparables")}[F2.compareObjectsSymbol](t,i){return t.constructor===i.constructor?t.compare(i):t.constructor.name.localeCompare(i.constructor.name)}};F2.SortableComparables=yyt;var vyt=class extends Kce{static{e(this,"SortableStringables")}[F2.compareObjectsSymbol](t,i){return t.toString().localeCompare(i.toString())}};F2.SortableStringables=vyt;var byt=class extends Kce{static{e(this,"SortableNumbers")}[F2.compareObjectsSymbol](t,i){return t-i}};F2.SortableNumbers=byt});var opn=Je(Syt=>{"use strict";V();G();U();z();Object.defineProperty(Syt,"__esModule",{value:!0});Syt.isCPE=nPr;var tPr=/^([c][pP][eE]:\/[AHOaho]?(:[A-Za-z0-9\._\-~%]*){0,6})$|^(cpe:2\.3:[aho\*\-](:(((\?*|\*?)([a-zA-Z0-9\-\._]|(\\[\\\*\?!"#$$%&'\(\)\+,\/:;<=>@\[\]\^`\{\|}~]))+(\?*|\*?))|[\*\-])){5}(:(([a-zA-Z]{2,3}(-([a-zA-Z]{2}|[0-9]{3}))?)|[\*\-]))(:(((\?*|\*?)([a-zA-Z0-9\-\._]|(\\[\\\*\?!"#$$%&'\(\)\+,\/:;<=>@\[\]\^`\{\|}~]))+(\?*|\*?))|[\*\-])){4})$/;function nPr(r){return typeof r=="string"&&tPr.test(r)}e(nPr,"isCPE")});var Zbe=Je(Jce=>{"use strict";V();G();U();z();Object.defineProperty(Jce,"__esModule",{value:!0});Jce.BomRefRepository=Jce.BomRef=void 0;var Eyt=class{static{e(this,"BomRef")}value;constructor(t){this.value=t}compare(t){return this.toString().localeCompare(t.toString())}toString(){return this.value??""}};Jce.BomRef=Eyt;var xyt=class extends Set{static{e(this,"BomRefRepository")}};Jce.BomRefRepository=xyt});var Dyt=Je(H8e=>{"use strict";V();G();U();z();Object.defineProperty(H8e,"__esModule",{value:!0});H8e.CopyrightRepository=void 0;var rPr=iP(),Tyt=class extends rPr.SortableStringables{static{e(this,"CopyrightRepository")}};H8e.CopyrightRepository=Tyt});var Xce=Je(K8e=>{"use strict";V();G();U();z();Object.defineProperty(K8e,"__esModule",{value:!0});K8e.HashDictionary=void 0;var Ayt=class r extends Map{static{e(this,"HashDictionary")}static#e([t,i],[a,c]){return t.localeCompare(a)||i.localeCompare(c)}sorted(){return Array.from(this.entries()).sort(r.#e)}};K8e.HashDictionary=Ayt});var tne=Je($ce=>{"use strict";V();G();U();z();Object.defineProperty($ce,"__esModule",{value:!0});$ce.ExternalReferenceRepository=$ce.ExternalReference=void 0;var iPr=iP(),oPr=Xce(),Cyt=class{static{e(this,"ExternalReference")}url;type;hashes;comment;constructor(t,i,a={}){this.url=t,this.type=i,this.hashes=a.hashes??new oPr.HashDictionary,this.comment=a.comment}compare(t){return this.type.localeCompare(t.type)||this.url.toString().localeCompare(t.url.toString())}};$ce.ExternalReference=Cyt;var Iyt=class extends iPr.SortableComparables{static{e(this,"ExternalReferenceRepository")}};$ce.ExternalReferenceRepository=Iyt});var Qce=Je(Yce=>{"use strict";V();G();U();z();Object.defineProperty(Yce,"__esModule",{value:!0});Yce.PropertyRepository=Yce.Property=void 0;var aPr=iP(),wyt=class{static{e(this,"Property")}name;value;constructor(t,i){this.name=t,this.value=i}compare(t){return this.name.localeCompare(t.name)||this.value.localeCompare(t.value)}};Yce.Property=wyt;var Pyt=class extends aPr.SortableComparables{static{e(this,"PropertyRepository")}};Yce.PropertyRepository=Pyt});var e0e=Je(p$=>{"use strict";V();G();U();z();Object.defineProperty(p$,"__esModule",{value:!0});p$.ComponentEvidence=p$.ComponentRepository=p$.Component=void 0;var sPr=iP(),apn=qce(),lPr=opn(),spn=Zbe(),cPr=Dyt(),uPr=tne(),dPr=Xce(),lpn=cq(),pPr=Qce(),Nyt=class{static{e(this,"Component")}type;name;author;copyright;description;externalReferences;group;hashes;licenses;publisher;purl;scope;supplier;swid;version;components;properties;evidence;#e;#t;dependencies;constructor(t,i,a={}){this.#e=new spn.BomRef(a.bomRef),this.type=t,this.name=i,this.supplier=a.supplier,this.author=a.author,this.copyright=a.copyright,this.externalReferences=a.externalReferences??new uPr.ExternalReferenceRepository,this.group=a.group,this.hashes=a.hashes??new dPr.HashDictionary,this.licenses=a.licenses??new lpn.LicenseRepository,this.publisher=a.publisher,this.purl=a.purl,this.scope=a.scope,this.swid=a.swid,this.version=a.version,this.description=a.description,this.components=a.components??new J8e,this.cpe=a.cpe,this.properties=a.properties??new pPr.PropertyRepository,this.evidence=a.evidence,this.dependencies=a.dependencies??new spn.BomRefRepository}get bomRef(){return this.#e}get cpe(){return this.#t}set cpe(t){if(t!==void 0&&!(0,lPr.isCPE)(t))throw new TypeError("Not CPE nor undefined");this.#t=t}compare(t){let i=this.bomRef.compare(t.bomRef);return i!==0?i:this.purl!==void 0&&t.purl!==void 0?this.purl.toString().localeCompare(t.purl.toString()):this.#t!==void 0&&t.#t!==void 0?this.#t.localeCompare(t.#t):(this.group??"").localeCompare(t.group??"")||this.name.localeCompare(t.name)||(this.version??"").localeCompare(t.version??"")}};p$.Component=Nyt;var J8e=class extends sPr.SortableComparables{static{e(this,"ComponentRepository")}*[apn.treeIteratorSymbol](){for(let t of this)yield t,yield*t.components[apn.treeIteratorSymbol]()}};p$.ComponentRepository=J8e;var Ryt=class{static{e(this,"ComponentEvidence")}licenses;copyright;constructor(t={}){this.licenses=t.licenses??new lpn.LicenseRepository,this.copyright=t.copyright??new cPr.CopyrightRepository}};p$.ComponentEvidence=Ryt});var $8e=Je(Zce=>{"use strict";V();G();U();z();Object.defineProperty(Zce,"__esModule",{value:!0});Zce.ServiceRepository=Zce.Service=void 0;var fPr=iP(),cpn=qce(),upn=Zbe(),_Pr=tne(),mPr=cq(),hPr=Qce(),Lyt=class{static{e(this,"Service")}provider;group;name;version;description;licenses;externalReferences;services;properties;#e;dependencies;constructor(t,i={}){this.#e=new upn.BomRef(i.bomRef),this.provider=i.provider,this.group=i.group,this.name=t,this.version=i.version,this.description=i.description,this.licenses=i.licenses??new mPr.LicenseRepository,this.externalReferences=i.externalReferences??new _Pr.ExternalReferenceRepository,this.services=i.services??new X8e,this.properties=i.properties??new hPr.PropertyRepository,this.dependencies=i.dependencies??new upn.BomRefRepository}get bomRef(){return this.#e}compare(t){let i=this.bomRef.compare(t.bomRef);return i!==0?i:(this.group??"").localeCompare(t.group??"")||this.name.localeCompare(t.name)||(this.version??"").localeCompare(t.version??"")}};Zce.Service=Lyt;var X8e=class extends fPr.SortableComparables{static{e(this,"ServiceRepository")}*[cpn.treeIteratorSymbol](){for(let t of this)yield t,yield*t.services[cpn.treeIteratorSymbol]()}};Zce.ServiceRepository=X8e});var eue=Je(f$=>{"use strict";V();G();U();z();Object.defineProperty(f$,"__esModule",{value:!0});f$.Tools=f$.ToolRepository=f$.Tool=void 0;var gPr=iP(),yPr=e0e(),vPr=tne(),bPr=Xce(),SPr=$8e(),Myt=class r{static{e(this,"Tool")}vendor;name;version;hashes;externalReferences;constructor(t={}){this.vendor=t.vendor,this.name=t.name,this.version=t.version,this.hashes=t.hashes??new bPr.HashDictionary,this.externalReferences=t.externalReferences??new vPr.ExternalReferenceRepository}compare(t){return(this.vendor??"").localeCompare(t.vendor??"")||(this.name??"").localeCompare(t.name??"")||(this.version??"").localeCompare(t.version??"")}static fromComponent(t){return new r({vendor:t.group,name:t.name,version:t.version,hashes:t.hashes,externalReferences:t.externalReferences})}static fromService(t){return new r({vendor:t.group,name:t.name,version:t.version,externalReferences:t.externalReferences})}};f$.Tool=Myt;var Y8e=class extends gPr.SortableComparables{static{e(this,"ToolRepository")}};f$.ToolRepository=Y8e;var kyt=class{static{e(this,"Tools")}components;services;tools;constructor(t={}){this.components=t.components??new yPr.ComponentRepository,this.services=t.services??new SPr.ServiceRepository,this.tools=t.tools??new Y8e}get size(){return this.components.size+this.services.size+this.tools.size}};f$.Tools=kyt});var t0e=Je(g8=>{"use strict";V();G();U();z();Object.defineProperty(g8,"__esModule",{value:!0});g8.AffectedVersionRepository=g8.AffectedVersionRange=g8.AffectedSingleVersion=g8.AffectRepository=g8.Affect=void 0;var dpn=iP(),Oyt=class{static{e(this,"Affect")}ref;versions;constructor(t,i={}){this.ref=t,this.versions=i.versions??new Q8e}compare(t){return this.ref.compare(t.ref)||this.versions.compare(t.versions)}};g8.Affect=Oyt;var Fyt=class extends dpn.SortableComparables{static{e(this,"AffectRepository")}};g8.AffectRepository=Fyt;var Byt=class{static{e(this,"AffectedSingleVersion")}version;status;constructor(t,i={}){this.version=t,this.status=i.status}compare(t){return this.version.localeCompare(t.version)||(this.status??"").localeCompare(t.status??"")}};g8.AffectedSingleVersion=Byt;var Wyt=class{static{e(this,"AffectedVersionRange")}range;status;constructor(t,i={}){this.range=t,this.status=i.status}compare(t){return this.range.localeCompare(t.range)||(this.status??"").localeCompare(t.status??"")}};g8.AffectedVersionRange=Wyt;var Q8e=class extends dpn.SortableComparables{static{e(this,"AffectedVersionRepository")}};g8.AffectedVersionRepository=Q8e});var ppn=Je((olo,EPr)=>{EPr.exports=["0BSD","3D-Slicer-1.0","AAL","ADSL","AFL-1.1","AFL-1.2","AFL-2.0","AFL-2.1","AFL-3.0","AGPL-1.0-only","AGPL-1.0-or-later","AGPL-3.0-only","AGPL-3.0-or-later","AMD-newlib","AMDPLPA","AML","AML-glslang","AMPAS","ANTLR-PD","ANTLR-PD-fallback","APAFML","APL-1.0","APSL-1.0","APSL-1.1","APSL-1.2","APSL-2.0","ASWF-Digital-Assets-1.0","ASWF-Digital-Assets-1.1","Abstyles","AdaCore-doc","Adobe-2006","Adobe-Display-PostScript","Adobe-Glyph","Adobe-Utopia","Afmparse","Aladdin","Apache-1.0","Apache-1.1","Apache-2.0","App-s2p","Arphic-1999","Artistic-1.0","Artistic-1.0-Perl","Artistic-1.0-cl8","Artistic-2.0","BSD-1-Clause","BSD-2-Clause","BSD-2-Clause-Darwin","BSD-2-Clause-Patent","BSD-2-Clause-Views","BSD-2-Clause-first-lines","BSD-3-Clause","BSD-3-Clause-Attribution","BSD-3-Clause-Clear","BSD-3-Clause-HP","BSD-3-Clause-LBNL","BSD-3-Clause-Modification","BSD-3-Clause-No-Military-License","BSD-3-Clause-No-Nuclear-License","BSD-3-Clause-No-Nuclear-License-2014","BSD-3-Clause-No-Nuclear-Warranty","BSD-3-Clause-Open-MPI","BSD-3-Clause-Sun","BSD-3-Clause-acpica","BSD-3-Clause-flex","BSD-4-Clause","BSD-4-Clause-Shortened","BSD-4-Clause-UC","BSD-4.3RENO","BSD-4.3TAHOE","BSD-Advertising-Acknowledgement","BSD-Attribution-HPND-disclaimer","BSD-Inferno-Nettverk","BSD-Protection","BSD-Source-Code","BSD-Source-beginning-file","BSD-Systemics","BSD-Systemics-W3Works","BSL-1.0","BUSL-1.1","Baekmuk","Bahyph","Barr","Beerware","BitTorrent-1.0","BitTorrent-1.1","Bitstream-Charter","Bitstream-Vera","BlueOak-1.0.0","Boehm-GC","Boehm-GC-without-fee","Borceux","Brian-Gladman-2-Clause","Brian-Gladman-3-Clause","C-UDA-1.0","CAL-1.0","CAL-1.0-Combined-Work-Exception","CATOSL-1.1","CC-BY-1.0","CC-BY-2.0","CC-BY-2.5","CC-BY-2.5-AU","CC-BY-3.0","CC-BY-3.0-AT","CC-BY-3.0-AU","CC-BY-3.0-DE","CC-BY-3.0-IGO","CC-BY-3.0-NL","CC-BY-3.0-US","CC-BY-4.0","CC-BY-NC-1.0","CC-BY-NC-2.0","CC-BY-NC-2.5","CC-BY-NC-3.0","CC-BY-NC-3.0-DE","CC-BY-NC-4.0","CC-BY-NC-ND-1.0","CC-BY-NC-ND-2.0","CC-BY-NC-ND-2.5","CC-BY-NC-ND-3.0","CC-BY-NC-ND-3.0-DE","CC-BY-NC-ND-3.0-IGO","CC-BY-NC-ND-4.0","CC-BY-NC-SA-1.0","CC-BY-NC-SA-2.0","CC-BY-NC-SA-2.0-DE","CC-BY-NC-SA-2.0-FR","CC-BY-NC-SA-2.0-UK","CC-BY-NC-SA-2.5","CC-BY-NC-SA-3.0","CC-BY-NC-SA-3.0-DE","CC-BY-NC-SA-3.0-IGO","CC-BY-NC-SA-4.0","CC-BY-ND-1.0","CC-BY-ND-2.0","CC-BY-ND-2.5","CC-BY-ND-3.0","CC-BY-ND-3.0-DE","CC-BY-ND-4.0","CC-BY-SA-1.0","CC-BY-SA-2.0","CC-BY-SA-2.0-UK","CC-BY-SA-2.1-JP","CC-BY-SA-2.5","CC-BY-SA-3.0","CC-BY-SA-3.0-AT","CC-BY-SA-3.0-DE","CC-BY-SA-3.0-IGO","CC-BY-SA-4.0","CC-PDDC","CC-PDM-1.0","CC-SA-1.0","CC0-1.0","CDDL-1.0","CDDL-1.1","CDL-1.0","CDLA-Permissive-1.0","CDLA-Permissive-2.0","CDLA-Sharing-1.0","CECILL-1.0","CECILL-1.1","CECILL-2.0","CECILL-2.1","CECILL-B","CECILL-C","CERN-OHL-1.1","CERN-OHL-1.2","CERN-OHL-P-2.0","CERN-OHL-S-2.0","CERN-OHL-W-2.0","CFITSIO","CMU-Mach","CMU-Mach-nodoc","CNRI-Jython","CNRI-Python","CNRI-Python-GPL-Compatible","COIL-1.0","CPAL-1.0","CPL-1.0","CPOL-1.02","CUA-OPL-1.0","Caldera","Caldera-no-preamble","Catharon","ClArtistic","Clips","Community-Spec-1.0","Condor-1.1","Cornell-Lossless-JPEG","Cronyx","Crossword","CrystalStacker","Cube","D-FSL-1.0","DEC-3-Clause","DL-DE-BY-2.0","DL-DE-ZERO-2.0","DOC","DRL-1.0","DRL-1.1","DSDP","DocBook-Schema","DocBook-Stylesheet","DocBook-XML","Dotseqn","ECL-1.0","ECL-2.0","EFL-1.0","EFL-2.0","EPICS","EPL-1.0","EPL-2.0","EUDatagrid","EUPL-1.0","EUPL-1.1","EUPL-1.2","Elastic-2.0","Entessa","ErlPL-1.1","Eurosym","FBM","FDK-AAC","FSFAP","FSFAP-no-warranty-disclaimer","FSFUL","FSFULLR","FSFULLRWD","FTL","Fair","Ferguson-Twofish","Frameworx-1.0","FreeBSD-DOC","FreeImage","Furuseth","GCR-docs","GD","GFDL-1.1-invariants-only","GFDL-1.1-invariants-or-later","GFDL-1.1-no-invariants-only","GFDL-1.1-no-invariants-or-later","GFDL-1.1-only","GFDL-1.1-or-later","GFDL-1.2-invariants-only","GFDL-1.2-invariants-or-later","GFDL-1.2-no-invariants-only","GFDL-1.2-no-invariants-or-later","GFDL-1.2-only","GFDL-1.2-or-later","GFDL-1.3-invariants-only","GFDL-1.3-invariants-or-later","GFDL-1.3-no-invariants-only","GFDL-1.3-no-invariants-or-later","GFDL-1.3-only","GFDL-1.3-or-later","GL2PS","GLWTPL","GPL-1.0-only","GPL-1.0-or-later","GPL-2.0-only","GPL-2.0-or-later","GPL-3.0-only","GPL-3.0-or-later","Giftware","Glide","Glulxe","Graphics-Gems","Gutmann","HIDAPI","HP-1986","HP-1989","HPND","HPND-DEC","HPND-Fenneberg-Livingston","HPND-INRIA-IMAG","HPND-Intel","HPND-Kevlin-Henney","HPND-MIT-disclaimer","HPND-Markus-Kuhn","HPND-Netrek","HPND-Pbmplus","HPND-UC","HPND-UC-export-US","HPND-doc","HPND-doc-sell","HPND-export-US","HPND-export-US-acknowledgement","HPND-export-US-modify","HPND-export2-US","HPND-merchantability-variant","HPND-sell-MIT-disclaimer-xserver","HPND-sell-regexpr","HPND-sell-variant","HPND-sell-variant-MIT-disclaimer","HPND-sell-variant-MIT-disclaimer-rev","HTMLTIDY","HaskellReport","Hippocratic-2.1","IBM-pibs","ICU","IEC-Code-Components-EULA","IJG","IJG-short","IPA","IPL-1.0","ISC","ISC-Veillard","ImageMagick","Imlib2","Info-ZIP","Inner-Net-2.0","InnoSetup","Intel","Intel-ACPI","Interbase-1.0","JPL-image","JPNIC","JSON","Jam","JasPer-2.0","Kastrup","Kazlib","Knuth-CTAN","LAL-1.2","LAL-1.3","LGPL-2.0-only","LGPL-2.0-or-later","LGPL-2.1-only","LGPL-2.1-or-later","LGPL-3.0-only","LGPL-3.0-or-later","LGPLLR","LOOP","LPD-document","LPL-1.0","LPL-1.02","LPPL-1.0","LPPL-1.1","LPPL-1.2","LPPL-1.3a","LPPL-1.3c","LZMA-SDK-9.11-to-9.20","LZMA-SDK-9.22","Latex2e","Latex2e-translated-notice","Leptonica","LiLiQ-P-1.1","LiLiQ-R-1.1","LiLiQ-Rplus-1.1","Libpng","Linux-OpenIB","Linux-man-pages-1-para","Linux-man-pages-copyleft","Linux-man-pages-copyleft-2-para","Linux-man-pages-copyleft-var","Lucida-Bitmap-Fonts","MIPS","MIT","MIT-0","MIT-CMU","MIT-Click","MIT-Festival","MIT-Khronos-old","MIT-Modern-Variant","MIT-Wu","MIT-advertising","MIT-enna","MIT-feh","MIT-open-group","MIT-testregex","MITNFA","MMIXware","MPEG-SSG","MPL-1.0","MPL-1.1","MPL-2.0","MPL-2.0-no-copyleft-exception","MS-LPL","MS-PL","MS-RL","MTLL","Mackerras-3-Clause","Mackerras-3-Clause-acknowledgment","MakeIndex","Martin-Birgmeier","McPhee-slideshow","Minpack","MirOS","Motosoto","MulanPSL-1.0","MulanPSL-2.0","Multics","Mup","NAIST-2003","NASA-1.3","NBPL-1.0","NCBI-PD","NCGL-UK-2.0","NCL","NCSA","NGPL","NICTA-1.0","NIST-PD","NIST-PD-fallback","NIST-Software","NLOD-1.0","NLOD-2.0","NLPL","NOSL","NPL-1.0","NPL-1.1","NPOSL-3.0","NRL","NTP","NTP-0","Naumen","NetCDF","Newsletr","Nokia","Noweb","O-UDA-1.0","OAR","OCCT-PL","OCLC-2.0","ODC-By-1.0","ODbL-1.0","OFFIS","OFL-1.0","OFL-1.0-RFN","OFL-1.0-no-RFN","OFL-1.1","OFL-1.1-RFN","OFL-1.1-no-RFN","OGC-1.0","OGDL-Taiwan-1.0","OGL-Canada-2.0","OGL-UK-1.0","OGL-UK-2.0","OGL-UK-3.0","OGTSL","OLDAP-1.1","OLDAP-1.2","OLDAP-1.3","OLDAP-1.4","OLDAP-2.0","OLDAP-2.0.1","OLDAP-2.1","OLDAP-2.2","OLDAP-2.2.1","OLDAP-2.2.2","OLDAP-2.3","OLDAP-2.4","OLDAP-2.5","OLDAP-2.6","OLDAP-2.7","OLDAP-2.8","OLFL-1.3","OML","OPL-1.0","OPL-UK-3.0","OPUBL-1.0","OSET-PL-2.1","OSL-1.0","OSL-1.1","OSL-2.0","OSL-2.1","OSL-3.0","OpenPBS-2.3","OpenSSL","OpenSSL-standalone","OpenVision","PADL","PDDL-1.0","PHP-3.0","PHP-3.01","PPL","PSF-2.0","Parity-6.0.0","Parity-7.0.0","Pixar","Plexus","PolyForm-Noncommercial-1.0.0","PolyForm-Small-Business-1.0.0","PostgreSQL","Python-2.0","Python-2.0.1","QPL-1.0","QPL-1.0-INRIA-2004","Qhull","RHeCos-1.1","RPL-1.1","RPL-1.5","RPSL-1.0","RSA-MD","RSCPL","Rdisc","Ruby","Ruby-pty","SAX-PD","SAX-PD-2.0","SCEA","SGI-B-1.0","SGI-B-1.1","SGI-B-2.0","SGI-OpenGL","SGP4","SHL-0.5","SHL-0.51","SISSL","SISSL-1.2","SL","SMAIL-GPL","SMLNJ","SMPPL","SNIA","SPL-1.0","SSH-OpenSSH","SSH-short","SSLeay-standalone","SSPL-1.0","SWL","Saxpath","SchemeReport","Sendmail","Sendmail-8.23","Sendmail-Open-Source-1.1","SimPL-2.0","Sleepycat","Soundex","Spencer-86","Spencer-94","Spencer-99","SugarCRM-1.1.3","Sun-PPP","Sun-PPP-2000","SunPro","Symlinks","TAPR-OHL-1.0","TCL","TCP-wrappers","TGPPL-1.0","TMate","TORQUE-1.1","TOSL","TPDL","TPL-1.0","TTWL","TTYP0","TU-Berlin-1.0","TU-Berlin-2.0","TermReadKey","ThirdEye","TrustedQSL","UCAR","UCL-1.0","UMich-Merit","UPL-1.0","URT-RLE","Ubuntu-font-1.0","Unicode-3.0","Unicode-DFS-2015","Unicode-DFS-2016","Unicode-TOU","UnixCrypt","Unlicense","VOSTROM","VSL-1.0","Vim","W3C","W3C-19980720","W3C-20150513","WTFPL","Watcom-1.0","Widget-Workshop","Wsuipa","X11","X11-distribute-modifications-variant","X11-swapped","XFree86-1.1","XSkat","Xdebug-1.03","Xerox","Xfig","Xnet","YPL-1.0","YPL-1.1","ZPL-1.1","ZPL-2.0","ZPL-2.1","Zed","Zeeff","Zend-2.0","Zimbra-1.3","Zimbra-1.4","Zlib","any-OSI","any-OSI-perl-modules","bcrypt-Solar-Designer","blessing","bzip2-1.0.6","check-cvs","checkmk","copyleft-next-0.3.0","copyleft-next-0.3.1","curl","cve-tou","diffmark","dtoa","dvipdfm","eGenix","etalab-2.0","fwlw","gSOAP-1.3b","generic-xts","gnuplot","gtkbook","hdparm","iMatix","libpng-2.0","libselinux-1.0","libtiff","libutil-David-Nugent","lsof","magaz","mailprio","metamail","mpi-permissive","mpich2","mplus","pkgconf","pnmstitch","psfrag","psutils","python-ldap","radvd","snprintf","softSurfer","ssh-keyscan","swrule","threeparttable","ulem","w3m","wwl","xinetd","xkeyboard-config-Zinoviev","xlock","xpp","xzoom","zlib-acknowledgement"]});var fpn=Je((alo,xPr)=>{xPr.exports=["AGPL-1.0","AGPL-3.0","BSD-2-Clause-FreeBSD","BSD-2-Clause-NetBSD","GFDL-1.1","GFDL-1.2","GFDL-1.3","GPL-1.0","GPL-2.0","GPL-2.0-with-GCC-exception","GPL-2.0-with-autoconf-exception","GPL-2.0-with-bison-exception","GPL-2.0-with-classpath-exception","GPL-2.0-with-font-exception","GPL-3.0","GPL-3.0-with-GCC-exception","GPL-3.0-with-autoconf-exception","LGPL-2.0","LGPL-2.1","LGPL-3.0","Net-SNMP","Nunit","StandardML-NJ","bzip2-1.0.5","eCos-2.0","wxWindows"]});var _pn=Je((slo,TPr)=>{TPr.exports=["389-exception","Asterisk-exception","Autoconf-exception-2.0","Autoconf-exception-3.0","Autoconf-exception-generic","Autoconf-exception-generic-3.0","Autoconf-exception-macro","Bison-exception-1.24","Bison-exception-2.2","Bootloader-exception","Classpath-exception-2.0","CLISP-exception-2.0","cryptsetup-OpenSSL-exception","DigiRule-FOSS-exception","eCos-exception-2.0","Fawkes-Runtime-exception","FLTK-exception","fmt-exception","Font-exception-2.0","freertos-exception-2.0","GCC-exception-2.0","GCC-exception-2.0-note","GCC-exception-3.1","Gmsh-exception","GNAT-exception","GNOME-examples-exception","GNU-compiler-exception","gnu-javamail-exception","GPL-3.0-interface-exception","GPL-3.0-linking-exception","GPL-3.0-linking-source-exception","GPL-CC-1.0","GStreamer-exception-2005","GStreamer-exception-2008","i2p-gpl-java-exception","KiCad-libraries-exception","LGPL-3.0-linking-exception","libpri-OpenH323-exception","Libtool-exception","Linux-syscall-note","LLGPL","LLVM-exception","LZMA-exception","mif-exception","OCaml-LGPL-linking-exception","OCCT-exception-1.0","OpenJDK-assembly-exception-1.0","openvpn-openssl-exception","PS-or-PDF-font-exception-20170817","QPL-1.0-INRIA-2004-exception","Qt-GPL-exception-1.0","Qt-LGPL-exception-1.1","Qwt-exception-1.0","SANE-exception","SHL-2.0","SHL-2.1","stunnel-exception","SWI-exception","Swift-exception","Texinfo-exception","u-boot-exception-2.0","UBDL-exception","Universal-FOSS-exception-1.0","vsftpd-openssl-exception","WxWindows-exception-3.1","x11vnc-openssl-exception"]});var hpn=Je((llo,mpn)=>{"use strict";V();G();U();z();var DPr=[].concat(ppn()).concat(fpn()),APr=_pn();mpn.exports=function(r){var t=0;function i(){return t<r.length}e(i,"hasMore");function a(W){if(W instanceof RegExp){var O=r.slice(t),w=O.match(W);if(w)return t+=w[0].length,w[0]}else if(r.indexOf(W,t)===t)return t+=W.length,W}e(a,"read");function c(){a(/[ ]*/)}e(c,"skipWhitespace");function d(){for(var W,O=["WITH","AND","OR","(",")",":","+"],w=0;w<O.length&&(W=a(O[w]),!W);w++);if(W==="+"&&t>1&&r[t-2]===" ")throw new Error("Space before `+`");return W&&{type:"OPERATOR",string:W}}e(d,"operator");function f(){return a(/[A-Za-z0-9-.]+/)}e(f,"idstring");function g(){var W=f();if(!W)throw new Error("Expected idstring at offset "+t);return W}e(g,"expectIdstring");function v(){if(a("DocumentRef-")){var W=g();return{type:"DOCUMENTREF",string:W}}}e(v,"documentRef");function S(){if(a("LicenseRef-")){var W=g();return{type:"LICENSEREF",string:W}}}e(S,"licenseRef");function E(){var W=t,O=f();if(DPr.indexOf(O)!==-1)return{type:"LICENSE",string:O};if(APr.indexOf(O)!==-1)return{type:"EXCEPTION",string:O};t=W}e(E,"identifier");function A(){return d()||v()||S()||E()}e(A,"parseToken");for(var C=[];i()&&(c(),!!i());){var L=A();if(!L)throw new Error("Unexpected `"+r[t]+"` at offset "+t);C.push(L)}return C}});var ypn=Je((_lo,gpn)=>{"use strict";V();G();U();z();gpn.exports=function(r){var t=0;function i(){return t<r.length}e(i,"hasMore");function a(){return i()?r[t]:null}e(a,"token");function c(){if(!i())throw new Error;t++}e(c,"next");function d(O){var w=a();if(w&&w.type==="OPERATOR"&&O===w.string)return c(),w.string}e(d,"parseOperator");function f(){if(d("WITH")){var O=a();if(O&&O.type==="EXCEPTION")return c(),O.string;throw new Error("Expected exception after `WITH`")}}e(f,"parseWith");function g(){var O=t,w="",M=a();if(M.type==="DOCUMENTREF"&&(c(),w+="DocumentRef-"+M.string+":",!d(":")))throw new Error("Expected `:` after `DocumentRef-...`");if(M=a(),M.type==="LICENSEREF")return c(),w+="LicenseRef-"+M.string,{license:w};t=O}e(g,"parseLicenseRef");function v(){var O=a();if(O&&O.type==="LICENSE"){c();var w={license:O.string};d("+")&&(w.plus=!0);var M=f();return M&&(w.exception=M),w}}e(v,"parseLicense");function S(){var O=d("(");if(O){var w=L();if(!d(")"))throw new Error("Expected `)`");return w}}e(S,"parseParenthesizedExpression");function E(){return S()||g()||v()}e(E,"parseAtom");function A(O,w){return e(function M(){var J=w();if(J){if(!d(O))return J;var Z=M();if(!Z)throw new Error("Expected expression");return{left:J,conjunction:O.toLowerCase(),right:Z}}},"parseBinaryOp")}e(A,"makeBinaryOpParser");var C=A("AND",E),L=A("OR",C),W=L();if(!W||i())throw new Error("Syntax error");return W}});var bpn=Je((blo,vpn)=>{"use strict";V();G();U();z();var CPr=hpn(),IPr=ypn();vpn.exports=function(r){return IPr(CPr(r))}});var Spn=Je((Dlo,wPr)=>{wPr.exports={$schema:"http://json-schema.org/draft-07/schema#",$id:"http://cyclonedx.org/schema/spdx.schema.json",$comment:"v1.0-3.27.0",type:"string",enum:["0BSD","3D-Slicer-1.0","AAL","Abstyles","AdaCore-doc","Adobe-2006","Adobe-Display-PostScript","Adobe-Glyph","Adobe-Utopia","ADSL","AFL-1.1","AFL-1.2","AFL-2.0","AFL-2.1","AFL-3.0","Afmparse","AGPL-1.0","AGPL-1.0-only","AGPL-1.0-or-later","AGPL-3.0","AGPL-3.0-only","AGPL-3.0-or-later","Aladdin","AMD-newlib","AMDPLPA","AML","AML-glslang","AMPAS","ANTLR-PD","ANTLR-PD-fallback","any-OSI","any-OSI-perl-modules","Apache-1.0","Apache-1.1","Apache-2.0","APAFML","APL-1.0","App-s2p","APSL-1.0","APSL-1.1","APSL-1.2","APSL-2.0","Arphic-1999","Artistic-1.0","Artistic-1.0-cl8","Artistic-1.0-Perl","Artistic-2.0","Artistic-dist","Aspell-RU","ASWF-Digital-Assets-1.0","ASWF-Digital-Assets-1.1","Baekmuk","Bahyph","Barr","bcrypt-Solar-Designer","Beerware","Bitstream-Charter","Bitstream-Vera","BitTorrent-1.0","BitTorrent-1.1","blessing","BlueOak-1.0.0","Boehm-GC","Boehm-GC-without-fee","Borceux","Brian-Gladman-2-Clause","Brian-Gladman-3-Clause","BSD-1-Clause","BSD-2-Clause","BSD-2-Clause-Darwin","BSD-2-Clause-first-lines","BSD-2-Clause-FreeBSD","BSD-2-Clause-NetBSD","BSD-2-Clause-Patent","BSD-2-Clause-pkgconf-disclaimer","BSD-2-Clause-Views","BSD-3-Clause","BSD-3-Clause-acpica","BSD-3-Clause-Attribution","BSD-3-Clause-Clear","BSD-3-Clause-flex","BSD-3-Clause-HP","BSD-3-Clause-LBNL","BSD-3-Clause-Modification","BSD-3-Clause-No-Military-License","BSD-3-Clause-No-Nuclear-License","BSD-3-Clause-No-Nuclear-License-2014","BSD-3-Clause-No-Nuclear-Warranty","BSD-3-Clause-Open-MPI","BSD-3-Clause-Sun","BSD-4-Clause","BSD-4-Clause-Shortened","BSD-4-Clause-UC","BSD-4.3RENO","BSD-4.3TAHOE","BSD-Advertising-Acknowledgement","BSD-Attribution-HPND-disclaimer","BSD-Inferno-Nettverk","BSD-Protection","BSD-Source-beginning-file","BSD-Source-Code","BSD-Systemics","BSD-Systemics-W3Works","BSL-1.0","BUSL-1.1","bzip2-1.0.5","bzip2-1.0.6","C-UDA-1.0","CAL-1.0","CAL-1.0-Combined-Work-Exception","Caldera","Caldera-no-preamble","Catharon","CATOSL-1.1","CC-BY-1.0","CC-BY-2.0","CC-BY-2.5","CC-BY-2.5-AU","CC-BY-3.0","CC-BY-3.0-AT","CC-BY-3.0-AU","CC-BY-3.0-DE","CC-BY-3.0-IGO","CC-BY-3.0-NL","CC-BY-3.0-US","CC-BY-4.0","CC-BY-NC-1.0","CC-BY-NC-2.0","CC-BY-NC-2.5","CC-BY-NC-3.0","CC-BY-NC-3.0-DE","CC-BY-NC-4.0","CC-BY-NC-ND-1.0","CC-BY-NC-ND-2.0","CC-BY-NC-ND-2.5","CC-BY-NC-ND-3.0","CC-BY-NC-ND-3.0-DE","CC-BY-NC-ND-3.0-IGO","CC-BY-NC-ND-4.0","CC-BY-NC-SA-1.0","CC-BY-NC-SA-2.0","CC-BY-NC-SA-2.0-DE","CC-BY-NC-SA-2.0-FR","CC-BY-NC-SA-2.0-UK","CC-BY-NC-SA-2.5","CC-BY-NC-SA-3.0","CC-BY-NC-SA-3.0-DE","CC-BY-NC-SA-3.0-IGO","CC-BY-NC-SA-4.0","CC-BY-ND-1.0","CC-BY-ND-2.0","CC-BY-ND-2.5","CC-BY-ND-3.0","CC-BY-ND-3.0-DE","CC-BY-ND-4.0","CC-BY-SA-1.0","CC-BY-SA-2.0","CC-BY-SA-2.0-UK","CC-BY-SA-2.1-JP","CC-BY-SA-2.5","CC-BY-SA-3.0","CC-BY-SA-3.0-AT","CC-BY-SA-3.0-DE","CC-BY-SA-3.0-IGO","CC-BY-SA-4.0","CC-PDDC","CC-PDM-1.0","CC-SA-1.0","CC0-1.0","CDDL-1.0","CDDL-1.1","CDL-1.0","CDLA-Permissive-1.0","CDLA-Permissive-2.0","CDLA-Sharing-1.0","CECILL-1.0","CECILL-1.1","CECILL-2.0","CECILL-2.1","CECILL-B","CECILL-C","CERN-OHL-1.1","CERN-OHL-1.2","CERN-OHL-P-2.0","CERN-OHL-S-2.0","CERN-OHL-W-2.0","CFITSIO","check-cvs","checkmk","ClArtistic","Clips","CMU-Mach","CMU-Mach-nodoc","CNRI-Jython","CNRI-Python","CNRI-Python-GPL-Compatible","COIL-1.0","Community-Spec-1.0","Condor-1.1","copyleft-next-0.3.0","copyleft-next-0.3.1","Cornell-Lossless-JPEG","CPAL-1.0","CPL-1.0","CPOL-1.02","Cronyx","Crossword","CryptoSwift","CrystalStacker","CUA-OPL-1.0","Cube","curl","cve-tou","D-FSL-1.0","DEC-3-Clause","diffmark","DL-DE-BY-2.0","DL-DE-ZERO-2.0","DOC","DocBook-DTD","DocBook-Schema","DocBook-Stylesheet","DocBook-XML","Dotseqn","DRL-1.0","DRL-1.1","DSDP","dtoa","dvipdfm","ECL-1.0","ECL-2.0","eCos-2.0","EFL-1.0","EFL-2.0","eGenix","Elastic-2.0","Entessa","EPICS","EPL-1.0","EPL-2.0","ErlPL-1.1","etalab-2.0","EUDatagrid","EUPL-1.0","EUPL-1.1","EUPL-1.2","Eurosym","Fair","FBM","FDK-AAC","Ferguson-Twofish","Frameworx-1.0","FreeBSD-DOC","FreeImage","FSFAP","FSFAP-no-warranty-disclaimer","FSFUL","FSFULLR","FSFULLRSD","FSFULLRWD","FSL-1.1-ALv2","FSL-1.1-MIT","FTL","Furuseth","fwlw","Game-Programming-Gems","GCR-docs","GD","generic-xts","GFDL-1.1","GFDL-1.1-invariants-only","GFDL-1.1-invariants-or-later","GFDL-1.1-no-invariants-only","GFDL-1.1-no-invariants-or-later","GFDL-1.1-only","GFDL-1.1-or-later","GFDL-1.2","GFDL-1.2-invariants-only","GFDL-1.2-invariants-or-later","GFDL-1.2-no-invariants-only","GFDL-1.2-no-invariants-or-later","GFDL-1.2-only","GFDL-1.2-or-later","GFDL-1.3","GFDL-1.3-invariants-only","GFDL-1.3-invariants-or-later","GFDL-1.3-no-invariants-only","GFDL-1.3-no-invariants-or-later","GFDL-1.3-only","GFDL-1.3-or-later","Giftware","GL2PS","Glide","Glulxe","GLWTPL","gnuplot","GPL-1.0","GPL-1.0+","GPL-1.0-only","GPL-1.0-or-later","GPL-2.0","GPL-2.0+","GPL-2.0-only","GPL-2.0-or-later","GPL-2.0-with-autoconf-exception","GPL-2.0-with-bison-exception","GPL-2.0-with-classpath-exception","GPL-2.0-with-font-exception","GPL-2.0-with-GCC-exception","GPL-3.0","GPL-3.0+","GPL-3.0-only","GPL-3.0-or-later","GPL-3.0-with-autoconf-exception","GPL-3.0-with-GCC-exception","Graphics-Gems","gSOAP-1.3b","gtkbook","Gutmann","HaskellReport","HDF5","hdparm","HIDAPI","Hippocratic-2.1","HP-1986","HP-1989","HPND","HPND-DEC","HPND-doc","HPND-doc-sell","HPND-export-US","HPND-export-US-acknowledgement","HPND-export-US-modify","HPND-export2-US","HPND-Fenneberg-Livingston","HPND-INRIA-IMAG","HPND-Intel","HPND-Kevlin-Henney","HPND-Markus-Kuhn","HPND-merchantability-variant","HPND-MIT-disclaimer","HPND-Netrek","HPND-Pbmplus","HPND-sell-MIT-disclaimer-xserver","HPND-sell-regexpr","HPND-sell-variant","HPND-sell-variant-MIT-disclaimer","HPND-sell-variant-MIT-disclaimer-rev","HPND-UC","HPND-UC-export-US","HTMLTIDY","IBM-pibs","ICU","IEC-Code-Components-EULA","IJG","IJG-short","ImageMagick","iMatix","Imlib2","Info-ZIP","Inner-Net-2.0","InnoSetup","Intel","Intel-ACPI","Interbase-1.0","IPA","IPL-1.0","ISC","ISC-Veillard","Jam","JasPer-2.0","jove","JPL-image","JPNIC","JSON","Kastrup","Kazlib","Knuth-CTAN","LAL-1.2","LAL-1.3","Latex2e","Latex2e-translated-notice","Leptonica","LGPL-2.0","LGPL-2.0+","LGPL-2.0-only","LGPL-2.0-or-later","LGPL-2.1","LGPL-2.1+","LGPL-2.1-only","LGPL-2.1-or-later","LGPL-3.0","LGPL-3.0+","LGPL-3.0-only","LGPL-3.0-or-later","LGPLLR","Libpng","libpng-1.6.35","libpng-2.0","libselinux-1.0","libtiff","libutil-David-Nugent","LiLiQ-P-1.1","LiLiQ-R-1.1","LiLiQ-Rplus-1.1","Linux-man-pages-1-para","Linux-man-pages-copyleft","Linux-man-pages-copyleft-2-para","Linux-man-pages-copyleft-var","Linux-OpenIB","LOOP","LPD-document","LPL-1.0","LPL-1.02","LPPL-1.0","LPPL-1.1","LPPL-1.2","LPPL-1.3a","LPPL-1.3c","lsof","Lucida-Bitmap-Fonts","LZMA-SDK-9.11-to-9.20","LZMA-SDK-9.22","Mackerras-3-Clause","Mackerras-3-Clause-acknowledgment","magaz","mailprio","MakeIndex","man2html","Martin-Birgmeier","McPhee-slideshow","metamail","Minpack","MIPS","MirOS","MIT","MIT-0","MIT-advertising","MIT-Click","MIT-CMU","MIT-enna","MIT-feh","MIT-Festival","MIT-Khronos-old","MIT-Modern-Variant","MIT-open-group","MIT-testregex","MIT-Wu","MITNFA","MMIXware","Motosoto","MPEG-SSG","mpi-permissive","mpich2","MPL-1.0","MPL-1.1","MPL-2.0","MPL-2.0-no-copyleft-exception","mplus","MS-LPL","MS-PL","MS-RL","MTLL","MulanPSL-1.0","MulanPSL-2.0","Multics","Mup","NAIST-2003","NASA-1.3","Naumen","NBPL-1.0","NCBI-PD","NCGL-UK-2.0","NCL","NCSA","Net-SNMP","NetCDF","Newsletr","NGPL","ngrep","NICTA-1.0","NIST-PD","NIST-PD-fallback","NIST-Software","NLOD-1.0","NLOD-2.0","NLPL","Nokia","NOSL","Noweb","NPL-1.0","NPL-1.1","NPOSL-3.0","NRL","NTIA-PD","NTP","NTP-0","Nunit","O-UDA-1.0","OAR","OCCT-PL","OCLC-2.0","ODbL-1.0","ODC-By-1.0","OFFIS","OFL-1.0","OFL-1.0-no-RFN","OFL-1.0-RFN","OFL-1.1","OFL-1.1-no-RFN","OFL-1.1-RFN","OGC-1.0","OGDL-Taiwan-1.0","OGL-Canada-2.0","OGL-UK-1.0","OGL-UK-2.0","OGL-UK-3.0","OGTSL","OLDAP-1.1","OLDAP-1.2","OLDAP-1.3","OLDAP-1.4","OLDAP-2.0","OLDAP-2.0.1","OLDAP-2.1","OLDAP-2.2","OLDAP-2.2.1","OLDAP-2.2.2","OLDAP-2.3","OLDAP-2.4","OLDAP-2.5","OLDAP-2.6","OLDAP-2.7","OLDAP-2.8","OLFL-1.3","OML","OpenPBS-2.3","OpenSSL","OpenSSL-standalone","OpenVision","OPL-1.0","OPL-UK-3.0","OPUBL-1.0","OSET-PL-2.1","OSL-1.0","OSL-1.1","OSL-2.0","OSL-2.1","OSL-3.0","PADL","Parity-6.0.0","Parity-7.0.0","PDDL-1.0","PHP-3.0","PHP-3.01","Pixar","pkgconf","Plexus","pnmstitch","PolyForm-Noncommercial-1.0.0","PolyForm-Small-Business-1.0.0","PostgreSQL","PPL","PSF-2.0","psfrag","psutils","Python-2.0","Python-2.0.1","python-ldap","Qhull","QPL-1.0","QPL-1.0-INRIA-2004","radvd","Rdisc","RHeCos-1.1","RPL-1.1","RPL-1.5","RPSL-1.0","RSA-MD","RSCPL","Ruby","Ruby-pty","SAX-PD","SAX-PD-2.0","Saxpath","SCEA","SchemeReport","Sendmail","Sendmail-8.23","Sendmail-Open-Source-1.1","SGI-B-1.0","SGI-B-1.1","SGI-B-2.0","SGI-OpenGL","SGP4","SHL-0.5","SHL-0.51","SimPL-2.0","SISSL","SISSL-1.2","SL","Sleepycat","SMAIL-GPL","SMLNJ","SMPPL","SNIA","snprintf","SOFA","softSurfer","Soundex","Spencer-86","Spencer-94","Spencer-99","SPL-1.0","ssh-keyscan","SSH-OpenSSH","SSH-short","SSLeay-standalone","SSPL-1.0","StandardML-NJ","SugarCRM-1.1.3","SUL-1.0","Sun-PPP","Sun-PPP-2000","SunPro","SWL","swrule","Symlinks","TAPR-OHL-1.0","TCL","TCP-wrappers","TermReadKey","TGPPL-1.0","ThirdEye","threeparttable","TMate","TORQUE-1.1","TOSL","TPDL","TPL-1.0","TrustedQSL","TTWL","TTYP0","TU-Berlin-1.0","TU-Berlin-2.0","Ubuntu-font-1.0","UCAR","UCL-1.0","ulem","UMich-Merit","Unicode-3.0","Unicode-DFS-2015","Unicode-DFS-2016","Unicode-TOU","UnixCrypt","Unlicense","Unlicense-libtelnet","Unlicense-libwhirlpool","UPL-1.0","URT-RLE","Vim","VOSTROM","VSL-1.0","W3C","W3C-19980720","W3C-20150513","w3m","Watcom-1.0","Widget-Workshop","Wsuipa","WTFPL","wwl","wxWindows","X11","X11-distribute-modifications-variant","X11-swapped","Xdebug-1.03","Xerox","Xfig","XFree86-1.1","xinetd","xkeyboard-config-Zinoviev","xlock","Xnet","xpp","XSkat","xzoom","YPL-1.0","YPL-1.1","Zed","Zeeff","Zend-2.0","Zimbra-1.3","Zimbra-1.4","Zlib","zlib-acknowledgement","ZPL-1.1","ZPL-2.0","ZPL-2.1","389-exception","Asterisk-exception","Asterisk-linking-protocols-exception","Autoconf-exception-2.0","Autoconf-exception-3.0","Autoconf-exception-generic","Autoconf-exception-generic-3.0","Autoconf-exception-macro","Bison-exception-1.24","Bison-exception-2.2","Bootloader-exception","CGAL-linking-exception","Classpath-exception-2.0","CLISP-exception-2.0","cryptsetup-OpenSSL-exception","Digia-Qt-LGPL-exception-1.1","DigiRule-FOSS-exception","eCos-exception-2.0","erlang-otp-linking-exception","Fawkes-Runtime-exception","FLTK-exception","fmt-exception","Font-exception-2.0","freertos-exception-2.0","GCC-exception-2.0","GCC-exception-2.0-note","GCC-exception-3.1","Gmsh-exception","GNAT-exception","GNOME-examples-exception","GNU-compiler-exception","gnu-javamail-exception","GPL-3.0-389-ds-base-exception","GPL-3.0-interface-exception","GPL-3.0-linking-exception","GPL-3.0-linking-source-exception","GPL-CC-1.0","GStreamer-exception-2005","GStreamer-exception-2008","harbour-exception","i2p-gpl-java-exception","Independent-modules-exception","KiCad-libraries-exception","LGPL-3.0-linking-exception","libpri-OpenH323-exception","Libtool-exception","Linux-syscall-note","LLGPL","LLVM-exception","LZMA-exception","mif-exception","mxml-exception","Nokia-Qt-exception-1.1","OCaml-LGPL-linking-exception","OCCT-exception-1.0","OpenJDK-assembly-exception-1.0","openvpn-openssl-exception","PCRE2-exception","polyparse-exception","PS-or-PDF-font-exception-20170817","QPL-1.0-INRIA-2004-exception","Qt-GPL-exception-1.0","Qt-LGPL-exception-1.1","Qwt-exception-1.0","romic-exception","RRDtool-FLOSS-exception-2.0","SANE-exception","SHL-2.0","SHL-2.1","stunnel-exception","SWI-exception","Swift-exception","Texinfo-exception","u-boot-exception-2.0","UBDL-exception","Universal-FOSS-exception-1.0","vsftpd-openssl-exception","WxWindows-exception-3.1","x11vnc-openssl-exception"]}});var Z8e=Je(nne=>{"use strict";V();G();U();z();var PPr=nne&&nne.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(nne,"__esModule",{value:!0});nne.isSupportedSpdxId=MPr;nne.fixupSpdxId=kPr;nne.isValidSpdxLicenseExpression=OPr;var NPr=PPr(bpn()),Epn=Spn(),RPr=new Set(Epn.enum),LPr=Object.freeze(Object.fromEntries(Epn.enum.map(r=>[r.toLowerCase(),r])));function MPr(r){return RPr.has(r)}e(MPr,"isSupportedSpdxId");function kPr(r){return typeof r=="string"&&r.length>0?LPr[r.toLowerCase()]:void 0}e(kPr,"fixupSpdxId");function OPr(r){if(typeof r!="string")return!1;try{(0,NPr.default)(r)}catch{return!1}return!0}e(OPr,"isValidSpdxLicenseExpression")});var rne=Je(tue=>{"use strict";V();G();U();z();Object.defineProperty(tue,"__esModule",{value:!0});tue.Format=tue.Version=void 0;var xpn;(function(r){r.v1dot6="1.6",r.v1dot5="1.5",r.v1dot4="1.4",r.v1dot3="1.3",r.v1dot2="1.2",r.v1dot1="1.1",r.v1dot0="1.0"})(xpn||(tue.Version=xpn={}));var Tpn;(function(r){r.XML="xml",r.JSON="json"})(Tpn||(tue.Format=Tpn={}))});var jyt=Je(e4e=>{"use strict";V();G();U();z();Object.defineProperty(e4e,"__esModule",{value:!0});e4e.JsonSchema=void 0;var Dpn;(function(r){function t(a){return typeof a=="string"&&a.length>0}e(t,"isIriReference"),r.isIriReference=t;function i(a){return typeof a=="string"&&a.length>0}e(i,"isIdnEmail"),r.isIdnEmail=i})(Dpn||(e4e.JsonSchema=Dpn={}))});var Ipn=Je(lf=>{"use strict";V();G();U();z();Object.defineProperty(lf,"__esModule",{value:!0});lf.VulnerabilityAnalysisNormalizer=lf.VulnerabilityAffectedVersionNormalizer=lf.VulnerabilityAffectNormalizer=lf.VulnerabilityCreditsNormalizer=lf.VulnerabilityAdvisoryNormalizer=lf.VulnerabilityRatingNormalizer=lf.VulnerabilityReferenceNormalizer=lf.VulnerabilitySourceNormalizer=lf.VulnerabilityNormalizer=lf.DependencyGraphNormalizer=lf.PropertyNormalizer=lf.AttachmentNormalizer=lf.ExternalReferenceNormalizer=lf.SWIDNormalizer=lf.LicenseNormalizer=lf.ComponentEvidenceNormalizer=lf.ServiceNormalizer=lf.ComponentNormalizer=lf.OrganizationalEntityNormalizer=lf.OrganizationalContactNormalizer=lf.HashNormalizer=lf.ToolsNormalizer=lf.ToolNormalizer=lf.LifecycleNormalizer=lf.MetadataNormalizer=lf.BomNormalizer=lf.Factory=void 0;var FPr=cyt(),iue=U8e(),Vyt=qce(),nue=pyt(),n0e=cq(),BPr=Qbe(),zyt=eue(),Apn=t0e(),WPr=Z8e(),r0e=rne(),rue=jyt(),Uyt=class{static{e(this,"Factory")}#e;constructor(t){this.#e=t}get spec(){return this.#e}makeForBom(){return new t4e(this)}makeForMetadata(){return new n4e(this)}makeForComponent(){return new c4e(this)}makeForService(){return new u4e(this)}makeForComponentEvidence(){return new d4e(this)}makeForLifecycle(){return new r4e(this)}makeForTool(){return new i4e(this)}makeForTools(){return new o4e(this)}makeForOrganizationalContact(){return new s4e(this)}makeForOrganizationalEntity(){return new l4e(this)}makeForHash(){return new a4e(this)}makeForLicense(){return new p4e(this)}makeForSWID(){return new f4e(this)}makeForExternalReference(){return new _4e(this)}makeForAttachment(){return new m4e(this)}makeForProperty(){return new h4e(this)}makeForDependencyGraph(){return new g4e(this)}makeForVulnerability(){return new y4e(this)}makeForVulnerabilitySource(){return new v4e(this)}makeForVulnerabilityReference(){return new b4e(this)}makeForVulnerabilityRating(){return new S4e(this)}makeForVulnerabilityAdvisory(){return new E4e(this)}makeForVulnerabilityCredits(){return new x4e(this)}makeForVulnerabilityAffect(){return new T4e(this)}makeForVulnerabilityAffectedVersion(){return new D4e(this)}makeForVulnerabilityAnalysis(){return new A4e(this)}};lf.Factory=Uyt;var jPr=new Map([[r0e.Version.v1dot6,"http://cyclonedx.org/schema/bom-1.6.schema.json"],[r0e.Version.v1dot5,"http://cyclonedx.org/schema/bom-1.5.schema.json"],[r0e.Version.v1dot4,"http://cyclonedx.org/schema/bom-1.4.schema.json"],[r0e.Version.v1dot3,"http://cyclonedx.org/schema/bom-1.3a.schema.json"],[r0e.Version.v1dot2,"http://cyclonedx.org/schema/bom-1.2b.schema.json"]]),Wb=class{static{e(this,"BaseJsonNormalizer")}_factory;constructor(t){this._factory=t}get factory(){return this._factory}},t4e=class extends Wb{static{e(this,"BomNormalizer")}normalize(t,i){return{$schema:jPr.get(this._factory.spec.version),bomFormat:"CycloneDX",specVersion:this._factory.spec.version,version:t.version,serialNumber:this.#e(t.serialNumber)?t.serialNumber:void 0,metadata:this._factory.makeForMetadata().normalize(t.metadata,i),components:t.components.size>0?this._factory.makeForComponent().normalizeIterable(t.components,i):[],services:this._factory.spec.supportsServices&&t.services.size>0?this._factory.makeForService().normalizeIterable(t.services,i):void 0,dependencies:this._factory.spec.supportsDependencyGraph?this._factory.makeForDependencyGraph().normalize(t,i):void 0,vulnerabilities:this._factory.spec.supportsVulnerabilities&&t.vulnerabilities.size>0?this._factory.makeForVulnerability().normalizeIterable(t.vulnerabilities,i):void 0}}#e(t){return t!==void 0&&/^urn:uuid:[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/.test(t)}};lf.BomNormalizer=t4e;var n4e=class extends Wb{static{e(this,"MetadataNormalizer")}normalize(t,i){let a=this._factory.makeForOrganizationalEntity();return{timestamp:t.timestamp?.toISOString(),lifecycles:this._factory.spec.supportsMetadataLifecycles&&t.lifecycles.size>0?this._factory.makeForLifecycle().normalizeIterable(t.lifecycles,i):void 0,tools:t.tools.size>0?this._factory.makeForTools().normalize(t.tools,i):void 0,authors:t.authors.size>0?this._factory.makeForOrganizationalContact().normalizeIterable(t.authors,i):void 0,component:t.component===void 0?void 0:this._factory.makeForComponent().normalize(t.component,i),manufacture:t.manufacture===void 0?void 0:a.normalize(t.manufacture,i),supplier:t.supplier===void 0?void 0:a.normalize(t.supplier,i),licenses:this._factory.spec.supportsMetadataLicenses&&t.licenses.size>0?this._factory.makeForLicense().normalizeIterable(t.licenses,i):void 0,properties:this._factory.spec.supportsMetadataProperties&&t.properties.size>0?this._factory.makeForProperty().normalizeIterable(t.properties,i):void 0}}};lf.MetadataNormalizer=n4e;var r4e=class extends Wb{static{e(this,"LifecycleNormalizer")}normalize(t,i){return t instanceof BPr.NamedLifecycle?{name:t.name,description:t.description}:{phase:t}}normalizeIterable(t,i){return(i.sortLists??!1?t.sorted():Array.from(t)).map(a=>this.normalize(a,i))}};lf.LifecycleNormalizer=r4e;var i4e=class extends Wb{static{e(this,"ToolNormalizer")}normalize(t,i){return{vendor:t.vendor||void 0,name:t.name||void 0,version:t.version||void 0,hashes:t.hashes.size>0?this._factory.makeForHash().normalizeIterable(t.hashes,i):void 0,externalReferences:this._factory.spec.supportsToolReferences&&t.externalReferences.size>0?this._factory.makeForExternalReference().normalizeIterable(t.externalReferences,i):void 0}}normalizeIterable(t,i){return(i.sortLists??!1?t.sorted():Array.from(t)).map(a=>this.normalize(a,i))}};lf.ToolNormalizer=i4e;var o4e=class extends Wb{static{e(this,"ToolsNormalizer")}normalize(t,i){return t.tools.size>0||!this._factory.spec.supportsToolsComponentsServices?this._factory.makeForTool().normalizeIterable(new zyt.ToolRepository((0,FPr.chainI)(Array.from(t.components,zyt.Tool.fromComponent),Array.from(t.services,zyt.Tool.fromService),t.tools)),i):{components:t.components.size>0?this._factory.makeForComponent().normalizeIterable(t.components,i):void 0,services:t.services.size>0?this._factory.makeForService().normalizeIterable(t.services,i):void 0}}};lf.ToolsNormalizer=o4e;var a4e=class extends Wb{static{e(this,"HashNormalizer")}normalize([t,i],a){let c=this._factory.spec;return c.supportsHashAlgorithm(t)&&c.supportsHashValue(i)?{alg:t,content:i}:void 0}normalizeIterable(t,i){return(i.sortLists??!1?t.sorted():Array.from(t)).map(a=>this.normalize(a,i)).filter(iue.isNotUndefined)}};lf.HashNormalizer=a4e;var s4e=class extends Wb{static{e(this,"OrganizationalContactNormalizer")}normalize(t,i){return{name:t.name||void 0,email:rue.JsonSchema.isIdnEmail(t.email)?t.email:void 0,phone:t.phone||void 0}}normalizeIterable(t,i){return(i.sortLists??!1?t.sorted():Array.from(t)).map(a=>this.normalize(a,i))}};lf.OrganizationalContactNormalizer=s4e;var l4e=class extends Wb{static{e(this,"OrganizationalEntityNormalizer")}normalize(t,i){let a=Cpn(Array.from(t.url,c=>(0,nue.escapeUri)(c.toString())),i).filter(rue.JsonSchema.isIriReference);return{name:t.name||void 0,url:a.length>0?a:void 0,contact:t.contact.size>0?this._factory.makeForOrganizationalContact().normalizeIterable(t.contact,i):void 0}}normalizeIterable(t,i){return(i.sortLists??!1?t.sorted():Array.from(t)).map(a=>this.normalize(a,i))}};lf.OrganizationalEntityNormalizer=l4e;var c4e=class extends Wb{static{e(this,"ComponentNormalizer")}normalize(t,i){let a=this._factory.spec;if(!a.supportsComponentType(t.type))return;let c=t.version??"";return{type:t.type,name:t.name,group:t.group||void 0,version:c.length>0||a.requiresComponentVersion?c:void 0,"bom-ref":t.bomRef.value||void 0,supplier:t.supplier===void 0?void 0:this._factory.makeForOrganizationalEntity().normalize(t.supplier,i),author:t.author||void 0,publisher:t.publisher||void 0,description:t.description||void 0,scope:t.scope,hashes:t.hashes.size>0?this._factory.makeForHash().normalizeIterable(t.hashes,i):void 0,licenses:t.licenses.size>0?this._factory.makeForLicense().normalizeIterable(t.licenses,i):void 0,copyright:t.copyright?.toString()||void 0,cpe:t.cpe||void 0,purl:t.purl?.toString(),swid:t.swid===void 0?void 0:this._factory.makeForSWID().normalize(t.swid,i),externalReferences:t.externalReferences.size>0?this._factory.makeForExternalReference().normalizeIterable(t.externalReferences,i):void 0,properties:a.supportsProperties(t)&&t.properties.size>0?this._factory.makeForProperty().normalizeIterable(t.properties,i):void 0,components:t.components.size>0?this.normalizeIterable(t.components,i):void 0,evidence:a.supportsComponentEvidence&&t.evidence!==void 0?this._factory.makeForComponentEvidence().normalize(t.evidence,i):void 0}}normalizeIterable(t,i){return(i.sortLists??!1?t.sorted():Array.from(t)).map(a=>this.normalize(a,i)).filter(iue.isNotUndefined)}};lf.ComponentNormalizer=c4e;var u4e=class extends Wb{static{e(this,"ServiceNormalizer")}normalize(t,i){let a=this._factory.spec;return{"bom-ref":t.bomRef.value||void 0,provider:t.provider?this._factory.makeForOrganizationalEntity().normalize(t.provider,i):void 0,group:t.group,name:t.name,version:t.version||void 0,description:t.description||void 0,licenses:t.licenses.size>0?this._factory.makeForLicense().normalizeIterable(t.licenses,i):void 0,externalReferences:t.externalReferences.size>0?this._factory.makeForExternalReference().normalizeIterable(t.externalReferences,i):void 0,services:t.services.size>0?this._factory.makeForService().normalizeIterable(t.services,i):void 0,properties:a.supportsProperties(t)&&t.properties.size>0?this._factory.makeForProperty().normalizeIterable(t.properties,i):void 0}}normalizeIterable(t,i){return(i.sortLists??!1?t.sorted():Array.from(t)).map(a=>this.normalize(a,i))}};lf.ServiceNormalizer=u4e;var d4e=class r extends Wb{static{e(this,"ComponentEvidenceNormalizer")}normalize(t,i){return{licenses:t.licenses.size>0?this._factory.makeForLicense().normalizeIterable(t.licenses,i):void 0,copyright:t.copyright.size>0?i.sortLists?t.copyright.sorted().map(r.#e):Array.from(t.copyright,r.#e):void 0}}static#e(t){return{text:t.toString()}}};lf.ComponentEvidenceNormalizer=d4e;var p4e=class extends Wb{static{e(this,"LicenseNormalizer")}normalize(t,i){switch(!0){case t instanceof n0e.NamedLicense:return this.#e(t,i);case t instanceof n0e.SpdxLicense:return(0,WPr.isSupportedSpdxId)(t.id)?this.#t(t,i):this.#e(new n0e.NamedLicense(t.id,{url:t.url}),i);case t instanceof n0e.LicenseExpression:return this.#n(t);default:throw new TypeError("Unexpected LicenseChoice")}}#e(t,i){let a=(0,nue.escapeUri)(t.url?.toString());return{license:{name:t.name,acknowledgement:this._factory.spec.supportsLicenseAcknowledgement?t.acknowledgement:void 0,text:t.text===void 0?void 0:this._factory.makeForAttachment().normalize(t.text,i),url:rue.JsonSchema.isIriReference(a)?a:void 0}}}#t(t,i){let a=(0,nue.escapeUri)(t.url?.toString());return{license:{id:t.id,acknowledgement:this._factory.spec.supportsLicenseAcknowledgement?t.acknowledgement:void 0,text:t.text===void 0?void 0:this._factory.makeForAttachment().normalize(t.text,i),url:rue.JsonSchema.isIriReference(a)?a:void 0}}}#n(t){return{expression:t.expression,acknowledgement:this._factory.spec.supportsLicenseAcknowledgement?t.acknowledgement:void 0}}normalizeIterable(t,i){let a=i.sortLists??!1?t.sorted():Array.from(t);if(a.length>1){let c=a.filter(d=>d instanceof n0e.LicenseExpression);if(c.length>0)return[this.#n(c[0])]}return a.map(c=>this.normalize(c,i))}};lf.LicenseNormalizer=p4e;var f4e=class extends Wb{static{e(this,"SWIDNormalizer")}normalize(t,i){let a=(0,nue.escapeUri)(t.url?.toString());return{tagId:t.tagId,name:t.name,version:t.version||void 0,tagVersion:t.tagVersion,patch:t.patch,text:t.text===void 0?void 0:this._factory.makeForAttachment().normalize(t.text,i),url:rue.JsonSchema.isIriReference(a)?a:void 0}}};lf.SWIDNormalizer=f4e;var _4e=class extends Wb{static{e(this,"ExternalReferenceNormalizer")}normalize(t,i){return this._factory.spec.supportsExternalReferenceType(t.type)?{url:(0,nue.escapeUri)(t.url.toString()),type:t.type,hashes:this._factory.spec.supportsExternalReferenceHashes&&t.hashes.size>0?this._factory.makeForHash().normalizeIterable(t.hashes,i):void 0,comment:t.comment||void 0}:void 0}normalizeIterable(t,i){return(i.sortLists??!1?t.sorted():Array.from(t)).map(a=>this.normalize(a,i)).filter(iue.isNotUndefined)}};lf.ExternalReferenceNormalizer=_4e;var m4e=class extends Wb{static{e(this,"AttachmentNormalizer")}normalize(t,i){return{content:t.content.toString(),contentType:t.contentType||void 0,encoding:t.encoding}}};lf.AttachmentNormalizer=m4e;var h4e=class extends Wb{static{e(this,"PropertyNormalizer")}normalize(t,i){return{name:t.name,value:t.value}}normalizeIterable(t,i){return(i.sortLists??!1?t.sorted():Array.from(t)).map(a=>this.normalize(a,i))}};lf.PropertyNormalizer=h4e;var g4e=class extends Wb{static{e(this,"DependencyGraphNormalizer")}normalize(t,i){let a=new Map;if(t.metadata.component!==void 0){a.set(t.metadata.component.bomRef,t.metadata.component.dependencies);for(let d of t.metadata.component.components[Vyt.treeIteratorSymbol]())a.set(d.bomRef,d.dependencies)}for(let d of t.components[Vyt.treeIteratorSymbol]())a.set(d.bomRef,d.dependencies);for(let d of t.services[Vyt.treeIteratorSymbol]())a.set(d.bomRef,d.dependencies);let c=[];for(let[d,f]of a){let g=this.#e(d,f,a,i);(0,iue.isNotUndefined)(g)&&c.push(g)}return(i.sortLists??!1)&&c.sort(({ref:d},{ref:f})=>d.localeCompare(f)),c}#e(t,i,a,c){let d=t.toString();if(d.length===0)return;let f=Cpn(Array.from(i).filter(g=>a.has(g)&&g!==t),c).filter(g=>g.length>0);return{ref:d,dependsOn:f.length>0?f:void 0}}};lf.DependencyGraphNormalizer=g4e;var y4e=class extends Wb{static{e(this,"VulnerabilityNormalizer")}normalize(t,i){return{"bom-ref":t.bomRef.value||void 0,id:t.id||void 0,source:t.source===void 0?void 0:this._factory.makeForVulnerabilitySource().normalize(t.source,i),references:t.references.size>0?this._factory.makeForVulnerabilityReference().normalizeIterable(t.references,i):void 0,ratings:t.ratings.size>0?this._factory.makeForVulnerabilityRating().normalizeIterable(t.ratings,i):void 0,cwes:t.cwes.size>0?i.sortLists??!1?t.cwes.sorted():Array.from(t.cwes):void 0,description:t.description,detail:t.detail,recommendation:t.recommendation,advisories:t.advisories.size>0?this._factory.makeForVulnerabilityAdvisory().normalizeIterable(t.advisories,i):void 0,created:t.created?.toISOString(),published:t.published?.toISOString(),updated:t.updated?.toISOString(),credits:t.credits===void 0?void 0:this._factory.makeForVulnerabilityCredits().normalize(t.credits,i),tools:t.tools.size>0?this._factory.makeForTools().normalize(t.tools,i):void 0,analysis:t.analysis===void 0?void 0:this._factory.makeForVulnerabilityAnalysis().normalize(t.analysis,i),affects:t.affects.size>0?this._factory.makeForVulnerabilityAffect().normalizeIterable(t.affects,i):void 0,properties:t.properties.size>0?this._factory.makeForProperty().normalizeIterable(t.properties,i):void 0}}normalizeIterable(t,i){return(i.sortLists??!1?t.sorted():Array.from(t)).map(a=>this.normalize(a,i))}};lf.VulnerabilityNormalizer=y4e;var v4e=class extends Wb{static{e(this,"VulnerabilitySourceNormalizer")}normalize(t,i){return{name:t.name,url:t.url?.toString()}}};lf.VulnerabilitySourceNormalizer=v4e;var b4e=class extends Wb{static{e(this,"VulnerabilityReferenceNormalizer")}normalize(t,i){return{id:t.id,source:this._factory.makeForVulnerabilitySource().normalize(t.source,i)}}normalizeIterable(t,i){return(i.sortLists??!1?t.sorted():Array.from(t)).map(a=>this.normalize(a,i))}};lf.VulnerabilityReferenceNormalizer=b4e;var S4e=class extends Wb{static{e(this,"VulnerabilityRatingNormalizer")}normalize(t,i){return{source:t.source===void 0?void 0:this._factory.makeForVulnerabilitySource().normalize(t.source,i),score:t.score,severity:t.severity,method:this._factory.spec.supportsVulnerabilityRatingMethod(t.method)?t.method:void 0,vector:t.vector,justification:t.justification}}normalizeIterable(t,i){return(i.sortLists??!1?t.sorted():Array.from(t)).map(a=>this.normalize(a,i))}};lf.VulnerabilityRatingNormalizer=S4e;var E4e=class extends Wb{static{e(this,"VulnerabilityAdvisoryNormalizer")}normalize(t,i){let a=(0,nue.escapeUri)(t.url.toString());if(rue.JsonSchema.isIriReference(a))return{title:t.title,url:a}}normalizeIterable(t,i){return(i.sortLists??!1?t.sorted():Array.from(t)).map(a=>this.normalize(a,i)).filter(iue.isNotUndefined)}};lf.VulnerabilityAdvisoryNormalizer=E4e;var x4e=class extends Wb{static{e(this,"VulnerabilityCreditsNormalizer")}normalize(t,i){return{organizations:t.organizations.size>0?this._factory.makeForOrganizationalEntity().normalizeIterable(t.organizations,i):void 0,individuals:t.individuals.size>0?this._factory.makeForOrganizationalContact().normalizeIterable(t.individuals,i):void 0}}};lf.VulnerabilityCreditsNormalizer=x4e;var T4e=class extends Wb{static{e(this,"VulnerabilityAffectNormalizer")}normalize(t,i){return{ref:t.ref.toString(),versions:t.versions.size>0?this._factory.makeForVulnerabilityAffectedVersion().normalizeIterable(t.versions,i):void 0}}normalizeIterable(t,i){return(i.sortLists??!1?t.sorted():Array.from(t)).map(a=>this.normalize(a,i))}};lf.VulnerabilityAffectNormalizer=T4e;var D4e=class extends Wb{static{e(this,"VulnerabilityAffectedVersionNormalizer")}normalize(t,i){switch(!0){case t instanceof Apn.AffectedSingleVersion:return this.#e(t);case t instanceof Apn.AffectedVersionRange:return this.#t(t);default:throw new TypeError("Unexpected Vulnerability AffectedVersion")}}#e(t){return t.version.length<1?void 0:{version:t.version.substring(0,1024),status:t.status}}#t(t){return t.range.length<1?void 0:{range:t.range.substring(0,1024),status:t.status}}normalizeIterable(t,i){return(i.sortLists??!1?t.sorted():Array.from(t)).map(a=>this.normalize(a,i)).filter(iue.isNotUndefined)}};lf.VulnerabilityAffectedVersionNormalizer=D4e;var A4e=class extends Wb{static{e(this,"VulnerabilityAnalysisNormalizer")}normalize(t,i){return{state:t.state,justification:t.justification,response:t.response.size>0?i.sortLists??!1?t.response.sorted():Array.from(t.response):void 0,detail:t.detail}}};lf.VulnerabilityAnalysisNormalizer=A4e;function Cpn(r,t){let i=Array.from(r,a=>a.toString());return(t.sortLists??!1)&&i.sort((a,c)=>a.localeCompare(c)),i}e(Cpn,"normalizeStringableIter")});var Ppn=Je(y8=>{"use strict";V();G();U();z();var VPr=y8&&y8.__createBinding||(Object.create?function(r,t,i,a){a===void 0&&(a=i);var c=Object.getOwnPropertyDescriptor(t,i);(!c||("get"in c?!t.__esModule:c.writable||c.configurable))&&(c={enumerable:!0,get:e(function(){return t[i]},"get")}),Object.defineProperty(r,a,c)}:function(r,t,i,a){a===void 0&&(a=i),r[a]=t[i]}),zPr=y8&&y8.__setModuleDefault||(Object.create?function(r,t){Object.defineProperty(r,"default",{enumerable:!0,value:t})}:function(r,t){r.default=t}),wpn=y8&&y8.__importStar||function(){var r=e(function(t){return r=Object.getOwnPropertyNames||function(i){var a=[];for(var c in i)Object.prototype.hasOwnProperty.call(i,c)&&(a[a.length]=c);return a},r(t)},"ownKeys");return function(t){if(t&&t.__esModule)return t;var i={};if(t!=null)for(var a=r(t),c=0;c<a.length;c++)a[c]!=="default"&&VPr(i,t,a[c]);return zPr(i,t),i}}();Object.defineProperty(y8,"__esModule",{value:!0});y8.Types=y8.Normalize=void 0;y8.Normalize=wpn(Ipn());y8.Types=wpn(jyt())});var I4e=Je(C4e=>{"use strict";V();G();U();z();Object.defineProperty(C4e,"__esModule",{value:!0});C4e.UnsupportedFormatError=void 0;var Gyt=class extends Error{static{e(this,"UnsupportedFormatError")}};C4e.UnsupportedFormatError=Gyt});var Npn=Je(w4e=>{"use strict";V();G();U();z();Object.defineProperty(w4e,"__esModule",{value:!0});w4e.JsonSerializer=void 0;var UPr=rne(),GPr=I4e(),qPr=z8e(),qyt=class extends qPr.BaseSerializer{static{e(this,"JsonSerializer")}#e;constructor(t){if(!t.spec.supportsFormat(UPr.Format.JSON))throw new GPr.UnsupportedFormatError("Spec does not support JSON format.");super(),this.#e=t}get normalizerFactory(){return this.#e}_normalize(t,i={}){return this.#e.makeForBom().normalize(t,i)}_serialize(t,{space:i}={}){return JSON.stringify(t,null,i)}};w4e.JsonSerializer=qyt});var Kyt=Je(P4e=>{"use strict";V();G();U();z();Object.defineProperty(P4e,"__esModule",{value:!0});P4e.Attachment=void 0;var Hyt=class{static{e(this,"Attachment")}contentType;content;encoding;constructor(t,i={}){this.contentType=i.contentType,this.content=t,this.encoding=i.encoding}};P4e.Attachment=Hyt});var N4e=Je(i0e=>{"use strict";V();G();U();z();Object.defineProperty(i0e,"__esModule",{value:!0});i0e.isInteger=Jyt;i0e.isNonNegativeInteger=HPr;i0e.isPositiveInteger=KPr;function Jyt(r){return Number.isInteger(r)}e(Jyt,"isInteger");function HPr(r){return Jyt(r)&&r>=0}e(HPr,"isNonNegativeInteger");function KPr(r){return Jyt(r)&&r>0}e(KPr,"isPositiveInteger")});var o0e=Je(oue=>{"use strict";V();G();U();z();Object.defineProperty(oue,"__esModule",{value:!0});oue.OrganizationalContactRepository=oue.OrganizationalContact=void 0;var JPr=iP(),Xyt=class{static{e(this,"OrganizationalContact")}name;email;phone;constructor(t={}){this.name=t.name,this.email=t.email,this.phone=t.phone}compare(t){return(this.name??"").localeCompare(t.name??"")||(this.email??"").localeCompare(t.email??"")||(this.phone??"").localeCompare(t.phone??"")}};oue.OrganizationalContact=Xyt;var $yt=class extends JPr.SortableComparables{static{e(this,"OrganizationalContactRepository")}};oue.OrganizationalContactRepository=$yt});var Qyt=Je(R4e=>{"use strict";V();G();U();z();Object.defineProperty(R4e,"__esModule",{value:!0});R4e.Metadata=void 0;var XPr=cq(),$Pr=Qbe(),YPr=o0e(),QPr=Qce(),ZPr=eue(),Yyt=class{static{e(this,"Metadata")}timestamp;lifecycles;tools;authors;component;manufacture;supplier;licenses;properties;constructor(t={}){this.timestamp=t.timestamp,this.lifecycles=t.lifecycles??new $Pr.LifecycleRepository,this.tools=t.tools??new ZPr.Tools,this.authors=t.authors??new YPr.OrganizationalContactRepository,this.component=t.component,this.manufacture=t.manufacture,this.supplier=t.supplier,this.licenses=t.licenses??new XPr.LicenseRepository,this.properties=t.properties??new QPr.PropertyRepository}};R4e.Metadata=Yyt});var Rpn=Je(a0e=>{"use strict";V();G();U();z();Object.defineProperty(a0e,"__esModule",{value:!0});a0e.CweRepository=void 0;a0e.isCWE=nNr;var eNr=iP(),tNr=N4e();function nNr(r){return(0,tNr.isPositiveInteger)(r)}e(nNr,"isCWE");var Zyt=class extends eNr.SortableNumbers{static{e(this,"CweRepository")}};a0e.CweRepository=Zyt});var nvt=Je(aue=>{"use strict";V();G();U();z();Object.defineProperty(aue,"__esModule",{value:!0});aue.AdvisoryRepository=aue.Advisory=void 0;var rNr=iP(),evt=class{static{e(this,"Advisory")}title;url;constructor(t,i={}){this.url=t,this.title=i.title}compare(t){return this.url.toString().localeCompare(t.url.toString())||(this.title??"").localeCompare(t.title??"")}};aue.Advisory=evt;var tvt=class extends rNr.SortableComparables{static{e(this,"AdvisoryRepository")}};aue.AdvisoryRepository=tvt});var ovt=Je(sue=>{"use strict";V();G();U();z();Object.defineProperty(sue,"__esModule",{value:!0});sue.RatingRepository=sue.Rating=void 0;var iNr=iP(),rvt=class{static{e(this,"Rating")}source;score;severity;method;vector;justification;constructor(t={}){this.source=t.source,this.score=t.score,this.severity=t.severity,this.method=t.method,this.vector=t.vector,this.justification=t.justification}compare(t){return(this.score??0)-(t.score??0)||(this.vector??"").localeCompare(t.vector??"")||(this.justification??"").localeCompare(t.justification??"")||(this.severity??"").localeCompare(t.severity??"")||(this.method??"").localeCompare(t.method??"")||(this.source&&t.source?this.source.compare(t.source):0)}};sue.Rating=rvt;var ivt=class extends iNr.SortableComparables{static{e(this,"RatingRepository")}};sue.RatingRepository=ivt});var lvt=Je(lue=>{"use strict";V();G();U();z();Object.defineProperty(lue,"__esModule",{value:!0});lue.ReferenceRepository=lue.Reference=void 0;var oNr=iP(),avt=class{static{e(this,"Reference")}id;source;constructor(t,i){this.id=t,this.source=i}compare(t){return this.id.localeCompare(t.id)||this.source.compare(t.source)}};lue.Reference=avt;var svt=class extends oNr.SortableComparables{static{e(this,"ReferenceRepository")}};lue.ReferenceRepository=svt});var dvt=Je(cue=>{"use strict";V();G();U();z();Object.defineProperty(cue,"__esModule",{value:!0});cue.VulnerabilityRepository=cue.Vulnerability=void 0;var aNr=iP(),sNr=Rpn(),lNr=Zbe(),cNr=Qce(),uNr=eue(),dNr=nvt(),pNr=t0e(),fNr=ovt(),_Nr=lvt(),cvt=class{static{e(this,"Vulnerability")}#e;id;source;references;ratings;cwes;description;detail;recommendation;advisories;created;published;updated;credits;tools;analysis;affects;properties;constructor(t={}){this.#e=new lNr.BomRef(t.bomRef),this.id=t.id,this.source=t.source,this.references=t.references??new _Nr.ReferenceRepository,this.ratings=t.ratings??new fNr.RatingRepository,this.cwes=t.cwes??new sNr.CweRepository,this.description=t.description,this.detail=t.detail,this.recommendation=t.recommendation,this.advisories=t.advisories??new dNr.AdvisoryRepository,this.created=t.created,this.published=t.published,this.updated=t.updated,this.credits=t.credits,this.tools=t.tools??new uNr.Tools,this.analysis=t.analysis,this.affects=t.affects??new pNr.AffectRepository,this.properties=t.properties??new cNr.PropertyRepository}get bomRef(){return this.#e}compare(t){let i=this.bomRef.compare(t.bomRef);return i!==0?i:(this.id??"").localeCompare(t.id??"")||(this.created?.getTime()??0)-(t.created?.getTime()??0)||(this.published?.getTime()??0)-(t.published?.getTime()??0)||(this.updated?.getTime()??0)-(t.updated?.getTime()??0)||this.ratings.compare(t.ratings)||this.cwes.compare(t.cwes)||(this.description??"").localeCompare(t.description??"")||(this.detail??"").localeCompare(t.detail??"")||(this.recommendation??"").localeCompare(t.recommendation??"")||(this.source&&t.source?this.source.compare(t.source):0)||this.properties.compare(t.properties)}};cue.Vulnerability=cvt;var uvt=class extends aNr.SortableComparables{static{e(this,"VulnerabilityRepository")}};cue.VulnerabilityRepository=uvt});var Lpn=Je(L4e=>{"use strict";V();G();U();z();Object.defineProperty(L4e,"__esModule",{value:!0});L4e.Bom=void 0;var mNr=N4e(),hNr=e0e(),gNr=Qyt(),yNr=$8e(),vNr=dvt(),pvt=class{static{e(this,"Bom")}metadata;components;services;vulnerabilities;#e=1;#t;constructor(t={}){this.metadata=t.metadata??new gNr.Metadata,this.components=t.components??new hNr.ComponentRepository,this.services=t.services??new yNr.ServiceRepository,this.version=t.version??this.version,this.vulnerabilities=t.vulnerabilities??new vNr.VulnerabilityRepository,this.serialNumber=t.serialNumber}get version(){return this.#e}set version(t){if(!(0,mNr.isPositiveInteger)(t))throw new TypeError("Not PositiveInteger");this.#e=t}get serialNumber(){return this.#t}set serialNumber(t){this.#t=t===""?void 0:t}};L4e.Bom=pvt});var Mpn=Je(uue=>{"use strict";V();G();U();z();Object.defineProperty(uue,"__esModule",{value:!0});uue.BomLinkElement=uue.BomLinkDocument=void 0;var M4e=class{static{e(this,"BomLinkBase")}#e;constructor(t){this.value=t}get value(){return this.#e}set value(t){if(!this._isValid(t))throw new RangeError("invalid value");this.#e=t}compare(t){return this.toString().localeCompare(t.toString())}toString(){return this.value}},fvt=class r extends M4e{static{e(this,"BomLinkDocument")}static#e=/^urn:cdx:[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}\/[1-9][0-9]*$/;static isValid(t){return typeof t=="string"&&this.#e.test(t)}_isValid(t){return r.isValid(t)}};uue.BomLinkDocument=fvt;var _vt=class r extends M4e{static{e(this,"BomLinkElement")}static#e=/^urn:cdx:[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}\/[1-9][0-9]*#.+$/;static isValid(t){return typeof t=="string"&&this.#e.test(t)}_isValid(t){return r.isValid(t)}};uue.BomLinkElement=_vt});var yvt=Je(due=>{"use strict";V();G();U();z();Object.defineProperty(due,"__esModule",{value:!0});due.OrganizationalEntityRepository=due.OrganizationalEntity=void 0;var mvt=iP(),bNr=o0e(),hvt=class{static{e(this,"OrganizationalEntity")}name;url;contact;constructor(t={}){this.name=t.name,this.url=t.url??new Set,this.contact=t.contact??new bNr.OrganizationalContactRepository}compare(t){return(this.name??"").localeCompare(t.name??"")||this.contact.compare(t.contact)||new mvt.SortableStringables(this.url).compare(new mvt.SortableStringables(t.url))}};due.OrganizationalEntity=hvt;var gvt=class extends mvt.SortableComparables{static{e(this,"OrganizationalEntityRepository")}};due.OrganizationalEntityRepository=gvt});var kpn=Je(k4e=>{"use strict";V();G();U();z();Object.defineProperty(k4e,"__esModule",{value:!0});k4e.SWID=void 0;var SNr=N4e(),vvt=class{static{e(this,"SWID")}tagId;name;version;patch;text;url;#e;constructor(t,i,a={}){this.tagId=t,this.name=i,this.version=a.version,this.patch=a.patch,this.text=a.text,this.url=a.url,this.tagVersion=a.tagVersion}get tagVersion(){return this.#e}set tagVersion(t){if(t!==void 0&&!(0,SNr.isNonNegativeInteger)(t))throw new TypeError("Not NonNegativeInteger nor undefined");this.#e=t}};k4e.SWID=vvt});var Svt=Je(pue=>{"use strict";V();G();U();z();Object.defineProperty(pue,"__esModule",{value:!0});pue.AnalysisResponseRepository=pue.AnalysisResponse=void 0;var ENr=iP(),Opn;(function(r){r.CanNotFix="can_not_fix",r.WillNotFix="will_not_fix",r.Update="update",r.Rollback="rollback",r.WorkaroundAvailable="workaround_available"})(Opn||(pue.AnalysisResponse=Opn={}));var bvt=class extends ENr.SortableStringables{static{e(this,"AnalysisResponseRepository")}};pue.AnalysisResponseRepository=bvt});var Fpn=Je(O4e=>{"use strict";V();G();U();z();Object.defineProperty(O4e,"__esModule",{value:!0});O4e.Analysis=void 0;var xNr=Svt(),Evt=class{static{e(this,"Analysis")}state;justification;response;detail;constructor(t={}){this.state=t.state,this.justification=t.justification,this.response=t.response??new xNr.AnalysisResponseRepository,this.detail=t.detail}};O4e.Analysis=Evt});var Bpn=Je(F4e=>{"use strict";V();G();U();z();Object.defineProperty(F4e,"__esModule",{value:!0});F4e.Credits=void 0;var TNr=o0e(),DNr=yvt(),xvt=class{static{e(this,"Credits")}organizations;individuals;constructor(t={}){this.organizations=t.organizations??new DNr.OrganizationalEntityRepository,this.individuals=t.individuals??new TNr.OrganizationalContactRepository}};F4e.Credits=xvt});var Wpn=Je(B4e=>{"use strict";V();G();U();z();Object.defineProperty(B4e,"__esModule",{value:!0});B4e.Source=void 0;var Tvt=class{static{e(this,"Source")}name;url;constructor(t={}){this.name=t.name,this.url=t.url}compare(t){return(this.url?.toString()??"").localeCompare(t.url?.toString()??"")||(this.name??"").localeCompare(t.name??"")}};B4e.Source=Tvt});var jpn=Je(uM=>{"use strict";V();G();U();z();var ANr=uM&&uM.__createBinding||(Object.create?function(r,t,i,a){a===void 0&&(a=i);var c=Object.getOwnPropertyDescriptor(t,i);(!c||("get"in c?!t.__esModule:c.writable||c.configurable))&&(c={enumerable:!0,get:e(function(){return t[i]},"get")}),Object.defineProperty(r,a,c)}:function(r,t,i,a){a===void 0&&(a=i),r[a]=t[i]}),_$=uM&&uM.__exportStar||function(r,t){for(var i in r)i!=="default"&&!Object.prototype.hasOwnProperty.call(t,i)&&ANr(t,r,i)};Object.defineProperty(uM,"__esModule",{value:!0});_$(nvt(),uM);_$(t0e(),uM);_$(Fpn(),uM);_$(Bpn(),uM);_$(ovt(),uM);_$(lvt(),uM);_$(Wpn(),uM);_$(dvt(),uM)});var W4e=Je(cb=>{"use strict";V();G();U();z();var Vpn=cb&&cb.__createBinding||(Object.create?function(r,t,i,a){a===void 0&&(a=i);var c=Object.getOwnPropertyDescriptor(t,i);(!c||("get"in c?!t.__esModule:c.writable||c.configurable))&&(c={enumerable:!0,get:e(function(){return t[i]},"get")}),Object.defineProperty(r,a,c)}:function(r,t,i,a){a===void 0&&(a=i),r[a]=t[i]}),CNr=cb&&cb.__setModuleDefault||(Object.create?function(r,t){Object.defineProperty(r,"default",{enumerable:!0,value:t})}:function(r,t){r.default=t}),B2=cb&&cb.__exportStar||function(r,t){for(var i in r)i!=="default"&&!Object.prototype.hasOwnProperty.call(t,i)&&Vpn(t,r,i)},INr=cb&&cb.__importStar||function(){var r=e(function(t){return r=Object.getOwnPropertyNames||function(i){var a=[];for(var c in i)Object.prototype.hasOwnProperty.call(i,c)&&(a[a.length]=c);return a},r(t)},"ownKeys");return function(t){if(t&&t.__esModule)return t;var i={};if(t!=null)for(var a=r(t),c=0;c<a.length;c++)a[c]!=="default"&&Vpn(i,t,a[c]);return CNr(i,t),i}}();Object.defineProperty(cb,"__esModule",{value:!0});cb.Vulnerability=void 0;B2(Kyt(),cb);B2(Lpn(),cb);B2(Mpn(),cb);B2(Zbe(),cb);B2(e0e(),cb);B2(Dyt(),cb);B2(tne(),cb);B2(Xce(),cb);B2(cq(),cb);B2(Qbe(),cb);B2(Qyt(),cb);B2(o0e(),cb);B2(yvt(),cb);B2(Qce(),cb);B2($8e(),cb);B2(kpn(),cb);B2(eue(),cb);cb.Vulnerability=INr(jpn())});var Upn=Je(j4e=>{"use strict";V();G();U();z();Object.defineProperty(j4e,"__esModule",{value:!0});j4e.normalizedString=zpn;j4e.token=LNr;var wNr=/\r\n|\t|\n|\r/g,PNr=" ";function zpn(r){return r.replace(wNr,PNr)}e(zpn,"normalizedString");var NNr=/ {2,}/g,RNr=" ";function LNr(r){return zpn(r).trim().replace(NNr,RNr)}e(LNr,"token")});var Dvt=Je(V4e=>{"use strict";V();G();U();z();Object.defineProperty(V4e,"__esModule",{value:!0});V4e.XmlSchema=void 0;var Gpn;(function(r){let t=/^[a-z][a-z0-9+\-.]*$/i;function i(a){if(typeof a!="string"||a.length===0)return!1;let c=a.indexOf("#"),d=a;if(c>=0){if(a.includes("#",c+1))return!1;d=a.slice(void 0,c)}let f=d.indexOf(":");return!(f>=0&&!t.test(d.slice(void 0,f)))}e(i,"isAnyURI"),r.isAnyURI=i})(Gpn||(V4e.XmlSchema=Gpn={}))});var Kpn=Je(cf=>{"use strict";V();G();U();z();Object.defineProperty(cf,"__esModule",{value:!0});cf.VulnerabilityAffectedVersionNormalizer=cf.VulnerabilityAffectNormalizer=cf.VulnerabilityAnalysisNormalizer=cf.VulnerabilityCreditsNormalizer=cf.VulnerabilityAdvisoryNormalizer=cf.VulnerabilityRatingNormalizer=cf.VulnerabilityReferenceNormalizer=cf.VulnerabilitySourceNormalizer=cf.VulnerabilityNormalizer=cf.DependencyGraphNormalizer=cf.PropertyNormalizer=cf.AttachmentNormalizer=cf.ExternalReferenceNormalizer=cf.SWIDNormalizer=cf.LicenseNormalizer=cf.ComponentEvidenceNormalizer=cf.ServiceNormalizer=cf.ComponentNormalizer=cf.OrganizationalEntityNormalizer=cf.OrganizationalContactNormalizer=cf.HashNormalizer=cf.ToolsNormalizer=cf.ToolNormalizer=cf.LifecycleNormalizer=cf.MetadataNormalizer=cf.BomNormalizer=cf.Factory=void 0;var MNr=cyt(),v0=U8e(),Avt=qce(),one=pyt(),Cvt=W4e(),s0e=cq(),kNr=Qbe(),qpn=t0e(),ONr=Z8e(),ine=rne(),ub=Upn(),ane=Dvt(),Ivt=class{static{e(this,"Factory")}#e;constructor(t){this.#e=t}get spec(){return this.#e}makeForBom(){return new U4e(this)}makeForMetadata(){return new G4e(this)}makeForLifecycle(){return new q4e(this)}makeForComponent(){return new Y4e(this)}makeForService(){return new Q4e(this)}makeForComponentEvidence(){return new Z4e(this)}makeForTool(){return new H4e(this)}makeForTools(){return new K4e(this)}makeForOrganizationalContact(){return new X4e(this)}makeForOrganizationalEntity(){return new $4e(this)}makeForHash(){return new J4e(this)}makeForLicense(){return new e7e(this)}makeForSWID(){return new t7e(this)}makeForExternalReference(){return new n7e(this)}makeForAttachment(){return new r7e(this)}makeForProperty(){return new i7e(this)}makeForDependencyGraph(){return new o7e(this)}makeForVulnerability(){return new a7e(this)}makeForVulnerabilitySource(){return new s7e(this)}makeForVulnerabilityReference(){return new l7e(this)}makeForVulnerabilityRating(){return new c7e(this)}makeForVulnerabilityAdvisory(){return new u7e(this)}makeForVulnerabilityCredits(){return new d7e(this)}makeForVulnerabilityAffect(){return new f7e(this)}makeForVulnerabilityAffectedVersion(){return new _7e(this)}makeForVulnerabilityAnalysis(){return new p7e(this)}};cf.Factory=Ivt;var FNr=new Map([[ine.Version.v1dot6,"http://cyclonedx.org/schema/bom/1.6"],[ine.Version.v1dot5,"http://cyclonedx.org/schema/bom/1.5"],[ine.Version.v1dot4,"http://cyclonedx.org/schema/bom/1.4"],[ine.Version.v1dot3,"http://cyclonedx.org/schema/bom/1.3"],[ine.Version.v1dot2,"http://cyclonedx.org/schema/bom/1.2"],[ine.Version.v1dot1,"http://cyclonedx.org/schema/bom/1.1"],[ine.Version.v1dot0,"http://cyclonedx.org/schema/bom/1.0"]]),jb=class{static{e(this,"BaseXmlNormalizer")}_factory;constructor(t){this._factory=t}get factory(){return this._factory}},U4e=class extends jb{static{e(this,"BomNormalizer")}normalize(t,i){let a={type:"element",name:"components",children:t.components.size>0?this._factory.makeForComponent().normalizeIterable(t.components,i,"component"):void 0},c=this._factory.spec.supportsServices&&t.services.size>0?{type:"element",name:"services",children:this._factory.makeForService().normalizeIterable(t.services,i,"service")}:void 0,d=this._factory.spec.supportsVulnerabilities&&t.vulnerabilities.size>0?{type:"element",name:"vulnerabilities",children:this._factory.makeForVulnerability().normalizeIterable(t.vulnerabilities,i,"vulnerability")}:void 0;return{type:"element",name:"bom",namespace:FNr.get(this._factory.spec.version),attributes:{version:t.version,serialNumber:this.#e(t.serialNumber)?t.serialNumber:void 0},children:[this._factory.makeForMetadata().normalize(t.metadata,i,"metadata"),a,c,this._factory.spec.supportsDependencyGraph?this._factory.makeForDependencyGraph().normalize(t,i,"dependencies"):void 0,d].filter(v0.isNotUndefined)}}#e(t){return t!==void 0&&/^urn:uuid:[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$|^\{[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}\}$/.test(t)}};cf.BomNormalizer=U4e;var G4e=class extends jb{static{e(this,"MetadataNormalizer")}normalize(t,i,a){let c=this._factory.makeForOrganizationalEntity(),d=this._factory.spec.supportsMetadataLifecycles&&t.lifecycles.size>0?{type:"element",name:"lifecycles",children:this._factory.makeForLifecycle().normalizeIterable(t.lifecycles,i,"lifecycle")}:void 0,f=t.tools.size>0?this._factory.makeForTools().normalize(t.tools,i,"tools"):void 0,g=t.authors.size>0?{type:"element",name:"authors",children:this._factory.makeForOrganizationalContact().normalizeIterable(t.authors,i,"author")}:void 0,v=this._factory.spec.supportsMetadataLicenses&&t.licenses.size>0?{type:"element",name:"licenses",children:this._factory.makeForLicense().normalizeIterable(t.licenses,i)}:void 0,S=this._factory.spec.supportsMetadataProperties&&t.properties.size>0?{type:"element",name:"properties",children:this._factory.makeForProperty().normalizeIterable(t.properties,i,"property")}:void 0;return{type:"element",name:a,children:[z4e(t.timestamp,"timestamp"),d,f,g,t.component===void 0?void 0:this._factory.makeForComponent().normalize(t.component,i,"component"),t.manufacture===void 0?void 0:c.normalize(t.manufacture,i,"manufacture"),t.supplier===void 0?void 0:c.normalize(t.supplier,i,"supplier"),v,S].filter(v0.isNotUndefined)}}};cf.MetadataNormalizer=G4e;var q4e=class extends jb{static{e(this,"LifecycleNormalizer")}normalize(t,i,a){return t instanceof kNr.NamedLifecycle?{type:"element",name:a,children:[AE(t.name,"name",ub.normalizedString),lg(t.description,"description")].filter(v0.isNotUndefined)}:{type:"element",name:a,children:[AE(t,"phase")]}}normalizeIterable(t,i,a){return(i.sortLists??!1?t.sorted():Array.from(t)).map(c=>this.normalize(c,i,a))}};cf.LifecycleNormalizer=q4e;var H4e=class extends jb{static{e(this,"ToolNormalizer")}normalize(t,i,a){let c=t.hashes.size>0?{type:"element",name:"hashes",children:this._factory.makeForHash().normalizeIterable(t.hashes,i,"hash")}:void 0,d=this._factory.spec.supportsToolReferences&&t.externalReferences.size>0?{type:"element",name:"externalReferences",children:this._factory.makeForExternalReference().normalizeIterable(t.externalReferences,i,"reference")}:void 0;return{type:"element",name:a,children:[lg(t.vendor,"vendor",ub.normalizedString),lg(t.name,"name",ub.normalizedString),lg(t.version,"version",ub.normalizedString),c,d].filter(v0.isNotUndefined)}}normalizeIterable(t,i,a){return(i.sortLists??!1?t.sorted():Array.from(t)).map(c=>this.normalize(c,i,a))}};cf.ToolNormalizer=H4e;var K4e=class extends jb{static{e(this,"ToolsNormalizer")}normalize(t,i,a){let c=[];return t.tools.size>0||!this._factory.spec.supportsToolsComponentsServices?c=this._factory.makeForTool().normalizeIterable(new Cvt.ToolRepository((0,MNr.chainI)(Array.from(t.components,Cvt.Tool.fromComponent),Array.from(t.services,Cvt.Tool.fromService),t.tools)),i,"tool"):(t.components.size>0&&c.push({type:"element",name:"components",children:this._factory.makeForComponent().normalizeIterable(t.components,i,"component")}),t.services.size>0&&c.push({type:"element",name:"services",children:this._factory.makeForService().normalizeIterable(t.services,i,"service")})),{type:"element",name:a,children:c}}};cf.ToolsNormalizer=K4e;var J4e=class extends jb{static{e(this,"HashNormalizer")}normalize([t,i],a,c){let d=this._factory.spec;return d.supportsHashAlgorithm(t)&&d.supportsHashValue(i)?{type:"element",name:c,attributes:{alg:t},children:(0,ub.token)(i)}:void 0}normalizeIterable(t,i,a){return(i.sortLists??!1?t.sorted():Array.from(t)).map(c=>this.normalize(c,i,a)).filter(v0.isNotUndefined)}};cf.HashNormalizer=J4e;var X4e=class extends jb{static{e(this,"OrganizationalContactNormalizer")}normalize(t,i,a){return{type:"element",name:a,children:[lg(t.name,"name",ub.normalizedString),lg(t.email,"email",ub.normalizedString),lg(t.phone,"phone",ub.normalizedString)].filter(v0.isNotUndefined)}}normalizeIterable(t,i,a){return(i.sortLists??!1?t.sorted():Array.from(t)).map(c=>this.normalize(c,i,a))}};cf.OrganizationalContactNormalizer=X4e;var $4e=class extends jb{static{e(this,"OrganizationalEntityNormalizer")}normalize(t,i,a){return{type:"element",name:a,children:[lg(t.name,"name",ub.normalizedString),...Hpn(Array.from(t.url,c=>(0,one.escapeUri)(c.toString())),i,"url").filter(({children:c})=>ane.XmlSchema.isAnyURI(c)),...this._factory.makeForOrganizationalContact().normalizeIterable(t.contact,i,"contact")].filter(v0.isNotUndefined)}}normalizeIterable(t,i,a){return(i.sortLists??!1?t.sorted():Array.from(t)).map(c=>this.normalize(c,i,a))}};cf.OrganizationalEntityNormalizer=$4e;var Y4e=class extends jb{static{e(this,"ComponentNormalizer")}normalize(t,i,a){let c=this._factory.spec;if(!c.supportsComponentType(t.type))return;let d=t.supplier===void 0?void 0:this._factory.makeForOrganizationalEntity().normalize(t.supplier,i,"supplier"),f=(c.requiresComponentVersion?AE:lg)(t.version??"","version",ub.normalizedString),g=t.hashes.size>0?{type:"element",name:"hashes",children:this._factory.makeForHash().normalizeIterable(t.hashes,i,"hash")}:void 0,v=t.licenses.size>0?{type:"element",name:"licenses",children:this._factory.makeForLicense().normalizeIterable(t.licenses,i)}:void 0,S=t.swid===void 0?void 0:this._factory.makeForSWID().normalize(t.swid,i,"swid"),E=t.externalReferences.size>0?{type:"element",name:"externalReferences",children:this._factory.makeForExternalReference().normalizeIterable(t.externalReferences,i,"reference")}:void 0,A=c.supportsProperties(t)&&t.properties.size>0?{type:"element",name:"properties",children:this._factory.makeForProperty().normalizeIterable(t.properties,i,"property")}:void 0,C=t.components.size>0?{type:"element",name:"components",children:this.normalizeIterable(t.components,i,"component")}:void 0,L=c.supportsComponentEvidence&&t.evidence!==void 0?this._factory.makeForComponentEvidence().normalize(t.evidence,i,"evidence"):void 0;return{type:"element",name:a,attributes:{type:t.type,"bom-ref":t.bomRef.value},children:[d,lg(t.author,"author",ub.normalizedString),lg(t.publisher,"publisher",ub.normalizedString),lg(t.group,"group",ub.normalizedString),AE(t.name,"name",ub.normalizedString),f,lg(t.description,"description",ub.normalizedString),lg(t.scope,"scope"),g,v,lg(t.copyright,"copyright",ub.normalizedString),lg(t.cpe,"cpe"),lg(t.purl,"purl"),S,E,A,C,L].filter(v0.isNotUndefined)}}normalizeIterable(t,i,a){return(i.sortLists??!1?t.sorted():Array.from(t)).map(c=>this.normalize(c,i,a)).filter(v0.isNotUndefined)}};cf.ComponentNormalizer=Y4e;var Q4e=class extends jb{static{e(this,"ServiceNormalizer")}normalize(t,i,a){let c=this._factory.spec,d=t.provider===void 0?void 0:this._factory.makeForOrganizationalEntity().normalize(t.provider,i,"provider"),f=t.licenses.size>0?{type:"element",name:"licenses",children:this._factory.makeForLicense().normalizeIterable(t.licenses,i)}:void 0,g=t.externalReferences.size>0?{type:"element",name:"externalReferences",children:this._factory.makeForExternalReference().normalizeIterable(t.externalReferences,i,"reference")}:void 0,v=c.supportsProperties(t)&&t.properties.size>0?{type:"element",name:"properties",children:this._factory.makeForProperty().normalizeIterable(t.properties,i,"property")}:void 0,S=t.services.size>0?{type:"element",name:"services",children:this.normalizeIterable(t.services,i,"service")}:void 0;return{type:"element",name:a,attributes:{"bom-ref":t.bomRef.value},children:[d,lg(t.group,"group",ub.normalizedString),AE(t.name,"name",ub.normalizedString),lg(t.version,"version",ub.normalizedString),lg(t.description,"description",ub.normalizedString),f,g,v,S].filter(v0.isNotUndefined)}}normalizeIterable(t,i,a){return(i.sortLists??!1?t.sorted():Array.from(t)).map(c=>this.normalize(c,i,a))}};cf.ServiceNormalizer=Q4e;var Z4e=class extends jb{static{e(this,"ComponentEvidenceNormalizer")}normalize(t,i,a){let c=t.licenses.size>0?{type:"element",name:"licenses",children:this._factory.makeForLicense().normalizeIterable(t.licenses,i)}:void 0,d=t.copyright.size>0?{type:"element",name:"copyright",children:Hpn(t.copyright,i,"text")}:void 0;return{type:"element",name:a,children:[c,d].filter(v0.isNotUndefined)}}};cf.ComponentEvidenceNormalizer=Z4e;var e7e=class extends jb{static{e(this,"LicenseNormalizer")}normalize(t,i){switch(!0){case t instanceof s0e.NamedLicense:return this.#e(t,i);case t instanceof s0e.SpdxLicense:return(0,ONr.isSupportedSpdxId)(t.id)?this.#t(t,i):this.#e(new s0e.NamedLicense(t.id,{url:t.url}),i);case t instanceof s0e.LicenseExpression:return this.#n(t);default:throw new TypeError("Unexpected LicenseChoice")}}#e(t,i){let a=(0,one.escapeUri)(t.url?.toString());return{type:"element",name:"license",attributes:{acknowledgement:this._factory.spec.supportsLicenseAcknowledgement?t.acknowledgement:void 0},children:[AE(t.name,"name",ub.normalizedString),t.text===void 0?void 0:this._factory.makeForAttachment().normalize(t.text,i,"text"),ane.XmlSchema.isAnyURI(a)?AE(a,"url"):void 0].filter(v0.isNotUndefined)}}#t(t,i){let a=(0,one.escapeUri)(t.url?.toString());return{type:"element",name:"license",attributes:{acknowledgement:this._factory.spec.supportsLicenseAcknowledgement?t.acknowledgement:void 0},children:[AE(t.id,"id"),t.text===void 0?void 0:this._factory.makeForAttachment().normalize(t.text,i,"text"),ane.XmlSchema.isAnyURI(a)?AE(a,"url"):void 0].filter(v0.isNotUndefined)}}#n(t){let i=AE(t.expression,"expression",ub.normalizedString);return i.attributes={acknowledgement:this._factory.spec.supportsLicenseAcknowledgement?t.acknowledgement:void 0},i}normalizeIterable(t,i){let a=i.sortLists??!1?t.sorted():Array.from(t);if(a.length>1){let c=a.filter(d=>d instanceof s0e.LicenseExpression);if(c.length>0)return[this.#n(c[0])]}return a.map(c=>this.normalize(c,i))}};cf.LicenseNormalizer=e7e;var t7e=class extends jb{static{e(this,"SWIDNormalizer")}normalize(t,i,a){let c=(0,one.escapeUri)(t.url?.toString());return{type:"element",name:a,attributes:{tagId:t.tagId,name:t.name,version:t.version||void 0,tagVersion:t.tagVersion,patch:t.patch===void 0?void 0:t.patch?"true":"false"},children:[t.text===void 0?void 0:this._factory.makeForAttachment().normalize(t.text,i,"text"),ane.XmlSchema.isAnyURI(c)?AE(c,"url"):void 0].filter(v0.isNotUndefined)}}};cf.SWIDNormalizer=t7e;var n7e=class extends jb{static{e(this,"ExternalReferenceNormalizer")}normalize(t,i,a){let c=(0,one.escapeUri)(t.url.toString()),d=this._factory.spec.supportsExternalReferenceHashes&&t.hashes.size>0?{type:"element",name:"hashes",children:this._factory.makeForHash().normalizeIterable(t.hashes,i,"hash")}:void 0;return this._factory.spec.supportsExternalReferenceType(t.type)&&ane.XmlSchema.isAnyURI(c)?{type:"element",name:a,attributes:{type:t.type},children:[AE(c,"url"),lg(t.comment,"comment"),d].filter(v0.isNotUndefined)}:void 0}normalizeIterable(t,i,a){return(i.sortLists??!1?t.sorted():Array.from(t)).map(c=>this.normalize(c,i,a)).filter(v0.isNotUndefined)}};cf.ExternalReferenceNormalizer=n7e;var r7e=class extends jb{static{e(this,"AttachmentNormalizer")}normalize(t,i,a){return{type:"element",name:a,attributes:{"content-type":t.contentType?(0,ub.normalizedString)(t.contentType):void 0,encoding:t.encoding||void 0},children:t.content.toString()}}};cf.AttachmentNormalizer=r7e;var i7e=class extends jb{static{e(this,"PropertyNormalizer")}normalize(t,i,a){return{type:"element",name:a,attributes:{name:t.name},children:(0,ub.normalizedString)(t.value)}}normalizeIterable(t,i,a){return(i.sortLists??!1?t.sorted():Array.from(t)).map(c=>this.normalize(c,i,a))}};cf.PropertyNormalizer=i7e;var o7e=class extends jb{static{e(this,"DependencyGraphNormalizer")}normalize(t,i,a){let c=new Map;if(t.metadata.component!==void 0){c.set(t.metadata.component.bomRef,t.metadata.component.dependencies);for(let f of t.metadata.component.components[Avt.treeIteratorSymbol]())c.set(f.bomRef,f.dependencies)}for(let f of t.components[Avt.treeIteratorSymbol]())c.set(f.bomRef,f.dependencies);for(let f of t.services[Avt.treeIteratorSymbol]())c.set(f.bomRef,f.dependencies);let d=[];for(let[f,g]of c){let v=this.#e(f,g,c,i);(0,v0.isNotUndefined)(v)&&d.push(v)}return(i.sortLists??!1)&&d.sort(({attributes:{ref:f}},{attributes:{ref:g}})=>f.localeCompare(g)),{type:"element",name:a,children:d}}#e(t,i,a,c){let d=t.toString();if(d.length===0)return;let f=Array.from(i).filter(g=>a.has(g)&&g!==t).map(g=>g.toString()).filter(g=>g.length>0);return(c.sortLists??!1)&&f.sort((g,v)=>g.localeCompare(v)),{type:"element",name:"dependency",attributes:{ref:d},children:f.map(g=>({type:"element",name:"dependency",attributes:{ref:g}}))}}};cf.DependencyGraphNormalizer=o7e;var a7e=class extends jb{static{e(this,"VulnerabilityNormalizer")}normalize(t,i,a){let c=t.references.size>0?{type:"element",name:"references",children:this._factory.makeForVulnerabilityReference().normalizeIterable(t.references,i,"reference")}:void 0,d=t.ratings.size>0?{type:"element",name:"ratings",children:this._factory.makeForVulnerabilityRating().normalizeIterable(t.ratings,i,"rating")}:void 0,f=t.cwes.size>0?{type:"element",name:"cwes",children:(i.sortLists?t.cwes.sorted():Array.from(t.cwes)).map(A=>AE(A,"cwe"))}:void 0,g=t.advisories.size>0?{type:"element",name:"advisories",children:this._factory.makeForVulnerabilityAdvisory().normalizeIterable(t.advisories,i,"advisory")}:void 0,v=t.tools.size>0?this._factory.makeForTools().normalize(t.tools,i,"tools"):void 0,S=t.affects.size>0?{type:"element",name:"affects",children:this._factory.makeForVulnerabilityAffect().normalizeIterable(t.affects,i,"target")}:void 0,E=t.properties.size>0?{type:"element",name:"properties",children:this._factory.makeForProperty().normalizeIterable(t.properties,i,"property")}:void 0;return{type:"element",name:a,attributes:{"bom-ref":t.bomRef.value||void 0},children:[lg(t.id,"id",ub.normalizedString),t.source===void 0?void 0:this._factory.makeForVulnerabilitySource().normalize(t.source,i,"source"),c,d,f,lg(t.description,"description"),lg(t.detail,"detail"),lg(t.recommendation,"recommendation"),g,z4e(t.created,"created"),z4e(t.created,"published"),z4e(t.created,"updated"),t.credits===void 0?void 0:this._factory.makeForVulnerabilityCredits().normalize(t.credits,i,"credits"),v,t.analysis===void 0?void 0:this._factory.makeForVulnerabilityAnalysis().normalize(t.analysis,i,"analysis"),S,E].filter(v0.isNotUndefined)}}normalizeIterable(t,i,a){return(i.sortLists??!1?t.sorted():Array.from(t)).map(c=>this.normalize(c,i,a))}};cf.VulnerabilityNormalizer=a7e;var s7e=class extends jb{static{e(this,"VulnerabilitySourceNormalizer")}normalize(t,i,a){let c=(0,one.escapeUri)(t.url?.toString());return{type:"element",name:a,children:[lg(t.name,"name",ub.normalizedString),ane.XmlSchema.isAnyURI(c)?AE(c,"url"):void 0].filter(v0.isNotUndefined)}}};cf.VulnerabilitySourceNormalizer=s7e;var l7e=class extends jb{static{e(this,"VulnerabilityReferenceNormalizer")}normalize(t,i,a){return{type:"element",name:a,children:[AE(t.id,"id"),this._factory.makeForVulnerabilitySource().normalize(t.source,i,"source")]}}normalizeIterable(t,i,a){return(i.sortLists??!1?t.sorted():Array.from(t)).map(c=>this.normalize(c,i,a))}};cf.VulnerabilityReferenceNormalizer=l7e;var c7e=class extends jb{static{e(this,"VulnerabilityRatingNormalizer")}normalize(t,i,a){return{type:"element",name:a,children:[t.source===void 0?void 0:this._factory.makeForVulnerabilitySource().normalize(t.source,i,"source"),lg(t.score,"score"),lg(t.severity,"severity"),this._factory.spec.supportsVulnerabilityRatingMethod(t.method)?lg(t.method,"method"):void 0,lg(t.vector,"vector",ub.normalizedString),lg(t.justification,"justification")].filter(v0.isNotUndefined)}}normalizeIterable(t,i,a){return(i.sortLists??!1?t.sorted():Array.from(t)).map(c=>this.normalize(c,i,a))}};cf.VulnerabilityRatingNormalizer=c7e;var u7e=class extends jb{static{e(this,"VulnerabilityAdvisoryNormalizer")}normalize(t,i,a){let c=(0,one.escapeUri)(t.url.toString());if(ane.XmlSchema.isAnyURI(c))return{type:"element",name:a,children:[lg(t.title,"title"),AE(c,"url")].filter(v0.isNotUndefined)}}normalizeIterable(t,i,a){return(i.sortLists??!1?t.sorted():Array.from(t)).map(c=>this.normalize(c,i,a)).filter(v0.isNotUndefined)}};cf.VulnerabilityAdvisoryNormalizer=u7e;var d7e=class extends jb{static{e(this,"VulnerabilityCreditsNormalizer")}normalize(t,i,a){let c=t.organizations.size>0?{type:"element",name:"organizations",children:this._factory.makeForOrganizationalEntity().normalizeIterable(t.organizations,i,"organization")}:void 0,d=t.individuals.size>0?{type:"element",name:"individuals",children:this._factory.makeForOrganizationalContact().normalizeIterable(t.individuals,i,"individual")}:void 0;return{type:"element",name:a,children:[c,d].filter(v0.isNotUndefined)}}};cf.VulnerabilityCreditsNormalizer=d7e;var p7e=class extends jb{static{e(this,"VulnerabilityAnalysisNormalizer")}normalize(t,i,a){let c=t.response.size>0?{type:"element",name:"responses",children:(i.sortLists??!1?t.response.sorted():Array.from(t.response)).map(d=>AE(d,"response"))}:void 0;return{type:"element",name:a,children:[lg(t.state,"state"),lg(t.justification,"justification"),c,lg(t.detail,"detail")].filter(v0.isNotUndefined)}}};cf.VulnerabilityAnalysisNormalizer=p7e;var f7e=class extends jb{static{e(this,"VulnerabilityAffectNormalizer")}normalize(t,i,a){let c=t.versions.size>0?{type:"element",name:"versions",children:this._factory.makeForVulnerabilityAffectedVersion().normalizeIterable(t.versions,i,"version")}:void 0;return{type:"element",name:a,children:[AE(t.ref,"ref"),c].filter(v0.isNotUndefined)}}normalizeIterable(t,i,a){return(i.sortLists??!1?t.sorted():Array.from(t)).map(c=>this.normalize(c,i,a))}};cf.VulnerabilityAffectNormalizer=f7e;var _7e=class extends jb{static{e(this,"VulnerabilityAffectedVersionNormalizer")}normalize(t,i,a){switch(!0){case t instanceof qpn.AffectedSingleVersion:return this.#e(t,a);case t instanceof qpn.AffectedVersionRange:return this.#t(t,a);default:throw new TypeError("Unexpected Vulnerability AffectedVersion")}}#e(t,i){return{type:"element",name:i,children:[AE(t.version,"version",ub.normalizedString),lg(t.status,"status")].filter(v0.isNotUndefined)}}#t(t,i){return{type:"element",name:i,children:[AE(t.range,"range",ub.normalizedString),lg(t.status,"status")].filter(v0.isNotUndefined)}}normalizeIterable(t,i,a){return(i.sortLists??!1?t.sorted():Array.from(t)).map(c=>this.normalize(c,i,a))}};cf.VulnerabilityAffectedVersionNormalizer=_7e;var m7e=e(r=>r,"noTEM");function lg(r,t,i=m7e){let a=i(r?.toString()??"");return a.length>0?AE(a,t):void 0}e(lg,"makeOptionalTextElement");function AE(r,t,i=m7e){return{type:"element",name:t,children:i(r.toString())}}e(AE,"makeTextElement");function Hpn(r,t,i,a=m7e){let c=Array.from(r,d=>AE(d,i,a));return(t.sortLists??!1)&&c.sort(({children:d},{children:f})=>d.localeCompare(f)),c}e(Hpn,"makeTextElementIter");function z4e(r,t,i=m7e){let a=r?.toISOString();return a===void 0?void 0:AE(a,t,i)}e(z4e,"makeOptionalDateTimeElement")});var Xpn=Je(v8=>{"use strict";V();G();U();z();var BNr=v8&&v8.__createBinding||(Object.create?function(r,t,i,a){a===void 0&&(a=i);var c=Object.getOwnPropertyDescriptor(t,i);(!c||("get"in c?!t.__esModule:c.writable||c.configurable))&&(c={enumerable:!0,get:e(function(){return t[i]},"get")}),Object.defineProperty(r,a,c)}:function(r,t,i,a){a===void 0&&(a=i),r[a]=t[i]}),WNr=v8&&v8.__setModuleDefault||(Object.create?function(r,t){Object.defineProperty(r,"default",{enumerable:!0,value:t})}:function(r,t){r.default=t}),Jpn=v8&&v8.__importStar||function(){var r=e(function(t){return r=Object.getOwnPropertyNames||function(i){var a=[];for(var c in i)Object.prototype.hasOwnProperty.call(i,c)&&(a[a.length]=c);return a},r(t)},"ownKeys");return function(t){if(t&&t.__esModule)return t;var i={};if(t!=null)for(var a=r(t),c=0;c<a.length;c++)a[c]!=="default"&&BNr(i,t,a[c]);return WNr(i,t),i}}();Object.defineProperty(v8,"__esModule",{value:!0});v8.Types=v8.Normalize=void 0;v8.Normalize=Jpn(Kpn());v8.Types=Jpn(Dvt())});var Pvt=Je(h7e=>{"use strict";V();G();U();z();Object.defineProperty(h7e,"__esModule",{value:!0});h7e.XmlBaseSerializer=void 0;var jNr=rne(),VNr=I4e(),zNr=z8e(),wvt=class extends zNr.BaseSerializer{static{e(this,"XmlBaseSerializer")}#e;constructor(t){if(!t.spec.supportsFormat(jNr.Format.XML))throw new VNr.UnsupportedFormatError("Spec does not support XML format.");super(),this.#e=t}get normalizerFactory(){return this.#e}_normalize(t,i={}){return this.#e.makeForBom().normalize(t,i)}};h7e.XmlBaseSerializer=wvt});var Ypn=Je(AT=>{"use strict";V();G();U();z();var $pn=AT&&AT.__createBinding||(Object.create?function(r,t,i,a){a===void 0&&(a=i);var c=Object.getOwnPropertyDescriptor(t,i);(!c||("get"in c?!t.__esModule:c.writable||c.configurable))&&(c={enumerable:!0,get:e(function(){return t[i]},"get")}),Object.defineProperty(r,a,c)}:function(r,t,i,a){a===void 0&&(a=i),r[a]=t[i]}),UNr=AT&&AT.__setModuleDefault||(Object.create?function(r,t){Object.defineProperty(r,"default",{enumerable:!0,value:t})}:function(r,t){r.default=t}),l0e=AT&&AT.__exportStar||function(r,t){for(var i in r)i!=="default"&&!Object.prototype.hasOwnProperty.call(t,i)&&$pn(t,r,i)},Nvt=AT&&AT.__importStar||function(){var r=e(function(t){return r=Object.getOwnPropertyNames||function(i){var a=[];for(var c in i)Object.prototype.hasOwnProperty.call(i,c)&&(a[a.length]=c);return a},r(t)},"ownKeys");return function(t){if(t&&t.__esModule)return t;var i={};if(t!=null)for(var a=r(t),c=0;c<a.length;c++)a[c]!=="default"&&$pn(i,t,a[c]);return UNr(i,t),i}}();Object.defineProperty(AT,"__esModule",{value:!0});AT.XML=AT.JSON=AT.Types=void 0;l0e(nyt(),AT);l0e(oyt(),AT);AT.Types=Nvt(ipn());l0e(z8e(),AT);AT.JSON=Nvt(Ppn());l0e(Npn(),AT);AT.XML=Nvt(Xpn());l0e(Pvt(),AT)});var Qpn=Je(Rvt=>{"use strict";V();G();U();z();Object.defineProperty(Rvt,"__esModule",{value:!0});Rvt.default=HNr;var GNr=B8e();function qNr(r){let t=e(function(){throw new GNr.OptPlugError(r)},"f");return t.fails=!0,Object.freeze(t)}e(qNr,"makeWIllThrow");function HNr(r,t){for(let[,i]of t)try{return i()}catch{}return qNr(`No ${r} available.
31148
+ ${v.formatDiagnosticsWithColorAndContext(E)}`);t.info("Type check completed successfully")}},"typeCheckProject");qte.typeCheckProject=WAr;async function jAr({project:r}){let t=r.getLogger(),i=r.getConfig(),a=r.getFileSystem();(0,qte.typeCheckProject)(r);let c=(0,r8e.projectHasScript)(r,"prebuild");if((!i8e.isWebWorker||(0,i8e.hasModuleLoader)())&&c)await(0,r8e.runScriptInProject)({scriptName:"prebuild",project:r,throwIfNotFound:!1});else if(i.clientDir){c&&t.debug("Custom scripts are not supported, so using the default UI build");let{defaultUiBuild:f}=await Promise.resolve().then(()=>cee(Gln()));await f({project:r})}if(p8.FileSystem.existsSync(a,r.resolvePath(i.staticContentDir)))for(let f of r.reloadDirectory(i.staticContentDir))f.setReadOnly(!0)}e(jAr,"uiPrebuild");async function VAr({project:r}){let t=r.getLogger();!i8e.isWebWorker||(0,i8e.hasModuleLoader)()?await(0,r8e.runScriptInProject)({scriptName:"postbuild",project:r,throwIfNotFound:!1}):(0,r8e.projectHasScript)(r,"postbuild")&&t.warn("Custom scripts are not supported, skipping postbuild script")}e(VAr,"uiPostbuild")});var c$=Je(oM=>{"use strict";V();G();U();z();var zAr=oM&&oM.__createBinding||(Object.create?function(r,t,i,a){a===void 0&&(a=i);var c=Object.getOwnPropertyDescriptor(t,i);(!c||("get"in c?!t.__esModule:c.writable||c.configurable))&&(c={enumerable:!0,get:e(function(){return t[i]},"get")}),Object.defineProperty(r,a,c)}:function(r,t,i,a){a===void 0&&(a=i),r[a]=t[i]}),l$=oM&&oM.__exportStar||function(r,t){for(var i in r)i!=="default"&&!Object.prototype.hasOwnProperty.call(t,i)&&zAr(t,r,i)};Object.defineProperty(oM,"__esModule",{value:!0});l$(kln(),oM);l$(Bln(),oM);l$(Wln(),oM);l$(jln(),oM);l$(Gmt(),oM);l$(Q6e(),oM);l$(Uln(),oM);l$(qln(),oM)});var Hln=Je(a8e=>{"use strict";V();G();U();z();Object.defineProperty(a8e,"__esModule",{value:!0});a8e.Diagnostics=void 0;var aM=Vs();function o8e(r){return aM.ts.Node.isNode(r)?r:r.getOriginalNode()}e(o8e,"getOriginalNode");var Hmt=class{static{e(this,"Diagnostics")}diagnostics=[];error(t,i){this.add(new aM.FluentDiagnostic(o8e(t),i,{level:aM.Diagnostic.Level.Error}))}warn(t,i){this.add(new aM.FluentDiagnostic(o8e(t),i,{level:aM.Diagnostic.Level.Warn}))}info(t,i){this.add(new aM.FluentDiagnostic(o8e(t),i,{level:aM.Diagnostic.Level.Info}))}hint(t,i){this.add(new aM.FluentDiagnostic(o8e(t),i,{level:aM.Diagnostic.Level.Hint}))}add(t){UAr(t)||this.diagnostics.some(i=>i.message===t.message&&i.code===t.code&&i.level===t.level&&i.source===t.source&&i.position.start===t.position.start&&i.position.end===t.position.end&&i.file.getFilePath()===t.file.getFilePath())||this.diagnostics.push(t)}getAll(t){return t?this.diagnostics.filter(i=>i.file.getFilePath()===t):this.diagnostics}clear(t){this.diagnostics=t?this.diagnostics.filter(i=>i.file.getFilePath()!==t):[]}getWarnings(t){return this.getAll(t).filter(i=>i.level===aM.Diagnostic.Level.Warn)}hasErrors(t){return this.getAll(t).some(i=>i.level===aM.Diagnostic.Level.Error)}getErrors(t){return this.getAll(t).filter(i=>i.level===aM.Diagnostic.Level.Error)}};a8e.Diagnostics=Hmt;function UAr(r){return r instanceof aM.FluentDiagnostic&&(0,aM.hasDirective)(r.node,"@fluent-ignore")}e(UAr,"isIgnored")});var Kln=Je(l8e=>{"use strict";V();G();U();z();Object.defineProperty(l8e,"__esModule",{value:!0});l8e.MultiProjectTransform=void 0;var Wj=Vs(),GAr=Bbe(),s8e=class{static{e(this,"Transform")}project;pluginUsageTracker;constructor(t,i){this.project=t,this.pluginUsageTracker=i}async shapeToSubclass(t,i){for(let a of i.length>0?i:this.project.getPlugins().toArray())try{let c=await a.shapeToSubclass(t,this.project.getContext());if(c.success)return await this.shapeToSubclass(c.value,i)}catch(c){this.project.getLogger().error(`Plugin "${a.getName()}" failed to subclass "${t.getKind()}" shape:`,c)}return{success:!0,value:t}}async shapeToRecord(t,i){if(t.isRecord())return{success:!0,value:t};for(let a of i.length>0?i:this.project.getPlugins().toArray())try{let c=await a.shapeToRecord(t,this.project.getContext());if(c.success)return this.pluginUsageTracker.addPluginShapeUsage(a,t),{success:!0,value:c.value}}catch(c){this.project.getLogger().error(`Plugin "${a.getName()}" failed to transform "${t.getKind()}" shape into record:`,c)}return{success:!1}}async nodeToRecord(t,i){let a=await this.toShape(t,...i);return a.success?this.shapeToRecord(a.value,i):a}async fileToRecord(t,i){for(let a of i.length>0?i:this.project.getPlugins().toArray())try{let c=await a.fileToRecord(t,this.project.getContext());if(c.success)return this.pluginUsageTracker.addPluginShapeUsage(a,t),{success:!0,value:c.value}}catch(c){this.project.getLogger().error(`Plugin "${a.getName()}" failed to transform "${t.path}" into records:`,c)}return{success:!1}}async toRecord(t,...i){return Wj.ts.Node.isNode(t)?this.nodeToRecord(t,i):t instanceof Wj.Shape?this.shapeToRecord(t,i):this.fileToRecord(t,i)}async toShape(t,...i){let a=this.project.getDiagnosticsService();if(!(0,Wj.isSupportedNode)(t))return(0,Wj.isFluentNode)(t)&&a.error(t,`Node kind "${(0,Wj.getUnsupportedKindName)(t)}" is not allowed in Fluent files.`),{success:!1};for(let c of i.length>0?i:this.project.getPlugins().toArray())try{let d=await c.nodeToShape(t,this.project.getContext()),f=d.success?await this.shapeToSubclass(d.value,i):d,g=f.success?await this.toRecord(f.value,...i):f,v=g.success?g:f;if(v.success)return v}catch(d){this.project.getLogger().error(`Plugin "${c.getName()}" failed to transform "${t.getKindName()}" node into shape:`,d)}return{success:!1}}async recordToShape(t,i,...a){for(let c of a.length>0?a:this.project.getPlugins().toArray()){let d=await c.recordToShape({record:t,database:i,context:this.project.getContext()});if(d.success)return d}return{success:!1}}async toSubclass(t,...i){return this.shapeToSubclass(t,i)}async getUpdateName(t,...i){for(let a of i.length>0?i:this.project.getPlugins().toArray())try{let c=await a.getUpdateName(t,this.project.getContext());if(c.success)return c.value}catch(c){this.project.getLogger().error(`Plugin "${a.getName()}" failed to get update name for record: ${t.getTable()}`,c)}throw new Error(`Failed to get update name for record: ${t.getTable()}`)}},Kmt=class{static{e(this,"MultiProjectTransform")}rootProject;pluginUsageTracker;fallbackTransform;rootTransform;transformMap={};constructor(t,i){this.rootProject=t,this.pluginUsageTracker=i,this.rootTransform=new s8e(t,this.pluginUsageTracker),this.transformMap[t.getRootDir()]=this.rootTransform}toRecord(t,...i){return this.getTransformForPath(Wj.ts.Node.isNode(t)?t.getSourceFile().getFilePath():t instanceof Wj.Shape?t.getOriginalFilePath():t.path).toRecord(t,...i)}async toShape(t,...i){return this.getTransformForPath(t.getSourceFile().getFilePath()).toShape(t,...i)}async recordToShape(t,i,...a){return this.getTransformForPath(t.getOriginalFilePath()).recordToShape(t,i,...a)}async toSubclass(t,...i){return this.getTransformForPath(t.getOriginalFilePath()).toSubclass(t,...i)}async getUpdateName(t,...i){return this.getTransformForPath(t.getOriginalFilePath()).getUpdateName(t,...i)}createTransform(t){let{plugins:i,fs:a,logger:c,diagnostics:d,transform:f}=this.rootProject.getContext();return new s8e(new GAr.Project({rootDir:t,plugins:i,fileSystem:a,logger:c,diagnostics:d,transform:f}),this.pluginUsageTracker)}getFallbackTransform(){return this.fallbackTransform??=this.createTransform(this.rootProject.getRootDir())}getTransformForPath(t){if(this.transformMap[t])return this.transformMap[t];if(this.rootProject.getFileIfExists(t))return this.transformMap[t]=this.rootTransform;let i=this.findProjectRootForPath(t);return i&&this.transformMap[i]?this.transformMap[i]:i?this.transformMap[i]=this.createTransform(i):this.getFallbackTransform()}findProjectRootForPath(t){if(this.isProjectRoot(t))return t;let i=Wj.path.dirname(t);if(i!==t)return this.findProjectRootForPath(i)}isProjectRootCache={};isProjectRoot(t){if(typeof this.isProjectRootCache[t]=="boolean")return this.isProjectRootCache[t];let i=Wj.path.join(t,"now.config.json");return this.isProjectRootCache[t]=t in this.transformMap||!!this.rootProject.getCompiler().getSourceFile(i)||Wj.FileSystem.existsSync(this.rootProject.getFileSystem(),i)}};l8e.MultiProjectTransform=Kmt});var Jln=Je(c8e=>{"use strict";V();G();U();z();Object.defineProperty(c8e,"__esModule",{value:!0});c8e.Keys=void 0;var Jmt=Vs(),Xmt=class{static{e(this,"Keys")}keys;constructor(t){this.keys=new Jmt.KeysRegistry(t.getCompiler(),{rootDir:t.getRootDir(),config:t.getConfig(),package:t.getPackage()},t.getFileSystem())}queryExplicitId(t,i){return this.keys.queryExplicitId(t,i instanceof Jmt.Shape?(i.ifString()??i.asNumber("Explicit key must be a string or number")).getValue():i)}registerExplicitId(t,i,a){return i instanceof Jmt.Shape?this.keys.registerExplicitId(t,(i.ifString()??i.asNumber("Explicit key must be a string or number")).getValue(),a):this.keys.registerExplicitId(t,i,a)}deleteExplicitId(t,i,a){return this.keys.deleteExplicitId(t,i,a)}queryCoalesceId(t,i){return this.keys.queryCompositeId(t,i)}registerCoalesceId(t,i,a){return this.keys.registerCompositeId(t,i,a)}deleteCoalesceId(t,i,a){return this.keys.deleteCompositeId(t,i,a)}getEffectiveDeletedKeys(){return this.keys.getEffectiveDeletedKeys()}getSourceFile(){return this.keys.getSourceFile()}getFilePath(){return this.keys.getSourceFile().getFilePath()}getValue(){return this.keys.getValue()}async commit(t){await this.keys.commit(t)}reload(){this.keys.reload()}};c8e.Keys=Xmt});var Xln=Je(u8e=>{"use strict";V();G();U();z();Object.defineProperty(u8e,"__esModule",{value:!0});u8e.Inspector=void 0;var $mt=class{static{e(this,"Inspector")}project;constructor(t){this.project=t}inspect(t,...i){for(let a of i.length>0?i:this.project.getPlugins().toArray())try{a.inspect(t,this.project.getContext())}catch(c){this.project.getLogger().error(`Plugin "${a.getName()}" failed to inspect shape "${t.getKind()}":`,c)}}};u8e.Inspector=$mt});var Zm=Je(kce=>{"use strict";V();G();U();z();Object.defineProperty(kce,"__esModule",{value:!0});kce.NowIdPlugin=kce.NowIdShape=void 0;var d8e=Vs(),p8e=class r extends d8e.ElementAccessExpressionShape{static{e(this,"NowIdShape")}constructor({source:t,id:i}){super({source:t,callee:"Now.ID",arg:i})}getValue(){return this.getArg().getValue()}static from(t){let i=t.getId().getNowIdKey()??t.getId().getValue();return new r({source:t,id:i})}getCode(){return`Now.ID[${this.getArg().getCode()}]`}};kce.NowIdShape=p8e;kce.NowIdPlugin=d8e.Plugin.create({name:"NowIdPlugin",shapes:[{shape:d8e.ElementAccessExpressionShape,fileTypes:["fluent"],toSubclass(r,{diagnostics:t}){if(r.getCallee()!=="Now.ID")return{success:!1};let i=r.getArg();return!i.isString()&&!i.isNumber()?(t.error(i,"Now.ID argument must be a string or number"),{success:!1}):{success:!0,value:new p8e({source:r,id:i.getValue().toString()})}}}],nodes:[{node:"PropertyAccessExpression",fileTypes:["fluent"],async toShape(r,{transform:t}){if(r.getName()!=="$id")return{success:!1};let i=r.getExpressionIfKind(d8e.ts.SyntaxKind.Identifier);if(!i)return{success:!1};let a=await t.toShape(i);if(!a.success||!a.value.isIdentifier())return{success:!1};let c=a.value.resolve();return c.isRecord()?{success:!0,value:c.getId()}:{success:!1}}}]})});var $ln=Je(f8e=>{"use strict";V();G();U();z();Object.defineProperty(f8e,"__esModule",{value:!0});f8e.ApplicationMenuPlugin=void 0;var Ymt=Vs(),qAr=Zm();f8e.ApplicationMenuPlugin=Ymt.Plugin.create({name:"ApplicationMenuPlugin",records:{sys_app_application:{relationships:{sys_app_category:{via:"category",inverse:!0},sys_app_application:{via:"sys_overrides",inverse:!0}},async toShape(r,{factory:t}){let i=r.get("roles"),a=i.ifString()?.ifNotEmpty()?.split(",")??[],c=[];for(let d of a)c.push(await t.createReference({source:i,table:"sys_user_role",keys:{name:d}}));return{success:!0,value:new Ymt.CallExpressionShape({source:r,callee:"ApplicationMenu",exportName:r.get("sys_name")?.ifString()?.getValue(),args:[r.transform(({$:d})=>({$id:d.val(qAr.NowIdShape.from(r)),title:d,category:d,hint:d.def(""),description:d.def(""),name:d.def(""),active:d.toBoolean().def(!0),order:d.map(f=>f.ifString()?.ifNotEmpty()?.toNumber()).def(100),roles:d.val(c).def([])}))]})}}}},shapes:[{shape:Ymt.CallExpressionShape,fileTypes:["fluent"],async toRecord(r,{factory:t}){if(r.getCallee()!=="ApplicationMenu")return{success:!1};let i=r.getArgument(0).asObject();return{success:!0,value:await t.createRecord({source:r,table:"sys_app_application",explicitId:i.get("$id"),properties:i.transform(({$:a})=>({title:a,hint:a.def(""),description:a.def(""),name:a.def(""),active:a.def(!0),order:a.def(100),device_type:a.val("browser"),roles:a.map(c=>c.ifArray()?.map(d=>(d.ifRecord()?.get("name")??d.asString()).getValue()).join(",")).def(""),category:a}))})}}}]})});var nS=Je(f8=>{"use strict";V();G();U();z();Object.defineProperty(f8,"__esModule",{value:!0});f8.INVALID_XML_CHARACTERS=void 0;f8.toReference=HAr;f8.reverseObject=KAr;f8.noThrow=JAr;f8.applyPathMappings=XAr;f8.getCallExpressionName=$Ar;f8.generateDeprecatedDiagnostics=YAr;f8.validateClientSideScript=ZAr;f8.createSdkDocEntry=eCr;var Wbe=Vs();function HAr(r){return r.ifRecord()?.getId()??r.ifString()?.getValue()??""}e(HAr,"toReference");function KAr(r){let t={};for(let i in r){let a=r[i];typeof a=="string"&&(t[a]=i)}return t}e(KAr,"reverseObject");function JAr(r){try{return r()}catch(t){return t}}e(JAr,"noThrow");f8.INVALID_XML_CHARACTERS=/[\0-\x08\x0B\f\x0E-\x1F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/g;function XAr(r,t){if(!t)return r;for(let[i,a]of Object.entries(t)){let c=r.match(`${i.replace(/\./,"\\.").replace(/\*+/,"(.*)")}$`)?.[1];if(c!==void 0)return a.replace(/\*+/,c)}return r}e(XAr,"applyPathMappings");function $Ar(r){let t=r.getExpression();if(Wbe.ts.Node.isIdentifier(t)||Wbe.ts.Node.isPropertyAccessExpression(t))return t.getText();throw`CallExpression does not have a name: ${t.getText()}`}e($Ar,"getCallExpressionName");function YAr(r,t){Object.keys(r.getAliasedKeys()).forEach(i=>{let a=r.findAliasUsed(i);a&&t.hint(r.get(i),`The property '${a}' is deprecated, use '${i}' instead.`)})}e(YAr,"generateDeprecatedDiagnostics");function QAr(r){let t=r.getExpression();return Wbe.ts.Node.isIdentifier(t)&&t.getText()==="require"}e(QAr,"isRequire");function ZAr(r,t){let i=t.createSourceFile("tmp-script.ts",r),a=i.getDescendantsOfKind(Wbe.ts.SyntaxKind.ImportDeclaration).length>0,c=i.getDescendantsOfKind(Wbe.ts.SyntaxKind.CallExpression).some(QAr),d=!(a||c);return t.removeSourceFile(i),d}e(ZAr,"validateClientSideScript");function eCr(r,t){return{apiName:r,docPath:`@servicenow/sdk/docs/${r}/${r}.md`,tags:t}}e(eCr,"createSdkDocEntry")});var Qmt=Je(jbe=>{"use strict";V();G();U();z();Object.defineProperty(jbe,"__esModule",{value:!0});jbe.DataPlugin=void 0;jbe.isDataHelper=nCr;var pF=Vs(),tCr=nS();function nCr(r){if(!pF.ts.Node.isCallExpression(r))return!1;let t=(0,tCr.getCallExpressionName)(r);return Object.values(pF.DATA_HELPER_NAMES).includes(t)}e(nCr,"isDataHelper");var rCr={[pF.DATA_HELPER_NAMES.DURATION]:iCr,[pF.DATA_HELPER_NAMES.TIME]:oCr,[pF.DATA_HELPER_NAMES.FIELD_LIST]:aCr,[pF.DATA_HELPER_NAMES.TEMPLATE_VALUE]:sCr};jbe.DataPlugin=pF.Plugin.create({name:"DataPlugin",shapes:[{shape:pF.CallExpressionShape,fileTypes:["fluent"],toSubclass(r,{diagnostics:t}){let i=r.getCallee(),a=rCr[i];return a?a(r,t):{success:!1}}}]});function Yln(r,t){let i=[];for(let a of t){let c=r[a];if(!c?.isDefined()||!c.isNumber())continue;let d=c.asNumber().getValue();d<0&&i.push(`${a} must be >= 0, got ${d}`)}return i}e(Yln,"validateNonNegative");function Qln(r,t){return t.some(i=>r[i]?.isDefined())}e(Qln,"hasAtLeastOneField");function iCr(r,t){let i=r.getArgument(0),a=i.asObject().properties({resolve:!1});if(!Qln(a,["days","hours","minutes","seconds"]))return t.error(r,"Duration must have at least one field defined (days, hours, minutes, or seconds)"),{success:!1};let c=Yln(a,["days","hours","minutes","seconds"]);return c.length>0?(t.error(r,`Invalid duration values: ${c.join(", ")}`),{success:!1}):{success:!0,value:new pF.DurationShape({source:r,value:i.asObject()})}}e(iCr,"createDurationShape");function oCr(r,t){let i=r.getArgument(0),a=i.asObject().properties({resolve:!1});if(!Qln(a,["hours","minutes","seconds"]))return t.error(r,"Time must have at least one field defined (hours, minutes, or seconds)"),{success:!1};let c=Yln(a,["hours","minutes","seconds"]);if(c.length>0)return t.error(r,`Invalid time values: ${c.join(", ")}`),{success:!1};let d=r.getArgument(1);if(d.isUndefined())return{success:!0,value:new pF.TimeShape({source:r,value:i.asObject()})};if(!d.isString())return t.error(r,"Second argument (timezone) must be a string literal"),{success:!1};let f=d.asString().getValue();return lCr(f)?{success:!0,value:new pF.TimeShape({source:r,value:i.asObject(),timeZone:f})}:(t.error(r,`Invalid IANA timezone: '${f}'. Use a valid timezone like 'America/New_York', 'Europe/London', or 'UTC'.`),{success:!1})}e(oCr,"createTimeShape");function aCr(r,t){let i=r.getArgument(0).asArray().getElements();return{success:!0,value:new pF.FieldListShape({source:r,fields:i})}}e(aCr,"createFieldListShape");function sCr(r,t){let i=r.getArgument(0).asObject().properties({resolve:!1});for(let[a,c]of Object.entries(i))if(c.isString()&&c.getValue().includes("^^"))return t.error(r,`Template field '${a}' contains an invalid character sequence: multiple carets (^^). Use a single caret (^) if needed, it will be escaped automatically.`),{success:!1};return{success:!0,value:new pF.TemplateValueShape({source:r,value:i})}}e(sCr,"createTemplateValueShape");function lCr(r){try{return Intl.DateTimeFormat(void 0,{timeZone:r}),!0}catch{return!1}}e(lCr,"isValidTimeZone")});var Zmt=Je(_8e=>{"use strict";V();G();U();z();Object.defineProperty(_8e,"__esModule",{value:!0});_8e.BasicSyntaxPlugin=void 0;var rc=Vs(),cCr=Qmt(),uCr=nS();_8e.BasicSyntaxPlugin=rc.Plugin.create({name:"BasicSyntaxPlugin",files:[{entryPoint:!0,matcher:RegExp(`${rc.NOW_FILE_EXTENSION}$`)}],shapes:[{shape:rc.SourceFileShape,getTarget(r,{compiler:t,project:i}){let a=r.getOriginalSource();return{success:!0,value:rc.ts.Node.isNode(a)?a:t.getOrCreateSourceFile(i.resolvePath(r.getPath()))}},commit(r,t,{project:i}){let a=i.getFileIfExists(r.getPath());return a?a.setContent(r.getContent()):i.addFile({path:r.getPath(),content:r.getContent()}),{success:!0}}},{shape:rc.Shape,getTarget(r,{compiler:t,project:i,config:a}){let c=r.getOriginalSource();if((0,rc.isValidNode)(c))return{success:!0,value:c};if(r.isNoOp()||r.isUndefined()||r.isRecord()&&r.isDeleted())return{success:!1};let{generatedDir:d,taxonomy:f}=a,g=r.getSource()instanceof rc.Record?r.getSource().getTable():void 0,v=g&&f.mapping[g]?rc.path.join(d,f.mapping[g]):d,S=rc.path.basename(c.path).replace(RegExp(`${rc.path.extname(c.path)}$`),"");if(!S){let C=r.getSource()instanceof rc.Record?r.getSource().getId().getValue():void 0;S=`${g}_${C}`}i.isTypesGenerationMode()&&r.is(rc.VariableStatementShape)&&r.isExported()&&(S=r.getVariableName().getName());let E=t.getOrCreateSourceFile(i.resolvePath(i.getRootDir(),v,`${S}.now.ts`)),A=i.addFile(E.getFilePath(),{resolveDependencies:!1}).addStatement(r.getCode());return{success:!0,value:A.isKind(rc.ts.SyntaxKind.ExpressionStatement)?A.getExpression():A}}},{shape:rc.DeletedShape,commit(r,t){return(0,rc.removeReferences)(t),(0,rc.remove)(t),{success:!0}}},{shape:rc.UndefinedShape,commit(r,t){return(0,rc.isUndefined)(t)||t.replaceWithText("undefined"),{success:!0}}},{shape:rc.TemplateExpressionShape,async commit(r,t,{commit:i}){if(!rc.ts.Node.isTemplateExpression(t)&&!rc.ts.Node.isTaggedTemplateExpression(t)&&!rc.ts.Node.isNoSubstitutionTemplateLiteral(t))return t.replaceWithText(r.getCode()),{success:!0};let a=rc.ts.Node.isTaggedTemplateExpression(t)?t.removeTag():t,c=rc.ts.Node.isTemplateExpression(a)?a.getTemplateSpans():[],d=r.getSpans();if(d.length!==c.length)return a.replaceWithText(r.getCode()),{success:!0};for(let[f,g]of c.entries()){let v=d[f];if(!v)throw new Error(`Expected shape to have a span at index ${f}`);await i(v,g)}return{success:!0}}},{shape:rc.TemplateSpanShape,async commit(r,t,{commit:i}){if(!rc.ts.Node.isTemplateSpan(t))return t.replaceWithText(r.getCode()),{success:!0};let a=t.getLiteral();return r.getLiteralText()!==a.getLiteralText()&&(a.isKind(rc.ts.SyntaxKind.TemplateMiddle)?a.replaceWithText(`}${r.getLiteralText()}\${`):a.isKind(rc.ts.SyntaxKind.TemplateTail)&&a.replaceWithText(`}${r.getLiteralText()}\``)),await i(r.getExpression(),t.getExpression()),{success:!0}}},{shape:rc.StringLiteralShape,async commit(r,t,{commit:i}){let a=(()=>{try{if(rc.ts.Node.isTrueLiteral(t)||rc.ts.Node.isFalseLiteral(t))return r.toBoolean();if(rc.ts.Node.isNumericLiteral(t)){let c=r.toNumber();return c.getValue().toString()===r.getValue()?c:void 0}else if((0,cCr.isDataHelper)(t)){if(!rc.ts.Node.isCallExpression(t))return;let c=(0,uCr.getCallExpressionName)(t),d=t.getArguments()[1]?.asKind(rc.ts.SyntaxKind.StringLiteral)?.getLiteralValue();return(0,rc.asDataHelper)(c,r,d)}else return}catch{return}})();return a?(await i(a,t),{success:!0}):(rc.ts.Node.isTaggedTemplateExpression(t)?t.getTemplate().replaceWithText(new rc.TemplateExpressionShape({source:r,literalText:r}).getCode()):t.replaceWithText(r.getCode()),{success:!0})}},{shape:rc.NumberShape,commit(r,t){return rc.ts.Node.isNumericLiteral(t)&&t.getLiteralValue()===r.getValue()?{success:!0}:(t.replaceWithText(r.getValue().toString()),{success:!0})}},{shape:rc.BooleanShape,commit(r,t){return(rc.ts.Node.isTrueLiteral(t)||rc.ts.Node.isFalseLiteral(t))&&t.getLiteralValue()===r.getValue()?{success:!0}:(t.replaceWithText(r.getValue().toString()),{success:!0})}},{shape:rc.ArrayShape,async commit(r,t,{commit:i}){if(!rc.ts.Node.isArrayLiteralExpression(t))return t.replaceWithText(r.getCode()),{success:!0};let a=t.getElements(),c=r.getElements(!1),d=a.length-c.length;for(let g=1;g<=d;g++)t.removeElement(a.length-g);for(let[g,v]of t.getElements().entries())await i(r.getElement(g,!1),v);let f=c.slice(t.getElements().length).map(g=>g.getCode());return f.length>0&&t.addElements(f),{success:!0}}},{shape:rc.ObjectShape,async commit(r,t,{commit:i}){if(!rc.ts.Node.isObjectLiteralExpression(t))return t.replaceWithText(r.getCode()),{success:!0};let a=t.getProperties().filter(g=>g.isKind(rc.ts.SyntaxKind.PropertyAssignment)).reduce((g,v)=>g.set(dCr(v),v.getInitializerOrThrow()),new Map),c=new Set(["$meta"]),d=[];for(let[g,v]of r.entries({resolve:!1})){let S=[...r.getAliases(g),g].find(E=>a.has(E));S!==void 0?(S!==g&&t.getPropertyOrThrow(S).asKindOrThrow(rc.ts.SyntaxKind.PropertyAssignment).getNameNode().replaceWithText(g),await i(v,a.get(S))):v.equals(r.getDefault(g))||d.push({name:rc.ObjectShape.quotePropertyNameIfNeeded(g),initializer:v.getCode(),kind:rc.ts.StructureKind.PropertyAssignment}),c.add(g)}return d.length>0&&t.addPropertyAssignments(d),[...a.keys()].filter(g=>!c.has(g)).forEach(g=>{t.getProperty(g)?.asKindOrThrow(rc.ts.SyntaxKind.PropertyAssignment).remove()}),{success:!0}}},{shape:rc.IdentifierShape,commit(r,t){return rc.ts.Node.isIdentifier(t)&&t.getText()===r.getName()?{success:!0}:(t.replaceWithText(r.getName()),{success:!0})}},{shape:rc.VariableStatementShape,async commit(r,t,{commit:i}){if(rc.ts.Node.isExpressionStatement(t))return t.replaceWithText(r.getCode()),{success:!0};if(rc.ts.Node.isCallExpression(t)){let g=t.getParentIfKind(rc.ts.SyntaxKind.ExpressionStatement);if(g)return g.replaceWithText(r.getCode()),{success:!0}}let a=rc.ts.Node.isVariableStatement(t)?t:t.getFirstAncestorByKindOrThrow(rc.ts.SyntaxKind.VariableStatement);a.isExported()!==r.isExported()&&a.setIsExported(r.isExported());let[c,d]=a.getDeclarations();if(!c)throw new Error(`Variable statement is missing a declaration: ${a.getFullText()}`);d&&((0,rc.removeReferences)(d),(0,rc.remove)(d));let f=r.getVariableName();return c.getName()!==f.getName()&&await i(f,c.getNameNode()),await i(r.getInitializer(),c.getInitializerOrThrow()),{success:!0}}}],nodes:[{node:"SourceFile",async toShape(r,{diagnostics:t,transform:i}){if((0,rc.isFluentFile)(r)){let a=r.getChildSyntaxList();if(!a)return t.error(r,"Fluent source file contains no meaningful content."),{success:!1};for(let c of a.getChildren()){if(rc.ts.Node.isCommentNode(c))continue;if(!(await i.toShape(c)).success)return t.error(c,"Unsupported statement in Fluent source file."),{success:!1}}}return{success:!0,value:new rc.SourceFileShape({source:r,path:r.getFilePath(),content:r.getFullText()})}}},{node:"StringLiteral",toShape(r){return{success:!0,value:new rc.StringLiteralShape({source:r,literalText:r.getLiteralValue()})}}},{node:"NoSubstitutionTemplateLiteral",toShape(r){return{success:!0,value:new rc.TemplateExpressionShape({source:r,literalText:r.getLiteralValue()})}}},{node:"NumericLiteral",toShape(r){return{success:!0,value:new rc.NumberShape({source:r,value:r.getLiteralValue()})}}},{node:"NullKeyword",toShape(r){return{success:!0,value:new rc.UndefinedShape({source:r})}}},{node:"TrueKeyword",toShape(r){return{success:!0,value:new rc.BooleanShape({source:r,value:!0})}}},{node:"FalseKeyword",toShape(r){return{success:!0,value:new rc.BooleanShape({source:r,value:!1})}}},{node:"AsExpression",toShape(r,{transform:t}){return t.toShape(r.getExpression())}},{node:"ExportAssignment",toShape(r,{transform:t}){return t.toShape(r.getExpression())}},{node:"ComputedPropertyName",toShape(r,{transform:t}){return t.toShape(r.getExpression())}},{node:"PropertyAccessExpression",async toShape(r,{transform:t,diagnostics:i}){let a=r.getNameNode(),c=await t.toShape(a);if(!c.success||!c.value.isIdentifier())return i.error(a,"Last element of property access expression is unsupported"),{success:!1};let d=r.getExpression(),f=await t.toShape(d);if(!f.success||!f.value.is([rc.IdentifierShape,rc.PropertyAccessShape]))return i.error(d,"Left side of property access expression is unsupported"),{success:!1};let g=f.value.isIdentifier()?[f.value,c.value]:[...f.value.getElements(),c.value];return{success:!0,value:new rc.PropertyAccessShape({source:r,elements:g})}}},{node:"ExpressionStatement",toShape(r,{transform:t}){return t.toShape(r.getExpression())}},{node:"Identifier",async toShape(r,{transform:t}){if((0,rc.isUndefined)(r))return{success:!0,value:new rc.UndefinedShape({source:r})};let i=r.getSymbol()?.getName()??r.getText(),a=(0,rc.getValueDeclaration)(r),c=a&&await t.toShape(a);return{success:!0,value:c?.success?new rc.IdentifierShape({source:r,name:i,value:c.value}):new rc.IdentifierShape({source:r,name:i})}}},{node:"Parameter",toShape(r){return{success:!0,value:new rc.IdentifierShape({source:r,name:r.getName()})}}},{node:"VariableStatement",async toShape(r,{transform:t,diagnostics:i}){let a=r.getDeclarationKind();if(a!==rc.ts.VariableDeclarationKind.Const)return i.error(r.getDeclarationKindKeywords()[0]??r,`Declaration kind "${a}" is not supported. Only const variables are supported.`),{success:!1};let c=r.getDefaultKeyword();if(c)return i.error(c,"Default exports are not supported"),{success:!1};let[d,f]=r.getDeclarations();if(!d)return i.error(r,"Missing declaration in variable statement"),{success:!1};if(f)return i.error(f,"Additional declarations in variable statements are not supported"),{success:!1};let g=d.getInitializerOrThrow(),v=await t.toShape(g);return v.success?{success:!0,value:new rc.VariableStatementShape({source:r,variableName:new rc.IdentifierShape({source:r,name:d.getName()}),initializer:v.value,isExported:r.isExported()})}:(i.error(g,"Unsupported variable initializer"),{success:!1})}},{node:"VariableDeclaration",toShape(r,{transform:t}){let i=r.getInitializer();return i?t.toShape(i):{success:!0,value:new rc.UndefinedShape({source:r})}}},{node:"ArrayLiteralExpression",async toShape(r,{transform:t}){let i=[];for(let a of r.getElements()){let c=await t.toShape(a);if(!c.success)return{success:!1};i.push(c.value)}return{success:!0,value:new rc.ArrayShape({source:r,elements:i})}}},{node:"PropertyAssignment",toShape(r,{transform:t,diagnostics:i}){let a=r.getInitializer();return a?t.toShape(a):(i.error(r,"Property must have an initializer"),{success:!1})}},{node:"ObjectLiteralExpression",async toShape(r,{transform:t,diagnostics:i}){let a={};for(let c of r.getProperties()){if(!rc.ts.Node.isPropertyAssignment(c)){i.error(c,"Only property assignments are allowed");continue}let d=await t.toShape(c);if(!d.success)return i.error(c,"Failed to parse property"),{success:!1};let f=c.getNameNode(),g=rc.ts.Node.isStringLiteral(f)?f.getLiteralValue():c.getName();a[g]=d.value}return{success:!0,value:new rc.ObjectShape({source:r,properties:a})}}},{node:"TemplateSpan",async toShape(r,{transform:t,diagnostics:i}){let a=await t.toShape(r.getExpression());return a.success?{success:!0,value:new rc.TemplateSpanShape({source:r,expression:a.value,literalText:r.getLiteral().getLiteralText()})}:(i.error(r,"Unsupported expression in template"),{success:!1})}},{node:"TemplateExpression",async toShape(r,{transform:t,diagnostics:i}){let a=[];for(let c of r.getTemplateSpans()){let d=await t.toShape(c);if(!d.success||!d.value.is(rc.TemplateSpanShape))return i.error(c,"Unsupported span in template expression"),{success:!1};a.push(d.value)}return{success:!0,value:new rc.TemplateExpressionShape({source:r,literalText:r.getHead().getLiteralText(),spans:a})}}},{node:"TaggedTemplateExpression",async toShape(r,{transform:t,diagnostics:i}){let a=r.getTemplate(),c=await t.toShape(a);return!c.success||!c.value.is(rc.TemplateExpressionShape)?(i.error(a,"Unsupported template in tagged template expression"),{success:!1}):{success:!0,value:new rc.TaggedTemplateExpressionShape({source:r,tag:r.getTag().getText(),template:c.value})}}},{node:"PrefixUnaryExpression",toShape(r,{diagnostics:t}){return!rc.ts.Node.isNumericLiteral(r.getOperand())||r.getOperatorToken()!==rc.ts.SyntaxKind.MinusToken?(t.error(r,"Unsupported prefix unary expression"),{success:!1}):{success:!0,value:new rc.NumberShape({source:r,value:-r.getOperand().asKindOrThrow(rc.ts.SyntaxKind.NumericLiteral).getLiteralValue()})}}},{node:"ElementAccessExpression",async toShape(r,{transform:t,diagnostics:i}){let a=r.getArgumentExpression();if(!a)return i.error(r,"Element access expression must have an argument"),{success:!1};let c=await t.toShape(a);return c.success?{success:!0,value:new rc.ElementAccessExpressionShape({source:r,callee:r.getExpression().getText(),arg:c.value})}:(i.error(r,"Unsupported element access expression argument"),{success:!1})}},{node:"ImportDeclaration",toShape(r){return{success:!0,value:rc.Shape.noOp(r)}}},{node:"ExportDeclaration",toShape(r){return{success:!0,value:rc.Shape.noOp(r)}}}]});function dCr(r){let t=r.getNameNode();return rc.ts.Node.isStringLiteral(t)||rc.ts.Node.isNoSubstitutionTemplateLiteral(t)?t.getLiteralValue():t.getText()}e(dCr,"getName")});var zbe=Je(m8e=>{"use strict";V();G();U();z();Object.defineProperty(m8e,"__esModule",{value:!0});m8e.CallExpressionPlugin=void 0;var Vbe=Vs(),pCr=nS();m8e.CallExpressionPlugin=Vbe.Plugin.create({name:"CallExpressionPlugin",nodes:[{node:"CallExpression",fileTypes:["fluent"],entryPoint:!0,async toShape(r,{transform:t}){let i=[];for(let a of r.getArguments()){let c=await t.toShape(a);if(!c.success)return{success:!1};i.push(c.value)}return{success:!0,value:new Vbe.CallExpressionShape({source:r,callee:(0,pCr.getCallExpressionName)(r),args:i})}}}],shapes:[{shape:Vbe.CallExpressionShape,async commit(r,t,{commit:i}){if(t.isKind(Vbe.ts.SyntaxKind.ExpressionStatement)&&(t=t.getExpression()),!Vbe.ts.Node.isCallExpression(t))return t.replaceWithText(r.getCode()),{success:!0};let a=t.getExpression();a.getText()!==r.getCallee()&&a.replaceWithText(r.getCallee());let c=t.getArguments(),d=r.getArguments(!1),f=c.length-d.length;for(let v=1;v<=f;v++)t.removeArgument(c.length-v);for(let[v,S]of t.getArguments().entries())await i(r.getArgument(v,!1),S);let g=d.slice(t.getArguments().length).map(v=>v.getCode());return g.length>0&&t.addArguments(g),{success:!0}}}]})});var oq=Je(Oce=>{"use strict";V();G();U();z();Object.defineProperty(Oce,"__esModule",{value:!0});Oce.NowIncludePlugin=Oce.NowIncludeShape=void 0;var _8=Vs(),fCr=zbe(),Hte=class r extends _8.CallExpressionShape{static{e(this,"NowIncludeShape")}includedText;constructor({source:t,path:i,includedText:a}){super({source:t,callee:"Now.include",args:[i]}),this.includedText=a}getPath(){return this.getArgument(0).asString().getValue()}getValue(){return this.includedText}toString(){return _8.Shape.from(this,this.getValue()).asString().withContentType("cdata")}equals(t){return typeof t=="string"?this.includedText===t:t instanceof _8.Shape?t.equals(this.includedText):super.equals(t)}static async fromRecord(t,i,a){let c=_8.taxonomySchemaDefault[t.getTable()],d=c?.startsWith("client-development")?".client":c?.startsWith("server-development")?".server":"";return new r({source:t,path:`./${await a.getUpdateName(t)}${d}.js`,includedText:i instanceof _8.Shape?i.toString().getValue():i})}};Oce.NowIncludeShape=Hte;Oce.NowIncludePlugin=_8.Plugin.create({name:"NowIncludePlugin",shapes:[{shape:_8.CallExpressionShape,fileTypes:["fluent"],toSubclass(r,{diagnostics:t,project:i}){if(r.getCallee()!=="Now.include")return{success:!1};let a=r.getArgument(0);if(!a.isString())return t.error(a,"Now.include() must have a string argument"),{success:!1};let c=a.getValue();if(!/^\.\.?\/.*$/.test(c.trim())&&c.includes("/"))return t.error(a,"Now.include() argument must be a relative path"),{success:!1};let d=_8.path.resolve(_8.path.dirname(r.getOriginalFilePath()),c);if(!i.isInRootDir(d))return t.error(a,`Included file path is not within project: ${d}`),{success:!1};let f;try{f=i.addFile(d,{resolveDependencies:!1,excludeFromCompiler:!0})}catch(g){return t.error(a,`Failed to include file. Reason: ${g instanceof Error?g.message:g}`),{success:!1}}return{success:!0,value:new Hte({source:r,path:c,includedText:f.getContent()})}}},{shape:Hte,async commit(r,t,{transform:i,commit:a,project:c,fs:d}){let f=await i.toShape(t);if(!f.success)return{success:!1};let g=t.getSourceFile().getDirectoryPath(),v=c.resolvePath(g,r.getPath()),{value:S}=f;return S.equals(r.getValue())?{success:!0}:(S.is(Hte)?c.getFile(c.resolvePath(g,S.getPath())).setContent(r.getValue()):S.is(_8.CallExpressionShape)&&S.getCallee()==="Now.include"?(await a(r,t,fCr.CallExpressionPlugin),_8.FileSystem.existsSync(d,v)?c.addFile(v,{resolveDependencies:!1,excludeFromCompiler:!0}).setContent(r.getValue()):c.addFile({path:v,content:r.getValue()},{resolveDependencies:!1,excludeFromCompiler:!0})):t.replaceWithText(r.toString().getCode()),{success:!0})}},{shape:_8.StringShape,async commit(r,t,{transform:i,project:a}){let c=await i.toShape(t);if(!c.success)return{success:!1};let d=c.value.ifIdentifier()?.resolve()??c.value;if(!d.is(Hte))return{success:!1};if(!r.equals(d.getValue())){let f=t.getSourceFile().getDirectoryPath();a.getFile(a.resolvePath(f,d.getPath())).setContent(r.getValue())}return{success:!0}}}]})});var tcn=Je(h8e=>{"use strict";V();G();U();z();Object.defineProperty(h8e,"__esModule",{value:!0});h8e.ClientScriptPlugin=void 0;var eht=Vs(),_Cr=Zm(),Zln=nS(),mCr=oq(),Ube;(function(r){r[r.desktop=0]="desktop",r[r.mobile_or_service_portal=1]="mobile_or_service_portal",r[r.all=10]="all"})(Ube||(Ube={}));var ecn={appliesExtended:["applies_extended"],isolateScript:["isolate_script"],uiType:["ui_type"]};h8e.ClientScriptPlugin=eht.Plugin.create({name:"ClientScriptPlugin",records:{sys_script_client:{async toShape(r,{transform:t}){let i=await mCr.NowIncludeShape.fromRecord(r,r.get("script"),t);return{success:!0,value:new eht.CallExpressionShape({source:r,callee:"ClientScript",args:[r.transform(({$:a,merge:c})=>({$id:a.val(_Cr.NowIdShape.from(r)),type:a.def(""),table:a,appliesExtended:a.from("applies_extended").toBoolean().def(!1),isolateScript:a.from("isolate_script").toBoolean().def(!1),script:a.val(i),name:a,description:a.def(""),messages:a.def(""),global:a.toBoolean().def(!0),active:a.toBoolean().def(!0),view:a.def(""),uiType:a.from("ui_type").map(d=>hCr(d.toNumber().getValue())).def("desktop"),[c]:a.from("field","type").map((d,f)=>f.isString()&&["onChange","onCellEdit"].includes(f.getValue())&&!d.ifString()?.isEmpty()?{field:d}:{})})).withAliasedKeys(ecn)]})}}}},shapes:[{shape:eht.CallExpressionShape,fileTypes:["fluent"],async toRecord(r,{diagnostics:t,factory:i,compiler:a}){if(r.getCallee()!=="ClientScript")return{success:!1};let c=r.getArgument(0).asObject().withAliasedKeys(ecn);(0,Zln.generateDeprecatedDiagnostics)(c,t);let d=c.get("script").ifDefined()?.toString().getValue(),f=c.get("type").ifString()?.getValue();return c.get("field").ifString()?.getValue()&&!f&&t.error(c.get("field"),"Field values are allowed only when type is set to onChange or onCellEdit"),d&&!(0,Zln.validateClientSideScript)(d,a)&&t.error(c.get("script"),"Client side scripts cannot import or require modules."),{success:!0,value:await i.createRecord({source:r,table:"sys_script_client",explicitId:c.get("$id"),properties:c.transform(({$:v})=>({table:v,global:v.def(!0),view:v,field:v,script:v.toCdata(),type:v,name:v,active:v.def(!0),applies_extended:v.from("appliesExtended").def(!1),description:v,messages:v,isolate_script:v.from("isolateScript").def(!1),ui_type:v.from("uiType").map(S=>S.isString()?gCr(S.getValue()):void 0).def(0)}))})}}}]});function hCr(r){let t=Ube[r];if(!t)throw Error("Invalid UI Type encountered, check XML data before transforming again.");return t}e(hCr,"getUITypeFromId");function gCr(r){if(r in Ube)return Ube[r];throw Error("Invalid ui_type found in xml")}e(gCr,"getUITypeId")});var rcn=Je(g8e=>{"use strict";V();G();U();z();Object.defineProperty(g8e,"__esModule",{value:!0});g8e.CrossScopePrivilegePlugin=void 0;var tht=Vs(),yCr=Zm(),vCr=nS(),ncn={targetName:["target_name"],targetScope:["target_scope"],targetType:["target_type"]};g8e.CrossScopePrivilegePlugin=tht.Plugin.create({name:"CrossScopePrivilegePlugin",records:{sys_scope_privilege:{relationships:{sys_scope:{via:"target_scope",inverse:!0}},toShape(r){return{success:!0,value:new tht.CallExpressionShape({source:r,callee:"CrossScopePrivilege",args:[r.transform(({$:t})=>({$id:t.val(yCr.NowIdShape.from(r)),operation:t,status:t,targetName:t.from("target_name"),targetScope:t.from("target_scope"),targetType:t.from("target_type")})).withAliasedKeys(ncn)]})}}}},shapes:[{shape:tht.CallExpressionShape,fileTypes:["fluent"],async toRecord(r,{factory:t,config:i,diagnostics:a}){if(r.getCallee()!=="CrossScopePrivilege")return{success:!1};let c=r.getArgument(0).asObject().withAliasedKeys(ncn);(0,vCr.generateDeprecatedDiagnostics)(c,a);let d=c.get("targetScope"),f=d.isString()?await t.createReference({source:d,table:"sys_scope",guid:d}):void 0;return{success:!0,value:await t.createRecord({source:r,table:"sys_scope_privilege",explicitId:c.get("$id"),properties:c.transform(({$:g})=>({operation:g,status:g,target_name:g.from("targetName"),target_scope:g.val(f),target_type:g.from("targetType"),source_scope:g.val(i.scopeId)}))})}}}]})});var icn=Je(nht=>{"use strict";V();G();U();z();Object.defineProperty(nht,"__esModule",{value:!0});nht.ApplicationMenu=bCr;function bCr(r){return r}e(bCr,"ApplicationMenu")});var ocn=Je(rht=>{"use strict";V();G();U();z();Object.defineProperty(rht,"__esModule",{value:!0});rht.Property=SCr;function SCr(r){return r}e(SCr,"Property")});var acn=Je(iht=>{"use strict";V();G();U();z();Object.defineProperty(iht,"__esModule",{value:!0});iht.UserPreference=ECr;function ECr(r){return r}e(ECr,"UserPreference")});var scn=Je(oht=>{"use strict";V();G();U();z();Object.defineProperty(oht,"__esModule",{value:!0});oht.CrossScopePrivilege=xCr;function xCr(r){return r}e(xCr,"CrossScopePrivilege")});var lcn=Je(aht=>{"use strict";V();G();U();z();Object.defineProperty(aht,"__esModule",{value:!0});aht.BusinessRule=TCr;function TCr(r){return r}e(TCr,"BusinessRule")});var ccn=Je(m8=>{"use strict";V();G();U();z();Object.defineProperty(m8,"__esModule",{value:!0});m8.AclAttributes=m8.AclOperations=m8.AclTypes=m8.AclNamedTypes=void 0;m8.Acl=ACr;var DCr={ux_data_broker:"6d9c40e9531210101cb3ddeeff7b12f6",pd_action:"pd_action",record:"record"};m8.AclNamedTypes={client_callable_flow_object:"client_callable_flow_object",client_callable_script_include:"client_callable_script_include",graphql:"GraphQL",processor:"processor",rest_endpoint:"REST_Endpoint",ui_page:"ui_page",ux_page:"b9eb8a1b873303002941b53046cb0b18",ux_route:"b9eb8a1b873303002941b53046cb1234"};m8.AclTypes={...DCr,...m8.AclNamedTypes};m8.AclOperations={execute:"execute",create:"create",read:"read",write:"write",delete:"delete",conditional_table_query_range:"7aad4c50b7f4621062b62181ce11a918",data_fabric:"e60cd19b4f602210f2c160cc32ce0b06",query_match:"521c7497b7300210240b06dd1e11a979",query_range:"e66cf897b7300210240b06dd1e11a9fd",edit_task_relations:"b718b0e2c0a80204005b2705d3b6a0a0",edit_ci_relations:"b7199572c0a8020400ee6d907c07d6cc",save_as_template:"e5a2b9c50a0a0bc5005dd4a3096ac37b",add_to_list:"394af8150a0a0b270096f5ac9d6bac47",report_on:"f6861c32c0a8016400647951e901525d",list_edit:"54f535270a0a0b8c007c67009ab2bdc0",report_view:"0997ab83733303005978e4b9cdf6a7b9",personalize_choices:"76742c60c0a801657735f3789a7327d0"};m8.AclAttributes={user_is_authenticated:"239bdf0c47d23110ba46ff58936d4330",has_admin_role:"8637f144b732111074f706dd1e11a981"};function ACr(r){return r}e(ACr,"Acl")});var ucn=Je(sht=>{"use strict";V();G();U();z();Object.defineProperty(sht,"__esModule",{value:!0});sht.Role=CCr;function CCr(r){return r}e(CCr,"Role")});var pcn=Je(dcn=>{"use strict";V();G();U();z();Object.defineProperty(dcn,"__esModule",{value:!0})});var _cn=Je(fcn=>{"use strict";V();G();U();z();Object.defineProperty(fcn,"__esModule",{value:!0})});var hcn=Je(mcn=>{"use strict";V();G();U();z();Object.defineProperty(mcn,"__esModule",{value:!0})});var ycn=Je(gcn=>{"use strict";V();G();U();z();Object.defineProperty(gcn,"__esModule",{value:!0})});var bcn=Je(vcn=>{"use strict";V();G();U();z();Object.defineProperty(vcn,"__esModule",{value:!0})});var Ecn=Je(Scn=>{"use strict";V();G();U();z();Object.defineProperty(Scn,"__esModule",{value:!0})});var Tcn=Je(xcn=>{"use strict";V();G();U();z();Object.defineProperty(xcn,"__esModule",{value:!0})});var Acn=Je(Dcn=>{"use strict";V();G();U();z();Object.defineProperty(Dcn,"__esModule",{value:!0})});var Icn=Je(Ccn=>{"use strict";V();G();U();z();Object.defineProperty(Ccn,"__esModule",{value:!0})});var wcn=Je(sM=>{"use strict";V();G();U();z();var ICr=sM&&sM.__createBinding||(Object.create?function(r,t,i,a){a===void 0&&(a=i);var c=Object.getOwnPropertyDescriptor(t,i);(!c||("get"in c?!t.__esModule:c.writable||c.configurable))&&(c={enumerable:!0,get:e(function(){return t[i]},"get")}),Object.defineProperty(r,a,c)}:function(r,t,i,a){a===void 0&&(a=i),r[a]=t[i]}),u$=sM&&sM.__exportStar||function(r,t){for(var i in r)i!=="default"&&!Object.prototype.hasOwnProperty.call(t,i)&&ICr(t,r,i)};Object.defineProperty(sM,"__esModule",{value:!0});u$(pcn(),sM);u$(_cn(),sM);u$(hcn(),sM);u$(ycn(),sM);u$(bcn(),sM);u$(Ecn(),sM);u$(Tcn(),sM);u$(Acn(),sM);Icn()});var Pcn=Je(lht=>{"use strict";V();G();U();z();Object.defineProperty(lht,"__esModule",{value:!0});lht.Test=wCr;wcn();function wCr(r,t){return{inputObject:r,configurationFunction:t}}e(wCr,"Test")});var Ncn=Je(cht=>{"use strict";V();G();U();z();Object.defineProperty(cht,"__esModule",{value:!0});cht.ImportSet=PCr;function PCr(r){return r}e(PCr,"ImportSet")});var Rcn=Je(uht=>{"use strict";V();G();U();z();Object.defineProperty(uht,"__esModule",{value:!0});uht.Sla=NCr;function NCr(r){return r}e(NCr,"Sla")});var y8e=Je(rP=>{"use strict";V();G();U();z();var RCr=rP&&rP.__createBinding||(Object.create?function(r,t,i,a){a===void 0&&(a=i);var c=Object.getOwnPropertyDescriptor(t,i);(!c||("get"in c?!t.__esModule:c.writable||c.configurable))&&(c={enumerable:!0,get:e(function(){return t[i]},"get")}),Object.defineProperty(r,a,c)}:function(r,t,i,a){a===void 0&&(a=i),r[a]=t[i]}),jj=rP&&rP.__exportStar||function(r,t){for(var i in r)i!=="default"&&!Object.prototype.hasOwnProperty.call(t,i)&&RCr(t,r,i)};Object.defineProperty(rP,"__esModule",{value:!0});jj(icn(),rP);jj(ocn(),rP);jj(acn(),rP);jj(scn(),rP);jj(lcn(),rP);jj(ccn(),rP);jj(ucn(),rP);jj(Pcn(),rP);jj(Ncn(),rP);jj(Rcn(),rP)});var Lcn=Je(dht=>{"use strict";V();G();U();z();Object.defineProperty(dht,"__esModule",{value:!0});dht.SPAngularProvider=LCr;function LCr(r){return r}e(LCr,"SPAngularProvider")});var Mcn=Je(Gbe=>{"use strict";V();G();U();z();Object.defineProperty(Gbe,"__esModule",{value:!0});Gbe.SPWidgetDependency=MCr;Gbe.JsInclude=kCr;Gbe.CssInclude=OCr;function MCr(r){return r}e(MCr,"SPWidgetDependency");function kCr(r){return r}e(kCr,"JsInclude");function OCr(r){return r}e(OCr,"CssInclude")});var kcn=Je(qbe=>{"use strict";V();G();U();z();Object.defineProperty(qbe,"__esModule",{value:!0});qbe.WidgetCategories=void 0;qbe.SPWidget=FCr;qbe.WidgetCategories={standard:"standard",otherApplications:"other",custom:"custom",sample:"sample",knowledgeBase:"kb",servicePortal:"sp_platform",serviceCatalog:"sc"};function FCr(r){return r}e(FCr,"SPWidget")});var fht=Je(aq=>{"use strict";V();G();U();z();var BCr=aq&&aq.__createBinding||(Object.create?function(r,t,i,a){a===void 0&&(a=i);var c=Object.getOwnPropertyDescriptor(t,i);(!c||("get"in c?!t.__esModule:c.writable||c.configurable))&&(c={enumerable:!0,get:e(function(){return t[i]},"get")}),Object.defineProperty(r,a,c)}:function(r,t,i,a){a===void 0&&(a=i),r[a]=t[i]}),pht=aq&&aq.__exportStar||function(r,t){for(var i in r)i!=="default"&&!Object.prototype.hasOwnProperty.call(t,i)&&BCr(t,r,i)};Object.defineProperty(aq,"__esModule",{value:!0});pht(Lcn(),aq);pht(Mcn(),aq);pht(kcn(),aq)});var Ocn=Je(_ht=>{"use strict";V();G();U();z();Object.defineProperty(_ht,"__esModule",{value:!0});_ht.AttachmentVariable=WCr;function WCr(r){return r}e(WCr,"AttachmentVariable")});var Fcn=Je(mht=>{"use strict";V();G();U();z();Object.defineProperty(mht,"__esModule",{value:!0});mht.BreakVariable=jCr;function jCr(r){return r}e(jCr,"BreakVariable")});var Wcn=Je(Bcn=>{"use strict";V();G();U();z();Object.defineProperty(Bcn,"__esModule",{value:!0})});var jcn=Je(hht=>{"use strict";V();G();U();z();Object.defineProperty(hht,"__esModule",{value:!0});hht.CheckboxVariable=VCr;function VCr(r){return r}e(VCr,"CheckboxVariable")});var Vcn=Je(ght=>{"use strict";V();G();U();z();Object.defineProperty(ght,"__esModule",{value:!0});ght.ContainerEndVariable=zCr;function zCr(r){return r}e(zCr,"ContainerEndVariable")});var zcn=Je(yht=>{"use strict";V();G();U();z();Object.defineProperty(yht,"__esModule",{value:!0});yht.ContainerSplitVariable=UCr;function UCr(r){return r}e(UCr,"ContainerSplitVariable")});var Ucn=Je(vht=>{"use strict";V();G();U();z();Object.defineProperty(vht,"__esModule",{value:!0});vht.ContainerStartVariable=GCr;function GCr(r){return r}e(GCr,"ContainerStartVariable")});var Gcn=Je(bht=>{"use strict";V();G();U();z();Object.defineProperty(bht,"__esModule",{value:!0});bht.CustomVariable=qCr;function qCr(r){return r}e(qCr,"CustomVariable")});var qcn=Je(Sht=>{"use strict";V();G();U();z();Object.defineProperty(Sht,"__esModule",{value:!0});Sht.CustomWithLabelVariable=HCr;function HCr(r){return r}e(HCr,"CustomWithLabelVariable")});var Hcn=Je(Eht=>{"use strict";V();G();U();z();Object.defineProperty(Eht,"__esModule",{value:!0});Eht.DateVariable=KCr;function KCr(r){return r}e(KCr,"DateVariable")});var Kcn=Je(xht=>{"use strict";V();G();U();z();Object.defineProperty(xht,"__esModule",{value:!0});xht.DateTimeVariable=JCr;function JCr(r){return r}e(JCr,"DateTimeVariable")});var Jcn=Je(Tht=>{"use strict";V();G();U();z();Object.defineProperty(Tht,"__esModule",{value:!0});Tht.DurationVariable=XCr;function XCr(r){return r}e(XCr,"DurationVariable")});var Xcn=Je(Dht=>{"use strict";V();G();U();z();Object.defineProperty(Dht,"__esModule",{value:!0});Dht.EmailVariable=$Cr;function $Cr(r){return r}e($Cr,"EmailVariable")});var $cn=Je(Aht=>{"use strict";V();G();U();z();Object.defineProperty(Aht,"__esModule",{value:!0});Aht.HtmlVariable=YCr;function YCr(r){return r}e(YCr,"HtmlVariable")});var Ycn=Je(Cht=>{"use strict";V();G();U();z();Object.defineProperty(Cht,"__esModule",{value:!0});Cht.IpAddressVariable=QCr;function QCr(r){return r}e(QCr,"IpAddressVariable")});var Qcn=Je(Iht=>{"use strict";V();G();U();z();Object.defineProperty(Iht,"__esModule",{value:!0});Iht.LabelVariable=ZCr;function ZCr(r){return r}e(ZCr,"LabelVariable")});var Zcn=Je(wht=>{"use strict";V();G();U();z();Object.defineProperty(wht,"__esModule",{value:!0});wht.ListCollectorVariable=eIr;function eIr(r){return r}e(eIr,"ListCollectorVariable")});var eun=Je(Pht=>{"use strict";V();G();U();z();Object.defineProperty(Pht,"__esModule",{value:!0});Pht.LookupMultipleChoiceVariable=tIr;function tIr(r){return r}e(tIr,"LookupMultipleChoiceVariable")});var tun=Je(Nht=>{"use strict";V();G();U();z();Object.defineProperty(Nht,"__esModule",{value:!0});Nht.LookupSelectBoxVariable=nIr;function nIr(r){return r}e(nIr,"LookupSelectBoxVariable")});var nun=Je(Rht=>{"use strict";V();G();U();z();Object.defineProperty(Rht,"__esModule",{value:!0});Rht.MaskedVariable=rIr;function rIr(r){return r}e(rIr,"MaskedVariable")});var run=Je(Lht=>{"use strict";V();G();U();z();Object.defineProperty(Lht,"__esModule",{value:!0});Lht.MultiLineTextVariable=iIr;function iIr(r){return r}e(iIr,"MultiLineTextVariable")});var iun=Je(Mht=>{"use strict";V();G();U();z();Object.defineProperty(Mht,"__esModule",{value:!0});Mht.MultipleChoiceVariable=oIr;function oIr(r){return r}e(oIr,"MultipleChoiceVariable")});var oun=Je(kht=>{"use strict";V();G();U();z();Object.defineProperty(kht,"__esModule",{value:!0});kht.NumericScaleVariable=aIr;function aIr(r){return r}e(aIr,"NumericScaleVariable")});var aun=Je(Oht=>{"use strict";V();G();U();z();Object.defineProperty(Oht,"__esModule",{value:!0});Oht.ReferenceVariable=sIr;function sIr(r){return r}e(sIr,"ReferenceVariable")});var sun=Je(Fht=>{"use strict";V();G();U();z();Object.defineProperty(Fht,"__esModule",{value:!0});Fht.RequestedForVariable=lIr;function lIr(r){return r}e(lIr,"RequestedForVariable")});var lun=Je(Bht=>{"use strict";V();G();U();z();Object.defineProperty(Bht,"__esModule",{value:!0});Bht.RichTextLabelVariable=cIr;function cIr(r){return r}e(cIr,"RichTextLabelVariable")});var cun=Je(Wht=>{"use strict";V();G();U();z();Object.defineProperty(Wht,"__esModule",{value:!0});Wht.SelectBoxVariable=uIr;function uIr(r){return r}e(uIr,"SelectBoxVariable")});var uun=Je(jht=>{"use strict";V();G();U();z();Object.defineProperty(jht,"__esModule",{value:!0});jht.SingleLineTextVariable=dIr;function dIr(r){return r}e(dIr,"SingleLineTextVariable")});var dun=Je(Vht=>{"use strict";V();G();U();z();Object.defineProperty(Vht,"__esModule",{value:!0});Vht.UrlVariable=pIr;function pIr(r){return r}e(pIr,"UrlVariable")});var pun=Je(zht=>{"use strict";V();G();U();z();Object.defineProperty(zht,"__esModule",{value:!0});zht.WideSingleLineTextVariable=fIr;function fIr(r){return r}e(fIr,"WideSingleLineTextVariable")});var fun=Je(Uht=>{"use strict";V();G();U();z();Object.defineProperty(Uht,"__esModule",{value:!0});Uht.YesNoVariable=_Ir;function _Ir(r){return r}e(_Ir,"YesNoVariable")});var _un=Je(Ght=>{"use strict";V();G();U();z();Object.defineProperty(Ght,"__esModule",{value:!0});Ght.UIPageVariable=mIr;function mIr(r){return r}e(mIr,"UIPageVariable")});var mun=Je(Vh=>{"use strict";V();G();U();z();var hIr=Vh&&Vh.__createBinding||(Object.create?function(r,t,i,a){a===void 0&&(a=i);var c=Object.getOwnPropertyDescriptor(t,i);(!c||("get"in c?!t.__esModule:c.writable||c.configurable))&&(c={enumerable:!0,get:e(function(){return t[i]},"get")}),Object.defineProperty(r,a,c)}:function(r,t,i,a){a===void 0&&(a=i),r[a]=t[i]}),Ny=Vh&&Vh.__exportStar||function(r,t){for(var i in r)i!=="default"&&!Object.prototype.hasOwnProperty.call(t,i)&&hIr(t,r,i)};Object.defineProperty(Vh,"__esModule",{value:!0});Ny(Ocn(),Vh);Ny(Fcn(),Vh);Ny(Wcn(),Vh);Ny(jcn(),Vh);Ny(Vcn(),Vh);Ny(zcn(),Vh);Ny(Ucn(),Vh);Ny(Gcn(),Vh);Ny(qcn(),Vh);Ny(Hcn(),Vh);Ny(Kcn(),Vh);Ny(Jcn(),Vh);Ny(Xcn(),Vh);Ny($cn(),Vh);Ny(Ycn(),Vh);Ny(Qcn(),Vh);Ny(Zcn(),Vh);Ny(eun(),Vh);Ny(tun(),Vh);Ny(nun(),Vh);Ny(run(),Vh);Ny(iun(),Vh);Ny(oun(),Vh);Ny(aun(),Vh);Ny(sun(),Vh);Ny(lun(),Vh);Ny(cun(),Vh);Ny(uun(),Vh);Ny(dun(),Vh);Ny(pun(),Vh);Ny(fun(),Vh);Ny(_un(),Vh)});var hun=Je(qht=>{"use strict";V();G();U();z();Object.defineProperty(qht,"__esModule",{value:!0});qht.VariableSet=gIr;function gIr(r){return r}e(gIr,"VariableSet")});var gun=Je(Hht=>{"use strict";V();G();U();z();Object.defineProperty(Hht,"__esModule",{value:!0});Hht.CatalogItem=yIr;function yIr(r){return r}e(yIr,"CatalogItem")});var yun=Je(Kht=>{"use strict";V();G();U();z();Object.defineProperty(Kht,"__esModule",{value:!0});Kht.CatalogItemRecordProducer=vIr;function vIr(r){return r}e(vIr,"CatalogItemRecordProducer")});var vun=Je(Jht=>{"use strict";V();G();U();z();Object.defineProperty(Jht,"__esModule",{value:!0});Jht.CatalogUiPolicy=bIr;function bIr(r){return r}e(bIr,"CatalogUiPolicy")});var bun=Je(Xht=>{"use strict";V();G();U();z();Object.defineProperty(Xht,"__esModule",{value:!0});Xht.CatalogClientScript=SIr;function SIr(r){return r}e(SIr,"CatalogClientScript")});var $ht=Je(h8=>{"use strict";V();G();U();z();var EIr=h8&&h8.__createBinding||(Object.create?function(r,t,i,a){a===void 0&&(a=i);var c=Object.getOwnPropertyDescriptor(t,i);(!c||("get"in c?!t.__esModule:c.writable||c.configurable))&&(c={enumerable:!0,get:e(function(){return t[i]},"get")}),Object.defineProperty(r,a,c)}:function(r,t,i,a){a===void 0&&(a=i),r[a]=t[i]}),Fce=h8&&h8.__exportStar||function(r,t){for(var i in r)i!=="default"&&!Object.prototype.hasOwnProperty.call(t,i)&&EIr(t,r,i)};Object.defineProperty(h8,"__esModule",{value:!0});Fce(mun(),h8);Fce(hun(),h8);Fce(gun(),h8);Fce(yun(),h8);Fce(vun(),h8);Fce(bun(),h8)});var Sun=Je(Yht=>{"use strict";V();G();U();z();Object.defineProperty(Yht,"__esModule",{value:!0});Yht.ClientScript=xIr;function xIr(r){return r}e(xIr,"ClientScript")});var Eun=Je(Kte=>{"use strict";V();G();U();z();var TIr=Kte&&Kte.__createBinding||(Object.create?function(r,t,i,a){a===void 0&&(a=i);var c=Object.getOwnPropertyDescriptor(t,i);(!c||("get"in c?!t.__esModule:c.writable||c.configurable))&&(c={enumerable:!0,get:e(function(){return t[i]},"get")}),Object.defineProperty(r,a,c)}:function(r,t,i,a){a===void 0&&(a=i),r[a]=t[i]}),DIr=Kte&&Kte.__exportStar||function(r,t){for(var i in r)i!=="default"&&!Object.prototype.hasOwnProperty.call(t,i)&&TIr(t,r,i)};Object.defineProperty(Kte,"__esModule",{value:!0});DIr(Sun(),Kte)});var xun=Je(Qht=>{"use strict";V();G();U();z();Object.defineProperty(Qht,"__esModule",{value:!0});Qht.SysAttachment=AIr;function AIr(r){return r}e(AIr,"SysAttachment")});var Tun=Je(Zht=>{"use strict";V();G();U();z();Object.defineProperty(Zht,"__esModule",{value:!0});Zht.ScriptInclude=CIr;function CIr(r){return r}e(CIr,"ScriptInclude")});var Dun=Je(egt=>{"use strict";V();G();U();z();Object.defineProperty(egt,"__esModule",{value:!0});egt.ScriptAction=IIr;function IIr(r){return r}e(IIr,"ScriptAction")});var Aun=Je(sq=>{"use strict";V();G();U();z();var wIr=sq&&sq.__createBinding||(Object.create?function(r,t,i,a){a===void 0&&(a=i);var c=Object.getOwnPropertyDescriptor(t,i);(!c||("get"in c?!t.__esModule:c.writable||c.configurable))&&(c={enumerable:!0,get:e(function(){return t[i]},"get")}),Object.defineProperty(r,a,c)}:function(r,t,i,a){a===void 0&&(a=i),r[a]=t[i]}),tgt=sq&&sq.__exportStar||function(r,t){for(var i in r)i!=="default"&&!Object.prototype.hasOwnProperty.call(t,i)&&wIr(t,r,i)};Object.defineProperty(sq,"__esModule",{value:!0});tgt(xun(),sq);tgt(Tun(),sq);tgt(Dun(),sq)});var Cun=Je(ngt=>{"use strict";V();G();U();z();Object.defineProperty(ngt,"__esModule",{value:!0});ngt.List=PIr;function PIr(r){return r}e(PIr,"List")});var Iun=Je(rgt=>{"use strict";V();G();U();z();Object.defineProperty(rgt,"__esModule",{value:!0});rgt.UiPage=NIr;function NIr(r){return r}e(NIr,"UiPage")});var wun=Je(igt=>{"use strict";V();G();U();z();Object.defineProperty(igt,"__esModule",{value:!0});igt.UiAction=RIr;function RIr(r){return r}e(RIr,"UiAction")});var Pun=Je(ogt=>{"use strict";V();G();U();z();Object.defineProperty(ogt,"__esModule",{value:!0});ogt.UiPolicy=LIr;function LIr(r){return r}e(LIr,"UiPolicy")});var agt=Je(Vj=>{"use strict";V();G();U();z();Object.defineProperty(Vj,"__esModule",{value:!0});Vj.UiPolicy=Vj.UiAction=Vj.UiPage=Vj.List=void 0;var MIr=Cun();Object.defineProperty(Vj,"List",{enumerable:!0,get:e(function(){return MIr.List},"get")});var kIr=Iun();Object.defineProperty(Vj,"UiPage",{enumerable:!0,get:e(function(){return kIr.UiPage},"get")});var OIr=wun();Object.defineProperty(Vj,"UiAction",{enumerable:!0,get:e(function(){return OIr.UiAction},"get")});var FIr=Pun();Object.defineProperty(Vj,"UiPolicy",{enumerable:!0,get:e(function(){return FIr.UiPolicy},"get")})});var Nun=Je(sgt=>{"use strict";V();G();U();z();Object.defineProperty(sgt,"__esModule",{value:!0});sgt.Table=BIr;function BIr(r){return r}e(BIr,"Table")});var Run=Je(lgt=>{"use strict";V();G();U();z();Object.defineProperty(lgt,"__esModule",{value:!0});lgt.Record=WIr;function WIr(r){return r}e(WIr,"Record")});var Lun=Je(Jte=>{"use strict";V();G();U();z();Object.defineProperty(Jte,"__esModule",{value:!0});Jte.readOnlyOption=Jte.type=void 0;Jte.Column=jIr;Jte.type="__type__";Jte.readOnlyOption=["instance_configured","display_read_only","client_script_modifiable","strict_read_only"];function jIr(r){return r}e(jIr,"Column")});var Mun=Je(Hbe=>{"use strict";V();G();U();z();Object.defineProperty(Hbe,"__esModule",{value:!0});Hbe.choiceDropdown=void 0;Hbe.ChoiceColumn=VIr;Hbe.choiceDropdown=["none","dropdown_with_none","suggestion","dropdown_without_none"];function VIr(r){return r}e(VIr,"ChoiceColumn")});var kun=Je(Bce=>{"use strict";V();G();U();z();Object.defineProperty(Bce,"__esModule",{value:!0});Bce.StringColumn=zIr;Bce.MultiLineTextColumn=UIr;Bce.ApprovalRulesColumn=GIr;Bce.SlushBucketColumn=qIr;function zIr(r){return r}e(zIr,"StringColumn");function UIr(r){return r}e(UIr,"MultiLineTextColumn");function GIr(r){return r}e(GIr,"ApprovalRulesColumn");function qIr(r){return r}e(qIr,"SlushBucketColumn")});var Oun=Je(cgt=>{"use strict";V();G();U();z();Object.defineProperty(cgt,"__esModule",{value:!0});cgt.IntegerColumn=HIr;function HIr(r){return r}e(HIr,"IntegerColumn")});var Fun=Je(ugt=>{"use strict";V();G();U();z();Object.defineProperty(ugt,"__esModule",{value:!0});ugt.BooleanColumn=KIr;function KIr(r){return r}e(KIr,"BooleanColumn")});var Bun=Je(zj=>{"use strict";V();G();U();z();Object.defineProperty(zj,"__esModule",{value:!0});zj.DateColumn=JIr;zj.DateTimeColumn=XIr;zj.CalendarDateTimeColumn=$Ir;zj.ScheduleDateTimeColumn=YIr;zj.IntegerDateColumn=QIr;zj.DueDateColumn=ZIr;zj.BasicDateTimeColumn=e2r;zj.OtherDateColumn=t2r;function JIr(r){return r}e(JIr,"DateColumn");function XIr(r){return r}e(XIr,"DateTimeColumn");function $Ir(r){return r}e($Ir,"CalendarDateTimeColumn");function YIr(r){return r}e(YIr,"ScheduleDateTimeColumn");function QIr(r){return r}e(QIr,"IntegerDateColumn");function ZIr(r){return r}e(ZIr,"DueDateColumn");function e2r(r){return r}e(e2r,"BasicDateTimeColumn");function t2r(r){return r}e(t2r,"OtherDateColumn")});var Wun=Je(dgt=>{"use strict";V();G();U();z();Object.defineProperty(dgt,"__esModule",{value:!0});dgt.ScriptColumn=n2r;function n2r(r){return{...r,columnType:"script"}}e(n2r,"ScriptColumn")});var jun=Je(pgt=>{"use strict";V();G();U();z();Object.defineProperty(pgt,"__esModule",{value:!0});pgt.TableNameColumn=r2r;function r2r(r){return r}e(r2r,"TableNameColumn")});var Vun=Je(fgt=>{"use strict";V();G();U();z();Object.defineProperty(fgt,"__esModule",{value:!0});fgt.DocumentIdColumn=i2r;function i2r(r){return r}e(i2r,"DocumentIdColumn")});var zun=Je(_gt=>{"use strict";V();G();U();z();Object.defineProperty(_gt,"__esModule",{value:!0});_gt.ReferenceColumn=o2r;function o2r(r){return r}e(o2r,"ReferenceColumn")});var Uun=Je(mgt=>{"use strict";V();G();U();z();Object.defineProperty(mgt,"__esModule",{value:!0});mgt.ListColumn=a2r;function a2r(r){return r}e(a2r,"ListColumn")});var Gun=Je(hgt=>{"use strict";V();G();U();z();Object.defineProperty(hgt,"__esModule",{value:!0});hgt.DecimalColumn=s2r;function s2r(r){return r}e(s2r,"DecimalColumn")});var qun=Je(ggt=>{"use strict";V();G();U();z();Object.defineProperty(ggt,"__esModule",{value:!0});ggt.DomainIdColumn=l2r;function l2r(r){return r}e(l2r,"DomainIdColumn")});var Hun=Je(ygt=>{"use strict";V();G();U();z();Object.defineProperty(ygt,"__esModule",{value:!0});ygt.DomainPathColumn=c2r;function c2r(r){return r}e(c2r,"DomainPathColumn")});var Kun=Je(vgt=>{"use strict";V();G();U();z();Object.defineProperty(vgt,"__esModule",{value:!0});vgt.TemplateValueColumn=u2r;function u2r(r){return r}e(u2r,"TemplateValueColumn")});var Jun=Je(bgt=>{"use strict";V();G();U();z();Object.defineProperty(bgt,"__esModule",{value:!0});bgt.TranslatedFieldColumn=d2r;function d2r(r){return r}e(d2r,"TranslatedFieldColumn")});var Xun=Je(Sgt=>{"use strict";V();G();U();z();Object.defineProperty(Sgt,"__esModule",{value:!0});Sgt.UserRolesColumn=p2r;function p2r(r){return r}e(p2r,"UserRolesColumn")});var $un=Je(Egt=>{"use strict";V();G();U();z();Object.defineProperty(Egt,"__esModule",{value:!0});Egt.BasicImageColumn=f2r;function f2r(r){return r}e(f2r,"BasicImageColumn")});var Yun=Je(xgt=>{"use strict";V();G();U();z();Object.defineProperty(xgt,"__esModule",{value:!0});xgt.ConditionsColumn=_2r;function _2r(r){return r}e(_2r,"ConditionsColumn")});var Qun=Je(Tgt=>{"use strict";V();G();U();z();Object.defineProperty(Tgt,"__esModule",{value:!0});Tgt.TranslatedTextColumn=m2r;function m2r(r){return r}e(m2r,"TranslatedTextColumn")});var Zun=Je(Dgt=>{"use strict";V();G();U();z();Object.defineProperty(Dgt,"__esModule",{value:!0});Dgt.VersionColumn=h2r;function h2r(r){return r}e(h2r,"VersionColumn")});var edn=Je(Agt=>{"use strict";V();G();U();z();Object.defineProperty(Agt,"__esModule",{value:!0});Agt.SystemClassNameColumn=g2r;function g2r(r){return r}e(g2r,"SystemClassNameColumn")});var tdn=Je(Cgt=>{"use strict";V();G();U();z();Object.defineProperty(Cgt,"__esModule",{value:!0});Cgt.FieldNameColumn=y2r;function y2r(r){return r}e(y2r,"FieldNameColumn")});var ndn=Je(Igt=>{"use strict";V();G();U();z();Object.defineProperty(Igt,"__esModule",{value:!0});Igt.RadioColumn=v2r;function v2r(r){return r}e(v2r,"RadioColumn")});var rdn=Je(wgt=>{"use strict";V();G();U();z();Object.defineProperty(wgt,"__esModule",{value:!0});wgt.GenericColumn=b2r;function b2r(r){return r}e(b2r,"GenericColumn")});var idn=Je(Pgt=>{"use strict";V();G();U();z();Object.defineProperty(Pgt,"__esModule",{value:!0});Pgt.GuidColumn=S2r;function S2r(r){return r}e(S2r,"GuidColumn")});var odn=Je(Ngt=>{"use strict";V();G();U();z();Object.defineProperty(Ngt,"__esModule",{value:!0});Ngt.Password2Column=E2r;function E2r(r){return r}e(E2r,"Password2Column")});var adn=Je(v8e=>{"use strict";V();G();U();z();Object.defineProperty(v8e,"__esModule",{value:!0});v8e.JsonColumn=x2r;v8e.NameValuePairsColumn=T2r;function x2r(r){return r}e(x2r,"JsonColumn");function T2r(r){return r}e(T2r,"NameValuePairsColumn")});var sdn=Je(Rgt=>{"use strict";V();G();U();z();Object.defineProperty(Rgt,"__esModule",{value:!0});Rgt.UrlColumn=D2r;function D2r(r){return r}e(D2r,"UrlColumn")});var ldn=Je(Lgt=>{"use strict";V();G();U();z();Object.defineProperty(Lgt,"__esModule",{value:!0});Lgt.EmailColumn=A2r;function A2r(r){return r}e(A2r,"EmailColumn")});var cdn=Je(Mgt=>{"use strict";V();G();U();z();Object.defineProperty(Mgt,"__esModule",{value:!0});Mgt.HtmlColumn=C2r;function C2r(r){return r}e(C2r,"HtmlColumn")});var udn=Je(kgt=>{"use strict";V();G();U();z();Object.defineProperty(kgt,"__esModule",{value:!0});kgt.FloatColumn=I2r;function I2r(r){return r}e(I2r,"FloatColumn")});var ddn=Je(Ogt=>{"use strict";V();G();U();z();Object.defineProperty(Ogt,"__esModule",{value:!0});Ogt.FieldListColumn=w2r;function w2r(r){return r}e(w2r,"FieldListColumn")});var pdn=Je(b8e=>{"use strict";V();G();U();z();Object.defineProperty(b8e,"__esModule",{value:!0});b8e.DurationColumn=P2r;b8e.TimeColumn=N2r;function P2r(r){return r}e(P2r,"DurationColumn");function N2r(r){return r}e(N2r,"TimeColumn")});var fdn=Je(S8e=>{"use strict";V();G();U();z();Object.defineProperty(S8e,"__esModule",{value:!0});S8e.DayOfWeekColumn=R2r;S8e.DaysOfWeekColumn=L2r;function R2r(r){return r}e(R2r,"DayOfWeekColumn");function L2r(r){return r}e(L2r,"DaysOfWeekColumn")});var _dn=Je(Fgt=>{"use strict";V();G();U();z();Object.defineProperty(Fgt,"__esModule",{value:!0});Fgt.RecordsColumn=M2r;function M2r(r){return r}e(M2r,"RecordsColumn")});var mdn=Je(Bgt=>{"use strict";V();G();U();z();Object.defineProperty(Bgt,"__esModule",{value:!0});Bgt.UserImageColumn=k2r;function k2r(r){return{...r,columnType:"user_image"}}e(k2r,"UserImageColumn")});var bf=Je(nm=>{"use strict";V();G();U();z();var O2r=nm&&nm.__createBinding||(Object.create?function(r,t,i,a){a===void 0&&(a=i);var c=Object.getOwnPropertyDescriptor(t,i);(!c||("get"in c?!t.__esModule:c.writable||c.configurable))&&(c={enumerable:!0,get:e(function(){return t[i]},"get")}),Object.defineProperty(r,a,c)}:function(r,t,i,a){a===void 0&&(a=i),r[a]=t[i]}),Eh=nm&&nm.__exportStar||function(r,t){for(var i in r)i!=="default"&&!Object.prototype.hasOwnProperty.call(t,i)&&O2r(t,r,i)};Object.defineProperty(nm,"__esModule",{value:!0});Eh(Nun(),nm);Eh(Run(),nm);Eh(Lun(),nm);Eh(Mun(),nm);Eh(kun(),nm);Eh(Oun(),nm);Eh(Fun(),nm);Eh(Bun(),nm);Eh(Wun(),nm);Eh(jun(),nm);Eh(Vun(),nm);Eh(zun(),nm);Eh(Uun(),nm);Eh(Gun(),nm);Eh(qun(),nm);Eh(Hun(),nm);Eh(Kun(),nm);Eh(Jun(),nm);Eh(Xun(),nm);Eh($un(),nm);Eh(Yun(),nm);Eh(Qun(),nm);Eh(Zun(),nm);Eh(edn(),nm);Eh(tdn(),nm);Eh(ndn(),nm);Eh(rdn(),nm);Eh(idn(),nm);Eh(odn(),nm);Eh(adn(),nm);Eh(sdn(),nm);Eh(ldn(),nm);Eh(cdn(),nm);Eh(udn(),nm);Eh(ddn(),nm);Eh(pdn(),nm);Eh(fdn(),nm);Eh(_dn(),nm);Eh(mdn(),nm)});var hdn=Je(Wgt=>{"use strict";V();G();U();z();Object.defineProperty(Wgt,"__esModule",{value:!0});Wgt.RestApi=F2r;function F2r(r){return r}e(F2r,"RestApi")});var gdn=Je(Xte=>{"use strict";V();G();U();z();var B2r=Xte&&Xte.__createBinding||(Object.create?function(r,t,i,a){a===void 0&&(a=i);var c=Object.getOwnPropertyDescriptor(t,i);(!c||("get"in c?!t.__esModule:c.writable||c.configurable))&&(c={enumerable:!0,get:e(function(){return t[i]},"get")}),Object.defineProperty(r,a,c)}:function(r,t,i,a){a===void 0&&(a=i),r[a]=t[i]}),W2r=Xte&&Xte.__exportStar||function(r,t){for(var i in r)i!=="default"&&!Object.prototype.hasOwnProperty.call(t,i)&&B2r(t,r,i)};Object.defineProperty(Xte,"__esModule",{value:!0});W2r(hdn(),Xte)});var ydn=Je(jgt=>{"use strict";V();G();U();z();Object.defineProperty(jgt,"__esModule",{value:!0});jgt.EmailNotification=j2r;function j2r(r){return r}e(j2r,"EmailNotification")});var vdn=Je($te=>{"use strict";V();G();U();z();var V2r=$te&&$te.__createBinding||(Object.create?function(r,t,i,a){a===void 0&&(a=i);var c=Object.getOwnPropertyDescriptor(t,i);(!c||("get"in c?!t.__esModule:c.writable||c.configurable))&&(c={enumerable:!0,get:e(function(){return t[i]},"get")}),Object.defineProperty(r,a,c)}:function(r,t,i,a){a===void 0&&(a=i),r[a]=t[i]}),z2r=$te&&$te.__exportStar||function(r,t){for(var i in r)i!=="default"&&!Object.prototype.hasOwnProperty.call(t,i)&&V2r(t,r,i)};Object.defineProperty($te,"__esModule",{value:!0});z2r(ydn(),$te)});var bdn=Je(Vgt=>{"use strict";V();G();U();z();Object.defineProperty(Vgt,"__esModule",{value:!0});Vgt.Workspace=U2r;function U2r(r){return r}e(U2r,"Workspace")});var Sdn=Je(zgt=>{"use strict";V();G();U();z();Object.defineProperty(zgt,"__esModule",{value:!0});zgt.UxListMenuConfig=G2r;function G2r(r){return r}e(G2r,"UxListMenuConfig")});var Edn=Je(Ugt=>{"use strict";V();G();U();z();Object.defineProperty(Ugt,"__esModule",{value:!0});Ugt.Applicability=q2r;function q2r(r){return r}e(q2r,"Applicability")});var xdn=Je(d$=>{"use strict";V();G();U();z();Object.defineProperty(d$,"__esModule",{value:!0});d$.Applicability=d$.UxListMenuConfig=d$.Workspace=void 0;var H2r=bdn();Object.defineProperty(d$,"Workspace",{enumerable:!0,get:e(function(){return H2r.Workspace},"get")});var K2r=Sdn();Object.defineProperty(d$,"UxListMenuConfig",{enumerable:!0,get:e(function(){return K2r.UxListMenuConfig},"get")});var J2r=Edn();Object.defineProperty(d$,"Applicability",{enumerable:!0,get:e(function(){return J2r.Applicability},"get")})});var Tdn=Je(Ggt=>{"use strict";V();G();U();z();Object.defineProperty(Ggt,"__esModule",{value:!0});Ggt.Dashboard=X2r;function X2r(r){return r}e(X2r,"Dashboard")});var Ddn=Je(E8e=>{"use strict";V();G();U();z();Object.defineProperty(E8e,"__esModule",{value:!0});E8e.Dashboard=void 0;var $2r=Tdn();Object.defineProperty(E8e,"Dashboard",{enumerable:!0,get:e(function(){return $2r.Dashboard},"get")})});var wdn=Je(ene=>{"use strict";V();G();U();z();Object.defineProperty(ene,"__esModule",{value:!0});ene.TableOwnership=ene.RecordPlugin=void 0;var Wce=Vs(),Y2r=Zm(),lM=y8e(),F5=fht(),Kbe=$ht(),Q2r=Eun(),Adn=Aun(),Cdn=agt(),Idn=bf(),Yte=gdn(),Z2r=vdn(),Qte=agt(),Zte=xdn(),jce=Ddn();ene.RecordPlugin=Wce.Plugin.create({name:"RecordPlugin",records:{"*":{getUpdateName(r){return{success:!0,value:`${r.getTable()}_${r.getId().getValue()}`}},async diff(r,t){let i=r.compare(t);return{success:!0,value:i.hasChanges()?new Wce.Database(i.query()):new Wce.Database}},async toShape(r,{compiler:t}){let i=r.getTable(),a=t.getTableColumnTypes(i),c=r.transform(({$:f})=>Object.fromEntries(r.keys().filter(g=>g!=="sys_name").map(g=>{let v=r.get(g);if(a?.has(g)&&v?.isString()){let S=a.get(g);try{if(S==="boolean")return[g,f.val(v.toBoolean())];if(S==="number")return[g,f.val(v.toNumber())];if(S==="array")return[g,f.val(v.asString().split(",")).def([""])];if(S==="array-optional"){let E=v.asString().includes(",");return[g,E?f.val(v.asString().split(",")).def([""]):f]}}catch{}}return[g,v?.isString()?f.def(""):f]})));return{success:!0,value:new Wce.CallExpressionShape({source:r,callee:"Record",exportName:r.get("sys_name")?.ifDefined()?.asString().getValue(),args:[{$id:Y2r.NowIdShape.from(r),table:i,data:c}]})}},async toFile(r,{config:t,database:i,transform:a}){let c=(0,Wce.unloadBuilder)({scope:t.scope,scopeId:t.scopeId,table:r.getTable()}),d=await a.getUpdateName(r),f=c.record(r,d);r.entries().sort(([v],[S])=>v.localeCompare(S)).forEach(([v,S])=>f.field(v,S));let g=i.query("sys_claim").filter(v=>v.get("metadata_update_name").equals(d));for(let v of g){let S=await a.getUpdateName(v),E=c.record(v,S);v.entries().sort(([A],[C])=>A.localeCompare(C)).forEach(([A,C])=>E.field(A,C))}return{success:!0,value:{source:r,name:`${d}.xml`,category:r.getInstallCategory(),content:c.end()}}}}},shapes:[{shape:Wce.CallExpressionShape,fileTypes:["fluent"],async toRecord(r,{factory:t,diagnostics:i}){if(r.getCallee()!=="Record")return{success:!1};let a=r.getArgument(0).asObject(),c=a.get("table").asString().getValue(),d=ene.TableOwnership[c];return d&&i.hint(r,`For a better experience, consider using the ${d} API`),{success:!0,value:await t.createRecord({source:r,table:c,explicitId:a.get("$id"),properties:a.get("data").asObject()})}}}],files:[{matcher:/\.xml$/,async toRecord(r,{parser:t,logger:i}){try{let a=await t.parsePayload(r),c=new Map;for(let v of a){let S=`${v.getTable()}::${v.getId().getValue()}`,E=c.get(S),A=E?E.merge(v.properties()):v;c.set(S,A)}let d=Array.from(c.values()),[f,...g]=d;return f?{success:!0,value:f.with(...g)}:{success:!1}}catch(a){return i.debug(a),{success:!1}}}}]});ene.TableOwnership={contract_sla:lM.Sla.name,sys_security_acl:lM.Acl.name,sys_security_acl_role:lM.Acl.name,sys_app_application:lM.ApplicationMenu.name,sys_script:lM.BusinessRule.name,sys_script_client:Q2r.ClientScript.name,sys_scope_privilege:lM.CrossScopePrivilege.name,sys_ui_list_element:Cdn.List.name,sys_ui_list:Cdn.List.name,sys_properties:lM.Property.name,sys_user_role:lM.Role.name,sys_user_role_contains:lM.Role.name,sys_script_include:Adn.ScriptInclude.name,sp_widget:F5.SPWidget.name,m2m_sp_widget_dependency:F5.SPWidget.name,m2m_sp_ng_pro_sp_widget:F5.SPWidget.name,sp_ng_template:F5.SPWidget.name,sp_dependency:F5.SPWidgetDependency.name,m2m_sp_dependency_css_include:F5.SPWidgetDependency.name,m2m_sp_dependency_js_include:F5.SPWidgetDependency.name,sp_css_include:F5.CssInclude.name,sp_js_include:F5.JsInclude.name,sp_angular_provider:F5.SPAngularProvider.name,m2m_sp_ng_pro_sp_ng_pro:F5.SPAngularProvider.name,sys_atf_test:lM.Test.name,sys_ws_header_map:Yte.RestApi.name,sys_ws_query_parameter_map:Yte.RestApi.name,sys_ws_definition:Yte.RestApi.name,sys_ws_operation:Yte.RestApi.name,sys_ws_version:Yte.RestApi.name,sys_ws_header:Yte.RestApi.name,sys_ws_query_parameter:Yte.RestApi.name,sys_user_preference:lM.UserPreference.name,sys_ui_page:Qte.UiPage.name,sys_ui_action:Qte.UiAction.name,sys_ui_action_role:Qte.UiAction.name,sys_ui_action_view:Qte.UiAction.name,sys_ui_policy:Qte.UiPolicy.name,sys_ui_policy_action:Qte.UiPolicy.name,sys_ui_policy_rl_action:Qte.UiPolicy.name,sysevent_script_action:Adn.ScriptAction.name,sysevent_email_action:Z2r.EmailNotification.name,sys_db_object:Idn.Table.name,sys_dictionary:Idn.Table.name,sys_hub_flow:"Flow",sys_hub_trigger_instance_v2:"wfa.trigger",sys_hub_action_instance_v2:"wfa.action",sys_hub_sub_flow_instance_v2:"wfa.subflow",sys_hub_flow_logic_instance_v2:"wfa.flowLogic",sys_flow_step_definition:"ActionStepDefinition",sys_decision:"DecisionTablePlugin",sys_hub_action_type_definition:"Action",sys_hub_step_instance:"wfa.action_step",sys_transform_map:lM.ImportSet.name,sys_transform_entry:lM.ImportSet.name,sys_transform_script:lM.ImportSet.name,sys_ux_applicability:Zte.Applicability.name,sys_ux_list_menu_config:Zte.UxListMenuConfig.name,sys_ux_list_category:Zte.UxListMenuConfig.name,sys_ux_list:Zte.UxListMenuConfig.name,sys_ux_applicability_m2m_list:Zte.UxListMenuConfig.name,sys_ux_page_registry:Zte.Workspace.name,sys_ux_app_config:Zte.Workspace.name,par_dashboard:jce.Dashboard.name,par_dashboard_canvas:jce.Dashboard.name,par_dashboard_tab:jce.Dashboard.name,par_dashboard_widget:jce.Dashboard.name,par_dashboard_permission:jce.Dashboard.name,par_dashboard_visibility:jce.Dashboard.name,item_option_new_set:Kbe.VariableSet.name,sc_cat_item:Kbe.CatalogItem.name,sc_cat_item_producer:Kbe.CatalogItemRecordProducer.name,catalog_script_client:Kbe.CatalogClientScript.name,catalog_ui_policy:Kbe.CatalogUiPolicy.name}});var Pdn=Je(T8e=>{"use strict";V();G();U();z();Object.defineProperty(T8e,"__esModule",{value:!0});T8e.NowRefPlugin=void 0;var x8e=Vs(),ewr=zbe();T8e.NowRefPlugin=x8e.Plugin.create({name:"NowRefPlugin",nodes:[{node:"CallExpression",async toShape(r,{transform:t,factory:i}){let a=await t.toShape(r,ewr.CallExpressionPlugin);if(!a.success||!a.value.is(x8e.CallExpressionShape)||a.value.getCallee()!=="Now.ref")return{success:!1};let c=a.value,d=c.getArgument(0).asString("The first argument to Now.ref() must be a table name"),f=c.getArgument(1).as([x8e.StringShape,x8e.ObjectShape],"The second argument to Now.ref() must be a GUID, a Now ID string, or a coalesce keys object"),g=c.hasArgument(2)?c.getArgument(2).asObject("The third argument to Now.ref() must be a coalesce keys object"):void 0,[v,S]=g?[f.asString(),g]:f.isString()?[f.asString(),void 0]:[void 0,f.asObject()];return{success:!0,value:await i.createReference({source:r,table:d,guid:v,keys:S})}}}]})});var Ndn=Je(A8e=>{"use strict";V();G();U();z();Object.defineProperty(A8e,"__esModule",{value:!0});A8e.NowUnresolvedPlugin=void 0;var D8e=Vs();A8e.NowUnresolvedPlugin=D8e.Plugin.create({name:"NowUnresolvedPlugin",shapes:[{shape:D8e.UnresolvedShape,commit(r,t){return t.replaceWithText(r.getCode()),{success:!0}}}],nodes:[{node:"PropertyAccessExpression",fileTypes:["fluent"],toShape(r){return r.getText()!==D8e.UnresolvedShape.CODE?{success:!1}:{success:!0,value:new D8e.UnresolvedShape({source:r})}}}]})});var Mdn=Je(C8e=>{"use strict";V();G();U();z();Object.defineProperty(C8e,"__esModule",{value:!0});C8e.PropertyPlugin=void 0;var twr=Vs(),qgt=Vs(),nwr=Zm(),Rdn=e(r=>r.split(",").map(t=>t.trim()).filter(t=>t),"getRolesArray");C8e.PropertyPlugin=qgt.Plugin.create({name:"PropertyPlugin",records:{sys_properties:{toShape(r,{config:t}){return{success:!0,value:new qgt.CallExpressionShape({source:r,callee:"Property",args:[r.transform(({$:i})=>({$id:i.val(nwr.NowIdShape.from(r)),name:i.from("name","suffix").map((a,c)=>a.ifString()??(t.scope==="global"?c:`${t.scope}.${c.asString().getValue()}`)),value:i,description:i.def(""),type:i.def("string"),choices:i.map(a=>a.toString().getValue().split(/[,\n]/).map(d=>d.trim()).filter(d=>d)).def([]),isPrivate:i.from("is_private").toBoolean().def(!1),ignoreCache:i.from("ignore_cache").toBoolean().def(!1),roles:i.from("read_roles","write_roles").def({read:[],write:[]}).map((a,c)=>({read:a.ifString()?.pipe(d=>Rdn(d.getValue())),write:c.ifString()?.pipe(d=>Rdn(d.getValue()))}))}))]})}}}},shapes:[{shape:qgt.CallExpressionShape,fileTypes:["fluent"],async toRecord(r,{config:t,diagnostics:i,factory:a}){if(r.getCallee()!=="Property")return{success:!1};let c=r.getArgument(0).asObject(),d=t.scope,f=c.get("name").asString();return!(0,twr.isSNScope)(d)&&t.scope!=="global"&&!f.asString().startsWith(`${d}.`)&&i.error(f.getOriginalNode(),`Property name must begin with '${d}.'`),{success:!0,value:await a.createRecord({source:r,table:"sys_properties",explicitId:c.get("$id"),properties:c.transform(({$:g,merge:v})=>({name:g,suffix:g.from("name").map(S=>S.asString().replace(new RegExp(`^${t.scope}\\.`),"")),description:g,type:g.def("string"),value:g.toString(),is_private:g.from("isPrivate").def(!1),ignore_cache:g.from("ignoreCache").def(!1),choices:g.map(S=>S.ifArray()?.getValue().join(",")),[v]:g.from("roles").def({read_roles:"",write_roles:""}).map(S=>S.ifObject()?.transform(({$:E})=>({read_roles:E.from("read").map(A=>Ldn(A)),write_roles:E.from("write").map(A=>Ldn(A))})).properties())}))})}}}]});function Ldn(r){return r.ifArray()?.pipe(t=>Array.from(new Set(t.getElements().map(i=>i.ifRecord()?.get("name").getValue()??i.getValue()))).join(","))}e(Ldn,"getRolesString")});var Odn=Je(I8e=>{"use strict";V();G();U();z();Object.defineProperty(I8e,"__esModule",{value:!0});I8e.RolePlugin=void 0;var rwr=Vs(),Hgt=Vs(),iwr=nS(),kdn={canDelegate:["can_delegate"],elevatedPrivilege:["elevated_privilege"],assignableBy:["assignable_by"],containsRoles:["contains_roles"],scopedAdmin:["scoped_admin"]};I8e.RolePlugin=Hgt.Plugin.create({name:"RolePlugin",records:{sys_user_role:{relationships:{sys_user_role_contains:{via:"role",descendant:!0,relationships:{sys_user_role:{via:"contains",inverse:!0}}}},coalesce:["name"],toShape(r,{descendants:t}){return{success:!0,value:new Hgt.CallExpressionShape({source:r,exportName:r.get("name").ifString()?.getValue(),callee:"Role",args:[r.transform(({$:i})=>({name:i,assignableBy:i.from("assignable_by").def(""),description:i.def(""),canDelegate:i.from("can_delegate").toBoolean().def(!0),elevatedPrivilege:i.from("elevated_privilege").toBoolean().def(!1),grantable:i.toBoolean().def(!0),scopedAdmin:i.from("scoped_admin").toBoolean().def(!1),containsRoles:i.val(t.query("sys_user_role_contains").map(a=>a.get("contains").toRecordId())).def([])})).withAliasedKeys(kdn)]})}}},sys_user_role_contains:{coalesce:["role","contains"]}},shapes:[{shape:Hgt.CallExpressionShape,fileTypes:["fluent"],async toRecord(r,{config:t,diagnostics:i,factory:a}){if(r.getCallee()!=="Role")return{success:!1};let c=r.getArgument(0).asObject().withAliasedKeys(kdn);(0,iwr.generateDeprecatedDiagnostics)(c,i);let d=t.scope,f=c.get("name").asString();d!=="global"&&!(0,rwr.isSNScope)(d)&&!f.getValue().startsWith(`${d}.`)&&i.error(f.getOriginalNode(),`Role name must begin with '${d}.'`);let g=await a.createRecord({explicitId:c.get("$id"),source:r,table:"sys_user_role",properties:c.transform(({$:S})=>({name:S,assignable_by:S.from("assignableBy").def(""),can_delegate:S.from("canDelegate").def(!0),description:S.def(""),elevated_privilege:S.from("elevatedPrivilege").def(!1),grantable:S.def(!0),scoped_admin:S.from("scopedAdmin").def(!1),suffix:S.from("name").map(E=>E.asString().getValue().replace(new RegExp(`^${t.scope}\\.`),""))}))}),v=[];for(let S of c.get("containsRoles").ifArray()?.getElements()??[])v.push(await a.createRecord({source:r,table:"sys_user_role_contains",properties:{role:g,contains:S.isStringLiteral()?await a.createReference({source:S,table:"sys_user_role",keys:{name:S}}):S}}));return{success:!0,value:g.with(...v??[])}}}]})});var P8e=Je(w8e=>{"use strict";V();G();U();z();Object.defineProperty(w8e,"__esModule",{value:!0});w8e.fileExists=void 0;var owr=e(async(r,t)=>{try{return(await t.stat(r)).isFile()}catch{return!1}},"fileExists");w8e.fileExists=owr});var Vce=Je(Jbe=>{"use strict";V();G();U();z();Object.defineProperty(Jbe,"__esModule",{value:!0});Jbe.splitModuleRequest=void 0;Jbe.getRealPkgJson=pwr;var awr=(RD(),nd(ND)),swr=Vs(),lwr=P8e(),cwr=/^(@[a-z0-9-~][a-z0-9-._~]*\/|node:)?[a-z0-9-~][a-z0-9-._~]*/,uwr=e((r="")=>{let t=r.match(cwr);return t?.length&&t[0]},"getModuleName"),dwr=e(r=>{let t=uwr(r);if(!t)return{moduleName:"",entry:""};let i=swr.path.relative(t,r);return i?{moduleName:t,entry:i}:{moduleName:t,entry:""}},"splitModuleRequest");Jbe.splitModuleRequest=dwr;async function pwr(r="",t,i,a){try{let c=(0,awr.resolver)({fs:i,warn:a?.warn,ignoreExports:!0}),d=`${r}/package.json`,g=(await c(d,t))?.id,v;if(g&&await(0,lwr.fileExists)(g,i)&&(v=JSON.parse(await i.readFile(g,"utf8")),v&&"name"in v&&v.name===r))return{packageJson:v,path:g}}catch(c){console.error(`Error fetching package.json for ${r}:`,c)}}e(pwr,"getRealPkgJson")});var N8e=Je(kN=>{"use strict";V();G();U();z();Object.defineProperty(kN,"__esModule",{value:!0});kN.writePackageJson=kN.DEFAULT_EXPORTS_DIR=void 0;kN.notifyUserOfFluentDependency=mwr;kN.shouldBundlePkg=hwr;var zce=Vs(),fwr=P8e(),Wdn=Vce();kN.DEFAULT_EXPORTS_DIR=".";var _wr=["@servicenow/glide"];function mwr(r,t,i,a){if(r&&zce.NowConfig.exists(t,a)){let c=r.packageJson,{name:d}=c;i.info(`${d} is a ServiceNow Scoped App and will not be installed automatically.`),i.info(`You will be able to use JavaScript Modules from ${d} but please make sure it is installed on your ServiceNow instance to use any other application resources.`)}}e(mwr,"notifyUserOfFluentDependency");function hwr(r){if(!r)return!0;let t=r.packageJson,{name:i}=t;return!_wr.includes(i)}e(hwr,"shouldBundlePkg");var gwr=e(async(r="",t,i,a,c,d,f)=>{let g,v=zce.path.resolve(zce.path.join(a,"package.json"));if(c&&await(0,fwr.fileExists)(v,d)){g=JSON.parse(await d.readFile(v,"utf8"));let S=Fdn(t),A={...g.exports||(g.main?{[kN.DEFAULT_EXPORTS_DIR]:g.main}:{}),...S},C=Object.keys(A).length===1&&A[kN.DEFAULT_EXPORTS_DIR];g.exports?g.exports=A:C?g.main=A[kN.DEFAULT_EXPORTS_DIR]:(delete g.main,g.exports=A),g.dependencies={...g.dependencies,...await Bdn(zce.path.dirname(c.path),i,t,d)}}else if(c){g=c.packageJson;let S=!!g.exports,E=g.main;delete g.module,delete g.browser,delete g.exports,delete g.main;let A=Fdn(t),C=Object.keys(A).length===1&&A[kN.DEFAULT_EXPORTS_DIR];S?g.exports=A:E&&C?g.main=A[kN.DEFAULT_EXPORTS_DIR]:g.exports=A,g.dependencies=await Bdn(zce.path.dirname(c.path),i,t,d)}else throw new Error(`No package.json found for ${r}`);return f.writeFileSync(v,JSON.stringify(g,null,2),{encoding:"utf-8"}),{packageJsonPath:v,packageJson:g}},"writePackageJson");kN.writePackageJson=gwr;function Fdn(r){return r.reduce((i,{fileName:a,entryName:c})=>{if(c)a==="index.js"?i[kN.DEFAULT_EXPORTS_DIR]=`./${a}`:c.startsWith(kN.DEFAULT_EXPORTS_DIR)?c&&(i[c]=`./${a}`):i[`./${c}`]=`./${a}`;else return i;return i},{})}e(Fdn,"getExportsField");async function Bdn(r,t,i,a){let c=t.reduce((g,v)=>{let{moduleName:S}=(0,Wdn.splitModuleRequest)(v);return S&&!(S in g)&&(g[S]=v),g},{}),d=new Set(Object.keys(c)),f={};for(let g of d)i.some(({fileName:v})=>v===g)||(f[g]=await ywr(g,r,a));return f}e(Bdn,"getDependencies");async function ywr(r,t,i){return(await(0,Wdn.getRealPkgJson)(r,zce.path.join(t,"package.json"),i))?.packageJson?.version}e(ywr,"getDependencyVersion")});var Vdn=Je(R8e=>{"use strict";V();G();U();z();Object.defineProperty(R8e,"__esModule",{value:!0});R8e.isImportedByPolyfill=Swr;R8e.needsPolyfill=Ewr;var vwr=(RD(),nd(ND)),jdn="\0polyfill-node.",bwr=e(r=>{let t=(0,vwr.polyfill)()?.resolveId(r);return t&&t.id?t.id.startsWith(jdn):!1},"isNodeBuiltIn");function Swr(r){return r?.startsWith(jdn)}e(Swr,"isImportedByPolyfill");function Ewr(r){return bwr(r)}e(Ewr,"needsPolyfill")});var Udn=Je(Kgt=>{"use strict";V();G();U();z();Object.defineProperty(Kgt,"__esModule",{value:!0});var xwr=Vce(),zdn=Vdn();Kgt.default=r=>{let{addDependency:t,dependencyId:i}=r;return e((c,d,f)=>{let{moduleName:g,entry:v}=(0,xwr.splitModuleRequest)(c);return!g||f||g===i||(0,zdn.isImportedByPolyfill)(d)||(0,zdn.needsPolyfill)(c)?!1:(r?.cb&&r.cb({moduleName:g}),t({dependencyId:g,moduleRoot:r.moduleRoot,importer:d,subPaths:[v||"."]}),!0)},"handler")}});var Gdn=Je(Jgt=>{"use strict";V();G();U();z();Object.defineProperty(Jgt,"__esModule",{value:!0});var Twr=P8e();Jgt.default=r=>({name:"rollup-web-fs",resolveId:{order:"post",async handler(t,i){if(await(0,Twr.fileExists)(t,r.fs))return t;throw new Error(`Could not resolve import "${t}" from "${i}"`)}},load(t){return r.fs.readFile(t,"utf8")}})});var qdn=Je(Xbe=>{"use strict";V();G();U();z();var Dwr=Xbe&&Xbe.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Xbe,"__esModule",{value:!0});var Uce=(RD(),nd(ND)),Awr=Dwr(Gdn()),Cwr=e(r=>r.filter(t=>t),"compact"),Iwr=typeof self=="object"&&self.constructor&&self.constructor.name==="DedicatedWorkerGlobalScope";Xbe.default=({moduleRoot:r,rollUpFS:t,useWebFsLoader:i})=>Cwr([(0,Uce.replace)({"global*":"__global$*",preventAssignment:!0,"process.env.NODE_ENV":"production"}),(0,Uce.json)(),(0,Uce.nodeResolve)({fs:t,rootDir:r,preferBuiltins:!1}),(0,Uce.swc)({swc:{jsc:{parser:{jsx:!0,syntax:"ecmascript"}}}}),(0,Uce.commonjs)({fs:t,rootDir:r,dynamicRequireRoot:r}),(0,Uce.polyfill)({resolveEntryPoints:!1}),(Iwr||i)&&(0,Awr.default)({fs:t})])});var $gt=Je(L8e=>{"use strict";V();G();U();z();Object.defineProperty(L8e,"__esModule",{value:!0});L8e.RollupFs=void 0;var Xgt=class{static{e(this,"RollupFs")}fs;promises;constructor(t){this.fs=t,this.promises={lstat:this.lstatPromise,readdir:this.readdirPromise,readlink:this.readlinkPromise,realpath:this.realpath}}lstatSync;readdirSync;readlinkSync;realpath(t){return new Promise((i,a)=>{try{i(this.fs.realpathSync(t))}catch(c){a(c)}})}realpathSync(t){return this.fs.realpathSync(t)}async access(t){try{return!!this.fs.statSync(t)}catch{return!1}}readFile(t,i){return new Promise((a,c)=>{try{let d=i?{encoding:"utf-8"}:void 0;a(this.fs.readFileSync(t,d))}catch(d){c(d)}})}stat(t){return new Promise((i,a)=>{try{i(this.fs.statSync(t))}catch(c){a(c)}})}readdir=e((t,i,a)=>{this.readdirPromise(t,i).then(c=>a(null,c)).catch(c=>a(c))},"readdir");lstatPromise(t){return new Promise((i,a)=>{try{i(this.fs.statSync(t))}catch(c){a(c)}})}readdirPromise(t,i){return new Promise((a,c)=>{try{let d=this.fs.readdirSync(t,i);a(d)}catch(d){c(d)}})}async readlinkPromise(t){return this.realpath(t)}mkdir(t,i){return new Promise((a,c)=>{try{i?.recursive?this.fs.mkdirSync(t,{recursive:!0}):this.fs.mkdirSync(t),a()}catch(d){c(d)}})}writeFile(t,i,a){return new Promise((c,d)=>{try{let f=a?{encoding:"utf-8"}:void 0;this.fs.writeFileSync(t,i,f),c()}catch(f){d(f)}})}};L8e.RollupFs=Xgt});var Jdn=Je(Ygt=>{"use strict";V();G();U();z();Object.defineProperty(Ygt,"__esModule",{value:!0});Ygt.getInputMap=wwr;var Hdn=Vs(),Kdn=N8e();async function wwr(r,t=""){let i={input:{}};return r?r?.reduce((a,c)=>{let d=c.substring(0,c.length-Hdn.path.extname(c).length);d===Kdn.DEFAULT_EXPORTS_DIR&&(d="index");let f=c===Kdn.DEFAULT_EXPORTS_DIR?t:Hdn.path.join(t,c);return{input:{...a.input,[d]:{entryTarget:f,originalMapping:c}}}},i):i}e(wwr,"getInputMap")});var Xdn=Je(M8e=>{"use strict";V();G();U();z();Object.defineProperty(M8e,"__esModule",{value:!0});M8e.JobStack=void 0;var Pwr=N8e(),Nwr=Vce(),Rwr=e(r=>r?.packageJson.version,"getVersion"),Qgt=class{static{e(this,"JobStack")}rollUpFS;currentJobs=[];finishedJobs=[];stagedJobs=[];duplicatedDeps=new Map;constructor(t){this.rollUpFS=t}pushJob(t){this.stagedJobs.push(t)}getDuplicatedDeps(){return this.duplicatedDeps}hasJobsInQueue(){return this.currentJobs.length>0||this.stagedJobs.length>0}async processStagedJobs(){for(;this.stagedJobs.length>0;){let t=this.stagedJobs.shift();if(t){let{dependencyId:i="",...a}=t;if(a.importer?.endsWith("?commonjs-external"))continue;let d=await(0,Nwr.getRealPkgJson)(i,a.importer||a.moduleRoot,this.rollUpFS),f=Rwr(d),g=a.subPaths?.length?a.subPaths:[Pwr.DEFAULT_EXPORTS_DIR],v=g.map(A=>`${i}/${f}/${A}`).filter(A=>!this.finishedJobs.includes(A)),S=g.map(A=>`${i}/${f}/${A}`).filter(A=>this.finishedJobs.includes(A));if(v.length>0){let A=this.currentJobs.findIndex(C=>C.dependencyId===i&&C.version===f);A>-1&&this.currentJobs[A]?this.currentJobs[A]={...this.currentJobs[A],subPaths:[...this.currentJobs[A]?.subPaths||[],...a.subPaths||[]]}:this.currentJobs.push({...t,version:f}),this.finishedJobs.push(...v)}let E=`${i}@${f}`;if(d&&S.length>0)if(!this.duplicatedDeps.get(E))this.duplicatedDeps.set(E,[d.path]);else{let C=this.duplicatedDeps.get(E);C.find(L=>L===d.path)||(C.push(d.path),this.duplicatedDeps.set(E,C))}}}}async popJob(){return await this.processStagedJobs(),this.currentJobs.pop()}};M8e.JobStack=Qgt});var Zdn=Je(Gce=>{"use strict";V();G();U();z();var $dn=Gce&&Gce.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Gce,"__esModule",{value:!0});Gce.runBuild=void 0;var Lwr=(RD(),nd(ND)),Zgt=N8e(),Mwr=$dn(Udn()),kwr=$dn(qdn()),cM=Vs(),Owr=$gt(),Fwr=Jdn(),Ydn=Vce(),Bwr=Xdn(),Wwr=e(async({pkgName:r,entryPoint:t,outputDir:i,rootDir:a,fs:c,options:d,logger:f,legacyPackageResolution:g=!0,useWebFsLoader:v=!1})=>{let S=new Map,E=new Owr.RollupFs(c),A=new Bwr.JobStack(E),C=[],L=cM.path.join(a,"node_modules"),W=cM.path.resolve(a,i);cM.FileSystem.ensureDirSync(c,W);let O={dependencyId:r,subPaths:t,moduleRoot:L};A.pushJob(O);let w=e(async({subPaths:J,outDir:Z,options:Q={repackage:{omitProto:!0}},dependencyId:me,importer:be,requestorModuleRoot:he})=>{let _e=await(0,Ydn.getRealPkgJson)(me,be||he,E),He=_e?cM.path.dirname(_e.path):he;if(!(0,Zgt.shouldBundlePkg)(_e)){f.info(`Not bundling ${me}`);return}(0,Zgt.notifyUserOfFluentDependency)(_e,He,f,c);let et=_e?.packageJson.version;if(!et){f.warn(`No version found for ${me}`);return}f.info(`Building ${me} ${et}...`);let ut={format:"cjs",interop:"compat",intro:'var __global$ = globalThis || (typeof window !== "undefined" ? window : self);'};try{let{input:ft}=await(0,Fwr.getInputMap)(J,me),Wt=new Set,En=e(({moduleName:kn})=>{Wt.add(kn)},"captureImportedPackages"),fn=Object.entries(ft).reduce((kn,[an,Mn])=>(kn[an]=Mn.entryTarget,kn),{}),Gt=await(0,Lwr.rollup)({input:fn,output:ut,preserveSymlinks:!0,external:(0,Mwr.default)({cb:En,addDependency:A.pushJob.bind(A),dependencyId:me,moduleRoot:He}),plugins:(0,kwr.default)({moduleRoot:He,rollUpFS:E,useWebFsLoader:v})}),{output:Kt}=await Gt.generate(ut),wt=cM.path.join(a,Z,me,et);cM.FileSystem.ensureDirSync(c,wt);let Xt=[];for(let kn of Kt)if(kn.type==="chunk"){let an=kn.code;Q.repackage.omitProto&&(an=an.replaceAll(/__proto__: ?null,?/g,""));let Mn=cM.path.resolve(cM.path.join(wt,kn.fileName)),ir=cM.path.dirname(Mn);cM.FileSystem.ensureDirSync(c,ir),c.writeFileSync(Mn,an,{encoding:"utf-8"}),kn.isEntry?Xt.push({entryName:ft[kn.name].originalMapping,fileName:kn.fileName}):Xt.push({fileName:kn.fileName})}else if(kn.type==="asset"){let an=cM.path.resolve(cM.path.join(wt,kn.fileName)),Mn=cM.path.dirname(an);cM.FileSystem.ensureDirSync(c,Mn),c.writeFileSync(an,kn.source,{encoding:"utf-8"}),Xt.push({fileName:kn.fileName})}let{packageJson:yt}=await(0,Zgt.writePackageJson)(me,Xt,[...Wt],wt,_e,E,c);return{files:[...Xt.map(({fileName:kn})=>kn),"package.json"],packagePath:wt,updatedManifest:yt,pkgName:me,originalPath:He,importedPackages:Wt}}catch(ft){f.info(ft.toString())}},"buildDependency");for(;A.hasJobsInQueue();){let J=await A.popJob();if(!J)continue;let{dependencyId:Z,subPaths:Q,moduleRoot:me,importer:be}=J,he=await w({subPaths:Q?.filter(He=>He),outDir:i,options:d,dependencyId:Z,importer:be,requestorModuleRoot:me,originalPath:me});if(!he)continue;let _e=`${he.updatedManifest.name}@${he.updatedManifest.version}`;S.set(_e,he.importedPackages),C.push(he)}return g?C:await jwr(C,A.getDuplicatedDeps(),S,E)},"runBuild");Gce.runBuild=Wwr;async function jwr(r,t,i,a){let c=[];for(let d of r){c.push(d);let f=`${d.pkgName}@${d.updatedManifest.version}`,g=t.get(f);if(g)for(let v of g)c.push({...d,originalPath:v.substring(0,v.indexOf("/package.json"))}),i.get(f)&&await Qdn(f,c,r,i,v,a)}return c}e(jwr,"addDuplicatedDependencies");async function Qdn(r,t,i,a,c,d){let f=a.get(r);if(f)for(let g of f.values()){let v=await(0,Ydn.getRealPkgJson)(g,c,d);if(!v)continue;let S=v?.path.substring(0,v?.path.indexOf("/package.json"));if(t.find(L=>L.updatedManifest.name===v.packageJson.name&&L.updatedManifest.version===v.packageJson.version&&L.originalPath===S))continue;let A=i.find(L=>L.updatedManifest.name===v.packageJson.name&&L.updatedManifest.version===v.packageJson.version);if(!A)continue;t.push({...A,originalPath:S});let C=`${A.pkgName}@${A.updatedManifest.version}`;await Qdn(C,t,i,a,A.pkgName,d)}}e(Qdn,"addDuplicatesFromTree")});var npn=Je(fF=>{"use strict";V();G();U();z();Object.defineProperty(fF,"__esModule",{value:!0});fF.resolveModule=fF.checkModuleExists=fF.getPkgInfo=fF.build=fF.emptyLogger=void 0;var Vwr=Zdn(),$be=Vs(),epn=Vce(),eyt=$gt(),tpn=(RD(),nd(ND));fF.emptyLogger={info:e((...r)=>{},"info"),warn:e((...r)=>{},"warn"),error:e((...r)=>{},"error"),debug:e((...r)=>{},"debug")};var zwr=e(async({id:r,minify:t=!1,entry:i,logger:a=fF.emptyLogger,workingDir:c,fs:d,legacyPackageResolution:f,useWebFsLoader:g,outputDir:v=$be.path.join(".now",".output")})=>{let S=await(0,Vwr.runBuild)({pkgName:(0,epn.splitModuleRequest)(r).moduleName,entryPoint:i,options:{repackage:{minify:t,omitProto:!0}},rootDir:c,logger:a,fs:d,legacyPackageResolution:f,useWebFsLoader:g,outputDir:v});return a.info("Done!"),S},"build");fF.build=zwr;var Uwr=e(async({dependencyName:r,fs:t,workingDir:i,logger:a})=>{let c=$be.path.join(i,"node_modules"),d=await(0,epn.getRealPkgJson)(r,c,new eyt.RollupFs(t),a);if(!d)throw new Error(`No package.json found for ${r}`);return{name:d.packageJson.name,version:d.packageJson.version}},"getPkgInfo");fF.getPkgInfo=Uwr;var Gwr=e(async(r,t,i,a)=>{let c=$be.path.join(i,"package.json"),f=await(0,tpn.resolver)({fs:new eyt.RollupFs(t),warn:a?.warn,rootDir:i})(r,c);return $be.FileSystem.existsSync(t,f?.id)},"checkModuleExists");fF.checkModuleExists=Gwr;var qwr=e(async(r,t,i,a)=>{let c=$be.path.join(i,"package.json");return(await(0,tpn.resolver)({fs:new eyt.RollupFs(t),warn:a?.warn,rootDir:i})(r,c))?.id},"resolveModule");fF.resolveModule=qwr});var k8e=Je(lq=>{"use strict";V();G();U();z();Object.defineProperty(lq,"__esModule",{value:!0});lq.RepackService=lq.REPACK_OUTPUT_DIR=void 0;lq.checkModuleExists=Kwr;lq.resolveModule=Jwr;var Hwr=Vs();async function Kwr(r,t,i,a){return(await Ybe.create(t,i,a)).checkModuleExists(r)}e(Kwr,"checkModuleExists");async function Jwr(r,t,i,a){return(await Ybe.create(t,i,a)).resolveModule(r)}e(Jwr,"resolveModule");lq.REPACK_OUTPUT_DIR=Hwr.path.join(".now",".output");var Ybe=class r{static{e(this,"RepackService")}repack;logger;fs;workingDir;constructor(t,i,a,c){this.repack=t,this.logger=i,this.fs=a,this.workingDir=c}static async create(t,i,a){let c=await Promise.resolve().then(()=>cee(npn()));return new r(c,t,i,a)}async execute(t){return this.repack.build({...t,logger:this.logger,fs:this.fs,workingDir:this.workingDir,outputDir:lq.REPACK_OUTPUT_DIR})}async getResolvedDepDetails(t){return this.repack.getPkgInfo({dependencyName:t,workingDir:this.workingDir,fs:this.fs,logger:this.logger})}async checkModuleExists(t){return this.repack.checkModuleExists(t,this.fs,this.workingDir,this.logger)}async resolveModule(t){return this.repack.resolveModule(t,this.fs,this.workingDir,this.logger)}};lq.RepackService=Ybe});var nyt=Je(O8e=>{"use strict";V();G();U();z();Object.defineProperty(O8e,"__esModule",{value:!0});O8e.BomRefDiscriminator=void 0;var tyt=class{static{e(this,"BomRefDiscriminator")}#e;#t;constructor(t,i="BomRef"){this.#e=Array.from(t,a=>[a,a.value]),this.#t=i}get prefix(){return this.#t}*[Symbol.iterator](){for(let[t]of this.#e)yield t}discriminate(){let t=new Set([""]);for(let[i]of this.#e){let a=i.value;(a===void 0||t.has(a))&&(a=this.#n(),i.value=a),t.add(a)}}reset(){for(let[t,i]of this.#e)t.value=i}#n(){return`${this.#t}${Math.random().toString(32).substring(1)}${Math.random().toString(32).substring(1)}`}};O8e.BomRefDiscriminator=tyt});var B8e=Je(F8e=>{"use strict";V();G();U();z();Object.defineProperty(F8e,"__esModule",{value:!0});F8e.OptPlugError=void 0;var ryt=class extends Error{static{e(this,"OptPlugError")}cause;constructor(t,i){super(t),this.cause=i}};F8e.OptPlugError=ryt});var oyt=Je(W8e=>{"use strict";V();G();U();z();Object.defineProperty(W8e,"__esModule",{value:!0});W8e.MissingOptionalDependencyError=void 0;var Xwr=B8e(),iyt=class extends Xwr.OptPlugError{static{e(this,"MissingOptionalDependencyError")}};W8e.MissingOptionalDependencyError=iyt});var ipn=Je(rpn=>{"use strict";V();G();U();z();Object.defineProperty(rpn,"__esModule",{value:!0})});var qce=Je(j8e=>{"use strict";V();G();U();z();Object.defineProperty(j8e,"__esModule",{value:!0});j8e.treeIteratorSymbol=void 0;j8e.treeIteratorSymbol=Symbol("iterator of a tree/nesting-like structure")});var z8e=Je(V8e=>{"use strict";V();G();U();z();Object.defineProperty(V8e,"__esModule",{value:!0});V8e.BaseSerializer=void 0;var ayt=qce(),$wr=nyt(),syt=class{static{e(this,"BaseSerializer")}*#e(t){if(t.metadata.component!==void 0){yield t.metadata.component.bomRef;for(let{bomRef:i}of t.metadata.component.components[ayt.treeIteratorSymbol]())yield i}for(let{bomRef:i}of t.components[ayt.treeIteratorSymbol]())yield i;for(let{bomRef:i}of t.services[ayt.treeIteratorSymbol]())yield i;for(let{bomRef:i}of t.vulnerabilities)yield i}#t(t,i){let a=new $wr.BomRefDiscriminator(this.#e(t));a.discriminate();try{return this._normalize(t,i)}finally{a.reset()}}serialize(t,i){return this._serialize(this.#t(t,i),i)}};V8e.BaseSerializer=syt});var cyt=Je(lyt=>{"use strict";V();G();U();z();Object.defineProperty(lyt,"__esModule",{value:!0});lyt.chainI=Ywr;function*Ywr(...r){for(let t of r)for(let i of t)yield i}e(Ywr,"chainI")});var U8e=Je(uyt=>{"use strict";V();G();U();z();Object.defineProperty(uyt,"__esModule",{value:!0});uyt.isNotUndefined=Qwr;function Qwr(r){return r!==void 0}e(Qwr,"isNotUndefined")});var pyt=Je(dyt=>{"use strict";V();G();U();z();Object.defineProperty(dyt,"__esModule",{value:!0});dyt.escapeUri=ePr;var Zwr=[[/ /g,"%20"],[/"/g,"%22"],[/'/g,"%27"],[/\[/g,"%5B"],[/]/g,"%5D"],[/</g,"%3C"],[/>/g,"%3E"],[/\{/g,"%7B"],[/}/g,"%7D"]];function ePr(r){if(r===void 0)return r;for(let[t,i]of Zwr)r=r.replace(t,i);return r}e(ePr,"escapeUri")});var cq=Je(Uj=>{"use strict";V();G();U();z();Object.defineProperty(Uj,"__esModule",{value:!0});Uj.LicenseRepository=Uj.SpdxLicense=Uj.NamedLicense=Uj.LicenseExpression=void 0;var fyt=class{static{e(this,"LicenseExpression")}#e;acknowledgement;constructor(t){this.expression=t}get expression(){return this.#e}set expression(t){if(t==="")throw new RangeError("value is empty string");this.#e=t}compare(t){return this.#e.localeCompare(t.#e)}};Uj.LicenseExpression=fyt;var G8e=class{static{e(this,"DisjunctiveLicenseBase")}acknowledgement;text;#e;constructor(t={}){this.acknowledgement=t.acknowledgement,this.text=t.text,this.url=t.url}get url(){return this.#e}set url(t){this.#e=t===""?void 0:t}},_yt=class extends G8e{static{e(this,"NamedLicense")}name;constructor(t,i={}){super(i),this.name=t}compare(t){return this.name.localeCompare(t.name)}};Uj.NamedLicense=_yt;var myt=class extends G8e{static{e(this,"SpdxLicense")}#e;constructor(t,i={}){super(i),this.id=t}get id(){return this.#e}set id(t){if(t==="")throw new RangeError("value is empty string");this.#e=t}compare(t){return this.#e.localeCompare(t.#e)}};Uj.SpdxLicense=myt;var hyt=class r extends Set{static{e(this,"LicenseRepository")}static#e(t,i){return t.constructor===i.constructor?t.compare(i):t.constructor.name.localeCompare(i.constructor.name)}sorted(){return Array.from(this).sort(r.#e)}};Uj.LicenseRepository=hyt});var Qbe=Je(Hce=>{"use strict";V();G();U();z();Object.defineProperty(Hce,"__esModule",{value:!0});Hce.LifecycleRepository=Hce.NamedLifecycle=void 0;var q8e=class{static{e(this,"NamedLifecycle")}name;description;constructor(t,i={}){this.name=t,this.description=i.description}compare(t){return this.name.localeCompare(t.name)}};Hce.NamedLifecycle=q8e;var gyt=class r extends Set{static{e(this,"LifecycleRepository")}static#e(t,i){return t.constructor===i.constructor?t instanceof q8e?t.compare(i):t.localeCompare(i):t.constructor.name.localeCompare(i.constructor.name)}sorted(){return Array.from(this).sort(r.#e)}};Hce.LifecycleRepository=gyt});var iP=Je(F2=>{"use strict";V();G();U();z();Object.defineProperty(F2,"__esModule",{value:!0});F2.SortableNumbers=F2.SortableStringables=F2.SortableComparables=F2.SortableSet=F2.compareObjectsSymbol=void 0;F2.compareObjectsSymbol=Symbol("internal compare function");var Kce=class extends Set{static{e(this,"SortableSet")}sorted(){return Array.from(this).sort(this[F2.compareObjectsSymbol])}compare(t){let i=t.sorted(),a=this.sorted();if(a.length!==i.length)return a.length-i.length;for(let c=a.length-1;c>=0;--c){let d=this[F2.compareObjectsSymbol](a[c],i[c]);if(d!==0)return d}return 0}};F2.SortableSet=Kce;var yyt=class extends Kce{static{e(this,"SortableComparables")}[F2.compareObjectsSymbol](t,i){return t.constructor===i.constructor?t.compare(i):t.constructor.name.localeCompare(i.constructor.name)}};F2.SortableComparables=yyt;var vyt=class extends Kce{static{e(this,"SortableStringables")}[F2.compareObjectsSymbol](t,i){return t.toString().localeCompare(i.toString())}};F2.SortableStringables=vyt;var byt=class extends Kce{static{e(this,"SortableNumbers")}[F2.compareObjectsSymbol](t,i){return t-i}};F2.SortableNumbers=byt});var opn=Je(Syt=>{"use strict";V();G();U();z();Object.defineProperty(Syt,"__esModule",{value:!0});Syt.isCPE=nPr;var tPr=/^([c][pP][eE]:\/[AHOaho]?(:[A-Za-z0-9\._\-~%]*){0,6})$|^(cpe:2\.3:[aho\*\-](:(((\?*|\*?)([a-zA-Z0-9\-\._]|(\\[\\\*\?!"#$$%&'\(\)\+,\/:;<=>@\[\]\^`\{\|}~]))+(\?*|\*?))|[\*\-])){5}(:(([a-zA-Z]{2,3}(-([a-zA-Z]{2}|[0-9]{3}))?)|[\*\-]))(:(((\?*|\*?)([a-zA-Z0-9\-\._]|(\\[\\\*\?!"#$$%&'\(\)\+,\/:;<=>@\[\]\^`\{\|}~]))+(\?*|\*?))|[\*\-])){4})$/;function nPr(r){return typeof r=="string"&&tPr.test(r)}e(nPr,"isCPE")});var Zbe=Je(Jce=>{"use strict";V();G();U();z();Object.defineProperty(Jce,"__esModule",{value:!0});Jce.BomRefRepository=Jce.BomRef=void 0;var Eyt=class{static{e(this,"BomRef")}value;constructor(t){this.value=t}compare(t){return this.toString().localeCompare(t.toString())}toString(){return this.value??""}};Jce.BomRef=Eyt;var xyt=class extends Set{static{e(this,"BomRefRepository")}};Jce.BomRefRepository=xyt});var Dyt=Je(H8e=>{"use strict";V();G();U();z();Object.defineProperty(H8e,"__esModule",{value:!0});H8e.CopyrightRepository=void 0;var rPr=iP(),Tyt=class extends rPr.SortableStringables{static{e(this,"CopyrightRepository")}};H8e.CopyrightRepository=Tyt});var Xce=Je(K8e=>{"use strict";V();G();U();z();Object.defineProperty(K8e,"__esModule",{value:!0});K8e.HashDictionary=void 0;var Ayt=class r extends Map{static{e(this,"HashDictionary")}static#e([t,i],[a,c]){return t.localeCompare(a)||i.localeCompare(c)}sorted(){return Array.from(this.entries()).sort(r.#e)}};K8e.HashDictionary=Ayt});var tne=Je($ce=>{"use strict";V();G();U();z();Object.defineProperty($ce,"__esModule",{value:!0});$ce.ExternalReferenceRepository=$ce.ExternalReference=void 0;var iPr=iP(),oPr=Xce(),Cyt=class{static{e(this,"ExternalReference")}url;type;hashes;comment;constructor(t,i,a={}){this.url=t,this.type=i,this.hashes=a.hashes??new oPr.HashDictionary,this.comment=a.comment}compare(t){return this.type.localeCompare(t.type)||this.url.toString().localeCompare(t.url.toString())}};$ce.ExternalReference=Cyt;var Iyt=class extends iPr.SortableComparables{static{e(this,"ExternalReferenceRepository")}};$ce.ExternalReferenceRepository=Iyt});var Qce=Je(Yce=>{"use strict";V();G();U();z();Object.defineProperty(Yce,"__esModule",{value:!0});Yce.PropertyRepository=Yce.Property=void 0;var aPr=iP(),wyt=class{static{e(this,"Property")}name;value;constructor(t,i){this.name=t,this.value=i}compare(t){return this.name.localeCompare(t.name)||this.value.localeCompare(t.value)}};Yce.Property=wyt;var Pyt=class extends aPr.SortableComparables{static{e(this,"PropertyRepository")}};Yce.PropertyRepository=Pyt});var e0e=Je(p$=>{"use strict";V();G();U();z();Object.defineProperty(p$,"__esModule",{value:!0});p$.ComponentEvidence=p$.ComponentRepository=p$.Component=void 0;var sPr=iP(),apn=qce(),lPr=opn(),spn=Zbe(),cPr=Dyt(),uPr=tne(),dPr=Xce(),lpn=cq(),pPr=Qce(),Nyt=class{static{e(this,"Component")}type;name;author;copyright;description;externalReferences;group;hashes;licenses;publisher;purl;scope;supplier;swid;version;components;properties;evidence;#e;#t;dependencies;constructor(t,i,a={}){this.#e=new spn.BomRef(a.bomRef),this.type=t,this.name=i,this.supplier=a.supplier,this.author=a.author,this.copyright=a.copyright,this.externalReferences=a.externalReferences??new uPr.ExternalReferenceRepository,this.group=a.group,this.hashes=a.hashes??new dPr.HashDictionary,this.licenses=a.licenses??new lpn.LicenseRepository,this.publisher=a.publisher,this.purl=a.purl,this.scope=a.scope,this.swid=a.swid,this.version=a.version,this.description=a.description,this.components=a.components??new J8e,this.cpe=a.cpe,this.properties=a.properties??new pPr.PropertyRepository,this.evidence=a.evidence,this.dependencies=a.dependencies??new spn.BomRefRepository}get bomRef(){return this.#e}get cpe(){return this.#t}set cpe(t){if(t!==void 0&&!(0,lPr.isCPE)(t))throw new TypeError("Not CPE nor undefined");this.#t=t}compare(t){let i=this.bomRef.compare(t.bomRef);return i!==0?i:this.purl!==void 0&&t.purl!==void 0?this.purl.toString().localeCompare(t.purl.toString()):this.#t!==void 0&&t.#t!==void 0?this.#t.localeCompare(t.#t):(this.group??"").localeCompare(t.group??"")||this.name.localeCompare(t.name)||(this.version??"").localeCompare(t.version??"")}};p$.Component=Nyt;var J8e=class extends sPr.SortableComparables{static{e(this,"ComponentRepository")}*[apn.treeIteratorSymbol](){for(let t of this)yield t,yield*t.components[apn.treeIteratorSymbol]()}};p$.ComponentRepository=J8e;var Ryt=class{static{e(this,"ComponentEvidence")}licenses;copyright;constructor(t={}){this.licenses=t.licenses??new lpn.LicenseRepository,this.copyright=t.copyright??new cPr.CopyrightRepository}};p$.ComponentEvidence=Ryt});var $8e=Je(Zce=>{"use strict";V();G();U();z();Object.defineProperty(Zce,"__esModule",{value:!0});Zce.ServiceRepository=Zce.Service=void 0;var fPr=iP(),cpn=qce(),upn=Zbe(),_Pr=tne(),mPr=cq(),hPr=Qce(),Lyt=class{static{e(this,"Service")}provider;group;name;version;description;licenses;externalReferences;services;properties;#e;dependencies;constructor(t,i={}){this.#e=new upn.BomRef(i.bomRef),this.provider=i.provider,this.group=i.group,this.name=t,this.version=i.version,this.description=i.description,this.licenses=i.licenses??new mPr.LicenseRepository,this.externalReferences=i.externalReferences??new _Pr.ExternalReferenceRepository,this.services=i.services??new X8e,this.properties=i.properties??new hPr.PropertyRepository,this.dependencies=i.dependencies??new upn.BomRefRepository}get bomRef(){return this.#e}compare(t){let i=this.bomRef.compare(t.bomRef);return i!==0?i:(this.group??"").localeCompare(t.group??"")||this.name.localeCompare(t.name)||(this.version??"").localeCompare(t.version??"")}};Zce.Service=Lyt;var X8e=class extends fPr.SortableComparables{static{e(this,"ServiceRepository")}*[cpn.treeIteratorSymbol](){for(let t of this)yield t,yield*t.services[cpn.treeIteratorSymbol]()}};Zce.ServiceRepository=X8e});var eue=Je(f$=>{"use strict";V();G();U();z();Object.defineProperty(f$,"__esModule",{value:!0});f$.Tools=f$.ToolRepository=f$.Tool=void 0;var gPr=iP(),yPr=e0e(),vPr=tne(),bPr=Xce(),SPr=$8e(),Myt=class r{static{e(this,"Tool")}vendor;name;version;hashes;externalReferences;constructor(t={}){this.vendor=t.vendor,this.name=t.name,this.version=t.version,this.hashes=t.hashes??new bPr.HashDictionary,this.externalReferences=t.externalReferences??new vPr.ExternalReferenceRepository}compare(t){return(this.vendor??"").localeCompare(t.vendor??"")||(this.name??"").localeCompare(t.name??"")||(this.version??"").localeCompare(t.version??"")}static fromComponent(t){return new r({vendor:t.group,name:t.name,version:t.version,hashes:t.hashes,externalReferences:t.externalReferences})}static fromService(t){return new r({vendor:t.group,name:t.name,version:t.version,externalReferences:t.externalReferences})}};f$.Tool=Myt;var Y8e=class extends gPr.SortableComparables{static{e(this,"ToolRepository")}};f$.ToolRepository=Y8e;var kyt=class{static{e(this,"Tools")}components;services;tools;constructor(t={}){this.components=t.components??new yPr.ComponentRepository,this.services=t.services??new SPr.ServiceRepository,this.tools=t.tools??new Y8e}get size(){return this.components.size+this.services.size+this.tools.size}};f$.Tools=kyt});var t0e=Je(g8=>{"use strict";V();G();U();z();Object.defineProperty(g8,"__esModule",{value:!0});g8.AffectedVersionRepository=g8.AffectedVersionRange=g8.AffectedSingleVersion=g8.AffectRepository=g8.Affect=void 0;var dpn=iP(),Oyt=class{static{e(this,"Affect")}ref;versions;constructor(t,i={}){this.ref=t,this.versions=i.versions??new Q8e}compare(t){return this.ref.compare(t.ref)||this.versions.compare(t.versions)}};g8.Affect=Oyt;var Fyt=class extends dpn.SortableComparables{static{e(this,"AffectRepository")}};g8.AffectRepository=Fyt;var Byt=class{static{e(this,"AffectedSingleVersion")}version;status;constructor(t,i={}){this.version=t,this.status=i.status}compare(t){return this.version.localeCompare(t.version)||(this.status??"").localeCompare(t.status??"")}};g8.AffectedSingleVersion=Byt;var Wyt=class{static{e(this,"AffectedVersionRange")}range;status;constructor(t,i={}){this.range=t,this.status=i.status}compare(t){return this.range.localeCompare(t.range)||(this.status??"").localeCompare(t.status??"")}};g8.AffectedVersionRange=Wyt;var Q8e=class extends dpn.SortableComparables{static{e(this,"AffectedVersionRepository")}};g8.AffectedVersionRepository=Q8e});var ppn=Je((olo,EPr)=>{EPr.exports=["0BSD","3D-Slicer-1.0","AAL","ADSL","AFL-1.1","AFL-1.2","AFL-2.0","AFL-2.1","AFL-3.0","AGPL-1.0-only","AGPL-1.0-or-later","AGPL-3.0-only","AGPL-3.0-or-later","AMD-newlib","AMDPLPA","AML","AML-glslang","AMPAS","ANTLR-PD","ANTLR-PD-fallback","APAFML","APL-1.0","APSL-1.0","APSL-1.1","APSL-1.2","APSL-2.0","ASWF-Digital-Assets-1.0","ASWF-Digital-Assets-1.1","Abstyles","AdaCore-doc","Adobe-2006","Adobe-Display-PostScript","Adobe-Glyph","Adobe-Utopia","Afmparse","Aladdin","Apache-1.0","Apache-1.1","Apache-2.0","App-s2p","Arphic-1999","Artistic-1.0","Artistic-1.0-Perl","Artistic-1.0-cl8","Artistic-2.0","BSD-1-Clause","BSD-2-Clause","BSD-2-Clause-Darwin","BSD-2-Clause-Patent","BSD-2-Clause-Views","BSD-2-Clause-first-lines","BSD-3-Clause","BSD-3-Clause-Attribution","BSD-3-Clause-Clear","BSD-3-Clause-HP","BSD-3-Clause-LBNL","BSD-3-Clause-Modification","BSD-3-Clause-No-Military-License","BSD-3-Clause-No-Nuclear-License","BSD-3-Clause-No-Nuclear-License-2014","BSD-3-Clause-No-Nuclear-Warranty","BSD-3-Clause-Open-MPI","BSD-3-Clause-Sun","BSD-3-Clause-acpica","BSD-3-Clause-flex","BSD-4-Clause","BSD-4-Clause-Shortened","BSD-4-Clause-UC","BSD-4.3RENO","BSD-4.3TAHOE","BSD-Advertising-Acknowledgement","BSD-Attribution-HPND-disclaimer","BSD-Inferno-Nettverk","BSD-Protection","BSD-Source-Code","BSD-Source-beginning-file","BSD-Systemics","BSD-Systemics-W3Works","BSL-1.0","BUSL-1.1","Baekmuk","Bahyph","Barr","Beerware","BitTorrent-1.0","BitTorrent-1.1","Bitstream-Charter","Bitstream-Vera","BlueOak-1.0.0","Boehm-GC","Boehm-GC-without-fee","Borceux","Brian-Gladman-2-Clause","Brian-Gladman-3-Clause","C-UDA-1.0","CAL-1.0","CAL-1.0-Combined-Work-Exception","CATOSL-1.1","CC-BY-1.0","CC-BY-2.0","CC-BY-2.5","CC-BY-2.5-AU","CC-BY-3.0","CC-BY-3.0-AT","CC-BY-3.0-AU","CC-BY-3.0-DE","CC-BY-3.0-IGO","CC-BY-3.0-NL","CC-BY-3.0-US","CC-BY-4.0","CC-BY-NC-1.0","CC-BY-NC-2.0","CC-BY-NC-2.5","CC-BY-NC-3.0","CC-BY-NC-3.0-DE","CC-BY-NC-4.0","CC-BY-NC-ND-1.0","CC-BY-NC-ND-2.0","CC-BY-NC-ND-2.5","CC-BY-NC-ND-3.0","CC-BY-NC-ND-3.0-DE","CC-BY-NC-ND-3.0-IGO","CC-BY-NC-ND-4.0","CC-BY-NC-SA-1.0","CC-BY-NC-SA-2.0","CC-BY-NC-SA-2.0-DE","CC-BY-NC-SA-2.0-FR","CC-BY-NC-SA-2.0-UK","CC-BY-NC-SA-2.5","CC-BY-NC-SA-3.0","CC-BY-NC-SA-3.0-DE","CC-BY-NC-SA-3.0-IGO","CC-BY-NC-SA-4.0","CC-BY-ND-1.0","CC-BY-ND-2.0","CC-BY-ND-2.5","CC-BY-ND-3.0","CC-BY-ND-3.0-DE","CC-BY-ND-4.0","CC-BY-SA-1.0","CC-BY-SA-2.0","CC-BY-SA-2.0-UK","CC-BY-SA-2.1-JP","CC-BY-SA-2.5","CC-BY-SA-3.0","CC-BY-SA-3.0-AT","CC-BY-SA-3.0-DE","CC-BY-SA-3.0-IGO","CC-BY-SA-4.0","CC-PDDC","CC-PDM-1.0","CC-SA-1.0","CC0-1.0","CDDL-1.0","CDDL-1.1","CDL-1.0","CDLA-Permissive-1.0","CDLA-Permissive-2.0","CDLA-Sharing-1.0","CECILL-1.0","CECILL-1.1","CECILL-2.0","CECILL-2.1","CECILL-B","CECILL-C","CERN-OHL-1.1","CERN-OHL-1.2","CERN-OHL-P-2.0","CERN-OHL-S-2.0","CERN-OHL-W-2.0","CFITSIO","CMU-Mach","CMU-Mach-nodoc","CNRI-Jython","CNRI-Python","CNRI-Python-GPL-Compatible","COIL-1.0","CPAL-1.0","CPL-1.0","CPOL-1.02","CUA-OPL-1.0","Caldera","Caldera-no-preamble","Catharon","ClArtistic","Clips","Community-Spec-1.0","Condor-1.1","Cornell-Lossless-JPEG","Cronyx","Crossword","CrystalStacker","Cube","D-FSL-1.0","DEC-3-Clause","DL-DE-BY-2.0","DL-DE-ZERO-2.0","DOC","DRL-1.0","DRL-1.1","DSDP","DocBook-Schema","DocBook-Stylesheet","DocBook-XML","Dotseqn","ECL-1.0","ECL-2.0","EFL-1.0","EFL-2.0","EPICS","EPL-1.0","EPL-2.0","EUDatagrid","EUPL-1.0","EUPL-1.1","EUPL-1.2","Elastic-2.0","Entessa","ErlPL-1.1","Eurosym","FBM","FDK-AAC","FSFAP","FSFAP-no-warranty-disclaimer","FSFUL","FSFULLR","FSFULLRWD","FTL","Fair","Ferguson-Twofish","Frameworx-1.0","FreeBSD-DOC","FreeImage","Furuseth","GCR-docs","GD","GFDL-1.1-invariants-only","GFDL-1.1-invariants-or-later","GFDL-1.1-no-invariants-only","GFDL-1.1-no-invariants-or-later","GFDL-1.1-only","GFDL-1.1-or-later","GFDL-1.2-invariants-only","GFDL-1.2-invariants-or-later","GFDL-1.2-no-invariants-only","GFDL-1.2-no-invariants-or-later","GFDL-1.2-only","GFDL-1.2-or-later","GFDL-1.3-invariants-only","GFDL-1.3-invariants-or-later","GFDL-1.3-no-invariants-only","GFDL-1.3-no-invariants-or-later","GFDL-1.3-only","GFDL-1.3-or-later","GL2PS","GLWTPL","GPL-1.0-only","GPL-1.0-or-later","GPL-2.0-only","GPL-2.0-or-later","GPL-3.0-only","GPL-3.0-or-later","Giftware","Glide","Glulxe","Graphics-Gems","Gutmann","HIDAPI","HP-1986","HP-1989","HPND","HPND-DEC","HPND-Fenneberg-Livingston","HPND-INRIA-IMAG","HPND-Intel","HPND-Kevlin-Henney","HPND-MIT-disclaimer","HPND-Markus-Kuhn","HPND-Netrek","HPND-Pbmplus","HPND-UC","HPND-UC-export-US","HPND-doc","HPND-doc-sell","HPND-export-US","HPND-export-US-acknowledgement","HPND-export-US-modify","HPND-export2-US","HPND-merchantability-variant","HPND-sell-MIT-disclaimer-xserver","HPND-sell-regexpr","HPND-sell-variant","HPND-sell-variant-MIT-disclaimer","HPND-sell-variant-MIT-disclaimer-rev","HTMLTIDY","HaskellReport","Hippocratic-2.1","IBM-pibs","ICU","IEC-Code-Components-EULA","IJG","IJG-short","IPA","IPL-1.0","ISC","ISC-Veillard","ImageMagick","Imlib2","Info-ZIP","Inner-Net-2.0","InnoSetup","Intel","Intel-ACPI","Interbase-1.0","JPL-image","JPNIC","JSON","Jam","JasPer-2.0","Kastrup","Kazlib","Knuth-CTAN","LAL-1.2","LAL-1.3","LGPL-2.0-only","LGPL-2.0-or-later","LGPL-2.1-only","LGPL-2.1-or-later","LGPL-3.0-only","LGPL-3.0-or-later","LGPLLR","LOOP","LPD-document","LPL-1.0","LPL-1.02","LPPL-1.0","LPPL-1.1","LPPL-1.2","LPPL-1.3a","LPPL-1.3c","LZMA-SDK-9.11-to-9.20","LZMA-SDK-9.22","Latex2e","Latex2e-translated-notice","Leptonica","LiLiQ-P-1.1","LiLiQ-R-1.1","LiLiQ-Rplus-1.1","Libpng","Linux-OpenIB","Linux-man-pages-1-para","Linux-man-pages-copyleft","Linux-man-pages-copyleft-2-para","Linux-man-pages-copyleft-var","Lucida-Bitmap-Fonts","MIPS","MIT","MIT-0","MIT-CMU","MIT-Click","MIT-Festival","MIT-Khronos-old","MIT-Modern-Variant","MIT-Wu","MIT-advertising","MIT-enna","MIT-feh","MIT-open-group","MIT-testregex","MITNFA","MMIXware","MPEG-SSG","MPL-1.0","MPL-1.1","MPL-2.0","MPL-2.0-no-copyleft-exception","MS-LPL","MS-PL","MS-RL","MTLL","Mackerras-3-Clause","Mackerras-3-Clause-acknowledgment","MakeIndex","Martin-Birgmeier","McPhee-slideshow","Minpack","MirOS","Motosoto","MulanPSL-1.0","MulanPSL-2.0","Multics","Mup","NAIST-2003","NASA-1.3","NBPL-1.0","NCBI-PD","NCGL-UK-2.0","NCL","NCSA","NGPL","NICTA-1.0","NIST-PD","NIST-PD-fallback","NIST-Software","NLOD-1.0","NLOD-2.0","NLPL","NOSL","NPL-1.0","NPL-1.1","NPOSL-3.0","NRL","NTP","NTP-0","Naumen","NetCDF","Newsletr","Nokia","Noweb","O-UDA-1.0","OAR","OCCT-PL","OCLC-2.0","ODC-By-1.0","ODbL-1.0","OFFIS","OFL-1.0","OFL-1.0-RFN","OFL-1.0-no-RFN","OFL-1.1","OFL-1.1-RFN","OFL-1.1-no-RFN","OGC-1.0","OGDL-Taiwan-1.0","OGL-Canada-2.0","OGL-UK-1.0","OGL-UK-2.0","OGL-UK-3.0","OGTSL","OLDAP-1.1","OLDAP-1.2","OLDAP-1.3","OLDAP-1.4","OLDAP-2.0","OLDAP-2.0.1","OLDAP-2.1","OLDAP-2.2","OLDAP-2.2.1","OLDAP-2.2.2","OLDAP-2.3","OLDAP-2.4","OLDAP-2.5","OLDAP-2.6","OLDAP-2.7","OLDAP-2.8","OLFL-1.3","OML","OPL-1.0","OPL-UK-3.0","OPUBL-1.0","OSET-PL-2.1","OSL-1.0","OSL-1.1","OSL-2.0","OSL-2.1","OSL-3.0","OpenPBS-2.3","OpenSSL","OpenSSL-standalone","OpenVision","PADL","PDDL-1.0","PHP-3.0","PHP-3.01","PPL","PSF-2.0","Parity-6.0.0","Parity-7.0.0","Pixar","Plexus","PolyForm-Noncommercial-1.0.0","PolyForm-Small-Business-1.0.0","PostgreSQL","Python-2.0","Python-2.0.1","QPL-1.0","QPL-1.0-INRIA-2004","Qhull","RHeCos-1.1","RPL-1.1","RPL-1.5","RPSL-1.0","RSA-MD","RSCPL","Rdisc","Ruby","Ruby-pty","SAX-PD","SAX-PD-2.0","SCEA","SGI-B-1.0","SGI-B-1.1","SGI-B-2.0","SGI-OpenGL","SGP4","SHL-0.5","SHL-0.51","SISSL","SISSL-1.2","SL","SMAIL-GPL","SMLNJ","SMPPL","SNIA","SPL-1.0","SSH-OpenSSH","SSH-short","SSLeay-standalone","SSPL-1.0","SWL","Saxpath","SchemeReport","Sendmail","Sendmail-8.23","Sendmail-Open-Source-1.1","SimPL-2.0","Sleepycat","Soundex","Spencer-86","Spencer-94","Spencer-99","SugarCRM-1.1.3","Sun-PPP","Sun-PPP-2000","SunPro","Symlinks","TAPR-OHL-1.0","TCL","TCP-wrappers","TGPPL-1.0","TMate","TORQUE-1.1","TOSL","TPDL","TPL-1.0","TTWL","TTYP0","TU-Berlin-1.0","TU-Berlin-2.0","TermReadKey","ThirdEye","TrustedQSL","UCAR","UCL-1.0","UMich-Merit","UPL-1.0","URT-RLE","Ubuntu-font-1.0","Unicode-3.0","Unicode-DFS-2015","Unicode-DFS-2016","Unicode-TOU","UnixCrypt","Unlicense","VOSTROM","VSL-1.0","Vim","W3C","W3C-19980720","W3C-20150513","WTFPL","Watcom-1.0","Widget-Workshop","Wsuipa","X11","X11-distribute-modifications-variant","X11-swapped","XFree86-1.1","XSkat","Xdebug-1.03","Xerox","Xfig","Xnet","YPL-1.0","YPL-1.1","ZPL-1.1","ZPL-2.0","ZPL-2.1","Zed","Zeeff","Zend-2.0","Zimbra-1.3","Zimbra-1.4","Zlib","any-OSI","any-OSI-perl-modules","bcrypt-Solar-Designer","blessing","bzip2-1.0.6","check-cvs","checkmk","copyleft-next-0.3.0","copyleft-next-0.3.1","curl","cve-tou","diffmark","dtoa","dvipdfm","eGenix","etalab-2.0","fwlw","gSOAP-1.3b","generic-xts","gnuplot","gtkbook","hdparm","iMatix","libpng-2.0","libselinux-1.0","libtiff","libutil-David-Nugent","lsof","magaz","mailprio","metamail","mpi-permissive","mpich2","mplus","pkgconf","pnmstitch","psfrag","psutils","python-ldap","radvd","snprintf","softSurfer","ssh-keyscan","swrule","threeparttable","ulem","w3m","wwl","xinetd","xkeyboard-config-Zinoviev","xlock","xpp","xzoom","zlib-acknowledgement"]});var fpn=Je((alo,xPr)=>{xPr.exports=["AGPL-1.0","AGPL-3.0","BSD-2-Clause-FreeBSD","BSD-2-Clause-NetBSD","GFDL-1.1","GFDL-1.2","GFDL-1.3","GPL-1.0","GPL-2.0","GPL-2.0-with-GCC-exception","GPL-2.0-with-autoconf-exception","GPL-2.0-with-bison-exception","GPL-2.0-with-classpath-exception","GPL-2.0-with-font-exception","GPL-3.0","GPL-3.0-with-GCC-exception","GPL-3.0-with-autoconf-exception","LGPL-2.0","LGPL-2.1","LGPL-3.0","Net-SNMP","Nunit","StandardML-NJ","bzip2-1.0.5","eCos-2.0","wxWindows"]});var _pn=Je((slo,TPr)=>{TPr.exports=["389-exception","Asterisk-exception","Autoconf-exception-2.0","Autoconf-exception-3.0","Autoconf-exception-generic","Autoconf-exception-generic-3.0","Autoconf-exception-macro","Bison-exception-1.24","Bison-exception-2.2","Bootloader-exception","Classpath-exception-2.0","CLISP-exception-2.0","cryptsetup-OpenSSL-exception","DigiRule-FOSS-exception","eCos-exception-2.0","Fawkes-Runtime-exception","FLTK-exception","fmt-exception","Font-exception-2.0","freertos-exception-2.0","GCC-exception-2.0","GCC-exception-2.0-note","GCC-exception-3.1","Gmsh-exception","GNAT-exception","GNOME-examples-exception","GNU-compiler-exception","gnu-javamail-exception","GPL-3.0-interface-exception","GPL-3.0-linking-exception","GPL-3.0-linking-source-exception","GPL-CC-1.0","GStreamer-exception-2005","GStreamer-exception-2008","i2p-gpl-java-exception","KiCad-libraries-exception","LGPL-3.0-linking-exception","libpri-OpenH323-exception","Libtool-exception","Linux-syscall-note","LLGPL","LLVM-exception","LZMA-exception","mif-exception","OCaml-LGPL-linking-exception","OCCT-exception-1.0","OpenJDK-assembly-exception-1.0","openvpn-openssl-exception","PS-or-PDF-font-exception-20170817","QPL-1.0-INRIA-2004-exception","Qt-GPL-exception-1.0","Qt-LGPL-exception-1.1","Qwt-exception-1.0","SANE-exception","SHL-2.0","SHL-2.1","stunnel-exception","SWI-exception","Swift-exception","Texinfo-exception","u-boot-exception-2.0","UBDL-exception","Universal-FOSS-exception-1.0","vsftpd-openssl-exception","WxWindows-exception-3.1","x11vnc-openssl-exception"]});var hpn=Je((llo,mpn)=>{"use strict";V();G();U();z();var DPr=[].concat(ppn()).concat(fpn()),APr=_pn();mpn.exports=function(r){var t=0;function i(){return t<r.length}e(i,"hasMore");function a(W){if(W instanceof RegExp){var O=r.slice(t),w=O.match(W);if(w)return t+=w[0].length,w[0]}else if(r.indexOf(W,t)===t)return t+=W.length,W}e(a,"read");function c(){a(/[ ]*/)}e(c,"skipWhitespace");function d(){for(var W,O=["WITH","AND","OR","(",")",":","+"],w=0;w<O.length&&(W=a(O[w]),!W);w++);if(W==="+"&&t>1&&r[t-2]===" ")throw new Error("Space before `+`");return W&&{type:"OPERATOR",string:W}}e(d,"operator");function f(){return a(/[A-Za-z0-9-.]+/)}e(f,"idstring");function g(){var W=f();if(!W)throw new Error("Expected idstring at offset "+t);return W}e(g,"expectIdstring");function v(){if(a("DocumentRef-")){var W=g();return{type:"DOCUMENTREF",string:W}}}e(v,"documentRef");function S(){if(a("LicenseRef-")){var W=g();return{type:"LICENSEREF",string:W}}}e(S,"licenseRef");function E(){var W=t,O=f();if(DPr.indexOf(O)!==-1)return{type:"LICENSE",string:O};if(APr.indexOf(O)!==-1)return{type:"EXCEPTION",string:O};t=W}e(E,"identifier");function A(){return d()||v()||S()||E()}e(A,"parseToken");for(var C=[];i()&&(c(),!!i());){var L=A();if(!L)throw new Error("Unexpected `"+r[t]+"` at offset "+t);C.push(L)}return C}});var ypn=Je((_lo,gpn)=>{"use strict";V();G();U();z();gpn.exports=function(r){var t=0;function i(){return t<r.length}e(i,"hasMore");function a(){return i()?r[t]:null}e(a,"token");function c(){if(!i())throw new Error;t++}e(c,"next");function d(O){var w=a();if(w&&w.type==="OPERATOR"&&O===w.string)return c(),w.string}e(d,"parseOperator");function f(){if(d("WITH")){var O=a();if(O&&O.type==="EXCEPTION")return c(),O.string;throw new Error("Expected exception after `WITH`")}}e(f,"parseWith");function g(){var O=t,w="",M=a();if(M.type==="DOCUMENTREF"&&(c(),w+="DocumentRef-"+M.string+":",!d(":")))throw new Error("Expected `:` after `DocumentRef-...`");if(M=a(),M.type==="LICENSEREF")return c(),w+="LicenseRef-"+M.string,{license:w};t=O}e(g,"parseLicenseRef");function v(){var O=a();if(O&&O.type==="LICENSE"){c();var w={license:O.string};d("+")&&(w.plus=!0);var M=f();return M&&(w.exception=M),w}}e(v,"parseLicense");function S(){var O=d("(");if(O){var w=L();if(!d(")"))throw new Error("Expected `)`");return w}}e(S,"parseParenthesizedExpression");function E(){return S()||g()||v()}e(E,"parseAtom");function A(O,w){return e(function M(){var J=w();if(J){if(!d(O))return J;var Z=M();if(!Z)throw new Error("Expected expression");return{left:J,conjunction:O.toLowerCase(),right:Z}}},"parseBinaryOp")}e(A,"makeBinaryOpParser");var C=A("AND",E),L=A("OR",C),W=L();if(!W||i())throw new Error("Syntax error");return W}});var bpn=Je((blo,vpn)=>{"use strict";V();G();U();z();var CPr=hpn(),IPr=ypn();vpn.exports=function(r){return IPr(CPr(r))}});var Spn=Je((Dlo,wPr)=>{wPr.exports={$schema:"http://json-schema.org/draft-07/schema#",$id:"http://cyclonedx.org/schema/spdx.schema.json",$comment:"v1.0-3.27.0",type:"string",enum:["0BSD","3D-Slicer-1.0","AAL","Abstyles","AdaCore-doc","Adobe-2006","Adobe-Display-PostScript","Adobe-Glyph","Adobe-Utopia","ADSL","AFL-1.1","AFL-1.2","AFL-2.0","AFL-2.1","AFL-3.0","Afmparse","AGPL-1.0","AGPL-1.0-only","AGPL-1.0-or-later","AGPL-3.0","AGPL-3.0-only","AGPL-3.0-or-later","Aladdin","AMD-newlib","AMDPLPA","AML","AML-glslang","AMPAS","ANTLR-PD","ANTLR-PD-fallback","any-OSI","any-OSI-perl-modules","Apache-1.0","Apache-1.1","Apache-2.0","APAFML","APL-1.0","App-s2p","APSL-1.0","APSL-1.1","APSL-1.2","APSL-2.0","Arphic-1999","Artistic-1.0","Artistic-1.0-cl8","Artistic-1.0-Perl","Artistic-2.0","Artistic-dist","Aspell-RU","ASWF-Digital-Assets-1.0","ASWF-Digital-Assets-1.1","Baekmuk","Bahyph","Barr","bcrypt-Solar-Designer","Beerware","Bitstream-Charter","Bitstream-Vera","BitTorrent-1.0","BitTorrent-1.1","blessing","BlueOak-1.0.0","Boehm-GC","Boehm-GC-without-fee","Borceux","Brian-Gladman-2-Clause","Brian-Gladman-3-Clause","BSD-1-Clause","BSD-2-Clause","BSD-2-Clause-Darwin","BSD-2-Clause-first-lines","BSD-2-Clause-FreeBSD","BSD-2-Clause-NetBSD","BSD-2-Clause-Patent","BSD-2-Clause-pkgconf-disclaimer","BSD-2-Clause-Views","BSD-3-Clause","BSD-3-Clause-acpica","BSD-3-Clause-Attribution","BSD-3-Clause-Clear","BSD-3-Clause-flex","BSD-3-Clause-HP","BSD-3-Clause-LBNL","BSD-3-Clause-Modification","BSD-3-Clause-No-Military-License","BSD-3-Clause-No-Nuclear-License","BSD-3-Clause-No-Nuclear-License-2014","BSD-3-Clause-No-Nuclear-Warranty","BSD-3-Clause-Open-MPI","BSD-3-Clause-Sun","BSD-4-Clause","BSD-4-Clause-Shortened","BSD-4-Clause-UC","BSD-4.3RENO","BSD-4.3TAHOE","BSD-Advertising-Acknowledgement","BSD-Attribution-HPND-disclaimer","BSD-Inferno-Nettverk","BSD-Protection","BSD-Source-beginning-file","BSD-Source-Code","BSD-Systemics","BSD-Systemics-W3Works","BSL-1.0","BUSL-1.1","bzip2-1.0.5","bzip2-1.0.6","C-UDA-1.0","CAL-1.0","CAL-1.0-Combined-Work-Exception","Caldera","Caldera-no-preamble","Catharon","CATOSL-1.1","CC-BY-1.0","CC-BY-2.0","CC-BY-2.5","CC-BY-2.5-AU","CC-BY-3.0","CC-BY-3.0-AT","CC-BY-3.0-AU","CC-BY-3.0-DE","CC-BY-3.0-IGO","CC-BY-3.0-NL","CC-BY-3.0-US","CC-BY-4.0","CC-BY-NC-1.0","CC-BY-NC-2.0","CC-BY-NC-2.5","CC-BY-NC-3.0","CC-BY-NC-3.0-DE","CC-BY-NC-4.0","CC-BY-NC-ND-1.0","CC-BY-NC-ND-2.0","CC-BY-NC-ND-2.5","CC-BY-NC-ND-3.0","CC-BY-NC-ND-3.0-DE","CC-BY-NC-ND-3.0-IGO","CC-BY-NC-ND-4.0","CC-BY-NC-SA-1.0","CC-BY-NC-SA-2.0","CC-BY-NC-SA-2.0-DE","CC-BY-NC-SA-2.0-FR","CC-BY-NC-SA-2.0-UK","CC-BY-NC-SA-2.5","CC-BY-NC-SA-3.0","CC-BY-NC-SA-3.0-DE","CC-BY-NC-SA-3.0-IGO","CC-BY-NC-SA-4.0","CC-BY-ND-1.0","CC-BY-ND-2.0","CC-BY-ND-2.5","CC-BY-ND-3.0","CC-BY-ND-3.0-DE","CC-BY-ND-4.0","CC-BY-SA-1.0","CC-BY-SA-2.0","CC-BY-SA-2.0-UK","CC-BY-SA-2.1-JP","CC-BY-SA-2.5","CC-BY-SA-3.0","CC-BY-SA-3.0-AT","CC-BY-SA-3.0-DE","CC-BY-SA-3.0-IGO","CC-BY-SA-4.0","CC-PDDC","CC-PDM-1.0","CC-SA-1.0","CC0-1.0","CDDL-1.0","CDDL-1.1","CDL-1.0","CDLA-Permissive-1.0","CDLA-Permissive-2.0","CDLA-Sharing-1.0","CECILL-1.0","CECILL-1.1","CECILL-2.0","CECILL-2.1","CECILL-B","CECILL-C","CERN-OHL-1.1","CERN-OHL-1.2","CERN-OHL-P-2.0","CERN-OHL-S-2.0","CERN-OHL-W-2.0","CFITSIO","check-cvs","checkmk","ClArtistic","Clips","CMU-Mach","CMU-Mach-nodoc","CNRI-Jython","CNRI-Python","CNRI-Python-GPL-Compatible","COIL-1.0","Community-Spec-1.0","Condor-1.1","copyleft-next-0.3.0","copyleft-next-0.3.1","Cornell-Lossless-JPEG","CPAL-1.0","CPL-1.0","CPOL-1.02","Cronyx","Crossword","CryptoSwift","CrystalStacker","CUA-OPL-1.0","Cube","curl","cve-tou","D-FSL-1.0","DEC-3-Clause","diffmark","DL-DE-BY-2.0","DL-DE-ZERO-2.0","DOC","DocBook-DTD","DocBook-Schema","DocBook-Stylesheet","DocBook-XML","Dotseqn","DRL-1.0","DRL-1.1","DSDP","dtoa","dvipdfm","ECL-1.0","ECL-2.0","eCos-2.0","EFL-1.0","EFL-2.0","eGenix","Elastic-2.0","Entessa","EPICS","EPL-1.0","EPL-2.0","ErlPL-1.1","etalab-2.0","EUDatagrid","EUPL-1.0","EUPL-1.1","EUPL-1.2","Eurosym","Fair","FBM","FDK-AAC","Ferguson-Twofish","Frameworx-1.0","FreeBSD-DOC","FreeImage","FSFAP","FSFAP-no-warranty-disclaimer","FSFUL","FSFULLR","FSFULLRSD","FSFULLRWD","FSL-1.1-ALv2","FSL-1.1-MIT","FTL","Furuseth","fwlw","Game-Programming-Gems","GCR-docs","GD","generic-xts","GFDL-1.1","GFDL-1.1-invariants-only","GFDL-1.1-invariants-or-later","GFDL-1.1-no-invariants-only","GFDL-1.1-no-invariants-or-later","GFDL-1.1-only","GFDL-1.1-or-later","GFDL-1.2","GFDL-1.2-invariants-only","GFDL-1.2-invariants-or-later","GFDL-1.2-no-invariants-only","GFDL-1.2-no-invariants-or-later","GFDL-1.2-only","GFDL-1.2-or-later","GFDL-1.3","GFDL-1.3-invariants-only","GFDL-1.3-invariants-or-later","GFDL-1.3-no-invariants-only","GFDL-1.3-no-invariants-or-later","GFDL-1.3-only","GFDL-1.3-or-later","Giftware","GL2PS","Glide","Glulxe","GLWTPL","gnuplot","GPL-1.0","GPL-1.0+","GPL-1.0-only","GPL-1.0-or-later","GPL-2.0","GPL-2.0+","GPL-2.0-only","GPL-2.0-or-later","GPL-2.0-with-autoconf-exception","GPL-2.0-with-bison-exception","GPL-2.0-with-classpath-exception","GPL-2.0-with-font-exception","GPL-2.0-with-GCC-exception","GPL-3.0","GPL-3.0+","GPL-3.0-only","GPL-3.0-or-later","GPL-3.0-with-autoconf-exception","GPL-3.0-with-GCC-exception","Graphics-Gems","gSOAP-1.3b","gtkbook","Gutmann","HaskellReport","HDF5","hdparm","HIDAPI","Hippocratic-2.1","HP-1986","HP-1989","HPND","HPND-DEC","HPND-doc","HPND-doc-sell","HPND-export-US","HPND-export-US-acknowledgement","HPND-export-US-modify","HPND-export2-US","HPND-Fenneberg-Livingston","HPND-INRIA-IMAG","HPND-Intel","HPND-Kevlin-Henney","HPND-Markus-Kuhn","HPND-merchantability-variant","HPND-MIT-disclaimer","HPND-Netrek","HPND-Pbmplus","HPND-sell-MIT-disclaimer-xserver","HPND-sell-regexpr","HPND-sell-variant","HPND-sell-variant-MIT-disclaimer","HPND-sell-variant-MIT-disclaimer-rev","HPND-UC","HPND-UC-export-US","HTMLTIDY","IBM-pibs","ICU","IEC-Code-Components-EULA","IJG","IJG-short","ImageMagick","iMatix","Imlib2","Info-ZIP","Inner-Net-2.0","InnoSetup","Intel","Intel-ACPI","Interbase-1.0","IPA","IPL-1.0","ISC","ISC-Veillard","Jam","JasPer-2.0","jove","JPL-image","JPNIC","JSON","Kastrup","Kazlib","Knuth-CTAN","LAL-1.2","LAL-1.3","Latex2e","Latex2e-translated-notice","Leptonica","LGPL-2.0","LGPL-2.0+","LGPL-2.0-only","LGPL-2.0-or-later","LGPL-2.1","LGPL-2.1+","LGPL-2.1-only","LGPL-2.1-or-later","LGPL-3.0","LGPL-3.0+","LGPL-3.0-only","LGPL-3.0-or-later","LGPLLR","Libpng","libpng-1.6.35","libpng-2.0","libselinux-1.0","libtiff","libutil-David-Nugent","LiLiQ-P-1.1","LiLiQ-R-1.1","LiLiQ-Rplus-1.1","Linux-man-pages-1-para","Linux-man-pages-copyleft","Linux-man-pages-copyleft-2-para","Linux-man-pages-copyleft-var","Linux-OpenIB","LOOP","LPD-document","LPL-1.0","LPL-1.02","LPPL-1.0","LPPL-1.1","LPPL-1.2","LPPL-1.3a","LPPL-1.3c","lsof","Lucida-Bitmap-Fonts","LZMA-SDK-9.11-to-9.20","LZMA-SDK-9.22","Mackerras-3-Clause","Mackerras-3-Clause-acknowledgment","magaz","mailprio","MakeIndex","man2html","Martin-Birgmeier","McPhee-slideshow","metamail","Minpack","MIPS","MirOS","MIT","MIT-0","MIT-advertising","MIT-Click","MIT-CMU","MIT-enna","MIT-feh","MIT-Festival","MIT-Khronos-old","MIT-Modern-Variant","MIT-open-group","MIT-testregex","MIT-Wu","MITNFA","MMIXware","Motosoto","MPEG-SSG","mpi-permissive","mpich2","MPL-1.0","MPL-1.1","MPL-2.0","MPL-2.0-no-copyleft-exception","mplus","MS-LPL","MS-PL","MS-RL","MTLL","MulanPSL-1.0","MulanPSL-2.0","Multics","Mup","NAIST-2003","NASA-1.3","Naumen","NBPL-1.0","NCBI-PD","NCGL-UK-2.0","NCL","NCSA","Net-SNMP","NetCDF","Newsletr","NGPL","ngrep","NICTA-1.0","NIST-PD","NIST-PD-fallback","NIST-Software","NLOD-1.0","NLOD-2.0","NLPL","Nokia","NOSL","Noweb","NPL-1.0","NPL-1.1","NPOSL-3.0","NRL","NTIA-PD","NTP","NTP-0","Nunit","O-UDA-1.0","OAR","OCCT-PL","OCLC-2.0","ODbL-1.0","ODC-By-1.0","OFFIS","OFL-1.0","OFL-1.0-no-RFN","OFL-1.0-RFN","OFL-1.1","OFL-1.1-no-RFN","OFL-1.1-RFN","OGC-1.0","OGDL-Taiwan-1.0","OGL-Canada-2.0","OGL-UK-1.0","OGL-UK-2.0","OGL-UK-3.0","OGTSL","OLDAP-1.1","OLDAP-1.2","OLDAP-1.3","OLDAP-1.4","OLDAP-2.0","OLDAP-2.0.1","OLDAP-2.1","OLDAP-2.2","OLDAP-2.2.1","OLDAP-2.2.2","OLDAP-2.3","OLDAP-2.4","OLDAP-2.5","OLDAP-2.6","OLDAP-2.7","OLDAP-2.8","OLFL-1.3","OML","OpenPBS-2.3","OpenSSL","OpenSSL-standalone","OpenVision","OPL-1.0","OPL-UK-3.0","OPUBL-1.0","OSET-PL-2.1","OSL-1.0","OSL-1.1","OSL-2.0","OSL-2.1","OSL-3.0","PADL","Parity-6.0.0","Parity-7.0.0","PDDL-1.0","PHP-3.0","PHP-3.01","Pixar","pkgconf","Plexus","pnmstitch","PolyForm-Noncommercial-1.0.0","PolyForm-Small-Business-1.0.0","PostgreSQL","PPL","PSF-2.0","psfrag","psutils","Python-2.0","Python-2.0.1","python-ldap","Qhull","QPL-1.0","QPL-1.0-INRIA-2004","radvd","Rdisc","RHeCos-1.1","RPL-1.1","RPL-1.5","RPSL-1.0","RSA-MD","RSCPL","Ruby","Ruby-pty","SAX-PD","SAX-PD-2.0","Saxpath","SCEA","SchemeReport","Sendmail","Sendmail-8.23","Sendmail-Open-Source-1.1","SGI-B-1.0","SGI-B-1.1","SGI-B-2.0","SGI-OpenGL","SGP4","SHL-0.5","SHL-0.51","SimPL-2.0","SISSL","SISSL-1.2","SL","Sleepycat","SMAIL-GPL","SMLNJ","SMPPL","SNIA","snprintf","SOFA","softSurfer","Soundex","Spencer-86","Spencer-94","Spencer-99","SPL-1.0","ssh-keyscan","SSH-OpenSSH","SSH-short","SSLeay-standalone","SSPL-1.0","StandardML-NJ","SugarCRM-1.1.3","SUL-1.0","Sun-PPP","Sun-PPP-2000","SunPro","SWL","swrule","Symlinks","TAPR-OHL-1.0","TCL","TCP-wrappers","TermReadKey","TGPPL-1.0","ThirdEye","threeparttable","TMate","TORQUE-1.1","TOSL","TPDL","TPL-1.0","TrustedQSL","TTWL","TTYP0","TU-Berlin-1.0","TU-Berlin-2.0","Ubuntu-font-1.0","UCAR","UCL-1.0","ulem","UMich-Merit","Unicode-3.0","Unicode-DFS-2015","Unicode-DFS-2016","Unicode-TOU","UnixCrypt","Unlicense","Unlicense-libtelnet","Unlicense-libwhirlpool","UPL-1.0","URT-RLE","Vim","VOSTROM","VSL-1.0","W3C","W3C-19980720","W3C-20150513","w3m","Watcom-1.0","Widget-Workshop","Wsuipa","WTFPL","wwl","wxWindows","X11","X11-distribute-modifications-variant","X11-swapped","Xdebug-1.03","Xerox","Xfig","XFree86-1.1","xinetd","xkeyboard-config-Zinoviev","xlock","Xnet","xpp","XSkat","xzoom","YPL-1.0","YPL-1.1","Zed","Zeeff","Zend-2.0","Zimbra-1.3","Zimbra-1.4","Zlib","zlib-acknowledgement","ZPL-1.1","ZPL-2.0","ZPL-2.1","389-exception","Asterisk-exception","Asterisk-linking-protocols-exception","Autoconf-exception-2.0","Autoconf-exception-3.0","Autoconf-exception-generic","Autoconf-exception-generic-3.0","Autoconf-exception-macro","Bison-exception-1.24","Bison-exception-2.2","Bootloader-exception","CGAL-linking-exception","Classpath-exception-2.0","CLISP-exception-2.0","cryptsetup-OpenSSL-exception","Digia-Qt-LGPL-exception-1.1","DigiRule-FOSS-exception","eCos-exception-2.0","erlang-otp-linking-exception","Fawkes-Runtime-exception","FLTK-exception","fmt-exception","Font-exception-2.0","freertos-exception-2.0","GCC-exception-2.0","GCC-exception-2.0-note","GCC-exception-3.1","Gmsh-exception","GNAT-exception","GNOME-examples-exception","GNU-compiler-exception","gnu-javamail-exception","GPL-3.0-389-ds-base-exception","GPL-3.0-interface-exception","GPL-3.0-linking-exception","GPL-3.0-linking-source-exception","GPL-CC-1.0","GStreamer-exception-2005","GStreamer-exception-2008","harbour-exception","i2p-gpl-java-exception","Independent-modules-exception","KiCad-libraries-exception","LGPL-3.0-linking-exception","libpri-OpenH323-exception","Libtool-exception","Linux-syscall-note","LLGPL","LLVM-exception","LZMA-exception","mif-exception","mxml-exception","Nokia-Qt-exception-1.1","OCaml-LGPL-linking-exception","OCCT-exception-1.0","OpenJDK-assembly-exception-1.0","openvpn-openssl-exception","PCRE2-exception","polyparse-exception","PS-or-PDF-font-exception-20170817","QPL-1.0-INRIA-2004-exception","Qt-GPL-exception-1.0","Qt-LGPL-exception-1.1","Qwt-exception-1.0","romic-exception","RRDtool-FLOSS-exception-2.0","SANE-exception","SHL-2.0","SHL-2.1","stunnel-exception","SWI-exception","Swift-exception","Texinfo-exception","u-boot-exception-2.0","UBDL-exception","Universal-FOSS-exception-1.0","vsftpd-openssl-exception","WxWindows-exception-3.1","x11vnc-openssl-exception"]}});var Z8e=Je(nne=>{"use strict";V();G();U();z();var PPr=nne&&nne.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(nne,"__esModule",{value:!0});nne.isSupportedSpdxId=MPr;nne.fixupSpdxId=kPr;nne.isValidSpdxLicenseExpression=OPr;var NPr=PPr(bpn()),Epn=Spn(),RPr=new Set(Epn.enum),LPr=Object.freeze(Object.fromEntries(Epn.enum.map(r=>[r.toLowerCase(),r])));function MPr(r){return RPr.has(r)}e(MPr,"isSupportedSpdxId");function kPr(r){return typeof r=="string"&&r.length>0?LPr[r.toLowerCase()]:void 0}e(kPr,"fixupSpdxId");function OPr(r){if(typeof r!="string")return!1;try{(0,NPr.default)(r)}catch{return!1}return!0}e(OPr,"isValidSpdxLicenseExpression")});var rne=Je(tue=>{"use strict";V();G();U();z();Object.defineProperty(tue,"__esModule",{value:!0});tue.Format=tue.Version=void 0;var xpn;(function(r){r.v1dot6="1.6",r.v1dot5="1.5",r.v1dot4="1.4",r.v1dot3="1.3",r.v1dot2="1.2",r.v1dot1="1.1",r.v1dot0="1.0"})(xpn||(tue.Version=xpn={}));var Tpn;(function(r){r.XML="xml",r.JSON="json"})(Tpn||(tue.Format=Tpn={}))});var jyt=Je(e4e=>{"use strict";V();G();U();z();Object.defineProperty(e4e,"__esModule",{value:!0});e4e.JsonSchema=void 0;var Dpn;(function(r){function t(a){return typeof a=="string"&&a.length>0}e(t,"isIriReference"),r.isIriReference=t;function i(a){return typeof a=="string"&&a.length>0}e(i,"isIdnEmail"),r.isIdnEmail=i})(Dpn||(e4e.JsonSchema=Dpn={}))});var Ipn=Je(lf=>{"use strict";V();G();U();z();Object.defineProperty(lf,"__esModule",{value:!0});lf.VulnerabilityAnalysisNormalizer=lf.VulnerabilityAffectedVersionNormalizer=lf.VulnerabilityAffectNormalizer=lf.VulnerabilityCreditsNormalizer=lf.VulnerabilityAdvisoryNormalizer=lf.VulnerabilityRatingNormalizer=lf.VulnerabilityReferenceNormalizer=lf.VulnerabilitySourceNormalizer=lf.VulnerabilityNormalizer=lf.DependencyGraphNormalizer=lf.PropertyNormalizer=lf.AttachmentNormalizer=lf.ExternalReferenceNormalizer=lf.SWIDNormalizer=lf.LicenseNormalizer=lf.ComponentEvidenceNormalizer=lf.ServiceNormalizer=lf.ComponentNormalizer=lf.OrganizationalEntityNormalizer=lf.OrganizationalContactNormalizer=lf.HashNormalizer=lf.ToolsNormalizer=lf.ToolNormalizer=lf.LifecycleNormalizer=lf.MetadataNormalizer=lf.BomNormalizer=lf.Factory=void 0;var FPr=cyt(),iue=U8e(),Vyt=qce(),nue=pyt(),n0e=cq(),BPr=Qbe(),zyt=eue(),Apn=t0e(),WPr=Z8e(),r0e=rne(),rue=jyt(),Uyt=class{static{e(this,"Factory")}#e;constructor(t){this.#e=t}get spec(){return this.#e}makeForBom(){return new t4e(this)}makeForMetadata(){return new n4e(this)}makeForComponent(){return new c4e(this)}makeForService(){return new u4e(this)}makeForComponentEvidence(){return new d4e(this)}makeForLifecycle(){return new r4e(this)}makeForTool(){return new i4e(this)}makeForTools(){return new o4e(this)}makeForOrganizationalContact(){return new s4e(this)}makeForOrganizationalEntity(){return new l4e(this)}makeForHash(){return new a4e(this)}makeForLicense(){return new p4e(this)}makeForSWID(){return new f4e(this)}makeForExternalReference(){return new _4e(this)}makeForAttachment(){return new m4e(this)}makeForProperty(){return new h4e(this)}makeForDependencyGraph(){return new g4e(this)}makeForVulnerability(){return new y4e(this)}makeForVulnerabilitySource(){return new v4e(this)}makeForVulnerabilityReference(){return new b4e(this)}makeForVulnerabilityRating(){return new S4e(this)}makeForVulnerabilityAdvisory(){return new E4e(this)}makeForVulnerabilityCredits(){return new x4e(this)}makeForVulnerabilityAffect(){return new T4e(this)}makeForVulnerabilityAffectedVersion(){return new D4e(this)}makeForVulnerabilityAnalysis(){return new A4e(this)}};lf.Factory=Uyt;var jPr=new Map([[r0e.Version.v1dot6,"http://cyclonedx.org/schema/bom-1.6.schema.json"],[r0e.Version.v1dot5,"http://cyclonedx.org/schema/bom-1.5.schema.json"],[r0e.Version.v1dot4,"http://cyclonedx.org/schema/bom-1.4.schema.json"],[r0e.Version.v1dot3,"http://cyclonedx.org/schema/bom-1.3a.schema.json"],[r0e.Version.v1dot2,"http://cyclonedx.org/schema/bom-1.2b.schema.json"]]),Wb=class{static{e(this,"BaseJsonNormalizer")}_factory;constructor(t){this._factory=t}get factory(){return this._factory}},t4e=class extends Wb{static{e(this,"BomNormalizer")}normalize(t,i){return{$schema:jPr.get(this._factory.spec.version),bomFormat:"CycloneDX",specVersion:this._factory.spec.version,version:t.version,serialNumber:this.#e(t.serialNumber)?t.serialNumber:void 0,metadata:this._factory.makeForMetadata().normalize(t.metadata,i),components:t.components.size>0?this._factory.makeForComponent().normalizeIterable(t.components,i):[],services:this._factory.spec.supportsServices&&t.services.size>0?this._factory.makeForService().normalizeIterable(t.services,i):void 0,dependencies:this._factory.spec.supportsDependencyGraph?this._factory.makeForDependencyGraph().normalize(t,i):void 0,vulnerabilities:this._factory.spec.supportsVulnerabilities&&t.vulnerabilities.size>0?this._factory.makeForVulnerability().normalizeIterable(t.vulnerabilities,i):void 0}}#e(t){return t!==void 0&&/^urn:uuid:[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/.test(t)}};lf.BomNormalizer=t4e;var n4e=class extends Wb{static{e(this,"MetadataNormalizer")}normalize(t,i){let a=this._factory.makeForOrganizationalEntity();return{timestamp:t.timestamp?.toISOString(),lifecycles:this._factory.spec.supportsMetadataLifecycles&&t.lifecycles.size>0?this._factory.makeForLifecycle().normalizeIterable(t.lifecycles,i):void 0,tools:t.tools.size>0?this._factory.makeForTools().normalize(t.tools,i):void 0,authors:t.authors.size>0?this._factory.makeForOrganizationalContact().normalizeIterable(t.authors,i):void 0,component:t.component===void 0?void 0:this._factory.makeForComponent().normalize(t.component,i),manufacture:t.manufacture===void 0?void 0:a.normalize(t.manufacture,i),supplier:t.supplier===void 0?void 0:a.normalize(t.supplier,i),licenses:this._factory.spec.supportsMetadataLicenses&&t.licenses.size>0?this._factory.makeForLicense().normalizeIterable(t.licenses,i):void 0,properties:this._factory.spec.supportsMetadataProperties&&t.properties.size>0?this._factory.makeForProperty().normalizeIterable(t.properties,i):void 0}}};lf.MetadataNormalizer=n4e;var r4e=class extends Wb{static{e(this,"LifecycleNormalizer")}normalize(t,i){return t instanceof BPr.NamedLifecycle?{name:t.name,description:t.description}:{phase:t}}normalizeIterable(t,i){return(i.sortLists??!1?t.sorted():Array.from(t)).map(a=>this.normalize(a,i))}};lf.LifecycleNormalizer=r4e;var i4e=class extends Wb{static{e(this,"ToolNormalizer")}normalize(t,i){return{vendor:t.vendor||void 0,name:t.name||void 0,version:t.version||void 0,hashes:t.hashes.size>0?this._factory.makeForHash().normalizeIterable(t.hashes,i):void 0,externalReferences:this._factory.spec.supportsToolReferences&&t.externalReferences.size>0?this._factory.makeForExternalReference().normalizeIterable(t.externalReferences,i):void 0}}normalizeIterable(t,i){return(i.sortLists??!1?t.sorted():Array.from(t)).map(a=>this.normalize(a,i))}};lf.ToolNormalizer=i4e;var o4e=class extends Wb{static{e(this,"ToolsNormalizer")}normalize(t,i){return t.tools.size>0||!this._factory.spec.supportsToolsComponentsServices?this._factory.makeForTool().normalizeIterable(new zyt.ToolRepository((0,FPr.chainI)(Array.from(t.components,zyt.Tool.fromComponent),Array.from(t.services,zyt.Tool.fromService),t.tools)),i):{components:t.components.size>0?this._factory.makeForComponent().normalizeIterable(t.components,i):void 0,services:t.services.size>0?this._factory.makeForService().normalizeIterable(t.services,i):void 0}}};lf.ToolsNormalizer=o4e;var a4e=class extends Wb{static{e(this,"HashNormalizer")}normalize([t,i],a){let c=this._factory.spec;return c.supportsHashAlgorithm(t)&&c.supportsHashValue(i)?{alg:t,content:i}:void 0}normalizeIterable(t,i){return(i.sortLists??!1?t.sorted():Array.from(t)).map(a=>this.normalize(a,i)).filter(iue.isNotUndefined)}};lf.HashNormalizer=a4e;var s4e=class extends Wb{static{e(this,"OrganizationalContactNormalizer")}normalize(t,i){return{name:t.name||void 0,email:rue.JsonSchema.isIdnEmail(t.email)?t.email:void 0,phone:t.phone||void 0}}normalizeIterable(t,i){return(i.sortLists??!1?t.sorted():Array.from(t)).map(a=>this.normalize(a,i))}};lf.OrganizationalContactNormalizer=s4e;var l4e=class extends Wb{static{e(this,"OrganizationalEntityNormalizer")}normalize(t,i){let a=Cpn(Array.from(t.url,c=>(0,nue.escapeUri)(c.toString())),i).filter(rue.JsonSchema.isIriReference);return{name:t.name||void 0,url:a.length>0?a:void 0,contact:t.contact.size>0?this._factory.makeForOrganizationalContact().normalizeIterable(t.contact,i):void 0}}normalizeIterable(t,i){return(i.sortLists??!1?t.sorted():Array.from(t)).map(a=>this.normalize(a,i))}};lf.OrganizationalEntityNormalizer=l4e;var c4e=class extends Wb{static{e(this,"ComponentNormalizer")}normalize(t,i){let a=this._factory.spec;if(!a.supportsComponentType(t.type))return;let c=t.version??"";return{type:t.type,name:t.name,group:t.group||void 0,version:c.length>0||a.requiresComponentVersion?c:void 0,"bom-ref":t.bomRef.value||void 0,supplier:t.supplier===void 0?void 0:this._factory.makeForOrganizationalEntity().normalize(t.supplier,i),author:t.author||void 0,publisher:t.publisher||void 0,description:t.description||void 0,scope:t.scope,hashes:t.hashes.size>0?this._factory.makeForHash().normalizeIterable(t.hashes,i):void 0,licenses:t.licenses.size>0?this._factory.makeForLicense().normalizeIterable(t.licenses,i):void 0,copyright:t.copyright?.toString()||void 0,cpe:t.cpe||void 0,purl:t.purl?.toString(),swid:t.swid===void 0?void 0:this._factory.makeForSWID().normalize(t.swid,i),externalReferences:t.externalReferences.size>0?this._factory.makeForExternalReference().normalizeIterable(t.externalReferences,i):void 0,properties:a.supportsProperties(t)&&t.properties.size>0?this._factory.makeForProperty().normalizeIterable(t.properties,i):void 0,components:t.components.size>0?this.normalizeIterable(t.components,i):void 0,evidence:a.supportsComponentEvidence&&t.evidence!==void 0?this._factory.makeForComponentEvidence().normalize(t.evidence,i):void 0}}normalizeIterable(t,i){return(i.sortLists??!1?t.sorted():Array.from(t)).map(a=>this.normalize(a,i)).filter(iue.isNotUndefined)}};lf.ComponentNormalizer=c4e;var u4e=class extends Wb{static{e(this,"ServiceNormalizer")}normalize(t,i){let a=this._factory.spec;return{"bom-ref":t.bomRef.value||void 0,provider:t.provider?this._factory.makeForOrganizationalEntity().normalize(t.provider,i):void 0,group:t.group,name:t.name,version:t.version||void 0,description:t.description||void 0,licenses:t.licenses.size>0?this._factory.makeForLicense().normalizeIterable(t.licenses,i):void 0,externalReferences:t.externalReferences.size>0?this._factory.makeForExternalReference().normalizeIterable(t.externalReferences,i):void 0,services:t.services.size>0?this._factory.makeForService().normalizeIterable(t.services,i):void 0,properties:a.supportsProperties(t)&&t.properties.size>0?this._factory.makeForProperty().normalizeIterable(t.properties,i):void 0}}normalizeIterable(t,i){return(i.sortLists??!1?t.sorted():Array.from(t)).map(a=>this.normalize(a,i))}};lf.ServiceNormalizer=u4e;var d4e=class r extends Wb{static{e(this,"ComponentEvidenceNormalizer")}normalize(t,i){return{licenses:t.licenses.size>0?this._factory.makeForLicense().normalizeIterable(t.licenses,i):void 0,copyright:t.copyright.size>0?i.sortLists?t.copyright.sorted().map(r.#e):Array.from(t.copyright,r.#e):void 0}}static#e(t){return{text:t.toString()}}};lf.ComponentEvidenceNormalizer=d4e;var p4e=class extends Wb{static{e(this,"LicenseNormalizer")}normalize(t,i){switch(!0){case t instanceof n0e.NamedLicense:return this.#e(t,i);case t instanceof n0e.SpdxLicense:return(0,WPr.isSupportedSpdxId)(t.id)?this.#t(t,i):this.#e(new n0e.NamedLicense(t.id,{url:t.url}),i);case t instanceof n0e.LicenseExpression:return this.#n(t);default:throw new TypeError("Unexpected LicenseChoice")}}#e(t,i){let a=(0,nue.escapeUri)(t.url?.toString());return{license:{name:t.name,acknowledgement:this._factory.spec.supportsLicenseAcknowledgement?t.acknowledgement:void 0,text:t.text===void 0?void 0:this._factory.makeForAttachment().normalize(t.text,i),url:rue.JsonSchema.isIriReference(a)?a:void 0}}}#t(t,i){let a=(0,nue.escapeUri)(t.url?.toString());return{license:{id:t.id,acknowledgement:this._factory.spec.supportsLicenseAcknowledgement?t.acknowledgement:void 0,text:t.text===void 0?void 0:this._factory.makeForAttachment().normalize(t.text,i),url:rue.JsonSchema.isIriReference(a)?a:void 0}}}#n(t){return{expression:t.expression,acknowledgement:this._factory.spec.supportsLicenseAcknowledgement?t.acknowledgement:void 0}}normalizeIterable(t,i){let a=i.sortLists??!1?t.sorted():Array.from(t);if(a.length>1){let c=a.filter(d=>d instanceof n0e.LicenseExpression);if(c.length>0)return[this.#n(c[0])]}return a.map(c=>this.normalize(c,i))}};lf.LicenseNormalizer=p4e;var f4e=class extends Wb{static{e(this,"SWIDNormalizer")}normalize(t,i){let a=(0,nue.escapeUri)(t.url?.toString());return{tagId:t.tagId,name:t.name,version:t.version||void 0,tagVersion:t.tagVersion,patch:t.patch,text:t.text===void 0?void 0:this._factory.makeForAttachment().normalize(t.text,i),url:rue.JsonSchema.isIriReference(a)?a:void 0}}};lf.SWIDNormalizer=f4e;var _4e=class extends Wb{static{e(this,"ExternalReferenceNormalizer")}normalize(t,i){return this._factory.spec.supportsExternalReferenceType(t.type)?{url:(0,nue.escapeUri)(t.url.toString()),type:t.type,hashes:this._factory.spec.supportsExternalReferenceHashes&&t.hashes.size>0?this._factory.makeForHash().normalizeIterable(t.hashes,i):void 0,comment:t.comment||void 0}:void 0}normalizeIterable(t,i){return(i.sortLists??!1?t.sorted():Array.from(t)).map(a=>this.normalize(a,i)).filter(iue.isNotUndefined)}};lf.ExternalReferenceNormalizer=_4e;var m4e=class extends Wb{static{e(this,"AttachmentNormalizer")}normalize(t,i){return{content:t.content.toString(),contentType:t.contentType||void 0,encoding:t.encoding}}};lf.AttachmentNormalizer=m4e;var h4e=class extends Wb{static{e(this,"PropertyNormalizer")}normalize(t,i){return{name:t.name,value:t.value}}normalizeIterable(t,i){return(i.sortLists??!1?t.sorted():Array.from(t)).map(a=>this.normalize(a,i))}};lf.PropertyNormalizer=h4e;var g4e=class extends Wb{static{e(this,"DependencyGraphNormalizer")}normalize(t,i){let a=new Map;if(t.metadata.component!==void 0){a.set(t.metadata.component.bomRef,t.metadata.component.dependencies);for(let d of t.metadata.component.components[Vyt.treeIteratorSymbol]())a.set(d.bomRef,d.dependencies)}for(let d of t.components[Vyt.treeIteratorSymbol]())a.set(d.bomRef,d.dependencies);for(let d of t.services[Vyt.treeIteratorSymbol]())a.set(d.bomRef,d.dependencies);let c=[];for(let[d,f]of a){let g=this.#e(d,f,a,i);(0,iue.isNotUndefined)(g)&&c.push(g)}return(i.sortLists??!1)&&c.sort(({ref:d},{ref:f})=>d.localeCompare(f)),c}#e(t,i,a,c){let d=t.toString();if(d.length===0)return;let f=Cpn(Array.from(i).filter(g=>a.has(g)&&g!==t),c).filter(g=>g.length>0);return{ref:d,dependsOn:f.length>0?f:void 0}}};lf.DependencyGraphNormalizer=g4e;var y4e=class extends Wb{static{e(this,"VulnerabilityNormalizer")}normalize(t,i){return{"bom-ref":t.bomRef.value||void 0,id:t.id||void 0,source:t.source===void 0?void 0:this._factory.makeForVulnerabilitySource().normalize(t.source,i),references:t.references.size>0?this._factory.makeForVulnerabilityReference().normalizeIterable(t.references,i):void 0,ratings:t.ratings.size>0?this._factory.makeForVulnerabilityRating().normalizeIterable(t.ratings,i):void 0,cwes:t.cwes.size>0?i.sortLists??!1?t.cwes.sorted():Array.from(t.cwes):void 0,description:t.description,detail:t.detail,recommendation:t.recommendation,advisories:t.advisories.size>0?this._factory.makeForVulnerabilityAdvisory().normalizeIterable(t.advisories,i):void 0,created:t.created?.toISOString(),published:t.published?.toISOString(),updated:t.updated?.toISOString(),credits:t.credits===void 0?void 0:this._factory.makeForVulnerabilityCredits().normalize(t.credits,i),tools:t.tools.size>0?this._factory.makeForTools().normalize(t.tools,i):void 0,analysis:t.analysis===void 0?void 0:this._factory.makeForVulnerabilityAnalysis().normalize(t.analysis,i),affects:t.affects.size>0?this._factory.makeForVulnerabilityAffect().normalizeIterable(t.affects,i):void 0,properties:t.properties.size>0?this._factory.makeForProperty().normalizeIterable(t.properties,i):void 0}}normalizeIterable(t,i){return(i.sortLists??!1?t.sorted():Array.from(t)).map(a=>this.normalize(a,i))}};lf.VulnerabilityNormalizer=y4e;var v4e=class extends Wb{static{e(this,"VulnerabilitySourceNormalizer")}normalize(t,i){return{name:t.name,url:t.url?.toString()}}};lf.VulnerabilitySourceNormalizer=v4e;var b4e=class extends Wb{static{e(this,"VulnerabilityReferenceNormalizer")}normalize(t,i){return{id:t.id,source:this._factory.makeForVulnerabilitySource().normalize(t.source,i)}}normalizeIterable(t,i){return(i.sortLists??!1?t.sorted():Array.from(t)).map(a=>this.normalize(a,i))}};lf.VulnerabilityReferenceNormalizer=b4e;var S4e=class extends Wb{static{e(this,"VulnerabilityRatingNormalizer")}normalize(t,i){return{source:t.source===void 0?void 0:this._factory.makeForVulnerabilitySource().normalize(t.source,i),score:t.score,severity:t.severity,method:this._factory.spec.supportsVulnerabilityRatingMethod(t.method)?t.method:void 0,vector:t.vector,justification:t.justification}}normalizeIterable(t,i){return(i.sortLists??!1?t.sorted():Array.from(t)).map(a=>this.normalize(a,i))}};lf.VulnerabilityRatingNormalizer=S4e;var E4e=class extends Wb{static{e(this,"VulnerabilityAdvisoryNormalizer")}normalize(t,i){let a=(0,nue.escapeUri)(t.url.toString());if(rue.JsonSchema.isIriReference(a))return{title:t.title,url:a}}normalizeIterable(t,i){return(i.sortLists??!1?t.sorted():Array.from(t)).map(a=>this.normalize(a,i)).filter(iue.isNotUndefined)}};lf.VulnerabilityAdvisoryNormalizer=E4e;var x4e=class extends Wb{static{e(this,"VulnerabilityCreditsNormalizer")}normalize(t,i){return{organizations:t.organizations.size>0?this._factory.makeForOrganizationalEntity().normalizeIterable(t.organizations,i):void 0,individuals:t.individuals.size>0?this._factory.makeForOrganizationalContact().normalizeIterable(t.individuals,i):void 0}}};lf.VulnerabilityCreditsNormalizer=x4e;var T4e=class extends Wb{static{e(this,"VulnerabilityAffectNormalizer")}normalize(t,i){return{ref:t.ref.toString(),versions:t.versions.size>0?this._factory.makeForVulnerabilityAffectedVersion().normalizeIterable(t.versions,i):void 0}}normalizeIterable(t,i){return(i.sortLists??!1?t.sorted():Array.from(t)).map(a=>this.normalize(a,i))}};lf.VulnerabilityAffectNormalizer=T4e;var D4e=class extends Wb{static{e(this,"VulnerabilityAffectedVersionNormalizer")}normalize(t,i){switch(!0){case t instanceof Apn.AffectedSingleVersion:return this.#e(t);case t instanceof Apn.AffectedVersionRange:return this.#t(t);default:throw new TypeError("Unexpected Vulnerability AffectedVersion")}}#e(t){return t.version.length<1?void 0:{version:t.version.substring(0,1024),status:t.status}}#t(t){return t.range.length<1?void 0:{range:t.range.substring(0,1024),status:t.status}}normalizeIterable(t,i){return(i.sortLists??!1?t.sorted():Array.from(t)).map(a=>this.normalize(a,i)).filter(iue.isNotUndefined)}};lf.VulnerabilityAffectedVersionNormalizer=D4e;var A4e=class extends Wb{static{e(this,"VulnerabilityAnalysisNormalizer")}normalize(t,i){return{state:t.state,justification:t.justification,response:t.response.size>0?i.sortLists??!1?t.response.sorted():Array.from(t.response):void 0,detail:t.detail}}};lf.VulnerabilityAnalysisNormalizer=A4e;function Cpn(r,t){let i=Array.from(r,a=>a.toString());return(t.sortLists??!1)&&i.sort((a,c)=>a.localeCompare(c)),i}e(Cpn,"normalizeStringableIter")});var Ppn=Je(y8=>{"use strict";V();G();U();z();var VPr=y8&&y8.__createBinding||(Object.create?function(r,t,i,a){a===void 0&&(a=i);var c=Object.getOwnPropertyDescriptor(t,i);(!c||("get"in c?!t.__esModule:c.writable||c.configurable))&&(c={enumerable:!0,get:e(function(){return t[i]},"get")}),Object.defineProperty(r,a,c)}:function(r,t,i,a){a===void 0&&(a=i),r[a]=t[i]}),zPr=y8&&y8.__setModuleDefault||(Object.create?function(r,t){Object.defineProperty(r,"default",{enumerable:!0,value:t})}:function(r,t){r.default=t}),wpn=y8&&y8.__importStar||function(){var r=e(function(t){return r=Object.getOwnPropertyNames||function(i){var a=[];for(var c in i)Object.prototype.hasOwnProperty.call(i,c)&&(a[a.length]=c);return a},r(t)},"ownKeys");return function(t){if(t&&t.__esModule)return t;var i={};if(t!=null)for(var a=r(t),c=0;c<a.length;c++)a[c]!=="default"&&VPr(i,t,a[c]);return zPr(i,t),i}}();Object.defineProperty(y8,"__esModule",{value:!0});y8.Types=y8.Normalize=void 0;y8.Normalize=wpn(Ipn());y8.Types=wpn(jyt())});var I4e=Je(C4e=>{"use strict";V();G();U();z();Object.defineProperty(C4e,"__esModule",{value:!0});C4e.UnsupportedFormatError=void 0;var Gyt=class extends Error{static{e(this,"UnsupportedFormatError")}};C4e.UnsupportedFormatError=Gyt});var Npn=Je(w4e=>{"use strict";V();G();U();z();Object.defineProperty(w4e,"__esModule",{value:!0});w4e.JsonSerializer=void 0;var UPr=rne(),GPr=I4e(),qPr=z8e(),qyt=class extends qPr.BaseSerializer{static{e(this,"JsonSerializer")}#e;constructor(t){if(!t.spec.supportsFormat(UPr.Format.JSON))throw new GPr.UnsupportedFormatError("Spec does not support JSON format.");super(),this.#e=t}get normalizerFactory(){return this.#e}_normalize(t,i={}){return this.#e.makeForBom().normalize(t,i)}_serialize(t,{space:i}={}){return JSON.stringify(t,null,i)}};w4e.JsonSerializer=qyt});var Kyt=Je(P4e=>{"use strict";V();G();U();z();Object.defineProperty(P4e,"__esModule",{value:!0});P4e.Attachment=void 0;var Hyt=class{static{e(this,"Attachment")}contentType;content;encoding;constructor(t,i={}){this.contentType=i.contentType,this.content=t,this.encoding=i.encoding}};P4e.Attachment=Hyt});var N4e=Je(i0e=>{"use strict";V();G();U();z();Object.defineProperty(i0e,"__esModule",{value:!0});i0e.isInteger=Jyt;i0e.isNonNegativeInteger=HPr;i0e.isPositiveInteger=KPr;function Jyt(r){return Number.isInteger(r)}e(Jyt,"isInteger");function HPr(r){return Jyt(r)&&r>=0}e(HPr,"isNonNegativeInteger");function KPr(r){return Jyt(r)&&r>0}e(KPr,"isPositiveInteger")});var o0e=Je(oue=>{"use strict";V();G();U();z();Object.defineProperty(oue,"__esModule",{value:!0});oue.OrganizationalContactRepository=oue.OrganizationalContact=void 0;var JPr=iP(),Xyt=class{static{e(this,"OrganizationalContact")}name;email;phone;constructor(t={}){this.name=t.name,this.email=t.email,this.phone=t.phone}compare(t){return(this.name??"").localeCompare(t.name??"")||(this.email??"").localeCompare(t.email??"")||(this.phone??"").localeCompare(t.phone??"")}};oue.OrganizationalContact=Xyt;var $yt=class extends JPr.SortableComparables{static{e(this,"OrganizationalContactRepository")}};oue.OrganizationalContactRepository=$yt});var Qyt=Je(R4e=>{"use strict";V();G();U();z();Object.defineProperty(R4e,"__esModule",{value:!0});R4e.Metadata=void 0;var XPr=cq(),$Pr=Qbe(),YPr=o0e(),QPr=Qce(),ZPr=eue(),Yyt=class{static{e(this,"Metadata")}timestamp;lifecycles;tools;authors;component;manufacture;supplier;licenses;properties;constructor(t={}){this.timestamp=t.timestamp,this.lifecycles=t.lifecycles??new $Pr.LifecycleRepository,this.tools=t.tools??new ZPr.Tools,this.authors=t.authors??new YPr.OrganizationalContactRepository,this.component=t.component,this.manufacture=t.manufacture,this.supplier=t.supplier,this.licenses=t.licenses??new XPr.LicenseRepository,this.properties=t.properties??new QPr.PropertyRepository}};R4e.Metadata=Yyt});var Rpn=Je(a0e=>{"use strict";V();G();U();z();Object.defineProperty(a0e,"__esModule",{value:!0});a0e.CweRepository=void 0;a0e.isCWE=nNr;var eNr=iP(),tNr=N4e();function nNr(r){return(0,tNr.isPositiveInteger)(r)}e(nNr,"isCWE");var Zyt=class extends eNr.SortableNumbers{static{e(this,"CweRepository")}};a0e.CweRepository=Zyt});var nvt=Je(aue=>{"use strict";V();G();U();z();Object.defineProperty(aue,"__esModule",{value:!0});aue.AdvisoryRepository=aue.Advisory=void 0;var rNr=iP(),evt=class{static{e(this,"Advisory")}title;url;constructor(t,i={}){this.url=t,this.title=i.title}compare(t){return this.url.toString().localeCompare(t.url.toString())||(this.title??"").localeCompare(t.title??"")}};aue.Advisory=evt;var tvt=class extends rNr.SortableComparables{static{e(this,"AdvisoryRepository")}};aue.AdvisoryRepository=tvt});var ovt=Je(sue=>{"use strict";V();G();U();z();Object.defineProperty(sue,"__esModule",{value:!0});sue.RatingRepository=sue.Rating=void 0;var iNr=iP(),rvt=class{static{e(this,"Rating")}source;score;severity;method;vector;justification;constructor(t={}){this.source=t.source,this.score=t.score,this.severity=t.severity,this.method=t.method,this.vector=t.vector,this.justification=t.justification}compare(t){return(this.score??0)-(t.score??0)||(this.vector??"").localeCompare(t.vector??"")||(this.justification??"").localeCompare(t.justification??"")||(this.severity??"").localeCompare(t.severity??"")||(this.method??"").localeCompare(t.method??"")||(this.source&&t.source?this.source.compare(t.source):0)}};sue.Rating=rvt;var ivt=class extends iNr.SortableComparables{static{e(this,"RatingRepository")}};sue.RatingRepository=ivt});var lvt=Je(lue=>{"use strict";V();G();U();z();Object.defineProperty(lue,"__esModule",{value:!0});lue.ReferenceRepository=lue.Reference=void 0;var oNr=iP(),avt=class{static{e(this,"Reference")}id;source;constructor(t,i){this.id=t,this.source=i}compare(t){return this.id.localeCompare(t.id)||this.source.compare(t.source)}};lue.Reference=avt;var svt=class extends oNr.SortableComparables{static{e(this,"ReferenceRepository")}};lue.ReferenceRepository=svt});var dvt=Je(cue=>{"use strict";V();G();U();z();Object.defineProperty(cue,"__esModule",{value:!0});cue.VulnerabilityRepository=cue.Vulnerability=void 0;var aNr=iP(),sNr=Rpn(),lNr=Zbe(),cNr=Qce(),uNr=eue(),dNr=nvt(),pNr=t0e(),fNr=ovt(),_Nr=lvt(),cvt=class{static{e(this,"Vulnerability")}#e;id;source;references;ratings;cwes;description;detail;recommendation;advisories;created;published;updated;credits;tools;analysis;affects;properties;constructor(t={}){this.#e=new lNr.BomRef(t.bomRef),this.id=t.id,this.source=t.source,this.references=t.references??new _Nr.ReferenceRepository,this.ratings=t.ratings??new fNr.RatingRepository,this.cwes=t.cwes??new sNr.CweRepository,this.description=t.description,this.detail=t.detail,this.recommendation=t.recommendation,this.advisories=t.advisories??new dNr.AdvisoryRepository,this.created=t.created,this.published=t.published,this.updated=t.updated,this.credits=t.credits,this.tools=t.tools??new uNr.Tools,this.analysis=t.analysis,this.affects=t.affects??new pNr.AffectRepository,this.properties=t.properties??new cNr.PropertyRepository}get bomRef(){return this.#e}compare(t){let i=this.bomRef.compare(t.bomRef);return i!==0?i:(this.id??"").localeCompare(t.id??"")||(this.created?.getTime()??0)-(t.created?.getTime()??0)||(this.published?.getTime()??0)-(t.published?.getTime()??0)||(this.updated?.getTime()??0)-(t.updated?.getTime()??0)||this.ratings.compare(t.ratings)||this.cwes.compare(t.cwes)||(this.description??"").localeCompare(t.description??"")||(this.detail??"").localeCompare(t.detail??"")||(this.recommendation??"").localeCompare(t.recommendation??"")||(this.source&&t.source?this.source.compare(t.source):0)||this.properties.compare(t.properties)}};cue.Vulnerability=cvt;var uvt=class extends aNr.SortableComparables{static{e(this,"VulnerabilityRepository")}};cue.VulnerabilityRepository=uvt});var Lpn=Je(L4e=>{"use strict";V();G();U();z();Object.defineProperty(L4e,"__esModule",{value:!0});L4e.Bom=void 0;var mNr=N4e(),hNr=e0e(),gNr=Qyt(),yNr=$8e(),vNr=dvt(),pvt=class{static{e(this,"Bom")}metadata;components;services;vulnerabilities;#e=1;#t;constructor(t={}){this.metadata=t.metadata??new gNr.Metadata,this.components=t.components??new hNr.ComponentRepository,this.services=t.services??new yNr.ServiceRepository,this.version=t.version??this.version,this.vulnerabilities=t.vulnerabilities??new vNr.VulnerabilityRepository,this.serialNumber=t.serialNumber}get version(){return this.#e}set version(t){if(!(0,mNr.isPositiveInteger)(t))throw new TypeError("Not PositiveInteger");this.#e=t}get serialNumber(){return this.#t}set serialNumber(t){this.#t=t===""?void 0:t}};L4e.Bom=pvt});var Mpn=Je(uue=>{"use strict";V();G();U();z();Object.defineProperty(uue,"__esModule",{value:!0});uue.BomLinkElement=uue.BomLinkDocument=void 0;var M4e=class{static{e(this,"BomLinkBase")}#e;constructor(t){this.value=t}get value(){return this.#e}set value(t){if(!this._isValid(t))throw new RangeError("invalid value");this.#e=t}compare(t){return this.toString().localeCompare(t.toString())}toString(){return this.value}},fvt=class r extends M4e{static{e(this,"BomLinkDocument")}static#e=/^urn:cdx:[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}\/[1-9][0-9]*$/;static isValid(t){return typeof t=="string"&&this.#e.test(t)}_isValid(t){return r.isValid(t)}};uue.BomLinkDocument=fvt;var _vt=class r extends M4e{static{e(this,"BomLinkElement")}static#e=/^urn:cdx:[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}\/[1-9][0-9]*#.+$/;static isValid(t){return typeof t=="string"&&this.#e.test(t)}_isValid(t){return r.isValid(t)}};uue.BomLinkElement=_vt});var yvt=Je(due=>{"use strict";V();G();U();z();Object.defineProperty(due,"__esModule",{value:!0});due.OrganizationalEntityRepository=due.OrganizationalEntity=void 0;var mvt=iP(),bNr=o0e(),hvt=class{static{e(this,"OrganizationalEntity")}name;url;contact;constructor(t={}){this.name=t.name,this.url=t.url??new Set,this.contact=t.contact??new bNr.OrganizationalContactRepository}compare(t){return(this.name??"").localeCompare(t.name??"")||this.contact.compare(t.contact)||new mvt.SortableStringables(this.url).compare(new mvt.SortableStringables(t.url))}};due.OrganizationalEntity=hvt;var gvt=class extends mvt.SortableComparables{static{e(this,"OrganizationalEntityRepository")}};due.OrganizationalEntityRepository=gvt});var kpn=Je(k4e=>{"use strict";V();G();U();z();Object.defineProperty(k4e,"__esModule",{value:!0});k4e.SWID=void 0;var SNr=N4e(),vvt=class{static{e(this,"SWID")}tagId;name;version;patch;text;url;#e;constructor(t,i,a={}){this.tagId=t,this.name=i,this.version=a.version,this.patch=a.patch,this.text=a.text,this.url=a.url,this.tagVersion=a.tagVersion}get tagVersion(){return this.#e}set tagVersion(t){if(t!==void 0&&!(0,SNr.isNonNegativeInteger)(t))throw new TypeError("Not NonNegativeInteger nor undefined");this.#e=t}};k4e.SWID=vvt});var Svt=Je(pue=>{"use strict";V();G();U();z();Object.defineProperty(pue,"__esModule",{value:!0});pue.AnalysisResponseRepository=pue.AnalysisResponse=void 0;var ENr=iP(),Opn;(function(r){r.CanNotFix="can_not_fix",r.WillNotFix="will_not_fix",r.Update="update",r.Rollback="rollback",r.WorkaroundAvailable="workaround_available"})(Opn||(pue.AnalysisResponse=Opn={}));var bvt=class extends ENr.SortableStringables{static{e(this,"AnalysisResponseRepository")}};pue.AnalysisResponseRepository=bvt});var Fpn=Je(O4e=>{"use strict";V();G();U();z();Object.defineProperty(O4e,"__esModule",{value:!0});O4e.Analysis=void 0;var xNr=Svt(),Evt=class{static{e(this,"Analysis")}state;justification;response;detail;constructor(t={}){this.state=t.state,this.justification=t.justification,this.response=t.response??new xNr.AnalysisResponseRepository,this.detail=t.detail}};O4e.Analysis=Evt});var Bpn=Je(F4e=>{"use strict";V();G();U();z();Object.defineProperty(F4e,"__esModule",{value:!0});F4e.Credits=void 0;var TNr=o0e(),DNr=yvt(),xvt=class{static{e(this,"Credits")}organizations;individuals;constructor(t={}){this.organizations=t.organizations??new DNr.OrganizationalEntityRepository,this.individuals=t.individuals??new TNr.OrganizationalContactRepository}};F4e.Credits=xvt});var Wpn=Je(B4e=>{"use strict";V();G();U();z();Object.defineProperty(B4e,"__esModule",{value:!0});B4e.Source=void 0;var Tvt=class{static{e(this,"Source")}name;url;constructor(t={}){this.name=t.name,this.url=t.url}compare(t){return(this.url?.toString()??"").localeCompare(t.url?.toString()??"")||(this.name??"").localeCompare(t.name??"")}};B4e.Source=Tvt});var jpn=Je(uM=>{"use strict";V();G();U();z();var ANr=uM&&uM.__createBinding||(Object.create?function(r,t,i,a){a===void 0&&(a=i);var c=Object.getOwnPropertyDescriptor(t,i);(!c||("get"in c?!t.__esModule:c.writable||c.configurable))&&(c={enumerable:!0,get:e(function(){return t[i]},"get")}),Object.defineProperty(r,a,c)}:function(r,t,i,a){a===void 0&&(a=i),r[a]=t[i]}),_$=uM&&uM.__exportStar||function(r,t){for(var i in r)i!=="default"&&!Object.prototype.hasOwnProperty.call(t,i)&&ANr(t,r,i)};Object.defineProperty(uM,"__esModule",{value:!0});_$(nvt(),uM);_$(t0e(),uM);_$(Fpn(),uM);_$(Bpn(),uM);_$(ovt(),uM);_$(lvt(),uM);_$(Wpn(),uM);_$(dvt(),uM)});var W4e=Je(cb=>{"use strict";V();G();U();z();var Vpn=cb&&cb.__createBinding||(Object.create?function(r,t,i,a){a===void 0&&(a=i);var c=Object.getOwnPropertyDescriptor(t,i);(!c||("get"in c?!t.__esModule:c.writable||c.configurable))&&(c={enumerable:!0,get:e(function(){return t[i]},"get")}),Object.defineProperty(r,a,c)}:function(r,t,i,a){a===void 0&&(a=i),r[a]=t[i]}),CNr=cb&&cb.__setModuleDefault||(Object.create?function(r,t){Object.defineProperty(r,"default",{enumerable:!0,value:t})}:function(r,t){r.default=t}),B2=cb&&cb.__exportStar||function(r,t){for(var i in r)i!=="default"&&!Object.prototype.hasOwnProperty.call(t,i)&&Vpn(t,r,i)},INr=cb&&cb.__importStar||function(){var r=e(function(t){return r=Object.getOwnPropertyNames||function(i){var a=[];for(var c in i)Object.prototype.hasOwnProperty.call(i,c)&&(a[a.length]=c);return a},r(t)},"ownKeys");return function(t){if(t&&t.__esModule)return t;var i={};if(t!=null)for(var a=r(t),c=0;c<a.length;c++)a[c]!=="default"&&Vpn(i,t,a[c]);return CNr(i,t),i}}();Object.defineProperty(cb,"__esModule",{value:!0});cb.Vulnerability=void 0;B2(Kyt(),cb);B2(Lpn(),cb);B2(Mpn(),cb);B2(Zbe(),cb);B2(e0e(),cb);B2(Dyt(),cb);B2(tne(),cb);B2(Xce(),cb);B2(cq(),cb);B2(Qbe(),cb);B2(Qyt(),cb);B2(o0e(),cb);B2(yvt(),cb);B2(Qce(),cb);B2($8e(),cb);B2(kpn(),cb);B2(eue(),cb);cb.Vulnerability=INr(jpn())});var Upn=Je(j4e=>{"use strict";V();G();U();z();Object.defineProperty(j4e,"__esModule",{value:!0});j4e.normalizedString=zpn;j4e.token=LNr;var wNr=/\r\n|\t|\n|\r/g,PNr=" ";function zpn(r){return r.replace(wNr,PNr)}e(zpn,"normalizedString");var NNr=/ {2,}/g,RNr=" ";function LNr(r){return zpn(r).trim().replace(NNr,RNr)}e(LNr,"token")});var Dvt=Je(V4e=>{"use strict";V();G();U();z();Object.defineProperty(V4e,"__esModule",{value:!0});V4e.XmlSchema=void 0;var Gpn;(function(r){let t=/^[a-z][a-z0-9+\-.]*$/i;function i(a){if(typeof a!="string"||a.length===0)return!1;let c=a.indexOf("#"),d=a;if(c>=0){if(a.includes("#",c+1))return!1;d=a.slice(void 0,c)}let f=d.indexOf(":");return!(f>=0&&!t.test(d.slice(void 0,f)))}e(i,"isAnyURI"),r.isAnyURI=i})(Gpn||(V4e.XmlSchema=Gpn={}))});var Kpn=Je(cf=>{"use strict";V();G();U();z();Object.defineProperty(cf,"__esModule",{value:!0});cf.VulnerabilityAffectedVersionNormalizer=cf.VulnerabilityAffectNormalizer=cf.VulnerabilityAnalysisNormalizer=cf.VulnerabilityCreditsNormalizer=cf.VulnerabilityAdvisoryNormalizer=cf.VulnerabilityRatingNormalizer=cf.VulnerabilityReferenceNormalizer=cf.VulnerabilitySourceNormalizer=cf.VulnerabilityNormalizer=cf.DependencyGraphNormalizer=cf.PropertyNormalizer=cf.AttachmentNormalizer=cf.ExternalReferenceNormalizer=cf.SWIDNormalizer=cf.LicenseNormalizer=cf.ComponentEvidenceNormalizer=cf.ServiceNormalizer=cf.ComponentNormalizer=cf.OrganizationalEntityNormalizer=cf.OrganizationalContactNormalizer=cf.HashNormalizer=cf.ToolsNormalizer=cf.ToolNormalizer=cf.LifecycleNormalizer=cf.MetadataNormalizer=cf.BomNormalizer=cf.Factory=void 0;var MNr=cyt(),v0=U8e(),Avt=qce(),one=pyt(),Cvt=W4e(),s0e=cq(),kNr=Qbe(),qpn=t0e(),ONr=Z8e(),ine=rne(),ub=Upn(),ane=Dvt(),Ivt=class{static{e(this,"Factory")}#e;constructor(t){this.#e=t}get spec(){return this.#e}makeForBom(){return new U4e(this)}makeForMetadata(){return new G4e(this)}makeForLifecycle(){return new q4e(this)}makeForComponent(){return new Y4e(this)}makeForService(){return new Q4e(this)}makeForComponentEvidence(){return new Z4e(this)}makeForTool(){return new H4e(this)}makeForTools(){return new K4e(this)}makeForOrganizationalContact(){return new X4e(this)}makeForOrganizationalEntity(){return new $4e(this)}makeForHash(){return new J4e(this)}makeForLicense(){return new e7e(this)}makeForSWID(){return new t7e(this)}makeForExternalReference(){return new n7e(this)}makeForAttachment(){return new r7e(this)}makeForProperty(){return new i7e(this)}makeForDependencyGraph(){return new o7e(this)}makeForVulnerability(){return new a7e(this)}makeForVulnerabilitySource(){return new s7e(this)}makeForVulnerabilityReference(){return new l7e(this)}makeForVulnerabilityRating(){return new c7e(this)}makeForVulnerabilityAdvisory(){return new u7e(this)}makeForVulnerabilityCredits(){return new d7e(this)}makeForVulnerabilityAffect(){return new f7e(this)}makeForVulnerabilityAffectedVersion(){return new _7e(this)}makeForVulnerabilityAnalysis(){return new p7e(this)}};cf.Factory=Ivt;var FNr=new Map([[ine.Version.v1dot6,"http://cyclonedx.org/schema/bom/1.6"],[ine.Version.v1dot5,"http://cyclonedx.org/schema/bom/1.5"],[ine.Version.v1dot4,"http://cyclonedx.org/schema/bom/1.4"],[ine.Version.v1dot3,"http://cyclonedx.org/schema/bom/1.3"],[ine.Version.v1dot2,"http://cyclonedx.org/schema/bom/1.2"],[ine.Version.v1dot1,"http://cyclonedx.org/schema/bom/1.1"],[ine.Version.v1dot0,"http://cyclonedx.org/schema/bom/1.0"]]),jb=class{static{e(this,"BaseXmlNormalizer")}_factory;constructor(t){this._factory=t}get factory(){return this._factory}},U4e=class extends jb{static{e(this,"BomNormalizer")}normalize(t,i){let a={type:"element",name:"components",children:t.components.size>0?this._factory.makeForComponent().normalizeIterable(t.components,i,"component"):void 0},c=this._factory.spec.supportsServices&&t.services.size>0?{type:"element",name:"services",children:this._factory.makeForService().normalizeIterable(t.services,i,"service")}:void 0,d=this._factory.spec.supportsVulnerabilities&&t.vulnerabilities.size>0?{type:"element",name:"vulnerabilities",children:this._factory.makeForVulnerability().normalizeIterable(t.vulnerabilities,i,"vulnerability")}:void 0;return{type:"element",name:"bom",namespace:FNr.get(this._factory.spec.version),attributes:{version:t.version,serialNumber:this.#e(t.serialNumber)?t.serialNumber:void 0},children:[this._factory.makeForMetadata().normalize(t.metadata,i,"metadata"),a,c,this._factory.spec.supportsDependencyGraph?this._factory.makeForDependencyGraph().normalize(t,i,"dependencies"):void 0,d].filter(v0.isNotUndefined)}}#e(t){return t!==void 0&&/^urn:uuid:[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$|^\{[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}\}$/.test(t)}};cf.BomNormalizer=U4e;var G4e=class extends jb{static{e(this,"MetadataNormalizer")}normalize(t,i,a){let c=this._factory.makeForOrganizationalEntity(),d=this._factory.spec.supportsMetadataLifecycles&&t.lifecycles.size>0?{type:"element",name:"lifecycles",children:this._factory.makeForLifecycle().normalizeIterable(t.lifecycles,i,"lifecycle")}:void 0,f=t.tools.size>0?this._factory.makeForTools().normalize(t.tools,i,"tools"):void 0,g=t.authors.size>0?{type:"element",name:"authors",children:this._factory.makeForOrganizationalContact().normalizeIterable(t.authors,i,"author")}:void 0,v=this._factory.spec.supportsMetadataLicenses&&t.licenses.size>0?{type:"element",name:"licenses",children:this._factory.makeForLicense().normalizeIterable(t.licenses,i)}:void 0,S=this._factory.spec.supportsMetadataProperties&&t.properties.size>0?{type:"element",name:"properties",children:this._factory.makeForProperty().normalizeIterable(t.properties,i,"property")}:void 0;return{type:"element",name:a,children:[z4e(t.timestamp,"timestamp"),d,f,g,t.component===void 0?void 0:this._factory.makeForComponent().normalize(t.component,i,"component"),t.manufacture===void 0?void 0:c.normalize(t.manufacture,i,"manufacture"),t.supplier===void 0?void 0:c.normalize(t.supplier,i,"supplier"),v,S].filter(v0.isNotUndefined)}}};cf.MetadataNormalizer=G4e;var q4e=class extends jb{static{e(this,"LifecycleNormalizer")}normalize(t,i,a){return t instanceof kNr.NamedLifecycle?{type:"element",name:a,children:[AE(t.name,"name",ub.normalizedString),lg(t.description,"description")].filter(v0.isNotUndefined)}:{type:"element",name:a,children:[AE(t,"phase")]}}normalizeIterable(t,i,a){return(i.sortLists??!1?t.sorted():Array.from(t)).map(c=>this.normalize(c,i,a))}};cf.LifecycleNormalizer=q4e;var H4e=class extends jb{static{e(this,"ToolNormalizer")}normalize(t,i,a){let c=t.hashes.size>0?{type:"element",name:"hashes",children:this._factory.makeForHash().normalizeIterable(t.hashes,i,"hash")}:void 0,d=this._factory.spec.supportsToolReferences&&t.externalReferences.size>0?{type:"element",name:"externalReferences",children:this._factory.makeForExternalReference().normalizeIterable(t.externalReferences,i,"reference")}:void 0;return{type:"element",name:a,children:[lg(t.vendor,"vendor",ub.normalizedString),lg(t.name,"name",ub.normalizedString),lg(t.version,"version",ub.normalizedString),c,d].filter(v0.isNotUndefined)}}normalizeIterable(t,i,a){return(i.sortLists??!1?t.sorted():Array.from(t)).map(c=>this.normalize(c,i,a))}};cf.ToolNormalizer=H4e;var K4e=class extends jb{static{e(this,"ToolsNormalizer")}normalize(t,i,a){let c=[];return t.tools.size>0||!this._factory.spec.supportsToolsComponentsServices?c=this._factory.makeForTool().normalizeIterable(new Cvt.ToolRepository((0,MNr.chainI)(Array.from(t.components,Cvt.Tool.fromComponent),Array.from(t.services,Cvt.Tool.fromService),t.tools)),i,"tool"):(t.components.size>0&&c.push({type:"element",name:"components",children:this._factory.makeForComponent().normalizeIterable(t.components,i,"component")}),t.services.size>0&&c.push({type:"element",name:"services",children:this._factory.makeForService().normalizeIterable(t.services,i,"service")})),{type:"element",name:a,children:c}}};cf.ToolsNormalizer=K4e;var J4e=class extends jb{static{e(this,"HashNormalizer")}normalize([t,i],a,c){let d=this._factory.spec;return d.supportsHashAlgorithm(t)&&d.supportsHashValue(i)?{type:"element",name:c,attributes:{alg:t},children:(0,ub.token)(i)}:void 0}normalizeIterable(t,i,a){return(i.sortLists??!1?t.sorted():Array.from(t)).map(c=>this.normalize(c,i,a)).filter(v0.isNotUndefined)}};cf.HashNormalizer=J4e;var X4e=class extends jb{static{e(this,"OrganizationalContactNormalizer")}normalize(t,i,a){return{type:"element",name:a,children:[lg(t.name,"name",ub.normalizedString),lg(t.email,"email",ub.normalizedString),lg(t.phone,"phone",ub.normalizedString)].filter(v0.isNotUndefined)}}normalizeIterable(t,i,a){return(i.sortLists??!1?t.sorted():Array.from(t)).map(c=>this.normalize(c,i,a))}};cf.OrganizationalContactNormalizer=X4e;var $4e=class extends jb{static{e(this,"OrganizationalEntityNormalizer")}normalize(t,i,a){return{type:"element",name:a,children:[lg(t.name,"name",ub.normalizedString),...Hpn(Array.from(t.url,c=>(0,one.escapeUri)(c.toString())),i,"url").filter(({children:c})=>ane.XmlSchema.isAnyURI(c)),...this._factory.makeForOrganizationalContact().normalizeIterable(t.contact,i,"contact")].filter(v0.isNotUndefined)}}normalizeIterable(t,i,a){return(i.sortLists??!1?t.sorted():Array.from(t)).map(c=>this.normalize(c,i,a))}};cf.OrganizationalEntityNormalizer=$4e;var Y4e=class extends jb{static{e(this,"ComponentNormalizer")}normalize(t,i,a){let c=this._factory.spec;if(!c.supportsComponentType(t.type))return;let d=t.supplier===void 0?void 0:this._factory.makeForOrganizationalEntity().normalize(t.supplier,i,"supplier"),f=(c.requiresComponentVersion?AE:lg)(t.version??"","version",ub.normalizedString),g=t.hashes.size>0?{type:"element",name:"hashes",children:this._factory.makeForHash().normalizeIterable(t.hashes,i,"hash")}:void 0,v=t.licenses.size>0?{type:"element",name:"licenses",children:this._factory.makeForLicense().normalizeIterable(t.licenses,i)}:void 0,S=t.swid===void 0?void 0:this._factory.makeForSWID().normalize(t.swid,i,"swid"),E=t.externalReferences.size>0?{type:"element",name:"externalReferences",children:this._factory.makeForExternalReference().normalizeIterable(t.externalReferences,i,"reference")}:void 0,A=c.supportsProperties(t)&&t.properties.size>0?{type:"element",name:"properties",children:this._factory.makeForProperty().normalizeIterable(t.properties,i,"property")}:void 0,C=t.components.size>0?{type:"element",name:"components",children:this.normalizeIterable(t.components,i,"component")}:void 0,L=c.supportsComponentEvidence&&t.evidence!==void 0?this._factory.makeForComponentEvidence().normalize(t.evidence,i,"evidence"):void 0;return{type:"element",name:a,attributes:{type:t.type,"bom-ref":t.bomRef.value},children:[d,lg(t.author,"author",ub.normalizedString),lg(t.publisher,"publisher",ub.normalizedString),lg(t.group,"group",ub.normalizedString),AE(t.name,"name",ub.normalizedString),f,lg(t.description,"description",ub.normalizedString),lg(t.scope,"scope"),g,v,lg(t.copyright,"copyright",ub.normalizedString),lg(t.cpe,"cpe"),lg(t.purl,"purl"),S,E,A,C,L].filter(v0.isNotUndefined)}}normalizeIterable(t,i,a){return(i.sortLists??!1?t.sorted():Array.from(t)).map(c=>this.normalize(c,i,a)).filter(v0.isNotUndefined)}};cf.ComponentNormalizer=Y4e;var Q4e=class extends jb{static{e(this,"ServiceNormalizer")}normalize(t,i,a){let c=this._factory.spec,d=t.provider===void 0?void 0:this._factory.makeForOrganizationalEntity().normalize(t.provider,i,"provider"),f=t.licenses.size>0?{type:"element",name:"licenses",children:this._factory.makeForLicense().normalizeIterable(t.licenses,i)}:void 0,g=t.externalReferences.size>0?{type:"element",name:"externalReferences",children:this._factory.makeForExternalReference().normalizeIterable(t.externalReferences,i,"reference")}:void 0,v=c.supportsProperties(t)&&t.properties.size>0?{type:"element",name:"properties",children:this._factory.makeForProperty().normalizeIterable(t.properties,i,"property")}:void 0,S=t.services.size>0?{type:"element",name:"services",children:this.normalizeIterable(t.services,i,"service")}:void 0;return{type:"element",name:a,attributes:{"bom-ref":t.bomRef.value},children:[d,lg(t.group,"group",ub.normalizedString),AE(t.name,"name",ub.normalizedString),lg(t.version,"version",ub.normalizedString),lg(t.description,"description",ub.normalizedString),f,g,v,S].filter(v0.isNotUndefined)}}normalizeIterable(t,i,a){return(i.sortLists??!1?t.sorted():Array.from(t)).map(c=>this.normalize(c,i,a))}};cf.ServiceNormalizer=Q4e;var Z4e=class extends jb{static{e(this,"ComponentEvidenceNormalizer")}normalize(t,i,a){let c=t.licenses.size>0?{type:"element",name:"licenses",children:this._factory.makeForLicense().normalizeIterable(t.licenses,i)}:void 0,d=t.copyright.size>0?{type:"element",name:"copyright",children:Hpn(t.copyright,i,"text")}:void 0;return{type:"element",name:a,children:[c,d].filter(v0.isNotUndefined)}}};cf.ComponentEvidenceNormalizer=Z4e;var e7e=class extends jb{static{e(this,"LicenseNormalizer")}normalize(t,i){switch(!0){case t instanceof s0e.NamedLicense:return this.#e(t,i);case t instanceof s0e.SpdxLicense:return(0,ONr.isSupportedSpdxId)(t.id)?this.#t(t,i):this.#e(new s0e.NamedLicense(t.id,{url:t.url}),i);case t instanceof s0e.LicenseExpression:return this.#n(t);default:throw new TypeError("Unexpected LicenseChoice")}}#e(t,i){let a=(0,one.escapeUri)(t.url?.toString());return{type:"element",name:"license",attributes:{acknowledgement:this._factory.spec.supportsLicenseAcknowledgement?t.acknowledgement:void 0},children:[AE(t.name,"name",ub.normalizedString),t.text===void 0?void 0:this._factory.makeForAttachment().normalize(t.text,i,"text"),ane.XmlSchema.isAnyURI(a)?AE(a,"url"):void 0].filter(v0.isNotUndefined)}}#t(t,i){let a=(0,one.escapeUri)(t.url?.toString());return{type:"element",name:"license",attributes:{acknowledgement:this._factory.spec.supportsLicenseAcknowledgement?t.acknowledgement:void 0},children:[AE(t.id,"id"),t.text===void 0?void 0:this._factory.makeForAttachment().normalize(t.text,i,"text"),ane.XmlSchema.isAnyURI(a)?AE(a,"url"):void 0].filter(v0.isNotUndefined)}}#n(t){let i=AE(t.expression,"expression",ub.normalizedString);return i.attributes={acknowledgement:this._factory.spec.supportsLicenseAcknowledgement?t.acknowledgement:void 0},i}normalizeIterable(t,i){let a=i.sortLists??!1?t.sorted():Array.from(t);if(a.length>1){let c=a.filter(d=>d instanceof s0e.LicenseExpression);if(c.length>0)return[this.#n(c[0])]}return a.map(c=>this.normalize(c,i))}};cf.LicenseNormalizer=e7e;var t7e=class extends jb{static{e(this,"SWIDNormalizer")}normalize(t,i,a){let c=(0,one.escapeUri)(t.url?.toString());return{type:"element",name:a,attributes:{tagId:t.tagId,name:t.name,version:t.version||void 0,tagVersion:t.tagVersion,patch:t.patch===void 0?void 0:t.patch?"true":"false"},children:[t.text===void 0?void 0:this._factory.makeForAttachment().normalize(t.text,i,"text"),ane.XmlSchema.isAnyURI(c)?AE(c,"url"):void 0].filter(v0.isNotUndefined)}}};cf.SWIDNormalizer=t7e;var n7e=class extends jb{static{e(this,"ExternalReferenceNormalizer")}normalize(t,i,a){let c=(0,one.escapeUri)(t.url.toString()),d=this._factory.spec.supportsExternalReferenceHashes&&t.hashes.size>0?{type:"element",name:"hashes",children:this._factory.makeForHash().normalizeIterable(t.hashes,i,"hash")}:void 0;return this._factory.spec.supportsExternalReferenceType(t.type)&&ane.XmlSchema.isAnyURI(c)?{type:"element",name:a,attributes:{type:t.type},children:[AE(c,"url"),lg(t.comment,"comment"),d].filter(v0.isNotUndefined)}:void 0}normalizeIterable(t,i,a){return(i.sortLists??!1?t.sorted():Array.from(t)).map(c=>this.normalize(c,i,a)).filter(v0.isNotUndefined)}};cf.ExternalReferenceNormalizer=n7e;var r7e=class extends jb{static{e(this,"AttachmentNormalizer")}normalize(t,i,a){return{type:"element",name:a,attributes:{"content-type":t.contentType?(0,ub.normalizedString)(t.contentType):void 0,encoding:t.encoding||void 0},children:t.content.toString()}}};cf.AttachmentNormalizer=r7e;var i7e=class extends jb{static{e(this,"PropertyNormalizer")}normalize(t,i,a){return{type:"element",name:a,attributes:{name:t.name},children:(0,ub.normalizedString)(t.value)}}normalizeIterable(t,i,a){return(i.sortLists??!1?t.sorted():Array.from(t)).map(c=>this.normalize(c,i,a))}};cf.PropertyNormalizer=i7e;var o7e=class extends jb{static{e(this,"DependencyGraphNormalizer")}normalize(t,i,a){let c=new Map;if(t.metadata.component!==void 0){c.set(t.metadata.component.bomRef,t.metadata.component.dependencies);for(let f of t.metadata.component.components[Avt.treeIteratorSymbol]())c.set(f.bomRef,f.dependencies)}for(let f of t.components[Avt.treeIteratorSymbol]())c.set(f.bomRef,f.dependencies);for(let f of t.services[Avt.treeIteratorSymbol]())c.set(f.bomRef,f.dependencies);let d=[];for(let[f,g]of c){let v=this.#e(f,g,c,i);(0,v0.isNotUndefined)(v)&&d.push(v)}return(i.sortLists??!1)&&d.sort(({attributes:{ref:f}},{attributes:{ref:g}})=>f.localeCompare(g)),{type:"element",name:a,children:d}}#e(t,i,a,c){let d=t.toString();if(d.length===0)return;let f=Array.from(i).filter(g=>a.has(g)&&g!==t).map(g=>g.toString()).filter(g=>g.length>0);return(c.sortLists??!1)&&f.sort((g,v)=>g.localeCompare(v)),{type:"element",name:"dependency",attributes:{ref:d},children:f.map(g=>({type:"element",name:"dependency",attributes:{ref:g}}))}}};cf.DependencyGraphNormalizer=o7e;var a7e=class extends jb{static{e(this,"VulnerabilityNormalizer")}normalize(t,i,a){let c=t.references.size>0?{type:"element",name:"references",children:this._factory.makeForVulnerabilityReference().normalizeIterable(t.references,i,"reference")}:void 0,d=t.ratings.size>0?{type:"element",name:"ratings",children:this._factory.makeForVulnerabilityRating().normalizeIterable(t.ratings,i,"rating")}:void 0,f=t.cwes.size>0?{type:"element",name:"cwes",children:(i.sortLists?t.cwes.sorted():Array.from(t.cwes)).map(A=>AE(A,"cwe"))}:void 0,g=t.advisories.size>0?{type:"element",name:"advisories",children:this._factory.makeForVulnerabilityAdvisory().normalizeIterable(t.advisories,i,"advisory")}:void 0,v=t.tools.size>0?this._factory.makeForTools().normalize(t.tools,i,"tools"):void 0,S=t.affects.size>0?{type:"element",name:"affects",children:this._factory.makeForVulnerabilityAffect().normalizeIterable(t.affects,i,"target")}:void 0,E=t.properties.size>0?{type:"element",name:"properties",children:this._factory.makeForProperty().normalizeIterable(t.properties,i,"property")}:void 0;return{type:"element",name:a,attributes:{"bom-ref":t.bomRef.value||void 0},children:[lg(t.id,"id",ub.normalizedString),t.source===void 0?void 0:this._factory.makeForVulnerabilitySource().normalize(t.source,i,"source"),c,d,f,lg(t.description,"description"),lg(t.detail,"detail"),lg(t.recommendation,"recommendation"),g,z4e(t.created,"created"),z4e(t.created,"published"),z4e(t.created,"updated"),t.credits===void 0?void 0:this._factory.makeForVulnerabilityCredits().normalize(t.credits,i,"credits"),v,t.analysis===void 0?void 0:this._factory.makeForVulnerabilityAnalysis().normalize(t.analysis,i,"analysis"),S,E].filter(v0.isNotUndefined)}}normalizeIterable(t,i,a){return(i.sortLists??!1?t.sorted():Array.from(t)).map(c=>this.normalize(c,i,a))}};cf.VulnerabilityNormalizer=a7e;var s7e=class extends jb{static{e(this,"VulnerabilitySourceNormalizer")}normalize(t,i,a){let c=(0,one.escapeUri)(t.url?.toString());return{type:"element",name:a,children:[lg(t.name,"name",ub.normalizedString),ane.XmlSchema.isAnyURI(c)?AE(c,"url"):void 0].filter(v0.isNotUndefined)}}};cf.VulnerabilitySourceNormalizer=s7e;var l7e=class extends jb{static{e(this,"VulnerabilityReferenceNormalizer")}normalize(t,i,a){return{type:"element",name:a,children:[AE(t.id,"id"),this._factory.makeForVulnerabilitySource().normalize(t.source,i,"source")]}}normalizeIterable(t,i,a){return(i.sortLists??!1?t.sorted():Array.from(t)).map(c=>this.normalize(c,i,a))}};cf.VulnerabilityReferenceNormalizer=l7e;var c7e=class extends jb{static{e(this,"VulnerabilityRatingNormalizer")}normalize(t,i,a){return{type:"element",name:a,children:[t.source===void 0?void 0:this._factory.makeForVulnerabilitySource().normalize(t.source,i,"source"),lg(t.score,"score"),lg(t.severity,"severity"),this._factory.spec.supportsVulnerabilityRatingMethod(t.method)?lg(t.method,"method"):void 0,lg(t.vector,"vector",ub.normalizedString),lg(t.justification,"justification")].filter(v0.isNotUndefined)}}normalizeIterable(t,i,a){return(i.sortLists??!1?t.sorted():Array.from(t)).map(c=>this.normalize(c,i,a))}};cf.VulnerabilityRatingNormalizer=c7e;var u7e=class extends jb{static{e(this,"VulnerabilityAdvisoryNormalizer")}normalize(t,i,a){let c=(0,one.escapeUri)(t.url.toString());if(ane.XmlSchema.isAnyURI(c))return{type:"element",name:a,children:[lg(t.title,"title"),AE(c,"url")].filter(v0.isNotUndefined)}}normalizeIterable(t,i,a){return(i.sortLists??!1?t.sorted():Array.from(t)).map(c=>this.normalize(c,i,a)).filter(v0.isNotUndefined)}};cf.VulnerabilityAdvisoryNormalizer=u7e;var d7e=class extends jb{static{e(this,"VulnerabilityCreditsNormalizer")}normalize(t,i,a){let c=t.organizations.size>0?{type:"element",name:"organizations",children:this._factory.makeForOrganizationalEntity().normalizeIterable(t.organizations,i,"organization")}:void 0,d=t.individuals.size>0?{type:"element",name:"individuals",children:this._factory.makeForOrganizationalContact().normalizeIterable(t.individuals,i,"individual")}:void 0;return{type:"element",name:a,children:[c,d].filter(v0.isNotUndefined)}}};cf.VulnerabilityCreditsNormalizer=d7e;var p7e=class extends jb{static{e(this,"VulnerabilityAnalysisNormalizer")}normalize(t,i,a){let c=t.response.size>0?{type:"element",name:"responses",children:(i.sortLists??!1?t.response.sorted():Array.from(t.response)).map(d=>AE(d,"response"))}:void 0;return{type:"element",name:a,children:[lg(t.state,"state"),lg(t.justification,"justification"),c,lg(t.detail,"detail")].filter(v0.isNotUndefined)}}};cf.VulnerabilityAnalysisNormalizer=p7e;var f7e=class extends jb{static{e(this,"VulnerabilityAffectNormalizer")}normalize(t,i,a){let c=t.versions.size>0?{type:"element",name:"versions",children:this._factory.makeForVulnerabilityAffectedVersion().normalizeIterable(t.versions,i,"version")}:void 0;return{type:"element",name:a,children:[AE(t.ref,"ref"),c].filter(v0.isNotUndefined)}}normalizeIterable(t,i,a){return(i.sortLists??!1?t.sorted():Array.from(t)).map(c=>this.normalize(c,i,a))}};cf.VulnerabilityAffectNormalizer=f7e;var _7e=class extends jb{static{e(this,"VulnerabilityAffectedVersionNormalizer")}normalize(t,i,a){switch(!0){case t instanceof qpn.AffectedSingleVersion:return this.#e(t,a);case t instanceof qpn.AffectedVersionRange:return this.#t(t,a);default:throw new TypeError("Unexpected Vulnerability AffectedVersion")}}#e(t,i){return{type:"element",name:i,children:[AE(t.version,"version",ub.normalizedString),lg(t.status,"status")].filter(v0.isNotUndefined)}}#t(t,i){return{type:"element",name:i,children:[AE(t.range,"range",ub.normalizedString),lg(t.status,"status")].filter(v0.isNotUndefined)}}normalizeIterable(t,i,a){return(i.sortLists??!1?t.sorted():Array.from(t)).map(c=>this.normalize(c,i,a))}};cf.VulnerabilityAffectedVersionNormalizer=_7e;var m7e=e(r=>r,"noTEM");function lg(r,t,i=m7e){let a=i(r?.toString()??"");return a.length>0?AE(a,t):void 0}e(lg,"makeOptionalTextElement");function AE(r,t,i=m7e){return{type:"element",name:t,children:i(r.toString())}}e(AE,"makeTextElement");function Hpn(r,t,i,a=m7e){let c=Array.from(r,d=>AE(d,i,a));return(t.sortLists??!1)&&c.sort(({children:d},{children:f})=>d.localeCompare(f)),c}e(Hpn,"makeTextElementIter");function z4e(r,t,i=m7e){let a=r?.toISOString();return a===void 0?void 0:AE(a,t,i)}e(z4e,"makeOptionalDateTimeElement")});var Xpn=Je(v8=>{"use strict";V();G();U();z();var BNr=v8&&v8.__createBinding||(Object.create?function(r,t,i,a){a===void 0&&(a=i);var c=Object.getOwnPropertyDescriptor(t,i);(!c||("get"in c?!t.__esModule:c.writable||c.configurable))&&(c={enumerable:!0,get:e(function(){return t[i]},"get")}),Object.defineProperty(r,a,c)}:function(r,t,i,a){a===void 0&&(a=i),r[a]=t[i]}),WNr=v8&&v8.__setModuleDefault||(Object.create?function(r,t){Object.defineProperty(r,"default",{enumerable:!0,value:t})}:function(r,t){r.default=t}),Jpn=v8&&v8.__importStar||function(){var r=e(function(t){return r=Object.getOwnPropertyNames||function(i){var a=[];for(var c in i)Object.prototype.hasOwnProperty.call(i,c)&&(a[a.length]=c);return a},r(t)},"ownKeys");return function(t){if(t&&t.__esModule)return t;var i={};if(t!=null)for(var a=r(t),c=0;c<a.length;c++)a[c]!=="default"&&BNr(i,t,a[c]);return WNr(i,t),i}}();Object.defineProperty(v8,"__esModule",{value:!0});v8.Types=v8.Normalize=void 0;v8.Normalize=Jpn(Kpn());v8.Types=Jpn(Dvt())});var Pvt=Je(h7e=>{"use strict";V();G();U();z();Object.defineProperty(h7e,"__esModule",{value:!0});h7e.XmlBaseSerializer=void 0;var jNr=rne(),VNr=I4e(),zNr=z8e(),wvt=class extends zNr.BaseSerializer{static{e(this,"XmlBaseSerializer")}#e;constructor(t){if(!t.spec.supportsFormat(jNr.Format.XML))throw new VNr.UnsupportedFormatError("Spec does not support XML format.");super(),this.#e=t}get normalizerFactory(){return this.#e}_normalize(t,i={}){return this.#e.makeForBom().normalize(t,i)}};h7e.XmlBaseSerializer=wvt});var Ypn=Je(AT=>{"use strict";V();G();U();z();var $pn=AT&&AT.__createBinding||(Object.create?function(r,t,i,a){a===void 0&&(a=i);var c=Object.getOwnPropertyDescriptor(t,i);(!c||("get"in c?!t.__esModule:c.writable||c.configurable))&&(c={enumerable:!0,get:e(function(){return t[i]},"get")}),Object.defineProperty(r,a,c)}:function(r,t,i,a){a===void 0&&(a=i),r[a]=t[i]}),UNr=AT&&AT.__setModuleDefault||(Object.create?function(r,t){Object.defineProperty(r,"default",{enumerable:!0,value:t})}:function(r,t){r.default=t}),l0e=AT&&AT.__exportStar||function(r,t){for(var i in r)i!=="default"&&!Object.prototype.hasOwnProperty.call(t,i)&&$pn(t,r,i)},Nvt=AT&&AT.__importStar||function(){var r=e(function(t){return r=Object.getOwnPropertyNames||function(i){var a=[];for(var c in i)Object.prototype.hasOwnProperty.call(i,c)&&(a[a.length]=c);return a},r(t)},"ownKeys");return function(t){if(t&&t.__esModule)return t;var i={};if(t!=null)for(var a=r(t),c=0;c<a.length;c++)a[c]!=="default"&&$pn(i,t,a[c]);return UNr(i,t),i}}();Object.defineProperty(AT,"__esModule",{value:!0});AT.XML=AT.JSON=AT.Types=void 0;l0e(nyt(),AT);l0e(oyt(),AT);AT.Types=Nvt(ipn());l0e(z8e(),AT);AT.JSON=Nvt(Ppn());l0e(Npn(),AT);AT.XML=Nvt(Xpn());l0e(Pvt(),AT)});var Qpn=Je(Rvt=>{"use strict";V();G();U();z();Object.defineProperty(Rvt,"__esModule",{value:!0});Rvt.default=HNr;var GNr=B8e();function qNr(r){let t=e(function(){throw new GNr.OptPlugError(r)},"f");return t.fails=!0,Object.freeze(t)}e(qNr,"makeWIllThrow");function HNr(r,t){for(let[,i]of t)try{return i()}catch{}return qNr(`No ${r} available.
31149
31149
  Please install one of the optional dependencies: `+t.map(i=>i[0]).join(" || "))}e(HNr,"default_1")});var sne=Je((c0e,Lvt)=>{V();G();U();z();(function(r,t){typeof c0e=="object"&&typeof Lvt=="object"?Lvt.exports=t():typeof define=="function"&&define.amd?define([],t):typeof c0e=="object"?c0e.xmlbuilder2=t():r.xmlbuilder2=t()})(c0e,function(){return function(r){var t={};function i(a){if(t[a])return t[a].exports;var c=t[a]={i:a,l:!1,exports:{}};return r[a].call(c.exports,c,c.exports,i),c.l=!0,c.exports}return e(i,"r"),i.m=r,i.c=t,i.d=function(a,c,d){i.o(a,c)||Object.defineProperty(a,c,{enumerable:!0,get:d})},i.r=function(a){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(a,"__esModule",{value:!0})},i.t=function(a,c){if(1&c&&(a=i(a)),8&c||4&c&&typeof a=="object"&&a&&a.__esModule)return a;var d=Object.create(null);if(i.r(d),Object.defineProperty(d,"default",{enumerable:!0,value:a}),2&c&&typeof a!="string")for(var f in a)i.d(d,f,function(g){return a[g]}.bind(null,f));return d},i.n=function(a){var c=a&&a.__esModule?function(){return a.default}:function(){return a};return i.d(c,"a",c),c},i.o=function(a,c){return Object.prototype.hasOwnProperty.call(a,c)},i.p="",i(i.s=184)}([function(r,t,i){"use strict";function a(c){for(var d in c)t.hasOwnProperty(d)||(t[d]=c[d])}e(a,"n"),Object.defineProperty(t,"__esModule",{value:!0}),a(i(240)),a(i(251)),a(i(175)),a(i(107)),a(i(29)),a(i(73)),a(i(106)),a(i(30)),a(i(252)),a(i(52)),a(i(97)),a(i(253)),a(i(37)),a(i(51)),a(i(173)),a(i(176)),a(i(172)),a(i(108)),a(i(254)),a(i(255)),a(i(256)),a(i(72)),a(i(177)),a(i(105)),a(i(17)),a(i(257)),a(i(12)),a(i(174))},function(r,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(a){a[a.Before=0]="Before",a[a.Equal=1]="Equal",a[a.After=2]="After"}(t.BoundaryPosition||(t.BoundaryPosition={})),function(a){a[a.None=0]="None",a[a.Capturing=1]="Capturing",a[a.AtTarget=2]="AtTarget",a[a.Bubbling=3]="Bubbling"}(t.EventPhase||(t.EventPhase={})),function(a){a[a.Element=1]="Element",a[a.Attribute=2]="Attribute",a[a.Text=3]="Text",a[a.CData=4]="CData",a[a.EntityReference=5]="EntityReference",a[a.Entity=6]="Entity",a[a.ProcessingInstruction=7]="ProcessingInstruction",a[a.Comment=8]="Comment",a[a.Document=9]="Document",a[a.DocumentType=10]="DocumentType",a[a.DocumentFragment=11]="DocumentFragment",a[a.Notation=12]="Notation"}(t.NodeType||(t.NodeType={})),function(a){a[a.Disconnected=1]="Disconnected",a[a.Preceding=2]="Preceding",a[a.Following=4]="Following",a[a.Contains=8]="Contains",a[a.ContainedBy=16]="ContainedBy",a[a.ImplementationSpecific=32]="ImplementationSpecific"}(t.Position||(t.Position={})),function(a){a[a.Accept=1]="Accept",a[a.Reject=2]="Reject",a[a.Skip=3]="Skip"}(t.FilterResult||(t.FilterResult={})),function(a){a[a.All=4294967295]="All",a[a.Element=1]="Element",a[a.Attribute=2]="Attribute",a[a.Text=4]="Text",a[a.CDataSection=8]="CDataSection",a[a.EntityReference=16]="EntityReference",a[a.Entity=32]="Entity",a[a.ProcessingInstruction=64]="ProcessingInstruction",a[a.Comment=128]="Comment",a[a.Document=256]="Document",a[a.DocumentType=512]="DocumentType",a[a.DocumentFragment=1024]="DocumentFragment",a[a.Notation=2048]="Notation"}(t.WhatToShow||(t.WhatToShow={})),function(a){a[a.StartToStart=0]="StartToStart",a[a.StartToEnd=1]="StartToEnd",a[a.EndToEnd=2]="EndToEnd",a[a.EndToStart=3]="EndToStart"}(t.HowToCompare||(t.HowToCompare={}))},function(r,t,i){"use strict";var a=this&&this.__values||function(M){var J=typeof Symbol=="function"&&Symbol.iterator,Z=J&&M[J],Q=0;if(Z)return Z.call(M);if(M&&typeof M.length=="number")return{next:e(function(){return M&&Q>=M.length&&(M=void 0),{value:M&&M[Q++],done:!M}},"next")};throw new TypeError(J?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0});var c=i(212);t.FixedSizeSet=c.FixedSizeSet;var d=i(213);t.ObjectCache=d.ObjectCache;var f=i(214);t.CompareCache=f.CompareCache;var g=i(215);t.Lazy=g.Lazy;var v=i(216);function S(M,J,Z){if(O(M))M.forEach(function(me,be){return J.call(Z,be,me)});else for(var Q in M)M.hasOwnProperty(Q)&&J.call(Z,Q,M[Q])}e(S,"l");function E(M){var J,Z;if(A(M))return M;if(L(M)){var Q=[];try{for(var me=a(M),be=me.next();!be.done;be=me.next()){var he=be.value;Q.push(E(he))}}catch(et){J={error:et}}finally{try{be&&!be.done&&(Z=me.return)&&Z.call(me)}finally{if(J)throw J.error}}return Q}if(C(M)){Q={};for(var _e in M)if(M.hasOwnProperty(_e)){var He=M[_e];Q[_e]=E(He)}return Q}return M}e(E,"c");function A(M){return!!M&&Object.prototype.toString.call(M)==="[object Function]"}e(A,"h");function C(M){var J=typeof M;return!!M&&(J==="function"||J==="object")}e(C,"p");function L(M){return Array.isArray(M)}e(L,"f");function W(M){return M instanceof Set}e(W,"d");function O(M){return M instanceof Map}e(O,"m");function w(M){if(C(M)){var J=Object.getPrototypeOf(M),Z=J.constructor;return J&&Z&&typeof Z=="function"&&Z instanceof Z&&Function.prototype.toString.call(Z)===Function.prototype.toString.call(Object)}return!1}e(w,"y"),t.StringWalker=v.StringWalker,t.applyMixin=function(M,J){for(var Z=[],Q=2;Q<arguments.length;Q++)Z[Q-2]=arguments[Q];Object.getOwnPropertyNames(J.prototype).forEach(function(me){if(me!=="constructor"){if(Z.indexOf(me)!==-1){var be=Object.getOwnPropertyDescriptor(M.prototype,me);be&&Object.defineProperty(M.prototype,"_"+me,be)}var he=Object.getOwnPropertyDescriptor(J.prototype,me);he&&Object.defineProperty(M.prototype,me,he)}})},t.applyDefaults=e(function M(J,Z,Q){Q===void 0&&(Q=!1);var me=E(J||{});return S(Z,function(be,he){w(he)?me[be]=M(me[be],he,Q):(Q||me[be]===void 0)&&(me[be]=he)}),me},"e"),t.forEachArray=function(M,J,Z){M.forEach(J,Z)},t.forEachObject=S,t.arrayLength=function(M){return W(M)?M.size:M.length},t.objectLength=function(M){return O(M)?M.size:Object.keys(M).length},t.getObjectValue=function(M,J){return O(M)?M.get(J):M[J]},t.removeObjectValue=function(M,J){O(M)?M.delete(J):delete M[J]},t.clone=E,t.isBoolean=function(M){return typeof M=="boolean"},t.isNumber=function(M){return typeof M=="number"},t.isString=function(M){return typeof M=="string"},t.isFunction=A,t.isObject=C,t.isArray=L,t.isSet=W,t.isMap=O,t.isEmpty=function(M){if(L(M))return!M.length;if(W(M)||O(M))return!M.size;if(C(M)){for(var J in M)if(M.hasOwnProperty(J))return!1;return!0}return!1},t.isPlainObject=w,t.isIterable=function(M){return M&&typeof M[Symbol.iterator]=="function"},t.getValue=function(M){return A(M.valueOf)?M.valueOf():M},t.utf8Encode=function(M){for(var J=new Uint8Array(4*M.length),Z=0,Q=0;Q<M.length;Q++){var me=M.charCodeAt(Q);if(me<128)J[Z++]=me;else{if(me<2048)J[Z++]=me>>6|192;else{if(me>55295&&me<56320){if(++Q>=M.length)throw new Error("Incomplete surrogate pair.");var be=M.charCodeAt(Q);if(be<56320||be>57343)throw new Error("Invalid surrogate character.");me=65536+((1023&me)<<10)+(1023&be),J[Z++]=me>>18|240,J[Z++]=me>>12&63|128}else J[Z++]=me>>12|224;J[Z++]=me>>6&63|128}J[Z++]=63&me|128}}return J.subarray(0,Z)},t.utf8Decode=function(M){for(var J="",Z=0;Z<M.length;){var Q=M[Z++];if(Q>127)if(Q>191&&Q<224){if(Z>=M.length)throw new Error("Incomplete 2-byte sequence.");Q=(31&Q)<<6|63&M[Z++]}else if(Q>223&&Q<240){if(Z+1>=M.length)throw new Error("Incomplete 3-byte sequence.");Q=(15&Q)<<12|(63&M[Z++])<<6|63&M[Z++]}else{if(!(Q>239&&Q<248))throw new Error("Unknown multi-byte start.");if(Z+2>=M.length)throw new Error("Incomplete 4-byte sequence.");Q=(7&Q)<<18|(63&M[Z++])<<12|(63&M[Z++])<<6|63&M[Z++]}if(Q<=65535)J+=String.fromCharCode(Q);else{if(!(Q<=1114111))throw new Error("Code point exceeds UTF-16 limit.");Q-=65536,J+=String.fromCharCode(Q>>10|55296),J+=String.fromCharCode(1023&Q|56320)}}return J}},function(r,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=i(241);t.Cast=a.Cast;var c=i(150);t.Guard=c.Guard;var d=i(242);t.EmptySet=d.EmptySet},function(r,t,i){var a=i(11),c=i(55).f,d=i(21),f=i(25),g=i(80),v=i(119),S=i(123);r.exports=function(E,A){var C,L,W,O,w,M=E.target,J=E.global,Z=E.stat;if(C=J?a:Z?a[M]||g(M,{}):(a[M]||{}).prototype)for(L in A){if(O=A[L],W=E.noTargetGet?(w=c(C,L))&&w.value:C[L],!S(J?L:M+(Z?".":"#")+L,E.forced)&&W!==void 0){if(typeof O==typeof W)continue;v(O,W)}(E.sham||W&&W.sham)&&d(O,"sham",!0),f(C,L,O,E)}}},function(r,t,i){var a=i(11),c=i(81),d=i(14),f=i(58),g=i(86),v=i(124),S=c("wks"),E=a.Symbol,A=v?E:E&&E.withoutSetter||f;r.exports=function(C){return d(S,C)||(g&&d(E,C)?S[C]=E[C]:S[C]=A("Symbol."+C)),S[C]}},function(r,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=i(2),c=i(29),d=function(){function f(){this._features={mutationObservers:!0,customElements:!0,slots:!0,steps:!0},this._window=null,this._compareCache=new a.CompareCache,this._rangeList=new a.FixedSizeSet}return e(f,"e"),f.prototype.setFeatures=function(g){if(g===void 0&&(g=!0),a.isObject(g))for(var v in g)this._features[v]=g[v]||!1;else for(var v in this._features)this._features[v]=g},Object.defineProperty(f.prototype,"features",{get:e(function(){return this._features},"get"),enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"window",{get:e(function(){return this._window===null&&(this._window=c.create_window()),this._window},"get"),enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"compareCache",{get:e(function(){return this._compareCache},"get"),enumerable:!0,configurable:!0}),Object.defineProperty(f.prototype,"rangeList",{get:e(function(){return this._rangeList},"get"),enumerable:!0,configurable:!0}),Object.defineProperty(f,"instance",{get:e(function(){return f._instance||(f._instance=new f),f._instance},"get"),enumerable:!0,configurable:!0}),f}();t.dom=d.instance},function(r,t,i){"use strict";var a=this&&this.__importStar||function(w){if(w&&w.__esModule)return w;var M={};if(w!=null)for(var J in w)Object.hasOwnProperty.call(w,J)&&(M[J]=w[J]);return M.default=w,M};Object.defineProperty(t,"__esModule",{value:!0});var c=a(i(228));t.base64=c;var d=a(i(146));t.byte=d;var f=a(i(147));t.byteSequence=f;var g=a(i(96));t.codePoint=g;var v=a(i(232));t.json=v;var S=a(i(233));t.list=S;var E=a(i(234));t.map=E;var A=a(i(235));t.namespace=A;var C=a(i(236));t.queue=C;var L=a(i(237));t.set=L;var W=a(i(238));t.stack=W;var O=a(i(239));t.string=O},function(r,t){r.exports=function(i){try{return!!i()}catch{return!0}}},function(r,t,i){"use strict";var a,c=this&&this.__extends||(a=e(function(Gt,Kt){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(wt,Xt){wt.__proto__=Xt}||function(wt,Xt){for(var yt in Xt)Xt.hasOwnProperty(yt)&&(wt[yt]=Xt[yt])})(Gt,Kt)},"n"),function(Gt,Kt){function wt(){this.constructor=Gt}e(wt,"r"),a(Gt,Kt),Gt.prototype=Kt===null?Object.create(Kt):(wt.prototype=Kt.prototype,new wt)});Object.defineProperty(t,"__esModule",{value:!0});var d=function(Gt){function Kt(wt,Xt){Xt===void 0&&(Xt="");var yt=Gt.call(this,Xt)||this;return yt.name=wt,yt}return e(Kt,"t"),c(Kt,Gt),Kt}(Error);t.DOMException=d;var f=function(Gt){function Kt(wt){return wt===void 0&&(wt=""),Gt.call(this,"DOMStringSizeError",wt)||this}return e(Kt,"t"),c(Kt,Gt),Kt}(d);t.DOMStringSizeError=f;var g=function(Gt){function Kt(wt){return wt===void 0&&(wt=""),Gt.call(this,"WrongDocumentError","The object is in the wrong document. "+wt)||this}return e(Kt,"t"),c(Kt,Gt),Kt}(d);t.WrongDocumentError=g;var v=function(Gt){function Kt(wt){return wt===void 0&&(wt=""),Gt.call(this,"NoDataAllowedError",wt)||this}return e(Kt,"t"),c(Kt,Gt),Kt}(d);t.NoDataAllowedError=v;var S=function(Gt){function Kt(wt){return wt===void 0&&(wt=""),Gt.call(this,"NoModificationAllowedError","The object can not be modified. "+wt)||this}return e(Kt,"t"),c(Kt,Gt),Kt}(d);t.NoModificationAllowedError=S;var E=function(Gt){function Kt(wt){return wt===void 0&&(wt=""),Gt.call(this,"NotSupportedError","The operation is not supported. "+wt)||this}return e(Kt,"t"),c(Kt,Gt),Kt}(d);t.NotSupportedError=E;var A=function(Gt){function Kt(wt){return wt===void 0&&(wt=""),Gt.call(this,"InUseAttributeError",wt)||this}return e(Kt,"t"),c(Kt,Gt),Kt}(d);t.InUseAttributeError=A;var C=function(Gt){function Kt(wt){return wt===void 0&&(wt=""),Gt.call(this,"InvalidStateError","The object is in an invalid state. "+wt)||this}return e(Kt,"t"),c(Kt,Gt),Kt}(d);t.InvalidStateError=C;var L=function(Gt){function Kt(wt){return wt===void 0&&(wt=""),Gt.call(this,"InvalidModificationError","The object can not be modified in this way. "+wt)||this}return e(Kt,"t"),c(Kt,Gt),Kt}(d);t.InvalidModificationError=L;var W=function(Gt){function Kt(wt){return wt===void 0&&(wt=""),Gt.call(this,"NamespaceError","The operation is not allowed by Namespaces in XML. [XMLNS] "+wt)||this}return e(Kt,"t"),c(Kt,Gt),Kt}(d);t.NamespaceError=W;var O=function(Gt){function Kt(wt){return wt===void 0&&(wt=""),Gt.call(this,"InvalidAccessError","The object does not support the operation or argument. "+wt)||this}return e(Kt,"t"),c(Kt,Gt),Kt}(d);t.InvalidAccessError=O;var w=function(Gt){function Kt(wt){return wt===void 0&&(wt=""),Gt.call(this,"ValidationError",wt)||this}return e(Kt,"t"),c(Kt,Gt),Kt}(d);t.ValidationError=w;var M=function(Gt){function Kt(wt){return wt===void 0&&(wt=""),Gt.call(this,"TypeMismatchError",wt)||this}return e(Kt,"t"),c(Kt,Gt),Kt}(d);t.TypeMismatchError=M;var J=function(Gt){function Kt(wt){return wt===void 0&&(wt=""),Gt.call(this,"SecurityError","The operation is insecure. "+wt)||this}return e(Kt,"t"),c(Kt,Gt),Kt}(d);t.SecurityError=J;var Z=function(Gt){function Kt(wt){return wt===void 0&&(wt=""),Gt.call(this,"NetworkError","A network error occurred. "+wt)||this}return e(Kt,"t"),c(Kt,Gt),Kt}(d);t.NetworkError=Z;var Q=function(Gt){function Kt(wt){return wt===void 0&&(wt=""),Gt.call(this,"AbortError","The operation was aborted. "+wt)||this}return e(Kt,"t"),c(Kt,Gt),Kt}(d);t.AbortError=Q;var me=function(Gt){function Kt(wt){return wt===void 0&&(wt=""),Gt.call(this,"URLMismatchError","The given URL does not match another URL. "+wt)||this}return e(Kt,"t"),c(Kt,Gt),Kt}(d);t.URLMismatchError=me;var be=function(Gt){function Kt(wt){return wt===void 0&&(wt=""),Gt.call(this,"QuotaExceededError","The quota has been exceeded. "+wt)||this}return e(Kt,"t"),c(Kt,Gt),Kt}(d);t.QuotaExceededError=be;var he=function(Gt){function Kt(wt){return wt===void 0&&(wt=""),Gt.call(this,"TimeoutError","The operation timed out. "+wt)||this}return e(Kt,"t"),c(Kt,Gt),Kt}(d);t.TimeoutError=he;var _e=function(Gt){function Kt(wt){return wt===void 0&&(wt=""),Gt.call(this,"InvalidNodeTypeError","The supplied node is incorrect or has an incorrect ancestor for this operation. "+wt)||this}return e(Kt,"t"),c(Kt,Gt),Kt}(d);t.InvalidNodeTypeError=_e;var He=function(Gt){function Kt(wt){return wt===void 0&&(wt=""),Gt.call(this,"DataCloneError","The object can not be cloned. "+wt)||this}return e(Kt,"t"),c(Kt,Gt),Kt}(d);t.DataCloneError=He;var et=function(Gt){function Kt(wt){return wt===void 0&&(wt=""),Gt.call(this,"NotImplementedError","The DOM method is not implemented by this module. "+wt)||this}return e(Kt,"t"),c(Kt,Gt),Kt}(d);t.NotImplementedError=et;var ut=function(Gt){function Kt(wt){return wt===void 0&&(wt=""),Gt.call(this,"HierarchyRequestError","The operation would yield an incorrect node tree. "+wt)||this}return e(Kt,"t"),c(Kt,Gt),Kt}(d);t.HierarchyRequestError=ut;var ft=function(Gt){function Kt(wt){return wt===void 0&&(wt=""),Gt.call(this,"NotFoundError","The object can not be found here. "+wt)||this}return e(Kt,"t"),c(Kt,Gt),Kt}(d);t.NotFoundError=ft;var Wt=function(Gt){function Kt(wt){return wt===void 0&&(wt=""),Gt.call(this,"IndexSizeError","The index is not in the allowed range. "+wt)||this}return e(Kt,"t"),c(Kt,Gt),Kt}(d);t.IndexSizeError=Wt;var En=function(Gt){function Kt(wt){return wt===void 0&&(wt=""),Gt.call(this,"SyntaxError","The string did not match the expected pattern. "+wt)||this}return e(Kt,"t"),c(Kt,Gt),Kt}(d);t.SyntaxError=En;var fn=function(Gt){function Kt(wt){return wt===void 0&&(wt=""),Gt.call(this,"InvalidCharacterError","The string contains invalid characters. "+wt)||this}return e(Kt,"t"),c(Kt,Gt),Kt}(d);t.InvalidCharacterError=fn},function(r,t,i){"use strict";var a=i(53),c=["kind","resolve","construct","instanceOf","predicate","represent","defaultStyle","styleAliases"],d=["scalar","sequence","mapping"];r.exports=function(f,g){var v,S;if(g=g||{},Object.keys(g).forEach(function(E){if(c.indexOf(E)===-1)throw new a('Unknown option "'+E+'" is met in definition of "'+f+'" YAML type.')}),this.tag=f,this.kind=g.kind||null,this.resolve=g.resolve||function(){return!0},this.construct=g.construct||function(E){return E},this.instanceOf=g.instanceOf||null,this.predicate=g.predicate||null,this.represent=g.represent||null,this.defaultStyle=g.defaultStyle||null,this.styleAliases=(v=g.styleAliases||null,S={},v!==null&&Object.keys(v).forEach(function(E){v[E].forEach(function(A){S[String(A)]=E})}),S),d.indexOf(this.kind)===-1)throw new a('Unknown kind "'+this.kind+'" is specified for "'+f+'" YAML type.')}},function(r,t,i){(function(a){var c=e(function(d){return d&&d.Math==Math&&d},"r");r.exports=c(typeof globalThis=="object"&&globalThis)||c(typeof window=="object"&&window)||c(typeof self=="object"&&self)||c(typeof a=="object"&&a)||Function("return this")()}).call(this,i(78))},function(r,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.idl_defineConst=function(a,c,d){Object.defineProperty(a,c,{writable:!1,enumerable:!0,configurable:!1,value:d})}},function(r,t){r.exports=function(i){return typeof i=="object"?i!==null:typeof i=="function"}},function(r,t){var i={}.hasOwnProperty;r.exports=function(a,c){return i.call(a,c)}},function(r,t,i){var a=i(16),c=i(115),d=i(18),f=i(56),g=Object.defineProperty;t.f=a?g:function(v,S,E){if(d(v),S=f(S,!0),d(E),c)try{return g(v,S,E)}catch{}if("get"in E||"set"in E)throw TypeError("Accessors not supported");return"value"in E&&(v[S]=E.value),v}},function(r,t,i){var a=i(8);r.exports=!a(function(){return Object.defineProperty({},1,{get:e(function(){return 7},"get")})[1]!=7})},function(r,t,i){"use strict";var a=this&&this.__values||function(M){var J=typeof Symbol=="function"&&Symbol.iterator,Z=J&&M[J],Q=0;if(Z)return Z.call(M);if(M&&typeof M.length=="number")return{next:e(function(){return M&&Q>=M.length&&(M=void 0),{value:M&&M[Q++],done:!M}},"next")};throw new TypeError(J?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0});var c=i(3),d=i(1);function f(M,J,Z){if(Z===void 0&&(Z=!1),Z&&c.Guard.isElementNode(J)&&c.Guard.isShadowRoot(J.shadowRoot)&&J.shadowRoot._firstChild)return J.shadowRoot._firstChild;if(J._firstChild)return J._firstChild;if(J===M)return null;if(J._nextSibling)return J._nextSibling;for(var Q=J._parent;Q&&Q!==M;){if(Q._nextSibling)return Q._nextSibling;Q=Q._parent}return null}e(f,"a");function g(){var M;return(M={})[Symbol.iterator]=function(){return{next:e(function(){return{done:!0,value:null}},"next")}},M}e(g,"s");function v(M,J,Z,Q){J===void 0&&(J=!1),Z===void 0&&(Z=!1);for(var me=J?M:f(M,M,Z);me&&Q&&!Q(me);)me=f(M,me,Z);return me}e(v,"u");function S(M,J,Z,Q,me){Z===void 0&&(Z=!1),Q===void 0&&(Q=!1);for(var be=f(M,J,Q);be&&me&&!me(be);)be=f(M,be,Q);return be}e(S,"l");function E(M,J,Z,Q){var me;return J===void 0&&(J=!1),Z===void 0&&(Z=!1),J||M._children.size!==0?((me={})[Symbol.iterator]=function(){var be=J?M:f(M,M,Z);return{next:e(function(){for(;be&&Q&&!Q(be);)be=f(M,be,Z);if(be===null)return{done:!0,value:null};var he={done:!1,value:be};return be=f(M,be,Z),he},"next")}},me):g()}e(E,"c");function A(M,J,Z){J===void 0&&(J=!1);for(var Q=J?M:M._parent;Q&&Z&&!Z(Q);)Q=Q._parent;return Q}e(A,"h");function C(M,J,Z,Q){Z===void 0&&(Z=!1);for(var me=J._parent;me&&Q&&!Q(me);)me=me._parent;return me}e(C,"p");function L(M){return c.Guard.isDocumentTypeNode(M)?0:c.Guard.isCharacterDataNode(M)?M._data.length:M._children.size}e(L,"f");function W(M,J){if(J===void 0&&(J=!1),J){var Z=W(M,!1);return c.Guard.isShadowRoot(Z)?W(Z._host,!0):Z}return M._parent?W(M._parent):M}e(W,"d");function O(M,J,Z,Q){Z===void 0&&(Z=!1),Q===void 0&&(Q=!1);for(var me=Z?M:Q&&c.Guard.isShadowRoot(M)?M._host:M._parent;me!==null;){if(me===J)return!0;me=Q&&c.Guard.isShadowRoot(me)?me._host:me._parent}return!1}e(O,"m");function w(M){for(var J=W(M),Z=0,Q=v(J);Q!==null;){if(Z++,Q===M)return Z;Q=S(J,Q)}return-1}e(w,"y"),t.tree_getFirstDescendantNode=v,t.tree_getNextDescendantNode=S,t.tree_getDescendantNodes=E,t.tree_getDescendantElements=function(M,J,Z,Q){var me;return J===void 0&&(J=!1),Z===void 0&&(Z=!1),J||M._children.size!==0?((me={})[Symbol.iterator]=function(){var be=E(M,J,Z,function(_e){return c.Guard.isElementNode(_e)})[Symbol.iterator](),he=be.next().value;return{next:e(function(){for(;he&&Q&&!Q(he);)he=be.next().value;if(he===null)return{done:!0,value:null};var _e={done:!1,value:he};return he=be.next().value,_e},"next")}},me):g()},t.tree_getSiblingNodes=function(M,J,Z){var Q;return J===void 0&&(J=!1),M._parent&&M._parent._children.size!==0?((Q={})[Symbol.iterator]=function(){var me=M._parent?M._parent._firstChild:null;return{next:e(function(){for(;me&&(Z&&!Z(me)||!J&&me===M);)me=me._nextSibling;if(me===null)return{done:!0,value:null};var be={done:!1,value:me};return me=me._nextSibling,be},"next")}},Q):g()},t.tree_getFirstAncestorNode=A,t.tree_getNextAncestorNode=C,t.tree_getAncestorNodes=function(M,J,Z){var Q;return J===void 0&&(J=!1),J||M._parent?((Q={})[Symbol.iterator]=function(){var me=A(M,J,Z);return{next:e(function(){if(me===null)return{done:!0,value:null};var be={done:!1,value:me};return me=C(0,me,J,Z),be},"next")}},Q):g()},t.tree_getCommonAncestor=function(M,J){if(M===J)return M._parent;for(var Z=[],Q=[],me=A(M,!0);me!==null;)Z.push(me),me=C(0,me,!0);for(var be=A(J,!0);be!==null;)Q.push(be),be=C(0,be,!0);for(var he=Z.length,_e=Q.length,He=null,et=Math.min(he,_e);et>0;et--){var ut=Z[--he];if(ut!==Q[--_e])break;He=ut}return He},t.tree_getFollowingNode=function(M,J){if(J._firstChild)return J._firstChild;if(J._nextSibling)return J._nextSibling;for(;;){var Z=J._parent;if(Z===null||Z===M)return null;if(Z._nextSibling)return Z._nextSibling;J=Z}},t.tree_getPrecedingNode=function(M,J){return J===M?null:J._previousSibling?(J=J._previousSibling)._lastChild?J._lastChild:J:J._parent},t.tree_isConstrained=e(function M(J){var Z,Q,me,be,he,_e;switch(J._nodeType){case d.NodeType.Document:var He=!1,et=!1;try{for(var ut=a(J._children),ft=ut.next();!ft.done;ft=ut.next())switch(ft.value._nodeType){case d.NodeType.ProcessingInstruction:case d.NodeType.Comment:break;case d.NodeType.DocumentType:if(He||et)return!1;He=!0;break;case d.NodeType.Element:if(et)return!1;et=!0;break;default:return!1}}catch(Kt){Z={error:Kt}}finally{try{ft&&!ft.done&&(Q=ut.return)&&Q.call(ut)}finally{if(Z)throw Z.error}}break;case d.NodeType.DocumentFragment:case d.NodeType.Element:try{for(var Wt=a(J._children),En=Wt.next();!En.done;En=Wt.next())switch(En.value._nodeType){case d.NodeType.Element:case d.NodeType.Text:case d.NodeType.ProcessingInstruction:case d.NodeType.CData:case d.NodeType.Comment:break;default:return!1}}catch(Kt){me={error:Kt}}finally{try{En&&!En.done&&(be=Wt.return)&&be.call(Wt)}finally{if(me)throw me.error}}break;case d.NodeType.DocumentType:case d.NodeType.Text:case d.NodeType.ProcessingInstruction:case d.NodeType.CData:case d.NodeType.Comment:return!J.hasChildNodes()}try{for(var fn=a(J._children),Gt=fn.next();!Gt.done;Gt=fn.next())if(!M(Gt.value))return!1}catch(Kt){he={error:Kt}}finally{try{Gt&&!Gt.done&&(_e=fn.return)&&_e.call(fn)}finally{if(he)throw he.error}}return!0},"e"),t.tree_nodeLength=L,t.tree_isEmpty=function(M){return L(M)===0},t.tree_rootNode=W,t.tree_isDescendantOf=function(M,J,Z,Q){Z===void 0&&(Z=!1),Q===void 0&&(Q=!1);for(var me=v(M,Z,Q);me!==null;){if(me===J)return!0;me=S(M,me,Z,Q)}return!1},t.tree_isAncestorOf=O,t.tree_isHostIncludingAncestorOf=e(function M(J,Z,Q){if(Q===void 0&&(Q=!1),O(J,Z,Q))return!0;var me=W(J);return!(!c.Guard.isDocumentFragmentNode(me)||me._host===null||!M(me._host,Z,Q))},"e"),t.tree_isSiblingOf=function(M,J,Z){return Z===void 0&&(Z=!1),M!==J?M._parent!==null&&M._parent===J._parent:!!Z},t.tree_isPreceding=function(M,J){var Z=w(M),Q=w(J);return Z!==-1&&Q!==-1&&W(M)===W(J)&&Q<Z},t.tree_isFollowing=function(M,J){var Z=w(M),Q=w(J);return Z!==-1&&Q!==-1&&W(M)===W(J)&&Q>Z},t.tree_isParentOf=function(M,J){return M._parent===J},t.tree_isChildOf=function(M,J){return J._parent===M},t.tree_previousSibling=function(M){return M._previousSibling},t.tree_nextSibling=function(M){return M._nextSibling},t.tree_firstChild=function(M){return M._firstChild},t.tree_lastChild=function(M){return M._lastChild},t.tree_treePosition=w,t.tree_index=function(M){for(var J=0;M._previousSibling!==null;)J++,M=M._previousSibling;return J},t.tree_retarget=function(M,J){for(;;){if(!M||!c.Guard.isNode(M))return M;var Z=W(M);if(!c.Guard.isShadowRoot(Z)||J&&c.Guard.isNode(J)&&O(Z,J,!0,!0))return M;M=Z.host}}},function(r,t,i){var a=i(13);r.exports=function(c){if(!a(c))throw TypeError(String(c)+" is not an object");return c}},function(r,t,i){"use strict";var a=i(24),c=i(130),d=i(49),f=i(43),g=i(88),v=f.set,S=f.getterFor("Array Iterator");r.exports=g(Array,"Array",function(E,A){v(this,{type:"Array Iterator",target:a(E),index:0,kind:A})},function(){var E=S(this),A=E.target,C=E.kind,L=E.index++;return!A||L>=A.length?(E.target=void 0,{value:void 0,done:!0}):C=="keys"?{value:L,done:!1}:C=="values"?{value:A[L],done:!1}:{value:[L,A[L]],done:!1}},"values"),d.Arguments=d.Array,c("keys"),c("values"),c("entries")},function(r,t,i){var a=i(90),c=i(25),d=i(202);a||c(Object.prototype,"toString",d,{unsafe:!0})},function(r,t,i){var a=i(16),c=i(15),d=i(40);r.exports=a?function(f,g,v){return c.f(f,g,d(1,v))}:function(f,g,v){return f[g]=v,f}},function(r,t,i){"use strict";var a=i(137).charAt,c=i(43),d=i(88),f=c.set,g=c.getterFor("String Iterator");d(String,"String",function(v){f(this,{type:"String Iterator",string:String(v),index:0})},function(){var v,S=g(this),E=S.string,A=S.index;return A>=E.length?{value:void 0,done:!0}:(v=a(E,A),S.index+=v.length,{value:v,done:!1})})},function(r,t,i){var a=i(11),c=i(203),d=i(19),f=i(21),g=i(5),v=g("iterator"),S=g("toStringTag"),E=d.values;for(var A in c){var C=a[A],L=C&&C.prototype;if(L){if(L[v]!==E)try{f(L,v,E)}catch{L[v]=E}if(L[S]||f(L,S,A),c[A]){for(var W in d)if(L[W]!==d[W])try{f(L,W,d[W])}catch{L[W]=d[W]}}}}},function(r,t,i){var a=i(41),c=i(35);r.exports=function(d){return a(c(d))}},function(r,t,i){var a=i(11),c=i(21),d=i(14),f=i(80),g=i(117),v=i(43),S=v.get,E=v.enforce,A=String(String).split("String");(r.exports=function(C,L,W,O){var w=!!O&&!!O.unsafe,M=!!O&&!!O.enumerable,J=!!O&&!!O.noTargetGet;typeof W=="function"&&(typeof L!="string"||d(W,"name")||c(W,"name",L),E(W).source=A.join(typeof L=="string"?L:"")),C!==a?(w?!J&&C[L]&&(M=!0):delete C[L],M?C[L]=W:c(C,L,W)):M?C[L]=W:f(L,W)})(Function.prototype,"toString",function(){return typeof this=="function"&&S(this).source||g(this)})},function(r,t,i){var a=i(47),c=Math.min;r.exports=function(d){return d>0?c(a(d),9007199254740991):0}},function(r,t,i){var a=i(35);r.exports=function(c){return Object(a(c))}},function(r,t,i){var a=i(16),c=i(8),d=i(14),f=Object.defineProperty,g={},v=e(function(S){throw S},"u");r.exports=function(S,E){if(d(g,S))return g[S];E||(E={});var A=[][S],C=!!d(E,"ACCESSORS")&&E.ACCESSORS,L=d(E,0)?E[0]:v,W=d(E,1)?E[1]:void 0;return g[S]=!!A&&!c(function(){if(C&&!a)return!0;var O={length:-1};C?f(O,1,{enumerable:!0,get:v}):O[1]=1,A.call(O,L,W)})}},function(r,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=i(148),c=i(149),d=i(151),f=i(98),g=i(153),v=i(154),S=i(155),E=i(99),A=i(100),C=i(156),L=i(157),W=i(101),O=i(158),w=i(159),M=i(160),J=i(161),Z=i(162),Q=i(163),me=i(164),be=i(165),he=i(166),_e=i(167),He=i(168),et=i(169),ut=i(170);t.create_domImplementation=function(ft){return a.DOMImplementationImpl._create(ft)},t.create_window=function(){return c.WindowImpl._create()},t.create_xmlDocument=function(){return new d.XMLDocumentImpl},t.create_document=function(){return new f.DocumentImpl},t.create_abortController=function(){return new g.AbortControllerImpl},t.create_abortSignal=function(){return v.AbortSignalImpl._create()},t.create_documentType=function(ft,Wt,En,fn){return S.DocumentTypeImpl._create(ft,Wt,En,fn)},t.create_element=function(ft,Wt,En,fn){return E.ElementImpl._create(ft,Wt,En,fn)},t.create_htmlElement=function(ft,Wt,En,fn){return E.ElementImpl._create(ft,Wt,En,fn)},t.create_htmlUnknownElement=function(ft,Wt,En,fn){return E.ElementImpl._create(ft,Wt,En,fn)},t.create_documentFragment=function(ft){return A.DocumentFragmentImpl._create(ft)},t.create_shadowRoot=function(ft,Wt){return C.ShadowRootImpl._create(ft,Wt)},t.create_attr=function(ft,Wt){return L.AttrImpl._create(ft,Wt)},t.create_text=function(ft,Wt){return W.TextImpl._create(ft,Wt)},t.create_cdataSection=function(ft,Wt){return O.CDATASectionImpl._create(ft,Wt)},t.create_comment=function(ft,Wt){return w.CommentImpl._create(ft,Wt)},t.create_processingInstruction=function(ft,Wt,En){return M.ProcessingInstructionImpl._create(ft,Wt,En)},t.create_htmlCollection=function(ft,Wt){return Wt===void 0&&(Wt=e(function(){return!0},"t")),J.HTMLCollectionImpl._create(ft,Wt)},t.create_nodeList=function(ft){return Z.NodeListImpl._create(ft)},t.create_nodeListStatic=function(ft,Wt){return Q.NodeListStaticImpl._create(ft,Wt)},t.create_namedNodeMap=function(ft){return me.NamedNodeMapImpl._create(ft)},t.create_range=function(ft,Wt){return be.RangeImpl._create(ft,Wt)},t.create_nodeIterator=function(ft,Wt,En){return he.NodeIteratorImpl._create(ft,Wt,En)},t.create_treeWalker=function(ft,Wt){return _e.TreeWalkerImpl._create(ft,Wt)},t.create_nodeFilter=function(){return He.NodeFilterImpl._create()},t.create_mutationRecord=function(ft,Wt,En,fn,Gt,Kt,wt,Xt,yt){return et.MutationRecordImpl._create(ft,Wt,En,fn,Gt,Kt,wt,Xt,yt)},t.create_domTokenList=function(ft,Wt){return ut.DOMTokenListImpl._create(ft,Wt)}},function(r,t,i){"use strict";var a=this&&this.__values||function(L){var W=typeof Symbol=="function"&&Symbol.iterator,O=W&&L[W],w=0;if(O)return O.call(L);if(L&&typeof L.length=="number")return{next:e(function(){return L&&w>=L.length&&(L=void 0),{value:L&&L[w++],done:!L}},"next")};throw new TypeError(W?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0});var c=i(6),d=i(17),f=i(3),g=i(72),v=new Map;function S(L,W){if(W!==L._root&&d.tree_isAncestorOf(L._reference,W,!0)){if(L._pointerBeforeReference)for(;;){var O=d.tree_getFollowingNode(L._root,W);if(O!==null&&d.tree_isDescendantOf(L._root,O,!0)&&!d.tree_isDescendantOf(W,O,!0))return void(L._reference=O);if(O===null)return void(L._pointerBeforeReference=!1)}if(W._previousSibling===null)W._parent!==null&&(L._reference=W._parent);else{for(var w=W._previousSibling,M=d.tree_getFirstDescendantNode(W._previousSibling,!0,!1);M!==null;)M!==null&&(w=M),M=d.tree_getNextDescendantNode(W._previousSibling,M,!0,!1);L._reference=w}}}e(S,"l");function E(L,W,O,w,M){if(f.Guard.isSlot(L)&&W==="name"&&M===null){if(w===O||w===null&&O===""||w===""&&O===null)return;L._name=w===null||w===""?"":w,g.shadowTree_assignSlotablesForATree(d.tree_rootNode(L))}}e(E,"c");function A(L,W,O,w,M){if(f.Guard.isSlotable(L)&&W==="slot"&&M===null){if(w===O||w===null&&O===""||w===""&&O===null)return;L._name=w===null||w===""?"":w,g.shadowTree_isAssigned(L)&&g.shadowTree_assignSlotables(L._assignedSlot),g.shadowTree_assignASlot(L)}}e(A,"h");function C(L,W,O,w){W==="id"&&w===null&&(L._uniqueIdentifier=O||void 0)}e(C,"p"),t.dom_runRemovingSteps=function(L,W){},t.dom_runCloningSteps=function(L,W,O,w){},t.dom_runAdoptingSteps=function(L,W){},t.dom_runAttributeChangeSteps=function(L,W,O,w,M){var J,Z;c.dom.features.slots&&(A.call(L,L,W,O,w,M),E.call(L,L,W,O,w,M)),C.call(L,L,W,w,M);try{for(var Q=a(L._attributeChangeSteps),me=Q.next();!me.done;me=Q.next())me.value.call(L,L,W,O,w,M)}catch(be){J={error:be}}finally{try{me&&!me.done&&(Z=Q.return)&&Z.call(Q)}finally{if(J)throw J.error}}},t.dom_runInsertionSteps=function(L){},t.dom_runNodeIteratorPreRemovingSteps=function(L,W){S.call(L,L,W)},t.dom_hasSupportedTokens=function(L){return v.has(L)},t.dom_getSupportedTokens=function(L){return v.get(L)||new Set},t.dom_runEventConstructingSteps=function(L){},t.dom_runChildTextContentChangeSteps=function(L){}},function(r,t,i){"use strict";var a=i(4),c=i(11),d=i(46),f=i(44),g=i(16),v=i(86),S=i(124),E=i(8),A=i(14),C=i(59),L=i(13),W=i(18),O=i(27),w=i(24),M=i(56),J=i(40),Z=i(60),Q=i(61),me=i(82),be=i(190),he=i(85),_e=i(55),He=i(15),et=i(79),ut=i(21),ft=i(25),Wt=i(81),En=i(57),fn=i(45),Gt=i(58),Kt=i(5),wt=i(125),Xt=i(126),yt=i(62),Nn=i(43),kn=i(36).forEach,an=En("hidden"),Mn=Kt("toPrimitive"),ir=Nn.set,Zt=Nn.getterFor("Symbol"),Bt=Object.prototype,ht=c.Symbol,de=d("JSON","stringify"),At=_e.f,ct=He.f,Lt=be.f,jt=et.f,wn=Wt("symbols"),Cr=Wt("op-symbols"),_r=Wt("string-to-symbol-registry"),vn=Wt("symbol-to-string-registry"),Wo=Wt("wks"),Ri=c.QObject,Bs=!Ri||!Ri.prototype||!Ri.prototype.findChild,Ys=g&&E(function(){return Z(ct({},"a",{get:e(function(){return ct(this,"a",{value:7}).a},"get")})).a!=7})?function(Gn,Dr,sr){var Tr=At(Bt,Dr);Tr&&delete Bt[Dr],ct(Gn,Dr,sr),Tr&&Gn!==Bt&&ct(Bt,Dr,Tr)}:ct,Ac=e(function(Gn,Dr){var sr=wn[Gn]=Z(ht.prototype);return ir(sr,{type:"Symbol",tag:Gn,description:Dr}),g||(sr.description=Dr),sr},"ie"),za=S?function(Gn){return typeof Gn=="symbol"}:function(Gn){return Object(Gn)instanceof ht},vl=e(function(Gn,Dr,sr){Gn===Bt&&vl(Cr,Dr,sr),W(Gn);var Tr=M(Dr,!0);return W(sr),A(wn,Tr)?(sr.enumerable?(A(Gn,an)&&Gn[an][Tr]&&(Gn[an][Tr]=!1),sr=Z(sr,{enumerable:J(0,!1)})):(A(Gn,an)||ct(Gn,an,J(1,{})),Gn[an][Tr]=!0),Ys(Gn,Tr,sr)):ct(Gn,Tr,sr)},"ae"),fr=e(function(Gn,Dr){W(Gn);var sr=w(Dr),Tr=Q(sr).concat(It(sr));return kn(Tr,function(Ts){g&&!Bn.call(sr,Ts)||vl(Gn,Ts,sr[Ts])}),Gn},"se"),Bn=e(function(Gn){var Dr=M(Gn,!0),sr=jt.call(this,Dr);return!(this===Bt&&A(wn,Dr)&&!A(Cr,Dr))&&(!(sr||!A(this,Dr)||!A(wn,Dr)||A(this,an)&&this[an][Dr])||sr)},"ue"),Vt=e(function(Gn,Dr){var sr=w(Gn),Tr=M(Dr,!0);if(sr!==Bt||!A(wn,Tr)||A(Cr,Tr)){var Ts=At(sr,Tr);return!Ts||!A(wn,Tr)||A(sr,an)&&sr[an][Tr]||(Ts.enumerable=!0),Ts}},"le"),$t=e(function(Gn){var Dr=Lt(w(Gn)),sr=[];return kn(Dr,function(Tr){A(wn,Tr)||A(fn,Tr)||sr.push(Tr)}),sr},"ce"),It=e(function(Gn){var Dr=Gn===Bt,sr=Lt(Dr?Cr:w(Gn)),Tr=[];return kn(sr,function(Ts){!A(wn,Ts)||Dr&&!A(Bt,Ts)||Tr.push(wn[Ts])}),Tr},"he");v||(ft((ht=e(function(){if(this instanceof ht)throw TypeError("Symbol is not a constructor");var Gn=arguments.length&&arguments[0]!==void 0?String(arguments[0]):void 0,Dr=Gt(Gn),sr=e(function(Tr){this===Bt&&sr.call(Cr,Tr),A(this,an)&&A(this[an],Dr)&&(this[an][Dr]=!1),Ys(this,Dr,J(1,Tr))},"r");return g&&Bs&&Ys(Bt,Dr,{configurable:!0,set:sr}),Ac(Dr,Gn)},"q")).prototype,"toString",function(){return Zt(this).tag}),ft(ht,"withoutSetter",function(Gn){return Ac(Gt(Gn),Gn)}),et.f=Bn,He.f=vl,_e.f=Vt,me.f=be.f=$t,he.f=It,wt.f=function(Gn){return Ac(Kt(Gn),Gn)},g&&(ct(ht.prototype,"description",{configurable:!0,get:e(function(){return Zt(this).description},"get")}),f||ft(Bt,"propertyIsEnumerable",Bn,{unsafe:!0}))),a({global:!0,wrap:!0,forced:!v,sham:!v},{Symbol:ht}),kn(Q(Wo),function(Gn){Xt(Gn)}),a({target:"Symbol",stat:!0,forced:!v},{for:e(function(Gn){var Dr=String(Gn);if(A(_r,Dr))return _r[Dr];var sr=ht(Dr);return _r[Dr]=sr,vn[sr]=Dr,sr},"for"),keyFor:e(function(Gn){if(!za(Gn))throw TypeError(Gn+" is not a symbol");if(A(vn,Gn))return vn[Gn]},"keyFor"),useSetter:e(function(){Bs=!0},"useSetter"),useSimple:e(function(){Bs=!1},"useSimple")}),a({target:"Object",stat:!0,forced:!v,sham:!g},{create:e(function(Gn,Dr){return Dr===void 0?Z(Gn):fr(Z(Gn),Dr)},"create"),defineProperty:vl,defineProperties:fr,getOwnPropertyDescriptor:Vt}),a({target:"Object",stat:!0,forced:!v},{getOwnPropertyNames:$t,getOwnPropertySymbols:It}),a({target:"Object",stat:!0,forced:E(function(){he.f(1)})},{getOwnPropertySymbols:e(function(Gn){return he.f(O(Gn))},"getOwnPropertySymbols")}),de&&a({target:"JSON",stat:!0,forced:!v||E(function(){var Gn=ht();return de([Gn])!="[null]"||de({a:Gn})!="{}"||de(Object(Gn))!="{}"})},{stringify:e(function(Gn,Dr,sr){for(var Tr,Ts=[Gn],Cn=1;arguments.length>Cn;)Ts.push(arguments[Cn++]);if(Tr=Dr,(L(Dr)||Gn!==void 0)&&!za(Gn))return C(Dr)||(Dr=e(function(Ht,In){if(typeof Tr=="function"&&(In=Tr.call(this,Ht,In)),!za(In))return In},"t")),Ts[1]=Dr,de.apply(null,Ts)},"stringify")}),ht.prototype[Mn]||ut(ht.prototype,Mn,ht.prototype.valueOf),yt(ht,"Symbol"),fn[an]=!0},function(r,t,i){"use strict";var a=i(4),c=i(16),d=i(11),f=i(14),g=i(13),v=i(15).f,S=i(119),E=d.Symbol;if(c&&typeof E=="function"&&(!("description"in E.prototype)||E().description!==void 0)){var A={},C=e(function(){var M=arguments.length<1||arguments[0]===void 0?void 0:String(arguments[0]),J=this instanceof C?new E(M):M===void 0?E():E(M);return M===""&&(A[J]=!0),J},"p");S(C,E);var L=C.prototype=E.prototype;L.constructor=C;var W=L.toString,O=String(E("test"))=="Symbol(test)",w=/^Symbol\((.*)\)[^)]+$/;v(L,"description",{configurable:!0,get:e(function(){var M=g(this)?this.valueOf():this,J=W.call(M);if(f(A,M))return"";var Z=O?J.slice(7,-1):J.replace(w,"$1");return Z===""?void 0:Z},"get")}),a({global:!0,forced:!0},{Symbol:C})}},function(r,t,i){i(126)("iterator")},function(r,t,i){"use strict";var a,c=this&&this.__extends||(a=e(function(O,w){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(M,J){M.__proto__=J}||function(M,J){for(var Z in J)J.hasOwnProperty(Z)&&(M[Z]=J[Z])})(O,w)},"n"),function(O,w){function M(){this.constructor=O}e(M,"r"),a(O,w),O.prototype=w===null?Object.create(w):(M.prototype=w.prototype,new M)}),d=this&&this.__values||function(O){var w=typeof Symbol=="function"&&Symbol.iterator,M=w&&O[w],J=0;if(M)return M.call(O);if(O&&typeof O.length=="number")return{next:e(function(){return O&&J>=O.length&&(O=void 0),{value:O&&O[J++],done:!O}},"next")};throw new TypeError(w?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0});var f=i(6),g=i(1),v=i(70),S=i(3),E=i(9),A=i(0),C=i(152),L=i(12),W=function(O){function w(){var M=O.call(this)||this;return M._parent=null,M._firstChild=null,M._lastChild=null,M._previousSibling=null,M._nextSibling=null,M}return e(w,"t"),c(w,O),Object.defineProperty(w.prototype,"_childNodes",{get:e(function(){return this.__childNodes||(this.__childNodes=A.create_nodeList(this))},"get"),enumerable:!0,configurable:!0}),Object.defineProperty(w.prototype,"_nodeDocument",{get:e(function(){return this._nodeDocumentOverride||f.dom.window._associatedDocument},"get"),set:e(function(M){this._nodeDocumentOverride=M},"set"),enumerable:!0,configurable:!0}),Object.defineProperty(w.prototype,"_registeredObserverList",{get:e(function(){return this.__registeredObserverList||(this.__registeredObserverList=[])},"get"),enumerable:!0,configurable:!0}),Object.defineProperty(w.prototype,"nodeType",{get:e(function(){return this._nodeType},"get"),enumerable:!0,configurable:!0}),Object.defineProperty(w.prototype,"nodeName",{get:e(function(){return S.Guard.isElementNode(this)?this._htmlUppercasedQualifiedName:S.Guard.isAttrNode(this)?this._qualifiedName:S.Guard.isExclusiveTextNode(this)?"#text":S.Guard.isCDATASectionNode(this)?"#cdata-section":S.Guard.isProcessingInstructionNode(this)?this._target:S.Guard.isCommentNode(this)?"#comment":S.Guard.isDocumentNode(this)?"#document":S.Guard.isDocumentTypeNode(this)?this._name:S.Guard.isDocumentFragmentNode(this)?"#document-fragment":""},"get"),enumerable:!0,configurable:!0}),Object.defineProperty(w.prototype,"baseURI",{get:e(function(){return C.urlSerializer(this._nodeDocument._URL)},"get"),enumerable:!0,configurable:!0}),Object.defineProperty(w.prototype,"isConnected",{get:e(function(){return S.Guard.isElementNode(this)&&A.shadowTree_isConnected(this)},"get"),enumerable:!0,configurable:!0}),Object.defineProperty(w.prototype,"ownerDocument",{get:e(function(){return this._nodeType===g.NodeType.Document?null:this._nodeDocument},"get"),enumerable:!0,configurable:!0}),w.prototype.getRootNode=function(M){return A.tree_rootNode(this,!!M&&M.composed)},Object.defineProperty(w.prototype,"parentNode",{get:e(function(){return this._nodeType===g.NodeType.Attribute?null:this._parent},"get"),enumerable:!0,configurable:!0}),Object.defineProperty(w.prototype,"parentElement",{get:e(function(){return this._parent&&S.Guard.isElementNode(this._parent)?this._parent:null},"get"),enumerable:!0,configurable:!0}),w.prototype.hasChildNodes=function(){return this._firstChild!==null},Object.defineProperty(w.prototype,"childNodes",{get:e(function(){return this._childNodes},"get"),enumerable:!0,configurable:!0}),Object.defineProperty(w.prototype,"firstChild",{get:e(function(){return this._firstChild},"get"),enumerable:!0,configurable:!0}),Object.defineProperty(w.prototype,"lastChild",{get:e(function(){return this._lastChild},"get"),enumerable:!0,configurable:!0}),Object.defineProperty(w.prototype,"previousSibling",{get:e(function(){return this._previousSibling},"get"),enumerable:!0,configurable:!0}),Object.defineProperty(w.prototype,"nextSibling",{get:e(function(){return this._nextSibling},"get"),enumerable:!0,configurable:!0}),Object.defineProperty(w.prototype,"nodeValue",{get:e(function(){return S.Guard.isAttrNode(this)?this._value:S.Guard.isCharacterDataNode(this)?this._data:null},"get"),set:e(function(M){M===null&&(M=""),S.Guard.isAttrNode(this)?A.attr_setAnExistingAttributeValue(this,M):S.Guard.isCharacterDataNode(this)&&A.characterData_replaceData(this,0,this._data.length,M)},"set"),enumerable:!0,configurable:!0}),Object.defineProperty(w.prototype,"textContent",{get:e(function(){return S.Guard.isDocumentFragmentNode(this)||S.Guard.isElementNode(this)?A.text_descendantTextContent(this):S.Guard.isAttrNode(this)?this._value:S.Guard.isCharacterDataNode(this)?this._data:null},"get"),set:e(function(M){M===null&&(M=""),S.Guard.isDocumentFragmentNode(this)||S.Guard.isElementNode(this)?A.node_stringReplaceAll(M,this):S.Guard.isAttrNode(this)?A.attr_setAnExistingAttributeValue(this,M):S.Guard.isCharacterDataNode(this)&&A.characterData_replaceData(this,0,A.tree_nodeLength(this),M)},"set"),enumerable:!0,configurable:!0}),w.prototype.normalize=function(){for(var M,J,Z,Q,me=[],be=A.tree_getFirstDescendantNode(this,!1,!1,function(kn){return S.Guard.isExclusiveTextNode(kn)});be!==null;)me.push(be),be=A.tree_getNextDescendantNode(this,be,!1,!1,function(kn){return S.Guard.isExclusiveTextNode(kn)});for(var he=0;he<me.length;he++){var _e=me[he];if(_e._parent!==null){var He=A.tree_nodeLength(_e);if(He!==0){var et=[],ut="";try{for(var ft=(M=void 0,d(A.text_contiguousExclusiveTextNodes(_e))),Wt=ft.next();!Wt.done;Wt=ft.next()){var En=Wt.value;et.push(En),ut+=En._data}}catch(kn){M={error:kn}}finally{try{Wt&&!Wt.done&&(J=ft.return)&&J.call(ft)}finally{if(M)throw M.error}}if(A.characterData_replaceData(_e,He,0,ut),f.dom.rangeList.size!==0)for(var fn=_e._nextSibling;fn!==null&&S.Guard.isExclusiveTextNode(fn);){var Gt=fn,Kt=A.tree_index(Gt);try{for(var wt=(Z=void 0,d(f.dom.rangeList)),Xt=wt.next();!Xt.done;Xt=wt.next()){var yt=Xt.value;yt._start[0]===Gt&&(yt._start[0]=_e,yt._start[1]+=He),yt._end[0]===Gt&&(yt._end[0]=_e,yt._end[1]+=He),yt._start[0]===Gt._parent&&yt._start[1]===Kt&&(yt._start[0]=_e,yt._start[1]=He),yt._end[0]===Gt._parent&&yt._end[1]===Kt&&(yt._end[0]=_e,yt._end[1]=He)}}catch(kn){Z={error:kn}}finally{try{Xt&&!Xt.done&&(Q=wt.return)&&Q.call(wt)}finally{if(Z)throw Z.error}}He+=A.tree_nodeLength(fn),fn=fn._nextSibling}for(var Nn=0;Nn<et.length;Nn++)(En=et[Nn])._parent!==null&&A.mutation_remove(En,En._parent)}else A.mutation_remove(_e,_e._parent)}}},w.prototype.cloneNode=function(M){if(M===void 0&&(M=!1),S.Guard.isShadowRoot(this))throw new E.NotSupportedError;return A.node_clone(this,null,M)},w.prototype.isEqualNode=function(M){return M===void 0&&(M=null),M!==null&&A.node_equals(this,M)},w.prototype.isSameNode=function(M){return M===void 0&&(M=null),this===M},w.prototype.compareDocumentPosition=function(M){if(M===this)return 0;var J=M,Z=this,Q=null,me=null;if(S.Guard.isAttrNode(J)&&(J=(Q=J)._element),S.Guard.isAttrNode(Z)&&(Z=(me=Z)._element,Q&&J&&J===Z))for(var be=0;be<Z._attributeList.length;be++){var he=Z._attributeList[be];if(A.node_equals(he,Q))return g.Position.ImplementationSpecific|g.Position.Preceding;if(A.node_equals(he,me))return g.Position.ImplementationSpecific|g.Position.Following}return J===null||Z===null||A.tree_rootNode(J)!==A.tree_rootNode(Z)?g.Position.Disconnected|g.Position.ImplementationSpecific|(f.dom.compareCache.check(this,M)?g.Position.Preceding:g.Position.Following):!Q&&A.tree_isAncestorOf(Z,J)||me&&J===Z?g.Position.Contains|g.Position.Preceding:!me&&A.tree_isDescendantOf(Z,J)||Q&&J===Z?g.Position.ContainedBy|g.Position.Following:A.tree_isPreceding(Z,J)?g.Position.Preceding:g.Position.Following},w.prototype.contains=function(M){return M!==null&&A.tree_isDescendantOf(this,M,!0)},w.prototype.lookupPrefix=function(M){return M?S.Guard.isElementNode(this)?A.node_locateANamespacePrefix(this,M):S.Guard.isDocumentNode(this)?this.documentElement===null?null:A.node_locateANamespacePrefix(this.documentElement,M):S.Guard.isDocumentTypeNode(this)||S.Guard.isDocumentFragmentNode(this)?null:S.Guard.isAttrNode(this)?this._element===null?null:A.node_locateANamespacePrefix(this._element,M):this._parent!==null&&S.Guard.isElementNode(this._parent)?A.node_locateANamespacePrefix(this._parent,M):null:null},w.prototype.lookupNamespaceURI=function(M){return A.node_locateANamespace(this,M||null)},w.prototype.isDefaultNamespace=function(M){return M||(M=null),A.node_locateANamespace(this,null)===M},w.prototype.insertBefore=function(M,J){return A.mutation_preInsert(M,this,J)},w.prototype.appendChild=function(M){return A.mutation_append(M,this)},w.prototype.replaceChild=function(M,J){return A.mutation_replace(J,M,this)},w.prototype.removeChild=function(M){return A.mutation_preRemove(M,this)},w.prototype._getTheParent=function(M){return S.Guard.isSlotable(this)&&A.shadowTree_isAssigned(this)?this._assignedSlot:this._parent},w.ELEMENT_NODE=1,w.ATTRIBUTE_NODE=2,w.TEXT_NODE=3,w.CDATA_SECTION_NODE=4,w.ENTITY_REFERENCE_NODE=5,w.ENTITY_NODE=6,w.PROCESSING_INSTRUCTION_NODE=7,w.COMMENT_NODE=8,w.DOCUMENT_NODE=9,w.DOCUMENT_TYPE_NODE=10,w.DOCUMENT_FRAGMENT_NODE=11,w.NOTATION_NODE=12,w.DOCUMENT_POSITION_DISCONNECTED=1,w.DOCUMENT_POSITION_PRECEDING=2,w.DOCUMENT_POSITION_FOLLOWING=4,w.DOCUMENT_POSITION_CONTAINS=8,w.DOCUMENT_POSITION_CONTAINED_BY=16,w.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC=32,w}(v.EventTargetImpl);t.NodeImpl=W,W.prototype._children=new S.EmptySet,L.idl_defineConst(W.prototype,"ELEMENT_NODE",1),L.idl_defineConst(W.prototype,"ATTRIBUTE_NODE",2),L.idl_defineConst(W.prototype,"TEXT_NODE",3),L.idl_defineConst(W.prototype,"CDATA_SECTION_NODE",4),L.idl_defineConst(W.prototype,"ENTITY_REFERENCE_NODE",5),L.idl_defineConst(W.prototype,"ENTITY_NODE",6),L.idl_defineConst(W.prototype,"PROCESSING_INSTRUCTION_NODE",7),L.idl_defineConst(W.prototype,"COMMENT_NODE",8),L.idl_defineConst(W.prototype,"DOCUMENT_NODE",9),L.idl_defineConst(W.prototype,"DOCUMENT_TYPE_NODE",10),L.idl_defineConst(W.prototype,"DOCUMENT_FRAGMENT_NODE",11),L.idl_defineConst(W.prototype,"NOTATION_NODE",12),L.idl_defineConst(W.prototype,"DOCUMENT_POSITION_DISCONNECTED",1),L.idl_defineConst(W.prototype,"DOCUMENT_POSITION_PRECEDING",2),L.idl_defineConst(W.prototype,"DOCUMENT_POSITION_FOLLOWING",4),L.idl_defineConst(W.prototype,"DOCUMENT_POSITION_CONTAINS",8),L.idl_defineConst(W.prototype,"DOCUMENT_POSITION_CONTAINED_BY",16),L.idl_defineConst(W.prototype,"DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC",32)},function(r,t){r.exports=function(i){if(i==null)throw TypeError("Can't call method on "+i);return i}},function(r,t,i){var a=i(87),c=i(41),d=i(27),f=i(26),g=i(128),v=[].push,S=e(function(E){var A=E==1,C=E==2,L=E==3,W=E==4,O=E==6,w=E==5||O;return function(M,J,Z,Q){for(var me,be,he=d(M),_e=c(he),He=a(J,Z,3),et=f(_e.length),ut=0,ft=Q||g,Wt=A?ft(M,et):C?ft(M,0):void 0;et>ut;ut++)if((w||ut in _e)&&(be=He(me=_e[ut],ut,he),E)){if(A)Wt[ut]=be;else if(be)switch(E){case 3:return!0;case 5:return me;case 6:return ut;case 2:v.call(Wt,me)}else if(W)return!1}return O?-1:L||W?W:Wt}},"l");r.exports={forEach:S(0),map:S(1),filter:S(2),some:S(3),every:S(4),find:S(5),findIndex:S(6)}},function(r,t,i){"use strict";var a=this&&this.__values||function(he){var _e=typeof Symbol=="function"&&Symbol.iterator,He=_e&&he[_e],et=0;if(He)return He.call(he);if(he&&typeof he.length=="number")return{next:e(function(){return he&&et>=he.length&&(he=void 0),{value:he&&he[et++],done:!he}},"next")};throw new TypeError(_e?"Object is not iterable.":"Symbol.iterator is not defined.")},c=this&&this.__read||function(he,_e){var He=typeof Symbol=="function"&&he[Symbol.iterator];if(!He)return he;var et,ut,ft=He.call(he),Wt=[];try{for(;(_e===void 0||_e-- >0)&&!(et=ft.next()).done;)Wt.push(et.value)}catch(En){ut={error:En}}finally{try{et&&!et.done&&(He=ft.return)&&He.call(ft)}finally{if(ut)throw ut.error}}return Wt},d=this&&this.__spread||function(){for(var he=[],_e=0;_e<arguments.length;_e++)he=he.concat(c(arguments[_e]));return he};Object.defineProperty(t,"__esModule",{value:!0});var f=i(6),g=i(9),v=i(1),S=i(3),E=i(2),A=i(7),C=i(73),L=i(17),W=i(172),O=i(72),w=i(51),M=i(30),J=i(106);function Z(he,_e,He){var et,ut,ft,Wt,En,fn,Gt,Kt,wt=_e._nodeType,Xt=he._nodeType,yt=He?He._nodeType:null;if(wt!==v.NodeType.Document&&wt!==v.NodeType.DocumentFragment&&wt!==v.NodeType.Element)throw new g.HierarchyRequestError("Only document, document fragment and element nodes can contain child nodes. Parent node is "+_e.nodeName+".");if(L.tree_isHostIncludingAncestorOf(_e,he,!0))throw new g.HierarchyRequestError("The node to be inserted cannot be an inclusive ancestor of parent node. Node is "+he.nodeName+", parent node is "+_e.nodeName+".");if(He!==null&&He._parent!==_e)throw new g.NotFoundError("The reference child node cannot be found under parent node. Child node is "+He.nodeName+", parent node is "+_e.nodeName+".");if(Xt!==v.NodeType.DocumentFragment&&Xt!==v.NodeType.DocumentType&&Xt!==v.NodeType.Element&&Xt!==v.NodeType.Text&&Xt!==v.NodeType.ProcessingInstruction&&Xt!==v.NodeType.CData&&Xt!==v.NodeType.Comment)throw new g.HierarchyRequestError("Only document fragment, document type, element, text, processing instruction, cdata section or comment nodes can be inserted. Node is "+he.nodeName+".");if(Xt===v.NodeType.Text&&wt===v.NodeType.Document)throw new g.HierarchyRequestError("Cannot insert a text node as a child of a document node. Node is "+he.nodeName+".");if(Xt===v.NodeType.DocumentType&&wt!==v.NodeType.Document)throw new g.HierarchyRequestError("A document type node can only be inserted under a document node. Parent node is "+_e.nodeName+".");if(wt===v.NodeType.Document){if(Xt===v.NodeType.DocumentFragment){var Nn=0;try{for(var kn=a(he._children),an=kn.next();!an.done;an=kn.next()){var Mn=an.value;if(Mn._nodeType===v.NodeType.Element)Nn++;else if(Mn._nodeType===v.NodeType.Text)throw new g.HierarchyRequestError("Cannot insert text a node as a child of a document node. Node is "+Mn.nodeName+".")}}catch(jt){et={error:jt}}finally{try{an&&!an.done&&(ut=kn.return)&&ut.call(kn)}finally{if(et)throw et.error}}if(Nn>1)throw new g.HierarchyRequestError("A document node can only have one document element node. Document fragment to be inserted has "+Nn+" element nodes.");if(Nn===1){try{for(var ir=a(_e._children),Zt=ir.next();!Zt.done;Zt=ir.next())if(Zt.value._nodeType===v.NodeType.Element)throw new g.HierarchyRequestError("The document node already has a document element node.")}catch(jt){ft={error:jt}}finally{try{Zt&&!Zt.done&&(Wt=ir.return)&&Wt.call(ir)}finally{if(ft)throw ft.error}}if(He){if(yt===v.NodeType.DocumentType)throw new g.HierarchyRequestError("Cannot insert an element node before a document type node.");for(var Bt=He._nextSibling;Bt;){if(Bt._nodeType===v.NodeType.DocumentType)throw new g.HierarchyRequestError("Cannot insert an element node before a document type node.");Bt=Bt._nextSibling}}}}else if(Xt===v.NodeType.Element){try{for(var ht=a(_e._children),de=ht.next();!de.done;de=ht.next())if(de.value._nodeType===v.NodeType.Element)throw new g.HierarchyRequestError("Document already has a document element node. Node is "+he.nodeName+".")}catch(jt){En={error:jt}}finally{try{de&&!de.done&&(fn=ht.return)&&fn.call(ht)}finally{if(En)throw En.error}}if(He){if(yt===v.NodeType.DocumentType)throw new g.HierarchyRequestError("Cannot insert an element node before a document type node. Node is "+he.nodeName+".");for(Bt=He._nextSibling;Bt;){if(Bt._nodeType===v.NodeType.DocumentType)throw new g.HierarchyRequestError("Cannot insert an element node before a document type node. Node is "+he.nodeName+".");Bt=Bt._nextSibling}}}else if(Xt===v.NodeType.DocumentType){try{for(var At=a(_e._children),ct=At.next();!ct.done;ct=At.next())if(ct.value._nodeType===v.NodeType.DocumentType)throw new g.HierarchyRequestError("Document already has a document type node. Node is "+he.nodeName+".")}catch(jt){Gt={error:jt}}finally{try{ct&&!ct.done&&(Kt=At.return)&&Kt.call(At)}finally{if(Gt)throw Gt.error}}if(He)for(var Lt=He._previousSibling;Lt;){if(Lt._nodeType===v.NodeType.Element)throw new g.HierarchyRequestError("Cannot insert a document type node before an element node. Node is "+he.nodeName+".");Lt=Lt._previousSibling}else for(Lt=_e._firstChild;Lt;){if(Lt._nodeType===v.NodeType.Element)throw new g.HierarchyRequestError("Cannot insert a document type node before an element node. Node is "+he.nodeName+".");Lt=Lt._nextSibling}}}}e(Z,"g");function Q(he,_e,He){Z(he,_e,He);var et=He;return et===he&&(et=he._nextSibling),J.document_adopt(he,_e._nodeDocument),me(he,_e,et),he}e(Q,"b");function me(he,_e,He,et){var ut,ft;if(He!==null||he._nodeType===v.NodeType.DocumentFragment){var Wt=he._nodeType===v.NodeType.DocumentFragment?he._children.size:1;if(He!==null&&f.dom.rangeList.size!==0){var En=L.tree_index(He);try{for(var fn=a(f.dom.rangeList),Gt=fn.next();!Gt.done;Gt=fn.next()){var Kt=Gt.value;Kt._start[0]===_e&&Kt._start[1]>En&&(Kt._start[1]+=Wt),Kt._end[0]===_e&&Kt._end[1]>En&&(Kt._end[1]+=Wt)}}catch(Zt){ut={error:Zt}}finally{try{Gt&&!Gt.done&&(ft=fn.return)&&ft.call(fn)}finally{if(ut)throw ut.error}}}var wt=he._nodeType===v.NodeType.DocumentFragment?new(Array.bind.apply(Array,d([void 0],he._children))):[he];if(he._nodeType===v.NodeType.DocumentFragment)for(;he._firstChild;)be(he._firstChild,he,!0);f.dom.features.mutationObservers&&he._nodeType===v.NodeType.DocumentFragment&&w.observer_queueTreeMutationRecord(he,[],wt,null,null);for(var Xt=He?He._previousSibling:_e._lastChild,yt=He===null?-1:L.tree_index(He),Nn=0;Nn<wt.length;Nn++){var kn=wt[Nn];if(S.Guard.isElementNode(kn)&&(S.Guard.isDocumentNode(_e)&&(_e._documentElement=kn),kn._nodeDocument._hasNamespaces||kn._namespace===null&&kn._namespacePrefix===null||(kn._nodeDocument._hasNamespaces=!0)),kn._parent=_e,He===null?A.set.append(_e._children,kn):(A.set.insert(_e._children,kn,yt),yt++),_e._firstChild===null)kn._previousSibling=null,kn._nextSibling=null,_e._firstChild=kn,_e._lastChild=kn;else{var an=He?He._previousSibling:_e._lastChild,Mn=He||null;kn._previousSibling=an,kn._nextSibling=Mn,an&&(an._nextSibling=kn),Mn&&(Mn._previousSibling=kn),an||(_e._firstChild=kn),Mn||(_e._lastChild=kn)}f.dom.features.slots&&_e._shadowRoot!==null&&S.Guard.isSlotable(kn)&&O.shadowTree_assignASlot(kn),f.dom.features.steps&&S.Guard.isTextNode(kn)&&M.dom_runChildTextContentChangeSteps(_e),f.dom.features.slots&&S.Guard.isShadowRoot(L.tree_rootNode(_e))&&S.Guard.isSlot(_e)&&E.isEmpty(_e._assignedNodes)&&O.shadowTree_signalASlotChange(_e),f.dom.features.slots&&O.shadowTree_assignSlotablesForATree(L.tree_rootNode(kn));for(var ir=L.tree_getFirstDescendantNode(kn,!0,!0);ir!==null;)f.dom.features.steps&&M.dom_runInsertionSteps(ir),f.dom.features.customElements&&S.Guard.isElementNode(ir)&&O.shadowTree_isConnected(ir)&&(S.Guard.isCustomElementNode(ir)?C.customElement_enqueueACustomElementCallbackReaction(ir,"connectedCallback",[]):C.customElement_tryToUpgrade(ir)),ir=L.tree_getNextDescendantNode(kn,ir,!0,!0)}f.dom.features.mutationObservers&&(et||w.observer_queueTreeMutationRecord(_e,wt,[],Xt,He))}else(function(Zt,Bt,ht){var de=Bt._lastChild;if(S.Guard.isElementNode(Zt)&&(S.Guard.isDocumentNode(Bt)&&(Bt._documentElement=Zt),Zt._nodeDocument._hasNamespaces||Zt._namespace===null&&Zt._namespacePrefix===null||(Zt._nodeDocument._hasNamespaces=!0)),Zt._parent=Bt,Bt._children.add(Zt),Bt._firstChild===null)Zt._previousSibling=null,Zt._nextSibling=null,Bt._firstChild=Zt,Bt._lastChild=Zt;else{var At=Bt._lastChild;Zt._previousSibling=At,Zt._nextSibling=null,At&&(At._nextSibling=Zt),At||(Bt._firstChild=Zt),Bt._lastChild=Zt}f.dom.features.slots&&Bt._shadowRoot!==null&&S.Guard.isSlotable(Zt)&&O.shadowTree_assignASlot(Zt),f.dom.features.steps&&S.Guard.isTextNode(Zt)&&M.dom_runChildTextContentChangeSteps(Bt),f.dom.features.slots&&S.Guard.isShadowRoot(L.tree_rootNode(Bt))&&S.Guard.isSlot(Bt)&&E.isEmpty(Bt._assignedNodes)&&O.shadowTree_signalASlotChange(Bt),f.dom.features.slots&&O.shadowTree_assignSlotablesForATree(L.tree_rootNode(Zt)),f.dom.features.steps&&M.dom_runInsertionSteps(Zt),f.dom.features.customElements&&S.Guard.isElementNode(Zt)&&O.shadowTree_isConnected(Zt)&&(S.Guard.isCustomElementNode(Zt)?C.customElement_enqueueACustomElementCallbackReaction(Zt,"connectedCallback",[]):C.customElement_tryToUpgrade(Zt)),f.dom.features.mutationObservers&&(ht||w.observer_queueTreeMutationRecord(Bt,[Zt],[],de,null))})(he,_e,et)}e(me,"x");function be(he,_e,He){var et,ut,ft,Wt,En,fn,Gt,Kt;if(f.dom.rangeList.size!==0){var wt=L.tree_index(he);try{for(var Xt=a(f.dom.rangeList),yt=Xt.next();!yt.done;yt=Xt.next()){var Nn=yt.value;L.tree_isDescendantOf(he,Nn._start[0],!0)&&(Nn._start=[_e,wt]),L.tree_isDescendantOf(he,Nn._end[0],!0)&&(Nn._end=[_e,wt]),Nn._start[0]===_e&&Nn._start[1]>wt&&Nn._start[1]--,Nn._end[0]===_e&&Nn._end[1]>wt&&Nn._end[1]--}}catch(_r){et={error:_r}}finally{try{yt&&!yt.done&&(ut=Xt.return)&&ut.call(Xt)}finally{if(et)throw et.error}}try{for(var kn=a(f.dom.rangeList),an=kn.next();!an.done;an=kn.next())(Nn=an.value)._start[0]===_e&&Nn._start[1]>wt&&(Nn._start[1]-=1),Nn._end[0]===_e&&Nn._end[1]>wt&&(Nn._end[1]-=1)}catch(_r){ft={error:_r}}finally{try{an&&!an.done&&(Wt=kn.return)&&Wt.call(kn)}finally{if(ft)throw ft.error}}}if(f.dom.features.steps)try{for(var Mn=a(W.nodeIterator_iteratorList()),ir=Mn.next();!ir.done;ir=Mn.next()){var Zt=ir.value;Zt._root._nodeDocument===he._nodeDocument&&M.dom_runNodeIteratorPreRemovingSteps(Zt,he)}}catch(_r){En={error:_r}}finally{try{ir&&!ir.done&&(fn=Mn.return)&&fn.call(Mn)}finally{if(En)throw En.error}}var Bt=he._previousSibling,ht=he._nextSibling;S.Guard.isDocumentNode(_e)&&S.Guard.isElementNode(he)&&(_e._documentElement=null),he._parent=null,_e._children.delete(he);var de=he._previousSibling,At=he._nextSibling;he._previousSibling=null,he._nextSibling=null,de&&(de._nextSibling=At),At&&(At._previousSibling=de),de||(_e._firstChild=At),At||(_e._lastChild=de),f.dom.features.slots&&S.Guard.isSlotable(he)&&he._assignedSlot!==null&&O.shadowTree_isAssigned(he)&&O.shadowTree_assignSlotables(he._assignedSlot),f.dom.features.slots&&S.Guard.isShadowRoot(L.tree_rootNode(_e))&&S.Guard.isSlot(_e)&&E.isEmpty(_e._assignedNodes)&&O.shadowTree_signalASlotChange(_e),f.dom.features.slots&&L.tree_getFirstDescendantNode(he,!0,!1,function(_r){return S.Guard.isSlot(_r)})!==null&&(O.shadowTree_assignSlotablesForATree(L.tree_rootNode(_e)),O.shadowTree_assignSlotablesForATree(he)),f.dom.features.steps&&M.dom_runRemovingSteps(he,_e),f.dom.features.customElements&&S.Guard.isCustomElementNode(he)&&C.customElement_enqueueACustomElementCallbackReaction(he,"disconnectedCallback",[]);for(var ct=L.tree_getFirstDescendantNode(he,!1,!0);ct!==null;)f.dom.features.steps&&M.dom_runRemovingSteps(ct,he),f.dom.features.customElements&&S.Guard.isCustomElementNode(ct)&&C.customElement_enqueueACustomElementCallbackReaction(ct,"disconnectedCallback",[]),ct=L.tree_getNextDescendantNode(he,ct,!1,!0);if(f.dom.features.mutationObservers)for(var Lt=L.tree_getFirstAncestorNode(_e,!0);Lt!==null;){try{for(var jt=(Gt=void 0,a(Lt._registeredObserverList)),wn=jt.next();!wn.done;wn=jt.next()){var Cr=wn.value;Cr.options.subtree&&he._registeredObserverList.push({observer:Cr.observer,options:Cr.options,source:Cr})}}catch(_r){Gt={error:_r}}finally{try{wn&&!wn.done&&(Kt=jt.return)&&Kt.call(jt)}finally{if(Gt)throw Gt.error}}Lt=L.tree_getNextAncestorNode(_e,Lt,!0)}f.dom.features.mutationObservers&&(He||w.observer_queueTreeMutationRecord(_e,[],[he],Bt,ht)),f.dom.features.steps&&S.Guard.isTextNode(he)&&M.dom_runChildTextContentChangeSteps(_e)}e(be,"w"),t.mutation_ensurePreInsertionValidity=Z,t.mutation_preInsert=Q,t.mutation_insert=me,t.mutation_append=function(he,_e){return Q(he,_e,null)},t.mutation_replace=function(he,_e,He){var et,ut,ft,Wt,En,fn,Gt,Kt;if(He._nodeType!==v.NodeType.Document&&He._nodeType!==v.NodeType.DocumentFragment&&He._nodeType!==v.NodeType.Element)throw new g.HierarchyRequestError("Only document, document fragment and element nodes can contain child nodes. Parent node is "+He.nodeName+".");if(L.tree_isHostIncludingAncestorOf(He,_e,!0))throw new g.HierarchyRequestError("The node to be inserted cannot be an ancestor of parent node. Node is "+_e.nodeName+", parent node is "+He.nodeName+".");if(he._parent!==He)throw new g.NotFoundError("The reference child node cannot be found under parent node. Child node is "+he.nodeName+", parent node is "+He.nodeName+".");if(_e._nodeType!==v.NodeType.DocumentFragment&&_e._nodeType!==v.NodeType.DocumentType&&_e._nodeType!==v.NodeType.Element&&_e._nodeType!==v.NodeType.Text&&_e._nodeType!==v.NodeType.ProcessingInstruction&&_e._nodeType!==v.NodeType.CData&&_e._nodeType!==v.NodeType.Comment)throw new g.HierarchyRequestError("Only document fragment, document type, element, text, processing instruction, cdata section or comment nodes can be inserted. Node is "+_e.nodeName+".");if(_e._nodeType===v.NodeType.Text&&He._nodeType===v.NodeType.Document)throw new g.HierarchyRequestError("Cannot insert a text node as a child of a document node. Node is "+_e.nodeName+".");if(_e._nodeType===v.NodeType.DocumentType&&He._nodeType!==v.NodeType.Document)throw new g.HierarchyRequestError("A document type node can only be inserted under a document node. Parent node is "+He.nodeName+".");if(He._nodeType===v.NodeType.Document){if(_e._nodeType===v.NodeType.DocumentFragment){var wt=0;try{for(var Xt=a(_e._children),yt=Xt.next();!yt.done;yt=Xt.next()){var Nn=yt.value;if(Nn._nodeType===v.NodeType.Element)wt++;else if(Nn._nodeType===v.NodeType.Text)throw new g.HierarchyRequestError("Cannot insert text a node as a child of a document node. Node is "+Nn.nodeName+".")}}catch(Cr){et={error:Cr}}finally{try{yt&&!yt.done&&(ut=Xt.return)&&ut.call(Xt)}finally{if(et)throw et.error}}if(wt>1)throw new g.HierarchyRequestError("A document node can only have one document element node. Document fragment to be inserted has "+wt+" element nodes.");if(wt===1){try{for(var kn=a(He._children),an=kn.next();!an.done;an=kn.next())if((de=an.value)._nodeType===v.NodeType.Element&&de!==he)throw new g.HierarchyRequestError("The document node already has a document element node.")}catch(Cr){ft={error:Cr}}finally{try{an&&!an.done&&(Wt=kn.return)&&Wt.call(kn)}finally{if(ft)throw ft.error}}for(var Mn=he._nextSibling;Mn;){if(Mn._nodeType===v.NodeType.DocumentType)throw new g.HierarchyRequestError("Cannot insert an element node before a document type node.");Mn=Mn._nextSibling}}}else if(_e._nodeType===v.NodeType.Element){try{for(var ir=a(He._children),Zt=ir.next();!Zt.done;Zt=ir.next())if((de=Zt.value)._nodeType===v.NodeType.Element&&de!==he)throw new g.HierarchyRequestError("Document already has a document element node. Node is "+_e.nodeName+".")}catch(Cr){En={error:Cr}}finally{try{Zt&&!Zt.done&&(fn=ir.return)&&fn.call(ir)}finally{if(En)throw En.error}}for(Mn=he._nextSibling;Mn;){if(Mn._nodeType===v.NodeType.DocumentType)throw new g.HierarchyRequestError("Cannot insert an element node before a document type node. Node is "+_e.nodeName+".");Mn=Mn._nextSibling}}else if(_e._nodeType===v.NodeType.DocumentType){try{for(var Bt=a(He._children),ht=Bt.next();!ht.done;ht=Bt.next()){var de;if((de=ht.value)._nodeType===v.NodeType.DocumentType&&de!==he)throw new g.HierarchyRequestError("Document already has a document type node. Node is "+_e.nodeName+".")}}catch(Cr){Gt={error:Cr}}finally{try{ht&&!ht.done&&(Kt=Bt.return)&&Kt.call(Bt)}finally{if(Gt)throw Gt.error}}for(var At=he._previousSibling;At;){if(At._nodeType===v.NodeType.Element)throw new g.HierarchyRequestError("Cannot insert a document type node before an element node. Node is "+_e.nodeName+".");At=At._previousSibling}}}var ct=he._nextSibling;ct===_e&&(ct=_e._nextSibling);var Lt=he._previousSibling;J.document_adopt(_e,He._nodeDocument);var jt=[];he._parent!==null&&(jt.push(he),be(he,he._parent,!0));var wn=[];return _e._nodeType===v.NodeType.DocumentFragment?wn=Array.from(_e._children):wn.push(_e),me(_e,He,ct,!0),f.dom.features.mutationObservers&&w.observer_queueTreeMutationRecord(He,wn,jt,Lt,ct),he},t.mutation_replaceAll=function(he,_e){var He,et;he!==null&&J.document_adopt(he,_e._nodeDocument);var ut=Array.from(_e._children),ft=[];he&&he._nodeType===v.NodeType.DocumentFragment?ft=Array.from(he._children):he!==null&&ft.push(he);try{for(var Wt=a(ut),En=Wt.next();!En.done;En=Wt.next())be(En.value,_e,!0)}catch(fn){He={error:fn}}finally{try{En&&!En.done&&(et=Wt.return)&&et.call(Wt)}finally{if(He)throw He.error}}he!==null&&me(he,_e,null,!0),f.dom.features.mutationObservers&&w.observer_queueTreeMutationRecord(_e,ft,ut,null,null)},t.mutation_preRemove=function(he,_e){if(he._parent!==_e)throw new g.NotFoundError("The child node cannot be found under parent node. Child node is "+he.nodeName+", parent node is "+_e.nodeName+".");return be(he,_e),he},t.mutation_remove=be},function(r,t,i){"use strict";function a(c){return c==null}e(a,"n"),r.exports.isNothing=a,r.exports.isObject=function(c){return typeof c=="object"&&c!==null},r.exports.toArray=function(c){return Array.isArray(c)?c:a(c)?[]:[c]},r.exports.repeat=function(c,d){var f,g="";for(f=0;f<d;f+=1)g+=c;return g},r.exports.isNegativeZero=function(c){return c===0&&Number.NEGATIVE_INFINITY===1/c},r.exports.extend=function(c,d){var f,g,v,S;if(d)for(f=0,g=(S=Object.keys(d)).length;f<g;f+=1)c[v=S[f]]=d[v];return c}},function(r,t,i){"use strict";var a=i(38),c=i(53),d=i(10);function f(v,S,E){var A=[];return v.include.forEach(function(C){E=f(C,S,E)}),v[S].forEach(function(C){E.forEach(function(L,W){L.tag===C.tag&&L.kind===C.kind&&A.push(W)}),E.push(C)}),E.filter(function(C,L){return A.indexOf(L)===-1})}e(f,"a");function g(v){this.include=v.include||[],this.implicit=v.implicit||[],this.explicit=v.explicit||[],this.implicit.forEach(function(S){if(S.loadKind&&S.loadKind!=="scalar")throw new c("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.")}),this.compiledImplicit=f(this,"implicit",[]),this.compiledExplicit=f(this,"explicit",[]),this.compiledTypeMap=function(){var S,E,A={scalar:{},sequence:{},mapping:{},fallback:{}};function C(L){A[L.kind][L.tag]=A.fallback[L.tag]=L}for(e(C,"n"),S=0,E=arguments.length;S<E;S+=1)arguments[S].forEach(C);return A}(this.compiledImplicit,this.compiledExplicit)}e(g,"s"),g.DEFAULT=null,g.create=function(){var v,S;switch(arguments.length){case 1:v=g.DEFAULT,S=arguments[0];break;case 2:v=arguments[0],S=arguments[1];break;default:throw new c("Wrong number of arguments for Schema.create function")}if(v=a.toArray(v),S=a.toArray(S),!v.every(function(E){return E instanceof g}))throw new c("Specified list of super schemas (or a single Schema object) contains a non-Schema object.");if(!S.every(function(E){return E instanceof d}))throw new c("Specified list of YAML types (or a single Type object) contains a non-Type object.");return new g({include:v,explicit:S})},r.exports=g},function(r,t){r.exports=function(i,a){return{enumerable:!(1&i),configurable:!(2&i),writable:!(4&i),value:a}}},function(r,t,i){var a=i(8),c=i(42),d="".split;r.exports=a(function(){return!Object("z").propertyIsEnumerable(0)})?function(f){return c(f)=="String"?d.call(f,""):Object(f)}:Object},function(r,t){var i={}.toString;r.exports=function(a){return i.call(a).slice(8,-1)}},function(r,t,i){var a,c,d,f=i(186),g=i(11),v=i(13),S=i(21),E=i(14),A=i(57),C=i(45),L=g.WeakMap;if(f){var W=new L,O=W.get,w=W.has,M=W.set;a=e(function(Z,Q){return M.call(W,Z,Q),Q},"n"),c=e(function(Z){return O.call(W,Z)||{}},"i"),d=e(function(Z){return w.call(W,Z)},"o")}else{var J=A("state");C[J]=!0,a=e(function(Z,Q){return S(Z,J,Q),Q},"n"),c=e(function(Z){return E(Z,J)?Z[J]:{}},"i"),d=e(function(Z){return E(Z,J)},"o")}r.exports={set:a,get:c,has:d,enforce:e(function(Z){return d(Z)?c(Z):a(Z,{})},"enforce"),getterFor:e(function(Z){return function(Q){var me;if(!v(Q)||(me=c(Q)).type!==Z)throw TypeError("Incompatible receiver, "+Z+" required");return me}},"getterFor")}},function(r,t){r.exports=!1},function(r,t){r.exports={}},function(r,t,i){var a=i(120),c=i(11),d=e(function(f){return typeof f=="function"?f:void 0},"o");r.exports=function(f,g){return arguments.length<2?d(a[f])||d(c[f]):a[f]&&a[f][g]||c[f]&&c[f][g]}},function(r,t){var i=Math.ceil,a=Math.floor;r.exports=function(c){return isNaN(c=+c)?0:(c>0?a:i)(c)}},function(r,t,i){"use strict";var a=i(8);r.exports=function(c,d){var f=[][c];return!!f&&a(function(){f.call(null,d||function(){throw 1},1)})}},function(r,t){r.exports={}},function(r,t,i){"use strict";i(31),i(32),i(33),i(220),i(64),i(19),i(65),i(20),i(68),i(66),i(92),i(144),i(22),i(94),i(23);var a=this&&this.__values||function(L){var W=typeof Symbol=="function"&&Symbol.iterator,O=W&&L[W],w=0;if(O)return O.call(L);if(L&&typeof L.length=="number")return{next:e(function(){return L&&w>=L.length&&(L=void 0),{value:L&&L[w++],done:!L}},"next")};throw new TypeError(W?"Object is not iterable.":"Symbol.iterator is not defined.")},c=this&&this.__read||function(L,W){var O=typeof Symbol=="function"&&L[Symbol.iterator];if(!O)return L;var w,M,J=O.call(L),Z=[];try{for(;(W===void 0||W-- >0)&&!(w=J.next()).done;)Z.push(w.value)}catch(Q){M={error:Q}}finally{try{w&&!w.done&&(O=J.return)&&O.call(J)}finally{if(M)throw M.error}}return Z},d=this&&this.__spread||function(){for(var L=[],W=0;W<arguments.length;W++)L=L.concat(c(arguments[W]));return L};Object.defineProperty(t,"__esModule",{value:!0});var f=i(1),g=i(69),v=i(95),S=i(7),E=i(0),A=i(258),C=function(){function L(W){this.level=0,this._builderOptions=W}return e(L,"e"),L.prototype.declaration=function(W,O,w){},L.prototype.docType=function(W,O,w){},L.prototype.comment=function(W){},L.prototype.text=function(W){},L.prototype.instruction=function(W,O){},L.prototype.cdata=function(W){},L.prototype.openTagBegin=function(W){},L.prototype.openTagEnd=function(W,O,w){},L.prototype.closeTag=function(W){},L.prototype.attributes=function(W){var O,w;try{for(var M=a(W),J=M.next();!J.done;J=M.next()){var Z=J.value;this.attribute(Z[1]===null?Z[2]:Z[1]+":"+Z[2],Z[3])}}catch(Q){O={error:Q}}finally{try{J&&!J.done&&(w=M.return)&&w.call(M)}finally{if(O)throw O.error}}},L.prototype.attribute=function(W,O){},L.prototype.beginElement=function(W){},L.prototype.endElement=function(W){},L.prototype.serializeNode=function(W,O){var w=W._nodeDocument!==void 0&&W._nodeDocument._hasNamespaces;if(this.level=0,this.currentNode=W,w){var M=new v.NamespacePrefixMap;M.set("xml",S.namespace.XML),this._serializeNodeNS(W,null,M,{value:1},O)}else this._serializeNode(W,O)},L.prototype._serializeNodeNS=function(W,O,w,M,J){switch(this.currentNode=W,W.nodeType){case f.NodeType.Element:this._serializeElementNS(W,O,w,M,J);break;case f.NodeType.Document:this._serializeDocumentNS(W,O,w,M,J);break;case f.NodeType.Comment:this._serializeComment(W,J);break;case f.NodeType.Text:this._serializeText(W,J);break;case f.NodeType.DocumentFragment:this._serializeDocumentFragmentNS(W,O,w,M,J);break;case f.NodeType.DocumentType:this._serializeDocumentType(W,J);break;case f.NodeType.ProcessingInstruction:this._serializeProcessingInstruction(W,J);break;case f.NodeType.CData:this._serializeCData(W,J);break;default:throw new Error("Unknown node type: "+W.nodeType)}},L.prototype._serializeNode=function(W,O){switch(this.currentNode=W,W.nodeType){case f.NodeType.Element:this._serializeElement(W,O);break;case f.NodeType.Document:this._serializeDocument(W,O);break;case f.NodeType.Comment:this._serializeComment(W,O);break;case f.NodeType.Text:this._serializeText(W,O);break;case f.NodeType.DocumentFragment:this._serializeDocumentFragment(W,O);break;case f.NodeType.DocumentType:this._serializeDocumentType(W,O);break;case f.NodeType.ProcessingInstruction:this._serializeProcessingInstruction(W,O);break;case f.NodeType.CData:this._serializeCData(W,O);break;default:throw new Error("Unknown node type: "+W.nodeType)}},L.prototype._serializeElementNS=function(W,O,w,M,J){var Z,Q,me=[];if(J&&(W.localName.indexOf(":")!==-1||!E.xml_isName(W.localName)))throw new Error("Node local name contains invalid characters (well-formed required).");var be="",he=!1,_e=!1,He=w.copy(),et={},ut=this._recordNamespaceInformation(W,He,et),ft=O,Wt=W.namespaceURI;if(ft===Wt)ut!==null&&(_e=!0),be=Wt===S.namespace.XML?"xml:"+W.localName:W.localName,this.beginElement(be),this.openTagBegin(be);else{var En=W.prefix,fn=null;if(En===null&&Wt===ut||(fn=He.get(En,Wt)),En==="xmlns"){if(J)throw new Error("An element cannot have the 'xmlns' prefix (well-formed required).");fn=En}fn!==null?(be=fn+":"+W.localName,ut!==null&&ut!==S.namespace.XML&&(ft=ut||null),this.beginElement(be),this.openTagBegin(be)):En!==null?(En in et&&(En=this._generatePrefix(Wt,He,M)),He.set(En,Wt),be+=En+":"+W.localName,this.beginElement(be),this.openTagBegin(be),me.push([null,"xmlns",En,this._serializeAttributeValue(Wt,J)]),ut!==null&&(ft=ut||null)):ut===null||ut!==null&&ut!==Wt?(_e=!0,be+=W.localName,ft=Wt,this.beginElement(be),this.openTagBegin(be),me.push([null,null,"xmlns",this._serializeAttributeValue(Wt,J)])):(be+=W.localName,ft=Wt,this.beginElement(be),this.openTagBegin(be))}me.push.apply(me,d(this._serializeAttributesNS(W,He,M,et,_e,J))),this.attributes(me);var Gt=Wt===S.namespace.HTML;if(Gt&&W.childNodes.length===0&&L._VoidElementNames.has(W.localName)?(this.openTagEnd(be,!0,!0),this.endElement(be),he=!0):Gt||W.childNodes.length!==0?this.openTagEnd(be,!1,!1):(this.openTagEnd(be,!0,!1),this.endElement(be),he=!0),!he){if(!(Gt&&W.localName==="template"))try{for(var Kt=a(W.childNodes),wt=Kt.next();!wt.done;wt=Kt.next()){var Xt=wt.value;this.level++,this._serializeNodeNS(Xt,ft,He,M,J),this.level--}}catch(yt){Z={error:yt}}finally{try{wt&&!wt.done&&(Q=Kt.return)&&Q.call(Kt)}finally{if(Z)throw Z.error}}this.closeTag(be),this.endElement(be)}},L.prototype._serializeElement=function(W,O){var w,M;if(O&&(W.localName.indexOf(":")!==-1||!E.xml_isName(W.localName)))throw new Error("Node local name contains invalid characters (well-formed required).");var J=!1,Z=W.localName;this.beginElement(Z),this.openTagBegin(Z);var Q=this._serializeAttributes(W,O);if(this.attributes(Q),W.hasChildNodes()?this.openTagEnd(Z,!1,!1):(this.openTagEnd(Z,!0,!1),this.endElement(Z),J=!0),!J){try{for(var me=a(W._children),be=me.next();!be.done;be=me.next()){var he=be.value;this.level++,this._serializeNode(he,O),this.level--}}catch(_e){w={error:_e}}finally{try{be&&!be.done&&(M=me.return)&&M.call(me)}finally{if(w)throw w.error}}this.closeTag(Z),this.endElement(Z)}},L.prototype._serializeDocumentNS=function(W,O,w,M,J){var Z,Q;if(J&&W.documentElement===null)throw new Error("Missing document element (well-formed required).");try{for(var me=a(W.childNodes),be=me.next();!be.done;be=me.next()){var he=be.value;this._serializeNodeNS(he,O,w,M,J)}}catch(_e){Z={error:_e}}finally{try{be&&!be.done&&(Q=me.return)&&Q.call(me)}finally{if(Z)throw Z.error}}},L.prototype._serializeDocument=function(W,O){var w,M;if(O&&W.documentElement===null)throw new Error("Missing document element (well-formed required).");try{for(var J=a(W._children),Z=J.next();!Z.done;Z=J.next()){var Q=Z.value;this._serializeNode(Q,O)}}catch(me){w={error:me}}finally{try{Z&&!Z.done&&(M=J.return)&&M.call(J)}finally{if(w)throw w.error}}},L.prototype._serializeComment=function(W,O){if(O&&(!E.xml_isLegalChar(W.data)||W.data.indexOf("--")!==-1||W.data.endsWith("-")))throw new Error("Comment data contains invalid characters (well-formed required).");this.comment(W.data)},L.prototype._serializeText=function(W,O){if(O&&!E.xml_isLegalChar(W.data))throw new Error("Text data contains invalid characters (well-formed required).");var w=W.data.replace(A.nonEntityAmpersandRegex,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;");this.text(w)},L.prototype._serializeDocumentFragmentNS=function(W,O,w,M,J){var Z,Q;try{for(var me=a(W.childNodes),be=me.next();!be.done;be=me.next()){var he=be.value;this._serializeNodeNS(he,O,w,M,J)}}catch(_e){Z={error:_e}}finally{try{be&&!be.done&&(Q=me.return)&&Q.call(me)}finally{if(Z)throw Z.error}}},L.prototype._serializeDocumentFragment=function(W,O){var w,M;try{for(var J=a(W._children),Z=J.next();!Z.done;Z=J.next()){var Q=Z.value;this._serializeNode(Q,O)}}catch(me){w={error:me}}finally{try{Z&&!Z.done&&(M=J.return)&&M.call(J)}finally{if(w)throw w.error}}},L.prototype._serializeDocumentType=function(W,O){if(O&&!E.xml_isPubidChar(W.publicId))throw new Error("DocType public identifier does not match PubidChar construct (well-formed required).");if(O&&(!E.xml_isLegalChar(W.systemId)||W.systemId.indexOf('"')!==-1&&W.systemId.indexOf("'")!==-1))throw new Error("DocType system identifier contains invalid characters (well-formed required).");this.docType(W.name,W.publicId,W.systemId)},L.prototype._serializeProcessingInstruction=function(W,O){if(O&&(W.target.indexOf(":")!==-1||/^xml$/i.test(W.target)))throw new Error("Processing instruction target contains invalid characters (well-formed required).");if(O&&(!E.xml_isLegalChar(W.data)||W.data.indexOf("?>")!==-1))throw new Error("Processing instruction data contains invalid characters (well-formed required).");this.instruction(W.target,W.data)},L.prototype._serializeCData=function(W,O){if(O&&W.data.indexOf("]]>")!==-1)throw new Error("CDATA contains invalid characters (well-formed required).");this.cdata(W.data)},L.prototype._serializeAttributesNS=function(W,O,w,M,J,Z){var Q,me,be=[],he=Z?new g.LocalNameSet:void 0;try{for(var _e=a(W.attributes),He=_e.next();!He.done;He=_e.next()){var et=He.value;if(Z||J||et.namespaceURI!==null){if(Z&&he&&he.has(et.namespaceURI,et.localName))throw new Error("Element contains duplicate attributes (well-formed required).");Z&&he&&he.set(et.namespaceURI,et.localName);var ut=et.namespaceURI,ft=null;if(ut!==null)if(ft=O.get(et.prefix,ut),ut===S.namespace.XMLNS){if(et.value===S.namespace.XML||et.prefix===null&&J||et.prefix!==null&&(!(et.localName in M)||M[et.localName]!==et.value)&&O.has(et.localName,et.value))continue;if(Z&&et.value===S.namespace.XMLNS)throw new Error("XMLNS namespace is reserved (well-formed required).");if(Z&&et.value==="")throw new Error("Namespace prefix declarations cannot be used to undeclare a namespace (well-formed required).");et.prefix==="xmlns"&&(ft="xmlns")}else ft===null&&(ft=et.prefix===null||O.hasPrefix(et.prefix)&&!O.has(et.prefix,ut)?this._generatePrefix(ut,O,w):et.prefix,be.push([null,"xmlns",ft,this._serializeAttributeValue(ut,Z)]));if(Z&&(et.localName.indexOf(":")!==-1||!E.xml_isName(et.localName)||et.localName==="xmlns"&&ut===null))throw new Error("Attribute local name contains invalid characters (well-formed required).");be.push([ut,ft,et.localName,this._serializeAttributeValue(et.value,Z)])}else be.push([null,null,et.localName,this._serializeAttributeValue(et.value,Z)])}}catch(Wt){Q={error:Wt}}finally{try{He&&!He.done&&(me=_e.return)&&me.call(_e)}finally{if(Q)throw Q.error}}return be},L.prototype._serializeAttributes=function(W,O){var w,M,J=[],Z=O?{}:void 0;try{for(var Q=a(W.attributes),me=Q.next();!me.done;me=Q.next()){var be=me.value;if(O){if(O&&Z&&be.localName in Z)throw new Error("Element contains duplicate attributes (well-formed required).");if(O&&Z&&(Z[be.localName]=!0),O&&(be.localName.indexOf(":")!==-1||!E.xml_isName(be.localName)))throw new Error("Attribute local name contains invalid characters (well-formed required).");J.push([null,null,be.localName,this._serializeAttributeValue(be.value,O)])}else J.push([null,null,be.localName,this._serializeAttributeValue(be.value,O)])}}catch(he){w={error:he}}finally{try{me&&!me.done&&(M=Q.return)&&M.call(Q)}finally{if(w)throw w.error}}return J},L.prototype._recordNamespaceInformation=function(W,O,w){var M,J,Z=null;try{for(var Q=a(W.attributes),me=Q.next();!me.done;me=Q.next()){var be=me.value,he=be.namespaceURI,_e=be.prefix;if(he===S.namespace.XMLNS){if(_e===null){Z=be.value;continue}var He=be.localName,et=be.value;if(et===S.namespace.XML||(et===""&&(et=null),O.has(He,et)))continue;O.set(He,et),w[He]=et||""}}}catch(ut){M={error:ut}}finally{try{me&&!me.done&&(J=Q.return)&&J.call(Q)}finally{if(M)throw M.error}}return Z},L.prototype._generatePrefix=function(W,O,w){var M="ns"+w.value.toString();return w.value++,O.set(M,W),M},L.prototype._serializeAttributeValue=function(W,O){if(O&&W!==null&&!E.xml_isLegalChar(W))throw new Error("Invalid characters in attribute value.");return W===null?"":W.replace(A.nonEntityAmpersandRegex,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")},L._VoidElementNames=new Set(["area","base","basefont","bgsound","br","col","embed","frame","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"]),L}();t.BaseWriter=C},function(r,t,i){"use strict";var a=this&&this.__values||function(W){var O=typeof Symbol=="function"&&Symbol.iterator,w=O&&W[O],M=0;if(w)return w.call(W);if(W&&typeof W.length=="number")return{next:e(function(){return W&&M>=W.length&&(W=void 0),{value:W&&W[M++],done:!W}},"next")};throw new TypeError(O?"Object is not iterable.":"Symbol.iterator is not defined.")},c=this&&this.__read||function(W,O){var w=typeof Symbol=="function"&&W[Symbol.iterator];if(!w)return W;var M,J,Z=w.call(W),Q=[];try{for(;(O===void 0||O-- >0)&&!(M=Z.next()).done;)Q.push(M.value)}catch(me){J={error:me}}finally{try{M&&!M.done&&(w=Z.return)&&w.call(Z)}finally{if(J)throw J.error}}return Q};Object.defineProperty(t,"__esModule",{value:!0});var d=i(6),f=i(3),g=i(7),v=i(29),S=i(17),E=i(97);function A(){var W=d.dom.window;W._mutationObserverMicrotaskQueued||(W._mutationObserverMicrotaskQueued=!0,Promise.resolve().then(function(){C()}))}e(A,"h");function C(){var W,O,w,M,J=d.dom.window;J._mutationObserverMicrotaskQueued=!1;var Z=g.set.clone(J._mutationObservers),Q=g.set.clone(J._signalSlots);g.set.empty(J._signalSlots);var me=e(function(ut){var ft=g.list.clone(ut._recordQueue);g.list.empty(ut._recordQueue);for(var Wt=0;Wt<ut._nodeList.length;Wt++){var En=ut._nodeList[Wt];g.list.remove(En._registeredObserverList,function(fn){return f.Guard.isTransientRegisteredObserver(fn)&&fn.observer===ut})}if(!g.list.isEmpty(ft))try{ut._callback.call(ut,ft,ut)}catch{}},"p");try{for(var be=a(Z),he=be.next();!he.done;he=be.next())me(he.value)}catch(ut){W={error:ut}}finally{try{he&&!he.done&&(O=be.return)&&O.call(be)}finally{if(W)throw W.error}}if(d.dom.features.slots)try{for(var _e=a(Q),He=_e.next();!He.done;He=_e.next()){var et=He.value;E.event_fireAnEvent("slotchange",et,void 0,{bubbles:!0})}}catch(ut){w={error:ut}}finally{try{He&&!He.done&&(M=_e.return)&&M.call(_e)}finally{if(w)throw w.error}}}e(C,"p");function L(W,O,w,M,J,Z,Q,me,be){for(var he,_e,He=new Map,et=S.tree_getFirstAncestorNode(O,!0);et!==null;){for(var ut=0;ut<et._registeredObserverList.length;ut++){var ft=et._registeredObserverList[ut],Wt=ft.options;if((et===O||Wt.subtree)&&(W!=="attributes"||Wt.attributes)&&(W!=="attributes"||!Wt.attributeFilter||Wt.attributeFilter.indexOf(w||"")&&M===null)&&(W!=="characterData"||Wt.characterData)&&(W!=="childList"||Wt.childList)){var En=ft.observer;He.has(En)||He.set(En,null),(W==="attributes"&&Wt.attributeOldValue||W==="characterData"&&Wt.characterDataOldValue)&&He.set(En,J)}}et=S.tree_getNextAncestorNode(O,et,!0)}try{for(var fn=a(He),Gt=fn.next();!Gt.done;Gt=fn.next()){var Kt=c(Gt.value,2),wt=Kt[0],Xt=Kt[1],yt=v.create_mutationRecord(W,O,v.create_nodeListStatic(O,Z),v.create_nodeListStatic(O,Q),me,be,w,M,Xt);wt._recordQueue.push(yt)}}catch(Nn){he={error:Nn}}finally{try{Gt&&!Gt.done&&(_e=fn.return)&&_e.call(fn)}finally{if(he)throw he.error}}A()}e(L,"f"),t.observer_queueAMutationObserverMicrotask=A,t.observer_notifyMutationObservers=C,t.observer_queueMutationRecord=L,t.observer_queueTreeMutationRecord=function(W,O,w,M,J){L("childList",W,null,null,null,O,w,M,J)},t.observer_queueAttributeMutationRecord=function(W,O,w,M){L("attributes",W,O,w,M,[],[],null,null)}},function(r,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=i(6),c=i(7),d=i(3),f=i(9),g=i(29),v=i(73),S=i(51),E=i(30),A=i(37),C=i(106);function L(Z,Q,me){a.dom.features.mutationObservers&&S.observer_queueAttributeMutationRecord(Q,Z._localName,Z._namespace,Z._value),a.dom.features.customElements&&d.Guard.isCustomElementNode(Q)&&v.customElement_enqueueACustomElementCallbackReaction(Q,"attributeChangedCallback",[Z._localName,Z._value,me,Z._namespace]),a.dom.features.steps&&E.dom_runAttributeChangeSteps(Q,Z._localName,Z._value,me,Z._namespace),Z._value=me}e(L,"f");function W(Z,Q){a.dom.features.mutationObservers&&S.observer_queueAttributeMutationRecord(Q,Z._localName,Z._namespace,null),a.dom.features.customElements&&d.Guard.isCustomElementNode(Q)&&v.customElement_enqueueACustomElementCallbackReaction(Q,"attributeChangedCallback",[Z._localName,null,Z._value,Z._namespace]),a.dom.features.steps&&E.dom_runAttributeChangeSteps(Q,Z._localName,null,Z._value,Z._namespace),Q._attributeList._asArray().push(Z),Z._element=Q,Q._nodeDocument._hasNamespaces||Z._namespace===null&&Z._namespacePrefix===null&&Z._localName!=="xmlns"||(Q._nodeDocument._hasNamespaces=!0)}e(W,"d");function O(Z,Q){a.dom.features.mutationObservers&&S.observer_queueAttributeMutationRecord(Q,Z._localName,Z._namespace,Z._value),a.dom.features.customElements&&d.Guard.isCustomElementNode(Q)&&v.customElement_enqueueACustomElementCallbackReaction(Q,"attributeChangedCallback",[Z._localName,Z._value,null,Z._namespace]),a.dom.features.steps&&E.dom_runAttributeChangeSteps(Q,Z._localName,Z._value,null,Z._namespace);var me=Q._attributeList._asArray().indexOf(Z);Q._attributeList._asArray().splice(me,1),Z._element=null}e(O,"m");function w(Z,Q,me){a.dom.features.mutationObservers&&S.observer_queueAttributeMutationRecord(me,Z._localName,Z._namespace,Z._value),a.dom.features.customElements&&d.Guard.isCustomElementNode(me)&&v.customElement_enqueueACustomElementCallbackReaction(me,"attributeChangedCallback",[Z._localName,Z._value,Q._value,Z._namespace]),a.dom.features.steps&&E.dom_runAttributeChangeSteps(me,Z._localName,Z._value,Q._value,Z._namespace);var be=me._attributeList._asArray().indexOf(Z);be!==-1&&(me._attributeList._asArray()[be]=Q),Z._element=null,Q._element=me,me._nodeDocument._hasNamespaces||Q._namespace===null&&Q._namespacePrefix===null&&Q._localName!=="xmlns"||(me._nodeDocument._hasNamespaces=!0)}e(w,"y");function M(Z,Q){return Q._namespace===c.namespace.HTML&&Q._nodeDocument._type==="html"&&(Z=Z.toLowerCase()),Q._attributeList._asArray().find(function(me){return me._qualifiedName===Z})||null}e(M,"v");function J(Z,Q,me){var be=Z||null;return me._attributeList._asArray().find(function(he){return he._namespace===be&&he._localName===Q})||null}e(J,"_"),t.element_has=function(Z,Q){return Q._attributeList._asArray().indexOf(Z)!==-1},t.element_change=L,t.element_append=W,t.element_remove=O,t.element_replace=w,t.element_getAnAttributeByName=M,t.element_getAnAttributeByNamespaceAndLocalName=J,t.element_getAnAttributeValue=function(Z,Q,me){me===void 0&&(me="");var be=J(me,Q,Z);return be===null?"":be._value},t.element_setAnAttribute=function(Z,Q){if(Z._element!==null&&Z._element!==Q)throw new f.InUseAttributeError("This attribute already exists in the document: "+Z._qualifiedName+" as a child of "+Z._element._qualifiedName+".");var me=J(Z._namespace||"",Z._localName,Q);return me===Z?Z:(me!==null?w(me,Z,Q):W(Z,Q),me)},t.element_setAnAttributeValue=function(Z,Q,me,be,he){be===void 0&&(be=null),he===void 0&&(he=null);var _e=J(he||"",Q,Z);if(_e===null){var He=g.create_attr(Z._nodeDocument,Q);return He._namespace=he,He._namespacePrefix=be,He._value=me,void W(He,Z)}L(_e,Z,me)},t.element_removeAnAttributeByName=function(Z,Q){var me=M(Z,Q);return me!==null&&O(me,Q),me},t.element_removeAnAttributeByNamespaceAndLocalName=function(Z,Q,me){var be=J(Z,Q,me);return be!==null&&O(be,me),be},t.element_createAnElement=function(Z,Q,me,be,he,_e){be===void 0&&(be=null),he===void 0&&(he=null),_e===void 0&&(_e=!1);var He=null;if(!a.dom.features.customElements)return(He=g.create_element(Z,Q,me,be))._customElementState="uncustomized",He._customElementDefinition=null,He._is=he,He;var et=v.customElement_lookUpACustomElementDefinition(Z,me,Q,he);if(et!==null&&et.name!==et.localName)(He=new(C.document_elementInterface(Q,c.namespace.HTML)))._localName=Q,He._namespace=c.namespace.HTML,He._namespacePrefix=be,He._customElementState="undefined",He._customElementDefinition=null,He._is=he,He._nodeDocument=Z,_e?v.customElement_upgrade(et,He):v.customElement_enqueueACustomElementUpgradeReaction(He,et);else if(et!==null)if(_e)try{var ut=new et.constructor;if(console.assert(ut._customElementState!==void 0),console.assert(ut._customElementDefinition!==void 0),console.assert(ut._namespace===c.namespace.HTML),ut._attributeList.length!==0)throw new f.NotSupportedError("Custom element already has attributes.");if(ut._children.size!==0)throw new f.NotSupportedError("Custom element already has child nodes.");if(ut._parent!==null)throw new f.NotSupportedError("Custom element already has a parent node.");if(ut._nodeDocument!==Z)throw new f.NotSupportedError("Custom element is already in a document.");if(ut._localName!==Q)throw new f.NotSupportedError("Custom element has a different local name.");ut._namespacePrefix=be,ut._is=null}catch{(He=g.create_htmlUnknownElement(Z,Q,c.namespace.HTML,be))._customElementState="failed",He._customElementDefinition=null,He._is=null}else(He=g.create_htmlElement(Z,Q,c.namespace.HTML,be))._customElementState="undefined",He._customElementDefinition=null,He._is=null,v.customElement_enqueueACustomElementUpgradeReaction(He,et);else(He=new(C.document_elementInterface(Q,me)))._localName=Q,He._namespace=me,He._namespacePrefix=be,He._customElementState="uncustomized",He._customElementDefinition=null,He._is=he,He._nodeDocument=Z,me!==c.namespace.HTML||he===null&&!v.customElement_isValidCustomElementName(Q)||(He._customElementState="undefined");if(He===null)throw new Error("Unable to create element.");return He},t.element_insertAdjacent=function(Z,Q,me){switch(Q.toLowerCase()){case"beforebegin":return Z._parent===null?null:A.mutation_preInsert(me,Z._parent,Z);case"afterbegin":return A.mutation_preInsert(me,Z,Z._firstChild);case"beforeend":return A.mutation_preInsert(me,Z,null);case"afterend":return Z._parent===null?null:A.mutation_preInsert(me,Z._parent,Z._nextSibling);default:throw new f.SyntaxError(`Invalid 'where' argument. "beforebegin", "afterbegin", "beforeend" or "afterend" expected`)}}},function(r,t,i){"use strict";function a(c,d){Error.call(this),this.name="YAMLException",this.reason=c,this.mark=d,this.message=(this.reason||"(unknown reason)")+(this.mark?" "+this.mark.toString():""),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}e(a,"n"),a.prototype=Object.create(Error.prototype),a.prototype.constructor=a,a.prototype.toString=function(c){var d=this.name+": ";return d+=this.reason||"(unknown reason)",!c&&this.mark&&(d+=" "+this.mark.toString()),d},r.exports=a},function(r,t,i){"use strict";var a=i(39);r.exports=new a({include:[i(181)],implicit:[i(294),i(295)],explicit:[i(296),i(297),i(298),i(299)]})},function(r,t,i){var a=i(16),c=i(79),d=i(40),f=i(24),g=i(56),v=i(14),S=i(115),E=Object.getOwnPropertyDescriptor;t.f=a?E:function(A,C){if(A=f(A),C=g(C,!0),S)try{return E(A,C)}catch{}if(v(A,C))return d(!c.f.call(A,C),A[C])}},function(r,t,i){var a=i(13);r.exports=function(c,d){if(!a(c))return c;var f,g;if(d&&typeof(f=c.toString)=="function"&&!a(g=f.call(c))||typeof(f=c.valueOf)=="function"&&!a(g=f.call(c))||!d&&typeof(f=c.toString)=="function"&&!a(g=f.call(c)))return g;throw TypeError("Can't convert object to primitive value")}},function(r,t,i){var a=i(81),c=i(58),d=a("keys");r.exports=function(f){return d[f]||(d[f]=c(f))}},function(r,t){var i=0,a=Math.random();r.exports=function(c){return"Symbol("+String(c===void 0?"":c)+")_"+(++i+a).toString(36)}},function(r,t,i){var a=i(42);r.exports=Array.isArray||function(c){return a(c)=="Array"}},function(r,t,i){var a,c=i(18),d=i(188),f=i(84),g=i(45),v=i(189),S=i(116),E=i(57),A=E("IE_PROTO"),C=e(function(){},"p"),L=e(function(O){return"<script>"+O+"<\/script>"},"f"),W=e(function(){try{a=document.domain&&new ActiveXObject("htmlfile")}catch{}var O,w;W=a?function(J){J.write(L("")),J.close();var Z=J.parentWindow.Object;return J=null,Z}(a):((w=S("iframe")).style.display="none",v.appendChild(w),w.src="javascript:",(O=w.contentWindow.document).open(),O.write(L("document.F=Object")),O.close(),O.F);for(var M=f.length;M--;)delete W.prototype[f[M]];return W()},"d");g[A]=!0,r.exports=Object.create||function(O,w){var M;return O!==null?(C.prototype=c(O),M=new C,C.prototype=null,M[A]=O):M=W(),w===void 0?M:d(M,w)}},function(r,t,i){var a=i(121),c=i(84);r.exports=Object.keys||function(d){return a(d,c)}},function(r,t,i){var a=i(15).f,c=i(14),d=i(5)("toStringTag");r.exports=function(f,g,v){f&&!c(f=v?f:f.prototype,d)&&a(f,d,{configurable:!0,value:g})}},function(r,t,i){var a=i(8),c=i(5),d=i(129),f=c("species");r.exports=function(g){return d>=51||!a(function(){var v=[];return(v.constructor={})[f]=function(){return{foo:1}},v[g](Boolean).foo!==1})}},function(r,t,i){"use strict";var a=i(4),c=i(122).indexOf,d=i(48),f=i(28),g=[].indexOf,v=!!g&&1/[1].indexOf(1,-0)<0,S=d("indexOf"),E=f("indexOf",{ACCESSORS:!0,1:0});a({target:"Array",proto:!0,forced:v||!S||!E},{indexOf:e(function(A){return v?g.apply(this,arguments)||0:c(this,A,arguments.length>1?arguments[1]:void 0)},"indexOf")})},function(r,t,i){var a=i(16),c=i(15).f,d=Function.prototype,f=d.toString,g=/^\s*function ([^ (]*)/;a&&!("name"in d)&&c(d,"name",{configurable:!0,get:e(function(){try{return f.call(this).match(g)[1]}catch{return""}},"get")})},function(r,t,i){"use strict";var a=i(25),c=i(18),d=i(8),f=i(136),g=RegExp.prototype,v=g.toString,S=d(function(){return v.call({source:"a",flags:"b"})!="/a/b"}),E=v.name!="toString";(S||E)&&a(RegExp.prototype,"toString",function(){var A=c(this),C=String(A.source),L=A.flags;return"/"+C+"/"+String(L===void 0&&A instanceof RegExp&&!("flags"in g)?f.call(A):L)},{unsafe:!0})},function(r,t,i){"use strict";i(31),i(32),i(33),i(19),i(138),i(20),i(66),i(22),i(23);var a,c=this&&this.__extends||(a=e(function(S,E){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(A,C){A.__proto__=C}||function(A,C){for(var L in C)C.hasOwnProperty(L)&&(A[L]=C[L])})(S,E)},"n"),function(S,E){function A(){this.constructor=S}e(A,"r"),a(S,E),S.prototype=E===null?Object.create(E):(A.prototype=E.prototype,new A)}),d=this&&this.__values||function(S){var E=typeof Symbol=="function"&&Symbol.iterator,A=E&&S[E],C=0;if(A)return A.call(S);if(S&&typeof S.length=="number")return{next:e(function(){return S&&C>=S.length&&(S=void 0),{value:S&&S[C++],done:!S}},"next")};throw new TypeError(E?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0});var f=i(2),g=i(1),v=function(S){function E(A,C){var L=S.call(this,A)||this;return L._writerOptions=f.applyDefaults(C,{format:"object",wellFormed:!1,group:!1,verbose:!1}),L}return e(E,"t"),c(E,S),E.prototype.serialize=function(A){return this._currentList=[],this._currentIndex=0,this._listRegister=[this._currentList],this.serializeNode(A,this._writerOptions.wellFormed),this._process(this._currentList,this._writerOptions)},E.prototype._process=function(A,C){var L,W,O,w,M,J,Z;if(A.length===0)return{};for(var Q={},me=!1,be=0,he=0,_e=0,He=0,et=0;et<A.length;et++){var ut=A[et];switch(Bt=Object.keys(ut)[0]){case"@":continue;case"#":be++;break;case"!":he++;break;case"?":_e++;break;case"$":He++;break;default:Q[Bt]?me=!0:Q[Bt]=!0}}var ft=this._getAttrKey(),Wt=this._getNodeKey(g.NodeType.Text),En=this._getNodeKey(g.NodeType.Comment),fn=this._getNodeKey(g.NodeType.ProcessingInstruction),Gt=this._getNodeKey(g.NodeType.CData);if(be===1&&A.length===1&&f.isString(A[0]["#"]))return A[0]["#"];if(me){var Kt={};for(et=0;et<A.length;et++)if(ut=A[et],(Bt=Object.keys(ut)[0])==="@"){var wt=ut["@"];(ht=Object.keys(wt)).length===1?Kt[ft+ht[0]]=wt[ht[0]]:Kt[ft]=ut["@"]}var Xt=[];for(et=0;et<A.length;et++)switch(ut=A[et],Bt=Object.keys(ut)[0]){case"@":break;case"#":Xt.push(((L={})[Wt]=ut["#"],L));break;case"!":Xt.push(((W={})[En]=ut["!"],W));break;case"?":Xt.push(((O={})[fn]=ut["?"],O));break;case"$":Xt.push(((w={})[Gt]=ut.$,w));break;default:if((At=ut)[Bt].length!==0&&f.isArray(At[Bt][0])){for(var yt=[],Nn=At[Bt],kn=0;kn<Nn.length;kn++)yt.push(this._process(Nn[kn],C));Xt.push(((M={})[Bt]=yt,M))}else C.verbose?Xt.push(((J={})[Bt]=[this._process(At[Bt],C)],J)):Xt.push(((Z={})[Bt]=this._process(At[Bt],C),Z))}return Kt[Wt]=Xt,Kt}var an=1,Mn=1,ir=1,Zt=1;for(Kt={},et=0;et<A.length;et++){var Bt;switch(ut=A[et],Bt=Object.keys(ut)[0]){case"@":wt=ut["@"];var ht=Object.keys(wt);if(C.group&&ht.length!==1)Kt[ft]=wt;else for(var de in wt)Kt[ft+de]=wt[de];break;case"#":an=this._processSpecItem(ut["#"],Kt,C.group,Wt,be,an);break;case"!":Mn=this._processSpecItem(ut["!"],Kt,C.group,En,he,Mn);break;case"?":ir=this._processSpecItem(ut["?"],Kt,C.group,fn,_e,ir);break;case"$":Zt=this._processSpecItem(ut.$,Kt,C.group,Gt,He,Zt);break;default:var At;if((At=ut)[Bt].length!==0&&f.isArray(At[Bt][0])){yt=[],Nn=At[Bt];for(var ct=0;ct<Nn.length;ct++)yt.push(this._process(Nn[ct],C));Kt[Bt]=yt}else C.verbose?Kt[Bt]=[this._process(At[Bt],C)]:Kt[Bt]=this._process(At[Bt],C)}}return Kt},E.prototype._processSpecItem=function(A,C,L,W,O,w){var M,J;if(!L&&f.isArray(A)&&O+A.length>2)try{for(var Z=d(A),Q=Z.next();!Q.done;Q=Z.next()){var me=Q.value;C[W+(w++).toString()]=me}}catch(be){M={error:be}}finally{try{Q&&!Q.done&&(J=Z.return)&&J.call(Z)}finally{if(M)throw M.error}}else C[O>1?W+(w++).toString():W]=A;return w},E.prototype.beginElement=function(A){var C,L,W=[];if(this._currentList.length===0)this._currentList.push(((C={})[A]=W,C));else{var O=this._currentList[this._currentList.length-1];this._isElementNode(O,A)?O[A].length!==0&&f.isArray(O[A][0])?O[A].push(W):O[A]=[O[A],W]:this._currentList.push(((L={})[A]=W,L))}this._currentIndex++,this._listRegister.length>this._currentIndex?this._listRegister[this._currentIndex]=W:this._listRegister.push(W),this._currentList=W},E.prototype.endElement=function(){this._currentList=this._listRegister[--this._currentIndex]},E.prototype.attribute=function(A,C){var L,W;if(this._currentList.length===0)this._currentList.push({"@":(L={},L[A]=C,L)});else{var O=this._currentList[this._currentList.length-1];this._isAttrNode(O)?O["@"][A]=C:this._currentList.push({"@":(W={},W[A]=C,W)})}},E.prototype.comment=function(A){if(this._currentList.length===0)this._currentList.push({"!":A});else{var C=this._currentList[this._currentList.length-1];this._isCommentNode(C)?f.isArray(C["!"])?C["!"].push(A):C["!"]=[C["!"],A]:this._currentList.push({"!":A})}},E.prototype.text=function(A){if(this._currentList.length===0)this._currentList.push({"#":A});else{var C=this._currentList[this._currentList.length-1];this._isTextNode(C)?f.isArray(C["#"])?C["#"].push(A):C["#"]=[C["#"],A]:this._currentList.push({"#":A})}},E.prototype.instruction=function(A,C){var L=C===""?A:A+" "+C;if(this._currentList.length===0)this._currentList.push({"?":L});else{var W=this._currentList[this._currentList.length-1];this._isInstructionNode(W)?f.isArray(W["?"])?W["?"].push(L):W["?"]=[W["?"],L]:this._currentList.push({"?":L})}},E.prototype.cdata=function(A){if(this._currentList.length===0)this._currentList.push({$:A});else{var C=this._currentList[this._currentList.length-1];this._isCDATANode(C)?f.isArray(C.$)?C.$.push(A):C.$=[C.$,A]:this._currentList.push({$:A})}},E.prototype._isAttrNode=function(A){return"@"in A},E.prototype._isTextNode=function(A){return"#"in A},E.prototype._isCommentNode=function(A){return"!"in A},E.prototype._isInstructionNode=function(A){return"?"in A},E.prototype._isCDATANode=function(A){return"$"in A},E.prototype._isElementNode=function(A,C){return C in A},E.prototype._getAttrKey=function(){return this._builderOptions.convert.att},E.prototype._getNodeKey=function(A){switch(A){case g.NodeType.Comment:return this._builderOptions.convert.comment;case g.NodeType.Text:return this._builderOptions.convert.text;case g.NodeType.ProcessingInstruction:return this._builderOptions.convert.ins;case g.NodeType.CData:return this._builderOptions.convert.cdata;default:throw new Error("Invalid node type.")}},E}(i(50).BaseWriter);t.ObjectWriter=v},function(r,t,i){"use strict";var a=i(4),c=i(93);a({target:"RegExp",proto:!0,forced:/./.exec!==c},{exec:c})},function(r,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function c(){this._items={},this._nullItems={}}return e(c,"e"),c.prototype.set=function(d,f){d===null?this._nullItems[f]=!0:(this._items[d]||(this._items[d]={}),this._items[d][f]=!0)},c.prototype.has=function(d,f){return d===null?this._nullItems[f]===!0:!!this._items[d]&&this._items[d][f]===!0},c}();t.LocalNameSet=a},function(r,t,i){"use strict";var a=this&&this.__read||function(v,S){var E=typeof Symbol=="function"&&v[Symbol.iterator];if(!E)return v;var A,C,L=E.call(v),W=[];try{for(;(S===void 0||S-- >0)&&!(A=L.next()).done;)W.push(A.value)}catch(O){C={error:O}}finally{try{A&&!A.done&&(E=L.return)&&E.call(L)}finally{if(C)throw C.error}}return W};Object.defineProperty(t,"__esModule",{value:!0});var c=i(9),d=i(3),f=i(0),g=function(){function v(){}return e(v,"e"),Object.defineProperty(v.prototype,"_eventListenerList",{get:e(function(){return this.__eventListenerList||(this.__eventListenerList=[])},"get"),enumerable:!0,configurable:!0}),Object.defineProperty(v.prototype,"_eventHandlerMap",{get:e(function(){return this.__eventHandlerMap||(this.__eventHandlerMap={})},"get"),enumerable:!0,configurable:!0}),v.prototype.addEventListener=function(S,E,A){A===void 0&&(A={passive:!1,once:!1,capture:!1});var C,L=a(f.eventTarget_flattenMore(A),3),W=L[0],O=L[1],w=L[2];E&&(C=d.Guard.isEventListener(E)?E:{handleEvent:E},f.eventTarget_addEventListener(this,{type:S,callback:C,capture:W,passive:O,once:w,removed:!1}))},v.prototype.removeEventListener=function(S,E,A){A===void 0&&(A={capture:!1});var C=f.eventTarget_flatten(A);if(E)for(var L=0;L<this._eventListenerList.length;L++){var W=this._eventListenerList[L];if(W.type===S&&W.capture===C){if(d.Guard.isEventListener(E)&&W.callback===E){f.eventTarget_removeEventListener(this,W,L);break}if(E&&W.callback.handleEvent===E){f.eventTarget_removeEventListener(this,W,L);break}}}},v.prototype.dispatchEvent=function(S){if(S._dispatchFlag||!S._initializedFlag)throw new c.InvalidStateError;return S._isTrusted=!1,f.event_dispatch(S,this)},v.prototype._getTheParent=function(S){return null},v}();t.EventTargetImpl=g},function(r,t,i){"use strict";var a,c=this&&this.__extends||(a=e(function(v,S){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(E,A){E.__proto__=A}||function(E,A){for(var C in A)A.hasOwnProperty(C)&&(E[C]=A[C])})(v,S)},"n"),function(v,S){function E(){this.constructor=v}e(E,"r"),a(v,S),v.prototype=S===null?Object.create(S):(E.prototype=S.prototype,new E)});Object.defineProperty(t,"__esModule",{value:!0});var d=i(34),f=i(0),g=function(v){function S(E){var A=v.call(this)||this;return A._data=E,A}return e(S,"t"),c(S,v),Object.defineProperty(S.prototype,"data",{get:e(function(){return this._data},"get"),set:e(function(E){f.characterData_replaceData(this,0,this._data.length,E)},"set"),enumerable:!0,configurable:!0}),Object.defineProperty(S.prototype,"length",{get:e(function(){return this._data.length},"get"),enumerable:!0,configurable:!0}),S.prototype.substringData=function(E,A){return f.characterData_substringData(this,E,A)},S.prototype.appendData=function(E){return f.characterData_replaceData(this,this._data.length,0,E)},S.prototype.insertData=function(E,A){f.characterData_replaceData(this,E,0,A)},S.prototype.deleteData=function(E,A){f.characterData_replaceData(this,E,A,"")},S.prototype.replaceData=function(E,A,C){f.characterData_replaceData(this,E,A,C)},Object.defineProperty(S.prototype,"previousElementSibling",{get:e(function(){throw new Error("Mixin: NonDocumentTypeChildNode not implemented.")},"get"),enumerable:!0,configurable:!0}),Object.defineProperty(S.prototype,"nextElementSibling",{get:e(function(){throw new Error("Mixin: NonDocumentTypeChildNode not implemented.")},"get"),enumerable:!0,configurable:!0}),S.prototype.before=function(){for(var E=[],A=0;A<arguments.length;A++)E[A]=arguments[A];throw new Error("Mixin: ChildNode not implemented.")},S.prototype.after=function(){for(var E=[],A=0;A<arguments.length;A++)E[A]=arguments[A];throw new Error("Mixin: ChildNode not implemented.")},S.prototype.replaceWith=function(){for(var E=[],A=0;A<arguments.length;A++)E[A]=arguments[A];throw new Error("Mixin: ChildNode not implemented.")},S.prototype.remove=function(){throw new Error("Mixin: ChildNode not implemented.")},S}(d.NodeImpl);t.CharacterDataImpl=g},function(r,t,i){"use strict";var a=this&&this.__values||function(O){var w=typeof Symbol=="function"&&Symbol.iterator,M=w&&O[w],J=0;if(M)return M.call(O);if(O&&typeof O.length=="number")return{next:e(function(){return O&&J>=O.length&&(O=void 0),{value:O&&O[J++],done:!O}},"next")};throw new TypeError(w?"Object is not iterable.":"Symbol.iterator is not defined.")},c=this&&this.__read||function(O,w){var M=typeof Symbol=="function"&&O[Symbol.iterator];if(!M)return O;var J,Z,Q=M.call(O),me=[];try{for(;(w===void 0||w-- >0)&&!(J=Q.next()).done;)me.push(J.value)}catch(be){Z={error:be}}finally{try{J&&!J.done&&(M=Q.return)&&M.call(Q)}finally{if(Z)throw Z.error}}return me},d=this&&this.__spread||function(){for(var O=[],w=0;w<arguments.length;w++)O=O.concat(c(arguments[w]));return O};Object.defineProperty(t,"__esModule",{value:!0});var f=i(6),g=i(3),v=i(2),S=i(17),E=i(51);function A(O){f.dom.window._signalSlots.add(O),E.observer_queueAMutationObserverMicrotask()}e(A,"h");function C(O,w){w===void 0&&(w=!1);var M=g.Cast.asNode(O)._parent;if(M===null)return null;var J=M._shadowRoot||null;if(J===null||w&&J._mode!=="open")return null;for(var Z=S.tree_getFirstDescendantNode(J,!1,!0,function(Q){return g.Guard.isSlot(Q)});Z!==null;){if(Z._name===O._name)return Z;Z=S.tree_getNextDescendantNode(J,Z,!1,!0,function(Q){return g.Guard.isSlot(Q)})}return null}e(C,"p");function L(O){var w,M,J=[],Z=S.tree_rootNode(O);if(!g.Guard.isShadowRoot(Z))return J;var Q=Z._host;try{for(var me=a(Q._children),be=me.next();!be.done;be=me.next()){var he=be.value;g.Guard.isSlotable(he)&&C(he)===O&&J.push(he)}}catch(_e){w={error:_e}}finally{try{be&&!be.done&&(M=me.return)&&M.call(me)}finally{if(w)throw w.error}}return J}e(L,"f");function W(O){var w,M,J=L(O);if(J.length===O._assignedNodes.length){for(var Z=!0,Q=0;Q<J.length;Q++)if(J[Q]!==O._assignedNodes[Q]){Z=!1;break}Z||A(O)}O._assignedNodes=J;try{for(var me=a(J),be=me.next();!be.done;be=me.next())be.value._assignedSlot=O}catch(he){w={error:he}}finally{try{be&&!be.done&&(M=me.return)&&M.call(me)}finally{if(w)throw w.error}}}e(W,"d"),t.shadowTree_signalASlotChange=A,t.shadowTree_isConnected=function(O){return g.Guard.isDocumentNode(S.tree_rootNode(O,!0))},t.shadowTree_isAssigned=function(O){return O._assignedSlot!==null},t.shadowTree_findASlot=C,t.shadowTree_findSlotables=L,t.shadowTree_findFlattenedSlotables=e(function O(w){var M,J,Z,Q,me=[],be=S.tree_rootNode(w);if(!g.Guard.isShadowRoot(be))return me;var he=L(w);if(v.isEmpty(he))try{for(var _e=a(w._children),He=_e.next();!He.done;He=_e.next()){var et=He.value;g.Guard.isSlotable(et)&&he.push(et)}}catch(fn){M={error:fn}}finally{try{He&&!He.done&&(J=_e.return)&&J.call(_e)}finally{if(M)throw M.error}}try{for(var ut=a(he),ft=ut.next();!ft.done;ft=ut.next()){var Wt=ft.value;if(g.Guard.isSlot(Wt)&&g.Guard.isShadowRoot(S.tree_rootNode(Wt))){var En=O(Wt);me.push.apply(me,d(En))}else me.push(Wt)}}catch(fn){Z={error:fn}}finally{try{ft&&!ft.done&&(Q=ut.return)&&Q.call(ut)}finally{if(Z)throw Z.error}}return me},"e"),t.shadowTree_assignSlotables=W,t.shadowTree_assignSlotablesForATree=function(O){for(var w=S.tree_getFirstDescendantNode(O,!0,!1,function(M){return g.Guard.isSlot(M)});w!==null;)W(w),w=S.tree_getNextDescendantNode(O,w,!0,!1,function(M){return g.Guard.isSlot(M)})},t.shadowTree_assignASlot=function(O){var w=C(O);w!==null&&W(w)}},function(r,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=/[a-z]([\0-\t\x2D\._a-z\xB7\xC0-\xD6\xD8-\xF6\xF8-\u037D\u037F-\u1FFF\u200C\u200D\u203F\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])*-([\0-\t\x2D\._a-z\xB7\xC0-\xD6\xD8-\xF6\xF8-\u037D\u037F-\u1FFF\u200C\u200D\u203F\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uDB7F][\uDC00-\uDFFF])*/,c=new Set(["annotation-xml","color-profile","font-face","font-face-src","font-face-uri","font-face-format","font-face-name","missing-glyph"]),d=new Set(["article","aside","blockquote","body","div","footer","h1","h2","h3","h4","h5","h6","header","main","nav","p","section","span"]),f=new Set(["area","base","basefont","bgsound","br","col","embed","frame","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"]),g=new Set(["article","aside","blockquote","body","div","footer","h1","h2","h3","h4","h5","h6","header","main","nav","p","section","span"]);t.customElement_isValidCustomElementName=function(v){return!!a.test(v)&&!c.has(v)},t.customElement_isValidElementName=function(v){return d.has(v)},t.customElement_isVoidElementName=function(v){return f.has(v)},t.customElement_isValidShadowHostName=function(v){return g.has(v)},t.customElement_enqueueACustomElementUpgradeReaction=function(v,S){},t.customElement_enqueueACustomElementCallbackReaction=function(v,S,E){},t.customElement_upgrade=function(v,S){},t.customElement_tryToUpgrade=function(v){},t.customElement_lookUpACustomElementDefinition=function(v,S,E,A){return null}},function(r,t,i){i(4)({target:"String",proto:!0},{repeat:i(260)})},function(r,t,i){"use strict";i(279),i(68),i(179),i(94),Object.defineProperty(t,"__esModule",{value:!0});var a=i(109),c=function(){function d(f){this._builderOptions=f,f.parser&&Object.assign(this,f.parser)}return e(d,"e"),d.prototype._docType=function(f,g,v,S){return f.dtd({name:g,pubID:v,sysID:S})},d.prototype._comment=function(f,g){return f.com(g)},d.prototype._text=function(f,g){return f.txt(g)},d.prototype._instruction=function(f,g,v){return f.ins(g,v)},d.prototype._cdata=function(f,g){return f.dat(g)},d.prototype._element=function(f,g,v){return g===void 0?f.ele(v):f.ele(g,v)},d.prototype._attribute=function(f,g,v,S){return g===void 0?f.att(v,S):f.att(g,v,S)},d.prototype._sanitize=function(f){return a.sanitizeInput(f,this._builderOptions.invalidCharReplacement)},d.prototype._decodeText=function(f){return f==null?f:f.replace(/&(quot|amp|apos|lt|gt);/g,function(g,v){return d._entityTable[v]}).replace(/&#(?:x([a-fA-F0-9]+)|([0-9]+));/g,function(g,v,S){return String.fromCodePoint(parseInt(v||S,v?16:10))})},d.prototype._decodeAttributeValue=function(f){return this._decodeText(f)},d.prototype.parse=function(f,g){return this._parse(f,g)},d.prototype.docType=function(f,g,v,S){return this._docType(f,g,v,S)},d.prototype.comment=function(f,g){return this._comment(f,g)},d.prototype.text=function(f,g){return this._text(f,g)},d.prototype.instruction=function(f,g,v){return this._instruction(f,g,v)},d.prototype.cdata=function(f,g){return this._cdata(f,g)},d.prototype.element=function(f,g,v){return this._element(f,g,v)},d.prototype.attribute=function(f,g,v,S){return this._attribute(f,g,v,S)},d.prototype.sanitize=function(f){return this._sanitize(f)},d._entityTable={lt:"<",gt:">",amp:"&",quot:'"',apos:"'"},d}();t.BaseReader=c},function(r,t,i){"use strict";var a=i(39);r.exports=a.DEFAULT=new a({include:[i(54)],explicit:[i(300),i(301),i(302)]})},function(r,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=i(185);t.XMLBuilderImpl=a.XMLBuilderImpl;var c=i(305);t.XMLBuilderCBImpl=c.XMLBuilderCBImpl;var d=i(183);t.builder=d.builder,t.create=d.create,t.fragment=d.fragment,t.convert=d.convert;var f=i(310);t.createCB=f.createCB,t.fragmentCB=f.fragmentCB},function(r,t){var i;i=function(){return this}();try{i=i||new Function("return this")()}catch{typeof window=="object"&&(i=window)}r.exports=i},function(r,t,i){"use strict";var a={}.propertyIsEnumerable,c=Object.getOwnPropertyDescriptor,d=c&&!a.call({1:2},1);t.f=d?function(f){var g=c(this,f);return!!g&&g.enumerable}:a},function(r,t,i){var a=i(11),c=i(21);r.exports=function(d,f){try{c(a,d,f)}catch{a[d]=f}return f}},function(r,t,i){var a=i(44),c=i(118);(r.exports=function(d,f){return c[d]||(c[d]=f!==void 0?f:{})})("versions",[]).push({version:"3.6.5",mode:a?"pure":"global",copyright:"\xA9 2020 Denis Pushkarev (zloirock.ru)"})},function(r,t,i){var a=i(121),c=i(84).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(d){return a(d,c)}},function(r,t,i){var a=i(47),c=Math.max,d=Math.min;r.exports=function(f,g){var v=a(f);return v<0?c(v+g,0):d(v,g)}},function(r,t){r.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(r,t){t.f=Object.getOwnPropertySymbols},function(r,t,i){var a=i(8);r.exports=!!Object.getOwnPropertySymbols&&!a(function(){return!String(Symbol())})},function(r,t,i){var a=i(127);r.exports=function(c,d,f){if(a(c),d===void 0)return c;switch(f){case 0:return function(){return c.call(d)};case 1:return function(g){return c.call(d,g)};case 2:return function(g,v){return c.call(d,g,v)};case 3:return function(g,v,S){return c.call(d,g,v,S)}}return function(){return c.apply(d,arguments)}}},function(r,t,i){"use strict";var a=i(4),c=i(195),d=i(132),f=i(133),g=i(62),v=i(21),S=i(25),E=i(5),A=i(44),C=i(49),L=i(131),W=L.IteratorPrototype,O=L.BUGGY_SAFARI_ITERATORS,w=E("iterator"),M=e(function(){return this},"v");r.exports=function(J,Z,Q,me,be,he,_e){c(Q,Z,me);var He,et,ut,ft=e(function(Xt){if(Xt===be&&Kt)return Kt;if(!O&&Xt in fn)return fn[Xt];switch(Xt){case"keys":case"values":case"entries":return function(){return new Q(this,Xt)}}return function(){return new Q(this)}},"E"),Wt=Z+" Iterator",En=!1,fn=J.prototype,Gt=fn[w]||fn["@@iterator"]||be&&fn[be],Kt=!O&&Gt||ft(be),wt=Z=="Array"&&fn.entries||Gt;if(wt&&(He=d(wt.call(new J)),W!==Object.prototype&&He.next&&(A||d(He)===W||(f?f(He,W):typeof He[w]!="function"&&v(He,w,M)),g(He,Wt,!0,!0),A&&(C[Wt]=M))),be=="values"&&Gt&&Gt.name!=="values"&&(En=!0,Kt=e(function(){return Gt.call(this)},"N")),A&&!_e||fn[w]===Kt||v(fn,w,Kt),C[Z]=Kt,be)if(et={values:ft("values"),keys:he?Kt:ft("keys"),entries:ft("entries")},_e)for(ut in et)(O||En||!(ut in fn))&&S(fn,ut,et[ut]);else a({target:Z,proto:!0,forced:O||En},et);return et}},function(r,t,i){"use strict";var a=i(4),c=i(13),d=i(59),f=i(83),g=i(26),v=i(24),S=i(134),E=i(5),A=i(63),C=i(28),L=A("slice"),W=C("slice",{ACCESSORS:!0,0:0,1:2}),O=E("species"),w=[].slice,M=Math.max;a({target:"Array",proto:!0,forced:!L||!W},{slice:e(function(J,Z){var Q,me,be,he=v(this),_e=g(he.length),He=f(J,_e),et=f(Z===void 0?_e:Z,_e);if(d(he)&&(typeof(Q=he.constructor)!="function"||Q!==Array&&!d(Q.prototype)?c(Q)&&(Q=Q[O])===null&&(Q=void 0):Q=void 0,Q===Array||Q===void 0))return w.call(he,He,et);for(me=new(Q===void 0?Array:Q)(M(et-He,0)),be=0;He<et;He++,be++)He in he&&S(me,be,he[He]);return me.length=be,me},"slice")})},function(r,t,i){var a={};a[i(5)("toStringTag")]="z",r.exports=String(a)==="[object z]"},function(r,t,i){"use strict";i(19),i(138),i(20),i(92),i(22),i(23),Object.defineProperty(t,"__esModule",{value:!0}),t.DefaultBuilderOptions={version:"1.0",encoding:void 0,standalone:void 0,keepNullNodes:!1,keepNullAttributes:!1,ignoreConverters:!1,skipWhitespaceOnlyText:!0,convert:{att:"@",ins:"?",text:"#",cdata:"$",comment:"!"},defaultNamespace:{ele:void 0,att:void 0},namespaceAlias:{html:"http://www.w3.org/1999/xhtml",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg",xlink:"http://www.w3.org/1999/xlink"},invalidCharReplacement:void 0,parser:void 0},t.XMLBuilderOptionKeys=new Set(Object.keys(t.DefaultBuilderOptions)),t.DefaultXMLBuilderCBOptions={format:"xml",wellFormed:!1,prettyPrint:!1,indent:" ",newline:`
31150
31150
  `,offset:0,width:0,allowEmptyTags:!1,spaceBeforeSlash:!1,keepNullNodes:!1,keepNullAttributes:!1,ignoreConverters:!1,convert:{att:"@",ins:"?",text:"#",cdata:"$",comment:"!"},defaultNamespace:{ele:void 0,att:void 0},namespaceAlias:{html:"http://www.w3.org/1999/xhtml",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg",xlink:"http://www.w3.org/1999/xlink"}}},function(r,t,i){"use strict";var a=i(139),c=i(143);r.exports=a("Set",function(d){return function(){return d(this,arguments.length?arguments[0]:void 0)}},c)},function(r,t,i){"use strict";var a,c,d=i(136),f=i(221),g=RegExp.prototype.exec,v=String.prototype.replace,S=g,E=(a=/a/,c=/b*/g,g.call(a,"a"),g.call(c,"a"),a.lastIndex!==0||c.lastIndex!==0),A=f.UNSUPPORTED_Y||f.BROKEN_CARET,C=/()??/.exec("")[1]!==void 0;(E||C||A)&&(S=e(function(L){var W,O,w,M,J=this,Z=A&&J.sticky,Q=d.call(J),me=J.source,be=0,he=L;return Z&&((Q=Q.replace("y","")).indexOf("g")===-1&&(Q+="g"),he=String(L).slice(J.lastIndex),J.lastIndex>0&&(!J.multiline||J.multiline&&L[J.lastIndex-1]!==`
31151
31151
  `)&&(me="(?: "+me+")",he=" "+he,be++),O=new RegExp("^(?:"+me+")",Q)),C&&(O=new RegExp("^"+me+"$(?!\\s)",Q)),E&&(W=J.lastIndex),w=g.call(Z?O:J,he),Z?w?(w.input=w.input.slice(be),w[0]=w[0].slice(be),w.index=J.lastIndex,J.lastIndex+=w[0].length):J.lastIndex=0:E&&w&&(J.lastIndex=J.global?w.index+w[0].length:W),C&&w&&w.length>1&&v.call(w[0],O,function(){for(M=1;M<arguments.length-2;M++)arguments[M]===void 0&&(w[M]=void 0)}),w},"l")),r.exports=S},function(r,t,i){"use strict";var a=i(225),c=i(18),d=i(27),f=i(26),g=i(47),v=i(35),S=i(226),E=i(227),A=Math.max,C=Math.min,L=Math.floor,W=/\$([$&'`]|\d\d?|<[^>]*>)/g,O=/\$([$&'`]|\d\d?)/g;a("replace",2,function(w,M,J,Z){var Q=Z.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,me=Z.REPLACE_KEEPS_$0,be=Q?"$":"$0";return[function(_e,He){var et=v(this),ut=_e?.[w];return ut!==void 0?ut.call(_e,et,He):M.call(String(et),_e,He)},function(_e,He){if(!Q&&me||typeof He=="string"&&He.indexOf(be)===-1){var et=J(M,_e,this,He);if(et.done)return et.value}var ut=c(_e),ft=String(this),Wt=typeof He=="function";Wt||(He=String(He));var En=ut.global;if(En){var fn=ut.unicode;ut.lastIndex=0}for(var Gt=[];;){var Kt=E(ut,ft);if(Kt===null||(Gt.push(Kt),!En))break;String(Kt[0])===""&&(ut.lastIndex=S(ft,f(ut.lastIndex),fn))}for(var wt,Xt="",yt=0,Nn=0;Nn<Gt.length;Nn++){Kt=Gt[Nn];for(var kn=String(Kt[0]),an=A(C(g(Kt.index),ft.length),0),Mn=[],ir=1;ir<Kt.length;ir++)Mn.push((wt=Kt[ir])===void 0?wt:String(wt));var Zt=Kt.groups;if(Wt){var Bt=[kn].concat(Mn,an,ft);Zt!==void 0&&Bt.push(Zt);var ht=String(He.apply(void 0,Bt))}else ht=he(kn,ft,an,Mn,Zt,He);an>=yt&&(Xt+=ft.slice(yt,an)+ht,yt=an+kn.length)}return Xt+ft.slice(yt)}];function he(_e,He,et,ut,ft,Wt){var En=et+_e.length,fn=ut.length,Gt=O;return ft!==void 0&&(ft=d(ft),Gt=W),M.call(Wt,Gt,function(Kt,wt){var Xt;switch(wt.charAt(0)){case"$":return"$";case"&":return _e;case"`":return He.slice(0,et);case"'":return He.slice(En);case"<":Xt=ft[wt.slice(1,-1)];break;default:var yt=+wt;if(yt===0)return Kt;if(yt>fn){var Nn=L(yt/10);return Nn===0?Kt:Nn<=fn?ut[Nn-1]===void 0?wt.charAt(1):ut[Nn-1]+wt.charAt(1):Kt}Xt=ut[yt-1]}return Xt===void 0?"":Xt})}})},function(r,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function c(){this._items={},this._nullItems=[]}return e(c,"e"),c.prototype.copy=function(){var d=new c;for(var f in this._items)d._items[f]=this._items[f].slice(0);return d._nullItems=this._nullItems.slice(0),d},c.prototype.get=function(d,f){var g=f===null?this._nullItems:this._items[f]||null;if(g===null)return null;for(var v=null,S=0;S<g.length;S++)if((v=g[S])===d)return v;return v},c.prototype.has=function(d,f){var g=f===null?this._nullItems:this._items[f]||null;return g!==null&&g.indexOf(d)!==-1},c.prototype.hasPrefix=function(d){if(this._nullItems.indexOf(d)!==-1)return!0;for(var f in this._items)if(this._items[f].indexOf(d)!==-1)return!0;return!1},c.prototype.set=function(d,f){var g=f===null?this._nullItems:this._items[f]||null;f!==null&&g===null?this._items[f]=[d]:g.push(d)},c}();t.NamespacePrefixMap=a},function(r,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Surrogate=/[\uD800-\uDFFF]/,t.ScalarValue=/[\uD800-\uDFFF]/,t.NonCharacter=/[\uFDD0-\uFDEF\uFFFE\uFFFF]|[\uD83F\uD87F\uD8BF\uD8FF\uD93F\uD97F\uD9BF\uD9FF\uDA3F\uDA7F\uDABF\uDAFF\uDB3F\uDB7F\uDBBF\uDBFF][\uDFFE\uDFFF]/,t.ASCIICodePoint=/[\u0000-\u007F]/,t.ASCIITabOrNewLine=/[\t\n\r]/,t.ASCIIWhiteSpace=/[\t\n\f\r ]/,t.C0Control=/[\u0000-\u001F]/,t.C0ControlOrSpace=/[\u0000-\u001F ]/,t.Control=/[\u0000-\u001F\u007F-\u009F]/,t.ASCIIDigit=/[0-9]/,t.ASCIIUpperHexDigit=/[0-9A-F]/,t.ASCIILowerHexDigit=/[0-9a-f]/,t.ASCIIHexDigit=/[0-9A-Fa-f]/,t.ASCIIUpperAlpha=/[A-Z]/,t.ASCIILowerAlpha=/[a-z]/,t.ASCIIAlpha=/[A-Za-z]/,t.ASCIIAlphanumeric=/[0-9A-Za-z]/},function(r,t,i){"use strict";var a=this&&this.__values||function(He){var et=typeof Symbol=="function"&&Symbol.iterator,ut=et&&He[et],ft=0;if(ut)return ut.call(He);if(He&&typeof He.length=="number")return{next:e(function(){return He&&ft>=He.length&&(He=void 0),{value:He&&He[ft++],done:!He}},"next")};throw new TypeError(et?"Object is not iterable.":"Symbol.iterator is not defined.")},c=this&&this.__read||function(He,et){var ut=typeof Symbol=="function"&&He[Symbol.iterator];if(!ut)return He;var ft,Wt,En=ut.call(He),fn=[];try{for(;(et===void 0||et-- >0)&&!(ft=En.next()).done;)fn.push(ft.value)}catch(Gt){Wt={error:Gt}}finally{try{ft&&!ft.done&&(ut=En.return)&&ut.call(En)}finally{if(Wt)throw Wt.error}}return fn},d=this&&this.__spread||function(){for(var He=[],et=0;et<arguments.length;et++)He=He.concat(c(arguments[et]));return He};Object.defineProperty(t,"__esModule",{value:!0});var f=i(6),g=i(1),v=i(3),S=i(171),E=i(104),A=i(9),C=i(17),L=i(72),W=i(30);function O(He,et){et===void 0&&(et=void 0),et===void 0&&(et=null);var ut=w(He,et,new Date,{});return ut._isTrusted=!0,ut}e(O,"m");function w(He,et,ut,ft){var Wt=new He("");return Wt._initializedFlag=!0,Wt._timeStamp=ut.getTime(),Object.assign(Wt,ft),f.dom.features.steps&&W.dom_runEventConstructingSteps(Wt),Wt}e(w,"y");function M(He,et,ut,ft){var Wt,En,fn,Gt;ut===void 0&&(ut=!1),ft===void 0&&(ft={value:!1});var Kt=!1;He._dispatchFlag=!0;var wt=et;if(ut){var Xt=et._associatedDocument;v.Guard.isDocumentNode(Xt)&&(wt=Xt)}var yt=null,Nn=C.tree_retarget(He._relatedTarget,et);if(et!==Nn||et===He._relatedTarget){var kn=[];try{for(var an=a(He._touchTargetList),Mn=an.next();!Mn.done;Mn=an.next()){var ir=Mn.value;kn.push(C.tree_retarget(ir,et))}}catch(Wo){Wt={error:Wo}}finally{try{Mn&&!Mn.done&&(En=an.return)&&En.call(an)}finally{if(Wt)throw Wt.error}}J(He,et,wt,Nn,kn,!1);var Zt=v.Guard.isMouseEvent(He)&&He._type==="click";Zt&&et._activationBehavior!==void 0&&(yt=et);for(var Bt=v.Guard.isSlotable(et)&&L.shadowTree_isAssigned(et)?et:null,ht=!1,de=et._getTheParent(He);de!==null&&v.Guard.isNode(de);){if(Bt!==null){if(!v.Guard.isSlot(de))throw new Error("Parent node of a slotable should be a slot.");Bt=null;var At=C.tree_rootNode(de,!0);v.Guard.isShadowRoot(At)&&At._mode==="closed"&&(ht=!0)}v.Guard.isSlotable(de)&&L.shadowTree_isAssigned(de)&&(Bt=de),Nn=C.tree_retarget(He._relatedTarget,de),kn=[];try{for(var ct=(fn=void 0,a(He._touchTargetList)),Lt=ct.next();!Lt.done;Lt=ct.next())ir=Lt.value,kn.push(C.tree_retarget(ir,de))}catch(Wo){fn={error:Wo}}finally{try{Lt&&!Lt.done&&(Gt=ct.return)&&Gt.call(ct)}finally{if(fn)throw fn.error}}v.Guard.isWindow(de)||v.Guard.isNode(de)&&v.Guard.isNode(et)&&C.tree_isAncestorOf(C.tree_rootNode(et,!0),de,!0,!0)?(Zt&&He._bubbles&&yt===null&&de._activationBehavior&&(yt=de),J(He,de,null,Nn,kn,ht)):de===Nn?de=null:(et=de,Zt&&yt===null&&et._activationBehavior&&(yt=et),J(He,de,et,Nn,kn,ht)),de!==null&&(de=de._getTheParent(He)),ht=!1}for(var jt=null,wn=He._path,Cr=wn.length-1;Cr>=0;Cr--)if((vn=wn[Cr]).shadowAdjustedTarget!==null){jt=vn;break}if(jt!==null)if(v.Guard.isNode(jt.shadowAdjustedTarget)&&v.Guard.isShadowRoot(C.tree_rootNode(jt.shadowAdjustedTarget,!0)))Kt=!0;else if(v.Guard.isNode(jt.relatedTarget)&&v.Guard.isShadowRoot(C.tree_rootNode(jt.relatedTarget,!0)))Kt=!0;else for(var _r=0;_r<jt.touchTargetList.length;_r++){var vn=jt.touchTargetList[_r];if(v.Guard.isNode(vn)&&v.Guard.isShadowRoot(C.tree_rootNode(vn,!0))){Kt=!0;break}}for(yt!==null&&yt._legacyPreActivationBehavior!==void 0&&yt._legacyPreActivationBehavior(He),Cr=wn.length-1;Cr>=0;Cr--)(vn=wn[Cr]).shadowAdjustedTarget!==null?He._eventPhase=g.EventPhase.AtTarget:He._eventPhase=g.EventPhase.Capturing,Z(vn,He,"capturing",ft);for(Cr=0;Cr<wn.length;Cr++){if((vn=wn[Cr]).shadowAdjustedTarget!==null)He._eventPhase=g.EventPhase.AtTarget;else{if(!He._bubbles)continue;He._eventPhase=g.EventPhase.Bubbling}Z(vn,He,"bubbling",ft)}}return He._eventPhase=g.EventPhase.None,He._currentTarget=null,He._path=[],He._dispatchFlag=!1,He._stopPropagationFlag=!1,He._stopImmediatePropagationFlag=!1,Kt&&(He._target=null,He._relatedTarget=null,He._touchTargetList=[]),yt!==null&&(He._canceledFlag||yt._activationBehavior===void 0?yt._legacyCanceledActivationBehavior!==void 0&&yt._legacyCanceledActivationBehavior(He):yt._activationBehavior(He)),!He._canceledFlag}e(M,"v");function J(He,et,ut,ft,Wt,En){var fn=!1;v.Guard.isNode(et)&&v.Guard.isShadowRoot(C.tree_rootNode(et))&&(fn=!0);var Gt=!1;v.Guard.isShadowRoot(et)&&et._mode==="closed"&&(Gt=!0),He._path.push({invocationTarget:et,invocationTargetInShadowTree:fn,shadowAdjustedTarget:ut,relatedTarget:ft,touchTargetList:Wt,rootOfClosedTree:Gt,slotInClosedTree:En})}e(J,"_");function Z(He,et,ut,ft){ft===void 0&&(ft={value:!1});for(var Wt=et._path,En=-1,fn=0;fn<Wt.length;fn++)if(Wt[fn]===He){En=fn;break}if(En!==-1){var Gt=Wt[En];(Gt.shadowAdjustedTarget!==null||En>0&&(Gt=Wt[En-1]).shadowAdjustedTarget!==null)&&(et._target=Gt.shadowAdjustedTarget)}if(et._relatedTarget=He.relatedTarget,et._touchTargetList=He.touchTargetList,!et._stopPropagationFlag){et._currentTarget=He.invocationTarget;var Kt=et._currentTarget._eventListenerList,wt=new(Array.bind.apply(Array,d([void 0],Kt)));if(!Q(et,wt,ut,He,ft)&&et._isTrusted){var Xt=et._type;Xt==="animationend"?et._type="webkitAnimationEnd":Xt==="animationiteration"?et._type="webkitAnimationIteration":Xt==="animationstart"?et._type="webkitAnimationStart":Xt==="transitionend"&&(et._type="webkitTransitionEnd"),Q(et,wt,ut,He,ft),et._type=Xt}}}e(Z,"g");function Q(He,et,ut,ft,Wt){Wt===void 0&&(Wt={value:!1});for(var En=!1,fn=0;fn<et.length;fn++){var Gt=et[fn];if(!Gt.removed){if(He._type!==Gt.type||(En=!0,ut==="capturing"&&!Gt.capture)||ut==="bubbling"&&Gt.capture)continue;if(Gt.once&&He._currentTarget!==null){for(var Kt=He._currentTarget,wt=-1,Xt=0;Xt<Kt._eventListenerList.length;Xt++)if(Kt._eventListenerList[Xt]===Gt){wt=Xt;break}wt!==-1&&Kt._eventListenerList.splice(wt,1)}var yt=void 0,Nn=void 0;v.Guard.isWindow(yt)&&(Nn=yt._currentEvent,ft.invocationTargetInShadowTree===!1&&(yt._currentEvent=He)),Gt.passive&&(He._inPassiveListenerFlag=!0);try{Gt.callback.handleEvent.call(He._currentTarget,He)}catch{Wt.value=!0}if(Gt.passive&&(He._inPassiveListenerFlag=!1),v.Guard.isWindow(yt)&&(yt._currentEvent=Nn),He._stopImmediatePropagationFlag)return En}}return En}e(Q,"b");function me(He,et){return null}e(me,"x");function be(He,et){return null}e(be,"w");function he(He,et){}e(he,"E");function _e(He,et){}e(_e,"D"),t.event_setTheCanceledFlag=function(He){He._cancelable&&!He._inPassiveListenerFlag&&(He._canceledFlag=!0)},t.event_initialize=function(He,et,ut,ft){He._initializedFlag=!0,He._stopPropagationFlag=!1,He._stopImmediatePropagationFlag=!1,He._canceledFlag=!1,He._isTrusted=!1,He._target=null,He._type=et,He._bubbles=ut,He._cancelable=ft},t.event_createAnEvent=O,t.event_innerEventCreationSteps=w,t.event_dispatch=M,t.event_appendToAnEventPath=J,t.event_invoke=Z,t.event_innerInvoke=Q,t.event_fireAnEvent=function(He,et,ut,ft,Wt){ut===void 0&&(ut=E.EventImpl);var En=O(ut);if(En._type=He,ft)for(var fn in ft)En[fn]=ft[fn];return M(En,et,Wt)},t.event_createLegacyEvent=function(He){var et=null;switch(He.toLowerCase()){case"beforeunloadevent":case"compositionevent":break;case"customevent":et=S.CustomEventImpl;break;case"devicemotionevent":case"deviceorientationevent":case"dragevent":break;case"event":case"events":et=E.EventImpl}if(et===null)throw new A.NotSupportedError("Event constructor not found for interface "+He+".");var ut=new et("");return ut._type="",ut._timeStamp=new Date().getTime(),ut._isTrusted=!1,ut._initializedFlag=!1,ut},t.event_getterEventHandlerIDLAttribute=function(He,et){return null},t.event_setterEventHandlerIDLAttribute=function(He,et,ut){},t.event_determineTheTargetOfAnEventHandler=me,t.event_getTheCurrentValueOfAnEventHandler=be,t.event_activateAnEventHandler=he,t.event_deactivateAnEventHandler=_e},function(r,t,i){"use strict";var a,c=this&&this.__extends||(a=e(function(J,Z){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(Q,me){Q.__proto__=me}||function(Q,me){for(var be in me)me.hasOwnProperty(be)&&(Q[be]=me[be])})(J,Z)},"n"),function(J,Z){function Q(){this.constructor=J}e(Q,"r"),a(J,Z),J.prototype=Z===null?Object.create(Z):(Q.prototype=Z.prototype,new Q)}),d=this&&this.__values||function(J){var Z=typeof Symbol=="function"&&Symbol.iterator,Q=Z&&J[Z],me=0;if(Q)return Q.call(J);if(J&&typeof J.length=="number")return{next:e(function(){return J&&me>=J.length&&(J=void 0),{value:J&&J[me++],done:!J}},"next")};throw new TypeError(Z?"Object is not iterable.":"Symbol.iterator is not defined.")},f=this&&this.__read||function(J,Z){var Q=typeof Symbol=="function"&&J[Symbol.iterator];if(!Q)return J;var me,be,he=Q.call(J),_e=[];try{for(;(Z===void 0||Z-- >0)&&!(me=he.next()).done;)_e.push(me.value)}catch(He){be={error:He}}finally{try{me&&!me.done&&(Q=he.return)&&Q.call(he)}finally{if(be)throw be.error}}return _e};Object.defineProperty(t,"__esModule",{value:!0});var g=i(6),v=i(1),S=i(9),E=i(34),A=i(3),C=i(2),L=i(7),W=i(152),O=i(0),w=i(12),M=function(J){function Z(){var Q=J.call(this)||this;return Q._children=new Set,Q._encoding={name:"UTF-8",labels:["unicode-1-1-utf-8","utf-8","utf8"]},Q._contentType="application/xml",Q._URL={scheme:"about",username:"",password:"",host:null,port:null,path:["blank"],query:null,fragment:null,_cannotBeABaseURLFlag:!0,_blobURLEntry:null},Q._origin=null,Q._type="xml",Q._mode="no-quirks",Q._documentElement=null,Q._hasNamespaces=!1,Q._nodeDocumentOverwrite=null,Q}return e(Z,"t"),c(Z,J),Object.defineProperty(Z.prototype,"_nodeDocument",{get:e(function(){return this._nodeDocumentOverwrite||this},"get"),set:e(function(Q){this._nodeDocumentOverwrite=Q},"set"),enumerable:!0,configurable:!0}),Object.defineProperty(Z.prototype,"implementation",{get:e(function(){return this._implementation||(this._implementation=O.create_domImplementation(this))},"get"),enumerable:!0,configurable:!0}),Object.defineProperty(Z.prototype,"URL",{get:e(function(){return W.urlSerializer(this._URL)},"get"),enumerable:!0,configurable:!0}),Object.defineProperty(Z.prototype,"documentURI",{get:e(function(){return this.URL},"get"),enumerable:!0,configurable:!0}),Object.defineProperty(Z.prototype,"origin",{get:e(function(){return"null"},"get"),enumerable:!0,configurable:!0}),Object.defineProperty(Z.prototype,"compatMode",{get:e(function(){return this._mode==="quirks"?"BackCompat":"CSS1Compat"},"get"),enumerable:!0,configurable:!0}),Object.defineProperty(Z.prototype,"characterSet",{get:e(function(){return this._encoding.name},"get"),enumerable:!0,configurable:!0}),Object.defineProperty(Z.prototype,"charset",{get:e(function(){return this._encoding.name},"get"),enumerable:!0,configurable:!0}),Object.defineProperty(Z.prototype,"inputEncoding",{get:e(function(){return this._encoding.name},"get"),enumerable:!0,configurable:!0}),Object.defineProperty(Z.prototype,"contentType",{get:e(function(){return this._contentType},"get"),enumerable:!0,configurable:!0}),Object.defineProperty(Z.prototype,"doctype",{get:e(function(){var Q,me;try{for(var be=d(this._children),he=be.next();!he.done;he=be.next()){var _e=he.value;if(A.Guard.isDocumentTypeNode(_e))return _e}}catch(He){Q={error:He}}finally{try{he&&!he.done&&(me=be.return)&&me.call(be)}finally{if(Q)throw Q.error}}return null},"get"),enumerable:!0,configurable:!0}),Object.defineProperty(Z.prototype,"documentElement",{get:e(function(){return this._documentElement},"get"),enumerable:!0,configurable:!0}),Z.prototype.getElementsByTagName=function(Q){return O.node_listOfElementsWithQualifiedName(Q,this)},Z.prototype.getElementsByTagNameNS=function(Q,me){return O.node_listOfElementsWithNamespace(Q,me,this)},Z.prototype.getElementsByClassName=function(Q){return O.node_listOfElementsWithClassNames(Q,this)},Z.prototype.createElement=function(Q,me){if(!O.xml_isName(Q))throw new S.InvalidCharacterError;this._type==="html"&&(Q=Q.toLowerCase());var be=null;me!==void 0&&(be=C.isString(me)?me:me.is);var he=this._type==="html"||this._contentType==="application/xhtml+xml"?L.namespace.HTML:null;return O.element_createAnElement(this,Q,he,null,be,!0)},Z.prototype.createElementNS=function(Q,me,be){return O.document_internalCreateElementNS(this,Q,me,be)},Z.prototype.createDocumentFragment=function(){return O.create_documentFragment(this)},Z.prototype.createTextNode=function(Q){return O.create_text(this,Q)},Z.prototype.createCDATASection=function(Q){if(this._type==="html")throw new S.NotSupportedError;if(Q.indexOf("]]>")!==-1)throw new S.InvalidCharacterError;return O.create_cdataSection(this,Q)},Z.prototype.createComment=function(Q){return O.create_comment(this,Q)},Z.prototype.createProcessingInstruction=function(Q,me){if(!O.xml_isName(Q))throw new S.InvalidCharacterError;if(me.indexOf("?>")!==-1)throw new S.InvalidCharacterError;return O.create_processingInstruction(this,Q,me)},Z.prototype.importNode=function(Q,me){if(me===void 0&&(me=!1),A.Guard.isDocumentNode(Q)||A.Guard.isShadowRoot(Q))throw new S.NotSupportedError;return O.node_clone(Q,this,me)},Z.prototype.adoptNode=function(Q){if(A.Guard.isDocumentNode(Q))throw new S.NotSupportedError;if(A.Guard.isShadowRoot(Q))throw new S.HierarchyRequestError;return O.document_adopt(Q,this),Q},Z.prototype.createAttribute=function(Q){if(!O.xml_isName(Q))throw new S.InvalidCharacterError;return this._type==="html"&&(Q=Q.toLowerCase()),O.create_attr(this,Q)},Z.prototype.createAttributeNS=function(Q,me){var be=f(O.namespace_validateAndExtract(Q,me),3),he=be[0],_e=be[1],He=be[2],et=O.create_attr(this,He);return et._namespace=he,et._namespacePrefix=_e,et},Z.prototype.createEvent=function(Q){return O.event_createLegacyEvent(Q)},Z.prototype.createRange=function(){var Q=O.create_range();return Q._start=[this,0],Q._end=[this,0],Q},Z.prototype.createNodeIterator=function(Q,me,be){me===void 0&&(me=v.WhatToShow.All),be===void 0&&(be=null);var he=O.create_nodeIterator(Q,Q,!0);return he._whatToShow=me,he._iteratorCollection=O.create_nodeList(Q),C.isFunction(be)?(he._filter=O.create_nodeFilter(),he._filter.acceptNode=be):he._filter=be,he},Z.prototype.createTreeWalker=function(Q,me,be){me===void 0&&(me=v.WhatToShow.All),be===void 0&&(be=null);var he=O.create_treeWalker(Q,Q);return he._whatToShow=me,C.isFunction(be)?(he._filter=O.create_nodeFilter(),he._filter.acceptNode=be):he._filter=be,he},Z.prototype._getTheParent=function(Q){return Q._type==="load"?null:g.dom.window},Z.prototype.getElementById=function(Q){throw new Error("Mixin: NonElementParentNode not implemented.")},Object.defineProperty(Z.prototype,"children",{get:e(function(){throw new Error("Mixin: ParentNode not implemented.")},"get"),enumerable:!0,configurable:!0}),Object.defineProperty(Z.prototype,"firstElementChild",{get:e(function(){throw new Error("Mixin: ParentNode not implemented.")},"get"),enumerable:!0,configurable:!0}),Object.defineProperty(Z.prototype,"lastElementChild",{get:e(function(){throw new Error("Mixin: ParentNode not implemented.")},"get"),enumerable:!0,configurable:!0}),Object.defineProperty(Z.prototype,"childElementCount",{get:e(function(){throw new Error("Mixin: ParentNode not implemented.")},"get"),enumerable:!0,configurable:!0}),Z.prototype.prepend=function(){for(var Q=[],me=0;me<arguments.length;me++)Q[me]=arguments[me];throw new Error("Mixin: ParentNode not implemented.")},Z.prototype.append=function(){for(var Q=[],me=0;me<arguments.length;me++)Q[me]=arguments[me];throw new Error("Mixin: ParentNode not implemented.")},Z.prototype.querySelector=function(Q){throw new Error("Mixin: ParentNode not implemented.")},Z.prototype.querySelectorAll=function(Q){throw new Error("Mixin: ParentNode not implemented.")},Z}(E.NodeImpl);t.DocumentImpl=M,w.idl_defineConst(M.prototype,"_nodeType",v.NodeType.Document)},function(r,t,i){"use strict";var a,c=this&&this.__extends||(a=e(function(W,O){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(w,M){w.__proto__=M}||function(w,M){for(var J in M)M.hasOwnProperty(J)&&(w[J]=M[J])})(W,O)},"n"),function(W,O){function w(){this.constructor=W}e(w,"r"),a(W,O),W.prototype=O===null?Object.create(O):(w.prototype=O.prototype,new w)}),d=this&&this.__values||function(W){var O=typeof Symbol=="function"&&Symbol.iterator,w=O&&W[O],M=0;if(w)return w.call(W);if(W&&typeof W.length=="number")return{next:e(function(){return W&&M>=W.length&&(W=void 0),{value:W&&W[M++],done:!W}},"next")};throw new TypeError(O?"Object is not iterable.":"Symbol.iterator is not defined.")},f=this&&this.__read||function(W,O){var w=typeof Symbol=="function"&&W[Symbol.iterator];if(!w)return W;var M,J,Z=w.call(W),Q=[];try{for(;(O===void 0||O-- >0)&&!(M=Z.next()).done;)Q.push(M.value)}catch(me){J={error:me}}finally{try{M&&!M.done&&(w=Z.return)&&w.call(Z)}finally{if(J)throw J.error}}return Q};Object.defineProperty(t,"__esModule",{value:!0});var g=i(1),v=i(34),S=i(9),E=i(7),A=i(0),C=i(12),L=function(W){function O(){var w=W.call(this)||this;return w._children=new Set,w._namespace=null,w._namespacePrefix=null,w._localName="",w._customElementState="undefined",w._customElementDefinition=null,w._is=null,w._shadowRoot=null,w._attributeList=A.create_namedNodeMap(w),w._attributeChangeSteps=[],w._name="",w._assignedSlot=null,w}return e(O,"t"),c(O,W),Object.defineProperty(O.prototype,"namespaceURI",{get:e(function(){return this._namespace},"get"),enumerable:!0,configurable:!0}),Object.defineProperty(O.prototype,"prefix",{get:e(function(){return this._namespacePrefix},"get"),enumerable:!0,configurable:!0}),Object.defineProperty(O.prototype,"localName",{get:e(function(){return this._localName},"get"),enumerable:!0,configurable:!0}),Object.defineProperty(O.prototype,"tagName",{get:e(function(){return this._htmlUppercasedQualifiedName},"get"),enumerable:!0,configurable:!0}),Object.defineProperty(O.prototype,"id",{get:e(function(){return A.element_getAnAttributeValue(this,"id")},"get"),set:e(function(w){A.element_setAnAttributeValue(this,"id",w)},"set"),enumerable:!0,configurable:!0}),Object.defineProperty(O.prototype,"className",{get:e(function(){return A.element_getAnAttributeValue(this,"class")},"get"),set:e(function(w){A.element_setAnAttributeValue(this,"class",w)},"set"),enumerable:!0,configurable:!0}),Object.defineProperty(O.prototype,"classList",{get:e(function(){var w=A.element_getAnAttributeByName("class",this);return w===null&&(w=A.create_attr(this._nodeDocument,"class")),A.create_domTokenList(this,w)},"get"),enumerable:!0,configurable:!0}),Object.defineProperty(O.prototype,"slot",{get:e(function(){return A.element_getAnAttributeValue(this,"slot")},"get"),set:e(function(w){A.element_setAnAttributeValue(this,"slot",w)},"set"),enumerable:!0,configurable:!0}),O.prototype.hasAttributes=function(){return this._attributeList.length!==0},Object.defineProperty(O.prototype,"attributes",{get:e(function(){return this._attributeList},"get"),enumerable:!0,configurable:!0}),O.prototype.getAttributeNames=function(){var w,M,J=[];try{for(var Z=d(this._attributeList),Q=Z.next();!Q.done;Q=Z.next()){var me=Q.value;J.push(me._qualifiedName)}}catch(be){w={error:be}}finally{try{Q&&!Q.done&&(M=Z.return)&&M.call(Z)}finally{if(w)throw w.error}}return J},O.prototype.getAttribute=function(w){var M=A.element_getAnAttributeByName(w,this);return M?M._value:null},O.prototype.getAttributeNS=function(w,M){var J=A.element_getAnAttributeByNamespaceAndLocalName(w,M,this);return J?J._value:null},O.prototype.setAttribute=function(w,M){if(!A.xml_isName(w))throw new S.InvalidCharacterError;this._namespace===E.namespace.HTML&&this._nodeDocument._type==="html"&&(w=w.toLowerCase());for(var J=null,Z=0;Z<this._attributeList.length;Z++){var Q=this._attributeList[Z];if(Q._qualifiedName===w){J=Q;break}}if(J===null)return(J=A.create_attr(this._nodeDocument,w))._value=M,void A.element_append(J,this);A.element_change(J,this,M)},O.prototype.setAttributeNS=function(w,M,J){var Z=f(A.namespace_validateAndExtract(w,M),3),Q=Z[0],me=Z[1],be=Z[2];A.element_setAnAttributeValue(this,be,J,me,Q)},O.prototype.removeAttribute=function(w){A.element_removeAnAttributeByName(w,this)},O.prototype.removeAttributeNS=function(w,M){A.element_removeAnAttributeByNamespaceAndLocalName(w,M,this)},O.prototype.hasAttribute=function(w){this._namespace===E.namespace.HTML&&this._nodeDocument._type==="html"&&(w=w.toLowerCase());for(var M=0;M<this._attributeList.length;M++)if(this._attributeList[M]._qualifiedName===w)return!0;return!1},O.prototype.toggleAttribute=function(w,M){if(!A.xml_isName(w))throw new S.InvalidCharacterError;this._namespace===E.namespace.HTML&&this._nodeDocument._type==="html"&&(w=w.toLowerCase());for(var J=null,Z=0;Z<this._attributeList.length;Z++){var Q=this._attributeList[Z];if(Q._qualifiedName===w){J=Q;break}}return J===null?(M===void 0||M===!0)&&((J=A.create_attr(this._nodeDocument,w))._value="",A.element_append(J,this),!0):M!==void 0&&M!==!1||(A.element_removeAnAttributeByName(w,this),!1)},O.prototype.hasAttributeNS=function(w,M){for(var J=w||null,Z=0;Z<this._attributeList.length;Z++){var Q=this._attributeList[Z];if(Q._namespace===J&&Q._localName===M)return!0}return!1},O.prototype.getAttributeNode=function(w){return A.element_getAnAttributeByName(w,this)},O.prototype.getAttributeNodeNS=function(w,M){return A.element_getAnAttributeByNamespaceAndLocalName(w,M,this)},O.prototype.setAttributeNode=function(w){return A.element_setAnAttribute(w,this)},O.prototype.setAttributeNodeNS=function(w){return A.element_setAnAttribute(w,this)},O.prototype.removeAttributeNode=function(w){for(var M=!1,J=0;J<this._attributeList.length;J++)if(this._attributeList[J]===w){M=!0;break}if(!M)throw new S.NotFoundError;return A.element_remove(w,this),w},O.prototype.attachShadow=function(w){if(this._namespace!==E.namespace.HTML)throw new S.NotSupportedError;if(!A.customElement_isValidCustomElementName(this._localName)&&!A.customElement_isValidShadowHostName(this._localName))throw new S.NotSupportedError;if(A.customElement_isValidCustomElementName(this._localName)||this._is!==null){var M=A.customElement_lookUpACustomElementDefinition(this._nodeDocument,this._namespace,this._localName,this._is);if(M!==null&&M.disableShadow===!0)throw new S.NotSupportedError}if(this._shadowRoot!==null)throw new S.NotSupportedError;var J=A.create_shadowRoot(this._nodeDocument,this);return J._mode=w.mode,this._shadowRoot=J,J},Object.defineProperty(O.prototype,"shadowRoot",{get:e(function(){var w=this._shadowRoot;return w===null||w.mode==="closed"?null:w},"get"),enumerable:!0,configurable:!0}),O.prototype.closest=function(w){throw new S.NotImplementedError},O.prototype.matches=function(w){throw new S.NotImplementedError},O.prototype.webkitMatchesSelector=function(w){return this.matches(w)},O.prototype.getElementsByTagName=function(w){return A.node_listOfElementsWithQualifiedName(w,this)},O.prototype.getElementsByTagNameNS=function(w,M){return A.node_listOfElementsWithNamespace(w,M,this)},O.prototype.getElementsByClassName=function(w){return A.node_listOfElementsWithClassNames(w,this)},O.prototype.insertAdjacentElement=function(w,M){return A.element_insertAdjacent(this,w,M)},O.prototype.insertAdjacentText=function(w,M){var J=A.create_text(this._nodeDocument,M);A.element_insertAdjacent(this,w,J)},Object.defineProperty(O.prototype,"_qualifiedName",{get:e(function(){return this._namespacePrefix?this._namespacePrefix+":"+this._localName:this._localName},"get"),enumerable:!0,configurable:!0}),Object.defineProperty(O.prototype,"_htmlUppercasedQualifiedName",{get:e(function(){var w=this._qualifiedName;return this._namespace===E.namespace.HTML&&this._nodeDocument._type==="html"&&(w=w.toUpperCase()),w},"get"),enumerable:!0,configurable:!0}),Object.defineProperty(O.prototype,"children",{get:e(function(){throw new Error("Mixin: ParentNode not implemented.")},"get"),enumerable:!0,configurable:!0}),Object.defineProperty(O.prototype,"firstElementChild",{get:e(function(){throw new Error("Mixin: ParentNode not implemented.")},"get"),enumerable:!0,configurable:!0}),Object.defineProperty(O.prototype,"lastElementChild",{get:e(function(){throw new Error("Mixin: ParentNode not implemented.")},"get"),enumerable:!0,configurable:!0}),Object.defineProperty(O.prototype,"childElementCount",{get:e(function(){throw new Error("Mixin: ParentNode not implemented.")},"get"),enumerable:!0,configurable:!0}),O.prototype.prepend=function(){for(var w=[],M=0;M<arguments.length;M++)w[M]=arguments[M];throw new Error("Mixin: ParentNode not implemented.")},O.prototype.append=function(){for(var w=[],M=0;M<arguments.length;M++)w[M]=arguments[M];throw new Error("Mixin: ParentNode not implemented.")},O.prototype.querySelector=function(w){throw new Error("Mixin: ParentNode not implemented.")},O.prototype.querySelectorAll=function(w){throw new Error("Mixin: ParentNode not implemented.")},Object.defineProperty(O.prototype,"previousElementSibling",{get:e(function(){throw new Error("Mixin: NonDocumentTypeChildNode not implemented.")},"get"),enumerable:!0,configurable:!0}),Object.defineProperty(O.prototype,"nextElementSibling",{get:e(function(){throw new Error("Mixin: NonDocumentTypeChildNode not implemented.")},"get"),enumerable:!0,configurable:!0}),O.prototype.before=function(){for(var w=[],M=0;M<arguments.length;M++)w[M]=arguments[M];throw new Error("Mixin: ChildNode not implemented.")},O.prototype.after=function(){for(var w=[],M=0;M<arguments.length;M++)w[M]=arguments[M];throw new Error("Mixin: ChildNode not implemented.")},O.prototype.replaceWith=function(){for(var w=[],M=0;M<arguments.length;M++)w[M]=arguments[M];throw new Error("Mixin: ChildNode not implemented.")},O.prototype.remove=function(){throw new Error("Mixin: ChildNode not implemented.")},Object.defineProperty(O.prototype,"assignedSlot",{get:e(function(){throw new Error("Mixin: Slotable not implemented.")},"get"),enumerable:!0,configurable:!0}),O._create=function(w,M,J,Z){J===void 0&&(J=null),Z===void 0&&(Z=null);var Q=new O;return Q._localName=M,Q._namespace=J,Q._namespacePrefix=Z,Q._nodeDocument=w,Q},O}(v.NodeImpl);t.ElementImpl=L,C.idl_defineConst(L.prototype,"_nodeType",g.NodeType.Element)},function(r,t,i){"use strict";var a,c=this&&this.__extends||(a=e(function(S,E){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(A,C){A.__proto__=C}||function(A,C){for(var L in C)C.hasOwnProperty(L)&&(A[L]=C[L])})(S,E)},"n"),function(S,E){function A(){this.constructor=S}e(A,"r"),a(S,E),S.prototype=E===null?Object.create(E):(A.prototype=E.prototype,new A)});Object.defineProperty(t,"__esModule",{value:!0});var d=i(1),f=i(34),g=i(12),v=function(S){function E(A){A===void 0&&(A=null);var C=S.call(this)||this;return C._children=new Set,C._host=A,C}return e(E,"t"),c(E,S),E.prototype.getElementById=function(A){throw new Error("Mixin: NonElementParentNode not implemented.")},Object.defineProperty(E.prototype,"children",{get:e(function(){throw new Error("Mixin: ParentNode not implemented.")},"get"),enumerable:!0,configurable:!0}),Object.defineProperty(E.prototype,"firstElementChild",{get:e(function(){throw new Error("Mixin: ParentNode not implemented.")},"get"),enumerable:!0,configurable:!0}),Object.defineProperty(E.prototype,"lastElementChild",{get:e(function(){throw new Error("Mixin: ParentNode not implemented.")},"get"),enumerable:!0,configurable:!0}),Object.defineProperty(E.prototype,"childElementCount",{get:e(function(){throw new Error("Mixin: ParentNode not implemented.")},"get"),enumerable:!0,configurable:!0}),E.prototype.prepend=function(){for(var A=[],C=0;C<arguments.length;C++)A[C]=arguments[C];throw new Error("Mixin: ParentNode not implemented.")},E.prototype.append=function(){for(var A=[],C=0;C<arguments.length;C++)A[C]=arguments[C];throw new Error("Mixin: ParentNode not implemented.")},E.prototype.querySelector=function(A){throw new Error("Mixin: ParentNode not implemented.")},E.prototype.querySelectorAll=function(A){throw new Error("Mixin: ParentNode not implemented.")},E._create=function(A,C){C===void 0&&(C=null);var L=new E(C);return L._nodeDocument=A,L},E}(f.NodeImpl);t.DocumentFragmentImpl=v,g.idl_defineConst(v.prototype,"_nodeType",d.NodeType.DocumentFragment)},function(r,t,i){"use strict";var a,c=this&&this.__extends||(a=e(function(A,C){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(L,W){L.__proto__=W}||function(L,W){for(var O in W)W.hasOwnProperty(O)&&(L[O]=W[O])})(A,C)},"n"),function(A,C){function L(){this.constructor=A}e(L,"r"),a(A,C),A.prototype=C===null?Object.create(C):(L.prototype=C.prototype,new L)}),d=this&&this.__values||function(A){var C=typeof Symbol=="function"&&Symbol.iterator,L=C&&A[C],W=0;if(L)return L.call(A);if(A&&typeof A.length=="number")return{next:e(function(){return A&&W>=A.length&&(A=void 0),{value:A&&A[W++],done:!A}},"next")};throw new TypeError(C?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0});var f=i(1),g=i(71),v=i(0),S=i(12),E=function(A){function C(L){L===void 0&&(L="");var W=A.call(this,L)||this;return W._name="",W._assignedSlot=null,W}return e(C,"t"),c(C,A),Object.defineProperty(C.prototype,"wholeText",{get:e(function(){var L,W,O="";try{for(var w=d(v.text_contiguousTextNodes(this,!0)),M=w.next();!M.done;M=w.next())O+=M.value._data}catch(J){L={error:J}}finally{try{M&&!M.done&&(W=w.return)&&W.call(w)}finally{if(L)throw L.error}}return O},"get"),enumerable:!0,configurable:!0}),C.prototype.splitText=function(L){return v.text_split(this,L)},Object.defineProperty(C.prototype,"assignedSlot",{get:e(function(){throw new Error("Mixin: Slotable not implemented.")},"get"),enumerable:!0,configurable:!0}),C._create=function(L,W){W===void 0&&(W="");var O=new C(W);return O._nodeDocument=L,O},C}(g.CharacterDataImpl);t.TextImpl=E,S.idl_defineConst(E.prototype,"_nodeType",f.NodeType.Text)},function(r,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function c(){}return e(c,"e"),Object.defineProperty(c.prototype,"_startNode",{get:e(function(){return this._start[0]},"get"),enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"_startOffset",{get:e(function(){return this._start[1]},"get"),enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"_endNode",{get:e(function(){return this._end[0]},"get"),enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"_endOffset",{get:e(function(){return this._end[1]},"get"),enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"_collapsed",{get:e(function(){return this._start[0]===this._end[0]&&this._start[1]===this._end[1]},"get"),enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"startContainer",{get:e(function(){return this._startNode},"get"),enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"startOffset",{get:e(function(){return this._startOffset},"get"),enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"endContainer",{get:e(function(){return this._endNode},"get"),enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"endOffset",{get:e(function(){return this._endOffset},"get"),enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"collapsed",{get:e(function(){return this._collapsed},"get"),enumerable:!0,configurable:!0}),c}();t.AbstractRangeImpl=a},function(r,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=i(1),c=function(){function d(f){this._activeFlag=!1,this._root=f,this._whatToShow=a.WhatToShow.All,this._filter=null}return e(d,"e"),Object.defineProperty(d.prototype,"root",{get:e(function(){return this._root},"get"),enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"whatToShow",{get:e(function(){return this._whatToShow},"get"),enumerable:!0,configurable:!0}),Object.defineProperty(d.prototype,"filter",{get:e(function(){return this._filter},"get"),enumerable:!0,configurable:!0}),d}();t.TraverserImpl=c},function(r,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=i(1),c=i(0),d=i(12),f=function(){function g(v,S){this._target=null,this._relatedTarget=null,this._touchTargetList=[],this._path=[],this._currentTarget=null,this._eventPhase=a.EventPhase.None,this._stopPropagationFlag=!1,this._stopImmediatePropagationFlag=!1,this._canceledFlag=!1,this._inPassiveListenerFlag=!1,this._composedFlag=!1,this._initializedFlag=!1,this._dispatchFlag=!1,this._isTrusted=!1,this._bubbles=!1,this._cancelable=!1,this._type=v,S&&(this._bubbles=S.bubbles||!1,this._cancelable=S.cancelable||!1,this._composedFlag=S.composed||!1),this._initializedFlag=!0,this._timeStamp=new Date().getTime()}return e(g,"e"),Object.defineProperty(g.prototype,"type",{get:e(function(){return this._type},"get"),enumerable:!0,configurable:!0}),Object.defineProperty(g.prototype,"target",{get:e(function(){return this._target},"get"),enumerable:!0,configurable:!0}),Object.defineProperty(g.prototype,"srcElement",{get:e(function(){return this._target},"get"),enumerable:!0,configurable:!0}),Object.defineProperty(g.prototype,"currentTarget",{get:e(function(){return this._currentTarget},"get"),enumerable:!0,configurable:!0}),g.prototype.composedPath=function(){var v=[],S=this._path;if(S.length===0)return v;var E=this._currentTarget;if(E===null)throw new Error("Event currentTarget is null.");v.push(E);for(var A=0,C=0,L=S.length-1;L>=0;){if(S[L].rootOfClosedTree&&C++,S[L].invocationTarget===E){A=L;break}S[L].slotInClosedTree&&C--,L--}var W=C,O=C;for(L=A-1;L>=0;)S[L].rootOfClosedTree&&W++,W<=O&&v.unshift(S[L].invocationTarget),S[L].slotInClosedTree&&--W<O&&(O=W),L--;for(W=C,O=C,L=A+1;L<S.length;)S[L].slotInClosedTree&&W++,W<=O&&v.push(S[L].invocationTarget),S[L].rootOfClosedTree&&--W<O&&(O=W),L++;return v},Object.defineProperty(g.prototype,"eventPhase",{get:e(function(){return this._eventPhase},"get"),enumerable:!0,configurable:!0}),g.prototype.stopPropagation=function(){this._stopPropagationFlag=!0},Object.defineProperty(g.prototype,"cancelBubble",{get:e(function(){return this._stopPropagationFlag},"get"),set:e(function(v){v&&this.stopPropagation()},"set"),enumerable:!0,configurable:!0}),g.prototype.stopImmediatePropagation=function(){this._stopPropagationFlag=!0,this._stopImmediatePropagationFlag=!0},Object.defineProperty(g.prototype,"bubbles",{get:e(function(){return this._bubbles},"get"),enumerable:!0,configurable:!0}),Object.defineProperty(g.prototype,"cancelable",{get:e(function(){return this._cancelable},"get"),enumerable:!0,configurable:!0}),Object.defineProperty(g.prototype,"returnValue",{get:e(function(){return!this._canceledFlag},"get"),set:e(function(v){v||c.event_setTheCanceledFlag(this)},"set"),enumerable:!0,configurable:!0}),g.prototype.preventDefault=function(){c.event_setTheCanceledFlag(this)},Object.defineProperty(g.prototype,"defaultPrevented",{get:e(function(){return this._canceledFlag},"get"),enumerable:!0,configurable:!0}),Object.defineProperty(g.prototype,"composed",{get:e(function(){return this._composedFlag},"get"),enumerable:!0,configurable:!0}),Object.defineProperty(g.prototype,"isTrusted",{get:e(function(){return this._isTrusted},"get"),enumerable:!0,configurable:!0}),Object.defineProperty(g.prototype,"timeStamp",{get:e(function(){return this._timeStamp},"get"),enumerable:!0,configurable:!0}),g.prototype.initEvent=function(v,S,E){S===void 0&&(S=!1),E===void 0&&(E=!1),this._dispatchFlag||c.event_initialize(this,v,S,E)},g.NONE=0,g.CAPTURING_PHASE=1,g.AT_TARGET=2,g.BUBBLING_PHASE=3,g}();t.EventImpl=f,d.idl_defineConst(f.prototype,"NONE",0),d.idl_defineConst(f.prototype,"CAPTURING_PHASE",1),d.idl_defineConst(f.prototype,"AT_TARGET",2),d.idl_defineConst(f.prototype,"BUBBLING_PHASE",3)},function(r,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=i(1),c=i(9);t.traversal_filter=function(d,f){if(d._activeFlag)throw new c.InvalidStateError;var g=1<<f._nodeType-1;if(!(d.whatToShow&g))return a.FilterResult.Skip;if(!d.filter)return a.FilterResult.Accept;d._activeFlag=!0;var v=a.FilterResult.Reject;try{v=d.filter.acceptNode(f)}catch(S){throw d._activeFlag=!1,S}return d._activeFlag=!1,v}},function(r,t,i){"use strict";var a=this&&this.__read||function(O,w){var M=typeof Symbol=="function"&&O[Symbol.iterator];if(!M)return O;var J,Z,Q=M.call(O),me=[];try{for(;(w===void 0||w-- >0)&&!(J=Q.next()).done;)me.push(J.value)}catch(be){Z={error:be}}finally{try{J&&!J.done&&(M=Q.return)&&M.call(Q)}finally{if(Z)throw Z.error}}return me},c=this&&this.__values||function(O){var w=typeof Symbol=="function"&&Symbol.iterator,M=w&&O[w],J=0;if(M)return M.call(O);if(O&&typeof O.length=="number")return{next:e(function(){return O&&J>=O.length&&(O=void 0),{value:O&&O[J++],done:!O}},"next")};throw new TypeError(w?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0});var d=i(6),f=i(3),g=i(2),v=i(99),S=i(73),E=i(17),A=i(173),C=i(30),L=i(52),W=i(37);t.document_elementInterface=function(O,w){return v.ElementImpl},t.document_internalCreateElementNS=function(O,w,M,J){var Z=a(A.namespace_validateAndExtract(w,M),3),Q=Z[0],me=Z[1],be=Z[2],he=null;return J!==void 0&&(he=g.isString(J)?J:J.is),L.element_createAnElement(O,be,Q,me,he,!0)},t.document_adopt=function(O,w){var M,J;if(O._nodeDocument!==w||O._parent!==null){var Z=O._nodeDocument;if(O._parent&&W.mutation_remove(O,O._parent),w!==Z)for(var Q=E.tree_getFirstDescendantNode(O,!0,!0);Q!==null;){if(Q._nodeDocument=w,f.Guard.isElementNode(Q))try{for(var me=(M=void 0,c(Q._attributeList._asArray())),be=me.next();!be.done;be=me.next())be.value._nodeDocument=w}catch(he){M={error:he}}finally{try{be&&!be.done&&(J=me.return)&&J.call(me)}finally{if(M)throw M.error}}d.dom.features.customElements&&f.Guard.isElementNode(Q)&&Q._customElementState==="custom"&&S.customElement_enqueueACustomElementCallbackReaction(Q,"adoptedCallback",[Z,w]),d.dom.features.steps&&C.dom_runAdoptingSteps(Q,Z),Q=E.tree_getNextDescendantNode(O,Q,!0,!0)}}}},function(r,t,i){"use strict";var a=this&&this.__values||function(E){var A=typeof Symbol=="function"&&Symbol.iterator,C=A&&E[A],L=0;if(C)return C.call(E);if(E&&typeof E.length=="number")return{next:e(function(){return E&&L>=E.length&&(E=void 0),{value:E&&E[L++],done:!E}},"next")};throw new TypeError(A?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0});var c=i(6),d=i(3),f=i(9),g=i(17),v=i(51),S=i(30);t.characterData_replaceData=function(E,A,C,L){var W,O,w=g.tree_nodeLength(E);if(A>w)throw new f.IndexSizeError("Offset exceeds character data length. Offset: "+A+", Length: "+w+", Node is "+E.nodeName+".");A+C>w&&(C=w-A),c.dom.features.mutationObservers&&v.observer_queueMutationRecord("characterData",E,null,null,E._data,[],[],null,null);var M=E._data.substring(0,A)+L+E._data.substring(A+C);E._data=M;try{for(var J=a(c.dom.rangeList),Z=J.next();!Z.done;Z=J.next()){var Q=Z.value;Q._start[0]===E&&Q._start[1]>A&&Q._start[1]<=A+C&&(Q._start[1]=A),Q._end[0]===E&&Q._end[1]>A&&Q._end[1]<=A+C&&(Q._end[1]=A),Q._start[0]===E&&Q._start[1]>A+C&&(Q._start[1]+=L.length-C),Q._end[0]===E&&Q._end[1]>A+C&&(Q._end[1]+=L.length-C)}}catch(me){W={error:me}}finally{try{Z&&!Z.done&&(O=J.return)&&O.call(J)}finally{if(W)throw W.error}}c.dom.features.steps&&d.Guard.isTextNode(E)&&E._parent!==null&&S.dom_runChildTextContentChangeSteps(E._parent)},t.characterData_substringData=function(E,A,C){var L=g.tree_nodeLength(E);if(A>L)throw new f.IndexSizeError("Offset exceeds character data length. Offset: "+A+", Length: "+L+", Node is "+E.nodeName+".");return A+C>L?E._data.substr(A):E._data.substr(A,C)}},function(r,t,i){"use strict";var a=this&&this.__read||function(S,E){var A=typeof Symbol=="function"&&S[Symbol.iterator];if(!A)return S;var C,L,W=A.call(S),O=[];try{for(;(E===void 0||E-- >0)&&!(C=W.next()).done;)O.push(C.value)}catch(w){L={error:w}}finally{try{C&&!C.done&&(A=W.return)&&A.call(W)}finally{if(L)throw L.error}}return O},c=this&&this.__spread||function(){for(var S=[],E=0;E<arguments.length;E++)S=S.concat(a(arguments[E]));return S},d=this&&this.__values||function(S){var E=typeof Symbol=="function"&&Symbol.iterator,A=E&&S[E],C=0;if(A)return A.call(S);if(S&&typeof S.length=="number")return{next:e(function(){return S&&C>=S.length&&(S=void 0),{value:S&&S[C++],done:!S}},"next")};throw new TypeError(E?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0});var f=i(7);function g(S){var E=f.string.splitAStringOnASCIIWhitespace(S);return new Set(E)}e(g,"s");function v(S){return c(S).join(" ")}e(v,"u"),t.orderedSet_parse=g,t.orderedSet_serialize=v,t.orderedSet_sanitize=function(S){return v(g(S))},t.orderedSet_contains=function(S,E,A){var C,L,W,O;try{for(var w=d(E),M=w.next();!M.done;M=w.next()){var J=M.value,Z=!1;try{for(var Q=(W=void 0,d(S)),me=Q.next();!me.done;me=Q.next()){var be=me.value;if(A){if(be===J){Z=!0;break}}else if(be.toUpperCase()===J.toUpperCase()){Z=!0;break}}}catch(he){W={error:he}}finally{try{me&&!me.done&&(O=Q.return)&&O.call(Q)}finally{if(W)throw W.error}}if(!Z)return!1}}catch(he){C={error:he}}finally{try{M&&!M.done&&(L=w.return)&&L.call(w)}finally{if(C)throw C.error}}return!0}},function(r,t,i){"use strict";i(179),Object.defineProperty(t,"__esModule",{value:!0});var a=i(263),c=i(110),d=i(2);c.dom.setFeatures(!1),t.createDocument=function(){var f=new a.DOMImplementation().createDocument(null,"root",null);return f.documentElement&&f.removeChild(f.documentElement),f},t.sanitizeInput=function(f,g){if(f==null)return f;if(g===void 0)return f+"";var v="";f+="";for(var S=0;S<f.length;S++){var E=f.charCodeAt(S);if(E===9||E===10||E===13||E>=32&&E<=55295||E>=57344&&E<=65533)v+=f.charAt(S);else if(E>=55296&&E<=56319&&S<f.length-1){var A=f.charCodeAt(S+1);A>=56320&&A<=57343?(E=1024*(E-55296)+A-56320+65536,v+=String.fromCodePoint(E),S++):v+=d.isString(g)?g:g(f.charAt(S),S,f)}else v+=d.isString(g)?g:g(f.charAt(S),S,f)}return v}},function(r,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=i(2),c=i(153);t.AbortController=c.AbortControllerImpl;var d=i(154);t.AbortSignal=d.AbortSignalImpl;var f=i(102);t.AbstractRange=f.AbstractRangeImpl;var g=i(157);t.Attr=g.AttrImpl;var v=i(158);t.CDATASection=v.CDATASectionImpl;var S=i(71);t.CharacterData=S.CharacterDataImpl;var E=i(264),A=i(159);t.Comment=A.CommentImpl;var C=i(171);t.CustomEvent=C.CustomEventImpl;var L=i(100);t.DocumentFragment=L.DocumentFragmentImpl;var W=i(98);t.Document=W.DocumentImpl;var O=i(265),w=i(155);t.DocumentType=w.DocumentTypeImpl;var M=i(6);t.dom=M.dom;var J=i(148);t.DOMImplementation=J.DOMImplementationImpl;var Z=i(170);t.DOMTokenList=Z.DOMTokenListImpl;var Q=i(99);t.Element=Q.ElementImpl;var me=i(104);t.Event=me.EventImpl;var be=i(70);t.EventTarget=be.EventTargetImpl;var he=i(161);t.HTMLCollection=he.HTMLCollectionImpl;var _e=i(266);t.MutationObserver=_e.MutationObserverImpl;var He=i(169);t.MutationRecord=He.MutationRecordImpl;var et=i(164);t.NamedNodeMap=et.NamedNodeMapImpl;var ut=i(168);t.NodeFilter=ut.NodeFilterImpl;var ft=i(34);t.Node=ft.NodeImpl;var Wt=i(166);t.NodeIterator=Wt.NodeIteratorImpl;var En=i(162);t.NodeList=En.NodeListImpl;var fn=i(163);t.NodeListStatic=fn.NodeListStaticImpl;var Gt=i(267),Kt=i(268),wt=i(269),Xt=i(160);t.ProcessingInstruction=Xt.ProcessingInstructionImpl;var yt=i(165);t.Range=yt.RangeImpl;var Nn=i(156);t.ShadowRoot=Nn.ShadowRootImpl;var kn=i(270),an=i(271);t.StaticRange=an.StaticRangeImpl;var Mn=i(101);t.Text=Mn.TextImpl;var ir=i(103);t.Traverser=ir.TraverserImpl;var Zt=i(167);t.TreeWalker=Zt.TreeWalkerImpl;var Bt=i(149);t.Window=Bt.WindowImpl;var ht=i(151);t.XMLDocument=ht.XMLDocumentImpl,a.applyMixin(Q.ElementImpl,E.ChildNodeImpl),a.applyMixin(S.CharacterDataImpl,E.ChildNodeImpl),a.applyMixin(w.DocumentTypeImpl,E.ChildNodeImpl),a.applyMixin(W.DocumentImpl,O.DocumentOrShadowRootImpl),a.applyMixin(Nn.ShadowRootImpl,O.DocumentOrShadowRootImpl),a.applyMixin(Q.ElementImpl,Gt.NonDocumentTypeChildNodeImpl),a.applyMixin(S.CharacterDataImpl,Gt.NonDocumentTypeChildNodeImpl),a.applyMixin(W.DocumentImpl,Kt.NonElementParentNodeImpl),a.applyMixin(L.DocumentFragmentImpl,Kt.NonElementParentNodeImpl),a.applyMixin(W.DocumentImpl,wt.ParentNodeImpl),a.applyMixin(L.DocumentFragmentImpl,wt.ParentNodeImpl),a.applyMixin(Q.ElementImpl,wt.ParentNodeImpl),a.applyMixin(Mn.TextImpl,kn.SlotableImpl),a.applyMixin(Q.ElementImpl,kn.SlotableImpl)},function(r,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(a){a[a.EOF=0]="EOF",a[a.Declaration=1]="Declaration",a[a.DocType=2]="DocType",a[a.Element=3]="Element",a[a.Text=4]="Text",a[a.CDATA=5]="CDATA",a[a.PI=6]="PI",a[a.Comment=7]="Comment",a[a.ClosingTag=8]="ClosingTag"}(t.TokenType||(t.TokenType={}))},function(r,t,i){"use strict";i(64),i(20),i(66);var a,c=this&&this.__extends||(a=e(function(g,v){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,E){S.__proto__=E}||function(S,E){for(var A in E)E.hasOwnProperty(A)&&(S[A]=E[A])})(g,v)},"n"),function(g,v){function S(){this.constructor=g}e(S,"r"),a(g,v),g.prototype=v===null?Object.create(v):(S.prototype=v.prototype,new S)});Object.defineProperty(t,"__esModule",{value:!0});var d=i(2),f=function(g){function v(){return g!==null&&g.apply(this,arguments)||this}return e(v,"t"),c(v,g),v.prototype._parse=function(S,E){var A=this,C=this._builderOptions,L=null;return d.isFunction(E)?L=this.parse(S,E.apply(this)):d.isArray(E)||d.isSet(E)?d.forEachArray(E,function(W){return L=A.parse(S,W)},this):d.isMap(E)||d.isObject(E)?d.forEachObject(E,function(W,O){if(d.isFunction(O)&&(O=O.apply(A)),C.ignoreConverters||W.indexOf(C.convert.att)!==0)if(C.ignoreConverters||W.indexOf(C.convert.text)!==0)if(C.ignoreConverters||W.indexOf(C.convert.cdata)!==0)if(C.ignoreConverters||W.indexOf(C.convert.comment)!==0)if(C.ignoreConverters||W.indexOf(C.convert.ins)!==0){if(!((d.isArray(O)||d.isSet(O))&&d.isEmpty(O))){if((d.isMap(O)||d.isObject(O))&&d.isEmpty(O))L=A.element(S,void 0,A.sanitize(W))||L;else if(C.keepNullNodes||O!=null)if(d.isArray(O)||d.isSet(O))d.forEachArray(O,function(Q){var me={};me[W]=Q,L=A.parse(S,me)},A);else if(d.isMap(O)||d.isObject(O))(w=A.element(S,void 0,A.sanitize(W)))&&(L=w,A.parse(w,O));else if(O!=null&&O!==""){var w;(w=A.element(S,void 0,A.sanitize(W)))&&(L=w,A.text(w,A._decodeText(A.sanitize(O))))}else L=A.element(S,void 0,A.sanitize(W))||L}}else if(d.isString(O)){var M=O.indexOf(" "),J=M===-1?O:O.substr(0,M),Z=M===-1?"":O.substr(M+1);L=A.instruction(S,A.sanitize(J),A.sanitize(Z))||L}else d.isArray(O)||d.isSet(O)?d.forEachArray(O,function(Q){var me=Q.indexOf(" "),be=me===-1?Q:Q.substr(0,me),he=me===-1?"":Q.substr(me+1);L=A.instruction(S,A.sanitize(be),A.sanitize(he))||L},A):d.forEachObject(O,function(Q,me){return L=A.instruction(S,A.sanitize(Q),A.sanitize(me))||L},A);else d.isArray(O)||d.isSet(O)?d.forEachArray(O,function(Q){return L=A.comment(S,A.sanitize(Q))||L},A):L=A.comment(S,A.sanitize(O))||L;else d.isArray(O)||d.isSet(O)?d.forEachArray(O,function(Q){return L=A.cdata(S,A.sanitize(Q))||L},A):L=A.cdata(S,A.sanitize(O))||L;else L=d.isMap(O)||d.isObject(O)?A.parse(S,O):A.text(S,A._decodeText(A.sanitize(O)))||L;else if(W===C.convert.att){if(d.isArray(O)||d.isSet(O))throw new Error("Invalid attribute: "+O.toString()+". "+S._debugInfo());d.forEachObject(O,function(Q,me){L=A.attribute(S,void 0,A.sanitize(Q),A._decodeAttributeValue(A.sanitize(me)))||L})}else L=A.attribute(S,void 0,A.sanitize(W.substr(C.convert.att.length)),A._decodeAttributeValue(A.sanitize(O)))||L},this):(C.keepNullNodes||E!=null)&&(L=this.text(S,this._decodeText(this.sanitize(E)))||L),L||S},v}(i(75).BaseReader);t.ObjectReader=f},function(r,t,i){"use strict";var a=i(39);r.exports=new a({explicit:[i(287),i(288),i(289)]})},function(r,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=e(function(c){this.level=0,this._builderOptions=c,this._writerOptions=c},"n");t.BaseCBWriter=a},function(r,t,i){var a=i(16),c=i(8),d=i(116);r.exports=!a&&!c(function(){return Object.defineProperty(d("div"),"a",{get:e(function(){return 7},"get")}).a!=7})},function(r,t,i){var a=i(11),c=i(13),d=a.document,f=c(d)&&c(d.createElement);r.exports=function(g){return f?d.createElement(g):{}}},function(r,t,i){var a=i(118),c=Function.toString;typeof a.inspectSource!="function"&&(a.inspectSource=function(d){return c.call(d)}),r.exports=a.inspectSource},function(r,t,i){var a=i(11),c=i(80),d=a["__core-js_shared__"]||c("__core-js_shared__",{});r.exports=d},function(r,t,i){var a=i(14),c=i(187),d=i(55),f=i(15);r.exports=function(g,v){for(var S=c(v),E=f.f,A=d.f,C=0;C<S.length;C++){var L=S[C];a(g,L)||E(g,L,A(v,L))}}},function(r,t,i){var a=i(11);r.exports=a},function(r,t,i){var a=i(14),c=i(24),d=i(122).indexOf,f=i(45);r.exports=function(g,v){var S,E=c(g),A=0,C=[];for(S in E)!a(f,S)&&a(E,S)&&C.push(S);for(;v.length>A;)a(E,S=v[A++])&&(~d(C,S)||C.push(S));return C}},function(r,t,i){var a=i(24),c=i(26),d=i(83),f=e(function(g){return function(v,S,E){var A,C=a(v),L=c(C.length),W=d(E,L);if(g&&S!=S){for(;L>W;)if((A=C[W++])!=A)return!0}else for(;L>W;W++)if((g||W in C)&&C[W]===S)return g||W||0;return!g&&-1}},"a");r.exports={includes:f(!0),indexOf:f(!1)}},function(r,t,i){var a=i(8),c=/#|\.prototype\./,d=e(function(E,A){var C=g[f(E)];return C==S||C!=v&&(typeof A=="function"?a(A):!!A)},"o"),f=d.normalize=function(E){return String(E).replace(c,".").toLowerCase()},g=d.data={},v=d.NATIVE="N",S=d.POLYFILL="P";r.exports=d},function(r,t,i){var a=i(86);r.exports=a&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},function(r,t,i){var a=i(5);t.f=a},function(r,t,i){var a=i(120),c=i(14),d=i(125),f=i(15).f;r.exports=function(g){var v=a.Symbol||(a.Symbol={});c(v,g)||f(v,g,{value:d.f(g)})}},function(r,t){r.exports=function(i){if(typeof i!="function")throw TypeError(String(i)+" is not a function");return i}},function(r,t,i){var a=i(13),c=i(59),d=i(5)("species");r.exports=function(f,g){var v;return c(f)&&(typeof(v=f.constructor)!="function"||v!==Array&&!c(v.prototype)?a(v)&&(v=v[d])===null&&(v=void 0):v=void 0),new(v===void 0?Array:v)(g===0?0:g)}},function(r,t,i){var a,c,d=i(11),f=i(193),g=d.process,v=g&&g.versions,S=v&&v.v8;S?c=(a=S.split("."))[0]+a[1]:f&&(!(a=f.match(/Edge\/(\d+)/))||a[1]>=74)&&(a=f.match(/Chrome\/(\d+)/))&&(c=a[1]),r.exports=c&&+c},function(r,t,i){var a=i(5),c=i(60),d=i(15),f=a("unscopables"),g=Array.prototype;g[f]==null&&d.f(g,f,{configurable:!0,value:c(null)}),r.exports=function(v){g[f][v]=!0}},function(r,t,i){"use strict";var a,c,d,f=i(132),g=i(21),v=i(14),S=i(5),E=i(44),A=S("iterator"),C=!1;[].keys&&("next"in(d=[].keys())?(c=f(f(d)))!==Object.prototype&&(a=c):C=!0),a==null&&(a={}),E||v(a,A)||g(a,A,function(){return this}),r.exports={IteratorPrototype:a,BUGGY_SAFARI_ITERATORS:C}},function(r,t,i){var a=i(14),c=i(27),d=i(57),f=i(196),g=d("IE_PROTO"),v=Object.prototype;r.exports=f?Object.getPrototypeOf:function(S){return S=c(S),a(S,g)?S[g]:typeof S.constructor=="function"&&S instanceof S.constructor?S.constructor.prototype:S instanceof Object?v:null}},function(r,t,i){var a=i(18),c=i(197);r.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var d,f=!1,g={};try{(d=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(g,[]),f=g instanceof Array}catch{}return function(v,S){return a(v),c(S),f?d.call(v,S):v.__proto__=S,v}}():void 0)},function(r,t,i){"use strict";var a=i(56),c=i(15),d=i(40);r.exports=function(f,g,v){var S=a(g);S in f?c.f(f,S,d(0,v)):f[S]=v}},function(r,t,i){var a=i(90),c=i(42),d=i(5)("toStringTag"),f=c(function(){return arguments}())=="Arguments";r.exports=a?c:function(g){var v,S,E;return g===void 0?"Undefined":g===null?"Null":typeof(S=function(A,C){try{return A[C]}catch{}}(v=Object(g),d))=="string"?S:f?c(v):(E=c(v))=="Object"&&typeof v.callee=="function"?"Arguments":E}},function(r,t,i){"use strict";var a=i(18);r.exports=function(){var c=a(this),d="";return c.global&&(d+="g"),c.ignoreCase&&(d+="i"),c.multiline&&(d+="m"),c.dotAll&&(d+="s"),c.unicode&&(d+="u"),c.sticky&&(d+="y"),d}},function(r,t,i){var a=i(47),c=i(35),d=e(function(f){return function(g,v){var S,E,A=String(c(g)),C=a(v),L=A.length;return C<0||C>=L?f?"":void 0:(S=A.charCodeAt(C))<55296||S>56319||C+1===L||(E=A.charCodeAt(C+1))<56320||E>57343?f?A.charAt(C):S:f?A.slice(C,C+2):E-56320+(S-55296<<10)+65536}},"o");r.exports={codeAt:d(!1),charAt:d(!0)}},function(r,t,i){var a=i(4),c=i(27),d=i(61);a({target:"Object",stat:!0,forced:i(8)(function(){d(1)})},{keys:e(function(f){return d(c(f))},"keys")})},function(r,t,i){"use strict";var a=i(4),c=i(11),d=i(123),f=i(25),g=i(140),v=i(141),S=i(142),E=i(13),A=i(8),C=i(208),L=i(62),W=i(209);r.exports=function(O,w,M){var J=O.indexOf("Map")!==-1,Z=O.indexOf("Weak")!==-1,Q=J?"set":"add",me=c[O],be=me&&me.prototype,he=me,_e={},He=e(function(fn){var Gt=be[fn];f(be,fn,fn=="add"?function(Kt){return Gt.call(this,Kt===0?0:Kt),this}:fn=="delete"?function(Kt){return!(Z&&!E(Kt))&&Gt.call(this,Kt===0?0:Kt)}:fn=="get"?function(Kt){return Z&&!E(Kt)?void 0:Gt.call(this,Kt===0?0:Kt)}:fn=="has"?function(Kt){return!(Z&&!E(Kt))&&Gt.call(this,Kt===0?0:Kt)}:function(Kt,wt){return Gt.call(this,Kt===0?0:Kt,wt),this})},"w");if(d(O,typeof me!="function"||!(Z||be.forEach&&!A(function(){new me().entries().next()}))))he=M.getConstructor(w,O,J,Q),g.REQUIRED=!0;else if(d(O,!0)){var et=new he,ut=et[Q](Z?{}:-0,1)!=et,ft=A(function(){et.has(1)}),Wt=C(function(fn){new me(fn)}),En=!Z&&A(function(){for(var fn=new me,Gt=5;Gt--;)fn[Q](Gt,Gt);return!fn.has(-0)});Wt||((he=w(function(fn,Gt){S(fn,he,O);var Kt=W(new me,fn,he);return Gt!=null&&v(Gt,Kt[Q],Kt,J),Kt})).prototype=be,be.constructor=he),(ft||En)&&(He("delete"),He("has"),J&&He("get")),(En||ut)&&He(Q),Z&&be.clear&&delete be.clear}return _e[O]=he,a({global:!0,forced:he!=me},_e),L(he,O),Z||M.setStrong(he,O,J),he}},function(r,t,i){var a=i(45),c=i(13),d=i(14),f=i(15).f,g=i(58),v=i(204),S=g("meta"),E=0,A=Object.isExtensible||function(){return!0},C=e(function(W){f(W,S,{value:{objectID:"O"+ ++E,weakData:{}}})},"p"),L=r.exports={REQUIRED:!1,fastKey:e(function(W,O){if(!c(W))return typeof W=="symbol"?W:(typeof W=="string"?"S":"P")+W;if(!d(W,S)){if(!A(W))return"F";if(!O)return"E";C(W)}return W[S].objectID},"fastKey"),getWeakData:e(function(W,O){if(!d(W,S)){if(!A(W))return!0;if(!O)return!1;C(W)}return W[S].weakData},"getWeakData"),onFreeze:e(function(W){return v&&L.REQUIRED&&A(W)&&!d(W,S)&&C(W),W},"onFreeze")};a[S]=!0},function(r,t,i){var a=i(18),c=i(205),d=i(26),f=i(87),g=i(206),v=i(207),S=e(function(E,A){this.stopped=E,this.result=A},"l");(r.exports=function(E,A,C,L,W){var O,w,M,J,Z,Q,me,be=f(A,C,L?2:1);if(W)O=E;else{if(typeof(w=g(E))!="function")throw TypeError("Target is not iterable");if(c(w)){for(M=0,J=d(E.length);J>M;M++)if((Z=L?be(a(me=E[M])[0],me[1]):be(E[M]))&&Z instanceof S)return Z;return new S(!1)}O=w.call(E)}for(Q=O.next;!(me=Q.call(O)).done;)if(typeof(Z=v(O,be,me.value,L))=="object"&&Z&&Z instanceof S)return Z;return new S(!1)}).stop=function(E){return new S(!0,E)}},function(r,t){r.exports=function(i,a,c){if(!(i instanceof a))throw TypeError("Incorrect "+(c?c+" ":"")+"invocation");return i}},function(r,t,i){"use strict";var a=i(15).f,c=i(60),d=i(210),f=i(87),g=i(142),v=i(141),S=i(88),E=i(211),A=i(16),C=i(140).fastKey,L=i(43),W=L.set,O=L.getterFor;r.exports={getConstructor:e(function(w,M,J,Z){var Q=w(function(_e,He){g(_e,Q,M),W(_e,{type:M,index:c(null),first:void 0,last:void 0,size:0}),A||(_e.size=0),He!=null&&v(He,_e[Z],_e,J)}),me=O(M),be=e(function(_e,He,et){var ut,ft,Wt=me(_e),En=he(_e,He);return En?En.value=et:(Wt.last=En={index:ft=C(He,!0),key:He,value:et,previous:ut=Wt.last,next:void 0,removed:!1},Wt.first||(Wt.first=En),ut&&(ut.next=En),A?Wt.size++:_e.size++,ft!=="F"&&(Wt.index[ft]=En)),_e},"y"),he=e(function(_e,He){var et,ut=me(_e),ft=C(He);if(ft!=="F")return ut.index[ft];for(et=ut.first;et;et=et.next)if(et.key==He)return et},"v");return d(Q.prototype,{clear:e(function(){for(var _e=me(this),He=_e.index,et=_e.first;et;)et.removed=!0,et.previous&&(et.previous=et.previous.next=void 0),delete He[et.index],et=et.next;_e.first=_e.last=void 0,A?_e.size=0:this.size=0},"clear"),delete:e(function(_e){var He=me(this),et=he(this,_e);if(et){var ut=et.next,ft=et.previous;delete He.index[et.index],et.removed=!0,ft&&(ft.next=ut),ut&&(ut.previous=ft),He.first==et&&(He.first=ut),He.last==et&&(He.last=ft),A?He.size--:this.size--}return!!et},"delete"),forEach:e(function(_e){for(var He,et=me(this),ut=f(_e,arguments.length>1?arguments[1]:void 0,3);He=He?He.next:et.first;)for(ut(He.value,He.key,this);He&&He.removed;)He=He.previous},"forEach"),has:e(function(_e){return!!he(this,_e)},"has")}),d(Q.prototype,J?{get:e(function(_e){var He=he(this,_e);return He&&He.value},"get"),set:e(function(_e,He){return be(this,_e===0?0:_e,He)},"set")}:{add:e(function(_e){return be(this,_e=_e===0?0:_e,_e)},"add")}),A&&a(Q.prototype,"size",{get:e(function(){return me(this).size},"get")}),Q},"getConstructor"),setStrong:e(function(w,M,J){var Z=M+" Iterator",Q=O(M),me=O(Z);S(w,M,function(be,he){W(this,{type:Z,target:be,state:Q(be),kind:he,last:void 0})},function(){for(var be=me(this),he=be.kind,_e=be.last;_e&&_e.removed;)_e=_e.previous;return be.target&&(be.last=_e=_e?_e.next:be.state.first)?he=="keys"?{value:_e.key,done:!1}:he=="values"?{value:_e.value,done:!1}:{value:[_e.key,_e.value],done:!1}:(be.target=void 0,{value:void 0,done:!0})},J?"entries":"values",!J,!0),E(M)},"setStrong")}},function(r,t,i){"use strict";var a,c=i(4),d=i(55).f,f=i(26),g=i(222),v=i(35),S=i(224),E=i(44),A="".endsWith,C=Math.min,L=S("endsWith");c({target:"String",proto:!0,forced:!!(E||L||(a=d(String.prototype,"endsWith"),!a||a.writable))&&!L},{endsWith:e(function(W){var O=String(v(this));g(W);var w=arguments.length>1?arguments[1]:void 0,M=f(O.length),J=w===void 0?M:C(f(w),M),Z=String(W);return A?A.call(O,Z,J):O.slice(J-Z.length,J)===Z},"endsWith")})},function(r,t,i){"use strict";(function(a){var c=i(229),d=i(230),f=i(231);function g(){return S.TYPED_ARRAY_SUPPORT?2147483647:1073741823}e(g,"a");function v(ht,de){if(g()<de)throw new RangeError("Invalid typed array length");return S.TYPED_ARRAY_SUPPORT?(ht=new Uint8Array(de)).__proto__=S.prototype:(ht===null&&(ht=new S(de)),ht.length=de),ht}e(v,"s");function S(ht,de,At){if(!(S.TYPED_ARRAY_SUPPORT||this instanceof S))return new S(ht,de,At);if(typeof ht=="number"){if(typeof de=="string")throw new Error("If encoding is specified then the first argument must be a string");return C(this,ht)}return E(this,ht,de,At)}e(S,"u");function E(ht,de,At,ct){if(typeof de=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer<"u"&&de instanceof ArrayBuffer?function(Lt,jt,wn,Cr){if(jt.byteLength,wn<0||jt.byteLength<wn)throw new RangeError("'offset' is out of bounds");if(jt.byteLength<wn+(Cr||0))throw new RangeError("'length' is out of bounds");return jt=wn===void 0&&Cr===void 0?new Uint8Array(jt):Cr===void 0?new Uint8Array(jt,wn):new Uint8Array(jt,wn,Cr),S.TYPED_ARRAY_SUPPORT?(Lt=jt).__proto__=S.prototype:Lt=L(Lt,jt),Lt}(ht,de,At,ct):typeof de=="string"?function(Lt,jt,wn){if(typeof wn=="string"&&wn!==""||(wn="utf8"),!S.isEncoding(wn))throw new TypeError('"encoding" must be a valid string encoding');var Cr=0|O(jt,wn),_r=(Lt=v(Lt,Cr)).write(jt,wn);return _r!==Cr&&(Lt=Lt.slice(0,_r)),Lt}(ht,de,At):function(Lt,jt){if(S.isBuffer(jt)){var wn=0|W(jt.length);return(Lt=v(Lt,wn)).length===0||jt.copy(Lt,0,0,wn),Lt}if(jt){if(typeof ArrayBuffer<"u"&&jt.buffer instanceof ArrayBuffer||"length"in jt)return typeof jt.length!="number"||(Cr=jt.length)!=Cr?v(Lt,0):L(Lt,jt);if(jt.type==="Buffer"&&f(jt.data))return L(Lt,jt.data)}var Cr;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(ht,de)}e(E,"l");function A(ht){if(typeof ht!="number")throw new TypeError('"size" argument must be a number');if(ht<0)throw new RangeError('"size" argument must not be negative')}e(A,"c");function C(ht,de){if(A(de),ht=v(ht,de<0?0:0|W(de)),!S.TYPED_ARRAY_SUPPORT)for(var At=0;At<de;++At)ht[At]=0;return ht}e(C,"h");function L(ht,de){var At=de.length<0?0:0|W(de.length);ht=v(ht,At);for(var ct=0;ct<At;ct+=1)ht[ct]=255&de[ct];return ht}e(L,"p");function W(ht){if(ht>=g())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+g().toString(16)+" bytes");return 0|ht}e(W,"f");function O(ht,de){if(S.isBuffer(ht))return ht.length;if(typeof ArrayBuffer<"u"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(ht)||ht instanceof ArrayBuffer))return ht.byteLength;typeof ht!="string"&&(ht=""+ht);var At=ht.length;if(At===0)return 0;for(var ct=!1;;)switch(de){case"ascii":case"latin1":case"binary":return At;case"utf8":case"utf-8":case void 0:return ir(ht).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*At;case"hex":return At>>>1;case"base64":return Zt(ht).length;default:if(ct)return ir(ht).length;de=(""+de).toLowerCase(),ct=!0}}e(O,"d");function w(ht,de,At){var ct=!1;if((de===void 0||de<0)&&(de=0),de>this.length||((At===void 0||At>this.length)&&(At=this.length),At<=0)||(At>>>=0)<=(de>>>=0))return"";for(ht||(ht="utf8");;)switch(ht){case"hex":return En(this,de,At);case"utf8":case"utf-8":return ut(this,de,At);case"ascii":return ft(this,de,At);case"latin1":case"binary":return Wt(this,de,At);case"base64":return et(this,de,At);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return fn(this,de,At);default:if(ct)throw new TypeError("Unknown encoding: "+ht);ht=(ht+"").toLowerCase(),ct=!0}}e(w,"m");function M(ht,de,At){var ct=ht[de];ht[de]=ht[At],ht[At]=ct}e(M,"y");function J(ht,de,At,ct,Lt){if(ht.length===0)return-1;if(typeof At=="string"?(ct=At,At=0):At>2147483647?At=2147483647:At<-2147483648&&(At=-2147483648),At=+At,isNaN(At)&&(At=Lt?0:ht.length-1),At<0&&(At=ht.length+At),At>=ht.length){if(Lt)return-1;At=ht.length-1}else if(At<0){if(!Lt)return-1;At=0}if(typeof de=="string"&&(de=S.from(de,ct)),S.isBuffer(de))return de.length===0?-1:Z(ht,de,At,ct,Lt);if(typeof de=="number")return de&=255,S.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?Lt?Uint8Array.prototype.indexOf.call(ht,de,At):Uint8Array.prototype.lastIndexOf.call(ht,de,At):Z(ht,[de],At,ct,Lt);throw new TypeError("val must be string, number or Buffer")}e(J,"v");function Z(ht,de,At,ct,Lt){var jt,wn=1,Cr=ht.length,_r=de.length;if(ct!==void 0&&((ct=String(ct).toLowerCase())==="ucs2"||ct==="ucs-2"||ct==="utf16le"||ct==="utf-16le")){if(ht.length<2||de.length<2)return-1;wn=2,Cr/=2,_r/=2,At/=2}function vn(Ys,Ac){return wn===1?Ys[Ac]:Ys.readUInt16BE(Ac*wn)}if(e(vn,"l"),Lt){var Wo=-1;for(jt=At;jt<Cr;jt++)if(vn(ht,jt)===vn(de,Wo===-1?0:jt-Wo)){if(Wo===-1&&(Wo=jt),jt-Wo+1===_r)return Wo*wn}else Wo!==-1&&(jt-=jt-Wo),Wo=-1}else for(At+_r>Cr&&(At=Cr-_r),jt=At;jt>=0;jt--){for(var Ri=!0,Bs=0;Bs<_r;Bs++)if(vn(ht,jt+Bs)!==vn(de,Bs)){Ri=!1;break}if(Ri)return jt}return-1}e(Z,"_");function Q(ht,de,At,ct){At=Number(At)||0;var Lt=ht.length-At;ct?(ct=Number(ct))>Lt&&(ct=Lt):ct=Lt;var jt=de.length;if(jt%2!=0)throw new TypeError("Invalid hex string");ct>jt/2&&(ct=jt/2);for(var wn=0;wn<ct;++wn){var Cr=parseInt(de.substr(2*wn,2),16);if(isNaN(Cr))return wn;ht[At+wn]=Cr}return wn}e(Q,"g");function me(ht,de,At,ct){return Bt(ir(de,ht.length-At),ht,At,ct)}e(me,"b");function be(ht,de,At,ct){return Bt(function(Lt){for(var jt=[],wn=0;wn<Lt.length;++wn)jt.push(255&Lt.charCodeAt(wn));return jt}(de),ht,At,ct)}e(be,"x");function he(ht,de,At,ct){return be(ht,de,At,ct)}e(he,"w");function _e(ht,de,At,ct){return Bt(Zt(de),ht,At,ct)}e(_e,"E");function He(ht,de,At,ct){return Bt(function(Lt,jt){for(var wn,Cr,_r,vn=[],Wo=0;Wo<Lt.length&&!((jt-=2)<0);++Wo)wn=Lt.charCodeAt(Wo),Cr=wn>>8,_r=wn%256,vn.push(_r),vn.push(Cr);return vn}(de,ht.length-At),ht,At,ct)}e(He,"D");function et(ht,de,At){return de===0&&At===ht.length?c.fromByteArray(ht):c.fromByteArray(ht.slice(de,At))}e(et,"S");function ut(ht,de,At){At=Math.min(ht.length,At);for(var ct=[],Lt=de;Lt<At;){var jt,wn,Cr,_r,vn=ht[Lt],Wo=null,Ri=vn>239?4:vn>223?3:vn>191?2:1;if(Lt+Ri<=At)switch(Ri){case 1:vn<128&&(Wo=vn);break;case 2:(192&(jt=ht[Lt+1]))==128&&(_r=(31&vn)<<6|63&jt)>127&&(Wo=_r);break;case 3:jt=ht[Lt+1],wn=ht[Lt+2],(192&jt)==128&&(192&wn)==128&&(_r=(15&vn)<<12|(63&jt)<<6|63&wn)>2047&&(_r<55296||_r>57343)&&(Wo=_r);break;case 4:jt=ht[Lt+1],wn=ht[Lt+2],Cr=ht[Lt+3],(192&jt)==128&&(192&wn)==128&&(192&Cr)==128&&(_r=(15&vn)<<18|(63&jt)<<12|(63&wn)<<6|63&Cr)>65535&&_r<1114112&&(Wo=_r)}Wo===null?(Wo=65533,Ri=1):Wo>65535&&(Wo-=65536,ct.push(Wo>>>10&1023|55296),Wo=56320|1023&Wo),ct.push(Wo),Lt+=Ri}return function(Bs){var Ys=Bs.length;if(Ys<=4096)return String.fromCharCode.apply(String,Bs);for(var Ac="",za=0;za<Ys;)Ac+=String.fromCharCode.apply(String,Bs.slice(za,za+=4096));return Ac}(ct)}e(ut,"C"),t.Buffer=S,t.SlowBuffer=function(ht){return+ht!=ht&&(ht=0),S.alloc(+ht)},t.INSPECT_MAX_BYTES=50,S.TYPED_ARRAY_SUPPORT=a.TYPED_ARRAY_SUPPORT!==void 0?a.TYPED_ARRAY_SUPPORT:function(){try{var ht=new Uint8Array(1);return ht.__proto__={__proto__:Uint8Array.prototype,foo:e(function(){return 42},"foo")},ht.foo()===42&&typeof ht.subarray=="function"&&ht.subarray(1,1).byteLength===0}catch{return!1}}(),t.kMaxLength=g(),S.poolSize=8192,S._augment=function(ht){return ht.__proto__=S.prototype,ht},S.from=function(ht,de,At){return E(null,ht,de,At)},S.TYPED_ARRAY_SUPPORT&&(S.prototype.__proto__=Uint8Array.prototype,S.__proto__=Uint8Array,typeof Symbol<"u"&&Symbol.species&&S[Symbol.species]===S&&Object.defineProperty(S,Symbol.species,{value:null,configurable:!0})),S.alloc=function(ht,de,At){return function(ct,Lt,jt,wn){return A(Lt),Lt<=0?v(ct,Lt):jt!==void 0?typeof wn=="string"?v(ct,Lt).fill(jt,wn):v(ct,Lt).fill(jt):v(ct,Lt)}(null,ht,de,At)},S.allocUnsafe=function(ht){return C(null,ht)},S.allocUnsafeSlow=function(ht){return C(null,ht)},S.isBuffer=function(ht){return!(ht==null||!ht._isBuffer)},S.compare=function(ht,de){if(!S.isBuffer(ht)||!S.isBuffer(de))throw new TypeError("Arguments must be Buffers");if(ht===de)return 0;for(var At=ht.length,ct=de.length,Lt=0,jt=Math.min(At,ct);Lt<jt;++Lt)if(ht[Lt]!==de[Lt]){At=ht[Lt],ct=de[Lt];break}return At<ct?-1:ct<At?1:0},S.isEncoding=function(ht){switch(String(ht).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},S.concat=function(ht,de){if(!f(ht))throw new TypeError('"list" argument must be an Array of Buffers');if(ht.length===0)return S.alloc(0);var At;if(de===void 0)for(de=0,At=0;At<ht.length;++At)de+=ht[At].length;var ct=S.allocUnsafe(de),Lt=0;for(At=0;At<ht.length;++At){var jt=ht[At];if(!S.isBuffer(jt))throw new TypeError('"list" argument must be an Array of Buffers');jt.copy(ct,Lt),Lt+=jt.length}return ct},S.byteLength=O,S.prototype._isBuffer=!0,S.prototype.swap16=function(){var ht=this.length;if(ht%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var de=0;de<ht;de+=2)M(this,de,de+1);return this},S.prototype.swap32=function(){var ht=this.length;if(ht%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var de=0;de<ht;de+=4)M(this,de,de+3),M(this,de+1,de+2);return this},S.prototype.swap64=function(){var ht=this.length;if(ht%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var de=0;de<ht;de+=8)M(this,de,de+7),M(this,de+1,de+6),M(this,de+2,de+5),M(this,de+3,de+4);return this},S.prototype.toString=function(){var ht=0|this.length;return ht===0?"":arguments.length===0?ut(this,0,ht):w.apply(this,arguments)},S.prototype.equals=function(ht){if(!S.isBuffer(ht))throw new TypeError("Argument must be a Buffer");return this===ht||S.compare(this,ht)===0},S.prototype.inspect=function(){var ht="",de=t.INSPECT_MAX_BYTES;return this.length>0&&(ht=this.toString("hex",0,de).match(/.{2}/g).join(" "),this.length>de&&(ht+=" ... ")),"<Buffer "+ht+">"},S.prototype.compare=function(ht,de,At,ct,Lt){if(!S.isBuffer(ht))throw new TypeError("Argument must be a Buffer");if(de===void 0&&(de=0),At===void 0&&(At=ht?ht.length:0),ct===void 0&&(ct=0),Lt===void 0&&(Lt=this.length),de<0||At>ht.length||ct<0||Lt>this.length)throw new RangeError("out of range index");if(ct>=Lt&&de>=At)return 0;if(ct>=Lt)return-1;if(de>=At)return 1;if(this===ht)return 0;for(var jt=(Lt>>>=0)-(ct>>>=0),wn=(At>>>=0)-(de>>>=0),Cr=Math.min(jt,wn),_r=this.slice(ct,Lt),vn=ht.slice(de,At),Wo=0;Wo<Cr;++Wo)if(_r[Wo]!==vn[Wo]){jt=_r[Wo],wn=vn[Wo];break}return jt<wn?-1:wn<jt?1:0},S.prototype.includes=function(ht,de,At){return this.indexOf(ht,de,At)!==-1},S.prototype.indexOf=function(ht,de,At){return J(this,ht,de,At,!0)},S.prototype.lastIndexOf=function(ht,de,At){return J(this,ht,de,At,!1)},S.prototype.write=function(ht,de,At,ct){if(de===void 0)ct="utf8",At=this.length,de=0;else if(At===void 0&&typeof de=="string")ct=de,At=this.length,de=0;else{if(!isFinite(de))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");de|=0,isFinite(At)?(At|=0,ct===void 0&&(ct="utf8")):(ct=At,At=void 0)}var Lt=this.length-de;if((At===void 0||At>Lt)&&(At=Lt),ht.length>0&&(At<0||de<0)||de>this.length)throw new RangeError("Attempt to write outside buffer bounds");ct||(ct="utf8");for(var jt=!1;;)switch(ct){case"hex":return Q(this,ht,de,At);case"utf8":case"utf-8":return me(this,ht,de,At);case"ascii":return be(this,ht,de,At);case"latin1":case"binary":return he(this,ht,de,At);case"base64":return _e(this,ht,de,At);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return He(this,ht,de,At);default:if(jt)throw new TypeError("Unknown encoding: "+ct);ct=(""+ct).toLowerCase(),jt=!0}},S.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function ft(ht,de,At){var ct="";At=Math.min(ht.length,At);for(var Lt=de;Lt<At;++Lt)ct+=String.fromCharCode(127&ht[Lt]);return ct}e(ft,"A");function Wt(ht,de,At){var ct="";At=Math.min(ht.length,At);for(var Lt=de;Lt<At;++Lt)ct+=String.fromCharCode(ht[Lt]);return ct}e(Wt,"N");function En(ht,de,At){var ct=ht.length;(!de||de<0)&&(de=0),(!At||At<0||At>ct)&&(At=ct);for(var Lt="",jt=de;jt<At;++jt)Lt+=Mn(ht[jt]);return Lt}e(En,"T");function fn(ht,de,At){for(var ct=ht.slice(de,At),Lt="",jt=0;jt<ct.length;jt+=2)Lt+=String.fromCharCode(ct[jt]+256*ct[jt+1]);return Lt}e(fn,"O");function Gt(ht,de,At){if(ht%1!=0||ht<0)throw new RangeError("offset is not uint");if(ht+de>At)throw new RangeError("Trying to access beyond buffer length")}e(Gt,"F");function Kt(ht,de,At,ct,Lt,jt){if(!S.isBuffer(ht))throw new TypeError('"buffer" argument must be a Buffer instance');if(de>Lt||de<jt)throw new RangeError('"value" argument is out of bounds');if(At+ct>ht.length)throw new RangeError("Index out of range")}e(Kt,"k");function wt(ht,de,At,ct){de<0&&(de=65535+de+1);for(var Lt=0,jt=Math.min(ht.length-At,2);Lt<jt;++Lt)ht[At+Lt]=(de&255<<8*(ct?Lt:1-Lt))>>>8*(ct?Lt:1-Lt)}e(wt,"P");function Xt(ht,de,At,ct){de<0&&(de=4294967295+de+1);for(var Lt=0,jt=Math.min(ht.length-At,4);Lt<jt;++Lt)ht[At+Lt]=de>>>8*(ct?Lt:3-Lt)&255}e(Xt,"I");function yt(ht,de,At,ct,Lt,jt){if(At+ct>ht.length)throw new RangeError("Index out of range");if(At<0)throw new RangeError("Index out of range")}e(yt,"L");function Nn(ht,de,At,ct,Lt){return Lt||yt(ht,0,At,4),d.write(ht,de,At,ct,23,4),At+4}e(Nn,"M");function kn(ht,de,At,ct,Lt){return Lt||yt(ht,0,At,8),d.write(ht,de,At,ct,52,8),At+8}e(kn,"B"),S.prototype.slice=function(ht,de){var At,ct=this.length;if((ht=~~ht)<0?(ht+=ct)<0&&(ht=0):ht>ct&&(ht=ct),(de=de===void 0?ct:~~de)<0?(de+=ct)<0&&(de=0):de>ct&&(de=ct),de<ht&&(de=ht),S.TYPED_ARRAY_SUPPORT)(At=this.subarray(ht,de)).__proto__=S.prototype;else{var Lt=de-ht;At=new S(Lt,void 0);for(var jt=0;jt<Lt;++jt)At[jt]=this[jt+ht]}return At},S.prototype.readUIntLE=function(ht,de,At){ht|=0,de|=0,At||Gt(ht,de,this.length);for(var ct=this[ht],Lt=1,jt=0;++jt<de&&(Lt*=256);)ct+=this[ht+jt]*Lt;return ct},S.prototype.readUIntBE=function(ht,de,At){ht|=0,de|=0,At||Gt(ht,de,this.length);for(var ct=this[ht+--de],Lt=1;de>0&&(Lt*=256);)ct+=this[ht+--de]*Lt;return ct},S.prototype.readUInt8=function(ht,de){return de||Gt(ht,1,this.length),this[ht]},S.prototype.readUInt16LE=function(ht,de){return de||Gt(ht,2,this.length),this[ht]|this[ht+1]<<8},S.prototype.readUInt16BE=function(ht,de){return de||Gt(ht,2,this.length),this[ht]<<8|this[ht+1]},S.prototype.readUInt32LE=function(ht,de){return de||Gt(ht,4,this.length),(this[ht]|this[ht+1]<<8|this[ht+2]<<16)+16777216*this[ht+3]},S.prototype.readUInt32BE=function(ht,de){return de||Gt(ht,4,this.length),16777216*this[ht]+(this[ht+1]<<16|this[ht+2]<<8|this[ht+3])},S.prototype.readIntLE=function(ht,de,At){ht|=0,de|=0,At||Gt(ht,de,this.length);for(var ct=this[ht],Lt=1,jt=0;++jt<de&&(Lt*=256);)ct+=this[ht+jt]*Lt;return ct>=(Lt*=128)&&(ct-=Math.pow(2,8*de)),ct},S.prototype.readIntBE=function(ht,de,At){ht|=0,de|=0,At||Gt(ht,de,this.length);for(var ct=de,Lt=1,jt=this[ht+--ct];ct>0&&(Lt*=256);)jt+=this[ht+--ct]*Lt;return jt>=(Lt*=128)&&(jt-=Math.pow(2,8*de)),jt},S.prototype.readInt8=function(ht,de){return de||Gt(ht,1,this.length),128&this[ht]?-1*(255-this[ht]+1):this[ht]},S.prototype.readInt16LE=function(ht,de){de||Gt(ht,2,this.length);var At=this[ht]|this[ht+1]<<8;return 32768&At?4294901760|At:At},S.prototype.readInt16BE=function(ht,de){de||Gt(ht,2,this.length);var At=this[ht+1]|this[ht]<<8;return 32768&At?4294901760|At:At},S.prototype.readInt32LE=function(ht,de){return de||Gt(ht,4,this.length),this[ht]|this[ht+1]<<8|this[ht+2]<<16|this[ht+3]<<24},S.prototype.readInt32BE=function(ht,de){return de||Gt(ht,4,this.length),this[ht]<<24|this[ht+1]<<16|this[ht+2]<<8|this[ht+3]},S.prototype.readFloatLE=function(ht,de){return de||Gt(ht,4,this.length),d.read(this,ht,!0,23,4)},S.prototype.readFloatBE=function(ht,de){return de||Gt(ht,4,this.length),d.read(this,ht,!1,23,4)},S.prototype.readDoubleLE=function(ht,de){return de||Gt(ht,8,this.length),d.read(this,ht,!0,52,8)},S.prototype.readDoubleBE=function(ht,de){return de||Gt(ht,8,this.length),d.read(this,ht,!1,52,8)},S.prototype.writeUIntLE=function(ht,de,At,ct){ht=+ht,de|=0,At|=0,ct||Kt(this,ht,de,At,Math.pow(2,8*At)-1,0);var Lt=1,jt=0;for(this[de]=255&ht;++jt<At&&(Lt*=256);)this[de+jt]=ht/Lt&255;return de+At},S.prototype.writeUIntBE=function(ht,de,At,ct){ht=+ht,de|=0,At|=0,ct||Kt(this,ht,de,At,Math.pow(2,8*At)-1,0);var Lt=At-1,jt=1;for(this[de+Lt]=255&ht;--Lt>=0&&(jt*=256);)this[de+Lt]=ht/jt&255;return de+At},S.prototype.writeUInt8=function(ht,de,At){return ht=+ht,de|=0,At||Kt(this,ht,de,1,255,0),S.TYPED_ARRAY_SUPPORT||(ht=Math.floor(ht)),this[de]=255&ht,de+1},S.prototype.writeUInt16LE=function(ht,de,At){return ht=+ht,de|=0,At||Kt(this,ht,de,2,65535,0),S.TYPED_ARRAY_SUPPORT?(this[de]=255&ht,this[de+1]=ht>>>8):wt(this,ht,de,!0),de+2},S.prototype.writeUInt16BE=function(ht,de,At){return ht=+ht,de|=0,At||Kt(this,ht,de,2,65535,0),S.TYPED_ARRAY_SUPPORT?(this[de]=ht>>>8,this[de+1]=255&ht):wt(this,ht,de,!1),de+2},S.prototype.writeUInt32LE=function(ht,de,At){return ht=+ht,de|=0,At||Kt(this,ht,de,4,4294967295,0),S.TYPED_ARRAY_SUPPORT?(this[de+3]=ht>>>24,this[de+2]=ht>>>16,this[de+1]=ht>>>8,this[de]=255&ht):Xt(this,ht,de,!0),de+4},S.prototype.writeUInt32BE=function(ht,de,At){return ht=+ht,de|=0,At||Kt(this,ht,de,4,4294967295,0),S.TYPED_ARRAY_SUPPORT?(this[de]=ht>>>24,this[de+1]=ht>>>16,this[de+2]=ht>>>8,this[de+3]=255&ht):Xt(this,ht,de,!1),de+4},S.prototype.writeIntLE=function(ht,de,At,ct){if(ht=+ht,de|=0,!ct){var Lt=Math.pow(2,8*At-1);Kt(this,ht,de,At,Lt-1,-Lt)}var jt=0,wn=1,Cr=0;for(this[de]=255&ht;++jt<At&&(wn*=256);)ht<0&&Cr===0&&this[de+jt-1]!==0&&(Cr=1),this[de+jt]=(ht/wn>>0)-Cr&255;return de+At},S.prototype.writeIntBE=function(ht,de,At,ct){if(ht=+ht,de|=0,!ct){var Lt=Math.pow(2,8*At-1);Kt(this,ht,de,At,Lt-1,-Lt)}var jt=At-1,wn=1,Cr=0;for(this[de+jt]=255&ht;--jt>=0&&(wn*=256);)ht<0&&Cr===0&&this[de+jt+1]!==0&&(Cr=1),this[de+jt]=(ht/wn>>0)-Cr&255;return de+At},S.prototype.writeInt8=function(ht,de,At){return ht=+ht,de|=0,At||Kt(this,ht,de,1,127,-128),S.TYPED_ARRAY_SUPPORT||(ht=Math.floor(ht)),ht<0&&(ht=255+ht+1),this[de]=255&ht,de+1},S.prototype.writeInt16LE=function(ht,de,At){return ht=+ht,de|=0,At||Kt(this,ht,de,2,32767,-32768),S.TYPED_ARRAY_SUPPORT?(this[de]=255&ht,this[de+1]=ht>>>8):wt(this,ht,de,!0),de+2},S.prototype.writeInt16BE=function(ht,de,At){return ht=+ht,de|=0,At||Kt(this,ht,de,2,32767,-32768),S.TYPED_ARRAY_SUPPORT?(this[de]=ht>>>8,this[de+1]=255&ht):wt(this,ht,de,!1),de+2},S.prototype.writeInt32LE=function(ht,de,At){return ht=+ht,de|=0,At||Kt(this,ht,de,4,2147483647,-2147483648),S.TYPED_ARRAY_SUPPORT?(this[de]=255&ht,this[de+1]=ht>>>8,this[de+2]=ht>>>16,this[de+3]=ht>>>24):Xt(this,ht,de,!0),de+4},S.prototype.writeInt32BE=function(ht,de,At){return ht=+ht,de|=0,At||Kt(this,ht,de,4,2147483647,-2147483648),ht<0&&(ht=4294967295+ht+1),S.TYPED_ARRAY_SUPPORT?(this[de]=ht>>>24,this[de+1]=ht>>>16,this[de+2]=ht>>>8,this[de+3]=255&ht):Xt(this,ht,de,!1),de+4},S.prototype.writeFloatLE=function(ht,de,At){return Nn(this,ht,de,!0,At)},S.prototype.writeFloatBE=function(ht,de,At){return Nn(this,ht,de,!1,At)},S.prototype.writeDoubleLE=function(ht,de,At){return kn(this,ht,de,!0,At)},S.prototype.writeDoubleBE=function(ht,de,At){return kn(this,ht,de,!1,At)},S.prototype.copy=function(ht,de,At,ct){if(At||(At=0),ct||ct===0||(ct=this.length),de>=ht.length&&(de=ht.length),de||(de=0),ct>0&&ct<At&&(ct=At),ct===At||ht.length===0||this.length===0)return 0;if(de<0)throw new RangeError("targetStart out of bounds");if(At<0||At>=this.length)throw new RangeError("sourceStart out of bounds");if(ct<0)throw new RangeError("sourceEnd out of bounds");ct>this.length&&(ct=this.length),ht.length-de<ct-At&&(ct=ht.length-de+At);var Lt,jt=ct-At;if(this===ht&&At<de&&de<ct)for(Lt=jt-1;Lt>=0;--Lt)ht[Lt+de]=this[Lt+At];else if(jt<1e3||!S.TYPED_ARRAY_SUPPORT)for(Lt=0;Lt<jt;++Lt)ht[Lt+de]=this[Lt+At];else Uint8Array.prototype.set.call(ht,this.subarray(At,At+jt),de);return jt},S.prototype.fill=function(ht,de,At,ct){if(typeof ht=="string"){if(typeof de=="string"?(ct=de,de=0,At=this.length):typeof At=="string"&&(ct=At,At=this.length),ht.length===1){var Lt=ht.charCodeAt(0);Lt<256&&(ht=Lt)}if(ct!==void 0&&typeof ct!="string")throw new TypeError("encoding must be a string");if(typeof ct=="string"&&!S.isEncoding(ct))throw new TypeError("Unknown encoding: "+ct)}else typeof ht=="number"&&(ht&=255);if(de<0||this.length<de||this.length<At)throw new RangeError("Out of range index");if(At<=de)return this;var jt;if(de>>>=0,At=At===void 0?this.length:At>>>0,ht||(ht=0),typeof ht=="number")for(jt=de;jt<At;++jt)this[jt]=ht;else{var wn=S.isBuffer(ht)?ht:ir(new S(ht,ct).toString()),Cr=wn.length;for(jt=0;jt<At-de;++jt)this[jt+de]=wn[jt%Cr]}return this};var an=/[^+\/0-9A-Za-z-_]/g;function Mn(ht){return ht<16?"0"+ht.toString(16):ht.toString(16)}e(Mn,"R");function ir(ht,de){var At;de=de||1/0;for(var ct=ht.length,Lt=null,jt=[],wn=0;wn<ct;++wn){if((At=ht.charCodeAt(wn))>55295&&At<57344){if(!Lt){if(At>56319){(de-=3)>-1&&jt.push(239,191,189);continue}if(wn+1===ct){(de-=3)>-1&&jt.push(239,191,189);continue}Lt=At;continue}if(At<56320){(de-=3)>-1&&jt.push(239,191,189),Lt=At;continue}At=65536+(Lt-55296<<10|At-56320)}else Lt&&(de-=3)>-1&&jt.push(239,191,189);if(Lt=null,At<128){if((de-=1)<0)break;jt.push(At)}else if(At<2048){if((de-=2)<0)break;jt.push(At>>6|192,63&At|128)}else if(At<65536){if((de-=3)<0)break;jt.push(At>>12|224,At>>6&63|128,63&At|128)}else{if(!(At<1114112))throw new Error("Invalid code point");if((de-=4)<0)break;jt.push(At>>18|240,At>>12&63|128,At>>6&63|128,63&At|128)}}return jt}e(ir,"z");function Zt(ht){return c.toByteArray(function(de){if((de=function(At){return At.trim?At.trim():At.replace(/^\s+|\s+$/g,"")}(de).replace(an,"")).length<2)return"";for(;de.length%4!=0;)de+="=";return de}(ht))}e(Zt,"U");function Bt(ht,de,At,ct){for(var Lt=0;Lt<ct&&!(Lt+At>=de.length||Lt>=ht.length);++Lt)de[Lt+At]=ht[Lt];return Lt}e(Bt,"G")}).call(this,i(78))},function(r,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isASCIIByte=function(a){return a>=0&&a<=127}},function(r,t,i){"use strict";var a=this&&this.__read||function(d,f){var g=typeof Symbol=="function"&&d[Symbol.iterator];if(!g)return d;var v,S,E=g.call(d),A=[];try{for(;(f===void 0||f-- >0)&&!(v=E.next()).done;)A.push(v.value)}catch(C){S={error:C}}finally{try{v&&!v.done&&(g=E.return)&&g.call(E)}finally{if(S)throw S.error}}return A},c=this&&this.__spread||function(){for(var d=[],f=0;f<arguments.length;f++)d=d.concat(a(arguments[f]));return d};Object.defineProperty(t,"__esModule",{value:!0}),t.length=function(d){return d.length},t.byteLowercase=function(d){for(var f=0;f<d.length;f++){var g=d[f];g>=65&&g<=90&&(d[f]=g+32)}},t.byteUppercase=function(d){for(var f=0;f<d.length;f++){var g=d[f];g>=97&&g<=122&&(d[f]=g-32)}},t.byteCaseInsensitiveMatch=function(d,f){if(d.length!==f.length)return!1;for(var g=0;g<d.length;g++){var v=d[g],S=f[g];if(v>=65&&v<=90&&(v+=32),S>=65&&S<=90&&(S+=32),v!==S)return!1}return!0},t.startsWith=function(d,f){for(var g=0;;){if(g>=d.length)return!1;if(g>=f.length)return!0;if(d[g]!==f[g])return!1;g++}},t.byteLessThan=function(d,f){for(var g=0;;){if(g>=d.length)return!1;if(g>=f.length)return!0;var v=d[g],S=f[g];if(v<S)return!0;if(v>S)return!1;g++}},t.isomorphicDecode=function(d){return String.fromCodePoint.apply(String,c(d))}},function(r,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=i(6),c=i(7),d=i(0),f=i(12),g=function(){function v(S){this._associatedDocument=S||a.dom.window.document}return e(v,"e"),v.prototype.createDocumentType=function(S,E,A){return d.namespace_validate(S),d.create_documentType(this._associatedDocument,S,E,A)},v.prototype.createDocument=function(S,E,A){A===void 0&&(A=null);var C=d.create_xmlDocument(),L=null;return E&&(L=d.document_internalCreateElementNS(C,S,E)),A&&C.appendChild(A),L&&C.appendChild(L),C._origin=this._associatedDocument._origin,S===c.namespace.HTML?C._contentType="application/xhtml+xml":S===c.namespace.SVG?C._contentType="image/svg+xml":C._contentType="application/xml",C},v.prototype.createHTMLDocument=function(S){var E=d.create_document();E._type="html",E._contentType="text/html",E.appendChild(d.create_documentType(E,"html","",""));var A=d.element_createAnElement(E,"html",c.namespace.HTML);E.appendChild(A);var C=d.element_createAnElement(E,"head",c.namespace.HTML);if(A.appendChild(C),S!==void 0){var L=d.element_createAnElement(E,"title",c.namespace.HTML);C.appendChild(L);var W=d.create_text(E,S);L.appendChild(W)}var O=d.element_createAnElement(E,"body",c.namespace.HTML);return A.appendChild(O),E._origin=this._associatedDocument._origin,E},v.prototype.hasFeature=function(){return!0},v._create=function(S){return new v(S)},v}();t.DOMImplementationImpl=g,f.idl_defineConst(g.prototype,"_ID","@oozcitak/dom")},function(r,t,i){"use strict";var a,c=this&&this.__extends||(a=e(function(S,E){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(A,C){A.__proto__=C}||function(A,C){for(var L in C)C.hasOwnProperty(L)&&(A[L]=C[L])})(S,E)},"n"),function(S,E){function A(){this.constructor=S}e(A,"r"),a(S,E),S.prototype=E===null?Object.create(E):(A.prototype=E.prototype,new A)});Object.defineProperty(t,"__esModule",{value:!0});var d=i(70),f=i(2),g=i(0),v=function(S){function E(){var A=S.call(this)||this;return A._signalSlots=new Set,A._mutationObserverMicrotaskQueued=!1,A._mutationObservers=new Set,A._iteratorList=new f.FixedSizeSet,A._associatedDocument=g.create_document(),A}return e(E,"t"),c(E,S),Object.defineProperty(E.prototype,"document",{get:e(function(){return this._associatedDocument},"get"),enumerable:!0,configurable:!0}),Object.defineProperty(E.prototype,"event",{get:e(function(){return this._currentEvent},"get"),enumerable:!0,configurable:!0}),E._create=function(){return new E},E}(d.EventTargetImpl);t.WindowImpl=v},function(r,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=i(1),c=function(){function d(){}return e(d,"e"),d.isNode=function(f){return!!f&&f._nodeType!==void 0},d.isDocumentNode=function(f){return d.isNode(f)&&f._nodeType===a.NodeType.Document},d.isDocumentTypeNode=function(f){return d.isNode(f)&&f._nodeType===a.NodeType.DocumentType},d.isDocumentFragmentNode=function(f){return d.isNode(f)&&f._nodeType===a.NodeType.DocumentFragment},d.isAttrNode=function(f){return d.isNode(f)&&f._nodeType===a.NodeType.Attribute},d.isCharacterDataNode=function(f){if(!d.isNode(f))return!1;var g=f._nodeType;return g===a.NodeType.Text||g===a.NodeType.ProcessingInstruction||g===a.NodeType.Comment||g===a.NodeType.CData},d.isTextNode=function(f){return d.isNode(f)&&(f._nodeType===a.NodeType.Text||f._nodeType===a.NodeType.CData)},d.isExclusiveTextNode=function(f){return d.isNode(f)&&f._nodeType===a.NodeType.Text},d.isCDATASectionNode=function(f){return d.isNode(f)&&f._nodeType===a.NodeType.CData},d.isCommentNode=function(f){return d.isNode(f)&&f._nodeType===a.NodeType.Comment},d.isProcessingInstructionNode=function(f){return d.isNode(f)&&f._nodeType===a.NodeType.ProcessingInstruction},d.isElementNode=function(f){return d.isNode(f)&&f._nodeType===a.NodeType.Element},d.isCustomElementNode=function(f){return d.isElementNode(f)&&f._customElementState==="custom"},d.isShadowRoot=function(f){return!!f&&f.host!==void 0},d.isMouseEvent=function(f){return!!f&&f.screenX!==void 0&&f.screenY!=null},d.isSlotable=function(f){return!!f&&f._name!==void 0&&f._assignedSlot!==void 0&&(d.isTextNode(f)||d.isElementNode(f))},d.isSlot=function(f){return!!f&&f._name!==void 0&&f._assignedNodes!==void 0&&d.isElementNode(f)},d.isWindow=function(f){return!!f&&f.navigator!==void 0},d.isEventListener=function(f){return!!f&&f.handleEvent!==void 0},d.isRegisteredObserver=function(f){return!!f&&f.observer!==void 0&&f.options!==void 0},d.isTransientRegisteredObserver=function(f){return!!f&&f.source!==void 0&&d.isRegisteredObserver(f)},d}();t.Guard=c},function(r,t,i){"use strict";var a,c=this&&this.__extends||(a=e(function(f,g){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(v,S){v.__proto__=S}||function(v,S){for(var E in S)S.hasOwnProperty(E)&&(v[E]=S[E])})(f,g)},"n"),function(f,g){function v(){this.constructor=f}e(v,"r"),a(f,g),f.prototype=g===null?Object.create(g):(v.prototype=g.prototype,new v)});Object.defineProperty(t,"__esModule",{value:!0});var d=function(f){function g(){return f.call(this)||this}return e(g,"t"),c(g,f),g}(i(98).DocumentImpl);t.XMLDocumentImpl=d},function(r,t,i){"use strict";var a=this&&this.__values||function(ct){var Lt=typeof Symbol=="function"&&Symbol.iterator,jt=Lt&&ct[Lt],wn=0;if(jt)return jt.call(ct);if(ct&&typeof ct.length=="number")return{next:e(function(){return ct&&wn>=ct.length&&(ct=void 0),{value:ct&&ct[wn++],done:!ct}},"next")};throw new TypeError(Lt?"Object is not iterable.":"Symbol.iterator is not defined.")},c=this&&this.__read||function(ct,Lt){var jt=typeof Symbol=="function"&&ct[Symbol.iterator];if(!jt)return ct;var wn,Cr,_r=jt.call(ct),vn=[];try{for(;(Lt===void 0||Lt-- >0)&&!(wn=_r.next()).done;)vn.push(wn.value)}catch(Wo){Cr={error:Wo}}finally{try{wn&&!wn.done&&(jt=_r.return)&&jt.call(_r)}finally{if(Cr)throw Cr.error}}return vn};Object.defineProperty(t,"__esModule",{value:!0});var d,f=i(2),g=i(243),v=i(7),S=i(244),E={ftp:21,file:null,http:80,https:443,ws:80,wss:443},A=/[\0-\x1F\x7F-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,C=/[ "<>`]|[\0-\x1F\x7F-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,L=/[ "<>`#?{}]|[\0-\x1F\x7F-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,W=/[ "<>`#?{}/:;=@\[\]\\\^\|]|[\0-\x1F\x7F-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,O=/[0-9A-Za-z!\$&-\/:;=\?@_~\xA0-\uD7FF\uE000-\uFDCF\uFDF0-\uFFFD]|[\uD800-\uD83E\uD840-\uD87E\uD880-\uD8BE\uD8C0-\uD8FE\uD900-\uD93E\uD940-\uD97E\uD980-\uD9BE\uD9C0-\uD9FE\uDA00-\uDA3E\uDA40-\uDA7E\uDA80-\uDABE\uDAC0-\uDAFE\uDB00-\uDB3E\uDB40-\uDB7E\uDB80-\uDBBE\uDBC0-\uDBFE][\uDC00-\uDFFF]|[\uD83F\uD87F\uD8BF\uD8FF\uD93F\uD97F\uD9BF\uD9FF\uDA3F\uDA7F\uDABF\uDAFF\uDB3F\uDB7F\uDBBF\uDBFF][\uDC00-\uDFFD]/,w=/[\0\t\f\r #%/:?@\[\\\]]/;function M(ct){d!==void 0&&d.call(null,"Validation Error: "+ct)}e(M,"v");function J(){return{scheme:"",username:"",password:"",host:null,port:null,path:[],query:null,fragment:null,_cannotBeABaseURLFlag:!1,_blobURLEntry:null}}e(J,"_");function Z(ct){return ct in E}e(Z,"g");function Q(ct){return Z(ct.scheme)}e(Q,"b");function me(ct){return E[ct]||null}e(me,"x");function be(ct){return ct.username!==""||ct.password!==""}e(be,"w");function he(ct,Lt){var jt,wn;Lt===void 0&&(Lt=!1);var Cr=ct.scheme+":";if(ct.host!==null?(Cr+="//",be(ct)&&(Cr+=ct.username,ct.password!==""&&(Cr+=":"+ct.password),Cr+="@"),Cr+=_e(ct.host),ct.port!==null&&(Cr+=":"+ct.port)):ct.host===null&&ct.scheme==="file"&&(Cr+="//"),ct._cannotBeABaseURLFlag)Cr+=ct.path[0];else try{for(var _r=a(ct.path),vn=_r.next();!vn.done;vn=_r.next())Cr+="/"+vn.value}catch(Wo){jt={error:Wo}}finally{try{vn&&!vn.done&&(wn=_r.return)&&wn.call(_r)}finally{if(jt)throw jt.error}}return ct.query!==null&&(Cr+="?"+ct.query),Lt||ct.fragment===null||(Cr+="#"+ct.fragment),Cr}e(he,"E");function _e(ct){return f.isNumber(ct)?He(ct):f.isArray(ct)?"["+et(ct)+"]":ct}e(_e,"D");function He(ct){for(var Lt="",jt=ct,wn=1;wn<=4;wn++)Lt=(jt%256).toString()+Lt,wn!==4&&(Lt="."+Lt),jt=Math.floor(jt/256);return Lt}e(He,"S");function et(ct){for(var Lt="",jt=null,wn=-1,Cr=0,_r=0,vn=0;vn<8;vn++)if(ct[vn]===0){Cr=1;for(var Wo=vn+1;Wo<8&&ct[Wo]===0;Wo++)Cr++;Cr>_r&&(_r=Cr,wn=vn)}_r>1&&(jt=wn);for(var Ri=!1,Bs=0;Bs<8;Bs++)Ri&&ct[Bs]===0||(Ri&&(Ri=!1),jt!==Bs?(Lt+=ct[Bs].toString(16),Bs!==7&&(Lt+=":")):(Lt+=Bs===0?"::":":",Ri=!0));return Lt}e(et,"C");function ut(ct,Lt,jt,wn,Cr){var _r,vn,Wo,Ri;if(wn===void 0){wn={scheme:"",username:"",password:"",host:null,port:null,path:[],query:null,fragment:null,_cannotBeABaseURLFlag:!1,_blobURLEntry:null};var Bs=/^[\u0000-\u001F\u0020]+/,Ys=/[\u0000-\u001F\u0020]+$/;(Bs.test(ct)||Ys.test(ct))&&M("Input string contains leading or trailing control characters or space."),ct=(ct=ct.replace(Bs,"")).replace(Ys,"")}var Ac=/[\u0009\u000A\u000D]/g;Ac.test(ct)&&M("Input string contains tab or newline characters."),ct=ct.replace(Ac,"");var za=Cr===void 0?g.ParserState.SchemeStart:Cr;Lt===void 0&&(Lt=null);for(var vl=jt===void 0||jt==="replacement"||jt==="UTF-16BE"||jt==="UTF-16LE"?"UTF-8":jt,fr="",Bn=!1,Vt=!1,$t=!1,It=new f.StringWalker(ct);;){switch(za){case g.ParserState.SchemeStart:if(v.codePoint.ASCIIAlpha.test(It.c()))fr+=It.c().toLowerCase(),za=g.ParserState.Scheme;else{if(Cr!==void 0)return M("Invalid scheme start character."),null;za=g.ParserState.NoScheme,It.pointer--}break;case g.ParserState.Scheme:if(v.codePoint.ASCIIAlphanumeric.test(It.c())||It.c()==="+"||It.c()==="-"||It.c()===".")fr+=It.c().toLowerCase();else{if(It.c()!==":"){if(Cr===void 0){fr="",za=g.ParserState.NoScheme,It.pointer=0;continue}return M("Invalid input string."),null}if(Cr!==void 0&&(Z(wn.scheme)&&!Z(fr)||!Z(wn.scheme)&&Z(fr)||(be(wn)||wn.port!==null)&&fr==="file"||wn.scheme==="file"&&(wn.host===""||wn.host===null)))return wn;if(wn.scheme=fr,Cr!==void 0)return wn.port===me(wn.scheme)&&(wn.port=null),wn;fr="",wn.scheme==="file"?(It.remaining().startsWith("//")||M("Invalid file URL scheme, '//' expected."),za=g.ParserState.File):Q(wn)&&Lt!==null&&Lt.scheme===wn.scheme?za=g.ParserState.SpecialRelativeOrAuthority:Q(wn)?za=g.ParserState.SpecialAuthoritySlashes:It.remaining().startsWith("/")?(za=g.ParserState.PathOrAuthority,It.pointer++):(wn._cannotBeABaseURLFlag=!0,wn.path.push(""),za=g.ParserState.CannotBeABaseURLPath)}break;case g.ParserState.NoScheme:if(Lt===null||Lt._cannotBeABaseURLFlag&&It.c()!=="#")return M("Invalid input string."),null;Lt._cannotBeABaseURLFlag&&It.c()==="#"?(wn.scheme=Lt.scheme,wn.path=v.list.clone(Lt.path),wn.query=Lt.query,wn.fragment="",wn._cannotBeABaseURLFlag=!0,za=g.ParserState.Fragment):Lt.scheme!=="file"?(za=g.ParserState.Relative,It.pointer--):(za=g.ParserState.File,It.pointer--);break;case g.ParserState.SpecialRelativeOrAuthority:It.c()==="/"&&It.remaining().startsWith("/")?(za=g.ParserState.SpecialAuthorityIgnoreSlashes,It.pointer++):(M("Invalid input string."),za=g.ParserState.Relative,It.pointer--);break;case g.ParserState.PathOrAuthority:It.c()==="/"?za=g.ParserState.Authority:(za=g.ParserState.Path,It.pointer--);break;case g.ParserState.Relative:if(Lt===null)throw new Error("Invalid parser state. Base URL is null.");switch(wn.scheme=Lt.scheme,It.c()){case"":wn.username=Lt.username,wn.password=Lt.password,wn.host=Lt.host,wn.port=Lt.port,wn.path=v.list.clone(Lt.path),wn.query=Lt.query;break;case"/":za=g.ParserState.RelativeSlash;break;case"?":wn.username=Lt.username,wn.password=Lt.password,wn.host=Lt.host,wn.port=Lt.port,wn.path=v.list.clone(Lt.path),wn.query="",za=g.ParserState.Query;break;case"#":wn.username=Lt.username,wn.password=Lt.password,wn.host=Lt.host,wn.port=Lt.port,wn.path=v.list.clone(Lt.path),wn.query=Lt.query,wn.fragment="",za=g.ParserState.Fragment;break;default:Q(wn)&&It.c()==="\\"?(M("Invalid input string."),za=g.ParserState.RelativeSlash):(wn.username=Lt.username,wn.password=Lt.password,wn.host=Lt.host,wn.port=Lt.port,wn.path=v.list.clone(Lt.path),wn.path.length!==0&&wn.path.splice(wn.path.length-1,1),za=g.ParserState.Path,It.pointer--)}break;case g.ParserState.RelativeSlash:if(!Q(wn)||It.c()!=="/"&&It.c()!=="\\")if(It.c()==="/")za=g.ParserState.Authority;else{if(Lt===null)throw new Error("Invalid parser state. Base URL is null.");wn.username=Lt.username,wn.password=Lt.password,wn.host=Lt.host,wn.port=Lt.port,za=g.ParserState.Path,It.pointer--}else It.c()==="\\"&&M("Invalid input string."),za=g.ParserState.SpecialAuthorityIgnoreSlashes;break;case g.ParserState.SpecialAuthoritySlashes:It.c()==="/"&&It.remaining().startsWith("/")?(za=g.ParserState.SpecialAuthorityIgnoreSlashes,It.pointer++):(M("Expected '//'."),za=g.ParserState.SpecialAuthorityIgnoreSlashes,It.pointer--);break;case g.ParserState.SpecialAuthorityIgnoreSlashes:It.c()!=="/"&&It.c()!=="\\"?(za=g.ParserState.Authority,It.pointer--):M("Unexpected '/' or '\\'.");break;case g.ParserState.Authority:if(It.c()==="@"){M("Unexpected '@'."),Bn&&(fr="%40"+fr),Bn=!0;try{for(var Gn=(_r=void 0,a(fr)),Dr=Gn.next();!Dr.done;Dr=Gn.next()){var sr=Dr.value;if(sr!==":"||$t){var Tr=Bt(sr,W);$t?wn.password+=Tr:wn.username+=Tr}else $t=!0}}catch(zo){_r={error:zo}}finally{try{Dr&&!Dr.done&&(vn=Gn.return)&&vn.call(Gn)}finally{if(_r)throw _r.error}}fr=""}else if(It.c()===""||It.c()==="/"||It.c()==="?"||It.c()==="#"||Q(wn)&&It.c()==="\\"){if(Bn&&fr==="")return M("Invalid input string."),null;It.pointer-=fr.length+1,fr="",za=g.ParserState.Host}else fr+=It.c();break;case g.ParserState.Host:case g.ParserState.Hostname:if(Cr!==void 0&&wn.scheme==="file")It.pointer--,za=g.ParserState.FileHost;else if(It.c()!==":"||Vt)if(It.c()===""||It.c()==="/"||It.c()==="?"||It.c()==="#"||Q(wn)&&It.c()==="\\"){if(It.pointer--,Q(wn)&&fr==="")return M("Invalid input string."),null;if(Cr!==void 0&&fr===""&&(be(wn)||wn.port!==null))return M("Invalid input string."),wn;if((Cn=wt(fr,!Q(wn)))===null)return null;if(wn.host=Cn,fr="",za=g.ParserState.PathStart,Cr!==void 0)return wn}else It.c()==="["&&(Vt=!0),It.c()==="]"&&(Vt=!1),fr+=It.c();else{if(fr==="")return M("Invalid input string."),null;if((Cn=wt(fr,!Q(wn)))===null)return null;if(wn.host=Cn,fr="",za=g.ParserState.Port,Cr===g.ParserState.Hostname)return wn}break;case g.ParserState.Port:if(v.codePoint.ASCIIDigit.test(It.c()))fr+=It.c();else{if(!(It.c()===""||It.c()==="/"||It.c()==="?"||It.c()==="#"||Q(wn)&&It.c()==="\\"||Cr))return M("Invalid input string."),null;if(fr!==""&&fr!==""){var Ts=parseInt(fr,10);if(Ts>Math.pow(2,16)-1)return M("Invalid port number."),null;wn.port=Ts===me(wn.scheme)?null:Ts,fr=""}if(Cr!==void 0)return wn;za=g.ParserState.PathStart,It.pointer--}break;case g.ParserState.File:if(wn.scheme="file",It.c()==="/"||It.c()==="\\")It.c()==="\\"&&M("Invalid input string."),za=g.ParserState.FileSlash;else if(Lt!==null&&Lt.scheme==="file")switch(It.c()){case"":wn.host=Lt.host,wn.path=v.list.clone(Lt.path),wn.query=Lt.query;break;case"?":wn.host=Lt.host,wn.path=v.list.clone(Lt.path),wn.query="",za=g.ParserState.Query;break;case"#":wn.host=Lt.host,wn.path=v.list.clone(Lt.path),wn.query=Lt.query,wn.fragment="",za=g.ParserState.Fragment;break;default:Kt(It.substring())?M("Unexpected windows drive letter in input string."):(wn.host=Lt.host,wn.path=v.list.clone(Lt.path),En(wn)),za=g.ParserState.Path,It.pointer--}else za=g.ParserState.Path,It.pointer--;break;case g.ParserState.FileSlash:It.c()==="/"||It.c()==="\\"?(It.c()==="\\"&&M("Invalid input string."),za=g.ParserState.FileHost):(Lt===null||Lt.scheme!=="file"||Kt(It.substring())||(fn(Lt.path[0])?wn.path.push(Lt.path[0]):wn.host=Lt.host),za=g.ParserState.Path,It.pointer--);break;case g.ParserState.FileHost:if(It.c()===""||It.c()==="/"||It.c()==="\\"||It.c()==="?"||It.c()==="#")if(It.pointer--,Cr===void 0&&Gt(fr))M("Unexpected windows drive letter in input string."),za=g.ParserState.Path;else if(fr===""){if(wn.host="",Cr!==void 0)return wn;za=g.ParserState.PathStart}else{var Cn;if((Cn=wt(fr,!Q(wn)))===null)return null;if(Cn==="localhost"&&(Cn=""),wn.host=Cn,Cr!==void 0)return wn;fr="",za=g.ParserState.PathStart}else fr+=It.c();break;case g.ParserState.PathStart:Q(wn)?(It.c()==="\\"&&M("Invalid input string."),za=g.ParserState.Path,It.c()!=="/"&&It.c()!=="\\"&&It.pointer--):Cr===void 0&&It.c()==="?"?(wn.query="",za=g.ParserState.Query):Cr===void 0&&It.c()==="#"?(wn.fragment="",za=g.ParserState.Fragment):It.c()!==""&&(za=g.ParserState.Path,It.c()!=="/"&&It.pointer--);break;case g.ParserState.Path:if(It.c()===""||It.c()==="/"||Q(wn)&&It.c()==="\\"||Cr===void 0&&(It.c()==="?"||It.c()==="#")){if(Q(wn)&&It.c()==="\\"&&M("Invalid input string."),Wt(fr))En(wn),It.c()==="/"||Q(wn)&&It.c()==="\\"||wn.path.push("");else if(!ft(fr)||It.c()==="/"||Q(wn)&&It.c()==="\\"){if(!ft(fr)){if(wn.scheme==="file"&&wn.path.length===0&&Gt(fr)){wn.host!==null&&wn.host!==""&&(M("Invalid input string."),wn.host="");var Ht=Array.from(fr);fr=Ht.slice(0,1)+":"+Ht.slice(2)}wn.path.push(fr)}}else wn.path.push("");if(fr="",wn.scheme==="file"&&(It.c()===""||It.c()==="?"||It.c()==="#"))for(;wn.path.length>1&&wn.path[0]==="";)M("Invalid input string."),wn.path.splice(0,1);It.c()==="?"&&(wn.query="",za=g.ParserState.Query),It.c()==="#"&&(wn.fragment="",za=g.ParserState.Fragment)}else O.test(It.c())||It.c()==="%"||M("Character is not a URL code point or a percent encoded character."),It.c()!=="%"||/^[0-9a-fA-F][0-9a-fA-F]/.test(It.remaining())||M("Percent encoded character must be followed by two hex digits."),fr+=Bt(It.c(),L);break;case g.ParserState.CannotBeABaseURLPath:It.c()==="?"?(wn.query="",za=g.ParserState.Query):It.c()==="#"?(wn.fragment="",za=g.ParserState.Fragment):(It.c()===""||O.test(It.c())||It.c()==="%"||M("Character is not a URL code point or a percent encoded character."),It.c()!=="%"||/^[0-9a-fA-F][0-9a-fA-F]/.test(It.remaining())||M("Percent encoded character must be followed by two hex digits."),It.c()!==""&&(wn.path[0]+=Bt(It.c(),A)));break;case g.ParserState.Query:if(vl==="UTF-8"||Q(wn)&&wn.scheme!=="ws"&&wn.scheme!=="wss"||(vl="UTF-8"),Cr===void 0&&It.c()==="#")wn.fragment="",za=g.ParserState.Fragment;else if(It.c()!==""){if(O.test(It.c())||It.c()==="%"||M("Character is not a URL code point or a percent encoded character."),It.c()!=="%"||/^[0-9a-fA-F][0-9a-fA-F]/.test(It.remaining())||M("Percent encoded character must be followed by two hex digits."),vl.toUpperCase()!=="UTF-8")throw new Error("Only UTF-8 encoding is supported.");var In=f.utf8Encode(It.c());if(In.length>=3&&In[0]===38&&In[1]===35&&In[In.length-1]===59)In=In.subarray(2,In.length-1),wn.query+="%26%23"+v.byteSequence.isomorphicDecode(In)+"%3B";else try{for(var Hr=(Wo=void 0,a(In)),ii=Hr.next();!ii.done;ii=Hr.next()){var Si=ii.value;Si<33||Si>126||Si===34||Si===35||Si===60||Si===62||Si===39&&Q(wn)?wn.query+=Mn(Si):wn.query+=String.fromCharCode(Si)}}catch(zo){Wo={error:zo}}finally{try{ii&&!ii.done&&(Ri=Hr.return)&&Ri.call(Hr)}finally{if(Wo)throw Wo.error}}}break;case g.ParserState.Fragment:It.c()===""||(It.c()==="\0"?M("NULL character in input string."):(O.test(It.c())||It.c()==="%"||M("Unexpected character in fragment string."),It.c()!=="%"||/^[A-Za-z0-9][A-Za-z0-9]/.test(It.remaining())||M("Unexpected character in fragment string."),wn.fragment+=Bt(It.c(),C)))}if(It.eof)break;It.pointer++}return wn}e(ut,"A");function ft(ct){return ct==="."||ct.toLowerCase()==="%2e"}e(ft,"N");function Wt(ct){var Lt=ct.toLowerCase();return Lt===".."||Lt===".%2e"||Lt==="%2e."||Lt==="%2e%2e"}e(Wt,"T");function En(ct){var Lt=ct.path;Lt.length!==0&&(ct.scheme==="file"&&Lt.length===1&&fn(Lt[0])||ct.path.splice(ct.path.length-1,1))}e(En,"O");function fn(ct){return ct.length>=2&&v.codePoint.ASCIIAlpha.test(ct[0])&&ct[1]===":"}e(fn,"F");function Gt(ct){return ct.length>=2&&v.codePoint.ASCIIAlpha.test(ct[0])&&(ct[1]===":"||ct[1]==="|")}e(Gt,"k");function Kt(ct){return ct.length>=2&&Gt(ct)&&(ct.length===2||ct[2]==="/"||ct[2]==="\\"||ct[2]==="?"||ct[2]==="#")}e(Kt,"P");function wt(ct,Lt){if(Lt===void 0&&(Lt=!1),ct.startsWith("["))return ct.endsWith("]")?Nn(ct.substring(1,ct.length-1)):(M("Expected ']' after '['."),null);if(Lt)return kn(ct);var jt=At(f.utf8Decode(Zt(ct)));if(jt===null||w.test(jt))return M("Invalid domain."),null;var wn=yt(jt);return wn===null||f.isNumber(wn)?wn:jt}e(wt,"I");function Xt(ct,Lt){Lt===void 0&&(Lt={value:!1});var jt=10;return ct.startsWith("0x")||ct.startsWith("0X")?(Lt.value=!0,ct=ct.substr(2),jt=16):ct.length>=2&&ct[0]==="0"&&(Lt.value=!0,ct=ct.substr(1),jt=8),ct===""?0:(jt===10?/^[0-9]+$/:jt===16?/^[0-9A-Fa-f]+$/:/^[0-7]+$/).test(ct)?parseInt(ct,jt):null}e(Xt,"L");function yt(ct){var Lt,jt,wn,Cr,_r={value:!1},vn=ct.split(".");if(vn[vn.length-1]===""&&(_r.value=!0,vn.length>1&&vn.pop()),vn.length>4)return ct;var Wo=[];try{for(var Ri=a(vn),Bs=Ri.next();!Bs.done;Bs=Ri.next()){var Ys=Bs.value;if(Ys===""||(Vt=Xt(Ys,_r))===null)return ct;Wo.push(Vt)}}catch($t){Lt={error:$t}}finally{try{Bs&&!Bs.done&&(jt=Ri.return)&&jt.call(Ri)}finally{if(Lt)throw Lt.error}}_r.value&&M("Invalid IP v4 address.");for(var Ac=0;Ac<Wo.length;Ac++)if(Wo[Ac]>255&&(M("Invalid IP v4 address."),Ac<Wo.length-1))return null;if(Wo[Wo.length-1]>=Math.pow(256,5-Wo.length))return M("Invalid IP v4 address."),null;var za=Wo[Wo.length-1];Wo.pop();var vl=0;try{for(var fr=a(Wo),Bn=fr.next();!Bn.done;Bn=fr.next()){var Vt;za+=(Vt=Bn.value)*Math.pow(256,3-vl),vl++}}catch($t){wn={error:$t}}finally{try{Bn&&!Bn.done&&(Cr=fr.return)&&Cr.call(fr)}finally{if(wn)throw wn.error}}return za}e(yt,"M");function Nn(ct){var Lt,jt=[0,0,0,0,0,0,0,0],wn=0,Cr=null,_r=new f.StringWalker(ct);if(_r.c()===":"){if(!_r.remaining().startsWith(":"))return M("Invalid IP v6 address."),null;_r.pointer+=2,Cr=wn+=1}for(;_r.c()!=="";){if(wn===8)return M("Invalid IP v6 address."),null;if(_r.c()!==":"){for(var vn=0,Wo=0;Wo<4&&v.codePoint.ASCIIHexDigit.test(_r.c());)vn=16*vn+parseInt(_r.c(),16),_r.pointer++,Wo++;if(_r.c()==="."){if(Wo===0||(_r.pointer-=Wo,wn>6))return M("Invalid IP v6 address."),null;for(var Ri=0;_r.c()!=="";){var Bs=null;if(Ri>0){if(!(_r.c()==="."&&Ri<4))return M("Invalid IP v6 address."),null;_r.pointer++}if(!v.codePoint.ASCIIDigit.test(_r.c()))return M("Invalid IP v6 address."),null;for(;v.codePoint.ASCIIDigit.test(_r.c());){var Ys=parseInt(_r.c(),10);if(Bs===null)Bs=Ys;else{if(Bs===0)return M("Invalid IP v6 address."),null;Bs=10*Bs+Ys}if(Bs>255)return M("Invalid IP v6 address."),null;_r.pointer++}if(Bs===null)return M("Invalid IP v6 address."),null;jt[wn]=256*jt[wn]+Bs,++Ri!==2&&Ri!==4||wn++}if(Ri!==4)return M("Invalid IP v6 address."),null;break}if(_r.c()===":"){if(_r.pointer++,_r.c()==="")return M("Invalid IP v6 address."),null}else if(_r.c()!=="")return M("Invalid IP v6 address."),null;jt[wn]=vn,wn++}else{if(Cr!==null)return M("Invalid IP v6 address."),null;_r.pointer++,Cr=++wn}}if(Cr!==null){var Ac=wn-Cr;for(wn=7;wn!==0&&Ac>0;)Lt=c([jt[Cr+Ac-1],jt[wn]],2),jt[wn]=Lt[0],jt[Cr+Ac-1]=Lt[1],wn--,Ac--}else if(Cr===null&&wn!==8)return M("Invalid IP v6 address."),null;return jt}e(Nn,"B");function kn(ct){var Lt,jt;if(/[\x00\t\f\r #/:?@\[\\\]]/.test(ct))return M("Invalid host string."),null;var wn="";try{for(var Cr=a(ct),_r=Cr.next();!_r.done;_r=Cr.next())wn+=Bt(_r.value,A)}catch(vn){Lt={error:vn}}finally{try{_r&&!_r.done&&(jt=Cr.return)&&jt.call(Cr)}finally{if(Lt)throw Lt.error}}return wn}e(kn,"j");function an(ct){return null}e(an,"R");function Mn(ct){return"%"+("00"+ct.toString(16).toUpperCase()).slice(-2)}e(Mn,"z");function ir(ct){for(var Lt=function(Wo){return Wo>=48&&Wo<=57||Wo>=65&&Wo<=70||Wo>=97&&Wo<=102},jt=new Uint8Array(ct.length),wn=0,Cr=0;Cr<ct.length;Cr++){var _r=ct[Cr];if(_r!==37)jt[wn]=_r,wn++;else if(_r===37&&Cr>=ct.length-2)jt[wn]=_r,wn++;else if(_r!==37||Lt(ct[Cr+1])&&Lt(ct[Cr+2])){var vn=parseInt(f.utf8Decode(Uint8Array.of(ct[Cr+1],ct[Cr+2])),16);jt[wn]=vn,wn++,Cr+=2}else jt[wn]=_r,wn++}return jt.subarray(0,wn)}e(ir,"U");function Zt(ct){return ir(f.utf8Encode(ct))}e(Zt,"G");function Bt(ct,Lt){var jt,wn;if(!Lt.test(ct))return ct;var Cr=f.utf8Encode(ct),_r="";try{for(var vn=a(Cr),Wo=vn.next();!Wo.done;Wo=vn.next())_r+=Mn(Wo.value)}catch(Ri){jt={error:Ri}}finally{try{Wo&&!Wo.done&&(wn=vn.return)&&wn.call(vn)}finally{if(jt)throw jt.error}}return _r}e(Bt,"X");function ht(ct){var Lt,jt,wn,Cr,_r=[],vn=[];try{for(var Wo=a(ct),Ri=Wo.next();!Ri.done;Ri=Wo.next()){var Bs=Ri.value;Bs===38?(_r.push(Uint8Array.from(vn)),vn=[]):vn.push(Bs)}}catch(Dr){Lt={error:Dr}}finally{try{Ri&&!Ri.done&&(jt=Wo.return)&&jt.call(Wo)}finally{if(Lt)throw Lt.error}}vn.length!==0&&_r.push(Uint8Array.from(vn));var Ys=[];try{for(var Ac=a(_r),za=Ac.next();!za.done;za=Ac.next()){var vl=za.value;if(vl.length!==0){for(var fr=vl.indexOf(61),Bn=fr!==-1?vl.slice(0,fr):vl,Vt=fr!==-1?vl.slice(fr+1):new Uint8Array,$t=0;$t<Bn.length;$t++)Bn[$t]===43&&(Bn[$t]=32);for($t=0;$t<Vt.length;$t++)Vt[$t]===43&&(Vt[$t]=32);var It=f.utf8Decode(Bn),Gn=f.utf8Decode(Vt);Ys.push([It,Gn])}}}catch(Dr){wn={error:Dr}}finally{try{za&&!za.done&&(Cr=Ac.return)&&Cr.call(Ac)}finally{if(wn)throw wn.error}}return Ys}e(ht,"q");function de(ct){var Lt,jt,wn="";try{for(var Cr=a(ct),_r=Cr.next();!_r.done;_r=Cr.next()){var vn=_r.value;wn+=vn===32?"+":vn===42||vn===45||vn===46||vn>=48&&vn<=57||vn>=65&&vn<=90||vn===95||vn>=97&&vn<=122?String.fromCodePoint(vn):Mn(vn)}}catch(Wo){Lt={error:Wo}}finally{try{_r&&!_r.done&&(jt=Cr.return)&&jt.call(Cr)}finally{if(Lt)throw Lt.error}}return wn}e(de,"W");function At(ct,Lt){Lt===void 0&&(Lt=!1);var jt=S.domainToASCII(ct);return jt===""?(M("Invalid domain name."),null):jt}e(At,"H"),t.setValidationErrorCallback=function(ct){d=ct},t.newURL=J,t.isSpecialScheme=Z,t.isSpecial=Q,t.defaultPort=me,t.includesCredentials=be,t.cannotHaveAUsernamePasswordPort=function(ct){return ct.host===null||ct.host===""||ct._cannotBeABaseURLFlag||ct.scheme==="file"},t.urlSerializer=he,t.hostSerializer=_e,t.iPv4Serializer=He,t.iPv6Serializer=et,t.urlParser=function(ct,Lt,jt){var wn=ut(ct,Lt,jt);return wn===null?null:(wn.scheme!=="blob"||(wn._blobURLEntry=null),wn)},t.basicURLParser=ut,t.setTheUsername=function(ct,Lt){var jt,wn,Cr="";try{for(var _r=a(Lt),vn=_r.next();!vn.done;vn=_r.next())Cr+=Bt(vn.value,W)}catch(Wo){jt={error:Wo}}finally{try{vn&&!vn.done&&(wn=_r.return)&&wn.call(_r)}finally{if(jt)throw jt.error}}ct.username=Cr},t.setThePassword=function(ct,Lt){var jt,wn,Cr="";try{for(var _r=a(Lt),vn=_r.next();!vn.done;vn=_r.next())Cr+=Bt(vn.value,W)}catch(Wo){jt={error:Wo}}finally{try{vn&&!vn.done&&(wn=_r.return)&&wn.call(_r)}finally{if(jt)throw jt.error}}ct.password=Cr},t.isSingleDotPathSegment=ft,t.isDoubleDotPathSegment=Wt,t.shorten=En,t.isNormalizedWindowsDriveLetter=fn,t.isWindowsDriveLetter=Gt,t.startsWithAWindowsDriveLetter=Kt,t.hostParser=wt,t.iPv4NumberParser=Xt,t.iPv4Parser=yt,t.iPv6Parser=Nn,t.opaqueHostParser=kn,t.resolveABlobURL=an,t.percentEncode=Mn,t.percentDecode=ir,t.stringPercentDecode=Zt,t.utf8PercentEncode=Bt,t.hostEquals=function(ct,Lt){return ct===Lt},t.urlEquals=function(ct,Lt,jt){return jt===void 0&&(jt=!1),he(ct,jt)===he(Lt,jt)},t.urlEncodedStringParser=function(ct){return ht(f.utf8Encode(ct))},t.urlEncodedParser=ht,t.urlEncodedByteSerializer=de,t.urlEncodedSerializer=function(ct,Lt){var jt,wn;if((Lt===void 0||Lt==="replacement"||Lt==="UTF-16BE"||Lt==="UTF-16LE"?"UTF-8":Lt).toUpperCase()!=="UTF-8")throw new Error("Only UTF-8 encoding is supported.");var Cr="";try{for(var _r=a(ct),vn=_r.next();!vn.done;vn=_r.next()){var Wo=vn.value,Ri=de(f.utf8Encode(Wo[0])),Bs=Wo[1];Bs=de(f.utf8Encode(Bs)),Cr!==""&&(Cr+="&"),Cr+=Ri+"="+Bs}}catch(Ys){jt={error:Ys}}finally{try{vn&&!vn.done&&(wn=_r.return)&&wn.call(_r)}finally{if(jt)throw jt.error}}return Cr},t.origin=e(function ct(Lt){switch(Lt.scheme){case"blob":Lt._blobURLEntry;var jt=ut(Lt.path[0]);return jt===null?g.OpaqueOrigin:ct(jt);case"ftp":case"http":case"https":case"ws":case"wss":return[Lt.scheme,Lt.host===null?"":Lt.host,Lt.port,null];case"file":default:return g.OpaqueOrigin}},"e"),t.domainToASCII=At,t.domainToUnicode=function(ct,Lt){Lt===void 0&&(Lt=!1);var jt=S.domainToUnicode(ct);return jt===""&&M("Invalid domain name."),jt},t.asciiSerializationOfAnOrigin=function(ct){if(ct[0]===""&&ct[1]===""&&ct[2]===null&&ct[3]===null)return"null";var Lt=ct[0]+"://"+_e(ct[1]);return ct[2]!==null&&(Lt+=":"+ct[2].toString()),Lt}},function(r,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=i(0),c=function(){function d(){this._signal=a.create_abortSignal()}return e(d,"e"),Object.defineProperty(d.prototype,"signal",{get:e(function(){return this._signal},"get"),enumerable:!0,configurable:!0}),d.prototype.abort=function(){a.abort_signalAbort(this._signal)},d}();t.AbortControllerImpl=c},function(r,t,i){"use strict";var a,c=this&&this.__extends||(a=e(function(v,S){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(E,A){E.__proto__=A}||function(E,A){for(var C in A)A.hasOwnProperty(C)&&(E[C]=A[C])})(v,S)},"n"),function(v,S){function E(){this.constructor=v}e(E,"r"),a(v,S),v.prototype=S===null?Object.create(S):(E.prototype=S.prototype,new E)});Object.defineProperty(t,"__esModule",{value:!0});var d=i(70),f=i(0),g=function(v){function S(){var E=v.call(this)||this;return E._abortedFlag=!1,E._abortAlgorithms=new Set,E}return e(S,"t"),c(S,v),Object.defineProperty(S.prototype,"aborted",{get:e(function(){return this._abortedFlag},"get"),enumerable:!0,configurable:!0}),Object.defineProperty(S.prototype,"onabort",{get:e(function(){return f.event_getterEventHandlerIDLAttribute(this,"onabort")},"get"),set:e(function(E){f.event_setterEventHandlerIDLAttribute(this,"onabort",E)},"set"),enumerable:!0,configurable:!0}),S._create=function(){return new S},S}(d.EventTargetImpl);t.AbortSignalImpl=g},function(r,t,i){"use strict";var a,c=this&&this.__extends||(a=e(function(S,E){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(A,C){A.__proto__=C}||function(A,C){for(var L in C)C.hasOwnProperty(L)&&(A[L]=C[L])})(S,E)},"n"),function(S,E){function A(){this.constructor=S}e(A,"r"),a(S,E),S.prototype=E===null?Object.create(E):(A.prototype=E.prototype,new A)});Object.defineProperty(t,"__esModule",{value:!0});var d=i(1),f=i(34),g=i(12),v=function(S){function E(A,C,L){var W=S.call(this)||this;return W._name="",W._publicId="",W._systemId="",W._name=A,W._publicId=C,W._systemId=L,W}return e(E,"t"),c(E,S),Object.defineProperty(E.prototype,"name",{get:e(function(){return this._name},"get"),enumerable:!0,configurable:!0}),Object.defineProperty(E.prototype,"publicId",{get:e(function(){return this._publicId},"get"),enumerable:!0,configurable:!0}),Object.defineProperty(E.prototype,"systemId",{get:e(function(){return this._systemId},"get"),enumerable:!0,configurable:!0}),E.prototype.before=function(){for(var A=[],C=0;C<arguments.length;C++)A[C]=arguments[C];throw new Error("Mixin: ChildNode not implemented.")},E.prototype.after=function(){for(var A=[],C=0;C<arguments.length;C++)A[C]=arguments[C];throw new Error("Mixin: ChildNode not implemented.")},E.prototype.replaceWith=function(){for(var A=[],C=0;C<arguments.length;C++)A[C]=arguments[C];throw new Error("Mixin: ChildNode not implemented.")},E.prototype.remove=function(){throw new Error("Mixin: ChildNode not implemented.")},E._create=function(A,C,L,W){L===void 0&&(L=""),W===void 0&&(W="");var O=new E(C,L,W);return O._nodeDocument=A,O},E}(f.NodeImpl);t.DocumentTypeImpl=v,g.idl_defineConst(v.prototype,"_nodeType",d.NodeType.DocumentType)},function(r,t,i){"use strict";var a,c=this&&this.__extends||(a=e(function(S,E){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(A,C){A.__proto__=C}||function(A,C){for(var L in C)C.hasOwnProperty(L)&&(A[L]=C[L])})(S,E)},"n"),function(S,E){function A(){this.constructor=S}e(A,"r"),a(S,E),S.prototype=E===null?Object.create(E):(A.prototype=E.prototype,new A)});Object.defineProperty(t,"__esModule",{value:!0});var d=i(100),f=i(2),g=i(0),v=function(S){function E(A,C){var L=S.call(this)||this;return L._host=A,L._mode=C,L}return e(E,"t"),c(E,S),Object.defineProperty(E.prototype,"mode",{get:e(function(){return this._mode},"get"),enumerable:!0,configurable:!0}),Object.defineProperty(E.prototype,"host",{get:e(function(){return this._host},"get"),enumerable:!0,configurable:!0}),E.prototype._getTheParent=function(A){return A._composedFlag||f.isEmpty(A._path)||g.tree_rootNode(A._path[0].invocationTarget)!==this?this._host:null},E._create=function(A,C){return new E(C,"closed")},E}(d.DocumentFragmentImpl);t.ShadowRootImpl=v},function(r,t,i){"use strict";var a,c=this&&this.__extends||(a=e(function(E,A){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(C,L){C.__proto__=L}||function(C,L){for(var W in L)L.hasOwnProperty(W)&&(C[W]=L[W])})(E,A)},"n"),function(E,A){function C(){this.constructor=E}e(C,"r"),a(E,A),E.prototype=A===null?Object.create(A):(C.prototype=A.prototype,new C)});Object.defineProperty(t,"__esModule",{value:!0});var d=i(1),f=i(34),g=i(0),v=i(12),S=function(E){function A(C){var L=E.call(this)||this;return L._namespace=null,L._namespacePrefix=null,L._element=null,L._value="",L._localName=C,L}return e(A,"t"),c(A,E),Object.defineProperty(A.prototype,"ownerElement",{get:e(function(){return this._element},"get"),enumerable:!0,configurable:!0}),Object.defineProperty(A.prototype,"namespaceURI",{get:e(function(){return this._namespace},"get"),enumerable:!0,configurable:!0}),Object.defineProperty(A.prototype,"prefix",{get:e(function(){return this._namespacePrefix},"get"),enumerable:!0,configurable:!0}),Object.defineProperty(A.prototype,"localName",{get:e(function(){return this._localName},"get"),enumerable:!0,configurable:!0}),Object.defineProperty(A.prototype,"name",{get:e(function(){return this._qualifiedName},"get"),enumerable:!0,configurable:!0}),Object.defineProperty(A.prototype,"value",{get:e(function(){return this._value},"get"),set:e(function(C){g.attr_setAnExistingAttributeValue(this,C)},"set"),enumerable:!0,configurable:!0}),Object.defineProperty(A.prototype,"_qualifiedName",{get:e(function(){return this._namespacePrefix!==null?this._namespacePrefix+":"+this._localName:this._localName},"get"),enumerable:!0,configurable:!0}),A._create=function(C,L){var W=new A(L);return W._nodeDocument=C,W},A}(f.NodeImpl);t.AttrImpl=S,v.idl_defineConst(S.prototype,"_nodeType",d.NodeType.Attribute),v.idl_defineConst(S.prototype,"specified",!0)},function(r,t,i){"use strict";var a,c=this&&this.__extends||(a=e(function(S,E){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(A,C){A.__proto__=C}||function(A,C){for(var L in C)C.hasOwnProperty(L)&&(A[L]=C[L])})(S,E)},"n"),function(S,E){function A(){this.constructor=S}e(A,"r"),a(S,E),S.prototype=E===null?Object.create(E):(A.prototype=E.prototype,new A)});Object.defineProperty(t,"__esModule",{value:!0});var d=i(101),f=i(1),g=i(12),v=function(S){function E(A){return S.call(this,A)||this}return e(E,"t"),c(E,S),E._create=function(A,C){C===void 0&&(C="");var L=new E(C);return L._nodeDocument=A,L},E}(d.TextImpl);t.CDATASectionImpl=v,g.idl_defineConst(v.prototype,"_nodeType",f.NodeType.CData)},function(r,t,i){"use strict";var a,c=this&&this.__extends||(a=e(function(S,E){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(A,C){A.__proto__=C}||function(A,C){for(var L in C)C.hasOwnProperty(L)&&(A[L]=C[L])})(S,E)},"n"),function(S,E){function A(){this.constructor=S}e(A,"r"),a(S,E),S.prototype=E===null?Object.create(E):(A.prototype=E.prototype,new A)});Object.defineProperty(t,"__esModule",{value:!0});var d=i(1),f=i(71),g=i(12),v=function(S){function E(A){return A===void 0&&(A=""),S.call(this,A)||this}return e(E,"t"),c(E,S),E._create=function(A,C){C===void 0&&(C="");var L=new E(C);return L._nodeDocument=A,L},E}(f.CharacterDataImpl);t.CommentImpl=v,g.idl_defineConst(v.prototype,"_nodeType",d.NodeType.Comment)},function(r,t,i){"use strict";var a,c=this&&this.__extends||(a=e(function(S,E){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(A,C){A.__proto__=C}||function(A,C){for(var L in C)C.hasOwnProperty(L)&&(A[L]=C[L])})(S,E)},"n"),function(S,E){function A(){this.constructor=S}e(A,"r"),a(S,E),S.prototype=E===null?Object.create(E):(A.prototype=E.prototype,new A)});Object.defineProperty(t,"__esModule",{value:!0});var d=i(1),f=i(71),g=i(12),v=function(S){function E(A,C){var L=S.call(this,C)||this;return L._target=A,L}return e(E,"t"),c(E,S),Object.defineProperty(E.prototype,"target",{get:e(function(){return this._target},"get"),enumerable:!0,configurable:!0}),E._create=function(A,C,L){var W=new E(C,L);return W._nodeDocument=A,W},E}(f.CharacterDataImpl);t.ProcessingInstructionImpl=v,g.idl_defineConst(v.prototype,"_nodeType",d.NodeType.ProcessingInstruction)},function(r,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=i(7),c=i(0),d=i(3),f=i(2),g=function(){function v(S,E){return this._live=!0,this._root=S,this._filter=E,new Proxy(this,this)}return e(v,"e"),Object.defineProperty(v.prototype,"length",{get:e(function(){for(var S=this,E=0,A=c.tree_getFirstDescendantNode(this._root,!1,!1,function(C){return d.Guard.isElementNode(C)&&S._filter(C)});A!==null;)E++,A=c.tree_getNextDescendantNode(this._root,A,!1,!1,function(C){return d.Guard.isElementNode(C)&&S._filter(C)});return E},"get"),enumerable:!0,configurable:!0}),v.prototype.item=function(S){for(var E=this,A=0,C=c.tree_getFirstDescendantNode(this._root,!1,!1,function(L){return d.Guard.isElementNode(L)&&E._filter(L)});C!==null;){if(A===S)return C;A++,C=c.tree_getNextDescendantNode(this._root,C,!1,!1,function(L){return d.Guard.isElementNode(L)&&E._filter(L)})}return null},v.prototype.namedItem=function(S){var E=this;if(S==="")return null;for(var A=c.tree_getFirstDescendantNode(this._root,!1,!1,function(W){return d.Guard.isElementNode(W)&&E._filter(W)});A!=null;){if(A._uniqueIdentifier===S)return A;if(A._namespace===a.namespace.HTML)for(var C=0;C<A._attributeList.length;C++){var L=A._attributeList[C];if(L._localName==="name"&&L._namespace===null&&L._namespacePrefix===null&&L._value===S)return A}A=c.tree_getNextDescendantNode(this._root,A,!1,!1,function(W){return d.Guard.isElementNode(W)&&E._filter(W)})}return null},v.prototype[Symbol.iterator]=function(){var S=this._root,E=this._filter,A=c.tree_getFirstDescendantNode(S,!1,!1,function(C){return d.Guard.isElementNode(C)&&E(C)});return{next:e(function(){if(A===null)return{done:!0,value:null};var C={done:!1,value:A};return A=c.tree_getNextDescendantNode(S,A,!1,!1,function(L){return d.Guard.isElementNode(L)&&E(L)}),C},"next")}},v.prototype.get=function(S,E,A){if(!f.isString(E)||v.reservedNames.indexOf(E)!==-1)return Reflect.get(S,E,A);var C=Number(E);return isNaN(C)?S.namedItem(E)||void 0:S.item(C)||void 0},v.prototype.set=function(S,E,A,C){if(!f.isString(E)||v.reservedNames.indexOf(E)!==-1)return Reflect.set(S,E,A,C);var L=Number(E),W=isNaN(L)?S.namedItem(E)||void 0:S.item(L)||void 0;return!(!W||!W._parent)&&(c.mutation_replace(W,A,W._parent),!0)},v._create=function(S,E){return E===void 0&&(E=e(function(){return!0},"r")),new v(S,E)},v.reservedNames=["_root","_live","_filter","length","item","namedItem","get","set"],v}();t.HTMLCollectionImpl=g},function(r,t,i){"use strict";var a=this&&this.__values||function(v){var S=typeof Symbol=="function"&&Symbol.iterator,E=S&&v[S],A=0;if(E)return E.call(v);if(v&&typeof v.length=="number")return{next:e(function(){return v&&A>=v.length&&(v=void 0),{value:v&&v[A++],done:!v}},"next")};throw new TypeError(S?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0});var c=i(6),d=i(2),f=i(0),g=function(){function v(S){return this._live=!0,this._filter=null,this._length=0,this._root=S,new Proxy(this,this)}return e(v,"e"),Object.defineProperty(v.prototype,"length",{get:e(function(){return this._root._children.size},"get"),enumerable:!0,configurable:!0}),v.prototype.item=function(S){if(S<0||S>this.length-1)return null;if(S<this.length/2){for(var E=0,A=this._root._firstChild;A!==null&&E!==S;)A=A._nextSibling,E++;return A}for(E=this.length-1,A=this._root._lastChild;A!==null&&E!==S;)A=A._previousSibling,E--;return A},v.prototype.keys=function(){var S;return(S={})[Symbol.iterator]=function(){var E=0;return{next:function(){return E===this.length?{done:!0,value:null}:{done:!1,value:E++}}.bind(this)}}.bind(this),S},v.prototype.values=function(){var S;return(S={})[Symbol.iterator]=function(){var E=this[Symbol.iterator]();return{next:e(function(){return E.next()},"next")}}.bind(this),S},v.prototype.entries=function(){var S;return(S={})[Symbol.iterator]=function(){var E=this[Symbol.iterator](),A=0;return{next:e(function(){var C=E.next();return C.done?{done:!0,value:null}:{done:!1,value:[A++,C.value]}},"next")}}.bind(this),S},v.prototype[Symbol.iterator]=function(){return this._root._children[Symbol.iterator]()},v.prototype.forEach=function(S,E){var A,C;E===void 0&&(E=c.dom.window);var L=0;try{for(var W=a(this._root._children),O=W.next();!O.done;O=W.next()){var w=O.value;S.call(E,w,L++,this)}}catch(M){A={error:M}}finally{try{O&&!O.done&&(C=W.return)&&C.call(W)}finally{if(A)throw A.error}}},v.prototype.get=function(S,E,A){if(!d.isString(E))return Reflect.get(S,E,A);var C=Number(E);return isNaN(C)?Reflect.get(S,E,A):S.item(C)||void 0},v.prototype.set=function(S,E,A,C){if(!d.isString(E))return Reflect.set(S,E,A,C);var L=Number(E);if(isNaN(L))return Reflect.set(S,E,A,C);var W=S.item(L)||void 0;return!!W&&!!W._parent&&(f.mutation_replace(W,A,W._parent),!0)},v._create=function(S){return new v(S)},v}();t.NodeListImpl=g},function(r,t,i){"use strict";var a=this&&this.__values||function(g){var v=typeof Symbol=="function"&&Symbol.iterator,S=v&&g[v],E=0;if(S)return S.call(g);if(g&&typeof g.length=="number")return{next:e(function(){return g&&E>=g.length&&(g=void 0),{value:g&&g[E++],done:!g}},"next")};throw new TypeError(v?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0});var c=i(6),d=i(2),f=function(){function g(v){return this._live=!1,this._items=[],this._length=0,this._root=v,this._items=[],this._filter=function(S){return!0},new Proxy(this,this)}return e(g,"e"),Object.defineProperty(g.prototype,"length",{get:e(function(){return this._items.length},"get"),enumerable:!0,configurable:!0}),g.prototype.item=function(v){return v<0||v>this.length-1?null:this._items[v]},g.prototype.keys=function(){var v;return(v={})[Symbol.iterator]=function(){var S=0;return{next:function(){return S===this.length?{done:!0,value:null}:{done:!1,value:S++}}.bind(this)}}.bind(this),v},g.prototype.values=function(){var v;return(v={})[Symbol.iterator]=function(){var S=this[Symbol.iterator]();return{next:e(function(){return S.next()},"next")}}.bind(this),v},g.prototype.entries=function(){var v;return(v={})[Symbol.iterator]=function(){var S=this[Symbol.iterator](),E=0;return{next:e(function(){var A=S.next();return A.done?{done:!0,value:null}:{done:!1,value:[E++,A.value]}},"next")}}.bind(this),v},g.prototype[Symbol.iterator]=function(){var v=this._items[Symbol.iterator]();return{next:e(function(){return v.next()},"next")}},g.prototype.forEach=function(v,S){var E,A;S===void 0&&(S=c.dom.window);var C=0;try{for(var L=a(this._items),W=L.next();!W.done;W=L.next()){var O=W.value;v.call(S,O,C++,this)}}catch(w){E={error:w}}finally{try{W&&!W.done&&(A=L.return)&&A.call(L)}finally{if(E)throw E.error}}},g.prototype.get=function(v,S,E){if(!d.isString(S))return Reflect.get(v,S,E);var A=Number(S);return isNaN(A)?Reflect.get(v,S,E):v._items[A]||void 0},g.prototype.set=function(v,S,E,A){if(!d.isString(S))return Reflect.set(v,S,E,A);var C=Number(S);return isNaN(C)?Reflect.set(v,S,E,A):C>=0&&C<v._items.length&&(v._items[C]=E,!0)},g._create=function(v,S){var E=new g(v);return E._items=S,E},g}();t.NodeListStaticImpl=f},function(r,t,i){"use strict";var a,c=this&&this.__extends||(a=e(function(v,S){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(E,A){E.__proto__=A}||function(E,A){for(var C in A)A.hasOwnProperty(C)&&(E[C]=A[C])})(v,S)},"n"),function(v,S){function E(){this.constructor=v}e(E,"r"),a(v,S),v.prototype=S===null?Object.create(S):(E.prototype=S.prototype,new E)});Object.defineProperty(t,"__esModule",{value:!0});var d=i(9),f=i(0),g=function(v){function S(E){var A=v.call(this)||this;return A._element=E,Object.setPrototypeOf(A,S.prototype),A}return e(S,"t"),c(S,v),S.prototype._asArray=function(){return this},S.prototype.item=function(E){return this[E]||null},S.prototype.getNamedItem=function(E){return f.element_getAnAttributeByName(E,this._element)},S.prototype.getNamedItemNS=function(E,A){return f.element_getAnAttributeByNamespaceAndLocalName(E||"",A,this._element)},S.prototype.setNamedItem=function(E){return f.element_setAnAttribute(E,this._element)},S.prototype.setNamedItemNS=function(E){return f.element_setAnAttribute(E,this._element)},S.prototype.removeNamedItem=function(E){var A=f.element_removeAnAttributeByName(E,this._element);if(A===null)throw new d.NotFoundError;return A},S.prototype.removeNamedItemNS=function(E,A){var C=f.element_removeAnAttributeByNamespaceAndLocalName(E||"",A,this._element);if(C===null)throw new d.NotFoundError;return C},S._create=function(E){return new S(E)},S}(Array);t.NamedNodeMapImpl=g},function(r,t,i){"use strict";var a,c=this&&this.__extends||(a=e(function(W,O){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(w,M){w.__proto__=M}||function(w,M){for(var J in M)M.hasOwnProperty(J)&&(w[J]=M[J])})(W,O)},"n"),function(W,O){function w(){this.constructor=W}e(w,"r"),a(W,O),W.prototype=O===null?Object.create(O):(w.prototype=O.prototype,new w)}),d=this&&this.__values||function(W){var O=typeof Symbol=="function"&&Symbol.iterator,w=O&&W[O],M=0;if(w)return w.call(W);if(W&&typeof W.length=="number")return{next:e(function(){return W&&M>=W.length&&(W=void 0),{value:W&&W[M++],done:!W}},"next")};throw new TypeError(O?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0});var f=i(6),g=i(1),v=i(102),S=i(9),E=i(0),A=i(12),C=i(3),L=function(W){function O(){var w=W.call(this)||this,M=f.dom.window._associatedDocument;return w._start=[M,0],w._end=[M,0],f.dom.rangeList.add(w),w}return e(O,"t"),c(O,W),Object.defineProperty(O.prototype,"commonAncestorContainer",{get:e(function(){for(var w=this._start[0];!E.tree_isAncestorOf(this._end[0],w,!0);){if(w._parent===null)throw new Error("Parent node is null.");w=w._parent}return w},"get"),enumerable:!0,configurable:!0}),O.prototype.setStart=function(w,M){E.range_setTheStart(this,w,M)},O.prototype.setEnd=function(w,M){E.range_setTheEnd(this,w,M)},O.prototype.setStartBefore=function(w){var M=w._parent;if(M===null)throw new S.InvalidNodeTypeError;E.range_setTheStart(this,M,E.tree_index(w))},O.prototype.setStartAfter=function(w){var M=w._parent;if(M===null)throw new S.InvalidNodeTypeError;E.range_setTheStart(this,M,E.tree_index(w)+1)},O.prototype.setEndBefore=function(w){var M=w._parent;if(M===null)throw new S.InvalidNodeTypeError;E.range_setTheEnd(this,M,E.tree_index(w))},O.prototype.setEndAfter=function(w){var M=w._parent;if(M===null)throw new S.InvalidNodeTypeError;E.range_setTheEnd(this,M,E.tree_index(w)+1)},O.prototype.collapse=function(w){w?this._end=this._start:this._start=this._end},O.prototype.selectNode=function(w){E.range_select(w,this)},O.prototype.selectNodeContents=function(w){if(C.Guard.isDocumentTypeNode(w))throw new S.InvalidNodeTypeError;var M=E.tree_nodeLength(w);this._start=[w,0],this._end=[w,M]},O.prototype.compareBoundaryPoints=function(w,M){if(w!==g.HowToCompare.StartToStart&&w!==g.HowToCompare.StartToEnd&&w!==g.HowToCompare.EndToEnd&&w!==g.HowToCompare.EndToStart)throw new S.NotSupportedError;if(E.range_root(this)!==E.range_root(M))throw new S.WrongDocumentError;var J,Z;switch(w){case g.HowToCompare.StartToStart:J=this._start,Z=M._start;break;case g.HowToCompare.StartToEnd:J=this._end,Z=M._start;break;case g.HowToCompare.EndToEnd:J=this._end,Z=M._end;break;case g.HowToCompare.EndToStart:J=this._start,Z=M._end;break;default:throw new S.NotSupportedError}var Q=E.boundaryPoint_position(J,Z);return Q===g.BoundaryPosition.Before?-1:Q===g.BoundaryPosition.After?1:0},O.prototype.deleteContents=function(){var w,M,J,Z;if(!E.range_collapsed(this)){var Q=this._startNode,me=this._startOffset,be=this._endNode,he=this._endOffset;if(Q===be&&C.Guard.isCharacterDataNode(Q))E.characterData_replaceData(Q,me,he-me,"");else{var _e,He,et=[];try{for(var ut=d(E.range_getContainedNodes(this)),ft=ut.next();!ft.done;ft=ut.next()){var Wt=(Kt=ft.value)._parent;Wt!==null&&E.range_isContained(Wt,this)||et.push(Kt)}}catch(wt){w={error:wt}}finally{try{ft&&!ft.done&&(M=ut.return)&&M.call(ut)}finally{if(w)throw w.error}}if(E.tree_isAncestorOf(be,Q,!0))_e=Q,He=me;else{for(var En=Q;En._parent!==null&&!E.tree_isAncestorOf(be,En._parent,!0);)En=En._parent;if(En._parent===null)throw new Error("Parent node is null.");_e=En._parent,He=E.tree_index(En)+1}C.Guard.isCharacterDataNode(Q)&&E.characterData_replaceData(Q,me,E.tree_nodeLength(Q)-me,"");try{for(var fn=d(et),Gt=fn.next();!Gt.done;Gt=fn.next()){var Kt;(Kt=Gt.value)._parent&&E.mutation_remove(Kt,Kt._parent)}}catch(wt){J={error:wt}}finally{try{Gt&&!Gt.done&&(Z=fn.return)&&Z.call(fn)}finally{if(J)throw J.error}}C.Guard.isCharacterDataNode(be)&&E.characterData_replaceData(be,0,he,""),this._start=[_e,He],this._end=[_e,He]}}},O.prototype.extractContents=function(){return E.range_extract(this)},O.prototype.cloneContents=function(){return E.range_cloneTheContents(this)},O.prototype.insertNode=function(w){return E.range_insert(w,this)},O.prototype.surroundContents=function(w){var M,J;try{for(var Z=d(E.range_getPartiallyContainedNodes(this)),Q=Z.next();!Q.done;Q=Z.next()){var me=Q.value;if(!C.Guard.isTextNode(me))throw new S.InvalidStateError}}catch(he){M={error:he}}finally{try{Q&&!Q.done&&(J=Z.return)&&J.call(Z)}finally{if(M)throw M.error}}if(C.Guard.isDocumentNode(w)||C.Guard.isDocumentTypeNode(w)||C.Guard.isDocumentFragmentNode(w))throw new S.InvalidNodeTypeError;var be=E.range_extract(this);w._children.size!==0&&E.mutation_replaceAll(null,w),E.range_insert(w,this),E.mutation_append(be,w),E.range_select(w,this)},O.prototype.cloneRange=function(){return E.create_range(this._start,this._end)},O.prototype.detach=function(){f.dom.rangeList.delete(this)},O.prototype.isPointInRange=function(w,M){if(E.tree_rootNode(w)!==E.range_root(this))return!1;if(C.Guard.isDocumentTypeNode(w))throw new S.InvalidNodeTypeError;if(M>E.tree_nodeLength(w))throw new S.IndexSizeError;var J=[w,M];return E.boundaryPoint_position(J,this._start)!==g.BoundaryPosition.Before&&E.boundaryPoint_position(J,this._end)!==g.BoundaryPosition.After},O.prototype.comparePoint=function(w,M){if(E.tree_rootNode(w)!==E.range_root(this))throw new S.WrongDocumentError;if(C.Guard.isDocumentTypeNode(w))throw new S.InvalidNodeTypeError;if(M>E.tree_nodeLength(w))throw new S.IndexSizeError;var J=[w,M];return E.boundaryPoint_position(J,this._start)===g.BoundaryPosition.Before?-1:E.boundaryPoint_position(J,this._end)===g.BoundaryPosition.After?1:0},O.prototype.intersectsNode=function(w){if(E.tree_rootNode(w)!==E.range_root(this))return!1;var M=w._parent;if(M===null)return!0;var J=E.tree_index(w);return E.boundaryPoint_position([M,J],this._end)===g.BoundaryPosition.Before&&E.boundaryPoint_position([M,J+1],this._start)===g.BoundaryPosition.After},O.prototype.toString=function(){var w,M,J="";if(this._startNode===this._endNode&&C.Guard.isTextNode(this._startNode))return this._startNode._data.substring(this._startOffset,this._endOffset);C.Guard.isTextNode(this._startNode)&&(J+=this._startNode._data.substring(this._startOffset));try{for(var Z=d(E.range_getContainedNodes(this)),Q=Z.next();!Q.done;Q=Z.next()){var me=Q.value;C.Guard.isTextNode(me)&&(J+=me._data)}}catch(be){w={error:be}}finally{try{Q&&!Q.done&&(M=Z.return)&&M.call(Z)}finally{if(w)throw w.error}}return C.Guard.isTextNode(this._endNode)&&(J+=this._endNode._data.substring(0,this._endOffset)),J},O._create=function(w,M){var J=new O;return w&&(J._start=w),M&&(J._end=M),J},O.START_TO_START=0,O.START_TO_END=1,O.END_TO_END=2,O.END_TO_START=3,O}(v.AbstractRangeImpl);t.RangeImpl=L,A.idl_defineConst(L.prototype,"START_TO_START",0),A.idl_defineConst(L.prototype,"START_TO_END",1),A.idl_defineConst(L.prototype,"END_TO_END",2),A.idl_defineConst(L.prototype,"END_TO_START",3)},function(r,t,i){"use strict";var a,c=this&&this.__extends||(a=e(function(v,S){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(E,A){E.__proto__=A}||function(E,A){for(var C in A)A.hasOwnProperty(C)&&(E[C]=A[C])})(v,S)},"n"),function(v,S){function E(){this.constructor=v}e(E,"r"),a(v,S),v.prototype=S===null?Object.create(S):(E.prototype=S.prototype,new E)});Object.defineProperty(t,"__esModule",{value:!0});var d=i(103),f=i(0),g=function(v){function S(E,A,C){var L=v.call(this,E)||this;return L._iteratorCollection=void 0,L._reference=A,L._pointerBeforeReference=C,f.nodeIterator_iteratorList().add(L),L}return e(S,"t"),c(S,v),Object.defineProperty(S.prototype,"referenceNode",{get:e(function(){return this._reference},"get"),enumerable:!0,configurable:!0}),Object.defineProperty(S.prototype,"pointerBeforeReferenceNode",{get:e(function(){return this._pointerBeforeReference},"get"),enumerable:!0,configurable:!0}),S.prototype.nextNode=function(){return f.nodeIterator_traverse(this,!0)},S.prototype.previousNode=function(){return f.nodeIterator_traverse(this,!1)},S.prototype.detach=function(){f.nodeIterator_iteratorList().delete(this)},S._create=function(E,A,C){return new S(E,A,C)},S}(d.TraverserImpl);t.NodeIteratorImpl=g},function(r,t,i){"use strict";var a,c=this&&this.__extends||(a=e(function(S,E){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(A,C){A.__proto__=C}||function(A,C){for(var L in C)C.hasOwnProperty(L)&&(A[L]=C[L])})(S,E)},"n"),function(S,E){function A(){this.constructor=S}e(A,"r"),a(S,E),S.prototype=E===null?Object.create(E):(A.prototype=E.prototype,new A)});Object.defineProperty(t,"__esModule",{value:!0});var d=i(1),f=i(103),g=i(0),v=function(S){function E(A,C){var L=S.call(this,A)||this;return L._current=C,L}return e(E,"t"),c(E,S),Object.defineProperty(E.prototype,"currentNode",{get:e(function(){return this._current},"get"),set:e(function(A){this._current=A},"set"),enumerable:!0,configurable:!0}),E.prototype.parentNode=function(){for(var A=this._current;A!==null&&A!==this._root;)if((A=A._parent)!==null&&g.traversal_filter(this,A)===d.FilterResult.Accept)return this._current=A,A;return null},E.prototype.firstChild=function(){return g.treeWalker_traverseChildren(this,!0)},E.prototype.lastChild=function(){return g.treeWalker_traverseChildren(this,!1)},E.prototype.nextSibling=function(){return g.treeWalker_traverseSiblings(this,!0)},E.prototype.previousNode=function(){for(var A=this._current;A!==this._root;){for(var C=A._previousSibling;C;){A=C;for(var L=g.traversal_filter(this,A);L!==d.FilterResult.Reject&&A._lastChild;)A=A._lastChild,L=g.traversal_filter(this,A);if(L===d.FilterResult.Accept)return this._current=A,A;C=A._previousSibling}if(A===this._root||A._parent===null)return null;if(A=A._parent,g.traversal_filter(this,A)===d.FilterResult.Accept)return this._current=A,A}return null},E.prototype.previousSibling=function(){return g.treeWalker_traverseSiblings(this,!1)},E.prototype.nextNode=function(){for(var A=this._current,C=d.FilterResult.Accept;;){for(;C!==d.FilterResult.Reject&&A._firstChild;)if(A=A._firstChild,(C=g.traversal_filter(this,A))===d.FilterResult.Accept)return this._current=A,A;for(var L=null,W=A;W!==null;){if(W===this._root)return null;if((L=W._nextSibling)!==null){A=L;break}W=W._parent}if((C=g.traversal_filter(this,A))===d.FilterResult.Accept)return this._current=A,A}},E._create=function(A,C){return new E(A,C)},E}(f.TraverserImpl);t.TreeWalkerImpl=v},function(r,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=i(1),c=i(12),d=function(){function f(){}return e(f,"e"),f.prototype.acceptNode=function(g){return a.FilterResult.Accept},f._create=function(){return new f},f.FILTER_ACCEPT=1,f.FILTER_REJECT=2,f.FILTER_SKIP=3,f.SHOW_ALL=4294967295,f.SHOW_ELEMENT=1,f.SHOW_ATTRIBUTE=2,f.SHOW_TEXT=4,f.SHOW_CDATA_SECTION=8,f.SHOW_ENTITY_REFERENCE=16,f.SHOW_ENTITY=32,f.SHOW_PROCESSING_INSTRUCTION=64,f.SHOW_COMMENT=128,f.SHOW_DOCUMENT=256,f.SHOW_DOCUMENT_TYPE=512,f.SHOW_DOCUMENT_FRAGMENT=1024,f.SHOW_NOTATION=2048,f}();t.NodeFilterImpl=d,c.idl_defineConst(d.prototype,"FILTER_ACCEPT",1),c.idl_defineConst(d.prototype,"FILTER_REJECT",2),c.idl_defineConst(d.prototype,"FILTER_SKIP",3),c.idl_defineConst(d.prototype,"SHOW_ALL",4294967295),c.idl_defineConst(d.prototype,"SHOW_ELEMENT",1),c.idl_defineConst(d.prototype,"SHOW_ATTRIBUTE",2),c.idl_defineConst(d.prototype,"SHOW_TEXT",4),c.idl_defineConst(d.prototype,"SHOW_CDATA_SECTION",8),c.idl_defineConst(d.prototype,"SHOW_ENTITY_REFERENCE",16),c.idl_defineConst(d.prototype,"SHOW_ENTITY",32),c.idl_defineConst(d.prototype,"SHOW_PROCESSING_INSTRUCTION",64),c.idl_defineConst(d.prototype,"SHOW_COMMENT",128),c.idl_defineConst(d.prototype,"SHOW_DOCUMENT",256),c.idl_defineConst(d.prototype,"SHOW_DOCUMENT_TYPE",512),c.idl_defineConst(d.prototype,"SHOW_DOCUMENT_FRAGMENT",1024),c.idl_defineConst(d.prototype,"SHOW_NOTATION",2048)},function(r,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function c(d,f,g,v,S,E,A,C,L){this._type=d,this._target=f,this._addedNodes=g,this._removedNodes=v,this._previousSibling=S,this._nextSibling=E,this._attributeName=A,this._attributeNamespace=C,this._oldValue=L}return e(c,"e"),Object.defineProperty(c.prototype,"type",{get:e(function(){return this._type},"get"),enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"target",{get:e(function(){return this._target},"get"),enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"addedNodes",{get:e(function(){return this._addedNodes},"get"),enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"removedNodes",{get:e(function(){return this._removedNodes},"get"),enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"previousSibling",{get:e(function(){return this._previousSibling},"get"),enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"nextSibling",{get:e(function(){return this._nextSibling},"get"),enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"attributeName",{get:e(function(){return this._attributeName},"get"),enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"attributeNamespace",{get:e(function(){return this._attributeNamespace},"get"),enumerable:!0,configurable:!0}),Object.defineProperty(c.prototype,"oldValue",{get:e(function(){return this._oldValue},"get"),enumerable:!0,configurable:!0}),c._create=function(d,f,g,v,S,E,A,C,L){return new c(d,f,g,v,S,E,A,C,L)},c}();t.MutationRecordImpl=a},function(r,t,i){"use strict";var a=this&&this.__values||function(S){var E=typeof Symbol=="function"&&Symbol.iterator,A=E&&S[E],C=0;if(A)return A.call(S);if(S&&typeof S.length=="number")return{next:e(function(){return S&&C>=S.length&&(S=void 0),{value:S&&S[C++],done:!S}},"next")};throw new TypeError(E?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0});var c=i(6),d=i(9),f=i(7),g=i(0),v=function(){function S(E,A){this._element=E,this._attribute=A,this._tokenSet=new Set;var C=A._localName,L=g.element_getAnAttributeValue(E,C),W=this;this._element._attributeChangeSteps.push(function(O,w,M,J,Z){w===W._attribute._localName&&Z===null&&(J?W._tokenSet=g.orderedSet_parse(J):W._tokenSet.clear())}),c.dom.features.steps&&g.dom_runAttributeChangeSteps(E,C,L,L,null)}return e(S,"e"),Object.defineProperty(S.prototype,"length",{get:e(function(){return this._tokenSet.size},"get"),enumerable:!0,configurable:!0}),S.prototype.item=function(E){var A,C,L=0;try{for(var W=a(this._tokenSet),O=W.next();!O.done;O=W.next()){var w=O.value;if(L===E)return w;L++}}catch(M){A={error:M}}finally{try{O&&!O.done&&(C=W.return)&&C.call(W)}finally{if(A)throw A.error}}return null},S.prototype.contains=function(E){return this._tokenSet.has(E)},S.prototype.add=function(){for(var E,A,C=[],L=0;L<arguments.length;L++)C[L]=arguments[L];try{for(var W=a(C),O=W.next();!O.done;O=W.next()){var w=O.value;if(w==="")throw new d.SyntaxError("Cannot add an empty token.");if(f.codePoint.ASCIIWhiteSpace.test(w))throw new d.InvalidCharacterError("Token cannot contain whitespace.");this._tokenSet.add(w)}}catch(M){E={error:M}}finally{try{O&&!O.done&&(A=W.return)&&A.call(W)}finally{if(E)throw E.error}}g.tokenList_updateSteps(this)},S.prototype.remove=function(){for(var E,A,C=[],L=0;L<arguments.length;L++)C[L]=arguments[L];try{for(var W=a(C),O=W.next();!O.done;O=W.next()){var w=O.value;if(w==="")throw new d.SyntaxError("Cannot remove an empty token.");if(f.codePoint.ASCIIWhiteSpace.test(w))throw new d.InvalidCharacterError("Token cannot contain whitespace.");this._tokenSet.delete(w)}}catch(M){E={error:M}}finally{try{O&&!O.done&&(A=W.return)&&A.call(W)}finally{if(E)throw E.error}}g.tokenList_updateSteps(this)},S.prototype.toggle=function(E,A){if(A===void 0&&(A=void 0),E==="")throw new d.SyntaxError("Cannot toggle an empty token.");if(f.codePoint.ASCIIWhiteSpace.test(E))throw new d.InvalidCharacterError("Token cannot contain whitespace.");return this._tokenSet.has(E)?A!==void 0&&A!==!1||(this._tokenSet.delete(E),g.tokenList_updateSteps(this),!1):(A===void 0||A===!0)&&(this._tokenSet.add(E),g.tokenList_updateSteps(this),!0)},S.prototype.replace=function(E,A){if(E===""||A==="")throw new d.SyntaxError("Cannot replace an empty token.");if(f.codePoint.ASCIIWhiteSpace.test(E)||f.codePoint.ASCIIWhiteSpace.test(A))throw new d.InvalidCharacterError("Token cannot contain whitespace.");return!!this._tokenSet.has(E)&&(f.set.replace(this._tokenSet,E,A),g.tokenList_updateSteps(this),!0)},S.prototype.supports=function(E){return g.tokenList_validationSteps(this,E)},Object.defineProperty(S.prototype,"value",{get:e(function(){return g.tokenList_serializeSteps(this)},"get"),set:e(function(E){g.element_setAnAttributeValue(this._element,this._attribute._localName,E)},"set"),enumerable:!0,configurable:!0}),S.prototype[Symbol.iterator]=function(){var E=this._tokenSet[Symbol.iterator]();return{next:e(function(){return E.next()},"next")}},S._create=function(E,A){return new S(E,A)},S}();t.DOMTokenListImpl=v},function(r,t,i){"use strict";var a,c=this&&this.__extends||(a=e(function(v,S){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(E,A){E.__proto__=A}||function(E,A){for(var C in A)A.hasOwnProperty(C)&&(E[C]=A[C])})(v,S)},"n"),function(v,S){function E(){this.constructor=v}e(E,"r"),a(v,S),v.prototype=S===null?Object.create(S):(E.prototype=S.prototype,new E)});Object.defineProperty(t,"__esModule",{value:!0});var d=i(104),f=i(0),g=function(v){function S(E,A){var C=v.call(this,E,A)||this;return C._detail=null,C._detail=A&&A.detail||null,C}return e(S,"t"),c(S,v),Object.defineProperty(S.prototype,"detail",{get:e(function(){return this._detail},"get"),enumerable:!0,configurable:!0}),S.prototype.initCustomEvent=function(E,A,C,L){A===void 0&&(A=!1),C===void 0&&(C=!1),L===void 0&&(L=null),this._dispatchFlag||(f.event_initialize(this,E,A,C),this._detail=L)},S}(d.EventImpl);t.CustomEventImpl=g},function(r,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=i(6),c=i(1),d=i(105),f=i(17);t.nodeIterator_traverse=function(g,v){for(var S=g._reference,E=g._pointerBeforeReference;;){if(v)if(E)E=!1;else{var A=f.tree_getFollowingNode(g._root,S);if(!A)return null;S=A}else if(E){var C=f.tree_getPrecedingNode(g.root,S);if(!C)return null;S=C}else E=!0;if(d.traversal_filter(g,S)===c.FilterResult.Accept)break}return g._reference=S,g._pointerBeforeReference=E,S},t.nodeIterator_iteratorList=function(){return a.dom.window._iteratorList}},function(r,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=i(9),c=i(7),d=i(174);function f(g){if(!d.xml_isName(g))throw new a.InvalidCharacterError("Invalid XML name: "+g);if(!d.xml_isQName(g))throw new a.InvalidCharacterError("Invalid XML qualified name: "+g+".")}e(f,"a"),t.namespace_validate=f,t.namespace_validateAndExtract=function(g,v){g||(g=null),f(v);var S=v.split(":"),E=S.length===2?S[0]:null,A=S.length===2?S[1]:v;if(E&&g===null)throw new a.NamespaceError("Qualified name includes a prefix but the namespace is null.");if(E==="xml"&&g!==c.namespace.XML)throw new a.NamespaceError('Qualified name includes the "xml" prefix but the namespace is not the XML namespace.');if(g!==c.namespace.XMLNS&&(E==="xmlns"||v==="xmlns"))throw new a.NamespaceError('Qualified name includes the "xmlns" prefix but the namespace is not the XMLNS namespace.');if(g===c.namespace.XMLNS&&E!=="xmlns"&&v!=="xmlns")throw new a.NamespaceError('Qualified name does not include the "xmlns" prefix but the namespace is the XMLNS namespace.');return[g,E,A]},t.namespace_extractQName=function(g){f(g);var v=g.split(":");return[v.length===2?v[0]:null,v.length===2?v[1]:g]}},function(r,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.xml_isName=function(a){for(var c=0;c<a.length;c++){var d=a.charCodeAt(c);if(!(d>=97&&d<=122||d>=65&&d<=90||d===58||d===95||d>=192&&d<=214||d>=216&&d<=246||d>=248&&d<=767||d>=880&&d<=893||d>=895&&d<=8191||d>=8204&&d<=8205||d>=8304&&d<=8591||d>=11264&&d<=12271||d>=12289&&d<=55295||d>=63744&&d<=64975||d>=65008&&d<=65533)&&(c===0||!(d===45||d===46||d>=48&&d<=57||d===183||d>=768&&d<=879||d>=8255&&d<=8256))){if(d>=55296&&d<=56319&&c<a.length-1){var f=a.charCodeAt(c+1);if(f>=56320&&f<=57343&&(c++,(d=1024*(d-55296)+f-56320+65536)>=65536&&d<=983039))continue}return!1}}return!0},t.xml_isQName=function(a){for(var c=!1,d=0;d<a.length;d++){var f=a.charCodeAt(d);if(!(f>=97&&f<=122||f>=65&&f<=90||f===95||f>=192&&f<=214||f>=216&&f<=246||f>=248&&f<=767||f>=880&&f<=893||f>=895&&f<=8191||f>=8204&&f<=8205||f>=8304&&f<=8591||f>=11264&&f<=12271||f>=12289&&f<=55295||f>=63744&&f<=64975||f>=65008&&f<=65533)&&(d===0||!(f===45||f===46||f>=48&&f<=57||f===183||f>=768&&f<=879||f>=8255&&f<=8256))){if(d===0||f!==58){if(f>=55296&&f<=56319&&d<a.length-1){var g=a.charCodeAt(d+1);if(g>=56320&&g<=57343&&(d++,(f=1024*(f-55296)+g-56320+65536)>=65536&&f<=983039))continue}return!1}if(c||d===a.length-1)return!1;c=!0}}return!0},t.xml_isLegalChar=function(a){for(var c=0;c<a.length;c++){var d=a.charCodeAt(c);if(!(d===9||d===10||d===13||d>=32&&d<=55295||d>=57344&&d<=65533)){if(d>=55296&&d<=56319&&c<a.length-1){var f=a.charCodeAt(c+1);if(f>=56320&&f<=57343&&(c++,(d=1024*(d-55296)+f-56320+65536)>=65536&&d<=1114111))continue}return!1}}return!0},t.xml_isPubidChar=function(a){for(var c=0;c<a.length;c++){var d=a.charCodeAt(c);if(!(d>=97&&d<=122||d>=65&&d<=90||d>=39&&d<=59||d===32||d===13||d===10||d>=35&&d<=37||d===33||d===61||d===63||d===64||d===95))return!1}return!0}},function(r,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var a=i(1),c=i(17);t.boundaryPoint_position=e(function d(f,g){var v=f[0],S=f[1],E=g[0],A=g[1];if(console.assert(c.tree_rootNode(v)===c.tree_rootNode(E),"Boundary points must share the same root node."),v===E)return S===A?a.BoundaryPosition.Equal:S<A?a.BoundaryPosition.Before:a.BoundaryPosition.After;if(c.tree_isFollowing(E,v)){var C=d([E,A],[v,S]);if(C===a.BoundaryPosition.Before)return a.BoundaryPosition.After;if(C===a.BoundaryPosition.After)return a.BoundaryPosition.Before}if(c.tree_isAncestorOf(E,v)){for(var L=E;!c.tree_isChildOf(v,L);)L._parent!==null&&(L=L._parent);if(c.tree_index(L)<S)return a.BoundaryPosition.After}return a.BoundaryPosition.Before},"e")},function(r,t,i){"use strict";var a=this&&this.__values||function(C){var L=typeof Symbol=="function"&&Symbol.iterator,W=L&&C[L],O=0;if(W)return W.call(C);if(C&&typeof C.length=="number")return{next:e(function(){return C&&O>=C.length&&(C=void 0),{value:C&&C[O++],done:!C}},"next")};throw new TypeError(L?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0});var c=i(6),d=i(3),f=i(7),g=i(29),v=i(108),S=i(30),E=i(37),A=i(52);t.node_stringReplaceAll=function(C,L){var W=null;C!==""&&(W=g.create_text(L._nodeDocument,C)),E.mutation_replaceAll(W,L)},t.node_clone=e(function C(L,W,O){var w,M,J,Z,Q;if(W===void 0&&(W=null),O===void 0&&(O=!1),W===null&&(W=L._nodeDocument),d.Guard.isElementNode(L)){Q=A.element_createAnElement(W,L._localName,L._namespace,L._namespacePrefix,L._is,!1);try{for(var me=a(L._attributeList),be=me.next();!be.done;be=me.next()){var he=C(be.value,W);A.element_append(he,Q)}}catch(Wt){w={error:Wt}}finally{try{be&&!be.done&&(M=me.return)&&M.call(me)}finally{if(w)throw w.error}}}else if(d.Guard.isDocumentNode(L)){var _e=g.create_document();_e._encoding=L._encoding,_e._contentType=L._contentType,_e._URL=L._URL,_e._origin=L._origin,_e._type=L._type,_e._mode=L._mode,Q=_e}else if(d.Guard.isDocumentTypeNode(L))Q=g.create_documentType(W,L._name,L._publicId,L._systemId);else if(d.Guard.isAttrNode(L)){var He=g.create_attr(W,L.localName);He._namespace=L._namespace,He._namespacePrefix=L._namespacePrefix,He._value=L._value,Q=He}else Q=d.Guard.isExclusiveTextNode(L)?g.create_text(W,L._data):d.Guard.isCDATASectionNode(L)?g.create_cdataSection(W,L._data):d.Guard.isCommentNode(L)?g.create_comment(W,L._data):d.Guard.isProcessingInstructionNode(L)?g.create_processingInstruction(W,L._target,L._data):d.Guard.isDocumentFragmentNode(L)?g.create_documentFragment(W):Object.create(L);if(d.Guard.isDocumentNode(Q)?(Q._nodeDocument=Q,W=Q):Q._nodeDocument=W,c.dom.features.steps&&S.dom_runCloningSteps(Q,L,W,O),O)try{for(var et=a(L._children),ut=et.next();!ut.done;ut=et.next()){var ft=C(ut.value,W,!0);E.mutation_append(ft,Q)}}catch(Wt){J={error:Wt}}finally{try{ut&&!ut.done&&(Z=et.return)&&Z.call(et)}finally{if(J)throw J.error}}return Q},"e"),t.node_equals=e(function C(L,W){var O,w,M,J;if(L._nodeType!==W._nodeType)return!1;if(d.Guard.isDocumentTypeNode(L)&&d.Guard.isDocumentTypeNode(W)){if(L._name!==W._name||L._publicId!==W._publicId||L._systemId!==W._systemId)return!1}else if(d.Guard.isElementNode(L)&&d.Guard.isElementNode(W)){if(L._namespace!==W._namespace||L._namespacePrefix!==W._namespacePrefix||L._localName!==W._localName||L._attributeList.length!==W._attributeList.length)return!1}else if(d.Guard.isAttrNode(L)&&d.Guard.isAttrNode(W)){if(L._namespace!==W._namespace||L._localName!==W._localName||L._value!==W._value)return!1}else if(d.Guard.isProcessingInstructionNode(L)&&d.Guard.isProcessingInstructionNode(W)){if(L._target!==W._target||L._data!==W._data)return!1}else if(d.Guard.isCharacterDataNode(L)&&d.Guard.isCharacterDataNode(W)&&L._data!==W._data)return!1;if(d.Guard.isElementNode(L)&&d.Guard.isElementNode(W)){var Z={};try{for(var Q=a(L._attributeList),me=Q.next();!me.done;me=Q.next())Z[(_e=me.value)._localName]=_e}catch(En){O={error:En}}finally{try{me&&!me.done&&(w=Q.return)&&w.call(Q)}finally{if(O)throw O.error}}try{for(var be=a(W._attributeList),he=be.next();!he.done;he=be.next()){var _e,He=he.value;if(!(_e=Z[He._localName])||!C(_e,He))return!1}}catch(En){M={error:En}}finally{try{he&&!he.done&&(J=be.return)&&J.call(be)}finally{if(M)throw M.error}}}if(L._children.size!==W._children.size)return!1;for(var et=L._children[Symbol.iterator](),ut=W._children[Symbol.iterator](),ft=et.next(),Wt=ut.next();!ft.done&&!Wt.done;){if(!C(ft.value,Wt.value))return!1;ft=et.next(),Wt=ut.next()}return!0},"e"),t.node_listOfElementsWithQualifiedName=function(C,L){return C==="*"?g.create_htmlCollection(L):L._nodeDocument._type==="html"?g.create_htmlCollection(L,function(W){return W._namespace===f.namespace.HTML&&W._qualifiedName===C.toLowerCase()||W._namespace!==f.namespace.HTML&&W._qualifiedName===C}):g.create_htmlCollection(L,function(W){return W._qualifiedName===C})},t.node_listOfElementsWithNamespace=function(C,L,W){return C===""&&(C=null),C==="*"&&L==="*"?g.create_htmlCollection(W):C==="*"?g.create_htmlCollection(W,function(O){return O._localName===L}):L==="*"?g.create_htmlCollection(W,function(O){return O._namespace===C}):g.create_htmlCollection(W,function(O){return O._localName===L&&O._namespace===C})},t.node_listOfElementsWithClassNames=function(C,L){var W=v.orderedSet_parse(C);if(W.size===0)return g.create_htmlCollection(L,function(){return!1});var O=L._nodeDocument._mode!=="quirks";return g.create_htmlCollection(L,function(w){var M=w.classList;return v.orderedSet_contains(M._tokenSet,W,O)})},t.node_locateANamespacePrefix=e(function C(L,W){if(L._namespace===W&&L._namespacePrefix!==null)return L._namespacePrefix;for(var O=0;O<L._attributeList.length;O++){var w=L._attributeList[O];if(w._namespacePrefix==="xmlns"&&w._value===W)return w._localName}return L._parent&&d.Guard.isElementNode(L._parent)?C(L._parent,W):null},"e"),t.node_locateANamespace=e(function C(L,W){if(d.Guard.isElementNode(L)){if(L._namespace!==null&&L._namespacePrefix===W)return L._namespace;for(var O=0;O<L._attributeList.length;O++){var w=L._attributeList[O];if(w._namespace===f.namespace.XMLNS&&w._namespacePrefix==="xmlns"&&w._localName===W||W===null&&w._namespace===f.namespace.XMLNS&&w._namespacePrefix===null&&w._localName==="xmlns")return w._value||null}return L.parentElement===null?null:C(L.parentElement,W)}return d.Guard.isDocumentNode(L)?L.documentElement===null?null:C(L.documentElement,W):d.Guard.isDocumentTypeNode(L)||d.Guard.isDocumentFragmentNode(L)?null:d.Guard.isAttrNode(L)?L._element===null?null:C(L._element,W):L._parent&&d.Guard.isElementNode(L._parent)?C(L._parent,W):null},"e")},function(r,t,i){"use strict";var a=this&&this.__values||function(A){var C=typeof Symbol=="function"&&Symbol.iterator,L=C&&A[C],W=0;if(L)return L.call(A);if(A&&typeof A.length=="number")return{next:e(function(){return A&&W>=A.length&&(A=void 0),{value:A&&A[W++],done:!A}},"next")};throw new TypeError(C?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:!0});var c=i(6),d=i(3),f=i(9),g=i(29),v=i(17),S=i(107),E=i(37);t.text_contiguousTextNodes=function(A,C){var L;return C===void 0&&(C=!1),(L={})[Symbol.iterator]=function(){for(var W=A;W&&d.Guard.isTextNode(W._previousSibling);)W=W._previousSibling;return{next:e(function(){if(W&&!C&&W===A&&(W=d.Guard.isTextNode(W._nextSibling)?W._nextSibling:null),W===null)return{done:!0,value:null};var O={done:!1,value:W};return W=d.Guard.isTextNode(W._nextSibling)?W._nextSibling:null,O},"next")}},L},t.text_contiguousExclusiveTextNodes=function(A,C){var L;return C===void 0&&(C=!1),(L={})[Symbol.iterator]=function(){for(var W=A;W&&d.Guard.isExclusiveTextNode(W._previousSibling);)W=W._previousSibling;return{next:e(function(){if(W&&!C&&W===A&&(W=d.Guard.isExclusiveTextNode(W._nextSibling)?W._nextSibling:null),W===null)return{done:!0,value:null};var O={done:!1,value:W};return W=d.Guard.isExclusiveTextNode(W._nextSibling)?W._nextSibling:null,O},"next")}},L},t.text_descendantTextContent=function(A){for(var C="",L=v.tree_getFirstDescendantNode(A,!1,!1,function(W){return d.Guard.isTextNode(W)});L!==null;)C+=L._data,L=v.tree_getNextDescendantNode(A,L,!1,!1,function(W){return d.Guard.isTextNode(W)});return C},t.text_split=function(A,C){var L,W,O=A._data.length;if(C>O)throw new f.IndexSizeError;var w=O-C,M=S.characterData_substringData(A,C,w),J=g.create_text(A._nodeDocument,M),Z=A._parent;if(Z!==null){E.mutation_insert(J,Z,A._nextSibling);try{for(var Q=a(c.dom.rangeList),me=Q.next();!me.done;me=Q.next()){var be=me.value;be._start[0]===A&&be._start[1]>C&&(be._start[0]=J,be._start[1]-=C),be._end[0]===A&&be._end[1]>C&&(be._end[0]=J,be._end[1]-=C);var he=v.tree_index(A);be._start[0]===Z&&be._start[1]===he+1&&be._start[1]++,be._end[0]===Z&&be._end[1]===he+1&&be._end[1]++}}catch(_e){L={error:_e}}finally{try{me&&!me.done&&(W=Q.return)&&W.call(Q)}finally{if(L)throw L.error}}}return S.characterData_replaceData(A,C,w,""),J}},function(r,t,i){"use strict";var a=i(4),c=i(41),d=i(24),f=i(48),g=[].join,v=c!=Object,S=f("join",",");a({target:"Array",proto:!0,forced:v||!S},{join:e(function(E){return g.call(d(this),E===void 0?",":E)},"join")})},function(r,t,i){var a=i(4),c=i(83),d=String.fromCharCode,f=String.fromCodePoint;a({target:"String",stat:!0,forced:!!f&&f.length!=1},{fromCodePoint:e(function(g){for(var v,S=[],E=arguments.length,A=0;E>A;){if(v=+arguments[A++],c(v,1114111)!==v)throw RangeError(v+" is not a valid code point");S.push(v<65536?d(v):d(55296+((v-=65536)>>10),v%1024+56320))}return S.join("")},"fromCodePoint")})},function(r,t,i){"use strict";var a=this&&this.__read||function(f,g){var v=typeof Symbol=="function"&&f[Symbol.iterator];if(!v)return f;var S,E,A=v.call(f),C=[];try{for(;(g===void 0||g-- >0)&&!(S=A.next()).done;)C.push(S.value)}catch(L){E={error:L}}finally{try{S&&!S.done&&(v=A.return)&&v.call(A)}finally{if(E)throw E.error}}return C};Object.defineProperty(t,"__esModule",{value:!0});var c=i(111),d=function(){function f(g,v){this._options={skipWhitespaceOnlyText:!1},this.err={line:-1,col:-1,index:-1,str:""},this._str=g,this._index=0,this._length=g.length,v&&(this._options.skipWhitespaceOnlyText=v.skipWhitespaceOnlyText||!1)}return e(f,"e"),f.prototype.nextToken=function(){if(this.eof())return{type:c.TokenType.EOF};var g=this.skipIfStartsWith("<")?this.openBracket():this.text();return this._options.skipWhitespaceOnlyText&&g.type===c.TokenType.Text&&f.isWhiteSpaceToken(g)&&(g=this.nextToken()),g},f.prototype.openBracket=function(){return this.skipIfStartsWith("?")?this.skipIfStartsWith("xml")?f.isSpace(this._str[this._index])?this.declaration():(this.seek(-3),this.pi()):this.pi():this.skipIfStartsWith("!")?this.skipIfStartsWith("--")?this.comment():this.skipIfStartsWith("[CDATA[")?this.cdata():this.skipIfStartsWith("DOCTYPE")?this.doctype():void this.throwError("Invalid '!' in opening tag."):this.skipIfStartsWith("/")?this.closeTag():this.openTag()},f.prototype.declaration=function(){for(var g="",v="",S="";!this.eof();){if(this.skipSpace(),this.skipIfStartsWith("?>"))return{type:c.TokenType.Declaration,version:g,encoding:v,standalone:S};var E=a(this.attribute(),2),A=E[0],C=E[1];A==="version"?g=C:A==="encoding"?v=C:A==="standalone"?S=C:this.throwError("Invalid attribute name: "+A)}this.throwError("Missing declaration end symbol `?>`")},f.prototype.doctype=function(){var g="",v="";this.skipSpace();var S=this.takeUntil2("[",">",!0);return this.skipSpace(),this.skipIfStartsWith("PUBLIC")?(g=this.quotedString(),v=this.quotedString()):this.skipIfStartsWith("SYSTEM")&&(v=this.quotedString()),this.skipSpace(),this.skipIfStartsWith("[")&&(this.skipUntil("]"),this.skipIfStartsWith("]")||this.throwError("Missing end bracket of DTD internal subset")),this.skipSpace(),this.skipIfStartsWith(">")||this.throwError("Missing doctype end symbol `>`"),{type:c.TokenType.DocType,name:S,pubId:g,sysId:v}},f.prototype.pi=function(){var g=this.takeUntilStartsWith("?>",!0);if(this.eof()&&this.throwError("Missing processing instruction end symbol `?>`"),this.skipSpace(),this.skipIfStartsWith("?>"))return{type:c.TokenType.PI,target:g,data:""};var v=this.takeUntilStartsWith("?>");return this.eof()&&this.throwError("Missing processing instruction end symbol `?>`"),this.seek(2),{type:c.TokenType.PI,target:g,data:v}},f.prototype.text=function(){var g=this.takeUntil("<");return{type:c.TokenType.Text,data:g}},f.prototype.comment=function(){var g=this.takeUntilStartsWith("-->");return this.eof()&&this.throwError("Missing comment end symbol `-->`"),this.seek(3),{type:c.TokenType.Comment,data:g}},f.prototype.cdata=function(){var g=this.takeUntilStartsWith("]]>");return this.eof()&&this.throwError("Missing CDATA end symbol `]>`"),this.seek(3),{type:c.TokenType.CDATA,data:g}},f.prototype.openTag=function(){this.skipSpace();var g=this.takeUntil2(">","/",!0);if(this.skipSpace(),this.skipIfStartsWith(">"))return{type:c.TokenType.Element,name:g,attributes:[],selfClosing:!1};if(this.skipIfStartsWith("/>"))return{type:c.TokenType.Element,name:g,attributes:[],selfClosing:!0};for(var v=[];!this.eof();){if(this.skipSpace(),this.skipIfStartsWith(">"))return{type:c.TokenType.Element,name:g,attributes:v,selfClosing:!1};if(this.skipIfStartsWith("/>"))return{type:c.TokenType.Element,name:g,attributes:v,selfClosing:!0};var S=this.attribute();v.push(S)}this.throwError("Missing opening element tag end symbol `>`")},f.prototype.closeTag=function(){this.skipSpace();var g=this.takeUntil(">",!0);return this.skipSpace(),this.skipIfStartsWith(">")||this.throwError("Missing closing element tag end symbol `>`"),{type:c.TokenType.ClosingTag,name:g}},f.prototype.attribute=function(){this.skipSpace();var g=this.takeUntil("=",!0);return this.skipSpace(),this.skipIfStartsWith("=")||this.throwError("Missing equals sign before attribute value"),[g,this.quotedString()]},f.prototype.quotedString=function(){this.skipSpace();var g=this.take(1);f.isQuote(g)||this.throwError("Missing start quote character before quoted value");var v=this.takeUntil(g);return this.skipIfStartsWith(g)||this.throwError("Missing end quote character after quoted value"),v},f.prototype.eof=function(){return this._index>=this._length},f.prototype.skipIfStartsWith=function(g){var v=g.length;if(v===1)return this._str[this._index]===g&&(this._index++,!0);for(var S=0;S<v;S++)if(this._str[this._index+S]!==g[S])return!1;return this._index+=v,!0},f.prototype.seek=function(g){this._index+=g,this._index<0&&(this._index=0),this._index>this._length&&(this._index=this._length)},f.prototype.skipSpace=function(){for(;!this.eof()&&f.isSpace(this._str[this._index]);)this._index++},f.prototype.take=function(g){if(g===1)return this._str[this._index++];var v=this._index;return this.seek(g),this._str.slice(v,this._index)},f.prototype.takeUntil=function(g,v){v===void 0&&(v=!1);for(var S=this._index;this._index<this._length;){var E=this._str[this._index];if(E===g||v&&f.isSpace(E))break;this._index++}return this._str.slice(S,this._index)},f.prototype.takeUntil2=function(g,v,S){S===void 0&&(S=!1);for(var E=this._index;this._index<this._length;){var A=this._str[this._index];if(A===g||A===v||S&&f.isSpace(A))break;this._index++}return this._str.slice(E,this._index)},f.prototype.takeUntilStartsWith=function(g,v){v===void 0&&(v=!1);for(var S=this._index,E=g.length;this._index<this._length;){for(var A=!0,C=0;C<E;C++){var L=this._str[this._index+C],W=g[C];if(v&&f.isSpace(L))return this._str.slice(S,this._index);if(L!==W){this._index++,A=!1;break}}if(A)return this._str.slice(S,this._index)}return this._index=this._length,this._str.slice(S)},f.prototype.skipUntil=function(g){for(;this._index<this._length&&this._str[this._index]!==g;)this._index++},f.isWhiteSpaceToken=function(g){for(var v=g.data,S=0;S<v.length;S++){var E=v[S];if(E!==" "&&E!==`
@@ -31424,12 +31424,12 @@ ${i.getFullText()}`);if(!(c.value.equals(t)||t.equals(c.value))){this.decorateNo
31424
31424
  Provided statement:
31425
31425
  ${t}`);return i}};ije.ProjectFile=GEt;function iei(r){return r.replace(/,{2,}$/gm,",")}e(iei,"fixAdditionalTrailingCommas");var ZCn=e((r,t,i)=>{t.getLanguageService().getCombinedCodeFix(r,"unusedIdentifier_delete").getChanges().forEach(c=>{i(c)})},"unusedChangesIterator");function oei(r,t){(0,Wv.hasDirective)(r,"@fluent-disable-sync-for-file")||ZCn(r,t,i=>{i.getTextChanges().map(c=>r.getDescendantAtPos(c.getSpan().getStart())).forEach(c=>{c?.isKind(Wv.ts.SyntaxKind.SingleLineCommentTrivia)||c?.isKind(Wv.ts.SyntaxKind.MultiLineCommentTrivia)?c=c?.getNextSiblingIfKind(Wv.ts.SyntaxKind.VariableStatement):c=c?.getFirstAncestorByKind(Wv.ts.SyntaxKind.VariableStatement);let d=c?.asKind(Wv.ts.SyntaxKind.VariableStatement),f=d?.getDeclarations()[0]?.getInitializerIfKind(Wv.ts.SyntaxKind.CallExpression);f&&c&&!d?.isExported()&&c.replaceWithText(f.getText())})})}e(oei,"fixUnusedCode");function aei(r,t){oei(r,t.getCompiler());let i=[];ZCn(r,t.getCompiler(),a=>{a.getTextChanges().forEach(c=>{let d=c.getSpan();i.push(r.getFullText().substring(d.getStart(),d.getEnd()))}),a.applyChanges()}),i.length>0&&t.getLogger().debug([`Removing the following unused code from ${r.getFilePath().replace(t.getRootDir(),"")}:`,...i.map((a,c)=>`${c+1}:${a.trim()}`)].join(`
31426
31426
 
31427
- `)),t.getCompiler().getLanguageService().getCombinedCodeFix(r,"unusedIdentifier_deleteImports").applyChanges()}e(aei,"deleteUnusedCode")});var tIn=Je((oje,eIn)=>{V();G();U();z();(function(r,t){typeof oje=="object"?eIn.exports=oje=t():typeof define=="function"&&define.amd?define([],t):r.CryptoJS=t()})(oje,function(){var r=r||function(t,i){var a;if(typeof window<"u"&&window.crypto&&(a=window.crypto),typeof self<"u"&&self.crypto&&(a=self.crypto),typeof globalThis<"u"&&globalThis.crypto&&(a=globalThis.crypto),!a&&typeof window<"u"&&window.msCrypto&&(a=window.msCrypto),!a&&typeof globalThis<"u"&&globalThis.crypto&&(a=globalThis.crypto),!a&&typeof require=="function")try{a=Sot()}catch{}var c=e(function(){if(a){if(typeof a.getRandomValues=="function")try{return a.getRandomValues(new Uint32Array(1))[0]}catch{}if(typeof a.randomBytes=="function")try{return a.randomBytes(4).readInt32LE()}catch{}}throw new Error("Native crypto module could not be used to get secure random number.")},"cryptoSecureRandomInt"),d=Object.create||function(){function M(){}return e(M,"F"),function(J){var Z;return M.prototype=J,Z=new M,M.prototype=null,Z}}(),f={},g=f.lib={},v=g.Base=function(){return{extend:e(function(M){var J=d(this);return M&&J.mixIn(M),(!J.hasOwnProperty("init")||this.init===J.init)&&(J.init=function(){J.$super.init.apply(this,arguments)}),J.init.prototype=J,J.$super=this,J},"extend"),create:e(function(){var M=this.extend();return M.init.apply(M,arguments),M},"create"),init:e(function(){},"init"),mixIn:e(function(M){for(var J in M)M.hasOwnProperty(J)&&(this[J]=M[J]);M.hasOwnProperty("toString")&&(this.toString=M.toString)},"mixIn"),clone:e(function(){return this.init.prototype.extend(this)},"clone")}}(),S=g.WordArray=v.extend({init:e(function(M,J){M=this.words=M||[],J!=i?this.sigBytes=J:this.sigBytes=M.length*4},"init"),toString:e(function(M){return(M||A).stringify(this)},"toString"),concat:e(function(M){var J=this.words,Z=M.words,Q=this.sigBytes,me=M.sigBytes;if(this.clamp(),Q%4)for(var be=0;be<me;be++){var he=Z[be>>>2]>>>24-be%4*8&255;J[Q+be>>>2]|=he<<24-(Q+be)%4*8}else for(var _e=0;_e<me;_e+=4)J[Q+_e>>>2]=Z[_e>>>2];return this.sigBytes+=me,this},"concat"),clamp:e(function(){var M=this.words,J=this.sigBytes;M[J>>>2]&=4294967295<<32-J%4*8,M.length=t.ceil(J/4)},"clamp"),clone:e(function(){var M=v.clone.call(this);return M.words=this.words.slice(0),M},"clone"),random:e(function(M){for(var J=[],Z=0;Z<M;Z+=4)J.push(c());return new S.init(J,M)},"random")}),E=f.enc={},A=E.Hex={stringify:e(function(M){for(var J=M.words,Z=M.sigBytes,Q=[],me=0;me<Z;me++){var be=J[me>>>2]>>>24-me%4*8&255;Q.push((be>>>4).toString(16)),Q.push((be&15).toString(16))}return Q.join("")},"stringify"),parse:e(function(M){for(var J=M.length,Z=[],Q=0;Q<J;Q+=2)Z[Q>>>3]|=parseInt(M.substr(Q,2),16)<<24-Q%8*4;return new S.init(Z,J/2)},"parse")},C=E.Latin1={stringify:e(function(M){for(var J=M.words,Z=M.sigBytes,Q=[],me=0;me<Z;me++){var be=J[me>>>2]>>>24-me%4*8&255;Q.push(String.fromCharCode(be))}return Q.join("")},"stringify"),parse:e(function(M){for(var J=M.length,Z=[],Q=0;Q<J;Q++)Z[Q>>>2]|=(M.charCodeAt(Q)&255)<<24-Q%4*8;return new S.init(Z,J)},"parse")},L=E.Utf8={stringify:e(function(M){try{return decodeURIComponent(escape(C.stringify(M)))}catch{throw new Error("Malformed UTF-8 data")}},"stringify"),parse:e(function(M){return C.parse(unescape(encodeURIComponent(M)))},"parse")},W=g.BufferedBlockAlgorithm=v.extend({reset:e(function(){this._data=new S.init,this._nDataBytes=0},"reset"),_append:e(function(M){typeof M=="string"&&(M=L.parse(M)),this._data.concat(M),this._nDataBytes+=M.sigBytes},"_append"),_process:e(function(M){var J,Z=this._data,Q=Z.words,me=Z.sigBytes,be=this.blockSize,he=be*4,_e=me/he;M?_e=t.ceil(_e):_e=t.max((_e|0)-this._minBufferSize,0);var He=_e*be,et=t.min(He*4,me);if(He){for(var ut=0;ut<He;ut+=be)this._doProcessBlock(Q,ut);J=Q.splice(0,He),Z.sigBytes-=et}return new S.init(J,et)},"_process"),clone:e(function(){var M=v.clone.call(this);return M._data=this._data.clone(),M},"clone"),_minBufferSize:0}),O=g.Hasher=W.extend({cfg:v.extend(),init:e(function(M){this.cfg=this.cfg.extend(M),this.reset()},"init"),reset:e(function(){W.reset.call(this),this._doReset()},"reset"),update:e(function(M){return this._append(M),this._process(),this},"update"),finalize:e(function(M){M&&this._append(M);var J=this._doFinalize();return J},"finalize"),blockSize:512/32,_createHelper:e(function(M){return function(J,Z){return new M.init(Z).finalize(J)}},"_createHelper"),_createHmacHelper:e(function(M){return function(J,Z){return new w.HMAC.init(M,Z).finalize(J)}},"_createHmacHelper")}),w=f.algo={};return f}(Math);return r})});var rIn=Je((aje,nIn)=>{V();G();U();z();(function(r,t){typeof aje=="object"?nIn.exports=aje=t(tIn()):typeof define=="function"&&define.amd?define(["./core"],t):t(r.CryptoJS)})(aje,function(r){return function(t){var i=r,a=i.lib,c=a.WordArray,d=a.Hasher,f=i.algo,g=[];(function(){for(var L=0;L<64;L++)g[L]=t.abs(t.sin(L+1))*4294967296|0})();var v=f.MD5=d.extend({_doReset:e(function(){this._hash=new c.init([1732584193,4023233417,2562383102,271733878])},"_doReset"),_doProcessBlock:e(function(L,W){for(var O=0;O<16;O++){var w=W+O,M=L[w];L[w]=(M<<8|M>>>24)&16711935|(M<<24|M>>>8)&4278255360}var J=this._hash.words,Z=L[W+0],Q=L[W+1],me=L[W+2],be=L[W+3],he=L[W+4],_e=L[W+5],He=L[W+6],et=L[W+7],ut=L[W+8],ft=L[W+9],Wt=L[W+10],En=L[W+11],fn=L[W+12],Gt=L[W+13],Kt=L[W+14],wt=L[W+15],Xt=J[0],yt=J[1],Nn=J[2],kn=J[3];Xt=S(Xt,yt,Nn,kn,Z,7,g[0]),kn=S(kn,Xt,yt,Nn,Q,12,g[1]),Nn=S(Nn,kn,Xt,yt,me,17,g[2]),yt=S(yt,Nn,kn,Xt,be,22,g[3]),Xt=S(Xt,yt,Nn,kn,he,7,g[4]),kn=S(kn,Xt,yt,Nn,_e,12,g[5]),Nn=S(Nn,kn,Xt,yt,He,17,g[6]),yt=S(yt,Nn,kn,Xt,et,22,g[7]),Xt=S(Xt,yt,Nn,kn,ut,7,g[8]),kn=S(kn,Xt,yt,Nn,ft,12,g[9]),Nn=S(Nn,kn,Xt,yt,Wt,17,g[10]),yt=S(yt,Nn,kn,Xt,En,22,g[11]),Xt=S(Xt,yt,Nn,kn,fn,7,g[12]),kn=S(kn,Xt,yt,Nn,Gt,12,g[13]),Nn=S(Nn,kn,Xt,yt,Kt,17,g[14]),yt=S(yt,Nn,kn,Xt,wt,22,g[15]),Xt=E(Xt,yt,Nn,kn,Q,5,g[16]),kn=E(kn,Xt,yt,Nn,He,9,g[17]),Nn=E(Nn,kn,Xt,yt,En,14,g[18]),yt=E(yt,Nn,kn,Xt,Z,20,g[19]),Xt=E(Xt,yt,Nn,kn,_e,5,g[20]),kn=E(kn,Xt,yt,Nn,Wt,9,g[21]),Nn=E(Nn,kn,Xt,yt,wt,14,g[22]),yt=E(yt,Nn,kn,Xt,he,20,g[23]),Xt=E(Xt,yt,Nn,kn,ft,5,g[24]),kn=E(kn,Xt,yt,Nn,Kt,9,g[25]),Nn=E(Nn,kn,Xt,yt,be,14,g[26]),yt=E(yt,Nn,kn,Xt,ut,20,g[27]),Xt=E(Xt,yt,Nn,kn,Gt,5,g[28]),kn=E(kn,Xt,yt,Nn,me,9,g[29]),Nn=E(Nn,kn,Xt,yt,et,14,g[30]),yt=E(yt,Nn,kn,Xt,fn,20,g[31]),Xt=A(Xt,yt,Nn,kn,_e,4,g[32]),kn=A(kn,Xt,yt,Nn,ut,11,g[33]),Nn=A(Nn,kn,Xt,yt,En,16,g[34]),yt=A(yt,Nn,kn,Xt,Kt,23,g[35]),Xt=A(Xt,yt,Nn,kn,Q,4,g[36]),kn=A(kn,Xt,yt,Nn,he,11,g[37]),Nn=A(Nn,kn,Xt,yt,et,16,g[38]),yt=A(yt,Nn,kn,Xt,Wt,23,g[39]),Xt=A(Xt,yt,Nn,kn,Gt,4,g[40]),kn=A(kn,Xt,yt,Nn,Z,11,g[41]),Nn=A(Nn,kn,Xt,yt,be,16,g[42]),yt=A(yt,Nn,kn,Xt,He,23,g[43]),Xt=A(Xt,yt,Nn,kn,ft,4,g[44]),kn=A(kn,Xt,yt,Nn,fn,11,g[45]),Nn=A(Nn,kn,Xt,yt,wt,16,g[46]),yt=A(yt,Nn,kn,Xt,me,23,g[47]),Xt=C(Xt,yt,Nn,kn,Z,6,g[48]),kn=C(kn,Xt,yt,Nn,et,10,g[49]),Nn=C(Nn,kn,Xt,yt,Kt,15,g[50]),yt=C(yt,Nn,kn,Xt,_e,21,g[51]),Xt=C(Xt,yt,Nn,kn,fn,6,g[52]),kn=C(kn,Xt,yt,Nn,be,10,g[53]),Nn=C(Nn,kn,Xt,yt,Wt,15,g[54]),yt=C(yt,Nn,kn,Xt,Q,21,g[55]),Xt=C(Xt,yt,Nn,kn,ut,6,g[56]),kn=C(kn,Xt,yt,Nn,wt,10,g[57]),Nn=C(Nn,kn,Xt,yt,He,15,g[58]),yt=C(yt,Nn,kn,Xt,Gt,21,g[59]),Xt=C(Xt,yt,Nn,kn,he,6,g[60]),kn=C(kn,Xt,yt,Nn,En,10,g[61]),Nn=C(Nn,kn,Xt,yt,me,15,g[62]),yt=C(yt,Nn,kn,Xt,ft,21,g[63]),J[0]=J[0]+Xt|0,J[1]=J[1]+yt|0,J[2]=J[2]+Nn|0,J[3]=J[3]+kn|0},"_doProcessBlock"),_doFinalize:e(function(){var L=this._data,W=L.words,O=this._nDataBytes*8,w=L.sigBytes*8;W[w>>>5]|=128<<24-w%32;var M=t.floor(O/4294967296),J=O;W[(w+64>>>9<<4)+15]=(M<<8|M>>>24)&16711935|(M<<24|M>>>8)&4278255360,W[(w+64>>>9<<4)+14]=(J<<8|J>>>24)&16711935|(J<<24|J>>>8)&4278255360,L.sigBytes=(W.length+1)*4,this._process();for(var Z=this._hash,Q=Z.words,me=0;me<4;me++){var be=Q[me];Q[me]=(be<<8|be>>>24)&16711935|(be<<24|be>>>8)&4278255360}return Z},"_doFinalize"),clone:e(function(){var L=d.clone.call(this);return L._hash=this._hash.clone(),L},"clone")});function S(L,W,O,w,M,J,Z){var Q=L+(W&O|~W&w)+M+Z;return(Q<<J|Q>>>32-J)+W}e(S,"FF");function E(L,W,O,w,M,J,Z){var Q=L+(W&w|O&~w)+M+Z;return(Q<<J|Q>>>32-J)+W}e(E,"GG");function A(L,W,O,w,M,J,Z){var Q=L+(W^O^w)+M+Z;return(Q<<J|Q>>>32-J)+W}e(A,"HH");function C(L,W,O,w,M,J,Z){var Q=L+(O^(W|~w))+M+Z;return(Q<<J|Q>>>32-J)+W}e(C,"II"),i.MD5=d._createHelper(v),i.HmacMD5=d._createHmacHelper(v)}(Math),r.MD5})});var Bbe=Je(k8=>{"use strict";V();G();U();z();var sei=k8&&k8.__createBinding||(Object.create?function(r,t,i,a){a===void 0&&(a=i);var c=Object.getOwnPropertyDescriptor(t,i);(!c||("get"in c?!t.__esModule:c.writable||c.configurable))&&(c={enumerable:!0,get:e(function(){return t[i]},"get")}),Object.defineProperty(r,a,c)}:function(r,t,i,a){a===void 0&&(a=i),r[a]=t[i]}),lei=k8&&k8.__setModuleDefault||(Object.create?function(r,t){Object.defineProperty(r,"default",{enumerable:!0,value:t})}:function(r,t){r.default=t}),cei=k8&&k8.__importStar||function(r){if(r&&r.__esModule)return r;var t={};if(r!=null)for(var i in r)i!=="default"&&Object.prototype.hasOwnProperty.call(r,i)&&sei(t,r,i);return lei(t,r),t},uei=k8&&k8.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(k8,"__esModule",{value:!0});k8.Project=void 0;var K$=c$(),Cq=rje(),pu=Vs(),cp=cei(QSe()),HEt=qEt(),iIn=c$(),oIn=uei(rIn()),aIn=mne(),dei=[cp.ClaimsPlugin,cp.ApplicationMenuPlugin,cp.BusinessRulePlugin,cp.RolePlugin,cp.AclPlugin,cp.ClientScriptPlugin,cp.CrossScopePrivilegePlugin,cp.PropertyPlugin,cp.NowConfigPlugin,cp.PackageJsonPlugin,cp.ServerModulePlugin,cp.ViewPlugin,cp.UserPreferencePlugin,cp.ColumnPlugin,cp.TablePlugin,cp.ListPlugin,cp.UiPagePlugin,cp.UiActionPlugin,cp.ScriptIncludePlugin,cp.RestApiPlugin,cp.StaticContentPlugin,cp.ScriptActionPlugin,cp.UiPolicyPlugin,cp.TestPlugin,cp.NowAttachPlugin,cp.SLAPlugin,cp.EmailNotificationPlugin,cp.UxListMenuConfigPlugin,cp.WorkspacePlugin,cp.DashboardPlugin,cp.ApplicabilityPlugin,cp.VariableSetPlugin,cp.CatalogItemRecordProducerPlugin,cp.CatalogItemPlugin,cp.CatalogClientScriptPlugin,cp.CatalogUiPolicyPlugin,cp.SPWidgetPlugin,cp.SPWidgetDependencyPlugin,cp.SPAngularProviderPlugin,cp.WfaDataPillPlugin,cp.FlowDefinitionPlugin,cp.InlineScriptPlugin,cp.ApprovalRulesPlugin,cp.ActionDefinitionPlugin,cp.TriggerPlugin,cp.FlowDiagnosticsPlugin,cp.RecordPlugin,cp.NowIncludePlugin,cp.NowRefPlugin,cp.NowIdPlugin,cp.NowUnresolvedPlugin,cp.HtmlImportPlugin,cp.JsonPlugin,cp.ArrowFunctionPlugin,cp.DataPlugin,cp.CallExpressionPlugin,cp.BasicSyntaxPlugin,cp.ImportSetPlugin];function sIn(r){switch(pu.path.extname(r)){case".ts":return pu.ts.ScriptKind.TS;case".js":return pu.ts.ScriptKind.JS;case".json":return pu.ts.ScriptKind.JSON;default:return pu.ts.ScriptKind.Unknown}}e(sIn,"getScriptKindFromPath");function pei(r,t){let i=pu.path.basename(r);return i===`sys_app_${t}.xml`||i===`sys_store_app_${t}.xml`}e(pei,"isSysAppXml");var JEt=class r{static{e(this,"Project")}rootDir;files={};filesForDeletion=new Set;plugins;fileSystem;logger;compiler;config;package;keys;diagnostics;transformService;factory;parser;inspector;committer;targeter;context;telemetryClient;pluginUsageTracker=new pu.PluginUsageTracker;transformMode;constructor({fileSystem:t=QO(),logger:i=(0,pu.createConsoleLogger)(),rootDir:a=Se&&"cwd"in Se?pu.path.normalize(Se.cwd()):"/",sourceFilePaths:c=[],compilerOptions:d=pu.DEFAULT_COMPILER_OPTIONS,compiler:f=new pu.Compiler(t,{rootDir:a,compilerOptions:{...pu.DEFAULT_COMPILER_OPTIONS,...d},sourceFilePaths:c,typesDir:pu.path.join("@types","servicenow")}),plugins:g=dei,config:v,packageJson:S=(0,K$.createPackageJson)({rootDir:a,compiler:f,fileSystem:t}),keys:E,diagnostics:A=new Cq.Diagnostics,transform:C,factory:L,parser:W,inspector:O,committer:w,targeter:M,telemetryClient:J,transformMode:Z}={}){if(!pu.path.isAbsolute(a))throw new Error(`Supplied root directory '${a}' is not an absolute path`);this.rootDir=a,this.plugins=g instanceof pu.Plugins?g:new pu.Plugins(g),this.fileSystem=t,this.logger=i,this.compiler=f,this.config=v?pu.NowConfig.create(v):pu.NowConfig.load({rootDir:a,compiler:f,fileSystem:t,logger:i}),this.package=S,this.keys=E??new Cq.Keys(this),this.diagnostics=A,this.transformService=C??new Cq.MultiProjectTransform(this,this.pluginUsageTracker),this.factory=L??new Cq.Factory(this),this.inspector=O??new Cq.Inspector(this),this.committer=w??new Cq.Committer(this),this.targeter=M??new Cq.Targeter(this),this.parser=W??new Cq.Parser(this),this.context={project:this,fs:this.fileSystem,logger:this.logger,compiler:this.compiler,diagnostics:this.diagnostics,config:this.config,packageJson:this.package,plugins:this.plugins,keys:this.keys,transform:this.transformService,factory:this.factory,parser:this.parser,inspect:this.inspector.inspect.bind(this.inspector),commit:this.committer.commit.bind(this.committer)},this.telemetryClient=J??pu.TelemetryFactory.create(),this.transformMode=Z??"transform";let Q=pu.path.resolve(a,this.config.fluentDir),me=pu.NowConfig.getFilePath(a),be=(0,K$.getPackageJsonFilePath)(a),he=pu.path.resolve(a,this.config.metadataDir);pu.FileSystem.existsSync(this.fileSystem,he)&&this.addDirectory(he,!1);let _e=pu.path.resolve(a,this.config.staticContentDir);if(pu.FileSystem.existsSync(this.fileSystem,_e)&&this.addDirectory(_e,!1),Se&&"env"in Se){let He=Se.env.FLUENT_INJECT_PLUGINS;if(He){let{createRequire:et}=(Bot(),nd(Fot)),ut=et(this.resolvePath("package.json"));for(let ft of He.split(",").map(Wt=>Wt.trim())){if(!ft)continue;let Wt=[ut(ft)].flat();for(let{default:En}of Wt)En&&typeof En=="object"&&!Array.isArray(En)&&En.constructor.name==="Plugin"?this.plugins.prepend(En):i.error(`Value from injected package "${ft}" is not a plugin: ${En} (${typeof En})`)}}}this.registerFiles([this.keys.getSourceFile(),this.compiler.addSourceFileAtPathIfExists(me)??this.compiler.createSourceFile(me,JSON.stringify({scope:this.config.scope,scopeId:this.config.scopeId},null,4),{overwrite:!0,scriptKind:pu.ts.ScriptKind.JSON}),this.compiler.addSourceFileAtPathIfExists(be)??this.compiler.createSourceFile(be,JSON.stringify(S,null,4),{overwrite:!0,scriptKind:pu.ts.ScriptKind.JSON}),...this.compiler.addFluentSourceFilesFromDirectory(Q),...this.compiler.addSourceFilesFromDirectory(this.resolvePath(this.config.serverModulesDir),this.config.serverModulesIncludePatterns,this.config.serverModulesExcludePatterns)]),this.registerClaimsFile()}registerClaimsFile(){let t=this.compiler.addSourceFileAtPathIfExists(this.resolvePath(this.config.generatedDir,cp.CLAIMS_FILE));t&&((0,pu.validateClaimsFile)(t.getFullText()),this.registerFiles([t],!1))}registerFiles(t,i=KEt()){t.forEach(a=>{let c=a instanceof pu.ts.SourceFile?a.getFilePath():a.path,d=this.files[c];d?d.reload(!1):this.files[c]=new HEt.ProjectFile(a,this)}),i&&this.compiler.resolveSourceFileDependencies()}async getDocsMetadata(){let t=this.plugins.getDocsMetadata(),i={},a=await cp.resolveModule("@servicenow/sdk/package.json",this.logger,this.fileSystem,this.rootDir);if(!a)return this.logger.warn("Could not find @servicenow/sdk installation, unable to resolve doc paths"),i;let c=pu.path.dirname(a);for(let[d,f]of Object.entries(t)){let g=await cp.resolveModule(f.docPath,this.logger,this.fileSystem,c);g?i[d]={docPath:g,tags:f.tags}:this.logger.warn(`Could not resolve doc path for ${d}: ${f.docPath}`)}return i}getContext(){return this.context}getTelemetryClient(){return this.telemetryClient}getPlugins(){return this.plugins}getFileSystem(){return this.fileSystem}getLogger(){return this.logger}getDiagnosticsService(){return this.diagnostics}getCompiler(){return this.compiler}getKeys(){return this.keys}getConfig(){return this.config}getPackage(){return this.package}getTransform(){return this.transformService}getFactory(){return this.factory}getFiles(){return Object.values(this.files)}async getEntryPoints(){let t=this.getContext(),i=[];for(let a of this.getFiles())(a.isInMetadataDir()&&!a.isInUiHtmlContentDir()||await this.plugins.isEntryPoint(a.getPath(),t))&&i.push(a);return i}getFileIfExists(t){let i=this.resolvePath(t);return this.files[i]}getFile(t){let i=this.getFileIfExists(t);if(i)return i;throw new Error(`No file found at path: ${this.resolvePath(t)}`)}findFile(t){return typeof t=="string"?Object.entries(this.files).find(([i])=>pu.path.basename(i)===t)?.[1]:Object.values(this.files).find(t)}reloadFile(t,i=!0){let a=this.resolvePath(t),c;return a in this.files?(c=this.getFile(t),c.reload(i)):c=this.addFile(a),c}reloadDirectory(t,i=!0){let a=this.resolvePath(t);this.checkDirectoryExists(a);let c=[],d=new Set;for(let f of Object.keys(this.files))this.resolvePath(f).startsWith(a)&&d.add(f);(0,K$.traverseDirectory)(this.fileSystem,a,{visitor:(f=>{d.delete(f),c.push(this.reloadFile(f,i))}).bind(this)});for(let f of d)this.removeFile(f);return c}addFile(t,i){return this.addFiles(typeof t=="string"?[t]:[t],i),this.getFile(typeof t=="string"?t:t.path)}addFiles(t,{resolveDependencies:i=KEt(),excludeFromCompiler:a=!1}={}){let d=t.reduce((f,g)=>{let{path:v,content:S}=typeof g=="string"?{path:g,content:void 0}:g,E=this.getFileIfExists(v);return E?S!==void 0&&E.setContent(S):f.push(g),f},[]).map(f=>{let{path:g,content:v}=typeof f=="string"?{path:f,content:void 0}:f,S=this.resolvePath(g),E=sIn(g),A;if(E===pu.ts.ScriptKind.Unknown||g.startsWith(pu.path.join(this.rootDir,this.config.staticContentDir))||a)if(v!==void 0)A={path:S,content:v};else if(pu.FileSystem.existsSync(this.fileSystem,S)){if(this.fileSystem.statSync(S).isDirectory())throw new Error(`Cannot add directory as file: ${S}`);A={path:S,content:this.fileSystem.readFileSync(S).toString("utf-8")}}else throw new Error(`No file found at path: ${S}`);else A=v===void 0?this.compiler.addSourceFileAtPath(S):this.compiler.createSourceFile(S,v,{overwrite:!0,scriptKind:sIn(g)});return S===(0,K$.getPackageJsonFilePath)(this.rootDir)?lIn(this.package,(0,K$.createPackageJson)({rootDir:this.rootDir,compiler:this.compiler,fileSystem:this.fileSystem})):S===pu.NowConfig.getFilePath(this.rootDir)&&lIn(this.config,pu.NowConfig.load({rootDir:this.rootDir,compiler:this.compiler,fileSystem:this.fileSystem,logger:this.logger})),A});return this.registerFiles(d,i),t.map(f=>this.getFile(typeof f=="string"?f:f.path))}checkDirectoryExists(t){if(!pu.FileSystem.existsSync(this.fileSystem,t))throw Error(`No directory found at path: ${t}`);if(!this.fileSystem.statSync(t).isDirectory())throw Error(`Expected directory but got file path: ${t}`)}addDirectory(t,i=KEt()){let a=this.resolvePath(t);this.checkDirectoryExists(a);let c=[];return(0,K$.traverseDirectory)(this.fileSystem,a,{visitor:(d=>{c.push(d)}).bind(this)}),this.addFiles(c,{resolveDependencies:i})}removeFile(t){let i=t instanceof HEt.ProjectFile?t:this.getFileIfExists(t);i&&(delete this.files[i.getPath()],i.remove())}async transform(t,{format:i=!0}={}){let a=Date.now();await this.getRecords();let c=Array.isArray(t)?t:[t],d=[],f=[];for(let _e of c)if(typeof _e=="string"){let He=this.resolvePath(_e),et=[];this.fileSystem.statSync(He).isDirectory()?(0,K$.traverseDirectory)(this.fileSystem,He,{extensions:[".xml"],visitor:e(ut=>et.push(ut),"visitor")}):et.push(He),d.push(...et.map(ut=>({path:ut,content:this.fileSystem.readFileSync(ut).toString("utf-8")})))}else _e instanceof pu.Shape?f.push(_e):d.push({path:this.resolvePath(_e.path),content:_e.content});let g=new pu.Database,v=new pu.Database,S=Date.now();for(let _e of await this.getEntryPoints())this.logger.debug(`Parsing records from existing file: ${_e.getPath()}`),(_e.isInMetadataDir()?v:g).insert(...await _e.getRecords(!1));this.logger.debug(`Finished parsing existing records in ${Date.now()-S}ms`);let E=new r({compiler:this.compiler,fileSystem:this.fileSystem,logger:this.logger,rootDir:this.rootDir,config:this.config,packageJson:this.package,plugins:this.plugins,keys:this.keys}),A=new pu.Database,C=Date.now(),L=new Set;for(let _e of d.map(He=>E.addFile(He))){let He=_e.getPath();this.logger.debug(`Parsing records from incoming file: ${He}`);let et=this.isInMetadataDir(He),ut,ft,Wt=await _e.getRecords(!1),En=Wt.query();if(_e.isUpdateSetXml()){let fn=[];for(let Kt of En)if(v.resolve(Kt.getId()))fn.push(Kt);else if(this.config.ignoreTransformTableList.includes(Kt.getTable()))fn.push(Kt);else{let Xt=await this.getAttachmentsForFields(Wt,Kt);A.insert(Kt.setCreator(void 0,!0).merge(Xt)),L.add(He)}(await(0,iIn.getOutput)(new pu.Database(fn),this.context)).forEach(Kt=>{this.handleMetadataCopy(new HEt.ProjectFile(Kt,this))})}else{for(let fn of En){let Gt=v.resolve(fn.getId());if(Gt){ut??=Gt;break}this.config.ignoreTransformTableList.includes(fn.getTable())&&(ft=fn)}if(!et&&ut)this.logger.debug(`Updating incoming ${ut.getTable()} record with ID ${ut.getId().getValue()} in metadata directory as XML`),this.handleMetadataCopy(_e,ut.getOriginalFilePath());else if(ft)this.logger.debug(`Incoming ${ft.getTable()} record with ID ${ft.getId().getValue()} is in "ignoreTransformTableList" configuration and moved to metadata directory as XML`),this.handleMetadataCopy(_e);else if(!et&&En.length===0)this.logger.info(`No records parsed from ${_e.getName()}, moving to metadata directory`),this.handleMetadataCopy(_e);else for(let fn of Wt){let Gt=await this.getAttachmentsForFields(Wt,fn);A.insert(fn.setCreator(void 0,!0).merge(Gt)),L.add(He)}}}let W=g.compare(A),O=new pu.DiffDatabase(g.query()),w=new pu.Database;for(let _e of["explicit","catch-all"])for(let He of this.plugins.toArray()){let et=await He.computeDiff({mode:_e,existing:g,incoming:A,context:this.getContext(),visitedRecords:w,mergedDatabase:W});O.insert(...et)}await this.getKeys().commit(),this.logger.debug(`Finished parsing incoming records in ${Date.now()-C}ms`);let M={};for(let _e of this.getFiles())M[_e.getPath()]=(0,oIn.default)(_e.getContent()).toString();let J=this.getContext(),Z=new pu.Database,Q=Date.now();for(let _e of[{mode:"explicit",creatorOnly:!0},{mode:"catch-all",creatorOnly:!0},{mode:"explicit",creatorOnly:!1},{mode:"catch-all",creatorOnly:!1}])for(let He of this.plugins.toArray()){let et=await He.recordsToShapes({..._e,database:O,context:J,handledRecords:Z,changedOnly:!0});et.success==="partial"&&et.unhandledRecords.length>0&&O.insert(...et.unhandledRecords),(et.success===!0||et.success==="partial")&&f.push(...et.value)}this.logger.debug(`Finished transforming records into shapes in ${Date.now()-Q}ms`);let me=[];this.isTypesGenerationMode()?me.push(...f.map(_e=>{if(_e.is(pu.CallExpressionShape)){let He=_e.getExportName();return He?new pu.VariableStatementShape({source:_e.getSource(),isExported:!0,variableName:He,initializer:_e}):_e}return _e})):me.push(...f);let be=Date.now();for(let _e of me.sort(He=>He.isUndefined()?-1:0)){let He=await this.targeter.getTarget(_e);He.success&&(this.logger.debug(`Committing shape: ${_e.getDescription()}`),await J.commit(_e,He.value))}this.logger.debug(`Finished committing shapes in ${Date.now()-be}ms`);let he=[];for(let _e of this.getFiles()){if(!M[_e.getPath()]){he.push(_e);continue}let He=M[_e.getPath()],et=(0,oIn.default)(_e.getContent()).toString();He!==et&&he.push(_e)}for(let _e of he)_e.fix(),i&&await _e.format(),_e.reload(!1);return this.logger.debug(`Transform completed in ${Date.now()-a}ms`),{changedFiles:he,handledPaths:[...L]}}registerExplicitId(t,i,a){return this.keys.registerExplicitId(t,i,a)}registerCoalesceId(t,i,a){return this.keys.registerCoalesceId(t,i,a)}async getOutput(t){this.pluginUsageTracker.clearPluginToRecordUsage();let i=await this.getOutput0(t),a=i.find(c=>pei(c.path,this.config.scopeId));if(a){let c=pu.NowConfig.moduleResolutionPath(this.config,this.package,!1,"package.json");fei(a,c,this.package.version,this.config)&&this.logger.warn(`Fixed package and version in sys_app output file: ${this.relativePath(a.path)}
31428
- This is likely due to a static sys_app XML file in the metadata directory. It is recommended to remove this file and allow the build system to generate one.`)}return this.telemetryClient.sendEvent(this.pluginUsageTracker.getRecordCountPerPlugin().map(c=>({name:"build.plugin",appInfo:{scopeId:this.config.scopeId},data:c}))),i}async getOutput0(t){this.pluginUsageTracker.clearPluginToRecordUsage();let i=await this.getRecords(t),a=new pu.Database(i.query().filter(f=>!this.isInMetadataDir(f.getOriginalFilePath()))),c=Object.fromEntries((await(0,iIn.getOutput)(a,this.getContext())).map(f=>[f.path,{source:f.source,content:f.content}])),d=this.copyMetadataRecords(c,i,t);return Object.entries(d).map(([f,g])=>({path:f,...g}))}copyMetadataRecords(t,i,a){if(!a){for(let f of this.getFiles().filter(g=>g.isInMetadataDir())){let g=this.config.type==="configuration"?f.getName():pu.path.relative(this.getMetadataDir(),f.getPath());t[this.resolvePath(this.config.appOutputDir,g)]={content:f.getContent()}}return t}return new pu.Database(i.query().filter(f=>this.isInMetadataDir(f.getOriginalFilePath()))).query().filter(f=>a.has(f.getId().getValue())).forEach(f=>{let g=pu.path.relative(this.getMetadataDir(),f.getOriginalFilePath());t[this.resolvePath(this.config.appOutputDir,g)]={content:f.getSource().content}}),t}async getRecords(t){this.pluginUsageTracker.clearPluginToRecordUsage();let i=[],a=this.config.type==="package"?(await this.getEntryPoints()).sort((w,M)=>(w.isInMetadataDir()?0:w.isInServerModulesDir()?1:2)-(M.isInMetadataDir()?0:M.isInServerModulesDir()?1:2)):(await this.getEntryPoints()).filter(w=>!w.isInServerModulesDir()).sort((w,M)=>(w.isInMetadataDir()?0:1)-(M.isInMetadataDir()?0:1));for(let w of a)for(let M of(await w.getRecordsNoDedupe(!1,t)).reverse())i.push(M);let c=a.filter(w=>pu.path.basename(w.getPath()).endsWith(pu.NOW_FILE_EXTENSION));for(let w of c)this.compiler.getDiagnosticsForFluentFile(w.getPath()).forEach(M=>{this.diagnostics.add(M)});this.diagnostics.getWarnings().forEach(w=>this.logger.warn(w.getFormattedText()));let f=this.diagnostics.getErrors();if(f.length>0)throw f.forEach(w=>this.logger.error(w.getFormattedText())),new Error(`Found ${f.length} diagnostic error(s) while building the project.`);let g=t||this.config.type==="configuration"?new pu.Database:this.generateRecordsFromDeletedKeys(),v=new WeakSet(g.query()),S=e((w,M)=>this.isInMetadataDir(w.getOriginalFilePath())&&w.isDeleted()&&v.has(M)||w.getOriginalSource()===M.getOriginalSource(),"isSelfConflicting"),E=e((w,M)=>this.isInMetadataDir(w.getOriginalFilePath())&&this.isInMetadataDir(M.getOriginalFilePath()),"isMetadataDirOnlyConflict"),A=e((w,M)=>w.getTable()==="sys_module"&&M.getTable()==="sys_module","isModuleConflict"),C={};for(let w of i.reverse()){let M=g.resolve(w.getId());M&&!S(w,M)&&!E(w,M)&&!A(w,M)&&(C[`${M.getTable()}.${M.getId().getValue()}`]??=[M]).push(w),g.insert(w)}for(let[w,M]of Object.entries(C))this.logger.warn(`Record "${w}" is defined ${M.length} times in the project:
31427
+ `)),t.getCompiler().getLanguageService().getCombinedCodeFix(r,"unusedIdentifier_deleteImports").applyChanges()}e(aei,"deleteUnusedCode")});var tIn=Je((oje,eIn)=>{V();G();U();z();(function(r,t){typeof oje=="object"?eIn.exports=oje=t():typeof define=="function"&&define.amd?define([],t):r.CryptoJS=t()})(oje,function(){var r=r||function(t,i){var a;if(typeof window<"u"&&window.crypto&&(a=window.crypto),typeof self<"u"&&self.crypto&&(a=self.crypto),typeof globalThis<"u"&&globalThis.crypto&&(a=globalThis.crypto),!a&&typeof window<"u"&&window.msCrypto&&(a=window.msCrypto),!a&&typeof globalThis<"u"&&globalThis.crypto&&(a=globalThis.crypto),!a&&typeof require=="function")try{a=Sot()}catch{}var c=e(function(){if(a){if(typeof a.getRandomValues=="function")try{return a.getRandomValues(new Uint32Array(1))[0]}catch{}if(typeof a.randomBytes=="function")try{return a.randomBytes(4).readInt32LE()}catch{}}throw new Error("Native crypto module could not be used to get secure random number.")},"cryptoSecureRandomInt"),d=Object.create||function(){function M(){}return e(M,"F"),function(J){var Z;return M.prototype=J,Z=new M,M.prototype=null,Z}}(),f={},g=f.lib={},v=g.Base=function(){return{extend:e(function(M){var J=d(this);return M&&J.mixIn(M),(!J.hasOwnProperty("init")||this.init===J.init)&&(J.init=function(){J.$super.init.apply(this,arguments)}),J.init.prototype=J,J.$super=this,J},"extend"),create:e(function(){var M=this.extend();return M.init.apply(M,arguments),M},"create"),init:e(function(){},"init"),mixIn:e(function(M){for(var J in M)M.hasOwnProperty(J)&&(this[J]=M[J]);M.hasOwnProperty("toString")&&(this.toString=M.toString)},"mixIn"),clone:e(function(){return this.init.prototype.extend(this)},"clone")}}(),S=g.WordArray=v.extend({init:e(function(M,J){M=this.words=M||[],J!=i?this.sigBytes=J:this.sigBytes=M.length*4},"init"),toString:e(function(M){return(M||A).stringify(this)},"toString"),concat:e(function(M){var J=this.words,Z=M.words,Q=this.sigBytes,me=M.sigBytes;if(this.clamp(),Q%4)for(var be=0;be<me;be++){var he=Z[be>>>2]>>>24-be%4*8&255;J[Q+be>>>2]|=he<<24-(Q+be)%4*8}else for(var _e=0;_e<me;_e+=4)J[Q+_e>>>2]=Z[_e>>>2];return this.sigBytes+=me,this},"concat"),clamp:e(function(){var M=this.words,J=this.sigBytes;M[J>>>2]&=4294967295<<32-J%4*8,M.length=t.ceil(J/4)},"clamp"),clone:e(function(){var M=v.clone.call(this);return M.words=this.words.slice(0),M},"clone"),random:e(function(M){for(var J=[],Z=0;Z<M;Z+=4)J.push(c());return new S.init(J,M)},"random")}),E=f.enc={},A=E.Hex={stringify:e(function(M){for(var J=M.words,Z=M.sigBytes,Q=[],me=0;me<Z;me++){var be=J[me>>>2]>>>24-me%4*8&255;Q.push((be>>>4).toString(16)),Q.push((be&15).toString(16))}return Q.join("")},"stringify"),parse:e(function(M){for(var J=M.length,Z=[],Q=0;Q<J;Q+=2)Z[Q>>>3]|=parseInt(M.substr(Q,2),16)<<24-Q%8*4;return new S.init(Z,J/2)},"parse")},C=E.Latin1={stringify:e(function(M){for(var J=M.words,Z=M.sigBytes,Q=[],me=0;me<Z;me++){var be=J[me>>>2]>>>24-me%4*8&255;Q.push(String.fromCharCode(be))}return Q.join("")},"stringify"),parse:e(function(M){for(var J=M.length,Z=[],Q=0;Q<J;Q++)Z[Q>>>2]|=(M.charCodeAt(Q)&255)<<24-Q%4*8;return new S.init(Z,J)},"parse")},L=E.Utf8={stringify:e(function(M){try{return decodeURIComponent(escape(C.stringify(M)))}catch{throw new Error("Malformed UTF-8 data")}},"stringify"),parse:e(function(M){return C.parse(unescape(encodeURIComponent(M)))},"parse")},W=g.BufferedBlockAlgorithm=v.extend({reset:e(function(){this._data=new S.init,this._nDataBytes=0},"reset"),_append:e(function(M){typeof M=="string"&&(M=L.parse(M)),this._data.concat(M),this._nDataBytes+=M.sigBytes},"_append"),_process:e(function(M){var J,Z=this._data,Q=Z.words,me=Z.sigBytes,be=this.blockSize,he=be*4,_e=me/he;M?_e=t.ceil(_e):_e=t.max((_e|0)-this._minBufferSize,0);var He=_e*be,et=t.min(He*4,me);if(He){for(var ut=0;ut<He;ut+=be)this._doProcessBlock(Q,ut);J=Q.splice(0,He),Z.sigBytes-=et}return new S.init(J,et)},"_process"),clone:e(function(){var M=v.clone.call(this);return M._data=this._data.clone(),M},"clone"),_minBufferSize:0}),O=g.Hasher=W.extend({cfg:v.extend(),init:e(function(M){this.cfg=this.cfg.extend(M),this.reset()},"init"),reset:e(function(){W.reset.call(this),this._doReset()},"reset"),update:e(function(M){return this._append(M),this._process(),this},"update"),finalize:e(function(M){M&&this._append(M);var J=this._doFinalize();return J},"finalize"),blockSize:512/32,_createHelper:e(function(M){return function(J,Z){return new M.init(Z).finalize(J)}},"_createHelper"),_createHmacHelper:e(function(M){return function(J,Z){return new w.HMAC.init(M,Z).finalize(J)}},"_createHmacHelper")}),w=f.algo={};return f}(Math);return r})});var rIn=Je((aje,nIn)=>{V();G();U();z();(function(r,t){typeof aje=="object"?nIn.exports=aje=t(tIn()):typeof define=="function"&&define.amd?define(["./core"],t):t(r.CryptoJS)})(aje,function(r){return function(t){var i=r,a=i.lib,c=a.WordArray,d=a.Hasher,f=i.algo,g=[];(function(){for(var L=0;L<64;L++)g[L]=t.abs(t.sin(L+1))*4294967296|0})();var v=f.MD5=d.extend({_doReset:e(function(){this._hash=new c.init([1732584193,4023233417,2562383102,271733878])},"_doReset"),_doProcessBlock:e(function(L,W){for(var O=0;O<16;O++){var w=W+O,M=L[w];L[w]=(M<<8|M>>>24)&16711935|(M<<24|M>>>8)&4278255360}var J=this._hash.words,Z=L[W+0],Q=L[W+1],me=L[W+2],be=L[W+3],he=L[W+4],_e=L[W+5],He=L[W+6],et=L[W+7],ut=L[W+8],ft=L[W+9],Wt=L[W+10],En=L[W+11],fn=L[W+12],Gt=L[W+13],Kt=L[W+14],wt=L[W+15],Xt=J[0],yt=J[1],Nn=J[2],kn=J[3];Xt=S(Xt,yt,Nn,kn,Z,7,g[0]),kn=S(kn,Xt,yt,Nn,Q,12,g[1]),Nn=S(Nn,kn,Xt,yt,me,17,g[2]),yt=S(yt,Nn,kn,Xt,be,22,g[3]),Xt=S(Xt,yt,Nn,kn,he,7,g[4]),kn=S(kn,Xt,yt,Nn,_e,12,g[5]),Nn=S(Nn,kn,Xt,yt,He,17,g[6]),yt=S(yt,Nn,kn,Xt,et,22,g[7]),Xt=S(Xt,yt,Nn,kn,ut,7,g[8]),kn=S(kn,Xt,yt,Nn,ft,12,g[9]),Nn=S(Nn,kn,Xt,yt,Wt,17,g[10]),yt=S(yt,Nn,kn,Xt,En,22,g[11]),Xt=S(Xt,yt,Nn,kn,fn,7,g[12]),kn=S(kn,Xt,yt,Nn,Gt,12,g[13]),Nn=S(Nn,kn,Xt,yt,Kt,17,g[14]),yt=S(yt,Nn,kn,Xt,wt,22,g[15]),Xt=E(Xt,yt,Nn,kn,Q,5,g[16]),kn=E(kn,Xt,yt,Nn,He,9,g[17]),Nn=E(Nn,kn,Xt,yt,En,14,g[18]),yt=E(yt,Nn,kn,Xt,Z,20,g[19]),Xt=E(Xt,yt,Nn,kn,_e,5,g[20]),kn=E(kn,Xt,yt,Nn,Wt,9,g[21]),Nn=E(Nn,kn,Xt,yt,wt,14,g[22]),yt=E(yt,Nn,kn,Xt,he,20,g[23]),Xt=E(Xt,yt,Nn,kn,ft,5,g[24]),kn=E(kn,Xt,yt,Nn,Kt,9,g[25]),Nn=E(Nn,kn,Xt,yt,be,14,g[26]),yt=E(yt,Nn,kn,Xt,ut,20,g[27]),Xt=E(Xt,yt,Nn,kn,Gt,5,g[28]),kn=E(kn,Xt,yt,Nn,me,9,g[29]),Nn=E(Nn,kn,Xt,yt,et,14,g[30]),yt=E(yt,Nn,kn,Xt,fn,20,g[31]),Xt=A(Xt,yt,Nn,kn,_e,4,g[32]),kn=A(kn,Xt,yt,Nn,ut,11,g[33]),Nn=A(Nn,kn,Xt,yt,En,16,g[34]),yt=A(yt,Nn,kn,Xt,Kt,23,g[35]),Xt=A(Xt,yt,Nn,kn,Q,4,g[36]),kn=A(kn,Xt,yt,Nn,he,11,g[37]),Nn=A(Nn,kn,Xt,yt,et,16,g[38]),yt=A(yt,Nn,kn,Xt,Wt,23,g[39]),Xt=A(Xt,yt,Nn,kn,Gt,4,g[40]),kn=A(kn,Xt,yt,Nn,Z,11,g[41]),Nn=A(Nn,kn,Xt,yt,be,16,g[42]),yt=A(yt,Nn,kn,Xt,He,23,g[43]),Xt=A(Xt,yt,Nn,kn,ft,4,g[44]),kn=A(kn,Xt,yt,Nn,fn,11,g[45]),Nn=A(Nn,kn,Xt,yt,wt,16,g[46]),yt=A(yt,Nn,kn,Xt,me,23,g[47]),Xt=C(Xt,yt,Nn,kn,Z,6,g[48]),kn=C(kn,Xt,yt,Nn,et,10,g[49]),Nn=C(Nn,kn,Xt,yt,Kt,15,g[50]),yt=C(yt,Nn,kn,Xt,_e,21,g[51]),Xt=C(Xt,yt,Nn,kn,fn,6,g[52]),kn=C(kn,Xt,yt,Nn,be,10,g[53]),Nn=C(Nn,kn,Xt,yt,Wt,15,g[54]),yt=C(yt,Nn,kn,Xt,Q,21,g[55]),Xt=C(Xt,yt,Nn,kn,ut,6,g[56]),kn=C(kn,Xt,yt,Nn,wt,10,g[57]),Nn=C(Nn,kn,Xt,yt,He,15,g[58]),yt=C(yt,Nn,kn,Xt,Gt,21,g[59]),Xt=C(Xt,yt,Nn,kn,he,6,g[60]),kn=C(kn,Xt,yt,Nn,En,10,g[61]),Nn=C(Nn,kn,Xt,yt,me,15,g[62]),yt=C(yt,Nn,kn,Xt,ft,21,g[63]),J[0]=J[0]+Xt|0,J[1]=J[1]+yt|0,J[2]=J[2]+Nn|0,J[3]=J[3]+kn|0},"_doProcessBlock"),_doFinalize:e(function(){var L=this._data,W=L.words,O=this._nDataBytes*8,w=L.sigBytes*8;W[w>>>5]|=128<<24-w%32;var M=t.floor(O/4294967296),J=O;W[(w+64>>>9<<4)+15]=(M<<8|M>>>24)&16711935|(M<<24|M>>>8)&4278255360,W[(w+64>>>9<<4)+14]=(J<<8|J>>>24)&16711935|(J<<24|J>>>8)&4278255360,L.sigBytes=(W.length+1)*4,this._process();for(var Z=this._hash,Q=Z.words,me=0;me<4;me++){var be=Q[me];Q[me]=(be<<8|be>>>24)&16711935|(be<<24|be>>>8)&4278255360}return Z},"_doFinalize"),clone:e(function(){var L=d.clone.call(this);return L._hash=this._hash.clone(),L},"clone")});function S(L,W,O,w,M,J,Z){var Q=L+(W&O|~W&w)+M+Z;return(Q<<J|Q>>>32-J)+W}e(S,"FF");function E(L,W,O,w,M,J,Z){var Q=L+(W&w|O&~w)+M+Z;return(Q<<J|Q>>>32-J)+W}e(E,"GG");function A(L,W,O,w,M,J,Z){var Q=L+(W^O^w)+M+Z;return(Q<<J|Q>>>32-J)+W}e(A,"HH");function C(L,W,O,w,M,J,Z){var Q=L+(O^(W|~w))+M+Z;return(Q<<J|Q>>>32-J)+W}e(C,"II"),i.MD5=d._createHelper(v),i.HmacMD5=d._createHmacHelper(v)}(Math),r.MD5})});var Bbe=Je(k8=>{"use strict";V();G();U();z();var sei=k8&&k8.__createBinding||(Object.create?function(r,t,i,a){a===void 0&&(a=i);var c=Object.getOwnPropertyDescriptor(t,i);(!c||("get"in c?!t.__esModule:c.writable||c.configurable))&&(c={enumerable:!0,get:e(function(){return t[i]},"get")}),Object.defineProperty(r,a,c)}:function(r,t,i,a){a===void 0&&(a=i),r[a]=t[i]}),lei=k8&&k8.__setModuleDefault||(Object.create?function(r,t){Object.defineProperty(r,"default",{enumerable:!0,value:t})}:function(r,t){r.default=t}),cei=k8&&k8.__importStar||function(r){if(r&&r.__esModule)return r;var t={};if(r!=null)for(var i in r)i!=="default"&&Object.prototype.hasOwnProperty.call(r,i)&&sei(t,r,i);return lei(t,r),t},uei=k8&&k8.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(k8,"__esModule",{value:!0});k8.Project=void 0;var K$=c$(),Cq=rje(),pu=Vs(),cp=cei(QSe()),HEt=qEt(),iIn=c$(),oIn=uei(rIn()),aIn=mne(),dei=[cp.ClaimsPlugin,cp.ApplicationMenuPlugin,cp.BusinessRulePlugin,cp.RolePlugin,cp.AclPlugin,cp.ClientScriptPlugin,cp.CrossScopePrivilegePlugin,cp.PropertyPlugin,cp.NowConfigPlugin,cp.PackageJsonPlugin,cp.ServerModulePlugin,cp.ViewPlugin,cp.UserPreferencePlugin,cp.ColumnPlugin,cp.TablePlugin,cp.ListPlugin,cp.UiPagePlugin,cp.UiActionPlugin,cp.ScriptIncludePlugin,cp.RestApiPlugin,cp.StaticContentPlugin,cp.ScriptActionPlugin,cp.UiPolicyPlugin,cp.TestPlugin,cp.NowAttachPlugin,cp.SLAPlugin,cp.EmailNotificationPlugin,cp.UxListMenuConfigPlugin,cp.WorkspacePlugin,cp.DashboardPlugin,cp.ApplicabilityPlugin,cp.VariableSetPlugin,cp.CatalogItemRecordProducerPlugin,cp.CatalogItemPlugin,cp.CatalogClientScriptPlugin,cp.CatalogUiPolicyPlugin,cp.SPWidgetPlugin,cp.SPWidgetDependencyPlugin,cp.SPAngularProviderPlugin,cp.WfaDataPillPlugin,cp.FlowDefinitionPlugin,cp.InlineScriptPlugin,cp.ApprovalRulesPlugin,cp.ActionDefinitionPlugin,cp.TriggerPlugin,cp.FlowDiagnosticsPlugin,cp.RecordPlugin,cp.NowIncludePlugin,cp.NowRefPlugin,cp.NowIdPlugin,cp.NowUnresolvedPlugin,cp.HtmlImportPlugin,cp.JsonPlugin,cp.ArrowFunctionPlugin,cp.DataPlugin,cp.CallExpressionPlugin,cp.BasicSyntaxPlugin,cp.ImportSetPlugin];function sIn(r){switch(pu.path.extname(r)){case".ts":return pu.ts.ScriptKind.TS;case".js":return pu.ts.ScriptKind.JS;case".json":return pu.ts.ScriptKind.JSON;default:return pu.ts.ScriptKind.Unknown}}e(sIn,"getScriptKindFromPath");function pei(r,t){let i=pu.path.basename(r);return i===`sys_app_${t}.xml`||i===`sys_store_app_${t}.xml`}e(pei,"isSysAppXml");var JEt=class r{static{e(this,"Project")}rootDir;files={};filesForDeletion=new Set;plugins;fileSystem;logger;compiler;config;package;keys;diagnostics;transformService;factory;parser;inspector;committer;targeter;context;telemetryClient;pluginUsageTracker=new pu.PluginUsageTracker;transformMode;constructor({fileSystem:t=QO(),logger:i=(0,pu.createConsoleLogger)(),rootDir:a=Se&&"cwd"in Se?pu.path.normalize(Se.cwd()):"/",sourceFilePaths:c=[],compilerOptions:d=pu.DEFAULT_COMPILER_OPTIONS,compiler:f=new pu.Compiler(t,{rootDir:a,compilerOptions:{...pu.DEFAULT_COMPILER_OPTIONS,...d},sourceFilePaths:c,typesDir:pu.path.join("@types","servicenow")}),plugins:g=dei,config:v,packageJson:S=(0,K$.createPackageJson)({rootDir:a,compiler:f,fileSystem:t}),keys:E,diagnostics:A=new Cq.Diagnostics,transform:C,factory:L,parser:W,inspector:O,committer:w,targeter:M,telemetryClient:J,transformMode:Z}={}){if(!pu.path.isAbsolute(a))throw new Error(`Supplied root directory '${a}' is not an absolute path`);this.rootDir=a,this.plugins=g instanceof pu.Plugins?g:new pu.Plugins(g),this.fileSystem=t,this.logger=i,this.compiler=f,this.config=v?pu.NowConfig.create(v):pu.NowConfig.load({rootDir:a,compiler:f,fileSystem:t,logger:i}),this.package=S,this.keys=E??new Cq.Keys(this),this.diagnostics=A,this.transformService=C??new Cq.MultiProjectTransform(this,this.pluginUsageTracker),this.factory=L??new Cq.Factory(this),this.inspector=O??new Cq.Inspector(this),this.committer=w??new Cq.Committer(this),this.targeter=M??new Cq.Targeter(this),this.parser=W??new Cq.Parser(this),this.context={project:this,fs:this.fileSystem,logger:this.logger,compiler:this.compiler,diagnostics:this.diagnostics,config:this.config,packageJson:this.package,plugins:this.plugins,keys:this.keys,transform:this.transformService,factory:this.factory,parser:this.parser,inspect:this.inspector.inspect.bind(this.inspector),commit:this.committer.commit.bind(this.committer)},this.telemetryClient=J??pu.TelemetryFactory.create(),this.transformMode=Z??"transform";let Q=pu.path.resolve(a,this.config.fluentDir),me=pu.NowConfig.getFilePath(a),be=(0,K$.getPackageJsonFilePath)(a),he=pu.path.resolve(a,this.config.metadataDir);pu.FileSystem.existsSync(this.fileSystem,he)&&this.addDirectory(he,!1);let _e=pu.path.resolve(a,this.config.staticContentDir);if(pu.FileSystem.existsSync(this.fileSystem,_e)&&this.addDirectory(_e,!1),Se&&"env"in Se){let He=Se.env.FLUENT_INJECT_PLUGINS;if(He){let{createRequire:et}=(Bot(),nd(Fot)),ut=et(this.resolvePath("package.json"));for(let ft of He.split(",").map(Wt=>Wt.trim())){if(!ft)continue;let Wt=[ut(ft)].flat();for(let{default:En}of Wt)En&&typeof En=="object"&&!Array.isArray(En)&&En.constructor.name==="Plugin"?this.plugins.prepend(En):i.error(`Value from injected package "${ft}" is not a plugin: ${En} (${typeof En})`)}}}this.registerFiles([this.keys.getSourceFile(),this.compiler.addSourceFileAtPathIfExists(me)??this.compiler.createSourceFile(me,JSON.stringify({scope:this.config.scope,scopeId:this.config.scopeId},null,4),{overwrite:!0,scriptKind:pu.ts.ScriptKind.JSON}),this.compiler.addSourceFileAtPathIfExists(be)??this.compiler.createSourceFile(be,JSON.stringify(S,null,4),{overwrite:!0,scriptKind:pu.ts.ScriptKind.JSON}),...this.compiler.addFluentSourceFilesFromDirectory(Q),...this.compiler.addSourceFilesFromDirectory(this.resolvePath(this.config.serverModulesDir),this.config.serverModulesIncludePatterns,this.config.serverModulesExcludePatterns)]),this.registerClaimsFile()}registerClaimsFile(){let t=this.compiler.addSourceFileAtPathIfExists(this.resolvePath(this.config.generatedDir,cp.CLAIMS_FILE));t&&((0,pu.validateClaimsFile)(t.getFullText()),this.registerFiles([t],!1))}registerFiles(t,i=KEt()){t.forEach(a=>{let c=a instanceof pu.ts.SourceFile?a.getFilePath():a.path,d=this.files[c];d?d.reload(!1):this.files[c]=new HEt.ProjectFile(a,this)}),i&&this.compiler.resolveSourceFileDependencies()}async getDocsMetadata(){let t=this.plugins.getDocsMetadata(),i={},a=await cp.resolveModule("@servicenow/sdk/package.json",this.logger,this.fileSystem,this.rootDir);if(!a)return this.logger.warn("Could not find @servicenow/sdk installation, unable to resolve doc paths"),i;let c=pu.path.dirname(a);for(let[d,f]of Object.entries(t)){let g=await cp.resolveModule(f.docPath,this.logger,this.fileSystem,c);g?i[d]={docPath:g,tags:f.tags}:this.logger.warn(`Could not resolve doc path for ${d}: ${f.docPath}`)}return i}getContext(){return this.context}getTelemetryClient(){return this.telemetryClient}getPlugins(){return this.plugins}getFileSystem(){return this.fileSystem}getLogger(){return this.logger}getDiagnosticsService(){return this.diagnostics}getCompiler(){return this.compiler}getKeys(){return this.keys}getConfig(){return this.config}getPackage(){return this.package}getTransform(){return this.transformService}getFactory(){return this.factory}getFiles(){return Object.values(this.files)}async getEntryPoints(){let t=this.getContext(),i=[];for(let a of this.getFiles())(a.isInMetadataDir()&&!a.isInUiHtmlContentDir()||await this.plugins.isEntryPoint(a.getPath(),t))&&i.push(a);return i}getFileIfExists(t){let i=this.resolvePath(t);return this.files[i]}getFile(t){let i=this.getFileIfExists(t);if(i)return i;throw new Error(`No file found at path: ${this.resolvePath(t)}`)}findFile(t){return typeof t=="string"?Object.entries(this.files).find(([i])=>pu.path.basename(i)===t)?.[1]:Object.values(this.files).find(t)}reloadFile(t,i=!0){let a=this.resolvePath(t),c;return a in this.files?(c=this.getFile(t),c.reload(i)):c=this.addFile(a),c}reloadDirectory(t,i=!0){let a=this.resolvePath(t);this.checkDirectoryExists(a);let c=[],d=new Set;for(let f of Object.keys(this.files))this.resolvePath(f).startsWith(a)&&d.add(f);(0,K$.traverseDirectory)(this.fileSystem,a,{visitor:(f=>{d.delete(f),c.push(this.reloadFile(f,i))}).bind(this)});for(let f of d)this.removeFile(f);return c}addFile(t,i){return this.addFiles(typeof t=="string"?[t]:[t],i),this.getFile(typeof t=="string"?t:t.path)}addFiles(t,{resolveDependencies:i=KEt(),excludeFromCompiler:a=!1}={}){let d=t.reduce((f,g)=>{let{path:v,content:S}=typeof g=="string"?{path:g,content:void 0}:g,E=this.getFileIfExists(v);return E?S!==void 0&&E.setContent(S):f.push(g),f},[]).map(f=>{let{path:g,content:v}=typeof f=="string"?{path:f,content:void 0}:f,S=this.resolvePath(g),E=sIn(g),A;if(E===pu.ts.ScriptKind.Unknown||g.startsWith(pu.path.join(this.rootDir,this.config.staticContentDir))||a)if(v!==void 0)A={path:S,content:v};else if(pu.FileSystem.existsSync(this.fileSystem,S)){if(this.fileSystem.statSync(S).isDirectory())throw new Error(`Cannot add directory as file: ${S}`);A={path:S,content:this.fileSystem.readFileSync(S).toString("utf-8")}}else throw new Error(`No file found at path: ${S}`);else A=v===void 0?this.compiler.addSourceFileAtPath(S):this.compiler.createSourceFile(S,v,{overwrite:!0,scriptKind:sIn(g)});return S===(0,K$.getPackageJsonFilePath)(this.rootDir)?lIn(this.package,(0,K$.createPackageJson)({rootDir:this.rootDir,compiler:this.compiler,fileSystem:this.fileSystem})):S===pu.NowConfig.getFilePath(this.rootDir)&&lIn(this.config,pu.NowConfig.load({rootDir:this.rootDir,compiler:this.compiler,fileSystem:this.fileSystem,logger:this.logger})),A});return this.registerFiles(d,i),t.map(f=>this.getFile(typeof f=="string"?f:f.path))}checkDirectoryExists(t){if(!pu.FileSystem.existsSync(this.fileSystem,t))throw Error(`No directory found at path: ${t}`);if(!this.fileSystem.statSync(t).isDirectory())throw Error(`Expected directory but got file path: ${t}`)}addDirectory(t,i=KEt()){let a=this.resolvePath(t);this.checkDirectoryExists(a);let c=[];return(0,K$.traverseDirectory)(this.fileSystem,a,{visitor:(d=>{c.push(d)}).bind(this)}),this.addFiles(c,{resolveDependencies:i})}removeFile(t){let i=t instanceof HEt.ProjectFile?t:this.getFileIfExists(t);i&&(delete this.files[i.getPath()],i.remove())}async transform(t,{format:i=!0}={}){let a=Date.now();await this.getRecords();let c=Array.isArray(t)?t:[t],d=[],f=[];for(let _e of c)if(typeof _e=="string"){let He=this.resolvePath(_e),et=[];this.fileSystem.statSync(He).isDirectory()?(0,K$.traverseDirectory)(this.fileSystem,He,{extensions:[".xml"],visitor:e(ut=>et.push(ut),"visitor")}):et.push(He),d.push(...et.map(ut=>({path:ut,content:this.fileSystem.readFileSync(ut).toString("utf-8")})))}else _e instanceof pu.Shape?f.push(_e):d.push({path:this.resolvePath(_e.path),content:_e.content});let g=new pu.Database,v=new pu.Database,S=Date.now();for(let _e of await this.getEntryPoints())this.logger.debug(`Parsing records from existing file: ${_e.getPath()}`),(_e.isInMetadataDir()?v:g).insert(...await _e.getRecords(!1));this.logger.debug(`Finished parsing existing records in ${Date.now()-S}ms`);let E=new r({compiler:this.compiler,fileSystem:this.fileSystem,logger:this.logger,rootDir:this.rootDir,config:this.config,packageJson:this.package,plugins:this.plugins,keys:this.keys}),A=new pu.Database,C=Date.now(),L=new Set;for(let _e of d.map(He=>E.addFile(He))){let He=_e.getPath();this.logger.debug(`Parsing records from incoming file: ${He}`);let et=this.isInMetadataDir(He),ut,ft,Wt=await _e.getRecords(!1),En=Wt.query();if(_e.isUpdateSetXml()){let fn=[];for(let Kt of En)if(v.resolve(Kt.getId()))fn.push(Kt);else if(this.config.ignoreTransformTableList.includes(Kt.getTable()))fn.push(Kt);else{let Xt=await this.getAttachmentsForFields(Wt,Kt);A.insert(Kt.setCreator(void 0,!0).merge(Xt)),L.add(He)}(await(0,iIn.getOutput)(new pu.Database(fn),this.context)).forEach(Kt=>{this.handleMetadataCopy(new HEt.ProjectFile(Kt,this))})}else{for(let fn of En){let Gt=v.resolve(fn.getId());if(Gt){ut??=Gt;break}this.config.ignoreTransformTableList.includes(fn.getTable())&&(ft=fn)}if(!et&&ut)this.logger.debug(`Updating incoming ${ut.getTable()} record with ID ${ut.getId().getValue()} in metadata directory as XML`),this.handleMetadataCopy(_e,ut.getOriginalFilePath());else if(ft)this.logger.debug(`Incoming ${ft.getTable()} record with ID ${ft.getId().getValue()} is in "ignoreTransformTableList" configuration and moved to metadata directory as XML`),this.handleMetadataCopy(_e);else if(!et&&En.length===0)this.logger.info(`No records parsed from ${_e.getName()}, moving to metadata directory`),this.handleMetadataCopy(_e);else for(let fn of Wt){let Gt=await this.getAttachmentsForFields(Wt,fn);A.insert(fn.setCreator(void 0,!0).merge(Gt)),L.add(He)}}}let W=g.compare(A),O=new pu.DiffDatabase(g.query()),w=new pu.Database;for(let _e of["explicit","catch-all"])for(let He of this.plugins.toArray()){let et=await He.computeDiff({mode:_e,existing:g,incoming:A,context:this.getContext(),visitedRecords:w,mergedDatabase:W});O.insert(...et)}await this.getKeys().commit(),this.logger.debug(`Finished parsing incoming records in ${Date.now()-C}ms`);let M={};for(let _e of this.getFiles())M[_e.getPath()]=(0,oIn.default)(_e.getContent()).toString();let J=this.getContext(),Z=new pu.Database,Q=Date.now();for(let _e of[{mode:"explicit",creatorOnly:!0},{mode:"catch-all",creatorOnly:!0},{mode:"explicit",creatorOnly:!1},{mode:"catch-all",creatorOnly:!1}])for(let He of this.plugins.toArray()){let et=await He.recordsToShapes({..._e,database:O,context:J,handledRecords:Z,changedOnly:!0});et.success==="partial"&&et.unhandledRecords.length>0&&O.insert(...et.unhandledRecords),(et.success===!0||et.success==="partial")&&f.push(...et.value)}this.logger.debug(`Finished transforming records into shapes in ${Date.now()-Q}ms`);let me=[];this.isTypesGenerationMode()?me.push(...f.map(_e=>{if(_e.is(pu.CallExpressionShape)){let He=_e.getExportName();return He?new pu.VariableStatementShape({source:_e.getSource(),isExported:!0,variableName:He,initializer:_e}):_e}return _e})):me.push(...f);let be=Date.now();for(let _e of me.sort(He=>He.isUndefined()?-1:0)){let He=await this.targeter.getTarget(_e);He.success&&(this.logger.debug(`Committing shape: ${_e.getDescription()}`),await J.commit(_e,He.value))}this.logger.debug(`Finished committing shapes in ${Date.now()-be}ms`);let he=[];for(let _e of this.getFiles()){if(!M[_e.getPath()]){he.push(_e);continue}let He=M[_e.getPath()],et=(0,oIn.default)(_e.getContent()).toString();He!==et&&he.push(_e)}for(let _e of he)_e.fix(),i&&await _e.format(),_e.reload(!1);return this.logger.debug(`Transform completed in ${Date.now()-a}ms`),{changedFiles:he,handledPaths:[...L]}}registerExplicitId(t,i,a){return this.keys.registerExplicitId(t,i,a)}registerCoalesceId(t,i,a){return this.keys.registerCoalesceId(t,i,a)}async getOutput(t){let i=await this.getOutput0(t),a=i.find(c=>pei(c.path,this.config.scopeId));if(a){let c=pu.NowConfig.moduleResolutionPath(this.config,this.package,!1,"package.json");fei(a,c,this.package.version,this.config)&&this.logger.warn(`Fixed package and version in sys_app output file: ${this.relativePath(a.path)}
31428
+ This is likely due to a static sys_app XML file in the metadata directory. It is recommended to remove this file and allow the build system to generate one.`)}return this.telemetryClient.sendEvent(this.pluginUsageTracker.getShapeCountPerPlugin().map(c=>({name:"build.plugin",appInfo:{scopeId:this.config.scopeId},data:c}))),i}async getOutput0(t){this.pluginUsageTracker.clearPluginShapeUsage();let i=await this.getRecords(t),a=new pu.Database(i.query().filter(f=>!this.isInMetadataDir(f.getOriginalFilePath()))),c=Object.fromEntries((await(0,iIn.getOutput)(a,this.getContext())).map(f=>[f.path,{source:f.source,content:f.content}])),d=this.copyMetadataRecords(c,i,t);return Object.entries(d).map(([f,g])=>({path:f,...g}))}copyMetadataRecords(t,i,a){if(!a){for(let f of this.getFiles().filter(g=>g.isInMetadataDir())){let g=this.config.type==="configuration"?f.getName():pu.path.relative(this.getMetadataDir(),f.getPath());t[this.resolvePath(this.config.appOutputDir,g)]={content:f.getContent(),originalPath:f.getPath()}}return t}return new pu.Database(i.query().filter(f=>this.isInMetadataDir(f.getOriginalFilePath()))).query().filter(f=>a.has(f.getId().getValue())).forEach(f=>{let g=pu.path.relative(this.getMetadataDir(),f.getOriginalFilePath());t[this.resolvePath(this.config.appOutputDir,g)]={content:f.getSource().content,originalPath:f.getSource().path}}),t}async getRecords(t){this.pluginUsageTracker.clearPluginShapeUsage();let i=[],a=this.config.type==="package"?(await this.getEntryPoints()).sort((w,M)=>(w.isInMetadataDir()?0:w.isInServerModulesDir()?1:2)-(M.isInMetadataDir()?0:M.isInServerModulesDir()?1:2)):(await this.getEntryPoints()).filter(w=>!w.isInServerModulesDir()).sort((w,M)=>(w.isInMetadataDir()?0:1)-(M.isInMetadataDir()?0:1));for(let w of a)for(let M of(await w.getRecordsNoDedupe(!1,t)).reverse())i.push(M);let c=a.filter(w=>pu.path.basename(w.getPath()).endsWith(pu.NOW_FILE_EXTENSION));for(let w of c)this.compiler.getDiagnosticsForFluentFile(w.getPath()).forEach(M=>{this.diagnostics.add(M)});this.diagnostics.getWarnings().forEach(w=>this.logger.warn(w.getFormattedText()));let f=this.diagnostics.getErrors();if(f.length>0)throw f.forEach(w=>this.logger.error(w.getFormattedText())),new Error(`Found ${f.length} diagnostic error(s) while building the project.`);let g=t||this.config.type==="configuration"?new pu.Database:this.generateRecordsFromDeletedKeys(),v=new WeakSet(g.query()),S=e((w,M)=>this.isInMetadataDir(w.getOriginalFilePath())&&w.isDeleted()&&v.has(M)||w.getOriginalSource()===M.getOriginalSource(),"isSelfConflicting"),E=e((w,M)=>this.isInMetadataDir(w.getOriginalFilePath())&&this.isInMetadataDir(M.getOriginalFilePath()),"isMetadataDirOnlyConflict"),A=e((w,M)=>w.getTable()==="sys_module"&&M.getTable()==="sys_module","isModuleConflict"),C={};for(let w of i.reverse()){let M=g.resolve(w.getId());M&&!S(w,M)&&!E(w,M)&&!A(w,M)&&(C[`${M.getTable()}.${M.getId().getValue()}`]??=[M]).push(w),g.insert(w)}for(let[w,M]of Object.entries(C))this.logger.warn(`Record "${w}" is defined ${M.length} times in the project:
31429
31429
  ${M.map((J,Z)=>{let Q=this.relativePath(J.getOriginalFilePath()),me=J.getOriginalSource(),be=J.isDeleted()?" (delete)":"",he=pu.ts.Node.isNode(me)?`:${me.getStartLineNumber(!1)}`:"";return`${Z+1}. ${Q}${he}${be}`}).join(`
31430
31430
  `)}`);let L=Object.keys(C).length;L>0&&this.logger.warn(`Total of ${L} conflicts found. The last entry from each conflict will take precedence.`);let W=new Map;g.query().forEach(w=>{let M=w.getId().getNowIdKey();M!==void 0&&w.getTable()!=="sys_module"&&W.set(M,[...W.get(M)??[],w])});let O=Array.from(W.entries()).filter(([w,M])=>M.length>1);if(O.length>0)throw O.forEach(([w,M])=>{this.logger.error(`Explicit key "${w}" is defined multiple times in the project:
31431
31431
  ${M.map((J,Z)=>{let Q=this.relativePath(J.getOriginalFilePath()),me=J.getOriginalSource(),be=pu.ts.Node.isNode(me)?`:${me.getStartLineNumber(!1)}`:"",he=J.getTable();return`${Z+1}. [${he}] ${Q}${be}`}).join(`
31432
- `)}`)}),new Error(`Found ${O.length} duplicate explicit key(s) in the project.`);return await this.getKeys().commit(),g}async getAttachmentsForFields(t,i){let a=await this.getTransform().getUpdateName(i);return Object.fromEntries(t.query("sys_attachment",{table_name:`ZZ_YY${i.getTable()}`,table_sys_id:i.getId().getValue()}).map(c=>[c.get("file_name").toString().getValue(),cp.NowAttachShape.fromAttachmentRecord(a,c,t.query("sys_attachment_doc",{sys_attachment:c.getId().getValue()}))]))}generateRecordsFromDeletedKeys(){let t=new pu.Database,i=this.getKeys().getSourceFile();for(let{table:a,id:c,key:d}of this.getKeys().getEffectiveDeletedKeys()){if(a==="sys_ui_view")continue;if(a==="sys_user_role"){let g=this.getConfig().scope,v=d?.name;if(v&&typeof v=="string"&&!v.startsWith(g))continue}let f=Object.fromEntries(Object.entries(d??{}).map(([g,v])=>[g,typeof v=="string"?v==="NULL"?void 0:v:new pu.RecordId({source:i,guid:v.id,table:g,keys:Object.fromEntries(Object.entries(v.key).map(([S,E])=>[S,typeof E=="string"?E:E.id]))})]));t.insert(new pu.Record({source:i,action:"DELETE",installCategory:"author_elective_update",properties:f,id:new pu.RecordId({source:i,table:a,guid:c})}))}return t}async getDiagnostics(){this.pluginUsageTracker.clearPluginToRecordUsage();let t=new Cq.Diagnostics,i=await this.getEntryPoints();i.sort((c,d)=>this.isInServerDir(c.getPath())?-1:1);for(let c of i)if(!c.isInMetadataDir())for(let d of await c.getDiagnostics())t.add(d);let a=i.filter(c=>pu.path.basename(c.getPath()).endsWith(pu.NOW_FILE_EXTENSION));for(let c of a)this.compiler.getDiagnosticsForFluentFile(c.getPath()).forEach(d=>{t.add(d)});return t.getAll()}isInDir(t,i){return!pu.path.relative(this.resolvePath(t),this.resolvePath(i)).startsWith("..")}getRootDir(){return this.rootDir}isInRootDir(t){return this.isInDir(this.getRootDir(),t)}getMetadataDir(){return this.resolvePath(this.config.metadataDir)}isInMetadataDir(t){return this.isInDir(this.getMetadataDir(),t)}isInUiHtmlContentDir(t){return this.isInDir(pu.path.join(this.getMetadataDir(),"ui.html"),t)}getSnDirName(t){let i=pu.path.basename(pu.path.dirname(t));return["update","author_elective_update","dictionary","scope","demo","unload","unload.demo","apply_once","if"].includes(i)?i:""}getFluentDir(){return this.resolvePath(this.config.fluentDir)}isInFluentDir(t){return this.isInDir(this.getFluentDir(),t)}getServerDir(){return this.resolvePath(this.config.serverModulesDir)}isInServerDir(t){return this.isInDir(this.getServerDir(),t)}resolvePath(...t){let i=pu.path.join(...t);return pu.path.isAbsolute(i)?pu.path.normalize(i):pu.path.resolve(this.rootDir,i)}relativePath(...t){return pu.path.relative(this.rootDir,this.resolvePath(...t))}dispose(){this.compiler.getLanguageService().compilerObject.dispose()}async fix(){return Promise.all(this.getFiles().map(t=>t.fix()))}async format(){let t=new pu.Formatter(this.fileSystem);return Promise.all(this.getFiles().map(i=>i.format(t)))}save(){this.getFiles().forEach(t=>t.save()),this.filesForDeletion.forEach(t=>this.fileSystem.rmSync(t,{force:!0}))}async saveOutput(t){let i=await this.getOutput(t);return i.forEach(a=>(0,K$.writeFileWithParentDirs)(this.fileSystem,a)),i}deleteFile(t){this.removeFile(t),this.filesForDeletion.add(t)}handleMetadataCopy(t,i){let a;return i&&t.getName()===pu.path.basename(i)?a=i:a=pu.path.join(this.getMetadataDir(),this.getSnDirName(t.getPath()),pu.path.basename(t.getPath())),this.addFile({content:t.getContent(),path:a})}isTypesGenerationMode(){return this.transformMode==="type-generation"}};k8.Project=JEt;function fei(r,t,i,a){let d=new aIn.XMLParser({ignoreAttributes:!1,ignoreDeclaration:!1}).parse(r.content),f=d.record_update.sys_app||d.record_update.sys_store_app,g=new aIn.XMLBuilder({format:!0,indentBy:" ",ignoreAttributes:!1,suppressEmptyNode:!0}),v=mei(f,t,i),S=_ei(f,a);return v||S?(r.content=g.build(d).replace(/(<\?xml[^>]*\?>)\s*/,"$1"),!0):!1}e(fei,"updateSysApp");function _ei(r,t){let i=pu.NowConfig.legacyPackageResolution(t);return r.package_resolver_version?!1:(r.package_resolver_version=i?pu.MODULE_RESOLUTION.V1:pu.MODULE_RESOLUTION.V2,!0)}e(_ei,"updateSysAppWithPackageResolverVersion");function mei(r,t,i){return r.version&&r.version===i&&r.package_json===t?!1:(r.package_json=t,i&&(r.version=i),!0)}e(mei,"updateSysAppWithPackageJsonPath");function lIn(r,t){for(let i in r)delete r[i];Object.assign(r,t)}e(lIn,"overwriteObject");function KEt(){let r=Se.env.FLUENT_RESOLVE_DEPENDENCIES;return r===void 0||r===""?!0:r!=="false"&&r!=="0"}e(KEt,"shouldResolveDependencies")});var UN=Je(SF=>{"use strict";V();G();U();z();SF.__esModule=!0;SF.extend=cIn;SF.indexOf=bei;SF.escapeExpression=Sei;SF.isEmpty=Eei;SF.createFrame=xei;SF.blockParams=Tei;SF.appendContextPath=Dei;var hei={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;","=":"&#x3D;"},gei=/[&<>"'`=]/g,yei=/[&<>"'`=]/;function vei(r){return hei[r]}e(vei,"escapeChar");function cIn(r){for(var t=1;t<arguments.length;t++)for(var i in arguments[t])Object.prototype.hasOwnProperty.call(arguments[t],i)&&(r[i]=arguments[t][i]);return r}e(cIn,"extend");var $Et=Object.prototype.toString;SF.toString=$Et;var XEt=e(function(t){return typeof t=="function"},"isFunction");XEt(/x/)&&(SF.isFunction=XEt=e(function(r){return typeof r=="function"&&$Et.call(r)==="[object Function]"},"isFunction"));SF.isFunction=XEt;var uIn=Array.isArray||function(r){return r&&typeof r=="object"?$Et.call(r)==="[object Array]":!1};SF.isArray=uIn;function bei(r,t){for(var i=0,a=r.length;i<a;i++)if(r[i]===t)return i;return-1}e(bei,"indexOf");function Sei(r){if(typeof r!="string"){if(r&&r.toHTML)return r.toHTML();if(r==null)return"";if(!r)return r+"";r=""+r}return yei.test(r)?r.replace(gei,vei):r}e(Sei,"escapeExpression");function Eei(r){return!r&&r!==0?!0:!!(uIn(r)&&r.length===0)}e(Eei,"isEmpty");function xei(r){var t=cIn({},r);return t._parent=r,t}e(xei,"createFrame");function Tei(r,t){return r.path=t,r}e(Tei,"blockParams");function Dei(r,t){return(r?r+".":"")+t}e(Dei,"appendContextPath")});var O8=Je((sje,dIn)=>{"use strict";V();G();U();z();sje.__esModule=!0;var YEt=["description","fileName","lineNumber","endLineNumber","message","name","number","stack"];function QEt(r,t){var i=t&&t.loc,a=void 0,c=void 0,d=void 0,f=void 0;i&&(a=i.start.line,c=i.end.line,d=i.start.column,f=i.end.column,r+=" - "+a+":"+d);for(var g=Error.prototype.constructor.call(this,r),v=0;v<YEt.length;v++)this[YEt[v]]=g[YEt[v]];Error.captureStackTrace&&Error.captureStackTrace(this,QEt);try{i&&(this.lineNumber=a,this.endLineNumber=c,Object.defineProperty?(Object.defineProperty(this,"column",{value:d,enumerable:!0}),Object.defineProperty(this,"endColumn",{value:f,enumerable:!0})):(this.column=d,this.endColumn=f))}catch{}}e(QEt,"Exception");QEt.prototype=new Error;sje.default=QEt;dIn.exports=sje.default});var fIn=Je((lje,pIn)=>{"use strict";V();G();U();z();lje.__esModule=!0;var ZEt=UN();lje.default=function(r){r.registerHelper("blockHelperMissing",function(t,i){var a=i.inverse,c=i.fn;if(t===!0)return c(this);if(t===!1||t==null)return a(this);if(ZEt.isArray(t))return t.length>0?(i.ids&&(i.ids=[i.name]),r.helpers.each(t,i)):a(this);if(i.data&&i.ids){var d=ZEt.createFrame(i.data);d.contextPath=ZEt.appendContextPath(i.data.contextPath,i.name),i={data:d}}return c(t,i)})};pIn.exports=lje.default});var mIn=Je((cje,_In)=>{"use strict";V();G();U();z();cje.__esModule=!0;function Aei(r){return r&&r.__esModule?r:{default:r}}e(Aei,"_interopRequireDefault");var e1e=UN(),Cei=O8(),Iei=Aei(Cei);cje.default=function(r){r.registerHelper("each",function(t,i){if(!i)throw new Iei.default("Must pass iterator to #each");var a=i.fn,c=i.inverse,d=0,f="",g=void 0,v=void 0;i.data&&i.ids&&(v=e1e.appendContextPath(i.data.contextPath,i.ids[0])+"."),e1e.isFunction(t)&&(t=t.call(this)),i.data&&(g=e1e.createFrame(i.data));function S(W,O,w){g&&(g.key=W,g.index=O,g.first=O===0,g.last=!!w,v&&(g.contextPath=v+W)),f=f+a(t[W],{data:g,blockParams:e1e.blockParams([t[W],W],[v+W,null])})}if(e(S,"execIteration"),t&&typeof t=="object")if(e1e.isArray(t))for(var E=t.length;d<E;d++)d in t&&S(d,d,d===t.length-1);else if(typeof Symbol=="function"&&t[Symbol.iterator]){for(var A=[],C=t[Symbol.iterator](),L=C.next();!L.done;L=C.next())A.push(L.value);t=A;for(var E=t.length;d<E;d++)S(d,d,d===t.length-1)}else(function(){var W=void 0;Object.keys(t).forEach(function(O){W!==void 0&&S(W,d-1),W=O,d++}),W!==void 0&&S(W,d-1,!0)})();return d===0&&(f=c(this)),f})};_In.exports=cje.default});var gIn=Je((uje,hIn)=>{"use strict";V();G();U();z();uje.__esModule=!0;function wei(r){return r&&r.__esModule?r:{default:r}}e(wei,"_interopRequireDefault");var Pei=O8(),Nei=wei(Pei);uje.default=function(r){r.registerHelper("helperMissing",function(){if(arguments.length!==1)throw new Nei.default('Missing helper: "'+arguments[arguments.length-1].name+'"')})};hIn.exports=uje.default});var SIn=Je((dje,bIn)=>{"use strict";V();G();U();z();dje.__esModule=!0;function Rei(r){return r&&r.__esModule?r:{default:r}}e(Rei,"_interopRequireDefault");var yIn=UN(),Lei=O8(),vIn=Rei(Lei);dje.default=function(r){r.registerHelper("if",function(t,i){if(arguments.length!=2)throw new vIn.default("#if requires exactly one argument");return yIn.isFunction(t)&&(t=t.call(this)),!i.hash.includeZero&&!t||yIn.isEmpty(t)?i.inverse(this):i.fn(this)}),r.registerHelper("unless",function(t,i){if(arguments.length!=2)throw new vIn.default("#unless requires exactly one argument");return r.helpers.if.call(this,t,{fn:i.inverse,inverse:i.fn,hash:i.hash})})};bIn.exports=dje.default});var xIn=Je((pje,EIn)=>{"use strict";V();G();U();z();pje.__esModule=!0;pje.default=function(r){r.registerHelper("log",function(){for(var t=[void 0],i=arguments[arguments.length-1],a=0;a<arguments.length-1;a++)t.push(arguments[a]);var c=1;i.hash.level!=null?c=i.hash.level:i.data&&i.data.level!=null&&(c=i.data.level),t[0]=c,r.log.apply(r,t)})};EIn.exports=pje.default});var DIn=Je((fje,TIn)=>{"use strict";V();G();U();z();fje.__esModule=!0;fje.default=function(r){r.registerHelper("lookup",function(t,i,a){return t&&a.lookupProperty(t,i)})};TIn.exports=fje.default});var CIn=Je((_je,AIn)=>{"use strict";V();G();U();z();_je.__esModule=!0;function Mei(r){return r&&r.__esModule?r:{default:r}}e(Mei,"_interopRequireDefault");var t1e=UN(),kei=O8(),Oei=Mei(kei);_je.default=function(r){r.registerHelper("with",function(t,i){if(arguments.length!=2)throw new Oei.default("#with requires exactly one argument");t1e.isFunction(t)&&(t=t.call(this));var a=i.fn;if(t1e.isEmpty(t))return i.inverse(this);var c=i.data;return i.data&&i.ids&&(c=t1e.createFrame(i.data),c.contextPath=t1e.appendContextPath(i.data.contextPath,i.ids[0])),a(t,{data:c,blockParams:t1e.blockParams([t],[c&&c.contextPath])})})};AIn.exports=_je.default});var ext=Je(mje=>{"use strict";V();G();U();z();mje.__esModule=!0;mje.registerDefaultHelpers=Yei;mje.moveHelperToHooks=Qei;function Kne(r){return r&&r.__esModule?r:{default:r}}e(Kne,"_interopRequireDefault");var Fei=fIn(),Bei=Kne(Fei),Wei=mIn(),jei=Kne(Wei),Vei=gIn(),zei=Kne(Vei),Uei=SIn(),Gei=Kne(Uei),qei=xIn(),Hei=Kne(qei),Kei=DIn(),Jei=Kne(Kei),Xei=CIn(),$ei=Kne(Xei);function Yei(r){Bei.default(r),jei.default(r),zei.default(r),Gei.default(r),Hei.default(r),Jei.default(r),$ei.default(r)}e(Yei,"registerDefaultHelpers");function Qei(r,t,i){r.helpers[t]&&(r.hooks[t]=r.helpers[t],i||delete r.helpers[t])}e(Qei,"moveHelperToHooks")});var wIn=Je((hje,IIn)=>{"use strict";V();G();U();z();hje.__esModule=!0;var Zei=UN();hje.default=function(r){r.registerDecorator("inline",function(t,i,a,c){var d=t;return i.partials||(i.partials={},d=e(function(f,g){var v=a.partials;a.partials=Zei.extend({},v,i.partials);var S=t(f,g);return a.partials=v,S},"ret")),i.partials[c.args[0]]=c.fn,d})};IIn.exports=hje.default});var PIn=Je(txt=>{"use strict";V();G();U();z();txt.__esModule=!0;txt.registerDefaultDecorators=rti;function eti(r){return r&&r.__esModule?r:{default:r}}e(eti,"_interopRequireDefault");var tti=wIn(),nti=eti(tti);function rti(r){nti.default(r)}e(rti,"registerDefaultDecorators")});var nxt=Je((gje,NIn)=>{"use strict";V();G();U();z();gje.__esModule=!0;var iti=UN(),Gde={methodMap:["debug","info","warn","error"],level:"info",lookupLevel:e(function(t){if(typeof t=="string"){var i=iti.indexOf(Gde.methodMap,t.toLowerCase());i>=0?t=i:t=parseInt(t,10)}return t},"lookupLevel"),log:e(function(t){if(t=Gde.lookupLevel(t),typeof console<"u"&&Gde.lookupLevel(Gde.level)<=t){var i=Gde.methodMap[t];console[i]||(i="log");for(var a=arguments.length,c=Array(a>1?a-1:0),d=1;d<a;d++)c[d-1]=arguments[d];console[i].apply(console,c)}},"log")};gje.default=Gde;NIn.exports=gje.default});var RIn=Je(rxt=>{"use strict";V();G();U();z();rxt.__esModule=!0;rxt.createNewLookupObject=ati;var oti=UN();function ati(){for(var r=arguments.length,t=Array(r),i=0;i<r;i++)t[i]=arguments[i];return oti.extend.apply(void 0,[Object.create(null)].concat(t))}e(ati,"createNewLookupObject")});var ixt=Je(n1e=>{"use strict";V();G();U();z();n1e.__esModule=!0;n1e.createProtoAccessControl=uti;n1e.resultIsAllowed=dti;n1e.resetLoggedProperties=fti;function sti(r){return r&&r.__esModule?r:{default:r}}e(sti,"_interopRequireDefault");var LIn=RIn(),lti=nxt(),cti=sti(lti),yje=Object.create(null);function uti(r){var t=Object.create(null);t.constructor=!1,t.__defineGetter__=!1,t.__defineSetter__=!1,t.__lookupGetter__=!1;var i=Object.create(null);return i.__proto__=!1,{properties:{whitelist:LIn.createNewLookupObject(i,r.allowedProtoProperties),defaultValue:r.allowProtoPropertiesByDefault},methods:{whitelist:LIn.createNewLookupObject(t,r.allowedProtoMethods),defaultValue:r.allowProtoMethodsByDefault}}}e(uti,"createProtoAccessControl");function dti(r,t,i){return MIn(typeof r=="function"?t.methods:t.properties,i)}e(dti,"resultIsAllowed");function MIn(r,t){return r.whitelist[t]!==void 0?r.whitelist[t]===!0:r.defaultValue!==void 0?r.defaultValue:(pti(t),!1)}e(MIn,"checkWhiteList");function pti(r){yje[r]!==!0&&(yje[r]=!0,cti.default.log("error",'Handlebars: Access has been denied to resolve the property "'+r+`" because it is not an "own property" of its parent.
31432
+ `)}`)}),new Error(`Found ${O.length} duplicate explicit key(s) in the project.`);return await this.getKeys().commit(),g}async getAttachmentsForFields(t,i){let a=await this.getTransform().getUpdateName(i);return Object.fromEntries(t.query("sys_attachment",{table_name:`ZZ_YY${i.getTable()}`,table_sys_id:i.getId().getValue()}).map(c=>[c.get("file_name").toString().getValue(),cp.NowAttachShape.fromAttachmentRecord(a,c,t.query("sys_attachment_doc",{sys_attachment:c.getId().getValue()}))]))}generateRecordsFromDeletedKeys(){let t=new pu.Database,i=this.getKeys().getSourceFile();for(let{table:a,id:c,key:d}of this.getKeys().getEffectiveDeletedKeys()){if(a==="sys_ui_view")continue;if(a==="sys_user_role"){let g=this.getConfig().scope,v=d?.name;if(v&&typeof v=="string"&&!v.startsWith(g))continue}let f=Object.fromEntries(Object.entries(d??{}).map(([g,v])=>[g,typeof v=="string"?v==="NULL"?void 0:v:new pu.RecordId({source:i,guid:v.id,table:g,keys:Object.fromEntries(Object.entries(v.key).map(([S,E])=>[S,typeof E=="string"?E:E.id]))})]));t.insert(new pu.Record({source:i,action:"DELETE",installCategory:"author_elective_update",properties:f,id:new pu.RecordId({source:i,table:a,guid:c})}))}return t}async getDiagnostics(){this.pluginUsageTracker.clearPluginShapeUsage();let t=new Cq.Diagnostics,i=await this.getEntryPoints();i.sort((c,d)=>this.isInServerDir(c.getPath())?-1:1);for(let c of i)if(!c.isInMetadataDir())for(let d of await c.getDiagnostics())t.add(d);let a=i.filter(c=>pu.path.basename(c.getPath()).endsWith(pu.NOW_FILE_EXTENSION));for(let c of a)this.compiler.getDiagnosticsForFluentFile(c.getPath()).forEach(d=>{t.add(d)});return t.getAll()}isInDir(t,i){return!pu.path.relative(this.resolvePath(t),this.resolvePath(i)).startsWith("..")}getRootDir(){return this.rootDir}isInRootDir(t){return this.isInDir(this.getRootDir(),t)}getMetadataDir(){return this.resolvePath(this.config.metadataDir)}isInMetadataDir(t){return this.isInDir(this.getMetadataDir(),t)}isInUiHtmlContentDir(t){return this.isInDir(pu.path.join(this.getMetadataDir(),"ui.html"),t)}getSnDirName(t){let i=pu.path.basename(pu.path.dirname(t));return["update","author_elective_update","dictionary","scope","demo","unload","unload.demo","apply_once","if"].includes(i)?i:""}getFluentDir(){return this.resolvePath(this.config.fluentDir)}isInFluentDir(t){return this.isInDir(this.getFluentDir(),t)}getServerDir(){return this.resolvePath(this.config.serverModulesDir)}isInServerDir(t){return this.isInDir(this.getServerDir(),t)}resolvePath(...t){let i=pu.path.join(...t);return pu.path.isAbsolute(i)?pu.path.normalize(i):pu.path.resolve(this.rootDir,i)}relativePath(...t){return pu.path.relative(this.rootDir,this.resolvePath(...t))}dispose(){this.compiler.getLanguageService().compilerObject.dispose()}async fix(){return Promise.all(this.getFiles().map(t=>t.fix()))}async format(){let t=new pu.Formatter(this.fileSystem);return Promise.all(this.getFiles().map(i=>i.format(t)))}save(){this.getFiles().forEach(t=>t.save()),this.filesForDeletion.forEach(t=>this.fileSystem.rmSync(t,{force:!0}))}async saveOutput(t){let i=await this.getOutput(t);return i.forEach(a=>(0,K$.writeFileWithParentDirs)(this.fileSystem,a)),i}deleteFile(t){this.removeFile(t),this.filesForDeletion.add(t)}handleMetadataCopy(t,i){let a;return i&&t.getName()===pu.path.basename(i)?a=i:a=pu.path.join(this.getMetadataDir(),this.getSnDirName(t.getPath()),pu.path.basename(t.getPath())),this.addFile({content:t.getContent(),path:a})}isTypesGenerationMode(){return this.transformMode==="type-generation"}};k8.Project=JEt;function fei(r,t,i,a){let d=new aIn.XMLParser({ignoreAttributes:!1,ignoreDeclaration:!1}).parse(r.content),f=d.record_update.sys_app||d.record_update.sys_store_app,g=new aIn.XMLBuilder({format:!0,indentBy:" ",ignoreAttributes:!1,suppressEmptyNode:!0}),v=mei(f,t,i),S=_ei(f,a);return v||S?(r.content=g.build(d).replace(/(<\?xml[^>]*\?>)\s*/,"$1"),!0):!1}e(fei,"updateSysApp");function _ei(r,t){let i=pu.NowConfig.legacyPackageResolution(t);return r.package_resolver_version?!1:(r.package_resolver_version=i?pu.MODULE_RESOLUTION.V1:pu.MODULE_RESOLUTION.V2,!0)}e(_ei,"updateSysAppWithPackageResolverVersion");function mei(r,t,i){return r.version&&r.version===i&&r.package_json===t?!1:(r.package_json=t,i&&(r.version=i),!0)}e(mei,"updateSysAppWithPackageJsonPath");function lIn(r,t){for(let i in r)delete r[i];Object.assign(r,t)}e(lIn,"overwriteObject");function KEt(){let r=Se.env.FLUENT_RESOLVE_DEPENDENCIES;return r===void 0||r===""?!0:r!=="false"&&r!=="0"}e(KEt,"shouldResolveDependencies")});var UN=Je(SF=>{"use strict";V();G();U();z();SF.__esModule=!0;SF.extend=cIn;SF.indexOf=bei;SF.escapeExpression=Sei;SF.isEmpty=Eei;SF.createFrame=xei;SF.blockParams=Tei;SF.appendContextPath=Dei;var hei={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;","=":"&#x3D;"},gei=/[&<>"'`=]/g,yei=/[&<>"'`=]/;function vei(r){return hei[r]}e(vei,"escapeChar");function cIn(r){for(var t=1;t<arguments.length;t++)for(var i in arguments[t])Object.prototype.hasOwnProperty.call(arguments[t],i)&&(r[i]=arguments[t][i]);return r}e(cIn,"extend");var $Et=Object.prototype.toString;SF.toString=$Et;var XEt=e(function(t){return typeof t=="function"},"isFunction");XEt(/x/)&&(SF.isFunction=XEt=e(function(r){return typeof r=="function"&&$Et.call(r)==="[object Function]"},"isFunction"));SF.isFunction=XEt;var uIn=Array.isArray||function(r){return r&&typeof r=="object"?$Et.call(r)==="[object Array]":!1};SF.isArray=uIn;function bei(r,t){for(var i=0,a=r.length;i<a;i++)if(r[i]===t)return i;return-1}e(bei,"indexOf");function Sei(r){if(typeof r!="string"){if(r&&r.toHTML)return r.toHTML();if(r==null)return"";if(!r)return r+"";r=""+r}return yei.test(r)?r.replace(gei,vei):r}e(Sei,"escapeExpression");function Eei(r){return!r&&r!==0?!0:!!(uIn(r)&&r.length===0)}e(Eei,"isEmpty");function xei(r){var t=cIn({},r);return t._parent=r,t}e(xei,"createFrame");function Tei(r,t){return r.path=t,r}e(Tei,"blockParams");function Dei(r,t){return(r?r+".":"")+t}e(Dei,"appendContextPath")});var O8=Je((sje,dIn)=>{"use strict";V();G();U();z();sje.__esModule=!0;var YEt=["description","fileName","lineNumber","endLineNumber","message","name","number","stack"];function QEt(r,t){var i=t&&t.loc,a=void 0,c=void 0,d=void 0,f=void 0;i&&(a=i.start.line,c=i.end.line,d=i.start.column,f=i.end.column,r+=" - "+a+":"+d);for(var g=Error.prototype.constructor.call(this,r),v=0;v<YEt.length;v++)this[YEt[v]]=g[YEt[v]];Error.captureStackTrace&&Error.captureStackTrace(this,QEt);try{i&&(this.lineNumber=a,this.endLineNumber=c,Object.defineProperty?(Object.defineProperty(this,"column",{value:d,enumerable:!0}),Object.defineProperty(this,"endColumn",{value:f,enumerable:!0})):(this.column=d,this.endColumn=f))}catch{}}e(QEt,"Exception");QEt.prototype=new Error;sje.default=QEt;dIn.exports=sje.default});var fIn=Je((lje,pIn)=>{"use strict";V();G();U();z();lje.__esModule=!0;var ZEt=UN();lje.default=function(r){r.registerHelper("blockHelperMissing",function(t,i){var a=i.inverse,c=i.fn;if(t===!0)return c(this);if(t===!1||t==null)return a(this);if(ZEt.isArray(t))return t.length>0?(i.ids&&(i.ids=[i.name]),r.helpers.each(t,i)):a(this);if(i.data&&i.ids){var d=ZEt.createFrame(i.data);d.contextPath=ZEt.appendContextPath(i.data.contextPath,i.name),i={data:d}}return c(t,i)})};pIn.exports=lje.default});var mIn=Je((cje,_In)=>{"use strict";V();G();U();z();cje.__esModule=!0;function Aei(r){return r&&r.__esModule?r:{default:r}}e(Aei,"_interopRequireDefault");var e1e=UN(),Cei=O8(),Iei=Aei(Cei);cje.default=function(r){r.registerHelper("each",function(t,i){if(!i)throw new Iei.default("Must pass iterator to #each");var a=i.fn,c=i.inverse,d=0,f="",g=void 0,v=void 0;i.data&&i.ids&&(v=e1e.appendContextPath(i.data.contextPath,i.ids[0])+"."),e1e.isFunction(t)&&(t=t.call(this)),i.data&&(g=e1e.createFrame(i.data));function S(W,O,w){g&&(g.key=W,g.index=O,g.first=O===0,g.last=!!w,v&&(g.contextPath=v+W)),f=f+a(t[W],{data:g,blockParams:e1e.blockParams([t[W],W],[v+W,null])})}if(e(S,"execIteration"),t&&typeof t=="object")if(e1e.isArray(t))for(var E=t.length;d<E;d++)d in t&&S(d,d,d===t.length-1);else if(typeof Symbol=="function"&&t[Symbol.iterator]){for(var A=[],C=t[Symbol.iterator](),L=C.next();!L.done;L=C.next())A.push(L.value);t=A;for(var E=t.length;d<E;d++)S(d,d,d===t.length-1)}else(function(){var W=void 0;Object.keys(t).forEach(function(O){W!==void 0&&S(W,d-1),W=O,d++}),W!==void 0&&S(W,d-1,!0)})();return d===0&&(f=c(this)),f})};_In.exports=cje.default});var gIn=Je((uje,hIn)=>{"use strict";V();G();U();z();uje.__esModule=!0;function wei(r){return r&&r.__esModule?r:{default:r}}e(wei,"_interopRequireDefault");var Pei=O8(),Nei=wei(Pei);uje.default=function(r){r.registerHelper("helperMissing",function(){if(arguments.length!==1)throw new Nei.default('Missing helper: "'+arguments[arguments.length-1].name+'"')})};hIn.exports=uje.default});var SIn=Je((dje,bIn)=>{"use strict";V();G();U();z();dje.__esModule=!0;function Rei(r){return r&&r.__esModule?r:{default:r}}e(Rei,"_interopRequireDefault");var yIn=UN(),Lei=O8(),vIn=Rei(Lei);dje.default=function(r){r.registerHelper("if",function(t,i){if(arguments.length!=2)throw new vIn.default("#if requires exactly one argument");return yIn.isFunction(t)&&(t=t.call(this)),!i.hash.includeZero&&!t||yIn.isEmpty(t)?i.inverse(this):i.fn(this)}),r.registerHelper("unless",function(t,i){if(arguments.length!=2)throw new vIn.default("#unless requires exactly one argument");return r.helpers.if.call(this,t,{fn:i.inverse,inverse:i.fn,hash:i.hash})})};bIn.exports=dje.default});var xIn=Je((pje,EIn)=>{"use strict";V();G();U();z();pje.__esModule=!0;pje.default=function(r){r.registerHelper("log",function(){for(var t=[void 0],i=arguments[arguments.length-1],a=0;a<arguments.length-1;a++)t.push(arguments[a]);var c=1;i.hash.level!=null?c=i.hash.level:i.data&&i.data.level!=null&&(c=i.data.level),t[0]=c,r.log.apply(r,t)})};EIn.exports=pje.default});var DIn=Je((fje,TIn)=>{"use strict";V();G();U();z();fje.__esModule=!0;fje.default=function(r){r.registerHelper("lookup",function(t,i,a){return t&&a.lookupProperty(t,i)})};TIn.exports=fje.default});var CIn=Je((_je,AIn)=>{"use strict";V();G();U();z();_je.__esModule=!0;function Mei(r){return r&&r.__esModule?r:{default:r}}e(Mei,"_interopRequireDefault");var t1e=UN(),kei=O8(),Oei=Mei(kei);_je.default=function(r){r.registerHelper("with",function(t,i){if(arguments.length!=2)throw new Oei.default("#with requires exactly one argument");t1e.isFunction(t)&&(t=t.call(this));var a=i.fn;if(t1e.isEmpty(t))return i.inverse(this);var c=i.data;return i.data&&i.ids&&(c=t1e.createFrame(i.data),c.contextPath=t1e.appendContextPath(i.data.contextPath,i.ids[0])),a(t,{data:c,blockParams:t1e.blockParams([t],[c&&c.contextPath])})})};AIn.exports=_je.default});var ext=Je(mje=>{"use strict";V();G();U();z();mje.__esModule=!0;mje.registerDefaultHelpers=Yei;mje.moveHelperToHooks=Qei;function Kne(r){return r&&r.__esModule?r:{default:r}}e(Kne,"_interopRequireDefault");var Fei=fIn(),Bei=Kne(Fei),Wei=mIn(),jei=Kne(Wei),Vei=gIn(),zei=Kne(Vei),Uei=SIn(),Gei=Kne(Uei),qei=xIn(),Hei=Kne(qei),Kei=DIn(),Jei=Kne(Kei),Xei=CIn(),$ei=Kne(Xei);function Yei(r){Bei.default(r),jei.default(r),zei.default(r),Gei.default(r),Hei.default(r),Jei.default(r),$ei.default(r)}e(Yei,"registerDefaultHelpers");function Qei(r,t,i){r.helpers[t]&&(r.hooks[t]=r.helpers[t],i||delete r.helpers[t])}e(Qei,"moveHelperToHooks")});var wIn=Je((hje,IIn)=>{"use strict";V();G();U();z();hje.__esModule=!0;var Zei=UN();hje.default=function(r){r.registerDecorator("inline",function(t,i,a,c){var d=t;return i.partials||(i.partials={},d=e(function(f,g){var v=a.partials;a.partials=Zei.extend({},v,i.partials);var S=t(f,g);return a.partials=v,S},"ret")),i.partials[c.args[0]]=c.fn,d})};IIn.exports=hje.default});var PIn=Je(txt=>{"use strict";V();G();U();z();txt.__esModule=!0;txt.registerDefaultDecorators=rti;function eti(r){return r&&r.__esModule?r:{default:r}}e(eti,"_interopRequireDefault");var tti=wIn(),nti=eti(tti);function rti(r){nti.default(r)}e(rti,"registerDefaultDecorators")});var nxt=Je((gje,NIn)=>{"use strict";V();G();U();z();gje.__esModule=!0;var iti=UN(),Gde={methodMap:["debug","info","warn","error"],level:"info",lookupLevel:e(function(t){if(typeof t=="string"){var i=iti.indexOf(Gde.methodMap,t.toLowerCase());i>=0?t=i:t=parseInt(t,10)}return t},"lookupLevel"),log:e(function(t){if(t=Gde.lookupLevel(t),typeof console<"u"&&Gde.lookupLevel(Gde.level)<=t){var i=Gde.methodMap[t];console[i]||(i="log");for(var a=arguments.length,c=Array(a>1?a-1:0),d=1;d<a;d++)c[d-1]=arguments[d];console[i].apply(console,c)}},"log")};gje.default=Gde;NIn.exports=gje.default});var RIn=Je(rxt=>{"use strict";V();G();U();z();rxt.__esModule=!0;rxt.createNewLookupObject=ati;var oti=UN();function ati(){for(var r=arguments.length,t=Array(r),i=0;i<r;i++)t[i]=arguments[i];return oti.extend.apply(void 0,[Object.create(null)].concat(t))}e(ati,"createNewLookupObject")});var ixt=Je(n1e=>{"use strict";V();G();U();z();n1e.__esModule=!0;n1e.createProtoAccessControl=uti;n1e.resultIsAllowed=dti;n1e.resetLoggedProperties=fti;function sti(r){return r&&r.__esModule?r:{default:r}}e(sti,"_interopRequireDefault");var LIn=RIn(),lti=nxt(),cti=sti(lti),yje=Object.create(null);function uti(r){var t=Object.create(null);t.constructor=!1,t.__defineGetter__=!1,t.__defineSetter__=!1,t.__lookupGetter__=!1;var i=Object.create(null);return i.__proto__=!1,{properties:{whitelist:LIn.createNewLookupObject(i,r.allowedProtoProperties),defaultValue:r.allowProtoPropertiesByDefault},methods:{whitelist:LIn.createNewLookupObject(t,r.allowedProtoMethods),defaultValue:r.allowProtoMethodsByDefault}}}e(uti,"createProtoAccessControl");function dti(r,t,i){return MIn(typeof r=="function"?t.methods:t.properties,i)}e(dti,"resultIsAllowed");function MIn(r,t){return r.whitelist[t]!==void 0?r.whitelist[t]===!0:r.defaultValue!==void 0?r.defaultValue:(pti(t),!1)}e(MIn,"checkWhiteList");function pti(r){yje[r]!==!0&&(yje[r]=!0,cti.default.log("error",'Handlebars: Access has been denied to resolve the property "'+r+`" because it is not an "own property" of its parent.
31433
31433
  You can add a runtime option to disable the check or this warning:
31434
31434
  See https://handlebarsjs.com/api-reference/runtime-options.html#options-to-control-prototype-access for details`))}e(pti,"logUnexpecedPropertyAccessOnce");function fti(){Object.keys(yje).forEach(function(r){delete yje[r]})}e(fti,"resetLoggedProperties")});var bje=Je(lV=>{"use strict";V();G();U();z();lV.__esModule=!0;lV.HandlebarsEnvironment=sxt;function kIn(r){return r&&r.__esModule?r:{default:r}}e(kIn,"_interopRequireDefault");var Jne=UN(),_ti=O8(),oxt=kIn(_ti),mti=ext(),hti=PIn(),gti=nxt(),vje=kIn(gti),yti=ixt(),vti="4.7.8";lV.VERSION=vti;var bti=8;lV.COMPILER_REVISION=bti;var Sti=7;lV.LAST_COMPATIBLE_COMPILER_REVISION=Sti;var Eti={1:"<= 1.0.rc.2",2:"== 1.0.0-rc.3",3:"== 1.0.0-rc.4",4:"== 1.x.x",5:"== 2.0.0-alpha.x",6:">= 2.0.0-beta.1",7:">= 4.0.0 <4.3.0",8:">= 4.3.0"};lV.REVISION_CHANGES=Eti;var axt="[object Object]";function sxt(r,t,i){this.helpers=r||{},this.partials=t||{},this.decorators=i||{},mti.registerDefaultHelpers(this),hti.registerDefaultDecorators(this)}e(sxt,"HandlebarsEnvironment");sxt.prototype={constructor:sxt,logger:vje.default,log:vje.default.log,registerHelper:e(function(t,i){if(Jne.toString.call(t)===axt){if(i)throw new oxt.default("Arg not supported with multiple helpers");Jne.extend(this.helpers,t)}else this.helpers[t]=i},"registerHelper"),unregisterHelper:e(function(t){delete this.helpers[t]},"unregisterHelper"),registerPartial:e(function(t,i){if(Jne.toString.call(t)===axt)Jne.extend(this.partials,t);else{if(typeof i>"u")throw new oxt.default('Attempting to register a partial called "'+t+'" as undefined');this.partials[t]=i}},"registerPartial"),unregisterPartial:e(function(t){delete this.partials[t]},"unregisterPartial"),registerDecorator:e(function(t,i){if(Jne.toString.call(t)===axt){if(i)throw new oxt.default("Arg not supported with multiple decorators");Jne.extend(this.decorators,t)}else this.decorators[t]=i},"registerDecorator"),unregisterDecorator:e(function(t){delete this.decorators[t]},"unregisterDecorator"),resetLoggedPropertyAccesses:e(function(){yti.resetLoggedProperties()},"resetLoggedPropertyAccesses")};var xti=vje.default.log;lV.log=xti;lV.createFrame=Jne.createFrame;lV.logger=vje.default});var FIn=Je((Sje,OIn)=>{"use strict";V();G();U();z();Sje.__esModule=!0;function lxt(r){this.string=r}e(lxt,"SafeString");lxt.prototype.toString=lxt.prototype.toHTML=function(){return""+this.string};Sje.default=lxt;OIn.exports=Sje.default});var BIn=Je(cxt=>{"use strict";V();G();U();z();cxt.__esModule=!0;cxt.wrapHelper=Tti;function Tti(r,t){if(typeof r!="function")return r;var i=e(function(){var c=arguments[arguments.length-1];return arguments[arguments.length-1]=t(c),r.apply(this,arguments)},"wrapper");return i}e(Tti,"wrapHelper")});var UIn=Je(J$=>{"use strict";V();G();U();z();J$.__esModule=!0;J$.checkRevision=Pti;J$.template=Nti;J$.wrapProgram=Eje;J$.resolvePartial=Rti;J$.invokePartial=Lti;J$.noop=VIn;function Dti(r){return r&&r.__esModule?r:{default:r}}e(Dti,"_interopRequireDefault");function Ati(r){if(r&&r.__esModule)return r;var t={};if(r!=null)for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i]);return t.default=r,t}e(Ati,"_interopRequireWildcard");var Cti=UN(),Iq=Ati(Cti),Iti=O8(),wq=Dti(Iti),Pq=bje(),WIn=ext(),wti=BIn(),jIn=ixt();function Pti(r){var t=r&&r[0]||1,i=Pq.COMPILER_REVISION;if(!(t>=Pq.LAST_COMPATIBLE_COMPILER_REVISION&&t<=Pq.COMPILER_REVISION))if(t<Pq.LAST_COMPATIBLE_COMPILER_REVISION){var a=Pq.REVISION_CHANGES[i],c=Pq.REVISION_CHANGES[t];throw new wq.default("Template was precompiled with an older version of Handlebars than the current runtime. Please update your precompiler to a newer version ("+a+") or downgrade your runtime to an older version ("+c+").")}else throw new wq.default("Template was precompiled with a newer version of Handlebars than the current runtime. Please update your runtime to a newer version ("+r[1]+").")}e(Pti,"checkRevision");function Nti(r,t){if(!t)throw new wq.default("No environment passed to template");if(!r||!r.main)throw new wq.default("Unknown template object: "+typeof r);r.main.decorator=r.main_d,t.VM.checkRevision(r.compiler);var i=r.compiler&&r.compiler[0]===7;function a(f,g,v){v.hash&&(g=Iq.extend({},g,v.hash),v.ids&&(v.ids[0]=!0)),f=t.VM.resolvePartial.call(this,f,g,v);var S=Iq.extend({},v,{hooks:this.hooks,protoAccessControl:this.protoAccessControl}),E=t.VM.invokePartial.call(this,f,g,S);if(E==null&&t.compile&&(v.partials[v.name]=t.compile(f,r.compilerOptions,t),E=v.partials[v.name](g,S)),E!=null){if(v.indent){for(var A=E.split(`
31435
31435
  `),C=0,L=A.length;C<L&&!(!A[C]&&C+1===L);C++)A[C]=v.indent+A[C];E=A.join(`