forked from w3c/p2p-webtransport
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrespec-w3c-common.js
530 lines (530 loc) · 345 KB
/
respec-w3c-common.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
"use strict";var requirejs,require,define;window.respecVersion="20.0.4",function(global,setTimeout){var req,s,head,baseElement,dataMain,src,interactiveScript,currentlyAddingScript,mainScript,subPath,version="2.3.5",commentRegExp=/\/\*[\s\S]*?\*\/|([^:"'=]|^)\/\/.*$/gm,cjsRequireRegExp=/[^.]\s*require\s*\(\s*["']([^'"\s]+)["']\s*\)/g,jsSuffixRegExp=/\.js$/,currDirRegExp=/^\.\//,op=Object.prototype,ostring=op.toString,hasOwn=op.hasOwnProperty,isBrowser=!("undefined"==typeof window||"undefined"==typeof navigator||!window.document),isWebWorker=!isBrowser&&"undefined"!=typeof importScripts,readyRegExp=isBrowser&&"PLAYSTATION 3"===navigator.platform?/^complete$/:/^(complete|loaded)$/,defContextName="_",isOpera="undefined"!=typeof opera&&"[object Opera]"===opera.toString(),contexts={},cfg={},globalDefQueue=[],useInteractive=!1;function commentReplace(e,t){return t||""}function isFunction(e){return"[object Function]"===ostring.call(e)}function isArray(e){return"[object Array]"===ostring.call(e)}function each(e,t){var n;if(e)for(n=0;n<e.length&&(!e[n]||!t(e[n],n,e));n+=1);}function eachReverse(e,t){var n;if(e)for(n=e.length-1;n>-1&&(!e[n]||!t(e[n],n,e));n-=1);}function hasProp(e,t){return hasOwn.call(e,t)}function getOwn(e,t){return hasProp(e,t)&&e[t]}function eachProp(e,t){var n;for(n in e)if(hasProp(e,n)&&t(e[n],n))break}function mixin(e,t,n,r){return t&&eachProp(t,function(t,i){!n&&hasProp(e,i)||(!r||"object"!=typeof t||!t||isArray(t)||isFunction(t)||t instanceof RegExp?e[i]=t:(e[i]||(e[i]={}),mixin(e[i],t,n,r)))}),e}function bind(e,t){return function(){return t.apply(e,arguments)}}function scripts(){return document.getElementsByTagName("script")}function defaultOnError(e){throw e}function getGlobal(e){if(!e)return e;var t=global;return each(e.split("."),function(e){t=t[e]}),t}function makeError(e,t,n,r){var i=new Error(t+"\nhttp://requirejs.org/docs/errors.html#"+e);return i.requireType=e,i.requireModules=r,n&&(i.originalError=n),i}if(void 0===define){if(void 0!==requirejs){if(isFunction(requirejs))return;cfg=requirejs,requirejs=void 0}void 0===require||isFunction(require)||(cfg=require,require=void 0),req=requirejs=function(e,t,n,r){var i,o,a=defContextName;return isArray(e)||"string"==typeof e||(o=e,isArray(t)?(e=t,t=n,n=r):e=[]),o&&o.context&&(a=o.context),(i=getOwn(contexts,a))||(i=contexts[a]=req.s.newContext(a)),o&&i.configure(o),i.require(e,t,n)},req.config=function(e){return req(e)},req.nextTick=void 0!==setTimeout?function(e){setTimeout(e,4)}:function(e){e()},require||(require=req),req.version=version,req.jsExtRegExp=/^\/|:|\?|\.js$/,req.isBrowser=isBrowser,s=req.s={contexts:contexts,newContext:newContext},req({}),each(["toUrl","undef","defined","specified"],function(e){req[e]=function(){var t=contexts[defContextName];return t.require[e].apply(t,arguments)}}),isBrowser&&(head=s.head=document.getElementsByTagName("head")[0],baseElement=document.getElementsByTagName("base")[0],baseElement&&(head=s.head=baseElement.parentNode)),req.onError=defaultOnError,req.createNode=function(e,t,n){var r=e.xhtml?document.createElementNS("http://www.w3.org/1999/xhtml","html:script"):document.createElement("script");return r.type=e.scriptType||"text/javascript",r.charset="utf-8",r.async=!0,r},req.load=function(e,t,n){var r,i=e&&e.config||{};if(isBrowser)return(r=req.createNode(i,t,n)).setAttribute("data-requirecontext",e.contextName),r.setAttribute("data-requiremodule",t),!r.attachEvent||r.attachEvent.toString&&r.attachEvent.toString().indexOf("[native code")<0||isOpera?(r.addEventListener("load",e.onScriptLoad,!1),r.addEventListener("error",e.onScriptError,!1)):(useInteractive=!0,r.attachEvent("onreadystatechange",e.onScriptLoad)),r.src=n,i.onNodeCreated&&i.onNodeCreated(r,i,t,n),currentlyAddingScript=r,baseElement?head.insertBefore(r,baseElement):head.appendChild(r),currentlyAddingScript=null,r;if(isWebWorker)try{setTimeout(function(){},0),importScripts(n),e.completeLoad(t)}catch(r){e.onError(makeError("importscripts","importScripts failed for "+t+" at "+n,r,[t]))}},isBrowser&&!cfg.skipDataMain&&eachReverse(scripts(),function(e){if(head||(head=e.parentNode),dataMain=e.getAttribute("data-main"))return mainScript=dataMain,cfg.baseUrl||-1!==mainScript.indexOf("!")||(src=mainScript.split("/"),mainScript=src.pop(),subPath=src.length?src.join("/")+"/":"./",cfg.baseUrl=subPath),mainScript=mainScript.replace(jsSuffixRegExp,""),req.jsExtRegExp.test(mainScript)&&(mainScript=dataMain),cfg.deps=cfg.deps?cfg.deps.concat(mainScript):[mainScript],!0}),define=function(e,t,n){var r,i;"string"!=typeof e&&(n=t,t=e,e=null),isArray(t)||(n=t,t=null),!t&&isFunction(n)&&(t=[],n.length&&(n.toString().replace(commentRegExp,commentReplace).replace(cjsRequireRegExp,function(e,n){t.push(n)}),t=(1===n.length?["require"]:["require","exports","module"]).concat(t))),useInteractive&&(r=currentlyAddingScript||getInteractiveScript())&&(e||(e=r.getAttribute("data-requiremodule")),i=contexts[r.getAttribute("data-requirecontext")]),i?(i.defQueue.push([e,t,n]),i.defQueueMap[e]=!0):globalDefQueue.push([e,t,n])},define.amd={jQuery:!0},req.exec=function(text){return eval(text)},req(cfg)}function newContext(e){var t,n,r,i,o,a={waitSeconds:7,baseUrl:"./",paths:{},bundles:{},pkgs:{},shim:{},config:{}},s={},l={},c={},u=[],d={},p={},f={},h=1,m=1;function g(e,t,n){var r,i,o,s,l,c,u,d,p,f,h=t&&t.split("/"),m=a.map,g=m&&m["*"];if(e&&(c=(e=e.split("/")).length-1,a.nodeIdCompat&&jsSuffixRegExp.test(e[c])&&(e[c]=e[c].replace(jsSuffixRegExp,"")),"."===e[0].charAt(0)&&h&&(e=h.slice(0,h.length-1).concat(e)),function(e){var t,n;for(t=0;t<e.length;t++)if("."===(n=e[t]))e.splice(t,1),t-=1;else if(".."===n){if(0===t||1===t&&".."===e[2]||".."===e[t-1])continue;t>0&&(e.splice(t-1,2),t-=2)}}(e),e=e.join("/")),n&&m&&(h||g)){i=e.split("/");e:for(o=i.length;o>0;o-=1){if(l=i.slice(0,o).join("/"),h)for(s=h.length;s>0;s-=1)if((r=getOwn(m,h.slice(0,s).join("/")))&&(r=getOwn(r,l))){u=r,d=o;break e}!p&&g&&getOwn(g,l)&&(p=getOwn(g,l),f=o)}!u&&p&&(u=p,d=f),u&&(i.splice(0,d,u),e=i.join("/"))}return getOwn(a.pkgs,e)||e}function b(e){isBrowser&&each(scripts(),function(t){if(t.getAttribute("data-requiremodule")===e&&t.getAttribute("data-requirecontext")===r.contextName)return t.parentNode.removeChild(t),!0})}function y(e){var t=getOwn(a.paths,e);if(t&&isArray(t)&&t.length>1)return t.shift(),r.require.undef(e),r.makeRequire(null,{skipMap:!0})([e]),!0}function v(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 w(e,t,n,i){var o,a,s,l,c=null,u=t?t.name:null,p=e,f=!0,b="";return e||(f=!1,e="_@r"+(h+=1)),c=(l=v(e))[0],e=l[1],c&&(c=g(c,u,i),a=getOwn(d,c)),e&&(c?b=n?e:a&&a.normalize?a.normalize(e,function(e){return g(e,u,i)}):-1===e.indexOf("!")?g(e,u,i):e:(c=(l=v(b=g(e,u,i)))[0],b=l[1],n=!0,o=r.nameToUrl(b))),{prefix:c,name:b,parentMap:t,unnormalized:!!(s=!c||a||n?"":"_unnormalized"+(m+=1)),url:o,originalName:p,isDefine:f,id:(c?c+"!"+b:b)+s}}function x(e){var t=e.id,n=getOwn(s,t);return n||(n=s[t]=new r.Module(e)),n}function C(e,t,n){var r=e.id,i=getOwn(s,r);!hasProp(d,r)||i&&!i.defineEmitComplete?(i=x(e)).error&&"error"===t?n(i.error):i.on(t,n):"defined"===t&&n(d[r])}function k(e,t){var n=e.requireModules,r=!1;t?t(e):(each(n,function(t){var n=getOwn(s,t);n&&(n.error=e,n.events.error&&(r=!0,n.emit("error",e)))}),r||req.onError(e))}function E(){globalDefQueue.length&&(each(globalDefQueue,function(e){var t=e[0];"string"==typeof t&&(r.defQueueMap[t]=!0),u.push(e)}),globalDefQueue=[])}function T(e){delete s[e],delete l[e]}function S(){var e,n,i=1e3*a.waitSeconds,c=i&&r.startTime+i<(new Date).getTime(),u=[],p=[],f=!1,h=!0;if(!t){if(t=!0,eachProp(l,function(e){var t=e.map,r=t.id;if(e.enabled&&(t.isDefine||p.push(e),!e.error))if(!e.inited&&c)y(r)?(n=!0,f=!0):(u.push(r),b(r));else if(!e.inited&&e.fetched&&t.isDefine&&(f=!0,!t.prefix))return h=!1}),c&&u.length)return(e=makeError("timeout","Load timeout for modules: "+u,null,u)).contextName=r.contextName,k(e);h&&each(p,function(e){!function e(t,n,r){var i=t.map.id;t.error?t.emit("error",t.error):(n[i]=!0,each(t.depMaps,function(i,o){var a=i.id,l=getOwn(s,a);!l||t.depMatched[o]||r[a]||(getOwn(n,a)?(t.defineDep(o,d[a]),t.check()):e(l,n,r))}),r[i]=!0)}(e,{},{})}),c&&!n||!f||!isBrowser&&!isWebWorker||o||(o=setTimeout(function(){o=0,S()},50)),t=!1}}function A(e){hasProp(d,e[0])||x(w(e[0],null,!0)).init(e[1],e[2])}function $(e,t,n,r){e.detachEvent&&!isOpera?r&&e.detachEvent(r,t):e.removeEventListener(n,t,!1)}function L(e){var t=e.currentTarget||e.srcElement;return $(t,r.onScriptLoad,"load","onreadystatechange"),$(t,r.onScriptError,"error"),{node:t,id:t&&t.getAttribute("data-requiremodule")}}function D(){var e;for(E();u.length;){if(null===(e=u.shift())[0])return k(makeError("mismatch","Mismatched anonymous define() module: "+e[e.length-1]));A(e)}r.defQueueMap={}}return i={require:function(e){return e.require?e.require:e.require=r.makeRequire(e.map)},exports:function(e){if(e.usingExports=!0,e.map.isDefine)return e.exports?d[e.map.id]=e.exports:e.exports=d[e.map.id]={}},module:function(e){return e.module?e.module:e.module={id:e.map.id,uri:e.map.url,config:function(){return getOwn(a.config,e.map.id)||{}},exports:e.exports||(e.exports={})}}},(n=function(e){this.events=getOwn(c,e.id)||{},this.map=e,this.shim=getOwn(a.shim,e.id),this.depExports=[],this.depMaps=[],this.depMatched=[],this.pluginMaps={},this.depCount=0}).prototype={init:function(e,t,n,r){r=r||{},this.inited||(this.factory=t,n?this.on("error",n):this.events.error&&(n=bind(this,function(e){this.emit("error",e)})),this.depMaps=e&&e.slice(0),this.errback=n,this.inited=!0,this.ignore=r.ignore,r.enabled||this.enabled?this.enable():this.check())},defineDep:function(e,t){this.depMatched[e]||(this.depMatched[e]=!0,this.depCount-=1,this.depExports[e]=t)},fetch:function(){if(!this.fetched){this.fetched=!0,r.startTime=(new Date).getTime();var e=this.map;if(!this.shim)return e.prefix?this.callPlugin():this.load();r.makeRequire(this.map,{enableBuildCallback:!0})(this.shim.deps||[],bind(this,function(){return e.prefix?this.callPlugin():this.load()}))}},load:function(){var e=this.map.url;p[e]||(p[e]=!0,r.load(this.map.id,e))},check:function(){if(this.enabled&&!this.enabling){var e,t,n=this.map.id,i=this.depExports,o=this.exports,a=this.factory;if(this.inited){if(this.error)this.emit("error",this.error);else if(!this.defining){if(this.defining=!0,this.depCount<1&&!this.defined){if(isFunction(a)){if(this.events.error&&this.map.isDefine||req.onError!==defaultOnError)try{o=r.execCb(n,a,i,o)}catch(t){e=t}else o=r.execCb(n,a,i,o);if(this.map.isDefine&&void 0===o&&((t=this.module)?o=t.exports:this.usingExports&&(o=this.exports)),e)return e.requireMap=this.map,e.requireModules=this.map.isDefine?[this.map.id]:null,e.requireType=this.map.isDefine?"define":"require",k(this.error=e)}else o=a;if(this.exports=o,this.map.isDefine&&!this.ignore&&(d[n]=o,req.onResourceLoad)){var s=[];each(this.depMaps,function(e){s.push(e.normalizedMap||e)}),req.onResourceLoad(r,this.map,s)}T(n),this.defined=!0}this.defining=!1,this.defined&&!this.defineEmitted&&(this.defineEmitted=!0,this.emit("defined",this.exports),this.defineEmitComplete=!0)}}else hasProp(r.defQueueMap,n)||this.fetch()}},callPlugin:function(){var e=this.map,t=e.id,n=w(e.prefix);this.depMaps.push(n),C(n,"defined",bind(this,function(n){var i,o,l,c=getOwn(f,this.map.id),u=this.map.name,d=this.map.parentMap?this.map.parentMap.name:null,p=r.makeRequire(e.parentMap,{enableBuildCallback:!0});return this.map.unnormalized?(n.normalize&&(u=n.normalize(u,function(e){return g(e,d,!0)})||""),C(o=w(e.prefix+"!"+u,this.map.parentMap,!0),"defined",bind(this,function(e){this.map.normalizedMap=o,this.init([],function(){return e},null,{enabled:!0,ignore:!0})})),void((l=getOwn(s,o.id))&&(this.depMaps.push(o),this.events.error&&l.on("error",bind(this,function(e){this.emit("error",e)})),l.enable()))):c?(this.map.url=r.nameToUrl(c),void this.load()):((i=bind(this,function(e){this.init([],function(){return e},null,{enabled:!0})})).error=bind(this,function(e){this.inited=!0,this.error=e,e.requireModules=[t],eachProp(s,function(e){0===e.map.id.indexOf(t+"_unnormalized")&&T(e.map.id)}),k(e)}),i.fromText=bind(this,function(n,o){var s=e.name,l=w(s),c=useInteractive;o&&(n=o),c&&(useInteractive=!1),x(l),hasProp(a.config,t)&&(a.config[s]=a.config[t]);try{req.exec(n)}catch(e){return k(makeError("fromtexteval","fromText eval for "+t+" failed: "+e,e,[t]))}c&&(useInteractive=!0),this.depMaps.push(l),r.completeLoad(s),p([s],i)}),void n.load(e.name,p,i,a))})),r.enable(n,this),this.pluginMaps[n.id]=n},enable:function(){l[this.map.id]=this,this.enabled=!0,this.enabling=!0,each(this.depMaps,bind(this,function(e,t){var n,o,a;if("string"==typeof e){if(e=w(e,this.map.isDefine?this.map:this.map.parentMap,!1,!this.skipMap),this.depMaps[t]=e,a=getOwn(i,e.id))return void(this.depExports[t]=a(this));this.depCount+=1,C(e,"defined",bind(this,function(e){this.undefed||(this.defineDep(t,e),this.check())})),this.errback?C(e,"error",bind(this,this.errback)):this.events.error&&C(e,"error",bind(this,function(e){this.emit("error",e)}))}n=e.id,o=s[n],hasProp(i,n)||!o||o.enabled||r.enable(e,this)})),eachProp(this.pluginMaps,bind(this,function(e){var t=getOwn(s,e.id);t&&!t.enabled&&r.enable(e,this)})),this.enabling=!1,this.check()},on:function(e,t){var n=this.events[e];n||(n=this.events[e]=[]),n.push(t)},emit:function(e,t){each(this.events[e],function(e){e(t)}),"error"===e&&delete this.events[e]}},(r={config:a,contextName:e,registry:s,defined:d,urlFetched:p,defQueue:u,defQueueMap:{},Module:n,makeModuleMap:w,nextTick:req.nextTick,onError:k,configure:function(e){if(e.baseUrl&&"/"!==e.baseUrl.charAt(e.baseUrl.length-1)&&(e.baseUrl+="/"),"string"==typeof e.urlArgs){var t=e.urlArgs;e.urlArgs=function(e,n){return(-1===n.indexOf("?")?"?":"&")+t}}var n=a.shim,i={paths:!0,bundles:!0,config:!0,map:!0};eachProp(e,function(e,t){i[t]?(a[t]||(a[t]={}),mixin(a[t],e,!0,!0)):a[t]=e}),e.bundles&&eachProp(e.bundles,function(e,t){each(e,function(e){e!==t&&(f[e]=t)})}),e.shim&&(eachProp(e.shim,function(e,t){isArray(e)&&(e={deps:e}),!e.exports&&!e.init||e.exportsFn||(e.exportsFn=r.makeShimExports(e)),n[t]=e}),a.shim=n),e.packages&&each(e.packages,function(e){var t;t=(e="string"==typeof e?{name:e}:e).name,e.location&&(a.paths[t]=e.location),a.pkgs[t]=e.name+"/"+(e.main||"main").replace(currDirRegExp,"").replace(jsSuffixRegExp,"")}),eachProp(s,function(e,t){e.inited||e.map.unnormalized||(e.map=w(t,null,!0))}),(e.deps||e.callback)&&r.require(e.deps||[],e.callback)},makeShimExports:function(e){return function(){var t;return e.init&&(t=e.init.apply(global,arguments)),t||e.exports&&getGlobal(e.exports)}},makeRequire:function(t,n){function o(a,l,c){var u,p;return n.enableBuildCallback&&l&&isFunction(l)&&(l.__requireJsBuild=!0),"string"==typeof a?isFunction(l)?k(makeError("requireargs","Invalid require call"),c):t&&hasProp(i,a)?i[a](s[t.id]):req.get?req.get(r,a,t,o):(u=w(a,t,!1,!0).id,hasProp(d,u)?d[u]:k(makeError("notloaded",'Module name "'+u+'" has not been loaded yet for context: '+e+(t?"":". Use require([])")))):(D(),r.nextTick(function(){D(),(p=x(w(null,t))).skipMap=n.skipMap,p.init(a,l,c,{enabled:!0}),S()}),o)}return n=n||{},mixin(o,{isBrowser:isBrowser,toUrl:function(e){var n,i=e.lastIndexOf("."),o=e.split("/")[0];return-1!==i&&(!("."===o||".."===o)||i>1)&&(n=e.substring(i,e.length),e=e.substring(0,i)),r.nameToUrl(g(e,t&&t.id,!0),n,!0)},defined:function(e){return hasProp(d,w(e,t,!1,!0).id)},specified:function(e){return e=w(e,t,!1,!0).id,hasProp(d,e)||hasProp(s,e)}}),t||(o.undef=function(e){E();var n=w(e,t,!0),i=getOwn(s,e);i.undefed=!0,b(e),delete d[e],delete p[n.url],delete c[e],eachReverse(u,function(t,n){t[0]===e&&u.splice(n,1)}),delete r.defQueueMap[e],i&&(i.events.defined&&(c[e]=i.events),T(e))}),o},enable:function(e){getOwn(s,e.id)&&x(e).enable()},completeLoad:function(e){var t,n,i,o=getOwn(a.shim,e)||{},l=o.exports;for(E();u.length;){if(null===(n=u.shift())[0]){if(n[0]=e,t)break;t=!0}else n[0]===e&&(t=!0);A(n)}if(r.defQueueMap={},i=getOwn(s,e),!t&&!hasProp(d,e)&&i&&!i.inited){if(!(!a.enforceDefine||l&&getGlobal(l)))return y(e)?void 0:k(makeError("nodefine","No define call for "+e,null,[e]));A([e,o.deps||[],o.exportsFn])}S()},nameToUrl:function(e,t,n){var i,o,s,l,c,u,d=getOwn(a.pkgs,e);if(d&&(e=d),u=getOwn(f,e))return r.nameToUrl(u,t,n);if(req.jsExtRegExp.test(e))l=e+(t||"");else{for(i=a.paths,s=(o=e.split("/")).length;s>0;s-=1)if(c=getOwn(i,o.slice(0,s).join("/"))){isArray(c)&&(c=c[0]),o.splice(0,s,c);break}l=o.join("/"),l=("/"===(l+=t||(/^data\:|^blob\:|\?/.test(l)||n?"":".js")).charAt(0)||l.match(/^[\w\+\.\-]+:/)?"":a.baseUrl)+l}return a.urlArgs&&!/^blob\:/.test(l)?l+a.urlArgs(e,l):l},load:function(e,t){req.load(r,e,t)},execCb:function(e,t,n,r){return t.apply(r,n)},onScriptLoad:function(e){if("load"===e.type||readyRegExp.test((e.currentTarget||e.srcElement).readyState)){interactiveScript=null;var t=L(e);r.completeLoad(t.id)}},onScriptError:function(e){var t=L(e);if(!y(t.id)){var n=[];return eachProp(s,function(e,r){0!==r.indexOf("_@r")&&each(e.depMaps,function(e){if(e.id===t.id)return n.push(r),!0})}),k(makeError("scripterror",'Script error for "'+t.id+(n.length?'", needed by: '+n.join(", "):'"'),e,[t.id]))}}}).require=r.makeRequire(),r}function getInteractiveScript(){return interactiveScript&&"interactive"===interactiveScript.readyState?interactiveScript:(eachReverse(scripts(),function(e){if("interactive"===e.readyState)return interactiveScript=e}),interactiveScript)}}(this,"undefined"==typeof setTimeout?void 0:setTimeout),define("deps/require",function(){});var hyperHTML=function(e){var t=document.defaultView,n=1,r=/^area|base|br|col|embed|hr|img|input|keygen|link|menuitem|meta|param|source|track|wbr$/i,i="ownerSVGElement",o="http://www.w3.org/2000/svg",a="connected",s="dis"+a,l=/^style|textarea$/i,c="_hyper: "+(Math.random()*new Date|0)+";",u="\x3c!--"+c+"--\x3e",d=t.Event;try{new d("Event")}catch(e){d=function(e){var t=document.createEvent("Event");return t.initEvent(e,!1,!1),t}}var p,f=t.Map||function(){var e=[],t=[];return{get:function(n){return t[e.indexOf(n)]},set:function(n,r){t[e.push(n)-1]=r}}},h=t.WeakMap||function(){return{get:function(e){return e[c]},set:function(e,t){Object.defineProperty(e,c,{configurable:!0,value:t})}}},m=t.WeakSet||function(){var e=new h;return{add:function(t){e.set(t,!0)},has:function(t){return!0===e.get(t)}}},g=Array.isArray||(p={}.toString,function(e){return"[object Array]"===p.call(e)}),b=c.trim||function(){return this.replace(/^\s+|\s+$/g,"")};function y(){}var v=function(e,t){var n="_"+e+"$";return{get:function(){return this[n]||(this[e]=t.call(this,e))},set:function(e){Object.defineProperty(this,n,{configurable:!0,value:e})}}},w={},x=[],C=w.hasOwnProperty,k=0,E=function(e,t){e in w||(k=x.push(e)),w[e]=t},T=function(e,t){for(var n=0;n<k;n++){var r=x[n];if(C.call(e,r))return w[r](e[r],t)}},S=function(e,t){return A(e).createElement(t)},A=function(e){return e.ownerDocument||e},$=function(e){return A(e).createDocumentFragment()},L=function(e,t){return A(e).createTextNode(t)},D=" \\f\\n\\r\\t",j="[^ "+D+"\\/>\"'=]+",N="[ "+D+"]+"+j,_="<([A-Za-z]+[A-Za-z0-9:_-]*)((?:",R="(?:=(?:'[^']*?'|\"[^\"]*?\"|<[^>]*?>|"+j+"))?)",P=new RegExp(_+N+R+"+)([ "+D+"]*/?>)","g"),M=new RegExp(_+N+R+"*)([ "+D+"]*/>)","g"),O=$(document),I="append"in O,q="content"in S(document,"template");O.appendChild(L(O,"g")),O.appendChild(L(O,""));var W=1===O.cloneNode(!0).childNodes.length,B="importNode"in document,H=I?function(e,t){e.append.apply(e,t)}:function(e,t){for(var n=t.length,r=0;r<n;r++)e.appendChild(t[r])},F=new RegExp("("+N+"=)(['\"]?)"+u+"\\2","gi"),U=function(e,t,n,r){return"<"+t+n.replace(F,z)+r},z=function(e,t,n){return t+(n||'"')+c+(n||'"')},G=function(e,t){return(i in e?J:K)(e,t.replace(P,U))},V=W?function(e){for(var t=e.cloneNode(),n=e.childNodes||[],r=n.length,i=0;i<r;i++)t.appendChild(V(n[i]));return t}:function(e){return e.cloneNode(!0)},X=B?function(e,t){return e.importNode(t,!0)}:function(e,t){return V(t)},Y=[].slice,Z=function(e){return Q(e)},Q=function(e){if(e.propertyIsEnumerable("raw")||/Firefox\/(\d+)/.test((t.navigator||{}).userAgent)&&parseFloat(RegExp.$1)<55){var n={};Q=function(e){var t="_"+e.join(c);return n[t]||(n[t]=e)}}else Q=function(e){return e};return Q(e)},K=q?function(e,t){var n=S(e,"template");return n.innerHTML=t,n.content}:function(e,t){var n=S(e,"template"),r=$(e);if(/^[^\S]*?<(col(?:group)?|t(?:head|body|foot|r|d|h))/i.test(t)){var i=RegExp.$1;n.innerHTML="<table>"+t+"</table>",H(r,Y.call(n.querySelectorAll(i)))}else n.innerHTML=t,H(r,Y.call(n.childNodes));return r},J=q?function(e,t){var n=$(e),r=A(e).createElementNS(o,"svg");return r.innerHTML=t,H(n,Y.call(r.childNodes)),n}:function(e,t){var n=$(e),r=S(e,"div");return r.innerHTML='<svg xmlns="'+o+'">'+t+"</svg>",H(n,Y.call(r.firstChild.childNodes)),n};function ee(e){this.childNodes=e,this.length=e.length,this.first=e[0],this.last=e[this.length-1]}ee.prototype.insert=function(){var e=$(this.first);return H(e,this.childNodes),e},ee.prototype.remove=function(){var e=this.first,t=this.last;if(2===this.length)t.parentNode.removeChild(t);else{var n=A(e).createRange();n.setStartBefore(this.childNodes[1]),n.setEndAfter(t),n.deleteContents()}return e};var te=function(e,t,n){e.unshift(e.indexOf.call(t.childNodes,n))},ne=function(e,t,r){return{type:e,name:r,node:t,path:function(e){var t=[],r=void 0;switch(e.nodeType){case n:case 11:r=e;break;case 8:r=e.parentNode,te(t,r,e);break;default:r=e.ownerElement}for(e=r;r=r.parentNode;e=r)te(t,r,e);return t}(t)}},re=function(e,t){for(var n=t.length,r=0;r<n;r++)e=e.childNodes[t[r]];return e},ie=/acit|ex(?:s|g|n|p|$)|rph|ows|mnc|ntw|ine[ch]|zoo|^ord/i,oe=function(e,t){var n=void 0,r=void 0;return function(i){switch(typeof i){case"object":if(i){if("object"===n){if(!t&&r!==i)for(var o in r)o in i||(e[o]="")}else t?e.value="":e.cssText="";var a=t?{}:e;for(var s in i){var l=i[s];a[s]="number"!=typeof l||ie.test(s)?l:l+"px"}n="object",t?e.value=le(r=a):r=i;break}default:r!=i&&(n="string",r=i,t?e.value=i||"":e.cssText=i||"")}}},ae=/([^A-Z])([A-Z]+)/g,se=function(e,t,n){return t+"-"+n.toLowerCase()},le=function(e){var t=[];for(var n in e)t.push(n.replace(ae,se),":",e[n],";");return t.join("")},ce=function(e){return e},ue=function(e,t,n,r,i){for(var o=r||ce,a=null==i?null:o(i,0),s=0,l=0,c=t.length-1,u=t[0],d=t[c],p=n.length-1,f=n[0],h=n[p];s<=c&&l<=p;)if(null==u)u=t[++s];else if(null==d)d=t[--c];else if(null==f)f=n[++l];else if(null==h)h=n[--p];else if(u==f)u=t[++s],f=n[++l];else if(d==h)d=t[--c],h=n[--p];else if(u==h)e.insertBefore(o(u,1),o(d,-0).nextSibling),u=t[++s],h=n[--p];else if(d==f)e.insertBefore(o(d,1),o(u,0)),d=t[--c],f=n[++l];else{var m=t.indexOf(f);if(m<0)e.insertBefore(o(f,1),o(u,0)),f=n[++l];else{var g=t[m];t[m]=null,e.insertBefore(o(g,1),o(u,0)),f=n[++l]}}if(s<=c||l<=p)if(s>c){var b=n[p+1],y=null==b?a:o(b,0);if(l===p)e.insertBefore(o(n[l],1),y);else{for(var v=e.ownerDocument.createDocumentFragment();l<=p;)v.appendChild(o(n[l++],1));e.insertBefore(v,y)}}else if(null==t[s]&&s++,s===c)e.removeChild(o(t[s],-1));else{var w=e.ownerDocument.createRange();w.setStartBefore(o(t[s],-1)),w.setEndAfter(o(t[c],-1)),w.deleteContents()}return n},de=new m;function pe(){}pe.prototype=Object.create(null);var fe=function(e){return{html:e}},he=function e(t,n){return"ELEMENT_NODE"in t?t:t.constructor===ee?1/n<0?n?t.remove():t.last:n?t.insert():t.first:e(t.render(),n)},me=function(e,t,n){for(var r=new pe,i=e.attributes,o=Y.call(i),a=[],s=o.length,l=0;l<s;l++){var u=o[l];if(u.value===c){var d=u.name;if(!(d in r)){var p=n.shift().replace(/^(?:|[\S\s]*?\s)(\S+?)=['"]?$/,"$1");r[d]=i[p]||i[p.toLowerCase()],t.push(ne("attr",r[d],p))}a.push(u)}}for(var f=a.length,h=0;h<f;h++)e.removeAttributeNode(a[h]);var m=e.nodeName;if(/^script$/i.test(m)){for(var g=S(e,m),b=0;b<i.length;b++)g.setAttributeNode(i[b].cloneNode(!0));g.textContent=e.textContent,e.parentNode.replaceChild(g,e)}},ge=function(e,t){t(e.placeholder),"text"in e?Promise.resolve(e.text).then(String).then(t):"any"in e?Promise.resolve(e.any).then(t):"html"in e?Promise.resolve(e.html).then(fe).then(t):Promise.resolve(T(e,t)).then(t)},be=function(e){return null!=e&&"then"in e},ye=function(e,t){var n=!1,r=void 0;return function i(o){switch(typeof o){case"string":case"number":case"boolean":n?r!==o&&(r=o,t[0].textContent=o):(n=!0,r=o,t=ue(e.parentNode,t,[L(e,o)],he,e));break;case"object":case"undefined":if(null==o){n=!1,t=ue(e.parentNode,t,[],he,e);break}default:if(n=!1,r=o,g(o))if(0===o.length)t.length&&(t=ue(e.parentNode,t,[],he,e));else switch(typeof o[0]){case"string":case"number":case"boolean":i({html:o});break;case"object":if(g(o[0])&&(o=o.concat.apply([],o)),be(o[0])){Promise.all(o).then(i);break}default:t=ue(e.parentNode,t,o,he,e)}else a=o,"ELEMENT_NODE"in a||a instanceof ee||a instanceof y?t=ue(e.parentNode,t,11===o.nodeType?Y.call(o.childNodes):[o],he,e):be(o)?o.then(i):"placeholder"in o?ge(o,i):"text"in o?i(String(o.text)):"any"in o?i(o.any):"html"in o?t=ue(e.parentNode,t,Y.call(G(e,[].concat(o.html).join("")).childNodes),he,e):i("length"in o?Y.call(o):T(o,i))}var a}},ve=function(e,t,r){var o=i in e,l=void 0;if("style"===t)return function(e,t,n){if(n){var r=t.cloneNode(!0);return r.value="",e.setAttributeNode(r),oe(r,n)}return oe(e.style,n)}(e,r,o);if(/^on/.test(t)){var c=t.slice(2);return c===a||c===s?(Ce&&(Ce=!1,function(){var e=function(e,r){for(var i=new d(r),o=e.length,a=0;a<o;a++){var s=e[a];s.nodeType===n&&t(s,i)}},t=function e(t,n){de.has(t)&&t.dispatchEvent(n);for(var r=t.children,i=r.length,o=0;o<i;o++)e(r[o],n)};try{new MutationObserver(function(t){for(var n=t.length,r=0;r<n;r++){var i=t[r];e(i.removedNodes,s),e(i.addedNodes,a)}}).observe(document,{subtree:!0,childList:!0})}catch(t){document.addEventListener("DOMNodeRemoved",function(t){e([t.target],s)},!1),document.addEventListener("DOMNodeInserted",function(t){e([t.target],a)},!1)}}()),de.add(e)):t.toLowerCase()in e&&(c=c.toLowerCase()),function(t){l!==t&&(l&&e.removeEventListener(c,l,!1),l=t,t&&e.addEventListener(c,t,!1))}}if("data"===t||!o&&t in e)return function(n){l!==n&&(l=n,e[t]!==n&&(e[t]=n,null==n&&e.removeAttribute(t)))};var u=!1,p=r.cloneNode(!0);return function(t){l!==t&&(l=t,p.value!==t&&(null==t?(u&&(u=!1,e.removeAttributeNode(p)),p.value=t):(p.value=t,u||(u=!0,e.setAttributeNode(p)))))}},we=function(e){var t="";return function n(r){t!==r&&(t=r,"object"==typeof r&&r?be(r)?r.then(n):"placeholder"in r?ge(r,n):n("text"in r?String(r.text):"any"in r?r.any:"html"in r?[].concat(r.html).join(""):"length"in r?Y.call(r).join(""):T(r,n)):e.textContent=null==r?"":r)}},xe={create:function(e,t){for(var n=[],r=t.length,i=0;i<r;i++){var o=t[i],a=re(e,o.path);switch(o.type){case"any":n.push(ye(a,[]));break;case"attr":n.push(ve(a,o.name,o.node));break;case"text":n.push(we(a))}}return n},find:function e(t,r,i){for(var o=t.childNodes,a=o.length,s=0;s<a;s++){var d=o[s];switch(d.nodeType){case n:me(d,r,i),e(d,r,i);break;case 8:d.textContent===c&&(i.shift(),r.push(l.test(t.nodeName)?ne("text",t):ne("any",d)));break;case 3:l.test(t.nodeName)&&b.call(d.textContent)===u&&(i.shift(),r.push(ne("text",t)))}}}},Ce=!0;var ke=new h,Ee=new f;function Te(e){var t=ke.get(this);return t&&t.template===Z(e)?Se.apply(t.updates,arguments):function(e){e=Z(e);var t=Ee.get(e)||function(e){var t=[],n=e.join(u).replace(De,je),r=G(this,n);xe.find(r,t,e.slice());var i={fragment:r,paths:t};return Ee.set(e,i),i}.call(this,e),n=X(this.ownerDocument,t.fragment),r=xe.create(n,t.paths);ke.set(this,{template:e,updates:r}),Se.apply(r,arguments),this.textContent="",this.appendChild(n)}.apply(this,arguments),this}function Se(){for(var e=arguments.length,t=1;t<e;t++)this[t-1](arguments[t])}var Ae,$e,Le,De=M,je=function(e,t,n){return r.test(t)?e:"<"+t+n+"></"+t+">"},Ne=new h,_e=function(e){var t=void 0,n=void 0,r=void 0,i=void 0,a=void 0;return function(s){s=Z(s);var l=i!==s;return l&&(i=s,r=$(document),n="svg"===e?document.createElementNS(o,"svg"):r,a=Te.bind(n)),a.apply(null,arguments),l&&("svg"===e&&H(r,Y.call(n.childNodes)),t=Pe(r)),t}},Re=function(e,t){var n=t.indexOf(":"),r=Ne.get(e),i=t;return-1<n&&(i=t.slice(n+1),t=t.slice(0,n)||"html"),r||Ne.set(e,r={}),r[i]||(r[i]=_e(t))},Pe=function(e){for(var t=e.childNodes,r=t.length,i=[],o=0;o<r;o++){var a=t[o];a.nodeType!==n&&0===b.call(a.textContent).length||i.push(a)}return 1===i.length?i[0]:new ee(i)},Me=E;function Oe(e){return arguments.length<2?null==e?_e("html"):"string"==typeof e?Oe.wire(null,e):"raw"in e?_e("html")(e):"nodeType"in e?Oe.bind(e):Re(e,"html"):("raw"in e?_e("html"):Oe.wire).apply(null,arguments)}return Oe.Component=y,Oe.bind=function(e){return Te.bind(e)},Oe.define=Me,Oe.diff=ue,Oe.hyper=Oe,Oe.wire=function(e,t){return null==e?_e(t||"html"):Re(e,t||"html")},Ae=_e,$e=new h,Le=Object.create,Object.defineProperties(y,{for:{configurable:!0,value:function(e,t){var n,r;return function(e,t,n){switch(typeof n){case"object":case"function":var r=t.w||(t.w=new h);return r.get(n)||(o=r,a=n,s=new e,o.set(a,s),s);default:var i=t.p||(t.p=Le(null));return i[n]||(i[n]=new e)}var o,a,s}(this,$e.get(e)||(n=e,r={w:null,p:null},$e.set(n,r),r),null==t?"default":t)}}}),Object.defineProperties(y.prototype,{handleEvent:{value:function(e){var t=e.currentTarget;this["getAttribute"in t&&t.getAttribute("data-call")||"on"+e.type](e)}},html:v("html",Ae),svg:v("svg",Ae),state:v("state",function(){return this.defaultState}),defaultState:{get:function(){return{}}},setState:{value:function(e,t){var n=this.state,r="function"==typeof e?e.call(this,n):e;for(var i in r)n[i]=r[i];return!1!==t&&this.render(),this}}}),Oe}(window);define("deps/hyperhtml",function(){});var URLSearchParams=URLSearchParams||function(){function e(e){var n,r,i,o,a,u,d=Object.create(null);if(this[s]=d,e)if("string"==typeof e)for("?"===e.charAt(0)&&(e=e.slice(1)),a=0,u=(o=e.split("&")).length;a<u;a++)-1<(n=(i=o[a]).indexOf("="))?l(d,c(i.slice(0,n)),c(i.slice(n+1))):i.length&&l(d,c(i),"");else if(t(e))for(a=0,u=e.length;a<u;a++)l(d,(i=e[a])[0],i[1]);else for(r in e)l(d,r,e[r])}var t=Array.isArray,n=e.prototype,r=/[!'\(\)~]|%20|%00/g,i=/\+/g,o={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"},a=function(e){return o[e]},s="__URLSearchParams__:"+Math.random();function l(e,n,r){n in e?e[n].push(""+r):e[n]=t(r)?r:[""+r]}function c(e){return decodeURIComponent(e.replace(i," "))}function u(e){return encodeURIComponent(e).replace(r,a)}n.append=function(e,t){l(this[s],e,t)},n.delete=function(e){delete this[s][e]},n.get=function(e){var t=this[s];return e in t?t[e][0]:null},n.getAll=function(e){var t=this[s];return e in t?t[e].slice(0):[]},n.has=function(e){return e in this[s]},n.set=function(e,t){this[s][e]=[""+t]},n.forEach=function(e,t){var n=this[s];Object.getOwnPropertyNames(n).forEach(function(r){n[r].forEach(function(n){e.call(t,n,r,this)},this)},this)},n.toJSON=function(){return{}},n.toString=function(){var e,t,n,r,i=this[s],o=[];for(t in i)for(n=u(t),e=0,r=i[t];e<r.length;e++)o.push(n+"="+u(r[e]));return o.join("&")};var d=Object.defineProperty,p=Object.getOwnPropertyDescriptor,f=function(t){var r=t.append;t.append=n.append,e.call(t,t._usp.search.slice(1)),t.append=r},h=function(e,t){if(!(e instanceof t))throw new TypeError("'searchParams' accessed on an object that does not implement interface "+t.name)},m=function(t){var r,i,o=t.prototype,a=p(o,"searchParams"),s=p(o,"href"),l=p(o,"search");!a&&l&&l.set&&(i=function(e){function t(t,r){n.append.call(this,t,r),t=this.toString(),e.set.call(this._usp,t?"?"+t:"")}function r(t){n.delete.call(this,t),t=this.toString(),e.set.call(this._usp,t?"?"+t:"")}function i(t,r){n.set.call(this,t,r),t=this.toString(),e.set.call(this._usp,t?"?"+t:"")}return function(e,n){return e.append=t,e.delete=r,e.set=i,d(e,"_usp",{configurable:!0,writable:!0,value:n})}}(l),r=function(e,t){return d(e,"_searchParams",{configurable:!0,writable:!0,value:i(t,e)}),t},Object.defineProperties(o,{href:{get:function(){return s.get.call(this)},set:function(e){var t=this._searchParams;s.set.call(this,e),t&&f(t)}},search:{get:function(){return l.get.call(this)},set:function(e){var t=this._searchParams;l.set.call(this,e),t&&f(t)}},searchParams:{get:function(){return h(this,t),this._searchParams||r(this,new e(this.search.slice(1)))},set:function(e){h(this,t),r(this,e)}}}))};return m(HTMLAnchorElement),/^function|object$/.test(typeof URL)&&URL.prototype&&m(URL),e}(),_o,ap;_o=URLSearchParams.prototype,ap=function(){try{return!!Symbol.iterator}catch(e){return!1}}(),"forEach"in _o||(_o.forEach=function(e,t){var n=Object.create(null);this.toString().replace(/=[\s\S]*?(?:&|$)/g,"=").split("=").forEach(function(r){!r.length||r in n||(n[r]=this.getAll(r)).forEach(function(n){e.call(t,n,r,this)},this)},this)}),"keys"in _o||(_o.keys=function(){var e=[];this.forEach(function(t,n){e.push(n)});var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return ap&&(t[Symbol.iterator]=function(){return t}),t}),"values"in _o||(_o.values=function(){var e=[];this.forEach(function(t){e.push(t)});var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return ap&&(t[Symbol.iterator]=function(){return t}),t}),"entries"in _o||(_o.entries=function(){var e=[];this.forEach(function(t,n){e.push([n,t])});var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return ap&&(t[Symbol.iterator]=function(){return t}),t}),!ap||Symbol.iterator in _o||(_o[Symbol.iterator]=_o.entries),"sort"in _o||(_o.sort=function(){for(var e,t,n,r=this.entries(),i=r.next(),o=i.done,a=[],s=Object.create(null);!o;)t=(n=i.value)[0],a.push(t),t in s||(s[t]=[]),s[t].push(n[1]),o=(i=r.next()).done;for(a.sort(),e=0;e<a.length;e++)this.delete(a[e]);for(e=0;e<a.length;e++)t=a[e],this.append(t,s[t].shift())}),define("deps/url-search-params",function(){}),define("deps/domReady",[],function(){var e,t,n,r="undefined"!=typeof window&&window.document,i=!r,o=r?document:null,a=[];function s(){var e=a;i&&e.length&&(a=[],function(e){var t;for(t=0;t<e.length;t+=1)e[t](o)}(e))}function l(){i||(i=!0,n&&clearInterval(n),s())}if(r){if(document.addEventListener)document.addEventListener("DOMContentLoaded",l,!1),window.addEventListener("load",l,!1);else if(window.attachEvent){window.attachEvent("onload",l),t=document.createElement("div");try{e=null===window.frameElement}catch(e){}t.doScroll&&e&&window.external&&(n=setInterval(function(){try{t.doScroll(),l()}catch(e){}},30))}"complete"===document.readyState&&l()}function c(e){return i?e(o):a.push(e),c}return c.version="2.0.1",c.load=function(e,t,n,r){r.isBuild?n(null):c(n)},c}),define("core/pubsubhub",["exports"],function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.pub=function(e,...n){if(!t.has(e))return;if(Array.from(t.get(e)).forEach(e=>e.apply(void 0,n)),window.parent===window.self)return;var r=n.map(e=>String(JSON.stringify(e.stack||e)));window.parent.postMessage({topic:e,args:r},window.parent.location.origin)},e.sub=n,e.unsub=r;e.name="core/pubsubhub";const t=new Map;function n(e,i,o={once:!1}){return o.once?n(e,function t(...n){r({topic:e,cb:t}),i(...n)}):(t.has(e)?t.get(e).add(i):t.set(e,new Set([i])),{topic:e,cb:i})}function r({topic:e,cb:n}){const r=t.get(e);return r&&r.has(n)?r.delete(n):(console.warn("Already unsubscribed:",e,n),!1)}n("error",e=>{console.error(e,e.stack)}),n("warn",e=>{console.warn(e)})}),function(e){var t={newline:/^\n+/,code:/^( {4}[^\n]+\n*)+/,fences:h,hr:/^ {0,3}((?:- *){3,}|(?:_ *){3,}|(?:\* *){3,})(?:\n+|$)/,heading:/^ *(#{1,6}) *([^\n]+?) *#* *(?:\n+|$)/,nptable:h,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( *)(bull) [\s\S]+?(?:hr|def|\n{2,}(?! )(?!\1bull )\n*|\s*$)/,html:/^ *(?:comment *(?:\n|\s*$)|closed *(?:\n{2,}|\s*$)|closing *(?:\n{2,}|\s*$))/,def:/^ {0,3}\[(label)\]: *\n? *<?([^\s>]+)>?(?:(?: +\n? *| *\n *)(title))? *(?:\n+|$)/,table:h,lheading:/^([^\n]+)\n *(=|-){2,} *(?:\n+|$)/,paragraph:/^([^\n]+(?:\n?(?!hr|heading|lheading| {0,3}>|tag)[^\n]+)+)/,text:/^[^\n]+/};function n(e){this.tokens=[],this.tokens.links={},this.options=e||g.defaults,this.rules=t.normal,this.options.gfm&&(this.options.tables?this.rules=t.tables:this.rules=t.gfm)}t._label=/(?:\\[\[\]]|[^\[\]])+/,t._title=/(?:"(?:\\"|[^"]|"[^"\n]*")*"|'\n?(?:[^'\n]+\n?)*'|\([^()]*\))/,t.def=u(t.def).replace("label",t._label).replace("title",t._title).getRegex(),t.bullet=/(?:[*+-]|\d+\.)/,t.item=/^( *)(bull) [^\n]*(?:\n(?!\1bull )[^\n]*)*/,t.item=u(t.item,"gm").replace(/bull/g,t.bullet).getRegex(),t.list=u(t.list).replace(/bull/g,t.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+t.def.source+")").getRegex(),t._tag="(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b",t.html=u(t.html).replace("comment",/<!--[\s\S]*?-->/).replace("closed",/<(tag)[\s\S]+?<\/\1>/).replace("closing",/<tag(?:"[^"]*"|'[^']*'|\s[^'"\/>\s]*)*?\/?>/).replace(/tag/g,t._tag).getRegex(),t.paragraph=u(t.paragraph).replace("hr",t.hr).replace("heading",t.heading).replace("lheading",t.lheading).replace("tag","<"+t._tag).getRegex(),t.blockquote=u(t.blockquote).replace("paragraph",t.paragraph).getRegex(),t.normal=m({},t),t.gfm=m({},t.normal,{fences:/^ *(`{3,}|~{3,})[ \.]*(\S+)? *\n([\s\S]*?)\n? *\1 *(?:\n+|$)/,paragraph:/^/,heading:/^ *(#{1,6}) +([^\n]+?) *#* *(?:\n+|$)/}),t.gfm.paragraph=u(t.paragraph).replace("(?!","(?!"+t.gfm.fences.source.replace("\\1","\\2")+"|"+t.list.source.replace("\\1","\\3")+"|").getRegex(),t.tables=m({},t.gfm,{nptable:/^ *(\S.*\|.*)\n *([-:]+ *\|[-| :]*)\n((?:.*\|.*(?:\n|$))*)\n*/,table:/^ *\|(.+)\n *\|( *[-:]+[-| :]*)\n((?: *\|.*(?:\n|$))*)\n*/}),n.rules=t,n.lex=function(e,t){return new n(t).lex(e)},n.prototype.lex=function(e){return e=e.replace(/\r\n|\r/g,"\n").replace(/\t/g," ").replace(/\u00a0/g," ").replace(/\u2424/g,"\n"),this.token(e,!0)},n.prototype.token=function(e,n){var r,i,o,a,s,l,c,u,d,p;for(e=e.replace(/^ +$/gm,"");e;)if((o=this.rules.newline.exec(e))&&(e=e.substring(o[0].length),o[0].length>1&&this.tokens.push({type:"space"})),o=this.rules.code.exec(e))e=e.substring(o[0].length),o=o[0].replace(/^ {4}/gm,""),this.tokens.push({type:"code",text:this.options.pedantic?o:o.replace(/\n+$/,"")});else if(o=this.rules.fences.exec(e))e=e.substring(o[0].length),this.tokens.push({type:"code",lang:o[2],text:o[3]||""});else if(o=this.rules.heading.exec(e))e=e.substring(o[0].length),this.tokens.push({type:"heading",depth:o[1].length,text:o[2]});else if(n&&(o=this.rules.nptable.exec(e))){for(e=e.substring(o[0].length),l={type:"table",header:o[1].replace(/^ *| *\| *$/g,"").split(/ *\| */),align:o[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:o[3].replace(/\n$/,"").split("\n")},u=0;u<l.align.length;u++)/^ *-+: *$/.test(l.align[u])?l.align[u]="right":/^ *:-+: *$/.test(l.align[u])?l.align[u]="center":/^ *:-+ *$/.test(l.align[u])?l.align[u]="left":l.align[u]=null;for(u=0;u<l.cells.length;u++)l.cells[u]=l.cells[u].split(/ *\| */);this.tokens.push(l)}else if(o=this.rules.hr.exec(e))e=e.substring(o[0].length),this.tokens.push({type:"hr"});else if(o=this.rules.blockquote.exec(e))e=e.substring(o[0].length),this.tokens.push({type:"blockquote_start"}),o=o[0].replace(/^ *> ?/gm,""),this.token(o,n),this.tokens.push({type:"blockquote_end"});else if(o=this.rules.list.exec(e)){for(e=e.substring(o[0].length),a=o[2],this.tokens.push({type:"list_start",ordered:a.length>1}),r=!1,p=(o=o[0].match(this.rules.item)).length,u=0;u<p;u++)c=(l=o[u]).length,~(l=l.replace(/^ *([*+-]|\d+\.) +/,"")).indexOf("\n ")&&(c-=l.length,l=this.options.pedantic?l.replace(/^ {1,4}/gm,""):l.replace(new RegExp("^ {1,"+c+"}","gm"),"")),this.options.smartLists&&u!==p-1&&(a===(s=t.bullet.exec(o[u+1])[0])||a.length>1&&s.length>1||(e=o.slice(u+1).join("\n")+e,u=p-1)),i=r||/\n\n(?!\s*$)/.test(l),u!==p-1&&(r="\n"===l.charAt(l.length-1),i||(i=r)),this.tokens.push({type:i?"loose_item_start":"list_item_start"}),this.token(l,!1),this.tokens.push({type:"list_item_end"});this.tokens.push({type:"list_end"})}else if(o=this.rules.html.exec(e))e=e.substring(o[0].length),this.tokens.push({type:this.options.sanitize?"paragraph":"html",pre:!this.options.sanitizer&&("pre"===o[1]||"script"===o[1]||"style"===o[1]),text:o[0]});else if(n&&(o=this.rules.def.exec(e)))e=e.substring(o[0].length),o[3]&&(o[3]=o[3].substring(1,o[3].length-1)),d=o[1].toLowerCase(),this.tokens.links[d]||(this.tokens.links[d]={href:o[2],title:o[3]});else if(n&&(o=this.rules.table.exec(e))){for(e=e.substring(o[0].length),l={type:"table",header:o[1].replace(/^ *| *\| *$/g,"").split(/ *\| */),align:o[2].replace(/^ *|\| *$/g,"").split(/ *\| */),cells:o[3].replace(/(?: *\| *)?\n$/,"").split("\n")},u=0;u<l.align.length;u++)/^ *-+: *$/.test(l.align[u])?l.align[u]="right":/^ *:-+: *$/.test(l.align[u])?l.align[u]="center":/^ *:-+ *$/.test(l.align[u])?l.align[u]="left":l.align[u]=null;for(u=0;u<l.cells.length;u++)l.cells[u]=l.cells[u].replace(/^ *\| *| *\| *$/g,"").split(/ *\| */);this.tokens.push(l)}else if(o=this.rules.lheading.exec(e))e=e.substring(o[0].length),this.tokens.push({type:"heading",depth:"="===o[2]?1:2,text:o[1]});else if(n&&(o=this.rules.paragraph.exec(e)))e=e.substring(o[0].length),this.tokens.push({type:"paragraph",text:"\n"===o[1].charAt(o[1].length-1)?o[1].slice(0,-1):o[1]});else if(o=this.rules.text.exec(e))e=e.substring(o[0].length),this.tokens.push({type:"text",text:o[0]});else if(e)throw new Error("Infinite loop on byte: "+e.charCodeAt(0));return this.tokens};var r={escape:/^\\([\\`*{}\[\]()#+\-.!_>])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:h,tag:/^<!--[\s\S]*?-->|^<\/?[a-zA-Z0-9\-]+(?:"[^"]*"|'[^']*'|\s[^<'">\/\s]*)*?\/?>/,link:/^!?\[(inside)\]\(href\)/,reflink:/^!?\[(inside)\]\s*\[([^\]]*)\]/,nolink:/^!?\[((?:\[[^\[\]]*\]|\\[\[\]]|[^\[\]])*)\]/,strong:/^__([\s\S]+?)__(?!_)|^\*\*([\s\S]+?)\*\*(?!\*)/,em:/^_([^\s_](?:[^_]|__)+?[^\s_])_\b|^\*((?:\*\*|[^*])+?)\*(?!\*)/,code:/^(`+)\s*([\s\S]*?[^`]?)\s*\1(?!`)/,br:/^ {2,}\n(?!\s*$)/,del:h,text:/^[\s\S]+?(?=[\\<!\[`*]|\b_| {2,}\n|$)/};function i(e,t){if(this.options=t||g.defaults,this.links=e,this.rules=r.normal,this.renderer=this.options.renderer||new o,this.renderer.options=this.options,!this.links)throw new Error("Tokens array requires a `links` property.");this.options.gfm?this.options.breaks?this.rules=r.breaks:this.rules=r.gfm:this.options.pedantic&&(this.rules=r.pedantic)}function o(e){this.options=e||{}}function a(){}function s(e){this.tokens=[],this.token=null,this.options=e||g.defaults,this.options.renderer=this.options.renderer||new o,this.renderer=this.options.renderer,this.renderer.options=this.options}function l(e,t){return e.replace(t?/&/g:/&(?!#?\w+;)/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function c(e){return e.replace(/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi,function(e,t){return"colon"===(t=t.toLowerCase())?":":"#"===t.charAt(0)?"x"===t.charAt(1)?String.fromCharCode(parseInt(t.substring(2),16)):String.fromCharCode(+t.substring(1)):""})}function u(e,t){return e=e.source,t=t||"",{replace:function(t,n){return n=(n=n.source||n).replace(/(^|[^\[])\^/g,"$1"),e=e.replace(t,n),this},getRegex:function(){return new RegExp(e,t)}}}function d(e,t){return p[" "+e]||(/^[^:]+:\/*[^/]*$/.test(e)?p[" "+e]=e+"/":p[" "+e]=e.replace(/[^/]*$/,"")),e=p[" "+e],"//"===t.slice(0,2)?e.replace(/:[\s\S]*/,":")+t:"/"===t.charAt(0)?e.replace(/(:\/*[^/]*)[\s\S]*/,"$1")+t:e+t}r._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/,r._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/,r.autolink=u(r.autolink).replace("scheme",r._scheme).replace("email",r._email).getRegex(),r._inside=/(?:\[[^\[\]]*\]|\\[\[\]]|[^\[\]]|\](?=[^\[]*\]))*/,r._href=/\s*<?([\s\S]*?)>?(?:\s+['"]([\s\S]*?)['"])?\s*/,r.link=u(r.link).replace("inside",r._inside).replace("href",r._href).getRegex(),r.reflink=u(r.reflink).replace("inside",r._inside).getRegex(),r.normal=m({},r),r.pedantic=m({},r.normal,{strong:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,em:/^_(?=\S)([\s\S]*?\S)_(?!_)|^\*(?=\S)([\s\S]*?\S)\*(?!\*)/}),r.gfm=m({},r.normal,{escape:u(r.escape).replace("])","~|])").getRegex(),url:u(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("email",r._email).getRegex(),_backpedal:/(?:[^?!.,:;*_~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_~)]+(?!$))+/,del:/^~~(?=\S)([\s\S]*?\S)~~/,text:u(r.text).replace("]|","~]|").replace("|","|https?://|ftp://|www\\.|[a-zA-Z0-9.!#$%&'*+/=?^_`{\\|}~-]+@|").getRegex()}),r.breaks=m({},r.gfm,{br:u(r.br).replace("{2,}","*").getRegex(),text:u(r.gfm.text).replace("{2,}","*").getRegex()}),i.rules=r,i.output=function(e,t,n){return new i(t,n).output(e)},i.prototype.output=function(e){for(var t,n,r,i,o="";e;)if(i=this.rules.escape.exec(e))e=e.substring(i[0].length),o+=i[1];else if(i=this.rules.autolink.exec(e))e=e.substring(i[0].length),r="@"===i[2]?"mailto:"+(n=l(this.mangle(i[1]))):n=l(i[1]),o+=this.renderer.link(r,null,n);else if(this.inLink||!(i=this.rules.url.exec(e))){if(i=this.rules.tag.exec(e))!this.inLink&&/^<a /i.test(i[0])?this.inLink=!0:this.inLink&&/^<\/a>/i.test(i[0])&&(this.inLink=!1),e=e.substring(i[0].length),o+=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(i[0]):l(i[0]):i[0];else if(i=this.rules.link.exec(e))e=e.substring(i[0].length),this.inLink=!0,o+=this.outputLink(i,{href:i[2],title:i[3]}),this.inLink=!1;else if((i=this.rules.reflink.exec(e))||(i=this.rules.nolink.exec(e))){if(e=e.substring(i[0].length),t=(i[2]||i[1]).replace(/\s+/g," "),!(t=this.links[t.toLowerCase()])||!t.href){o+=i[0].charAt(0),e=i[0].substring(1)+e;continue}this.inLink=!0,o+=this.outputLink(i,t),this.inLink=!1}else if(i=this.rules.strong.exec(e))e=e.substring(i[0].length),o+=this.renderer.strong(this.output(i[2]||i[1]));else if(i=this.rules.em.exec(e))e=e.substring(i[0].length),o+=this.renderer.em(this.output(i[2]||i[1]));else if(i=this.rules.code.exec(e))e=e.substring(i[0].length),o+=this.renderer.codespan(l(i[2].trim(),!0));else if(i=this.rules.br.exec(e))e=e.substring(i[0].length),o+=this.renderer.br();else if(i=this.rules.del.exec(e))e=e.substring(i[0].length),o+=this.renderer.del(this.output(i[1]));else if(i=this.rules.text.exec(e))e=e.substring(i[0].length),o+=this.renderer.text(l(this.smartypants(i[0])));else if(e)throw new Error("Infinite loop on byte: "+e.charCodeAt(0))}else i[0]=this.rules._backpedal.exec(i[0])[0],e=e.substring(i[0].length),"@"===i[2]?r="mailto:"+(n=l(i[0])):(n=l(i[0]),r="www."===i[1]?"http://"+n:n),o+=this.renderer.link(r,null,n);return o},i.prototype.outputLink=function(e,t){var n=l(t.href),r=t.title?l(t.title):null;return"!"!==e[0].charAt(0)?this.renderer.link(n,r,this.output(e[1])):this.renderer.image(n,r,l(e[1]))},i.prototype.smartypants=function(e){return this.options.smartypants?e.replace(/---/g,"—").replace(/--/g,"–").replace(/(^|[-\u2014/(\[{"\s])'/g,"$1‘").replace(/'/g,"’").replace(/(^|[-\u2014/(\[{\u2018\s])"/g,"$1“").replace(/"/g,"”").replace(/\.{3}/g,"…"):e},i.prototype.mangle=function(e){if(!this.options.mangle)return e;for(var t,n="",r=e.length,i=0;i<r;i++)t=e.charCodeAt(i),Math.random()>.5&&(t="x"+t.toString(16)),n+="&#"+t+";";return n},o.prototype.code=function(e,t,n){if(this.options.highlight){var r=this.options.highlight(e,t);null!=r&&r!==e&&(n=!0,e=r)}return t?'<pre><code class="'+this.options.langPrefix+l(t,!0)+'">'+(n?e:l(e,!0))+"\n</code></pre>\n":"<pre><code>"+(n?e:l(e,!0))+"\n</code></pre>"},o.prototype.blockquote=function(e){return"<blockquote>\n"+e+"</blockquote>\n"},o.prototype.html=function(e){return e},o.prototype.heading=function(e,t,n){return"<h"+t+' id="'+this.options.headerPrefix+n.toLowerCase().replace(/[^\w]+/g,"-")+'">'+e+"</h"+t+">\n"},o.prototype.hr=function(){return this.options.xhtml?"<hr/>\n":"<hr>\n"},o.prototype.list=function(e,t){var n=t?"ol":"ul";return"<"+n+">\n"+e+"</"+n+">\n"},o.prototype.listitem=function(e){return"<li>"+e+"</li>\n"},o.prototype.paragraph=function(e){return"<p>"+e+"</p>\n"},o.prototype.table=function(e,t){return"<table>\n<thead>\n"+e+"</thead>\n<tbody>\n"+t+"</tbody>\n</table>\n"},o.prototype.tablerow=function(e){return"<tr>\n"+e+"</tr>\n"},o.prototype.tablecell=function(e,t){var n=t.header?"th":"td";return(t.align?"<"+n+' style="text-align:'+t.align+'">':"<"+n+">")+e+"</"+n+">\n"},o.prototype.strong=function(e){return"<strong>"+e+"</strong>"},o.prototype.em=function(e){return"<em>"+e+"</em>"},o.prototype.codespan=function(e){return"<code>"+e+"</code>"},o.prototype.br=function(){return this.options.xhtml?"<br/>":"<br>"},o.prototype.del=function(e){return"<del>"+e+"</del>"},o.prototype.link=function(e,t,n){if(this.options.sanitize){try{var r=decodeURIComponent(c(e)).replace(/[^\w:]/g,"").toLowerCase()}catch(e){return n}if(0===r.indexOf("javascript:")||0===r.indexOf("vbscript:")||0===r.indexOf("data:"))return n}this.options.baseUrl&&!f.test(e)&&(e=d(this.options.baseUrl,e));var i='<a href="'+e+'"';return t&&(i+=' title="'+t+'"'),i+=">"+n+"</a>"},o.prototype.image=function(e,t,n){this.options.baseUrl&&!f.test(e)&&(e=d(this.options.baseUrl,e));var r='<img src="'+e+'" alt="'+n+'"';return t&&(r+=' title="'+t+'"'),r+=this.options.xhtml?"/>":">"},o.prototype.text=function(e){return e},a.prototype.strong=a.prototype.em=a.prototype.codespan=a.prototype.del=a.prototype.text=function(e){return e},a.prototype.link=a.prototype.image=function(e,t,n){return""+n},a.prototype.br=function(){return""},s.parse=function(e,t){return new s(t).parse(e)},s.prototype.parse=function(e){this.inline=new i(e.links,this.options),this.inlineText=new i(e.links,m({},this.options,{renderer:new a})),this.tokens=e.reverse();for(var t="";this.next();)t+=this.tok();return t},s.prototype.next=function(){return this.token=this.tokens.pop()},s.prototype.peek=function(){return this.tokens[this.tokens.length-1]||0},s.prototype.parseText=function(){for(var e=this.token.text;"text"===this.peek().type;)e+="\n"+this.next().text;return this.inline.output(e)},s.prototype.tok=function(){switch(this.token.type){case"space":return"";case"hr":return this.renderer.hr();case"heading":return this.renderer.heading(this.inline.output(this.token.text),this.token.depth,c(this.inlineText.output(this.token.text)));case"code":return this.renderer.code(this.token.text,this.token.lang,this.token.escaped);case"table":var e,t,n,r,i="",o="";for(n="",e=0;e<this.token.header.length;e++)n+=this.renderer.tablecell(this.inline.output(this.token.header[e]),{header:!0,align:this.token.align[e]});for(i+=this.renderer.tablerow(n),e=0;e<this.token.cells.length;e++){for(t=this.token.cells[e],n="",r=0;r<t.length;r++)n+=this.renderer.tablecell(this.inline.output(t[r]),{header:!1,align:this.token.align[r]});o+=this.renderer.tablerow(n)}return this.renderer.table(i,o);case"blockquote_start":for(o="";"blockquote_end"!==this.next().type;)o+=this.tok();return this.renderer.blockquote(o);case"list_start":o="";for(var a=this.token.ordered;"list_end"!==this.next().type;)o+=this.tok();return this.renderer.list(o,a);case"list_item_start":for(o="";"list_item_end"!==this.next().type;)o+="text"===this.token.type?this.parseText():this.tok();return this.renderer.listitem(o);case"loose_item_start":for(o="";"list_item_end"!==this.next().type;)o+=this.tok();return this.renderer.listitem(o);case"html":var s=this.token.pre||this.options.pedantic?this.token.text:this.inline.output(this.token.text);return this.renderer.html(s);case"paragraph":return this.renderer.paragraph(this.inline.output(this.token.text));case"text":return this.renderer.paragraph(this.parseText())}};var p={},f=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function h(){}function m(e){for(var t,n,r=1;r<arguments.length;r++){t=arguments[r];for(n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e}function g(e,t,r){if(void 0===e||null===e)throw new Error("marked(): input parameter is undefined or null");if("string"!=typeof e)throw new Error("marked(): input parameter is of type "+Object.prototype.toString.call(e)+", string expected");if(r||"function"==typeof t){r||(r=t,t=null);var i,o,a=(t=m({},g.defaults,t||{})).highlight,c=0;try{i=n.lex(e,t)}catch(e){return r(e)}o=i.length;var u=function(e){if(e)return t.highlight=a,r(e);var n;try{n=s.parse(i,t)}catch(t){e=t}return t.highlight=a,e?r(e):r(null,n)};if(!a||a.length<3)return u();if(delete t.highlight,!o)return u();for(;c<i.length;c++)!function(e){"code"!==e.type?--o||u():a(e.text,e.lang,function(t,n){return t?u(t):null==n||n===e.text?--o||u():(e.text=n,e.escaped=!0,void(--o||u()))})}(i[c])}else try{return t&&(t=m({},g.defaults,t)),s.parse(n.lex(e,t),t)}catch(e){if(e.message+="\nPlease report this to https://github.com/chjj/marked.",(t||g.defaults).silent)return"<p>An error occurred:</p><pre>"+l(e.message+"",!0)+"</pre>";throw e}}h.exec=h,g.options=g.setOptions=function(e){return m(g.defaults,e),g},g.defaults={gfm:!0,tables:!0,breaks:!1,pedantic:!1,sanitize:!1,sanitizer:null,mangle:!0,smartLists:!1,silent:!1,highlight:null,langPrefix:"lang-",smartypants:!1,headerPrefix:"",renderer:new o,xhtml:!1,baseUrl:null},g.Parser=s,g.parser=s.parse,g.Renderer=o,g.TextRenderer=a,g.Lexer=n,g.lexer=n.lex,g.InlineLexer=i,g.inlineLexer=i.output,g.parse=g,"undefined"!=typeof module&&"object"==typeof exports?module.exports=g:"function"==typeof define&&define.amd?define("deps/marked",[],function(){return g}):e.marked=g}(this||("undefined"!=typeof window?window:global)),define("core/utils",["exports","core/pubsubhub","deps/marked"],function(e,t,n){Object.defineProperty(e,"__esModule",{value:!0}),e.ISODate=e.name=void 0,e.markdownToHtml=function(e){const t=h(e).replace(l,">").replace(c,"&");return(0,i.default)(t)},e.makeOwnerSwapper=function(e){if(!e)throw new TypeError("Expected instance of Node.");return t=>{if(t.ownerDocument.adoptNode(e),t.firstElementChild)return t.insertBefore(e,t.firstElementChild);t.appendChild(e)}},e.calculateLeftPad=function(e){if("string"!=typeof e)throw new TypeError("Invalid input");var t=e.split("\n").filter(e=>e).reduce((e,t)=>{if(0===e)return e;const n=t.match(o)[0]||"";return Math.min(n.length,e)},1/0);return t===1/0?0:t},e.createResourceHint=function(e){if(!e||"object"!=typeof e)throw new TypeError("Missing options");if(!p.has(e.hint))throw new TypeError("Invalid resources hint");const t=new URL(e.href,document.location),n=document.createElement("link");let r=t.href;switch(n.rel=e.hint,n.rel){case"dns-prefetch":case"preconnect":r=t.origin,(e.corsMode||t.origin!==document.location.origin)&&(n.crossOrigin=e.corsMode||"anonymous");break;case"preload":"as"in e&&"string"==typeof e.as&&(f.has(e.as)||console.warn(`Unknown request destination: ${e.as}`),n.setAttribute("as",e.as))}n.href=r,e.dontRemove||n.classList.add("removeOnSave");return n},e.normalizePadding=h,e.removeReSpec=function(e){Array.from(e.querySelectorAll(".remove, script[data-requiremodule]")).forEach(e=>{e.remove()})},e.joinAnd=function(e=[],t=(e=>e)){const n=e.map(t);switch(n.length){case 0:case 1:return n.toString();case 2:return n.join(" and ");default:const e=n.join(", "),t=e.lastIndexOf(",");return`${e.substr(0,t+1)} and ${e.slice(t+2)}`}},e.xmlEscape=function(e){return e.replace(/&/g,"&").replace(/>/g,">").replace(/"/g,""").replace(/</g,"<")},e.norm=function(e){return e.trim().replace(/\s+/g," ")},e.concatDate=function(e,t=""){return u.format(e).replace(s,t)},e.toShortIsoDate=function(e){return u.format(e)},e.lead0=function(e){return 1===String(e).length?"0"+e:e},e.parseSimpleDate=function(e){return new Date(e)},e.parseLastModified=function(e){return e?new Date(Date.parse(e)):new Date},e.humanDate=function(e=new Date,t=document.documentElement.lang||"en"){e instanceof Date||(e=new Date(e));const n=[t,"en"],r=e.toLocaleString(n,{day:"2-digit",timeZone:"UTC"}),i=e.toLocaleString(n,{month:"long",timeZone:"UTC"}),o=e.toLocaleString(n,{year:"numeric",timeZone:"UTC"});return`${r} ${i} ${o}`},e.isoDate=function(e){return(e instanceof Date?e:new Date(e)).toISOString()},e.toKeyValuePairs=function(e,t=", ",n="="){return Array.from(Object.entries(e)).map(([e,t])=>`${e}${n}${JSON.stringify(t)}`).join(t)},e.linkCSS=function(e,t){const n=[].concat(t).map(t=>{var n=e.createElement("link");return n.rel="stylesheet",n.href=t,n}).reduce(function(e,t){return e.appendChild(t),e},e.createDocumentFragment());e.head.appendChild(n)},e.runTransforms=function(e,n){var r=[this,e],i=Array.from(arguments);if(i.shift(),i.shift(),r=r.concat(i),n)for(var o=n.split(/\s+/),a=0;a<o.length;a++){var s=o[a];if(window[s])try{e=window[s].apply(this,r)}catch(e){(0,t.pub)("warn",`call to \`${s}()\` failed with: ${e}. See error console for stack trace.`),console.error(e)}}return e};var r,i=(r=n)&&r.__esModule?r:{default:r};e.name="core/utils";i.default.setOptions({sanitize:!1,gfm:!0});const o=/^[\ |\t]*/,a=/\s+$/gm,s=/\-/g,l=/>/gm,c=/&/gm;const u=e.ISODate=new Intl.DateTimeFormat(["en-ca-iso8601"],{timeZone:"UTC",year:"numeric",month:"2-digit",day:"2-digit"}),d=new Set(["a","abbr","acronym","b","bdo","big","br","button","cite","code","dfn","em","i","img","input","kbd","label","map","object","q","samp","script","select","small","span","strong","sub","sup","textarea","time","tt","var"]),p=new Set(["dns-prefetch","preconnect","preload","prerender"]),f=new Set(["document","embed","font","image","manifest","media","object","report","script","serviceworker","sharedworker","style","worker","xslt",""]);function h(e=""){if(!e)return"";if("string"!=typeof e)throw TypeError("Invalid input");if("\n"===e)return"\n";function t(e){return null!==e&&e.nodeType===Node.TEXT_NODE}var n="<body>"+e,r=(new DOMParser).parseFromString(n,"text/html");Array.from(r.body.children).filter(e=>!d.has(e.localName)).filter(e=>"pre"!==e.localName).filter(e=>"table"!==e.localName).forEach(e=>{e.innerHTML=h(e.innerHTML)}),Array.from(r.body.childNodes).filter(e=>t(e)&&""===e.textContent.trim()).forEach(e=>e.parentElement.replaceChild(r.createTextNode("\n"),e)),t(r.body.firstChild)||Array.from(r.body.firstChild.children).filter(e=>"table"!==e.localName).forEach(e=>{e.innerHTML=h(e.innerHTML)}),r.normalize();const i=r.body.innerText.replace(/^\ *\n/,"").split("\n").filter(e=>e&&e.startsWith(" "))[0];var o=i?i.match(/\ +/)[0].length:0;if(o){Array.from(r.body.childNodes).filter(e=>"pre"!==e.localName).filter(t).filter(e=>{const t=e.previousElementSibling,n=t?t.localName:e.parentElement.localName;return!d.has(n)||e.textContent.trim().includes("\n")}).reduce((e,t)=>{let n="";const r=t.previousElementSibling,i=r?r.localName:t.parentElement.localName;return/^[\t\ ]/.test(t.textContent)&&d.has(i)&&(n=t.textContent.match(/^\s+/)[0]),t.textContent=n+t.textContent.replace(e,""),e},new RegExp("^ {1,"+o+"}","gm"));const e=new RegExp(`\\ {${o}}$`,"gm");Array.from(r.body.querySelectorAll("pre")).map(e=>e.previousSibling).filter(t).reduce((t,n)=>(e.test(n.textContent)&&(n.textContent=n.textContent.substr(0,n.textContent.length-t)),t),o)}return a.test(r.body.innerHTML)?r.body.innerHTML.trimRight()+"\n":r.body.innerHTML}}),define("core/post-process",["exports","core/pubsubhub"],function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.done=e.name=void 0;e.name="core/post-process";let n;e.done=new Promise(e=>{n=e});(0,t.sub)("plugins-done",async e=>{const t=[];if(Array.isArray(e.postProcess)){const n=await Promise.all(e.postProcess.filter(e=>"function"==typeof e).map(t=>Promise.resolve(t(e,document))));t.push(...n)}"function"==typeof e.afterEnd&&t.push(await Promise.resolve(e.afterEnd(e,document))),n(t)},{once:!0})}),define("core/pre-process",["exports","core/pubsubhub"],function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.done=e.name=void 0;e.name="core/pre-process";let n;e.done=new Promise(e=>{n=e});(0,t.sub)("start-all",async e=>{const t=[];if(Array.isArray(e.preProcess)){const n=await Promise.all(e.preProcess.filter(e=>"function"==typeof e).map(t=>Promise.resolve(t(e,document))));t.push(...n)}n(t)},{once:!0})}),define("core/include-config",["exports","core/pubsubhub"],function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.name=void 0;e.name="core/include-config";const n={},r=e=>Object.assign(n,e);(0,t.sub)("start-all",r),(0,t.sub)("amend-user-config",r),(0,t.sub)("end-all",()=>{const e=document.createElement("script");e.id="initialUserConfig",e.type="application/json",e.innerHTML=JSON.stringify(n,null,2),document.head.appendChild(e)})}),define("core/override-configuration",["exports","core/pubsubhub"],function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.name=void 0;e.name="core/override-configuration";(0,t.sub)("start-all",function(e){const n=document.location.search.replace(/;/g,"&"),r=new URLSearchParams(n),i=Array.from(r.entries()).filter(([e,t])=>!!e&&!!t).map(([e,t])=>{const n=decodeURIComponent(e),r=decodeURIComponent(t.replace(/%3D/g,"="));let i;try{i=JSON.parse(r)}catch(e){i=r}return{key:n,value:i}}).reduce((e,{key:t,value:n})=>(e[t]=n,e),{});Object.assign(e,i),(0,t.pub)("amend-user-config",i)},{once:!0})}),define("core/respec-ready",["exports","core/pubsubhub"],function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.name=void 0;e.name="core/respec-ready";const n=new Promise(e=>{(0,t.sub)("end-all",e,{once:!0})});Object.defineProperty(document,"respecIsReady",{get:()=>n})}),define("core/base-runner",["exports","core/utils","core/post-process","core/pre-process","core/pubsubhub","core/include-config","core/override-configuration","core/respec-ready"],function(e,t,n,r,i){Object.defineProperty(e,"__esModule",{value:!0}),e.name=void 0,e.runAll=async function(e){(0,i.pub)("start-all",respecConfig),a&&performance.mark(o+"-start");await r.done;const l=e.filter(e=>e&&e.run).map(s);for(const e of l)try{await e(respecConfig)}catch(e){console.error(e)}(0,i.pub)("plugins-done",respecConfig),await n.done,(0,i.pub)("end-all",respecConfig),(0,t.removeReSpec)(document),a&&(performance.mark(o+"-end"),performance.measure(o,o+"-start",o+"-end"))};const o=e.name="core/base-runner",a=performance.mark&&performance.measure;function s(e){const t=e.name||"";return t||console.warn("Plugin lacks name:",e),n=>new Promise(async(r,i)=>{const o=setTimeout(()=>{const n=`Plugin ${t} took too long.`;console.error(n,e),i(new Error(n))},5e3);a&&performance.mark(t+"-start");try{e.run.length<=1?(await e.run(n),r()):e.run(n,document,r)}catch(e){i(e)}finally{clearTimeout(o)}a&&(performance.mark(t+"-end"),performance.measure(t,t+"-start",t+"-end"))})}});var shortcut={all_shortcuts:{},add:function(e,t,n){var r={type:"keydown",propagate:!1,disable_in_input:!1,target:document,keycode:!1};if(n)for(var i in r)void 0===n[i]&&(n[i]=r[i]);else n=r;var o=n.target;"string"==typeof n.target&&(o=document.getElementById(n.target));e=e.toLowerCase();var a=function(r){var i,o;if((r=r||window.event,n.disable_in_input)&&(r.target?o=r.target:r.srcElement&&(o=r.srcElement),3==o.nodeType&&(o=o.parentNode),"INPUT"==o.tagName||"TEXTAREA"==o.tagName))return;r.keyCode?i=r.keyCode:r.which&&(i=r.which);var a=String.fromCharCode(i).toLowerCase();188==i&&(a=","),190==i&&(a=".");var s=e.split("+"),l=0,c={"`":"~",1:"!",2:"@",3:"#",4:"$",5:"%",6:"^",7:"&",8:"*",9:"(",0:")","-":"_","=":"+",";":":","'":'"',",":"<",".":">","/":"?","\\":"|"},u={esc:27,escape:27,tab:9,space:32,return:13,enter:13,backspace:8,scrolllock:145,scroll_lock:145,scroll:145,capslock:20,caps_lock:20,caps:20,numlock:144,num_lock:144,num:144,pause:19,break:19,insert:45,home:36,delete:46,end:35,pageup:33,page_up:33,pu:33,pagedown:34,page_down:34,pd:34,left:37,up:38,right:39,down:40,f1:112,f2:113,f3:114,f4:115,f5:116,f6:117,f7:118,f8:119,f9:120,f10:121,f11:122,f12:123},d={shift:{wanted:!1,pressed:!1},ctrl:{wanted:!1,pressed:!1},alt:{wanted:!1,pressed:!1},meta:{wanted:!1,pressed:!1}};r.ctrlKey&&(d.ctrl.pressed=!0),r.shiftKey&&(d.shift.pressed=!0),r.altKey&&(d.alt.pressed=!0),r.metaKey&&(d.meta.pressed=!0);for(var p,f=0;p=s[f],f<s.length;f++)"ctrl"==p||"control"==p?(l++,d.ctrl.wanted=!0):"shift"==p?(l++,d.shift.wanted=!0):"alt"==p?(l++,d.alt.wanted=!0):"meta"==p?(l++,d.meta.wanted=!0):p.length>1?u[p]==i&&l++:n.keycode?n.keycode==i&&l++:a==p?l++:c[a]&&r.shiftKey&&(a=c[a])==p&&l++;if(l==s.length&&d.ctrl.pressed==d.ctrl.wanted&&d.shift.pressed==d.shift.wanted&&d.alt.pressed==d.alt.wanted&&d.meta.pressed==d.meta.wanted&&(t(r),!n.propagate))return r.cancelBubble=!0,r.returnValue=!1,r.stopPropagation&&(r.stopPropagation(),r.preventDefault()),!1};this.all_shortcuts[e]={callback:a,target:o,event:n.type},o.addEventListener?o.addEventListener(n.type,a,!1):o.attachEvent?o.attachEvent("on"+n.type,a):o["on"+n.type]=a}},cx,y_,z_,Nfa,Ofa,nRa,oRa;define("shortcut",(cx=this,function(){return cx.shortcut})),define("deps/text",["module"],function(e){var t,n,r,i,o,a=["Msxml2.XMLHTTP","Microsoft.XMLHTTP","Msxml2.XMLHTTP.4.0"],s=/^\s*<\?xml(\s)+version=[\'\"](\d)*.(\d)*[\'\"](\s)*\?>/im,l=/<body[^>]*>\s*([\s\S]+)\s*<\/body>/im,c="undefined"!=typeof location&&location.href,u=c&&location.protocol&&location.protocol.replace(/\:/,""),d=c&&location.hostname,p=c&&(location.port||void 0),f={},h=e.config&&e.config()||{};function m(e,t){return void 0===e||""===e?t:e}return t={version:"2.0.15",strip:function(e){if(e){var t=(e=e.replace(s,"")).match(l);t&&(e=t[1])}else e="";return e},jsEscape:function(e){return e.replace(/(['\\])/g,"\\$1").replace(/[\f]/g,"\\f").replace(/[\b]/g,"\\b").replace(/[\n]/g,"\\n").replace(/[\t]/g,"\\t").replace(/[\r]/g,"\\r").replace(/[\u2028]/g,"\\u2028").replace(/[\u2029]/g,"\\u2029")},createXhr:h.createXhr||function(){var e,t,n;if("undefined"!=typeof XMLHttpRequest)return new XMLHttpRequest;if("undefined"!=typeof ActiveXObject)for(t=0;t<3;t+=1){n=a[t];try{e=new ActiveXObject(n)}catch(e){}if(e){a=[n];break}}return e},parseName:function(e){var t,n,r,i=!1,o=e.lastIndexOf("."),a=0===e.indexOf("./")||0===e.indexOf("../");return-1!==o&&(!a||o>1)?(t=e.substring(0,o),n=e.substring(o+1)):t=e,-1!==(o=(r=n||t).indexOf("!"))&&(i="strip"===r.substring(o+1),r=r.substring(0,o),n?n=r:t=r),{moduleName:t,ext:n,strip:i}},xdRegExp:/^((\w+)\:)?\/\/([^\/\\]+)/,useXhr:function(e,n,r,i){var o,a,s,l=t.xdRegExp.exec(e);return!l||(o=l[2],s=(a=(a=l[3]).split(":"))[1],a=a[0],(!o||o===n)&&(!a||a.toLowerCase()===r.toLowerCase())&&(!s&&!a||function(e,t,n,r){if(t===r)return!0;if(e===n){if("http"===e)return m(t,"80")===m(r,"80");if("https"===e)return m(t,"443")===m(r,"443")}return!1}(o,s,n,i)))},finishLoad:function(e,n,r,i){r=n?t.strip(r):r,h.isBuild&&(f[e]=r),i(r)},load:function(e,n,r,i){if(i&&i.isBuild&&!i.inlineText)r();else{h.isBuild=i&&i.isBuild;var o=t.parseName(e),a=o.moduleName+(o.ext?"."+o.ext:""),s=n.toUrl(a),l=h.useXhr||t.useXhr;0!==s.indexOf("empty:")?!c||l(s,u,d,p)?t.get(s,function(n){t.finishLoad(e,o.strip,n,r)},function(e){r.error&&r.error(e)}):n([a],function(e){t.finishLoad(o.moduleName+"."+o.ext,o.strip,e,r)}):r()}},write:function(e,n,r,i){if(f.hasOwnProperty(n)){var o=t.jsEscape(f[n]);r.asModule(e+"!"+n,"define(function () { return '"+o+"';});\n")}},writeFile:function(e,n,r,i,o){var a=t.parseName(n),s=a.ext?"."+a.ext:"",l=a.moduleName+s,c=r.toUrl(a.moduleName+s)+".js";t.load(l,r,function(n){var r=function(e){return i(c,e)};r.asModule=function(e,t){return i.asModule(e,c,t)},t.write(e,l,r,o)},o)}},"node"===h.env||!h.env&&"undefined"!=typeof process&&process.versions&&process.versions.node&&!process.versions["node-webkit"]&&!process.versions["atom-shell"]?(n=require.nodeRequire("fs"),t.get=function(e,t,r){try{var i=n.readFileSync(e,"utf8");"\ufeff"===i[0]&&(i=i.substring(1)),t(i)}catch(e){r&&r(e)}}):"xhr"===h.env||!h.env&&t.createXhr()?t.get=function(e,n,r,i){var o,a=t.createXhr();if(a.open("GET",e,!0),i)for(o in i)i.hasOwnProperty(o)&&a.setRequestHeader(o.toLowerCase(),i[o]);h.onXhr&&h.onXhr(a,e),a.onreadystatechange=function(t){var i,o;4===a.readyState&&((i=a.status||0)>399&&i<600?((o=new Error(e+" HTTP status: "+i)).xhr=a,r&&r(o)):n(a.responseText),h.onXhrComplete&&h.onXhrComplete(a,e))},a.send(null)}:"rhino"===h.env||!h.env&&"undefined"!=typeof Packages&&"undefined"!=typeof java?t.get=function(e,t){var n,r,i=new java.io.File(e),o=java.lang.System.getProperty("line.separator"),a=new java.io.BufferedReader(new java.io.InputStreamReader(new java.io.FileInputStream(i),"utf-8")),s="";try{for(n=new java.lang.StringBuffer,(r=a.readLine())&&r.length()&&65279===r.charAt(0)&&(r=r.substring(1)),null!==r&&n.append(r);null!==(r=a.readLine());)n.append(o),n.append(r);s=String(n.toString())}finally{a.close()}t(s)}:("xpconnect"===h.env||!h.env&&"undefined"!=typeof Components&&Components.classes&&Components.interfaces)&&(r=Components.classes,i=Components.interfaces,Components.utils.import("resource://gre/modules/FileUtils.jsm"),o="@mozilla.org/windows-registry-key;1"in r,t.get=function(e,t){var n,a,s,l={};o&&(e=e.replace(/\//g,"\\")),s=new FileUtils.File(e);try{(n=r["@mozilla.org/network/file-input-stream;1"].createInstance(i.nsIFileInputStream)).init(s,1,0,!1),(a=r["@mozilla.org/intl/converter-input-stream;1"].createInstance(i.nsIConverterInputStream)).init(n,"utf-8",n.available(),i.nsIConverterInputStream.DEFAULT_REPLACEMENT_CHARACTER),a.readString(n.available(),l),a.close(),n.close(),t(l.value)}catch(e){throw new Error((s&&s.path||"")+": "+e)}}),t}),define("deps/text!ui/ui.css",[],function(){return'#respec-ui {\n position: fixed;\n display: flex;\n flex-direction: row-reverse;\n top: 20px;\n right: 20px;\n width: 202px;\n text-align: right;\n z-index: 9000;\n}\n\n#respec-pill,\n.respec-info-button {\n background: #fff;\n height: 2.5em;\n color: rgb(120, 120, 120);\n border: 1px solid #ccc;\n box-shadow: 1px 1px 8px 0 rgba(100, 100, 100, 0.5);\n}\n\n.respec-info-button {\n border: none;\n opacity: 0.75;\n border-radius: 2em;\n margin-right: 1em;\n min-width: 3.5em;\n}\n\n.respec-info-button:focus,\n.respec-info-button:hover {\n opacity: 1;\n transition: opacity 0.2s;\n}\n\n#respec-pill:disabled {\n font-size: 2.8px;\n text-indent: -9999em;\n border-top: 1.1em solid rgba(40, 40, 40, 0.2);\n border-right: 1.1em solid rgba(40, 40, 40, 0.2);\n border-bottom: 1.1em solid rgba(40, 40, 40, 0.2);\n border-left: 1.1em solid #ffffff;\n transform: translateZ(0);\n animation: respec-spin 0.5s infinite linear;\n box-shadow: none;\n}\n\n#respec-pill:disabled,\n#respec-pill:disabled:after {\n border-radius: 50%;\n width: 10em;\n height: 10em;\n}\n\n@keyframes respec-spin {\n 0% {\n transform: rotate(0deg);\n }\n 100% {\n transform: rotate(360deg);\n }\n}\n\n.respec-hidden {\n visibility: hidden;\n opacity: 0;\n transition: visibility 0s 0.2s, opacity 0.2s linear;\n}\n\n.respec-visible {\n visibility: visible;\n opacity: 1;\n transition: opacity 0.2s linear;\n}\n\n#respec-pill:hover,\n#respec-pill:focus {\n color: rgb(0, 0, 0);\n background-color: rgb(245, 245, 245);\n transition: color 0.2s;\n}\n\n#respec-menu {\n position: absolute;\n margin: 0;\n padding: 0;\n font-family: sans-serif;\n background: #fff;\n box-shadow: 1px 1px 8px 0 rgba(100, 100, 100, 0.5);\n width: 200px;\n display: none;\n text-align: left;\n margin-top: 32px;\n font-size: 0.8em;\n}\n\n#respec-menu:not([hidden]) {\n display: block;\n}\n\n#respec-menu li {\n list-style-type: none;\n margin: 0;\n padding: 0;\n}\n\n.respec-save-buttons {\n display: grid;\n grid-template-columns: repeat(auto-fill, minmax(47%, 2fr));\n grid-gap: 0.5cm;\n padding: 0.5cm;\n}\n\n.respec-save-button:link {\n padding-top: 16px;\n color: rgb(240, 240, 240);\n background: rgb(42, 90, 168);\n justify-self: stretch;\n height: 1cm;\n text-decoration: none;\n text-align: center;\n font-size: inherit;\n border: none;\n border-radius: 0.2cm;\n}\n\n.respec-save-button:link:hover {\n color: white;\n background: rgb(42, 90, 168);\n padding: 0;\n margin: 0;\n border: 0;\n padding-top: 16px;\n}\n\n#respec-ui button:focus,\n#respec-pill:focus,\n.respec-option:focus {\n outline: 0;\n outline-style: none;\n}\n\n#respec-pill-error {\n background-color: red;\n color: white;\n}\n\n#respec-pill-warning {\n background-color: orange;\n color: white;\n}\n\n.respec-warning-list,\n.respec-error-list {\n margin: 0;\n padding: 0;\n list-style: none;\n font-family: sans-serif;\n background-color: rgb(255, 251, 230);\n font-size: 0.85em;\n}\n\n.respec-warning-list > li,\n.respec-error-list > li {\n padding: 0.4em 0.7em;\n}\n\n.respec-warning-list > li::before {\n content: "⚠️";\n padding-right: 0.5em;\n}\n.respec-warning-list p,\n.respec-error-list p {\n padding: 0;\n margin: 0;\n}\n\n.respec-warning-list li {\n color: rgb(92, 59, 0);\n border-bottom: thin solid rgb(255, 245, 194);\n}\n\n.respec-error-list,\n.respec-error-list li {\n background-color: rgb(255, 240, 240);\n}\n\n.respec-error-list li::before {\n content: "💥";\n padding-right: 0.5em;\n}\n\n.respec-error-list li {\n padding: 0.4em 0.7em;\n color: rgb(92, 59, 0);\n border-bottom: thin solid rgb(255, 215, 215);\n}\n\n.respec-error-list li > p {\n margin: 0;\n padding: 0;\n display: inline-block;\n}\n\n#respec-overlay {\n display: block;\n position: fixed;\n z-index: 10000;\n top: 0px;\n left: 0px;\n height: 100%;\n width: 100%;\n background: #000;\n}\n\n.respec-show-overlay {\n transition: opacity 0.2s linear;\n opacity: 0.5;\n}\n\n.respec-hide-overlay {\n transition: opacity 0.2s linear;\n opacity: 0;\n}\n\n.respec-modal {\n display: block;\n position: fixed;\n z-index: 11000;\n margin: auto;\n top: 10%;\n background: #fff;\n border: 5px solid #666;\n min-width: 20%;\n width: 79%;\n padding: 0;\n max-height: 80%;\n overflow-y: auto;\n margin: 0 -0.5cm;\n}\n\n@media screen and (min-width: 78em) {\n .respec-modal {\n width: 62%;\n }\n}\n\n.respec-modal h3 {\n margin: 0;\n padding: 0.2em;\n text-align: center;\n color: black;\n background: linear-gradient(\n to bottom,\n rgba(238, 238, 238, 1) 0%,\n rgba(238, 238, 238, 1) 50%,\n rgba(204, 204, 204, 1) 100%\n );\n font-size: 1em;\n}\n\n.respec-modal .inside div p {\n padding-left: 1cm;\n}\n\n#respec-menu button.respec-option {\n background: white;\n padding: 0 0.2cm;\n border: none;\n width: 100%;\n text-align: left;\n font-size: inherit;\n padding: 1.2em 1.2em;\n}\n\n#respec-menu button.respec-option:hover,\n#respec-menu button:focus {\n background-color: #eeeeee;\n}\n\n.respec-cmd-icon {\n padding-right: 0.5em;\n}\n\n#respec-ui button.respec-option:last-child {\n border: none;\n border-radius: inherit;\n}\n\n.respec-offending-element {\n display: inline-block;\n position: relative;\n background: url(data:image/gif;base64,R0lGODdhBAADAPEAANv///8AAP///wAAACwAAAAABAADAEACBZQjmIAFADs=)\n bottom repeat-x;\n}\n\n@supports (text-decoration-style: wavy) {\n .respec-offending-element {\n background: none;\n text-decoration-line: underline;\n text-decoration-style: wavy;\n text-decoration-color: red;\n }\n}\n\n.respec-button-copy-paste {\n position: absolute;\n display: block;\n padding: 0px 8px;\n height: 28px;\n width: 40px;\n color: #333;\n white-space: nowrap;\n vertical-align: middle;\n cursor: pointer;\n background-color: #eee;\n background-image: linear-gradient(#fcfcfc, #eee);\n border: 1px solid rgb(144, 184, 222);\n border-radius: 0px 0px 3px 0;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n -webkit-appearance: none;\n margin: 0px 127px;\n border-left: 0;\n}\n\np + .respec-button-copy-paste {\n margin: 1px 127px;\n}\n\n#specref-ui {\n margin: 0 2%;\n margin-bottom: 0.5cm;\n}\n\n#specref-ui header {\n font-size: 0.7em;\n background-color: #eee;\n text-align: center;\n padding: 0.2cm;\n margin-bottom: 0.5cm;\n border-radius: 0 0 0.2cm 0.2cm;\n}\n\n#specref-ui header h1 {\n padding: 0;\n margin: 0;\n color: black;\n}\n\n#specref-ui p {\n padding: 0;\n margin: 0;\n font-size: 0.8em;\n text-align: center;\n}\n\n#specref-ui p.state {\n margin: 1cm;\n}\n\n#specref-ui .searchcomponent {\n font-size: 16px;\n display: grid;\n grid-template-columns: auto 2cm;\n}\n#specref-ui .searchcomponent:focus {\n}\n\n#specref-ui input,\n#specref-ui button {\n border: 0;\n padding: 6px 12px;\n}\n\n#specref-ui label {\n font-size: 0.6em;\n grid-column-end: 3;\n text-align: right;\n grid-column-start: 1;\n}\n\n#specref-ui input[type="search"] {\n -webkit-appearance: none;\n font-size: 16px;\n border-radius: 0.1cm 0 0 0.1cm;\n border: 1px solid rgb(204, 204, 204);\n}\n\n#specref-ui button[type="submit"] {\n color: white;\n border-radius: 0 0.1cm 0.1cm 0;\n background-color: rgb(51, 122, 183);\n}\n\n#specref-ui button[type="submit"]:hover {\n background-color: #286090;\n border-color: #204d74;\n}\n\n#specref-ui .result-stats {\n margin: 0;\n padding: 0;\n color: rgb(128, 128, 128);\n font-size: 0.7em;\n font-weight: bold;\n}\n\n#specref-ui .specref-results {\n font-size: 0.8em;\n}\n\n#specref-ui .specref-results dd + dt {\n margin-top: 0.51cm;\n}\n\n#specref-ui .specref-results a {\n text-transform: capitalize;\n}\n#specref-ui .specref-results .authors {\n display: block;\n color: #006621;\n}\n\n@media print {\n #respec-ui {\n display: none;\n }\n}\n'}),y_="undefined"!=typeof window?window:this,z_=function(e,t){var n=[],r=e.document,i=Object.getPrototypeOf,o=n.slice,a=n.concat,s=n.push,l=n.indexOf,c={},u=c.toString,d=c.hasOwnProperty,p=d.toString,f=p.call(Object),h={},m=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType},g=function(e){return null!=e&&e===e.window},b={type:!0,src:!0,noModule:!0};function y(e,t,n){var i,o=(t=t||r).createElement("script");if(o.text=e,n)for(i in b)n[i]&&(o[i]=n[i]);t.head.appendChild(o).parentNode.removeChild(o)}function v(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?c[u.call(e)]||"object":typeof e}var w="3.3.1 -ajax,-ajax/jsonp,-ajax/load,-ajax/parseXML,-ajax/script,-ajax/var/location,-ajax/var/nonce,-ajax/var/rquery,-ajax/xhr,-manipulation/_evalUrl,-event/ajax,-effects,-effects/Tween,-effects/animatedSelector",x=function(e,t){return new x.fn.init(e,t)},C=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;function k(e){var t=!!e&&"length"in e&&e.length,n=v(e);return!m(e)&&!g(e)&&("array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e)}x.fn=x.prototype={jquery:w,constructor:x,length:0,toArray:function(){return o.call(this)},get:function(e){return null==e?o.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=x.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return x.each(this,e)},map:function(e){return this.pushStack(x.map(this,function(t,n){return e.call(t,n,t)}))},slice:function(){return this.pushStack(o.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(n>=0&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:s,sort:n.sort,splice:n.splice},x.extend=x.fn.extend=function(){var e,t,n,r,i,o,a=arguments[0]||{},s=1,l=arguments.length,c=!1;for("boolean"==typeof a&&(c=a,a=arguments[s]||{},s++),"object"==typeof a||m(a)||(a={}),s===l&&(a=this,s--);s<l;s++)if(null!=(e=arguments[s]))for(t in e)n=a[t],a!==(r=e[t])&&(c&&r&&(x.isPlainObject(r)||(i=Array.isArray(r)))?(i?(i=!1,o=n&&Array.isArray(n)?n:[]):o=n&&x.isPlainObject(n)?n:{},a[t]=x.extend(c,o,r)):void 0!==r&&(a[t]=r));return a},x.extend({expando:"jQuery"+(w+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isPlainObject:function(e){var t,n;return!(!e||"[object Object]"!==u.call(e))&&(!(t=i(e))||"function"==typeof(n=d.call(t,"constructor")&&t.constructor)&&p.call(n)===f)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},globalEval:function(e){y(e)},each:function(e,t){var n,r=0;if(k(e))for(n=e.length;r<n&&!1!==t.call(e[r],r,e[r]);r++);else for(r in e)if(!1===t.call(e[r],r,e[r]))break;return e},trim:function(e){return null==e?"":(e+"").replace(C,"")},makeArray:function(e,t){var n=t||[];return null!=e&&(k(Object(e))?x.merge(n,"string"==typeof e?[e]:e):s.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:l.call(t,e,n)},merge:function(e,t){for(var n=+t.length,r=0,i=e.length;r<n;r++)e[i++]=t[r];return e.length=i,e},grep:function(e,t,n){for(var r=[],i=0,o=e.length,a=!n;i<o;i++)!t(e[i],i)!==a&&r.push(e[i]);return r},map:function(e,t,n){var r,i,o=0,s=[];if(k(e))for(r=e.length;o<r;o++)null!=(i=t(e[o],o,n))&&s.push(i);else for(o in e)null!=(i=t(e[o],o,n))&&s.push(i);return a.apply([],s)},guid:1,support:h}),"function"==typeof Symbol&&(x.fn[Symbol.iterator]=n[Symbol.iterator]),x.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(e,t){c["[object "+t+"]"]=t.toLowerCase()});var E=function(e){var t,n,r,i,o,a,s,l,c,u,d,p,f,h,m,g,b,y,v,w="sizzle"+1*new Date,x=e.document,C=0,k=0,E=ae(),T=ae(),S=ae(),A=function(e,t){return e===t&&(d=!0),0},$={}.hasOwnProperty,L=[],D=L.pop,j=L.push,N=L.push,_=L.slice,R=function(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1},P="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",M="[\\x20\\t\\r\\n\\f]",O="(?:\\\\.|[\\w-]|[^\0-\\xa0])+",I="\\["+M+"*("+O+")(?:"+M+"*([*^$|!~]?=)"+M+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+O+"))|)"+M+"*\\]",q=":("+O+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+I+")*)|.*)\\)|)",W=new RegExp(M+"+","g"),B=new RegExp("^"+M+"+|((?:^|[^\\\\])(?:\\\\.)*)"+M+"+$","g"),H=new RegExp("^"+M+"*,"+M+"*"),F=new RegExp("^"+M+"*([>+~]|"+M+")"+M+"*"),U=new RegExp("="+M+"*([^\\]'\"]*?)"+M+"*\\]","g"),z=new RegExp(q),G=new RegExp("^"+O+"$"),V={ID:new RegExp("^#("+O+")"),CLASS:new RegExp("^\\.("+O+")"),TAG:new RegExp("^("+O+"|[*])"),ATTR:new RegExp("^"+I),PSEUDO:new RegExp("^"+q),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+M+"*(even|odd|(([+-]|)(\\d*)n|)"+M+"*(?:([+-]|)"+M+"*(\\d+)|))"+M+"*\\)|)","i"),bool:new RegExp("^(?:"+P+")$","i"),needsContext:new RegExp("^"+M+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+M+"*((?:-\\d)?\\d*)"+M+"*\\)|)(?=[^-]|$)","i")},X=/^(?:input|select|textarea|button)$/i,Y=/^h\d$/i,Z=/^[^{]+\{\s*\[native \w/,Q=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,K=/[+~]/,J=new RegExp("\\\\([\\da-f]{1,6}"+M+"?|("+M+")|.)","ig"),ee=function(e,t,n){var r="0x"+t-65536;return r!=r||n?t:r<0?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,1023&r|56320)},te=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,ne=function(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},re=function(){p()},ie=ye(function(e){return!0===e.disabled&&("form"in e||"label"in e)},{dir:"parentNode",next:"legend"});try{N.apply(L=_.call(x.childNodes),x.childNodes),L[x.childNodes.length].nodeType}catch(e){N={apply:L.length?function(e,t){j.apply(e,_.call(t))}:function(e,t){for(var n=e.length,r=0;e[n++]=t[r++];);e.length=n-1}}}function oe(e,t,r,i){var o,s,c,u,d,h,b,y=t&&t.ownerDocument,C=t?t.nodeType:9;if(r=r||[],"string"!=typeof e||!e||1!==C&&9!==C&&11!==C)return r;if(!i&&((t?t.ownerDocument||t:x)!==f&&p(t),t=t||f,m)){if(11!==C&&(d=Q.exec(e)))if(o=d[1]){if(9===C){if(!(c=t.getElementById(o)))return r;if(c.id===o)return r.push(c),r}else if(y&&(c=y.getElementById(o))&&v(t,c)&&c.id===o)return r.push(c),r}else{if(d[2])return N.apply(r,t.getElementsByTagName(e)),r;if((o=d[3])&&n.getElementsByClassName&&t.getElementsByClassName)return N.apply(r,t.getElementsByClassName(o)),r}if(n.qsa&&!S[e+" "]&&(!g||!g.test(e))){if(1!==C)y=t,b=e;else if("object"!==t.nodeName.toLowerCase()){for((u=t.getAttribute("id"))?u=u.replace(te,ne):t.setAttribute("id",u=w),s=(h=a(e)).length;s--;)h[s]="#"+u+" "+be(h[s]);b=h.join(","),y=K.test(e)&&me(t.parentNode)||t}if(b)try{return N.apply(r,y.querySelectorAll(b)),r}catch(e){}finally{u===w&&t.removeAttribute("id")}}}return l(e.replace(B,"$1"),t,r,i)}function ae(){var e=[];return function t(n,i){return e.push(n+" ")>r.cacheLength&&delete t[e.shift()],t[n+" "]=i}}function se(e){return e[w]=!0,e}function le(e){var t=f.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function ce(e,t){for(var n=e.split("|"),i=n.length;i--;)r.attrHandle[n[i]]=t}function ue(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(r)return r;if(n)for(;n=n.nextSibling;)if(n===t)return-1;return e?1:-1}function de(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}function pe(e){return function(t){var n=t.nodeName.toLowerCase();return("input"===n||"button"===n)&&t.type===e}}function fe(e){return function(t){return"form"in t?t.parentNode&&!1===t.disabled?"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&ie(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function he(e){return se(function(t){return t=+t,se(function(n,r){for(var i,o=e([],n.length,t),a=o.length;a--;)n[i=o[a]]&&(n[i]=!(r[i]=n[i]))})})}function me(e){return e&&void 0!==e.getElementsByTagName&&e}n=oe.support={},o=oe.isXML=function(e){var t=e&&(e.ownerDocument||e).documentElement;return!!t&&"HTML"!==t.nodeName},p=oe.setDocument=function(e){var t,i,a=e?e.ownerDocument||e:x;return a!==f&&9===a.nodeType&&a.documentElement?(h=(f=a).documentElement,m=!o(f),x!==f&&(i=f.defaultView)&&i.top!==i&&(i.addEventListener?i.addEventListener("unload",re,!1):i.attachEvent&&i.attachEvent("onunload",re)),n.attributes=le(function(e){return e.className="i",!e.getAttribute("className")}),n.getElementsByTagName=le(function(e){return e.appendChild(f.createComment("")),!e.getElementsByTagName("*").length}),n.getElementsByClassName=Z.test(f.getElementsByClassName),n.getById=le(function(e){return h.appendChild(e).id=w,!f.getElementsByName||!f.getElementsByName(w).length}),n.getById?(r.filter.ID=function(e){var t=e.replace(J,ee);return function(e){return e.getAttribute("id")===t}},r.find.ID=function(e,t){if(void 0!==t.getElementById&&m){var n=t.getElementById(e);return n?[n]:[]}}):(r.filter.ID=function(e){var t=e.replace(J,ee);return function(e){var n=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}},r.find.ID=function(e,t){if(void 0!==t.getElementById&&m){var n,r,i,o=t.getElementById(e);if(o){if((n=o.getAttributeNode("id"))&&n.value===e)return[o];for(i=t.getElementsByName(e),r=0;o=i[r++];)if((n=o.getAttributeNode("id"))&&n.value===e)return[o]}return[]}}),r.find.TAG=n.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):n.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,r=[],i=0,o=t.getElementsByTagName(e);if("*"===e){for(;n=o[i++];)1===n.nodeType&&r.push(n);return r}return o},r.find.CLASS=n.getElementsByClassName&&function(e,t){if(void 0!==t.getElementsByClassName&&m)return t.getElementsByClassName(e)},b=[],g=[],(n.qsa=Z.test(f.querySelectorAll))&&(le(function(e){h.appendChild(e).innerHTML="<a id='"+w+"'></a><select id='"+w+"-\r\\' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&g.push("[*^$]="+M+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||g.push("\\["+M+"*(?:value|"+P+")"),e.querySelectorAll("[id~="+w+"-]").length||g.push("~="),e.querySelectorAll(":checked").length||g.push(":checked"),e.querySelectorAll("a#"+w+"+*").length||g.push(".#.+[+~]")}),le(function(e){e.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var t=f.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&g.push("name"+M+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&g.push(":enabled",":disabled"),h.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&g.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),g.push(",.*:")})),(n.matchesSelector=Z.test(y=h.matches||h.webkitMatchesSelector||h.mozMatchesSelector||h.oMatchesSelector||h.msMatchesSelector))&&le(function(e){n.disconnectedMatch=y.call(e,"*"),y.call(e,"[s!='']:x"),b.push("!=",q)}),g=g.length&&new RegExp(g.join("|")),b=b.length&&new RegExp(b.join("|")),t=Z.test(h.compareDocumentPosition),v=t||Z.test(h.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},A=t?function(e,t){if(e===t)return d=!0,0;var r=!e.compareDocumentPosition-!t.compareDocumentPosition;return r||(1&(r=(e.ownerDocument||e)===(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!n.sortDetached&&t.compareDocumentPosition(e)===r?e===f||e.ownerDocument===x&&v(x,e)?-1:t===f||t.ownerDocument===x&&v(x,t)?1:u?R(u,e)-R(u,t):0:4&r?-1:1)}:function(e,t){if(e===t)return d=!0,0;var n,r=0,i=e.parentNode,o=t.parentNode,a=[e],s=[t];if(!i||!o)return e===f?-1:t===f?1:i?-1:o?1:u?R(u,e)-R(u,t):0;if(i===o)return ue(e,t);for(n=e;n=n.parentNode;)a.unshift(n);for(n=t;n=n.parentNode;)s.unshift(n);for(;a[r]===s[r];)r++;return r?ue(a[r],s[r]):a[r]===x?-1:s[r]===x?1:0},f):f},oe.matches=function(e,t){return oe(e,null,null,t)},oe.matchesSelector=function(e,t){if((e.ownerDocument||e)!==f&&p(e),t=t.replace(U,"='$1']"),n.matchesSelector&&m&&!S[t+" "]&&(!b||!b.test(t))&&(!g||!g.test(t)))try{var r=y.call(e,t);if(r||n.disconnectedMatch||e.document&&11!==e.document.nodeType)return r}catch(e){}return oe(t,f,null,[e]).length>0},oe.contains=function(e,t){return(e.ownerDocument||e)!==f&&p(e),v(e,t)},oe.attr=function(e,t){(e.ownerDocument||e)!==f&&p(e);var i=r.attrHandle[t.toLowerCase()],o=i&&$.call(r.attrHandle,t.toLowerCase())?i(e,t,!m):void 0;return void 0!==o?o:n.attributes||!m?e.getAttribute(t):(o=e.getAttributeNode(t))&&o.specified?o.value:null},oe.escape=function(e){return(e+"").replace(te,ne)},oe.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},oe.uniqueSort=function(e){var t,r=[],i=0,o=0;if(d=!n.detectDuplicates,u=!n.sortStable&&e.slice(0),e.sort(A),d){for(;t=e[o++];)t===e[o]&&(i=r.push(o));for(;i--;)e.splice(r[i],1)}return u=null,e},i=oe.getText=function(e){var t,n="",r=0,o=e.nodeType;if(o){if(1===o||9===o||11===o){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)n+=i(e)}else if(3===o||4===o)return e.nodeValue}else for(;t=e[r++];)n+=i(t);return n},(r=oe.selectors={cacheLength:50,createPseudo:se,match:V,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(J,ee),e[3]=(e[3]||e[4]||e[5]||"").replace(J,ee),"~="===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]||oe.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]&&oe.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return V.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&z.test(n)&&(t=a(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(J,ee).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=E[e+" "];return t||(t=new RegExp("(^|"+M+")"+e+"("+M+"|$)"))&&E(e,function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(e,t,n){return function(r){var i=oe.attr(r,e);return null==i?"!="===t:!t||(i+="","="===t?i===n:"!="===t?i!==n:"^="===t?n&&0===i.indexOf(n):"*="===t?n&&i.indexOf(n)>-1:"$="===t?n&&i.slice(-n.length)===n:"~="===t?(" "+i.replace(W," ")+" ").indexOf(n)>-1:"|="===t&&(i===n||i.slice(0,n.length+1)===n+"-"))}},CHILD:function(e,t,n,r,i){var o="nth"!==e.slice(0,3),a="last"!==e.slice(-4),s="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=o!==a?"nextSibling":"previousSibling",g=t.parentNode,b=s&&t.nodeName.toLowerCase(),y=!l&&!s,v=!1;if(g){if(o){for(;m;){for(p=t;p=p[m];)if(s?p.nodeName.toLowerCase()===b:1===p.nodeType)return!1;h=m="only"===e&&!h&&"nextSibling"}return!0}if(h=[a?g.firstChild:g.lastChild],a&&y){for(v=(f=(c=(u=(d=(p=g)[w]||(p[w]={}))[p.uniqueID]||(d[p.uniqueID]={}))[e]||[])[0]===C&&c[1])&&c[2],p=f&&g.childNodes[f];p=++f&&p&&p[m]||(v=f=0)||h.pop();)if(1===p.nodeType&&++v&&p===t){u[e]=[C,f,v];break}}else if(y&&(v=f=(c=(u=(d=(p=t)[w]||(p[w]={}))[p.uniqueID]||(d[p.uniqueID]={}))[e]||[])[0]===C&&c[1]),!1===v)for(;(p=++f&&p&&p[m]||(v=f=0)||h.pop())&&((s?p.nodeName.toLowerCase()!==b:1!==p.nodeType)||!++v||(y&&((u=(d=p[w]||(p[w]={}))[p.uniqueID]||(d[p.uniqueID]={}))[e]=[C,v]),p!==t)););return(v-=i)===r||v%r==0&&v/r>=0}}},PSEUDO:function(e,t){var n,i=r.pseudos[e]||r.setFilters[e.toLowerCase()]||oe.error("unsupported pseudo: "+e);return i[w]?i(t):i.length>1?(n=[e,e,"",t],r.setFilters.hasOwnProperty(e.toLowerCase())?se(function(e,n){for(var r,o=i(e,t),a=o.length;a--;)e[r=R(e,o[a])]=!(n[r]=o[a])}):function(e){return i(e,0,n)}):i}},pseudos:{not:se(function(e){var t=[],n=[],r=s(e.replace(B,"$1"));return r[w]?se(function(e,t,n,i){for(var o,a=r(e,null,i,[]),s=e.length;s--;)(o=a[s])&&(e[s]=!(t[s]=o))}):function(e,i,o){return t[0]=e,r(t,null,o,n),t[0]=null,!n.pop()}}),has:se(function(e){return function(t){return oe(e,t).length>0}}),contains:se(function(e){return e=e.replace(J,ee),function(t){return(t.textContent||t.innerText||i(t)).indexOf(e)>-1}}),lang:se(function(e){return G.test(e||"")||oe.error("unsupported lang: "+e),e=e.replace(J,ee).toLowerCase(),function(t){var n;do{if(n=m?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(n=n.toLowerCase())===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===h},focus:function(e){return e===f.activeElement&&(!f.hasFocus||f.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:fe(!1),disabled:fe(!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,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!r.pseudos.empty(e)},header:function(e){return Y.test(e.nodeName)},input:function(e){return X.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:he(function(){return[0]}),last:he(function(e,t){return[t-1]}),eq:he(function(e,t,n){return[n<0?n+t:n]}),even:he(function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e}),odd:he(function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e}),lt:he(function(e,t,n){for(var r=n<0?n+t:n;--r>=0;)e.push(r);return e}),gt:he(function(e,t,n){for(var r=n<0?n+t:n;++r<t;)e.push(r);return e})}}).pseudos.nth=r.pseudos.eq;for(t in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})r.pseudos[t]=de(t);for(t in{submit:!0,reset:!0})r.pseudos[t]=pe(t);function ge(){}function be(e){for(var t=0,n=e.length,r="";t<n;t++)r+=e[t].value;return r}function ye(e,t,n){var r=t.dir,i=t.next,o=i||r,a=n&&"parentNode"===o,s=k++;return t.first?function(t,n,i){for(;t=t[r];)if(1===t.nodeType||a)return e(t,n,i);return!1}:function(t,n,l){var c,u,d,p=[C,s];if(l){for(;t=t[r];)if((1===t.nodeType||a)&&e(t,n,l))return!0}else for(;t=t[r];)if(1===t.nodeType||a)if(u=(d=t[w]||(t[w]={}))[t.uniqueID]||(d[t.uniqueID]={}),i&&i===t.nodeName.toLowerCase())t=t[r]||t;else{if((c=u[o])&&c[0]===C&&c[1]===s)return p[2]=c[2];if(u[o]=p,p[2]=e(t,n,l))return!0}return!1}}function ve(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 we(e,t,n,r,i){for(var o,a=[],s=0,l=e.length,c=null!=t;s<l;s++)(o=e[s])&&(n&&!n(o,r,i)||(a.push(o),c&&t.push(s)));return a}function xe(e,t,n,r,i,o){return r&&!r[w]&&(r=xe(r)),i&&!i[w]&&(i=xe(i,o)),se(function(o,a,s,l){var c,u,d,p=[],f=[],h=a.length,m=o||function(e,t,n){for(var r=0,i=t.length;r<i;r++)oe(e,t[r],n);return n}(t||"*",s.nodeType?[s]:s,[]),g=!e||!o&&t?m:we(m,p,e,s,l),b=n?i||(o?e:h||r)?[]:a:g;if(n&&n(g,b,s,l),r)for(c=we(b,f),r(c,[],s,l),u=c.length;u--;)(d=c[u])&&(b[f[u]]=!(g[f[u]]=d));if(o){if(i||e){if(i){for(c=[],u=b.length;u--;)(d=b[u])&&c.push(g[u]=d);i(null,b=[],c,l)}for(u=b.length;u--;)(d=b[u])&&(c=i?R(o,d):p[u])>-1&&(o[c]=!(a[c]=d))}}else b=we(b===a?b.splice(h,b.length):b),i?i(null,a,b,l):N.apply(a,b)})}function Ce(e){for(var t,n,i,o=e.length,a=r.relative[e[0].type],s=a||r.relative[" "],l=a?1:0,u=ye(function(e){return e===t},s,!0),d=ye(function(e){return R(t,e)>-1},s,!0),p=[function(e,n,r){var i=!a&&(r||n!==c)||((t=n).nodeType?u(e,n,r):d(e,n,r));return t=null,i}];l<o;l++)if(n=r.relative[e[l].type])p=[ye(ve(p),n)];else{if((n=r.filter[e[l].type].apply(null,e[l].matches))[w]){for(i=++l;i<o&&!r.relative[e[i].type];i++);return xe(l>1&&ve(p),l>1&&be(e.slice(0,l-1).concat({value:" "===e[l-2].type?"*":""})).replace(B,"$1"),n,l<i&&Ce(e.slice(l,i)),i<o&&Ce(e=e.slice(i)),i<o&&be(e))}p.push(n)}return ve(p)}return ge.prototype=r.filters=r.pseudos,r.setFilters=new ge,a=oe.tokenize=function(e,t){var n,i,o,a,s,l,c,u=T[e+" "];if(u)return t?0:u.slice(0);for(s=e,l=[],c=r.preFilter;s;){n&&!(i=H.exec(s))||(i&&(s=s.slice(i[0].length)||s),l.push(o=[])),n=!1,(i=F.exec(s))&&(n=i.shift(),o.push({value:n,type:i[0].replace(B," ")}),s=s.slice(n.length));for(a in r.filter)!(i=V[a].exec(s))||c[a]&&!(i=c[a](i))||(n=i.shift(),o.push({value:n,type:a,matches:i}),s=s.slice(n.length));if(!n)break}return t?s.length:s?oe.error(e):T(e,l).slice(0)},s=oe.compile=function(e,t){var n,i,o,s,l,u,d=[],h=[],g=S[e+" "];if(!g){for(t||(t=a(e)),n=t.length;n--;)(g=Ce(t[n]))[w]?d.push(g):h.push(g);(g=S(e,(i=h,s=(o=d).length>0,l=i.length>0,u=function(e,t,n,a,u){var d,h,g,b=0,y="0",v=e&&[],w=[],x=c,k=e||l&&r.find.TAG("*",u),E=C+=null==x?1:Math.random()||.1,T=k.length;for(u&&(c=t===f||t||u);y!==T&&null!=(d=k[y]);y++){if(l&&d){for(h=0,t||d.ownerDocument===f||(p(d),n=!m);g=i[h++];)if(g(d,t||f,n)){a.push(d);break}u&&(C=E)}s&&((d=!g&&d)&&b--,e&&v.push(d))}if(b+=y,s&&y!==b){for(h=0;g=o[h++];)g(v,w,t,n);if(e){if(b>0)for(;y--;)v[y]||w[y]||(w[y]=D.call(a));w=we(w)}N.apply(a,w),u&&!e&&w.length>0&&b+o.length>1&&oe.uniqueSort(a)}return u&&(C=E,c=x),v},s?se(u):u))).selector=e}return g},l=oe.select=function(e,t,n,i){var o,l,c,u,d,p="function"==typeof e&&e,f=!i&&a(e=p.selector||e);if(n=n||[],1===f.length){if((l=f[0]=f[0].slice(0)).length>2&&"ID"===(c=l[0]).type&&9===t.nodeType&&m&&r.relative[l[1].type]){if(!(t=(r.find.ID(c.matches[0].replace(J,ee),t)||[])[0]))return n;p&&(t=t.parentNode),e=e.slice(l.shift().value.length)}for(o=V.needsContext.test(e)?0:l.length;o--&&(c=l[o],!r.relative[u=c.type]);)if((d=r.find[u])&&(i=d(c.matches[0].replace(J,ee),K.test(l[0].type)&&me(t.parentNode)||t))){if(l.splice(o,1),!(e=i.length&&be(l)))return N.apply(n,i),n;break}}return(p||s(e,f))(i,t,!m,n,!t||K.test(e)&&me(t.parentNode)||t),n},n.sortStable=w.split("").sort(A).join("")===w,n.detectDuplicates=!!d,p(),n.sortDetached=le(function(e){return 1&e.compareDocumentPosition(f.createElement("fieldset"))}),le(function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")})||ce("type|href|height|width",function(e,t,n){if(!n)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)}),n.attributes&&le(function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")})||ce("value",function(e,t,n){if(!n&&"input"===e.nodeName.toLowerCase())return e.defaultValue}),le(function(e){return null==e.getAttribute("disabled")})||ce(P,function(e,t,n){var r;if(!n)return!0===e[t]?t.toLowerCase():(r=e.getAttributeNode(t))&&r.specified?r.value:null}),oe}(e);x.find=E,x.expr=E.selectors,x.expr[":"]=x.expr.pseudos,x.uniqueSort=x.unique=E.uniqueSort,x.text=E.getText,x.isXMLDoc=E.isXML,x.contains=E.contains,x.escapeSelector=E.escape;var T=function(e,t,n){for(var r=[],i=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(i&&x(e).is(n))break;r.push(e)}return r},S=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},A=x.expr.match.needsContext;function $(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}var L=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function D(e,t,n){return m(t)?x.grep(e,function(e,r){return!!t.call(e,r,e)!==n}):t.nodeType?x.grep(e,function(e){return e===t!==n}):"string"!=typeof t?x.grep(e,function(e){return l.call(t,e)>-1!==n}):x.filter(t,e,n)}x.filter=function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?x.find.matchesSelector(r,e)?[r]:[]:x.find.matches(e,x.grep(t,function(e){return 1===e.nodeType}))},x.fn.extend({find:function(e){var t,n,r=this.length,i=this;if("string"!=typeof e)return this.pushStack(x(e).filter(function(){for(t=0;t<r;t++)if(x.contains(i[t],this))return!0}));for(n=this.pushStack([]),t=0;t<r;t++)x.find(e,i[t],n);return r>1?x.uniqueSort(n):n},filter:function(e){return this.pushStack(D(this,e||[],!1))},not:function(e){return this.pushStack(D(this,e||[],!0))},is:function(e){return!!D(this,"string"==typeof e&&A.test(e)?x(e):e||[],!1).length}});var j,N=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(x.fn.init=function(e,t,n){var i,o;if(!e)return this;if(n=n||j,"string"==typeof e){if(!(i="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:N.exec(e))||!i[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(i[1]){if(t=t instanceof x?t[0]:t,x.merge(this,x.parseHTML(i[1],t&&t.nodeType?t.ownerDocument||t:r,!0)),L.test(i[1])&&x.isPlainObject(t))for(i in t)m(this[i])?this[i](t[i]):this.attr(i,t[i]);return this}return(o=r.getElementById(i[2]))&&(this[0]=o,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):m(e)?void 0!==n.ready?n.ready(e):e(x):x.makeArray(e,this)}).prototype=x.fn,j=x(r);var _=/^(?:parents|prev(?:Until|All))/,R={children:!0,contents:!0,next:!0,prev:!0};function P(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}x.fn.extend({has:function(e){var t=x(e,this),n=t.length;return this.filter(function(){for(var e=0;e<n;e++)if(x.contains(this,t[e]))return!0})},closest:function(e,t){var n,r=0,i=this.length,o=[],a="string"!=typeof e&&x(e);if(!A.test(e))for(;r<i;r++)for(n=this[r];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(a?a.index(n)>-1:1===n.nodeType&&x.find.matchesSelector(n,e))){o.push(n);break}return this.pushStack(o.length>1?x.uniqueSort(o):o)},index:function(e){return e?"string"==typeof e?l.call(x(e),this[0]):l.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(x.uniqueSort(x.merge(this.get(),x(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),x.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return T(e,"parentNode")},parentsUntil:function(e,t,n){return T(e,"parentNode",n)},next:function(e){return P(e,"nextSibling")},prev:function(e){return P(e,"previousSibling")},nextAll:function(e){return T(e,"nextSibling")},prevAll:function(e){return T(e,"previousSibling")},nextUntil:function(e,t,n){return T(e,"nextSibling",n)},prevUntil:function(e,t,n){return T(e,"previousSibling",n)},siblings:function(e){return S((e.parentNode||{}).firstChild,e)},children:function(e){return S(e.firstChild)},contents:function(e){return $(e,"iframe")?e.contentDocument:($(e,"template")&&(e=e.content||e),x.merge([],e.childNodes))}},function(e,t){x.fn[e]=function(n,r){var i=x.map(this,t,n);return"Until"!==e.slice(-5)&&(r=n),r&&"string"==typeof r&&(i=x.filter(r,i)),this.length>1&&(R[e]||x.uniqueSort(i),_.test(e)&&i.reverse()),this.pushStack(i)}});var M=/[^\x20\t\r\n\f]+/g;function O(e){return e}function I(e){throw e}function q(e,t,n,r){var i;try{e&&m(i=e.promise)?i.call(e).done(t).fail(n):e&&m(i=e.then)?i.call(e,t,n):t.apply(void 0,[e].slice(r))}catch(e){n.apply(void 0,[e])}}x.Callbacks=function(e){var t,n;e="string"==typeof e?(t=e,n={},x.each(t.match(M)||[],function(e,t){n[t]=!0}),n):x.extend({},e);var r,i,o,a,s=[],l=[],c=-1,u=function(){for(a=a||e.once,o=r=!0;l.length;c=-1)for(i=l.shift();++c<s.length;)!1===s[c].apply(i[0],i[1])&&e.stopOnFalse&&(c=s.length,i=!1);e.memory||(i=!1),r=!1,a&&(s=i?[]:"")},d={add:function(){return s&&(i&&!r&&(c=s.length-1,l.push(i)),function t(n){x.each(n,function(n,r){m(r)?e.unique&&d.has(r)||s.push(r):r&&r.length&&"string"!==v(r)&&t(r)})}(arguments),i&&!r&&u()),this},remove:function(){return x.each(arguments,function(e,t){for(var n;(n=x.inArray(t,s,n))>-1;)s.splice(n,1),n<=c&&c--}),this},has:function(e){return e?x.inArray(e,s)>-1:s.length>0},empty:function(){return s&&(s=[]),this},disable:function(){return a=l=[],s=i="",this},disabled:function(){return!s},lock:function(){return a=l=[],i||r||(s=i=""),this},locked:function(){return!!a},fireWith:function(e,t){return a||(t=[e,(t=t||[]).slice?t.slice():t],l.push(t),r||u()),this},fire:function(){return d.fireWith(this,arguments),this},fired:function(){return!!o}};return d},x.extend({Deferred:function(t){var n=[["notify","progress",x.Callbacks("memory"),x.Callbacks("memory"),2],["resolve","done",x.Callbacks("once memory"),x.Callbacks("once memory"),0,"resolved"],["reject","fail",x.Callbacks("once memory"),x.Callbacks("once memory"),1,"rejected"]],r="pending",i={state:function(){return r},always:function(){return o.done(arguments).fail(arguments),this},catch:function(e){return i.then(null,e)},pipe:function(){var e=arguments;return x.Deferred(function(t){x.each(n,function(n,r){var i=m(e[r[4]])&&e[r[4]];o[r[1]](function(){var e=i&&i.apply(this,arguments);e&&m(e.promise)?e.promise().progress(t.notify).done(t.resolve).fail(t.reject):t[r[0]+"With"](this,i?[e]:arguments)})}),e=null}).promise()},then:function(t,r,i){var o=0;function a(t,n,r,i){return function(){var s=this,l=arguments,c=function(){var e,c;if(!(t<o)){if((e=r.apply(s,l))===n.promise())throw new TypeError("Thenable self-resolution");c=e&&("object"==typeof e||"function"==typeof e)&&e.then,m(c)?i?c.call(e,a(o,n,O,i),a(o,n,I,i)):(o++,c.call(e,a(o,n,O,i),a(o,n,I,i),a(o,n,O,n.notifyWith))):(r!==O&&(s=void 0,l=[e]),(i||n.resolveWith)(s,l))}},u=i?c:function(){try{c()}catch(e){x.Deferred.exceptionHook&&x.Deferred.exceptionHook(e,u.stackTrace),t+1>=o&&(r!==I&&(s=void 0,l=[e]),n.rejectWith(s,l))}};t?u():(x.Deferred.getStackHook&&(u.stackTrace=x.Deferred.getStackHook()),e.setTimeout(u))}}return x.Deferred(function(e){n[0][3].add(a(0,e,m(i)?i:O,e.notifyWith)),n[1][3].add(a(0,e,m(t)?t:O)),n[2][3].add(a(0,e,m(r)?r:I))}).promise()},promise:function(e){return null!=e?x.extend(e,i):i}},o={};return x.each(n,function(e,t){var a=t[2],s=t[5];i[t[1]]=a.add,s&&a.add(function(){r=s},n[3-e][2].disable,n[3-e][3].disable,n[0][2].lock,n[0][3].lock),a.add(t[3].fire),o[t[0]]=function(){return o[t[0]+"With"](this===o?void 0:this,arguments),this},o[t[0]+"With"]=a.fireWith}),i.promise(o),t&&t.call(o,o),o},when:function(e){var t=arguments.length,n=t,r=Array(n),i=o.call(arguments),a=x.Deferred(),s=function(e){return function(n){r[e]=this,i[e]=arguments.length>1?o.call(arguments):n,--t||a.resolveWith(r,i)}};if(t<=1&&(q(e,a.done(s(n)).resolve,a.reject,!t),"pending"===a.state()||m(i[n]&&i[n].then)))return a.then();for(;n--;)q(i[n],s(n),a.reject);return a.promise()}});var W=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;x.Deferred.exceptionHook=function(t,n){e.console&&e.console.warn&&t&&W.test(t.name)&&e.console.warn("jQuery.Deferred exception: "+t.message,t.stack,n)},x.readyException=function(t){e.setTimeout(function(){throw t})};var B=x.Deferred();function H(){r.removeEventListener("DOMContentLoaded",H),e.removeEventListener("load",H),x.ready()}x.fn.ready=function(e){return B.then(e).catch(function(e){x.readyException(e)}),this},x.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--x.readyWait:x.isReady)||(x.isReady=!0,!0!==e&&--x.readyWait>0||B.resolveWith(r,[x]))}}),x.ready.then=B.then,"complete"===r.readyState||"loading"!==r.readyState&&!r.documentElement.doScroll?e.setTimeout(x.ready):(r.addEventListener("DOMContentLoaded",H),e.addEventListener("load",H));var F=function(e,t,n,r,i,o,a){var s=0,l=e.length,c=null==n;if("object"===v(n)){i=!0;for(s in n)F(e,t,s,n[s],!0,o,a)}else if(void 0!==r&&(i=!0,m(r)||(a=!0),c&&(a?(t.call(e,r),t=null):(c=t,t=function(e,t,n){return c.call(x(e),n)})),t))for(;s<l;s++)t(e[s],n,a?r:r.call(e[s],s,t(e[s],n)));return i?e:c?t.call(e):l?t(e[0],n):o},U=/^-ms-/,z=/-([a-z])/g;function G(e,t){return t.toUpperCase()}function V(e){return e.replace(U,"ms-").replace(z,G)}var X=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};function Y(){this.expando=x.expando+Y.uid++}Y.uid=1,Y.prototype={cache:function(e){var t=e[this.expando];return t||(t={},X(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var r,i=this.cache(e);if("string"==typeof t)i[V(t)]=n;else for(r in t)i[V(r)]=t[r];return i},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][V(t)]},access:function(e,t,n){return void 0===t||t&&"string"==typeof t&&void 0===n?this.get(e,t):(this.set(e,t,n),void 0!==n?n:t)},remove:function(e,t){var n,r=e[this.expando];if(void 0!==r){if(void 0!==t){n=(t=Array.isArray(t)?t.map(V):(t=V(t))in r?[t]:t.match(M)||[]).length;for(;n--;)delete r[t[n]]}(void 0===t||x.isEmptyObject(r))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!x.isEmptyObject(t)}};var Z=new Y,Q=new Y,K=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,J=/[A-Z]/g;function ee(e,t,n){var r,i;if(void 0===n&&1===e.nodeType)if(r="data-"+t.replace(J,"-$&").toLowerCase(),"string"==typeof(n=e.getAttribute(r))){try{n="true"===(i=n)||"false"!==i&&("null"===i?null:i===+i+""?+i:K.test(i)?JSON.parse(i):i)}catch(e){}Q.set(e,t,n)}else n=void 0;return n}x.extend({hasData:function(e){return Q.hasData(e)||Z.hasData(e)},data:function(e,t,n){return Q.access(e,t,n)},removeData:function(e,t){Q.remove(e,t)},_data:function(e,t,n){return Z.access(e,t,n)},_removeData:function(e,t){Z.remove(e,t)}}),x.fn.extend({data:function(e,t){var n,r,i,o=this[0],a=o&&o.attributes;if(void 0===e){if(this.length&&(i=Q.get(o),1===o.nodeType&&!Z.get(o,"hasDataAttrs"))){for(n=a.length;n--;)a[n]&&0===(r=a[n].name).indexOf("data-")&&(r=V(r.slice(5)),ee(o,r,i[r]));Z.set(o,"hasDataAttrs",!0)}return i}return"object"==typeof e?this.each(function(){Q.set(this,e)}):F(this,function(t){var n;if(o&&void 0===t)return void 0!==(n=Q.get(o,e))?n:void 0!==(n=ee(o,e))?n:void 0;this.each(function(){Q.set(this,e,t)})},null,t,arguments.length>1,null,!0)},removeData:function(e){return this.each(function(){Q.remove(this,e)})}}),x.extend({queue:function(e,t,n){var r;if(e)return t=(t||"fx")+"queue",r=Z.get(e,t),n&&(!r||Array.isArray(n)?r=Z.access(e,t,x.makeArray(n)):r.push(n)),r||[]},dequeue:function(e,t){t=t||"fx";var n=x.queue(e,t),r=n.length,i=n.shift(),o=x._queueHooks(e,t);"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===t&&n.unshift("inprogress"),delete o.stop,i.call(e,function(){x.dequeue(e,t)},o)),!r&&o&&o.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return Z.get(e,n)||Z.access(e,n,{empty:x.Callbacks("once memory").add(function(){Z.remove(e,[t+"queue",n])})})}}),x.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n--),arguments.length<n?x.queue(this[0],e):void 0===t?this:this.each(function(){var n=x.queue(this,e,t);x._queueHooks(this,e),"fx"===e&&"inprogress"!==n[0]&&x.dequeue(this,e)})},dequeue:function(e){return this.each(function(){x.dequeue(this,e)})},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,r=1,i=x.Deferred(),o=this,a=this.length,s=function(){--r||i.resolveWith(o,[o])};for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";a--;)(n=Z.get(o[a],e+"queueHooks"))&&n.empty&&(r++,n.empty.add(s));return s(),i.promise(t)}});var te=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,ne=new RegExp("^(?:([+-])=|)("+te+")([a-z%]*)$","i"),re=["Top","Right","Bottom","Left"],ie=function(e,t){return"none"===(e=t||e).style.display||""===e.style.display&&x.contains(e.ownerDocument,e)&&"none"===x.css(e,"display")},oe=function(e,t,n,r){var i,o,a={};for(o in t)a[o]=e.style[o],e.style[o]=t[o];i=n.apply(e,r||[]);for(o in t)e.style[o]=a[o];return i};var ae={};function se(e,t){for(var n,r,i,o,a,s,l,c=[],u=0,d=e.length;u<d;u++)(r=e[u]).style&&(n=r.style.display,t?("none"===n&&(c[u]=Z.get(r,"display")||null,c[u]||(r.style.display="")),""===r.style.display&&ie(r)&&(c[u]=(o=void 0,a=void 0,void 0,l=void 0,a=(i=r).ownerDocument,s=i.nodeName,(l=ae[s])||(o=a.body.appendChild(a.createElement(s)),l=x.css(o,"display"),o.parentNode.removeChild(o),"none"===l&&(l="block"),ae[s]=l,l)))):"none"!==n&&(c[u]="none",Z.set(r,"display",n)));for(u=0;u<d;u++)null!=c[u]&&(e[u].style.display=c[u]);return e}x.fn.extend({show:function(){return se(this,!0)},hide:function(){return se(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each(function(){ie(this)?x(this).show():x(this).hide()})}});var le=/^(?:checkbox|radio)$/i,ce=/<([a-z][^\/\0>\x20\t\r\n\f]+)/i,ue=/^$|^module$|\/(?:java|ecma)script/i,de={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,"",""]};function pe(e,t){var n;return n=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&$(e,t)?x.merge([e],n):n}function fe(e,t){for(var n=0,r=e.length;n<r;n++)Z.set(e[n],"globalEval",!t||Z.get(t[n],"globalEval"))}de.optgroup=de.option,de.tbody=de.tfoot=de.colgroup=de.caption=de.thead,de.th=de.td;var he,me,ge=/<|&#?\w+;/;function be(e,t,n,r,i){for(var o,a,s,l,c,u,d=t.createDocumentFragment(),p=[],f=0,h=e.length;f<h;f++)if((o=e[f])||0===o)if("object"===v(o))x.merge(p,o.nodeType?[o]:o);else if(ge.test(o)){for(a=a||d.appendChild(t.createElement("div")),s=(ce.exec(o)||["",""])[1].toLowerCase(),l=de[s]||de._default,a.innerHTML=l[1]+x.htmlPrefilter(o)+l[2],u=l[0];u--;)a=a.lastChild;x.merge(p,a.childNodes),(a=d.firstChild).textContent=""}else p.push(t.createTextNode(o));for(d.textContent="",f=0;o=p[f++];)if(r&&x.inArray(o,r)>-1)i&&i.push(o);else if(c=x.contains(o.ownerDocument,o),a=pe(d.appendChild(o),"script"),c&&fe(a),n)for(u=0;o=a[u++];)ue.test(o.type||"")&&n.push(o);return d}he=r.createDocumentFragment().appendChild(r.createElement("div")),(me=r.createElement("input")).setAttribute("type","radio"),me.setAttribute("checked","checked"),me.setAttribute("name","t"),he.appendChild(me),h.checkClone=he.cloneNode(!0).cloneNode(!0).lastChild.checked,he.innerHTML="<textarea>x</textarea>",h.noCloneChecked=!!he.cloneNode(!0).lastChild.defaultValue;var ye=r.documentElement,ve=/^key/,we=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,xe=/^([^.]*)(?:\.(.+)|)/;function Ce(){return!0}function ke(){return!1}function Ee(){try{return r.activeElement}catch(e){}}function Te(e,t,n,r,i,o){var a,s;if("object"==typeof t){"string"!=typeof n&&(r=r||n,n=void 0);for(s in t)Te(e,s,n,r,t[s],o);return e}if(null==r&&null==i?(i=n,r=n=void 0):null==i&&("string"==typeof n?(i=r,r=void 0):(i=r,r=n,n=void 0)),!1===i)i=ke;else if(!i)return e;return 1===o&&(a=i,(i=function(e){return x().off(e),a.apply(this,arguments)}).guid=a.guid||(a.guid=x.guid++)),e.each(function(){x.event.add(this,t,i,r,n)})}x.event={global:{},add:function(e,t,n,r,i){var o,a,s,l,c,u,d,p,f,h,m,g=Z.get(e);if(g)for(n.handler&&(n=(o=n).handler,i=o.selector),i&&x.find.matchesSelector(ye,i),n.guid||(n.guid=x.guid++),(l=g.events)||(l=g.events={}),(a=g.handle)||(a=g.handle=function(t){return void 0!==x&&x.event.triggered!==t.type?x.event.dispatch.apply(e,arguments):void 0}),c=(t=(t||"").match(M)||[""]).length;c--;)f=m=(s=xe.exec(t[c])||[])[1],h=(s[2]||"").split(".").sort(),f&&(d=x.event.special[f]||{},f=(i?d.delegateType:d.bindType)||f,d=x.event.special[f]||{},u=x.extend({type:f,origType:m,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&x.expr.match.needsContext.test(i),namespace:h.join(".")},o),(p=l[f])||((p=l[f]=[]).delegateCount=0,d.setup&&!1!==d.setup.call(e,r,h,a)||e.addEventListener&&e.addEventListener(f,a)),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),x.event.global[f]=!0)},remove:function(e,t,n,r,i){var o,a,s,l,c,u,d,p,f,h,m,g=Z.hasData(e)&&Z.get(e);if(g&&(l=g.events)){for(c=(t=(t||"").match(M)||[""]).length;c--;)if(f=m=(s=xe.exec(t[c])||[])[1],h=(s[2]||"").split(".").sort(),f){for(d=x.event.special[f]||{},p=l[f=(r?d.delegateType:d.bindType)||f]||[],s=s[2]&&new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=o=p.length;o--;)u=p[o],!i&&m!==u.origType||n&&n.guid!==u.guid||s&&!s.test(u.namespace)||r&&r!==u.selector&&("**"!==r||!u.selector)||(p.splice(o,1),u.selector&&p.delegateCount--,d.remove&&d.remove.call(e,u));a&&!p.length&&(d.teardown&&!1!==d.teardown.call(e,h,g.handle)||x.removeEvent(e,f,g.handle),delete l[f])}else for(f in l)x.event.remove(e,f+t[c],n,r,!0);x.isEmptyObject(l)&&Z.remove(e,"handle events")}},dispatch:function(e){var t,n,r,i,o,a,s=x.event.fix(e),l=new Array(arguments.length),c=(Z.get(this,"events")||{})[s.type]||[],u=x.event.special[s.type]||{};for(l[0]=s,t=1;t<arguments.length;t++)l[t]=arguments[t];if(s.delegateTarget=this,!u.preDispatch||!1!==u.preDispatch.call(this,s)){for(a=x.event.handlers.call(this,s,c),t=0;(i=a[t++])&&!s.isPropagationStopped();)for(s.currentTarget=i.elem,n=0;(o=i.handlers[n++])&&!s.isImmediatePropagationStopped();)s.rnamespace&&!s.rnamespace.test(o.namespace)||(s.handleObj=o,s.data=o.data,void 0!==(r=((x.event.special[o.origType]||{}).handle||o.handler).apply(i.elem,l))&&!1===(s.result=r)&&(s.preventDefault(),s.stopPropagation()));return u.postDispatch&&u.postDispatch.call(this,s),s.result}},handlers:function(e,t){var n,r,i,o,a,s=[],l=t.delegateCount,c=e.target;if(l&&c.nodeType&&!("click"===e.type&&e.button>=1))for(;c!==this;c=c.parentNode||this)if(1===c.nodeType&&("click"!==e.type||!0!==c.disabled)){for(o=[],a={},n=0;n<l;n++)void 0===a[i=(r=t[n]).selector+" "]&&(a[i]=r.needsContext?x(i,this).index(c)>-1:x.find(i,this,null,[c]).length),a[i]&&o.push(r);o.length&&s.push({elem:c,handlers:o})}return c=this,l<t.length&&s.push({elem:c,handlers:t.slice(l)}),s},addProp:function(e,t){Object.defineProperty(x.Event.prototype,e,{enumerable:!0,configurable:!0,get:m(t)?function(){if(this.originalEvent)return t(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[e]},set:function(t){Object.defineProperty(this,e,{enumerable:!0,configurable:!0,writable:!0,value:t})}})},fix:function(e){return e[x.expando]?e:new x.Event(e)},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==Ee()&&this.focus)return this.focus(),!1},delegateType:"focusin"},blur:{trigger:function(){if(this===Ee()&&this.blur)return this.blur(),!1},delegateType:"focusout"},click:{trigger:function(){if("checkbox"===this.type&&this.click&&$(this,"input"))return this.click(),!1},_default:function(e){return $(e.target,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},x.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},x.Event=function(e,t){if(!(this instanceof x.Event))return new x.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?Ce:ke,this.target=e.target&&3===e.target.nodeType?e.target.parentNode:e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget):this.type=e,t&&x.extend(this,t),this.timeStamp=e&&e.timeStamp||Date.now(),this[x.expando]=!0},x.Event.prototype={constructor:x.Event,isDefaultPrevented:ke,isPropagationStopped:ke,isImmediatePropagationStopped:ke,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=Ce,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=Ce,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=Ce,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},x.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:function(e){var t=e.button;return null==e.which&&ve.test(e.type)?null!=e.charCode?e.charCode:e.keyCode:!e.which&&void 0!==t&&we.test(e.type)?1&t?1:2&t?3:4&t?2:0:e.which}},x.event.addProp),x.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(e,t){x.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,r=e.relatedTarget,i=e.handleObj;return r&&(r===this||x.contains(this,r))||(e.type=i.origType,n=i.handler.apply(this,arguments),e.type=t),n}}}),x.fn.extend({on:function(e,t,n,r){return Te(this,e,t,n,r)},one:function(e,t,n,r){return Te(this,e,t,n,r,1)},off:function(e,t,n){var r,i;if(e&&e.preventDefault&&e.handleObj)return r=e.handleObj,x(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!1!==t&&"function"!=typeof t||(n=t,t=void 0),!1===n&&(n=ke),this.each(function(){x.event.remove(this,e,n,t)})}});var Se=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi,Ae=/<script|<style|<link/i,$e=/checked\s*(?:[^=]|=\s*.checked.)/i,Le=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;function De(e,t){return $(e,"table")&&$(11!==t.nodeType?t:t.firstChild,"tr")&&x(e).children("tbody")[0]||e}function je(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function Ne(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function _e(e,t){var n,r,i,o,a,s,l,c;if(1===t.nodeType){if(Z.hasData(e)&&(o=Z.access(e),a=Z.set(t,o),c=o.events)){delete a.handle,a.events={};for(i in c)for(n=0,r=c[i].length;n<r;n++)x.event.add(t,i,c[i][n])}Q.hasData(e)&&(s=Q.access(e),l=x.extend({},s),Q.set(t,l))}}function Re(e,t,n,r){t=a.apply([],t);var i,o,s,l,c,u,d=0,p=e.length,f=p-1,g=t[0],b=m(g);if(b||p>1&&"string"==typeof g&&!h.checkClone&&$e.test(g))return e.each(function(i){var o=e.eq(i);b&&(t[0]=g.call(this,i,o.html())),Re(o,t,n,r)});if(p&&(o=(i=be(t,e[0].ownerDocument,!1,e,r)).firstChild,1===i.childNodes.length&&(i=o),o||r)){for(l=(s=x.map(pe(i,"script"),je)).length;d<p;d++)c=i,d!==f&&(c=x.clone(c,!0,!0),l&&x.merge(s,pe(c,"script"))),n.call(e[d],c,d);if(l)for(u=s[s.length-1].ownerDocument,x.map(s,Ne),d=0;d<l;d++)c=s[d],ue.test(c.type||"")&&!Z.access(c,"globalEval")&&x.contains(u,c)&&(c.src&&"module"!==(c.type||"").toLowerCase()?x._evalUrl&&x._evalUrl(c.src):y(c.textContent.replace(Le,""),u,c))}return e}function Pe(e,t,n){for(var r,i=t?x.filter(t,e):e,o=0;null!=(r=i[o]);o++)n||1!==r.nodeType||x.cleanData(pe(r)),r.parentNode&&(n&&x.contains(r.ownerDocument,r)&&fe(pe(r,"script")),r.parentNode.removeChild(r));return e}x.extend({htmlPrefilter:function(e){return e.replace(Se,"<$1></$2>")},clone:function(e,t,n){var r,i,o,a,s,l,c,u=e.cloneNode(!0),d=x.contains(e.ownerDocument,e);if(!(h.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||x.isXMLDoc(e)))for(a=pe(u),r=0,i=(o=pe(e)).length;r<i;r++)s=o[r],l=a[r],void 0,"input"===(c=l.nodeName.toLowerCase())&&le.test(s.type)?l.checked=s.checked:"input"!==c&&"textarea"!==c||(l.defaultValue=s.defaultValue);if(t)if(n)for(o=o||pe(e),a=a||pe(u),r=0,i=o.length;r<i;r++)_e(o[r],a[r]);else _e(e,u);return(a=pe(u,"script")).length>0&&fe(a,!d&&pe(e,"script")),u},cleanData:function(e){for(var t,n,r,i=x.event.special,o=0;void 0!==(n=e[o]);o++)if(X(n)){if(t=n[Z.expando]){if(t.events)for(r in t.events)i[r]?x.event.remove(n,r):x.removeEvent(n,r,t.handle);n[Z.expando]=void 0}n[Q.expando]&&(n[Q.expando]=void 0)}}}),x.fn.extend({detach:function(e){return Pe(this,e,!0)},remove:function(e){return Pe(this,e)},text:function(e){return F(this,function(e){return void 0===e?x.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 Re(this,arguments,function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||De(this,e).appendChild(e)})},prepend:function(){return Re(this,arguments,function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=De(this,e);t.insertBefore(e,t.firstChild)}})},before:function(){return Re(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this)})},after:function(){return Re(this,arguments,function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)})},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(x.cleanData(pe(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map(function(){return x.clone(this,e,t)})},html:function(e){return F(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&&!Ae.test(e)&&!de[(ce.exec(e)||["",""])[1].toLowerCase()]){e=x.htmlPrefilter(e);try{for(;n<r;n++)1===(t=this[n]||{}).nodeType&&(x.cleanData(pe(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)},null,e,arguments.length)},replaceWith:function(){var e=[];return Re(this,arguments,function(t){var n=this.parentNode;x.inArray(this,e)<0&&(x.cleanData(pe(this)),n&&n.replaceChild(t,this))},e)}}),x.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(e,t){x.fn[e]=function(e){for(var n,r=[],i=x(e),o=i.length-1,a=0;a<=o;a++)n=a===o?this:this.clone(!0),x(i[a])[t](n),s.apply(r,n.get());return this.pushStack(r)}});var Me=new RegExp("^("+te+")(?!px)[a-z%]+$","i"),Oe=function(t){var n=t.ownerDocument.defaultView;return n&&n.opener||(n=e),n.getComputedStyle(t)},Ie=new RegExp(re.join("|"),"i");function qe(e,t,n){var r,i,o,a,s=e.style;return(n=n||Oe(e))&&(""!==(a=n.getPropertyValue(t)||n[t])||x.contains(e.ownerDocument,e)||(a=x.style(e,t)),!h.pixelBoxStyles()&&Me.test(a)&&Ie.test(t)&&(r=s.width,i=s.minWidth,o=s.maxWidth,s.minWidth=s.maxWidth=s.width=a,a=n.width,s.width=r,s.minWidth=i,s.maxWidth=o)),void 0!==a?a+"":a}function We(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}!function(){function t(){if(u){c.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",u.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",ye.appendChild(c).appendChild(u);var t=e.getComputedStyle(u);i="1%"!==t.top,l=12===n(t.marginLeft),u.style.right="60%",s=36===n(t.right),o=36===n(t.width),u.style.position="absolute",a=36===u.offsetWidth||"absolute",ye.removeChild(c),u=null}}function n(e){return Math.round(parseFloat(e))}var i,o,a,s,l,c=r.createElement("div"),u=r.createElement("div");u.style&&(u.style.backgroundClip="content-box",u.cloneNode(!0).style.backgroundClip="",h.clearCloneStyle="content-box"===u.style.backgroundClip,x.extend(h,{boxSizingReliable:function(){return t(),o},pixelBoxStyles:function(){return t(),s},pixelPosition:function(){return t(),i},reliableMarginLeft:function(){return t(),l},scrollboxSize:function(){return t(),a}}))}();var Be,He,Fe=/^(none|table(?!-c[ea]).+)/,Ue=/^--/,ze={position:"absolute",visibility:"hidden",display:"block"},Ge={letterSpacing:"0",fontWeight:"400"},Ve=["Webkit","Moz","ms"],Xe=r.createElement("div").style;function Ye(e){var t=x.cssProps[e];return t||(t=x.cssProps[e]=function(e){if(e in Xe)return e;for(var t=e[0].toUpperCase()+e.slice(1),n=Ve.length;n--;)if((e=Ve[n]+t)in Xe)return e}(e)||e),t}function Ze(e,t,n){var r=ne.exec(t);return r?Math.max(0,r[2]-(n||0))+(r[3]||"px"):t}function Qe(e,t,n,r,i,o){var a="width"===t?1:0,s=0,l=0;if(n===(r?"border":"content"))return 0;for(;a<4;a+=2)"margin"===n&&(l+=x.css(e,n+re[a],!0,i)),r?("content"===n&&(l-=x.css(e,"padding"+re[a],!0,i)),"margin"!==n&&(l-=x.css(e,"border"+re[a]+"Width",!0,i))):(l+=x.css(e,"padding"+re[a],!0,i),"padding"!==n?l+=x.css(e,"border"+re[a]+"Width",!0,i):s+=x.css(e,"border"+re[a]+"Width",!0,i));return!r&&o>=0&&(l+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-o-l-s-.5))),l}function Ke(e,t,n){var r=Oe(e),i=qe(e,t,r),o="border-box"===x.css(e,"boxSizing",!1,r),a=o;if(Me.test(i)){if(!n)return i;i="auto"}return a=a&&(h.boxSizingReliable()||i===e.style[t]),("auto"===i||!parseFloat(i)&&"inline"===x.css(e,"display",!1,r))&&(i=e["offset"+t[0].toUpperCase()+t.slice(1)],a=!0),(i=parseFloat(i)||0)+Qe(e,t,n||(o?"border":"content"),a,r,i)+"px"}x.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=qe(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(e,t,n,r){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var i,o,a,s=V(t),l=Ue.test(t),c=e.style;if(l||(t=Ye(s)),a=x.cssHooks[t]||x.cssHooks[s],void 0===n)return a&&"get"in a&&void 0!==(i=a.get(e,!1,r))?i:c[t];"string"===(o=typeof n)&&(i=ne.exec(n))&&i[1]&&(n=function(e,t,n,r){var i,o,a=20,s=r?function(){return r.cur()}:function(){return x.css(e,t,"")},l=s(),c=n&&n[3]||(x.cssNumber[t]?"":"px"),u=(x.cssNumber[t]||"px"!==c&&+l)&&ne.exec(x.css(e,t));if(u&&u[3]!==c){for(l/=2,c=c||u[3],u=+l||1;a--;)x.style(e,t,u+c),(1-o)*(1-(o=s()/l||.5))<=0&&(a=0),u/=o;u*=2,x.style(e,t,u+c),n=n||[]}return n&&(u=+u||+l||0,i=n[1]?u+(n[1]+1)*n[2]:+n[2],r&&(r.unit=c,r.start=u,r.end=i)),i}(e,t,i),o="number"),null!=n&&n==n&&("number"===o&&(n+=i&&i[3]||(x.cssNumber[s]?"":"px")),h.clearCloneStyle||""!==n||0!==t.indexOf("background")||(c[t]="inherit"),a&&"set"in a&&void 0===(n=a.set(e,n,r))||(l?c.setProperty(t,n):c[t]=n))}},css:function(e,t,n,r){var i,o,a,s=V(t);return Ue.test(t)||(t=Ye(s)),(a=x.cssHooks[t]||x.cssHooks[s])&&"get"in a&&(i=a.get(e,!0,n)),void 0===i&&(i=qe(e,t,r)),"normal"===i&&t in Ge&&(i=Ge[t]),""===n||n?(o=parseFloat(i),!0===n||isFinite(o)?o||0:i):i}}),x.each(["height","width"],function(e,t){x.cssHooks[t]={get:function(e,n,r){if(n)return!Fe.test(x.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?Ke(e,t,r):oe(e,ze,function(){return Ke(e,t,r)})},set:function(e,n,r){var i,o=Oe(e),a="border-box"===x.css(e,"boxSizing",!1,o),s=r&&Qe(e,t,r,a,o);return a&&h.scrollboxSize()===o.position&&(s-=Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-parseFloat(o[t])-Qe(e,t,"border",!1,o)-.5)),s&&(i=ne.exec(n))&&"px"!==(i[3]||"px")&&(e.style[t]=n,n=x.css(e,t)),Ze(0,n,s)}}}),x.cssHooks.marginLeft=We(h.reliableMarginLeft,function(e,t){if(t)return(parseFloat(qe(e,"marginLeft"))||e.getBoundingClientRect().left-oe(e,{marginLeft:0},function(){return e.getBoundingClientRect().left}))+"px"}),x.each({margin:"",padding:"",border:"Width"},function(e,t){x.cssHooks[e+t]={expand:function(n){for(var r=0,i={},o="string"==typeof n?n.split(" "):[n];r<4;r++)i[e+re[r]+t]=o[r]||o[r-2]||o[0];return i}},"margin"!==e&&(x.cssHooks[e+t].set=Ze)}),x.fn.extend({css:function(e,t){return F(this,function(e,t,n){var r,i,o={},a=0;if(Array.isArray(t)){for(r=Oe(e),i=t.length;a<i;a++)o[t[a]]=x.css(e,t[a],!1,r);return o}return void 0!==n?x.style(e,t,n):x.css(e,t)},e,t,arguments.length>1)}}),x.fn.delay=function(t,n){return t=x.fx&&x.fx.speeds[t]||t,n=n||"fx",this.queue(n,function(n,r){var i=e.setTimeout(n,t);r.stop=function(){e.clearTimeout(i)}})},Be=r.createElement("input"),He=r.createElement("select").appendChild(r.createElement("option")),Be.type="checkbox",h.checkOn=""!==Be.value,h.optSelected=He.selected,(Be=r.createElement("input")).value="t",Be.type="radio",h.radioValue="t"===Be.value;var Je,et=x.expr.attrHandle;x.fn.extend({attr:function(e,t){return F(this,x.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each(function(){x.removeAttr(this,e)})}}),x.extend({attr:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return void 0===e.getAttribute?x.prop(e,t,n):(1===o&&x.isXMLDoc(e)||(i=x.attrHooks[t.toLowerCase()]||(x.expr.match.bool.test(t)?Je:void 0)),void 0!==n?null===n?void x.removeAttr(e,t):i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:(e.setAttribute(t,n+""),n):i&&"get"in i&&null!==(r=i.get(e,t))?r:null==(r=x.find.attr(e,t))?void 0:r)},attrHooks:{type:{set:function(e,t){if(!h.radioValue&&"radio"===t&&$(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,r=0,i=t&&t.match(M);if(i&&1===e.nodeType)for(;n=i[r++];)e.removeAttribute(n)}}),Je={set:function(e,t,n){return!1===t?x.removeAttr(e,n):e.setAttribute(n,n),n}},x.each(x.expr.match.bool.source.match(/\w+/g),function(e,t){var n=et[t]||x.find.attr;et[t]=function(e,t,r){var i,o,a=t.toLowerCase();return r||(o=et[a],et[a]=i,i=null!=n(e,t,r)?a:null,et[a]=o),i}});var tt=/^(?:input|select|textarea|button)$/i,nt=/^(?:a|area)$/i;function rt(e){return(e.match(M)||[]).join(" ")}function it(e){return e.getAttribute&&e.getAttribute("class")||""}function ot(e){return Array.isArray(e)?e:"string"==typeof e&&e.match(M)||[]}x.fn.extend({prop:function(e,t){return F(this,x.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each(function(){delete this[x.propFix[e]||e]})}}),x.extend({prop:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&x.isXMLDoc(e)||(t=x.propFix[t]||t,i=x.propHooks[t]),void 0!==n?i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:e[t]=n:i&&"get"in i&&null!==(r=i.get(e,t))?r:e[t]},propHooks:{tabIndex:{get:function(e){var t=x.find.attr(e,"tabindex");return t?parseInt(t,10):tt.test(e.nodeName)||nt.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),h.optSelected||(x.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),x.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){x.propFix[this.toLowerCase()]=this}),x.fn.extend({addClass:function(e){var t,n,r,i,o,a,s,l=0;if(m(e))return this.each(function(t){x(this).addClass(e.call(this,t,it(this)))});if((t=ot(e)).length)for(;n=this[l++];)if(i=it(n),r=1===n.nodeType&&" "+rt(i)+" "){for(a=0;o=t[a++];)r.indexOf(" "+o+" ")<0&&(r+=o+" ");i!==(s=rt(r))&&n.setAttribute("class",s)}return this},removeClass:function(e){var t,n,r,i,o,a,s,l=0;if(m(e))return this.each(function(t){x(this).removeClass(e.call(this,t,it(this)))});if(!arguments.length)return this.attr("class","");if((t=ot(e)).length)for(;n=this[l++];)if(i=it(n),r=1===n.nodeType&&" "+rt(i)+" "){for(a=0;o=t[a++];)for(;r.indexOf(" "+o+" ")>-1;)r=r.replace(" "+o+" "," ");i!==(s=rt(r))&&n.setAttribute("class",s)}return this},toggleClass:function(e,t){var n=typeof e,r="string"===n||Array.isArray(e);return"boolean"==typeof t&&r?t?this.addClass(e):this.removeClass(e):m(e)?this.each(function(n){x(this).toggleClass(e.call(this,n,it(this),t),t)}):this.each(function(){var t,i,o,a;if(r)for(i=0,o=x(this),a=ot(e);t=a[i++];)o.hasClass(t)?o.removeClass(t):o.addClass(t);else void 0!==e&&"boolean"!==n||((t=it(this))&&Z.set(this,"__className__",t),this.setAttribute&&this.setAttribute("class",t||!1===e?"":Z.get(this,"__className__")||""))})},hasClass:function(e){var t,n,r=0;for(t=" "+e+" ";n=this[r++];)if(1===n.nodeType&&(" "+rt(it(n))+" ").indexOf(t)>-1)return!0;return!1}});var at=/\r/g;x.fn.extend({val:function(e){var t,n,r,i=this[0];return arguments.length?(r=m(e),this.each(function(n){var i;1===this.nodeType&&(null==(i=r?e.call(this,n,x(this).val()):e)?i="":"number"==typeof i?i+="":Array.isArray(i)&&(i=x.map(i,function(e){return null==e?"":e+""})),(t=x.valHooks[this.type]||x.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,i,"value")||(this.value=i))})):i?(t=x.valHooks[i.type]||x.valHooks[i.nodeName.toLowerCase()])&&"get"in t&&void 0!==(n=t.get(i,"value"))?n:"string"==typeof(n=i.value)?n.replace(at,""):null==n?"":n:void 0}}),x.extend({valHooks:{option:{get:function(e){var t=x.find.attr(e,"value");return null!=t?t:rt(x.text(e))}},select:{get:function(e){var t,n,r,i=e.options,o=e.selectedIndex,a="select-one"===e.type,s=a?null:[],l=a?o+1:i.length;for(r=o<0?l:a?o:0;r<l;r++)if(((n=i[r]).selected||r===o)&&!n.disabled&&(!n.parentNode.disabled||!$(n.parentNode,"optgroup"))){if(t=x(n).val(),a)return t;s.push(t)}return s},set:function(e,t){for(var n,r,i=e.options,o=x.makeArray(t),a=i.length;a--;)((r=i[a]).selected=x.inArray(x.valHooks.option.get(r),o)>-1)&&(n=!0);return n||(e.selectedIndex=-1),o}}}}),x.each(["radio","checkbox"],function(){x.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=x.inArray(x(e).val(),t)>-1}},h.checkOn||(x.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})}),h.focusin="onfocusin"in e;var st=/^(?:focusinfocus|focusoutblur)$/,lt=function(e){e.stopPropagation()};x.extend(x.event,{trigger:function(t,n,i,o){var a,s,l,c,u,p,f,h,b=[i||r],y=d.call(t,"type")?t.type:t,v=d.call(t,"namespace")?t.namespace.split("."):[];if(s=h=l=i=i||r,3!==i.nodeType&&8!==i.nodeType&&!st.test(y+x.event.triggered)&&(y.indexOf(".")>-1&&(y=(v=y.split(".")).shift(),v.sort()),u=y.indexOf(":")<0&&"on"+y,(t=t[x.expando]?t:new x.Event(y,"object"==typeof t&&t)).isTrigger=o?2:3,t.namespace=v.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+v.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=i),n=null==n?[t]:x.makeArray(n,[t]),f=x.event.special[y]||{},o||!f.trigger||!1!==f.trigger.apply(i,n))){if(!o&&!f.noBubble&&!g(i)){for(c=f.delegateType||y,st.test(c+y)||(s=s.parentNode);s;s=s.parentNode)b.push(s),l=s;l===(i.ownerDocument||r)&&b.push(l.defaultView||l.parentWindow||e)}for(a=0;(s=b[a++])&&!t.isPropagationStopped();)h=s,t.type=a>1?c:f.bindType||y,(p=(Z.get(s,"events")||{})[t.type]&&Z.get(s,"handle"))&&p.apply(s,n),(p=u&&s[u])&&p.apply&&X(s)&&(t.result=p.apply(s,n),!1===t.result&&t.preventDefault());return t.type=y,o||t.isDefaultPrevented()||f._default&&!1!==f._default.apply(b.pop(),n)||!X(i)||u&&m(i[y])&&!g(i)&&((l=i[u])&&(i[u]=null),x.event.triggered=y,t.isPropagationStopped()&&h.addEventListener(y,lt),i[y](),t.isPropagationStopped()&&h.removeEventListener(y,lt),x.event.triggered=void 0,l&&(i[u]=l)),t.result}},simulate:function(e,t,n){var r=x.extend(new x.Event,n,{type:e,isSimulated:!0});x.event.trigger(r,null,t)}}),x.fn.extend({trigger:function(e,t){return this.each(function(){x.event.trigger(e,t,this)})},triggerHandler:function(e,t){var n=this[0];if(n)return x.event.trigger(e,t,n,!0)}}),h.focusin||x.each({focus:"focusin",blur:"focusout"},function(e,t){var n=function(e){x.event.simulate(t,e.target,x.event.fix(e))};x.event.special[t]={setup:function(){var r=this.ownerDocument||this,i=Z.access(r,t);i||r.addEventListener(e,n,!0),Z.access(r,t,(i||0)+1)},teardown:function(){var r=this.ownerDocument||this,i=Z.access(r,t)-1;i?Z.access(r,t,i):(r.removeEventListener(e,n,!0),Z.remove(r,t))}}});var ct,ut=/\[\]$/,dt=/\r?\n/g,pt=/^(?:submit|button|image|reset|file)$/i,ft=/^(?:input|select|textarea|keygen)/i;function ht(e,t,n,r){var i;if(Array.isArray(t))x.each(t,function(t,i){n||ut.test(e)?r(e,i):ht(e+"["+("object"==typeof i&&null!=i?t:"")+"]",i,n,r)});else if(n||"object"!==v(t))r(e,t);else for(i in t)ht(e+"["+i+"]",t[i],n,r)}x.param=function(e,t){var n,r=[],i=function(e,t){var n=m(t)?t():t;r[r.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==n?"":n)};if(Array.isArray(e)||e.jquery&&!x.isPlainObject(e))x.each(e,function(){i(this.name,this.value)});else for(n in e)ht(n,e[n],t,i);return r.join("&")},x.fn.extend({serialize:function(){return x.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var e=x.prop(this,"elements");return e?x.makeArray(e):this}).filter(function(){var e=this.type;return this.name&&!x(this).is(":disabled")&&ft.test(this.nodeName)&&!pt.test(e)&&(this.checked||!le.test(e))}).map(function(e,t){var n=x(this).val();return null==n?null:Array.isArray(n)?x.map(n,function(e){return{name:t.name,value:e.replace(dt,"\r\n")}}):{name:t.name,value:n.replace(dt,"\r\n")}}).get()}}),x.fn.extend({wrapAll:function(e){var t;return this[0]&&(m(e)&&(e=e.call(this[0])),t=x(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 m(e)?this.each(function(t){x(this).wrapInner(e.call(this,t))}):this.each(function(){var t=x(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)})},wrap:function(e){var t=m(e);return this.each(function(n){x(this).wrapAll(t?e.call(this,n):e)})},unwrap:function(e){return this.parent(e).not("body").each(function(){x(this).replaceWith(this.childNodes)}),this}}),x.expr.pseudos.hidden=function(e){return!x.expr.pseudos.visible(e)},x.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},h.createHTMLDocument=((ct=r.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===ct.childNodes.length),x.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(h.createHTMLDocument?((i=(t=r.implementation.createHTMLDocument("")).createElement("base")).href=r.location.href,t.head.appendChild(i)):t=r),o=L.exec(e),a=!n&&[],o?[t.createElement(o[1])]:(o=be([e],t,a),a&&a.length&&x(a).remove(),x.merge([],o.childNodes)));var i,o,a},x.offset={setOffset:function(e,t,n){var r,i,o,a,s,l,c=x.css(e,"position"),u=x(e),d={};"static"===c&&(e.style.position="relative"),s=u.offset(),o=x.css(e,"top"),l=x.css(e,"left"),("absolute"===c||"fixed"===c)&&(o+l).indexOf("auto")>-1?(a=(r=u.position()).top,i=r.left):(a=parseFloat(o)||0,i=parseFloat(l)||0),m(t)&&(t=t.call(e,n,x.extend({},s))),null!=t.top&&(d.top=t.top-s.top+a),null!=t.left&&(d.left=t.left-s.left+i),"using"in t?t.using.call(e,d):u.css(d)}},x.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each(function(t){x.offset.setOffset(this,e,t)});var t,n,r=this[0];return r?r.getClientRects().length?(t=r.getBoundingClientRect(),n=r.ownerDocument.defaultView,{top:t.top+n.pageYOffset,left:t.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,r=this[0],i={top:0,left:0};if("fixed"===x.css(r,"position"))t=r.getBoundingClientRect();else{for(t=this.offset(),n=r.ownerDocument,e=r.offsetParent||n.documentElement;e&&(e===n.body||e===n.documentElement)&&"static"===x.css(e,"position");)e=e.parentNode;e&&e!==r&&1===e.nodeType&&((i=x(e).offset()).top+=x.css(e,"borderTopWidth",!0),i.left+=x.css(e,"borderLeftWidth",!0))}return{top:t.top-i.top-x.css(r,"marginTop",!0),left:t.left-i.left-x.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent;e&&"static"===x.css(e,"position");)e=e.offsetParent;return e||ye})}}),x.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(e,t){var n="pageYOffset"===t;x.fn[e]=function(r){return F(this,function(e,r,i){var o;if(g(e)?o=e:9===e.nodeType&&(o=e.defaultView),void 0===i)return o?o[t]:e[r];o?o.scrollTo(n?o.pageXOffset:i,n?i:o.pageYOffset):e[r]=i},e,r,arguments.length)}}),x.each(["top","left"],function(e,t){x.cssHooks[t]=We(h.pixelPosition,function(e,n){if(n)return n=qe(e,t),Me.test(n)?x(e).position()[t]+"px":n})}),x.each({Height:"height",Width:"width"},function(e,t){x.each({padding:"inner"+e,content:t,"":"outer"+e},function(n,r){x.fn[r]=function(i,o){var a=arguments.length&&(n||"boolean"!=typeof i),s=n||(!0===i||!0===o?"margin":"border");return F(this,function(t,n,i){var o;return g(t)?0===r.indexOf("outer")?t["inner"+e]:t.document.documentElement["client"+e]:9===t.nodeType?(o=t.documentElement,Math.max(t.body["scroll"+e],o["scroll"+e],t.body["offset"+e],o["offset"+e],o["client"+e])):void 0===i?x.css(t,n,s):x.style(t,n,i,s)},t,a?i:void 0,a)}})}),x.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,t){x.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}}),x.fn.extend({hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),x.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)}}),x.proxy=function(e,t){var n,r,i;if("string"==typeof t&&(n=e[t],t=e,e=n),m(e))return r=o.call(arguments,2),(i=function(){return e.apply(t||this,r.concat(o.call(arguments)))}).guid=e.guid=e.guid||x.guid++,i},x.holdReady=function(e){e?x.readyWait++:x.ready(!0)},x.isArray=Array.isArray,x.parseJSON=JSON.parse,x.nodeName=$,x.isFunction=m,x.isWindow=g,x.camelCase=V,x.type=v,x.now=Date.now,x.isNumeric=function(e){var t=x.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},"function"==typeof define&&define.amd&&define("jquery",[],function(){return x});var mt=e.jQuery,gt=e.$;return x.noConflict=function(t){return e.$===x&&(e.$=gt),t&&e.jQuery===x&&(e.jQuery=mt),x},t||(e.jQuery=e.$=x),x},"object"==typeof module&&"object"==typeof module.exports?module.exports=y_.document?z_(y_,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return z_(e)}:z_(y_),define("deps/jquery",function(){}),define("core/jquery-enhanced",["exports","core/pubsubhub","core/utils","deps/jquery"],function(e,t,n){Object.defineProperty(e,"__esModule",{value:!0}),e.name=void 0;e.name="core/jquery-enhanced";window.$=$,window.$.fn.renameElement=function(e){var n=[];return this.each(function(){for(var r=$(this.ownerDocument.createElement(e)),i=0,o=this.attributes.length;i<o;i++){var a=this.attributes[i];try{r[0].setAttributeNS(a.namespaceURI,a.name,a.value)}catch(e){var s="Your HTML markup is malformed. Error in: \n";s+="```HTML\n"+this.outerHTML+"\n```",(0,t.pub)("error",s);break}}$(this).contents().appendTo(r),$(this).replaceWith(r),n.push(r[0])}),$(n)},window.$.fn.getDfnTitles=function(e){var t="",r="",i="";return void 0===this.attr("data-lt-noDefault")&&(i=(0,n.norm)(this.text()).toLowerCase()),this.attr("data-lt")?(t=this.attr("data-lt")?"data-lt":"lt",r=this.attr(t).toLowerCase(),""!==i&&(r.startsWith(`${i}|`)||(r=r+"|"+i))):r=1===this.contents().length&&1===this.children("abbr, acronym").length&&this.find(":first-child").attr("title")?this.find(":first-child").attr("title"):'""'===this.text()?"the-empty-string":this.text(),r=(0,n.norm)(r).toLowerCase(),e&&!0===e.isDefinition&&(t&&this.attr("data-lt",r),"data-lt"!==t&&this.removeAttr(t),this.attr("dfn-type")?(this.attr("data-dfn-type",this.attr("dfn-type")),this.removeAttr("dfn-type")):this.attr("data-dfn-type","dfn")),[...r.split("|").filter(e=>""!==e).reduce((e,t)=>e.add(t),new Set)]},window.$.fn.linkTargets=function(){var e=this[0].closest("[data-link-for]"),t=e?e.dataset.linkFor.toLowerCase():"",n=this.getDfnTitles(),r=[];for(const e of n){r.push({for:t,title:e});const n=e.split(".");2===n.length&&r.push({for:n[0],title:n[1]}),r.push({for:"",title:e})}return r},window.$.fn.makeID=function(e="",t="",n=!1){const r=this[0];if(r.id)return r.id;t||(t=(r.title?r.title:r.textContent).trim());var i=n?t:t.toLowerCase();if((i=i.replace(/[\W]+/gim,"-").replace(/^-+/,"").replace(/-+$/,""))?!/\.$/.test(i)&&/^[a-z]/i.test(i)||(i="x"+i):i="generatedID",e&&(i=`${e}-${i}`),r.ownerDocument.getElementById(i)){let e=0,t=i+"-"+e;for(;r.ownerDocument.getElementById(t);)t=i+"-"+e++;i=t}return r.id=i,i},window.$.fn.allTextNodes=function(e){for(var t=[],n={},r=0,i=e.length;r<i;r++)n[e[r]]=!0;return function e(r){if(1!==r.nodeType||!n[r.localName.toLowerCase()])if(3===r.nodeType)t.push(r);else for(var i=0,o=r.childNodes.length;i<o;++i)e(r.childNodes[i])}(this[0]),t}}),define("core/ui",["exports","shortcut","core/pubsubhub","deps/text!ui/ui.css","core/utils","core/jquery-enhanced"],function(e,t,n,r,i){Object.defineProperty(e,"__esModule",{value:!0}),e.ui=e.name=void 0;var o=s(t),a=s(r);function s(e){return e&&e.__esModule?e:{default:e}}e.name="core/ui";const l=document.createElement("style");function c(e,t){e&&Array.from(t.entries()).reduce((e,[t,n])=>(e.setAttribute("aria-"+t,n),e),e)}l.id="respec-ui-styles",l.textContent=a.default,l.classList.add("removeOnSave"),document.head.appendChild(l);const u=$("<div id='respec-ui' class='removeOnSave' hidden></div>"),d=$("<ul id=respec-menu role=menu aria-labelledby='respec-pill' hidden></ul>");var p,f;const h=[],m=[],g={};(0,n.sub)("start-all",()=>{document.body.insertAdjacentElement("afterbegin",u[0])},{once:!0}),(0,n.sub)("end-all",()=>{document.body.insertAdjacentElement("afterbegin",u[0])},{once:!0});const b=$("<button id='respec-pill' disabled>ReSpec</button>");b.click(function(e){e.stopPropagation(),d[0].hidden?(d[0].classList.remove("respec-hidden"),d[0].classList.add("respec-visible")):(d[0].classList.add("respec-hidden"),d[0].classList.remove("respec-visible")),this.setAttribute("aria-expanded",String(d[0].hidden)),d[0].hidden=!d[0].hidden}).appendTo(u),document.documentElement.addEventListener("click",function(){d[0].hidden||(d[0].classList.remove("respec-visible"),d[0].classList.add("respec-hidden"),d[0].hidden=!0)}),d.appendTo(u);const y=new Map([["controls","respec-menu"],["expanded","false"],["haspopup","true"],["label","ReSpec Menu"]]);function v(e,t,n,r){if(t.push(e),g.hasOwnProperty(n))return void g[n].text(t.length);g[n]=$("<button id='respec-pill-"+n+"' class='respec-info-button'>"+t.length+"</button>").appendTo(u).click(function(){this.setAttribute("aria-expanded","true");for(var e=$("<ol class='respec-"+n+"-list'></ol>"),o=0,a=t.length;o<a;o++){var s=t[o];if(s instanceof Error)$("<li><span></span> <a>⊞</a><pre></pre></li>").appendTo(e).find("span").text("["+s.name+"] "+s.message).end().find("a").css({fontSize:"1.1em",color:"#999",cursor:"pointer"}).click(function(){var e=$(this),t=e.text(),n=e.parent().find("pre");"⊞"===t?(e.text("⊟"),n.show()):(e.text("⊞"),n.hide())}).end().find("pre").text(s.stack).css({marginLeft:"0",maxWidth:"100%",overflowY:"hidden",overflowX:"scroll"}).hide().end();else{const t=document.createElement("tmp");t.innerHTML=(0,i.markdownToHtml)(s);const n=document.createElement("li");if(t.firstElementChild===t.lastElementChild)for(;t.firstElementChild&&t.firstElementChild.hasChildNodes();)n.appendChild(t.firstElementChild.firstChild);else n.innerHTML=t.innerHTML;e[0].appendChild(n)}}w.freshModal(r,e,this)});const o=new Map([["expanded","false"],["haspopup","true"],["controls","respec-pill-"+n+"-modal"],["label","Document "+r.toLowerCase()]]);c(g[n][0],o)}c(b[0],y);const w=e.ui={show:function(){try{u[0].hidden=!1}catch(e){console.error(e)}},hide:function(){u[0].hidden=!0},enable:function(){b[0].removeAttribute("disabled")},addCommand:function(e,t,n,r){r=r||"";var i=function(){require([t],function(e){e.show()})},a="respec-button-"+e.toLowerCase().replace(/\s+/,"-"),s=$('<li role=menuitem><button id="'+a+'" class="respec-option" title="'+n+'"><span class="respec-cmd-icon">'+r+"</span> "+e+"… </button></li>").click(i).appendTo(d);return n&&o.default.add(n,i),s[0].querySelector("button")},error:function(e){v(e,h,"error","Errors")},warning:function(e){v(e,m,"warning","Warnings")},closeModal:function(e){f&&(f[0].classList.remove("respec-show-overlay"),f[0].classList.add("respec-hide-overlay"),f[0].addEventListener("transitionend",()=>{f.remove(),f=null})),e&&e.setAttribute("aria-expanded","false"),p&&(p.remove(),p=null)},freshModal:function(e,t,n){p&&p.remove(),f&&f.remove(),f=$("<div id='respec-overlay' class='removeOnSave'></div>");const r=n.id+"-modal",i=r+"-heading";(p=$("<div id='"+r+"' class='respec-modal removeOnSave' role='dialog'><h3></h3><div class='inside'></div></div>")).find("h3").text(e),p.find("h3")[0].id=i;const o=new Map([["labelledby",i]]);c(p[0],o),p.find(".inside").append(t),$(document.body).append(f).append(p),f.click(()=>{this.closeModal(n)}),f[0].classList.toggle("respec-show-overlay"),p[0].hidden=!1}};o.default.add("Esc",function(){w.closeModal()}),o.default.add("Ctrl+Alt+Shift+E",function(){g.error&&g.error.click()}),o.default.add("Ctrl+Alt+Shift+W",function(){g.warning&&g.warning.click()}),window.respecUI=w,(0,n.sub)("error",function(e){w.error(e)}),(0,n.sub)("warn",function(e){w.warning(e)})}),define("core/l10n",["exports"],function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.run=function(e){e.l10n=i[o]||i.en};var t=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};e.name="core/l10n";const n=document.documentElement;n&&!n.hasAttribute("lang")&&(n.lang="en",n.hasAttribute("dir")||(n.dir="ltr"));const r={about_respec:"About",abstract:"Abstract",author:"Author:",authors:"Authors:",bug_tracker:"Bug tracker:",close_parens:")",commit_history:"Commit history",definition_list:"Definitions",editor:"Editor:",editors_note:"Editor's note",editors:"Editors:",example:"Example",fig:"Figure ",file_a_bug:"File a bug",pull_requests:"Pull requests",info_references:"Informative references",issue_summary:"Issue Summary",issue:"Issue",latest_editors_draft:"Latest editor's draft:",latest_published_version:"Latest published version:",list_of_definitions:"List of Definitions",norm_references:"Normative references",note:"Note",open_bugs:"open bugs",open_parens:"(",participate:"Participate",references:"References",save_as:"Save as",save_snapshot:"Export",search_specref:"Search Specref",sotd:"Status of This Document",table_of_fig:"Table of Figures",this_version:"This version:",toc:"Table of Contents",warning:"Warning"},i=e.l10n={en:t({},r),ko:t({},r,{abstract:"요약",author:"저자:",authors:"저자:",fig:"그림 ",latest_published_version:"최신 버전:",sotd:"현재 문서의 상태",this_version:"현재 버전:"}),zh:t({},r,{abstract:"摘要",bug_tracker:"错误跟踪:",editor:"编辑:",editors:"编辑们:",fig:"圖",file_a_bug:"反馈错误",latest_editors_draft:"最新编辑草稿:",latest_published_version:"最新发布草稿:",note:"注",open_bugs:"修正中的错误",sotd:"关于本文档",this_version:"本版本:",toc:"内容大纲"}),ja:t({},r,{abstract:"要約",author:"著者:",authors:"著者:",bug_tracker:"バグの追跡履歴:",editor:"編者:",editors:"編者:",fig:"図",latest_editors_draft:"最新の編集用草案:",latest_published_version:"最新バージョン:",note:"注",open_bugs:"改修されていないバグ",sotd:"この文書の位置付け",this_version:"このバージョン:",toc:"目次"}),nl:t({},r,{about_respec:"Over",abstract:"Samenvatting",author:"Auteur:",authors:"Auteurs:",bug_tracker:"Meldingensysteem:",commit_history:"Revisiehistorie",definition_list:"Lijst van Definities",editor:"Redacteur:",editors_note:"Redactionele noot",editors:"Redacteurs:",example:"Voorbeeld",fig:"Figuur ",file_a_bug:"Dien een melding in",info_references:"Informatieve referenties",issue_summary:"Lijst met issues",latest_editors_draft:"Laatste werkversie:",latest_published_version:"Laatst gepubliceerde versie:",list_of_definitions:"Lijst van Definities",norm_references:"Normatieve referenties",note:"Noot",open_bugs:"open meldingen",participate:"Doe mee",references:"Referenties",save_as:"Bewaar als",save_snapshot:"Bewaar Snapshot",search_specref:"Doorzoek Specref",sotd:"Status van dit document",table_of_fig:"Lijst met figuren",this_version:"Deze versie:",toc:"Inhoudsopgave",warning:"Waarschuwing"}),es:t({},r,{abstract:"Resumen",author:"Autor:",authors:"Autores:",bug_tracker:"Repositorio de bugs:",close_parens:")",commit_history:"Historia de cambios",editor:"Editor:",editors_note:"Nota de editor",editors:"Editores:",example:"Ejemplo",fig:"Figura ",file_a_bug:"Nota un bug",info_references:"Referencias informativas",issue_summary:"Resumen de la cuestión",issue:"Cuestión",latest_editors_draft:"Borrador de editor mas reciente:",latest_published_version:"Versión publicada mas reciente:",norm_references:"Referencias normativas",note:"Nota",open_bugs:"Bugs abiertos",open_parens:"(",participate:"Participad",references:"Referencias",sotd:"Estado de este Document",table_of_fig:"Tabla de Figuras",this_version:"Ésta versión:",toc:"Tabla de Contenidos",warning:"Aviso"})};i["zh-hans"]=i.zh,i["zh-cn"]=i.zh;const o=e.lang=n&&n.lang in i?n.lang:"en"}),define("core/linter",["exports","core/pubsubhub"],function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.name=void 0,e.run=async function(e,t,n){if(n(),!1===e.lint)return;await document.respecReady;try{await i.lint(e,t)}catch(e){console.error("Error ocurred while running the linter",e)}};var n=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};e.name="core/linter";const r=new WeakMap;const i=new class{constructor(){r.set(this,{rules:new Set})}get rules(){return r.get(this).rules}register(...e){e.reduce((e,t)=>e.add(t),this.rules)}async lint(e,i=window.document){const a=[...r.get(this).rules].map(r=>(async function(e){(await e).map(async e=>{const t=await e,r=n({},o,t),{description:i,help:a,howToFix:s,name:l,occurrences:c,offendingElements:u}=r,d=`${i} ${s} ${a} ("${l}" x ${c})`;return u.forEach(e=>{e.classList.add("respec-offending-element")}),console.warn(`Linter (${l}):`,i,...u),d}).forEach(async e=>{(0,t.pub)("warn",await e)})})(r.lint(e,i)));await a}};e.default=i;const o={name:"unknown",description:"",occurrences:0,howToFix:"",offendingElements:[],help:""}}),define("core/LinterRule",["exports"],function(e){Object.defineProperty(e,"__esModule",{value:!0});const t=new WeakMap;e.default=class{constructor(e,n){t.set(this,{name:e,lintingFunction:n})}get name(){return t.get(this).name}lint(e={lint:{[this.name]:!1}},n=document){return r=e,i=this.name,!1!==r.hasOwnProperty("lint")&&!1!==r.lint&&r.lint[i]?[].concat(t.get(this).lintingFunction(e,n)):[];var r,i}}}),define("core/linter-rules/no-headingless-sections",["exports","core/LinterRule","../l10n"],function(e,t,n){Object.defineProperty(e,"__esModule",{value:!0}),e.rule=void 0;var r,i=(r=t)&&r.__esModule?r:{default:r};var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};const a="no-headingless-sections",s={en:{description:"All sections must start with a `h2-6` element.",howToFix:"Add a `h2-6` to the offending section or use a `<div>`.",help:"See developer console."},nl:{description:"Alle secties moeten beginnen met een `h2-6` element.",howToFix:"Voeg een `h2-6` toe aan de conflicterende sectie of gebruik een `<div>`.",help:"Zie de developer console."}},l=n.lang in s?n.lang:"en",c=({firstElementChild:e})=>null===e||!1===/^h[1-6]$/.test(e.localName);e.rule=new i.default(a,function(e,t){const n=Array.from(t.querySelectorAll("section")).filter(c);return n.length?o({name:a,offendingElements:n,occurrences:n.length},s[l]):[]})}),define("core/linter-rules/no-http-props",["exports","core/l10n","core/LinterRule"],function(e,t,n){Object.defineProperty(e,"__esModule",{value:!0}),e.rule=void 0;var r,i=(r=n)&&r.__esModule?r:{default:r};var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};const a="no-http-props",s={en:{description:"Insecure URLs are not allowed in `respecConfig`.",howToFix:"Please change the following properties to 'https://': "}},l=t.lang in s?t.lang:"en";e.rule=new i.default(a,function(e,t){if(!t.location.href.startsWith("http"))return[];const n=Object.getOwnPropertyNames(e).filter(e=>e.endsWith("URI")||"prevED"===e).filter(n=>new URL(e[n],t.location.href).href.startsWith("http://")).reduce((e,t)=>e.concat(t),[]);if(!n.length)return[];const r=o({name:a,occurrences:n.length},s[l]);return r.howToFix+=n.map(e=>"`"+e+"`").join(", ")+".",r})}),define("w3c/l10n",["exports","core/l10n"],function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.name=void 0;e.name="w3c/l10n";const n={en:{status_at_publication:"This section describes the status of this document at the time of its publication. Other documents may supersede this document. A list of current W3C publications and the latest revision of this technical report can be found in the <a href='https://www.w3.org/TR/'>W3C technical reports index</a> at https://www.w3.org/TR/."},ko:{status_at_publication:"This section describes the status of this document at the time of its publication. Other documents may supersede this document. A list of current W3C publications and the latest revision of this technical report can be found in the <a href='https://www.w3.org/TR/'>W3C technical reports index</a> at https://www.w3.org/TR/."},zh:{status_at_publication:"本章节描述了本文档的发布状态。其它更新版本可能会覆盖本文档。W3C的文档列 表和最新版本可通过<a href='https://www.w3.org/TR/'>W3C技术报告</a>索引访问。"},ja:{status_at_publication:"この節には、公開時点でのこの文書の位置づけが記されている。他の文書によって置き換えられる可能性がある。現時点でのW3Cの発行文書とこのテクニカルレポートの最新版は、下記から参照できる。 <a href='https://www.w3.org/TR/'>W3C technical reports index</a> (https://www.w3.org/TR/)"},nl:{status_at_publication:"This section describes the status of this document at the time of its publication. Other documents may supersede this document. A list of current W3C publications and the latest revision of this technical report can be found in the <a href='https://www.w3.org/TR/'>W3C technical reports index</a> at https://www.w3.org/TR/."}};Object.keys(n).reduce((e,t)=>(Object.assign(e[t],n[t]),e),t.l10n)}),define("w3c/linter-rules/privsec-section",["exports","core/LinterRule","../l10n"],function(e,t,n){Object.defineProperty(e,"__esModule",{value:!0}),e.rule=void 0;var r,i=(r=t)&&r.__esModule?r:{default:r};var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};const a="privsec-section",s={en:{description:"Document must a 'Privacy and/or Security' Considerations section.",howToFix:"Add a privacy and/or security considerations section.",help:"See the [Self-Review Questionnaire](https://w3ctag.github.io/security-questionnaire/)."}},l=n.lang in s?n.lang:"en";e.rule=new i.default(a,function(e,t){const n=[];var r;return e.isRecTrack&&(r=t,!Array.from(r.querySelectorAll("h2, h3, h4, h5, h6")).some(({textContent:e})=>{const t=/(privacy|security)/im.test(e),n=/(considerations)/im.test(e);return t&&n||t}))&&n.push(o({name:a,occurrences:1},s[l])),n})}),define("w3c/defaults",["exports","core/linter","core/linter-rules/no-headingless-sections","core/linter-rules/no-http-props","w3c/linter-rules/privsec-section"],function(e,t,n,r,i){Object.defineProperty(e,"__esModule",{value:!0}),e.name=void 0,e.run=function(e){Object.assign(e,s({},u,e)),Object.assign(e,(t=e,{isCCBY:"cc-by"===t.license,licenseInfo:c.get(t.license),isCGBG:l.has(t.specStatus),isCGFinal:t.isCGBG&&/G-FINAL$/.test(t.specStatus),isBasic:"base"===t.specStatus,isRegular:!t.isCGBG&&"base"===t.specStatus}));var t};var o,a=(o=t)&&o.__esModule?o:{default:o};var s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};e.name="w3c/defaults";a.default.register(r.rule,i.rule,n.rule);const l=new Set(["BG-DRAFT","BG-FINAL","CG-DRAFT","CG-FINAL"]),c=new Map([["cc0",{name:"Creative Commons 0 Public Domain Dedication",short:"CC0",url:"https://creativecommons.org/publicdomain/zero/1.0/"}],["w3c-software",{name:"W3C Software Notice and License",short:"W3C Software",url:"https://www.w3.org/Consortium/Legal/2002/copyright-software-20021231"}],["w3c-software-doc",{name:"W3C Software and Document Notice and License",short:"W3C Software and Document",url:"https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document"}],["cc-by",{name:"Creative Commons Attribution 4.0 International Public License",short:"CC-BY",url:"https://creativecommons.org/licenses/by/4.0/legalcode"}]]),u={lint:{"no-headingless-sections":!0,"privsec-section":!0,"no-http-props":!0},doJsonLd:!1,license:"w3c-software-doc",specStatus:"base",logos:[{src:"https://www.w3.org/StyleSheets/TR/2016/logos/W3C",alt:"W3C",height:48,width:72,url:"https://www.w3.org/"}]}}),define("deps/text!core/css/respec2.css",[],function(){return'/*****************************************************************\n * ReSpec 3 CSS\n * Robin Berjon - http://berjon.com/\n *****************************************************************/\n\n/* Override code highlighter background */\n.hljs {\n background: transparent !important;\n}\n\n/* --- INLINES --- */\nh1 abbr,\nh2 abbr,\nh3 abbr,\nh4 abbr,\nh5 abbr,\nh6 abbr,\na abbr {\n border: none;\n}\n\ndfn {\n font-weight: bold;\n}\n\na.internalDFN {\n color: inherit;\n border-bottom: 1px solid #99c;\n text-decoration: none;\n}\n\na.externalDFN {\n color: inherit;\n border-bottom: 1px dotted #ccc;\n text-decoration: none;\n}\n\na.bibref {\n text-decoration: none;\n}\n\ncite .bibref {\n font-style: normal;\n}\n\ncode {\n color: #c83500;\n}\n\nth code {\n color: inherit;\n}\n\n/* --- TOC --- */\n\n.toc a,\n.tof a {\n text-decoration: none;\n}\n\na .secno,\na .figno {\n color: #000;\n}\n\nul.tof,\nol.tof {\n list-style: none outside none;\n}\n\n.caption {\n margin-top: 0.5em;\n font-style: italic;\n}\n\n/* --- TABLE --- */\n\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\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,\n.section dl.eldef dd {\n margin-bottom: 0;\n}\n\n#issue-summary > ul,\n.respec-dfn-list {\n column-count: 2;\n}\n\n#issue-summary li,\n.respec-dfn-list li {\n list-style: none;\n}\n\ndetails.respec-tests-details {\n margin-left: 1em;\n display: inline-block;\n vertical-align: top;\n}\n\ndetails.respec-tests-details > * {\n padding-right: 2em;\n}\n\ndetails.respec-tests-details[open] {\n z-index: 999999;\n position: absolute;\n border: thin solid #cad3e2;\n border-radius: .3em;\n background-color: white;\n padding-bottom: .5em;\n}\n\ndetails.respec-tests-details[open] > summary {\n border-bottom: thin solid #cad3e2;\n padding-left: 1em;\n margin-bottom: 1em;\n line-height: 2em;\n}\n\ndetails.respec-tests-details > ul {\n width: 100%;\n margin-top: -0.3em;\n}\n\ndetails.respec-tests-details > li {\n padding-left: 1em;\n}\n\n@media print {\n .removeOnSave {\n display: none;\n }\n}\n'}),define("core/style",["exports","deps/text!core/css/respec2.css"],function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.name=void 0,e.run=function(e,t,n){e.noReSpecCSS&&i.remove();n()};var n,r=(n=t)&&n.__esModule?n:{default:n};e.name="core/style";const i=document.createElement("style");i.id="respec-mainstyle",i.textContent=r.default,document.head.appendChild(i)}),define("w3c/style",["exports","core/utils","core/pubsubhub"],function(e,t,n){Object.defineProperty(e,"__esModule",{value:!0}),e.name=void 0,e.run=function(e,r,i){if(!e.specStatus){const t="`respecConfig.specStatus` missing. Defaulting to 'base'.";e.specStatus="base",(0,n.pub)("warn",t)}let o="W3C-";switch(e.specStatus.toUpperCase()){case"CG-DRAFT":case"CG-FINAL":case"BG-DRAFT":case"BG-FINAL":o=e.specStatus.toLowerCase();break;case"FPWD":case"LC":case"WD-NOTE":case"LC-NOTE":o+="WD";break;case"WG-NOTE":case"FPWD-NOTE":o+="WG-NOTE.css";break;case"UNOFFICIAL":o+="UD";break;case"FINDING":case"FINDING-DRAFT":case"BASE":o="base.css";break;default:o+=e.specStatus}const a=function(e){let t="";switch(e){case null:case!0:t="2016";break;default:e&&!isNaN(e)&&(t=e.toString().trim())}return t}(e.useExperimentalStyles||"2016");a&&!e.noToc&&(0,n.sub)("end-all",function(){!function(e,t){const n=e.createElement("script");n.addEventListener("load",function(){window.location.hash&&(window.location=window.location)},{once:!0}),n.src=`https://www.w3.org/scripts/TR/${t}/fixup.js`,e.body.appendChild(n)}(r,a)},{once:!0});const s=`https://www.w3.org/StyleSheets/TR/${a?a+"/":""}${o}`;(0,t.linkCSS)(r,s),i()};e.name="w3c/style";const r=[{hint:"preconnect",href:"https://www.w3.org"},{hint:"preload",href:"https://www.w3.org/scripts/TR/2016/fixup.js",as:"script"},{hint:"preload",href:"https://www.w3.org/StyleSheets/TR/2016/base.css",as:"style"},{hint:"preload",href:"https://www.w3.org/StyleSheets/TR/2016/logos/W3C",as:"image"}].map(t.createResourceHint).reduce(function(e,t){return e.appendChild(t),e},document.createDocumentFragment());r.appendChild(function(){const e=document.createElement("link");return e.rel="stylesheet",e.href="https://www.w3.org/StyleSheets/TR/2016/base.css",e.classList.add("removeOnSave"),e}()),document.head.querySelector("meta[name=viewport]")||r.insertBefore(function(){const e=document.createElement("meta");return e.name="viewport",e.content=(0,t.toKeyValuePairs)({width:"device-width","initial-scale":"1","shrink-to-fit":"no"}).replace(/\"/g,""),e}(),r.firstChild),document.head.insertBefore(r,document.head.firstChild)}),define("core/github",["exports","core/l10n","core/pubsubhub"],function(e,t,n){Object.defineProperty(e,"__esModule",{value:!0}),e.name=void 0,e.fetchAll=o,e.fetch=async function(e){let t=await window.fetch(e);if(!t.ok)throw new Error("GitHub Response not OK. Probably exceeded request limit.");return await t.json()},e.fetchIndex=function(e,t){return o(e.replace(/\{[^}]+\}/,""),t)},e.run=async function(e){if(!e.hasOwnProperty("github")||!e.github)return;if("object"==typeof e.github&&!e.github.hasOwnProperty("repoURL"))return void(0,n.pub)("error","`respecConf.github` missing property `repoURL`. See https://github.com/w3c/respec/wiki/github");let t;try{t=new URL(e.github.repoURL||e.github)}catch(e){return void(0,n.pub)("error",`\`respecConf.github\` is not a valid URL? (${t})`)}if("https://github.com"!==t.origin)return void(0,n.pub)("error",`\`respecConf.github\` must be HTTPS and pointing to GitHub. (${t})`);const[r,o]=t.pathname.split("/").filter(e=>e);r&&o||(0,n.pub)("error","`respecConf.github` URL needs a path with, for example, w3c/my-spec");const a=e.github.branch||"gh-pages",s={otherLinks:[],shortName:o,edDraftURI:`https://${r.toLowerCase()}.github.io/${o}/`,githubAPI:`https://api.github.com/repos/${r}/${o}`,issueBase:`${t.href}${t.pathname.endsWith("/")?"":"/"}issues/`,pullBase:`${t.href}${t.pathname.endsWith("/")?"":"/"}pulls/`},l=`${t.href}${t.pathname.endsWith("/")?"":"/"}commits/${a}`,c={key:e.l10n.participate,data:[{value:`GitHub ${r}/${o}`,href:t},{value:e.l10n.file_a_bug,href:s.issueBase},{value:e.l10n.commit_history,href:l},{value:e.l10n.pull_requests,href:s.pullBase}]};Object.assign(e,i({},s,e)),e.otherLinks.unshift(c)};var r;(r=t)&&r.__esModule;var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};e.name="core/github";async function o(e,t={},n=[]){const r=new URL(e);r.searchParams&&!r.searchParams.has("per_page")&&r.searchParams.append("per_page","100");const i=new Request(r,{headers:t});i.headers.set("Accept","application/vnd.github.v3+json");const a=await window.fetch(i),s=await a.json();Array.isArray(s)&&n.push(...s);const l=(c=a.headers.get("Link"),(u=(c||"").match(/<([^>]+)>\s*;\s*rel="next"/))&&u[1]||null);var c,u;return l?o(l,t,n):n}}),define("core/data-include",["exports","core/pubsubhub","core/utils"],function(e,t,n){Object.defineProperty(e,"__esModule",{value:!0}),e.name=void 0,e.run=function(e,r,i){const o=Array.from(r.querySelectorAll("[data-include]")).map(async e=>{const r=e.dataset.include;if(!r)return;const i="include-"+String(Math.random()).substr(2);e.dataset.includeId=i;try{const o=await fetch(r),a=await o.text();!function(e,t,r){const i=document.querySelector(`[data-include-id=${t}]`),o=i.ownerDocument,a=(0,n.runTransforms)(e,i.dataset.oninclude,r),s="string"==typeof i.dataset.includeReplace;let l;switch(i.dataset.includeFormat){case"text":s?(l=o.createTextNode(a),i.parentNode.replaceChild(l,i)):i.textContent=a;break;default:if(i.innerHTML=a,s){for(l=o.createDocumentFragment();i.hasChildNodes();)l.append(i.removeChild(i.firstChild));i.parentNode.replaceChild(l,i)}}o.contains(i)&&(c=i,["data-include","data-include-format","data-include-replace","data-include-id","oninclude"].forEach(e=>c.removeAttribute(e)));var c}(a,i,r)}catch(n){const i=`\`data-include\` failed: \`${r}\` (${n.message}). See console for details.`;console.error("data-include failed for element: ",e,n),(0,t.pub)("error",i)}});Promise.all(o).then(i)};e.name="core/data-include"}),define("core/markdown",["exports","core/utils"],function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.name=void 0,e.run=function(e,t,n){const r=!!t.querySelector("[data-format=markdown]:not(body)"),s="markdown"===e.format;if(!s&&!r)return n();if(!s)return o(t.body).map(e=>{const t=i(e,e.ownerDocument);return{structuredInternals:t,elem:e}}).forEach(({elem:e,structuredInternals:t})=>{if(e.setAttribute("aria-busy","true"),"section"===t.firstElementChild.localName&&"section"===e.localName){const n=t.firstElementChild;for(n.remove();n.hasChildNodes();)e.appendChild(n.firstChild)}else e.innerHTML="";e.appendChild(t),e.setAttribute("aria-busy","false")}),n();const l=t.getElementById("respec-ui");l.remove();const c=t.createElement("html"),u=t.createElement("body");u.innerHTML=t.body.innerHTML,c.appendChild(u),a(c);const d=u.innerHTML.replace(/<p>\s*<\/p>/gm,"");u.innerHTML=d,p=u.querySelectorAll(".nolinks a[href]"),Array.from(p).forEach(e=>{const t=e.ownerDocument.createTextNode(e.textContent);e.parentElement.replaceChild(t,e)});var p;var f=i(u,t);u.appendChild(f),u.insertAdjacentElement("afterbegin",l),t.body.parentNode.replaceChild(u,t.body),n()};e.name="core/markdown";function n(e){return n=>{const r=Array.from(n.querySelectorAll(e));return r.reverse().forEach(e=>{e.innerHTML=(0,t.markdownToHtml)(e.innerHTML)}),r}}class r{constructor(e){this.doc=e,this.root=e.createDocumentFragment(),this.stack=[this.root],this.current=this.root}findPosition(e){return parseInt(e.tagName.charAt(1),10)}findParent(e){let t;for(;e>0;)if(e--,t=this.stack[e])return t}findHeader({firstChild:e}){for(;e;){if(/H[1-6]/.test(e.tagName))return e;e=e.nextSibling}return null}addHeader(e){const t=this.doc.createElement("section"),n=this.findPosition(e);t.appendChild(e),this.findParent(n).appendChild(t),this.stack[n]=t,this.stack.length=n+1,this.current=t}addSection(e,t){const n=this.findHeader(e),r=n?this.findPosition(n):1,i=this.findParent(r);n&&e.removeChild(n),e.appendChild(t(e)),n&&e.insertBefore(n,e.firstChild),i.appendChild(e),this.current=i}addElement(e){this.current.appendChild(e)}}function i(e,t){return function e(n){const i=new r(t);for(;n.firstChild;){const t=n.firstChild;if(t.nodeType===Node.ELEMENT_NODE)switch(t.localName){case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":i.addHeader(t);break;case"section":i.addSection(t,e);break;default:i.addElement(t)}else n.removeChild(t)}return i.root}(e)}const o=n("[data-format='markdown']:not(body)"),a=n("[data-format=markdown]:not(body), section, div, address, article, aside, figure, header, main, body")}),Nfa=this,Ofa=function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={exports:{},id:r,loaded:!1};return e[r].call(i.exports,i,i.exports,n),i.loaded=!0,i.exports}return n.m=e,n.c=t,n.p="",n(0)}([function(e,t,n){var r=n(1).default,i=n(2).default;t.__esModule=!0;var o=r(n(3)),a=i(n(20)),s=i(n(5)),l=r(n(4)),c=r(n(21)),u=i(n(33));function d(){var e=new o.HandlebarsEnvironment;return l.extend(e,o),e.SafeString=a.default,e.Exception=s.default,e.Utils=l,e.escapeExpression=l.escapeExpression,e.VM=c,e.template=function(t){return c.template(t,e)},e}var p=d();p.create=d,u.default(p),p.default=p,t.default=p,e.exports=t.default},function(e,t){t.default=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t},t.__esModule=!0},function(e,t){t.default=function(e){return e&&e.__esModule?e:{default:e}},t.__esModule=!0},function(e,t,n){var r=n(2).default;t.__esModule=!0,t.HandlebarsEnvironment=u;var i=n(4),o=r(n(5)),a=n(9),s=n(17),l=r(n(19));t.VERSION="4.0.11";t.COMPILER_REVISION=7;t.REVISION_CHANGES={1:"<= 1.0.rc.2",2:"== 1.0.0-rc.3",3:"== 1.0.0-rc.4",4:"== 1.x.x",5:"== 2.0.0-alpha.x",6:">= 2.0.0-beta.1",7:">= 4.0.0"};var c="[object Object]";function u(e,t,n){this.helpers=e||{},this.partials=t||{},this.decorators=n||{},a.registerDefaultHelpers(this),s.registerDefaultDecorators(this)}u.prototype={constructor:u,logger:l.default,log:l.default.log,registerHelper:function(e,t){if(i.toString.call(e)===c){if(t)throw new o.default("Arg not supported with multiple helpers");i.extend(this.helpers,e)}else this.helpers[e]=t},unregisterHelper:function(e){delete this.helpers[e]},registerPartial:function(e,t){if(i.toString.call(e)===c)i.extend(this.partials,e);else{if(void 0===t)throw new o.default('Attempting to register a partial called "'+e+'" as undefined');this.partials[e]=t}},unregisterPartial:function(e){delete this.partials[e]},registerDecorator:function(e,t){if(i.toString.call(e)===c){if(t)throw new o.default("Arg not supported with multiple decorators");i.extend(this.decorators,e)}else this.decorators[e]=t},unregisterDecorator:function(e){delete this.decorators[e]}};var d=l.default.log;t.log=d,t.createFrame=i.createFrame,t.logger=l.default},function(e,t){t.__esModule=!0,t.extend=a,t.indexOf=function(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1},t.escapeExpression=function(e){if("string"!=typeof e){if(e&&e.toHTML)return e.toHTML();if(null==e)return"";if(!e)return e+"";e=""+e}if(!i.test(e))return e;return e.replace(r,o)},t.isEmpty=function(e){return!e&&0!==e||!(!c(e)||0!==e.length)},t.createFrame=function(e){var t=a({},e);return t._parent=e,t},t.blockParams=function(e,t){return e.path=t,e},t.appendContextPath=function(e,t){return(e?e+".":"")+t};var n={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`","=":"="},r=/[&<>"'`=]/g,i=/[&<>"'`=]/;function o(e){return n[e]}function a(e){for(var t=1;t<arguments.length;t++)for(var n in arguments[t])Object.prototype.hasOwnProperty.call(arguments[t],n)&&(e[n]=arguments[t][n]);return e}var s=Object.prototype.toString;t.toString=s;var l=function(e){return"function"==typeof e};l(/x/)&&(t.isFunction=l=function(e){return"function"==typeof e&&"[object Function]"===s.call(e)}),t.isFunction=l;var c=Array.isArray||function(e){return!(!e||"object"!=typeof e)&&"[object Array]"===s.call(e)};t.isArray=c},function(e,t,n){var r=n(6).default;t.__esModule=!0;var i=["description","fileName","lineNumber","message","name","number","stack"];function o(e,t){var n=t&&t.loc,a=void 0,s=void 0;n&&(e+=" - "+(a=n.start.line)+":"+(s=n.start.column));for(var l=Error.prototype.constructor.call(this,e),c=0;c<i.length;c++)this[i[c]]=l[i[c]];Error.captureStackTrace&&Error.captureStackTrace(this,o);try{n&&(this.lineNumber=a,r?Object.defineProperty(this,"column",{value:s,enumerable:!0}):this.column=s)}catch(e){}}o.prototype=new Error,t.default=o,e.exports=t.default},function(e,t,n){e.exports={default:n(7),__esModule:!0}},function(e,t,n){var r=n(8);e.exports=function(e,t,n){return r.setDesc(e,t,n)}},function(e,t){var n=Object;e.exports={create:n.create,getProto:n.getPrototypeOf,isEnum:{}.propertyIsEnumerable,getDesc:n.getOwnPropertyDescriptor,setDesc:n.defineProperty,setDescs:n.defineProperties,getKeys:n.keys,getNames:n.getOwnPropertyNames,getSymbols:n.getOwnPropertySymbols,each:[].forEach}},function(e,t,n){var r=n(2).default;t.__esModule=!0,t.registerDefaultHelpers=function(e){i.default(e),o.default(e),a.default(e),s.default(e),l.default(e),c.default(e),u.default(e)};var i=r(n(10)),o=r(n(11)),a=r(n(12)),s=r(n(13)),l=r(n(14)),c=r(n(15)),u=r(n(16))},function(e,t,n){t.__esModule=!0;var r=n(4);t.default=function(e){e.registerHelper("blockHelperMissing",function(t,n){var i=n.inverse,o=n.fn;if(!0===t)return o(this);if(!1===t||null==t)return i(this);if(r.isArray(t))return t.length>0?(n.ids&&(n.ids=[n.name]),e.helpers.each(t,n)):i(this);if(n.data&&n.ids){var a=r.createFrame(n.data);a.contextPath=r.appendContextPath(n.data.contextPath,n.name),n={data:a}}return o(t,n)})},e.exports=t.default},function(e,t,n){var r=n(2).default;t.__esModule=!0;var i=n(4),o=r(n(5));t.default=function(e){e.registerHelper("each",function(e,t){if(!t)throw new o.default("Must pass iterator to #each");var n=t.fn,r=t.inverse,a=0,s="",l=void 0,c=void 0;function u(t,r,o){l&&(l.key=t,l.index=r,l.first=0===r,l.last=!!o,c&&(l.contextPath=c+t)),s+=n(e[t],{data:l,blockParams:i.blockParams([e[t],t],[c+t,null])})}if(t.data&&t.ids&&(c=i.appendContextPath(t.data.contextPath,t.ids[0])+"."),i.isFunction(e)&&(e=e.call(this)),t.data&&(l=i.createFrame(t.data)),e&&"object"==typeof e)if(i.isArray(e))for(var d=e.length;a<d;a++)a in e&&u(a,a,a===e.length-1);else{var p=void 0;for(var f in e)e.hasOwnProperty(f)&&(void 0!==p&&u(p,a-1),p=f,a++);void 0!==p&&u(p,a-1,!0)}return 0===a&&(s=r(this)),s})},e.exports=t.default},function(e,t,n){var r=n(2).default;t.__esModule=!0;var i=r(n(5));t.default=function(e){e.registerHelper("helperMissing",function(){if(1!==arguments.length)throw new i.default('Missing helper: "'+arguments[arguments.length-1].name+'"')})},e.exports=t.default},function(e,t,n){t.__esModule=!0;var r=n(4);t.default=function(e){e.registerHelper("if",function(e,t){return r.isFunction(e)&&(e=e.call(this)),!t.hash.includeZero&&!e||r.isEmpty(e)?t.inverse(this):t.fn(this)}),e.registerHelper("unless",function(t,n){return e.helpers.if.call(this,t,{fn:n.inverse,inverse:n.fn,hash:n.hash})})},e.exports=t.default},function(e,t){t.__esModule=!0,t.default=function(e){e.registerHelper("log",function(){for(var t=[void 0],n=arguments[arguments.length-1],r=0;r<arguments.length-1;r++)t.push(arguments[r]);var i=1;null!=n.hash.level?i=n.hash.level:n.data&&null!=n.data.level&&(i=n.data.level),t[0]=i,e.log.apply(e,t)})},e.exports=t.default},function(e,t){t.__esModule=!0,t.default=function(e){e.registerHelper("lookup",function(e,t){return e&&e[t]})},e.exports=t.default},function(e,t,n){t.__esModule=!0;var r=n(4);t.default=function(e){e.registerHelper("with",function(e,t){r.isFunction(e)&&(e=e.call(this));var n=t.fn;if(r.isEmpty(e))return t.inverse(this);var i=t.data;return t.data&&t.ids&&((i=r.createFrame(t.data)).contextPath=r.appendContextPath(t.data.contextPath,t.ids[0])),n(e,{data:i,blockParams:r.blockParams([e],[i&&i.contextPath])})})},e.exports=t.default},function(e,t,n){var r=n(2).default;t.__esModule=!0,t.registerDefaultDecorators=function(e){i.default(e)};var i=r(n(18))},function(e,t,n){t.__esModule=!0;var r=n(4);t.default=function(e){e.registerDecorator("inline",function(e,t,n,i){var o=e;return t.partials||(t.partials={},o=function(i,o){var a=n.partials;n.partials=r.extend({},a,t.partials);var s=e(i,o);return n.partials=a,s}),t.partials[i.args[0]]=i.fn,o})},e.exports=t.default},function(e,t,n){t.__esModule=!0;var r=n(4),i={methodMap:["debug","info","warn","error"],level:"info",lookupLevel:function(e){if("string"==typeof e){var t=r.indexOf(i.methodMap,e.toLowerCase());e=t>=0?t:parseInt(e,10)}return e},log:function(e){if(e=i.lookupLevel(e),"undefined"!=typeof console&&i.lookupLevel(i.level)<=e){var t=i.methodMap[e];console[t]||(t="log");for(var n=arguments.length,r=Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];console[t].apply(console,r)}}};t.default=i,e.exports=t.default},function(e,t){function n(e){this.string=e}t.__esModule=!0,n.prototype.toString=n.prototype.toHTML=function(){return""+this.string},t.default=n,e.exports=t.default},function(e,t,n){var r=n(22).default,i=n(1).default,o=n(2).default;t.__esModule=!0,t.checkRevision=function(e){var t=e&&e[0]||1,n=l.COMPILER_REVISION;if(t!==n){if(t<n){var r=l.REVISION_CHANGES[n],i=l.REVISION_CHANGES[t];throw new s.default("Template was precompiled with an older version of Handlebars than the current runtime. Please update your precompiler to a newer version ("+r+") or downgrade your runtime to an older version ("+i+").")}throw new s.default("Template was precompiled with a newer version of Handlebars than the current runtime. Please update your runtime to a newer version ("+e[1]+").")}},t.template=function(e,t){if(!t)throw new s.default("No environment passed to template");if(!e||!e.main)throw new s.default("Unknown template object: "+typeof e);e.main.decorator=e.main_d,t.VM.checkRevision(e.compiler);var n={strict:function(e,t){if(!(t in e))throw new s.default('"'+t+'" not defined in '+e);return e[t]},lookup:function(e,t){for(var n=e.length,r=0;r<n;r++)if(e[r]&&null!=e[r][t])return e[r][t]},lambda:function(e,t){return"function"==typeof e?e.call(t):e},escapeExpression:a.escapeExpression,invokePartial:function(n,r,i){i.hash&&(r=a.extend({},r,i.hash),i.ids&&(i.ids[0]=!0));n=t.VM.resolvePartial.call(this,n,r,i);var o=t.VM.invokePartial.call(this,n,r,i);null==o&&t.compile&&(i.partials[i.name]=t.compile(n,e.compilerOptions,t),o=i.partials[i.name](r,i));if(null!=o){if(i.indent){for(var l=o.split("\n"),c=0,u=l.length;c<u&&(l[c]||c+1!==u);c++)l[c]=i.indent+l[c];o=l.join("\n")}return o}throw new s.default("The partial "+i.name+" could not be compiled when running in runtime-only mode")},fn:function(t){var n=e[t];return n.decorator=e[t+"_d"],n},programs:[],program:function(e,t,n,r,i){var o=this.programs[e],a=this.fn(e);return t||i||r||n?o=c(this,e,a,t,n,r,i):o||(o=this.programs[e]=c(this,e,a)),o},data:function(e,t){for(;e&&t--;)e=e._parent;return e},merge:function(e,t){var n=e||t;return e&&t&&e!==t&&(n=a.extend({},t,e)),n},nullContext:r({}),noop:t.VM.noop,compilerInfo:e.compiler};function i(t){var r=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],o=r.data;i._setup(r),!r.partial&&e.useData&&(o=function(e,t){t&&"root"in t||((t=t?l.createFrame(t):{}).root=e);return t}(t,o));var a=void 0,s=e.useBlockParams?[]:void 0;function c(t){return""+e.main(n,t,n.helpers,n.partials,o,s,a)}return e.useDepths&&(a=r.depths?t!=r.depths[0]?[t].concat(r.depths):r.depths:[t]),(c=d(e.main,c,n,r.depths||[],o,s))(t,r)}return i.isTop=!0,i._setup=function(r){r.partial?(n.helpers=r.helpers,n.partials=r.partials,n.decorators=r.decorators):(n.helpers=n.merge(r.helpers,t.helpers),e.usePartial&&(n.partials=n.merge(r.partials,t.partials)),(e.usePartial||e.useDecorators)&&(n.decorators=n.merge(r.decorators,t.decorators)))},i._child=function(t,r,i,o){if(e.useBlockParams&&!i)throw new s.default("must pass block params");if(e.useDepths&&!o)throw new s.default("must pass parent depths");return c(n,t,e[t],r,0,i,o)},i},t.wrapProgram=c,t.resolvePartial=function(e,t,n){e?e.call||n.name||(n.name=e,e=n.partials[e]):e="@partial-block"===n.name?n.data["partial-block"]:n.partials[n.name];return e},t.invokePartial=function(e,t,n){var r=n.data&&n.data["partial-block"];n.partial=!0,n.ids&&(n.data.contextPath=n.ids[0]||n.data.contextPath);var i=void 0;n.fn&&n.fn!==u&&function(){n.data=l.createFrame(n.data);var e=n.fn;i=n.data["partial-block"]=function(t){var n=arguments.length<=1||void 0===arguments[1]?{}:arguments[1];return n.data=l.createFrame(n.data),n.data["partial-block"]=r,e(t,n)},e.partials&&(n.partials=a.extend({},n.partials,e.partials))}();void 0===e&&i&&(e=i);if(void 0===e)throw new s.default("The partial "+n.name+" could not be found");if(e instanceof Function)return e(t,n)},t.noop=u;var a=i(n(4)),s=o(n(5)),l=n(3);function c(e,t,n,r,i,o,a){function s(t){var i=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],s=a;return!a||t==a[0]||t===e.nullContext&&null===a[0]||(s=[t].concat(a)),n(e,t,e.helpers,e.partials,i.data||r,o&&[i.blockParams].concat(o),s)}return(s=d(n,s,e,a,r,o)).program=t,s.depth=a?a.length:0,s.blockParams=i||0,s}function u(){return""}function d(e,t,n,r,i,o){if(e.decorator){var s={};t=e.decorator(t,s,n,r&&r[0],i,o,r),a.extend(t,s)}return t}},function(e,t,n){e.exports={default:n(23),__esModule:!0}},function(e,t,n){n(24),e.exports=n(29).Object.seal},function(e,t,n){var r=n(25);n(26)("seal",function(e){return function(t){return e&&r(t)?e(t):t}})},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t,n){var r=n(27),i=n(29),o=n(32);e.exports=function(e,t){var n=(i.Object||{})[e]||Object[e],a={};a[e]=t(n),r(r.S+r.F*o(function(){n(1)}),"Object",a)}},function(e,t,n){var r=n(28),i=n(29),o=n(30),a="prototype",s=function(e,t,n){var l,c,u,d=e&s.F,p=e&s.G,f=e&s.S,h=e&s.P,m=e&s.B,g=e&s.W,b=p?i:i[t]||(i[t]={}),y=p?r:f?r[t]:(r[t]||{})[a];p&&(n=t);for(l in n)(c=!d&&y&&l in y)&&l in b||(u=c?y[l]:n[l],b[l]=p&&"function"!=typeof y[l]?n[l]:m&&c?o(u,r):g&&y[l]==u?function(e){var t=function(t){return this instanceof e?new e(t):e(t)};return t[a]=e[a],t}(u):h&&"function"==typeof u?o(Function.call,u):u,h&&((b[a]||(b[a]={}))[l]=u))};s.F=1,s.G=2,s.S=4,s.P=8,s.B=16,s.W=32,e.exports=s},function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(e,t){var n=e.exports={version:"1.2.6"};"number"==typeof __e&&(__e=n)},function(e,t,n){var r=n(31);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)}}return function(){return e.apply(t,arguments)}}},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t){(function(n){t.__esModule=!0,t.default=function(e){var t=void 0!==n?n:window,r=t.Handlebars;e.noConflict=function(){return t.Handlebars===e&&(t.Handlebars=r),e}},e.exports=t.default}).call(t,function(){return this}())}])},"object"==typeof exports&&"object"==typeof module?module.exports=Ofa():"function"==typeof define&&define.amd?define("handlebars.runtime",[],Ofa):"object"==typeof exports?exports.Handlebars=Ofa():Nfa.Handlebars=Ofa(),define("templates",["handlebars.runtime"],function(e){var t=(e=e.default).template,n=e.templates=e.templates||{};return n["permalinks.css"]=t({1:function(e,t,n,r,i){return" section > *:hover > span.permalink { visibility: visible; }\n"},3:function(e,t,n,r,i){return" float: right;\n"},5:function(e,t,n,r,i){return" visibility: hidden;\n"},compiler:[7,">= 4.0.0"],main:function(e,t,n,r,i){var o,a=null!=t?t:e.nullContext||{};return"/* --- PERMALINKS --- */\n"+(null!=(o=n.if.call(a,null!=t?t.permalinkHide:t,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i}))?o:"")+"\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"+(null!=(o=n.if.call(a,null!=t?t.permalinkEdge:t,{name:"if",hash:{},fn:e.program(3,i,0),inverse:e.noop,data:i}))?o:"")+(null!=(o=n.if.call(a,null!=t?t.permalinkHide:t,{name:"if",hash:{},fn:e.program(5,i,0),inverse:e.noop,data:i}))?o:"")+"}\n\n.permalink a, .permalink a:link, .permalink a:visited, .permalink a:hover, .permalink a:focus, .permalink a:active {\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"},useData:!0}),n["attribute.html"]=t({1:function(e,t,n,r,i){var o;return e.escapeExpression((n.escapeAttributeName||t&&t.escapeAttributeName||n.helperMissing).call(null!=t?t:e.nullContext||{},null!=(o=null!=t?t.obj:t)?o.name:o,{name:"escapeAttributeName",hash:{},data:i}))},compiler:[7,">= 4.0.0"],main:function(e,t,n,r,i){var o,a,s=e.lambda,l=e.escapeExpression,c=null!=t?t:e.nullContext||{},u=n.helperMissing;return"<span class='idlAttribute' id=\""+l(s(null!=(o=null!=t?t.obj:t)?o.idlId:o,t))+"\" data-idl data-title='"+l(s(null!=(o=null!=t?t.obj:t)?o.name:o,t))+"'>"+l((n.extAttr||t&&t.extAttr||u).call(c,null!=t?t.obj:t,null!=t?t.indent:t,{name:"extAttr",hash:{},data:i}))+l((n.idn||t&&t.idn||u).call(c,null!=t?t.indent:t,{name:"idn",hash:{},data:i}))+l("function"==typeof(a=null!=(a=n.qualifiers||(null!=t?t.qualifiers:t))?a:u)?a.call(c,{name:"qualifiers",hash:{},data:i}):a)+"attribute <span class='idlAttrType'>"+l((n.idlType||t&&t.idlType||u).call(c,null!=t?t.obj:t,{name:"idlType",hash:{},data:i}))+"</span> "+l((n.pads||t&&t.pads||u).call(c,null!=t?t.pad:t,{name:"pads",hash:{},data:i}))+"<span class='idlAttrName'>"+(null!=(o=(n.tryLink||t&&t.tryLink||u).call(c,null!=t?t.obj:t,{name:"tryLink",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i}))?o:"")+"</span>;</span>\n"},useData:!0}),n["callback.html"]=t({1:function(e,t,n,r,i){var o;return e.escapeExpression(e.lambda(null!=(o=null!=t?t.obj:t)?o.name:o,t))},compiler:[7,">= 4.0.0"],main:function(e,t,n,r,i){var o,a,s=e.lambda,l=e.escapeExpression,c=null!=t?t:e.nullContext||{},u=n.helperMissing;return"<span class='idlCallback' id='"+l(s(null!=(o=null!=t?t.obj:t)?o.idlId:o,t))+"' data-idl data-title='"+l(s(null!=(o=null!=t?t.obj:t)?o.name:o,t))+"'>"+l((n.extAttr||t&&t.extAttr||u).call(c,null!=t?t.obj:t,null!=t?t.indent:t,{name:"extAttr",hash:{},data:i}))+l((n.idn||t&&t.idn||u).call(c,null!=t?t.indent:t,{name:"idn",hash:{},data:i}))+"callback <span class='idlCallbackID'>"+(null!=(o=(n.tryLink||t&&t.tryLink||u).call(c,null!=t?t.obj:t,{name:"tryLink",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i}))?o:"")+"</span> = <span class='idlCallbackType'>"+l((n.idlType||t&&t.idlType||u).call(c,null!=t?t.obj:t,{name:"idlType",hash:{},data:i}))+"</span> ("+(null!=(o="function"==typeof(a=null!=(a=n.children||(null!=t?t.children:t))?a:u)?a.call(c,{name:"children",hash:{},data:i}):a)?o:"")+");</span>"},useData:!0}),n["const.html"]=t({1:function(e,t,n,r,i){var o;return e.escapeExpression(e.lambda(null!=(o=null!=t?t.obj:t)?o.name:o,t))},compiler:[7,">= 4.0.0"],main:function(e,t,n,r,i){var o,a,s=e.lambda,l=e.escapeExpression,c=null!=t?t:e.nullContext||{},u=n.helperMissing;return"<span class='idlConst' id=\""+l(s(null!=(o=null!=t?t.obj:t)?o.idlId:o,t))+"\" data-idl data-title='"+l(s(null!=(o=null!=t?t.obj:t)?o.name:o,t))+"'>"+l((n.extAttr||t&&t.extAttr||u).call(c,null!=t?t.obj:t,null!=t?t.indent:t,{name:"extAttr",hash:{},data:i}))+l((n.idn||t&&t.idn||u).call(c,null!=t?t.indent:t,{name:"idn",hash:{},data:i}))+"const <span class='idlConstType'>"+l((n.idlType||t&&t.idlType||u).call(c,null!=t?t.obj:t,{name:"idlType",hash:{},data:i}))+"</span>"+l("function"==typeof(a=null!=(a=n.nullable||(null!=t?t.nullable:t))?a:u)?a.call(c,{name:"nullable",hash:{},data:i}):a)+" "+l((n.pads||t&&t.pads||u).call(c,null!=t?t.pad:t,{name:"pads",hash:{},data:i}))+"<span class='idlConstName'>"+(null!=(o=(n.tryLink||t&&t.tryLink||u).call(c,null!=t?t.obj:t,{name:"tryLink",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i}))?o:"")+"</span> = <span class='idlConstValue'>"+l((n.stringifyIdlConst||t&&t.stringifyIdlConst||u).call(c,null!=(o=null!=t?t.obj:t)?o.value:o,{name:"stringifyIdlConst",hash:{},data:i}))+"</span>;</span>\n"},useData:!0}),n["dict-member.html"]=t({1:function(e,t,n,r,i){var o;return e.escapeExpression(e.lambda(null!=(o=null!=t?t.obj:t)?o.name:o,t))},3:function(e,t,n,r,i){var o;return" = <span class='idlMemberValue'>"+e.escapeExpression((n.stringifyIdlConst||t&&t.stringifyIdlConst||n.helperMissing).call(null!=t?t:e.nullContext||{},null!=(o=null!=t?t.obj:t)?o.default:o,{name:"stringifyIdlConst",hash:{},data:i}))+"</span>"},compiler:[7,">= 4.0.0"],main:function(e,t,n,r,i){var o,a,s=e.lambda,l=e.escapeExpression,c=null!=t?t:e.nullContext||{},u=n.helperMissing;return"<span class='idlMember' id=\""+l(s(null!=(o=null!=t?t.obj:t)?o.idlId:o,t))+"\" data-idl data-title='"+l(s(null!=(o=null!=t?t.obj:t)?o.name:o,t))+"'>"+l((n.extAttr||t&&t.extAttr||u).call(c,null!=t?t.obj:t,null!=t?t.indent:t,{name:"extAttr",hash:{},data:i}))+l((n.idn||t&&t.idn||u).call(c,null!=t?t.indent:t,{name:"idn",hash:{},data:i}))+l("function"==typeof(a=null!=(a=n.qualifiers||(null!=t?t.qualifiers:t))?a:u)?a.call(c,{name:"qualifiers",hash:{},data:i}):a)+"<span class='idlMemberType'>"+l((n.idlType||t&&t.idlType||u).call(c,null!=t?t.obj:t,{name:"idlType",hash:{},data:i}))+"</span> "+l((n.pads||t&&t.pads||u).call(c,null!=t?t.typePad:t,{name:"pads",hash:{},data:i}))+"<span class='idlMemberName'>"+(null!=(o=(n.tryLink||t&&t.tryLink||u).call(c,null!=t?t.obj:t,{name:"tryLink",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i}))?o:"")+"</span>"+(null!=(o=n.if.call(c,null!=(o=null!=t?t.obj:t)?o.default:o,{name:"if",hash:{},fn:e.program(3,i,0),inverse:e.noop,data:i}))?o:"")+";</span>\n"},useData:!0}),n["dictionary.html"]=t({1:function(e,t,n,r,i){var o;return e.escapeExpression(e.lambda(null!=(o=null!=t?t.obj:t)?o.name:o,t))},3:function(e,t,n,r,i){var o;return" : <span class='idlSuperclass'><a>"+e.escapeExpression(e.lambda(null!=(o=null!=t?t.obj:t)?o.inheritance:o,t))+"</a></span>"},compiler:[7,">= 4.0.0"],main:function(e,t,n,r,i){var o,a,s=e.lambda,l=e.escapeExpression,c=null!=t?t:e.nullContext||{},u=n.helperMissing;return"<span class='idlDictionary' id='"+l(s(null!=(o=null!=t?t.obj:t)?o.idlId:o,t))+"' data-idl data-title='"+l(s(null!=(o=null!=t?t.obj:t)?o.name:o,t))+"'>"+l((n.extAttr||t&&t.extAttr||u).call(c,null!=t?t.obj:t,null!=t?t.indent:t,{name:"extAttr",hash:{},data:i}))+l((n.idn||t&&t.idn||u).call(c,null!=t?t.indent:t,{name:"idn",hash:{},data:i}))+l("function"==typeof(a=null!=(a=n.partial||(null!=t?t.partial:t))?a:u)?a.call(c,{name:"partial",hash:{},data:i}):a)+"dictionary <span class='idlDictionaryID'>"+(null!=(o=(n.tryLink||t&&t.tryLink||u).call(c,null!=t?t.obj:t,{name:"tryLink",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i}))?o:"")+"</span>"+(null!=(o=n.if.call(c,null!=(o=null!=t?t.obj:t)?o.inheritance:o,{name:"if",hash:{},fn:e.program(3,i,0),inverse:e.noop,data:i}))?o:"")+" {\n"+(null!=(o="function"==typeof(a=null!=(a=n.children||(null!=t?t.children:t))?a:u)?a.call(c,{name:"children",hash:{},data:i}):a)?o:"")+"};</span>"},useData:!0}),n["enum-item.html"]=t({1:function(e,t,n,r,i){return","},compiler:[7,">= 4.0.0"],main:function(e,t,n,r,i){var o,a,s=null!=t?t:e.nullContext||{},l=n.helperMissing,c=e.escapeExpression,u="function";return c((n.idn||t&&t.idn||l).call(s,null!=t?t.indent:t,{name:"idn",hash:{},data:i}))+'<a href="#dom-'+c(typeof(a=null!=(a=n.parentID||(null!=t?t.parentID:t))?a:l)===u?a.call(s,{name:"parentID",hash:{},data:i}):a)+"-"+c(typeof(a=null!=(a=n.lname||(null!=t?t.lname:t))?a:l)===u?a.call(s,{name:"lname",hash:{},data:i}):a)+'" class="idlEnumItem">"'+c(typeof(a=null!=(a=n.name||(null!=t?t.name:t))?a:l)===u?a.call(s,{name:"name",hash:{},data:i}):a)+'"</a>'+(null!=(o=n.if.call(s,null!=t?t.needsComma:t,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i}))?o:"")+"\n"},useData:!0}),n["enum.html"]=t({1:function(e,t,n,r,i){var o;return e.escapeExpression(e.lambda(null!=(o=null!=t?t.obj:t)?o.name:o,t))},compiler:[7,">= 4.0.0"],main:function(e,t,n,r,i){var o,a,s=e.lambda,l=e.escapeExpression,c=null!=t?t:e.nullContext||{},u=n.helperMissing;return"<span class='idlEnum' id='"+l(s(null!=(o=null!=t?t.obj:t)?o.idlId:o,t))+"' data-idl data-title='"+l(s(null!=(o=null!=t?t.obj:t)?o.name:o,t))+"'>"+l((n.extAttr||t&&t.extAttr||u).call(c,null!=t?t.obj:t,null!=t?t.indent:t,{name:"extAttr",hash:{},data:i}))+l((n.idn||t&&t.idn||u).call(c,null!=t?t.indent:t,{name:"idn",hash:{},data:i}))+"enum <span class='idlEnumID'>"+(null!=(o=(n.tryLink||t&&t.tryLink||u).call(c,null!=t?t.obj:t,{name:"tryLink",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i}))?o:"")+"</span> {\n"+(null!=(o="function"==typeof(a=null!=(a=n.children||(null!=t?t.children:t))?a:u)?a.call(c,{name:"children",hash:{},data:i}):a)?o:"")+l((n.idn||t&&t.idn||u).call(c,null!=t?t.indent:t,{name:"idn",hash:{},data:i}))+"};</span>"},useData:!0}),n["extended-attribute.html"]=t({1:function(e,t,n,r,i){var o,a,s=null!=t?t:e.nullContext||{},l=n.helperMissing,c=e.escapeExpression;return"<span class='"+c("function"==typeof(a=null!=(a=n.extAttrClassName||(null!=t?t.extAttrClassName:t))?a:l)?a.call(s,{name:"extAttrClassName",hash:{},data:i}):a)+'\'><span class="extAttrName">'+c("function"==typeof(a=null!=(a=n.name||(null!=t?t.name:t))?a:l)?a.call(s,{name:"name",hash:{},data:i}):a)+"</span>"+(null!=(o=n.if.call(s,null!=t?t.rhs:t,{name:"if",hash:{},fn:e.program(2,i,0),inverse:e.noop,data:i}))?o:"")+(null!=(o=(n.jsIf||t&&t.jsIf||l).call(s,null!=t?t.arguments:t,{name:"jsIf",hash:{},fn:e.program(5,i,0),inverse:e.noop,data:i}))?o:"")+"</span>"},2:function(e,t,n,r,i){var o;return'=<span class="extAttrRhs">'+(null!=(o=(n.extAttrRhs||t&&t.extAttrRhs||n.helperMissing).call(null!=t?t:e.nullContext||{},null!=t?t.rhs:t,{name:"extAttrRhs",hash:{},fn:e.program(3,i,0),inverse:e.noop,data:i}))?o:"")+"</span>"},3:function(e,t,n,r,i){return e.escapeExpression(e.lambda(t,t))},5:function(e,t,n,r,i){var o;return"("+(null!=(o=(n.joinNonWhitespace||t&&t.joinNonWhitespace||n.helperMissing).call(null!=t?t:e.nullContext||{},null!=t?t.arguments:t,", ",{name:"joinNonWhitespace",hash:{},fn:e.program(6,i,0),inverse:e.noop,data:i}))?o:"")+")"},6:function(e,t,n,r,i){return e.escapeExpression((n.param||t&&t.param||n.helperMissing).call(null!=t?t:e.nullContext||{},t,{name:"param",hash:{},data:i}))},compiler:[7,">= 4.0.0"],main:function(e,t,n,r,i){var o,a,s=null!=t?t:e.nullContext||{},l=n.helperMissing,c=e.escapeExpression;return c((n.idn||t&&t.idn||l).call(s,null!=t?t.indent:t,{name:"idn",hash:{},data:i}))+"["+(null!=(o=(n.join||t&&t.join||l).call(s,null!=t?t.extAttrs:t,null!=t?t.sep:t,{name:"join",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i}))?o:"")+"]"+c("function"==typeof(a=null!=(a=n.end||(null!=t?t.end:t))?a:l)?a.call(s,{name:"end",hash:{},data:i}):a)},useData:!0}),n["field.html"]=t({1:function(e,t,n,r,i){var o;return e.escapeExpression(e.lambda(null!=(o=null!=t?t.obj:t)?o.name:o,t))},compiler:[7,">= 4.0.0"],main:function(e,t,n,r,i){var o,a=e.lambda,s=e.escapeExpression,l=null!=t?t:e.nullContext||{},c=n.helperMissing;return"<span class='idlField' id=\""+s(a(null!=(o=null!=t?t.obj:t)?o.idlId:o,t))+"\" data-idl data-title='"+s(a(null!=(o=null!=t?t.obj:t)?o.name:o,t))+"'>"+s((n.extAttr||t&&t.extAttr||c).call(l,null!=t?t.obj:t,null!=t?t.indent:t,{name:"extAttr",hash:{},data:i}))+s((n.idn||t&&t.idn||c).call(l,null!=t?t.indent:t,{name:"idn",hash:{},data:i}))+"<span class='idlFieldType'>"+s((n.idlType||t&&t.idlType||c).call(l,null!=t?t.obj:t,{name:"idlType",hash:{},data:i}))+"</span> "+s((n.pads||t&&t.pads||c).call(l,null!=t?t.pad:t,{name:"pads",hash:{},data:i}))+"<span class='idlFieldName'>"+(null!=(o=(n.tryLink||t&&t.tryLink||c).call(l,null!=t?t.obj:t,{name:"tryLink",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i}))?o:"")+"</span>;</span>\n"},useData:!0}),n["implements.html"]=t({compiler:[7,">= 4.0.0"],main:function(e,t,n,r,i){var o,a=null!=t?t:e.nullContext||{},s=n.helperMissing,l=e.escapeExpression,c=e.lambda;return"<span class='idlImplements'>"+l((n.extAttr||t&&t.extAttr||s).call(a,null!=t?t.obj:t,null!=t?t.indent:t,{name:"extAttr",hash:{},data:i}))+l((n.idn||t&&t.idn||s).call(a,null!=t?t.indent:t,{name:"idn",hash:{},data:i}))+"<a>"+l(c(null!=(o=null!=t?t.obj:t)?o.target:o,t))+"</a> implements <a>"+l(c(null!=(o=null!=t?t.obj:t)?o.implements:o,t))+"</a>;</span>"},useData:!0}),n["includes.html"]=t({compiler:[7,">= 4.0.0"],main:function(e,t,n,r,i){var o,a=null!=t?t:e.nullContext||{},s=n.helperMissing,l=e.escapeExpression,c=e.lambda;return"<span class='idlIncludes'>"+l((n.extAttr||t&&t.extAttr||s).call(a,null!=t?t.obj:t,null!=t?t.indent:t,{name:"extAttr",hash:{},data:i}))+l((n.idn||t&&t.idn||s).call(a,null!=t?t.indent:t,{name:"idn",hash:{},data:i}))+"<a>"+l(c(null!=(o=null!=t?t.obj:t)?o.target:o,t))+"</a> includes <a>"+l(c(null!=(o=null!=t?t.obj:t)?o.includes:o,t))+"</a>;</span>"},useData:!0}),n["interface.html"]=t({1:function(e,t,n,r,i){var o;return e.escapeExpression(e.lambda(null!=(o=null!=t?t.obj:t)?o.name:o,t))},3:function(e,t,n,r,i){var o;return" : <span class='idlSuperclass'><a>"+e.escapeExpression(e.lambda(null!=(o=null!=t?t.obj:t)?o.inheritance:o,t))+"</a></span>"},compiler:[7,">= 4.0.0"],main:function(e,t,n,r,i){var o,a,s=e.lambda,l=e.escapeExpression,c=null!=t?t:e.nullContext||{},u=n.helperMissing,d="function";return"<span class='idlInterface' id='"+l(s(null!=(o=null!=t?t.obj:t)?o.idlId:o,t))+"' data-idl data-title='"+l(s(null!=(o=null!=t?t.obj:t)?o.name:o,t))+"'>"+l((n.extAttr||t&&t.extAttr||u).call(c,null!=t?t.obj:t,null!=t?t.indent:t,{name:"extAttr",hash:{},data:i}))+l((n.idn||t&&t.idn||u).call(c,null!=t?t.indent:t,{name:"idn",hash:{},data:i}))+l(typeof(a=null!=(a=n.partial||(null!=t?t.partial:t))?a:u)===d?a.call(c,{name:"partial",hash:{},data:i}):a)+l(typeof(a=null!=(a=n.callback||(null!=t?t.callback:t))?a:u)===d?a.call(c,{name:"callback",hash:{},data:i}):a)+"interface "+l(typeof(a=null!=(a=n.mixin||(null!=t?t.mixin:t))?a:u)===d?a.call(c,{name:"mixin",hash:{},data:i}):a)+"<span class='idlInterfaceID'>"+(null!=(o=(n.tryLink||t&&t.tryLink||u).call(c,null!=t?t.obj:t,{name:"tryLink",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i}))?o:"")+"</span>"+(null!=(o=n.if.call(c,null!=(o=null!=t?t.obj:t)?o.inheritance:o,{name:"if",hash:{},fn:e.program(3,i,0),inverse:e.noop,data:i}))?o:"")+" {\n"+(null!=(o=typeof(a=null!=(a=n.children||(null!=t?t.children:t))?a:u)===d?a.call(c,{name:"children",hash:{},data:i}):a)?o:"")+l((n.idn||t&&t.idn||u).call(c,null!=t?t.indent:t,{name:"idn",hash:{},data:i}))+"};</span>"},useData:!0}),n["iterable.html"]=t({1:function(e,t,n,r,i){return"iterable"},compiler:[7,">= 4.0.0"],main:function(e,t,n,r,i){var o,a,s=e.escapeExpression,l=null!=t?t:e.nullContext||{},c=n.helperMissing;return"<span class='idlIterable' id=\""+s(e.lambda(null!=(o=null!=t?t.obj:t)?o.idlId:o,t))+"\" data-idl data-title='iterable'>"+s((n.extAttr||t&&t.extAttr||c).call(l,null!=t?t.obj:t,null!=t?t.indent:t,{name:"extAttr",hash:{},data:i}))+s((n.idn||t&&t.idn||c).call(l,null!=t?t.indent:t,{name:"idn",hash:{},data:i}))+s("function"==typeof(a=null!=(a=n.qualifiers||(null!=t?t.qualifiers:t))?a:c)?a.call(l,{name:"qualifiers",hash:{},data:i}):a)+(null!=(o=(n.tryLink||t&&t.tryLink||c).call(l,null!=t?t.obj:t,{name:"tryLink",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i}))?o:"")+"<"+s((n.idlType||t&&t.idlType||c).call(l,null!=t?t.obj:t,{name:"idlType",hash:{},data:i}))+">;</span>\n"},useData:!0}),n["line-comment.html"]=t({compiler:[7,">= 4.0.0"],main:function(e,t,n,r,i){var o,a=null!=t?t:e.nullContext||{},s=n.helperMissing,l=e.escapeExpression;return"<span class='idlSectionComment'>"+l((n.idn||t&&t.idn||s).call(a,null!=t?t.indent:t,{name:"idn",hash:{},data:i}))+"//"+l("function"==typeof(o=null!=(o=n.comment||(null!=t?t.comment:t))?o:s)?o.call(a,{name:"comment",hash:{},data:i}):o)+"</span>\n"},useData:!0}),n["maplike.html"]=t({1:function(e,t,n,r,i){return"maplike"},compiler:[7,">= 4.0.0"],main:function(e,t,n,r,i){var o,a,s=e.escapeExpression,l=null!=t?t:e.nullContext||{},c=n.helperMissing;return"<span class='idlMaplike' id=\""+s(e.lambda(null!=(o=null!=t?t.obj:t)?o.idlId:o,t))+"\" data-idl data-title='maplike'>"+s((n.extAttr||t&&t.extAttr||c).call(l,null!=t?t.obj:t,null!=t?t.indent:t,{name:"extAttr",hash:{},data:i}))+s((n.idn||t&&t.idn||c).call(l,null!=t?t.indent:t,{name:"idn",hash:{},data:i}))+s("function"==typeof(a=null!=(a=n.qualifiers||(null!=t?t.qualifiers:t))?a:c)?a.call(l,{name:"qualifiers",hash:{},data:i}):a)+(null!=(o=(n.tryLink||t&&t.tryLink||c).call(l,null!=t?t.obj:t,{name:"tryLink",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i}))?o:"")+"<"+s((n.idlType||t&&t.idlType||c).call(l,null!=t?t.obj:t,{name:"idlType",hash:{},data:i}))+">;</span>\n"},useData:!0}),n["method.html"]=t({1:function(e,t,n,r,i){var o;return e.escapeExpression(e.lambda(null!=(o=null!=t?t.obj:t)?o.name:o,t))},compiler:[7,">= 4.0.0"],main:function(e,t,n,r,i){var o,a,s=e.lambda,l=e.escapeExpression,c=null!=t?t:e.nullContext||{},u=n.helperMissing;return"<span class='idlMethod' id=\""+l(s(null!=(o=null!=t?t.obj:t)?o.idlId:o,t))+"\" data-idl data-title='"+l(s(null!=(o=null!=t?t.obj:t)?o.name:o,t))+"'>"+l((n.idn||t&&t.idn||u).call(c,null!=t?t.indent:t,{name:"idn",hash:{},data:i}))+l((n.extAttrInline||t&&t.extAttrInline||u).call(c,null!=t?t.obj:t,null!=t?t.indent:t,{name:"extAttrInline",hash:{},data:i}))+l("function"==typeof(a=null!=(a=n.special||(null!=t?t.special:t))?a:u)?a.call(c,{name:"special",hash:{},data:i}):a)+"<span class='idlMethType'>"+l((n.idlType||t&&t.idlType||u).call(c,null!=t?t.obj:t,{name:"idlType",hash:{},data:i}))+"</span> "+l((n.pads||t&&t.pads||u).call(c,null!=t?t.pad:t,{name:"pads",hash:{},data:i}))+"<span class='idlMethName'>"+(null!=(o=(n.tryLink||t&&t.tryLink||u).call(c,null!=t?t.obj:t,{name:"tryLink",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i}))?o:"")+"</span>("+(null!=(o="function"==typeof(a=null!=(a=n.children||(null!=t?t.children:t))?a:u)?a.call(c,{name:"children",hash:{},data:i}):a)?o:"")+");</span>\n"},useData:!0}),n["multiline-comment.html"]=t({1:function(e,t,n,r,i,o,a){var s=e.escapeExpression;return s((n.idn||t&&t.idn||n.helperMissing).call(null!=t?t:e.nullContext||{},null!=a[1]?a[1].indent:a[1],{name:"idn",hash:{},data:i}))+s(e.lambda(t,t))+"\n"},compiler:[7,">= 4.0.0"],main:function(e,t,n,r,i,o,a){var s,l,c=null!=t?t:e.nullContext||{},u=n.helperMissing,d=e.escapeExpression;return"<span class='idlSectionComment'>"+d((n.idn||t&&t.idn||u).call(c,null!=t?t.indent:t,{name:"idn",hash:{},data:i}))+"/*"+d("function"==typeof(l=null!=(l=n.firstLine||(null!=t?t.firstLine:t))?l:u)?l.call(c,{name:"firstLine",hash:{},data:i}):l)+"\n"+(null!=(s=n.each.call(c,null!=t?t.innerLine:t,{name:"each",hash:{},fn:e.program(1,i,0,o,a),inverse:e.noop,data:i}))?s:"")+d((n.idn||t&&t.idn||u).call(c,null!=t?t.indent:t,{name:"idn",hash:{},data:i}))+d("function"==typeof(l=null!=(l=n.lastLine||(null!=t?t.lastLine:t))?l:u)?l.call(c,{name:"lastLine",hash:{},data:i}):l)+"*/</span>\n"},useData:!0,useDepths:!0}),n["param.html"]=t({1:function(e,t,n,r,i){var o;return" = <span class='idlDefaultValue'>"+e.escapeExpression((n.stringifyIdlConst||t&&t.stringifyIdlConst||n.helperMissing).call(null!=t?t:e.nullContext||{},null!=(o=null!=t?t.obj:t)?o.default:o,{name:"stringifyIdlConst",hash:{},data:i}))+"</span>"},compiler:[7,">= 4.0.0"],main:function(e,t,n,r,i){var o,a,s=null!=t?t:e.nullContext||{},l=n.helperMissing,c=e.escapeExpression;return"<span class='idlParam'>"+c((n.extAttrInline||t&&t.extAttrInline||l).call(s,null!=t?t.obj:t,{name:"extAttrInline",hash:{},data:i}))+c("function"==typeof(a=null!=(a=n.optional||(null!=t?t.optional:t))?a:l)?a.call(s,{name:"optional",hash:{},data:i}):a)+"<span class='idlParamType'>"+c((n.idlType||t&&t.idlType||l).call(s,null!=t?t.obj:t,{name:"idlType",hash:{},data:i}))+c("function"==typeof(a=null!=(a=n.variadic||(null!=t?t.variadic:t))?a:l)?a.call(s,{name:"variadic",hash:{},data:i}):a)+"</span> <span class='idlParamName'>"+c(e.lambda(null!=(o=null!=t?t.obj:t)?o.name:o,t))+"</span>"+(null!=(o=n.if.call(s,null!=(o=null!=t?t.obj:t)?o.default:o,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i}))?o:"")+"</span>"},useData:!0}),n["typedef.html"]=t({1:function(e,t,n,r,i){var o;return e.escapeExpression(e.lambda(null!=(o=null!=t?t.obj:t)?o.name:o,t))},compiler:[7,">= 4.0.0"],main:function(e,t,n,r,i){var o,a=e.lambda,s=e.escapeExpression,l=null!=t?t:e.nullContext||{},c=n.helperMissing;return"<span class='idlTypedef' id='"+s(a(null!=(o=null!=t?t.obj:t)?o.idlId:o,t))+"' data-idl data-title='"+s(a(null!=(o=null!=t?t.obj:t)?o.name:o,t))+"'>typedef <span class='idlTypedefType'>"+s((n.idlType||t&&t.idlType||c).call(l,null!=t?t.obj:t,{name:"idlType",hash:{},data:i}))+"</span> <span class='idlTypedefID'>"+(null!=(o=(n.tryLink||t&&t.tryLink||c).call(l,null!=t?t.obj:t,{name:"tryLink",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i}))?o:"")+"</span>;</span>"},useData:!0}),n}),define("w3c/templates/cgbg-sotd",["exports","deps/hyperhtml"],function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=(e=>{const t=hyperHTML;return t`<h2>${e.l10n.sotd}</h2>
${e.isPreview?t`
<details class="annoying-warning" open="">
<summary>This is a preview</summary>
<p>
Do not attempt to implement this version of the specification. Do not reference this
version as authoritative in any way.
${e.edDraftURI?t`
Instead, see <a href="${e.edDraftURI}">${e.edDraftURI}</a> for the Editor's draft.
`:""}
</p>
</details>
`:""}
<p>
This specification was published by the <a href='${e.wgURI}'>${e.wg}</a>.
It is not a W3C Standard nor is it on the W3C Standards Track.
${e.isCGFinal?t`
Please note that under the
<a href="https://www.w3.org/community/about/agreements/final/">W3C Community Final Specification Agreement (FSA)</a>
other conditions apply.
`:t`
Please note that under the
<a href="https://www.w3.org/community/about/agreements/cla/">W3C Community Contributor License Agreement (CLA)</a>
there is a limited opt-out and other conditions apply.
`}
Learn more about
<a href="https://www.w3.org/community/">W3C Community and Business Groups</a>.
</p>
${e.sotdAfterWGinfo?"":[e.additionalContent]}
${e.wgPublicList?t`
<p>If you wish to make comments regarding this document, please send them to
<a href='${`mailto:${e.wgPublicList}@w3.org${e.subjectPrefix?`?subject=${e.subjectPrefixEnc}`:""}`}'>${e.wgPublicList}@w3.org</a>
(<a href='${`mailto:${e.wgPublicList}-request@w3.org?subject=subscribe`}'>subscribe</a>,
<a
href='${`https://lists.w3.org/Archives/Public/${e.wgPublicList}/`}'>archives</a>)${e.subjectPrefix?t`
with <code>${e.subjectPrefix}</code> at the start of your
email's subject`:""}.</p>
`:""}
${e.sotdAfterWGinfo?[e.additionalContent]:""}
${[e.additionalSections]}`})}),define("w3c/templates/sotd",["exports","deps/hyperhtml"],function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=(e=>{const t=hyperHTML;return t`<h2>${e.l10n.sotd}</h2>
${e.isPreview?t`
<details class="annoying-warning" open="">
<summary>This is a preview</summary>
<p>
Do not attempt to implement this version of the specification. Do not reference this
version as authoritative in any way.
${e.edDraftURI?t`
Instead, see <a href="${e.edDraftURI}">${e.edDraftURI}</a> for the Editor's draft.
`:""}
</p>
</details>
`:""}
${e.isUnofficial?t`
<p>
This document is draft of a potential specification. It has no official standing of
any kind and does not represent the support or consensus of any standards organisation.
</p>
${[e.additionalContent]}
`:t`
${e.isTagFinding?[e.additionalContent]:t`
${e.isNoTrack?t`
<p>
This document is merely a W3C-internal ${e.isMO?"member-confidential":""} document. It
has no official standing of any kind and does not represent consensus of the W3C
Membership.
</p>
${[e.additionalContent]}
`:t`
<p>
<em>${[e.l10n.status_at_publication]}</em>
</p>
${e.isSubmission?t`
${[e.additionalContent]}
${e.isMemberSubmission?t`
<p>
By publishing this document, W3C acknowledges that
the <a href="https://www.w3.org/Submission/@@@submissiondoc@@@">Submitting Members</a>
have made a formal Submission request to W3C for discussion. Publication of this document
by W3C indicates no endorsement of its content by W3C, nor that W3C has, is, or will be
allocating any resources to the issues addressed by it. This document is not the product
of a chartered W3C group, but is published as potential input to
the <a href="https://www.w3.org/Consortium/Process">W3C Process</a>.
A <a href="https://www.w3.org/Submission/@@@teamcomment@@@">W3C Team Comment</a> has been
published in conjunction with this Member Submission. Publication of acknowledged Member Submissions
at the W3C site is one of the benefits of <a href="https://www.w3.org/Consortium/Prospectus/Joining">
W3C Membership</a>. Please consult the requirements associated with Member Submissions of
<a href="https://www.w3.org/Consortium/Patent-Policy/#sec-submissions">section 3.3 of the
W3C Patent Policy</a>. Please consult the complete <a href="https://www.w3.org/Submission">list
of acknowledged W3C Member Submissions</a>.
</p>
`:t`
${e.isTeamSubmission?t`
<p>If you wish to make comments regarding this document, please send them to
<a href='${`mailto:${e.wgPublicList}@w3.org${e.subjectPrefix?`?subject=${e.subjectPrefixEnc}`:[""]}`}'>${e.wgPublicList}@w3.org</a>
(<a href='${`mailto:${e.wgPublicList}-request@w3.org?subject=subscribe`}'>subscribe</a>,
<a
href='${`https://lists.w3.org/Archives/Public/${e.wgPublicList}/`}'>archives</a>)${e.subjectPrefix?t`
with <code>${e.subjectPrefix}</code> at the start of your email's subject`:""}.</p>
<p>Please consult the complete <a href="https://www.w3.org/TeamSubmission/">list of Team Submissions</a>.</p>
`:""}
`}
`:t`
${e.sotdAfterWGinfo?"":[e.additionalContent]}
${e.overrideStatus?"":t`
<p>
This document was published by ${[e.wgHTML]} as ${e.anOrA} ${e.longStatus}.
${e.notYetRec?"This document is intended to become a W3C Recommendation.":""}
${e.wgPublicList?t`
Comments regarding this document are welcome. Please send them to
<a href='${`mailto:${e.wgPublicList}@w3.org${e.subjectPrefix?`?subject=${e.subjectPrefixEnc}`:[""]}`}'>${e.wgPublicList}@w3.org</a>
(<a href='${`mailto:${e.wgPublicList}-request@w3.org?subject=subscribe`}'>subscribe</a>,
<a
href='${`https://lists.w3.org/Archives/Public/${e.wgPublicList}/`}'>archives</a>)${e.subjectPrefix?t`
with <code>${e.subjectPrefix}</code> at the start of your email's subject`:""}.
`:""}
${e.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 ${e.humanCREnd}.\n `:""}
${e.isPER?t`
W3C Advisory Committee Members are invited to
send formal review comments on this Proposed
Edited Recommendation to the W3C Team until
${e.humanPEREnd}.
Members of the Advisory Committee will find the
appropriate review form for this document by
consulting their list of current
<a href='https://www.w3.org/2002/09/wbs/myQuestionnaires'>WBS questionnaires</a>.
`:""}
${e.isPR?t`
The W3C Membership and other interested parties are invited to review the document and
send comments to
<a rel='discussion' href='${`mailto:${e.wgPublicList}@w3.org`}'>${e.wgPublicList}@w3.org</a>
(<a href='${`mailto:${e.wgPublicList}-request@w3.org?subject=subscribe`}'>subscribe</a>,
<a href='${`https://lists.w3.org/Archives/Public/${e.wgPublicList}/`}'>archives</a>)
through ${e.humanPREnd}. Advisory Committee Representatives should consult their
<a href='https://www.w3.org/2002/09/wbs/myQuestionnaires'>WBS questionnaires</a>.
Note that substantive technical comments were expected during the Candidate Recommendation
review period that ended ${e.humanCREnd}.
`:""}
</p>
`}
${e.implementationReportURI?t`
<p>
Please see the Working Group's <a href='${e.implementationReportURI}'>implementation
report</a>.
</p>
`:""}
${e.sotdAfterWGinfo?[e.additionalContent]:""}
${e.notRec?t`
<p>
Publication as ${e.anOrA} ${e.textStatus} does not imply endorsement by the W3C
Membership. This is a draft document and may be updated, replaced or obsoleted by other
documents at any time. It is inappropriate to cite this document as other than work in
progress.
</p>
`:""}
${e.isRec?t`
<p>
This document has been reviewed by W3C Members, by software developers, and by other W3C
groups and interested parties, and is endorsed by the Director as a W3C Recommendation.
It is a stable document and may be used as reference material or cited from another
document. W3C's role in making the Recommendation is to draw attention to the
specification and to promote its widespread deployment. This enhances the functionality
and interoperability of the Web.
</p>
`:""}
<p data-deliverer="${e.isNote?e.wgId:null}">
${e.isIGNote?"":t`
This document was produced by
${e.multipleWGs?"groups":"a group"}
operating under the
<a href='https://www.w3.org/Consortium/Patent-Policy/'>W3C Patent Policy</a>.
`}
${e.recNotExpected?"The group does not expect this document to become a W3C Recommendation.":""}
${e.isIGNote?"":t`
${e.multipleWGs?t`W3C maintains ${[e.wgPatentHTML]}`:t`
W3C maintains a <a href='${[e.wgPatentURI]}' rel='disclosure'>public list of any patent
disclosures</a>
`}
made in connection with the deliverables of
${e.multipleWGs?"each group; these pages also include":"the group; that page also includes"}
instructions for disclosing a patent. An individual who has actual knowledge of a patent
which the individual believes contains
<a href='https://www.w3.org/Consortium/Patent-Policy/#def-essential'>Essential
Claim(s)</a> must disclose the information in accordance with
<a href='https://www.w3.org/Consortium/Patent-Policy/#sec-Disclosure'>section
6 of the W3C Patent Policy</a>.
`}
${e.isIGNote?t`
The disclosure obligations of the Participants of this group are described in the
<a href='${e.charterDisclosureURI}'>charter</a>.
`:""}
</p>
<p>This document is governed by the <a id="w3c_process_revision"
href="https://www.w3.org/2018/Process-20180201/">1 February 2018 W3C Process Document</a>.
</p>
${e.addPatentNote?t`<p>${[e.addPatentNote]}</p>`:""}
`}
`}
`}
`}
${[e.additionalSections]}`})}),define("w3c/templates/show-logo",["exports","core/pubsubhub","deps/hyperhtml"],function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.default=(e=>{const n=document.createElement("a");if(!e.alt){const e="Found spec logo without an `alt` attribute. See dev console.";n.classList.add("respec-offending-element"),(0,t.pub)("warn",e),console.warn("warn",e,n)}return n.href=e.url||"",n.classList.add("logo"),hyperHTML.bind(n)`
<img
id="${e.id}"
alt="${e.alt}"
width="${e.width}"
height="${e.height}">
`,n.querySelector("img").src=e.src,n})}),define("w3c/templates/show-people",["exports"],function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=((e,t,n=[])=>{const r=hyperHTML,i=[];for(let e=0;e<n.length;e++)i.push(o(n[e],e));return i;function o(e,t){const n=r`<dd class='p-author h-card vcard'
data-editor-id='${e.w3cid?parseInt(e.w3cid,10):null}'></dd>`,i=document.createDocumentFragment(),o=[];if(e.url?o.push(r`<a class='u-url url p-name fn'
href='${e.url}'>${e.name}</a>`):o.push(r`<span class='p-name fn'>${e.name}</span>`),e.company&&(e.companyURL?o.push(r`, <a class='p-org org h-org h-card' href='${e.companyURL}'>${e.company}</a>`):o.push(document.createTextNode(`, ${e.company}`))),e.mailto&&o.push(r`, <a class='ed_mailto u-email email'
href='${`mailto:${e.mailto}`}'>${e.mailto}</a>`),e.note&&o.push(document.createTextNode(` (${e.note})`)),e.extras){const t=e.extras.filter(e=>e.name&&e.name.trim()).map(a);for(const e of t)o.push(document.createTextNode(", "),e)}return hyperHTML.bind(i)`${o}`,n.appendChild(i),n}function a(e){const t=r`<span class='${e.class||null}'></span>`;let n=t;return e.href&&(n=r`<a href='${e.href}'></a>`,t.appendChild(n)),n.textContent=e.name,t}})}),define("w3c/templates/show-link",["exports","core/pubsubhub","deps/hyperhtml"],function(e,t){Object.defineProperty(e,"__esModule",{value:!0});const n=hyperHTML;function r(e){return n`
<dd class="${e.class?e.class:null}">
${e.href?n`
<a href="${e.href}">${e.value||e.href}</a>
`:""}
</dd>
`}e.default=(e=>{if(!e.key){const n="Found a link without `key` attribute in the configuration. See dev console.";return(0,t.pub)("warn",n),void console.warn("warn",n,e)}return n`
<dt class="${e.class?e.class:null}">${e.key}:</dt>
${e.data?e.data.map(r):r(e)}
`})}),define("w3c/templates/cgbg-headers",["exports","./show-logo","./show-people","./show-link","deps/hyperhtml"],function(e,t,n,r){Object.defineProperty(e,"__esModule",{value:!0});var i=s(t),o=s(n),a=s(r);function s(e){return e&&e.__esModule?e:{default:e}}e.default=(e=>{const t=hyperHTML;return t`<div class='head'>
${e.logos.map(i.default)}
<h1 class='title p-name' id='title'>${e.title}</h1>
${e.subtitle?t`
<h2 id='subtitle'>${e.subtitle}</h2>
`:""}
<h2>${e.longStatus} <time class='dt-published' datetime='${e.dashDate}'>${e.publishHumanDate}</time></h2>
<dl>
${e.thisVersion?t`
<dt>${e.l10n.this_version}</dt>
<dd><a class='u-url' href='${e.thisVersion}'>${e.thisVersion}</a></dd>
`:""}
${e.latestVersion?t`
<dt>${e.l10n.latest_published_version}</dt>
<dd><a href='${e.latestVersion}'>${e.latestVersion}</a></dd>
`:""}
${e.edDraftURI?t`
<dt>${e.l10n.latest_editors_draft}</dt>
<dd><a href='${e.edDraftURI}'>${e.edDraftURI}</a></dd>
`:""}
${e.testSuiteURI?t`
<dt>Test suite:</dt>
<dd><a href='${e.testSuiteURI}'>${e.testSuiteURI}</a></dd>
`:""}
${e.implementationReportURI?t`
<dt>Implementation report:</dt>
<dd><a href='${e.implementationReportURI}'>${e.implementationReportURI}</a></dd>
`:""}
${e.bugTrackerHTML?t`
<dt>${e.l10n.bug_tracker}</dt>
<dd>${[e.bugTrackerHTML]}</dd>
`:""}
${e.prevVersion?t`
<dt>Previous version:</dt>
<dd><a href='${e.prevVersion}'>${e.prevVersion}</a></dd>
`:""}
${e.isCGFinal?"":t`
${e.prevED?t`
<dt>Previous editor's draft:</dt>
<dd><a href='${e.prevED}'>${e.prevED}</a></dd>
`:""}
`}
<dt>${e.multipleEditors?t`${e.l10n.editors}`:t`${e.l10n.editor}`}</dt>
${(0,o.default)(e,"Editor",e.editors)}
${e.authors?t`
<dt>${e.multipleAuthors?t`${e.l10n.authors}`:t`${e.l10n.author}`}</dt>
${(0,o.default)(e,"Author",e.authors)}
`:""}
${e.otherLinks?e.otherLinks.map(a.default):""}
</dl>
${e.alternateFormats?t`
<p>
${e.multipleAlternates?"This document is also available in these non-normative formats:":"This document is also available in this non-normative format:"}
${[e.alternatesHTML]}
</p>
`:""}
<p class='copyright'>
<a href='https://www.w3.org/Consortium/Legal/ipr-notice#Copyright'>Copyright</a> ©
${e.copyrightStart?`${e.copyrightStart}-`:""}${e.publishYear}
the Contributors to the ${e.title} Specification, published by the
<a href='${e.wgURI}'>${e.wg}</a> under the
${e.isCGFinal?t`
<a href="https://www.w3.org/community/about/agreements/fsa/">W3C Community Final Specification Agreement (FSA)</a>.
A human-readable <a href="https://www.w3.org/community/about/agreements/fsa-deed/">summary</a> is available.
`:t`
<a href="https://www.w3.org/community/about/agreements/cla/">W3C Community Contributor License Agreement (CLA)</a>.
A human-readable <a href="https://www.w3.org/community/about/agreements/cla-deed/">summary</a> is available.
`}
</p>
<hr title="Separator for header">
</div>`})}),define("w3c/templates/headers",["exports","./show-logo","./show-people","./show-link","deps/hyperhtml"],function(e,t,n,r){Object.defineProperty(e,"__esModule",{value:!0});var i=s(t),o=s(n),a=s(r);function s(e){return e&&e.__esModule?e:{default:e}}e.default=(e=>{const t=hyperHTML;return t`<div class='head'>
${e.logos.map(i.default)}
<h1 class='title p-name' id='title'>${e.title}</h1>
${e.subtitle?t`
<h2 id='subtitle'>${e.subtitle}</h2>
`:""}
<h2>${e.prependW3C?"W3C ":""}${e.textStatus} <time class='dt-published' datetime='${e.dashDate}'>${e.publishHumanDate}</time></h2>
<dl>
${e.isNoTrack?"":t`
<dt>${e.l10n.this_version}</dt>
<dd><a class='u-url' href='${e.thisVersion}'>${e.thisVersion}</a></dd>
<dt>${e.l10n.latest_published_version}</dt>
<dd>${e.latestVersion?t`<a href='${e.latestVersion}'>${e.latestVersion}</a>`:"none"}</dd>
`}
${e.edDraftURI?t`
<dt>${e.l10n.latest_editors_draft}</dt>
<dd><a href='${e.edDraftURI}'>${e.edDraftURI}</a></dd>
`:""}
${e.testSuiteURI?t`
<dt>Test suite:</dt>
<dd><a href='${e.testSuiteURI}'>${e.testSuiteURI}</a></dd>
`:""}
${e.implementationReportURI?t`
<dt>Implementation report:</dt>
<dd><a href='${e.implementationReportURI}'>${e.implementationReportURI}</a></dd>
`:""}
${e.bugTrackerHTML?t`
<dt>${e.l10n.bug_tracker}</dt>
<dd>${[e.bugTrackerHTML]}</dd>
`:""}
${e.isED?t`
${e.prevED?t`
<dt>Previous editor's draft:</dt>
<dd><a href='${e.prevED}'>${e.prevED}</a></dd>
`:""}
`:""}
${e.showPreviousVersion?t`
<dt>Previous version:</dt>
<dd><a href='${e.prevVersion}'>${e.prevVersion}</a></dd>
`:""}
${e.prevRecURI?t`
${e.isRec?t`
<dt>Previous Recommendation:</dt>
<dd><a href='${e.prevRecURI}'>${e.prevRecURI}</a></dd>
`:t`
<dt>Latest Recommendation:</dt>
<dd><a href='${e.prevRecURI}'>${e.prevRecURI}</a></dd>
`}
`:""}
<dt>${e.multipleEditors?t`${e.l10n.editors}`:t`${e.l10n.editor}`}</dt>
${(0,o.default)(e,"Editor",e.editors)}
${e.authors?t`
<dt>${e.multipleAuthors?[e.l10n.authors]:[e.l10n.author]}</dt>
${(0,o.default)(e,"Author",e.authors)}
`:""}
${e.otherLinks?e.otherLinks.map(a.default):""}
</dl>
${e.errata?t`
<p>
Please check the <a href="${e.errata}"><strong>errata</strong></a> for any errors or issues
reported since publication.
</p>
`:""}
${e.isRec?t`
<p>
See also <a href="${`http://www.w3.org/2003/03/Translations/byTechnology?technology=${e.shortName}`}">
<strong>translations</strong></a>.
</p>
`:""}
${e.alternateFormats?t`
<p>
${e.multipleAlternates?"This document is also available in these non-normative formats:":"This document is also available in this non-normative format:"}
${[e.alternatesHTML]}
</p>
`:""}
${e.isUnofficial?t`
${e.additionalCopyrightHolders?t`
<p class='copyright'>${[e.additionalCopyrightHolders]}</p>
`:t`
${e.overrideCopyright?[e.overrideCopyright]:t`
<p class='copyright'>
This document is licensed under a
<a class='subfoot' href='https://creativecommons.org/licenses/by/3.0/' rel='license'>Creative Commons
Attribution 3.0 License</a>.
</p>
`}
`}
`:t`
${e.overrideCopyright?[e.overrideCopyright]:t`
<p class='copyright'>
<a href='https://www.w3.org/Consortium/Legal/ipr-notice#Copyright'>Copyright</a> ©
${e.copyrightStart?`${e.copyrightStart}-`:""}${e.publishYear}
${e.additionalCopyrightHolders?t` ${[e.additionalCopyrightHolders]} &`:""}
<a href='https://www.w3.org/'><abbr title='World Wide Web Consortium'>W3C</abbr></a><sup>®</sup>
(<a href='https://www.csail.mit.edu/'><abbr title='Massachusetts Institute of Technology'>MIT</abbr></a>,
<a href='https://www.ercim.eu/'><abbr title='European Research Consortium for Informatics and Mathematics'>ERCIM</abbr></a>,
<a href='https://www.keio.ac.jp/'>Keio</a>, <a href="http://ev.buaa.edu.cn/">Beihang</a>).
${e.isCCBY?t`
Some Rights Reserved: this document is dual-licensed,
<a rel="license" href="https://creativecommons.org/licenses/by/3.0/">CC-BY</a> and
<a rel="license" href="https://www.w3.org/Consortium/Legal/copyright-documents">W3C Document License</a>.
`:""}
W3C <a href='https://www.w3.org/Consortium/Legal/ipr-notice#Legal_Disclaimer'>liability</a>,
<a href='https://www.w3.org/Consortium/Legal/ipr-notice#W3C_Trademarks'>trademark</a> and
${e.isCCBY?t`
<a rel="license" href='https://www.w3.org/Consortium/Legal/2013/copyright-documents-dual.html'>document use</a>
`:t`
${e.isW3CSoftAndDocLicense?t`
<a rel="license" href='https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document'>permissive document license</a>
`:t`
<a rel="license" href='https://www.w3.org/Consortium/Legal/copyright-documents'>document use</a>
`}
`}
rules apply.
</p>
`}
`}
<hr title="Separator for header">
</div>`})}),define("w3c/headers",["exports","core/utils","handlebars.runtime","core/pubsubhub","templates","w3c/templates/cgbg-sotd","w3c/templates/sotd","w3c/templates/cgbg-headers","w3c/templates/headers"],function(e,t,n,r,i,o,a,s,l){Object.defineProperty(e,"__esModule",{value:!0}),e.name=void 0,e.run=function(e){e.isUnofficial="unofficial"===e.specStatus,e.isUnofficial&&(e.logos=[]);if(e.isCCBY="cc-by"===e.license,e.isW3CSoftAndDocLicense="w3c-software-doc"===e.license,["cc-by","w3c"].includes(e.license)){let t=`You cannot use license "\`${e.license}\`" with W3C Specs. `;t+='Please set `respecConfig.license: "w3c-software-doc"` instead.',(0,r.pub)("error",t)}e.licenseInfo=E[e.license],e.isCGBG=C.includes(e.specStatus),e.isCGFinal=e.isCGBG&&/G-FINAL$/.test(e.specStatus),e.isBasic="base"===e.specStatus,e.isRegular=!e.isCGBG&&!e.isBasic,e.specStatus||(0,r.pub)("error","Missing required configuration: `specStatus`");e.isRegular&&!e.shortName&&(0,r.pub)("error","Missing required configuration: `shortName`");e.title=document.title||"No Title",e.subtitle||(e.subtitle="");if(e.publishDate=S(e,"publishDate",document.lastModified),e.publishYear=e.publishDate.getUTCFullYear(),e.publishHumanDate=m.format(e.publishDate),e.isNoTrack=x.includes(e.specStatus),e.isRecTrack=!e.noRecTrack&&w.includes(e.specStatus),e.isMemberSubmission="Member-SUBM"===e.specStatus,e.isMemberSubmission){const t={alt:"W3C Member Submission",href:"https://www.w3.org/Submission/",src:"https://www.w3.org/Icons/member_subm-v.svg",width:"211"};e.logos.push(h({},T,t))}if(e.isTeamSubmission="Team-SUBM"===e.specStatus,e.isTeamSubmission){const t={alt:"W3C Team Submission",href:"https://www.w3.org/TeamSubmission/",src:"https://www.w3.org/Icons/team_subm-v.svg",width:"211"};e.logos.push(h({},T,t))}e.isSubmission=e.isMemberSubmission||e.isTeamSubmission,e.anOrA=k.includes(e.specStatus)?"an":"a",e.isTagFinding="finding"===e.specStatus||"draft-finding"===e.specStatus,e.edDraftURI||(e.edDraftURI="","ED"===e.specStatus&&(0,r.pub)("warn","Editor's Drafts should set edDraftURI."));e.maturity=g[e.specStatus]?g[e.specStatus]:e.specStatus;var n="TR";"Member-SUBM"===e.specStatus?n="Submission":"Team-SUBM"===e.specStatus&&(n="TeamSubmission");e.isRegular&&(e.thisVersion="https://www.w3.org/"+n+"/"+e.publishDate.getUTCFullYear()+"/"+e.maturity+"-"+e.shortName+"-"+(0,t.concatDate)(e.publishDate)+"/");"ED"===e.specStatus&&(e.thisVersion=e.edDraftURI);e.isRegular&&(e.latestVersion="https://www.w3.org/"+n+"/"+e.shortName+"/");e.isTagFinding&&(e.latestVersion="https://www.w3.org/2001/tag/doc/"+e.shortName,e.thisVersion=e.latestVersion+"-"+t.ISODate.format(e.publishDate));if(e.previousPublishDate){e.previousMaturity||e.isTagFinding||(0,r.pub)("error","`previousPublishDate` is set, but not `previousMaturity`."),e.previousPublishDate=S(e,"previousPublishDate");var i=g[e.previousMaturity]?g[e.previousMaturity]:e.previousMaturity;e.isTagFinding?e.prevVersion=e.latestVersion+"-"+t.ISODate.format(e.previousPublishDate):e.isCGBG?e.prevVersion=e.prevVersion||"":e.isBasic?e.prevVersion="":e.prevVersion="https://www.w3.org/TR/"+e.previousPublishDate.getUTCFullYear()+"/"+i+"-"+e.shortName+"-"+(0,t.concatDate)(e.previousPublishDate)+"/"}else/NOTE$/.test(e.specStatus)||"FPWD"===e.specStatus||"FPLC"===e.specStatus||"ED"===e.specStatus||e.noRecTrack||e.isNoTrack||e.isSubmission||(0,r.pub)("error","Document on track but no previous version: Add `previousMaturity`, and `previousPublishDate` to ReSpec's config."),e.prevVersion||(e.prevVersion="");e.prevRecShortname&&!e.prevRecURI&&(e.prevRecURI="https://www.w3.org/TR/"+e.prevRecShortname);e.editors&&0!==e.editors.length||(0,r.pub)("error","At least one editor is required");var o=function(e){e.name||(0,r.pub)("error","All authors and editors must have a name.")};e.editors&&e.editors.forEach(o);e.authors&&e.authors.forEach(o);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||(0,r.pub)("error","All alternate formats must have a uri and a label.")}),e.multipleAlternates=e.alternateFormats&&e.alternateFormats.length>1,e.alternatesHTML=e.alternateFormats&&(0,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 a in y)v[a]||(v[a]=y[a]);e.longStatus=v[e.specStatus],e.textStatus=y[e.specStatus],b[e.specStatus]&&(e.rdfStatus=b[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);e.notYetRec=e.isRecTrack&&"REC"!==e.specStatus,e.isRec=e.isRecTrack&&"REC"===e.specStatus,e.isRec&&!e.errata&&(0,r.pub)("error","Recommendations must have an errata link.");e.notRec="REC"!==e.specStatus,e.prependW3C=!e.isUnofficial,e.isED="ED"===e.specStatus,e.isCR="CR"===e.specStatus,e.isPR="PR"===e.specStatus,e.isPER="PER"===e.specStatus,e.isMO="MO"===e.specStatus,e.isNote=["FPWD-NOTE","WG-NOTE"].includes(e.specStatus),e.isIGNote="IG-NOTE"===e.specStatus,e.dashDate=t.ISODate.format(e.publishDate),e.publishISODate=e.publishDate.toISOString(),e.shortISODate=t.ISODate.format(e.publishDate),Object.defineProperty(e,"wgId",{get(){if(!this.hasOwnProperty("wgPatentURI"))return"";const e=this.wgPatentURI.split("/"),t=e.findIndex(e=>"pp-impl"===e)+1;return e[t]||""}});const s=(e.isCGBG?d.default:p.default)(e);document.body.insertBefore(s,document.body.firstChild),document.body.classList.add("h-entry");var l=document.getElementById("sotd")||document.createElement("section");!e.isCGBG&&e.isNoTrack&&!e.isTagFinding||l.id||(0,r.pub)("error","A custom SotD paragraph is required for your type of document.");l.id=l.id||"stod",l.classList.add("introductory");var f=[e.wg,e.wgURI,e.wgPatentURI];f.some(e=>Array.isArray(e))&&!f.every(e=>Array.isArray(e))&&(0,r.pub)("error","If one of '`wg`', '`wgURI`', or '`wgPatentURI`' is an array, they all have to be.");if(Array.isArray(e.wg)){e.multipleWGs=e.wg.length>1,e.wgHTML=(0,t.joinAnd)(e.wg,function(t,n){return"the <a href='"+e.wgURI[n]+"'>"+t+"</a>"});for(var A=[],L=0,D=e.wg.length;L<D;L++)A.push("a <a href='"+e.wgPatentURI[L]+"' rel='disclosure'>public list of any patent disclosures ("+e.wg[L]+")</a>");e.wgPatentHTML=(0,t.joinAnd)(A)}else e.multipleWGs=!1,e.wgHTML="the <a href='"+e.wgURI+"'>"+e.wg+"</a>";"PR"!==e.specStatus||e.crEnd||(0,r.pub)("error",'`specStatus` is "PR" but no `crEnd` is specified (needed to indicate end of previous CR).');"CR"!==e.specStatus||e.crEnd||(0,r.pub)("error",'`specStatus` is "CR", but no `crEnd` is specified in Respec config.');e.crEnd=S(e,"crEnd"),e.humanCREnd=m.format(e.crEnd),"PR"!==e.specStatus||e.prEnd||(0,r.pub)("error",'`specStatus` is "PR" but no `prEnd` is specified.');e.prEnd=S(e,"prEnd"),e.humanPREnd=m.format(e.prEnd),"PER"!==e.specStatus||e.perEnd||(0,r.pub)("error","Status is PER but no perEnd is specified");e.perEnd=S(e,"perEnd"),e.humanPEREnd=m.format(e.perEnd),e.recNotExpected=!!e.recNotExpected||!e.isRecTrack&&"WD"==e.maturity&&"FPWD-NOTE"!==e.specStatus,e.isIGNote&&!e.charterDisclosureURI&&(0,r.pub)("error","IG-NOTEs must link to charter's disclosure section using `charterDisclosureURI`.");""!==e.subjectPrefix&&(e.subjectPrefixEnc=encodeURIComponent(e.subjectPrefix));hyperHTML.bind(l)`${function(e,t){const n=t.cloneNode(!0),r=document.createDocumentFragment(),i=document.createElement("temp");for(;n.hasChildNodes()&&(n.firstChild.nodeType!==Node.ELEMENT_NODE||"section"!==n.firstChild.localName);)r.appendChild(n.firstChild);return i.appendChild(r),e.additionalContent=i.innerHTML,e.additionalSections=n.innerHTML,(e.isCGBG?c.default:u.default)(e)}(e,l)}`,!e.implementationReportURI&&(e.isCR||e.isPR||e.isRec)&&(0,r.pub)("error","CR, PR, and REC documents need to have an `implementationReportURI` defined.");e.isTagFinding&&!e.additionalContent&&(0,r.pub)("warn","ReSpec does not support automated SotD generation for TAG findings, please add the prerequisite content in the 'sotd' section");(0,r.pub)("amend-user-config",{publishISODate:e.publishISODate,generatedSubtitle:`${e.longStatus} ${e.publishHumanDate}`})};f(n),f(i);var c=f(o),u=f(a),d=f(s),p=f(l);function f(e){return e&&e.__esModule?e:{default:e}}var h=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};e.name="w3c/headers";const m=new Intl.DateTimeFormat(["en-AU"],{timeZone:"UTC",year:"numeric",month:"long",day:"2-digit"}),g={FPWD:"WD",LC:"WD",FPLC:"WD","FPWD-NOTE":"NOTE","WD-NOTE":"WD","LC-NOTE":"LC","IG-NOTE":"NOTE","WG-NOTE":"NOTE"},b={NOTE:"w3p:NOTE",WD:"w3p:WD",LC:"w3p:LastCall",CR:"w3p:CR",PR:"w3p:PR",REC:"w3p:REC",PER:"w3p:PER",RSCND:"w3p:RSCND"},y={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"},v={"FPWD-NOTE":"First Public Working Group Note","LC-NOTE":"Last Call Working Draft"},w=["FPWD","WD","FPLC","LC","CR","PR","PER","REC"],x=["MO","unofficial","base","finding","draft-finding","CG-DRAFT","CG-FINAL","BG-DRAFT","BG-FINAL"],C=["CG-DRAFT","CG-FINAL","BG-DRAFT","BG-FINAL"],k=["ED","IG-NOTE"],E={cc0:{name:"Creative Commons 0 Public Domain Dedication",short:"CC0",url:"https://creativecommons.org/publicdomain/zero/1.0/"},"w3c-software":{name:"W3C Software Notice and License",short:"W3C Software",url:"https://www.w3.org/Consortium/Legal/2002/copyright-software-20021231"},"w3c-software-doc":{name:"W3C Software and Document Notice and License",short:"W3C Software and Document",url:"https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document"},"cc-by":{name:"Creative Commons Attribution 4.0 International Public License",short:"CC-BY",url:"https://creativecommons.org/licenses/by/4.0/legalcode"}},T=Object.freeze({id:"",alt:"",href:"",src:"",height:"48",width:"72"});function S(e,n,i=new Date){const o=e[n]?new Date(e[n]):new Date(i);if(Number.isFinite(o.valueOf())){const e=t.ISODate.format(o);return new Date(e)}const a=`[\`${n}\`](https://github.com/w3c/respec/wiki/${n}) `+`is not a valid date: "${e[n]}". Expected format 'YYYY-MM-DD'.`;return(0,r.pub)("error",a),new Date(t.ISODate.format(new Date))}}),define("w3c/abstract",["exports","core/pubsubhub","core/l10n"],function(e,t,n){Object.defineProperty(e,"__esModule",{value:!0}),e.name=void 0,e.run=async function(){const e=document.getElementById("abstract");if(!e)return void(0,t.pub)("error",'Document must have one element with `id="abstract"');e.classList.add("introductory");let r=document.querySelector("#abstract>h2");if(r)return;(r=document.createElement("h2")).innerText=n.l10n[n.lang].abstract,e.insertAdjacentElement("afterbegin",r)};e.name="w3c/abstract"}),define("w3c/templates/conformance",["exports","deps/hyperhtml"],function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=(()=>{const e=hyperHTML;return e`<h2>Conformance</h2>
<p>
As well as sections marked as non-normative, all authoring guidelines, diagrams, examples,
and notes in this specification are non-normative. Everything else in this specification is
normative.
</p>
<p id='respecRFC2119'>
to be interpreted as described in [[!RFC2119]].
</p>`})}),define("w3c/conformance",["exports","w3c/templates/conformance","core/pubsubhub"],function(e,t,n){Object.defineProperty(e,"__esModule",{value:!0}),e.name=void 0,e.run=function(e,t,r){var o=$("#conformance");o.length&&o.prepend((0,i.default)(e).childNodes);(0,n.pub)("end","w3c/conformance"),r()};var r,i=(r=t)&&r.__esModule?r:{default:r};e.name="w3c/conformance"}),define("core/data-transform",["exports","core/utils"],function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.name=void 0,e.run=function(e,n,r){Array.from(n.querySelectorAll("[data-transform]")).forEach(e=>{e.innerHTML=(0,t.runTransforms)(e.innerHTML,e.dataset.transform),e.removeAttribute("data-transform")}),r()};e.name="core/data-transform"}),define("core/inlines",["exports","core/pubsubhub","deps/hyperhtml"],function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.name=void 0,e.run=function(e){document.normalize(),e.normativeReferences||(e.normativeReferences=new Set);e.informativeReferences||(e.informativeReferences=new Set);e.respecRFC2119||(e.respecRFC2119={});const n=new Map;for(const e of Array.from(document.querySelectorAll("abbr[title]")))n.set(e.textContent,e.title);const r=[...n.keys()];r.sort((e,t)=>t.length-e.length);const i=r.length?`(?:\\b${r.join("\\b)|(?:\\b")}\\b)`:null,o=window.$.fn.allTextNodes.call([document.body],["pre"]),a=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\\.-]+\\]\\])"+(i?`|${i}`:"")+")");for(const r of o){const i=r.data.split(a);if(1===i.length)continue;const o=document.createDocumentFragment();for(;i.length;){const a=i.shift();let s=null;if(i.length&&(s=i.shift()),o.appendChild(document.createTextNode(a)),s)if(/MUST(?:\s+NOT)?|SHOULD(?:\s+NOT)?|SHALL(?:\s+NOT)?|MAY|(?:NOT\s+)?REQUIRED|(?:NOT\s+)?RECOMMENDED|OPTIONAL/.test(s))s=s.split(/\s+/).join(" "),o.appendChild(hyperHTML`<em class="rfc2119" title="${s}">${s}</em>`),e.respecRFC2119[s]=!0;else if(/^\[\[/.test(s)){let t=s;if(0===(t=(t=t.replace(/^\[\[/,"")).replace(/\]\]$/,"")).indexOf("\\"))o.appendChild(document.createTextNode(`[[${t.replace(/^\\/,"")}]]`));else{let n=!1;0===t.indexOf("!")&&(n=!0,t=t.replace(/^!/,"")),n?e.normativeReferences.add(t):e.informativeReferences.add(t),o.appendChild(document.createTextNode("[")),o.appendChild(hyperHTML`<cite><a class="bibref" href="${`#bib-${t}`}">${t}</a></cite>`),o.appendChild(document.createTextNode("]"))}}else n.has(s)?"ABBR"===r.parentNode.tagName?o.appendChild(document.createTextNode(s)):o.appendChild(hyperHTML`<abbr title="${n.get(s)}">${s}</abbr>`):(0,t.pub)("error",`Found token '${s}' but it does not correspond to anything`)}r.parentNode.replaceChild(o,r)}};e.name="core/inlines"}),define("core/dfn",["exports","core/pubsubhub"],function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.name=void 0,e.run=function(e,t,r){e.hasOwnProperty("definitionMap")||(e.definitionMap=Object.create(null));n("[dfn-for]","dfn-for"),n("dfn[for]","for"),Array.from(document.querySelectorAll("dfn")).forEach(t=>{const n=t.closest("[data-dfn-for]");n&&n!==t&&!t.dataset.dfnFor&&(t.dataset.dfnFor=n.dataset.dfnFor),t.dataset.dfnFor&&(t.dataset.dfnFor=t.dataset.dfnFor.toLowerCase());const r=$(t);r.getDfnTitles({isDefinition:!0}).map(t=>(e.definitionMap[t]||(e.definitionMap[t]=[]),e.definitionMap[t])).reduce(function(e,t){return t.push(e),e},r)}),r()};e.name="core/dfn";function n(e,n){const r=document.querySelectorAll(e),i="The `for` and `dfn-for` attributes are deprecated. Please use `data-dfn-for` instead. See developer console.";r.length&&(0,t.pub)(i),Array.from(r).forEach(e=>{console.warn(i,e),e.dataset.dfnFor=e.getAttribute(n).toLowerCase(),e.removeAttribute(n)})}}),define("w3c/rfc2119",["exports","core/utils"],function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.name=void 0,e.run=function(e,n,r){const i=n.getElementById("respecRFC2119");if(!i)return r();const o=Object.getOwnPropertyNames(e.respecRFC2119);if(0===o.length)return i.remove(),r();const a=(0,t.joinAnd)(o.sort(),e=>`<em class="rfc2119">${e}</em>`),s=o.length>1,l=`The key word${s?"s ":" "} ${a} ${s?"are":"is"} ${i.innerHTML}`;i.innerHTML=l,r()};e.name="w3c/rfc2119"}),define("deps/text!core/css/examples.css",[],function(){return"/* --- EXAMPLES --- */\ndiv.example-title {\n min-width: 7.5em;\n color: #b9ab2d;\n}\ndiv.example-title span {\n text-transform: uppercase;\n}\naside.example, div.example, div.illegal-example {\n padding: 0.5em;\n margin: 1em 0;\n position: relative;\n clear: both;\n}\ndiv.illegal-example { color: red }\ndiv.illegal-example p { color: black }\naside.example, div.example {\n padding: .5em;\n border-left-width: .5em;\n border-left-style: solid;\n border-color: #e0cb52;\n background: #fcfaee;\n}\n\naside.example div.example {\n border-left-width: .1em;\n border-color: #999;\n background: #fff;\n}\naside.example div.example div.example-title {\n color: #999;\n}\n"}),define("core/examples",["exports","core/pubsubhub","deps/text!core/css/examples.css"],function(e,t,n){Object.defineProperty(e,"__esModule",{value:!0}),e.name=void 0,e.run=function(e,n,r){var a=$("pre.example, pre.illegal-example, aside.example"),s=0;a.length&&($(n).find("head link").first().before($("<style/>").text(i.default)),a.each(function(n,r){var i=$(r),a={number:s,illegal:i.hasClass("illegal-example")};if(i.is("aside")){var l=o(e,i,++s,a);i.prepend(l),(0,t.pub)("example",a)}else{var c=!!i.parents("aside").length;c||s++;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")),i.removeClass("example illegal-example");var h=$("<div class='example'></div>"),l=o(e,i,c?0:s,a);h.append(l),h.append(i.clone()),i.replaceWith(h),c||(0,t.pub)("example",a)}}));r()};var r,i=(r=n)&&r.__esModule?r:{default:r};e.name="core/examples";var o=function(e,t,n,r){var i=n>0?" "+n:"",o=$(`<div class='example-title'><span>${e.l10n.example}${i}</span></div>`);return r.title=t.attr("title"),r.title&&(o.append($("<span style='text-transform: none'>: "+r.title+"</span>")),t.removeAttr("title")),o.addClass("marker"),o}}),define("deps/text!core/css/issues-notes.css",[],function(){return'/* --- ISSUES/NOTES --- */\ndiv.issue-title, div.note-title , div.ednote-title, div.warning-title {\n padding-right: 1em;\n min-width: 7.5em;\n color: #b9ab2d;\n}\ndiv.issue-title { color: #e05252; }\ndiv.note-title, div.ednote-title { color: #2b2; }\ndiv.warning-title { color: #f22; }\ndiv.issue-title span, div.note-title span, div.ednote-title span, div.warning-title span {\n text-transform: uppercase;\n}\ndiv.note, div.issue, div.ednote, div.warning {\n margin-top: 1em;\n margin-bottom: 1em;\n}\n.note > p:first-child, .ednote > p:first-child, .issue > p:first-child, .warning > p:first-child { margin-top: 0 }\n.issue, .note, .ednote, .warning {\n padding: .5em;\n border-left-width: .5em;\n border-left-style: solid;\n}\ndiv.issue, div.note , div.ednote, div.warning {\n padding: 1em 1.2em 0.5em;\n margin: 1em 0;\n position: relative;\n clear: both;\n}\nspan.note, span.ednote, span.issue, span.warning { padding: .1em .5em .15em; }\n\n.issue {\n border-color: #e05252;\n background: #fbe9e9;\n}\n.note, .ednote {\n border-color: #52e052;\n background: #e9fbe9;\n}\n\n.warning {\n border-color: #f11;\n border-width: .2em;\n border-style: solid;\n background: #fbe9e9;\n}\n\n.warning-title:before{\n content: "⚠"; /*U+26A0 WARNING SIGN*/\n font-size: 3em;\n float: left;\n height: 100%;\n padding-right: .3em;\n vertical-align: top;\n margin-top: -0.5em;\n}\n\nli.task-list-item {\n list-style: none;\n}\n\ninput.task-list-item-checkbox {\n margin: 0 0.35em 0.25em -1.6em;\n vertical-align: middle;\n}\n'}),define("core/issues-notes",["exports","core/pubsubhub","deps/text!core/css/issues-notes.css"],function(e,t,n){Object.defineProperty(e,"__esModule",{value:!0}),e.name=void 0,e.run=async function(e){const n=$(".issue, .note, .warning, .ednote"),r=new Map;if(!n.length)return;if(e.githubAPI&&document.querySelector(".issue[data-number]")){const n=await async function({githubAPI:e}){const n=[],r=[...document.querySelectorAll(".issue[data-number]")].map(e=>Number.parseInt(e.dataset.number,10)).filter(e=>e);for(const i of r)try{const r=`${e}/issues/${i}`,o=await fetch(r,{Accept:"application/vnd.github.v3.html+json"}),a=await o.json();n.push([i,a])}catch(e){console.error(e);const r=`There was an error fetching ${i} from GitHub. See developer console.`;(0,t.pub)("error",r),n.push([i,{title:""}])}return n}(e);n.reduce((e,[t,n])=>e.set(t,n),r)}const{head:o}=document;o.insertBefore(hyperHTML`<style>${[i.default]}</style>`,o.querySelector("link")),function(e,n,r){const{issueBase:i}=r;var o=$(".issue[data-number]").length>0,a=0,s=$("<div><h2>"+r.l10n.issue_summary+"</h2><ul></ul></div>"),l=s.find("ul");e.each(function(e,s){var c=$(s),u=c.hasClass("issue"),d=c.hasClass("warning"),p=c.hasClass("ednote"),f=c.hasClass("atrisk"),h="span"===c[0].localName,m=c.attr("data-number"),g={inline:h,content:c.html()};if(g.type=u?"issue":d?"warning":p?"ednote":"note",!u||h||o?m&&(g.number=m):(a++,g.number=a),!h){var b,y=$("<div class='"+g.type+(f?" atrisk":"")+"'></div>"),v=$("<div role='heading' class='"+g.type+"-title'><span></span></div>"),w=u?f?"Feature at Risk":r.l10n.issue:d?r.l10n.warning:p?r.l10n.editors_note:r.l10n.note;if(v.makeID("h",g.type),g.title=c.attr("title"),u&&(o?m&&(w+=" "+m,!f&&i?v.find("span").wrap($("<a href='"+i+m+"'/>")):f&&r.atRiskBase&&v.find("span").wrap($("<a href='"+r.atRiskBase+m+"'/>")),(b=n.get(Number(m)))&&!g.title&&(g.title=b.title)):w+=" "+a,void 0!==g.number)){var x="issue-"+g.number,C=$("<li><a></a></li>"),k=C.find("a");y.attr("id",x),k.attr("href","#"+x).text(r.l10n.issue+" "+g.number),g.title&&C.append($("<span style='text-transform: none'>: "+g.title+"</span>")),l.append(C)}v.find("span").text(w),g.title&&(v.append($("<span style='text-transform: none'>: "+g.title+"</span>")),c.removeAttr("title")),v.addClass("marker"),y.append(v),c.replaceWith(y);var E=c.removeClass(g.type).removeAttr("data-number");b&&!E.text().trim()&&(E=b.body_html),y.append(E);const e=v.parents("section").length+2;v.attr("aria-level",e)}(0,t.pub)(g.type,g)}),$(".issue").length?$("#issue-summary")&&$("#issue-summary").append(s.contents()):$("#issue-summary").length&&((0,t.pub)("warn","Using issue summary (#issue-summary) but no issues found."),$("#issue-summary").remove())}(n,r,e)};var r,i=(r=n)&&r.__esModule?r:{default:r};e.name="core/issues-notes"}),define("core/requirements",["exports","core/pubsubhub"],function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.name=void 0,e.run=function(e,n,r){$(".req").each(function(e){e++;var t=$(this),n="Req. "+e;t.prepend("<a href='#"+t.attr("id")+"'>"+n+"</a>: ")}),$("a.reqRef").each(function(){var e,n,r,i=$(this),o=i.attr("href");o&&(e=o.substring(1),(n=$("#"+e)).length?r=n.find("> a").text():(r="Req. not found '"+e+"'",(0,t.pub)("error","Requirement not found in element `a.reqRef`: "+e)),i.text(r))}),r()};e.name="core/requirements"}),define("deps/text!core/css/bp.css",[],function(){return"/* --- Best Practices --- */\ndiv.practice {\n border: solid #bebebe 1px;\n margin: 2em 1em 1em 2em;\n}\n\nspan.practicelab {\n margin: 1.5em 0.5em 1em 1em;\n font-weight: bold;\n font-style: italic;\n background: #dfffff;\n position: relative;\n padding: 0 0.5em;\n top: -1.5em;\n}\n\np.practicedesc {\n margin: 1.5em 0.5em 1em 1em;\n}\n\n@media screen {\n p.practicedesc {\n position: relative;\n top: -2em;\n padding: 0;\n margin: 1.5em 0.5em -1em 1em;\n }\n}\n"}),define("core/best-practices",["exports","deps/text!core/css/bp.css","core/pubsubhub","deps/hyperhtml"],function(e,t,n){Object.defineProperty(e,"__esModule",{value:!0}),e.name=void 0,e.run=function(){let e=0;const t=document.querySelectorAll("span.practicelab"),r=document.createElement("ul");for(const n of Array.from(t)){e++;const t=window.$.fn.makeID.call([n],"bp"),i=hyperHTML`<li><a href="${`#${t}`}">Best Practice ${e}</a>: ${n.textContent}</li>`;r.appendChild(i),n.insertBefore(document.createTextNode(`Best Practice ${e}: `),n.firstChild)}const o=document.getElementById("bp-summary");t.length?(document.head.insertBefore(hyperHTML`<style>${[i.default]}</style>`,document.head.querySelector("link")),o&&(o.appendChild(hyperHTML`<h2>Best Practices Summary</h2>`),o.appendChild(r))):o&&((0,n.pub)("warn","Using best practices summary (#bp-summary) but no best practices found."),o.remove())};var r,i=(r=t)&&r.__esModule?r:{default:r};e.name="core/best-practices"}),define("core/figures",["exports","core/pubsubhub"],function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.name=void 0,e.run=function(e,n,r){$(".figure",n).each(function(e,n){var r=$(n),i=r.attr("title")||r.find("[title]").attr("title")||r.attr("alt")||r.find("[alt]").attr("alt")||"",o=$("<figcaption/>").text(i);let a="div.figure";r.is("div")?(r.append(o),r.renameElement("figure")):(a="img.figure",r.wrap("<figure></figure>"),r.parent().append(o)),(0,t.pub)("warn",`You are using the deprecated ${a} syntax; please switch to \`<figure>\`. `+"Your document has been updated to use `<figure>` instead ❤️.")});var i={},o=[],a=0;$("figure").each(function(){var r=$(this),s=r.find("figcaption"),l=s.text(),c=r.makeID("fig",l);s.length||(0,t.pub)("warn","A `<figure>` should contain a `<figcaption>`."),a++,s.wrapInner($("<span class='fig-title'/>")).prepend(n.createTextNode(" ")).prepend($("<span class='figno'>"+a+"</span>")).prepend(n.createTextNode(e.l10n.fig)),i[c]=s.contents();var u=s.clone();u.find("a").renameElement("span").removeAttr("href"),o.push($("<li class='tofline'><a class='tocxref' href='#"+c+"'></a></li>").find(".tocxref").append(u.contents()).end())}),$("a[href]",n).each(function(){var e=$(this),t=e.attr("href");t&&(t=t.substring(1),i[t]&&(e.addClass("fig-ref"),""===e.html()&&e.append(i[t].clone())))});var s=$("#tof",n);if(o.length&&s.length){s.hasClass("appendix")||s.hasClass("introductory")||s.parents("section").length||(s.prevAll("section.introductory").length===s.prevAll("section").length?s.addClass("introductory"):s.prevAll("appendix").length&&s.addClass("appendix")),s.append($("<h2>"+e.l10n.table_of_fig+"</h2>")),s.append($("<ul class='tof'/>"));for(var l=s.find("ul");o.length;)l.append(o.shift())}r()};e.name="core/figures"}),(()=>{const e={float:/-?(?=[0-9]*\.|[0-9]+[eE])(([0-9]+\.[0-9]*|[0-9]*\.[0-9]+)([Ee][-+]?[0-9]+)?|[0-9]+[Ee][-+]?[0-9]+)/y,integer:/-?(0([Xx][0-9A-Fa-f]+|[0-7]*)|[1-9][0-9]*)/y,identifier:/[A-Z_a-z][0-9A-Z_a-z-]*/y,string:/"[^"]*"/y,whitespace:/[\t\n\r ]+/y,comment:/((\/(\/.*|\*([^*]|\*[^\/])*\*\/)[\t\n\r ]*)+)/y,other:/[^\t\n\r 0-9A-Z_a-z]/y};function t(e,t,n,r,i){n.lastIndex=r;const o=n.exec(e);return o?(i.push({type:t,value:o[0]}),n.lastIndex):-1}class n{constructor(e,t,n,r){this.message=e,this.line=t,this.input=n,this.tokens=r}toString(){return`${this.message}, line ${this.line} (tokens: '${this.input}')\n${JSON.stringify(this.tokens,null,4)}`}}function r(e,t){let r=1;e=e.slice();const i=new Map;let o=null;const a="float",s="integer",l="identifier",c="string",u="other",d=Object.freeze({type:"operation",getter:!1,setter:!1,deleter:!1,static:!1,stringifier:!1});function p(t){let i="",a=0;for(;a<5&&e.length>a;)i+=e[a].value,a++;let s;throw s=o?`Got an error during or right after parsing \`${o.partial?"partial ":""}${o.type} ${o.name}\`: ${t}`:`Got an error before parsing any named definition: ${t}`,new n(s,r,i,e.slice(0,5))}function f(e,t){return i.has(e)&&p(`The name "${e}" of type "${i.get(e)}" is already seen`),i.set(e,t),e}let h=null;function m(t,n){if(e.length&&e[0].type===t)return void 0===n||e[0].value===n?(h=e.shift(),t===l&&h.value.startsWith("_")&&(h.value=h.value.substring(1)),h):void 0}function g(){if(e.length&&"whitespace"===e[0].type){const t=e.shift();return r+=function(e,t){let n=0;for(let r=e.indexOf(t);-1!==r;r=e.indexOf(t,r+1))++n;return n}(t.value,"\n"),t}}const b={ws:/([\t\n\r ]+)/y,"line-comment":/\/\/(.*)\r?\n?/y,"multiline-comment":/\/\*((?:[^*]|\*[^/])*)\*\//y};function y(e,t){const n={type:"whitespace",value:""};for(;;){const e=g();if(!e)break;n.value+=e.value}if(n.value.length>0){if(e){let r=n.value,i=0;for(;i<r.length;){let n=!1;for(let o in b){const a=b[o];a.lastIndex=i;const s=a.exec(r);if(s){e.push({type:o+(t?"-"+t:""),value:s[1]}),n=!0,i=a.lastIndex;break}}if(!n)throw new Error("Surprising white space construct.")}}return n}}function v(){const e=function(){let e="";return y(),m(l,"unsigned")&&(e="unsigned "),y(),m(l,"short")?e+"short":m(l,"long")?(e+="long",y(),m(l,"long")?e+" long":e):void(e&&p("Failed to parse integer type"))}()||function(){let e="";return y(),m(l,"unrestricted")&&(e="unrestricted "),y(),m(l,"float")?e+"float":m(l,"double")?e+"double":void(e&&p("Failed to parse float type"))}();return e||(y(),m(l,"boolean")?"boolean":m(l,"byte")?"byte":m(l,"octet")?"octet":void 0)}function w(){if(m(l,"true"))return{type:"boolean",value:!0};if(m(l,"false"))return{type:"boolean",value:!1};if(m(l,"null"))return{type:"null"};if(m(l,"Infinity"))return{type:"Infinity",negative:!1};if(m(l,"NaN"))return{type:"NaN"};const t=m(a)||m(s);if(t)return{type:"number",value:t.value};const n=m(u,"-");if(n){if(m(l,"Infinity"))return{type:"Infinity",negative:!0};e.unshift(n)}}function x(e){for(;;){if(y(),!m(u,"?"))return;e.nullable&&p("Can't nullable more than once"),e.nullable=!0}}function C(e){const t=v(),n={type:e||null,sequence:!1,generic:null,nullable:!1,union:!1};let r,i;if(t)n.idlType=t;else{if(!(r=m(l)))return;if(i=r.value,y(),m(u,"<")){"sequence"===i&&(n.sequence=!0),n.generic=i;const t=[];do{y(),t.push(E(e)||p("Error parsing generic type "+i)),y()}while(m(u,","));return"sequence"===i?1!==t.length&&p("A sequence must have exactly one subtype"):"record"===i?(2!==t.length&&p("A record must have exactly two subtypes"),/^(DOMString|USVString|ByteString)$/.test(t[0].idlType)||p("Record key must be DOMString, USVString, or ByteString"),t[0].extAttrs&&p("Record key cannot have extended attribute")):"Promise"===i&&t[0].extAttrs&&p("Promise type cannot have extended attribute"),n.idlType=1===t.length?t[0]:t,y(),m(u,">")||p("Unterminated generic type "+i),x(n),n}n.idlType=i}return x(n),n.nullable&&"any"===n.idlType&&p("Type any cannot be made nullable"),n}function k(e){if(y(),!m(u,"("))return;const t={type:e||null,sequence:!1,generic:null,nullable:!1,union:!0,idlType:[]},n=E()||p("Union type with no content");for(t.idlType.push(n);y(),m(l,"or");){const e=E()||p("No type after 'or' in union type");t.idlType.push(e)}return m(u,")")||p("Unterminated union type"),x(t),t}function E(e){const t=$(),n=C(e)||k(e);return t.length&&n&&(n.extAttrs=t),n}function T(t){const n={optional:!1,variadic:!1};n.extAttrs=$(t),y(t,"pea");const r=m(l,"optional");if(r&&(n.optional=!0,y()),n.idlType=E("argument-type"),!n.idlType)return void(r&&e.unshift(r));const i=h;n.optional||(y(),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)),y();const o=m(l);if(!o)return r&&e.unshift(r),void e.unshift(i);if(n.name=o.value,n.optional){y();const e=L();void 0!==e&&(n.default=e)}return n}function S(e){const t=[],n=T(e?t:null);if(n)for(t.push(n);;){if(y(e?t:null),!m(u,","))return t;const n=T(e?t:null)||p("Trailing comma in arguments list");t.push(n)}}function A(e){y();const t=m(l);if(!t)return;const n={name:t.value,arguments:null,type:"extended-attribute",rhs:null};if(y(),m(u,"=")){if(y(),n.rhs=m(l)||m(a)||m(s)||m(c),!n.rhs&&m(u,"(")){const e=[],t=m(l);t&&e.push(t.value),function(e){for(;y(),m(u,",");){y();const t=m(l)||p("Trailing comma in identifiers list");e.push(t.value)}}(e),m(u,")")||p("Unexpected token in extended attribute argument list or type pair"),n.rhs={type:"identifier-list",value:e}}if(!n.rhs)return p("No right hand side to extended attribute assignment")}let r;(y(),m(u,"("))&&((r=S(e))?n.arguments=r:n.arguments=[],y(),m(u,")")||p("Unexpected token in extended attribute argument list"));return n}function $(e){const t=[];if(y(e),!m(u,"["))return t;for(t[0]=A(e)||p("Extended attribute with not content"),y();m(u,",");)t.length?t.push(A(e)):t.push(A(e)||p("Trailing comma in extended attribute"));return y(),m(u,"]")||p("No end of extended attribute"),t}function L(){if(y(),m(u,"=")){y();const e=w();if(e)return e;if(m(u,"["))return m(u,"]")||p("Default sequence value must be empty"),{type:"sequence",value:[]};{const e=m(c)||p("No value for default");return e.value=e.value.slice(1,-1),e}}}function D(e){if(y(e,"pea"),!m(l,"const"))return;const t={type:"const",nullable:!1};y();let n=v();n||(n=(n=m(l)||p("No type for const")).value),t.idlType={type:"const-type",idlType:n},y(),m(u,"?")&&(t.nullable=!0,y());const r=m(l)||p("No name for const");t.name=r.value,y(),m(u,"=")||p("No value assignment for const"),y();const i=w();return i?t.value=i:p("No value for const"),y(),m(u,";")||p("Unterminated const"),t}function j(){if(y(),m(u,":"))return y(),(m(l)||p("No type in inheritance")).value}function N(e,t){y(),e||(e={});const n=m(l);return e.name=n?n.value:null,y(),m(u,"(")||p("Invalid operation"),e.arguments=S(t)||[],y(),m(u,")")||p("Unterminated operation"),y(),m(u,";")||p("Unterminated operation"),e}function _(t){y(t,"pea");const n=[],r={type:"attribute",static:!1,stringifier:!1,inherit:!1,readonly:!1},i=y();if(i&&n.push(i),m(l,"inherit")){(r.static||r.stringifier)&&p("Cannot have a static or stringifier inherit"),r.inherit=!0,n.push(h);const e=y();e&&n.push(e)}if(m(l,"readonly")){r.readonly=!0,n.push(h);const e=y();e&&n.push(e)}const o=R(r);return o||(e=n.concat(e)),o}function R(e){if(!m(l,"attribute"))return;y(),e.idlType=E("attribute-type")||p("No type in attribute"),e.idlType.sequence&&p("Attributes cannot accept sequence types"),"record"===e.idlType.generic&&p("Attributes cannot accept record types"),y();const t=m(l)||p("No name in attribute");return e.name=t.value,y(),m(u,";")||p("Unterminated attribute"),e}function P(){const e=C(t="return-type")||k(t);var t;if(!e){if(m(l,"void"))return"void";p("No return type")}return e}function M(e){y(e,"pea");const t=Object.assign({},d);for(;;)if(y(),m(l,"getter"))t.getter=!0;else if(m(l,"setter"))t.setter=!0;else{if(!m(l,"deleter"))break;t.deleter=!0}return t.getter||t.setter||t.deleter?(y(),t.idlType=P(),N(t,e),t):(t.idlType=P(),y(),N(t,e),t)}function O(e){if(y(e,"pea"),m(l,"static"))return y(),z(e,"static")||G(e,"static")||p("No body in static member")}function I(e){if(y(e,"pea"),m(l,"stringifier"))return y(),m(u,";")?Object.assign({},d,{stringifier:!0}):z(e,"stringifier")||G(e,"stringifier")||p("Unterminated stringifier")}function q(){return m(l,"iterable")?"iterable":m(l,"legacyiterable")?"legacyiterable":m(l,"maplike")?"maplike":m(l,"setlike")?"setlike":void 0}function W(){return m(l,"maplike")?"maplike":m(l,"setlike")?"setlike":void 0}function B(t){y(t,"pea");const n=[],r={type:null,idlType:null,readonly:!1};if(m(l,"readonly")){r.readonly=!0,n.push(h);var i=y();i&&n.push(i)}const o=(r.readonly?W:q)();if(!o)return void(e=n.concat(e));const a="maplike"===o,s=a||"iterable"===o;return r.type=o,"maplike"!==r.type&&"setlike"!==r.type&&delete r.readonly,y(),m(u,"<")?(r.idlType=[E()]||p(`Error parsing ${o} declaration`),y(),s&&(m(u,",")?(y(),r.idlType.push(E()),y()):a&&p(`Missing second type argument in ${o} declaration`)),m(u,">")||p(`Unterminated ${o} declaration`),y(),m(u,";")||p(`Missing semicolon after ${o} declaration`)):p(`Error parsing ${o} declaration`),r}function H(e,n,r="interface"){y();const i=m(l)||p("No name for interface"),a=[],s=o={type:r,name:e?i.value:f(i.value,"interface"),partial:e,members:a};for(e||(s.inheritance=j()||null),y(),m(u,"{")||p("Bodyless interface");;){if(y(n?a:null),m(u,"}"))return y(),m(u,";")||p("Missing semicolon after interface"),s;const e=$(n?a:null);y();const r=D(n?a:null);if(r){r.extAttrs=e,s.members.push(r);continue}const i=t.allowNestedTypedefs&&X(n?a:null)||O(n?a:null)||I(n?a:null)||B(n?a:null)||_(n?a:null)||M(n?a:null)||p("Unknown member");i.extAttrs=e,s.members.push(i)}}function F(e,t){if(y(e?null:t,"pea"),m(l,"interface"))return function(e,t){if(y(),!m(l,"mixin"))return;y();const n=m(l)||p("No name for interface mixin"),r=[],i=o={type:"interface mixin",name:e?n.value:f(n.value,"interface mixin"),partial:e,members:r};for(y(),m(u,"{")||p("Bodyless interface mixin");;){if(y(t?r:null),m(u,"}"))return y(),m(u,";")||p("Missing semicolon after interface mixin"),i;const e=$(t?r:null);y();const n=D(t?r:null);if(n){n.extAttrs=e,i.members.push(n);continue}const o=I(t?r:null)||z(t?r:null)||G(t?r:null)||p("Unknown member");o.extAttrs=e,i.members.push(o)}}(e,t)||H(e,t)||p("Interface has no proper body")}function U(e,t){if(y(e?null:t,"pea"),!m(l,"namespace"))return;y();const n=m(l)||p("No name for namespace"),r=[],i=o={type:"namespace",name:e?n.value:f(n.value,"namespace"),partial:e,members:r};for(y(),m(u,"{")||p("Bodyless namespace");;){if(y(t?r:null),m(u,"}"))return y(),m(u,";")||p("Missing semicolon after namespace"),i;const e=$(t?r:null);y();const n=z(t?r:null)||G(t?r:null)||p("Unknown member");n.extAttrs=e,i.members.push(n)}}function z(t,n){const r=y(t,"pea"),i=[],o={type:"attribute",static:!1,stringifier:!1,inherit:!1,readonly:!1};if(n&&(o[n]=!0),r&&i.push(r),m(l,"readonly")){o.readonly=!0,i.push(h);const e=y();e&&i.push(e)}const a=R(o);return a||(e=i.concat(e)),a}function G(e,t){y(e,"pea");const n=Object.assign({},d);return t&&(n[t]=!0),n.idlType=P(),N(n,e)}function V(e,t){if(y(e?null:t,"pea"),!m(l,"dictionary"))return;y();const n=m(l)||p("No name for dictionary"),r=[],i=o={type:"dictionary",name:e?n.value:f(n.value,"dictionary"),partial:e,members:r};for(e||(i.inheritance=j()||null),y(),m(u,"{")||p("Bodyless dictionary");;){if(y(t?r:null),m(u,"}"))return y(),m(u,";")||p("Missing semicolon after dictionary"),i;const e=$(t?r:null);y(t?r:null,"pea");const n=m(l,"required"),o=E("dictionary-type")||p("No type for dictionary member");y();const a=m(l)||p("No name for dictionary member"),s=L();n&&s&&p("Required member must not have a default");const c={type:"field",name:a.value,required:!!n,idlType:o,extAttrs:e};void 0!==s&&(c.default=s),i.members.push(c),y(),m(u,";")||p("Unterminated dictionary member")}}function X(e){if(y(e,"pea"),!m(l,"typedef"))return;const t={type:"typedef"};y(),t.idlType=E("typedef-type")||p("No type in typedef"),y();const n=m(l)||p("No name in typedef");return t.name=f(n.value,"typedef"),o=t,y(),m(u,";")||p("Unterminated typedef"),t}function Y(t){return function(e){let t;if(y(e,"pea"),!m(l,"callback"))return;if(y(),m(l,"interface"))return t=H(!1,e,"callback interface");const n=m(l)||p("No name for callback");return t=o={type:"callback",name:f(n.value,"callback")},y(),m(u,"=")||p("No assignment in callback"),y(),t.idlType=P(),y(),m(u,"(")||p("No arguments in callback"),t.arguments=S(e)||[],y(),m(u,")")||p("Unterminated callback"),y(),m(u,";")||p("Unterminated callback"),t}(t)||F(!1,t)||function(e){if(y(e,"pea"),!m(l,"partial"))return;return V(!0,e)||F(!0,e)||U(!0,e)||p("Partial doesn't apply to anything")}(t)||V(!1,t)||function(e){if(y(e,"pea"),!m(l,"enum"))return;y();const t=m(l)||p("No name for enum"),n=[],r=o={type:"enum",name:f(t.value,"enum"),values:n};y(),m(u,"{")||p("No curly for enum");let i=!1;for(;;){if(y(e?n:null),m(u,"}"))return y(),m(u,";")||p("No semicolon after enum"),r;const t=m(c)||p("Unexpected value in enum");t.value=t.value.slice(1,-1),r.values.push(t),y(e?n:null),m(u,",")?(e&&n.push({type:","}),y(e?n:null),i=!0):i=!1}}(t)||X(t)||function(t){y(t,"pea");const n=m(l);if(!n)return;const r=y();if(m(l,"implements")){const e={type:"implements",target:n.value};y();const t=m(l)||p("Incomplete implements statement");return e.implements=t.value,y(),m(u,";")||p("No terminating ; for implements statement"),e}e.unshift(r),e.unshift(n)}(t)||function(t){y(t,"pea");const n=m(l);if(!n)return;const r=y();if(m(l,"includes")){const e={type:"includes",target:n.value};y();const t=m(l)||p("Incomplete includes statement");return e.includes=t.value,y(),m(u,";")||p("No terminating ; for includes statement"),e}e.unshift(r),e.unshift(n)}(t)||U(!1,t)}const Z=function(t){if(!e.length)return[];const n=[];for(;;){const e=$(t?n:null),r=Y(t?n:null);if(!r){e.length&&p("Stray extended attributes");break}r.extAttrs=e,n.push(r)}return n}(t.ws);return e.length&&p("Unrecognised tokens"),Z}const i={parse:(n,i)=>(i||(i={}),r(function(n){const r=[];let i=0;for(;i<n.length;){const o=n.charAt(i);let a=-1;if(/[-0-9.]/.test(o)?(-1===(a=t(n,"float",e.float,i,r))&&(a=t(n,"integer",e.integer,i,r)),-1===a&&(a=t(n,"other",e.other,i,r))):/[A-Z_a-z]/.test(o)?a=t(n,"identifier",e.identifier,i,r):'"'===o?-1===(a=t(n,"string",e.string,i,r))&&(a=t(n,"other",e.other,i,r)):/[\t\n\r ]/.test(o)?a=t(n,"whitespace",e.whitespace,i,r):"/"===o?-1===(a=t(n,"whitespace",e.comment,i,r))&&(a=t(n,"other",e.other,i,r)):a=t(n,"other",e.other,i,r),-1===a)throw new Error("Token stream not progressing");i=a}return r}(n),i))};"undefined"!=typeof module&&void 0!==module.exports?module.exports=i:"function"==typeof define&&define.amd?define("deps/webidl2",[],()=>i):(self||window).WebIDL2=i})(),define("deps/text!core/css/webidl.css",[],function(){return'/* --- WEB IDL --- */\n\npre.idl {\n padding: 1em;\n}\n\n.respec-idl-separator {\n padding: 0 0 0.4cm 0;\n}\n\n.respec-idl-separator:last-child {\n padding: 0;\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 font-weight: bold;\n margin: -1em 0 1em -1em;\n height: 28px;\n line-height: 28px; \n}\n\n.idlType {\n color: #ff4500;\n font-weight: bold;\n text-decoration: none;\n}\n\n\n/*.idlModule*/\n\n\n/*.idlModuleID*/\n\n\n/*.idlInterface*/\n\n.idlInterfaceID,\n.idlDictionaryID,\n.idlCallbackID,\n.idlEnumID {\n font-weight: bold;\n color: #005a9c;\n}\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\n/*.idlAttribute*/\n\n.idlAttrType,\n.idlFieldType,\n.idlMemberType {\n color: #005a9c;\n}\n\n.idlAttrName,\n.idlFieldName,\n.idlMemberName {\n color: #ff4500;\n}\n\n.idlAttrName a,\n.idlFieldName a,\n.idlMemberName a {\n color: #ff4500;\n border-bottom: 1px dotted #ff4500;\n text-decoration: none;\n}\n\n\n/*.idlMethod*/\n\n.idlMethType,\n.idlCallbackType {\n color: #005a9c;\n}\n\n.idlMethName {\n color: #ff4500;\n}\n\n.idlMethName a {\n color: #ff4500;\n border-bottom: 1px dotted #ff4500;\n text-decoration: none;\n}\n\n\n/*.idlCtor*/\n\n.idlCtorName {\n color: #ff4500;\n}\n\n.idlCtorName a {\n color: #ff4500;\n border-bottom: 1px dotted #ff4500;\n text-decoration: none;\n}\n\n\n/*.idlParam*/\n\n.idlParamType {\n color: #005a9c;\n}\n\n.idlParamName,\n.idlDefaultValue {\n font-style: italic;\n}\n\n.extAttr {\n color: #666;\n}\n\n\n/*.idlSectionComment*/\n\n.idlSectionComment {\n color: gray;\n}\n\n\n/*.idlIterable*/\n\n.idlIterableKeyType,\n.idlIterableValueType {\n color: #005a9c;\n}\n\n\n/*.idlMaplike*/\n\n.idlMaplikeKeyType,\n.idlMaplikeValueType {\n color: #005a9c;\n}\n\n\n/*.idlConst*/\n\n.idlConstType {\n color: #005a9c;\n}\n\n.idlConstName {\n color: #ff4500;\n}\n\n.idlConstName a {\n color: #ff4500;\n border-bottom: 1px dotted #ff4500;\n text-decoration: none;\n}\n\n\n/*.idlException*/\n\n.idlExceptionID {\n font-weight: bold;\n color: #c00;\n}\n\n.idlTypedefID,\n.idlTypedefType {\n color: #005a9c;\n}\n\n.idlRaises,\n.idlRaises a.idlType,\n.idlRaises a.idlType code,\n.excName a,\n.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,\n.excName a.idlType {\n border-bottom: 1px dotted #c00;\n}\n\n.excGetSetTrue,\n.excGetSetFalse,\n.prmNullTrue,\n.prmNullFalse,\n.prmOptTrue,\n.prmOptFalse {\n width: 45px;\n text-align: center;\n}\n\n.excGetSetTrue,\n.prmNullTrue,\n.prmOptTrue {\n color: #0c0;\n}\n\n.excGetSetFalse,\n.prmNullFalse,\n.prmOptFalse {\n color: #c00;\n}\n\n.idlImplements a, .idlIncludes a {\n font-weight: bold;\n}\n\ndl.attributes,\ndl.methods,\ndl.constants,\ndl.constructors,\ndl.fields,\ndl.dictionary-members {\n margin-left: 2em;\n}\n\n.attributes dt,\n.methods dt,\n.constants dt,\n.constructors dt,\n.fields dt,\n.dictionary-members dt {\n font-weight: normal;\n}\n\n.attributes dt code,\n.methods dt code,\n.constants dt code,\n.constructors dt code,\n.fields dt code,\n.dictionary-members dt code {\n font-weight: bold;\n color: #000;\n font-family: monospace;\n}\n\n.attributes dt code,\n.fields dt code,\n.dictionary-members dt code {\n background: #ffffd2;\n}\n\n.attributes dt .idlAttrType code,\n.fields dt .idlFieldType code,\n.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,\n.methods dd,\n.constants dd,\n.constructors dd,\n.fields dd,\n.dictionary-members dd {\n margin-bottom: 1em;\n}\n\ntable.parameters,\ntable.exceptions {\n border-spacing: 0;\n border-collapse: collapse;\n margin: 0.5em 0;\n width: 100%;\n}\n\ntable.parameters {\n border-bottom: 1px solid #90b8de;\n}\n\ntable.exceptions {\n border-bottom: 1px solid #deb890;\n}\n\n.parameters th,\n.exceptions th {\n color: inherit;\n padding: 3px 5px;\n text-align: left;\n font-weight: normal;\n}\n\n.parameters th {\n color: #fff;\n background: #005a9c;\n}\n\n.exceptions th {\n background: #deb890;\n}\n\n.parameters td,\n.exceptions td {\n padding: 3px 10px;\n border-top: 1px solid #ddd;\n vertical-align: top;\n}\n\n.parameters tr:first-child td,\n.exceptions tr:first-child td {\n border-top: none;\n}\n\n.parameters td.prmName,\n.exceptions td.excName,\n.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\n.respec-button-copy-paste:focus {\n text-decoration: none;\n border-color: #51a7e8;\n outline: none;\n box-shadow: 0 0 5px rgba(81, 167, 232, 0.5);\n}\n\n.respec-button-copy-paste:focus:hover,\n.respec-button-copy-paste.selected:focus {\n border-color: #51a7e8;\n}\n\n.respec-button-copy-paste:hover,\n.respec-button-copy-paste:active,\n.respec-button-copy-paste.zeroclipboard-is-hover,\n.respec-button-copy-paste.zeroclipboard-is-active {\n text-decoration: none;\n background-color: #ddd;\n background-image: linear-gradient(#eee, #ddd);\n border-color: #ccc;\n}\n\n.respec-button-copy-paste:active,\n.respec-button-copy-paste.selected,\n.respec-button-copy-paste.zeroclipboard-is-active {\n background-color: #dcdcdc;\n background-image: none;\n border-color: #b5b5b5;\n box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.15)\n}\n\n.respec-button-copy-paste.selected:hover {\n background-color: #cfcfcf;\n}\n\n.respec-button-copy-paste:disabled,\n.respec-button-copy-paste:disabled:hover,\n.respec-button-copy-paste.disabled,\n.respec-button-copy-paste.disabled:hover {\n color: rgba(102, 102, 102, 0.5);\n cursor: default;\n background-color: rgba(229, 229, 229, 0.5);\n background-image: none;\n border-color: rgba(197, 197, 197, 0.5);\n box-shadow: none;\n}\n'}),define("core/webidl",["exports","core/pubsubhub","deps/webidl2","handlebars.runtime","deps/text!core/css/webidl.css","templates","core/utils"],function(e,t,n,r,i,o,a){Object.defineProperty(e,"__esModule",{value:!0}),e.done=e.name=void 0,e.run=function(e,n,r){var i=function(){z(),(0,t.pub)("end","core/webidl"),r()},o=$("pre.idl",n);if(!o.length)return i();l.default.registerHelper("extAttr",function(e,t){return W(e.extAttrs,t,!1)}),l.default.registerHelper("extAttrInline",function(e){return W(e.extAttrs,0,!0)}),l.default.registerHelper("typeExtAttrs",function(e){return W(e.typeExtAttrs,0,!0)}),l.default.registerHelper("extAttrClassName",function(){return"Constructor"===this.name||"NamedConstructor"===this.name?"idlCtor":"extAttr"}),l.default.registerHelper("extAttrRhs",function(e,t){return"identifier"===e.type?t.fn(e.value):`(${e.value.map(t.fn)})`}),l.default.registerHelper("param",function(e){return new l.default.SafeString(L({obj:e,optional:e.optional?"optional ":"",variadic:e.variadic?"...":""}))}),l.default.registerHelper("jsIf",function(e,t){return e?t.fn(this):t.inverse(this)}),l.default.registerHelper("idn",function(e){return new l.default.SafeString(N(e))}),l.default.registerHelper("idlType",function(e){return new l.default.SafeString(_(e.idlType))}),l.default.registerHelper("stringifyIdlConst",function(e){switch(e.type){case"null":return"null";case"Infinity":return e.negative?"-Infinity":"Infinity";case"NaN":return"NaN";case"number":return e.value;case"string":case"boolean":case"sequence":return JSON.stringify(e.value);default:return(0,t.pub)("error","Unexpected constant value type: `"+e.type+"`."),"<Unknown>"}}),l.default.registerHelper("escapeArgumentName",X),l.default.registerHelper("escapeAttributeName",Y),l.default.registerHelper("escapeIdentifier",Z),l.default.registerHelper("pads",function(e){return new l.default.SafeString(M(e))}),l.default.registerHelper("join",function(e,t,n){return e.map(n.fn).join(t)}),l.default.registerHelper("joinNonWhitespace",function(e,t,n){return e.filter(e=>"ws"!==e.type).map(n.fn).join(t)}),l.default.registerHelper("tryLink",function(e,t){const n=t.fn(this),r="toJSON"===e.name&&e.extAttrs.some(({name:e})=>"Default"===e);if(!e.dfn&&!r)return n;const i=document.createElement("a");return i.innerText=n,!e.dfn&&r?i.dataset.cite="WEBIDL#default-tojson-operation":(i.dataset.noDefault="",i.dataset.linkFor=e.linkFor?l.default.Utils.escapeExpression(e.linkFor).toLowerCase():"",i.dataset.lt=e.dfn[0].dataset.lt||""),i.outerHTML}),$(".idl",n).not("pre").length||$(n).find("head link").first().before($("<style/>").text(c.default));o.each(function(){var n;try{n=s.default.parse($(this).text(),{ws:!0})}catch(e){return void(0,t.pub)("error",`Failed to parse WebIDL: \`${e.message}\`.\n <details>\n <pre>${(0,a.normalizePadding)(this.textContent)}\n ${e}</pre>\n </details>`)}!function e(n,r,i,o){n.filter(({type:e})=>!1===["includes","implements","ws","ws-pea","ws-tpea","line-comment","multiline-comment"].includes(e)).forEach(function(n){var a;switch(n.type){case"callback interface":case"dictionary":case"interface":case"interface mixin":var s="";n.partial&&(V[n.name]||(V[n.name]=[]),V[n.name].push(n),s="-partial-"+V[n.name].length),e(n.members,r,n.name,o),a=n.name,n.idlId="idl-def-"+a.toLowerCase()+s;break;case"enum":a=n.name;for(const e of n.values)"string"===e.type&&(e.dfn=ne(a,e.value,r,n.type,o));n.idlId="idl-def-"+a.toLowerCase();break;case"callback":case"typedef":a=n.name,n.idlId="idl-def-"+a.toLowerCase();break;case"attribute":case"const":case"field":a=n.name,n.idlId="idl-def-"+i.toLowerCase()+"-"+a.toLowerCase();break;case"operation":if(n.name){a=n.name;var l=i+"."+a,c=i+"."+a+"()";G[c]||(G[c]=[]),G[l]?(n.overload=G[l].length,a=n.name+"!overload-"+n.overload):G[l]=[],G[c].push(n),G[l].push(n)}else(n.getter||n.setter||n.deleter||n.legacycaller||n.stringifier)&&(a="");const u=`idl-def-${i.toLowerCase()}-${a.toLowerCase()}`,d=n.overload||!n.arguments.length?"":"-"+n.arguments.filter(e=>!I(e.type)).map(e=>e.name.toLowerCase()).join("-").replace(/\s/g,"_");n.idlId=u+d;break;case"maplike":a="maplike",n.idlId=("idl-def-"+i+"-"+a).toLowerCase();break;case"iterable":a="iterable",n.idlId="idl-def-"+i.toLowerCase()+"-"+a.toLowerCase();break;default:return void(0,t.pub)("error",new Error("ReSpec doesn't know about IDL type: `"+n.type+"`."))}i&&(n.linkFor=i),n.dfn=ne(i,a,r,n.type,o)})}(n,e.definitionMap,"",this);var r,i,o=(r=n,(i=$("<pre></pre>").attr({class:"def idl"})).html(r.filter(function(e){return!I(e.type)}).map(function(e){return function(e,n){var r={indent:++n,obj:e};switch(e.type){case"typedef":return D(r);case"includes":return w(r);case"implements":return x(r);case"interface":return Q(r);case"interface mixin":return Q(r,{mixin:!0});case"callback interface":return Q(r,{callback:!0});case"dictionary":var i=0,o=0;e.members.filter(function(e){return!I(e.type)});for(const t of e.members){if(I(t.type))continue;const e=t.required?"required ":"";i<e.length&&(i=e.length);var a=P(t.idlType).length;o<a&&(o=a)}var s=e.members.map(function(e){switch(e.type){case"field":return r=i,(a={obj:t=e,indent:n+1}).typePad=o-P(t.idlType).length,t.required?a.qualifiers="required ":a.qualifiers=" ",a.qualifiers=a.qualifiers.slice(0,r),g(a);case"line-comment":return ee(e,n+1);case"multiline-comment":return te(e,n+1);case"ws":return J(e);case"ws-pea":break;default:throw new Error("Unexpected type in dictionary: `"+e.type+"`.")}var t,r,a}).join("");return m({obj:e,indent:n,children:s,partial:e.partial?"partial ":""});case"callback":var l=e.arguments.filter(function(e){return!I(e.type)}).map(function(e){return L({obj:e,optional:e.optional?"optional ":"",variadic:e.variadic?"...":""})}),c={obj:e,indent:n,children:l.join(", ")},u=f(c),d=$(u).text();if(d.length>80){var p=d.indexOf("(")+1;c.children=l.join(",\n"+M(p)),u=f(c)}return u;case"enum":for(var s="",h=0;h<e.values.length;h++){var v=e.values[h];switch(v.type){case"string":for(var C=!1,k=h+1;k<e.values.length;k++){var E=e.values[k];if(void 0===E.type)break;if(","===E.type){C=!0;break}}s+=b({lname:v.value?v.value.toLowerCase():"the-empty-string",name:v.value,parentID:e.name.toLowerCase(),indent:n+1,needsComma:C});break;case"line-comment":s+=ee(v,n+1);break;case"multiline-comment":s+=te(v,n+1);break;case"ws":s+=J(v);break;case",":case"ws-pea":break;default:throw new Error("Unexpected type in exception: `"+v.type+"`.")}}return y({obj:e,indent:n,children:s});default:return(0,t.pub)("error","Unexpected object type `"+e.type+"` in "+JSON.stringify(e)),""}}(e,-1)}).join("\n\n")),i);o.attr({id:this.id}),o.find(".idlAttribute,.idlCallback,.idlConst,.idlDictionary,.idlEnum,.idlException,.idlField,.idlInterface,.idlMember,.idlMethod,.idlMaplike,.idlIterable,.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(o),o[0].classList.add(...this.classList)}),n.normalize(),i()};var s=d(n),l=d(r),c=d(i),u=d(o);function d(e){return e&&e.__esModule?e:{default:e}}e.name="core/webidl";var p=u.default["attribute.html"],f=u.default["callback.html"],h=u.default["const.html"],m=u.default["dictionary.html"],g=u.default["dict-member.html"],b=u.default["enum-item.html"],y=u.default["enum.html"],v=u.default["extended-attribute.html"],w=(u.default["field.html"],u.default["includes.html"]),x=u.default["implements.html"],C=u.default["interface.html"],k=u.default["iterable.html"],E=u.default["line-comment.html"],T=u.default["maplike.html"],S=u.default["method.html"],A=u.default["multiline-comment.html"],L=u.default["param.html"],D=u.default["typedef.html"],j=new Set(["maplike","setlike","stringifier"]);function N(e){return" ".repeat(e)}function _(e){if("string"==typeof e)return`<a>${l.default.Utils.escapeExpression(e)}</a>`;if(Array.isArray(e))return e.map(_).join(", ");const t=e.nullable?"?":"";if(e.union)return`(${e.idlType.map(_).join(" or ")})${t}`;let n="";return(n=e.generic?`${n=B.has(e.generic)?R(e.generic):_(e.generic)}<${_(e.idlType)}>`:B.has(e.idlType)?R(e.idlType):_(e.idlType))+t}function R(e){if(!B.has(e))return e;const t=l.default.Utils.escapeExpression(e);return`<a data-cite='${B.get(t)}'>${t}</a>`}function P(e){if("string"==typeof e)return e;const t=e.nullable?"?":"";if(e.union)return`(${e.idlType.map(P).join(" or ")})${t}`;if(e.generic){const n=[].concat(e.idlType).map(P).join(", ");return`${e.generic}<${n}>${t}`}return P(e.idlType)+t}function M(e){return" ".repeat(e)}var O={ws:!0,"ws-pea":!0,"ws-tpea":!0,"line-comment":!0,"multiline-comment":!0};function I(e){return O[e]}const q=new Map([["CEReactions","HTML#cereactions"],["Clamp","WEBIDL#Clamp"],["Constructor","WEBIDL#Constructor"],["Default","WEBIDL#Default"],["EnforceRange","WEBIDL#EnforceRange"],["Exposed","WEBIDL#Exposed"],["Global","WEBIDL#Global"],["HTMLConstructor","HTML#htmlconstructor"],["LegacyArrayClass","WEBIDL#LegacyArrayClass"],["LegacyUnenumerableNamedProperties","WEBIDL#LegacyUnenumerableNamedProperties"],["LenientSetter","WEBIDL#LenientSetter"],["LenientThis","WEBIDL#LenientThis"],["NamedConstructor","WEBIDL#NamedConstructor"],["NewObject","WEBIDL#NewObject"],["NoInterfaceObject","WEBIDL#NoInterfaceObject"],["OverrideBuiltins","WEBIDL#OverrideBuiltins"],["PrimaryGlobal","WEBIDL#PrimaryGlobal"],["PutForwards","WEBIDL#PutForwards"],["Replaceable","WEBIDL#Replaceable"],["SameObject","WEBIDL#SameObject"],["SecureContext","WEBIDL#SecureContext"],["TreatNonObjectAsNull","WEBIDL#TreatNonObjectAsNull"],["TreatNullAs","WEBIDL#TreatNullAs"],["Unforgeable","WEBIDL#Unforgeable"],["Unscopable","WEBIDL#Unscopable"]]);function W(e,t,n){if(0===e.length)return"";var r={extAttrs:e,indent:t,sep:n?", ":",\n "+N(t),end:n?" ":"\n"};const i=new l.default.SafeString(v(r)),o=document.createElement("div");return o.innerHTML=i,Array.from(o.querySelectorAll(".extAttrName")).filter(function(e){return q.has(e.textContent)}).forEach(function(e){const t=e.ownerDocument.createElement("a");t.dataset.cite=q.get(e.textContent),t.textContent=e.textContent,e.replaceChild(t,e.firstChild)}),new l.default.SafeString(o.innerHTML)}const B=new Map([["any","WEBIDL#idl-any"],["ArrayBuffer","WEBIDL#idl-ArrayBuffer"],["boolean","WEBIDL#idl-boolean"],["Buffer","WEBIDL#idl-Buffer"],["byte","WEBIDL#idl-byte"],["ByteString","WEBIDL#idl-ByteString"],["Callback","WEBIDL#idl-Callback"],["DataView","WEBIDL#idl-DataView"],["DOMException","WEBIDL#idl-DOMException"],["DOMString","WEBIDL#idl-DOMString"],["double","WEBIDL#idl-double"],["Error","WEBIDL#idl-Error"],["EventHandler","HTML#eventhandler"],["float","WEBIDL#idl-float"],["Float32Array","WEBIDL#idl-Float32Array"],["Float64Array","WEBIDL#idl-Float64Array"],["FrozenArray","WEBIDL#idl-frozen-array"],["Int16Array","WEBIDL#idl-Int16Array"],["Int32Array","WEBIDL#idl-Int32Array"],["Int8Array","WEBIDL#idl-Int8Array"],["long long","WEBIDL#idl-long-long"],["long","WEBIDL#idl-long"],["object","WEBIDL#idl-object"],["octet","WEBIDL#idl-octet"],["Promise","WEBIDL#idl-promise"],["record","WEBIDL#idl-record"],["sequence","WEBIDL#idl-sequence"],["short","WEBIDL#idl-short"],["Uint16Array","WEBIDL#idl-Uint16Array"],["Uint32Array","WEBIDL#idl-Uint32Array"],["Uint8Array","WEBIDL#idl-Uint8Array"],["Uint8ClampedArray","WEBIDL#dl-Uint8ClampedArray"],["unrestricted double","WEBIDL#idl-unrestricted-double"],["unrestricted float","WEBIDL#idl-unrestricted-float"],["unsigned long long","WEBIDL#idl-unsigned-long-long"],["unsigned long","WEBIDL#idl-unsigned-long"],["unsigned short","WEBIDL#idl-unsigned-short"],["USVString","WEBIDL#idl-USVString"]]),H=new Set(["any","attribute","boolean","byte","ByteString","callback","const","creator","Date","deleter","dictionary","DOMString","double","enum","false","float","getter","implements","Infinity","inherit","interface","iterable","legacycaller","legacyiterable","long","maplike","NaN","null","object","octet","optional","or","partial","readonly","RegExp","required","sequence","setlike","setter","short","static","stringifier","true","typedef","unrestricted","unsigned","USVString","void"]),F=new Set(["attribute","callback","const","creator","deleter","dictionary","enum","getter","implements","inherit","interface","iterable","legacycaller","legacyiterable","maplike","partial","required","setlike","setter","static","stringifier","typedef","unrestricted"]),U=new Set(["required"]);var z,G={},V={};function X(e){return H.has(e)&&!F.has(e)?"_"+e:e}function Y(e){return H.has(e)&&!U.has(e)?"_"+e:e}function Z(e){return H.has(e)?"_"+e:e}function Q(e,t={}){var n=e.obj,r=e.indent,i=0,o=0,a=0,s=0;for(const e of n.members)if(!I(e.type)&&"maplike"!==e.type&&"iterable"!==e.type){var l=P(e.idlType).length;if("attribute"===e.type){var c=K(e).length;i=Math.max(l,i),o=Math.max(c,o)}else"operation"===e.type?(e.static&&(l+="static ".length),a=Math.max(l,a)):"const"===e.type&&(s=Math.max(l,s))}var u=n.members.map(function(e){switch(e.type){case"attribute":return d=i,f=r+1,m=o,g=P((u=e).idlType).length,b=d-g,y=K(u),y=(y+=M(m)).slice(0,m),p({obj:u,indent:f,qualifiers:y,pad:b});case"operation":return function(e,t,n){var r=e.arguments.filter(function(e){return!I(e.type)}).map(function(e){return L({obj:e,optional:e.optional?"optional ":"",variadic:e.variadic?"...":""})}),i=r.join(", "),o=P(e.idlType).length,a=["getter","setter","deleter","stringifier","static"],s="";for(var l in a)if(e[a[l]]){o+=(s=a[l]+" ").length;break}var c={obj:e,indent:n,special:s,pad:t-o,children:i},u=S(c),d=$(u).text();if(d.length>80){var p=d.indexOf("(")+1;c.children=r.join(",\n"+M(p)),u=S(c)}return u}(e,a,r+1);case"const":return function(e,t,n){var r=t-P(e.idlType).length;e.nullable&&r--;return h({obj:e,indent:n,pad:r,nullable:e.nullable?"?":""})}(e,s,r+1);case"maplike":return c=r+1,T({obj:l=e,qualifiers:l.readonly?"readonly ":"",indent:c});case"iterable":return n=r+1,k({obj:t=e,qualifiers:t.readonly?"readonly ":"",indent:n});case"ws":return J(e);case"line-comment":return ee(e,r+1);case"multiline-comment":return te(e,r+1);default:throw new Error("Unexpected member type: `"+e.type+"`.")}var t,n,l,c,u,d,f,m,g,b,y}).join("");return C({obj:n,indent:r,partial:n.partial?"partial ":"",callback:t.callback?"callback ":"",mixin:t.mixin?"mixin ":"",children:u})}function K(e){var t="";return e.static&&(t+="static "),e.stringifier&&(t+="stringifier "),e.inherit&&(t+="inherit "),e.readonly&&(t+="readonly "),t}function J(e){return/\n.*\n/.test(e.value)?"\n":""}function ee(e,t){return E({indent:t,comment:e.value})}function te(e,t){var n=e.value.split(/\r\n|\r|\n/);if(0===n.length)return"";if(1===n.length)return E({indent:t,comment:n[0]});var r=Math.max(0,/^ */.exec(n[1])[0].length-3);function i(e){return e.slice(r)}return A({indent:t,firstLine:n[0],lastLine:i(n[n.length-1]),innerLine:n.slice(1,-1).map(i)})}function ne(e,n,r,i,o){const a=e,s=n;switch(e=e.toLowerCase(),i){case"operation":if(-1!==n.search("!overload")){n=n.toLowerCase();break}const t=n.toLowerCase()+"()",a=e+"."+n.toLowerCase()+"()";if(r[t]||r[a]){const i=r[t]?t:a,s=ne(e,i,r,null,o);if(!s)break;const l=s[0].dataset.lt?s[0].dataset.lt.split("|"):[];return l.push(i,n),s[0].dataset.lt=l.join("|"),r[n]||(r[n]=[]),r[n].push(s),s}const s=ne(e,n,r,null,o);if(!s)break;const l=s[0].dataset.lt?s[0].dataset.lt.split("|"):[];return l.push(t,n),s[0].dataset.lt=l.reverse().join("|"),r[t]=[s],s;case"enum":if(""===n){n="the-empty-string";break}default:n=n.toLowerCase()}if(j.has(n))return;var l=r[n],c=[];if(l&&0===(c=l.filter(t=>t[0].dataset.dfnFor===e)).length&&""===e&&1===l.length&&(c=l),0===c.length&&""!==e){var u=e+"."+n;void 0!==(l=r[u])&&1===l.length&&(c=l,delete r[u],c[0].attr("data-dfn-for",e),c[0].attr("data-lt",n),void 0===r[n]&&(r[n]=[]),r[n].push(c[0]))}if(c.length>1){const e=`Multiple \`<dfn>\`s for \`${s}\` ${a?`in \`${a}\``:""}`;(0,t.pub)("error",new Error(e))}if(0===c.length){if(i&&o&&!1===o.classList.contains("no-link-warnings")){var d=`No \`<dfn>\` for ${i} \`${s}\`${a?" in `"+a+"`":""}`;d+=". [More info](https://github.com/w3c/respec/wiki/WebIDL-thing-is-not-defined).",(0,t.pub)("warn",d)}return}const p=c[0][0],f="dom-"+(e?e+"-":"")+n.replace(/[()]/g,"");if(p.id=f,p.dataset.idl="",p.dataset.title=p.textContent,p.dataset.dfnFor=e,!p.querySelector("code")&&!p.closest("code")&&p.children){const e=p.ownerDocument.createElement("code");for(;p.hasChildNodes();)e.appendChild(p.firstChild);p.appendChild(e)}return c[0]}e.done=new Promise(function(e){z=e})}),define("core/biblio-db",["exports","core/pubsubhub"],function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.biblioDB=e.name=void 0;e.name="core/biblio-db";const n=new Set(["alias","reference"]),r=new Promise((e,t)=>{let n;try{n=window.indexedDB.open("respec-biblio2",12)}catch(e){return t(e)}n.onerror=(()=>{t(new DOMException(n.error.message,n.error.name))}),n.onsuccess=(()=>{e(n.result)}),n.onupgradeneeded=(async()=>{const r=n.result;Array.from(r.objectStoreNames).map(e=>r.deleteObjectStore(e));const i=[new Promise((e,t)=>{try{const n=r.createObjectStore("alias",{keyPath:"id"});n.createIndex("aliasOf","aliasOf",{unique:!1}),n.transaction.oncomplete=e,n.transaction.onerror=t}catch(e){t(e)}}),new Promise((e,t)=>{try{const n=r.createObjectStore("reference",{keyPath:"id"}).transaction;n.oncomplete=e,n.onerror=t}catch(e){t(e)}})];try{await Promise.all(i),e()}catch(e){t(e)}})});e.biblioDB={get ready(){return r},async find(e){return await this.isAlias(e)&&(e=await this.resolveAlias(e)),this.get("reference",e)},async has(e,t){if(!n.has(e))throw new TypeError("Invalid type: "+e);if(!t)throw new TypeError("id is required");const r=await this.ready;return new Promise((n,i)=>{var o=r.transaction([e],"readonly").objectStore(e),a=IDBKeyRange.only(t),s=o.openCursor(a);s.onsuccess=(()=>{n(!!s.result)}),s.onerror=(()=>{i(new DOMException(s.error.message,s.error.name))})})},async isAlias(e){if(!e)throw new TypeError("id is required");const t=await this.ready;return new Promise((n,r)=>{var i=t.transaction(["alias"],"readonly").objectStore("alias"),o=IDBKeyRange.only(e),a=i.openCursor(o);a.onsuccess=(()=>{n(!!a.result)}),a.onerror=(()=>{r(new DOMException(a.error.message,a.error.name))})})},async resolveAlias(e){if(!e)throw new TypeError("id is required");const t=await this.ready;return new Promise((n,r)=>{var i=t.transaction("alias","readonly").objectStore("alias"),o=IDBKeyRange.only(e),a=i.openCursor(o);a.onsuccess=(()=>{if(null===a.result)return n(null);n(a.result.value.aliasOf)}),a.onerror=(()=>{r(new DOMException(a.error.message,a.error.name))})})},async get(e,t){if(!n.has(e))throw new TypeError("Invalid type: "+e);if(!t)throw new TypeError("id is required");const r=await this.ready;return new Promise((n,i)=>{var o=r.transaction([e],"readonly").objectStore(e),a=IDBKeyRange.only(t),s=o.openCursor(a);s.onsuccess=(()=>{if(null===s.result)return n(null);n(s.result.value)}),s.onerror=(()=>{i(new DOMException(s.error.message,s.error.name))})})},async addAll(e){if(!e)return;const n={alias:new Set,reference:new Set};Object.keys(e).filter(n=>{if("string"==typeof e[n]){let e=`Legacy SpecRef entries are not supported: \`[[${n}]]\`. `;return e+="Please update it to the new format at [specref repo](https://github.com/tobie/specref/)",(0,t.pub)("error",e),!1}return!0}).map(t=>Object.assign({id:t},e[t])).reduce((e,t)=>(t.aliasOf?e.alias.add(t):e.reference.add(t),e),n);const r=Object.keys(n).map(e=>Array.from(n[e]).map(t=>this.add(e,t))).reduce((e,t)=>e.concat(t),[]);await Promise.all(r)},async add(e,t){if(!n.has(e))throw new TypeError("Invalid type: "+e);if("object"!=typeof t)throw new TypeError("details should be an object");if("alias"===e&&!t.hasOwnProperty("aliasOf"))throw new TypeError("Invalid alias object.");const r=await this.ready,i=await this.has(e,t.id);return new Promise((n,o)=>{const a=r.transaction([e],"readwrite").objectStore(e);var s=i?a.put(t):a.add(t);s.onsuccess=n,s.onerror=(()=>{o(new DOMException(s.error.message,s.error.name))})})},async close(){(await this.ready).close()}}}),define("core/biblio",["exports","core/biblio-db","core/utils","core/pubsubhub"],function(e,t,n,r){Object.defineProperty(e,"__esModule",{value:!0}),e.done=e.name=void 0,e.wireReference=function(e,t="_blank"){if("object"!=typeof e)throw new TypeError("Only modern object references are allowed");const n=Object.assign({},s,e),r=n.authors.join("; ")+(n.etAl?" et al":""),i=a.get(n.status)||n.status;return hyperHTML.wire(n)`
<cite>
<a
href="${n.href}"
target="${t}"
rel="noopener noreferrer">
${n.title.trim()}</a>.
</cite>
<span class="authors">
${l(r)}
</span>
<span class="publisher">
${l(n.publisher)}
</span>
<span class="pubDate">
${l(n.date)}
</span>
<span class="pubStatus">
${l(i)}
</span>
`},e.stringifyReference=u,e.resolveRef=async function e(t){const n=await f;if(!n.hasOwnProperty(t))return null;const r=n[t];if(r.aliasOf)return await e(r.aliasOf);return r},e.run=async function(e,n,i){e.localBiblio||(e.localBiblio={});if(e.biblio){let e="Overriding `.biblio` in config. Please use ";e+="`.localBiblio` for custom biblio entries.",(0,r.pub)("warn",e)}e.biblio={};const a=Array.from(Object.keys(e.localBiblio)).filter(t=>e.localBiblio[t].hasOwnProperty("aliasOf")).map(t=>e.localBiblio[t].aliasOf);s=e,Array.from(s.informativeReferences).filter(e=>s.normativeReferences.has(e)).forEach(e=>s.informativeReferences.delete(e));var s;const l=o(e),c=l.normativeReferences.concat(l.informativeReferences).filter(t=>!e.localBiblio.hasOwnProperty(t)).concat(a).reduce((e,t)=>(-1===e.indexOf(t)&&e.push(t),e),[]).sort(),d=[];try{await t.biblioDB.ready;const e=c.map(async e=>({id:e,data:await t.biblioDB.find(e)}));d.push(...await Promise.all(e))}catch(e){d.push(...c.map(e=>({id:e,data:null}))),console.warn(e)}const f={hasData:[],noData:[]};d.reduce((e,t)=>(t.data?e.hasData.push(t):e.noData.push(t),e),f),f.hasData.reduce((e,t)=>(e[t.id]=t.data,e),e.biblio);const m=f.noData.map(e=>e.id);if(m.length){const t=await h(m,{forceUpdate:!0});Object.assign(e.biblio,t)}Object.assign(e.biblio,e.localBiblio),function(e){var t={},n=o(e),i=n.informativeReferences,a=n.normativeReferences,s={};if(!i.length&&!a.length&&!e.refNote)return;var l=$("<section id='references' class='appendix'><h2>"+e.l10n.references+"</h2></section>").appendTo($("body"));e.refNote&&$("<p></p>").html(e.refNote).appendTo(l);for(var c=["Normative","Informative"],d=0;d<c.length;d++){var p=c[d],f="Normative"===p?a:i,h="Normative"===p?e.l10n.norm_references:e.l10n.info_references;if(f.length){var m=$("<section><h3></h3></section>").appendTo(l).find("h3").text(h).end();m.makeID(null,p+" references"),f.sort((e,t)=>e.toLowerCase().localeCompare(t.toLowerCase()));for(var g=$("<dl class='bibliography'></dl>").appendTo(m),b=0;b<f.length;b++){var y=f[b];$("<dt></dt>").attr({id:"bib-"+y}).text("["+y+"]").appendTo(g);var v=$("<dd></dd>").appendTo(g),w=e.biblio[y],x={},C=y;for(x[y]=!0;w&&w.aliasOf;)if(x[w.aliasOf]){w=null;const e=`Circular reference in biblio DB between [\`${y}\`] and [\`${C}\`].`;(0,r.pub)("error",e)}else C=w.aliasOf,w=e.biblio[C],x[C]=!0;s[C]=s[C]||[],s[C].indexOf(y)<0&&s[C].push(y),w?v.html(u(w)+"\n"):(t[y]||(t[y]=0),t[y]++,v.html("<em style='color: #f00'>Reference not found.</em>\n"))}}}for(var k in s)if(s[k].length>1){let e=`[${k}] is referenced in ${s[k].length} ways: `;e+=`(${s[k].map(e=>`'${e}'`).join(", ")}). This causes`,e+=" duplicate entries in the References section.",(0,r.pub)("warn",e)}for(var E in t){const e=`Bad reference: [\`${E}\`] (appears ${t[E]} times)`;t.hasOwnProperty(E)&&(0,r.pub)("error",e)}}(e),p(e.biblio),i(),await h(c)};e.name="core/biblio";const i=new URL("https://specref.herokuapp.com/bibrefs?refs=");function o(e){return{informativeReferences:Array.from(e.informativeReferences),normativeReferences:Array.from(e.normativeReferences)}}const a=new Map([["CR","W3C Candidate Recommendation"],["ED","W3C Editor's Draft"],["FPWD","W3C First Public Working Draft"],["LCWD","W3C Last Call Working Draft"],["NOTE","W3C Note"],["PER","W3C Proposed Edited Recommendation"],["PR","W3C Proposed Recommendation"],["REC","W3C Recommendation"],["WD","W3C Working Draft"],["WG-NOTE","W3C Working Group Note"]]),s=Object.freeze({authors:[],date:"",href:"",publisher:"",status:"",title:"",etAl:!1}),l=(c=".",e=>{const t=e.trim();return!t||t.endsWith(c)?t:t+c});var c;function u(e){if("string"==typeof e)return e;let t=`<cite>${e.title}</cite>`;(e.href&&(t=`<a href="${e.href}">${t}</a>. `),e.authors&&e.authors.length&&(t+=e.authors.join("; "),e.etAl&&(t+=" et al"),t+="."),e.publisher)&&(t=`${t} ${e.publisher+(/\.$/.test(e.publisher)?"":".")} `);return e.date&&(t+=e.date+". "),e.status&&(t+=(a.get(e.status)||e.status)+". "),e.href&&(t+=`URL: <a href="${e.href}">${e.href}</a>`),t}var d=(0,n.createResourceHint)({hint:"dns-prefetch",href:i.origin});let p;document.head.appendChild(d);const f=e.done=new Promise(e=>{p=e});async function h(e,n={forceUpdate:!1}){if(!e.length||!1===navigator.onLine)return;let r;try{r=await fetch(i.href+e.join(","))}catch(e){return console.error(e),null}if(!n.forceUpdate&&!r.ok||200!==r.status)return null;const o=await r.json();try{await t.biblioDB.addAll(o)}catch(e){console.error(e)}return o}}),define("core/data-cite",["exports","core/pubsubhub","core/biblio"],function(e,t,n){Object.defineProperty(e,"__esModule",{value:!0}),e.name=void 0,e.run=async function(e){const t=r(e);Array.from(document.querySelectorAll(["dfn[data-cite], a[data-cite]"])).filter(e=>e.dataset.cite).map(t).forEach(({isNormative:t,key:n})=>{const r=t?e.normativeReferences:e.informativeReferences;r.add(n)})},e.linkInlineCitations=async function(e,i=respecConfig){const o=function(e){const i=r(e);return async function(r){const o=r.dataset.cite;let{key:a,frag:s,path:l}=i(r),c="";if(a===e.shortName)c=document.location.href;else{const e=await(0,n.resolveRef)(a);if(d=r,["data-cite","data-cite-frag"].filter(e=>d.hasAttribute(e)).forEach(e=>d.removeAttribute(e)),!e){var u=`Couldn't find a match for 'data-cite=${o}'.`;return console.warn(u,r),u+=" Please check developer console for offending element.",void(0,t.pub)("warn",u)}c=e.href}var d;switch(l&&(c=new URL(l,c).href),s&&(c=new URL(s,c).href),r.localName){case"a":r.href=c;break;case"dfn":{const e=r.ownerDocument.createElement("a");for(e.href=c;r.firstChild;)e.appendChild(r.firstChild);r.appendChild(e,r);break}}}}(i),a=e.querySelectorAll("dfn[data-cite], a[data-cite]"),s=Array.from(a).map(o);return await Promise.all(s)};e.name="core/data-cite";function r(e){return function t(n){const{dataset:r}=n;let{cite:i,citeFrag:o,citePath:a}=r;const s=i.startsWith("!"),l=i.search("/"),c=i.search("#");if(i.startsWith("#")&&!o){const r=n.parentElement.closest('[data-cite]:not([data-cite^="#"])'),{key:o,isNormative:a}=r?t(r):{key:e.shortName||"",isNormative:!1};return n.dataset.cite=a?`!${o}`:o,n.dataset.citeFrag=i,t(n)}return-1!==c&&(o=o||i.substr(c),i=i.substring(0,c)),-1!==l&&(a=a||i.substr(l),i=i.substring(0,l)),s&&(i=i.substr(1)),o&&!o.startsWith("#")&&(o="#"+o),a&&a.startsWith("/")&&(a=a.substr(1)),{key:i,isNormative:s,frag:o,path:a}}}}),define("core/webidl-index",["exports"],function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.run=function(e,t,n){const r=t.querySelector("section#idl-index");if(!r)return n();const i=[2,3,4,5,6].map(e=>`h${e}:first-child`).join(",");if(!r.querySelector(i)){const e=document.createElement("h2");r.title?(e.innerHTML=r.title,r.removeAttribute("title")):e.innerHTML="IDL Index",r.insertAdjacentElement("afterbegin",e)}if(!document.querySelector("pre.idl")){const e="This specification doesn't declare any Web IDL.",t=document.createTextNode(e);return r.appendChild(t),n()}const o=document.createDocumentFragment(),a=document.createElement("pre");a.classList.add("idl","def"),a.id="actual-idl-index",Array.from(document.querySelectorAll("pre.def.idl")).map(e=>{const t=document.createElement("span"),{children:n}=e.cloneNode(!0);for(const e of Array.from(n))t.appendChild(e),t.appendChild(document.createTextNode("\n"));return t.classList.add("respec-idl-separator"),t}).reduce((e,t)=>(e.appendChild(t),e),a),Array.from(a.querySelectorAll("*[id]")).forEach(e=>e.removeAttribute("id")),o.appendChild(a),r.appendChild(o),n()};e.name="core/webidl-index"}),define("core/link-to-dfn",["exports","core/data-cite","core/pubsubhub","./l10n"],function(e,t,n,r){Object.defineProperty(e,"__esModule",{value:!0}),e.name=void 0,e.run=function(e,r,a){r.normalize();var s={};Object.keys(e.definitionMap).forEach(function(t){s[t]={};var r=[];if(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 s[t]){var a=0!==s[t][n].filter("dfn").length,l=0!==e.filter("dfn").length;if(a&&l&&(e.addClass("respec-offending-element"),void 0===e.attr("title")&&e.attr("title",i[o].duplicate),void 0===e.attr("id")&&e.makeID(null,t),r.push(e[0])),a)return}s[t][n]=e,void 0===e.attr("id")&&(e.attr("data-idl")?e.makeID("dom",(n?n+"-":"")+t):e.makeID("dfn",t))}),r.length>0){const e=r.map((e,t)=>`[${t+1}](#${e.id})`).join(", ");(0,n.pub)("error",`Duplicate definitions of '${t}' at: ${e}.`)}}),$("a:not([href]):not([data-cite]):not(.logo)").each(function(){var e=$(this);if(!e.hasClass("externalDFN")){var t=e.linkTargets(),r=t.some(function(t){if(s[t.title]&&s[t.title][t.for]){var n=s[t.title][t.for];if(n[0].dataset.cite)e[0].dataset.cite=n[0].dataset.cite;else{const t="#"+encodeURIComponent(n.prop("id"));e.attr("href",t).addClass("internalDFN")}if(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){const t=e[0].textContent.trim(),r=n[0].dataset.hasOwnProperty("idl"),i=r?n[0].dataset.title===t:n[0].textContent.trim()===t;if(r&&!i)return!0;e.wrapInner("<code></code>")}return!0}return!1});if(!r){if(!e.parents(".idl:not(.extAttr), 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,o=t[0].title;return this.classList.add("respec-offending-element"),this.title="Linking error: not matching <dfn>",(0,n.pub)("warn","Found linkless <a> element "+(i?"for '"+i+"' ":"")+"with text '"+o+"' but no matching `<dfn>`."),void console.warn("Linkless element:",e[0])}e.replaceWith(e.contents())}}}),(0,t.linkInlineCitations)(r,e).then(function(){function e(e){return function(t){var n=t.getAttribute(e);t.removeAttribute(e),t.setAttribute("data-"+e,n)}}var t=r.querySelectorAll("*[for]");Array.prototype.forEach.call(t,e("for"));var i=r.querySelectorAll("*[dfn-for]");Array.prototype.forEach.call(i,e("dfn-for"));var o=r.querySelectorAll("*[link-for]");Array.prototype.forEach.call(o,e("link-for")),(0,n.pub)("end","core/link-to-dfn"),a()})};e.name="core/link-to-dfn";const i={en:{duplicate:"This is defined more than once in the document."}},o=r.lang in i?r.lang:"en"}),define("core/contrib",["exports","core/github","core/pubsubhub"],function(e,t,n){Object.defineProperty(e,"__esModule",{value:!0}),e.name=void 0,e.run=async function(e){const o=document.getElementById("gh-commenters"),a=document.getElementById("gh-contributors");if(!o&&!a)return;if(!e.githubAPI){const e=[];return o&&e.push("#"+o.id),a&&e.push("#"+a.id),void(0,n.pub)("error",`Requested list of contributors and/or commenters from GitHub (${e.join(" and ")}) but config.githubAPI is not set.`)}const s=await(0,t.fetch)(e.githubAPI),[l,c,u]=await Promise.all([(0,t.fetchIndex)(s.issues_url),(0,t.fetchIndex)(s.issue_comment_url),(0,t.fetchIndex)(s.contributors_url)]),d=respecConfig.editors.map(r("name")),p=function(...e){const t=new Set;for(const n of e)for(const e of n)e.user&&t.add(e.user.url);return[...t]}(l,c),f=u.map(r("url"));try{await Promise.all(i(p,d,o),i(f,d,a))}catch(e){(0,n.pub)("error","Error loading contributors and/or commenters from Error: "+e)}};e.name="core/contrib";function r(e){return t=>t[e]}async function i(e,n,r){const i=(await Promise.all(e.map(t.fetch))).map(([e])=>e.name||e.login).filter(e=>!n.includes(e)).sort((e,t)=>e.toLowerCase().localeCompare(t.toLowerCase()));r.textContent=function(e){if(!e.length)return"";const{length:t}=e,n=e[t-1];switch(t){case 1:return n;case 2:return`${e[0]} and ${n}`;default:return`${e.join(", ")}, and ${n}`}}(i),r.id=null}}),define("core/fix-headers",["exports"],function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.run=function(e,t,n){$("section:not(.introductory)",t).find("h1:first, h2:first, h3:first, h4:first, h5:first, h6:first").each(function(){var e=$(this).parents("section").length+1;e>6&&(e=6);var t="h"+e;this.localName.toLowerCase()!==t&&$(this).renameElement(t)}),n()};e.name="core/fix-headers"}),define("core/structure",["exports"],function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.run=function(e,o,a){"tocIntroductory"in e==!1&&(e.tocIntroductory=!1);"maxTocLevel"in e==!1&&(e.maxTocLevel=0);var s=$("section:not(.introductory)",o).find("h1:first, h2:first, h3:first, h4:first, h5:first, h6:first").toArray().filter(e=>null===e.closest("section.introductory"));if(!(s=$(s)).length)return a();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)}),!e.noTOC){var l=function e(o,a,s,l,c){var u=o.children(c.tocIntroductory?"section":"section:not(.introductory)");if(0===u.length)return null;var d=$("<ol class='toc'></ol>");for(var p=0;p<u.length;p++){var f=$(u[p],a),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 y=g.textContent,v=$("<div></div>").append($(g).contents().clone());v.find("a").renameElement("span").attr("class","formerLink").removeAttr("href"),v.find("dfn").renameElement("span").removeAttr("id");var w=g.id?g.id:f.makeID(null,y);h||s[s.length-1]++;var x=s.slice();f.hasClass("appendix")&&1===s.length&&!n&&(r=s[0],n=!0),n&&(x[0]=i.charAt(s[0]-r));var C=x.join("."),k=1==x.length;k&&(C+=".",$(g).before(document.createComment("OddPage")));var E=$("<span class='secno'></span>").text(C+" ");h||$(g).prepend(E),t[w]=(h?"":"<span class='secno'>"+C+"</span> ")+"<span class='sec-title'>"+y+"</span>";var T=$("<a/>").attr({href:"#"+w,class:"tocxref"}).append(h?"":E.clone()).append(v.contents()),S=$("<li class='tocline'/>").append(T);(0===c.maxTocLevel||l<=c.maxTocLevel)&&d.append(S),s.push(0);var A=e(f,a,s,l+1,c);A&&S.append(A),s.pop()}}}return d}($("body",o),o,[0],1,e);if(!l)return;var c=o.createElement("nav");c.id="toc",c.innerHTML="<h2 class='introductory'>"+e.l10n.toc+"</h2>",c.appendChild(l[0]);var u=$("#toc",o),d=!1;u.length&&(d=!0),u.length||(u=$("#sotd",o)),u.length||(u=$("#abstract",o)),d?u.replaceWith(c):u.after(c);var p=$("<p role='navigation' id='back-to-top'><a href='#title'><abbr title='Back to Top'>↑</abbr></a></p>");$("body").append(p)}$("a[href^='#']:not(.tocxref)",o).each(function(){var e=$(this);if(""===e.html()){var n=e.attr("href").slice(1);t[n]&&(e.addClass("sec-ref"),e.html((e.hasClass("sectionRef")?"section ":"")+t[n]))}}),a()};var t={},n=!1,r=0,i="ABCDEFGHIJKLMNOPQRSTUVWXYZ";e.name="core/structure"}),define("w3c/informative",["exports","deps/hyperhtml"],function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.name=void 0,e.run=function(){Array.from(document.querySelectorAll("section.informative")).map(e=>e.querySelector("h2, h3, h4, h5, h6")).filter(e=>e).forEach(e=>{e.parentNode.insertBefore(hyperHTML`<p><em>This section is non-normative.</em></p>`,e.nextSibling)})};e.name="w3c/informative"}),define("w3c/permalinks",["exports","templates"],function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.name=void 0,e.run=function(e,t,n){if(!e.includePermalinks)return n();const i=r.default["permalinks.css"];var o=e.permalinkSymbol||"§",a="<style>"+i(e)+"</style>";$(t).find("head link").first().before(a),$(t).find("h2, h3, h4, h5, h6").each(function(t,n){var r=$(n);if(!r.hasClass("nolink")){var i=r.attr("id"),a=r.parent();if((a.is("section")||a.is("div"))&&(i=a.hasClass("introductory")||a.hasClass("nolink")?null:a.attr("id")),i){var s=$("<span></span>");s.attr("class","permalink");var l=r.text(),c=$("<a></a>");c.attr({href:"#"+i,"aria-label":"Permalink for "+l,title:"Permalink for "+l});var u=$("<span></span>");u.append(o),c.append(u),s.append(c),e.permalinkEdge||r.append(" "),r.append(s)}}}),n()};var n,r=(n=t)&&n.__esModule?n:{default:n};e.name="w3c/permalinks"}),define("core/id-headers",["exports"],function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.run=function(e,t,n){Array.from(document.querySelectorAll("h2:not([id]), h3:not([id]), h4:not([id]), h5:not([id]), h6:not([id])")).forEach(e=>{$(e).makeID()}),n()};e.name="core/id-headers"}),define("core/location-hash",["exports","core/pubsubhub"],function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.name=void 0,e.run=function(e,n,r){(0,t.pub)("start","core/location-hash");let i="";try{i=decodeURIComponent(window.location.hash).substr(1)}catch(e){i=""}if(!i&&!window.pageYOffset)return r();const o=!!n.getElementById(i),a=/\W/.test(i);if(!o&&a){const e=i.replace(/[\W]+/gim,"-").replace(/^-+/,"").replace(/-+$/,"");document.getElementById(e)&&(i=e)}window.location.hash=`#${i}`,r()};e.name="core/location-hash"}),define("ui/save-html",["exports","core/utils","core/pubsubhub","core/ui","core/l10n"],function(e,t,n,r,i){Object.defineProperty(e,"__esModule",{value:!0}),e.name=void 0,e.exportDocument=function(e,t){return document.respecIsReady.then(()=>{const n=l(c(e),t),r=n.replace(/^data:\w+\/\w+;charset=utf-8,/,""),i=decodeURIComponent(r);return i})},e.show=function(){if(!a)return;f.show(s)};e.name="ui/save-html";const o=[{id:"respec-save-as-html",title:"HTML",get href(){return l(c())},fileName:"index.html"},{id:"respec-save-as-xml",fileName:"index.xhtml",title:"XML",type:"application/xml",get href(){return l(c("xml"),this.type)}},{id:"respec-save-as-epub",fileName:"spec.epub",title:"EPUB 3",type:"application/epub+zip",href:function(){const e=new URL("https://labs.w3.org/epub-generator/cgi-bin/epub-generator.py"),t=new URLSearchParams({type:"respec",url:document.location.href});return`${e}?${t}`}()}],a="download"in document.createElement("a");let s;function l(e,t="text/html"){return`data:${t};charset=utf-8,${encodeURIComponent(e)}`}function c(e="html"){const r=document.cloneNode(!0);!function(e){const{head:r,body:i,documentElement:o}=e;(function(e){const t=[...function*(...e){const t=document.createTreeWalker(...e);for(;t.nextNode();)yield t.currentNode}(e,NodeFilter.SHOW_COMMENT,e=>e.textContent.startsWith("_hyper"))];for(const e of t)e.parentNode.removeChild(e)})(o),Array.from(e.querySelectorAll(".removeOnSave, #toc-nav")).forEach(e=>e.remove()),i.classList.remove("toc-sidebar"),(0,t.removeReSpec)(o);const a=e.createDocumentFragment(),s=e.querySelector("meta[name='viewport']");s&&r.firstChild!==s&&a.appendChild(s);let l=e.querySelector("meta[charset], meta[content*='charset=']");l||(l=e.createElement("meta")).setAttribute("charset","utf-8");a.appendChild(l);const c=e.createElement("meta");c.name="generator",c.content="ReSpec "+window.respecVersion||"Developer Channel",a.appendChild(c),r.insertBefore(a,r.firstChild),(0,n.pub)("beforesave",o)}(r);let i="";switch(e){case"xml":i=(new XMLSerializer).serializeToString(r);break;default:r.doctype&&(i+=(new XMLSerializer).serializeToString(r.doctype)),i+=r.documentElement.outerHTML}return i}function u({id:e,href:t,fileName:n,title:i,type:o=""}={type:""}){const a=document.createElement("a");a.classList.add("respec-save-button"),a.id=e,a.href=t,a.download=n,a.type=o,a.addEventListener("click",()=>{r.ui.closeModal()});const s=hyperHTML.bind(a);return s`
${i}
`}a&&(s=r.ui.addCommand(i.l10n[i.lang].save_snapshot,"ui/save-html","Ctrl+Shift+Alt+S","💾"));const d=document.createElement("div");d.classList.add("respec-save-buttons");const p=hyperHTML.bind(d),f={show(e){document.respecIsReady.then(()=>{p`
${o.map(u)}
`,r.ui.freshModal(i.l10n[i.lang].save_snapshot,d,e)})}}}),define("ui/search-specref",["exports","core/ui","core/biblio","core/l10n"],function(e,t,n,r){Object.defineProperty(e,"__esModule",{value:!0}),e.show=void 0;const i=t.ui.addCommand(r.l10n[r.lang].search_specref,"ui/search-specref","Ctrl+Shift+Alt+space","🔎"),o="https://specref.herokuapp.com/",a=`${o}search-refs`,s=`${o}reverse-lookup`,l=document.createElement("form"),c=window.hyperHTML.bind(l),u=hyperHTML.bind(document.createElement("div"));function d([e,t]){return hyperHTML.wire(t)`
<dt>
[${e}]
</dt>
<dd>${(0,n.wireReference)(t)}</dd>
`}l.id="specref-ui",l.addEventListener("submit",async e=>{e.preventDefault();const{searchBox:t}=l,n=t.value;if(!n)return void t.focus();f({state:"Searching Specref…"});const r=new URL(a);r.searchParams.set("q",n);const i=new URL(s);i.searchParams.set("urls",n);try{const e=performance.now(),o=await Promise.all([fetch(r).then(e=>e.json()),fetch(i).then(e=>e.json())]),{checked:a}=l.includeVersions;f({query:n,results:function({includeVersions:e}={includeVersions:!1}){return(...t)=>{const n=t.reduce((e,t)=>Object.assign(e,t),{}),r=new Map(Object.entries(n));return Array.from(r.entries()).filter(([,e])=>e.aliasOf).map(([e])=>e).reduce((e,t)=>e.delete(t)&&e,r),e||Array.from(r.values()).filter(e=>"object"==typeof e&&"versions"in e).reduce((e,t)=>e.concat(t.versions),[]).forEach(e=>{r.delete(e)}),Array.from(r.entries()).filter(([,e])=>"object"!=typeof e).reduce((e,[t])=>r.delete(t)&&r,r),r}}({includeVersions:a})(...o),state:"",timeTaken:Math.round(performance.now()-e)/1e3})}catch(e){console.error(e),f({state:"Error! Couldn't do search."})}finally{t.focus()}});const p=hyperHTML.wire()`
<header>
<p>
An Open-Source, Community-Maintained Database of
Web Standards & Related References.
</p>
</header>
<div class="searchcomponent">
<input
name="searchBox"
type="search"
autocomplete="off"
placeholder="Keywords, titles, authors, urls…">
<button
type="submit">
Search
</button>
<label>
<input type="checkbox" name="includeVersions"> Include all versions.
</label>
</div>
`;function f({state:e,results:t,timeTaken:n,query:r}={state:""}){t?c`
<div>${p}</div>
<p class="state" hidden="${!e}">
${e}
</p>
<section hidden="${!t}">${t?function(e,t,n){if(!e.size)return u`
<p class="state">
Your search - <strong> ${t} </strong> -
did not match any references.
</p>
`;const r=Array.from(e.entries()).slice(0,99).map(d).reduce((e,t)=>e.concat(t),[]);return u`
<p class="result-stats">
${e.size} results (${n} seconds).
${e.size>99?"First 100 results.":""}
</p>
<dl class="specref-results">${r}</dl>
`}(t,r,n):[]}</section>
`:c`<div>${p}</div>`}e.show=function(){f(),t.ui.freshModal(r.l10n[r.lang].search_specref,l,i),l.querySelector("input[type=search]").focus()}}),define("ui/dfn-list",["exports","core/ui","core/l10n","deps/hyperhtml"],function(e,t,n){Object.defineProperty(e,"__esModule",{value:!0}),e.show=void 0;const r=t.ui.addCommand(n.l10n[n.lang].definition_list,"ui/dfn-list","Ctrl+Shift+Alt+D","📔"),i=document.createElement("ul");i.classList.add("respec-dfn-list");const o=window.hyperHTML.bind(i);i.addEventListener("click",e=>{t.ui.closeModal(),e.stopPropagation()}),e.show=function(){o`${Object.entries(respecConfig.definitionMap).sort(([e],[t])=>e.localeCompare(t)).map(([e,t])=>{const[n]=t[0];return window.hyperHTML.wire(n,":li>a")`
<li>
<a href="${"#"+n.id}">
${n.textContent}
</a>
</li>
`})}`,t.ui.freshModal(n.l10n[n.lang].list_of_definitions,i,r)}}),define("ui/about-respec",["exports","core/ui","core/l10n","deps/hyperhtml"],function(e,t,n){Object.defineProperty(e,"__esModule",{value:!0}),e.show=void 0,window.respecVersion=window.respecVersion||"Developer Edition";const r=document.createElement("div"),i=hyperHTML.bind(r),o=t.ui.addCommand(`About ${window.respecVersion}`,"ui/about-respec","Ctrl+Shift+Alt+A","ℹ️");function a({name:e,duration:t}){const n=hyperHTML.bind(document.createElement("tr"));return n`
<td>
<a href="${`https://github.com/w3c/respec/tree/develop/src/${e}.js`}">
${e}
</a>
</td>
<td>
${t}
</td>
`}e.show=function(){t.ui.freshModal(`${n.l10n[n.lang].about_respec} - ${window.respecVersion}`,r,o);let e=[];"getEntriesByType"in performance&&performance.getEntriesByType("measure").sort((e,t)=>t.duration-e.duration).map(({name:e,duration:t})=>{const n=t.toFixed(2);return{name:e,duration:n>1e3?`${Math.round(n/1e3)} second(s)`:`${n} milliseconds`}}).map(a).reduce((e,t)=>(e.push(t),e),e),i`
<p>
ReSpec is a document production toolchain, with a notable focus on W3C specifications.
</p>
<p>
<a href='https://github.com/w3c/respec/wiki'>Documentation</a>,
<a href='https://github.com/w3c/respec/issues'>Bugs</a>.
</p>
<table border="1" width="100%" hidden="${!e.length}">
<caption>
Loaded plugins
</caption>
<thead>
<tr>
<th>
Plugin Name
</th>
<th>
Processing time
</th>
</tr>
</thead>
<tbody>${e}</tbody>
</table>
`}}),define("core/seo",["exports"],function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.run=async function(e,t,n){n(),await t.respecIsReady;const r=t.querySelector("#abstract p:first-of-type");if(!r)return;!function(e){const t=e.ownerDocument,n=e.textContent.replace(/\s+/," ").trim(),r=t.createElement("meta");r.name="description",r.content=n,t.head.appendChild(r)}(r)};e.name="core/seo"}),define("w3c/seo",["exports","core/pubsubhub"],function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.name=void 0,e.run=function(e,i,o){var a=e.shortName?"https://www.w3.org/TR/"+e.shortName+"/":null;switch(e.canonicalURI){case"edDraft":e.edDraftURI?e.canonicalURI=new URL(e.edDraftURI,i.location).href:((0,t.pub)("warn","Canonical URI set to edDraft, but no edDraftURI is set in configuration"),e.canonicalURI=null);break;case"TR":a?e.canonicalURI=a:((0,t.pub)("warn","Canonical URI set to TR, but no shortName is set in configuration"),e.canonicalURI=null);break;default:if(e.canonicalURI)try{e.canonicalURI=new URL(e.canonicalURI,i.location).href}catch(n){(0,t.pub)("warn","CanonicalURI is an invalid URL: "+n.message),e.canonicalURI=null}else a&&(e.canonicalURI=a)}if(e.canonicalURI){var s=i.createElement("link");s.setAttribute("rel","canonical"),s.setAttribute("href",e.canonicalURI),i.head.appendChild(s)}o(),e.doJsonLd&&async function(e,t){await t.respecIsReady;const i=["TechArticle"];e.rdfStatus&&i.push(e.rdfStatus);const o={"@context":["http://schema.org",{"@vocab":"http://schema.org/","@language":t.documentElement.lang||"en",w3p:"http://www.w3.org/2001/02pd/rec54#",foaf:"http://xmlns.com/foaf/0.1/",datePublished:{"@type":"http://www.w3.org/2001/XMLSchema#date"},inLanguage:{"@language":null},isBasedOn:{"@type":"@id"},license:{"@type":"@id"}}],id:e.canonicalURI||e.thisVersion,type:i,name:e.title,inLanguage:t.documentElement.lang||"en",license:e.licenseInfo.url,datePublished:e.dashDate,copyrightHolder:{name:"World Wide Web Consortium",url:"https://www.w3.org/"},discussionUrl:e.issueBase,alternativeHeadline:e.subtitle,isBasedOn:e.prevVersion};if(e.additionalCopyrightHolders){const t=Array.isArray(e.additionalCopyrightHolders)?e.additionalCopyrightHolders:[e.additionalCopyrightHolders];o.copyrightHolder=[o.copyrightHolder,...t.map(e=>({name:e}))]}const a=t.head.querySelector("meta[name=description]");a&&(o.description=a.content);e.editors&&(o.editor=e.editors.map(n));e.authors&&(o.contributor=e.authors.map(n));o.citation=[...e.normativeReferences,...e.informativeReferences].map(t=>e.biblio[t]).filter(e=>"object"==typeof e).map(r);const s=t.createElement("script");s.type="application/ld+json",s.textContent=JSON.stringify(o,null,2),t.head.appendChild(s)}(e,i)};e.name="w3c/seo";function n({name:e,url:t,mailto:n,company:r,companyURL:i}){const o={type:"Person",name:e,url:t,"foaf:mbox":n};return(r||i)&&(o.worksFor={name:r,url:i}),o}function r(e){const{href:t,title:n,href:r}=e;return{id:t,type:"TechArticle",name:n,url:r}}}),define("deps/text!core/css/github.css",[],function(){return"/*\n\ngithub.com style (c) Vasily Polovnyov <vast@whiteants.net>\n\n*/\n\n.hljs {\n display: block;\n overflow-x: auto;\n padding: 0.5em;\n color: #333;\n background: #f8f8f8;\n}\n\n.hljs-comment,\n.hljs-quote {\n color: #998;\n font-style: italic;\n}\n\n.hljs-keyword,\n.hljs-selector-tag,\n.hljs-subst {\n color: #333;\n font-weight: bold;\n}\n\n.hljs-number,\n.hljs-literal,\n.hljs-variable,\n.hljs-template-variable,\n.hljs-tag .hljs-attr {\n color: #008080;\n}\n\n.hljs-string,\n.hljs-doctag {\n color: #d14;\n}\n\n.hljs-title,\n.hljs-section,\n.hljs-selector-id {\n color: #900;\n font-weight: bold;\n}\n\n.hljs-subst {\n font-weight: normal;\n}\n\n.hljs-type,\n.hljs-class .hljs-title {\n color: #458;\n font-weight: bold;\n}\n\n.hljs-tag,\n.hljs-name,\n.hljs-attribute {\n color: #000080;\n font-weight: normal;\n}\n\n.hljs-regexp,\n.hljs-link {\n color: #009926;\n}\n\n.hljs-symbol,\n.hljs-bullet {\n color: #990073;\n}\n\n.hljs-built_in,\n.hljs-builtin-name {\n color: #0086b3;\n}\n\n.hljs-meta {\n color: #999;\n font-weight: bold;\n}\n\n.hljs-deletion {\n background: #fdd;\n}\n\n.hljs-addition {\n background: #dfd;\n}\n\n.hljs-emphasis {\n font-style: italic;\n}\n\n.hljs-strong {\n font-weight: bold;\n}\n"}),define("deps/text!core/../../worker/respec-worker.js",[],function(){return'// ReSpec Worker v0.1.1\n"use strict";\ntry {\n importScripts("https://www.w3.org/Tools/respec/respec-highlight.js");\n hljs.configure({\n tabReplace: " ", // 2 spaces\n languages: ["abnf", "css", "http", "javascript", "json", "markdown", "xml"],\n });\n} catch (err) {\n console.error("Network error loading/configuring highlighter", err);\n}\n\nself.addEventListener("message", ({ data: originalData }) => {\n const data = Object.assign({}, originalData);\n switch (data.action) {\n case "highlight":\n const { code } = data;\n const langs = data.languages.length ? data.languages : undefined;\n try {\n const { value, language } = self.hljs.highlightAuto(code, langs);\n Object.assign(data, { value, language });\n } catch (err) {\n console.error("Could not transform some code?", err);\n // Post back the original code\n Object.assign(data, { value: code, language: "" });\n }\n }\n self.postMessage(data);\n});\n'}),define("core/worker",["exports","core/utils","deps/text!../../worker/respec-worker.js"],function(e,t,n){Object.defineProperty(e,"__esModule",{value:!0}),e.worker=e.name=void 0;var r,i=(r=n)&&r.__esModule?r:{default:r};e.name="core/worker";const o=(0,t.createResourceHint)({hint:"preload",href:"https://www.w3.org/Tools/respec/respec-highlight.js",as:"script"});document.head.appendChild(o);const a=URL.createObjectURL(new Blob([i.default],{type:"application/javascript"}));e.worker=new Worker(a)}),define("core/highlight",["exports","deps/text!core/css/github.css","core/worker"],function(e,t,n){Object.defineProperty(e,"__esModule",{value:!0}),e.name=void 0,e.run=async function(e){if(e.noHighlightCSS)return void o.remove();const t=Array.from(document.querySelectorAll("pre:not(.idl):not(.nohighlight), code.highlight"));if(0===t.length)return void o.remove();const r=t.map((e,t)=>new Promise(r=>{if(""===e.textContent.trim())return r();const o=()=>{e.setAttribute("aria-busy","false"),r()},a=setTimeout(()=>{console.error("Timed-out waiting for highlight:",e),o()},4e3),s={action:"highlight",code:e.textContent,id:`highlight:${t}`,languages:(i=e.classList,Array.from(i).filter(e=>"highlight"!==e&&"nolinks"!==e).map(e=>e.toLowerCase()))};n.worker.addEventListener("message",function t(r){const{data:{id:i,code:l,language:c,value:u}}=r;i===s.id&&(e.innerHTML=u,"pre"===e.localName&&e.classList.add("hljs"),c&&e.classList.add(c),clearTimeout(a),n.worker.removeEventListener("message",t),o())}),e.setAttribute("aria-busy","true"),n.worker.postMessage(s)}));var i;await Promise.all(r)};var r,i=(r=t)&&r.__esModule?r:{default:r};e.name="core/highlight";const o=document.createElement("style");o.textContent=i.default,document.head.appendChild(o)}),define("deps/text!core/images/clipboard.svg",[],function(){return'<svg height="16" viewBox="0 0 14 16" width="14"><path fill-rule="evenodd" d="M2 13h4v1H2v-1zm5-6H2v1h5V7zm2 3V8l-3 3 3 3v-2h5v-2H9zM4.5 9H2v1h2.5V9zM2 12h2.5v-1H2v1zm9 1h1v2c-.02.28-.11.52-.3.7-.19.18-.42.28-.7.3H1c-.55 0-1-.45-1-1V4c0-.55.45-1 1-1h3c0-1.11.89-2 2-2 1.11 0 2 .89 2 2h3c.55 0 1 .45 1 1v5h-1V6H1v9h10v-2zM2 5h8c0-.55-.45-1-1-1H8c-.55 0-1-.45-1-1s-.45-1-1-1-1 .45-1 1-.45 1-1 1H3c-.55 0-1 .45-1 1z"/></svg>'}),nRa=this,oRa=function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.i=function(e){return e},n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:r})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=3)}([function(e,t,n){var r,i,o,a;a=function(e,t){var n,r=(n=t)&&n.__esModule?n:{default:n};var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.resolveOptions(t),this.initSelection()}return o(e,[{key:"resolveOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.action=e.action,this.container=e.container,this.emitter=e.emitter,this.target=e.target,this.text=e.text,this.trigger=e.trigger,this.selectedText=""}},{key:"initSelection",value:function(){this.text?this.selectFake():this.target&&this.selectTarget()}},{key:"selectFake",value:function(){var e=this,t="rtl"==document.documentElement.getAttribute("dir");this.removeFake(),this.fakeHandlerCallback=function(){return e.removeFake()},this.fakeHandler=this.container.addEventListener("click",this.fakeHandlerCallback)||!0,this.fakeElem=document.createElement("textarea"),this.fakeElem.style.fontSize="12pt",this.fakeElem.style.border="0",this.fakeElem.style.padding="0",this.fakeElem.style.margin="0",this.fakeElem.style.position="absolute",this.fakeElem.style[t?"right":"left"]="-9999px";var n=window.pageYOffset||document.documentElement.scrollTop;this.fakeElem.style.top=n+"px",this.fakeElem.setAttribute("readonly",""),this.fakeElem.value=this.text,this.container.appendChild(this.fakeElem),this.selectedText=(0,r.default)(this.fakeElem),this.copyText()}},{key:"removeFake",value:function(){this.fakeHandler&&(this.container.removeEventListener("click",this.fakeHandlerCallback),this.fakeHandler=null,this.fakeHandlerCallback=null),this.fakeElem&&(this.container.removeChild(this.fakeElem),this.fakeElem=null)}},{key:"selectTarget",value:function(){this.selectedText=(0,r.default)(this.target),this.copyText()}},{key:"copyText",value:function(){var e=void 0;try{e=document.execCommand(this.action)}catch(t){e=!1}this.handleResult(e)}},{key:"handleResult",value:function(e){this.emitter.emit(e?"success":"error",{action:this.action,text:this.selectedText,trigger:this.trigger,clearSelection:this.clearSelection.bind(this)})}},{key:"clearSelection",value:function(){this.trigger&&this.trigger.focus(),window.getSelection().removeAllRanges()}},{key:"destroy",value:function(){this.removeFake()}},{key:"action",set:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"copy";if(this._action=e,"copy"!==this._action&&"cut"!==this._action)throw new Error('Invalid "action" value, use either "copy" or "cut"')},get:function(){return this._action}},{key:"target",set:function(e){if(void 0!==e){if(!e||"object"!==(void 0===e?"undefined":i(e))||1!==e.nodeType)throw new Error('Invalid "target" value, use a valid Element');if("copy"===this.action&&e.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if("cut"===this.action&&(e.hasAttribute("readonly")||e.hasAttribute("disabled")))throw new Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes');this._target=e}},get:function(){return this._target}}]),e}();e.exports=a},i=[e,n(7)],void 0===(o="function"==typeof(r=a)?r.apply(t,i):r)||(e.exports=o)},function(e,t,n){var r=n(6),i=n(5);e.exports=function(e,t,n){if(!e&&!t&&!n)throw new Error("Missing required arguments");if(!r.string(t))throw new TypeError("Second argument must be a String");if(!r.fn(n))throw new TypeError("Third argument must be a Function");if(r.node(e))return p=t,f=n,(d=e).addEventListener(p,f),{destroy:function(){d.removeEventListener(p,f)}};if(r.nodeList(e))return l=e,c=t,u=n,Array.prototype.forEach.call(l,function(e){e.addEventListener(c,u)}),{destroy:function(){Array.prototype.forEach.call(l,function(e){e.removeEventListener(c,u)})}};if(r.string(e))return o=e,a=t,s=n,i(document.body,o,a,s);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList");var o,a,s,l,c,u,d,p,f}},function(e,t){function n(){}n.prototype={on:function(e,t,n){var r=this.e||(this.e={});return(r[e]||(r[e]=[])).push({fn:t,ctx:n}),this},once:function(e,t,n){var r=this;function i(){r.off(e,i),t.apply(n,arguments)}return i._=t,this.on(e,i,n)},emit:function(e){for(var t=[].slice.call(arguments,1),n=((this.e||(this.e={}))[e]||[]).slice(),r=0,i=n.length;r<i;r++)n[r].fn.apply(n[r].ctx,t);return this},off:function(e,t){var n=this.e||(this.e={}),r=n[e],i=[];if(r&&t)for(var o=0,a=r.length;o<a;o++)r[o].fn!==t&&r[o].fn._!==t&&i.push(r[o]);return i.length?n[e]=i:delete n[e],this}},e.exports=n},function(e,t,n){var r,i,o,a;a=function(e,t,n,r){var i=s(t),o=s(n),a=s(r);function s(e){return e&&e.__esModule?e:{default:e}}var l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};var c=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();var u=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return r.resolveOptions(n),r.listenClick(e),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,o.default),c(t,[{key:"resolveOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.action="function"==typeof e.action?e.action:this.defaultAction,this.target="function"==typeof e.target?e.target:this.defaultTarget,this.text="function"==typeof e.text?e.text:this.defaultText,this.container="object"===l(e.container)?e.container:document.body}},{key:"listenClick",value:function(e){var t=this;this.listener=(0,a.default)(e,"click",function(e){return t.onClick(e)})}},{key:"onClick",value:function(e){var t=e.delegateTarget||e.currentTarget;this.clipboardAction&&(this.clipboardAction=null),this.clipboardAction=new i.default({action:this.action(t),target:this.target(t),text:this.text(t),container:this.container,trigger:t,emitter:this})}},{key:"defaultAction",value:function(e){return d("action",e)}},{key:"defaultTarget",value:function(e){var t=d("target",e);if(t)return document.querySelector(t)}},{key:"defaultText",value:function(e){return d("text",e)}},{key:"destroy",value:function(){this.listener.destroy(),this.clipboardAction&&(this.clipboardAction.destroy(),this.clipboardAction=null)}}],[{key:"isSupported",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["copy","cut"],t="string"==typeof e?[e]:e,n=!!document.queryCommandSupported;return t.forEach(function(e){n=n&&!!document.queryCommandSupported(e)}),n}}]),t}();function d(e,t){var n="data-clipboard-"+e;if(t.hasAttribute(n))return t.getAttribute(n)}e.exports=u},i=[e,n(0),n(2),n(1)],void 0===(o="function"==typeof(r=a)?r.apply(t,i):r)||(e.exports=o)},function(e,t){var n=9;if("undefined"!=typeof Element&&!Element.prototype.matches){var r=Element.prototype;r.matches=r.matchesSelector||r.mozMatchesSelector||r.msMatchesSelector||r.oMatchesSelector||r.webkitMatchesSelector}e.exports=function(e,t){for(;e&&e.nodeType!==n;){if("function"==typeof e.matches&&e.matches(t))return e;e=e.parentNode}}},function(e,t,n){var r=n(4);function i(e,t,n,i,o){var a=function(e,t,n,i){return function(n){n.delegateTarget=r(n.target,t),n.delegateTarget&&i.call(e,n)}}.apply(this,arguments);return e.addEventListener(n,a,o),{destroy:function(){e.removeEventListener(n,a,o)}}}e.exports=function(e,t,n,r,o){return"function"==typeof e.addEventListener?i.apply(null,arguments):"function"==typeof n?i.bind(null,document).apply(null,arguments):("string"==typeof e&&(e=document.querySelectorAll(e)),Array.prototype.map.call(e,function(e){return i(e,t,n,r,o)}))}},function(e,t){t.node=function(e){return void 0!==e&&e instanceof HTMLElement&&1===e.nodeType},t.nodeList=function(e){var n=Object.prototype.toString.call(e);return void 0!==e&&("[object NodeList]"===n||"[object HTMLCollection]"===n)&&"length"in e&&(0===e.length||t.node(e[0]))},t.string=function(e){return"string"==typeof e||e instanceof String},t.fn=function(e){return"[object Function]"===Object.prototype.toString.call(e)}},function(e,t){e.exports=function(e){var t;if("SELECT"===e.nodeName)e.focus(),t=e.value;else if("INPUT"===e.nodeName||"TEXTAREA"===e.nodeName){var n=e.hasAttribute("readonly");n||e.setAttribute("readonly",""),e.select(),e.setSelectionRange(0,e.value.length),n||e.removeAttribute("readonly"),t=e.value}else{e.hasAttribute("contenteditable")&&e.focus();var r=window.getSelection(),i=document.createRange();i.selectNodeContents(e),r.removeAllRanges(),r.addRange(i),t=r.toString()}return t}}])},"object"==typeof exports&&"object"==typeof module?module.exports=oRa():"function"==typeof define&&define.amd?define("deps/clipboard",[],oRa):"object"==typeof exports?exports.ClipboardJS=oRa():nRa.ClipboardJS=oRa(),define("core/webidl-clipboard",["exports","deps/text!core/images/clipboard.svg","deps/clipboard"],function(e,t,n){Object.defineProperty(e,"__esModule",{value:!0}),e.name=void 0,e.run=async function(e,t,n){Array.from(t.querySelectorAll("pre.idl")).map(e=>{const t=a.cloneNode(!0),n=e.querySelector('span[id^="idl-def-"], span[id^="dom-"]');let r="#";return null===n&&""===e.id?"idl-index"===e.parentElement.id?r+="actual-idl-index":(e.id=`idl-${String(Math.random()).substr(2)}`,r+=e.id):r+=e.id||n.id,{button:t,elem:e,target:r}}).forEach(({elem:e,button:n,target:r})=>{const i=t.createElement("div");n.dataset.clipboardTarget=r,e.parentElement.replaceChild(i,e),i.appendChild(n),i.appendChild(e)}),new i.default(".respec-button-copy-paste",s).on("success",e=>e.clearSelection()),n()};var r=o(t),i=o(n);function o(e){return e&&e.__esModule?e:{default:e}}e.name="core/webidl-clipboard";const a=document.createElement("button");a.innerHTML=r.default,a.title="Copy IDL to clipboard",a.classList.add("respec-button-copy-paste","removeOnSave");const s={text:e=>document.querySelector(e.dataset.clipboardTarget).textContent.replace(/\ +/gm," ").replace(/^\ /gm," ").replace(/^};\n/gm,"};\n").trim()}}),define("core/data-tests",["exports","core/pubsubhub","core/l10n"],function(e,t,n){Object.defineProperty(e,"__esModule",{value:!0}),e.name=void 0,e.run=function(e){const n=document.querySelectorAll("[data-tests]");if(!n.length)return;if(!e.testSuiteURI)return void(0,t.pub)("error",r[i].missing_test_suite_uri);Array.from(n).filter(e=>e.dataset.tests).map(n=>{const a=document.createElement("details"),s=hyperHTML.bind(a),l=n.dataset.tests.split(/,/gm).map(e=>e.trim()).map(n=>{let o="";try{o=new URL(n,e.testSuiteURI).href}catch(e){(0,t.pub)("warn",`${r[i].bad_uri}: ${n}`)}return o});return a.classList.add("respec-tests-details","removeOnSave"),s`
<summary>
tests: ${l.length}
</summary>
<ul>${l.map(o)}</ul>
`,{elem:n,details:a}}).forEach(({elem:e,details:t})=>{delete e.dataset.tests,e.insertAdjacentElement("beforeend",t)})};const r={en:{missing_test_suite_uri:"Found tests in your spec, but missing '[`testSuiteURI`](https://github.com/w3c/respec/wiki/testSuiteURI)' in your ReSpec config.",tests:"tests",test:"test"}},i=(e.name="core/data-tests",n.lang in r?n.lang:"en");function o(e){const t=[],[n]=new URL(e).pathname.split("/").reverse(),r=n.split(".");let[i]=r;if(r.find(e=>"https"===e)){const e=document.createElement("span");e.innerHTML="🔒",e.setAttribute("aria-label","requires a secure connection"),e.setAttribute("title","Test requires HTTPS"),i=i.replace(".https",""),t.push(e)}if(i.split(".").join("-").split("-").find(e=>"manual"===e)){const e=document.createElement("span");e.innerHTML="💪",e.setAttribute("aria-label","the test must be run manually"),e.setAttribute("title","Manual test"),i=i.replace("-manual",""),t.push(e)}return hyperHTML.bind(document.createElement("li"))`
<a href="${e}">
${i}
</a> ${t}
`}}),define("core/list-sorter",["exports","core/pubsubhub"],function(e,t){Object.defineProperty(e,"__esModule",{value:!0}),e.name=void 0,e.sortListItems=r,e.sortDefinitionTerms=o,e.run=function(e,n,i){for(const e of document.querySelectorAll("[data-sort]")){let n;const i=e.dataset.sort||"ascending";switch(e.localName){case"dl":n=o(e,i);break;case"ol":case"ul":n=r(e,i);break;default:(0,t.pub)("warning",`ReSpec can't sort ${e.localName} elements.`)}if(n){const t=document.createRange();t.selectNodeContents(e),t.deleteContents(),e.appendChild(n)}}i()};e.name="core/list-sorter";function n(e){return({textContent:t},{textContent:n})=>"ascending"===e?t.localeCompare(n):n.localeCompare(t)}function r(e,t){return i(e,"li").sort(n(t)).reduce((e,t)=>(e.appendChild(t),e),document.createDocumentFragment())}function i(e,t){let n;try{n=e.querySelectorAll(`:scope > ${t}`)}catch(r){let i="";e.id||(i=`temp-${Math.random()}`,e.id=i);const o=`#${e.id} > ${t}`;n=e.parentElement.querySelectorAll(o),i&&(e.id="")}return[...n]}function o(e,t){return i(e,"dt").sort(n(t)).reduce((e,t)=>{const{nodeType:n,nodeName:r}=t,i=document.createDocumentFragment();let{nextSibling:o}=t;for(;o&&o.nextSibling;){i.appendChild(o.cloneNode(!0));const{nodeType:e,nodeName:t}=o.nextSibling;if(e===n&&t===r)break;o=o.nextSibling}return i.prepend(t.cloneNode(!0)),e.appendChild(i),e},document.createDocumentFragment())}}),window.addEventListener("error",e=>{console.error(e.error,e.message,e)}),require.config({shim:{shortcut:{exports:"shortcut"},highlight:{exports:"hljs"}},paths:{"handlebars.runtime":"deps/handlebars","deps/highlight":"https://www.w3.org/Tools/respec/respec-highlight"},deps:["deps/hyperhtml","deps/url-search-params"]}),define("profile-w3c-common",["deps/domReady","core/base-runner","core/ui","core/l10n","w3c/defaults","core/style","w3c/style","w3c/l10n","core/github","core/data-include","core/markdown","w3c/headers","w3c/abstract","w3c/conformance","core/data-transform","core/inlines","core/dfn","w3c/rfc2119","core/examples","core/issues-notes","core/requirements","core/best-practices","core/figures","core/webidl","core/data-cite","core/biblio","core/webidl-index","core/link-to-dfn","core/contrib","core/fix-headers","core/structure","w3c/informative","w3c/permalinks","core/id-headers","core/location-hash","ui/save-html","ui/search-specref","ui/dfn-list","ui/about-respec","core/seo","w3c/seo","core/highlight","core/webidl-clipboard","core/data-tests","core/list-sorter","core/linter"],(e,t,{ui:n},...r)=>{n.show(),e(async()=>{try{await t.runAll(r),await document.respecIsReady}catch(e){console.error(e)}finally{n.enable()}})}),require(["profile-w3c-common"]);
//# sourceMappingURL=respec-w3c-common.build.js.map