ember-introjs
Version:
An Ember Component for intro.js
350 lines • 474 kB
JavaScript
(function(){var e,t,n
mainContext=this,function(){function r(e,t){throw t?new Error("Could not find module "+e+" required by: "+t):new Error("Could not find module "+e)}function i(e,n){var o=e,u=s[o]
u||(o+="/index",u=s[o])
var c=a[o]
if(void 0!==c)return c
c=a[o]={},u||r(e,n)
for(var l=u.deps,p=u.callback,h=new Array(l.length),f=0;f<l.length;f++)"exports"===l[f]?h[f]=c:"require"===l[f]?h[f]=t:h[f]=i(l[f],o)
return p.apply(this,h),c}var o="undefined"==typeof window&&"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)
if(o||(n=this.Ember=this.Ember||{}),"undefined"==typeof n&&(n={}),"undefined"==typeof n.__loader){var s={},a={}
e=function(e,t,n){var r={}
n?(r.deps=t,r.callback=n):(r.deps=[],r.callback=t),s[e]=r},t=function(e){return i(e,null)},t["default"]=t,t.has=function(e){return!!s[e]||!!s[e+"/index"]},t._eak_seen=s,n.__loader={define:e,require:t,registry:s}}else e=n.__loader.define,t=n.__loader.require}(),e("@glimmer/node",["exports","@glimmer/runtime"],function(e,t){"use strict"
function n(e,t){var n,r,i,o=Object.getOwnPropertyNames(t)
for(n=0;n<o.length;n++)r=o[n],i=Object.getOwnPropertyDescriptor(t,r),i&&i.configurable&&void 0===e[r]&&Object.defineProperty(e,r,i)
return e}function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called")
return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t)
e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):n(e,t))}e.NodeDOMTreeConstruction=void 0
var s=function(e){function n(t){return r(this,n),i(this,e.call(this,t))}return o(n,e),n.prototype.setupUselessElement=function(){},n.prototype.insertHTMLBefore=function(e,n,r){var i=n?n.previousSibling:e.lastChild,o=this.document.createRawHTMLSection(r)
e.insertBefore(o,n)
var s=i?i.nextSibling:e.firstChild,a=n?n.previousSibling:e.lastChild
return new t.ConcreteBounds(e,s,a)},n.prototype.createElement=function(e){return this.document.createElement(e)},n.prototype.setAttribute=function(e,t,n){e.setAttribute(t,n)},n}(t.DOMTreeConstruction)
e.NodeDOMTreeConstruction=s}),e("@glimmer/reference",["exports","@glimmer/util"],function(e,t){"use strict"
function n(e,t){var n,r,i,o=Object.getOwnPropertyNames(t)
for(n=0;n<o.length;n++)r=o[n],i=Object.getOwnPropertyDescriptor(t,r),i&&i.configurable&&void 0===e[r]&&Object.defineProperty(e,r,i)
return e}function r(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called")
return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t)
e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):n(e,t))}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e){var t=y.length
y.push(function(e){return e.value()}),v.push(function(e,t){return e.validate(t)}),e.id=t}function a(e){switch(e.length){case 0:return _
case 1:return e[0]
case 2:return x.create(e[0],e[1])
default:return R.create(e)}}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){var n,r,i,o=Object.getOwnPropertyNames(t)
for(n=0;n<o.length;n++)r=o[n],i=Object.getOwnPropertyDescriptor(t,r),i&&i.configurable&&void 0===e[r]&&Object.defineProperty(e,r,i)
return e}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called")
return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function h(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t)
e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):c(e,t))}e.isModified=e.ReferenceCache=e.map=e.CachedReference=e.UpdatableTag=e.CachedTag=e.combine=e.combineSlice=e.combineTagged=e.DirtyableTag=e.CURRENT_TAG=e.VOLATILE_TAG=e.CONSTANT_TAG=e.TagWrapper=e.RevisionTag=e.VOLATILE=e.INITIAL=e.CONSTANT=e.IteratorSynchronizer=e.ReferenceIterator=e.IterationArtifacts=e.referenceFromParts=e.ListItem=e.isConst=e.ConstReference=void 0
var f=0,d=1,m=NaN,g=function(){function e(){o(this,e)}return e.prototype.validate=function(e){return this.value()===e},e}()
g.id=0
var y=[],v=[],b=function(){function e(t,n){o(this,e),this.type=t,this.inner=n}return e.prototype.value=function(){var e=y[this.type]
return e(this.inner)},e.prototype.validate=function(e){var t=v[this.type]
return t(this.inner,e)},e}()
y.push(function(){return f}),v.push(function(e,t){return t===f})
var _=new b(0,null)
y.push(function(){return m}),v.push(function(e,t){return t===m})
var w=new b(1,null)
y.push(function(){return E}),v.push(function(e,t){return t===E})
var O=new b(2,null),E=d,C=function(e){function t(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:E
o(this,t)
var i=r(this,e.call(this))
return i.revision=n,i}return i(t,e),t.create=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:E
return new b(this.id,new t(e))},t.prototype.value=function(){return this.revision},t.prototype.dirty=function(){this.revision=++E},t}(g)
s(C)
var S=function(e){function t(){o(this,t)
var n=r(this,e.apply(this,arguments))
return n.lastChecked=null,n.lastValue=null,n}return i(t,e),t.prototype.value=function(){var e=this.lastChecked,t=this.lastValue
return e!==E&&(this.lastChecked=E,this.lastValue=t=this.compute()),this.lastValue},t.prototype.invalidate=function(){this.lastChecked=null},t}(g),x=function(e){function t(n,i){o(this,t)
var s=r(this,e.call(this))
return s.first=n,s.second=i,s}return i(t,e),t.create=function(e,n){return new b(this.id,new t(e,n))},t.prototype.compute=function(){return Math.max(this.first.value(),this.second.value())},t}(S)
s(x)
var R=function(e){function t(n){o(this,t)
var i=r(this,e.call(this))
return i.tags=n,i}return i(t,e),t.create=function(e){return new b(this.id,new t(e))},t.prototype.compute=function(){var e,t,n=this.tags,r=-1
for(e=0;e<n.length;e++)t=n[e].value(),r=Math.max(t,r)
return r},t}(S)
s(R)
var P=function(e){function t(n){o(this,t)
var i=r(this,e.call(this))
return i.tag=n,i.lastUpdated=d,i}return i(t,e),t.create=function(e){return new b(this.id,new t(e))},t.prototype.compute=function(){return Math.max(this.lastUpdated,this.tag.value())},t.prototype.update=function(e){e!==this.tag&&(this.tag=e,this.lastUpdated=E,this.invalidate())},t}(S)
s(P)
var A,T=function(){function e(){o(this,e),this.lastRevision=null,this.lastValue=null}return e.prototype.value=function(){var e=this.tag,t=this.lastRevision,n=this.lastValue
return t&&e.validate(t)||(n=this.lastValue=this.compute(),this.lastRevision=e.value()),n},e.prototype.invalidate=function(){this.lastRevision=null},e}(),k=function(e){function t(n,i){o(this,t)
var s=r(this,e.call(this))
return s.tag=n.tag,s.reference=n,s.mapper=i,s}return i(t,e),t.prototype.compute=function(){var e=this.reference,t=this.mapper
return t(e.value())},t}(T),j=function(){function e(t){o(this,e),this.lastValue=null,this.lastRevision=null,this.initialized=!1,this.tag=t.tag,this.reference=t}return e.prototype.peek=function(){return this.initialized?this.lastValue:this.initialize()},e.prototype.revalidate=function(){if(!this.initialized)return this.initialize()
var e=this.reference,t=this.lastRevision,n=e.tag
if(n.validate(t))return N
this.lastRevision=n.value()
var r=this.lastValue,i=e.value()
return i===r?N:(this.lastValue=i,i)},e.prototype.initialize=function(){var e=this.reference,t=this.lastValue=e.value()
return this.lastRevision=e.tag.value(),this.initialized=!0,t},e}(),N="adb3b78e-3d22-4e4b-877a-6317c2c5c145",D=function(){function e(t){u(this,e),this.inner=t,this.tag=_}return e.prototype.value=function(){return this.inner},e}(),M=function(e){function t(n,r){l(this,t)
var i=p(this,e.call(this,n.valueReferenceFor(r)))
return i.retained=!1,i.seen=!1,i.key=r.key,i.iterable=n,i.memo=n.memoReferenceFor(r),i}return h(t,e),t.prototype.update=function(e){this.retained=!0,this.iterable.updateValueReference(this.value,e),this.iterable.updateMemoReference(this.memo,e)},t.prototype.shouldRemove=function(){return!this.retained},t.prototype.reset=function(){this.retained=!1,this.seen=!1},t}(t.ListNode),I=function(){function e(n){l(this,e),this.map=(0,t.dict)(),this.list=new t.LinkedList,this.tag=n.tag,this.iterable=n}return e.prototype.isEmpty=function(){var e=this.iterator=this.iterable.iterate()
return e.isEmpty()},e.prototype.iterate=function(){var e=this.iterator||this.iterable.iterate()
return this.iterator=null,e},e.prototype.has=function(e){return!!this.map[e]},e.prototype.get=function(e){return this.map[e]},e.prototype.wasSeen=function(e){var t=this.map[e]
return t&&t.seen},e.prototype.append=function(e){var t=this.map,n=this.list,r=this.iterable,i=t[e.key]=new M(r,e)
return n.append(i),i},e.prototype.insertBefore=function(e,t){var n=this.map,r=this.list,i=this.iterable,o=n[e.key]=new M(i,e)
return o.retained=!0,r.insertBefore(o,t),o},e.prototype.move=function(e,t){var n=this.list
e.retained=!0,n.remove(e),n.insertBefore(e,t)},e.prototype.remove=function(e){var t=this.list
t.remove(e),delete this.map[e.key]},e.prototype.nextNode=function(e){return this.list.nextNode(e)},e.prototype.head=function(){return this.list.head()},e}(),L=function(){function e(t){l(this,e),this.iterator=null
var n=new I(t)
this.artifacts=n}return e.prototype.next=function(){var e=this.artifacts,t=this.iterator=this.iterator||e.iterate(),n=t.next()
return n?e.append(n):null},e}();(function(e){e[e.Append=0]="Append",e[e.Prune=1]="Prune",e[e.Done=2]="Done"})(A||(A={}))
var U=function(){function e(t){var n=t.target,r=t.artifacts
l(this,e),this.target=n,this.artifacts=r,this.iterator=r.iterate(),this.current=r.head()}return e.prototype.sync=function(){for(var e=A.Append;;)switch(e){case A.Append:e=this.nextAppend()
break
case A.Prune:e=this.nextPrune()
break
case A.Done:return void this.nextDone()}},e.prototype.advanceToKey=function(e){for(var t=this.current,n=this.artifacts,r=t;r&&r.key!==e;)r.seen=!0,r=n.nextNode(r)
this.current=r&&n.nextNode(r)},e.prototype.nextAppend=function(){var e=this.iterator,t=this.current,n=this.artifacts,r=e.next()
if(null===r)return this.startPrune()
var i=r.key
return t&&t.key===i?this.nextRetain(r):n.has(i)?this.nextMove(r):this.nextInsert(r),A.Append},e.prototype.nextRetain=function(e){var t=this.artifacts,n=this.current
n=n,n.update(e),this.current=t.nextNode(n),this.target.retain(e.key,n.value,n.memo)},e.prototype.nextMove=function(e){var t=this.current,n=this.artifacts,r=this.target,i=e.key,o=n.get(e.key)
o.update(e),n.wasSeen(e.key)?(n.move(o,t),r.move(o.key,o.value,o.memo,t?t.key:null)):this.advanceToKey(i)},e.prototype.nextInsert=function(e){var t=this.artifacts,n=this.target,r=this.current,i=t.insertBefore(e,r)
n.insert(i.key,i.value,i.memo,r?r.key:null)},e.prototype.startPrune=function(){return this.current=this.artifacts.head(),A.Prune},e.prototype.nextPrune=function(){var e=this.artifacts,t=this.target,n=this.current
if(null===n)return A.Done
var r=n
return this.current=e.nextNode(r),r.shouldRemove()?(e.remove(r),t["delete"](r.key)):r.reset(),A.Prune},e.prototype.nextDone=function(){this.target.done()},e}()
e.ConstReference=D,e.isConst=function(e){return e.tag===_},e.ListItem=M,e.referenceFromParts=function(e,t){var n,r=e
for(n=0;n<t.length;n++)r=r.get(t[n])
return r},e.IterationArtifacts=I,e.ReferenceIterator=L,e.IteratorSynchronizer=U,e.CONSTANT=f,e.INITIAL=d,e.VOLATILE=m,e.RevisionTag=g,e.TagWrapper=b,e.CONSTANT_TAG=_,e.VOLATILE_TAG=w,e.CURRENT_TAG=O,e.DirtyableTag=C,e.combineTagged=function(e){var t,n,r,i=[]
for(t=0,n=e.length;t<n;t++){if(r=e[t].tag,r===w)return w
r!==_&&i.push(r)}return a(i)},e.combineSlice=function(e){for(var t,n=[],r=e.head();null!==r;){if(t=r.tag,t===w)return w
t!==_&&n.push(t),r=e.nextNode(r)}return a(n)},e.combine=function(e){var t,n,r,i=[]
for(t=0,n=e.length;t<n;t++){if(r=e[t],r===w)return w
r!==_&&i.push(r)}return a(i)},e.CachedTag=S,e.UpdatableTag=P,e.CachedReference=T,e.map=function(e,t){return new k(e,t)},e.ReferenceCache=j,e.isModified=function(e){return e!==N}}),e("@glimmer/runtime",["exports","@glimmer/util","@glimmer/reference","@glimmer/wire-format"],function(e,t,n,r){"use strict"
function i(e,t){var n,r,i,o=Object.getOwnPropertyNames(t)
for(n=0;n<o.length;n++)r=o[n],i=Object.getOwnPropertyDescriptor(t,r),i&&i.configurable&&void 0===e[r]&&Object.defineProperty(e,r,i)
return e}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called")
return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t)
e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):i(e,t))}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){var n,r,i,o=Object.getOwnPropertyNames(t)
for(n=0;n<o.length;n++)r=o[n],i=Object.getOwnPropertyDescriptor(t,r),i&&i.configurable&&void 0===e[r]&&Object.defineProperty(e,r,i)
return e}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called")
return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function p(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t)
e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):u(e,t))}function h(e,t){var n,r,i,o=Object.getOwnPropertyNames(t)
for(n=0;n<o.length;n++)r=o[n],i=Object.getOwnPropertyDescriptor(t,r),i&&i.configurable&&void 0===e[r]&&Object.defineProperty(e,r,i)
return e}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called")
return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function m(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t)
e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):h(e,t))}function g(e){return"function"!=typeof e.toString?"":String(e)}function y(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function v(e,t){var n,r,i,o=Object.getOwnPropertyNames(t)
for(n=0;n<o.length;n++)r=o[n],i=Object.getOwnPropertyDescriptor(t,r),i&&i.configurable&&void 0===e[r]&&Object.defineProperty(e,r,i)
return e}function b(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called")
return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function w(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t)
e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):v(e,t))}function O(e,t){var n,r,i,o=Object.getOwnPropertyNames(t)
for(n=0;n<o.length;n++)r=o[n],i=Object.getOwnPropertyDescriptor(t,r),i&&i.configurable&&void 0===e[r]&&Object.defineProperty(e,r,i)
return e}function E(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called")
return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function C(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t)
e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):O(e,t))}function S(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function x(e){var t,n,r=[]
for(t=0;t<e.length;t++)n=e[t].value(),n!==!1&&null!==n&&void 0!==n&&r.push(n)
return 0===r.length?null:r.join(" ")}function R(e){return JSON.stringify("<"+e.tagName.toLowerCase()+" />")}function P(e,t){var n,r,i,o=Object.getOwnPropertyNames(t)
for(n=0;n<o.length;n++)r=o[n],i=Object.getOwnPropertyDescriptor(t,r),i&&i.configurable&&void 0===e[r]&&Object.defineProperty(e,r,i)
return e}function A(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function T(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called")
return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function k(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t)
e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):P(e,t))}function j(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function N(e,t){return new yn(e,t)}function D(e,t){for(var n,r=e.parentElement(),i=e.firstNode(),o=e.lastNode(),s=i;s;){if(n=s.nextSibling,r.insertBefore(s,t),s===o)return n
s=n}return null}function M(e){for(var t,n=e.parentElement(),r=e.firstNode(),i=e.lastNode(),o=r;o;){if(t=o.nextSibling,n.removeChild(o),o===i)return t
o=t}return null}function I(e,t){var n,r,i,o=Object.getOwnPropertyNames(t)
for(n=0;n<o.length;n++)r=o[n],i=Object.getOwnPropertyDescriptor(t,r),i&&i.configurable&&void 0===e[r]&&Object.defineProperty(e,r,i)
return e}function L(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called")
return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function U(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t)
e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):I(e,t))}function F(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function B(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function V(e){return"object"==typeof e&&null!==e&&e[xn]}function z(e,t){var n,r,i,o=Object.getOwnPropertyNames(t)
for(n=0;n<o.length;n++)r=o[n],i=Object.getOwnPropertyDescriptor(t,r),i&&i.configurable&&void 0===e[r]&&Object.defineProperty(e,r,i)
return e}function H(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called")
return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function q(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t)
e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):z(e,t))}function W(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function G(e){return"object"==typeof e&&null!==e&&"function"==typeof e.toHTML}function K(e){return"object"==typeof e&&null!==e&&"number"==typeof e.nodeType}function Q(e){return"string"==typeof e}function Y(e,n,r){if(Q(r))return Pn.insert(e,n,r)
if(G(r))return Tn.insert(e,n,r)
if(K(r))return kn.insert(e,n,r)
throw(0,t.unreachable)()}function $(e,n,r){if(Q(r))return An.insert(e,n,r)
if(K(r))return kn.insert(e,n,r)
throw(0,t.unreachable)()}function J(e,t){var n,r,i,o=Object.getOwnPropertyNames(t)
for(n=0;n<o.length;n++)r=o[n],i=Object.getOwnPropertyDescriptor(t,r),i&&i.configurable&&void 0===e[r]&&Object.defineProperty(e,r,i)
return e}function X(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called")
return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function Z(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t)
e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):J(e,t))}function ee(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function te(e){return null===e||void 0===e||"function"!=typeof e.toString}function ne(e){return te(e)?"":String(e)}function re(e){return te(e)?"":Q(e)?e:G(e)?e.toHTML():K(e)?e:String(e)}function ie(e){return te(e)?"":Q(e)?e:G(e)||K(e)?e:String(e)}function oe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function se(e,t){console.info("Use `context`, and `get(<path>)` to debug this template."),e===t("this")}function ae(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ue(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ce(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function le(e,t){return new nr(e,t)}function pe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function he(e,t){var n,r,i,o=Object.getOwnPropertyNames(t)
for(n=0;n<o.length;n++)r=o[n],i=Object.getOwnPropertyDescriptor(t,r),i&&i.configurable&&void 0===e[r]&&Object.defineProperty(e,r,i)
return e}function fe(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called")
return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function de(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t)
e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):he(e,t))}function me(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ge(e){return"object"==typeof e&&null!==e&&"function"==typeof e.compile}function ye(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ve(e,t,n){var r=e[1],i=e[2],o=e[3]
be(i,n),o?n.dynamicAttrNS(r,o,t):n.dynamicAttr(r,t)}function be(e,t){Array.isArray(e)?pr.compile(e,t):t.primitive(e)}function _e(e,t){var n
if(!e)return 0
for(n=0;n<e.length;n++)be(e[n],t)
return e.length}function we(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new dr,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new gr
return e.add("if",function(e,t,n,r,i){if(!e||1!==e.length)throw new Error("SYNTAX ERROR: #if requires a single argument")
i.startLabels(),i.pushFrame(),i.returnTo("END"),be(e[0],i),i.test("environment"),i.enter(1),i.jumpUnless("ELSE"),i.invokeStatic(n),r?(i.jump("EXIT"),i.label("ELSE"),i.invokeStatic(r),i.label("EXIT"),i.exit(),i["return"]()):(i.label("ELSE"),i.exit(),i["return"]()),i.label("END"),i.popFrame(),i.stopLabels()}),e.add("unless",function(e,t,n,r,i){if(!e||1!==e.length)throw new Error("SYNTAX ERROR: #unless requires a single argument")
i.startLabels(),i.pushFrame(),i.returnTo("END"),be(e[0],i),i.test("environment"),i.enter(1),i.jumpIf("ELSE"),i.invokeStatic(n),r?(i.jump("EXIT"),i.label("ELSE"),i.invokeStatic(r),i.label("EXIT"),i.exit(),i["return"]()):(i.label("ELSE"),i.exit(),i["return"]()),i.label("END"),i.popFrame(),i.stopLabels()}),e.add("with",function(e,t,n,r,i){if(!e||1!==e.length)throw new Error("SYNTAX ERROR: #with requires a single argument")
i.startLabels(),i.pushFrame(),i.returnTo("END"),be(e[0],i),i.dup(),i.test("environment"),i.enter(2),i.jumpUnless("ELSE"),i.invokeStatic(n,1),r?(i.jump("EXIT"),i.label("ELSE"),i.invokeStatic(r),i.label("EXIT"),i.exit(),i["return"]()):(i.label("ELSE"),i.exit(),i["return"]()),i.label("END"),i.popFrame(),i.stopLabels()}),e.add("each",function(e,t,n,r,i){i.startLabels(),i.pushFrame(),i.returnTo("END"),t&&"key"===t[0][0]?be(t[1][0],i):i.primitive(null),be(e[0],i),i.enter(2),i.putIterator(),i.jumpUnless("ELSE"),i.pushFrame(),i.returnTo("ITER"),i.dup(Tt.fp,1),i.enterList("BODY"),i.label("ITER"),i.iterate("BREAK"),i.label("BODY"),i.invokeStatic(n,2),i.pop(2),i.exit(),i["return"](),i.label("BREAK"),i.exitList(),i.popFrame(),r?(i.jump("EXIT"),i.label("ELSE"),i.invokeStatic(r),i.label("EXIT"),i.exit(),i["return"]()):(i.label("ELSE"),i.exit(),i["return"]()),i.label("END"),i.popFrame(),i.stopLabels()}),e.add("-in-element",function(e,t,n,r,i){var o,s
if(!e||1!==e.length)throw new Error("SYNTAX ERROR: #-in-element requires a single argument")
if(i.startLabels(),i.pushFrame(),i.returnTo("END"),t&&t[0].length){if(o=t[0],s=t[1],1!==o.length||"nextSibling"!==o[0])throw new Error("SYNTAX ERROR: #-in-element does not take a `"+o[0]+"` option")
be(s[0],i)}else be(null,i)
be(e[0],i),i.dup(),i.test("simple"),i.enter(3),i.jumpUnless("ELSE"),i.pushRemoteElement(),i.invokeStatic(n),i.popRemoteElement(),i.label("ELSE"),i.exit(),i["return"](),i.label("END"),i.popFrame(),i.stopLabels()}),e.add("-with-dynamic-vars",function(e,t,n,r,i){var o,s
t?(o=t[0],s=t[1],_e(s,i),i.pushDynamicScope(),i.bindDynamicScope(o),i.invokeStatic(n),i.popDynamicScope()):i.invokeStatic(n)}),{blocks:e,inlines:t}}function Oe(e,t){sr.compile(e,t)}function Ee(e,t,n){var r,i=new nr(n,t)
for(r=0;r<e.length;r++)Oe(e[r],i)
return i}function Ce(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Se(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function xe(e,t){var n,r,i,o=e[2],s=e[4]
for(n=0;n<o.length;n++)t.push(o[n])
if(t.push([br.FlushElement]),s)for(r=s.statements,i=0;i<r.length;i++)t.push(r[i])
t.push([br.CloseElement])}function Re(e,n,r,i){var o=n.push(ir)
i.push([br.ClientSideStatement,zn.OpenComponentElement,e]),i.push([br.ClientSideStatement,zn.DidCreateElement]),i.push([br.Yield,o,t.EMPTY_ARRAY]),i.push.apply(i,r)}function Pe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ae(e,t){return e.indexOf(t)!==-1}function Te(e,t){return(null===e||Ae(Er,e))&&Ae(Sr,t)}function ke(e,t){return null!==e&&(Ae(Cr,e)&&Ae(xr,t))}function je(e,t){return Te(e,t)||ke(e,t)}function Ne(e,t,n,r){var i,o=null
if(null===r||void 0===r)return r
if(G(r))return r.toHTML()
o=t?t.tagName.toUpperCase():null
var s=ne(r)
return Te(o,n)&&(i=e.protocolForURL(s),Ae(Or,i))?"unsafe:"+s:ke(o,n)?"unsafe:"+s:s}function De(e,t){var n,r=void 0,i=void 0
return t in e?(i=t,r="prop"):(n=t.toLowerCase(),n in e?(r="prop",i=n):(r="attr",i=t)),"prop"!==r||"style"!==i.toLowerCase()&&!Me(e.tagName,i)||(r="attr"),{normalized:i,type:r}}function Me(e,t){var n=Rr[e.toUpperCase()]
return n&&n[t.toLowerCase()]||!1}function Ie(e,t){var n,r,i,o=Object.getOwnPropertyNames(t)
for(n=0;n<o.length;n++)r=o[n],i=Object.getOwnPropertyDescriptor(t,r),i&&i.configurable&&void 0===e[r]&&Object.defineProperty(e,r,i)
return e}function Le(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ue(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called")
return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function Fe(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t)
e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):Ie(e,t))}function Be(e,t){if(!e)return t
if(!ze(e))return t
var n=e.createElement("div")
return function(e){function t(){return Le(this,t),Ue(this,e.apply(this,arguments))}return Fe(t,e),t.prototype.insertHTMLBefore=function(t,r,i){if(null===i||""===i)return e.prototype.insertHTMLBefore.call(this,t,r,i)
var o=t.tagName.toLowerCase(),s=Pr[o]
return void 0===s?e.prototype.insertHTMLBefore.call(this,t,r,i):Ve(t,s,n,i,r)},t}(t)}function Ve(e,t,n,r,i){var o,s=t.before+r+t.after
n.innerHTML=s
var a=n
for(o=0;o<t.depth;o++)a=a.childNodes[0]
var u=st(a,e,i),c=u[0],l=u[1]
return new gn(e,c,l)}function ze(e){var t=e.createElement("table")
try{t.innerHTML="<tbody></tbody>"}catch(n){}finally{if(0!==t.childNodes.length)return!1}return!0}function He(e,t){var n,r,i,o=Object.getOwnPropertyNames(t)
for(n=0;n<o.length;n++)r=o[n],i=Object.getOwnPropertyDescriptor(t,r),i&&i.configurable&&void 0===e[r]&&Object.defineProperty(e,r,i)
return e}function qe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function We(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called")
return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function Ge(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t)
e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):He(e,t))}function Ke(e,t,n){if(!e)return t
if(!Ye(e,n))return t
var r=e.createElement("div")
return function(e){function t(){return qe(this,t),We(this,e.apply(this,arguments))}return Ge(t,e),t.prototype.insertHTMLBefore=function(t,i,o){return null===o||""===o?e.prototype.insertHTMLBefore.call(this,t,i,o):t.namespaceURI!==n?e.prototype.insertHTMLBefore.call(this,t,i,o):Qe(t,r,o,i)},t}(t)}function Qe(e,t,n,r){t.innerHTML="<svg>"+n+"</svg>"
var i=st(t.firstChild,e,r),o=i[0],s=i[1]
return new gn(e,o,s)}function Ye(e,t){var n=e.createElementNS(t,"svg")
try{n.insertAdjacentHTML("beforeend","<circle></circle>")}catch(r){}finally{return 1!==n.childNodes.length||"http://www.w3.org/2000/svg"!==n.firstChild.namespaceURI}}function $e(e,t){var n,r,i,o=Object.getOwnPropertyNames(t)
for(n=0;n<o.length;n++)r=o[n],i=Object.getOwnPropertyDescriptor(t,r),i&&i.configurable&&void 0===e[r]&&Object.defineProperty(e,r,i)
return e}function Je(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Xe(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called")
return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function Ze(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t)
e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):$e(e,t))}function et(e,t){return e&&tt(e)?function(e){function t(n){Je(this,t)
var r=Xe(this,e.call(this,n))
return r.uselessComment=r.createComment(""),r}return Ze(t,e),t.prototype.insertHTMLBefore=function(t,n,r){if(null===r)return e.prototype.insertHTMLBefore.call(this,t,n,r)
var i=!1,o=n?n.previousSibling:t.lastChild
o&&o instanceof Text&&(i=!0,t.insertBefore(this.uselessComment,n))
var s=e.prototype.insertHTMLBefore.call(this,t,n,r)
return i&&t.removeChild(this.uselessComment),s},t}(t):t}function tt(e){var t=e.createElement("div")
return t.innerHTML="first",t.insertAdjacentHTML("beforeend","second"),2!==t.childNodes.length}function nt(e,t){var n,r,i,o=Object.getOwnPropertyNames(t)
for(n=0;n<o.length;n++)r=o[n],i=Object.getOwnPropertyDescriptor(t,r),i&&i.configurable&&void 0===e[r]&&Object.defineProperty(e,r,i)
return e}function rt(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called")
return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function it(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t)
e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):nt(e,t))}function ot(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function st(e,t,n){for(var r=e.firstChild,i=null,o=r;o;)i=o,o=o.nextSibling,t.insertBefore(i,n)
return[r,i]}function at(e,t,n,r){var i=t,o=e,s=n,a=s?s.previousSibling:i.lastChild,u=void 0
if(null===r||""===r)return new gn(i,null,null)
null===s?(i.insertAdjacentHTML("beforeend",r),u=i.lastChild):s instanceof HTMLElement?(s.insertAdjacentHTML("beforebegin",r),u=s.previousSibling):(i.insertBefore(o,s),o.insertAdjacentHTML("beforebegin",r),u=o.previousSibling,i.removeChild(o))
var c=a?a.nextSibling:i.firstChild
return new gn(i,c,u)}function ut(e){return e.nodeType===Node.DOCUMENT_FRAGMENT_NODE}function ct(e,t){var n,r,i,o=Object.getOwnPropertyNames(t)
for(n=0;n<o.length;n++)r=o[n],i=Object.getOwnPropertyDescriptor(t,r),i&&i.configurable&&void 0===e[r]&&Object.defineProperty(e,r,i)
return e}function lt(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called")
return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function pt(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t)
e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):ct(e,t))}function ht(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ft(e,t){var n=e.tagName,r=e.namespaceURI===Ar
if(r)return mt(n,t)
var i=De(e,t),o=i.type,s=i.normalized
return"attr"===o?mt(n,s):dt(n,s)}function dt(e,t){return je(e,t)?new Hr(t):vt(e,t)?Wr:bt(e,t)?Kr:new zr(t)}function mt(e,t){return je(e,t)?new Qr(t):new Vr(t)}function gt(e){return e===!1||void 0===e||null===e?null:e===!0?"":"function"==typeof e?null:String(e)}function yt(e){return null===e||void 0===e}function vt(e,t){return("INPUT"===e||"TEXTAREA"===e)&&"value"===t}function bt(e,t){return"OPTION"===e&&"selected"===t}function _t(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function wt(e,t){var n,r,i,o=Object.getOwnPropertyNames(t)
for(n=0;n<o.length;n++)r=o[n],i=Object.getOwnPropertyDescriptor(t,r),i&&i.configurable&&void 0===e[r]&&Object.defineProperty(e,r,i)
return e}function Ot(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called")
return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function Et(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t)
e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):wt(e,t))}function Ct(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function St(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function xt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Rt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Pt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function At(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}e.ConcreteBounds=e.ElementStack=e.insertHTMLBefore=e.isWhitespace=e.DOMTreeConstruction=e.IDOMChanges=e.DOMChanges=e.isComponentDefinition=e.ComponentDefinition=e.PartialDefinition=e.Environment=e.Scope=e.isSafeString=e.RenderResult=e.UpdatingVM=e.compileExpression=e.compileList=e.InlineMacros=e.BlockMacros=e.getDynamicVar=e.resetDebuggerCallback=e.setDebuggerCallback=e.normalizeTextValue=e.debugSlice=e.Register=e.readDOMAttr=e.defaultPropertyManagers=e.defaultAttributeManagers=e.defaultManagers=e.INPUT_VALUE_PROPERTY_MANAGER=e.PropertyManager=e.AttributeManager=e.IAttributeManager=e.CompiledDynamicTemplate=e.CompiledStaticTemplate=e.compileLayout=e.OpcodeBuilderDSL=e.ConditionalReference=e.PrimitiveReference=e.UNDEFINED_REFERENCE=e.NULL_REFERENCE=e.templateFactory=e.Simple=void 0
var Tt;(function(e){e[e.pc=0]="pc",e[e.ra=1]="ra",e[e.fp=2]="fp",e[e.sp=3]="sp",e[e.s0=4]="s0",e[e.s1=5]="s1",e[e.t0=6]="t0",e[e.t1=7]="t1"})(Tt||(e.Register=Tt={}))
var kt=function(){function e(){a(this,e),this.evaluateOpcode=(0,t.fillNulls)(72).slice()}return e.prototype.add=function(e,t){this.evaluateOpcode[e]=t},e.prototype.evaluate=function(e,t,n){var r=this.evaluateOpcode[n]
r(e,t)},e}(),jt=new kt,Nt=function(){function e(){a(this,e),(0,t.initializeGuid)(this)}return e.prototype.toJSON=function(){return{guid:this._guid,type:this.type}},e}(),Dt=function(e){function t(){a(this,t)
var n=o(this,e.apply(this,arguments))
return n.next=null,n.prev=null,n}return s(t,e),t}(Nt),Mt=function(e){function t(n){return c(this,t),l(this,e.call(this,n))}return p(t,e),t.create=function(e){return void 0===e?Ut:null===e?Ft:e===!0?Bt:e===!1?Vt:"number"==typeof e?new Lt(e):new It(e)},t.prototype.get=function(){return Ut},t}(n.ConstReference),It=function(e){function t(){c(this,t)
var n=l(this,e.apply(this,arguments))
return n.lengthReference=null,n}return p(t,e),t.prototype.get=function(t){var n
return"length"===t?(n=this.lengthReference,null===n&&(n=this.lengthReference=new Lt(this.inner.length)),n):e.prototype.get.call(this,t)},t}(Mt),Lt=function(e){function t(n){return c(this,t),l(this,e.call(this,n))}return p(t,e),t}(Mt),Ut=new Lt((void 0)),Ft=new Lt(null),Bt=new Lt((!0)),Vt=new Lt((!1)),zt=function(){function e(t){c(this,e),this.inner=t,this.tag=t.tag}return e.prototype.value=function(){return this.toBool(this.inner.value())},e.prototype.toBool=function(e){return!!e},e}(),Ht=function(e){function t(r){f(this,t)
var i=d(this,e.call(this))
return i.parts=r,i.tag=(0,n.combineTagged)(r),i}return m(t,e),t.prototype.compute=function(){var e,t,n=new Array
for(e=0;e<this.parts.length;e++)t=this.parts[e].value(),null!==t&&void 0!==t&&(n[e]=g(t))
return n.length>0?n.join(""):null},t}(n.CachedReference)
jt.add(1,function(e,t){var n=t.op1,r=e.stack,i=e.constants.getFunction(n),o=r.pop(),s=i(e,o)
o.clear(),e.stack.push(s)}),jt.add(2,function(e,t){var n=t.op1,r=e.constants.getFunction(n)
e.stack.push(r(e))}),jt.add(5,function(e,t){var n=t.op1,r=e.referenceForSymbol(n)
e.stack.push(r)}),jt.add(4,function(e,t){var n=t.op1,r=e.stack.pop()
e.scope().bindSymbol(n,r)}),jt.add(70,function(e,t){var n=t.op1,r=e.constants.getString(n),i=e.scope().getPartialMap(),o=i[r]
void 0===o&&(o=e.getSelf().get(r)),e.stack.push(o)}),jt.add(19,function(e,t){var n=t.op1,r=t.op2
e.pushRootScope(n,!!r)}),jt.add(6,function(e,t){var n=t.op1,r=e.constants.getString(n),i=e.stack.pop()
e.stack.push(i.get(r))}),jt.add(7,function(e,t){var n=t.op1,r=n?e.constants.getBlock(n):null
e.stack.push(r)}),jt.add(8,function(e,t){var n=t.op1
e.stack.push(e.scope().getBlock(n))}),jt.add(9,function(e,t){var n=t.op1,r=!!e.scope().getBlock(n)
e.stack.push(r?Bt:Vt)}),jt.add(10,function(e,t){var n=t.op1,r=e.scope().getBlock(n),i=r&&r.symbolTable.parameters.length
e.stack.push(i?Bt:Vt)}),jt.add(11,function(e,t){var n,r=t.op1,i=[]
for(n=r;n>0;n--)i.push(e.stack.pop())
e.stack.push(new Ht(i.reverse()))})
var qt=function(){function e(e,t){var n,r
for(n=0;n<t.length;n++)r=t[n],r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),Wt=function(){function e(){y(this,e),this.stack=null,this.positional=new Gt,this.named=new Qt}return e.prototype.empty=function(){return this.setup(null,!0),this},e.prototype.setup=function(e,t){this.stack=e
var n=e.fromTop(0),r=n.length,i=e.fromTop(r+1),o=this.positional
o.setup(e,i+r+2,i)
var s=this.named
s.setup(e,r,n,t)},e.prototype.at=function(e){return this.positional.at(e)},e.prototype.get=function(e){return this.named.get(e)},e.prototype.capture=function(){return{tag:this.tag,length:this.length,positional:this.positional.capture(),named:this.named.capture()}},e.prototype.clear=function(){var e=this.stack,t=this.length
e.pop(t+2)},qt(e,[{key:"tag",get:function(){return(0,n.combineTagged)([this.positional,this.named])}},{key:"length",get:function(){return this.positional.length+this.named.length}}]),e}(),Gt=function(){function e(){y(this,e),this.length=0,this.stack=null,this.start=0,this._tag=null,this._references=null}return e.prototype.setup=function(e,t,n){this.stack=e,this.start=t,this.length=n,this._tag=null,this._references=null},e.prototype.at=function(e){var t=this.start,n=this.length
return e<0||e>=n?Ut:this.stack.fromTop(t-e-1)},e.prototype.capture=function(){return new Kt(this.tag,this.references)},qt(e,[{key:"tag",get:function(){var e=this._tag
return e||(e=this._tag=(0,n.combineTagged)(this.references)),e}},{key:"references",get:function(){var e,t,n=this._references
if(!n)for(e=this.length,n=this._references=new Array(e),t=0;t<e;t++)n[t]=this.at(t)
return n}}]),e}(),Kt=function(){function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:n.length
y(this,e),this.tag=t,this.references=n,this.length=r}return e.prototype.at=function(e){return this.references[e]},e.prototype.value=function(){return this.references.map(this.valueOf)},e.prototype.get=function(e){var t,n=this.references,r=this.length
return"length"===e?Mt.create(r):(t=parseInt(e,10),t<0||t>=r?Ut:n[t])},e.prototype.valueOf=function(e){return e.value()},e}(),Qt=function(){function e(){y(this,e),this.length=0,this._tag=null,this._references=null,this._names=null,this._realNames=t.EMPTY_ARRAY}return e.prototype.setup=function(e,n,r,i){this.stack=e,this.length=n,this._tag=null,this._references=null,i?(this._names=r,this._realNames=t.EMPTY_ARRAY):(this._names=null,this._realNames=r)},e.prototype.has=function(e){return this.names.indexOf(e)!==-1},e.prototype.get=function(e){var t=this.names,n=this.length,r=t.indexOf(e)
return r===-1?Ut:this.stack.fromTop(n-r)},e.prototype.capture=function(){return new Yt(this.tag,this.names,this.references)},e.prototype.sliceName=function(e){return e.slice(1)},qt(e,[{key:"tag",get:function(){return(0,n.combineTagged)(this.references)}},{key:"names",get:function(){var e=this._names
return e||(e=this._names=this._realNames.map(this.sliceName)),e}},{key:"references",get:function(){var e,t,n,r=this._references
if(!r)for(e=this.names,t=this.length,r=this._references=[],n=0;n<t;n++)r[n]=this.get(e[n])
return r}}]),e}(),Yt=function(){function e(t,n,r){y(this,e),this.tag=t,this.names=n,this.references=r,this.length=n.length,this._map=null}return e.prototype.has=function(e){return this.names.indexOf(e)!==-1},e.prototype.get=function(e){var t=this.names,n=this.references,r=t.indexOf(e)
return r===-1?Ut:n[r]},e.prototype.value=function(){var e,n,r=this.names,i=this.references,o=(0,t.dict)()
for(e=0;e<r.length;e++)n=r[e],o[n]=i[e].value()
return o},qt(e,[{key:"map",get:function(){var e,n,r,i,o=this._map
if(!o)for(e=this.names,n=this.references,o=this._map=(0,t.dict)(),r=0;r<e.length;r++)i=e[r],o[i]=n[r]
return o}}]),e}(),$t=new Wt
jt.add(20,function(e){return e.pushChildScope()}),jt.add(21,function(e){return e.popScope()}),jt.add(39,function(e){return e.pushDynamicScope()}),jt.add(40,function(e){return e.popDynamicScope()}),jt.add(12,function(e,t){var n=t.op1
e.stack.push(n)}),jt.add(13,function(e,t){var n=t.op1
e.stack.push(e.constants.getOther(n))}),jt.add(14,function(e,t){var n=t.op1,r=e.stack,i=n&~(3<<30)
switch((n&3<<30)>>>30){case 0:r.push(Mt.create(i))
break
case 1:r.push(Mt.create(e.constants.getFloat(i)))
break
case 2:r.push(Mt.create(e.constants.getString(i)))
break
case 3:switch(i){case 0:r.push(Vt)
break
case 1:r.push(Bt)
break
case 2:r.push(Ft)
break
case 3:r.push(Ut)}}}),jt.add(15,function(e,t){var n=t.op1,r=t.op2,i=e.fetchValue(n)-r
e.stack.dup(i)}),jt.add(16,function(e,t){var n=t.op1
return e.stack.pop(n)}),jt.add(17,function(e,t){var n=t.op1
return e.load(n)}),jt.add(18,function(e,t){var n=t.op1
return e.fetch(n)}),jt.add(38,function(e,t){var n=t.op1,r=e.constants.getArray(n)
e.bindDynamicScope(r)}),jt.add(47,function(e){return e.pushFrame()}),jt.add(48,function(e){return e.popFrame()}),jt.add(49,function(e,t){var n=t.op1
return e.enter(n)}),jt.add(50,function(e){return e.exit()}),jt.add(41,function(e){var t=e.stack,n=t.pop()
t.push(n?n.compileDynamic(e.env):null)}),jt.add(42,function(e,t){var n=t.op1,r=e.constants.getBlock(n),i=r.compileStatic(e.env)
e.call(i.handle)}),jt.add(43,function(e,t){var n=t.op1,r=e.constants.getOther(n),i=e.stack.pop()
r.invoke(e,i)}),jt.add(44,function(e,t){var n=t.op1
return e["goto"](n)}),jt.add(45,function(e,t){var r,i=t.op1,o=e.stack.pop();(0,n.isConst)(o)?o.value()&&e["goto"](i):(r=new n.ReferenceCache(o),r.peek()&&e["goto"](i),e.updateWith(new en(r)))}),jt.add(46,function(e,t){var r,i=t.op1,o=e.stack.pop();(0,n.isConst)(o)?o.value()||e["goto"](i):(r=new n.ReferenceCache(o),r.peek()||e["goto"](i),e.updateWith(new en(r)))}),jt.add(22,function(e){return e["return"]()}),jt.add(23,function(e,t){var n=t.op1
e.returnTo(n)})
var Jt=function(e){return new n.ConstReference((!!e.value()))},Xt=function(e){return e},Zt=function(e,t){return t.toConditionalReference(e)}
jt.add(51,function(e,t){var n=t.op1,r=e.stack,i=r.pop(),o=e.constants.getFunction(n)
r.push(o(i,e.env))})
var en=function(e){function t(n){b(this,t)
var r=_(this,e.call(this))
return r.type="assert",r.tag=n.tag,r.cache=n,r}return w(t,e),t.prototype.evaluate=function(e){var t=this.cache;(0,n.isModified)(t.revalidate())&&e["throw"]()},t.prototype.toJSON=function(){var e=this.type,t=this._guid,n=this.cache,r=void 0
try{r=JSON.stringify(n.peek())}catch(i){r=String(n.peek())}return{args:[],details:{expected:r},guid:t,type:e}},t}(Dt),tn=function(e){function t(n,r){b(this,t)
var i=_(this,e.call(this))
return i.target=r,i.type="jump-if-not-modified",i.tag=n,i.lastRevision=n.value(),i}return w(t,e),t.prototype.evaluate=function(e){var t=this.tag,n=this.target,r=this.lastRevision
!e.alwaysRevalidate&&t.validate(r)&&e["goto"](n)},t.prototype.didModify=function(){this.lastRevision=this.tag.value()},t.prototype.toJSON=function(){return{args:[JSON.stringify(this.target.inspect())],guid:this._guid,type:this.type}},t}(Dt),nn=function(e){function t(r){b(this,t)
var i=_(this,e.call(this))
return i.target=r,i.type="did-modify",i.tag=n.CONSTANT_TAG,i}return w(t,e),t.prototype.evaluate=function(){this.target.didModify()},t}(Dt),rn=function(){function e(r){b(this,e),this.tag=n.CONSTANT_TAG,this.type="label",this.label=null,this.prev=null,this.next=null,(0,t.initializeGuid)(this),this.label=r}return e.prototype.evaluate=function(){},e.prototype.inspect=function(){return this.label+" ["+this._guid+"]"},e.prototype.toJSON=function(){return{args:[JSON.stringify(this.inspect())],guid:this._guid,type:this.type}},e}()
jt.add(24,function(e,t){var n=t.op1
e.elements().appendText(e.constants.getString(n))}),jt.add(25,function(e,t){var n=t.op1
e.elements().appendComment(e.constants.getString(n))}),jt.add(27,function(e,t){var n=t.op1
e.elements().openElement(e.constants.getString(n))}),jt.add(28,function(e,t){var n=t.op1,r=e.constants.getString(n),i=e.stack.pop()
e.elements().openElement(r,i)}),jt.add(29,function(e){var t=e.stack.pop(),n=e.stack.pop().value()
e.elements().openElement(n,t)}),jt.add(36,function(e){var t,r,i=e.stack.pop(),o=e.stack.pop(),s=void 0,a=void 0;(0,n.isConst)(i)?s=i.value():(t=new n.ReferenceCache(i),s=t.peek(),e.updateWith(new en(t))),(0,n.isConst)(o)?a=o.value():(r=new n.ReferenceCache(o),a=r.peek(),e.updateWith(new en(r))),e.elements().pushRemoteElement(s,a)}),jt.add(37,function(e){return e.elements().popRemoteElement()})
var on=function(){function e(){S(this,e),this.list=null,this.isConst=!0}return e.prototype.append=function(e){var t=this.list,r=this.isConst
null===t&&(t=this.list=[]),t.push(e),this.isConst=r&&(0,n.isConst)(e)},e.prototype.toReference=function(){var e=this.list,t=this.isConst
return e?t?Mt.create(x(e)):new sn(e):Ft},e}(),sn=function(e){function t(r){S(this,t)
var i=E(this,e.call(this))
return i.list=[],i.tag=(0,n.combineTagged)(r),i.list=r,i}return C(t,e),t.prototype.compute=function(){return x(this.list)},t}(n.CachedReference),an=function(){function e(t){S(this,e),this.env=t,this.opcodes=null,this.classList=null}return e.prototype.addStaticAttribute=function(e,t,n){"class"===t?this.addClass(Mt.create(n)):this.env.getAppendOperations().setAttribute(e,t,n)},e.prototype.addStaticAttributeNS=function(e,t,n,r){this.env.getAppendOperations().setAttribute(e,n,r,t)},e.prototype.addDynamicAttribute=function(e,t,n,r){var i,o
"class"===t?this.addClass(n):(i=this.env.attributeFor(e,t,r),o=new pn(e,i,t,n),this.addAttribute(o))},e.prototype.addDynamicAttributeNS=function(e,t,n,r,i){var o=this.env.attributeFor(e,n,i,t),s=new pn(e,o,n,r,t)
this.addAttribute(s)},e.prototype.flush=function(e,t){var n,r,i,o,s=t.env,a=this.opcodes,u=this.classList
for(n=0;a&&n<a.length;n++)t.updateWith(a[n])
u&&(r=s.attributeFor(e,"class",!1),i=new pn(e,r,"class",u.toReference()),o=i.flush(s),o&&t.updateWith(o)),this.opcodes=null,this.classList=null},e.prototype.addClass=function(e){var t=this.classList
t||(t=this.classList=new on),t.append(e)},e.prototype.addAttribute=function(e){var t,n=e.flush(this.env)
n&&(t=this.opcodes,t||(t=this.opcodes=[]),t.push(n))},e}(),un=function(){function e(t){S(this,e),this.env=t,this.attributeNames=null,this.attributes=null,this.classList=null}return e.prototype.addStaticAttribute=function(e,t,n){"class"===t?this.addClass(Mt.create(n)):this.shouldAddAt