-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathrespec.js
23 lines (23 loc) · 442 KB
/
respec.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
"use strict";
/* ReSpec 5.0.0
Created by Robin Berjon, http://berjon.com/ (@robinberjon)
Documentation: http://w3.org/respec/.
See original source for licenses: https://github.com/w3c/respec */
window.respecVersion = "5.0.0";
var requirejs,require,define;!function(global){function commentReplace(e,t,n,r){return r||""}function isFunction(e){return"[object Function]"===ostring.call(e)}function isArray(e){return"[object Array]"===ostring.call(e)}function each(e,t){if(e){var n;for(n=0;n<e.length&&(!e[n]||!t(e[n],n,e));n+=1);}}function eachReverse(e,t){if(e){var n;for(n=e.length-1;n>-1&&(!e[n]||!t(e[n],n,e));n-=1);}}function hasProp(e,t){return hasOwn.call(e,t)}function getOwn(e,t){return hasProp(e,t)&&e[t]}function eachProp(e,t){var n;for(n in e)if(hasProp(e,n)&&t(e[n],n))break}function mixin(e,t,n,r){return t&&eachProp(t,function(t,i){(n||!hasProp(e,i))&&(!r||"object"!=typeof t||!t||isArray(t)||isFunction(t)||t instanceof RegExp?e[i]=t:(e[i]||(e[i]={}),mixin(e[i],t,n,r)))}),e}function bind(e,t){return function(){return t.apply(e,arguments)}}function scripts(){return document.getElementsByTagName("script")}function defaultOnError(e){throw e}function getGlobal(e){if(!e)return e;var t=global;return each(e.split("."),function(e){t=t[e]}),t}function makeError(e,t,n,r){var i=new Error(t+"\nhttp://requirejs.org/docs/errors.html#"+e);return i.requireType=e,i.requireModules=r,n&&(i.originalError=n),i}function newContext(e){function t(e){var t,n;for(t=0;t<e.length;t++)if(n=e[t],"."===n)e.splice(t,1),t-=1;else if(".."===n){if(0===t||1===t&&".."===e[2]||".."===e[t-1])continue;t>0&&(e.splice(t-1,2),t-=2)}}function n(e,n,r){var i,a,s,o,l,c,u,p,d,h,f,m,g=n&&n.split("/"),b=k.map,v=b&&b["*"];if(e&&(e=e.split("/"),u=e.length-1,k.nodeIdCompat&&jsSuffixRegExp.test(e[u])&&(e[u]=e[u].replace(jsSuffixRegExp,"")),"."===e[0].charAt(0)&&g&&(m=g.slice(0,g.length-1),e=m.concat(e)),t(e),e=e.join("/")),r&&b&&(g||v)){s=e.split("/");e:for(o=s.length;o>0;o-=1){if(c=s.slice(0,o).join("/"),g)for(l=g.length;l>0;l-=1)if(a=getOwn(b,g.slice(0,l).join("/")),a&&(a=getOwn(a,c))){p=a,d=o;break e}!h&&v&&getOwn(v,c)&&(h=getOwn(v,c),f=o)}!p&&h&&(p=h,d=f),p&&(s.splice(0,d,p),e=s.join("/"))}return i=getOwn(k.pkgs,e),i?i:e}function r(e){isBrowser&&each(scripts(),function(t){return t.getAttribute("data-requiremodule")===e&&t.getAttribute("data-requirecontext")===w.contextName?(t.parentNode.removeChild(t),!0):void 0})}function i(e){var t=getOwn(k.paths,e);return t&&isArray(t)&&t.length>1?(t.shift(),w.require.undef(e),w.makeRequire(null,{skipMap:!0})([e]),!0):void 0}function a(e){var t,n=e?e.indexOf("!"):-1;return n>-1&&(t=e.substring(0,n),e=e.substring(n+1,e.length)),[t,e]}function s(e,t,r,i){var s,o,l,c,u=null,p=t?t.name:null,d=e,h=!0,f="";return e||(h=!1,e="_@r"+(D+=1)),c=a(e),u=c[0],e=c[1],u&&(u=n(u,p,i),o=getOwn(A,u)),e&&(u?f=o&&o.normalize?o.normalize(e,function(e){return n(e,p,i)}):-1===e.indexOf("!")?n(e,p,i):e:(f=n(e,p,i),c=a(f),u=c[0],f=c[1],r=!0,s=w.nameToUrl(f))),l=!u||o||r?"":"_unnormalized"+(L+=1),{prefix:u,name:f,parentMap:t,unnormalized:!!l,url:s,originalName:d,isDefine:h,id:(u?u+"!"+f:f)+l}}function o(e){var t=e.id,n=getOwn(E,t);return n||(n=E[t]=new w.Module(e)),n}function l(e,t,n){var r=e.id,i=getOwn(E,r);!hasProp(A,r)||i&&!i.defineEmitComplete?(i=o(e),i.error&&"error"===t?n(i.error):i.on(t,n)):"defined"===t&&n(A[r])}function c(e,t){var n=e.requireModules,r=!1;t?t(e):(each(n,function(t){var n=getOwn(E,t);n&&(n.error=e,n.events.error&&(r=!0,n.emit("error",e)))}),r||req.onError(e))}function u(){globalDefQueue.length&&(each(globalDefQueue,function(e){var t=e[0];"string"==typeof t&&(w.defQueueMap[t]=!0),C.push(e)}),globalDefQueue=[])}function p(e){delete E[e],delete T[e]}function d(e,t,n){var r=e.map.id;e.error?e.emit("error",e.error):(t[r]=!0,each(e.depMaps,function(r,i){var a=r.id,s=getOwn(E,a);!s||e.depMatched[i]||n[a]||(getOwn(t,a)?(e.defineDep(i,A[a]),e.check()):d(s,t,n))}),n[r]=!0)}function h(){var e,t,n=1e3*k.waitSeconds,a=n&&w.startTime+n<(new Date).getTime(),s=[],o=[],l=!1,u=!0;if(!v){if(v=!0,eachProp(T,function(e){var n=e.map,c=n.id;if(e.enabled&&(n.isDefine||o.push(e),!e.error))if(!e.inited&&a)i(c)?(t=!0,l=!0):(s.push(c),r(c));else if(!e.inited&&e.fetched&&n.isDefine&&(l=!0,!n.prefix))return u=!1}),a&&s.length)return e=makeError("timeout","Load timeout for modules: "+s,null,s),e.contextName=w.contextName,c(e);u&&each(o,function(e){d(e,{},{})}),a&&!t||!l||!isBrowser&&!isWebWorker||_||(_=setTimeout(function(){_=0,h()},50)),v=!1}}function f(e){hasProp(A,e[0])||o(s(e[0],null,!0)).init(e[1],e[2])}function m(e,t,n,r){e.detachEvent&&!isOpera?r&&e.detachEvent(r,t):e.removeEventListener(n,t,!1)}function g(e){var t=e.currentTarget||e.srcElement;return m(t,w.onScriptLoad,"load","onreadystatechange"),m(t,w.onScriptError,"error"),{node:t,id:t&&t.getAttribute("data-requiremodule")}}function b(){var e;for(u();C.length;){if(e=C.shift(),null===e[0])return c(makeError("mismatch","Mismatched anonymous define() module: "+e[e.length-1]));f(e)}w.defQueueMap={}}var v,y,w,x,_,k={waitSeconds:7,baseUrl:"./",paths:{},bundles:{},pkgs:{},shim:{},config:{}},E={},T={},S={},C=[],A={},R={},N={},D=1,L=1;return x={require:function(e){return e.require?e.require:e.require=w.makeRequire(e.map)},exports:function(e){return e.usingExports=!0,e.map.isDefine?e.exports?A[e.map.id]=e.exports:e.exports=A[e.map.id]={}:void 0},module:function(e){return e.module?e.module:e.module={id:e.map.id,uri:e.map.url,config:function(){return getOwn(k.config,e.map.id)||{}},exports:e.exports||(e.exports={})}}},y=function(e){this.events=getOwn(S,e.id)||{},this.map=e,this.shim=getOwn(k.shim,e.id),this.depExports=[],this.depMaps=[],this.depMatched=[],this.pluginMaps={},this.depCount=0},y.prototype={init:function(e,t,n,r){r=r||{},this.inited||(this.factory=t,n?this.on("error",n):this.events.error&&(n=bind(this,function(e){this.emit("error",e)})),this.depMaps=e&&e.slice(0),this.errback=n,this.inited=!0,this.ignore=r.ignore,r.enabled||this.enabled?this.enable():this.check())},defineDep:function(e,t){this.depMatched[e]||(this.depMatched[e]=!0,this.depCount-=1,this.depExports[e]=t)},fetch:function(){if(!this.fetched){this.fetched=!0,w.startTime=(new Date).getTime();var e=this.map;return this.shim?void w.makeRequire(this.map,{enableBuildCallback:!0})(this.shim.deps||[],bind(this,function(){return e.prefix?this.callPlugin():this.load()})):e.prefix?this.callPlugin():this.load()}},load:function(){var e=this.map.url;R[e]||(R[e]=!0,w.load(this.map.id,e))},check:function(){if(this.enabled&&!this.enabling){var e,t,n=this.map.id,r=this.depExports,i=this.exports,a=this.factory;if(this.inited){if(this.error)this.emit("error",this.error);else if(!this.defining){if(this.defining=!0,this.depCount<1&&!this.defined){if(isFunction(a)){if(this.events.error&&this.map.isDefine||req.onError!==defaultOnError)try{i=w.execCb(n,a,r,i)}catch(s){e=s}else i=w.execCb(n,a,r,i);if(this.map.isDefine&&void 0===i&&(t=this.module,t?i=t.exports:this.usingExports&&(i=this.exports)),e)return e.requireMap=this.map,e.requireModules=this.map.isDefine?[this.map.id]:null,e.requireType=this.map.isDefine?"define":"require",c(this.error=e)}else i=a;if(this.exports=i,this.map.isDefine&&!this.ignore&&(A[n]=i,req.onResourceLoad)){var o=[];each(this.depMaps,function(e){o.push(e.normalizedMap||e)}),req.onResourceLoad(w,this.map,o)}p(n),this.defined=!0}this.defining=!1,this.defined&&!this.defineEmitted&&(this.defineEmitted=!0,this.emit("defined",this.exports),this.defineEmitComplete=!0)}}else hasProp(w.defQueueMap,n)||this.fetch()}},callPlugin:function(){var e=this.map,t=e.id,r=s(e.prefix);this.depMaps.push(r),l(r,"defined",bind(this,function(r){var i,a,u,d=getOwn(N,this.map.id),h=this.map.name,f=this.map.parentMap?this.map.parentMap.name:null,m=w.makeRequire(e.parentMap,{enableBuildCallback:!0});return this.map.unnormalized?(r.normalize&&(h=r.normalize(h,function(e){return n(e,f,!0)})||""),a=s(e.prefix+"!"+h,this.map.parentMap),l(a,"defined",bind(this,function(e){this.map.normalizedMap=a,this.init([],function(){return e},null,{enabled:!0,ignore:!0})})),u=getOwn(E,a.id),void(u&&(this.depMaps.push(a),this.events.error&&u.on("error",bind(this,function(e){this.emit("error",e)})),u.enable()))):d?(this.map.url=w.nameToUrl(d),void this.load()):(i=bind(this,function(e){this.init([],function(){return e},null,{enabled:!0})}),i.error=bind(this,function(e){this.inited=!0,this.error=e,e.requireModules=[t],eachProp(E,function(e){0===e.map.id.indexOf(t+"_unnormalized")&&p(e.map.id)}),c(e)}),i.fromText=bind(this,function(n,r){var a=e.name,l=s(a),u=useInteractive;r&&(n=r),u&&(useInteractive=!1),o(l),hasProp(k.config,t)&&(k.config[a]=k.config[t]);try{req.exec(n)}catch(p){return c(makeError("fromtexteval","fromText eval for "+t+" failed: "+p,p,[t]))}u&&(useInteractive=!0),this.depMaps.push(l),w.completeLoad(a),m([a],i)}),void r.load(e.name,m,i,k))})),w.enable(r,this),this.pluginMaps[r.id]=r},enable:function(){T[this.map.id]=this,this.enabled=!0,this.enabling=!0,each(this.depMaps,bind(this,function(e,t){var n,r,i;if("string"==typeof e){if(e=s(e,this.map.isDefine?this.map:this.map.parentMap,!1,!this.skipMap),this.depMaps[t]=e,i=getOwn(x,e.id))return void(this.depExports[t]=i(this));this.depCount+=1,l(e,"defined",bind(this,function(e){this.undefed||(this.defineDep(t,e),this.check())})),this.errback?l(e,"error",bind(this,this.errback)):this.events.error&&l(e,"error",bind(this,function(e){this.emit("error",e)}))}n=e.id,r=E[n],hasProp(x,n)||!r||r.enabled||w.enable(e,this)})),eachProp(this.pluginMaps,bind(this,function(e){var t=getOwn(E,e.id);t&&!t.enabled&&w.enable(e,this)})),this.enabling=!1,this.check()},on:function(e,t){var n=this.events[e];n||(n=this.events[e]=[]),n.push(t)},emit:function(e,t){each(this.events[e],function(e){e(t)}),"error"===e&&delete this.events[e]}},w={config:k,contextName:e,registry:E,defined:A,urlFetched:R,defQueue:C,defQueueMap:{},Module:y,makeModuleMap:s,nextTick:req.nextTick,onError:c,configure:function(e){if(e.baseUrl&&"/"!==e.baseUrl.charAt(e.baseUrl.length-1)&&(e.baseUrl+="/"),"string"==typeof e.urlArgs){var t=e.urlArgs;e.urlArgs=function(e,n){return(-1===n.indexOf("?")?"?":"&")+t}}var n=k.shim,r={paths:!0,bundles:!0,config:!0,map:!0};eachProp(e,function(e,t){r[t]?(k[t]||(k[t]={}),mixin(k[t],e,!0,!0)):k[t]=e}),e.bundles&&eachProp(e.bundles,function(e,t){each(e,function(e){e!==t&&(N[e]=t)})}),e.shim&&(eachProp(e.shim,function(e,t){isArray(e)&&(e={deps:e}),!e.exports&&!e.init||e.exportsFn||(e.exportsFn=w.makeShimExports(e)),n[t]=e}),k.shim=n),e.packages&&each(e.packages,function(e){var t,n;e="string"==typeof e?{name:e}:e,n=e.name,t=e.location,t&&(k.paths[n]=e.location),k.pkgs[n]=e.name+"/"+(e.main||"main").replace(currDirRegExp,"").replace(jsSuffixRegExp,"")}),eachProp(E,function(e,t){e.inited||e.map.unnormalized||(e.map=s(t,null,!0))}),(e.deps||e.callback)&&w.require(e.deps||[],e.callback)},makeShimExports:function(e){function t(){var t;return e.init&&(t=e.init.apply(global,arguments)),t||e.exports&&getGlobal(e.exports)}return t},makeRequire:function(t,i){function a(n,r,l){var u,p,d;return i.enableBuildCallback&&r&&isFunction(r)&&(r.__requireJsBuild=!0),"string"==typeof n?isFunction(r)?c(makeError("requireargs","Invalid require call"),l):t&&hasProp(x,n)?x[n](E[t.id]):req.get?req.get(w,n,t,a):(p=s(n,t,!1,!0),u=p.id,hasProp(A,u)?A[u]:c(makeError("notloaded",'Module name "'+u+'" has not been loaded yet for context: '+e+(t?"":". Use require([])")))):(b(),w.nextTick(function(){b(),d=o(s(null,t)),d.skipMap=i.skipMap,d.init(n,r,l,{enabled:!0}),h()}),a)}return i=i||{},mixin(a,{isBrowser:isBrowser,toUrl:function(e){var r,i=e.lastIndexOf("."),a=e.split("/")[0],s="."===a||".."===a;return-1!==i&&(!s||i>1)&&(r=e.substring(i,e.length),e=e.substring(0,i)),w.nameToUrl(n(e,t&&t.id,!0),r,!0)},defined:function(e){return hasProp(A,s(e,t,!1,!0).id)},specified:function(e){return e=s(e,t,!1,!0).id,hasProp(A,e)||hasProp(E,e)}}),t||(a.undef=function(e){u();var n=s(e,t,!0),i=getOwn(E,e);i.undefed=!0,r(e),delete A[e],delete R[n.url],delete S[e],eachReverse(C,function(t,n){t[0]===e&&C.splice(n,1)}),delete w.defQueueMap[e],i&&(i.events.defined&&(S[e]=i.events),p(e))}),a},enable:function(e){var t=getOwn(E,e.id);t&&o(e).enable()},completeLoad:function(e){var t,n,r,a=getOwn(k.shim,e)||{},s=a.exports;for(u();C.length;){if(n=C.shift(),null===n[0]){if(n[0]=e,t)break;t=!0}else n[0]===e&&(t=!0);f(n)}if(w.defQueueMap={},r=getOwn(E,e),!t&&!hasProp(A,e)&&r&&!r.inited){if(!(!k.enforceDefine||s&&getGlobal(s)))return i(e)?void 0:c(makeError("nodefine","No define call for "+e,null,[e]));f([e,a.deps||[],a.exportsFn])}h()},nameToUrl:function(e,t,n){var r,i,a,s,o,l,c,u=getOwn(k.pkgs,e);if(u&&(e=u),c=getOwn(N,e))return w.nameToUrl(c,t,n);if(req.jsExtRegExp.test(e))o=e+(t||"");else{for(r=k.paths,i=e.split("/"),a=i.length;a>0;a-=1)if(s=i.slice(0,a).join("/"),l=getOwn(r,s)){isArray(l)&&(l=l[0]),i.splice(0,a,l);break}o=i.join("/"),o+=t||(/^data\:|^blob\:|\?/.test(o)||n?"":".js"),o=("/"===o.charAt(0)||o.match(/^[\w\+\.\-]+:/)?"":k.baseUrl)+o}return k.urlArgs&&!/^blob\:/.test(o)?o+k.urlArgs(e,o):o},load:function(e,t){req.load(w,e,t)},execCb:function(e,t,n,r){return t.apply(r,n)},onScriptLoad:function(e){if("load"===e.type||readyRegExp.test((e.currentTarget||e.srcElement).readyState)){interactiveScript=null;var t=g(e);w.completeLoad(t.id)}},onScriptError:function(e){var t=g(e);if(!i(t.id)){var n=[];return eachProp(E,function(e,r){0!==r.indexOf("_@r")&&each(e.depMaps,function(e){return e.id===t.id?(n.push(r),!0):void 0})}),c(makeError("scripterror",'Script error for "'+t.id+(n.length?'", needed by: '+n.join(", "):'"'),e,[t.id]))}}},w.require=w.makeRequire(),w}function getInteractiveScript(){return interactiveScript&&"interactive"===interactiveScript.readyState?interactiveScript:(eachReverse(scripts(),function(e){return"interactive"===e.readyState?interactiveScript=e:void 0}),interactiveScript)}var req,s,head,baseElement,dataMain,src,interactiveScript,currentlyAddingScript,mainScript,subPath,version="2.2.0",commentRegExp=/(\/\*([\s\S]*?)\*\/|([^:]|^)\/\/(.*)$)/gm,cjsRequireRegExp=/[^.]\s*require\s*\(\s*["']([^'"\s]+)["']\s*\)/g,jsSuffixRegExp=/\.js$/,currDirRegExp=/^\.\//,op=Object.prototype,ostring=op.toString,hasOwn=op.hasOwnProperty,isBrowser=!("respec-w3c-common.build.js.map"==typeof window||"undefined"==typeof navigator||!window.document),isWebWorker=!isBrowser&&"undefined"!=typeof importScripts,readyRegExp=isBrowser&&"PLAYSTATION 3"===navigator.platform?/^complete$/:/^(complete|loaded)$/,defContextName="_",isOpera="undefined"!=typeof opera&&"[object Opera]"===opera.toString(),contexts={},cfg={},globalDefQueue=[],useInteractive=!1;if("undefined"==typeof define){if("undefined"!=typeof requirejs){if(isFunction(requirejs))return;cfg=requirejs,requirejs=void 0}"undefined"==typeof require||isFunction(require)||(cfg=require,require=void 0),req=requirejs=function(e,t,n,r){var i,a,s=defContextName;return isArray(e)||"string"==typeof e||(a=e,isArray(t)?(e=t,t=n,n=r):e=[]),a&&a.context&&(s=a.context),i=getOwn(contexts,s),i||(i=contexts[s]=req.s.newContext(s)),a&&i.configure(a),i.require(e,t,n)},req.config=function(e){return req(e)},req.nextTick="undefined"!=typeof setTimeout?function(e){setTimeout(e,4)}:function(e){e()},require||(require=req),req.version=version,req.jsExtRegExp=/^\/|:|\?|\.js$/,req.isBrowser=isBrowser,s=req.s={contexts:contexts,newContext:newContext},req({}),each(["toUrl","undef","defined","specified"],function(e){req[e]=function(){var t=contexts[defContextName];return t.require[e].apply(t,arguments)}}),isBrowser&&(head=s.head=document.getElementsByTagName("head")[0],baseElement=document.getElementsByTagName("base")[0],baseElement&&(head=s.head=baseElement.parentNode)),req.onError=defaultOnError,req.createNode=function(e,t,n){var r=e.xhtml?document.createElementNS("http://www.w3.org/1999/xhtml","html:script"):document.createElement("script");return r.type=e.scriptType||"text/javascript",r.charset="utf-8",r.async=!0,r},req.load=function(e,t,n){var r,i=e&&e.config||{};if(isBrowser)return r=req.createNode(i,t,n),r.setAttribute("data-requirecontext",e.contextName),r.setAttribute("data-requiremodule",t),!r.attachEvent||r.attachEvent.toString&&r.attachEvent.toString().indexOf("[native code")<0||isOpera?(r.addEventListener("load",e.onScriptLoad,!1),r.addEventListener("error",e.onScriptError,!1)):(useInteractive=!0,r.attachEvent("onreadystatechange",e.onScriptLoad)),r.src=n,i.onNodeCreated&&i.onNodeCreated(r,i,t,n),currentlyAddingScript=r,baseElement?head.insertBefore(r,baseElement):head.appendChild(r),currentlyAddingScript=null,r;if(isWebWorker)try{setTimeout(function(){},0),importScripts(n),e.completeLoad(t)}catch(a){e.onError(makeError("importscripts","importScripts failed for "+t+" at "+n,a,[t]))}},isBrowser&&!cfg.skipDataMain&&eachReverse(scripts(),function(e){return head||(head=e.parentNode),dataMain=e.getAttribute("data-main"),dataMain?(mainScript=dataMain,cfg.baseUrl||-1!==mainScript.indexOf("!")||(src=mainScript.split("/"),mainScript=src.pop(),subPath=src.length?src.join("/")+"/":"./",cfg.baseUrl=subPath),mainScript=mainScript.replace(jsSuffixRegExp,""),req.jsExtRegExp.test(mainScript)&&(mainScript=dataMain),cfg.deps=cfg.deps?cfg.deps.concat(mainScript):[mainScript],!0):void 0}),define=function(e,t,n){var r,i;"string"!=typeof e&&(n=t,t=e,e=null),isArray(t)||(n=t,t=null),!t&&isFunction(n)&&(t=[],n.length&&(n.toString().replace(commentRegExp,commentReplace).replace(cjsRequireRegExp,function(e,n){t.push(n)}),t=(1===n.length?["require"]:["require","exports","module"]).concat(t))),useInteractive&&(r=currentlyAddingScript||getInteractiveScript(),r&&(e||(e=r.getAttribute("data-requiremodule")),i=contexts[r.getAttribute("data-requirecontext")])),i?(i.defQueue.push([e,t,n]),i.defQueueMap[e]=!0):globalDefQueue.push([e,t,n])},define.amd={jQuery:!0},req.exec=function(text){return eval(text)},req(cfg)}}(this),define("deps/require",function(){}),function(e){"use strict";function t(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.\^_`|~]/i.test(e))throw new TypeError("Invalid character in header field name");return e.toLowerCase()}function n(e){return"string"!=typeof e&&(e=String(e)),e}function r(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return m.iterable&&(t[Symbol.iterator]=function(){return t}),t}function i(e){this.map={},e instanceof i?e.forEach(function(e,t){this.append(t,e)},this):e&&Object.getOwnPropertyNames(e).forEach(function(t){this.append(t,e[t])},this)}function a(e){return e.bodyUsed?Promise.reject(new TypeError("Already read")):void(e.bodyUsed=!0)}function s(e){return new Promise(function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}})}function o(e){var t=new FileReader;return t.readAsArrayBuffer(e),s(t)}function l(e){var t=new FileReader;return t.readAsText(e),s(t)}function c(){return this.bodyUsed=!1,this._initBody=function(e){if(this._bodyInit=e,"string"==typeof e)this._bodyText=e;else if(m.blob&&Blob.prototype.isPrototypeOf(e))this._bodyBlob=e;else if(m.formData&&FormData.prototype.isPrototypeOf(e))this._bodyFormData=e;else if(m.searchParams&&URLSearchParams.prototype.isPrototypeOf(e))this._bodyText=e.toString();else if(e){if(!m.arrayBuffer||!ArrayBuffer.prototype.isPrototypeOf(e))throw new Error("unsupported BodyInit type")}else this._bodyText="";this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):m.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},m.blob?(this.blob=function(){var e=a(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this.blob().then(o)},this.text=function(){var e=a(this);if(e)return e;if(this._bodyBlob)return l(this._bodyBlob);if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)}):this.text=function(){var e=a(this);return e?e:Promise.resolve(this._bodyText)},m.formData&&(this.formData=function(){return this.text().then(d)}),this.json=function(){return this.text().then(JSON.parse)},this}function u(e){var t=e.toUpperCase();return g.indexOf(t)>-1?t:e}function p(e,t){t=t||{};var n=t.body;if(p.prototype.isPrototypeOf(e)){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new i(e.headers)),this.method=e.method,this.mode=e.mode,n||(n=e._bodyInit,e.bodyUsed=!0)}else this.url=e;if(this.credentials=t.credentials||this.credentials||"omit",(t.headers||!this.headers)&&(this.headers=new i(t.headers)),this.method=u(t.method||this.method||"GET"),this.mode=t.mode||this.mode||null,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&n)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(n)}function d(e){var t=new FormData;return e.trim().split("&").forEach(function(e){if(e){var n=e.split("="),r=n.shift().replace(/\+/g," "),i=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(r),decodeURIComponent(i))}}),t}function h(e){var t=new i,n=(e.getAllResponseHeaders()||"").trim().split("\n");return n.forEach(function(e){var n=e.trim().split(":"),r=n.shift().trim(),i=n.join(":").trim();t.append(r,i)}),t}function f(e,t){t||(t={}),this.type="default",this.status=t.status,this.ok=this.status>=200&&this.status<300,this.statusText=t.statusText,this.headers=t.headers instanceof i?t.headers:new i(t.headers),this.url=t.url||"",this._initBody(e)}if(!e.fetch){var m={searchParams:"URLSearchParams"in e,iterable:"Symbol"in e&&"iterator"in Symbol,blob:"FileReader"in e&&"Blob"in e&&function(){try{return new Blob,!0}catch(e){return!1}}(),formData:"FormData"in e,arrayBuffer:"ArrayBuffer"in e};i.prototype.append=function(e,r){e=t(e),r=n(r);var i=this.map[e];i||(i=[],this.map[e]=i),i.push(r)},i.prototype["delete"]=function(e){delete this.map[t(e)]},i.prototype.get=function(e){var n=this.map[t(e)];return n?n[0]:null},i.prototype.getAll=function(e){return this.map[t(e)]||[]},i.prototype.has=function(e){return this.map.hasOwnProperty(t(e))},i.prototype.set=function(e,r){this.map[t(e)]=[n(r)]},i.prototype.forEach=function(e,t){Object.getOwnPropertyNames(this.map).forEach(function(n){this.map[n].forEach(function(r){e.call(t,r,n,this)},this)},this)},i.prototype.keys=function(){var e=[];return this.forEach(function(t,n){e.push(n)}),r(e)},i.prototype.values=function(){var e=[];return this.forEach(function(t){e.push(t)}),r(e)},i.prototype.entries=function(){var e=[];return this.forEach(function(t,n){e.push([n,t])}),r(e)},m.iterable&&(i.prototype[Symbol.iterator]=i.prototype.entries);var g=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];p.prototype.clone=function(){return new p(this)},c.call(p.prototype),c.call(f.prototype),f.prototype.clone=function(){return new f(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new i(this.headers),url:this.url})},f.error=function(){var e=new f(null,{status:0,statusText:""});return e.type="error",e};var b=[301,302,303,307,308];f.redirect=function(e,t){if(-1===b.indexOf(t))throw new RangeError("Invalid status code");return new f(null,{status:t,headers:{location:e}})},e.Headers=i,e.Request=p,e.Response=f,e.fetch=function(e,t){return new Promise(function(n,r){function i(){return"responseURL"in s?s.responseURL:/^X-Request-URL:/m.test(s.getAllResponseHeaders())?s.getResponseHeader("X-Request-URL"):void 0}var a;a=p.prototype.isPrototypeOf(e)&&!t?e:new p(e,t);var s=new XMLHttpRequest;s.onload=function(){var e={status:s.status,statusText:s.statusText,headers:h(s),url:i()},t="response"in s?s.response:s.responseText;n(new f(t,e))},s.onerror=function(){r(new TypeError("Network request failed"))},s.ontimeout=function(){r(new TypeError("Network request failed"))},s.open(a.method,a.url,!0),"include"===a.credentials&&(s.withCredentials=!0),"responseType"in s&&m.blob&&(s.responseType="blob"),a.headers.forEach(function(e,t){s.setRequestHeader(t,e)}),s.send("undefined"==typeof a._bodyInit?null:a._bodyInit)})},e.fetch.polyfill=!0}}("undefined"!=typeof self?self:this),define("deps/fetch",function(){}),function(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(e,t){"use strict";function n(e,t){t=t||J;var n=t.createElement("script");n.text=e,t.head.appendChild(n).parentNode.removeChild(n)}function r(e){var t=!!e&&"length"in e&&e.length,n=de.type(e);return"function"===n||de.isWindow(e)?!1:"array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e}function i(e,t,n){if(de.isFunction(t))return de.grep(e,function(e,r){return!!t.call(e,r,e)!==n});if(t.nodeType)return de.grep(e,function(e){return e===t!==n});if("string"==typeof t){if(_e.test(t))return de.filter(t,e,n);t=de.filter(t,e)}return de.grep(e,function(e){return ie.call(t,e)>-1!==n&&1===e.nodeType})}function a(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}function s(e){var t={};return de.each(e.match(Ae)||[],function(e,n){t[n]=!0}),t}function o(e){return e}function l(e){throw e}function c(e,t,n){var r;try{e&&de.isFunction(r=e.promise)?r.call(e).done(t).fail(n):e&&de.isFunction(r=e.then)?r.call(e,t,n):t.call(void 0,e)}catch(e){n.call(void 0,e)}}function u(){J.removeEventListener("DOMContentLoaded",u),e.removeEventListener("load",u),de.ready()}function p(){this.expando=de.expando+p.uid++}function d(e,t,n){var r;if(void 0===n&&1===e.nodeType)if(r="data-"+t.replace(je,"-$&").toLowerCase(),n=e.getAttribute(r),"string"==typeof n){try{n="true"===n?!0:"false"===n?!1:"null"===n?null:+n+""===n?+n:Oe.test(n)?JSON.parse(n):n}catch(i){}Ie.set(e,t,n)}else n=void 0;return n}function h(e,t,n,r){var i,a=1,s=20,o=r?function(){return r.cur()}:function(){return de.css(e,t,"")},l=o(),c=n&&n[3]||(de.cssNumber[t]?"":"px"),u=(de.cssNumber[t]||"px"!==c&&+l)&&$e.exec(de.css(e,t));if(u&&u[3]!==c){c=c||u[3],n=n||[],u=+l||1;do a=a||".5",u/=a,de.style(e,t,u+c);while(a!==(a=o()/l)&&1!==a&&--s)}return n&&(u=+u||+l||0,i=n[1]?u+(n[1]+1)*n[2]:+n[2],r&&(r.unit=c,r.start=u,r.end=i)),i}function f(e){var t,n=e.ownerDocument,r=e.nodeName,i=He[r];return i?i:(t=n.body.appendChild(n.createElement(r)),i=de.css(t,"display"),t.parentNode.removeChild(t),"none"===i&&(i="block"),He[r]=i,i)}function m(e,t){for(var n,r,i=[],a=0,s=e.length;s>a;a++)r=e[a],r.style&&(n=r.style.display,t?("none"===n&&(i[a]=Pe.get(r,"display")||null,i[a]||(r.style.display="")),""===r.style.display&&Fe(r)&&(i[a]=f(r))):"none"!==n&&(i[a]="none",Pe.set(r,"display",n)));for(a=0;s>a;a++)null!=i[a]&&(e[a].style.display=i[a]);return e}function g(e,t){var n="undefined"!=typeof e.getElementsByTagName?e.getElementsByTagName(t||"*"):"undefined"!=typeof e.querySelectorAll?e.querySelectorAll(t||"*"):[];return void 0===t||t&&de.nodeName(e,t)?de.merge([e],n):n}function b(e,t){for(var n=0,r=e.length;r>n;n++)Pe.set(e[n],"globalEval",!t||Pe.get(t[n],"globalEval"))}function v(e,t,n,r,i){for(var a,s,o,l,c,u,p=t.createDocumentFragment(),d=[],h=0,f=e.length;f>h;h++)if(a=e[h],a||0===a)if("object"===de.type(a))de.merge(d,a.nodeType?[a]:a);else if(Ve.test(a)){for(s=s||p.appendChild(t.createElement("div")),o=(Ke.exec(a)||["",""])[1].toLowerCase(),l=ze[o]||ze._default,s.innerHTML=l[1]+de.htmlPrefilter(a)+l[2],u=l[0];u--;)s=s.lastChild;de.merge(d,s.childNodes),s=p.firstChild,s.textContent=""}else d.push(t.createTextNode(a));for(p.textContent="",h=0;a=d[h++];)if(r&&de.inArray(a,r)>-1)i&&i.push(a);else if(c=de.contains(a.ownerDocument,a),s=g(p.appendChild(a),"script"),c&&b(s),n)for(u=0;a=s[u++];)We.test(a.type||"")&&n.push(a);return p}function y(){return!0}function w(){return!1}function x(){try{return J.activeElement}catch(e){}}function _(e,t,n,r,i,a){var s,o;if("object"==typeof t){"string"!=typeof n&&(r=r||n,n=void 0);for(o in t)_(e,o,n,r,t[o],a);return e}if(null==r&&null==i?(i=n,r=n=void 0):null==i&&("string"==typeof n?(i=r,r=void 0):(i=r,r=n,n=void 0)),i===!1)i=w;else if(!i)return e;return 1===a&&(s=i,i=function(e){return de().off(e),s.apply(this,arguments)},i.guid=s.guid||(s.guid=de.guid++)),e.each(function(){de.event.add(this,t,i,r,n)})}function k(e,t){return de.nodeName(e,"table")&&de.nodeName(11!==t.nodeType?t:t.firstChild,"tr")?e.getElementsByTagName("tbody")[0]||e:e}function E(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function T(e){var t=tt.exec(e.type);return t?e.type=t[1]:e.removeAttribute("type"),e}function S(e,t){var n,r,i,a,s,o,l,c;if(1===t.nodeType){if(Pe.hasData(e)&&(a=Pe.access(e),s=Pe.set(t,a),c=a.events)){delete s.handle,s.events={};for(i in c)for(n=0,r=c[i].length;r>n;n++)de.event.add(t,i,c[i][n])}Ie.hasData(e)&&(o=Ie.access(e),l=de.extend({},o),Ie.set(t,l))}}function C(e,t){var n=t.nodeName.toLowerCase();"input"===n&&Ue.test(e.type)?t.checked=e.checked:("input"===n||"textarea"===n)&&(t.defaultValue=e.defaultValue)}function A(e,t,r,i){t=ne.apply([],t);var a,s,o,l,c,u,p=0,d=e.length,h=d-1,f=t[0],m=de.isFunction(f);if(m||d>1&&"string"==typeof f&&!ue.checkClone&&et.test(f))return e.each(function(n){var a=e.eq(n);m&&(t[0]=f.call(this,n,a.html())),A(a,t,r,i)});if(d&&(a=v(t,e[0].ownerDocument,!1,e,i),s=a.firstChild,1===a.childNodes.length&&(a=s),s||i)){for(o=de.map(g(a,"script"),E),l=o.length;d>p;p++)c=a,p!==h&&(c=de.clone(c,!0,!0),l&&de.merge(o,g(c,"script"))),r.call(e[p],c,p);if(l)for(u=o[o.length-1].ownerDocument,de.map(o,T),p=0;l>p;p++)c=o[p],We.test(c.type||"")&&!Pe.access(c,"globalEval")&&de.contains(u,c)&&(c.src?de._evalUrl&&de._evalUrl(c.src):n(c.textContent.replace(nt,""),u))}return e}function R(e,t,n){for(var r,i=t?de.filter(t,e):e,a=0;null!=(r=i[a]);a++)n||1!==r.nodeType||de.cleanData(g(r)),r.parentNode&&(n&&de.contains(r.ownerDocument,r)&&b(g(r,"script")),r.parentNode.removeChild(r));return e}function N(e,t,n){var r,i,a,s,o=e.style;return n=n||at(e),n&&(s=n.getPropertyValue(t)||n[t],""!==s||de.contains(e.ownerDocument,e)||(s=de.style(e,t)),!ue.pixelMarginRight()&&it.test(s)&&rt.test(t)&&(r=o.width,i=o.minWidth,a=o.maxWidth,o.minWidth=o.maxWidth=o.width=s,s=n.width,o.width=r,o.minWidth=i,o.maxWidth=a)),void 0!==s?s+"":s}function D(e,t){return{get:function(){return e()?void delete this.get:(this.get=t).apply(this,arguments)}}}function L(e){if(e in ut)return e;for(var t=e[0].toUpperCase()+e.slice(1),n=ct.length;n--;)if(e=ct[n]+t,e in ut)return e}function P(e,t,n){var r=$e.exec(t);return r?Math.max(0,r[2]-(n||0))+(r[3]||"px"):t}function I(e,t,n,r,i){for(var a=n===(r?"border":"content")?4:"width"===t?1:0,s=0;4>a;a+=2)"margin"===n&&(s+=de.css(e,n+Be[a],!0,i)),r?("content"===n&&(s-=de.css(e,"padding"+Be[a],!0,i)),"margin"!==n&&(s-=de.css(e,"border"+Be[a]+"Width",!0,i))):(s+=de.css(e,"padding"+Be[a],!0,i),"padding"!==n&&(s+=de.css(e,"border"+Be[a]+"Width",!0,i)));return s}function O(e,t,n){var r,i=!0,a=at(e),s="border-box"===de.css(e,"boxSizing",!1,a);if(e.getClientRects().length&&(r=e.getBoundingClientRect()[t]),0>=r||null==r){if(r=N(e,t,a),(0>r||null==r)&&(r=e.style[t]),it.test(r))return r;i=s&&(ue.boxSizingReliable()||r===e.style[t]),r=parseFloat(r)||0}return r+I(e,t,n||(s?"border":"content"),i,a)+"px"}function j(e,t,n,r,i){return new j.prototype.init(e,t,n,r,i)}function M(){dt&&(e.requestAnimationFrame(M),de.fx.tick())}function $(){return e.setTimeout(function(){pt=void 0}),pt=de.now()}function B(e,t){var n,r=0,i={height:e};for(t=t?1:0;4>r;r+=2-t)n=Be[r],i["margin"+n]=i["padding"+n]=e;return t&&(i.opacity=i.width=e),i}function F(e,t,n){for(var r,i=(U.tweeners[t]||[]).concat(U.tweeners["*"]),a=0,s=i.length;s>a;a++)if(r=i[a].call(n,t,e))return r}function q(e,t,n){var r,i,a,s,o,l,c,u,p="width"in t||"height"in t,d=this,h={},f=e.style,g=e.nodeType&&Fe(e),b=Pe.get(e,"fxshow");n.queue||(s=de._queueHooks(e,"fx"),null==s.unqueued&&(s.unqueued=0,o=s.empty.fire,s.empty.fire=function(){s.unqueued||o()}),s.unqueued++,d.always(function(){d.always(function(){s.unqueued--,de.queue(e,"fx").length||s.empty.fire()})}));for(r in t)if(i=t[r],ht.test(i)){if(delete t[r],
a=a||"toggle"===i,i===(g?"hide":"show")){if("show"!==i||!b||void 0===b[r])continue;g=!0}h[r]=b&&b[r]||de.style(e,r)}if(l=!de.isEmptyObject(t),l||!de.isEmptyObject(h)){p&&1===e.nodeType&&(n.overflow=[f.overflow,f.overflowX,f.overflowY],c=b&&b.display,null==c&&(c=Pe.get(e,"display")),u=de.css(e,"display"),"none"===u&&(c?u=c:(m([e],!0),c=e.style.display||c,u=de.css(e,"display"),m([e]))),("inline"===u||"inline-block"===u&&null!=c)&&"none"===de.css(e,"float")&&(l||(d.done(function(){f.display=c}),null==c&&(u=f.display,c="none"===u?"":u)),f.display="inline-block")),n.overflow&&(f.overflow="hidden",d.always(function(){f.overflow=n.overflow[0],f.overflowX=n.overflow[1],f.overflowY=n.overflow[2]})),l=!1;for(r in h)l||(b?"hidden"in b&&(g=b.hidden):b=Pe.access(e,"fxshow",{display:c}),a&&(b.hidden=!g),g&&m([e],!0),d.done(function(){g||m([e]),Pe.remove(e,"fxshow");for(r in h)de.style(e,r,h[r])})),l=F(g?b[r]:0,r,d),r in b||(b[r]=l.start,g&&(l.end=l.start,l.start=0))}}function H(e,t){var n,r,i,a,s;for(n in e)if(r=de.camelCase(n),i=t[r],a=e[n],de.isArray(a)&&(i=a[1],a=e[n]=a[0]),n!==r&&(e[r]=a,delete e[n]),s=de.cssHooks[r],s&&"expand"in s){a=s.expand(a),delete e[r];for(n in a)n in e||(e[n]=a[n],t[n]=i)}else t[r]=i}function U(e,t,n){var r,i,a=0,s=U.prefilters.length,o=de.Deferred().always(function(){delete l.elem}),l=function(){if(i)return!1;for(var t=pt||$(),n=Math.max(0,c.startTime+c.duration-t),r=n/c.duration||0,a=1-r,s=0,l=c.tweens.length;l>s;s++)c.tweens[s].run(a);return o.notifyWith(e,[c,a,n]),1>a&&l?n:(o.resolveWith(e,[c]),!1)},c=o.promise({elem:e,props:de.extend({},t),opts:de.extend(!0,{specialEasing:{},easing:de.easing._default},n),originalProperties:t,originalOptions:n,startTime:pt||$(),duration:n.duration,tweens:[],createTween:function(t,n){var r=de.Tween(e,c.opts,t,n,c.opts.specialEasing[t]||c.opts.easing);return c.tweens.push(r),r},stop:function(t){var n=0,r=t?c.tweens.length:0;if(i)return this;for(i=!0;r>n;n++)c.tweens[n].run(1);return t?(o.notifyWith(e,[c,1,0]),o.resolveWith(e,[c,t])):o.rejectWith(e,[c,t]),this}}),u=c.props;for(H(u,c.opts.specialEasing);s>a;a++)if(r=U.prefilters[a].call(c,e,u,c.opts))return de.isFunction(r.stop)&&(de._queueHooks(c.elem,c.opts.queue).stop=de.proxy(r.stop,r)),r;return de.map(u,F,c),de.isFunction(c.opts.start)&&c.opts.start.call(e,c),de.fx.timer(de.extend(l,{elem:e,anim:c,queue:c.opts.queue})),c.progress(c.opts.progress).done(c.opts.done,c.opts.complete).fail(c.opts.fail).always(c.opts.always)}function K(e){return e.getAttribute&&e.getAttribute("class")||""}function W(e,t,n,r){var i;if(de.isArray(t))de.each(t,function(t,i){n||St.test(e)?r(e,i):W(e+"["+("object"==typeof i&&null!=i?t:"")+"]",i,n,r)});else if(n||"object"!==de.type(t))r(e,t);else for(i in t)W(e+"["+i+"]",t[i],n,r)}function z(e){return function(t,n){"string"!=typeof t&&(n=t,t="*");var r,i=0,a=t.toLowerCase().match(Ae)||[];if(de.isFunction(n))for(;r=a[i++];)"+"===r[0]?(r=r.slice(1)||"*",(e[r]=e[r]||[]).unshift(n)):(e[r]=e[r]||[]).push(n)}}function V(e,t,n,r){function i(o){var l;return a[o]=!0,de.each(e[o]||[],function(e,o){var c=o(t,n,r);return"string"!=typeof c||s||a[c]?s?!(l=c):void 0:(t.dataTypes.unshift(c),i(c),!1)}),l}var a={},s=e===$t;return i(t.dataTypes[0])||!a["*"]&&i("*")}function G(e,t){var n,r,i=de.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((i[n]?e:r||(r={}))[n]=t[n]);return r&&de.extend(!0,e,r),e}function X(e,t,n){for(var r,i,a,s,o=e.contents,l=e.dataTypes;"*"===l[0];)l.shift(),void 0===r&&(r=e.mimeType||t.getResponseHeader("Content-Type"));if(r)for(i in o)if(o[i]&&o[i].test(r)){l.unshift(i);break}if(l[0]in n)a=l[0];else{for(i in n){if(!l[0]||e.converters[i+" "+l[0]]){a=i;break}s||(s=i)}a=a||s}return a?(a!==l[0]&&l.unshift(a),n[a]):void 0}function Y(e,t,n,r){var i,a,s,o,l,c={},u=e.dataTypes.slice();if(u[1])for(s in e.converters)c[s.toLowerCase()]=e.converters[s];for(a=u.shift();a;)if(e.responseFields[a]&&(n[e.responseFields[a]]=t),!l&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),l=a,a=u.shift())if("*"===a)a=l;else if("*"!==l&&l!==a){if(s=c[l+" "+a]||c["* "+a],!s)for(i in c)if(o=i.split(" "),o[1]===a&&(s=c[l+" "+o[0]]||c["* "+o[0]])){s===!0?s=c[i]:c[i]!==!0&&(a=o[0],u.unshift(o[1]));break}if(s!==!0)if(s&&e["throws"])t=s(t);else try{t=s(t)}catch(p){return{state:"parsererror",error:s?p:"No conversion from "+l+" to "+a}}}return{state:"success",data:t}}function Q(e){return de.isWindow(e)?e:9===e.nodeType&&e.defaultView}var Z=[],J=e.document,ee=Object.getPrototypeOf,te=Z.slice,ne=Z.concat,re=Z.push,ie=Z.indexOf,ae={},se=ae.toString,oe=ae.hasOwnProperty,le=oe.toString,ce=le.call(Object),ue={},pe="3.1.0",de=function(e,t){return new de.fn.init(e,t)},he=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,fe=/^-ms-/,me=/-([a-z])/g,ge=function(e,t){return t.toUpperCase()};de.fn=de.prototype={jquery:pe,constructor:de,length:0,toArray:function(){return te.call(this)},get:function(e){return null!=e?0>e?this[e+this.length]:this[e]:te.call(this)},pushStack:function(e){var t=de.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return de.each(this,e)},map:function(e){return this.pushStack(de.map(this,function(t,n){return e.call(t,n,t)}))},slice:function(){return this.pushStack(te.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var t=this.length,n=+e+(0>e?t:0);return this.pushStack(n>=0&&t>n?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:re,sort:Z.sort,splice:Z.splice},de.extend=de.fn.extend=function(){var e,t,n,r,i,a,s=arguments[0]||{},o=1,l=arguments.length,c=!1;for("boolean"==typeof s&&(c=s,s=arguments[o]||{},o++),"object"==typeof s||de.isFunction(s)||(s={}),o===l&&(s=this,o--);l>o;o++)if(null!=(e=arguments[o]))for(t in e)n=s[t],r=e[t],s!==r&&(c&&r&&(de.isPlainObject(r)||(i=de.isArray(r)))?(i?(i=!1,a=n&&de.isArray(n)?n:[]):a=n&&de.isPlainObject(n)?n:{},s[t]=de.extend(c,a,r)):void 0!==r&&(s[t]=r));return s},de.extend({expando:"jQuery"+(pe+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isFunction:function(e){return"function"===de.type(e)},isArray:Array.isArray,isWindow:function(e){return null!=e&&e===e.window},isNumeric:function(e){var t=de.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},isPlainObject:function(e){var t,n;return e&&"[object Object]"===se.call(e)?(t=ee(e))?(n=oe.call(t,"constructor")&&t.constructor,"function"==typeof n&&le.call(n)===ce):!0:!1},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},type:function(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?ae[se.call(e)]||"object":typeof e},globalEval:function(e){n(e)},camelCase:function(e){return e.replace(fe,"ms-").replace(me,ge)},nodeName:function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},each:function(e,t){var n,i=0;if(r(e))for(n=e.length;n>i&&t.call(e[i],i,e[i])!==!1;i++);else for(i in e)if(t.call(e[i],i,e[i])===!1)break;return e},trim:function(e){return null==e?"":(e+"").replace(he,"")},makeArray:function(e,t){var n=t||[];return null!=e&&(r(Object(e))?de.merge(n,"string"==typeof e?[e]:e):re.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:ie.call(t,e,n)},merge:function(e,t){for(var n=+t.length,r=0,i=e.length;n>r;r++)e[i++]=t[r];return e.length=i,e},grep:function(e,t,n){for(var r,i=[],a=0,s=e.length,o=!n;s>a;a++)r=!t(e[a],a),r!==o&&i.push(e[a]);return i},map:function(e,t,n){var i,a,s=0,o=[];if(r(e))for(i=e.length;i>s;s++)a=t(e[s],s,n),null!=a&&o.push(a);else for(s in e)a=t(e[s],s,n),null!=a&&o.push(a);return ne.apply([],o)},guid:1,proxy:function(e,t){var n,r,i;return"string"==typeof t&&(n=e[t],t=e,e=n),de.isFunction(e)?(r=te.call(arguments,2),i=function(){return e.apply(t||this,r.concat(te.call(arguments)))},i.guid=e.guid=e.guid||de.guid++,i):void 0},now:Date.now,support:ue}),"function"==typeof Symbol&&(de.fn[Symbol.iterator]=Z[Symbol.iterator]),de.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){ae["[object "+t+"]"]=t.toLowerCase()});var be=function(e){function t(e,t,n,r){var i,a,s,o,l,c,u,d=t&&t.ownerDocument,f=t?t.nodeType:9;if(n=n||[],"string"!=typeof e||!e||1!==f&&9!==f&&11!==f)return n;if(!r&&((t?t.ownerDocument||t:q)!==P&&L(t),t=t||P,O)){if(11!==f&&(l=be.exec(e)))if(i=l[1]){if(9===f){if(!(s=t.getElementById(i)))return n;if(s.id===i)return n.push(s),n}else if(d&&(s=d.getElementById(i))&&B(t,s)&&s.id===i)return n.push(s),n}else{if(l[2])return Z.apply(n,t.getElementsByTagName(e)),n;if((i=l[3])&&_.getElementsByClassName&&t.getElementsByClassName)return Z.apply(n,t.getElementsByClassName(i)),n}if(_.qsa&&!z[e+" "]&&(!j||!j.test(e))){if(1!==f)d=t,u=e;else if("object"!==t.nodeName.toLowerCase()){for((o=t.getAttribute("id"))?o=o.replace(xe,_e):t.setAttribute("id",o=F),c=S(e),a=c.length;a--;)c[a]="#"+o+" "+h(c[a]);u=c.join(","),d=ve.test(e)&&p(t.parentNode)||t}if(u)try{return Z.apply(n,d.querySelectorAll(u)),n}catch(m){}finally{o===F&&t.removeAttribute("id")}}}return A(e.replace(oe,"$1"),t,n,r)}function n(){function e(n,r){return t.push(n+" ")>k.cacheLength&&delete e[t.shift()],e[n+" "]=r}var t=[];return e}function r(e){return e[F]=!0,e}function i(e){var t=P.createElement("fieldset");try{return!!e(t)}catch(n){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function a(e,t){for(var n=e.split("|"),r=n.length;r--;)k.attrHandle[n[r]]=t}function s(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(r)return r;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function o(e){return function(t){var n=t.nodeName.toLowerCase();return"input"===n&&t.type===e}}function l(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function c(e){return function(t){return"label"in t&&t.disabled===e||"form"in t&&t.disabled===e||"form"in t&&t.disabled===!1&&(t.isDisabled===e||t.isDisabled!==!e&&("label"in t||!Ee(t))!==e)}}function u(e){return r(function(t){return t=+t,r(function(n,r){for(var i,a=e([],n.length,t),s=a.length;s--;)n[i=a[s]]&&(n[i]=!(r[i]=n[i]))})})}function p(e){return e&&"undefined"!=typeof e.getElementsByTagName&&e}function d(){}function h(e){for(var t=0,n=e.length,r="";n>t;t++)r+=e[t].value;return r}function f(e,t,n){var r=t.dir,i=t.next,a=i||r,s=n&&"parentNode"===a,o=U++;return t.first?function(t,n,i){for(;t=t[r];)if(1===t.nodeType||s)return e(t,n,i)}:function(t,n,l){var c,u,p,d=[H,o];if(l){for(;t=t[r];)if((1===t.nodeType||s)&&e(t,n,l))return!0}else for(;t=t[r];)if(1===t.nodeType||s)if(p=t[F]||(t[F]={}),u=p[t.uniqueID]||(p[t.uniqueID]={}),i&&i===t.nodeName.toLowerCase())t=t[r]||t;else{if((c=u[a])&&c[0]===H&&c[1]===o)return d[2]=c[2];if(u[a]=d,d[2]=e(t,n,l))return!0}}}function m(e){return e.length>1?function(t,n,r){for(var i=e.length;i--;)if(!e[i](t,n,r))return!1;return!0}:e[0]}function g(e,n,r){for(var i=0,a=n.length;a>i;i++)t(e,n[i],r);return r}function b(e,t,n,r,i){for(var a,s=[],o=0,l=e.length,c=null!=t;l>o;o++)(a=e[o])&&(!n||n(a,r,i))&&(s.push(a),c&&t.push(o));return s}function v(e,t,n,i,a,s){return i&&!i[F]&&(i=v(i)),a&&!a[F]&&(a=v(a,s)),r(function(r,s,o,l){var c,u,p,d=[],h=[],f=s.length,m=r||g(t||"*",o.nodeType?[o]:o,[]),v=!e||!r&&t?m:b(m,d,e,o,l),y=n?a||(r?e:f||i)?[]:s:v;if(n&&n(v,y,o,l),i)for(c=b(y,h),i(c,[],o,l),u=c.length;u--;)(p=c[u])&&(y[h[u]]=!(v[h[u]]=p));if(r){if(a||e){if(a){for(c=[],u=y.length;u--;)(p=y[u])&&c.push(v[u]=p);a(null,y=[],c,l)}for(u=y.length;u--;)(p=y[u])&&(c=a?ee(r,p):d[u])>-1&&(r[c]=!(s[c]=p))}}else y=b(y===s?y.splice(f,y.length):y),a?a(null,s,y,l):Z.apply(s,y)})}function y(e){for(var t,n,r,i=e.length,a=k.relative[e[0].type],s=a||k.relative[" "],o=a?1:0,l=f(function(e){return e===t},s,!0),c=f(function(e){return ee(t,e)>-1},s,!0),u=[function(e,n,r){var i=!a&&(r||n!==R)||((t=n).nodeType?l(e,n,r):c(e,n,r));return t=null,i}];i>o;o++)if(n=k.relative[e[o].type])u=[f(m(u),n)];else{if(n=k.filter[e[o].type].apply(null,e[o].matches),n[F]){for(r=++o;i>r&&!k.relative[e[r].type];r++);return v(o>1&&m(u),o>1&&h(e.slice(0,o-1).concat({value:" "===e[o-2].type?"*":""})).replace(oe,"$1"),n,r>o&&y(e.slice(o,r)),i>r&&y(e=e.slice(r)),i>r&&h(e))}u.push(n)}return m(u)}function w(e,n){var i=n.length>0,a=e.length>0,s=function(r,s,o,l,c){var u,p,d,h=0,f="0",m=r&&[],g=[],v=R,y=r||a&&k.find.TAG("*",c),w=H+=null==v?1:Math.random()||.1,x=y.length;for(c&&(R=s===P||s||c);f!==x&&null!=(u=y[f]);f++){if(a&&u){for(p=0,s||u.ownerDocument===P||(L(u),o=!O);d=e[p++];)if(d(u,s||P,o)){l.push(u);break}c&&(H=w)}i&&((u=!d&&u)&&h--,r&&m.push(u))}if(h+=f,i&&f!==h){for(p=0;d=n[p++];)d(m,g,s,o);if(r){if(h>0)for(;f--;)m[f]||g[f]||(g[f]=Y.call(l));g=b(g)}Z.apply(l,g),c&&!r&&g.length>0&&h+n.length>1&&t.uniqueSort(l)}return c&&(H=w,R=v),m};return i?r(s):s}var x,_,k,E,T,S,C,A,R,N,D,L,P,I,O,j,M,$,B,F="sizzle"+1*new Date,q=e.document,H=0,U=0,K=n(),W=n(),z=n(),V=function(e,t){return e===t&&(D=!0),0},G={}.hasOwnProperty,X=[],Y=X.pop,Q=X.push,Z=X.push,J=X.slice,ee=function(e,t){for(var n=0,r=e.length;r>n;n++)if(e[n]===t)return n;return-1},te="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",ne="[\\x20\\t\\r\\n\\f]",re="(?:\\\\.|[\\w-]|[^\x00-\\xa0])+",ie="\\["+ne+"*("+re+")(?:"+ne+"*([*^$|!~]?=)"+ne+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+re+"))|)"+ne+"*\\]",ae=":("+re+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+ie+")*)|.*)\\)|)",se=new RegExp(ne+"+","g"),oe=new RegExp("^"+ne+"+|((?:^|[^\\\\])(?:\\\\.)*)"+ne+"+$","g"),le=new RegExp("^"+ne+"*,"+ne+"*"),ce=new RegExp("^"+ne+"*([>+~]|"+ne+")"+ne+"*"),ue=new RegExp("="+ne+"*([^\\]'\"]*?)"+ne+"*\\]","g"),pe=new RegExp(ae),de=new RegExp("^"+re+"$"),he={ID:new RegExp("^#("+re+")"),CLASS:new RegExp("^\\.("+re+")"),TAG:new RegExp("^("+re+"|[*])"),ATTR:new RegExp("^"+ie),PSEUDO:new RegExp("^"+ae),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+ne+"*(even|odd|(([+-]|)(\\d*)n|)"+ne+"*(?:([+-]|)"+ne+"*(\\d+)|))"+ne+"*\\)|)","i"),bool:new RegExp("^(?:"+te+")$","i"),needsContext:new RegExp("^"+ne+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+ne+"*((?:-\\d)?\\d*)"+ne+"*\\)|)(?=[^-]|$)","i")},fe=/^(?:input|select|textarea|button)$/i,me=/^h\d$/i,ge=/^[^{]+\{\s*\[native \w/,be=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ve=/[+~]/,ye=new RegExp("\\\\([\\da-f]{1,6}"+ne+"?|("+ne+")|.)","ig"),we=function(e,t,n){var r="0x"+t-65536;return r!==r||n?t:0>r?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,1023&r|56320)},xe=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g,_e=function(e,t){return t?"\x00"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},ke=function(){L()},Ee=f(function(e){return e.disabled===!0},{dir:"parentNode",next:"legend"});try{Z.apply(X=J.call(q.childNodes),q.childNodes),X[q.childNodes.length].nodeType}catch(Te){Z={apply:X.length?function(e,t){Q.apply(e,J.call(t))}:function(e,t){for(var n=e.length,r=0;e[n++]=t[r++];);e.length=n-1}}}_=t.support={},T=t.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return t?"HTML"!==t.nodeName:!1},L=t.setDocument=function(e){var t,n,r=e?e.ownerDocument||e:q;return r!==P&&9===r.nodeType&&r.documentElement?(P=r,I=P.documentElement,O=!T(P),q!==P&&(n=P.defaultView)&&n.top!==n&&(n.addEventListener?n.addEventListener("unload",ke,!1):n.attachEvent&&n.attachEvent("onunload",ke)),_.attributes=i(function(e){return e.className="i",!e.getAttribute("className")}),_.getElementsByTagName=i(function(e){return e.appendChild(P.createComment("")),!e.getElementsByTagName("*").length}),_.getElementsByClassName=ge.test(P.getElementsByClassName),_.getById=i(function(e){return I.appendChild(e).id=F,!P.getElementsByName||!P.getElementsByName(F).length}),_.getById?(k.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&O){var n=t.getElementById(e);return n?[n]:[]}},k.filter.ID=function(e){var t=e.replace(ye,we);return function(e){return e.getAttribute("id")===t}}):(delete k.find.ID,k.filter.ID=function(e){var t=e.replace(ye,we);return function(e){var n="undefined"!=typeof e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}}),k.find.TAG=_.getElementsByTagName?function(e,t){return"undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName(e):_.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,r=[],i=0,a=t.getElementsByTagName(e);if("*"===e){for(;n=a[i++];)1===n.nodeType&&r.push(n);return r}return a},k.find.CLASS=_.getElementsByClassName&&function(e,t){return"undefined"!=typeof t.getElementsByClassName&&O?t.getElementsByClassName(e):void 0},M=[],j=[],(_.qsa=ge.test(P.querySelectorAll))&&(i(function(e){I.appendChild(e).innerHTML="<a id='"+F+"'></a><select id='"+F+"-\r\\' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&j.push("[*^$]="+ne+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||j.push("\\["+ne+"*(?:value|"+te+")"),e.querySelectorAll("[id~="+F+"-]").length||j.push("~="),e.querySelectorAll(":checked").length||j.push(":checked"),e.querySelectorAll("a#"+F+"+*").length||j.push(".#.+[+~]")}),i(function(e){e.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var t=P.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&j.push("name"+ne+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&j.push(":enabled",":disabled"),I.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&j.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),j.push(",.*:")})),(_.matchesSelector=ge.test($=I.matches||I.webkitMatchesSelector||I.mozMatchesSelector||I.oMatchesSelector||I.msMatchesSelector))&&i(function(e){_.disconnectedMatch=$.call(e,"*"),$.call(e,"[s!='']:x"),M.push("!=",ae)}),j=j.length&&new RegExp(j.join("|")),M=M.length&&new RegExp(M.join("|")),t=ge.test(I.compareDocumentPosition),B=t||ge.test(I.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},V=t?function(e,t){if(e===t)return D=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n?n:(n=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1,1&n||!_.sortDetached&&t.compareDocumentPosition(e)===n?e===P||e.ownerDocument===q&&B(q,e)?-1:t===P||t.ownerDocument===q&&B(q,t)?1:N?ee(N,e)-ee(N,t):0:4&n?-1:1)}:function(e,t){if(e===t)return D=!0,0;var n,r=0,i=e.parentNode,a=t.parentNode,o=[e],l=[t];if(!i||!a)return e===P?-1:t===P?1:i?-1:a?1:N?ee(N,e)-ee(N,t):0;if(i===a)return s(e,t);for(n=e;n=n.parentNode;)o.unshift(n);for(n=t;n=n.parentNode;)l.unshift(n);for(;o[r]===l[r];)r++;return r?s(o[r],l[r]):o[r]===q?-1:l[r]===q?1:0},P):P},t.matches=function(e,n){return t(e,null,null,n)},t.matchesSelector=function(e,n){if((e.ownerDocument||e)!==P&&L(e),n=n.replace(ue,"='$1']"),_.matchesSelector&&O&&!z[n+" "]&&(!M||!M.test(n))&&(!j||!j.test(n)))try{var r=$.call(e,n);if(r||_.disconnectedMatch||e.document&&11!==e.document.nodeType)return r}catch(i){}return t(n,P,null,[e]).length>0},t.contains=function(e,t){return(e.ownerDocument||e)!==P&&L(e),B(e,t)},t.attr=function(e,t){(e.ownerDocument||e)!==P&&L(e);var n=k.attrHandle[t.toLowerCase()],r=n&&G.call(k.attrHandle,t.toLowerCase())?n(e,t,!O):void 0;return void 0!==r?r:_.attributes||!O?e.getAttribute(t):(r=e.getAttributeNode(t))&&r.specified?r.value:null},t.escape=function(e){return(e+"").replace(xe,_e)},t.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},t.uniqueSort=function(e){var t,n=[],r=0,i=0;if(D=!_.detectDuplicates,N=!_.sortStable&&e.slice(0),e.sort(V),D){for(;t=e[i++];)t===e[i]&&(r=n.push(i));for(;r--;)e.splice(n[r],1)}return N=null,e},E=t.getText=function(e){var t,n="",r=0,i=e.nodeType;if(i){if(1===i||9===i||11===i){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=E(e)}else if(3===i||4===i)return e.nodeValue}else for(;t=e[r++];)n+=E(t);return n},k=t.selectors={cacheLength:50,createPseudo:r,match:he,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(ye,we),e[3]=(e[3]||e[4]||e[5]||"").replace(ye,we),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||t.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&t.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return he.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&pe.test(n)&&(t=S(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(ye,we).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=K[e+" "];return t||(t=new RegExp("(^|"+ne+")"+e+"("+ne+"|$)"))&&K(e,function(e){return t.test("string"==typeof e.className&&e.className||"undefined"!=typeof e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(e,n,r){return function(i){var a=t.attr(i,e);return null==a?"!="===n:n?(a+="","="===n?a===r:"!="===n?a!==r:"^="===n?r&&0===a.indexOf(r):"*="===n?r&&a.indexOf(r)>-1:"$="===n?r&&a.slice(-r.length)===r:"~="===n?(" "+a.replace(se," ")+" ").indexOf(r)>-1:"|="===n?a===r||a.slice(0,r.length+1)===r+"-":!1):!0}},CHILD:function(e,t,n,r,i){var a="nth"!==e.slice(0,3),s="last"!==e.slice(-4),o="of-type"===t;return 1===r&&0===i?function(e){return!!e.parentNode}:function(t,n,l){var c,u,p,d,h,f,m=a!==s?"nextSibling":"previousSibling",g=t.parentNode,b=o&&t.nodeName.toLowerCase(),v=!l&&!o,y=!1;if(g){if(a){for(;m;){for(d=t;d=d[m];)if(o?d.nodeName.toLowerCase()===b:1===d.nodeType)return!1;f=m="only"===e&&!f&&"nextSibling"}return!0}if(f=[s?g.firstChild:g.lastChild],s&&v){for(d=g,p=d[F]||(d[F]={}),u=p[d.uniqueID]||(p[d.uniqueID]={}),c=u[e]||[],h=c[0]===H&&c[1],y=h&&c[2],d=h&&g.childNodes[h];d=++h&&d&&d[m]||(y=h=0)||f.pop();)if(1===d.nodeType&&++y&&d===t){u[e]=[H,h,y];break}}else if(v&&(d=t,p=d[F]||(d[F]={}),u=p[d.uniqueID]||(p[d.uniqueID]={}),c=u[e]||[],h=c[0]===H&&c[1],y=h),y===!1)for(;(d=++h&&d&&d[m]||(y=h=0)||f.pop())&&((o?d.nodeName.toLowerCase()!==b:1!==d.nodeType)||!++y||(v&&(p=d[F]||(d[F]={}),u=p[d.uniqueID]||(p[d.uniqueID]={}),u[e]=[H,y]),d!==t)););return y-=i,y===r||y%r===0&&y/r>=0}}},PSEUDO:function(e,n){var i,a=k.pseudos[e]||k.setFilters[e.toLowerCase()]||t.error("unsupported pseudo: "+e);return a[F]?a(n):a.length>1?(i=[e,e,"",n],k.setFilters.hasOwnProperty(e.toLowerCase())?r(function(e,t){for(var r,i=a(e,n),s=i.length;s--;)r=ee(e,i[s]),e[r]=!(t[r]=i[s])}):function(e){return a(e,0,i)}):a}},pseudos:{not:r(function(e){var t=[],n=[],i=C(e.replace(oe,"$1"));return i[F]?r(function(e,t,n,r){for(var a,s=i(e,null,r,[]),o=e.length;o--;)(a=s[o])&&(e[o]=!(t[o]=a))}):function(e,r,a){return t[0]=e,i(t,null,a,n),t[0]=null,!n.pop()}}),has:r(function(e){return function(n){return t(e,n).length>0}}),contains:r(function(e){return e=e.replace(ye,we),function(t){return(t.textContent||t.innerText||E(t)).indexOf(e)>-1}}),lang:r(function(e){return de.test(e||"")||t.error("unsupported lang: "+e),e=e.replace(ye,we).toLowerCase(),function(t){var n;do if(n=O?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return n=n.toLowerCase(),n===e||0===n.indexOf(e+"-");while((t=t.parentNode)&&1===t.nodeType);return!1}}),target:function(t){var n=e.location&&e.location.hash;return n&&n.slice(1)===t.id},root:function(e){return e===I},focus:function(e){return e===P.activeElement&&(!P.hasFocus||P.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:c(!1),disabled:c(!0),checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,e.selected===!0},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!k.pseudos.empty(e)},header:function(e){return me.test(e.nodeName)},input:function(e){return fe.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:u(function(){return[0]}),last:u(function(e,t){return[t-1]}),eq:u(function(e,t,n){return[0>n?n+t:n]}),even:u(function(e,t){for(var n=0;t>n;n+=2)e.push(n);return e}),odd:u(function(e,t){for(var n=1;t>n;n+=2)e.push(n);return e}),lt:u(function(e,t,n){for(var r=0>n?n+t:n;--r>=0;)e.push(r);return e}),gt:u(function(e,t,n){for(var r=0>n?n+t:n;++r<t;)e.push(r);return e})}},k.pseudos.nth=k.pseudos.eq;for(x in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})k.pseudos[x]=o(x);for(x in{submit:!0,reset:!0})k.pseudos[x]=l(x);return d.prototype=k.filters=k.pseudos,k.setFilters=new d,S=t.tokenize=function(e,n){var r,i,a,s,o,l,c,u=W[e+" "];if(u)return n?0:u.slice(0);for(o=e,l=[],c=k.preFilter;o;){(!r||(i=le.exec(o)))&&(i&&(o=o.slice(i[0].length)||o),l.push(a=[])),r=!1,(i=ce.exec(o))&&(r=i.shift(),a.push({value:r,type:i[0].replace(oe," ")}),o=o.slice(r.length));for(s in k.filter)!(i=he[s].exec(o))||c[s]&&!(i=c[s](i))||(r=i.shift(),a.push({value:r,type:s,matches:i}),o=o.slice(r.length));if(!r)break}return n?o.length:o?t.error(e):W(e,l).slice(0)},C=t.compile=function(e,t){var n,r=[],i=[],a=z[e+" "];if(!a){for(t||(t=S(e)),n=t.length;n--;)a=y(t[n]),a[F]?r.push(a):i.push(a);a=z(e,w(i,r)),a.selector=e}return a},A=t.select=function(e,t,n,r){var i,a,s,o,l,c="function"==typeof e&&e,u=!r&&S(e=c.selector||e);if(n=n||[],1===u.length){if(a=u[0]=u[0].slice(0),a.length>2&&"ID"===(s=a[0]).type&&_.getById&&9===t.nodeType&&O&&k.relative[a[1].type]){if(t=(k.find.ID(s.matches[0].replace(ye,we),t)||[])[0],!t)return n;c&&(t=t.parentNode),e=e.slice(a.shift().value.length)}for(i=he.needsContext.test(e)?0:a.length;i--&&(s=a[i],!k.relative[o=s.type]);)if((l=k.find[o])&&(r=l(s.matches[0].replace(ye,we),ve.test(a[0].type)&&p(t.parentNode)||t))){if(a.splice(i,1),e=r.length&&h(a),!e)return Z.apply(n,r),n;break}}return(c||C(e,u))(r,t,!O,n,!t||ve.test(e)&&p(t.parentNode)||t),n},_.sortStable=F.split("").sort(V).join("")===F,_.detectDuplicates=!!D,L(),_.sortDetached=i(function(e){return 1&e.compareDocumentPosition(P.createElement("fieldset"))}),i(function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")})||a("type|href|height|width",function(e,t,n){return n?void 0:e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),_.attributes&&i(function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||a("value",function(e,t,n){return n||"input"!==e.nodeName.toLowerCase()?void 0:e.defaultValue}),i(function(e){return null==e.getAttribute("disabled")})||a(te,function(e,t,n){var r;return n?void 0:e[t]===!0?t.toLowerCase():(r=e.getAttributeNode(t))&&r.specified?r.value:null}),t}(e);de.find=be,de.expr=be.selectors,de.expr[":"]=de.expr.pseudos,de.uniqueSort=de.unique=be.uniqueSort,de.text=be.getText,de.isXMLDoc=be.isXML,de.contains=be.contains,de.escapeSelector=be.escape;var ve=function(e,t,n){for(var r=[],i=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(i&&de(e).is(n))break;r.push(e)}return r},ye=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},we=de.expr.match.needsContext,xe=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i,_e=/^.[^:#\[\.,]*$/;de.filter=function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?de.find.matchesSelector(r,e)?[r]:[]:de.find.matches(e,de.grep(t,function(e){return 1===e.nodeType}))},de.fn.extend({find:function(e){var t,n,r=this.length,i=this;if("string"!=typeof e)return this.pushStack(de(e).filter(function(){for(t=0;r>t;t++)if(de.contains(i[t],this))return!0}));for(n=this.pushStack([]),t=0;r>t;t++)de.find(e,i[t],n);return r>1?de.uniqueSort(n):n},filter:function(e){return this.pushStack(i(this,e||[],!1))},not:function(e){return this.pushStack(i(this,e||[],!0))},is:function(e){return!!i(this,"string"==typeof e&&we.test(e)?de(e):e||[],!1).length}});var ke,Ee=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/,Te=de.fn.init=function(e,t,n){var r,i;if(!e)return this;if(n=n||ke,"string"==typeof e){if(r="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:Ee.exec(e),!r||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof de?t[0]:t,de.merge(this,de.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:J,!0)),xe.test(r[1])&&de.isPlainObject(t))for(r in t)de.isFunction(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return i=J.getElementById(r[2]),i&&(this[0]=i,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):de.isFunction(e)?void 0!==n.ready?n.ready(e):e(de):de.makeArray(e,this)};Te.prototype=de.fn,ke=de(J);var Se=/^(?:parents|prev(?:Until|All))/,Ce={children:!0,contents:!0,next:!0,prev:!0};de.fn.extend({has:function(e){var t=de(e,this),n=t.length;return this.filter(function(){for(var e=0;n>e;e++)if(de.contains(this,t[e]))return!0})},closest:function(e,t){var n,r=0,i=this.length,a=[],s="string"!=typeof e&&de(e);if(!we.test(e))for(;i>r;r++)for(n=this[r];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(s?s.index(n)>-1:1===n.nodeType&&de.find.matchesSelector(n,e))){a.push(n);break}return this.pushStack(a.length>1?de.uniqueSort(a):a)},index:function(e){return e?"string"==typeof e?ie.call(de(e),this[0]):ie.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(de.uniqueSort(de.merge(this.get(),de(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),de.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return ve(e,"parentNode")},parentsUntil:function(e,t,n){return ve(e,"parentNode",n)},next:function(e){return a(e,"nextSibling")},prev:function(e){return a(e,"previousSibling")},nextAll:function(e){return ve(e,"nextSibling")},prevAll:function(e){return ve(e,"previousSibling")},nextUntil:function(e,t,n){return ve(e,"nextSibling",n)},prevUntil:function(e,t,n){return ve(e,"previousSibling",n)},siblings:function(e){return ye((e.parentNode||{}).firstChild,e)},children:function(e){return ye(e.firstChild)},contents:function(e){return e.contentDocument||de.merge([],e.childNodes)}},function(e,t){de.fn[e]=function(n,r){var i=de.map(this,t,n);return"Until"!==e.slice(-5)&&(r=n),r&&"string"==typeof r&&(i=de.filter(r,i)),this.length>1&&(Ce[e]||de.uniqueSort(i),Se.test(e)&&i.reverse()),this.pushStack(i)}});var Ae=/\S+/g;de.Callbacks=function(e){e="string"==typeof e?s(e):de.extend({},e);var t,n,r,i,a=[],o=[],l=-1,c=function(){for(i=e.once,r=t=!0;o.length;l=-1)for(n=o.shift();++l<a.length;)a[l].apply(n[0],n[1])===!1&&e.stopOnFalse&&(l=a.length,n=!1);e.memory||(n=!1),t=!1,i&&(a=n?[]:"")},u={add:function(){return a&&(n&&!t&&(l=a.length-1,o.push(n)),function r(t){de.each(t,function(t,n){de.isFunction(n)?e.unique&&u.has(n)||a.push(n):n&&n.length&&"string"!==de.type(n)&&r(n)})}(arguments),n&&!t&&c()),this},remove:function(){return de.each(arguments,function(e,t){for(var n;(n=de.inArray(t,a,n))>-1;)a.splice(n,1),l>=n&&l--}),this},has:function(e){return e?de.inArray(e,a)>-1:a.length>0},empty:function(){return a&&(a=[]),this},disable:function(){return i=o=[],a=n="",this},disabled:function(){return!a},lock:function(){return i=o=[],n||t||(a=n=""),this},locked:function(){return!!i},fireWith:function(e,n){return i||(n=n||[],n=[e,n.slice?n.slice():n],o.push(n),t||c()),this},fire:function(){return u.fireWith(this,arguments),this},fired:function(){return!!r}};
return u},de.extend({Deferred:function(t){var n=[["notify","progress",de.Callbacks("memory"),de.Callbacks("memory"),2],["resolve","done",de.Callbacks("once memory"),de.Callbacks("once memory"),0,"resolved"],["reject","fail",de.Callbacks("once memory"),de.Callbacks("once memory"),1,"rejected"]],r="pending",i={state:function(){return r},always:function(){return a.done(arguments).fail(arguments),this},"catch":function(e){return i.then(null,e)},pipe:function(){var e=arguments;return de.Deferred(function(t){de.each(n,function(n,r){var i=de.isFunction(e[r[4]])&&e[r[4]];a[r[1]](function(){var e=i&&i.apply(this,arguments);e&&de.isFunction(e.promise)?e.promise().progress(t.notify).done(t.resolve).fail(t.reject):t[r[0]+"With"](this,i?[e]:arguments)})}),e=null}).promise()},then:function(t,r,i){function a(t,n,r,i){return function(){var c=this,u=arguments,p=function(){var e,p;if(!(s>t)){if(e=r.apply(c,u),e===n.promise())throw new TypeError("Thenable self-resolution");p=e&&("object"==typeof e||"function"==typeof e)&&e.then,de.isFunction(p)?i?p.call(e,a(s,n,o,i),a(s,n,l,i)):(s++,p.call(e,a(s,n,o,i),a(s,n,l,i),a(s,n,o,n.notifyWith))):(r!==o&&(c=void 0,u=[e]),(i||n.resolveWith)(c,u))}},d=i?p:function(){try{p()}catch(e){de.Deferred.exceptionHook&&de.Deferred.exceptionHook(e,d.stackTrace),t+1>=s&&(r!==l&&(c=void 0,u=[e]),n.rejectWith(c,u))}};t?d():(de.Deferred.getStackHook&&(d.stackTrace=de.Deferred.getStackHook()),e.setTimeout(d))}}var s=0;return de.Deferred(function(e){n[0][3].add(a(0,e,de.isFunction(i)?i:o,e.notifyWith)),n[1][3].add(a(0,e,de.isFunction(t)?t:o)),n[2][3].add(a(0,e,de.isFunction(r)?r:l))}).promise()},promise:function(e){return null!=e?de.extend(e,i):i}},a={};return de.each(n,function(e,t){var s=t[2],o=t[5];i[t[1]]=s.add,o&&s.add(function(){r=o},n[3-e][2].disable,n[0][2].lock),s.add(t[3].fire),a[t[0]]=function(){return a[t[0]+"With"](this===a?void 0:this,arguments),this},a[t[0]+"With"]=s.fireWith}),i.promise(a),t&&t.call(a,a),a},when:function(e){var t=arguments.length,n=t,r=Array(n),i=te.call(arguments),a=de.Deferred(),s=function(e){return function(n){r[e]=this,i[e]=arguments.length>1?te.call(arguments):n,--t||a.resolveWith(r,i)}};if(1>=t&&(c(e,a.done(s(n)).resolve,a.reject),"pending"===a.state()||de.isFunction(i[n]&&i[n].then)))return a.then();for(;n--;)c(i[n],s(n),a.reject);return a.promise()}});var Re=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;de.Deferred.exceptionHook=function(t,n){e.console&&e.console.warn&&t&&Re.test(t.name)&&e.console.warn("jQuery.Deferred exception: "+t.message,t.stack,n)},de.readyException=function(t){e.setTimeout(function(){throw t})};var Ne=de.Deferred();de.fn.ready=function(e){return Ne.then(e)["catch"](function(e){de.readyException(e)}),this},de.extend({isReady:!1,readyWait:1,holdReady:function(e){e?de.readyWait++:de.ready(!0)},ready:function(e){(e===!0?--de.readyWait:de.isReady)||(de.isReady=!0,e!==!0&&--de.readyWait>0||Ne.resolveWith(J,[de]))}}),de.ready.then=Ne.then,"complete"===J.readyState||"loading"!==J.readyState&&!J.documentElement.doScroll?e.setTimeout(de.ready):(J.addEventListener("DOMContentLoaded",u),e.addEventListener("load",u));var De=function(e,t,n,r,i,a,s){var o=0,l=e.length,c=null==n;if("object"===de.type(n)){i=!0;for(o in n)De(e,t,o,n[o],!0,a,s)}else if(void 0!==r&&(i=!0,de.isFunction(r)||(s=!0),c&&(s?(t.call(e,r),t=null):(c=t,t=function(e,t,n){return c.call(de(e),n)})),t))for(;l>o;o++)t(e[o],n,s?r:r.call(e[o],o,t(e[o],n)));return i?e:c?t.call(e):l?t(e[0],n):a},Le=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};p.uid=1,p.prototype={cache:function(e){var t=e[this.expando];return t||(t={},Le(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var r,i=this.cache(e);if("string"==typeof t)i[de.camelCase(t)]=n;else for(r in t)i[de.camelCase(r)]=t[r];return i},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][de.camelCase(t)]},access:function(e,t,n){return void 0===t||t&&"string"==typeof t&&void 0===n?this.get(e,t):(this.set(e,t,n),void 0!==n?n:t)},remove:function(e,t){var n,r=e[this.expando];if(void 0!==r){if(void 0!==t){de.isArray(t)?t=t.map(de.camelCase):(t=de.camelCase(t),t=t in r?[t]:t.match(Ae)||[]),n=t.length;for(;n--;)delete r[t[n]]}(void 0===t||de.isEmptyObject(r))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!de.isEmptyObject(t)}};var Pe=new p,Ie=new p,Oe=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,je=/[A-Z]/g;de.extend({hasData:function(e){return Ie.hasData(e)||Pe.hasData(e)},data:function(e,t,n){return Ie.access(e,t,n)},removeData:function(e,t){Ie.remove(e,t)},_data:function(e,t,n){return Pe.access(e,t,n)},_removeData:function(e,t){Pe.remove(e,t)}}),de.fn.extend({data:function(e,t){var n,r,i,a=this[0],s=a&&a.attributes;if(void 0===e){if(this.length&&(i=Ie.get(a),1===a.nodeType&&!Pe.get(a,"hasDataAttrs"))){for(n=s.length;n--;)s[n]&&(r=s[n].name,0===r.indexOf("data-")&&(r=de.camelCase(r.slice(5)),d(a,r,i[r])));Pe.set(a,"hasDataAttrs",!0)}return i}return"object"==typeof e?this.each(function(){Ie.set(this,e)}):De(this,function(t){var n;if(a&&void 0===t){if(n=Ie.get(a,e),void 0!==n)return n;if(n=d(a,e),void 0!==n)return n}else this.each(function(){Ie.set(this,e,t)})},null,t,arguments.length>1,null,!0)},removeData:function(e){return this.each(function(){Ie.remove(this,e)})}}),de.extend({queue:function(e,t,n){var r;return e?(t=(t||"fx")+"queue",r=Pe.get(e,t),n&&(!r||de.isArray(n)?r=Pe.access(e,t,de.makeArray(n)):r.push(n)),r||[]):void 0},dequeue:function(e,t){t=t||"fx";var n=de.queue(e,t),r=n.length,i=n.shift(),a=de._queueHooks(e,t),s=function(){de.dequeue(e,t)};"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===t&&n.unshift("inprogress"),delete a.stop,i.call(e,s,a)),!r&&a&&a.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return Pe.get(e,n)||Pe.access(e,n,{empty:de.Callbacks("once memory").add(function(){Pe.remove(e,[t+"queue",n])})})}}),de.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n--),arguments.length<n?de.queue(this[0],e):void 0===t?this:this.each(function(){var n=de.queue(this,e,t);de._queueHooks(this,e),"fx"===e&&"inprogress"!==n[0]&&de.dequeue(this,e)})},dequeue:function(e){return this.each(function(){de.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,r=1,i=de.Deferred(),a=this,s=this.length,o=function(){--r||i.resolveWith(a,[a])};for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";s--;)n=Pe.get(a[s],e+"queueHooks"),n&&n.empty&&(r++,n.empty.add(o));return o(),i.promise(t)}});var Me=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,$e=new RegExp("^(?:([+-])=|)("+Me+")([a-z%]*)$","i"),Be=["Top","Right","Bottom","Left"],Fe=function(e,t){return e=t||e,"none"===e.style.display||""===e.style.display&&de.contains(e.ownerDocument,e)&&"none"===de.css(e,"display")},qe=function(e,t,n,r){var i,a,s={};for(a in t)s[a]=e.style[a],e.style[a]=t[a];i=n.apply(e,r||[]);for(a in t)e.style[a]=s[a];return i},He={};de.fn.extend({show:function(){return m(this,!0)},hide:function(){return m(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){Fe(this)?de(this).show():de(this).hide()})}});var Ue=/^(?:checkbox|radio)$/i,Ke=/<([a-z][^\/\0>\x20\t\r\n\f]+)/i,We=/^$|\/(?:java|ecma)script/i,ze={option:[1,"<select multiple='multiple'>","</select>"],thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};ze.optgroup=ze.option,ze.tbody=ze.tfoot=ze.colgroup=ze.caption=ze.thead,ze.th=ze.td;var Ve=/<|&#?\w+;/;!function(){var e=J.createDocumentFragment(),t=e.appendChild(J.createElement("div")),n=J.createElement("input");n.setAttribute("type","radio"),n.setAttribute("checked","checked"),n.setAttribute("name","t"),t.appendChild(n),ue.checkClone=t.cloneNode(!0).cloneNode(!0).lastChild.checked,t.innerHTML="<textarea>x</textarea>",ue.noCloneChecked=!!t.cloneNode(!0).lastChild.defaultValue}();var Ge=J.documentElement,Xe=/^key/,Ye=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Qe=/^([^.]*)(?:\.(.+)|)/;de.event={global:{},add:function(e,t,n,r,i){var a,s,o,l,c,u,p,d,h,f,m,g=Pe.get(e);if(g)for(n.handler&&(a=n,n=a.handler,i=a.selector),i&&de.find.matchesSelector(Ge,i),n.guid||(n.guid=de.guid++),(l=g.events)||(l=g.events={}),(s=g.handle)||(s=g.handle=function(t){return"undefined"!=typeof de&&de.event.triggered!==t.type?de.event.dispatch.apply(e,arguments):void 0}),t=(t||"").match(Ae)||[""],c=t.length;c--;)o=Qe.exec(t[c])||[],h=m=o[1],f=(o[2]||"").split(".").sort(),h&&(p=de.event.special[h]||{},h=(i?p.delegateType:p.bindType)||h,p=de.event.special[h]||{},u=de.extend({type:h,origType:m,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&de.expr.match.needsContext.test(i),namespace:f.join(".")},a),(d=l[h])||(d=l[h]=[],d.delegateCount=0,p.setup&&p.setup.call(e,r,f,s)!==!1||e.addEventListener&&e.addEventListener(h,s)),p.add&&(p.add.call(e,u),u.handler.guid||(u.handler.guid=n.guid)),i?d.splice(d.delegateCount++,0,u):d.push(u),de.event.global[h]=!0)},remove:function(e,t,n,r,i){var a,s,o,l,c,u,p,d,h,f,m,g=Pe.hasData(e)&&Pe.get(e);if(g&&(l=g.events)){for(t=(t||"").match(Ae)||[""],c=t.length;c--;)if(o=Qe.exec(t[c])||[],h=m=o[1],f=(o[2]||"").split(".").sort(),h){for(p=de.event.special[h]||{},h=(r?p.delegateType:p.bindType)||h,d=l[h]||[],o=o[2]&&new RegExp("(^|\\.)"+f.join("\\.(?:.*\\.|)")+"(\\.|$)"),s=a=d.length;a--;)u=d[a],!i&&m!==u.origType||n&&n.guid!==u.guid||o&&!o.test(u.namespace)||r&&r!==u.selector&&("**"!==r||!u.selector)||(d.splice(a,1),u.selector&&d.delegateCount--,p.remove&&p.remove.call(e,u));s&&!d.length&&(p.teardown&&p.teardown.call(e,f,g.handle)!==!1||de.removeEvent(e,h,g.handle),delete l[h])}else for(h in l)de.event.remove(e,h+t[c],n,r,!0);de.isEmptyObject(l)&&Pe.remove(e,"handle events")}},dispatch:function(e){var t,n,r,i,a,s,o=de.event.fix(e),l=new Array(arguments.length),c=(Pe.get(this,"events")||{})[o.type]||[],u=de.event.special[o.type]||{};for(l[0]=o,t=1;t<arguments.length;t++)l[t]=arguments[t];if(o.delegateTarget=this,!u.preDispatch||u.preDispatch.call(this,o)!==!1){for(s=de.event.handlers.call(this,o,c),t=0;(i=s[t++])&&!o.isPropagationStopped();)for(o.currentTarget=i.elem,n=0;(a=i.handlers[n++])&&!o.isImmediatePropagationStopped();)(!o.rnamespace||o.rnamespace.test(a.namespace))&&(o.handleObj=a,o.data=a.data,r=((de.event.special[a.origType]||{}).handle||a.handler).apply(i.elem,l),void 0!==r&&(o.result=r)===!1&&(o.preventDefault(),o.stopPropagation()));return u.postDispatch&&u.postDispatch.call(this,o),o.result}},handlers:function(e,t){var n,r,i,a,s=[],o=t.delegateCount,l=e.target;if(o&&l.nodeType&&("click"!==e.type||isNaN(e.button)||e.button<1))for(;l!==this;l=l.parentNode||this)if(1===l.nodeType&&(l.disabled!==!0||"click"!==e.type)){for(r=[],n=0;o>n;n++)a=t[n],i=a.selector+" ",void 0===r[i]&&(r[i]=a.needsContext?de(i,this).index(l)>-1:de.find(i,this,null,[l]).length),r[i]&&r.push(a);r.length&&s.push({elem:l,handlers:r})}return o<t.length&&s.push({elem:this,handlers:t.slice(o)}),s},addProp:function(e,t){Object.defineProperty(de.Event.prototype,e,{enumerable:!0,configurable:!0,get:de.isFunction(t)?function(){return this.originalEvent?t(this.originalEvent):void 0}:function(){return this.originalEvent?this.originalEvent[e]:void 0},set:function(t){Object.defineProperty(this,e,{enumerable:!0,configurable:!0,writable:!0,value:t})}})},fix:function(e){return e[de.expando]?e:new de.Event(e)},special:{load:{noBubble:!0},focus:{trigger:function(){return this!==x()&&this.focus?(this.focus(),!1):void 0},delegateType:"focusin"},blur:{trigger:function(){return this===x()&&this.blur?(this.blur(),!1):void 0},delegateType:"focusout"},click:{trigger:function(){return"checkbox"===this.type&&this.click&&de.nodeName(this,"input")?(this.click(),!1):void 0},_default:function(e){return de.nodeName(e.target,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},de.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},de.Event=function(e,t){return this instanceof de.Event?(e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&e.returnValue===!1?y:w,this.target=e.target&&3===e.target.nodeType?e.target.parentNode:e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget):this.type=e,t&&de.extend(this,t),this.timeStamp=e&&e.timeStamp||de.now(),void(this[de.expando]=!0)):new de.Event(e,t)},de.Event.prototype={constructor:de.Event,isDefaultPrevented:w,isPropagationStopped:w,isImmediatePropagationStopped:w,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=y,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=y,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=y,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},de.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,"char":!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:function(e){var t=e.button;return null==e.which&&Xe.test(e.type)?null!=e.charCode?e.charCode:e.keyCode:!e.which&&void 0!==t&&Ye.test(e.type)?1&t?1:2&t?3:4&t?2:0:e.which}},de.event.addProp),de.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(e,t){de.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,r=this,i=e.relatedTarget,a=e.handleObj;return(!i||i!==r&&!de.contains(r,i))&&(e.type=a.origType,n=a.handler.apply(this,arguments),e.type=t),n}}}),de.fn.extend({on:function(e,t,n,r){return _(this,e,t,n,r)},one:function(e,t,n,r){return _(this,e,t,n,r,1)},off:function(e,t,n){var r,i;if(e&&e.preventDefault&&e.handleObj)return r=e.handleObj,de(e.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this;if("object"==typeof e){for(i in e)this.off(i,t,e[i]);return this}return(t===!1||"function"==typeof t)&&(n=t,t=void 0),n===!1&&(n=w),this.each(function(){de.event.remove(this,e,n,t)})}});var Ze=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi,Je=/<script|<style|<link/i,et=/checked\s*(?:[^=]|=\s*.checked.)/i,tt=/^true\/(.*)/,nt=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;de.extend({htmlPrefilter:function(e){return e.replace(Ze,"<$1></$2>")},clone:function(e,t,n){var r,i,a,s,o=e.cloneNode(!0),l=de.contains(e.ownerDocument,e);if(!(ue.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||de.isXMLDoc(e)))for(s=g(o),a=g(e),r=0,i=a.length;i>r;r++)C(a[r],s[r]);if(t)if(n)for(a=a||g(e),s=s||g(o),r=0,i=a.length;i>r;r++)S(a[r],s[r]);else S(e,o);return s=g(o,"script"),s.length>0&&b(s,!l&&g(e,"script")),o},cleanData:function(e){for(var t,n,r,i=de.event.special,a=0;void 0!==(n=e[a]);a++)if(Le(n)){if(t=n[Pe.expando]){if(t.events)for(r in t.events)i[r]?de.event.remove(n,r):de.removeEvent(n,r,t.handle);n[Pe.expando]=void 0}n[Ie.expando]&&(n[Ie.expando]=void 0)}}}),de.fn.extend({detach:function(e){return R(this,e,!0)},remove:function(e){return R(this,e)},text:function(e){return De(this,function(e){return void 0===e?de.text(this):this.empty().each(function(){(1===this.nodeType||11===this.nodeType||9===this.nodeType)&&(this.textContent=e)})},null,e,arguments.length)},append:function(){return A(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=k(this,e);t.appendChild(e)}})},prepend:function(){return A(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=k(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return A(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return A(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(de.cleanData(g(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null==e?!1:e,t=null==t?e:t,this.map(function(){return de.clone(this,e,t)})},html:function(e){return De(this,function(e){var t=this[0]||{},n=0,r=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!Je.test(e)&&!ze[(Ke.exec(e)||["",""])[1].toLowerCase()]){e=de.htmlPrefilter(e);try{for(;r>n;n++)t=this[n]||{},1===t.nodeType&&(de.cleanData(g(t,!1)),t.innerHTML=e);t=0}catch(i){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var e=[];return A(this,arguments,function(t){var n=this.parentNode;de.inArray(this,e)<0&&(de.cleanData(g(this)),n&&n.replaceChild(t,this))},e)}}),de.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,t){de.fn[e]=function(e){for(var n,r=[],i=de(e),a=i.length-1,s=0;a>=s;s++)n=s===a?this:this.clone(!0),de(i[s])[t](n),re.apply(r,n.get());return this.pushStack(r)}});var rt=/^margin/,it=new RegExp("^("+Me+")(?!px)[a-z%]+$","i"),at=function(t){var n=t.ownerDocument.defaultView;return n&&n.opener||(n=e),n.getComputedStyle(t)};!function(){function t(){if(o){o.style.cssText="box-sizing:border-box;position:relative;display:block;margin:auto;border:1px;padding:1px;top:1%;width:50%",o.innerHTML="",Ge.appendChild(s);var t=e.getComputedStyle(o);n="1%"!==t.top,a="2px"===t.marginLeft,r="4px"===t.width,o.style.marginRight="50%",i="4px"===t.marginRight,Ge.removeChild(s),o=null}}var n,r,i,a,s=J.createElement("div"),o=J.createElement("div");o.style&&(o.style.backgroundClip="content-box",o.cloneNode(!0).style.backgroundClip="",ue.clearCloneStyle="content-box"===o.style.backgroundClip,s.style.cssText="border:0;width:8px;height:0;top:0;left:-9999px;padding:0;margin-top:1px;position:absolute",s.appendChild(o),de.extend(ue,{pixelPosition:function(){return t(),n},boxSizingReliable:function(){return t(),r},pixelMarginRight:function(){return t(),i},reliableMarginLeft:function(){return t(),a}}))}();var st=/^(none|table(?!-c[ea]).+)/,ot={position:"absolute",visibility:"hidden",display:"block"},lt={letterSpacing:"0",fontWeight:"400"},ct=["Webkit","Moz","ms"],ut=J.createElement("div").style;de.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=N(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{"float":"cssFloat"},style:function(e,t,n,r){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var i,a,s,o=de.camelCase(t),l=e.style;return t=de.cssProps[o]||(de.cssProps[o]=L(o)||o),s=de.cssHooks[t]||de.cssHooks[o],void 0===n?s&&"get"in s&&void 0!==(i=s.get(e,!1,r))?i:l[t]:(a=typeof n,"string"===a&&(i=$e.exec(n))&&i[1]&&(n=h(e,t,i),a="number"),null!=n&&n===n&&("number"===a&&(n+=i&&i[3]||(de.cssNumber[o]?"":"px")),ue.clearCloneStyle||""!==n||0!==t.indexOf("background")||(l[t]="inherit"),s&&"set"in s&&void 0===(n=s.set(e,n,r))||(l[t]=n)),void 0)}},css:function(e,t,n,r){var i,a,s,o=de.camelCase(t);return t=de.cssProps[o]||(de.cssProps[o]=L(o)||o),s=de.cssHooks[t]||de.cssHooks[o],s&&"get"in s&&(i=s.get(e,!0,n)),void 0===i&&(i=N(e,t,r)),"normal"===i&&t in lt&&(i=lt[t]),""===n||n?(a=parseFloat(i),n===!0||isFinite(a)?a||0:i):i}}),de.each(["height","width"],function(e,t){de.cssHooks[t]={get:function(e,n,r){return n?!st.test(de.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?O(e,t,r):qe(e,ot,function(){return O(e,t,r)}):void 0},set:function(e,n,r){var i,a=r&&at(e),s=r&&I(e,t,r,"border-box"===de.css(e,"boxSizing",!1,a),a);return s&&(i=$e.exec(n))&&"px"!==(i[3]||"px")&&(e.style[t]=n,n=de.css(e,t)),P(e,n,s)}}}),de.cssHooks.marginLeft=D(ue.reliableMarginLeft,function(e,t){return t?(parseFloat(N(e,"marginLeft"))||e.getBoundingClientRect().left-qe(e,{marginLeft:0},function(){return e.getBoundingClientRect().left}))+"px":void 0}),de.each({margin:"",padding:"",border:"Width"},function(e,t){de.cssHooks[e+t]={expand:function(n){for(var r=0,i={},a="string"==typeof n?n.split(" "):[n];4>r;r++)i[e+Be[r]+t]=a[r]||a[r-2]||a[0];return i}},rt.test(e)||(de.cssHooks[e+t].set=P)}),de.fn.extend({css:function(e,t){return De(this,function(e,t,n){var r,i,a={},s=0;if(de.isArray(t)){for(r=at(e),i=t.length;i>s;s++)a[t[s]]=de.css(e,t[s],!1,r);return a}return void 0!==n?de.style(e,t,n):de.css(e,t)},e,t,arguments.length>1)}}),de.Tween=j,j.prototype={constructor:j,init:function(e,t,n,r,i,a){this.elem=e,this.prop=n,this.easing=i||de.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=a||(de.cssNumber[n]?"":"px")},cur:function(){var e=j.propHooks[this.prop];return e&&e.get?e.get(this):j.propHooks._default.get(this)},run:function(e){var t,n=j.propHooks[this.prop];return this.options.duration?this.pos=t=de.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):j.propHooks._default.set(this),this}},j.prototype.init.prototype=j.prototype,j.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=de.css(e.elem,e.prop,""),t&&"auto"!==t?t:0)},set:function(e){de.fx.step[e.prop]?de.fx.step[e.prop](e):1!==e.elem.nodeType||null==e.elem.style[de.cssProps[e.prop]]&&!de.cssHooks[e.prop]?e.elem[e.prop]=e.now:de.style(e.elem,e.prop,e.now+e.unit)}}},j.propHooks.scrollTop=j.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},de.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},de.fx=j.prototype.init,de.fx.step={};var pt,dt,ht=/^(?:toggle|show|hide)$/,ft=/queueHooks$/;de.Animation=de.extend(U,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return h(n.elem,e,$e.exec(t),n),n}]},tweener:function(e,t){de.isFunction(e)?(t=e,e=["*"]):e=e.match(Ae);for(var n,r=0,i=e.length;i>r;r++)n=e[r],U.tweeners[n]=U.tweeners[n]||[],U.tweeners[n].unshift(t)},prefilters:[q],prefilter:function(e,t){t?U.prefilters.unshift(e):U.prefilters.push(e)}}),de.speed=function(e,t,n){var r=e&&"object"==typeof e?de.extend({},e):{complete:n||!n&&t||de.isFunction(e)&&e,duration:e,easing:n&&t||t&&!de.isFunction(t)&&t};return de.fx.off||J.hidden?r.duration=0:r.duration="number"==typeof r.duration?r.duration:r.duration in de.fx.speeds?de.fx.speeds[r.duration]:de.fx.speeds._default,(null==r.queue||r.queue===!0)&&(r.queue="fx"),r.old=r.complete,r.complete=function(){de.isFunction(r.old)&&r.old.call(this),r.queue&&de.dequeue(this,r.queue)},r},de.fn.extend({fadeTo:function(e,t,n,r){return this.filter(Fe).css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(e,t,n,r){var i=de.isEmptyObject(e),a=de.speed(t,n,r),s=function(){var t=U(this,de.extend({},e),a);(i||Pe.get(this,"finish"))&&t.stop(!0)};return s.finish=s,i||a.queue===!1?this.each(s):this.queue(a.queue,s)},stop:function(e,t,n){var r=function(e){var t=e.stop;delete e.stop,t(n)};return"string"!=typeof e&&(n=t,t=e,e=void 0),t&&e!==!1&&this.queue(e||"fx",[]),this.each(function(){var t=!0,i=null!=e&&e+"queueHooks",a=de.timers,s=Pe.get(this);if(i)s[i]&&s[i].stop&&r(s[i]);else for(i in s)s[i]&&s[i].stop&&ft.test(i)&&r(s[i]);for(i=a.length;i--;)a[i].elem!==this||null!=e&&a[i].queue!==e||(a[i].anim.stop(n),t=!1,a.splice(i,1));(t||!n)&&de.dequeue(this,e)})},finish:function(e){return e!==!1&&(e=e||"fx"),this.each(function(){var t,n=Pe.get(this),r=n[e+"queue"],i=n[e+"queueHooks"],a=de.timers,s=r?r.length:0;for(n.finish=!0,de.queue(this,e,[]),i&&i.stop&&i.stop.call(this,!0),t=a.length;t--;)a[t].elem===this&&a[t].queue===e&&(a[t].anim.stop(!0),a.splice(t,1));for(t=0;s>t;t++)r[t]&&r[t].finish&&r[t].finish.call(this);delete n.finish})}}),de.each(["toggle","show","hide"],function(e,t){var n=de.fn[t];de.fn[t]=function(e,r,i){return null==e||"boolean"==typeof e?n.apply(this,arguments):this.animate(B(t,!0),e,r,i)}}),de.each({slideDown:B("show"),slideUp:B("hide"),slideToggle:B("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,t){de.fn[e]=function(e,n,r){return this.animate(t,e,n,r)}}),de.timers=[],de.fx.tick=function(){var e,t=0,n=de.timers;for(pt=de.now();t<n.length;t++)e=n[t],e()||n[t]!==e||n.splice(t--,1);n.length||de.fx.stop(),pt=void 0},de.fx.timer=function(e){de.timers.push(e),e()?de.fx.start():de.timers.pop()},de.fx.interval=13,de.fx.start=function(){dt||(dt=e.requestAnimationFrame?e.requestAnimationFrame(M):e.setInterval(de.fx.tick,de.fx.interval))},de.fx.stop=function(){e.cancelAnimationFrame?e.cancelAnimationFrame(dt):e.clearInterval(dt),dt=null},de.fx.speeds={slow:600,fast:200,_default:400},de.fn.delay=function(t,n){return t=de.fx?de.fx.speeds[t]||t:t,n=n||"fx",this.queue(n,function(n,r){var i=e.setTimeout(n,t);r.stop=function(){e.clearTimeout(i)}})},function(){var e=J.createElement("input"),t=J.createElement("select"),n=t.appendChild(J.createElement("option"));e.type="checkbox",ue.checkOn=""!==e.value,ue.optSelected=n.selected,e=J.createElement("input"),e.value="t",e.type="radio",ue.radioValue="t"===e.value}();var mt,gt=de.expr.attrHandle;de.fn.extend({attr:function(e,t){return De(this,de.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each(function(){de.removeAttr(this,e)})}}),de.extend({attr:function(e,t,n){var r,i,a=e.nodeType;if(3!==a&&8!==a&&2!==a)return"undefined"==typeof e.getAttribute?de.prop(e,t,n):(1===a&&de.isXMLDoc(e)||(i=de.attrHooks[t.toLowerCase()]||(de.expr.match.bool.test(t)?mt:void 0)),void 0!==n?null===n?void de.removeAttr(e,t):i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:(e.setAttribute(t,n+""),n):i&&"get"in i&&null!==(r=i.get(e,t))?r:(r=de.find.attr(e,t),null==r?void 0:r))},attrHooks:{type:{set:function(e,t){if(!ue.radioValue&&"radio"===t&&de.nodeName(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,r=0,i=t&&t.match(Ae);if(i&&1===e.nodeType)for(;n=i[r++];)e.removeAttribute(n)}}),mt={set:function(e,t,n){return t===!1?de.removeAttr(e,n):e.setAttribute(n,n),n}},de.each(de.expr.match.bool.source.match(/\w+/g),function(e,t){var n=gt[t]||de.find.attr;gt[t]=function(e,t,r){var i,a,s=t.toLowerCase();return r||(a=gt[s],gt[s]=i,i=null!=n(e,t,r)?s:null,gt[s]=a),i}});var bt=/^(?:input|select|textarea|button)$/i,vt=/^(?:a|area)$/i;de.fn.extend({prop:function(e,t){return De(this,de.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each(function(){delete this[de.propFix[e]||e]})}}),de.extend({prop:function(e,t,n){var r,i,a=e.nodeType;if(3!==a&&8!==a&&2!==a)return 1===a&&de.isXMLDoc(e)||(t=de.propFix[t]||t,i=de.propHooks[t]),void 0!==n?i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:e[t]=n:i&&"get"in i&&null!==(r=i.get(e,t))?r:e[t]},propHooks:{tabIndex:{get:function(e){var t=de.find.attr(e,"tabindex");return t?parseInt(t,10):bt.test(e.nodeName)||vt.test(e.nodeName)&&e.href?0:-1}}},propFix:{"for":"htmlFor","class":"className"}}),ue.optSelected||(de.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),de.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){de.propFix[this.toLowerCase()]=this});var yt=/[\t\r\n\f]/g;de.fn.extend({addClass:function(e){var t,n,r,i,a,s,o,l=0;if(de.isFunction(e))return this.each(function(t){de(this).addClass(e.call(this,t,K(this)))});if("string"==typeof e&&e)for(t=e.match(Ae)||[];n=this[l++];)if(i=K(n),r=1===n.nodeType&&(" "+i+" ").replace(yt," ")){for(s=0;a=t[s++];)r.indexOf(" "+a+" ")<0&&(r+=a+" ");o=de.trim(r),i!==o&&n.setAttribute("class",o)}return this},removeClass:function(e){var t,n,r,i,a,s,o,l=0;if(de.isFunction(e))return this.each(function(t){de(this).removeClass(e.call(this,t,K(this)))});if(!arguments.length)return this.attr("class","");if("string"==typeof e&&e)for(t=e.match(Ae)||[];n=this[l++];)if(i=K(n),r=1===n.nodeType&&(" "+i+" ").replace(yt," ")){for(s=0;a=t[s++];)for(;r.indexOf(" "+a+" ")>-1;)r=r.replace(" "+a+" "," ");o=de.trim(r),i!==o&&n.setAttribute("class",o)}return this},toggleClass:function(e,t){var n=typeof e;return"boolean"==typeof t&&"string"===n?t?this.addClass(e):this.removeClass(e):de.isFunction(e)?this.each(function(n){de(this).toggleClass(e.call(this,n,K(this),t),t)}):this.each(function(){var t,r,i,a;if("string"===n)for(r=0,i=de(this),a=e.match(Ae)||[];t=a[r++];)i.hasClass(t)?i.removeClass(t):i.addClass(t);else(void 0===e||"boolean"===n)&&(t=K(this),t&&Pe.set(this,"__className__",t),this.setAttribute&&this.setAttribute("class",t||e===!1?"":Pe.get(this,"__className__")||""))})},hasClass:function(e){var t,n,r=0;for(t=" "+e+" ";n=this[r++];)if(1===n.nodeType&&(" "+K(n)+" ").replace(yt," ").indexOf(t)>-1)return!0;return!1}});var wt=/\r/g,xt=/[\x20\t\r\n\f]+/g;de.fn.extend({val:function(e){var t,n,r,i=this[0];{if(arguments.length)return r=de.isFunction(e),this.each(function(n){var i;1===this.nodeType&&(i=r?e.call(this,n,de(this).val()):e,null==i?i="":"number"==typeof i?i+="":de.isArray(i)&&(i=de.map(i,function(e){return null==e?"":e+""})),t=de.valHooks[this.type]||de.valHooks[this.nodeName.toLowerCase()],t&&"set"in t&&void 0!==t.set(this,i,"value")||(this.value=i))});if(i)return t=de.valHooks[i.type]||de.valHooks[i.nodeName.toLowerCase()],t&&"get"in t&&void 0!==(n=t.get(i,"value"))?n:(n=i.value,"string"==typeof n?n.replace(wt,""):null==n?"":n)}}}),de.extend({valHooks:{option:{get:function(e){var t=de.find.attr(e,"value");return null!=t?t:de.trim(de.text(e)).replace(xt," ")}},select:{get:function(e){for(var t,n,r=e.options,i=e.selectedIndex,a="select-one"===e.type,s=a?null:[],o=a?i+1:r.length,l=0>i?o:a?i:0;o>l;l++)if(n=r[l],(n.selected||l===i)&&!n.disabled&&(!n.parentNode.disabled||!de.nodeName(n.parentNode,"optgroup"))){if(t=de(n).val(),a)return t;s.push(t)}return s},set:function(e,t){for(var n,r,i=e.options,a=de.makeArray(t),s=i.length;s--;)r=i[s],(r.selected=de.inArray(de.valHooks.option.get(r),a)>-1)&&(n=!0);return n||(e.selectedIndex=-1),a}}}}),de.each(["radio","checkbox"],function(){de.valHooks[this]={set:function(e,t){return de.isArray(t)?e.checked=de.inArray(de(e).val(),t)>-1:void 0}},ue.checkOn||(de.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})});var _t=/^(?:focusinfocus|focusoutblur)$/;de.extend(de.event,{trigger:function(t,n,r,i){var a,s,o,l,c,u,p,d=[r||J],h=oe.call(t,"type")?t.type:t,f=oe.call(t,"namespace")?t.namespace.split("."):[];if(s=o=r=r||J,3!==r.nodeType&&8!==r.nodeType&&!_t.test(h+de.event.triggered)&&(h.indexOf(".")>-1&&(f=h.split("."),h=f.shift(),f.sort()),c=h.indexOf(":")<0&&"on"+h,t=t[de.expando]?t:new de.Event(h,"object"==typeof t&&t),t.isTrigger=i?2:3,t.namespace=f.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+f.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=r),n=null==n?[t]:de.makeArray(n,[t]),p=de.event.special[h]||{},i||!p.trigger||p.trigger.apply(r,n)!==!1)){if(!i&&!p.noBubble&&!de.isWindow(r)){for(l=p.delegateType||h,_t.test(l+h)||(s=s.parentNode);s;s=s.parentNode)d.push(s),o=s;o===(r.ownerDocument||J)&&d.push(o.defaultView||o.parentWindow||e)}for(a=0;(s=d[a++])&&!t.isPropagationStopped();)t.type=a>1?l:p.bindType||h,u=(Pe.get(s,"events")||{})[t.type]&&Pe.get(s,"handle"),u&&u.apply(s,n),u=c&&s[c],u&&u.apply&&Le(s)&&(t.result=u.apply(s,n),
t.result===!1&&t.preventDefault());return t.type=h,i||t.isDefaultPrevented()||p._default&&p._default.apply(d.pop(),n)!==!1||!Le(r)||c&&de.isFunction(r[h])&&!de.isWindow(r)&&(o=r[c],o&&(r[c]=null),de.event.triggered=h,r[h](),de.event.triggered=void 0,o&&(r[c]=o)),t.result}},simulate:function(e,t,n){var r=de.extend(new de.Event,n,{type:e,isSimulated:!0});de.event.trigger(r,null,t)}}),de.fn.extend({trigger:function(e,t){return this.each(function(){de.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];return n?de.event.trigger(e,t,n,!0):void 0}}),de.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,t){de.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}}),de.fn.extend({hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),ue.focusin="onfocusin"in e,ue.focusin||de.each({focus:"focusin",blur:"focusout"},function(e,t){var n=function(e){de.event.simulate(t,e.target,de.event.fix(e))};de.event.special[t]={setup:function(){var r=this.ownerDocument||this,i=Pe.access(r,t);i||r.addEventListener(e,n,!0),Pe.access(r,t,(i||0)+1)},teardown:function(){var r=this.ownerDocument||this,i=Pe.access(r,t)-1;i?Pe.access(r,t,i):(r.removeEventListener(e,n,!0),Pe.remove(r,t))}}});var kt=e.location,Et=de.now(),Tt=/\?/;de.parseXML=function(t){var n;if(!t||"string"!=typeof t)return null;try{n=(new e.DOMParser).parseFromString(t,"text/xml")}catch(r){n=void 0}return(!n||n.getElementsByTagName("parsererror").length)&&de.error("Invalid XML: "+t),n};var St=/\[\]$/,Ct=/\r?\n/g,At=/^(?:submit|button|image|reset|file)$/i,Rt=/^(?:input|select|textarea|keygen)/i;de.param=function(e,t){var n,r=[],i=function(e,t){var n=de.isFunction(t)?t():t;r[r.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==n?"":n)};if(de.isArray(e)||e.jquery&&!de.isPlainObject(e))de.each(e,function(){i(this.name,this.value)});else for(n in e)W(n,e[n],t,i);return r.join("&")},de.fn.extend({serialize:function(){return de.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=de.prop(this,"elements");return e?de.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!de(this).is(":disabled")&&Rt.test(this.nodeName)&&!At.test(e)&&(this.checked||!Ue.test(e))}).map(function(e,t){var n=de(this).val();return null==n?null:de.isArray(n)?de.map(n,function(e){return{name:t.name,value:e.replace(Ct,"\r\n")}}):{name:t.name,value:n.replace(Ct,"\r\n")}}).get()}});var Nt=/%20/g,Dt=/#.*$/,Lt=/([?&])_=[^&]*/,Pt=/^(.*?):[ \t]*([^\r\n]*)$/gm,It=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,Ot=/^(?:GET|HEAD)$/,jt=/^\/\//,Mt={},$t={},Bt="*/".concat("*"),Ft=J.createElement("a");Ft.href=kt.href,de.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:kt.href,type:"GET",isLocal:It.test(kt.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Bt,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":de.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?G(G(e,de.ajaxSettings),t):G(de.ajaxSettings,e)},ajaxPrefilter:z(Mt),ajaxTransport:z($t),ajax:function(t,n){function r(t,n,r,o){var c,d,h,w,x,_=n;u||(u=!0,l&&e.clearTimeout(l),i=void 0,s=o||"",k.readyState=t>0?4:0,c=t>=200&&300>t||304===t,r&&(w=X(f,k,r)),w=Y(f,w,k,c),c?(f.ifModified&&(x=k.getResponseHeader("Last-Modified"),x&&(de.lastModified[a]=x),x=k.getResponseHeader("etag"),x&&(de.etag[a]=x)),204===t||"HEAD"===f.type?_="nocontent":304===t?_="notmodified":(_=w.state,d=w.data,h=w.error,c=!h)):(h=_,(t||!_)&&(_="error",0>t&&(t=0))),k.status=t,k.statusText=(n||_)+"",c?b.resolveWith(m,[d,_,k]):b.rejectWith(m,[k,_,h]),k.statusCode(y),y=void 0,p&&g.trigger(c?"ajaxSuccess":"ajaxError",[k,f,c?d:h]),v.fireWith(m,[k,_]),p&&(g.trigger("ajaxComplete",[k,f]),--de.active||de.event.trigger("ajaxStop")))}"object"==typeof t&&(n=t,t=void 0),n=n||{};var i,a,s,o,l,c,u,p,d,h,f=de.ajaxSetup({},n),m=f.context||f,g=f.context&&(m.nodeType||m.jquery)?de(m):de.event,b=de.Deferred(),v=de.Callbacks("once memory"),y=f.statusCode||{},w={},x={},_="canceled",k={readyState:0,getResponseHeader:function(e){var t;if(u){if(!o)for(o={};t=Pt.exec(s);)o[t[1].toLowerCase()]=t[2];t=o[e.toLowerCase()]}return null==t?null:t},getAllResponseHeaders:function(){return u?s:null},setRequestHeader:function(e,t){return null==u&&(e=x[e.toLowerCase()]=x[e.toLowerCase()]||e,w[e]=t),this},overrideMimeType:function(e){return null==u&&(f.mimeType=e),this},statusCode:function(e){var t;if(e)if(u)k.always(e[k.status]);else for(t in e)y[t]=[y[t],e[t]];return this},abort:function(e){var t=e||_;return i&&i.abort(t),r(0,t),this}};if(b.promise(k),f.url=((t||f.url||kt.href)+"").replace(jt,kt.protocol+"//"),f.type=n.method||n.type||f.method||f.type,f.dataTypes=(f.dataType||"*").toLowerCase().match(Ae)||[""],null==f.crossDomain){c=J.createElement("a");try{c.href=f.url,c.href=c.href,f.crossDomain=Ft.protocol+"//"+Ft.host!=c.protocol+"//"+c.host}catch(E){f.crossDomain=!0}}if(f.data&&f.processData&&"string"!=typeof f.data&&(f.data=de.param(f.data,f.traditional)),V(Mt,f,n,k),u)return k;p=de.event&&f.global,p&&0===de.active++&&de.event.trigger("ajaxStart"),f.type=f.type.toUpperCase(),f.hasContent=!Ot.test(f.type),a=f.url.replace(Dt,""),f.hasContent?f.data&&f.processData&&0===(f.contentType||"").indexOf("application/x-www-form-urlencoded")&&(f.data=f.data.replace(Nt,"+")):(h=f.url.slice(a.length),f.data&&(a+=(Tt.test(a)?"&":"?")+f.data,delete f.data),f.cache===!1&&(a=a.replace(Lt,""),h=(Tt.test(a)?"&":"?")+"_="+Et++ +h),f.url=a+h),f.ifModified&&(de.lastModified[a]&&k.setRequestHeader("If-Modified-Since",de.lastModified[a]),de.etag[a]&&k.setRequestHeader("If-None-Match",de.etag[a])),(f.data&&f.hasContent&&f.contentType!==!1||n.contentType)&&k.setRequestHeader("Content-Type",f.contentType),k.setRequestHeader("Accept",f.dataTypes[0]&&f.accepts[f.dataTypes[0]]?f.accepts[f.dataTypes[0]]+("*"!==f.dataTypes[0]?", "+Bt+"; q=0.01":""):f.accepts["*"]);for(d in f.headers)k.setRequestHeader(d,f.headers[d]);if(f.beforeSend&&(f.beforeSend.call(m,k,f)===!1||u))return k.abort();if(_="abort",v.add(f.complete),k.done(f.success),k.fail(f.error),i=V($t,f,n,k)){if(k.readyState=1,p&&g.trigger("ajaxSend",[k,f]),u)return k;f.async&&f.timeout>0&&(l=e.setTimeout(function(){k.abort("timeout")},f.timeout));try{u=!1,i.send(w,r)}catch(E){if(u)throw E;r(-1,E)}}else r(-1,"No Transport");return k},getJSON:function(e,t,n){return de.get(e,t,n,"json")},getScript:function(e,t){return de.get(e,void 0,t,"script")}}),de.each(["get","post"],function(e,t){de[t]=function(e,n,r,i){return de.isFunction(n)&&(i=i||r,r=n,n=void 0),de.ajax(de.extend({url:e,type:t,dataType:i,data:n,success:r},de.isPlainObject(e)&&e))}}),de._evalUrl=function(e){return de.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,"throws":!0})},de.fn.extend({wrapAll:function(e){var t;return this[0]&&(de.isFunction(e)&&(e=e.call(this[0])),t=de(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map(function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e}).append(this)),this},wrapInner:function(e){return de.isFunction(e)?this.each(function(t){de(this).wrapInner(e.call(this,t))}):this.each(function(){var t=de(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)})},wrap:function(e){var t=de.isFunction(e);return this.each(function(n){de(this).wrapAll(t?e.call(this,n):e)})},unwrap:function(e){return this.parent(e).not("body").each(function(){de(this).replaceWith(this.childNodes)}),this}}),de.expr.pseudos.hidden=function(e){return!de.expr.pseudos.visible(e)},de.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},de.ajaxSettings.xhr=function(){try{return new e.XMLHttpRequest}catch(t){}};var qt={0:200,1223:204},Ht=de.ajaxSettings.xhr();ue.cors=!!Ht&&"withCredentials"in Ht,ue.ajax=Ht=!!Ht,de.ajaxTransport(function(t){var n,r;return ue.cors||Ht&&!t.crossDomain?{send:function(i,a){var s,o=t.xhr();if(o.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(s in t.xhrFields)o[s]=t.xhrFields[s];t.mimeType&&o.overrideMimeType&&o.overrideMimeType(t.mimeType),t.crossDomain||i["X-Requested-With"]||(i["X-Requested-With"]="XMLHttpRequest");for(s in i)o.setRequestHeader(s,i[s]);n=function(e){return function(){n&&(n=r=o.onload=o.onerror=o.onabort=o.onreadystatechange=null,"abort"===e?o.abort():"error"===e?"number"!=typeof o.status?a(0,"error"):a(o.status,o.statusText):a(qt[o.status]||o.status,o.statusText,"text"!==(o.responseType||"text")||"string"!=typeof o.responseText?{binary:o.response}:{text:o.responseText},o.getAllResponseHeaders()))}},o.onload=n(),r=o.onerror=n("error"),void 0!==o.onabort?o.onabort=r:o.onreadystatechange=function(){4===o.readyState&&e.setTimeout(function(){n&&r()})},n=n("abort");try{o.send(t.hasContent&&t.data||null)}catch(l){if(n)throw l}},abort:function(){n&&n()}}:void 0}),de.ajaxPrefilter(function(e){e.crossDomain&&(e.contents.script=!1)}),de.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return de.globalEval(e),e}}}),de.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")}),de.ajaxTransport("script",function(e){if(e.crossDomain){var t,n;return{send:function(r,i){t=de("<script>").prop({charset:e.scriptCharset,src:e.url}).on("load error",n=function(e){t.remove(),n=null,e&&i("error"===e.type?404:200,e.type)}),J.head.appendChild(t[0])},abort:function(){n&&n()}}}});var Ut=[],Kt=/(=)\?(?=&|$)|\?\?/;de.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Ut.pop()||de.expando+"_"+Et++;return this[e]=!0,e}}),de.ajaxPrefilter("json jsonp",function(t,n,r){var i,a,s,o=t.jsonp!==!1&&(Kt.test(t.url)?"url":"string"==typeof t.data&&0===(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&Kt.test(t.data)&&"data");return o||"jsonp"===t.dataTypes[0]?(i=t.jsonpCallback=de.isFunction(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,o?t[o]=t[o].replace(Kt,"$1"+i):t.jsonp!==!1&&(t.url+=(Tt.test(t.url)?"&":"?")+t.jsonp+"="+i),t.converters["script json"]=function(){return s||de.error(i+" was not called"),s[0]},t.dataTypes[0]="json",a=e[i],e[i]=function(){s=arguments},r.always(function(){void 0===a?de(e).removeProp(i):e[i]=a,t[i]&&(t.jsonpCallback=n.jsonpCallback,Ut.push(i)),s&&de.isFunction(a)&&a(s[0]),s=a=void 0}),"script"):void 0}),ue.createHTMLDocument=function(){var e=J.implementation.createHTMLDocument("").body;return e.innerHTML="<form></form><form></form>",2===e.childNodes.length}(),de.parseHTML=function(e,t,n){if("string"!=typeof e)return[];"boolean"==typeof t&&(n=t,t=!1);var r,i,a;return t||(ue.createHTMLDocument?(t=J.implementation.createHTMLDocument(""),r=t.createElement("base"),r.href=J.location.href,t.head.appendChild(r)):t=J),i=xe.exec(e),a=!n&&[],i?[t.createElement(i[1])]:(i=v([e],t,a),a&&a.length&&de(a).remove(),de.merge([],i.childNodes))},de.fn.load=function(e,t,n){var r,i,a,s=this,o=e.indexOf(" ");return o>-1&&(r=de.trim(e.slice(o)),e=e.slice(0,o)),de.isFunction(t)?(n=t,t=void 0):t&&"object"==typeof t&&(i="POST"),s.length>0&&de.ajax({url:e,type:i||"GET",dataType:"html",data:t}).done(function(e){a=arguments,s.html(r?de("<div>").append(de.parseHTML(e)).find(r):e)}).always(n&&function(e,t){s.each(function(){n.apply(this,a||[e.responseText,t,e])})}),this},de.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){de.fn[t]=function(e){return this.on(t,e)}}),de.expr.pseudos.animated=function(e){return de.grep(de.timers,function(t){return e===t.elem}).length},de.offset={setOffset:function(e,t,n){var r,i,a,s,o,l,c,u=de.css(e,"position"),p=de(e),d={};"static"===u&&(e.style.position="relative"),o=p.offset(),a=de.css(e,"top"),l=de.css(e,"left"),c=("absolute"===u||"fixed"===u)&&(a+l).indexOf("auto")>-1,c?(r=p.position(),s=r.top,i=r.left):(s=parseFloat(a)||0,i=parseFloat(l)||0),de.isFunction(t)&&(t=t.call(e,n,de.extend({},o))),null!=t.top&&(d.top=t.top-o.top+s),null!=t.left&&(d.left=t.left-o.left+i),"using"in t?t.using.call(e,d):p.css(d)}},de.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each(function(t){de.offset.setOffset(this,e,t)});var t,n,r,i,a=this[0];if(a)return a.getClientRects().length?(r=a.getBoundingClientRect(),r.width||r.height?(i=a.ownerDocument,n=Q(i),t=i.documentElement,{top:r.top+n.pageYOffset-t.clientTop,left:r.left+n.pageXOffset-t.clientLeft}):r):{top:0,left:0}},position:function(){if(this[0]){var e,t,n=this[0],r={top:0,left:0};return"fixed"===de.css(n,"position")?t=n.getBoundingClientRect():(e=this.offsetParent(),t=this.offset(),de.nodeName(e[0],"html")||(r=e.offset()),r={top:r.top+de.css(e[0],"borderTopWidth",!0),left:r.left+de.css(e[0],"borderLeftWidth",!0)}),{top:t.top-r.top-de.css(n,"marginTop",!0),left:t.left-r.left-de.css(n,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent;e&&"static"===de.css(e,"position");)e=e.offsetParent;return e||Ge})}}),de.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,t){var n="pageYOffset"===t;de.fn[e]=function(r){return De(this,function(e,r,i){var a=Q(e);return void 0===i?a?a[t]:e[r]:void(a?a.scrollTo(n?a.pageXOffset:i,n?i:a.pageYOffset):e[r]=i)},e,r,arguments.length)}}),de.each(["top","left"],function(e,t){de.cssHooks[t]=D(ue.pixelPosition,function(e,n){return n?(n=N(e,t),it.test(n)?de(e).position()[t]+"px":n):void 0})}),de.each({Height:"height",Width:"width"},function(e,t){de.each({padding:"inner"+e,content:t,"":"outer"+e},function(n,r){de.fn[r]=function(i,a){var s=arguments.length&&(n||"boolean"!=typeof i),o=n||(i===!0||a===!0?"margin":"border");return De(this,function(t,n,i){var a;return de.isWindow(t)?0===r.indexOf("outer")?t["inner"+e]:t.document.documentElement["client"+e]:9===t.nodeType?(a=t.documentElement,Math.max(t.body["scroll"+e],a["scroll"+e],t.body["offset"+e],a["offset"+e],a["client"+e])):void 0===i?de.css(t,n,o):de.style(t,n,i,o)},t,s?i:void 0,s)}})}),de.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)}}),de.parseJSON=JSON.parse,"function"==typeof define&&define.amd&&define("jquery",[],function(){return de});var Wt=e.jQuery,zt=e.$;return de.noConflict=function(t){return e.$===de&&(e.$=zt),t&&e.jQuery===de&&(e.jQuery=Wt),de},t||(e.jQuery=e.$=de),de}),define("deps/jquery",function(){}),define("deps/domReady",[],function(){"use strict";function e(e){var t;for(t=0;t<e.length;t+=1)e[t](c)}function t(){var t=u;l&&t.length&&(u=[],e(t))}function n(){l||(l=!0,s&&clearInterval(s),t())}function r(e){return l?e(c):u.push(e),r}var i,a,s,o="undefined"!=typeof window&&window.document,l=!o,c=o?document:null,u=[];if(o){if(document.addEventListener)document.addEventListener("DOMContentLoaded",n,!1),window.addEventListener("load",n,!1);else if(window.attachEvent){window.attachEvent("onload",n),a=document.createElement("div");try{i=null===window.frameElement}catch(p){}a.doScroll&&i&&window.external&&(s=setInterval(function(){try{a.doScroll(),n()}catch(e){}},30))}"complete"===document.readyState&&n()}return r.version="2.0.1",r.load=function(e,t,n,i){i.isBuild?n(null):r(n)},r}),define("core/pubsubhub",[],function(){var e=new Map,t={pub:function(t){if(e.has(t)){var n=Array.from(arguments).slice(1);if(Array.from(e.get(t)).forEach(function(e){e.apply(null,n)}),window.parent!==window.self){var r=n.map(function(e){var t=String(JSON.stringify(e.stack||e));return t}),i={topic:t,args:r};window.parent.postMessage(i,window.parent.location.origin)}}},sub:function(t,n){return e.has(t)?e.get(t).push(n):e.set(t,[n]),{topic:t,cb:n}},unsub:function(t){var n=e.get(t.topic);return n&&-1!==n.indexOf(t.cb)?void n.splice(n.indexOf(t.cb),1):void console.warn("Already unsubscribed:",t.topic,t.cb)}};return t.sub("error",function(e){console.error(e.stack||e)}),t.sub("warn",function(e){console.warn(e)}),Object.defineProperty(window,"respecEvents",{get:function(){var e="window.respecEvents() is deprecated. Use 'require([\"core/pubsubhub\"], function(){...})' instead.";return t.pub("warn",e),t}}),t}),define("core/base-runner",["core/pubsubhub"],function(e){function t(e){var t="Using 'msg' is deprecated. Import 'pubsubhub' into your module instead.";return Object.keys(e).reduce(function(n,r){return Object.defineProperty(n,r,{value:function(){return console.warn(t),e[r].apply(e,Array.from(arguments))}})},{})}return{runAll:function(n){if(e.pub("start-all"),respecConfig.preProcess)for(var r=0;r<respecConfig.preProcess.length;r++)try{respecConfig.preProcess[r].apply(this)}catch(i){window.console.error(i.stack||JSON.stringify(i))}var a=t(e),s=Promise.resolve();return n.shift(),n.forEach(function(e){s=s.then(function(){return e.run?new Promise(function(t){var n=e.run.call(e,respecConfig,document,t,a);n&&t(n)})["catch"](function(e){throw e}):Promise.resolve()})}),s.then(function(){var t=Object.assign({},window.respecConfig);e.pub("end-all",t)}).then(function(){if(respecConfig.postProcess)for(var t=0;t<respecConfig.postProcess.length;t++)try{respecConfig.postProcess[t].apply(this)}catch(n){e.pub("error",n)}if(respecConfig.afterEnd)try{respecConfig.afterEnd.apply(window,Array.from(arguments))}catch(n){e.pub("error",n)}})}}});var shortcut={all_shortcuts:{},add:function(e,t,n){var r={type:"keydown",propagate:!1,disable_in_input:!1,target:document,keycode:!1};if(n)for(var i in r)"undefined"==typeof n[i]&&(n[i]=r[i]);else n=r;var a=n.target;"string"==typeof n.target&&(a=document.getElementById(n.target));e=e.toLowerCase();var s=function(r){var i;if(r=r||window.event,n.disable_in_input){var a;if(r.target?a=r.target:r.srcElement&&(a=r.srcElement),3==a.nodeType&&(a=a.parentNode),"INPUT"==a.tagName||"TEXTAREA"==a.tagName)return}r.keyCode?i=r.keyCode:r.which&&(i=r.which);var s=String.fromCharCode(i).toLowerCase();188==i&&(s=","),190==i&&(s=".");var o=e.split("+"),l=0,c={"`":"~",1:"!",2:"@",3:"#",4:"$",5:"%",6:"^",7:"&",8:"*",9:"(",0:")","-":"_","=":"+",";":":","'":'"',",":"<",".":">","/":"?","\\":"|"},u={esc:27,escape:27,tab:9,space:32,"return":13,enter:13,backspace:8,scrolllock:145,scroll_lock:145,scroll:145,capslock:20,caps_lock:20,caps:20,numlock:144,num_lock:144,num:144,pause:19,"break":19,insert:45,home:36,"delete":46,end:35,pageup:33,page_up:33,pu:33,pagedown:34,page_down:34,pd:34,left:37,up:38,right:39,down:40,f1:112,f2:113,f3:114,f4:115,f5:116,f6:117,f7:118,f8:119,f9:120,f10:121,f11:122,f12:123},p={shift:{wanted:!1,pressed:!1},ctrl:{wanted:!1,pressed:!1},alt:{wanted:!1,pressed:!1},meta:{wanted:!1,pressed:!1}};r.ctrlKey&&(p.ctrl.pressed=!0),r.shiftKey&&(p.shift.pressed=!0),r.altKey&&(p.alt.pressed=!0),r.metaKey&&(p.meta.pressed=!0);for(var d,h=0;d=o[h],h<o.length;h++)"ctrl"==d||"control"==d?(l++,p.ctrl.wanted=!0):"shift"==d?(l++,p.shift.wanted=!0):"alt"==d?(l++,p.alt.wanted=!0):"meta"==d?(l++,p.meta.wanted=!0):d.length>1?u[d]==i&&l++:n.keycode?n.keycode==i&&l++:s==d?l++:c[s]&&r.shiftKey&&(s=c[s],s==d&&l++);return l!=o.length||p.ctrl.pressed!=p.ctrl.wanted||p.shift.pressed!=p.shift.wanted||p.alt.pressed!=p.alt.wanted||p.meta.pressed!=p.meta.wanted||(t(r),n.propagate)?void 0:(r.cancelBubble=!0,r.returnValue=!1,r.stopPropagation&&(r.stopPropagation(),r.preventDefault()),!1)};this.all_shortcuts[e]={callback:s,target:a,event:n.type},a.addEventListener?a.addEventListener(n.type,s,!1):a.attachEvent?a.attachEvent("on"+n.type,s):a["on"+n.type]=s}};define("shortcut",function(e){return function(){var t;return t||e.shortcut}}(this)),define("core/utils",["core/pubsubhub"],function(e){var t=new Set(["dns-prefetch","preconnect","preload","prerender"]),n=new Set(["document","embed","font","image","manifest","media","object","report","script","serviceworker","sharedworker","style","worker","xslt",""]),r={makeOwnerSwapper:function(e){if(!(e instanceof Node))throw new TypeError("Expected instance of Node.");return function(t){return e.remove(),t.ownerDocument.adoptNode(e),t.firstElementChild?t.insertBefore(e,t.firstElementChild):void t.appendChild(e)}},calculateLeftPad:function(e){if("string"!=typeof e)throw new TypeError("Invalid input");var t=/^[\ |\t]*/,n=e.split("\n").filter(function(e){return e}).reduce(function(e,n){if(0===e)return e;var r=n.match(t)[0]||"";return Math.min(r.length,e)},+(1/0));return n===+(1/0)?0:n},createResourceHint:function(e){if(!e||"object"!=typeof e)throw new TypeError("Missing options");if(!t.has(e.hint))throw new TypeError("Invalid resources hint");var r=new URL(e.href,document.location),i=document.createElement("link"),a=r.href;switch(i.rel=e.hint,i.rel){case"dns-prefetch":case"preconnect":a=r.origin,(e.corsMode||r.origin!==document.location.origin)&&(i.crossOrigin=e.corsMode||"anonymous");break;case"preload":"as"in e&&"string"==typeof e.as&&(n.has(e.as)||console.warn("Unknown request destination: "+e.as),i.setAttribute("as",e.as));break;case"prerender":a=r.href}return i.href=a,e.dontRemove||i.classList.add("removeOnSave"),i},toESIterable:function(e){if("function"!=typeof e)throw TypeError("Expected a function");var t=function(){return{value:e(),get done(){return null===this.value}}},n={};return n[Symbol.iterator]=function(){return{next:t}},n},normalizePadding:function(e){function t(e){return""===e.textContent}function n(e){return!/\S/gm.test(e.textContent)}function r(e){return e.parentElement.lastChild===e&&(n(e)||t(e))?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT}function i(e){return e.nodeType===Node.TEXT_NODE}function a(e){return function t(n){if(!n)return!1;var r=n.parentNode&&n.parentNode.localName===e;return r?!0:t(n.parentNode)}}if(!e)return"";if("string"!=typeof e)throw TypeError("Invalid input");if("\n"===e)return"\n";var s=a("pre"),o="<body>"+e,l=(new DOMParser).parseFromString(o,"text/html"),c=Array.from(l.body.childNodes).filter(i).map(function(e){return e.textContent}).find(function(e){var t=/^[\#|\s|\w]+/gm.test(e);return t});if(!c)return e;var u=this.calculateLeftPad(c);u&&Array.from(l.body.childNodes).filter(i).filter(function(e){return!s(e)}).filter(function(e){var t=e.parentElement.lastChild===e,r=n(e);return!(t&&r)}).map(function(e){var t=e.textContent,n=t.trimRight(),r=this.calculateLeftPad(n)||u;if(!r)return null;var i="^ {"+r+"}",a=new RegExp(i,"gm"),s=r?t.replace(a,""):t,o=e.ownerDocument.createTextNode(s);return{oldNode:e,newNode:o}}.bind(this)).filter(function(e){return e}).forEach(function(e){var t=e.oldNode,n=e.newNode;t.parentElement.replaceChild(n,t)});var p=l.createNodeIterator(l.body,NodeFilter.SHOW_TEXT,r),d=this.toESIterable(p.nextNode.bind(p));Array.from(d).forEach(function(e){e.remove()});var h=l.body.innerHTML;return h},removeReSpec:function(e){$(".remove, script[data-requiremodule]",e).remove()},joinAnd:function(e,t){if(!e||!e.length)return"";t=t||function(e){return e};var n="";if(1===e.length)return t(e[0],0);for(var r=0,i=e.length;i>r;r++)r>0&&(n+=2===i?" ":", ",r==i-1&&(n+="and ")),n+=t(e[r],r);return n},xmlEscape:function(e){return e.replace(/&/g,"&").replace(/>/g,">").replace(/"/g,""").replace(/</g,"<")},norm:function(e){return e.replace(/^\s+/,"").replace(/\s+$/,"").split(/\s+/).join(" ")},concatDate:function(e,t){return t||(t=""),""+e.getFullYear()+t+this.lead0(e.getMonth()+1)+t+this.lead0(e.getDate())},lead0:function(e){return e=""+e,1==e.length?"0"+e:e},parseSimpleDate:function(e){return new Date(e.substr(0,4),e.substr(5,2)-1,e.substr(8,2))},parseLastModified:function(e){return e?new Date(Date.parse(e)):new Date},humanMonths:["January","February","March","April","May","June","July","August","September","October","November","December"],humanDate:function(e){return e instanceof Date||(e=this.parseSimpleDate(e)),this.lead0(e.getDate())+" "+this.humanMonths[e.getMonth()]+" "+e.getFullYear()},isoDate:function(e){return e instanceof Date||(e=this.parseSimpleDate(e)),e.toISOString()},toKeyValuePairs:function(e,t,n){return n||(n="="),t||(t=", "),Object.getOwnPropertyNames(e).map(function(t){return t+n+JSON.stringify(e[t])}).join(t)},linkCSS:function(e,t){var n=Array.isArray(t)?[].concat(t):[t],r=n.map(function(t){var n=e.createElement("link");return n.rel="stylesheet",n.href=t,n}).reduce(function(e,t){return e.appendChild(t),e},e.createDocumentFragment());e.head.appendChild(r)},runTransforms:function(t,n){var r=[this,t],i=Array.from(arguments);if(i.shift(),i.shift(),r=r.concat(i),n)for(var a=n.split(/\s+/),s=0;s<a.length;s++){var o=a[s];if(window[o])try{t=window[o].apply(this,r)}catch(l){e.pub("warn","call to "+o+"() failed with "+l)}}return t}};return r}),define("core/jquery-enhanced",["core/pubsubhub","core/utils","deps/jquery"],function(e,t){return $.fn.renameElement=function(e){var t=[];return this.each(function(){for(var n=$(this.ownerDocument.createElement(e)),r=0,i=this.attributes.length;i>r;r++){var a=this.attributes[r];n[0].setAttributeNS(a.namespaceURI,a.name,a.value)}$(this).contents().appendTo(n),$(this).replaceWith(n),t.push(n[0])}),$(t)},$.fn.getDfnTitles=function(n){var r=[],i="",a="",s="";if(void 0===this.attr("data-lt-noDefault")&&(s=t.norm(this.text()).toLowerCase()),this.attr("data-lt")||this.attr("lt")){if(i=this.attr("data-lt")?"data-lt":"lt",a=this.attr(i).toLowerCase(),""!==s){var o=new RegExp("^"+s+"\\|");o.test(a)||(a=s+"|"+a)}}else this.attr("title")?(a=this.attr("title"),i="title",e.pub("warn","Using deprecated attribute title for '"+this.text()+"': see https://github.com/w3c/respec/wiki/User's-Guide#definitions-and-linking")):a=1==this.contents().length&&1==this.children("abbr, acronym").length&&this.find(":first-child").attr("title")?this.find(":first-child").attr("title"):this.text();return a=t.norm(a).toLowerCase(),n&&n.isDefinition===!0&&(i&&(this.attr("data-lt",a),this.removeAttr(i)),this.attr("dfn-type")?(this.attr("data-dfn-type",this.attr("dfn-type")),this.removeAttr("dfn-type")):this.attr("data-dfn-type","dfn")),a.split("|").forEach(function(e){""!=e&&r.push(e)}),r},$.fn.linkTargets=function(){var e=this,t=(e.attr("for")||e.attr("data-for")||e.closest("[link-for]").attr("link-for")||e.closest("[data-link-for]").attr("data-link-for")||"").toLowerCase(),n=e.getDfnTitles(),r=[];return $.each(n,function(){r.push({for_:t,title:this});var e=this.split(".");2===e.length&&r.push({for_:e[0],title:e[1]}),r.push({for_:"",title:this})}),r},$.fn.makeID=function(e,t,n){if(this.attr("id"))return this.attr("id");t||(t=this.attr("title")?this.attr("title"):this.text()),t=t.replace(/^\s+/,"").replace(/\s+$/,"");var r=n?t:t.toLowerCase();r=r.split(/[^\-.0-9a-z_]+/i).join("-").replace(/^-+/,"").replace(/-+$/,""),/\.$/.test(r)&&(r+="x"),r.length>0&&/^[^a-z]/i.test(r)&&(r="x"+r),0===r.length&&(r="generatedID"),e&&(r=e+"-"+r);var i=1,a=this[0].ownerDocument;if($("#"+r,a).length){for(;$("#"+r+"-"+i,a).length;)i++;r+="-"+i}return this.attr("id",r),r},$.fn.allTextNodes=function(e){function t(e){if(1!==e.nodeType||!r[e.localName.toLowerCase()])if(3===e.nodeType)n.push(e);else for(var i=0,a=e.childNodes.length;a>i;++i)t(e.childNodes[i])}for(var n=[],r={},i=0,a=e.length;a>i;i++)r[e[i]]=!0;return t(this[0]),n},window.$=$,$}),define("core/ui",["shortcut","core/pubsubhub","core/jquery-enhanced"],function(e,t){var n,r,i,a,s,o,l=$("<div id=respec-menu></div>").css({background:"#fff",border:"1px solid #000",width:"200px",display:"none",textAlign:"left",marginTop:"5px",marginRight:"5px"}),c=[],u=[],p={},d=function(e,t,n,r,a){t.push(e),p[n]||(p[n]=$("<button></button>").css({background:r,color:"#fff",fontWeight:"bold",border:"none",borderRadius:"5px",marginLeft:"5px"}).insertAfter(i).click(function(){for(var e=$("<ol></ol>"),n=0,r=t.length;r>n;n++){var i=t[n];i instanceof Error?$("<li><span></span> <a>⊞</a><pre></pre></li>").appendTo(e).find("span").text("["+i.name+"] "+i.message).end().find("a").css({fontSize:"1.1em",color:"#999",cursor:"pointer"}).click(function(){var e=$(this),t=e.text(),n=e.parent().find("pre");"⊞"===t?(e.text("⊟"),n.show()):(e.text("⊞"),n.hide())}).end().find("pre").text(i.stack).css({marginLeft:"0",maxWidth:"100%",overflowY:"hidden",overflowX:"scroll"}).hide().end():$("<li></li>").text(i).appendTo(e)}h.freshModal(a,e)})),p[n].text(t.length)},h={show:function(){a[0].classList.remove("respec-hidden")},hide:function(){a[0].classList.add("respec-hidden")},run:function(t,n,r){s=t,o=n;var c=a=$("<div id='respec-ui' class='removeOnSave'></div>",o).css({position:"fixed",top:"20px",right:"20px",width:"202px",textAlign:"right"}).appendTo($("body",o));i=$("<button id='respec-pill'>ReSpec</button>").css({background:"#fff",fontWeight:"bold",border:"1px solid #ccc",borderRadius:"5px"}).click(function(e){e.stopPropagation(),l.toggle()}).appendTo(c),o.documentElement.addEventListener("click",function(){"block"===window.getComputedStyle(l[0]).display&&l.fadeOut(200)}),l.appendTo(c),e.add("Esc",function(){h.closeModal()}),e.add("Ctrl+Alt+Shift+E",function(){p.error&&p.error.click()}),e.add("Ctrl+Alt+Shift+W",function(){p.warning&&p.warning.click()}),this.hide(),r()},addCommand:function(t,n,r){var i=function(){l.hide(),require([n],function(e){e.show(h,s,o)})},a="respec-modal-"+t.toLowerCase().replace(/\s+/,"-");$("<button></button>").attr({id:a}).css({background:"#fff",border:"none",borderBottom:"1px solid #ccc",width:"100%",textAlign:"left",fontSize:"inherit"}).text(t).click(i).appendTo(l),r&&e.add(r,i)},error:function(e){d(e,c,"error","#c00","Errors")},warning:function(e){d(e,u,"warning","#f60","Warnings")},closeModal:function(){r&&r.fadeOut(200,function(){r.remove(),r=null}),n&&(n.remove(),n=null)},freshModal:function(e,t){n&&n.remove(),r&&r.remove();var i=500;r=$("<div id='respec-overlay' class='removeOnSave'></div>").hide(),n=$("<div id='respec-modal' class='removeOnSave'><h3></h3><div class='inside'></div></div>").hide(),n.find("h3").text(e),n.find(".inside").append(t),$("body").append(r).append(n),r.click(this.closeModal).css({display:"block",opacity:0,position:"fixed",zIndex:1e4,top:"0px",left:"0px",height:"100%",width:"100%",background:"#000"}).fadeTo(200,.5),n.css({display:"block",position:"fixed",opacity:0,zIndex:11e3,left:"50%",marginLeft:-(i/2)+"px",top:"100px",background:"#fff",border:"5px solid #666",borderRadius:"5px",width:i+"px",padding:"0 20px 20px 20px",maxHeight:$(window).height()-150+"px",overflowY:"auto"}).fadeTo(200,1)}};return window.respecUI=h,t.sub("error",function(e){h.error(e)}),t.sub("warn",function(e){h.warning(e)}),h}),define("core/respec-ready",["core/pubsubhub"],function(e){var t=!1,n=new Promise(function(n){var r=e.sub("end-all",function(i){e.unsub(r),t=!0,n(i)})});return Object.defineProperty(document,"respecDone",{get:function(){var n="document.respecDone is deprecated, use document.respecIsReady instead.";return e.pub("warn",n),t}}),Object.defineProperty(document,"respecIsReady",{get:function(){return n}}),n}),define("core/include-config",["core/pubsubhub"],function(e){"use strict";return{run:function(t,n,r){var i;try{i=Object.assign?Object.assign({},t):JSON.parse(JSON.stringify(t))}catch(a){i={}}e.sub("end-all",function(){var e=n.createElement("script");e.id="initialUserConfig";var r=function(e,t){if("definitionMap"===e){var n={};return Object.keys(t).forEach(function(e){n[e]=t[e].map(function(e){return e[0].id})}),n}return t};e.innerHTML=JSON.stringify(i,r,2),e.type="application/json",n.head.appendChild(e),t.initialUserConfig=i}),r()}}}),define("core/override-configuration",[],function(){return{run:function(e,t,n){if(!location.search)return n();
var r=t.location.search.replace(/^\?/,"").split(";").filter(function(e){return e.trim()}).reduce(function(e,t){var n,r=t.split("=",2),i=decodeURIComponent(r[0]),a=decodeURIComponent(r[1].replace(/%3D/g,"="));try{n=JSON.parse(a)}catch(s){n=a}return e[i]=n,e},{});Object.assign(e,r),n()}}}),define("core/default-root-attr",[],function(){return{run:function(e,t,n){var r=$(t.documentElement);r.attr("lang")||(r.attr("lang","en"),r.attr("dir")||r.attr("dir","ltr")),n()}}}),define("deps/text",["module"],function(e){"use strict";function t(e,t){return void 0===e||""===e?t:e}function n(e,n,r,i){if(n===i)return!0;if(e===r){if("http"===e)return t(n,"80")===t(i,"80");if("https"===e)return t(n,"443")===t(i,"443")}return!1}var r,i,a,s,o,l=["Msxml2.XMLHTTP","Microsoft.XMLHTTP","Msxml2.XMLHTTP.4.0"],c=/^\s*<\?xml(\s)+version=[\'\"](\d)*.(\d)*[\'\"](\s)*\?>/im,u=/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im,p="undefined"!=typeof location&&location.href,d=p&&location.protocol&&location.protocol.replace(/\:/,""),h=p&&location.hostname,f=p&&(location.port||void 0),m={},g=e.config&&e.config()||{};return r={version:"2.0.15",strip:function(e){if(e){e=e.replace(c,"");var t=e.match(u);t&&(e=t[1])}else e="";return e},jsEscape:function(e){return e.replace(/(['\\])/g,"\\$1").replace(/[\f]/g,"\\f").replace(/[\b]/g,"\\b").replace(/[\n]/g,"\\n").replace(/[\t]/g,"\\t").replace(/[\r]/g,"\\r").replace(/[\u2028]/g,"\\u2028").replace(/[\u2029]/g,"\\u2029")},createXhr:g.createXhr||function(){var e,t,n;if("undefined"!=typeof XMLHttpRequest)return new XMLHttpRequest;if("undefined"!=typeof ActiveXObject)for(t=0;3>t;t+=1){n=l[t];try{e=new ActiveXObject(n)}catch(r){}if(e){l=[n];break}}return e},parseName:function(e){var t,n,r,i=!1,a=e.lastIndexOf("."),s=0===e.indexOf("./")||0===e.indexOf("../");return-1!==a&&(!s||a>1)?(t=e.substring(0,a),n=e.substring(a+1)):t=e,r=n||t,a=r.indexOf("!"),-1!==a&&(i="strip"===r.substring(a+1),r=r.substring(0,a),n?n=r:t=r),{moduleName:t,ext:n,strip:i}},xdRegExp:/^((\w+)\:)?\/\/([^\/\\]+)/,useXhr:function(e,t,i,a){var s,o,l,c=r.xdRegExp.exec(e);return c?(s=c[2],o=c[3],o=o.split(":"),l=o[1],o=o[0],(!s||s===t)&&(!o||o.toLowerCase()===i.toLowerCase())&&(!l&&!o||n(s,l,t,a))):!0},finishLoad:function(e,t,n,i){n=t?r.strip(n):n,g.isBuild&&(m[e]=n),i(n)},load:function(e,t,n,i){if(i&&i.isBuild&&!i.inlineText)return void n();g.isBuild=i&&i.isBuild;var a=r.parseName(e),s=a.moduleName+(a.ext?"."+a.ext:""),o=t.toUrl(s),l=g.useXhr||r.useXhr;return 0===o.indexOf("empty:")?void n():void(!p||l(o,d,h,f)?r.get(o,function(t){r.finishLoad(e,a.strip,t,n)},function(e){n.error&&n.error(e)}):t([s],function(e){r.finishLoad(a.moduleName+"."+a.ext,a.strip,e,n)}))},write:function(e,t,n,i){if(m.hasOwnProperty(t)){var a=r.jsEscape(m[t]);n.asModule(e+"!"+t,"define(function () { return '"+a+"';});\n")}},writeFile:function(e,t,n,i,a){var s=r.parseName(t),o=s.ext?"."+s.ext:"",l=s.moduleName+o,c=n.toUrl(s.moduleName+o)+".js";r.load(l,n,function(t){var n=function(e){return i(c,e)};n.asModule=function(e,t){return i.asModule(e,c,t)},r.write(e,l,n,a)},a)}},"node"===g.env||!g.env&&"undefined"!=typeof process&&process.versions&&process.versions.node&&!process.versions["node-webkit"]&&!process.versions["atom-shell"]?(i=require.nodeRequire("fs"),r.get=function(e,t,n){try{var r=i.readFileSync(e,"utf8");"\ufeff"===r[0]&&(r=r.substring(1)),t(r)}catch(a){n&&n(a)}}):"xhr"===g.env||!g.env&&r.createXhr()?r.get=function(e,t,n,i){var a,s=r.createXhr();if(s.open("GET",e,!0),i)for(a in i)i.hasOwnProperty(a)&&s.setRequestHeader(a.toLowerCase(),i[a]);g.onXhr&&g.onXhr(s,e),s.onreadystatechange=function(r){var i,a;4===s.readyState&&(i=s.status||0,i>399&&600>i?(a=new Error(e+" HTTP status: "+i),a.xhr=s,n&&n(a)):t(s.responseText),g.onXhrComplete&&g.onXhrComplete(s,e))},s.send(null)}:"rhino"===g.env||!g.env&&"undefined"!=typeof Packages&&"undefined"!=typeof java?r.get=function(e,t){var n,r,i="utf-8",a=new java.io.File(e),s=java.lang.System.getProperty("line.separator"),o=new java.io.BufferedReader(new java.io.InputStreamReader(new java.io.FileInputStream(a),i)),l="";try{for(n=new java.lang.StringBuffer,r=o.readLine(),r&&r.length()&&65279===r.charAt(0)&&(r=r.substring(1)),null!==r&&n.append(r);null!==(r=o.readLine());)n.append(s),n.append(r);l=String(n.toString())}finally{o.close()}t(l)}:("xpconnect"===g.env||!g.env&&"undefined"!=typeof Components&&Components.classes&&Components.interfaces)&&(a=Components.classes,s=Components.interfaces,Components.utils["import"]("resource://gre/modules/FileUtils.jsm"),o="@mozilla.org/windows-registry-key;1"in a,r.get=function(e,t){var n,r,i,l={};o&&(e=e.replace(/\//g,"\\")),i=new FileUtils.File(e);try{n=a["@mozilla.org/network/file-input-stream;1"].createInstance(s.nsIFileInputStream),n.init(i,1,0,!1),r=a["@mozilla.org/intl/converter-input-stream;1"].createInstance(s.nsIConverterInputStream),r.init(n,"utf-8",n.available(),s.nsIConverterInputStream.DEFAULT_REPLACEMENT_CHARACTER),r.readString(n.available(),l),r.close(),n.close(),t(l.value)}catch(c){throw new Error((i&&i.path||"")+": "+c)}}),r}),define("deps/text!core/css/respec2.css",[],function(){return'/*****************************************************************\n * ReSpec 3 CSS\n * Robin Berjon - http://berjon.com/\n *****************************************************************/\n\n/* Override code highlighter background */\n.hljs {\n background: transparent !important;\n}\n\n/* --- INLINES --- */\nem.rfc2119 {\n text-transform: lowercase;\n font-variant: small-caps;\n font-style: normal;\n color: #900;\n}\n\nh1 acronym, h2 acronym, h3 acronym, h4 acronym, h5 acronym, h6 acronym, a acronym,\nh1 abbr, h2 abbr, h3 abbr, h4 abbr, h5 abbr, h6 abbr, a abbr {\n border: none;\n}\n\ndfn {\n font-weight: bold;\n}\n\na.internalDFN {\n color: inherit;\n border-bottom: 1px solid #99c;\n text-decoration: none;\n}\n\na.externalDFN {\n color: inherit;\n border-bottom: 1px dotted #ccc;\n text-decoration: none;\n}\n\na.bibref {\n text-decoration: none;\n}\n\ncite .bibref {\n font-style: normal;\n}\n\ncode {\n color: #C83500;\n}\n\nth code {\n color: inherit;\n}\n\n/* --- TOC --- */\n.toc a, .tof a {\n text-decoration: none;\n}\n\na .secno, a .figno {\n color: #000;\n}\n\nul.tof, ol.tof {\n list-style: none outside none;\n}\n\n.caption {\n margin-top: 0.5em;\n font-style: italic;\n}\n\n/* --- TABLE --- */\ntable.simple {\n border-spacing: 0;\n border-collapse: collapse;\n border-bottom: 3px solid #005a9c;\n}\n\n.simple th {\n background: #005a9c;\n color: #fff;\n padding: 3px 5px;\n text-align: left;\n}\n\n.simple th[scope="row"] {\n background: inherit;\n color: inherit;\n border-top: 1px solid #ddd;\n}\n\n.simple td {\n padding: 3px 10px;\n border-top: 1px solid #ddd;\n}\n\n.simple tr:nth-child(even) {\n background: #f0f6ff;\n}\n\n/* --- DL --- */\n.section dd > p:first-child {\n margin-top: 0;\n}\n\n.section dd > p:last-child {\n margin-bottom: 0;\n}\n\n.section dd {\n margin-bottom: 1em;\n}\n\n.section dl.attrs dd, .section dl.eldef dd {\n margin-bottom: 0;\n}\n\n.respec-hidden {\n display: none;\n}\n\n@media print {\n .removeOnSave {\n display: none;\n }\n}\n'}),define("core/style",["deps/text!core/css/respec2.css","core/utils"],function(e,t){var n=document.createElement("style");n.id="respec-mainstyle",n.textContent=e;var r=t.makeOwnerSwapper(n);return r(document.head),{run:function(e,t,i){e.noReSpecCSS?n.remove():n.ownerDocument!==t&&r(t.head),i()}}}),define("w3c/style",["core/utils","core/pubsubhub"],function(e,t){function n(e,t){var n=e.createElement("script"),r="https://www.w3.org/scripts/TR/{version}/fixup.js".replace("{version}",t);n.src=r,e.body.appendChild(n)}function r(){var t=document.createElement("meta");t.name="viewport";var n={width:"device-width","initial-scale":"1","shrink-to-fit":"no"};return t.content=e.toKeyValuePairs(n).replace(/\"/g,""),t}function i(e){var t="";switch(e){case null:case!0:t=(new Date).getFullYear().toString();break;default:e&&!isNaN(e)&&(t=e.toString().trim())}return t}function a(){var t=[{hint:"preconnect",href:"https://www.w3.org"},{hint:"preload",href:"https://www.w3.org/scripts/TR/2016/fixup.js",as:"script"},{hint:"preload",href:"https://www.w3.org/StyleSheets/TR/2016/base.css",as:"style"},{hint:"preload",href:"https://www.w3.org/StyleSheets/TR/2016/logos/W3C",as:"image"}].map(e.createResourceHint.bind(e)).reduce(function(e,t){return e.appendChild(t),e},document.createDocumentFragment());return t}var s=a();return document.head.querySelector("meta[name=viewport]")||s.insertBefore(r(),s.firstChild),document.head.insertBefore(s,document.head.firstChild),{run:function(r,a,s){if(!r.specStatus){var o="'specStatus' missing from ReSpec config. Defaulting to 'base'.";r.specStatus="base",t.pub("warn",o)}var l="https://www.w3.org/StyleSheets/TR/{version}",c="",u="W3C-";switch(r.specStatus.toUpperCase()){case"CG-DRAFT":case"CG-FINAL":case"BG-DRAFT":case"BG-FINAL":u=r.specStatus.toLowerCase();break;case"FPWD":case"LC":case"WD-NOTE":case"LC-NOTE":u+="WD";break;case"WG-NOTE":case"FPWD-NOTE":u+="WG-NOTE.css";break;case"UNOFFICIAL":u+="UD";break;case"FINDING":case"FINDING-DRAFT":case"BASE":u="base.css";break;default:u+=r.specStatus}var p=i(r.useExperimentalStyles||"2016");if(p)var d=t.sub("end-all",function(){n(a,p),t.unsub(d)});var h=p?p+"/":"";c=l.replace("{version}",h),c+=u,e.linkCSS(a,c),s()}}}),define("w3c/l10n",[],function(){var e={en:{this_version:"This version:",latest_published_version:"Latest published version:",latest_editors_draft:"Latest editor's draft:",editor:"Editor:",editors:"Editors:",author:"Author:",authors:"Authors:","abstract":"Abstract",sotd:"Status of This Document",status_at_publication:"This section describes the status of this document at the time of its publication. Other documents may supersede this document. A list of current W3C publications and the latest revision of this technical report can be found in the <a href='https://www.w3.org/TR/'>W3C technical reports index</a> at https://www.w3.org/TR/.",toc:"Table of Contents",note:"Note",fig:"Fig. ",bug_tracker:"Bug tracker:",file_a_bug:"file a bug",open_bugs:"open bugs",open_parens:"(",close_parens:")"},ko:{this_version:"현재 버전:",latest_published_version:"최신 버전:",latest_editors_draft:"Latest editor's draft:",editor:"Editor:",editors:"Editors:",author:"저자:",authors:"저자:","abstract":"요약",sotd:"현재 문서의 상태",status_at_publication:"This section describes the status of this document at the time of its publication. Other documents may supersede this document. A list of current W3C publications and the latest revision of this technical report can be found in the <a href='https://www.w3.org/TR/'>W3C technical reports index</a> at https://www.w3.org/TR/.",toc:"Table of Contents",note:"Note",fig:"그림 ",bug_tracker:"Bug tracker:",file_a_bug:"file a bug",open_bugs:"open bugs",open_parens:"(",close_parens:")"},zh:{this_version:"本版本:",latest_published_version:"最新发布草稿:",latest_editors_draft:"最新编辑草稿:",editor:"编辑:",editors:"编辑们:",author:"Author:",authors:"Authors:","abstract":"摘要",sotd:"关于本文档",status_at_publication:"本章节描述了本文档的发布状态。其它更新版本可能会覆盖本文档。W3C的文档列 表和最新版本可通过<a href='https://www.w3.org/TR/'>W3C技术报告</a>索引访问。",toc:"内容大纲",note:"注",fig:"圖",bug_tracker:"错误跟踪:",file_a_bug:"反馈错误",open_bugs:"修正中的错误",open_parens:"(",close_parens:")"},ja:{this_version:"このバージョン:",latest_published_version:"最新バージョン:",latest_editors_draft:"最新の編集用草案:",editor:"編者:",editors:"編者:",author:"著者:",authors:"著者:","abstract":"要約",sotd:"この文書の位置付け",status_at_publication:"この節には、公開時点でのこの文書の位置づけが記されている。他の文書によって置き換えられる可能性がある。現時点でのW3Cの発行文書とこのテクニカルレポートの最新版は、下記から参照できる。 <a href='https://www.w3.org/TR/'>W3C technical reports index</a> (https://www.w3.org/TR/)",toc:"目次",note:"注",fig:"図",bug_tracker:"バグの追跡履歴:",file_a_bug:"File a bug",open_bugs:"改修されていないバグ",open_parens:"(",close_parens:")"}};return e["zh-hans"]=e.zh,e["zh-cn"]=e.zh,{run:function(t,n,r){var i=$(n.documentElement).attr("lang")||"en";t.l10n=e[i]?e[i]:e.en,r()}}}),function(){function e(e){this.tokens=[],this.tokens.links={},this.options=e||c.defaults,this.rules=u.normal,this.options.gfm&&(this.options.tables?this.rules=u.tables:this.rules=u.gfm)}function t(e,t){if(this.options=t||c.defaults,this.links=e,this.rules=p.normal,this.renderer=this.options.renderer||new n,this.renderer.options=this.options,!this.links)throw new Error("Tokens array requires a `links` property.");this.options.gfm?this.options.breaks?this.rules=p.breaks:this.rules=p.gfm:this.options.pedantic&&(this.rules=p.pedantic)}function n(e){this.options=e||{}}function r(e){this.tokens=[],this.token=null,this.options=e||c.defaults,this.options.renderer=this.options.renderer||new n,this.renderer=this.options.renderer,this.renderer.options=this.options}function i(e,t){return e.replace(t?/&/g:/&(?!#?\w+;)/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function a(e){return e.replace(/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/g,function(e,t){return t=t.toLowerCase(),"colon"===t?":":"#"===t.charAt(0)?"x"===t.charAt(1)?String.fromCharCode(parseInt(t.substring(2),16)):String.fromCharCode(+t.substring(1)):""})}function s(e,t){return e=e.source,t=t||"",function n(r,i){return r?(i=i.source||i,i=i.replace(/(^|[^\[])\^/g,"$1"),e=e.replace(r,i),n):new RegExp(e,t)}}function o(){}function l(e){for(var t,n,r=1;r<arguments.length;r++){t=arguments[r];for(n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e}function c(t,n,a){if(a||"function"==typeof n){a||(a=n,n=null),n=l({},c.defaults,n||{});var s,o,u=n.highlight,p=0;try{s=e.lex(t,n)}catch(d){return a(d)}o=s.length;var h=function(e){if(e)return n.highlight=u,a(e);var t;try{t=r.parse(s,n)}catch(i){e=i}return n.highlight=u,e?a(e):a(null,t)};if(!u||u.length<3)return h();if(delete n.highlight,!o)return h();for(;p<s.length;p++)!function(e){return"code"!==e.type?--o||h():u(e.text,e.lang,function(t,n){return t?h(t):null==n||n===e.text?--o||h():(e.text=n,e.escaped=!0,void(--o||h()))})}(s[p])}else try{return n&&(n=l({},c.defaults,n)),r.parse(e.lex(t,n),n)}catch(d){if(d.message+="\nPlease report this to https://github.com/chjj/marked.",(n||c.defaults).silent)return"<p>An error occured:</p><pre>"+i(d.message+"",!0)+"</pre>";throw d}}var u={newline:/^\n+/,code:/^( {4}[^\n]+\n*)+/,fences:o,hr:/^( *[-*_]){3,} *(?:\n+|$)/,heading:/^ *(#{1,6}) *([^\n]+?) *#* *(?:\n+|$)/,nptable:o,lheading:/^([^\n]+)\n *(=|-){2,} *(?:\n+|$)/,blockquote:/^( *>[^\n]+(\n(?!def)[^\n]+)*\n*)+/,list:/^( *)(bull) [\s\S]+?(?:hr|def|\n{2,}(?! )(?!\1bull )\n*|\s*$)/,html:/^ *(?:comment *(?:\n|\s*$)|closed *(?:\n{2,}|\s*$)|closing *(?:\n{2,}|\s*$))/,def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +["(]([^\n]+)[")])? *(?:\n+|$)/,table:o,paragraph:/^((?:[^\n]+\n?(?!hr|heading|lheading|blockquote|tag|def))+)\n*/,text:/^[^\n]+/};u.bullet=/(?:[*+-]|\d+\.)/,u.item=/^( *)(bull) [^\n]*(?:\n(?!\1bull )[^\n]*)*/,u.item=s(u.item,"gm")(/bull/g,u.bullet)(),u.list=s(u.list)(/bull/g,u.bullet)("hr","\\n+(?=\\1?(?:[-*_] *){3,}(?:\\n+|$))")("def","\\n+(?="+u.def.source+")")(),u.blockquote=s(u.blockquote)("def",u.def)(),u._tag="(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:/|[^\\w\\s@]*@)\\b",u.html=s(u.html)("comment",/<!--[\s\S]*?-->/)("closed",/<(tag)[\s\S]+?<\/\1>/)("closing",/<tag(?:"[^"]*"|'[^']*'|[^'">])*?>/)(/tag/g,u._tag)(),u.paragraph=s(u.paragraph)("hr",u.hr)("heading",u.heading)("lheading",u.lheading)("blockquote",u.blockquote)("tag","<"+u._tag)("def",u.def)(),u.normal=l({},u),u.gfm=l({},u.normal,{fences:/^ *(`{3,}|~{3,})[ \.]*(\S+)? *\n([\s\S]*?)\s*\1 *(?:\n+|$)/,paragraph:/^/,heading:/^ *(#{1,6}) +([^\n]+?) *#* *(?:\n+|$)/}),u.gfm.paragraph=s(u.paragraph)("(?!","(?!"+u.gfm.fences.source.replace("\\1","\\2")+"|"+u.list.source.replace("\\1","\\3")+"|")(),u.tables=l({},u.gfm,{nptable:/^ *(\S.*\|.*)\n *([-:]+ *\|[-| :]*)\n((?:.*\|.*(?:\n|$))*)\n*/,table:/^ *\|(.+)\n *\|( *[-:]+[-| :]*)\n((?: *\|.*(?:\n|$))*)\n*/}),e.rules=u,e.lex=function(t,n){var r=new e(n);return r.lex(t)},e.prototype.lex=function(e){return e=e.replace(/\r\n|\r/g,"\n").replace(/\t/g," ").replace(/\u00a0/g," ").replace(/\u2424/g,"\n"),this.token(e,!0)},e.prototype.token=function(e,t,n){for(var r,i,a,s,o,l,c,p,d,e=e.replace(/^ +$/gm,"");e;)if((a=this.rules.newline.exec(e))&&(e=e.substring(a[0].length),a[0].length>1&&this.tokens.push({type:"space"})),a=this.rules.code.exec(e))e=e.substring(a[0].length),a=a[0].replace(/^ {4}/gm,""),this.tokens.push({type:"code",text:this.options.pedantic?a:a.replace(/\n+$/,"")});else if(a=this.rules.fences.exec(e))e=e.substring(a[0].length),this.tokens.push({type:"code",lang:a[2],text:a[3]||""});else if(a=this.rules.heading.exec(e))e=e.substring(a[0].length),this.tokens.push({type:"heading",depth:a[1].length,text:a[2]});else if(t&&(a=this.rules.nptable.exec(e))){for(e=e.substring(a[0].length),l={type:"table",header:a[1].replace(/^ *| *\| *$/g,"").split(/ *\| */),align:a[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:a[3].replace(/\n$/,"").split("\n")},p=0;p<l.align.length;p++)/^ *-+: *$/.test(l.align[p])?l.align[p]="right":/^ *:-+: *$/.test(l.align[p])?l.align[p]="center":/^ *:-+ *$/.test(l.align[p])?l.align[p]="left":l.align[p]=null;for(p=0;p<l.cells.length;p++)l.cells[p]=l.cells[p].split(/ *\| */);this.tokens.push(l)}else if(a=this.rules.lheading.exec(e))e=e.substring(a[0].length),this.tokens.push({type:"heading",depth:"="===a[2]?1:2,text:a[1]});else if(a=this.rules.hr.exec(e))e=e.substring(a[0].length),this.tokens.push({type:"hr"});else if(a=this.rules.blockquote.exec(e))e=e.substring(a[0].length),this.tokens.push({type:"blockquote_start"}),a=a[0].replace(/^ *> ?/gm,""),this.token(a,t,!0),this.tokens.push({type:"blockquote_end"});else if(a=this.rules.list.exec(e)){for(e=e.substring(a[0].length),s=a[2],this.tokens.push({type:"list_start",ordered:s.length>1}),a=a[0].match(this.rules.item),r=!1,d=a.length,p=0;d>p;p++)l=a[p],c=l.length,l=l.replace(/^ *([*+-]|\d+\.) +/,""),~l.indexOf("\n ")&&(c-=l.length,l=this.options.pedantic?l.replace(/^ {1,4}/gm,""):l.replace(new RegExp("^ {1,"+c+"}","gm"),"")),this.options.smartLists&&p!==d-1&&(o=u.bullet.exec(a[p+1])[0],s===o||s.length>1&&o.length>1||(e=a.slice(p+1).join("\n")+e,p=d-1)),i=r||/\n\n(?!\s*$)/.test(l),p!==d-1&&(r="\n"===l.charAt(l.length-1),i||(i=r)),this.tokens.push({type:i?"loose_item_start":"list_item_start"}),this.token(l,!1,n),this.tokens.push({type:"list_item_end"});this.tokens.push({type:"list_end"})}else if(a=this.rules.html.exec(e))e=e.substring(a[0].length),this.tokens.push({type:this.options.sanitize?"paragraph":"html",pre:!this.options.sanitizer&&("pre"===a[1]||"script"===a[1]||"style"===a[1]),text:a[0]});else if(!n&&t&&(a=this.rules.def.exec(e)))e=e.substring(a[0].length),this.tokens.links[a[1].toLowerCase()]={href:a[2],title:a[3]};else if(t&&(a=this.rules.table.exec(e))){for(e=e.substring(a[0].length),l={type:"table",header:a[1].replace(/^ *| *\| *$/g,"").split(/ *\| */),align:a[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:a[3].replace(/(?: *\| *)?\n$/,"").split("\n")},p=0;p<l.align.length;p++)/^ *-+: *$/.test(l.align[p])?l.align[p]="right":/^ *:-+: *$/.test(l.align[p])?l.align[p]="center":/^ *:-+ *$/.test(l.align[p])?l.align[p]="left":l.align[p]=null;for(p=0;p<l.cells.length;p++)l.cells[p]=l.cells[p].replace(/^ *\| *| *\| *$/g,"").split(/ *\| */);this.tokens.push(l)}else if(t&&(a=this.rules.paragraph.exec(e)))e=e.substring(a[0].length),this.tokens.push({type:"paragraph",text:"\n"===a[1].charAt(a[1].length-1)?a[1].slice(0,-1):a[1]});else if(a=this.rules.text.exec(e))e=e.substring(a[0].length),this.tokens.push({type:"text",text:a[0]});else if(e)throw new Error("Infinite loop on byte: "+e.charCodeAt(0));return this.tokens};var p={escape:/^\\([\\`*{}\[\]()#+\-.!_>])/,autolink:/^<([^ >]+(@|:\/)[^ >]+)>/,url:o,tag:/^<!--[\s\S]*?-->|^<\/?\w+(?:"[^"]*"|'[^']*'|[^'">])*?>/,link:/^!?\[(inside)\]\(href\)/,reflink:/^!?\[(inside)\]\s*\[([^\]]*)\]/,nolink:/^!?\[((?:\[[^\]]*\]|[^\[\]])*)\]/,strong:/^__([\s\S]+?)__(?!_)|^\*\*([\s\S]+?)\*\*(?!\*)/,em:/^\b_((?:[^_]|__)+?)_\b|^\*((?:\*\*|[\s\S])+?)\*(?!\*)/,code:/^(`+)\s*([\s\S]*?[^`])\s*\1(?!`)/,br:/^ {2,}\n(?!\s*$)/,del:o,text:/^[\s\S]+?(?=[\\<!\[_*`]| {2,}\n|$)/};p._inside=/(?:\[[^\]]*\]|[^\[\]]|\](?=[^\[]*\]))*/,p._href=/\s*<?([\s\S]*?)>?(?:\s+['"]([\s\S]*?)['"])?\s*/,p.link=s(p.link)("inside",p._inside)("href",p._href)(),p.reflink=s(p.reflink)("inside",p._inside)(),p.normal=l({},p),p.pedantic=l({},p.normal,{strong:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,em:/^_(?=\S)([\s\S]*?\S)_(?!_)|^\*(?=\S)([\s\S]*?\S)\*(?!\*)/}),p.gfm=l({},p.normal,{escape:s(p.escape)("])","~|])")(),url:/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,del:/^~~(?=\S)([\s\S]*?\S)~~/,text:s(p.text)("]|","~]|")("|","|https?://|")()}),p.breaks=l({},p.gfm,{br:s(p.br)("{2,}","*")(),text:s(p.gfm.text)("{2,}","*")()}),t.rules=p,t.output=function(e,n,r){var i=new t(n,r);return i.output(e)},t.prototype.output=function(e){for(var t,n,r,a,s="";e;)if(a=this.rules.escape.exec(e))e=e.substring(a[0].length),s+=a[1];else if(a=this.rules.autolink.exec(e))e=e.substring(a[0].length),"@"===a[2]?(n=":"===a[1].charAt(6)?this.mangle(a[1].substring(7)):this.mangle(a[1]),r=this.mangle("mailto:")+n):(n=i(a[1]),r=n),s+=this.renderer.link(r,null,n);else if(this.inLink||!(a=this.rules.url.exec(e))){if(a=this.rules.tag.exec(e))!this.inLink&&/^<a /i.test(a[0])?this.inLink=!0:this.inLink&&/^<\/a>/i.test(a[0])&&(this.inLink=!1),e=e.substring(a[0].length),s+=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(a[0]):i(a[0]):a[0];else if(a=this.rules.link.exec(e))e=e.substring(a[0].length),this.inLink=!0,s+=this.outputLink(a,{href:a[2],title:a[3]}),this.inLink=!1;else if((a=this.rules.reflink.exec(e))||(a=this.rules.nolink.exec(e))){if(e=e.substring(a[0].length),t=(a[2]||a[1]).replace(/\s+/g," "),t=this.links[t.toLowerCase()],!t||!t.href){s+=a[0].charAt(0),e=a[0].substring(1)+e;continue}this.inLink=!0,s+=this.outputLink(a,t),this.inLink=!1}else if(a=this.rules.strong.exec(e))e=e.substring(a[0].length),s+=this.renderer.strong(this.output(a[2]||a[1]));else if(a=this.rules.em.exec(e))e=e.substring(a[0].length),s+=this.renderer.em(this.output(a[2]||a[1]));else if(a=this.rules.code.exec(e))e=e.substring(a[0].length),s+=this.renderer.codespan(i(a[2],!0));else if(a=this.rules.br.exec(e))e=e.substring(a[0].length),s+=this.renderer.br();else if(a=this.rules.del.exec(e))e=e.substring(a[0].length),s+=this.renderer.del(this.output(a[1]));else if(a=this.rules.text.exec(e))e=e.substring(a[0].length),s+=this.renderer.text(i(this.smartypants(a[0])));else if(e)throw new Error("Infinite loop on byte: "+e.charCodeAt(0))}else e=e.substring(a[0].length),n=i(a[1]),r=n,s+=this.renderer.link(r,null,n);return s},t.prototype.outputLink=function(e,t){var n=i(t.href),r=t.title?i(t.title):null;return"!"!==e[0].charAt(0)?this.renderer.link(n,r,this.output(e[1])):this.renderer.image(n,r,i(e[1]))},t.prototype.smartypants=function(e){return this.options.smartypants?e.replace(/---/g,"—").replace(/--/g,"–").replace(/(^|[-\u2014\/(\[{"\s])'/g,"$1‘").replace(/'/g,"’").replace(/(^|[-\u2014\/(\[{\u2018\s])"/g,"$1“").replace(/"/g,"”").replace(/\.{3}/g,"…"):e},t.prototype.mangle=function(e){if(!this.options.mangle)return e;for(var t,n="",r=e.length,i=0;r>i;i++)t=e.charCodeAt(i),Math.random()>.5&&(t="x"+t.toString(16)),n+="&#"+t+";";return n},n.prototype.code=function(e,t,n){if(this.options.highlight){var r=this.options.highlight(e,t);null!=r&&r!==e&&(n=!0,e=r)}return t?'<pre><code class="'+this.options.langPrefix+i(t,!0)+'">'+(n?e:i(e,!0))+"\n</code></pre>\n":"<pre><code>"+(n?e:i(e,!0))+"\n</code></pre>"},n.prototype.blockquote=function(e){return"<blockquote>\n"+e+"</blockquote>\n"},n.prototype.html=function(e){return e},n.prototype.heading=function(e,t,n){return"<h"+t+' id="'+this.options.headerPrefix+n.toLowerCase().replace(/[^\w]+/g,"-")+'">'+e+"</h"+t+">\n"},n.prototype.hr=function(){return this.options.xhtml?"<hr/>\n":"<hr>\n"},n.prototype.list=function(e,t){var n=t?"ol":"ul";return"<"+n+">\n"+e+"</"+n+">\n"},n.prototype.listitem=function(e){return"<li>"+e+"</li>\n"},n.prototype.paragraph=function(e){return"<p>"+e+"</p>\n"},n.prototype.table=function(e,t){return"<table>\n<thead>\n"+e+"</thead>\n<tbody>\n"+t+"</tbody>\n</table>\n"},n.prototype.tablerow=function(e){return"<tr>\n"+e+"</tr>\n"},n.prototype.tablecell=function(e,t){var n=t.header?"th":"td",r=t.align?"<"+n+' style="text-align:'+t.align+'">':"<"+n+">";return r+e+"</"+n+">\n"},n.prototype.strong=function(e){return"<strong>"+e+"</strong>"},n.prototype.em=function(e){return"<em>"+e+"</em>"},n.prototype.codespan=function(e){return"<code>"+e+"</code>"},n.prototype.br=function(){return this.options.xhtml?"<br/>":"<br>"},n.prototype.del=function(e){return"<del>"+e+"</del>"},n.prototype.link=function(e,t,n){if(this.options.sanitize){try{var r=decodeURIComponent(a(e)).replace(/[^\w:]/g,"").toLowerCase()}catch(i){return""}if(0===r.indexOf("javascript:")||0===r.indexOf("vbscript:"))return""}var s='<a href="'+e+'"';return t&&(s+=' title="'+t+'"'),s+=">"+n+"</a>"},n.prototype.image=function(e,t,n){var r='<img src="'+e+'" alt="'+n+'"';return t&&(r+=' title="'+t+'"'),r+=this.options.xhtml?"/>":">"},n.prototype.text=function(e){return e},r.parse=function(e,t,n){var i=new r(t,n);return i.parse(e)},r.prototype.parse=function(e){this.inline=new t(e.links,this.options,this.renderer),this.tokens=e.reverse();for(var n="";this.next();)n+=this.tok();return n},r.prototype.next=function(){return this.token=this.tokens.pop()},r.prototype.peek=function(){return this.tokens[this.tokens.length-1]||0},r.prototype.parseText=function(){for(var e=this.token.text;"text"===this.peek().type;)e+="\n"+this.next().text;return this.inline.output(e)},r.prototype.tok=function(){switch(this.token.type){case"space":return"";case"hr":return this.renderer.hr();case"heading":return this.renderer.heading(this.inline.output(this.token.text),this.token.depth,this.token.text);case"code":return this.renderer.code(this.token.text,this.token.lang,this.token.escaped);case"table":var e,t,n,r,i,a="",s="";for(n="",e=0;e<this.token.header.length;e++)r={header:!0,align:this.token.align[e]},n+=this.renderer.tablecell(this.inline.output(this.token.header[e]),{header:!0,align:this.token.align[e]});for(a+=this.renderer.tablerow(n),e=0;e<this.token.cells.length;e++){for(t=this.token.cells[e],n="",i=0;i<t.length;i++)n+=this.renderer.tablecell(this.inline.output(t[i]),{header:!1,align:this.token.align[i]});s+=this.renderer.tablerow(n)}return this.renderer.table(a,s);case"blockquote_start":for(var s="";"blockquote_end"!==this.next().type;)s+=this.tok();return this.renderer.blockquote(s);case"list_start":for(var s="",o=this.token.ordered;"list_end"!==this.next().type;)s+=this.tok();return this.renderer.list(s,o);case"list_item_start":for(var s="";"list_item_end"!==this.next().type;)s+="text"===this.token.type?this.parseText():this.tok();return this.renderer.listitem(s);case"loose_item_start":for(var s="";"list_item_end"!==this.next().type;)s+=this.tok();return this.renderer.listitem(s);case"html":var l=this.token.pre||this.options.pedantic?this.token.text:this.inline.output(this.token.text);return this.renderer.html(l);case"paragraph":return this.renderer.paragraph(this.inline.output(this.token.text));case"text":return this.renderer.paragraph(this.parseText())}},o.exec=o,c.options=c.setOptions=function(e){return l(c.defaults,e),c},c.defaults={gfm:!0,tables:!0,breaks:!1,pedantic:!1,sanitize:!1,sanitizer:null,mangle:!0,smartLists:!1,silent:!1,highlight:null,langPrefix:"lang-",smartypants:!1,headerPrefix:"",renderer:new n,xhtml:!1},c.Parser=r,c.parser=r.parse,c.Renderer=n,c.Lexer=e,c.lexer=e.lex,c.InlineLexer=t,c.inlineLexer=t.output,c.parse=c,"undefined"!=typeof module&&"object"==typeof exports?module.exports=c:"function"==typeof define&&define.amd?define("deps/marked",[],function(){return c}):this.marked=c}.call(function(){return this||("undefined"!=typeof window?window:global)}()),function(e){var t="object"==typeof window&&window||"object"==typeof self&&self;"undefined"!=typeof exports?e(exports):t&&(t.hljs=e({}),"function"==typeof define&&define.amd&&define("deps/highlight",[],function(){return t.hljs}))}(function(e){function t(e){return e.replace(/[&<>]/gm,function(e){return N[e]})}function n(e){return e.nodeName.toLowerCase()}function r(e,t){var n=e&&e.exec(t);return n&&0===n.index}function i(e){return T.test(e)}function a(e){var t,n,r,a,s=e.className+" ";if(s+=e.parentNode?e.parentNode.className:"",n=S.exec(s))return w(n[1])?n[1]:"no-highlight";for(s=s.split(/\s+/),t=0,r=s.length;r>t;t++)if(a=s[t],i(a)||w(a))return a}function s(e,t){var n,r={};for(n in e)r[n]=e[n];if(t)for(n in t)r[n]=t[n];return r}function o(e){var t=[];return function r(e,i){for(var a=e.firstChild;a;a=a.nextSibling)3===a.nodeType?i+=a.nodeValue.length:1===a.nodeType&&(t.push({event:"start",offset:i,node:a}),i=r(a,i),n(a).match(/br|hr|img|input/)||t.push({event:"stop",offset:i,node:a}));return i}(e,0),t}function l(e,r,i){function a(){return e.length&&r.length?e[0].offset!==r[0].offset?e[0].offset<r[0].offset?e:r:"start"===r[0].event?e:r:e.length?e:r}function s(e){function r(e){return" "+e.nodeName+'="'+t(e.value)+'"'}u+="<"+n(e)+x.map.call(e.attributes,r).join("")+">"}function o(e){u+="</"+n(e)+">"}function l(e){("start"===e.event?s:o)(e.node)}for(var c=0,u="",p=[];e.length||r.length;){var d=a();if(u+=t(i.substr(c,d[0].offset-c)),c=d[0].offset,d===e){p.reverse().forEach(o);do l(d.splice(0,1)[0]),d=a();while(d===e&&d.length&&d[0].offset===c);p.reverse().forEach(s)}else"start"===d[0].event?p.push(d[0].node):p.pop(),l(d.splice(0,1)[0])}return u+t(i.substr(c))}function c(e){function t(e){return e&&e.source||e}function n(n,r){return new RegExp(t(n),"m"+(e.case_insensitive?"i":"")+(r?"g":""))}function r(i,a){if(!i.compiled){if(i.compiled=!0,i.keywords=i.keywords||i.beginKeywords,i.keywords){var o={},l=function(t,n){e.case_insensitive&&(n=n.toLowerCase()),n.split(" ").forEach(function(e){var n=e.split("|");o[n[0]]=[t,n[1]?Number(n[1]):1]})};"string"==typeof i.keywords?l("keyword",i.keywords):_(i.keywords).forEach(function(e){l(e,i.keywords[e])}),i.keywords=o}i.lexemesRe=n(i.lexemes||/\w+/,!0),a&&(i.beginKeywords&&(i.begin="\\b("+i.beginKeywords.split(" ").join("|")+")\\b"),i.begin||(i.begin=/\B|\b/),i.beginRe=n(i.begin),i.end||i.endsWithParent||(i.end=/\B|\b/),i.end&&(i.endRe=n(i.end)),i.terminator_end=t(i.end)||"",i.endsWithParent&&a.terminator_end&&(i.terminator_end+=(i.end?"|":"")+a.terminator_end)),i.illegal&&(i.illegalRe=n(i.illegal)),null==i.relevance&&(i.relevance=1),i.contains||(i.contains=[]);var c=[];i.contains.forEach(function(e){e.variants?e.variants.forEach(function(t){c.push(s(e,t))}):c.push("self"===e?i:e)}),i.contains=c,i.contains.forEach(function(e){r(e,i)}),i.starts&&r(i.starts,a);var u=i.contains.map(function(e){return e.beginKeywords?"\\.?("+e.begin+")\\.?":e.begin}).concat([i.terminator_end,i.illegal]).map(t).filter(Boolean);i.terminators=u.length?n(u.join("|"),!0):{exec:function(){return null}}}}r(e)}function u(e,n,i,a){function s(e,t){var n,i;for(n=0,i=t.contains.length;i>n;n++)if(r(t.contains[n].beginRe,e))return t.contains[n]}function o(e,t){if(r(e.endRe,t)){for(;e.endsParent&&e.parent;)e=e.parent;return e}return e.endsWithParent?o(e.parent,t):void 0}function l(e,t){return!i&&r(t.illegalRe,e)}function d(e,t){var n=y.case_insensitive?t[0].toLowerCase():t[0];return e.keywords.hasOwnProperty(n)&&e.keywords[n]}function h(e,t,n,r){var i=r?"":R.classPrefix,a='<span class="'+i,s=n?"":A;return a+=e+'">',a+t+s}function f(){var e,n,r,i;if(!_.keywords)return t(S);for(i="",n=0,_.lexemesRe.lastIndex=0,r=_.lexemesRe.exec(S);r;)i+=t(S.substr(n,r.index-n)),e=d(_,r),e?(C+=e[1],i+=h(e[0],t(r[0]))):i+=t(r[0]),n=_.lexemesRe.lastIndex,r=_.lexemesRe.exec(S);return i+t(S.substr(n))}function m(){var e="string"==typeof _.subLanguage;
if(e&&!k[_.subLanguage])return t(S);var n=e?u(_.subLanguage,S,!0,E[_.subLanguage]):p(S,_.subLanguage.length?_.subLanguage:void 0);return _.relevance>0&&(C+=n.relevance),e&&(E[_.subLanguage]=n.top),h(n.language,n.value,!1,!0)}function g(){T+=null!=_.subLanguage?m():f(),S=""}function b(e){T+=e.className?h(e.className,"",!0):"",_=Object.create(e,{parent:{value:_}})}function v(e,t){if(S+=e,null==t)return g(),0;var n=s(t,_);if(n)return n.skip?S+=t:(n.excludeBegin&&(S+=t),g(),n.returnBegin||n.excludeBegin||(S=t)),b(n,t),n.returnBegin?0:t.length;var r=o(_,t);if(r){var i=_;i.skip?S+=t:(i.returnEnd||i.excludeEnd||(S+=t),g(),i.excludeEnd&&(S=t));do _.className&&(T+=A),_.skip||(C+=_.relevance),_=_.parent;while(_!==r.parent);return r.starts&&b(r.starts,""),i.returnEnd?0:t.length}if(l(t,_))throw new Error('Illegal lexeme "'+t+'" for mode "'+(_.className||"<unnamed>")+'"');return S+=t,t.length||1}var y=w(e);if(!y)throw new Error('Unknown language: "'+e+'"');c(y);var x,_=a||y,E={},T="";for(x=_;x!==y;x=x.parent)x.className&&(T=h(x.className,"",!0)+T);var S="",C=0;try{for(var N,D,L=0;;){if(_.terminators.lastIndex=L,N=_.terminators.exec(n),!N)break;D=v(n.substr(L,N.index-L),N[0]),L=N.index+D}for(v(n.substr(L)),x=_;x.parent;x=x.parent)x.className&&(T+=A);return{relevance:C,value:T,language:e,top:_}}catch(P){if(P.message&&-1!==P.message.indexOf("Illegal"))return{relevance:0,value:t(n)};throw P}}function p(e,n){n=n||R.languages||_(k);var r={relevance:0,value:t(e)},i=r;return n.filter(w).forEach(function(t){var n=u(t,e,!1);n.language=t,n.relevance>i.relevance&&(i=n),n.relevance>r.relevance&&(i=r,r=n)}),i.language&&(r.second_best=i),r}function d(e){return R.tabReplace||R.useBR?e.replace(C,function(e,t){return R.useBR&&"\n"===e?"<br>":R.tabReplace?t.replace(/\t/g,R.tabReplace):void 0}):e}function h(e,t,n){var r=t?E[t]:n,i=[e.trim()];return e.match(/\bhljs\b/)||i.push("hljs"),-1===e.indexOf(r)&&i.push(r),i.join(" ").trim()}function f(e){var t,n,r,s,c,f=a(e);i(f)||(R.useBR?(t=document.createElementNS("http://www.w3.org/1999/xhtml","div"),t.innerHTML=e.innerHTML.replace(/\n/g,"").replace(/<br[ \/]*>/g,"\n")):t=e,c=t.textContent,r=f?u(f,c,!0):p(c),n=o(t),n.length&&(s=document.createElementNS("http://www.w3.org/1999/xhtml","div"),s.innerHTML=r.value,r.value=l(n,o(s),c)),r.value=d(r.value),e.innerHTML=r.value,e.className=h(e.className,f,r.language),e.result={language:r.language,re:r.relevance},r.second_best&&(e.second_best={language:r.second_best.language,re:r.second_best.relevance}))}function m(e){R=s(R,e)}function g(){if(!g.called){g.called=!0;var e=document.querySelectorAll("pre code");x.forEach.call(e,f)}}function b(){addEventListener("DOMContentLoaded",g,!1),addEventListener("load",g,!1)}function v(t,n){var r=k[t]=n(e);r.aliases&&r.aliases.forEach(function(e){E[e]=t})}function y(){return _(k)}function w(e){return e=(e||"").toLowerCase(),k[e]||k[E[e]]}var x=[],_=Object.keys,k={},E={},T=/^(no-?highlight|plain|text)$/i,S=/\blang(?:uage)?-([\w-]+)\b/i,C=/((^(<[^>]+>|\t|)+|(?:\n)))/gm,A="</span>",R={classPrefix:"hljs-",tabReplace:null,useBR:!1,languages:void 0},N={"&":"&","<":"<",">":">"};return e.highlight=u,e.highlightAuto=p,e.fixMarkup=d,e.highlightBlock=f,e.configure=m,e.initHighlighting=g,e.initHighlightingOnLoad=b,e.registerLanguage=v,e.listLanguages=y,e.getLanguage=w,e.inherit=s,e.IDENT_RE="[a-zA-Z]\\w*",e.UNDERSCORE_IDENT_RE="[a-zA-Z_]\\w*",e.NUMBER_RE="\\b\\d+(\\.\\d+)?",e.C_NUMBER_RE="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",e.BINARY_NUMBER_RE="\\b(0b[01]+)",e.RE_STARTERS_RE="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",e.BACKSLASH_ESCAPE={begin:"\\\\[\\s\\S]",relevance:0},e.APOS_STRING_MODE={className:"string",begin:"'",end:"'",illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},e.QUOTE_STRING_MODE={className:"string",begin:'"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},e.PHRASAL_WORDS_MODE={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|like)\b/},e.COMMENT=function(t,n,r){var i=e.inherit({className:"comment",begin:t,end:n,contains:[]},r||{});return i.contains.push(e.PHRASAL_WORDS_MODE),i.contains.push({className:"doctag",begin:"(?:TODO|FIXME|NOTE|BUG|XXX):",relevance:0}),i},e.C_LINE_COMMENT_MODE=e.COMMENT("//","$"),e.C_BLOCK_COMMENT_MODE=e.COMMENT("/\\*","\\*/"),e.HASH_COMMENT_MODE=e.COMMENT("#","$"),e.NUMBER_MODE={className:"number",begin:e.NUMBER_RE,relevance:0},e.C_NUMBER_MODE={className:"number",begin:e.C_NUMBER_RE,relevance:0},e.BINARY_NUMBER_MODE={className:"number",begin:e.BINARY_NUMBER_RE,relevance:0},e.CSS_NUMBER_MODE={className:"number",begin:e.NUMBER_RE+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},e.REGEXP_MODE={className:"regexp",begin:/\//,end:/\/[gimuy]*/,illegal:/\n/,contains:[e.BACKSLASH_ESCAPE,{begin:/\[/,end:/\]/,relevance:0,contains:[e.BACKSLASH_ESCAPE]}]},e.TITLE_MODE={className:"title",begin:e.IDENT_RE,relevance:0},e.UNDERSCORE_TITLE_MODE={className:"title",begin:e.UNDERSCORE_IDENT_RE,relevance:0},e.METHOD_GUARD={begin:"\\.\\s*"+e.UNDERSCORE_IDENT_RE,relevance:0},e.registerLanguage("css",function(e){var t="[a-zA-Z-][a-zA-Z0-9_-]*",n={begin:/[A-Z\_\.\-]+\s*:/,returnBegin:!0,end:";",endsWithParent:!0,contains:[{className:"attribute",begin:/\S/,end:":",excludeEnd:!0,starts:{endsWithParent:!0,excludeEnd:!0,contains:[{begin:/[\w-]+\(/,returnBegin:!0,contains:[{className:"built_in",begin:/[\w-]+/},{begin:/\(/,end:/\)/,contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]}]},e.CSS_NUMBER_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,e.C_BLOCK_COMMENT_MODE,{className:"number",begin:"#[0-9A-Fa-f]+"},{className:"meta",begin:"!important"}]}}]};return{case_insensitive:!0,illegal:/[=\/|'\$]/,contains:[e.C_BLOCK_COMMENT_MODE,{className:"selector-id",begin:/#[A-Za-z0-9_-]+/},{className:"selector-class",begin:/\.[A-Za-z0-9_-]+/},{className:"selector-attr",begin:/\[/,end:/\]/,illegal:"$"},{className:"selector-pseudo",begin:/:(:)?[a-zA-Z0-9\_\-\+\(\)"'.]+/},{begin:"@(font-face|page)",lexemes:"[a-z-]+",keywords:"font-face page"},{begin:"@",end:"[{;]",illegal:/:/,contains:[{className:"keyword",begin:/\w+/},{begin:/\s/,endsWithParent:!0,excludeEnd:!0,relevance:0,contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.CSS_NUMBER_MODE]}]},{className:"selector-tag",begin:t,relevance:0},{begin:"{",end:"}",illegal:/\S/,contains:[e.C_BLOCK_COMMENT_MODE,n]}]}}),e.registerLanguage("http",function(e){var t="HTTP/[0-9\\.]+";return{aliases:["https"],illegal:"\\S",contains:[{begin:"^"+t,end:"$",contains:[{className:"number",begin:"\\b\\d{3}\\b"}]},{begin:"^[A-Z]+ (.*?) "+t+"$",returnBegin:!0,end:"$",contains:[{className:"string",begin:" ",end:" ",excludeBegin:!0,excludeEnd:!0},{begin:t},{className:"keyword",begin:"[A-Z]+"}]},{className:"attribute",begin:"^\\w",end:": ",excludeEnd:!0,illegal:"\\n|\\s|=",starts:{end:"$",relevance:0}},{begin:"\\n\\n",starts:{subLanguage:[],endsWithParent:!0}}]}}),e.registerLanguage("javascript",function(e){return{aliases:["js","jsx"],keywords:{keyword:"in of if for while finally var new function do return void else break catch instanceof with throw case default try this switch continue typeof delete let yield const export super debugger as async await static import from as",literal:"true false null undefined NaN Infinity",built_in:"eval isFinite isNaN parseFloat parseInt decodeURI decodeURIComponent encodeURI encodeURIComponent escape unescape Object Function Boolean Error EvalError InternalError RangeError ReferenceError StopIteration SyntaxError TypeError URIError Number Math Date String RegExp Array Float32Array Float64Array Int16Array Int32Array Int8Array Uint16Array Uint32Array Uint8Array Uint8ClampedArray ArrayBuffer DataView JSON Intl arguments require module console window document Symbol Set Map WeakSet WeakMap Proxy Reflect Promise"},contains:[{className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},{className:"meta",begin:/^#!/,end:/$/},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{className:"string",begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,{className:"subst",begin:"\\$\\{",end:"\\}"}]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"number",variants:[{begin:"\\b(0[bB][01]+)"},{begin:"\\b(0[oO][0-7]+)"},{begin:e.C_NUMBER_RE}],relevance:0},{begin:"("+e.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.REGEXP_MODE,{begin:/</,end:/(\/\w+|\w+\/)>/,subLanguage:"xml",contains:[{begin:/<\w+\s*\/>/,skip:!0},{begin:/<\w+/,end:/(\/\w+|\w+\/)>/,skip:!0,contains:["self"]}]}],relevance:0},{className:"function",beginKeywords:"function",end:/\{/,excludeEnd:!0,contains:[e.inherit(e.TITLE_MODE,{begin:/[A-Za-z$_][0-9A-Za-z$_]*/}),{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]}],illegal:/\[|%/},{begin:/\$[(.]/},e.METHOD_GUARD,{className:"class",beginKeywords:"class",end:/[{;=]/,excludeEnd:!0,illegal:/[:"\[\]]/,contains:[{beginKeywords:"extends"},e.UNDERSCORE_TITLE_MODE]},{beginKeywords:"constructor",end:/\{/,excludeEnd:!0}],illegal:/#(?!!)/}}),e.registerLanguage("xml",function(e){var t="[A-Za-z0-9\\._:-]+",n={endsWithParent:!0,illegal:/</,relevance:0,contains:[{className:"attr",begin:t,relevance:0},{begin:/=\s*/,relevance:0,contains:[{className:"string",endsParent:!0,variants:[{begin:/"/,end:/"/},{begin:/'/,end:/'/},{begin:/[^\s"'=<>`]+/}]}]}]};return{aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist"],case_insensitive:!0,contains:[{className:"meta",begin:"<!DOCTYPE",end:">",relevance:10,contains:[{begin:"\\[",end:"\\]"}]},e.COMMENT("<!--","-->",{relevance:10}),{begin:"<\\!\\[CDATA\\[",end:"\\]\\]>",relevance:10},{begin:/<\?(php)?/,end:/\?>/,subLanguage:"php",contains:[{begin:"/\\*",end:"\\*/",skip:!0}]},{className:"tag",begin:"<style(?=\\s|>|$)",end:">",keywords:{name:"style"},contains:[n],starts:{end:"</style>",returnEnd:!0,subLanguage:["css","xml"]}},{className:"tag",begin:"<script(?=\\s|>|$)",end:">",keywords:{name:"script"},contains:[n],starts:{end:"</script>",returnEnd:!0,subLanguage:["actionscript","javascript","handlebars","xml"]}},{className:"meta",variants:[{begin:/<\?xml/,end:/\?>/,relevance:10},{begin:/<\?\w+/,end:/\?>/}]},{className:"tag",begin:"</?",end:"/?>",contains:[{className:"name",begin:/[^\/><\s]+/,relevance:0},n]}]}}),e.registerLanguage("markdown",function(e){return{aliases:["md","mkdown","mkd"],contains:[{className:"section",variants:[{begin:"^#{1,6}",end:"$"},{begin:"^.+?\\n[=-]{2,}$"}]},{begin:"<",end:">",subLanguage:"xml",relevance:0},{className:"bullet",begin:"^([*+-]|(\\d+\\.))\\s+"},{className:"strong",begin:"[*_]{2}.+?[*_]{2}"},{className:"emphasis",variants:[{begin:"\\*.+?\\*"},{begin:"_.+?_",relevance:0}]},{className:"quote",begin:"^>\\s+",end:"$"},{className:"code",variants:[{begin:"^```w*s*$",end:"^```s*$"},{begin:"`.+?`"},{begin:"^( {4}| )",end:"$",relevance:0}]},{begin:"^[-\\*]{3,}",end:"$"},{begin:"\\[.+?\\][\\(\\[].*?[\\)\\]]",returnBegin:!0,contains:[{className:"string",begin:"\\[",end:"\\]",excludeBegin:!0,returnEnd:!0,relevance:0},{className:"link",begin:"\\]\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0},{className:"symbol",begin:"\\]\\[",end:"\\]",excludeBegin:!0,excludeEnd:!0}],relevance:10},{begin:/^\[[^\n]+\]:/,returnBegin:!0,contains:[{className:"symbol",begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0},{className:"link",begin:/:\s*/,end:/$/,excludeBegin:!0}]}]}}),e.registerLanguage("xquery",function(e){var t="for let if while then else return where group by xquery encoding versionmodule namespace boundary-space preserve strip default collation base-uri orderingcopy-namespaces order declare import schema namespace function option in allowing emptyat tumbling window sliding window start when only end when previous next stable ascendingdescending empty greatest least some every satisfies switch case typeswitch try catch andor to union intersect instance of treat as castable cast map array delete insert intoreplace value rename copy modify update",n="false true xs:string xs:integer element item xs:date xs:datetime xs:float xs:double xs:decimal QName xs:anyURI xs:long xs:int xs:short xs:byte attribute",r={begin:/\$[a-zA-Z0-9\-]+/},i={className:"number",begin:"(\\b0[0-7_]+)|(\\b0x[0-9a-fA-F_]+)|(\\b[1-9][0-9_]*(\\.[0-9_]+)?)|[0_]\\b",relevance:0},a={className:"string",variants:[{begin:/"/,end:/"/,contains:[{begin:/""/,relevance:0}]},{begin:/'/,end:/'/,contains:[{begin:/''/,relevance:0}]}]},s={className:"meta",begin:"%\\w+"},o={className:"comment",begin:"\\(:",end:":\\)",relevance:10,contains:[{className:"doctag",begin:"@\\w+"}]},l={begin:"{",end:"}"},c=[r,a,i,o,s,l];return l.contains=c,{aliases:["xpath","xq"],case_insensitive:!1,lexemes:/[a-zA-Z\$][a-zA-Z0-9_:\-]*/,illegal:/(proc)|(abstract)|(extends)|(until)|(#)/,keywords:{keyword:t,literal:n},contains:c}}),e}),Object.values||(Object.values=function(e){if(e!==Object(e))throw new TypeError("Object.values called on a non-object");var t,n=[];for(t in e)Object.prototype.hasOwnProperty.call(e,t)&&n.push(e[t]);return n}),function(){function e(e,t){function n(e,t){for(var n=0;n<t.length;n+=1)if(t[n]===e)return!0;return!1}function r(e){return e.replace(/^\s+|\s+$/g,"")}function i(e){return e.replace(/^\s+/g,"")}function a(e){e=e||p.before_newline;var t=Object.values(p);if(!n(e,t))throw new Error("Invalid Option Value: The option 'operator_position' must be one of the following values\n"+t+"\nYou passed in: '"+e+"'");return e}function s(e,t){"use strict";function s(e,t){var n=0;e&&(n=e.indentation_level,!z.just_added_newline()&&e.line_indent_level>n&&(n=e.line_indent_level));var r={mode:t,parent:e,last_text:e?e.last_text:"",last_word:e?e.last_word:"",declaration_statement:!1,declaration_assignment:!1,multiline_frame:!1,inline_frame:!1,if_block:!1,else_block:!1,do_block:!1,do_while:!1,import_block:!1,in_case_statement:!1,in_case:!1,case_body:!1,indentation_level:n,line_indent_level:e?e.line_indent_level:n,start_line_index:z.get_line_number(),ternary_depth:0};return r}function o(e){var t=e.newlines,n=ie.keep_array_indentation&&_(J.mode);if(n)for(var r=0;t>r;r+=1)g(r>0);else if(ie.max_preserve_newlines&&t>ie.max_preserve_newlines&&(t=ie.max_preserve_newlines),ie.preserve_newlines&&e.newlines>1){g();for(var i=1;t>i;i+=1)g(!0)}X=e,re[X.type]()}function f(e){e=e.replace(u.allLineBreaks,"\n");for(var t=[],n=e.indexOf("\n");-1!==n;)t.push(e.substring(0,n)),e=e.substring(n+1),n=e.indexOf("\n");return e.length&&t.push(e),t}function m(e){if(e=void 0===e?!1:e,!z.just_added_newline()){var t=ie.preserve_newlines&&X.wanted_newline||e,r=n(J.last_text,G.positionable_operators)||n(X.text,G.positionable_operators);if(r){var i=n(J.last_text,G.positionable_operators)&&n(ie.operator_position,d)||n(X.text,G.positionable_operators);t=t&&i}if(t)g(!1,!0);else if(ie.wrap_line_length){if("TK_RESERVED"===Y&&n(J.last_text,le))return;var a=z.current_line.get_character_count()+X.text.length+(z.space_before_token?1:0);a>=ie.wrap_line_length&&g(!1,!0)}}}function g(e,t){if(!t&&";"!==J.last_text&&","!==J.last_text&&"="!==J.last_text&&"TK_OPERATOR"!==Y)for(;J.mode===h.Statement&&!J.if_block&&!J.do_block;)E();z.add_new_line(e)&&(J.multiline_frame=!0)}function b(){z.just_added_newline()&&(ie.keep_array_indentation&&_(J.mode)&&X.wanted_newline?(z.current_line.push(X.whitespace_before),z.space_before_token=!1):z.set_indent(J.indentation_level)&&(J.line_indent_level=J.indentation_level))}function v(e){if(z.raw)return void z.add_raw_token(X);if(ie.comma_first&&"TK_COMMA"===Y&&z.just_added_newline()&&","===z.previous_line.last()){var t=z.previous_line.pop();z.previous_line.is_empty()&&(z.previous_line.push(t),z.trim(!0),z.current_line.pop(),z.trim()),b(),z.add_token(","),z.space_before_token=!0}e=e||X.text,b(),z.add_token(e)}function y(){J.indentation_level+=1}function w(){J.indentation_level>0&&(!J.parent||J.indentation_level>J.parent.indentation_level)&&(J.indentation_level-=1)}function x(e){J?(te.push(J),ee=J):ee=s(null,e),J=s(ee,e)}function _(e){return e===h.ArrayLiteral}function k(e){return n(e,[h.Expression,h.ForInitializer,h.Conditional])}function E(){te.length>0&&(ee=J,J=te.pop(),ee.mode===h.Statement&&z.remove_redundant_indentation(ee))}function T(){return J.parent.mode===h.ObjectLiteral&&J.mode===h.Statement&&(":"===J.last_text&&0===J.ternary_depth||"TK_RESERVED"===Y&&n(J.last_text,["get","set"]))}function S(){return"TK_RESERVED"===Y&&n(J.last_text,["var","let","const"])&&"TK_WORD"===X.type||"TK_RESERVED"===Y&&"do"===J.last_text||"TK_RESERVED"===Y&&n(J.last_text,["return","throw"])&&!X.wanted_newline||"TK_RESERVED"===Y&&"else"===J.last_text&&("TK_RESERVED"!==X.type||"if"!==X.text)||"TK_END_EXPR"===Y&&(ee.mode===h.ForInitializer||ee.mode===h.Conditional)||"TK_WORD"===Y&&J.mode===h.BlockStatement&&!J.in_case&&"--"!==X.text&&"++"!==X.text&&"function"!==Q&&"TK_WORD"!==X.type&&"TK_RESERVED"!==X.type||J.mode===h.ObjectLiteral&&(":"===J.last_text&&0===J.ternary_depth||"TK_RESERVED"===Y&&n(J.last_text,["get","set"]))?(x(h.Statement),y(),"TK_RESERVED"===Y&&n(J.last_text,["var","let","const"])&&"TK_WORD"===X.type&&(J.declaration_statement=!0),T()||m("TK_RESERVED"===X.type&&n(X.text,["do","for","if","while"])),!0):!1}function C(e,t){for(var n=0;n<e.length;n++){var i=r(e[n]);if(i.charAt(0)!==t)return!1}return!0}function A(e,t){for(var n,r=0,i=e.length;i>r;r++)if(n=e[r],n&&0!==n.indexOf(t))return!1;return!0}function R(e){return n(e,["case","return","do","if","throw","else"])}function N(e){var t=V+(e||0);return 0>t||t>=ae.length?null:ae[t]}function D(){S();var e=h.Expression;if("["===X.text){if("TK_WORD"===Y||")"===J.last_text)return"TK_RESERVED"===Y&&n(J.last_text,G.line_starters)&&(z.space_before_token=!0),x(e),v(),y(),void(ie.space_in_paren&&(z.space_before_token=!0));e=h.ArrayLiteral,_(J.mode)&&("["===J.last_text||","===J.last_text&&("]"===Q||"}"===Q))&&(ie.keep_array_indentation||g())}else"TK_RESERVED"===Y&&"for"===J.last_text?e=h.ForInitializer:"TK_RESERVED"===Y&&n(J.last_text,["if","while"])&&(e=h.Conditional);";"===J.last_text||"TK_START_BLOCK"===Y?g():"TK_END_EXPR"===Y||"TK_START_EXPR"===Y||"TK_END_BLOCK"===Y||"."===J.last_text?m(X.wanted_newline):"TK_RESERVED"===Y&&"("===X.text||"TK_WORD"===Y||"TK_OPERATOR"===Y?"TK_RESERVED"===Y&&("function"===J.last_word||"typeof"===J.last_word)||"*"===J.last_text&&"function"===Q?ie.space_after_anon_function&&(z.space_before_token=!0):"TK_RESERVED"!==Y||!n(J.last_text,G.line_starters)&&"catch"!==J.last_text||ie.space_before_conditional&&(z.space_before_token=!0):z.space_before_token=!0,"("===X.text&&"TK_RESERVED"===Y&&"await"===J.last_word&&(z.space_before_token=!0),"("===X.text&&("TK_EQUALS"===Y||"TK_OPERATOR"===Y)&&(T()||m()),"("===X.text&&"TK_WORD"!==Y&&"TK_RESERVED"!==Y&&m(),x(e),v(),ie.space_in_paren&&(z.space_before_token=!0),y()}function L(){for(;J.mode===h.Statement;)E();J.multiline_frame&&m("]"===X.text&&_(J.mode)&&!ie.keep_array_indentation),ie.space_in_paren&&("TK_START_EXPR"!==Y||ie.space_in_empty_paren?z.space_before_token=!0:(z.trim(),z.space_before_token=!1)),"]"===X.text&&ie.keep_array_indentation?(v(),E()):(E(),v()),z.remove_redundant_indentation(ee),J.do_while&&ee.mode===h.Conditional&&(ee.mode=h.Expression,J.do_block=!1,J.do_while=!1)}function P(){var e=N(1),t=N(2);x(t&&(n(t.text,[":",","])&&n(e.type,["TK_STRING","TK_WORD","TK_RESERVED"])||n(e.text,["get","set"])&&n(t.type,["TK_WORD","TK_RESERVED"]))?n(Q,["class","interface"])?h.BlockStatement:h.ObjectLiteral:"TK_OPERATOR"===Y&&"=>"===J.last_text?h.BlockStatement:n(Y,["TK_EQUALS","TK_START_EXPR","TK_COMMA","TK_OPERATOR"])||"TK_RESERVED"===Y&&n(J.last_text,["return","throw","import"])?h.ObjectLiteral:h.BlockStatement);var r=!e.comments_before.length&&"}"===e.text,i=r&&"function"===J.last_word&&"TK_END_EXPR"===Y;if("expand"===ie.brace_style||"none"===ie.brace_style&&X.wanted_newline)"TK_OPERATOR"!==Y&&(i||"TK_EQUALS"===Y||"TK_RESERVED"===Y&&R(J.last_text)&&"else"!==J.last_text)?z.space_before_token=!0:g(!1,!0);else{if("collapse-preserve-inline"===ie.brace_style){var a=0,s=null;J.inline_frame=!0;do if(a+=1,s=N(a),s.wanted_newline){J.inline_frame=!1;break}while("TK_EOF"!==s.type&&("TK_END_BLOCK"!==s.type||s.opened!==X))}!_(ee.mode)||"TK_START_EXPR"!==Y&&"TK_COMMA"!==Y?"TK_OPERATOR"!==Y&&"TK_START_EXPR"!==Y&&("TK_START_BLOCK"===Y?g():z.space_before_token=!0):(("TK_COMMA"===Y||ie.space_in_paren)&&(z.space_before_token=!0),"collapse-preserve-inline"===ie.brace_style&&("TK_COMMA"===Y||"TK_START_EXPR"===Y&&J.inline_frame)&&(m(),ee.multiline_frame=ee.multiline_frame||J.multiline_frame,J.multiline_frame=!1))}v(),y()}function I(){for(;J.mode===h.Statement;)E();var e="TK_START_BLOCK"===Y;"expand"===ie.brace_style?e||g():e||(J.inline_frame?z.space_before_token=!0:_(J.mode)&&ie.keep_array_indentation?(ie.keep_array_indentation=!1,g(),ie.keep_array_indentation=!0):g()),E(),v()}function O(){if("TK_RESERVED"===X.type)if(n(X.text,["set","get"])&&J.mode!==h.ObjectLiteral)X.type="TK_WORD";else if(n(X.text,["as","from"])&&!J.import_block)X.type="TK_WORD";else if(J.mode===h.ObjectLiteral){var e=N(1);":"===e.text&&(X.type="TK_WORD")}if(S()||!X.wanted_newline||k(J.mode)||"TK_OPERATOR"===Y&&"--"!==J.last_text&&"++"!==J.last_text||"TK_EQUALS"===Y||!ie.preserve_newlines&&"TK_RESERVED"===Y&&n(J.last_text,["var","let","const","set","get"])||g(),J.do_block&&!J.do_while){if("TK_RESERVED"===X.type&&"while"===X.text)return z.space_before_token=!0,v(),z.space_before_token=!0,void(J.do_while=!0);g(),J.do_block=!1}if(J.if_block)if(J.else_block||"TK_RESERVED"!==X.type||"else"!==X.text){for(;J.mode===h.Statement;)E();J.if_block=!1,J.else_block=!1}else J.else_block=!0;if("TK_RESERVED"===X.type&&("case"===X.text||"default"===X.text&&J.in_case_statement))return g(),(J.case_body||ie.jslint_happy)&&(w(),J.case_body=!1),v(),J.in_case=!0,void(J.in_case_statement=!0);if("TK_RESERVED"===X.type&&"function"===X.text&&((n(J.last_text,["}",";"])||z.just_added_newline()&&!n(J.last_text,["[","{",":","=",","]))&&(z.just_added_blankline()||X.comments_before.length||(g(),g(!0))),"TK_RESERVED"===Y||"TK_WORD"===Y?"TK_RESERVED"===Y&&n(J.last_text,["get","set","new","return","export","async"])?z.space_before_token=!0:"TK_RESERVED"===Y&&"default"===J.last_text&&"export"===Q?z.space_before_token=!0:g():"TK_OPERATOR"===Y||"="===J.last_text?z.space_before_token=!0:(J.multiline_frame||!k(J.mode)&&!_(J.mode))&&g()),("TK_COMMA"===Y||"TK_START_EXPR"===Y||"TK_EQUALS"===Y||"TK_OPERATOR"===Y)&&(T()||m()),"TK_RESERVED"===X.type&&n(X.text,["function","get","set"]))return v(),void(J.last_word=X.text);if(ne="NONE","TK_END_BLOCK"===Y?"TK_RESERVED"===X.type&&n(X.text,["else","catch","finally","from"])?"expand"===ie.brace_style||"end-expand"===ie.brace_style||"none"===ie.brace_style&&X.wanted_newline?ne="NEWLINE":(ne="SPACE",z.space_before_token=!0):ne="NEWLINE":"TK_SEMICOLON"===Y&&J.mode===h.BlockStatement?ne="NEWLINE":"TK_SEMICOLON"===Y&&k(J.mode)?ne="SPACE":"TK_STRING"===Y?ne="NEWLINE":"TK_RESERVED"===Y||"TK_WORD"===Y||"*"===J.last_text&&"function"===Q?ne="SPACE":"TK_START_BLOCK"===Y?ne=J.inline_frame?"SPACE":"NEWLINE":"TK_END_EXPR"===Y&&(z.space_before_token=!0,ne="NEWLINE"),"TK_RESERVED"===X.type&&n(X.text,G.line_starters)&&")"!==J.last_text&&(ne="else"===J.last_text||"export"===J.last_text?"SPACE":"NEWLINE"),"TK_RESERVED"===X.type&&n(X.text,["else","catch","finally"]))if("TK_END_BLOCK"!==Y||ee.mode!==h.BlockStatement||"expand"===ie.brace_style||"end-expand"===ie.brace_style||"none"===ie.brace_style&&X.wanted_newline)g();else{z.trim(!0);var t=z.current_line;"}"!==t.last()&&g(),z.space_before_token=!0}else"NEWLINE"===ne?"TK_RESERVED"===Y&&R(J.last_text)?z.space_before_token=!0:"TK_END_EXPR"!==Y?"TK_START_EXPR"===Y&&"TK_RESERVED"===X.type&&n(X.text,["var","let","const"])||":"===J.last_text||("TK_RESERVED"===X.type&&"if"===X.text&&"else"===J.last_text?z.space_before_token=!0:g()):"TK_RESERVED"===X.type&&n(X.text,G.line_starters)&&")"!==J.last_text&&g():J.multiline_frame&&_(J.mode)&&","===J.last_text&&"}"===Q?g():"SPACE"===ne&&(z.space_before_token=!0);v(),J.last_word=X.text,"TK_RESERVED"===X.type&&("do"===X.text?J.do_block=!0:"if"===X.text?J.if_block=!0:"import"===X.text?J.import_block=!0:J.import_block&&"TK_RESERVED"===X.type&&"from"===X.text&&(J.import_block=!1))}function j(){for(S()&&(z.space_before_token=!1);J.mode===h.Statement&&!J.if_block&&!J.do_block;)E();J.import_block&&(J.import_block=!1),v()}function M(){S()?z.space_before_token=!0:"TK_RESERVED"===Y||"TK_WORD"===Y||J.inline_frame?z.space_before_token=!0:"TK_COMMA"===Y||"TK_START_EXPR"===Y||"TK_EQUALS"===Y||"TK_OPERATOR"===Y?T()||m():g(),v()}function $(){S(),J.declaration_statement&&(J.declaration_assignment=!0),z.space_before_token=!0,v(),z.space_before_token=!0}function B(){v(),z.space_before_token=!0,J.declaration_statement?(k(J.parent.mode)&&(J.declaration_assignment=!1),J.declaration_assignment?(J.declaration_assignment=!1,g(!1,!0)):ie.comma_first&&m()):J.mode===h.ObjectLiteral||J.mode===h.Statement&&J.parent.mode===h.ObjectLiteral?(J.mode===h.Statement&&E(),J.inline_frame||g()):ie.comma_first&&m()}function F(){if(S(),"TK_RESERVED"===Y&&R(J.last_text))return z.space_before_token=!0,void v();if("*"===X.text&&"TK_DOT"===Y)return void v();if("::"===X.text)return void v();if("TK_OPERATOR"===Y&&n(ie.operator_position,d)&&m(),":"===X.text&&J.in_case)return J.case_body=!0,y(),v(),g(),void(J.in_case=!1);var e=!0,t=!0,r=!1,i="*"===X.text&&"TK_RESERVED"===Y&&"function"===J.last_text,a=n(X.text,["-","+"])&&(n(Y,["TK_START_BLOCK","TK_START_EXPR","TK_EQUALS","TK_OPERATOR"])||n(J.last_text,G.line_starters)||","===J.last_text);if(":"===X.text?0===J.ternary_depth?e=!1:(J.ternary_depth-=1,r=!0):"?"===X.text&&(J.ternary_depth+=1),!a&&!i&&ie.preserve_newlines&&n(X.text,G.positionable_operators)){var s=":"===X.text,o=s&&r,l=s&&!r;switch(ie.operator_position){case p.before_newline:return z.space_before_token=!l,v(),(!s||o)&&m(),void(z.space_before_token=!0);case p.after_newline:return z.space_before_token=!0,!s||o?N(1).wanted_newline?g(!1,!0):m():z.space_before_token=!1,v(),void(z.space_before_token=!0);case p.preserve_newline:return l||m(),e=!(z.just_added_newline()||l),z.space_before_token=e,v(),void(z.space_before_token=!0)}}n(X.text,["--","++","!","~"])||a?(e=!1,t=!1,!X.wanted_newline||"--"!==X.text&&"++"!==X.text||g(!1,!0),";"===J.last_text&&k(J.mode)&&(e=!0),"TK_RESERVED"===Y?e=!0:"TK_END_EXPR"===Y?e=!("]"===J.last_text&&("--"===X.text||"++"===X.text)):"TK_OPERATOR"===Y&&(e=n(X.text,["--","-","++","+"])&&n(J.last_text,["--","-","++","+"]),n(X.text,["+","-"])&&n(J.last_text,["--","++"])&&(t=!0)),(J.mode!==h.BlockStatement||J.inline_frame)&&J.mode!==h.Statement||"{"!==J.last_text&&";"!==J.last_text||g()):i&&(e=!1,t=!1),z.space_before_token=z.space_before_token||e,v(),z.space_before_token=t}function q(){if(z.raw)return z.add_raw_token(X),void(X.directives&&"end"===X.directives.preserve&&(z.raw=ie.test_output_raw));if(X.directives)return g(!1,!0),v(),"start"===X.directives.preserve&&(z.raw=!0),void g(!1,!0);if(!u.newline.test(X.text)&&!X.wanted_newline)return z.space_before_token=!0,v(),void(z.space_before_token=!0);var e,t=f(X.text),n=!1,r=!1,a=X.whitespace_before,s=a.length;for(g(!1,!0),t.length>1&&(n=C(t.slice(1),"*"),r=A(t.slice(1),a)),v(t[0]),e=1;e<t.length;e++)g(!1,!0),n?v(" "+i(t[e])):r&&t[e].length>s?v(t[e].substring(s)):z.add_token(t[e]);g(!1,!0)}function H(){X.wanted_newline?g(!1,!0):z.trim(!0),z.space_before_token=!0,v(),g(!1,!0)}function U(){S(),"TK_RESERVED"===Y&&R(J.last_text)?z.space_before_token=!0:m(")"===J.last_text&&ie.break_chained_methods),v()}function K(){v(),"\n"===X.text[X.text.length-1]&&g()}function W(){for(;J.mode===h.Statement;)E()}var z,V,G,X,Y,Q,Z,J,ee,te,ne,re,ie,ae=[],se="";for(re={TK_START_EXPR:D,TK_END_EXPR:L,TK_START_BLOCK:P,TK_END_BLOCK:I,TK_WORD:O,TK_RESERVED:O,TK_SEMICOLON:j,TK_STRING:M,TK_EQUALS:$,TK_OPERATOR:F,TK_COMMA:B,TK_BLOCK_COMMENT:q,TK_COMMENT:H,TK_DOT:U,TK_UNKNOWN:K,TK_EOF:W},t=t?t:{},ie={},void 0!==t.braces_on_own_line&&(ie.brace_style=t.braces_on_own_line?"expand":"collapse"),ie.brace_style=t.brace_style?t.brace_style:ie.brace_style?ie.brace_style:"collapse","expand-strict"===ie.brace_style&&(ie.brace_style="expand"),ie.indent_size=t.indent_size?parseInt(t.indent_size,10):4,ie.indent_char=t.indent_char?t.indent_char:" ",ie.eol=t.eol?t.eol:"auto",ie.preserve_newlines=void 0===t.preserve_newlines?!0:t.preserve_newlines,ie.break_chained_methods=void 0===t.break_chained_methods?!1:t.break_chained_methods,ie.max_preserve_newlines=void 0===t.max_preserve_newlines?0:parseInt(t.max_preserve_newlines,10),ie.space_in_paren=void 0===t.space_in_paren?!1:t.space_in_paren,ie.space_in_empty_paren=void 0===t.space_in_empty_paren?!1:t.space_in_empty_paren,ie.jslint_happy=void 0===t.jslint_happy?!1:t.jslint_happy,ie.space_after_anon_function=void 0===t.space_after_anon_function?!1:t.space_after_anon_function,ie.keep_array_indentation=void 0===t.keep_array_indentation?!1:t.keep_array_indentation,ie.space_before_conditional=void 0===t.space_before_conditional?!0:t.space_before_conditional,ie.unescape_strings=void 0===t.unescape_strings?!1:t.unescape_strings,ie.wrap_line_length=void 0===t.wrap_line_length?0:parseInt(t.wrap_line_length,10),ie.e4x=void 0===t.e4x?!1:t.e4x,ie.end_with_newline=void 0===t.end_with_newline?!1:t.end_with_newline,ie.comma_first=void 0===t.comma_first?!1:t.comma_first,ie.operator_position=a(t.operator_position),ie.test_output_raw=void 0===t.test_output_raw?!1:t.test_output_raw,ie.jslint_happy&&(ie.space_after_anon_function=!0),t.indent_with_tabs&&(ie.indent_char=" ",ie.indent_size=1),"auto"===ie.eol&&(ie.eol="\n",e&&u.lineBreak.test(e||"")&&(ie.eol=e.match(u.lineBreak)[0])),ie.eol=ie.eol.replace(/\\r/,"\r").replace(/\\n/,"\n"),Z="";ie.indent_size>0;)Z+=ie.indent_char,ie.indent_size-=1;var oe=0;if(e&&e.length){for(;" "===e.charAt(oe)||" "===e.charAt(oe);)se+=e.charAt(oe),oe+=1;e=e.substring(oe)}Y="TK_START_BLOCK",Q="",z=new l(Z,se),z.raw=ie.test_output_raw,te=[],x(h.BlockStatement),this.beautify=function(){function t(){return n=N()}var n,r;for(G=new c(e,ie,Z),ae=G.tokenize(),V=0;t();){for(var i=0;i<n.comments_before.length;i++)o(n.comments_before[i]);o(n),Q=J.last_text,Y=n.type,J.last_text=n.text,V+=1}return r=z.get_code(),ie.end_with_newline&&(r+="\n"),"\n"!==ie.eol&&(r=r.replace(/[\n]/g,ie.eol)),r};var le=["break","contiue","return","throw"]}function o(e){var t=0,n=-1,r=[],i=!0;this.set_indent=function(r){t=e.baseIndentLength+r*e.indent_length,n=r},this.get_character_count=function(){return t},this.is_empty=function(){return i},this.last=function(){return this._empty?null:r[r.length-1]},this.push=function(e){r.push(e),t+=e.length,i=!1},this.pop=function(){var e=null;return i||(e=r.pop(),t-=e.length,i=0===r.length),e},this.remove_indent=function(){n>0&&(n-=1,t-=e.indent_length)},this.trim=function(){for(;" "===this.last();)r.pop(),t-=1;i=0===r.length},this.toString=function(){var t="";return this._empty||(n>=0&&(t=e.indent_cache[n]),t+=r.join("")),t}}function l(e,t){t=t||"",this.indent_cache=[t],this.baseIndentLength=t.length,this.indent_length=e.length,this.raw=!1;var n=[];this.baseIndentString=t,this.indent_string=e,this.previous_line=null,this.current_line=null,this.space_before_token=!1,this.add_outputline=function(){this.previous_line=this.current_line,this.current_line=new o(this),n.push(this.current_line)},this.add_outputline(),this.get_line_number=function(){return n.length},this.add_new_line=function(e){return 1===this.get_line_number()&&this.just_added_newline()?!1:e||!this.just_added_newline()?(this.raw||this.add_outputline(),!0):!1},this.get_code=function(){var e=n.join("\n").replace(/[\r\n\t ]+$/,"");return e},this.set_indent=function(e){if(n.length>1){for(;e>=this.indent_cache.length;)this.indent_cache.push(this.indent_cache[this.indent_cache.length-1]+this.indent_string);return this.current_line.set_indent(e),!0}return this.current_line.set_indent(0),
!1},this.add_raw_token=function(e){for(var t=0;t<e.newlines;t++)this.add_outputline();this.current_line.push(e.whitespace_before),this.current_line.push(e.text),this.space_before_token=!1},this.add_token=function(e){this.add_space_before_token(),this.current_line.push(e)},this.add_space_before_token=function(){this.space_before_token&&!this.just_added_newline()&&this.current_line.push(" "),this.space_before_token=!1},this.remove_redundant_indentation=function(e){if(!e.multiline_frame&&e.mode!==h.ForInitializer&&e.mode!==h.Conditional)for(var t=e.start_line_index,r=n.length;r>t;)n[t].remove_indent(),t++},this.trim=function(r){for(r=void 0===r?!1:r,this.current_line.trim(e,t);r&&n.length>1&&this.current_line.is_empty();)n.pop(),this.current_line=n[n.length-1],this.current_line.trim();this.previous_line=n.length>1?n[n.length-2]:null},this.just_added_newline=function(){return this.current_line.is_empty()},this.just_added_blankline=function(){if(this.just_added_newline()){if(1===n.length)return!0;var e=n[n.length-2];return e.is_empty()}return!1}}function c(e,t){function i(e){if(!e.match(E))return null;var t={};T.lastIndex=0;for(var n=T.exec(e);n;)t[n[1]]=n[2],n=T.exec(e);return t}function a(){var a,E=[];if(m=0,g="",y>=w)return["","TK_EOF"];var T;T=v.length?v[v.length-1]:new f("TK_START_BLOCK","{");var A=e.charAt(y);for(y+=1;n(A,o);){if(u.newline.test(A)?("\n"!==A||"\r"!==e.charAt(y-2))&&(m+=1,E=[]):E.push(A),y>=w)return["","TK_EOF"];A=e.charAt(y),y+=1}if(E.length&&(g=E.join("")),l.test(A)||"."===A&&l.test(e.charAt(y))){var R=!0,N=!0,D=l;for("0"===A&&w>y&&/[XxOoBb]/.test(e.charAt(y))?(R=!1,N=!1,D=/[Bb]/.test(e.charAt(y))?c:/[Oo]/.test(e.charAt(y))?p:d,A+=e.charAt(y),y+=1):"."===A?R=!1:(A="",y-=1);w>y&&D.test(e.charAt(y));)A+=e.charAt(y),y+=1,R&&w>y&&"."===e.charAt(y)?(A+=e.charAt(y),y+=1,R=!1):N&&w>y&&/[Ee]/.test(e.charAt(y))&&(A+=e.charAt(y),y+=1,w>y&&/[+-]/.test(e.charAt(y))&&(A+=e.charAt(y),y+=1),N=!1,R=!1);return[A,"TK_WORD"]}if(u.isIdentifierStart(e.charCodeAt(y-1))){if(w>y)for(;u.isIdentifierChar(e.charCodeAt(y))&&(A+=e.charAt(y),y+=1,y!==w););return"TK_DOT"===T.type||"TK_RESERVED"===T.type&&n(T.text,["set","get"])||!n(A,x)?[A,"TK_WORD"]:"in"===A?[A,"TK_OPERATOR"]:[A,"TK_RESERVED"]}if("("===A||"["===A)return[A,"TK_START_EXPR"];if(")"===A||"]"===A)return[A,"TK_END_EXPR"];if("{"===A)return[A,"TK_START_BLOCK"];if("}"===A)return[A,"TK_END_BLOCK"];if(";"===A)return[A,"TK_SEMICOLON"];if("/"===A){var L,P="";if("*"===e.charAt(y)){y+=1,_.lastIndex=y,L=_.exec(e),P="/*"+L[0],y+=L[0].length;var I=i(P);return I&&"start"===I.ignore&&(S.lastIndex=y,L=S.exec(e),P+=L[0],y+=L[0].length),P=P.replace(u.allLineBreaks,"\n"),[P,"TK_BLOCK_COMMENT",I]}if("/"===e.charAt(y))return y+=1,k.lastIndex=y,L=k.exec(e),P="//"+L[0],y+=L[0].length,[P,"TK_COMMENT"]}var O=/^<([-a-zA-Z:0-9_.]+|{.+?}|!\[CDATA\[[\s\S]*?\]\])(\s+{.+?}|\s+[-a-zA-Z:0-9_.]+|\s+[-a-zA-Z:0-9_.]+\s*=\s*('[^']*'|"[^"]*"|{.+?}))*\s*(\/?)\s*>/;if("`"===A||"'"===A||'"'===A||("/"===A||t.e4x&&"<"===A&&e.slice(y-1).match(O))&&("TK_RESERVED"===T.type&&n(T.text,["return","case","throw","else","do","typeof","yield"])||"TK_END_EXPR"===T.type&&")"===T.text&&T.parent&&"TK_RESERVED"===T.parent.type&&n(T.parent.text,["if","while","for"])||n(T.type,["TK_COMMENT","TK_START_EXPR","TK_START_BLOCK","TK_END_BLOCK","TK_OPERATOR","TK_EQUALS","TK_EOF","TK_SEMICOLON","TK_COMMA"]))){var j=A,M=!1,$=!1;if(a=A,"/"===j)for(var B=!1;w>y&&(M||B||e.charAt(y)!==j)&&!u.newline.test(e.charAt(y));)a+=e.charAt(y),M?M=!1:(M="\\"===e.charAt(y),"["===e.charAt(y)?B=!0:"]"===e.charAt(y)&&(B=!1)),y+=1;else if(t.e4x&&"<"===j){var F=/<(\/?)([-a-zA-Z:0-9_.]+|{.+?}|!\[CDATA\[[\s\S]*?\]\])(\s+{.+?}|\s+[-a-zA-Z:0-9_.]+|\s+[-a-zA-Z:0-9_.]+\s*=\s*('[^']*'|"[^"]*"|{.+?}))*\s*(\/?)\s*>/g,q=e.slice(y-1),H=F.exec(q);if(H&&0===H.index){for(var U=H[2],K=0;H;){var W=!!H[1],z=H[2],V=!!H[H.length-1]||"![CDATA["===z.slice(0,8);if(z!==U||V||(W?--K:++K),0>=K)break;H=F.exec(q)}var G=H?H.index+H[0].length:q.length;return q=q.slice(0,G),y+=G-1,q=q.replace(u.allLineBreaks,"\n"),[q,"TK_STRING"]}}else{var X=function(t,n,r){for(var i;w>y&&(i=e.charAt(y),M||i!==t&&(n||!u.newline.test(i)));)(M||n)&&u.newline.test(i)?("\r"===i&&"\n"===e.charAt(y+1)&&(y+=1,i=e.charAt(y)),a+="\n"):a+=i,M?(("x"===i||"u"===i)&&($=!0),M=!1):M="\\"===i,y+=1,r&&-1!==a.indexOf(r,a.length-r.length)&&("`"===t?X("}",n,"`"):X("`",n,"${"))};"`"===j?X("`",!0,"${"):X(j)}if($&&t.unescape_strings&&(a=s(a)),w>y&&e.charAt(y)===j&&(a+=j,y+=1,"/"===j))for(;w>y&&u.isIdentifierStart(e.charCodeAt(y));)a+=e.charAt(y),y+=1;return[a,"TK_STRING"]}if("#"===A){if(0===v.length&&"!"===e.charAt(y)){for(a=A;w>y&&"\n"!==A;)A=e.charAt(y),a+=A,y+=1;return[r(a)+"\n","TK_UNKNOWN"]}var Y="#";if(w>y&&l.test(e.charAt(y))){do A=e.charAt(y),Y+=A,y+=1;while(w>y&&"#"!==A&&"="!==A);return"#"===A||("["===e.charAt(y)&&"]"===e.charAt(y+1)?(Y+="[]",y+=2):"{"===e.charAt(y)&&"}"===e.charAt(y+1)&&(Y+="{}",y+=2)),[Y,"TK_WORD"]}}if("<"===A&&("?"===e.charAt(y)||"%"===e.charAt(y))){C.lastIndex=y-1;var Q=C.exec(e);if(Q)return A=Q[0],y+=A.length-1,A=A.replace(u.allLineBreaks,"\n"),[A,"TK_STRING"]}if("<"===A&&"<!--"===e.substring(y-1,y+3)){for(y+=3,A="<!--";!u.newline.test(e.charAt(y))&&w>y;)A+=e.charAt(y),y++;return b=!0,[A,"TK_COMMENT"]}if("-"===A&&b&&"-->"===e.substring(y-1,y+2))return b=!1,y+=2,["-->","TK_COMMENT"];if("."===A)return[A,"TK_DOT"];if(n(A,h)){for(;w>y&&n(A+e.charAt(y),h)&&(A+=e.charAt(y),y+=1,!(y>=w)););return","===A?[A,"TK_COMMA"]:"="===A?[A,"TK_EQUALS"]:[A,"TK_OPERATOR"]}return[A,"TK_UNKNOWN"]}function s(e){for(var t,n=!1,r="",i=0,a="",s=0;n||i<e.length;)if(t=e.charAt(i),i++,n){if(n=!1,"x"===t)a=e.substr(i,2),i+=2;else{if("u"!==t){r+="\\"+t;continue}a=e.substr(i,4),i+=4}if(!a.match(/^[0123456789abcdefABCDEF]+$/))return e;if(s=parseInt(a,16),s>=0&&32>s){r+="x"===t?"\\x"+a:"\\u"+a;continue}if(34===s||39===s||92===s)r+="\\"+String.fromCharCode(s);else{if("x"===t&&s>126&&255>=s)return e;r+=String.fromCharCode(s)}}else"\\"===t?n=!0:r+=t;return r}var o="\n\r ".split(""),l=/[0-9]/,c=/[01]/,p=/[01234567]/,d=/[0123456789abcdefABCDEF]/;this.positionable_operators="!= !== % & && * ** + - / : < << <= == === > >= >> >>> ? ^ | ||".split(" ");var h=this.positionable_operators.concat("! %= &= *= **= ++ += , -- -= /= :: <<= = => >>= >>>= ^= |= ~".split(" "));this.line_starters="continue,try,throw,return,var,let,const,if,switch,case,default,for,while,break,function,import,export".split(",");var m,g,b,v,y,w,x=this.line_starters.concat(["do","in","else","get","set","new","catch","finally","typeof","yield","async","await","from","as"]),_=/([\s\S]*?)((?:\*\/)|$)/g,k=/([^\n\r\u2028\u2029]*)/g,E=/\/\* beautify( \w+[:]\w+)+ \*\//g,T=/ (\w+)[:](\w+)/g,S=/([\s\S]*?)((?:\/\*\sbeautify\signore:end\s\*\/)|$)/g,C=/((<\?php|<\?=)[\s\S]*?\?>)|(<%[\s\S]*?%>)/g;this.tokenize=function(){w=e.length,y=0,b=!1,v=[];for(var t,n,r,i=null,s=[],o=[];!n||"TK_EOF"!==n.type;){for(r=a(),t=new f(r[1],r[0],m,g);"TK_COMMENT"===t.type||"TK_BLOCK_COMMENT"===t.type||"TK_UNKNOWN"===t.type;)"TK_BLOCK_COMMENT"===t.type&&(t.directives=r[2]),o.push(t),r=a(),t=new f(r[1],r[0],m,g);o.length&&(t.comments_before=o,o=[]),"TK_START_BLOCK"===t.type||"TK_START_EXPR"===t.type?(t.parent=n,s.push(i),i=t):("TK_END_BLOCK"===t.type||"TK_END_EXPR"===t.type)&&i&&("]"===t.text&&"["===i.text||")"===t.text&&"("===i.text||"}"===t.text&&"{"===i.text)&&(t.parent=i.parent,t.opened=i,i=s.pop()),v.push(t),n=t}return v}}var u={};!function(e){var t="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԧԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠࢢ-ࢬऄ-हऽॐक़-ॡॱ-ॷॹ-ॿঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-ళవ-హఽౘౙౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൠൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏼᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛰᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤜᥐ-ᥭᥰ-ᥴᦀ-ᦫᧁ-ᧇᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々-〇〡-〩〱-〵〸-〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿌ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚗꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞎꞐ-ꞓꞠ-Ɦꟸ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꪀ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꯀ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",n="̀-ͯ҃-֑҇-ׇֽֿׁׂׅׄؐ-ؚؠ-ىٲ-ۓۧ-ۨۻ-ۼܰ-݊ࠀ-ࠔࠛ-ࠣࠥ-ࠧࠩ-࠭ࡀ-ࡗࣤ-ࣾऀ-ःऺ-़ा-ॏ॑-ॗॢ-ॣ०-९ঁ-ঃ়া-ৄেৈৗয়-ৠਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢ-ૣ૦-૯ଁ-ଃ଼ା-ୄେୈୋ-୍ୖୗୟ-ୠ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఁ-ఃె-ైొ-్ౕౖౢ-ౣ౦-౯ಂಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢ-ೣ೦-೯ംഃെ-ൈൗൢ-ൣ൦-൯ංඃ්ා-ුූෘ-ෟෲෳิ-ฺเ-ๅ๐-๙ິ-ູ່-ໍ໐-໙༘༙༠-༩༹༵༷ཁ-ཇཱ-྄྆-྇ྍ-ྗྙ-ྼ࿆က-ဩ၀-၉ၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟ᜎ-ᜐᜠ-ᜰᝀ-ᝐᝲᝳក-ឲ៝០-៩᠋-᠍᠐-᠙ᤠ-ᤫᤰ-᤻ᥑ-ᥭᦰ-ᧀᧈ-ᧉ᧐-᧙ᨀ-ᨕᨠ-ᩓ᩠-᩿᩼-᪉᪐-᪙ᭆ-ᭋ᭐-᭙᭫-᭳᮰-᮹᯦-᯳ᰀ-ᰢ᱀-᱉ᱛ-ᱽ᳐-᳒ᴀ-ᶾḁ-ἕ‿⁀⁔⃐-⃥⃜⃡-⃰ⶁ-ⶖⷠ-ⷿ〡-〨゙゚Ꙁ-ꙭꙴ-꙽ꚟ꛰-꛱ꟸ-ꠀ꠆ꠋꠣ-ꠧꢀ-ꢁꢴ-꣄꣐-꣙ꣳ-ꣷ꤀-꤉ꤦ-꤭ꤰ-ꥅꦀ-ꦃ꦳-꧀ꨀ-ꨧꩀ-ꩁꩌ-ꩍ꩐-꩙ꩻꫠ-ꫩꫲ-ꫳꯀ-ꯡ꯬꯭꯰-꯹ﬠ-ﬨ︀-️︠-︦︳︴﹍-﹏0-9_",r=new RegExp("["+t+"]"),i=new RegExp("["+t+n+"]");e.newline=/[\n\r\u2028\u2029]/,e.lineBreak=new RegExp("\r\n|"+e.newline.source),e.allLineBreaks=new RegExp(e.lineBreak.source,"g"),e.isIdentifierStart=function(e){return 65>e?36===e||64===e:91>e?!0:97>e?95===e:123>e?!0:e>=170&&r.test(String.fromCharCode(e))},e.isIdentifierChar=function(e){return 48>e?36===e:58>e?!0:65>e?!1:91>e?!0:97>e?95===e:123>e?!0:e>=170&&i.test(String.fromCharCode(e))}}(u);var p={before_newline:"before-newline",after_newline:"after-newline",preserve_newline:"preserve-newline"},d=[p.before_newline,p.preserve_newline],h={BlockStatement:"BlockStatement",Statement:"Statement",ObjectLiteral:"ObjectLiteral",ArrayLiteral:"ArrayLiteral",ForInitializer:"ForInitializer",Conditional:"Conditional",Expression:"Expression"},f=function(e,t,n,r,i){this.type=e,this.text=t,this.comments_before=[],this.newlines=n||0,this.wanted_newline=n>0,this.whitespace_before=r||"",this.parent=i||null,this.opened=null,this.directives=null},m=new s(e,t);return m.beautify()}"function"==typeof define&&define.amd?define("deps/beautify",[],function(){return{js_beautify:e}}):"undefined"!=typeof exports?exports.js_beautify=e:"undefined"!=typeof window?window.js_beautify=e:"undefined"!=typeof global&&(global.js_beautify=e)}(),function(){function e(t,n){function r(){return x=t.charAt(++k),x||""}function i(e){var n="",i=k;return e&&o(),n=t.charAt(k+1)||"",k=i-1,r(),n}function a(e){for(var n=k;r();)if("\\"===x)r();else{if(-1!==e.indexOf(x))break;if("\n"===x)break}return t.substring(n,k+1)}function s(e){var t=k,n=a(e);return k=t-1,r(),n}function o(){for(var e="";_.test(i());)r(),e+=x;return e}function l(){var e="";for(x&&_.test(x)&&(e=x);_.test(r());)e+=x;return e}function c(e){var n=k;for(e="/"===i(),r();r();){if(!e&&"*"===x&&"/"===i()){r();break}if(e&&"\n"===x)return t.substring(n,k)}return t.substring(n,k)+x}function u(e){return t.substring(k-e.length,k).toLowerCase()===e}function p(){for(var e=0,n=k+1;n<t.length;n++){var r=t.charAt(n);if("{"===r)return!0;if("("===r)e+=1;else if(")"===r){if(0===e)return!1;e-=1}else if(";"===r||"}"===r)return!1}return!1}function d(){C++,T+=S}function h(){C--,T=T.slice(0,-f)}n=n||{},t=t||"",t=t.replace(/\r\n|[\r\u2028\u2029]/g,"\n");var f=n.indent_size||4,m=n.indent_char||" ",g=void 0===n.selector_separator_newline?!0:n.selector_separator_newline,b=void 0===n.end_with_newline?!1:n.end_with_newline,v=void 0===n.newline_between_rules?!0:n.newline_between_rules,y=void 0===n.space_around_selector_separator?!1:n.space_around_selector_separator,w=n.eol?n.eol:"\n";"string"==typeof f&&(f=parseInt(f,10)),n.indent_with_tabs&&(m=" ",f=1),w=w.replace(/\\r/,"\r").replace(/\\n/,"\n");var x,_=/^\s+$/,k=-1,E=0,T=t.match(/^[\t ]*/)[0],S=new Array(f+1).join(m),C=0,A=0,R={};R["{"]=function(e){R.singleSpace(),N.push(e),R.newLine()},R["}"]=function(e){R.newLine(),N.push(e),R.newLine()},R._lastCharWhitespace=function(){return _.test(N[N.length-1])},R.newLine=function(e){N.length&&(e||"\n"===N[N.length-1]||R.trim(),N.push("\n"),T&&N.push(T))},R.singleSpace=function(){N.length&&!R._lastCharWhitespace()&&N.push(" ")},R.preserveSingleSpace=function(){M&&R.singleSpace()},R.trim=function(){for(;R._lastCharWhitespace();)N.pop()};for(var N=[],D=!1,L=!1,P=!1,I="",O="";;){var j=l(),M=""!==j,$=-1!==j.indexOf("\n");if(O=I,I=x,!x)break;if("/"===x&&"*"===i()){var B=0===C;($||B)&&R.newLine(),N.push(c()),R.newLine(),B&&R.newLine(!0)}else if("/"===x&&"/"===i())$||"{"===O||R.trim(),R.singleSpace(),N.push(c()),R.newLine();else if("@"===x)if(R.preserveSingleSpace(),"{"===i())N.push(a("}"));else{N.push(x);var F=s(": ,;{}()[]/='\"");F.match(/[ :]$/)&&(r(),F=a(": ").replace(/\s$/,""),N.push(F),R.singleSpace()),F=F.replace(/\s$/,""),F in e.NESTED_AT_RULE&&(A+=1,F in e.CONDITIONAL_GROUP_RULE&&(P=!0))}else"#"===x&&"{"===i()?(R.preserveSingleSpace(),N.push(a("}"))):"{"===x?"}"===i(!0)?(o(),r(),R.singleSpace(),N.push("{}"),R.newLine(),v&&0===C&&R.newLine(!0)):(d(),R["{"](x),P?(P=!1,D=C>A):D=C>=A):"}"===x?(h(),R["}"](x),D=!1,L=!1,A&&A--,v&&0===C&&R.newLine(!0)):":"===x?(o(),!D&&!P||u("&")||p()?":"===i()?(r(),N.push("::")):N.push(":"):(L=!0,N.push(":"),R.singleSpace())):'"'===x||"'"===x?(R.preserveSingleSpace(),N.push(a(x))):";"===x?(L=!1,N.push(x),R.newLine()):"("===x?u("url")?(N.push(x),o(),r()&&(")"!==x&&'"'!==x&&"'"!==x?N.push(a(")")):k--)):(E++,R.preserveSingleSpace(),N.push(x),o()):")"===x?(N.push(x),E--):","===x?(N.push(x),o(),g&&!L&&1>E?R.newLine():R.singleSpace()):">"===x||"+"===x||"~"===x?y&&!L&&1>E?(R.singleSpace(),N.push(x),R.singleSpace()):N.push(x):"]"===x?N.push(x):"["===x?(R.preserveSingleSpace(),N.push(x)):"="===x?(o(),x="=",N.push(x)):(R.preserveSingleSpace(),N.push(x))}var q="";return T&&(q+=T),q+=N.join("").replace(/[\r\n\t ]+$/,""),b&&(q+="\n"),"\n"!==w&&(q=q.replace(/[\n]/g,w)),q}e.NESTED_AT_RULE={"@page":!0,"@font-face":!0,"@keyframes":!0,"@media":!0,"@supports":!0,"@document":!0},e.CONDITIONAL_GROUP_RULE={"@media":!0,"@supports":!0,"@document":!0},"function"==typeof define&&define.amd?define("deps/beautify-css",[],function(){return{css_beautify:e}}):"undefined"!=typeof exports?exports.css_beautify=e:"undefined"!=typeof window?window.css_beautify=e:"undefined"!=typeof global&&(global.css_beautify=e)}(),function(){function e(e){return e.replace(/^\s+/g,"")}function t(e){return e.replace(/\s+$/g,"")}function n(n,r,i,a){function s(){function n(e){var t="",n=function(n){var r=t+n.toLowerCase();t=r.length<=e.length?r:r.substr(r.length-e.length,e.length)},r=function(){return-1===t.indexOf(e)};return{add:n,doesNotMatch:r}}return this.pos=0,this.token="",this.current_mode="CONTENT",this.tags={parent:"parent1",parentcount:1,parent1:""},this.tag_type="",this.token_text=this.last_token=this.last_text=this.token_type="",this.newlines=0,this.indent_content=l,this.Utils={whitespace:"\n\r ".split(""),single_token:["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr","!doctype","?xml","?php","basefont","isindex"],extra_liners:w,in_array:function(e,t){for(var n=0;n<t.length;n++)if(e===t[n])return!0;return!1}},this.is_whitespace=function(e){for(var t=0;t<e.length;t++)if(!this.Utils.in_array(e.charAt(t),this.Utils.whitespace))return!1;return!0},this.traverse_whitespace=function(){var e="";if(e=this.input.charAt(this.pos),this.Utils.in_array(e,this.Utils.whitespace)){for(this.newlines=0;this.Utils.in_array(e,this.Utils.whitespace);)f&&"\n"===e&&this.newlines<=m&&(this.newlines+=1),this.pos++,e=this.input.charAt(this.pos);return!0}return!1},this.space_or_wrap=function(e){return this.line_char_count>=this.wrap_line_length?(this.print_newline(!1,e),this.print_indentation(e),!0):(this.line_char_count++,e.push(" "),!1)},this.get_content=function(){for(var e="",t=[];"<"!==this.input.charAt(this.pos);){if(this.pos>=this.input.length)return t.length?t.join(""):["","TK_EOF"];if(this.traverse_whitespace())this.space_or_wrap(t);else{if(g){var n=this.input.substr(this.pos,3);if("{{#"===n||"{{/"===n)break;if("{{!"===n)return[this.get_tag(),"TK_TAG_HANDLEBARS_COMMENT"];if("{{"===this.input.substr(this.pos,2)&&"{{else}}"===this.get_tag(!0))break}e=this.input.charAt(this.pos),this.pos++,this.line_char_count++,t.push(e)}}return t.length?t.join(""):""},this.get_contents_to=function(e){if(this.pos===this.input.length)return["","TK_EOF"];var t="",n=new RegExp("</"+e+"\\s*>","igm");n.lastIndex=this.pos;var r=n.exec(this.input),i=r?r.index:this.input.length;return this.pos<i&&(t=this.input.substring(this.pos,i),this.pos=i),t},this.record_tag=function(e){this.tags[e+"count"]?(this.tags[e+"count"]++,this.tags[e+this.tags[e+"count"]]=this.indent_level):(this.tags[e+"count"]=1,this.tags[e+this.tags[e+"count"]]=this.indent_level),this.tags[e+this.tags[e+"count"]+"parent"]=this.tags.parent,this.tags.parent=e+this.tags[e+"count"]},this.retrieve_tag=function(e){if(this.tags[e+"count"]){for(var t=this.tags.parent;t&&e+this.tags[e+"count"]!==t;)t=this.tags[t+"parent"];t&&(this.indent_level=this.tags[e+this.tags[e+"count"]],this.tags.parent=this.tags[t+"parent"]),delete this.tags[e+this.tags[e+"count"]+"parent"],delete this.tags[e+this.tags[e+"count"]],1===this.tags[e+"count"]?delete this.tags[e+"count"]:this.tags[e+"count"]--}},this.indent_to_tag=function(e){if(this.tags[e+"count"]){for(var t=this.tags.parent;t&&e+this.tags[e+"count"]!==t;)t=this.tags[t+"parent"];t&&(this.indent_level=this.tags[e+this.tags[e+"count"]])}},this.get_tag=function(e){var t,n,r,i="",a=[],s="",o=!1,l=!0,c=this.pos,p=this.line_char_count;e=void 0!==e?e:!1;do{if(this.pos>=this.input.length)return e&&(this.pos=c,this.line_char_count=p),a.length?a.join(""):["","TK_EOF"];if(i=this.input.charAt(this.pos),this.pos++,this.Utils.in_array(i,this.Utils.whitespace))o=!0;else{if(("'"===i||'"'===i)&&(i+=this.get_unformatted(i),o=!0),"="===i&&(o=!1),a.length&&"="!==a[a.length-1]&&">"!==i&&o){var d=this.space_or_wrap(a),f=d&&"/"!==i&&"force"!==b;if(o=!1,l||"force"!==b||"/"===i||(this.print_newline(!1,a),this.print_indentation(a),f=!0),f)for(var m=0;v>m;m++)a.push(u);for(var y=0;y<a.length;y++)if(" "===a[y]){l=!1;break}}if(g&&"<"===r&&i+this.input.charAt(this.pos)==="{{"&&(i+=this.get_unformatted("}}"),a.length&&" "!==a[a.length-1]&&"<"!==a[a.length-1]&&(i=" "+i),o=!0),"<"!==i||r||(t=this.pos-1,r="<"),g&&!r&&a.length>=2&&"{"===a[a.length-1]&&"{"===a[a.length-2]&&(t="#"===i||"/"===i||"!"===i?this.pos-3:this.pos-2,r="{"),this.line_char_count++,a.push(i),a[1]&&("!"===a[1]||"?"===a[1]||"%"===a[1])){a=[this.get_comment(t)];break}if(g&&a[1]&&"{"===a[1]&&a[2]&&"!"===a[2]){a=[this.get_comment(t)];break}if(g&&"{"===r&&a.length>2&&"}"===a[a.length-2]&&"}"===a[a.length-1])break}}while(">"!==i);var w,x,_=a.join("");w=-1!==_.indexOf(" ")?_.indexOf(" "):"{"===_.charAt(0)?_.indexOf("}"):_.indexOf(">"),x="<"!==_.charAt(0)&&g?"#"===_.charAt(2)?3:2:1;var k=_.substring(x,w).toLowerCase();return"/"===_.charAt(_.length-2)||this.Utils.in_array(k,this.Utils.single_token)?e||(this.tag_type="SINGLE"):g&&"{"===_.charAt(0)&&"else"===k?e||(this.indent_to_tag("if"),this.tag_type="HANDLEBARS_ELSE",this.indent_content=!0,this.traverse_whitespace()):this.is_unformatted(k,h)?(s=this.get_unformatted("</"+k+">",_),a.push(s),n=this.pos-1,this.tag_type="SINGLE"):"script"===k&&(-1===_.search("type")||_.search("type")>-1&&_.search(/\b(text|application)\/(x-)?(javascript|ecmascript|jscript|livescript|(ld\+)?json)/)>-1)?e||(this.record_tag(k),this.tag_type="SCRIPT"):"style"===k&&(-1===_.search("type")||_.search("type")>-1&&_.search("text/css")>-1)?e||(this.record_tag(k),this.tag_type="STYLE"):"!"===k.charAt(0)?e||(this.tag_type="SINGLE",this.traverse_whitespace()):e||("/"===k.charAt(0)?(this.retrieve_tag(k.substring(1)),this.tag_type="END"):(this.record_tag(k),"html"!==k.toLowerCase()&&(this.indent_content=!0),this.tag_type="START"),this.traverse_whitespace()&&this.space_or_wrap(a),this.Utils.in_array(k,this.Utils.extra_liners)&&(this.print_newline(!1,this.output),this.output.length&&"\n"!==this.output[this.output.length-2]&&this.print_newline(!0,this.output))),e&&(this.pos=c,this.line_char_count=p),a.join("")},this.get_comment=function(e){var t="",n=">",r=!1;this.pos=e;var i=this.input.charAt(this.pos);for(this.pos++;this.pos<=this.input.length&&(t+=i,t.charAt(t.length-1)!==n.charAt(n.length-1)||-1===t.indexOf(n));)!r&&t.length<10&&(0===t.indexOf("<![if")?(n="<![endif]>",r=!0):0===t.indexOf("<![cdata[")?(n="]]>",r=!0):0===t.indexOf("<![")?(n="]>",r=!0):0===t.indexOf("<!--")?(n="-->",r=!0):0===t.indexOf("{{!")?(n="}}",r=!0):0===t.indexOf("<?")?(n="?>",r=!0):0===t.indexOf("<%")&&(n="%>",r=!0)),i=this.input.charAt(this.pos),this.pos++;return t},this.get_unformatted=function(e,t){if(t&&-1!==t.toLowerCase().indexOf(e))return"";var r="",i="",a=!0,s=n(e);do{if(this.pos>=this.input.length)return i;if(r=this.input.charAt(this.pos),this.pos++,this.Utils.in_array(r,this.Utils.whitespace)){if(!a){this.line_char_count--;continue}if("\n"===r||"\r"===r){i+="\n",this.line_char_count=0;continue}}i+=r,s.add(r),this.line_char_count++,a=!0,g&&"{"===r&&i.length&&"{"===i.charAt(i.length-2)&&(i+=this.get_unformatted("}}"))}while(s.doesNotMatch());return i},this.get_token=function(){var e;if("TK_TAG_SCRIPT"===this.last_token||"TK_TAG_STYLE"===this.last_token){var t=this.last_token.substr(7);return e=this.get_contents_to(t),"string"!=typeof e?e:[e,"TK_"+t]}if("CONTENT"===this.current_mode)return e=this.get_content(),"string"!=typeof e?e:[e,"TK_CONTENT"];if("TAG"===this.current_mode){if(e=this.get_tag(),"string"!=typeof e)return e;var n="TK_TAG_"+this.tag_type;return[e,n]}},this.get_full_indent=function(e){return e=this.indent_level+e||0,1>e?"":Array(e+1).join(this.indent_string)},this.is_unformatted=function(e,t){if(!this.Utils.in_array(e,t))return!1;if("a"!==e.toLowerCase()||!this.Utils.in_array("a",t))return!0;var n=this.get_tag(!0),r=(n||"").match(/^\s*<\s*\/?([a-z]*)\s*[^>]*>\s*$/);return!r||this.Utils.in_array(r,t)?!0:!1},this.printer=function(n,r,i,a,s){this.input=n||"",this.input=this.input.replace(/\r\n|[\r\u2028\u2029]/g,"\n"),this.output=[],this.indent_character=r,this.indent_string="",this.indent_size=i,this.brace_style=s,this.indent_level=0,this.wrap_line_length=a,this.line_char_count=0;for(var o=0;o<this.indent_size;o++)this.indent_string+=this.indent_character;this.print_newline=function(e,n){this.line_char_count=0,n&&n.length&&(e||"\n"!==n[n.length-1])&&("\n"!==n[n.length-1]&&(n[n.length-1]=t(n[n.length-1])),n.push("\n"))},this.print_indentation=function(e){for(var t=0;t<this.indent_level;t++)e.push(this.indent_string),this.line_char_count+=this.indent_string.length},this.print_token=function(t){(!this.is_whitespace(t)||this.output.length)&&((t||""!==t)&&this.output.length&&"\n"===this.output[this.output.length-1]&&(this.print_indentation(this.output),t=e(t)),this.print_token_raw(t))},this.print_token_raw=function(e){this.newlines>0&&(e=t(e)),e&&""!==e&&(e.length>1&&"\n"===e.charAt(e.length-1)?(this.output.push(e.slice(0,-1)),this.print_newline(!1,this.output)):this.output.push(e));for(var n=0;n<this.newlines;n++)this.print_newline(n>0,this.output);this.newlines=0},this.indent=function(){this.indent_level++},this.unindent=function(){this.indent_level>0&&this.indent_level--}},this}var o,l,c,u,p,d,h,f,m,g,b,v,y,w,x;for(r=r||{},void 0!==r.wrap_line_length&&0!==parseInt(r.wrap_line_length,10)||void 0===r.max_char||0===parseInt(r.max_char,10)||(r.wrap_line_length=r.max_char),l=void 0===r.indent_inner_html?!1:r.indent_inner_html,c=void 0===r.indent_size?4:parseInt(r.indent_size,10),u=void 0===r.indent_char?" ":r.indent_char,d=void 0===r.brace_style?"collapse":r.brace_style,p=0===parseInt(r.wrap_line_length,10)?32786:parseInt(r.wrap_line_length||250,10),h=r.unformatted||["a","abbr","area","audio","b","bdi","bdo","br","button","canvas","cite","code","data","datalist","del","dfn","em","embed","i","iframe","img","input","ins","kbd","keygen","label","map","mark","math","meter","noscript","object","output","progress","q","ruby","s","samp","select","small","span","strong","sub","sup","svg","template","textarea","time","u","var","video","wbr","text","acronym","address","big","dt","ins","small","strike","tt","pre","h1","h2","h3","h4","h5","h6"],f=void 0===r.preserve_newlines?!0:r.preserve_newlines,m=f?isNaN(parseInt(r.max_preserve_newlines,10))?32786:parseInt(r.max_preserve_newlines,10):0,g=void 0===r.indent_handlebars?!1:r.indent_handlebars,b=void 0===r.wrap_attributes?"auto":r.wrap_attributes,v=isNaN(parseInt(r.wrap_attributes_indent_size,10))?c:parseInt(r.wrap_attributes_indent_size,10),y=void 0===r.end_with_newline?!1:r.end_with_newline,w="object"==typeof r.extra_liners&&r.extra_liners?r.extra_liners.concat():"string"==typeof r.extra_liners?r.extra_liners.split(","):"head,body,/html".split(","),x=r.eol?r.eol:"\n",r.indent_with_tabs&&(u=" ",c=1),x=x.replace(/\\r/,"\r").replace(/\\n/,"\n"),o=new s,o.printer(n,u,c,p,d);;){var _=o.get_token();if(o.token_text=_[0],o.token_type=_[1],"TK_EOF"===o.token_type)break;switch(o.token_type){case"TK_TAG_START":o.print_newline(!1,o.output),o.print_token(o.token_text),o.indent_content&&(o.indent(),o.indent_content=!1),o.current_mode="CONTENT";break;case"TK_TAG_STYLE":case"TK_TAG_SCRIPT":o.print_newline(!1,o.output),o.print_token(o.token_text),o.current_mode="CONTENT";break;case"TK_TAG_END":if("TK_CONTENT"===o.last_token&&""===o.last_text){var k=o.token_text.match(/\w+/)[0],E=null;o.output.length&&(E=o.output[o.output.length-1].match(/(?:<|{{#)\s*(\w+)/)),(null===E||E[1]!==k&&!o.Utils.in_array(E[1],h))&&o.print_newline(!1,o.output)}o.print_token(o.token_text),o.current_mode="CONTENT";break;case"TK_TAG_SINGLE":var T=o.token_text.match(/^\s*<([a-z-]+)/i);T&&o.Utils.in_array(T[1],h)||o.print_newline(!1,o.output),o.print_token(o.token_text),o.current_mode="CONTENT";break;case"TK_TAG_HANDLEBARS_ELSE":for(var S=!1,C=o.output.length-1;C>=0&&"\n"!==o.output[C];C--)if(o.output[C].match(/{{#if/)){S=!0;break}S||o.print_newline(!1,o.output),o.print_token(o.token_text),o.indent_content&&(o.indent(),o.indent_content=!1),o.current_mode="CONTENT";break;case"TK_TAG_HANDLEBARS_COMMENT":o.print_token(o.token_text),o.current_mode="TAG";break;case"TK_CONTENT":o.print_token(o.token_text),o.current_mode="TAG";break;case"TK_STYLE":case"TK_SCRIPT":if(""!==o.token_text){o.print_newline(!1,o.output);var A,R=o.token_text,N=1;"TK_SCRIPT"===o.token_type?A="function"==typeof i&&i:"TK_STYLE"===o.token_type&&(A="function"==typeof a&&a),"keep"===r.indent_scripts?N=0:"separate"===r.indent_scripts&&(N=-o.indent_level);var D=o.get_full_indent(N);if(A){var L=function(){this.eol="\n"};L.prototype=r;var P=new L;R=A(R.replace(/^\s*/,D),P)}else{var I=R.match(/^\s*/)[0],O=I.match(/[^\n\r]*$/)[0].split(o.indent_string).length-1,j=o.get_full_indent(N-O);R=R.replace(/^\s*/,D).replace(/\r\n|\r|\n/g,"\n"+j).replace(/\s+$/,"")}R&&(o.print_token_raw(R),o.print_newline(!0,o.output))}o.current_mode="TAG";break;default:""!==o.token_text&&o.print_token(o.token_text)}o.last_token=o.token_type,o.last_text=o.token_text}var M=o.output.join("").replace(/[\r\n\t ]+$/,"");return y&&(M+="\n"),"\n"!==x&&(M=M.replace(/[\n]/g,x)),M}if("function"==typeof define&&define.amd)define("deps/beautify-html",["require","./beautify","./beautify-css"],function(e){var t=e("./beautify"),r=e("./beautify-css");return{html_beautify:function(e,i){return n(e,i,t.js_beautify,r.css_beautify)}}});else if("undefined"!=typeof exports){var r=require("./beautify.js"),i=require("./beautify-css.js");exports.html_beautify=function(e,t){return n(e,t,r.js_beautify,i.css_beautify)}}else"undefined"!=typeof window?window.html_beautify=function(e,t){return n(e,t,window.js_beautify,window.css_beautify)}:"undefined"!=typeof global&&(global.html_beautify=function(e,t){return n(e,t,global.js_beautify,global.css_beautify)})}(),define("core/beautify-options",[],function(){return Object.freeze({brace_style:"expand",extra_liners:["section"],indent_char:" ",indent_handlebars:!1,indent_inner_html:!1,indent_size:2,max_preserve_newlines:5,preserve_newlines:!0,wrap_line_length:0})}),define("core/markdown",["deps/marked","core/utils","deps/highlight","deps/beautify-html","core/beautify-options"],function(e,t,n,r,i){function a(){var e=document.createElement("div");return function(r,i){var a,s=t.calculateLeftPad(r);if(s){var o=new RegExp("^ {"+s+"}","gm");a=r.replace(o,"")}else a=r;e.innerHTML=a;var l=e.textContent,c=[].concat(i||p),u=n.highlightAuto(l,c);return u.value}}function s(n){var r=t.normalizePadding(n),i=r.replace(/>/g,">"),a=e(i);return a}function o(e){return function(t){Array.from(t.querySelectorAll(e)).map(function(e){return{element:e,html:s(e.innerHTML)}}).reduce(function(e,t){var n=t.element,r=e;for(e.innerHTML=t.html,e.firstChild&&n.localName===e.firstChild.localName&&(r=e.firstChild),n.innerHTML="";r.firstChild;)t.element.appendChild(r.firstChild);return e},t.ownerDocument.createElement("div"))}}function l(e){function t(e){return parseInt(e.tagName.charAt(1),10)}function n(e){for(var t;e>0;)if(e--,t=c[e])return t}function r(e){for(e=e.firstChild;e;){if(p.test(e.tagName))return e;e=e.nextSibling}return null}function i(r){var i=e.createElement("section"),a=t(r);i.appendChild(r),n(a).appendChild(i),c[a]=i,c.length=a+1,u=i}function a(e,i){var a=r(e),s=a?t(a):1,o=n(s);a&&e.removeChild(a),e.appendChild(i(e)),a&&e.insertBefore(a,e.firstChild),o.appendChild(e),u=o}function s(e){u.appendChild(e)}function o(){return l}var l=e.createDocumentFragment(),c=[l],u=l,p=/H[1-6]/;return{addHeader:i,addSection:a,addElement:s,getRoot:o}}function c(e,t){function n(e){for(var r,i,a=l(t);e.firstChild;)if(r=e.firstChild,r.nodeType===Node.ELEMENT_NODE)switch(i=r.localName){case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":a.addHeader(r);break;case"section":a.addSection(r,n);break;default:a.addElement(r)}else e.removeChild(r);return a.getRoot()}return n(e)}function u(e){Array.from(e).forEach(function(e){var t=e.ownerDocument.createTextNode(e.textContent);e.parentElement.replaceChild(t,e)})}var p=Object.freeze(["css","html","http","js","json","markdown","xml","xquery"]);n.configure({tabReplace:" "}),e.setOptions({sanitize:!1,gfm:!0,highlight:a()});var d=o("section, .issue, .note, .req");return{run:function(e,t,n){if("markdown"===e.format){var a=t.getElementById("respec-ui");a.remove();var o=t.createElement("body");o.innerHTML=t.body.innerHTML,d(o);var l=s(o.innerHTML),p=l.replace(/<p>\s*<\/p>/gm,"").replace(/\n\s*"</gm," "<"),h=r.html_beautify(p,i);o.innerHTML=h,u(o.querySelectorAll("pre.nolinks a[href]"));var f=c(o,t);o.appendChild(f),o.appendChild(a),t.body.parentNode.replaceChild(o,t.body)}n()}}}),function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("deps/handlebars",[],t):"object"==typeof exports?exports.Handlebars=t():e.Handlebars=t()}(this,function(){return function(e){function t(r){if(n[r])return n[r].exports;var i=n[r]={exports:{},id:r,loaded:!1};return e[r].call(i.exports,i,i.exports,t),i.loaded=!0,i.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){"use strict";function r(){var e=b();return e.compile=function(t,n){return u.compile(t,n,e)},e.precompile=function(t,n){return u.precompile(t,n,e)},e.AST=l["default"],e.Compiler=u.Compiler,e.JavaScriptCompiler=d["default"],e.Parser=c.parser,e.parse=c.parse,e}var i=n(1)["default"];t.__esModule=!0;var a=n(2),s=i(a),o=n(21),l=i(o),c=n(22),u=n(27),p=n(28),d=i(p),h=n(25),f=i(h),m=n(20),g=i(m),b=s["default"].create,v=r();v.create=r,g["default"](v),v.Visitor=f["default"],v["default"]=v,t["default"]=v,e.exports=t["default"]},function(e,t){"use strict";t["default"]=function(e){return e&&e.__esModule?e:{"default":e}},t.__esModule=!0},function(e,t,n){"use strict";function r(){var e=new o.HandlebarsEnvironment;return h.extend(e,o),e.SafeString=c["default"],e.Exception=p["default"],e.Utils=h,e.escapeExpression=h.escapeExpression,e.VM=m,e.template=function(t){return m.template(t,e)},e}var i=n(3)["default"],a=n(1)["default"];t.__esModule=!0;var s=n(4),o=i(s),l=n(18),c=a(l),u=n(6),p=a(u),d=n(5),h=i(d),f=n(19),m=i(f),g=n(20),b=a(g),v=r();v.create=r,b["default"](v),v["default"]=v,t["default"]=v,e.exports=t["default"]},function(e,t){"use strict";t["default"]=function(e){
if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t["default"]=e,t},t.__esModule=!0},function(e,t,n){"use strict";function r(e,t,n){this.helpers=e||{},this.partials=t||{},this.decorators=n||{},l.registerDefaultHelpers(this),c.registerDefaultDecorators(this)}var i=n(1)["default"];t.__esModule=!0,t.HandlebarsEnvironment=r;var a=n(5),s=n(6),o=i(s),l=n(7),c=n(15),u=n(17),p=i(u),d="4.0.5";t.VERSION=d;var h=7;t.COMPILER_REVISION=h;var f={1:"<= 1.0.rc.2",2:"== 1.0.0-rc.3",3:"== 1.0.0-rc.4",4:"== 1.x.x",5:"== 2.0.0-alpha.x",6:">= 2.0.0-beta.1",7:">= 4.0.0"};t.REVISION_CHANGES=f;var m="[object Object]";r.prototype={constructor:r,logger:p["default"],log:p["default"].log,registerHelper:function(e,t){if(a.toString.call(e)===m){if(t)throw new o["default"]("Arg not supported with multiple helpers");a.extend(this.helpers,e)}else this.helpers[e]=t},unregisterHelper:function(e){delete this.helpers[e]},registerPartial:function(e,t){if(a.toString.call(e)===m)a.extend(this.partials,e);else{if("undefined"==typeof t)throw new o["default"]('Attempting to register a partial called "'+e+'" as undefined');this.partials[e]=t}},unregisterPartial:function(e){delete this.partials[e]},registerDecorator:function(e,t){if(a.toString.call(e)===m){if(t)throw new o["default"]("Arg not supported with multiple decorators");a.extend(this.decorators,e)}else this.decorators[e]=t},unregisterDecorator:function(e){delete this.decorators[e]}};var g=p["default"].log;t.log=g,t.createFrame=a.createFrame,t.logger=p["default"]},function(e,t){"use strict";function n(e){return u[e]}function r(e){for(var t=1;t<arguments.length;t++)for(var n in arguments[t])Object.prototype.hasOwnProperty.call(arguments[t],n)&&(e[n]=arguments[t][n]);return e}function i(e,t){for(var n=0,r=e.length;r>n;n++)if(e[n]===t)return n;return-1}function a(e){if("string"!=typeof e){if(e&&e.toHTML)return e.toHTML();if(null==e)return"";if(!e)return e+"";e=""+e}return d.test(e)?e.replace(p,n):e}function s(e){return e||0===e?m(e)&&0===e.length?!0:!1:!0}function o(e){var t=r({},e);return t._parent=e,t}function l(e,t){return e.path=t,e}function c(e,t){return(e?e+".":"")+t}t.__esModule=!0,t.extend=r,t.indexOf=i,t.escapeExpression=a,t.isEmpty=s,t.createFrame=o,t.blockParams=l,t.appendContextPath=c;var u={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`","=":"="},p=/[&<>"'`=]/g,d=/[&<>"'`=]/,h=Object.prototype.toString;t.toString=h;var f=function(e){return"function"==typeof e};f(/x/)&&(t.isFunction=f=function(e){return"function"==typeof e&&"[object Function]"===h.call(e)}),t.isFunction=f;var m=Array.isArray||function(e){return e&&"object"==typeof e?"[object Array]"===h.call(e):!1};t.isArray=m},function(e,t){"use strict";function n(e,t){var i=t&&t.loc,a=void 0,s=void 0;i&&(a=i.start.line,s=i.start.column,e+=" - "+a+":"+s);for(var o=Error.prototype.constructor.call(this,e),l=0;l<r.length;l++)this[r[l]]=o[r[l]];Error.captureStackTrace&&Error.captureStackTrace(this,n),i&&(this.lineNumber=a,this.column=s)}t.__esModule=!0;var r=["description","fileName","lineNumber","message","name","number","stack"];n.prototype=new Error,t["default"]=n,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){s["default"](e),l["default"](e),u["default"](e),d["default"](e),f["default"](e),g["default"](e),v["default"](e)}var i=n(1)["default"];t.__esModule=!0,t.registerDefaultHelpers=r;var a=n(8),s=i(a),o=n(9),l=i(o),c=n(10),u=i(c),p=n(11),d=i(p),h=n(12),f=i(h),m=n(13),g=i(m),b=n(14),v=i(b)},function(e,t,n){"use strict";t.__esModule=!0;var r=n(5);t["default"]=function(e){e.registerHelper("blockHelperMissing",function(t,n){var i=n.inverse,a=n.fn;if(t===!0)return a(this);if(t===!1||null==t)return i(this);if(r.isArray(t))return t.length>0?(n.ids&&(n.ids=[n.name]),e.helpers.each(t,n)):i(this);if(n.data&&n.ids){var s=r.createFrame(n.data);s.contextPath=r.appendContextPath(n.data.contextPath,n.name),n={data:s}}return a(t,n)})},e.exports=t["default"]},function(e,t,n){"use strict";var r=n(1)["default"];t.__esModule=!0;var i=n(5),a=n(6),s=r(a);t["default"]=function(e){e.registerHelper("each",function(e,t){function n(t,n,a){c&&(c.key=t,c.index=n,c.first=0===n,c.last=!!a,u&&(c.contextPath=u+t)),l+=r(e[t],{data:c,blockParams:i.blockParams([e[t],t],[u+t,null])})}if(!t)throw new s["default"]("Must pass iterator to #each");var r=t.fn,a=t.inverse,o=0,l="",c=void 0,u=void 0;if(t.data&&t.ids&&(u=i.appendContextPath(t.data.contextPath,t.ids[0])+"."),i.isFunction(e)&&(e=e.call(this)),t.data&&(c=i.createFrame(t.data)),e&&"object"==typeof e)if(i.isArray(e))for(var p=e.length;p>o;o++)o in e&&n(o,o,o===e.length-1);else{var d=void 0;for(var h in e)e.hasOwnProperty(h)&&(void 0!==d&&n(d,o-1),d=h,o++);void 0!==d&&n(d,o-1,!0)}return 0===o&&(l=a(this)),l})},e.exports=t["default"]},function(e,t,n){"use strict";var r=n(1)["default"];t.__esModule=!0;var i=n(6),a=r(i);t["default"]=function(e){e.registerHelper("helperMissing",function(){if(1!==arguments.length)throw new a["default"]('Missing helper: "'+arguments[arguments.length-1].name+'"')})},e.exports=t["default"]},function(e,t,n){"use strict";t.__esModule=!0;var r=n(5);t["default"]=function(e){e.registerHelper("if",function(e,t){return r.isFunction(e)&&(e=e.call(this)),!t.hash.includeZero&&!e||r.isEmpty(e)?t.inverse(this):t.fn(this)}),e.registerHelper("unless",function(t,n){return e.helpers["if"].call(this,t,{fn:n.inverse,inverse:n.fn,hash:n.hash})})},e.exports=t["default"]},function(e,t){"use strict";t.__esModule=!0,t["default"]=function(e){e.registerHelper("log",function(){for(var t=[void 0],n=arguments[arguments.length-1],r=0;r<arguments.length-1;r++)t.push(arguments[r]);var i=1;null!=n.hash.level?i=n.hash.level:n.data&&null!=n.data.level&&(i=n.data.level),t[0]=i,e.log.apply(e,t)})},e.exports=t["default"]},function(e,t){"use strict";t.__esModule=!0,t["default"]=function(e){e.registerHelper("lookup",function(e,t){return e&&e[t]})},e.exports=t["default"]},function(e,t,n){"use strict";t.__esModule=!0;var r=n(5);t["default"]=function(e){e.registerHelper("with",function(e,t){r.isFunction(e)&&(e=e.call(this));var n=t.fn;if(r.isEmpty(e))return t.inverse(this);var i=t.data;return t.data&&t.ids&&(i=r.createFrame(t.data),i.contextPath=r.appendContextPath(t.data.contextPath,t.ids[0])),n(e,{data:i,blockParams:r.blockParams([e],[i&&i.contextPath])})})},e.exports=t["default"]},function(e,t,n){"use strict";function r(e){s["default"](e)}var i=n(1)["default"];t.__esModule=!0,t.registerDefaultDecorators=r;var a=n(16),s=i(a)},function(e,t,n){"use strict";t.__esModule=!0;var r=n(5);t["default"]=function(e){e.registerDecorator("inline",function(e,t,n,i){var a=e;return t.partials||(t.partials={},a=function(i,a){var s=n.partials;n.partials=r.extend({},s,t.partials);var o=e(i,a);return n.partials=s,o}),t.partials[i.args[0]]=i.fn,a})},e.exports=t["default"]},function(e,t,n){"use strict";t.__esModule=!0;var r=n(5),i={methodMap:["debug","info","warn","error"],level:"info",lookupLevel:function(e){if("string"==typeof e){var t=r.indexOf(i.methodMap,e.toLowerCase());e=t>=0?t:parseInt(e,10)}return e},log:function(e){if(e=i.lookupLevel(e),"undefined"!=typeof console&&i.lookupLevel(i.level)<=e){var t=i.methodMap[e];console[t]||(t="log");for(var n=arguments.length,r=Array(n>1?n-1:0),a=1;n>a;a++)r[a-1]=arguments[a];console[t].apply(console,r)}}};t["default"]=i,e.exports=t["default"]},function(e,t){"use strict";function n(e){this.string=e}t.__esModule=!0,n.prototype.toString=n.prototype.toHTML=function(){return""+this.string},t["default"]=n,e.exports=t["default"]},function(e,t,n){"use strict";function r(e){var t=e&&e[0]||1,n=b.COMPILER_REVISION;if(t!==n){if(n>t){var r=b.REVISION_CHANGES[n],i=b.REVISION_CHANGES[t];throw new g["default"]("Template was precompiled with an older version of Handlebars than the current runtime. Please update your precompiler to a newer version ("+r+") or downgrade your runtime to an older version ("+i+").")}throw new g["default"]("Template was precompiled with a newer version of Handlebars than the current runtime. Please update your runtime to a newer version ("+e[1]+").")}}function i(e,t){function n(n,r,i){i.hash&&(r=f.extend({},r,i.hash),i.ids&&(i.ids[0]=!0)),n=t.VM.resolvePartial.call(this,n,r,i);var a=t.VM.invokePartial.call(this,n,r,i);if(null==a&&t.compile&&(i.partials[i.name]=t.compile(n,e.compilerOptions,t),a=i.partials[i.name](r,i)),null!=a){if(i.indent){for(var s=a.split("\n"),o=0,l=s.length;l>o&&(s[o]||o+1!==l);o++)s[o]=i.indent+s[o];a=s.join("\n")}return a}throw new g["default"]("The partial "+i.name+" could not be compiled when running in runtime-only mode")}function r(t){function n(t){return""+e.main(i,t,i.helpers,i.partials,s,l,o)}var a=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],s=a.data;r._setup(a),!a.partial&&e.useData&&(s=c(t,s));var o=void 0,l=e.useBlockParams?[]:void 0;return e.useDepths&&(o=a.depths?t!==a.depths[0]?[t].concat(a.depths):a.depths:[t]),(n=u(e.main,n,i,a.depths||[],s,l))(t,a)}if(!t)throw new g["default"]("No environment passed to template");if(!e||!e.main)throw new g["default"]("Unknown template object: "+typeof e);e.main.decorator=e.main_d,t.VM.checkRevision(e.compiler);var i={strict:function(e,t){if(!(t in e))throw new g["default"]('"'+t+'" not defined in '+e);return e[t]},lookup:function(e,t){for(var n=e.length,r=0;n>r;r++)if(e[r]&&null!=e[r][t])return e[r][t]},lambda:function(e,t){return"function"==typeof e?e.call(t):e},escapeExpression:f.escapeExpression,invokePartial:n,fn:function(t){var n=e[t];return n.decorator=e[t+"_d"],n},programs:[],program:function(e,t,n,r,i){var s=this.programs[e],o=this.fn(e);return t||i||r||n?s=a(this,e,o,t,n,r,i):s||(s=this.programs[e]=a(this,e,o)),s},data:function(e,t){for(;e&&t--;)e=e._parent;return e},merge:function(e,t){var n=e||t;return e&&t&&e!==t&&(n=f.extend({},t,e)),n},noop:t.VM.noop,compilerInfo:e.compiler};return r.isTop=!0,r._setup=function(n){n.partial?(i.helpers=n.helpers,i.partials=n.partials,i.decorators=n.decorators):(i.helpers=i.merge(n.helpers,t.helpers),e.usePartial&&(i.partials=i.merge(n.partials,t.partials)),(e.usePartial||e.useDecorators)&&(i.decorators=i.merge(n.decorators,t.decorators)))},r._child=function(t,n,r,s){if(e.useBlockParams&&!r)throw new g["default"]("must pass block params");if(e.useDepths&&!s)throw new g["default"]("must pass parent depths");return a(i,t,e[t],n,0,r,s)},r}function a(e,t,n,r,i,a,s){function o(t){var i=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],o=s;return s&&t!==s[0]&&(o=[t].concat(s)),n(e,t,e.helpers,e.partials,i.data||r,a&&[i.blockParams].concat(a),o)}return o=u(n,o,e,s,r,a),o.program=t,o.depth=s?s.length:0,o.blockParams=i||0,o}function s(e,t,n){return e?e.call||n.name||(n.name=e,e=n.partials[e]):e="@partial-block"===n.name?n.data["partial-block"]:n.partials[n.name],e}function o(e,t,n){n.partial=!0,n.ids&&(n.data.contextPath=n.ids[0]||n.data.contextPath);var r=void 0;if(n.fn&&n.fn!==l&&(n.data=b.createFrame(n.data),r=n.data["partial-block"]=n.fn,r.partials&&(n.partials=f.extend({},n.partials,r.partials))),void 0===e&&r&&(e=r),void 0===e)throw new g["default"]("The partial "+n.name+" could not be found");return e instanceof Function?e(t,n):void 0}function l(){return""}function c(e,t){return t&&"root"in t||(t=t?b.createFrame(t):{},t.root=e),t}function u(e,t,n,r,i,a){if(e.decorator){var s={};t=e.decorator(t,s,n,r&&r[0],i,a,r),f.extend(t,s)}return t}var p=n(3)["default"],d=n(1)["default"];t.__esModule=!0,t.checkRevision=r,t.template=i,t.wrapProgram=a,t.resolvePartial=s,t.invokePartial=o,t.noop=l;var h=n(5),f=p(h),m=n(6),g=d(m),b=n(4)},function(e,t){(function(n){"use strict";t.__esModule=!0,t["default"]=function(e){var t="undefined"!=typeof n?n:window,r=t.Handlebars;e.noConflict=function(){return t.Handlebars===e&&(t.Handlebars=r),e}},e.exports=t["default"]}).call(t,function(){return this}())},function(e,t){"use strict";t.__esModule=!0;var n={helpers:{helperExpression:function(e){return"SubExpression"===e.type||("MustacheStatement"===e.type||"BlockStatement"===e.type)&&!!(e.params&&e.params.length||e.hash)},scopedId:function(e){return/^\.|this\b/.test(e.original)},simpleId:function(e){return 1===e.parts.length&&!n.helpers.scopedId(e)&&!e.depth}}};t["default"]=n,e.exports=t["default"]},function(e,t,n){"use strict";function r(e,t){if("Program"===e.type)return e;o["default"].yy=h,h.locInfo=function(e){return new h.SourceLocation(t&&t.srcName,e)};var n=new c["default"](t);return n.accept(o["default"].parse(e))}var i=n(1)["default"],a=n(3)["default"];t.__esModule=!0,t.parse=r;var s=n(23),o=i(s),l=n(24),c=i(l),u=n(26),p=a(u),d=n(5);t.parser=o["default"];var h={};d.extend(h,p)},function(e,t){"use strict";var n=function(){function e(){this.yy={}}var t={trace:function(){},yy:{},symbols_:{error:2,root:3,program:4,EOF:5,program_repetition0:6,statement:7,mustache:8,block:9,rawBlock:10,partial:11,partialBlock:12,content:13,COMMENT:14,CONTENT:15,openRawBlock:16,rawBlock_repetition_plus0:17,END_RAW_BLOCK:18,OPEN_RAW_BLOCK:19,helperName:20,openRawBlock_repetition0:21,openRawBlock_option0:22,CLOSE_RAW_BLOCK:23,openBlock:24,block_option0:25,closeBlock:26,openInverse:27,block_option1:28,OPEN_BLOCK:29,openBlock_repetition0:30,openBlock_option0:31,openBlock_option1:32,CLOSE:33,OPEN_INVERSE:34,openInverse_repetition0:35,openInverse_option0:36,openInverse_option1:37,openInverseChain:38,OPEN_INVERSE_CHAIN:39,openInverseChain_repetition0:40,openInverseChain_option0:41,openInverseChain_option1:42,inverseAndProgram:43,INVERSE:44,inverseChain:45,inverseChain_option0:46,OPEN_ENDBLOCK:47,OPEN:48,mustache_repetition0:49,mustache_option0:50,OPEN_UNESCAPED:51,mustache_repetition1:52,mustache_option1:53,CLOSE_UNESCAPED:54,OPEN_PARTIAL:55,partialName:56,partial_repetition0:57,partial_option0:58,openPartialBlock:59,OPEN_PARTIAL_BLOCK:60,openPartialBlock_repetition0:61,openPartialBlock_option0:62,param:63,sexpr:64,OPEN_SEXPR:65,sexpr_repetition0:66,sexpr_option0:67,CLOSE_SEXPR:68,hash:69,hash_repetition_plus0:70,hashSegment:71,ID:72,EQUALS:73,blockParams:74,OPEN_BLOCK_PARAMS:75,blockParams_repetition_plus0:76,CLOSE_BLOCK_PARAMS:77,path:78,dataName:79,STRING:80,NUMBER:81,BOOLEAN:82,UNDEFINED:83,NULL:84,DATA:85,pathSegments:86,SEP:87,$accept:0,$end:1},terminals_:{2:"error",5:"EOF",14:"COMMENT",15:"CONTENT",18:"END_RAW_BLOCK",19:"OPEN_RAW_BLOCK",23:"CLOSE_RAW_BLOCK",29:"OPEN_BLOCK",33:"CLOSE",34:"OPEN_INVERSE",39:"OPEN_INVERSE_CHAIN",44:"INVERSE",47:"OPEN_ENDBLOCK",48:"OPEN",51:"OPEN_UNESCAPED",54:"CLOSE_UNESCAPED",55:"OPEN_PARTIAL",60:"OPEN_PARTIAL_BLOCK",65:"OPEN_SEXPR",68:"CLOSE_SEXPR",72:"ID",73:"EQUALS",75:"OPEN_BLOCK_PARAMS",77:"CLOSE_BLOCK_PARAMS",80:"STRING",81:"NUMBER",82:"BOOLEAN",83:"UNDEFINED",84:"NULL",85:"DATA",87:"SEP"},productions_:[0,[3,2],[4,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[13,1],[10,3],[16,5],[9,4],[9,4],[24,6],[27,6],[38,6],[43,2],[45,3],[45,1],[26,3],[8,5],[8,5],[11,5],[12,3],[59,5],[63,1],[63,1],[64,5],[69,1],[71,3],[74,3],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[56,1],[56,1],[79,2],[78,1],[86,3],[86,1],[6,0],[6,2],[17,1],[17,2],[21,0],[21,2],[22,0],[22,1],[25,0],[25,1],[28,0],[28,1],[30,0],[30,2],[31,0],[31,1],[32,0],[32,1],[35,0],[35,2],[36,0],[36,1],[37,0],[37,1],[40,0],[40,2],[41,0],[41,1],[42,0],[42,1],[46,0],[46,1],[49,0],[49,2],[50,0],[50,1],[52,0],[52,2],[53,0],[53,1],[57,0],[57,2],[58,0],[58,1],[61,0],[61,2],[62,0],[62,1],[66,0],[66,2],[67,0],[67,1],[70,1],[70,2],[76,1],[76,2]],performAction:function(e,t,n,r,i,a,s){var o=a.length-1;switch(i){case 1:return a[o-1];case 2:this.$=r.prepareProgram(a[o]);break;case 3:this.$=a[o];break;case 4:this.$=a[o];break;case 5:this.$=a[o];break;case 6:this.$=a[o];break;case 7:this.$=a[o];break;case 8:this.$=a[o];break;case 9:this.$={type:"CommentStatement",value:r.stripComment(a[o]),strip:r.stripFlags(a[o],a[o]),loc:r.locInfo(this._$)};break;case 10:this.$={type:"ContentStatement",original:a[o],value:a[o],loc:r.locInfo(this._$)};break;case 11:this.$=r.prepareRawBlock(a[o-2],a[o-1],a[o],this._$);break;case 12:this.$={path:a[o-3],params:a[o-2],hash:a[o-1]};break;case 13:this.$=r.prepareBlock(a[o-3],a[o-2],a[o-1],a[o],!1,this._$);break;case 14:this.$=r.prepareBlock(a[o-3],a[o-2],a[o-1],a[o],!0,this._$);break;case 15:this.$={open:a[o-5],path:a[o-4],params:a[o-3],hash:a[o-2],blockParams:a[o-1],strip:r.stripFlags(a[o-5],a[o])};break;case 16:this.$={path:a[o-4],params:a[o-3],hash:a[o-2],blockParams:a[o-1],strip:r.stripFlags(a[o-5],a[o])};break;case 17:this.$={path:a[o-4],params:a[o-3],hash:a[o-2],blockParams:a[o-1],strip:r.stripFlags(a[o-5],a[o])};break;case 18:this.$={strip:r.stripFlags(a[o-1],a[o-1]),program:a[o]};break;case 19:var l=r.prepareBlock(a[o-2],a[o-1],a[o],a[o],!1,this._$),c=r.prepareProgram([l],a[o-1].loc);c.chained=!0,this.$={strip:a[o-2].strip,program:c,chain:!0};break;case 20:this.$=a[o];break;case 21:this.$={path:a[o-1],strip:r.stripFlags(a[o-2],a[o])};break;case 22:this.$=r.prepareMustache(a[o-3],a[o-2],a[o-1],a[o-4],r.stripFlags(a[o-4],a[o]),this._$);break;case 23:this.$=r.prepareMustache(a[o-3],a[o-2],a[o-1],a[o-4],r.stripFlags(a[o-4],a[o]),this._$);break;case 24:this.$={type:"PartialStatement",name:a[o-3],params:a[o-2],hash:a[o-1],indent:"",strip:r.stripFlags(a[o-4],a[o]),loc:r.locInfo(this._$)};break;case 25:this.$=r.preparePartialBlock(a[o-2],a[o-1],a[o],this._$);break;case 26:this.$={path:a[o-3],params:a[o-2],hash:a[o-1],strip:r.stripFlags(a[o-4],a[o])};break;case 27:this.$=a[o];break;case 28:this.$=a[o];break;case 29:this.$={type:"SubExpression",path:a[o-3],params:a[o-2],hash:a[o-1],loc:r.locInfo(this._$)};break;case 30:this.$={type:"Hash",pairs:a[o],loc:r.locInfo(this._$)};break;case 31:this.$={type:"HashPair",key:r.id(a[o-2]),value:a[o],loc:r.locInfo(this._$)};break;case 32:this.$=r.id(a[o-1]);break;case 33:this.$=a[o];break;case 34:this.$=a[o];break;case 35:this.$={type:"StringLiteral",value:a[o],original:a[o],loc:r.locInfo(this._$)};break;case 36:this.$={type:"NumberLiteral",value:Number(a[o]),original:Number(a[o]),loc:r.locInfo(this._$)};break;case 37:this.$={type:"BooleanLiteral",value:"true"===a[o],original:"true"===a[o],loc:r.locInfo(this._$)};break;case 38:this.$={type:"UndefinedLiteral",original:void 0,value:void 0,loc:r.locInfo(this._$)};break;case 39:this.$={type:"NullLiteral",original:null,value:null,loc:r.locInfo(this._$)};break;case 40:this.$=a[o];break;case 41:this.$=a[o];break;case 42:this.$=r.preparePath(!0,a[o],this._$);break;case 43:this.$=r.preparePath(!1,a[o],this._$);break;case 44:a[o-2].push({part:r.id(a[o]),original:a[o],separator:a[o-1]}),this.$=a[o-2];break;case 45:this.$=[{part:r.id(a[o]),original:a[o]}];break;case 46:this.$=[];break;case 47:a[o-1].push(a[o]);break;case 48:this.$=[a[o]];break;case 49:a[o-1].push(a[o]);break;case 50:this.$=[];break;case 51:a[o-1].push(a[o]);break;case 58:this.$=[];break;case 59:a[o-1].push(a[o]);break;case 64:this.$=[];break;case 65:a[o-1].push(a[o]);break;case 70:this.$=[];break;case 71:a[o-1].push(a[o]);break;case 78:this.$=[];break;case 79:a[o-1].push(a[o]);break;case 82:this.$=[];break;case 83:a[o-1].push(a[o]);break;case 86:this.$=[];break;case 87:a[o-1].push(a[o]);break;case 90:this.$=[];break;case 91:a[o-1].push(a[o]);break;case 94:this.$=[];break;case 95:a[o-1].push(a[o]);break;case 98:this.$=[a[o]];break;case 99:a[o-1].push(a[o]);break;case 100:this.$=[a[o]];break;case 101:a[o-1].push(a[o])}},table:[{3:1,4:2,5:[2,46],6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{1:[3]},{5:[1,4]},{5:[2,2],7:5,8:6,9:7,10:8,11:9,12:10,13:11,14:[1,12],15:[1,20],16:17,19:[1,23],24:15,27:16,29:[1,21],34:[1,22],39:[2,2],44:[2,2],47:[2,2],48:[1,13],51:[1,14],55:[1,18],59:19,60:[1,24]},{1:[2,1]},{5:[2,47],14:[2,47],15:[2,47],19:[2,47],29:[2,47],34:[2,47],39:[2,47],44:[2,47],47:[2,47],48:[2,47],51:[2,47],55:[2,47],60:[2,47]},{5:[2,3],14:[2,3],15:[2,3],19:[2,3],29:[2,3],34:[2,3],39:[2,3],44:[2,3],47:[2,3],48:[2,3],51:[2,3],55:[2,3],60:[2,3]},{5:[2,4],14:[2,4],15:[2,4],19:[2,4],29:[2,4],34:[2,4],39:[2,4],44:[2,4],47:[2,4],48:[2,4],51:[2,4],55:[2,4],60:[2,4]},{5:[2,5],14:[2,5],15:[2,5],19:[2,5],29:[2,5],34:[2,5],39:[2,5],44:[2,5],47:[2,5],48:[2,5],51:[2,5],55:[2,5],60:[2,5]},{5:[2,6],14:[2,6],15:[2,6],19:[2,6],29:[2,6],34:[2,6],39:[2,6],44:[2,6],47:[2,6],48:[2,6],51:[2,6],55:[2,6],60:[2,6]},{5:[2,7],14:[2,7],15:[2,7],19:[2,7],29:[2,7],34:[2,7],39:[2,7],44:[2,7],47:[2,7],48:[2,7],51:[2,7],55:[2,7],60:[2,7]},{5:[2,8],14:[2,8],15:[2,8],19:[2,8],29:[2,8],34:[2,8],39:[2,8],44:[2,8],47:[2,8],48:[2,8],51:[2,8],55:[2,8],60:[2,8]},{5:[2,9],14:[2,9],15:[2,9],19:[2,9],29:[2,9],34:[2,9],39:[2,9],44:[2,9],47:[2,9],48:[2,9],51:[2,9],55:[2,9],60:[2,9]},{20:25,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:36,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:37,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],39:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{4:38,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{13:40,15:[1,20],17:39},{20:42,56:41,64:43,65:[1,44],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:45,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{5:[2,10],14:[2,10],15:[2,10],18:[2,10],19:[2,10],29:[2,10],34:[2,10],39:[2,10],44:[2,10],47:[2,10],48:[2,10],51:[2,10],55:[2,10],60:[2,10]},{20:46,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:47,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:48,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:42,56:49,64:43,65:[1,44],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[2,78],49:50,65:[2,78],72:[2,78],80:[2,78],81:[2,78],82:[2,78],83:[2,78],84:[2,78],85:[2,78]},{23:[2,33],33:[2,33],54:[2,33],65:[2,33],68:[2,33],72:[2,33],75:[2,33],80:[2,33],81:[2,33],82:[2,33],83:[2,33],84:[2,33],85:[2,33]},{23:[2,34],33:[2,34],54:[2,34],65:[2,34],68:[2,34],72:[2,34],75:[2,34],80:[2,34],81:[2,34],82:[2,34],83:[2,34],84:[2,34],85:[2,34]},{23:[2,35],33:[2,35],54:[2,35],65:[2,35],68:[2,35],72:[2,35],75:[2,35],80:[2,35],81:[2,35],82:[2,35],83:[2,35],84:[2,35],85:[2,35]},{23:[2,36],33:[2,36],54:[2,36],65:[2,36],68:[2,36],72:[2,36],75:[2,36],80:[2,36],81:[2,36],82:[2,36],83:[2,36],84:[2,36],85:[2,36]},{23:[2,37],33:[2,37],54:[2,37],65:[2,37],68:[2,37],72:[2,37],75:[2,37],80:[2,37],81:[2,37],82:[2,37],83:[2,37],84:[2,37],85:[2,37]},{23:[2,38],33:[2,38],54:[2,38],65:[2,38],68:[2,38],72:[2,38],75:[2,38],80:[2,38],81:[2,38],82:[2,38],83:[2,38],84:[2,38],85:[2,38]},{23:[2,39],33:[2,39],54:[2,39],65:[2,39],68:[2,39],72:[2,39],75:[2,39],80:[2,39],81:[2,39],82:[2,39],83:[2,39],84:[2,39],85:[2,39]},{23:[2,43],33:[2,43],54:[2,43],65:[2,43],68:[2,43],72:[2,43],75:[2,43],80:[2,43],81:[2,43],82:[2,43],83:[2,43],84:[2,43],85:[2,43],87:[1,51]},{72:[1,35],86:52},{23:[2,45],33:[2,45],54:[2,45],65:[2,45],68:[2,45],72:[2,45],75:[2,45],80:[2,45],81:[2,45],82:[2,45],83:[2,45],84:[2,45],85:[2,45],87:[2,45]},{52:53,54:[2,82],65:[2,82],72:[2,82],80:[2,82],81:[2,82],82:[2,82],83:[2,82],84:[2,82],85:[2,82]},{25:54,38:56,39:[1,58],43:57,44:[1,59],45:55,47:[2,54]},{28:60,43:61,44:[1,59],47:[2,56]},{13:63,15:[1,20],18:[1,62]},{15:[2,48],18:[2,48]},{33:[2,86],57:64,65:[2,86],72:[2,86],80:[2,86],81:[2,86],82:[2,86],83:[2,86],84:[2,86],85:[2,86]},{33:[2,40],65:[2,40],72:[2,40],80:[2,40],81:[2,40],82:[2,40],83:[2,40],84:[2,40],85:[2,40]},{33:[2,41],65:[2,41],72:[2,41],80:[2,41],81:[2,41],82:[2,41],83:[2,41],84:[2,41],85:[2,41]},{20:65,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{26:66,47:[1,67]},{30:68,33:[2,58],65:[2,58],72:[2,58],75:[2,58],80:[2,58],81:[2,58],82:[2,58],83:[2,58],84:[2,58],85:[2,58]},{33:[2,64],35:69,65:[2,64],72:[2,64],75:[2,64],80:[2,64],81:[2,64],82:[2,64],83:[2,64],84:[2,64],85:[2,64]},{21:70,23:[2,50],65:[2,50],72:[2,50],80:[2,50],81:[2,50],82:[2,50],83:[2,50],84:[2,50],85:[2,50]},{33:[2,90],61:71,65:[2,90],72:[2,90],80:[2,90],81:[2,90],82:[2,90],83:[2,90],84:[2,90],85:[2,90]},{20:75,33:[2,80],50:72,63:73,64:76,65:[1,44],69:74,70:77,71:78,72:[1,79],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{72:[1,80]},{23:[2,42],33:[2,42],54:[2,42],65:[2,42],68:[2,42],72:[2,42],75:[2,42],80:[2,42],81:[2,42],82:[2,42],83:[2,42],84:[2,42],85:[2,42],87:[1,51]},{20:75,53:81,54:[2,84],63:82,64:76,65:[1,44],69:83,70:77,71:78,72:[1,79],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{26:84,47:[1,67]},{47:[2,55]},{4:85,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],39:[2,46],44:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{47:[2,20]},{20:86,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{4:87,6:3,14:[2,46],15:[2,46],19:[2,46],29:[2,46],34:[2,46],47:[2,46],48:[2,46],51:[2,46],55:[2,46],60:[2,46]},{26:88,47:[1,67]},{47:[2,57]},{5:[2,11],14:[2,11],15:[2,11],19:[2,11],29:[2,11],34:[2,11],39:[2,11],44:[2,11],47:[2,11],48:[2,11],51:[2,11],55:[2,11],60:[2,11]},{15:[2,49],18:[2,49]},{20:75,33:[2,88],58:89,63:90,64:76,65:[1,44],69:91,70:77,71:78,72:[1,79],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{65:[2,94],66:92,68:[2,94],72:[2,94],80:[2,94],81:[2,94],82:[2,94],83:[2,94],84:[2,94],85:[2,94]},{5:[2,25],14:[2,25],15:[2,25],19:[2,25],29:[2,25],34:[2,25],39:[2,25],44:[2,25],47:[2,25],48:[2,25],51:[2,25],55:[2,25],60:[2,25]},{20:93,72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:75,31:94,33:[2,60],63:95,64:76,65:[1,44],69:96,70:77,71:78,72:[1,79],75:[2,60],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:75,33:[2,66],36:97,63:98,64:76,65:[1,44],69:99,70:77,71:78,72:[1,79],75:[2,66],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:75,22:100,23:[2,52],63:101,64:76,65:[1,44],69:102,70:77,71:78,72:[1,79],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{20:75,33:[2,92],62:103,63:104,64:76,65:[1,44],69:105,70:77,71:78,72:[1,79],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[1,106]},{33:[2,79],65:[2,79],72:[2,79],80:[2,79],81:[2,79],82:[2,79],83:[2,79],84:[2,79],85:[2,79]},{33:[2,81]},{23:[2,27],33:[2,27],54:[2,27],65:[2,27],68:[2,27],72:[2,27],75:[2,27],80:[2,27],81:[2,27],82:[2,27],83:[2,27],84:[2,27],85:[2,27]},{23:[2,28],33:[2,28],54:[2,28],65:[2,28],68:[2,28],72:[2,28],75:[2,28],80:[2,28],81:[2,28],82:[2,28],83:[2,28],84:[2,28],85:[2,28]},{23:[2,30],33:[2,30],54:[2,30],68:[2,30],71:107,72:[1,108],75:[2,30]},{23:[2,98],33:[2,98],54:[2,98],68:[2,98],72:[2,98],75:[2,98]},{23:[2,45],33:[2,45],54:[2,45],65:[2,45],68:[2,45],72:[2,45],73:[1,109],75:[2,45],80:[2,45],81:[2,45],82:[2,45],83:[2,45],84:[2,45],85:[2,45],87:[2,45]},{23:[2,44],33:[2,44],54:[2,44],65:[2,44],68:[2,44],72:[2,44],75:[2,44],80:[2,44],81:[2,44],82:[2,44],83:[2,44],84:[2,44],85:[2,44],87:[2,44]},{54:[1,110]},{54:[2,83],65:[2,83],72:[2,83],80:[2,83],81:[2,83],82:[2,83],83:[2,83],84:[2,83],85:[2,83]},{54:[2,85]},{5:[2,13],14:[2,13],15:[2,13],19:[2,13],29:[2,13],34:[2,13],39:[2,13],44:[2,13],47:[2,13],48:[2,13],51:[2,13],55:[2,13],60:[2,13]},{38:56,39:[1,58],43:57,44:[1,59],45:112,46:111,47:[2,76]},{33:[2,70],40:113,65:[2,70],72:[2,70],75:[2,70],80:[2,70],81:[2,70],82:[2,70],83:[2,70],84:[2,70],85:[2,70]},{47:[2,18]},{5:[2,14],14:[2,14],15:[2,14],19:[2,14],29:[2,14],34:[2,14],39:[2,14],44:[2,14],47:[2,14],48:[2,14],51:[2,14],55:[2,14],60:[2,14]},{33:[1,114]},{33:[2,87],65:[2,87],72:[2,87],80:[2,87],81:[2,87],82:[2,87],83:[2,87],84:[2,87],85:[2,87]},{33:[2,89]},{20:75,63:116,64:76,65:[1,44],67:115,68:[2,96],69:117,70:77,71:78,72:[1,79],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{33:[1,118]},{32:119,33:[2,62],74:120,75:[1,121]},{33:[2,59],65:[2,59],72:[2,59],75:[2,59],80:[2,59],81:[2,59],82:[2,59],83:[2,59],84:[2,59],85:[2,59]},{33:[2,61],75:[2,61]},{33:[2,68],37:122,74:123,75:[1,121]},{33:[2,65],65:[2,65],72:[2,65],75:[2,65],80:[2,65],81:[2,65],82:[2,65],83:[2,65],84:[2,65],85:[2,65]},{33:[2,67],75:[2,67]},{23:[1,124]},{23:[2,51],65:[2,51],72:[2,51],80:[2,51],81:[2,51],82:[2,51],83:[2,51],84:[2,51],85:[2,51]},{23:[2,53]},{33:[1,125]},{33:[2,91],65:[2,91],72:[2,91],80:[2,91],81:[2,91],82:[2,91],83:[2,91],84:[2,91],85:[2,91]},{33:[2,93]},{5:[2,22],14:[2,22],15:[2,22],19:[2,22],29:[2,22],34:[2,22],39:[2,22],44:[2,22],47:[2,22],48:[2,22],51:[2,22],55:[2,22],60:[2,22]},{23:[2,99],33:[2,99],54:[2,99],68:[2,99],72:[2,99],75:[2,99]},{73:[1,109]},{20:75,63:126,64:76,65:[1,44],72:[1,35],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{5:[2,23],14:[2,23],15:[2,23],19:[2,23],29:[2,23],34:[2,23],39:[2,23],44:[2,23],47:[2,23],48:[2,23],51:[2,23],55:[2,23],60:[2,23]},{47:[2,19]},{47:[2,77]},{20:75,33:[2,72],41:127,63:128,64:76,65:[1,44],69:129,70:77,71:78,72:[1,79],75:[2,72],78:26,79:27,80:[1,28],81:[1,29],82:[1,30],83:[1,31],84:[1,32],85:[1,34],86:33},{5:[2,24],14:[2,24],15:[2,24],19:[2,24],29:[2,24],34:[2,24],39:[2,24],44:[2,24],47:[2,24],48:[2,24],51:[2,24],55:[2,24],60:[2,24]},{68:[1,130]},{65:[2,95],68:[2,95],72:[2,95],80:[2,95],81:[2,95],82:[2,95],83:[2,95],84:[2,95],85:[2,95]},{68:[2,97]},{5:[2,21],14:[2,21],15:[2,21],19:[2,21],29:[2,21],34:[2,21],39:[2,21],44:[2,21],47:[2,21],48:[2,21],51:[2,21],55:[2,21],60:[2,21]},{33:[1,131]},{33:[2,63]},{72:[1,133],76:132},{33:[1,134]},{33:[2,69]},{15:[2,12]},{14:[2,26],15:[2,26],19:[2,26],29:[2,26],34:[2,26],47:[2,26],48:[2,26],51:[2,26],55:[2,26],60:[2,26]},{23:[2,31],33:[2,31],54:[2,31],68:[2,31],72:[2,31],75:[2,31]},{33:[2,74],42:135,74:136,75:[1,121]},{33:[2,71],65:[2,71],72:[2,71],75:[2,71],80:[2,71],81:[2,71],82:[2,71],83:[2,71],84:[2,71],85:[2,71]},{33:[2,73],75:[2,73]},{23:[2,29],33:[2,29],54:[2,29],65:[2,29],68:[2,29],72:[2,29],75:[2,29],80:[2,29],81:[2,29],82:[2,29],83:[2,29],84:[2,29],85:[2,29]},{14:[2,15],15:[2,15],19:[2,15],29:[2,15],34:[2,15],39:[2,15],44:[2,15],47:[2,15],48:[2,15],51:[2,15],55:[2,15],60:[2,15]},{72:[1,138],77:[1,137]},{72:[2,100],77:[2,100]},{14:[2,16],15:[2,16],19:[2,16],29:[2,16],34:[2,16],44:[2,16],47:[2,16],48:[2,16],51:[2,16],55:[2,16],60:[2,16]},{33:[1,139]},{33:[2,75]},{33:[2,32]},{72:[2,101],77:[2,101]},{14:[2,17],15:[2,17],19:[2,17],29:[2,17],34:[2,17],39:[2,17],44:[2,17],47:[2,17],48:[2,17],51:[2,17],55:[2,17],60:[2,17]}],defaultActions:{4:[2,1],55:[2,55],57:[2,20],61:[2,57],74:[2,81],83:[2,85],87:[2,18],91:[2,89],102:[2,53],105:[2,93],111:[2,19],112:[2,77],117:[2,97],120:[2,63],123:[2,69],124:[2,12],136:[2,75],137:[2,32]},parseError:function(e,t){throw new Error(e)},parse:function(e){function t(){var e;return e=n.lexer.lex()||1,"number"!=typeof e&&(e=n.symbols_[e]||e),e}var n=this,r=[0],i=[null],a=[],s=this.table,o="",l=0,c=0,u=0;this.lexer.setInput(e),this.lexer.yy=this.yy,this.yy.lexer=this.lexer,this.yy.parser=this,"undefined"==typeof this.lexer.yylloc&&(this.lexer.yylloc={});var p=this.lexer.yylloc;a.push(p);var d=this.lexer.options&&this.lexer.options.ranges;"function"==typeof this.yy.parseError&&(this.parseError=this.yy.parseError);for(var h,f,m,g,b,v,y,w,x,_={};;){if(m=r[r.length-1],this.defaultActions[m]?g=this.defaultActions[m]:((null===h||"undefined"==typeof h)&&(h=t()),g=s[m]&&s[m][h]),"undefined"==typeof g||!g.length||!g[0]){var k="";if(!u){x=[];for(v in s[m])this.terminals_[v]&&v>2&&x.push("'"+this.terminals_[v]+"'");k=this.lexer.showPosition?"Parse error on line "+(l+1)+":\n"+this.lexer.showPosition()+"\nExpecting "+x.join(", ")+", got '"+(this.terminals_[h]||h)+"'":"Parse error on line "+(l+1)+": Unexpected "+(1==h?"end of input":"'"+(this.terminals_[h]||h)+"'"),this.parseError(k,{text:this.lexer.match,token:this.terminals_[h]||h,line:this.lexer.yylineno,
loc:p,expected:x})}}if(g[0]instanceof Array&&g.length>1)throw new Error("Parse Error: multiple actions possible at state: "+m+", token: "+h);switch(g[0]){case 1:r.push(h),i.push(this.lexer.yytext),a.push(this.lexer.yylloc),r.push(g[1]),h=null,f?(h=f,f=null):(c=this.lexer.yyleng,o=this.lexer.yytext,l=this.lexer.yylineno,p=this.lexer.yylloc,u>0&&u--);break;case 2:if(y=this.productions_[g[1]][1],_.$=i[i.length-y],_._$={first_line:a[a.length-(y||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(y||1)].first_column,last_column:a[a.length-1].last_column},d&&(_._$.range=[a[a.length-(y||1)].range[0],a[a.length-1].range[1]]),b=this.performAction.call(_,o,c,l,this.yy,g[1],i,a),"undefined"!=typeof b)return b;y&&(r=r.slice(0,-1*y*2),i=i.slice(0,-1*y),a=a.slice(0,-1*y)),r.push(this.productions_[g[1]][0]),i.push(_.$),a.push(_._$),w=s[r[r.length-2]][r[r.length-1]],r.push(w);break;case 3:return!0}}return!0}},n=function(){var e={EOF:1,parseError:function(e,t){if(!this.yy.parser)throw new Error(e);this.yy.parser.parseError(e,t)},setInput:function(e){return this._input=e,this._more=this._less=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var e=this._input[0];this.yytext+=e,this.yyleng++,this.offset++,this.match+=e,this.matched+=e;var t=e.match(/(?:\r\n?|\n).*/g);return t?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),e},unput:function(e){var t=e.length,n=e.split(/(?:\r\n?|\n)/g);this._input=e+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-t-1),this.offset-=t;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),n.length-1&&(this.yylineno-=n.length-1);var i=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:n?(n.length===r.length?this.yylloc.first_column:0)+r[r.length-n.length].length-n[0].length:this.yylloc.first_column-t},this.options.ranges&&(this.yylloc.range=[i[0],i[0]+this.yyleng-t]),this},more:function(){return this._more=!0,this},less:function(e){this.unput(this.match.slice(e))},pastInput:function(){var e=this.matched.substr(0,this.matched.length-this.match.length);return(e.length>20?"...":"")+e.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var e=this.match;return e.length<20&&(e+=this._input.substr(0,20-e.length)),(e.substr(0,20)+(e.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var e=this.pastInput(),t=new Array(e.length+1).join("-");return e+this.upcomingInput()+"\n"+t+"^"},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var e,t,n,r,i;this._more||(this.yytext="",this.match="");for(var a=this._currentRules(),s=0;s<a.length&&(n=this._input.match(this.rules[a[s]]),!n||t&&!(n[0].length>t[0].length)||(t=n,r=s,this.options.flex));s++);return t?(i=t[0].match(/(?:\r\n?|\n).*/g),i&&(this.yylineno+=i.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:i?i[i.length-1].length-i[i.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],e=this.performAction.call(this,this.yy,this,a[r],this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),e?e:void 0):""===this._input?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var e=this.next();return"undefined"!=typeof e?e:this.lex()},begin:function(e){this.conditionStack.push(e)},popState:function(){return this.conditionStack.pop()},_currentRules:function(){return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules},topState:function(){return this.conditionStack[this.conditionStack.length-2]},pushState:function(e){this.begin(e)}};return e.options={},e.performAction=function(e,t,n,r){function i(e,n){return t.yytext=t.yytext.substr(e,t.yyleng-n)}switch(n){case 0:if("\\\\"===t.yytext.slice(-2)?(i(0,1),this.begin("mu")):"\\"===t.yytext.slice(-1)?(i(0,1),this.begin("emu")):this.begin("mu"),t.yytext)return 15;break;case 1:return 15;case 2:return this.popState(),15;case 3:return this.begin("raw"),15;case 4:return this.popState(),"raw"===this.conditionStack[this.conditionStack.length-1]?15:(t.yytext=t.yytext.substr(5,t.yyleng-9),"END_RAW_BLOCK");case 5:return 15;case 6:return this.popState(),14;case 7:return 65;case 8:return 68;case 9:return 19;case 10:return this.popState(),this.begin("raw"),23;case 11:return 55;case 12:return 60;case 13:return 29;case 14:return 47;case 15:return this.popState(),44;case 16:return this.popState(),44;case 17:return 34;case 18:return 39;case 19:return 51;case 20:return 48;case 21:this.unput(t.yytext),this.popState(),this.begin("com");break;case 22:return this.popState(),14;case 23:return 48;case 24:return 73;case 25:return 72;case 26:return 72;case 27:return 87;case 28:break;case 29:return this.popState(),54;case 30:return this.popState(),33;case 31:return t.yytext=i(1,2).replace(/\\"/g,'"'),80;case 32:return t.yytext=i(1,2).replace(/\\'/g,"'"),80;case 33:return 85;case 34:return 82;case 35:return 82;case 36:return 83;case 37:return 84;case 38:return 81;case 39:return 75;case 40:return 77;case 41:return 72;case 42:return t.yytext=t.yytext.replace(/\\([\\\]])/g,"$1"),72;case 43:return"INVALID";case 44:return 5}},e.rules=[/^(?:[^\x00]*?(?=(\{\{)))/,/^(?:[^\x00]+)/,/^(?:[^\x00]{2,}?(?=(\{\{|\\\{\{|\\\\\{\{|$)))/,/^(?:\{\{\{\{(?=[^\/]))/,/^(?:\{\{\{\{\/[^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=[=}\s\/.])\}\}\}\})/,/^(?:[^\x00]*?(?=(\{\{\{\{)))/,/^(?:[\s\S]*?--(~)?\}\})/,/^(?:\()/,/^(?:\))/,/^(?:\{\{\{\{)/,/^(?:\}\}\}\})/,/^(?:\{\{(~)?>)/,/^(?:\{\{(~)?#>)/,/^(?:\{\{(~)?#\*?)/,/^(?:\{\{(~)?\/)/,/^(?:\{\{(~)?\^\s*(~)?\}\})/,/^(?:\{\{(~)?\s*else\s*(~)?\}\})/,/^(?:\{\{(~)?\^)/,/^(?:\{\{(~)?\s*else\b)/,/^(?:\{\{(~)?\{)/,/^(?:\{\{(~)?&)/,/^(?:\{\{(~)?!--)/,/^(?:\{\{(~)?![\s\S]*?\}\})/,/^(?:\{\{(~)?\*?)/,/^(?:=)/,/^(?:\.\.)/,/^(?:\.(?=([=~}\s\/.)|])))/,/^(?:[\/.])/,/^(?:\s+)/,/^(?:\}(~)?\}\})/,/^(?:(~)?\}\})/,/^(?:"(\\["]|[^"])*")/,/^(?:'(\\[']|[^'])*')/,/^(?:@)/,/^(?:true(?=([~}\s)])))/,/^(?:false(?=([~}\s)])))/,/^(?:undefined(?=([~}\s)])))/,/^(?:null(?=([~}\s)])))/,/^(?:-?[0-9]+(?:\.[0-9]+)?(?=([~}\s)])))/,/^(?:as\s+\|)/,/^(?:\|)/,/^(?:([^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=([=~}\s\/.)|]))))/,/^(?:\[(\\\]|[^\]])*\])/,/^(?:.)/,/^(?:$)/],e.conditions={mu:{rules:[7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44],inclusive:!1},emu:{rules:[2],inclusive:!1},com:{rules:[6],inclusive:!1},raw:{rules:[3,4,5],inclusive:!1},INITIAL:{rules:[0,1,44],inclusive:!0}},e}();return t.lexer=n,e.prototype=t,t.Parser=e,new e}();t.__esModule=!0,t["default"]=n},function(e,t,n){"use strict";function r(){var e=arguments.length<=0||void 0===arguments[0]?{}:arguments[0];this.options=e}function i(e,t,n){void 0===t&&(t=e.length);var r=e[t-1],i=e[t-2];return r?"ContentStatement"===r.type?(i||!n?/\r?\n\s*?$/:/(^|\r?\n)\s*?$/).test(r.original):void 0:n}function a(e,t,n){void 0===t&&(t=-1);var r=e[t+1],i=e[t+2];return r?"ContentStatement"===r.type?(i||!n?/^\s*?\r?\n/:/^\s*?(\r?\n|$)/).test(r.original):void 0:n}function s(e,t,n){var r=e[null==t?0:t+1];if(r&&"ContentStatement"===r.type&&(n||!r.rightStripped)){var i=r.value;r.value=r.value.replace(n?/^\s+/:/^[ \t]*\r?\n?/,""),r.rightStripped=r.value!==i}}function o(e,t,n){var r=e[null==t?e.length-1:t-1];if(r&&"ContentStatement"===r.type&&(n||!r.leftStripped)){var i=r.value;return r.value=r.value.replace(n?/\s+$/:/[ \t]+$/,""),r.leftStripped=r.value!==i,r.leftStripped}}var l=n(1)["default"];t.__esModule=!0;var c=n(25),u=l(c);r.prototype=new u["default"],r.prototype.Program=function(e){var t=!this.options.ignoreStandalone,n=!this.isRootSeen;this.isRootSeen=!0;for(var r=e.body,l=0,c=r.length;c>l;l++){var u=r[l],p=this.accept(u);if(p){var d=i(r,l,n),h=a(r,l,n),f=p.openStandalone&&d,m=p.closeStandalone&&h,g=p.inlineStandalone&&d&&h;p.close&&s(r,l,!0),p.open&&o(r,l,!0),t&&g&&(s(r,l),o(r,l)&&"PartialStatement"===u.type&&(u.indent=/([ \t]+$)/.exec(r[l-1].original)[1])),t&&f&&(s((u.program||u.inverse).body),o(r,l)),t&&m&&(s(r,l),o((u.inverse||u.program).body))}}return e},r.prototype.BlockStatement=r.prototype.DecoratorBlock=r.prototype.PartialBlockStatement=function(e){this.accept(e.program),this.accept(e.inverse);var t=e.program||e.inverse,n=e.program&&e.inverse,r=n,l=n;if(n&&n.chained)for(r=n.body[0].program;l.chained;)l=l.body[l.body.length-1].program;var c={open:e.openStrip.open,close:e.closeStrip.close,openStandalone:a(t.body),closeStandalone:i((r||t).body)};if(e.openStrip.close&&s(t.body,null,!0),n){var u=e.inverseStrip;u.open&&o(t.body,null,!0),u.close&&s(r.body,null,!0),e.closeStrip.open&&o(l.body,null,!0),!this.options.ignoreStandalone&&i(t.body)&&a(r.body)&&(o(t.body),s(r.body))}else e.closeStrip.open&&o(t.body,null,!0);return c},r.prototype.Decorator=r.prototype.MustacheStatement=function(e){return e.strip},r.prototype.PartialStatement=r.prototype.CommentStatement=function(e){var t=e.strip||{};return{inlineStandalone:!0,open:t.open,close:t.close}},t["default"]=r,e.exports=t["default"]},function(e,t,n){"use strict";function r(){this.parents=[]}function i(e){this.acceptRequired(e,"path"),this.acceptArray(e.params),this.acceptKey(e,"hash")}function a(e){i.call(this,e),this.acceptKey(e,"program"),this.acceptKey(e,"inverse")}function s(e){this.acceptRequired(e,"name"),this.acceptArray(e.params),this.acceptKey(e,"hash")}var o=n(1)["default"];t.__esModule=!0;var l=n(6),c=o(l);r.prototype={constructor:r,mutating:!1,acceptKey:function(e,t){var n=this.accept(e[t]);if(this.mutating){if(n&&!r.prototype[n.type])throw new c["default"]('Unexpected node type "'+n.type+'" found when accepting '+t+" on "+e.type);e[t]=n}},acceptRequired:function(e,t){if(this.acceptKey(e,t),!e[t])throw new c["default"](e.type+" requires "+t)},acceptArray:function(e){for(var t=0,n=e.length;n>t;t++)this.acceptKey(e,t),e[t]||(e.splice(t,1),t--,n--)},accept:function(e){if(e){if(!this[e.type])throw new c["default"]("Unknown type: "+e.type,e);this.current&&this.parents.unshift(this.current),this.current=e;var t=this[e.type](e);return this.current=this.parents.shift(),!this.mutating||t?t:t!==!1?e:void 0}},Program:function(e){this.acceptArray(e.body)},MustacheStatement:i,Decorator:i,BlockStatement:a,DecoratorBlock:a,PartialStatement:s,PartialBlockStatement:function(e){s.call(this,e),this.acceptKey(e,"program")},ContentStatement:function(){},CommentStatement:function(){},SubExpression:i,PathExpression:function(){},StringLiteral:function(){},NumberLiteral:function(){},BooleanLiteral:function(){},UndefinedLiteral:function(){},NullLiteral:function(){},Hash:function(e){this.acceptArray(e.pairs)},HashPair:function(e){this.acceptRequired(e,"value")}},t["default"]=r,e.exports=t["default"]},function(e,t,n){"use strict";function r(e,t){if(t=t.path?t.path.original:t,e.path.original!==t){var n={loc:e.path.loc};throw new g["default"](e.path.original+" doesn't match "+t,n)}}function i(e,t){this.source=e,this.start={line:t.first_line,column:t.first_column},this.end={line:t.last_line,column:t.last_column}}function a(e){return/^\[.*\]$/.test(e)?e.substr(1,e.length-2):e}function s(e,t){return{open:"~"===e.charAt(2),close:"~"===t.charAt(t.length-3)}}function o(e){return e.replace(/^\{\{~?\!-?-?/,"").replace(/-?-?~?\}\}$/,"")}function l(e,t,n){n=this.locInfo(n);for(var r=e?"@":"",i=[],a=0,s="",o=0,l=t.length;l>o;o++){var c=t[o].part,u=t[o].original!==c;if(r+=(t[o].separator||"")+c,u||".."!==c&&"."!==c&&"this"!==c)i.push(c);else{if(i.length>0)throw new g["default"]("Invalid path: "+r,{loc:n});".."===c&&(a++,s+="../")}}return{type:"PathExpression",data:e,depth:a,parts:i,original:r,loc:n}}function c(e,t,n,r,i,a){var s=r.charAt(3)||r.charAt(2),o="{"!==s&&"&"!==s,l=/\*/.test(r);return{type:l?"Decorator":"MustacheStatement",path:e,params:t,hash:n,escaped:o,strip:i,loc:this.locInfo(a)}}function u(e,t,n,i){r(e,n),i=this.locInfo(i);var a={type:"Program",body:t,strip:{},loc:i};return{type:"BlockStatement",path:e.path,params:e.params,hash:e.hash,program:a,openStrip:{},inverseStrip:{},closeStrip:{},loc:i}}function p(e,t,n,i,a,s){i&&i.path&&r(e,i);var o=/\*/.test(e.open);t.blockParams=e.blockParams;var l=void 0,c=void 0;if(n){if(o)throw new g["default"]("Unexpected inverse block on decorator",n);n.chain&&(n.program.body[0].closeStrip=i.strip),c=n.strip,l=n.program}return a&&(a=l,l=t,t=a),{type:o?"DecoratorBlock":"BlockStatement",path:e.path,params:e.params,hash:e.hash,program:t,inverse:l,openStrip:e.strip,inverseStrip:c,closeStrip:i&&i.strip,loc:this.locInfo(s)}}function d(e,t){if(!t&&e.length){var n=e[0].loc,r=e[e.length-1].loc;n&&r&&(t={source:n.source,start:{line:n.start.line,column:n.start.column},end:{line:r.end.line,column:r.end.column}})}return{type:"Program",body:e,strip:{},loc:t}}function h(e,t,n,i){return r(e,n),{type:"PartialBlockStatement",name:e.path,params:e.params,hash:e.hash,program:t,openStrip:e.strip,closeStrip:n&&n.strip,loc:this.locInfo(i)}}var f=n(1)["default"];t.__esModule=!0,t.SourceLocation=i,t.id=a,t.stripFlags=s,t.stripComment=o,t.preparePath=l,t.prepareMustache=c,t.prepareRawBlock=u,t.prepareBlock=p,t.prepareProgram=d,t.preparePartialBlock=h;var m=n(6),g=f(m)},function(e,t,n){"use strict";function r(){}function i(e,t,n){if(null==e||"string"!=typeof e&&"Program"!==e.type)throw new u["default"]("You must pass a string or Handlebars AST to Handlebars.precompile. You passed "+e);t=t||{},"data"in t||(t.data=!0),t.compat&&(t.useDepths=!0);var r=n.parse(e,t),i=(new n.Compiler).compile(r,t);return(new n.JavaScriptCompiler).compile(i,t)}function a(e,t,n){function r(){var r=n.parse(e,t),i=(new n.Compiler).compile(r,t),a=(new n.JavaScriptCompiler).compile(i,t,void 0,!0);return n.template(a)}function i(e,t){return a||(a=r()),a.call(this,e,t)}if(void 0===t&&(t={}),null==e||"string"!=typeof e&&"Program"!==e.type)throw new u["default"]("You must pass a string or Handlebars AST to Handlebars.compile. You passed "+e);"data"in t||(t.data=!0),t.compat&&(t.useDepths=!0);var a=void 0;return i._setup=function(e){return a||(a=r()),a._setup(e)},i._child=function(e,t,n,i){return a||(a=r()),a._child(e,t,n,i)},i}function s(e,t){if(e===t)return!0;if(p.isArray(e)&&p.isArray(t)&&e.length===t.length){for(var n=0;n<e.length;n++)if(!s(e[n],t[n]))return!1;return!0}}function o(e){if(!e.path.parts){var t=e.path;e.path={type:"PathExpression",data:!1,depth:0,parts:[t.original+""],original:t.original+"",loc:t.loc}}}var l=n(1)["default"];t.__esModule=!0,t.Compiler=r,t.precompile=i,t.compile=a;var c=n(6),u=l(c),p=n(5),d=n(21),h=l(d),f=[].slice;r.prototype={compiler:r,equals:function(e){var t=this.opcodes.length;if(e.opcodes.length!==t)return!1;for(var n=0;t>n;n++){var r=this.opcodes[n],i=e.opcodes[n];if(r.opcode!==i.opcode||!s(r.args,i.args))return!1}t=this.children.length;for(var n=0;t>n;n++)if(!this.children[n].equals(e.children[n]))return!1;return!0},guid:0,compile:function(e,t){this.sourceNode=[],this.opcodes=[],this.children=[],this.options=t,this.stringParams=t.stringParams,this.trackIds=t.trackIds,t.blockParams=t.blockParams||[];var n=t.knownHelpers;if(t.knownHelpers={helperMissing:!0,blockHelperMissing:!0,each:!0,"if":!0,unless:!0,"with":!0,log:!0,lookup:!0},n)for(var r in n)r in n&&(t.knownHelpers[r]=n[r]);return this.accept(e)},compileProgram:function(e){var t=new this.compiler,n=t.compile(e,this.options),r=this.guid++;return this.usePartial=this.usePartial||n.usePartial,this.children[r]=n,this.useDepths=this.useDepths||n.useDepths,r},accept:function(e){if(!this[e.type])throw new u["default"]("Unknown type: "+e.type,e);this.sourceNode.unshift(e);var t=this[e.type](e);return this.sourceNode.shift(),t},Program:function(e){this.options.blockParams.unshift(e.blockParams);for(var t=e.body,n=t.length,r=0;n>r;r++)this.accept(t[r]);return this.options.blockParams.shift(),this.isSimple=1===n,this.blockParams=e.blockParams?e.blockParams.length:0,this},BlockStatement:function(e){o(e);var t=e.program,n=e.inverse;t=t&&this.compileProgram(t),n=n&&this.compileProgram(n);var r=this.classifySexpr(e);"helper"===r?this.helperSexpr(e,t,n):"simple"===r?(this.simpleSexpr(e),this.opcode("pushProgram",t),this.opcode("pushProgram",n),this.opcode("emptyHash"),this.opcode("blockValue",e.path.original)):(this.ambiguousSexpr(e,t,n),this.opcode("pushProgram",t),this.opcode("pushProgram",n),this.opcode("emptyHash"),this.opcode("ambiguousBlockValue")),this.opcode("append")},DecoratorBlock:function(e){var t=e.program&&this.compileProgram(e.program),n=this.setupFullMustacheParams(e,t,void 0),r=e.path;this.useDecorators=!0,this.opcode("registerDecorator",n.length,r.original)},PartialStatement:function(e){this.usePartial=!0;var t=e.program;t&&(t=this.compileProgram(e.program));var n=e.params;if(n.length>1)throw new u["default"]("Unsupported number of partial arguments: "+n.length,e);n.length||(this.options.explicitPartialContext?this.opcode("pushLiteral","undefined"):n.push({type:"PathExpression",parts:[],depth:0}));var r=e.name.original,i="SubExpression"===e.name.type;i&&this.accept(e.name),this.setupFullMustacheParams(e,t,void 0,!0);var a=e.indent||"";this.options.preventIndent&&a&&(this.opcode("appendContent",a),a=""),this.opcode("invokePartial",i,r,a),this.opcode("append")},PartialBlockStatement:function(e){this.PartialStatement(e)},MustacheStatement:function(e){this.SubExpression(e),e.escaped&&!this.options.noEscape?this.opcode("appendEscaped"):this.opcode("append")},Decorator:function(e){this.DecoratorBlock(e)},ContentStatement:function(e){e.value&&this.opcode("appendContent",e.value)},CommentStatement:function(){},SubExpression:function(e){o(e);var t=this.classifySexpr(e);"simple"===t?this.simpleSexpr(e):"helper"===t?this.helperSexpr(e):this.ambiguousSexpr(e)},ambiguousSexpr:function(e,t,n){var r=e.path,i=r.parts[0],a=null!=t||null!=n;this.opcode("getContext",r.depth),this.opcode("pushProgram",t),this.opcode("pushProgram",n),r.strict=!0,this.accept(r),this.opcode("invokeAmbiguous",i,a)},simpleSexpr:function(e){var t=e.path;t.strict=!0,this.accept(t),this.opcode("resolvePossibleLambda")},helperSexpr:function(e,t,n){var r=this.setupFullMustacheParams(e,t,n),i=e.path,a=i.parts[0];if(this.options.knownHelpers[a])this.opcode("invokeKnownHelper",r.length,a);else{if(this.options.knownHelpersOnly)throw new u["default"]("You specified knownHelpersOnly, but used the unknown helper "+a,e);i.strict=!0,i.falsy=!0,this.accept(i),this.opcode("invokeHelper",r.length,i.original,h["default"].helpers.simpleId(i))}},PathExpression:function(e){this.addDepth(e.depth),this.opcode("getContext",e.depth);var t=e.parts[0],n=h["default"].helpers.scopedId(e),r=!e.depth&&!n&&this.blockParamIndex(t);r?this.opcode("lookupBlockParam",r,e.parts):t?e.data?(this.options.data=!0,this.opcode("lookupData",e.depth,e.parts,e.strict)):this.opcode("lookupOnContext",e.parts,e.falsy,e.strict,n):this.opcode("pushContext")},StringLiteral:function(e){this.opcode("pushString",e.value)},NumberLiteral:function(e){this.opcode("pushLiteral",e.value)},BooleanLiteral:function(e){this.opcode("pushLiteral",e.value)},UndefinedLiteral:function(){this.opcode("pushLiteral","undefined")},NullLiteral:function(){this.opcode("pushLiteral","null")},Hash:function(e){var t=e.pairs,n=0,r=t.length;for(this.opcode("pushHash");r>n;n++)this.pushParam(t[n].value);for(;n--;)this.opcode("assignToHash",t[n].key);this.opcode("popHash")},opcode:function(e){this.opcodes.push({opcode:e,args:f.call(arguments,1),loc:this.sourceNode[0].loc})},addDepth:function(e){e&&(this.useDepths=!0)},classifySexpr:function(e){var t=h["default"].helpers.simpleId(e.path),n=t&&!!this.blockParamIndex(e.path.parts[0]),r=!n&&h["default"].helpers.helperExpression(e),i=!n&&(r||t);if(i&&!r){var a=e.path.parts[0],s=this.options;s.knownHelpers[a]?r=!0:s.knownHelpersOnly&&(i=!1)}return r?"helper":i?"ambiguous":"simple"},pushParams:function(e){for(var t=0,n=e.length;n>t;t++)this.pushParam(e[t])},pushParam:function(e){var t=null!=e.value?e.value:e.original||"";if(this.stringParams)t.replace&&(t=t.replace(/^(\.?\.\/)*/g,"").replace(/\//g,".")),e.depth&&this.addDepth(e.depth),this.opcode("getContext",e.depth||0),this.opcode("pushStringParam",t,e.type),"SubExpression"===e.type&&this.accept(e);else{if(this.trackIds){var n=void 0;if(!e.parts||h["default"].helpers.scopedId(e)||e.depth||(n=this.blockParamIndex(e.parts[0])),n){var r=e.parts.slice(1).join(".");this.opcode("pushId","BlockParam",n,r)}else t=e.original||t,t.replace&&(t=t.replace(/^this(?:\.|$)/,"").replace(/^\.\//,"").replace(/^\.$/,"")),this.opcode("pushId",e.type,t)}this.accept(e)}},setupFullMustacheParams:function(e,t,n,r){var i=e.params;return this.pushParams(i),this.opcode("pushProgram",t),this.opcode("pushProgram",n),e.hash?this.accept(e.hash):this.opcode("emptyHash",r),i},blockParamIndex:function(e){for(var t=0,n=this.options.blockParams.length;n>t;t++){var r=this.options.blockParams[t],i=r&&p.indexOf(r,e);if(r&&i>=0)return[t,i]}}}},function(e,t,n){"use strict";function r(e){this.value=e}function i(){}function a(e,t,n,r){var i=t.popStack(),a=0,s=n.length;for(e&&s--;s>a;a++)i=t.nameLookup(i,n[a],r);return e?[t.aliasable("container.strict"),"(",i,", ",t.quotedString(n[a]),")"]:i}var s=n(1)["default"];t.__esModule=!0;var o=n(4),l=n(6),c=s(l),u=n(5),p=n(29),d=s(p);i.prototype={nameLookup:function(e,t){return i.isValidJavaScriptVariableName(t)?[e,".",t]:[e,"[",JSON.stringify(t),"]"]},depthedLookup:function(e){return[this.aliasable("container.lookup"),'(depths, "',e,'")']},compilerInfo:function(){var e=o.COMPILER_REVISION,t=o.REVISION_CHANGES[e];return[e,t]},appendToBuffer:function(e,t,n){return u.isArray(e)||(e=[e]),e=this.source.wrap(e,t),this.environment.isSimple?["return ",e,";"]:n?["buffer += ",e,";"]:(e.appendToBuffer=!0,e)},initializeBuffer:function(){return this.quotedString("")},compile:function(e,t,n,r){this.environment=e,this.options=t,this.stringParams=this.options.stringParams,this.trackIds=this.options.trackIds,this.precompile=!r,this.name=this.environment.name,this.isChild=!!n,this.context=n||{decorators:[],programs:[],environments:[]},this.preamble(),this.stackSlot=0,this.stackVars=[],this.aliases={},this.registers={list:[]},this.hashes=[],this.compileStack=[],this.inlineStack=[],this.blockParams=[],this.compileChildren(e,t),this.useDepths=this.useDepths||e.useDepths||e.useDecorators||this.options.compat,this.useBlockParams=this.useBlockParams||e.useBlockParams;var i=e.opcodes,a=void 0,s=void 0,o=void 0,l=void 0;for(o=0,l=i.length;l>o;o++)a=i[o],this.source.currentLocation=a.loc,s=s||a.loc,this[a.opcode].apply(this,a.args);if(this.source.currentLocation=s,this.pushSource(""),this.stackSlot||this.inlineStack.length||this.compileStack.length)throw new c["default"]("Compile completed with content left on stack");this.decorators.isEmpty()?this.decorators=void 0:(this.useDecorators=!0,this.decorators.prepend("var decorators = container.decorators;\n"),this.decorators.push("return fn;"),r?this.decorators=Function.apply(this,["fn","props","container","depth0","data","blockParams","depths",this.decorators.merge()]):(this.decorators.prepend("function(fn, props, container, depth0, data, blockParams, depths) {\n"),this.decorators.push("}\n"),this.decorators=this.decorators.merge()));var u=this.createFunctionContext(r);if(this.isChild)return u;var p={compiler:this.compilerInfo(),main:u};this.decorators&&(p.main_d=this.decorators,p.useDecorators=!0);var d=this.context,h=d.programs,f=d.decorators;for(o=0,l=h.length;l>o;o++)h[o]&&(p[o]=h[o],f[o]&&(p[o+"_d"]=f[o],p.useDecorators=!0));return this.environment.usePartial&&(p.usePartial=!0),this.options.data&&(p.useData=!0),this.useDepths&&(p.useDepths=!0),this.useBlockParams&&(p.useBlockParams=!0),this.options.compat&&(p.compat=!0),r?p.compilerOptions=this.options:(p.compiler=JSON.stringify(p.compiler),this.source.currentLocation={start:{line:1,column:0}},p=this.objectLiteral(p),t.srcName?(p=p.toStringWithSourceMap({file:t.destName}),p.map=p.map&&p.map.toString()):p=p.toString()),p},preamble:function(){this.lastContext=0,this.source=new d["default"](this.options.srcName),this.decorators=new d["default"](this.options.srcName)},createFunctionContext:function(e){var t="",n=this.stackVars.concat(this.registers.list);n.length>0&&(t+=", "+n.join(", "));var r=0;for(var i in this.aliases){var a=this.aliases[i];this.aliases.hasOwnProperty(i)&&a.children&&a.referenceCount>1&&(t+=", alias"+ ++r+"="+i,a.children[0]="alias"+r)}var s=["container","depth0","helpers","partials","data"];(this.useBlockParams||this.useDepths)&&s.push("blockParams"),this.useDepths&&s.push("depths");var o=this.mergeSource(t);return e?(s.push(o),Function.apply(this,s)):this.source.wrap(["function(",s.join(","),") {\n ",o,"}"])},mergeSource:function(e){var t=this.environment.isSimple,n=!this.forceBuffer,r=void 0,i=void 0,a=void 0,s=void 0;return this.source.each(function(e){e.appendToBuffer?(a?e.prepend(" + "):a=e,s=e):(a&&(i?a.prepend("buffer += "):r=!0,s.add(";"),a=s=void 0),i=!0,t||(n=!1))}),n?a?(a.prepend("return "),s.add(";")):i||this.source.push('return "";'):(e+=", buffer = "+(r?"":this.initializeBuffer()),a?(a.prepend("return buffer + "),s.add(";")):this.source.push("return buffer;")),e&&this.source.prepend("var "+e.substring(2)+(r?"":";\n")),this.source.merge()},blockValue:function(e){var t=this.aliasable("helpers.blockHelperMissing"),n=[this.contextName(0)];this.setupHelperArgs(e,0,n);var r=this.popStack();n.splice(1,0,r),this.push(this.source.functionCall(t,"call",n))},ambiguousBlockValue:function(){var e=this.aliasable("helpers.blockHelperMissing"),t=[this.contextName(0)];this.setupHelperArgs("",0,t,!0),this.flushInline();var n=this.topStack();t.splice(1,0,n),this.pushSource(["if (!",this.lastHelper,") { ",n," = ",this.source.functionCall(e,"call",t),"}"])},appendContent:function(e){this.pendingContent?e=this.pendingContent+e:this.pendingLocation=this.source.currentLocation,this.pendingContent=e},append:function(){if(this.isInline())this.replaceStack(function(e){return[" != null ? ",e,' : ""']}),this.pushSource(this.appendToBuffer(this.popStack()));else{var e=this.popStack();this.pushSource(["if (",e," != null) { ",this.appendToBuffer(e,void 0,!0)," }"]),this.environment.isSimple&&this.pushSource(["else { ",this.appendToBuffer("''",void 0,!0)," }"])}},appendEscaped:function(){this.pushSource(this.appendToBuffer([this.aliasable("container.escapeExpression"),"(",this.popStack(),")"]))},getContext:function(e){this.lastContext=e},pushContext:function(){this.pushStackLiteral(this.contextName(this.lastContext))},lookupOnContext:function(e,t,n,r){var i=0;r||!this.options.compat||this.lastContext?this.pushContext():this.push(this.depthedLookup(e[i++])),this.resolvePath("context",e,i,t,n)},lookupBlockParam:function(e,t){this.useBlockParams=!0,this.push(["blockParams[",e[0],"][",e[1],"]"]),this.resolvePath("context",t,1)},lookupData:function(e,t,n){e?this.pushStackLiteral("container.data(data, "+e+")"):this.pushStackLiteral("data"),this.resolvePath("data",t,0,!0,n)},resolvePath:function(e,t,n,r,i){var s=this;if(this.options.strict||this.options.assumeObjects)return void this.push(a(this.options.strict&&i,this,t,e));for(var o=t.length;o>n;n++)this.replaceStack(function(i){var a=s.nameLookup(i,t[n],e);return r?[" && ",a]:[" != null ? ",a," : ",i]})},resolvePossibleLambda:function(){this.push([this.aliasable("container.lambda"),"(",this.popStack(),", ",this.contextName(0),")"])},pushStringParam:function(e,t){this.pushContext(),this.pushString(t),"SubExpression"!==t&&("string"==typeof e?this.pushString(e):this.pushStackLiteral(e))},emptyHash:function(e){this.trackIds&&this.push("{}"),this.stringParams&&(this.push("{}"),this.push("{}")),this.pushStackLiteral(e?"undefined":"{}")},pushHash:function(){this.hash&&this.hashes.push(this.hash),this.hash={values:[],types:[],contexts:[],ids:[]}},popHash:function(){var e=this.hash;this.hash=this.hashes.pop(),this.trackIds&&this.push(this.objectLiteral(e.ids)),this.stringParams&&(this.push(this.objectLiteral(e.contexts)),this.push(this.objectLiteral(e.types))),this.push(this.objectLiteral(e.values))},pushString:function(e){this.pushStackLiteral(this.quotedString(e))},pushLiteral:function(e){this.pushStackLiteral(e)},pushProgram:function(e){null!=e?this.pushStackLiteral(this.programExpression(e)):this.pushStackLiteral(null)},registerDecorator:function(e,t){var n=this.nameLookup("decorators",t,"decorator"),r=this.setupHelperArgs(t,e);this.decorators.push(["fn = ",this.decorators.functionCall(n,"",["fn","props","container",r])," || fn;"])},invokeHelper:function(e,t,n){var r=this.popStack(),i=this.setupHelper(e,t),a=n?[i.name," || "]:"",s=["("].concat(a,r);this.options.strict||s.push(" || ",this.aliasable("helpers.helperMissing")),s.push(")"),this.push(this.source.functionCall(s,"call",i.callParams))},invokeKnownHelper:function(e,t){var n=this.setupHelper(e,t);this.push(this.source.functionCall(n.name,"call",n.callParams))},invokeAmbiguous:function(e,t){this.useRegister("helper");var n=this.popStack();this.emptyHash();var r=this.setupHelper(0,e,t),i=this.lastHelper=this.nameLookup("helpers",e,"helper"),a=["(","(helper = ",i," || ",n,")"];this.options.strict||(a[0]="(helper = ",a.push(" != null ? helper : ",this.aliasable("helpers.helperMissing"))),this.push(["(",a,r.paramsInit?["),(",r.paramsInit]:[],"),","(typeof helper === ",this.aliasable('"function"')," ? ",this.source.functionCall("helper","call",r.callParams)," : helper))"])},invokePartial:function(e,t,n){var r=[],i=this.setupParams(t,1,r);e&&(t=this.popStack(),delete i.name),n&&(i.indent=JSON.stringify(n)),i.helpers="helpers",i.partials="partials",i.decorators="container.decorators",e?r.unshift(t):r.unshift(this.nameLookup("partials",t,"partial")),this.options.compat&&(i.depths="depths"),i=this.objectLiteral(i),r.push(i),this.push(this.source.functionCall("container.invokePartial","",r))},assignToHash:function(e){var t=this.popStack(),n=void 0,r=void 0,i=void 0;this.trackIds&&(i=this.popStack()),this.stringParams&&(r=this.popStack(),n=this.popStack());var a=this.hash;n&&(a.contexts[e]=n),r&&(a.types[e]=r),i&&(a.ids[e]=i),a.values[e]=t},pushId:function(e,t,n){"BlockParam"===e?this.pushStackLiteral("blockParams["+t[0]+"].path["+t[1]+"]"+(n?" + "+JSON.stringify("."+n):"")):"PathExpression"===e?this.pushString(t):"SubExpression"===e?this.pushStackLiteral("true"):this.pushStackLiteral("null")},compiler:i,compileChildren:function(e,t){for(var n=e.children,r=void 0,i=void 0,a=0,s=n.length;s>a;a++){r=n[a],i=new this.compiler;var o=this.matchExistingProgram(r);null==o?(this.context.programs.push(""),o=this.context.programs.length,r.index=o,r.name="program"+o,this.context.programs[o]=i.compile(r,t,this.context,!this.precompile),this.context.decorators[o]=i.decorators,this.context.environments[o]=r,this.useDepths=this.useDepths||i.useDepths,this.useBlockParams=this.useBlockParams||i.useBlockParams):(r.index=o,r.name="program"+o,this.useDepths=this.useDepths||r.useDepths,this.useBlockParams=this.useBlockParams||r.useBlockParams)}},matchExistingProgram:function(e){for(var t=0,n=this.context.environments.length;n>t;t++){var r=this.context.environments[t];if(r&&r.equals(e))return t}},programExpression:function(e){var t=this.environment.children[e],n=[t.index,"data",t.blockParams];return(this.useBlockParams||this.useDepths)&&n.push("blockParams"),this.useDepths&&n.push("depths"),
"container.program("+n.join(", ")+")"},useRegister:function(e){this.registers[e]||(this.registers[e]=!0,this.registers.list.push(e))},push:function(e){return e instanceof r||(e=this.source.wrap(e)),this.inlineStack.push(e),e},pushStackLiteral:function(e){this.push(new r(e))},pushSource:function(e){this.pendingContent&&(this.source.push(this.appendToBuffer(this.source.quotedString(this.pendingContent),this.pendingLocation)),this.pendingContent=void 0),e&&this.source.push(e)},replaceStack:function(e){var t=["("],n=void 0,i=void 0,a=void 0;if(!this.isInline())throw new c["default"]("replaceStack on non-inline");var s=this.popStack(!0);if(s instanceof r)n=[s.value],t=["(",n],a=!0;else{i=!0;var o=this.incrStack();t=["((",this.push(o)," = ",s,")"],n=this.topStack()}var l=e.call(this,n);a||this.popStack(),i&&this.stackSlot--,this.push(t.concat(l,")"))},incrStack:function(){return this.stackSlot++,this.stackSlot>this.stackVars.length&&this.stackVars.push("stack"+this.stackSlot),this.topStackName()},topStackName:function(){return"stack"+this.stackSlot},flushInline:function(){var e=this.inlineStack;this.inlineStack=[];for(var t=0,n=e.length;n>t;t++){var i=e[t];if(i instanceof r)this.compileStack.push(i);else{var a=this.incrStack();this.pushSource([a," = ",i,";"]),this.compileStack.push(a)}}},isInline:function(){return this.inlineStack.length},popStack:function(e){var t=this.isInline(),n=(t?this.inlineStack:this.compileStack).pop();if(!e&&n instanceof r)return n.value;if(!t){if(!this.stackSlot)throw new c["default"]("Invalid stack pop");this.stackSlot--}return n},topStack:function(){var e=this.isInline()?this.inlineStack:this.compileStack,t=e[e.length-1];return t instanceof r?t.value:t},contextName:function(e){return this.useDepths&&e?"depths["+e+"]":"depth"+e},quotedString:function(e){return this.source.quotedString(e)},objectLiteral:function(e){return this.source.objectLiteral(e)},aliasable:function(e){var t=this.aliases[e];return t?(t.referenceCount++,t):(t=this.aliases[e]=this.source.wrap(e),t.aliasable=!0,t.referenceCount=1,t)},setupHelper:function(e,t,n){var r=[],i=this.setupHelperArgs(t,e,r,n),a=this.nameLookup("helpers",t,"helper"),s=this.aliasable(this.contextName(0)+" != null ? "+this.contextName(0)+" : {}");return{params:r,paramsInit:i,name:a,callParams:[s].concat(r)}},setupParams:function(e,t,n){var r={},i=[],a=[],s=[],o=!n,l=void 0;o&&(n=[]),r.name=this.quotedString(e),r.hash=this.popStack(),this.trackIds&&(r.hashIds=this.popStack()),this.stringParams&&(r.hashTypes=this.popStack(),r.hashContexts=this.popStack());var c=this.popStack(),u=this.popStack();(u||c)&&(r.fn=u||"container.noop",r.inverse=c||"container.noop");for(var p=t;p--;)l=this.popStack(),n[p]=l,this.trackIds&&(s[p]=this.popStack()),this.stringParams&&(a[p]=this.popStack(),i[p]=this.popStack());return o&&(r.args=this.source.generateArray(n)),this.trackIds&&(r.ids=this.source.generateArray(s)),this.stringParams&&(r.types=this.source.generateArray(a),r.contexts=this.source.generateArray(i)),this.options.data&&(r.data="data"),this.useBlockParams&&(r.blockParams="blockParams"),r},setupHelperArgs:function(e,t,n,r){var i=this.setupParams(e,t,n);return i=this.objectLiteral(i),r?(this.useRegister("options"),n.push("options"),["options=",i]):n?(n.push(i),""):i}},function(){for(var e="break else new var case finally return void catch for switch while continue function this with default if throw delete in try do instanceof typeof abstract enum int short boolean export interface static byte extends long super char final native synchronized class float package throws const goto private transient debugger implements protected volatile double import public let yield await null true false".split(" "),t=i.RESERVED_WORDS={},n=0,r=e.length;r>n;n++)t[e[n]]=!0}(),i.isValidJavaScriptVariableName=function(e){return!i.RESERVED_WORDS[e]&&/^[a-zA-Z_$][0-9a-zA-Z_$]*$/.test(e)},t["default"]=i,e.exports=t["default"]},function(e,t,n){"use strict";function r(e,t,n){if(a.isArray(e)){for(var r=[],i=0,s=e.length;s>i;i++)r.push(t.wrap(e[i],n));return r}return"boolean"==typeof e||"number"==typeof e?e+"":e}function i(e){this.srcFile=e,this.source=[]}t.__esModule=!0;var a=n(5),s=void 0;try{}catch(o){}s||(s=function(e,t,n,r){this.src="",r&&this.add(r)},s.prototype={add:function(e){a.isArray(e)&&(e=e.join("")),this.src+=e},prepend:function(e){a.isArray(e)&&(e=e.join("")),this.src=e+this.src},toStringWithSourceMap:function(){return{code:this.toString()}},toString:function(){return this.src}}),i.prototype={isEmpty:function(){return!this.source.length},prepend:function(e,t){this.source.unshift(this.wrap(e,t))},push:function(e,t){this.source.push(this.wrap(e,t))},merge:function(){var e=this.empty();return this.each(function(t){e.add([" ",t,"\n"])}),e},each:function(e){for(var t=0,n=this.source.length;n>t;t++)e(this.source[t])},empty:function(){var e=this.currentLocation||{start:{}};return new s(e.start.line,e.start.column,this.srcFile)},wrap:function(e){var t=arguments.length<=1||void 0===arguments[1]?this.currentLocation||{start:{}}:arguments[1];return e instanceof s?e:(e=r(e,this,t),new s(t.start.line,t.start.column,this.srcFile,e))},functionCall:function(e,t,n){return n=this.generateList(n),this.wrap([e,t?"."+t+"(":"(",n,")"])},quotedString:function(e){return'"'+(e+"").replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")+'"'},objectLiteral:function(e){var t=[];for(var n in e)if(e.hasOwnProperty(n)){var i=r(e[n],this);"undefined"!==i&&t.push([this.quotedString(n),":",i])}var a=this.generateList(t);return a.prepend("{"),a.add("}"),a},generateList:function(e){for(var t=this.empty(),n=0,i=e.length;i>n;n++)n&&t.add(","),t.add(r(e[n],this));return t},generateArray:function(e){var t=this.generateList(e);return t.prepend("["),t.add("]"),t}},t["default"]=i,e.exports=t["default"]}])}),define("tmpl",["deps/handlebars","deps/text"],function(e,t){var n={};return{load:function(r,i,a,s){return t.load(r,i,function(t){s.isBuild&&s.inlineText&&(n[r]=t),a(s.isBuild?t:e.compile(t))},s)},write:function(e,r,i){if(r in n){var a=t.jsEscape(n[r]);i("define('"+e+"!"+r+"', ['deps/handlebars'], function (hb) { return hb.compile('"+a+"');});\n")}}}}),define("tmpl!w3c/templates/headers.html",["deps/handlebars"],function(e){return e.compile("<div class='head'>\n <p>\n {{#if logos}}\n {{showLogos logos}}\n {{else}}\n {{#if prependW3C}}\n <a class='logo' href='https://www.w3.org/'><img width='72' height='48' src='https://www.w3.org/StyleSheets/TR/2016/logos/W3C' alt='W3C'></a>\n {{#if isMemberSubmission}}\n <a href=\"https://www.w3.org/Submission/\"> <img height=\"48\" width=\"211\" alt=\"W3C Member Submission\" src=\"https://www.w3.org/Icons/member_subm\" /></a>\n {{/if}}\n {{#if isTeamSubmission}}\n <a href=\"https://www.w3.org/TeamSubmission/\"><img height=\"48\" width=\"211\" alt=\"W3C Team Submission\" src=\"https://www.w3.org/Icons/team_subm\"/></a>\n {{/if}}\n {{/if}}\n {{/if}}\n </p>\n <h1 class='title p-name' id='title'{{#if doRDFa}} property='dcterms:title'{{/if}}>{{title}}</h1>\n {{#if subtitle}}\n <h2 {{#if doRDFa}}property='bibo:subtitle' {{/if}}id='subtitle'>{{subtitle}}</h2>\n {{/if}}\n <h2>{{#if prependW3C}}W3C {{/if}}{{textStatus}} <time {{#if doRDFa}}property=\"dcterms:issued\"{{/if}}class='dt-published' datetime='{{dashDate}}'>{{publishHumanDate}}</time></h2>\n <dl>\n {{#unless isNoTrack}}\n <dt>{{l10n.this_version}}</dt>\n <dd><a class='u-url' href='{{thisVersion}}'>{{thisVersion}}</a></dd>\n <dt>{{l10n.latest_published_version}}</dt>\n <dd>{{#if latestVersion}}<a href='{{latestVersion}}'>{{latestVersion}}</a>{{else}}none{{/if}}</dd>\n {{/unless}}\n {{#if edDraftURI}}\n <dt>{{l10n.latest_editors_draft}}</dt>\n <dd><a href='{{edDraftURI}}'>{{edDraftURI}}</a></dd>\n {{/if}}\n {{#if testSuiteURI}}\n <dt>Test suite:</dt>\n <dd><a href='{{testSuiteURI}}'>{{testSuiteURI}}</a></dd>\n {{/if}}\n {{#if implementationReportURI}}\n <dt>Implementation report:</dt>\n <dd><a href='{{implementationReportURI}}'>{{implementationReportURI}}</a></dd>\n {{/if}}\n {{#if bugTrackerHTML}}\n <dt>{{l10n.bug_tracker}}</dt>\n <dd>{{{bugTrackerHTML}}}</dd>\n {{/if}}\n {{#if isED}}\n {{#if prevED}}\n <dt>Previous editor's draft:</dt>\n <dd><a href='{{prevED}}'>{{prevED}}</a></dd>\n {{/if}}\n {{/if}}\n {{#if showPreviousVersion}}\n <dt>Previous version:</dt>\n <dd><a {{#if doRDFa}}rel=\"dcterms:replaces\"{{/if}} href='{{prevVersion}}'>{{prevVersion}}</a></dd>\n {{/if}}\n {{#if prevRecURI}}\n {{#if isRec}}\n <dt>Previous Recommendation:</dt>\n <dd><a {{#if doRDFa}}rel=\"dcterms:replaces\"{{/if}} href='{{prevRecURI}}'>{{prevRecURI}}</a></dd>\n {{else}}\n <dt>Latest Recommendation:</dt>\n <dd><a href='{{prevRecURI}}'>{{prevRecURI}}</a></dd>\n {{/if}}\n {{/if}}\n <dt>{{#if multipleEditors}}{{l10n.editors}}{{else}}{{l10n.editor}}{{/if}}</dt>\n {{showPeople \"Editor\" editors}}\n {{#if authors}}\n <dt>{{#if multipleAuthors}}{{l10n.authors}}{{else}}{{l10n.author}}{{/if}}</dt>\n {{showPeople \"Author\" authors}}\n {{/if}}\n {{#if otherLinks}}\n {{#each otherLinks}}\n {{#if key}}\n <dt {{#if class}}class=\"{{class}}\"{{/if}}>{{key}}:</dt>\n {{#if data}}\n {{#each data}}\n {{#if value}}\n <dd {{#if class}}class=\"{{class}}\"{{/if}}>\n {{#if href}}<a href=\"{{href}}\">{{/if}}\n {{value}}\n {{#if href}}</a>{{/if}}\n </dd>\n {{else}}\n {{#if href}}\n <dd><a href=\"{{href}}\">{{href}}</a></dd>\n {{/if}}\n {{/if}}\n {{/each}}\n {{else}}\n {{#if value}}\n <dd {{#if class}}class=\"{{class}}\"{{/if}}>\n {{#if href}}<a href=\"{{href}}\">{{/if}}\n {{value}}\n {{#if href}}</a>{{/if}}\n </dd>\n {{else}}\n {{#if href}}\n <dd {{#if class}}class=\"{{class}}\"{{/if}}>\n <a href=\"{{href}}\">{{href}}</a>\n </dd>\n {{/if}}\n {{/if}}\n {{/if}}\n {{/if}}\n {{/each}}\n {{/if}}\n </dl>\n {{#if errata}}\n <p>\n Please check the <a href=\"{{errata}}\"><strong>errata</strong></a> for any errors or issues\n reported since publication.\n </p>\n {{/if}}\n {{#if alternateFormats}}\n <p>\n {{#if multipleAlternates}}\n This document is also available in these non-normative formats:\n {{else}}\n This document is also available in this non-normative format:\n {{/if}}\n {{{alternatesHTML}}}\n </p>\n {{/if}}\n {{#if isRec}}\n <p>\n The English version of this specification is the only normative version. Non-normative\n <a href=\"https://www.w3.org/Consortium/Translation/\">translations</a> may also be available.\n </p>\n {{/if}}\n {{#if isUnofficial}}\n {{#if additionalCopyrightHolders}}\n <p class='copyright'>{{{additionalCopyrightHolders}}}</p>\n {{else}}\n {{#if overrideCopyright}}\n {{{overrideCopyright}}}\n {{else}}\n <p class='copyright'>\n This document is licensed under a\n <a class='subfoot' href='https://creativecommons.org/licenses/by/3.0/' rel='license'>Creative Commons\n Attribution 3.0 License</a>.\n </p>\n {{/if}}\n {{/if}}\n {{else}}\n {{#if overrideCopyright}}\n {{{overrideCopyright}}}\n {{else}}\n <p class='copyright'>\n <a href='https://www.w3.org/Consortium/Legal/ipr-notice#Copyright'>Copyright</a> ©\n {{#if copyrightStart}}{{copyrightStart}}-{{/if}}{{publishYear}}\n {{#if additionalCopyrightHolders}} {{{additionalCopyrightHolders}}} &{{/if}}\n <a href='https://www.w3.org/'><abbr title='World Wide Web Consortium'>W3C</abbr></a><sup>®</sup>\n (<a href='https://www.csail.mit.edu/'><abbr title='Massachusetts Institute of Technology'>MIT</abbr></a>,\n <a href='https://www.ercim.eu/'><abbr title='European Research Consortium for Informatics and Mathematics'>ERCIM</abbr></a>,\n <a href='https://www.keio.ac.jp/'>Keio</a>, <a href=\"http://ev.buaa.edu.cn/\">Beihang</a>).\n {{#if isCCBY}}\n Some Rights Reserved: this document is dual-licensed,\n <a rel=\"license\" href=\"https://creativecommons.org/licenses/by/3.0/\">CC-BY</a> and\n <a rel=\"license\" href=\"https://www.w3.org/Consortium/Legal/copyright-documents\">W3C Document License</a>.\n {{/if}}\n W3C <a href='https://www.w3.org/Consortium/Legal/ipr-notice#Legal_Disclaimer'>liability</a>,\n <a href='https://www.w3.org/Consortium/Legal/ipr-notice#W3C_Trademarks'>trademark</a> and\n {{#if isCCBY}}\n <a rel=\"license\" href='https://www.w3.org/Consortium/Legal/2013/copyright-documents-dual.html'>document use</a>\n {{else}}\n {{#if isW3CSoftAndDocLicense}}\n <a rel=\"license\" href='https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document'>permissive document license</a>\n {{else}}\n <a rel=\"license\" href='https://www.w3.org/Consortium/Legal/copyright-documents'>document use</a>\n {{/if}}\n {{/if}}\n rules apply.\n </p>\n {{/if}}\n {{/if}}\n <hr title=\"Separator for header\">\n</div>\n")}),define("tmpl!w3c/templates/sotd.html",["deps/handlebars"],function(e){return e.compile("<section id='sotd' class='introductory'><h2>{{l10n.sotd}}</h2>\n {{#if isUnofficial}}\n <p>\n This document is merely a public working draft of a potential specification. It has\n no official standing of any kind and does not represent the support or consensus of any\n standards organisation.\n </p>\n {{{sotdCustomParagraph}}}\n {{else}}\n {{#if isTagFinding}}\n {{{sotdCustomParagraph}}}\n {{else}}\n {{#if isNoTrack}}\n <p>\n This document is merely a W3C-internal {{#if isMO}}member-confidential{{/if}} document. It\n has no official standing of any kind and does not represent consensus of the W3C\n Membership.\n </p>\n {{{sotdCustomParagraph}}}\n {{else}}\n <p>\n <em>{{{l10n.status_at_publication}}}</em>\n </p>\n {{#if isSubmission}}\n {{{sotdCustomParagraph}}}\n {{#if isMemberSubmission}}\n <p>By publishing this document, W3C acknowledges that the <a href=\"https://www.w3.org/Submission/@@@submissiondoc@@@\">Submitting Members</a> have made a formal Submission request to W3C for discussion. Publication of this document by W3C indicates no endorsement of its content by W3C, nor that W3C has, is, or will be allocating any resources to the issues addressed by it. This document is not the product of a chartered W3C group, but is published as potential input to the <a href=\"https://www.w3.org/Consortium/Process\">W3C Process</a>. A <a href=\"https://www.w3.org/Submission/@@@teamcomment@@@\">W3C Team Comment</a> has been published in conjunction with this Member Submission. Publication of acknowledged Member Submissions at the W3C site is one of the benefits of <a href=\"https://www.w3.org/Consortium/Prospectus/Joining\">W3C Membership</a>. Please consult the requirements associated with Member Submissions of <a href=\"https://www.w3.org/Consortium/Patent-Policy-20040205/#sec-submissions\">section 3.3 of the W3C Patent Policy</a>. Please consult the complete <a href=\"https://www.w3.org/Submission\">list of acknowledged W3C Member Submissions</a>.</p>\n {{else}}\n {{#if isTeamSubmission}}\n <p>If you wish to make comments regarding this document, please send them to\n <a href='mailto:{{wgPublicList}}@w3.org{{#if subjectPrefix}}?subject={{subjectPrefixEnc}}{{/if}}'>{{wgPublicList}}@w3.org</a>\n (<a href='mailto:{{wgPublicList}}[email protected]?subject=subscribe'>subscribe</a>,\n <a\n href='https://lists.w3.org/Archives/Public/{{wgPublicList}}/'>archives</a>){{#if subjectPrefix}}\n with <code>{{subjectPrefix}}</code> at the start of your email's subject{{/if}}.</p>\n <p>Please consult the complete <a href=\"https://www.w3.org/TeamSubmission/\">list of Team Submissions</a>.</p>\n {{/if}}\n {{/if}}\n {{else}}\n {{#unless sotdAfterWGinfo}}\n {{{sotdCustomParagraph}}}\n {{/unless}}\n {{#unless overrideStatus}}\n <p>\n This document was published by {{{wgHTML}}} as {{anOrA}} {{longStatus}}.\n {{#if notYetRec}}\n This document is intended to become a W3C Recommendation.\n {{/if}}\n {{#unless isPR}}\n If you wish to make comments regarding this document, please send them to\n <a href='mailto:{{wgPublicList}}@w3.org{{#if subjectPrefix}}?subject={{subjectPrefixEnc}}{{/if}}'>{{wgPublicList}}@w3.org</a>\n (<a href='mailto:{{wgPublicList}}[email protected]?subject=subscribe'>subscribe</a>,\n <a\n href='https://lists.w3.org/Archives/Public/{{wgPublicList}}/'>archives</a>){{#if subjectPrefix}}\n with <code>{{subjectPrefix}}</code> at the start of your email's subject{{/if}}.\n {{/unless}}\n {{#if isLC}}The Last Call period ends {{humanLCEnd}}.{{/if}}\n {{#if isCR}}\n W3C publishes a Candidate Recommendation to indicate that the document is believed to be\n stable and to encourage implementation by the developer community. This Candidate\n Recommendation is expected to advance to Proposed Recommendation no earlier than\n {{humanCREnd}}.\n {{/if}}\n {{#if isPER}}\n W3C Advisory Committee Members are invited to\n send formal review comments on this Proposed\n Edited Recommendation to the W3C Team until\n {{humanPEREnd}}.\n Members of the Advisory Committee will find the\n appropriate review form for this document by\n consulting their list of current\n <a href='https://www.w3.org/2002/09/wbs/myQuestionnaires'>WBS questionnaires</a>.\n {{/if}}\n {{#if isPR}}\n The W3C Membership and other interested parties are invited to review the document and\n send comments to\n <a rel='discussion' href='mailto:{{wgPublicList}}@w3.org'>{{wgPublicList}}@w3.org</a>\n (<a href='mailto:{{wgPublicList}}[email protected]?subject=subscribe'>subscribe</a>,\n <a href='https://lists.w3.org/Archives/Public/{{wgPublicList}}/'>archives</a>)\n through {{humanPREnd}}. Advisory Committee Representatives should consult their\n <a href='https://www.w3.org/2002/09/wbs/myQuestionnaires'>WBS questionnaires</a>.\n Note that substantive technical comments were expected during the Last Call review\n period that ended {{humanLCEnd}}.\n {{else}}\n {{#unless isPER}}\n All comments are welcome.\n {{/unless}}\n {{/if}}\n </p>\n {{/unless}}\n {{#if implementationReportURI}}\n <p>\n Please see the Working Group's <a href='{{implementationReportURI}}'>implementation\n report</a>.\n </p>\n {{/if}}\n {{#if sotdAfterWGinfo}}\n {{{sotdCustomParagraph}}}\n {{/if}}\n {{#if notRec}}\n <p>\n Publication as {{anOrA}} {{textStatus}} does not imply endorsement by the W3C\n Membership. This is a draft document and may be updated, replaced or obsoleted by other\n documents at any time. It is inappropriate to cite this document as other than work in\n progress.\n </p>\n {{/if}}\n {{#if isRec}}\n <p>\n This document has been reviewed by W3C Members, by software developers, and by other W3C\n groups and interested parties, and is endorsed by the Director as a W3C Recommendation.\n It is a stable document and may be used as reference material or cited from another\n document. W3C's role in making the Recommendation is to draw attention to the\n specification and to promote its widespread deployment. This enhances the functionality\n and interoperability of the Web.\n </p>\n {{/if}}\n {{#if isLC}}\n <p>\n This is a Last Call Working Draft and thus the Working Group has determined that this\n document has satisfied the relevant technical requirements and is sufficiently stable to\n advance through the Technical Recommendation process.\n </p>\n {{/if}}\n <p>\n {{#unless isIGNote}}\n This document was produced by\n {{#if multipleWGs}}\n groups\n {{else}}\n a group\n {{/if}} operating under the\n <a{{#if doRDFa}} id=\"sotd_patent\" property='w3p:patentRules'{{/if}}\n href='https://www.w3.org/Consortium/Patent-Policy-20040205/'>5 February 2004 W3C Patent\n Policy</a>.\n {{/unless}}\n {{#if recNotExpected}}\n The group does not expect this document to become a W3C Recommendation.\n {{/if}}\n {{#unless isIGNote}}\n {{#if multipleWGs}}\n W3C maintains {{{wgPatentHTML}}}\n {{else}}\n W3C maintains a <a href='{{wgPatentURI}}' rel='disclosure'>public list of any patent\n disclosures</a>\n {{/if}}\n made in connection with the deliverables of\n {{#if multipleWGs}}\n each group; these pages also include\n {{else}}\n the group; that page also includes\n {{/if}}\n instructions for disclosing a patent. An individual who has actual knowledge of a patent\n which the individual believes contains\n <a href='https://www.w3.org/Consortium/Patent-Policy-20040205/#def-essential'>Essential\n Claim(s)</a> must disclose the information in accordance with\n <a href='https://www.w3.org/Consortium/Patent-Policy-20040205/#sec-Disclosure'>section\n 6 of the W3C Patent Policy</a>.\n {{/unless}}\n {{#if isIGNote}}\n The disclosure obligations of the Participants of this group are described in the\n <a href='{{charterDisclosureURI}}'>charter</a>.\n {{/if}}\n </p>\n {{#if isNewProcess}}\n <p>This document is governed by the <a id=\"w3c_process_revision\"\n href=\"https://www.w3.org/2015/Process-20150901/\">1 September 2015 W3C Process Document</a>.\n </p>\n {{else}}\n <p>\n This document is governed by the <a id=\"w3c_process_revision\"\n href=\"https://www.w3.org/2005/10/Process-20051014/\">14 October 2005 W3C Process Document</a>.\n </p>\n {{/if}}\n {{#if addPatentNote}}<p>{{{addPatentNote}}}</p>{{/if}}\n {{/if}}\n {{/if}}\n {{/if}}\n {{/if}}\n</section>\n")}),define("tmpl!w3c/templates/cgbg-headers.html",["deps/handlebars"],function(e){return e.compile("<div class='head'>\n <p>\n <a class='logo' href='https://www.w3.org/'><img width='72' height='48' src='https://www.w3.org/StyleSheets/TR/2016/logos/W3C' alt='W3C'></a>\n </p>\n <h1 class='title p-name' id='title'{{#if doRDFa}} property='dc:title'{{/if}}>{{title}}</h1>\n {{#if subtitle}}\n <h2 {{#if doRDFa}}property='bibo:subtitle' {{/if}}id='subtitle'>{{subtitle}}</h2>\n {{/if}}\n <h2>{{longStatus}} <time {{#if doRDFa}}property=\"dc:issued\"{{/if}}class='dt-published' datetime='{{dashDate}}'>{{publishHumanDate}}</time></h2>\n <dl>\n {{#if thisVersion}}\n <dt>{{l10n.this_version}}</dt>\n <dd><a class='u-url' href='{{thisVersion}}'>{{thisVersion}}</a></dd>\n {{/if}}\n {{#if latestVersion}}\n <dt>{{l10n.latest_published_version}}</dt>\n <dd><a href='{{latestVersion}}'>{{latestVersion}}</a></dd>\n {{/if}}\n {{#if edDraftURI}}\n <dt>{{l10n.latest_editors_draft}}</dt>\n <dd><a href='{{edDraftURI}}'>{{edDraftURI}}</a></dd>\n {{/if}}\n {{#if testSuiteURI}}\n <dt>Test suite:</dt>\n <dd><a href='{{testSuiteURI}}'>{{testSuiteURI}}</a></dd>\n {{/if}}\n {{#if implementationReportURI}}\n <dt>Implementation report:</dt>\n <dd><a href='{{implementationReportURI}}'>{{implementationReportURI}}</a></dd>\n {{/if}}\n {{#if bugTrackerHTML}}\n <dt>{{l10n.bug_tracker}}</dt>\n <dd>{{{bugTrackerHTML}}}</dd>\n {{/if}}\n {{#if prevVersion}}\n <dt>Previous version:</dt>\n <dd><a {{#if doRDFa}}rel=\"dcterms:replaces\"{{/if}} href='{{prevVersion}}'>{{prevVersion}}</a></dd>\n {{/if}}\n {{#unless isCGFinal}}\n {{#if prevED}}\n <dt>Previous editor's draft:</dt>\n <dd><a href='{{prevED}}'>{{prevED}}</a></dd>\n {{/if}}\n {{/unless}}\n <dt>{{#if multipleEditors}}{{l10n.editors}}{{else}}{{l10n.editor}}{{/if}}</dt>\n {{showPeople \"Editor\" editors}}\n {{#if authors}}\n <dt>{{#if multipleAuthors}}{{l10n.authors}}{{else}}{{l10n.author}}{{/if}}</dt>\n {{showPeople \"Author\" authors}}\n {{/if}}\n {{#if otherLinks}}\n {{#each otherLinks}}\n {{#if key}}\n <dt {{#if class}}class=\"{{class}}\"{{/if}}>{{key}}:</dt>\n {{#if data}}\n {{#each data}}\n {{#if value}}\n <dd {{#if class}}class=\"{{class}}\"{{/if}}>\n {{#if href}}<a href=\"{{href}}\">{{/if}}\n {{value}}\n {{#if href}}</a>{{/if}}\n </dd>\n {{else}}\n {{#if href}}\n <dd><a href=\"{{href}}\">{{href}}</a></dd>\n {{/if}}\n {{/if}}\n {{/each}}\n {{else}}\n {{#if value}}\n <dd {{#if class}}class=\"{{class}}\"{{/if}}>\n {{#if href}}<a href=\"{{href}}\">{{/if}}\n {{value}}\n {{#if href}}</a>{{/if}}\n </dd>\n {{else}}\n {{#if href}}\n <dd {{#if class}}class=\"{{class}}\"{{/if}}>\n <a href=\"{{href}}\">{{href}}</a>\n </dd>\n {{/if}}\n {{/if}}\n {{/if}}\n {{/if}}\n {{/each}}\n {{/if}}\n </dl>\n {{#if alternateFormats}}\n <p>\n {{#if multipleAlternates}}\n This document is also available in these non-normative formats: \n {{else}}\n This document is also available in this non-normative format: \n {{/if}}\n {{{alternatesHTML}}}\n </p>\n {{/if}}\n <p class='copyright'>\n <a href='https://www.w3.org/Consortium/Legal/ipr-notice#Copyright'>Copyright</a> ©\n {{#if copyrightStart}}{{copyrightStart}}-{{/if}}{{publishYear}}\n the Contributors to the {{title}} Specification, published by the\n <a href='{{wgURI}}'>{{wg}}</a> under the\n {{#if isCGFinal}}\n <a href=\"https://www.w3.org/community/about/agreements/fsa/\">W3C Community Final Specification Agreement (FSA)</a>. \n A human-readable <a href=\"https://www.w3.org/community/about/agreements/fsa-deed/\">summary</a> is available.\n {{else}}\n <a href=\"https://www.w3.org/community/about/agreements/cla/\">W3C Community Contributor License Agreement (CLA)</a>.\n A human-readable <a href=\"https://www.w3.org/community/about/agreements/cla-deed/\">summary</a> is available.\n {{/if}}\n </p>\n <hr title=\"Separator for header\">\n</div>\n")}),define("tmpl!w3c/templates/cgbg-sotd.html",["deps/handlebars"],function(e){return e.compile("<section id='sotd' class='introductory'><h2>{{l10n.sotd}}</h2>\n <p>\n This specification was published by the <a href='{{wgURI}}'>{{wg}}</a>.\n It is not a W3C Standard nor is it on the W3C Standards Track.\n {{#if isCGFinal}}\n Please note that under the \n <a href=\"https://www.w3.org/community/about/agreements/final/\">W3C Community Final Specification Agreement (FSA)</a> \n other conditions apply.\n {{else}}\n Please note that under the \n <a href=\"https://www.w3.org/community/about/agreements/cla/\">W3C Community Contributor License Agreement (CLA)</a>\n there is a limited opt-out and other conditions apply.\n {{/if}}\n Learn more about \n <a href=\"https://www.w3.org/community/\">W3C Community and Business Groups</a>.\n </p>\n {{#unless sotdAfterWGinfo}}\n {{{sotdCustomParagraph}}}\n {{/unless}}\n {{#if wgPublicList}}\n <p>If you wish to make comments regarding this document, please send them to \n <a href='mailto:{{wgPublicList}}@w3.org{{#if subjectPrefix}}?subject={{subjectPrefixEnc}}{{/if}}'>{{wgPublicList}}@w3.org</a> \n (<a href='mailto:{{wgPublicList}}[email protected]?subject=subscribe'>subscribe</a>,\n <a\n href='https://lists.w3.org/Archives/Public/{{wgPublicList}}/'>archives</a>){{#if subjectPrefix}}\n with <code>{{subjectPrefix}}</code> at the start of your\n email's subject{{/if}}.</p>\n {{/if}}\n {{#if sotdAfterWGinfo}}\n {{{sotdCustomParagraph}}}\n {{/if}}\n</section>\n")}),define("w3c/headers",["deps/handlebars","core/utils","tmpl!w3c/templates/headers.html","tmpl!w3c/templates/sotd.html","tmpl!w3c/templates/cgbg-headers.html","tmpl!w3c/templates/cgbg-sotd.html","core/pubsubhub"],function(e,t,n,r,i,a,s){return e.registerHelper("showPeople",function(t,n){var r="",i="",a="",s="",o="",l="",c="",u="",p="";this.doRDFa&&("Editor"===t?(c="_:editor0",r=" property='bibo:editor' resource='"+c+"'",i=" property='rdf:first' typeof='foaf:Person'"):"Author"===t&&(i=" property='dc:contributor' typeof='foaf:Person'"),s=" property='foaf:name'",a=" property='foaf:mbox'",o=" property='foaf:workplaceHomepage'",l=" property='foaf:homepage'",p=" property='rdfs:seeAlso'");for(var d="",h=0,f=n.length;f>h;h++){var m=n[h];if(m.w3cid&&(u=" data-editor-id='"+parseInt(m.w3cid,10)+"'"),this.doRDFa?(d+="<dd class='p-author h-card vcard' "+r+u+"><span"+i+">","Editor"===t&&(c=f-1>h?"_:editor"+(h+1):"rdf:nil",r=" resource='"+c+"'")):d+="<dd class='p-author h-card vcard'"+u+">",d+=m.url?this.doRDFa?"<meta"+s+" content='"+m.name+"'><a class='u-url url p-name fn' "+l+" href='"+m.url+"'>"+m.name+"</a>":"<a class='u-url url p-name fn' href='"+m.url+"'>"+m.name+"</a>":"<span"+s+" class='p-name fn'>"+m.name+"</span>",m.company&&(d+=", ",d+=m.companyURL?"<a"+o+" class='p-org org h-org h-card' href='"+m.companyURL+"'>"+m.company+"</a>":m.company),m.mailto&&(d+=", <span class='ed_mailto'><a class='u-email email' "+a+" href='mailto:"+m.mailto+"'>"+m.mailto+"</a></span>"),m.note&&(d+=" ("+m.note+")"),m.extras){var g=this,b=m.extras.filter(function(e){return e.name&&e.name.trim()}).map(function(e){var t=document.createElement("span"),n=t;if(e["class"]&&(t.className=e["class"]),e.href){var r=document.createElement("a");t.appendChild(r),
r.href=e.href,n=r,g.doRDFa&&r.setAttribute("property","rdfs:seeAlso")}return n.innerHTML=e.name,t.outerHTML}).join(", ");d+=", "+b}this.doRDFa&&(d+="</span>\n","Editor"===t&&(d+="<span property='rdf:rest' resource='"+c+"'></span>\n")),d+="</dd>\n"}return new e.SafeString(d)}),e.registerHelper("showLogos",function(t){for(var n="<p>",r=0,i=t.length;i>r;r++){var a=t[r];a.url&&(n+="<a href='"+a.url+"'>"),a.id&&(n+="<span id='"+a.id+"'>"),a.src?(n+="<img src='"+a.src+"'",a.width&&(n+=" width='"+a.width+"'"),a.height&&(n+=" height='"+a.height+"'"),n+=a.alt?" alt='"+a.alt+"'":1==t.length?" alt='Logo'":" alt='Logo "+(r+1)+"'",n+=">"):a.alt&&(n+=a.alt),a.url&&(n+="</a>"),a.id&&(n+="</span>")}return n+="</p>",new e.SafeString(n)}),{status2maturity:{FPWD:"WD",LC:"WD",FPLC:"WD","FPWD-NOTE":"NOTE","WD-NOTE":"WD","LC-NOTE":"LC","IG-NOTE":"NOTE","WG-NOTE":"NOTE"},status2rdf:{NOTE:"w3p:NOTE",WD:"w3p:WD",LC:"w3p:LastCall",CR:"w3p:CR",PR:"w3p:PR",REC:"w3p:REC",PER:"w3p:PER",RSCND:"w3p:RSCND"},status2text:{NOTE:"Working Group Note","WG-NOTE":"Working Group Note","CG-NOTE":"Co-ordination Group Note","IG-NOTE":"Interest Group Note","Member-SUBM":"Member Submission","Team-SUBM":"Team Submission",MO:"Member-Only Document",ED:"Editor's Draft",FPWD:"First Public Working Draft",WD:"Working Draft","FPWD-NOTE":"Working Group Note","WD-NOTE":"Working Draft","LC-NOTE":"Working Draft",FPLC:"First Public and Last Call Working Draft",LC:"Last Call Working Draft",CR:"Candidate Recommendation",PR:"Proposed Recommendation",PER:"Proposed Edited Recommendation",REC:"Recommendation",RSCND:"Rescinded Recommendation",unofficial:"Unofficial Draft",base:"Document",finding:"TAG Finding","draft-finding":"Draft TAG Finding","CG-DRAFT":"Draft Community Group Report","CG-FINAL":"Final Community Group Report","BG-DRAFT":"Draft Business Group Report","BG-FINAL":"Final Business Group Report"},status2long:{"FPWD-NOTE":"First Public Working Group Note","LC-NOTE":"Last Call Working Draft"},recTrackStatus:["FPWD","WD","FPLC","LC","CR","PR","PER","REC"],noTrackStatus:["MO","unofficial","base","finding","draft-finding","CG-DRAFT","CG-FINAL","BG-DRAFT","BG-FINAL","webspec"],cgbg:["CG-DRAFT","CG-FINAL","BG-DRAFT","BG-FINAL"],precededByAn:["ED","IG-NOTE"],licenses:{cc0:{name:"Creative Commons 0 Public Domain Dedication","short":"CC0",url:"https://creativecommons.org/publicdomain/zero/1.0/"},"w3c-software":{name:"W3C Software Notice and License","short":"W3C Software",url:"https://www.w3.org/Consortium/Legal/2002/copyright-software-20021231"},"w3c-software-doc":{name:"W3C Software and Document Notice and License","short":"W3C Software and Document",url:"https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document"},"cc-by":{name:"Creative Commons Attribution 4.0 International Public License","short":"CC-BY",url:"https://creativecommons.org/licenses/by/4.0/legalcode"}},run:function(e,o,l){void 0===e.doRDFa&&(e.doRDFa=!0),e.license||(e.license="webspec"===e.specStatus?"w3c-software":"w3c"),e.isCCBY="cc-by"===e.license,e.isW3CSoftAndDocLicense="w3c-software-doc"===e.license,"webspec"!==e.specStatus||$.inArray(e.license,["cc0","w3c-software"])||s.pub("error","You cannot use that license with WebSpecs."),"webspec"===e.specStatus||$.inArray(e.license,["cc-by","w3c"])||s.pub("error","You cannot use that license with that type of document."),e.licenseInfo=this.licenses[e.license],e.isCGBG=$.inArray(e.specStatus,this.cgbg)>=0,e.isCGFinal=e.isCGBG&&/G-FINAL$/.test(e.specStatus),e.isBasic="base"===e.specStatus,e.isRegular=!e.isCGBG&&!e.isBasic,e.specStatus||s.pub("error","Missing required configuration: specStatus"),e.isRegular&&!e.shortName&&s.pub("error","Missing required configuration: shortName"),e.title=o.title||"No Title",e.subtitle||(e.subtitle=""),e.publishDate?e.publishDate instanceof Date||(e.publishDate=t.parseSimpleDate(e.publishDate)):e.publishDate=t.parseLastModified(o.lastModified),e.publishYear=e.publishDate.getFullYear(),e.publishHumanDate=t.humanDate(e.publishDate),e.isNoTrack=$.inArray(e.specStatus,this.noTrackStatus)>=0,e.isRecTrack=e.noRecTrack?!1:$.inArray(e.specStatus,this.recTrackStatus)>=0,e.isMemberSubmission="Member-SUBM"===e.specStatus,e.isTeamSubmission="Team-SUBM"===e.specStatus,e.isSubmission=e.isMemberSubmission||e.isTeamSubmission,e.anOrA=$.inArray(e.specStatus,this.precededByAn)>=0?"an":"a",e.isTagFinding="finding"===e.specStatus||"draft-finding"===e.specStatus,e.edDraftURI||(e.edDraftURI="","ED"===e.specStatus&&s.pub("warn","Editor's Drafts should set edDraftURI.")),e.maturity=this.status2maturity[e.specStatus]?this.status2maturity[e.specStatus]:e.specStatus;var c="TR";if("Member-SUBM"===e.specStatus?c="Submission":"Team-SUBM"===e.specStatus&&(c="TeamSubmission"),e.isRegular&&(e.thisVersion="https://www.w3.org/"+c+"/"+e.publishDate.getFullYear()+"/"+e.maturity+"-"+e.shortName+"-"+t.concatDate(e.publishDate)+"/"),"ED"===e.specStatus&&(e.thisVersion=e.edDraftURI),e.isRegular&&(e.latestVersion="https://www.w3.org/"+c+"/"+e.shortName+"/"),e.isTagFinding&&(e.latestVersion="https://www.w3.org/2001/tag/doc/"+e.shortName,e.thisVersion=e.latestVersion+"-"+t.concatDate(e.publishDate,"-")),e.previousPublishDate){e.previousMaturity||e.isTagFinding||s.pub("error","previousPublishDate is set, but not previousMaturity"),e.previousPublishDate instanceof Date||(e.previousPublishDate=t.parseSimpleDate(e.previousPublishDate));var u=this.status2maturity[e.previousMaturity]?this.status2maturity[e.previousMaturity]:e.previousMaturity;e.isTagFinding?e.prevVersion=e.latestVersion+"-"+t.concatDate(e.previousPublishDate,"-"):e.isCGBG?e.prevVersion=e.prevVersion||"":e.isBasic?e.prevVersion="":e.prevVersion="https://www.w3.org/TR/"+e.previousPublishDate.getFullYear()+"/"+u+"-"+e.shortName+"-"+t.concatDate(e.previousPublishDate)+"/"}else/NOTE$/.test(e.specStatus)||"FPWD"===e.specStatus||"FPLC"===e.specStatus||"ED"===e.specStatus||e.noRecTrack||e.isNoTrack||e.isSubmission||s.pub("error","Document on track but no previous version: Add previousMaturity previousPublishDate to ReSpec's config."),e.prevVersion||(e.prevVersion="");e.prevRecShortname&&!e.prevRecURI&&(e.prevRecURI="https://www.w3.org/TR/"+e.prevRecShortname),e.editors&&0!==e.editors.length||s.pub("error","At least one editor is required");var p=function(e){e.name||s.pub("error","All authors and editors must have a name.")};e.editors&&e.editors.forEach(p),e.authors&&e.authors.forEach(p),e.multipleEditors=e.editors&&e.editors.length>1,e.multipleAuthors=e.authors&&e.authors.length>1,$.each(e.alternateFormats||[],function(e,t){t.uri&&t.label||s.pub("error","All alternate formats must have a uri and a label.")}),e.multipleAlternates=e.alternateFormats&&e.alternateFormats.length>1,e.alternatesHTML=t.joinAnd(e.alternateFormats,function(e){var t=e.hasOwnProperty("lang")&&e.lang?" hreflang='"+e.lang+"'":"";return t+=e.hasOwnProperty("type")&&e.type?" type='"+e.type+"'":"","<a rel='alternate' href='"+e.uri+"'"+t+">"+e.label+"</a>"}),e.bugTracker&&(e.bugTracker["new"]&&e.bugTracker.open?e.bugTrackerHTML="<a href='"+e.bugTracker["new"]+"'>"+e.l10n.file_a_bug+"</a> "+e.l10n.open_parens+"<a href='"+e.bugTracker.open+"'>"+e.l10n.open_bugs+"</a>"+e.l10n.close_parens:e.bugTracker.open?e.bugTrackerHTML="<a href='"+e.bugTracker.open+"'>open bugs</a>":e.bugTracker["new"]&&(e.bugTrackerHTML="<a href='"+e.bugTracker["new"]+"'>file a bug</a>")),e.copyrightStart&&e.copyrightStart==e.publishYear&&(e.copyrightStart="");for(var d in this.status2text)this.status2long[d]||(this.status2long[d]=this.status2text[d]);if(e.longStatus=this.status2long[e.specStatus],e.textStatus=this.status2text[e.specStatus],this.status2rdf[e.specStatus]&&(e.rdfStatus=this.status2rdf[e.specStatus]),e.showThisVersion=!e.isNoTrack||e.isTagFinding,e.showPreviousVersion="FPWD"!==e.specStatus&&"FPLC"!==e.specStatus&&"ED"!==e.specStatus&&!e.isNoTrack&&!e.isSubmission,/NOTE$/.test(e.specStatus)&&!e.prevVersion&&(e.showPreviousVersion=!1),e.isTagFinding&&(e.showPreviousVersion=e.previousPublishDate?!0:!1),e.notYetRec=e.isRecTrack&&"REC"!==e.specStatus,e.isRec=e.isRecTrack&&"REC"===e.specStatus,e.isRec&&!e.errata&&s.pub("error","Recommendations must have an errata link."),e.notRec="REC"!==e.specStatus,e.isUnofficial="unofficial"===e.specStatus,e.prependW3C=!e.isUnofficial,e.isED="ED"===e.specStatus,e.isLC="LC"===e.specStatus||"FPLC"===e.specStatus,e.isCR="CR"===e.specStatus,e.isPR="PR"===e.specStatus,e.isPER="PER"===e.specStatus,e.isMO="MO"===e.specStatus,e.isIGNote="IG-NOTE"===e.specStatus,e.dashDate=t.concatDate(e.publishDate,"-"),e.publishISODate=t.isoDate(e.publishDate),e.shortISODate=e.publishISODate.replace(/T.*/,""),e.processVersion=e.processVersion||"2015","2014"==e.processVersion&&(s.pub("warn","Process "+e.processVersion+" has been superceded by Process 2015."),e.processVersion="2015"),e.isNewProcess="2015"==e.processVersion,e.doRDFa){e.rdfStatus?$("html").attr("typeof","bibo:Document "+e.rdfStatus):$("html").attr("typeof","bibo:Document ");var h="bibo: http://purl.org/ontology/bibo/ w3p: http://www.w3.org/2001/02pd/rec54#";$("html").attr("prefix",h),$("html>head").prepend($("<meta lang='' property='dc:language' content='en'>"))}var f;f=e.isCGBG?i(e):n(e),$("body",o).prepend($(f)).addClass("h-entry");var m=$("#sotd");!e.isCGBG&&e.isNoTrack&&!e.isTagFinding||m.length||s.pub("error","A custom SotD paragraph is required for your type of document."),e.sotdCustomParagraph=m.html(),m.remove();var g=[e.wg,e.wgURI,e.wgPatentURI];if(g.some(function(e){return $.isArray(e)})&&g.some(function(e){return!$.isArray(e)})&&s.pub("error","If one of 'wg', 'wgURI', or 'wgPatentURI' is an array, they all have to be."),$.isArray(e.wg)){e.multipleWGs=e.wg.length>1,e.wgHTML=t.joinAnd(e.wg,function(t,n){return"the <a href='"+e.wgURI[n]+"'>"+t+"</a>"});for(var b=[],v=0,y=e.wg.length;y>v;v++)b.push("a <a href='"+e.wgPatentURI[v]+"' rel='disclosure'>public list of any patent disclosures ("+e.wg[v]+")</a>");e.wgPatentHTML=t.joinAnd(b)}else e.multipleWGs=!1,e.wgHTML="the <a href='"+e.wgURI+"'>"+e.wg+"</a>";e.isLC&&!e.lcEnd&&s.pub("error","Status is LC but no lcEnd is specified"),"PR"!==e.specStatus||e.lcEnd||s.pub("error","Status is PR but no lcEnd is specified (needed to indicate end of previous LC)"),e.humanLCEnd=t.humanDate(e.lcEnd||""),"CR"!==e.specStatus||e.crEnd||s.pub("error","Status is CR but no crEnd is specified"),e.humanCREnd=t.humanDate(e.crEnd||""),"PR"!==e.specStatus||e.prEnd||s.pub("error","Status is PR but no prEnd is specified"),e.humanPREnd=t.humanDate(e.prEnd||""),e.humanPEREnd=t.humanDate(e.perEnd||""),"PER"!==e.specStatus||e.perEnd||s.pub("error","Status is PER but no perEnd is specified"),e.recNotExpected=!e.isRecTrack&&"WD"==e.maturity&&"FPWD-NOTE"!==e.specStatus,e.isIGNote&&!e.charterDisclosureURI&&s.pub("error","IG-NOTEs must link to charter's disclosure section using charterDisclosureURI"),""!==e.subjectPrefix&&(e.subjectPrefixEnc=encodeURIComponent(e.subjectPrefix));var w;w=e.isCGBG?a(e):r(e),w&&$(w).insertAfter($("#abstract")),!e.implementationReportURI&&(e.isCR||e.isPR||e.isRec)&&s.pub("error","CR, PR, and REC documents need to have an implementationReportURI defined."),e.isTagFinding&&!e.sotdCustomParagraph&&s.pub("error","ReSpec does not support automated SotD generation for TAG findings, please specify one using a <code><section></code> element with ID=sotd."),l()}}}),define("w3c/abstract",["core/pubsubhub"],function(e){return{run:function(t,n,r){var i=$("#abstract");if(i.length){if(0===i.find("p").length&&i.contents().wrapAll($("<p></p>")),i.prepend("<h2>"+t.l10n["abstract"]+"</h2>"),i.addClass("introductory"),t.doRDFa){var a="dc:abstract",s=i.attr("property");s&&(a=s+" "+a),i.attr({property:a})}}else e.pub("error","Document must have one element with ID 'abstract'");r()}}}),define("tmpl!w3c/templates/conformance.html",["deps/handlebars"],function(e){return e.compile("<h2>Conformance</h2>\n<p>\n As well as sections marked as non-normative, all authoring guidelines, diagrams, examples,\n and notes in this specification are non-normative. Everything else in this specification is\n normative.\n</p>\n<p id='respecRFC2119'>\n to be interpreted as described in [[!RFC2119]].\n</p>\n")}),define("w3c/conformance",["tmpl!w3c/templates/conformance.html","core/pubsubhub"],function(e,t){return{run:function(n,r,i){var a=$("#conformance");a.length&&a.prepend(e(n)),t.pub("end","w3c/conformance"),i()}}}),define("core/data-transform",["core/utils"],function(e){return{run:function(t,n,r){$("[data-transform]",n).each(function(t,n){var r=$(n),i=r.attr("data-transform");r.removeAttr("data-transform");var a;try{a=e.runTransforms(r.html(),i)}catch(s){console.error(s)}a&&r.html(a)}),r()}}}),define("core/data-include",["core/utils","core/pubsubhub"],function(e,t){return{run:function(n,r,i){var a=$("[data-include]"),s=a.length,o=function(e){return e.removeAttr("data-include"),e.removeAttr("data-oninclude"),e.removeAttr("data-include-format"),e.removeAttr("data-include-replace"),s--,0>=s?i():void 0};return s?void a.each(function(){var n=$(this),i=n.attr("data-include"),a=n.attr("data-include-format")||"html",s=!!n.attr("data-include-replace");$.ajax({dataType:a,url:i,success:function(t){if(t){var l=n.attr("data-oninclude");l&&(t=e.runTransforms(t,l,i)),s?n.replaceWith("text"===a?r.createTextNode(t):t):"text"===a?n.text(t):n.html(t)}o(n)},error:function(e,r,a){t.pub("error","Error including URI="+i+": "+r+" ("+a+")"),o(n)}})}):i()}}}),define("core/inlines",["core/pubsubhub"],function(e){return{run:function(t,n,r){n.normalize(),t.normativeReferences||(t.normativeReferences={}),t.informativeReferences||(t.informativeReferences={}),t.respecRFC2119||(t.respecRFC2119={});var i={},a={};$("abbr[title]",n).each(function(){i[$(this).text()]=$(this).attr("title")}),$("acronym[title]",n).each(function(){a[$(this).text()]=$(this).attr("title")});var s=[];for(var o in i)s.push(o);for(var o in a)s.push(o);s.sort(function(e,t){return t.length<e.length?-1:e.length<t.length?1:0});for(var l=s.length?"(?:\\b"+s.join("\\b)|(?:\\b")+"\\b)":null,c=$("body",n).allTextNodes(["pre"]),u=new RegExp("(\\bMUST(?:\\s+NOT)?\\b|\\bSHOULD(?:\\s+NOT)?\\b|\\bSHALL(?:\\s+NOT)?\\b|\\bMAY\\b|\\b(?:NOT\\s+)?REQUIRED\\b|\\b(?:NOT\\s+)?RECOMMENDED\\b|\\bOPTIONAL\\b|(?:\\[\\[(?:!|\\\\)?[A-Za-z0-9\\.-]+\\]\\])"+(l?"|"+l:"")+")"),p=0;p<c.length;p++){var d=c[p],h=d.data.split(u);if(1!==h.length){for(var f=n.createDocumentFragment();h.length;){var m=h.shift(),g=null;if(h.length&&(g=h.shift()),f.appendChild(n.createTextNode(m)),g)if(/MUST(?:\s+NOT)?|SHOULD(?:\s+NOT)?|SHALL(?:\s+NOT)?|MAY|(?:NOT\s+)?REQUIRED|(?:NOT\s+)?RECOMMENDED|OPTIONAL/.test(g))g=g.split(/\s+/).join(" "),f.appendChild($("<em/>").attr({"class":"rfc2119",title:g}).text(g)[0]),t.respecRFC2119[g]=!0;else if(/^\[\[/.test(g)){var b=g;if(b=b.replace(/^\[\[/,""),b=b.replace(/\]\]$/,""),0===b.indexOf("\\"))f.appendChild(n.createTextNode("[["+b.replace(/^\\/,"")+"]]"));else{var v=!1;0===b.indexOf("!")&&(v=!0,b=b.replace(/^!/,"")),v?t.normativeReferences[b]=!0:t.informativeReferences[b]=!0,f.appendChild(n.createTextNode("[")),f.appendChild($("<cite/>").wrapInner($("<a/>").attr({"class":"bibref",href:"#bib-"+b}).text(b))[0]),f.appendChild(n.createTextNode("]"))}}else i[g]?$(d).parents("abbr").length?f.appendChild(n.createTextNode(g)):f.appendChild($("<abbr/>").attr({title:i[g]}).text(g)[0]):a[g]?$(d).parents("acronym").length?f.appendChild(n.createTextNode(g)):f.appendChild($("<acronym/>").attr({title:a[g]}).text(g)[0]):e.pub("error","Found token '"+g+"' but it does not correspond to anything")}d.parentNode.replaceChild(f,d)}}r()}}}),define("core/dfn",[],function(){return{run:function(e,t,n){t.normalize(),$("[dfn-for]").each(function(){this.setAttribute("data-dfn-for",this.getAttribute("dfn-for").toLowerCase()),this.removeAttribute("dfn-for")}),e.definitionMap||(e.definitionMap=Object.create(null)),$("dfn").each(function(){var t=$(this);t.attr("for")?(t.attr("data-dfn-for",t.attr("for").toLowerCase()),t.removeAttr("for")):t.attr("data-dfn-for",(t.closest("[data-dfn-for]").attr("data-dfn-for")||"").toLowerCase());var n=t.getDfnTitles({isDefinition:!0});n.forEach(function(n){e.definitionMap[n]||(e.definitionMap[n]=[]),e.definitionMap[n].push($(t[0]))})}),n()}}}),define("w3c/rfc2119",["core/utils"],function(e){return{run:function(t,n,r){var i=$("#respecRFC2119");if(i.length){var a=Object.getOwnPropertyNames(t.respecRFC2119).sort();if(a&&a.length){var s="The ",o=function(e){var t="<em class='rfc2119' title='"+e+"'>"+e+"</em>";return t};s+=a.length>1?"key words "+e.joinAnd(a,o)+" are ":"key word "+e.joinAnd(a,o)+" is ",s+=i[0].innerHTML,i[0].innerHTML=s}else i.remove()}r()}}}),define("deps/text!core/css/examples.css",[],function(){return"/* --- EXAMPLES --- */\ndiv.example-title {\n min-width: 7.5em;\n color: #b9ab2d;\n}\ndiv.example-title span {\n text-transform: uppercase;\n}\naside.example, div.example, div.illegal-example {\n padding: 0.5em;\n margin: 1em 0;\n position: relative;\n clear: both;\n}\ndiv.illegal-example { color: red }\ndiv.illegal-example p { color: black }\naside.example, div.example {\n padding: .5em;\n border-left-width: .5em;\n border-left-style: solid;\n border-color: #e0cb52;\n background: #fcfaee;\n}\n\naside.example div.example {\n border-left-width: .1em;\n border-color: #999;\n background: #fff;\n}\naside.example div.example div.example-title {\n color: #999;\n}\n"}),define("core/examples",["core/pubsubhub","deps/text!core/css/examples.css"],function(e,t){var n=function(e,t,n,r){var i=n>0?" "+n:"",a=$("<div class='example-title'><span>Example"+i+"</span></div>");return r.title=t.attr("title"),r.title&&(a.append($("<span style='text-transform: none'>: "+r.title+"</span>")),t.removeAttr("title")),a.addClass("marker"),a};return{run:function(r,i,a){var s=$("pre.example, pre.illegal-example, aside.example"),o=0;s.length&&($(i).find("head link").first().before($("<style/>").text(t)),s.each(function(t,i){var a=$(i),s={number:o,illegal:a.hasClass("illegal-example")};if(a.is("aside")){o++;var l=n(r,a,o,s);a.prepend(l),e.pub("example",s)}else{var c=!!a.parents("aside").length;c||o++;for(var u=a.html().split("\n");u.length&&/^\s*$/.test(u[0]);)u.shift();for(;u.length&&/^\s*$/.test(u[u.length-1]);)u.pop();var p=/^(\s+)/.exec(u[0]);if(p)for(var d=new RegExp("^"+p[1]),h=0;h<u.length;h++)u[h]=u[h].replace(d,"");s.content=u.join("\n"),a.html(u.join("\n")),a.removeClass("example illegal-example");var f=$("<div class='example'></div>"),l=n(r,a,c?0:o,s);f.append(l),f.append(a.clone()),a.replaceWith(f),c||e.pub("example",s)}})),a()}}}),define("deps/text!core/css/issues-notes.css",[],function(){return'/* --- ISSUES/NOTES --- */\ndiv.issue-title, div.note-title , div.ednote-title, div.warning-title {\n padding-right: 1em;\n min-width: 7.5em;\n color: #b9ab2d;\n}\ndiv.issue-title { color: #e05252; }\ndiv.note-title, div.ednote-title { color: #2b2; }\ndiv.warning-title { color: #f22; }\ndiv.issue-title span, div.note-title span, div.ednote-title span, div.warning-title span {\n text-transform: uppercase;\n}\ndiv.note, div.issue, div.ednote, div.warning {\n margin-top: 1em;\n margin-bottom: 1em;\n}\n.note > p:first-child, .ednote > p:first-child, .issue > p:first-child, .warning > p:first-child { margin-top: 0 }\n.issue, .note, .ednote, .warning {\n padding: .5em;\n border-left-width: .5em;\n border-left-style: solid;\n}\ndiv.issue, div.note , div.ednote, div.warning {\n padding: 1em 1.2em 0.5em;\n margin: 1em 0;\n position: relative;\n clear: both;\n}\nspan.note, span.ednote, span.issue, span.warning { padding: .1em .5em .15em; }\n\n.issue {\n border-color: #e05252;\n background: #fbe9e9;\n}\n.note, .ednote {\n border-color: #52e052;\n background: #e9fbe9;\n}\n\n.warning {\n border-color: #f11;\n border-width: .2em;\n border-style: solid;\n background: #fbe9e9;\n}\n\n.warning-title:before{\n content: "⚠"; /*U+26A0 WARNING SIGN*/\n font-size: 3em;\n float: left;\n height: 100%;\n padding-right: .3em;\n vertical-align: top;\n margin-top: -0.5em;\n}\n\nli.task-list-item {\n list-style: none;\n}\n\ninput.task-list-item-checkbox {\n margin: 0 0.35em 0.25em -1.6em;\n vertical-align: middle;\n}\n'}),define("github",[],function(){function e(e){var t=(e||"").match(/<([^>]+)>\s*;\s*rel="next"/);return t&&t[1]||null}function t(e,t){return t&&(t.url=e,e=t),$.ajax(e)}function n(e,t){return r(e,t,[])}function r(n,i,a){var s=t(n,i);return s.then(function(t){a.push.apply(a,t);var n=e(s.getResponseHeader("Link"));return n?r(n,i,a):a})}return{fetch:t,fetchAll:n,fetchIndex:function(e,t){return n(e.replace(/\{[^}]+\}/,""),t)}}}),define("core/issues-notes",["core/pubsubhub","deps/text!core/css/issues-notes.css","github"],function(e,t,n){return{run:function(r,i,a){function s(n,a,s){$(i).find("head link").first().before($("<style/>").text(t));var o=$(".issue[data-number]").length>0,l=0,c=$("<div><h2>Issue Summary</h2><ul></ul></div>"),u=c.find("ul");n.each(function(t,n){var i=$(n),c=i.hasClass("issue"),p=i.hasClass("warning"),d=i.hasClass("ednote"),h=i.hasClass("atrisk"),f="block"!=i.css("display"),m=i.attr("data-number"),g={inline:f,content:i.html()};if(g.type=c?"issue":p?"warning":d?"ednote":"note",!c||f||o?m&&(g.number=m):(l++,g.number=l),!f){var b,v=$("<div class='"+g.type+(h?" atrisk":"")+"'></div>"),y=$("<div class='"+g.type+"-title'><span></span></div>"),w=c?h?"Feature at Risk":"Issue":p?"Warning":d?"Editor's Note":r.l10n.note;if(g.title=i.attr("title"),c&&(o?m&&(w+=" "+m,!h&&s?y.find("span").wrap($("<a href='"+s+m+"'/>")):h&&r.atRiskBase&&y.find("span").wrap($("<a href='"+r.atRiskBase+m+"'/>")),b=a[m],b&&!g.title&&(g.title=b.title)):w+=" "+l,void 0!==g.number)){var x="issue-"+g.number,_=$("<li><a></a></li>"),k=_.find("a");v.attr("id",x),k.attr("href","#"+x).text("Issue "+g.number),g.title&&_.append($("<span style='text-transform: none'>: "+g.title+"</span>")),u.append(_)}y.find("span").text(w),g.title&&(y.append($("<span style='text-transform: none'>: "+g.title+"</span>")),i.removeAttr("title")),y.addClass("marker"),v.append(y),i.replaceWith(v);var E=i.removeClass(g.type).removeAttr("data-number");b&&!E.text().trim()&&(E=b.body_html),v.append(E)}e.pub(g.type,g)}),$(".issue").length?$("#issue-summary")&&$("#issue-summary").append(c.contents()):$("#issue-summary").length&&(e.pub("warn","Using issue summary (#issue-summary) but no issues found."),$("#issue-summary").remove())}var o=$(".issue, .note, .warning, .ednote"),l={},c=r.issueBase;o.length?r.githubAPI?n.fetch(r.githubAPI).then(function(e){return c=c||e.html_url+"/issues/",n.fetchIndex(e.issues_url,{headers:{Accept:"application/vnd.github.v3.html+json"}})}).then(function(e){e.forEach(function(e){l[e.number]=e}),s(o,l,c),a()}):(s(o,l,c),a()):a()}}}),define("core/requirements",["core/pubsubhub"],function(e){return{run:function(t,n,r){$(".req").each(function(t){t++;var n=$(this),r="Req. "+t;e.pub("req",{type:"req",number:t,content:n.html(),title:r}),n.prepend("<a href='#"+n.attr("id")+"'>"+r+"</a>: ")}),$("a.reqRef").each(function(){var t,n,r,i=$(this),a=i.attr("href");a&&(t=a.substring(1),n=$("#"+t),n.length?r=n.find("> a").text():(r="Req. not found '"+t+"'",e.pub("error","Requirement not found in a.reqRef: "+t)),i.text(r))}),r()}}}),define("deps/text!core/css/bp.css",[],function(){return"/* --- Best Practices --- */\ndiv.practice {\n border: solid #bebebe 1px;\n margin: 2em 1em 1em 2em;\n}\n\nspan.practicelab {\n margin: 1.5em 0.5em 1em 1em;\n font-weight: bold;\n font-style: italic;\n background: #dfffff;\n position: relative;\n padding: 0 0.5em;\n top: -1.5em;\n}\n\np.practicedesc {\n margin: 1.5em 0.5em 1em 1em;\n}\n\n@media screen {\n p.practicedesc {\n position: relative;\n top: -2em;\n padding: 0;\n margin: 1.5em 0.5em -1em 1em;\n }\n}\n"}),define("core/best-practices",["deps/text!core/css/bp.css","core/pubsubhub"],function(e,t){return{run:function(n,r,i){var a=0,s=$("span.practicelab",r),o=$("<div><h2>Best Practices Summary</h2><ul></ul></div>"),l=o.find("ul");s.each(function(){var e=$(this),t=e.makeID("bp"),n=$("<li><a></a></li>"),i=n.find("a");a++,i.attr("href","#"+t).text("Best Practice "+a),n.append(r.createTextNode(": "+e.text())),l.append(n),e.prepend(r.createTextNode("Best Practice "+a+": "))}),s.length?($(r).find("head link").first().before($("<style/>").text(e)),$("#bp-summary")&&$("#bp-summary").append(o.contents())):$("#bp-summary").length&&(t.pub("warn","Using best practices summary (#bp-summary) but no best practices found."),$("#bp-summary").remove()),i()}}}),define("core/figures",["core/pubsubhub"],function(e){return{run:function(t,n,r){$(".figure",n).each(function(t,n){var r=$(n),i=r.attr("title")||r.find("[title]").attr("title")||r.attr("alt")||r.find("[alt]").attr("alt")||"",a=$("<figcaption/>").text(i);r.is("div")?(e.pub("warn","You are using the deprecated div.figure syntax; please switch to <figure>."),r.append(a),r.renameElement("figure")):(e.pub("warn","You are using the deprecated img.figure syntax; please switch to <figure>."),r.wrap("<figure></figure>"),r.parent().append(a))});var i={},a=[],s=0;$("figure").each(function(){var r=$(this),o=r.find("figcaption"),l=o.text(),c=r.makeID("fig",l);o.length||e.pub("warn","A <figure> should contain a <figcaption>."),s++,o.wrapInner($("<span class='fig-title'/>")).prepend(n.createTextNode(" ")).prepend($("<span class='figno'>"+s+"</span>")).prepend(n.createTextNode(t.l10n.fig)),i[c]=o.contents();var u=o.clone();u.find("a").renameElement("span").removeAttr("href"),a.push($("<li class='tofline'><a class='tocxref' href='#"+c+"'></a></li>").find(".tocxref").append(u.contents()).end())}),$("a[href]",n).each(function(){var e=$(this),t=e.attr("href");t&&(t=t.substring(1),i[t]&&(e.addClass("fig-ref"),""===e.html()&&e.append(i[t].clone())))});var o=$("#tof",n);if(a.length&&o.length){o.hasClass("appendix")||o.hasClass("introductory")||o.parents("section").length||(o.prevAll("section.introductory").length==o.prevAll("section").length?o.addClass("introductory"):o.prevAll("appendix").length&&o.addClass("appendix")),o.append($("<h2>Table of Figures</h2>")),o.append($("<ul class='tof'/>"));for(var l=o.find("ul");a.length;)l.append(a.shift())}r()}}}),define("core/biblio",["core/pubsubhub","core/utils"],function(e,t){var n=new URL("https://specref.herokuapp.com/bibrefs?refs="),r=function(e){var t=e.informativeReferences,n=e.normativeReferences,r=[],i=function(e){var t=[];for(var n in e)t.push(n);return t};for(var a in t)n[a]&&r.push(a);for(var s=0;s<r.length;s++)delete t[r[s]];return{informativeReferences:i(t),normativeReferences:i(n)}},i={NOTE:"W3C Note","WG-NOTE":"W3C Working Group Note",ED:"W3C Editor's Draft",FPWD:"W3C First Public Working Draft",WD:"W3C Working Draft",LCWD:"W3C Last Call Working Draft",CR:"W3C Candidate Recommendation",PR:"W3C Proposed Recommendation",PER:"W3C Proposed Edited Recommendation",REC:"W3C Recommendation"},a=function(e){if("string"==typeof e)return e;var t="";return e.authors&&e.authors.length&&(t+=e.authors.join("; "),e.etAl&&(t+=" et al"),t+=". "),e.publisher&&(t+=e.publisher,t+=/\.$/.test(e.publisher)?" ":". "),t+=e.href?'<a href="'+e.href+'"><cite>'+e.title+"</cite></a>. ":"<cite>"+e.title+"</cite>. ",e.date&&(t+=e.date+". "),e.status&&(t+=(i[e.status]||e.status)+". "),e.href&&(t+='URL: <a href="'+e.href+'">'+e.href+"</a>"),t},s=function(t){var n={},i=r(t),s=i.informativeReferences,o=i.normativeReferences,l={};if(s.length||o.length||t.refNote){var c=$("<section id='references' class='appendix'><h2>References</h2></section>").appendTo($("body"));t.refNote&&$("<p></p>").html(t.refNote).appendTo(c);for(var u=["Normative","Informative"],p=0;p<u.length;p++){var d=u[p],i="Normative"==d?o:s;if(i.length){var h=$("<section><h3></h3></section>").appendTo(c).find("h3").text(d+" references").end();h.makeID(null,d+" references"),i.sort();var f=$("<dl class='bibliography'></dl>").appendTo(h);t.doRDFa&&f.attr("resource","");for(var m=0;m<i.length;m++){var g=i[m];$("<dt></dt>").attr({id:"bib-"+g}).text("["+g+"]").appendTo(f);var b=$("<dd></dd>").appendTo(f),v=t.biblio[g],y={},w=g;for(y[g]=!0;v&&v.aliasOf;)y[v.aliasOf]?(v=null,e.pub("error","Circular reference in biblio DB between ["+g+"] and ["+w+"].")):(w=v.aliasOf,v=t.biblio[w],y[w]=!0);if(l[w]=l[w]||[],l[w].indexOf(g)<0&&l[w].push(g),v){if(b.html(a(v)+"\n"),t.doRDFa){var x=b.children("a");x.attr("property","Normative"===d?"dc:requires":"dc:references")}}else n[g]||(n[g]=0),n[g]++,b.html("<em style='color: #f00'>Reference not found.</em>\n")}}}for(var _ in l)l[_].length>1&&e.pub("warn","["+_+"] is referenced in "+l[_].length+" ways ("+l[_].join(", ")+"). This causes duplicate entries in the reference section.");for(var k in n)n.hasOwnProperty(k)&&e.pub("error","Bad reference: ["+k+"] (appears "+n[k]+" times)")}},o=t.createResourceHint({hint:"dns-prefetch",href:n.origin});return document.head.appendChild(o),{stringifyRef:a,run:function(t,i,a){if(t.localBiblio||(t.localBiblio={}),t.biblio){var o="Overriding `.biblio` in config. Please use `.localBiblio` for custom biblio entries.";e.pub("warn",o)}t.biblio={};var l=Array.from(Object.keys(t.localBiblio)).filter(function(e){return t.localBiblio[e].hasOwnProperty("aliasOf")}).map(function(e){return t.localBiblio[e].aliasOf}),c=r(t),u=c.normativeReferences.concat(c.informativeReferences).filter(function(e){return!t.localBiblio.hasOwnProperty(e)}).concat(l).reduce(function(e,t){return-1===e.indexOf(t)&&e.push(t),e},[]).sort();if(!u.length)return Object.assign(t.biblio,t.localBiblio),s(t),void a();var p=n.href+u.join(",");fetch(p).then(function(e){return e.json()}).then(function(e){Object.assign(t.biblio,e,t.localBiblio),s(t)})["catch"](function(e){console.error(e)}).then(a)}}}),function(){var e=function(e){var t=[],n={"float":/^-?(([0-9]+\.[0-9]*|[0-9]*\.[0-9]+)([Ee][-+]?[0-9]+)?|[0-9]+[Ee][-+]?[0-9]+)/,integer:/^-?(0([Xx][0-9A-Fa-f]+|[0-7]*)|[1-9][0-9]*)/,identifier:/^[A-Z_a-z][0-9A-Z_a-z]*/,string:/^"[^"]*"/,whitespace:/^(?:[\t\n\r ]+|[\t\n\r ]*((\/\/.*|\/\*(.|\n|\r)*?\*\/)[\t\n\r ]*))+/,other:/^[^\t\n\r 0-9A-Z_a-z]/},r=[];for(var i in n)r.push(i);for(;e.length>0;){for(var a=!1,s=0,o=r.length;o>s;s++){var l=r[s];if(e=e.replace(n[l],function(e){return t.push({type:l,value:e}),a=!0,""}),a)break}if(!a)throw new Error("Token stream not progressing")}return t},t=function(e,t){var n=1;e=e.slice();var r="float",i="integer",a="identifier",s="string",o="other",l=function(e,t,n,r){this.message=e,this.line=t,this.input=n,this.tokens=r};l.prototype.toString=function(){return this.message+", line "+this.line+" (tokens: '"+this.input+"')\n"+JSON.stringify(this.tokens,null,4)};var c=function(t){for(var r="",i=0,a=5;a>i&&e.length>i;)r+=e[i].value,i++;throw new l(t,n,r,e.slice(0,5))},u=null,p=function(t,n){return e.length&&e[0].type===t&&("undefined"==typeof n||e[0].value===n)?(u=e.shift(),t===a&&(u.value=u.value.replace(/^_/,"")),u):void 0},d=function(){if(e.length&&"whitespace"===e[0].type){var t=e.shift();return t.value.replace(/\n/g,function(e){return n++,e}),t}},h=function(e,t){for(var n={type:"whitespace",value:""};;){var r=d();if(!r)break;n.value+=r.value}if(n.value.length>0){if(e){var r=n.value,i={ws:/^([\t\n\r ]+)/,"line-comment":/^\/\/(.*)\n?/m,"multiline-comment":/^\/\*((?:.|\n|\r)*?)\*\//},a=[];for(var s in i)a.push(s);for(;r.length;){for(var o=!1,l=0,c=a.length;c>l;l++){var u=a[l];if(r=r.replace(i[u],function(n,r){return e.push({type:u+(t?"-"+t:""),value:r}),o=!0,""}),o)break}if(!o)throw new Error("Surprising white space construct.")}}return n}},f=function(){var e="";return h(),p(a,"unsigned")&&(e="unsigned "),h(),p(a,"short")?e+"short":p(a,"long")?(e+="long",h(),p(a,"long")?e+" long":e):void(e&&c("Failed to parse integer type"))},m=function(){var e="";return h(),p(a,"unrestricted")&&(e="unrestricted "),h(),p(a,"float")?e+"float":p(a,"double")?e+"double":void(e&&c("Failed to parse float type"))},g=function(){var e=f()||m();return e?e:(h(),
p(a,"boolean")?"boolean":p(a,"byte")?"byte":p(a,"octet")?"octet":void 0)},b=function(){if(p(a,"true"))return{type:"boolean",value:!0};if(p(a,"false"))return{type:"boolean",value:!1};if(p(a,"null"))return{type:"null"};if(p(a,"Infinity"))return{type:"Infinity",negative:!1};if(p(a,"NaN"))return{type:"NaN"};var t=p(r)||p(i);if(t)return{type:"number",value:1*t.value};var n=p(o,"-");if(n){if(p(a,"Infinity"))return{type:"Infinity",negative:!0};e.unshift(n)}},v=function(e){for(;;)if(h(),p(o,"?"))e.nullable&&c("Can't nullable more than once"),e.nullable=!0;else{if(!p(o,"["))return;h(),p(o,"]")||c("Unterminated array type"),e.array?(e.array++,e.nullableArray.push(e.nullable)):(e.array=1,e.nullableArray=[e.nullable]),e.nullable=!1}},y=function(){var e,t,n=g(),r={sequence:!1,generic:null,nullable:!1,array:!1,union:!1};if(n)r.idlType=n;else{if(!(e=p(a)))return;if(t=e.value,h(),p(o,"<"))return"sequence"===t&&(r.sequence=!0),r.generic=t,r.idlType=x()||c("Error parsing generic type "+t),h(),p(o,">")||c("Unterminated generic type "+t),v(r),r;r.idlType=t}return v(r),r.nullable&&!r.array&&"any"===r.idlType&&c("Type any cannot be made nullable"),r},w=function(){if(h(),p(o,"(")){var e={sequence:!1,generic:null,nullable:!1,array:!1,union:!0,idlType:[]},t=x()||c("Union type with no content");for(e.idlType.push(t);;){if(h(),!p(a,"or"))break;var n=x()||c("No type after 'or' in union type");e.idlType.push(n)}return p(o,")")||c("Unterminated union type"),v(e),e}},x=function(){return y()||w()},_=function(t){var n={optional:!1,variadic:!1};n.extAttrs=S(t),h(t,"pea");var r=p(a,"optional");if(r&&(n.optional=!0,h()),n.idlType=x(),!n.idlType)return void(r&&e.unshift(r));var i=u;n.optional||(h(),e.length>=3&&"other"===e[0].type&&"."===e[0].value&&"other"===e[1].type&&"."===e[1].value&&"other"===e[2].type&&"."===e[2].value&&(e.shift(),e.shift(),e.shift(),n.variadic=!0)),h();var s=p(a);return s?(n.name=s.value,n.optional&&(h(),n["default"]=C()),n):(r&&e.unshift(r),void e.unshift(i))},k=function(e){var t=[],n=_(e?t:null);if(n)for(t.push(n);;){if(h(e?t:null),!p(o,","))return t;var r=_(e?t:null)||c("Trailing comma in arguments list");t.push(r)}},E=function(){h();var e=x();if(e&&(h(),p(o,","))){h();var t=x();if(t)return[e,t]}},T=function(e){h();var t=p(a);if(t){var n={name:t.value,arguments:null};h();var r=p(o,"=");if(r){var i;if(h(),i=p(a))n.rhs=i;else if(p(o,"(")){i=[];var s=p(a);s&&(i=[s.value]),O(i),p(o,")")||c("Unexpected token in extended attribute argument list or type pair"),n.rhs={type:"identifier-list",value:i}}if(!n.rhs)return c("No right hand side to extended attribute assignment")}if(h(),p(o,"(")){var l,u;(l=k(e))?n.arguments=l:(u=E())?n.typePair=u:n.arguments=[],h(),p(o,")")||c("Unexpected token in extended attribute argument list or type pair")}return n}},S=function(e){var t=[];if(h(e),!p(o,"["))return t;for(t[0]=T(e)||c("Extended attribute with not content"),h();p(o,",");)t.push(T(e)||c("Trailing comma in extended attribute")),h();return p(o,"]")||c("No end of extended attribute"),t},C=function(){if(h(),p(o,"=")){h();var e=b();if(e)return e;if(p(o,"["))return p(o,"]")||c("Default sequence value must be empty"),{type:"sequence",value:[]};var t=p(s)||c("No value for default");return t.value=t.value.replace(/^"/,"").replace(/"$/,""),t}},A=function(e){if(h(e,"pea"),p(a,"const")){var t={type:"const",nullable:!1};h();var n=g();n||(n=p(a)||c("No type for const"),n=n.value),t.idlType=n,h(),p(o,"?")&&(t.nullable=!0,h());var r=p(a)||c("No name for const");t.name=r.value,h(),p(o,"=")||c("No value assignment for const"),h();var i=b();return i?t.value=i:c("No value for const"),h(),p(o,";")||c("Unterminated const"),t}},R=function(){if(h(),p(o,":")){h();var e=p(a)||c("No type in inheritance");return e.value}},N=function(e,t){h(),e||(e={});var n=p(a);return e.name=n?n.value:null,h(),p(o,"(")||c("Invalid operation"),e.arguments=k(t)||[],h(),p(o,")")||c("Unterminated operation"),h(),p(o,";")||c("Unterminated operation"),e},D=function(t){h(t,"pea");var n;if(p(a,"callback")){h();var r=p(a,"interface");if(r)return e.unshift(r),n=F(),n.type="callback interface",n;var i=p(a)||c("No name for callback");return n={type:"callback",name:i.value},h(),p(o,"=")||c("No assignment in callback"),h(),n.idlType=P(),h(),p(o,"(")||c("No arguments in callback"),n.arguments=k(t)||[],h(),p(o,")")||c("Unterminated callback"),h(),p(o,";")||c("Unterminated callback"),n}},L=function(t){h(t,"pea");var n=[],r={type:"attribute","static":!1,stringifier:!1,inherit:!1,readonly:!1};p(a,"static")?(r["static"]=!0,n.push(u)):p(a,"stringifier")&&(r.stringifier=!0,n.push(u));var i=h();if(i&&n.push(i),p(a,"inherit")){(r["static"]||r.stringifier)&&c("Cannot have a static or stringifier inherit"),r.inherit=!0,n.push(u);var i=h();i&&n.push(i)}if(p(a,"readonly")){r.readonly=!0,n.push(u);var i=h();i&&n.push(i)}if(!p(a,"attribute"))return void(e=n.concat(e));h(),r.idlType=x()||c("No type in attribute"),r.idlType.sequence&&c("Attributes cannot accept sequence types"),h();var s=p(a)||c("No name in attribute");return r.name=s.value,h(),p(o,";")||c("Unterminated attribute"),r},P=function(){var e=x();if(!e){if(p(a,"void"))return"void";c("No return type")}return e},I=function(e){h(e,"pea");for(var t={type:"operation",getter:!1,setter:!1,creator:!1,deleter:!1,legacycaller:!1,"static":!1,stringifier:!1};;)if(h(),p(a,"getter"))t.getter=!0;else if(p(a,"setter"))t.setter=!0;else if(p(a,"creator"))t.creator=!0;else if(p(a,"deleter"))t.deleter=!0;else{if(!p(a,"legacycaller"))break;t.legacycaller=!0}if(t.getter||t.setter||t.creator||t.deleter||t.legacycaller)return h(),t.idlType=P(),N(t,e),t;if(p(a,"static"))return t["static"]=!0,t.idlType=P(),N(t,e),t;if(p(a,"stringifier"))return t.stringifier=!0,-h(),p(o,";")?t:(t.idlType=P(),N(t,e),t);if(t.idlType=P(),h(),p(a,"iterator")){if(h(),t.type="iterator",p(a,"object"))t.iteratorObject="object";else if(p(o,"=")){h();var n=p(a)||c("No right hand side in iterator");t.iteratorObject=n.value}return h(),p(o,";")||c("Unterminated iterator"),t}return N(t,e),t},O=function(e){for(;;){if(h(),!p(o,","))break;h();var t=p(a)||c("Trailing comma in identifiers list");e.push(t.value)}},j=function(e){if(h(e,"pea"),p(a,"serializer")){var t={type:"serializer"};if(h(),p(o,"=")){if(h(),p(o,"{")){t.patternMap=!0,h();var n=p(a);n&&"getter"===n.value?t.names=["getter"]:n&&"inherit"===n.value?(t.names=["inherit"],O(t.names)):n?(t.names=[n.value],O(t.names)):t.names=[],h(),p(o,"}")||c("Unterminated serializer pattern map")}else if(p(o,"[")){t.patternList=!0,h();var n=p(a);n&&"getter"===n.value?t.names=["getter"]:n?(t.names=[n.value],O(t.names)):t.names=[],h(),p(o,"]")||c("Unterminated serializer pattern list")}else{var r=p(a)||c("Invalid serializer");t.name=r.value}return h(),p(o,";")||c("Unterminated serializer"),t}return p(o,";")||(t.idlType=P(),h(),t.operation=N(null,e)),t}},M=function(){return p(a,"iterable")?"iterable":p(a,"legacyiterable")?"legacyiterable":p(a,"maplike")?"maplike":p(a,"setlike")?"setlike":void 0},$=function(){return p(a,"maplike")?"maplike":p(a,"setlike")?"setlike":void 0},B=function(t){h(t,"pea");var n=[],r={type:null,idlType:null,readonly:!1};if(p(a,"readonly")){r.readonly=!0,n.push(u);var i=h();i&&n.push(i)}var s=r.readonly?$:M,l=s();if(!l)return void(e=n.concat(e));var d="maplike"===l,f=d||"iterable"===l;if(r.type=l,"maplike"!==r.type&&"setlike"!==r.type&&delete r.readonly,h(),p(o,"<")){if(r.idlType=x()||c("Error parsing "+l+" declaration"),h(),f){var m=null;p(o,",")&&(h(),m=x(),h()),m?r.idlType=[r.idlType,m]:d&&c("Missing second type argument in "+l+" declaration")}p(o,">")||c("Unterminated "+l+" declaration"),h(),p(o,";")||c("Missing semicolon after "+l+" declaration")}else c("Error parsing "+l+" declaration");return r},F=function(e,n){if(h(e?null:n,"pea"),p(a,"interface")){h();var r=p(a)||c("No name for interface"),i=[],s={type:"interface",name:r.value,partial:!1,members:i};for(e||(s.inheritance=R()||null),h(),p(o,"{")||c("Bodyless interface");;){if(h(n?i:null),p(o,"}"))return h(),p(o,";")||c("Missing semicolon after interface"),s;var l=S(n?i:null);h();var u=A(n?i:null);if(u)u.extAttrs=l,s.members.push(u);else{var d=t.allowNestedTypedefs&&W(n?i:null)||B(n?i:null)||j(n?i:null)||L(n?i:null)||I(n?i:null)||c("Unknown member");d.extAttrs=l,s.members.push(d)}}}},q=function(e){if(h(e,"pea"),p(a,"partial")){var t=H(!0,e)||F(!0,e)||c("Partial doesn't apply to anything");return t.partial=!0,t}},H=function(e,t){if(h(e?null:t,"pea"),p(a,"dictionary")){h();var n=p(a)||c("No name for dictionary"),r=[],i={type:"dictionary",name:n.value,partial:!1,members:r};for(e||(i.inheritance=R()||null),h(),p(o,"{")||c("Bodyless dictionary");;){if(h(t?r:null),p(o,"}"))return h(),p(o,";")||c("Missing semicolon after dictionary"),i;var s=S(t?r:null);h(t?r:null,"pea");var l=p(a,"required"),u=x()||c("No type for dictionary member");h();var n=p(a)||c("No name for dictionary member"),d=C();l&&d&&c("Required member must not have a default"),i.members.push({type:"field",name:n.value,required:!!l,idlType:u,extAttrs:s,"default":d}),h(),p(o,";")||c("Unterminated dictionary member")}}},U=function(e){if(h(e,"pea"),p(a,"exception")){h();var t=p(a)||c("No name for exception"),n=[],r={type:"exception",name:t.value,members:n};for(r.inheritance=R()||null,h(),p(o,"{")||c("Bodyless exception");;){if(h(e?n:null),p(o,"}"))return h(),p(o,";")||c("Missing semicolon after exception"),r;var i=S(e?n:null);h(e?n:null,"pea");var s=A();if(s)s.extAttrs=i,r.members.push(s);else{var l=x();h();var t=p(a);h(),l&&t&&p(o,";")||c("Unknown member in exception body"),r.members.push({type:"field",name:t.value,idlType:l,extAttrs:i})}}}},K=function(e){if(h(e,"pea"),p(a,"enum")){h();var t=p(a)||c("No name for enum"),n=[],r={type:"enum",name:t.value,values:n};h(),p(o,"{")||c("No curly for enum");for(var i=!1;;){if(h(e?n:null),p(o,"}"))return h(),p(o,";")||c("No semicolon after enum"),r;var l=p(s)||c("Unexpected value in enum");r.values.push(l.value.replace(/"/g,"")),h(e?n:null),p(o,",")?(e&&n.push({type:","}),h(e?n:null),i=!0):i=!1}}},W=function(e){if(h(e,"pea"),p(a,"typedef")){var t={type:"typedef"};h(),t.typeExtAttrs=S(),h(e,"tpea"),t.idlType=x()||c("No type in typedef"),h();var n=p(a)||c("No name in typedef");return t.name=n.value,h(),p(o,";")||c("Unterminated typedef"),t}},z=function(t){h(t,"pea");var n=p(a);if(n){var r=h();if(p(a,"implements")){var i={type:"implements",target:n.value};h();var s=p(a)||c("Incomplete implements statement");return i["implements"]=s.value,h(),p(o,";")||c("No terminating ; for implements statement"),i}e.unshift(r),e.unshift(n)}},V=function(e){return D(e)||F(!1,e)||q(e)||H(!1,e)||U(e)||K(e)||W(e)||z(e)},G=function(t){if(!e.length)return[];for(var n=[];;){var r=S(t?n:null),i=V(t?n:null);if(!i){r.length&&c("Stray extended attributes");break}i.extAttrs=r,n.push(i)}return n},X=G(t.ws);return e.length&&c("Unrecognised tokens"),X},n="undefined"!=typeof module&&module.exports,r={parse:function(n,r){r||(r={});var i=e(n);return t(i,r)}};n?module.exports=r:self.WebIDL2=r}(),define("deps/webidl2",function(){}),define("tmpl!core/css/webidl-oldschool.css",["deps/handlebars"],function(e){return e.compile('/* --- WEB IDL --- */\npre.idl {\n border-top: 1px solid #90b8de;\n border-bottom: 1px solid #90b8de;\n padding: 1em;\n line-height: 120%;\n}\n\n@media print {\n pre.idl {\n white-space: pre-wrap;\n }\n}\n\npre.idl::before {\n content: "WebIDL";\n display: block;\n width: 150px;\n background: #90b8de;\n color: #fff;\n font-family: sans-serif;\n padding: 3px;\n font-weight: bold;\n margin: -1em 0 1em -1em;\n}\n\n.idlType {\n color: #ff4500;\n font-weight: bold;\n text-decoration: none;\n}\n\n/*.idlModule*/\n/*.idlModuleID*/\n/*.idlInterface*/\n.idlInterfaceID, .idlDictionaryID, .idlCallbackID, .idlEnumID {\n font-weight: bold;\n color: #005a9c;\n}\na.idlEnumItem {\n color: #000;\n border-bottom: 1px dotted #ccc;\n text-decoration: none;\n}\n\n.idlSuperclass {\n font-style: italic;\n color: #005a9c;\n}\n\n/*.idlAttribute*/\n.idlAttrType, .idlFieldType, .idlMemberType {\n color: #005a9c;\n}\n.idlAttrName, .idlFieldName, .idlMemberName {\n color: #ff4500;\n}\n.idlAttrName a, .idlFieldName a, .idlMemberName a {\n color: #ff4500;\n border-bottom: 1px dotted #ff4500;\n text-decoration: none;\n}\n\n/*.idlMethod*/\n.idlMethType, .idlCallbackType {\n color: #005a9c;\n}\n.idlMethName {\n color: #ff4500;\n}\n.idlMethName a {\n color: #ff4500;\n border-bottom: 1px dotted #ff4500;\n text-decoration: none;\n}\n\n/*.idlCtor*/\n.idlCtorName {\n color: #ff4500;\n}\n.idlCtorName a {\n color: #ff4500;\n border-bottom: 1px dotted #ff4500;\n text-decoration: none;\n}\n\n/*.idlParam*/\n.idlParamType {\n color: #005a9c;\n}\n.idlParamName, .idlDefaultValue {\n font-style: italic;\n}\n\n.extAttr {\n color: #666;\n}\n\n/*.idlSectionComment*/\n.idlSectionComment {\n color: gray;\n}\n\n/*.idlIterable*/\n.idlIterableKeyType, .idlIterableValueType {\n color: #005a9c;\n}\n\n/*.idlMaplike*/\n.idlMaplikeKeyType, .idlMaplikeValueType {\n color: #005a9c;\n}\n\n/*.idlConst*/\n.idlConstType {\n color: #005a9c;\n}\n.idlConstName {\n color: #ff4500;\n}\n.idlConstName a {\n color: #ff4500;\n border-bottom: 1px dotted #ff4500;\n text-decoration: none;\n}\n\n/*.idlException*/\n.idlExceptionID {\n font-weight: bold;\n color: #c00;\n}\n\n.idlTypedefID, .idlTypedefType {\n color: #005a9c;\n}\n\n.idlRaises, .idlRaises a.idlType, .idlRaises a.idlType code, .excName a, .excName a code {\n color: #c00;\n font-weight: normal;\n}\n\n.excName a {\n font-family: monospace;\n}\n\n.idlRaises a.idlType, .excName a.idlType {\n border-bottom: 1px dotted #c00;\n}\n\n.excGetSetTrue, .excGetSetFalse, .prmNullTrue, .prmNullFalse, .prmOptTrue, .prmOptFalse {\n width: 45px;\n text-align: center;\n}\n.excGetSetTrue, .prmNullTrue, .prmOptTrue { color: #0c0; }\n.excGetSetFalse, .prmNullFalse, .prmOptFalse { color: #c00; }\n\n.idlImplements a {\n font-weight: bold;\n}\n\ndl.attributes, dl.methods, dl.constants, dl.constructors, dl.fields, dl.dictionary-members {\n margin-left: 2em;\n}\n\n.attributes dt, .methods dt, .constants dt, .constructors dt, .fields dt, .dictionary-members dt {\n font-weight: normal;\n}\n\n.attributes dt code, .methods dt code, .constants dt code, .constructors dt code, .fields dt code, .dictionary-members dt code {\n font-weight: bold;\n color: #000;\n font-family: monospace;\n}\n\n.attributes dt code, .fields dt code, .dictionary-members dt code {\n background: #ffffd2;\n}\n\n.attributes dt .idlAttrType code, .fields dt .idlFieldType code, .dictionary-members dt .idlMemberType code {\n color: #005a9c;\n background: transparent;\n font-family: inherit;\n font-weight: normal;\n font-style: italic;\n}\n\n.methods dt code {\n background: #d9e6f8;\n}\n\n.constants dt code {\n background: #ddffd2;\n}\n\n.constructors dt code {\n background: #cfc;\n}\n\n.attributes dd, .methods dd, .constants dd, .constructors dd, .fields dd, .dictionary-members dd {\n margin-bottom: 1em;\n}\n\ntable.parameters, table.exceptions {\n border-spacing: 0;\n border-collapse: collapse;\n margin: 0.5em 0;\n width: 100%;\n}\ntable.parameters { border-bottom: 1px solid #90b8de; }\ntable.exceptions { border-bottom: 1px solid #deb890; }\n\n.parameters th, .exceptions th {\n color: inherit;\n padding: 3px 5px;\n text-align: left;\n font-weight: normal;\n}\n.parameters th { color: #fff; background: #005a9c; }\n.exceptions th { background: #deb890; }\n\n.parameters td, .exceptions td {\n padding: 3px 10px;\n border-top: 1px solid #ddd;\n vertical-align: top;\n}\n\n.parameters tr:first-child td, .exceptions tr:first-child td {\n border-top: none;\n}\n\n.parameters td.prmName, .exceptions td.excName, .exceptions td.excCodeName {\n width: 100px;\n}\n\n.parameters td.prmType {\n width: 120px;\n}\n\ntable.exceptions table {\n border-spacing: 0;\n border-collapse: collapse;\n width: 100%;\n}\n')}),define("tmpl!core/templates/webidl-contiguous/typedef.html",["deps/handlebars"],function(e){return e.compile("<span class='idlTypedef' id='{{obj.idlId}}' data-idl data-title='{{obj.name}}'>typedef {{typeExtAttrs obj\n}}<span class='idlTypedefType'>{{idlType obj\n}}</span> <span class='idlTypedefID'>{{#tryLink obj}}{{obj.name}}{{/tryLink}}</span>;</span>")}),define("tmpl!core/templates/webidl-contiguous/implements.html",["deps/handlebars"],function(e){return e.compile("<span class='idlImplements'>{{extAttr obj indent\n}}{{idn indent}}<a>{{obj.target}}</a> implements <a>{{obj.implements}}</a>;</span>")}),define("tmpl!core/templates/webidl-contiguous/dict-member.html",["deps/handlebars"],function(e){return e.compile("<span class='idlMember' id=\"{{obj.idlId}}\" data-idl data-title='{{obj.name}}'>{{extAttr obj indent\n}}{{idn indent}}{{qualifiers}}<span class='idlMemberType'>{{idlType obj}}</span> {{pads typePad\n}}<span class='idlMemberName'>{{#tryLink obj}}{{obj.name}}{{/tryLink}}</span>{{#if obj.default\n}} = <span class='idlMemberValue'>{{stringifyIdlConst obj.default}}</span>{{/if}};</span>\n")}),define("tmpl!core/templates/webidl-contiguous/dictionary.html",["deps/handlebars"],function(e){return e.compile("<span class='idlDictionary' id='{{obj.idlId}}' data-idl data-title='{{obj.name}}'>{{extAttr obj indent\n}}{{idn indent}}{{partial}}dictionary <span class='idlDictionaryID'>{{#tryLink obj}}{{obj.name}}{{/tryLink\n}}</span>{{#if obj.inheritance}} : <span class='idlSuperclass'><a>{{obj.inheritance}}</a></span>{{/if}} {\n{{{children}}}};</span>")}),define("tmpl!core/templates/webidl-contiguous/enum-item.html",["deps/handlebars"],function(e){return e.compile('{{idn indent}}"<a href="#dom-{{parentID}}-{{lname}}" class="idlEnumItem">{{name}}</a>"{{#if needsComma}},{{/if}}\n')}),define("tmpl!core/templates/webidl-contiguous/enum.html",["deps/handlebars"],function(e){return e.compile("<span class='idlEnum' id='{{obj.idlId}}' data-idl data-title='{{obj.name}}'>{{extAttr obj indent\n}}{{idn indent}}enum <span class='idlEnumID'>{{#tryLink obj}}{{obj.name}}{{/tryLink}}</span> {\n{{{children}}}{{idn indent}}};</span>")}),define("tmpl!core/templates/webidl-contiguous/const.html",["deps/handlebars"],function(e){return e.compile("<span class='idlConst' id=\"{{obj.idlId}}\" data-idl data-title='{{obj.name}}'>{{extAttr obj indent\n}}{{idn indent}}const <span class='idlConstType'>{{idlType obj}}</span>{{nullable}} {{pads pad\n}}<span class='idlConstName'>{{#tryLink obj}}{{obj.name\n}}{{/tryLink}}</span> = <span class='idlConstValue'>{{stringifyIdlConst obj.value}}</span>;</span>\n")}),define("tmpl!core/templates/webidl-contiguous/param.html",["deps/handlebars"],function(e){return e.compile("{{!-- obj is an instance of https://github.com/darobin/webidl2.js#arguments\n--}}<span class='idlParam'>{{extAttrInline obj\n}}{{optional}}<span class='idlParamType'>{{idlType obj}}{{variadic\n}}</span> <span class='idlParamName'>{{obj.name}}</span>{{#if obj.default\n}} = <span class='idlDefaultValue'>{{stringifyIdlConst obj.default}}</span>{{/if}}</span>")}),define("tmpl!core/templates/webidl-contiguous/callback.html",["deps/handlebars"],function(e){return e.compile("<span class='idlCallback' id='{{obj.idlId}}' data-idl data-title='{{obj.name}}'>{{extAttr obj indent\n}}{{idn indent}}callback <span class='idlCallbackID'>{{#tryLink obj}}{{obj.name\n}}{{/tryLink}}</span> = <span class='idlCallbackType'>{{idlType obj}}</span> ({{{children}}});</span>")}),define("tmpl!core/templates/webidl-contiguous/method.html",["deps/handlebars"],function(e){return e.compile("<span class='idlMethod' id=\"{{obj.idlId}}\" data-idl data-title='{{obj.name}}'>{{extAttr obj indent\n}}{{idn indent}}{{static}}{{special}}<span class='idlMethType'>{{idlType obj}}</span> {{pads pad\n}}<span class='idlMethName'>{{#tryLink obj}}{{obj.name}}{{/tryLink}}</span>({{{children}}});</span>\n")}),define("tmpl!core/templates/webidl-contiguous/attribute.html",["deps/handlebars"],function(e){return e.compile("<span class='idlAttribute' id=\"{{obj.idlId}}\" data-idl data-title='{{obj.name}}'>{{extAttr obj indent\n}}{{idn indent}}{{qualifiers}}attribute <span class='idlAttrType'>{{idlType obj}}</span> {{pads\npad}}<span class='idlAttrName'>{{#tryLink obj}}{{escapeAttributeName obj.name}}{{/tryLink}}</span>;</span>\n")}),define("tmpl!core/templates/webidl-contiguous/serializer.html",["deps/handlebars"],function(e){return e.compile("<span class='idlSerializer' id=\"{{obj.idlId}}\" data-idl data-title='serializer'>{{extAttr obj indent\n}}{{idn indent}}{{#tryLink obj}}serializer{{/tryLink\n}}{{#if values}} = <span class='idlSerializerValues'>{{values}}</span>{{/if}};</span>\n")}),define("tmpl!core/templates/webidl-contiguous/maplike.html",["deps/handlebars"],function(e){return e.compile("<span class='idlMaplike' id=\"{{obj.idlId}}\" data-idl data-title='maplike'>{{extAttr obj indent\n}}{{idn indent}}{{qualifiers}}{{#tryLink obj}}maplike{{/tryLink\n}}<{{idlType obj}}>;</span>\n")}),define("tmpl!core/templates/webidl-contiguous/iterable.html",["deps/handlebars"],function(e){return e.compile("<span class='idlIterable' id=\"{{obj.idlId}}\" data-idl data-title='iterable'>{{extAttr obj indent\n}}{{idn indent}}{{qualifiers}}{{#tryLink obj}}iterable{{/tryLink\n}}<{{idlType obj}}>;</span>\n")}),define("tmpl!core/templates/webidl-contiguous/line-comment.html",["deps/handlebars"],function(e){return e.compile("<span class='idlSectionComment'>{{idn indent}}//{{comment}}</span>\n")}),define("tmpl!core/templates/webidl-contiguous/multiline-comment.html",["deps/handlebars"],function(e){return e.compile("<span class='idlSectionComment'>{{idn indent}}/*{{firstLine}}\n{{#each innerLine}}{{idn ../indent}}{{this}}\n{{/each}}{{idn indent}}{{lastLine}}*/</span>\n")}),define("tmpl!core/templates/webidl-contiguous/field.html",["deps/handlebars"],function(e){return e.compile("<span class='idlField' id=\"{{obj.idlId}}\" data-idl data-title='{{obj.name}}'>{{extAttr obj indent\n}}{{idn indent}}<span class='idlFieldType'>{{idlType obj}}</span> {{pads\npad}}<span class='idlFieldName'>{{#tryLink obj}}{{obj.name}}{{/tryLink}}</span>;</span>\n")}),define("tmpl!core/templates/webidl-contiguous/exception.html",["deps/handlebars"],function(e){return e.compile("<span class='idlException' id='{{obj.idlId}}' data-idl data-title='{{obj.name}}'>{{extAttr obj indent\n}}{{idn indent}}exception <span class='idlExceptionID'>{{#tryLink obj}}{{obj.name}}{{/tryLink\n}}</span>{{#if obj.inheritance}} : <span class='idlSuperclass'><a>{{obj.inheritance}}</a></span>{{/if}} {\n{{{children}}}{{idn indent}}};</span>")}),define("tmpl!core/templates/webidl-contiguous/extended-attribute.html",["deps/handlebars"],function(e){return e.compile('{{!-- extAttrs should match the structure at https://github.com/darobin/webidl2.js#extended-attributes.\n--}}{{idn indent}}[{{#join extAttrs sep\n }}<span class=\'{{extAttrClassName}}\'><span class="extAttrName">{{name\n }}</span>{{#if rhs}}=<span class="extAttrRhs">{{#extAttrRhs rhs}}{{ this }}{{/extAttrRhs}}</span>{{/if\n }}{{#jsIf arguments}}({{#joinNonWhitespace arguments ", "}}{{param this}}{{/joinNonWhitespace}}){{/jsIf\n}}</span>{{/join}}]{{end}}')}),define("tmpl!core/templates/webidl-contiguous/interface.html",["deps/handlebars"],function(e){return e.compile("<span class='idlInterface' id='{{obj.idlId}}' data-idl data-title='{{obj.name}}'>{{extAttr obj indent\n}}{{idn indent}}{{partial}}{{callback}}interface <span class='idlInterfaceID'>{{#tryLink obj}}{{obj.name}}{{/tryLink\n}}</span>{{#if obj.inheritance}} : <span class='idlSuperclass'><a>{{obj.inheritance}}</a></span>{{/if}} {\n{{{children}}}{{idn indent}}};</span>")}),define("core/webidl-contiguous",["core/pubsubhub","deps/handlebars","deps/webidl2","tmpl!core/css/webidl-oldschool.css","tmpl!core/templates/webidl-contiguous/typedef.html","tmpl!core/templates/webidl-contiguous/implements.html","tmpl!core/templates/webidl-contiguous/dict-member.html","tmpl!core/templates/webidl-contiguous/dictionary.html","tmpl!core/templates/webidl-contiguous/enum-item.html","tmpl!core/templates/webidl-contiguous/enum.html","tmpl!core/templates/webidl-contiguous/const.html","tmpl!core/templates/webidl-contiguous/param.html","tmpl!core/templates/webidl-contiguous/callback.html","tmpl!core/templates/webidl-contiguous/method.html","tmpl!core/templates/webidl-contiguous/attribute.html","tmpl!core/templates/webidl-contiguous/serializer.html","tmpl!core/templates/webidl-contiguous/maplike.html","tmpl!core/templates/webidl-contiguous/iterable.html","tmpl!core/templates/webidl-contiguous/line-comment.html","tmpl!core/templates/webidl-contiguous/multiline-comment.html","tmpl!core/templates/webidl-contiguous/field.html","tmpl!core/templates/webidl-contiguous/exception.html","tmpl!core/templates/webidl-contiguous/extended-attribute.html","tmpl!core/templates/webidl-contiguous/interface.html"],function(e,t,n,r,i,a,s,o,l,c,u,p,d,h,f,m,g,b,v,y,w,x,_,k){function E(){t.registerHelper("extAttr",function(e,t){return N(e.extAttrs,t,!1)}),t.registerHelper("extAttrInline",function(e){return N(e.extAttrs,0,!0)}),t.registerHelper("typeExtAttrs",function(e){return N(e.typeExtAttrs,0,!0)}),t.registerHelper("extAttrClassName",function(){var e=this;return"Constructor"===e.name||"NamedConstructor"===e.name?"idlCtor":"extAttr"}),t.registerHelper("extAttrRhs",function(e,t){return"identifier"===e.type?t.fn(e.value):"("+e.value.map(function(e){return t.fn(e)}).join(",")+")"}),t.registerHelper("param",function(e){return new t.SafeString(p({obj:e,optional:e.optional?"optional ":"",variadic:e.variadic?"...":""}))}),t.registerHelper("jsIf",function(e,t){return e?t.fn(this):t.inverse(this)}),t.registerHelper("idn",function(e){return new t.SafeString(T(e))}),t.registerHelper("idlType",function(e){return new t.SafeString(S(e.idlType))}),t.registerHelper("stringifyIdlConst",function(t){switch(t.type){case"null":return"null";case"Infinity":return t.negative?"-Infinity":"Infinity";case"NaN":return"NaN";case"string":case"number":case"boolean":case"sequence":return JSON.stringify(t.value);default:return e.pub("error","Unexpected constant value type: "+t.type),"<Unknown>"}}),t.registerHelper("escapeArgumentName",D),t.registerHelper("escapeAttributeName",L),t.registerHelper("escapeIdentifier",P),t.registerHelper("pads",function(e){return new t.SafeString(A(e))}),t.registerHelper("join",function(e,t,n){return e.map(function(e){return n.fn(e)}).join(t)}),t.registerHelper("joinNonWhitespace",function(e,t,n){return e.filter(function(e){return"ws"!==e.type}).map(function(e){return n.fn(e)}).join(t)}),t.registerHelper("tryLink",function(e,n){var r=n.fn(this);if(e.dfn){var i="<a for='"+t.Utils.escapeExpression(e.linkFor||"")+"'";return e.name&&(i+=" data-lt='"+t.Utils.escapeExpression(e.name)+(e.overload?"!overload-"+e.overload+"' data-lt-noDefault":"'")),i+=">"+r+"</a>"}return r})}function T(e){for(var t="",n=0;e>n;n++)t+=" ";return t}function S(e){if("string"==typeof e)return"<a>"+t.Utils.escapeExpression(e)+"</a>";if(Array.isArray(e))return e.map(S).join(", ");var n=e.nullable?"?":"";if(e.union)return"("+e.idlType.map(function(e){return S(e)}).join(" or ")+")"+n;if(e.array){for(var r="",i=0;i<e.array;++i)e.nullableArray[i]&&(r+="?"),r+="[]";return S({generic:e.generic,idlType:e.idlType})+r+n}return e.generic?t.Utils.escapeExpression(e.generic)+"<"+S(e.idlType)+">"+n:S(e.idlType)+n}function C(e){if("string"==typeof e)return e;var t=e.nullable?"?":"";if(e.union)return"("+e.idlType.map(function(e){return C(e)}).join(" or ")+")"+t;if(e.array){for(var n="",r=0;r<e.array;++r)e.nullableArray[r]&&(n+="?"),n+="[]";return C({generic:e.generic,idlType:e.idlType})+n+t}return e.generic?e.generic+"<"+C(e.idlType)+">"+t:C(e.idlType)+t}function A(e){for(var t="",n=0;e>n;n++)t+=" ";return t}function R(e){return Z[e]}function N(e,n,r){if(0===e.length)return"";var i={extAttrs:e,indent:n,sep:r?", ":",\n "+T(n),end:r?" ":"\n"};return new t.SafeString(_(i))}function D(e){return-1!==J.indexOf(e)&&-1===ee.indexOf(e)?"_"+e:e}function L(e){return-1!==J.indexOf(e)&&-1===te.indexOf(e)?"_"+e:e}function P(e){return-1!==J.indexOf(e)?"_"+e:e}function I(e,t){var n={"class":"def idl"},r=$("<pre></pre>").attr(n);return r.html(t.filter(function(e){return!R(e.type)}).map(function(e){return O(e,-1)}).join("\n\n")),r}function O(t,n){n++;var r={indent:n,obj:t};switch(t.type){case"typedef":return i(r);case"implements":return a(r);case"interface":return j(r);case"callback interface":return j(r,"callback ");case"exception":var s=0,u=0;t.members.forEach(function(e){if(!R(e.type)){var t=C(e.idlType).length;"field"===e.type?s=t>s?t:s:"const"===e.type&&(u=t>u?t:u)}});var h=t.members.map(function(e){switch(e.type){case"field":return M(e,s,n+1);case"const":return H(e,u,n+1);case"line-comment":return K(e,n+1);case"multiline-comment":return W(e,n+1);case"ws":return U(e);case"ws-pea":break;default:throw new Error("Unexpected type in exception: "+e.type)}}).join("");return x({obj:t,indent:n,children:h});case"dictionary":var f=0,m=0;t.members.filter(function(e){return!R(e.type)});t.members.forEach(function(e){if(!R(e.type)){var t="";e.required&&(t+="required "),f<t.length&&(f=t.length);var n=C(e.idlType).length;n>m&&(m=n)}});var h=t.members.map(function(e){switch(e.type){case"field":return X(e,f,m,n+1);case"line-comment":return K(e,n+1);case"multiline-comment":return W(e,n+1);case"ws":return U(e);case"ws-pea":break;default:throw new Error("Unexpected type in dictionary: "+e.type)}}).join("");return o({obj:t,indent:n,children:h,partial:t.partial?"partial ":""});case"callback":var g=t.arguments.filter(function(e){return!R(e.type)}).map(function(e){return p({obj:e,optional:e.optional?"optional ":"",variadic:e.variadic?"...":""})}),b={obj:t,indent:n,children:g.join(", ")},v=d(b),y=$(v).text();if(y.length>80){var w=y.indexOf("(")+1;b.children=g.join(",\n"+A(w)),v=d(b)}return v;case"enum":for(var h="",_=0;_<t.values.length;_++){var k=t.values[_];switch(k.type){case void 0:for(var E=!1,T=_+1;T<t.values.length;T++){var S=t.values[T];if(void 0===S.type)break;if(","===S.type){E=!0;break}}h+=l({lname:k.toString().toLowerCase(),name:k.toString(),parentID:t.name.toLowerCase(),indent:n+1,needsComma:E});break;case"line-comment":h+=K(k,n+1);break;case"multiline-comment":h+=W(k,n+1);break;case"ws":h+=U(k);break;case",":case"ws-pea":break;default:throw new Error("Unexpected type in exception: "+k.type)}}return c({obj:t,indent:n,children:h});default:return e.pub("error","Unexpected object type "+t.type+" in "+JSON.stringify(t)),""}}function j(e,t){var n=e.obj,r=e.indent,i=0,a=0,s=0,o=0;n.members.forEach(function(e){if(!R(e.type)&&"serializer"!==e.type&&"maplike"!==e.type&&"iterable"!==e.type){var t=C(e.idlType).length;if("attribute"===e.type){var n=B(e).length;i=t>i?t:i,a=n>a?n:a}else"operation"===e.type?s=t>s?t:s:"const"===e.type&&(o=t>o?t:o)}});var l=n.members.map(function(e){switch(e.type){case"attribute":return F(e,i,r+1,a);case"operation":return q(e,s,r+1);case"const":return H(e,o,r+1);case"serializer":return z(e,r+1);case"maplike":return V(e,r+1);case"iterable":return G(e,r+1);case"ws":return U(e);case"line-comment":return K(e,r+1);case"multiline-comment":return W(e,r+1);default:throw new Error("Unexpected member type: "+e.type)}}).join("");return k({obj:n,indent:r,partial:n.partial?"partial ":"",callback:t,children:l})}function M(e,t,n){var r=t-C(e.idlType).length;return w({obj:e,indent:n,pad:r})}function B(e){var t="";return e["static"]&&(t+="static "),e.stringifier&&(t+="stringifier "),e.inherit&&(t+="inherit "),e.readonly&&(t+="readonly "),t}function F(e,t,n,r){var i=C(e.idlType).length,a=t-i,s=B(e);return s+=A(r),s=s.slice(0,r),f({obj:e,indent:n,qualifiers:s,pad:a})}function q(e,t,n){
var r=e.arguments.filter(function(e){return!R(e.type)}).map(function(e){return p({obj:e,optional:e.optional?"optional ":"",variadic:e.variadic?"...":""})}),i=r.join(", "),a=C(e.idlType).length;e["static"]&&(a+=7);var s=["getter","setter","deleter","legacycaller","serializer","stringifier"],o="";for(var l in s)if(e[s[l]]){o=s[l]+" ",a+=o.length;break}var c=t-a,u={obj:e,indent:n,"static":e["static"]?"static ":"",special:o,pad:c,children:i},d=h(u),f=$(d).text();if(f.length>80){var m=f.indexOf("(")+1;u.children=r.join(",\n"+A(m)),d=h(u)}return d}function H(e,t,n){var r=t-C(e.idlType).length;return e.nullable&&r--,u({obj:e,indent:n,pad:r,nullable:e.nullable?"?":""})}function U(e){return/\n.*\n/.test(e.value)?"\n":""}function K(e,t){return v({indent:t,comment:e.value})}function W(e,t){function n(e){return e.slice(i)}var r=e.value.split(/\r\n|\r|\n/);if(0===r.length)return"";if(1===r.length)return v({indent:t,comment:r[0]});var i=Math.max(0,/^ */.exec(r[1])[0].length-3);return y({indent:t,firstLine:r[0],lastLine:n(r[r.length-1]),innerLine:r.slice(1,-1).map(n)})}function z(e,t){var n="";return e.patternMap?n="{"+e.names.join(", ")+"}":e.patternList?n="["+e.patternList.join(", ")+"]":e.name&&(n=e.name),m({obj:e,indent:t,values:n})}function V(e,t){var n="";return e.readonly&&(n+="readonly "),g({obj:e,qualifiers:n,indent:t})}function G(e,t){var n="";return e.readonly&&(n+="readonly "),b({obj:e,qualifiers:n,indent:t})}function X(e,t,n,r){var i={obj:e,indent:r};return i.typePad=n-C(e.idlType).length,e.required?i.qualifiers="required ":i.qualifiers=" ",i.qualifiers=i.qualifiers.slice(0,t),s(i)}function Y(t,n,r){t.forEach(function(t){var i;switch(t.type){case"callback interface":case"dictionary":case"exception":case"interface":var a="";t.partial&&(re[t.name]||(re[t.name]=[]),re[t.name].push(t),a="-partial-"+re[t.name].length),Y(t.members,n,t.name),i=t.name,t.idlId="idl-def-"+i.toLowerCase()+a;break;case"enum":i=t.name,t.values.forEach(function(e,r){void 0===e.type&&(t.values[r]={toString:function(){return e},dfn:Q(i,e,n)})}),t.idlId="idl-def-"+i.toLowerCase();break;case"callback":case"typedef":i=t.name,t.idlId="idl-def-"+i.toLowerCase();break;case"attribute":case"const":case"field":i=t.name,t.idlId="idl-def-"+r.toLowerCase()+"-"+i.toLowerCase();break;case"operation":if(t.name){i=t.name;var s=[r+"."+i];ne[s]?(t.overload=ne[s].length,i=t.name+"!overload-"+t.overload):ne[s]=[],ne[s].push(t)}else(t.getter||t.setter||t.deleter||t.legacycaller||t.stringifier||t.serializer)&&(i="");t.idlId="idl-def-"+r.toLowerCase()+"-"+i.toLowerCase()+"("+t.arguments.filter(function(e){return!R(e.type)}).map(function(e){var t=e.optional?"optional-":"",n=e.variadic?"...":"";return t+C(e.idlType).toLowerCase()+n}).join(",").replace(/\s/g,"_")+")";break;case"maplike":i="maplike",t.idlId=("idl-def-"+r+"-"+i).toLowerCase();break;case"iterable":i="iterable",t.idlId="idl-def-"+r.toLowerCase()+"-"+i.toLowerCase();break;case"serializer":i="serializer",t.idlId="idl-def-"+r.toLowerCase()+"-"+i.toLowerCase();break;case"implements":case"ws":case"ws-pea":case"ws-tpea":case"line-comment":case"multiline-comment":return;default:return void e.pub("error","Unexpected type when computing refTitles: "+t.type)}r&&(t.linkFor=r),t.dfn=Q(r,i,n)})}function Q(t,n,r){t=t.toLowerCase(),n=n.toLowerCase();var i=r[n],a=[];if(i&&(a=i.filter(function(e){return e.attr("data-dfn-for")===t}),0===a.length&&""===t&&1===i.length&&(a=i)),0===a.length&&""!==t){var s=t+"."+n;i=r[s],void 0!==i&&1===i.length&&(a=i,delete r[s],a[0].attr("data-dfn-for",t),a[0].attr("data-lt",n),void 0===r[n]&&(r[n]=[]),r[n].push(a[0]))}if(a.length>1&&e.pub("error","Multiple <dfn>s for "+n+(t?" in "+t:"")),0!==a.length){var o=a[0];return o.attr("id","dom-"+(t?t+"-":"")+n),o.attr("data-idl",""),o.attr("data-dfn-for",t),0===o.children("code").length&&0===o.parents("code").length&&o.wrapInner("<code></code>"),o}}var Z={ws:!0,"ws-pea":!0,"ws-tpea":!0,"line-comment":!0,"multiline-comment":!0},J=["any","attribute","boolean","byte","ByteString","callback","const","creator","Date","deleter","dictionary","DOMString","double","enum","false","float","getter","implements","Infinity","inherit","interface","iterable","legacycaller","legacyiterable","long","maplike","NaN","null","object","octet","optional","or","partial","readonly","RegExp","required","sequence","serializer","setlike","setter","short","static","stringifier","true","typedef","unrestricted","unsigned","USVString","void"],ee=["attribute","callback","const","creator","deleter","dictionary","enum","getter","implements","inherit","interface","iterable","legacycaller","legacyiterable","maplike","partial","required","serializer","setlike","setter","static","stringifier","typedef","unrestricted"],te=["required"],ne={},re={};return{run:function(t,n,i){var a=function(){e.pub("end","core/webidl-contiguous"),i()},s=$("pre.idl",n);return s.length?(E(),$(".idl",n).not("pre").length||$(n).find("head link").first().before($("<style/>").text(r)),s.each(function(){var n;try{n=window.WebIDL2.parse($(this).text(),{ws:!0})}catch(r){return void e.pub("error","Failed to parse <pre>"+s.text()+"</pre> as IDL: "+(r.stack||r))}Y(n,t.definitionMap,"");var i=I(t,n);i.attr({id:this.id}),i.find(".idlAttribute,.idlCallback,.idlConst,.idlDictionary,.idlEnum,.idlException,.idlField,.idlInterface,.idlMember,.idlMethod,.idlSerializer,.idlMaplike,.idlIterable,.idlTypedef").each(function(){var e=$(this),n=e.attr("data-title").toLowerCase(),r=e.parent().closest(".idlDictionary,.idlEnum,.idlException,.idlInterface");r.length&&e.attr("data-dfn-for",r.attr("data-title").toLowerCase()),t.definitionMap[n]||(t.definitionMap[n]=[]),t.definitionMap[n].push(e)}),$(this).replaceWith(i)}),n.normalize(),void a()):a()}}}),define("tmpl!core/templates/webidl/module.html",["deps/handlebars"],function(e){return e.compile("<span class='idlModule'>{{extAttr obj indent true }}{{idn indent}}module <span class='idlModuleID'>{{obj.id}}</span> {\n{{#each obj.children}}{{asWebIDL proc this indent}}{{/each}}\n{{idn indent}}};</span>\n")}),define("tmpl!core/templates/webidl/typedef.html",["deps/handlebars"],function(e){return e.compile("<span class='idlTypedef' id='idl-def-{{obj.refId}}'>typedef {{extAttr obj 0 false\n}}<span class='idlTypedefType'>{{datatype obj.datatype\n}}</span>{{arr}}{{nullable}} <span class='idlTypedefID'>{{obj.id}}</span>;</span>\n")}),define("tmpl!core/templates/webidl/implements.html",["deps/handlebars"],function(e){return e.compile("<span class='idlImplements'>{{extAttr obj indent true}}{{idn indent}}<a>{{obj.id}}</a> implements <a>{{obj.datatype}}</a>;</span>\n")}),define("tmpl!core/templates/webidl/dict-member.html",["deps/handlebars"],function(e){return e.compile("<span class='idlMember'>{{extAttr obj indent true\n}}{{idn indent}}{{declaration}} <span class='idlMemberType'>{{datatype obj.datatype}}{{arr}}{{nullable}}</span> {{pads pad\n}}<span class='idlMemberName'><a href='#{{curLnk}}{{obj.refId}}'>{{obj.id}}</a></span>{{#if obj.defaultValue\n}} = <span class='idlMemberValue'>{{obj.defaultValue}}</span>{{/if}};</span>\n")}),define("tmpl!core/templates/webidl/dictionary.html",["deps/handlebars"],function(e){return e.compile("<span class='idlDictionary' id='idl-def-{{obj.refId}}'>{{extAttr obj indent true\n}}{{idn indent}}{{partial}}dictionary <span class='idlDictionaryID'>{{obj.id}}</span>{{superclasses obj}} {\n{{{children}}}};</span>\n")}),define("tmpl!core/templates/webidl/enum-item.html",["deps/handlebars"],function(e){return e.compile('{{idn indent}}"<a href="#idl-def-{{parentID}}.{{obj.refId}}" class="idlEnumItem">{{obj.id}}</a>"')}),define("tmpl!core/templates/webidl/enum.html",["deps/handlebars"],function(e){return e.compile("<span class='idlEnum' id='idl-def-{{obj.refId}}'>{{extAttr obj indent true\n}}{{idn indent}}enum <span class='idlEnumID'>{{obj.id}}</span> {\n{{{children}}}{{idn indent}}\n};")}),define("tmpl!core/templates/webidl/const.html",["deps/handlebars"],function(e){return e.compile("<span class='idlConst'>{{extAttr obj indent true\n}}{{idn indent}}const <span class='idlConstType'><a>{{obj.datatype}}</a>{{nullable}}</span> {{pads pad\n}}<span class='idlConstName'><a href='#{{curLnk}}{{obj.refId}}'>{{obj.id\n}}</a></span> = <span class='idlConstValue'>{{obj.value}}</span>;</span>\n")}),define("tmpl!core/templates/webidl/param.html",["deps/handlebars"],function(e){return e.compile("<span class='idlParam'>{{extAttr obj 0 false\n}}{{optional}}<span class='idlParamType'>{{datatype obj.datatype}}{{arr}}{{nullable}}{{variadic\n}}</span> <span class='idlParamName'>{{obj.id}}</span>{{#if obj.defaultValue\n}} = <span class='idlDefaultValue'>{{obj.defaultValue}}</span>{{/if}}</span>")}),define("tmpl!core/templates/webidl/callback.html",["deps/handlebars"],function(e){return e.compile("<span class='idlCallback' id='idl-def-{{obj.refId}}'>{{extAttr obj indent true\n}}{{idn indent}}callback <span class='idlCallbackID'>{{obj.id\n}}</span> = <span class='idlCallbackType'>{{datatype obj.datatype}}{{arr}}{{nullable}}</span> ({{{children}}});</span>\n")}),define("tmpl!core/templates/webidl/method.html",["deps/handlebars"],function(e){return e.compile("<span class='idlMethod'>{{extAttr obj indent true\n}}{{idn indent}}{{static}}<span class='idlMethType'>{{datatype obj.datatype}}{{arr}}{{nullable}}</span> {{pads pad\n}}<span class='idlMethName'><a href='#{{id}}'>{{obj.id}}</a></span> ({{{children}}});</span>\n")}),define("tmpl!core/templates/webidl/constructor.html",["deps/handlebars"],function(e){return e.compile("<span class='idlCtor'>{{extAttr obj indent true\n}}{{idn indent}} <span class='idlCtorKeyword'>{{keyword}}</span><span class='idlCtorName'><a href='#{{id}}'>{{name}}</a></span>{{param obj children}}</span>")}),define("tmpl!core/templates/webidl/attribute.html",["deps/handlebars"],function(e){return e.compile("<span class='idlAttribute'>{{extAttr obj indent true\n}}{{idn indent}}{{declaration}} attribute <span class='idlAttrType'>{{datatype obj.datatype}}{{arr}}{{nullable}}</span> {{pads\npad}}<span class='idlAttrName'><a href='#{{href}}'>{{obj.id}}</a></span>;</span>\n")}),define("tmpl!core/templates/webidl/serializer.html",["deps/handlebars"],function(e){return e.compile("<span class='idlSerializer'>{{extAttr obj indent true\n}}{{idn indent}}serializer{{#if values}} = <span class='idlSerializerValues'>{{values}}</span>{{/if}};</span>\n")}),define("tmpl!core/templates/webidl/iterable.html",["deps/handlebars"],function(e){return e.compile("<span class='idlIterable'>{{extAttr obj indent true\n}}{{idn indent}}iterable<<span class='idlIterableKeyType'>{{datatype obj.key}}</span>{{#if obj.value}},<span class='idlIterableValueType'>{{datatype obj.value}}</span>{{/if}}>;</span>\n")}),define("tmpl!core/templates/webidl/maplike.html",["deps/handlebars"],function(e){return e.compile("<span class='idlMaplike'>{{extAttr obj indent true\n}}{{idn indent}}{{readonly}}maplike<<span class='idlMaplikeKeyType'>{{datatype obj.key}}</span>, <span class='idlMaplikeValueType'>{{datatype obj.value}}</span>>;</span>\n")}),define("tmpl!core/templates/webidl/comment.html",["deps/handlebars"],function(e){return e.compile("<span class='idlSectionComment'>{{extAttr obj indent true\n}}{{idn indent}}// {{comment}}</span>\n")}),define("tmpl!core/templates/webidl/field.html",["deps/handlebars"],function(e){return e.compile("<span class='idlField'>{{extAttr obj indent true\n}}{{idn indent}}<span class='idlFieldType'>{{datatype obj.datatype}}{{arr}}{{nullable}}</span> {{pads\npad}}<span class='idlFieldName'><a href='#{{href}}'>{{obj.id}}</a></span>;</span>\n")}),define("tmpl!core/templates/webidl/exception.html",["deps/handlebars"],function(e){return e.compile("<span class='idlException' id='idl-def-{{obj.refId}}'>{{extAttr obj indent true\n}}{{idn indent}}exception <span class='idlExceptionID'>{{obj.id}}</span>{{superclasses obj}} {\n{{{children}}}{{idn indent}}};</span>\n")}),define("tmpl!core/templates/webidl/interface.html",["deps/handlebars"],function(e){return e.compile("<span class='idlInterface' id='{{id}}'>{{extAttr obj indent true ctor\n}}{{idn indent}}{{partial}}{{callback}}interface <span class='idlInterfaceID'>{{obj.id}}</span>{{superclasses obj}} {\n{{{children}}}{{idn indent}}};</span>")});var sn;define("core/webidl-oldschool",["core/pubsubhub","deps/handlebars","tmpl!core/css/webidl-oldschool.css","tmpl!core/templates/webidl/module.html","tmpl!core/templates/webidl/typedef.html","tmpl!core/templates/webidl/implements.html","tmpl!core/templates/webidl/dict-member.html","tmpl!core/templates/webidl/dictionary.html","tmpl!core/templates/webidl/enum-item.html","tmpl!core/templates/webidl/enum.html","tmpl!core/templates/webidl/const.html","tmpl!core/templates/webidl/param.html","tmpl!core/templates/webidl/callback.html","tmpl!core/templates/webidl/method.html","tmpl!core/templates/webidl/constructor.html","tmpl!core/templates/webidl/attribute.html","tmpl!core/templates/webidl/serializer.html","tmpl!core/templates/webidl/iterable.html","tmpl!core/templates/webidl/maplike.html","tmpl!core/templates/webidl/comment.html","tmpl!core/templates/webidl/field.html","tmpl!core/templates/webidl/exception.html","tmpl!core/templates/webidl/interface.html"],function(e,t,n,r,i,a,s,o,l,c,u,p,d,h,f,m,g,b,v,y,w,x,_){var k=function(e){this.parent={type:"module",id:"outermost",children:[]},e||(e={});for(var n in e)e.hasOwnProperty(n)&&(this[n]=e[n]);t.registerHelper("extAttr",function(e,n,r,i){var a="";return e.extendedAttributes?a+=E(n)+"[<span class='extAttr'>"+e.extendedAttributes+"</span>"+("string"==typeof i&&i.length?",\n"+i:"")+"]"+(r?"\n":" "):"string"==typeof i&&i.length&&(a+=E(n)+"["+i+"]"+(r?"\n":" ")),new t.SafeString(a)}),t.registerHelper("param",function(e,n){var r="";return n&&(r+=" ("+n+")"),new t.SafeString(r)}),t.registerHelper("idn",function(e){return new t.SafeString(E(e))}),t.registerHelper("asWebIDL",function(e,n,r){return new t.SafeString(e.writeAsWebIDL(n,r))}),t.registerHelper("datatype",function(e){return new t.SafeString(C(e))}),t.registerHelper("pads",function(e){return new t.SafeString(A(e))}),t.registerHelper("superclasses",function(e){if(!e.superclasses||!e.superclasses.length)return"";var n=" : "+e.superclasses.map(function(e){return"<span class='idlSuperclass'><a>"+e+"</a></span>"}).join(", ");return new t.SafeString(n)})},E=function(e){for(var t="",n=0;e>n;n++)t+=" ";return t},T=function(e){return e.replace(/^\s+/,"").replace(/\s+$/,"").split(/\s+/).join(" ")},S=function(e){for(var t="",n=0,r=e.arrayCount;r>n;n++)t+="[]";return t},C=function(e){if($.isArray(e)){for(var t=[],n=0,r=e.length;r>n;n++)t.push(C(e[n]));return"("+t.join(" or ")+")"}var i=/^(sequence|Promise|CancelablePromise|EventStream|FrozenArray)<(.+)>$/.exec(e);return i?i[1]+"<<a>"+C(i[2])+"</a>>":"<a>"+e+"</a>"},A=function(e){for(var t="",n=0;e>n;n++)t+=" ";return t};return k.prototype={setID:function(e,t){e.id=t,e.refId=e.id.replace(/[^a-zA-Z0-9_\-]/g,"").replace(/^[0-9\-]*/,""),e.unescapedId="_"==e.id[0]?e.id.slice(1):e.id},nullable:function(e,t){return e.nullable=!1,/\?$/.test(t)&&(t=t.replace(/\?$/,""),e.nullable=!0),t},array:function(e,t){return e.array=!1,/\[\]$/.test(t)&&(e.arrayCount=0,t=t.replace(/(?:\[\])/g,function(){return e.arrayCount++,""}),e.array=!0),t},params:function(t,n,r){var i={};t=this.parseExtendedAttributes(t,i);var a=/^\s*(?:in\s+)?([^,=]+)\s+\b([^,]+)\s*(?:,)?\s*/,s=a.exec(t);if(!s)return e.pub("error","Expected parameter list, got: "+t),!1;t=t.replace(a,"");var o=s[1],l=s[2],c=l.split(/\s*=\s*/),u=null;return 1===c.length?l=l.replace(/\s+/g,""):(l=c[0],u=c[1]),this.parseDatatype(i,o),i.defaultValue=u,this.setID(i,l),n&&(i.description=n.contents()),r.params.push(i),t},optional:function(e){if(e.isUnionType)return e.optional=!1,!1;var t=e.datatype.split(/\s+/),n=t.indexOf("optional"),r=!1;return n>-1&&(r=!0,t.splice(n,1),e.datatype=t.join(" ")),e.optional=r,r},definition:function(t){var n={children:[]},r=t.attr("title"),i=t.attr("id");if(r||e.pub("error","No IDL definition in element."),r=this.parseExtendedAttributes(r,n),0===r.indexOf("partial")){var a=r.slice(8);0===a.indexOf("interface")?this.processInterface(n,r,t,{partial:!0}):0===a.indexOf("dictionary")?this.dictionary(n,a,t,{partial:!0}):e.pub("error","Expected definition, got: "+r)}else 0===r.indexOf("interface")||/^callback\s+interface\b/.test(r)?this.processInterface(n,r,t):0===r.indexOf("exception")?this.exception(n,r,t):0===r.indexOf("dictionary")?this.dictionary(n,r,t):0===r.indexOf("callback")?this.callback(n,r,t):0===r.indexOf("enum")?this.processEnum(n,r,t):0===r.indexOf("typedef")?this.typedef(n,r,t):/\bimplements\b/.test(r)?this.processImplements(n,r,t):e.pub("error","Expected definition, got: "+r);return this.parent.children.push(n),this.processMembers(n,t),i&&(n.htmlID=i),n},processInterface:function(t,n,r,i){i=i||{},t.type="interface",t.partial=i.partial||!1;var a=/^\s*(?:(partial|callback)\s+)?interface\s+([A-Za-z][A-Za-z0-9]*)(?:\s+:\s*([^{]+)\s*)?/.exec(n);return a?(t.callback=!!a[1]&&"callback"===a[1],this.setID(t,a[2]),r.attr("data-merge")&&(t.merge=r.attr("data-merge").split(" ")),a[3]&&(t.superclasses=a[3].split(/\s*,\s*/))):e.pub("error","Expected interface, got: "+n),t},dictionary:function(e,t,n,r){return r=r||{},e.partial=r.partial||!1,this.excDic("dictionary",e,t,n)},exception:function(e,t,n){return this.excDic("exception",e,t,n)},excDic:function(t,n,r){n.type=t;var i=new RegExp("^\\s*"+t+"\\s+([A-Za-z][A-Za-z0-9]*)(?:\\s+:\\s*([^{]+)\\s*)?\\s*"),a=i.exec(r);return a?(this.setID(n,a[1]),a[2]&&(n.superclasses=a[2].split(/\s*,\s*/))):e.pub("error","Expected "+t+", got: "+r),n},callback:function(t,n){t.type="callback";var r=/^\s*callback\s+([A-Za-z][A-Za-z0-9]*)\s*=\s*\b(.*?)\s*$/.exec(n);if(r){this.setID(t,r[1]);var i=r[2];this.parseDatatype(t,i)}else e.pub("error","Expected callback, got: "+n);return t},processEnum:function(t,n){t.type="enum";var r=/^\s*enum\s+([A-Za-z][A-Za-z0-9]*)\s*$/.exec(n);return r?this.setID(t,r[1]):e.pub("error","Expected enum, got: "+n),t},typedef:function(t,n,r){t.type="typedef",n=n.replace(/^\s*typedef\s+/,""),n=this.parseExtendedAttributes(n,t);var i=/^(.+)\s+(\S+)\s*$/.exec(n);if(i){var a=i[1];this.parseDatatype(t,a),this.setID(t,i[2]),t.description=r.contents()}else e.pub("error","Expected typedef, got: "+n);return t},processImplements:function(t,n,r){t.type="implements";var i=/^\s*(.+?)\s+implements\s+(.+)\s*$/.exec(n);return i?(this.setID(t,i[1]),t.datatype=i[2],t.description=r.contents()):e.pub("error","Expected implements, got: "+n),t},processMembers:function(e,t){var n=this.parent,r=this;this.parent=e,t.find("> dt").each(function(){var t,n=$(this),i=n.next(),a=e.type;t="exception"===a?r.exceptionMember(n,i):"dictionary"===a?r.dictionaryMember(n,i):"callback"===a?r.callbackMember(n,i):"enum"===a?r.processEnumMember(n,i):r.interfaceMember(n,i),e.children.push(t)}),this.parent=n},parseConst:function(e,t){var n=/^\s*const\s+\b([^=]+\??)\s+([^=\s]+)\s*=\s*(.*)$/.exec(t);if(n){e.type="constant";var r=n[1];return this.parseDatatype(e,r),this.setID(e,n[2]),e.value=n[3],!0}return!1},exceptionMember:function(t,n){var r={children:[]},i=T(t.text());if(r.description=n.contents(),i=this.parseExtendedAttributes(i,r),this.parseConst(r,i))return r;var a=/^\s*(.*?)\s+(\S+)\s*$/.exec(i);if(a){r.type="field";var s=a[1];return this.parseDatatype(r,s),this.setID(r,a[2]),r}e.pub("error","Expected exception member, got: "+i)},dictionaryMember:function(t,n){var r={children:[]},i=T(t.text());r.description=n.contents(),i=this.parseExtendedAttributes(i,r);var a=/^\s*(?:(required)\s+)?([^=]+\??)\s+([^=\s]+)(?:\s*=\s*(.*))?$/.exec(i);if(a){r.type="member",r.declaration=a[1]?a[1]:"",r.declaration+=new Array(9-r.declaration.length).join(" ");var s=a[2];return r.defaultValue=a[4],this.setID(r,a[3]),this.parseDatatype(r,s),r}e.pub("error","Expected dictionary member, got: "+i)},callbackMember:function(t,n){var r={children:[]},i=T(t.text());r.description=n.contents(),i=this.parseExtendedAttributes(i,r);var a=/^\s*(.*?)\s+([A-Za-z][A-Za-z0-9]*)\s*$/.exec(i);if(a){r.type="member";var s=a[1];return this.setID(r,a[2]),r.defaultValue=a[3],this.parseDatatype(r,s),this.optional(r),r}e.pub("error","Expected callback member, got: "+i)},processEnumMember:function(e,t){var n={children:[]},r=T(e.text());return n.description=t.contents(),r=this.parseExtendedAttributes(r,n),n.type="member",this.setID(n,r||"EMPTY"),n.refId=sn.sanitiseID(n.id),n},interfaceMember:function(t,n){var r={children:[]},i=T(t.text()),a=n.find("dl.parameters").first(),s=n.find(".getraises, .setraises"),o=n.find("dl.exception").first();r.description=n.contents().not("dl.parameters"),i=this.parseExtendedAttributes(i,r);var l;if(l=/^\s*(?:(static)\s+)?(?:(readonly|inherit|stringifier)\s+)?attribute\s+(.*?)\s+(\S+)\s*$/.exec(i)){r.type="attribute",r.declaration=l[1]?l[1]:"",r.declaration+=(r.declaration?" ":"")+(void 0!==l[2]?l[2]:""),r.declaration+=new Array(16-r.declaration.length).join(" ");var c=l[3];return this.parseDatatype(r,c),this.setID(r,l[4]),r.raises=[],s.each(function(){var t=$(this),n={id:t.attr("title"),onSet:t.hasClass("setraises"),onGet:t.hasClass("getraises")};t.is("dl")?(n.type="codelist",n.description=[],t.find("dt").each(function(){var e=$(this),t=e.next("dd");n.description.push({id:e.text(),description:t.contents().clone()})})):t.is("div")?(n.type="simple",n.description=t.contents().clone()):e.pub("error","Do not know what to do with exceptions being raised defined outside of a div or dl."),t.remove(),r.raises.push(n)}),r}if(this.parseConst(r,i))return r;if(l=/^\s*Constructor(?:\s*\(\s*(.*)\s*\))?\s*$/.exec(i)){r.type="constructor";var u=l[1]?l[1]:[];return this.setID(r,this.parent.id),r.named=!1,r.datatype="",this.methodMember(r,o,a,u)}if(l=/^\s*NamedConstructor\s*(?:=\s*)?\b([^(]+)(?:\s*\(\s*(.*)\s*\))?\s*$/.exec(i)){r.type="constructor";var u=l[2]?l[2]:[];return this.setID(r,l[1]),r.named=!0,r.datatype="",this.methodMember(r,o,a,u)}if(l=/^\s*(.*?)\s+\b(\S+?)\s*\(\s*(.*)\s*\)\s*$/.exec(i)){r.type="method";var c=l[1],u=l[3];return c=this.parseStatic(r,c),this.parseDatatype(r,c),this.setID(r,l[2]),this.methodMember(r,o,a,u)}if(l=/^\s*serializer(\s*=\s*((\{\s*(\S+(\s*,\s*\S+)*)?\s*\})|(\[(\s*\S+(\s*,\s*\S+)*)?\s*\])|(\S+)))?\s*$/.exec(i)){r.type="serializer",r.values=[],this.setID(r,"serializer");var p,d=l[3],h=l[6],f=l[9];if(d?(r.serializertype="map",p=l[4]):h?(r.serializertype="list",p=l[7]):f?(r.serializertype="attribute",r.values.push(f)):r.serializertype="prose",p){var m=p.split(/\s*,\s*/);r.getter=!1,r.inherit=!1,r.all=!1,"getter"==m[0]?r.getter=!0:("map"==r.serializertype&&("inherit"==m[0]&&(r.inherit=!0,m.shift()),"attribute"==m[0]&&"map"==r.serializertype&&(r.all=!0,m=[])),r.values=m)}return r}return(l=/^\s*iterable\s*<\s*([^,]*)\s*(,\s*(.*)\s*)?>\s*$/.exec(i))?(r.type="iterable",r.key=l[1],r.value=l[3],r):(l=/^\s*(readonly\s+)?maplike\s*<\s*(.*)\s*,\s*(.*)\s*>\s*$/.exec(i))?(r.type="maplike",r.readonly=void 0!==l[1],r.key=l[2],r.value=l[3],r):(l=/^\s*\/\/\s*(.*)\s*$/.exec(i))?(r.type="comment",r.id=l[1],r):void e.pub("error","Expected interface member, got: "+i)},methodMember:function(t,n,r,i){if(t.params=[],t.raises=[],n.each(function(){var n=$(this),r={id:n.attr("title")};n.is("dl")?(r.type="codelist",r.description=[],n.find("dt").each(function(){var e=$(this),t=e.next("dd");r.description.push({id:e.text(),description:t.contents().clone()})})):n.is("div")?(r.type="simple",r.description=n.contents().clone()):e.pub("error","Do not know what to do with exceptions being raised defined outside of a div or dl."),n.remove(),t.raises.push(r)}),r.length){r.remove();var a=this;r.find("> dt").each(function(){return a.params($(this).text(),$(this).next(),t)})}else for(;i.length&&(i=this.params(i,null,t),i!==!1););for(var s=!1,o=0;o<t.params.length;o++)s?(t.params[o].optional=!0,t.params[o].datatype=t.params[o].datatype.replace(/\boptional\s+/,"")):s=this.optional(t.params[o]);return t},parseDatatype:function(e,t){t=this.nullable(e,t),t=this.array(e,t),e.variadic=!1,/\.\.\./.test(t)&&(t=t.replace(/\.\.\./,""),e.variadic=!0),0===t.indexOf("(")?(t=t.replace("(","").replace(")",""),e.datatype=t.split(/\s+or\s+/),e.isUnionType=!0):e.datatype=t},parseStatic:function(e,t){return/^static\s+/.test(t)?(t=t.replace(/^static\s+/,""),e.isStatic=!0):e.isStatic=!1,t},parseExtendedAttributes:function(e,t){return e?e.replace(/^\s*\[([^\]]+)\]\s*/,function(e,n){return t.extendedAttributes=n,""}):void 0},makeMarkup:function(e){var t=$("<div></div>"),n={"class":"idl"};e&&(n.id=e);var r=$("<pre></pre>").attr(n);return r.html(this.writeAsWebIDL(this.parent,-1)),t.append(r),this.conf.noLegacyStyle||t.append(this.writeAsHTML(this.parent)),this.mergeWebIDL(this.parent.children[0]),t.children()},parseParameterized:function(e){var t=/^(sequence|Promise|CancelablePromise|EventStream|FrozenArray)<(.+)>$/.exec(e);return t?{type:t[1],parameter:t[2]}:null},writeSerializerAsHTML:function(e,t){if("prose"!=t.serializertype){var n="Instances of this interface are serialized as ";if("map"==t.serializertype){var r="a map ";if(t.getter)r+="with entries corresponding to the named properties";else{var i="";t.inherit&&(r+="with entries from the closest inherited interface ",i="and "),t.all?r+=i+"with entries for each of the serializable attributes":t.values&&t.values.length?r+=i+"with entries for the following attributes: "+t.values.join(", "):r="an empty map"}n+=r}else if("list"==t.serializertype){var a="a list ";t.getter?a+="with values corresponding to the indexed properties":t.values&&t.values.length?a+="with the values of the following attributes: "+t.values.join(", "):a="an empty list",n+=a}else"attribute"==t.serializertype&&(n+="the value of the attribute "+t.values[0]);n+=".",sn.element("p",{},e,n)}sn.element("p",{},e,[t.description])},writeIterableAsHTML:function(e,t){var n='"entries", "keys", "values", "forEach" and @@iterator methods',r=sn.element("p",{},e);sn.text("This interface has "+n+" brought by ",r),sn.element("code",{},r,"iterable"),sn.text(".",r),sn.element("p",{},e,t.description)},writeMaplikeAsHTML:function(e,t){var n="",r="";t.readonly?(n="readonly ",r='"entries", "forEach", "get", "has", "keys", "values", @@iterator methods and a "size" getter'):r='"entries", "forEach", "get", "has", "keys", "values", "clear", "delete", "set", @@iterator methods and a "size" getter';var i=sn.element("p",{},e);sn.text("This interface has "+r+" brought by ",i),sn.element("code",{},i,n+"maplike"),sn.text(".",i),sn.element("p",{},e,t.description)},writeTypeFilteredThingsInInterfaceAsHTML:function(e,t,n,r,i){if("iterable"==r)return void this.writeIterableAsHTML(n,i[0]);if("maplike"==r)return void this.writeMaplikeAsHTML(n,i[0]);var a=sn.element("section",{},n),s=r.substr(0,1).toUpperCase()+r.substr(1)+("serializer"!=r?"s":"");if(this.conf.noIDLSectionTitle||sn.element("h2",{},a,s),"serializer"==r)return void this.writeSerializerAsHTML(sn.element("div",{},a),i[0]);for(var o=sn.element("dl",{"class":r+"s"},a),l=0;l<i.length;l++){var c=i[l],u="method"==r?this.makeMethodID(t,c):"constructor"==r?this.makeMethodID("widl-ctor-",c):sn.idThatDoesNotExist(t+c.refId),p=sn.element("dt",{id:u},o);sn.element("code",{},p,c.unescapedId),c.isStatic&&p.append(this.doc.createTextNode(", static"));var d=sn.element("dd",{},o,[c.description]);if("method"==r||"constructor"==r){if(c.params.length){var h=sn.element("table",{"class":"parameters"},d),f=sn.element("tr",{},h);["Parameter","Type","Nullable","Optional","Description"].forEach(function(e){sn.element("th",{},f,e)});for(var m=0;m<c.params.length;m++){var g=c.params[m],f=sn.element("tr",{},h);sn.element("td",{"class":"prmName"},f,g.id);var b=sn.element("td",{"class":"prmType"},f),v=sn.element("code",{},b),y=C(g.datatype);g.array&&(y+=S(g)),g.defaultValue&&(y+=" = "+g.defaultValue),v.html(y),g.nullable?sn.element("td",{"class":"prmNullTrue"},f,$("<span role='img' aria-label='True'>✔</span>")):sn.element("td",{"class":"prmNullFalse"},f,$("<span role='img' aria-label='False'>✘</span>")),g.optional?sn.element("td",{"class":"prmOptTrue"},f,$("<span role='img' aria-label='True'>✔</span>")):sn.element("td",{"class":"prmOptFalse"},f,$("<span role='img' aria-label='False'>✘</span>"));var w=g.description?[g.description]:"";sn.element("td",{"class":"prmDesc"},f,w)}}else sn.element("div",{},d,[sn.element("em",{},null,"No parameters.")]);if(this.conf.idlOldStyleExceptions&&c.raises.length){var h=sn.element("table",{"class":"exceptions"},d),f=sn.element("tr",{},h);["Exception","Description"].forEach(function(e){sn.element("th",{},f,e)});for(var m=0;m<c.raises.length;m++){var x=c.raises[m],f=sn.element("tr",{},h);sn.element("td",{"class":"excName"},f,[sn.element("a",{},null,x.id)]);var _=sn.element("td",{"class":"excDesc"},f);if("simple"==x.type)_.append(x.description);else for(var k=sn.element("table",{"class":"exceptionCodes"},_),E=0;E<x.description.length;E++){var T=x.description[E],f=sn.element("tr",{},k);sn.element("td",{"class":"excCodeName"},f,[sn.element("code",{},null,T.id)]),sn.element("td",{"class":"excCodeDesc"},f,[T.description])}}}if("constructor"!==r){var A=sn.element("div",{},d);sn.element("em",{},A,"Return type: ");var v=sn.element("code",{},A),y=C(c.datatype);c.array&&(y+=S(c)),c.nullable&&sn.text(", nullable",A),v.html(y)}}else if("attribute"==r){if(sn.text(" of type ",p),c.array)for(var E=0,R=c.arrayCount;R>E;E++)sn.text("array of ",p);var N=sn.element("span",{"class":"idlAttrType"},p),D=this.parseParameterized(c.datatype);if(D?(sn.text(D.type+"<",N),sn.element("a",{},N,D.parameter),sn.text(">",N)):sn.element("a",{},N,c.isUnionType?"("+c.datatype.join(" or ")+")":c.datatype),c.declaration.trim()&&sn.text(", "+c.declaration,p),c.nullable&&sn.text(", nullable",p),this.conf.idlOldStyleExceptions&&c.raises.length){var h=sn.element("table",{"class":"exceptions"},d),f=sn.element("tr",{},h);["Exception","On Get","On Set","Description"].forEach(function(e){sn.element("th",{},f,e)});for(var m=0;m<c.raises.length;m++){var x=c.raises[m],f=sn.element("tr",{},h);sn.element("td",{"class":"excName"},f,[sn.element("a",{},null,x.id)]),["onGet","onSet"].forEach(function(e){x[e]?sn.element("td",{"class":"excGetSetTrue"},f,$("<span role='img' aria-label='True'>✔</span>")):sn.element("td",{"class":"excGetSetFalse"},f,$("<span role='img' aria-label='False'>✘</span>"))});var _=sn.element("td",{"class":"excDesc"},f);if("simple"==x.type)_.append(x.description);else for(var k=sn.element("table",{"class":"exceptionCodes"},_),E=0;E<x.description.length;E++){var T=x.description[E],f=sn.element("tr",{},k);sn.element("td",{"class":"excCodeName"},f,[sn.element("code",{},null,T.id)]),sn.element("td",{"class":"excCodeDesc"},f,[T.description])}}}}else"constant"==r&&(sn.text(" of type ",p),sn.element("span",{"class":"idlConstType"},p,[sn.element("a",{},null,c.datatype)]),c.nullable&&sn.text(", nullable",p))}},writeInterfaceAsHTML:function(e){for(var t=sn.documentFragment(),n="widl-"+e.refId+"-",r=["iterable","maplike","constructor","attribute","method","constant","serializer"],i=function(e){return e.type==o},a=function(e,t){return e.unescapedId<t.unescapedId?-1:e.unescapedId>t.unescapedId?1:0},s=0;s<r.length;s++){var o=r[s],l=e.children.filter(i);0!==l.length&&(this.noIDLSorting||l.sort(a),this.writeTypeFilteredThingsInInterfaceAsHTML(e,n,t,o,l))}return t},writeAsHTML:function(t){if("module"==t.type)return"outermost"==t.id?(t.children.length>1&&e.pub("error","We currently only support one structural level per IDL fragment"),this.writeAsHTML(t.children[0])):(e.pub("warn","No HTML can be generated for module definitions."),$("<span></span>"));if("typedef"==t.type){var n;if(t.description&&t.description.text())n=[t.description];else{var r=sn.element("span",{"class":"idlTypedefType"},null);r.html(C(t.datatype)),n=[sn.text("Throughout this specification, the identifier "),sn.element("span",{"class":"idlTypedefID"},null,t.unescapedId),sn.text(" is used to refer to the "),sn.text(t.array?(t.arrayCount>1?t.arrayCount+"-":"")+"array of ":""),r,sn.text(t.nullable?" (nullable)":""),sn.text(" type.")];
}return sn.element("div",{"class":"idlTypedefDesc"},null,n)}if("implements"==t.type){var n;return t.description&&t.description.text()?n=[t.description]:(n=[sn.text("All instances of the "),sn.element("code",{},null,[sn.element("a",{},null,t.unescapedId)]),sn.text(" type are defined to also implement the "),sn.element("a",{},null,t.datatype),sn.text(" interface.")],n=[sn.element("p",{},null,n)]),sn.element("div",{"class":"idlImplementsDesc"},null,n)}if("exception"==t.type){for(var i=sn.documentFragment(),a="widl-"+t.refId+"-",s=["field","constant"],o=function(e){return e.type===u},l=function(e,t){return e.unescapedId<t.unescapedId?-1:e.unescapedId>t.unescapedId?1:0},c=0;c<s.length;c++){var u=s[c],p=t.children.filter(o);if(0!==p.length){this.noIDLSorting||p.sort(l);var d=sn.element("section",{},i),h=u;h=h.substr(0,1).toUpperCase()+h.substr(1)+"s",this.conf.noIDLSectionTitle||sn.element("h2",{},d,h);for(var f=sn.element("dl",{"class":u+"s"},d),m=0;m<p.length;m++){var g=p[m],b=sn.element("dt",{id:a+g.refId},f);sn.element("code",{},b,g.unescapedId);sn.element("dd",{},f,[g.description]);if("field"==u){if(sn.text(" of type ",b),g.array)for(var v=0,y=g.arrayCount;y>v;v++)sn.text("array of ",b);var w=sn.element("span",{"class":"idlFieldType"},b),x=this.parseParameterized(g.datatype);x?(sn.text(x.type+"<",w),sn.element("a",{},w,x.parameter),sn.text(">",w)):sn.element("a",{},w,g.datatype),g.nullable&&sn.text(", nullable",b)}else"constant"==u&&(sn.text(" of type ",b),sn.element("span",{"class":"idlConstType"},b,[sn.element("a",{},null,g.datatype)]),g.nullable&&sn.text(", nullable",b))}}}return i}if("dictionary"==t.type){var n,i=sn.documentFragment(),a="widl-"+t.refId+"-",p=t.children;if(0===p.length)return i;this.noIDLSorting||p.sort(function(e,t){return e.id<t.id?-1:e.id>t.id?1:0});var d=sn.element("section",{},i);n=[sn.text("Dictionary "),sn.element("a",{"class":"idlType"},null,t.unescapedId),sn.text(" Members")],this.conf.noIDLSectionTitle||sn.element("h2",{},d,n);for(var f=sn.element("dl",{"class":"dictionary-members"},d),m=0;m<p.length;m++){var g=p[m],b=sn.element("dt",{id:a+g.refId},f);sn.element("code",{},b,g.unescapedId);sn.element("dd",{},f,[g.description]);if(sn.text(" of type ",b),g.array)for(var c=0,y=g.arrayCount;y>c;c++)sn.text("array of ",b);var w=sn.element("span",{"class":"idlMemberType"},b),x=this.parseParameterized(g.datatype);x?(sn.text(x.type+"<",w),sn.element("a",{},w,x.parameter),sn.text(">",w)):sn.element("a",{},w,g.isUnionType?"("+g.datatype.join(" or ")+")":g.datatype),g.declaration.trim()&&sn.text(", "+g.declaration,b),g.nullable&&sn.text(", nullable",b),g.defaultValue&&(sn.text(", defaulting to ",b),sn.element("code",{},b,[sn.text(g.defaultValue)]))}return i}if("callback"==t.type){var n,i=sn.documentFragment(),a="widl-"+t.refId+"-",p=t.children;if(0===p.length)return i;var d=sn.element("section",{},i);n=[sn.text("Callback "),sn.element("a",{"class":"idlType"},null,t.unescapedId),sn.text(" Parameters")],this.conf.noIDLSectionTitle||sn.element("h2",{},d,n);for(var f=sn.element("dl",{"class":"callback-members"},d),m=0;m<p.length;m++){var g=p[m],b=sn.element("dt",{id:a+g.refId},f);sn.element("code",{},b,g.unescapedId);sn.element("dd",{},f,[g.description]);if(sn.text(" of type ",b),g.array)for(var c=0,y=g.arrayCount;y>c;c++)sn.text("array of ",b);var w=sn.element("span",{"class":"idlMemberType"},b),x=this.parseParameterized(g.datatype);x?(sn.text(x.type+"<",w),sn.element("a",{},w,x.parameter),sn.text(">",w)):sn.element("a",{},w,g.isUnionType?"("+g.datatype.join(" or ")+")":g.datatype),g.nullable&&sn.text(", nullable",b),g.defaultValue&&(sn.text(", defaulting to ",b),sn.element("code",{},b,[sn.text(g.defaultValue)]))}return i}if("enum"==t.type){var i=sn.documentFragment(),p=t.children;if(0===p.length)return i;var d=sn.element("table",{"class":"simple"},i);sn.element("tr",{},d,[sn.element("th",{colspan:2},null,[sn.text("Enumeration description")])]);for(var m=0;m<p.length;m++){var g=p[m],_=sn.element("tr",{},d),k=sn.element("td",{},_);sn.element("code",{id:"idl-def-"+t.refId+"."+g.refId},k,g.unescapedId),sn.element("td",{},_,[g.description])}return i}return"interface"==t.type?this.writeInterfaceAsHTML(t):void 0},makeMethodID:function(e,t){for(var n=e+t.refId+"-"+t.datatype+"-",r=[],i=0,a=t.params.length;a>i;i++){var s=t.params[i];r.push(s.datatype+(s.array?"Array":"")+"-"+s.id)}return n+=r.join("-"),sn.sanitiseID(n)},mergeWebIDL:function(e){"undefined"!=typeof e.merge&&0!==e.merge.length&&setTimeout(function(){for(var t=0;t<e.merge.length;t++){var n=document.querySelector("#idl-def-"+e.refId),r=document.querySelector("#idl-def-"+e.merge[t]);n.insertBefore(document.createElement("br"),n.firstChild),n.insertBefore(document.createElement("br"),n.firstChild),r.parentNode.parentNode.removeChild(r.parentNode),n.insertBefore(r,n.firstChild)}},0)},writeAsWebIDL:function(e,t){t++;var n={indent:t,obj:e,proc:this};if("module"===e.type){if("outermost"==e.id){for(var s=$("<div></div>"),u=0;u<e.children.length;u++)s.append(this.writeAsWebIDL(e.children[u],t-1));return s.children()}return $(r(n))}if("typedef"===e.type)return n.nullable=e.nullable?"?":"",n.arr=S(e),$(i(n));if("implements"===e.type)return $(a(n));if("interface"===e.type){var h=this.doc.createElement("div"),f=$(h).makeID("idl-def",e.refId,!0),m=0,g=0,b=0,v=!1;e.children.forEach(function(e){var t=0;e.isUnionType?t=e.datatype.join(" or ").length+2:e.datatype&&(t=e.datatype.length),e.isStatic&&(t+=7),e.nullable&&(t+=1),e.array&&(t+=2*e.arrayCount),"attribute"==e.type?m=t>m?t:m:"method"==e.type?g=t>g?t:g:"constant"==e.type&&(b=t>b?t:b),"attribute"==e.type&&e.declaration&&(v=!0)});var y="widl-"+e.refId+"-",w=this,k=[],E=e.children.map(function(e){if("attribute"==e.type)return w.writeAttribute(e,m,t+1,y,v);if("method"==e.type)return w.writeMethod(e,g,t+1,y);if("constant"==e.type)return w.writeConst(e,b,t+1,y);if("serializer"==e.type)return w.writeSerializer(e,t+1,y);if("constructor"==e.type)k.push(w.writeConstructor(e,t,"widl-ctor-"));else{if("iterable"==e.type)return w.writeIterable(e,t+1,y);if("maplike"==e.type)return w.writeMaplike(e,t+1,y);if("comment"==e.type)return w.writeComment(e,t+1)}}).join("");return _({obj:e,indent:t,id:f,ctor:k.join(",\n"),partial:e.partial?"partial ":"",callback:e.callback?"callback ":"",children:E})}if("exception"===e.type){var m=0,b=0;e.children.forEach(function(e){var t=e.datatype.length;e.nullable&&(t+=1),e.array&&(t+=2*e.arrayCount),"field"===e.type?m=t>m?t:m:"constant"===e.type&&(b=t>b?t:b)});var y="widl-"+e.refId+"-",w=this,E=e.children.map(function(e){return"field"===e.type?w.writeField(e,m,t+1,y):"constant"===e.type?w.writeConst(e,b,t+1,y):void 0}).join("");return x({obj:e,indent:t,children:E})}if("dictionary"===e.type){var T=0;e.children.forEach(function(e){var t=0;e.isUnionType?t=e.datatype.join(" or ").length+2:e.datatype&&(t=e.datatype.length),e.nullable&&(t+=1),e.array&&(t+=2*e.arrayCount),T=t>T?t:T});var y="widl-"+e.refId+"-",w=this,E=e.children.map(function(e){return w.writeMember(e,T,t+1,y)}).join("");return o({obj:e,indent:t,children:E,partial:e.partial?"partial ":""})}if("callback"===e.type){var C=e.children.map(function(e){return p({obj:e,optional:e.optional?"optional ":"",arr:S(e),nullable:e.nullable?"?":"",variadic:e.variadic?"...":""})}).join(", ");return d({obj:e,indent:t,arr:S(e),nullable:e.nullable?"?":"",children:C})}if("enum"===e.type){var E=e.children.map(function(n){return l({obj:n,parentID:e.refId,indent:t+1})}).join(",\n");return c({obj:e,indent:t,children:E})}},writeField:function(e,t,n,r){var i=t-e.datatype.length;return e.nullable&&(i-=1),e.array&&(i-=2*e.arrayCount),w({obj:e,indent:n,arr:S(e),nullable:e.nullable?"?":"",pad:i,href:r+e.refId})},writeAttribute:function(e,t,n,r){var i=0;e.isUnionType?i=e.datatype.join(" or ").length+2:e.datatype&&(i=e.datatype.length);var a=t-i;return e.nullable&&(a-=1),e.array&&(a-=2*e.arrayCount),m({obj:e,indent:n,declaration:e.declaration,pad:a,arr:S(e),nullable:e.nullable?"?":"",href:r+e.refId})},writeMethod:function(e,t,n,r){var i=e.params.map(function(e){return p({obj:e,optional:e.optional?"optional ":"",arr:S(e),nullable:e.nullable?"?":"",variadic:e.variadic?"...":""})}).join(", "),a=0;a=e.isUnionType?e.datatype.join(" or ").length+2:e.datatype.length,e.isStatic&&(a+=7);var s=t-a;return e.nullable&&(s-=1),e.array&&(s-=2*e.arrayCount),h({obj:e,indent:n,arr:S(e),nullable:e.nullable?"?":"","static":e.isStatic?"static ":"",pad:s,id:this.makeMethodID(r,e),children:i})},writeConstructor:function(e,t,n){var r=e.params.map(function(e){return p({obj:e,optional:e.optional?"optional ":"",arr:S(e),nullable:e.nullable?"?":"",variadic:e.variadic?"...":""})}).join(", ");return f({obj:e,indent:t,id:this.makeMethodID(n,e),name:e.named?e.id:"Constructor",keyword:e.named?"NamedConstructor=":"",children:r})},writeConst:function(e,t,n){var r=t-e.datatype.length;return e.nullable&&r--,u({obj:e,indent:n,pad:r,nullable:e.nullable?"?":""})},writeComment:function(e,t){return y({obj:e,indent:t,comment:e.id})},writeSerializer:function(e,t){var n="";if("map"==e.serializertype){var r=[];e.getter?r=["getter"]:(e.inherit&&r.push("inherit"),e.all?r.push("attribute"):r=r.concat(e.values)),n="{"+r.join(", ")+"}"}else if("list"==e.serializertype){var i=e.getter?["getter"]:e.values;n="["+i.join(", ")+"]"}else"attribute"==e.serializertype&&(n=e.values[0]);return g({obj:e,indent:t,values:n})},writeIterable:function(e,t){return b({obj:e,indent:t})},writeMaplike:function(e,t){var n=e.readonly?"readonly ":"";return v({obj:e,indent:t,readonly:n})},writeMember:function(e,t,n,r){var i={obj:e,indent:n,curLnk:r,nullable:e.nullable?"?":"",arr:S(e)};return e.declaration&&(i.declaration=e.declaration),e.isUnionType?i.pad=t-(e.datatype.join(" or ").length+2):e.datatype&&(i.pad=t-e.datatype.length),e.nullable&&(i.pad=i.pad-1),e.array&&(i.pad=i.pad-2*e.arrayCount),s(i)}},{showDeprecationWarning:function(){var t="Defining WebIDL in `dl` elements is deprecated. Please use Contiguous IDL instead: https://github.com/w3c/respec/wiki/User's-Guide#webidl-support";e.pub("warn",t)},run:function(e,t,r){e.noIDLSorting||(e.noIDLSorting=!1),e.noIDLSectionTitle||(e.noIDLSectionTitle=!1),sn=new simpleNode(document);var i=$(".idl",t).not("pre");if(!i.length)return r();this.showDeprecationWarning(),$(t).find("head link").first().before($("<style/>").text(n));var a=[];i.each(function(){var n=new k({noIDLSorting:e.noIDLSorting,doc:t,conf:e}),r=n.definition($(this)),i=n.makeMarkup(r.htmlID);$(this).replaceWith(i),-1!==$.inArray(r.type,"interface exception dictionary typedef callback enum".split(" "))&&a.push(r.id)}),t.normalize(),$("a:not([href])").each(function(){var e=$(this);if(!e.hasClass("externalDFN")){var t=e.text();-1!==$.inArray(t,a)&&e.attr("href","#idl-def-"+t).addClass("idlType").html("<code>"+t+"</code>")}}),r()}}}),window.simpleNode=function(e){this.doc=e?e:document},window.simpleNode.prototype={element:function(e,t,n,r){var i=$(this.doc.createElement(e));if(i.attr(t||{}),n&&$(n).append(i),r)if(r instanceof jQuery)i.append(r);else if(r instanceof Array)for(var a=0;a<r.length;a++)i.append(r[a]);else this.text(r,i);return i},text:function(e,t){var n=this.doc.createTextNode(e);return t&&$(t).append(n),n},documentFragment:function(){return this.doc.createDocumentFragment()},sanitiseID:function(e){return e=e.split(/[^\-.0-9a-zA-Z_]/).join("-"),e=e.replace(/^-+/g,""),e=e.replace(/-+$/,""),e.length>0&&/^[^a-z]/.test(e)&&(e="x"+e),0===e.length&&(e="generatedID"),e},idThatDoesNotExist:function(e){var t=1;if(this.doc.getElementById(e)){for(;this.doc.getElementById(e+"-"+t);)t++;e=e+"-"+t}return e}},define("core/link-to-dfn",["core/pubsubhub"],function(e){return{run:function(t,n,r){function i(e){return function(t){var n=t.getAttribute(e);t.removeAttribute(e),t.setAttribute("data-"+e,n)}}n.normalize();var a={};Object.keys(t.definitionMap).forEach(function(n){a[n]={},t.definitionMap[n].forEach(function(t){void 0===t.attr("data-idl")&&t.removeAttr("data-dfn-for");var r=t.attr("data-dfn-for")||"";if(r in a[n]){var i=0!==a[n][r].filter("dfn").length,s=0!==t.filter("dfn").length;if(i&&s&&e.pub("error","Duplicate definition of '"+(r?r+"/":"")+n+"'"),i)return}a[n][r]=t,void 0===t.attr("id")&&(t.attr("data-idl")?t.makeID("dom",(r?r+"-":"")+n):t.makeID("dfn",n))})}),$("a:not([href])").each(function(){var t=$(this);if(!t.hasClass("externalDFN")){var n=t.linkTargets(),r=n.some(function(e){if(a[e.title]&&a[e.title][e.for_]){var n=a[e.title][e.for_];return t.attr("href","#"+n.prop("id")).addClass("internalDFN"),t.attr("data-link-type")||t.attr("data-link-type","dfn"),(n.closest("code,pre").length||1===n.contents().length&&1===n.children("code").length)&&t.wrapInner("<code></code>"),!0}return!1});if(!r){if(!t.parents(".idl, dl.methods, dl.attributes, dl.constants, dl.constructors, dl.fields, dl.dictionary-members, span.idlMemberType, span.idlTypedefType, div.idlImplementsDesc").length){var i=n[0].for_,s=n[0].title;e.pub("warn","Found linkless <a> element "+(i?"for '"+i+"' ":"")+"with text '"+s+"' but no matching <dfn>.")}t.replaceWith(t.contents())}}});var s=n.querySelectorAll("*[for]");Array.prototype.forEach.call(s,i("for"));var o=n.querySelectorAll("*[dfn-for]");Array.prototype.forEach.call(o,i("dfn-for"));var l=n.querySelectorAll("*[link-for]");Array.prototype.forEach.call(l,i("link-for")),e.pub("end","core/link-to-dfn"),r()}}}),define("deps/text!core/css/github.css",[],function(){return"/*\n\ngithub.com style (c) Vasily Polovnyov <[email protected]>\n\n*/\n\n.hljs {\n display: block;\n overflow-x: auto;\n padding: 0.5em;\n color: #333;\n background: #f8f8f8;\n}\n\n.hljs-comment,\n.hljs-quote {\n color: #998;\n font-style: italic;\n}\n\n.hljs-keyword,\n.hljs-selector-tag,\n.hljs-subst {\n color: #333;\n font-weight: bold;\n}\n\n.hljs-number,\n.hljs-literal,\n.hljs-variable,\n.hljs-template-variable,\n.hljs-tag .hljs-attr {\n color: #008080;\n}\n\n.hljs-string,\n.hljs-doctag {\n color: #d14;\n}\n\n.hljs-title,\n.hljs-section,\n.hljs-selector-id {\n color: #900;\n font-weight: bold;\n}\n\n.hljs-subst {\n font-weight: normal;\n}\n\n.hljs-type,\n.hljs-class .hljs-title {\n color: #458;\n font-weight: bold;\n}\n\n.hljs-tag,\n.hljs-name,\n.hljs-attribute {\n color: #000080;\n font-weight: normal;\n}\n\n.hljs-regexp,\n.hljs-link {\n color: #009926;\n}\n\n.hljs-symbol,\n.hljs-bullet {\n color: #990073;\n}\n\n.hljs-built_in,\n.hljs-builtin-name {\n color: #0086b3;\n}\n\n.hljs-meta {\n color: #999;\n font-weight: bold;\n}\n\n.hljs-deletion {\n background: #fdd;\n}\n\n.hljs-addition {\n background: #dfd;\n}\n\n.hljs-emphasis {\n font-style: italic;\n}\n\n.hljs-strong {\n font-weight: bold;\n}\n"}),define("core/highlight",["core/pubsubhub","core/utils","deps/highlight","deps/text!core/css/github.css"],function(e,t,n,r){var i=document.createElement("style");i.textContent=r;var a=t.makeOwnerSwapper(i);return a(document.head),{run:function(t,r,s){return t.noHighlightCSS?s():(i.ownerDocument!==r&&a(r.head),r.querySelector("highlight")&&e.pub("warn","pre elements don't need a 'highlight' class anymore."),Array.from(r.querySelectorAll("pre:not(.idl)")).forEach(function(e){n.highlightBlock(e)}),void s())}}}),define("core/contrib",["github","core/pubsubhub"],function(e,t){return{run:function(n,r,i){function a(e){return function(t){return t[e]}}function s(e){return Array.prototype.slice.call(e,0)}function o(){var e={};return s(arguments).forEach(function(t){t.forEach(function(t){t.user&&(e[t.user.url]=!0)})}),Object.keys(e)}function l(e){if(!e.length)return"";e=e.slice(0);var t=e.pop(),n=e.length;return 0===n?t:1===n?e[0]+" and "+t:e.join(", ")+", and "+t}function c(t,n,r){return $.when.apply($,t.map(function(t){return e.fetch(t)})).then(function(){var e=s(arguments).map(function(e){return e=e[0],e.name||e.login}).filter(function(e){return n.indexOf(e)<0});e.sort(function(e,t){return e.toLowerCase().localeCompare(t.toLowerCase())}),$(r).html(l(e)).attr("id",null)})}var u=r.querySelector("#gh-commenters"),p=r.querySelector("#gh-contributors");if(!u&&!p)return void i();if(!n.githubAPI){var d=[];return u&&d.push("#"+u.id),p&&d.push("#"+p.id),t.pub("error","Requested list of contributors and/or commenters from GitHub ("+d.join(" and ")+") but config.githubAPI is not set."),void i()}e.fetch(n.githubAPI).then(function(t){return $.when(e.fetchIndex(t.issues_url),e.fetchIndex(t.issue_comment_url),e.fetchIndex(t.contributors_url))}).then(function(e,t,n){var r=respecConfig.editors.map(a("name")),i=o(e,t);return n=n.map(a("url")),$.when(c(i,r,u),c(n,r,p))}).then(i,function(e){t.pub("error","Error loading contributors and/or commenters from GitHub. Error: "+e),i()})}}}),define("core/fix-headers",[],function(){return{run:function(e,t,n){var r=$("section:not(.introductory)",t).find("h1:first, h2:first, h3:first, h4:first, h5:first, h6:first");r.each(function(){var e=$(this).parents("section").length+1;e>6&&(e=6);var t="h"+e;this.localName.toLowerCase()!==t&&$(this).renameElement(t)}),n()}}}),define("core/structure",[],function(){function e(a,s,o,l,c){var u=a.children(c.tocIntroductory?"section":"section:not(.introductory)");if(0===u.length)return null;for(var p=$("<ol class='toc'></ol>"),d=0;d<u.length;d++){var h=$(u[d],s),f=h.hasClass("introductory"),m=h.hasClass("notoc");if(h.children().length&&!m){var g=h.children()[0],b=g.localName.toLowerCase();if("h2"===b||"h3"===b||"h4"===b||"h5"===b||"h6"===b){var v=g.textContent,y=$("<div></div>").append($(g).contents().clone());y.find("a").renameElement("span").attr("class","formerLink").removeAttr("href"),y.find("dfn").renameElement("span").removeAttr("id");var w=g.id?g.id:h.makeID(null,v);f||o[o.length-1]++;var x=o.slice();h.hasClass("appendix")&&1===o.length&&!n&&(r=o[0],n=!0),n&&(x[0]=i.charAt(o[0]-r));var _=x.join("."),k=1==x.length;k&&(_+=".",$(g).before(document.createComment("OddPage")));var E=$("<span class='secno'></span>").text(_+" ");f||$(g).prepend(E),t[w]=(f?"":"<span class='secno'>"+_+"</span> ")+"<span class='sec-title'>"+v+"</span>";var T=$("<a/>").attr({href:"#"+w,"class":"tocxref"}).append(f?"":E.clone()).append(y.contents()),S=$("<li class='tocline'/>").append(T);(0===c.maxTocLevel||l<=c.maxTocLevel)&&p.append(S),o.push(0);var C=e(h,s,o,l+1,c);C&&S.append(C),o.pop()}}}return p}var t={},n=!1,r=0,i="ABCDEFGHIJKLMNOPQRSTUVWXYZ";return{run:function(n,r,i){"tocIntroductory"in n==!1&&(n.tocIntroductory=!1),"maxTocLevel"in n==!1&&(n.maxTocLevel=0);var a=$("section:not(.introductory)",r).find("h1:first, h2:first, h3:first, h4:first, h5:first, h6:first");if(!a.length)return i();if(a.each(function(){var e=$(this).parents("section").length+1;e>6&&(e=6);var t="h"+e;this.localName.toLowerCase()!=t&&$(this).renameElement(t)}),!n.noTOC){var s=e($("body",r),r,[0],1,n);if(!s)return;var o=r.createElement("nav");o.id="toc",o.innerHTML="<h2 class='introductory'>"+n.l10n.toc+"</h2>",o.appendChild(s[0]);var l=$("#toc",r),c=!1;l.length&&(c=!0),l.length||(l=$("#sotd",r)),l.length||(l=$("#abstract",r)),c?l.replaceWith(o):l.after(o);var u=$("<p role='navigation' id='back-to-top'><a href='#toc'><abbr title='Back to Top'>↑</abbr></a></p>");$("body").append(u)}$("a[href^='#']:not(.tocxref)",r).each(function(){var e=$(this);if(""===e.html()){var n=e.attr("href").slice(1);t[n]&&(e.addClass("sec-ref"),e.html((e.hasClass("sectionRef")?"section ":"")+t[n]))}}),i()}}}),define("w3c/informative",[],function(){return{run:function(e,t,n){$("section.informative").find("> h2:first, > h3:first, > h4:first, > h5:first, > h6:first").after("<p><em>This section is non-normative.</em></p>"),n()}}}),define("tmpl!w3c/templates/permalinks.css",["deps/handlebars"],function(e){return e.compile("/* --- PERMALINKS --- */\n{{#if permalinkHide}}\nsection > *:hover > span.permalink { visibility: visible; }\n{{/if}}\n\n.permalink {\n width: 1px;\n height: 1px;\n overflow: visible;\n font-size: 10pt;\n font-style: normal;\n vertical-align: middle;\n margin-left: 4px;\n {{#if permalinkEdge}}\n float: right;\n {{/if}}\n {{#if permalinkHide}}\n visibility: hidden;\n {{/if}}\n}\n\n.permalink a, .permalink a:link, .permalink a:visited, .permalink a:hover, .permalink a:focus, .permalink a:active\n{\n background:transparent !important;\n text-decoration:none;\n font-weight: bold;\n color:#666 !important;\n}\n\n.permalink abbr {\n border:0;\n}\n")}),define("w3c/permalinks",["tmpl!w3c/templates/permalinks.css","core/utils"],function(e,t){return{run:function(t,n,r){if(t.includePermalinks){var i=t.permalinkSymbol||"§",a="<style>"+e(t)+"</style>";$(n).find("head link").first().before(a);var s=$(n).find("h2, h3, h4, h5, h6");s.each(function(e,n){var r=$(n);if(!r.hasClass("nolink")){var a=r.attr("id"),s=r.parent();if((s.is("section")||s.is("div"))&&(a=s.hasClass("introductory")||s.hasClass("nolink")?null:s.attr("id")),null!=a){var o=$("<span></span>");o.attr("class","permalink"),t.doRDFa&&o.attr("typeof","bookmark");var l=r.text(),c=$("<a></a>");c.attr({href:"#"+a,"aria-label":"Permalink for "+l,title:"Permalink for "+l}),t.doRDFa&&c.attr("property","url");var u=$("<span></span>");t.doRDFa&&u.attr({property:"title",content:l}),u.append(i),c.append(u),o.append(c),t.permalinkEdge||r.append(" "),r.append(o)}}})}r()}}}),define("core/id-headers",[],function(){return{run:function(e,t,n){$("h2, h3, h4, h5, h6").each(function(){var e=$(this);if(!e.attr("id")){if(e.parent("section").attr("id")&&0===e.prev().length)return;e.makeID()}}),n()}}}),define("core/rdfa",[],function(){return{run:function(e,t,n){e.doRDFa&&$("section,nav").each(function(){var e=$(this),t="",n=e.children("h1,h2,h3,h4,h5,h6").first(),r=e.attr("id"),i=null;r?t="#"+r:n.length&&(r=n.attr("id"),r&&(t="#"+r,i=r));var a="bibo:hasPart";t.match(/#(abstract|sotd|toc)$/)||e.attr({"typeof":"bibo:Chapter",resource:t,property:a}),n.length&&(i||(i=n.makeID("h",r)),n.attr({resource:"#"+i}),n.wrapInner("<span property='xhv:role' resource='xhv:heading'></span>"))}),n()}}}),define("w3c/aria",[],function(){return{run:function(e,t,n){t.body.hasAttribute("role")||t.body.setAttribute("role","document"),t.body.hasAttribute("id")||t.body.setAttribute("id","respecDocument");var r=document.querySelector("div.head");r&&(r.setAttribute("role","contentinfo"),r.setAttribute("id","respecHeader"));var i=t.querySelector("#toc ol:first-of-type");i&&i.setAttribute("role","directory");var a=1,s=1,o=1;Array.from(t.querySelectorAll(".note-title, .ednote-title, .issue-title")).forEach(function(e){var t=$(e),n=e.classList.contains("issue-title"),r=e.classList.contains("ednote-title"),i=t.parents("section").length+2;e.setAttribute("aria-level",i),e.setAttribute("role","heading"),n?t.makeID("h","issue"+s++):r?t.makeID("h","ednote"+o++):t.makeID("h","note"+a++)}),n()}}}),define("core/shiv",[],function(){return{run:function(e,t,n){var r=t.createComment("[if lt IE 9]><script src='https://www.w3.org/2008/site/js/html5shiv.js'></script><![endif]");$("head").append(r),n()}}}),define("core/remove-respec",["core/utils"],function(e){return{run:function(t,n,r){e.removeReSpec(n),r()}}}),define("core/location-hash",["core/pubsubhub"],function(e){return{run:function(t,n,r){e.pub("start","core/location-hash");var i=window.location.hash,a=void 0!==window.pageYOffset?window.pageYOffset:(document.documentElement||document.body.parentNode||document.body).scrollTop;i&&!a&&(window.location.hash="",window.location.hash=i),r()}}}),define("ui/about-respec",[],function(){return{show:function(e){var t=$("<div><p>ReSpec is a document production toolchain, with a notable focus on W3C specifications.</p></div>");$("<p>You can find more information in the <a href='https://w3.org/respec/'>documentation</a>.</p>").appendTo(t),$("<p>Found a bug in ReSpec? <a href='https://github.com/w3c/respec/issues'>File it!</a>.</p>").appendTo(t),e.freshModal("About ReSpec",t)}}}),define("ui/dfn-list",[],function(){return{show:function(e,t){var n=$("<ul></ul>");Object.keys(t.definitionMap).sort().forEach(function(r){t.definitionMap[r].forEach(function(t){var i=$("<a>"+r+"</a>").attr("href","#"+t.attr("id")).click(function(){e.closeModal()});$("<li></li>").append(i).appendTo(n)})}),e.freshModal("List of Definitions",n)}}}),define("ui/save-html",["deps/beautify-html","core/beautify-options","core/pubsubhub","core/utils"],function(e,t,n,r){function i(e){return e.replace(/\n\s*\(</gm," (<")}var a,s,o=function(e){$(".removeOnSave",e).remove(),$("#toc-nav",e).remove(),$("body",e).removeClass("toc-sidebar"),r.removeReSpec(e);var t=e.querySelector("head"),i=e.querySelector("meta[name='viewport']");i&&t.insertBefore(i,t.firstChild);var s=e.querySelector("meta[charset=utf-8], meta[content*='charset=utf-8']");s||(n.pub("warn","Document lacks a 'meta charset' declaration. Exporting as utf-8."),s=a.createElement("meta"),s.setAttribute("charset","utf-8")),t.insertBefore(s,t.firstChild);var o=a.createElement("meta");o.name="generator",o.content="ReSpec "+window.respecVersion||"Developer Channel",t.insertBefore(o,t.lastChild)};return{show:function(e,t,n){a=n,s=t,s.diffTool||(s.diffTool="https://www5.aptest.com/standards/htmldiff/htmldiff.pl");var r=Object.getOwnPropertyNames(HTMLAnchorElement.prototype).indexOf("download")>-1,i=this,o=$("<div></div>"),l={background:"#eee",border:"1px solid #000",borderRadius:"5px",padding:"5px",margin:"5px",display:"block",width:"100%",color:"#000",textDecoration:"none",textAlign:"center",fontSize:"inherit"},c=function(t){r?$("<a></a>").appendTo(o).text(t.title).css(l).attr({id:t.id,href:t.url,download:t.fileName,type:t.type||""}).click(function(){e.closeModal()}):$("<button></button>").appendTo(o).text(t.title).css(l).click(function(){t.popupContent(),e.closeModal()})};c({id:"respec-save-as-html",title:"Save as HTML",url:this.htmlToDataURL(this.toString()),popupContent:function(){i.toHTMLSource()},fileName:"index.html"}),c({id:"respec-save-as-xhtml5",fileName:"index.xhtml",popupContent:function(){i.toXHTMLSource(5)},title:"Save as XHTML5",url:this.htmlToDataURL(this.toXML(5))}),c({id:"respec-save-as-xhtml",fileName:"index.xhtml",popupContent:function(){i.toXHTMLSource(1)},title:"Save as XHTML 1.0",url:this.htmlToDataURL(this.toXML(1))}),c({id:"respec-save-as-epub",fileName:"spec.epub",popupContent:function(){window.open(i.makeEPubHref(),"_blank")},title:"Save as EPUB 3",type:"application/epub+zip",url:this.makeEPubHref()}),s.diffTool&&(s.previousDiffURI||s.previousURI)&&$("<button>Diff</button>").appendTo(o).css(l).click(function(){i.toDiffHTML(),e.closeModal()}),e.freshModal("Save Snapshot",o)},htmlToDataURL:function(e){return e=encodeURIComponent(e),"data:text/html;charset=utf-8,"+e},makeEPubHref:function(){var e="https://labs.w3.org/epub-generator/cgi-bin/epub-generator.py",t=e+"?type=respec&";return t+="url="+encodeURIComponent(a.location.href)},toString:function(){n.pub("save","toString");var s="<!DOCTYPE html",l=a.doctype;l&&l.publicId&&(s+=" PUBLIC '"+l.publicId+"' '"+l.systemId+"'"),s+=">\n<html";for(var c=a.documentElement.attributes,u=0;u<c.length;u++){var p=c[u].name;"xmlns"!==p&&"xml:lang"!==p&&(s+=" "+p+'="'+r.xmlEscape(c[u].value)+'"')}s+=">\n";var d=a.documentElement.cloneNode(!0);o(d),s+=d.innerHTML,s+="</html>";var h=i(s),f=e.html_beautify(h,t);return f},toXML:function(l){n.pub("save","toXML"+l);var c=a.documentElement.cloneNode(!0);o(c),5!==l&&($.each("section figcaption figure aside".split(" "),function(e,t){$(t,c).renameElement("div").addClass(t)}),$("time",c).renameElement("span").addClass("time").removeAttr("datetime"),$("[role]",c).removeAttr("role"),$("[aria-level]",c).removeAttr("aria-level"),$("style:not([type])",c).attr("type","text/css"),$("script:not([type])",c).attr("type","text/javascript"));var u="<!DOCTYPE html",p=a.doctype;p&&p.publicId?u+=" PUBLIC '"+p.publicId+"' '"+p.systemId+"'":5!==l&&(u+=s.doRDFa?" PUBLIC '-//W3C//DTD XHTML+RDFa 1.1//EN' 'https://www.w3.org/MarkUp/DTD/xhtml-rdfa-2.dtd'":" PUBLIC '-//W3C//DTD XHTML 1.0 Transitional//EN' 'https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'"),u+=">\n<html";for(var d=a.documentElement.attributes,h=!1,f=0;f<d.length;f++){var m=d[f].name;"xmlns"===m&&(h=!0),u+=" "+m+'="'+r.xmlEscape(d[f].value)+'"'}h||(u+=' xmlns="http://www.w3.org/1999/xhtml"'),u+=">\n";var g={};"br img input area base basefont col isindex link meta param hr".split(" ").forEach(function(e){g[e]=!0});var b=[!1],v=function(e){var t="";if(9===e.nodeType||1===e.nodeType&&"html"==e.nodeName.toLowerCase())for(var i=0;i<e.childNodes.length;i++)t+=v(e.childNodes[i]);else if(1===e.nodeType){var a=e.nodeName.toLowerCase();t+="<"+a;for(var i=0;i<e.attributes.length;i++){var s=e.attributes[i];/^\d+$/.test(s.name)||(t+=" "+s.name+'="'+r.xmlEscape(s.value)+'"')}if(g[a])t+=" />";else{t+=">",b.push("style"===a||"script"===a);for(var i=0;i<e.childNodes.length;i++)t+=v(e.childNodes[i]);b.pop(),t+="</"+a+">"}}else 8===e.nodeType?t+="\n<!--"+e.nodeValue+"-->\n":3===e.nodeType||4===e.nodeType?t+=b[b.length-1]?e.nodeValue:r.xmlEscape(e.nodeValue):n.pub("warn","Cannot handle serialising nodes of type: "+e.nodeType);return t};u+=v(c)+"</html>";var y=i(u),w=e.html_beautify(y,t);return w},toDiffHTML:function(){n.pub("save","toDiffHTML");var e=window.location.href.replace(/\/[^\/]*$/,"/"),t="<!DOCTYPE html>\n<html>\n<head><title>Diff form</title></head>\n<body><form name='form' method='POST' action='"+s.diffTool+"'>\n<input type='hidden' name='base' value='"+e+"'>\n";t+=s.previousDiffURI?"<input type='hidden' name='oldfile' value='"+s.previousDiffURI+"'>\n":"<input type='hidden' name='oldfile' value='"+s.previousURI+"'>\n",t+='<input type="hidden" name="newcontent" value="'+r.xmlEscape(this.toString())+'">\n<p>Submitting, please wait...</p></form></body></html>\n';var i=window.open();i.document.write(t),i.document.close(),i.document.form.submit()},toHTMLSource:function(){var e=window.open();e.document.write("<pre>"+r.xmlEscape(this.toString())+"</pre>"),e.document.close()},toXHTMLSource:function(e){var t=window.open();t.document.write("<pre>"+r.xmlEscape(this.toXML(e))+"</pre>"),t.document.close()}}}),define("ui/search-specref",["core/biblio"],function(e){function t(e,t,n){return e+" "+(1==e?t:n)}function n(t){var n="",r=0;for(var i in t){var a=t[i];a.aliasOf||(r++,n+="<dt>["+(a.id||i)+"]</dt><dd><small>"+e.stringifyRef(a)+"</small></dd>")}return{html:n,count:r}}function r(e,n){return n?"We found "+t(n,"result","results")+' for your search for "'+e+'".':'Your search for "'+e+"\" did not match any references in the Specref database.<br>Sorry. :'("}function i(e,t){var n=new RegExp("(<[^>]+>)|("+t+")","gi");return(e||"").replace(n,function(e,t,n){return t?t:"<strong style='font-weight: inherit; background-color: yellow'>"+n+"</strong>"})}return{show:function(e){var t=$("<div><form><p><input name=q type=search> <input type=submit value=search /></p></form></div"),a=t.find("input[type=search]"),s=$("<p style='font-size: smaller'></p>"),o=$("<dl></dl>");s.appendTo(t),o.appendTo(t),e.freshModal("Search Specref DB",t),a.focus(),t.find("form").on("submit",function(){s.html("Searching…");var e=a.val();return $.when($.getJSON("https://specref.herokuapp.com/search-refs",{q:e}),$.getJSON("https://specref.herokuapp.com/reverse-lookup",{urls:e})).done(function(t,l){var c;t=t[0],l=l[0];for(var u in l)c=l[u],t[c.id]=c;var p=n(t);o.html(i(p.html,e)),s.html(r(e,p.count)),a.select()}),!1})}}}),define("w3c/linter",["core/pubsubhub"],function(e){function t(e){return Array.from(e.querySelectorAll("h2, h3, h4, h5, h6")).map(function(e){return e.textContent}).some(function(e){var t=/(privacy|security)/gim,n=/(considerations)/gim;return t.test(e)&&n.test(e)})}function n(e,t){return Object.getOwnPropertyNames(e).filter(function(e){return e.endsWith("URI")||"prevED"===e}).filter(function(n){return new URL(e[n],t).href.startsWith("http://")})}return{run:function(r,i,a){if(!r.lint||"unofficial"===r.status)return a();var s=[],o="";t(i)||(o="This specification doesn't appear to have any 'Privacy' or 'Security' considerations sections. Please consider adding one, see https://w3ctag.github.io/security-questionnaire/",
s.push(o));var l=n(r,i.location.href);l.length&&(o="There are insecure URLs in your respecConfig! Please change the following properties to use 'https://': "+l.join(", ")+".",s.push(o)),s.map(function(t){e.pub("warn",t)}),a()},rules:{findHTTPProps:n,hasPriSecConsiderations:t}}}),require.config({shim:{shortcut:{exports:"shortcut"},Promise:{exports:"Promise"},highlight:{exports:"hljs"},beautify:{exports:"beautify"}},paths:{"beautify-css":"deps/beautify-css","beautify-html":"deps/beautify-html"},deps:["deps/fetch","deps/jquery"]}),define("profile-w3c-common",["deps/domReady","core/base-runner","core/ui","core/respec-ready","core/include-config","core/override-configuration","core/default-root-attr","core/style","w3c/style","w3c/l10n","core/markdown","w3c/headers","w3c/abstract","w3c/conformance","core/data-transform","core/data-include","core/inlines","core/dfn","w3c/rfc2119","core/examples","core/issues-notes","core/requirements","core/best-practices","core/figures","core/biblio","core/webidl-contiguous","core/webidl-oldschool","core/link-to-dfn","core/highlight","core/contrib","core/fix-headers","core/structure","w3c/informative","w3c/permalinks","core/id-headers","core/rdfa","w3c/aria","core/shiv","core/remove-respec","core/location-hash","ui/about-respec","ui/dfn-list","ui/save-html","ui/search-specref","w3c/linter"],function(e,t,n){var r=Array.from(arguments);e(function(){t.runAll(r).then(document.respecIsReady).then(n.show)["catch"](function(e){console.error(e),n.show()}),n.addCommand("Save Snapshot","ui/save-html","Ctrl+Shift+Alt+S"),n.addCommand("About ReSpec","ui/about-respec","Ctrl+Shift+Alt+A"),n.addCommand("Definition List","ui/dfn-list","Ctrl+Shift+Alt+D"),n.addCommand("Search Specref DB","ui/search-specref","Ctrl+Shift+Alt+space")})});
//# sourceMappingURL=profile-w3c-common.build.js.map
require(['profile-w3c-common']);