ember-material-icons
Version:
Google Material icons for your ember-cli app
337 lines • 501 kB
JavaScript
(function(){function e(e,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 t(e,t){return e.raw=t,e}function n(e,t){for(var n=0;n<t.length;n++){var r=t[n]
r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function r(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e}function i(e,t){var n=t({},e)
return delete n.default,n}function o(e,t){for(var n=Object.getOwnPropertyNames(t),r=0;r<n.length;r++){var i=n[r],o=Object.getOwnPropertyDescriptor(t,i)
o&&o.configurable&&void 0===e[i]&&Object.defineProperty(e,i,o)}return e}var s,a,u,l=this;(function(){function e(e,t){throw t?new Error("Could not find module "+e+" required by: "+t):new Error("Could not find module "+e)}function t(n,o){var s=n,u=r[s]
u||(s+="/index",u=r[s])
var l=i[s]
if(void 0!==l)return l
l=i[s]={},u||e(n,o)
for(var c=u.deps,p=u.callback,h=new Array(c.length),f=0;f<c.length;f++)"exports"===c[f]?h[f]=l:"require"===c[f]?h[f]=a:h[f]=t(c[f],s)
return p.apply(this,h),l}var n="undefined"==typeof window&&"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)
if(n||(u=this.Ember=this.Ember||{}),"undefined"==typeof u&&(u={}),"undefined"==typeof u.__loader){var r={},i={}
s=function(e,t,n){var i={}
n?(i.deps=t,i.callback=n):(i.deps=[],i.callback=t),r[e]=i},a=function(e){return t(e,null)},a.default=a,a.has=function(e){return!!r[e]||!!r[e+"/index"]},a._eak_seen=r,u.__loader={define:s,require:a,registry:r}}else s=u.__loader.define,a=u.__loader.require})()
var c={inherits:e,taggedTemplateLiteralLoose:t,slice:Array.prototype.slice,createClass:r,interopExportWildcard:i,defaults:o}
s("@glimmer/di",["exports","@glimmer/util"],function(e,t){"use strict"
function n(e){return e[p]}function r(e,t){e[p]=t}function i(e){var t=e.split(":"),n=t[0],r=t[1]
return!!(n&&r&&0===r.indexOf("/")&&r.split("/").length>3)}function o(e){return void 0!==e.rootName&&void 0!==e.collection&&void 0!==e.name&&void 0!==e.type}function s(e){var t=e.type,n=a(e)
return n?t+":"+n:t}function a(e){var t=[]
if(e.rootName&&t.push(e.rootName),e.collection&&t.push(e.collection),e.namespace&&t.push(e.namespace),e.name&&t.push(e.name),t.length>0){var n=t.join("/")
return o(e)&&(n="/"+n),n}}function u(e){var t={}
if(e.indexOf(":")>-1){var n=e.split(":"),r=n[0],i=n[1]
t.type=r
var o=void 0
0===i.indexOf("/")?(o=i.substr(1).split("/"),t.rootName=o.shift(),t.collection=o.shift()):o=i.split("/"),o.length>0&&(t.name=o.pop(),o.length>0&&(t.namespace=o.join("/")))}else t.type=e
return t}var l=function(){function e(e){var n=arguments.length<=1||void 0===arguments[1]?null:arguments[1]
this._registry=e,this._resolver=n,this._lookups=t.dict(),this._factoryLookups=t.dict()}return e.prototype.factoryFor=function(e){var t=this._factoryLookups[e]
return t||(this._resolver&&(t=this._resolver.retrieve(e)),t||(t=this._registry.registration(e)),t&&(this._factoryLookups[e]=t)),t},e.prototype.lookup=function(e){var t=this._registry.registeredOption(e,"singleton")!==!1
if(t&&this._lookups[e])return this._lookups[e]
var n=this.factoryFor(e)
if(n){if(this._registry.registeredOption(e,"instantiate")===!1)return n
var r=this.buildInjections(e),i=n.create(r)
return t&&i&&(this._lookups[e]=i),i}},e.prototype.defaultInjections=function(e){return{}},e.prototype.buildInjections=function(e){for(var t=this.defaultInjections(e),n=this._registry.registeredInjections(e),r=void 0,i=0;i<n.length;i++)r=n[i],t[r.property]=this.lookup(r.source)
return t},e}(),c=function(){function e(){this._registrations=t.dict(),this._registeredOptions=t.dict(),this._registeredInjections=t.dict()}return e.prototype.register=function(e,t,n){this._registrations[e]=t,n&&(this._registeredOptions[e]=n)},e.prototype.registration=function(e){return this._registrations[e]},e.prototype.unregister=function(e){delete this._registrations[e],delete this._registeredOptions[e],delete this._registeredInjections[e]},e.prototype.registerOption=function(e,t,n){var r=this._registeredOptions[e]
r||(r={},this._registeredOptions[e]=r),r[t]=n},e.prototype.registeredOption=function(e,t){var n=this.registeredOptions(e)
if(n)return n[t]},e.prototype.registeredOptions=function(e){var t=this._registeredOptions[e]
if(void 0===t){var n=e.split(":"),r=n[0]
t=this._registeredOptions[r]}return t},e.prototype.unregisterOption=function(e,t){var n=this._registeredOptions[e]
n&&delete n[t]},e.prototype.registerInjection=function(e,t,n){var r=this._registeredInjections[e]
void 0===r&&(this._registeredInjections[e]=r=[]),r.push({property:t,source:n})},e.prototype.registeredInjections=function(e){var t=e.split(":"),n=t[0],r=[]
return Array.prototype.push.apply(r,this._registeredInjections[n]),Array.prototype.push.apply(r,this._registeredInjections[e]),r},e}(),p="__owner__"
e.Container=l,e.Registry=c,e.getOwner=n,e.setOwner=r,e.OWNER=p,e.isSpecifierStringAbsolute=i,e.isSpecifierObjectAbsolute=o,e.serializeSpecifier=s,e.deserializeSpecifier=u}),s("@glimmer/node",["exports","@glimmer/runtime"],function(e,t){"use strict"
var n=function(e){function n(t){e.call(this,t)}return c.inherits(n,e),n.prototype.setupUselessElement=function(){},n.prototype.insertHTMLBefore=function(e,n,r){var i=r?r.previousSibling:e.lastChild,o=this.document.createRawHTMLSection(n)
e.insertBefore(o,r)
var s=i?i.nextSibling:e.firstChild,a=r?r.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=n}),s("@glimmer/reference",["exports","@glimmer/util"],function(e,t){"use strict"
function n(e){for(var t=[],n=0,r=e.length;n<r;n++){var i=e[n].tag
if(i===x)return x
i!==E&&t.push(i)}return o(t)}function r(e){for(var t=[],n=e.head();null!==n;){var r=n.tag
if(r===x)return x
r!==E&&t.push(r),n=e.nextNode(n)}return o(t)}function i(e){for(var t=[],n=0,r=e.length;n<r;n++){var i=e[n]
if(i===x)return x
i!==E&&t.push(i)}return o(t)}function o(e){switch(e.length){case 0:return E
case 1:return e[0]
case 2:return new b(e[0],e[1])
default:return new _(e)}}function s(e,t){return new A(e,t)}function a(e){return e!==k}function u(e){return e.tag===E}function l(e,t){for(var n=e,r=0;r<t.length;r++)n=n.get(t[r])
return n}var p,h=0,f=1,d=NaN,m=function(){function e(){}return e.prototype.validate=function(e){return this.value()===e},e}(),v=f,g=function(e){function t(){var t=arguments.length<=0||void 0===arguments[0]?v:arguments[0]
e.call(this),this.revision=t}return c.inherits(t,e),t.prototype.value=function(){return this.revision},t.prototype.dirty=function(){this.revision=++v},t}(m),y=function(e){function t(){e.apply(this,arguments),this.lastChecked=null,this.lastValue=null}return c.inherits(t,e),t.prototype.value=function(){var e=this.lastChecked,t=this.lastValue
return e!==v&&(this.lastChecked=v,this.lastValue=t=this.compute()),this.lastValue},t.prototype.invalidate=function(){this.lastChecked=null},t}(m),b=function(e){function t(t,n){e.call(this),this.first=t,this.second=n}return c.inherits(t,e),t.prototype.compute=function(){return Math.max(this.first.value(),this.second.value())},t}(y),_=function(e){function t(t){e.call(this),this.tags=t}return c.inherits(t,e),t.prototype.compute=function(){for(var e=this.tags,t=-1,n=0;n<e.length;n++){var r=e[n].value()
t=Math.max(r,t)}return t},t}(y),w=function(e){function t(t){e.call(this),this.tag=t,this.lastUpdated=f}return c.inherits(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=v,this.invalidate())},t}(y),E=new(function(e){function t(){e.apply(this,arguments)}return c.inherits(t,e),t.prototype.value=function(){return h},t}(m)),x=new(function(e){function t(){e.apply(this,arguments)}return c.inherits(t,e),t.prototype.value=function(){return d},t}(m)),C=new(function(e){function t(){e.apply(this,arguments)}return c.inherits(t,e),t.prototype.value=function(){return v},t}(g)),O=function(){function 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}(),A=function(e){function t(t,n){e.call(this),this.tag=t.tag,this.reference=t,this.mapper=n}return c.inherits(t,e),t.prototype.compute=function(){var e=this.reference,t=this.mapper
return t(e.value())},t}(O),S=function(){function e(e){this.lastValue=null,this.lastRevision=null,this.initialized=!1,this.tag=e.tag,this.reference=e}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 k
this.lastRevision=n.value()
var r=this.lastValue,i=e.value()
return i===r?k:(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}(),k="adb3b78e-3d22-4e4b-877a-6317c2c5c145",T=function(){function e(e){this.inner=e,this.tag=E}return e.prototype.value=function(){return this.inner},e}(),R=function(e){function t(t,n){e.call(this,t.valueReferenceFor(n)),this.retained=!1,this.seen=!1,this.key=n.key,this.iterable=t,this.memo=t.memoReferenceFor(n)}return c.inherits(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),N=function(){function e(e){this.map=t.dict(),this.list=new t.LinkedList,this.tag=e.tag,this.iterable=e}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 R(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 R(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}(),P=function(){function e(e){this.iterator=null
var t=new N(e)
this.artifacts=t}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"})(p||(p={}))
var D=function(){function e(e){var t=e.target,n=e.artifacts
this.target=t,this.artifacts=n,this.iterator=n.iterate(),this.current=n.head()}return e.prototype.sync=function(){for(var e=p.Append;;)switch(e){case p.Append:e=this.nextAppend()
break
case p.Prune:e=this.nextPrune()
break
case p.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),p.Append},e.prototype.nextRetain=function(e){var n=this.artifacts,r=this.current
r=t.expect(r,"BUG: current is empty"),r.update(e),this.current=n.nextNode(r),this.target.retain(e.key,r.value,r.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(),p.Prune},e.prototype.nextPrune=function(){var e=this.artifacts,t=this.target,n=this.current
if(null===n)return p.Done
var r=n
return this.current=e.nextNode(r),r.shouldRemove()?(e.remove(r),t.delete(r.key)):r.reset(),p.Prune},e.prototype.nextDone=function(){this.target.done()},e}()
e.ConstReference=T,e.isConst=u,e.ListItem=R,e.referenceFromParts=l,e.IterationArtifacts=N,e.ReferenceIterator=P,e.IteratorSynchronizer=D,e.CONSTANT=h,e.INITIAL=f,e.VOLATILE=d,e.RevisionTag=m,e.DirtyableTag=g,e.combineTagged=n,e.combineSlice=r,e.combine=i,e.CachedTag=y,e.UpdatableTag=w,e.CONSTANT_TAG=E,e.VOLATILE_TAG=x,e.CURRENT_TAG=C,e.CachedReference=O,e.map=s,e.ReferenceCache=S,e.isModified=a}),s("@glimmer/runtime",["exports","@glimmer/util","@glimmer/reference","@glimmer/wire-format"],function(e,t,n,r){"use strict"
function i(e,t){return new at(e,t)}function o(e,t){for(var n=e.parentElement(),r=e.firstNode(),i=e.lastNode(),o=r;o;){var s=o.nextSibling
if(n.insertBefore(o,t),o===i)return s
o=s}return null}function s(e){for(var t=e.parentElement(),n=e.firstNode(),r=e.lastNode(),i=n;i;){var o=i.nextSibling
if(t.removeChild(i),i===r)return o
i=o}return null}function a(e){return!!e&&"function"==typeof e.toHTML}function u(e){return null!==e&&"object"==typeof e&&"number"==typeof e.nodeType}function l(e){return"string"==typeof e}function p(e,n,r){if(l(r))return lt.insert(e,n,r)
if(a(r))return pt.insert(e,n,r)
if(u(r))return ht.insert(e,n,r)
throw t.unreachable()}function h(e,n,r){if(l(r))return ct.insert(e,n,r)
if(u(r))return ht.insert(e,n,r)
throw t.unreachable()}function f(e){return"object"==typeof e&&e&&e[ft]}function d(e){for(var t=[],n=0;n<e.length;n++){var r=e[n].value()
r!==!1&&null!==r&&void 0!==r&&t.push(r)}return 0===t.length?null:t.join(" ")}function m(e){return JSON.stringify("<"+e.tagName.toLowerCase()+" />")}function v(e){return e&&"function"==typeof e.compile}function g(e,t){var n=new Ht(t)
return e.compile(n),n.compile()}function y(e){var t=e[0]
return t===r.Ops.OpenElement||t===r.Ops.OpenPrimitiveElement}function b(e,t){return new zt(t,e)}function _(e){return new Qt(e)}function w(e,t,n,r){var i=x(t,n,r),o=i.named,s=i.yields,a=i.partialSymbol,u=i.size
return new Qt(e,o,s,a,u)}function E(e,n){var r=null,i=e.program
return 0!==n.length&&function(){var e=r=t.dict()
n.forEach(function(t){return e[t]=i.size++})}(),new Yt(e,i,r)}function x(e,n,r){var i=null,o=null,s=1
0!==n.length&&function(){var e=i=t.dict()
n.forEach(function(t){return e[t]=s++})}(),0!==e.length&&function(){var n=o=t.dict()
e.forEach(function(e){return n[e]=s++})}()
var a=r?s++:null
return{named:o,yields:i,partialSymbol:a,size:s}}function C(e,t){var n=$t.specialize(e,t.symbolTable)
On.compile(n,t)}function O(e,t,n){var r=e.statements
return new ln(n,t,r).scan()}function A(e){return"function"!=typeof e.toString?"":String(e)}function S(e,t){return console.info("Use `context`, and `get(<path>)` to debug this template."),{context:e,get:t}}function k(e,t){return function(n){var r=n.split(".")
return"this"===r[0]&&(r[0]=null),L(r,t).evaluate(e)}}function T(e){En=e}function R(){En=S}function N(e,t){return Array.isArray(e)?An.compile(e,t):new Pt(e)}function P(e,t,n){var r=j(e,n),i=M(t,n)
return Ze.create(r,i,Xe)}function D(e,t,n,r){var i=j(e,r),o=M(t,r)
return Ze.create(i,o,n)}function I(e,t){var n=e[0],r=e[1],i=e[2],o=e[3]
return Ze.create(j(n,t),M(r,t),{default:i,inverse:o})}function j(e,t){if(!e||0===e.length)return We
for(var n=new Array(e.length),r=0;r<e.length;r++)n[r]=N(e[r],t)
return qe.create(n)}function M(e,t){if(!e)return Ye
var n=e[0],r=e[1]
if(0===n.length)return Ye
for(var i=new Array(r.length),o=0;o<r.length;o++)i[o]=N(r[o],t)
return new Qe(n,i)}function L(e,t){var n=e[0],r=void 0
if(null===n){var i=new pn,o=e.slice(1)
return cn.create(i,o)}if(r=t.symbolTable.getSymbol("local",n)){var o=e.slice(1),i=new hn(r,n)
return cn.create(i,o)}var i=new pn
return cn.create(i,e)}function F(){var e=arguments.length<=0||void 0===arguments[0]?new Sn:arguments[0],n=arguments.length<=1||void 0===arguments[1]?new Tn:arguments[1]
return e.add("if",function(e,n){var r=e[2],i=e[3],o=e[4],s=e[5],a=P(r,i,n)
n.putArgs(a),n.test("environment"),n.labelled(null,function(e){if(o&&s)e.jumpUnless("ELSE"),e.evaluate(o),e.jump("END"),e.label("ELSE"),e.evaluate(s)
else{if(!o)throw t.unreachable()
e.jumpUnless("END"),e.evaluate(o)}})}),e.add("-in-element",function(e,n){var r=bn(e),i=P(_n(e),null,n)
n.putArgs(i),n.test("simple"),n.labelled(null,function(e){e.jumpUnless("END"),e.pushRemoteElement(),e.evaluate(t.unwrap(r)),e.popRemoteElement()})}),e.add("-with-dynamic-vars",function(e,n){var r=bn(e),i=P(_n(e),wn(e),n)
n.unit(function(e){e.putArgs(i),e.pushDynamicScope(),e.bindDynamicScope(i.named.keys),e.evaluate(t.unwrap(r)),e.popDynamicScope()})}),e.add("unless",function(e,n){var r=e[2],i=e[3],o=e[4],s=e[5],a=P(r,i,n)
n.putArgs(a),n.test("environment"),n.labelled(null,function(e){if(o&&s)e.jumpIf("ELSE"),e.evaluate(o),e.jump("END"),e.label("ELSE"),e.evaluate(s)
else{if(!o)throw t.unreachable()
e.jumpIf("END"),e.evaluate(o)}})}),e.add("with",function(e,n){var r=e[2],i=e[3],o=e[4],s=e[5],a=P(r,i,n)
n.putArgs(a),n.test("environment"),n.labelled(null,function(e){if(o&&s)e.jumpUnless("ELSE"),e.evaluate(o),e.jump("END"),e.label("ELSE"),e.evaluate(s)
else{if(!o)throw t.unreachable()
e.jumpUnless("END"),e.evaluate(o)}})}),e.add("each",function(e,n){var r=e[2],i=e[3],o=e[4],s=e[5],a=P(r,i,n)
n.labelled(a,function(e){e.putIterator(),s?e.jumpUnless("ELSE"):e.jumpUnless("END"),e.iter(function(e){e.evaluate(t.unwrap(o))}),s&&(e.jump("END"),e.label("ELSE"),e.evaluate(s))})}),{blocks:e,inlines:n}}function U(e,t){return e.indexOf(t)!==-1}function B(e,t){return(null===e||U(Pn,e))&&U(In,t)}function z(e,t){return null!==e&&(U(Dn,e)&&U(jn,t))}function H(e,t){return B(e,t)||z(e,t)}function V(e,t,n,r){var i=null
if(null===r||void 0===r)return r
if(a(r))return r.toHTML()
i=t?t.tagName.toUpperCase():null
var o=ve(r)
if(B(i,n)){var s=e.protocolForURL(o)
if(U(Nn,s))return"unsafe:"+o}return z(i,n)?"unsafe:"+o:o}function q(e,t){var n=void 0,r=void 0
if(t in e)r=t,n="prop"
else{var i=t.toLowerCase()
i in e?(n="prop",r=i):(n="attr",r=t)}return"prop"!==n||"style"!==r.toLowerCase()&&!W(e.tagName,r)||(n="attr"),{normalized:r,type:n}}function W(e,t){var n=Mn[e.toUpperCase()]
return n&&n[t.toLowerCase()]||!1}function K(e,t){if(!e)return t
if(!Y(e))return t
var n=e.createElement("div")
return function(e){function t(){e.apply(this,arguments)}return c.inherits(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=Ln[o]
return void 0===s?e.prototype.insertHTMLBefore.call(this,t,r,i):Q(t,s,n,i,r)},t}(t)}function G(e,t){if(!e)return t
if(!Y(e))return t
var n=e.createElement("div")
return function(e){function t(){e.apply(this,arguments)}return c.inherits(t,e),t.prototype.insertHTMLBefore=function(t,r,i){if(null===r||""===r)return e.prototype.insertHTMLBefore.call(this,t,r,i)
var o=t.tagName.toLowerCase(),s=Ln[o]
return void 0===s?e.prototype.insertHTMLBefore.call(this,t,r,i):Q(t,s,n,r,i)},t}(t)}function Q(e,t,n,r,i){var o=t.before+r+t.after
n.innerHTML=o
for(var s=n,a=0;a<t.depth;a++)s=s.childNodes[0]
var u=ie(s,e,i),l=u[0],c=u[1]
return new st(e,l,c)}function Y(e){var t=e.createElement("table")
try{t.innerHTML="<tbody></tbody>"}catch(e){}finally{if(0!==t.childNodes.length)return!1}return!0}function J(e,t,n){if(!e)return t
if(!Z(e,n))return t
var r=e.createElement("div")
return function(e){function t(){e.apply(this,arguments)}return c.inherits(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):X(t,r,o,i)},t}(t)}function $(e,t,n){if(!e)return t
if(!Z(e,n))return t
var r=e.createElement("div")
return function(e){function t(){e.apply(this,arguments)}return c.inherits(t,e),t.prototype.insertHTMLBefore=function(t,i,o){return null===i||""===i?e.prototype.insertHTMLBefore.call(this,t,i,o):t.namespaceURI!==n?e.prototype.insertHTMLBefore.call(this,t,i,o):X(t,r,i,o)},t}(t)}function X(e,t,n,r){var i="<svg>"+n+"</svg>"
t.innerHTML=i
var o=ie(t.firstChild,e,r),s=o[0],a=o[1]
return new st(e,s,a)}function Z(e,n){var r=e.createElementNS(n,"svg")
try{r.insertAdjacentHTML("beforeEnd","<circle></circle>")}catch(e){}finally{return 1!==r.childNodes.length||t.unwrap(r.firstChild).namespaceURI!==Fn}}function ee(e,t){return e&&ne(e)?function(e){function t(t){e.call(this,t),this.uselessComment=t.createComment("")}return c.inherits(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 te(e,t){return e&&ne(e)?function(e){function t(t){e.call(this,t),this.uselessComment=this.createComment("")}return c.inherits(t,e),t.prototype.insertHTMLBefore=function(t,n,r){if(null===n)return e.prototype.insertHTMLBefore.call(this,t,n,r)
var i=!1,o=r?r.previousSibling:t.lastChild
o&&o instanceof Text&&(i=!0,t.insertBefore(this.uselessComment,r))
var s=e.prototype.insertHTMLBefore.call(this,t,n,r)
return i&&t.removeChild(this.uselessComment),s},t}(t):t}function ne(e){var t=e.createElement("div")
return t.innerHTML="first",t.insertAdjacentHTML("beforeEnd","second"),2!==t.childNodes.length}function re(e){return Vn.test(e)}function ie(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 oe(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 st(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 l=a?a.nextSibling:i.firstChild
return new st(i,l,u)}function se(e){return e.nodeType===Node.DOCUMENT_FRAGMENT_NODE}function ae(e,t,n,r){var i=e.tagName,o=e.namespaceURI===Un
if(o)return le(i,t)
var s=q(e,t),a=s.type,u=s.normalized
return"attr"===a?le(i,u):ue(i,u)}function ue(e,t){return H(e,t)?new $n(t):fe(e,t)?Zn:de(e,t)?tr:new Jn(t)}function le(e,t){return H(e,t)?new nr(t):new Yn(t)}function ce(e,t){var n=e.namespaceURI===Un,r=q(e,t),i=r.type,o=r.normalized
return n?e.getAttribute(o):"attr"===i?e.getAttribute(o):e[o]}function pe(e){return e===!1||void 0===e||null===e?null:e===!0?"":"function"==typeof e?null:String(e)}function he(e){return null===e||void 0===e}function fe(e,t){return("INPUT"===e||"TEXTAREA"===e)&&"value"===t}function de(e,t){return"OPTION"===e&&"selected"===t}function me(e){return null===e||void 0===e||"function"!=typeof e.toString}function ve(e){return me(e)?"":String(e)}function ge(e){return me(e)?"":l(e)?e:a(e)?e.toHTML():u(e)?e:String(e)}function ye(e){return me(e)?"":l(e)?e:a(e)||u(e)?e:String(e)}function be(e){var n=e.id,r=e.meta,i=e.block,o=void 0,s=n||"client-"+Lr++,a=function(e,n){var a=n?t.assign({},n,r):r
return o||(o=JSON.parse(i)),_e(o,s,a,e)}
return{id:s,meta:r,create:a}}function _e(e,t,n,r){var i=new an(e,n,r),o=void 0,s=function(){return o||(o=i.scanEntryPoint()),o},a=void 0,u=function(){return a||(a=i.scanLayout()),a},l=function(e){return i.scanPartial(e)},c=function(e,t,n){var i=St.forInitialRender(r,t,null),o=s().compile(r),a=hr.initial(r,e,n,i,o)
return new Mr(a)}
return{id:t,meta:n,_block:e,asEntryPoint:s,asLayout:u,asPartial:l,render:c}}function we(e,t,n){var r=e.dynamicScope(),i=t.positional.at(0)
return new Fr(r,i)}var Ee=function(e){function t(t){e.call(this,t)}return c.inherits(t,e),t.create=function(e){return void 0===e?Oe:null===e?Ae:e===!0?Se:e===!1?ke:"number"==typeof e?new Ce(e):new xe(e)},t.prototype.get=function(e){return Oe},t}(n.ConstReference),xe=function(e){function t(){e.apply(this,arguments),this.lengthReference=null}return c.inherits(t,e),t.prototype.get=function(t){if("length"===t){var n=this.lengthReference
return null===n&&(n=this.lengthReference=new Ce(this.inner.length)),n}return e.prototype.get.call(this,t)},t}(Ee),Ce=function(e){function t(t){e.call(this,t)}return c.inherits(t,e),t}(Ee),Oe=new Ce(void 0),Ae=new Ce(null),Se=new Ce(!0),ke=new Ce(!1),Te=function(){function e(e){this.inner=e,this.tag=e.tag}return e.prototype.value=function(){return this.toBool(this.inner.value())},e.prototype.toBool=function(e){return!!e},e}(),Re=function(){function e(){this.references=[],this.strings=[],this.expressions=[],this.arrays=[],this.blocks=[],this.functions=[],this.others=[],this.NULL_REFERENCE=this.reference(Ae),this.UNDEFINED_REFERENCE=this.reference(Oe)}return e.prototype.getReference=function(e){return this.references[e-1]},e.prototype.reference=function(e){var t=this.references.length
return this.references.push(e),t+1},e.prototype.getString=function(e){return this.strings[e-1]},e.prototype.string=function(e){var t=this.strings.length
return this.strings.push(e),t+1},e.prototype.getExpression=function(e){return this.expressions[e-1]},e.prototype.expression=function(e){var t=this.expressions.length
return this.expressions.push(e),t+1},e.prototype.getArray=function(e){return this.arrays[e-1]},e.prototype.array=function(e){var t=this.arrays.length
return this.arrays.push(e),t+1},e.prototype.getBlock=function(e){return this.blocks[e-1]},e.prototype.block=function(e){var t=this.blocks.length
return this.blocks.push(e),t+1},e.prototype.getFunction=function(e){return this.functions[e-1]},e.prototype.function=function(e){var t=this.functions.length
return this.functions.push(e),t+1},e.prototype.getOther=function(e){return this.others[e-1]},e.prototype.other=function(e){var t=this.others.length
return this.others.push(e),t+1},e}(),Ne=function(){function e(){this.evaluateOpcode=t.fillNulls(52)}return e.prototype.add=function(e,t){this.evaluateOpcode[e]=t},e.prototype.evaluate=function(e,t){var n=this.evaluateOpcode[t.type]
n(e,t)},e}(),Pe=new Ne,De=function(){function e(){t.initializeGuid(this)}return e.prototype.toJSON=function(){return{guid:this._guid,type:this.type}},e}(),Ie=function(e){function t(){e.apply(this,arguments),this.next=null,this.prev=null}return c.inherits(t,e),t}(De)
Pe.add(20,function(e,t){var n=t.op1,r=t.op2,i=e.constants.getOther(n),o=e.constants.getExpression(r),s=null,a=i.evaluate(e)
a&&(s=o.evaluate(e)),e.pushCallerScope(),a&&e.invokeBlock(a,s||null)}),Pe.add(21,function(e){return e.popScope()}),Pe.add(0,function(e){return e.pushChildScope()}),Pe.add(1,function(e){return e.popScope()}),Pe.add(2,function(e){return e.pushDynamicScope()}),Pe.add(3,function(e){return e.popDynamicScope()}),Pe.add(4,function(e,t){var n=t.op1
e.frame.setOperand(e.constants.getReference(n))}),Pe.add(5,function(e,t){var n=t.op1,r=e.constants.getExpression(n)
e.evaluateOperand(r)}),Pe.add(6,function(e,t){var n=t.op1
e.evaluateArgs(e.constants.getExpression(n))}),Pe.add(7,function(e,t){var n=t.op1,r=e.constants.getArray(n)
e.bindPositionalArgs(r)}),Pe.add(8,function(e,t){var n=t.op1,r=t.op2,i=e.constants.getArray(n),o=e.constants.getArray(r)
e.bindNamedArgs(i,o)}),Pe.add(9,function(e,t){var n=t.op1,r=t.op2,i=e.constants.getArray(n),o=e.constants.getArray(r)
e.bindBlocks(i,o)}),Pe.add(10,function(e,t){var n=t.op1
e.bindPartialArgs(n)}),Pe.add(11,function(e){return e.bindCallerScope()}),Pe.add(12,function(e,t){var n=t.op1,r=e.constants.getArray(n)
e.bindDynamicScope(r)}),Pe.add(13,function(e,t){var n=t.op1,r=t.op2
return e.enter(n,r)}),Pe.add(14,function(e){return e.exit()}),Pe.add(15,function(e,t){var n=t.op1,r=e.constants.getBlock(n),i=e.frame.getArgs()
e.invokeBlock(r,i)}),Pe.add(16,function(e,t){var n=t.op1
return e.goto(n)}),Pe.add(17,function(e,t){var r=t.op1,i=e.frame.getCondition()
if(n.isConst(i))i.value()&&e.goto(r)
else{var o=new n.ReferenceCache(i)
o.peek()&&e.goto(r),e.updateWith(new Fe(o))}}),Pe.add(18,function(e,t){var r=t.op1,i=e.frame.getCondition()
if(n.isConst(i))i.value()||e.goto(r)
else{var o=new n.ReferenceCache(i)
o.peek()||e.goto(r),e.updateWith(new Fe(o))}})
var je=function(e,t){return new n.ConstReference(!!e.value())},Me=function(e,t){return e},Le=function(e,t){return t.toConditionalReference(e)}
Pe.add(19,function(e,t){var n=t.op1,r=e.frame.getOperand(),i=e.constants.getFunction(n)
e.frame.setCondition(i(r,e.env))})
var Fe=function(e){function t(t){e.call(this),this.type="assert",this.tag=t.tag,this.cache=t}return c.inherits(t,e),t.prototype.evaluate=function(e){var t=this.cache
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(e){r=String(n.peek())}return{guid:t,type:e,args:[],details:{expected:r}}},t}(Ie),Ue=function(e){function t(t,n){e.call(this),this.target=n,this.type="jump-if-not-modified",this.tag=t,this.lastRevision=t.value()}return c.inherits(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{guid:this._guid,type:this.type,args:[JSON.stringify(this.target.inspect())]}},t}(Ie),Be=function(e){function t(t){e.call(this),this.target=t,this.type="did-modify",this.tag=n.CONSTANT_TAG}return c.inherits(t,e),t.prototype.evaluate=function(){this.target.didModify()},t}(Ie),ze=function(){function e(e){this.tag=n.CONSTANT_TAG,this.type="label",this.label=null,this.prev=null,this.next=null,t.initializeGuid(this),e&&(this.label=e)}return e.prototype.evaluate=function(){},e.prototype.inspect=function(){return this.label+" ["+this._guid+"]"},e.prototype.toJSON=function(){return{guid:this._guid,type:this.type,args:[JSON.stringify(this.inspect())]}},e}(),He=t.HAS_NATIVE_WEAKMAP?Object.freeze([]):[],Ve=t.HAS_NATIVE_WEAKMAP?Object.freeze(t.dict()):t.dict(),qe=function(){function e(e){this.values=e,this.length=e.length}return e.create=function(e){return e.length?new this(e):We},e.empty=function(){return We},e.prototype.evaluate=function(e){for(var t=this.values,n=this.length,r=new Array(n),i=0;i<n;i++)r[i]=t[i].evaluate(e)
return Ke.create(r)},e.prototype.toJSON=function(){return"["+this.values.map(function(e){return e.toJSON()}).join(", ")+"]"},e}(),We=new(function(e){function t(){e.call(this,He)}return c.inherits(t,e),t.prototype.evaluate=function(e){return Ge},t.prototype.toJSON=function(){return"<EMPTY>"},t}(qe)),Ke=function(){function e(e){this.values=e,this.tag=n.combineTagged(e),this.length=e.length}return e.create=function(e){return new this(e)},e.empty=function(){return Ge},e.prototype.at=function(e){var t=this.values,n=this.length
return e<n?t[e]:Oe},e.prototype.value=function(){for(var e=this.values,t=this.length,n=new Array(t),r=0;r<t;r++)n[r]=e[r].value()
return n},e}(),Ge=new(function(e){function t(){e.call(this,He)}return c.inherits(t,e),t.prototype.at=function(){return Oe},t.prototype.value=function(){return this.values},t}(Ke)),Qe=function(){function e(e,n){this.keys=e,this.values=n,this.length=e.length,t.assert(e.length===n.length,"Keys and values do not have the same length")}return e.empty=function(){return Ye},e.create=function(e){var t=Object.keys(e),n=t.length
if(n>0){for(var r=[],i=0;i<n;i++)r[i]=e[t[i]]
return new this(t,r)}return Ye},e.prototype.evaluate=function(e){for(var t=this.keys,n=this.values,r=this.length,i=new Array(r),o=0;o<r;o++)i[o]=n[o].evaluate(e)
return new Je(t,i)},e.prototype.toJSON=function(){var e=this.keys,t=this.values,n=e.map(function(e,n){return e+": "+t[n].toJSON()}).join(", ")
return"{"+n+"}"},e}(),Ye=new(function(e){function t(){e.call(this,He,He)}return c.inherits(t,e),t.prototype.evaluate=function(e){return $e},t.prototype.toJSON=function(){return"<EMPTY>"},t}(Qe)),Je=function(){function e(e,r){var i=arguments.length<=2||void 0===arguments[2]?null:arguments[2]
this.keys=e,this.values=r,this._map=i,this.tag=n.combineTagged(r),this.length=e.length,t.assert(e.length===r.length,"Keys and values do not have the same length")}return e.create=function(e){var t=Object.keys(e),n=t.length
if(n>0){for(var r=new Array(n),i=0;i<n;i++)r[i]=e[t[i]]
return new this(t,r,e)}return $e},e.empty=function(){return $e},e.prototype.get=function(e){var t=this.keys,n=this.values,r=t.indexOf(e)
return r===-1?Oe:n[r]},e.prototype.has=function(e){return this.keys.indexOf(e)!==-1},e.prototype.value=function(){for(var e=this.keys,n=this.values,r=t.dict(),i=0;i<e.length;i++){var o=e[i],s=n[i]
r[o]=s.value()}return r},c.createClass(e,[{key:"map",get:function(){var e=this._map
if(e)return e
e=this._map=t.dict()
for(var n=this.keys,r=this.values,i=this.length,o=0;o<i;o++)e[n[o]]=r[o]
return e}}]),e}(),$e=new(function(e){function t(){e.call(this,He,He,Ve)}return c.inherits(t,e),t.prototype.get=function(){return Oe},t.prototype.has=function(e){return!1},t.prototype.value=function(){return Ve},t}(Je)),Xe={default:null,inverse:null},Ze=function(){function e(e,t,n){this.positional=e,this.named=t,this.blocks=n,this.type="compiled-args"}return e.create=function(e,t,n){return e===We&&t===Ye&&n===Xe?this.empty():new this(e,t,n)},e.empty=function(){return et},e.prototype.evaluate=function(e){var t=this.positional,n=this.named,r=this.blocks
return tt.create(t.evaluate(e),n.evaluate(e),r)},e}(),et=new(function(e){function t(){e.call(this,We,Ye,Xe)}return c.inherits(t,e),t.prototype.evaluate=function(e){return nt},t}(Ze)),tt=function(){function e(e,t,r){this.positional=e,this.named=t,this.blocks=r,this.tag=n.combineTagged([e,t])}return e.empty=function(){return nt},e.create=function(e,t,n){return new this(e,t,n)},e.positional=function(e){var t=arguments.length<=1||void 0===arguments[1]?Xe:arguments[1]
return new this(Ke.create(e),$e,t)},e.named=function(e){var t=arguments.length<=1||void 0===arguments[1]?Xe:arguments[1]
return new this(Ge,Je.create(e),t)},e}(),nt=new tt(Ge,$e,Xe)
Pe.add(22,function(e){var t=e.frame.getOperand(),r=n.isConst(t)?void 0:new n.ReferenceCache(t),i=r?r.peek():t.value()
e.frame.setImmediate(i),r&&e.updateWith(new Fe(r))}),Pe.add(23,function(e,t){var n=t.op1,r=e.constants.getOther(n)
e.frame.setImmediate(r)}),Pe.add(24,function(e,t){var n=t.op1,r=t.op2,i=e.constants.getExpression(n),o=e.constants.getBlock(r),s=e.frame.getImmediate(),a=e.pushDynamicScope(),u=e.scope(),l=s.manager,c=l.prepareArgs(s,i.evaluate(e),a),p=!!c.blocks.default,h=l.create(e.env,s,c,a,e.getSelf(),p),f=l.getDestructor(h)
f&&e.newDestroyable(f)
var d=l.layoutFor(s,h,e.env),m=l.getSelf(h)
e.beginCacheGroup(),e.stack().pushSimpleBlock(),e.pushRootScope(m,d.symbols),e.invokeLayout(c,d,u,h,l,o),e.updateWith(new rt(s.name,h,l,c,a))}),Pe.add(25,function(e){var t=e.frame.getManager(),n=e.frame.getComponent(),r="DidCreateElementOpcode#evaluate"
t.didCreateElement(n,e.stack().expectConstructing(r),e.stack().expectOperations(r))}),Pe.add(26,function(e){var t=e.frame.getShadow()
e.pushCallerScope(),t&&e.invokeBlock(t,tt.empty())}),Pe.add(27,function(e){var t=e.frame.getManager(),n=e.frame.getComponent(),r=e.stack().popBlock()
t.didRenderLayout(n,r),e.env.didCreate(n,t),e.updateWith(new it(t,n,r))}),Pe.add(28,function(e){e.popScope(),e.popDynamicScope(),e.commitCacheGroup()})
var rt=function(e){function t(t,r,i,o,s){e.call(this),this.name=t,this.component=r,this.manager=i,this.args=o,this.dynamicScope=s,this.type="update-component"
var a=i.getTag(r)
a?this.tag=n.combine([o.tag,a]):this.tag=o.tag}return c.inherits(t,e),t.prototype.evaluate=function(e){var t=this.component,n=this.manager,r=this.args,i=this.dynamicScope
n.update(t,r,i)},t.prototype.toJSON=function(){return{guid:this._guid,type:this.type,args:[JSON.stringify(this.name)]}},t}(Ie),it=function(e){function t(t,r,i){e.call(this),this.manager=t,this.component=r,this.bounds=i,this.type="did-update-layout",this.tag=n.CONSTANT_TAG}return c.inherits(t,e),t.prototype.evaluate=function(e){var t=this.manager,n=this.component,r=this.bounds
t.didUpdateLayout(n,r),e.env.didUpdate(n,t)},t}(Ie),ot=function(e,t){this.element=e,this.nextSibling=t},st=function(){function e(e,t,n){this.parentNode=e,this.first=t,this.last=n}return e.prototype.parentElement=function(){return this.parentNode},e.prototype.firstNode=function(){return this.first},e.prototype.lastNode=function(){return this.last},e}(),at=function(){function e(e,t){this.parentNode=e,this.node=t}return e.prototype.parentElement=function(){return this.parentNode},e.prototype.firstNode=function(){return this.node},e.prototype.lastNode=function(){return this.node},e}(),ut=function(e){this.bounds=e},lt=function(e){function t(t,n){e.call(this,t),this.textNode=n}return c.inherits(t,e),t.insert=function(e,n,r){var i=e.createTextNode(r)
e.insertBefore(n.element,i,n.nextSibling)
var o=new at(n.element,i)
return new t(o,i)},t.prototype.update=function(e,t){if(l(t)){var n=this.textNode
return n.nodeValue=t,!0}return!1},t}(ut),ct=function(e){function t(){e.apply(this,arguments)}return c.inherits(t,e),t.insert=function(e,n,r){var i=e.insertHTMLBefore(n.element,r,n.nextSibling)
return new t(i)},t.prototype.update=function(e,t){if(l(t)){var n=this.bounds,r=n.parentElement(),i=s(n)
return this.bounds=e.insertHTMLBefore(r,i,t),!0}return!1},t}(ut),pt=function(e){function t(t,n){e.call(this,t),this.lastStringValue=n}return c.inherits(t,e),t.insert=function(e,n,r){var i=r.toHTML(),o=e.insertHTMLBefore(n.element,i,n.nextSibling)
return new t(o,i)},t.prototype.update=function(e,t){if(a(t)){var n=t.toHTML()
if(n!==this.lastStringValue){var r=this.bounds,i=r.parentElement(),o=s(r)
this.bounds=e.insertHTMLBefore(i,o,n),this.lastStringValue=n}return!0}return!1},t}(ut),ht=function(e){function t(){e.apply(this,arguments)}return c.inherits(t,e),t.insert=function(e,n,r){return e.insertBefore(n.element,r,n.nextSibling),new t(i(n.element,r))},t.prototype.update=function(e,t){if(u(t)){var n=this.bounds,r=n.parentElement(),i=s(n)
return this.bounds=e.insertNodeBefore(r,t,i),!0}return!1},t}(ut),ft="COMPONENT DEFINITION [id=e59c754e-61eb-4392-8c4a-2c0ac72bfcd4]",dt=function(e,t,n){this[ft]=!0,this.name=e,this.manager=t,this.ComponentClass=n},mt=function(){function e(){}return e.prototype.toJSON=function(){return"UNIMPL: "+this.type.toUpperCase()},e}()
Pe.add(29,function(e,t){var n=t.op1
e.stack().appendText(e.constants.getString(n))}),Pe.add(30,function(e,t){var n=t.op1
e.stack().appendComment(e.constants.getString(n))}),Pe.add(32,function(e,t){var n=t.op1
e.stack().openElement(e.constants.getString(n))}),Pe.add(33,function(e){var t=e.frame.getOperand(),r=n.isConst(t)?void 0:new n.ReferenceCache(t),i=r?r.peek():t.value()
e.stack().pushRemoteElement(i),r&&e.updateWith(new Fe(r))}),Pe.add(34,function(e){return e.stack().popRemoteElement()}),Pe.add(35,function(e,t){var n=t.op1,r=e.constants.getString(n)
e.stack().openElement(r,new bt(e.env))}),Pe.add(36,function(e){var t=e.frame.getOperand().value()
e.stack().openElement(t)})
var vt=function(){function 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&&n.isConst(e)},e.prototype.toReference=function(){var e=this.list,t=this.isConst
return e?t?Ee.create(d(e)):new gt(e):Ae},e}(),gt=function(e){function t(t){e.call(this),this.list=[],this.tag=n.combineTagged(t),this.list=t}return c.inherits(t,e),t.prototype.compute=function(){return d(this.list)},t}(n.CachedReference),yt=function(){function e(e){this.env=e,this.opcodes=null,this.classList=null}return e.prototype.addStaticAttribute=function(e,t,n){"class"===t?this.addClass(Ee.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){if("class"===t)this.addClass(n)
else{var i=this.env.attributeFor(e,t,r),o=new Et(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 Et(e,o,n,r,t)
this.addAttribute(s)},e.prototype.flush=function(e,t){for(var n=t.env,r=this.opcodes,i=this.classList,o=0;r&&o<r.length;o++)t.updateWith(r[o])
if(i){var s=n.attributeFor(e,"class",!1),a=new Et(e,s,"class",i.toReference()),u=a.flush(n)
u&&t.updateWith(u)}this.opcodes=null,this.classList=null},e.prototype.addClass=function(e){var t=this.classList
t||(t=this.classList=new vt),t.append(e)},e.prototype.addAttribute=function(e){var t=e.flush(this.env)
if(t){var n=this.opcodes
n||(n=this.opcodes=[]),n.push(t)}},e}(),bt=function(){function e(e){this.env=e,this.attributeNames=null,this.attributes=null,this.classList=null}return e.prototype.addStaticAttribute=function(e,t,n){"class"===t?this.addClass(Ee.create(n)):this.shouldAddAttribute(t)&&this.addAttribute(t,new wt(e,t,n))},e.prototype.addStaticAttributeNS=function(e,t,n,r){this.shouldAddAttribute(n)&&this.addAttribute(n,new wt(e,n,r,t))},e.prototype.addDynamicAttribute=function(e,t,n,r){if("class"===t)this.addClass(n)
else if(this.shouldAddAttribute(t)){var i=this.env.attributeFor(e,t,r),o=new Et(e,i,t,n)
this.addAttribute(t,o)}},e.prototype.addDynamicAttributeNS=function(e,t,n,r,i){if(this.shouldAddAttribute(n)){var o=this.env.attributeFor(e,n,i,t),s=new Et(e,o,n,r,t)
this.addAttribute(n,s)}},e.prototype.flush=function(e,t){for(var n=this.env,r=this.attributes,i=this.classList,o=0;r&&o<r.length;o++){var s=r[o].flush(n)
s&&t.updateWith(s)}if(i){var a=n.attributeFor(e,"class",!1),u=new Et(e,a,"class",i.toReference()),s=u.flush(n)
s&&t.updateWith(s)}},e.prototype.shouldAddAttribute=function(e){return!this.attributeNames||this.attributeNames.indexOf(e)===-1},e.prototype.addClass=function(e){var t=this.classList
t||(t=this.classList=new vt),t.append(e)},e.prototype.addAttribute=function(e,n){var r=this.attributeNames,i=this.attributes
r||(r=this.attributeNames=[],i=this.attributes=[]),r.push(e),t.unwrap(i).push(n)},e}()
Pe.add(37,function(e){var t=e.stack(),n="FlushElementOpcode#evaluate"
t.expectOperations(n).flush(t.expectConstructing(n),e),t.flushElement()}),Pe.add(38,function(e){return e.stack().closeElement()}),Pe.add(39,function(e){return e.stack().popElement()}),Pe.add(40,function(e,t){var n=t.op1,r=t.op2,i=t.op3,o=e.constants.getString(n),s=e.constants.getString(r)
if(i){var a=e.constants.getString(i)
e.stack().setStaticAttributeNS(a,o,s)}else e.stack().setStaticAttribute(o,s)}),Pe.add(41,function(e,t){var n=(t.op1,t.op2),r=t.op3,i=e.constants.getOther(n),o=e.constants.getExpression(r),s=e.stack(),a=s.constructing,u=s.updateOperations,l=o.evaluate(e),c=e.dynamicScope(),p=i.create(a,l,c,u)
e.env.scheduleInstallModifier(p,i)
var h=i.getDestructor(p)
h&&e.newDestroyable(h),e.updateWith(new _t(i,p,l))})
var _t=function(e){function t(t,n,r){e.call(this),this.manager=t,this.modifier=n,this.args=r,this.type="update-modifier",this.tag=r.tag,this.lastUpdated=r.tag.value()}return c.inherits(t,e),t.prototype.evaluate=function(e){var t=this.manager,n=this.modifier,r=this.tag,i=this.lastUpdated
r.validate(i)||(e.env.scheduleUpdateModifier(n,t),this.lastUpdated=r.value())},t.prototype.toJSON=function(){return{guid:this._guid,type:this.type,args:[JSON.stringify(this.args)]}},t}(Ie),wt=function(){function e(e,t,n,r){this.element=e,this.name=t,this.value=n,this.namespace=r}return e.prototype.flush=function(e){return e.getAppendOperations().setAttribute(this.element,this.name,this.value,this.namespace),null},e}(),Et=function(){function e(e,t,n,r,i){this.element=e,this.attributeManager=t,this.name=n,this.reference=r,this.namespace=i,this.cache=null,this.tag=r.tag}return e.prototype.patch=function(e){var r=this.element,i=this.cache,o=t.expect(i,"must patch after flush").revalidate()
n.isModified(o)&&this.attributeManager.updateAttribute(e,r,o,this.namespace)},e.prototype.flush=function(e){var t=this.reference,r=this.element
if(n.isConst(t)){var i=t.value()
return this.attributeManager.setAttribute(e,r,i,this.namespace),null}var o=this.cache=new n.ReferenceCache(t),i=o.peek()
return this.attributeManager.setAttribute(e,r,i,this.namespace),new xt(this)},e.prototype.toJSON=function(){var e=this.element,n=this.namespace,r=this.name,i=this.cache,o=m(e),s=t.expect(i,"must serialize after flush").peek()
return n?{element:o,type:"attribute",namespace:n,name:r,lastValue:s}:{element:o,type:"attribute",namespace:void 0===n?null:n,name:r,lastValue:s}},e}()
Pe.add(42,function(e,t){var n=t.op1,r=t.op2,i=t.op3,o=e.constants.getString(n),s=e.constants.getString(r),a=e.frame.getOperand()
e.stack().setDynamicAttributeNS(s,o,a,!!i)}),Pe.add(43,function(e,t){var n=t.op1,r=t.op2,i=e.constants.getString(n),o=e.frame.getOperand()
e.stack().setDynamicAttribute(i,o,!!r)})
var xt=function(e){function t(t){e.call(this),this.type="patch-element",this.tag=t.tag,this.operation=t}return c.inherits(t,e),t.prototype.evaluate=function(e){this.operation.patch(e.env)},t.prototype.toJSON=function(){var e=this._guid,t=this.type,n=this.operation
return{guid:e,type:t,details:n.toJSON()}},t}(Ie),Ct=function(){function e(e){this.node=e}return e.prototype.firstNode=function(){return this.node},e}(),Ot=function(){function e(e){this.node=e}return e.prototype.lastNode=function(){return this.node},e}(),At=function(){function e(e){this.bounds=e}return e.prototype.parentElement=function(){return this.bounds.parentElement()},e.prototype.firstNode=function(){return this.bounds.firstNode()},e.prototype.lastNode=function(){return this.bounds.lastNode()},e.prototype.update=function(e){this.bounds=e},e}(),St=function(){function e(e,n,r){this.constructing=null,this.operations=null,this.elementStack=new t.Stack,this.nextSiblingStack=new t.Stack,this.blockStack=new t.Stack,this.env=e,this.dom=e.getAppendOperations(),this.updateOperations=e.getDOM(),this.element=n,this.nextSibling=r,this.defaultOperations=new yt(e),this.elementStack.push(this.element),this.nextSiblingStack.push(this.nextSibling)}return e.forInitialRender=function(t,n,r){return new e(t,n,r)},e.resume=function(t,n,r){var i=n.parentElement(),o=new e(t,i,r)
return o.pushBlockTracker(n),o},e.prototype.expectConstructing=function(e){return t.expect(this.constructing,e+" should only be called while constructing an element")},e.prototype.expectOperations=function(e){return t.expect(this.operations,e+" should only be called while constructing an element")},e.prototype.block=function(){return t.expect(this.blockStack.current,"Expected a current block tracker")},e.prototype.popElement=function(){var e=this.elementStack,n=this.nextSiblingStack,r=e.pop()
return n.pop(),this.element=t.expect(e.current,"can't pop past the last element"),this.nextSibling=n.current,r},e.prototype.pushSimpleBlock=function(){var e=new kt(this.element)
return this.pushBlockTracker(e),e},e.prototype.pushUpdatableBlock=function(){var e=new Rt(this.element)
return this.pushBlockTracker(e),e},e.prototype.pushBlockTracker=function(e){var t=!(arguments.length<=1||void 0===arguments[1])&&arguments[1],n=this.blockStack.current
return null!==n&&(n.newDestroyable(e),t||n.newBounds(e)),this.blockStack.push(e),e},e.prototype.pushBlockList=function(e){var t=new Nt(this.element,e),n=this.blockStack.current
return null!==n&&(n.newDestroyable(t),n.newBounds(t)),this.blockStack.push(t),t},e.prototype.popBlock=function(){return this.block().finalize(this),t.expect(this.blockStack.pop(),"Expected popBlock to return a block")},e.prototype.openElement=function(e){var t=arguments.length<=1||void 0===arguments[1]?this.defaultOperations:arguments[1],n=this.dom.createElement(e,this.element)
return this.constructing=n,this.operations=t,n},e.prototype.flushElement=function(){var e=this.element,n=t.expect(this.constructing,"flushElement should only be called when constructing an element")
this.dom.insertBefore(e,n,this.nextSibling),this.constructing=null,this.operations=null,this.pushElement(n),this.block().openElement(n)},e.prototype.pushRemoteElement=function(e){this.pushElement(e)
var t=new Tt(e)
this.pushBlockTracker(t,!0)},e.prototype.popRemoteElement=function(){this.popBlock(),this.popElement()},e.prototype.pushElement=function(e){this.element=e,this.elementStack.push(e),this.nextSibling=null,this.nextSiblingStack.push(null)},e.prototype.newDestroyable=function(e){this.block().newDestroyable(e)},e.prototype.newBounds=function(e){this.block().newBounds(e)},e.prototype.appendText=function(e){var t=this.dom,n=t.createTextNode(e)
return t.insertBefore(this.element,n,this.nextSibling),this.block().newNode(n),n},e.prototype.appendComment=function(e){var t=this.dom,n=t.createComment(e)
return t.insertBefore(this.element,n,this.nextSibling),this.block().newNode(n),n},e.prototype.setStaticAttribute=function(e,t){this.expectOperations("setStaticAttribute").addStaticAttribute(this.expectConstructing("setStaticAttribute"),e,t)},e.prototype.setStaticAttributeNS=function(e,t,n){this.expectOperations("setStaticAttributeNS").addStaticAttributeNS(this.expectConstructing("setStaticAttributeNS"),e,t,n)},e.prototype.setDynamicAttribute=function(e,t,n){this.expectOperations("setDynamicAttribute").addDynamicAttribute(this.expectConstructing("setDynamicAttribute"),e,t,n)},e.prototype.setDynamicAttributeNS=function(e,t,n,r){this.expectOperations("setDynamicAttributeNS").addDynamicAttributeNS(this.expectConstructing("setDynamicAttributeNS"),e,t,n,r)},e.prototype.closeElement=function(){this.block().closeE