forked from WICG/media-source
-
Notifications
You must be signed in to change notification settings - Fork 0
/
respec-w3c-common.js
16 lines (16 loc) · 322 KB
/
respec-w3c-common.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/* ReSpec 3.2.97 - Robin Berjon, http://berjon.com/ (@robinberjon) */
/* Documentation: http://w3.org/respec/. */
/* See original source for licenses: https://github.com/darobin/respec. */
respecVersion = '3.2.97';
var requirejs,require,define;!function(Z){function H(e){return"[object Function]"===L.call(e)}function I(e){return"[object Array]"===L.call(e)}function y(e,t){if(e){var n;for(n=0;n<e.length&&(!e[n]||!t(e[n],n,e));n+=1);}}function M(e,t){if(e){var n;for(n=e.length-1;n>-1&&(!e[n]||!t(e[n],n,e));n-=1);}}function s(e,t){return ga.call(e,t)}function l(e,t){return s(e,t)&&e[t]}function F(e,t){for(var n in e)if(s(e,n)&&t(e[n],n))break}function Q(e,t,n,r){return t&&F(t,function(t,i){(n||!s(e,i))&&(r&&"string"!=typeof t?(e[i]||(e[i]={}),Q(e[i],t,n,r)):e[i]=t)}),e}function u(e,t){return function(){return t.apply(e,arguments)}}function aa(e){throw e}function ba(e){if(!e)return e;var t=Z;return y(e.split("."),function(e){t=t[e]}),t}function A(e,t,n,r){return t=Error(t+"\nhttp://requirejs.org/docs/errors.html#"+e),t.requireType=e,t.requireModules=r,n&&(t.originalError=n),t}function ha(e){function t(e,t,n){var r,i,a,s,o,c,u,d=t&&t.split("/");r=d;var p=S.map,f=p&&p["*"];if(e&&"."===e.charAt(0))if(t){for(r=l(S.pkgs,t)?d=[t]:d.slice(0,d.length-1),t=e=r.concat(e.split("/")),r=0;t[r];r+=1)if(i=t[r],"."===i)t.splice(r,1),r-=1;else if(".."===i){if(1===r&&(".."===t[2]||".."===t[0]))break;r>0&&(t.splice(r-1,2),r-=2)}r=l(S.pkgs,t=e[0]),e=e.join("/"),r&&e===t+"/"+r.main&&(e=t)}else 0===e.indexOf("./")&&(e=e.substring(2));if(n&&p&&(d||f)){for(t=e.split("/"),r=t.length;r>0;r-=1){if(a=t.slice(0,r).join("/"),d)for(i=d.length;i>0;i-=1)if((n=l(p,d.slice(0,i).join("/")))&&(n=l(n,a))){s=n,o=r;break}if(s)break;!c&&f&&l(f,a)&&(c=l(f,a),u=r)}!s&&c&&(s=c,o=u),s&&(t.splice(0,o,s),e=t.join("/"))}return e}function n(e){z&&y(document.getElementsByTagName("script"),function(t){return t.getAttribute("data-requiremodule")===e&&t.getAttribute("data-requirecontext")===k.contextName?(t.parentNode.removeChild(t),!0):void 0})}function r(e){var t=l(S.paths,e);return t&&I(t)&&1<t.length?(n(e),t.shift(),k.require.undef(e),k.require([e]),!0):void 0}function i(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 a(e,n,r,a){var s,o,c=null,u=n?n.name:null,d=e,p=!0,f="";return e||(p=!1,e="_@r"+(_+=1)),e=i(e),c=e[0],e=e[1],c&&(c=t(c,u,a),o=l($,c)),e&&(c?f=o&&o.normalize?o.normalize(e,function(e){return t(e,u,a)}):t(e,u,a):(f=t(e,u,a),e=i(f),c=e[0],f=e[1],r=!0,s=k.nameToUrl(f))),r=!c||o||r?"":"_unnormalized"+(q+=1),{prefix:c,name:f,parentMap:n,unnormalized:!!r,url:s,originalName:d,isDefine:p,id:(c?c+"!"+f:f)+r}}function o(e){var t=e.id,n=l(E,t);return n||(n=E[t]=new k.Module(e)),n}function c(e,t,n){var r=e.id,i=l(E,r);!s($,r)||i&&!i.defineEmitComplete?(i=o(e),i.error&&"error"===t?n(i.error):i.on(t,n)):"defined"===t&&n($[r])}function d(e,t){var n=e.requireModules,r=!1;t?t(e):(y(n,function(t){(t=l(E,t))&&(t.error=e,t.events.error&&(r=!0,t.emit("error",e)))}),r||j.onError(e))}function p(){R.length&&(ia.apply(L,[L.length-1,0].concat(R)),R=[])}function f(e){delete E[e],delete N[e]}function h(e,t,n){var r=e.map.id;e.error?e.emit("error",e.error):(t[r]=!0,y(e.depMaps,function(r,i){var a=r.id,s=l(E,a);s&&!e.depMatched[i]&&!n[a]&&(l(t,a)?(e.defineDep(i,$[a]),e.check()):h(s,t,n))}),n[r]=!0)}function m(){var e,t,i,a,s=(i=1e3*S.waitSeconds)&&k.startTime+i<(new Date).getTime(),o=[],l=[],c=!1,u=!0;if(!w){if(w=!0,F(N,function(i){if(e=i.map,t=e.id,i.enabled&&(e.isDefine||l.push(i),!i.error))if(!i.inited&&s)r(t)?c=a=!0:(o.push(t),n(t));else if(!i.inited&&i.fetched&&e.isDefine&&(c=!0,!e.prefix))return u=!1}),s&&o.length)return i=A("timeout","Load timeout for modules: "+o,null,o),i.contextName=k.contextName,d(i);u&&y(l,function(e){h(e,{},{})}),s&&!a||!c||!z&&!da||T||(T=setTimeout(function(){T=0,m()},50)),w=!1}}function g(e){s($,e[0])||o(a(e[0],null,!0)).init(e[1],e[2])}function b(e){var e=e.currentTarget||e.srcElement,t=k.onScriptLoad;return e.detachEvent&&!W?e.detachEvent("onreadystatechange",t):e.removeEventListener("load",t,!1),t=k.onScriptError,(!e.detachEvent||W)&&e.removeEventListener("error",t,!1),{node:e,id:e&&e.getAttribute("data-requiremodule")}}function v(){var e;for(p();L.length;){if(e=L.shift(),null===e[0])return d(A("mismatch","Mismatched anonymous define() module: "+e[e.length-1]));g(e)}}var w,x,k,C,T,S={waitSeconds:7,baseUrl:"./",paths:{},pkgs:{},shim:{},config:{}},E={},N={},D={},L=[],$={},M={},_=1,q=1;return C={require:function(e){return e.require?e.require:e.require=k.makeRequire(e.map)},exports:function(e){return e.usingExports=!0,e.map.isDefine?e.exports?e.exports:e.exports=$[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(){var t=l(S.pkgs,e.map.id);return(t?l(S.config,e.map.id+"/"+t.main):l(S.config,e.map.id))||{}},exports:$[e.map.id]}}},x=function(e){this.events=l(D,e.id)||{},this.map=e,this.shim=l(S.shim,e.id),this.depExports=[],this.depMaps=[],this.depMatched=[],this.pluginMaps={},this.depCount=0},x.prototype={init:function(e,t,n,r){r=r||{},this.inited||(this.factory=t,n?this.on("error",n):this.events.error&&(n=u(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,k.startTime=(new Date).getTime();var e=this.map;if(!this.shim)return e.prefix?this.callPlugin():this.load();k.makeRequire(this.map,{enableBuildCallback:!0})(this.shim.deps||[],u(this,function(){return e.prefix?this.callPlugin():this.load()}))}},load:function(){var e=this.map.url;M[e]||(M[e]=!0,k.load(this.map.id,e))},check:function(){if(this.enabled&&!this.enabling){var e,t,n=this.map.id;t=this.depExports;var r=this.exports,i=this.factory;if(this.inited){if(this.error)this.emit("error",this.error);else if(!this.defining){if(this.defining=!0,1>this.depCount&&!this.defined){if(H(i)){if(this.events.error&&this.map.isDefine||j.onError!==aa)try{r=k.execCb(n,i,t,r)}catch(a){e=a}else r=k.execCb(n,i,t,r);if(this.map.isDefine&&((t=this.module)&&void 0!==t.exports&&t.exports!==this.exports?r=t.exports:void 0===r&&this.usingExports&&(r=this.exports)),e)return e.requireMap=this.map,e.requireModules=this.map.isDefine?[this.map.id]:null,e.requireType=this.map.isDefine?"define":"require",d(this.error=e)}else r=i;this.exports=r,this.map.isDefine&&!this.ignore&&($[n]=r,j.onResourceLoad)&&j.onResourceLoad(k,this.map,this.depMaps),f(n),this.defined=!0}this.defining=!1,this.defined&&!this.defineEmitted&&(this.defineEmitted=!0,this.emit("defined",this.exports),this.defineEmitComplete=!0)}}else this.fetch()}},callPlugin:function(){var e=this.map,n=e.id,r=a(e.prefix);this.depMaps.push(r),c(r,"defined",u(this,function(r){var i,p;p=this.map.name;var h=this.map.parentMap?this.map.parentMap.name:null,m=k.makeRequire(e.parentMap,{enableBuildCallback:!0});this.map.unnormalized?(r.normalize&&(p=r.normalize(p,function(e){return t(e,h,!0)})||""),r=a(e.prefix+"!"+p,this.map.parentMap),c(r,"defined",u(this,function(e){this.init([],function(){return e},null,{enabled:!0,ignore:!0})})),(p=l(E,r.id))&&(this.depMaps.push(r),this.events.error&&p.on("error",u(this,function(e){this.emit("error",e)})),p.enable())):(i=u(this,function(e){this.init([],function(){return e},null,{enabled:!0})}),i.error=u(this,function(e){this.inited=!0,this.error=e,e.requireModules=[n],F(E,function(e){0===e.map.id.indexOf(n+"_unnormalized")&&f(e.map.id)}),d(e)}),i.fromText=u(this,function(t,r){var l=e.name,c=a(l),u=O;r&&(t=r),u&&(O=!1),o(c),s(S.config,n)&&(S.config[l]=S.config[n]);try{j.exec(t)}catch(p){return d(A("fromtexteval","fromText eval for "+n+" failed: "+p,p,[n]))}u&&(O=!0),this.depMaps.push(c),k.completeLoad(l),m([l],i)}),r.load(e.name,m,i,S))})),k.enable(r,this),this.pluginMaps[r.id]=r},enable:function(){N[this.map.id]=this,this.enabling=this.enabled=!0,y(this.depMaps,u(this,function(e,t){var n,r;if("string"==typeof e){if(e=a(e,this.map.isDefine?this.map:this.map.parentMap,!1,!this.skipMap),this.depMaps[t]=e,n=l(C,e.id))return this.depExports[t]=n(this),void 0;this.depCount+=1,c(e,"defined",u(this,function(e){this.defineDep(t,e),this.check()})),this.errback&&c(e,"error",u(this,this.errback))}n=e.id,r=E[n],!s(C,n)&&r&&!r.enabled&&k.enable(e,this)})),F(this.pluginMaps,u(this,function(e){var t=l(E,e.id);t&&!t.enabled&&k.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){y(this.events[e],function(e){e(t)}),"error"===e&&delete this.events[e]}},k={config:S,contextName:e,registry:E,defined:$,urlFetched:M,defQueue:L,Module:x,makeModuleMap:a,nextTick:j.nextTick,onError:d,configure:function(e){e.baseUrl&&"/"!==e.baseUrl.charAt(e.baseUrl.length-1)&&(e.baseUrl+="/");var t=S.pkgs,n=S.shim,r={paths:!0,config:!0,map:!0};F(e,function(e,t){r[t]?"map"===t?(S.map||(S.map={}),Q(S[t],e,!0,!0)):Q(S[t],e,!0):S[t]=e}),e.shim&&(F(e.shim,function(e,t){I(e)&&(e={deps:e}),!e.exports&&!e.init||e.exportsFn||(e.exportsFn=k.makeShimExports(e)),n[t]=e}),S.shim=n),e.packages&&(y(e.packages,function(e){e="string"==typeof e?{name:e}:e,t[e.name]={name:e.name,location:e.location||e.name,main:(e.main||"main").replace(ja,"").replace(ea,"")}}),S.pkgs=t),F(E,function(e,t){!e.inited&&!e.map.unnormalized&&(e.map=a(t))}),(e.deps||e.callback)&&k.require(e.deps||[],e.callback)},makeShimExports:function(e){return function(){var t;return e.init&&(t=e.init.apply(Z,arguments)),t||e.exports&&ba(e.exports)}},makeRequire:function(n,r){function i(t,l,c){var u,p;return r.enableBuildCallback&&l&&H(l)&&(l.__requireJsBuild=!0),"string"==typeof t?H(l)?d(A("requireargs","Invalid require call"),c):n&&s(C,t)?C[t](E[n.id]):j.get?j.get(k,t,n,i):(u=a(t,n,!1,!0),u=u.id,s($,u)?$[u]:d(A("notloaded",'Module name "'+u+'" has not been loaded yet for context: '+e+(n?"":". Use require([])")))):(v(),k.nextTick(function(){v(),p=o(a(null,n)),p.skipMap=r.skipMap,p.init(t,l,c,{enabled:!0}),m()}),i)}return r=r||{},Q(i,{isBrowser:z,toUrl:function(e){var r,i=e.lastIndexOf("."),a=e.split("/")[0];return-1!==i&&("."!==a&&".."!==a||i>1)&&(r=e.substring(i,e.length),e=e.substring(0,i)),k.nameToUrl(t(e,n&&n.id,!0),r,!0)},defined:function(e){return s($,a(e,n,!1,!0).id)},specified:function(e){return e=a(e,n,!1,!0).id,s($,e)||s(E,e)}}),n||(i.undef=function(e){p();var t=a(e,n,!0),r=l(E,e);delete $[e],delete M[t.url],delete D[e],r&&(r.events.defined&&(D[e]=r.events),f(e))}),i},enable:function(e){l(E,e.id)&&o(e).enable()},completeLoad:function(e){var t,n,i=l(S.shim,e)||{},a=i.exports;for(p();L.length;){if(n=L.shift(),null===n[0]){if(n[0]=e,t)break;t=!0}else n[0]===e&&(t=!0);g(n)}if(n=l(E,e),!t&&!s($,e)&&n&&!n.inited){if(S.enforceDefine&&(!a||!ba(a)))return r(e)?void 0:d(A("nodefine","No define call for "+e,null,[e]));g([e,i.deps||[],i.exportsFn])}m()},nameToUrl:function(e,t,n){var r,i,a,s,o,c;if(j.jsExtRegExp.test(e))s=e+(t||"");else{for(r=S.paths,i=S.pkgs,s=e.split("/"),o=s.length;o>0;o-=1){if(c=s.slice(0,o).join("/"),a=l(i,c),c=l(r,c)){I(c)&&(c=c[0]),s.splice(0,o,c);break}if(a){e=e===a.name?a.location+"/"+a.main:a.location,s.splice(0,o,e);break}}s=s.join("/"),s+=t||(/\?/.test(s)||n?"":".js"),s=("/"===s.charAt(0)||s.match(/^[\w\+\.\-]+:/)?"":S.baseUrl)+s}return S.urlArgs?s+((-1===s.indexOf("?")?"?":"&")+S.urlArgs):s},load:function(e,t){j.load(k,e,t)},execCb:function(e,t,n,r){return t.apply(r,n)},onScriptLoad:function(e){("load"===e.type||ka.test((e.currentTarget||e.srcElement).readyState))&&(P=null,e=b(e),k.completeLoad(e.id))},onScriptError:function(e){var t=b(e);return r(t.id)?void 0:d(A("scripterror","Script error for: "+t.id,e,[t.id]))}},k.require=k.makeRequire(),k}var j,w,x,C,J,D,P,K,q,fa,la=/(\/\*([\s\S]*?)\*\/|([^:]|^)\/\/(.*)$)/gm,ma=/[^.]\s*require\s*\(\s*["']([^'"\s]+)["']\s*\)/g,ea=/\.js$/,ja=/^\.\//;w=Object.prototype;var L=w.toString,ga=w.hasOwnProperty,ia=Array.prototype.splice,z=!("undefined"==typeof window||!navigator||!window.document),da=!z&&"undefined"!=typeof importScripts,ka=z&&"PLAYSTATION 3"===navigator.platform?/^complete$/:/^(complete|loaded)$/,W="undefined"!=typeof opera&&"[object Opera]"===opera.toString(),E={},t={},R=[],O=!1;if("undefined"==typeof define){if("undefined"!=typeof requirejs){if(H(requirejs))return;t=requirejs,requirejs=void 0}"undefined"!=typeof require&&!H(require)&&(t=require,require=void 0),j=requirejs=function(e,t,n,r){var i,a="_";return!I(e)&&"string"!=typeof e&&(i=e,I(t)?(e=t,t=n,n=r):e=[]),i&&i.context&&(a=i.context),(r=l(E,a))||(r=E[a]=j.s.newContext(a)),i&&r.configure(i),r.require(e,t,n)},j.config=function(e){return j(e)},j.nextTick="undefined"!=typeof setTimeout?function(e){setTimeout(e,4)}:function(e){e()},require||(require=j),j.version="2.1.8",j.jsExtRegExp=/^\/|:|\?|\.js$/,j.isBrowser=z,w=j.s={contexts:E,newContext:ha},j({}),y(["toUrl","undef","defined","specified"],function(e){j[e]=function(){var t=E._;return t.require[e].apply(t,arguments)}}),z&&(x=w.head=document.getElementsByTagName("head")[0],C=document.getElementsByTagName("base")[0])&&(x=w.head=C.parentNode),j.onError=aa,j.createNode=function(e){var t=e.xhtml?document.createElementNS("http://www.w3.org/1999/xhtml","html:script"):document.createElement("script");return t.type=e.scriptType||"text/javascript",t.charset="utf-8",t.async=!0,t},j.load=function(e,t,n){var r=e&&e.config||{};if(z)return r=j.createNode(r,t,n),r.setAttribute("data-requirecontext",e.contextName),r.setAttribute("data-requiremodule",t),!r.attachEvent||r.attachEvent.toString&&0>r.attachEvent.toString().indexOf("[native code")||W?(r.addEventListener("load",e.onScriptLoad,!1),r.addEventListener("error",e.onScriptError,!1)):(O=!0,r.attachEvent("onreadystatechange",e.onScriptLoad)),r.src=n,K=r,C?x.insertBefore(r,C):x.appendChild(r),K=null,r;if(da)try{importScripts(n),e.completeLoad(t)}catch(i){e.onError(A("importscripts","importScripts failed for "+t+" at "+n,i,[t]))}},z&&M(document.getElementsByTagName("script"),function(e){return x||(x=e.parentNode),(J=e.getAttribute("data-main"))?(q=J,t.baseUrl||(D=q.split("/"),q=D.pop(),fa=D.length?D.join("/")+"/":"./",t.baseUrl=fa),q=q.replace(ea,""),j.jsExtRegExp.test(q)&&(q=J),t.deps=t.deps?t.deps.concat(q):[q],!0):void 0}),define=function(e,t,n){var r,i;"string"!=typeof e&&(n=t,t=e,e=null),I(t)||(n=t,t=null),!t&&H(n)&&(t=[],n.length&&(n.toString().replace(la,"").replace(ma,function(e,n){t.push(n)}),t=(1===n.length?["require"]:["require","exports","module"]).concat(t))),O&&((r=K)||(P&&"interactive"===P.readyState||M(document.getElementsByTagName("script"),function(e){return"interactive"===e.readyState?P=e:void 0}),r=P),r&&(e||(e=r.getAttribute("data-requiremodule")),i=E[r.getAttribute("data-requirecontext")])),(i?i.defQueue:R).push([e,t,n])},define.amd={jQuery:!0},j.exec=function(b){return eval(b)},j(t)}}(this),define("requireLib",function(){}),define("domReady",[],function(){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(d){}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}),!function(e,t){"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){function n(e){var t="length"in e&&e.length,n=Q.type(e);return"function"===n||Q.isWindow(e)?!1:1===e.nodeType&&t?!0:"array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e}function r(e,t,n){if(Q.isFunction(t))return Q.grep(e,function(e,r){return!!t.call(e,r,e)!==n});if(t.nodeType)return Q.grep(e,function(e){return e===t!==n});if("string"==typeof t){if(ot.test(t))return Q.filter(t,e,n);t=Q.filter(t,e)}return Q.grep(e,function(e){return G.call(t,e)>=0!==n})}function i(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}function a(e){var t=ht[e]={};return Q.each(e.match(ft)||[],function(e,n){t[n]=!0}),t}function s(){J.removeEventListener("DOMContentLoaded",s,!1),e.removeEventListener("load",s,!1),Q.ready()}function o(){Object.defineProperty(this.cache={},0,{get:function(){return{}}}),this.expando=Q.expando+o.uid++}function l(e,t,n){var r;if(void 0===n&&1===e.nodeType)if(r="data-"+t.replace(wt,"-$1").toLowerCase(),n=e.getAttribute(r),"string"==typeof n){try{n="true"===n?!0:"false"===n?!1:"null"===n?null:+n+""===n?+n:yt.test(n)?Q.parseJSON(n):n}catch(i){}vt.set(e,t,n)}else n=void 0;return n}function c(){return!0}function u(){return!1}function d(){try{return J.activeElement}catch(e){}}function p(e,t){return Q.nodeName(e,"table")&&Q.nodeName(11!==t.nodeType?t:t.firstChild,"tr")?e.getElementsByTagName("tbody")[0]||e.appendChild(e.ownerDocument.createElement("tbody")):e}function f(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function h(e){var t=$t.exec(e.type);return t?e.type=t[1]:e.removeAttribute("type"),e}function m(e,t){for(var n=0,r=e.length;r>n;n++)bt.set(e[n],"globalEval",!t||bt.get(t[n],"globalEval"))}function g(e,t){var n,r,i,a,s,o,l,c;if(1===t.nodeType){if(bt.hasData(e)&&(a=bt.access(e),s=bt.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++)Q.event.add(t,i,c[i][n])}vt.hasData(e)&&(o=vt.access(e),l=Q.extend({},o),vt.set(t,l))}}function b(e,t){var n=e.getElementsByTagName?e.getElementsByTagName(t||"*"):e.querySelectorAll?e.querySelectorAll(t||"*"):[];return void 0===t||t&&Q.nodeName(e,t)?Q.merge([e],n):n}function v(e,t){var n=t.nodeName.toLowerCase();"input"===n&&Tt.test(e.type)?t.checked=e.checked:("input"===n||"textarea"===n)&&(t.defaultValue=e.defaultValue)}function y(t,n){var r,i=Q(n.createElement(t)).appendTo(n.body),a=e.getDefaultComputedStyle&&(r=e.getDefaultComputedStyle(i[0]))?r.display:Q.css(i[0],"display");return i.detach(),a}function w(e){var t=J,n=Ft[e];return n||(n=y(e,t),"none"!==n&&n||(_t=(_t||Q("<iframe frameborder='0' width='0' height='0'/>")).appendTo(t.documentElement),t=_t[0].contentDocument,t.write(),t.close(),n=y(e,t),_t.detach()),Ft[e]=n),n}function x(e,t,n){var r,i,a,s,o=e.style;return n=n||Bt(e),n&&(s=n.getPropertyValue(t)||n[t]),n&&(""!==s||Q.contains(e.ownerDocument,e)||(s=Q.style(e,t)),Wt.test(s)&&qt.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 k(e,t){return{get:function(){return e()?void delete this.get:(this.get=t).apply(this,arguments)}}}function C(e,t){if(t in e)return t;for(var n=t[0].toUpperCase()+t.slice(1),r=t,i=Yt.length;i--;)if(t=Yt[i]+n,t in e)return t;return r}function T(e,t,n){var r=zt.exec(t);return r?Math.max(0,r[1]-(n||0))+(r[2]||"px"):t}function S(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+=Q.css(e,n+kt[a],!0,i)),r?("content"===n&&(s-=Q.css(e,"padding"+kt[a],!0,i)),"margin"!==n&&(s-=Q.css(e,"border"+kt[a]+"Width",!0,i))):(s+=Q.css(e,"padding"+kt[a],!0,i),"padding"!==n&&(s+=Q.css(e,"border"+kt[a]+"Width",!0,i)));return s}function E(e,t,n){var r=!0,i="width"===t?e.offsetWidth:e.offsetHeight,a=Bt(e),s="border-box"===Q.css(e,"boxSizing",!1,a);if(0>=i||null==i){if(i=x(e,t,a),(0>i||null==i)&&(i=e.style[t]),Wt.test(i))return i;r=s&&(K.boxSizingReliable()||i===e.style[t]),i=parseFloat(i)||0}return i+S(e,t,n||(s?"border":"content"),r,a)+"px"}function N(e,t){for(var n,r,i,a=[],s=0,o=e.length;o>s;s++)r=e[s],r.style&&(a[s]=bt.get(r,"olddisplay"),n=r.style.display,t?(a[s]||"none"!==n||(r.style.display=""),""===r.style.display&&Ct(r)&&(a[s]=bt.access(r,"olddisplay",w(r.nodeName)))):(i=Ct(r),"none"===n&&i||bt.set(r,"olddisplay",i?n:Q.css(r,"display"))));for(s=0;o>s;s++)r=e[s],r.style&&(t&&"none"!==r.style.display&&""!==r.style.display||(r.style.display=t?a[s]||"":"none"));return e}function D(e,t,n,r,i){return new D.prototype.init(e,t,n,r,i)}function A(){return setTimeout(function(){Kt=void 0}),Kt=Q.now()}function j(e,t){var n,r=0,i={height:e};for(t=t?1:0;4>r;r+=2-t)n=kt[r],i["margin"+n]=i["padding"+n]=e;return t&&(i.opacity=i.width=e),i}function I(e,t,n){for(var r,i=(nn[t]||[]).concat(nn["*"]),a=0,s=i.length;s>a;a++)if(r=i[a].call(n,t,e))return r}function L(e,t,n){var r,i,a,s,o,l,c,u,d=this,p={},f=e.style,h=e.nodeType&&Ct(e),m=bt.get(e,"fxshow");n.queue||(o=Q._queueHooks(e,"fx"),null==o.unqueued&&(o.unqueued=0,l=o.empty.fire,o.empty.fire=function(){o.unqueued||l()}),o.unqueued++,d.always(function(){d.always(function(){o.unqueued--,Q.queue(e,"fx").length||o.empty.fire()})})),1===e.nodeType&&("height"in t||"width"in t)&&(n.overflow=[f.overflow,f.overflowX,f.overflowY],c=Q.css(e,"display"),u="none"===c?bt.get(e,"olddisplay")||w(e.nodeName):c,"inline"===u&&"none"===Q.css(e,"float")&&(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]}));for(r in t)if(i=t[r],Zt.exec(i)){if(delete t[r],a=a||"toggle"===i,i===(h?"hide":"show")){if("show"!==i||!m||void 0===m[r])continue;h=!0}p[r]=m&&m[r]||Q.style(e,r)}else c=void 0;if(Q.isEmptyObject(p))"inline"===("none"===c?w(e.nodeName):c)&&(f.display=c);else{m?"hidden"in m&&(h=m.hidden):m=bt.access(e,"fxshow",{}),a&&(m.hidden=!h),h?Q(e).show():d.done(function(){Q(e).hide()}),d.done(function(){var t;bt.remove(e,"fxshow");for(t in p)Q.style(e,t,p[t])});for(r in p)s=I(h?m[r]:0,r,d),r in m||(m[r]=s.start,h&&(s.end=s.start,s.start="width"===r||"height"===r?1:0))}}function R(e,t){var n,r,i,a,s;for(n in e)if(r=Q.camelCase(n),i=t[r],a=e[n],Q.isArray(a)&&(i=a[1],a=e[n]=a[0]),n!==r&&(e[r]=a,delete e[n]),s=Q.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 P(e,t,n){var r,i,a=0,s=tn.length,o=Q.Deferred().always(function(){delete l.elem}),l=function(){if(i)return!1;for(var t=Kt||A(),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:Q.extend({},t),opts:Q.extend(!0,{specialEasing:{}},n),originalProperties:t,originalOptions:n,startTime:Kt||A(),duration:n.duration,tweens:[],createTween:function(t,n){var r=Q.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.resolveWith(e,[c,t]):o.rejectWith(e,[c,t]),this}}),u=c.props;for(R(u,c.opts.specialEasing);s>a;a++)if(r=tn[a].call(c,e,u,c.opts))return r;return Q.map(u,I,c),Q.isFunction(c.opts.start)&&c.opts.start.call(e,c),Q.fx.timer(Q.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 H(e){return function(t,n){"string"!=typeof t&&(n=t,t="*");var r,i=0,a=t.toLowerCase().match(ft)||[];if(Q.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 $(e,t,n,r){function i(o){var l;return a[o]=!0,Q.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===wn;return i(t.dataTypes[0])||!a["*"]&&i("*")}function M(e,t){var n,r,i=Q.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((i[n]?e:r||(r={}))[n]=t[n]);return r&&Q.extend(!0,e,r),e}function O(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 _(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(d){return{state:"parsererror",error:s?d:"No conversion from "+l+" to "+a}}}return{state:"success",data:t}}function F(e,t,n,r){var i;if(Q.isArray(t))Q.each(t,function(t,i){n||Sn.test(e)?r(e,i):F(e+"["+("object"==typeof i?t:"")+"]",i,n,r)});else if(n||"object"!==Q.type(t))r(e,t);else for(i in t)F(e+"["+i+"]",t[i],n,r)}function q(e){return Q.isWindow(e)?e:9===e.nodeType&&e.defaultView}var W=[],B=W.slice,U=W.concat,z=W.push,G=W.indexOf,V={},X=V.toString,Y=V.hasOwnProperty,K={},J=e.document,Z="2.1.4",Q=function(e,t){return new Q.fn.init(e,t)},et=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,tt=/^-ms-/,nt=/-([\da-z])/gi,rt=function(e,t){return t.toUpperCase()};Q.fn=Q.prototype={jquery:Z,constructor:Q,selector:"",length:0,toArray:function(){return B.call(this)},get:function(e){return null!=e?0>e?this[e+this.length]:this[e]:B.call(this)},pushStack:function(e){var t=Q.merge(this.constructor(),e);return t.prevObject=this,t.context=this.context,t},each:function(e,t){return Q.each(this,e,t)},map:function(e){return this.pushStack(Q.map(this,function(t,n){return e.call(t,n,t)}))},slice:function(){return this.pushStack(B.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(null)},push:z,sort:W.sort,splice:W.splice},Q.extend=Q.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||Q.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&&(Q.isPlainObject(r)||(i=Q.isArray(r)))?(i?(i=!1,a=n&&Q.isArray(n)?n:[]):a=n&&Q.isPlainObject(n)?n:{},s[t]=Q.extend(c,a,r)):void 0!==r&&(s[t]=r));return s},Q.extend({expando:"jQuery"+(Z+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isFunction:function(e){return"function"===Q.type(e)},isArray:Array.isArray,isWindow:function(e){return null!=e&&e===e.window},isNumeric:function(e){return!Q.isArray(e)&&e-parseFloat(e)+1>=0},isPlainObject:function(e){return"object"!==Q.type(e)||e.nodeType||Q.isWindow(e)?!1:e.constructor&&!Y.call(e.constructor.prototype,"isPrototypeOf")?!1:!0},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?V[X.call(e)]||"object":typeof e},globalEval:function(e){var t,n=eval;e=Q.trim(e),e&&(1===e.indexOf("use strict")?(t=J.createElement("script"),t.text=e,J.head.appendChild(t).parentNode.removeChild(t)):n(e))},camelCase:function(e){return e.replace(tt,"ms-").replace(nt,rt)},nodeName:function(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()},each:function(e,t,r){var i,a=0,s=e.length,o=n(e);if(r){if(o)for(;s>a&&(i=t.apply(e[a],r),i!==!1);a++);else for(a in e)if(i=t.apply(e[a],r),i===!1)break}else if(o)for(;s>a&&(i=t.call(e[a],a,e[a]),i!==!1);a++);else for(a in e)if(i=t.call(e[a],a,e[a]),i===!1)break;return e},trim:function(e){return null==e?"":(e+"").replace(et,"")},makeArray:function(e,t){var r=t||[];return null!=e&&(n(Object(e))?Q.merge(r,"string"==typeof e?[e]:e):z.call(r,e)),r},inArray:function(e,t,n){return null==t?-1:G.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,r){var i,a=0,s=e.length,o=n(e),l=[];if(o)for(;s>a;a++)i=t(e[a],a,r),null!=i&&l.push(i);else for(a in e)i=t(e[a],a,r),null!=i&&l.push(i);return U.apply([],l)},guid:1,proxy:function(e,t){var n,r,i;return"string"==typeof t&&(n=e[t],t=e,e=n),Q.isFunction(e)?(r=B.call(arguments,2),i=function(){return e.apply(t||this,r.concat(B.call(arguments)))},i.guid=e.guid=e.guid||Q.guid++,i):void 0},now:Date.now,support:K}),Q.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(e,t){V["[object "+t+"]"]=t.toLowerCase()});var it=function(e){function t(e,t,n,r){var i,a,s,o,l,c,d,f,h,m;if((t?t.ownerDocument||t:F)!==L&&I(t),t=t||L,n=n||[],o=t.nodeType,"string"!=typeof e||!e||1!==o&&9!==o&&11!==o)return n;if(!r&&P){if(11!==o&&(i=vt.exec(e)))if(s=i[1]){if(9===o){if(a=t.getElementById(s),!a||!a.parentNode)return n;if(a.id===s)return n.push(a),n}else if(t.ownerDocument&&(a=t.ownerDocument.getElementById(s))&&O(t,a)&&a.id===s)return n.push(a),n}else{if(i[2])return Z.apply(n,t.getElementsByTagName(e)),n;if((s=i[3])&&x.getElementsByClassName)return Z.apply(n,t.getElementsByClassName(s)),n}if(x.qsa&&(!H||!H.test(e))){if(f=d=_,h=t,m=1!==o&&e,1===o&&"object"!==t.nodeName.toLowerCase()){for(c=S(e),(d=t.getAttribute("id"))?f=d.replace(wt,"\\$&"):t.setAttribute("id",f),f="[id='"+f+"'] ",l=c.length;l--;)c[l]=f+p(c[l]);h=yt.test(e)&&u(t.parentNode)||t,m=c.join(",")}if(m)try{return Z.apply(n,h.querySelectorAll(m)),n}catch(g){}finally{d||t.removeAttribute("id")}}}return N(e.replace(lt,"$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[_]=!0,e}function i(e){var t=L.createElement("div");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=e.length;r--;)k.attrHandle[n[r]]=t}function s(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&(~t.sourceIndex||V)-(~e.sourceIndex||V);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 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 u(e){return e&&"undefined"!=typeof e.getElementsByTagName&&e}function d(){}function p(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=n&&"parentNode"===r,a=W++;return t.first?function(t,n,a){for(;t=t[r];)if(1===t.nodeType||i)return e(t,n,a)}:function(t,n,s){var o,l,c=[q,a];if(s){for(;t=t[r];)if((1===t.nodeType||i)&&e(t,n,s))return!0}else for(;t=t[r];)if(1===t.nodeType||i){if(l=t[_]||(t[_]={}),(o=l[r])&&o[0]===q&&o[1]===a)return c[2]=o[2];if(l[r]=c,c[2]=e(t,n,s))return!0}}}function h(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 m(e,n,r){for(var i=0,a=n.length;a>i;i++)t(e,n[i],r);return r}function g(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 b(e,t,n,i,a,s){return i&&!i[_]&&(i=b(i)),a&&!a[_]&&(a=b(a,s)),r(function(r,s,o,l){var c,u,d,p=[],f=[],h=s.length,b=r||m(t||"*",o.nodeType?[o]:o,[]),v=!e||!r&&t?b:g(b,p,e,o,l),y=n?a||(r?e:h||i)?[]:s:v;if(n&&n(v,y,o,l),i)for(c=g(y,f),i(c,[],o,l),u=c.length;u--;)(d=c[u])&&(y[f[u]]=!(v[f[u]]=d));if(r){if(a||e){if(a){for(c=[],u=y.length;u--;)(d=y[u])&&c.push(v[u]=d);a(null,y=[],c,l)}for(u=y.length;u--;)(d=y[u])&&(c=a?et(r,d):p[u])>-1&&(r[c]=!(s[c]=d))}}else y=g(y===s?y.splice(h,y.length):y),a?a(null,s,y,l):Z.apply(s,y)})}function v(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 et(t,e)>-1},s,!0),u=[function(e,n,r){var i=!a&&(r||n!==D)||((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(h(u),n)];else{if(n=k.filter[e[o].type].apply(null,e[o].matches),n[_]){for(r=++o;i>r&&!k.relative[e[r].type];r++);return b(o>1&&h(u),o>1&&p(e.slice(0,o-1).concat({value:" "===e[o-2].type?"*":""})).replace(lt,"$1"),n,r>o&&v(e.slice(o,r)),i>r&&v(e=e.slice(r)),i>r&&p(e))}u.push(n)}return h(u)}function y(e,n){var i=n.length>0,a=e.length>0,s=function(r,s,o,l,c){var u,d,p,f=0,h="0",m=r&&[],b=[],v=D,y=r||a&&k.find.TAG("*",c),w=q+=null==v?1:Math.random()||.1,x=y.length;for(c&&(D=s!==L&&s);h!==x&&null!=(u=y[h]);h++){if(a&&u){for(d=0;p=e[d++];)if(p(u,s,o)){l.push(u);break}c&&(q=w)}i&&((u=!p&&u)&&f--,r&&m.push(u))}if(f+=h,i&&h!==f){for(d=0;p=n[d++];)p(m,b,s,o);if(r){if(f>0)for(;h--;)m[h]||b[h]||(b[h]=K.call(l));b=g(b)}Z.apply(l,b),c&&!r&&b.length>0&&f+n.length>1&&t.uniqueSort(l)}return c&&(q=w,D=v),m};return i?r(s):s}var w,x,k,C,T,S,E,N,D,A,j,I,L,R,P,H,$,M,O,_="sizzle"+1*new Date,F=e.document,q=0,W=0,B=n(),U=n(),z=n(),G=function(e,t){return e===t&&(j=!0),0},V=1<<31,X={}.hasOwnProperty,Y=[],K=Y.pop,J=Y.push,Z=Y.push,Q=Y.slice,et=function(e,t){for(var n=0,r=e.length;r>n;n++)if(e[n]===t)return n;return-1},tt="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",nt="[\\x20\\t\\r\\n\\f]",rt="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",it=rt.replace("w","w#"),at="\\["+nt+"*("+rt+")(?:"+nt+"*([*^$|!~]?=)"+nt+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+it+"))|)"+nt+"*\\]",st=":("+rt+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+at+")*)|.*)\\)|)",ot=new RegExp(nt+"+","g"),lt=new RegExp("^"+nt+"+|((?:^|[^\\\\])(?:\\\\.)*)"+nt+"+$","g"),ct=new RegExp("^"+nt+"*,"+nt+"*"),ut=new RegExp("^"+nt+"*([>+~]|"+nt+")"+nt+"*"),dt=new RegExp("="+nt+"*([^\\]'\"]*?)"+nt+"*\\]","g"),pt=new RegExp(st),ft=new RegExp("^"+it+"$"),ht={ID:new RegExp("^#("+rt+")"),CLASS:new RegExp("^\\.("+rt+")"),TAG:new RegExp("^("+rt.replace("w","w*")+")"),ATTR:new RegExp("^"+at),PSEUDO:new RegExp("^"+st),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+nt+"*(even|odd|(([+-]|)(\\d*)n|)"+nt+"*(?:([+-]|)"+nt+"*(\\d+)|))"+nt+"*\\)|)","i"),bool:new RegExp("^(?:"+tt+")$","i"),needsContext:new RegExp("^"+nt+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+nt+"*((?:-\\d)?\\d*)"+nt+"*\\)|)(?=[^-]|$)","i")},mt=/^(?:input|select|textarea|button)$/i,gt=/^h\d$/i,bt=/^[^{]+\{\s*\[native \w/,vt=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,yt=/[+~]/,wt=/'|\\/g,xt=new RegExp("\\\\([\\da-f]{1,6}"+nt+"?|("+nt+")|.)","ig"),kt=function(e,t,n){var r="0x"+t-65536;return r!==r||n?t:0>r?String.fromCharCode(r+65536):String.fromCharCode(55296|r>>10,56320|1023&r)},Ct=function(){I()};try{Z.apply(Y=Q.call(F.childNodes),F.childNodes),Y[F.childNodes.length].nodeType}catch(Tt){Z={apply:Y.length?function(e,t){J.apply(e,Q.call(t))}:function(e,t){for(var n=e.length,r=0;e[n++]=t[r++];);e.length=n-1}}}x=t.support={},T=t.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return t?"HTML"!==t.nodeName:!1},I=t.setDocument=function(e){var t,n,r=e?e.ownerDocument||e:F;return r!==L&&9===r.nodeType&&r.documentElement?(L=r,R=r.documentElement,n=r.defaultView,n&&n!==n.top&&(n.addEventListener?n.addEventListener("unload",Ct,!1):n.attachEvent&&n.attachEvent("onunload",Ct)),P=!T(r),x.attributes=i(function(e){return e.className="i",!e.getAttribute("className")}),x.getElementsByTagName=i(function(e){return e.appendChild(r.createComment("")),!e.getElementsByTagName("*").length}),x.getElementsByClassName=bt.test(r.getElementsByClassName),x.getById=i(function(e){return R.appendChild(e).id=_,!r.getElementsByName||!r.getElementsByName(_).length}),x.getById?(k.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&P){var n=t.getElementById(e);return n&&n.parentNode?[n]:[]}},k.filter.ID=function(e){var t=e.replace(xt,kt);return function(e){return e.getAttribute("id")===t}}):(delete k.find.ID,k.filter.ID=function(e){var t=e.replace(xt,kt);return function(e){var n="undefined"!=typeof e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}}),k.find.TAG=x.getElementsByTagName?function(e,t){return"undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName(e):x.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=x.getElementsByClassName&&function(e,t){return P?t.getElementsByClassName(e):void 0},$=[],H=[],(x.qsa=bt.test(r.querySelectorAll))&&(i(function(e){R.appendChild(e).innerHTML="<a id='"+_+"'></a><select id='"+_+"-\f]' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&H.push("[*^$]="+nt+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||H.push("\\["+nt+"*(?:value|"+tt+")"),e.querySelectorAll("[id~="+_+"-]").length||H.push("~="),e.querySelectorAll(":checked").length||H.push(":checked"),e.querySelectorAll("a#"+_+"+*").length||H.push(".#.+[+~]")}),i(function(e){var t=r.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&H.push("name"+nt+"*[*^$|!~]?="),e.querySelectorAll(":enabled").length||H.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),H.push(",.*:")})),(x.matchesSelector=bt.test(M=R.matches||R.webkitMatchesSelector||R.mozMatchesSelector||R.oMatchesSelector||R.msMatchesSelector))&&i(function(e){x.disconnectedMatch=M.call(e,"div"),M.call(e,"[s!='']:x"),$.push("!=",st)}),H=H.length&&new RegExp(H.join("|")),$=$.length&&new RegExp($.join("|")),t=bt.test(R.compareDocumentPosition),O=t||bt.test(R.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},G=t?function(e,t){if(e===t)return j=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n?n:(n=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1,1&n||!x.sortDetached&&t.compareDocumentPosition(e)===n?e===r||e.ownerDocument===F&&O(F,e)?-1:t===r||t.ownerDocument===F&&O(F,t)?1:A?et(A,e)-et(A,t):0:4&n?-1:1)}:function(e,t){if(e===t)return j=!0,0;var n,i=0,a=e.parentNode,o=t.parentNode,l=[e],c=[t];if(!a||!o)return e===r?-1:t===r?1:a?-1:o?1:A?et(A,e)-et(A,t):0;if(a===o)return s(e,t);for(n=e;n=n.parentNode;)l.unshift(n);for(n=t;n=n.parentNode;)c.unshift(n);for(;l[i]===c[i];)i++;return i?s(l[i],c[i]):l[i]===F?-1:c[i]===F?1:0},r):L},t.matches=function(e,n){return t(e,null,null,n)},t.matchesSelector=function(e,n){if((e.ownerDocument||e)!==L&&I(e),n=n.replace(dt,"='$1']"),!(!x.matchesSelector||!P||$&&$.test(n)||H&&H.test(n)))try{var r=M.call(e,n);if(r||x.disconnectedMatch||e.document&&11!==e.document.nodeType)return r}catch(i){}return t(n,L,null,[e]).length>0},t.contains=function(e,t){return(e.ownerDocument||e)!==L&&I(e),O(e,t)},t.attr=function(e,t){(e.ownerDocument||e)!==L&&I(e);var n=k.attrHandle[t.toLowerCase()],r=n&&X.call(k.attrHandle,t.toLowerCase())?n(e,t,!P):void 0;return void 0!==r?r:x.attributes||!P?e.getAttribute(t):(r=e.getAttributeNode(t))&&r.specified?r.value:null},t.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},t.uniqueSort=function(e){var t,n=[],r=0,i=0;if(j=!x.detectDuplicates,A=!x.sortStable&&e.slice(0),e.sort(G),j){for(;t=e[i++];)t===e[i]&&(r=n.push(i));for(;r--;)e.splice(n[r],1)}return A=null,e},C=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+=C(e)}else if(3===i||4===i)return e.nodeValue}else for(;t=e[r++];)n+=C(t);return n},k=t.selectors={cacheLength:50,createPseudo:r,match:ht,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(xt,kt),e[3]=(e[3]||e[4]||e[5]||"").replace(xt,kt),"~="===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 ht.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&pt.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(xt,kt).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=B[e+" "];return t||(t=new RegExp("(^|"+nt+")"+e+"("+nt+"|$)"))&&B(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(ot," ")+" ").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,d,p,f,h,m=a!==s?"nextSibling":"previousSibling",g=t.parentNode,b=o&&t.nodeName.toLowerCase(),v=!l&&!o;if(g){if(a){for(;m;){for(d=t;d=d[m];)if(o?d.nodeName.toLowerCase()===b:1===d.nodeType)return!1;h=m="only"===e&&!h&&"nextSibling"}return!0}if(h=[s?g.firstChild:g.lastChild],s&&v){for(u=g[_]||(g[_]={}),c=u[e]||[],f=c[0]===q&&c[1],p=c[0]===q&&c[2],d=f&&g.childNodes[f];d=++f&&d&&d[m]||(p=f=0)||h.pop();)if(1===d.nodeType&&++p&&d===t){u[e]=[q,f,p];break}}else if(v&&(c=(t[_]||(t[_]={}))[e])&&c[0]===q)p=c[1];else for(;(d=++f&&d&&d[m]||(p=f=0)||h.pop())&&((o?d.nodeName.toLowerCase()!==b:1!==d.nodeType)||!++p||(v&&((d[_]||(d[_]={}))[e]=[q,p]),d!==t)););return p-=i,p===r||0===p%r&&p/r>=0}}},PSEUDO:function(e,n){var i,a=k.pseudos[e]||k.setFilters[e.toLowerCase()]||t.error("unsupported pseudo: "+e);return a[_]?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=et(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=E(e.replace(lt,"$1"));return i[_]?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(xt,kt),function(t){return(t.textContent||t.innerText||C(t)).indexOf(e)>-1}}),lang:r(function(e){return ft.test(e||"")||t.error("unsupported lang: "+e),e=e.replace(xt,kt).toLowerCase(),function(t){var n;do if(n=P?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===R},focus:function(e){return e===L.activeElement&&(!L.hasFocus||L.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:function(e){return e.disabled===!1},disabled:function(e){return e.disabled===!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 gt.test(e.nodeName)},input:function(e){return mt.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:c(function(){return[0]}),last:c(function(e,t){return[t-1]}),eq:c(function(e,t,n){return[0>n?n+t:n]}),even:c(function(e,t){for(var n=0;t>n;n+=2)e.push(n);return e}),odd:c(function(e,t){for(var n=1;t>n;n+=2)e.push(n);return e}),lt:c(function(e,t,n){for(var r=0>n?n+t:n;--r>=0;)e.push(r);return e}),gt:c(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(w in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})k.pseudos[w]=o(w);for(w in{submit:!0,reset:!0})k.pseudos[w]=l(w);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=U[e+" "];if(u)return n?0:u.slice(0);for(o=e,l=[],c=k.preFilter;o;){(!r||(i=ct.exec(o)))&&(i&&(o=o.slice(i[0].length)||o),l.push(a=[])),r=!1,(i=ut.exec(o))&&(r=i.shift(),a.push({value:r,type:i[0].replace(lt," ")}),o=o.slice(r.length));for(s in k.filter)!(i=ht[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):U(e,l).slice(0)},E=t.compile=function(e,t){var n,r=[],i=[],a=z[e+" "];if(!a){for(t||(t=S(e)),n=t.length;n--;)a=v(t[n]),a[_]?r.push(a):i.push(a);a=z(e,y(i,r)),a.selector=e}return a},N=t.select=function(e,t,n,r){var i,a,s,o,l,c="function"==typeof e&&e,d=!r&&S(e=c.selector||e);if(n=n||[],1===d.length){if(a=d[0]=d[0].slice(0),a.length>2&&"ID"===(s=a[0]).type&&x.getById&&9===t.nodeType&&P&&k.relative[a[1].type]){if(t=(k.find.ID(s.matches[0].replace(xt,kt),t)||[])[0],!t)return n;c&&(t=t.parentNode),e=e.slice(a.shift().value.length)}for(i=ht.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(xt,kt),yt.test(a[0].type)&&u(t.parentNode)||t))){if(a.splice(i,1),e=r.length&&p(a),!e)return Z.apply(n,r),n;break}}return(c||E(e,d))(r,t,!P,n,yt.test(e)&&u(t.parentNode)||t),n},x.sortStable=_.split("").sort(G).join("")===_,x.detectDuplicates=!!j,I(),x.sortDetached=i(function(e){return 1&e.compareDocumentPosition(L.createElement("div"))}),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)}),x.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(tt,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);Q.find=it,Q.expr=it.selectors,Q.expr[":"]=Q.expr.pseudos,Q.unique=it.uniqueSort,Q.text=it.getText,Q.isXMLDoc=it.isXML,Q.contains=it.contains;var at=Q.expr.match.needsContext,st=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,ot=/^.[^:#\[\.,]*$/;Q.filter=function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?Q.find.matchesSelector(r,e)?[r]:[]:Q.find.matches(e,Q.grep(t,function(e){return 1===e.nodeType}))},Q.fn.extend({find:function(e){var t,n=this.length,r=[],i=this;if("string"!=typeof e)return this.pushStack(Q(e).filter(function(){for(t=0;n>t;t++)if(Q.contains(i[t],this))return!0}));for(t=0;n>t;t++)Q.find(e,i[t],r);return r=this.pushStack(n>1?Q.unique(r):r),r.selector=this.selector?this.selector+" "+e:e,r},filter:function(e){return this.pushStack(r(this,e||[],!1))},not:function(e){return this.pushStack(r(this,e||[],!0))},is:function(e){return!!r(this,"string"==typeof e&&at.test(e)?Q(e):e||[],!1).length}});var lt,ct=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,ut=Q.fn.init=function(e,t){var n,r;if(!e)return this;if("string"==typeof e){if(n="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:ct.exec(e),!n||!n[1]&&t)return!t||t.jquery?(t||lt).find(e):this.constructor(t).find(e);if(n[1]){if(t=t instanceof Q?t[0]:t,Q.merge(this,Q.parseHTML(n[1],t&&t.nodeType?t.ownerDocument||t:J,!0)),st.test(n[1])&&Q.isPlainObject(t))for(n in t)Q.isFunction(this[n])?this[n](t[n]):this.attr(n,t[n]);return this}return r=J.getElementById(n[2]),r&&r.parentNode&&(this.length=1,this[0]=r),this.context=J,this.selector=e,this}return e.nodeType?(this.context=this[0]=e,this.length=1,this):Q.isFunction(e)?"undefined"!=typeof lt.ready?lt.ready(e):e(Q):(void 0!==e.selector&&(this.selector=e.selector,this.context=e.context),Q.makeArray(e,this))};ut.prototype=Q.fn,lt=Q(J);var dt=/^(?:parents|prev(?:Until|All))/,pt={children:!0,contents:!0,next:!0,prev:!0};Q.extend({dir:function(e,t,n){for(var r=[],i=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(i&&Q(e).is(n))break;r.push(e)}return r},sibling:function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n}}),Q.fn.extend({has:function(e){var t=Q(e,this),n=t.length;return this.filter(function(){for(var e=0;n>e;e++)if(Q.contains(this,t[e]))return!0})},closest:function(e,t){for(var n,r=0,i=this.length,a=[],s=at.test(e)||"string"!=typeof e?Q(e,t||this.context):0;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&&Q.find.matchesSelector(n,e))){a.push(n);break}return this.pushStack(a.length>1?Q.unique(a):a)},index:function(e){return e?"string"==typeof e?G.call(Q(e),this[0]):G.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(Q.unique(Q.merge(this.get(),Q(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),Q.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return Q.dir(e,"parentNode")},parentsUntil:function(e,t,n){return Q.dir(e,"parentNode",n)},next:function(e){return i(e,"nextSibling")},prev:function(e){return i(e,"previousSibling")},nextAll:function(e){return Q.dir(e,"nextSibling")},prevAll:function(e){return Q.dir(e,"previousSibling")},nextUntil:function(e,t,n){return Q.dir(e,"nextSibling",n)},prevUntil:function(e,t,n){return Q.dir(e,"previousSibling",n)},siblings:function(e){return Q.sibling((e.parentNode||{}).firstChild,e)},children:function(e){return Q.sibling(e.firstChild)},contents:function(e){return e.contentDocument||Q.merge([],e.childNodes)}},function(e,t){Q.fn[e]=function(n,r){var i=Q.map(this,t,n);return"Until"!==e.slice(-5)&&(r=n),r&&"string"==typeof r&&(i=Q.filter(r,i)),this.length>1&&(pt[e]||Q.unique(i),dt.test(e)&&i.reverse()),this.pushStack(i)}});var ft=/\S+/g,ht={};Q.Callbacks=function(e){e="string"==typeof e?ht[e]||a(e):Q.extend({},e);var t,n,r,i,s,o,l=[],c=!e.once&&[],u=function(a){for(t=e.memory&&a,n=!0,o=i||0,i=0,s=l.length,r=!0;l&&s>o;o++)if(l[o].apply(a[0],a[1])===!1&&e.stopOnFalse){t=!1;break}r=!1,l&&(c?c.length&&u(c.shift()):t?l=[]:d.disable())},d={add:function(){if(l){var n=l.length;!function a(t){Q.each(t,function(t,n){var r=Q.type(n);"function"===r?e.unique&&d.has(n)||l.push(n):n&&n.length&&"string"!==r&&a(n)})}(arguments),r?s=l.length:t&&(i=n,u(t))}return this},remove:function(){return l&&Q.each(arguments,function(e,t){for(var n;(n=Q.inArray(t,l,n))>-1;)l.splice(n,1),r&&(s>=n&&s--,o>=n&&o--)}),this},has:function(e){return e?Q.inArray(e,l)>-1:!(!l||!l.length)},empty:function(){return l=[],s=0,this},disable:function(){return l=c=t=void 0,this},disabled:function(){return!l},lock:function(){return c=void 0,t||d.disable(),this},locked:function(){return!c},fireWith:function(e,t){return!l||n&&!c||(t=t||[],t=[e,t.slice?t.slice():t],r?c.push(t):u(t)),this},fire:function(){return d.fireWith(this,arguments),this},fired:function(){return!!n}};return d},Q.extend({Deferred:function(e){var t=[["resolve","done",Q.Callbacks("once memory"),"resolved"],["reject","fail",Q.Callbacks("once memory"),"rejected"],["notify","progress",Q.Callbacks("memory")]],n="pending",r={state:function(){return n},always:function(){return i.done(arguments).fail(arguments),this},then:function(){var e=arguments;return Q.Deferred(function(n){Q.each(t,function(t,a){var s=Q.isFunction(e[t])&&e[t];i[a[1]](function(){var e=s&&s.apply(this,arguments);e&&Q.isFunction(e.promise)?e.promise().done(n.resolve).fail(n.reject).progress(n.notify):n[a[0]+"With"](this===r?n.promise():this,s?[e]:arguments)})}),e=null}).promise()},promise:function(e){return null!=e?Q.extend(e,r):r}},i={};return r.pipe=r.then,Q.each(t,function(e,a){var s=a[2],o=a[3];r[a[1]]=s.add,o&&s.add(function(){n=o},t[1^e][2].disable,t[2][2].lock),i[a[0]]=function(){return i[a[0]+"With"](this===i?r:this,arguments),this},i[a[0]+"With"]=s.fireWith}),r.promise(i),e&&e.call(i,i),i},when:function(e){var t,n,r,i=0,a=B.call(arguments),s=a.length,o=1!==s||e&&Q.isFunction(e.promise)?s:0,l=1===o?e:Q.Deferred(),c=function(e,n,r){return function(i){n[e]=this,r[e]=arguments.length>1?B.call(arguments):i,r===t?l.notifyWith(n,r):--o||l.resolveWith(n,r)}};if(s>1)for(t=new Array(s),n=new Array(s),r=new Array(s);s>i;i++)a[i]&&Q.isFunction(a[i].promise)?a[i].promise().done(c(i,r,a)).fail(l.reject).progress(c(i,n,t)):--o;return o||l.resolveWith(r,a),l.promise()}});var mt;Q.fn.ready=function(e){return Q.ready.promise().done(e),this},Q.extend({isReady:!1,readyWait:1,holdReady:function(e){e?Q.readyWait++:Q.ready(!0)},ready:function(e){(e===!0?--Q.readyWait:Q.isReady)||(Q.isReady=!0,e!==!0&&--Q.readyWait>0||(mt.resolveWith(J,[Q]),Q.fn.triggerHandler&&(Q(J).triggerHandler("ready"),Q(J).off("ready"))))}}),Q.ready.promise=function(t){return mt||(mt=Q.Deferred(),"complete"===J.readyState?setTimeout(Q.ready):(J.addEventListener("DOMContentLoaded",s,!1),e.addEventListener("load",s,!1))),mt.promise(t)},Q.ready.promise();var gt=Q.access=function(e,t,n,r,i,a,s){var o=0,l=e.length,c=null==n;if("object"===Q.type(n)){i=!0;for(o in n)Q.access(e,t,o,n[o],!0,a,s)}else if(void 0!==r&&(i=!0,Q.isFunction(r)||(s=!0),c&&(s?(t.call(e,r),t=null):(c=t,t=function(e,t,n){return c.call(Q(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};Q.acceptData=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType},o.uid=1,o.accepts=Q.acceptData,o.prototype={key:function(e){if(!o.accepts(e))return 0;var t={},n=e[this.expando];if(!n){n=o.uid++;try{t[this.expando]={value:n},Object.defineProperties(e,t)}catch(r){t[this.expando]=n,Q.extend(e,t)}}return this.cache[n]||(this.cache[n]={}),n},set:function(e,t,n){var r,i=this.key(e),a=this.cache[i];if("string"==typeof t)a[t]=n;else if(Q.isEmptyObject(a))Q.extend(this.cache[i],t);else for(r in t)a[r]=t[r];return a},get:function(e,t){var n=this.cache[this.key(e)];return void 0===t?n:n[t]},access:function(e,t,n){var r;return void 0===t||t&&"string"==typeof t&&void 0===n?(r=this.get(e,t),void 0!==r?r:this.get(e,Q.camelCase(t))):(this.set(e,t,n),void 0!==n?n:t)},remove:function(e,t){var n,r,i,a=this.key(e),s=this.cache[a];if(void 0===t)this.cache[a]={};else{Q.isArray(t)?r=t.concat(t.map(Q.camelCase)):(i=Q.camelCase(t),t in s?r=[t,i]:(r=i,r=r in s?[r]:r.match(ft)||[])),n=r.length;for(;n--;)delete s[r[n]]}},hasData:function(e){return!Q.isEmptyObject(this.cache[e[this.expando]]||{})},discard:function(e){e[this.expando]&&delete this.cache[e[this.expando]]}};var bt=new o,vt=new o,yt=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,wt=/([A-Z])/g;Q.extend({hasData:function(e){return vt.hasData(e)||bt.hasData(e)},data:function(e,t,n){return vt.access(e,t,n)},removeData:function(e,t){vt.remove(e,t)},_data:function(e,t,n){return bt.access(e,t,n)},_removeData:function(e,t){bt.remove(e,t)}}),Q.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=vt.get(a),1===a.nodeType&&!bt.get(a,"hasDataAttrs"))){for(n=s.length;n--;)s[n]&&(r=s[n].name,0===r.indexOf("data-")&&(r=Q.camelCase(r.slice(5)),l(a,r,i[r])));bt.set(a,"hasDataAttrs",!0)}return i}return"object"==typeof e?this.each(function(){vt.set(this,e)}):gt(this,function(t){var n,r=Q.camelCase(e);if(a&&void 0===t){if(n=vt.get(a,e),void 0!==n)return n;if(n=vt.get(a,r),void 0!==n)return n;if(n=l(a,r,void 0),void 0!==n)return n}else this.each(function(){var n=vt.get(this,r);vt.set(this,r,t),-1!==e.indexOf("-")&&void 0!==n&&vt.set(this,e,t)})},null,t,arguments.length>1,null,!0)},removeData:function(e){return this.each(function(){vt.remove(this,e)})}}),Q.extend({queue:function(e,t,n){var r;return e?(t=(t||"fx")+"queue",r=bt.get(e,t),n&&(!r||Q.isArray(n)?r=bt.access(e,t,Q.makeArray(n)):r.push(n)),r||[]):void 0},dequeue:function(e,t){t=t||"fx";var n=Q.queue(e,t),r=n.length,i=n.shift(),a=Q._queueHooks(e,t),s=function(){Q.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 bt.get(e,n)||bt.access(e,n,{empty:Q.Callbacks("once memory").add(function(){bt.remove(e,[t+"queue",n])})})}}),Q.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n--),arguments.length<n?Q.queue(this[0],e):void 0===t?this:this.each(function(){var n=Q.queue(this,e,t);Q._queueHooks(this,e),"fx"===e&&"inprogress"!==n[0]&&Q.dequeue(this,e)})},dequeue:function(e){return this.each(function(){Q.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,r=1,i=Q.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=bt.get(a[s],e+"queueHooks"),n&&n.empty&&(r++,n.empty.add(o));return o(),i.promise(t)}});var xt=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,kt=["Top","Right","Bottom","Left"],Ct=function(e,t){return e=t||e,"none"===Q.css(e,"display")||!Q.contains(e.ownerDocument,e)},Tt=/^(?:checkbox|radio)$/i;!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),K.checkClone=t.cloneNode(!0).cloneNode(!0).lastChild.checked,t.innerHTML="<textarea>x</textarea>",K.noCloneChecked=!!t.cloneNode(!0).lastChild.defaultValue}();var St="undefined";K.focusinBubbles="onfocusin"in e;var Et=/^key/,Nt=/^(?:mouse|pointer|contextmenu)|click/,Dt=/^(?:focusinfocus|focusoutblur)$/,At=/^([^.]*)(?:\.(.+)|)$/;Q.event={global:{},add:function(e,t,n,r,i){var a,s,o,l,c,u,d,p,f,h,m,g=bt.get(e);if(g)for(n.handler&&(a=n,n=a.handler,i=a.selector),n.guid||(n.guid=Q.guid++),(l=g.events)||(l=g.events={}),(s=g.handle)||(s=g.handle=function(t){return typeof Q!==St&&Q.event.triggered!==t.type?Q.event.dispatch.apply(e,arguments):void 0}),t=(t||"").match(ft)||[""],c=t.length;c--;)o=At.exec(t[c])||[],f=m=o[1],h=(o[2]||"").split(".").sort(),f&&(d=Q.event.special[f]||{},f=(i?d.delegateType:d.bindType)||f,d=Q.event.special[f]||{},u=Q.extend({type:f,origType:m,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&Q.expr.match.needsContext.test(i),namespace:h.join(".")},a),(p=l[f])||(p=l[f]=[],p.delegateCount=0,d.setup&&d.setup.call(e,r,h,s)!==!1||e.addEventListener&&e.addEventListener(f,s,!1)),d.add&&(d.add.call(e,u),u.handler.guid||(u.handler.guid=n.guid)),i?p.splice(p.delegateCount++,0,u):p.push(u),Q.event.global[f]=!0)},remove:function(e,t,n,r,i){var a,s,o,l,c,u,d,p,f,h,m,g=bt.hasData(e)&&bt.get(e);if(g&&(l=g.events)){for(t=(t||"").match(ft)||[""],c=t.length;c--;)if(o=At.exec(t[c])||[],f=m=o[1],h=(o[2]||"").split(".").sort(),f){for(d=Q.event.special[f]||{},f=(r?d.delegateType:d.bindType)||f,p=l[f]||[],o=o[2]&&new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"),s=a=p.length;a--;)u=p[a],!i&&m!==u.origType||n&&n.guid!==u.guid||o&&!o.test(u.namespace)||r&&r!==u.selector&&("**"!==r||!u.selector)||(p.splice(a,1),u.selector&&p.delegateCount--,d.remove&&d.remove.call(e,u));s&&!p.length&&(d.teardown&&d.teardown.call(e,h,g.handle)!==!1||Q.removeEvent(e,f,g.handle),delete l[f])}else for(f in l)Q.event.remove(e,f+t[c],n,r,!0);Q.isEmptyObject(l)&&(delete g.handle,bt.remove(e,"events"))}},trigger:function(t,n,r,i){var a,s,o,l,c,u,d,p=[r||J],f=Y.call(t,"type")?t.type:t,h=Y.call(t,"namespace")?t.namespace.split("."):[];if(s=o=r=r||J,3!==r.nodeType&&8!==r.nodeType&&!Dt.test(f+Q.event.triggered)&&(f.indexOf(".")>=0&&(h=f.split("."),f=h.shift(),h.sort()),c=f.indexOf(":")<0&&"on"+f,t=t[Q.expando]?t:new Q.Event(f,"object"==typeof t&&t),t.isTrigger=i?2:3,t.namespace=h.join("."),t.namespace_re=t.namespace?new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=r),n=null==n?[t]:Q.makeArray(n,[t]),d=Q.event.special[f]||{},i||!d.trigger||d.trigger.apply(r,n)!==!1)){if(!i&&!d.noBubble&&!Q.isWindow(r)){for(l=d.delegateType||f,Dt.test(l+f)||(s=s.parentNode);s;s=s.parentNode)p.push(s),o=s;o===(r.ownerDocument||J)&&p.push(o.defaultView||o.parentWindow||e)}for(a=0;(s=p[a++])&&!t.isPropagationStopped();)t.type=a>1?l:d.bindType||f,u=(bt.get(s,"events")||{})[t.type]&&bt.get(s,"handle"),u&&u.apply(s,n),u=c&&s[c],u&&u.apply&&Q.acceptData(s)&&(t.result=u.apply(s,n),t.result===!1&&t.preventDefault());return t.type=f,i||t.isDefaultPrevented()||d._default&&d._default.apply(p.pop(),n)!==!1||!Q.acceptData(r)||c&&Q.isFunction(r[f])&&!Q.isWindow(r)&&(o=r[c],o&&(r[c]=null),Q.event.triggered=f,r[f](),Q.event.triggered=void 0,o&&(r[c]=o)),t.result}},dispatch:function(e){e=Q.event.fix(e);var t,n,r,i,a,s=[],o=B.call(arguments),l=(bt.get(this,"events")||{})[e.type]||[],c=Q.event.special[e.type]||{};if(o[0]=e,e.delegateTarget=this,!c.preDispatch||c.preDispatch.call(this,e)!==!1){for(s=Q.event.handlers.call(this,e,l),t=0;(i=s[t++])&&!e.isPropagationStopped();)for(e.currentTarget=i.elem,n=0;(a=i.handlers[n++])&&!e.isImmediatePropagationStopped();)(!e.namespace_re||e.namespace_re.test(a.namespace))&&(e.handleObj=a,e.data=a.data,r=((Q.event.special[a.origType]||{}).handle||a.handler).apply(i.elem,o),void 0!==r&&(e.result=r)===!1&&(e.preventDefault(),e.stopPropagation()));return c.postDispatch&&c.postDispatch.call(this,e),e.result}},handlers:function(e,t){var n,r,i,a,s=[],o=t.delegateCount,l=e.target;if(o&&l.nodeType&&(!e.button||"click"!==e.type))for(;l!==this;l=l.parentNode||this)if(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?Q(i,this).index(l)>=0:Q.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},props:"altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(e,t){return null==e.which&&(e.which=null!=t.charCode?t.charCode:t.keyCode),e}},mouseHooks:{props:"button buttons clientX clientY offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(e,t){var n,r,i,a=t.button;return null==e.pageX&&null!=t.clientX&&(n=e.target.ownerDocument||J,r=n.documentElement,i=n.body,e.pageX=t.clientX+(r&&r.scrollLeft||i&&i.scrollLeft||0)-(r&&r.clientLeft||i&&i.clientLeft||0),e.pageY=t.clientY+(r&&r.scrollTop||i&&i.scrollTop||0)-(r&&r.clientTop||i&&i.clientTop||0)),e.which||void 0===a||(e.which=1&a?1:2&a?3:4&a?2:0),e}},fix:function(e){if(e[Q.expando])return e;var t,n,r,i=e.type,a=e,s=this.fixHooks[i];for(s||(this.fixHooks[i]=s=Nt.test(i)?this.mouseHooks:Et.test(i)?this.keyHooks:{}),r=s.props?this.props.concat(s.props):this.props,e=new Q.Event(a),t=r.length;t--;)n=r[t],e[n]=a[n];return e.target||(e.target=J),3===e.target.nodeType&&(e.target=e.target.parentNode),s.filter?s.filter(e,a):e},special:{load:{noBubble:!0},focus:{trigger:function(){return this!==d()&&this.focus?(this.focus(),!1):void 0},delegateType:"focusin"},blur:{trigger:function(){return this===d()&&this.blur?(this.blur(),!1):void 0},delegateType:"focusout"},click:{trigger:function(){return"checkbox"===this.type&&this.click&&Q.nodeName(this,"input")?(this.click(),!1):void 0
},_default:function(e){return Q.nodeName(e.target,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}},simulate:function(e,t,n,r){var i=Q.extend(new Q.Event,n,{type:e,isSimulated:!0,originalEvent:{}});r?Q.event.trigger(i,null,t):Q.event.dispatch.call(t,i),i.isDefaultPrevented()&&n.preventDefault()}},Q.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n,!1)},Q.Event=function(e,t){return this instanceof Q.Event?(e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&e.returnValue===!1?c:u):this.type=e,t&&Q.extend(this,t),this.timeStamp=e&&e.timeStamp||Q.now(),void(this[Q.expando]=!0)):new Q.Event(e,t)},Q.Event.prototype={isDefaultPrevented:u,isPropagationStopped:u,isImmediatePropagationStopped:u,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=c,e&&e.preventDefault&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=c,e&&e.stopPropagation&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=c,e&&e.stopImmediatePropagation&&e.stopImmediatePropagation(),this.stopPropagation()}},Q.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(e,t){Q.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,r=this,i=e.relatedTarget,a=e.handleObj;return(!i||i!==r&&!Q.contains(r,i))&&(e.type=a.origType,n=a.handler.apply(this,arguments),e.type=t),n}}}),K.focusinBubbles||Q.each({focus:"focusin",blur:"focusout"},function(e,t){var n=function(e){Q.event.simulate(t,e.target,Q.event.fix(e),!0)};Q.event.special[t]={setup:function(){var r=this.ownerDocument||this,i=bt.access(r,t);i||r.addEventListener(e,n,!0),bt.access(r,t,(i||0)+1)},teardown:function(){var r=this.ownerDocument||this,i=bt.access(r,t)-1;i?bt.access(r,t,i):(r.removeEventListener(e,n,!0),bt.remove(r,t))}}}),Q.fn.extend({on:function(e,t,n,r,i){var a,s;if("object"==typeof e){"string"!=typeof t&&(n=n||t,t=void 0);for(s in e)this.on(s,t,n,e[s],i);return this}if(null==n&&null==r?(r=t,n=t=void 0):null==r&&("string"==typeof t?(r=n,n=void 0):(r=n,n=t,t=void 0)),r===!1)r=u;else if(!r)return this;return 1===i&&(a=r,r=function(e){return Q().off(e),a.apply(this,arguments)},r.guid=a.guid||(a.guid=Q.guid++)),this.each(function(){Q.event.add(this,e,r,n,t)})},one:function(e,t,n,r){return this.on(e,t,n,r,1)},off:function(e,t,n){var r,i;if(e&&e.preventDefault&&e.handleObj)return r=e.handleObj,Q(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=u),this.each(function(){Q.event.remove(this,e,n,t)})},trigger:function(e,t){return this.each(function(){Q.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];return n?Q.event.trigger(e,t,n,!0):void 0}});var jt=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,It=/<([\w:]+)/,Lt=/<|&#?\w+;/,Rt=/<(?:script|style|link)/i,Pt=/checked\s*(?:[^=]|=\s*.checked.)/i,Ht=/^$|\/(?:java|ecma)script/i,$t=/^true\/(.*)/,Mt=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,Ot={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,"",""]};Ot.optgroup=Ot.option,Ot.tbody=Ot.tfoot=Ot.colgroup=Ot.caption=Ot.thead,Ot.th=Ot.td,Q.extend({clone:function(e,t,n){var r,i,a,s,o=e.cloneNode(!0),l=Q.contains(e.ownerDocument,e);if(!(K.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||Q.isXMLDoc(e)))for(s=b(o),a=b(e),r=0,i=a.length;i>r;r++)v(a[r],s[r]);if(t)if(n)for(a=a||b(e),s=s||b(o),r=0,i=a.length;i>r;r++)g(a[r],s[r]);else g(e,o);return s=b(o,"script"),s.length>0&&m(s,!l&&b(e,"script")),o},buildFragment:function(e,t,n,r){for(var i,a,s,o,l,c,u=t.createDocumentFragment(),d=[],p=0,f=e.length;f>p;p++)if(i=e[p],i||0===i)if("object"===Q.type(i))Q.merge(d,i.nodeType?[i]:i);else if(Lt.test(i)){for(a=a||u.appendChild(t.createElement("div")),s=(It.exec(i)||["",""])[1].toLowerCase(),o=Ot[s]||Ot._default,a.innerHTML=o[1]+i.replace(jt,"<$1></$2>")+o[2],c=o[0];c--;)a=a.lastChild;Q.merge(d,a.childNodes),a=u.firstChild,a.textContent=""}else d.push(t.createTextNode(i));for(u.textContent="",p=0;i=d[p++];)if((!r||-1===Q.inArray(i,r))&&(l=Q.contains(i.ownerDocument,i),a=b(u.appendChild(i),"script"),l&&m(a),n))for(c=0;i=a[c++];)Ht.test(i.type||"")&&n.push(i);return u},cleanData:function(e){for(var t,n,r,i,a=Q.event.special,s=0;void 0!==(n=e[s]);s++){if(Q.acceptData(n)&&(i=n[bt.expando],i&&(t=bt.cache[i]))){if(t.events)for(r in t.events)a[r]?Q.event.remove(n,r):Q.removeEvent(n,r,t.handle);bt.cache[i]&&delete bt.cache[i]}delete vt.cache[n[vt.expando]]}}}),Q.fn.extend({text:function(e){return gt(this,function(e){return void 0===e?Q.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 this.domManip(arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=p(this,e);t.appendChild(e)}})},prepend:function(){return this.domManip(arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=p(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return this.domManip(arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return this.domManip(arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},remove:function(e,t){for(var n,r=e?Q.filter(e,this):this,i=0;null!=(n=r[i]);i++)t||1!==n.nodeType||Q.cleanData(b(n)),n.parentNode&&(t&&Q.contains(n.ownerDocument,n)&&m(b(n,"script")),n.parentNode.removeChild(n));return this},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(Q.cleanData(b(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 Q.clone(this,e,t)})},html:function(e){return gt(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&&!Rt.test(e)&&!Ot[(It.exec(e)||["",""])[1].toLowerCase()]){e=e.replace(jt,"<$1></$2>");try{for(;r>n;n++)t=this[n]||{},1===t.nodeType&&(Q.cleanData(b(t,!1)),t.innerHTML=e);t=0}catch(i){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var e=arguments[0];return this.domManip(arguments,function(t){e=this.parentNode,Q.cleanData(b(this)),e&&e.replaceChild(t,this)}),e&&(e.length||e.nodeType)?this:this.remove()},detach:function(e){return this.remove(e,!0)},domManip:function(e,t){e=U.apply([],e);var n,r,i,a,s,o,l=0,c=this.length,u=this,d=c-1,p=e[0],m=Q.isFunction(p);if(m||c>1&&"string"==typeof p&&!K.checkClone&&Pt.test(p))return this.each(function(n){var r=u.eq(n);m&&(e[0]=p.call(this,n,r.html())),r.domManip(e,t)});if(c&&(n=Q.buildFragment(e,this[0].ownerDocument,!1,this),r=n.firstChild,1===n.childNodes.length&&(n=r),r)){for(i=Q.map(b(n,"script"),f),a=i.length;c>l;l++)s=n,l!==d&&(s=Q.clone(s,!0,!0),a&&Q.merge(i,b(s,"script"))),t.call(this[l],s,l);if(a)for(o=i[i.length-1].ownerDocument,Q.map(i,h),l=0;a>l;l++)s=i[l],Ht.test(s.type||"")&&!bt.access(s,"globalEval")&&Q.contains(o,s)&&(s.src?Q._evalUrl&&Q._evalUrl(s.src):Q.globalEval(s.textContent.replace(Mt,"")))}return this}}),Q.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,t){Q.fn[e]=function(e){for(var n,r=[],i=Q(e),a=i.length-1,s=0;a>=s;s++)n=s===a?this:this.clone(!0),Q(i[s])[t](n),z.apply(r,n.get());return this.pushStack(r)}});var _t,Ft={},qt=/^margin/,Wt=new RegExp("^("+xt+")(?!px)[a-z%]+$","i"),Bt=function(t){return t.ownerDocument.defaultView.opener?t.ownerDocument.defaultView.getComputedStyle(t,null):e.getComputedStyle(t,null)};!function(){function t(){s.style.cssText="-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;display:block;margin-top:1%;top:1%;border:1px;padding:1px;width:4px;position:absolute",s.innerHTML="",i.appendChild(a);var t=e.getComputedStyle(s,null);n="1%"!==t.top,r="4px"===t.width,i.removeChild(a)}var n,r,i=J.documentElement,a=J.createElement("div"),s=J.createElement("div");s.style&&(s.style.backgroundClip="content-box",s.cloneNode(!0).style.backgroundClip="",K.clearCloneStyle="content-box"===s.style.backgroundClip,a.style.cssText="border:0;width:0;height:0;top:0;left:-9999px;margin-top:1px;position:absolute",a.appendChild(s),e.getComputedStyle&&Q.extend(K,{pixelPosition:function(){return t(),n},boxSizingReliable:function(){return null==r&&t(),r},reliableMarginRight:function(){var t,n=s.appendChild(J.createElement("div"));return n.style.cssText=s.style.cssText="-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0",n.style.marginRight=n.style.width="0",s.style.width="1px",i.appendChild(a),t=!parseFloat(e.getComputedStyle(n,null).marginRight),i.removeChild(a),s.removeChild(n),t}}))}(),Q.swap=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};var Ut=/^(none|table(?!-c[ea]).+)/,zt=new RegExp("^("+xt+")(.*)$","i"),Gt=new RegExp("^([+-])=("+xt+")","i"),Vt={position:"absolute",visibility:"hidden",display:"block"},Xt={letterSpacing:"0",fontWeight:"400"},Yt=["Webkit","O","Moz","ms"];Q.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=x(e,"opacity");return""===n?"1":n}}}},cssNumber:{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=Q.camelCase(t),l=e.style;return t=Q.cssProps[o]||(Q.cssProps[o]=C(l,o)),s=Q.cssHooks[t]||Q.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=Gt.exec(n))&&(n=(i[1]+1)*i[2]+parseFloat(Q.css(e,t)),a="number"),null!=n&&n===n&&("number"!==a||Q.cssNumber[o]||(n+="px"),K.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=Q.camelCase(t);return t=Q.cssProps[o]||(Q.cssProps[o]=C(e.style,o)),s=Q.cssHooks[t]||Q.cssHooks[o],s&&"get"in s&&(i=s.get(e,!0,n)),void 0===i&&(i=x(e,t,r)),"normal"===i&&t in Xt&&(i=Xt[t]),""===n||n?(a=parseFloat(i),n===!0||Q.isNumeric(a)?a||0:i):i}}),Q.each(["height","width"],function(e,t){Q.cssHooks[t]={get:function(e,n,r){return n?Ut.test(Q.css(e,"display"))&&0===e.offsetWidth?Q.swap(e,Vt,function(){return E(e,t,r)}):E(e,t,r):void 0},set:function(e,n,r){var i=r&&Bt(e);return T(e,n,r?S(e,t,r,"border-box"===Q.css(e,"boxSizing",!1,i),i):0)}}}),Q.cssHooks.marginRight=k(K.reliableMarginRight,function(e,t){return t?Q.swap(e,{display:"inline-block"},x,[e,"marginRight"]):void 0}),Q.each({margin:"",padding:"",border:"Width"},function(e,t){Q.cssHooks[e+t]={expand:function(n){for(var r=0,i={},a="string"==typeof n?n.split(" "):[n];4>r;r++)i[e+kt[r]+t]=a[r]||a[r-2]||a[0];return i}},qt.test(e)||(Q.cssHooks[e+t].set=T)}),Q.fn.extend({css:function(e,t){return gt(this,function(e,t,n){var r,i,a={},s=0;if(Q.isArray(t)){for(r=Bt(e),i=t.length;i>s;s++)a[t[s]]=Q.css(e,t[s],!1,r);return a}return void 0!==n?Q.style(e,t,n):Q.css(e,t)},e,t,arguments.length>1)},show:function(){return N(this,!0)},hide:function(){return N(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){Ct(this)?Q(this).show():Q(this).hide()})}}),Q.Tween=D,D.prototype={constructor:D,init:function(e,t,n,r,i,a){this.elem=e,this.prop=n,this.easing=i||"swing",this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=a||(Q.cssNumber[n]?"":"px")},cur:function(){var e=D.propHooks[this.prop];return e&&e.get?e.get(this):D.propHooks._default.get(this)},run:function(e){var t,n=D.propHooks[this.prop];return this.pos=t=this.options.duration?Q.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):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):D.propHooks._default.set(this),this}},D.prototype.init.prototype=D.prototype,D.propHooks={_default:{get:function(e){var t;return null==e.elem[e.prop]||e.elem.style&&null!=e.elem.style[e.prop]?(t=Q.css(e.elem,e.prop,""),t&&"auto"!==t?t:0):e.elem[e.prop]},set:function(e){Q.fx.step[e.prop]?Q.fx.step[e.prop](e):e.elem.style&&(null!=e.elem.style[Q.cssProps[e.prop]]||Q.cssHooks[e.prop])?Q.style(e.elem,e.prop,e.now+e.unit):e.elem[e.prop]=e.now}}},D.propHooks.scrollTop=D.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},Q.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2}},Q.fx=D.prototype.init,Q.fx.step={};var Kt,Jt,Zt=/^(?:toggle|show|hide)$/,Qt=new RegExp("^(?:([+-])=|)("+xt+")([a-z%]*)$","i"),en=/queueHooks$/,tn=[L],nn={"*":[function(e,t){var n=this.createTween(e,t),r=n.cur(),i=Qt.exec(t),a=i&&i[3]||(Q.cssNumber[e]?"":"px"),s=(Q.cssNumber[e]||"px"!==a&&+r)&&Qt.exec(Q.css(n.elem,e)),o=1,l=20;if(s&&s[3]!==a){a=a||s[3],i=i||[],s=+r||1;do o=o||".5",s/=o,Q.style(n.elem,e,s+a);while(o!==(o=n.cur()/r)&&1!==o&&--l)}return i&&(s=n.start=+s||+r||0,n.unit=a,n.end=i[1]?s+(i[1]+1)*i[2]:+i[2]),n}]};Q.Animation=Q.extend(P,{tweener:function(e,t){Q.isFunction(e)?(t=e,e=["*"]):e=e.split(" ");for(var n,r=0,i=e.length;i>r;r++)n=e[r],nn[n]=nn[n]||[],nn[n].unshift(t)},prefilter:function(e,t){t?tn.unshift(e):tn.push(e)}}),Q.speed=function(e,t,n){var r=e&&"object"==typeof e?Q.extend({},e):{complete:n||!n&&t||Q.isFunction(e)&&e,duration:e,easing:n&&t||t&&!Q.isFunction(t)&&t};return r.duration=Q.fx.off?0:"number"==typeof r.duration?r.duration:r.duration in Q.fx.speeds?Q.fx.speeds[r.duration]:Q.fx.speeds._default,(null==r.queue||r.queue===!0)&&(r.queue="fx"),r.old=r.complete,r.complete=function(){Q.isFunction(r.old)&&r.old.call(this),r.queue&&Q.dequeue(this,r.queue)},r},Q.fn.extend({fadeTo:function(e,t,n,r){return this.filter(Ct).css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(e,t,n,r){var i=Q.isEmptyObject(e),a=Q.speed(t,n,r),s=function(){var t=P(this,Q.extend({},e),a);(i||bt.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=Q.timers,s=bt.get(this);if(i)s[i]&&s[i].stop&&r(s[i]);else for(i in s)s[i]&&s[i].stop&&en.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)&&Q.dequeue(this,e)})},finish:function(e){return e!==!1&&(e=e||"fx"),this.each(function(){var t,n=bt.get(this),r=n[e+"queue"],i=n[e+"queueHooks"],a=Q.timers,s=r?r.length:0;for(n.finish=!0,Q.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})}}),Q.each(["toggle","show","hide"],function(e,t){var n=Q.fn[t];Q.fn[t]=function(e,r,i){return null==e||"boolean"==typeof e?n.apply(this,arguments):this.animate(j(t,!0),e,r,i)}}),Q.each({slideDown:j("show"),slideUp:j("hide"),slideToggle:j("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(e,t){Q.fn[e]=function(e,n,r){return this.animate(t,e,n,r)}}),Q.timers=[],Q.fx.tick=function(){var e,t=0,n=Q.timers;for(Kt=Q.now();t<n.length;t++)e=n[t],e()||n[t]!==e||n.splice(t--,1);n.length||Q.fx.stop(),Kt=void 0},Q.fx.timer=function(e){Q.timers.push(e),e()?Q.fx.start():Q.timers.pop()},Q.fx.interval=13,Q.fx.start=function(){Jt||(Jt=setInterval(Q.fx.tick,Q.fx.interval))},Q.fx.stop=function(){clearInterval(Jt),Jt=null},Q.fx.speeds={slow:600,fast:200,_default:400},Q.fn.delay=function(e,t){return e=Q.fx?Q.fx.speeds[e]||e:e,t=t||"fx",this.queue(t,function(t,n){var r=setTimeout(t,e);n.stop=function(){clearTimeout(r)}})},function(){var e=J.createElement("input"),t=J.createElement("select"),n=t.appendChild(J.createElement("option"));e.type="checkbox",K.checkOn=""!==e.value,K.optSelected=n.selected,t.disabled=!0,K.optDisabled=!n.disabled,e=J.createElement("input"),e.value="t",e.type="radio",K.radioValue="t"===e.value}();var rn,an,sn=Q.expr.attrHandle;Q.fn.extend({attr:function(e,t){return gt(this,Q.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each(function(){Q.removeAttr(this,e)})}}),Q.extend({attr:function(e,t,n){var r,i,a=e.nodeType;return e&&3!==a&&8!==a&&2!==a?typeof e.getAttribute===St?Q.prop(e,t,n):(1===a&&Q.isXMLDoc(e)||(t=t.toLowerCase(),r=Q.attrHooks[t]||(Q.expr.match.bool.test(t)?an:rn)),void 0===n?r&&"get"in r&&null!==(i=r.get(e,t))?i:(i=Q.find.attr(e,t),null==i?void 0:i):null!==n?r&&"set"in r&&void 0!==(i=r.set(e,n,t))?i:(e.setAttribute(t,n+""),n):void Q.removeAttr(e,t)):void 0},removeAttr:function(e,t){var n,r,i=0,a=t&&t.match(ft);if(a&&1===e.nodeType)for(;n=a[i++];)r=Q.propFix[n]||n,Q.expr.match.bool.test(n)&&(e[r]=!1),e.removeAttribute(n)},attrHooks:{type:{set:function(e,t){if(!K.radioValue&&"radio"===t&&Q.nodeName(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}}}),an={set:function(e,t,n){return t===!1?Q.removeAttr(e,n):e.setAttribute(n,n),n}},Q.each(Q.expr.match.bool.source.match(/\w+/g),function(e,t){var n=sn[t]||Q.find.attr;sn[t]=function(e,t,r){var i,a;return r||(a=sn[t],sn[t]=i,i=null!=n(e,t,r)?t.toLowerCase():null,sn[t]=a),i}});var on=/^(?:input|select|textarea|button)$/i;Q.fn.extend({prop:function(e,t){return gt(this,Q.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each(function(){delete this[Q.propFix[e]||e]})}}),Q.extend({propFix:{"for":"htmlFor","class":"className"},prop:function(e,t,n){var r,i,a,s=e.nodeType;return e&&3!==s&&8!==s&&2!==s?(a=1!==s||!Q.isXMLDoc(e),a&&(t=Q.propFix[t]||t,i=Q.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]):void 0},propHooks:{tabIndex:{get:function(e){return e.hasAttribute("tabindex")||on.test(e.nodeName)||e.href?e.tabIndex:-1}}}}),K.optSelected||(Q.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null}}),Q.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){Q.propFix[this.toLowerCase()]=this});var ln=/[\t\r\n\f]/g;Q.fn.extend({addClass:function(e){var t,n,r,i,a,s,o="string"==typeof e&&e,l=0,c=this.length;if(Q.isFunction(e))return this.each(function(t){Q(this).addClass(e.call(this,t,this.className))});if(o)for(t=(e||"").match(ft)||[];c>l;l++)if(n=this[l],r=1===n.nodeType&&(n.className?(" "+n.className+" ").replace(ln," "):" ")){for(a=0;i=t[a++];)r.indexOf(" "+i+" ")<0&&(r+=i+" ");s=Q.trim(r),n.className!==s&&(n.className=s)}return this},removeClass:function(e){var t,n,r,i,a,s,o=0===arguments.length||"string"==typeof e&&e,l=0,c=this.length;if(Q.isFunction(e))return this.each(function(t){Q(this).removeClass(e.call(this,t,this.className))});if(o)for(t=(e||"").match(ft)||[];c>l;l++)if(n=this[l],r=1===n.nodeType&&(n.className?(" "+n.className+" ").replace(ln," "):"")){for(a=0;i=t[a++];)for(;r.indexOf(" "+i+" ")>=0;)r=r.replace(" "+i+" "," ");s=e?Q.trim(r):"",n.className!==s&&(n.className=s)}return this},toggleClass:function(e,t){var n=typeof e;return"boolean"==typeof t&&"string"===n?t?this.addClass(e):this.removeClass(e):this.each(Q.isFunction(e)?function(n){Q(this).toggleClass(e.call(this,n,this.className,t),t)}:function(){if("string"===n)for(var t,r=0,i=Q(this),a=e.match(ft)||[];t=a[r++];)i.hasClass(t)?i.removeClass(t):i.addClass(t);else(n===St||"boolean"===n)&&(this.className&&bt.set(this,"__className__",this.className),this.className=this.className||e===!1?"":bt.get(this,"__className__")||"")})},hasClass:function(e){for(var t=" "+e+" ",n=0,r=this.length;r>n;n++)if(1===this[n].nodeType&&(" "+this[n].className+" ").replace(ln," ").indexOf(t)>=0)return!0;return!1}});var cn=/\r/g;Q.fn.extend({val:function(e){var t,n,r,i=this[0];return arguments.length?(r=Q.isFunction(e),this.each(function(n){var i;1===this.nodeType&&(i=r?e.call(this,n,Q(this).val()):e,null==i?i="":"number"==typeof i?i+="":Q.isArray(i)&&(i=Q.map(i,function(e){return null==e?"":e+""})),t=Q.valHooks[this.type]||Q.valHooks[this.nodeName.toLowerCase()],t&&"set"in t&&void 0!==t.set(this,i,"value")||(this.value=i))})):i?(t=Q.valHooks[i.type]||Q.valHooks[i.nodeName.toLowerCase()],t&&"get"in t&&void 0!==(n=t.get(i,"value"))?n:(n=i.value,"string"==typeof n?n.replace(cn,""):null==n?"":n)):void 0}}),Q.extend({valHooks:{option:{get:function(e){var t=Q.find.attr(e,"value");return null!=t?t:Q.trim(Q.text(e))}},select:{get:function(e){for(var t,n,r=e.options,i=e.selectedIndex,a="select-one"===e.type||0>i,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||(K.optDisabled?n.disabled:null!==n.getAttribute("disabled"))||n.parentNode.disabled&&Q.nodeName(n.parentNode,"optgroup"))){if(t=Q(n).val(),a)return t;s.push(t)}return s},set:function(e,t){for(var n,r,i=e.options,a=Q.makeArray(t),s=i.length;s--;)r=i[s],(r.selected=Q.inArray(r.value,a)>=0)&&(n=!0);return n||(e.selectedIndex=-1),a}}}}),Q.each(["radio","checkbox"],function(){Q.valHooks[this]={set:function(e,t){return Q.isArray(t)?e.checked=Q.inArray(Q(e).val(),t)>=0:void 0}},K.checkOn||(Q.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})}),Q.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(e,t){Q.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}}),Q.fn.extend({hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)},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)}});var un=Q.now(),dn=/\?/;Q.parseJSON=function(e){return JSON.parse(e+"")},Q.parseXML=function(e){var t,n;if(!e||"string"!=typeof e)return null;try{n=new DOMParser,t=n.parseFromString(e,"text/xml")}catch(r){t=void 0}return(!t||t.getElementsByTagName("parsererror").length)&&Q.error("Invalid XML: "+e),t};var pn=/#.*$/,fn=/([?&])_=[^&]*/,hn=/^(.*?):[ \t]*([^\r\n]*)$/gm,mn=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,gn=/^(?:GET|HEAD)$/,bn=/^\/\//,vn=/^([\w.+-]+:)(?:\/\/(?:[^\/?#]*@|)([^\/?#:]*)(?::(\d+)|)|)/,yn={},wn={},xn="*/".concat("*"),kn=e.location.href,Cn=vn.exec(kn.toLowerCase())||[];Q.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:kn,type:"GET",isLocal:mn.test(Cn[1]),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":xn,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":Q.parseJSON,"text xml":Q.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?M(M(e,Q.ajaxSettings),t):M(Q.ajaxSettings,e)},ajaxPrefilter:H(yn),ajaxTransport:H(wn),ajax:function(e,t){function n(e,t,n,s){var l,u,b,v,w,k=t;2!==y&&(y=2,o&&clearTimeout(o),r=void 0,a=s||"",x.readyState=e>0?4:0,l=e>=200&&300>e||304===e,n&&(v=O(d,x,n)),v=_(d,v,x,l),l?(d.ifModified&&(w=x.getResponseHeader("Last-Modified"),w&&(Q.lastModified[i]=w),w=x.getResponseHeader("etag"),w&&(Q.etag[i]=w)),204===e||"HEAD"===d.type?k="nocontent":304===e?k="notmodified":(k=v.state,u=v.data,b=v.error,l=!b)):(b=k,(e||!k)&&(k="error",0>e&&(e=0))),x.status=e,x.statusText=(t||k)+"",l?h.resolveWith(p,[u,k,x]):h.rejectWith(p,[x,k,b]),x.statusCode(g),g=void 0,c&&f.trigger(l?"ajaxSuccess":"ajaxError",[x,d,l?u:b]),m.fireWith(p,[x,k]),c&&(f.trigger("ajaxComplete",[x,d]),--Q.active||Q.event.trigger("ajaxStop")))}"object"==typeof e&&(t=e,e=void 0),t=t||{};var r,i,a,s,o,l,c,u,d=Q.ajaxSetup({},t),p=d.context||d,f=d.context&&(p.nodeType||p.jquery)?Q(p):Q.event,h=Q.Deferred(),m=Q.Callbacks("once memory"),g=d.statusCode||{},b={},v={},y=0,w="canceled",x={readyState:0,getResponseHeader:function(e){var t;if(2===y){if(!s)for(s={};t=hn.exec(a);)s[t[1].toLowerCase()]=t[2];t=s[e.toLowerCase()]}return null==t?null:t},getAllResponseHeaders:function(){return 2===y?a:null},setRequestHeader:function(e,t){var n=e.toLowerCase();return y||(e=v[n]=v[n]||e,b[e]=t),this},overrideMimeType:function(e){return y||(d.mimeType=e),this},statusCode:function(e){var t;if(e)if(2>y)for(t in e)g[t]=[g[t],e[t]];else x.always(e[x.status]);return this},abort:function(e){var t=e||w;return r&&r.abort(t),n(0,t),this}};if(h.promise(x).complete=m.add,x.success=x.done,x.error=x.fail,d.url=((e||d.url||kn)+"").replace(pn,"").replace(bn,Cn[1]+"//"),d.type=t.method||t.type||d.method||d.type,d.dataTypes=Q.trim(d.dataType||"*").toLowerCase().match(ft)||[""],null==d.crossDomain&&(l=vn.exec(d.url.toLowerCase()),d.crossDomain=!(!l||l[1]===Cn[1]&&l[2]===Cn[2]&&(l[3]||("http:"===l[1]?"80":"443"))===(Cn[3]||("http:"===Cn[1]?"80":"443")))),d.data&&d.processData&&"string"!=typeof d.data&&(d.data=Q.param(d.data,d.traditional)),$(yn,d,t,x),2===y)return x;c=Q.event&&d.global,c&&0===Q.active++&&Q.event.trigger("ajaxStart"),d.type=d.type.toUpperCase(),d.hasContent=!gn.test(d.type),i=d.url,d.hasContent||(d.data&&(i=d.url+=(dn.test(i)?"&":"?")+d.data,delete d.data),d.cache===!1&&(d.url=fn.test(i)?i.replace(fn,"$1_="+un++):i+(dn.test(i)?"&":"?")+"_="+un++)),d.ifModified&&(Q.lastModified[i]&&x.setRequestHeader("If-Modified-Since",Q.lastModified[i]),Q.etag[i]&&x.setRequestHeader("If-None-Match",Q.etag[i])),(d.data&&d.hasContent&&d.contentType!==!1||t.contentType)&&x.setRequestHeader("Content-Type",d.contentType),x.setRequestHeader("Accept",d.dataTypes[0]&&d.accepts[d.dataTypes[0]]?d.accepts[d.dataTypes[0]]+("*"!==d.dataTypes[0]?", "+xn+"; q=0.01":""):d.accepts["*"]);for(u in d.headers)x.setRequestHeader(u,d.headers[u]);if(d.beforeSend&&(d.beforeSend.call(p,x,d)===!1||2===y))return x.abort();w="abort";for(u in{success:1,error:1,complete:1})x[u](d[u]);if(r=$(wn,d,t,x)){x.readyState=1,c&&f.trigger("ajaxSend",[x,d]),d.async&&d.timeout>0&&(o=setTimeout(function(){x.abort("timeout")},d.timeout));try{y=1,r.send(b,n)}catch(k){if(!(2>y))throw k;n(-1,k)}}else n(-1,"No Transport");return x},getJSON:function(e,t,n){return Q.get(e,t,n,"json")},getScript:function(e,t){return Q.get(e,void 0,t,"script")}}),Q.each(["get","post"],function(e,t){Q[t]=function(e,n,r,i){return Q.isFunction(n)&&(i=i||r,r=n,n=void 0),Q.ajax({url:e,type:t,dataType:i,data:n,success:r})}}),Q._evalUrl=function(e){return Q.ajax({url:e,type:"GET",dataType:"script",async:!1,global:!1,"throws":!0})},Q.fn.extend({wrapAll:function(e){var t;return Q.isFunction(e)?this.each(function(t){Q(this).wrapAll(e.call(this,t))}):(this[0]&&(t=Q(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 this.each(Q.isFunction(e)?function(t){Q(this).wrapInner(e.call(this,t))}:function(){var t=Q(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)})},wrap:function(e){var t=Q.isFunction(e);return this.each(function(n){Q(this).wrapAll(t?e.call(this,n):e)})},unwrap:function(){return this.parent().each(function(){Q.nodeName(this,"body")||Q(this).replaceWith(this.childNodes)}).end()}}),Q.expr.filters.hidden=function(e){return e.offsetWidth<=0&&e.offsetHeight<=0},Q.expr.filters.visible=function(e){return!Q.expr.filters.hidden(e)};var Tn=/%20/g,Sn=/\[\]$/,En=/\r?\n/g,Nn=/^(?:submit|button|image|reset|file)$/i,Dn=/^(?:input|select|textarea|keygen)/i;Q.param=function(e,t){var n,r=[],i=function(e,t){t=Q.isFunction(t)?t():null==t?"":t,r[r.length]=encodeURIComponent(e)+"="+encodeURIComponent(t)};if(void 0===t&&(t=Q.ajaxSettings&&Q.ajaxSettings.traditional),Q.isArray(e)||e.jquery&&!Q.isPlainObject(e))Q.each(e,function(){i(this.name,this.value)});else for(n in e)F(n,e[n],t,i);return r.join("&").replace(Tn,"+")},Q.fn.extend({serialize:function(){return Q.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=Q.prop(this,"elements");return e?Q.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!Q(this).is(":disabled")&&Dn.test(this.nodeName)&&!Nn.test(e)&&(this.checked||!Tt.test(e))}).map(function(e,t){var n=Q(this).val();return null==n?null:Q.isArray(n)?Q.map(n,function(e){return{name:t.name,value:e.replace(En,"\r\n")}}):{name:t.name,value:n.replace(En,"\r\n")}}).get()}}),Q.ajaxSettings.xhr=function(){try{return new XMLHttpRequest}catch(e){}};var An=0,jn={},In={0:200,1223:204},Ln=Q.ajaxSettings.xhr();e.attachEvent&&e.attachEvent("onunload",function(){for(var e in jn)jn[e]()}),K.cors=!!Ln&&"withCredentials"in Ln,K.ajax=Ln=!!Ln,Q.ajaxTransport(function(e){var t;return K.cors||Ln&&!e.crossDomain?{send:function(n,r){var i,a=e.xhr(),s=++An;if(a.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(i in e.xhrFields)a[i]=e.xhrFields[i];e.mimeType&&a.overrideMimeType&&a.overrideMimeType(e.mimeType),e.crossDomain||n["X-Requested-With"]||(n["X-Requested-With"]="XMLHttpRequest");for(i in n)a.setRequestHeader(i,n[i]);t=function(e){return function(){t&&(delete jn[s],t=a.onload=a.onerror=null,"abort"===e?a.abort():"error"===e?r(a.status,a.statusText):r(In[a.status]||a.status,a.statusText,"string"==typeof a.responseText?{text:a.responseText}:void 0,a.getAllResponseHeaders()))}},a.onload=t(),a.onerror=t("error"),t=jn[s]=t("abort");try{a.send(e.hasContent&&e.data||null)}catch(o){if(t)throw o}},abort:function(){t&&t()}}:void 0}),Q.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/(?:java|ecma)script/},converters:{"text script":function(e){return Q.globalEval(e),e}}}),Q.ajaxPrefilter("script",function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")}),Q.ajaxTransport("script",function(e){if(e.crossDomain){var t,n;return{send:function(r,i){t=Q("<script>").prop({async:!0,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 Rn=[],Pn=/(=)\?(?=&|$)|\?\?/;Q.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Rn.pop()||Q.expando+"_"+un++;return this[e]=!0,e}}),Q.ajaxPrefilter("json jsonp",function(t,n,r){var i,a,s,o=t.jsonp!==!1&&(Pn.test(t.url)?"url":"string"==typeof t.data&&!(t.contentType||"").indexOf("application/x-www-form-urlencoded")&&Pn.test(t.data)&&"data");return o||"jsonp"===t.dataTypes[0]?(i=t.jsonpCallback=Q.isFunction(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,o?t[o]=t[o].replace(Pn,"$1"+i):t.jsonp!==!1&&(t.url+=(dn.test(t.url)?"&":"?")+t.jsonp+"="+i),t.converters["script json"]=function(){return s||Q.error(i+" was not called"),s[0]},t.dataTypes[0]="json",a=e[i],e[i]=function(){s=arguments},r.always(function(){e[i]=a,t[i]&&(t.jsonpCallback=n.jsonpCallback,Rn.push(i)),s&&Q.isFunction(a)&&a(s[0]),s=a=void 0}),"script"):void 0}),Q.parseHTML=function(e,t,n){if(!e||"string"!=typeof e)return null;"boolean"==typeof t&&(n=t,t=!1),t=t||J;
var r=st.exec(e),i=!n&&[];return r?[t.createElement(r[1])]:(r=Q.buildFragment([e],t,i),i&&i.length&&Q(i).remove(),Q.merge([],r.childNodes))};var Hn=Q.fn.load;Q.fn.load=function(e,t,n){if("string"!=typeof e&&Hn)return Hn.apply(this,arguments);var r,i,a,s=this,o=e.indexOf(" ");return o>=0&&(r=Q.trim(e.slice(o)),e=e.slice(0,o)),Q.isFunction(t)?(n=t,t=void 0):t&&"object"==typeof t&&(i="POST"),s.length>0&&Q.ajax({url:e,type:i,dataType:"html",data:t}).done(function(e){a=arguments,s.html(r?Q("<div>").append(Q.parseHTML(e)).find(r):e)}).complete(n&&function(e,t){s.each(n,a||[e.responseText,t,e])}),this},Q.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){Q.fn[t]=function(e){return this.on(t,e)}}),Q.expr.filters.animated=function(e){return Q.grep(Q.timers,function(t){return e===t.elem}).length};var $n=e.document.documentElement;Q.offset={setOffset:function(e,t,n){var r,i,a,s,o,l,c,u=Q.css(e,"position"),d=Q(e),p={};"static"===u&&(e.style.position="relative"),o=d.offset(),a=Q.css(e,"top"),l=Q.css(e,"left"),c=("absolute"===u||"fixed"===u)&&(a+l).indexOf("auto")>-1,c?(r=d.position(),s=r.top,i=r.left):(s=parseFloat(a)||0,i=parseFloat(l)||0),Q.isFunction(t)&&(t=t.call(e,n,o)),null!=t.top&&(p.top=t.top-o.top+s),null!=t.left&&(p.left=t.left-o.left+i),"using"in t?t.using.call(e,p):d.css(p)}},Q.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each(function(t){Q.offset.setOffset(this,e,t)});var t,n,r=this[0],i={top:0,left:0},a=r&&r.ownerDocument;return a?(t=a.documentElement,Q.contains(t,r)?(typeof r.getBoundingClientRect!==St&&(i=r.getBoundingClientRect()),n=q(a),{top:i.top+n.pageYOffset-t.clientTop,left:i.left+n.pageXOffset-t.clientLeft}):i):void 0},position:function(){if(this[0]){var e,t,n=this[0],r={top:0,left:0};return"fixed"===Q.css(n,"position")?t=n.getBoundingClientRect():(e=this.offsetParent(),t=this.offset(),Q.nodeName(e[0],"html")||(r=e.offset()),r.top+=Q.css(e[0],"borderTopWidth",!0),r.left+=Q.css(e[0],"borderLeftWidth",!0)),{top:t.top-r.top-Q.css(n,"marginTop",!0),left:t.left-r.left-Q.css(n,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent||$n;e&&!Q.nodeName(e,"html")&&"static"===Q.css(e,"position");)e=e.offsetParent;return e||$n})}}),Q.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,n){var r="pageYOffset"===n;Q.fn[t]=function(i){return gt(this,function(t,i,a){var s=q(t);return void 0===a?s?s[n]:t[i]:void(s?s.scrollTo(r?e.pageXOffset:a,r?a:e.pageYOffset):t[i]=a)},t,i,arguments.length,null)}}),Q.each(["top","left"],function(e,t){Q.cssHooks[t]=k(K.pixelPosition,function(e,n){return n?(n=x(e,t),Wt.test(n)?Q(e).position()[t]+"px":n):void 0})}),Q.each({Height:"height",Width:"width"},function(e,t){Q.each({padding:"inner"+e,content:t,"":"outer"+e},function(n,r){Q.fn[r]=function(r,i){var a=arguments.length&&(n||"boolean"!=typeof r),s=n||(r===!0||i===!0?"margin":"border");return gt(this,function(t,n,r){var i;return Q.isWindow(t)?t.document.documentElement["client"+e]:9===t.nodeType?(i=t.documentElement,Math.max(t.body["scroll"+e],i["scroll"+e],t.body["offset"+e],i["offset"+e],i["client"+e])):void 0===r?Q.css(t,n,s):Q.style(t,n,r,s)},t,a?r:void 0,a,null)}})}),Q.fn.size=function(){return this.length},Q.fn.andSelf=Q.fn.addBack,"function"==typeof define&&define.amd&&define("jquery",[],function(){return Q});var Mn=e.jQuery,On=e.$;return Q.noConflict=function(t){return e.$===Q&&(e.$=On),t&&e.jQuery===Q&&(e.jQuery=Mn),Q},typeof t===St&&(e.jQuery=e.$=Q),Q}),!function(e){function t(e,t){return function(){e.apply(t,arguments)}}function n(e){if("object"!=typeof this)throw new TypeError("Promises must be constructed via new");if("function"!=typeof e)throw new TypeError("not a function");this._state=null,this._value=null,this._deferreds=[],l(e,t(i,this),t(a,this))}function r(e){var t=this;return null===this._state?void this._deferreds.push(e):void c(function(){var n=t._state?e.onFulfilled:e.onRejected;if(null===n)return void(t._state?e.resolve:e.reject)(t._value);var r;try{r=n(t._value)}catch(i){return void e.reject(i)}e.resolve(r)})}function i(e){try{if(e===this)throw new TypeError("A promise cannot be resolved with itself.");if(e&&("object"==typeof e||"function"==typeof e)){var n=e.then;if("function"==typeof n)return void l(t(n,e),t(i,this),t(a,this))}this._state=!0,this._value=e,s.call(this)}catch(r){a.call(this,r)}}function a(e){this._state=!1,this._value=e,s.call(this)}function s(){for(var e=0,t=this._deferreds.length;t>e;e++)r.call(this,this._deferreds[e]);this._deferreds=null}function o(e,t,n,r){this.onFulfilled="function"==typeof e?e:null,this.onRejected="function"==typeof t?t:null,this.resolve=n,this.reject=r}function l(e,t,n){var r=!1;try{e(function(e){r||(r=!0,t(e))},function(e){r||(r=!0,n(e))})}catch(i){if(r)return;r=!0,n(i)}}var c=n.immediateFn||"function"==typeof setImmediate&&setImmediate||function(e){setTimeout(e,1)},u=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};n.prototype["catch"]=function(e){return this.then(null,e)},n.prototype.then=function(e,t){var i=this;return new n(function(n,a){r.call(i,new o(e,t,n,a))})},n.all=function(){var e=Array.prototype.slice.call(1===arguments.length&&u(arguments[0])?arguments[0]:arguments);return new n(function(t,n){function r(a,s){try{if(s&&("object"==typeof s||"function"==typeof s)){var o=s.then;if("function"==typeof o)return void o.call(s,function(e){r(a,e)},n)}e[a]=s,0===--i&&t(e)}catch(l){n(l)}}if(0===e.length)return t([]);for(var i=e.length,a=0;a<e.length;a++)r(a,e[a])})},n.resolve=function(e){return e&&"object"==typeof e&&e.constructor===n?e:new n(function(t){t(e)})},n.reject=function(e){return new n(function(t,n){n(e)})},n.race=function(e){return new n(function(t,n){for(var r=0,i=e.length;i>r;r++)e[r].then(t,n)})},"undefined"!=typeof module&&module.exports?module.exports=n:e.Promise||(e.Promise=n)}(this),define("Promise.min",function(){}),function(e){var t={},n=top!==self;"respecConfig"in window||(window.respecConfig={}),e.respecEvents={pub:function(r){var i=Array.prototype.slice.call(arguments);i.shift(),n&&window.postMessage&&(i=i.map(function(e){return(e.stack||e)+""}),parent.postMessage({topic:r,args:i},"*")),$.each(t[r]||[],function(){this.apply(e,i)})},sub:function(e,n){return t[e]||(t[e]=[]),t[e].push(n),[e,n]},unsub:function(e){var n=e[0];t[n]&&$.each(t[n]||[],function(r){this==e[1]&&t[n].splice(r,1)})}}}(this),window.console&&(respecEvents.sub("warn",function(e){console.warn("WARN: ",e)}),respecEvents.sub("error",function(e){console.error("ERROR: ",e)}),respecEvents.sub("start",function(e){respecConfig&&respecConfig.trace&&console.log(">>> began: "+e)}),respecEvents.sub("end",function(e){respecConfig&&respecConfig.trace&&console.log("<<< finished: "+e)}),respecEvents.sub("start-all",function(){console.log("RESPEC PROCESSING STARTED"),"respecVersion"in window&&respecVersion&&console.log("RESPEC Version: "+respecVersion)}),respecEvents.sub("end-all",function(){console.log("RESPEC DONE!")})),define("core/base-runner",["jquery","Promise.min"],function(){return{runAll:function(e){var t=0;if(respecEvents.pub("start-all"),respecEvents.sub("start",function(){t++}),respecEvents.sub("end",function(){t--,t||(respecEvents.pub("end-all"),document.respecDone=!0)}),respecEvents.pub("start","core/base-runner"),respecConfig.preProcess)for(var n=0;n<respecConfig.preProcess.length;n++)try{respecConfig.preProcess[n].apply(this)}catch(r){respecEvents.pub("error",r)}var i=Promise.resolve();return e.shift(),e.forEach(function(e){i=i.then(function(){return e.run?new Promise(function(t){var n=e.run.call(e,respecConfig,document,t,respecEvents);n&&t(n)}).catch(function(e){respecEvents.pub("error",e),respecEvents.pub("end","unknown/with-error")}):Promise.resolve()})}),i.then(function(){if(respecConfig.postProcess)for(var e=0;e<respecConfig.postProcess.length;e++)try{respecConfig.postProcess[e].apply(this)}catch(t){respecEvents.pub("error",t)}if(respecConfig.afterEnd)try{respecConfig.afterEnd.apply(window,Array.prototype.slice.call(arguments))}catch(t){respecEvents.pub("error",t)}respecEvents.pub("end","core/base-runner")})}}}),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){if(r=r||window.event,n.disable_in_input){var i;if(r.target?i=r.target:r.srcElement&&(i=r.srcElement),3==i.nodeType&&(i=i.parentNode),"INPUT"==i.tagName||"TEXTAREA"==i.tagName)return}r.keyCode?code=r.keyCode:r.which&&(code=r.which);var a=String.fromCharCode(code).toLowerCase();188==code&&(a=","),190==code&&(a=".");var s=e.split("+"),o=0,l={"`":"~",1:"!",2:"@",3:"#",4:"$",5:"%",6:"^",7:"&",8:"*",9:"(",0:")","-":"_","=":"+",";":":","'":'"',",":"<",".":">","/":"?","\\":"|"},c={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},u={shift:{wanted:!1,pressed:!1},ctrl:{wanted:!1,pressed:!1},alt:{wanted:!1,pressed:!1},meta:{wanted:!1,pressed:!1}};r.ctrlKey&&(u.ctrl.pressed=!0),r.shiftKey&&(u.shift.pressed=!0),r.altKey&&(u.alt.pressed=!0),r.metaKey&&(u.meta.pressed=!0);for(var d=0;k=s[d],d<s.length;d++)"ctrl"==k||"control"==k?(o++,u.ctrl.wanted=!0):"shift"==k?(o++,u.shift.wanted=!0):"alt"==k?(o++,u.alt.wanted=!0):"meta"==k?(o++,u.meta.wanted=!0):k.length>1?c[k]==code&&o++:n.keycode?n.keycode==code&&o++:a==k?o++:l[a]&&r.shiftKey&&(a=l[a],a==k&&o++);return o!=s.length||u.ctrl.pressed!=u.ctrl.wanted||u.shift.pressed!=u.shift.wanted||u.alt.pressed!=u.alt.wanted||u.meta.pressed!=u.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/ui",["jquery","shortcut"],function(e,t){var n,r,i,a,s,o,l=e("<div></div>").css({background:"#fff",border:"1px solid #000",width:"200px",display:"none",textAlign:"left",marginTop:"5px",marginRight:"5px"}),c=[],u=[],d={},p=function(t,n,r,a,s){n.push(t),d[r]||(d[r]=e("<button></button>").css({background:a,color:"#fff",fontWeight:"bold",border:"none",borderRadius:"5px",marginLeft:"5px"}).insertAfter(i).click(function(){for(var t=e("<ol></ol>"),r=0,i=n.length;i>r;r++){var a=n[r];a instanceof Error?e("<li><span></span> <a>⊞</a><pre></pre></li>").appendTo(t).find("span").text("["+a.name+"] "+a.message).end().find("a").css({fontSize:"1.1em",color:"#999",cursor:"pointer"}).click(function(){var t=e(this),n=t.text(),r=t.parent().find("pre");"⊞"===n?(t.text("⊟"),r.show()):(t.text("⊞"),r.hide())}).end().find("pre").text(a.stack).css({marginLeft:"0",maxWidth:"100%",overflowY:"hidden",overflowX:"scroll"}).hide().end():e("<li></li>").text(a).appendTo(t)}f.freshModal(s,t)})),d[r].text(n.length)},f={run:function(n,r,c,u){a=n,s=r,o=u,o.pub("start","core/ui");var p=e("<div id='respec-ui' class='removeOnSave'></div>",s).css({position:"fixed",top:"20px",right:"20px",width:"202px",textAlign:"right"}).appendTo(e("body",s));i=e("<button>ReSpec</button>").css({background:"#fff",fontWeight:"bold",border:"1px solid #ccc",borderRadius:"5px"}).click(function(){l.toggle()}).appendTo(p),l.appendTo(p),t.add("Esc",function(){f.closeModal()}),t.add("Ctrl+Alt+Shift+E",function(){d.error&&d.error.click()}),t.add("Ctrl+Alt+Shift+W",function(){d.warning&&d.warning.click()}),o.pub("end","core/ui"),c()},addCommand:function(n,r,i){var c=function(){l.hide(),require([r],function(e){e.show(f,a,s,o)})};e("<button></button>").css({background:"#fff",border:"none",borderBottom:"1px solid #ccc",width:"100%",textAlign:"left",fontSize:"inherit"}).text(n).click(c).appendTo(l),i&&t.add(i,c)},error:function(e){p(e,c,"error","#c00","Errors")},warning:function(e){p(e,u,"warning","#f60","Warnings")},closeModal:function(){r&&r.fadeOut(200,function(){r.remove(),r=null}),n&&(n.remove(),n=null)},freshModal:function(t,i){n&&n.remove(),r&&r.remove();var a=500;r=e("<div id='respec-overlay' class='removeOnSave'></div>").hide(),n=e("<div id='respec-modal' class='removeOnSave'><h3></h3><div class='inside'></div></div>").hide(),n.find("h3").text(t),n.find(".inside").append(i),e("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:-(a/2)+"px",top:"100px",background:"#fff",border:"5px solid #666",borderRadius:"5px",width:a+"px",padding:"0 20px 20px 20px",maxHeight:e(window).height()-150+"px",overflowY:"auto"}).fadeTo(200,1)}};return window.respecEvents&&respecEvents.sub("error",function(e){f.error(e)}),window.respecEvents&&respecEvents.sub("warn",function(e){f.warning(e)}),f}),define("core/include-config",[],function(){return{run:function(e,t,n,r){r.pub("start","core/include-config");var i;try{i=Object.assign?Object.assign({},e):JSON.parse(JSON.stringify(e))}catch(a){i={}}r.sub("end-all",function(){var n=t.createElement("script");n.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};n.innerHTML=JSON.stringify(i,r,2),n.type="application/json",t.head.appendChild(n),e.initialUserConfig=i}),r.pub("end","core/include-config"),n()}}}),define("core/override-configuration",[],function(){return{run:function(e,t,n,r){if(r.pub("start","core/override-configuration"),location.search)for(var i=location.search.replace(/^\?/,"").split(";"),a=0,s=i.length;s>a;a++){var o=i[a].split("=",2),l=decodeURI(o[0]),c=decodeURI(o[1]).replace(/%3D/g,"=");"true"===c?c=!0:"false"===c?c=!1:"null"===c?c=null:/\[\]$/.test(l)&&(l=l.replace(/\[\]/,""),c=JSON.parse(c));try{e[l]=JSON.parse(c)}catch(u){e[l]=c}}r.pub("end","core/override-configuration"),n()}}}),define("core/default-root-attr",[],function(){return{run:function(e,t,n,r){r.pub("start","core/default-root-attr");var i=$(t.documentElement);i.attr("lang")||(i.attr("lang","en"),i.attr("dir")||i.attr("dir","ltr")),r.pub("end","core/default-root-attr"),n()}}}),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='http://www.w3.org/TR/'>W3C technical reports index</a> at http://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='http://www.w3.org/TR/'>W3C technical reports index</a> at http://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='http://www.w3.org/TR/'>W3C技术报告</a>索引访问。",toc:"内容大纲",note:"注",fig:"圖",bug_tracker:"错误跟踪:",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,i){i.pub("start","w3c/l10n");var a=$(n.documentElement).attr("lang")||"en";t.l10n=e[a]?e[a]:e.en,i.pub("end","w3c/l10n"),r()}}}),function(){function e(e,t){return"!"!==e[0][0]?'<a href="'+a(t.href)+'"'+(t.title?' title="'+a(t.title)+'"':"")+">"+f.lexer(e[1])+"</a>":'<img src="'+a(t.href)+'" alt="'+a(e[1])+'"'+(t.title?' title="'+a(t.title)+'"':"")+">"}function t(){return m=h.pop()}function n(){switch(m.type){case"space":return"";case"hr":return"<hr>\n";case"heading":return"<h"+m.depth+">"+f.lexer(m.text)+"</h"+m.depth+">\n";case"code":return g.highlight&&(m.code=g.highlight(m.text,m.lang),null!=m.code&&m.code!==m.text&&(m.escaped=!0,m.text=m.code)),m.escaped||(m.text=a(m.text,!0)),"<pre><code"+(m.lang?' class="lang-'+m.lang+'"':"")+">"+m.text+"</code></pre>\n";case"blockquote_start":for(var e="";"blockquote_end"!==t().type;)e+=n();return"<blockquote>\n"+e+"</blockquote>\n";case"list_start":for(var i=m.ordered?"ol":"ul",e="";"list_end"!==t().type;)e+=n();return"<"+i+">\n"+e+"</"+i+">\n";case"list_item_start":for(var e="";"list_item_end"!==t().type;)e+="text"===m.type?r():n();return"<li>"+e+"</li>\n";case"loose_item_start":for(var e="";"list_item_end"!==t().type;)e+=n();return"<li>"+e+"</li>\n";case"html":return m.pre||g.pedantic?m.text:f.lexer(m.text);case"paragraph":return"<p>"+f.lexer(m.text)+"</p>\n";case"text":return"<p>"+r()+"</p>\n"}}function r(){for(var e,n=m.text;(e=h[h.length-1])&&"text"===e.type;)n+="\n"+t().text;return f.lexer(n)}function i(e){h=e.reverse();for(var r="";t();)r+=n();return h=null,m=null,r}function a(e,t){return e.replace(t?/&/g:/&(?!#?\w+;)/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function s(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}function o(){var e="(?!(?: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+(?!:/|@)\\b";return e}function l(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 c(){}function u(e,t){return d(t),i(p.lexer(e))}function d(e){e||(e=b),g!==e&&(g=e,g.gfm?(p.fences=p.gfm.fences,p.paragraph=p.gfm.paragraph,f.text=f.gfm.text,f.url=f.gfm.url):(p.fences=p.normal.fences,p.paragraph=p.normal.paragraph,f.text=f.normal.text,f.url=f.normal.url),g.pedantic?(f.em=f.pedantic.em,f.strong=f.pedantic.strong):(f.em=f.normal.em,f.strong=f.normal.strong))}var p={newline:/^\n+/,code:/^( {4}[^\n]+\n*)+/,fences:c,hr:/^( *[-*_]){3,} *(?:\n+|$)/,heading:/^ *(#{1,6}) *([^\n]+?) *#* *(?:\n+|$)/,lheading:/^([^\n]+)\n *(=|-){3,} *\n*/,blockquote:/^( *>[^\n]+(\n[^\n]+)*\n*)+/,list:/^( *)(bull) [^\0]+?(?:hr|\n{2,}(?! )(?!\1bull )\n*|\s*$)/,html:/^ *(?:comment|closed|closing) *(?:\n{2,}|\s*$)/,def:/^ *\[([^\]]+)\]: *([^\s]+)(?: +["(]([^\n]+)[")])? *(?:\n+|$)/,paragraph:/^([^\n]+\n?(?!hr|heading|lheading|blockquote|tag|def))+\n*/,text:/^[^\n]+/};p.bullet=/(?:[*+-]|\d+\.)/,p.item=/^( *)(bull) [^\n]*(?:\n(?!\1bull )[^\n]*)*/,p.item=l(p.item,"gm")(/bull/g,p.bullet)(),p.list=l(p.list)(/bull/g,p.bullet)("hr",/\n+(?=(?: *[-*_]){3,} *(?:\n+|$))/)(),p.html=l(p.html)("comment",/<!--[^\0]*?-->/)("closed",/<(tag)[^\0]+?<\/\1>/)("closing",/<tag(?:"[^"]*"|'[^']*'|[^'">])*?>/)(/tag/g,o())(),p.paragraph=l(p.paragraph)("hr",p.hr)("heading",p.heading)("lheading",p.lheading)("blockquote",p.blockquote)("tag","<"+o())("def",p.def)(),p.normal={fences:p.fences,paragraph:p.paragraph},p.gfm={fences:/^ *(```|~~~) *(\w+)? *\n([^\0]+?)\s*\1 *(?:\n+|$)/,paragraph:/^/},p.gfm.paragraph=l(p.paragraph)("(?!","(?!"+p.gfm.fences.source.replace("\\1","\\2")+"|")(),p.lexer=function(e){var t=[];return t.links={},e=e.replace(/\r\n|\r/g,"\n").replace(/\t/g," "),p.token(e,t,!0)},p.token=function(e,t,n){for(var r,i,a,s,o,l,c,e=e.replace(/^ +$/gm,"");e;)if((a=p.newline.exec(e))&&(e=e.substring(a[0].length),a[0].length>1&&t.push({type:"space"})),a=p.code.exec(e))e=e.substring(a[0].length),a=a[0].replace(/^ {4}/gm,""),t.push({type:"code",text:g.pedantic?a:a.replace(/\n+$/,"")});else if(a=p.fences.exec(e))e=e.substring(a[0].length),t.push({type:"code",lang:a[2],text:a[3]});else if(a=p.heading.exec(e))e=e.substring(a[0].length),t.push({type:"heading",depth:a[1].length,text:a[2]});else if(a=p.lheading.exec(e))e=e.substring(a[0].length),t.push({type:"heading",depth:"="===a[2]?1:2,text:a[1]});else if(a=p.hr.exec(e))e=e.substring(a[0].length),t.push({type:"hr"});else if(a=p.blockquote.exec(e))e=e.substring(a[0].length),t.push({type:"blockquote_start"}),a=a[0].replace(/^ *> ?/gm,""),p.token(a,t,n),t.push({type:"blockquote_end"});else if(a=p.list.exec(e)){for(e=e.substring(a[0].length),t.push({type:"list_start",ordered:isFinite(a[2])}),a=a[0].match(p.item),r=!1,c=a.length,l=0;c>l;l++)s=a[l],o=s.length,s=s.replace(/^ *([*+-]|\d+\.) +/,""),~s.indexOf("\n ")&&(o-=s.length,s=g.pedantic?s.replace(/^ {1,4}/gm,""):s.replace(new RegExp("^ {1,"+o+"}","gm"),"")),i=r||/\n\n(?!\s*$)/.test(s),l!==c-1&&(r="\n"===s[s.length-1],i||(i=r)),t.push({type:i?"loose_item_start":"list_item_start"}),p.token(s,t),t.push({type:"list_item_end"});t.push({type:"list_end"})}else(a=p.html.exec(e))?(e=e.substring(a[0].length),t.push({type:g.sanitize?"paragraph":"html",pre:"pre"===a[1],text:a[0]})):n&&(a=p.def.exec(e))?(e=e.substring(a[0].length),t.links[a[1].toLowerCase()]={href:a[2],title:a[3]}):n&&(a=p.paragraph.exec(e))?(e=e.substring(a[0].length),t.push({type:"paragraph",text:a[0]})):(a=p.text.exec(e))&&(e=e.substring(a[0].length),t.push({type:"text",text:a[0]}));return t};var f={escape:/^\\([\\`*{}\[\]()#+\-.!_>])/,autolink:/^<([^ >]+(@|:\/)[^ >]+)>/,url:c,tag:/^<!--[^\0]*?-->|^<\/?\w+(?:"[^"]*"|'[^']*'|[^'">])*?>/,link:/^!?\[(inside)\]\(href\)/,reflink:/^!?\[(inside)\]\s*\[([^\]]*)\]/,nolink:/^!?\[((?:\[[^\]]*\]|[^\[\]])*)\]/,strong:/^__([^\0]+?)__(?!_)|^\*\*([^\0]+?)\*\*(?!\*)/,em:/^\b_((?:__|[^\0])+?)_\b|^\*((?:\*\*|[^\0])+?)\*(?!\*)/,code:/^(`+)([^\0]*?[^`])\1(?!`)/,br:/^ {2,}\n(?!\s*$)/,text:/^[^\0]+?(?=[\\<!\[_*`]| {2,}\n|$)/};f._linkInside=/(?:\[[^\]]*\]|[^\]]|\](?=[^\[]*\]))*/,f._linkHref=/\s*<?([^\s]*?)>?(?:\s+['"]([^\0]*?)['"])?\s*/,f.link=l(f.link)("inside",f._linkInside)("href",f._linkHref)(),f.reflink=l(f.reflink)("inside",f._linkInside)(),f.normal={url:f.url,strong:f.strong,em:f.em,text:f.text},f.pedantic={strong:/^__(?=\S)([^\0]*?\S)__(?!_)|^\*\*(?=\S)([^\0]*?\S)\*\*(?!\*)/,em:/^_(?=\S)([^\0]*?\S)_(?!_)|^\*(?=\S)([^\0]*?\S)\*(?!\*)/},f.gfm={url:/^(https?:\/\/[^\s]+[^.,:;"')\]\s])/,text:/^[^\0]+?(?=[\\<!\[_*`]|https?:\/\/| {2,}\n|$)/},f.lexer=function(t){for(var n,r,i,o,l="",c=h.links;t;)if(o=f.escape.exec(t))t=t.substring(o[0].length),l+=o[1];else if(o=f.autolink.exec(t))t=t.substring(o[0].length),"@"===o[2]?(r=":"===o[1][6]?s(o[1].substring(7)):s(o[1]),i=s("mailto:")+r):(r=a(o[1]),i=r),l+='<a href="'+i+'">'+r+"</a>";else if(o=f.url.exec(t))t=t.substring(o[0].length),r=a(o[1]),i=r,l+='<a href="'+i+'">'+r+"</a>";else if(o=f.tag.exec(t))t=t.substring(o[0].length),l+=g.sanitize?a(o[0]):o[0];else if(o=f.link.exec(t))t=t.substring(o[0].length),l+=e(o,{href:o[2],title:o[3]});else if((o=f.reflink.exec(t))||(o=f.nolink.exec(t))){if(t=t.substring(o[0].length),n=(o[2]||o[1]).replace(/\s+/g," "),n=c[n.toLowerCase()],!n||!n.href){l+=o[0][0],t=o[0].substring(1)+t;continue}l+=e(o,n)}else(o=f.strong.exec(t))?(t=t.substring(o[0].length),l+="<strong>"+f.lexer(o[2]||o[1])+"</strong>"):(o=f.em.exec(t))?(t=t.substring(o[0].length),l+="<em>"+f.lexer(o[2]||o[1])+"</em>"):(o=f.code.exec(t))?(t=t.substring(o[0].length),l+="<code>"+a(o[2],!0)+"</code>"):(o=f.br.exec(t))?(t=t.substring(o[0].length),l+="<br>"):(o=f.text.exec(t))&&(t=t.substring(o[0].length),l+=a(o[0]));return l};var h,m;c.exec=c;var g,b;u.options=u.setOptions=function(e){return b=e,d(e),u},u.setOptions({gfm:!0,pedantic:!1,sanitize:!1,highlight:null}),u.parser=function(e,t){return d(t),i(e)},u.lexer=function(e,t){return d(t),p.lexer(e)},u.parse=u,"undefined"!=typeof module?module.exports=u:this.marked=u}.call(function(){return this||("undefined"!=typeof window?window:global)}()),define("core/marked",function(){}),define("core/markdown",["core/marked"],function(){function e(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(d.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,d=/H[1-6]/;return{addHeader:i,addSection:a,addElement:s,getRoot:o}}return marked.setOptions({gfm:!1,pedantic:!1,sanitize:!1}),{toHTML:function(e){return e=e.replace(/>/g,">"),e=this.removeLeftPadding(e),marked(e)},removeLeftPadding:function(e){var t,n,r=e.match(/\n[ ]+\S/g);if(r){n=r[0].length-2;for(var i=0,a=r.length;a>i;i++)t=r[i].length-2,("undefined"==typeof n||n>t)&&(n=t);var s=new RegExp("\n[ ]{0,"+n+"}","g");e=e.replace(s,"\n")}return e},processBody:function(e){var t,n=e.createDocumentFragment(),r=e.createElement("div");for(r.innerHTML=this.toHTML(e.body.innerHTML);t=r.firstChild;)n.appendChild(t);return n},processSections:function(e){var t=this;$("section",e).each(function(){this.innerHTML=t.toHTML(this.innerHTML)})},processIssuesNotesAndReqs:function(e){var t=e.createElement("div"),n=this;$(".issue, .note, .req",e).each(function(){t.innerHTML=n.toHTML(this.innerHTML),this.innerHTML="";for(var e=t.firstChild;e.firstChild;)this.appendChild(e.firstChild)})},structure:function(t,n){function r(t){for(var i,a,s=e(n);i=t.firstChild;)if(1===i.nodeType)switch(a=i.tagName.toLowerCase()){case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":s.addHeader(i);break;case"section":s.addSection(i,r);break;default:s.addElement(i)}else t.removeChild(i);return s.getRoot()}return r(t)},run:function(e,t,n,r){if(r.pub("start","core/markdown"),"markdown"===e.format){this.processSections(t);var i=$("#respec-ui"),a=this.structure(this.processBody(t),t);t.body.innerHTML="",t.body.appendChild(a),i.length&&$("#respec-ui").replaceWith(i)}r.pub("end","core/markdown"),n()}}}),function(){var e=["Msxml2.XMLHTTP","Microsoft.XMLHTTP","Msxml2.XMLHTTP.4.0"],t=/^\s*<\?xml(\s)+version=[\'\"](\d)*.(\d)*[\'\"](\s)*\?>/im,n=/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im,r="undefined"!=typeof location&&location.href,i=r&&location.protocol&&location.protocol.replace(/\:/,""),a=r&&location.hostname,s=r&&(location.port||void 0),o=[];define("text",[],function(){var l,c;return l={version:"1.0.8",strip:function(e){if(e){var e=e.replace(t,""),r=e.match(n);r&&(e=r[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")},createXhr:function(){var t,n,r;if("undefined"!=typeof XMLHttpRequest)return new XMLHttpRequest;if("undefined"!=typeof ActiveXObject)for(n=0;3>n;n++){r=e[n];try{t=new ActiveXObject(r)}catch(i){}if(t){e=[r];break}}return t},parseName:function(e){var t=!1,n=e.indexOf("."),r=e.substring(0,n),e=e.substring(n+1,e.length),n=e.indexOf("!");return-1!==n&&(t=e.substring(n+1,e.length),t="strip"===t,e=e.substring(0,n)),{moduleName:r,ext:e,strip:t}},xdRegExp:/^((\w+)\:)?\/\/([^\/\\]+)/,useXhr:function(e,t,n,r){var i,a=l.xdRegExp.exec(e);return a?(e=a[2],a=a[3],a=a.split(":"),i=a[1],a=a[0],!(e&&e!==t||a&&a!==n||(i||a)&&i!==r)):!0},finishLoad:function(e,t,n,r,i){n=t?l.strip(n):n,i.isBuild&&(o[e]=n),r(n)},load:function(e,t,n,o){if(o.isBuild&&!o.inlineText)n();else{var c=l.parseName(e),u=c.moduleName+"."+c.ext,d=t.toUrl(u),p=o&&o.text&&o.text.useXhr||l.useXhr;!r||p(d,i,a,s)?l.get(d,function(t){l.finishLoad(e,c.strip,t,n,o)}):t([u],function(e){l.finishLoad(c.moduleName+"."+c.ext,c.strip,e,n,o)})}},write:function(e,t,n){if(o.hasOwnProperty(t)){var r=l.jsEscape(o[t]);n.asModule(e+"!"+t,"define(function () { return '"+r+"';});\n")}},writeFile:function(e,t,n,r,i){var t=l.parseName(t),a=t.moduleName+"."+t.ext,s=n.toUrl(t.moduleName+"."+t.ext)+".js";l.load(a,n,function(){var t=function(e){return r(s,e)};t.asModule=function(e,t){return r.asModule(e,s,t)},l.write(e,a,t,i)},i)}},l.createXhr()?l.get=function(e,t){var n=l.createXhr();n.open("GET",e,!0),n.onreadystatechange=function(){4===n.readyState&&t(n.responseText)},n.send(null)}:"undefined"!=typeof process&&process.versions&&process.versions.node?(c=require.nodeRequire("fs"),l.get=function(e,t){var n=c.readFileSync(e,"utf8");0===n.indexOf("")&&(n=n.substring(1)),t(n)}):"undefined"!=typeof Packages&&(l.get=function(e,t){var n,r,i=new java.io.File(e),a=java.lang.System.getProperty("line.separator"),i=new java.io.BufferedReader(new java.io.InputStreamReader(new java.io.FileInputStream(i),"utf-8")),s="";try{for(n=new java.lang.StringBuffer,(r=i.readLine())&&r.length()&&65279===r.charAt(0)&&(r=r.substring(1)),n.append(r);null!==(r=i.readLine());)n.append(a),n.append(r);s=String(n.toString())}finally{i.close()}t(s)}),l})}(),define("text!core/css/respec2.css",[],function(){return'/*****************************************************************\n * ReSpec 3 CSS\n * Robin Berjon - http://berjon.com/\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\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@media print {\n .removeOnSave {\n display: none;\n }\n}\n'
}),define("core/style",["text!core/css/respec2.css"],function(e){return{run:function(t,n,r,i){i.pub("start","core/style"),t.extraCSS&&i.pub("warn","The 'extraCSS' configuration property is now deprecated."),t.noReSpecCSS||$("<style/>").appendTo($("head",$(n))).text(e),i.pub("end","core/style"),r()}}}),define("core/utils",["jquery"],function(e){e.fn.renameElement=function(t){var n=[];return this.each(function(){for(var r=e(this.ownerDocument.createElement(t)),i=0,a=this.attributes.length;a>i;i++){var s=this.attributes[i];r[0].setAttributeNS(s.namespaceURI,s.name,s.value)}e(this).contents().appendTo(r),e(this).replaceWith(r),n.push(r[0])}),e(n)},e.fn.getDfnTitles=function(e){var n=[],r="",i="",a="";if(void 0===this.attr("data-lt-noDefault")&&(a=t.norm(this.text()).toLowerCase()),this.attr("data-lt")||this.attr("lt")){if(r=this.attr("data-lt")?"data-lt":"lt",i=this.attr(r).toLowerCase(),""!==a){var s=new RegExp("^"+a+"\\|");s.test(i)||(i=a+"|"+i)}}else this.attr("title")?(i=this.attr("title"),r="title",respecEvents.pub("warn","Using deprecated attribute @title for '"+this.text()+"': see http://w3.org/respec/guide.html#definitions-and-linking")):i=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 i=t.norm(i).toLowerCase(),e&&e.isDefinition===!0&&(r&&(this.attr("data-lt",i),this.removeAttr(r)),this.attr("dfn-type")?(this.attr("data-dfn-type",this.attr("dfn-type")),this.removeAttr("dfn-type")):this.attr("data-dfn-type","dfn")),i.split("|").forEach(function(e){""!=e&&n.push(e)}),n},e.fn.linkTargets=function(){var t=this,n=(t.attr("for")||t.attr("data-for")||t.closest("[link-for]").attr("link-for")||t.closest("[data-link-for]").attr("data-link-for")||"").toLowerCase(),r=t.getDfnTitles(),i=[];return e.each(r,function(){i.push({for_:n,title:this});var e=this.split(".");2===e.length&&i.push({for_:e[0],title:e[1]}),i.push({for_:"",title:this})}),i},e.fn.makeID=function(t,n,r){if(this.attr("id"))return this.attr("id");n||(n=this.attr("title")?this.attr("title"):this.text()),n=n.replace(/^\s+/,"").replace(/\s+$/,"");var i=r?n:n.toLowerCase();i=i.split(/[^\-.0-9a-z_]+/i).join("-").replace(/^-+/,"").replace(/-+$/,""),/\.$/.test(i)&&(i+="x"),i.length>0&&/^[^a-z]/i.test(i)&&(i="x"+i),0===i.length&&(i="generatedID"),t&&(i=t+"-"+i);var a=1,s=this[0].ownerDocument;if(e("#"+i,s).length){for(;e("#"+i+"-"+a,s).length;)a++;i+="-"+a}return this.attr("id",i),i},e.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};var t={run:function(e,t,n,r){r.pub("start","core/utils"),r.pub("end","core/utils"),n()},removeReSpec:function(t){e(".remove, script[data-requiremodule]",t).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()},linkCSS:function(t,n){e.isArray(n)||(n=[n]),e.each(n,function(n,r){e("head",t).append(e("<link/>").attr({rel:"stylesheet",href:r}))})},runTransforms:function(e,t){var n=[this,e],r=Array.prototype.slice.call(arguments);if(r.shift(),r.shift(),n=n.concat(r),t)for(var i=t.split(/\s+/),a=0;a<i.length;a++){var s=i[a];if(window[s])try{e=window[s].apply(this,n)}catch(o){respecEvents.pub("warn","call to "+s+"() failed with "+o)}}return e}};return t}),define("w3c/style",["core/utils"],function(e){return{run:function(t,n,r,i){i.pub("start","w3c/style"),t.specStatus||i.pub("error","Configuration 'specStatus' is not set, required for w3c/style");var a=t.specStatus;("FPWD"===a||"LC"===a||"WD-NOTE"===a||"LC-NOTE"===a)&&(a="WD"),"FPWD-NOTE"===a&&(a="WG-NOTE"),("finding"===a||"draft-finding"===a)&&(a="base");var s="https://";"unofficial"===a?s+="www.w3.org/StyleSheets/TR/w3c-unofficial":"base"===a?s+="www.w3.org/StyleSheets/TR/base":"CG-DRAFT"===a||"CG-FINAL"===a||"BG-DRAFT"===a||"BG-FINAL"===a?s+="www.w3.org/community/src/css/spec/"+a.toLowerCase()+".css":"webspec"===a?(s="https://specs.webplatform.org/assets/css/kraken.css",$('<link rel="icon" href="https://specs.webplatform.org/assets/img/icon.png">',n).appendTo($("head")),$(n.createElement("script")).attr({async:"async",src:"https://specs.webplatform.org/assets/js/kraken.js"}).appendTo($("head"))):s+=t.useExperimentalStyles?"www.w3.org/StyleSheets/TR/2016/W3C-"+a:"www.w3.org/StyleSheets/TR/W3C-"+a,e.linkCSS(n,s),i.pub("end","w3c/style"),r()}}});var Handlebars={};Handlebars.VERSION="1.0.beta.6",Handlebars.helpers={},Handlebars.partials={},Handlebars.registerHelper=function(e,t,n){n&&(t.not=n),this.helpers[e]=t},Handlebars.registerPartial=function(e,t){this.partials[e]=t},Handlebars.registerHelper("helperMissing",function(e){if(2===arguments.length)return void 0;throw new Error("Could not find property '"+e+"'")});var toString=Object.prototype.toString,functionType="[object Function]";Handlebars.registerHelper("blockHelperMissing",function(e,t){var n=t.inverse||function(){},r=t.fn,i="",a=toString.call(e);if(a===functionType&&(e=e.call(this)),e===!0)return r(this);if(e===!1||null==e)return n(this);if("[object Array]"===a){if(e.length>0)for(var s=0,o=e.length;o>s;s++)i+=r(e[s]);else i=n(this);return i}return r(e)}),Handlebars.registerHelper("each",function(e,t){var n=t.fn,r=t.inverse,i="";if(e&&e.length>0)for(var a=0,s=e.length;s>a;a++)i+=n(e[a]);else i=r(this);return i}),Handlebars.registerHelper("if",function(e,t){var n=toString.call(e);return n===functionType&&(e=e.call(this)),!e||Handlebars.Utils.isEmpty(e)?t.inverse(this):t.fn(this)}),Handlebars.registerHelper("unless",function(e,t){var n=t.fn,r=t.inverse;return t.fn=r,t.inverse=n,Handlebars.helpers["if"].call(this,e,t)}),Handlebars.registerHelper("with",function(e,t){return t.fn(e)}),Handlebars.registerHelper("log",function(e){Handlebars.log(e)});var handlebars=function(){var e={trace:function(){},yy:{},symbols_:{error:2,root:3,program:4,EOF:5,statements:6,simpleInverse:7,statement:8,openInverse:9,closeBlock:10,openBlock:11,mustache:12,partial:13,CONTENT:14,COMMENT:15,OPEN_BLOCK:16,inMustache:17,CLOSE:18,OPEN_INVERSE:19,OPEN_ENDBLOCK:20,path:21,OPEN:22,OPEN_UNESCAPED:23,OPEN_PARTIAL:24,params:25,hash:26,param:27,STRING:28,INTEGER:29,BOOLEAN:30,hashSegments:31,hashSegment:32,ID:33,EQUALS:34,pathSegments:35,SEP:36,$accept:0,$end:1},terminals_:{2:"error",5:"EOF",14:"CONTENT",15:"COMMENT",16:"OPEN_BLOCK",18:"CLOSE",19:"OPEN_INVERSE",20:"OPEN_ENDBLOCK",22:"OPEN",23:"OPEN_UNESCAPED",24:"OPEN_PARTIAL",28:"STRING",29:"INTEGER",30:"BOOLEAN",33:"ID",34:"EQUALS",36:"SEP"},productions_:[0,[3,2],[4,3],[4,1],[4,0],[6,1],[6,2],[8,3],[8,3],[8,1],[8,1],[8,1],[8,1],[11,3],[9,3],[10,3],[12,3],[12,3],[13,3],[13,4],[7,2],[17,3],[17,2],[17,2],[17,1],[25,2],[25,1],[27,1],[27,1],[27,1],[27,1],[26,1],[31,2],[31,1],[32,3],[32,3],[32,3],[32,3],[21,1],[35,3],[35,1]],performAction:function(e,t,n,r,i,a){var s=a.length-1;switch(i){case 1:return a[s-1];case 2:this.$=new r.ProgramNode(a[s-2],a[s]);break;case 3:this.$=new r.ProgramNode(a[s]);break;case 4:this.$=new r.ProgramNode([]);break;case 5:this.$=[a[s]];break;case 6:a[s-1].push(a[s]),this.$=a[s-1];break;case 7:this.$=new r.InverseNode(a[s-2],a[s-1],a[s]);break;case 8:this.$=new r.BlockNode(a[s-2],a[s-1],a[s]);break;case 9:this.$=a[s];break;case 10:this.$=a[s];break;case 11:this.$=new r.ContentNode(a[s]);break;case 12:this.$=new r.CommentNode(a[s]);break;case 13:this.$=new r.MustacheNode(a[s-1][0],a[s-1][1]);break;case 14:this.$=new r.MustacheNode(a[s-1][0],a[s-1][1]);break;case 15:this.$=a[s-1];break;case 16:this.$=new r.MustacheNode(a[s-1][0],a[s-1][1]);break;case 17:this.$=new r.MustacheNode(a[s-1][0],a[s-1][1],!0);break;case 18:this.$=new r.PartialNode(a[s-1]);break;case 19:this.$=new r.PartialNode(a[s-2],a[s-1]);break;case 20:break;case 21:this.$=[[a[s-2]].concat(a[s-1]),a[s]];break;case 22:this.$=[[a[s-1]].concat(a[s]),null];break;case 23:this.$=[[a[s-1]],a[s]];break;case 24:this.$=[[a[s]],null];break;case 25:a[s-1].push(a[s]),this.$=a[s-1];break;case 26:this.$=[a[s]];break;case 27:this.$=a[s];break;case 28:this.$=new r.StringNode(a[s]);break;case 29:this.$=new r.IntegerNode(a[s]);break;case 30:this.$=new r.BooleanNode(a[s]);break;case 31:this.$=new r.HashNode(a[s]);break;case 32:a[s-1].push(a[s]),this.$=a[s-1];break;case 33:this.$=[a[s]];break;case 34:this.$=[a[s-2],a[s]];break;case 35:this.$=[a[s-2],new r.StringNode(a[s])];break;case 36:this.$=[a[s-2],new r.IntegerNode(a[s])];break;case 37:this.$=[a[s-2],new r.BooleanNode(a[s])];break;case 38:this.$=new r.IdNode(a[s]);break;case 39:a[s-2].push(a[s]),this.$=a[s-2];break;case 40:this.$=[a[s]]}},table:[{3:1,4:2,5:[2,4],6:3,8:4,9:5,11:6,12:7,13:8,14:[1,9],15:[1,10],16:[1,12],19:[1,11],22:[1,13],23:[1,14],24:[1,15]},{1:[3]},{5:[1,16]},{5:[2,3],7:17,8:18,9:5,11:6,12:7,13:8,14:[1,9],15:[1,10],16:[1,12],19:[1,19],20:[2,3],22:[1,13],23:[1,14],24:[1,15]},{5:[2,5],14:[2,5],15:[2,5],16:[2,5],19:[2,5],20:[2,5],22:[2,5],23:[2,5],24:[2,5]},{4:20,6:3,8:4,9:5,11:6,12:7,13:8,14:[1,9],15:[1,10],16:[1,12],19:[1,11],20:[2,4],22:[1,13],23:[1,14],24:[1,15]},{4:21,6:3,8:4,9:5,11:6,12:7,13:8,14:[1,9],15:[1,10],16:[1,12],19:[1,11],20:[2,4],22:[1,13],23:[1,14],24:[1,15]},{5:[2,9],14:[2,9],15:[2,9],16:[2,9],19:[2,9],20:[2,9],22:[2,9],23:[2,9],24:[2,9]},{5:[2,10],14:[2,10],15:[2,10],16:[2,10],19:[2,10],20:[2,10],22:[2,10],23:[2,10],24:[2,10]},{5:[2,11],14:[2,11],15:[2,11],16:[2,11],19:[2,11],20:[2,11],22:[2,11],23:[2,11],24:[2,11]},{5:[2,12],14:[2,12],15:[2,12],16:[2,12],19:[2,12],20:[2,12],22:[2,12],23:[2,12],24:[2,12]},{17:22,21:23,33:[1,25],35:24},{17:26,21:23,33:[1,25],35:24},{17:27,21:23,33:[1,25],35:24},{17:28,21:23,33:[1,25],35:24},{21:29,33:[1,25],35:24},{1:[2,1]},{6:30,8:4,9:5,11:6,12:7,13:8,14:[1,9],15:[1,10],16:[1,12],19:[1,11],22:[1,13],23:[1,14],24:[1,15]},{5:[2,6],14:[2,6],15:[2,6],16:[2,6],19:[2,6],20:[2,6],22:[2,6],23:[2,6],24:[2,6]},{17:22,18:[1,31],21:23,33:[1,25],35:24},{10:32,20:[1,33]},{10:34,20:[1,33]},{18:[1,35]},{18:[2,24],21:40,25:36,26:37,27:38,28:[1,41],29:[1,42],30:[1,43],31:39,32:44,33:[1,45],35:24},{18:[2,38],28:[2,38],29:[2,38],30:[2,38],33:[2,38],36:[1,46]},{18:[2,40],28:[2,40],29:[2,40],30:[2,40],33:[2,40],36:[2,40]},{18:[1,47]},{18:[1,48]},{18:[1,49]},{18:[1,50],21:51,33:[1,25],35:24},{5:[2,2],8:18,9:5,11:6,12:7,13:8,14:[1,9],15:[1,10],16:[1,12],19:[1,11],20:[2,2],22:[1,13],23:[1,14],24:[1,15]},{14:[2,20],15:[2,20],16:[2,20],19:[2,20],22:[2,20],23:[2,20],24:[2,20]},{5:[2,7],14:[2,7],15:[2,7],16:[2,7],19:[2,7],20:[2,7],22:[2,7],23:[2,7],24:[2,7]},{21:52,33:[1,25],35:24},{5:[2,8],14:[2,8],15:[2,8],16:[2,8],19:[2,8],20:[2,8],22:[2,8],23:[2,8],24:[2,8]},{14:[2,14],15:[2,14],16:[2,14],19:[2,14],20:[2,14],22:[2,14],23:[2,14],24:[2,14]},{18:[2,22],21:40,26:53,27:54,28:[1,41],29:[1,42],30:[1,43],31:39,32:44,33:[1,45],35:24},{18:[2,23]},{18:[2,26],28:[2,26],29:[2,26],30:[2,26],33:[2,26]},{18:[2,31],32:55,33:[1,56]},{18:[2,27],28:[2,27],29:[2,27],30:[2,27],33:[2,27]},{18:[2,28],28:[2,28],29:[2,28],30:[2,28],33:[2,28]},{18:[2,29],28:[2,29],29:[2,29],30:[2,29],33:[2,29]},{18:[2,30],28:[2,30],29:[2,30],30:[2,30],33:[2,30]},{18:[2,33],33:[2,33]},{18:[2,40],28:[2,40],29:[2,40],30:[2,40],33:[2,40],34:[1,57],36:[2,40]},{33:[1,58]},{14:[2,13],15:[2,13],16:[2,13],19:[2,13],20:[2,13],22:[2,13],23:[2,13],24:[2,13]},{5:[2,16],14:[2,16],15:[2,16],16:[2,16],19:[2,16],20:[2,16],22:[2,16],23:[2,16],24:[2,16]},{5:[2,17],14:[2,17],15:[2,17],16:[2,17],19:[2,17],20:[2,17],22:[2,17],23:[2,17],24:[2,17]},{5:[2,18],14:[2,18],15:[2,18],16:[2,18],19:[2,18],20:[2,18],22:[2,18],23:[2,18],24:[2,18]},{18:[1,59]},{18:[1,60]},{18:[2,21]},{18:[2,25],28:[2,25],29:[2,25],30:[2,25],33:[2,25]},{18:[2,32],33:[2,32]},{34:[1,57]},{21:61,28:[1,62],29:[1,63],30:[1,64],33:[1,25],35:24},{18:[2,39],28:[2,39],29:[2,39],30:[2,39],33:[2,39],36:[2,39]},{5:[2,19],14:[2,19],15:[2,19],16:[2,19],19:[2,19],20:[2,19],22:[2,19],23:[2,19],24:[2,19]},{5:[2,15],14:[2,15],15:[2,15],16:[2,15],19:[2,15],20:[2,15],22:[2,15],23:[2,15],24:[2,15]},{18:[2,34],33:[2,34]},{18:[2,35],33:[2,35]},{18:[2,36],33:[2,36]},{18:[2,37],33:[2,37]}],defaultActions:{16:[2,1],37:[2,23],53:[2,21]},parseError:function(e){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,"undefined"==typeof this.lexer.yylloc&&(this.lexer.yylloc={});var d=this.lexer.yylloc;a.push(d),"function"==typeof this.yy.parseError&&(this.parseError=this.yy.parseError);for(var p,f,h,m,g,b,v,y,w,x={};;){if(h=r[r.length-1],this.defaultActions[h]?m=this.defaultActions[h]:(null==p&&(p=t()),m=s[h]&&s[h][p]),!("undefined"!=typeof m&&m.length&&m[0]||u)){w=[];for(b in s[h])this.terminals_[b]&&b>2&&w.push("'"+this.terminals_[b]+"'");var k="";k=this.lexer.showPosition?"Parse error on line "+(l+1)+":\n"+this.lexer.showPosition()+"\nExpecting "+w.join(", ")+", got '"+this.terminals_[p]+"'":"Parse error on line "+(l+1)+": Unexpected "+(1==p?"end of input":"'"+(this.terminals_[p]||p)+"'"),this.parseError(k,{text:this.lexer.match,token:this.terminals_[p]||p,line:this.lexer.yylineno,loc:d,expected:w})}if(m[0]instanceof Array&&m.length>1)throw new Error("Parse Error: multiple actions possible at state: "+h+", token: "+p);switch(m[0]){case 1:r.push(p),i.push(this.lexer.yytext),a.push(this.lexer.yylloc),r.push(m[1]),p=null,f?(p=f,f=null):(c=this.lexer.yyleng,o=this.lexer.yytext,l=this.lexer.yylineno,d=this.lexer.yylloc,u>0&&u--);break;case 2:if(v=this.productions_[m[1]][1],x.$=i[i.length-v],x._$={first_line:a[a.length-(v||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(v||1)].first_column,last_column:a[a.length-1].last_column},g=this.performAction.call(x,o,c,l,this.yy,m[1],i,a),"undefined"!=typeof g)return g;v&&(r=r.slice(0,2*-1*v),i=i.slice(0,-1*v),a=a.slice(0,-1*v)),r.push(this.productions_[m[1]][0]),i.push(x.$),a.push(x._$),y=s[r[r.length-2]][r[r.length-1]],r.push(y);break;case 3:return!0}}return!0}},t=function(){var e={EOF:1,parseError:function(e,t){if(!this.yy.parseError)throw new Error(e);this.yy.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},input:function(){var e=this._input[0];this.yytext+=e,this.yyleng++,this.match+=e,this.matched+=e;var t=e.match(/\n/);return t&&this.yylineno++,this._input=this._input.slice(1),e},unput:function(e){return this._input=e+this._input,this},more:function(){return this._more=!0,this},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;this._more||(this.yytext="",this.match="");for(var r=this._currentRules(),i=0;i<r.length;i++)if(t=this._input.match(this.rules[r[i]]))return n=t[0].match(/\n.*/g),n&&(this.yylineno+=n.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:n?n[n.length-1].length-1:this.yylloc.last_column+t[0].length},this.yytext+=t[0],this.match+=t[0],this.matches=t,this.yyleng=this.yytext.length,this._more=!1,this._input=this._input.slice(t[0].length),this.matched+=t[0],e=this.performAction.call(this,this.yy,this,r[i],this.conditionStack[this.conditionStack.length-1]),e?e:void 0;return""===this._input?this.EOF:(this.parseError("Lexical error on line "+(this.yylineno+1)+". Unrecognized text.\n"+this.showPosition(),{text:"",token:null,line:this.yylineno}),void 0)},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.performAction=function(e,t,n,r){switch(n){case 0:if("\\"!==t.yytext.slice(-1)&&this.begin("mu"),"\\"===t.yytext.slice(-1)&&(t.yytext=t.yytext.substr(0,t.yyleng-1),this.begin("emu")),t.yytext)return 14;break;case 1:return 14;case 2:return this.popState(),14;case 3:return 24;case 4:return 16;case 5:return 20;case 6:return 19;case 7:return 19;case 8:return 23;case 9:return 23;case 10:return t.yytext=t.yytext.substr(3,t.yyleng-5),this.popState(),15;case 11:return 22;case 12:return 34;case 13:return 33;case 14:return 33;case 15:return 36;case 16:break;case 17:return this.popState(),18;case 18:return this.popState(),18;case 19:return t.yytext=t.yytext.substr(1,t.yyleng-2).replace(/\\"/g,'"'),28;case 20:return 30;case 21:return 30;case 22:return 29;case 23:return 33;case 24:return t.yytext=t.yytext.substr(1,t.yyleng-2),33;case 25:return"INVALID";case 26:return 5}},e.rules=[/^[^\x00]*?(?=(\{\{))/,/^[^\x00]+/,/^[^\x00]{2,}?(?=(\{\{))/,/^\{\{>/,/^\{\{#/,/^\{\{\//,/^\{\{\^/,/^\{\{\s*else\b/,/^\{\{\{/,/^\{\{&/,/^\{\{![\s\S]*?\}\}/,/^\{\{/,/^=/,/^\.(?=[} ])/,/^\.\./,/^[\/.]/,/^\s+/,/^\}\}\}/,/^\}\}/,/^"(\\["]|[^"])*"/,/^true(?=[}\s])/,/^false(?=[}\s])/,/^[0-9]+(?=[}\s])/,/^[a-zA-Z0-9_$-]+(?=[=}\s\/.])/,/^\[[^\]]*\]/,/^./,/^$/],e.conditions={mu:{rules:[3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26],inclusive:!1},emu:{rules:[2],inclusive:!1},INITIAL:{rules:[0,1,26],inclusive:!0}},e}();return e.lexer=t,e}();"undefined"!=typeof require&&"undefined"!=typeof exports&&(exports.parser=handlebars,exports.parse=function(){return handlebars.parse.apply(handlebars,arguments)},exports.main=function(e){if(!e[1])throw new Error("Usage: "+e[0]+" FILE");if("undefined"!=typeof process)var t=require("fs").readFileSync(require("path").join(process.cwd(),e[1]),"utf8");else var n=require("file").path(require("file").cwd()),t=n.join(e[1]).read({charset:"utf-8"});return exports.parser.parse(t)},"undefined"!=typeof module&&require.main===module&&exports.main("undefined"!=typeof process?process.argv.slice(1):require("system").args)),Handlebars.Parser=handlebars,Handlebars.parse=function(e){return Handlebars.Parser.yy=Handlebars.AST,Handlebars.Parser.parse(e)},Handlebars.print=function(e){return(new Handlebars.PrintVisitor).accept(e)},Handlebars.logger={DEBUG:0,INFO:1,WARN:2,ERROR:3,level:3,log:function(){}},Handlebars.log=function(e,t){Handlebars.logger.log(e,t)},function(){Handlebars.AST={},Handlebars.AST.ProgramNode=function(e,t){this.type="program",this.statements=e,t&&(this.inverse=new Handlebars.AST.ProgramNode(t))},Handlebars.AST.MustacheNode=function(e,t,n){this.type="mustache",this.id=e[0],this.params=e.slice(1),this.hash=t,this.escaped=!n},Handlebars.AST.PartialNode=function(e,t){this.type="partial",this.id=e,this.context=t};var e=function(e,t){if(e.original!==t.original)throw new Handlebars.Exception(e.original+" doesn't match "+t.original)};Handlebars.AST.BlockNode=function(t,n,r){e(t.id,r),this.type="block",this.mustache=t,this.program=n},Handlebars.AST.InverseNode=function(t,n,r){e(t.id,r),this.type="inverse",this.mustache=t,this.program=n},Handlebars.AST.ContentNode=function(e){this.type="content",this.string=e},Handlebars.AST.HashNode=function(e){this.type="hash",this.pairs=e},Handlebars.AST.IdNode=function(e){this.type="ID",this.original=e.join(".");for(var t=[],n=0,r=0,i=e.length;i>r;r++){var a=e[r];".."===a?n++:"."===a||"this"===a?this.isScoped=!0:t.push(a)}this.parts=t,this.string=t.join("."),this.depth=n,this.isSimple=1===t.length&&0===n},Handlebars.AST.StringNode=function(e){this.type="STRING",this.string=e},Handlebars.AST.IntegerNode=function(e){this.type="INTEGER",this.integer=e},Handlebars.AST.BooleanNode=function(e){this.type="BOOLEAN",this.bool=e},Handlebars.AST.CommentNode=function(e){this.type="comment",this.comment=e}}(),Handlebars.Exception=function(){var e=Error.prototype.constructor.apply(this,arguments);for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);this.message=e.message},Handlebars.Exception.prototype=new Error,Handlebars.SafeString=function(e){this.string=e},Handlebars.SafeString.prototype.toString=function(){return this.string.toString()},function(){var e={"<":"<",">":">",'"':""","'":"'","`":"`"},t=/&(?!\w+;)|[<>"'`]/g,n=/[&<>"'`]/,r=function(t){return e[t]||"&"};Handlebars.Utils={escapeExpression:function(e){return e instanceof Handlebars.SafeString?e.toString():null==e||e===!1?"":n.test(e)?e.replace(t,r):e},isEmpty:function(e){return"undefined"==typeof e?!0:null===e?!0:e===!1?!0:"[object Array]"===Object.prototype.toString.call(e)&&0===e.length?!0:!1}}}(),Handlebars.Compiler=function(){},Handlebars.JavaScriptCompiler=function(){},function(e,t){e.OPCODE_MAP={appendContent:1,getContext:2,lookupWithHelpers:3,lookup:4,append:5,invokeMustache:6,appendEscaped:7,pushString:8,truthyOrFallback:9,functionOrFallback:10,invokeProgram:11,invokePartial:12,push:13,assignToHash:15,pushStringParam:16},e.MULTI_PARAM_OPCODES={appendContent:1,getContext:1,lookupWithHelpers:2,lookup:1,invokeMustache:3,pushString:1,truthyOrFallback:1,functionOrFallback:1,invokeProgram:3,invokePartial:1,push:1,assignToHash:1,pushStringParam:1},e.DISASSEMBLE_MAP={};for(var n in e.OPCODE_MAP){var r=e.OPCODE_MAP[n];e.DISASSEMBLE_MAP[r]=n}e.multiParamSize=function(t){return e.MULTI_PARAM_OPCODES[e.DISASSEMBLE_MAP[t]]},e.prototype={compiler:e,disassemble:function(){for(var t,n,r,i,a,s=this.opcodes,o=[],l=0,c=s.length;c>l;l++)if(t=s[l],"DECLARE"===t)i=s[++l],a=s[++l],o.push("DECLARE "+i+" = "+a);else{r=e.DISASSEMBLE_MAP[t];for(var u=e.multiParamSize(t),d=[],p=0;u>p;p++)n=s[++l],"string"==typeof n&&(n='"'+n.replace("\n","\\n")+'"'),d.push(n);r=r+" "+d.join(" "),o.push(r)}return o.join("\n")},guid:0,compile:function(e,t){this.children=[],this.depths={list:[]},this.options=t;var n=this.options.knownHelpers;if(this.options.knownHelpers={helperMissing:!0,blockHelperMissing:!0,each:!0,"if":!0,unless:!0,"with":!0,log:!0},n)for(var r in n)this.options.knownHelpers[r]=n[r];return this.program(e)},accept:function(e){return this[e.type](e)},program:function(e){var t,n=e.statements;this.opcodes=[];for(var r=0,i=n.length;i>r;r++)t=n[r],this[t.type](t);return this.isSimple=1===i,this.depths.list=this.depths.list.sort(function(e,t){return e-t}),this},compileProgram:function(e){var t=(new this.compiler).compile(e,this.options),n=this.guid++;this.usePartial=this.usePartial||t.usePartial,this.children[n]=t;for(var r=0,i=t.depths.list.length;i>r;r++)depth=t.depths.list[r],2>depth||this.addDepth(depth-1);return n},block:function(e){var t,n=e.mustache,r=this.setupStackForMustache(n),i=this.compileProgram(e.program);e.program.inverse&&(t=this.compileProgram(e.program.inverse),this.declare("inverse",t)),this.opcode("invokeProgram",i,r.length,!!n.hash),this.declare("inverse",null),this.opcode("append")},inverse:function(e){var t=this.setupStackForMustache(e.mustache),n=this.compileProgram(e.program);this.declare("inverse",n),this.opcode("invokeProgram",null,t.length,!!e.mustache.hash),this.declare("inverse",null),this.opcode("append")},hash:function(e){var t,n,r=e.pairs;this.opcode("push","{}");for(var i=0,a=r.length;a>i;i++)t=r[i],n=t[1],this.accept(n),this.opcode("assignToHash",t[0])},partial:function(e){var t=e.id;this.usePartial=!0,e.context?this.ID(e.context):this.opcode("push","depth0"),this.opcode("invokePartial",t.original),this.opcode("append")},content:function(e){this.opcode("appendContent",e.string)},mustache:function(e){var t=this.setupStackForMustache(e);this.opcode("invokeMustache",t.length,e.id.original,!!e.hash),e.escaped&&!this.options.noEscape?this.opcode("appendEscaped"):this.opcode("append")},ID:function(e){this.addDepth(e.depth),this.opcode("getContext",e.depth),this.opcode("lookupWithHelpers",e.parts[0]||null,e.isScoped||!1);for(var t=1,n=e.parts.length;n>t;t++)this.opcode("lookup",e.parts[t])},STRING:function(e){this.opcode("pushString",e.string)},INTEGER:function(e){this.opcode("push",e.integer)},BOOLEAN:function(e){this.opcode("push",e.bool)},comment:function(){},pushParams:function(e){for(var t,n=e.length;n--;)t=e[n],this.options.stringParams?(t.depth&&this.addDepth(t.depth),this.opcode("getContext",t.depth||0),this.opcode("pushStringParam",t.string)):this[t.type](t)},opcode:function(t,n,r,i){this.opcodes.push(e.OPCODE_MAP[t]),void 0!==n&&this.opcodes.push(n),void 0!==r&&this.opcodes.push(r),void 0!==i&&this.opcodes.push(i)},declare:function(e,t){this.opcodes.push("DECLARE"),this.opcodes.push(e),this.opcodes.push(t)},addDepth:function(e){0!==e&&(this.depths[e]||(this.depths[e]=!0,this.depths.list.push(e)))},setupStackForMustache:function(e){var t=e.params;return this.pushParams(t),e.hash&&this.hash(e.hash),this.ID(e.id),t}},t.prototype={nameLookup:function(e,n){return/^[0-9]+$/.test(n)?e+"["+n+"]":t.isValidJavaScriptVariableName(n)?e+"."+n:e+"['"+n+"']"},appendToBuffer:function(e){return this.environment.isSimple?"return "+e+";":"buffer += "+e+";"},initializeBuffer:function(){return this.quotedString("")},namespace:"Handlebars",compile:function(e,t,n,r){this.environment=e,this.options=t||{},this.name=this.environment.name,this.isChild=!!n,this.context=n||{programs:[],aliases:{self:"this"},registers:{list:[]}},this.preamble(),this.stackSlot=0,this.stackVars=[],this.compileChildren(e,t);var i,a=e.opcodes;for(this.i=0,o=a.length;this.i<o;this.i++)i=this.nextOpcode(0),"DECLARE"===i[0]?(this.i=this.i+2,this[i[1]]=i[2]):(this.i=this.i+i[1].length,this[i[0]].apply(this,i[1]));return this.createFunctionContext(r)},nextOpcode:function(t){var n,r,i,a,s=this.environment.opcodes,o=s[this.i+t];if("DECLARE"===o)return n=s[this.i+1],r=s[this.i+2],["DECLARE",n,r];n=e.DISASSEMBLE_MAP[o],i=e.multiParamSize(o),a=[];for(var l=0;i>l;l++)a.push(s[this.i+l+1+t]);return[n,a]},eat:function(e){this.i=this.i+e.length},preamble:function(){var e=[];if(this.useRegister("foundHelper"),this.isChild)e.push("");else{var t=this.namespace,n="helpers = helpers || "+t+".helpers;";this.environment.usePartial&&(n=n+" partials = partials || "+t+".partials;"),e.push(n)}this.environment.isSimple?e.push(""):e.push(", buffer = "+this.initializeBuffer()),this.lastContext=0,this.source=e},createFunctionContext:function(e){var t=this.stackVars;if(this.isChild||(t=t.concat(this.context.registers.list)),t.length>0&&(this.source[1]=this.source[1]+", "+t.join(", ")),!this.isChild)for(var n in this.context.aliases)this.source[1]=this.source[1]+", "+n+"="+this.context.aliases[n];this.source[1]&&(this.source[1]="var "+this.source[1].substring(2)+";"),this.isChild||(this.source[1]+="\n"+this.context.programs.join("\n")+"\n"),this.environment.isSimple||this.source.push("return buffer;");for(var r=this.isChild?["depth0","data"]:["Handlebars","depth0","helpers","partials","data"],i=0,a=this.environment.depths.list.length;a>i;i++)r.push("depth"+this.environment.depths.list[i]);if(e)return r.push(this.source.join("\n ")),Function.apply(this,r);var s="function "+(this.name||"")+"("+r.join(",")+") {\n "+this.source.join("\n ")+"}";return Handlebars.log(Handlebars.logger.DEBUG,s+"\n\n"),s},appendContent:function(e){this.source.push(this.appendToBuffer(this.quotedString(e)))},append:function(){var e=this.popStack();this.source.push("if("+e+" || "+e+" === 0) { "+this.appendToBuffer(e)+" }"),this.environment.isSimple&&this.source.push("else { "+this.appendToBuffer("''")+" }")},appendEscaped:function(){var e=this.nextOpcode(1),t="";this.context.aliases.escapeExpression="this.escapeExpression","appendContent"===e[0]&&(t=" + "+this.quotedString(e[1][0]),this.eat(e)),this.source.push(this.appendToBuffer("escapeExpression("+this.popStack()+")"+t))},getContext:function(e){this.lastContext!==e&&(this.lastContext=e)},lookupWithHelpers:function(e,t){if(e){var n=this.nextStack();this.usingKnownHelper=!1;var r;!t&&this.options.knownHelpers[e]?(r=n+" = "+this.nameLookup("helpers",e,"helper"),this.usingKnownHelper=!0):t||this.options.knownHelpersOnly?r=n+" = "+this.nameLookup("depth"+this.lastContext,e,"context"):(this.register("foundHelper",this.nameLookup("helpers",e,"helper")),r=n+" = foundHelper || "+this.nameLookup("depth"+this.lastContext,e,"context")),r+=";",this.source.push(r)}else this.pushStack("depth"+this.lastContext)},lookup:function(e){var t=this.topStack();this.source.push(t+" = ("+t+" === null || "+t+" === undefined || "+t+" === false ? "+t+" : "+this.nameLookup(t,e,"context")+");")},pushStringParam:function(e){this.pushStack("depth"+this.lastContext),this.pushString(e)},pushString:function(e){this.pushStack(this.quotedString(e))},push:function(e){this.pushStack(e)},invokeMustache:function(e,t,n){this.populateParams(e,this.quotedString(t),"{}",null,n,function(e,t,n){this.usingKnownHelper||(this.context.aliases.helperMissing="helpers.helperMissing",this.context.aliases.undef="void 0",this.source.push("else if("+n+"=== undef) { "+e+" = helperMissing.call("+t+"); }"),e!==n&&this.source.push("else { "+e+" = "+n+"; }"))})},invokeProgram:function(e,t,n){var r=this.programExpression(this.inverse),i=this.programExpression(e);this.populateParams(t,null,i,r,n,function(e,t){this.usingKnownHelper||(this.context.aliases.blockHelperMissing="helpers.blockHelperMissing",this.source.push("else { "+e+" = blockHelperMissing.call("+t+"); }"))})},populateParams:function(e,t,n,r,i,a){var s,o,l=i||this.options.stringParams||r||this.options.data,c=this.popStack(),u=[];if(l?(this.register("tmp1",n),o="tmp1"):o="{ hash: {} }",l){var d=i?this.popStack():"{}";this.source.push("tmp1.hash = "+d+";")}this.options.stringParams&&this.source.push("tmp1.contexts = [];");for(var p=0;e>p;p++)s=this.popStack(),u.push(s),this.options.stringParams&&this.source.push("tmp1.contexts.push("+this.popStack()+");");r&&(this.source.push("tmp1.fn = tmp1;"),this.source.push("tmp1.inverse = "+r+";")),this.options.data&&this.source.push("tmp1.data = data;"),u.push(o),this.populateCall(u,c,t||c,a,"{}"!==n)},populateCall:function(e,t,n,r,i){var a=["depth0"].concat(e).join(", "),s=["depth0"].concat(n).concat(e).join(", "),o=this.nextStack();if(this.usingKnownHelper)this.source.push(o+" = "+t+".call("+a+");");else{this.context.aliases.functionType='"function"';var l=i?"foundHelper && ":"";this.source.push("if("+l+"typeof "+t+" === functionType) { "+o+" = "+t+".call("+a+"); }")}r.call(this,o,s,t),this.usingKnownHelper=!1},invokePartial:function(e){params=[this.nameLookup("partials",e,"partial"),"'"+e+"'",this.popStack(),"helpers","partials"],this.options.data&¶ms.push("data"),this.pushStack("self.invokePartial("+params.join(", ")+");")
},assignToHash:function(e){var t=this.popStack(),n=this.topStack();this.source.push(n+"['"+e+"'] = "+t+";")},compiler:t,compileChildren:function(e,t){for(var n,r,i=e.children,a=0,s=i.length;s>a;a++){n=i[a],r=new this.compiler,this.context.programs.push("");var o=this.context.programs.length;n.index=o,n.name="program"+o,this.context.programs[o]=r.compile(n,t,this.context)}},programExpression:function(e){if(null==e)return"self.noop";for(var t=this.environment.children[e],n=t.depths.list,r=[t.index,t.name,"data"],i=0,a=n.length;a>i;i++)depth=n[i],1===depth?r.push("depth0"):r.push("depth"+(depth-1));return 0===n.length?"self.program("+r.join(", ")+")":(r.shift(),"self.programWithDepth("+r.join(", ")+")")},register:function(e,t){this.useRegister(e),this.source.push(e+" = "+t+";")},useRegister:function(e){this.context.registers[e]||(this.context.registers[e]=!0,this.context.registers.list.push(e))},pushStack:function(e){return this.source.push(this.nextStack()+" = "+e+";"),"stack"+this.stackSlot},nextStack:function(){return this.stackSlot++,this.stackSlot>this.stackVars.length&&this.stackVars.push("stack"+this.stackSlot),"stack"+this.stackSlot},popStack:function(){return"stack"+this.stackSlot--},topStack:function(){return"stack"+this.stackSlot},quotedString:function(e){return'"'+e.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\n/g,"\\n").replace(/\r/g,"\\r")+'"'}};for(var i="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".split(" "),a=t.RESERVED_WORDS={},s=0,o=i.length;o>s;s++)a[i[s]]=!0;t.isValidJavaScriptVariableName=function(e){return!t.RESERVED_WORDS[e]&&/^[a-zA-Z_$][0-9a-zA-Z_$]+$/.test(e)?!0:!1}}(Handlebars.Compiler,Handlebars.JavaScriptCompiler),Handlebars.precompile=function(e,t){t=t||{};var n=Handlebars.parse(e),r=(new Handlebars.Compiler).compile(n,t);return(new Handlebars.JavaScriptCompiler).compile(r,t)},Handlebars.compile=function(e,t){function n(){var n=Handlebars.parse(e),r=(new Handlebars.Compiler).compile(n,t),i=(new Handlebars.JavaScriptCompiler).compile(r,t,void 0,!0);return Handlebars.template(i)}t=t||{};var r;return function(e,t){return r||(r=n()),r.call(this,e,t)}},Handlebars.VM={template:function(e){var t={escapeExpression:Handlebars.Utils.escapeExpression,invokePartial:Handlebars.VM.invokePartial,programs:[],program:function(e,t,n){var r=this.programs[e];return n?Handlebars.VM.program(t,n):r?r:r=this.programs[e]=Handlebars.VM.program(t)},programWithDepth:Handlebars.VM.programWithDepth,noop:Handlebars.VM.noop};return function(n,r){return r=r||{},e.call(t,Handlebars,n,r.helpers,r.partials,r.data)}},programWithDepth:function(e,t){var n=Array.prototype.slice.call(arguments,2);return function(r,i){return i=i||{},e.apply(this,[r,i.data||t].concat(n))}},program:function(e,t){return function(n,r){return r=r||{},e(n,r.data||t)}},noop:function(){return""},invokePartial:function(e,t,n,r,i,a){if(options={helpers:r,partials:i,data:a},void 0===e)throw new Handlebars.Exception("The partial "+t+" could not be found");if(e instanceof Function)return e(n,options);if(Handlebars.compile)return i[t]=Handlebars.compile(e),i[t](n,options);throw new Handlebars.Exception("The partial "+t+" could not be compiled when running in runtime-only mode")}},Handlebars.template=Handlebars.VM.template,define("handlebars",function(){}),define("tmpl",["handlebars","text"],function(e,t){var n={};return{load:function(e,r,i,a){return t.load(e,r,function(t){a.isBuild&&a.inlineText&&(n[e]=t),i(a.isBuild?t:Handlebars.compile(t))},a)},write:function(e,r,i){if(r in n){var a=t.jsEscape(n[r]);i("define('"+e+"!"+r+"', ['handlebars'], function (hb) { return Handlebars.compile('"+a+"');});\n")}}}}),define("tmpl!w3c/templates/headers.html",["handlebars"],function(){return Handlebars.compile("<div class='head'>\n <p>\n {{#if logos}}\n {{showLogos logos}}\n {{else}}\n {{#if prependW3C}}\n <a class='logo' href='http://www.w3.org/'><img width='72' height='48' src='https://www.w3.org/Icons/w3c_home' alt='W3C'></a>\n {{#if isMemberSubmission}}\n <a href=\"http://www.w3.org/Submission/\"> <img height=\"48\" width=\"211\" alt=\"W3C Member Submission\" src=\"http://www.w3.org/Icons/member_subm\" /></a>\n {{/if}}\n {{#if isTeamSubmission}}\n <a href=\"http://www.w3.org/TeamSubmission/\"><img height=\"48\" width=\"211\" alt=\"W3C Team Submission\" src=\"http://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=\"http://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='http://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='http://www.w3.org/Consortium/Legal/ipr-notice#Copyright'>Copyright</a> ©\n {{#if copyrightStart}}{{copyrightStart}}-{{/if}}{{publishYear}}\n {{#if additionalCopyrightHolders}} {{{additionalCopyrightHolders}}} &{{/if}}\n <a href='http://www.w3.org/'><abbr title='World Wide Web Consortium'>W3C</abbr></a><sup>®</sup>\n (<a href='http://www.csail.mit.edu/'><abbr title='Massachusetts Institute of Technology'>MIT</abbr></a>,\n <a href='http://www.ercim.eu/'><abbr title='European Research Consortium for Informatics and Mathematics'>ERCIM</abbr></a>,\n <a href='http://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=\"http://www.w3.org/Consortium/Legal/copyright-documents\">W3C Document License</a>.\n {{/if}}\n W3C <a href='http://www.w3.org/Consortium/Legal/ipr-notice#Legal_Disclaimer'>liability</a>,\n <a href='http://www.w3.org/Consortium/Legal/ipr-notice#W3C_Trademarks'>trademark</a> and\n {{#if isCCBY}}\n <a rel=\"license\" href='http://www.w3.org/Consortium/Legal/2013/copyright-documents-dual.html'>document use</a>\n {{else}}\n {{#if isW3CSoftAndDocLicense}}\n <a rel=\"license\" href='http://www.w3.org/Consortium/Legal/2015/copyright-software-and-document'>permissive document license</a>\n {{else}}\n <a rel=\"license\" href='http://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",["handlebars"],function(){return Handlebars.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=\"http://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=\"http://www.w3.org/Consortium/Process\">W3C Process</a>. A <a href=\"http://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=\"http://www.w3.org/Consortium/Prospectus/Joining\">W3C Membership</a>. Please consult the requirements associated with Member Submissions of <a href=\"http://www.w3.org/Consortium/Patent-Policy-20040205/#sec-submissions\">section 3.3 of the W3C Patent Policy</a>. Please consult the complete <a href=\"http://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='http://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=\"http://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='http://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='http://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='http://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='http://www.w3.org/Consortium/Patent-Policy-20040205/#def-essential'>Essential\n Claim(s)</a> must disclose the information in accordance with\n <a href='http://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=\"http://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=\"http://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",["handlebars"],function(){return Handlebars.compile("<div class='head'>\n <p>\n <a class='logo' href='http://www.w3.org/'><img width='72' height='48' src='https://www.w3.org/Icons/w3c_home' 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='http://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=\"http://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=\"http://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",["handlebars"],function(){return Handlebars.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=\"http://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='http://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("tmpl!w3c/templates/webspecs-headers.html",["handlebars"],function(){return Handlebars.compile('<header>\n <a href="http://specs.webplatform.org/" id="logo">\n <img alt="Web Platform Specs logo" height="50" src="https://specs.webplatform.org/assets/img/logo.svg" width="50"><br>\n Web Platform Specs\n </a>\n <h1>{{title}}</h1>\n {{#if subtitle}}\n <h2>{{subtitle}}</h2>\n {{/if}}\n <div id="meta">\n <button class=\'contributors linkalike\' data-repository="{{repository}}">contributors</button>•\n <a href="https://github.com/{{repository}}/issues">bugs</a>\n •\n <a href="https://github.com/{{repository}}">fork me</a>\n •\n <a href="{{licenseInfo.url}}" title="{{licenseInfo.name}}" rel="license">{{licenseInfo.short}}</a>\n •\n <span class="date">{{shortISODate}} (<a href="https://github.com/{{repository}}/commits">commit log</a>)</span>\n </div>\n</header>\n')}),define("w3c/headers",["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","tmpl!w3c/templates/webspecs-headers.html"],function(e,t,n,r,i,a,s){return Handlebars.registerHelper("showPeople",function(e,t){var n="",r="",i="",a="",s="",o="",l="",c="";this.doRDFa&&("Editor"===e?(l="_:editor0",n=" property='bibo:editor' resource='"+l+"'",r=" property='rdf:first' typeof='foaf:Person'"):"Author"===e&&(r=" property='dc:contributor' typeof='foaf:Person'"),a=" property='foaf:name'",i=" property='foaf:mbox'",s=" property='foaf:workplaceHomepage'",o=" property='foaf:homepage'",propSeeAlso=" property='rdfs:seeAlso'");for(var u="",d=0,p=t.length;p>d;d++){var f=t[d];if(f.w3cid&&(c=" data-editor-id='"+parseInt(f.w3cid,10)+"'"),this.doRDFa?(u+="<dd class='p-author h-card vcard' "+n+c+"><span"+r+">","Editor"===e&&(l=p-1>d?"_:editor"+(d+1):"rdf:nil",n=" resource='"+l+"'")):u+="<dd class='p-author h-card vcard'"+c+">",u+=f.url?this.doRDFa?"<meta"+a+" content='"+f.name+"'><a class='u-url url p-name fn' "+o+" href='"+f.url+"'>"+f.name+"</a>":"<a class='u-url url p-name fn' href='"+f.url+"'>"+f.name+"</a>":"<span"+a+" class='p-name fn'>"+f.name+"</span>",f.company&&(u+=", ",u+=f.companyURL?"<a"+s+" class='p-org org h-org h-card' href='"+f.companyURL+"'>"+f.company+"</a>":f.company),f.mailto&&(u+=", <span class='ed_mailto'><a class='u-email email' "+i+" href='mailto:"+f.mailto+"'>"+f.mailto+"</a></span>"),f.note&&(u+=" ("+f.note+")"),f.extras){var h=this,m=f.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,h.doRDFa&&r.setAttribute("property","rdfs:seeAlso")}return n.innerHTML=e.name,t.outerHTML}).join(", ");u+=", "+m}this.doRDFa&&(u+="</span>\n","Editor"===e&&(u+="<span property='rdf:rest' resource='"+l+"'></span>\n")),u+="</dd>\n"}return new Handlebars.SafeString(u)}),Handlebars.registerHelper("showLogos",function(e){for(var t="<p>",n=0,r=e.length;r>n;n++){var i=e[n];i.url&&(t+="<a href='"+i.url+"'>"),i.id&&(t+="<span id='"+i.id+"'>"),i.src?(t+="<img src='"+i.src+"'",i.width&&(t+=" width='"+i.width+"'"),i.height&&(t+=" height='"+i.height+"'"),t+=i.alt?" alt='"+i.alt+"'":1==e.length?" alt='Logo'":" alt='Logo "+(n+1)+"'",t+=">"):i.alt&&(t+=i.alt),i.url&&(t+="</a>"),i.id&&(t+="</span>")}return t+="</p>",new Handlebars.SafeString(t)}),{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:"http://creativecommons.org/publicdomain/zero/1.0/"},"w3c-software":{name:"W3C Software Notice and License","short":"W3C Software",url:"http://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:"http://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:"http://creativecommons.org/licenses/by/4.0/legalcode"}},run:function(e,o,l,c){c.pub("start","w3c/headers"),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"])||c.pub("error","You cannot use that license with WebSpecs."),"webspec"===e.specStatus||$.inArray(e.license,["cc-by","w3c"])||c.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.isWebSpec="webspec"===e.specStatus,e.isRegular=!e.isCGBG&&!e.isBasic&&!e.isWebSpec,e.specStatus||c.pub("error","Missing required configuration: specStatus"),e.isRegular&&!e.shortName&&c.pub("error","Missing required configuration: shortName"),e.isWebSpec&&!e.repository&&c.pub("error","Missing required configuration: repository (as in 'darobin/respec')"),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&&c.pub("warn","Editor's Drafts should set edDraftURI.")),e.maturity=this.status2maturity[e.specStatus]?this.status2maturity[e.specStatus]:e.specStatus;
var u="TR";if("Member-SUBM"===e.specStatus?u="Submission":"Team-SUBM"===e.specStatus&&(u="TeamSubmission"),e.isRegular&&(e.thisVersion="http://www.w3.org/"+u+"/"+e.publishDate.getFullYear()+"/"+e.maturity+"-"+e.shortName+"-"+t.concatDate(e.publishDate)+"/"),"ED"===e.specStatus&&(e.thisVersion=e.edDraftURI),e.isRegular&&(e.latestVersion="http://www.w3.org/"+u+"/"+e.shortName+"/"),e.isTagFinding&&(e.latestVersion="http://www.w3.org/2001/tag/doc/"+e.shortName,e.thisVersion=e.latestVersion+"-"+t.concatDate(e.publishDate,"-")),e.previousPublishDate){e.previousMaturity||e.isTagFinding||c.pub("error","previousPublishDate is set, but not previousMaturity"),e.previousPublishDate instanceof Date||(e.previousPublishDate=t.parseSimpleDate(e.previousPublishDate));var d=this.status2maturity[e.previousMaturity]?this.status2maturity[e.previousMaturity]:e.previousMaturity;e.prevVersion=e.isTagFinding?e.latestVersion+"-"+t.concatDate(e.previousPublishDate,"-"):e.isCGBG?e.prevVersion||"":e.isBasic||e.isWebSpec?"":"http://www.w3.org/TR/"+e.previousPublishDate.getFullYear()+"/"+d+"-"+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||c.pub("error","Document on track but no previous version."),e.prevVersion||(e.prevVersion="");e.prevRecShortname&&!e.prevRecURI&&(e.prevRecURI="http://www.w3.org/TR/"+e.prevRecShortname),e.editors&&0!==e.editors.length||c.pub("error","At least one editor is required");var p=function(e){e.name||c.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||c.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 f in this.status2text)this.status2long[f]||(this.status2long[f]=this.status2text[f]);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&&c.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&&(c.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 m;m=e.isCGBG?i(e):e.isWebSpec?s(e):n(e),$("body",o).prepend($(m)).addClass("h-entry");var g=$("#sotd");!e.isCGBG&&e.isNoTrack&&!e.isTagFinding||g.length||c.pub("error","A custom SotD paragraph is required for your type of document."),e.sotdCustomParagraph=g.html(),g.remove();var b=[e.wg,e.wgURI,e.wgPatentURI];if(b.some(function(e){return $.isArray(e)})&&b.some(function(e){return!$.isArray(e)})&&c.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 v=[],y=0,w=e.wg.length;w>y;y++)v.push("a <a href='"+e.wgPatentURI[y]+"' rel='disclosure'>"+"public list of any patent disclosures ("+e.wg[y]+")</a>");e.wgPatentHTML=t.joinAnd(v)}else e.multipleWGs=!1,e.wgHTML="the <a href='"+e.wgURI+"'>"+e.wg+"</a>";e.isLC&&!e.lcEnd&&c.pub("error","Status is LC but no lcEnd is specified"),"PR"!==e.specStatus||e.lcEnd||c.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||c.pub("error","Status is CR but no crEnd is specified"),e.humanCREnd=t.humanDate(e.crEnd||""),"PR"!==e.specStatus||e.prEnd||c.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||c.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&&c.pub("error","IG-NOTEs must link to charter's disclosure section using charterDisclosureURI"),""!==e.subjectPrefix&&(e.subjectPrefixEnc=encodeURIComponent(e.subjectPrefix));var x;x=e.isCGBG?a(e):e.isWebSpec?null:r(e),x&&$(x).insertAfter($("#abstract")),!e.implementationReportURI&&(e.isCR||e.isPR||e.isRec)&&c.pub("error","CR, PR, and REC documents need to have an implementationReportURI defined."),e.isTagFinding&&!e.sotdCustomParagraph&&c.pub("error","ReSpec does not support automated SotD generation for TAG findings, please specify one using a <code><section></code> element with ID=sotd.");var k=o.head.querySelector("meta[name=viewport]")?!0:!1;e.useExperimentalStyles&&!k&&$("html>head").prepend($('<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">')),c.pub("end","w3c/headers"),l()}}}),define("w3c/abstract",[],function(){return{run:function(e,t,n,r){r.pub("start","w3c/abstract");var i=$("#abstract");if(i.length){if(0===i.find("p").length&&i.contents().wrapAll($("<p></p>")),i.prepend("<h2>"+e.l10n.abstract+"</h2>"),i.addClass("introductory"),e.doRDFa){var a="dc:abstract",s=i.attr("property");s&&(a=s+" "+a),i.attr({property:a})}}else r.pub("error","Document must have one element with ID 'abstract'");r.pub("end","w3c/abstract"),n()}}}),define("tmpl!w3c/templates/conformance.html",["handlebars"],function(){return Handlebars.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"],function(e){return{run:function(t,n,r,i){i.pub("start","w3c/conformance");var a=$("#conformance");a.length&&a.prepend(e(t)),i.pub("end","w3c/conformance"),r()}}}),define("core/data-transform",["core/utils"],function(e){return{run:function(t,n,r,i){i.pub("start","w3c/data-transform"),$("[data-transform]",n).each(function(t,n){var r=$(n),a=r.attr("data-transform");r.removeAttr("data-transform");var s;try{s=e.runTransforms(r.html(),a)}catch(o){i.pub("error",o)}s&&r.html(s)}),i.pub("end","w3c/data-transform"),r()}}}),define("core/data-include",["core/utils"],function(e){return{run:function(t,n,r,i){i.pub("start","w3c/data-include");var a=$("[data-include]"),s=a.length,o=function(e){e.removeAttr("data-include"),e.removeAttr("data-oninclude"),e.removeAttr("data-include-format"),e.removeAttr("data-include-replace"),e.removeAttr("data-include-sync"),s--,0>=s&&(i.pub("end","w3c/data-include"),r())};s||(i.pub("end","w3c/data-include"),r()),a.each(function(){var t=$(this),r=t.attr("data-include"),a=t.attr("data-include-format")||"html",s=!!t.attr("data-include-replace"),l=!!t.attr("data-include-sync");$.ajax({dataType:a,url:r,async:!l,success:function(i){if(i){var l=t.attr("data-oninclude");l&&(i=e.runTransforms(i,l,r)),s?t.replaceWith("text"===a?n.createTextNode(i):i):"text"===a?t.text(i):t.html(i)}o(t)},error:function(e,n,a){i.pub("error","Error including URI="+r+": "+n+" ("+a+")"),o(t)}})})}}}),define("core/inlines",["core/utils"],function(){return{run:function(e,t,n,r){r.pub("start","core/inlines"),t.normalize(),e.normativeReferences||(e.normativeReferences={}),e.informativeReferences||(e.informativeReferences={}),e.respecRFC2119||(e.respecRFC2119={});var i={},a={};$("abbr[title]",t).each(function(){i[$(this).text()]=$(this).attr("title")}),$("acronym[title]",t).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",t).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:"")+")"),d=0;d<c.length;d++){var p=c[d],f=p.data.split(u);if(1!==f.length){for(var h=t.createDocumentFragment();f.length;){var m=f.shift(),g=null;if(f.length&&(g=f.shift()),h.appendChild(t.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(" "),h.appendChild($("<em/>").attr({"class":"rfc2119",title:g}).text(g)[0]),e.respecRFC2119[g]=!0;else if(/^\[\[/.test(g)){var b=g;if(b=b.replace(/^\[\[/,""),b=b.replace(/\]\]$/,""),0===b.indexOf("\\"))h.appendChild(t.createTextNode("[["+b.replace(/^\\/,"")+"]]"));else{var v=!1;0===b.indexOf("!")&&(v=!0,b=b.replace(/^!/,"")),v?e.normativeReferences[b]=!0:e.informativeReferences[b]=!0,h.appendChild(t.createTextNode("[")),h.appendChild($("<cite/>").wrapInner($("<a/>").attr({"class":"bibref",href:"#bib-"+b}).text(b))[0]),h.appendChild(t.createTextNode("]"))}}else i[g]?$(p).parents("abbr").length?h.appendChild(t.createTextNode(g)):h.appendChild($("<abbr/>").attr({title:i[g]}).text(g)[0]):a[g]?$(p).parents("acronym").length?h.appendChild(t.createTextNode(g)):h.appendChild($("<acronym/>").attr({title:a[g]}).text(g)[0]):r.pub("error","Found token '"+g+"' but it does not correspond to anything")}p.parentNode.replaceChild(h,p)}}r.pub("end","core/inlines"),n()}}}),define("core/dfn",[],function(){return{run:function(e,t,n,r){r.pub("start","core/dfn"),t.normalize(),$("[dfn-for]").each(function(){this.setAttribute("data-dfn-for",this.getAttribute("dfn-for").toLowerCase()),this.removeAttribute("dfn-for")}),e.definitionMap||(e.definitionMap={}),$("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]))})}),r.pub("end","core/dfn"),n()}}}),define("w3c/rfc2119",["core/utils"],function(e){return{run:function(t,n,r,i){i.pub("start","w3c/rfc2119");var a=$("#respecRFC2119");if(a.length){var s=Object.getOwnPropertyNames(t.respecRFC2119).sort();if(s&&s.length){var o="The ",l=function(e){var t="<em class='rfc2119' title='"+e+"'>"+e+"</em>";return t};o+=s.length>1?"key words "+e.joinAnd(s,l)+" are ":"key word "+e.joinAnd(s,l)+" is ",o+=a[0].innerHTML,a[0].innerHTML=o}else a.remove()}i.pub("end","w3c/rfc2119"),r()}}}),define("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("text!core/css/examples-webspecs.css",[],function(){return'/* --- EXAMPLES CONFLICTING WITH WEBSPECS --- */\naside.example:before, div.example:before, div.illegal-example:before, pre.example:before {\n content: "" !important;\n display: none;\n}\ndiv.example-title {\n color: #ef0000;\n}\n'}),define("core/examples",["text!core/css/examples.css","text!core/css/examples-webspecs.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")),e.useExperimentalStyles&&a.addClass("marker"),a};return{run:function(r,i,a,s){s.pub("start","core/examples");var o=$("pre.example, pre.illegal-example, aside.example"),l=0;o.length&&("webspec"===r.specStatus&&(e+=t),$(i).find("head link").first().before($("<style/>").text(e)),o.each(function(e,t){var i=$(t),a={number:l,illegal:i.hasClass("illegal-example")};if(i.is("aside")){l++;var o=n(r,i,l,a);i.prepend(o),s.pub("example",a)}else{var c=!!i.parents("aside").length;c||l++;for(var u=i.html().split("\n");u.length&&/^\s*$/.test(u[0]);)u.shift();for(;u.length&&/^\s*$/.test(u[u.length-1]);)u.pop();var d=/^(\s+)/.exec(u[0]);if(d)for(var p=new RegExp("^"+d[1]),f=0;f<u.length;f++)u[f]=u[f].replace(p,"");a.content=u.join("\n"),i.html(u.join("\n")),r.useExperimentalStyles&&i.removeClass("example illegal-example");var h=$("<div class='example'></div>"),o=n(r,i,c?0:l,a);h.append(o),h.append(i.clone()),i.replaceWith(h),c||s.pub("example",a)}})),s.pub("end","core/examples"),a()}}}),define("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-right-width: .2em;\n border-top-width: .2em;\n border-bottom-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",["text!core/css/issues-notes.css","github"],function(e,t){return{run:function(n,r,i,a){function s(){a.pub("end","core/issues-notes"),i()}function o(t,i){$(r).find("head link").first().before($("<style/>").text(e));var s=$(".issue[data-number]").length>0,o=0,l=$("<div><h2>Issue Summary</h2><ul></ul></div>"),c=l.find("ul");t.each(function(e,t){var r=$(t),l=r.hasClass("issue"),u=r.hasClass("warning"),d=r.hasClass("ednote"),p=r.hasClass("atrisk"),f="block"!=r.css("display"),h=r.attr("data-number"),m={inline:f,content:r.html()};if(m.type=l?"issue":u?"warning":d?"ednote":"note",!l||f||s?h&&(m.number=h):(o++,m.number=o),!f){var g,b=$("<div class='"+m.type+(p?" atrisk":"")+"'></div>"),v=$("<div class='"+m.type+"-title'><span></span></div>"),y=l?p?"Feature at Risk":"Issue":u?"Warning":d?"Editor's Note":n.l10n.note;if(m.title=r.attr("title"),l&&(s?h&&(y+=" "+h,!p&&n.issueBase?v.find("span").wrap($("<a href='"+n.issueBase+h+"'/>")):p&&n.atRiskBase&&v.find("span").wrap($("<a href='"+n.atRiskBase+h+"'/>")),g=i[h],g&&!m.title&&(m.title=g.title)):y+=" "+o,void 0!==m.number)){var w="issue-"+m.number,x=$("<li><a></a></li>"),k=x.find("a");b.attr("id",w),k.attr("href","#"+w).text("Issue "+m.number),m.title&&x.append($("<span style='text-transform: none'>: "+m.title+"</span>")),c.append(x)}v.find("span").text(y),m.title&&(v.append($("<span style='text-transform: none'>: "+m.title+"</span>")),r.removeAttr("title")),n.useExperimentalStyles&&v.addClass("marker"),b.append(v),r.replaceWith(b);var C=r.removeClass(m.type).removeAttr("data-number");g&&!C.text().trim()&&(C=g.body_html),b.append(C)}a.pub(m.type,m)}),$(".issue").length?$("#issue-summary")&&$("#issue-summary").append(l.contents()):$("#issue-summary").length&&(a.pub("warn","Using issue summary (#issue-summary) but no issues found."),$("#issue-summary").remove())}a.pub("start","core/issues-notes");var l=$(".issue, .note, .warning, .ednote"),c={},u=n.issueBase;l.length?n.githubAPI?t.fetch(n.githubAPI).then(function(e){return u=u||e.html_url+"/issues/",t.fetchIndex(e.issues_url,{headers:{Accept:"application/vnd.github.v3.html+json"}})}).then(function(e){e.forEach(function(e){c[e.number]=e}),o(l,c,u),s()}):(o(l,c,u),s()):s()}}}),define("core/requirements",[],function(){return{run:function(e,t,n,r){r.pub("start","core/requirements"),$(".req").each(function(e){e++;var t=$(this),n="Req. "+e;r.pub("req",{type:"req",number:e,content:t.html(),title:n}),t.prepend("<a href='#"+t.attr("id")+"'>"+n+"</a>: ")}),$("a.reqRef").each(function(){var e,t,n,i=$(this),a=i.attr("href");a&&(e=a.substring(1),t=$("#"+e),t.length?n=t.find("> a").text():(n="Req. not found '"+e+"'",r.pub("error","Requirement not found in a.reqRef: "+e)),i.text(n))}),r.pub("end","core/requirements"),n()}}}),define("text!core/css/highlight.css",[],function(){return"/* HIGHLIGHTS */\ncode.prettyprint {\n color: inherit;\n}\n\n/* this from google-code-prettify */\n.pln{color:#000}@media screen{.str{color:#080}.kwd{color:#008}.com{color:#800}.typ{color:#606}.lit{color:#066}.pun,.opn,.clo{color:#660}.tag{color:#008}.atn{color:#606}.atv{color:#080}.dec,.var{color:#606}.fun{color:red}}@media print,projection{.str{color:#060}.kwd{color:#006;font-weight:bold}.com{color:#600;font-style:italic}.typ{color:#404;font-weight:bold}.lit{color:#044}.pun,.opn,.clo{color:#440}.tag{color:#006;font-weight:bold}.atn{color:#404}.atv{color:#060}}ol.linenums{margin-top:0;margin-bottom:0}li.L0,li.L1,li.L2,li.L3,li.L5,li.L6,li.L7,li.L8{list-style-type:none}li.L1,li.L3,li.L5,li.L7,li.L9{background:#eee}\n"});var IN_GLOBAL_SCOPE=!0;window.PR_SHOULD_USE_CONTINUATION=!0;var prettyPrintOne,prettyPrint;!function(){function e(e){function t(e){var t=e.charCodeAt(0);if(92!==t)return t;var n=e.charAt(1);return t=d[n],t?t:n>="0"&&"7">=n?parseInt(e.substring(1),8):"u"===n||"x"===n?parseInt(e.substring(2),16):e.charCodeAt(1)}function n(e){if(32>e)return(16>e?"\\x0":"\\x")+e.toString(16);var t=String.fromCharCode(e);return"\\"===t||"-"===t||"]"===t||"^"===t?"\\"+t:t}function r(e){var r=e.substring(1,e.length-1).match(new RegExp("\\\\u[0-9A-Fa-f]{4}|\\\\x[0-9A-Fa-f]{2}|\\\\[0-3][0-7]{0,2}|\\\\[0-7]{1,2}|\\\\[\\s\\S]|-|[^-\\\\]","g")),i=[],a="^"===r[0],s=["["];a&&s.push("^");for(var o=a?1:0,l=r.length;l>o;++o){var c=r[o];if(/\\[bdsw]/i.test(c))s.push(c);else{var u,d=t(c);l>o+2&&"-"===r[o+1]?(u=t(r[o+2]),o+=2):u=d,i.push([d,u]),65>u||d>122||(65>u||d>90||i.push([32|Math.max(65,d),32|Math.min(u,90)]),97>u||d>122||i.push([-33&Math.max(97,d),-33&Math.min(u,122)]))}}i.sort(function(e,t){return e[0]-t[0]||t[1]-e[1]});for(var p=[],f=[],o=0;o<i.length;++o){var h=i[o];h[0]<=f[1]+1?f[1]=Math.max(f[1],h[1]):p.push(f=h)}for(var o=0;o<p.length;++o){var h=p[o];s.push(n(h[0])),h[1]>h[0]&&(h[1]+1>h[0]&&s.push("-"),s.push(n(h[1])))}return s.push("]"),s.join("")}function i(e){for(var t=e.source.match(new RegExp("(?:\\[(?:[^\\x5C\\x5D]|\\\\[\\s\\S])*\\]|\\\\u[A-Fa-f0-9]{4}|\\\\x[A-Fa-f0-9]{2}|\\\\[0-9]+|\\\\[^ux0-9]|\\(\\?[:!=]|[\\(\\)\\^]|[^\\x5B\\x5C\\(\\)\\^]+)","g")),i=t.length,o=[],l=0,c=0;i>l;++l){var u=t[l];if("("===u)++c;else if("\\"===u.charAt(0)){var d=+u.substring(1);d&&(c>=d?o[d]=-1:t[l]=n(d))}}for(var l=1;l<o.length;++l)-1===o[l]&&(o[l]=++a);for(var l=0,c=0;i>l;++l){var u=t[l];if("("===u)++c,o[c]||(t[l]="(?:");else if("\\"===u.charAt(0)){var d=+u.substring(1);d&&c>=d&&(t[l]="\\"+o[d])}}for(var l=0;i>l;++l)"^"===t[l]&&"^"!==t[l+1]&&(t[l]="");if(e.ignoreCase&&s)for(var l=0;i>l;++l){var u=t[l],p=u.charAt(0);u.length>=2&&"["===p?t[l]=r(u):"\\"!==p&&(t[l]=u.replace(/[a-zA-Z]/g,function(e){var t=e.charCodeAt(0);return"["+String.fromCharCode(-33&t,32|t)+"]"}))}return t.join("")}for(var a=0,s=!1,o=!1,l=0,c=e.length;c>l;++l){var u=e[l];if(u.ignoreCase)o=!0;else if(/[a-z]/i.test(u.source.replace(/\\u[0-9a-f]{4}|\\x[0-9a-f]{2}|\\[^ux]/gi,""))){s=!0,o=!1;break}}for(var d={b:8,t:9,n:10,v:11,f:12,r:13},p=[],l=0,c=e.length;c>l;++l){var u=e[l];if(u.global||u.multiline)throw new Error(""+u);p.push("(?:"+i(u)+")")}return new RegExp(p.join("|"),o?"gi":"g")}function t(e,t){function n(e){var l=e.nodeType;if(1==l){if(r.test(e.className))return;for(var c=e.firstChild;c;c=c.nextSibling)n(c);var u=e.nodeName.toLowerCase();("br"===u||"li"===u)&&(i[o]="\n",s[o<<1]=a++,s[1|o++<<1]=e)}else if(3==l||4==l){var d=e.nodeValue;d.length&&(d=t?d.replace(/\r\n?/g,"\n"):d.replace(/[ \t\r\n]+/g," "),i[o]=d,s[o<<1]=a,a+=d.length,s[1|o++<<1]=e)}}var r=/(?:^|\s)nocode(?:\s|$)/,i=[],a=0,s=[],o=0;return n(e),{sourceCode:i.join("").replace(/\n$/,""),spans:s}}function n(e,t,n,r){if(t){var i={sourceCode:t,basePos:e};n(i),r.push.apply(r,i.decorations)}}function r(e){for(var t=void 0,n=e.firstChild;n;n=n.nextSibling){var r=n.nodeType;t=1===r?t?e:n:3===r?B.test(n.nodeValue)?e:t:t}return t===e?void 0:t}function i(t,r){var i,a={};!function(){for(var n=t.concat(r),s=[],o={},l=0,c=n.length;c>l;++l){var u=n[l],d=u[3];if(d)for(var p=d.length;--p>=0;)a[d.charAt(p)]=u;var f=u[1],h=""+f;o.hasOwnProperty(h)||(s.push(f),o[h]=null)}s.push(/[\0-\uffff]/),i=e(s)}();var s=r.length,o=function(e){for(var t=e.sourceCode,l=e.basePos,u=[l,H],d=0,p=t.match(i)||[],f={},h=0,m=p.length;m>h;++h){var g,b=p[h],v=f[b],y=void 0;if("string"==typeof v)g=!1;else{var w=a[b.charAt(0)];if(w)y=b.match(w[1]),v=w[0];else{for(var x=0;s>x;++x)if(w=r[x],y=b.match(w[1])){v=w[0];break}y||(v=H)}g=v.length>=5&&"lang-"===v.substring(0,5),!g||y&&"string"==typeof y[1]||(g=!1,v=O),g||(f[b]=v)}var k=d;if(d+=b.length,g){var C=y[1],T=b.indexOf(C),S=T+C.length;y[2]&&(S=b.length-y[2].length,T=S-C.length);var E=v.substring(5);n(l+k,b.substring(0,T),o,u),n(l+k+T,C,c(E,C),u),n(l+k+S,b.substring(S),o,u)}else u.push(l+k,v)}e.decorations=u};return o}function a(e){var t=[],n=[];e.tripleQuotedStrings?t.push([A,/^(?:\'\'\'(?:[^\'\\]|\\[\s\S]|\'{1,2}(?=[^\']))*(?:\'\'\'|$)|\"\"\"(?:[^\"\\]|\\[\s\S]|\"{1,2}(?=[^\"]))*(?:\"\"\"|$)|\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$))/,null,"'\""]):e.multiLineStrings?t.push([A,/^(?:\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$)|\`(?:[^\\\`]|\\[\s\S])*(?:\`|$))/,null,"'\"`"]):t.push([A,/^(?:\'(?:[^\\\'\r\n]|\\.)*(?:\'|$)|\"(?:[^\\\"\r\n]|\\.)*(?:\"|$))/,null,"\"'"]),e.verbatimStrings&&n.push([A,/^@\"(?:[^\"]|\"\")*(?:\"|$)/,null]);var r=e.hashComments;r&&(e.cStyleComments?(r>1?t.push([I,/^#(?:##(?:[^#]|#(?!##))*(?:###|$)|.*)/,null,"#"]):t.push([I,/^#(?:(?:define|e(?:l|nd)if|else|error|ifn?def|include|line|pragma|undef|warning)\b|[^\r\n]*)/,null,"#"]),n.push([A,/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h(?:h|pp|\+\+)?|[a-z]\w*)>/,null])):t.push([I,/^#[^\r\n]*/,null,"#"])),e.cStyleComments&&(n.push([I,/^\/\/[^\r\n]*/,null]),n.push([I,/^\/\*[\s\S]*?(?:\*\/|$)/,null]));var a=e.regexLiterals;if(a){var s=a>1?"":"\n\r",o=s?".":"[\\S\\s]",l="/(?=[^/*"+s+"])"+"(?:[^/\\x5B\\x5C"+s+"]"+"|\\x5C"+o+"|\\x5B(?:[^\\x5C\\x5D"+s+"]"+"|\\x5C"+o+")*(?:\\x5D|$))+"+"/";n.push(["lang-regex",RegExp("^"+W+"("+l+")")])}var c=e.types;c&&n.push([L,c]);var u=(""+e.keywords).replace(/^ | $/g,"");u.length&&n.push([j,new RegExp("^(?:"+u.replace(/[\s,]+/g,"|")+")\\b"),null]),t.push([H,/^\s+/,null," \r\n "]);var d="^.[^\\s\\w.$@'\"`/\\\\]*";return e.regexLiterals&&(d+="(?!s*/)"),n.push([R,/^@[a-z_$][a-z_$@0-9]*/i,null],[L,/^(?:[@_]?[A-Z]+[a-z][A-Za-z_$@0-9]*|\w+_t\b)/,null],[H,/^[a-z_$][a-z_$@0-9]*/i,null],[R,new RegExp("^(?:0x[a-f0-9]+|(?:\\d(?:_\\d+)*\\d*(?:\\.\\d*)?|\\.\\d\\+)(?:e[+\\-]?\\d+)?)[a-z]*","i"),null,"0123456789"],[H,/^\\[\s\S]?/,null],[P,new RegExp(d),null]),i(t,n)}function s(e,t,n){function r(e){var t=e.nodeType;if(1!=t||a.test(e.className)){if((3==t||4==t)&&n){var l=e.nodeValue,c=l.match(s);if(c){var u=l.substring(0,c.index);e.nodeValue=u;var d=l.substring(c.index+c[0].length);if(d){var p=e.parentNode;p.insertBefore(o.createTextNode(d),e.nextSibling)}i(e),u||e.parentNode.removeChild(e)}}}else if("br"===e.nodeName)i(e),e.parentNode&&e.parentNode.removeChild(e);else for(var f=e.firstChild;f;f=f.nextSibling)r(f)}function i(e){function t(e,n){var r=n?e.cloneNode(!1):e,i=e.parentNode;if(i){var a=t(i,1),s=e.nextSibling;a.appendChild(r);for(var o=s;o;o=s)s=o.nextSibling,a.appendChild(o)}return r}for(;!e.nextSibling;)if(e=e.parentNode,!e)return;for(var n,r=t(e.nextSibling,0);(n=r.parentNode)&&1===n.nodeType;)r=n;c.push(r)}for(var a=/(?:^|\s)nocode(?:\s|$)/,s=/\r\n?|\n/,o=e.ownerDocument,l=o.createElement("li");e.firstChild;)l.appendChild(e.firstChild);for(var c=[l],u=0;u<c.length;++u)r(c[u]);t===(0|t)&&c[0].setAttribute("value",t);var d=o.createElement("ol");d.className="linenums";for(var p=Math.max(0,0|t-1)||0,u=0,f=c.length;f>u;++u)l=c[u],l.className="L"+(u+p)%10,l.firstChild||l.appendChild(o.createTextNode(" ")),d.appendChild(l);e.appendChild(d)}function o(e){var t=/\bMSIE\s(\d+)/.exec(navigator.userAgent);t=t&&+t[1]<=8;var n=/\n/g,r=e.sourceCode,i=r.length,a=0,s=e.spans,o=s.length,l=0,c=e.decorations,u=c.length,d=0;c[u]=i;var p,f;for(f=p=0;u>f;)c[f]!==c[f+2]?(c[p++]=c[f++],c[p++]=c[f++]):f+=2;for(u=p,f=p=0;u>f;){for(var h=c[f],m=c[f+1],g=f+2;u>=g+2&&c[g+1]===m;)g+=2;c[p++]=h,c[p++]=m,f=g}u=c.length=p;var b,v=e.sourceNode;v&&(b=v.style.display,v.style.display="none");try{for(;o>l;){s[l];var y,w=s[l+2]||i,x=c[d+2]||i,g=Math.min(w,x),k=s[l+1];if(1!==k.nodeType&&(y=r.substring(a,g))){t&&(y=y.replace(n,"\r")),k.nodeValue=y;var C=k.ownerDocument,T=C.createElement("span");T.className=c[d+1];var S=k.parentNode;S.replaceChild(T,k),T.appendChild(k),w>a&&(s[l+1]=k=C.createTextNode(r.substring(g,w)),S.insertBefore(k,T.nextSibling))}a=g,a>=w&&(l+=2),a>=x&&(d+=2)}}finally{v&&(v.style.display=b)}}function l(e,t){for(var n=t.length;--n>=0;){var r=t[n];z.hasOwnProperty(r)?f.console&&console.warn("cannot override language handler %s",r):z[r]=e}}function c(e,t){return e&&z.hasOwnProperty(e)||(e=/^\s*</.test(t)?"default-markup":"default-code"),z[e]}function u(e){var n=e.langExtension;try{var r=t(e.sourceNode,e.pre),i=r.sourceCode;e.sourceCode=i,e.spans=r.spans,e.basePos=0,c(n,i)(e),o(e)}catch(a){f.console&&console.log(a&&a.stack||a)}}function d(e,t,n){var r=document.createElement("div");r.innerHTML="<pre>"+e+"</pre>",r=r.firstChild,n&&s(r,n,!0);var i={langExtension:t,numberLines:n,sourceNode:r,pre:1};return u(i),r.innerHTML}function p(e,t){function n(e){return a.getElementsByTagName(e)}function i(){for(var t=f.PR_SHOULD_USE_CONTINUATION?m.now()+250:1/0;b<c.length&&m.now()<t;b++){for(var n=c[b],a=T,l=n;l=l.previousSibling;){var d=l.nodeType,p=(7===d||8===d)&&l.nodeValue;if(p?!/^\??prettify\b/.test(p):3!==d||/\S/.test(l.nodeValue))break;if(p){a={},p.replace(/\b(\w+)=([\w:.%+-]+)/g,function(e,t,n){a[t]=n});break}}var h=n.className;if((a!==T||y.test(h))&&!w.test(h)){for(var S=!1,E=n.parentNode;E;E=E.parentNode){var N=E.tagName;if(C.test(N)&&E.className&&y.test(E.className)){S=!0;break}}if(!S){n.className+=" prettyprinted";var D=a.lang;if(!D){D=h.match(v);var A;!D&&(A=r(n))&&k.test(A.tagName)&&(D=A.className.match(v)),D&&(D=D[1])}var j;if(x.test(n.tagName))j=1;else{var I=n.currentStyle,L=o.defaultView,R=I?I.whiteSpace:L&&L.getComputedStyle?L.getComputedStyle(n,null).getPropertyValue("white-space"):0;j=R&&"pre"===R.substring(0,3)}var P=a.linenums;(P="true"===P||+P)||(P=h.match(/\blinenums\b(?::(\d+))?/),P=P?P[1]&&P[1].length?+P[1]:!0:!1),P&&s(n,P,j),g={langExtension:D,sourceNode:n,numberLines:P,pre:j},u(g)}}}b<c.length?setTimeout(i,250):"function"==typeof e&&e()}for(var a=t||document.body,o=a.ownerDocument||document,l=[n("pre"),n("code"),n("xmp")],c=[],d=0;d<l.length;++d)for(var p=0,h=l[d].length;h>p;++p)c.push(l[d][p]);l=null;var m=Date;m.now||(m={now:function(){return+new Date}});var g,b=0,v=/\blang(?:uage)?-([\w.]+)(?!\S)/,y=/\bprettyprint\b/,w=/\bprettyprinted\b/,x=/pre|xmp/i,k=/^code$/i,C=/^(?:pre|code|xmp)$/i,T={};i()}var f=window,h=["break,continue,do,else,for,if,return,while"],m=[h,"auto,case,char,const,default,double,enum,extern,float,goto,inline,int,long,register,short,signed,sizeof,static,struct,switch,typedef,union,unsigned,void,volatile"],g=[m,"catch,class,delete,false,import,new,operator,private,protected,public,this,throw,true,try,typeof"],b=[g,"alignof,align_union,asm,axiom,bool,concept,concept_map,const_cast,constexpr,decltype,delegate,dynamic_cast,explicit,export,friend,generic,late_check,mutable,namespace,nullptr,property,reinterpret_cast,static_assert,static_cast,template,typeid,typename,using,virtual,where"],v=[g,"abstract,assert,boolean,byte,extends,final,finally,implements,import,instanceof,interface,null,native,package,strictfp,super,synchronized,throws,transient"],y=[g,"abstract,as,base,bool,by,byte,checked,decimal,delegate,descending,dynamic,event,finally,fixed,foreach,from,group,implicit,in,interface,internal,into,is,let,lock,null,object,out,override,orderby,params,partial,readonly,ref,sbyte,sealed,stackalloc,string,select,uint,ulong,unchecked,unsafe,ushort,var,virtual,where"],w="all,and,by,catch,class,else,extends,false,finally,for,if,in,is,isnt,loop,new,no,not,null,of,off,on,or,return,super,then,throw,true,try,unless,until,when,while,yes",x=[g,"debugger,eval,export,function,get,null,set,undefined,var,with,Infinity,NaN"],k="caller,delete,die,do,dump,elsif,eval,exit,foreach,for,goto,if,import,last,local,my,next,no,our,print,package,redo,require,sub,undef,unless,until,use,wantarray,while,BEGIN,END",C=[h,"and,as,assert,class,def,del,elif,except,exec,finally,from,global,import,in,is,lambda,nonlocal,not,or,pass,print,raise,try,with,yield,False,True,None"],T=[h,"alias,and,begin,case,class,def,defined,elsif,end,ensure,false,in,module,next,nil,not,or,redo,rescue,retry,self,super,then,true,undef,unless,until,when,yield,BEGIN,END"],S=[h,"as,assert,const,copy,drop,enum,extern,fail,false,fn,impl,let,log,loop,match,mod,move,mut,priv,pub,pure,ref,self,static,struct,true,trait,type,unsafe,use"],E=[h,"case,done,elif,esac,eval,fi,function,in,local,set,then,until"],N=[b,y,x,k,C,T,E],D=/^(DIR|FILE|vector|(de|priority_)?queue|list|stack|(const_)?iterator|(multi)?(set|map)|bitset|u?(int|float)\d*)\b/,A="str",j="kwd",I="com",L="typ",R="lit",P="pun",H="pln",$="tag",M="dec",O="src",_="atn",F="atv",q="nocode",W="(?:^^\\.?|[+-]|[!=]=?=?|\\#|%=?|&&?=?|\\(|\\*=?|[+\\-]=|->|\\/=?|::?|<<?=?|>>?>?=?|,|;|\\?|@|\\[|~|{|\\^\\^?=?|\\|\\|?=?|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\\s*",B=/\S/,U=a({keywords:N,hashComments:!0,cStyleComments:!0,multiLineStrings:!0,regexLiterals:!0}),z={};
l(U,["default-code"]),l(i([],[[H,/^[^<?]+/],[M,/^<!\w[^>]*(?:>|$)/],[I,/^<\!--[\s\S]*?(?:-\->|$)/],["lang-",/^<\?([\s\S]+?)(?:\?>|$)/],["lang-",/^<%([\s\S]+?)(?:%>|$)/],[P,/^(?:<[%?]|[%?]>)/],["lang-",/^<xmp\b[^>]*>([\s\S]+?)<\/xmp\b[^>]*>/i],["lang-js",/^<script\b[^>]*>([\s\S]*?)(<\/script\b[^>]*>)/i],["lang-css",/^<style\b[^>]*>([\s\S]*?)(<\/style\b[^>]*>)/i],["lang-in.tag",/^(<\/?[a-z][^<>]*>)/i]]),["default-markup","htm","html","mxml","xhtml","xml","xsl"]),l(i([[H,/^[\s]+/,null," \r\n"],[F,/^(?:\"[^\"]*\"?|\'[^\']*\'?)/,null,"\"'"]],[[$,/^^<\/?[a-z](?:[\w.:-]*\w)?|\/?>$/i],[_,/^(?!style[\s=]|on)[a-z](?:[\w:-]*\w)?/i],["lang-uq.val",/^=\s*([^>\'\"\s]*(?:[^>\'\"\s\/]|\/(?=\s)))/],[P,/^[=<>\/]+/],["lang-js",/^on\w+\s*=\s*\"([^\"]+)\"/i],["lang-js",/^on\w+\s*=\s*\'([^\']+)\'/i],["lang-js",/^on\w+\s*=\s*([^\"\'>\s]+)/i],["lang-css",/^style\s*=\s*\"([^\"]+)\"/i],["lang-css",/^style\s*=\s*\'([^\']+)\'/i],["lang-css",/^style\s*=\s*([^\"\'>\s]+)/i]]),["in.tag"]),l(i([],[[F,/^[\s\S]+/]]),["uq.val"]),l(a({keywords:b,hashComments:!0,cStyleComments:!0,types:D}),["c","cc","cpp","cxx","cyc","m"]),l(a({keywords:"null,true,false"}),["json"]),l(a({keywords:y,hashComments:!0,cStyleComments:!0,verbatimStrings:!0,types:D}),["cs"]),l(a({keywords:v,cStyleComments:!0}),["java"]),l(a({keywords:E,hashComments:!0,multiLineStrings:!0}),["bash","bsh","csh","sh"]),l(a({keywords:C,hashComments:!0,multiLineStrings:!0,tripleQuotedStrings:!0}),["cv","py","python"]),l(a({keywords:k,hashComments:!0,multiLineStrings:!0,regexLiterals:2}),["perl","pl","pm"]),l(a({keywords:T,hashComments:!0,multiLineStrings:!0,regexLiterals:!0}),["rb","ruby"]),l(a({keywords:x,cStyleComments:!0,regexLiterals:!0}),["javascript","js"]),l(a({keywords:w,hashComments:3,cStyleComments:!0,multilineStrings:!0,tripleQuotedStrings:!0,regexLiterals:!0}),["coffee"]),l(a({keywords:S,cStyleComments:!0,multilineStrings:!0}),["rc","rs","rust"]),l(i([],[[A,/^[\s\S]+/]]),["regex"]);var G=f.PR={createSimpleLexer:i,registerLangHandler:l,sourceDecorator:a,PR_ATTRIB_NAME:_,PR_ATTRIB_VALUE:F,PR_COMMENT:I,PR_DECLARATION:M,PR_KEYWORD:j,PR_LITERAL:R,PR_NOCODE:q,PR_PLAIN:H,PR_PUNCTUATION:P,PR_SOURCE:O,PR_STRING:A,PR_TAG:$,PR_TYPE:L,prettyPrintOne:IN_GLOBAL_SCOPE?f.prettyPrintOne=d:prettyPrintOne=d,prettyPrint:prettyPrint=IN_GLOBAL_SCOPE?f.prettyPrint=p:prettyPrint=p};"function"==typeof define&&define.amd&&define("google-code-prettify",[],function(){return G})}(),define("core/highlight",["text!core/css/highlight.css","google-code-prettify"],function(e,t){return{run:function(n,r,i,a){a.pub("start","core/highlight");for(var s="sh_css sh_html sh_javascript sh_javascript_dom sh_xml".split(" "),o=0,l=s.length;l>o;o++){var c=s[o];$("."+c).each(function(){$(this).removeClass(c).addClass("highlight"),a.pub("warn","Old highlighting class '"+c+"', use 'highlight' instead.")})}var u=$("pre.highlight, code.highlight"),d=function(){a.pub("end","core/highlight"),i()};u.length?(n.noHighlightCSS||$(r).find("head link").first().before($("<style/>").text(e)),u.addClass("prettyprint"),t.prettyPrint(d)):d()}}}),define("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",["text!core/css/bp.css"],function(e){return{run:function(t,n,r,i){i.pub("start","core/best-practices");var a=0,s=$("span.practicelab",n),o=$("<div><h2>Best Practices Summary</h2><ul></ul></div>"),l=o.find("ul");s.each(function(){var e=$(this),t=e.makeID("bp"),r=$("<li><a></a></li>"),i=r.find("a");a++,i.attr("href","#"+t).text("Best Practice "+a),r.append(n.createTextNode(": "+e.text())),l.append(r),e.prepend(n.createTextNode("Best Practice "+a+": "))}),s.length?($(n).find("head link").first().before($("<style/>").text(e)),$("#bp-summary")&&$("#bp-summary").append(o.contents())):$("#bp-summary").length&&(i.pub("warn","Using best practices summary (#bp-summary) but no best practices found."),$("#bp-summary").remove()),i.pub("end","core/best-practices"),r()}}}),define("core/figures",[],function(){return{run:function(e,t,n,r){r.pub("start","core/figures"),$(".figure",t).each(function(e,t){var n=$(t),i=n.attr("title")||n.find("[title]").attr("title")||n.attr("alt")||n.find("[alt]").attr("alt")||"",a=$("<figcaption/>").text(i);n.is("div")?(r.pub("warn","You are using the deprecated div.figure syntax; please switch to <figure>."),n.append(a),n.renameElement("figure")):(r.pub("warn","You are using the deprecated img.figure syntax; please switch to <figure>."),n.wrap("<figure></figure>"),n.parent().append(a))});var i={},a=[],s=0;$("figure").each(function(){var n=$(this),o=n.find("figcaption"),l=o.text(),c=n.makeID("fig",l);o.length||r.pub("warn","A <figure> should contain a <figcaption>."),s++,o.wrapInner($("<span class='fig-title'/>")).prepend(t.createTextNode(" ")).prepend($("<span class='figno'>"+s+"</span>")).prepend(t.createTextNode(e.l10n.fig)),i[c]=o.contents().clone();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]",t).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])))});var o=$("#tof",t);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.pub("end","core/figures"),n()}}}),define("core/biblio",[],function(){var e=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)}},t={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"},n=function(e){if("string"==typeof e)return e;var n="";return e.authors&&e.authors.length&&(n+=e.authors.join("; "),e.etAl&&(n+=" et al"),n+=". "),n+=e.href?'<a href="'+e.href+'"><cite>'+e.title+"</cite></a>. ":"<cite>"+e.title+"</cite>. ",e.date&&(n+=e.date+". "),e.status&&(n+=(t[e.status]||e.status)+". "),e.href&&(n+='URL: <a href="'+e.href+'">'+e.href+"</a>"),n},r=function(t,r){var i={},a=e(t),s=a.informativeReferences,o=a.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"],d=0;d<u.length;d++){var p=u[d],a="Normative"==p?o:s;if(a.length){var f=$("<section><h3></h3></section>").appendTo(c).find("h3").text(p+" references").end();f.makeID(null,p+" references"),a.sort();var h=$("<dl class='bibliography'></dl>").appendTo(f);t.doRDFa&&h.attr("resource","");for(var m=0;m<a.length;m++){var g=a[m];$("<dt></dt>").attr({id:"bib-"+g}).text("["+g+"]").appendTo(h);var b=$("<dd></dd>").appendTo(h),v=t.biblio[g],y={},w=g;for(y[g]=!0;v&&v.aliasOf;)y[v.aliasOf]?(v=null,r.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(n(v)+"\n"),t.doRDFa){var x=b.children("a");x.attr("property","Normative"===p?"dc:requires":"dc:references")}}else i[g]||(i[g]=0),i[g]++,b.html("<em style='color: #f00'>Reference not found.</em>\n")}}}for(var k in l)l[k].length>1&&r.pub("warn","["+k+"] is referenced in "+l[k].length+" ways ("+l[k].join(", ")+"). This causes duplicate entries in the reference section.");for(var C in i)i.hasOwnProperty(C)&&r.pub("error","Bad reference: ["+C+"] (appears "+i[C]+" times)")}};return{stringifyRef:n,run:function(t,n,i,a){a.pub("start","core/biblio");var s=e(t),o=[],l=function(){a.pub("end","core/biblio"),i()};if(t.localBiblio)for(var c in t.localBiblio)"undefined"!=typeof t.localBiblio[c].aliasOf&&o.push(t.localBiblio[c].aliasOf);if(s=s.normativeReferences.concat(s.informativeReferences).concat(o),s.length){var u="https://labs.w3.org/specrefs/bibrefs?refs="+s.join(",");$.ajax({dataType:"json",url:u,success:function(e){if(t.biblio=e||{},t.localBiblio)for(var n in t.localBiblio)t.biblio[n]=t.localBiblio[n];r(t,a),l()},error:function(e,t,n){a.pub("error","Error loading references from '"+u+"': "+t+" ("+n+")"),l()}})}else l()}}}),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,d=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:void 0},p=function(){if(e.length&&"whitespace"===e[0].type){var t=e.shift();return t.value.replace(/\n/g,function(e){return n++,e}),t}},f=function(e,t){for(var n={type:"whitespace",value:""};;){var r=p();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}},h=function(){var e="";return f(),d(a,"unsigned")&&(e="unsigned "),f(),d(a,"short")?e+"short":d(a,"long")?(e+="long",f(),d(a,"long")?e+" long":e):(e&&c("Failed to parse integer type"),void 0)},m=function(){var e="";return f(),d(a,"unrestricted")&&(e="unrestricted "),f(),d(a,"float")?e+"float":d(a,"double")?e+"double":(e&&c("Failed to parse float type"),void 0)},g=function(){var e=h()||m();return e?e:(f(),d(a,"boolean")?"boolean":d(a,"byte")?"byte":d(a,"octet")?"octet":void 0)},b=function(){if(d(a,"true"))return{type:"boolean",value:!0};if(d(a,"false"))return{type:"boolean",value:!1};if(d(a,"null"))return{type:"null"};if(d(a,"Infinity"))return{type:"Infinity",negative:!1};if(d(a,"NaN"))return{type:"NaN"};var t=d(r)||d(i);if(t)return{type:"number",value:1*t.value};var n=d(o,"-");if(n){if(d(a,"Infinity"))return{type:"Infinity",negative:!0};e.unshift(n)}},v=function(e){for(;;)if(f(),d(o,"?"))e.nullable&&c("Can't nullable more than once"),e.nullable=!0;else{if(!d(o,"["))return;f(),d(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=d(a)))return;if(t=e.value,f(),d(o,"<"))return"sequence"===t&&(r.sequence=!0),r.generic=t,r.idlType=x()||c("Error parsing generic type "+t),f(),d(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(f(),d(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(f(),!d(a,"or"))break;var n=x()||c("No type after 'or' in union type");e.idlType.push(n)}return d(o,")")||c("Unterminated union type"),v(e),e}},x=function(){return y()||w()},k=function(t){var n={optional:!1,variadic:!1};n.extAttrs=E(t),f(t,"pea");var r=d(a,"optional");if(r&&(n.optional=!0,f()),n.idlType=x(),!n.idlType)return r&&e.unshift(r),void 0;var i=u;n.optional||(f(),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)),f();var s=d(a);return s?(n.name=s.value,n.optional&&(f(),n["default"]=N()),n):(r&&e.unshift(r),e.unshift(i),void 0)},C=function(e){var t=[],n=k(e?t:null);if(n)for(t.push(n);;){if(f(e?t:null),!d(o,","))return t;var r=k(e?t:null)||c("Trailing comma in arguments list");t.push(r)}},T=function(){f();var e=x();if(e&&(f(),d(o,","))){f();var t=x();if(t)return[e,t]}},S=function(e){f();var t=d(a);if(t){var n={name:t.value,arguments:null};f();var r=d(o,"=");if(r){var i;if(f(),i=d(a))n.rhs=i;else if(d(o,"(")){i=[];var s=d(a);s&&(i=[s.value]),H(i),d(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(f(),d(o,"(")){var l,u;(l=C(e))?n.arguments=l:(u=T())?n.typePair=u:n.arguments=[],f(),d(o,")")||c("Unexpected token in extended attribute argument list or type pair")}return n}},E=function(e){var t=[];if(f(e),!d(o,"["))return t;for(t[0]=S(e)||c("Extended attribute with not content"),f();d(o,",");)t.push(S(e)||c("Trailing comma in extended attribute")),f();return d(o,"]")||c("No end of extended attribute"),t},N=function(){if(f(),d(o,"=")){f();var e=b();if(e)return e;if(d(o,"["))return d(o,"]")||c("Default sequence value must be empty"),{type:"sequence",value:[]};var t=d(s)||c("No value for default");return t.value=t.value.replace(/^"/,"").replace(/"$/,""),t}},D=function(e){if(f(e,"pea"),d(a,"const")){var t={type:"const",nullable:!1};f();var n=g();n||(n=d(a)||c("No type for const"),n=n.value),t.idlType=n,f(),d(o,"?")&&(t.nullable=!0,f());var r=d(a)||c("No name for const");t.name=r.value,f(),d(o,"=")||c("No value assignment for const"),f();var i=b();return i?t.value=i:c("No value for const"),f(),d(o,";")||c("Unterminated const"),t}},A=function(){if(f(),d(o,":")){f();var e=d(a)||c("No type in inheritance");return e.value}},j=function(e,t){f(),e||(e={});var n=d(a);return e.name=n?n.value:null,f(),d(o,"(")||c("Invalid operation"),e.arguments=C(t)||[],f(),d(o,")")||c("Unterminated operation"),f(),d(o,";")||c("Unterminated operation"),e},I=function(t){f(t,"pea");var n;if(d(a,"callback")){f();var r=d(a,"interface");if(r)return e.unshift(r),n=F(),n.type="callback interface",n;var i=d(a)||c("No name for callback");return n={type:"callback",name:i.value},f(),d(o,"=")||c("No assignment in callback"),f(),n.idlType=R(),f(),d(o,"(")||c("No arguments in callback"),n.arguments=C(t)||[],f(),d(o,")")||c("Unterminated callback"),f(),d(o,";")||c("Unterminated callback"),n}},L=function(t){f(t,"pea");var n=[],r={type:"attribute","static":!1,stringifier:!1,inherit:!1,readonly:!1};d(a,"static")?(r["static"]=!0,n.push(u)):d(a,"stringifier")&&(r.stringifier=!0,n.push(u));var i=f();if(i&&n.push(i),d(a,"inherit")){(r["static"]||r.stringifier)&&c("Cannot have a static or stringifier inherit"),r.inherit=!0,n.push(u);var i=f();i&&n.push(i)}if(d(a,"readonly")){r.readonly=!0,n.push(u);var i=f();i&&n.push(i)}if(!d(a,"attribute"))return e=n.concat(e),void 0;f(),r.idlType=x()||c("No type in attribute"),r.idlType.sequence&&c("Attributes cannot accept sequence types"),f();var s=d(a)||c("No name in attribute");return r.name=s.value,f(),d(o,";")||c("Unterminated attribute"),r},R=function(){var e=x();if(!e){if(d(a,"void"))return"void";c("No return type")}return e},P=function(e){f(e,"pea");for(var t={type:"operation",getter:!1,setter:!1,creator:!1,deleter:!1,legacycaller:!1,"static":!1,stringifier:!1};;)if(f(),d(a,"getter"))t.getter=!0;else if(d(a,"setter"))t.setter=!0;else if(d(a,"creator"))t.creator=!0;else if(d(a,"deleter"))t.deleter=!0;else{if(!d(a,"legacycaller"))break;t.legacycaller=!0}if(t.getter||t.setter||t.creator||t.deleter||t.legacycaller)return f(),t.idlType=R(),j(t,e),t;if(d(a,"static"))return t["static"]=!0,t.idlType=R(),j(t,e),t;if(d(a,"stringifier"))return t.stringifier=!0,-f(),d(o,";")?t:(t.idlType=R(),j(t,e),t);if(t.idlType=R(),f(),d(a,"iterator")){if(f(),t.type="iterator",d(a,"object"))t.iteratorObject="object";else if(d(o,"=")){f();var n=d(a)||c("No right hand side in iterator");t.iteratorObject=n.value}return f(),d(o,";")||c("Unterminated iterator"),t}return j(t,e),t},H=function(e){for(;;){if(f(),!d(o,","))break;f();var t=d(a)||c("Trailing comma in identifiers list");e.push(t.value)}},$=function(e){if(f(e,"pea"),d(a,"serializer")){var t={type:"serializer"};if(f(),d(o,"=")){if(f(),d(o,"{")){t.patternMap=!0,f();var n=d(a);n&&"getter"===n.value?t.names=["getter"]:n&&"inherit"===n.value?(t.names=["inherit"],H(t.names)):n?(t.names=[n.value],H(t.names)):t.names=[],f(),d(o,"}")||c("Unterminated serializer pattern map")}else if(d(o,"[")){t.patternList=!0,f();var n=d(a);n&&"getter"===n.value?t.names=["getter"]:n?(t.names=[n.value],H(t.names)):t.names=[],f(),d(o,"]")||c("Unterminated serializer pattern list")}else{var r=d(a)||c("Invalid serializer");t.name=r.value}return f(),d(o,";")||c("Unterminated serializer"),t}return d(o,";")||(t.idlType=R(),f(),t.operation=j(null,e)),t}},M=function(){return d(a,"iterable")?"iterable":d(a,"legacyiterable")?"legacyiterable":d(a,"maplike")?"maplike":d(a,"setlike")?"setlike":void 0},O=function(){return d(a,"maplike")?"maplike":d(a,"setlike")?"setlike":void 0},_=function(t){f(t,"pea");var n=[],r={type:null,idlType:null,readonly:!1};if(d(a,"readonly")){r.readonly=!0,n.push(u);var i=f();i&&n.push(i)}var s=r.readonly?O:M,l=s();if(!l)return e=n.concat(e),void 0;var p="maplike"===l,h=p||"iterable"===l;if(r.type=l,"maplike"!==r.type&&"setlike"!==r.type&&delete r.readonly,f(),d(o,"<")){if(r.idlType=x()||c("Error parsing "+l+" declaration"),f(),h){var m=null;d(o,",")&&(f(),m=x(),f()),m?r.idlType=[r.idlType,m]:p&&c("Missing second type argument in "+l+" declaration")}d(o,">")||c("Unterminated "+l+" declaration"),f(),d(o,";")||c("Missing semicolon after "+l+" declaration")}else c("Error parsing "+l+" declaration");return r},F=function(e,n){if(f(e?null:n,"pea"),d(a,"interface")){f();var r=d(a)||c("No name for interface"),i=[],s={type:"interface",name:r.value,partial:!1,members:i};for(e||(s.inheritance=A()||null),f(),d(o,"{")||c("Bodyless interface");;){if(f(n?i:null),d(o,"}"))return f(),d(o,";")||c("Missing semicolon after interface"),s;var l=E(n?i:null);f();var u=D(n?i:null);if(u)u.extAttrs=l,s.members.push(u);else{var p=t.allowNestedTypedefs&&z(n?i:null)||_(n?i:null)||$(n?i:null)||L(n?i:null)||P(n?i:null)||c("Unknown member");p.extAttrs=l,s.members.push(p)}}}},q=function(e){if(f(e,"pea"),d(a,"partial")){var t=W(!0,e)||F(!0,e)||c("Partial doesn't apply to anything");return t.partial=!0,t}},W=function(e,t){if(f(e?null:t,"pea"),d(a,"dictionary")){f();var n=d(a)||c("No name for dictionary"),r=[],i={type:"dictionary",name:n.value,partial:!1,members:r};for(e||(i.inheritance=A()||null),f(),d(o,"{")||c("Bodyless dictionary");;){if(f(t?r:null),d(o,"}"))return f(),d(o,";")||c("Missing semicolon after dictionary"),i;var s=E(t?r:null);f(t?r:null,"pea");var l=d(a,"required"),u=x()||c("No type for dictionary member");f();var n=d(a)||c("No name for dictionary member"),p=N();l&&p&&c("Required member must not have a default"),i.members.push({type:"field",name:n.value,required:!!l,idlType:u,extAttrs:s,"default":p}),f(),d(o,";")||c("Unterminated dictionary member")}}},B=function(e){if(f(e,"pea"),d(a,"exception")){f();var t=d(a)||c("No name for exception"),n=[],r={type:"exception",name:t.value,members:n};for(r.inheritance=A()||null,f(),d(o,"{")||c("Bodyless exception");;){if(f(e?n:null),d(o,"}"))return f(),d(o,";")||c("Missing semicolon after exception"),r;var i=E(e?n:null);f(e?n:null,"pea");var s=D();if(s)s.extAttrs=i,r.members.push(s);else{var l=x();f();var t=d(a);f(),l&&t&&d(o,";")||c("Unknown member in exception body"),r.members.push({type:"field",name:t.value,idlType:l,extAttrs:i})}}}},U=function(e){if(f(e,"pea"),d(a,"enum")){f();var t=d(a)||c("No name for enum"),n=[],r={type:"enum",name:t.value,values:n};f(),d(o,"{")||c("No curly for enum");for(var i=!1;;){if(f(e?n:null),d(o,"}"))return f(),d(o,";")||c("No semicolon after enum"),r;var l=d(s)||c("Unexpected value in enum");r.values.push(l.value.replace(/"/g,"")),f(e?n:null),d(o,",")?(e&&n.push({type:","}),f(e?n:null),i=!0):i=!1}}},z=function(e){if(f(e,"pea"),d(a,"typedef")){var t={type:"typedef"};f(),t.typeExtAttrs=E(),f(e,"tpea"),t.idlType=x()||c("No type in typedef"),f();var n=d(a)||c("No name in typedef");return t.name=n.value,f(),d(o,";")||c("Unterminated typedef"),t}},G=function(t){f(t,"pea");var n=d(a);if(n){var r=f();if(d(a,"implements")){var i={type:"implements",target:n.value};f();var s=d(a)||c("Incomplete implements statement");return i["implements"]=s.value,f(),d(o,";")||c("No terminating ; for implements statement"),i}e.unshift(r),e.unshift(n)}},V=function(e){return I(e)||F(!1,e)||q(e)||W(!1,e)||B(e)||U(e)||z(e)||G(e)},X=function(t){if(!e.length)return[];for(var n=[];;){var r=E(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},Y=X(t.ws);return e.length&&c("Unrecognised tokens"),Y},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("webidl2",function(){}),define("tmpl!core/css/webidl-oldschool.css",["handlebars"],function(){return Handlebars.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: #fff;\n padding: 3px 5px;\n text-align: left;\n font-weight: normal;\n text-shadow: #666 1px 1px 0;\n}\n.parameters th { background: #90b8de; }\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",["handlebars"],function(){return Handlebars.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",["handlebars"],function(){return Handlebars.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",["handlebars"],function(){return Handlebars.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",["handlebars"],function(){return Handlebars.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",["handlebars"],function(){return Handlebars.compile('{{idn indent}}"<a href="#dom-{{parentID}}-{{lname}}" class="idlEnumItem">{{name}}</a>"{{#if needsComma}},{{/if}}\n')}),define("tmpl!core/templates/webidl-contiguous/enum.html",["handlebars"],function(){return Handlebars.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",["handlebars"],function(){return Handlebars.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",["handlebars"],function(){return Handlebars.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",["handlebars"],function(){return Handlebars.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",["handlebars"],function(){return Handlebars.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",["handlebars"],function(){return Handlebars.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",["handlebars"],function(){return Handlebars.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",["handlebars"],function(){return Handlebars.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/line-comment.html",["handlebars"],function(){return Handlebars.compile("<span class='idlSectionComment'>{{idn indent}}//{{comment}}</span>\n")}),define("tmpl!core/templates/webidl-contiguous/multiline-comment.html",["handlebars"],function(){return Handlebars.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",["handlebars"],function(){return Handlebars.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",["handlebars"],function(){return Handlebars.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",["handlebars"],function(){return Handlebars.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",["handlebars"],function(){return Handlebars.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",["handlebars","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/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,d,p,f,h,m,g,b,v,y,w,x){function k(e){Handlebars.registerHelper("extAttr",function(e,t){return D(e.extAttrs,t,!1)}),Handlebars.registerHelper("extAttrInline",function(e){return D(e.extAttrs,0,!0)}),Handlebars.registerHelper("typeExtAttrs",function(e){return D(e.typeExtAttrs,0,!0)}),Handlebars.registerHelper("extAttrClassName",function(){var e=this;return"Constructor"===e.name||"NamedConstructor"===e.name?"idlCtor":"extAttr"}),Handlebars.registerHelper("extAttrRhs",function(e,t){return"identifier"===e.type?t.fn(e.value):"("+e.value.map(function(e){return t.fn(e)}).join(",")+")"}),Handlebars.registerHelper("param",function(e){return new Handlebars.SafeString(u({obj:e,optional:e.optional?"optional ":"",variadic:e.variadic?"...":""}))}),Handlebars.registerHelper("jsIf",function(e,t){return e?t.fn(this):t.inverse(this)}),Handlebars.registerHelper("idn",function(e){return new Handlebars.SafeString(C(e))}),Handlebars.registerHelper("idlType",function(e){return new Handlebars.SafeString(T(e.idlType))}),Handlebars.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>"}}),Handlebars.registerHelper("escapeArgumentName",A),Handlebars.registerHelper("escapeAttributeName",j),Handlebars.registerHelper("escapeIdentifier",I),Handlebars.registerHelper("pads",function(e){return new Handlebars.SafeString(E(e))}),Handlebars.registerHelper("join",function(e,t,n){return e.map(function(e){return n.fn(e)}).join(t)}),Handlebars.registerHelper("joinNonWhitespace",function(e,t,n){return e.filter(function(e){return"ws"!==e.type}).map(function(e){return n.fn(e)}).join(t)}),Handlebars.registerHelper("tryLink",function(e,t){var n=t.fn(this);if(e.dfn){var r="<a for='"+Handlebars.Utils.escapeExpression(e.linkFor||"")+"'";return e.name&&(r+=" data-lt='"+Handlebars.Utils.escapeExpression(e.name)+(e.overload?"!overload-"+e.overload+"' data-lt-noDefault":"'")),r+=">"+n+"</a>"}return n})}function C(e){for(var t="",n=0;e>n;n++)t+=" ";return t}function T(e){if("string"==typeof e)return"<a>"+Handlebars.Utils.escapeExpression(e)+"</a>";if(Array.isArray(e))return e.map(T).join(", ");var t=e.nullable?"?":"";if(e.union)return"("+e.idlType.map(function(e){return T(e)}).join(" or ")+")"+t;if(e.array){for(var n="",r=0;r<e.array;++r)e.nullableArray[r]&&(n+="?"),n+="[]";return T({generic:e.generic,idlType:e.idlType})+n+t}return e.generic?Handlebars.Utils.escapeExpression(e.generic)+"<"+T(e.idlType)+">"+t:T(e.idlType)+t}function S(e){if("string"==typeof e)return e;var t=e.nullable?"?":"";if(e.union)return"("+e.idlType.map(function(e){return S(e)}).join(" or ")+")"+t;if(e.array){for(var n="",r=0;r<e.array;++r)e.nullableArray[r]&&(n+="?"),n+="[]";return S({generic:e.generic,idlType:e.idlType})+n+t}return e.generic?e.generic+"<"+S(e.idlType)+">"+t:S(e.idlType)+t}function E(e){for(var t="",n=0;e>n;n++)t+=" ";return t}function N(e){return Y[e]}function D(e,t,n){if(0===e.length)return"";var r={extAttrs:e,indent:t,sep:n?", ":",\n "+C(t),end:n?" ":"\n"};return new Handlebars.SafeString(w(r))}function A(e){return-1!==K.indexOf(e)&&-1===J.indexOf(e)?"_"+e:e}function j(e){return-1!==K.indexOf(e)&&-1===Z.indexOf(e)?"_"+e:e}function I(e){return-1!==K.indexOf(e)?"_"+e:e}function L(e,t,n){var r={"class":e.useExperimentalStyles?"def idl":"idl"},i=$("<pre></pre>").attr(r);return i.html(t.filter(function(e){return!N(e.type)}).map(function(e){return R(e,-1,n)}).join("\n\n")),i}function R(e,t,n){t++;var a={indent:t,obj:e};switch(e.type){case"typedef":return r(a);case"implements":return i(a);case"interface":return P(a);case"callback interface":return P(a,"callback ");case"exception":var c=0,p=0;e.members.forEach(function(e){if(!N(e.type)){var t=S(e.idlType).length;"field"===e.type?c=t>c?t:c:"const"===e.type&&(p=t>p?t:p)}});var f=e.members.map(function(e){switch(e.type){case"field":return H(e,c,t+1);case"const":return F(e,p,t+1);case"line-comment":return W(e,t+1);case"multiline-comment":return B(e,t+1);case"ws":return q(e);case"ws-pea":break;default:throw new Error("Unexpected type in exception: "+it.type)}}).join("");return y({obj:e,indent:t,children:f});case"dictionary":var h=0,m=0;e.members.filter(function(e){return!N(e.type)}),e.members.forEach(function(e){if(!N(e.type)){var t="";e.required&&(t+="required "),h<t.length&&(h=t.length);var n=S(e.idlType).length;n>m&&(m=n)}});var f=e.members.map(function(e){switch(e.type){case"field":return G(e,h,m,t+1);case"line-comment":return W(e,t+1);case"multiline-comment":return B(e,t+1);case"ws":return q(e);case"ws-pea":break;default:throw new Error("Unexpected type in dictionary: "+e.type)}}).join("");return s({obj:e,indent:t,children:f,partial:e.partial?"partial ":""});case"callback":var g=e.arguments.filter(function(e){return!N(e.type)}).map(function(e){return u({obj:e,optional:e.optional?"optional ":"",variadic:e.variadic?"...":""})}),b={obj:e,indent:t,children:g.join(", ")},v=d(b),w=$(v).text();if(w.length>80){var x=w.indexOf("(")+1;b.children=g.join(",\n"+E(x)),v=d(b)}return v;case"enum":for(var f="",k=0;k<e.values.length;k++){var C=e.values[k];switch(C.type){case void 0:for(var T=!1,D=k+1;D<e.values.length;D++){var A=e.values[D];if(void 0===A.type)break;if(","===A.type){T=!0;break}}f+=o({lname:C.toString().toLowerCase(),name:C.toString(),parentID:e.name.toLowerCase(),indent:t+1,needsComma:T});break;case"line-comment":f+=W(C,t+1);break;case"multiline-comment":f+=B(C,t+1);break;case"ws":f+=q(C);break;case",":case"ws-pea":break;default:throw new Error("Unexpected type in exception: "+C.type)}}return l({obj:e,indent:t,children:f});default:return n.pub("error","Unexpected object type "+e.type+" in "+JSON.stringify(e)),""}}function P(e,t){var n=e.obj,r=e.indent,i=0,a=0,s=0,o=0;n.members.forEach(function(e){if(!N(e.type)&&"serializer"!==e.type&&"maplike"!==e.type){var t=S(e.idlType).length;if("attribute"===e.type){var n=M(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 O(e,i,r+1,a);case"operation":return _(e,s,r+1);case"const":return F(e,o,r+1);case"serializer":return U(e,r+1);case"maplike":return z(e,r+1);case"ws":return q(e);case"line-comment":return W(e,r+1);case"multiline-comment":return B(e,r+1);default:throw new Error("Unexpected member type: "+e.type)}}).join("");return x({obj:n,indent:r,partial:n.partial?"partial ":"",callback:t,children:l})}function H(e,t,n){var r=t-S(e.idlType).length;return v({obj:e,indent:n,pad:r})}function M(e){var t="";return e.static&&(t+="static "),e.stringifier&&(t+="stringifier "),e.inherit&&(t+="inherit "),e.readonly&&(t+="readonly "),t}function O(e,t,n,r){var i=S(e.idlType).length,a=t-i,s=M(e);return s+=E(r),s=s.slice(0,r),f({obj:e,indent:n,qualifiers:s,pad:a})}function _(e,t,n){var r=e.arguments.filter(function(e){return!N(e.type)}).map(function(e){return u({obj:e,optional:e.optional?"optional ":"",variadic:e.variadic?"...":""})}),i=r.join(", "),a=S(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,d={obj:e,indent:n,"static":e.static?"static ":"",special:o,pad:c,children:i},f=p(d),h=$(f).text();if(h.length>80){var m=h.indexOf("(")+1;d.children=r.join(",\n"+E(m)),f=p(d)}return f}function F(e,t,n){var r=t-S(e.idlType).length;return e.nullable&&r--,c({obj:e,indent:n,pad:r,nullable:e.nullable?"?":""})}function q(e){return/\n.*\n/.test(e.value)?"\n":""}function W(e,t){return g({indent:t,comment:e.value})}function B(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 g({indent:t,comment:r[0]});var i=Math.max(0,/^ */.exec(r[1])[0].length-3);return b({indent:t,firstLine:r[0],lastLine:n(r[r.length-1]),innerLine:r.slice(1,-1).map(n)})}function U(e,t){var n="";return e.patternMap?n="{"+e.names.join(", ")+"}":e.patternList?n="["+listValues.join(", ")+"]":e.name&&(n=e.name),h({obj:e,indent:t,values:n})}function z(e,t){var n="";return e.readonly&&(n+="readonly "),m({obj:e,qualifiers:n,indent:t})}function G(e,t,n,r){var i={obj:e,indent:r};return i.typePad=n-S(e.idlType).length,i.qualifiers=e.required?"required ":" ",i.qualifiers=i.qualifiers.slice(0,t),a(i)}function V(e,t,n,r){e.forEach(function(e){var i;switch(e.type){case"callback interface":case"dictionary":case"exception":case"interface":var a="";e.partial&&(et[e.name]||(et[e.name]=[]),et[e.name].push(e),a="-partial-"+et[e.name].length),V(e.members,t,e.name,r),i=e.name,e.idlId="idl-def-"+i.toLowerCase()+a;break;case"enum":i=e.name,e.values.forEach(function(n,a){void 0===n.type&&(e.values[a]={toString:function(){return n},dfn:X(i,n,t,r)})}),e.idlId="idl-def-"+i.toLowerCase();break;case"callback":case"typedef":i=e.name,e.idlId="idl-def-"+i.toLowerCase();break;case"attribute":case"const":case"field":i=e.name,e.idlId="idl-def-"+n.toLowerCase()+"-"+i.toLowerCase();break;case"operation":if(e.name){i=e.name;var s=[n+"."+i];Q[s]?(e.overload=Q[s].length,i=e.name+"!overload-"+e.overload):Q[s]=[],Q[s].push(e)}else(e.getter||e.setter||e.deleter||e.legacycaller||e.stringifier||e.serializer)&&(i="");e.idlId="idl-def-"+n.toLowerCase()+"-"+i.toLowerCase()+"("+e.arguments.filter(function(e){return!N(e.type)}).map(function(e){var t=e.optional?"optional-":"",n=e.variadic?"...":"";return t+S(e.idlType).toLowerCase()+n}).join(",").replace(/\s/g,"_")+")";break;case"maplike":i="maplike",e.idlId=("idl-def-"+n+"-"+i).toLowerCase();case"iterator":i="iterator",e.idlId="idl-def-"+n.toLowerCase()+"-"+i.toLowerCase();break;case"serializer":i="serializer",e.idlId="idl-def-"+n.toLowerCase()+"-"+i.toLowerCase();break;case"implements":case"ws":case"ws-pea":case"ws-tpea":case"line-comment":case"multiline-comment":return;default:return r.pub("error","Unexpected type when computing refTitles: "+e.type),void 0}n&&(e.linkFor=n),e.dfn=X(n,i,t,r)})}function X(e,t,n,r){e=e.toLowerCase(),t=t.toLowerCase();var i=n[t],a=[];if(i&&(a=i.filter(function(t){return t.attr("data-dfn-for")===e}),0===a.length&&""===e&&1===i.length&&(a=i)),0===a.length&&""!==e){var s=e+"."+t;i=n[s],void 0!==i&&1===i.length&&(a=i,delete n[s],a[0].attr("data-dfn-for",e),a[0].attr("data-lt",t),void 0===n[t]&&(n[t]=[]),n[t].push(a[0]))}if(a.length>1&&r.pub("error","Multiple <dfn>s for "+t+(e?" in "+e:"")),0===a.length)return void 0;var o=a[0];return o.attr("id","dom-"+(e?e+"-":"")+t),o.attr("data-idl",""),o.attr("data-dfn-for",e),0===o.children("code").length&&0===o.parents("code").length&&o.wrapInner("<code></code>"),o}var Y={ws:!0,"ws-pea":!0,"ws-tpea":!0,"line-comment":!0,"multiline-comment":!0},K=["ByteString","DOMString","Date","Infinity","NaN","RegExp","USVString","any","attribute","boolean","byte","callback","const","creator","deleter","dictionary","double","enum","false","float","getter","implements","inherit","interface","iterable","legacycaller","legacyiterable","long","maplike","null","object","octet","optional","or","partial","readonly","required","sequence","serializer","setlike","setter","short","static","stringifier","true","typedef","unrestricted","unsigned","void"],J=["attribute","callback","const","creator","deleter","dictionary","enum","getter","implements","inherit","interface","iterable","legacycaller","legacyiterable","maplike","partial","required","serializer","setlike","setter","static","stringifier","typedef","unrestricted"],Z=["required"],Q={},et={};return{run:function(e,t,r,i){i.pub("start","core/webidl-contiguous"),k(i);var a=$("pre.idl",t),s=function(){i.pub("end","core/webidl-contiguous"),r()};return a.length?($(".idl",t).not("pre").length||$(t).find("head link").first().before($("<style/>").text(n)),a.each(function(){var t;try{t=window.WebIDL2.parse($(this).text(),{ws:!0})}catch(n){return i.pub("error","Failed to parse <pre>"+a.text()+"</pre> as IDL: "+(n.stack||n)),void 0}V(t,e.definitionMap,"",i);var r=L(e,t,i);r.attr({id:this.id}),r.find(".idlAttribute,.idlCallback,.idlConst,.idlDictionary,.idlEnum,.idlException,.idlField,.idlInterface,.idlMember,.idlMethod,.idlSerializer,.idlMaplike,.idlTypedef").each(function(){var t=$(this),n=t.attr("data-title").toLowerCase(),r=t.parent().closest(".idlDictionary,.idlEnum,.idlException,.idlInterface");r.length&&t.attr("data-dfn-for",r.attr("data-title").toLowerCase()),e.definitionMap[n]||(e.definitionMap[n]=[]),e.definitionMap[n].push(t)}),$(this).replaceWith(r)}),t.normalize(),s(),void 0):s()}}}),define("tmpl!core/templates/webidl/module.html",["handlebars"],function(){return Handlebars.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",["handlebars"],function(){return Handlebars.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",["handlebars"],function(){return Handlebars.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",["handlebars"],function(){return Handlebars.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",["handlebars"],function(){return Handlebars.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",["handlebars"],function(){return Handlebars.compile('{{idn indent}}"<a href="#idl-def-{{parentID}}.{{obj.refId}}" class="idlEnumItem">{{obj.id}}</a>"')}),define("tmpl!core/templates/webidl/enum.html",["handlebars"],function(){return Handlebars.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}}}\n{{idn indent}}}};")}),define("tmpl!core/templates/webidl/const.html",["handlebars"],function(){return Handlebars.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",["handlebars"],function(){return Handlebars.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",["handlebars"],function(){return Handlebars.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",["handlebars"],function(){return Handlebars.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",["handlebars"],function(){return Handlebars.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",["handlebars"],function(){return Handlebars.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",["handlebars"],function(){return Handlebars.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",["handlebars"],function(){return Handlebars.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",["handlebars"],function(){return Handlebars.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",["handlebars"],function(){return Handlebars.compile("<span class='idlSectionComment'>{{extAttr obj indent true\n}}{{idn indent}}// {{comment}}</span>\n")}),define("tmpl!core/templates/webidl/field.html",["handlebars"],function(){return Handlebars.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",["handlebars"],function(){return Handlebars.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>")}),define("tmpl!core/templates/webidl/interface.html",["handlebars"],function(){return Handlebars.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",["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,d,p,f,h,m,g,b,v,y,w,x){var k=function(e){this.parent={type:"module",id:"outermost",children:[]},e||(e={});for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);Handlebars.registerHelper("extAttr",function(e,t,n,r){var i="";return e.extendedAttributes?i+=C(t)+"[<span class='extAttr'>"+e.extendedAttributes+"</span>"+("string"==typeof r&&r.length?",\n"+r:"")+"]"+(n?"\n":" "):"string"==typeof r&&r.length&&(i+=C(t)+"["+r+"]"+(n?"\n":" ")),new Handlebars.SafeString(i)}),Handlebars.registerHelper("param",function(e,t){var n="";return t&&(n+=" ("+t+")"),new Handlebars.SafeString(n)}),Handlebars.registerHelper("idn",function(e){return new Handlebars.SafeString(C(e))}),Handlebars.registerHelper("asWebIDL",function(e,t,n){return new Handlebars.SafeString(e.writeAsWebIDL(t,n))}),Handlebars.registerHelper("datatype",function(e){return new Handlebars.SafeString(E(e))}),Handlebars.registerHelper("pads",function(e){return new Handlebars.SafeString(N(e))}),Handlebars.registerHelper("superclasses",function(e){if(!e.superclasses||!e.superclasses.length)return"";var t=" : "+e.superclasses.map(function(e){return"<span class='idlSuperclass'><a>"+e+"</a></span>"}).join(", ");return new Handlebars.SafeString(t)})},C=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},E=function(e){if($.isArray(e)){for(var t=[],n=0,r=e.length;r>n;n++)t.push(E(e[n]));return"("+t.join(" or ")+")"}var i=/^(sequence|Promise|CancelablePromise|EventStream|FrozenArray)<(.+)>$/.exec(e);return i?i[1]+"<<a>"+E(i[2])+"</a>>":"<a>"+e+"</a>"},N=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(e,t,n){var r={};e=this.parseExtendedAttributes(e,r);var i=/^\s*(?:in\s+)?([^,=]+)\s+\b([^,]+)\s*(?:,)?\s*/,a=i.exec(e);if(!a)return this.msg.pub("error","Expected parameter list, got: "+e),!1;e=e.replace(i,"");var s=a[1],o=a[2],l=o.split(/\s*=\s*/),c=null;return 1===l.length?o=o.replace(/\s+/g,""):(o=l[0],c=l[1]),this.parseDatatype(r,s),r.defaultValue=c,this.setID(r,o),t&&(r.description=t.contents()),n.params.push(r),e},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(e){var t={children:[]},n=e.attr("title"),r=e.attr("id");if(n||this.msg.pub("error","No IDL definition in element."),n=this.parseExtendedAttributes(n,t),0===n.indexOf("partial")){var i=n.slice(8);0===i.indexOf("interface")?this.processInterface(t,n,e,{partial:!0}):0===i.indexOf("dictionary")?this.dictionary(t,i,e,{partial:!0}):this.msg.pub("error","Expected definition, got: "+n)}else 0===n.indexOf("interface")||/^callback\s+interface\b/.test(n)?this.processInterface(t,n,e):0===n.indexOf("exception")?this.exception(t,n,e):0===n.indexOf("dictionary")?this.dictionary(t,n,e):0===n.indexOf("callback")?this.callback(t,n,e):0===n.indexOf("enum")?this.processEnum(t,n,e):0===n.indexOf("typedef")?this.typedef(t,n,e):/\bimplements\b/.test(n)?this.processImplements(t,n,e):this.msg.pub("error","Expected definition, got: "+n);return this.parent.children.push(t),this.processMembers(t,e),r&&(t.htmlID=r),t},processInterface:function(e,t,n,r){r=r||{},e.type="interface",e.partial=r.partial||!1;var i=/^\s*(?:(partial|callback)\s+)?interface\s+([A-Za-z][A-Za-z0-9]*)(?:\s+:\s*([^{]+)\s*)?/.exec(t);return i?(e.callback=!!i[1]&&"callback"===i[1],this.setID(e,i[2]),n.attr("data-merge")&&(e.merge=n.attr("data-merge").split(" ")),i[3]&&(e.superclasses=i[3].split(/\s*,\s*/))):this.msg.pub("error","Expected interface, got: "+t),e},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(e,t,n){t.type=e;var r=new RegExp("^\\s*"+e+"\\s+([A-Za-z][A-Za-z0-9]*)(?:\\s+:\\s*([^{]+)\\s*)?\\s*"),i=r.exec(n);return i?(this.setID(t,i[1]),i[2]&&(t.superclasses=i[2].split(/\s*,\s*/))):this.msg.pub("error","Expected "+e+", got: "+n),t},callback:function(e,t){e.type="callback";var n=/^\s*callback\s+([A-Za-z][A-Za-z0-9]*)\s*=\s*\b(.*?)\s*$/.exec(t);if(n){this.setID(e,n[1]);var r=n[2];this.parseDatatype(e,r)}else this.msg.pub("error","Expected callback, got: "+t);return e},processEnum:function(e,t){e.type="enum";var n=/^\s*enum\s+([A-Za-z][A-Za-z0-9]*)\s*$/.exec(t);return n?this.setID(e,n[1]):this.msg.pub("error","Expected enum, got: "+t),e},typedef:function(e,t,n){e.type="typedef",t=t.replace(/^\s*typedef\s+/,""),t=this.parseExtendedAttributes(t,e);var r=/^(.+)\s+(\S+)\s*$/.exec(t);if(r){var i=r[1];this.parseDatatype(e,i),this.setID(e,r[2]),e.description=n.contents()}else this.msg.pub("error","Expected typedef, got: "+t);return e},processImplements:function(e,t,n){e.type="implements";var r=/^\s*(.+?)\s+implements\s+(.+)\s*$/.exec(t);return r?(this.setID(e,r[1]),e.datatype=r[2],e.description=n.contents()):this.msg.pub("error","Expected implements, got: "+t),e},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(e,t){var n={children:[]},r=T(e.text());if(n.description=t.contents(),r=this.parseExtendedAttributes(r,n),this.parseConst(n,r))return n;var i=/^\s*(.*?)\s+(\S+)\s*$/.exec(r);if(i){n.type="field";var a=i[1];return this.parseDatatype(n,a),this.setID(n,i[2]),n}this.msg.pub("error","Expected exception member, got: "+r)},dictionaryMember:function(e,t){var n={children:[]},r=T(e.text());n.description=t.contents(),r=this.parseExtendedAttributes(r,n);var i=/^\s*(?:(required)\s+)?([^=]+\??)\s+([^=\s]+)(?:\s*=\s*(.*))?$/.exec(r);if(i){n.type="member",n.declaration=i[1]?i[1]:"",n.declaration+=new Array(9-n.declaration.length).join(" ");var a=i[2];return n.defaultValue=i[4],this.setID(n,i[3]),this.parseDatatype(n,a),n}this.msg.pub("error","Expected dictionary member, got: "+r)},callbackMember:function(e,t){var n={children:[]},r=T(e.text());n.description=t.contents(),r=this.parseExtendedAttributes(r,n);var i=/^\s*(.*?)\s+([A-Za-z][A-Za-z0-9]*)\s*$/.exec(r);if(i){n.type="member";var a=i[1];return this.setID(n,i[2]),n.defaultValue=i[3],this.parseDatatype(n,a),this.optional(n),n}this.msg.pub("error","Expected callback member, got: "+r)},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(e,t){var n={children:[]},r=T(e.text()),i=t.find("dl.parameters").first(),a=t.find(".getraises, .setraises"),s=t.find("dl.exception").first();
n.description=t.contents().not("dl.parameters"),r=this.parseExtendedAttributes(r,n);var o;if(o=/^\s*(?:(static)\s+)?(?:(readonly|inherit|stringifier)\s+)?attribute\s+(.*?)\s+(\S+)\s*$/.exec(r)){n.type="attribute",n.declaration=o[1]?o[1]:"",n.declaration+=(n.declaration?" ":"")+(void 0!==o[2]?o[2]:""),n.declaration+=new Array(16-n.declaration.length).join(" ");var l=o[3];return this.parseDatatype(n,l),this.setID(n,o[4]),n.raises=[],a.each(function(){var e=$(this),t={id:e.attr("title"),onSet:e.hasClass("setraises"),onGet:e.hasClass("getraises")};e.is("dl")?(t.type="codelist",t.description=[],e.find("dt").each(function(){var e=$(this),n=e.next("dd");t.description.push({id:e.text(),description:n.contents().clone()})})):e.is("div")?(t.type="simple",t.description=e.contents().clone()):this.msg.pub("error","Do not know what to do with exceptions being raised defined outside of a div or dl."),e.remove(),n.raises.push(t)}),n}if(this.parseConst(n,r))return n;if(o=/^\s*Constructor(?:\s*\(\s*(.*)\s*\))?\s*$/.exec(r)){n.type="constructor";var c=o[1]?o[1]:[];return this.setID(n,this.parent.id),n.named=!1,n.datatype="",this.methodMember(n,s,i,c)}if(o=/^\s*NamedConstructor\s*(?:=\s*)?\b([^(]+)(?:\s*\(\s*(.*)\s*\))?\s*$/.exec(r)){n.type="constructor";var c=o[2]?o[2]:[];return this.setID(n,o[1]),n.named=!0,n.datatype="",this.methodMember(n,s,i,c)}if(o=/^\s*(.*?)\s+\b(\S+?)\s*\(\s*(.*)\s*\)\s*$/.exec(r)){n.type="method";var l=o[1],c=o[3];return l=this.parseStatic(n,l),this.parseDatatype(n,l),this.setID(n,o[2]),this.methodMember(n,s,i,c)}if(o=/^\s*serializer(\s*=\s*((\{\s*(\S+(\s*,\s*\S+)*)?\s*\})|(\[(\s*\S+(\s*,\s*\S+)*)?\s*\])|(\S+)))?\s*$/.exec(r)){n.type="serializer",n.values=[],this.setID(n,"serializer");var u,d=o[3],p=o[6],f=o[9];if(d?(n.serializertype="map",u=o[4]):p?(n.serializertype="list",u=o[7]):f?(n.serializertype="attribute",n.values.push(f)):n.serializertype="prose",u){var h=u.split(/\s*,\s*/);n.getter=!1,n.inherit=!1,n.all=!1,"getter"==h[0]?n.getter=!0:("map"==n.serializertype&&("inherit"==h[0]&&(n.inherit=!0,h.shift()),"attribute"==h[0]&&"map"==n.serializertype&&(n.all=!0,h=[])),n.values=h)}return n}return(o=/^\s*iterable\s*<\s*([^,]*)\s*(,\s*(.*)\s*)?>\s*$/.exec(r))?(n.type="iterable",n.key=o[1],n.value=o[3],n):(o=/^\s*(readonly\s+)?maplike\s*<\s*(.*)\s*,\s*(.*)\s*>\s*$/.exec(r))?(n.type="maplike",n.readonly=void 0!==o[1],n.key=o[2],n.value=o[3],n):(o=/^\s*\/\/\s*(.*)\s*$/.exec(r))?(n.type="comment",n.id=o[1],n):(this.msg.pub("error","Expected interface member, got: "+r),void 0)},methodMember:function(e,t,n,r){if(e.params=[],e.raises=[],t.each(function(){var t=$(this),n={id:t.attr("title")};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()):this.msg.pub("error","Do not know what to do with exceptions being raised defined outside of a div or dl."),t.remove(),e.raises.push(n)}),n.length){n.remove();var i=this;n.find("> dt").each(function(){return i.params($(this).text(),$(this).next(),e)})}else for(;r.length&&(r=this.params(r,null,e),r!==!1););for(var a=!1,s=0;s<e.params.length;s++)a?(e.params[s].optional=!0,e.params[s].datatype=e.params[s].datatype.replace(/\boptional\s+/,"")):a=this.optional(e.params[s]);return e},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" 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 this.writeIterableAsHTML(n,i[0]),void 0;if("maplike"==r)return this.writeMaplikeAsHTML(n,i[0]),void 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 this.writeSerializerAsHTML(sn.element("div",{},a),i[0]),void 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),d=sn.element("dt",{id:u},o);sn.element("code",{},d,c.unescapedId),c.isStatic&&d.append(this.doc.createTextNode(", static"));var p=sn.element("dd",{},o,[c.description]);if("method"==r||"constructor"==r){if(c.params.length){var f=sn.element("table",{"class":"parameters"},p),h=sn.element("tr",{},f);["Parameter","Type","Nullable","Optional","Description"].forEach(function(e){sn.element("th",{},h,e)});for(var m=0;m<c.params.length;m++){var g=c.params[m],h=sn.element("tr",{},f);sn.element("td",{"class":"prmName"},h,g.id);var b=sn.element("td",{"class":"prmType"},h),v=sn.element("code",{},b),y=E(g.datatype);g.array&&(y+=S(g)),g.defaultValue&&(y+=" = "+g.defaultValue),v.html(y),g.nullable?sn.element("td",{"class":"prmNullTrue"},h,$("<span role='img' aria-label='True'>✔</span>")):sn.element("td",{"class":"prmNullFalse"},h,$("<span role='img' aria-label='False'>✘</span>")),g.optional?sn.element("td",{"class":"prmOptTrue"},h,$("<span role='img' aria-label='True'>✔</span>")):sn.element("td",{"class":"prmOptFalse"},h,$("<span role='img' aria-label='False'>✘</span>"));var w=g.description?[g.description]:"";sn.element("td",{"class":"prmDesc"},h,w)}}else sn.element("div",{},p,[sn.element("em",{},null,"No parameters.")]);if(this.conf.idlOldStyleExceptions&&c.raises.length){var f=sn.element("table",{"class":"exceptions"},p),h=sn.element("tr",{},f);["Exception","Description"].forEach(function(e){sn.element("th",{},h,e)});for(var m=0;m<c.raises.length;m++){var x=c.raises[m],h=sn.element("tr",{},f);sn.element("td",{"class":"excName"},h,[sn.element("a",{},null,x.id)]);var k=sn.element("td",{"class":"excDesc"},h);if("simple"==x.type)k.append(x.description);else for(var C=sn.element("table",{"class":"exceptionCodes"},k),T=0;T<x.description.length;T++){var N=x.description[T],h=sn.element("tr",{},C);sn.element("td",{"class":"excCodeName"},h,[sn.element("code",{},null,N.id)]),sn.element("td",{"class":"excCodeDesc"},h,[N.description])}}}if("constructor"!==r){var D=sn.element("div",{},p);sn.element("em",{},D,"Return type: ");var v=sn.element("code",{},D),y=E(c.datatype);c.array&&(y+=S(c)),c.nullable&&sn.text(", nullable",D),v.html(y)}}else if("attribute"==r){if(sn.text(" of type ",d),c.array)for(var T=0,A=c.arrayCount;A>T;T++)sn.text("array of ",d);var j=sn.element("span",{"class":"idlAttrType"},d),I=this.parseParameterized(c.datatype);if(I?(sn.text(I.type+"<",j),sn.element("a",{},j,I.parameter),sn.text(">",j)):sn.element("a",{},j,c.isUnionType?"("+c.datatype.join(" or ")+")":c.datatype),c.declaration.trim()&&sn.text(", "+c.declaration,d),c.nullable&&sn.text(", nullable",d),this.conf.idlOldStyleExceptions&&c.raises.length){var f=sn.element("table",{"class":"exceptions"},p),h=sn.element("tr",{},f);["Exception","On Get","On Set","Description"].forEach(function(e){sn.element("th",{},h,e)});for(var m=0;m<c.raises.length;m++){var x=c.raises[m],h=sn.element("tr",{},f);sn.element("td",{"class":"excName"},h,[sn.element("a",{},null,x.id)]),["onGet","onSet"].forEach(function(e){x[e]?sn.element("td",{"class":"excGetSetTrue"},h,$("<span role='img' aria-label='True'>✔</span>")):sn.element("td",{"class":"excGetSetFalse"},h,$("<span role='img' aria-label='False'>✘</span>"))});var k=sn.element("td",{"class":"excDesc"},h);if("simple"==x.type)k.append(x.description);else for(var C=sn.element("table",{"class":"exceptionCodes"},k),T=0;T<x.description.length;T++){var N=x.description[T],h=sn.element("tr",{},C);sn.element("td",{"class":"excCodeName"},h,[sn.element("code",{},null,N.id)]),sn.element("td",{"class":"excCodeDesc"},h,[N.description])}}}}else"constant"==r&&(sn.text(" of type ",d),sn.element("span",{"class":"idlConstType"},d,[sn.element("a",{},null,c.datatype)]),c.nullable&&sn.text(", nullable",d))}},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(e){if("module"==e.type)return"outermost"==e.id?(e.children.length>1&&this.msg.pub("error","We currently only support one structural level per IDL fragment"),this.writeAsHTML(e.children[0])):(this.msg.pub("warn","No HTML can be generated for module definitions."),$("<span></span>"));if("typedef"==e.type){var t;if(e.description&&e.description.text())t=[e.description];else{var n=sn.element("span",{"class":"idlTypedefType"},null);n.html(E(e.datatype)),t=[sn.text("Throughout this specification, the identifier "),sn.element("span",{"class":"idlTypedefID"},null,e.unescapedId),sn.text(" is used to refer to the "),sn.text(e.array?(e.arrayCount>1?e.arrayCount+"-":"")+"array of ":""),n,sn.text(e.nullable?" (nullable)":""),sn.text(" type.")]}return sn.element("div",{"class":"idlTypedefDesc"},null,t)}if("implements"==e.type){var t;return e.description&&e.description.text()?t=[e.description]:(t=[sn.text("All instances of the "),sn.element("code",{},null,[sn.element("a",{},null,e.unescapedId)]),sn.text(" type are defined to also implement the "),sn.element("a",{},null,e.datatype),sn.text(" interface.")],t=[sn.element("p",{},null,t)]),sn.element("div",{"class":"idlImplementsDesc"},null,t)}if("exception"==e.type){for(var r=sn.documentFragment(),i="widl-"+e.refId+"-",a=["field","constant"],s=function(e){return e.type===c},o=function(e,t){return e.unescapedId<t.unescapedId?-1:e.unescapedId>t.unescapedId?1:0},l=0;l<a.length;l++){var c=a[l],u=e.children.filter(s);if(0!==u.length){this.noIDLSorting||u.sort(o);var d=sn.element("section",{},r),p=c;p=p.substr(0,1).toUpperCase()+p.substr(1)+"s",this.conf.noIDLSectionTitle||sn.element("h2",{},d,p);for(var f=sn.element("dl",{"class":c+"s"},d),h=0;h<u.length;h++){var m=u[h],g=sn.element("dt",{id:i+m.refId},f);if(sn.element("code",{},g,m.unescapedId),sn.element("dd",{},f,[m.description]),"field"==c){if(sn.text(" of type ",g),m.array)for(var b=0,v=m.arrayCount;v>b;b++)sn.text("array of ",g);var y=sn.element("span",{"class":"idlFieldType"},g),w=this.parseParameterized(m.datatype);w?(sn.text(w.type+"<",y),sn.element("a",{},y,w.parameter),sn.text(">",y)):sn.element("a",{},y,m.datatype),m.nullable&&sn.text(", nullable",g)}else"constant"==c&&(sn.text(" of type ",g),sn.element("span",{"class":"idlConstType"},g,[sn.element("a",{},null,m.datatype)]),m.nullable&&sn.text(", nullable",g))}}}return r}if("dictionary"==e.type){var t,r=sn.documentFragment(),i="widl-"+e.refId+"-",u=e.children;if(0===u.length)return r;this.noIDLSorting||u.sort(function(e,t){return e.id<t.id?-1:e.id>t.id?1:0});var d=sn.element("section",{},r);t=[sn.text("Dictionary "),sn.element("a",{"class":"idlType"},null,e.unescapedId),sn.text(" Members")],this.conf.noIDLSectionTitle||sn.element("h2",{},d,t);for(var f=sn.element("dl",{"class":"dictionary-members"},d),h=0;h<u.length;h++){var m=u[h],g=sn.element("dt",{id:i+m.refId},f);if(sn.element("code",{},g,m.unescapedId),sn.element("dd",{},f,[m.description]),sn.text(" of type ",g),m.array)for(var l=0,v=m.arrayCount;v>l;l++)sn.text("array of ",g);var y=sn.element("span",{"class":"idlMemberType"},g),w=this.parseParameterized(m.datatype);w?(sn.text(w.type+"<",y),sn.element("a",{},y,w.parameter),sn.text(">",y)):sn.element("a",{},y,m.isUnionType?"("+m.datatype.join(" or ")+")":m.datatype),m.declaration.trim()&&sn.text(", "+m.declaration,g),m.nullable&&sn.text(", nullable",g),m.defaultValue&&(sn.text(", defaulting to ",g),sn.element("code",{},g,[sn.text(m.defaultValue)]))}return r}if("callback"==e.type){var t,r=sn.documentFragment(),i="widl-"+e.refId+"-",u=e.children;if(0===u.length)return r;var d=sn.element("section",{},r);t=[sn.text("Callback "),sn.element("a",{"class":"idlType"},null,e.unescapedId),sn.text(" Parameters")],this.conf.noIDLSectionTitle||sn.element("h2",{},d,t);for(var f=sn.element("dl",{"class":"callback-members"},d),h=0;h<u.length;h++){var m=u[h],g=sn.element("dt",{id:i+m.refId},f);if(sn.element("code",{},g,m.unescapedId),sn.element("dd",{},f,[m.description]),sn.text(" of type ",g),m.array)for(var l=0,v=m.arrayCount;v>l;l++)sn.text("array of ",g);var y=sn.element("span",{"class":"idlMemberType"},g),w=this.parseParameterized(m.datatype);w?(sn.text(w.type+"<",y),sn.element("a",{},y,w.parameter),sn.text(">",y)):sn.element("a",{},y,m.isUnionType?"("+m.datatype.join(" or ")+")":m.datatype),m.nullable&&sn.text(", nullable",g),m.defaultValue&&(sn.text(", defaulting to ",g),sn.element("code",{},g,[sn.text(m.defaultValue)]))}return r}if("enum"==e.type){var r=sn.documentFragment(),u=e.children;if(0===u.length)return r;var d=sn.element("table",{"class":"simple"},r);sn.element("tr",{},d,[sn.element("th",{colspan:2},null,[sn.text("Enumeration description")])]);for(var h=0;h<u.length;h++){var m=u[h],x=sn.element("tr",{},d),k=sn.element("td",{},x);sn.element("code",{id:"idl-def-"+e.refId+"."+m.refId},k,m.unescapedId),sn.element("td",{},x,[m.description])}return r}return"interface"==e.type?this.writeInterfaceAsHTML(e):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 a={indent:t,obj:e,proc:this};if("module"===e.type){if("outermost"==e.id){for(var c=$("<div></div>"),p=0;p<e.children.length;p++)c.append(this.writeAsWebIDL(e.children[p],t-1));return c.children()}return $(n(a))}if("typedef"===e.type)return a.nullable=e.nullable?"?":"",a.arr=S(e),$(r(a));if("implements"===e.type)return $(i(a));if("interface"===e.type){var f=this.doc.createElement("div"),h=$(f).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+"-",k=this,C=[],T=e.children.map(function(e){if("attribute"==e.type)return k.writeAttribute(e,m,t+1,y,v);if("method"==e.type)return k.writeMethod(e,g,t+1,y);if("constant"==e.type)return k.writeConst(e,b,t+1,y);if("serializer"==e.type)return k.writeSerializer(e,t+1,y);if("constructor"==e.type)C.push(k.writeConstructor(e,t,"widl-ctor-"));else{if("iterable"==e.type)return k.writeIterable(e,t+1,y);if("maplike"==e.type)return k.writeMaplike(e,t+1,y);if("comment"==e.type)return k.writeComment(e,t+1)}}).join("");return x({obj:e,indent:t,id:h,ctor:C.join(",\n"),partial:e.partial?"partial ":"",callback:e.callback?"callback ":"",children:T})}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+"-",k=this,T=e.children.map(function(e){return"field"===e.type?k.writeField(e,m,t+1,y):"constant"===e.type?k.writeConst(e,b,t+1,y):void 0}).join("");return w({obj:e,indent:t,children:T})}if("dictionary"===e.type){var E=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),E=t>E?t:E});var y="widl-"+e.refId+"-",k=this,T=e.children.map(function(e){return k.writeMember(e,E,t+1,y)}).join("");return s({obj:e,indent:t,children:T,partial:e.partial?"partial ":""})}if("callback"===e.type){var N=e.children.map(function(e){return u({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:N})}if("enum"===e.type){var T=e.children.map(function(n){return o({obj:n,parentID:e.refId,indent:t+1})}).join(",\n");return l({obj:e,indent:t,children:T})}},writeField:function(e,t,n,r){var i=t-e.datatype.length;return e.nullable&&(i-=1),e.array&&(i-=2*e.arrayCount),y({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),h({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 u({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),p({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 u({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--,c({obj:e,indent:n,pad:r,nullable:e.nullable?"?":""})},writeComment:function(e,t){return v({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 m({obj:e,indent:t,values:n})},writeIterable:function(e,t){return g({obj:e,indent:t})},writeMaplike:function(e,t){var n=e.readonly?"readonly ":"";return b({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),a(i)}},{run:function(e,n,r,i){i.pub("start","core/webidl"),e.noIDLSorting||(e.noIDLSorting=!1),e.noIDLSectionTitle||(e.noIDLSectionTitle=!1),sn=new simpleNode(document);var a=$(".idl",n).not("pre"),s=function(){i.pub("end","core/webidl"),r()};if(!a.length)return s();$(n).find("head link").first().before($("<style/>").text(t));var o=[];a.each(function(){var t=new k({noIDLSorting:e.noIDLSorting,msg:i,doc:n,conf:e}),r=t.definition($(this)),a=t.makeMarkup(r.htmlID);$(this).replaceWith(a),-1!==$.inArray(r.type,"interface exception dictionary typedef callback enum".split(" "))&&o.push(r.id)}),n.normalize(),$("a:not([href])").each(function(){var e=$(this);if(!e.hasClass("externalDFN")){var t=e.text();-1!==$.inArray(t,o)&&e.attr("href","#idl-def-"+t).addClass("idlType").html("<code>"+t+"</code>")}}),s()}}}),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",[],function(){return{run:function(e,t,n,r){function i(e){return function(t){var n=t.getAttribute(e);t.removeAttribute(e),t.setAttribute("data-"+e,n)}}r.pub("start","core/link-to-dfn"),t.normalize();var a={};Object.keys(e.definitionMap).forEach(function(t){a[t]={},e.definitionMap[t].forEach(function(e){void 0===e.attr("data-idl")&&e.removeAttr("data-dfn-for");var n=e.attr("data-dfn-for")||"";if(n in a[t]){var i=0!==a[t][n].filter("dfn").length,s=0!==e.filter("dfn").length;if(i&&s&&r.pub("error","Duplicate definition of '"+(n?n+"/":"")+t+"'"),i)return}a[t][n]=e,void 0===e.attr("id")&&(e.attr("data-idl")?e.makeID("dom",(n?n+"-":"")+t):e.makeID("dfn",t))})}),$("a:not([href])").each(function(){var e=$(this);if(!e.hasClass("externalDFN")){var t=e.linkTargets(),n=t.some(function(t){if(a[t.title]&&a[t.title][t.for_]){var n=a[t.title][t.for_];return e.attr("href","#"+n.prop("id")).addClass("internalDFN"),e.attr("data-link-type")||e.attr("data-link-type","dfn"),(n.closest("code,pre").length||1===n.contents().length&&1===n.children("code").length)&&e.wrapInner("<code></code>"),!0}return!1});if(!n){if(!e.parents(".idl, dl.methods, dl.attributes, dl.constants, dl.constructors, dl.fields, dl.dictionary-members, span.idlMemberType, span.idlTypedefType, div.idlImplementsDesc").length){var i=t[0].for_,s=t[0].title;r.pub("warn","Found linkless <a> element "+(i?"for '"+i+"' ":"")+"with text '"+s+"' but no matching <dfn>.")}e.replaceWith(e.contents())}}});var s=t.querySelectorAll("*[for]");Array.prototype.forEach.call(s,i("for"));var o=t.querySelectorAll("*[dfn-for]");Array.prototype.forEach.call(o,i("dfn-for"));var l=t.querySelectorAll("*[link-for]");Array.prototype.forEach.call(l,i("link-for")),r.pub("end","core/link-to-dfn"),n()}}}),define("core/contrib",["github"],function(e){return{run:function(t,n,r,i){function a(){i.pub("end","core/contrib"),r()}function s(e){return function(t){return t[e]}}function o(e){return Array.prototype.slice.call(e,0)}function l(){var e={};return o(arguments).forEach(function(t){t.forEach(function(t){t.user&&(e[t.user.url]=!0)})}),Object.keys(e)}function c(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 u(t,n,r){return $.when.apply($,t.map(function(t){return e.fetch(t)})).then(function(){var e=o(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(c(e)).attr("id",null)})}i.pub("start","core/contrib");var d=n.querySelector("#gh-commenters"),p=n.querySelector("#gh-contributors");if(!d&&!p)return a(),void 0;if(!t.githubAPI){var f=[];return d&&f.push("#"+d.id),p&&f.push("#"+p.id),i.pub("error","Requested list of contributors and/or commenters from GitHub ("+f.join(" and ")+") but config.githubAPI is not set."),a(),void 0}e.fetch(t.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(s("name")),i=l(e,t);return n=n.map(s("url")),$.when(u(i,r,d),u(n,r,p))}).then(a,function(e){i.pub("error","Error loading contributors and/or commenters from GitHub. Error: "+e),a()})}}}),define("core/fix-headers",[],function(){return{run:function(e,t,n,r){r.pub("start","core/fix-headers");var i=$("section:not(.introductory)",t).find("h1:first, h2:first, h3:first, h4:first, h5:first, h6:first");i.each(function(){var e=$(this).parents("section").length+1;e>6&&(e=6);var t="h"+e;this.localName.toLowerCase()!==t&&$(this).renameElement(t)}),r.pub("end","core/fix-headers"),n()}}}),define("core/structure",[],function(){var e={},t=!1,n=0,r="ABCDEFGHIJKLMNOPQRSTUVWXYZ",i=function(a,s,o,l,c){var u=a.children(c.tocIntroductory?"section":"section:not(.introductory)");if(0===u.length)return null;for(var d=$("<ul class='toc'></ul>"),p=0;p<u.length;p++){var f=$(u[p],s),h=f.hasClass("introductory"),m=f.hasClass("notoc");if(f.children().length&&!m){var g=f.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:f.makeID(null,v);h||o[o.length-1]++;var x=o.slice();f.hasClass("appendix")&&1===o.length&&!t&&(n=o[0],t=!0),t&&(x[0]=r.charAt(o[0]-n));var k=x.join("."),C=1==x.length;C&&(k+=".",$(g).before(document.createComment("OddPage")));var T=$("<span class='secno'></span>").text(k+" ");h||$(g).prepend(T),e[w]=(h?"":"<span class='secno'>"+k+"</span> ")+"<span class='sec-title'>"+v+"</span>";var S=$("<a/>").attr({href:"#"+w,"class":"tocxref"}).append(h?"":T.clone()).append(y.contents()),E=$("<li class='tocline'/>").append(S);(0==c.maxTocLevel||l<=c.maxTocLevel)&&d.append(E),o.push(0);var N=i(f,s,o,l+1,c);N&&E.append(N),o.pop()}}}return d};return{run:function(t,n,r,a){a.pub("start","core/structure"),t.tocIntroductory||(t.tocIntroductory=!1),t.maxTocLevel||(t.maxTocLevel=0);var s=$("section:not(.introductory)",n).find("h1:first, h2:first, h3:first, h4:first, h5:first, h6:first"),o=function(){a.pub("end","core/structure"),r()};if(!s.length)return o();if(s.each(function(){var e=$(this).parents("section").length+1;e>6&&(e=6);var t="h"+e;this.localName.toLowerCase()!=t&&$(this).renameElement(t)}),!t.noTOC){var l=i($("body",n),n,[0],1,t);if(!l)return;var c=t.useExperimentalStyles?"nav":"section",u=$("<"+c+" id='toc'/>").append("<h2 class='introductory'>"+t.l10n.toc+"</h2>").append(l),d=$("#toc",n),p=!1;if(d.length&&(p=!0),d.length||(d=$("#sotd",n)),d.length||(d=$("#abstract",n)),p?d.replaceWith(u):d.after(u),t.useExperimentalStyles){var f=$("<p role='navigation' id='back-to-top'><a href='#toc'><abbr title='Back to Top'>↑</abbr></p>");$("body").append(f)}}$("a[href^='#']:not(.tocxref)",n).each(function(){var t=$(this);if(""===t.html()){var n=t.attr("href").slice(1);e[n]&&(t.addClass("sec-ref"),t.html((t.hasClass("sectionRef")?"section ":"")+e[n]))}}),o()}}}),define("w3c/informative",[],function(){return{run:function(e,t,n,r){r.pub("start","core/informative"),$("section.informative").find("> h2:first, > h3:first, > h4:first, > h5:first, > h6:first").after("<p><em>This section is non-normative.</em></p>"),r.pub("end","core/informative"),n()}}}),define("tmpl!w3c/templates/permalinks.css",["handlebars"],function(){return Handlebars.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){return{run:function(t,n,r,i){if(i.pub("start","w3c/permalinks"),t.includePermalinks){var a=t.permalinkSymbol||"§",s="<style>"+e(t)+"</style>";$(n).find("head link").first().before(s);var o=$(n).find("h2, h3, h4, h5, h6");o.each(function(e,n){var r=$(n);if(!r.hasClass("nolink")){var i=r.attr("id"),s=r.parent();if((s.is("section")||s.is("div"))&&(i=s.hasClass("introductory")||s.hasClass("nolink")?null:s.attr("id")),null!=i){var o=$("<span></span>");o.attr("class","permalink"),t.doRDFa&&o.attr("typeof","bookmark");var l=r.text(),c=$("<a></a>");c.attr({href:"#"+i,"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(a),c.append(u),o.append(c),t.permalinkEdge||r.append(" "),r.append(o)}}})}i.pub("end","w3c/permalinks"),r()}}}),define("core/id-headers",[],function(){return{run:function(e,t,n,r){r.pub("start","core/id-headers"),$("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()}}),r.pub("end","core/id-headers"),n()}}}),define("core/rdfa",[],function(){return{run:function(e,t,n,r){r.pub("start","core/rdfa"),e.doRDFa&&$("section").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>"))}),r.pub("end","core/rdfa"),n()}}}),define("w3c/aria",["core/utils"],function(){return{run:function(e,t,n,r){if(r.pub("start","w3c/aria"),$("body",t).attr("role","document"),$("body",t).attr("id","respecDocument"),$("div.head",t).attr("role","contentinfo"),$("div.head",t).attr("id","respecHeader"),!e.noTOC){var i=e.useExperimentalStyles?$("nav#toc",t).find("ul:first"):$("section#toc",t).find("ul:first");
i.attr("role","directory")}var a=0,s=0,o=0;$(".note-title, .ednote-title, .issue-title",t).each(function(e,t){var n=$(t),r=n.hasClass("issue-title"),i=n.hasClass("ednote-title"),l=n.parents("section").length+2;n.attr("aria-level",l),n.attr("role","heading"),r?(s++,n.makeID("h","issue"+s)):i?(o++,n.makeID("h","ednote"+o)):(a++,n.makeID("h","note"+a))}),r.pub("end","w3c/aria"),n()}}}),define("core/shiv",[],function(){return{run:function(e,t,n,r){r.pub("start","core/shiv");var i=t.createComment("[if lt IE 9]><script src='https://www.w3.org/2008/site/js/html5shiv.js'></script><![endif]");$("head").append(i),r.pub("end","core/shiv"),n()}}}),define("core/remove-respec",["core/utils"],function(e){return{run:function(t,n,r,i){i.pub("start","core/remove-respec"),e.removeReSpec(n),i.pub("end","core/remove-respec"),r()}}}),define("core/location-hash",[],function(){return{run:function(e,t,n,r){r.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.pub("end","core/location-hash"),n()}}}),define("w3c/fixup",["core/utils"],function(){return{run:function(e,t,n,r){r.pub("start","w3c/fixup"),e.specStatus||r.pub("error","Configuration 'specStatus' is not set, required for w3c/fixup");var i=e.specStatus;("FPWD"===i||"LC"===i||"WD-NOTE"===i||"LC-NOTE"===i)&&(i="WD"),"FPWD-NOTE"===i&&(i="WG-NOTE"),("finding"===i||"draft-finding"===i)&&(i="base");var a;"unofficial"===i||"base"===i||"CG-DRAFT"===i||"CG-FINAL"===i||"BG-DRAFT"===i||"BG-FINAL"===i||e.useExperimentalStyles&&(a="https://www.w3.org/scripts/TR/2016/fixup.js"),a&&$("html>body").append($('<script src="'+a+'"></script>')),r.pub("end","w3c/fixup"),n()}}});var requireConfig={shim:{shortcut:{exports:"shortcut"}}};"respecVersion"in window&&respecVersion&&(requireConfig.paths={ui:"https://w3c.github.io/respec/js/ui"}),require.config(requireConfig),define("profile-w3c-common",["domReady","core/base-runner","core/ui","core/include-config","core/override-configuration","core/default-root-attr","w3c/l10n","core/markdown","core/style","w3c/style","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/highlight","core/best-practices","core/figures","core/biblio","core/webidl-contiguous","core/webidl-oldschool","core/link-to-dfn","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","w3c/fixup"],function(e,t,n){var r=Array.prototype.slice.call(arguments);e(function(){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"),t.runAll(r)})});
require(['profile-w3c-common']);