UNPKG

prettier

Version:

Prettier is an opinionated code formatter

1 lines 186 kB
var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t={};!function(e){var t="\n",r=function(){function e(e){this.string=e;for(var r=[0],n=0;n<e.length;)switch(e[n]){case t:n+=t.length,r.push(n);break;case"\r":e[n+="\r".length]===t&&(n+=t.length),r.push(n);break;default:n++}this.offsets=r}return e.prototype.locationForIndex=function(e){if(e<0||e>this.string.length)return null;for(var t=0,r=this.offsets;r[t+1]<=e;)t++;return{line:t,column:e-r[t]}},e.prototype.indexForLocation=function(e){var t=e.line,r=e.column;return t<0||t>=this.offsets.length||r<0||r>this.lengthOfLine(t)?null:this.offsets[t]+r},e.prototype.lengthOfLine=function(e){var t=this.offsets[e];return(e===this.offsets.length-1?this.string.length:this.offsets[e+1])-t},e}();e.__esModule=!0,e.default=r}(t);var r=function(e,t){const r=new SyntaxError(e+" ("+t.start.line+":"+t.start.column+")");return r.loc=t,r};var n={locStart:function(e){return e.loc.start.offset},locEnd:function(e){return e.loc.end.offset}},o={},a={};var i=Object.freeze({__proto__:null,DEBUG:!1,CI:!1});const s=Object.freeze([]);function l(){return s}const c=l(),u=l();var h;const{keys:p}=Object;let d=null!==(h=Object.assign)&&void 0!==h?h:function(e){for(let t=1;t<arguments.length;t++){let r=arguments[t];if(null===r||"object"!=typeof r)continue;let n=p(r);for(let t=0;t<n.length;t++){let o=n[t];e[o]=r[o]}}return e};function f(e){let t={};t[e]=1;for(let r in t)if(r===e)return r;return e}const m="function"==typeof Proxy,g="function"==typeof Symbol&&"symbol"==typeof Symbol();function b(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"unreachable";return new Error(e)}function y(e){return f("__".concat(e).concat(Math.floor(Math.random()*Date.now()),"__"))}const v=g?Symbol:y;function S(e){return-536870913&e}function k(e){return 536870912|e}function w(e){return~e}function E(e){return~e}function P(e){return(e|=0)<0?S(e):w(e)}function T(e){return(e|=0)>-536870913?E(e):k(e)}[1,-1].forEach((e=>T(P(e))));var N="function"==typeof WeakSet?WeakSet:class{constructor(){this._map=new WeakMap}add(e){return this._map.set(e,!0),this}delete(e){return this._map.delete(e)}has(e){return this._map.has(e)}};function x(e){return 9===e.nodeType}function O(e,t){let r=!1;if(null!==e)if("string"==typeof t)r=A(e,t);else{if(!Array.isArray(t))throw b();r=t.some((t=>A(e,t)))}if(r)return e;throw function(e,t){return new Error("cannot cast a ".concat(e," into ").concat(t))}("SimpleElement(".concat(e,")"),t)}function A(e,t){switch(t){case"NODE":return!0;case"HTML":return e instanceof HTMLElement;case"SVG":return e instanceof SVGElement;case"ELEMENT":return e instanceof Element;default:if(t.toUpperCase()===t)throw new Error("BUG: this code is missing handling for a generic node type");return e instanceof Element&&e.tagName.toLowerCase()===t}}function _(e){return e.length>0}const C=console,L=console;var B=Object.freeze({__proto__:null,LOCAL_LOGGER:C,LOGGER:L,assertNever:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"unexpected unreachable branch";throw L.log("unreachable",e),L.log("".concat(t," :: ").concat(JSON.stringify(e)," (").concat(e,")")),new Error("code reached unreachable")},assert:function(e,t){if(!e)throw new Error(t||"assertion failure")},deprecate:function(e){C.warn("DEPRECATION: ".concat(e))},dict:function(){return Object.create(null)},isDict:function(e){return null!=e},isObject:function(e){return"function"==typeof e||"object"==typeof e&&null!==e},Stack:class{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this.current=null,this.stack=e}get size(){return this.stack.length}push(e){this.current=e,this.stack.push(e)}pop(){let e=this.stack.pop(),t=this.stack.length;return this.current=0===t?null:this.stack[t-1],void 0===e?null:e}nth(e){let t=this.stack.length;return t<e?null:this.stack[t-e]}isEmpty(){return 0===this.stack.length}toArray(){return this.stack}},isSerializationFirstNode:function(e){return"%+b:0%"===e.nodeValue},SERIALIZATION_FIRST_NODE_STRING:"%+b:0%",assign:d,fillNulls:function(e){let t=new Array(e);for(let r=0;r<e;r++)t[r]=null;return t},values:function(e){const t=[];for(const r in e)t.push(e[r]);return t},_WeakSet:N,castToSimple:function(e){return x(e)||function(e){e.nodeType}(e),e},castToBrowser:function(e,t){if(null==e)return null;if(void 0===typeof document)throw new Error("Attempted to cast to a browser node in a non-browser context");if(x(e))return e;if(e.ownerDocument!==document)throw new Error("Attempted to cast to a browser node with a node that was not created from this document");return O(e,t)},checkNode:O,intern:f,buildUntouchableThis:function(e){return null},debugToString:undefined,beginTestSteps:undefined,endTestSteps:undefined,logStep:undefined,verifySteps:undefined,EMPTY_ARRAY:s,emptyArray:l,EMPTY_STRING_ARRAY:c,EMPTY_NUMBER_ARRAY:u,isEmptyArray:function(e){return e===s},clearElement:function(e){let t=e.firstChild;for(;t;){let r=t.nextSibling;e.removeChild(t),t=r}},HAS_NATIVE_PROXY:m,HAS_NATIVE_SYMBOL:g,keys:function(e){return Object.keys(e)},unwrap:function(e){if(null==e)throw new Error("Expected value to be present");return e},expect:function(e,t){if(null==e)throw new Error(t);return e},unreachable:b,exhausted:function(e){throw new Error("Exhausted ".concat(e))},tuple:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return t},enumerableSymbol:y,symbol:v,strip:function(e){let t="";for(var r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];for(let r=0;r<e.length;r++){let o=e[r],a=void 0!==n[r]?String(n[r]):"";t+="".concat(o).concat(a)}let a=t.split("\n");for(;a.length&&a[0].match(/^\s*$/);)a.shift();for(;a.length&&a[a.length-1].match(/^\s*$/);)a.pop();let i=1/0;for(let e of a){let t=e.match(/^\s*/)[0].length;i=Math.min(i,t)}let s=[];for(let e of a)s.push(e.slice(i));return s.join("\n")},isHandle:function(e){return e>=0},isNonPrimitiveHandle:function(e){return e>3},constants:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return[!1,!0,null,void 0,...t]},isSmallInt:function(e){return e%1==0&&e<=536870911&&e>=-536870912},encodeNegative:S,decodeNegative:k,encodePositive:w,decodePositive:E,encodeHandle:function(e){return e},decodeHandle:function(e){return e},encodeImmediate:P,decodeImmediate:T,unwrapHandle:function(e){if("number"==typeof e)return e;{let t=e.errors[0];throw new Error("Compile Error: ".concat(t.problem," @ ").concat(t.span.start,"..").concat(t.span.end))}},unwrapTemplate:function(e){if("error"===e.result)throw new Error("Compile Error: ".concat(e.problem," @ ").concat(e.span.start,"..").concat(e.span.end));return e},extractHandle:function(e){return"number"==typeof e?e:e.handle},isOkHandle:function(e){return"number"==typeof e},isErrHandle:function(e){return"number"==typeof e},isPresent:_,ifPresent:function(e,t,r){return _(e)?t(e):r()},toPresentOption:function(e){return _(e)?e:null},assertPresent:function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"unexpected empty list";if(!_(e))throw new Error(t)},mapPresent:function(e,t){if(null===e)return null;let r=[];for(let n of e)r.push(t(n));return r}}),D={},I={},R={};Object.defineProperty(R,"__esModule",{value:!0}),R.isLocatedWithPositionsArray=function(e){return(0,q.isPresent)(e)&&e.every(F)},R.isLocatedWithPositions=F,R.BROKEN_LOCATION=R.NON_EXISTENT_LOCATION=R.TEMPORARY_LOCATION=R.SYNTHETIC=R.SYNTHETIC_LOCATION=R.UNKNOWN_POSITION=void 0;var q=B;const M=Object.freeze({line:1,column:0});R.UNKNOWN_POSITION=M;const j=Object.freeze({source:"(synthetic)",start:M,end:M});R.SYNTHETIC_LOCATION=j;const H=j;R.SYNTHETIC=H;const V=Object.freeze({source:"(temporary)",start:M,end:M});R.TEMPORARY_LOCATION=V;const U=Object.freeze({source:"(nonexistent)",start:M,end:M});R.NON_EXISTENT_LOCATION=U;const z=Object.freeze({source:"(broken)",start:M,end:M});function F(e){return void 0!==e.loc}R.BROKEN_LOCATION=z;var K={};Object.defineProperty(K,"__esModule",{value:!0}),K.SourceSlice=void 0;var G=D;class ${constructor(e){this.loc=e.loc,this.chars=e.chars}static synthetic(e){let t=G.SourceSpan.synthetic(e);return new $({loc:t,chars:e})}static load(e,t){return new $({loc:G.SourceSpan.load(e,t[1]),chars:t[0]})}getString(){return this.chars}serialize(){return[this.chars,this.loc.serialize()]}}K.SourceSlice=$;var Y={};Object.defineProperty(Y,"__esModule",{value:!0}),Y.match=function(e){return e(new X).check()},Y.IsInvisible=Y.MatchAny=void 0;var W=B;Y.MatchAny="MATCH_ANY";Y.IsInvisible="IS_INVISIBLE";class Q{constructor(e){this._whens=e}first(e){for(let t of this._whens){let r=t.match(e);if((0,W.isPresent)(r))return r[0]}return null}}class J{constructor(){this._map=new Map}get(e,t){let r=this._map.get(e);return r||(r=t(),this._map.set(e,r),r)}add(e,t){this._map.set(e,t)}match(e){let t=function(e){switch(e){case"Broken":case"InternalsSynthetic":case"NonExistent":return"IS_INVISIBLE";default:return e}}(e),r=[],n=this._map.get(t),o=this._map.get("MATCH_ANY");return n&&r.push(n),o&&r.push(o),r}}class X{constructor(){this._whens=new J}check(){return(e,t)=>this.matchFor(e.kind,t.kind)(e,t)}matchFor(e,t){let r=this._whens.match(e);return new Q(r).first(t)}when(e,t,r){return this._whens.get(e,(()=>new J)).add(t,r),this}}var Z={};Object.defineProperty(Z,"__esModule",{value:!0}),Z.InvisiblePosition=Z.HbsPosition=Z.CharPosition=Z.SourceOffset=Z.BROKEN=void 0;var ee=R,te=Y,re=I;Z.BROKEN="BROKEN";class ne{constructor(e){this.data=e}static forHbsPos(e,t){return new ae(e,t,null).wrap()}static broken(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ee.UNKNOWN_POSITION;return new ie("Broken",e).wrap()}get offset(){let e=this.data.toCharPos();return null===e?null:e.offset}eql(e){return se(this.data,e.data)}until(e){return(0,re.span)(this.data,e.data)}move(e){let t=this.data.toCharPos();if(null===t)return ne.broken();{let r=t.offset+e;return t.source.check(r)?new oe(t.source,r).wrap():ne.broken()}}collapsed(){return(0,re.span)(this.data,this.data)}toJSON(){return this.data.toJSON()}}Z.SourceOffset=ne;class oe{constructor(e,t){this.source=e,this.charPos=t,this.kind="CharPosition",this._locPos=null}toCharPos(){return this}toJSON(){let e=this.toHbsPos();return null===e?ee.UNKNOWN_POSITION:e.toJSON()}wrap(){return new ne(this)}get offset(){return this.charPos}toHbsPos(){let e=this._locPos;if(null===e){let t=this.source.hbsPosFor(this.charPos);this._locPos=e=null===t?"BROKEN":new ae(this.source,t,this.charPos)}return"BROKEN"===e?null:e}}Z.CharPosition=oe;class ae{constructor(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this.source=e,this.hbsPos=t,this.kind="HbsPosition",this._charPos=null===r?null:new oe(e,r)}toCharPos(){let e=this._charPos;if(null===e){let t=this.source.charPosFor(this.hbsPos);this._charPos=e=null===t?"BROKEN":new oe(this.source,t)}return"BROKEN"===e?null:e}toJSON(){return this.hbsPos}wrap(){return new ne(this)}toHbsPos(){return this}}Z.HbsPosition=ae;class ie{constructor(e,t){this.kind=e,this.pos=t}toCharPos(){return null}toJSON(){return this.pos}wrap(){return new ne(this)}get offset(){return null}}Z.InvisiblePosition=ie;const se=(0,te.match)((e=>e.when("HbsPosition","HbsPosition",((e,t)=>{let{hbsPos:r}=e,{hbsPos:n}=t;return r.column===n.column&&r.line===n.line})).when("CharPosition","CharPosition",((e,t)=>{let{charPos:r}=e,{charPos:n}=t;return r===n})).when("CharPosition","HbsPosition",((e,t)=>{let{offset:r}=e;var n;return r===(null===(n=t.toCharPos())||void 0===n?void 0:n.offset)})).when("HbsPosition","CharPosition",((e,t)=>{let{offset:r}=t;var n;return(null===(n=e.toCharPos())||void 0===n?void 0:n.offset)===r})).when(te.MatchAny,te.MatchAny,(()=>!1))));Object.defineProperty(I,"__esModule",{value:!0}),I.span=I.HbsSpan=I.SourceSpan=void 0;var le=i,ce=B,ue=R,he=K,pe=Y,de=Z;class fe{constructor(e){this.data=e,this.isInvisible="CharPosition"!==e.kind&&"HbsPosition"!==e.kind}static get NON_EXISTENT(){return new be("NonExistent",ue.NON_EXISTENT_LOCATION).wrap()}static load(e,t){return"number"==typeof t?fe.forCharPositions(e,t,t):"string"==typeof t?fe.synthetic(t):Array.isArray(t)?fe.forCharPositions(e,t[0],t[1]):"NonExistent"===t?fe.NON_EXISTENT:"Broken"===t?fe.broken(ue.BROKEN_LOCATION):void(0,ce.assertNever)(t)}static forHbsLoc(e,t){let r=new de.HbsPosition(e,t.start),n=new de.HbsPosition(e,t.end);return new ge(e,{start:r,end:n},t).wrap()}static forCharPositions(e,t,r){let n=new de.CharPosition(e,t),o=new de.CharPosition(e,r);return new me(e,{start:n,end:o}).wrap()}static synthetic(e){return new be("InternalsSynthetic",ue.NON_EXISTENT_LOCATION,e).wrap()}static broken(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ue.BROKEN_LOCATION;return new be("Broken",e).wrap()}getStart(){return this.data.getStart().wrap()}getEnd(){return this.data.getEnd().wrap()}get loc(){let e=this.data.toHbsSpan();return null===e?ue.BROKEN_LOCATION:e.toHbsLoc()}get module(){return this.data.getModule()}get startPosition(){return this.loc.start}get endPosition(){return this.loc.end}toJSON(){return this.loc}withStart(e){return ye(e.data,this.data.getEnd())}withEnd(e){return ye(this.data.getStart(),e.data)}asString(){return this.data.asString()}toSlice(e){let t=this.data.asString();return le.DEBUG&&void 0!==e&&t!==e&&console.warn("unexpectedly found ".concat(JSON.stringify(t)," when slicing source, but expected ").concat(JSON.stringify(e))),new he.SourceSlice({loc:this,chars:e||t})}get start(){return this.loc.start}set start(e){this.data.locDidUpdate({start:e})}get end(){return this.loc.end}set end(e){this.data.locDidUpdate({end:e})}get source(){return this.module}collapse(e){switch(e){case"start":return this.getStart().collapsed();case"end":return this.getEnd().collapsed()}}extend(e){return ye(this.data.getStart(),e.data.getEnd())}serialize(){return this.data.serialize()}slice(e){let{skipStart:t=0,skipEnd:r=0}=e;return ye(this.getStart().move(t).data,this.getEnd().move(-r).data)}sliceStartChars(e){let{skipStart:t=0,chars:r}=e;return ye(this.getStart().move(t).data,this.getStart().move(t+r).data)}sliceEndChars(e){let{skipEnd:t=0,chars:r}=e;return ye(this.getEnd().move(t-r).data,this.getStart().move(-t).data)}}I.SourceSpan=fe;class me{constructor(e,t){this.source=e,this.charPositions=t,this.kind="CharPosition",this._locPosSpan=null}wrap(){return new fe(this)}asString(){return this.source.slice(this.charPositions.start.charPos,this.charPositions.end.charPos)}getModule(){return this.source.module}getStart(){return this.charPositions.start}getEnd(){return this.charPositions.end}locDidUpdate(){}toHbsSpan(){let e=this._locPosSpan;if(null===e){let t=this.charPositions.start.toHbsPos(),r=this.charPositions.end.toHbsPos();e=this._locPosSpan=null===t||null===r?de.BROKEN:new ge(this.source,{start:t,end:r})}return e===de.BROKEN?null:e}serialize(){let{start:{charPos:e},end:{charPos:t}}=this.charPositions;return e===t?e:[e,t]}toCharPosSpan(){return this}}class ge{constructor(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this.source=e,this.hbsPositions=t,this.kind="HbsPosition",this._charPosSpan=null,this._providedHbsLoc=r}serialize(){let e=this.toCharPosSpan();return null===e?"Broken":e.wrap().serialize()}wrap(){return new fe(this)}updateProvided(e,t){this._providedHbsLoc&&(this._providedHbsLoc[t]=e),this._charPosSpan=null,this._providedHbsLoc={start:e,end:e}}locDidUpdate(e){let{start:t,end:r}=e;void 0!==t&&(this.updateProvided(t,"start"),this.hbsPositions.start=new de.HbsPosition(this.source,t,null)),void 0!==r&&(this.updateProvided(r,"end"),this.hbsPositions.end=new de.HbsPosition(this.source,r,null))}asString(){let e=this.toCharPosSpan();return null===e?"":e.asString()}getModule(){return this.source.module}getStart(){return this.hbsPositions.start}getEnd(){return this.hbsPositions.end}toHbsLoc(){return{start:this.hbsPositions.start.hbsPos,end:this.hbsPositions.end.hbsPos}}toHbsSpan(){return this}toCharPosSpan(){let e=this._charPosSpan;if(null===e){let t=this.hbsPositions.start.toCharPos(),r=this.hbsPositions.end.toCharPos();if(!t||!r)return e=this._charPosSpan=de.BROKEN,null;e=this._charPosSpan=new me(this.source,{start:t,end:r})}return e===de.BROKEN?null:e}}I.HbsSpan=ge;class be{constructor(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this.kind=e,this.loc=t,this.string=r}serialize(){switch(this.kind){case"Broken":case"NonExistent":return this.kind;case"InternalsSynthetic":return this.string||""}}wrap(){return new fe(this)}asString(){return this.string||""}locDidUpdate(e){let{start:t,end:r}=e;void 0!==t&&(this.loc.start=t),void 0!==r&&(this.loc.end=r)}getModule(){return"an unknown module"}getStart(){return new de.InvisiblePosition(this.kind,this.loc.start)}getEnd(){return new de.InvisiblePosition(this.kind,this.loc.end)}toCharPosSpan(){return this}toHbsSpan(){return null}toHbsLoc(){return ue.BROKEN_LOCATION}}const ye=(0,pe.match)((e=>e.when("HbsPosition","HbsPosition",((e,t)=>new ge(e.source,{start:e,end:t}).wrap())).when("CharPosition","CharPosition",((e,t)=>new me(e.source,{start:e,end:t}).wrap())).when("CharPosition","HbsPosition",((e,t)=>{let r=t.toCharPos();return null===r?new be("Broken",ue.BROKEN_LOCATION).wrap():ye(e,r)})).when("HbsPosition","CharPosition",((e,t)=>{let r=e.toCharPos();return null===r?new be("Broken",ue.BROKEN_LOCATION).wrap():ye(r,t)})).when(pe.IsInvisible,pe.MatchAny,(e=>new be(e.kind,ue.BROKEN_LOCATION).wrap())).when(pe.MatchAny,pe.IsInvisible,((e,t)=>new be(t.kind,ue.BROKEN_LOCATION).wrap()))));I.span=ye,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"SourceSpan",{enumerable:!0,get:function(){return t.SourceSpan}}),Object.defineProperty(e,"SourceOffset",{enumerable:!0,get:function(){return r.SourceOffset}});var t=I,r=Z}(D),Object.defineProperty(a,"__esModule",{value:!0}),a.Source=void 0;var ve=i,Se=D;a.Source=class{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"an unknown module";this.source=e,this.module=t}check(e){return e>=0&&e<=this.source.length}slice(e,t){return this.source.slice(e,t)}offsetFor(e,t){return Se.SourceOffset.forHbsPos(this,{line:e,column:t})}spanFor(e){let{start:t,end:r}=e;return Se.SourceSpan.forHbsLoc(this,{start:{line:t.line,column:t.column},end:{line:r.line,column:r.column}})}hbsPosFor(e){let t=0,r=0;if(e>this.source.length)return null;for(;;){let n=this.source.indexOf("\n",r);if(e<=n||-1===n)return{line:t+1,column:e-r};t+=1,r=n+1}}charPosFor(e){let{line:t,column:r}=e,n=this.source.length,o=0,a=0;for(;;){if(a>=n)return n;let e=this.source.indexOf("\n",a);if(-1===e&&(e=this.source.length),o===t-1)return a+r>e?e:(ve.DEBUG&&this.hbsPosFor(a+r),a+r);if(-1===e)return 0;o+=1,a=e+1}}};var ke={},we={};Object.defineProperty(we,"__esModule",{value:!0}),we.PathExpressionImplV1=void 0;var Ee,Pe=(Ee=ke)&&Ee.__esModule?Ee:{default:Ee};we.PathExpressionImplV1=class{constructor(e,t,r,n){this.original=e,this.loc=n,this.type="PathExpression",this.this=!1,this.data=!1,this._head=void 0;let o=r.slice();"ThisHead"===t.type?this.this=!0:"AtHead"===t.type?(this.data=!0,o.unshift(t.name.slice(1))):o.unshift(t.name),this.parts=o}get head(){if(this._head)return this._head;let e;e=this.this?"this":this.data?"@".concat(this.parts[0]):this.parts[0];let t=this.loc.collapse("start").sliceStartChars({chars:e.length}).loc;return this._head=Pe.default.head(e,t)}get tail(){return this.this?this.parts:this.parts.slice(1)}},Object.defineProperty(ke,"__esModule",{value:!0}),ke.default=void 0;var Te=B,Ne=R,xe=a,Oe=D,Ae=we;let _e;function Ce(){return _e||(_e=new xe.Source("","(synthetic)")),_e}function Le(e){switch(e.type){case"AtHead":case"VarHead":return{original:e.name,parts:[e.name]};case"ThisHead":return{original:"this",parts:[]}}}function Be(e,t){let r,[n,...o]=e.split(".");return r="this"===n?{type:"ThisHead",loc:He(t||null)}:"@"===n[0]?{type:"AtHead",name:n,loc:He(t||null)}:{type:"VarHead",name:n,loc:He(t||null)},{head:r,tail:o}}function De(e){return{type:"ThisHead",loc:He(e||null)}}function Ie(e,t){return{type:"AtHead",name:e,loc:He(t||null)}}function Re(e,t){return{type:"VarHead",name:e,loc:He(t||null)}}function qe(e,t){if("string"!=typeof e){if("type"in e)return e;{let{head:r,tail:n}=Be(e.head,Oe.SourceSpan.broken()),{original:o}=Le(r);return new Ae.PathExpressionImplV1([o,...n].join("."),r,n,He(t||null))}}let{head:r,tail:n}=Be(e,Oe.SourceSpan.broken());return new Ae.PathExpressionImplV1(e,r,n,He(t||null))}function Me(e,t,r){return{type:e,value:t,original:t,loc:He(r||null)}}function je(e,t){return{type:"Hash",pairs:e||[],loc:He(t||null)}}function He(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];if(1===t.length){let e=t[0];return e&&"object"==typeof e?Oe.SourceSpan.forHbsLoc(Ce(),e):Oe.SourceSpan.forHbsLoc(Ce(),Ne.SYNTHETIC_LOCATION)}{let[e,r,n,o,a]=t,i=a?new xe.Source("",a):Ce();return Oe.SourceSpan.forHbsLoc(i,{start:{line:e,column:r},end:{line:n,column:o}})}}var Ve={mustache:function(e,t,r,n,o,a){return"string"==typeof e&&(e=qe(e)),{type:"MustacheStatement",path:e,params:t||[],hash:r||je([]),escaped:!n,trusting:!!n,loc:He(o||null),strip:a||{open:!1,close:!1}}},block:function(e,t,r,n,o,a,i,s,l){let c,u;return c="Template"===n.type?(0,Te.assign)({},n,{type:"Block"}):n,u=null!=o&&"Template"===o.type?(0,Te.assign)({},o,{type:"Block"}):o,{type:"BlockStatement",path:qe(e),params:t||[],hash:r||je([]),program:c||null,inverse:u||null,loc:He(a||null),openStrip:i||{open:!1,close:!1},inverseStrip:s||{open:!1,close:!1},closeStrip:l||{open:!1,close:!1}}},partial:function(e,t,r,n,o){return{type:"PartialStatement",name:e,params:t||[],hash:r||je([]),indent:n||"",strip:{open:!1,close:!1},loc:He(o||null)}},comment:function(e,t){return{type:"CommentStatement",value:e,loc:He(t||null)}},mustacheComment:function(e,t){return{type:"MustacheCommentStatement",value:e,loc:He(t||null)}},element:function(e,t){let r,{attrs:n,blockParams:o,modifiers:a,comments:i,children:s,loc:l}=t,c=!1;return"object"==typeof e?(c=e.selfClosing,r=e.name):"/"===e.slice(-1)?(r=e.slice(0,-1),c=!0):r=e,{type:"ElementNode",tag:r,selfClosing:c,attributes:n||[],blockParams:o||[],modifiers:a||[],comments:i||[],children:s||[],loc:He(l||null)}},elementModifier:function(e,t,r,n){return{type:"ElementModifierStatement",path:qe(e),params:t||[],hash:r||je([]),loc:He(n||null)}},attr:function(e,t,r){return{type:"AttrNode",name:e,value:t,loc:He(r||null)}},text:function(e,t){return{type:"TextNode",chars:e||"",loc:He(t||null)}},sexpr:function(e,t,r,n){return{type:"SubExpression",path:qe(e),params:t||[],hash:r||je([]),loc:He(n||null)}},concat:function(e,t){if(!(0,Te.isPresent)(e))throw new Error("b.concat requires at least one part");return{type:"ConcatStatement",parts:e||[],loc:He(t||null)}},hash:je,pair:function(e,t,r){return{type:"HashPair",key:e,value:t,loc:He(r||null)}},literal:Me,program:function(e,t,r){return{type:"Template",body:e||[],blockParams:t||[],loc:He(r||null)}},blockItself:function(e,t){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=arguments.length>3?arguments[3]:void 0;return{type:"Block",body:e||[],blockParams:t||[],chained:r,loc:He(n||null)}},template:function(e,t,r){return{type:"Template",body:e||[],blockParams:t||[],loc:He(r||null)}},loc:He,pos:function(e,t){return{line:e,column:t}},path:qe,fullPath:function(e,t,r){let{original:n,parts:o}=Le(e),a=[...n,...[...o,...t]].join(".");return new Ae.PathExpressionImplV1(a,e,t,He(r||null))},head:function(e,t){return"@"===e[0]?Ie(e,t):"this"===e?De(t):Re(e,t)},at:Ie,var:Re,this:De,blockName:function(e,t){return{type:"NamedBlockName",name:e,loc:He(t||null)}},string:Ue("StringLiteral"),boolean:Ue("BooleanLiteral"),number:Ue("NumberLiteral"),undefined:()=>Me("UndefinedLiteral",void 0),null:()=>Me("NullLiteral",null)};function Ue(e){return function(t,r){return Me(e,t,r)}}ke.default=Ve;var ze={},Fe={};Object.defineProperty(Fe,"__esModule",{value:!0}),function(e){Object.defineProperty(e,"__esModule",{value:!0});var t=Fe;Object.keys(t).forEach((function(r){"default"!==r&&"__esModule"!==r&&Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[r]}})}))}(ze);var Ke={},Ge={};Object.defineProperty(Ge,"__esModule",{value:!0}),Ge.loadResolution=function(e){if("string"==typeof e)switch(e){case"Loose":return We.fallback();case"Strict":return Ye}switch(e[0]){case"ambiguous":switch(e[1]){case"Append":return We.append({invoke:!1});case"Attr":return We.attr();case"Invoke":return We.append({invoke:!0})}case"ns":return We.namespaced(e[1])}},Ge.ARGUMENT_RESOLUTION=Ge.LooseModeResolution=Ge.STRICT_RESOLUTION=Ge.StrictResolution=void 0;class $e{constructor(){this.isAngleBracket=!1}resolution(){return 31}serialize(){return"Strict"}}Ge.StrictResolution=$e;const Ye=new $e;Ge.STRICT_RESOLUTION=Ye;class We{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];this.ambiguity=e,this.isAngleBracket=t}static namespaced(e){return new We({namespaces:[e],fallback:!1},arguments.length>1&&void 0!==arguments[1]&&arguments[1])}static fallback(){return new We({namespaces:[],fallback:!0})}static append(e){let{invoke:t}=e;return new We({namespaces:["Component","Helper"],fallback:!t})}static trustingAppend(e){let{invoke:t}=e;return new We({namespaces:["Helper"],fallback:!t})}static attr(){return new We({namespaces:["Helper"],fallback:!0})}resolution(){if(0===this.ambiguity.namespaces.length)return 31;if(1!==this.ambiguity.namespaces.length)return this.ambiguity.fallback?34:35;if(this.ambiguity.fallback)return 36;switch(this.ambiguity.namespaces[0]){case"Helper":return 37;case"Modifier":return 38;case"Component":return 39}}serialize(){return 0===this.ambiguity.namespaces.length?"Loose":1===this.ambiguity.namespaces.length?this.ambiguity.fallback?["ambiguous","Attr"]:["ns",this.ambiguity.namespaces[0]]:this.ambiguity.fallback?["ambiguous","Append"]:["ambiguous","Invoke"]}}Ge.LooseModeResolution=We;const Qe=We.fallback();Ge.ARGUMENT_RESOLUTION=Qe;var Je={};Object.defineProperty(Je,"__esModule",{value:!0}),Je.node=function(e){if(void 0!==e){const t=e;return{fields:()=>class{constructor(e){this.type=t,(0,Xe.assign)(this,e)}}}}return{fields:()=>class{constructor(e){(0,Xe.assign)(this,e)}}}};var Xe=B;var Ze={};Object.defineProperty(Ze,"__esModule",{value:!0}),Ze.NamedArgument=Ze.NamedArguments=Ze.PositionalArguments=Ze.Args=void 0;var et=Je;class tt extends((0,et.node)().fields()){static empty(e){return new tt({loc:e,positional:rt.empty(e),named:nt.empty(e)})}static named(e){return new tt({loc:e.loc,positional:rt.empty(e.loc.collapse("end")),named:e})}nth(e){return this.positional.nth(e)}get(e){return this.named.get(e)}isEmpty(){return this.positional.isEmpty()&&this.named.isEmpty()}}Ze.Args=tt;class rt extends((0,et.node)().fields()){static empty(e){return new rt({loc:e,exprs:[]})}get size(){return this.exprs.length}nth(e){return this.exprs[e]||null}isEmpty(){return 0===this.exprs.length}}Ze.PositionalArguments=rt;class nt extends((0,et.node)().fields()){static empty(e){return new nt({loc:e,entries:[]})}get size(){return this.entries.length}get(e){let t=this.entries.filter((t=>t.name.chars===e))[0];return t?t.value:null}isEmpty(){return 0===this.entries.length}}Ze.NamedArguments=nt;Ze.NamedArgument=class{constructor(e){this.loc=e.name.loc.extend(e.value.loc),this.name=e.name,this.value=e.value}};var ot={};Object.defineProperty(ot,"__esModule",{value:!0}),ot.ElementModifier=ot.ComponentArg=ot.SplatAttr=ot.HtmlAttr=void 0;var at=Ze,it=Je;class st extends((0,it.node)("HtmlAttr").fields()){}ot.HtmlAttr=st;class lt extends((0,it.node)("SplatAttr").fields()){}ot.SplatAttr=lt;class ct extends((0,it.node)().fields()){toNamedArgument(){return new at.NamedArgument({name:this.name,value:this.value})}}ot.ComponentArg=ct;class ut extends((0,it.node)("ElementModifier").fields()){}ot.ElementModifier=ut;var ht={};Object.defineProperty(ht,"__esModule",{value:!0});var pt={},dt={};Object.defineProperty(dt,"__esModule",{value:!0}),dt.loc=gt,dt.hasSpan=bt,dt.maybeLoc=function(e,t){return bt(e)?gt(e):t},dt.SpanList=void 0;var ft=D;class mt{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this._span=e}static range(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ft.SourceSpan.NON_EXISTENT;return new mt(e.map(gt)).getRangeOffset(t)}add(e){this._span.push(e)}getRangeOffset(e){if(0===this._span.length)return e;{let e=this._span[0],t=this._span[this._span.length-1];return e.extend(t)}}}function gt(e){if(Array.isArray(e)){let t=e[0],r=e[e.length-1];return gt(t).extend(gt(r))}return e instanceof ft.SourceSpan?e:e.loc}function bt(e){return!Array.isArray(e)||0!==e.length}dt.SpanList=mt,Object.defineProperty(pt,"__esModule",{value:!0}),pt.SimpleElement=pt.InvokeComponent=pt.InvokeBlock=pt.AppendContent=pt.HtmlComment=pt.HtmlText=pt.GlimmerComment=void 0;var yt=dt,vt=Ze,St=Je;class kt extends((0,St.node)("GlimmerComment").fields()){}pt.GlimmerComment=kt;class wt extends((0,St.node)("HtmlText").fields()){}pt.HtmlText=wt;class Et extends((0,St.node)("HtmlComment").fields()){}pt.HtmlComment=Et;class Pt extends((0,St.node)("AppendContent").fields()){get callee(){return"Call"===this.value.type?this.value.callee:this.value}get args(){return"Call"===this.value.type?this.value.args:vt.Args.empty(this.value.loc.collapse("end"))}}pt.AppendContent=Pt;class Tt extends((0,St.node)("InvokeBlock").fields()){}pt.InvokeBlock=Tt;class Nt extends((0,St.node)("InvokeComponent").fields()){get args(){let e=this.componentArgs.map((e=>e.toNamedArgument()));return vt.Args.named(new vt.NamedArguments({loc:yt.SpanList.range(e,this.callee.loc.collapse("end")),entries:e}))}}pt.InvokeComponent=Nt;class xt extends((0,St.node)("SimpleElement").fields()){get args(){let e=this.componentArgs.map((e=>e.toNamedArgument()));return vt.Args.named(new vt.NamedArguments({loc:yt.SpanList.range(e,this.tag.loc.collapse("end")),entries:e}))}}pt.SimpleElement=xt;var Ot={};Object.defineProperty(Ot,"__esModule",{value:!0}),Ot.isLiteral=function(e,t){return"Literal"===e.type&&(void 0===t||("null"===t?null===e.value:typeof e.value===t))},Ot.InterpolateExpression=Ot.DeprecatedCallExpression=Ot.CallExpression=Ot.PathExpression=Ot.LiteralExpression=void 0;var At=K,_t=Je;class Ct extends((0,_t.node)("Literal").fields()){toSlice(){return new At.SourceSlice({loc:this.loc,chars:this.value})}}Ot.LiteralExpression=Ct;class Lt extends((0,_t.node)("Path").fields()){}Ot.PathExpression=Lt;class Bt extends((0,_t.node)("Call").fields()){}Ot.CallExpression=Bt;class Dt extends((0,_t.node)("DeprecatedCall").fields()){}Ot.DeprecatedCallExpression=Dt;class It extends((0,_t.node)("Interpolate").fields()){}Ot.InterpolateExpression=It;var Rt={};Object.defineProperty(Rt,"__esModule",{value:!0}),Rt.FreeVarReference=Rt.LocalVarReference=Rt.ArgReference=Rt.ThisReference=void 0;var qt=Je;class Mt extends((0,qt.node)("This").fields()){}Rt.ThisReference=Mt;class jt extends((0,qt.node)("Arg").fields()){}Rt.ArgReference=jt;class Ht extends((0,qt.node)("Local").fields()){}Rt.LocalVarReference=Ht;class Vt extends((0,qt.node)("Free").fields()){}Rt.FreeVarReference=Vt;var Ut={};Object.defineProperty(Ut,"__esModule",{value:!0}),Ut.NamedBlock=Ut.NamedBlocks=Ut.Block=Ut.Template=void 0;var zt=dt,Ft=Ze,Kt=Je;class Gt extends((0,Kt.node)().fields()){}Ut.Template=Gt;class $t extends((0,Kt.node)().fields()){}Ut.Block=$t;class Yt extends((0,Kt.node)().fields()){get(e){return this.blocks.filter((t=>t.name.chars===e))[0]||null}}Ut.NamedBlocks=Yt;class Wt extends((0,Kt.node)().fields()){get args(){let e=this.componentArgs.map((e=>e.toNamedArgument()));return Ft.Args.named(new Ft.NamedArguments({loc:zt.SpanList.range(e,this.name.loc.collapse("end")),entries:e}))}}Ut.NamedBlock=Wt,function(e){Object.defineProperty(e,"__esModule",{value:!0});var t=Ge;Object.keys(t).forEach((function(r){"default"!==r&&"__esModule"!==r&&Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[r]}})}));var r=Je;Object.keys(r).forEach((function(t){"default"!==t&&"__esModule"!==t&&Object.defineProperty(e,t,{enumerable:!0,get:function(){return r[t]}})}));var n=Ze;Object.keys(n).forEach((function(t){"default"!==t&&"__esModule"!==t&&Object.defineProperty(e,t,{enumerable:!0,get:function(){return n[t]}})}));var o=ot;Object.keys(o).forEach((function(t){"default"!==t&&"__esModule"!==t&&Object.defineProperty(e,t,{enumerable:!0,get:function(){return o[t]}})}));var a=ht;Object.keys(a).forEach((function(t){"default"!==t&&"__esModule"!==t&&Object.defineProperty(e,t,{enumerable:!0,get:function(){return a[t]}})}));var i=pt;Object.keys(i).forEach((function(t){"default"!==t&&"__esModule"!==t&&Object.defineProperty(e,t,{enumerable:!0,get:function(){return i[t]}})}));var s=Ot;Object.keys(s).forEach((function(t){"default"!==t&&"__esModule"!==t&&Object.defineProperty(e,t,{enumerable:!0,get:function(){return s[t]}})}));var l=Rt;Object.keys(l).forEach((function(t){"default"!==t&&"__esModule"!==t&&Object.defineProperty(e,t,{enumerable:!0,get:function(){return l[t]}})}));var c=Ut;Object.keys(c).forEach((function(t){"default"!==t&&"__esModule"!==t&&Object.defineProperty(e,t,{enumerable:!0,get:function(){return c[t]}})}))}(Ke);var Qt={},Jt=function(e){return e&&e.Math==Math&&e},Xt=Jt("object"==typeof globalThis&&globalThis)||Jt("object"==typeof window&&window)||Jt("object"==typeof self&&self)||Jt("object"==typeof e&&e)||function(){return this}()||Function("return this")(),Zt={},er=function(e){try{return!!e()}catch(e){return!0}},tr=!er((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})),rr=Function.prototype.call,nr=rr.bind?rr.bind(rr):function(){return rr.apply(rr,arguments)},or={},ar={}.propertyIsEnumerable,ir=Object.getOwnPropertyDescriptor,sr=ir&&!ar.call({1:2},1);or.f=sr?function(e){var t=ir(this,e);return!!t&&t.enumerable}:ar;var lr,cr,ur=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},hr=Function.prototype,pr=hr.bind,dr=hr.call,fr=pr&&pr.bind(dr),mr=pr?function(e){return e&&fr(dr,e)}:function(e){return e&&function(){return dr.apply(e,arguments)}},gr=mr,br=gr({}.toString),yr=gr("".slice),vr=function(e){return yr(br(e),8,-1)},Sr=mr,kr=er,wr=vr,Er=Xt.Object,Pr=Sr("".split),Tr=kr((function(){return!Er("z").propertyIsEnumerable(0)}))?function(e){return"String"==wr(e)?Pr(e,""):Er(e)}:Er,Nr=Xt.TypeError,xr=function(e){if(null==e)throw Nr("Can't call method on "+e);return e},Or=Tr,Ar=xr,_r=function(e){return Or(Ar(e))},Cr=function(e){return"function"==typeof e},Lr=Cr,Br=function(e){return"object"==typeof e?null!==e:Lr(e)},Dr=Xt,Ir=Cr,Rr=function(e){return Ir(e)?e:void 0},qr=function(e,t){return arguments.length<2?Rr(Dr[e]):Dr[e]&&Dr[e][t]},Mr=mr({}.isPrototypeOf),jr=qr("navigator","userAgent")||"",Hr=Xt,Vr=jr,Ur=Hr.process,zr=Hr.Deno,Fr=Ur&&Ur.versions||zr&&zr.version,Kr=Fr&&Fr.v8;Kr&&(cr=(lr=Kr.split("."))[0]>0&&lr[0]<4?1:+(lr[0]+lr[1])),!cr&&Vr&&(!(lr=Vr.match(/Edge\/(\d+)/))||lr[1]>=74)&&(lr=Vr.match(/Chrome\/(\d+)/))&&(cr=+lr[1]);var Gr=cr,$r=Gr,Yr=er,Wr=!!Object.getOwnPropertySymbols&&!Yr((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&$r&&$r<41})),Qr=Wr&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,Jr=qr,Xr=Cr,Zr=Mr,en=Qr,tn=Xt.Object,rn=en?function(e){return"symbol"==typeof e}:function(e){var t=Jr("Symbol");return Xr(t)&&Zr(t.prototype,tn(e))},nn=Xt.String,on=Cr,an=function(e){try{return nn(e)}catch(e){return"Object"}},sn=Xt.TypeError,ln=function(e){if(on(e))return e;throw sn(an(e)+" is not a function")},cn=ln,un=nr,hn=Cr,pn=Br,dn=Xt.TypeError,fn={exports:{}},mn=Xt,gn=Object.defineProperty,bn=function(e,t){try{gn(mn,e,{value:t,configurable:!0,writable:!0})}catch(r){mn[e]=t}return t},yn=bn,vn=Xt["__core-js_shared__"]||yn("__core-js_shared__",{}),Sn=vn;(fn.exports=function(e,t){return Sn[e]||(Sn[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.19.1",mode:"global",copyright:"\xa9 2021 Denis Pushkarev (zloirock.ru)"});var kn=xr,wn=Xt.Object,En=function(e){return wn(kn(e))},Pn=En,Tn=mr({}.hasOwnProperty),Nn=Object.hasOwn||function(e,t){return Tn(Pn(e),t)},xn=mr,On=0,An=Math.random(),_n=xn(1..toString),Cn=function(e){return"Symbol("+(void 0===e?"":e)+")_"+_n(++On+An,36)},Ln=Xt,Bn=fn.exports,Dn=Nn,In=Cn,Rn=Wr,qn=Qr,Mn=Bn("wks"),jn=Ln.Symbol,Hn=jn&&jn.for,Vn=qn?jn:jn&&jn.withoutSetter||In,Un=function(e){if(!Dn(Mn,e)||!Rn&&"string"!=typeof Mn[e]){var t="Symbol."+e;Rn&&Dn(jn,e)?Mn[e]=jn[e]:Mn[e]=qn&&Hn?Hn(t):Vn(t)}return Mn[e]},zn=nr,Fn=Br,Kn=rn,Gn=function(e,t){var r=e[t];return null==r?void 0:cn(r)},$n=function(e,t){var r,n;if("string"===t&&hn(r=e.toString)&&!pn(n=un(r,e)))return n;if(hn(r=e.valueOf)&&!pn(n=un(r,e)))return n;if("string"!==t&&hn(r=e.toString)&&!pn(n=un(r,e)))return n;throw dn("Can't convert object to primitive value")},Yn=Un,Wn=Xt.TypeError,Qn=Yn("toPrimitive"),Jn=function(e,t){if(!Fn(e)||Kn(e))return e;var r,n=Gn(e,Qn);if(n){if(void 0===t&&(t="default"),r=zn(n,e,t),!Fn(r)||Kn(r))return r;throw Wn("Can't convert object to primitive value")}return void 0===t&&(t="number"),$n(e,t)},Xn=rn,Zn=function(e){var t=Jn(e,"string");return Xn(t)?t:t+""},eo=Br,to=Xt.document,ro=eo(to)&&eo(to.createElement),no=function(e){return ro?to.createElement(e):{}},oo=!tr&&!er((function(){return 7!=Object.defineProperty(no("div"),"a",{get:function(){return 7}}).a})),ao=tr,io=nr,so=or,lo=ur,co=_r,uo=Zn,ho=Nn,po=oo,fo=Object.getOwnPropertyDescriptor;Zt.f=ao?fo:function(e,t){if(e=co(e),t=uo(t),po)try{return fo(e,t)}catch(e){}if(ho(e,t))return lo(!io(so.f,e,t),e[t])};var mo={},go=Xt,bo=Br,yo=go.String,vo=go.TypeError,So=function(e){if(bo(e))return e;throw vo(yo(e)+" is not an object")},ko=tr,wo=oo,Eo=So,Po=Zn,To=Xt.TypeError,No=Object.defineProperty;mo.f=ko?No:function(e,t,r){if(Eo(e),t=Po(t),Eo(r),wo)try{return No(e,t,r)}catch(e){}if("get"in r||"set"in r)throw To("Accessors not supported");return"value"in r&&(e[t]=r.value),e};var xo=mo,Oo=ur,Ao=tr?function(e,t,r){return xo.f(e,t,Oo(1,r))}:function(e,t,r){return e[t]=r,e},_o={exports:{}},Co=Cr,Lo=vn,Bo=mr(Function.toString);Co(Lo.inspectSource)||(Lo.inspectSource=function(e){return Bo(e)});var Do,Io,Ro,qo=Lo.inspectSource,Mo=Cr,jo=qo,Ho=Xt.WeakMap,Vo=Mo(Ho)&&/native code/.test(jo(Ho)),Uo=fn.exports,zo=Cn,Fo=Uo("keys"),Ko={},Go=Vo,$o=Xt,Yo=mr,Wo=Br,Qo=Ao,Jo=Nn,Xo=vn,Zo=function(e){return Fo[e]||(Fo[e]=zo(e))},ea=Ko,ta=$o.TypeError,ra=$o.WeakMap;if(Go||Xo.state){var na=Xo.state||(Xo.state=new ra),oa=Yo(na.get),aa=Yo(na.has),ia=Yo(na.set);Do=function(e,t){if(aa(na,e))throw new ta("Object already initialized");return t.facade=e,ia(na,e,t),t},Io=function(e){return oa(na,e)||{}},Ro=function(e){return aa(na,e)}}else{var sa=Zo("state");ea[sa]=!0,Do=function(e,t){if(Jo(e,sa))throw new ta("Object already initialized");return t.facade=e,Qo(e,sa,t),t},Io=function(e){return Jo(e,sa)?e[sa]:{}},Ro=function(e){return Jo(e,sa)}}var la={set:Do,get:Io,has:Ro,enforce:function(e){return Ro(e)?Io(e):Do(e,{})},getterFor:function(e){return function(t){var r;if(!Wo(t)||(r=Io(t)).type!==e)throw ta("Incompatible receiver, "+e+" required");return r}}},ca=tr,ua=Nn,ha=Function.prototype,pa=ca&&Object.getOwnPropertyDescriptor,da=ua(ha,"name"),fa=da&&"something"===function(){}.name,ma=da&&(!ca||ca&&pa(ha,"name").configurable),ga=Xt,ba=Cr,ya=Nn,va=Ao,Sa=bn,ka=qo,wa={EXISTS:da,PROPER:fa,CONFIGURABLE:ma}.CONFIGURABLE,Ea=la.get,Pa=la.enforce,Ta=String(String).split("String");(_o.exports=function(e,t,r,n){var o,a=!!n&&!!n.unsafe,i=!!n&&!!n.enumerable,s=!!n&&!!n.noTargetGet,l=n&&void 0!==n.name?n.name:t;ba(r)&&("Symbol("===String(l).slice(0,7)&&(l="["+String(l).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!ya(r,"name")||wa&&r.name!==l)&&va(r,"name",l),(o=Pa(r)).source||(o.source=Ta.join("string"==typeof l?l:""))),e!==ga?(a?!s&&e[t]&&(i=!0):delete e[t],i?e[t]=r:va(e,t,r)):i?e[t]=r:Sa(t,r)})(Function.prototype,"toString",(function(){return ba(this)&&Ea(this).source||ka(this)}));var Na={},xa=Math.ceil,Oa=Math.floor,Aa=function(e){var t=+e;return t!=t||0===t?0:(t>0?Oa:xa)(t)},_a=Aa,Ca=Math.max,La=Math.min,Ba=Aa,Da=Math.min,Ia=function(e){return e>0?Da(Ba(e),9007199254740991):0},Ra=function(e){return Ia(e.length)},qa=_r,Ma=function(e,t){var r=_a(e);return r<0?Ca(r+t,0):La(r,t)},ja=Ra,Ha=function(e){return function(t,r,n){var o,a=qa(t),i=ja(a),s=Ma(n,i);if(e&&r!=r){for(;i>s;)if((o=a[s++])!=o)return!0}else for(;i>s;s++)if((e||s in a)&&a[s]===r)return e||s||0;return!e&&-1}},Va={includes:Ha(!0),indexOf:Ha(!1)},Ua=Nn,za=_r,Fa=Va.indexOf,Ka=Ko,Ga=mr([].push),$a=function(e,t){var r,n=za(e),o=0,a=[];for(r in n)!Ua(Ka,r)&&Ua(n,r)&&Ga(a,r);for(;t.length>o;)Ua(n,r=t[o++])&&(~Fa(a,r)||Ga(a,r));return a},Ya=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"].concat("length","prototype");Na.f=Object.getOwnPropertyNames||function(e){return $a(e,Ya)};var Wa={};Wa.f=Object.getOwnPropertySymbols;var Qa=qr,Ja=Na,Xa=Wa,Za=So,ei=mr([].concat),ti=Qa("Reflect","ownKeys")||function(e){var t=Ja.f(Za(e)),r=Xa.f;return r?ei(t,r(e)):t},ri=Nn,ni=ti,oi=Zt,ai=mo,ii=er,si=Cr,li=/#|\.prototype\./,ci=function(e,t){var r=hi[ui(e)];return r==di||r!=pi&&(si(t)?ii(t):!!t)},ui=ci.normalize=function(e){return String(e).replace(li,".").toLowerCase()},hi=ci.data={},pi=ci.NATIVE="N",di=ci.POLYFILL="P",fi=ci,mi=Xt,gi=Zt.f,bi=Ao,yi=_o.exports,vi=bn,Si=function(e,t){for(var r=ni(t),n=ai.f,o=oi.f,a=0;a<r.length;a++){var i=r[a];ri(e,i)||n(e,i,o(t,i))}},ki=fi,wi={};wi[Un("toStringTag")]="z";var Ei=Xt,Pi="[object z]"===String(wi),Ti=Cr,Ni=vr,xi=Un("toStringTag"),Oi=Ei.Object,Ai="Arguments"==Ni(function(){return arguments}()),_i=Pi?Ni:function(e){var t,r,n;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=function(e,t){try{return e[t]}catch(e){}}(t=Oi(e),xi))?r:Ai?Ni(t):"Object"==(n=Ni(t))&&Ti(t.callee)?"Arguments":n},Ci=Xt.String,Li=mr([].slice),Bi=Math.floor,Di=function(e,t){var r=e.length,n=Bi(r/2);return r<8?Ii(e,t):Ri(e,Di(Li(e,0,n),t),Di(Li(e,n),t),t)},Ii=function(e,t){for(var r,n,o=e.length,a=1;a<o;){for(n=a,r=e[a];n&&t(e[n-1],r)>0;)e[n]=e[--n];n!==a++&&(e[n]=r)}return e},Ri=function(e,t,r,n){for(var o=t.length,a=r.length,i=0,s=0;i<o||s<a;)e[i+s]=i<o&&s<a?n(t[i],r[s])<=0?t[i++]:r[s++]:i<o?t[i++]:r[s++];return e},qi=Di,Mi=er,ji=jr.match(/firefox\/(\d+)/i),Hi=!!ji&&+ji[1],Vi=/MSIE|Trident/.test(jr),Ui=jr.match(/AppleWebKit\/(\d+)\./),zi=!!Ui&&+Ui[1],Fi=function(e,t){var r,n,o,a,i,s=e.target,l=e.global,c=e.stat;if(r=l?mi:c?mi[s]||vi(s,{}):(mi[s]||{}).prototype)for(n in t){if(a=t[n],o=e.noTargetGet?(i=gi(r,n))&&i.value:r[n],!ki(l?n:s+(c?".":"#")+n,e.forced)&&void 0!==o){if(typeof a==typeof o)continue;Si(a,o)}(e.sham||o&&o.sham)&&bi(a,"sham",!0),yi(r,n,a,e)}},Ki=mr,Gi=ln,$i=En,Yi=Ra,Wi=function(e){if("Symbol"===_i(e))throw TypeError("Cannot convert a Symbol value to a string");return Ci(e)},Qi=er,Ji=qi,Xi=function(e,t){var r=[][e];return!!r&&Mi((function(){r.call(null,t||function(){throw 1},1)}))},Zi=Hi,es=Vi,ts=Gr,rs=zi,ns=[],os=Ki(ns.sort),as=Ki(ns.push),is=Qi((function(){ns.sort(void 0)})),ss=Qi((function(){ns.sort(null)})),ls=Xi("sort"),cs=!Qi((function(){if(ts)return ts<70;if(!(Zi&&Zi>3)){if(es)return!0;if(rs)return rs<603;var e,t,r,n,o="";for(e=65;e<76;e++){switch(t=String.fromCharCode(e),e){case 66:case 69:case 70:case 72:r=3;break;case 68:case 71:r=4;break;default:r=2}for(n=0;n<47;n++)ns.push({k:t+n,v:r})}for(ns.sort((function(e,t){return t.v-e.v})),n=0;n<ns.length;n++)t=ns[n].k.charAt(0),o.charAt(o.length-1)!==t&&(o+=t);return"DGBEFHACIJK"!==o}}));Fi({target:"Array",proto:!0,forced:is||!ss||!ls||!cs},{sort:function(e){void 0!==e&&Gi(e);var t=$i(this);if(cs)return void 0===e?os(t):os(t,e);var r,n,o=[],a=Yi(t);for(n=0;n<a;n++)n in t&&as(o,t[n]);for(Ji(o,function(e){return function(t,r){return void 0===r?-1:void 0===t?1:void 0!==e?+e(t,r)||0:Wi(t)>Wi(r)?1:-1}}(e)),r=o.length,n=0;n<r;)t[n]=o[n++];for(;n<a;)delete t[n++];return t}});var us={},hs={};Object.defineProperty(hs,"__esModule",{value:!0}),hs.escapeAttrValue=function(e){if(ps.test(e))return e.replace(ds,gs);return e},hs.escapeText=function(e){if(fs.test(e))return e.replace(ms,bs);return e},hs.sortByLoc=function(e,t){if(e.loc.isInvisible||t.loc.isInvisible)return 0;if(e.loc.startPosition.line<t.loc.startPosition.line)return-1;if(e.loc.startPosition.line===t.loc.startPosition.line&&e.loc.startPosition.column<t.loc.startPosition.column)return-1;if(e.loc.startPosition.line===t.loc.startPosition.line&&e.loc.startPosition.column===t.loc.startPosition.column)return 0;return 1};const ps=/[\xA0"&]/,ds=new RegExp(ps.source,"g"),fs=/[\xA0&<>]/,ms=new RegExp(fs.source,"g");function gs(e){switch(e.charCodeAt(0)){case 160:return"&nbsp;";case 34:return"&quot;";case 38:return"&amp;";default:return e}}function bs(e){switch(e.charCodeAt(0)){case 160:return"&nbsp;";case 38:return"&amp;";case 60:return"&lt;";case 62:return"&gt;";default:return e}}Object.defineProperty(us,"__esModule",{value:!0}),us.default=us.voidMap=void 0;var ys=hs;const vs=Object.create(null);us.voidMap=vs;"area base br col command embed hr img input keygen link meta param source track wbr".split(" ").forEach((e=>{vs[e]=!0}));const Ss=/\S/;us.default=class{constructor(e){this.buffer="",this.options=e}handledByOverride(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(void 0!==this.options.override){let r=this.options.override(e,this.options);if("string"==typeof r)return t&&""!==r&&Ss.test(r[0])&&(r=" ".concat(r)),this.buffer+=r,!0}return!1}Node(e){switch(e.type){case"MustacheStatement":case"BlockStatement":case"PartialStatement":case"MustacheCommentStatement":case"CommentStatement":case"TextNode":case"ElementNode":case"AttrNode":case"Block":case"Template":return this.TopLevelStatement(e);case"StringLiteral":case"BooleanLiteral":case"NumberLiteral":case"UndefinedLiteral":case"NullLiteral":case"PathExpression":case"SubExpression":return this.Expression(e);case"Program":return this.Block(e);case"ConcatStatement":return this.ConcatStatement(e);case"Hash":return this.Hash(e);case"HashPair":return this.HashPair(e);case"ElementModifierStatement":return this.ElementModifierStatement(e)}}Expression(e){switch(e.type){case"StringLiteral":case"BooleanLiteral":case"NumberLiteral":case"UndefinedLiteral":case"NullLiteral":return this.Literal(e);case"PathExpression":return this.PathExpression(e);case"SubExpression":return this.SubExpression(e)}}Literal(e){switch(e.type){case"StringLiteral":return this.StringLiteral(e);case"BooleanLiteral":return this.BooleanLiteral(e);case"NumberLiteral":return this.NumberLiteral(e);case"UndefinedLiteral":return this.UndefinedLiteral(e);case"NullLiteral":return this.NullLiteral(e)}}TopLevelStatement(e){switch(e.type){case"MustacheStatement":return this.MustacheStatement(e);case"BlockStatement":return this.BlockStatement(e);case"PartialStatement":return this.PartialStatement(e);case"MustacheCommentStatement":return this.MustacheCommentStatement(e);case"CommentStatement":return this.CommentStatement(e);case"TextNode":return this.TextNode(e);case"ElementNode":return this.ElementNode(e);case"Block":case"Template":return this.Block(e);case"AttrNode":return this.AttrNode(e)}}Block(e){if(e.chained){e.body[0].chained=!0}this.handledByOverride(e)||this.TopLevelStatements(e.body)}TopLevelStatements(e){e.forEach((e=>this.TopLevelStatement(e)))}ElementNode(e){this.handledByOverride(e)||(this.OpenElementNode(e),this.TopLevelStatements(e.children),this.CloseElementNode(e))}OpenElementNode(e){this.buffer+="<".concat(e.tag);const t=[...e.attributes,...e.modifiers,...e.comments].sort(ys.sortByLoc);for(const e of t)switch(this.buffer+=" ",e.type){case"AttrNode":this.AttrNode(e);break;case"ElementModifierStatement":this.ElementModifierStatement(e);break;case"MustacheCommentStatement":this.MustacheCommentStatement(e)}e.blockParams.length&&this.BlockParams(e.blockParams),e.selfClosing&&(this.buffer+=" /"),this.buffer+=">"}CloseElementNode(e){e.selfClosing||vs[e.tag.toLowerCase()]||(this.buffer+="</".concat(e.tag,">"))}AttrNode(e){if(this.handledByOverride(e))return;let{name:t,value:r}=e;this.buffer+=t,("TextNode"!==r.type||r.chars.length>0)&&(this.buffer+="=",this.AttrNodeValue(r))}AttrNodeValue(e){"TextNode"===e.type?(this.buffer+='"',this.TextNode(e,!0),this.buffer+='"'):this.Node(e)}TextNode(e,t){this.handledByOverride(e)||("raw"===this.options.entityEncoding?this.buffer+=e.chars:this.buffer+=t?(0,ys.escapeAttrValue)(e.chars):(0,ys.escapeText)(e.chars))}MustacheStatement(e){this.handledByOverride(e)||(this.buffer+=e.escaped?"{{":"{{{",e.strip.open&&(this.buffer+="~"),this.Expression(e.path),this.Params(e.params),this.Hash(e.hash),e.strip.close&&(this.buffer+="~"),this.buffer+=e.escaped?"}}":"}}}")}BlockStatement(e){this.handledByOverride(e)||(e.chained?(this.buffer+=e.inverseStrip.open?"{{~":"{{",this.buffer+="else "):this.buffer+=e.openStrip.open?"{{~#":"{{#",this.Expression(e.path),this.Params(e.params),this.Hash(e.hash),e.program.blockParams.length&&this.BlockParams(e.program.blockParams),e.chained?this.buffer+=e.inverseStrip.close?"~}}":"}}":this.buffer+=e.openStrip.close?"~}}":"}}",this.Block(e.program),e.inverse&&(e.inverse.chained||(this.buffer+=e.inverseStrip.open?"{{~":"{{",this.buffer+="else",this.buffer+=e.inverseStrip.close?"~}}":"}}"),this.Block(e.inverse)),e.chained||(this.buffer+=e.closeStrip.open?"{{~/":"{{/",this.Expression(e.path),this.buffer+=e.closeStrip.close?"~}}":"}}"))}BlockParams(e){this.buffer+=" as |".concat(e.join(" "),"|")}PartialStatement(e){this.handledByOverride(e)||(this.buffer+="{{>",this.Expression(e.name),this.Params(e.params),this.Hash(e.hash),this.buffer+="}}")}ConcatStatement(e){this.handledByOverride(e)||(this.buffer+='"',e.parts.forEach((e=>{"TextNode"===e.type?this.TextNode(e,!0):this.Node(e)})),this.buffer+='"')}MustacheCommentStatement(e){this.handledByOverride(e)||(this.buffer+="{{!--".concat(e.value,"--}}"))}ElementModifierStatement(e){this.handledByOverride(e)||(this.buffer+="{{",this.Expression(e.path),this.Params(e.params),this.Hash(e.hash),this.buffer+="}}")}CommentStatement(e){this.handledByOverride(e)||(this.buffer+="\x3c!--".concat(e.value,"--\x3e"))