From e68ab037ebfa4de690542aeacb22140980631f41 Mon Sep 17 00:00:00 2001 From: tdurieux Date: Wed, 9 Sep 2026 13:28:44 +0200 Subject: [PATCH] perf: load document libraries only when needed --- .dockerignore | 2 ++ README.md | 9 ++++++++ gulpfile.js | 24 ++++++++++++-------- public/asset-manifest.json | 9 ++++++-- public/script/components.js | 34 ++++++++++++++++++++-------- public/script/editor.min.js | 1 + public/script/lazy-assets.js | 24 ++++++++++++++++++++ public/script/main.js | 11 ++++++--- public/script/markdown.min.js | 1 + public/script/notebook.min.js | 1 + public/script/org.min.js | 1 + public/script/pdf.min.js | 2 ++ public/script/vendor.min.js | 42 +++++++++++++++++------------------ test/asset-build.test.js | 11 +++++---- test/vue-ui.test.js | 32 ++++++++++++++++++++++---- 15 files changed, 151 insertions(+), 53 deletions(-) create mode 100644 public/script/editor.min.js create mode 100644 public/script/lazy-assets.js create mode 100644 public/script/markdown.min.js create mode 100644 public/script/notebook.min.js create mode 100644 public/script/org.min.js create mode 100644 public/script/pdf.min.js diff --git a/.dockerignore b/.dockerignore index 2101bc9..e6eadf7 100644 --- a/.dockerignore +++ b/.dockerignore @@ -21,3 +21,5 @@ scripts .dockerignore Dockerfile* docker-compose*.yml + +/tmp diff --git a/README.md b/README.md index 3f17d97..151342d 100644 --- a/README.md +++ b/README.md @@ -122,3 +122,12 @@ Run `npm run build:ui` after changing a template or frontend script. Use configured upstream. `npm run test:ui` rebuilds the assets and runs the frontend regression and DOM interaction tests. `npm run build` also builds the UI for production. + +The initial bundle contains the Vue app. Markdown extensions load on content +routes; PDF.js, Ace, and notebook support load when their viewers mount. +Org support loads in the repository explorer, and Mermaid loads only when a +diagram is encountered. These libraries use hashed URLs and load once per tab. + +The Docker build compiles the same bundles and copies them, the asset manifest, +and document-worker assets into the runtime image. The Compose app serves these +assets directly; no frontend development server is needed. diff --git a/gulpfile.js b/gulpfile.js index 920c4cf..63a6e01 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -23,16 +23,17 @@ const coreJsFiles = [ "public/script/utils.js", ]; -const vendorJsFiles = [ - "public/script/external/pdf.js", +const markdownFiles = [ "public/script/external/katex.min.js", "public/script/external/katex-auto-render.min.js", "public/script/external/marked-katex-extension.umd.min.js", "public/script/external/marked-mermaid.js", - "public/script/external/notebook.min.js", - "public/script/external/org.js", - "public/script/external/ace/ace.js", -]; + ]; +const pdfFiles = ["public/script/external/pdf.js"]; +const notebookFiles = ["public/script/external/notebook.min.js"]; +const orgFiles = ["public/script/external/org.js"]; +const editorFiles = ["public/script/external/ace/ace.js"]; +const lazyGroups = { markdown: markdownFiles, pdf: pdfFiles, notebook: notebookFiles, org: orgFiles, editor: editorFiles }; const mermaidFiles = [ "public/script/external/mermaid.min.js", @@ -64,10 +65,15 @@ function buildCoreJs(cb) { } async function buildVendorJs() { + const lazyAssets = {}; + await Promise.all(Object.entries(lazyGroups).map(async ([name, files]) => { + await promisify(pipeline)(orderedSrc(files), concat(`${name}.min.js`), uglify(), dest("public/script")); + lazyAssets[name] = `/script/${name}.${hashFile(`public/script/${name}.min.js`)}.min.js`; + })); const app = await esbuild.build({ entryPoints: ["public/script/main.js"], bundle: true, write: false, format: "iife", minify: true, target: "es2020", - define: { "process.env.NODE_ENV": JSON.stringify("production"), __VUE_OPTIONS_API__: "true", __VUE_PROD_DEVTOOLS__: "false", __VUE_PROD_HYDRATION_MISMATCH_DETAILS__: "false" }, + define: { __LAZY_ASSETS__: JSON.stringify(lazyAssets), "process.env.NODE_ENV": JSON.stringify("production"), __VUE_OPTIONS_API__: "true", __VUE_PROD_DEVTOOLS__: "false", __VUE_PROD_HYDRATION_MISMATCH_DETAILS__: "false" }, plugins: [{ name: "vue-templates", setup(build) { build.onLoad({ filter: /\.htm$/ }, async ({ path }) => { const { code, errors } = compileTemplate({ @@ -81,8 +87,7 @@ async function buildVendorJs() { }); } }], }); - await promisify(pipeline)(orderedSrc(vendorJsFiles), concat("vendor.min.js"), uglify(), dest("public/script")); - fs.appendFileSync("public/script/vendor.min.js", "\n;" + app.outputFiles[0].text); + fs.writeFileSync("public/script/vendor.min.js", app.outputFiles[0].text); } function buildMermaidJs(cb) { @@ -100,6 +105,7 @@ function writeManifest(cb) { "mermaid.min.js": "public/script/mermaid.min.js", "all.min.css": "public/css/all.min.css", }; + for (const name of Object.keys(lazyGroups)) files[`${name}.min.js`] = `public/script/${name}.min.js`; const manifest = {}; for (const [key, filePath] of Object.entries(files)) { const hash = hashFile(filePath); diff --git a/public/asset-manifest.json b/public/asset-manifest.json index 2db0787..66a9b3e 100644 --- a/public/asset-manifest.json +++ b/public/asset-manifest.json @@ -1,6 +1,11 @@ { "core.min.js": "core.c5bd53363a.min.js", - "vendor.min.js": "vendor.abcdded7b8.min.js", + "vendor.min.js": "vendor.af902bc3b4.min.js", "mermaid.min.js": "mermaid.f848a72d16.min.js", - "all.min.css": "all.076c089579.min.css" + "all.min.css": "all.076c089579.min.css", + "markdown.min.js": "markdown.ad7b1d71c3.min.js", + "pdf.min.js": "pdf.eaa7573247.min.js", + "notebook.min.js": "notebook.8844e2735f.min.js", + "org.min.js": "org.f4e2a3f59f.min.js", + "editor.min.js": "editor.e243722d87.min.js" } \ No newline at end of file diff --git a/public/script/components.js b/public/script/components.js index d88148a..ccaea15 100644 --- a/public/script/components.js +++ b/public/script/components.js @@ -1,4 +1,5 @@ -import { h, ref, watch, onMounted, onBeforeUnmount, nextTick } from "vue"; +import { loadLibrary, loadEditor } from "./lazy-assets.js"; +import { h, ref, watch, onMounted, onBeforeUnmount, nextTick, defineAsyncComponent } from "vue"; import HtmlDoc from "./html-doc.js"; import PdfViewer from "./pdf-viewer.js"; @@ -44,6 +45,7 @@ const Notebook = { request = new AbortController(); try { const json = props.content ? JSON.parse(props.content) : await fetch(props.file?.download_url || props.file, { signal: request.signal }).then(r => { if (!r.ok) throw Error("Notebook request failed"); return r.json(); }); + await loadLibrary("notebook"); if (current !== generation) return; host.value.innerHTML = DOMPurify.sanitize(nb.parse(json).render()); host.value.querySelectorAll("pre code").forEach(el => window.Prism?.highlightElement(el)); @@ -64,21 +66,35 @@ const Loc = { }; }, }; -export const components = { Markdown, GistFile, Notebook, Loc, HtmlDoc, Pdfviewer: PdfViewer }; +export const components = { Markdown, GistFile, Notebook, Loc, HtmlDoc, Pdfviewer: defineAsyncComponent(async () => { + await loadLibrary("pdf"); + pdfjsLib.GlobalWorkerOptions.workerSrc = "/script/external/pdf.worker.js"; + return PdfViewer; +}) }; export const codeEditor = { - mounted(el, { value }) { - const editor = ace.edit(el); - el._editor = editor; - editor.setValue(String(value.content ?? ""), -1); - applyEditorOptions(el, value.options); - value.options?.onLoad?.(editor); + async mounted(el, { value }) { + el._editorValue = value; + try { + await loadEditor(); + if (el._editorDisposed) return; + const latest = el._editorValue; + const editor = ace.edit(el); + el._editor = editor; + editor.setValue(String(latest.content ?? ""), -1); + applyEditorOptions(el, latest.options); + latest.options?.onLoad?.(editor); + } catch (error) { + if (!el._editorDisposed) el.textContent = error.message; + } }, updated(el, { value }) { + el._editorValue = value; + if (!el._editor) return; if (el._editor.getValue() !== String(value.content ?? "")) el._editor.setValue(String(value.content ?? ""), -1); applyEditorOptions(el, value.options); }, - beforeUnmount(el) { el._editor.destroy(); }, + beforeUnmount(el) { el._editorDisposed = true; el._editor?.destroy(); }, }; function applyEditorOptions(el, options = {}) { if (options.mode) el._editor.session.setMode("ace/mode/" + options.mode); diff --git a/public/script/editor.min.js b/public/script/editor.min.js new file mode 100644 index 0000000..97b55e7 --- /dev/null +++ b/public/script/editor.min.js @@ -0,0 +1 @@ +(function(){function l(e,i){var t,n;return i=r(e,i),(e=s.modules[i])||("function"==typeof(e=s.payloads[i])&&(t={id:i,uri:"",exports:n={},packaged:!0},n=e(function(e,t){return o(i,e,t)},n,t)||t.exports,s.modules[i]=n,delete s.payloads[i]),e=s.modules[i]=n||e),e}var e,t,i=function(){return this}(),s=(i||"undefined"==typeof window||(i=window),function(e,t,i){"string"!=typeof e?s.original?s.original.apply(this,arguments):(console.error("dropping module because define wasn't a string."),console.trace()):(2==arguments.length&&(i=t),s.modules[e]||(s.payloads[e]=i,s.modules[e]=null))}),o=(s.modules={},s.payloads={},function(e,t,i){if("string"==typeof t){var n=l(e,t);if(null!=n)return i&&i(),n}else if("[object Array]"===Object.prototype.toString.call(t)){for(var s=[],o=0,r=t.length;o ["+this.end.row+"/"+this.end.column+"]"},this.contains=function(e,t){return 0==this.compare(e,t)},this.compareRange=function(e){var t=e.end,e=e.start,t=this.compare(t.row,t.column);return 1==t?1==(t=this.compare(e.row,e.column))?2:0==t?1:0:-1==t?-2:-1==(t=this.compare(e.row,e.column))?-1:1==t?42:0},this.comparePoint=function(e){return this.compare(e.row,e.column)},this.containsRange=function(e){return 0==this.comparePoint(e.start)&&0==this.comparePoint(e.end)},this.intersects=function(e){e=this.compareRange(e);return-1==e||0==e||1==e},this.isEnd=function(e,t){return this.end.row==e&&this.end.column==t},this.isStart=function(e,t){return this.start.row==e&&this.start.column==t},this.setStart=function(e,t){"object"==typeof e?(this.start.column=e.column,this.start.row=e.row):(this.start.row=e,this.start.column=t)},this.setEnd=function(e,t){"object"==typeof e?(this.end.column=e.column,this.end.row=e.row):(this.end.row=e,this.end.column=t)},this.inside=function(e,t){return 0==this.compare(e,t)&&!this.isEnd(e,t)&&!this.isStart(e,t)},this.insideStart=function(e,t){return 0==this.compare(e,t)&&!this.isEnd(e,t)},this.insideEnd=function(e,t){return 0==this.compare(e,t)&&!this.isStart(e,t)},this.compare=function(e,t){return this.isMultiLine()||e!==this.start.row?ethis.end.row?1:this.start.row===e?t>=this.start.column?0:-1:this.end.row!==e||t<=this.end.column?0:1:tthis.end.column?1:0},this.compareStart=function(e,t){return this.start.row==e&&this.start.column==t?-1:this.compare(e,t)},this.compareEnd=function(e,t){return this.end.row==e&&this.end.column==t?1:this.compare(e,t)},this.compareInside=function(e,t){return this.end.row==e&&this.end.column==t?1:this.start.row==e&&this.start.column==t?-1:this.compare(e,t)},this.clipRows=function(e,t){var i,n;return this.end.row>t?i={row:t+1,column:0}:this.end.rowt?n={row:t+1,column:0}:this.start.row>=1)&&(e+=e);return i};var n=/^\s\s*/,s=/\s\s*$/;t.stringTrimLeft=function(e){return e.replace(n,"")},t.stringTrimRight=function(e){return e.replace(s,"")},t.copyObject=function(e){var t,i={};for(t in e)i[t]=e[t];return i},t.copyArray=function(e){for(var t=[],i=0,n=e.length;iDate.now()-50)||(n=!1)},cancel:function(){n=Date.now()}}}),ace.define("ace/keyboard/textinput",["require","exports","module","ace/lib/event","ace/lib/useragent","ace/lib/dom","ace/lib/lang","ace/clipboard","ace/lib/keys"],function(e,t,i){"use strict";var B=e("../lib/event"),H=e("../lib/useragent"),P=e("../lib/dom"),N=e("../lib/lang"),z=e("../clipboard"),V=H.isChrome<18,U=H.isIE,K=63e+1?t.length:n,n+=s.length+1,s=s+"\n"+t):X&&0=p.length&&e.value===p&&p&&e.selectionEnd!==v}),y=null,C=(this.setInputHandler=function(e){y=e},!(this.getInputHandler=function(){return y})),S=function(e,t){if(C=C&&!1,g)return b(),e&&u.onPaste(e),g=!1,"";for(var i=d.selectionStart,n=d.selectionEnd,s=w,o=p.length-v,r=e,a=e.length-i,l=e.length-n,h=0;0w-1&&p[p.length-h]==e[e.length-h];)h++,o--;a-=h-1,l-=h-1;var c=r.length-h+1;return c<0&&(s=-c,c=0),r=r.slice(0,c),t||r||a||s||o||l?(c=!(f=!0),H.isAndroid&&". "==r&&(r=" ",c=!0),r&&!s&&!o&&!a&&!l||m?u.onTextInput(r):u.onTextInput(r,{extendLeft:s,extendRight:o,restoreStart:a,restoreEnd:l}),f=!1,p=e,w=i,v=n,$=l,c?"\n":r):""},x=function(e){if(r)return L();if(e&&e.inputType){if("historyUndo"==e.inputType)return u.execCommand("undo");if("historyRedo"==e.inputType)return u.execCommand("redo")}var e=d.value,t=S(e,!0);(500this.$focusTimeout)&&this.startSelect(this.mousedownEvent.getDocumentPosition())},this.onDoubleClick=function(e){var e=e.getDocumentPosition(),t=this.editor,i=t.session.getBracketRange(e);i?(i.isEmpty()&&(i.start.column--,i.end.column++),this.setState("select")):(i=t.selection.getWordRange(e.row,e.column),this.setState("selectByWords")),this.$clickSelection=i,this.select()},this.onTripleClick=function(e){var e=e.getDocumentPosition(),t=this.editor,i=(this.setState("selectByLines"),t.getSelectionRange());i.isMultiLine()&&i.contains(e.row,e.column)?(this.$clickSelection=t.selection.getLineRange(i.start.row),this.$clickSelection.end=t.selection.getLineRange(i.end.row).end):this.$clickSelection=t.selection.getLineRange(e.row),this.select()},this.onQuadClick=function(e){var t=this.editor;t.selectAll(),this.$clickSelection=t.getSelectionRange(),this.setState("selectAll")},this.onMouseWheel=function(e){var t,i,n,s,o,r,a;if(!e.getAccelKey())return e.getShiftKey()&&e.wheelY&&!e.wheelX&&(e.wheelX=e.wheelY,e.wheelY=0),t=this.editor,this.$lastScroll||(this.$lastScroll={t:0,vx:0,vy:0,allowed:0}),i=this.$lastScroll,s=(a=(n=e.domEvent.timeStamp)-i.t)?e.wheelX/a:i.vx,o=a?e.wheelY/a:i.vy,a<550&&(s=(s+i.vx)/2,o=(o+i.vy)/2),a=!1,1<=(r=Math.abs(s/o))&&t.renderer.isScrollableBy(e.wheelX*e.speed,0)&&(a=!0),(a=r<=1&&t.renderer.isScrollableBy(0,e.wheelY*e.speed)?!0:a)?i.allowed=n:n-i.allowed<550&&(Math.abs(s)<=1.5*Math.abs(i.vx)&&Math.abs(o)<=1.5*Math.abs(i.vy)?(a=!0,i.allowed=n):i.allowed=0),i.t=n,i.vx=s,i.vy=o,a?(t.renderer.scrollBy(e.wheelX*e.speed,e.wheelY*e.speed),e.stop()):void 0}}).call(n.prototype),t.DefaultHandlers=n}),ace.define("ace/tooltip",["require","exports","module","ace/lib/oop","ace/lib/dom"],function(e,t,i){"use strict";function n(e){this.isOpen=!1,this.$element=null,this.$parentNode=e}e("./lib/oop");var s=e("./lib/dom");(function(){this.$init=function(){return this.$element=s.createElement("div"),this.$element.className="ace_tooltip",this.$element.style.display="none",this.$parentNode.appendChild(this.$element),this.$element},this.getElement=function(){return this.$element||this.$init()},this.setText=function(e){this.getElement().textContent=e},this.setHtml=function(e){this.getElement().innerHTML=e},this.setPosition=function(e,t){this.getElement().style.left=e+"px",this.getElement().style.top=t+"px"},this.setClassName=function(e){s.addCssClass(this.getElement(),e)},this.show=function(e,t,i){null!=e&&this.setText(e),null!=t&&null!=i&&this.setPosition(t,i),this.isOpen||(this.getElement().style.display="block",this.isOpen=!0)},this.hide=function(){this.isOpen&&(this.getElement().style.display="none",this.isOpen=!1)},this.getHeight=function(){return this.getElement().offsetHeight},this.getWidth=function(){return this.getElement().offsetWidth},this.destroy=function(){this.isOpen=!1,this.$element&&this.$element.parentNode&&this.$element.parentNode.removeChild(this.$element)}}).call(n.prototype),t.Tooltip=n}),ace.define("ace/mouse/default_gutter_handler",["require","exports","module","ace/lib/dom","ace/lib/oop","ace/lib/event","ace/tooltip"],function(e,t,i){"use strict";function u(e){r.call(this,e)}var d=e("../lib/dom"),n=e("../lib/oop"),g=e("../lib/event"),r=e("../tooltip").Tooltip;n.inherits(u,r),function(){this.setPosition=function(e,t){var i=window.innerWidth||document.documentElement.clientWidth,n=window.innerHeight||document.documentElement.clientHeight,s=this.getWidth(),o=this.getHeight();i<(e+=15)+s&&(e-=e+s-i),n<(t+=15)+o&&(t-=20+o),r.prototype.setPosition.call(this,e,t)}}.call(u.prototype),t.GutterHandler=function(n){function s(){i=i&&clearTimeout(i),a&&(c.hide(),a=null,l._signal("hideGutterTooltip",c),l.off("mousewheel",s))}function o(e){c.setPosition(e.x,e.y)}var i,r,a,l=n.editor,h=l.renderer.$gutterLayer,c=new u(l.container);n.editor.setDefaultHandler("guttermousedown",function(e){if(l.isFocused()&&0==e.getButton()){var t=h.getRegion(e);if("foldWidgets"!=t){var t=e.getDocumentPosition().row,i=l.session.selection;if(e.getShiftKey())i.selectTo(t,0);else{if(2==e.domEvent.detail)return l.selectAll(),e.preventDefault();n.$clickSelection=l.selection.getLineRange(t)}return n.setState("selectByLines"),n.captureMouse(e),e.preventDefault()}}}),n.editor.setDefaultHandler("guttermousemove",function(e){var t=e.domEvent.target||e.domEvent.srcElement;if(d.hasCssClass(t,"ace_fold-widget"))return s();a&&n.$tooltipFollowsMouse&&o(e),r=e,i=i||setTimeout(function(){i=null,(r&&!n.isMousePressed?function(){var e=r.getDocumentPosition().row,t=h.$annotations[e];if(!t)return s();if(e==l.session.getLength()){var e=l.renderer.pixelToScreenCoordinates(0,r.y).row,i=r.$pos;if(e>l.session.documentToScreenRow(i.row,i.column))return s()}a!=t&&(a=t.text.join("
"),c.setHtml(a),c.show(),l._signal("showGutterTooltip",c),l.on("mousewheel",s),n.$tooltipFollowsMouse?o(r):(e=r.domEvent.target.getBoundingClientRect(),(i=c.getElement().style).left=e.right+"px",i.top=e.bottom+"px"))}:s)()},50)}),g.addListener(l.renderer.$gutter,"mouseout",function(e){r=null,a&&(i=i||setTimeout(function(){i=null,s()},50))},l),l.on("changeSession",s)}}),ace.define("ace/mouse/mouse_event",["require","exports","module","ace/lib/event","ace/lib/useragent"],function(e,t,i){"use strict";var n=e("../lib/event"),s=e("../lib/useragent"),e=t.MouseEvent=function(e,t){this.domEvent=e,this.editor=t,this.x=this.clientX=e.clientX,this.y=this.clientY=e.clientY,this.$pos=null,this.$inSelection=null,this.propagationStopped=!1,this.defaultPrevented=!1};!function(){this.stopPropagation=function(){n.stopPropagation(this.domEvent),this.propagationStopped=!0},this.preventDefault=function(){n.preventDefault(this.domEvent),this.defaultPrevented=!0},this.stop=function(){this.stopPropagation(),this.preventDefault()},this.getDocumentPosition=function(){return this.$pos||(this.$pos=this.editor.renderer.screenToTextCoordinates(this.clientX,this.clientY),this.$pos)},this.inSelection=function(){var e,t;return null===this.$inSelection&&((e=this.editor.getSelectionRange()).isEmpty()?this.$inSelection=!1:(t=this.getDocumentPosition(),this.$inSelection=e.contains(t.row,t.column))),this.$inSelection},this.getButton=function(){return n.getButton(this.domEvent)},this.getShiftKey=function(){return this.domEvent.shiftKey},this.getAccelKey=s.isMac?function(){return this.domEvent.metaKey}:function(){return this.domEvent.ctrlKey}}.call(e.prototype)}),ace.define("ace/mouse/dragdrop_handler",["require","exports","module","ace/lib/dom","ace/lib/event","ace/lib/useragent"],function(e,t,i){"use strict";function n(t){function e(){var e,t,i,n,s,o,r,a,l=d;d=v.renderer.screenToTextCoordinates(h,c),s=d,o=l,r=Date.now(),a=!o||s.row!=o.row,o=!o||s.column!=o.column,!p||a||o?(v.moveCursorToPosition(s),p=r,w={x:h,y:c}):5this.editor.getDragDelay()&&this.startDrag()},this.dragWaitEnd=function(){this.editor.container.draggable=!1,this.startSelect(this.mousedownEvent.getDocumentPosition()),this.selectEnd()},this.dragReadyEnd=function(e){this.editor.$resetCursorStyle(),this.editor.unsetStyle("ace_dragging"),this.editor.renderer.setCursorStyle(""),this.dragWaitEnd()},this.startDrag=function(){this.cancelDrag=!1;var e=this.editor,t=(e.container.draggable=!0,e.renderer.$cursorLayer.setBlinking(!1),e.setStyle("ace_dragging"),A.isWin?"default":"move");e.renderer.setCursorStyle(t),this.setState("dragReady")},this.onMouseDrag=function(e){var t=this.editor.container;A.isIE&&"dragReady"==this.state&&3i&&(f=-1),d=e.clientX=r,g=e.clientY=o,C=S=0,new x(e,c));if(w=r.getDocumentPosition(),s-f<500&&1==t.length&&!b)y++,e.preventDefault(),e.button=0,p=null,clearTimeout(p),c.selection.moveToPosition(w),(o=2<=y?c.selection.getLineRange(w.row):c.session.getBracketRange(w))&&!o.isEmpty()?c.selection.setRange(o):c.selection.selectWord(),$="wait";else{y=0;var r=c.selection.cursor,t=c.selection.isEmpty()?r:c.selection.anchor,o=c.renderer.$cursorLayer.getPixelPosition(r,!0),r=c.renderer.$cursorLayer.getPixelPosition(t,!0),t=c.renderer.scroller.getBoundingClientRect(),a=c.renderer.layerConfig.offset,l=c.renderer.scrollLeft,h=function(e,t){return(e/=n)*e+(t=t/i-.75)*t};if(e.clientX=t.length||(s=i[n-1])!=x&&s!=k||(l=t[n+1])!=x&&l!=k?A:(l=w?k:l)==s?l:A;case _:return(s=0=e){for(n=l+1;n=e;)n++;for(s=l,o=n-1;s>8;return 0==i?191M&&t[a]t.row||e.row==t.row&&e.column>t.column},this.getRange=function(){var e=this.anchor,t=this.lead;return this.$isEmpty?a.fromPoints(t,t):this.isBackwards()?a.fromPoints(t,e):a.fromPoints(e,t)},this.clearSelection=function(){this.$isEmpty||(this.$isEmpty=!0,this._emit("changeSelection"))},this.selectAll=function(){this.$setSelection(0,0,Number.MAX_VALUE,Number.MAX_VALUE)},this.setRange=this.setSelectionRange=function(e,t){var i=t?e.end:e.start,t=t?e.start:e.end;this.$setSelection(i.row,i.column,t.row,t.column)},this.$setSelection=function(e,t,i,n){var s,o;!this.$silent&&(s=this.$isEmpty,o=this.inMultiSelectMode,this.$silent=!0,this.$cursorChanged=this.$anchorChanged=!1,this.anchor.setPosition(e,t),this.cursor.setPosition(i,n),this.$isEmpty=!a.comparePoints(this.anchor,this.cursor),this.$silent=!1,this.$cursorChanged&&this._emit("changeCursor"),this.$cursorChanged||this.$anchorChanged||s!=this.$isEmpty||o)&&this._emit("changeSelection")},this.$moveSelection=function(e){var t=this.lead;this.$isEmpty&&this.setSelectionAnchor(t.row,t.column),e.call(this)},this.selectTo=function(e,t){this.$moveSelection(function(){this.moveCursorTo(e,t)})},this.selectToPosition=function(e){this.$moveSelection(function(){this.moveCursorToPosition(e)})},this.moveTo=function(e,t){this.clearSelection(),this.moveCursorTo(e,t)},this.moveToPosition=function(e){this.clearSelection(),this.moveCursorToPosition(e)},this.selectUp=function(){this.$moveSelection(this.moveCursorUp)},this.selectDown=function(){this.$moveSelection(this.moveCursorDown)},this.selectRight=function(){this.$moveSelection(this.moveCursorRight)},this.selectLeft=function(){this.$moveSelection(this.moveCursorLeft)},this.selectLineStart=function(){this.$moveSelection(this.moveCursorLineStart)},this.selectLineEnd=function(){this.$moveSelection(this.moveCursorLineEnd)},this.selectFileEnd=function(){this.$moveSelection(this.moveCursorFileEnd)},this.selectFileStart=function(){this.$moveSelection(this.moveCursorFileStart)},this.selectWordRight=function(){this.$moveSelection(this.moveCursorWordRight)},this.selectWordLeft=function(){this.$moveSelection(this.moveCursorWordLeft)},this.getWordRange=function(e,t){var i;return void 0===t&&(e=(i=e||this.lead).row,t=i.column),this.session.getWordRange(e,t)},this.selectWord=function(){this.setSelectionRange(this.getWordRange())},this.selectAWord=function(){var e=this.getCursor(),e=this.session.getAWordRange(e.row,e.column);this.setSelectionRange(e)},this.getLineRange=function(e,t){var e="number"==typeof e?e:this.lead.row,i=this.session.getFoldLine(e),i=i?(e=i.start.row,i.end.row):e;return!0===t?new a(e,0,i,this.session.getLine(i).length):new a(e,0,i+1,0)},this.selectLine=function(){this.setSelectionRange(this.getLineRange())},this.moveCursorUp=function(){this.moveCursorBy(-1,0)},this.moveCursorDown=function(){this.moveCursorBy(1,0)},this.wouldMoveIntoSoftTab=function(e,t,i){var n=e.column,s=e.column+t;return i<0&&(n=e.column-t,s=e.column),this.session.isTabStop(e)&&this.doc.getLine(e.row).slice(n,s).split(" ").length-1==t},this.moveCursorLeft=function(){var e,t=this.lead.getPosition();(e=this.session.getFoldAt(t.row,t.column,-1))?this.moveCursorTo(e.start.row,e.start.column):0===t.column?0=i.length?(this.moveCursorTo(e,i.length),this.moveCursorRight(),eh&&(d=e.substring(h,p-m.length),u.type==g?u.value+=d:(u.type&&l.push(u),u={type:g,value:d}));for(var w=0;wv){for(c>2*e.length&&this.reportError("infinite loop with in ace tokenizer",{startState:t,line:e});h=this.$rowTokens.length;){if(this.$row+=1,e=e||this.$session.getLength(),this.$row>=e)return this.$row=e-1,null;this.$rowTokens=this.$session.getTokens(this.$row),this.$tokenIndex=0}return this.$rowTokens[this.$tokenIndex]},this.getCurrentToken=function(){return this.$rowTokens[this.$tokenIndex]},this.getCurrentTokenRow=function(){return this.$row},this.getCurrentTokenColumn=function(){var e=this.$rowTokens,t=this.$tokenIndex,i=e[t].start;if(void 0===i)for(i=0;0e.length&&(b=e.length)}),l==1/0&&(l=b,a=r=!1),c&&l%h!=0&&(l=Math.floor(l/h)*h),t(a?u:g)},this.toggleBlockComment=function(e,t,i,n){var s=this.blockComment;if(s){!s.start&&s[0]&&(s=s[0]);var o,r,a=(d=new m(t,n.row,n.column)).getCurrentToken(),l=(t.selection,t.selection.toOrientedRange());if(a&&/comment/.test(a.type)){for(;a&&/comment/.test(a.type);){if(-1!=(g=a.value.indexOf(s.start))){var h=d.getCurrentTokenRow(),c=d.getCurrentTokenColumn()+g,u=new p(h,c,h,c+s.start.length);break}a=d.stepBackward()}for(var d,g,a=(d=new m(t,n.row,n.column)).getCurrentToken();a&&/comment/.test(a.type);){if(-1!=(g=a.value.indexOf(s.end))){var h=d.getCurrentTokenRow(),c=d.getCurrentTokenColumn()+g,f=new p(h,c,h,c+s.end.length);break}a=d.stepForward()}f&&t.remove(f),u&&(t.remove(u),o=u.start.row,r=-s.start.length)}else r=s.start.length,o=i.start.row,t.insert(i.end,s.end),t.insert(i.start,s.start);l.start.row==o&&(l.start.column+=r),l.end.row==o&&(l.end.column+=r),t.selection.fromOrientedRange(l)}},this.getNextLineIndent=function(e,t,i){return this.$getIndent(t)},this.checkOutdent=function(e,t,i){return!1},this.autoOutdent=function(e,t,i){},this.$getIndent=function(e){return e.match(/^\s*/)[0]},this.createWorker=function(e){return null},this.createModeDelegates=function(e){for(var n in this.$embeds=[],this.$modes={},e){var t,i,s;e[n]&&(i=(t=e[n]).prototype.$id,(s=r.$modes[i])||(r.$modes[i]=s=new t),r.$modes[n]||(r.$modes[n]=s),this.$embeds.push(n),this.$modes[n]=s)}for(var o=["toggleBlockComment","toggleCommentLines","getNextLineIndent","checkOutdent","autoOutdent","transformAction","getCompletions"],n=0;nthis.row||(e=e,t={row:this.row,column:this.column},i=this.$insertRight,n=((r="insert"==e.action)?1:-1)*(e.end.row-e.start.row),s=(r?1:-1)*(e.end.column-e.start.column),o=e.start,r=r?o:e.end,e=a(t,o,i)?{row:t.row,column:t.column}:a(r,t,!i)?{row:t.row+n,column:t.column+(t.row==r.row?s:0)}:{row:o.row,column:o.column},this.setPosition(e.row,e.column,!0))},this.setPosition=function(e,t,i){i=i?{row:e,column:t}:this.$clipPositionToDocument(e,t);this.row==i.row&&this.column==i.column||(e={row:this.row,column:this.column},this.row=i.row,this.column=i.column,this._signal("change",{old:e,value:i}))},this.detach=function(){this.document.off("change",this.$onChange)},this.attach=function(e){this.document=e||this.document,this.document.on("change",this.$onChange)},this.$clipPositionToDocument=function(e,t){var i={};return e>=this.document.getLength()?(i.row=Math.max(0,this.document.getLength()-1),i.column=this.document.getLine(i.row).length):e<0?(i.row=0,i.column=0):(i.row=e,i.column=Math.min(this.document.getLine(i.row).length,Math.max(0,t))),t<0&&(i.column=0),i}}.call(e.prototype)}),ace.define("ace/document",["require","exports","module","ace/lib/oop","ace/apply_delta","ace/lib/event_emitter","ace/range","ace/anchor"],function(e,t,i){"use strict";function n(e){this.$lines=[""],0===e.length?this.$lines=[""]:Array.isArray(e)?this.insertMergedLines({row:0,column:0},e):this.insert({row:0,column:0},e)}var s=e("./lib/oop"),o=e("./apply_delta").applyDelta,r=e("./lib/event_emitter").EventEmitter,a=e("./range").Range,l=e("./anchor").Anchor;(function(){s.implement(this,r),this.setValue=function(e){var t=this.getLength()-1;this.remove(new a(0,0,t,this.getLine(t).length)),this.insert({row:0,column:0},e)},this.getValue=function(){return this.getAllLines().join(this.getNewLineCharacter())},this.createAnchor=function(e,t){return new l(this,e,t)},0==="aaa".split(/a/).length?this.$split=function(e){return e.replace(/\r\n|\r/g,"\n").split("\n")}:this.$split=function(e){return e.split(/\r\n|\r|\n/)},this.$detectNewLine=function(e){e=e.match(/^.*?(\r\n|\r|\n)/m);this.$autoNewLine=e?e[1]:"\n",this._signal("changeNewLineMode")},this.getNewLineCharacter=function(){switch(this.$newLineMode){case"windows":return"\r\n";case"unix":return"\n";default:return this.$autoNewLine||"\n"}},this.$autoNewLine="",this.$newLineMode="auto",this.setNewLineMode=function(e){this.$newLineMode!==e&&(this.$newLineMode=e,this._signal("changeNewLineMode"))},this.getNewLineMode=function(){return this.$newLineMode},this.isNewLine=function(e){return"\r\n"==e||"\r"==e||"\n"==e},this.getLine=function(e){return this.$lines[e]||""},this.getLines=function(e,t){return this.$lines.slice(e,t+1)},this.getAllLines=function(){return this.getLines(0,this.getLength())},this.getLength=function(){return this.$lines.length},this.getTextRange=function(e){return this.getLinesForRange(e).join(this.getNewLineCharacter())},this.getLinesForRange=function(e){var t,i;return e.start.row===e.end.row?t=[this.getLine(e.start.row).substring(e.start.column,e.end.column)]:((t=this.getLines(e.start.row,e.end.row))[0]=(t[0]||"").substring(e.start.column),i=t.length-1,e.end.row-e.start.row==i&&(t[i]=t[i].substring(0,e.end.column))),t},this.insertLines=function(e,t){return console.warn("Use of document.insertLines is deprecated. Use the insertFullLines method instead."),this.insertFullLines(e,t)},this.removeLines=function(e,t){return console.warn("Use of document.removeLines is deprecated. Use the removeFullLines method instead."),this.removeFullLines(e,t)},this.insertNewLine=function(e){return console.warn("Use of document.insertNewLine is deprecated. Use insertMergedLines(position, ['', '']) instead."),this.insertMergedLines(e,["",""])},this.insert=function(e,t){return this.getLength()<=1&&this.$detectNewLine(t),this.insertMergedLines(e,this.$split(t))},this.insertInLine=function(e,t){var i=this.clippedPos(e.row,e.column),e=this.pos(e.row,e.column+t.length);return this.applyDelta({start:i,end:e,action:"insert",lines:[t]},!0),this.clonePos(e)},this.clippedPos=function(e,t){var i=this.getLength(),i=(void 0===e?e=i:e<0?e=0:i<=e&&(e=i-1,t=void 0),this.getLine(e));return null==t&&(t=i.length),{row:e,column:t=Math.min(Math.max(t,0),i.length)}},this.clonePos=function(e){return{row:e.row,column:e.column}},this.pos=function(e,t){return{row:e,column:t}},this.$clipPosition=function(e){var t=this.getLength();return e.row>=t?(e.row=Math.max(0,t-1),e.column=this.getLine(t-1).length):(e.row=Math.max(0,e.row),e.column=Math.min(Math.max(e.column,0),this.getLine(e.row).length)),e},this.insertFullLines=function(e,t){var i=0,i=(e=Math.min(Math.max(e,0),this.getLength()))e+1&&(this.currentLine=e+1)):this.currentLine==e&&(this.currentLine=e+1),this.lines[e]=t.tokens}}).call(n.prototype),t.BackgroundTokenizer=n}),ace.define("ace/search_highlight",["require","exports","module","ace/lib/lang","ace/lib/oop","ace/range"],function(e,t,i){"use strict";function n(e,t,i){this.setRegexp(e),this.clazz=t,this.type=i||"text"}var h=e("./lib/lang"),c=(e("./lib/oop"),e("./range").Range);(function(){this.MAX_RANGES=500,this.setRegexp=function(e){this.regExp+""!=e+""&&(this.regExp=e,this.cache=[])},this.update=function(e,t,i,n){if(this.regExp)for(var s=n.firstRow,o=n.lastRow,r=s;r<=o;r++){var a=this.cache[r];null==a&&(a=(a=(a=h.getMatchOffsets(i.getLine(r),this.regExp)).length>this.MAX_RANGES?a.slice(0,this.MAX_RANGES):a).map(function(e){return new c(r,e.offset,r,e.offset+e.length)}),this.cache[r]=a.length?a:"");for(var l=a.length;l--;)t.drawSingleLineMarker(e,a[l].toScreenRange(i),this.clazz,n)}}}).call(n.prototype),t.SearchHighlight=n}),ace.define("ace/edit_session/fold_line",["require","exports","module","ace/range"],function(e,t,i){"use strict";function s(e,t){this.foldData=e,Array.isArray(t)?this.folds=t:t=this.folds=[t];e=t[t.length-1];this.range=new n(t[0].start.row,t[0].start.column,e.end.row,e.end.column),this.start=this.range.start,this.end=this.range.end,this.folds.forEach(function(e){e.setFoldLine(this)},this)}var n=e("../range").Range;(function(){this.shiftRow=function(t){this.start.row+=t,this.end.row+=t,this.folds.forEach(function(e){e.start.row+=t,e.end.row+=t})},this.addFold=function(e){if(e.sameRow){if(e.start.rowthis.endRow)throw new Error("Can't add a fold to this FoldLine as it has no connection");this.folds.push(e),this.folds.sort(function(e,t){return-e.range.compareEnd(t.start.row,t.start.column)}),0=this.start.row&&e<=this.end.row},this.walk=function(e,t,i){var n,s,o=0,r=this.folds,a=!0;null==t&&(t=this.end.row,i=this.end.column);for(var l=0;lt||i[i.length-1].start.row=n);r++);if("insert"==e.action)for(var l=s-n,h=-t.column+i.column;rn)break;c.start.row==n&&c.start.column>=t.column&&(c.start.column==t.column&&this.$bias<=0||(c.start.column+=h,c.start.row+=l)),c.end.row==n&&c.end.column>=t.column&&(c.end.column==t.column&&this.$bias<0||(c.end.column==t.column&&0c.start.column&&c.end.column==o[r+1].start.column&&(c.end.column-=h),c.end.column+=h,c.end.row+=l))}else for(var c,l=n-s,h=t.column-i.column;rs)break;c.end.rowt.column)&&(c.end.column=t.column,c.end.row=t.row):(c.end.column+=h,c.end.row+=l):c.end.row>s&&(c.end.row+=l),c.start.rowt.column)&&(c.start.column=t.column,c.start.row=t.row):(c.start.column+=h,c.start.row+=l):c.start.row>s&&(c.start.row+=l)}if(0!=l&&r=e)return s;if(s.end.row>e)return null}return null},this.getNextFoldLine=function(e,t){var i=this.$foldData,n=0;for(-1==(n=t?i.indexOf(t):n)&&(n=0);n=e)return s}return null},this.getFoldedRowCount=function(e,t){for(var i=this.$foldData,n=t-e+1,s=0;sa)break}while(s&&r.test(s.type));s=n.stepBackward()}else s=n.getCurrentToken();return o.end.row=n.getCurrentTokenRow(),o.end.column=n.getCurrentTokenColumn()+s.value.length-2,o}},this.foldAll=function(e,t,i,n){null==i&&(i=1e5);var s=this.foldWidgets;if(s){t=t||this.getLength();for(var o,r=e=e||0;r=e&&(r=o.end.row,o.collapseChildren=i,this.addFold("...",o))}},this.foldToLevel=function(e){for(this.foldAll();0=e)break}n--}return{range:-1!==n&&o,firstRange:r}},this.onFoldWidgetClick=function(e,t){var i={children:(t=t.domEvent).shiftKey,all:t.ctrlKey||t.metaKey,siblings:t.altKey};this.$toggleFoldWidget(e,i)||(e=t.target||t.srcElement)&&/ace_fold-widget/.test(e.className)&&(e.className+=" ace_invalid")},this.$toggleFoldWidget=function(e,t){var i,n,s,o;if(this.getFoldWidget)return i=this.getFoldWidget(e),n=this.getLine(e),(n=this.getFoldAt(e,-1==(i="end"===i?-1:1)?0:n.length,i))?(t.children||t.all?this.removeFold(n):this.expandFold(n),n):(i=this.getFoldWidgetRange(e,!0))&&!i.isMultiLine()&&(n=this.getFoldAt(i.start.row,i.start.column,1))&&i.isEqual(n.range)?(this.removeFold(n),n):(t.siblings?((n=this.getParentFoldRangeData(e)).range&&(s=n.range.start.row+1,o=n.range.end.row),this.foldAll(s,o,t.all?1e4:0)):t.children?(o=i?i.end.row:this.getLength(),this.foldAll(e+1,o,t.all?1e4:0)):i&&(t.all&&(i.collapseChildren=1e4),this.addFold("...",i)),i)},this.toggleFoldWidget=function(e){var t,i=this.selection.getCursor().row;i=this.getRowFoldStart(i),!this.$toggleFoldWidget(i,{})&&(t=(t=this.getParentFoldRangeData(i,!0)).range||t.firstRange)&&(i=t.start.row,(i=this.getFoldAt(i,this.getLine(i).length,1))?this.removeFold(i):this.addFold("...",t))},this.updateFoldWidgets=function(e){var t=e.start.row,i=e.end.row-t;0==i?this.foldWidgets[t]=null:"remove"==e.action?this.foldWidgets.splice(t,1+i,null):((e=Array(1+i)).unshift(t,1),this.foldWidgets.splice.apply(this.foldWidgets,e))},this.tokenizerUpdateFoldWidgets=function(e){e=e.data;e.first!=e.last&&this.foldWidgets.length>e.first&&this.foldWidgets.splice(e.first,this.foldWidgets.length)}}}),ace.define("ace/edit_session/bracket_match",["require","exports","module","ace/token_iterator","ace/range"],function(e,t,i){"use strict";var u=e("../token_iterator").TokenIterator,a=e("../range").Range;t.BracketMatch=function(){this.findMatchingBracket=function(e,t){return 0!=e.column&&""!=(t=t||this.getLine(e.row).charAt(e.column-1))&&(t=t.match(/([\(\[\{])|([\)\]\}])/))?t[1]?this.$findClosingBracket(t[1],e):this.$findOpeningBracket(t[2],e):null},this.getBracketRange=function(e){var t,i,n=this.getLine(e.row),s=!0,o=n.charAt(e.column-1),r=o&&o.match(/([\(\[\{])|([\)\]\}])/);if(r||(o=n.charAt(e.column),e={row:e.row,column:e.column+1},r=o&&o.match(/([\(\[\{])|([\)\]\}])/),s=!1),!r)return null;if(r[1]){if(!(i=this.$findClosingBracket(r[1],e)))return null;t=a.fromPoints(e,i),s||(t.end.column++,t.start.column--),t.cursor=t.end}else{if(!(i=this.$findOpeningBracket(r[2],e)))return null;t=a.fromPoints(i,e),s||(t.start.column++,t.end.column--),t.cursor=t.start}return t},this.getMatchingBracketRanges=function(e){var t=this.getLine(e.row),i=t.charAt(e.column-1),n=i&&i.match(/([\(\[\{])|([\)\]\}])/);return n||(i=t.charAt(e.column),e={row:e.row,column:e.column+1},n=i&&i.match(/([\(\[\{])|([\)\]\}])/)),n?(t=new a(e.row,e.column-1,e.row,e.column),(i=n[1]?this.$findClosingBracket(n[1],e):this.$findOpeningBracket(n[2],e))?[t,new a(i.row,i.column,i.row,i.column+1)]:[t]):null},this.$brackets={")":"(","(":")","]":"[","[":"]","{":"}","}":"{","<":">",">":"<"},this.$findOpeningBracket=function(e,t,i){var n=this.$brackets[e],s=1,o=new u(this,t.row,t.column),r=o.getCurrentToken();if(r=r||o.stepForward()){i=i||new RegExp("(\\.?"+r.type.replace(".","\\.").replace("rparen",".paren").replace(/\b(?:end)\b/,"(?:start|begin|end)")+")+");for(var a=t.column-o.getCurrentTokenColumn()-2,l=r.value;;){for(;0<=a;){var h=l.charAt(a);if(h==n){if(0==--s)return{row:o.getCurrentTokenRow(),column:a+o.getCurrentTokenColumn()}}else h==e&&(s+=1);--a}for(;(r=o.stepBackward())&&!i.test(r.type););if(null==r)break;a=(l=r.value).length-1}return null}},this.$findClosingBracket=function(e,t,i){var n=this.$brackets[e],s=1,o=new u(this,t.row,t.column),r=o.getCurrentToken();if(r=r||o.stepForward()){i=i||new RegExp("(\\.?"+r.type.replace(".","\\.").replace("lparen",".paren").replace(/\b(?:start|begin)\b/,"(?:start|begin|end)")+")+");for(var a=t.column-o.getCurrentTokenColumn();;){for(var l=r.value,h=l.length;a>1,o=e[s];if(ot&&(t=e.screenWidth)}),this.lineWidgetWidth=t)},this.$computeWidth=function(e){if(this.$modified||e){if(this.$modified=!1,this.$useWrapMode)return this.screenWidth=this.$wrapLimit;for(var t=this.doc.getAllLines(),i=this.$rowLengthCache,n=0,s=0,o=this.$foldData[s],r=o?o.start.row:1/0,a=t.length,l=0;ln&&(n=i[l])}this.screenWidth=n}},this.getLine=function(e){return this.doc.getLine(e)},this.getLines=function(e,t){return this.doc.getLines(e,t)},this.getLength=function(){return this.doc.getLength()},this.getTextRange=function(e){return this.doc.getTextRange(e||this.selection.getRange())},this.insert=function(e,t){return this.doc.insert(e,t)},this.remove=function(e){return this.doc.remove(e)},this.removeFullLines=function(e,t){return this.doc.removeFullLines(e,t)},this.undoChanges=function(e,t){if(e.length){this.$fromUndo=!0;for(var i=e.length-1;-1!=i;i--){var n=e[i];"insert"==n.action||"remove"==n.action?this.doc.revertDelta(n):n.folds&&this.addFolds(n.folds)}!t&&this.$undoSelect&&(e.selectionBefore?this.selection.fromJSON(e.selectionBefore):this.selection.setRange(this.$getUndoSelection(e,!0))),this.$fromUndo=!1}},this.redoChanges=function(e,t){if(e.length){this.$fromUndo=!0;for(var i=0;ie.end.column&&(t.start.column+=o),t.end.row==e.end.row)&&t.end.column>e.end.column&&(t.end.column+=o),s&&t.start.row>=e.end.row&&(t.start.row+=s,t.end.row+=s)),t.end=this.insert(t.start,r),a.length&&(n=e.start,i=t.start,s=i.row-n.row,o=i.column-n.column,this.addFolds(a.map(function(e){return(e=e.clone()).start.row==n.row&&(e.start.column+=o),e.end.row==n.row&&(e.end.column+=o),e.start.row+=s,e.end.row+=s,e}))),t},this.indentRows=function(e,t,i){i=i.replace(/\t/g,this.getTabString());for(var n=e;n<=t;n++)this.doc.insertInLine({row:n,column:0},i)},this.outdentRows=function(e){for(var t=e.collapseRows(),i=new u(0,0,0,0),n=this.getTabSize(),s=t.start.row;s<=t.end.row;++s){var o=this.getLine(s);i.start.row=s,i.end.row=s;for(var r=0;rthis.doc.getLength()-1)return 0;n=s-t}else{e=this.$clipRowToDocument(e);n=(t=this.$clipRowToDocument(t))-e+1}var s=new u(e,0,t,Number.MAX_VALUE),s=this.getFoldsInRange(s).map(function(e){return(e=e.clone()).start.row+=n,e.end.row+=n,e}),i=0==i?this.doc.getLines(e,t):this.doc.removeFullLines(e,t);return this.doc.insertFullLines(e+n,i),s.length&&this.addFolds(s),n},this.moveLinesUp=function(e,t){return this.$moveLines(e,t,-1)},this.moveLinesDown=function(e,t){return this.$moveLines(e,t,1)},this.duplicateLines=function(e,t){return this.$moveLines(e,t,0)},this.$clipRowToDocument=function(e){return Math.max(0,Math.min(e,this.doc.getLength()-1))},this.$clipColumnToRow=function(e,t){return t<0?0:Math.min(this.doc.getLine(e).length,t)},this.$clipPositionToDocument=function(e,t){var i;return t=Math.max(0,t),t=e<0?e=0:(i=this.doc.getLength())<=e?this.doc.getLine(e=i-1).length:Math.min(this.doc.getLine(e).length,t),{row:e,column:t}},this.$clipRangeToDocument=function(e){e.start.row<0?(e.start.row=0,e.start.column=0):e.start.column=this.$clipColumnToRow(e.start.row,e.start.column);var t=this.doc.getLength()-1;return e.end.row>t?(e.end.row=t,e.end.column=this.doc.getLine(t).length):e.end.column=this.$clipColumnToRow(e.end.row,e.end.column),e},this.$wrapLimit=80,this.$useWrapMode=!1,this.$wrapLimitRange={min:null,max:null},this.setUseWrapMode=function(e){e!=this.$useWrapMode&&(this.$useWrapMode=e,this.$modified=!0,this.$resetRowCache(0),e&&(e=this.getLength(),this.$wrapData=Array(e),this.$updateWrapData(0,e-1)),this._signal("changeWrapMode"))},this.getUseWrapMode=function(){return this.$useWrapMode},this.setWrapLimitRange=function(e,t){this.$wrapLimitRange.min===e&&this.$wrapLimitRange.max===t||(this.$wrapLimitRange={min:e,max:t},this.$modified=!0,this.$bidiHandler.markAsDirty(),this.$useWrapMode&&this._signal("changeWrapMode"))},this.adjustWrapLimit=function(e,t){var i=this.$wrapLimitRange,t=(i.max<0&&(i={min:t,max:t}),this.$constrainWrapLimit(e,i.min,i.max));return t!=this.$wrapLimit&&1=s.row&&g.shiftRow(-a);r=o}else{var u=Array(a),d=(u.unshift(o,0),t?this.$wrapData:this.$rowLengthCache),h=(d.splice.apply(d,u),this.$foldData),c=0;for((g=this.getFoldLine(o))&&(0==(d=g.range.compareInside(n.row,n.column))?(g=g.split(n.row,n.column))&&(g.shiftRow(a),g.addRemoveChars(r,0,s.column-n.column)):-1==d&&(g.addRemoveChars(o,0,s.column-n.column),g.shiftRow(a)),c=h.indexOf(g)+1);c=o&&g.shiftRow(a)}else{var g,a=Math.abs(e.start.column-e.end.column);"remove"===i&&(l=this.getFoldsInRange(e),this.removeFolds(l),a=-a),(g=this.getFoldLine(o))&&g.addRemoveChars(o,n.column,a)}return t&&this.$wrapData.length!=this.doc.getLength()&&console.error("doc.getLength() and $wrapData.length have to be the same!"),this.$updating=!1,t?this.$updateWrapData(o,r):this.$updateRowLengthCache(o,r),l},this.$updateRowLengthCache=function(e,t,i){this.$rowLengthCache[e]=null,this.$rowLengthCache[t]=null},this.$updateWrapData=function(e,t){var r,i,a=this.doc.getAllLines(),n=this.getTabSize(),s=this.$wrapData,o=this.$wrapLimit,l=e;for(t=Math.min(t,a.length-1);l<=t;)(i=this.getFoldLine(l,i))?(r=[],i.walk(function(e,t,i,n){var s;if(null!=e){(s=this.$getDisplayTokens(e,r.length))[0]=f;for(var o=1;o>2)),a-1);gc[d-1]):!d,this.getLength()-1),f=this.getNextFoldLine(r),m=f?f.start.row:1/0;l<=e&&!(ea[h-1]):!h,this.getNextFoldLine(r)),u=c?c.start.row:1/0;r=g[f];)n++,f++;d=d.substring(g[f-1]||0,d.length),l=0u||(s.push(r=new $(h,u,h+a-1,d)),2w&&s[c].end.row==i.end.row;)c--;for(s=s.slice(g,c+1),g=0,c=s.length;g=s.length)break;u.lastIndex=a+=1}if(n.index+r>t)break;o.push(n.index,r)}for(var l=o.length-1;0<=l;l-=2){var h=o[l-1];if(i(e,h,e,h+(r=o[l])))return!0}}:function(e,t,i){var n=c.getLine(e);for(u.lastIndex=t;s=u.exec(n);){var s,o=s[0].length;if(i(e,s=s.index,e,s+o))return!0;if(!o&&(u.lastIndex=s+=1,s>=n.length))return!1}},{forEach:a?function(e){var t=n.row;if(!r(t,n.column,e)){for(t--;s<=t;t--)if(r(t,Number.MAX_VALUE,e))return;if(0!=i.wrap)for(t=o,s=n.row;s<=t;t--)if(r(t,Number.MAX_VALUE,e))return}}:function(e){var t=n.row;if(!r(t,n.column,e)){for(t+=1;t<=o;t++)if(r(t,0,e))return;if(0!=i.wrap)for(t=s,o=n.row;t<=o;t++)if(r(t,0,e))return}}})}}).call(n.prototype),t.Search=n}),ace.define("ace/keyboard/hash_handler",["require","exports","module","ace/lib/keys","ace/lib/useragent"],function(e,t,i){"use strict";function n(e,t){this.platform=t||(o.isMac?"mac":"win"),this.commands={},this.commandKeyBinding={},this.addCommands(e),this.$singleCommand=!0}function s(e,t){n.call(this,e,t),this.$singleCommand=!1}var a=e("../lib/keys"),o=e("../lib/useragent"),l=a.KEY_MODS;s.prototype=n.prototype,function(){function r(e){return"object"==typeof e&&e.bindKey&&e.bindKey.position||(e.isDefault?-100:0)}this.addCommand=function(e){this.commands[e.name]&&this.removeCommand(e),(this.commands[e.name]=e).bindKey&&this._buildKeyHash(e)},this.removeCommand=function(e,t){var i,n=e&&("string"==typeof e?e:e.name),s=(e=this.commands[n],t||delete this.commands[n],this.commandKeyBinding);for(i in s){var o,r=s[i];r==e?delete s[i]:Array.isArray(r)&&-1!=(o=r.indexOf(e))&&(r.splice(o,1),1==r.length)&&(s[i]=r[0])}},this.bindKey=function(e,n,s){if("object"==typeof e&&e&&(null==s&&(s=e.position),e=e[this.platform]),e)return"function"==typeof n?this.addCommand({exec:n,bindKey:e,name:n.name||e}):void e.split("|").forEach(function(e){var t="",i=(-1!=e.indexOf(" ")&&(e=(i=e.split(/\s+/)).pop(),i.forEach(function(e){e=this.parseKeys(e),e=l[e.hashId]+e.key;t+=(t?" ":"")+e,this._addCommandToBinding(t,"chainKeys")},this),t+=" "),this.parseKeys(e)),e=l[i.hashId]+i.key;this._addCommandToBinding(t+e,n,s)},this)},this._addCommandToBinding=function(e,t,i){var n=this.commandKeyBinding;if(t)if(!n[e]||this.$singleCommand)n[e]=t;else{Array.isArray(n[e])?-1!=(o=n[e].indexOf(t))&&n[e].splice(o,1):n[e]=[n[e]],"number"!=typeof i&&(i=r(t));for(var s=n[e],o=0;ot?t+1:t,e.selection.moveCursorTo(i.row,t))},multiSelectAction:"forEach",readOnly:!0},{name:"invertSelection",description:"Invert selection",bindKey:n(null,null),exec:function(e){var t=e.session.doc.getLength()-1,i=e.session.doc.getLine(t).length,n=e.selection.rangeList.ranges,s=[];n.length<1&&(n=[e.selection.getRange()]);for(var o=0;o=n.lastRow||i.end.row<=n.firstRow)&&this.renderer.scrollSelectionIntoView(this.selection.anchor,this.selection.lead)}"animate"==t&&this.renderer.animateScrolling(this.curOp.scrollTop)}e=this.selection.toJSON();this.curOp.selectionAfter=e,this.$lastSel=this.selection.toJSON(),this.session.getUndoManager().addSelection(e),this.prevOp=this.curOp,this.curOp=null}}},this.$mergeableCommands=["backspace","del","insertstring"],this.$historyTracker=function(e){var t,i,n,s;this.$mergeUndoDeltas&&(t=this.prevOp,i=this.$mergeableCommands,n=t.command&&e.command.name==t.command.name,"insertstring"==e.command.name?(s=e.args,void 0===this.mergeNextCommand&&(this.mergeNextCommand=!0),n=n&&this.mergeNextCommand&&(!/\s/.test(s)||/\s/.test(t.args)),this.mergeNextCommand=!0):n=n&&-1!==i.indexOf(e.command.name),(n="always"!=this.$mergeUndoDeltas&&2e3"===n.value&&a--),n&&0<=a;);else{do{if(n=l,l=i.stepBackward(),n)if(-1!==n.type.indexOf("tag-name"))o===n.value&&("<"===l.value?a++:""===n.value){for(var h=0,c=l;c;){if(-1!==c.type.indexOf("tag-name")&&c.value===o){a--;break}if("<"===c.value)break;c=i.stepBackward(),h++}for(var u=0;ua.search(/\S|$/)&&(t=a.substr(o.column).search(/\S|$/),n.doc.removeInLine(o.row,o.column,o.column+t))),this.clearSelection(),o.column),t=n.getState(o.row),a=n.getLine(o.row),l=s.checkOutdent(t,a,e);n.insert(o,e),i&&i.selection&&(2==i.selection.length?this.selection.setSelectionRange(new p(o.row,r+i.selection[0],o.row,r+i.selection[1])):this.selection.setSelectionRange(new p(o.row+i.selection[0],i.selection[1],o.row+i.selection[2],i.selection[3]))),this.$enableAutoIndent&&(n.getDocument().isNewLine(e)&&(r=s.getNextLineIndent(t,a.slice(0,o.column),n.getTabString()),n.insert({row:o.row+1,column:0},r)),l)&&s.autoOutdent(t,n,o.row)},this.autoIndent=function(){for(var e,t,i,n,s,o=this.session,r=o.getMode(),a=(i=this.selection.isEmpty()?(t=0,o.doc.getLength()-1):(t=(e=this.getSelectionRange()).start.row,e.end.row),""),l="",h=o.getTabString(),c=t;c<=i;c++)0t.toLowerCase()?1:0});for(var s=new p(0,0,0,0),n=e.first;n<=e.last;n++){var o=t.getLine(n);s.start.row=n,s.end.row=n,s.end.column=o.length,t.replace(s,i[n-e.first])}},this.toggleCommentLines=function(){var e=this.session.getState(this.getCursorPosition().row),t=this.$getSelectedRows();this.session.getMode().toggleCommentLines(e,this.session,t.first,t.last)},this.toggleBlockComment=function(){var e=this.getCursorPosition(),t=this.session.getState(e.row),i=this.getSelectionRange();this.session.getMode().toggleBlockComment(t,this.session,i,e)},this.getNumberAt=function(e,t){for(var i=/[\-]?[0-9]+(?:\.[0-9]+)?/g,n=(i.lastIndex=0,this.session.getLine(e));i.lastIndex=t)return{value:s[0],start:s.index,end:s.index+s[0].length}}return null},this.modifyNumber=function(e){var t,i,n,s=this.selection.getCursor().row,o=this.selection.getCursor().column,r=new p(s,o-1,s,o),r=this.session.getTextRange(r);!isNaN(parseFloat(r))&&isFinite(r)?(r=this.getNumberAt(s,o))&&(n=0<=r.value.indexOf(".")?r.start+r.value.indexOf(".")+1:r.end,t=r.start+r.value.length-n,i=parseFloat(r.value),i*=Math.pow(10,t),n!==r.end&&og+1)break;g=f.last}for(c--,a=this.session.$moveLines(d,g,t?0:e),t&&-1==e&&(u=c+1);u<=c;)r[u].moveBy(a,0),u++;l+=a=t?a:0}i.fromOrientedRange(i.ranges[0]),i.rangeList.attach(this.session),this.inVirtualSelectionMode=!1}},this.$getSelectedRows=function(e){return e=(e||this.getSelectionRange()).collapseRows(),{first:this.session.getRowFoldStart(e.start.row),last:this.session.getRowFoldEnd(e.end.row)}},this.onCompositionStart=function(e){this.renderer.showComposition(e)},this.onCompositionUpdate=function(e){this.renderer.setCompositionText(e)},this.onCompositionEnd=function(){this.renderer.hideComposition()},this.getFirstVisibleRow=function(){return this.renderer.getFirstVisibleRow()},this.getLastVisibleRow=function(){return this.renderer.getLastVisibleRow()},this.isRowVisible=function(e){return e>=this.getFirstVisibleRow()&&e<=this.getLastVisibleRow()},this.isRowFullyVisible=function(e){return e>=this.renderer.getFirstFullyVisibleRow()&&e<=this.renderer.getLastFullyVisibleRow()},this.$getVisibleRowCount=function(){return this.renderer.getScrollBottomRow()-this.renderer.getScrollTopRow()+1},this.$moveByPage=function(e,t){var i=this.renderer,n=this.renderer.layerConfig,s=e*Math.floor(n.height/n.lineHeight),e=(!0===t?this.selection.$moveSelection(function(){this.moveCursorBy(s,0)}):!1===t&&(this.selection.moveCursorBy(s,0),this.selection.clearSelection()),i.scrollTop);i.scrollBy(0,s*n.lineHeight),null!=t&&i.scrollCursorIntoView(null,.5),i.animateScrolling(e)},this.selectPageDown=function(){this.$moveByPage(1,!0)},this.selectPageUp=function(){this.$moveByPage(-1,!0)},this.gotoPageDown=function(){this.$moveByPage(1,!1)},this.gotoPageUp=function(){this.$moveByPage(-1,!1)},this.scrollPageDown=function(){this.$moveByPage(1)},this.scrollPageUp=function(){this.$moveByPage(-1)},this.scrollToRow=function(e){this.renderer.scrollToRow(e)},this.scrollToLine=function(e,t,i,n){this.renderer.scrollToLine(e,t,i,n)},this.centerSelection=function(){var e=this.getSelectionRange(),e={row:Math.floor(e.start.row+(e.end.row-e.start.row)/2),column:Math.floor(e.start.column+(e.end.column-e.start.column)/2)};this.renderer.alignCursor(e,.5)},this.getCursorPosition=function(){return this.selection.getCursor()},this.getCursorPositionScreen=function(){return this.session.documentToScreenPosition(this.getCursorPosition())},this.getSelectionRange=function(){return this.selection.getRange()},this.selectAll=function(){this.selection.selectAll()},this.clearSelection=function(){this.selection.clearSelection()},this.moveCursorTo=function(e,t){this.selection.moveCursorTo(e,t)},this.moveCursorToPosition=function(e){this.selection.moveCursorToPosition(e)},this.jumpToMatching=function(e,t){var i=this.getCursorPosition(),n=new $(this.session,i.row,i.column),s=n.getCurrentToken(),o=s||n.stepForward();if(o){var r,a,l,h=!1,c={},u=i.column-o.start,d={")":"(","(":"(","]":"[","[":"[","{":"{","}":"{"};do{if(o.value.match(/[{}()\[\]]/g)){for(;uwindow.innerHeight)&&null)&&(r.style.top=i+"px",r.style.left=e.left+"px",r.style.height=t.lineHeight+"px",r.scrollIntoView(o)),o=n=null)}),this.setAutoScrollEditorIntoView=function(e){e||(delete this.setAutoScrollEditorIntoView,this.off("changeSelection",t),this.renderer.off("afterRender",a),this.renderer.off("beforeRender",i))})},this.$resetCursorStyle=function(){var e=this.$cursorStyle||"ace",t=this.renderer.$cursorLayer;t&&(t.setSmoothBlinking(/smooth/.test(e)),t.isBlinking=!this.$readOnly&&"wide"!=e,n.setCssClass(t.element,"ace_slim-cursors",/slim/.test(e)))},this.prompt=function(t,i,n){var s=this;v.loadModule("./ext/prompt",function(e){e.prompt(s,t,i,n)})}}.call(s.prototype),v.defineOptions(s.prototype,"editor",{selectionStyle:{set:function(e){this.onSelectionChange(),this._signal("changeSelectionStyle",{data:e})},initialValue:"line"},highlightActiveLine:{set:function(){this.$updateHighlightActiveLine()},initialValue:!0},highlightSelectedWord:{set:function(e){this.$onSelectionChange()},initialValue:!0},readOnly:{set:function(e){this.textInput.setReadOnly(e),this.$resetCursorStyle()},initialValue:!1},copyWithEmptySelection:{set:function(e){this.textInput.setCopyWithEmptySelection(e)},initialValue:!1},cursorStyle:{set:function(e){this.$resetCursorStyle()},values:["ace","slim","smooth","wide"],initialValue:"ace"},mergeUndoDeltas:{values:[!1,!0,"always"],initialValue:!0},behavioursEnabled:{initialValue:!0},wrapBehavioursEnabled:{initialValue:!0},enableAutoIndent:{initialValue:!0},autoScrollEditorIntoView:{set:function(e){this.setAutoScrollEditorIntoView(e)}},keyboardHandler:{set:function(e){this.setKeyboardHandler(e)},get:function(){return this.$keybindingId},handlesSet:!0},value:{set:function(e){this.session.setValue(e)},get:function(){return this.getValue()},handlesSet:!0,hidden:!0},session:{set:function(e){this.setSession(e)},get:function(){return this.session},handlesSet:!0,hidden:!0},showLineNumbers:{set:function(e){this.renderer.$gutterLayer.setShowLineNumbers(e),this.renderer.$loop.schedule(this.renderer.CHANGE_GUTTER),e&&this.$relativeLineNumbers?y.attach(this):y.detach(this)},initialValue:!0},relativeLineNumbers:{set:function(e){this.$showLineNumbers&&e?y.attach(this):y.detach(this)}},placeholder:{set:function(e){this.$updatePlaceholder||(this.$updatePlaceholder=function(){var e=this.session&&(this.renderer.$composition||this.getValue());e&&this.renderer.placeholderNode?(this.renderer.off("afterRender",this.$updatePlaceholder),n.removeCssClass(this.container,"ace_hasPlaceholder"),this.renderer.placeholderNode.remove(),this.renderer.placeholderNode=null):e||this.renderer.placeholderNode?!e&&this.renderer.placeholderNode&&(this.renderer.placeholderNode.textContent=this.$placeholder||""):(this.renderer.on("afterRender",this.$updatePlaceholder),n.addCssClass(this.container,"ace_hasPlaceholder"),(e=n.createElement("div")).className="ace_placeholder",e.textContent=this.$placeholder||"",this.renderer.placeholderNode=e,this.renderer.content.appendChild(this.renderer.placeholderNode))}.bind(this),this.on("input",this.$updatePlaceholder)),this.$updatePlaceholder()}},hScrollBarAlwaysVisible:"renderer",vScrollBarAlwaysVisible:"renderer",highlightGutterLine:"renderer",animatedScroll:"renderer",showInvisibles:"renderer",showPrintMargin:"renderer",printMarginColumn:"renderer",printMargin:"renderer",fadeFoldWidgets:"renderer",showFoldWidgets:"renderer",displayIndentGuides:"renderer",showGutter:"renderer",fontSize:"renderer",fontFamily:"renderer",maxLines:"renderer",minLines:"renderer",scrollPastEnd:"renderer",fixedWidthGutter:"renderer",theme:"renderer",hasCssTransforms:"renderer",maxPixelHeight:"renderer",useTextareaForIME:"renderer",scrollSpeed:"$mouseHandler",dragDelay:"$mouseHandler",dragEnabled:"$mouseHandler",focusTimeout:"$mouseHandler",tooltipFollowsMouse:"$mouseHandler",firstLineNumber:"session",overwrite:"session",newLineMode:"session",useWorker:"session",useSoftTabs:"session",navigateWithinSoftTabs:"session",tabSize:"session",wrap:"session",indentedSoftWrap:"session",foldStyle:"session",mode:"session"}),{getText:function(e,t){return(Math.abs(e.selection.lead.row-t)||t+1+(t<9?"·":""))+""},getWidth:function(e,t,i){return Math.max(t.toString().length,(i.lastRow+1).toString().length,2)*i.characterWidth},update:function(e,t){t.renderer.$loop.schedule(t.renderer.CHANGE_GUTTER)},attach:function(e){e.renderer.$gutterLayer.$renderer=this,e.on("changeSelection",this.update),this.update(null,e)},detach:function(e){e.renderer.$gutterLayer.$renderer==this&&(e.renderer.$gutterLayer.$renderer=null),e.off("changeSelection",this.update),this.update(null,e)}});t.Editor=s}),ace.define("ace/undomanager",["require","exports","module","ace/range"],function(e,t,i){"use strict";function s(e,t){for(var i=t;i--;){var n=e[i];if(n&&!n[0].ignore){for(;i"+e.end.row+":"+e.end.column}function r(e,t){var i="insert"==e.action,n="insert"==t.action;if(i&&n)if(0<=f(t.start,e.end))l(t,e,-1);else{if(!(f(t.start,e.start)<=0))return;l(e,t,1)}else if(i&&!n)if(0<=f(t.start,e.end))l(t,e,-1);else{if(!(f(t.end,e.start)<=0))return;l(e,t,-1)}else if(!i&&n)if(0<=f(t.start,e.start))l(t,e,1);else{if(!(f(t.start,e.start)<=0))return;l(e,t,1)}else if(!i&&!n)if(0<=f(t.start,e.start))l(t,e,1);else{if(!(f(t.end,e.start)<=0))return;l(e,t,-1)}return 1}function l(e,t,i){h(e.start,t.start,t.end,i),h(e.end,t.start,t.end,i)}function h(e,t,i,n){e.row==(1==n?t:i).row&&(e.column+=n*(i.column-t.column)),e.row+=n*(i.row-t.row)}function c(e,t){var i=e.lines,n=e.end,s=(e.end=a(t),e.end.row-e.start.row),o=i.splice(s,i.length),s=s?t.column:t.column-e.start.column;return i.push(o[0].substring(0,s)),o[0]=o[0].substr(s),{start:a(t),end:n,lines:o,action:e.action}}function u(e,t){var i;t={start:a((i=t).start),end:a(i.end),action:i.action,lines:i.lines.slice()};for(var n=e.length;n--;){for(var s=e[n],o=0;oa+1;)this.$lines.pop();break}(r=this.$lines.get(++a))?r.row=l:(r=this.$lines.createCell(l,e,this.session,h),this.$lines.push(r)),this.$renderCell(r,e,s,l),l++}this._signal("afterRender"),this.$updateGutterWidth(e)},this.$updateGutterWidth=function(e){var t=this.session,i=t.gutterRenderer||this.$renderer,n=t.$firstLineNumber,s=this.$lines.last()?this.$lines.last().text:"",n=((this.$fixedWidth||t.$useWrapMode)&&(s=t.getLength()+n-1),i?i.getWidth(t,s,e):s.toString().length*e.characterWidth),i=this.$padding||this.$computePadding();(n+=i.left+i.right)===this.gutterWidth||isNaN(n)||(this.gutterWidth=n,this.element.parentNode.style.width=this.element.style.width=Math.ceil(this.gutterWidth)+"px",this._signal("changeGutterWidth",n))},this.$updateCursorRow=function(){var e;this.$highlightGutterLine&&(e=this.session.selection.getCursor(),this.$cursorRow!==e.row)&&(this.$cursorRow=e.row)},this.updateLineHighlight=function(){if(this.$highlightGutterLine){var e=this.session.selection.cursor.row;if(this.$cursorRow=e,!this.$cursorCell||this.$cursorCell.row!=e){this.$cursorCell&&(this.$cursorCell.element.className=this.$cursorCell.element.className.replace("ace_gutter-active-line ",""));var t=this.$lines.cells;this.$cursorCell=null;for(var i=0;i=this.$cursorRow){if(n.row>this.$cursorRow){var s=this.session.getFoldLine(this.$cursorRow);if(!(0i.right-t.right?"foldWidgets":void 0}}).call(n.prototype),t.Gutter=n}),ace.define("ace/layer/marker",["require","exports","module","ace/range","ace/lib/dom"],function(e,t,i){"use strict";function n(e){this.element=s.createElement("div"),this.element.className="ace_layer ace_marker-layer",e.appendChild(this.element)}var g=e("../range").Range,s=e("../lib/dom");(function(){this.$padding=0,this.setPadding=function(e){this.$padding=e},this.setSession=function(e){this.session=e},this.setMarkers=function(e){this.markers=e},this.elt=function(e,t){var i=-1!=this.i&&this.element.childNodes[this.i];i?this.i++:(i=document.createElement("div"),this.element.appendChild(i),this.i=-1),i.style.cssText=t,i.className=e},this.update=function(e){if(e){var t,i;for(i in this.config=e,this.i=0,this.markers){var n,s,o,r=this.markers[i];r.range?(o=r.range.clipRows(e.firstRow,e.lastRow)).isEmpty()||(o=o.toScreenRange(this.session),r.renderer?(n=this.$getTop(o.start.row,e),s=this.$padding+o.start.column*e.characterWidth,r.renderer(t,o,s,n,e)):"fullLine"==r.type?this.drawFullLineMarker(t,o,r.clazz,e):"screenLine"==r.type?this.drawScreenLineMarker(t,o,r.clazz,e):o.isMultiLine()?"text"==r.type?this.drawTextMarker(t,o,r.clazz,e):this.drawMultiLineMarker(t,o,r.clazz,e):this.drawSingleLineMarker(t,o,r.clazz+" ace_start ace_br15",e)):r.update(t,this,this.session,e)}if(-1!=this.i)for(;this.ie.lastRow)for(s=this.session.getFoldedRowCount(e.lastRow+1,t.lastRow);0t.lastRow&&this.$lines.push(this.$renderLinesFragment(e,t.lastRow+1,e.lastRow))},this.$renderLinesFragment=function(e,t,i){for(var n=[],s=t,o=this.session.getNextFoldLine(s),r=o?o.start.row:1/0;r=o;)r=this.$renderToken(a,r,h,c.substring(0,o-n)),c=c.substring(o-n),n=o,a=this.$createLineElement(),e.appendChild(a),a.appendChild(this.dom.createTextNode(w.stringRepeat(" ",i.indent),this.element)),r=0,o=i[++s]||Number.MAX_VALUE;0!=c.length&&(n+=c.length,r=this.$renderToken(a,r,h,c))}}i[i.length-1]>this.MAX_LINE_LENGTH&&this.$renderOverflowMessage(a,r,null,"",!0)},this.$renderSimpleLine=function(e,t){var i=0,n=t[0],s=n.value;(s=this.displayIndentGuides?this.renderIndentGuide(e,s):s)&&(i=this.$renderToken(e,i,n,s));for(var o=1;othis.MAX_LINE_LENGTH)return this.$renderOverflowMessage(e,i,n,s);i=this.$renderToken(e,i,n,s)}},this.$renderOverflowMessage=function(e,t,i,n,s){i&&this.$renderToken(e,t,i,n.slice(0,this.MAX_LINE_LENGTH-t));i=this.dom.createElement("span");i.className="ace_inline_button ace_keyword ace_toggle_wrap",i.textContent=s?"":"",e.appendChild(i)},this.$renderLine=function(e,t,i){var n,s,o=e;(n=(i=i||0==i?i:this.session.getFoldLine(t))?this.$getFoldLineTokens(t,i):this.session.getTokens(t)).length?(s=this.session.getRowSplitData(t))&&s.length?(this.$renderWrappedLine(e,n,s),o=e.lastChild):(o=e,this.$useLineGroups()&&(o=this.$createLineElement(),e.appendChild(o)),this.$renderSimpleLine(o,n)):this.$useLineGroups()&&(o=this.$createLineElement(),e.appendChild(o)),this.showEOL&&o&&(i&&(t=i.end.row),(s=this.dom.createElement("span")).className="ace_invisible ace_invisible_eol",s.textContent=t==this.session.getLength()-1?this.EOF_CHAR:this.EOL_CHAR,o.appendChild(s))},this.$getFoldLineTokens=function(e,t){var u=this.session,d=[],g=u.getTokens(e);return t.walk(function(e,t,i,n,s){if(null!=e)d.push({type:"fold",value:e});else if((g=s?u.getTokens(t):g).length){for(var o,r=g,a=n,l=i,h=0,c=0;c+r[h].value.lengthl-a&&(o=o.substring(0,l-a)),d.push({type:r[h].type,value:o}),c=a+o.length,h+=1);cl?d.push({type:r[h].type,value:o.substring(0,l-c)}):d.push(r[h]),c+=o.length,h+=1}},t.end.row,this.session.getLine(t.end.row).length),d},this.$useLineGroups=function(){return this.session.getUseWrapMode()},this.destroy=function(){}}).call(n.prototype),t.Text=n}),ace.define("ace/layer/cursor",["require","exports","module","ace/lib/dom"],function(e,t,i){"use strict";function n(e){this.element=h.createElement("div"),this.element.className="ace_layer ace_cursor-layer",e.appendChild(this.element),this.isVisible=!1,this.isBlinking=!0,this.blinkInterval=1e3,this.smoothBlinking=!1,this.cursors=[],this.cursor=this.addCursor(),h.addCssClass(this.element,"ace_hidden-cursors"),this.$updateCursors=this.$updateOpacity.bind(this)}var h=e("../lib/dom");(function(){this.$updateOpacity=function(e){for(var t=this.cursors,i=t.length;i--;)h.setStyle(t[i].style,"opacity",e?"":"0")},this.$startCssAnimation=function(){for(var e=this.cursors,t=e.length;t--;)e[t].style.animationDuration=this.blinkInterval+"ms";setTimeout(function(){h.addCssClass(this.element,"ace_animate-blinking")}.bind(this))},this.$stopCssAnimation=function(){h.removeCssClass(this.element,"ace_animate-blinking")},this.$padding=0,this.setPadding=function(e){this.$padding=e},this.setSession=function(e){this.session=e},this.setBlinking=function(e){e!=this.isBlinking&&(this.isBlinking=e,this.restartTimer())},this.setBlinkInterval=function(e){e!=this.blinkInterval&&(this.blinkInterval=e,this.restartTimer())},this.setSmoothBlinking=function(e){e!=this.smoothBlinking&&(this.smoothBlinking=e,h.setCssClass(this.element,"ace_smooth-blinking",e),this.$updateCursors(!0),this.restartTimer())},this.addCursor=function(){var e=h.createElement("div");return e.className="ace_cursor",this.element.appendChild(e),this.cursors.push(e),e},this.removeCursor=function(){var e;if(1e.height+e.offset||a.top<0)&&1n;)this.removeCursor();var l=this.session.getOverwrite();this.$setOverwrite(l),this.$pixelPos=a,this.restartTimer()},this.drawCursor=null,this.$setOverwrite=function(e){e!=this.overwrite&&((this.overwrite=e)?h.addCssClass(this.element,"ace_overwrite-cursors"):h.removeCssClass(this.element,"ace_overwrite-cursors"))},this.destroy=function(){clearInterval(this.intervalId),clearTimeout(this.timeoutId)}}).call(n.prototype),t.Cursor=n}),ace.define("ace/scrollbar",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/event","ace/lib/event_emitter"],function(e,t,i){"use strict";function n(e){this.element=a.createElement("div"),this.element.className="ace_scrollbar ace_scrollbar"+this.classSuffix,this.inner=a.createElement("div"),this.inner.className="ace_scrollbar-inner",this.inner.textContent=" ",this.element.appendChild(this.inner),e.appendChild(this.element),this.setVisible(!1),this.skipEvent=!1,l.addListener(this.element,"scroll",this.onScroll.bind(this)),l.addListener(this.element,"mousedown",l.preventDefault)}function s(e,t){n.call(this,e),this.scrollTop=0,this.scrollHeight=0,t.$scrollbarWidth=this.width=a.scrollbarWidth(e.ownerDocument),this.inner.style.width=this.element.style.width=(this.width||15)+5+"px",this.$minWidth=0}function o(e,t){n.call(this,e),this.scrollLeft=0,this.height=t.$scrollbarWidth,this.inner.style.height=this.element.style.height=(this.height||15)+5+"px"}var r=e("./lib/oop"),a=e("./lib/dom"),l=e("./lib/event"),h=e("./lib/event_emitter").EventEmitter;!function(){r.implement(this,h),this.setVisible=function(e){this.element.style.display=e?"":"none",this.isVisible=e,this.coeff=1}}.call(n.prototype),r.inherits(s,n),function(){this.classSuffix="-v",this.onScroll=function(){var e;this.skipEvent||(this.scrollTop=this.element.scrollTop,1!=this.coeff&&(e=this.element.clientHeight/this.scrollHeight,this.scrollTop=this.scrollTop*(1-e)/(this.coeff-e)),this._emit("scroll",{data:this.scrollTop})),this.skipEvent=!1},this.getWidth=function(){return Math.max(this.isVisible?this.width:0,this.$minWidth||0)},this.setHeight=function(e){this.element.style.height=e+"px"},this.setInnerHeight=this.setScrollHeight=function(e){32768<(this.scrollHeight=e)?(this.coeff=32768/e,e=32768):1!=this.coeff&&(this.coeff=1),this.inner.style.height=e+"px"},this.setScrollTop=function(e){this.scrollTop!=e&&(this.skipEvent=!0,this.scrollTop=e,this.element.scrollTop=e*this.coeff)}}.call(s.prototype);r.inherits(o,n),function(){this.classSuffix="-h",this.onScroll=function(){this.skipEvent||(this.scrollLeft=this.element.scrollLeft,this._emit("scroll",{data:this.scrollLeft})),this.skipEvent=!1},this.getHeight=function(){return this.isVisible?this.height:0},this.setWidth=function(e){this.element.style.width=e+"px"},this.setInnerWidth=function(e){this.inner.style.width=e+"px"},this.setScrollWidth=function(e){this.inner.style.width=e+"px"},this.setScrollLeft=function(e){this.scrollLeft!=e&&(this.skipEvent=!0,this.scrollLeft=this.element.scrollLeft=e)}}.call(o.prototype),t.ScrollBar=s,t.ScrollBarV=s,t.ScrollBarH=o,t.VScrollBar=s,t.HScrollBar=o}),ace.define("ace/renderloop",["require","exports","module","ace/lib/event"],function(e,t,i){"use strict";function n(e,t){this.onRender=e,this.pending=!1,this.changes=0,this.$recursionLimit=2,this.window=t||window;var i=this;this._flush=function(e){i.pending=!1;var t=i.changes;t&&(s.blockIdle(100),i.changes=0,i.onRender(t)),i.changes?i.$recursionLimit--<0||i.schedule():i.$recursionLimit=2}}var s=e("./lib/event");(function(){this.schedule=function(e){this.changes=this.changes|e,this.changes&&!this.pending&&(s.nextFrame(this._flush),this.pending=!0)},this.clear=function(e){var t=this.changes;return this.changes=0,t}}).call(n.prototype),t.RenderLoop=n}),ace.define("ace/layer/font_metrics",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/lib/event","ace/lib/useragent","ace/lib/event_emitter"],function(e,t,i){var n=e("../lib/oop"),s=e("../lib/dom"),o=e("../lib/lang"),r=e("../lib/event"),a=e("../lib/useragent"),l=e("../lib/event_emitter").EventEmitter,h="function"==typeof ResizeObserver,e=t.FontMetrics=function(e){this.el=s.createElement("div"),this.$setMeasureNodeStyles(this.el.style,!0),this.$main=s.createElement("div"),this.$setMeasureNodeStyles(this.$main.style),this.$measureNode=s.createElement("div"),this.$setMeasureNodeStyles(this.$measureNode.style),this.el.appendChild(this.$main),this.el.appendChild(this.$measureNode),e.appendChild(this.el),this.$measureNode.textContent=o.stringRepeat("X",256),this.$characterSize={width:0,height:0},h?this.$addObserver():this.checkForSizeChanges()};!function(){n.implement(this,l),this.$characterSize={width:0,height:0},this.$setMeasureNodeStyles=function(e,t){e.width=e.height="auto",e.left=e.top="0px",e.visibility="hidden",e.position="absolute",e.whiteSpace="pre",a.isIE<8?e["font-family"]="inherit":e.font="inherit",e.overflow=t?"hidden":"visible"},this.checkForSizeChanges=function(e){var t;!(e=void 0===e?this.$measureSizes():e)||this.$characterSize.width===e.width&&this.$characterSize.height===e.height||(this.$measureNode.style.fontWeight="bold",t=this.$measureSizes(),this.$measureNode.style.fontWeight="",this.$characterSize=e,this.charSizes=Object.create(null),this.allowBoldFonts=t&&t.width===e.width&&t.height===e.height,this._emit("changeCharacterSize",{data:e}))},this.$addObserver=function(){var t=this;this.$observer=new window.ResizeObserver(function(e){t.checkForSizeChanges()}),this.$observer.observe(this.$measureNode)},this.$pollSizeChanges=function(){var t;return this.$pollSizeChangesTimer||this.$observer?this.$pollSizeChangesTimer:(t=this).$pollSizeChangesTimer=r.onIdle(function e(){t.checkForSizeChanges(),r.onIdle(e,500)},500)},this.setPolling=function(e){e?this.$pollSizeChanges():this.$pollSizeChangesTimer&&(clearInterval(this.$pollSizeChangesTimer),this.$pollSizeChangesTimer=0)},this.$measureSizes=function(e){e={height:(e||this.$measureNode).clientHeight,width:(e||this.$measureNode).clientWidth/256};return 0===e.width||0===e.height?null:e},this.$measureCharWidth=function(e){return this.$main.textContent=o.stringRepeat(e,256),this.$main.getBoundingClientRect().width/256},this.getCharacterWidth=function(e){var t=this.charSizes[e];return t=void 0===t?this.charSizes[e]=this.$measureCharWidth(e)/this.$characterSize.width:t},this.destroy=function(){clearInterval(this.$pollSizeChangesTimer),this.$observer&&this.$observer.disconnect(),this.el&&this.el.parentNode&&this.el.parentNode.removeChild(this.el)},this.$getZoom=function e(t){return t&&t.parentElement?(window.getComputedStyle(t).zoom||1)*e(t.parentElement):1},this.$initTransformMeasureNodes=function(){function e(e,t){return["div",{style:"position: absolute;top:"+e+"px;left:"+t+"px;"}]}this.els=s.buildDom([e(0,0),e(200,0),e(0,200),e(200,200)],this.el)},this.transformCoordinates=function(e,t){function i(e,t,i){var n=e[1]*t[0]-e[0]*t[1];return[(-t[1]*i[0]+t[0]*i[1])/n,(+e[1]*i[0]-e[0]*i[1])/n]}function n(e,t){return[e[0]-t[0],e[1]-t[1]]}function s(e,t){return[e[0]+t[0],e[1]+t[1]]}function o(e,t){return[e*t[0],e*t[1]]}function r(e){e=e.getBoundingClientRect();return[e.left,e.top]}e=e&&o(1/this.$getZoom(this.el),e),this.els||this.$initTransformMeasureNodes();var a,l=r(this.els[0]),h=r(this.els[1]),c=r(this.els[2]),u=r(this.els[3]),u=i(n(u,h),n(u,c),n(s(h,c),s(u,l))),h=o(1+u[0],n(h,l)),c=o(1+u[1],n(c,l));return t?(a=u[0]*t[0]/200+u[1]*t[1]/200+1,t=s(o(t[0],h),o(t[1],c)),s(o(1/a/200,t),l)):(a=n(e,l),t=i(n(h,o(u[0],a)),n(c,o(u[1],a)),a),o(200,t))}}.call(e.prototype)}),ace.define("ace/virtual_renderer",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/config","ace/layer/gutter","ace/layer/marker","ace/layer/text","ace/layer/cursor","ace/scrollbar","ace/scrollbar","ace/renderloop","ace/layer/font_metrics","ace/lib/event_emitter","ace/lib/useragent"],function(e,t,i){"use strict";function n(e,t){var i=this,e=(this.container=e||a.createElement("div"),a.addCssClass(this.container,"ace_editor"),a.HI_DPI&&a.addCssClass(this.container,"ace_hidpi"),this.setTheme(t),this.$gutter=a.createElement("div"),this.$gutter.className="ace_gutter",this.container.appendChild(this.$gutter),this.$gutter.setAttribute("aria-hidden",!0),this.scroller=a.createElement("div"),this.scroller.className="ace_scroller",this.container.appendChild(this.scroller),this.content=a.createElement("div"),this.content.className="ace_content",this.scroller.appendChild(this.content),this.$gutterLayer=new r(this.$gutter),this.$gutterLayer.on("changeGutterWidth",this.onGutterResize.bind(this)),this.$markerBack=new l(this.content),this.$textLayer=new h(this.content));this.canvas=e.element,this.$markerFront=new l(this.content),this.$cursorLayer=new c(this.content),this.$horizScroll=!1,this.$vScroll=!1,this.scrollBar=this.scrollBarV=new d(this.container,this),this.scrollBarH=new u(this.container,this),this.scrollBarV.on("scroll",function(e){i.$scrollAnimation||i.session.setScrollTop(e.data-i.scrollMargin.top)}),this.scrollBarH.on("scroll",function(e){i.$scrollAnimation||i.session.setScrollLeft(e.data-i.scrollMargin.left)}),this.scrollTop=0,this.scrollLeft=0,this.cursorPos={row:0,column:0},this.$fontMetrics=new f(this.container),this.$textLayer.$setFontMetrics(this.$fontMetrics),this.$textLayer.on("changeCharacterSize",function(e){i.updateCharacterSize(),i.onResize(!0,i.gutterWidth,i.$size.width,i.$size.height),i._signal("changeCharacterSize",e)}),this.$size={width:0,height:0,scrollerHeight:0,scrollerWidth:0,$dirty:!0},this.layerConfig={width:1,padding:0,firstRow:0,firstRowScreen:0,lastRow:0,lineHeight:0,characterWidth:0,minHeight:1,maxHeight:1,offset:0,height:1,gutterOffset:1},this.scrollMargin={left:0,right:0,top:0,bottom:0,v:0,h:0},this.margin={left:0,right:0,top:0,bottom:0,v:0,h:0},this.$keepTextAreaAtCursor=!w.isIOS,this.$loop=new g(this.$renderChanges.bind(this),this.container.ownerDocument.defaultView),this.$loop.schedule(this.CHANGE_FULL),this.updateCharacterSize(),this.setPadding(4),o.resetOptions(this),o._signal("renderer",this)}var s=e("./lib/oop"),a=e("./lib/dom"),o=e("./config"),r=e("./layer/gutter").Gutter,l=e("./layer/marker").Marker,h=e("./layer/text").Text,c=e("./layer/cursor").Cursor,u=e("./scrollbar").HScrollBar,d=e("./scrollbar").VScrollBar,g=e("./renderloop").RenderLoop,f=e("./layer/font_metrics").FontMetrics,m=e("./lib/event_emitter").EventEmitter,p='.ace_br1 {border-top-left-radius : 3px;}.ace_br2 {border-top-right-radius : 3px;}.ace_br3 {border-top-left-radius : 3px; border-top-right-radius: 3px;}.ace_br4 {border-bottom-right-radius: 3px;}.ace_br5 {border-top-left-radius : 3px; border-bottom-right-radius: 3px;}.ace_br6 {border-top-right-radius : 3px; border-bottom-right-radius: 3px;}.ace_br7 {border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px;}.ace_br8 {border-bottom-left-radius : 3px;}.ace_br9 {border-top-left-radius : 3px; border-bottom-left-radius: 3px;}.ace_br10{border-top-right-radius : 3px; border-bottom-left-radius: 3px;}.ace_br11{border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-left-radius: 3px;}.ace_br12{border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}.ace_br13{border-top-left-radius : 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}.ace_br14{border-top-right-radius : 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}.ace_br15{border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}.ace_editor {position: relative;overflow: hidden;padding: 0;font: 12px/normal \'Monaco\', \'Menlo\', \'Ubuntu Mono\', \'Consolas\', \'source-code-pro\', monospace;direction: ltr;text-align: left;-webkit-tap-highlight-color: rgba(0, 0, 0, 0);}.ace_scroller {position: absolute;overflow: hidden;top: 0;bottom: 0;background-color: inherit;-ms-user-select: none;-moz-user-select: none;-webkit-user-select: none;user-select: none;cursor: text;}.ace_content {position: absolute;box-sizing: border-box;min-width: 100%;contain: style size layout;font-variant-ligatures: no-common-ligatures;}.ace_dragging .ace_scroller:before{position: absolute;top: 0;left: 0;right: 0;bottom: 0;content: \'\';background: rgba(250, 250, 250, 0.01);z-index: 1000;}.ace_dragging.ace_dark .ace_scroller:before{background: rgba(0, 0, 0, 0.01);}.ace_selecting, .ace_selecting * {cursor: text !important;}.ace_gutter {position: absolute;overflow : hidden;width: auto;top: 0;bottom: 0;left: 0;cursor: default;z-index: 4;-ms-user-select: none;-moz-user-select: none;-webkit-user-select: none;user-select: none;contain: style size layout;}.ace_gutter-active-line {position: absolute;left: 0;right: 0;}.ace_scroller.ace_scroll-left {box-shadow: 17px 0 16px -16px rgba(0, 0, 0, 0.4) inset;}.ace_gutter-cell {position: absolute;top: 0;left: 0;right: 0;padding-left: 19px;padding-right: 6px;background-repeat: no-repeat;}.ace_gutter-cell.ace_error {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAABOFBMVEX/////////QRswFAb/Ui4wFAYwFAYwFAaWGAfDRymzOSH/PxswFAb/SiUwFAYwFAbUPRvjQiDllog5HhHdRybsTi3/Tyv9Tir+Syj/UC3////XurebMBIwFAb/RSHbPx/gUzfdwL3kzMivKBAwFAbbvbnhPx66NhowFAYwFAaZJg8wFAaxKBDZurf/RB6mMxb/SCMwFAYwFAbxQB3+RB4wFAb/Qhy4Oh+4QifbNRcwFAYwFAYwFAb/QRzdNhgwFAYwFAbav7v/Uy7oaE68MBK5LxLewr/r2NXewLswFAaxJw4wFAbkPRy2PyYwFAaxKhLm1tMwFAazPiQwFAaUGAb/QBrfOx3bvrv/VC/maE4wFAbRPBq6MRO8Qynew8Dp2tjfwb0wFAbx6eju5+by6uns4uH9/f36+vr/GkHjAAAAYnRSTlMAGt+64rnWu/bo8eAA4InH3+DwoN7j4eLi4xP99Nfg4+b+/u9B/eDs1MD1mO7+4PHg2MXa347g7vDizMLN4eG+Pv7i5evs/v79yu7S3/DV7/498Yv24eH+4ufQ3Ozu/v7+y13sRqwAAADLSURBVHjaZc/XDsFgGIBhtDrshlitmk2IrbHFqL2pvXf/+78DPokj7+Fz9qpU/9UXJIlhmPaTaQ6QPaz0mm+5gwkgovcV6GZzd5JtCQwgsxoHOvJO15kleRLAnMgHFIESUEPmawB9ngmelTtipwwfASilxOLyiV5UVUyVAfbG0cCPHig+GBkzAENHS0AstVF6bacZIOzgLmxsHbt2OecNgJC83JERmePUYq8ARGkJx6XtFsdddBQgZE2nPR6CICZhawjA4Fb/chv+399kfR+MMMDGOQAAAABJRU5ErkJggg==");background-repeat: no-repeat;background-position: 2px center;}.ace_gutter-cell.ace_warning {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAAmVBMVEX///8AAAD///8AAAAAAABPSzb/5sAAAAB/blH/73z/ulkAAAAAAAD85pkAAAAAAAACAgP/vGz/rkDerGbGrV7/pkQICAf////e0IsAAAD/oED/qTvhrnUAAAD/yHD/njcAAADuv2r/nz//oTj/p064oGf/zHAAAAA9Nir/tFIAAAD/tlTiuWf/tkIAAACynXEAAAAAAAAtIRW7zBpBAAAAM3RSTlMAABR1m7RXO8Ln31Z36zT+neXe5OzooRDfn+TZ4p3h2hTf4t3k3ucyrN1K5+Xaks52Sfs9CXgrAAAAjklEQVR42o3PbQ+CIBQFYEwboPhSYgoYunIqqLn6/z8uYdH8Vmdnu9vz4WwXgN/xTPRD2+sgOcZjsge/whXZgUaYYvT8QnuJaUrjrHUQreGczuEafQCO/SJTufTbroWsPgsllVhq3wJEk2jUSzX3CUEDJC84707djRc5MTAQxoLgupWRwW6UB5fS++NV8AbOZgnsC7BpEAAAAABJRU5ErkJggg==");background-position: 2px center;}.ace_gutter-cell.ace_info {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAAAAAA6mKC9AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAAJ0Uk5TAAB2k804AAAAPklEQVQY02NgIB68QuO3tiLznjAwpKTgNyDbMegwisCHZUETUZV0ZqOquBpXj2rtnpSJT1AEnnRmL2OgGgAAIKkRQap2htgAAAAASUVORK5CYII=");background-position: 2px center;}.ace_dark .ace_gutter-cell.ace_info {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQBAMAAADt3eJSAAAAJFBMVEUAAAChoaGAgIAqKiq+vr6tra1ZWVmUlJSbm5s8PDxubm56enrdgzg3AAAAAXRSTlMAQObYZgAAAClJREFUeNpjYMAPdsMYHegyJZFQBlsUlMFVCWUYKkAZMxZAGdxlDMQBAG+TBP4B6RyJAAAAAElFTkSuQmCC");}.ace_scrollbar {contain: strict;position: absolute;right: 0;bottom: 0;z-index: 6;}.ace_scrollbar-inner {position: absolute;cursor: text;left: 0;top: 0;}.ace_scrollbar-v{overflow-x: hidden;overflow-y: scroll;top: 0;}.ace_scrollbar-h {overflow-x: scroll;overflow-y: hidden;left: 0;}.ace_print-margin {position: absolute;height: 100%;}.ace_text-input {position: absolute;z-index: 0;width: 0.5em;height: 1em;opacity: 0;background: transparent;-moz-appearance: none;appearance: none;border: none;resize: none;outline: none;overflow: hidden;font: inherit;padding: 0 1px;margin: 0 -1px;contain: strict;-ms-user-select: text;-moz-user-select: text;-webkit-user-select: text;user-select: text;white-space: pre!important;}.ace_text-input.ace_composition {background: transparent;color: inherit;z-index: 1000;opacity: 1;}.ace_composition_placeholder { color: transparent }.ace_composition_marker { border-bottom: 1px solid;position: absolute;border-radius: 0;margin-top: 1px;}[ace_nocontext=true] {transform: none!important;filter: none!important;clip-path: none!important;mask : none!important;contain: none!important;perspective: none!important;mix-blend-mode: initial!important;z-index: auto;}.ace_layer {z-index: 1;position: absolute;overflow: hidden;word-wrap: normal;white-space: pre;height: 100%;width: 100%;box-sizing: border-box;pointer-events: none;}.ace_gutter-layer {position: relative;width: auto;text-align: right;pointer-events: auto;height: 1000000px;contain: style size layout;}.ace_text-layer {font: inherit !important;position: absolute;height: 1000000px;width: 1000000px;contain: style size layout;}.ace_text-layer > .ace_line, .ace_text-layer > .ace_line_group {contain: style size layout;position: absolute;top: 0;left: 0;right: 0;}.ace_hidpi .ace_text-layer,.ace_hidpi .ace_gutter-layer,.ace_hidpi .ace_content,.ace_hidpi .ace_gutter {contain: strict;will-change: transform;}.ace_hidpi .ace_text-layer > .ace_line, .ace_hidpi .ace_text-layer > .ace_line_group {contain: strict;}.ace_cjk {display: inline-block;text-align: center;}.ace_cursor-layer {z-index: 4;}.ace_cursor {z-index: 4;position: absolute;box-sizing: border-box;border-left: 2px solid;transform: translatez(0);}.ace_multiselect .ace_cursor {border-left-width: 1px;}.ace_slim-cursors .ace_cursor {border-left-width: 1px;}.ace_overwrite-cursors .ace_cursor {border-left-width: 0;border-bottom: 1px solid;}.ace_hidden-cursors .ace_cursor {opacity: 0.2;}.ace_hasPlaceholder .ace_hidden-cursors .ace_cursor {opacity: 0;}.ace_smooth-blinking .ace_cursor {transition: opacity 0.18s;}.ace_animate-blinking .ace_cursor {animation-duration: 1000ms;animation-timing-function: step-end;animation-name: blink-ace-animate;animation-iteration-count: infinite;}.ace_animate-blinking.ace_smooth-blinking .ace_cursor {animation-duration: 1000ms;animation-timing-function: ease-in-out;animation-name: blink-ace-animate-smooth;}@keyframes blink-ace-animate {from, to { opacity: 1; }60% { opacity: 0; }}@keyframes blink-ace-animate-smooth {from, to { opacity: 1; }45% { opacity: 1; }60% { opacity: 0; }85% { opacity: 0; }}.ace_marker-layer .ace_step, .ace_marker-layer .ace_stack {position: absolute;z-index: 3;}.ace_marker-layer .ace_selection {position: absolute;z-index: 5;}.ace_marker-layer .ace_bracket {position: absolute;z-index: 6;}.ace_marker-layer .ace_error_bracket {position: absolute;border-bottom: 1px solid #DE5555;border-radius: 0;}.ace_marker-layer .ace_active-line {position: absolute;z-index: 2;}.ace_marker-layer .ace_selected-word {position: absolute;z-index: 4;box-sizing: border-box;}.ace_line .ace_fold {box-sizing: border-box;display: inline-block;height: 11px;margin-top: -2px;vertical-align: middle;background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII="),url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACJJREFUeNpi+P//fxgTAwPDBxDxD078RSX+YeEyDFMCIMAAI3INmXiwf2YAAAAASUVORK5CYII=");background-repeat: no-repeat, repeat-x;background-position: center center, top left;color: transparent;border: 1px solid black;border-radius: 2px;cursor: pointer;pointer-events: auto;}.ace_dark .ace_fold {}.ace_fold:hover{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII="),url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACBJREFUeNpi+P//fz4TAwPDZxDxD5X4i5fLMEwJgAADAEPVDbjNw87ZAAAAAElFTkSuQmCC");}.ace_tooltip {background-color: #FFF;background-image: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.1));border: 1px solid gray;border-radius: 1px;box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);color: black;max-width: 100%;padding: 3px 4px;position: fixed;z-index: 999999;box-sizing: border-box;cursor: default;white-space: pre;word-wrap: break-word;line-height: normal;font-style: normal;font-weight: normal;letter-spacing: normal;pointer-events: none;}.ace_folding-enabled > .ace_gutter-cell {padding-right: 13px;}.ace_fold-widget {box-sizing: border-box;margin: 0 -12px 0 1px;display: none;width: 11px;vertical-align: top;background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42mWKsQ0AMAzC8ixLlrzQjzmBiEjp0A6WwBCSPgKAXoLkqSot7nN3yMwR7pZ32NzpKkVoDBUxKAAAAABJRU5ErkJggg==");background-repeat: no-repeat;background-position: center;border-radius: 3px;border: 1px solid transparent;cursor: pointer;}.ace_folding-enabled .ace_fold-widget {display: inline-block; }.ace_fold-widget.ace_end {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42m3HwQkAMAhD0YzsRchFKI7sAikeWkrxwScEB0nh5e7KTPWimZki4tYfVbX+MNl4pyZXejUO1QAAAABJRU5ErkJggg==");}.ace_fold-widget.ace_closed {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAGCAYAAAAG5SQMAAAAOUlEQVR42jXKwQkAMAgDwKwqKD4EwQ26sSOkVWjgIIHAzPiCgaqiqnJHZnKICBERHN194O5b9vbLuAVRL+l0YWnZAAAAAElFTkSuQmCCXA==");}.ace_fold-widget:hover {border: 1px solid rgba(0, 0, 0, 0.3);background-color: rgba(255, 255, 255, 0.2);box-shadow: 0 1px 1px rgba(255, 255, 255, 0.7);}.ace_fold-widget:active {border: 1px solid rgba(0, 0, 0, 0.4);background-color: rgba(0, 0, 0, 0.05);box-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);}.ace_dark .ace_fold-widget {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHklEQVQIW2P4//8/AzoGEQ7oGCaLLAhWiSwB146BAQCSTPYocqT0AAAAAElFTkSuQmCC");}.ace_dark .ace_fold-widget.ace_end {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAH0lEQVQIW2P4//8/AxQ7wNjIAjDMgC4AxjCVKBirIAAF0kz2rlhxpAAAAABJRU5ErkJggg==");}.ace_dark .ace_fold-widget.ace_closed {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAFCAYAAACAcVaiAAAAHElEQVQIW2P4//+/AxAzgDADlOOAznHAKgPWAwARji8UIDTfQQAAAABJRU5ErkJggg==");}.ace_dark .ace_fold-widget:hover {box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);background-color: rgba(255, 255, 255, 0.1);}.ace_dark .ace_fold-widget:active {box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);}.ace_inline_button {border: 1px solid lightgray;display: inline-block;margin: -1px 8px;padding: 0 5px;pointer-events: auto;cursor: pointer;}.ace_inline_button:hover {border-color: gray;background: rgba(200,200,200,0.2);display: inline-block;pointer-events: auto;}.ace_fold-widget.ace_invalid {background-color: #FFB4B4;border-color: #DE5555;}.ace_fade-fold-widgets .ace_fold-widget {transition: opacity 0.4s ease 0.05s;opacity: 0;}.ace_fade-fold-widgets:hover .ace_fold-widget {transition: opacity 0.05s ease 0.05s;opacity:1;}.ace_underline {text-decoration: underline;}.ace_bold {font-weight: bold;}.ace_nobold .ace_bold {font-weight: normal;}.ace_italic {font-style: italic;}.ace_error-marker {background-color: rgba(255, 0, 0,0.2);position: absolute;z-index: 9;}.ace_highlight-marker {background-color: rgba(255, 255, 0,0.2);position: absolute;z-index: 8;}.ace_mobile-menu {position: absolute;line-height: 1.5;border-radius: 4px;-ms-user-select: none;-moz-user-select: none;-webkit-user-select: none;user-select: none;background: white;box-shadow: 1px 3px 2px grey;border: 1px solid #dcdcdc;color: black;}.ace_dark > .ace_mobile-menu {background: #333;color: #ccc;box-shadow: 1px 3px 2px grey;border: 1px solid #444;}.ace_mobile-button {padding: 2px;cursor: pointer;overflow: hidden;}.ace_mobile-button:hover {background-color: #eee;opacity:1;}.ace_mobile-button:active {background-color: #ddd;}.ace_placeholder {font-family: arial;transform: scale(0.9);transform-origin: left;white-space: pre;opacity: 0.7;margin: 0 10px;}',w=e("./lib/useragent"),v=w.isIE;a.importCssString(p,"ace_editor.css");(function(){this.CHANGE_CURSOR=1,this.CHANGE_MARKER=2,this.CHANGE_GUTTER=4,this.CHANGE_SCROLL=8,this.CHANGE_LINES=16,this.CHANGE_TEXT=32,this.CHANGE_SIZE=64,this.CHANGE_MARKER_BACK=128,this.CHANGE_MARKER_FRONT=256,this.CHANGE_FULL=512,this.CHANGE_H_SCROLL=1024,s.implement(this,m),this.updateCharacterSize=function(){this.$textLayer.allowBoldFonts!=this.$allowBoldFonts&&(this.$allowBoldFonts=this.$textLayer.allowBoldFonts,this.setStyle("ace_nobold",!this.$allowBoldFonts)),this.layerConfig.characterWidth=this.characterWidth=this.$textLayer.getCharacterWidth(),this.layerConfig.lineHeight=this.lineHeight=this.$textLayer.getLineHeight(),this.$updatePrintMargin(),a.setStyle(this.scroller.style,"line-height",this.lineHeight+"px")},this.setSession=function(e){this.session&&this.session.doc.off("changeNewLineMode",this.onChangeNewLineMode),(this.session=e)&&this.scrollMargin.top&&e.getScrollTop()<=0&&e.setScrollTop(-this.scrollMargin.top),this.$cursorLayer.setSession(e),this.$markerBack.setSession(e),this.$markerFront.setSession(e),this.$gutterLayer.setSession(e),this.$textLayer.setSession(e),e&&(this.$loop.schedule(this.CHANGE_FULL),this.session.$setFontMetrics(this.$fontMetrics),this.scrollBarH.scrollLeft=this.scrollBarV.scrollTop=null,this.onChangeNewLineMode=this.onChangeNewLineMode.bind(this),this.onChangeNewLineMode(),this.session.doc.on("changeNewLineMode",this.onChangeNewLineMode))},this.updateLines=function(e,t,i){if(void 0===t&&(t=1/0),this.$changedLines?(this.$changedLines.firstRow>e&&(this.$changedLines.firstRow=e),this.$changedLines.lastRowthis.layerConfig.lastRow||this.$loop.schedule(this.CHANGE_LINES)},this.onChangeNewLineMode=function(){this.$loop.schedule(this.CHANGE_TEXT),this.$textLayer.$updateEolChar(),this.session.$bidiHandler.setEolChar(this.$textLayer.EOL_CHAR)},this.onChangeTabSize=function(){this.$loop.schedule(this.CHANGE_TEXT|this.CHANGE_MARKER),this.$textLayer.onChangeTabSize()},this.updateText=function(){this.$loop.schedule(this.CHANGE_TEXT)},this.updateFull=function(e){e?this.$renderChanges(this.CHANGE_FULL,!0):this.$loop.schedule(this.CHANGE_FULL)},this.updateFontSize=function(){this.$textLayer.checkForSizeChanges()},this.$changes=0,this.$updateSizeAsync=function(){this.$loop.pending?this.$size.$dirty=!0:this.onResize()},this.onResize=function(e,t,i,n){if(!(2r.height-n?a.translate(this.textarea,0,0):(r=1,s=this.$size.height-n,o?o.useTextareaForIME?(o=this.textarea.value,r=this.characterWidth*this.session.$getStringScreenWidth(o)[0]):t+=this.lineHeight+2:t+=this.lineHeight,(i-=this.scrollLeft)>this.$size.scrollerWidth-r&&(i=this.$size.scrollerWidth-r),i+=this.gutterWidth+this.margin.left,a.setStyle(e,"height",n+"px"),a.setStyle(e,"width",r+"px"),a.translate(this.textarea,Math.min(i,this.$size.scrollerWidth-r),Math.min(t,s)))):a.translate(this.textarea,-100,0))},this.getFirstVisibleRow=function(){return this.layerConfig.firstRow},this.getFirstFullyVisibleRow=function(){return this.layerConfig.firstRow+(0===this.layerConfig.offset?0:1)},this.getLastFullyVisibleRow=function(){var e=this.layerConfig,t=e.lastRow;return this.session.documentToScreenRow(t,0)*e.lineHeight-this.session.getScrollTop()>e.height-e.lineHeight?t-1:t},this.getLastVisibleRow=function(){return this.layerConfig.lastRow},this.$padding=null,this.setPadding=function(e){this.$padding=e,this.$textLayer.setPadding(e),this.$cursorLayer.setPadding(e),this.$markerFront.setPadding(e),this.$markerBack.setPadding(e),this.$loop.schedule(this.CHANGE_FULL),this.$updatePrintMargin()},this.setScrollMargin=function(e,t,i,n){var s=this.scrollMargin;s.top=0|e,s.bottom=0|t,s.right=0|n,s.left=0|i,s.v=s.top+s.bottom,s.h=s.left+s.right,s.top&&this.scrollTop<=0&&this.session&&this.session.setScrollTop(-s.top),this.updateFull()},this.setMargin=function(e,t,i,n){var s=this.margin;s.top=0|e,s.bottom=0|t,s.right=0|n,s.left=0|i,s.v=s.top+s.bottom,s.h=s.left+s.right,this.$updateCachedSize(!0,this.gutterWidth,this.$size.width,this.$size.height),this.updateFull()},this.getHScrollBarAlwaysVisible=function(){return this.$hScrollBarAlwaysVisible},this.setHScrollBarAlwaysVisible=function(e){this.setOption("hScrollBarAlwaysVisible",e)},this.getVScrollBarAlwaysVisible=function(){return this.$vScrollBarAlwaysVisible},this.setVScrollBarAlwaysVisible=function(e){this.setOption("vScrollBarAlwaysVisible",e)},this.$updateScrollBarV=function(){var e=this.layerConfig.maxHeight,t=this.$size.scrollerHeight;!this.$maxLines&&this.$scrollPastEnd&&(e-=(t-this.lineHeight)*this.$scrollPastEnd,this.scrollTop>e-t)&&(e=this.scrollTop+t,this.scrollBarV.scrollTop=null),this.scrollBarV.setScrollHeight(e+this.scrollMargin.v),this.scrollBarV.setScrollTop(this.scrollTop+this.scrollMargin.top)},this.$updateScrollBarH=function(){this.scrollBarH.setScrollWidth(this.layerConfig.width+2*this.$padding+this.scrollMargin.h),this.scrollBarH.setScrollLeft(this.scrollLeft+this.scrollMargin.left)},this.$frozen=!1,this.freeze=function(){this.$frozen=!0},this.unfreeze=function(){this.$frozen=!1},this.$renderChanges=function(e,t){if(this.$changes&&(e|=this.$changes,this.$changes=0),this.session&&this.container.offsetWidth&&!this.$frozen&&(e||t)){if(this.$size.$dirty)return this.$changes|=e,this.onResize(!0);this.lineHeight||this.$textLayer.checkForSizeChanges(),this._signal("beforeRender",e),this.session&&this.session.$bidiHandler&&this.session.$bidiHandler.updateCharacterWidths(this.$fontMetrics);var i,n,t=this.layerConfig;(e&this.CHANGE_FULL||e&this.CHANGE_SIZE||e&this.CHANGE_TEXT||e&this.CHANGE_LINES||e&this.CHANGE_SCROLL||e&this.CHANGE_H_SCROLL)&&(e|=this.$computeLayerConfig()|this.$loop.clear(),t.firstRow!=this.layerConfig.firstRow&&t.firstRowScreen==this.layerConfig.firstRowScreen&&0<(i=this.scrollTop+(t.firstRow-this.layerConfig.firstRow)*this.lineHeight)&&(this.scrollTop=i,e=(e|=this.CHANGE_SCROLL)|(this.$computeLayerConfig()|this.$loop.clear())),t=this.layerConfig,this.$updateScrollBarV(),e&this.CHANGE_H_SCROLL&&this.$updateScrollBarH(),a.translate(this.content,-this.scrollLeft,-t.offset),i=t.width+2*this.$padding+"px",n=t.minHeight+"px",a.setStyle(this.content.style,"width",i),a.setStyle(this.content.style,"height",n)),e&this.CHANGE_H_SCROLL&&(a.translate(this.content,-this.scrollLeft,-t.offset),this.scroller.className=this.scrollLeft<=0?"ace_scroller":"ace_scroller ace_scroll-left"),e&this.CHANGE_FULL?(this.$changedLines=null,this.$textLayer.update(t),this.$showGutter&&this.$gutterLayer.update(t),this.$markerBack.update(t),this.$markerFront.update(t),this.$cursorLayer.update(t),this.$moveTextAreaToCursor()):e&this.CHANGE_SCROLL?(this.$changedLines=null,e&this.CHANGE_TEXT||e&this.CHANGE_LINES?this.$textLayer.update(t):this.$textLayer.scrollLines(t),this.$showGutter&&(e&this.CHANGE_GUTTER||e&this.CHANGE_LINES?this.$gutterLayer.update(t):this.$gutterLayer.scrollLines(t)),this.$markerBack.update(t),this.$markerFront.update(t),this.$cursorLayer.update(t),this.$moveTextAreaToCursor()):(e&this.CHANGE_TEXT?(this.$changedLines=null,this.$textLayer.update(t),this.$showGutter&&this.$gutterLayer.update(t)):e&this.CHANGE_LINES?(this.$updateLines()||e&this.CHANGE_GUTTER&&this.$showGutter)&&this.$gutterLayer.update(t):e&this.CHANGE_TEXT||e&this.CHANGE_GUTTER?this.$showGutter&&this.$gutterLayer.update(t):e&this.CHANGE_CURSOR&&this.$highlightGutterLine&&this.$gutterLayer.updateLineHighlight(t),e&this.CHANGE_CURSOR&&(this.$cursorLayer.update(t),this.$moveTextAreaToCursor()),e&(this.CHANGE_MARKER|this.CHANGE_MARKER_FRONT)&&this.$markerFront.update(t),e&(this.CHANGE_MARKER|this.CHANGE_MARKER_BACK)&&this.$markerBack.update(t)),this._signal("afterRender",e)}else this.$changes|=e},this.$autosize=function(){var e=this.session.getScreenLength()*this.lineHeight,t=this.$maxLines*this.lineHeight,i=Math.min(t,Math.max((this.$minLines||1)*this.lineHeight,e))+this.scrollMargin.v+(this.$extraHeight||0);this.$horizScroll&&(i+=this.scrollBarH.getHeight());t=!((i=this.$maxPixelHeight&&i>this.$maxPixelHeight?this.$maxPixelHeight:i)<=2*this.lineHeight)&&tc.top)),h=r!==n,c=(h&&(this.$vScroll=n,this.scrollBarV.setVisible(n)),this.scrollTop%this.lineHeight),r=Math.ceil(l/this.lineHeight)-1,r=(n=Math.max(0,Math.round((this.scrollTop-c)/this.lineHeight)))+r,u=this.lineHeight,n=t.screenToDocumentRow(n,0),d=t.getFoldLine(n),t=(d&&(n=d.start.row),d=t.documentToScreenRow(n,0),e=t.getRowLength(n)*u,r=Math.min(t.screenToDocumentRow(r,0),t.getLength()-1),l=i.scrollerHeight+t.getRowLength(r)*u+e,c=this.scrollTop-d*u,0);return this.layerConfig.width==o&&!a||(t=this.CHANGE_H_SCROLL),(a||h)&&(t|=this.$updateCachedSize(!0,this.gutterWidth,i.width,i.height),this._signal("scrollbarVisibilityChanged"),h)&&(o=this.$getLongestLine()),this.layerConfig={width:o,padding:this.$padding,firstRow:n,firstRowScreen:d,lastRow:r,lineHeight:u,characterWidth:this.characterWidth,minHeight:l,maxHeight:s,offset:c,gutterOffset:u?Math.max(0,Math.ceil((c+i.height-i.scrollerHeight)/u)):0,height:this.$size.scrollerHeight},this.session.$bidiHandler&&this.session.$bidiHandler.setContentWidth(o-this.$padding),t},this.$updateLines=function(){if(this.$changedLines){var e=this.$changedLines.firstRow,t=this.$changedLines.lastRow,i=(this.$changedLines=null,this.layerConfig);if(!(e>i.lastRow+1||tthis.$textLayer.MAX_LINE_LENGTH&&(e=this.$textLayer.MAX_LINE_LENGTH+30),Math.max(this.$size.scrollerWidth-2*this.$padding,Math.round(e*this.characterWidth))},this.updateFrontMarkers=function(){this.$markerFront.setMarkers(this.session.getMarkers(!0)),this.$loop.schedule(this.CHANGE_MARKER_FRONT)},this.updateBackMarkers=function(){this.$markerBack.setMarkers(this.session.getMarkers()),this.$loop.schedule(this.CHANGE_MARKER_BACK)},this.addGutterDecoration=function(e,t){this.$gutterLayer.addGutterDecoration(e,t)},this.removeGutterDecoration=function(e,t){this.$gutterLayer.removeGutterDecoration(e,t)},this.updateBreakpoints=function(e){this.$loop.schedule(this.CHANGE_GUTTER)},this.setAnnotations=function(e){this.$gutterLayer.setAnnotations(e),this.$loop.schedule(this.CHANGE_GUTTER)},this.updateCursor=function(){this.$loop.schedule(this.CHANGE_CURSOR)},this.hideCursor=function(){this.$cursorLayer.hideCursor()},this.showCursor=function(){this.$cursorLayer.showCursor()},this.scrollSelectionIntoView=function(e,t,i){this.scrollCursorIntoView(e,i),this.scrollCursorIntoView(t,i)},this.scrollCursorIntoView=function(e,t,i){var n,s,o;0!==this.$size.scrollerHeight&&(n=(e=this.$cursorLayer.getPixelPosition(e)).left,e=e.top,o=i&&i.top||0,i=i&&i.bottom||0,e<(s=this.$scrollAnimation?this.session.getScrollTop():this.scrollTop)+o?(t&&s+o>e+this.lineHeight&&(e-=t*this.$size.scrollerHeight),0===e&&(e=-this.scrollMargin.top),this.session.setScrollTop(e)):s+this.$size.scrollerHeight-i=1-this.scrollMargin.top||0=1-this.scrollMargin.left||0this.$doc.getLength()>>1?this.call("setValue",[this.$doc.getValue()]):this.emit("change",{data:e}))}}).call(h.prototype);e.UIWorkerClient=function(e,t,i){var n=null,s=!1,o=Object.create(c),r=[],a=new h({messageBuffer:r,terminate:function(){},postMessage:function(e){r.push(e),n&&(s?setTimeout(l):l())}}),l=(a.setEmitSync=function(e){s=e},function(){var e=r.shift();e.command?n[e.command].apply(n,e.args):e.event&&o._signal(e.event,e.data)});return o.postMessage=function(e){a.onMessage({data:e})},o.callback=function(e,t){this.postMessage({type:"call",id:t,data:e})},o.emit=function(e,t){this.postMessage({type:"event",name:e,data:t})},u.loadModule(["worker",t],function(e){for(n=new e[i](o);r.length;)l()}),a},e.WorkerClient=h,e.createWorker=l}),ace.define("ace/placeholder",["require","exports","module","ace/range","ace/lib/event_emitter","ace/lib/oop"],function(e,t,i){"use strict";function n(e,t,i,n,s,o){var r=this,t=(this.length=t,this.session=e,this.doc=e.getDocument(),this.mainClass=s,this.othersClass=o,this.$onUpdate=this.onUpdate.bind(this),this.doc.on("change",this.$onUpdate),this.$others=n,this.$onCursorChange=function(){setTimeout(function(){r.onCursorChange()})},this.$pos=i,e.getUndoManager().$undoStack||e.getUndoManager().$undostack||{length:-1});this.$undoStackDepth=t.length,this.setup(),e.selection.on("changeCursor",this.$onCursorChange)}var l=e("./range").Range,s=e("./lib/event_emitter").EventEmitter,o=e("./lib/oop");(function(){o.implement(this,s),this.setup=function(){var t=this,i=this.doc,e=this.session,n=(this.selectionBefore=e.selection.toJSON(),e.selection.inMultiSelectMode&&e.selection.toSingleRange(),this.pos=i.createAnchor(this.$pos.row,this.$pos.column),this.pos);n.$insertRight=!0,n.detach(),n.markerId=e.addMarker(new l(n.row,n.column,n.row,n.column+this.length),this.mainClass,null,!1),this.others=[],this.$others.forEach(function(e){e=i.createAnchor(e.row,e.column);e.$insertRight=!0,e.detach(),t.others.push(e)}),e.setUndoSelect(!1)},this.showOtherMarkers=function(){var t,i;this.othersActive||(t=this.session,(i=this).othersActive=!0,this.others.forEach(function(e){e.markerId=t.addMarker(new l(e.row,e.column,e.row,e.column+i.length),i.othersClass,null,!1)}))},this.hideOtherMarkers=function(){if(this.othersActive){this.othersActive=!1;for(var e=0;e=this.pos.column&&t.start.column<=this.pos.column+this.length+1,s=t.start.column-this.pos.column;if(this.updateAnchors(e),n&&(this.length+=i),n&&!this.session.$fromUndo)if("insert"===e.action)for(var o=this.others.length-1;0<=o;o--){var r={row:(a=this.others[o]).row,column:a.column+s};this.doc.insertMergedLines(r,e.lines)}else if("remove"===e.action)for(o=this.others.length-1;0<=o;o--){var a,r={row:(a=this.others[o]).row,column:a.column+s};this.doc.remove(new l(r.row,r.column,r.row,r.column-i))}this.$updating=!1,this.updateMarkers()}},this.updateAnchors=function(e){this.pos.onChange(e);for(var t=this.others.length;t--;)this.others[t].onChange(e);this.updateMarkers()},this.updateMarkers=function(){if(!this.$updating){var i=this,n=this.session,e=function(e,t){n.removeMarker(e.markerId),e.markerId=n.addMarker(new l(e.row,e.column,e.row,e.column+i.length),t,null,!1)};e(this.pos,this.mainClass);for(var t=this.others.length;t--;)e(this.others[t],this.othersClass)}},this.onCursorChange=function(e){var t;!this.$updating&&this.session&&((t=this.session.selection.getCursor()).row===this.pos.row&&t.column>=this.pos.column&&t.column<=this.pos.column+this.length?(this.showOtherMarkers(),this._emit("cursorEnter",e)):(this.hideOtherMarkers(),this._emit("cursorLeave",e)))},this.detach=function(){this.session.removeMarker(this.pos&&this.pos.markerId),this.hideOtherMarkers(),this.doc.off("change",this.$onUpdate),this.session.selection.off("changeCursor",this.$onCursorChange),this.session.setUndoSelect(!0),this.session=null},this.cancel=function(){if(-1!==this.$undoStackDepth){for(var e=this.session.getUndoManager(),t=(e.$undoStack||e.$undostack).length-this.$undoStackDepth,i=0;io&&(o=e.column),(t=-1==t?0:t)t[1].length&&(s=t[1].length),ot[3].length&&(r=t[3].length)),t):[e]}).map(t?n:a?l?function(e){return e[2]?i(s+o-e[2].length)+e[2]+i(r)+e[4].replace(/^([=:])\s+/,"$1 "):e[0]}:n:function(e){return e[2]?i(s)+e[2]+i(r)+e[4].replace(/^([=:])\s+/,"$1 "):e[0]})}}).call(h.prototype),s.onSessionChange=function(e){var t=e.session,e=(t&&!t.multiSelect&&(t.$selectionMarkers=[],t.selection.$initRangeList(),t.multiSelect=t.selection),this.multiSelect=t&&t.multiSelect,e.oldSession);e&&(e.multiSelect.off("addRange",this.$onAddRange),e.multiSelect.off("removeRange",this.$onRemoveRange),e.multiSelect.off("multiSelect",this.$onMultiSelect),e.multiSelect.off("singleSelect",this.$onSingleSelect),e.multiSelect.lead.off("change",this.$checkMultiselectChange),e.multiSelect.anchor.off("change",this.$checkMultiselectChange)),t&&(t.multiSelect.on("addRange",this.$onAddRange),t.multiSelect.on("removeRange",this.$onRemoveRange),t.multiSelect.on("multiSelect",this.$onMultiSelect),t.multiSelect.on("singleSelect",this.$onSingleSelect),t.multiSelect.lead.on("change",this.$checkMultiselectChange),t.multiSelect.anchor.on("change",this.$checkMultiselectChange)),t&&this.inMultiSelectMode!=t.selection.inMultiSelectMode&&(t.selection.inMultiSelectMode?this.$onMultiSelect():this.$onSingleSelect())},s.MultiSelect=i,e("./config").defineOptions(h.prototype,"editor",{enableMultiselect:{set:function(e){i(this),e?(this.on("changeSession",this.$multiselectOnSessionChange),this.on("mousedown",o)):(this.off("changeSession",this.$multiselectOnSessionChange),this.off("mousedown",o))},value:!0},enableBlockSelect:{set:function(e){this.$blockSelectEnabled=e},value:!0}})}),ace.define("ace/mode/folding/fold_mode",["require","exports","module","ace/range"],function(e,t,i){"use strict";var c=e("../../range").Range,e=t.FoldMode=function(){};!function(){this.foldingStartMarker=null,this.foldingStopMarker=null,this.getFoldWidget=function(e,t,i){e=e.getLine(i);return this.foldingStartMarker.test(e)?"start":"markbeginend"==t&&this.foldingStopMarker&&this.foldingStopMarker.test(e)?"end":""},this.getFoldWidgetRange=function(e,t,i){return null},this.indentationBlock=function(e,t,i){var n=/\S/,s=e.getLine(t),o=s.search(n);if(-1!=o){for(var r,i=i||s.length,a=e.getLength(),s=t,l=t;++ti.row&&(n.row--,n.column=e.getLine(n.row).length),c.fromPoints(i,n)},this.closingBracketBlock=function(e,t,i,n,s){i={row:i,column:n},n=e.$findOpeningBracket(t,i);if(n)return n.column++,i.column--,c.fromPoints(n,i)}}.call(e.prototype)}),ace.define("ace/theme/textmate",["require","exports","module","ace/lib/dom"],function(e,t,i){"use strict";t.isDark=!1,t.cssClass="ace-tm",t.cssText='.ace-tm .ace_gutter {background: #f0f0f0;color: #333;}.ace-tm .ace_print-margin {width: 1px;background: #e8e8e8;}.ace-tm .ace_fold {background-color: #6B72E6;}.ace-tm {background-color: #FFFFFF;color: black;}.ace-tm .ace_cursor {color: black;}.ace-tm .ace_invisible {color: rgb(191, 191, 191);}.ace-tm .ace_storage,.ace-tm .ace_keyword {color: blue;}.ace-tm .ace_constant {color: rgb(197, 6, 11);}.ace-tm .ace_constant.ace_buildin {color: rgb(88, 72, 246);}.ace-tm .ace_constant.ace_language {color: rgb(88, 92, 246);}.ace-tm .ace_constant.ace_library {color: rgb(6, 150, 14);}.ace-tm .ace_invalid {background-color: rgba(255, 0, 0, 0.1);color: red;}.ace-tm .ace_support.ace_function {color: rgb(60, 76, 114);}.ace-tm .ace_support.ace_constant {color: rgb(6, 150, 14);}.ace-tm .ace_support.ace_type,.ace-tm .ace_support.ace_class {color: rgb(109, 121, 222);}.ace-tm .ace_keyword.ace_operator {color: rgb(104, 118, 135);}.ace-tm .ace_string {color: rgb(3, 106, 7);}.ace-tm .ace_comment {color: rgb(76, 136, 107);}.ace-tm .ace_comment.ace_doc {color: rgb(0, 102, 255);}.ace-tm .ace_comment.ace_doc.ace_tag {color: rgb(128, 159, 191);}.ace-tm .ace_constant.ace_numeric {color: rgb(0, 0, 205);}.ace-tm .ace_variable {color: rgb(49, 132, 149);}.ace-tm .ace_xml-pe {color: rgb(104, 104, 91);}.ace-tm .ace_entity.ace_name.ace_function {color: #0000A2;}.ace-tm .ace_heading {color: rgb(12, 7, 255);}.ace-tm .ace_list {color:rgb(185, 6, 144);}.ace-tm .ace_meta.ace_tag {color:rgb(0, 22, 142);}.ace-tm .ace_string.ace_regex {color: rgb(255, 0, 0)}.ace-tm .ace_marker-layer .ace_selection {background: rgb(181, 213, 255);}.ace-tm.ace_multiselect .ace_selection.ace_start {box-shadow: 0 0 3px 0px white;}.ace-tm .ace_marker-layer .ace_step {background: rgb(252, 255, 0);}.ace-tm .ace_marker-layer .ace_stack {background: rgb(164, 229, 101);}.ace-tm .ace_marker-layer .ace_bracket {margin: -1px 0 0 -1px;border: 1px solid rgb(192, 192, 192);}.ace-tm .ace_marker-layer .ace_active-line {background: rgba(0, 0, 0, 0.07);}.ace-tm .ace_gutter-active-line {background-color : #dcdcdc;}.ace-tm .ace_marker-layer .ace_selected-word {background: rgb(250, 250, 255);border: 1px solid rgb(200, 200, 250);}.ace-tm .ace_indent-guide {background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAE0lEQVQImWP4////f4bLly//BwAmVgd1/w11/gAAAABJRU5ErkJggg==") right repeat-y;}',t.$id="ace/theme/textmate",e("../lib/dom").importCssString(t.cssText,t.cssClass)}),ace.define("ace/line_widgets",["require","exports","module","ace/lib/dom"],function(e,t,i){"use strict";function n(e){this.session=e,(this.session.widgetManager=this).session.getRowLength=this.getRowLength,this.session.$getWidgetScreenLength=this.$getWidgetScreenLength,this.updateOnChange=this.updateOnChange.bind(this),this.renderWidgets=this.renderWidgets.bind(this),this.measureWidgets=this.measureWidgets.bind(this),this.session._changedWidgets=[],this.$onChangeEditor=this.$onChangeEditor.bind(this),this.session.on("change",this.updateOnChange),this.session.on("changeFold",this.updateOnFold),this.session.on("changeEditor",this.$onChangeEditor)}var s=e("./lib/dom");(function(){this.getRowLength=function(e){var t=this.lineWidgets&&this.lineWidgets[e]&&this.lineWidgets[e].rowCount||0;return this.$useWrapMode&&this.$wrapData[e]?this.$wrapData[e].length+1+t:1+t},this.$getWidgetScreenLength=function(){var t=0;return this.lineWidgets.forEach(function(e){e&&e.rowCount&&!e.hidden&&(t+=e.rowCount)}),t},this.$onChangeEditor=function(e){this.attach(e.editor)},this.attach=function(e){e&&e.widgetManager&&e.widgetManager!=this&&e.widgetManager.detach(),this.editor!=e&&(this.detach(),this.editor=e)&&(e.widgetManager=this,e.renderer.on("beforeRender",this.measureWidgets),e.renderer.on("afterRender",this.renderWidgets))},this.detach=function(e){var t=this.editor;t&&(this.editor=null,t.widgetManager=null,t.renderer.off("beforeRender",this.measureWidgets),t.renderer.off("afterRender",this.renderWidgets),t=this.session.lineWidgets)&&t.forEach(function(e){e&&e.el&&e.el.parentNode&&(e._inDocument=!1,e.el.parentNode.removeChild(e.el))})},this.updateOnFold=function(e,t){var i=t.lineWidgets;if(i&&e.action){for(var t=e.data,n=t.start.row,s=t.end.row,o="add"==e.action,r=n+1;rs[t].column&&t++,n.unshift(t,0),s.splice.apply(s,n)),this.$updateRows())},this.$updateRows=function(){var i,e=this.session.lineWidgets;e&&(i=!0,e.forEach(function(e,t){if(e)for(i=!1,e.row=t;e.$oldWidget;)e.$oldWidget.row=t,e=e.$oldWidget}),i)&&(this.session.lineWidgets=null)},this.$registerLineWidget=function(e){this.session.lineWidgets||(this.session.lineWidgets=new Array(this.session.getLength()));var t=this.session.lineWidgets[e.row];return t&&(e.$oldWidget=t).el&&t.el.parentNode&&(t.el.parentNode.removeChild(t.el),t._inDocument=!1),this.session.lineWidgets[e.row]=e},this.addLineWidget=function(e){var t,i,n;return this.$registerLineWidget(e),e.session=this.session,this.editor&&(t=this.editor.renderer,e.html&&!e.el&&(e.el=s.createElement("div"),e.el.innerHTML=e.html),e.el&&(s.addCssClass(e.el,"ace_lineWidgetContainer"),e.el.style.position="absolute",e.el.style.zIndex=5,t.container.appendChild(e.el),e._inDocument=!0,e.coverGutter||(e.el.style.zIndex=3),null==e.pixelHeight)&&(e.pixelHeight=e.el.offsetHeight),null==e.rowCount&&(e.rowCount=e.pixelHeight/t.layerConfig.lineHeight),i=this.session.getFoldAt(e.row,0),(e.$fold=i)&&(n=this.session.lineWidgets,e.row!=i.end.row||n[i.start.row]?e.hidden=!0:n[i.start.row]=e),this.session._emit("changeFold",{data:{start:{row:e.row}}}),this.$updateRows(),this.renderWidgets(null,t),this.onWidgetChanged(e)),e},this.removeLineWidget=function(e){if(e._inDocument=!1,e.session=null,e.el&&e.el.parentNode&&e.el.parentNode.removeChild(e.el),e.editor&&e.editor.destroy)try{e.editor.destroy()}catch(e){}if(this.session.lineWidgets){var t=this.session.lineWidgets[e.row];if(t==e)this.session.lineWidgets[e.row]=e.$oldWidget,e.$oldWidget&&this.onWidgetChanged(e.$oldWidget);else for(;t;){if(t.$oldWidget==e){t.$oldWidget=e.$oldWidget;break}t=t.$oldWidget}}this.session._emit("changeFold",{data:{start:{row:e.row}}}),this.$updateRows()},this.getWidgetsAtRow=function(e){for(var t=this.session.lineWidgets,i=t&&t[e],n=[];i;)n.push(i),i=i.$oldWidget;return n},this.onWidgetChanged=function(e){this.session._changedWidgets.push(e),this.editor&&this.editor.renderer.updateFull()},this.measureWidgets=function(e,t){var i=this.session._changedWidgets,n=t.layerConfig;if(i&&i.length){for(var s=1/0,o=0;o>1,r=i(t,e[o]);if(0=n.length?s=0"),o.appendChild(u.createElement("div"));l.destroy=function(){e.$mouseHandler.isMousePressed||(e.keyBinding.removeKeyboardHandler(a),n.widgetManager.removeLineWidget(l),e.off("changeSelection",l.destroy),e.off("changeSession",l.destroy),e.off("mouseup",l.destroy),e.off("change",l.destroy))},e.keyBinding.addKeyboardHandler(a),e.on("changeSelection",l.destroy),e.on("changeSession",l.destroy),e.on("mouseup",l.destroy),e.on("change",l.destroy),e.session.widgetManager.addLineWidget(l),l.el.onmousedown=e.focus.bind(e),e.renderer.scrollCursorIntoView(null,.5,{bottom:l.el.offsetHeight})},u.importCssString(" .error_widget_wrapper { background: inherit; color: inherit; border:none } .error_widget { border-top: solid 2px; border-bottom: solid 2px; margin: 5px 0; padding: 10px 40px; white-space: pre-wrap; } .error_widget.ace_error, .error_widget_arrow.ace_error{ border-color: #ff5a5a } .error_widget.ace_warning, .error_widget_arrow.ace_warning{ border-color: #F1D817 } .error_widget.ace_info, .error_widget_arrow.ace_info{ border-color: #5a5a5a } .error_widget.ace_ok, .error_widget_arrow.ace_ok{ border-color: #5aaa5a } .error_widget_arrow { position: absolute; border: solid 5px; border-top-color: transparent!important; border-right-color: transparent!important; border-left-color: transparent!important; top: -5px; }","")}),ace.define("ace/ace",["require","exports","module","ace/lib/fixoldbrowsers","ace/lib/dom","ace/lib/event","ace/range","ace/editor","ace/edit_session","ace/undomanager","ace/virtual_renderer","ace/worker/worker_client","ace/keyboard/hash_handler","ace/placeholder","ace/multi_select","ace/mode/folding/fold_mode","ace/theme/textmate","ace/ext/error_marker","ace/config"],function(e,o,t){"use strict";e("./lib/fixoldbrowsers");var r=e("./lib/dom"),a=e("./lib/event"),i=e("./range").Range,l=e("./editor").Editor,n=e("./edit_session").EditSession,s=e("./undomanager").UndoManager,h=e("./virtual_renderer").VirtualRenderer;e("./worker/worker_client"),e("./keyboard/hash_handler"),e("./placeholder"),e("./multi_select"),e("./mode/folding/fold_mode"),e("./theme/textmate"),e("./ext/error_marker"),o.config=e("./config"),o.require=e,"function"==typeof define&&(o.define=define),o.edit=function(e,t){if("string"==typeof e){var i=e;if(!(e=document.getElementById(i)))throw new Error("ace.edit can't find div #"+i)}var n,s;return e&&e.env&&e.env.editor instanceof l?e.env.editor:(i="",e&&/input|textarea/i.test(e.tagName)?(i=(n=e).value,e=r.createElement("pre"),n.parentNode.replaceChild(e,n)):e&&(i=e.textContent,e.innerHTML=""),i=o.createEditSession(i),e=new l(new h(e),i,t),s={document:i,editor:e,onResize:e.resize.bind(e,null)},n&&(s.textarea=n),a.addListener(window,"resize",s.onResize),e.on("destroy",function(){a.removeListener(window,"resize",s.onResize),s.editor.container.env=null}),e.container.env=e.env=s,e)},o.createEditSession=function(e,t){e=new n(e,t);return e.setUndoManager(new s),e},o.Range=i,o.Editor=l,o.EditSession=n,o.UndoManager=s,o.VirtualRenderer=h,o.version=o.config.version}),ace.require(["ace/ace"],function(e){for(var t in e&&(e.config.init(!0),e.define=ace.define),window.ace||(window.ace=e),e)e.hasOwnProperty(t)&&(window.ace[t]=e[t]);window.ace.default=window.ace,"object"==typeof module&&"object"==typeof exports&&module&&(module.exports=window.ace)}); \ No newline at end of file diff --git a/public/script/lazy-assets.js b/public/script/lazy-assets.js new file mode 100644 index 0000000..d1a14b1 --- /dev/null +++ b/public/script/lazy-assets.js @@ -0,0 +1,24 @@ +const pending = new Map(); +// Generated from the completed library bundles, so deployments invalidate caches. +const assets = __LAZY_ASSETS__; +export function loadLibrary(name) { + if (!pending.has(name)) { + const script = document.createElement("script"); + script.src = assets[name]; + const promise = new Promise((resolve, reject) => { + script.onload = resolve; + script.onerror = () => { + pending.delete(name); + script.remove(); + reject(new Error(`Unable to load ${name}. Please retry.`)); + }; + }); + pending.set(name, promise); + document.head.appendChild(script); + } + return pending.get(name); +} +export async function loadEditor() { + await loadLibrary("editor"); + ace.config.set("basePath", "/script/external/ace/"); +} diff --git a/public/script/main.js b/public/script/main.js index 5020662..24db02e 100644 --- a/public/script/main.js +++ b/public/script/main.js @@ -1,3 +1,4 @@ +import { loadLibrary } from "./lazy-assets.js"; import { createApp, h, watch, provide, inject, onBeforeUnmount } from "vue"; import { createRouter, createWebHistory, RouterView } from "vue-router"; import { pageRoutes } from "./routes.js"; @@ -116,7 +117,13 @@ export function mountApplication(target = "#app", options = {}) { app.directive("code-editor", codeEditor); app.directive("paper-scrollspy", paperScrollspy); app.use(router); - router.beforeEach(() => { root?.emit("routeLeave"); }); + router.beforeEach(async to => { + root?.emit("routeLeave"); + if (/^\/(r|repository|anonymize|pull-request-anonymize|gist-anonymize|pr|gist)(\/|$)/.test(to.path)) { + await loadLibrary("markdown"); + } + if (/^\/(r|repository)\//.test(to.path)) await loadLibrary("org"); + }); router.afterEach(to => { if (!root) return; root.title = to.meta.title; @@ -129,6 +136,4 @@ export function mountApplication(target = "#app", options = {}) { return { app, router, state: root }; } -ace.config.set("basePath", "/script/external/ace/"); -pdfjsLib.GlobalWorkerOptions.workerSrc = "/script/external/pdf.worker.js"; if (document.querySelector("#app")) window.anonymousApp = mountApplication(); diff --git a/public/script/markdown.min.js b/public/script/markdown.min.js new file mode 100644 index 0000000..2c841f1 --- /dev/null +++ b/public/script/markdown.min.js @@ -0,0 +1 @@ +function markedMermaid(e){return{extensions:[{name:"mermaid",level:"block",start(e){return e.match(/^```mermaid/m)?.index},tokenizer(e,t){e=/^```mermaid\n([\s\S]*?)\n```/.exec(e);if(e)return{type:"mermaid",raw:e[0],text:e[1].trim()}},renderer(e){const t="mermaid-"+Math.random().toString(36).substr(2,9);e=`
${e.text}
`;return"undefined"==typeof mermaid&&"function"==typeof window.loadMermaid&&window.loadMermaid(),setTimeout(()=>{if("undefined"!=typeof mermaid){window.mermaidInitialized||(mermaid.initialize({startOnLoad:!1,theme:"default",securityLevel:"strict"}),window.mermaidInitialized=!0);try{var e=document.getElementById(t);e&&!e.getAttribute("data-processed")&&(mermaid.init(void 0,e),e.setAttribute("data-processed","true"))}catch(e){console.error("Mermaid rendering error:",e)}}},100),e}}]}}!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.katex=t():e.katex=t()}("undefined"!=typeof self?self:this,function(){"use strict";var E={d:function(e,t){for(var r in t)E.o(t,r)&&!E.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},o:function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}},t={};E.d(t,{default:function(){return Ar}});class L{constructor(e,t){this.name=void 0,this.position=void 0,this.length=void 0,this.rawMessage=void 0;let r,n,i="KaTeX parse error: "+e;var a=t&&t.loc;if(a&&a.start<=a.end){const e=a.lexer.input,t=(r=a.start,n=a.end,r===e.length?i+=" at end of input: ":i+=" at position "+(r+1)+": ",e.slice(r,n).replace(/[^]/g,"$&̲"));var a=15":">","<":"<",'"':""","'":"'"},F=/[&><"']/g;var A={contains:function(e,t){return-1!==e.indexOf(t)},deflt:function(e,t){return void 0===e?t:e},escape:function(e){return String(e).replace(F,e=>V[e])},hyphenate:function(e){return e.replace(P,"-$1").toLowerCase()},getBaseElem:D,isCharacterBox:function(e){e=D(e);return"mathord"===e.type||"textord"===e.type||"atom"===e.type},protocolFromUrl:function(e){e=/^[\x00-\x20]*([^\\/#?]*?)(:|�*58|�*3a|&colon)/i.exec(e);return e?":"===e[2]&&/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(e[1])?e[1].toLowerCase():null:"_relative"}};const G={displayMode:{type:"boolean",description:"Render math in display mode, which puts the math in display style (so \\int and \\sum are large, for example), and centers the math on the page on its own line.",cli:"-d, --display-mode"},output:{type:{enum:["htmlAndMathml","html","mathml"]},description:"Determines the markup language of the output.",cli:"-F, --format "},leqno:{type:"boolean",description:"Render display math in leqno style (left-justified tags)."},fleqn:{type:"boolean",description:"Render display math flush left."},throwOnError:{type:"boolean",default:!0,cli:"-t, --no-throw-on-error",cliDescription:"Render errors (in the color given by --error-color) instead of throwing a ParseError exception when encountering an error."},errorColor:{type:"string",default:"#cc0000",cli:"-c, --error-color ",cliDescription:"A color string given in the format 'rgb' or 'rrggbb' (no #). This option determines the color of errors rendered by the -t option.",cliProcessor:e=>"#"+e},macros:{type:"object",cli:"-m, --macro ",cliDescription:"Define custom macro of the form '\\foo:expansion' (use multiple -m arguments for multiple macros).",cliDefault:[],cliProcessor:(e,t)=>(t.push(e),t)},minRuleThickness:{type:"number",description:"Specifies a minimum thickness, in ems, for fraction lines, `\\sqrt` top lines, `{array}` vertical lines, `\\hline`, `\\hdashline`, `\\underline`, `\\overline`, and the borders of `\\fbox`, `\\boxed`, and `\\fcolorbox`.",processor:e=>Math.max(0,e),cli:"--min-rule-thickness ",cliProcessor:parseFloat},colorIsTextColor:{type:"boolean",description:"Makes \\color behave like LaTeX's 2-argument \\textcolor, instead of LaTeX's one-argument \\color mode change.",cli:"-b, --color-is-text-color"},strict:{type:[{enum:["warn","ignore","error"]},"boolean","function"],description:"Turn on strict / LaTeX faithfulness mode, which throws an error if the input uses features that are not supported by LaTeX.",cli:"-S, --strict",cliDefault:!1},trust:{type:["boolean","function"],description:"Trust the input, enabling all HTML features such as \\url.",cli:"-T, --trust"},maxSize:{type:"number",default:1/0,description:"If non-zero, all user-specified sizes, e.g. in \\rule{500em}{500em}, will be capped to maxSize ems. Otherwise, elements and spaces can be arbitrarily large",processor:e=>Math.max(0,e),cli:"-s, --max-size ",cliProcessor:parseInt},maxExpand:{type:"number",default:1e3,description:"Limit the number of macro expansions to the specified number, to prevent e.g. infinite macro loops. If set to Infinity, the macro expander will try to fully expand as in LaTeX.",processor:e=>Math.max(0,e),cli:"-e, --max-expand ",cliProcessor:e=>"Infinity"===e?1/0:parseInt(e)},globalGroup:{type:"boolean",cli:!1}};class U{constructor(e){this.displayMode=void 0,this.output=void 0,this.leqno=void 0,this.fleqn=void 0,this.throwOnError=void 0,this.errorColor=void 0,this.macros=void 0,this.minRuleThickness=void 0,this.colorIsTextColor=void 0,this.strict=void 0,this.trust=void 0,this.maxSize=void 0,this.maxExpand=void 0,this.globalGroup=void 0,e=e||{};for(const r in G){var t;G.hasOwnProperty(r)&&(t=G[r],this[r]=void 0!==e[r]?t.processor?t.processor(e[r]):e[r]:function(e){if(e.default)return e.default;if(e=e.type,"string"!=typeof(e=Array.isArray(e)?e[0]:e))return e.enum[0];switch(e){case"boolean":return!1;case"string":return"";case"number":return 0;case"object":return{}}}(t))}}reportNonstrict(e,t,r){let n=this.strict;if((n="function"==typeof n?n(e,t,r):n)&&"ignore"!==n){if(!0===n||"error"===n)throw new z("LaTeX-incompatible input and strict mode is set to 'error': "+t+" ["+e+"]",r);"warn"===n?"undefined"!=typeof console&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+t+" ["+e+"]"):"undefined"!=typeof console&&console.warn("LaTeX-incompatible input and strict mode is set to unrecognized '"+n+"': "+t+" ["+e+"]")}}useStrictBehavior(e,t,r){let n=this.strict;if("function"==typeof n)try{n=n(e,t,r)}catch(e){n="error"}return!(!n||"ignore"===n||!0!==n&&"error"!==n&&("warn"===n?"undefined"!=typeof console&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+t+" ["+e+"]"):"undefined"!=typeof console&&console.warn("LaTeX-incompatible input and strict mode is set to unrecognized '"+n+"': "+t+" ["+e+"]"),1))}isTrusted(e){if(e.url&&!e.protocol){const t=A.protocolFromUrl(e.url);if(null==t)return!1;e.protocol=t}const t="function"==typeof this.trust?this.trust(e):this.trust;return Boolean(t)}}class Y{constructor(e,t,r){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=e,this.size=t,this.cramped=r}sup(){return X[W[this.id]]}sub(){return X[$[this.id]]}fracNum(){return X[j[this.id]]}fracDen(){return X[_[this.id]]}cramp(){return X[Z[this.id]]}text(){return X[K[this.id]]}isTight(){return 2<=this.size}}const X=[new Y(0,0,!1),new Y(1,0,!0),new Y(2,1,!1),new Y(3,1,!0),new Y(4,2,!1),new Y(5,2,!0),new Y(6,3,!1),new Y(7,3,!0)],W=[4,5,4,5,6,7,6,7],$=[5,5,5,5,7,7,7,7],j=[2,3,4,5,6,7,6,7],_=[3,3,5,5,7,7,7,7],Z=[1,1,3,3,5,5,7,7],K=[0,1,2,3,2,3,2,3];var T={DISPLAY:X[0],TEXT:X[2],SCRIPT:X[4],SCRIPTSCRIPT:X[6]};const J=[{name:"latin",blocks:[[256,591],[768,879]]},{name:"cyrillic",blocks:[[1024,1279]]},{name:"armenian",blocks:[[1328,1423]]},{name:"brahmic",blocks:[[2304,4255]]},{name:"georgian",blocks:[[4256,4351]]},{name:"cjk",blocks:[[12288,12543],[19968,40879],[65280,65376]]},{name:"hangul",blocks:[[44032,55215]]}],Q=[];function ee(t){for(let e=0;e=Q[e]&&t<=Q[e+1])return 1}J.forEach(e=>e.blocks.forEach(e=>Q.push(...e)));const te=80,re={doubleleftarrow:"M262 157\nl10-10c34-36 62.7-77 86-123 3.3-8 5-13.3 5-16 0-5.3-6.7-8-20-8-7.3\n 0-12.2.5-14.5 1.5-2.3 1-4.8 4.5-7.5 10.5-49.3 97.3-121.7 169.3-217 216-28\n 14-57.3 25-88 33-6.7 2-11 3.8-13 5.5-2 1.7-3 4.2-3 7.5s1 5.8 3 7.5\nc2 1.7 6.3 3.5 13 5.5 68 17.3 128.2 47.8 180.5 91.5 52.3 43.7 93.8 96.2 124.5\n 157.5 9.3 8 15.3 12.3 18 13h6c12-.7 18-4 18-10 0-2-1.7-7-5-15-23.3-46-52-87\n-86-123l-10-10h399738v-40H218c328 0 0 0 0 0l-10-8c-26.7-20-65.7-43-117-69 2.7\n-2 6-3.7 10-5 36.7-16 72.3-37.3 107-64l10-8h399782v-40z\nm8 0v40h399730v-40zm0 194v40h399730v-40z",doublerightarrow:"M399738 392l\n-10 10c-34 36-62.7 77-86 123-3.3 8-5 13.3-5 16 0 5.3 6.7 8 20 8 7.3 0 12.2-.5\n 14.5-1.5 2.3-1 4.8-4.5 7.5-10.5 49.3-97.3 121.7-169.3 217-216 28-14 57.3-25 88\n-33 6.7-2 11-3.8 13-5.5 2-1.7 3-4.2 3-7.5s-1-5.8-3-7.5c-2-1.7-6.3-3.5-13-5.5-68\n-17.3-128.2-47.8-180.5-91.5-52.3-43.7-93.8-96.2-124.5-157.5-9.3-8-15.3-12.3-18\n-13h-6c-12 .7-18 4-18 10 0 2 1.7 7 5 15 23.3 46 52 87 86 123l10 10H0v40h399782\nc-328 0 0 0 0 0l10 8c26.7 20 65.7 43 117 69-2.7 2-6 3.7-10 5-36.7 16-72.3 37.3\n-107 64l-10 8H0v40zM0 157v40h399730v-40zm0 194v40h399730v-40z",leftarrow:"M400000 241H110l3-3c68.7-52.7 113.7-120\n 135-202 4-14.7 6-23 6-25 0-7.3-7-11-21-11-8 0-13.2.8-15.5 2.5-2.3 1.7-4.2 5.8\n-5.5 12.5-1.3 4.7-2.7 10.3-4 17-12 48.7-34.8 92-68.5 130S65.3 228.3 18 247\nc-10 4-16 7.7-18 11 0 8.7 6 14.3 18 17 47.3 18.7 87.8 47 121.5 85S196 441.3 208\n 490c.7 2 1.3 5 2 9s1.2 6.7 1.5 8c.3 1.3 1 3.3 2 6s2.2 4.5 3.5 5.5c1.3 1 3.3\n 1.8 6 2.5s6 1 10 1c14 0 21-3.7 21-11 0-2-2-10.3-6-25-20-79.3-65-146.7-135-202\n l-3-3h399890zM100 241v40h399900v-40z",leftbrace:"M6 548l-6-6v-35l6-11c56-104 135.3-181.3 238-232 57.3-28.7 117\n-45 179-50h399577v120H403c-43.3 7-81 15-113 26-100.7 33-179.7 91-237 174-2.7\n 5-6 9-10 13-.7 1-7.3 1-20 1H6z",leftbraceunder:"M0 6l6-6h17c12.688 0 19.313.3 20 1 4 4 7.313 8.3 10 13\n 35.313 51.3 80.813 93.8 136.5 127.5 55.688 33.7 117.188 55.8 184.5 66.5.688\n 0 2 .3 4 1 18.688 2.7 76 4.3 172 5h399450v120H429l-6-1c-124.688-8-235-61.7\n-331-161C60.687 138.7 32.312 99.3 7 54L0 41V6z",leftgroup:"M400000 80\nH435C64 80 168.3 229.4 21 260c-5.9 1.2-18 0-18 0-2 0-3-1-3-3v-38C76 61 257 0\n 435 0h399565z",leftgroupunder:"M400000 262\nH435C64 262 168.3 112.6 21 82c-5.9-1.2-18 0-18 0-2 0-3 1-3 3v38c76 158 257 219\n 435 219h399565z",leftharpoon:"M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3\n-3.3 10.2-9.5 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5\n-18.3 3-21-1.3-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7\n-196 228-6.7 4.7-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40z",leftharpoonplus:"M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3-3.3 10.2-9.5\n 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5-18.3 3-21-1.3\n-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7-196 228-6.7 4.7\n-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40zM0 435v40h400000v-40z\nm0 0v40h400000v-40z",leftharpoondown:"M7 241c-4 4-6.333 8.667-7 14 0 5.333.667 9 2 11s5.333\n 5.333 12 10c90.667 54 156 130 196 228 3.333 10.667 6.333 16.333 9 17 2 .667 5\n 1 9 1h5c10.667 0 16.667-2 18-6 2-2.667 1-9.667-3-21-32-87.333-82.667-157.667\n-152-211l-3-3h399907v-40zM93 281 H400000 v-40L7 241z",leftharpoondownplus:"M7 435c-4 4-6.3 8.7-7 14 0 5.3.7 9 2 11s5.3 5.3 12\n 10c90.7 54 156 130 196 228 3.3 10.7 6.3 16.3 9 17 2 .7 5 1 9 1h5c10.7 0 16.7\n-2 18-6 2-2.7 1-9.7-3-21-32-87.3-82.7-157.7-152-211l-3-3h399907v-40H7zm93 0\nv40h399900v-40zM0 241v40h399900v-40zm0 0v40h399900v-40z",lefthook:"M400000 281 H103s-33-11.2-61-33.5S0 197.3 0 164s14.2-61.2 42.5\n-83.5C70.8 58.2 104 47 142 47 c16.7 0 25 6.7 25 20 0 12-8.7 18.7-26 20-40 3.3\n-68.7 15.7-86 37-10 12-15 25.3-15 40 0 22.7 9.8 40.7 29.5 54 19.7 13.3 43.5 21\n 71.5 23h399859zM103 281v-40h399897v40z",leftlinesegment:"M40 281 V428 H0 V94 H40 V241 H400000 v40z\nM40 281 V428 H0 V94 H40 V241 H400000 v40z",leftmapsto:"M40 281 V448H0V74H40V241H400000v40z\nM40 281 V448H0V74H40V241H400000v40z",leftToFrom:"M0 147h400000v40H0zm0 214c68 40 115.7 95.7 143 167h22c15.3 0 23\n-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69-70-101l-7-8h399905v-40H95l7-8\nc28.7-32 52-65.7 70-101 10.7-23.3 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 265.3\n 68 321 0 361zm0-174v-40h399900v40zm100 154v40h399900v-40z",longequal:"M0 50 h400000 v40H0z m0 194h40000v40H0z\nM0 50 h400000 v40H0z m0 194h40000v40H0z",midbrace:"M200428 334\nc-100.7-8.3-195.3-44-280-108-55.3-42-101.7-93-139-153l-9-14c-2.7 4-5.7 8.7-9 14\n-53.3 86.7-123.7 153-211 199-66.7 36-137.3 56.3-212 62H0V214h199568c178.3-11.7\n 311.7-78.3 403-201 6-8 9.7-12 11-12 .7-.7 6.7-1 18-1s17.3.3 18 1c1.3 0 5 4 11\n 12 44.7 59.3 101.3 106.3 170 141s145.3 54.3 229 60h199572v120z",midbraceunder:"M199572 214\nc100.7 8.3 195.3 44 280 108 55.3 42 101.7 93 139 153l9 14c2.7-4 5.7-8.7 9-14\n 53.3-86.7 123.7-153 211-199 66.7-36 137.3-56.3 212-62h199568v120H200432c-178.3\n 11.7-311.7 78.3-403 201-6 8-9.7 12-11 12-.7.7-6.7 1-18 1s-17.3-.3-18-1c-1.3 0\n-5-4-11-12-44.7-59.3-101.3-106.3-170-141s-145.3-54.3-229-60H0V214z",oiintSize1:"M512.6 71.6c272.6 0 320.3 106.8 320.3 178.2 0 70.8-47.7 177.6\n-320.3 177.6S193.1 320.6 193.1 249.8c0-71.4 46.9-178.2 319.5-178.2z\nm368.1 178.2c0-86.4-60.9-215.4-368.1-215.4-306.4 0-367.3 129-367.3 215.4 0 85.8\n60.9 214.8 367.3 214.8 307.2 0 368.1-129 368.1-214.8z",oiintSize2:"M757.8 100.1c384.7 0 451.1 137.6 451.1 230 0 91.3-66.4 228.8\n-451.1 228.8-386.3 0-452.7-137.5-452.7-228.8 0-92.4 66.4-230 452.7-230z\nm502.4 230c0-111.2-82.4-277.2-502.4-277.2s-504 166-504 277.2\nc0 110 84 276 504 276s502.4-166 502.4-276z",oiiintSize1:"M681.4 71.6c408.9 0 480.5 106.8 480.5 178.2 0 70.8-71.6 177.6\n-480.5 177.6S202.1 320.6 202.1 249.8c0-71.4 70.5-178.2 479.3-178.2z\nm525.8 178.2c0-86.4-86.8-215.4-525.7-215.4-437.9 0-524.7 129-524.7 215.4 0\n85.8 86.8 214.8 524.7 214.8 438.9 0 525.7-129 525.7-214.8z",oiiintSize2:"M1021.2 53c603.6 0 707.8 165.8 707.8 277.2 0 110-104.2 275.8\n-707.8 275.8-606 0-710.2-165.8-710.2-275.8C311 218.8 415.2 53 1021.2 53z\nm770.4 277.1c0-131.2-126.4-327.6-770.5-327.6S248.4 198.9 248.4 330.1\nc0 130 128.8 326.4 772.7 326.4s770.5-196.4 770.5-326.4z",rightarrow:"M0 241v40h399891c-47.3 35.3-84 78-110 128\n-16.7 32-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20\n 11 8 0 13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7\n 39-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85\n-40.5-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5\n-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67\n 151.7 139 205zm0 0v40h399900v-40z",rightbrace:"M400000 542l\n-6 6h-17c-12.7 0-19.3-.3-20-1-4-4-7.3-8.3-10-13-35.3-51.3-80.8-93.8-136.5-127.5\ns-117.2-55.8-184.5-66.5c-.7 0-2-.3-4-1-18.7-2.7-76-4.3-172-5H0V214h399571l6 1\nc124.7 8 235 61.7 331 161 31.3 33.3 59.7 72.7 85 118l7 13v35z",rightbraceunder:"M399994 0l6 6v35l-6 11c-56 104-135.3 181.3-238 232-57.3\n 28.7-117 45-179 50H-300V214h399897c43.3-7 81-15 113-26 100.7-33 179.7-91 237\n-174 2.7-5 6-9 10-13 .7-1 7.3-1 20-1h17z",rightgroup:"M0 80h399565c371 0 266.7 149.4 414 180 5.9 1.2 18 0 18 0 2 0\n 3-1 3-3v-38c-76-158-257-219-435-219H0z",rightgroupunder:"M0 262h399565c371 0 266.7-149.4 414-180 5.9-1.2 18 0 18\n 0 2 0 3 1 3 3v38c-76 158-257 219-435 219H0z",rightharpoon:"M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3\n-3.7-15.3-11-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2\n-10.7 0-16.7 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58\n 69.2 92 94.5zm0 0v40h399900v-40z",rightharpoonplus:"M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3-3.7-15.3-11\n-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2-10.7 0-16.7\n 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58 69.2 92 94.5z\nm0 0v40h399900v-40z m100 194v40h399900v-40zm0 0v40h399900v-40z",rightharpoondown:"M399747 511c0 7.3 6.7 11 20 11 8 0 13-.8 15-2.5s4.7-6.8\n 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3 8.5-5.8 9.5\n-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3-64.7 57-92 95\n-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 241v40h399900v-40z",rightharpoondownplus:"M399747 705c0 7.3 6.7 11 20 11 8 0 13-.8\n 15-2.5s4.7-6.8 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3\n 8.5-5.8 9.5-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3\n-64.7 57-92 95-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 435v40h399900v-40z\nm0-194v40h400000v-40zm0 0v40h400000v-40z",righthook:"M399859 241c-764 0 0 0 0 0 40-3.3 68.7-15.7 86-37 10-12 15-25.3\n 15-40 0-22.7-9.8-40.7-29.5-54-19.7-13.3-43.5-21-71.5-23-17.3-1.3-26-8-26-20 0\n-13.3 8.7-20 26-20 38 0 71 11.2 99 33.5 0 0 7 5.6 21 16.7 14 11.2 21 33.5 21\n 66.8s-14 61.2-42 83.5c-28 22.3-61 33.5-99 33.5L0 241z M0 281v-40h399859v40z",rightlinesegment:"M399960 241 V94 h40 V428 h-40 V281 H0 v-40z\nM399960 241 V94 h40 V428 h-40 V281 H0 v-40z",rightToFrom:"M400000 167c-70.7-42-118-97.7-142-167h-23c-15.3 0-23 .3-23\n 1 0 1.3 5.3 13.7 16 37 18 35.3 41.3 69 70 101l7 8H0v40h399905l-7 8c-28.7 32\n-52 65.7-70 101-10.7 23.3-16 35.7-16 37 0 .7 7.7 1 23 1h23c24-69.3 71.3-125 142\n-167z M100 147v40h399900v-40zM0 341v40h399900v-40z",twoheadleftarrow:"M0 167c68 40\n 115.7 95.7 143 167h22c15.3 0 23-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69\n-70-101l-7-8h125l9 7c50.7 39.3 85 86 103 140h46c0-4.7-6.3-18.7-19-42-18-35.3\n-40-67.3-66-96l-9-9h399716v-40H284l9-9c26-28.7 48-60.7 66-96 12.7-23.333 19\n-37.333 19-42h-46c-18 54-52.3 100.7-103 140l-9 7H95l7-8c28.7-32 52-65.7 70-101\n 10.7-23.333 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 71.3 68 127 0 167z",twoheadrightarrow:"M400000 167\nc-68-40-115.7-95.7-143-167h-22c-15.3 0-23 .3-23 1 0 1.3 5.3 13.7 16 37 18 35.3\n 41.3 69 70 101l7 8h-125l-9-7c-50.7-39.3-85-86-103-140h-46c0 4.7 6.3 18.7 19 42\n 18 35.3 40 67.3 66 96l9 9H0v40h399716l-9 9c-26 28.7-48 60.7-66 96-12.7 23.333\n-19 37.333-19 42h46c18-54 52.3-100.7 103-140l9-7h125l-7 8c-28.7 32-52 65.7-70\n 101-10.7 23.333-16 35.7-16 37 0 .7 7.7 1 23 1h22c27.3-71.3 75-127 143-167z",tilde1:"M200 55.538c-77 0-168 73.953-177 73.953-3 0-7\n-2.175-9-5.437L2 97c-1-2-2-4-2-6 0-4 2-7 5-9l20-12C116 12 171 0 207 0c86 0\n 114 68 191 68 78 0 168-68 177-68 4 0 7 2 9 5l12 19c1 2.175 2 4.35 2 6.525 0\n 4.35-2 7.613-5 9.788l-19 13.05c-92 63.077-116.937 75.308-183 76.128\n-68.267.847-113-73.952-191-73.952z",tilde2:"M344 55.266c-142 0-300.638 81.316-311.5 86.418\n-8.01 3.762-22.5 10.91-23.5 5.562L1 120c-1-2-1-3-1-4 0-5 3-9 8-10l18.4-9C160.9\n 31.9 283 0 358 0c148 0 188 122 331 122s314-97 326-97c4 0 8 2 10 7l7 21.114\nc1 2.14 1 3.21 1 4.28 0 5.347-3 9.626-7 10.696l-22.3 12.622C852.6 158.372 751\n 181.476 676 181.476c-149 0-189-126.21-332-126.21z",tilde3:"M786 59C457 59 32 175.242 13 175.242c-6 0-10-3.457\n-11-10.37L.15 138c-1-7 3-12 10-13l19.2-6.4C378.4 40.7 634.3 0 804.3 0c337 0\n 411.8 157 746.8 157 328 0 754-112 773-112 5 0 10 3 11 9l1 14.075c1 8.066-.697\n 16.595-6.697 17.492l-21.052 7.31c-367.9 98.146-609.15 122.696-778.15 122.696\n -338 0-409-156.573-744-156.573z",tilde4:"M786 58C457 58 32 177.487 13 177.487c-6 0-10-3.345\n-11-10.035L.15 143c-1-7 3-12 10-13l22-6.7C381.2 35 637.15 0 807.15 0c337 0 409\n 177 744 177 328 0 754-127 773-127 5 0 10 3 11 9l1 14.794c1 7.805-3 13.38-9\n 14.495l-20.7 5.574c-366.85 99.79-607.3 139.372-776.3 139.372-338 0-409\n -175.236-744-175.236z",vec:"M377 20c0-5.333 1.833-10 5.5-14S391 0 397 0c4.667 0 8.667 1.667 12 5\n3.333 2.667 6.667 9 10 19 6.667 24.667 20.333 43.667 41 57 7.333 4.667 11\n10.667 11 18 0 6-1 10-3 12s-6.667 5-14 9c-28.667 14.667-53.667 35.667-75 63\n-1.333 1.333-3.167 3.5-5.5 6.5s-4 4.833-5 5.5c-1 .667-2.5 1.333-4.5 2s-4.333 1\n-7 1c-4.667 0-9.167-1.833-13.5-5.5S337 184 337 178c0-12.667 15.667-32.333 47-59\nH213l-171-1c-8.667-6-13-12.333-13-19 0-4.667 4.333-11.333 13-20h359\nc-16-25.333-24-45-24-59z",widehat1:"M529 0h5l519 115c5 1 9 5 9 10 0 1-1 2-1 3l-4 22\nc-1 5-5 9-11 9h-2L532 67 19 159h-2c-5 0-9-4-11-9l-5-22c-1-6 2-12 8-13z",widehat2:"M1181 0h2l1171 176c6 0 10 5 10 11l-2 23c-1 6-5 10\n-11 10h-1L1182 67 15 220h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z",widehat3:"M1181 0h2l1171 236c6 0 10 5 10 11l-2 23c-1 6-5 10\n-11 10h-1L1182 67 15 280h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z",widehat4:"M1181 0h2l1171 296c6 0 10 5 10 11l-2 23c-1 6-5 10\n-11 10h-1L1182 67 15 340h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z",widecheck1:"M529,159h5l519,-115c5,-1,9,-5,9,-10c0,-1,-1,-2,-1,-3l-4,-22c-1,\n-5,-5,-9,-11,-9h-2l-512,92l-513,-92h-2c-5,0,-9,4,-11,9l-5,22c-1,6,2,12,8,13z",widecheck2:"M1181,220h2l1171,-176c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,\n-11,-10h-1l-1168,153l-1167,-153h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z",widecheck3:"M1181,280h2l1171,-236c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,\n-11,-10h-1l-1168,213l-1167,-213h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z",widecheck4:"M1181,340h2l1171,-296c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,\n-11,-10h-1l-1168,273l-1167,-273h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z",baraboveleftarrow:"M400000 620h-399890l3 -3c68.7 -52.7 113.7 -120 135 -202\nc4 -14.7 6 -23 6 -25c0 -7.3 -7 -11 -21 -11c-8 0 -13.2 0.8 -15.5 2.5\nc-2.3 1.7 -4.2 5.8 -5.5 12.5c-1.3 4.7 -2.7 10.3 -4 17c-12 48.7 -34.8 92 -68.5 130\ns-74.2 66.3 -121.5 85c-10 4 -16 7.7 -18 11c0 8.7 6 14.3 18 17c47.3 18.7 87.8 47\n121.5 85s56.5 81.3 68.5 130c0.7 2 1.3 5 2 9s1.2 6.7 1.5 8c0.3 1.3 1 3.3 2 6\ns2.2 4.5 3.5 5.5c1.3 1 3.3 1.8 6 2.5s6 1 10 1c14 0 21 -3.7 21 -11\nc0 -2 -2 -10.3 -6 -25c-20 -79.3 -65 -146.7 -135 -202l-3 -3h399890z\nM100 620v40h399900v-40z M0 241v40h399900v-40zM0 241v40h399900v-40z",rightarrowabovebar:"M0 241v40h399891c-47.3 35.3-84 78-110 128-16.7 32\n-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20 11 8 0\n13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7 39\n-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85-40.5\n-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5\n-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67\n151.7 139 205zm96 379h399894v40H0zm0 0h399904v40H0z",baraboveshortleftharpoon:"M507,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11\nc1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17\nc2,0.7,5,1,9,1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21\nc-32,-87.3,-82.7,-157.7,-152,-211c0,0,-3,-3,-3,-3l399351,0l0,-40\nc-398570,0,-399437,0,-399437,0z M593 435 v40 H399500 v-40z\nM0 281 v-40 H399908 v40z M0 281 v-40 H399908 v40z",rightharpoonaboveshortbar:"M0,241 l0,40c399126,0,399993,0,399993,0\nc4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,\n-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6\nc-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z\nM0 241 v40 H399908 v-40z M0 475 v-40 H399500 v40z M0 475 v-40 H399500 v40z",shortbaraboveleftharpoon:"M7,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11\nc1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17c2,0.7,5,1,9,\n1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21c-32,-87.3,-82.7,-157.7,\n-152,-211c0,0,-3,-3,-3,-3l399907,0l0,-40c-399126,0,-399993,0,-399993,0z\nM93 435 v40 H400000 v-40z M500 241 v40 H400000 v-40z M500 241 v40 H400000 v-40z",shortrightharpoonabovebar:"M53,241l0,40c398570,0,399437,0,399437,0\nc4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,\n-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6\nc-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z\nM500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z"};class ne{constructor(e){this.children=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.children=e,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}hasClass(e){return A.contains(this.classes,e)}toNode(){var t=document.createDocumentFragment();for(let e=0;ee.toText()).join("")}}var ie={"AMS-Regular":{32:[0,0,0,0,.25],65:[0,.68889,0,0,.72222],66:[0,.68889,0,0,.66667],67:[0,.68889,0,0,.72222],68:[0,.68889,0,0,.72222],69:[0,.68889,0,0,.66667],70:[0,.68889,0,0,.61111],71:[0,.68889,0,0,.77778],72:[0,.68889,0,0,.77778],73:[0,.68889,0,0,.38889],74:[.16667,.68889,0,0,.5],75:[0,.68889,0,0,.77778],76:[0,.68889,0,0,.66667],77:[0,.68889,0,0,.94445],78:[0,.68889,0,0,.72222],79:[.16667,.68889,0,0,.77778],80:[0,.68889,0,0,.61111],81:[.16667,.68889,0,0,.77778],82:[0,.68889,0,0,.72222],83:[0,.68889,0,0,.55556],84:[0,.68889,0,0,.66667],85:[0,.68889,0,0,.72222],86:[0,.68889,0,0,.72222],87:[0,.68889,0,0,1],88:[0,.68889,0,0,.72222],89:[0,.68889,0,0,.72222],90:[0,.68889,0,0,.66667],107:[0,.68889,0,0,.55556],160:[0,0,0,0,.25],165:[0,.675,.025,0,.75],174:[.15559,.69224,0,0,.94666],240:[0,.68889,0,0,.55556],295:[0,.68889,0,0,.54028],710:[0,.825,0,0,2.33334],732:[0,.9,0,0,2.33334],770:[0,.825,0,0,2.33334],771:[0,.9,0,0,2.33334],989:[.08167,.58167,0,0,.77778],1008:[0,.43056,.04028,0,.66667],8245:[0,.54986,0,0,.275],8463:[0,.68889,0,0,.54028],8487:[0,.68889,0,0,.72222],8498:[0,.68889,0,0,.55556],8502:[0,.68889,0,0,.66667],8503:[0,.68889,0,0,.44445],8504:[0,.68889,0,0,.66667],8513:[0,.68889,0,0,.63889],8592:[-.03598,.46402,0,0,.5],8594:[-.03598,.46402,0,0,.5],8602:[-.13313,.36687,0,0,1],8603:[-.13313,.36687,0,0,1],8606:[.01354,.52239,0,0,1],8608:[.01354,.52239,0,0,1],8610:[.01354,.52239,0,0,1.11111],8611:[.01354,.52239,0,0,1.11111],8619:[0,.54986,0,0,1],8620:[0,.54986,0,0,1],8621:[-.13313,.37788,0,0,1.38889],8622:[-.13313,.36687,0,0,1],8624:[0,.69224,0,0,.5],8625:[0,.69224,0,0,.5],8630:[0,.43056,0,0,1],8631:[0,.43056,0,0,1],8634:[.08198,.58198,0,0,.77778],8635:[.08198,.58198,0,0,.77778],8638:[.19444,.69224,0,0,.41667],8639:[.19444,.69224,0,0,.41667],8642:[.19444,.69224,0,0,.41667],8643:[.19444,.69224,0,0,.41667],8644:[.1808,.675,0,0,1],8646:[.1808,.675,0,0,1],8647:[.1808,.675,0,0,1],8648:[.19444,.69224,0,0,.83334],8649:[.1808,.675,0,0,1],8650:[.19444,.69224,0,0,.83334],8651:[.01354,.52239,0,0,1],8652:[.01354,.52239,0,0,1],8653:[-.13313,.36687,0,0,1],8654:[-.13313,.36687,0,0,1],8655:[-.13313,.36687,0,0,1],8666:[.13667,.63667,0,0,1],8667:[.13667,.63667,0,0,1],8669:[-.13313,.37788,0,0,1],8672:[-.064,.437,0,0,1.334],8674:[-.064,.437,0,0,1.334],8705:[0,.825,0,0,.5],8708:[0,.68889,0,0,.55556],8709:[.08167,.58167,0,0,.77778],8717:[0,.43056,0,0,.42917],8722:[-.03598,.46402,0,0,.5],8724:[.08198,.69224,0,0,.77778],8726:[.08167,.58167,0,0,.77778],8733:[0,.69224,0,0,.77778],8736:[0,.69224,0,0,.72222],8737:[0,.69224,0,0,.72222],8738:[.03517,.52239,0,0,.72222],8739:[.08167,.58167,0,0,.22222],8740:[.25142,.74111,0,0,.27778],8741:[.08167,.58167,0,0,.38889],8742:[.25142,.74111,0,0,.5],8756:[0,.69224,0,0,.66667],8757:[0,.69224,0,0,.66667],8764:[-.13313,.36687,0,0,.77778],8765:[-.13313,.37788,0,0,.77778],8769:[-.13313,.36687,0,0,.77778],8770:[-.03625,.46375,0,0,.77778],8774:[.30274,.79383,0,0,.77778],8776:[-.01688,.48312,0,0,.77778],8778:[.08167,.58167,0,0,.77778],8782:[.06062,.54986,0,0,.77778],8783:[.06062,.54986,0,0,.77778],8785:[.08198,.58198,0,0,.77778],8786:[.08198,.58198,0,0,.77778],8787:[.08198,.58198,0,0,.77778],8790:[0,.69224,0,0,.77778],8791:[.22958,.72958,0,0,.77778],8796:[.08198,.91667,0,0,.77778],8806:[.25583,.75583,0,0,.77778],8807:[.25583,.75583,0,0,.77778],8808:[.25142,.75726,0,0,.77778],8809:[.25142,.75726,0,0,.77778],8812:[.25583,.75583,0,0,.5],8814:[.20576,.70576,0,0,.77778],8815:[.20576,.70576,0,0,.77778],8816:[.30274,.79383,0,0,.77778],8817:[.30274,.79383,0,0,.77778],8818:[.22958,.72958,0,0,.77778],8819:[.22958,.72958,0,0,.77778],8822:[.1808,.675,0,0,.77778],8823:[.1808,.675,0,0,.77778],8828:[.13667,.63667,0,0,.77778],8829:[.13667,.63667,0,0,.77778],8830:[.22958,.72958,0,0,.77778],8831:[.22958,.72958,0,0,.77778],8832:[.20576,.70576,0,0,.77778],8833:[.20576,.70576,0,0,.77778],8840:[.30274,.79383,0,0,.77778],8841:[.30274,.79383,0,0,.77778],8842:[.13597,.63597,0,0,.77778],8843:[.13597,.63597,0,0,.77778],8847:[.03517,.54986,0,0,.77778],8848:[.03517,.54986,0,0,.77778],8858:[.08198,.58198,0,0,.77778],8859:[.08198,.58198,0,0,.77778],8861:[.08198,.58198,0,0,.77778],8862:[0,.675,0,0,.77778],8863:[0,.675,0,0,.77778],8864:[0,.675,0,0,.77778],8865:[0,.675,0,0,.77778],8872:[0,.69224,0,0,.61111],8873:[0,.69224,0,0,.72222],8874:[0,.69224,0,0,.88889],8876:[0,.68889,0,0,.61111],8877:[0,.68889,0,0,.61111],8878:[0,.68889,0,0,.72222],8879:[0,.68889,0,0,.72222],8882:[.03517,.54986,0,0,.77778],8883:[.03517,.54986,0,0,.77778],8884:[.13667,.63667,0,0,.77778],8885:[.13667,.63667,0,0,.77778],8888:[0,.54986,0,0,1.11111],8890:[.19444,.43056,0,0,.55556],8891:[.19444,.69224,0,0,.61111],8892:[.19444,.69224,0,0,.61111],8901:[0,.54986,0,0,.27778],8903:[.08167,.58167,0,0,.77778],8905:[.08167,.58167,0,0,.77778],8906:[.08167,.58167,0,0,.77778],8907:[0,.69224,0,0,.77778],8908:[0,.69224,0,0,.77778],8909:[-.03598,.46402,0,0,.77778],8910:[0,.54986,0,0,.76042],8911:[0,.54986,0,0,.76042],8912:[.03517,.54986,0,0,.77778],8913:[.03517,.54986,0,0,.77778],8914:[0,.54986,0,0,.66667],8915:[0,.54986,0,0,.66667],8916:[0,.69224,0,0,.66667],8918:[.0391,.5391,0,0,.77778],8919:[.0391,.5391,0,0,.77778],8920:[.03517,.54986,0,0,1.33334],8921:[.03517,.54986,0,0,1.33334],8922:[.38569,.88569,0,0,.77778],8923:[.38569,.88569,0,0,.77778],8926:[.13667,.63667,0,0,.77778],8927:[.13667,.63667,0,0,.77778],8928:[.30274,.79383,0,0,.77778],8929:[.30274,.79383,0,0,.77778],8934:[.23222,.74111,0,0,.77778],8935:[.23222,.74111,0,0,.77778],8936:[.23222,.74111,0,0,.77778],8937:[.23222,.74111,0,0,.77778],8938:[.20576,.70576,0,0,.77778],8939:[.20576,.70576,0,0,.77778],8940:[.30274,.79383,0,0,.77778],8941:[.30274,.79383,0,0,.77778],8994:[.19444,.69224,0,0,.77778],8995:[.19444,.69224,0,0,.77778],9416:[.15559,.69224,0,0,.90222],9484:[0,.69224,0,0,.5],9488:[0,.69224,0,0,.5],9492:[0,.37788,0,0,.5],9496:[0,.37788,0,0,.5],9585:[.19444,.68889,0,0,.88889],9586:[.19444,.74111,0,0,.88889],9632:[0,.675,0,0,.77778],9633:[0,.675,0,0,.77778],9650:[0,.54986,0,0,.72222],9651:[0,.54986,0,0,.72222],9654:[.03517,.54986,0,0,.77778],9660:[0,.54986,0,0,.72222],9661:[0,.54986,0,0,.72222],9664:[.03517,.54986,0,0,.77778],9674:[.11111,.69224,0,0,.66667],9733:[.19444,.69224,0,0,.94445],10003:[0,.69224,0,0,.83334],10016:[0,.69224,0,0,.83334],10731:[.11111,.69224,0,0,.66667],10846:[.19444,.75583,0,0,.61111],10877:[.13667,.63667,0,0,.77778],10878:[.13667,.63667,0,0,.77778],10885:[.25583,.75583,0,0,.77778],10886:[.25583,.75583,0,0,.77778],10887:[.13597,.63597,0,0,.77778],10888:[.13597,.63597,0,0,.77778],10889:[.26167,.75726,0,0,.77778],10890:[.26167,.75726,0,0,.77778],10891:[.48256,.98256,0,0,.77778],10892:[.48256,.98256,0,0,.77778],10901:[.13667,.63667,0,0,.77778],10902:[.13667,.63667,0,0,.77778],10933:[.25142,.75726,0,0,.77778],10934:[.25142,.75726,0,0,.77778],10935:[.26167,.75726,0,0,.77778],10936:[.26167,.75726,0,0,.77778],10937:[.26167,.75726,0,0,.77778],10938:[.26167,.75726,0,0,.77778],10949:[.25583,.75583,0,0,.77778],10950:[.25583,.75583,0,0,.77778],10955:[.28481,.79383,0,0,.77778],10956:[.28481,.79383,0,0,.77778],57350:[.08167,.58167,0,0,.22222],57351:[.08167,.58167,0,0,.38889],57352:[.08167,.58167,0,0,.77778],57353:[0,.43056,.04028,0,.66667],57356:[.25142,.75726,0,0,.77778],57357:[.25142,.75726,0,0,.77778],57358:[.41951,.91951,0,0,.77778],57359:[.30274,.79383,0,0,.77778],57360:[.30274,.79383,0,0,.77778],57361:[.41951,.91951,0,0,.77778],57366:[.25142,.75726,0,0,.77778],57367:[.25142,.75726,0,0,.77778],57368:[.25142,.75726,0,0,.77778],57369:[.25142,.75726,0,0,.77778],57370:[.13597,.63597,0,0,.77778],57371:[.13597,.63597,0,0,.77778]},"Caligraphic-Regular":{32:[0,0,0,0,.25],65:[0,.68333,0,.19445,.79847],66:[0,.68333,.03041,.13889,.65681],67:[0,.68333,.05834,.13889,.52653],68:[0,.68333,.02778,.08334,.77139],69:[0,.68333,.08944,.11111,.52778],70:[0,.68333,.09931,.11111,.71875],71:[.09722,.68333,.0593,.11111,.59487],72:[0,.68333,.00965,.11111,.84452],73:[0,.68333,.07382,0,.54452],74:[.09722,.68333,.18472,.16667,.67778],75:[0,.68333,.01445,.05556,.76195],76:[0,.68333,0,.13889,.68972],77:[0,.68333,0,.13889,1.2009],78:[0,.68333,.14736,.08334,.82049],79:[0,.68333,.02778,.11111,.79611],80:[0,.68333,.08222,.08334,.69556],81:[.09722,.68333,0,.11111,.81667],82:[0,.68333,0,.08334,.8475],83:[0,.68333,.075,.13889,.60556],84:[0,.68333,.25417,0,.54464],85:[0,.68333,.09931,.08334,.62583],86:[0,.68333,.08222,0,.61278],87:[0,.68333,.08222,.08334,.98778],88:[0,.68333,.14643,.13889,.7133],89:[.09722,.68333,.08222,.08334,.66834],90:[0,.68333,.07944,.13889,.72473],160:[0,0,0,0,.25]},"Fraktur-Regular":{32:[0,0,0,0,.25],33:[0,.69141,0,0,.29574],34:[0,.69141,0,0,.21471],38:[0,.69141,0,0,.73786],39:[0,.69141,0,0,.21201],40:[.24982,.74947,0,0,.38865],41:[.24982,.74947,0,0,.38865],42:[0,.62119,0,0,.27764],43:[.08319,.58283,0,0,.75623],44:[0,.10803,0,0,.27764],45:[.08319,.58283,0,0,.75623],46:[0,.10803,0,0,.27764],47:[.24982,.74947,0,0,.50181],48:[0,.47534,0,0,.50181],49:[0,.47534,0,0,.50181],50:[0,.47534,0,0,.50181],51:[.18906,.47534,0,0,.50181],52:[.18906,.47534,0,0,.50181],53:[.18906,.47534,0,0,.50181],54:[0,.69141,0,0,.50181],55:[.18906,.47534,0,0,.50181],56:[0,.69141,0,0,.50181],57:[.18906,.47534,0,0,.50181],58:[0,.47534,0,0,.21606],59:[.12604,.47534,0,0,.21606],61:[-.13099,.36866,0,0,.75623],63:[0,.69141,0,0,.36245],65:[0,.69141,0,0,.7176],66:[0,.69141,0,0,.88397],67:[0,.69141,0,0,.61254],68:[0,.69141,0,0,.83158],69:[0,.69141,0,0,.66278],70:[.12604,.69141,0,0,.61119],71:[0,.69141,0,0,.78539],72:[.06302,.69141,0,0,.7203],73:[0,.69141,0,0,.55448],74:[.12604,.69141,0,0,.55231],75:[0,.69141,0,0,.66845],76:[0,.69141,0,0,.66602],77:[0,.69141,0,0,1.04953],78:[0,.69141,0,0,.83212],79:[0,.69141,0,0,.82699],80:[.18906,.69141,0,0,.82753],81:[.03781,.69141,0,0,.82699],82:[0,.69141,0,0,.82807],83:[0,.69141,0,0,.82861],84:[0,.69141,0,0,.66899],85:[0,.69141,0,0,.64576],86:[0,.69141,0,0,.83131],87:[0,.69141,0,0,1.04602],88:[0,.69141,0,0,.71922],89:[.18906,.69141,0,0,.83293],90:[.12604,.69141,0,0,.60201],91:[.24982,.74947,0,0,.27764],93:[.24982,.74947,0,0,.27764],94:[0,.69141,0,0,.49965],97:[0,.47534,0,0,.50046],98:[0,.69141,0,0,.51315],99:[0,.47534,0,0,.38946],100:[0,.62119,0,0,.49857],101:[0,.47534,0,0,.40053],102:[.18906,.69141,0,0,.32626],103:[.18906,.47534,0,0,.5037],104:[.18906,.69141,0,0,.52126],105:[0,.69141,0,0,.27899],106:[0,.69141,0,0,.28088],107:[0,.69141,0,0,.38946],108:[0,.69141,0,0,.27953],109:[0,.47534,0,0,.76676],110:[0,.47534,0,0,.52666],111:[0,.47534,0,0,.48885],112:[.18906,.52396,0,0,.50046],113:[.18906,.47534,0,0,.48912],114:[0,.47534,0,0,.38919],115:[0,.47534,0,0,.44266],116:[0,.62119,0,0,.33301],117:[0,.47534,0,0,.5172],118:[0,.52396,0,0,.5118],119:[0,.52396,0,0,.77351],120:[.18906,.47534,0,0,.38865],121:[.18906,.47534,0,0,.49884],122:[.18906,.47534,0,0,.39054],160:[0,0,0,0,.25],8216:[0,.69141,0,0,.21471],8217:[0,.69141,0,0,.21471],58112:[0,.62119,0,0,.49749],58113:[0,.62119,0,0,.4983],58114:[.18906,.69141,0,0,.33328],58115:[.18906,.69141,0,0,.32923],58116:[.18906,.47534,0,0,.50343],58117:[0,.69141,0,0,.33301],58118:[0,.62119,0,0,.33409],58119:[0,.47534,0,0,.50073]},"Main-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.35],34:[0,.69444,0,0,.60278],35:[.19444,.69444,0,0,.95833],36:[.05556,.75,0,0,.575],37:[.05556,.75,0,0,.95833],38:[0,.69444,0,0,.89444],39:[0,.69444,0,0,.31944],40:[.25,.75,0,0,.44722],41:[.25,.75,0,0,.44722],42:[0,.75,0,0,.575],43:[.13333,.63333,0,0,.89444],44:[.19444,.15556,0,0,.31944],45:[0,.44444,0,0,.38333],46:[0,.15556,0,0,.31944],47:[.25,.75,0,0,.575],48:[0,.64444,0,0,.575],49:[0,.64444,0,0,.575],50:[0,.64444,0,0,.575],51:[0,.64444,0,0,.575],52:[0,.64444,0,0,.575],53:[0,.64444,0,0,.575],54:[0,.64444,0,0,.575],55:[0,.64444,0,0,.575],56:[0,.64444,0,0,.575],57:[0,.64444,0,0,.575],58:[0,.44444,0,0,.31944],59:[.19444,.44444,0,0,.31944],60:[.08556,.58556,0,0,.89444],61:[-.10889,.39111,0,0,.89444],62:[.08556,.58556,0,0,.89444],63:[0,.69444,0,0,.54305],64:[0,.69444,0,0,.89444],65:[0,.68611,0,0,.86944],66:[0,.68611,0,0,.81805],67:[0,.68611,0,0,.83055],68:[0,.68611,0,0,.88194],69:[0,.68611,0,0,.75555],70:[0,.68611,0,0,.72361],71:[0,.68611,0,0,.90416],72:[0,.68611,0,0,.9],73:[0,.68611,0,0,.43611],74:[0,.68611,0,0,.59444],75:[0,.68611,0,0,.90138],76:[0,.68611,0,0,.69166],77:[0,.68611,0,0,1.09166],78:[0,.68611,0,0,.9],79:[0,.68611,0,0,.86388],80:[0,.68611,0,0,.78611],81:[.19444,.68611,0,0,.86388],82:[0,.68611,0,0,.8625],83:[0,.68611,0,0,.63889],84:[0,.68611,0,0,.8],85:[0,.68611,0,0,.88472],86:[0,.68611,.01597,0,.86944],87:[0,.68611,.01597,0,1.18888],88:[0,.68611,0,0,.86944],89:[0,.68611,.02875,0,.86944],90:[0,.68611,0,0,.70277],91:[.25,.75,0,0,.31944],92:[.25,.75,0,0,.575],93:[.25,.75,0,0,.31944],94:[0,.69444,0,0,.575],95:[.31,.13444,.03194,0,.575],97:[0,.44444,0,0,.55902],98:[0,.69444,0,0,.63889],99:[0,.44444,0,0,.51111],100:[0,.69444,0,0,.63889],101:[0,.44444,0,0,.52708],102:[0,.69444,.10903,0,.35139],103:[.19444,.44444,.01597,0,.575],104:[0,.69444,0,0,.63889],105:[0,.69444,0,0,.31944],106:[.19444,.69444,0,0,.35139],107:[0,.69444,0,0,.60694],108:[0,.69444,0,0,.31944],109:[0,.44444,0,0,.95833],110:[0,.44444,0,0,.63889],111:[0,.44444,0,0,.575],112:[.19444,.44444,0,0,.63889],113:[.19444,.44444,0,0,.60694],114:[0,.44444,0,0,.47361],115:[0,.44444,0,0,.45361],116:[0,.63492,0,0,.44722],117:[0,.44444,0,0,.63889],118:[0,.44444,.01597,0,.60694],119:[0,.44444,.01597,0,.83055],120:[0,.44444,0,0,.60694],121:[.19444,.44444,.01597,0,.60694],122:[0,.44444,0,0,.51111],123:[.25,.75,0,0,.575],124:[.25,.75,0,0,.31944],125:[.25,.75,0,0,.575],126:[.35,.34444,0,0,.575],160:[0,0,0,0,.25],163:[0,.69444,0,0,.86853],168:[0,.69444,0,0,.575],172:[0,.44444,0,0,.76666],176:[0,.69444,0,0,.86944],177:[.13333,.63333,0,0,.89444],184:[.17014,0,0,0,.51111],198:[0,.68611,0,0,1.04166],215:[.13333,.63333,0,0,.89444],216:[.04861,.73472,0,0,.89444],223:[0,.69444,0,0,.59722],230:[0,.44444,0,0,.83055],247:[.13333,.63333,0,0,.89444],248:[.09722,.54167,0,0,.575],305:[0,.44444,0,0,.31944],338:[0,.68611,0,0,1.16944],339:[0,.44444,0,0,.89444],567:[.19444,.44444,0,0,.35139],710:[0,.69444,0,0,.575],711:[0,.63194,0,0,.575],713:[0,.59611,0,0,.575],714:[0,.69444,0,0,.575],715:[0,.69444,0,0,.575],728:[0,.69444,0,0,.575],729:[0,.69444,0,0,.31944],730:[0,.69444,0,0,.86944],732:[0,.69444,0,0,.575],733:[0,.69444,0,0,.575],915:[0,.68611,0,0,.69166],916:[0,.68611,0,0,.95833],920:[0,.68611,0,0,.89444],923:[0,.68611,0,0,.80555],926:[0,.68611,0,0,.76666],928:[0,.68611,0,0,.9],931:[0,.68611,0,0,.83055],933:[0,.68611,0,0,.89444],934:[0,.68611,0,0,.83055],936:[0,.68611,0,0,.89444],937:[0,.68611,0,0,.83055],8211:[0,.44444,.03194,0,.575],8212:[0,.44444,.03194,0,1.14999],8216:[0,.69444,0,0,.31944],8217:[0,.69444,0,0,.31944],8220:[0,.69444,0,0,.60278],8221:[0,.69444,0,0,.60278],8224:[.19444,.69444,0,0,.51111],8225:[.19444,.69444,0,0,.51111],8242:[0,.55556,0,0,.34444],8407:[0,.72444,.15486,0,.575],8463:[0,.69444,0,0,.66759],8465:[0,.69444,0,0,.83055],8467:[0,.69444,0,0,.47361],8472:[.19444,.44444,0,0,.74027],8476:[0,.69444,0,0,.83055],8501:[0,.69444,0,0,.70277],8592:[-.10889,.39111,0,0,1.14999],8593:[.19444,.69444,0,0,.575],8594:[-.10889,.39111,0,0,1.14999],8595:[.19444,.69444,0,0,.575],8596:[-.10889,.39111,0,0,1.14999],8597:[.25,.75,0,0,.575],8598:[.19444,.69444,0,0,1.14999],8599:[.19444,.69444,0,0,1.14999],8600:[.19444,.69444,0,0,1.14999],8601:[.19444,.69444,0,0,1.14999],8636:[-.10889,.39111,0,0,1.14999],8637:[-.10889,.39111,0,0,1.14999],8640:[-.10889,.39111,0,0,1.14999],8641:[-.10889,.39111,0,0,1.14999],8656:[-.10889,.39111,0,0,1.14999],8657:[.19444,.69444,0,0,.70277],8658:[-.10889,.39111,0,0,1.14999],8659:[.19444,.69444,0,0,.70277],8660:[-.10889,.39111,0,0,1.14999],8661:[.25,.75,0,0,.70277],8704:[0,.69444,0,0,.63889],8706:[0,.69444,.06389,0,.62847],8707:[0,.69444,0,0,.63889],8709:[.05556,.75,0,0,.575],8711:[0,.68611,0,0,.95833],8712:[.08556,.58556,0,0,.76666],8715:[.08556,.58556,0,0,.76666],8722:[.13333,.63333,0,0,.89444],8723:[.13333,.63333,0,0,.89444],8725:[.25,.75,0,0,.575],8726:[.25,.75,0,0,.575],8727:[-.02778,.47222,0,0,.575],8728:[-.02639,.47361,0,0,.575],8729:[-.02639,.47361,0,0,.575],8730:[.18,.82,0,0,.95833],8733:[0,.44444,0,0,.89444],8734:[0,.44444,0,0,1.14999],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.31944],8741:[.25,.75,0,0,.575],8743:[0,.55556,0,0,.76666],8744:[0,.55556,0,0,.76666],8745:[0,.55556,0,0,.76666],8746:[0,.55556,0,0,.76666],8747:[.19444,.69444,.12778,0,.56875],8764:[-.10889,.39111,0,0,.89444],8768:[.19444,.69444,0,0,.31944],8771:[.00222,.50222,0,0,.89444],8773:[.027,.638,0,0,.894],8776:[.02444,.52444,0,0,.89444],8781:[.00222,.50222,0,0,.89444],8801:[.00222,.50222,0,0,.89444],8804:[.19667,.69667,0,0,.89444],8805:[.19667,.69667,0,0,.89444],8810:[.08556,.58556,0,0,1.14999],8811:[.08556,.58556,0,0,1.14999],8826:[.08556,.58556,0,0,.89444],8827:[.08556,.58556,0,0,.89444],8834:[.08556,.58556,0,0,.89444],8835:[.08556,.58556,0,0,.89444],8838:[.19667,.69667,0,0,.89444],8839:[.19667,.69667,0,0,.89444],8846:[0,.55556,0,0,.76666],8849:[.19667,.69667,0,0,.89444],8850:[.19667,.69667,0,0,.89444],8851:[0,.55556,0,0,.76666],8852:[0,.55556,0,0,.76666],8853:[.13333,.63333,0,0,.89444],8854:[.13333,.63333,0,0,.89444],8855:[.13333,.63333,0,0,.89444],8856:[.13333,.63333,0,0,.89444],8857:[.13333,.63333,0,0,.89444],8866:[0,.69444,0,0,.70277],8867:[0,.69444,0,0,.70277],8868:[0,.69444,0,0,.89444],8869:[0,.69444,0,0,.89444],8900:[-.02639,.47361,0,0,.575],8901:[-.02639,.47361,0,0,.31944],8902:[-.02778,.47222,0,0,.575],8968:[.25,.75,0,0,.51111],8969:[.25,.75,0,0,.51111],8970:[.25,.75,0,0,.51111],8971:[.25,.75,0,0,.51111],8994:[-.13889,.36111,0,0,1.14999],8995:[-.13889,.36111,0,0,1.14999],9651:[.19444,.69444,0,0,1.02222],9657:[-.02778,.47222,0,0,.575],9661:[.19444,.69444,0,0,1.02222],9667:[-.02778,.47222,0,0,.575],9711:[.19444,.69444,0,0,1.14999],9824:[.12963,.69444,0,0,.89444],9825:[.12963,.69444,0,0,.89444],9826:[.12963,.69444,0,0,.89444],9827:[.12963,.69444,0,0,.89444],9837:[0,.75,0,0,.44722],9838:[.19444,.69444,0,0,.44722],9839:[.19444,.69444,0,0,.44722],10216:[.25,.75,0,0,.44722],10217:[.25,.75,0,0,.44722],10815:[0,.68611,0,0,.9],10927:[.19667,.69667,0,0,.89444],10928:[.19667,.69667,0,0,.89444],57376:[.19444,.69444,0,0,0]},"Main-BoldItalic":{32:[0,0,0,0,.25],33:[0,.69444,.11417,0,.38611],34:[0,.69444,.07939,0,.62055],35:[.19444,.69444,.06833,0,.94444],37:[.05556,.75,.12861,0,.94444],38:[0,.69444,.08528,0,.88555],39:[0,.69444,.12945,0,.35555],40:[.25,.75,.15806,0,.47333],41:[.25,.75,.03306,0,.47333],42:[0,.75,.14333,0,.59111],43:[.10333,.60333,.03306,0,.88555],44:[.19444,.14722,0,0,.35555],45:[0,.44444,.02611,0,.41444],46:[0,.14722,0,0,.35555],47:[.25,.75,.15806,0,.59111],48:[0,.64444,.13167,0,.59111],49:[0,.64444,.13167,0,.59111],50:[0,.64444,.13167,0,.59111],51:[0,.64444,.13167,0,.59111],52:[.19444,.64444,.13167,0,.59111],53:[0,.64444,.13167,0,.59111],54:[0,.64444,.13167,0,.59111],55:[.19444,.64444,.13167,0,.59111],56:[0,.64444,.13167,0,.59111],57:[0,.64444,.13167,0,.59111],58:[0,.44444,.06695,0,.35555],59:[.19444,.44444,.06695,0,.35555],61:[-.10889,.39111,.06833,0,.88555],63:[0,.69444,.11472,0,.59111],64:[0,.69444,.09208,0,.88555],65:[0,.68611,0,0,.86555],66:[0,.68611,.0992,0,.81666],67:[0,.68611,.14208,0,.82666],68:[0,.68611,.09062,0,.87555],69:[0,.68611,.11431,0,.75666],70:[0,.68611,.12903,0,.72722],71:[0,.68611,.07347,0,.89527],72:[0,.68611,.17208,0,.8961],73:[0,.68611,.15681,0,.47166],74:[0,.68611,.145,0,.61055],75:[0,.68611,.14208,0,.89499],76:[0,.68611,0,0,.69777],77:[0,.68611,.17208,0,1.07277],78:[0,.68611,.17208,0,.8961],79:[0,.68611,.09062,0,.85499],80:[0,.68611,.0992,0,.78721],81:[.19444,.68611,.09062,0,.85499],82:[0,.68611,.02559,0,.85944],83:[0,.68611,.11264,0,.64999],84:[0,.68611,.12903,0,.7961],85:[0,.68611,.17208,0,.88083],86:[0,.68611,.18625,0,.86555],87:[0,.68611,.18625,0,1.15999],88:[0,.68611,.15681,0,.86555],89:[0,.68611,.19803,0,.86555],90:[0,.68611,.14208,0,.70888],91:[.25,.75,.1875,0,.35611],93:[.25,.75,.09972,0,.35611],94:[0,.69444,.06709,0,.59111],95:[.31,.13444,.09811,0,.59111],97:[0,.44444,.09426,0,.59111],98:[0,.69444,.07861,0,.53222],99:[0,.44444,.05222,0,.53222],100:[0,.69444,.10861,0,.59111],101:[0,.44444,.085,0,.53222],102:[.19444,.69444,.21778,0,.4],103:[.19444,.44444,.105,0,.53222],104:[0,.69444,.09426,0,.59111],105:[0,.69326,.11387,0,.35555],106:[.19444,.69326,.1672,0,.35555],107:[0,.69444,.11111,0,.53222],108:[0,.69444,.10861,0,.29666],109:[0,.44444,.09426,0,.94444],110:[0,.44444,.09426,0,.64999],111:[0,.44444,.07861,0,.59111],112:[.19444,.44444,.07861,0,.59111],113:[.19444,.44444,.105,0,.53222],114:[0,.44444,.11111,0,.50167],115:[0,.44444,.08167,0,.48694],116:[0,.63492,.09639,0,.385],117:[0,.44444,.09426,0,.62055],118:[0,.44444,.11111,0,.53222],119:[0,.44444,.11111,0,.76777],120:[0,.44444,.12583,0,.56055],121:[.19444,.44444,.105,0,.56166],122:[0,.44444,.13889,0,.49055],126:[.35,.34444,.11472,0,.59111],160:[0,0,0,0,.25],168:[0,.69444,.11473,0,.59111],176:[0,.69444,0,0,.94888],184:[.17014,0,0,0,.53222],198:[0,.68611,.11431,0,1.02277],216:[.04861,.73472,.09062,0,.88555],223:[.19444,.69444,.09736,0,.665],230:[0,.44444,.085,0,.82666],248:[.09722,.54167,.09458,0,.59111],305:[0,.44444,.09426,0,.35555],338:[0,.68611,.11431,0,1.14054],339:[0,.44444,.085,0,.82666],567:[.19444,.44444,.04611,0,.385],710:[0,.69444,.06709,0,.59111],711:[0,.63194,.08271,0,.59111],713:[0,.59444,.10444,0,.59111],714:[0,.69444,.08528,0,.59111],715:[0,.69444,0,0,.59111],728:[0,.69444,.10333,0,.59111],729:[0,.69444,.12945,0,.35555],730:[0,.69444,0,0,.94888],732:[0,.69444,.11472,0,.59111],733:[0,.69444,.11472,0,.59111],915:[0,.68611,.12903,0,.69777],916:[0,.68611,0,0,.94444],920:[0,.68611,.09062,0,.88555],923:[0,.68611,0,0,.80666],926:[0,.68611,.15092,0,.76777],928:[0,.68611,.17208,0,.8961],931:[0,.68611,.11431,0,.82666],933:[0,.68611,.10778,0,.88555],934:[0,.68611,.05632,0,.82666],936:[0,.68611,.10778,0,.88555],937:[0,.68611,.0992,0,.82666],8211:[0,.44444,.09811,0,.59111],8212:[0,.44444,.09811,0,1.18221],8216:[0,.69444,.12945,0,.35555],8217:[0,.69444,.12945,0,.35555],8220:[0,.69444,.16772,0,.62055],8221:[0,.69444,.07939,0,.62055]},"Main-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.12417,0,.30667],34:[0,.69444,.06961,0,.51444],35:[.19444,.69444,.06616,0,.81777],37:[.05556,.75,.13639,0,.81777],38:[0,.69444,.09694,0,.76666],39:[0,.69444,.12417,0,.30667],40:[.25,.75,.16194,0,.40889],41:[.25,.75,.03694,0,.40889],42:[0,.75,.14917,0,.51111],43:[.05667,.56167,.03694,0,.76666],44:[.19444,.10556,0,0,.30667],45:[0,.43056,.02826,0,.35778],46:[0,.10556,0,0,.30667],47:[.25,.75,.16194,0,.51111],48:[0,.64444,.13556,0,.51111],49:[0,.64444,.13556,0,.51111],50:[0,.64444,.13556,0,.51111],51:[0,.64444,.13556,0,.51111],52:[.19444,.64444,.13556,0,.51111],53:[0,.64444,.13556,0,.51111],54:[0,.64444,.13556,0,.51111],55:[.19444,.64444,.13556,0,.51111],56:[0,.64444,.13556,0,.51111],57:[0,.64444,.13556,0,.51111],58:[0,.43056,.0582,0,.30667],59:[.19444,.43056,.0582,0,.30667],61:[-.13313,.36687,.06616,0,.76666],63:[0,.69444,.1225,0,.51111],64:[0,.69444,.09597,0,.76666],65:[0,.68333,0,0,.74333],66:[0,.68333,.10257,0,.70389],67:[0,.68333,.14528,0,.71555],68:[0,.68333,.09403,0,.755],69:[0,.68333,.12028,0,.67833],70:[0,.68333,.13305,0,.65277],71:[0,.68333,.08722,0,.77361],72:[0,.68333,.16389,0,.74333],73:[0,.68333,.15806,0,.38555],74:[0,.68333,.14028,0,.525],75:[0,.68333,.14528,0,.76888],76:[0,.68333,0,0,.62722],77:[0,.68333,.16389,0,.89666],78:[0,.68333,.16389,0,.74333],79:[0,.68333,.09403,0,.76666],80:[0,.68333,.10257,0,.67833],81:[.19444,.68333,.09403,0,.76666],82:[0,.68333,.03868,0,.72944],83:[0,.68333,.11972,0,.56222],84:[0,.68333,.13305,0,.71555],85:[0,.68333,.16389,0,.74333],86:[0,.68333,.18361,0,.74333],87:[0,.68333,.18361,0,.99888],88:[0,.68333,.15806,0,.74333],89:[0,.68333,.19383,0,.74333],90:[0,.68333,.14528,0,.61333],91:[.25,.75,.1875,0,.30667],93:[.25,.75,.10528,0,.30667],94:[0,.69444,.06646,0,.51111],95:[.31,.12056,.09208,0,.51111],97:[0,.43056,.07671,0,.51111],98:[0,.69444,.06312,0,.46],99:[0,.43056,.05653,0,.46],100:[0,.69444,.10333,0,.51111],101:[0,.43056,.07514,0,.46],102:[.19444,.69444,.21194,0,.30667],103:[.19444,.43056,.08847,0,.46],104:[0,.69444,.07671,0,.51111],105:[0,.65536,.1019,0,.30667],106:[.19444,.65536,.14467,0,.30667],107:[0,.69444,.10764,0,.46],108:[0,.69444,.10333,0,.25555],109:[0,.43056,.07671,0,.81777],110:[0,.43056,.07671,0,.56222],111:[0,.43056,.06312,0,.51111],112:[.19444,.43056,.06312,0,.51111],113:[.19444,.43056,.08847,0,.46],114:[0,.43056,.10764,0,.42166],115:[0,.43056,.08208,0,.40889],116:[0,.61508,.09486,0,.33222],117:[0,.43056,.07671,0,.53666],118:[0,.43056,.10764,0,.46],119:[0,.43056,.10764,0,.66444],120:[0,.43056,.12042,0,.46389],121:[.19444,.43056,.08847,0,.48555],122:[0,.43056,.12292,0,.40889],126:[.35,.31786,.11585,0,.51111],160:[0,0,0,0,.25],168:[0,.66786,.10474,0,.51111],176:[0,.69444,0,0,.83129],184:[.17014,0,0,0,.46],198:[0,.68333,.12028,0,.88277],216:[.04861,.73194,.09403,0,.76666],223:[.19444,.69444,.10514,0,.53666],230:[0,.43056,.07514,0,.71555],248:[.09722,.52778,.09194,0,.51111],338:[0,.68333,.12028,0,.98499],339:[0,.43056,.07514,0,.71555],710:[0,.69444,.06646,0,.51111],711:[0,.62847,.08295,0,.51111],713:[0,.56167,.10333,0,.51111],714:[0,.69444,.09694,0,.51111],715:[0,.69444,0,0,.51111],728:[0,.69444,.10806,0,.51111],729:[0,.66786,.11752,0,.30667],730:[0,.69444,0,0,.83129],732:[0,.66786,.11585,0,.51111],733:[0,.69444,.1225,0,.51111],915:[0,.68333,.13305,0,.62722],916:[0,.68333,0,0,.81777],920:[0,.68333,.09403,0,.76666],923:[0,.68333,0,0,.69222],926:[0,.68333,.15294,0,.66444],928:[0,.68333,.16389,0,.74333],931:[0,.68333,.12028,0,.71555],933:[0,.68333,.11111,0,.76666],934:[0,.68333,.05986,0,.71555],936:[0,.68333,.11111,0,.76666],937:[0,.68333,.10257,0,.71555],8211:[0,.43056,.09208,0,.51111],8212:[0,.43056,.09208,0,1.02222],8216:[0,.69444,.12417,0,.30667],8217:[0,.69444,.12417,0,.30667],8220:[0,.69444,.1685,0,.51444],8221:[0,.69444,.06961,0,.51444],8463:[0,.68889,0,0,.54028]},"Main-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.27778],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.77778],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.19444,.10556,0,0,.27778],45:[0,.43056,0,0,.33333],46:[0,.10556,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.64444,0,0,.5],49:[0,.64444,0,0,.5],50:[0,.64444,0,0,.5],51:[0,.64444,0,0,.5],52:[0,.64444,0,0,.5],53:[0,.64444,0,0,.5],54:[0,.64444,0,0,.5],55:[0,.64444,0,0,.5],56:[0,.64444,0,0,.5],57:[0,.64444,0,0,.5],58:[0,.43056,0,0,.27778],59:[.19444,.43056,0,0,.27778],60:[.0391,.5391,0,0,.77778],61:[-.13313,.36687,0,0,.77778],62:[.0391,.5391,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.77778],65:[0,.68333,0,0,.75],66:[0,.68333,0,0,.70834],67:[0,.68333,0,0,.72222],68:[0,.68333,0,0,.76389],69:[0,.68333,0,0,.68056],70:[0,.68333,0,0,.65278],71:[0,.68333,0,0,.78472],72:[0,.68333,0,0,.75],73:[0,.68333,0,0,.36111],74:[0,.68333,0,0,.51389],75:[0,.68333,0,0,.77778],76:[0,.68333,0,0,.625],77:[0,.68333,0,0,.91667],78:[0,.68333,0,0,.75],79:[0,.68333,0,0,.77778],80:[0,.68333,0,0,.68056],81:[.19444,.68333,0,0,.77778],82:[0,.68333,0,0,.73611],83:[0,.68333,0,0,.55556],84:[0,.68333,0,0,.72222],85:[0,.68333,0,0,.75],86:[0,.68333,.01389,0,.75],87:[0,.68333,.01389,0,1.02778],88:[0,.68333,0,0,.75],89:[0,.68333,.025,0,.75],90:[0,.68333,0,0,.61111],91:[.25,.75,0,0,.27778],92:[.25,.75,0,0,.5],93:[.25,.75,0,0,.27778],94:[0,.69444,0,0,.5],95:[.31,.12056,.02778,0,.5],97:[0,.43056,0,0,.5],98:[0,.69444,0,0,.55556],99:[0,.43056,0,0,.44445],100:[0,.69444,0,0,.55556],101:[0,.43056,0,0,.44445],102:[0,.69444,.07778,0,.30556],103:[.19444,.43056,.01389,0,.5],104:[0,.69444,0,0,.55556],105:[0,.66786,0,0,.27778],106:[.19444,.66786,0,0,.30556],107:[0,.69444,0,0,.52778],108:[0,.69444,0,0,.27778],109:[0,.43056,0,0,.83334],110:[0,.43056,0,0,.55556],111:[0,.43056,0,0,.5],112:[.19444,.43056,0,0,.55556],113:[.19444,.43056,0,0,.52778],114:[0,.43056,0,0,.39167],115:[0,.43056,0,0,.39445],116:[0,.61508,0,0,.38889],117:[0,.43056,0,0,.55556],118:[0,.43056,.01389,0,.52778],119:[0,.43056,.01389,0,.72222],120:[0,.43056,0,0,.52778],121:[.19444,.43056,.01389,0,.52778],122:[0,.43056,0,0,.44445],123:[.25,.75,0,0,.5],124:[.25,.75,0,0,.27778],125:[.25,.75,0,0,.5],126:[.35,.31786,0,0,.5],160:[0,0,0,0,.25],163:[0,.69444,0,0,.76909],167:[.19444,.69444,0,0,.44445],168:[0,.66786,0,0,.5],172:[0,.43056,0,0,.66667],176:[0,.69444,0,0,.75],177:[.08333,.58333,0,0,.77778],182:[.19444,.69444,0,0,.61111],184:[.17014,0,0,0,.44445],198:[0,.68333,0,0,.90278],215:[.08333,.58333,0,0,.77778],216:[.04861,.73194,0,0,.77778],223:[0,.69444,0,0,.5],230:[0,.43056,0,0,.72222],247:[.08333,.58333,0,0,.77778],248:[.09722,.52778,0,0,.5],305:[0,.43056,0,0,.27778],338:[0,.68333,0,0,1.01389],339:[0,.43056,0,0,.77778],567:[.19444,.43056,0,0,.30556],710:[0,.69444,0,0,.5],711:[0,.62847,0,0,.5],713:[0,.56778,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.66786,0,0,.27778],730:[0,.69444,0,0,.75],732:[0,.66786,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.68333,0,0,.625],916:[0,.68333,0,0,.83334],920:[0,.68333,0,0,.77778],923:[0,.68333,0,0,.69445],926:[0,.68333,0,0,.66667],928:[0,.68333,0,0,.75],931:[0,.68333,0,0,.72222],933:[0,.68333,0,0,.77778],934:[0,.68333,0,0,.72222],936:[0,.68333,0,0,.77778],937:[0,.68333,0,0,.72222],8211:[0,.43056,.02778,0,.5],8212:[0,.43056,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5],8224:[.19444,.69444,0,0,.44445],8225:[.19444,.69444,0,0,.44445],8230:[0,.123,0,0,1.172],8242:[0,.55556,0,0,.275],8407:[0,.71444,.15382,0,.5],8463:[0,.68889,0,0,.54028],8465:[0,.69444,0,0,.72222],8467:[0,.69444,0,.11111,.41667],8472:[.19444,.43056,0,.11111,.63646],8476:[0,.69444,0,0,.72222],8501:[0,.69444,0,0,.61111],8592:[-.13313,.36687,0,0,1],8593:[.19444,.69444,0,0,.5],8594:[-.13313,.36687,0,0,1],8595:[.19444,.69444,0,0,.5],8596:[-.13313,.36687,0,0,1],8597:[.25,.75,0,0,.5],8598:[.19444,.69444,0,0,1],8599:[.19444,.69444,0,0,1],8600:[.19444,.69444,0,0,1],8601:[.19444,.69444,0,0,1],8614:[.011,.511,0,0,1],8617:[.011,.511,0,0,1.126],8618:[.011,.511,0,0,1.126],8636:[-.13313,.36687,0,0,1],8637:[-.13313,.36687,0,0,1],8640:[-.13313,.36687,0,0,1],8641:[-.13313,.36687,0,0,1],8652:[.011,.671,0,0,1],8656:[-.13313,.36687,0,0,1],8657:[.19444,.69444,0,0,.61111],8658:[-.13313,.36687,0,0,1],8659:[.19444,.69444,0,0,.61111],8660:[-.13313,.36687,0,0,1],8661:[.25,.75,0,0,.61111],8704:[0,.69444,0,0,.55556],8706:[0,.69444,.05556,.08334,.5309],8707:[0,.69444,0,0,.55556],8709:[.05556,.75,0,0,.5],8711:[0,.68333,0,0,.83334],8712:[.0391,.5391,0,0,.66667],8715:[.0391,.5391,0,0,.66667],8722:[.08333,.58333,0,0,.77778],8723:[.08333,.58333,0,0,.77778],8725:[.25,.75,0,0,.5],8726:[.25,.75,0,0,.5],8727:[-.03472,.46528,0,0,.5],8728:[-.05555,.44445,0,0,.5],8729:[-.05555,.44445,0,0,.5],8730:[.2,.8,0,0,.83334],8733:[0,.43056,0,0,.77778],8734:[0,.43056,0,0,1],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.27778],8741:[.25,.75,0,0,.5],8743:[0,.55556,0,0,.66667],8744:[0,.55556,0,0,.66667],8745:[0,.55556,0,0,.66667],8746:[0,.55556,0,0,.66667],8747:[.19444,.69444,.11111,0,.41667],8764:[-.13313,.36687,0,0,.77778],8768:[.19444,.69444,0,0,.27778],8771:[-.03625,.46375,0,0,.77778],8773:[-.022,.589,0,0,.778],8776:[-.01688,.48312,0,0,.77778],8781:[-.03625,.46375,0,0,.77778],8784:[-.133,.673,0,0,.778],8801:[-.03625,.46375,0,0,.77778],8804:[.13597,.63597,0,0,.77778],8805:[.13597,.63597,0,0,.77778],8810:[.0391,.5391,0,0,1],8811:[.0391,.5391,0,0,1],8826:[.0391,.5391,0,0,.77778],8827:[.0391,.5391,0,0,.77778],8834:[.0391,.5391,0,0,.77778],8835:[.0391,.5391,0,0,.77778],8838:[.13597,.63597,0,0,.77778],8839:[.13597,.63597,0,0,.77778],8846:[0,.55556,0,0,.66667],8849:[.13597,.63597,0,0,.77778],8850:[.13597,.63597,0,0,.77778],8851:[0,.55556,0,0,.66667],8852:[0,.55556,0,0,.66667],8853:[.08333,.58333,0,0,.77778],8854:[.08333,.58333,0,0,.77778],8855:[.08333,.58333,0,0,.77778],8856:[.08333,.58333,0,0,.77778],8857:[.08333,.58333,0,0,.77778],8866:[0,.69444,0,0,.61111],8867:[0,.69444,0,0,.61111],8868:[0,.69444,0,0,.77778],8869:[0,.69444,0,0,.77778],8872:[.249,.75,0,0,.867],8900:[-.05555,.44445,0,0,.5],8901:[-.05555,.44445,0,0,.27778],8902:[-.03472,.46528,0,0,.5],8904:[.005,.505,0,0,.9],8942:[.03,.903,0,0,.278],8943:[-.19,.313,0,0,1.172],8945:[-.1,.823,0,0,1.282],8968:[.25,.75,0,0,.44445],8969:[.25,.75,0,0,.44445],8970:[.25,.75,0,0,.44445],8971:[.25,.75,0,0,.44445],8994:[-.14236,.35764,0,0,1],8995:[-.14236,.35764,0,0,1],9136:[.244,.744,0,0,.412],9137:[.244,.745,0,0,.412],9651:[.19444,.69444,0,0,.88889],9657:[-.03472,.46528,0,0,.5],9661:[.19444,.69444,0,0,.88889],9667:[-.03472,.46528,0,0,.5],9711:[.19444,.69444,0,0,1],9824:[.12963,.69444,0,0,.77778],9825:[.12963,.69444,0,0,.77778],9826:[.12963,.69444,0,0,.77778],9827:[.12963,.69444,0,0,.77778],9837:[0,.75,0,0,.38889],9838:[.19444,.69444,0,0,.38889],9839:[.19444,.69444,0,0,.38889],10216:[.25,.75,0,0,.38889],10217:[.25,.75,0,0,.38889],10222:[.244,.744,0,0,.412],10223:[.244,.745,0,0,.412],10229:[.011,.511,0,0,1.609],10230:[.011,.511,0,0,1.638],10231:[.011,.511,0,0,1.859],10232:[.024,.525,0,0,1.609],10233:[.024,.525,0,0,1.638],10234:[.024,.525,0,0,1.858],10236:[.011,.511,0,0,1.638],10815:[0,.68333,0,0,.75],10927:[.13597,.63597,0,0,.77778],10928:[.13597,.63597,0,0,.77778],57376:[.19444,.69444,0,0,0]},"Math-BoldItalic":{32:[0,0,0,0,.25],48:[0,.44444,0,0,.575],49:[0,.44444,0,0,.575],50:[0,.44444,0,0,.575],51:[.19444,.44444,0,0,.575],52:[.19444,.44444,0,0,.575],53:[.19444,.44444,0,0,.575],54:[0,.64444,0,0,.575],55:[.19444,.44444,0,0,.575],56:[0,.64444,0,0,.575],57:[.19444,.44444,0,0,.575],65:[0,.68611,0,0,.86944],66:[0,.68611,.04835,0,.8664],67:[0,.68611,.06979,0,.81694],68:[0,.68611,.03194,0,.93812],69:[0,.68611,.05451,0,.81007],70:[0,.68611,.15972,0,.68889],71:[0,.68611,0,0,.88673],72:[0,.68611,.08229,0,.98229],73:[0,.68611,.07778,0,.51111],74:[0,.68611,.10069,0,.63125],75:[0,.68611,.06979,0,.97118],76:[0,.68611,0,0,.75555],77:[0,.68611,.11424,0,1.14201],78:[0,.68611,.11424,0,.95034],79:[0,.68611,.03194,0,.83666],80:[0,.68611,.15972,0,.72309],81:[.19444,.68611,0,0,.86861],82:[0,.68611,.00421,0,.87235],83:[0,.68611,.05382,0,.69271],84:[0,.68611,.15972,0,.63663],85:[0,.68611,.11424,0,.80027],86:[0,.68611,.25555,0,.67778],87:[0,.68611,.15972,0,1.09305],88:[0,.68611,.07778,0,.94722],89:[0,.68611,.25555,0,.67458],90:[0,.68611,.06979,0,.77257],97:[0,.44444,0,0,.63287],98:[0,.69444,0,0,.52083],99:[0,.44444,0,0,.51342],100:[0,.69444,0,0,.60972],101:[0,.44444,0,0,.55361],102:[.19444,.69444,.11042,0,.56806],103:[.19444,.44444,.03704,0,.5449],104:[0,.69444,0,0,.66759],105:[0,.69326,0,0,.4048],106:[.19444,.69326,.0622,0,.47083],107:[0,.69444,.01852,0,.6037],108:[0,.69444,.0088,0,.34815],109:[0,.44444,0,0,1.0324],110:[0,.44444,0,0,.71296],111:[0,.44444,0,0,.58472],112:[.19444,.44444,0,0,.60092],113:[.19444,.44444,.03704,0,.54213],114:[0,.44444,.03194,0,.5287],115:[0,.44444,0,0,.53125],116:[0,.63492,0,0,.41528],117:[0,.44444,0,0,.68102],118:[0,.44444,.03704,0,.56666],119:[0,.44444,.02778,0,.83148],120:[0,.44444,0,0,.65903],121:[.19444,.44444,.03704,0,.59028],122:[0,.44444,.04213,0,.55509],160:[0,0,0,0,.25],915:[0,.68611,.15972,0,.65694],916:[0,.68611,0,0,.95833],920:[0,.68611,.03194,0,.86722],923:[0,.68611,0,0,.80555],926:[0,.68611,.07458,0,.84125],928:[0,.68611,.08229,0,.98229],931:[0,.68611,.05451,0,.88507],933:[0,.68611,.15972,0,.67083],934:[0,.68611,0,0,.76666],936:[0,.68611,.11653,0,.71402],937:[0,.68611,.04835,0,.8789],945:[0,.44444,0,0,.76064],946:[.19444,.69444,.03403,0,.65972],947:[.19444,.44444,.06389,0,.59003],948:[0,.69444,.03819,0,.52222],949:[0,.44444,0,0,.52882],950:[.19444,.69444,.06215,0,.50833],951:[.19444,.44444,.03704,0,.6],952:[0,.69444,.03194,0,.5618],953:[0,.44444,0,0,.41204],954:[0,.44444,0,0,.66759],955:[0,.69444,0,0,.67083],956:[.19444,.44444,0,0,.70787],957:[0,.44444,.06898,0,.57685],958:[.19444,.69444,.03021,0,.50833],959:[0,.44444,0,0,.58472],960:[0,.44444,.03704,0,.68241],961:[.19444,.44444,0,0,.6118],962:[.09722,.44444,.07917,0,.42361],963:[0,.44444,.03704,0,.68588],964:[0,.44444,.13472,0,.52083],965:[0,.44444,.03704,0,.63055],966:[.19444,.44444,0,0,.74722],967:[.19444,.44444,0,0,.71805],968:[.19444,.69444,.03704,0,.75833],969:[0,.44444,.03704,0,.71782],977:[0,.69444,0,0,.69155],981:[.19444,.69444,0,0,.7125],982:[0,.44444,.03194,0,.975],1009:[.19444,.44444,0,0,.6118],1013:[0,.44444,0,0,.48333],57649:[0,.44444,0,0,.39352],57911:[.19444,.44444,0,0,.43889]},"Math-Italic":{32:[0,0,0,0,.25],48:[0,.43056,0,0,.5],49:[0,.43056,0,0,.5],50:[0,.43056,0,0,.5],51:[.19444,.43056,0,0,.5],52:[.19444,.43056,0,0,.5],53:[.19444,.43056,0,0,.5],54:[0,.64444,0,0,.5],55:[.19444,.43056,0,0,.5],56:[0,.64444,0,0,.5],57:[.19444,.43056,0,0,.5],65:[0,.68333,0,.13889,.75],66:[0,.68333,.05017,.08334,.75851],67:[0,.68333,.07153,.08334,.71472],68:[0,.68333,.02778,.05556,.82792],69:[0,.68333,.05764,.08334,.7382],70:[0,.68333,.13889,.08334,.64306],71:[0,.68333,0,.08334,.78625],72:[0,.68333,.08125,.05556,.83125],73:[0,.68333,.07847,.11111,.43958],74:[0,.68333,.09618,.16667,.55451],75:[0,.68333,.07153,.05556,.84931],76:[0,.68333,0,.02778,.68056],77:[0,.68333,.10903,.08334,.97014],78:[0,.68333,.10903,.08334,.80347],79:[0,.68333,.02778,.08334,.76278],80:[0,.68333,.13889,.08334,.64201],81:[.19444,.68333,0,.08334,.79056],82:[0,.68333,.00773,.08334,.75929],83:[0,.68333,.05764,.08334,.6132],84:[0,.68333,.13889,.08334,.58438],85:[0,.68333,.10903,.02778,.68278],86:[0,.68333,.22222,0,.58333],87:[0,.68333,.13889,0,.94445],88:[0,.68333,.07847,.08334,.82847],89:[0,.68333,.22222,0,.58056],90:[0,.68333,.07153,.08334,.68264],97:[0,.43056,0,0,.52859],98:[0,.69444,0,0,.42917],99:[0,.43056,0,.05556,.43276],100:[0,.69444,0,.16667,.52049],101:[0,.43056,0,.05556,.46563],102:[.19444,.69444,.10764,.16667,.48959],103:[.19444,.43056,.03588,.02778,.47697],104:[0,.69444,0,0,.57616],105:[0,.65952,0,0,.34451],106:[.19444,.65952,.05724,0,.41181],107:[0,.69444,.03148,0,.5206],108:[0,.69444,.01968,.08334,.29838],109:[0,.43056,0,0,.87801],110:[0,.43056,0,0,.60023],111:[0,.43056,0,.05556,.48472],112:[.19444,.43056,0,.08334,.50313],113:[.19444,.43056,.03588,.08334,.44641],114:[0,.43056,.02778,.05556,.45116],115:[0,.43056,0,.05556,.46875],116:[0,.61508,0,.08334,.36111],117:[0,.43056,0,.02778,.57246],118:[0,.43056,.03588,.02778,.48472],119:[0,.43056,.02691,.08334,.71592],120:[0,.43056,0,.02778,.57153],121:[.19444,.43056,.03588,.05556,.49028],122:[0,.43056,.04398,.05556,.46505],160:[0,0,0,0,.25],915:[0,.68333,.13889,.08334,.61528],916:[0,.68333,0,.16667,.83334],920:[0,.68333,.02778,.08334,.76278],923:[0,.68333,0,.16667,.69445],926:[0,.68333,.07569,.08334,.74236],928:[0,.68333,.08125,.05556,.83125],931:[0,.68333,.05764,.08334,.77986],933:[0,.68333,.13889,.05556,.58333],934:[0,.68333,0,.08334,.66667],936:[0,.68333,.11,.05556,.61222],937:[0,.68333,.05017,.08334,.7724],945:[0,.43056,.0037,.02778,.6397],946:[.19444,.69444,.05278,.08334,.56563],947:[.19444,.43056,.05556,0,.51773],948:[0,.69444,.03785,.05556,.44444],949:[0,.43056,0,.08334,.46632],950:[.19444,.69444,.07378,.08334,.4375],951:[.19444,.43056,.03588,.05556,.49653],952:[0,.69444,.02778,.08334,.46944],953:[0,.43056,0,.05556,.35394],954:[0,.43056,0,0,.57616],955:[0,.69444,0,0,.58334],956:[.19444,.43056,0,.02778,.60255],957:[0,.43056,.06366,.02778,.49398],958:[.19444,.69444,.04601,.11111,.4375],959:[0,.43056,0,.05556,.48472],960:[0,.43056,.03588,0,.57003],961:[.19444,.43056,0,.08334,.51702],962:[.09722,.43056,.07986,.08334,.36285],963:[0,.43056,.03588,0,.57141],964:[0,.43056,.1132,.02778,.43715],965:[0,.43056,.03588,.02778,.54028],966:[.19444,.43056,0,.08334,.65417],967:[.19444,.43056,0,.05556,.62569],968:[.19444,.69444,.03588,.11111,.65139],969:[0,.43056,.03588,0,.62245],977:[0,.69444,0,.08334,.59144],981:[.19444,.69444,0,.08334,.59583],982:[0,.43056,.02778,0,.82813],1009:[.19444,.43056,0,.08334,.51702],1013:[0,.43056,0,.05556,.4059],57649:[0,.43056,0,.02778,.32246],57911:[.19444,.43056,0,.08334,.38403]},"SansSerif-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.36667],34:[0,.69444,0,0,.55834],35:[.19444,.69444,0,0,.91667],36:[.05556,.75,0,0,.55],37:[.05556,.75,0,0,1.02912],38:[0,.69444,0,0,.83056],39:[0,.69444,0,0,.30556],40:[.25,.75,0,0,.42778],41:[.25,.75,0,0,.42778],42:[0,.75,0,0,.55],43:[.11667,.61667,0,0,.85556],44:[.10556,.13056,0,0,.30556],45:[0,.45833,0,0,.36667],46:[0,.13056,0,0,.30556],47:[.25,.75,0,0,.55],48:[0,.69444,0,0,.55],49:[0,.69444,0,0,.55],50:[0,.69444,0,0,.55],51:[0,.69444,0,0,.55],52:[0,.69444,0,0,.55],53:[0,.69444,0,0,.55],54:[0,.69444,0,0,.55],55:[0,.69444,0,0,.55],56:[0,.69444,0,0,.55],57:[0,.69444,0,0,.55],58:[0,.45833,0,0,.30556],59:[.10556,.45833,0,0,.30556],61:[-.09375,.40625,0,0,.85556],63:[0,.69444,0,0,.51945],64:[0,.69444,0,0,.73334],65:[0,.69444,0,0,.73334],66:[0,.69444,0,0,.73334],67:[0,.69444,0,0,.70278],68:[0,.69444,0,0,.79445],69:[0,.69444,0,0,.64167],70:[0,.69444,0,0,.61111],71:[0,.69444,0,0,.73334],72:[0,.69444,0,0,.79445],73:[0,.69444,0,0,.33056],74:[0,.69444,0,0,.51945],75:[0,.69444,0,0,.76389],76:[0,.69444,0,0,.58056],77:[0,.69444,0,0,.97778],78:[0,.69444,0,0,.79445],79:[0,.69444,0,0,.79445],80:[0,.69444,0,0,.70278],81:[.10556,.69444,0,0,.79445],82:[0,.69444,0,0,.70278],83:[0,.69444,0,0,.61111],84:[0,.69444,0,0,.73334],85:[0,.69444,0,0,.76389],86:[0,.69444,.01528,0,.73334],87:[0,.69444,.01528,0,1.03889],88:[0,.69444,0,0,.73334],89:[0,.69444,.0275,0,.73334],90:[0,.69444,0,0,.67223],91:[.25,.75,0,0,.34306],93:[.25,.75,0,0,.34306],94:[0,.69444,0,0,.55],95:[.35,.10833,.03056,0,.55],97:[0,.45833,0,0,.525],98:[0,.69444,0,0,.56111],99:[0,.45833,0,0,.48889],100:[0,.69444,0,0,.56111],101:[0,.45833,0,0,.51111],102:[0,.69444,.07639,0,.33611],103:[.19444,.45833,.01528,0,.55],104:[0,.69444,0,0,.56111],105:[0,.69444,0,0,.25556],106:[.19444,.69444,0,0,.28611],107:[0,.69444,0,0,.53056],108:[0,.69444,0,0,.25556],109:[0,.45833,0,0,.86667],110:[0,.45833,0,0,.56111],111:[0,.45833,0,0,.55],112:[.19444,.45833,0,0,.56111],113:[.19444,.45833,0,0,.56111],114:[0,.45833,.01528,0,.37222],115:[0,.45833,0,0,.42167],116:[0,.58929,0,0,.40417],117:[0,.45833,0,0,.56111],118:[0,.45833,.01528,0,.5],119:[0,.45833,.01528,0,.74445],120:[0,.45833,0,0,.5],121:[.19444,.45833,.01528,0,.5],122:[0,.45833,0,0,.47639],126:[.35,.34444,0,0,.55],160:[0,0,0,0,.25],168:[0,.69444,0,0,.55],176:[0,.69444,0,0,.73334],180:[0,.69444,0,0,.55],184:[.17014,0,0,0,.48889],305:[0,.45833,0,0,.25556],567:[.19444,.45833,0,0,.28611],710:[0,.69444,0,0,.55],711:[0,.63542,0,0,.55],713:[0,.63778,0,0,.55],728:[0,.69444,0,0,.55],729:[0,.69444,0,0,.30556],730:[0,.69444,0,0,.73334],732:[0,.69444,0,0,.55],733:[0,.69444,0,0,.55],915:[0,.69444,0,0,.58056],916:[0,.69444,0,0,.91667],920:[0,.69444,0,0,.85556],923:[0,.69444,0,0,.67223],926:[0,.69444,0,0,.73334],928:[0,.69444,0,0,.79445],931:[0,.69444,0,0,.79445],933:[0,.69444,0,0,.85556],934:[0,.69444,0,0,.79445],936:[0,.69444,0,0,.85556],937:[0,.69444,0,0,.79445],8211:[0,.45833,.03056,0,.55],8212:[0,.45833,.03056,0,1.10001],8216:[0,.69444,0,0,.30556],8217:[0,.69444,0,0,.30556],8220:[0,.69444,0,0,.55834],8221:[0,.69444,0,0,.55834]},"SansSerif-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.05733,0,.31945],34:[0,.69444,.00316,0,.5],35:[.19444,.69444,.05087,0,.83334],36:[.05556,.75,.11156,0,.5],37:[.05556,.75,.03126,0,.83334],38:[0,.69444,.03058,0,.75834],39:[0,.69444,.07816,0,.27778],40:[.25,.75,.13164,0,.38889],41:[.25,.75,.02536,0,.38889],42:[0,.75,.11775,0,.5],43:[.08333,.58333,.02536,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,.01946,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,.13164,0,.5],48:[0,.65556,.11156,0,.5],49:[0,.65556,.11156,0,.5],50:[0,.65556,.11156,0,.5],51:[0,.65556,.11156,0,.5],52:[0,.65556,.11156,0,.5],53:[0,.65556,.11156,0,.5],54:[0,.65556,.11156,0,.5],55:[0,.65556,.11156,0,.5],56:[0,.65556,.11156,0,.5],57:[0,.65556,.11156,0,.5],58:[0,.44444,.02502,0,.27778],59:[.125,.44444,.02502,0,.27778],61:[-.13,.37,.05087,0,.77778],63:[0,.69444,.11809,0,.47222],64:[0,.69444,.07555,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,.08293,0,.66667],67:[0,.69444,.11983,0,.63889],68:[0,.69444,.07555,0,.72223],69:[0,.69444,.11983,0,.59722],70:[0,.69444,.13372,0,.56945],71:[0,.69444,.11983,0,.66667],72:[0,.69444,.08094,0,.70834],73:[0,.69444,.13372,0,.27778],74:[0,.69444,.08094,0,.47222],75:[0,.69444,.11983,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,.08094,0,.875],78:[0,.69444,.08094,0,.70834],79:[0,.69444,.07555,0,.73611],80:[0,.69444,.08293,0,.63889],81:[.125,.69444,.07555,0,.73611],82:[0,.69444,.08293,0,.64584],83:[0,.69444,.09205,0,.55556],84:[0,.69444,.13372,0,.68056],85:[0,.69444,.08094,0,.6875],86:[0,.69444,.1615,0,.66667],87:[0,.69444,.1615,0,.94445],88:[0,.69444,.13372,0,.66667],89:[0,.69444,.17261,0,.66667],90:[0,.69444,.11983,0,.61111],91:[.25,.75,.15942,0,.28889],93:[.25,.75,.08719,0,.28889],94:[0,.69444,.0799,0,.5],95:[.35,.09444,.08616,0,.5],97:[0,.44444,.00981,0,.48056],98:[0,.69444,.03057,0,.51667],99:[0,.44444,.08336,0,.44445],100:[0,.69444,.09483,0,.51667],101:[0,.44444,.06778,0,.44445],102:[0,.69444,.21705,0,.30556],103:[.19444,.44444,.10836,0,.5],104:[0,.69444,.01778,0,.51667],105:[0,.67937,.09718,0,.23889],106:[.19444,.67937,.09162,0,.26667],107:[0,.69444,.08336,0,.48889],108:[0,.69444,.09483,0,.23889],109:[0,.44444,.01778,0,.79445],110:[0,.44444,.01778,0,.51667],111:[0,.44444,.06613,0,.5],112:[.19444,.44444,.0389,0,.51667],113:[.19444,.44444,.04169,0,.51667],114:[0,.44444,.10836,0,.34167],115:[0,.44444,.0778,0,.38333],116:[0,.57143,.07225,0,.36111],117:[0,.44444,.04169,0,.51667],118:[0,.44444,.10836,0,.46111],119:[0,.44444,.10836,0,.68334],120:[0,.44444,.09169,0,.46111],121:[.19444,.44444,.10836,0,.46111],122:[0,.44444,.08752,0,.43472],126:[.35,.32659,.08826,0,.5],160:[0,0,0,0,.25],168:[0,.67937,.06385,0,.5],176:[0,.69444,0,0,.73752],184:[.17014,0,0,0,.44445],305:[0,.44444,.04169,0,.23889],567:[.19444,.44444,.04169,0,.26667],710:[0,.69444,.0799,0,.5],711:[0,.63194,.08432,0,.5],713:[0,.60889,.08776,0,.5],714:[0,.69444,.09205,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,.09483,0,.5],729:[0,.67937,.07774,0,.27778],730:[0,.69444,0,0,.73752],732:[0,.67659,.08826,0,.5],733:[0,.69444,.09205,0,.5],915:[0,.69444,.13372,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,.07555,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,.12816,0,.66667],928:[0,.69444,.08094,0,.70834],931:[0,.69444,.11983,0,.72222],933:[0,.69444,.09031,0,.77778],934:[0,.69444,.04603,0,.72222],936:[0,.69444,.09031,0,.77778],937:[0,.69444,.08293,0,.72222],8211:[0,.44444,.08616,0,.5],8212:[0,.44444,.08616,0,1],8216:[0,.69444,.07816,0,.27778],8217:[0,.69444,.07816,0,.27778],8220:[0,.69444,.14205,0,.5],8221:[0,.69444,.00316,0,.5]},"SansSerif-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.31945],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.75834],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,0,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.65556,0,0,.5],49:[0,.65556,0,0,.5],50:[0,.65556,0,0,.5],51:[0,.65556,0,0,.5],52:[0,.65556,0,0,.5],53:[0,.65556,0,0,.5],54:[0,.65556,0,0,.5],55:[0,.65556,0,0,.5],56:[0,.65556,0,0,.5],57:[0,.65556,0,0,.5],58:[0,.44444,0,0,.27778],59:[.125,.44444,0,0,.27778],61:[-.13,.37,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,0,0,.66667],67:[0,.69444,0,0,.63889],68:[0,.69444,0,0,.72223],69:[0,.69444,0,0,.59722],70:[0,.69444,0,0,.56945],71:[0,.69444,0,0,.66667],72:[0,.69444,0,0,.70834],73:[0,.69444,0,0,.27778],74:[0,.69444,0,0,.47222],75:[0,.69444,0,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,0,0,.875],78:[0,.69444,0,0,.70834],79:[0,.69444,0,0,.73611],80:[0,.69444,0,0,.63889],81:[.125,.69444,0,0,.73611],82:[0,.69444,0,0,.64584],83:[0,.69444,0,0,.55556],84:[0,.69444,0,0,.68056],85:[0,.69444,0,0,.6875],86:[0,.69444,.01389,0,.66667],87:[0,.69444,.01389,0,.94445],88:[0,.69444,0,0,.66667],89:[0,.69444,.025,0,.66667],90:[0,.69444,0,0,.61111],91:[.25,.75,0,0,.28889],93:[.25,.75,0,0,.28889],94:[0,.69444,0,0,.5],95:[.35,.09444,.02778,0,.5],97:[0,.44444,0,0,.48056],98:[0,.69444,0,0,.51667],99:[0,.44444,0,0,.44445],100:[0,.69444,0,0,.51667],101:[0,.44444,0,0,.44445],102:[0,.69444,.06944,0,.30556],103:[.19444,.44444,.01389,0,.5],104:[0,.69444,0,0,.51667],105:[0,.67937,0,0,.23889],106:[.19444,.67937,0,0,.26667],107:[0,.69444,0,0,.48889],108:[0,.69444,0,0,.23889],109:[0,.44444,0,0,.79445],110:[0,.44444,0,0,.51667],111:[0,.44444,0,0,.5],112:[.19444,.44444,0,0,.51667],113:[.19444,.44444,0,0,.51667],114:[0,.44444,.01389,0,.34167],115:[0,.44444,0,0,.38333],116:[0,.57143,0,0,.36111],117:[0,.44444,0,0,.51667],118:[0,.44444,.01389,0,.46111],119:[0,.44444,.01389,0,.68334],120:[0,.44444,0,0,.46111],121:[.19444,.44444,.01389,0,.46111],122:[0,.44444,0,0,.43472],126:[.35,.32659,0,0,.5],160:[0,0,0,0,.25],168:[0,.67937,0,0,.5],176:[0,.69444,0,0,.66667],184:[.17014,0,0,0,.44445],305:[0,.44444,0,0,.23889],567:[.19444,.44444,0,0,.26667],710:[0,.69444,0,0,.5],711:[0,.63194,0,0,.5],713:[0,.60889,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.67937,0,0,.27778],730:[0,.69444,0,0,.66667],732:[0,.67659,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.69444,0,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,0,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,0,0,.66667],928:[0,.69444,0,0,.70834],931:[0,.69444,0,0,.72222],933:[0,.69444,0,0,.77778],934:[0,.69444,0,0,.72222],936:[0,.69444,0,0,.77778],937:[0,.69444,0,0,.72222],8211:[0,.44444,.02778,0,.5],8212:[0,.44444,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5]},"Script-Regular":{32:[0,0,0,0,.25],65:[0,.7,.22925,0,.80253],66:[0,.7,.04087,0,.90757],67:[0,.7,.1689,0,.66619],68:[0,.7,.09371,0,.77443],69:[0,.7,.18583,0,.56162],70:[0,.7,.13634,0,.89544],71:[0,.7,.17322,0,.60961],72:[0,.7,.29694,0,.96919],73:[0,.7,.19189,0,.80907],74:[.27778,.7,.19189,0,1.05159],75:[0,.7,.31259,0,.91364],76:[0,.7,.19189,0,.87373],77:[0,.7,.15981,0,1.08031],78:[0,.7,.3525,0,.9015],79:[0,.7,.08078,0,.73787],80:[0,.7,.08078,0,1.01262],81:[0,.7,.03305,0,.88282],82:[0,.7,.06259,0,.85],83:[0,.7,.19189,0,.86767],84:[0,.7,.29087,0,.74697],85:[0,.7,.25815,0,.79996],86:[0,.7,.27523,0,.62204],87:[0,.7,.27523,0,.80532],88:[0,.7,.26006,0,.94445],89:[0,.7,.2939,0,.70961],90:[0,.7,.24037,0,.8212],160:[0,0,0,0,.25]},"Size1-Regular":{32:[0,0,0,0,.25],40:[.35001,.85,0,0,.45834],41:[.35001,.85,0,0,.45834],47:[.35001,.85,0,0,.57778],91:[.35001,.85,0,0,.41667],92:[.35001,.85,0,0,.57778],93:[.35001,.85,0,0,.41667],123:[.35001,.85,0,0,.58334],125:[.35001,.85,0,0,.58334],160:[0,0,0,0,.25],710:[0,.72222,0,0,.55556],732:[0,.72222,0,0,.55556],770:[0,.72222,0,0,.55556],771:[0,.72222,0,0,.55556],8214:[-99e-5,.601,0,0,.77778],8593:[1e-5,.6,0,0,.66667],8595:[1e-5,.6,0,0,.66667],8657:[1e-5,.6,0,0,.77778],8659:[1e-5,.6,0,0,.77778],8719:[.25001,.75,0,0,.94445],8720:[.25001,.75,0,0,.94445],8721:[.25001,.75,0,0,1.05556],8730:[.35001,.85,0,0,1],8739:[-.00599,.606,0,0,.33333],8741:[-.00599,.606,0,0,.55556],8747:[.30612,.805,.19445,0,.47222],8748:[.306,.805,.19445,0,.47222],8749:[.306,.805,.19445,0,.47222],8750:[.30612,.805,.19445,0,.47222],8896:[.25001,.75,0,0,.83334],8897:[.25001,.75,0,0,.83334],8898:[.25001,.75,0,0,.83334],8899:[.25001,.75,0,0,.83334],8968:[.35001,.85,0,0,.47222],8969:[.35001,.85,0,0,.47222],8970:[.35001,.85,0,0,.47222],8971:[.35001,.85,0,0,.47222],9168:[-99e-5,.601,0,0,.66667],10216:[.35001,.85,0,0,.47222],10217:[.35001,.85,0,0,.47222],10752:[.25001,.75,0,0,1.11111],10753:[.25001,.75,0,0,1.11111],10754:[.25001,.75,0,0,1.11111],10756:[.25001,.75,0,0,.83334],10758:[.25001,.75,0,0,.83334]},"Size2-Regular":{32:[0,0,0,0,.25],40:[.65002,1.15,0,0,.59722],41:[.65002,1.15,0,0,.59722],47:[.65002,1.15,0,0,.81111],91:[.65002,1.15,0,0,.47222],92:[.65002,1.15,0,0,.81111],93:[.65002,1.15,0,0,.47222],123:[.65002,1.15,0,0,.66667],125:[.65002,1.15,0,0,.66667],160:[0,0,0,0,.25],710:[0,.75,0,0,1],732:[0,.75,0,0,1],770:[0,.75,0,0,1],771:[0,.75,0,0,1],8719:[.55001,1.05,0,0,1.27778],8720:[.55001,1.05,0,0,1.27778],8721:[.55001,1.05,0,0,1.44445],8730:[.65002,1.15,0,0,1],8747:[.86225,1.36,.44445,0,.55556],8748:[.862,1.36,.44445,0,.55556],8749:[.862,1.36,.44445,0,.55556],8750:[.86225,1.36,.44445,0,.55556],8896:[.55001,1.05,0,0,1.11111],8897:[.55001,1.05,0,0,1.11111],8898:[.55001,1.05,0,0,1.11111],8899:[.55001,1.05,0,0,1.11111],8968:[.65002,1.15,0,0,.52778],8969:[.65002,1.15,0,0,.52778],8970:[.65002,1.15,0,0,.52778],8971:[.65002,1.15,0,0,.52778],10216:[.65002,1.15,0,0,.61111],10217:[.65002,1.15,0,0,.61111],10752:[.55001,1.05,0,0,1.51112],10753:[.55001,1.05,0,0,1.51112],10754:[.55001,1.05,0,0,1.51112],10756:[.55001,1.05,0,0,1.11111],10758:[.55001,1.05,0,0,1.11111]},"Size3-Regular":{32:[0,0,0,0,.25],40:[.95003,1.45,0,0,.73611],41:[.95003,1.45,0,0,.73611],47:[.95003,1.45,0,0,1.04445],91:[.95003,1.45,0,0,.52778],92:[.95003,1.45,0,0,1.04445],93:[.95003,1.45,0,0,.52778],123:[.95003,1.45,0,0,.75],125:[.95003,1.45,0,0,.75],160:[0,0,0,0,.25],710:[0,.75,0,0,1.44445],732:[0,.75,0,0,1.44445],770:[0,.75,0,0,1.44445],771:[0,.75,0,0,1.44445],8730:[.95003,1.45,0,0,1],8968:[.95003,1.45,0,0,.58334],8969:[.95003,1.45,0,0,.58334],8970:[.95003,1.45,0,0,.58334],8971:[.95003,1.45,0,0,.58334],10216:[.95003,1.45,0,0,.75],10217:[.95003,1.45,0,0,.75]},"Size4-Regular":{32:[0,0,0,0,.25],40:[1.25003,1.75,0,0,.79167],41:[1.25003,1.75,0,0,.79167],47:[1.25003,1.75,0,0,1.27778],91:[1.25003,1.75,0,0,.58334],92:[1.25003,1.75,0,0,1.27778],93:[1.25003,1.75,0,0,.58334],123:[1.25003,1.75,0,0,.80556],125:[1.25003,1.75,0,0,.80556],160:[0,0,0,0,.25],710:[0,.825,0,0,1.8889],732:[0,.825,0,0,1.8889],770:[0,.825,0,0,1.8889],771:[0,.825,0,0,1.8889],8730:[1.25003,1.75,0,0,1],8968:[1.25003,1.75,0,0,.63889],8969:[1.25003,1.75,0,0,.63889],8970:[1.25003,1.75,0,0,.63889],8971:[1.25003,1.75,0,0,.63889],9115:[.64502,1.155,0,0,.875],9116:[1e-5,.6,0,0,.875],9117:[.64502,1.155,0,0,.875],9118:[.64502,1.155,0,0,.875],9119:[1e-5,.6,0,0,.875],9120:[.64502,1.155,0,0,.875],9121:[.64502,1.155,0,0,.66667],9122:[-99e-5,.601,0,0,.66667],9123:[.64502,1.155,0,0,.66667],9124:[.64502,1.155,0,0,.66667],9125:[-99e-5,.601,0,0,.66667],9126:[.64502,1.155,0,0,.66667],9127:[1e-5,.9,0,0,.88889],9128:[.65002,1.15,0,0,.88889],9129:[.90001,0,0,0,.88889],9130:[0,.3,0,0,.88889],9131:[1e-5,.9,0,0,.88889],9132:[.65002,1.15,0,0,.88889],9133:[.90001,0,0,0,.88889],9143:[.88502,.915,0,0,1.05556],10216:[1.25003,1.75,0,0,.80556],10217:[1.25003,1.75,0,0,.80556],57344:[-.00499,.605,0,0,1.05556],57345:[-.00499,.605,0,0,1.05556],57680:[0,.12,0,0,.45],57681:[0,.12,0,0,.45],57682:[0,.12,0,0,.45],57683:[0,.12,0,0,.45]},"Typewriter-Regular":{32:[0,0,0,0,.525],33:[0,.61111,0,0,.525],34:[0,.61111,0,0,.525],35:[0,.61111,0,0,.525],36:[.08333,.69444,0,0,.525],37:[.08333,.69444,0,0,.525],38:[0,.61111,0,0,.525],39:[0,.61111,0,0,.525],40:[.08333,.69444,0,0,.525],41:[.08333,.69444,0,0,.525],42:[0,.52083,0,0,.525],43:[-.08056,.53055,0,0,.525],44:[.13889,.125,0,0,.525],45:[-.08056,.53055,0,0,.525],46:[0,.125,0,0,.525],47:[.08333,.69444,0,0,.525],48:[0,.61111,0,0,.525],49:[0,.61111,0,0,.525],50:[0,.61111,0,0,.525],51:[0,.61111,0,0,.525],52:[0,.61111,0,0,.525],53:[0,.61111,0,0,.525],54:[0,.61111,0,0,.525],55:[0,.61111,0,0,.525],56:[0,.61111,0,0,.525],57:[0,.61111,0,0,.525],58:[0,.43056,0,0,.525],59:[.13889,.43056,0,0,.525],60:[-.05556,.55556,0,0,.525],61:[-.19549,.41562,0,0,.525],62:[-.05556,.55556,0,0,.525],63:[0,.61111,0,0,.525],64:[0,.61111,0,0,.525],65:[0,.61111,0,0,.525],66:[0,.61111,0,0,.525],67:[0,.61111,0,0,.525],68:[0,.61111,0,0,.525],69:[0,.61111,0,0,.525],70:[0,.61111,0,0,.525],71:[0,.61111,0,0,.525],72:[0,.61111,0,0,.525],73:[0,.61111,0,0,.525],74:[0,.61111,0,0,.525],75:[0,.61111,0,0,.525],76:[0,.61111,0,0,.525],77:[0,.61111,0,0,.525],78:[0,.61111,0,0,.525],79:[0,.61111,0,0,.525],80:[0,.61111,0,0,.525],81:[.13889,.61111,0,0,.525],82:[0,.61111,0,0,.525],83:[0,.61111,0,0,.525],84:[0,.61111,0,0,.525],85:[0,.61111,0,0,.525],86:[0,.61111,0,0,.525],87:[0,.61111,0,0,.525],88:[0,.61111,0,0,.525],89:[0,.61111,0,0,.525],90:[0,.61111,0,0,.525],91:[.08333,.69444,0,0,.525],92:[.08333,.69444,0,0,.525],93:[.08333,.69444,0,0,.525],94:[0,.61111,0,0,.525],95:[.09514,0,0,0,.525],96:[0,.61111,0,0,.525],97:[0,.43056,0,0,.525],98:[0,.61111,0,0,.525],99:[0,.43056,0,0,.525],100:[0,.61111,0,0,.525],101:[0,.43056,0,0,.525],102:[0,.61111,0,0,.525],103:[.22222,.43056,0,0,.525],104:[0,.61111,0,0,.525],105:[0,.61111,0,0,.525],106:[.22222,.61111,0,0,.525],107:[0,.61111,0,0,.525],108:[0,.61111,0,0,.525],109:[0,.43056,0,0,.525],110:[0,.43056,0,0,.525],111:[0,.43056,0,0,.525],112:[.22222,.43056,0,0,.525],113:[.22222,.43056,0,0,.525],114:[0,.43056,0,0,.525],115:[0,.43056,0,0,.525],116:[0,.55358,0,0,.525],117:[0,.43056,0,0,.525],118:[0,.43056,0,0,.525],119:[0,.43056,0,0,.525],120:[0,.43056,0,0,.525],121:[.22222,.43056,0,0,.525],122:[0,.43056,0,0,.525],123:[.08333,.69444,0,0,.525],124:[.08333,.69444,0,0,.525],125:[.08333,.69444,0,0,.525],126:[0,.61111,0,0,.525],127:[0,.61111,0,0,.525],160:[0,0,0,0,.525],176:[0,.61111,0,0,.525],184:[.19445,0,0,0,.525],305:[0,.43056,0,0,.525],567:[.22222,.43056,0,0,.525],711:[0,.56597,0,0,.525],713:[0,.56555,0,0,.525],714:[0,.61111,0,0,.525],715:[0,.61111,0,0,.525],728:[0,.61111,0,0,.525],730:[0,.61111,0,0,.525],770:[0,.61111,0,0,.525],771:[0,.61111,0,0,.525],776:[0,.61111,0,0,.525],915:[0,.61111,0,0,.525],916:[0,.61111,0,0,.525],920:[0,.61111,0,0,.525],923:[0,.61111,0,0,.525],926:[0,.61111,0,0,.525],928:[0,.61111,0,0,.525],931:[0,.61111,0,0,.525],933:[0,.61111,0,0,.525],934:[0,.61111,0,0,.525],936:[0,.61111,0,0,.525],937:[0,.61111,0,0,.525],8216:[0,.61111,0,0,.525],8217:[0,.61111,0,0,.525],8242:[0,.61111,0,0,.525],9251:[.11111,.21944,0,0,.525]}};const ae={slant:[.25,.25,.25],space:[0,0,0],stretch:[0,0,0],shrink:[0,0,0],xHeight:[.431,.431,.431],quad:[1,1.171,1.472],extraSpace:[0,0,0],num1:[.677,.732,.925],num2:[.394,.384,.387],num3:[.444,.471,.504],denom1:[.686,.752,1.025],denom2:[.345,.344,.532],sup1:[.413,.503,.504],sup2:[.363,.431,.404],sup3:[.289,.286,.294],sub1:[.15,.143,.2],sub2:[.247,.286,.4],supDrop:[.386,.353,.494],subDrop:[.05,.071,.1],delim1:[2.39,1.7,1.98],delim2:[1.01,1.157,1.42],axisHeight:[.25,.25,.25],defaultRuleThickness:[.04,.049,.049],bigOpSpacing1:[.111,.111,.111],bigOpSpacing2:[.166,.166,.166],bigOpSpacing3:[.2,.2,.2],bigOpSpacing4:[.6,.611,.611],bigOpSpacing5:[.1,.143,.143],sqrtRuleThickness:[.04,.04,.04],ptPerEm:[10,10,10],doubleRuleSep:[.2,.2,.2],arrayRuleWidth:[.04,.04,.04],fboxsep:[.3,.3,.3],fboxrule:[.04,.04,.04]},oe={"Å":"A","Ð":"D","Þ":"o","å":"a","ð":"d","þ":"o","А":"A","Б":"B","В":"B","Г":"F","Д":"A","Е":"E","Ж":"K","З":"3","И":"N","Й":"N","К":"K","Л":"N","М":"M","Н":"H","О":"O","П":"N","Р":"P","С":"C","Т":"T","У":"y","Ф":"O","Х":"X","Ц":"U","Ч":"h","Ш":"W","Щ":"W","Ъ":"B","Ы":"X","Ь":"B","Э":"3","Ю":"X","Я":"R","а":"a","б":"b","в":"a","г":"r","д":"y","е":"e","ж":"m","з":"e","и":"n","й":"n","к":"n","л":"n","м":"m","н":"n","о":"o","п":"n","р":"p","с":"c","т":"o","у":"y","ф":"b","х":"x","ц":"n","ч":"n","ш":"w","щ":"w","ъ":"a","ы":"m","ь":"a","э":"e","ю":"m","я":"r"};function se(e,t,r){if(!ie[t])throw new Error("Font metrics not found for font: "+t+".");let n=e.charCodeAt(0),i=ie[t][n];if(!i&&e[0]in oe&&(n=oe[e[0]].charCodeAt(0),i=ie[t][n]),i||"text"!==r||ee(n)&&(i=ie[t][77]),i)return{depth:i[0],height:i[1],italic:i[2],skew:i[3],width:i[4]}}function le(e,t){return t.size<2?e:me[e-1][t.size-1]}const he={},me=[[1,1,1],[2,1,1],[3,1,1],[4,2,1],[5,2,1],[6,3,1],[7,4,2],[8,6,3],[9,7,6],[10,8,7],[11,10,9]],ce=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488];class pe{constructor(e){this.style=void 0,this.color=void 0,this.size=void 0,this.textSize=void 0,this.phantom=void 0,this.font=void 0,this.fontFamily=void 0,this.fontWeight=void 0,this.fontShape=void 0,this.sizeMultiplier=void 0,this.maxSize=void 0,this.minRuleThickness=void 0,this._fontMetrics=void 0,this.style=e.style,this.color=e.color,this.size=e.size||pe.BASESIZE,this.textSize=e.textSize||this.size,this.phantom=!!e.phantom,this.font=e.font||"",this.fontFamily=e.fontFamily||"",this.fontWeight=e.fontWeight||"",this.fontShape=e.fontShape||"",this.sizeMultiplier=ce[this.size-1],this.maxSize=e.maxSize,this.minRuleThickness=e.minRuleThickness,this._fontMetrics=void 0}extend(e){var t={style:this.style,size:this.size,textSize:this.textSize,color:this.color,phantom:this.phantom,font:this.font,fontFamily:this.fontFamily,fontWeight:this.fontWeight,fontShape:this.fontShape,maxSize:this.maxSize,minRuleThickness:this.minRuleThickness};for(const r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);return new pe(t)}havingStyle(e){return this.style===e?this:this.extend({style:e,size:le(this.textSize,e)})}havingCrampedStyle(){return this.havingStyle(this.style.cramp())}havingSize(e){return this.size===e&&this.textSize===e?this:this.extend({style:this.style.text(),size:e,textSize:e,sizeMultiplier:ce[e-1]})}havingBaseStyle(e){e=e||this.style.text();var t=le(pe.BASESIZE,e);return this.size===t&&this.textSize===pe.BASESIZE&&this.style===e?this:this.extend({style:e,size:t})}havingBaseSizing(){let e;switch(this.style.id){case 4:case 5:e=3;break;case 6:case 7:e=1;break;default:e=6}return this.extend({style:this.style.text(),size:e})}withColor(e){return this.extend({color:e})}withPhantom(){return this.extend({phantom:!0})}withFont(e){return this.extend({font:e})}withTextFontFamily(e){return this.extend({fontFamily:e,font:""})}withTextFontWeight(e){return this.extend({fontWeight:e,font:""})}withTextFontShape(e){return this.extend({fontShape:e,font:""})}sizingClasses(e){return e.size!==this.size?["sizing","reset-size"+e.size,"size"+this.size]:[]}baseSizingClasses(){return this.size!==pe.BASESIZE?["sizing","reset-size"+this.size,"size"+pe.BASESIZE]:[]}fontMetrics(){return this._fontMetrics||(this._fontMetrics=function(e){var t=5<=e?0:3<=e?1:2;if(!he[t]){const e=he[t]={cssEmPerMu:ae.quad[t]/18};for(const r in ae)ae.hasOwnProperty(r)&&(e[r]=ae[r][t])}return he[t]}(this.size)),this._fontMetrics}getColor(){return this.phantom?"transparent":this.color}}pe.BASESIZE=6;var ue=pe;function de(e){return(e="string"!=typeof e?e.unit:e)in xe||e in we||"ex"===e}function B(e,t){let r;if(e.unit in xe)r=xe[e.unit]/t.fontMetrics().ptPerEm/t.sizeMultiplier;else if("mu"===e.unit)r=t.fontMetrics().cssEmPerMu;else{var n=t.style.isTight()?t.havingStyle(t.style.text()):t;if("ex"===e.unit)r=n.fontMetrics().xHeight;else{if("em"!==e.unit)throw new z("Invalid unit: '"+e.unit+"'");r=n.fontMetrics().quad}n!==t&&(r*=n.sizeMultiplier/t.sizeMultiplier)}return Math.min(e.number*r,t.maxSize)}function ge(e){return e.filter(e=>e).join(" ")}function fe(e,t,r){if(this.classes=e||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=r||{},t){t.style.isTight()&&this.classes.push("mtight");const e=t.getColor();e&&(this.style.color=e)}}function be(e){var t=document.createElement(e);t.className=ge(this.classes);for(const e in this.style)this.style.hasOwnProperty(e)&&(t.style[e]=this.style[e]);for(const e in this.attributes)this.attributes.hasOwnProperty(e)&&t.setAttribute(e,this.attributes[e]);for(let e=0;e"}const xe={pt:1,mm:7227/2540,cm:7227/254,in:72.27,bp:1.00375,pc:12,dd:1238/1157,cc:14856/1157,nd:685/642,nc:1370/107,sp:1/65536,px:1.00375},we={ex:!0,em:!0,mu:!0},C=function(e){return+e.toFixed(4)+"em"};class ve{constructor(e,t,r,n){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.width=void 0,this.maxFontSize=void 0,this.style=void 0,fe.call(this,e,r,n),this.children=t||[]}setAttribute(e,t){this.attributes[e]=t}hasClass(e){return A.contains(this.classes,e)}toNode(){return be.call(this,"span")}toMarkup(){return ye.call(this,"span")}}class ke{constructor(e,t,r,n){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,fe.call(this,t,n),this.children=r||[],this.setAttribute("href",e)}setAttribute(e,t){this.attributes[e]=t}hasClass(e){return A.contains(this.classes,e)}toNode(){return be.call(this,"a")}toMarkup(){return ye.call(this,"a")}}class Se{constructor(e,t,r){this.src=void 0,this.alt=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.alt=t,this.src=e,this.classes=["mord"],this.style=r}hasClass(e){return A.contains(this.classes,e)}toNode(){var e=document.createElement("img");e.src=this.src,e.alt=this.alt,e.className="mord";for(const t in this.style)this.style.hasOwnProperty(t)&&(e.style[t]=this.style[t]);return e}toMarkup(){let e=''+A.escape(this.alt)+'=n[0]&&t<=n[1])return r.name}}return null}(this.text.charCodeAt(0));e&&this.classes.push(e+"_fallback"),/[\xee\xef\xed\xec]/.test(this.text)&&(this.text=Me[this.text])}hasClass(e){return A.contains(this.classes,e)}toNode(){const e=document.createTextNode(this.text);let t=null;0")+n+"":n}}class ze{constructor(e,t){this.children=void 0,this.attributes=void 0,this.children=e||[],this.attributes=t||{}}toNode(){var t=document.createElementNS("http://www.w3.org/2000/svg","svg");for(const e in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,e)&&t.setAttribute(e,this.attributes[e]);for(let e=0;e':''}}class Te{constructor(e){this.attributes=void 0,this.attributes=e||{}}toNode(){var e=document.createElementNS("http://www.w3.org/2000/svg","line");for(const t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&e.setAttribute(t,this.attributes[t]);return e}toMarkup(){let e="","\\gt",!0),r(n,a,u,"∈","\\in",!0),r(n,a,u,"","\\@not"),r(n,a,u,"⊂","\\subset",!0),r(n,a,u,"⊃","\\supset",!0),r(n,a,u,"⊆","\\subseteq",!0),r(n,a,u,"⊇","\\supseteq",!0),r(n,e,u,"⊈","\\nsubseteq",!0),r(n,e,u,"⊉","\\nsupseteq",!0),r(n,a,u,"⊨","\\models"),r(n,a,u,"←","\\leftarrow",!0),r(n,a,u,"≤","\\le"),r(n,a,u,"≤","\\leq",!0),r(n,a,u,"<","\\lt",!0),r(n,a,u,"→","\\rightarrow",!0),r(n,a,u,"→","\\to"),r(n,e,u,"≱","\\ngeq",!0),r(n,e,u,"≰","\\nleq",!0),r(n,a,g," ","\\ "),r(n,a,g," ","\\space"),r(n,a,g," ","\\nobreakspace"),r(i,a,g," ","\\ "),r(i,a,g," "," "),r(i,a,g," ","\\space"),r(i,a,g," ","\\nobreakspace"),r(n,a,g,null,"\\nobreak"),r(n,a,g,null,"\\allowbreak"),r(n,a,Re,",",","),r(n,a,Re,";",";"),r(n,e,s,"⊼","\\barwedge",!0),r(n,e,s,"⊻","\\veebar",!0),r(n,a,s,"⊙","\\odot",!0),r(n,a,s,"⊕","\\oplus",!0),r(n,a,s,"⊗","\\otimes",!0),r(n,a,f,"∂","\\partial",!0),r(n,a,s,"⊘","\\oslash",!0),r(n,e,s,"⊚","\\circledcirc",!0),r(n,e,s,"⊡","\\boxdot",!0),r(n,a,s,"△","\\bigtriangleup"),r(n,a,s,"▽","\\bigtriangledown"),r(n,a,s,"†","\\dagger"),r(n,a,s,"⋄","\\diamond"),r(n,a,s,"⋆","\\star"),r(n,a,s,"◃","\\triangleleft"),r(n,a,s,"▹","\\triangleright"),r(n,a,p,"{","\\{"),r(i,a,f,"{","\\{"),r(i,a,f,"{","\\textbraceleft"),r(n,a,l,"}","\\}"),r(i,a,f,"}","\\}"),r(i,a,f,"}","\\textbraceright"),r(n,a,p,"{","\\lbrace"),r(n,a,l,"}","\\rbrace"),r(n,a,p,"[","\\lbrack",!0),r(i,a,f,"[","\\lbrack",!0),r(n,a,l,"]","\\rbrack",!0),r(i,a,f,"]","\\rbrack",!0),r(n,a,p,"(","\\lparen",!0),r(n,a,l,")","\\rparen",!0),r(i,a,f,"<","\\textless",!0),r(i,a,f,">","\\textgreater",!0),r(n,a,p,"⌊","\\lfloor",!0),r(n,a,l,"⌋","\\rfloor",!0),r(n,a,p,"⌈","\\lceil",!0),r(n,a,l,"⌉","\\rceil",!0),r(n,a,f,"\\","\\backslash"),r(n,a,f,"∣","|"),r(n,a,f,"∣","\\vert"),r(i,a,f,"|","\\textbar",!0),r(n,a,f,"∥","\\|"),r(n,a,f,"∥","\\Vert"),r(i,a,f,"∥","\\textbardbl"),r(i,a,f,"~","\\textasciitilde"),r(i,a,f,"\\","\\textbackslash"),r(i,a,f,"^","\\textasciicircum"),r(n,a,u,"↑","\\uparrow",!0),r(n,a,u,"⇑","\\Uparrow",!0),r(n,a,u,"↓","\\downarrow",!0),r(n,a,u,"⇓","\\Downarrow",!0),r(n,a,u,"↕","\\updownarrow",!0),r(n,a,u,"⇕","\\Updownarrow",!0),r(n,a,m,"∐","\\coprod"),r(n,a,m,"⋁","\\bigvee"),r(n,a,m,"⋀","\\bigwedge"),r(n,a,m,"⨄","\\biguplus"),r(n,a,m,"⋂","\\bigcap"),r(n,a,m,"⋃","\\bigcup"),r(n,a,m,"∫","\\int"),r(n,a,m,"∫","\\intop"),r(n,a,m,"∬","\\iint"),r(n,a,m,"∭","\\iiint"),r(n,a,m,"∏","\\prod"),r(n,a,m,"∑","\\sum"),r(n,a,m,"⨂","\\bigotimes"),r(n,a,m,"⨁","\\bigoplus"),r(n,a,m,"⨀","\\bigodot"),r(n,a,m,"∮","\\oint"),r(n,a,m,"∯","\\oiint"),r(n,a,m,"∰","\\oiiint"),r(n,a,m,"⨆","\\bigsqcup"),r(n,a,m,"∫","\\smallint"),r(i,a,Ie,"…","\\textellipsis"),r(n,a,Ie,"…","\\mathellipsis"),r(i,a,Ie,"…","\\ldots",!0),r(n,a,Ie,"…","\\ldots",!0),r(n,a,Ie,"⋯","\\@cdots",!0),r(n,a,Ie,"⋱","\\ddots",!0),r(n,a,f,"⋮","\\varvdots"),r(n,a,o,"ˊ","\\acute"),r(n,a,o,"ˋ","\\grave"),r(n,a,o,"¨","\\ddot"),r(n,a,o,"~","\\tilde"),r(n,a,o,"ˉ","\\bar"),r(n,a,o,"˘","\\breve"),r(n,a,o,"ˇ","\\check"),r(n,a,o,"^","\\hat"),r(n,a,o,"⃗","\\vec"),r(n,a,o,"˙","\\dot"),r(n,a,o,"˚","\\mathring"),r(n,a,h,"","\\@imath"),r(n,a,h,"","\\@jmath"),r(n,a,f,"ı","ı"),r(n,a,f,"ȷ","ȷ"),r(i,a,f,"ı","\\i",!0),r(i,a,f,"ȷ","\\j",!0),r(i,a,f,"ß","\\ss",!0),r(i,a,f,"æ","\\ae",!0),r(i,a,f,"œ","\\oe",!0),r(i,a,f,"ø","\\o",!0),r(i,a,f,"Æ","\\AE",!0),r(i,a,f,"Œ","\\OE",!0),r(i,a,f,"Ø","\\O",!0),r(i,a,o,"ˊ","\\'"),r(i,a,o,"ˋ","\\`"),r(i,a,o,"ˆ","\\^"),r(i,a,o,"˜","\\~"),r(i,a,o,"ˉ","\\="),r(i,a,o,"˘","\\u"),r(i,a,o,"˙","\\."),r(i,a,o,"¸","\\c"),r(i,a,o,"˚","\\r"),r(i,a,o,"ˇ","\\v"),r(i,a,o,"¨",'\\"'),r(i,a,o,"˝","\\H"),r(i,a,o,"◯","\\textcircled");const Oe={"--":!0,"---":!0,"``":!0,"''":!0};r(i,a,f,"–","--",!0),r(i,a,f,"–","\\textendash"),r(i,a,f,"—","---",!0),r(i,a,f,"—","\\textemdash"),r(i,a,f,"‘","`",!0),r(i,a,f,"‘","\\textquoteleft"),r(i,a,f,"’","'",!0),r(i,a,f,"’","\\textquoteright"),r(i,a,f,"“","``",!0),r(i,a,f,"“","\\textquotedblleft"),r(i,a,f,"”","''",!0),r(i,a,f,"”","\\textquotedblright"),r(n,a,f,"°","\\degree",!0),r(i,a,f,"°","\\degree"),r(i,a,f,"°","\\textdegree",!0),r(n,a,f,"£","\\pounds"),r(n,a,f,"£","\\mathsterling",!0),r(i,a,f,"£","\\pounds"),r(i,a,f,"£","\\textsterling",!0),r(n,e,f,"✠","\\maltese"),r(i,e,f,"✠","\\maltese");var He='0123456789/@."';for(let e=0;er&&(r=a.height),a.depth>n&&(n=a.depth),a.maxFontSize>i&&(i=a.maxFontSize)}t.height=r,t.depth=n,t.maxFontSize=i}function y(e,t,r,n){return e=new ve(e,t,r,n),Ve(e),e}function Fe(e){return e=new ne(e),Ve(e),e}function Ge(e,t,r){let n="";switch(e){case"amsrm":n="AMS";break;case"textrm":n="Main";break;case"textsf":n="SansSerif";break;case"texttt":n="Typewriter";break;default:n=e}return n+"-"+("textbf"===t&&"textit"===r?"BoldItalic":"textbf"===t?"Bold":"textit"===t?"Italic":"Regular")}const Ue=[["mathbf","textbf","Main-Bold"],["mathbf","textbf","Main-Bold"],["mathnormal","textit","Math-Italic"],["mathnormal","textit","Math-Italic"],["boldsymbol","boldsymbol","Main-BoldItalic"],["boldsymbol","boldsymbol","Main-BoldItalic"],["mathscr","textscr","Script-Regular"],["","",""],["","",""],["","",""],["mathfrak","textfrak","Fraktur-Regular"],["mathfrak","textfrak","Fraktur-Regular"],["mathbb","textbb","AMS-Regular"],["mathbb","textbb","AMS-Regular"],["mathboldfrak","textboldfrak","Fraktur-Regular"],["mathboldfrak","textboldfrak","Fraktur-Regular"],["mathsf","textsf","SansSerif-Regular"],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathitsf","textitsf","SansSerif-Italic"],["mathitsf","textitsf","SansSerif-Italic"],["","",""],["","",""],["mathtt","texttt","Typewriter-Regular"],["mathtt","texttt","Typewriter-Regular"]],Ye=[["mathbf","textbf","Main-Bold"],["","",""],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathtt","texttt","Typewriter-Regular"]],Xe=(e,t,r,n)=>new ve(e,t,r,n),We={mathbf:{variant:"bold",fontName:"Main-Bold"},mathrm:{variant:"normal",fontName:"Main-Regular"},textit:{variant:"italic",fontName:"Main-Italic"},mathit:{variant:"italic",fontName:"Main-Italic"},mathnormal:{variant:"italic",fontName:"Math-Italic"},mathbb:{variant:"double-struck",fontName:"AMS-Regular"},mathcal:{variant:"script",fontName:"Caligraphic-Regular"},mathfrak:{variant:"fraktur",fontName:"Fraktur-Regular"},mathscr:{variant:"script",fontName:"Script-Regular"},mathsf:{variant:"sans-serif",fontName:"SansSerif-Regular"},mathtt:{variant:"monospace",fontName:"Typewriter-Regular"}},$e={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]};var N={fontMap:We,makeSymbol:Pe,mathsym:function(e,t,r,n){return void 0===n&&(n=[]),"boldsymbol"===r.font&&De(e,"Main-Bold",t).metrics?Pe(e,"Main-Bold",t,r,n.concat(["mathbf"])):"\\"===e||"main"===c[t][e].font?Pe(e,"Main-Regular",t,r,n):Pe(e,"AMS-Regular",t,r,n.concat(["amsrm"]))},makeSpan:y,makeSvgSpan:Xe,makeLineSpan:function(e,t,r){e=y([e],[],t);return e.height=Math.max(r||t.fontMetrics().defaultRuleThickness,t.minRuleThickness),e.style.borderBottomWidth=C(e.height),e.maxFontSize=1,e},makeAnchor:function(e,t,r,n){e=new ke(e,t,r,n);return Ve(e),e},makeFragment:Fe,wrapFragment:function(e,t){return e instanceof ne?y([],[e],t):e},makeVList:function(t,r){const{children:n,depth:i}=function(r){if("individualShift"===r.positionType){const a=r.children,s=[a[0]],l=-a[0].shift-a[0].elem.depth;let t=l;for(let e=1;e{var r=y(["mspace"],[],t),e=B(e,t);return r.style.marginRight=C(e),r},staticSvg:function(e,t){var[e,r,n]=$e[e],e=new Ae(e),e=new ze([e],{width:C(r),height:C(n),style:"width:"+C(r),viewBox:"0 0 "+1e3*r+" "+1e3*n,preserveAspectRatio:"xMinYMin"}),e=Xe(["overlay"],[e],t);return e.height=n,e.style.height=C(n),e.style.width=C(r),e},svgData:$e,tryCombineChars:t=>{for(let e=0;e{if(ge(e.classes)!==ge(t.classes)||e.skew!==t.skew||e.maxFontSize!==t.maxFontSize)return!1;if(1===e.classes.length){const t=e.classes[0];if("mbin"===t||"mord"===t)return!1}for(const r in e.style)if(e.style.hasOwnProperty(r)&&e.style[r]!==t.style[r])return!1;for(const n in t.style)if(t.style.hasOwnProperty(n)&&e.style[n]!==t.style[n])return!1;return!0})(r,n)&&(r.text+=n.text,r.height=Math.max(r.height,n.height),r.depth=Math.max(r.depth,n.depth),r.italic=n.italic,t.splice(e+1,1),e--)}return t}};const x={number:3,unit:"mu"},je={number:4,unit:"mu"},_e={number:5,unit:"mu"},Ze={mord:{mop:x,mbin:je,mrel:_e,minner:x},mop:{mord:x,mop:x,mrel:_e,minner:x},mbin:{mord:je,mop:je,mopen:je,minner:je},mrel:{mord:_e,mop:_e,mopen:_e,minner:_e},mopen:{},mclose:{mop:x,mbin:je,mrel:_e,minner:x},mpunct:{mord:x,mop:x,mrel:_e,mopen:x,mclose:x,mpunct:x,minner:x},minner:{mord:x,mop:x,mbin:je,mrel:_e,mopen:x,mpunct:x,minner:x}},Ke={mord:{mop:x},mop:{mord:x,mop:x},mbin:{},mrel:{},mopen:{},mclose:{mop:x},mpunct:{},minner:{mop:x}},Je={},Qe={},et={};function w(e){var{type:e,names:t,props:r,handler:n,htmlBuilder:i,mathmlBuilder:a}=e,o={type:e,numArgs:r.numArgs,argTypes:r.argTypes,allowedInArgument:!!r.allowedInArgument,allowedInText:!!r.allowedInText,allowedInMath:void 0===r.allowedInMath||r.allowedInMath,numOptionalArgs:r.numOptionalArgs||0,infix:!!r.infix,primitive:!!r.primitive,handler:n};for(let e=0;e{var r=t.classes[0],n=e.classes[0];"mbin"===r&&A.contains(ot,n)?t.classes[0]="mord":"mbin"===n&&A.contains(at,r)&&(e.classes[0]="mord")},{node:o},i,e),ht(a,(e,t)=>{var t=pt(t),r=pt(e),e=t&&r?(e.hasClass("mtight")?Ke:Ze)[t][r]:null;if(e)return N.makeGlue(e,n)},{node:o},i,e)}return a}function nt(e,t){return e=["nulldelimiter"].concat(e.baseSizingClasses()),it(t.concat(e))}const it=N.makeSpan,at=["leftmost","mbin","mopen","mrel","mop","mpunct"],ot=["rightmost","mrel","mclose","mpunct"],st={display:T.DISPLAY,text:T.TEXT,script:T.SCRIPT,scriptscript:T.SCRIPTSCRIPT},lt={mord:"mord",mop:"mop",mbin:"mbin",mrel:"mrel",mopen:"mopen",mclose:"mclose",mpunct:"mpunct",minner:"minner"},ht=function(r,e,t,n,i){n&&r.push(n);let a=0;for(;ae=>{r.splice(t+1,0,e),a++})(a)}}n&&r.pop()},mt=function(e){return e instanceof ne||e instanceof ke||e instanceof ve&&e.hasClass("enclosing")?e:null},ct=function(e,t){var r=mt(e);if(r){const e=r.children;if(e.length){if("right"===t)return ct(e[e.length-1],"right");if("left"===t)return ct(e[0],"left")}}return e},pt=function(e,t){return e&&(t&&(e=ct(e,t)),lt[e.classes[0]])||null},I=function(t,r,n){if(!t)return it();if(Qe[t.type]){let e=Qe[t.type](t,r);if(n&&r.size!==n.size){e=it(r.sizingClasses(n),[e],r);const t=r.sizeMultiplier/n.sizeMultiplier;e.height*=t,e.depth*=t}return e}throw new z("Got group of unknown type: '"+t.type+"'")};function ut(e,t){e=it(["base"],e,t),t=it(["strut"]);return t.style.height=C(e.height+e.depth),e.depth&&(t.style.verticalAlign=C(-e.depth)),e.children.unshift(t),e}function dt(e,r){let t=null;1===e.length&&"tag"===e[0].type&&(t=e[0].tag,e=e[0].body);var n=q(e,r,"root");let i;2===n.length&&n[1].hasClass("tag")&&(i=n.pop());var a=[];let o,s=[];for(let t=0;t"}toText(){return this.children.map(e=>e.toText()).join("")}}class ft{constructor(e){this.text=void 0,this.text=e}toNode(){return document.createTextNode(this.text)}toMarkup(){return A.escape(this.toText())}toText(){return this.text}}var S={MathNode:k,TextNode:ft,SpaceNode:class{constructor(e){this.width=void 0,this.character=void 0,this.width=e,this.character=.05555<=e&&e<=.05556?" ":.1666<=e&&e<=.1667?" ":.2222<=e&&e<=.2223?" ":.2777<=e&&e<=.2778?"  ":-.05556<=e&&e<=-.05555?" ⁣":-.1667<=e&&e<=-.1666?" ⁣":-.2223<=e&&e<=-.2222?" ⁣":-.2778<=e&&e<=-.2777?" ⁣":null}toNode(){var e;return this.character?document.createTextNode(this.character):((e=document.createElementNS("http://www.w3.org/1998/Math/MathML","mspace")).setAttribute("width",C(this.width)),e)}toMarkup(){return this.character?""+this.character+"":''}toText(){return this.character||" "}},newDocumentFragment:gt};function bt(e,t,r){return!c[t][e]||!c[t][e].replace||55349===e.charCodeAt(0)||Oe.hasOwnProperty(e)&&r&&(r.fontFamily&&"tt"===r.fontFamily.slice(4,6)||r.font&&"tt"===r.font.slice(4,6))||(e=c[t][e].replace),new S.TextNode(e)}function yt(e){return 1===e.length?e[0]:new S.MathNode("mrow",e)}function xt(e,t){if("texttt"===t.fontFamily)return"monospace";if("textsf"===t.fontFamily)return"textit"===t.fontShape&&"textbf"===t.fontWeight?"sans-serif-bold-italic":"textit"===t.fontShape?"sans-serif-italic":"textbf"===t.fontWeight?"bold-sans-serif":"sans-serif";if("textit"===t.fontShape&&"textbf"===t.fontWeight)return"bold-italic";if("textit"===t.fontShape)return"italic";if("textbf"===t.fontWeight)return"bold";if(!(t=t.font)||"mathnormal"===t)return null;var r=e.mode;if("mathit"===t)return"italic";if("boldsymbol"===t)return"textord"===e.type?"bold":"bold-italic";if("mathbf"===t)return"bold";if("mathbb"===t)return"double-struck";if("mathfrak"===t)return"fraktur";if("mathscr"===t||"mathcal"===t)return"script";if("mathsf"===t)return"sans-serif";if("mathtt"===t)return"monospace";let n=e.text;return!A.contains(["\\imath","\\jmath"],n)&&se(n=c[r][n]&&c[r][n].replace?c[r][n].replace:n,N.fontMap[t].fontName,r)?N.fontMap[t].variant:null}function M(t,r,e){if(1===t.length){const n=R(t[0],r);return e&&n instanceof k&&"mo"===n.type&&(n.setAttribute("lspace","0em"),n.setAttribute("rspace","0em")),[n]}const n=[];let i;for(let e=0;e{let e,a,o;n&&"supsub"===n.type?(a=O(n.base,"accent"),e=a.base,n.base=e,o=function(e){if(e instanceof ve)return e;throw new Error("Expected span but got "+String(e)+".")}(I(n,i)),n.base=a):(a=O(n,"accent"),e=a.base);n=I(e,i.havingCrampedStyle());let s=0;if(a.isShifty&&A.isCharacterBox(e)){const n=A.getBaseElem(e);s=Be(I(n,i.havingCrampedStyle())).skew}var l="\\c"===a.label;let h,m=l?n.height+n.depth:Math.min(n.height,i.fontMetrics().xHeight);if(a.isStretchy)h=Tt(a,i),h=N.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:n},{type:"elem",elem:h,wrapperClasses:["svg-align"],wrapperStyle:0{var r=e.isStretchy?At(e.label):new S.MathNode("mo",[bt(e.label,e.mode)]),e=new S.MathNode("mover",[R(e.base,t),r]);return e.setAttribute("accent","true"),e},It=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(e=>"\\"+e).join("|")),Rt=(w({type:"accent",names:["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring","\\widecheck","\\widehat","\\widetilde","\\overrightarrow","\\overleftarrow","\\Overrightarrow","\\overleftrightarrow","\\overgroup","\\overlinesegment","\\overleftharpoon","\\overrightharpoon"],props:{numArgs:1},handler:(e,t)=>{var t=rt(t[0]),r=!It.test(e.funcName),n=!r||"\\widehat"===e.funcName||"\\widetilde"===e.funcName||"\\widecheck"===e.funcName;return{type:"accent",mode:e.parser.mode,label:e.funcName,isStretchy:r,isShifty:n,base:t}},htmlBuilder:Nt,mathmlBuilder:qt}),w({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\c","\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["primitive"]},handler:(e,t)=>{t=t[0];let r=e.parser.mode;return"math"===r&&(e.parser.settings.reportNonstrict("mathVsTextAccents","LaTeX's accent "+e.funcName+" works only in text mode"),r="text"),{type:"accent",mode:r,label:e.funcName,isStretchy:!1,isShifty:!0,base:t}},htmlBuilder:Nt,mathmlBuilder:qt}),w({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:(e,t)=>{var{parser:e,funcName:r}=e,t=t[0];return{type:"accentUnder",mode:e.mode,label:r,base:t}},htmlBuilder:(e,t)=>{var r=I(e.base,t),n=Tt(e,t),e="\\utilde"===e.label?.12:0,n=N.makeVList({positionType:"top",positionData:r.height,children:[{type:"elem",elem:n,wrapperClasses:["svg-align"]},{type:"kern",size:e},{type:"elem",elem:r}]},t);return N.makeSpan(["mord","accentunder"],[n],t)},mathmlBuilder:(e,t)=>{var r=At(e.label),e=new S.MathNode("munder",[R(e.base,t),r]);return e.setAttribute("accentunder","true"),e}}),e=>{e=new S.MathNode("mpadded",e?[e]:[]);return e.setAttribute("width","+0.6em"),e.setAttribute("lspace","0.3em"),e}),Ot=(w({type:"xArrow",names:["\\xleftarrow","\\xrightarrow","\\xLeftarrow","\\xRightarrow","\\xleftrightarrow","\\xLeftrightarrow","\\xhookleftarrow","\\xhookrightarrow","\\xmapsto","\\xrightharpoondown","\\xrightharpoonup","\\xleftharpoondown","\\xleftharpoonup","\\xrightleftharpoons","\\xleftrightharpoons","\\xlongequal","\\xtwoheadrightarrow","\\xtwoheadleftarrow","\\xtofrom","\\xrightleftarrows","\\xrightequilibrium","\\xleftequilibrium","\\\\cdrightarrow","\\\\cdleftarrow","\\\\cdlongequal"],props:{numArgs:1,numOptionalArgs:1},handler(e,t,r){var{parser:e,funcName:n}=e;return{type:"xArrow",mode:e.mode,label:n,body:t[0],below:r[0]}},htmlBuilder(e,t){var r=t.style,n=t.havingStyle(r.sup()),i=N.wrapFragment(I(e.body,n,t),t),a="\\x"===e.label.slice(0,2)?"x":"cd";let o;i.classes.push(a+"-arrow-pad"),e.below&&(n=t.havingStyle(r.sub()),(o=N.wrapFragment(I(e.below,n,t),t)).classes.push(a+"-arrow-pad"));r=Tt(e,t),n=-t.fontMetrics().axisHeight+.5*r.height;let s,l=-t.fontMetrics().axisHeight-.5*r.height-.111;if((.25{e="ordgroup"===e.type&&e.body.length?e.body[0]:e;return"atom"!==e.type||"bin"!==e.family&&"rel"!==e.family?"mord":"m"+e.family},Dt=(w({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler(e,t){e=e.parser;return{type:"mclass",mode:e.mode,mclass:Lt(t[0]),body:v(t[1]),isCharacterBox:A.isCharacterBox(t[1])}}}),w({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler(e,t){var{parser:e,funcName:r}=e,n=t[1],t=t[0],i="\\stackrel"!==r?Lt(n):"mrel",n={type:"op",mode:n.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:"\\stackrel"!==r,body:v(n)},n={type:"supsub",mode:t.mode,base:n,sup:"\\underset"===r?null:t,sub:"\\underset"===r?t:null};return{type:"mclass",mode:e.mode,mclass:i,body:[n],isCharacterBox:A.isCharacterBox(n)}},htmlBuilder:Ht,mathmlBuilder:Et}),w({type:"pmb",names:["\\pmb"],props:{numArgs:1,allowedInText:!0},handler(e,t){e=e.parser;return{type:"pmb",mode:e.mode,mclass:Lt(t[0]),body:v(t[0])}},htmlBuilder(e,t){var r=q(e.body,t,!0),e=N.makeSpan([e.mclass],r,t);return e.style.textShadow="0.02em 0.01em 0.04px",e},mathmlBuilder(e,t){e=M(e.body,t),t=new S.MathNode("mstyle",e);return t.setAttribute("style","text-shadow: 0.02em 0.01em 0.04px"),t}}),{">":"\\\\cdrightarrow","<":"\\\\cdleftarrow","=":"\\\\cdlongequal",A:"\\uparrow",V:"\\downarrow","|":"\\Vert",".":"no arrow"}),Pt=e=>"textord"===e.type&&"@"===e.text;w({type:"cdlabel",names:["\\\\cdleft","\\\\cdright"],props:{numArgs:1},handler(e,t){var{parser:e,funcName:r}=e;return{type:"cdlabel",mode:e.mode,side:r.slice(4),label:t[0]}},htmlBuilder(e,t){var r=t.havingStyle(t.style.sup()),r=N.wrapFragment(I(e.label,r,t),t);return r.classes.push("cd-label-"+e.side),r.style.bottom=C(.8-r.depth),r.height=0,r.depth=0,r},mathmlBuilder(e,t){let r=new S.MathNode("mrow",[R(e.label,t)]);return(r=new S.MathNode("mpadded",[r])).setAttribute("width","0"),"left"===e.side&&r.setAttribute("lspace","-1width"),r.setAttribute("voffset","0.7em"),(r=new S.MathNode("mstyle",[r])).setAttribute("displaystyle","false"),r.setAttribute("scriptlevel","1"),r}}),w({type:"cdlabelparent",names:["\\\\cdparent"],props:{numArgs:1},handler(e,t){e=e.parser;return{type:"cdlabelparent",mode:e.mode,fragment:t[0]}},htmlBuilder(e,t){e=N.wrapFragment(I(e.fragment,t),t);return e.classes.push("cd-vert-arrow"),e},mathmlBuilder(e,t){return new S.MathNode("mrow",[R(e.fragment,t)])}}),w({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler(e,t){var e=e["parser"],r=O(t[0],"ordgroup").body;let n="";for(let e=0;e>10),56320+(1023&a))),{type:"textord",mode:e.mode,text:i}}});g=(e,t)=>{t=q(e.body,t.withColor(e.color),!1);return N.makeFragment(t)},Re=(e,t)=>{t=M(e.body,t.withColor(e.color)),t=new S.MathNode("mstyle",t);return t.setAttribute("mathcolor",e.color),t};w({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:!0,argTypes:["color","original"]},handler(e,t){var e=e["parser"],r=O(t[0],"color-token").color,t=t[1];return{type:"color",mode:e.mode,color:r,body:v(t)}},htmlBuilder:g,mathmlBuilder:Re}),w({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,argTypes:["color"]},handler(e,t){var{parser:e,breakOnTokenText:r}=e,t=O(t[0],"color-token").color,r=(e.gullet.macros.set("\\current@color",t),e.parseExpression(!0,r));return{type:"color",mode:e.mode,color:t,body:r}},htmlBuilder:g,mathmlBuilder:Re}),w({type:"cr",names:["\\\\"],props:{numArgs:0,numOptionalArgs:0,allowedInText:!0},handler(e,t,r){var e=e["parser"],n="["===e.gullet.future().text?e.parseSizeGroup(!0):null,i=!e.settings.displayMode||!e.settings.useStrictBehavior("newLineInDisplayMode","In LaTeX, \\\\ or \\newline does nothing in display mode");return{type:"cr",mode:e.mode,newLine:i,size:n&&O(n,"size").value}},htmlBuilder(e,t){var r=N.makeSpan(["mspace"],[],t);return e.newLine&&(r.classes.push("newline"),e.size)&&(r.style.marginTop=C(B(e.size,t))),r},mathmlBuilder(e,t){var r=new S.MathNode("mspace");return e.newLine&&(r.setAttribute("linebreak","newline"),e.size)&&r.setAttribute("height",C(B(e.size,t))),r}});function Vt(e,t,r){if(r=se(c.math[e]&&c.math[e].replace||e,t,r))return r;throw new Error("Unsupported symbol "+e+" and font size "+t+".")}function Ft(e,t,r,n){return t=r.havingBaseStyle(t),n=N.makeSpan(n.concat(t.sizingClasses(r)),[e],r),e=t.sizeMultiplier/r.sizeMultiplier,n.height*=e,n.depth*=e,n.maxFontSize=t.sizeMultiplier,n}function Gt(e,t,r){r=t.havingBaseStyle(r),r=(1-t.sizeMultiplier/r.sizeMultiplier)*t.fontMetrics().axisHeight,e.classes.push("delimcenter"),e.style.top=C(r),e.height-=r,e.depth+=r}function Ut(e,t,r,n,i,a){return e=N.makeSymbol(e,"Size"+t+"-Regular",i,n),i=Ft(N.makeSpan(["delimsizing","size"+t],[e],n),T.TEXT,n,a),r&&Gt(i,n,T.TEXT),i}function Yt(e,t,r){return{type:"elem",elem:N.makeSpan(["delimsizinginner","Size1-Regular"===t?"delim-size1":"delim-size4"],[N.makeSpan([],[N.makeSymbol(e,t,r)])])}}function Xt(e,t,r){var n=(ie["Size4-Regular"][e.charCodeAt(0)]?ie["Size4-Regular"]:ie["Size1-Regular"])[e.charCodeAt(0)][4],e=new Ae("inner",function(e,t){switch(e){case"⎜":return"M291 0 H417 V"+t+" H291z M291 0 H417 V"+t+" H291z";case"∣":return"M145 0 H188 V"+t+" H145z M145 0 H188 V"+t+" H145z";case"∥":return"M145 0 H188 V"+t+" H145z M145 0 H188 V"+t+" H145zM367 0 H410 V"+t+" H367z M367 0 H410 V"+t+" H367z";case"⎟":return"M457 0 H583 V"+t+" H457z M457 0 H583 V"+t+" H457z";case"⎢":return"M319 0 H403 V"+t+" H319z M319 0 H403 V"+t+" H319z";case"⎥":return"M263 0 H347 V"+t+" H263z M263 0 H347 V"+t+" H263z";case"⎪":return"M384 0 H504 V"+t+" H384z M384 0 H504 V"+t+" H384z";case"⏐":return"M312 0 H355 V"+t+" H312z M312 0 H355 V"+t+" H312z";case"‖":return"M257 0 H300 V"+t+" H257z M257 0 H300 V"+t+" H257zM478 0 H521 V"+t+" H478z M478 0 H521 V"+t+" H478z";default:return""}}(e,Math.round(1e3*t))),e=new ze([e],{width:C(n),height:C(t),style:"width:"+C(n),viewBox:"0 0 "+1e3*n+" "+Math.round(1e3*t),preserveAspectRatio:"xMinYMin"});return(e=N.makeSvgSpan([],[e],r)).height=t,e.style.height=C(t),e.style.width=C(n),{type:"elem",elem:e}}function Wt(e,t,r,n,i,a){let o,s,l,h,m="",c=0,p=(o=l=h=e,s=null,"Size1-Regular");"\\uparrow"===e?l=h="⏐":"\\Uparrow"===e?l=h="‖":"\\downarrow"===e?o=l="⏐":"\\Downarrow"===e?o=l="‖":"\\updownarrow"===e?(o="\\uparrow",l="⏐",h="\\downarrow"):"\\Updownarrow"===e?(o="\\Uparrow",l="‖",h="\\Downarrow"):A.contains(e0,e)?(l="∣",m="vert",c=333):A.contains(t0,e)?(l="∥",m="doublevert",c=556):"["===e||"\\lbrack"===e?(o="⎡",l="⎢",h="⎣",p="Size4-Regular",m="lbrack",c=667):"]"===e||"\\rbrack"===e?(o="⎤",l="⎥",h="⎦",p="Size4-Regular",m="rbrack",c=667):"\\lfloor"===e||"⌊"===e?(l=o="⎢",h="⎣",p="Size4-Regular",m="lfloor",c=667):"\\lceil"===e||"⌈"===e?(o="⎡",l=h="⎢",p="Size4-Regular",m="lceil",c=667):"\\rfloor"===e||"⌋"===e?(l=o="⎥",h="⎦",p="Size4-Regular",m="rfloor",c=667):"\\rceil"===e||"⌉"===e?(o="⎤",l=h="⎥",p="Size4-Regular",m="rceil",c=667):"("===e||"\\lparen"===e?(o="⎛",l="⎜",h="⎝",p="Size4-Regular",m="lparen",c=875):")"===e||"\\rparen"===e?(o="⎞",l="⎟",h="⎠",p="Size4-Regular",m="rparen",c=875):"\\{"===e||"\\lbrace"===e?(o="⎧",s="⎨",h="⎩",l="⎪",p="Size4-Regular"):"\\}"===e||"\\rbrace"===e?(o="⎫",s="⎬",h="⎭",l="⎪",p="Size4-Regular"):"\\lgroup"===e||"⟮"===e?(o="⎧",h="⎩",l="⎪",p="Size4-Regular"):"\\rgroup"===e||"⟯"===e?(o="⎫",h="⎭",l="⎪",p="Size4-Regular"):"\\lmoustache"===e||"⎰"===e?(o="⎧",h="⎭",l="⎪",p="Size4-Regular"):"\\rmoustache"!==e&&"⎱"!==e||(o="⎫",h="⎩",l="⎪",p="Size4-Regular");var e=Vt(o,p,i),u=e.height+e.depth,e=Vt(l,p,i),e=e.height+e.depth,d=(d=Vt(h,p,i)).height+d.depth;let g=0,f=1;if(null!==s){const e=Vt(s,p,i);g=e.height+e.depth,f=2}var b=(b=u+d+g)+Math.max(0,Math.ceil((t-b)/(f*e)))*f*e;let y=n.fontMetrics().axisHeight;r&&(y*=n.sizeMultiplier);var t=b/2-y,x=[];if(0n)return i[t]}return i[i.length-1]}function _t(e,t,r,n,i,a){"<"===e||"\\lt"===e||"⟨"===e?e="\\langle":">"!==e&&"\\gt"!==e&&"⟩"!==e||(e="\\rangle"),c=A.contains(i0,e)?o0:A.contains(r0,e)?l0:s0;var o,s,l,h,m,c=jt(e,t,c,n);return"small"===c.type?(o=e,s=c.style,l=r,h=n,m=a,o=N.makeSymbol(o,"Main-Regular",i,h),o=Ft(o,s,h,m),l&&Gt(o,h,s),o):"large"===c.type?Ut(e,c.size,r,n,i,a):Wt(e,t,r,n,i,a)}const Zt={"\\global":"\\global","\\long":"\\\\globallong","\\\\globallong":"\\\\globallong","\\def":"\\gdef","\\gdef":"\\gdef","\\edef":"\\xdef","\\xdef":"\\xdef","\\let":"\\\\globallet","\\futurelet":"\\\\globalfuture"},Kt=e=>{var t=e.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(t))throw new z("Expected a control sequence",e);return t},Jt=(e,t,r,n)=>{let i=e.gullet.macros.get(r.text);null==i&&(r.noexpand=!0,i={tokens:[r],numArgs:0,unexpandable:!e.gullet.isExpandable(r.text)}),e.gullet.macros.set(t,i,n)},Qt=(w({type:"internal",names:["\\global","\\long","\\\\globallong"],props:{numArgs:0,allowedInText:!0},handler(e){var{parser:e,funcName:t}=e,r=(e.consumeSpaces(),e.fetch());if(Zt[r.text])return"\\global"!==t&&"\\\\globallong"!==t||(r.text=Zt[r.text]),O(e.parseFunction(),"internal");throw new z("Invalid token after macro prefix",r)}}),w({type:"internal",names:["\\def","\\gdef","\\edef","\\xdef"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){let{parser:t,funcName:r}=e,n=t.gullet.popToken();e=n.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(e))throw new z("Expected a control sequence",n);let i,a=0;for(var o=[[]];"{"!==t.gullet.future().text;)if("#"===(n=t.gullet.popToken()).text){if("{"===t.gullet.future().text){i=t.gullet.future(),o[a].push("{");break}if(n=t.gullet.popToken(),!/^[1-9]$/.test(n.text))throw new z('Invalid argument number "'+n.text+'"');if(parseInt(n.text)!==a+1)throw new z('Argument number "'+n.text+'" out of order');a++,o.push([])}else{if("EOF"===n.text)throw new z("Expected a macro definition");o[a].push(n.text)}let s=t.gullet.consumeArg()["tokens"];return i&&s.unshift(i),"\\edef"!==r&&"\\xdef"!==r||(s=t.gullet.expandTokens(s)).reverse(),t.gullet.macros.set(e,{tokens:s,numArgs:a,delimiters:o},r===Zt[r]),{type:"internal",mode:t.mode}}}),w({type:"internal",names:["\\let","\\\\globallet"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:e,funcName:t}=e,r=Kt(e.gullet.popToken()),n=(e.gullet.consumeSpaces(),(e=>{let t=e.gullet.popToken();return t="="===t.text&&" "===(t=e.gullet.popToken()).text?e.gullet.popToken():t})(e));return Jt(e,r,n,"\\\\globallet"===t),{type:"internal",mode:e.mode}}}),w({type:"internal",names:["\\futurelet","\\\\globalfuture"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:e,funcName:t}=e,r=Kt(e.gullet.popToken()),n=e.gullet.popToken(),i=e.gullet.popToken();return Jt(e,r,i,"\\\\globalfuture"===t),e.gullet.pushToken(i),e.gullet.pushToken(n),{type:"internal",mode:e.mode}}}),{type:"kern",size:-.008}),e0=["|","\\lvert","\\rvert","\\vert"],t0=["\\|","\\lVert","\\rVert","\\Vert"],r0=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","\\surd"],n0=["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱"],i0=["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"],a0=[0,1.2,1.8,2.4,3],o0=[{type:"small",style:T.SCRIPTSCRIPT},{type:"small",style:T.SCRIPT},{type:"small",style:T.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],s0=[{type:"small",style:T.SCRIPTSCRIPT},{type:"small",style:T.SCRIPT},{type:"small",style:T.TEXT},{type:"stack"}],l0=[{type:"small",style:T.SCRIPTSCRIPT},{type:"small",style:T.SCRIPT},{type:"small",style:T.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}];var h0={sqrtImage:function(e,t){var r=t.havingBaseSizing(),n=jt("\\surd",e*r.sizeMultiplier,l0,r);let i=r.sizeMultiplier;r=Math.max(0,t.minRuleThickness-t.fontMetrics().sqrtRuleThickness);let a,o,s=0,l=0,h=0;return o="small"===n.type?(h=1e3+1e3*r+80,e<1?i=1:e<1.4&&(i=.7),s=(1+r+.08)/i,l=(1+r)/i,(a=$t("sqrtMain",s,h,r,t)).style.minWidth="0.853em",.833/i):"large"===n.type?(h=1080*a0[n.size],l=(a0[n.size]+r)/i,s=(a0[n.size]+r+.08)/i,(a=$t("sqrtSize"+n.size,s,h,r,t)).style.minWidth="1.02em",1/i):(s=e+r+.08,l=e+r,h=Math.floor(1e3*e+r)+80,(a=$t("sqrtTall",s,h,r,t)).style.minWidth="0.742em",1.056),a.height=l,a.style.height=C(s),{span:a,advanceWidth:o,ruleWidth:(t.fontMetrics().sqrtRuleThickness+r)*i}},sizedDelim:function(e,t,r,n,i){if("<"===e||"\\lt"===e||"⟨"===e?e="\\langle":">"!==e&&"\\gt"!==e&&"⟩"!==e||(e="\\rangle"),A.contains(r0,e)||A.contains(i0,e))return Ut(e,t,!1,r,n,i);if(A.contains(n0,e))return Wt(e,a0[t],!1,r,n,i);throw new z("Illegal delimiter: '"+e+"'")},sizeToMaxHeight:a0,customSizedDelim:_t,leftRightDelim:function(e,t,r,n,i,a){var o=n.fontMetrics().axisHeight*n.sizeMultiplier,s=5/n.fontMetrics().ptPerEm,t=Math.max(t-o,r+o),r=Math.max(t/500*901,2*t-s);return _t(e,r,!0,n,i,a)}};const m0={"\\bigl":{mclass:"mopen",size:1},"\\Bigl":{mclass:"mopen",size:2},"\\biggl":{mclass:"mopen",size:3},"\\Biggl":{mclass:"mopen",size:4},"\\bigr":{mclass:"mclose",size:1},"\\Bigr":{mclass:"mclose",size:2},"\\biggr":{mclass:"mclose",size:3},"\\Biggr":{mclass:"mclose",size:4},"\\bigm":{mclass:"mrel",size:1},"\\Bigm":{mclass:"mrel",size:2},"\\biggm":{mclass:"mrel",size:3},"\\Biggm":{mclass:"mrel",size:4},"\\big":{mclass:"mord",size:1},"\\Big":{mclass:"mord",size:2},"\\bigg":{mclass:"mord",size:3},"\\Bigg":{mclass:"mord",size:4}},c0=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","<",">","\\langle","⟨","\\rangle","⟩","\\lt","\\gt","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱","/","\\backslash","|","\\vert","\\|","\\Vert","\\uparrow","\\Uparrow","\\downarrow","\\Downarrow","\\updownarrow","\\Updownarrow","."];function p0(e,t){var r=Ct(e);if(r&&A.contains(c0,r.text))return r;throw new z(r?"Invalid delimiter '"+r.text+"' after '"+t.funcName+"'":"Invalid delimiter type '"+e.type+"'",e)}function u0(e){if(!e.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}w({type:"delimsizing",names:["\\bigl","\\Bigl","\\biggl","\\Biggl","\\bigr","\\Bigr","\\biggr","\\Biggr","\\bigm","\\Bigm","\\biggm","\\Biggm","\\big","\\Big","\\bigg","\\Bigg"],props:{numArgs:1,argTypes:["primitive"]},handler:(e,t)=>{t=p0(t[0],e);return{type:"delimsizing",mode:e.parser.mode,size:m0[e.funcName].size,mclass:m0[e.funcName].mclass,delim:t.text}},htmlBuilder:(e,t)=>"."===e.delim?N.makeSpan([e.mclass]):h0.sizedDelim(e.delim,e.size,t,e.mode,[e.mclass]),mathmlBuilder:e=>{var t=[],t=("."!==e.delim&&t.push(bt(e.delim,e.mode)),new S.MathNode("mo",t)),e=("mopen"===e.mclass||"mclose"===e.mclass?t.setAttribute("fence","true"):t.setAttribute("fence","false"),t.setAttribute("stretchy","true"),C(h0.sizeToMaxHeight[e.size]));return t.setAttribute("minsize",e),t.setAttribute("maxsize",e),t}}),w({type:"leftright-right",names:["\\right"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var r=e.parser.gullet.macros.get("\\current@color");if(r&&"string"!=typeof r)throw new z("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:e.parser.mode,delim:p0(t[0],e).text,color:r}}}),w({type:"leftright",names:["\\left"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var t=p0(t[0],e),e=e.parser,r=(++e.leftrightDepth,e.parseExpression(!1)),n=(--e.leftrightDepth,e.expect("\\right",!1),O(e.parseFunction(),"leftright-right"));return{type:"leftright",mode:e.mode,body:r,left:t.text,right:n.delim,rightColor:n.color}},htmlBuilder:(t,e)=>{u0(t);const r=q(t.body,e,!0,["mopen","mclose"]);let n,i,a=0,o=0,s=!1;for(let e=0;e{u0(e);var r=M(e.body,t);if("."!==e.left){const t=new S.MathNode("mo",[bt(e.left,e.mode)]);t.setAttribute("fence","true"),r.unshift(t)}if("."!==e.right){const t=new S.MathNode("mo",[bt(e.right,e.mode)]);t.setAttribute("fence","true"),e.rightColor&&t.setAttribute("mathcolor",e.rightColor),r.push(t)}return yt(r)}}),w({type:"middle",names:["\\middle"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{t=p0(t[0],e);if(e.parser.leftrightDepth)return{type:"middle",mode:e.parser.mode,delim:t.text};throw new z("\\middle without preceding \\left",t)},htmlBuilder:(e,t)=>{let r;return"."===e.delim?r=nt(t,[]):(r=h0.sizedDelim(e.delim,1,t,e.mode,[]),e={delim:e.delim,options:t},r.isMiddle=e),r},mathmlBuilder:(e,t)=>{e="\\vert"===e.delim||"|"===e.delim?bt("|","text"):bt(e.delim,e.mode),e=new S.MathNode("mo",[e]);return e.setAttribute("fence","true"),e.setAttribute("lspace","0.05em"),e.setAttribute("rspace","0.05em"),e}});s=(n,i)=>{const a=N.wrapFragment(I(n.body,i),i),o=n.label.slice(1);let s,e=i.sizeMultiplier,l=0;const h=A.isCharacterBox(n.body);if("sout"===o)(s=N.makeSpan(["stretchy","sout"])).height=i.fontMetrics().defaultRuleThickness/e,l=-.5*i.fontMetrics().xHeight;else if("phase"===o){const n=B({number:.6,unit:"pt"},i),o=B({number:.35,unit:"ex"},i),h=(e/=i.havingBaseSizing().sizeMultiplier,a.height+a.depth+n+o),A=(a.style.paddingLeft=C(h/2+n),Math.floor(1e3*h*e)),t="M400000 "+A+" H0 L"+A/2+" 0 l65 45 L145 "+(A-80)+" H400000z",r=new ze([new Ae("phase",t)],{width:"400em",height:C(A/1e3),viewBox:"0 0 400000 "+A,preserveAspectRatio:"xMinYMin slice"});(s=N.makeSvgSpan(["hide-tail"],[r],i)).style.height=C(h),l=a.depth+n+o}else{/cancel/.test(o)?h||a.classes.push("cancel-pad"):"angl"===o?a.classes.push("anglpad"):a.classes.push("boxpad");let e=0,t=0,r=0;t=/box/.test(o)?(r=Math.max(i.fontMetrics().fboxrule,i.minRuleThickness),e=i.fontMetrics().fboxsep+("colorbox"===o?0:r)):"angl"===o?(r=Math.max(i.fontMetrics().defaultRuleThickness,i.minRuleThickness),e=4*r,Math.max(0,.25-a.depth)):e=h?.2:0,s=function(e,t,r,n,i){let a;n=e.height+e.depth+r+n;if(/fbox|color|angl/.test(t)){if(a=N.makeSpan(["stretchy",t],[],i),"fbox"===t){const e=i.color&&i.getColor();e&&(a.style.borderColor=e)}}else{const e=[],r=(/^[bx]cancel$/.test(t)&&e.push(new Te({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(t)&&e.push(new Te({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"})),new ze(e,{width:"100%",height:C(n)}));a=N.makeSvgSpan([],[r],i)}return a.height=n,a.style.height=C(n),a}(a,o,e,t,i),/fbox|boxed|fcolorbox/.test(o)?(s.style.borderStyle="solid",s.style.borderWidth=C(r)):"angl"===o&&.049!==r&&(s.style.borderTopWidth=C(r),s.style.borderRightWidth=C(r)),l=a.depth+t,n.backgroundColor&&(s.style.backgroundColor=n.backgroundColor,n.borderColor)&&(s.style.borderColor=n.borderColor)}let t;if(n.backgroundColor)t=N.makeVList({positionType:"individualShift",children:[{type:"elem",elem:s,shift:l},{type:"elem",elem:a,shift:0}]},i);else{const n=/cancel|phase/.test(o)?["svg-align"]:[];t=N.makeVList({positionType:"individualShift",children:[{type:"elem",elem:a,shift:0},{type:"elem",elem:s,shift:l,wrapperClasses:n}]},i)}return/cancel/.test(o)&&(t.height=a.height,t.depth=a.depth),/cancel/.test(o)&&!h?N.makeSpan(["mord","cancel-lap"],[t],i):N.makeSpan(["mord"],[t],i)},p=(e,t)=>{let r=0;var n=new S.MathNode(-1{if(!e.parser.settings.displayMode)throw new z("{"+e.envName+"} can be used only in display mode.")};function v0(e){if(-1===e.indexOf("ed"))return-1===e.indexOf("*")}function k0(t,e,r){let{hskipBeforeAndAfter:n,addJot:i,cols:a,arraystretch:o,colSeparationType:s,autoTag:l,singleRow:h,emptySingleRow:m,maxNumCols:c,leqno:p}=e;if(t.gullet.beginGroup(),h||t.gullet.macros.set("\\cr","\\\\\\relax"),!o){const e=t.gullet.expandMacroAsText("\\arraystretch");if(null==e)o=1;else if(!(o=parseFloat(e))||o<0)throw new z("Invalid \\arraystretch: "+e)}t.gullet.beginGroup();let u=[];const d=[u],g=[],f=[],b=null!=l?[]:void 0;function y(){l&&t.gullet.macros.set("\\@eqnsw","1",!0)}function x(){b&&(t.gullet.macros.get("\\df@tag")?(b.push(t.subparse([new y0("\\df@tag")])),t.gullet.macros.set("\\df@tag",void 0,!0)):b.push(Boolean(l)&&"1"===t.gullet.macros.get("\\@eqnsw")))}for(y(),f.push(x0(t));;){let e=t.parseExpression(!1,h?"\\end":"\\\\");t.gullet.endGroup(),t.gullet.beginGroup(),e={type:"ordgroup",mode:t.mode,body:e},r&&(e={type:"styling",mode:t.mode,style:r,body:[e]}),u.push(e);const n=t.fetch().text;if("&"===n){if(c&&u.length===c){if(h||s)throw new z("Too many tab characters: &",t.nextToken);t.settings.reportNonstrict("textEnv","Too few columns specified in the {array} column argument.")}t.consume()}else{if("\\end"===n){x(),1===u.length&&"styling"===e.type&&0===e.body[0].body.length&&(1e))for(a=0;a=h)){(0e.length));return n.cols=new Array(i).fill({type:"align",align:r}),t?{type:"leftright",mode:e.mode,body:[n],left:t[0],right:t[1],rightColor:void 0}:n},htmlBuilder:M0,mathmlBuilder:z0}),g0({type:"array",names:["smallmatrix"],props:{numArgs:0},handler(e){e=k0(e.parser,{arraystretch:.5},"script");return e.colSeparationType="small",e},htmlBuilder:M0,mathmlBuilder:z0}),g0({type:"array",names:["subarray"],props:{numArgs:1},handler(e,t){t=(Ct(t[0])?[t[0]]:O(t[0],"ordgroup").body).map(function(e){var t=Bt(e).text;if(-1!=="lc".indexOf(t))return{type:"align",align:t};throw new z("Unknown column alignment: "+t,e)});if(1AV".indexOf(h)))throw new z('Expected one of "<>AV=|." after @',s[n]);for(let r=0;r<2;r++){let t=!0;for(let e=n+1;e{var r=e.font,t=t.withFont(r);return I(e.body,t)},I0=(e,t)=>{var r=e.font,t=t.withFont(r);return R(e.body,t)},R0={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak","\\bm":"\\boldsymbol"},O0=(w({type:"font",names:["\\mathrm","\\mathit","\\mathbf","\\mathnormal","\\mathbb","\\mathcal","\\mathfrak","\\mathscr","\\mathsf","\\mathtt","\\Bbb","\\bold","\\frak"],props:{numArgs:1,allowedInArgument:!0},handler:(e,t)=>{var{parser:e,funcName:r}=e,t=rt(t[0]);let n=r;return n in R0&&(n=R0[n]),{type:"font",mode:e.mode,font:n.slice(1),body:t}},htmlBuilder:q0,mathmlBuilder:I0}),w({type:"mclass",names:["\\boldsymbol","\\bm"],props:{numArgs:1},handler:(e,t)=>{var e=e["parser"],t=t[0],r=A.isCharacterBox(t);return{type:"mclass",mode:e.mode,mclass:Lt(t),body:[{type:"font",mode:e.mode,font:"boldsymbol",body:t}],isCharacterBox:r}}}),w({type:"font",names:["\\rm","\\sf","\\tt","\\bf","\\it","\\cal"],props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{parser:e,funcName:r,breakOnTokenText:n}=e,i=e["mode"],n=e.parseExpression(!0,n);return{type:"font",mode:i,font:"math"+r.slice(1),body:{type:"ordgroup",mode:e.mode,body:n}}},htmlBuilder:q0,mathmlBuilder:I0}),(e,t)=>{let r=t;return"display"===e?r=r.id>=T.SCRIPT.id?r.text():T.DISPLAY:"text"===e&&r.size===T.DISPLAY.size?r=T.TEXT:"script"===e?r=T.SCRIPT:"scriptscript"===e&&(r=T.SCRIPTSCRIPT),r}),H0=(e,t)=>{const r=O0(e.size,t.style),n=r.fracNum(),i=r.fracDen();var a=t.havingStyle(n),o=I(e.numer,a,t);if(e.continued){const e=8.5/t.fontMetrics().ptPerEm,r=3.5/t.fontMetrics().ptPerEm;o.height=o.height{let r=new S.MathNode("mfrac",[R(e.numer,t),R(e.denom,t)]);if(e.hasBarLine){if(e.barSize){const n=B(e.barSize,t);r.setAttribute("linethickness",C(n))}}else r.setAttribute("linethickness","0px");const n=O0(e.size,t.style);if(n.size!==t.style.size){r=new S.MathNode("mstyle",[r]);const e=n.size===T.DISPLAY.size?"true":"false";r.setAttribute("displaystyle",e),r.setAttribute("scriptlevel","0")}if(null==e.leftDelim&&null==e.rightDelim)return r;{const t=[];if(null!=e.leftDelim){const r=new S.MathNode("mo",[new S.TextNode(e.leftDelim.replace("\\",""))]);r.setAttribute("fence","true"),t.push(r)}if(t.push(r),null!=e.rightDelim){const r=new S.MathNode("mo",[new S.TextNode(e.rightDelim.replace("\\",""))]);r.setAttribute("fence","true"),t.push(r)}return yt(t)}},L0=(w({type:"genfrac",names:["\\dfrac","\\frac","\\tfrac","\\dbinom","\\binom","\\tbinom","\\\\atopfrac","\\\\bracefrac","\\\\brackfrac"],props:{numArgs:2,allowedInArgument:!0},handler:(e,t)=>{var{parser:e,funcName:r}=e,n=t[0],t=t[1];let i,a=null,o=null,s="auto";switch(r){case"\\dfrac":case"\\frac":case"\\tfrac":i=!0;break;case"\\\\atopfrac":i=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":i=!1,a="(",o=")";break;case"\\\\bracefrac":i=!1,a="\\{",o="\\}";break;case"\\\\brackfrac":i=!1,a="[",o="]";break;default:throw new Error("Unrecognized genfrac command")}switch(r){case"\\dfrac":case"\\dbinom":s="display";break;case"\\tfrac":case"\\tbinom":s="text"}return{type:"genfrac",mode:e.mode,continued:!1,numer:n,denom:t,hasBarLine:i,leftDelim:a,rightDelim:o,size:s,barSize:null}},htmlBuilder:H0,mathmlBuilder:E0}),w({type:"genfrac",names:["\\cfrac"],props:{numArgs:2},handler:(e,t)=>{var e=e["parser"],r=t[0],t=t[1];return{type:"genfrac",mode:e.mode,continued:!0,numer:r,denom:t,hasBarLine:!0,leftDelim:null,rightDelim:null,size:"display",barSize:null}}}),w({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],props:{numArgs:0,infix:!0},handler(e){let t,{parser:r,funcName:n,token:i}=e;switch(n){case"\\over":t="\\frac";break;case"\\choose":t="\\binom";break;case"\\atop":t="\\\\atopfrac";break;case"\\brace":t="\\\\bracefrac";break;case"\\brack":t="\\\\brackfrac";break;default:throw new Error("Unrecognized infix genfrac command")}return{type:"infix",mode:r.mode,replaceWith:t,token:i}}}),["display","text","script","scriptscript"]),D0=(w({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,allowedInArgument:!0,argTypes:["math","math","size","text","math","math"]},handler(e,t){var e=e["parser"],r=t[4],n=t[5],i=rt(t[0]),i="atom"===i.type&&"open"===i.family?C0(i.text):null,a=rt(t[1]),a="atom"===a.type&&"close"===a.family?C0(a.text):null,o=O(t[2],"size");let s,l=null,h=(s=!!o.isBlank||0<(l=o.value).number,"auto"),m=t[3];if("ordgroup"===m.type){if(0{var e=e["parser"],r=t[0],n=function(e){if(e)return e;throw new Error("Expected non-null, but got "+String(e))}(O(t[1],"infix").size),t=t[2],i=0{var r=t.style;let n,i;i="supsub"===e.type?(n=e.sup?I(e.sup,t.havingStyle(r.sup()),t):I(e.sub,t.havingStyle(r.sub()),t),O(e.base,"horizBrace")):O(e,"horizBrace");r=I(i.base,t.havingBaseStyle(T.DISPLAY)),e=Tt(i,t);let a;if((i.isOver?(a=N.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:r},{type:"kern",size:.1},{type:"elem",elem:e}]},t)).children[0].children[0].children[1]:(a=N.makeVList({positionType:"bottom",positionData:r.depth+.1+e.height,children:[{type:"elem",elem:e},{type:"kern",size:.1},{type:"elem",elem:r}]},t)).children[0].children[0].children[0]).classes.push("svg-align"),n){const e=N.makeSpan(["mord",i.isOver?"mover":"munder"],[a],t);a=i.isOver?N.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:e},{type:"kern",size:.2},{type:"elem",elem:n}]},t):N.makeVList({positionType:"bottom",positionData:e.depth+.2+n.height+n.depth,children:[{type:"elem",elem:n},{type:"kern",size:.2},{type:"elem",elem:e}]},t)}return N.makeSpan(["mord",i.isOver?"mover":"munder"],[a],t)}),P0=(w({type:"horizBrace",names:["\\overbrace","\\underbrace"],props:{numArgs:1},handler(e,t){var{parser:e,funcName:r}=e;return{type:"horizBrace",mode:e.mode,label:r,isOver:/^\\over/.test(r),base:t[0]}},htmlBuilder:D0,mathmlBuilder:(e,t)=>{var r=At(e.label);return new S.MathNode(e.isOver?"mover":"munder",[R(e.base,t),r])}}),w({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:(e,t)=>{var e=e["parser"],r=t[1],t=O(t[0],"url").url;return e.settings.isTrusted({command:"\\href",url:t})?{type:"href",mode:e.mode,href:t,body:v(r)}:e.formatUnsupportedCmd("\\href")},htmlBuilder:(e,t)=>{var r=q(e.body,t,!1);return N.makeAnchor(e.href,[],r,t)},mathmlBuilder:(e,t)=>{let r=wt(e.body,t);return(r=r instanceof k?r:new k("mrow",[r])).setAttribute("href",e.href),r}}),w({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:(e,t)=>{var e=e["parser"],r=O(t[0],"url").url;if(!e.settings.isTrusted({command:"\\url",url:r}))return e.formatUnsupportedCmd("\\url");var n=[];for(let t=0;t{let{parser:r,funcName:n}=t;var i=O(e[0],"raw").string,t=e[1];let a;r.settings.strict&&r.settings.reportNonstrict("htmlExtension","HTML extension is disabled on strict mode");var o={};switch(n){case"\\htmlClass":o.class=i,a={command:"\\htmlClass",class:i};break;case"\\htmlId":o.id=i,a={command:"\\htmlId",id:i};break;case"\\htmlStyle":o.style=i,a={command:"\\htmlStyle",style:i};break;case"\\htmlData":{const t=i.split(",");for(let e=0;e{var r=q(e.body,t,!1),n=["enclosing"],i=(e.attributes.class&&n.push(...e.attributes.class.trim().split(/\s+/)),N.makeSpan(n,r,t));for(const t in e.attributes)"class"!==t&&e.attributes.hasOwnProperty(t)&&i.setAttribute(t,e.attributes[t]);return i},mathmlBuilder:(e,t)=>wt(e.body,t)}),w({type:"htmlmathml",names:["\\html@mathml"],props:{numArgs:2,allowedInText:!0},handler:(e,t)=>{e=e.parser;return{type:"htmlmathml",mode:e.mode,html:v(t[0]),mathml:v(t[1])}},htmlBuilder:(e,t)=>{e=q(e.html,t,!1);return N.makeFragment(e)},mathmlBuilder:(e,t)=>wt(e.mathml,t)}),w({type:"includegraphics",names:["\\includegraphics"],props:{numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1},handler:(t,e,r)=>{let n=t["parser"],i={number:0,unit:"em"},a={number:.9,unit:"em"},o={number:0,unit:"em"},s="";if(r[0]){const t=O(r[0],"raw").string.split(",");for(let e=0;e{var r=B(e.height,t);let n=0,i=(0{var r=new S.MathNode("mglyph",[]);r.setAttribute("alt",e.alt);const n=B(e.height,t);let i=0;if(0{var{parser:e,funcName:r}=e,t=t[0];return{type:"lap",mode:e.mode,alignment:r.slice(5),body:t}},htmlBuilder:(e,t)=>{let r;r="clap"===e.alignment?(r=N.makeSpan([],[I(e.body,t)]),N.makeSpan(["inner"],[r],t)):N.makeSpan(["inner"],[I(e.body,t)]);var n=N.makeSpan(["fix"],[]);let i=N.makeSpan([e.alignment],[r,n],t);e=N.makeSpan(["strut"]);return e.style.height=C(i.height+i.depth),i.depth&&(e.style.verticalAlign=C(-i.depth)),i.children.unshift(e),i=N.makeSpan(["thinbox"],[i],t),N.makeSpan(["mord","vbox"],[i],t)},mathmlBuilder:(e,t)=>{var r=new S.MathNode("mpadded",[R(e.body,t)]);if("rlap"!==e.alignment){const t="llap"===e.alignment?"-1":"-0.5";r.setAttribute("lspace",t+"width")}return r.setAttribute("width","0px"),r}}),w({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){var{funcName:e,parser:r}=e,n=r.mode,e=(r.switchMode("math"),"\\("===e?"\\)":"$"),i=r.parseExpression(!1,e);return r.expect(e),r.switchMode(n),{type:"styling",mode:r.mode,style:"text",body:i}}}),w({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){throw new z("Mismatched "+e.funcName)}}),(e,t)=>{switch(t.style.size){case T.DISPLAY.size:return e.display;case T.TEXT.size:return e.text;case T.SCRIPT.size:return e.script;case T.SCRIPTSCRIPT.size:return e.scriptscript;default:return e.text}}),V0=(w({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4,primitive:!0},handler:(e,t)=>{e=e.parser;return{type:"mathchoice",mode:e.mode,display:v(t[0]),text:v(t[1]),script:v(t[2]),scriptscript:v(t[3])}},htmlBuilder:(e,t)=>{e=P0(e,t),e=q(e,t,!1);return N.makeFragment(e)},mathmlBuilder:(e,t)=>{e=P0(e,t);return wt(e,t)}}),(e,t,r,n,i,a,o)=>{e=N.makeSpan([],[e]);var s=r&&A.isCharacterBox(r);let l,h,m;if(t){const e=I(t,n.havingStyle(i.sup()),n);h={elem:e,kern:Math.max(n.fontMetrics().bigOpSpacing1,n.fontMetrics().bigOpSpacing3-e.depth)}}if(r){const e=I(r,n.havingStyle(i.sub()),n);l={elem:e,kern:Math.max(n.fontMetrics().bigOpSpacing2,n.fontMetrics().bigOpSpacing4-e.height)}}if(h&&l){const t=n.fontMetrics().bigOpSpacing5+l.elem.height+l.elem.depth+l.kern+e.depth+o;m=N.makeVList({positionType:"bottom",positionData:t,children:[{type:"kern",size:n.fontMetrics().bigOpSpacing5},{type:"elem",elem:l.elem,marginLeft:C(-a)},{type:"kern",size:l.kern},{type:"elem",elem:e},{type:"kern",size:h.kern},{type:"elem",elem:h.elem,marginLeft:C(a)},{type:"kern",size:n.fontMetrics().bigOpSpacing5}]},n)}else if(l){const t=e.height-o;m=N.makeVList({positionType:"top",positionData:t,children:[{type:"kern",size:n.fontMetrics().bigOpSpacing5},{type:"elem",elem:l.elem,marginLeft:C(-a)},{type:"kern",size:l.kern},{type:"elem",elem:e}]},n)}else{if(!h)return e;{const t=e.depth+o;m=N.makeVList({positionType:"bottom",positionData:t,children:[{type:"elem",elem:e},{type:"kern",size:h.kern},{type:"elem",elem:h.elem,marginLeft:C(a)},{type:"kern",size:n.fontMetrics().bigOpSpacing5}]},n)}}t=[m];if(l&&0!==a&&!s){const e=N.makeSpan(["mspace"],[],n);e.style.marginRight=C(a),t.unshift(e)}return N.makeSpan(["mop","op-limits"],t,n)}),F0=["\\smallint"],G0=(t,r)=>{let e,n,i,a=!1;"supsub"===t.type?(e=t.sup,n=t.sub,i=O(t.base,"op"),a=!0):i=O(t,"op");t=r.style;let o,s=!1;if(t.size===T.DISPLAY.size&&i.symbol&&!A.contains(F0,i.name)&&(s=!0),i.symbol){const t=s?"Size2-Regular":"Size1-Regular";let e="";if("\\oiint"!==i.name&&"\\oiiint"!==i.name||(e=i.name.slice(1),i.name="oiint"===e?"\\iint":"\\iiint"),o=N.makeSymbol(i.name,t,"math",r,["mop","op-symbol",s?"large-op":"small-op"]),0{let r;if(e.symbol)r=new k("mo",[bt(e.name,e.mode)]),A.contains(F0,e.name)&&r.setAttribute("largeop","false");else if(e.body)r=new k("mo",M(e.body,t));else{r=new k("mi",[new ft(e.name.slice(1))]);const t=new k("mo",[bt("⁡","text")]);r=e.parentIsSupSub?new k("mrow",[r,t]):gt([r,t])}return r},Y0={"∏":"\\prod","∐":"\\coprod","∑":"\\sum","⋀":"\\bigwedge","⋁":"\\bigvee","⋂":"\\bigcap","⋃":"\\bigcup","⨀":"\\bigodot","⨁":"\\bigoplus","⨂":"\\bigotimes","⨄":"\\biguplus","⨆":"\\bigsqcup"},X0=(w({type:"op",names:["\\coprod","\\bigvee","\\bigwedge","\\biguplus","\\bigcap","\\bigcup","\\intop","\\prod","\\sum","\\bigotimes","\\bigoplus","\\bigodot","\\bigsqcup","\\smallint","∏","∐","∑","⋀","⋁","⋂","⋃","⨀","⨁","⨂","⨄","⨆"],props:{numArgs:0},handler:(e,t)=>{let{parser:r,funcName:n}=e,i=n;return 1===i.length&&(i=Y0[i]),{type:"op",mode:r.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:i}},htmlBuilder:G0,mathmlBuilder:U0}),w({type:"op",names:["\\mathop"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{e=e.parser,t=t[0];return{type:"op",mode:e.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:v(t)}},htmlBuilder:G0,mathmlBuilder:U0}),{"∫":"\\int","∬":"\\iint","∭":"\\iiint","∮":"\\oint","∯":"\\oiint","∰":"\\oiiint"}),W0=(w({type:"op",names:["\\arcsin","\\arccos","\\arctan","\\arctg","\\arcctg","\\arg","\\ch","\\cos","\\cosec","\\cosh","\\cot","\\cotg","\\coth","\\csc","\\ctg","\\cth","\\deg","\\dim","\\exp","\\hom","\\ker","\\lg","\\ln","\\log","\\sec","\\sin","\\sinh","\\sh","\\tan","\\tanh","\\tg","\\th"],props:{numArgs:0},handler(e){var{parser:e,funcName:t}=e;return{type:"op",mode:e.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:t}},htmlBuilder:G0,mathmlBuilder:U0}),w({type:"op",names:["\\det","\\gcd","\\inf","\\lim","\\max","\\min","\\Pr","\\sup"],props:{numArgs:0},handler(e){var{parser:e,funcName:t}=e;return{type:"op",mode:e.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:t}},htmlBuilder:G0,mathmlBuilder:U0}),w({type:"op",names:["\\int","\\iint","\\iiint","\\oint","\\oiint","\\oiiint","∫","∬","∭","∮","∯","∰"],props:{numArgs:0},handler(e){let{parser:t,funcName:r}=e,n=r;return 1===n.length&&(n=X0[n]),{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:n}},htmlBuilder:G0,mathmlBuilder:U0}),(e,t)=>{let r,n,i,a,o=!1;if("supsub"===e.type?(r=e.sup,n=e.sub,i=O(e.base,"operatorname"),o=!0):i=O(e,"operatorname"),0{var t=e.text;return"string"==typeof t?{type:"textord",mode:e.mode,text:t}:e}),r=q(e,t.withFont("mathrm"),!0);for(let e=0;e{var{parser:e,funcName:r}=e,t=t[0];return{type:"operatorname",mode:e.mode,body:v(t),alwaysHandleSupSub:"\\operatornamewithlimits"===r,limits:!1,parentIsSupSub:!1}},htmlBuilder:W0,mathmlBuilder:(t,r)=>{let n=M(t.body,r.withFont("mathrm")),i=!0;for(let e=0;ee.toText()).join("");n=[new S.TextNode(t)]}var r=new S.MathNode("mi",n),e=(r.setAttribute("mathvariant","normal"),new S.MathNode("mo",[bt("⁡","text")]));return t.parentIsSupSub?new S.MathNode("mrow",[r,e]):S.newDocumentFragment([r,e])}}),H("\\operatorname","\\@ifstar\\operatornamewithlimits\\operatorname@"),tt({type:"ordgroup",htmlBuilder(e,t){return e.semisimple?N.makeFragment(q(e.body,t,!1)):N.makeSpan(["mord"],q(e.body,t,!0),t)},mathmlBuilder(e,t){return wt(e.body,t,!0)}}),w({type:"overline",names:["\\overline"],props:{numArgs:1},handler(e,t){e=e.parser,t=t[0];return{type:"overline",mode:e.mode,body:t}},htmlBuilder(e,t){var e=I(e.body,t.havingCrampedStyle()),r=N.makeLineSpan("overline-line",t),n=t.fontMetrics().defaultRuleThickness,e=N.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:e},{type:"kern",size:3*n},{type:"elem",elem:r},{type:"kern",size:n}]},t);return N.makeSpan(["mord","overline"],[e],t)},mathmlBuilder(e,t){var r=new S.MathNode("mo",[new S.TextNode("‾")]),e=(r.setAttribute("stretchy","true"),new S.MathNode("mover",[R(e.body,t),r]));return e.setAttribute("accent","true"),e}}),w({type:"phantom",names:["\\phantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{e=e.parser,t=t[0];return{type:"phantom",mode:e.mode,body:v(t)}},htmlBuilder:(e,t)=>{e=q(e.body,t.withPhantom(),!1);return N.makeFragment(e)},mathmlBuilder:(e,t)=>{e=M(e.body,t);return new S.MathNode("mphantom",e)}}),w({type:"hphantom",names:["\\hphantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{e=e.parser,t=t[0];return{type:"hphantom",mode:e.mode,body:t}},htmlBuilder:(e,t)=>{let r=N.makeSpan([],[I(e.body,t.withPhantom())]);if(r.height=0,r.depth=0,r.children)for(let e=0;e{e=M(v(e.body),t),t=new S.MathNode("mphantom",e),e=new S.MathNode("mpadded",[t]);return e.setAttribute("height","0px"),e.setAttribute("depth","0px"),e}}),w({type:"vphantom",names:["\\vphantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{e=e.parser,t=t[0];return{type:"vphantom",mode:e.mode,body:t}},htmlBuilder:(e,t)=>{var e=N.makeSpan(["inner"],[I(e.body,t.withPhantom())]),r=N.makeSpan(["fix"],[]);return N.makeSpan(["mord","rlap"],[e,r],t)},mathmlBuilder:(e,t)=>{e=M(v(e.body),t),t=new S.MathNode("mphantom",e),e=new S.MathNode("mpadded",[t]);return e.setAttribute("width","0px"),e}}),w({type:"raisebox",names:["\\raisebox"],props:{numArgs:2,argTypes:["size","hbox"],allowedInText:!0},handler(e,t){var e=e["parser"],r=O(t[0],"size").value,t=t[1];return{type:"raisebox",mode:e.mode,dy:r,body:t}},htmlBuilder(e,t){var r=I(e.body,t),e=B(e.dy,t);return N.makeVList({positionType:"shift",positionData:-e,children:[{type:"elem",elem:r}]},t)},mathmlBuilder(e,t){t=new S.MathNode("mpadded",[R(e.body,t)]),e=e.dy.number+e.dy.unit;return t.setAttribute("voffset",e),t}}),w({type:"internal",names:["\\relax"],props:{numArgs:0,allowedInText:!0},handler(e){e=e.parser;return{type:"internal",mode:e.mode}}}),w({type:"rule",names:["\\rule"],props:{numArgs:2,numOptionalArgs:1,argTypes:["size","size","size"]},handler(e,t,r){var e=e["parser"],r=r[0],n=O(t[0],"size"),t=O(t[1],"size");return{type:"rule",mode:e.mode,shift:r&&O(r,"size").value,width:n.value,height:t.value}},htmlBuilder(e,t){var r=N.makeSpan(["mord","rule"],[],t),n=B(e.width,t),i=B(e.height,t),e=e.shift?B(e.shift,t):0;return r.style.borderRightWidth=C(n),r.style.borderTopWidth=C(i),r.style.bottom=C(e),r.width=n,r.height=i+e,r.depth=-e,r.maxFontSize=1.125*i*t.sizeMultiplier,r},mathmlBuilder(e,t){var r=B(e.width,t),n=B(e.height,t),e=e.shift?B(e.shift,t):0,t=t.color&&t.getColor()||"black",i=new S.MathNode("mspace"),t=(i.setAttribute("mathbackground",t),i.setAttribute("width",C(r)),i.setAttribute("height",C(n)),new S.MathNode("mpadded",[i]));return 0<=e?t.setAttribute("height",C(e)):(t.setAttribute("height",C(e)),t.setAttribute("depth",C(-e))),t.setAttribute("voffset",C(e)),t}});const j0=["\\tiny","\\sixptsize","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"],_0=(w({type:"sizing",names:j0,props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{breakOnTokenText:e,funcName:r,parser:n}=e,e=n.parseExpression(!1,e);return{type:"sizing",mode:n.mode,size:j0.indexOf(r)+1,body:e}},htmlBuilder:(e,t)=>{var r=t.havingSize(e.size);return $0(e.body,r,t)},mathmlBuilder:(e,t)=>{t=t.havingSize(e.size),e=M(e.body,t),e=new S.MathNode("mstyle",e);return e.setAttribute("mathsize",C(t.sizeMultiplier)),e}}),w({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:(e,t,r)=>{let n=e["parser"],i=!1,a=!1;var o=r[0]&&O(r[0],"ordgroup");if(o){var s;for(let e=0;e{var r=N.makeSpan([],[I(e.body,t)]);if(!e.smashHeight&&!e.smashDepth)return r;if(e.smashHeight&&(r.height=0,r.children))for(let e=0;e{t=new S.MathNode("mpadded",[R(e.body,t)]);return e.smashHeight&&t.setAttribute("height","0px"),e.smashDepth&&t.setAttribute("depth","0px"),t}}),w({type:"sqrt",names:["\\sqrt"],props:{numArgs:1,numOptionalArgs:1},handler(e,t,r){e=e.parser,r=r[0],t=t[0];return{type:"sqrt",mode:e.mode,body:t,index:r}},htmlBuilder(e,t){let r=I(e.body,t.havingCrampedStyle());0===r.height&&(r.height=t.fontMetrics().xHeight),r=N.wrapFragment(r,t);const n=t.fontMetrics().defaultRuleThickness;let i=n,a=(t.style.idr.height+r.depth+a&&(a=(a+m-r.height-r.depth)/2);var c=s.height-r.height-a-l,c=(r.style.paddingLeft=C(h),N.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:r,wrapperClasses:["svg-align"]},{type:"kern",size:-(r.height+c)},{type:"elem",elem:s},{type:"kern",size:l}]},t));if(e.index){const r=t.havingStyle(T.SCRIPTSCRIPT),n=I(e.index,r,t),i=.6*(c.height-c.depth),a=N.makeVList({positionType:"shift",positionData:-i,children:[{type:"elem",elem:n}]},t),o=N.makeSpan(["root"],[a]);return N.makeSpan(["mord","sqrt"],[o,c],t)}return N.makeSpan(["mord","sqrt"],[c],t)},mathmlBuilder(e,t){var{body:e,index:r}=e;return r?new S.MathNode("mroot",[R(e,t),R(r,t)]):new S.MathNode("msqrt",[R(e,t)])}}),{display:T.DISPLAY,text:T.TEXT,script:T.SCRIPT,scriptscript:T.SCRIPTSCRIPT}),Z0=(w({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e,t){var{breakOnTokenText:e,funcName:r,parser:n}=e,e=n.parseExpression(!0,e),r=r.slice(1,r.length-5);return{type:"styling",mode:n.mode,style:r,body:e}},htmlBuilder(e,t){var r=_0[e.style],r=t.havingStyle(r).withFont("");return $0(e.body,r,t)},mathmlBuilder(e,t){var r=_0[e.style],t=t.havingStyle(r),r=M(e.body,t),t=new S.MathNode("mstyle",r),r={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]}[e.style];return t.setAttribute("scriptlevel",r[0]),t.setAttribute("displaystyle",r[1]),t}}),tt({type:"supsub",htmlBuilder(e,t){n=t;const r=(a=(i=e).base)?"op"===a.type?a.limits&&(n.style.size===T.DISPLAY.size||a.alwaysHandleSupSub)?G0:null:"operatorname"===a.type?a.alwaysHandleSupSub&&(n.style.size===T.DISPLAY.size||a.limits)?W0:null:"accent"===a.type?A.isCharacterBox(a.base)?Nt:null:"horizBrace"===a.type&&!i.sub===a.isOver?D0:null:null;if(r)return r(e,t);var{base:n,sup:i,sub:a}=e,o=I(n,t);let s,l;var h=t.fontMetrics();let m=0,c=0;n=n&&A.isCharacterBox(n);if(i){const e=t.havingStyle(t.style.sup());s=I(i,e,t),n||(m=o.height-e.fontMetrics().supDrop*e.sizeMultiplier/t.sizeMultiplier)}if(a){const e=t.havingStyle(t.style.sub());l=I(a,e,t),n||(c=o.depth+e.fontMetrics().subDrop*e.sizeMultiplier/t.sizeMultiplier)}i=t.style===T.DISPLAY?h.sup1:t.style.cramped?h.sup3:h.sup2,a=t.sizeMultiplier,n=C(.5/h.ptPerEm/a);let p,u=null;if(l){const t=e.base&&"op"===e.base.type&&e.base.name&&("\\oiint"===e.base.name||"\\oiiint"===e.base.name);(o instanceof d||t)&&(u=C(-o.italic))}if(s&&l){m=Math.max(m,i,s.depth+.25*h.xHeight),c=Math.max(c,h.sub2);const e=4*h.defaultRuleThickness;if(m-s.depth-(l.height-c){var e=new S.MathNode("mtd",[]);return e.setAttribute("width","50%"),e}),er=(tt({type:"tag",mathmlBuilder(e,t){e=new S.MathNode("mtable",[new S.MathNode("mtr",[Q0(),new S.MathNode("mtd",[wt(e.body,t)]),Q0(),new S.MathNode("mtd",[wt(e.tag,t)])])]);return e.setAttribute("width","100%"),e}}),{"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"}),tr={"\\textbf":"textbf","\\textmd":"textmd"},rr={"\\textit":"textit","\\textup":"textup"},nr=(e,t)=>{e=e.font;return e?er[e]?t.withTextFontFamily(er[e]):tr[e]?t.withTextFontWeight(tr[e]):t.withTextFontShape(rr[e]):t},ir=(w({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textbf","\\textmd","\\textit","\\textup"],props:{numArgs:1,argTypes:["text"],allowedInArgument:!0,allowedInText:!0},handler(e,t){var{parser:e,funcName:r}=e,t=t[0];return{type:"text",mode:e.mode,body:v(t),font:r}},htmlBuilder(e,t){t=nr(e,t),e=q(e.body,t,!0);return N.makeSpan(["mord","text"],e,t)},mathmlBuilder(e,t){t=nr(e,t);return wt(e.body,t)}}),w({type:"underline",names:["\\underline"],props:{numArgs:1,allowedInText:!0},handler(e,t){e=e.parser;return{type:"underline",mode:e.mode,body:t[0]}},htmlBuilder(e,t){var e=I(e.body,t),r=N.makeLineSpan("underline-line",t),n=t.fontMetrics().defaultRuleThickness,r=N.makeVList({positionType:"top",positionData:e.height,children:[{type:"kern",size:n},{type:"elem",elem:r},{type:"kern",size:3*n},{type:"elem",elem:e}]},t);return N.makeSpan(["mord","underline"],[r],t)},mathmlBuilder(e,t){var r=new S.MathNode("mo",[new S.TextNode("‾")]),e=(r.setAttribute("stretchy","true"),new S.MathNode("munder",[R(e.body,t),r]));return e.setAttribute("accentunder","true"),e}}),w({type:"vcenter",names:["\\vcenter"],props:{numArgs:1,argTypes:["original"],allowedInText:!1},handler(e,t){e=e.parser;return{type:"vcenter",mode:e.mode,body:t[0]}},htmlBuilder(e,t){var e=I(e.body,t),r=t.fontMetrics().axisHeight,r=.5*(e.height-r-(e.depth+r));return N.makeVList({positionType:"shift",positionData:r,children:[{type:"elem",elem:e}]},t)},mathmlBuilder(e,t){return new S.MathNode("mpadded",[R(e.body,t)],["vcenter"])}}),w({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler(e,t,r){throw new z("\\verb ended by end of line instead of matching delimiter")},htmlBuilder(r,e){var n=ir(r),i=[],a=e.havingStyle(e.style.text());for(let t=0;te.body.replace(/ /g,e.star?"␣":" "));var ar=Je;const or="[̀-ͯ]",sr=new RegExp(or+"+$");class lr{constructor(e,t){this.input=void 0,this.settings=void 0,this.tokenRegex=void 0,this.catcodes=void 0,this.input=e,this.settings=t,this.tokenRegex=new RegExp("([ \r\n\t]+)|\\\\(\n|[ \r\t]+\n?)[ \r\t]*|([!-\\[\\]-‧‪-퟿豈-￿][̀-ͯ]*|[\ud800-\udbff][\udc00-\udfff][̀-ͯ]*|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5|(\\\\[a-zA-Z@]+)[ \r\n\t]*|\\\\[^\ud800-\udfff])","g"),this.catcodes={"%":14,"~":13}}setCatcode(e,t){this.catcodes[e]=t}lex(){const e=this.input,t=this.tokenRegex.lastIndex;if(t===e.length)return new y0("EOF",new b0(this,t,t));var r=this.tokenRegex.exec(e);if(null===r||r.index!==t)throw new z("Unexpected character: '"+e[t]+"'",new y0(e[t],new b0(this,t,t+1)));r=r[6]||r[3]||(r[2]?"\\ ":" ");if(14!==this.catcodes[r])return new y0(r,new b0(this,t,this.tokenRegex.lastIndex));{const t=e.indexOf("\n",this.tokenRegex.lastIndex);return-1===t?(this.tokenRegex.lastIndex=e.length,this.settings.reportNonstrict("commentAtEnd","% comment has no terminating newline; LaTeX would fail because of commenting the end of math mode (e.g. $)")):this.tokenRegex.lastIndex=t+1,this.lex()}}}class hr{constructor(e,t){void 0===e&&(e={}),void 0===t&&(t={}),this.current=void 0,this.builtins=void 0,this.undefStack=void 0,this.current=t,this.builtins=e,this.undefStack=[]}beginGroup(){this.undefStack.push({})}endGroup(){if(0===this.undefStack.length)throw new z("Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug");var e=this.undefStack.pop();for(const t in e)e.hasOwnProperty(t)&&(null==e[t]?delete this.current[t]:this.current[t]=e[t])}endGroups(){for(;0=t)throw new z("Invalid base-"+t+" digit "+r.text);for(var i;null!=(i=cr[e.future().text])&&i{let n=r.consumeArg().tokens;if(1!==n.length)throw new z("\\newcommand's first argument must be a macro name");var i=n[0].text,a=r.isDefined(i);if(a&&!e)throw new z("\\newcommand{"+i+"} attempting to redefine "+i+"; use \\renewcommand");if(!a&&!t)throw new z("\\renewcommand{"+i+"} when command "+i+" does not yet exist; use \\newcommand");let o=0;if(1===(n=r.consumeArg().tokens).length&&"["===n[0].text){let e="",t=r.expandNextToken();for(;"]"!==t.text&&"EOF"!==t.text;)e+=t.text,t=r.expandNextToken();if(!e.match(/^\s*[0-9]+\s*$/))throw new z("Invalid number of arguments: "+e);o=parseInt(e),n=r.consumeArg().tokens}return r.macros.set(i,{tokens:n,numArgs:o}),""}),ur=(H("\\newcommand",e=>pr(e,!1,!0)),H("\\renewcommand",e=>pr(e,!0,!1)),H("\\providecommand",e=>pr(e,!0,!0)),H("\\message",e=>{e=e.consumeArgs(1)[0];return console.log(e.reverse().map(e=>e.text).join("")),""}),H("\\errmessage",e=>{e=e.consumeArgs(1)[0];return console.error(e.reverse().map(e=>e.text).join("")),""}),H("\\show",e=>{var t=e.popToken(),r=t.text;return console.log(t,e.macros.get(r),ar[r],c.math[r],c.text[r]),""}),H("\\bgroup","{"),H("\\egroup","}"),H("~","\\nobreakspace"),H("\\lq","`"),H("\\rq","'"),H("\\aa","\\r a"),H("\\AA","\\r A"),H("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`©}"),H("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}"),H("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`®}"),H("ℬ","\\mathscr{B}"),H("ℰ","\\mathscr{E}"),H("ℱ","\\mathscr{F}"),H("ℋ","\\mathscr{H}"),H("ℐ","\\mathscr{I}"),H("ℒ","\\mathscr{L}"),H("ℳ","\\mathscr{M}"),H("ℛ","\\mathscr{R}"),H("ℭ","\\mathfrak{C}"),H("ℌ","\\mathfrak{H}"),H("ℨ","\\mathfrak{Z}"),H("\\Bbbk","\\Bbb{k}"),H("·","\\cdotp"),H("\\llap","\\mathllap{\\textrm{#1}}"),H("\\rlap","\\mathrlap{\\textrm{#1}}"),H("\\clap","\\mathclap{\\textrm{#1}}"),H("\\mathstrut","\\vphantom{(}"),H("\\underbar","\\underline{\\text{#1}}"),H("\\not",'\\html@mathml{\\mathrel{\\mathrlap\\@not}}{\\char"338}'),H("\\neq","\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`≠}}"),H("\\ne","\\neq"),H("≠","\\neq"),H("\\notin","\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`∉}}"),H("∉","\\notin"),H("≘","\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`≘}}"),H("≙","\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`≘}}"),H("≚","\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`≚}}"),H("≛","\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`≛}}"),H("≝","\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`≝}}"),H("≞","\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`≞}}"),H("≟","\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`≟}}"),H("⟂","\\perp"),H("‼","\\mathclose{!\\mkern-0.8mu!}"),H("∌","\\notni"),H("⌜","\\ulcorner"),H("⌝","\\urcorner"),H("⌞","\\llcorner"),H("⌟","\\lrcorner"),H("©","\\copyright"),H("®","\\textregistered"),H("️","\\textregistered"),H("\\ulcorner",'\\html@mathml{\\@ulcorner}{\\mathop{\\char"231c}}'),H("\\urcorner",'\\html@mathml{\\@urcorner}{\\mathop{\\char"231d}}'),H("\\llcorner",'\\html@mathml{\\@llcorner}{\\mathop{\\char"231e}}'),H("\\lrcorner",'\\html@mathml{\\@lrcorner}{\\mathop{\\char"231f}}'),H("\\vdots","\\mathord{\\varvdots\\rule{0pt}{15pt}}"),H("⋮","\\vdots"),H("\\varGamma","\\mathit{\\Gamma}"),H("\\varDelta","\\mathit{\\Delta}"),H("\\varTheta","\\mathit{\\Theta}"),H("\\varLambda","\\mathit{\\Lambda}"),H("\\varXi","\\mathit{\\Xi}"),H("\\varPi","\\mathit{\\Pi}"),H("\\varSigma","\\mathit{\\Sigma}"),H("\\varUpsilon","\\mathit{\\Upsilon}"),H("\\varPhi","\\mathit{\\Phi}"),H("\\varPsi","\\mathit{\\Psi}"),H("\\varOmega","\\mathit{\\Omega}"),H("\\substack","\\begin{subarray}{c}#1\\end{subarray}"),H("\\colon","\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu\\relax"),H("\\boxed","\\fbox{$\\displaystyle{#1}$}"),H("\\iff","\\DOTSB\\;\\Longleftrightarrow\\;"),H("\\implies","\\DOTSB\\;\\Longrightarrow\\;"),H("\\impliedby","\\DOTSB\\;\\Longleftarrow\\;"),{",":"\\dotsc","\\not":"\\dotsb","+":"\\dotsb","=":"\\dotsb","<":"\\dotsb",">":"\\dotsb","-":"\\dotsb","*":"\\dotsb",":":"\\dotsb","\\DOTSB":"\\dotsb","\\coprod":"\\dotsb","\\bigvee":"\\dotsb","\\bigwedge":"\\dotsb","\\biguplus":"\\dotsb","\\bigcap":"\\dotsb","\\bigcup":"\\dotsb","\\prod":"\\dotsb","\\sum":"\\dotsb","\\bigotimes":"\\dotsb","\\bigoplus":"\\dotsb","\\bigodot":"\\dotsb","\\bigsqcup":"\\dotsb","\\And":"\\dotsb","\\longrightarrow":"\\dotsb","\\Longrightarrow":"\\dotsb","\\longleftarrow":"\\dotsb","\\Longleftarrow":"\\dotsb","\\longleftrightarrow":"\\dotsb","\\Longleftrightarrow":"\\dotsb","\\mapsto":"\\dotsb","\\longmapsto":"\\dotsb","\\hookrightarrow":"\\dotsb","\\doteq":"\\dotsb","\\mathbin":"\\dotsb","\\mathrel":"\\dotsb","\\relbar":"\\dotsb","\\Relbar":"\\dotsb","\\xrightarrow":"\\dotsb","\\xleftarrow":"\\dotsb","\\DOTSI":"\\dotsi","\\int":"\\dotsi","\\oint":"\\dotsi","\\iint":"\\dotsi","\\iiint":"\\dotsi","\\iiiint":"\\dotsi","\\idotsint":"\\dotsi","\\DOTSX":"\\dotsx"}),dr=(H("\\dots",function(e){let t="\\dotso";e=e.expandAfterFuture().text;return e in ur?t=ur[e]:("\\not"===e.slice(0,4)||e in c.math&&A.contains(["bin","rel"],c.math[e].group))&&(t="\\dotsb"),t}),{")":!0,"]":!0,"\\rbrack":!0,"\\}":!0,"\\rbrace":!0,"\\rangle":!0,"\\rceil":!0,"\\rfloor":!0,"\\rgroup":!0,"\\rmoustache":!0,"\\right":!0,"\\bigr":!0,"\\biggr":!0,"\\Bigr":!0,"\\Biggr":!0,$:!0,";":!0,".":!0,",":!0});H("\\dotso",function(e){return e.future().text in dr?"\\ldots\\,":"\\ldots"}),H("\\dotsc",function(e){e=e.future().text;return e in dr&&","!==e?"\\ldots\\,":"\\ldots"}),H("\\cdots",function(e){return e.future().text in dr?"\\@cdots\\,":"\\@cdots"}),H("\\dotsb","\\cdots"),H("\\dotsm","\\cdots"),H("\\dotsi","\\!\\cdots"),H("\\dotsx","\\ldots\\,"),H("\\DOTSI","\\relax"),H("\\DOTSB","\\relax"),H("\\DOTSX","\\relax"),H("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax"),H("\\,","\\tmspace+{3mu}{.1667em}"),H("\\thinspace","\\,"),H("\\>","\\mskip{4mu}"),H("\\:","\\tmspace+{4mu}{.2222em}"),H("\\medspace","\\:"),H("\\;","\\tmspace+{5mu}{.2777em}"),H("\\thickspace","\\;"),H("\\!","\\tmspace-{3mu}{.1667em}"),H("\\negthinspace","\\!"),H("\\negmedspace","\\tmspace-{4mu}{.2222em}"),H("\\negthickspace","\\tmspace-{5mu}{.277em}"),H("\\enspace","\\kern.5em "),H("\\enskip","\\hskip.5em\\relax"),H("\\quad","\\hskip1em\\relax"),H("\\qquad","\\hskip2em\\relax"),H("\\tag","\\@ifstar\\tag@literal\\tag@paren"),H("\\tag@paren","\\tag@literal{({#1})}"),H("\\tag@literal",e=>{if(e.macros.get("\\df@tag"))throw new z("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"}),H("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}"),H("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)"),H("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}"),H("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1"),H("\\newline","\\\\\\relax"),H("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");l=C(ie["Main-Regular"]["T".charCodeAt(0)][1]-.7*ie["Main-Regular"]["A".charCodeAt(0)][1]),H("\\LaTeX","\\textrm{\\html@mathml{L\\kern-.36em\\raisebox{"+l+"}{\\scriptstyle A}\\kern-.15em\\TeX}{LaTeX}}"),H("\\KaTeX","\\textrm{\\html@mathml{K\\kern-.17em\\raisebox{"+l+"}{\\scriptstyle A}\\kern-.15em\\TeX}{KaTeX}}"),H("\\hspace","\\@ifstar\\@hspacer\\@hspace"),H("\\@hspace","\\hskip #1\\relax"),H("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax"),H("\\ordinarycolon",":"),H("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}"),H("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}'),H("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}'),H("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}'),H("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}'),H("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}'),H("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}'),H("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}'),H("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}'),H("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}'),H("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}'),H("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}'),H("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}'),H("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}'),H("∷","\\dblcolon"),H("∹","\\eqcolon"),H("≔","\\coloneqq"),H("≕","\\eqqcolon"),H("⩴","\\Coloneqq"),H("\\ratio","\\vcentcolon"),H("\\coloncolon","\\dblcolon"),H("\\colonequals","\\coloneqq"),H("\\coloncolonequals","\\Coloneqq"),H("\\equalscolon","\\eqqcolon"),H("\\equalscoloncolon","\\Eqqcolon"),H("\\colonminus","\\coloneq"),H("\\coloncolonminus","\\Coloneq"),H("\\minuscolon","\\eqcolon"),H("\\minuscoloncolon","\\Eqcolon"),H("\\coloncolonapprox","\\Colonapprox"),H("\\coloncolonsim","\\Colonsim"),H("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),H("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}"),H("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),H("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}"),H("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`∌}}"),H("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}"),H("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}"),H("\\injlim","\\DOTSB\\operatorname*{inj\\,lim}"),H("\\projlim","\\DOTSB\\operatorname*{proj\\,lim}"),H("\\varlimsup","\\DOTSB\\operatorname*{\\overline{lim}}"),H("\\varliminf","\\DOTSB\\operatorname*{\\underline{lim}}"),H("\\varinjlim","\\DOTSB\\operatorname*{\\underrightarrow{lim}}"),H("\\varprojlim","\\DOTSB\\operatorname*{\\underleftarrow{lim}}"),H("\\gvertneqq","\\html@mathml{\\@gvertneqq}{≩}"),H("\\lvertneqq","\\html@mathml{\\@lvertneqq}{≨}"),H("\\ngeqq","\\html@mathml{\\@ngeqq}{≱}"),H("\\ngeqslant","\\html@mathml{\\@ngeqslant}{≱}"),H("\\nleqq","\\html@mathml{\\@nleqq}{≰}"),H("\\nleqslant","\\html@mathml{\\@nleqslant}{≰}"),H("\\nshortmid","\\html@mathml{\\@nshortmid}{∤}"),H("\\nshortparallel","\\html@mathml{\\@nshortparallel}{∦}"),H("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{⊈}"),H("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{⊉}"),H("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{⊊}"),H("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{⫋}"),H("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{⊋}"),H("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{⫌}"),H("\\imath","\\html@mathml{\\@imath}{ı}"),H("\\jmath","\\html@mathml{\\@jmath}{ȷ}"),H("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`⟦}}"),H("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`⟧}}"),H("⟦","\\llbracket"),H("⟧","\\rrbracket"),H("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`⦃}}"),H("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`⦄}}"),H("⦃","\\lBrace"),H("⦄","\\rBrace"),H("\\minuso","\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`⦵}}"),H("⦵","\\minuso"),H("\\darr","\\downarrow"),H("\\dArr","\\Downarrow"),H("\\Darr","\\Downarrow"),H("\\lang","\\langle"),H("\\rang","\\rangle"),H("\\uarr","\\uparrow"),H("\\uArr","\\Uparrow"),H("\\Uarr","\\Uparrow"),H("\\N","\\mathbb{N}"),H("\\R","\\mathbb{R}"),H("\\Z","\\mathbb{Z}"),H("\\alef","\\aleph"),H("\\alefsym","\\aleph"),H("\\Alpha","\\mathrm{A}"),H("\\Beta","\\mathrm{B}"),H("\\bull","\\bullet"),H("\\Chi","\\mathrm{X}"),H("\\clubs","\\clubsuit"),H("\\cnums","\\mathbb{C}"),H("\\Complex","\\mathbb{C}"),H("\\Dagger","\\ddagger"),H("\\diamonds","\\diamondsuit"),H("\\empty","\\emptyset"),H("\\Epsilon","\\mathrm{E}"),H("\\Eta","\\mathrm{H}"),H("\\exist","\\exists"),H("\\harr","\\leftrightarrow"),H("\\hArr","\\Leftrightarrow"),H("\\Harr","\\Leftrightarrow"),H("\\hearts","\\heartsuit"),H("\\image","\\Im"),H("\\infin","\\infty"),H("\\Iota","\\mathrm{I}"),H("\\isin","\\in"),H("\\Kappa","\\mathrm{K}"),H("\\larr","\\leftarrow"),H("\\lArr","\\Leftarrow"),H("\\Larr","\\Leftarrow"),H("\\lrarr","\\leftrightarrow"),H("\\lrArr","\\Leftrightarrow"),H("\\Lrarr","\\Leftrightarrow"),H("\\Mu","\\mathrm{M}"),H("\\natnums","\\mathbb{N}"),H("\\Nu","\\mathrm{N}"),H("\\Omicron","\\mathrm{O}"),H("\\plusmn","\\pm"),H("\\rarr","\\rightarrow"),H("\\rArr","\\Rightarrow"),H("\\Rarr","\\Rightarrow"),H("\\real","\\Re"),H("\\reals","\\mathbb{R}"),H("\\Reals","\\mathbb{R}"),H("\\Rho","\\mathrm{P}"),H("\\sdot","\\cdot"),H("\\sect","\\S"),H("\\spades","\\spadesuit"),H("\\sub","\\subset"),H("\\sube","\\subseteq"),H("\\supe","\\supseteq"),H("\\Tau","\\mathrm{T}"),H("\\thetasym","\\vartheta"),H("\\weierp","\\wp"),H("\\Zeta","\\mathrm{Z}"),H("\\argmin","\\DOTSB\\operatorname*{arg\\,min}"),H("\\argmax","\\DOTSB\\operatorname*{arg\\,max}"),H("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits"),H("\\bra","\\mathinner{\\langle{#1}|}"),H("\\ket","\\mathinner{|{#1}\\rangle}"),H("\\braket","\\mathinner{\\langle{#1}\\rangle}"),H("\\Bra","\\left\\langle#1\\right|"),H("\\Ket","\\left|#1\\right\\rangle"),u=l=>e=>{const t=e.consumeArg().tokens,n=e.consumeArg().tokens,i=e.consumeArg().tokens,r=e.consumeArg().tokens,a=e.macros.get("|"),o=e.macros.get("\\|");e.macros.beginGroup();var s=r=>e=>{l&&(e.macros.set("|",a),i.length)&&e.macros.set("\\|",o);let t=r;return!r&&i.length&&"|"===e.future().text&&(e.popToken(),t=!0),{tokens:t?i:n,numArgs:0}},s=(e.macros.set("|",s(!1)),i.length&&e.macros.set("\\|",s(!0)),e.consumeArg().tokens),s=e.expandTokens([...r,...s,...t]);return e.macros.endGroup(),{tokens:s.reverse(),numArgs:0}};H("\\bra@ket",u(!1)),H("\\bra@set",u(!0)),H("\\Braket","\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}"),H("\\Set","\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}"),H("\\set","\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}"),H("\\angln","{\\angl n}"),H("\\blue","\\textcolor{##6495ed}{#1}"),H("\\orange","\\textcolor{##ffa500}{#1}"),H("\\pink","\\textcolor{##ff00af}{#1}"),H("\\red","\\textcolor{##df0030}{#1}"),H("\\green","\\textcolor{##28ae7b}{#1}"),H("\\gray","\\textcolor{gray}{#1}"),H("\\purple","\\textcolor{##9d38bd}{#1}"),H("\\blueA","\\textcolor{##ccfaff}{#1}"),H("\\blueB","\\textcolor{##80f6ff}{#1}"),H("\\blueC","\\textcolor{##63d9ea}{#1}"),H("\\blueD","\\textcolor{##11accd}{#1}"),H("\\blueE","\\textcolor{##0c7f99}{#1}"),H("\\tealA","\\textcolor{##94fff5}{#1}"),H("\\tealB","\\textcolor{##26edd5}{#1}"),H("\\tealC","\\textcolor{##01d1c1}{#1}"),H("\\tealD","\\textcolor{##01a995}{#1}"),H("\\tealE","\\textcolor{##208170}{#1}"),H("\\greenA","\\textcolor{##b6ffb0}{#1}"),H("\\greenB","\\textcolor{##8af281}{#1}"),H("\\greenC","\\textcolor{##74cf70}{#1}"),H("\\greenD","\\textcolor{##1fab54}{#1}"),H("\\greenE","\\textcolor{##0d923f}{#1}"),H("\\goldA","\\textcolor{##ffd0a9}{#1}"),H("\\goldB","\\textcolor{##ffbb71}{#1}"),H("\\goldC","\\textcolor{##ff9c39}{#1}"),H("\\goldD","\\textcolor{##e07d10}{#1}"),H("\\goldE","\\textcolor{##a75a05}{#1}"),H("\\redA","\\textcolor{##fca9a9}{#1}"),H("\\redB","\\textcolor{##ff8482}{#1}"),H("\\redC","\\textcolor{##f9685d}{#1}"),H("\\redD","\\textcolor{##e84d39}{#1}"),H("\\redE","\\textcolor{##bc2612}{#1}"),H("\\maroonA","\\textcolor{##ffbde0}{#1}"),H("\\maroonB","\\textcolor{##ff92c6}{#1}"),H("\\maroonC","\\textcolor{##ed5fa6}{#1}"),H("\\maroonD","\\textcolor{##ca337c}{#1}"),H("\\maroonE","\\textcolor{##9e034e}{#1}"),H("\\purpleA","\\textcolor{##ddd7ff}{#1}"),H("\\purpleB","\\textcolor{##c6b9fc}{#1}"),H("\\purpleC","\\textcolor{##aa87ff}{#1}"),H("\\purpleD","\\textcolor{##7854ab}{#1}"),H("\\purpleE","\\textcolor{##543b78}{#1}"),H("\\mintA","\\textcolor{##f5f9e8}{#1}"),H("\\mintB","\\textcolor{##edf2df}{#1}"),H("\\mintC","\\textcolor{##e0e5cc}{#1}"),H("\\grayA","\\textcolor{##f6f7f7}{#1}"),H("\\grayB","\\textcolor{##f0f1f2}{#1}"),H("\\grayC","\\textcolor{##e3e5e6}{#1}"),H("\\grayD","\\textcolor{##d6d8da}{#1}"),H("\\grayE","\\textcolor{##babec2}{#1}"),H("\\grayF","\\textcolor{##888d93}{#1}"),H("\\grayG","\\textcolor{##626569}{#1}"),H("\\grayH","\\textcolor{##3b3e40}{#1}"),H("\\grayI","\\textcolor{##21242c}{#1}"),H("\\kaBlue","\\textcolor{##314453}{#1}"),H("\\kaGreen","\\textcolor{##71B307}{#1}");const gr={"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0};class fr{constructor(e,t,r){this.settings=void 0,this.expansionCount=void 0,this.lexer=void 0,this.macros=void 0,this.stack=void 0,this.mode=void 0,this.settings=t,this.expansionCount=0,this.feed(e),this.macros=new hr(mr,t.macros),this.mode=r,this.stack=[]}feed(e){this.lexer=new lr(e,this.settings)}switchMode(e){this.mode=e}beginGroup(){this.macros.beginGroup()}endGroup(){this.macros.endGroup()}endGroups(){this.macros.endGroups()}future(){return 0===this.stack.length&&this.pushToken(this.lexer.lex()),this.stack[this.stack.length-1]}popToken(){return this.future(),this.stack.pop()}pushToken(e){this.stack.push(e)}pushTokens(e){this.stack.push(...e)}scanArgument(e){let t,r,n;if(e){if(this.consumeSpaces(),"["!==this.future().text)return null;t=this.popToken(),{tokens:n,end:r}=this.consumeArg(["]"])}else({tokens:n,start:t,end:r}=this.consumeArg());return this.pushToken(new y0("EOF",r.loc)),this.pushTokens(n),t.range(r,"")}consumeSpaces(){for(;" "===this.future().text;)this.stack.pop()}consumeArg(e){var t=[],r=e&&0this.settings.maxExpand)throw new z("Too many expansions: infinite loop or need to increase maxExpand setting")}expandOnce(e){var t=this.popToken(),r=t.text,n=t.noexpand?null:this._getExpansion(r);if(null==n||e&&n.unexpandable){if(e&&null==n&&"\\"===r[0]&&!this.isDefined(r))throw new z("Undefined control sequence: "+r);return this.pushToken(t),!1}this.countExpansion(1);let i=n.tokens;var a=this.consumeArgs(n.numArgs,n.delimiters);if(n.numArgs)for(let e=(i=i.slice()).length-1;0<=e;--e){var o=i[e];if("#"===o.text){if(0===e)throw new z("Incomplete placeholder at end of macro body",o);if("#"===(o=i[--e]).text)i.splice(e+1,1);else{if(!/^[1-9]$/.test(o.text))throw new z("Not a valid argument number",o);i.splice(e,2,...a[+o.text-1])}}}return this.pushTokens(i),i.length}expandAfterFuture(){return this.expandOnce(),this.future()}expandNextToken(){for(;;){var e;if(!1===this.expandOnce())return(e=this.stack.pop()).treatAsRelax&&(e.text="\\relax"),e}throw new Error}expandMacro(e){return this.macros.has(e)?this.expandTokens([new y0(e)]):void 0}expandTokens(e){var t=[],r=this.stack.length;for(this.pushTokens(e);this.stack.length>r;)if(!1===this.expandOnce(!0)){const e=this.stack.pop();e.treatAsRelax&&(e.noexpand=!1,e.treatAsRelax=!1),t.push(e)}return this.countExpansion(t.length),t}expandMacroAsText(e){e=this.expandMacro(e);return e&&e.map(e=>e.text).join("")}_getExpansion(r){const n=this.macros.get(r);if(null==n)return n;if(1===r.length){const n=this.lexer.catcodes[r];if(null!=n&&13!==n)return}r="function"==typeof n?n(this):n;if("string"!=typeof r)return r;{let e=0;if(-1!==r.indexOf("#")){const n=r.replace(/##/g,"");for(;-1!==n.indexOf("#"+(e+1));)++e}const n=new lr(r,this.settings),i=[];let t=n.lex();for(;"EOF"!==t.text;)i.push(t),t=n.lex();return i.reverse(),{tokens:i,numArgs:e}}}isDefined(e){return this.macros.has(e)||ar.hasOwnProperty(e)||c.math.hasOwnProperty(e)||c.text.hasOwnProperty(e)||gr.hasOwnProperty(e)}isExpandable(e){var t=this.macros.get(e);return null!=t?"string"==typeof t||"function"==typeof t||!t.unexpandable:ar.hasOwnProperty(e)&&!ar[e].primitive}}const br=/^[\u208a\u208b\u208c\u208d\u208e\u2080\u2081\u2082\u2083\u2084\u2085\u2086\u2087\u2088\u2089\u2090\u2091\u2095\u1d62\u2c7c\u2096\u2097\u2098\u2099\u2092\u209a\u1d63\u209b\u209c\u1d64\u1d65\u2093\u1d66\u1d67\u1d68\u1d69\u1d6a]/,yr=Object.freeze({"₊":"+","₋":"-","₌":"=","₍":"(","₎":")","₀":"0","₁":"1","₂":"2","₃":"3","₄":"4","₅":"5","₆":"6","₇":"7","₈":"8","₉":"9","ₐ":"a","ₑ":"e","ₕ":"h","ᵢ":"i","ⱼ":"j","ₖ":"k","ₗ":"l","ₘ":"m","ₙ":"n","ₒ":"o","ₚ":"p","ᵣ":"r","ₛ":"s","ₜ":"t","ᵤ":"u","ᵥ":"v","ₓ":"x","ᵦ":"β","ᵧ":"γ","ᵨ":"ρ","ᵩ":"ϕ","ᵪ":"χ","⁺":"+","⁻":"-","⁼":"=","⁽":"(","⁾":")","⁰":"0","¹":"1","²":"2","³":"3","⁴":"4","⁵":"5","⁶":"6","⁷":"7","⁸":"8","⁹":"9","ᴬ":"A","ᴮ":"B","ᴰ":"D","ᴱ":"E","ᴳ":"G","ᴴ":"H","ᴵ":"I","ᴶ":"J","ᴷ":"K","ᴸ":"L","ᴹ":"M","ᴺ":"N","ᴼ":"O","ᴾ":"P","ᴿ":"R","ᵀ":"T","ᵁ":"U","ⱽ":"V","ᵂ":"W","ᵃ":"a","ᵇ":"b","ᶜ":"c","ᵈ":"d","ᵉ":"e","ᶠ":"f","ᵍ":"g","ʰ":"h","ⁱ":"i","ʲ":"j","ᵏ":"k","ˡ":"l","ᵐ":"m","ⁿ":"n","ᵒ":"o","ᵖ":"p","ʳ":"r","ˢ":"s","ᵗ":"t","ᵘ":"u","ᵛ":"v","ʷ":"w","ˣ":"x","ʸ":"y","ᶻ":"z","ᵝ":"β","ᵞ":"γ","ᵟ":"δ","ᵠ":"ϕ","ᵡ":"χ","ᶿ":"θ"}),xr={"́":{text:"\\'",math:"\\acute"},"̀":{text:"\\`",math:"\\grave"},"̈":{text:'\\"',math:"\\ddot"},"̃":{text:"\\~",math:"\\tilde"},"̄":{text:"\\=",math:"\\bar"},"̆":{text:"\\u",math:"\\breve"},"̌":{text:"\\v",math:"\\check"},"̂":{text:"\\^",math:"\\hat"},"̇":{text:"\\.",math:"\\dot"},"̊":{text:"\\r",math:"\\mathring"},"̋":{text:"\\H"},"̧":{text:"\\c"}},wr={"á":"á","à":"à","ä":"ä","ǟ":"ǟ","ã":"ã","ā":"ā","ă":"ă","ắ":"ắ","ằ":"ằ","ẵ":"ẵ","ǎ":"ǎ","â":"â","ấ":"ấ","ầ":"ầ","ẫ":"ẫ","ȧ":"ȧ","ǡ":"ǡ","å":"å","ǻ":"ǻ","ḃ":"ḃ","ć":"ć","ḉ":"ḉ","č":"č","ĉ":"ĉ","ċ":"ċ","ç":"ç","ď":"ď","ḋ":"ḋ","ḑ":"ḑ","é":"é","è":"è","ë":"ë","ẽ":"ẽ","ē":"ē","ḗ":"ḗ","ḕ":"ḕ","ĕ":"ĕ","ḝ":"ḝ","ě":"ě","ê":"ê","ế":"ế","ề":"ề","ễ":"ễ","ė":"ė","ȩ":"ȩ","ḟ":"ḟ","ǵ":"ǵ","ḡ":"ḡ","ğ":"ğ","ǧ":"ǧ","ĝ":"ĝ","ġ":"ġ","ģ":"ģ","ḧ":"ḧ","ȟ":"ȟ","ĥ":"ĥ","ḣ":"ḣ","ḩ":"ḩ","í":"í","ì":"ì","ï":"ï","ḯ":"ḯ","ĩ":"ĩ","ī":"ī","ĭ":"ĭ","ǐ":"ǐ","î":"î","ǰ":"ǰ","ĵ":"ĵ","ḱ":"ḱ","ǩ":"ǩ","ķ":"ķ","ĺ":"ĺ","ľ":"ľ","ļ":"ļ","ḿ":"ḿ","ṁ":"ṁ","ń":"ń","ǹ":"ǹ","ñ":"ñ","ň":"ň","ṅ":"ṅ","ņ":"ņ","ó":"ó","ò":"ò","ö":"ö","ȫ":"ȫ","õ":"õ","ṍ":"ṍ","ṏ":"ṏ","ȭ":"ȭ","ō":"ō","ṓ":"ṓ","ṑ":"ṑ","ŏ":"ŏ","ǒ":"ǒ","ô":"ô","ố":"ố","ồ":"ồ","ỗ":"ỗ","ȯ":"ȯ","ȱ":"ȱ","ő":"ő","ṕ":"ṕ","ṗ":"ṗ","ŕ":"ŕ","ř":"ř","ṙ":"ṙ","ŗ":"ŗ","ś":"ś","ṥ":"ṥ","š":"š","ṧ":"ṧ","ŝ":"ŝ","ṡ":"ṡ","ş":"ş","ẗ":"ẗ","ť":"ť","ṫ":"ṫ","ţ":"ţ","ú":"ú","ù":"ù","ü":"ü","ǘ":"ǘ","ǜ":"ǜ","ǖ":"ǖ","ǚ":"ǚ","ũ":"ũ","ṹ":"ṹ","ū":"ū","ṻ":"ṻ","ŭ":"ŭ","ǔ":"ǔ","û":"û","ů":"ů","ű":"ű","ṽ":"ṽ","ẃ":"ẃ","ẁ":"ẁ","ẅ":"ẅ","ŵ":"ŵ","ẇ":"ẇ","ẘ":"ẘ","ẍ":"ẍ","ẋ":"ẋ","ý":"ý","ỳ":"ỳ","ÿ":"ÿ","ỹ":"ỹ","ȳ":"ȳ","ŷ":"ŷ","ẏ":"ẏ","ẙ":"ẙ","ź":"ź","ž":"ž","ẑ":"ẑ","ż":"ż","Á":"Á","À":"À","Ä":"Ä","Ǟ":"Ǟ","Ã":"Ã","Ā":"Ā","Ă":"Ă","Ắ":"Ắ","Ằ":"Ằ","Ẵ":"Ẵ","Ǎ":"Ǎ","Â":"Â","Ấ":"Ấ","Ầ":"Ầ","Ẫ":"Ẫ","Ȧ":"Ȧ","Ǡ":"Ǡ","Å":"Å","Ǻ":"Ǻ","Ḃ":"Ḃ","Ć":"Ć","Ḉ":"Ḉ","Č":"Č","Ĉ":"Ĉ","Ċ":"Ċ","Ç":"Ç","Ď":"Ď","Ḋ":"Ḋ","Ḑ":"Ḑ","É":"É","È":"È","Ë":"Ë","Ẽ":"Ẽ","Ē":"Ē","Ḗ":"Ḗ","Ḕ":"Ḕ","Ĕ":"Ĕ","Ḝ":"Ḝ","Ě":"Ě","Ê":"Ê","Ế":"Ế","Ề":"Ề","Ễ":"Ễ","Ė":"Ė","Ȩ":"Ȩ","Ḟ":"Ḟ","Ǵ":"Ǵ","Ḡ":"Ḡ","Ğ":"Ğ","Ǧ":"Ǧ","Ĝ":"Ĝ","Ġ":"Ġ","Ģ":"Ģ","Ḧ":"Ḧ","Ȟ":"Ȟ","Ĥ":"Ĥ","Ḣ":"Ḣ","Ḩ":"Ḩ","Í":"Í","Ì":"Ì","Ï":"Ï","Ḯ":"Ḯ","Ĩ":"Ĩ","Ī":"Ī","Ĭ":"Ĭ","Ǐ":"Ǐ","Î":"Î","İ":"İ","Ĵ":"Ĵ","Ḱ":"Ḱ","Ǩ":"Ǩ","Ķ":"Ķ","Ĺ":"Ĺ","Ľ":"Ľ","Ļ":"Ļ","Ḿ":"Ḿ","Ṁ":"Ṁ","Ń":"Ń","Ǹ":"Ǹ","Ñ":"Ñ","Ň":"Ň","Ṅ":"Ṅ","Ņ":"Ņ","Ó":"Ó","Ò":"Ò","Ö":"Ö","Ȫ":"Ȫ","Õ":"Õ","Ṍ":"Ṍ","Ṏ":"Ṏ","Ȭ":"Ȭ","Ō":"Ō","Ṓ":"Ṓ","Ṑ":"Ṑ","Ŏ":"Ŏ","Ǒ":"Ǒ","Ô":"Ô","Ố":"Ố","Ồ":"Ồ","Ỗ":"Ỗ","Ȯ":"Ȯ","Ȱ":"Ȱ","Ő":"Ő","Ṕ":"Ṕ","Ṗ":"Ṗ","Ŕ":"Ŕ","Ř":"Ř","Ṙ":"Ṙ","Ŗ":"Ŗ","Ś":"Ś","Ṥ":"Ṥ","Š":"Š","Ṧ":"Ṧ","Ŝ":"Ŝ","Ṡ":"Ṡ","Ş":"Ş","Ť":"Ť","Ṫ":"Ṫ","Ţ":"Ţ","Ú":"Ú","Ù":"Ù","Ü":"Ü","Ǘ":"Ǘ","Ǜ":"Ǜ","Ǖ":"Ǖ","Ǚ":"Ǚ","Ũ":"Ũ","Ṹ":"Ṹ","Ū":"Ū","Ṻ":"Ṻ","Ŭ":"Ŭ","Ǔ":"Ǔ","Û":"Û","Ů":"Ů","Ű":"Ű","Ṽ":"Ṽ","Ẃ":"Ẃ","Ẁ":"Ẁ","Ẅ":"Ẅ","Ŵ":"Ŵ","Ẇ":"Ẇ","Ẍ":"Ẍ","Ẋ":"Ẋ","Ý":"Ý","Ỳ":"Ỳ","Ÿ":"Ÿ","Ỹ":"Ỹ","Ȳ":"Ȳ","Ŷ":"Ŷ","Ẏ":"Ẏ","Ź":"Ź","Ž":"Ž","Ẑ":"Ẑ","Ż":"Ż","ά":"ά","ὰ":"ὰ","ᾱ":"ᾱ","ᾰ":"ᾰ","έ":"έ","ὲ":"ὲ","ή":"ή","ὴ":"ὴ","ί":"ί","ὶ":"ὶ","ϊ":"ϊ","ΐ":"ΐ","ῒ":"ῒ","ῑ":"ῑ","ῐ":"ῐ","ό":"ό","ὸ":"ὸ","ύ":"ύ","ὺ":"ὺ","ϋ":"ϋ","ΰ":"ΰ","ῢ":"ῢ","ῡ":"ῡ","ῠ":"ῠ","ώ":"ώ","ὼ":"ὼ","Ύ":"Ύ","Ὺ":"Ὺ","Ϋ":"Ϋ","Ῡ":"Ῡ","Ῠ":"Ῠ","Ώ":"Ώ","Ὼ":"Ὼ"};class vr{constructor(e,t){this.mode=void 0,this.gullet=void 0,this.settings=void 0,this.leftrightDepth=void 0,this.nextToken=void 0,this.mode="math",this.gullet=new fr(e,t,this.mode),this.settings=t,this.leftrightDepth=0}expect(e,t){if(void 0===t&&(t=!0),this.fetch().text!==e)throw new z("Expected '"+e+"', got '"+this.fetch().text+"'",this.fetch());t&&this.consume()}consume(){this.nextToken=null}fetch(){return null==this.nextToken&&(this.nextToken=this.gullet.expandNextToken()),this.nextToken}switchMode(e){this.mode=e,this.gullet.switchMode(e)}parse(){this.settings.globalGroup||this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set("\\color","\\textcolor");try{var e=this.parseExpression(!1);return this.expect("EOF"),this.settings.globalGroup||this.gullet.endGroup(),e}finally{this.gullet.endGroups()}}subparse(e){var t=this.nextToken,e=(this.consume(),this.gullet.pushToken(new y0("}")),this.gullet.pushTokens(e),this.parseExpression(!1));return this.expect("}"),this.nextToken=t,e}parseExpression(e,t){for(var r=[];;){"math"===this.mode&&this.consumeSpaces();var n=this.fetch();if(-1!==vr.endOfExpression.indexOf(n.text))break;if(t&&n.text===t)break;if(e&&ar[n.text]&&ar[n.text].infix)break;n=this.parseAtom(t);if(!n)break;"internal"!==n.type&&r.push(n)}return"text"===this.mode&&this.formLigatures(r),this.handleInfixNodes(r)}handleInfixNodes(t){let r,n=-1;for(let e=0;ee.left.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")).join("|")+")");for(;-1!==(r=t.search(i));){0t.startsWith(e.left));if(-1===(r=function(e,t,r){let n=r,i=0;for(var a=e.length;n-1===i.indexOf(" "+e+" "))&&h(o,a)}}};var a=function(e,t){if(!e)throw new Error("No element provided to render");var r={};for(const e in t)t.hasOwnProperty(e)&&(r[e]=t[e]);r.delimiters=r.delimiters||[{left:"$$",right:"$$",display:!0},{left:"\\(",right:"\\)",display:!1},{left:"\\begin{equation}",right:"\\end{equation}",display:!0},{left:"\\begin{align}",right:"\\end{align}",display:!0},{left:"\\begin{alignat}",right:"\\end{alignat}",display:!0},{left:"\\begin{gather}",right:"\\end{gather}",display:!0},{left:"\\begin{CD}",right:"\\end{CD}",display:!0},{left:"\\[",right:"\\]",display:!0}],r.ignoredTags=r.ignoredTags||["script","noscript","style","textarea","pre","code","option"],r.ignoredClasses=r.ignoredClasses||[],r.errorCallback=r.errorCallback||console.error,r.macros=r.macros||{},h(e,r)}}return e.default}()}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("katex")):"function"==typeof define&&define.amd?define(["katex"],t):(e="undefined"!=typeof globalThis?globalThis:e||self).markedKatex=t(e.katex)}(this,function(n){"use strict";const i=/^(\${1,2})(?!\$)((?:\\.|[^\\\n])*?(?:\\.|[^\\\n\$]))\1(?=[\s?!\.,:?!。,:]|$)/,r=/^(\${1,2})\n((?:\\[^]|[^\\])+?)\n\1(?:\n|$)/;function t(t,r){return e=>n.renderToString(e.text,{...t,displayMode:e.displayMode})+(r?"\n":"")}return function(e={}){return{extensions:[{name:"inlineKatex",level:"inline",start(e){let t,r=e;for(;r;){if(-1===(t=r.indexOf("$")))return;if((0===t||" "===r.charAt(t-1))&&r.substring(t).match(i))return t;r=r.substring(t+1).replace(/^\$+/,"")}},tokenizer(e,t){e=e.match(i);if(e)return{type:"inlineKatex",raw:e[0],text:e[2].trim(),displayMode:2===e[1].length}},renderer:t(e,!1)},{name:"blockKatex",level:"block",tokenizer(e,t){e=e.match(r);if(e)return{type:"blockKatex",raw:e[0],text:e[2].trim(),displayMode:2===e[1].length}},renderer:t(e,!0)}]}}}),"undefined"!=typeof window&&(window.markedMermaid=markedMermaid),"undefined"!=typeof module&&module.exports&&(module.exports=markedMermaid); \ No newline at end of file diff --git a/public/script/notebook.min.js b/public/script/notebook.min.js new file mode 100644 index 0000000..fc376ab --- /dev/null +++ b/public/script/notebook.min.js @@ -0,0 +1 @@ +!function(){function e(e){return e}function t(r){return function(e){var t=u("img",["image-output"]);return t.src="data:image/"+r+";base64,"+d(e).replace(/\n/g,""),t}}function r(){var t=this,e=c.display_priority.filter(function(e){return(t.raw.data||t.raw)[e]})[0];return e&&c.display[e]?c.display[e](t.raw[e]||t.raw.data[e]):u("div",["empty-output"])}function n(){var e=u("pre",["pyerr"]),t=this.raw.traceback.join("\n");return e.innerHTML=c.highlighter(c.ansi(o(t)),e),e}var i,a,s,l=this,p=void 0!==l.window,u=(a=(p?l:(i=new(require("jsdom").JSDOM)).window).document,function(e,t){e=a.createElement(e);return e.className=(t||[]).map(function(e){return c.prefix+e}).join(" "),e}),o=function(e){return e.replace(//g,">")},d=function(e){return e.join?e.map(d).join(""):e},c={prefix:"nb-",markdown:(s=l.marked||"function"==typeof require&&require("marked"))&&s.parse||e,ansi:(s=l.ansi_up||"function"==typeof require&&require("ansi_up"))&&s.ansi_to_html||e,sanitizer:(s=l.DOMPurify||"function"==typeof require&&require("dompurify"),(p?s&&s.sanitize:s(i.window).sanitize)||e),highlighter:e,VERSION:"0.7.0",Input:function(e,t){this.raw=e,this.cell=t}},h=(c.Input.prototype.render=function(){var e,t,r,n;return this.raw.length?(e=u("div",["input"]),"number"==typeof(n=this.cell).number&&e.setAttribute("data-prompt-number",this.cell.number),t=u("pre"),r=u("code"),n=n.worksheet.notebook.metadata,n=this.cell.raw.language||n.language||n.kernelspec&&n.kernelspec.language||n.language_info&&n.language_info.name,r.setAttribute("data-language",n),r.className="lang-"+n,r.innerHTML=c.highlighter(o(d(this.raw)),t,r,n),t.appendChild(r),e.appendChild(t),this.el=e):u("div")},c.display={},c.display.text=function(e){var t=u("pre",["text-output"]);return t.innerHTML=c.highlighter(c.ansi(d(e)),t),t},c.display["text/plain"]=c.display.text,c.display.html=function(e){var t=u("div",["html-output"]);return t.innerHTML=c.sanitizer(d(e)),t},c.display["text/html"]=c.display.html,c.display.marked=function(e){return c.display.html(c.markdown(d(e)))},c.display["text/markdown"]=c.display.marked,c.display.svg=function(e){var t=u("div",["svg-output"]);return t.innerHTML=d(e),t},c.display["text/svg+xml"]=c.display.svg,c.display["image/svg+xml"]=c.display.svg,c.display.latex=function(e){var t=u("div",["latex-output"]);return t.innerHTML=d(e),t},c.display["text/latex"]=c.display.latex,c.display.javascript=function(e){var t=u("script");return t.innerHTML=d(e),t},c.display["application/javascript"]=c.display.javascript,c.display.png=t("png"),c.display["image/png"]=c.display.png,c.display.jpeg=t("jpeg"),c.display["image/jpeg"]=c.display.jpeg,c.display_priority=["png","image/png","jpeg","image/jpeg","svg","image/svg+xml","text/svg+xml","html","text/html","text/markdown","latex","text/latex","javascript","application/javascript","text","text/plain"],c.Output=function(e,t){this.raw=e,this.cell=t,this.type=e.output_type},c.Output.prototype.renderers={display_data:r,execute_result:r,pyout:r,pyerr:n,error:n,stream:function(){var e=u("pre",[this.raw.stream||this.raw.name]),t=d(this.raw.text);return e.innerHTML=c.highlighter(c.ansi(o(t)),e),e}},c.Output.prototype.render=function(){var e=u("div",["output"]),t=("number"==typeof this.cell.number&&e.setAttribute("data-prompt-number",this.cell.number),this.renderers[this.type].call(this));return e.appendChild(t),this.el=e},c.coalesceStreams=function(e){var t,r;return e.length?(t=e[0],r=[t],e.slice(1).forEach(function(e){"stream"===e.raw.output_type&&"stream"===t.raw.output_type&&e.raw.stream===t.raw.stream&&e.raw.name===t.raw.name?t.raw.text=t.raw.text.concat(e.raw.text):(r.push(e),t=e)}),r):e},[{left:"$$",right:"$$",display:!0},{left:"\\[",right:"\\]",display:!0},{left:"\\(",right:"\\)",display:!(c.Cell=function(e,t){var r=this;r.raw=e,r.worksheet=t,r.type=e.cell_type,"code"===r.type&&(r.number=-1")))):e.innerHTML=c.sanitizer(c.markdown(t)),e},heading:function(){var e=u("h"+this.raw.level,["cell","heading-cell"]);return e.innerHTML=c.sanitizer(d(this.raw.source)),e},raw:function(){var e=u("div",["cell","raw-cell"]);return e.innerHTML=o(d(this.raw.source)),e},code:function(){var t=u("div",["cell","code-cell"]);t.appendChild(this.input.render()),this.outputs.forEach(function(e){t.appendChild(e.render())});return t}},c.Cell.prototype.render=function(){var e=this.renderers[this.type].call(this);return this.el=e},c.Worksheet=function(e,t){var r=this;this.raw=e,this.notebook=t,this.cells=e.cells.map(function(e){return new c.Cell(e,r)}),this.render=function(){var t=u("div",["worksheet"]);return r.cells.forEach(function(e){t.appendChild(e.render())}),this.el=t}},c.Notebook=function(e,t){var r=this,t=(this.raw=e,this.config=t,this.metadata=e.metadata||{}),t=(this.title=t.title||t.name,e.worksheets||[{cells:e.cells}]);this.worksheets=t.map(function(e){return new c.Worksheet(e,r)}),this.sheet=this.worksheets[0]},c.Notebook.prototype.render=function(){var t=u("div",["notebook"]);return this.worksheets.forEach(function(e){t.appendChild(e.render())}),this.el=t},c.parse=function(e,t){return new c.Notebook(e,t)},"function"==typeof define&&define.amd&&define(function(){return c}),"undefined"!=typeof exports?(exports="undefined"!=typeof module&&module.exports?module.exports=c:exports).nb=c:l.nb=c}.call(this); \ No newline at end of file diff --git a/public/script/org.min.js b/public/script/org.min.js new file mode 100644 index 0000000..518b186 --- /dev/null +++ b/public/script/org.min.js @@ -0,0 +1 @@ +var Org=function(){var e={},i={rules:{},define:function(t,e){this.rules[t]=e,this["is"+t.substring(0,1).toUpperCase()+t.substring(1)]=function(e){return this.rules[t].exec(e)}}};function r(){}function s(e){this.stream=e,this.tokenStack=[]}function o(e,t){if(this.type=e,this.children=[],t)for(var n=0,i=t.length;n";return void 0!==this.value?e+=" "+this.value:this.children&&(e+="\n"+this.children.map(function(e,t){return"#"+t+" "+e.toString()}).join("\n").split("\n").map(function(e){return" "+e}).join("\n")),e}};var p={types:{},define:function(n,i){var e="create"+(this.types[n]=n).substring(0,1).toUpperCase()+n.substring(1),r="function"==typeof i;this[e]=function(e,t){e=new o(n,e);return r&&i(e,t||{}),e}}};function a(e){this.sequences=e.split(/\r?\n/),this.totalLines=this.sequences.length,this.lineNumber=0}function l(){this.inlineParser=new t}function t(){this.preEmphasis=" \t\\('\"",this.postEmphasis="- \t.,:!?;'\"\\)",this.borderForbidden=" \t\r\n,\"'",this.bodyRegexp="[\\s\\S]*?",this.markers="*/_=~+",this.emphasisPattern=this.buildEmphasisPattern(),this.linkPattern=/\[\[([^\]]*)\](?:\[([^\]]*)\])?\]/g}function n(){}function c(e,t){this.initialize(e,t),this.result=this.convert()}return p.define("text",function(e,t){e.value=t.value}),p.define("header",function(e,t){e.level=t.level}),p.define("orderedList"),p.define("unorderedList"),p.define("definitionList"),p.define("listElement"),p.define("paragraph"),p.define("preformatted"),p.define("table"),p.define("tableRow"),p.define("tableCell"),p.define("horizontalRule"),p.define("directive"),p.define("inlineContainer"),p.define("bold"),p.define("italic"),p.define("underline"),p.define("code"),p.define("verbatim"),p.define("dashed"),p.define("link",function(e,t){e.src=t.src}),void 0!==e&&(e.Node=p),a.prototype.peekNextLine=function(){return this.hasNext()?this.sequences[this.lineNumber]:null},a.prototype.getNextLine=function(){return this.hasNext()?this.sequences[this.lineNumber++]:null},a.prototype.hasNext=function(){return this.lineNumbere)){if(0<(l=s.level-n))for(var o,a=0;a]+|\(([^\s()<>]+|(\([^\s()<>]+\)))*\))+(?:\(([^\s()<>]+|(\([^\s()<>]+\)))*\)|[^\s`!()\[\]{};:'".,<>?«»“”‘’])/i,linkURL:function(e){var t=this;return e.replace(this.urlPattern,function(e){return e.indexOf("://")<0&&(e="http://"+e),t.makeLink(e)})},makeLink:function(e){throw"Implement makeLink"},makeSubscripts:function(e){return"{}"===this.documentOptions["^"]?e.replace(/\b([^_ \t]*)_{([^}]*)}/g,this.makeSubscript):this.documentOptions["^"]?e.replace(/\b([^_ \t]*)_([^_]*)\b/g,this.makeSubscript):e},makeSubscript:function(e,t,n){throw"Implement makeSubscript"},imageExtensionPattern:new RegExp("("+["bmp","png","jpeg","jpg","gif","tiff","tif","xbm","xpm","pbm","pgm","ppm"].join("|")+")$","i")},void 0!==e&&(e.Converter=n),c.prototype={__proto__:n.prototype,convert:function(){var e=this.orgDocument.title?this.convertNode(this.orgDocument.title):this.untitled,t=this.tag("h1",e),n=this.convertNodes(this.orgDocument.nodes,!0),i=this.computeToc(this.documentOptions.toc),r=this.tocToHTML(i);return{title:e,titleHTML:t,contentHTML:n,tocHTML:r,toc:i,toString:function(){return t+r+"\n"+n}}},tocToHTML:function(e){function a(e){for(var t="",n=0;n":[">",null],'"':[""",null],"'":["'",null],"->":["➔",function(e,t){return this.exportOptions.translateSymbolArrow&&!t}]},replaceRegexp:null,escapeSpecialChars:function(n,i){this.replaceRegexp||(this.replaceRegexp=new RegExp(Object.keys(this.replaceMap).join("|"),"g"));var r=this.replaceMap,s=this;return n.replace(this.replaceRegexp,function(e){var t;if(r[e])return"function"!=typeof(t=r[e][1])||t.call(s,n,i)?r[e][0]:e;throw"escapeSpecialChars: Invalid match"})},postProcess:function(e,t,n){return t=this.exportOptions.exportFromLineNumber&&"number"==typeof e.fromLineNumber?this.inlineTag("div",t,{"data-line-number":e.fromLineNumber}):t},makeLink:function(e){return''+decodeURIComponent(e)+""},makeSubscript:function(e,t,n){return''+t+''+n+""},attributesObjectToString:function(e){var t,n="";for(t in e)e.hasOwnProperty(t)&&(n+=" "+t+'="'+e[t]+'"');return n},inlineTag:function(e,t,n,i){var r="<"+e;return i&&(r+=" "+i),r+=this.attributesObjectToString(n=n||{}),null===t?r+"/>":r+">"+t+""},tag:function(e,t,n,i){return this.inlineTag(e,t,n,i)+"\n"}},void 0!==e&&(e.ConverterHTML=c),e}(); \ No newline at end of file diff --git a/public/script/pdf.min.js b/public/script/pdf.min.js new file mode 100644 index 0000000..566d8fd --- /dev/null +++ b/public/script/pdf.min.js @@ -0,0 +1,2 @@ +!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=t.pdfjsLib=e():"function"==typeof define&&define.amd?define("pdfjs-dist/build/pdf",[],()=>t.pdfjsLib=e()):"object"==typeof exports?exports["pdfjs-dist/build/pdf"]=t.pdfjsLib=e():t["pdfjs-dist/build/pdf"]=t.pdfjsLib=e()}(globalThis,()=>(()=>{"use strict";var __webpack_modules__=[,(t,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.VerbosityLevel=e.Util=e.UnknownErrorException=e.UnexpectedResponseException=e.TextRenderingMode=e.RenderingIntentFlag=e.PromiseCapability=e.PermissionFlag=e.PasswordResponses=e.PasswordException=e.PageActionEventType=e.OPS=e.MissingPDFException=e.MAX_IMAGE_SIZE_TO_CACHE=e.LINE_FACTOR=e.LINE_DESCENT_FACTOR=e.InvalidPDFException=e.ImageKind=e.IDENTITY_MATRIX=e.FormatError=e.FeatureTest=e.FONT_IDENTITY_MATRIX=e.DocumentActionEventType=e.CMapCompressionType=e.BaseException=e.BASELINE_FACTOR=e.AnnotationType=e.AnnotationReplyType=e.AnnotationPrefix=e.AnnotationMode=e.AnnotationFlag=e.AnnotationFieldFlag=e.AnnotationEditorType=e.AnnotationEditorPrefix=e.AnnotationEditorParamsType=e.AnnotationBorderStyleType=e.AnnotationActionEventType=e.AbortException=void 0,e.assert=function(t,e){t||n(e)},e.bytesToString=h,e.createValidAbsoluteUrl=function(t){let e=1=i.INFOS&&console.log("Info: "+t)},e.isArrayBuffer=function(t){return"object"==typeof t&&void 0!==t?.byteLength},e.isArrayEqual=function(r,i){if(r.length!==i.length)return!1;for(let t=0,e=r.length;te?e.normalize("NFKC"):g.get(r))},e.objectFromMap=function(t){var e,r,i=Object.create(null);for([e,r]of t)i[e]=r;return i},e.objectSize=function(t){return Object.keys(t).length},e.setVerbosityLevel=function(t){Number.isInteger(t)&&(s=t)},e.shadow=o,e.string32=function(t){return String.fromCharCode(t>>24&255,t>>16&255,t>>8&255,255&t)},e.stringToBytes=c,e.stringToPDFString=function(r){if("ï"<=r[0]){let t;if("þ"===r[0]&&"ÿ"===r[1]?t="utf-16be":"ÿ"===r[0]&&"þ"===r[1]?t="utf-16le":"ï"===r[0]&&"»"===r[1]&&"¿"===r[2]&&(t="utf-8"),t)try{var e=new TextDecoder(t,{fatal:!0}),i=c(r);return e.decode(i)}catch(r){a(`stringToPDFString: "${r}".`)}}var s=[];for(let t=0,e=r.length;t=i.WARNINGS&&console.log("Warning: "+t)}function n(t){throw new Error(t)}function o(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!(3t.toString(16).padStart(2,"0")),u=(e.Util=class{static makeHexColor(t,e,r){return"#"+d[t]+d[e]+d[r]}static scaleMinMax(t,e){let r;t[0]?(t[0]<0&&(r=e[0],e[0]=e[1],e[1]=r),e[0]*=t[0],e[1]*=t[0],t[3]<0&&(r=e[2],e[2]=e[3],e[3]=r),e[2]*=t[3],e[3]*=t[3]):(r=e[0],e[0]=e[2],e[2]=r,r=e[1],e[1]=e[3],e[3]=r,t[1]<0&&(r=e[2],e[2]=e[3],e[3]=r),e[2]*=t[1],e[3]*=t[1],t[2]<0&&(r=e[0],e[0]=e[1],e[1]=r),e[0]*=t[2],e[1]*=t[2]),e[0]+=t[4],e[1]+=t[4],e[2]+=t[5],e[3]+=t[5]}static transform(t,e){return[t[0]*e[0]+t[2]*e[1],t[1]*e[0]+t[3]*e[1],t[0]*e[2]+t[2]*e[3],t[1]*e[2]+t[3]*e[3],t[0]*e[4]+t[2]*e[5]+t[4],t[1]*e[4]+t[3]*e[5]+t[5]]}static applyTransform(t,e){return[t[0]*e[0]+t[1]*e[2]+e[4],t[0]*e[1]+t[1]*e[3]+e[5]]}static applyInverseTransform(t,e){var r=e[0]*e[3]-e[1]*e[2];return[(t[0]*e[3]-t[1]*e[2]+e[2]*e[5]-e[4]*e[3])/r,(-t[0]*e[1]+t[1]*e[0]+e[4]*e[1]-e[5]*e[0])/r]}static getAxialAlignedBoundingBox(t,e){var r=this.applyTransform(t,e),i=this.applyTransform(t.slice(2,4),e),s=this.applyTransform([t[0],t[3]],e),t=this.applyTransform([t[2],t[1]],e);return[Math.min(r[0],i[0],s[0],t[0]),Math.min(r[1],i[1],s[1],t[1]),Math.max(r[0],i[0],s[0],t[0]),Math.max(r[1],i[1],s[1],t[1])]}static inverseTransform(t){var e=t[0]*t[3]-t[1]*t[2];return[t[3]/e,-t[1]/e,-t[2]/e,t[0]/e,(t[2]*t[5]-t[4]*t[3])/e,(t[4]*t[1]-t[5]*t[0])/e]}static singularValueDecompose2dScale(t){var e=[t[0],t[2],t[1],t[3]],r=t[0]*e[0]+t[1]*e[2],i=t[0]*e[1]+t[1]*e[3],s=t[2]*e[0]+t[3]*e[2],t=t[2]*e[1]+t[3]*e[3],e=(r+t)/2,r=Math.sqrt((r+t)**2-4*(r*t-s*i))/2,t=e-r||1;return[Math.sqrt(e+r||1),Math.sqrt(t)]}static normalizeRect(t){var e=t.slice(0);return t[0]>t[2]&&(e[0]=t[2],e[2]=t[0]),t[1]>t[3]&&(e[1]=t[3],e[3]=t[1]),e}static intersect(t,e){var r,i=Math.max(Math.min(t[0],t[2]),Math.min(e[0],e[2])),s=Math.min(Math.max(t[0],t[2]),Math.max(e[0],e[2]));return s{this.resolve=t=>{this.#t=!0,e(t)},this.reject=t=>{this.#t=!0,r(t)}})}get settled(){return this.#t}};let f=null,g=null;e.AnnotationPrefix="pdfjs_internal_id_"},(t,e,r)=>{function i(t,e){var r={};r[t]=l(t,e,d),n({global:!0,constructor:!0,arity:1,forced:d},r)}function s(t,e){var r;c&&c[t]&&((r={})[t]=l(h+"."+t,e,d),n({target:h,stat:!0,constructor:!0,arity:1,forced:d},r))}var n=r(3),a=r(4),o=r(69),l=r(70),h="WebAssembly",c=a[h],d=7!==Error("e",{cause:7}).cause;i("Error",function(e){return function(t){return o(e,this,arguments)}}),i("EvalError",function(e){return function(t){return o(e,this,arguments)}}),i("RangeError",function(e){return function(t){return o(e,this,arguments)}}),i("ReferenceError",function(e){return function(t){return o(e,this,arguments)}}),i("SyntaxError",function(e){return function(t){return o(e,this,arguments)}}),i("TypeError",function(e){return function(t){return o(e,this,arguments)}}),i("URIError",function(e){return function(t){return o(e,this,arguments)}}),s("CompileError",function(e){return function(t){return o(e,this,arguments)}}),s("LinkError",function(e){return function(t){return o(e,this,arguments)}}),s("RuntimeError",function(e){return function(t){return o(e,this,arguments)}})},(t,e,r)=>{var h=r(4),c=r(5).f,d=r(44),u=r(48),p=r(38),f=r(56),g=r(68);t.exports=function(t,e){var r,i,s,n,a=t.target,o=t.global,l=t.stat;if(r=o?h:l?h[a]||p(a,{}):(h[a]||{}).prototype)for(i in e){if(s=e[i],n=t.dontCallGetSet?(n=c(r,i))&&n.value:r[i],!g(o?i:a+(l?".":"#")+i,t.forced)&&void 0!==n){if(typeof s==typeof n)continue;f(s,n)}(t.sham||n&&n.sham)&&d(s,"sham",!0),u(r,i,s,t)}}},function(t){function e(t){return t&&t.Math===Math&&t}t.exports=e("object"==typeof globalThis&&globalThis)||e("object"==typeof window&&window)||e("object"==typeof self&&self)||e("object"==typeof global&&global)||function(){return this}()||this||Function("return this")()},(t,e,r)=>{var i=r(6),s=r(8),n=r(10),a=r(11),o=r(12),l=r(18),h=r(39),c=r(42),d=Object.getOwnPropertyDescriptor;e.f=i?d:function(t,e){if(t=o(t),e=l(e),c)try{return d(t,e)}catch(t){}if(h(t,e))return a(!s(n.f,t,e),t[e])}},(t,e,r)=>{r=r(7);t.exports=!r(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})},t=>{t.exports=function(t){try{return!!t()}catch(t){return!0}}},(t,e,r)=>{var r=r(9),i=Function.prototype.call;t.exports=r?i.bind(i):function(){return i.apply(i,arguments)}},(t,e,r)=>{r=r(7);t.exports=!r(function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})},(t,e)=>{var r={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,s=i&&!r.call({1:2},1);e.f=s?function(t){t=i(this,t);return!!t&&t.enumerable}:r},t=>{t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},(t,e,r)=>{var i=r(13),s=r(16);t.exports=function(t){return i(s(t))}},(t,e,r)=>{var i=r(14),s=r(7),n=r(15),a=Object,o=i("".split);t.exports=s(function(){return!a("z").propertyIsEnumerable(0)})?function(t){return"String"===n(t)?o(t,""):a(t)}:a},(t,e,r)=>{var r=r(9),i=Function.prototype,s=i.call,i=r&&i.bind.bind(s,s);t.exports=r?i:function(t){return function(){return s.apply(t,arguments)}}},(t,e,r)=>{var r=r(14),i=r({}.toString),s=r("".slice);t.exports=function(t){return s(i(t),8,-1)}},(t,e,r)=>{var i=r(17),s=TypeError;t.exports=function(t){if(i(t))throw s("Can't call method on "+t);return t}},t=>{t.exports=function(t){return null==t}},(t,e,r)=>{var i=r(19),s=r(23);t.exports=function(t){t=i(t,"string");return s(t)?t:t+""}},(t,e,r)=>{var i=r(8),s=r(20),n=r(23),a=r(30),o=r(33),r=r(34),l=TypeError,h=r("toPrimitive");t.exports=function(t,e){if(!s(t)||n(t))return t;var r=a(t,h);if(r){if(r=i(r,t,e=void 0===e?"default":e),!s(r)||n(r))return r;throw l("Can't convert object to primitive value")}return o(t,e=void 0===e?"number":e)}},(t,e,r)=>{var i=r(21),r=r(22),s=r.all;t.exports=r.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:i(t)||t===s}:function(t){return"object"==typeof t?null!==t:i(t)}},(t,e,r)=>{var r=r(22),i=r.all;t.exports=r.IS_HTMLDDA?function(t){return"function"==typeof t||t===i}:function(t){return"function"==typeof t}},t=>{var e="object"==typeof document&&document.all;t.exports={all:e,IS_HTMLDDA:void 0===e&&void 0!==e}},(t,e,r)=>{var i=r(24),s=r(21),n=r(25),r=r(26),a=Object;t.exports=r?function(t){return"symbol"==typeof t}:function(t){var e=i("Symbol");return s(e)&&n(e.prototype,a(t))}},(t,e,r)=>{var i=r(4),s=r(21);t.exports=function(t,e){return arguments.length<2?(r=i[t],s(r)?r:void 0):i[t]&&i[t][e];var r}},(t,e,r)=>{r=r(14);t.exports=r({}.isPrototypeOf)},(t,e,r)=>{r=r(27);t.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},(t,e,r)=>{var i=r(28),s=r(7),n=r(4).String;t.exports=!!Object.getOwnPropertySymbols&&!s(function(){var t=Symbol("symbol detection");return!n(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&i&&i<41})},(t,e,r)=>{var i,s,n=r(4),r=r(29),a=n.process,n=n.Deno,a=a&&a.versions||n&&n.version,n=a&&a.v8;!(s=n?0<(i=n.split("."))[0]&&i[0]<4?1:+(i[0]+i[1]):s)&&r&&(!(i=r.match(/Edge\/(\d+)/))||74<=i[1])&&(i=r.match(/Chrome\/(\d+)/))&&(s=+i[1]),t.exports=s},t=>{t.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},(t,e,r)=>{var i=r(31),s=r(17);t.exports=function(t,e){t=t[e];return s(t)?void 0:i(t)}},(t,e,r)=>{var i=r(21),s=r(32),n=TypeError;t.exports=function(t){if(i(t))return t;throw n(s(t)+" is not a function")}},t=>{var e=String;t.exports=function(t){try{return e(t)}catch(t){return"Object"}}},(t,e,r)=>{var s=r(8),n=r(21),a=r(20),o=TypeError;t.exports=function(t,e){var r,i;if("string"===e&&n(r=t.toString)&&!a(i=s(r,t)))return i;if(n(r=t.valueOf)&&!a(i=s(r,t)))return i;if("string"!==e&&n(r=t.toString)&&!a(i=s(r,t)))return i;throw o("Can't convert object to primitive value")}},(t,e,r)=>{var i=r(4),s=r(35),n=r(39),a=r(41),o=r(27),r=r(26),l=i.Symbol,h=s("wks"),c=r?l.for||l:l&&l.withoutSetter||a;t.exports=function(t){return n(h,t)||(h[t]=o&&n(l,t)?l[t]:c("Symbol."+t)),h[t]}},(t,e,r)=>{var i=r(36),s=r(37);(t.exports=function(t,e){return s[t]||(s[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.32.2",mode:i?"pure":"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.32.2/LICENSE",source:"https://github.com/zloirock/core-js"})},t=>{t.exports=!1},(t,e,r)=>{var i=r(4),r=r(38),s="__core-js_shared__",i=i[s]||r(s,{});t.exports=i},(t,e,r)=>{var i=r(4),s=Object.defineProperty;t.exports=function(e,r){try{s(i,e,{value:r,configurable:!0,writable:!0})}catch(t){i[e]=r}return r}},(t,e,r)=>{var i=r(14),s=r(40),n=i({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,e){return n(s(t),e)}},(t,e,r)=>{var i=r(16),s=Object;t.exports=function(t){return s(i(t))}},(t,e,r)=>{var r=r(14),i=0,s=Math.random(),n=r(1..toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+n(++i+s,36)}},(t,e,r)=>{var i=r(6),s=r(7),n=r(43);t.exports=!i&&!s(function(){return 7!==Object.defineProperty(n("div"),"a",{get:function(){return 7}}).a})},(t,e,r)=>{var i=r(4),r=r(20),s=i.document,n=r(s)&&r(s.createElement);t.exports=function(t){return n?s.createElement(t):{}}},(t,e,r)=>{var i=r(6),s=r(45),n=r(11);t.exports=i?function(t,e,r){return s.f(t,e,n(1,r))}:function(t,e,r){return t[e]=r,t}},(t,e,r)=>{var i=r(6),s=r(42),n=r(46),a=r(47),o=r(18),l=TypeError,h=Object.defineProperty,c=Object.getOwnPropertyDescriptor,d="enumerable",u="configurable",p="writable";e.f=i?n?function(t,e,r){var i;return a(t),e=o(e),a(r),"function"==typeof t&&"prototype"===e&&"value"in r&&p in r&&!r[p]&&(i=c(t,e))&&i[p]&&(t[e]=r.value,r={configurable:(u in r?r:i)[u],enumerable:(d in r?r:i)[d],writable:!1}),h(t,e,r)}:h:function(t,e,r){if(a(t),e=o(e),a(r),s)try{return h(t,e,r)}catch(t){}if("get"in r||"set"in r)throw l("Accessors not supported");return"value"in r&&(t[e]=r.value),t}},(t,e,r)=>{var i=r(6),r=r(7);t.exports=i&&r(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype})},(t,e,r)=>{var i=r(20),s=String,n=TypeError;t.exports=function(t){if(i(t))return t;throw n(s(t)+" is not an object")}},(t,e,r)=>{var a=r(21),o=r(45),l=r(49),h=r(38);t.exports=function(t,e,r,i){var s=(i=i||{}).enumerable,n=void 0!==i.name?i.name:e;if(a(r)&&l(r,n,i),i.global)s?t[e]=r:h(e,r);else{try{i.unsafe?t[e]&&(s=!0):delete t[e]}catch(t){}s?t[e]=r:o.f(t,e,{value:r,enumerable:!1,configurable:!i.nonConfigurable,writable:!i.nonWritable})}return t}},(t,e,r)=>{var i=r(14),s=r(7),n=r(21),a=r(39),o=r(6),l=r(50).CONFIGURABLE,h=r(51),r=r(52),c=r.enforce,d=r.get,u=String,p=Object.defineProperty,f=i("".slice),g=i("".replace),m=i([].join),v=o&&!s(function(){return 8!==p(function(){},"length",{value:8}).length}),_=String(String).split("String"),r=t.exports=function(t,e,r){"Symbol("===f(u(e),0,7)&&(e="["+g(u(e),/^Symbol\(([^)]*)\)/,"$1")+"]"),r&&r.getter&&(e="get "+e),r&&r.setter&&(e="set "+e),(!a(t,"name")||l&&t.name!==e)&&(o?p(t,"name",{value:e,configurable:!0}):t.name=e),v&&r&&a(r,"arity")&&t.length!==r.arity&&p(t,"length",{value:r.arity});try{r&&a(r,"constructor")&&r.constructor?o&&p(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}r=c(t);return a(r,"source")||(r.source=m(_,"string"==typeof e?e:"")),t};Function.prototype.toString=r(function(){return n(this)&&d(this).source||h(this)},"toString")},(t,e,r)=>{var i=r(6),r=r(39),s=Function.prototype,n=i&&Object.getOwnPropertyDescriptor,r=r(s,"name"),a=r&&"something"===function(){}.name,i=r&&(!i||n(s,"name").configurable);t.exports={EXISTS:r,PROPER:a,CONFIGURABLE:i}},(t,e,r)=>{var i=r(14),s=r(21),r=r(37),n=i(Function.toString);s(r.inspectSource)||(r.inspectSource=function(t){return n(t)}),t.exports=r.inspectSource},(t,e,r)=>{var i,s,n,a,o=r(53),l=r(4),h=r(20),c=r(44),d=r(39),u=r(37),p=r(54),r=r(55),f="Object already initialized",g=l.TypeError,l=l.WeakMap,m=o||u.state?((n=u.state||(u.state=new l)).get=n.get,n.has=n.has,n.set=n.set,i=function(t,e){if(n.has(t))throw g(f);return e.facade=t,n.set(t,e),e},s=function(t){return n.get(t)||{}},function(t){return n.has(t)}):(r[a=p("state")]=!0,i=function(t,e){if(d(t,a))throw g(f);return e.facade=t,c(t,a,e),e},s=function(t){return d(t,a)?t[a]:{}},function(t){return d(t,a)});t.exports={set:i,get:s,has:m,enforce:function(t){return m(t)?s(t):i(t,{})},getterFor:function(e){return function(t){if(h(t)&&(t=s(t)).type===e)return t;throw g("Incompatible receiver, "+e+" required")}}}},(t,e,r)=>{var i=r(4),r=r(21),i=i.WeakMap;t.exports=r(i)&&/native code/.test(String(i))},(t,e,r)=>{var i=r(35),s=r(41),n=i("keys");t.exports=function(t){return n[t]||(n[t]=s(t))}},t=>{t.exports={}},(t,e,r)=>{var l=r(39),h=r(57),c=r(5),d=r(45);t.exports=function(t,e,r){for(var i=h(e),s=d.f,n=c.f,a=0;a{var i=r(24),s=r(14),n=r(58),a=r(67),o=r(47),l=s([].concat);t.exports=i("Reflect","ownKeys")||function(t){var e=n.f(o(t)),r=a.f;return r?l(e,r(t)):e}},(t,e,r)=>{var i=r(59),s=r(66).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return i(t,s)}},(t,e,r)=>{var i=r(14),a=r(39),o=r(12),l=r(60).indexOf,h=r(55),c=i([].push);t.exports=function(t,e){var r,i=o(t),s=0,n=[];for(r in i)!a(h,r)&&a(i,r)&&c(n,r);for(;e.length>s;)!a(i,r=e[s++])||~l(n,r)||c(n,r);return n}},(t,e,r)=>{function i(o){return function(t,e,r){var i,s=l(t),n=c(s),a=h(r,n);if(o&&e!=e){for(;a{var i=r(62),s=Math.max,n=Math.min;t.exports=function(t,e){t=i(t);return t<0?s(t+e,0):n(t,e)}},(t,e,r)=>{var i=r(63);t.exports=function(t){t=+t;return t!=t||0==t?0:i(t)}},t=>{var e=Math.ceil,r=Math.floor;t.exports=Math.trunc||function(t){t=+t;return(0{var i=r(65);t.exports=function(t){return i(t.length)}},(t,e,r)=>{var i=r(62),s=Math.min;t.exports=function(t){return 0{t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},(t,e)=>{e.f=Object.getOwnPropertySymbols},(t,e,r)=>{function i(t,e){return(t=l[o(t)])===c||t!==h&&(n(e)?s(e):!!e)}var s=r(7),n=r(21),a=/#|\.prototype\./,o=i.normalize=function(t){return String(t).replace(a,".").toLowerCase()},l=i.data={},h=i.NATIVE="N",c=i.POLYFILL="P";t.exports=i},(t,e,r)=>{var r=r(9),i=Function.prototype,s=i.apply,n=i.call;t.exports="object"==typeof Reflect&&Reflect.apply||(r?n.bind(s):function(){return n.apply(s,arguments)})},(t,e,r)=>{var d=r(24),u=r(39),p=r(44),f=r(25),g=r(71),m=r(56),v=r(74),_=r(75),b=r(76),y=r(80),A=r(81),S=r(6),x=r(36);t.exports=function(t,e,r,i){var s="stackTraceLimit",n=i?2:1,a=t.split("."),o=a[a.length-1],l=d.apply(null,a);if(l){var h=l.prototype;if(!x&&u(h,"cause")&&delete h.cause,!r)return l;var a=d("Error"),c=e(function(t,e){e=b(i?e:t,void 0),t=i?new l(t):new l;return void 0!==e&&p(t,"message",e),A(t,c,t.stack,2),this&&f(h,this)&&_(t,this,c),n{var s=r(72),n=r(47),a=r(73);t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var r,i=!1,t={};try{(r=s(Object.prototype,"__proto__","set"))(t,[]),i=t instanceof Array}catch(r){}return function(t,e){return n(t),a(e),i?r(t,e):t.__proto__=e,t}}():void 0)},(t,e,r)=>{var i=r(14),s=r(31);t.exports=function(t,e,r){try{return i(s(Object.getOwnPropertyDescriptor(t,e)[r]))}catch(t){}}},(t,e,r)=>{var i=r(21),s=String,n=TypeError;t.exports=function(t){if("object"==typeof t||i(t))return t;throw n("Can't set "+s(t)+" as a prototype")}},(t,e,r)=>{var i=r(45).f;t.exports=function(t,e,r){r in t||i(t,r,{configurable:!0,get:function(){return e[r]},set:function(t){e[r]=t}})}},(t,e,r)=>{var i=r(21),s=r(20),n=r(71);t.exports=function(t,e,r){return n&&i(e=e.constructor)&&e!==r&&s(e=e.prototype)&&e!==r.prototype&&n(t,e),t}},(t,e,r)=>{var i=r(77);t.exports=function(t,e){return void 0===t?arguments.length<2?"":e:i(t)}},(t,e,r)=>{var i=r(78),s=String;t.exports=function(t){if("Symbol"===i(t))throw TypeError("Cannot convert a Symbol value to a string");return s(t)}},(t,e,r)=>{var i=r(79),s=r(21),n=r(15),a=r(34)("toStringTag"),o=Object,l="Arguments"===n(function(){return arguments}());t.exports=i?n:function(t){var e;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(e=function(t,e){try{return t[e]}catch(t){}}(t=o(t),a))?e:l?n(t):"Object"===(e=n(t))&&s(t.callee)?"Arguments":e}},(t,e,r)=>{var i={};i[r(34)("toStringTag")]="z",t.exports="[object z]"===String(i)},(t,e,r)=>{var i=r(20),s=r(44);t.exports=function(t,e){i(e)&&"cause"in e&&s(t,"cause",e.cause)}},(t,e,r)=>{var s=r(44),n=r(82),a=r(83),o=Error.captureStackTrace;t.exports=function(t,e,r,i){a&&(o?o(t,e):s(t,"stack",n(r,i)))}},(t,e,r)=>{var r=r(14),i=Error,s=r("".replace),r=String(i("zxcasd").stack),n=/\n\s*at [^:]*:[^\n]*/,a=n.test(r);t.exports=function(t,e){if(a&&"string"==typeof t&&!i.prepareStackTrace)for(;e--;)t=s(t,n,"");return t}},(t,e,r)=>{var i=r(7),s=r(11);t.exports=!i(function(){var t=Error("a");return!("stack"in t)||(Object.defineProperty(t,"stack",s(1,7)),7!==t.stack)})},(t,e,r)=>{var i=r(48),s=r(14),d=r(77),u=r(85),r=URLSearchParams,n=r.prototype,p=s(n.append),f=s(n.delete),g=s(n.forEach),m=s([].push),s=new r("a=1&a=2&b=3");s.delete("a",1),s.delete("b",void 0),s+""!="a=2"&&i(n,"delete",function(t){var e=arguments.length,r=e<2?void 0:arguments[1];if(e&&void 0===r)return f(this,t);var i=[];g(this,function(t,e){m(i,{key:e,value:t})}),u(e,1);for(var s,n=d(t),a=d(r),o=0,l=0,h=!1,c=i.length;o{var r=TypeError;t.exports=function(t,e){if(t{var i=r(48),s=r(14),a=r(77),o=r(85),r=URLSearchParams,n=r.prototype,l=s(n.getAll),h=s(n.has),s=new r("a=1");!s.has("a",2)&&s.has("a",void 0)||i(n,"has",function(t){var e=arguments.length,r=e<2?void 0:arguments[1];if(e&&void 0===r)return h(this,t);var i=l(this,t);o(e,1);for(var s=a(r),n=0;n{var i=r(6),s=r(14),r=r(88),n=URLSearchParams.prototype,a=s(n.forEach);!i||"size"in n||r(n,"size",{get:function(){var t=0;return a(this,function(){t++}),t},configurable:!0,enumerable:!0})},(t,e,r)=>{var i=r(49),s=r(45);t.exports=function(t,e,r){return r.get&&i(r.get,e,{getter:!0}),r.set&&i(r.set,e,{setter:!0}),s.f(t,e,r)}},(t,e,r)=>{var i=r(3),n=r(40),a=r(64),o=r(90),l=r(92);i({target:"Array",proto:!0,arity:1,forced:r(7)(function(){return 4294967297!==[].push.call({length:4294967296},1)})||!function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(t){return t instanceof TypeError}}()},{push:function(t){var e=n(this),r=a(e),i=arguments.length;l(r+i);for(var s=0;s{var i=r(6),s=r(91),n=TypeError,a=Object.getOwnPropertyDescriptor,r=i&&!function(){if(void 0!==this)return 1;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(t){return t instanceof TypeError}}();t.exports=r?function(t,e){if(s(t)&&!a(t,"length").writable)throw n("Cannot set read only .length");return t.length=e}:function(t,e){return t.length=e}},(t,e,r)=>{var i=r(15);t.exports=Array.isArray||function(t){return"Array"===i(t)}},t=>{var e=TypeError;t.exports=function(t){if(9007199254740991{var i=r(94),s=r(98).findLast,n=i.aTypedArray;(0,i.exportTypedArrayMethod)("findLast",function(t){return s(n(this),t,1{function i(t){var e,t=y(t);if(u(t))return(e=E(t))&&p(e,F)?e[F]:i(t)}function s(t){return!!u(t)&&(t=f(t),p(I,t)||p(O,t))}var n,a,o,l=r(95),h=r(6),c=r(4),d=r(21),u=r(20),p=r(39),f=r(78),g=r(32),m=r(44),v=r(48),_=r(88),b=r(25),y=r(96),A=r(71),S=r(34),x=r(41),r=r(52),w=r.enforce,E=r.get,r=c.Int8Array,T=r&&r.prototype,C=c.Uint8ClampedArray,C=C&&C.prototype,P=r&&y(r),k=T&&y(T),r=Object.prototype,M=c.TypeError,S=S("toStringTag"),R=x("TYPED_ARRAY_TAG"),F="TypedArrayConstructor",D=l&&!!A&&"Opera"!==f(c.opera),x=!1,I={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},O={BigInt64Array:8,BigUint64Array:8};for(n in I)(o=(a=c[n])&&a.prototype)?w(o)[F]=a:D=!1;for(n in O)(o=(a=c[n])&&a.prototype)&&(w(o)[F]=a);if((!D||!d(P)||P===Function.prototype)&&(P=function(){throw M("Incorrect invocation")},D))for(n in I)c[n]&&A(c[n],P);if((!D||!k||k===r)&&(k=P.prototype,D))for(n in I)c[n]&&A(c[n].prototype,k);if(D&&y(C)!==k&&A(C,k),h&&!p(k,S))for(n in _(k,S,{configurable:x=!0,get:function(){return u(this)?this[R]:void 0}}),I)c[n]&&m(c[n],R,n);t.exports={NATIVE_ARRAY_BUFFER_VIEWS:D,TYPED_ARRAY_TAG:x&&R,aTypedArray:function(t){if(s(t))return t;throw M("Target is not a typed array")},aTypedArrayConstructor:function(t){if(!d(t)||A&&!b(P,t))throw M(g(t)+" is not a typed array constructor");return t},exportTypedArrayMethod:function(t,e,r,i){if(h){if(r)for(var s in I){s=c[s];if(s&&p(s.prototype,t))try{delete s.prototype[t]}catch(r){try{s.prototype[t]=e}catch(t){}}}k[t]&&!r||v(k,t,!r&&D&&T[t]||e,i)}},exportTypedArrayStaticMethod:function(t,e,r){var i,s;if(h){if(A){if(r)for(i in I)if((s=c[i])&&p(s,t))try{delete s[t]}catch(t){}if(P[t]&&!r)return;try{return v(P,t,!r&&D&&P[t]||e)}catch(t){}}for(i in I)!(s=c[i])||s[t]&&!r||v(s,t,e)}},getTypedArrayConstructor:i,isView:function(t){return!!u(t)&&("DataView"===(t=f(t))||p(I,t)||p(O,t))},isTypedArray:s,TypedArray:P,TypedArrayPrototype:k}},t=>{t.exports="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView},(t,e,r)=>{var i=r(39),s=r(21),n=r(40),a=r(54),r=r(97),o=a("IE_PROTO"),l=Object,h=l.prototype;t.exports=r?l.getPrototypeOf:function(t){var e,t=n(t);return i(t,o)?t[o]:(e=t.constructor,s(e)&&t instanceof e?e.prototype:t instanceof l?h:null)}},(t,e,r)=>{r=r(7);t.exports=!r(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})},(t,e,r)=>{function i(l){var h=1===l;return function(t,e,r){for(var i,s=u(t),n=d(s),a=c(e,r),o=p(n);0{var i=r(100),s=r(31),n=r(9),a=i(i.bind);t.exports=function(t,e){return s(t),void 0===e?t:n?a(t,e):function(){return t.apply(e,arguments)}}},(t,e,r)=>{var i=r(15),s=r(14);t.exports=function(t){if("Function"===i(t))return s(t)}},(t,e,r)=>{var i=r(94),s=r(98).findLastIndex,n=i.aTypedArray;(0,i.exportTypedArrayMethod)("findLastIndex",function(t){return s(n(this),t,1{var i=r(4),n=r(8),s=r(94),a=r(64),o=r(103),l=r(40),r=r(7),h=i.RangeError,c=i.Int8Array,i=c&&c.prototype,d=i&&i.set,u=s.aTypedArray,i=s.exportTypedArrayMethod,p=!r(function(){var t=new Uint8ClampedArray(2);return n(d,t,{length:1,0:3},1),3!==t[1]}),s=p&&s.NATIVE_ARRAY_BUFFER_VIEWS&&r(function(){var t=new c(2);return t.set(1),t.set("2",1),0!==t[0]||2!==t[1]});i("set",function(t){u(this);var e=o(1{var i=r(104),s=RangeError;t.exports=function(t,e){t=i(t);if(t%e)throw s("Wrong offset");return t}},(t,e,r)=>{var i=r(62),s=RangeError;t.exports=function(t){t=i(t);if(t<0)throw s("The argument can't be less than 0");return t}},(t,e,r)=>{var i=r(106),r=r(94),s=r.aTypedArray,n=r.exportTypedArrayMethod,a=r.getTypedArrayConstructor;n("toReversed",function(){return i(s(this),a(this))})},(t,e,r)=>{var n=r(64);t.exports=function(t,e){for(var r=n(t),i=new e(r),s=0;s{var i=r(94),s=r(14),n=r(31),a=r(108),o=i.aTypedArray,l=i.getTypedArrayConstructor,r=i.exportTypedArrayMethod,h=s(i.TypedArrayPrototype.sort);r("toSorted",function(t){void 0!==t&&n(t);var e=o(this),e=a(l(e),e);return h(e,t)})},(t,e,r)=>{var n=r(64);t.exports=function(t,e){for(var r=0,i=n(e),s=new t(i);r{var i=r(110),s=r(94),n=r(111),a=r(62),o=r(112),l=s.aTypedArray,h=s.getTypedArrayConstructor;(0,s.exportTypedArrayMethod)("with",function(t,e){var r=l(this),t=a(t),e=n(r)?o(e):+e;return i(r,h(r),t,e)},!!!function(){try{new Int8Array(1).with(2,{valueOf:function(){throw 8}})}catch(t){return 8===t}}())},(t,e,r)=>{var l=r(64),h=r(62),c=RangeError;t.exports=function(t,e,r,i){var s=l(t),r=h(r),n=r<0?s+r:r;if(s<=n||n<0)throw c("Incorrect index");for(var a=new e(s),o=0;o{var i=r(78);t.exports=function(t){t=i(t);return"BigInt64Array"===t||"BigUint64Array"===t}},(t,e,r)=>{var i=r(19),s=TypeError;t.exports=function(t){t=i(t,"number");if("number"==typeof t)throw s("Can't convert number to bigint");return BigInt(t)}},(t,e,r)=>{var i=r(6),s=r(88),n=r(114),r=ArrayBuffer.prototype;!i||"detached"in r||s(r,"detached",{configurable:!0,get:function(){return n(this)}})},(t,e,r)=>{var i=r(14),s=r(115),n=i(ArrayBuffer.prototype.slice);t.exports=function(t){if(0!==s(t))return!1;try{return n(t,0,0),!1}catch(t){return!0}}},(t,e,r)=>{var i=r(72),s=r(15),n=TypeError;t.exports=i(ArrayBuffer.prototype,"byteLength","get")||function(t){if("ArrayBuffer"!==s(t))throw n("ArrayBuffer expected");return t.byteLength}},(t,e,r)=>{var i=r(3),s=r(117);s&&i({target:"ArrayBuffer",proto:!0},{transfer:function(){return s(this,arguments.length?arguments[0]:void 0,!0)}})},(t,e,r)=>{var i=r(4),s=r(14),n=r(72),h=r(118),c=r(114),d=r(115),r=r(119),u=i.TypeError,p=i.structuredClone,f=i.ArrayBuffer,g=i.DataView,m=Math.min,i=f.prototype,a=g.prototype,v=s(i.slice),_=n(i,"resizable","get"),b=n(i,"maxByteLength","get"),y=s(a.getInt8),A=s(a.setInt8);t.exports=r&&function(t,e,r){var i=d(t),e=void 0===e?i:h(e),s=!_||!_(t);if(c(t))throw u("ArrayBuffer is detached");t=p(t,{transfer:[t]});if(i===e&&(r||s))return t;if(e<=i&&(!r||s))return v(t,0,e);for(var r=r&&!s&&b?{maxByteLength:b(t)}:void 0,s=new f(e,r),n=new g(t),a=new g(s),o=m(e,i),l=0;l{var i=r(62),s=r(65),n=RangeError;t.exports=function(t){if(void 0===t)return 0;var t=i(t),e=s(t);if(t!==e)throw n("Wrong length or index");return e}},(t,e,r)=>{var i=r(4),s=r(7),n=r(28),a=r(120),o=r(121),l=r(122),h=i.structuredClone;t.exports=!!h&&!s(function(){var t,e;return!(o&&92{var i=r(121),r=r(122);t.exports=!i&&!r&&"object"==typeof window&&"object"==typeof document},t=>{t.exports="object"==typeof Deno&&Deno&&"object"==typeof Deno.version},(t,e,r)=>{var i=r(4),r=r(15);t.exports="process"===r(i.process)},(t,e,r)=>{var i=r(3),s=r(117);s&&i({target:"ArrayBuffer",proto:!0},{transferToFixedLength:function(){return s(this,arguments.length?arguments[0]:void 0,!1)}})},(__unused_webpack_module,exports,__w_pdfjs_require__)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports.RenderTask=exports.PDFWorkerUtil=exports.PDFWorker=exports.PDFPageProxy=exports.PDFDocumentProxy=exports.PDFDocumentLoadingTask=exports.PDFDataRangeTransport=exports.LoopbackPort=exports.DefaultStandardFontDataFactory=exports.DefaultFilterFactory=exports.DefaultCanvasFactory=exports.DefaultCMapReaderFactory=void 0,Object.defineProperty(exports,"SVGGraphics",{enumerable:!0,get:function(){return _displaySvg.SVGGraphics}}),exports.build=void 0,exports.getDocument=getDocument,exports.version=void 0,__w_pdfjs_require__(84),__w_pdfjs_require__(86),__w_pdfjs_require__(87),__w_pdfjs_require__(2),__w_pdfjs_require__(93),__w_pdfjs_require__(101),__w_pdfjs_require__(102),__w_pdfjs_require__(105),__w_pdfjs_require__(107),__w_pdfjs_require__(109),__w_pdfjs_require__(113),__w_pdfjs_require__(116),__w_pdfjs_require__(123),__w_pdfjs_require__(89),__w_pdfjs_require__(125),__w_pdfjs_require__(136),__w_pdfjs_require__(138),__w_pdfjs_require__(141),__w_pdfjs_require__(143),__w_pdfjs_require__(145),__w_pdfjs_require__(147),__w_pdfjs_require__(149),__w_pdfjs_require__(152);var _util=__w_pdfjs_require__(1),_annotation_storage=__w_pdfjs_require__(163),_display_utils=__w_pdfjs_require__(168),_font_loader=__w_pdfjs_require__(171),_displayNode_utils=__w_pdfjs_require__(172),_canvas=__w_pdfjs_require__(173),_worker_options=__w_pdfjs_require__(176),_message_handler=__w_pdfjs_require__(177),_metadata=__w_pdfjs_require__(178),_optional_content_config=__w_pdfjs_require__(179),_transport_stream=__w_pdfjs_require__(180),_displayFetch_stream=__w_pdfjs_require__(181),_displayNetwork=__w_pdfjs_require__(184),_displayNode_stream=__w_pdfjs_require__(185),_displaySvg=__w_pdfjs_require__(186),_xfa_text=__w_pdfjs_require__(194);const DEFAULT_RANGE_CHUNK_SIZE=65536,RENDERING_CANCELLED_TIMEOUT=100,DELAYED_CLEANUP_TIMEOUT=5e3,DefaultCanvasFactory=_util.isNodeJS?_displayNode_utils.NodeCanvasFactory:_display_utils.DOMCanvasFactory,DefaultCMapReaderFactory=(exports.DefaultCanvasFactory=DefaultCanvasFactory,_util.isNodeJS?_displayNode_utils.NodeCMapReaderFactory:_display_utils.DOMCMapReaderFactory),DefaultFilterFactory=(exports.DefaultCMapReaderFactory=DefaultCMapReaderFactory,_util.isNodeJS?_displayNode_utils.NodeFilterFactory:_display_utils.DOMFilterFactory),DefaultStandardFontDataFactory=(exports.DefaultFilterFactory=DefaultFilterFactory,_util.isNodeJS?_displayNode_utils.NodeStandardFontDataFactory:_display_utils.DOMStandardFontDataFactory);function getDocument(t){if("string"==typeof t||t instanceof URL?t={url:t}:(0,_util.isArrayBuffer)(t)&&(t={data:t}),"object"!=typeof t)throw new Error("Invalid parameter in getDocument, need parameter object.");if(!t.url&&!t.data&&!t.range)throw new Error("Invalid parameter object: need either .data, .range or .url");const r=new PDFDocumentLoadingTask,i=r["docId"],s=t.url?getUrlProp(t.url):null,n=t.data?getDataProp(t.data):null,a=t.httpHeaders||null,o=!0===t.withCredentials,e=t.password??null,l=t.range instanceof PDFDataRangeTransport?t.range:null,h=Number.isInteger(t.rangeChunkSize)&&0{for(const t of this._progressListeners)t(e,r)})}onDataProgressiveRead(e){this._readyCapability.promise.then(()=>{for(const t of this._progressiveReadListeners)t(e)})}onDataProgressiveDone(){this._readyCapability.promise.then(()=>{for(const t of this._progressiveDoneListeners)t()})}transportReady(){this._readyCapability.resolve()}requestDataRange(t,e){(0,_util.unreachable)("Abstract method PDFDataRangeTransport.requestDataRange")}abort(){}}exports.PDFDataRangeTransport=PDFDataRangeTransport;class PDFDocumentProxy{constructor(t,e){this._pdfInfo=t,this._transport=e,Object.defineProperty(this,"getJavaScript",{value:()=>((0,_display_utils.deprecated)("`PDFDocumentProxy.getJavaScript`, please use `PDFDocumentProxy.getJSActions` instead."),this.getJSActions().then(t=>{if(!t)return t;var e=[];for(const r in t)e.push(...t[r]);return e}))})}get annotationStorage(){return this._transport.annotationStorage}get filterFactory(){return this._transport.filterFactory}get numPages(){return this._pdfInfo.numPages}get fingerprints(){return this._pdfInfo.fingerprints}get isPureXfa(){return(0,_util.shadow)(this,"isPureXfa",!!this._transport._htmlForXfa)}get allXfaHtml(){return this._transport._htmlForXfa}getPage(t){return this._transport.getPage(t)}getPageIndex(t){return this._transport.getPageIndex(t)}getDestinations(){return this._transport.getDestinations()}getDestination(t){return this._transport.getDestination(t)}getPageLabels(){return this._transport.getPageLabels()}getPageLayout(){return this._transport.getPageLayout()}getPageMode(){return this._transport.getPageMode()}getViewerPreferences(){return this._transport.getViewerPreferences()}getOpenAction(){return this._transport.getOpenAction()}getAttachments(){return this._transport.getAttachments()}getJSActions(){return this._transport.getDocJSActions()}getOutline(){return this._transport.getOutline()}getOptionalContentConfig(){return this._transport.getOptionalContentConfig()}getPermissions(){return this._transport.getPermissions()}getMetadata(){return this._transport.getMetadata()}getMarkInfo(){return this._transport.getMarkInfo()}getData(){return this._transport.getData()}saveDocument(){return this._transport.saveDocument()}getDownloadInfo(){return this._transport.downloadInfoCapability.promise}cleanup(){return this._transport.startCleanup(0{d.renderTasks.delete(f),(this._maybeCleanupAfterRender||u)&&(this.#i=!0),this.#s(!u),t?(f.capability.reject(t),this._abortOperatorList({intentState:d,reason:t instanceof Error?t:new Error(t)})):f.capability.resolve(),this._stats?.timeEnd("Rendering"),this._stats?.timeEnd("Overall")}),f=new InternalRenderTask({callback:p,params:{canvasContext:e,viewport:r,transform:n,background:a},objs:this.objs,commonObjs:this.commonObjs,annotationCanvasMap:l,operatorList:d.operatorList,pageIndex:this._pageIndex,canvasFactory:this._transport.canvasFactory,filterFactory:this._transport.filterFactory,useRequestAnimationFrame:!u,pdfBug:this._pdfBug,pageColors:h});(d.renderTasks||=new Set).add(f);t=f.task;return Promise.all([d.displayReadyCapability.promise,o]).then(t=>{var[t,e]=t;this.destroyed?p():(this._stats?.time("Rendering"),f.initializeGraphics({transparency:t,optionalContentConfig:e}),f.operatorListChanged())}).catch(p),t}getOperatorList(){var{intent:t="display",annotationMode:e=_util.AnnotationMode.ENABLE,printAnnotationStorage:r=null}=0t.items.length})}getTextContent(){var t=0_xfa_text.XfaText.textContent(t));const r=this.streamTextContent(t);return new Promise(function(i,t){const e=r.getReader(),s={items:[],styles:Object.create(null)};!function r(){e.read().then(function(t){var{value:t,done:e}=t;e?i(s):(Object.assign(s.styles,t.styles),s.items.push(...t.items),r())},t)}()})}getStructTree(){return this._transport.getStructTree(this._pageIndex)}_destroy(){this.destroyed=!0;var t=[];for(const e of this._intentStates.values())if(this._abortOperatorList({intentState:e,reason:new Error("Page was destroyed."),force:!0}),!e.opListReadCapability)for(const r of e.renderTasks)t.push(r.completed),r.cancel();return this.objs.clear(),this.#i=!1,this.#r(),Promise.all(t)}cleanup(){var t=0{this.#n=null,this.#s(!1)},DELAYED_CLEANUP_TIMEOUT),!1;for(const{renderTasks:t,operatorList:e}of this._intentStates.values())if(0{n.read().then(t=>{var{value:t,done:e}=t;e?a.streamReader=null:this._transport.destroyed||(this._renderPageChunk(t,a),o())},t=>{if(a.streamReader=null,!this._transport.destroyed){if(a.operatorList){a.operatorList.lastChunk=!0;for(const t of a.renderTasks)t.operatorListChanged();this.#s(!0)}if(a.displayReadyCapability)a.displayReadyCapability.reject(t);else{if(!a.opListReadCapability)throw t;a.opListReadCapability.reject(t)}}})});o()}_abortOperatorList(t){let{intentState:e,reason:r,force:i=!1}=t;if(e.streamReader){if(e.streamReaderCancelTimeout&&(clearTimeout(e.streamReaderCancelTimeout),e.streamReaderCancelTimeout=null),!i){if(0{e.streamReaderCancelTimeout=null,this._abortOperatorList({intentState:e,reason:r,force:!0})},t))}}if(e.streamReader.cancel(new _util.AbortException(r.message)).catch(()=>{}),e.streamReader=null,!this._transport.destroyed){for(const[t,r]of this._intentStates)if(r===e){this._intentStates.delete(t);break}this.cleanup()}}}get stats(){return this._stats}}exports.PDFPageProxy=PDFPageProxy;class LoopbackPort{#a=new Set;#o=Promise.resolve();postMessage(t,e){const r={data:structuredClone(t,null)};this.#o.then(()=>{for(const t of this.#a)t.call(this,r)})}addEventListener(t,e){this.#a.add(e)}removeEventListener(t,e){this.#a.delete(e)}terminate(){this.#a.clear()}}exports.LoopbackPort=LoopbackPort;const PDFWorkerUtil={isWorkerDisabled:!1,fallbackWorkerSrc:null,fakeWorkerId:0};if(exports.PDFWorkerUtil=PDFWorkerUtil,_util.isNodeJS&&"function"==typeof require)PDFWorkerUtil.isWorkerDisabled=!0,PDFWorkerUtil.fallbackWorkerSrc="./pdf.worker.js";else if("object"==typeof document){const t=document?.currentScript?.src;t&&(PDFWorkerUtil.fallbackWorkerSrc=t.replace(/(\.(?:min\.)?js)(\?.*)?$/i,".worker$1$2"))}PDFWorkerUtil.isSameOrigin=function(t,e){let r;try{if(!(r=new URL(t)).origin||"null"===r.origin)return!1}catch{return!1}t=new URL(e,r);return r.origin===t.origin},PDFWorkerUtil.createCDNWrapper=function(t){return URL.createObjectURL(new Blob([`importScripts("${t}");`]))};class PDFWorker{static#l;constructor(){var{name:t=null,port:e=null,verbosity:r=(0,_util.getVerbosityLevel)()}=0{e.removeEventListener("error",s),r.destroy(),e.terminate(),this.destroyed?this._readyCapability.reject(new Error("Worker was destroyed")):this._setupFakeWorker()},s=()=>{this._webWorker||i()},n=(e.addEventListener("error",s),r.on("test",t=>{e.removeEventListener("error",s),this.destroyed?i():t?(this._messageHandler=r,this._port=e,this._webWorker=e,this._readyCapability.resolve(),r.send("configure",{verbosity:this.verbosity})):(this._setupFakeWorker(),r.destroy(),e.terminate())}),r.on("ready",t=>{if(e.removeEventListener("error",s),this.destroyed)i();else try{n()}catch{this._setupFakeWorker()}}),()=>{var t=new Uint8Array;r.send("test",t,[t.buffer])});return void n()}catch{(0,_util.info)("The worker has been disabled.")}}this._setupFakeWorker()}_setupFakeWorker(){PDFWorkerUtil.isWorkerDisabled||((0,_util.warn)("Setting up fake worker."),PDFWorkerUtil.isWorkerDisabled=!0),PDFWorker._setupFakeWorkerGlobal.then(t=>{var e,r,i;this.destroyed?this._readyCapability.reject(new Error("Worker was destroyed")):(e=new LoopbackPort,this._port=e,r="fake"+PDFWorkerUtil.fakeWorkerId++,i=new _message_handler.MessageHandler(r+"_worker",r,e),t.setup(i,e),t=new _message_handler.MessageHandler(r,r+"_worker",e),this._messageHandler=t,this._readyCapability.resolve(),t.send("configure",{verbosity:this.verbosity}))}).catch(t=>{this._readyCapability.reject(new Error(`Setting up fake worker failed: "${t.message}".`))})}destroy(){this.destroyed=!0,this._webWorker&&(this._webWorker.terminate(),this._webWorker=null),PDFWorker.#l?.delete(this._port),this._port=null,this._messageHandler&&(this._messageHandler.destroy(),this._messageHandler=null)}static fromPort(t){if(!t?.port)throw new Error("PDFWorker.fromPort - invalid method signature.");var e=this.#l?.get(t.port);if(e){if(e._pendingDestroy)throw new Error("PDFWorker.fromPort - the worker is being destroyed.\nPlease remember to await `PDFDocumentLoadingTask.destroy()`-calls.");return e}return new PDFWorker(t)}static get workerSrc(){if(_worker_options.GlobalWorkerOptions.workerSrc)return _worker_options.GlobalWorkerOptions.workerSrc;if(null!==PDFWorkerUtil.fallbackWorkerSrc)return _util.isNodeJS||(0,_display_utils.deprecated)('No "GlobalWorkerOptions.workerSrc" specified.'),PDFWorkerUtil.fallbackWorkerSrc;throw new Error('No "GlobalWorkerOptions.workerSrc" specified.')}static get _mainThreadWorkerMessageHandler(){try{return globalThis.pdfjsWorker?.WorkerMessageHandler||null}catch{return null}}static get _setupFakeWorkerGlobal(){const loader=async()=>{const mainWorkerMessageHandler=this._mainThreadWorkerMessageHandler;if(mainWorkerMessageHandler)return mainWorkerMessageHandler;if(_util.isNodeJS&&"function"==typeof require){const worker=eval("require")(this.workerSrc);return worker.WorkerMessageHandler}return await(0,_display_utils.loadScript)(this.workerSrc),window.pdfjsWorker.WorkerMessageHandler};return(0,_util.shadow)(this,"_setupFakeWorkerGlobal",loader())}}exports.PDFWorker=PDFWorker;class WorkerTransport{#c=new Map;#h=new Map;#d=new Map;#u=null;constructor(t,e,r,i,s){this.messageHandler=t,this.loadingTask=e,this.commonObjs=new PDFObjects,this.fontLoader=new _font_loader.FontLoader({ownerDocument:i.ownerDocument,styleElement:i.styleElement}),this._params=i,this.canvasFactory=s.canvasFactory,this.filterFactory=s.filterFactory,this.cMapReaderFactory=s.cMapReaderFactory,this.standardFontDataFactory=s.standardFontDataFactory,this.destroyed=!1,this.destroyCapability=null,this._networkStream=r,this._fullReader=null,this._lastProgress=null,this.downloadInfoCapability=new _util.PromiseCapability,this.setupMessageHandler()}#p(t){var e=1{this.commonObjs.clear(),this.fontLoader.clear(),this.#c.clear(),this.filterFactory.destroy(),this._networkStream?.cancelAllRequests(new _util.AbortException("Worker was terminated.")),this.messageHandler&&(this.messageHandler.destroy(),this.messageHandler=null),this.destroyCapability.resolve()},this.destroyCapability.reject)}return this.destroyCapability.promise}setupMessageHandler(){const{messageHandler:a,loadingTask:i}=this;a.on("GetReader",(t,r)=>{(0,_util.assert)(this._networkStream,"GetReader - no `IPDFStream` instance available."),this._fullReader=this._networkStream.getFullReader(),this._fullReader.onProgress=t=>{this._lastProgress={loaded:t.loaded,total:t.total}},r.onPull=()=>{this._fullReader.read().then(function(t){var{value:t,done:e}=t;e?r.close():((0,_util.assert)(t instanceof ArrayBuffer,"GetReader - expected an ArrayBuffer."),r.enqueue(new Uint8Array(t),1,[t]))}).catch(t=>{r.error(t)})},r.onCancel=t=>{this._fullReader.cancel(t),r.ready.catch(t=>{if(!this.destroyed)throw t})}}),a.on("ReaderHeadersReady",t=>{const e=new _util.PromiseCapability,r=this._fullReader;return r.headersReady.then(()=>{r.isStreamingSupported&&r.isRangeSupported||(this._lastProgress&&i.onProgress?.(this._lastProgress),r.onProgress=t=>{i.onProgress?.({loaded:t.loaded,total:t.total})}),e.resolve({isStreamingSupported:r.isStreamingSupported,isRangeSupported:r.isRangeSupported,contentLength:r.contentLength})},e.reject),e.promise}),a.on("GetRangeReader",(t,r)=>{(0,_util.assert)(this._networkStream,"GetRangeReader - no `IPDFStream` instance available.");const e=this._networkStream.getRangeReader(t.begin,t.end);e?(r.onPull=()=>{e.read().then(function(t){var{value:t,done:e}=t;e?r.close():((0,_util.assert)(t instanceof ArrayBuffer,"GetRangeReader - expected an ArrayBuffer."),r.enqueue(new Uint8Array(t),1,[t]))}).catch(t=>{r.error(t)})},r.onCancel=t=>{e.cancel(t),r.ready.catch(t=>{if(!this.destroyed)throw t})}):r.close()}),a.on("GetDoc",t=>{t=t.pdfInfo;this._numPages=t.numPages,this._htmlForXfa=t.htmlForXfa,delete t.htmlForXfa,i._capability.resolve(new PDFDocumentProxy(t,this))}),a.on("DocException",function(t){let e;switch(t.name){case"PasswordException":e=new _util.PasswordException(t.message,t.code);break;case"InvalidPDFException":e=new _util.InvalidPDFException(t.message);break;case"MissingPDFException":e=new _util.MissingPDFException(t.message);break;case"UnexpectedResponseException":e=new _util.UnexpectedResponseException(t.message,t.status);break;case"UnknownErrorException":e=new _util.UnknownErrorException(t.message,t.details);break;default:(0,_util.unreachable)("DocException - expected a valid Error.")}i._capability.reject(e)}),a.on("PasswordRequest",t=>{if(this.#u=new _util.PromiseCapability,i.onPassword){var e=t=>{t instanceof Error?this.#u.reject(t):this.#u.resolve({password:t})};try{i.onPassword(e,t.code)}catch(t){this.#u.reject(t)}}else this.#u.reject(new _util.PasswordException(t.message,t.code));return this.#u.promise}),a.on("DataLoaded",t=>{i.onProgress?.({loaded:t.length,total:t.length}),this.downloadInfoCapability.resolve(t)}),a.on("StartRenderPage",t=>{this.destroyed||this.#h.get(t.pageIndex)._startRenderPage(t.transparency,t.cacheKey)}),a.on("commonobj",t=>{let[e,r,i]=t;if(!this.destroyed&&!this.commonObjs.has(e))switch(r){case"Font":const t=this._params;if("error"in i){const a=i.error;(0,_util.warn)("Error during font loading: "+a),this.commonObjs.resolve(e,a)}else{const s=t.pdfBug&&globalThis.FontInspector?.enabled?(t,e)=>globalThis.FontInspector.fontAdded(t,e):null,n=new _font_loader.FontFaceObject(i,{isEvalSupported:t.isEvalSupported,disableFontFace:t.disableFontFace,ignoreErrors:t.ignoreErrors,inspectFont:s});this.fontLoader.bind(n).catch(t=>a.sendWithPromise("FontFallback",{id:e})).finally(()=>{!t.fontExtraProperties&&n.data&&(n.data=null),this.commonObjs.resolve(e,n)})}break;case"FontPath":case"Image":case"Pattern":this.commonObjs.resolve(e,i);break;default:throw new Error("Got unknown common object type "+r)}}),a.on("obj",t=>{let[e,r,i,s]=t;if(!this.destroyed){var n=this.#h.get(r);if(!n.objs.has(e))switch(i){case"Image":if(n.objs.resolve(e,s),s){let t;if(s.bitmap){const{width:e,height:r}=s;t=e*r*4}else t=s.data?.length||0;t>_util.MAX_IMAGE_SIZE_TO_CACHE&&(n._maybeCleanupAfterRender=!0)}break;case"Pattern":n.objs.resolve(e,s);break;default:throw new Error("Got unknown object type "+i)}}}),a.on("DocProgress",t=>{this.destroyed||i.onProgress?.({loaded:t.loaded,total:t.total})}),a.on("FetchBuiltInCMap",t=>this.destroyed?Promise.reject(new Error("Worker was destroyed.")):this.cMapReaderFactory?this.cMapReaderFactory.fetch(t):Promise.reject(new Error("CMapReaderFactory not initialized, see the `useWorkerFetch` parameter."))),a.on("FetchStandardFontData",t=>this.destroyed?Promise.reject(new Error("Worker was destroyed.")):this.standardFontDataFactory?this.standardFontDataFactory.fetch(t):Promise.reject(new Error("StandardFontDataFactory not initialized, see the `useWorkerFetch` parameter.")))}getData(){return this.messageHandler.sendWithPromise("GetData",null)}saveDocument(){this.annotationStorage.size<=0&&(0,_util.warn)("saveDocument called while `annotationStorage` is empty, please use the getData-method instead.");var{map:t,transfers:e}=this.annotationStorage.serializable;return this.messageHandler.sendWithPromise("SaveDocument",{isPureXfa:!!this._htmlForXfa,numPages:this._numPages,annotationStorage:t,filename:this._fullReader?.filename??null},e).finally(()=>{this.annotationStorage.resetModified()})}getPage(t){if(!Number.isInteger(t)||t<=0||t>this._numPages)return Promise.reject(new Error("Invalid page request."));const e=t-1,r=this.#d.get(e);return r||(t=this.messageHandler.sendWithPromise("GetPage",{pageIndex:e}).then(t=>{if(this.destroyed)throw new Error("Transport destroyed");t=new PDFPageProxy(e,t,this,this._params.pdfBug);return this.#h.set(e,t),t}),this.#d.set(e,t),t)}getPageIndex(t){return"object"!=typeof t||null===t||!Number.isInteger(t.num)||t.num<0||!Number.isInteger(t.gen)||t.gen<0?Promise.reject(new Error("Invalid pageIndex request.")):this.messageHandler.sendWithPromise("GetPageIndex",{num:t.num,gen:t.gen})}getAnnotations(t,e){return this.messageHandler.sendWithPromise("GetAnnotations",{pageIndex:t,intent:e})}getFieldObjects(){return this.#p("GetFieldObjects")}hasJSActions(){return this.#p("HasJSActions")}getCalculationOrderIds(){return this.messageHandler.sendWithPromise("GetCalculationOrderIds",null)}getDestinations(){return this.messageHandler.sendWithPromise("GetDestinations",null)}getDestination(t){return"string"!=typeof t?Promise.reject(new Error("Invalid destination request.")):this.messageHandler.sendWithPromise("GetDestination",{id:t})}getPageLabels(){return this.messageHandler.sendWithPromise("GetPageLabels",null)}getPageLayout(){return this.messageHandler.sendWithPromise("GetPageLayout",null)}getPageMode(){return this.messageHandler.sendWithPromise("GetPageMode",null)}getViewerPreferences(){return this.messageHandler.sendWithPromise("GetViewerPreferences",null)}getOpenAction(){return this.messageHandler.sendWithPromise("GetOpenAction",null)}getAttachments(){return this.messageHandler.sendWithPromise("GetAttachments",null)}getDocJSActions(){return this.#p("GetDocJSActions")}getPageJSActions(t){return this.messageHandler.sendWithPromise("GetPageJSActions",{pageIndex:t})}getStructTree(t){return this.messageHandler.sendWithPromise("GetStructTree",{pageIndex:t})}getOutline(){return this.messageHandler.sendWithPromise("GetOutline",null)}getOptionalContentConfig(){return this.messageHandler.sendWithPromise("GetOptionalContentConfig",null).then(t=>new _optional_content_config.OptionalContentConfig(t))}getPermissions(){return this.messageHandler.sendWithPromise("GetPermissions",null)}getMetadata(){var t="GetMetadata",e=this.#c.get(t);return e||(e=this.messageHandler.sendWithPromise(t,null).then(t=>({info:t[0],metadata:t[1]?new _metadata.Metadata(t[1]):null,contentDispositionFilename:this._fullReader?.filename??null,contentLength:this._fullReader?.contentLength??null})),this.#c.set(t,e),e)}getMarkInfo(){return this.messageHandler.sendWithPromise("GetMarkInfo",null)}async startCleanup(){let t=0e(r.data)),null}const r=this.#f[t];if(r?.capability.settled)return r.data;throw new Error(`Requesting object that isn't resolved yet ${t}.`)}has(t){return this.#f[t]?.capability.settled||!1}resolve(t){var e=1{this._nextBound().catch(this._cancelBound)}):Promise.resolve().then(this._nextBound).catch(this._cancelBound)}async _next(){this.cancelled||(this.operatorListIdx=this.gfx.executeOperatorList(this.operatorList,this.operatorListIdx,this._continueBound,this.stepper),this.operatorListIdx===this.operatorList.argsArray.length&&(this.running=!1,this.operatorList.lastChunk)&&(this.gfx.endDrawing(),InternalRenderTask.#b.delete(this._canvas),this.callback()))}}const version="3.11.174",build=(exports.version=version,"ce8716743");exports.build=build},(t,e,r)=>{var i=r(3),s=r(126);i({target:"Set",proto:!0,real:!0,forced:!r(135)("difference")},{difference:s})},(t,e,r)=>{var s=r(127),i=r(128),n=r(129),a=r(132),o=r(133),l=r(130),h=r(131),c=i.has,d=i.remove;t.exports=function(t){var e=s(this),r=o(t),i=n(e);return a(e)<=r.size?l(e,function(t){r.includes(t)&&d(i,t)}):h(r.getIterator(),function(t){c(e,t)&&d(i,t)}),i}},(t,e,r)=>{var i=r(128).has;t.exports=function(t){return i(t),t}},(t,e,r)=>{var r=r(14),i=Set.prototype;t.exports={Set:Set,add:r(i.add),has:r(i.has),remove:r(i.delete),proto:i}},(t,e,r)=>{var i=r(128),s=r(130),n=i.Set,a=i.add;t.exports=function(t){var e=new n;return s(t,function(t){a(e,t)}),e}},(t,e,r)=>{var i=r(14),s=r(131),r=r(128),n=r.Set,r=r.proto,a=i(r.forEach),o=i(r.keys),l=o(new n).next;t.exports=function(t,e,r){return r?s({iterator:o(t),next:l},e):a(t,e)}},(t,e,r)=>{var a=r(8);t.exports=function(t,e,r){for(var i,s=r?t:t.iterator,n=t.next;!(i=a(n,s)).done;)if(void 0!==(i=e(i.value)))return i}},(t,e,r)=>{var i=r(72),r=r(128);t.exports=i(r.proto,"size","get")||function(t){return t.size}},(t,e,r)=>{function i(t,e,r,i){this.set=t,this.size=e,this.has=r,this.keys=i}var s=r(31),n=r(47),a=r(8),o=r(62),l=r(134),h="Invalid size",c=RangeError,d=TypeError,u=Math.max;i.prototype={getIterator:function(){return l(n(a(this.keys,this.set)))},includes:function(t){return a(this.has,this.set,t)}},t.exports=function(t){n(t);var e=+t.size;if(e!=e)throw d(h);e=o(e);if(e<0)throw c(h);return new i(t,u(e,0),s(t.has),s(t.keys))}},t=>{t.exports=function(t){return{iterator:t,next:t.next,done:!1}}},(t,e,r)=>{function i(t){return{size:t,has:function(){return!1},keys:function(){return{next:function(){return{done:!0}}}}}}var s=r(24);t.exports=function(t){var e=s("Set");try{(new e)[t](i(0));try{return(new e)[t](i(-1)),!1}catch(t){return!0}}catch(t){return!1}}},(t,e,r)=>{var i=r(3),s=r(7),n=r(137);i({target:"Set",proto:!0,real:!0,forced:!r(135)("intersection")||s(function(){return"3,2"!==Array.from(new Set([1,2,3]).intersection(new Set([3,2])))})},{intersection:n})},(t,e,r)=>{var s=r(127),i=r(128),n=r(132),a=r(133),o=r(130),l=r(131),h=i.Set,c=i.add,d=i.has;t.exports=function(t){var e=s(this),r=a(t),i=new h;return n(e)>r.size?l(r.getIterator(),function(t){d(e,t)&&c(i,t)}):o(e,function(t){r.includes(t)&&c(i,t)}),i}},(t,e,r)=>{var i=r(3),s=r(139);i({target:"Set",proto:!0,real:!0,forced:!r(135)("isDisjointFrom")},{isDisjointFrom:s})},(t,e,r)=>{var s=r(127),n=r(128).has,a=r(132),o=r(133),l=r(130),h=r(131),c=r(140);t.exports=function(t){var e,r=s(this),i=o(t);return a(r)<=i.size?!1!==l(r,function(t){if(i.includes(t))return!1},!0):(e=i.getIterator(),!1!==h(e,function(t){if(n(r,t))return c(e,"normal",!1)}))}},(t,e,r)=>{var n=r(8),a=r(47),o=r(30);t.exports=function(t,e,r){var i,s;a(t);try{if(!(i=o(t,"return"))){if("throw"===e)throw r;return r}i=n(i,t)}catch(t){s=!0,i=t}if("throw"===e)throw r;if(s)throw i;return a(i),r}},(t,e,r)=>{var i=r(3),s=r(142);i({target:"Set",proto:!0,real:!0,forced:!r(135)("isSubsetOf")},{isSubsetOf:s})},(t,e,r)=>{var i=r(127),s=r(132),n=r(130),a=r(133);t.exports=function(t){var e=i(this),r=a(t);return!(s(e)>r.size)&&!1!==n(e,function(t){if(!r.includes(t))return!1},!0)}},(t,e,r)=>{var i=r(3),s=r(144);i({target:"Set",proto:!0,real:!0,forced:!r(135)("isSupersetOf")},{isSupersetOf:s})},(t,e,r)=>{var i=r(127),s=r(128).has,n=r(132),a=r(133),o=r(131),l=r(140);t.exports=function(t){var e,r=i(this),t=a(t);return!(n(r){var i=r(3),s=r(146);i({target:"Set",proto:!0,real:!0,forced:!r(135)("symmetricDifference")},{symmetricDifference:s})},(t,e,r)=>{var i=r(127),s=r(128),n=r(129),a=r(133),o=r(131),l=s.add,h=s.has,c=s.remove;t.exports=function(t){var e=i(this),t=a(t).getIterator(),r=n(e);return o(t,function(t){(h(e,t)?c:l)(r,t)}),r}},(t,e,r)=>{var i=r(3),s=r(148);i({target:"Set",proto:!0,real:!0,forced:!r(135)("union")},{union:s})},(t,e,r)=>{var i=r(127),s=r(128).add,n=r(129),a=r(133),o=r(131);t.exports=function(t){var e=i(this),t=a(t).getIterator(),r=n(e);return o(t,function(t){s(r,t)}),r}},(t,e,r)=>{function i(){d(this,y);var t=p((e=arguments.length)<1?void 0:arguments[0]),e=p(e<2?void 0:arguments[1],"Error"),e=new b(t,e);return(t=_(t)).name=v,h(e,"stack",l(1,g(t.stack,1))),u(e,this,i),e}var s,n=r(3),a=r(4),o=r(24),l=r(11),h=r(45).f,c=r(39),d=r(150),u=r(75),p=r(76),f=r(151),g=r(82),m=r(6),r=r(36),v="DOMException",_=o("Error"),b=o(v),y=i.prototype=b.prototype,A="stack"in _(v),S="stack"in new b(1,2),m=b&&m&&Object.getOwnPropertyDescriptor(a,v),a=!(!m||m.writable&&m.configurable),m=A&&!a&&!S,x=(n({global:!0,constructor:!0,forced:r||m},{DOMException:m?i:b}),o(v)),A=x.prototype;if(A.constructor!==x)for(var w in r||h(A,"constructor",l(1,x)),f)!c(f,w)||c(x,s=(w=f[w]).s)||h(x,s,l(6,w.c))},(t,e,r)=>{var i=r(25),s=TypeError;t.exports=function(t,e){if(i(e,t))return t;throw s("Incorrect invocation")}},t=>{t.exports={IndexSizeError:{s:"INDEX_SIZE_ERR",c:1,m:1},DOMStringSizeError:{s:"DOMSTRING_SIZE_ERR",c:2,m:0},HierarchyRequestError:{s:"HIERARCHY_REQUEST_ERR",c:3,m:1},WrongDocumentError:{s:"WRONG_DOCUMENT_ERR",c:4,m:1},InvalidCharacterError:{s:"INVALID_CHARACTER_ERR",c:5,m:1},NoDataAllowedError:{s:"NO_DATA_ALLOWED_ERR",c:6,m:0},NoModificationAllowedError:{s:"NO_MODIFICATION_ALLOWED_ERR",c:7,m:1},NotFoundError:{s:"NOT_FOUND_ERR",c:8,m:1},NotSupportedError:{s:"NOT_SUPPORTED_ERR",c:9,m:1},InUseAttributeError:{s:"INUSE_ATTRIBUTE_ERR",c:10,m:1},InvalidStateError:{s:"INVALID_STATE_ERR",c:11,m:1},SyntaxError:{s:"SYNTAX_ERR",c:12,m:1},InvalidModificationError:{s:"INVALID_MODIFICATION_ERR",c:13,m:1},NamespaceError:{s:"NAMESPACE_ERR",c:14,m:1},InvalidAccessError:{s:"INVALID_ACCESS_ERR",c:15,m:1},ValidationError:{s:"VALIDATION_ERR",c:16,m:0},TypeMismatchError:{s:"TYPE_MISMATCH_ERR",c:17,m:1},SecurityError:{s:"SECURITY_ERR",c:18,m:1},NetworkError:{s:"NETWORK_ERR",c:19,m:1},AbortError:{s:"ABORT_ERR",c:20,m:1},URLMismatchError:{s:"URL_MISMATCH_ERR",c:21,m:1},QuotaExceededError:{s:"QUOTA_EXCEEDED_ERR",c:22,m:1},TimeoutError:{s:"TIMEOUT_ERR",c:23,m:1},InvalidNodeTypeError:{s:"INVALID_NODE_TYPE_ERR",c:24,m:1},DataCloneError:{s:"DATA_CLONE_ERR",c:25,m:1}}},(l,h,t)=>{function e(i){return!n(function(){var t=new v.Set([7]),e=i(t),r=i(T(7));return e===t||!e.has(7)||"object"!=typeof r||7!=+r})&&i}function r(r,i){return!n(function(){var t=new i,e=r({a:t,b:t});return!(e&&e.a===e.b&&e.a instanceof i&&e.a.stack===t.stack)})}function u(t){throw new P("Uncloneable type: "+t,D)}function p(t,e){return L||N(e),L(t)}function f(t,e,r,i,s){var n=v[e];return y(n)||N(e),new n(j(t.buffer,s),r,i)}function g(t,e,r){this.object=t,this.type=e,this.metadata=r}function m(t,r,i){if(q(t)&&u("Symbol"),!y(t))return t;if(r){if(M(r,t))return R(r,t)}else r=new k;var e,s,n,a,o,l,h,c,d=S(t);switch(d){case"Array":n=J(w(t));break;case"Object":n={};break;case"Map":n=new k;break;case"Set":n=new ht;break;case"RegExp":n=new RegExp(t.source,K(t));break;case"Error":switch(s=t.name){case"AggregateError":n=_("AggregateError")([]);break;case"EvalError":n=Z();break;case"RangeError":n=tt();break;case"ReferenceError":n=et();break;case"SyntaxError":n=rt();break;case"TypeError":n=it();break;case"URIError":n=st();break;case"CompileError":n=at();break;case"LinkError":n=ot();break;case"RuntimeError":n=lt();break;default:n=C()}break;case"DOMException":n=new P(t.message,t.name);break;case"ArrayBuffer":case"SharedArrayBuffer":n=i?new g(t,d):j(t,r,d);break;case"DataView":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float16Array":case"Float32Array":case"Float64Array":case"BigInt64Array":case"BigUint64Array":l="DataView"===d?t.byteLength:t.length,n=i?new g(t,d,{offset:t.byteOffset,length:l}):f(t,d,t.byteOffset,l,r);break;case"DOMQuad":try{n=new DOMQuad(m(t.p1,r,i),m(t.p2,r,i),m(t.p3,r,i),m(t.p4,r,i))}catch(r){n=p(t,d)}break;case"File":if(L)try{n=L(t),S(n)!==d&&(n=void 0)}catch(t){}if(!n)try{n=new File([t],t.name,t)}catch(t){}n||N(d);break;case"FileList":if(a=function(){var e;try{e=new v.DataTransfer}catch(t){try{e=new v.ClipboardEvent("").clipboardData}catch(e){}}return e&&e.items&&e.files?e:null}()){for(o=0,l=w(t);o{function i(){}function s(t){if(!l(t))return!1;try{return p(i,u,t),!0}catch(t){return!1}}function n(t){if(!l(t))return!1;switch(h(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return m||!!g(f,d(t))}catch(t){return!0}}var a=r(14),o=r(7),l=r(21),h=r(78),c=r(24),d=r(51),u=[],p=c("Reflect","construct"),f=/^\s*(?:class|function)\b/,g=a(f.exec),m=!f.exec(i);n.sham=!0,t.exports=!p||o(function(){var t;return s(s.call)||!s(Object)||!s(function(){t=!0})||t})?n:s},(t,e,r)=>{function v(t,e){this.stopped=t,this.result=e}var _=r(99),b=r(8),y=r(47),A=r(32),S=r(155),x=r(64),w=r(25),E=r(157),T=r(158),C=r(140),P=TypeError,k=v.prototype;t.exports=function(t,e,r){function i(t){return n&&C(n,"normal",t),new v(!0,t)}function s(t){return u?(y(t),g?m(t[0],t[1],i):m(t[0],t[1])):g?m(t,i):m(t)}var n,a,o,l,h,c,d=r&&r.that,u=!(!r||!r.AS_ENTRIES),p=!(!r||!r.IS_RECORD),f=!(!r||!r.IS_ITERATOR),g=!(!r||!r.INTERRUPTED),m=_(e,d);if(p)n=t.iterator;else if(f)n=t;else{if(!(r=T(t)))throw P(A(t)+" is not iterable");if(S(r)){for(a=0,o=x(t);a{var i=r(34),s=r(156),n=i("iterator"),a=Array.prototype;t.exports=function(t){return void 0!==t&&(s.Array===t||a[n]===t)}},t=>{t.exports={}},(t,e,r)=>{var i=r(8),s=r(31),n=r(47),a=r(32),o=r(158),l=TypeError;t.exports=function(t,e){e=arguments.length<2?o(t):e;if(s(e))return n(i(e,t));throw l(a(t)+" is not iterable")}},(t,e,r)=>{var i=r(78),s=r(30),n=r(17),a=r(156),o=r(34)("iterator");t.exports=function(t){if(!n(t))return s(t,o)||s(t,"@@iterator")||a[i(t)]}},(t,e,r)=>{var i=r(18),s=r(45),n=r(11);t.exports=function(t,e,r){e=i(e);e in t?s.f(t,e,n(0,r)):t[e]=r}},(t,e,r)=>{var i=r(8),s=r(39),n=r(25),a=r(161),o=RegExp.prototype;t.exports=function(t){var e=t.flags;return void 0!==e||"flags"in o||s(t,"flags")||!n(o,t)?e:i(a,t)}},(t,e,r)=>{var i=r(47);t.exports=function(){var t=i(this),e="";return t.hasIndices&&(e+="d"),t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.unicodeSets&&(e+="v"),t.sticky&&(e+="y"),e}},(t,e,r)=>{var r=r(14),i=Map.prototype;t.exports={Map:Map,set:r(i.set),get:r(i.get),has:r(i.has),remove:r(i.delete),proto:i}},(t,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.SerializableEmpty=e.PrintAnnotationStorage=e.AnnotationStorage=void 0,r(89),r(149),r(152);var i=r(1),n=r(164),a=r(170);const o=Object.freeze({map:null,hash:"",transfers:void 0});e.SerializableEmpty=o;class s{#v=!1;#y=new Map;constructor(){this.onSetModified=null,this.onResetModified=null,this.onAnnotationEditor=null}getValue(t,e){t=this.#y.get(t);return void 0===t?e:Object.assign(e,t)}getRawValue(t){return this.#y.get(t)}remove(t){if(this.#y.delete(t),0===this.#y.size&&this.resetModified(),"function"==typeof this.onAnnotationEditor){for(const t of this.#y.values())if(t instanceof n.AnnotationEditor)return;this.onAnnotationEditor(null)}}setValue(t,e){var r=this.#y.get(t);let i=!1;if(void 0!==r)for(const[t,n]of Object.entries(e))r[t]!==n&&(i=!0,r[t]=n);else i=!0,this.#y.set(t,e);i&&this.#_(),e instanceof n.AnnotationEditor&&"function"==typeof this.onAnnotationEditor&&this.onAnnotationEditor(e.constructor._type)}has(t){return this.#y.has(t)}getAll(){return 0{Object.defineProperty(e,"__esModule",{value:!0}),e.AnnotationEditor=void 0,r(89),r(2);var i=r(165),m=r(1),s=r(168);class C{#S="";#E=!1;#x=null;#w=null;#C=null;#T=!1;#P=null;#k=this.focusin.bind(this);#M=this.focusout.bind(this);#F=!1;#R=!1;#D=!1;_initialOptions=Object.create(null);_uiManager=null;_focusEventsAllowed=!0;_l10nPromise=null;#I=!1;#O=C._zIndex++;static _borderLineWidth=-1;static _colorManager=new i.ColorManager;static _zIndex=1;static SMALL_EDITOR_SIZE=0;constructor(t){this.constructor===C&&(0,m.unreachable)("Cannot initialize AnnotationEditor."),this.parent=t.parent,this.id=t.id,this.width=this.height=null,this.pageIndex=t.parent.pageIndex,this.name=t.name,this.div=null,this._uiManager=t.uiManager,this.annotationElementId=null,this._willKeepAspectRatio=!1,this._initialOptions.isCentered=t.isCentered,this._structTreeParentId=null;var{rotation:e,rawDims:{pageWidth:r,pageHeight:i,pageX:s,pageY:n}}=this.parent.viewport,[e,r]=(this.rotation=e,this.pageRotation=(360+e-this._uiManager.viewParameters.rotation)%360,this.pageDimensions=[r,i],this.pageTranslation=[s,n],this.parentDimensions);this.x=t.x/e,this.y=t.y/r,this.isAttachedToDOM=!1,this.deleted=!1}get editorType(){return Object.getPrototypeOf(this).constructor._type}static get _defaultLineColor(){return(0,m.shadow)(this,"_defaultLineColor",this._colorManager.getHexCode("CanvasText"))}static deleteAnnotationElement(t){var e=new n({id:t.parent.getNextId(),parent:t.parent,uiManager:t._uiManager});e.annotationElementId=t.annotationElementId,e.deleted=!0,e._uiManager.addToAnnotationStorage(e)}static initialize(e){var t=1[t,e.get(t)])),t?.strings)for(const r of t.strings)C._l10nPromise.set(r,e.get(r));if(-1===C._borderLineWidth){const r=getComputedStyle(document.documentElement);C._borderLineWidth=parseFloat(r.getPropertyValue("--outline-width"))||0}}static updateDefaultParams(t,e){}static get defaultPropertiesToUpdate(){return[]}static isHandlingMimeForPasting(t){return!1}static paste(t,e){(0,m.unreachable)("Not implemented")}get propertiesToUpdate(){return[]}get _isDraggable(){return this.#I}set _isDraggable(t){this.#I=t,this.div?.classList.toggle("draggable",t)}center(){var[t,e]=this.pageDimensions;switch(this.parentRotation){case 90:this.x-=this.height*e/(2*t),this.y+=this.width*t/(2*e);break;case 180:this.x+=this.width/2,this.y+=this.height/2;break;case 270:this.x+=this.height*e/(2*t),this.y-=this.width*t/(2*e);break;default:this.x-=this.width/2,this.y-=this.height/2}this.fixAndSetPosition()}addCommands(t){this._uiManager.addCommands(t)}get currentLayer(){return this._uiManager.currentLayer}setInBackground(){this.div.style.zIndex=0}setInForeground(){this.div.style.zIndex=this.#O}setParent(t){null!==t&&(this.pageIndex=t.pageIndex,this.pageDimensions=t.pageDimensions),this.parent=t}focusin(t){this._focusEventsAllowed&&(this.#F?this.#F=!1:this.parent.setSelected(this))}focusout(t){this._focusEventsAllowed&&this.isAttachedToDOM&&!t.relatedTarget?.closest("#"+this.id)&&(t.preventDefault(),!this.parent?.isMultipleSelection)&&this.commitOrRemove()}commitOrRemove(){this.isEmpty()?this.remove():this.commit()}commit(){this.addToAnnotationStorage()}addToAnnotationStorage(){this._uiManager.addToAnnotationStorage(this)}setAt(t,e,r,i){var[s,n]=this.parentDimensions;[r,i]=this.screenToPageTranslation(r,i),this.x=(t+r)/s,this.y=(e+i)/n,this.fixAndSetPosition()}#L(t,e,r){var[t,i]=t;[e,r]=this.screenToPageTranslation(e,r),this.x+=e/t,this.y+=r/i,this.fixAndSetPosition()}translate(t,e){this.#L(this.parentDimensions,t,e)}translateInPage(t,e){this.#L(this.pageDimensions,t,e),this.div.scrollIntoView({block:"nearest"})}drag(t,e){var[r,i]=this.parentDimensions;if(this.x+=t/r,this.y+=e/i,this.parent&&(this.x<0||1{this._isDraggable=o,window.removeEventListener("pointerup",g),window.removeEventListener("blur",g),window.removeEventListener("pointermove",a,l),this.parent.div.style.cursor=p,this.div.style.cursor=f;const r=this.x,i=this.y,s=this.width,n=this.height;r===h&&i===c&&s===d&&n===u||this.addCommands({cmd:()=>{this.width=s,this.height=n,this.x=r,this.y=i;var[t,e]=this.parentDimensions;this.setDims(t*s,e*n),this.fixAndSetPosition()},undo:()=>{this.width=d,this.height=u,this.x=h,this.y=c;var[t,e]=this.parentDimensions;this.setDims(t*d,e*u),this.fixAndSetPosition()},mustExec:!0})});window.addEventListener("pointerup",g),window.addEventListener("blur",g)}}#W(t,e){const[r,i]=this.parentDimensions,s=this.x,n=this.y,a=this.width,o=this.height,l=C.MIN_SIZE/r,h=C.MIN_SIZE/i,c=t=>Math.round(1e4*t)/1e4,d=this.#j(this.rotation),u=(t,e)=>[d[0]*t+d[2]*e,d[1]*t+d[3]*e],p=this.#j(360-this.rotation);let f,g,m=!1,v=!1;switch(t){case"topLeft":m=!0,f=(t,e)=>[0,0],g=(t,e)=>[t,e];break;case"topMiddle":f=(t,e)=>[t/2,0],g=(t,e)=>[t/2,e];break;case"topRight":m=!0,f=(t,e)=>[t,0],g=(t,e)=>[0,e];break;case"middleRight":v=!0,f=(t,e)=>[t,e/2],g=(t,e)=>[0,e/2];break;case"bottomRight":m=!0,f=(t,e)=>[t,e],g=(t,e)=>[0,0];break;case"bottomMiddle":f=(t,e)=>[t/2,e],g=(t,e)=>[t/2,0];break;case"bottomLeft":m=!0,f=(t,e)=>[0,e],g=(t,e)=>[t,0];break;case"middleLeft":v=!0,f=(t,e)=>[0,e/2],g=(t,e)=>[t,e/2]}var _=f(a,o),b=g(a,o),t=u(...b),y=c(s+t[0]),A=c(n+t[1]);let S=1,x=1,[w,E]=this.screenToPageTranslation(e.movementX,e.movementY);if([w,E]=[p[0]*(e=w/r)+p[2]*(T=E/i),p[1]*e+p[3]*T],m){const t=Math.hypot(a,o);S=x=Math.max(Math.min(Math.hypot(b[0]-_[0]-w,b[1]-_[1]-E)/t,1/a,1/o),l/a,h/o)}else v?S=Math.max(l,Math.min(1,Math.abs(b[0]-_[0]-w)))/a:x=Math.max(h,Math.min(1,Math.abs(b[1]-_[1]-E)))/o;var e=c(a*S),T=c(o*x),b=y-(t=u(...g(e,T)))[0],_=A-t[1];this.width=e,this.height=T,this.x=b,this.y=_,this.setDims(r*e,i*T),this.fixAndSetPosition()}async addAltTextButton(){if(!this.#x){const e=this.#x=document.createElement("button"),t=(e.className="altText",await C._l10nPromise.get("editor_alt_text_button_label"));if(e.textContent=t,e.setAttribute("aria-label",t),e.tabIndex="0",e.addEventListener("contextmenu",s.noContextMenu),e.addEventListener("pointerdown",t=>t.stopPropagation()),e.addEventListener("click",t=>{t.preventDefault(),this._uiManager.editAltText(this)},{capture:!0}),e.addEventListener("keydown",t=>{t.target===e&&"Enter"===t.key&&(t.preventDefault(),this._uiManager.editAltText(this))}),this.#H(),this.div.append(e),!C.SMALL_EDITOR_SIZE){const t=40;C.SMALL_EDITOR_SIZE=Math.min(128,Math.round(1.4*e.getBoundingClientRect().width))}}}async#H(){const e=this.#x;if(e)if(this.#S||this.#E){C._l10nPromise.get("editor_alt_text_edit_button_label").then(t=>{e.setAttribute("aria-label",t)});let t=this.#w;if(!t){this.#w=t=document.createElement("span"),t.className="tooltip",t.setAttribute("role","tooltip");var r=t.id="alt-text-tooltip-"+this.id;e.setAttribute("aria-describedby",r);e.addEventListener("mouseenter",()=>{this.#C=setTimeout(()=>{this.#C=null,this.#w.classList.add("show"),this._uiManager._eventBus.dispatch("reporttelemetry",{source:this,details:{type:"editing",subtype:this.editorType,data:{action:"alt_text_tooltip"}}})},100)}),e.addEventListener("mouseleave",()=>{clearTimeout(this.#C),this.#C=null,this.#w?.classList.remove("show")})}e.classList.add("done"),t.innerText=this.#E?await C._l10nPromise.get("editor_alt_text_decorative_tooltip"):this.#S,t.parentNode||e.append(t)}else e.classList.remove("done"),this.#w?.remove()}getClientDimensions(){return this.div.getBoundingClientRect()}get altTextData(){return{altText:this.#S,decorative:this.#E}}set altTextData(t){var{altText:t,decorative:e}=t;this.#S===t&&this.#E===e||(this.#S=t,this.#E=e,this.#H())}render(){this.div=document.createElement("div"),this.div.setAttribute("data-editor-rotation",(360-this.rotation)%360),this.div.className=this.name,this.div.setAttribute("id",this.id),this.div.setAttribute("tabIndex",0),this.setInForeground(),this.div.addEventListener("focusin",this.#k),this.div.addEventListener("focusout",this.#M);var[t,e]=this.parentDimensions,[t,e]=(this.parentRotation%180!=0&&(this.div.style.maxWidth=(100*e/t).toFixed(2)+"%",this.div.style.maxHeight=(100*t/e).toFixed(2)+"%"),this.getInitialTranslation());return this.translate(t,e),(0,i.bindEvents)(this,this.div,["pointerdown"]),this.div}pointerdown(t){var e=m.FeatureTest.platform["isMac"];0!==t.button||t.ctrlKey&&e?t.preventDefault():(this.#F=!0,this.#q(t))}#q(r){if(this._isDraggable){const i=this._uiManager.isSelected(this);this._uiManager.setUpDragSession();let t,e;i&&(t={passive:!0,capture:!0},e=t=>{var[t,e]=this.screenToPageTranslation(t.movementX,t.movementY);this._uiManager.dragSelectedEditors(t,e)},window.addEventListener("pointermove",e,t));const s=()=>{if(window.removeEventListener("pointerup",s),window.removeEventListener("blur",s),i&&window.removeEventListener("pointermove",e,t),this.#F=!1,!this._uiManager.endDragSession()){const i=m.FeatureTest.platform["isMac"];r.ctrlKey&&!i||r.shiftKey||r.metaKey&&i?this.parent.toggleSelected(this):this.parent.setSelected(this)}};window.addEventListener("pointerup",s),window.addEventListener("blur",s)}}moveInDOM(){this.parent?.moveEditorInDOM(this)}_setParentAndPosition(t,e,r){t.changeParent(this),this.x=e,this.y=r,this.fixAndSetPosition()}getRect(t,e){var r=this.parentScale,[i,s]=this.pageDimensions,[n,a]=this.pageTranslation,o=t/r,l=e/r,h=this.x*i,c=this.y*s,d=this.width*i,u=this.height*s;switch(this.rotation){case 0:return[h+o+n,s-c-l-u+a,h+o+d+n,s-c-l+a];case 90:return[h+l+n,s-c+o+a,h+l+u+n,s-c+o+d+a];case 180:return[h-o-d+n,s-c+l+a,h-o+n,s-c+l+u+a];case 270:return[h-l-u+n,s-c-o-d+a,h-l+n,s-c-o+a];default:throw new Error("Invalid rotation")}}getRectInCurrentCoords(t,e){var[r,i,s,n]=t,a=s-r,o=n-i;switch(this.rotation){case 0:return[r,e-n,a,o];case 90:return[r,e-i,o,a];case 180:return[s,e-i,a,o];case 270:return[s,e-n,o,a];default:throw new Error("Invalid rotation")}}onceAdded(){}isEmpty(){return!1}enableEditMode(){this.#D=!0}disableEditMode(){this.#D=!1}isInEditMode(){return this.#D}shouldGetKeyboardEvents(){return!1}needsToBeRebuilt(){return this.div&&!this.isAttachedToDOM}rebuild(){this.div?.addEventListener("focusin",this.#k),this.div?.addEventListener("focusout",this.#M)}serialize(){(0,m.unreachable)("An editor must be serializable")}static deserialize(t,e,r){var e=new this.prototype.constructor({parent:e,id:e.getNextId(),uiManager:r}),[r,i]=(e.rotation=t.rotation,e.pageDimensions),[t,s,n,a]=e.getRectInCurrentCoords(t.rect,i);return e.x=t/r,e.y=s/i,e.width=n/r,e.height=a/i,e}remove(){this.div.removeEventListener("focusin",this.#k),this.div.removeEventListener("focusout",this.#M),this.isEmpty()||this.commit(),this.parent?this.parent.remove(this):this._uiManager.removeEditor(this),this.#x?.remove(),this.#x=null,this.#w=null}get isResizable(){return!1}makeResizable(){this.isResizable&&(this.#U(),this.#P.classList.remove("hidden"))}select(){this.makeResizable(),this.div?.classList.add("selectedEditor")}unselect(){this.#P?.classList.add("hidden"),this.div?.classList.remove("selectedEditor"),this.div?.contains(document.activeElement)&&this._uiManager.currentLayer.div.focus()}updateParams(t,e){}disableEditing(){this.#x&&(this.#x.hidden=!0)}enableEditing(){this.#x&&(this.#x.hidden=!1)}enterInEditMode(){}get contentDiv(){return this.div}get isEditing(){return this.#R}set isEditing(t){this.#R=t,this.parent&&(t?(this.parent.setSelected(this),this.parent.setActiveEditor(this)):this.parent.setActiveEditor(null))}setAspectRatio(t,e){this.#T=!0;var r=this.div["style"];r.aspectRatio=t/e,r.height="auto"}static get MIN_SIZE(){return 16}}class n extends(e.AnnotationEditor=C){constructor(t){super(t),this.annotationElementId=t.annotationElementId,this.deleted=!0}serialize(){return{id:this.annotationElementId,deleted:!0,pageIndex:this.pageIndex}}}},(t,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.KeyboardManager=e.CommandManager=e.ColorManager=e.AnnotationEditorUIManager=void 0,e.bindEvents=function(t,e,r){for(const i of r)e.addEventListener(i,t[i].bind(t))},e.opacityToHex=function(t){return Math.round(Math.min(255,Math.max(1,255*t))).toString(16).padStart(2,"0")},r(93),r(101),r(102),r(105),r(107),r(109),r(113),r(116),r(123),r(2),r(89),r(125),r(136),r(138),r(141),r(143),r(145),r(147),r(166);var n=r(1),a=r(168);class i{#G=0;getId(){return""+n.AnnotationEditorPrefix+this.#G++}}class o{#V=(0,n.getUuid)();#G=0;#$=null;static get _isSVGFittingCanvas(){const t=new OffscreenCanvas(1,3).getContext("2d"),e=new Image;e.src='data:image/svg+xml;charset=UTF-8,';var r=e.decode().then(()=>(t.drawImage(e,0,0,1,1,0,0,1,3),0===new Uint32Array(t.getImageData(0,0,1,1).data.buffer)[0]));return(0,n.shadow)(this,"_isSVGFittingCanvas",r)}async#X(t,r){this.#$||=new Map;let i=this.#$.get(t);if(null===i)return null;if(i?.bitmap)i.refCounter+=1;else{try{i||={bitmap:null,id:`image_${this.#V}_`+this.#G++,refCounter:0,isSvg:!1};let t;if("string"==typeof r){i.url=r;var e=await fetch(r);if(!e.ok)throw new Error(e.statusText);t=await e.blob()}else t=i.file=r;if("image/svg+xml"===t.type){const r=o._isSVGFittingCanvas,s=new FileReader,n=new Image,a=new Promise((t,e)=>{n.onload=()=>{i.bitmap=n,i.isSvg=!0,t()},s.onload=async()=>{var t=i.svgUrl=s.result;n.src=await r?t+"#svgView(preserveAspectRatio(none))":t},n.onerror=s.onerror=e});s.readAsDataURL(t),await a}else i.bitmap=await createImageBitmap(t);i.refCounter=1}catch(t){console.error(t),i=null}this.#$.set(t,i),i&&this.#$.set(i.id,i)}return i}async getFromFile(t){var{lastModified:e,name:r,size:i,type:s}=t;return this.#X(e+`_${r}_${i}_`+s,t)}async getFromUrl(t){return this.#X(t,t)}async getFromId(t){this.#$||=new Map;t=this.#$.get(t);return t?t.bitmap?(t.refCounter+=1,t):t.file?this.getFromFile(t.file):this.getFromUrl(t.url):null}getSvgUrl(t){t=this.#$.get(t);return t?.isSvg?t.svgUrl:null}deleteId(t){this.#$||=new Map;t=this.#$.get(t);t&&(--t.refCounter,0===t.refCounter)&&(t.bitmap=null)}isValidId(t){return t.startsWith(`image_${this.#V}_`)}}class s{#K=[];#Y=!1;#J;#Q=-1;constructor(){this.#J=0t===r[e]))return h._colorsMapping.get(t);return r}getHexCode(t){var e=this._colors.get(t);return e?n.Util.makeHexColor(...e):t}}e.ColorManager=h;class c{#tt=null;#et=new Map;#nt=new Map;#it=null;#rt=null;#st=new s;#at=0;#ot=new Set;#lt=null;#ct=null;#ht=new Set;#dt=null;#ut=new i;#pt=!1;#ft=!1;#gt=null;#mt=n.AnnotationEditorType.NONE;#bt=new Set;#vt=null;#yt=this.blur.bind(this);#_t=this.focus.bind(this);#At=this.copy.bind(this);#St=this.cut.bind(this);#Et=this.paste.bind(this);#xt=this.keydown.bind(this);#wt=this.onEditingAction.bind(this);#Ct=this.onPageChanging.bind(this);#Tt=this.onScaleChanging.bind(this);#Pt=this.onRotationChanging.bind(this);#kt={isEditing:!1,isEmpty:!0,hasSomethingToUndo:!1,hasSomethingToRedo:!1,hasSelectedEditor:!1};#Mt=[0,0];#Ft=null;#Rt=null;#Dt=null;static TRANSLATE_SMALL=1;static TRANSLATE_BIG=10;static get _keyboardManager(){var t=c.prototype,e=t=>{var e=document["activeElement"];return e&&t.#Rt.contains(e)&&t.hasSomethingToControl()},r=this.TRANSLATE_SMALL,i=this.TRANSLATE_BIG;return(0,n.shadow)(this,"_keyboardManager",new l([[["ctrl+a","mac+meta+a"],t.selectAll],[["ctrl+z","mac+meta+z"],t.undo],[["ctrl+y","ctrl+shift+z","mac+meta+shift+z","ctrl+shift+Z","mac+meta+shift+Z"],t.redo],[["Backspace","alt+Backspace","ctrl+Backspace","shift+Backspace","mac+Backspace","mac+alt+Backspace","mac+ctrl+Backspace","Delete","ctrl+Delete","shift+Delete","mac+Delete"],t.delete],[["Escape","mac+Escape"],t.unselectAll],[["ArrowLeft","mac+ArrowLeft"],t.translateSelectedEditors,{args:[-r,0],checker:e}],[["ctrl+ArrowLeft","mac+shift+ArrowLeft"],t.translateSelectedEditors,{args:[-i,0],checker:e}],[["ArrowRight","mac+ArrowRight"],t.translateSelectedEditors,{args:[r,0],checker:e}],[["ctrl+ArrowRight","mac+shift+ArrowRight"],t.translateSelectedEditors,{args:[i,0],checker:e}],[["ArrowUp","mac+ArrowUp"],t.translateSelectedEditors,{args:[0,-r],checker:e}],[["ctrl+ArrowUp","mac+shift+ArrowUp"],t.translateSelectedEditors,{args:[0,-i],checker:e}],[["ArrowDown","mac+ArrowDown"],t.translateSelectedEditors,{args:[0,r],checker:e}],[["ctrl+ArrowDown","mac+shift+ArrowDown"],t.translateSelectedEditors,{args:[0,i],checker:e}]]))}constructor(t,e,r,i,s,n){this.#Rt=t,this.#Dt=e,this.#it=r,this._eventBus=i,this._eventBus._on("editingaction",this.#wt),this._eventBus._on("pagechanging",this.#Ct),this._eventBus._on("scalechanging",this.#Tt),this._eventBus._on("rotationchanging",this.#Pt),this.#rt=s.annotationStorage,this.#dt=s.filterFactory,this.#vt=n,this.viewParameters={realScale:a.PixelsPerInch.PDF_TO_CSS_UNITS,rotation:0}}destroy(){this.#It(),this.#Ot(),this._eventBus._off("editingaction",this.#wt),this._eventBus._off("pagechanging",this.#Ct),this._eventBus._off("scalechanging",this.#Tt),this._eventBus._off("rotationchanging",this.#Pt);for(const t of this.#nt.values())t.destroy();this.#nt.clear(),this.#et.clear(),this.#ht.clear(),this.#tt=null,this.#bt.clear(),this.#st.destroy(),this.#it.destroy()}get hcmFilter(){return(0,n.shadow)(this,"hcmFilter",this.#vt?this.#dt.addHCMFilter(this.#vt.foreground,this.#vt.background):"none")}get direction(){return(0,n.shadow)(this,"direction",getComputedStyle(this.#Rt).direction)}editAltText(t){this.#it?.editAltText(this,t)}onPageChanging(t){t=t.pageNumber;this.#at=t-1}focusMainContainer(){this.#Rt.focus()}findParent(t,e){for(const a of this.#nt.values()){var{x:r,y:i,width:s,height:n}=a.div.getBoundingClientRect();if(r<=t&&t<=r+s&&i<=e&&e<=i+n)return a}return null}disableUserSelect(){this.#Dt.classList.toggle("noUserSelect",0{t._focusEventsAllowed=!0},{once:!0}),e.focus()}}#Nt(){window.addEventListener("keydown",this.#xt,{capture:!0})}#It(){window.removeEventListener("keydown",this.#xt,{capture:!0})}#Bt(){document.addEventListener("copy",this.#At),document.addEventListener("cut",this.#St),document.addEventListener("paste",this.#Et)}#jt(){document.removeEventListener("copy",this.#At),document.removeEventListener("cut",this.#St),document.removeEventListener("paste",this.#Et)}addEditListeners(){this.#Nt(),this.#Bt()}removeEditListeners(){this.#It(),this.#jt()}copy(t){if(t.preventDefault(),this.#tt?.commitOrRemove(),this.hasSelection){var e=[];for(const t of this.#bt){var r=t.serialize(!0);r&&e.push(r)}0!==e.length&&t.clipboardData.setData("application/pdfjs",JSON.stringify(e))}}cut(t){this.copy(t),this.delete()}paste(e){e.preventDefault();const t=e["clipboardData"];for(const e of t.items)for(const t of this.#ct)if(t.isHandlingMimeForPasting(e.type))return void t.paste(e,this.currentLayer);let r=t.getData("application/pdfjs");if(r){try{r=JSON.parse(r)}catch(e){return void(0,n.warn)(`paste: "${e.message}".`)}if(Array.isArray(r)){this.unselectAll();var i=this.currentLayer;try{const e=[];for(const t of r){const r=i.deserialize(t);if(!r)return;e.push(r)}this.addCommands({cmd:()=>{for(const t of e)this.#Ut(t);this.#zt(e)},undo:()=>{for(const t of e)t.remove()},mustExec:!0})}catch(e){(0,n.warn)(`paste: "${e.message}".`)}}}}keydown(t){this.getActive()?.shouldGetKeyboardEvents()||c._keyboardManager.exec(this,t)}onEditingAction(t){["undo","redo","delete","selectAll"].includes(t.name)&&this[t.name]()}#Wt(t){Object.entries(t).some(t=>{var[t,e]=t;return this.#kt[t]!==e})&&this._eventBus.dispatch("annotationeditorstateschanged",{source:this,details:Object.assign(this.#kt,t)})}#Ht(t){this._eventBus.dispatch("annotationeditorparamschanged",{source:this,details:t})}setEditingState(t){t?(this.#Lt(),this.#Nt(),this.#Bt(),this.#Wt({isEditing:this.#mt!==n.AnnotationEditorType.NONE,isEmpty:this.#qt(),hasSomethingToUndo:this.#st.hasSomethingToUndo(),hasSomethingToRedo:this.#st.hasSomethingToRedo(),hasSelectedEditor:!1})):(this.#Ot(),this.#It(),this.#jt(),this.#Wt({isEditing:!1}),this.disableUserSelect(!1))}registerEditorTypes(t){if(!this.#ct){this.#ct=t;for(const t of this.#ct)this.#Ht(t.defaultPropertiesToUpdate)}}getId(){return this.#ut.getId()}get currentLayer(){return this.#nt.get(this.#at)}getLayer(t){return this.#nt.get(t)}get currentPageIndex(){return this.#at}addLayer(t){this.#nt.set(t.pageIndex,t),this.#pt?t.enable():t.disable()}removeLayer(t){this.#nt.delete(t.pageIndex)}updateMode(t){let e=1{for(const t of e)t.remove()},undo:()=>{for(const t of e)this.#Ut(t)},mustExec:!0})}}commitOrRemove(){this.#tt?.commitOrRemove()}hasSomethingToControl(){return this.#tt||this.hasSelection}#zt(t){this.#bt.clear();for(const e of t)e.isEmpty()||(this.#bt.add(e),e.select());this.#Wt({hasSelectedEditor:!0})}selectAll(){for(const t of this.#bt)t.commit();this.#zt(this.#et.values())}unselectAll(){if(this.#tt)this.#tt.commitOrRemove();else if(this.hasSelection){for(const t of this.#bt)t.unselect();this.#bt.clear(),this.#Wt({hasSelectedEditor:!1})}}translateSelectedEditors(t,e){if(2{this.#Ft=null,this.#Mt[0]=this.#Mt[1]=0,this.addCommands({cmd:()=>{for(const t of s)this.#et.has(t.id)&&t.translateInPage(r,i)},undo:()=>{for(const t of s)this.#et.has(t.id)&&t.translateInPage(-r,-i)},mustExec:!1})},1e3);for(const r of s)r.translateInPage(t,e)}}setUpDragSession(){if(this.hasSelection){this.disableUserSelect(!0),this.#lt=new Map;for(const t of this.#bt)this.#lt.set(t,{savedX:t.x,savedY:t.y,savedPageIndex:t.pageIndex,newX:0,newY:0,newPageIndex:-1})}}endDragSession(){if(!this.#lt)return!1;this.disableUserSelect(!1);const s=this.#lt;this.#lt=null;let t=!1;for(var[{x:e,y:r,pageIndex:i},n]of s)n.newX=e,n.newY=r,n.newPageIndex=i,t||=e!==n.savedX||r!==n.savedY||i!==n.savedPageIndex;if(!t)return!1;const a=(t,e,r,i)=>{var s;this.#et.has(t.id)&&((s=this.#nt.get(i))?t._setParentAndPosition(s,e,r):(t.pageIndex=i,t.x=e,t.y=r))};return this.addCommands({cmd:()=>{for(var[t,{newX:e,newY:r,newPageIndex:i}]of s)a(t,e,r,i)},undo:()=>{for(var[t,{savedX:e,savedY:r,savedPageIndex:i}]of s)a(t,e,r,i)},mustExec:!0}),!0}dragSelectedEditors(t,e){if(this.#lt)for(const r of this.#lt.keys())r.drag(t,e)}rebuild(t){var e;null===t.parent?(e=this.getLayer(t.pageIndex))?(e.changeParent(t),e.addOrRebuild(t)):(this.addEditor(t),this.addToAnnotationStorage(t),t.rebuild()):t.parent.addOrRebuild(t)}isActive(t){return this.#tt===t}getActive(){return this.#tt}getMode(){return this.#mt}get imageManager(){return(0,n.shadow)(this,"imageManager",new o)}}e.AnnotationEditorUIManager=c},(t,L,e)=>{function f(t,e,r,i){var s,n,a,o,l,h=t[e],c=i&&h===i.value,d=c&&"string"==typeof i.source?{source:i.source}:{};if(v(h)){var u=_(h),p=c?i.nodes:u?[]:{};if(u)for(s=p.length,a=y(h),o=0;o{var i=r(14),a=r(39),o=SyntaxError,l=parseInt,h=String.fromCharCode,c=i("".charAt),d=i("".slice),u=i(/./.exec),p={'\\"':'"',"\\\\":"\\","\\/":"/","\\b":"\b","\\f":"\f","\\n":"\n","\\r":"\r","\\t":"\t"},f=/^[\da-f]{4}$/i,g=/^[\u0000-\u001F]$/;t.exports=function(t,e){for(var r=!0,i="";e{Object.defineProperty(e,"__esModule",{value:!0}),e.StatTimer=e.RenderingCancelledException=e.PixelsPerInch=e.PageViewport=e.PDFDateString=e.DOMStandardFontDataFactory=e.DOMSVGFactory=e.DOMFilterFactory=e.DOMCanvasFactory=e.DOMCMapReaderFactory=void 0,e.deprecated=function(t){console.log("Deprecated API usage: "+t)},e.getColorValues=function(t){var e=document.createElement("span");e.style.visibility="hidden",document.body.append(e);for(const i of t.keys()){e.style.color=i;var r=window.getComputedStyle(e).color;t.set(i,_(r))}e.remove()},e.getCurrentTransform=function(t){var{a:t,b:e,c:r,d:i,e:s,f:n}=t.getTransform();return[t,e,r,i,s,n]},e.getCurrentTransformInverse=function(t){var{a:t,b:e,c:r,d:i,e:s,f:n}=t.getTransform().invertSelf();return[t,e,r,i,s,n]},e.getFilenameFromUrl=function(t){return 1{const r=document.createElement("script");r.src=i,r.onload=function(t){s&&r.remove(),e(t)},r.onerror=function(){t(new Error("Cannot load script at: "+r.src))},(document.head||document.documentElement).append(r)})},e.noContextMenu=function(t){t.preventDefault()},e.setLayerDimensions=function(t,e){let r=2{var r=n[t]/255,i=a[t]/255,s=new Array(e+1);for(let t=0;t<=e;t++)s[t]=r+t/e*(i-r);return s.join(",")});this.#re(r(0,5),r(1,5),r(2,5),e),this.#Qt=`url(#${t})`}}return this.#Qt}addHighlightHCMFilter(r,i,s,n){var a=r+`-${i}-${s}-`+n;if(this.#te!==a&&(this.#te=a,this.#ee="none",this.#Zt?.remove(),r)&&i){var[a,r]=[r,i].map(this.#se.bind(this));let l=Math.round(.2126*a[0]+.7152*a[1]+.0722*a[2]),h=Math.round(.2126*r[0]+.7152*r[1]+.0722*r[2]),[t,e]=[s,n].map(this.#se.bind(this));h{var i=new Array(256),s=(h-l)/r,n=t/255,a=(e-t)/(255*r);let o=0;for(let t=0;t<=r;t++){const e=Math.round(l+t*s),r=n+t*a;for(let t=o;t<=e;t++)i[t]=r;o=e+1}for(let t=o;t<256;t++)i[t]=i[o-1];return i.join(",")},a=`g_${this.#e}_hcm_highlight_filter`,r=this.#Zt=this.#ie(a);this.#ae(r),this.#re(i(t[0],e[0],5),i(t[1],e[1],5),i(t[2],e[2],5),r),this.#ee=`url(#${a})`}return this.#ee}destroy(){0{const r=new XMLHttpRequest;r.open("GET",i,!0),s&&(r.responseType="arraybuffer"),r.onreadystatechange=()=>{if(r.readyState===XMLHttpRequest.DONE){if(200===r.status||0===r.status){let t;if(s&&r.response?t=new Uint8Array(r.response):!s&&r.responseText&&(t=(0,d.stringToBytes)(r.responseText)),t)return void e(t)}t(new Error(r.statusText))}},r.send(null)})}e.DOMCanvasFactory=o;class h extends i.BaseCMapReaderFactory{_fetchData(t,e){return l(t,this.isCompressed).then(t=>({cMapData:t,compressionType:e}))}}e.DOMCMapReaderFactory=h;class c extends i.BaseStandardFontDataFactory{_fetchData(t){return l(t,!0)}}e.DOMStandardFontDataFactory=c;class u extends i.BaseSVGFactory{_createSVG(t){return document.createElementNS(n,t)}}e.DOMSVGFactory=u;class p{constructor(t){let{viewBox:e,scale:r,rotation:i,offsetX:s=0,offsetY:n=0,dontFlip:a=!1}=t;this.viewBox=e,this.scale=r,this.rotation=i,this.offsetX=s,this.offsetY=n;var t=(e[2]+e[0])/2,o=(e[3]+e[1])/2;let l,h,c,d,u,p,f,g;switch((i%=360)<0&&(i+=360),i){case 180:l=-1,h=0,c=0,d=1;break;case 90:l=0,h=1,c=1,d=0;break;case 270:l=0,h=-1,c=-1,d=0;break;case 0:l=1,h=0,c=0,d=-1;break;default:throw new Error("PageViewport: Invalid rotation, must be a multiple of 90 degrees.")}a&&(c=-c,d=-d),g=0===l?(u=Math.abs(o-e[1])*r+s,p=Math.abs(t-e[0])*r+n,f=(e[3]-e[1])*r,(e[2]-e[0])*r):(u=Math.abs(t-e[0])*r+s,p=Math.abs(o-e[1])*r+n,f=(e[2]-e[0])*r,(e[3]-e[1])*r),this.transform=[l*r,h*r,c*r,d*r,u-l*r*t-c*r*o,p-h*r*t-d*r*o],this.width=f,this.height=g}get rawDims(){var t=this["viewBox"];return(0,d.shadow)(this,"rawDims",{pageWidth:t[2]-t[0],pageHeight:t[3]-t[1],pageX:t[0],pageY:t[1]})}clone(){var{scale:t=this.scale,rotation:e=this.rotation,offsetX:r=this.offsetX,offsetY:i=this.offsetY,dontFlip:s=!1}=0>16,(65280&e)>>8,255&e]:t.startsWith("rgb(")?t.slice(4,-1).split(",").map(t=>parseInt(t)):t.startsWith("rgba(")?t.slice(5,-1).split(",").map(t=>parseInt(t)).slice(0,3):((0,d.warn)(`Not a valid color format: "${t}"`),[0,0,0])}e.PDFDateString=class{static toDateObject(t){if(!t||"string"!=typeof t)return null;t=(v||=new RegExp("^D:(\\d{4})(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?([Z|+|-])?(\\d{2})?'?(\\d{2})?'?")).exec(t);if(!t)return null;var e=parseInt(t[1],10),r=1<=(r=parseInt(t[2],10))&&r<=12?r-1:0,i=1<=(i=parseInt(t[3],10))&&i<=31?i:1;let s=parseInt(t[4],10),n=(s=0<=s&&s<=23?s:0,parseInt(t[5],10));n=0<=n&&n<=59?n:0;var a=0<=(a=parseInt(t[6],10))&&a<=59?a:0,o=t[7]||"Z",l=0<=(l=parseInt(t[8],10))&&l<=23?l:0,t=0<=(t=parseInt(t[9],10)||0)&&t<=59?t:0;return"-"===o?(s+=l,n+=t):"+"===o&&(s-=l,n-=t),new Date(Date.UTC(e,r,i,s,n,a))}}},(t,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.BaseStandardFontDataFactory=e.BaseSVGFactory=e.BaseFilterFactory=e.BaseCanvasFactory=e.BaseCMapReaderFactory=void 0,r(2);var i=r(1);e.BaseFilterFactory=class s{constructor(){this.constructor===s&&(0,i.unreachable)("Cannot initialize BaseFilterFactory.")}addFilter(t){return"none"}addHCMFilter(t,e){return"none"}addHighlightHCMFilter(t,e,r,i){return"none"}destroy(){}};e.BaseCanvasFactory=class n{constructor(){this.constructor===n&&(0,i.unreachable)("Cannot initialize BaseCanvasFactory.")}create(t,e){if(t<=0||e<=0)throw new Error("Invalid canvas size");return{canvas:t=this._createCanvas(t,e),context:t.getContext("2d")}}reset(t,e,r){if(!t.canvas)throw new Error("Canvas is not specified");if(e<=0||r<=0)throw new Error("Invalid canvas size");t.canvas.width=e,t.canvas.height=r}destroy(t){if(!t.canvas)throw new Error("Canvas is not specified");t.canvas.width=0,t.canvas.height=0,t.canvas=null,t.context=null}_createCanvas(t,e){(0,i.unreachable)("Abstract method `_createCanvas` called.")}};e.BaseCMapReaderFactory=class a{constructor(t){var{baseUrl:t=null,isCompressed:e=!0}=t;this.constructor===a&&(0,i.unreachable)("Cannot initialize BaseCMapReaderFactory."),this.baseUrl=t,this.isCompressed=e}async fetch(t){if(t=t.name,!this.baseUrl)throw new Error('The CMap "baseUrl" parameter must be specified, ensure that the "cMapUrl" and "cMapPacked" API parameters are provided.');if(!t)throw new Error("CMap name must be specified.");const e=this.baseUrl+t+(this.isCompressed?".bcmap":""),r=this.isCompressed?i.CMapCompressionType.BINARY:i.CMapCompressionType.NONE;return this._fetchData(e,r).catch(t=>{throw new Error(`Unable to load ${this.isCompressed?"binary ":""}CMap at: `+e)})}_fetchData(t,e){(0,i.unreachable)("Abstract method `_fetchData` called.")}};e.BaseStandardFontDataFactory=class o{constructor(t){var{baseUrl:t=null}=t;this.constructor===o&&(0,i.unreachable)("Cannot initialize BaseStandardFontDataFactory."),this.baseUrl=t}async fetch(t){if(t=t.filename,!this.baseUrl)throw new Error('The standard font "baseUrl" parameter must be specified, ensure that the "standardFontDataUrl" API parameter is provided.');if(!t)throw new Error("Font filename must be specified.");const e=""+this.baseUrl+t;return this._fetchData(e).catch(t=>{throw new Error("Unable to load font data at: "+e)})}_fetchData(t){(0,i.unreachable)("Abstract method `_fetchData` called.")}};e.BaseSVGFactory=class l{constructor(){this.constructor===l&&(0,i.unreachable)("Cannot initialize BaseSVGFactory.")}create(t,e){var r=2{Object.defineProperty(e,"__esModule",{value:!0}),e.MurmurHash3_64=void 0,r(93),r(101),r(102),r(105),r(107),r(109),r(113),r(116),r(123),r(2);var u=r(1);const i=3285377520,p=4294901760,f=65535;e.MurmurHash3_64=class{constructor(t){this.h1=t?4294967295&t:i,this.h2=t?4294967295&t:i}update(r){let i,s;if("string"==typeof r){i=new Uint8Array(2*r.length);for(let t=s=0,e=r.length;t>>8,i[s++]=255&n)}}else{if(!(0,u.isArrayBuffer)(r))throw new Error("Wrong data format in MurmurHash3_64_update. Input must be a string or array.");i=r.slice(),s=i.byteLength}const n=s>>2,t=s-4*n,e=new Uint32Array(i.buffer,0,n);let a=0,o,l=this.h1,h=this.h2;var c=3432918353,d=461845907;for(let t=0;t>>17)*d&p|13715*a&f,l=5*(l=(l^=a)<<13|l>>>19)+3864292196):(o=(o=(o=(o=e[t])*c&p|11601*o&f)<<15|o>>>17)*d&p|13715*o&f,h=5*(h=(h^=o)<<13|h>>>19)+3864292196);switch(a=0,t){case 3:a^=i[4*n+2]<<16;case 2:a^=i[4*n+1]<<8;case 1:a=(a=(a=(a^=i[4*n])*c&p|11601*a&f)<<15|a>>>17)*d&p|13715*a&f,1&n?l^=a:h^=a}this.h1=l,this.h2=h}hexdigest(){var t=this.h1,e=this.h2,t=3981806797*(t^=e>>>1)&p|36045*t&f;return t=444984403*(t^=(e=4283543511*e&p|(2950163797*(e<<16|t>>>16)&p)>>>16)>>>1)&p|60499*t&f,((t^=(e=3301882366*e&p|(3120437893*(e<<16|t>>>16)&p)>>>16)>>>1)>>>0).toString(16).padStart(8,"0")+(e>>>0).toString(16).padStart(8,"0")}}},(t,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.FontLoader=e.FontFaceObject=void 0,r(125),r(136),r(138),r(141),r(143),r(145),r(147),r(89),r(149);var p=r(1);e.FontLoader=class{#le=new Set;constructor(t){var{ownerDocument:t=globalThis.document}=t;this._document=t,this.nativeFontFaces=new Set,this.styleElement=null,this.loadingRequests=[],this.loadTestFontId=0}addNativeFontFace(t){this.nativeFontFaces.add(t),this._document.fonts.add(t)}removeNativeFontFace(t){this.nativeFontFaces.delete(t),this._document.fonts.delete(t)}insertRule(t){this.styleElement||(this.styleElement=this._document.createElement("style"),this._document.documentElement.getElementsByTagName("head")[0].append(this.styleElement));var e=this.styleElement.sheet;e.insertRule(t,e.cssRules.length)}clear(){for(const t of this.nativeFontFaces)this._document.fonts.delete(t);this.nativeFontFaces.clear(),this.#le.clear(),this.styleElement&&(this.styleElement.remove(),this.styleElement=null)}async loadSystemFont(t){if(t&&!this.#le.has(t.loadedName))if((0,p.assert)(!this.disableFontFace,"loadSystemFont shouldn't be called when `disableFontFace` is set."),this.isFontLoadingAPISupported){var{loadedName:e,src:r,style:i}=t,r=new FontFace(e,r,i);this.addNativeFontFace(r);try{await r.load(),this.#le.add(e)}catch{(0,p.warn)(`Cannot load system font: ${t.baseFontName}, installing it could help to improve PDF rendering.`),this.removeNativeFontFace(r)}}else(0,p.unreachable)("Not implemented: loadSystemFont without the Font Loading API.")}async bind(e){if(!(e.attached||e.missingFile&&!e.systemFontInfo))if(e.attached=!0,e.systemFontInfo)await this.loadSystemFont(e.systemFontInfo);else if(this.isFontLoadingAPISupported){const r=e.createNativeFontFace();if(r){this.addNativeFontFace(r);try{await r.loaded}catch(t){throw(0,p.warn)(`Failed to load font '${r.family}': '${t}'.`),e.disableFontFace=!0,t}}}else{const r=e.createFontFaceRule();r&&(this.insertRule(r),this.isSyncFontLoadingSupported||await new Promise(t=>{t=this._queueLoadingCallback(t);this._prepareFontLoadEvent(e,t)}))}}get isFontLoadingAPISupported(){var t=!!this._document?.fonts;return(0,p.shadow)(this,"isFontLoadingAPISupported",t)}get isSyncFontLoadingSupported(){let t=!1;return(p.isNodeJS||"undefined"!=typeof navigator&&/Mozilla\/5.0.*?rv:\d+.*? Gecko/.test(navigator.userAgent))&&(t=!0),(0,p.shadow)(this,"isSyncFontLoadingSupported",t)}_queueLoadingCallback(t){const e=this["loadingRequests"],r={done:!1,complete:function(){for((0,p.assert)(!r.done,"completeRequest() cannot be called twice."),r.done=!0;0{u.remove(),e.complete()})}},e.FontFaceObject=class{constructor(t,e){var{isEvalSupported:e=!0,disableFontFace:r=!1,ignoreErrors:i=!1,inspectFont:s=null}=e;this.compiledGlyphs=Object.create(null);for(const e in t)this[e]=t[e];this.isEvalSupported=!1!==e,this.disableFontFace=!0===r,this.ignoreErrors=!0===i,this._inspectFont=s}createNativeFontFace(){if(!this.data||this.disableFontFace)return null;let t;var e;return t=this.cssFontInfo?(e={weight:this.cssFontInfo.fontWeight},this.cssFontInfo.italicAngle&&(e.style=`oblique ${this.cssFontInfo.italicAngle}deg`),new FontFace(this.cssFontInfo.fontFamily,this.data,e)):new FontFace(this.loadedName,this.data,{}),this._inspectFont?.(this),t}createFontFaceRule(){if(!this.data||this.disableFontFace)return null;var e=(0,p.bytesToString)(this.data),e=`url(data:${this.mimetype};base64,${btoa(e)});`;let r;if(this.cssFontInfo){let t=`font-weight: ${this.cssFontInfo.fontWeight};`;this.cssFontInfo.italicAngle&&(t+=`font-style: oblique ${this.cssFontInfo.italicAngle}deg;`),r=`@font-face {font-family:"${this.cssFontInfo.fontFamily}";${t}src:${e}}`}else r=`@font-face {font-family:"${this.loadedName}";src:${e}}`;return this._inspectFont?.(this,e),r}getPathGenerator(t,e){if(void 0!==this.compiledGlyphs[e])return this.compiledGlyphs[e];let i;try{i=t.get(this.loadedName+"_path_"+e)}catch(t){if(this.ignoreErrors)return(0,p.warn)(`getPathGenerator - ignoring character: "${t}".`),this.compiledGlyphs[e]=function(t,e){};throw t}if(this.isEvalSupported&&p.FeatureTest.isEvalSupported){const t=[];for(const e of i){const i=void 0!==e.args?e.args.join(","):"";t.push("c.",e.cmd,"(",i,");\n")}return this.compiledGlyphs[e]=new Function("c","size",t.join(""))}return this.compiledGlyphs[e]=function(t,e){for(const r of i)"scale"===r.cmd&&(r.args=[e,-e]),t[r.cmd].apply(t,r.args)}}}},(t,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.NodeStandardFontDataFactory=e.NodeFilterFactory=e.NodeCanvasFactory=e.NodeCMapReaderFactory=void 0,r(2),r(93),r(101),r(102),r(105),r(107),r(109),r(113),r(116),r(123);var i=r(169),r=r(1);if(!globalThis.DOMMatrix&&r.isNodeJS)try{globalThis.DOMMatrix=require("canvas").DOMMatrix}catch(t){(0,r.warn)(`Cannot polyfill \`DOMMatrix\`, rendering may be broken: "${t}".`)}if(!globalThis.Path2D&&r.isNodeJS)try{var s=require("canvas")["CanvasRenderingContext2D"],n=require("path2d-polyfill")["polyfillPath2D"];globalThis.CanvasRenderingContext2D=s,n(globalThis)}catch(t){(0,r.warn)(`Cannot polyfill \`Path2D\`, rendering may be broken: "${t}".`)}function a(t){return new Promise((r,i)=>{require("fs").readFile(t,(t,e)=>{!t&&e?r(new Uint8Array(e)):i(new Error(t))})})}class o extends i.BaseFilterFactory{}e.NodeFilterFactory=o;class l extends i.BaseCanvasFactory{_createCanvas(t,e){return require("canvas").createCanvas(t,e)}}e.NodeCanvasFactory=l;class h extends i.BaseCMapReaderFactory{_fetchData(t,e){return a(t).then(t=>({cMapData:t,compressionType:e}))}}e.NodeCMapReaderFactory=h;class c extends i.BaseStandardFontDataFactory{_fetchData(t){return a(t)}}e.NodeStandardFontDataFactory=c},(t,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.CanvasGraphics=void 0,r(2),r(93),r(101),r(102),r(105),r(107),r(109),r(113),r(116),r(123),r(89);var y=r(1),M=r(168),A=r(174),d=r(175);const u=4096;class h{constructor(t){this.canvasFactory=t,this.cache=Object.create(null)}getCanvas(t,e,r){let i;return void 0!==this.cache[t]?(i=this.cache[t],this.canvasFactory.reset(i,e,r)):(i=this.canvasFactory.create(e,r),this.cache[t]=i),i}delete(t){delete this.cache[t]}clear(){for(const e in this.cache){var t=this.cache[e];this.canvasFactory.destroy(t),delete this.cache[e]}}}function v(t,e,r,i,s,n,a,o,l,h){var[c,d,u,p,f,g]=(0,M.getCurrentTransform)(t);if(0===d&&0===u){const M=a*c+f,m=Math.round(M),v=o*p+g,_=Math.round(v),b=(a+l)*c+f,y=Math.abs(Math.round(b)-m)||1,A=(o+h)*p+g,S=Math.abs(Math.round(A)-_)||1;t.setTransform(Math.sign(c),0,0,Math.sign(p),m,_),t.drawImage(e,r,i,s,n,0,0,y,S),void t.setTransform(c,d,u,p,f,g)}else if(0===c&&0===p){const M=o*u+f,x=Math.round(M),w=a*d+g,E=Math.round(w),T=(o+h)*u+f,C=Math.abs(Math.round(T)-x)||1,P=(a+l)*d+g,k=Math.abs(Math.round(P)-E)||1;t.setTransform(0,Math.sign(d),Math.sign(u),0,x,E),t.drawImage(e,r,i,s,n,0,0,k,C),void t.setTransform(c,d,u,p,f,g)}else t.drawImage(e,r,i,s,n,a,o,l,h),Math.hypot(c,d),Math.hypot(u,p)}class p{constructor(t,e){this.alphaIsShape=!1,this.fontSize=0,this.fontSizeScale=1,this.textMatrix=y.IDENTITY_MATRIX,this.textMatrixScale=1,this.fontMatrix=y.FONT_IDENTITY_MATRIX,this.leading=0,this.x=0,this.y=0,this.lineX=0,this.lineY=0,this.charSpacing=0,this.wordSpacing=0,this.textHScale=1,this.textRenderingMode=y.TextRenderingMode.FILL,this.textRise=0,this.fillColor="#000000",this.strokeColor="#000000",this.patternFill=!1,this.fillAlpha=1,this.strokeAlpha=1,this.lineWidth=1,this.activeSMask=null,this.transferMaps="none",this.startNewPathAndClipBox([0,0,t,e])}clone(){var t=Object.create(this);return t.clipBox=this.clipBox.slice(),t}setCurrentPoint(t,e){this.x=t,this.y=e}updatePathMinMax(t,e,r){[e,r]=y.Util.applyTransform([e,r],t),this.minX=Math.min(this.minX,e),this.minY=Math.min(this.minY,r),this.maxX=Math.max(this.maxX,e),this.maxY=Math.max(this.maxY,r)}updateRectMinMax(t,e){var r=y.Util.applyTransform(e,t),e=y.Util.applyTransform(e.slice(2),t);this.minX=Math.min(this.minX,r[0],e[0]),this.minY=Math.min(this.minY,r[1],e[1]),this.maxX=Math.max(this.maxX,r[0],e[0]),this.maxY=Math.max(this.maxY,r[1],e[1])}updateScalingPathMinMax(t,e){y.Util.scaleMinMax(t,e),this.minX=Math.min(this.minX,e[0]),this.maxX=Math.max(this.maxX,e[1]),this.minY=Math.min(this.minY,e[2]),this.maxY=Math.max(this.maxY,e[3])}updateCurvePathMinMax(t,e,r,i,s,n,a,o,l,h){e=y.Util.bezierBoundingBox(e,r,i,s,n,a,o,l);h?(h[0]=Math.min(h[0],e[0],e[2]),h[1]=Math.max(h[1],e[0],e[2]),h[2]=Math.min(h[2],e[1],e[3]),h[3]=Math.max(h[3],e[1],e[3])):this.updateRectMinMax(t,e)}getPathBoundingBox(){let t=0>2),t=c.length,m=d+7>>3,v=4294967295,_=y.FeatureTest.isLittleEndian?4278190080:255;for(e=0;em?d:8*a-7,p=-8&u;let e=0,r=0;for(;t>=1}for(;i=p&&(n=u,t=d*n),i=0,r=t;r--;)h[i++]=l[s++],h[i++]=l[s++],h[i++]=l[s++],h[i++]=255;a.putImageData(g,0,16*e)}}}}function _(r,t){if(t.bitmap)r.drawImage(t.bitmap,0,0);else{const n=t.height,a=t.width,o=n%16,l=(n-o)/16,h=0==o?l:1+l,c=r.createImageData(a,16);let e=0;var i=t.data,s=c.data;for(let t=0;t>8]>>8:r[t]*s>>16}}function b(t,e){var t=y.Util.singularValueDecompose2dScale(t),r=(t[0]=Math.fround(t[0]),t[1]=Math.fround(t[1]),Math.fround((globalThis.devicePixelRatio||1)*M.PixelsPerInch.PDF_TO_CSS_UNITS));return void 0!==e?e:t[0]<=r||t[1]<=r}const i=["butt","round","square"],s=["miter","round","bevel"],n={},o={};class l{constructor(t,e,r,i,s,n,a,o){var{optionalContentConfig:n,markedContentStack:l=null}=n;this.ctx=t,this.current=new p(this.ctx.canvas.width,this.ctx.canvas.height),this.stateStack=[],this.pendingClip=null,this.pendingEOFill=!1,this.res=null,this.xobjs=null,this.commonObjs=e,this.objs=r,this.canvasFactory=i,this.filterFactory=s,this.groupStack=[],this.processingType3=null,this.baseTransform=null,this.baseTransformStack=[],this.groupLevel=0,this.smaskStack=[],this.smaskCounter=0,this.tempSMask=null,this.suspendedCtx=null,this.contentVisible=!0,this.markedContentStack=l||[],this.optionalContentConfig=n,this.cachedCanvases=new h(this.canvasFactory),this.cachedPatterns=new Map,this.annotationCanvasMap=a,this.viewportScale=1,this.outputScaleX=1,this.outputScaleY=1,this.pageColors=o,this._cachedScaleForStroking=[-1,0],this._cachedGetSinglePixelWidth=null,this._cachedBitmapsMap=new Map}getObject(t){var e=1h)return r(),a;c=0}}}#ce(){for(;this.stateStack.length||this.inSMaskMode;)this.restore();this.ctx.restore(),this.transparentCanvas&&(this.ctx=this.compositeCtx,this.ctx.save(),this.ctx.setTransform(1,0,0,1,0,0),this.ctx.drawImage(this.transparentCanvas,0,0),this.ctx.restore(),this.transparentCanvas=null)}endDrawing(){this.#ce(),this.cachedCanvases.clear(),this.cachedPatterns.clear();for(const t of this._cachedBitmapsMap.values()){for(const e of t.values())"undefined"!=typeof HTMLCanvasElement&&e instanceof HTMLCanvasElement&&(e.width=e.height=0);t.clear()}this._cachedBitmapsMap.clear(),this.#he()}#he(){var t,e;this.pageColors&&"none"!==(t=this.filterFactory.addHCMFilter(this.pageColors.foreground,this.pageColors.background))&&(e=this.ctx.filter,this.ctx.filter=t,this.ctx.drawImage(this.ctx.canvas,0,0),this.ctx.filter=e)}_scaleImage(r,t){var e=r.width,i=r.height;let s,n,a=Math.max(Math.hypot(t[0],t[1]),1),o=Math.max(Math.hypot(t[2],t[3]),1),l=e,h=i,c="prescale1";for(;2{i.save=i.__originalSave,i.restore=i.__originalRestore,i.rotate=i.__originalRotate,i.scale=i.__originalScale,i.translate=i.__originalTranslate,i.transform=i.__originalTransform,i.setTransform=i.__originalSetTransform,i.resetTransform=i.__originalResetTransform,i.clip=i.__originalClip,i.moveTo=i.__originalMoveTo,i.lineTo=i.__originalLineTo,i.bezierCurveTo=i.__originalBezierCurveTo,i.rect=i.__originalRect,i.closePath=i.__originalClosePath,i.beginPath=i.__originalBeginPath,delete i._removeMirroring},i.save=function(){a.save(),this.__originalSave()},i.restore=function(){a.restore(),this.__originalRestore()},i.translate=function(t,e){a.translate(t,e),this.__originalTranslate(t,e)},i.scale=function(t,e){a.scale(t,e),this.__originalScale(t,e)},i.transform=function(t,e,r,i,s,n){a.transform(t,e,r,i,s,n),this.__originalTransform(t,e,r,i,s,n)},i.setTransform=function(t,e,r,i,s,n){a.setTransform(t,e,r,i,s,n),this.__originalSetTransform(t,e,r,i,s,n)},i.resetTransform=function(){a.resetTransform(),this.__originalResetTransform()},i.rotate=function(t){a.rotate(t),this.__originalRotate(t)},i.clip=function(t){a.clip(t),this.__originalClip(t)},i.moveTo=function(t,e){a.moveTo(t,e),this.__originalMoveTo(t,e)},i.lineTo=function(t,e){a.lineTo(t,e),this.__originalLineTo(t,e)},i.bezierCurveTo=function(t,e,r,i,s,n){a.bezierCurveTo(t,e,r,i,s,n),this.__originalBezierCurveTo(t,e,r,i,s,n)},i.rect=function(t,e,r,i){a.rect(t,e,r,i),this.__originalRect(t,e,r,i)},i.closePath=function(){a.closePath(),this.__originalClosePath()},i.beginPath=function(){a.beginPath(),this.__originalBeginPath()},this.setGState([["BM","source-over"],["ca",1],["CA",1]])}endSMaskMode(){if(!this.inSMaskMode)throw new Error("endSMaskMode called while not in smask mode");this.ctx._removeMirroring(),f(this.ctx,this.suspendedCtx),this.ctx=this.suspendedCtx,this.suspendedCtx=null}compose(t){if(this.current.activeSMask){t?(t[0]=Math.floor(t[0]),t[1]=Math.floor(t[1]),t[2]=Math.ceil(t[2]),t[3]=Math.ceil(t[3])):t=[0,0,this.ctx.canvas.width,this.ctx.canvas.height];var e=this.current.activeSMask,r=this.suspendedCtx,i=this.ctx,s=(t=t)[0],n=t[1],a=t[2]-s,t=t[3]-n;if(0!=a&&0!=t){var o,l=e.context,h=i,c=a,d=t,a=e.subtype,u=e.backdrop,p=e.transferMap,f=s,g=n,m=e.offsetX,v=e.offsetY,_=!!u,b=_?u[0]:0,y=_?u[1]:0,A=_?u[2]:0,S="Luminosity"===a?F:R,x=Math.min(d,Math.ceil(1048576/c));for(let t=0;t>8,w[t-2]=w[t-2]*M+T*o>>8,w[t-1]=w[t-1]*M+C*o>>8)}}S(P.data,k.data,p),h.putImageData(k,f,t+g)}r.save(),r.globalAlpha=1,r.globalCompositeOperation="source-over",r.setTransform(1,0,0,1,0,0),r.drawImage(i.canvas,0,0),r.restore()}this.ctx.save(),this.ctx.setTransform(1,0,0,1,0,0),this.ctx.clearRect(0,0,this.ctx.canvas.width,this.ctx.canvas.height),this.ctx.restore()}}save(){(this.inSMaskMode?(f(this.ctx,this.suspendedCtx),this.suspendedCtx):this.ctx).save();var t=this.current;this.stateStack.push(t),this.current=t.clone()}restore(){0===this.stateStack.length&&this.inSMaskMode&&this.endSMaskMode(),0!==this.stateStack.length&&(this.current=this.stateStack.pop(),this.inSMaskMode?(this.suspendedCtx.restore(),f(this.suspendedCtx,this.ctx)):this.ctx.restore(),this.checkSMaskState(),this.pendingClip=null,this._cachedScaleForStroking[0]=-1,this._cachedGetSinglePixelWidth=null)}transform(t,e,r,i,s,n){this.ctx.transform(t,e,r,i,s,n),this._cachedScaleForStroking[0]=-1,this._cachedGetSinglePixelWidth=null}constructPath(i,s,n){var a=this.ctx,o=this.current;let l,h,c=o.x,d=o.y;var u=(0,M.getCurrentTransform)(a),p=0===u[0]&&0===u[3]||0===u[1]&&0===u[2],f=p?n.slice(0):null;for(let t=0,e=0,r=i.length;tnew l(t,this.commonObjs,this.objs,this.canvasFactory,this.filterFactory,{optionalContentConfig:this.optionalContentConfig,markedContentStack:this.markedContentStack})},i)):this._getPattern(t[1],t[2])}setStrokeColorN(){this.current.strokeColor=this.getColorN_Pattern(arguments)}setFillColorN(){this.current.fillColor=this.getColorN_Pattern(arguments),this.current.patternFill=!0}setStrokeRGBColor(t,e,r){t=y.Util.makeHexColor(t,e,r);this.ctx.strokeStyle=t,this.current.strokeColor=t}setFillRGBColor(t,e,r){t=y.Util.makeHexColor(t,e,r);this.ctx.fillStyle=t,this.current.fillColor=t,this.current.patternFill=!1}_getPattern(t){let e,r=1u&&(r=t/u,t=u),e>u&&(i=e/u,e=u),this.current.startNewPathAndClipBox([0,0,t,e]),"groupAt"+this.groupLevel);n.smask&&(s+="_smask_"+this.smaskCounter++%2);var l=this.cachedCanvases.getCanvas(s,t,e),d=l.context;d.scale(1/r,1/i),d.translate(-h,-c),d.transform(...o),n.smask?this.smaskStack.push({canvas:l.canvas,context:d,offsetX:h,offsetY:c,scaleX:r,scaleY:i,subtype:n.smask.subtype,backdrop:n.smask.backdrop,transferMap:n.smask.transferMap||null,startTransformInverse:null}):(a.setTransform(1,0,0,1,0,0),a.translate(h,c),a.scale(r,i),a.save()),f(a,d),this.ctx=d,this.setGState([["BM","source-over"],["ca",1],["CA",1]]),this.groupStack.push(a),this.groupLevel++}}endGroup(t){if(this.contentVisible){this.groupLevel--;const e=this.ctx,r=this.groupStack.pop();if(this.ctx=r,this.ctx.imageSmoothingEnabled=!1,t.smask)this.tempSMask=this.smaskStack.pop(),this.restore();else{this.ctx.restore();const t=(0,M.getCurrentTransform)(this.ctx),r=(this.restore(),this.ctx.save(),this.ctx.setTransform(...t),y.Util.getAxialAlignedBoundingBox([0,0,e.canvas.width,e.canvas.height],t));this.ctx.drawImage(e.canvas,0,0),this.ctx.restore(),this.compose(r)}}}beginAnnotation(t,e,r,i,s){if(this.#ce(),g(this.ctx),this.ctx.save(),this.save(),this.baseTransform&&this.ctx.setTransform(...this.baseTransform),Array.isArray(e)&&4===e.length){const i=e[2]-e[0],o=e[3]-e[1];if(s&&this.annotationCanvasMap){(r=r.slice())[4]-=e[0],r[5]-=e[1],(e=e.slice())[0]=e[1]=0,e[2]=i,e[3]=o;const[s,l]=y.Util.singularValueDecompose2dScale((0,M.getCurrentTransform)(this.ctx)),h=this["viewportScale"],c=Math.ceil(i*this.outputScaleX*h),d=Math.ceil(o*this.outputScaleY*h);this.annotationCanvas=this.canvasFactory.create(c,d);var{canvas:n,context:a}=this.annotationCanvas;this.annotationCanvasMap.set(t,n),this.annotationCanvas.savedCtx=this.ctx,this.ctx=a,this.ctx.save(),this.ctx.setTransform(s,0,0,-l,0,o*l),g(this.ctx)}else g(this.ctx),this.ctx.rect(e[0],e[1],i,o),this.ctx.clip(),this.endPath()}this.current=new p(this.ctx.canvas.width,this.ctx.canvas.height),this.transform(...r),this.transform(...i)}endAnnotation(){this.annotationCanvas&&(this.ctx.restore(),this.#he(),this.ctx=this.annotationCanvas.savedCtx,delete this.annotationCanvas.savedCtx,delete this.annotationCanvas)}paintImageMaskXObject(t){var e,r;this.contentVisible&&(e=t.count,(t=this.getObject(t.data,t)).count=e,e=this.ctx,(r=this.processingType3)&&(void 0===r.compiled&&(r.compiled=function(t){const{width:r,height:i}=t;if(1e3>=1}let u=0;for((d=0)!==c[d]&&(l[0]=1,++u),e=1;e>2)+(c[d+1]?4:0)+(c[d-h+1]?8:0),s[t]&&(l[o+e]=s[t],++u),d++;if(c[d-h]!==c[d]&&(l[o+e]=c[d]?2:4,++u),1e3>4,l[e]&=t>>2|t<<2),f.lineTo(e%n,e/n|0),l[e]||--u}while(s!==e);--a}}return c=null,l=null,function(t){t.save(),t.scale(1/r,-1/i),t.translate(0,-i),t.fill(f),t.beginPath(),t.restore()}}(t)),r.compiled)?r.compiled(e):(t=(r=this._createMaskCanvas(t)).canvas,e.save(),e.setTransform(1,0,0,1,0,0),e.drawImage(t,r.offsetX,r.offsetY),e.restore(),this.compose()))}paintImageMaskXObjectRepeat(t,r){var i=2t/e)),t.lineDashOffset/=e}t.stroke(),e&&t.restore()}}isContentVisible(){for(let t=this.markedContentStack.length-1;0<=t;t--)if(!this.markedContentStack[t].visible)return!1;return!0}}e.CanvasGraphics=l;for(const t in y.OPS)void 0!==l.prototype[t]&&(l.prototype[y.OPS[t]]=l.prototype[t])},(t,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.TilingPattern=e.PathType=void 0,e.getShadingPattern=function(t){switch(t[0]){case"RadialAxial":return new s(t);case"Mesh":return new n(t);case"Dummy":return new a}throw new Error("Unknown IR type: "+t[0])},r(2);var v=r(1),_=r(168);const h={FILL:"Fill",STROKE:"Stroke",SHADING:"Shading"};function c(t,e){var r,i,s;e&&(r=e[2]-e[0],i=e[3]-e[1],(s=new Path2D).rect(e[0],e[1],r,i),t.clip(s))}e.PathType=h;class i{constructor(){this.constructor===i&&(0,v.unreachable)("Cannot initialize BaseShadingPattern.")}getPattern(){(0,v.unreachable)("Abstract method `getPattern` called.")}}class s extends i{constructor(t){super(),this._type=t[1],this._bbox=t[2],this._colorStops=t[3],this._p0=t[4],this._p1=t[5],this._r0=t[6],this._r1=t[7],this.matrix=null}_createGradient(t){let e;"axial"===this._type?e=t.createLinearGradient(this._p0[0],this._p0[1],this._p1[0],this._p1[1]):"radial"===this._type&&(e=t.createRadialGradient(this._p0[0],this._p0[1],this._r0,this._p1[0],this._p1[1],this._r1));for(const t of this._colorStops)e.addColorStop(t[0],t[1]);return e}getPattern(t,e,r,i){let s;if(i===h.STROKE||i===h.FILL){const h=e.current.getClippedPathBoundingBox(i,(0,_.getCurrentTransform)(t))||[0,0,0,0],n=Math.ceil(h[2]-h[0])||1,a=Math.ceil(h[3]-h[1])||1,o=e.cachedCanvases.getCanvas("pattern",n,a,!0),l=o.context;l.clearRect(0,0,l.canvas.width,l.canvas.height),l.beginPath(),l.rect(0,0,l.canvas.width,l.canvas.height),l.translate(-h[0],-h[1]),r=v.Util.transform(r,[1,0,0,1,h[0],h[1]]),l.transform(...e.baseTransform),this.matrix&&l.transform(...this.matrix),c(l,this._bbox),l.fillStyle=this._createGradient(l),l.fill(),s=t.createPattern(o.canvas,"no-repeat");i=new DOMMatrix(r);s.setTransform(i)}else c(t,this._bbox),s=this._createGradient(t);return s}}function b(e,d,u,p,t,r,f,g){var i=d.coords,m=d.colors,v=e.data,_=4*e.width;let s;i[u+1]>i[p+1]&&(s=u,u=p,p=s,s=r,r=f,f=s),i[p+1]>i[t+1]&&(s=p,p=t,t=s,s=f,f=g,g=s),i[u+1]>i[p+1]&&(s=u,u=p,p=s,s=r,r=f,f=s);var b=(i[u]+d.offsetX)*d.scaleX,y=(i[u+1]+d.offsetY)*d.scaleY,A=(i[p]+d.offsetX)*d.scaleX,S=(i[p+1]+d.offsetY)*d.scaleY,x=(i[t]+d.offsetX)*d.scaleX,w=(i[t+1]+d.offsetY)*d.scaleY;if(!(w<=y)){var E=m[r],T=m[r+1],C=m[r+2],P=m[f],k=m[f+1],M=m[f+2],R=m[g],F=m[g+1],D=m[g+2],e=Math.round(y),I=Math.round(w);let i,s,n,a,o,l,h,c;for(let t=e;t<=I;t++){if(tw?1:S==w?0:(S-t)/(S-w);i=A-(A-x)*O,s=P-(P-R)*O,n=k-(k-F)*O,a=M-(M-D)*O}let e;o=b-(b-x)*(e=tw?1:(y-t)/(y-w)),l=E-(E-R)*e,h=T-(T-F)*e,c=C-(C-D)*e;const u=Math.round(Math.min(i,o)),p=Math.round(Math.max(i,o));let r=_*t+4*u;for(let t=u;t<=p;t++)(e=(i-t)/(i-o))<0?e=0:1=e?i=e:r=i/t,{scale:r,size:i}}clipBbox(t,e,r,i,s){t.ctx.rect(e,r,i-e,s-r),t.current.updateRectMinMax((0,_.getCurrentTransform)(t.ctx),[e,r,i,s]),t.clip(),t.endPath()}setFillAndStrokeStyleToContext(t,e,r){var i=t.ctx,s=t.current;switch(e){case 1:const t=this.ctx;i.fillStyle=t.fillStyle,i.strokeStyle=t.strokeStyle,s.fillColor=t.fillStyle,s.strokeColor=t.strokeStyle;break;case 2:var n=v.Util.makeHexColor(r[0],r[1],r[2]);i.fillStyle=n,i.strokeStyle=n,s.fillColor=n,s.strokeColor=n;break;default:throw new v.FormatError("Unsupported paint type: "+e)}}getPattern(t,e,r,i){let s=r,n=(i!==h.SHADING&&(s=v.Util.transform(s,e.baseTransform),this.matrix)&&(s=v.Util.transform(s,this.matrix)),r=this.createPatternCanvas(e),new DOMMatrix(s));return n=(n=n.translate(r.offsetX,r.offsetY)).scale(1/r.scaleX,1/r.scaleY),(i=t.createPattern(r.canvas,"repeat")).setTransform(n),i}}},(t,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.convertBlackAndWhiteToRGBA=i,e.convertToRGBA=function(e){switch(e.kind){case f.ImageKind.GRAYSCALE_1BPP:return i(e);case f.ImageKind.RGB_24BPP:{var a=e;let{src:r,srcPos:t=0,dest:i,destPos:s=0}=a,n=0;var o=r.length>>2,l=new Uint32Array(r.buffer,t,o);if(f.FeatureTest.isLittleEndian){for(;n>>24|t<<8|4278190080,i[s+2]=t>>>16|e<<16|4278190080,i[s+3]=e>>>8|4278190080}for(let t=4*n,e=r.length;t>>8|255,i[s+2]=t<<16|e>>>16|255,i[s+3]=e<<8|255}for(let t=4*n,e=r.length;t>3,d=7&t,u=r.length;s=new Uint32Array(s.buffer);let p=0;for(let t=0;t{Object.defineProperty(e,"__esModule",{value:!0}),e.GlobalWorkerOptions=void 0;var r=Object.create(null);(e.GlobalWorkerOptions=r).workerPort=null,r.workerSrc=""},(t,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.MessageHandler=void 0,r(2);var h=r(1);function c(t){switch(t instanceof Error||"object"==typeof t&&null!==t||(0,h.unreachable)('wrapReason: Expected "reason" to be a (possibly cloned) Error.'),t.name){case"AbortException":return new h.AbortException(t.message);case"MissingPDFException":return new h.MissingPDFException(t.message);case"PasswordException":return new h.PasswordException(t.message,t.code);case"UnexpectedResponseException":return new h.UnexpectedResponseException(t.message,t.status);case"UnknownErrorException":return new h.UnknownErrorException(t.message,t.details);default:return new h.UnknownErrorException(t.message,t.toString())}}e.MessageHandler=class{constructor(t,e,n){this.sourceName=t,this.targetName=e,this.comObj=n,this.callbackId=1,this.streamId=1,this.streamSinks=Object.create(null),this.streamControllers=Object.create(null),this.callbackCapabilities=Object.create(null),this.actionHandler=Object.create(null),this._onComObjOnMessage=e=>{const r=e.data;if(r.targetName===this.sourceName)if(r.stream)this.#de(r);else if(r.callback){const e=r.callbackId,n=this.callbackCapabilities[e];if(!n)throw new Error("Cannot resolve callback "+e);if(delete this.callbackCapabilities[e],1===r.callback)n.resolve(r.data);else{if(2!==r.callback)throw new Error("Unexpected callback case");n.reject(c(r.reason))}}else{const i=this.actionHandler[r.action];if(!i)throw new Error("Unknown action from worker: "+r.action);if(r.callbackId){const e=this.sourceName,s=r.sourceName;new Promise(function(t){t(i(r.data))}).then(function(t){n.postMessage({sourceName:e,targetName:s,callback:1,callbackId:r.callbackId,data:t})},function(t){n.postMessage({sourceName:e,targetName:s,callback:2,callbackId:r.callbackId,reason:c(t)})})}else r.streamId?this.#ue(r):i(r.data)}},n.addEventListener("message",this._onComObjOnMessage)}on(t,e){var r=this.actionHandler;if(r[t])throw new Error(`There is already an actionName called "${t}"`);r[t]=e}send(t,e,r){this.comObj.postMessage({sourceName:this.sourceName,targetName:this.targetName,action:t,data:e},r)}sendWithPromise(t,e,r){var i=this.callbackId++,s=new h.PromiseCapability;this.callbackCapabilities[i]=s;try{this.comObj.postMessage({sourceName:this.sourceName,targetName:this.targetName,action:t,callbackId:i,data:e},r)}catch(t){s.reject(t)}return s.promise}sendWithStream(r,i,t,s){const n=this.streamId++,a=this.sourceName,o=this.targetName,l=this.comObj;return new ReadableStream({start:t=>{var e=new h.PromiseCapability;return this.streamControllers[n]={controller:t,startCall:e,pullCall:null,cancelCall:null,isClosed:!1},l.postMessage({sourceName:a,targetName:o,action:r,streamId:n,data:i,desiredSize:t.desiredSize},s),e.promise},pull:t=>{var e=new h.PromiseCapability;return this.streamControllers[n].pullCall=e,l.postMessage({sourceName:a,targetName:o,stream:6,streamId:n,desiredSize:t.desiredSize}),e.promise},cancel:t=>{(0,h.assert)(t instanceof Error,"cancel must have a valid reason");var e=new h.PromiseCapability;return this.streamControllers[n].cancelCall=e,this.streamControllers[n].isClosed=!0,l.postMessage({sourceName:a,targetName:o,stream:1,streamId:n,reason:c(t)}),e.promise}},t)}#ue(e){const s=e.streamId,n=this.sourceName,a=e.sourceName,o=this.comObj,t=this,r=this.actionHandler[e.action],i={enqueue(t){var e,r=1{Object.defineProperty(e,"__esModule",{value:!0}),e.Metadata=void 0;var i=r(1);e.Metadata=class{#fe;#ge;constructor(t){var{parsedData:t,rawData:e}=t;this.#fe=t,this.#ge=e}getRaw(){return this.#ge}get(t){return this.#fe.get(t)??null}getAll(){return(0,i.objectFromMap)(this.#fe)}has(t){return this.#fe.has(t)}}},(t,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.OptionalContentConfig=void 0;var n=r(1),i=r(170);const s=Symbol("INTERNAL");class a{#me=!0;constructor(t,e){this.name=t,this.intent=e}get visible(){return this.#me}_setVisible(t,e){t!==s&&(0,n.unreachable)("Internal method `_setVisible` called."),this.#me=e}}e.OptionalContentConfig=class{#be=null;#ve=new Map;#ye=null;#_e=null;constructor(t){if(this.name=null,(this.creator=null)!==t){this.name=t.name,this.creator=t.creator,this.#_e=t.order;for(const e of t.groups)this.#ve.set(e.id,new a(e.name,e.intent));if("OFF"===t.baseState)for(const t of this.#ve.values())t._setVisible(s,!1);for(const r of t.on)this.#ve.get(r)._setVisible(s,!0);for(const i of t.off)this.#ve.get(i)._setVisible(s,!1);this.#ye=this.getHash()}}#Ae(r){const i=r.length;if(i<2)return!0;var s=r[0];for(let e=1;e{Object.defineProperty(e,"__esModule",{value:!0}),e.PDFDataTransportStream=void 0,r(93),r(101),r(102),r(105),r(107),r(109),r(113),r(116),r(123),r(89);var o=r(1),s=r(168);e.PDFDataTransportStream=class{constructor(t,e){var{length:t,initialData:r,progressiveDone:i=!1,contentDispositionFilename:s=null,disableRange:n=!1,disableStream:a=!1}=t;if((0,o.assert)(e,'PDFDataTransportStream - missing required "pdfDataRangeTransport" argument.'),this._queuedChunks=[],this._progressiveDone=i,this._contentDispositionFilename=s,0{this._onReceiveData({begin:t,chunk:e})}),this._pdfDataRangeTransport.addProgressListener((t,e)=>{this._onProgress({loaded:t,total:e})}),this._pdfDataRangeTransport.addProgressiveReadListener(t=>{this._onReceiveData({chunk:t})}),this._pdfDataRangeTransport.addProgressiveDoneListener(()=>{this._onProgressiveDone()}),this._pdfDataRangeTransport.transportReady()}_onReceiveData(t){let{begin:e,chunk:r}=t;const i=(r instanceof Uint8Array&&r.byteLength===r.buffer.byteLength?r:new Uint8Array(r)).buffer;if(void 0===e)this._fullRequestReader?this._fullRequestReader._enqueue(i):this._queuedChunks.push(i);else{const t=this._rangeReaders.some(function(t){return t._begin===e&&(t._enqueue(i),!0)});(0,o.assert)(t,"_onReceiveData - no `PDFDataTransportStreamRangeReader` instance found.")}}get _progressiveDataLength(){return this._fullRequestReader?._loaded??0}_onProgress(t){void 0===t.total?this._rangeReaders[0]?.onProgress?.({loaded:t.loaded}):this._fullRequestReader?.onProgress?.({loaded:t.loaded,total:t.total})}_onProgressiveDone(){this._fullRequestReader?.progressiveDone(),this._progressiveDone=!0}_removeRangeReader(t){t=this._rangeReaders.indexOf(t);0<=t&&this._rangeReaders.splice(t,1)}getFullReader(){(0,o.assert)(!this._fullRequestReader,"PDFDataTransportStream.getFullReader can only be called once.");var t=this._queuedChunks;return this._queuedChunks=null,new i(this,t,this._progressiveDone,this._contentDispositionFilename)}getRangeReader(t,e){var r;return e<=this._progressiveDataLength?null:(r=new n(this,t,e),this._pdfDataRangeTransport.requestDataRange(t,e),this._rangeReaders.push(r),r)}cancelAllRequests(t){this._fullRequestReader?.cancel(t);for(const e of this._rangeReaders.slice(0))e.cancel(t);this._pdfDataRangeTransport.abort()}};class i{constructor(t,e){var r=2{Object.defineProperty(e,"__esModule",{value:!0}),e.PDFFetchStream=void 0,r(93),r(101),r(102),r(105),r(107),r(109),r(113),r(116),r(123),r(89);var n=r(1),a=r(182);function o(t,e,r){return{method:"GET",headers:t,signal:r.signal,mode:"cors",credentials:e?"include":"same-origin",redirect:"follow"}}function l(t){var e=new Headers;for(const i in t){var r=t[i];void 0!==r&&e.append(i,r)}return e}function i(t){return t instanceof Uint8Array?t.buffer:t instanceof ArrayBuffer?t:((0,n.warn)("getArrayBuffer - unexpected data format: "+t),new Uint8Array(t).buffer)}e.PDFFetchStream=class{constructor(t){this.source=t,this.isHttp=/^https?:/i.test(t.url),this.httpHeaders=this.isHttp&&t.httpHeaders||{},this._fullRequestReader=null,this._rangeRequestReaders=[]}get _progressiveDataLength(){return this._fullRequestReader?._loaded??0}getFullReader(){return(0,n.assert)(!this._fullRequestReader,"PDFFetchStream.getFullReader can only be called once."),this._fullRequestReader=new s(this),this._fullRequestReader}getRangeReader(t,e){return e<=this._progressiveDataLength?null:(t=new h(this,t,e),this._rangeRequestReaders.push(t),t)}cancelAllRequests(t){this._fullRequestReader?.cancel(t);for(const e of this._rangeRequestReaders.slice(0))e.cancel(t)}};class s{constructor(t){this._stream=t,this._reader=null,this._loaded=0,this._filename=null;t=t.source;this._withCredentials=t.withCredentials||!1,this._contentLength=t.length,this._headersCapability=new n.PromiseCapability,this._disableRange=t.disableRange||!1,this._rangeChunkSize=t.rangeChunkSize,this._rangeChunkSize||this._disableRange||(this._disableRange=!0),this._abortController=new AbortController,this._isStreamingSupported=!t.disableStream,this._isRangeSupported=!t.disableRange,this._headers=l(this._stream.httpHeaders);const s=t.url;fetch(s,o(this._headers,this._withCredentials,this._abortController)).then(e=>{if(!(0,a.validateResponseStatus)(e.status))throw(0,a.createResponseStatusError)(e.status,s);this._reader=e.body.getReader(),this._headersCapability.resolve();var t=t=>e.headers.get(t),{allowRangeRequests:r,suggestedLength:i}=(0,a.validateRangeRequestCapabilities)({getResponseHeader:t,isHttp:this._stream.isHttp,rangeChunkSize:this._rangeChunkSize,disableRange:this._disableRange});this._isRangeSupported=r,this._contentLength=i||this._contentLength,this._filename=(0,a.extractFilenameFromHeader)(t),!this._isStreamingSupported&&this._isRangeSupported&&this.cancel(new n.AbortException("Streaming is disabled."))}).catch(this._headersCapability.reject),this.onProgress=null}get headersReady(){return this._headersCapability.promise}get filename(){return this._filename}get contentLength(){return this._contentLength}get isRangeSupported(){return this._isRangeSupported}get isStreamingSupported(){return this._isStreamingSupported}async read(){await this._headersCapability.promise;var{value:t,done:e}=await this._reader.read();return e?{value:t,done:e}:(this._loaded+=t.byteLength,this.onProgress?.({loaded:this._loaded,total:this._contentLength}),{value:i(t),done:!1})}cancel(t){this._reader?.cancel(t),this._abortController.abort()}}class h{constructor(t,e,r){this._stream=t,this._reader=null,this._loaded=0;t=t.source;this._withCredentials=t.withCredentials||!1,this._readCapability=new n.PromiseCapability,this._isStreamingSupported=!t.disableStream,this._abortController=new AbortController,this._headers=l(this._stream.httpHeaders),this._headers.append("Range",`bytes=${e}-`+(r-1));const i=t.url;fetch(i,o(this._headers,this._withCredentials,this._abortController)).then(t=>{if(!(0,a.validateResponseStatus)(t.status))throw(0,a.createResponseStatusError)(t.status,i);this._readCapability.resolve(),this._reader=t.body.getReader()}).catch(this._readCapability.reject),this.onProgress=null}get isStreamingSupported(){return this._isStreamingSupported}async read(){await this._readCapability.promise;var{value:t,done:e}=await this._reader.read();return e?{value:t,done:e}:(this._loaded+=t.byteLength,this.onProgress?.({loaded:this._loaded}),{value:i(t),done:!1})}cancel(t){this._reader?.cancel(t),this._abortController.abort()}}},(t,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.createResponseStatusError=function(t,e){return 404===t||0===t&&e.startsWith("file:")?new i.MissingPDFException('Missing PDF "'+e+'".'):new i.UnexpectedResponseException(`Unexpected server response (${t}) while retrieving PDF "${e}".`,t)},e.extractFilenameFromHeader=function(e){e=e("Content-Disposition");if(e){let t=(0,s.getFilenameFromContentDispositionHeader)(e);if(t.includes("%"))try{t=decodeURIComponent(t)}catch{}if((0,n.isPdfFile)(t))return t}return null},e.validateRangeRequestCapabilities=function(t){var{getResponseHeader:t,isHttp:e,rangeChunkSize:r,disableRange:i}=t,s={allowRangeRequests:!1,suggestedLength:void 0},n=parseInt(t("Content-Length"),10);return!Number.isInteger(n)||(s.suggestedLength=n)<=2*r||!i&&e&&"bytes"===t("Accept-Ranges")&&"identity"===(t("Content-Encoding")||"identity")&&(s.allowRangeRequests=!0),s},e.validateResponseStatus=function(t){return 200===t||206===t};var i=r(1),s=r(183),n=r(168)},(t,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.getFilenameFromContentDispositionHeader=function(t){let s=!0,e=o("filename\\*","i").exec(t);var r;return e?(r=l(e=e[1]),i(r=a(r=h(r=unescape(r))))):(e=function(t){for(var i=[],e=o("filename\\*((?!0\\d)\\d+)(\\*?)","ig");null!==(r=e.exec(t));){var[,r,s,n]=r;if((r=parseInt(r,10))in i){if(0===r)break}else i[r]=[s,n]}var a=[];for(let r=0;r{Object.defineProperty(e,"__esModule",{value:!0}),e.PDFNetworkStream=void 0,r(89);var n=r(1),a=r(182);class i{constructor(t){var e=1e.getResponseHeader(t),{allowRangeRequests:i,suggestedLength:s}=(0,a.validateRangeRequestCapabilities)({getResponseHeader:r,isHttp:this._manager.isHttp,rangeChunkSize:this._rangeChunkSize,disableRange:this._disableRange});i&&(this._isRangeSupported=!0),this._contentLength=s||this._contentLength,this._filename=(0,a.extractFilenameFromHeader)(r),this._isRangeSupported&&this._manager.abortRequest(t),this._headersReceivedCapability.resolve()}_onDone(t){if(t&&(0{Object.defineProperty(e,"__esModule",{value:!0}),e.PDFNodeStream=void 0,r(89),r(93),r(101),r(102),r(105),r(107),r(109),r(113),r(116),r(123);var s=r(1),n=r(182);const a=/^file:\/\/\/[a-zA-Z]:\//;e.PDFNodeStream=class{constructor(t){this.source=t,this.url=function(t){var e=require("url"),r=e.parse(t);if("file:"!==r.protocol&&!r.host){if(/^[a-z]:[/\\]/i.test(t))return e.parse("file:///"+t);r.host||(r.protocol="file:")}return r}(t.url),this.isHttp="http:"===this.url.protocol||"https:"===this.url.protocol,this.isFsUrl="file:"===this.url.protocol,this.httpHeaders=this.isHttp&&t.httpHeaders||{},this._fullRequestReader=null,this._rangeRequestReaders=[]}get _progressiveDataLength(){return this._fullRequestReader?._loaded??0}getFullReader(){return(0,s.assert)(!this._fullRequestReader,"PDFNodeStream.getFullReader can only be called once."),this._fullRequestReader=new(this.isFsUrl?d:h)(this),this._fullRequestReader}getRangeReader(t,e){return e<=this._progressiveDataLength?null:(t=new(this.isFsUrl?u:c)(this,t,e),this._rangeRequestReaders.push(t),t)}cancelAllRequests(t){this._fullRequestReader?.cancel(t);for(const e of this._rangeRequestReaders.slice(0))e.cancel(t)}};class i{constructor(t){this._url=t.url,this._done=!1,this._storedError=null,this.onProgress=null;t=t.source;this._contentLength=t.length,this._loaded=0,this._filename=null,this._disableRange=t.disableRange||!1,this._rangeChunkSize=t.rangeChunkSize,this._rangeChunkSize||this._disableRange||(this._disableRange=!0),this._isStreamingSupported=!t.disableStream,this._isRangeSupported=!t.disableRange,this._readableStream=null,this._readCapability=new s.PromiseCapability,this._headersCapability=new s.PromiseCapability}get headersReady(){return this._headersCapability.promise}get filename(){return this._filename}get contentLength(){return this._contentLength}get isRangeSupported(){return this._isRangeSupported}get isStreamingSupported(){return this._isStreamingSupported}async read(){if(await this._readCapability.promise,this._done)return{value:void 0,done:!0};if(this._storedError)throw this._storedError;var t=this._readableStream.read();return null===t?(this._readCapability=new s.PromiseCapability,this.read()):(this._loaded+=t.length,this.onProgress?.({loaded:this._loaded,total:this._contentLength}),{value:new Uint8Array(t).buffer,done:!1})}cancel(t){this._readableStream?this._readableStream.destroy(t):this._error(t)}_error(t){this._storedError=t,this._readCapability.resolve()}_setReadableStream(t){(this._readableStream=t).on("readable",()=>{this._readCapability.resolve()}),t.on("end",()=>{t.destroy(),this._done=!0,this._readCapability.resolve()}),t.on("error",t=>{this._error(t)}),!this._isStreamingSupported&&this._isRangeSupported&&this._error(new s.AbortException("streaming is disabled")),this._storedError&&this._readableStream.destroy(this._storedError)}}class o{constructor(t){this._url=t.url,this._done=!1,this._storedError=null,this.onProgress=null,this._loaded=0,this._readableStream=null,this._readCapability=new s.PromiseCapability;t=t.source;this._isStreamingSupported=!t.disableStream}get isStreamingSupported(){return this._isStreamingSupported}async read(){if(await this._readCapability.promise,this._done)return{value:void 0,done:!0};if(this._storedError)throw this._storedError;var t=this._readableStream.read();return null===t?(this._readCapability=new s.PromiseCapability,this.read()):(this._loaded+=t.length,this.onProgress?.({loaded:this._loaded}),{value:new Uint8Array(t).buffer,done:!1})}cancel(t){this._readableStream?this._readableStream.destroy(t):this._error(t)}_error(t){this._storedError=t,this._readCapability.resolve()}_setReadableStream(t){(this._readableStream=t).on("readable",()=>{this._readCapability.resolve()}),t.on("end",()=>{t.destroy(),this._done=!0,this._readCapability.resolve()}),t.on("error",t=>{this._error(t)}),this._storedError&&this._readableStream.destroy(this._storedError)}}function l(t,e){return{protocol:t.protocol,auth:t.auth,host:t.hostname,port:t.port,path:t.path,method:"GET",headers:e}}class h extends i{constructor(i){super(i);var t,e=t=>{if(404===t.statusCode){const i=new s.MissingPDFException(`Missing PDF "${this._url}".`);this._storedError=i,void this._headersCapability.reject(i)}else{this._headersCapability.resolve(),this._setReadableStream(t);var t=t=>this._readableStream.headers[t.toLowerCase()],{allowRangeRequests:e,suggestedLength:r}=(0,n.validateRangeRequestCapabilities)({getResponseHeader:t,isHttp:i.isHttp,rangeChunkSize:this._rangeChunkSize,disableRange:this._disableRange});this._isRangeSupported=e,this._contentLength=r||this._contentLength,this._filename=(0,n.extractFilenameFromHeader)(t)}};this._request=null,"http:"===this._url.protocol?(t=require("http"),this._request=t.request(l(this._url,i.httpHeaders),e)):(t=require("https"),this._request=t.request(l(this._url,i.httpHeaders),e)),this._request.on("error",t=>{this._storedError=t,this._headersCapability.reject(t)}),this._request.end()}}class c extends o{constructor(t,e,r){super(t),this._httpHeaders={};for(const e in t.httpHeaders){const r=t.httpHeaders[e];void 0!==r&&(this._httpHeaders[e]=r)}this._httpHeaders.Range=`bytes=${e}-`+(r-1);e=t=>{if(404!==t.statusCode)this._setReadableStream(t);else{const t=new s.MissingPDFException(`Missing PDF "${this._url}".`);this._storedError=t}};if(this._request=null,"http:"===this._url.protocol){const t=require("http");this._request=t.request(l(this._url,this._httpHeaders),e)}else{const t=require("https");this._request=t.request(l(this._url,this._httpHeaders),e)}this._request.on("error",t=>{this._storedError=t}),this._request.end()}}class d extends i{constructor(t){super(t);let r=decodeURIComponent(this._url.path);a.test(this._url.href)&&(r=r.replace(/^\//,""));const i=require("fs");i.lstat(r,(t,e)=>{t?("ENOENT"===t.code&&(t=new s.MissingPDFException(`Missing PDF "${r}".`)),this._storedError=t,this._headersCapability.reject(t)):(this._contentLength=e.size,this._setReadableStream(i.createReadStream(r)),this._headersCapability.resolve())})}}class u extends o{constructor(t,e,r){super(t);let i=decodeURIComponent(this._url.path);a.test(this._url.href)&&(i=i.replace(/^\//,""));t=require("fs");this._setReadableStream(t.createReadStream(i,{start:e,end:r-1}))}}},(t,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.SVGGraphics=void 0,r(84),r(86),r(87),r(93),r(101),r(102),r(105),r(107),r(109),r(113),r(116),r(123),r(2),r(89),r(187);var i=r(168),v=r(1);function _(r){var t=1>2]+i[(3&n)<<4|a>>4]+i[t+1>6:64]+i[t+2>1&2147483647:e>>1&2147483647;a[t]=e}function g(t,e,r,i){var s=i,n=e.length,n=(r[s]=n>>24&255,r[s+1]=n>>16&255,r[s+2]=n>>8&255,r[s+3]=255&n,r[s+=4]=255&t.charCodeAt(0),r[s+1]=255&t.charCodeAt(1),r[s+2]=255&t.charCodeAt(2),r[s+3]=255&t.charCodeAt(3),r.set(e,s+=4),function(e,r,i){let s=-1;for(let t=r;t>>8^a[r]}return-1^s}(r,i+4,s+=e.length));r[s]=n>>24&255,r[s+1]=n>>16&255,r[s+2]=n>>8&255,r[s+3]=255&n}function m(t){let e=t.length;var r=65535,i=Math.ceil(e/r),s=new Uint8Array(2+e+5*i+4);let n=0,a=(s[n++]=120,s[n++]=156,0);for(;e>r;)s[n++]=0,s[n++]=255,s[n++]=255,s[n++]=0,s[n++]=0,s.set(t.subarray(a,a+r),n),n+=r,a+=r,e-=r;s[n++]=1,s[n++]=255&e,s[n++]=e>>8&255,s[n++]=255&~e,s[n++]=(65535&~e)>>8&255,s.set(t.subarray(a),n),n+=t.length-a;i=function(e,r,i){let s=1,n=0;for(let t=r;t>24&255,s[n++]=i>>16&255,s[n++]=i>>8&255,s[n++]=255&i,s}return function(n,a,o){{var l=n,h=(n=void 0===n.kind?v.ImageKind.GRAYSCALE_1BPP:n.kind,l.width),c=l.height;let t,e,r;var d=l.data;switch(n){case v.ImageKind.GRAYSCALE_1BPP:e=0,t=1,r=h+7>>3;break;case v.ImageKind.RGB_24BPP:e=2,t=8,r=3*h;break;case v.ImageKind.RGBA_32BPP:e=6,t=8,r=4*h;break;default:throw new Error("invalid format")}var u=new Uint8Array((1+r)*c);let i=0,s=0;for(let t=0;t>24&255,h>>16&255,h>>8&255,255&h,c>>24&255,c>>16&255,c>>8&255,255&c,t,e,0,0,0]),n=function(t){if(v.isNodeJS)try{var e=8<=parseInt(process.versions.node)?t:Buffer.from(t),r=require("zlib").deflateSync(e,{level:9});return r instanceof Uint8Array?r:new Uint8Array(r)}catch(t){(0,v.warn)("Not compressing PNG because zlib.deflateSync is unavailable: "+t)}return m(t)}(u),o=f.length+36+l.length+n.length,o=new Uint8Array(o),p=0;return o.set(f,0),g("IHDR",l,o,p+=f.length),g("IDATA",n,o,p+=12+l.length),p+=12+n.length,g("IEND",new Uint8Array(0),o,p),_(o,"image/png",a)}}}();class o{constructor(){this.fontSizeScale=1,this.fontWeight="normal",this.fontSize=0,this.textMatrix=v.IDENTITY_MATRIX,this.fontMatrix=v.FONT_IDENTITY_MATRIX,this.leading=0,this.textRenderingMode=v.TextRenderingMode.FILL,this.textMatrixScale=1,this.x=0,this.y=0,this.lineX=0,this.lineY=0,this.charSpacing=0,this.wordSpacing=0,this.textHScale=1,this.textRise=0,this.fillColor="#000000",this.strokeColor="#000000",this.fillAlpha=1,this.strokeAlpha=1,this.lineWidth=1,this.lineJoin="",this.lineCap="",this.miterLimit=0,this.dashArray=[],this.dashPhase=0,this.dependencies=[],this.activeClipUrl=null,this.clipGroup=null,this.maskId=""}clone(){return Object.create(this)}setCurrentPoint(t,e){this.x=t,this.y=e}}function b(t){if(Number.isInteger(t))return t.toString();var e=t.toFixed(10);let r=e.length-1;if("0"!==e[r])return e;for(;"0"===e[--r];);return e.substring(0,"."===e[r]?r:r+1)}function y(t){if(0===t[4]&&0===t[5]){if(0===t[1]&&0===t[2])return 1===t[0]&&1===t[3]?"":`scale(${b(t[0])} ${b(t[3])})`;if(t[0]===t[3]&&t[1]===-t[2])return`rotate(${b(180*Math.acos(t[0])/Math.PI)})`}else if(1===t[0]&&0===t[1]&&0===t[2]&&1===t[3])return`translate(${b(t[4])} ${b(t[5])})`;return`matrix(${b(t[0])} ${b(t[1])} ${b(t[2])} ${b(t[3])} ${b(t[4])} ${b(t[5])})`}let l=0,h=0,f=0;e.SVGGraphics=class{constructor(t,e){var r=2{r.get(i,t)});this.current.dependencies.push(s)}return Promise.all(this.current.dependencies)}transform(t,e,r,i,s,n){this.transformMatrix=v.Util.transform(this.transformMatrix,[t,e,r,i,s,n]),this.tgrp=null}getSVG(t,e){this.viewport=e;const r=this._initialize(e);return this.loadDependencies(t).then(()=>(this.transformMatrix=v.IDENTITY_MATRIX,this.executeOpTree(this.convertOpList(t)),r))}convertOpList(e){var r=this._operatorIdMapping,i=e.argsArray,s=e.fnArray,n=[];for(let t=0,e=s.length;t{var i=r(3),s=r(188),r=r(193);i({target:"Array",proto:!0},{group:function(t){return s(this,t,1{var p=r(99),i=r(14),f=r(13),g=r(40),m=r(18),v=r(64),_=r(189),b=r(108),y=Array,A=i([].push);t.exports=function(t,e,r,i){for(var s,n,a,o=g(t),l=f(o),h=p(e,r),c=_(null),d=v(l),u=0;u{function i(){}function s(t){t.write(g("")),t.close();var e=t.parentWindow.Object;return t=null,e}var n,a=r(47),o=r(190),l=r(66),h=r(55),c=r(192),d=r(43),r=r(54),u="prototype",p="script",f=r("IE_PROTO"),g=function(t){return"<"+p+">"+t+""},m=function(){try{n=new ActiveXObject("htmlfile")}catch(r){}var t,e;m="undefined"==typeof document||document.domain&&n?s(n):(t=d("iframe"),e="java"+p+":",t.style.display="none",c.appendChild(t),t.src=String(e),(e=t.contentWindow.document).open(),e.write(g("document.F=Object")),e.close(),e.F);for(var r=l.length;r--;)delete m[u][l[r]];return m()};h[f]=!0,t.exports=Object.create||function(t,e){var r;return null!==t?(i[u]=a(t),r=new i,i[u]=null,r[f]=t):r=m(),void 0===e?r:o.f(r,e)}},(t,e,r)=>{var i=r(6),s=r(46),o=r(45),l=r(47),h=r(12),c=r(191);e.f=i&&!s?Object.defineProperties:function(t,e){l(t);for(var r,i=h(e),s=c(e),n=s.length,a=0;a{var i=r(59),s=r(66);t.exports=Object.keys||function(t){return i(t,s)}},(t,e,r)=>{r=r(24);t.exports=r("document","documentElement")},(t,e,r)=>{var i=r(34),s=r(189),r=r(45).f,n=i("unscopables"),a=Array.prototype;void 0===a[n]&&r(a,n,{configurable:!0,value:s(null)}),t.exports=function(t){a[n][t]=!0}},(t,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.XfaText=void 0,r(89);class n{static textContent(t){const s=[],e={items:s,styles:Object.create(null)};return function e(r){if(r){let t=null;var i=r.name;if("#text"===i)t=r.value;else{if(!n.shouldBuildText(i))return;r?.attributes?.textContent?t=r.attributes.textContent:r.value&&(t=r.value)}if(null!==t&&s.push({str:t}),r.children)for(const s of r.children)e(s)}}(t),e}static shouldBuildText(t){return!("textarea"===t||"input"===t||"option"===t||"select"===t)}}e.XfaText=n},(t,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.TextLayerRenderTask=void 0,e.renderTextLayer=function(t){t.textContentSource||!t.textContent&&!t.textContentStream||((0,l.deprecated)("The TextLayerRender `textContent`/`textContentStream` parameters will be removed in the future, please use `textContentSource` instead."),t.textContentSource=t.textContent||t.textContentStream);var{container:e,viewport:r}=t,e=getComputedStyle(e),i=e.getPropertyValue("visibility"),e=parseFloat(e.getPropertyValue("--scale-factor")),i=("visible"===i&&(!e||1e-5{this._layoutTextParams=null}).catch(()=>{})}get promise(){return this._capability.promise}cancel(){this._canceled=!0,this._reader&&(this._reader.cancel(new f.AbortException("TextLayer task cancelled.")).catch(()=>{}),this._reader=null),this._capability.reject(new f.AbortException("TextLayer task cancelled."))}_processItems(t,s){for(const p of t)if(void 0!==p.str){this._textContentItemsStr.push(p.str);{n=void 0;a=void 0;o=void 0;l=void 0;h=void 0;c=void 0;d=void 0;u=void 0;var n=this;var a=p;var o=s;var l=document.createElement("span"),h={angle:0,canvasWidth:0,hasText:""!==a.str,hasEOL:a.hasEOL,fontSize:0},c=(n._textDivs.push(l),f.Util.transform(n._transform,a.transform));let t=Math.atan2(c[1],c[0]);var o=o[a.fontName],d=(o.vertical&&(t+=Math.PI/2),Math.hypot(c[2],c[3])),u=d*function(t,e){var r=g.get(t);if(r)return r;r=m(30,e),r.font="30px "+t,e=r.measureText("");let i=e.fontBoundingBoxAscent,s=Math.abs(e.fontBoundingBoxDescent);if(i){const e=i/(i+s);return g.set(t,e),r.canvas.width=r.canvas.height=0,e}r.strokeStyle="red",r.clearRect(0,0,30,30),r.strokeText("g",0,0);let n=r.getImageData(0,0,30,30).data;s=0;for(let t=n.length-1-3;0<=t;t-=4)if(0{this._reader.read().then(t=>{var{value:t,done:e}=t;e?r.resolve():(Object.assign(i,t.styles),this._processItems(t.items,i),s())},r.reject)};this._reader=this._textContentSource.getReader(),s()}else{if(!this._textContentSource)throw new Error('No "textContentSource" parameter specified.');{const{items:i,styles:t}=this._textContentSource;this._processItems(i,t),r.resolve()}}r.promise.then(()=>{i=null;var t=this;if(!t._canceled){const e=t._textDivs,r=t._capability;if(!(1e5{Object.defineProperty(e,"__esModule",{value:!0}),e.AnnotationEditorLayer=void 0,r(125),r(136),r(138),r(141),r(143),r(145),r(147);var i=r(1),s=r(164),l=r(197),h=r(202),n=r(168),c=r(203);class d{#Se;#Ee=!1;#xe=null;#we=this.pointerup.bind(this);#Ce=this.pointerdown.bind(this);#Te=new Map;#Pe=!1;#ke=!1;#Me=!1;#Fe;static _initialized=!1;constructor(t){var{uiManager:t,pageIndex:e,div:r,accessibilityManager:i,annotationLayer:s,viewport:n,l10n:a}=t,o=[l.FreeTextEditor,h.InkEditor,c.StampEditor];if(!d._initialized){d._initialized=!0;for(const t of o)t.initialize(a)}t.registerEditorTypes(o),this.#Fe=t,this.pageIndex=e,this.div=r,this.#Se=i,this.#xe=s,this.viewport=n,this.#Fe.addLayer(this)}get isEmpty(){return 0===this.#Te.size}updateToolbar(t){this.#Fe.updateToolbar(t)}updateMode(){var t=0{this.#Fe.focusMainContainer()},0),t.div.remove(),t.isAttachedToDOM=!1,this.#ke||this.addInkEditorIfNeeded(!1)}changeParent(t){t.parent!==this&&(t.annotationElementId&&(this.#Fe.addDeletedAnnotationElement(t.annotationElementId),s.AnnotationEditor.deleteAnnotationElement(t),t.annotationElementId=null),this.attach(t),t.parent?.detach(t),t.setParent(this),t.div)&&t.isAttachedToDOM&&(t.div.remove(),this.div.append(t.div))}add(t){var e;this.changeParent(t),this.#Fe.addEditor(t),this.attach(t),t.isAttachedToDOM||(e=t.render(),this.div.append(e),t.isAttachedToDOM=!0),t.fixAndSetPosition(),t.onceAdded(),this.#Fe.addToAnnotationStorage(t)}moveEditorInDOM(t){if(t.isAttachedToDOM){const e=document["activeElement"];t.div.contains(e)&&(t._focusEventsAllowed=!1,setTimeout(()=>{t.div.contains(document.activeElement)?t._focusEventsAllowed=!0:(t.div.addEventListener("focusin",()=>{t._focusEventsAllowed=!0},{once:!0}),e.focus())},0)),t._structTreeParentId=this.#Se?.moveElementInDOM(this.div,t.div,t.contentDiv,!0)}}addOrRebuild(t){t.needsToBeRebuilt()?t.rebuild():this.add(t)}addUndoableEditor(t){this.addCommands({cmd:()=>t._uiManager.rebuild(t),undo:()=>{t.remove()},mustExec:!1})}getNextId(){return this.#Fe.getId()}#Ie(t){switch(this.#Fe.getMode()){case i.AnnotationEditorType.FREETEXT:return new l.FreeTextEditor(t);case i.AnnotationEditorType.INK:return new h.InkEditor(t);case i.AnnotationEditorType.STAMP:return new c.StampEditor(t)}return null}pasteEditor(t,e){this.#Fe.updateToolbar(t),this.#Fe.updateMode(t);var{offsetX:t,offsetY:r}=this.#Oe(),i=this.getNextId(),i=this.#Ie({parent:this,id:i,x:t,y:r,uiManager:this.#Fe,isCentered:!0,...e});i&&this.add(i)}deserialize(t){switch(t.annotationType??t.annotationEditorType){case i.AnnotationEditorType.FREETEXT:return l.FreeTextEditor.deserialize(t,this,this.#Fe);case i.AnnotationEditorType.INK:return h.InkEditor.deserialize(t,this,this.#Fe);case i.AnnotationEditorType.STAMP:return c.StampEditor.deserialize(t,this,this.#Fe)}return null}#De(t,e){var r=this.getNextId(),r=this.#Ie({parent:this,id:r,x:t.offsetX,y:t.offsetY,uiManager:this.#Fe,isCentered:e});return r&&this.add(r),r}#Oe(){var{x:t,y:e,width:r,height:i}=this.div.getBoundingClientRect(),s=Math.max(0,t),n=Math.max(0,e),s=(s+Math.min(window.innerWidth,t+r))/2-t,r=(n+Math.min(window.innerHeight,e+i))/2-e,[t,n]=this.viewport.rotation%180==0?[s,r]:[r,s];return{offsetX:t,offsetY:n}}addNewEditor(){this.#De(this.#Oe(),!0)}setSelected(t){this.#Fe.setSelected(t)}toggleSelected(t){this.#Fe.toggleSelected(t)}isSelected(t){return this.#Fe.isSelected(t)}unselect(t){this.#Fe.unselect(t)}pointerup(t){var e=i.FeatureTest.platform["isMac"];0!==t.button||t.ctrlKey&&e||t.target!==this.div||!this.#Pe||(this.#Pe=!1,this.#Ee?this.#Fe.getMode()!==i.AnnotationEditorType.STAMP?this.#De(t,!1):this.#Fe.unselectAll():this.#Ee=!0)}pointerdown(t){var e;this.#Pe?this.#Pe=!1:(e=i.FeatureTest.platform.isMac,0!==t.button||t.ctrlKey&&e||t.target===this.div&&(this.#Pe=!0,e=this.#Fe.getActive(),this.#Ee=!e||e.isEmpty()))}findNewParent(t,e,r){e=this.#Fe.findParent(e,r);return null!==e&&e!==this&&(e.changeParent(t),!0)}destroy(){this.#Fe.getActive()?.parent===this&&(this.#Fe.commitOrRemove(),this.#Fe.setActiveEditor(null));for(const t of this.#Te.values())this.#Se?.removePointerInTextLayer(t.contentDiv),t.setParent(null),t.isAttachedToDOM=!1,t.div.remove();this.div=null,this.#Te.clear(),this.#Fe.removeLayer(this)}#Re(){this.#ke=!0;for(const t of this.#Te.values())t.isEmpty()&&t.remove();this.#ke=!1}render(t){t=t.viewport;this.viewport=t,(0,n.setLayerDimensions)(this.div,t);for(const t of this.#Fe.getEditors(this.pageIndex))this.add(t);this.updateMode()}update(t){t=t.viewport;this.#Fe.commitOrRemove(),this.viewport=t,(0,n.setLayerDimensions)(this.div,{rotation:t.rotation}),this.updateMode()}get pageDimensions(){var{pageWidth:t,pageHeight:e}=this.viewport.rawDims;return[t,e]}}e.AnnotationEditorLayer=d},(t,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.FreeTextEditor=void 0,r(89);var h=r(1),u=r(165),i=r(164),c=r(198);class s extends i.AnnotationEditor{#Le=this.editorDivBlur.bind(this);#Ne=this.editorDivFocus.bind(this);#Be=this.editorDivInput.bind(this);#je=this.editorDivKeydown.bind(this);#Ue;#ze="";#We=this.id+"-editor";#He;#qe=null;static _freeTextDefaultContent="";static _internalPadding=0;static _defaultColor=null;static _defaultFontSize=10;static get _keyboardManager(){var t=s.prototype,e=t=>t.isEmpty(),r=u.AnnotationEditorUIManager.TRANSLATE_SMALL,i=u.AnnotationEditorUIManager.TRANSLATE_BIG;return(0,h.shadow)(this,"_keyboardManager",new u.KeyboardManager([[["ctrl+s","mac+meta+s","ctrl+p","mac+meta+p"],t.commitOrRemove,{bubbles:!0}],[["ctrl+Enter","mac+meta+Enter","Escape","mac+Escape"],t.commitOrRemove],[["ArrowLeft","mac+ArrowLeft"],t._translateEmpty,{args:[-r,0],checker:e}],[["ctrl+ArrowLeft","mac+shift+ArrowLeft"],t._translateEmpty,{args:[-i,0],checker:e}],[["ArrowRight","mac+ArrowRight"],t._translateEmpty,{args:[r,0],checker:e}],[["ctrl+ArrowRight","mac+shift+ArrowRight"],t._translateEmpty,{args:[i,0],checker:e}],[["ArrowUp","mac+ArrowUp"],t._translateEmpty,{args:[0,-r],checker:e}],[["ctrl+ArrowUp","mac+shift+ArrowUp"],t._translateEmpty,{args:[0,-i],checker:e}],[["ArrowDown","mac+ArrowDown"],t._translateEmpty,{args:[0,r],checker:e}],[["ctrl+ArrowDown","mac+shift+ArrowDown"],t._translateEmpty,{args:[0,i],checker:e}]]))}static _type="freetext";constructor(t){super({...t,name:"freeTextEditor"}),this.#Ue=t.color||s._defaultColor||i.AnnotationEditor._defaultLineColor,this.#He=t.fontSize||s._defaultFontSize}static initialize(t){i.AnnotationEditor.initialize(t,{strings:["free_text2_default_content","editor_free_text2_aria_label"]});t=getComputedStyle(document.documentElement);this._internalPadding=parseFloat(t.getPropertyValue("--freetext-padding"))}static updateDefaultParams(t,e){switch(t){case h.AnnotationEditorParamsType.FREETEXT_SIZE:s._defaultFontSize=e;break;case h.AnnotationEditorParamsType.FREETEXT_COLOR:s._defaultColor=e}}updateParams(t,e){switch(t){case h.AnnotationEditorParamsType.FREETEXT_SIZE:this.#Ge(e);break;case h.AnnotationEditorParamsType.FREETEXT_COLOR:this.#Ve(e)}}static get defaultPropertiesToUpdate(){return[[h.AnnotationEditorParamsType.FREETEXT_SIZE,s._defaultFontSize],[h.AnnotationEditorParamsType.FREETEXT_COLOR,s._defaultColor||i.AnnotationEditor._defaultLineColor]]}get propertiesToUpdate(){return[[h.AnnotationEditorParamsType.FREETEXT_SIZE,this.#He],[h.AnnotationEditorParamsType.FREETEXT_COLOR,this.#Ue]]}#Ge(t){const e=t=>{this.editorDiv.style.fontSize=`calc(${t}px * var(--scale-factor))`,this.translate(0,-(t-this.#He)*this.parentScale),this.#He=t,this.#$e()},r=this.#He;this.addCommands({cmd:()=>{e(t)},undo:()=>{e(r)},mustExec:!0,type:h.AnnotationEditorParamsType.FREETEXT_SIZE,overwriteIfSameType:!0,keepUndo:!0})}#Ve(t){const e=this.#Ue;this.addCommands({cmd:()=>{this.#Ue=this.editorDiv.style.color=t},undo:()=>{this.#Ue=this.editorDiv.style.color=e},mustExec:!0,type:h.AnnotationEditorParamsType.FREETEXT_COLOR,overwriteIfSameType:!0,keepUndo:!0})}_translateEmpty(t,e){this._uiManager.translateSelectedEditors(t,e,!0)}getInitialTranslation(){var t=this.parentScale;return[-s._internalPadding*t,-(s._internalPadding+this.#He)*t]}rebuild(){this.parent&&(super.rebuild(),null===this.div||this.isAttachedToDOM||this.parent.add(this))}enableEditMode(){this.isInEditMode()||(this.parent.setEditingState(!1),this.parent.updateToolbar(h.AnnotationEditorType.FREETEXT),super.enableEditMode(),this.overlayDiv.classList.remove("enabled"),this.editorDiv.contentEditable=!0,this._isDraggable=!1,this.div.removeAttribute("aria-activedescendant"),this.editorDiv.addEventListener("keydown",this.#je),this.editorDiv.addEventListener("focus",this.#Ne),this.editorDiv.addEventListener("blur",this.#Le),this.editorDiv.addEventListener("input",this.#Be))}disableEditMode(){this.isInEditMode()&&(this.parent.setEditingState(!0),super.disableEditMode(),this.overlayDiv.classList.add("enabled"),this.editorDiv.contentEditable=!1,this.div.setAttribute("aria-activedescendant",this.#We),this._isDraggable=!0,this.editorDiv.removeEventListener("keydown",this.#je),this.editorDiv.removeEventListener("focus",this.#Ne),this.editorDiv.removeEventListener("blur",this.#Le),this.editorDiv.removeEventListener("input",this.#Be),this.div.focus({preventScroll:!0}),this.isEditing=!1,this.parent.div.classList.add("freeTextEditing"))}focusin(t){this._focusEventsAllowed&&(super.focusin(t),t.target!==this.editorDiv)&&this.editorDiv.focus()}onceAdded(){this.width?this.#Xe():(this.enableEditMode(),this.editorDiv.focus(),this._initialOptions?.isCentered&&this.center(),this._initialOptions=null)}isEmpty(){return!this.editorDiv||""===this.editorDiv.innerText.trim()}remove(){this.isEditing=!1,this.parent&&(this.parent.setEditingState(!0),this.parent.div.classList.add("freeTextEditing")),super.remove()}#Ke(){var t=this.editorDiv.getElementsByTagName("div");if(0===t.length)return this.editorDiv.innerText;var e=[];for(const r of t)e.push(r.innerText.replace(/\r\n?|\n/,""));return e.join("\n")}#$e(){const[t,e]=this.parentDimensions;let r;if(this.isAttachedToDOM)r=this.div.getBoundingClientRect();else{const{currentLayer:t,div:e}=this,i=e.style.display;e.style.display="hidden",t.div.append(this.div),r=e.getBoundingClientRect(),e.remove(),e.style.display=i}this.rotation%180==this.parentRotation%180?(this.width=r.width/t,this.height=r.height/e):(this.width=r.height/t,this.height=r.width/e),this.fixAndSetPosition()}commit(){if(this.isInEditMode()){super.commit(),this.disableEditMode();const t=this.#ze,e=this.#ze=this.#Ke().trimEnd();if(t!==e){const r=t=>{(this.#ze=t)?(this.#Ye(),this._uiManager.rebuild(this),this.#$e()):this.remove()};this.addCommands({cmd:()=>{r(e)},undo:()=>{r(t)},mustExec:!1}),this.#$e()}}}shouldGetKeyboardEvents(){return this.isInEditMode()}enterInEditMode(){this.enableEditMode(),this.editorDiv.focus()}dblclick(t){this.enterInEditMode()}keydown(t){t.target===this.div&&"Enter"===t.key&&(this.enterInEditMode(),t.preventDefault())}editorDivKeydown(t){s._keyboardManager.exec(this,t)}editorDivFocus(t){this.isEditing=!0}editorDivBlur(t){this.isEditing=!1}editorDivInput(t){this.parent.div.classList.toggle("freeTextEditing",this.isEmpty())}disableEditing(){this.editorDiv.setAttribute("role","comment"),this.editorDiv.removeAttribute("aria-multiline")}enableEditing(){this.editorDiv.setAttribute("role","textbox"),this.editorDiv.setAttribute("aria-multiline",!0)}render(){if(!this.div){let s,n;this.width&&(s=this.x,n=this.y),super.render(),this.editorDiv=document.createElement("div"),this.editorDiv.className="internal",this.editorDiv.setAttribute("id",this.#We),this.enableEditing(),i.AnnotationEditor._l10nPromise.get("editor_free_text2_aria_label").then(t=>this.editorDiv?.setAttribute("aria-label",t)),i.AnnotationEditor._l10nPromise.get("free_text2_default_content").then(t=>this.editorDiv?.setAttribute("default-content",t)),this.editorDiv.contentEditable=!0;const c=this.editorDiv["style"];if(c.fontSize=`calc(${this.#He}px * var(--scale-factor))`,c.color=this.#Ue,this.div.append(this.editorDiv),this.overlayDiv=document.createElement("div"),this.overlayDiv.classList.add("overlay","enabled"),this.div.append(this.overlayDiv),(0,u.bindEvents)(this,this.div,["dblclick","keydown"]),this.width){const[c,d]=this.parentDimensions;if(this.annotationElementId){const u=this.#qe["position"];let[t,e]=this.getInitialTranslation();[t,e]=this.pageTranslationToScreen(t,e);var[a,o]=this.pageDimensions,[l,h]=this.pageTranslation;let r,i;switch(this.rotation){case 0:r=s+(u[0]-l)/a,i=n+this.height-(u[1]-h)/o;break;case 90:r=s+(u[0]-l)/a,i=n-(u[1]-h)/o,[t,e]=[e,-t];break;case 180:r=s-this.width+(u[0]-l)/a,i=n-(u[1]-h)/o,[t,e]=[-t,-e];break;case 270:r=s+(u[0]-l-this.height*o)/a,i=n+(u[1]-h-this.width*a)/o,[t,e]=[-e,t]}this.setAt(r*c,i*d,t,e)}else this.setAt(s*c,n*d,this.width*c,this.height*d);this.#Ye(),this._isDraggable=!0,this.editorDiv.contentEditable=!1}else this._isDraggable=!1,this.editorDiv.contentEditable=!0}return this.div}#Ye(){if(this.editorDiv.replaceChildren(),this.#ze)for(const e of this.#ze.split("\n")){var t=document.createElement("div");t.append(e?document.createTextNode(e):document.createElement("br")),this.editorDiv.append(t)}}get contentDiv(){return this.editorDiv}static deserialize(t,e,r){let i=null;if(t instanceof c.FreeTextAnnotationElement){const{data:{defaultAppearanceData:{fontSize:e,fontColor:r},rect:s,rotation:c,id:n},textContent:a,textPosition:o,parent:{page:{pageNumber:l}}}=t;if(!a||0===a.length)return null;i=t={annotationType:h.AnnotationEditorType.FREETEXT,color:Array.from(r),fontSize:e,value:a.join("\n"),position:o,pageIndex:l-1,rect:s,rotation:c,id:n,deleted:!1}}const s=super.deserialize(t,e,r);return s.#He=t.fontSize,s.#Ue=h.Util.makeHexColor(...t.color),s.#ze=t.value,s.annotationElementId=t.id||null,s.#qe=i,s}serialize(){var t=01<=Math.abs(t-s[e]))||t.color.some((t,e)=>t!==i[e])||t.pageIndex!==n}#Xe(){var t=0this.#Xe(!0),0))}}e.FreeTextEditor=s},(L,t,e)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.StampAnnotationElement=t.InkAnnotationElement=t.FreeTextAnnotationElement=t.AnnotationLayer=void 0,e(89),e(125),e(136),e(138),e(141),e(143),e(145),e(147);var u=e(1),d=e(168),n=e(163),s=e(199),a=e(200),p=e(201);const f=new WeakSet;function g(t){return{width:t[2]-t[0],height:t[3]-t[1]}}class o{static create(t){switch(t.data.annotationType){case u.AnnotationType.LINK:return new r(t);case u.AnnotationType.TEXT:return new l(t);case u.AnnotationType.WIDGET:switch(t.data.fieldType){case"Tx":return new h(t);case"Btn":return new(t.data.radioButton?_:t.data.checkBox?v:b)(t);case"Ch":return new y(t);case"Sig":return new c(t)}return new m(t);case u.AnnotationType.POPUP:return new A(t);case u.AnnotationType.FREETEXT:return new x(t);case u.AnnotationType.LINE:return new w(t);case u.AnnotationType.SQUARE:return new E(t);case u.AnnotationType.CIRCLE:return new T(t);case u.AnnotationType.POLYLINE:return new C(t);case u.AnnotationType.CARET:return new k(t);case u.AnnotationType.INK:return new M(t);case u.AnnotationType.POLYGON:return new P(t);case u.AnnotationType.HIGHLIGHT:return new R(t);case u.AnnotationType.UNDERLINE:return new F(t);case u.AnnotationType.SQUIGGLY:return new D(t);case u.AnnotationType.STRIKEOUT:return new I(t);case u.AnnotationType.STAMP:return new O(t);case u.AnnotationType.FILEATTACHMENT:return new N(t);default:return new i(t)}}}class i{#Qe=!1;constructor(t){var{isRenderable:e=!1,ignoreBorder:r=!1,createQuadrilaterals:i=!1}=1{var t=r.detail[t],i=t[0],t=t.slice(1);r.target.style[e]=s.ColorConverters[i+"_HTML"](t),this.annotationStorage.setValue(this.data.id,{[e]:s.ColorConverters[i+"_rgb"](t)})};return(0,u.shadow)(this,"_commonActions",{display:t=>{var t=t.detail["display"],e=t%2==1;this.container.style.visibility=e?"hidden":"visible",this.annotationStorage.setValue(this.data.id,{noView:e,noPrint:1===t||2===t})},print:t=>{this.annotationStorage.setValue(this.data.id,{noPrint:!t.detail.print})},hidden:t=>{t=t.detail.hidden;this.container.style.visibility=t?"hidden":"visible",this.annotationStorage.setValue(this.data.id,{noPrint:t,noView:t})},focus:t=>{setTimeout(()=>t.target.focus({preventScroll:!1}),0)},userName:t=>{t.target.title=t.detail.userName},readonly:t=>{t.target.disabled=t.detail.readonly},required:t=>{this._setRequired(t.target,t.detail.required)},bgColor:t=>{e("bgColor","backgroundColor",t)},fillColor:t=>{e("fillColor","backgroundColor",t)},fgColor:t=>{e("fgColor","color",t)},textColor:t=>{e("textColor","color",t)},borderColor:t=>{e("borderColor","borderColor",t)},strokeColor:t=>{e("strokeColor","borderColor",t)},rotation:t=>{t=t.detail.rotation;this.setRotation(t),this.annotationStorage.setValue(this.data.id,{rotation:t})}})}_dispatchEventFromSandbox(t,e){var r=this._commonActions;for(const i of Object.keys(e.detail))(t[i]||r[i])?.(e)}_setDefaultPropertiesFromJS(t){if(this.enableScripting){var e=this.annotationStorage.getRawValue(this.data.id);if(e){var r,i,s=this._commonActions;for([r,i]of Object.entries(e)){var n=s[r];n&&(n({detail:{[r]:i},target:t}),delete e[r])}}}}_createQuadrilaterals(){if(this.container){const e=this.data["quadPoints"];if(e){const[r,i,s,n]=this.data.rect;if(1===e.length){const[,{x:a,y:t},{x:o,y:l}]=e[0];if(s===a&&n===t&&r===o&&i===l)return}const a=this.container["style"];let t;if(this.#Qe){const{borderColor:e,borderWidth:r}=a;a.borderWidth=0,t=["url('data:image/svg+xml;utf8,",'',``],this.container.classList.add("hasBorder")}const o=s-r,l=n-i,h=this["svgFactory"],c=h.createElement("svg"),d=(c.classList.add("quadrilateralsContainer"),c.setAttribute("width",0),c.setAttribute("height",0),h.createElement("defs")),u=(c.append(d),h.createElement("clipPath")),p="clippath_"+this.data.id;u.setAttribute("id",p),u.setAttribute("clipPathUnits","objectBoundingBox"),d.append(u);for(const[,{x:i,y:s},{x:a,y:c}]of e){const e=h.createElement("rect"),d=(a-r)/o,p=(n-s)/l,f=(i-a)/o,g=(s-c)/l;e.setAttribute("x",d),e.setAttribute("y",p),e.setAttribute("width",f),e.setAttribute("height",g),u.append(e),t?.push(``)}this.#Qe&&(t.push("')"),a.backgroundImage=t.join("")),this.container.append(c),this.container.style.clipPath=`url(#${p})`}}}_createPopup(){var{container:t,data:e}=this,t=(t.setAttribute("aria-haspopup","dialog"),new A({data:{color:e.color,titleObj:e.titleObj,modificationDate:e.modificationDate,contentsObj:e.contentsObj,richText:e.richText,parentRect:e.rect,borderStyle:0,id:"popup_"+e.id,rotation:e.rotation},parent:this.parent,elements:[this]}));this.parent.div.append(t.render())}render(){(0,u.unreachable)("Abstract method `AnnotationElement.render` called")}_getElementsByName(t){var e=1{this.linkService.eventBus?.dispatch("switchannotationeditormode",{source:this,mode:t,editId:e})})}}class r extends i{constructor(t){super(t,{isRenderable:!0,ignoreBorder:!!(1(e&&this.linkService.goToDestination(e),!1),!e&&""!==e||this.#tn()}_bindNamedAction(t,e){t.href=this.linkService.getAnchorUrl(""),t.onclick=()=>(this.linkService.executeNamedAction(e),!1),this.#tn()}_bindAttachment(t,e){t.href=this.linkService.getAnchorUrl(""),t.onclick=()=>(this.downloadManager?.openOrDownloadData(this.container,e.content,e.filename),!1),this.#tn()}#Ze(t,e){t.href=this.linkService.getAnchorUrl(""),t.onclick=()=>(this.linkService.executeSetOCGState(e),!1),this.#tn()}_bindJSAction(t,e){t.href=this.linkService.getAnchorUrl("");var r=new Map([["Action","onclick"],["Mouse Up","onmouseup"],["Mouse Down","onmousedown"]]);for(const s of Object.keys(e.actions)){var i=r.get(s);i&&(t[i]=()=>(this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:e.id,name:s}}),!1))}t.onclick||(t.onclick=()=>!1),this.#tn()}_bindResetFormAction(t,a){const o=t.onclick;o||(t.href=this.linkService.getAnchorUrl("")),this.#tn(),this._fieldObjects?t.onclick=()=>{o?.();const{fields:t,refs:e,include:r}=a,i=[];if(0!==t.length||0!==e.length){const a=new Set(e);for(const o of t){const t=this._fieldObjects[o]||[];for(const{id:o}of t)a.add(o)}for(const t of Object.values(this._fieldObjects))for(const o of t)a.has(o.id)===r&&i.push(o)}else for(const t of Object.values(this._fieldObjects))i.push(...t);var s=this.annotationStorage,n=[];for(const t of i){const a=t["id"];switch(n.push(a),t.type){case"text":{const o=t.defaultValue||"";s.setValue(a,{value:o});break}case"checkbox":case"radiobutton":{const o=t.defaultValue===t.exportValues;s.setValue(a,{value:o});break}case"combobox":case"listbox":{const o=t.defaultValue||"";s.setValue(a,{value:o});break}default:continue}const o=document.querySelector(`[data-element-id="${a}"]`);o&&(f.has(o)?o.dispatchEvent(new Event("resetform")):(0,u.warn)("_bindResetFormAction - element not allowed: "+a))}return this.enableScripting&&this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:"app",ids:n,name:"ResetForm"}}),!1}:((0,u.warn)('_bindResetFormAction - "resetForm" action not supported, ensure that the `fieldObjects` parameter is provided.'),o||(t.onclick=()=>!1))}}class l extends i{constructor(t){super(t,{isRenderable:!0})}render(){this.container.classList.add("textAnnotation");var t=document.createElement("img");return t.src=this.imageResourcesPath+"annotation-"+this.data.name.toLowerCase()+".svg",t.alt="[{{type}} Annotation]",t.dataset.l10nId="text_annotation_type",t.dataset.l10nArgs=JSON.stringify({type:this.data.name}),!this.data.popupRef&&this.hasPopupData&&this._createPopup(),this.container.append(t),this.container}}class m extends i{render(){return this.data.alternativeText&&(this.container.title=this.data.alternativeText),this.container}showElementAndHideCanvas(t){this.data.hasOwnCanvas&&("CANVAS"===t.previousSibling?.nodeName&&(t.previousSibling.hidden=!0),t.hidden=!1)}_getKeyModifier(t){var{isWin:e,isMac:r}=u.FeatureTest.platform;return e&&t.ctrlKey||r&&t.metaKey}_setEventListener(t,e,r,i,s){r.includes("mouse")?t.addEventListener(r,t=>{this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:this.data.id,name:i,value:s(t),shift:t.shiftKey,modifier:this._getKeyModifier(t)}})}):t.addEventListener(r,t=>{if("blur"===r){if(!e.focused||!t.relatedTarget)return;e.focused=!1}else if("focus"===r){if(e.focused)return;e.focused=!0}s&&this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:this.data.id,name:i,value:s(t)}})})}_setEventListeners(t,e,r,i){for(var[s,n]of r)"Action"!==n&&!this.data.actions?.[n]||("Focus"!==n&&"Blur"!==n||(e||={focused:!1}),this._setEventListener(t,e,s,n,i),"Focus"!==n||this.data.actions?.Blur?"Blur"!==n||this.data.actions?.Focus||this._setEventListener(t,e,"focus","Focus",null):this._setEventListener(t,e,"blur","Blur",null))}_setBackgroundColor(t){var e=this.data.backgroundColor||null;t.style.backgroundColor=null===e?"transparent":u.Util.makeHexColor(e[0],e[1],e[2])}_setTextStyle(t){const e=["left","center","right"],r=this.data.defaultAppearanceData["fontColor"],i=this.data.defaultAppearanceData.fontSize||9,s=t.style;let n;var a=t=>Math.round(10*t)/10;if(this.data.multiLine){const t=Math.abs(this.data.rect[3]-this.data.rect[1]-2),e=t/(Math.round(t/(u.LINE_FACTOR*i))||1);n=Math.min(i,a(e/u.LINE_FACTOR))}else{const t=Math.abs(this.data.rect[3]-this.data.rect[1]-2);n=Math.min(i,a(t/u.LINE_FACTOR))}s.fontSize=`calc(${n}px * var(--scale-factor))`,s.color=u.Util.makeHexColor(r[0],r[1],r[2]),null!==this.data.textAlignment&&(s.textAlign=e[this.data.textAlignment])}_setRequired(t,e){e?t.setAttribute("required",!0):t.removeAttribute("required"),t.setAttribute("aria-required",e)}}class h extends m{constructor(t){super(t,{isRenderable:t.renderForms||!t.data.hasAppearance&&!!t.data.fieldValue})}setPropertyOnSiblings(t,e,r,i){var s=this.annotationStorage;for(const n of this._getElementsByName(t.name,t.id))n.domElement&&(n.domElement[e]=r),s.setValue(n.id,{[i]:r})}render(){const i=this.annotationStorage,l=this.data.id;this.container.classList.add("textWidgetAnnotation");let s=null;if(this.renderForms){var n=i.getValue(l,{value:this.data.fieldValue});let t=n.value||"";var a=i.getValue(l,{charLimit:this.data.maxLen}).charLimit;a&&t.length>a&&(t=t.slice(0,a));let e=n.formattedValue||this.data.textContent?.join("\n")||null;e&&this.data.comb&&(e=e.replaceAll(/\s+/g,""));const h={userValue:t,formattedValue:e,lastCommittedValue:null,commitKey:1,focused:!1};this.data.multiLine?((s=document.createElement("textarea")).textContent=e??t,this.data.doNotScroll&&(s.style.overflowY="hidden")):((s=document.createElement("input")).type="text",s.setAttribute("value",e??t),this.data.doNotScroll&&(s.style.overflowX="hidden")),this.data.hasOwnCanvas&&(s.hidden=!0),f.add(s),s.setAttribute("data-element-id",l),s.disabled=this.data.readOnly,s.name=this.data.fieldName,s.tabIndex=1e3,this._setRequired(s,this.data.required),a&&(s.maxLength=a),s.addEventListener("input",t=>{i.setValue(l,{value:t.target.value}),this.setPropertyOnSiblings(s,"value",t.target.value,"value"),h.formattedValue=null}),s.addEventListener("resetform",t=>{var e=this.data.defaultFieldValue??"";s.value=h.userValue=e,h.formattedValue=null});let r=t=>{var e=h["formattedValue"];null!=e&&(t.target.value=e),t.target.scrollLeft=0};if(this.enableScripting&&this.hasJSActions){s.addEventListener("focus",t=>{h.focused||(t=t["target"],h.userValue&&(t.value=h.userValue),h.lastCommittedValue=t.value,h.commitKey=1,h.focused=!0)}),s.addEventListener("updatefromsandbox",t=>{this.showElementAndHideCanvas(t.target),this._dispatchEventFromSandbox({value(t){h.userValue=t.detail.value??"",i.setValue(l,{value:h.userValue.toString()}),t.target.value=h.userValue},formattedValue(t){var e=t.detail["formattedValue"];null!=(h.formattedValue=e)&&t.target!==document.activeElement&&(t.target.value=e),i.setValue(l,{formattedValue:e})},selRange(t){t.target.setSelectionRange(...t.detail.selRange)},charLimit:e=>{var r=e.detail["charLimit"],e=e["target"];if(0===r)e.removeAttribute("maxLength");else{e.setAttribute("maxLength",r);let t=h.userValue;!t||t.length<=r||(t=t.slice(0,r),e.value=h.userValue=t,i.setValue(l,{value:t}),this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:l,name:"Keystroke",value:t,willCommit:!0,commitKey:1,selStart:e.selectionStart,selEnd:e.selectionEnd}}))}}},t)}),s.addEventListener("keydown",t=>{let e=-(h.commitKey=1);var r;"Escape"===t.key?e=0:"Enter"!==t.key||this.data.multiLine?"Tab"===t.key&&(h.commitKey=3):e=2,-1!==e&&(r=t.target.value,h.lastCommittedValue!==r)&&(h.lastCommittedValue=r,h.userValue=r,this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:l,name:"Keystroke",value:r,willCommit:!0,commitKey:e,selStart:t.target.selectionStart,selEnd:t.target.selectionEnd}}))});const o=r;r=null,s.addEventListener("blur",t=>{var e;h.focused&&t.relatedTarget&&(h.focused=!1,e=t.target["value"],h.userValue=e,h.lastCommittedValue!==e&&this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:l,name:"Keystroke",value:e,willCommit:!0,commitKey:h.commitKey,selStart:t.target.selectionStart,selEnd:t.target.selectionEnd}}),o(t))}),this.data.actions?.Keystroke&&s.addEventListener("beforeinput",t=>{h.lastCommittedValue=null;var{data:e,target:r}=t,{value:i,selectionStart:s,selectionEnd:n}=r;let a=s,o=n;switch(t.inputType){case"deleteWordBackward":{const t=i.substring(0,s).match(/\w*[^\w]*$/);t&&(a-=t[0].length);break}case"deleteWordForward":{const t=i.substring(s).match(/^[^\w]*\w*/);t&&(o+=t[0].length);break}case"deleteContentBackward":s===n&&--a;break;case"deleteContentForward":s===n&&(o+=1)}t.preventDefault(),this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:l,name:"Keystroke",value:i,change:e||"",willCommit:!1,selStart:a,selEnd:o}})}),this._setEventListeners(s,h,[["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"]],t=>t.target.value)}if(r&&s.addEventListener("blur",r),this.data.comb){const i=(this.data.rect[2]-this.data.rect[0])/a;s.classList.add("comb"),s.style.letterSpacing=`calc(${i}px * var(--scale-factor) - 1ch)`}}else(s=document.createElement("div")).textContent=this.data.fieldValue,s.style.verticalAlign="middle",s.style.display="table-cell";return this._setTextStyle(s),this._setBackgroundColor(s),this._setDefaultPropertiesFromJS(s),this.container.append(s),this.container}}class c extends m{constructor(t){super(t,{isRenderable:!!t.data.hasOwnCanvas})}}class v extends m{constructor(t){super(t,{isRenderable:t.renderForms})}render(){const i=this.annotationStorage,s=this.data,n=s.id;let t=i.getValue(n,{value:s.exportValue===s.fieldValue}).value;"string"==typeof t&&(t="Off"!==t,i.setValue(n,{value:t})),this.container.classList.add("buttonWidgetAnnotation","checkBox");var e=document.createElement("input");return f.add(e),e.setAttribute("data-element-id",n),e.disabled=s.readOnly,this._setRequired(e,this.data.required),e.type="checkbox",e.name=s.fieldName,t&&e.setAttribute("checked",!0),e.setAttribute("exportValue",s.exportValue),e.tabIndex=1e3,e.addEventListener("change",t=>{var{name:e,checked:r}=t.target;for(const t of this._getElementsByName(e,n)){const n=r&&t.exportValue===s.exportValue;t.domElement&&(t.domElement.checked=n),i.setValue(t.id,{value:n})}i.setValue(n,{value:r})}),e.addEventListener("resetform",t=>{var e=s.defaultFieldValue||"Off";t.target.checked=e===s.exportValue}),this.enableScripting&&this.hasJSActions&&(e.addEventListener("updatefromsandbox",t=>{this._dispatchEventFromSandbox({value(t){t.target.checked="Off"!==t.detail.value,i.setValue(n,{value:t.target.checked})}},t)}),this._setEventListeners(e,null,[["change","Validate"],["change","Action"],["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"]],t=>t.target.checked)),this._setBackgroundColor(e),this._setDefaultPropertiesFromJS(e),this.container.append(e),this.container}}class _ extends m{constructor(t){super(t,{isRenderable:t.renderForms})}render(){this.container.classList.add("buttonWidgetAnnotation","radioButton");const r=this.annotationStorage,i=this.data,s=i.id;let n=r.getValue(s,{value:i.fieldValue===i.buttonValue}).value;"string"==typeof n&&(n=n!==i.buttonValue,r.setValue(s,{value:n}));var t=document.createElement("input");if(f.add(t),t.setAttribute("data-element-id",s),t.disabled=i.readOnly,this._setRequired(t,this.data.required),t.type="radio",t.name=i.fieldName,n&&t.setAttribute("checked",!0),t.tabIndex=1e3,t.addEventListener("change",t=>{var{name:e,checked:t}=t.target;for(const t of this._getElementsByName(e,s))r.setValue(t.id,{value:!1});r.setValue(s,{value:t})}),t.addEventListener("resetform",t=>{var e=i.defaultFieldValue;t.target.checked=null!=e&&e===i.buttonValue}),this.enableScripting&&this.hasJSActions){const n=i.buttonValue;t.addEventListener("updatefromsandbox",t=>{this._dispatchEventFromSandbox({value:t=>{var e=n===t.detail.value;for(const n of this._getElementsByName(t.target.name)){const t=e&&n.id===s;n.domElement&&(n.domElement.checked=t),r.setValue(n.id,{value:t})}}},t)}),this._setEventListeners(t,null,[["change","Validate"],["change","Action"],["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"]],t=>t.target.checked)}return this._setBackgroundColor(t),this._setDefaultPropertiesFromJS(t),this.container.append(t),this.container}}class b extends r{constructor(t){super(t,{ignoreBorder:t.data.hasAppearance})}render(){var t=super.render(),e=(t.classList.add("buttonWidgetAnnotation","pushButton"),this.data.alternativeText&&(t.title=this.data.alternativeText),t.lastChild);return this.enableScripting&&this.hasJSActions&&e&&(this._setDefaultPropertiesFromJS(e),e.addEventListener("updatefromsandbox",t=>{this._dispatchEventFromSandbox({},t)})),t}}class y extends m{constructor(t){super(t,{isRenderable:t.renderForms})}render(){this.container.classList.add("choiceWidgetAnnotation");const n=this.annotationStorage,a=this.data.id,t=n.getValue(a,{value:this.data.fieldValue}),o=document.createElement("select");f.add(o),o.setAttribute("data-element-id",a),o.disabled=this.data.readOnly,this._setRequired(o,this.data.required),o.name=this.data.fieldName,o.tabIndex=1e3;let e=this.data.combo&&0{var e=this.data.defaultFieldValue;for(const t of o.options)t.selected=t.value===e});for(const n of this.data.options){const a=document.createElement("option");a.textContent=n.displayValue,a.value=n.exportValue,t.value.includes(n.exportValue)&&(a.setAttribute("selected",!0),e=!1),o.append(a)}let r=null;if(e){const n=document.createElement("option");n.value=" ",n.setAttribute("hidden",!0),n.setAttribute("selected",!0),o.prepend(n),r=()=>{n.remove(),o.removeEventListener("input",r),r=null},o.addEventListener("input",r)}const l=t=>{const e=t?"value":"textContent",{options:r,multiple:i}=o;return i?Array.prototype.filter.call(r,t=>t.selected).map(t=>t[e]):-1===r.selectedIndex?null:r[r.selectedIndex][e]};let h=l(!1);const c=t=>{t=t.target.options;return Array.prototype.map.call(t,t=>({displayValue:t.textContent,exportValue:t.value}))};return this.enableScripting&&this.hasJSActions?(o.addEventListener("updatefromsandbox",t=>{this._dispatchEventFromSandbox({value(t){r?.();var t=t.detail.value,e=new Set(Array.isArray(t)?t:[t]);for(const n of o.options)n.selected=e.has(n.value);n.setValue(a,{value:l(!0)}),h=l(!1)},multipleSelection(t){o.multiple=!0},remove(t){var e=o.options,r=t.detail.remove;e[r].selected=!1,o.remove(r),0t.selected)&&(e[0].selected=!0),n.setValue(a,{value:l(!0),items:c(t)}),h=l(!1)},clear(t){for(;0!==o.length;)o.remove(0);n.setValue(a,{value:null,items:[]}),h=l(!1)},insert(t){var{index:e,displayValue:r,exportValue:i}=t.detail.insert,e=o.children[e],s=document.createElement("option");s.textContent=r,s.value=i,e?e.before(s):o.append(s),n.setValue(a,{value:l(!0),items:c(t)}),h=l(!1)},items(t){const e=t.detail["items"];for(;0!==o.length;)o.remove(0);for(const n of e){const{displayValue:a,exportValue:t}=n,e=document.createElement("option");e.textContent=a,e.value=t,o.append(e)}0{var e=l(!0);n.setValue(a,{value:e}),t.preventDefault(),this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:a,name:"Keystroke",value:h,changeEx:e,willCommit:!1,commitKey:1,keyDown:!1}})}),this._setEventListeners(o,null,[["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"],["input","Action"],["input","Validate"]],t=>t.target.value)):o.addEventListener("input",function(t){n.setValue(a,{value:l(!0)})}),this.data.combo&&this._setTextStyle(o),this._setBackgroundColor(o),this._setDefaultPropertiesFromJS(o),this.container.append(o),this.container}}class A extends i{constructor(t){var{data:e,elements:r}=t;super(t,{isRenderable:i._hasPopupData(e)}),this.elements=r}render(){this.container.classList.add("popupAnnotation");var t=new S({container:this.container,color:this.data.color,titleObj:this.data.titleObj,modificationDate:this.data.modificationDate,contentsObj:this.data.contentsObj,richText:this.data.richText,rect:this.data.rect,parentRect:this.data.parentRect||null,parent:this.parent,elements:this.elements,open:this.data.open}),e=[];for(const r of this.elements)r.popup=t,e.push(r.data.id),r.addHighlightArea();return this.container.setAttribute("aria-controls",e.map(t=>""+u.AnnotationPrefix+t).join(",")),this.container}}class S{#en=null;#nn=this.#in.bind(this);#rn=this.#sn.bind(this);#an=this.#on.bind(this);#ln=this.#cn.bind(this);#Ue=null;#Rt=null;#hn=null;#dn=null;#un=null;#pn=null;#fn=!1;#gn=null;#mn=null;#bn=null;#vn=null;#yn=!1;constructor(t){var{container:t,color:e,elements:r,titleObj:i,modificationDate:s,contentsObj:n,richText:a,parent:o,rect:l,parentRect:h,open:c}=t,t=(this.#Rt=t,this.#vn=i,this.#hn=n,this.#bn=a,this.#un=o,this.#Ue=e,this.#mn=l,this.#pn=h,this.#dn=r,d.PDFDateString.toDateObject(s));t&&(this.#en=o.l10n.get("annotation_date_string",{date:t.toLocaleDateString(),time:t.toLocaleTimeString()})),this.trigger=r.flatMap(t=>t.getElementsToTriggerPopup());for(const t of this.trigger)t.addEventListener("click",this.#ln),t.addEventListener("mouseenter",this.#an),t.addEventListener("mouseleave",this.#rn),t.classList.add("popupTriggerArea");for(const t of r)t.container?.addEventListener("keydown",this.#nn);this.#Rt.hidden=!0,c&&this.#cn()}render(){if(!this.#gn){const{page:{view:n},viewport:{rawDims:{pageWidth:a,pageHeight:o,pageX:l,pageY:h}}}=this.#un,c=this.#gn=document.createElement("div");if(c.className="popup",this.#Ue){const n=c.style.outlineColor=u.Util.makeHexColor(...this.#Ue);if(CSS.supports("background-color","color-mix(in srgb, red 30%, white)"))c.style.backgroundColor=`color-mix(in srgb, ${n} 30%, white)`;else{const n=.7;c.style.backgroundColor=u.Util.makeHexColor(...this.#Ue.map(t=>Math.floor(.7*(255-t)+t)))}}var r=document.createElement("span"),i=(r.className="header",document.createElement("h1"));if(r.append(i),{dir:i.dir,str:i.textContent}=this.#vn,c.append(r),this.#en){const n=document.createElement("span");n.classList.add("popupDate"),this.#en.then(t=>{n.textContent=t}),r.append(n)}i=this.#hn,r=this.#bn;if(!r?.str||i?.str&&i.str!==r.str){const n=this._formatContents(i);c.append(n)}else p.XfaLayer.render({xfaHtml:r.html,intent:"richText",div:c}),c.lastChild.classList.add("richText","popupContent");let t=!!this.#pn,e=t?this.#pn:this.#mn;for(const n of this.#dn)if(!e||null!==u.Util.intersect(n.data.rect,e)){e=n.data.rect,t=!0;break}var i=u.Util.normalizeRect([e[0],n[3]-e[1]+n[1],e[2],n[3]-e[3]+n[1]]),r=t?e[2]-e[0]+5:0,r=i[0]+r,i=i[1],s=this.#Rt["style"];s.left=100*(r-l)/a+"%",s.top=100*(i-h)/o+"%",this.#Rt.append(c)}}_formatContents(t){let{str:e,dir:r}=t;var i=document.createElement("p"),s=(i.classList.add("popupContent"),i.dir=r,e.split(/(?:\r\n?|\n)/));for(let t=0,e=s.length;t{"Enter"===t.key&&(i?t.metaKey:t.ctrlKey)&&this.#Cn()}),!e.popupRef&&this.hasPopupData?this._createPopup():r.classList.add("popupTriggerArea"),t.append(r),t}getElementsToTriggerPopup(){return this.#wn}addHighlightArea(){this.container.classList.add("highlightArea")}#Cn(){this.downloadManager?.openOrDownloadData(this.container,this.content,this.filename)}}t.AnnotationLayer=class{#Se=null;#Tn=null;#Pn=new Map;constructor(t){var{div:t,accessibilityManager:e,annotationCanvasMap:r,l10n:i,page:s,viewport:n}=t;this.div=t,this.#Se=e,this.#Tn=r,this.l10n=i,this.page=s,this.viewport=n,this.zIndex=0,this.l10n||=a.NullL10n}#kn(t,e){var r=t.firstChild||t;r.id=""+u.AnnotationPrefix+e,this.div.append(t),this.#Se?.moveElementInDOM(this.div,t,r,!1)}async render(t){const e=t["annotations"],r=this.div;(0,d.setLayerDimensions)(r,this.viewport);var i=new Map,s={data:null,layer:r,linkService:t.linkService,downloadManager:t.downloadManager,imageResourcesPath:t.imageResourcesPath||"",renderForms:!1!==t.renderForms,svgFactory:new d.DOMSVGFactory,annotationStorage:t.annotationStorage||new n.AnnotationStorage,enableScripting:!0===t.enableScripting,hasJSActions:t.hasJSActions,fieldObjects:t.fieldObjects,parent:this,elements:null};for(const t of e)if(!t.noHTML){const e=t.annotationType===u.AnnotationType.POPUP;if(e){const e=i.get(t.id);if(!e)continue;s.elements=e}else{const{width:e,height:r}=g(t.rect);if(e<=0||r<=0)continue}s.data=t;const r=o.create(s);if(r.isRenderable){if(!e&&t.popupRef){const e=i.get(t.popupRef);e?e.push(r):i.set(t.popupRef,[r])}0{function r(t){return Math.floor(255*Math.max(0,Math.min(1,t))).toString(16).padStart(2,"0")}function s(t){return Math.max(0,Math.min(255,255*t))}Object.defineProperty(e,"__esModule",{value:!0}),e.ColorConverters=void 0,e.ColorConverters=class{static CMYK_G(t){var[t,e,r,i]=t;return["G",1-Math.min(1,.3*t+.59*r+.11*e+i)]}static G_CMYK(t){var[t]=t;return["CMYK",0,0,0,1-t]}static G_RGB(t){var[t]=t;return["RGB",t,t,t]}static G_rgb(t){var[t]=t;return[t=s(t),t,t]}static G_HTML(t){var[t]=t,t=r(t);return"#"+t+t+t}static RGB_G(t){var[t,e,r]=t;return["G",.3*t+.59*e+.11*r]}static RGB_rgb(t){return t.map(s)}static RGB_HTML(t){return"#"+t.map(r).join("")}static T_HTML(){return"#00000000"}static T_rgb(){return[null]}static CMYK_RGB(t){var[t,e,r,i]=t;return["RGB",1-Math.min(1,t+i),1-Math.min(1,r+i),1-Math.min(1,e+i)]}static CMYK_rgb(t){var[t,e,r,i]=t;return[s(1-Math.min(1,t+i)),s(1-Math.min(1,r+i)),s(1-Math.min(1,e+i))]}static CMYK_HTML(t){t=this.CMYK_RGB(t).slice(1);return this.RGB_HTML(t)}static RGB_CMYK(t){var[t,e,r]=t,t=1-t,e=1-e,r=1-r;return["CMYK",t,e,r,Math.min(t,e,r)]}}},(t,e)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.NullL10n=void 0,e.getL10nFallback=i;const r={of_pages:"of {{pagesCount}}",page_of_pages:"({{pageNumber}} of {{pagesCount}})",document_properties_kb:"{{size_kb}} KB ({{size_b}} bytes)",document_properties_mb:"{{size_mb}} MB ({{size_b}} bytes)",document_properties_date_string:"{{date}}, {{time}}",document_properties_page_size_unit_inches:"in",document_properties_page_size_unit_millimeters:"mm",document_properties_page_size_orientation_portrait:"portrait",document_properties_page_size_orientation_landscape:"landscape",document_properties_page_size_name_a3:"A3",document_properties_page_size_name_a4:"A4",document_properties_page_size_name_letter:"Letter",document_properties_page_size_name_legal:"Legal",document_properties_page_size_dimension_string:"{{width}} × {{height}} {{unit}} ({{orientation}})",document_properties_page_size_dimension_name_string:"{{width}} × {{height}} {{unit}} ({{name}}, {{orientation}})",document_properties_linearized_yes:"Yes",document_properties_linearized_no:"No",additional_layers:"Additional Layers",page_landmark:"Page {{page}}",thumb_page_title:"Page {{page}}",thumb_page_canvas:"Thumbnail of Page {{page}}",find_reached_top:"Reached top of document, continued from bottom",find_reached_bottom:"Reached end of document, continued from top","find_match_count[one]":"{{current}} of {{total}} match","find_match_count[other]":"{{current}} of {{total}} matches","find_match_count_limit[one]":"More than {{limit}} match","find_match_count_limit[other]":"More than {{limit}} matches",find_not_found:"Phrase not found",page_scale_width:"Page Width",page_scale_fit:"Page Fit",page_scale_auto:"Automatic Zoom",page_scale_actual:"Actual Size",page_scale_percent:"{{scale}}%",loading_error:"An error occurred while loading the PDF.",invalid_file_error:"Invalid or corrupted PDF file.",missing_file_error:"Missing PDF file.",unexpected_response_error:"Unexpected server response.",rendering_error:"An error occurred while rendering the page.",annotation_date_string:"{{date}}, {{time}}",printing_not_supported:"Warning: Printing is not fully supported by this browser.",printing_not_ready:"Warning: The PDF is not fully loaded for printing.",web_fonts_disabled:"Web fonts are disabled: unable to use embedded PDF fonts.",free_text2_default_content:"Start typing…",editor_free_text2_aria_label:"Text Editor",editor_ink2_aria_label:"Draw Editor",editor_ink_canvas_aria_label:"User-created image",editor_alt_text_button_label:"Alt text",editor_alt_text_edit_button_label:"Edit alt text",editor_alt_text_decorative_tooltip:"Marked as decorative",print_progress_percent:"{{progress}}%"};function i(t,e){switch(t){case"find_match_count":t=`find_match_count[${1===e.total?"one":"other"}]`;break;case"find_match_count_limit":t=`find_match_count_limit[${1===e.limit?"one":"other"}]`}return r[t]||""}e.NullL10n={getLanguage:async()=>"en-us",getDirection:async()=>"ltr",async get(t){var r,e=1e in r?r[e]:"{{"+e+"}}"):t},async translate(t){}}},(t,e,r)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.XfaLayer=void 0,r(89);var d=r(194);e.XfaLayer=class{static setupStorage(t,e,r,i,s){var n=i.getValue(e,{value:null});switch(r.name){case"textarea":null!==n.value&&(t.textContent=n.value),"print"!==s&&t.addEventListener("input",t=>{i.setValue(e,{value:t.target.value})});break;case"input":if("radio"===r.attributes.type||"checkbox"===r.attributes.type){if(n.value===r.attributes.xfaOn?t.setAttribute("checked",!0):n.value===r.attributes.xfaOff&&t.removeAttribute("checked"),"print"===s)break;t.addEventListener("change",t=>{i.setValue(e,{value:t.target.checked?t.target.getAttribute("xfaOn"):t.target.getAttribute("xfaOff")})})}else{if(null!==n.value&&t.setAttribute("value",n.value),"print"===s)break;t.addEventListener("input",t=>{i.setValue(e,{value:t.target.value})})}break;case"select":if(null!==n.value){t.setAttribute("value",n.value);for(const t of r.children)t.attributes.value===n.value?t.attributes.selected=!0:t.attributes.hasOwnProperty("selected")&&delete t.attributes.selected}t.addEventListener("input",t=>{t=t.target.options,t=-1===t.selectedIndex?"":t[t.selectedIndex].value;i.setValue(e,{value:t})})}}static setAttributes(t){let{html:e,element:r,storage:i=null,intent:s,linkService:n}=t;var a=r["attributes"],o=e instanceof HTMLAnchorElement;"radio"===a.type&&(a.name=a.name+"-"+s);for(const[t,r]of Object.entries(a))if(null!=r)switch(t){case"class":r.length&&e.setAttribute(t,r.join(" "));break;case"dataId":break;case"id":e.setAttribute("data-element-id",r);break;case"style":Object.assign(e.style,r);break;case"textContent":e.textContent=r;break;default:o&&("href"===t||"newWindow"===t)||e.setAttribute(t,r)}o&&n.addLinkAttributes(e,a.href,a.newWindow),i&&a.dataId&&this.setupStorage(e,a.dataId,r,i)}static render(t){const e=t.annotationStorage,r=t.linkService,i=t.xfaHtml,s=t.intent||"display",n=document.createElement(i.name),a=(i.attributes&&this.setAttributes({html:n,element:i,intent:s,linkService:r}),[[i,-1,n]]),o=t.div;if(o.append(n),t.viewport){const e=`matrix(${t.viewport.transform.join(",")})`;o.style.transform=e}"richText"!==s&&o.setAttribute("class","xfaLayer xfaFont");for(var l=[];0{Object.defineProperty(e,"__esModule",{value:!0}),e.InkEditor=void 0,r(89),r(2);var g=r(1),m=r(164),v=r(198),i=r(168),a=r(165);class _ extends m.AnnotationEditor{#Fn=0;#Rn=0;#Dn=this.canvasPointermove.bind(this);#In=this.canvasPointerleave.bind(this);#On=this.canvasPointerup.bind(this);#Ln=this.canvasPointerdown.bind(this);#Nn=new Path2D;#Bn=!1;#jn=!1;#Un=!1;#zn=null;#Wn=0;#Hn=0;#qn=null;static _defaultColor=null;static _defaultOpacity=1;static _defaultThickness=1;static _type="ink";constructor(t){super({...t,name:"inkEditor"}),this.color=t.color||null,this.thickness=t.thickness||null,this.opacity=t.opacity||null,this.paths=[],this.bezierPath2D=[],this.allRawPaths=[],this.currentPath=[],this.scaleFactor=1,this.translationX=this.translationY=0,this.x=0,this.y=0,this._willKeepAspectRatio=!0}static initialize(t){m.AnnotationEditor.initialize(t,{strings:["editor_ink_canvas_aria_label","editor_ink2_aria_label"]})}static updateDefaultParams(t,e){switch(t){case g.AnnotationEditorParamsType.INK_THICKNESS:_._defaultThickness=e;break;case g.AnnotationEditorParamsType.INK_COLOR:_._defaultColor=e;break;case g.AnnotationEditorParamsType.INK_OPACITY:_._defaultOpacity=e/100}}updateParams(t,e){switch(t){case g.AnnotationEditorParamsType.INK_THICKNESS:this.#Gn(e);break;case g.AnnotationEditorParamsType.INK_COLOR:this.#Ve(e);break;case g.AnnotationEditorParamsType.INK_OPACITY:this.#Vn(e)}}static get defaultPropertiesToUpdate(){return[[g.AnnotationEditorParamsType.INK_THICKNESS,_._defaultThickness],[g.AnnotationEditorParamsType.INK_COLOR,_._defaultColor||m.AnnotationEditor._defaultLineColor],[g.AnnotationEditorParamsType.INK_OPACITY,Math.round(100*_._defaultOpacity)]]}get propertiesToUpdate(){return[[g.AnnotationEditorParamsType.INK_THICKNESS,this.thickness||_._defaultThickness],[g.AnnotationEditorParamsType.INK_COLOR,this.color||_._defaultColor||m.AnnotationEditor._defaultLineColor],[g.AnnotationEditorParamsType.INK_OPACITY,Math.round(100*(this.opacity??_._defaultOpacity))]]}#Gn(t){const e=this.thickness;this.addCommands({cmd:()=>{this.thickness=t,this.#$n()},undo:()=>{this.thickness=e,this.#$n()},mustExec:!0,type:g.AnnotationEditorParamsType.INK_THICKNESS,overwriteIfSameType:!0,keepUndo:!0})}#Ve(t){const e=this.color;this.addCommands({cmd:()=>{this.color=t,this.#Xn()},undo:()=>{this.color=e,this.#Xn()},mustExec:!0,type:g.AnnotationEditorParamsType.INK_COLOR,overwriteIfSameType:!0,keepUndo:!0})}#Vn(t){t/=100;const e=this.opacity;this.addCommands({cmd:()=>{this.opacity=t,this.#Xn()},undo:()=>{this.opacity=e,this.#Xn()},mustExec:!0,type:g.AnnotationEditorParamsType.INK_OPACITY,overwriteIfSameType:!0,keepUndo:!0})}rebuild(){this.parent&&(super.rebuild(),null!==this.div)&&(this.canvas||(this.#Kn(),this.#Yn()),this.isAttachedToDOM||(this.parent.add(this),this.#Jn()),this.#$n())}remove(){null!==this.canvas&&(this.isEmpty()||this.commit(),this.canvas.width=this.canvas.height=0,this.canvas.remove(),this.canvas=null,this.#zn.disconnect(),this.#zn=null,super.remove())}setParent(t){!this.parent&&t?this._uiManager.removeShouldRescale(this):this.parent&&null===t&&this._uiManager.addShouldRescale(this),super.setParent(t)}onScaleChanging(){var[t,e]=this.parentDimensions,t=this.width*t,e=this.height*e;this.setDimensions(t,e)}enableEditMode(){this.#Bn||null===this.canvas||(super.enableEditMode(),this._isDraggable=!1,this.canvas.addEventListener("pointerdown",this.#Ln))}disableEditMode(){this.isInEditMode()&&null!==this.canvas&&(super.disableEditMode(),this._isDraggable=!this.isEmpty(),this.div.classList.remove("editing"),this.canvas.removeEventListener("pointerdown",this.#Ln))}onceAdded(){this._isDraggable=!this.isEmpty()}isEmpty(){return 0===this.paths.length||1===this.paths.length&&0===this.paths[0].length}#Qn(){var{parentRotation:t,parentDimensions:[e,r]}=this;switch(t){case 90:return[0,r,r,e];case 180:return[e,r,e,r];case 270:return[e,0,r,e];default:return[0,0,e,r]}}#Zn(){var{ctx:t,color:e,opacity:r,thickness:i,parentScale:s,scaleFactor:n}=this;t.lineWidth=i*s/n,t.lineCap="round",t.lineJoin="round",t.miterLimit=10,t.strokeStyle=""+e+(0,a.opacityToHex)(r)}#ti(t,e){this.canvas.addEventListener("contextmenu",i.noContextMenu),this.canvas.addEventListener("pointerleave",this.#In),this.canvas.addEventListener("pointermove",this.#Dn),this.canvas.addEventListener("pointerup",this.#On),this.canvas.removeEventListener("pointerdown",this.#Ln),this.isEditing=!0,this.#Un||(this.#Un=!0,this.#Jn(),this.thickness||=_._defaultThickness,this.color||=_._defaultColor||m.AnnotationEditor._defaultLineColor,this.opacity??=_._defaultOpacity),this.currentPath.push([t,e]),this.#jn=!1,this.#Zn(),this.#qn=()=>{this.#ei(),this.#qn&&window.requestAnimationFrame(this.#qn)},window.requestAnimationFrame(this.#qn)}#ni(e,r){var[i,t]=this.currentPath.at(-1);if(!(1{this.allRawPaths.push(s),this.paths.push(r),this.bezierPath2D.push(i),this.rebuild()},undo:()=>{this.allRawPaths.pop(),this.paths.pop(),this.bezierPath2D.pop(),0===this.paths.length?this.remove():(this.canvas||(this.#Kn(),this.#Yn()),this.#$n())},mustExec:!0})}#ei(){if(this.#jn){this.#jn=!1;Math.ceil(this.thickness*this.parentScale);const t=this.currentPath.slice(-3),e=t.map(t=>t[0]),r=t.map(t=>t[1]),i=(Math.min(...e),Math.max(...e),Math.min(...r),Math.max(...r),this)["ctx"];i.save(),i.clearRect(0,0,this.canvas.width,this.canvas.height);for(const s of this.bezierPath2D)i.stroke(s);i.stroke(this.#Nn),i.restore()}}#ii(t,e,r,i,s,n,a){e=(e+i)/2,r=(r+s)/2,n=(i+n)/2,a=(s+a)/2;t.bezierCurveTo(e+2*(i-e)/3,r+2*(s-r)/3,n+2*(i-n)/3,a+2*(s-a)/3,n,a)}#ai(){var t=this.currentPath;if(t.length<=2)return[[t[0],t[0],t.at(-1),t.at(-1)]];var e=[];let r,[i,s]=t[0];for(r=1;r{this.canvas.removeEventListener("contextmenu",i.noContextMenu)},10),this.#si(t.offsetX,t.offsetY),this.addToAnnotationStorage(),this.setInBackground()}#Kn(){this.canvas=document.createElement("canvas"),this.canvas.width=this.canvas.height=0,this.canvas.className="inkEditorCanvas",m.AnnotationEditor._l10nPromise.get("editor_ink_canvas_aria_label").then(t=>this.canvas?.setAttribute("aria-label",t)),this.div.append(this.canvas),this.ctx=this.canvas.getContext("2d")}#Yn(){this.#zn=new ResizeObserver(t=>{t=t[0].contentRect;t.width&&t.height&&this.setDimensions(t.width,t.height)}),this.#zn.observe(this.div)}get isResizable(){return!this.isEmpty()&&this.#Bn}render(){if(!this.div){let t,e;this.width&&(t=this.x,e=this.y),super.render(),m.AnnotationEditor._l10nPromise.get("editor_ink2_aria_label").then(t=>this.div?.setAttribute("aria-label",t));const[r,i,s,n]=this.#Qn();if(this.setAt(r,i,0,0),this.setDims(s,n),this.#Kn(),this.width){const[r,i]=this.parentDimensions;this.setAspectRatio(this.width*r,this.height*i),this.setAt(t*r,e*i,this.width*r,this.height*i),this.#Un=!0,this.#Jn(),this.setDims(this.width*r,this.height*i),this.#Xn(),this.div.classList.add("disabled")}else this.div.classList.add("editing"),this.enableEditMode();this.#Yn()}return this.div}#Jn(){var t,e;this.#Un&&([t,e]=this.parentDimensions,this.canvas.width=Math.ceil(this.width*t),this.canvas.height=Math.ceil(this.height*e),this.#oi())}setDimensions(t,e){var r=Math.round(t),i=Math.round(e);this.#Wn===r&&this.#Hn===i||(this.#Wn=r,this.#Hn=i,this.canvas.style.visibility="hidden",[r,i]=this.parentDimensions,this.width=t/r,this.height=e/i,this.fixAndSetPosition(),this.#Bn&&this.#ci(t,e),this.#Jn(),this.#Xn(),this.canvas.style.visibility="visible",this.fixDims())}#ci(t,e){var r=this.#hi(),t=(t-r)/this.#Rn,e=(e-r)/this.#Fn;this.scaleFactor=Math.min(t,e)}#oi(){var t=this.#hi()/2;this.ctx.setTransform(this.scaleFactor,0,0,this.scaleFactor,this.translationX*this.scaleFactor+t,this.translationY*this.scaleFactor+t)}static#di(r){var i=new Path2D;for(let t=0,e=r.length;t{Object.defineProperty(e,"__esModule",{value:!0}),e.StampEditor=void 0,r(149),r(152);var n=r(1),i=r(164),a=r(168),o=r(198);class s extends i.AnnotationEditor{#mi=null;#bi=null;#vi=null;#yi=null;#_i=null;#Ai=null;#zn=null;#Si=null;#Ei=!1;#xi=!1;static _type="stamp";constructor(t){super({...t,name:"stampEditor"}),this.#yi=t.bitmapUrl,this.#_i=t.bitmapFile}static initialize(t){i.AnnotationEditor.initialize(t)}static get supportedTypes(){return(0,n.shadow)(this,"supportedTypes",["apng","avif","bmp","gif","jpeg","png","svg+xml","webp","x-icon"].map(t=>"image/"+t))}static get supportedTypesStr(){return(0,n.shadow)(this,"supportedTypesStr",this.supportedTypes.join(","))}static isHandlingMimeForPasting(t){return this.supportedTypes.includes(t)}static paste(t,e){e.pasteEditor(n.AnnotationEditorType.STAMP,{bitmapFile:t.getAsFile()})}#wi(t){var e=1this.#wi(t,!0)).finally(()=>this.#Ci());else if(this.#yi){const e=this.#yi;this.#yi=null,this._uiManager.enableWaiting(!0),void(this.#vi=this._uiManager.imageManager.getFromUrl(e).then(t=>this.#wi(t)).finally(()=>this.#Ci()))}else if(this.#_i){const e=this.#_i;this.#_i=null,this._uiManager.enableWaiting(!0),void(this.#vi=this._uiManager.imageManager.getFromFile(e).then(t=>this.#wi(t)).finally(()=>this.#Ci()))}else{const e=document.createElement("input");e.type="file",e.accept=s.supportedTypesStr,this.#vi=new Promise(t=>{e.addEventListener("change",async()=>{if(e.files&&0!==e.files.length){this._uiManager.enableWaiting(!0);const t=await this._uiManager.imageManager.getFromFile(e.files[0]);this.#wi(t)}else this.remove();t()}),e.addEventListener("cancel",()=>{this.remove(),t()})}).finally(()=>this.#Ci()),e.click()}}remove(){this.#bi&&(this.#mi=null,this._uiManager.imageManager.deleteId(this.#bi),this.#Ai?.remove(),this.#Ai=null,this.#zn?.disconnect(),this.#zn=null),super.remove()}rebuild(){this.parent?(super.rebuild(),null!==this.div&&(this.#bi&&this.#Ti(),this.isAttachedToDOM||this.parent.add(this))):this.#bi&&this.#Ti()}onceAdded(){this._isDraggable=!0,this.div.focus()}isEmpty(){return!(this.#vi||this.#mi||this.#yi||this.#_i)}get isResizable(){return!0}render(){if(!this.div){let t,e;var r,i;this.width&&(t=this.x,e=this.y),super.render(),this.div.hidden=!0,this.#mi?this.#Kn():this.#Ti(),this.width&&([r,i]=this.parentDimensions,this.setAt(t*r,e*i,this.width*r,this.height*i))}return this.div}#Kn(){const t=this["div"];let{width:e,height:r}=this.#mi;var[i,s]=this.pageDimensions;if(this.width)e=this.width*i,r=this.height*s;else if(e>.75*i||r>.75*s){const t=Math.min(.75*i/e,.75*s/r);e*=t,r*=t}var[n,a]=this.parentDimensions,n=(this.setDims(e*n/i,r*a/s),this._uiManager.enableWaiting(!1),this.#Ai=document.createElement("canvas"));t.append(n),t.hidden=!1,this.#Pi(e,r),this.#Yn(),this.#xi||(this.parent.addUndoableEditor(this),this.#xi=!0),this._uiManager._eventBus.dispatch("reporttelemetry",{source:this,details:{type:"editing",subtype:this.editorType,data:{action:"inserted_image"}}}),this.addAltTextButton()}#ki(t,e){var[r,i]=this.parentDimensions;this.width=t/r,this.height=e/i,this.setDims(t,e),this._initialOptions?.isCentered?this.center():this.fixAndSetPosition(),(this._initialOptions=null)!==this.#Si&&clearTimeout(this.#Si),this.#Si=setTimeout(()=>{this.#Si=null,this.#Pi(t,e)},200)}#Mi(t,e){const{width:r,height:i}=this.#mi;let s=r,n=i,a=this.#mi;for(;s>2*t||n>2*e;){const r=s,i=n;s>2*t&&(s=16384<=s?Math.floor(s/2)-1:Math.ceil(s/2)),n>2*e&&(n=16384<=n?Math.floor(n/2)-1:Math.ceil(n/2));var o=new OffscreenCanvas(s,n);o.getContext("2d").drawImage(a,0,0,r,i,0,0,s,n),a=o.transferToImageBitmap()}return a}#Pi(t,e){t=Math.ceil(t),e=Math.ceil(e);var r,i=this.#Ai;!i||i.width===t&&i.height===e||(i.width=t,i.height=e,r=this.#Ei?this.#mi:this.#Mi(t,e),(i=i.getContext("2d")).filter=this._uiManager.hcmFilter,i.drawImage(r,0,0,r.width,r.height,0,0,t,e))}#Fi(t){if(t){if(this.#Ei){const t=this._uiManager.imageManager.getSvgUrl(this.#bi);if(t)return t}const t=document.createElement("canvas");return{width:t.width,height:t.height}=this.#mi,t.getContext("2d").drawImage(this.#mi,0,0),t.toDataURL()}if(this.#Ei){const[t,e]=this.pageDimensions,r=Math.round(this.width*t*a.PixelsPerInch.PDF_TO_CSS_UNITS),i=Math.round(this.height*e*a.PixelsPerInch.PDF_TO_CSS_UNITS),s=new OffscreenCanvas(r,i);return s.getContext("2d").drawImage(this.#mi,0,0,this.#mi.width,this.#mi.height,0,0,r,i),s.transferToImageBitmap()}return structuredClone(this.#mi)}#Yn(){this.#zn=new ResizeObserver(t=>{t=t[0].contentRect;t.width&&t.height&&this.#ki(t.width,t.height)}),this.#zn.observe(this.div)}static deserialize(t,e,r){var i,s,n,a;return t instanceof o.StampAnnotationElement?null:(e=super.deserialize(t,e,r),{rect:t,bitmapUrl:i,bitmapId:a,isSvg:s,accessibilityData:n}=t,[r,a]=(a&&r.imageManager.isValidId(a)?e.#bi=a:e.#yi=i,e.#Ei=s,e.pageDimensions),e.width=(t[2]-t[0])/r,e.height=(t[3]-t[1])/a,n&&(e.altTextData=n),e)}serialize(){let t=0t.area&&(t.area=i,t.serialized.bitmap.close(),t.serialized.bitmap=this.#Fi(!1))}}else e.stamps.set(this.#bi,{area:i,serialized:r}),r.bitmap=this.#Fi(!1)}}return r}}e.StampEditor=s}],__webpack_module_cache__={};function __w_pdfjs_require__(t){var e=__webpack_module_cache__[t];return void 0!==e||(e=__webpack_module_cache__[t]={exports:{}},__webpack_modules__[t].call(e.exports,e,e.exports,__w_pdfjs_require__)),e.exports}var __webpack_exports__={};return(()=>{var t=__webpack_exports__,e=(Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"AbortException",{enumerable:!0,get:function(){return e.AbortException}}),Object.defineProperty(t,"AnnotationEditorLayer",{enumerable:!0,get:function(){return n.AnnotationEditorLayer}}),Object.defineProperty(t,"AnnotationEditorParamsType",{enumerable:!0,get:function(){return e.AnnotationEditorParamsType}}),Object.defineProperty(t,"AnnotationEditorType",{enumerable:!0,get:function(){return e.AnnotationEditorType}}),Object.defineProperty(t,"AnnotationEditorUIManager",{enumerable:!0,get:function(){return a.AnnotationEditorUIManager}}),Object.defineProperty(t,"AnnotationLayer",{enumerable:!0,get:function(){return o.AnnotationLayer}}),Object.defineProperty(t,"AnnotationMode",{enumerable:!0,get:function(){return e.AnnotationMode}}),Object.defineProperty(t,"CMapCompressionType",{enumerable:!0,get:function(){return e.CMapCompressionType}}),Object.defineProperty(t,"DOMSVGFactory",{enumerable:!0,get:function(){return i.DOMSVGFactory}}),Object.defineProperty(t,"FeatureTest",{enumerable:!0,get:function(){return e.FeatureTest}}),Object.defineProperty(t,"GlobalWorkerOptions",{enumerable:!0,get:function(){return l.GlobalWorkerOptions}}),Object.defineProperty(t,"ImageKind",{enumerable:!0,get:function(){return e.ImageKind}}),Object.defineProperty(t,"InvalidPDFException",{enumerable:!0,get:function(){return e.InvalidPDFException}}),Object.defineProperty(t,"MissingPDFException",{enumerable:!0,get:function(){return e.MissingPDFException}}),Object.defineProperty(t,"OPS",{enumerable:!0,get:function(){return e.OPS}}),Object.defineProperty(t,"PDFDataRangeTransport",{enumerable:!0,get:function(){return r.PDFDataRangeTransport}}),Object.defineProperty(t,"PDFDateString",{enumerable:!0,get:function(){return i.PDFDateString}}),Object.defineProperty(t,"PDFWorker",{enumerable:!0,get:function(){return r.PDFWorker}}),Object.defineProperty(t,"PasswordResponses",{enumerable:!0,get:function(){return e.PasswordResponses}}),Object.defineProperty(t,"PermissionFlag",{enumerable:!0,get:function(){return e.PermissionFlag}}),Object.defineProperty(t,"PixelsPerInch",{enumerable:!0,get:function(){return i.PixelsPerInch}}),Object.defineProperty(t,"PromiseCapability",{enumerable:!0,get:function(){return e.PromiseCapability}}),Object.defineProperty(t,"RenderingCancelledException",{enumerable:!0,get:function(){return i.RenderingCancelledException}}),Object.defineProperty(t,"SVGGraphics",{enumerable:!0,get:function(){return r.SVGGraphics}}),Object.defineProperty(t,"UnexpectedResponseException",{enumerable:!0,get:function(){return e.UnexpectedResponseException}}),Object.defineProperty(t,"Util",{enumerable:!0,get:function(){return e.Util}}),Object.defineProperty(t,"VerbosityLevel",{enumerable:!0,get:function(){return e.VerbosityLevel}}),Object.defineProperty(t,"XfaLayer",{enumerable:!0,get:function(){return h.XfaLayer}}),Object.defineProperty(t,"build",{enumerable:!0,get:function(){return r.build}}),Object.defineProperty(t,"createValidAbsoluteUrl",{enumerable:!0,get:function(){return e.createValidAbsoluteUrl}}),Object.defineProperty(t,"getDocument",{enumerable:!0,get:function(){return r.getDocument}}),Object.defineProperty(t,"getFilenameFromUrl",{enumerable:!0,get:function(){return i.getFilenameFromUrl}}),Object.defineProperty(t,"getPdfFilenameFromUrl",{enumerable:!0,get:function(){return i.getPdfFilenameFromUrl}}),Object.defineProperty(t,"getXfaPageViewport",{enumerable:!0,get:function(){return i.getXfaPageViewport}}),Object.defineProperty(t,"isDataScheme",{enumerable:!0,get:function(){return i.isDataScheme}}),Object.defineProperty(t,"isPdfFile",{enumerable:!0,get:function(){return i.isPdfFile}}),Object.defineProperty(t,"loadScript",{enumerable:!0,get:function(){return i.loadScript}}),Object.defineProperty(t,"noContextMenu",{enumerable:!0,get:function(){return i.noContextMenu}}),Object.defineProperty(t,"normalizeUnicode",{enumerable:!0,get:function(){return e.normalizeUnicode}}),Object.defineProperty(t,"renderTextLayer",{enumerable:!0,get:function(){return s.renderTextLayer}}),Object.defineProperty(t,"setLayerDimensions",{enumerable:!0,get:function(){return i.setLayerDimensions}}),Object.defineProperty(t,"shadow",{enumerable:!0,get:function(){return e.shadow}}),Object.defineProperty(t,"updateTextLayer",{enumerable:!0,get:function(){return s.updateTextLayer}}),Object.defineProperty(t,"version",{enumerable:!0,get:function(){return r.version}}),__w_pdfjs_require__(1)),r=__w_pdfjs_require__(124),i=__w_pdfjs_require__(168),s=__w_pdfjs_require__(195),n=__w_pdfjs_require__(196),a=__w_pdfjs_require__(165),o=__w_pdfjs_require__(198),l=__w_pdfjs_require__(176),h=__w_pdfjs_require__(201)})(),__webpack_exports__})()); \ No newline at end of file diff --git a/public/script/vendor.min.js b/public/script/vendor.min.js index 1bbcdd4..d5b69a7 100644 --- a/public/script/vendor.min.js +++ b/public/script/vendor.min.js @@ -1,31 +1,29 @@ -function markedMermaid(e){return{extensions:[{name:"mermaid",level:"block",start(e){return e.match(/^```mermaid/m)?.index},tokenizer(e,t){e=/^```mermaid\n([\s\S]*?)\n```/.exec(e);if(e)return{type:"mermaid",raw:e[0],text:e[1].trim()}},renderer(e){const t="mermaid-"+Math.random().toString(36).substr(2,9);e=`
${e.text}
`;return"undefined"==typeof mermaid&&"function"==typeof window.loadMermaid&&window.loadMermaid(),setTimeout(()=>{if("undefined"!=typeof mermaid){window.mermaidInitialized||(mermaid.initialize({startOnLoad:!1,theme:"default",securityLevel:"strict"}),window.mermaidInitialized=!0);try{var e=document.getElementById(t);e&&!e.getAttribute("data-processed")&&(mermaid.init(void 0,e),e.setAttribute("data-processed","true"))}catch(e){console.error("Mermaid rendering error:",e)}}},100),e}}]}}!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=e.pdfjsLib=t():"function"==typeof define&&define.amd?define("pdfjs-dist/build/pdf",[],()=>e.pdfjsLib=t()):"object"==typeof exports?exports["pdfjs-dist/build/pdf"]=e.pdfjsLib=t():e["pdfjs-dist/build/pdf"]=e.pdfjsLib=t()}(globalThis,()=>(()=>{"use strict";var __webpack_modules__=[,(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.VerbosityLevel=t.Util=t.UnknownErrorException=t.UnexpectedResponseException=t.TextRenderingMode=t.RenderingIntentFlag=t.PromiseCapability=t.PermissionFlag=t.PasswordResponses=t.PasswordException=t.PageActionEventType=t.OPS=t.MissingPDFException=t.MAX_IMAGE_SIZE_TO_CACHE=t.LINE_FACTOR=t.LINE_DESCENT_FACTOR=t.InvalidPDFException=t.ImageKind=t.IDENTITY_MATRIX=t.FormatError=t.FeatureTest=t.FONT_IDENTITY_MATRIX=t.DocumentActionEventType=t.CMapCompressionType=t.BaseException=t.BASELINE_FACTOR=t.AnnotationType=t.AnnotationReplyType=t.AnnotationPrefix=t.AnnotationMode=t.AnnotationFlag=t.AnnotationFieldFlag=t.AnnotationEditorType=t.AnnotationEditorPrefix=t.AnnotationEditorParamsType=t.AnnotationBorderStyleType=t.AnnotationActionEventType=t.AbortException=void 0,t.assert=function(e,t){e||s(t)},t.bytesToString=h,t.createValidAbsoluteUrl=function(e){let t=1=n.INFOS&&console.log("Info: "+e)},t.isArrayBuffer=function(e){return"object"==typeof e&&void 0!==e?.byteLength},t.isArrayEqual=function(i,n){if(i.length!==n.length)return!1;for(let e=0,t=i.length;et?t.normalize("NFKC"):g.get(i))},t.objectFromMap=function(e){var t,i,n=Object.create(null);for([t,i]of e)n[t]=i;return n},t.objectSize=function(e){return Object.keys(e).length},t.setVerbosityLevel=function(e){Number.isInteger(e)&&(r=e)},t.shadow=a,t.string32=function(e){return String.fromCharCode(e>>24&255,e>>16&255,e>>8&255,255&e)},t.stringToBytes=c,t.stringToPDFString=function(i){if("ï"<=i[0]){let e;if("þ"===i[0]&&"ÿ"===i[1]?e="utf-16be":"ÿ"===i[0]&&"þ"===i[1]?e="utf-16le":"ï"===i[0]&&"»"===i[1]&&"¿"===i[2]&&(e="utf-8"),e)try{var t=new TextDecoder(e,{fatal:!0}),n=c(i);return t.decode(n)}catch(i){o(`stringToPDFString: "${i}".`)}}var r=[];for(let e=0,t=i.length;e=n.WARNINGS&&console.log("Warning: "+e)}function s(e){throw new Error(e)}function a(e,t,i){return Object.defineProperty(e,t,{value:i,enumerable:!(3e.toString(16).padStart(2,"0")),u=(t.Util=class{static makeHexColor(e,t,i){return"#"+d[e]+d[t]+d[i]}static scaleMinMax(e,t){let i;e[0]?(e[0]<0&&(i=t[0],t[0]=t[1],t[1]=i),t[0]*=e[0],t[1]*=e[0],e[3]<0&&(i=t[2],t[2]=t[3],t[3]=i),t[2]*=e[3],t[3]*=e[3]):(i=t[0],t[0]=t[2],t[2]=i,i=t[1],t[1]=t[3],t[3]=i,e[1]<0&&(i=t[2],t[2]=t[3],t[3]=i),t[2]*=e[1],t[3]*=e[1],e[2]<0&&(i=t[0],t[0]=t[1],t[1]=i),t[0]*=e[2],t[1]*=e[2]),t[0]+=e[4],t[1]+=e[4],t[2]+=e[5],t[3]+=e[5]}static transform(e,t){return[e[0]*t[0]+e[2]*t[1],e[1]*t[0]+e[3]*t[1],e[0]*t[2]+e[2]*t[3],e[1]*t[2]+e[3]*t[3],e[0]*t[4]+e[2]*t[5]+e[4],e[1]*t[4]+e[3]*t[5]+e[5]]}static applyTransform(e,t){return[e[0]*t[0]+e[1]*t[2]+t[4],e[0]*t[1]+e[1]*t[3]+t[5]]}static applyInverseTransform(e,t){var i=t[0]*t[3]-t[1]*t[2];return[(e[0]*t[3]-e[1]*t[2]+t[2]*t[5]-t[4]*t[3])/i,(-e[0]*t[1]+e[1]*t[0]+t[4]*t[1]-t[5]*t[0])/i]}static getAxialAlignedBoundingBox(e,t){var i=this.applyTransform(e,t),n=this.applyTransform(e.slice(2,4),t),r=this.applyTransform([e[0],e[3]],t),e=this.applyTransform([e[2],e[1]],t);return[Math.min(i[0],n[0],r[0],e[0]),Math.min(i[1],n[1],r[1],e[1]),Math.max(i[0],n[0],r[0],e[0]),Math.max(i[1],n[1],r[1],e[1])]}static inverseTransform(e){var t=e[0]*e[3]-e[1]*e[2];return[e[3]/t,-e[1]/t,-e[2]/t,e[0]/t,(e[2]*e[5]-e[4]*e[3])/t,(e[4]*e[1]-e[5]*e[0])/t]}static singularValueDecompose2dScale(e){var t=[e[0],e[2],e[1],e[3]],i=e[0]*t[0]+e[1]*t[2],n=e[0]*t[1]+e[1]*t[3],r=e[2]*t[0]+e[3]*t[2],e=e[2]*t[1]+e[3]*t[3],t=(i+e)/2,i=Math.sqrt((i+e)**2-4*(i*e-r*n))/2,e=t-i||1;return[Math.sqrt(t+i||1),Math.sqrt(e)]}static normalizeRect(e){var t=e.slice(0);return e[0]>e[2]&&(t[0]=e[2],t[2]=e[0]),e[1]>e[3]&&(t[1]=e[3],t[3]=e[1]),t}static intersect(e,t){var i,n=Math.max(Math.min(e[0],e[2]),Math.min(t[0],t[2])),r=Math.min(Math.max(e[0],e[2]),Math.max(t[0],t[2]));return r{this.resolve=e=>{this.#t=!0,t(e)},this.reject=e=>{this.#t=!0,i(e)}})}get settled(){return this.#t}};let m=null,g=null;t.AnnotationPrefix="pdfjs_internal_id_"},(e,t,i)=>{function n(e,t){var i={};i[e]=l(e,t,d),s({global:!0,constructor:!0,arity:1,forced:d},i)}function r(e,t){var i;c&&c[e]&&((i={})[e]=l(h+"."+e,t,d),s({target:h,stat:!0,constructor:!0,arity:1,forced:d},i))}var s=i(3),o=i(4),a=i(69),l=i(70),h="WebAssembly",c=o[h],d=7!==Error("e",{cause:7}).cause;n("Error",function(t){return function(e){return a(t,this,arguments)}}),n("EvalError",function(t){return function(e){return a(t,this,arguments)}}),n("RangeError",function(t){return function(e){return a(t,this,arguments)}}),n("ReferenceError",function(t){return function(e){return a(t,this,arguments)}}),n("SyntaxError",function(t){return function(e){return a(t,this,arguments)}}),n("TypeError",function(t){return function(e){return a(t,this,arguments)}}),n("URIError",function(t){return function(e){return a(t,this,arguments)}}),r("CompileError",function(t){return function(e){return a(t,this,arguments)}}),r("LinkError",function(t){return function(e){return a(t,this,arguments)}}),r("RuntimeError",function(t){return function(e){return a(t,this,arguments)}})},(e,t,i)=>{var h=i(4),c=i(5).f,d=i(44),u=i(48),p=i(38),m=i(56),g=i(68);e.exports=function(e,t){var i,n,r,s,o=e.target,a=e.global,l=e.stat;if(i=a?h:l?h[o]||p(o,{}):(h[o]||{}).prototype)for(n in t){if(r=t[n],s=e.dontCallGetSet?(s=c(i,n))&&s.value:i[n],!g(a?n:o+(l?".":"#")+n,e.forced)&&void 0!==s){if(typeof r==typeof s)continue;m(r,s)}(e.sham||s&&s.sham)&&d(r,"sham",!0),u(i,n,r,e)}}},function(e){function t(e){return e&&e.Math===Math&&e}e.exports=t("object"==typeof globalThis&&globalThis)||t("object"==typeof window&&window)||t("object"==typeof self&&self)||t("object"==typeof global&&global)||function(){return this}()||this||Function("return this")()},(e,t,i)=>{var n=i(6),r=i(8),s=i(10),o=i(11),a=i(12),l=i(18),h=i(39),c=i(42),d=Object.getOwnPropertyDescriptor;t.f=n?d:function(e,t){if(e=a(e),t=l(t),c)try{return d(e,t)}catch(e){}if(h(e,t))return o(!r(s.f,e,t),e[t])}},(e,t,i)=>{i=i(7);e.exports=!i(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})},e=>{e.exports=function(e){try{return!!e()}catch(e){return!0}}},(e,t,i)=>{var i=i(9),n=Function.prototype.call;e.exports=i?n.bind(n):function(){return n.apply(n,arguments)}},(e,t,i)=>{i=i(7);e.exports=!i(function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})},(e,t)=>{var i={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,r=n&&!i.call({1:2},1);t.f=r?function(e){e=n(this,e);return!!e&&e.enumerable}:i},e=>{e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},(e,t,i)=>{var n=i(13),r=i(16);e.exports=function(e){return n(r(e))}},(e,t,i)=>{var n=i(14),r=i(7),s=i(15),o=Object,a=n("".split);e.exports=r(function(){return!o("z").propertyIsEnumerable(0)})?function(e){return"String"===s(e)?a(e,""):o(e)}:o},(e,t,i)=>{var i=i(9),n=Function.prototype,r=n.call,n=i&&n.bind.bind(r,r);e.exports=i?n:function(e){return function(){return r.apply(e,arguments)}}},(e,t,i)=>{var i=i(14),n=i({}.toString),r=i("".slice);e.exports=function(e){return r(n(e),8,-1)}},(e,t,i)=>{var n=i(17),r=TypeError;e.exports=function(e){if(n(e))throw r("Can't call method on "+e);return e}},e=>{e.exports=function(e){return null==e}},(e,t,i)=>{var n=i(19),r=i(23);e.exports=function(e){e=n(e,"string");return r(e)?e:e+""}},(e,t,i)=>{var n=i(8),r=i(20),s=i(23),o=i(30),a=i(33),i=i(34),l=TypeError,h=i("toPrimitive");e.exports=function(e,t){if(!r(e)||s(e))return e;var i=o(e,h);if(i){if(i=n(i,e,t=void 0===t?"default":t),!r(i)||s(i))return i;throw l("Can't convert object to primitive value")}return a(e,t=void 0===t?"number":t)}},(e,t,i)=>{var n=i(21),i=i(22),r=i.all;e.exports=i.IS_HTMLDDA?function(e){return"object"==typeof e?null!==e:n(e)||e===r}:function(e){return"object"==typeof e?null!==e:n(e)}},(e,t,i)=>{var i=i(22),n=i.all;e.exports=i.IS_HTMLDDA?function(e){return"function"==typeof e||e===n}:function(e){return"function"==typeof e}},e=>{var t="object"==typeof document&&document.all;e.exports={all:t,IS_HTMLDDA:void 0===t&&void 0!==t}},(e,t,i)=>{var n=i(24),r=i(21),s=i(25),i=i(26),o=Object;e.exports=i?function(e){return"symbol"==typeof e}:function(e){var t=n("Symbol");return r(t)&&s(t.prototype,o(e))}},(e,t,i)=>{var n=i(4),r=i(21);e.exports=function(e,t){return arguments.length<2?(i=n[e],r(i)?i:void 0):n[e]&&n[e][t];var i}},(e,t,i)=>{i=i(14);e.exports=i({}.isPrototypeOf)},(e,t,i)=>{i=i(27);e.exports=i&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},(e,t,i)=>{var n=i(28),r=i(7),s=i(4).String;e.exports=!!Object.getOwnPropertySymbols&&!r(function(){var e=Symbol("symbol detection");return!s(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&n&&n<41})},(e,t,i)=>{var n,r,s=i(4),i=i(29),o=s.process,s=s.Deno,o=o&&o.versions||s&&s.version,s=o&&o.v8;!(r=s?0<(n=s.split("."))[0]&&n[0]<4?1:+(n[0]+n[1]):r)&&i&&(!(n=i.match(/Edge\/(\d+)/))||74<=n[1])&&(n=i.match(/Chrome\/(\d+)/))&&(r=+n[1]),e.exports=r},e=>{e.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},(e,t,i)=>{var n=i(31),r=i(17);e.exports=function(e,t){e=e[t];return r(e)?void 0:n(e)}},(e,t,i)=>{var n=i(21),r=i(32),s=TypeError;e.exports=function(e){if(n(e))return e;throw s(r(e)+" is not a function")}},e=>{var t=String;e.exports=function(e){try{return t(e)}catch(e){return"Object"}}},(e,t,i)=>{var r=i(8),s=i(21),o=i(20),a=TypeError;e.exports=function(e,t){var i,n;if("string"===t&&s(i=e.toString)&&!o(n=r(i,e)))return n;if(s(i=e.valueOf)&&!o(n=r(i,e)))return n;if("string"!==t&&s(i=e.toString)&&!o(n=r(i,e)))return n;throw a("Can't convert object to primitive value")}},(e,t,i)=>{var n=i(4),r=i(35),s=i(39),o=i(41),a=i(27),i=i(26),l=n.Symbol,h=r("wks"),c=i?l.for||l:l&&l.withoutSetter||o;e.exports=function(e){return s(h,e)||(h[e]=a&&s(l,e)?l[e]:c("Symbol."+e)),h[e]}},(e,t,i)=>{var n=i(36),r=i(37);(e.exports=function(e,t){return r[e]||(r[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.32.2",mode:n?"pure":"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.32.2/LICENSE",source:"https://github.com/zloirock/core-js"})},e=>{e.exports=!1},(e,t,i)=>{var n=i(4),i=i(38),r="__core-js_shared__",n=n[r]||i(r,{});e.exports=n},(e,t,i)=>{var n=i(4),r=Object.defineProperty;e.exports=function(t,i){try{r(n,t,{value:i,configurable:!0,writable:!0})}catch(e){n[t]=i}return i}},(e,t,i)=>{var n=i(14),r=i(40),s=n({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return s(r(e),t)}},(e,t,i)=>{var n=i(16),r=Object;e.exports=function(e){return r(n(e))}},(e,t,i)=>{var i=i(14),n=0,r=Math.random(),s=i(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+s(++n+r,36)}},(e,t,i)=>{var n=i(6),r=i(7),s=i(43);e.exports=!n&&!r(function(){return 7!==Object.defineProperty(s("div"),"a",{get:function(){return 7}}).a})},(e,t,i)=>{var n=i(4),i=i(20),r=n.document,s=i(r)&&i(r.createElement);e.exports=function(e){return s?r.createElement(e):{}}},(e,t,i)=>{var n=i(6),r=i(45),s=i(11);e.exports=n?function(e,t,i){return r.f(e,t,s(1,i))}:function(e,t,i){return e[t]=i,e}},(e,t,i)=>{var n=i(6),r=i(42),s=i(46),o=i(47),a=i(18),l=TypeError,h=Object.defineProperty,c=Object.getOwnPropertyDescriptor,d="enumerable",u="configurable",p="writable";t.f=n?s?function(e,t,i){var n;return o(e),t=a(t),o(i),"function"==typeof e&&"prototype"===t&&"value"in i&&p in i&&!i[p]&&(n=c(e,t))&&n[p]&&(e[t]=i.value,i={configurable:(u in i?i:n)[u],enumerable:(d in i?i:n)[d],writable:!1}),h(e,t,i)}:h:function(e,t,i){if(o(e),t=a(t),o(i),r)try{return h(e,t,i)}catch(e){}if("get"in i||"set"in i)throw l("Accessors not supported");return"value"in i&&(e[t]=i.value),e}},(e,t,i)=>{var n=i(6),i=i(7);e.exports=n&&i(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype})},(e,t,i)=>{var n=i(20),r=String,s=TypeError;e.exports=function(e){if(n(e))return e;throw s(r(e)+" is not an object")}},(e,t,i)=>{var o=i(21),a=i(45),l=i(49),h=i(38);e.exports=function(e,t,i,n){var r=(n=n||{}).enumerable,s=void 0!==n.name?n.name:t;if(o(i)&&l(i,s,n),n.global)r?e[t]=i:h(t,i);else{try{n.unsafe?e[t]&&(r=!0):delete e[t]}catch(e){}r?e[t]=i:a.f(e,t,{value:i,enumerable:!1,configurable:!n.nonConfigurable,writable:!n.nonWritable})}return e}},(e,t,i)=>{var n=i(14),r=i(7),s=i(21),o=i(39),a=i(6),l=i(50).CONFIGURABLE,h=i(51),i=i(52),c=i.enforce,d=i.get,u=String,p=Object.defineProperty,m=n("".slice),g=n("".replace),f=n([].join),v=a&&!r(function(){return 8!==p(function(){},"length",{value:8}).length}),b=String(String).split("String"),i=e.exports=function(e,t,i){"Symbol("===m(u(t),0,7)&&(t="["+g(u(t),/^Symbol\(([^)]*)\)/,"$1")+"]"),i&&i.getter&&(t="get "+t),i&&i.setter&&(t="set "+t),(!o(e,"name")||l&&e.name!==t)&&(a?p(e,"name",{value:t,configurable:!0}):e.name=t),v&&i&&o(i,"arity")&&e.length!==i.arity&&p(e,"length",{value:i.arity});try{i&&o(i,"constructor")&&i.constructor?a&&p(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}i=c(e);return o(i,"source")||(i.source=f(b,"string"==typeof t?t:"")),e};Function.prototype.toString=i(function(){return s(this)&&d(this).source||h(this)},"toString")},(e,t,i)=>{var n=i(6),i=i(39),r=Function.prototype,s=n&&Object.getOwnPropertyDescriptor,i=i(r,"name"),o=i&&"something"===function(){}.name,n=i&&(!n||s(r,"name").configurable);e.exports={EXISTS:i,PROPER:o,CONFIGURABLE:n}},(e,t,i)=>{var n=i(14),r=i(21),i=i(37),s=n(Function.toString);r(i.inspectSource)||(i.inspectSource=function(e){return s(e)}),e.exports=i.inspectSource},(e,t,i)=>{var n,r,s,o,a=i(53),l=i(4),h=i(20),c=i(44),d=i(39),u=i(37),p=i(54),i=i(55),m="Object already initialized",g=l.TypeError,l=l.WeakMap,f=a||u.state?((s=u.state||(u.state=new l)).get=s.get,s.has=s.has,s.set=s.set,n=function(e,t){if(s.has(e))throw g(m);return t.facade=e,s.set(e,t),t},r=function(e){return s.get(e)||{}},function(e){return s.has(e)}):(i[o=p("state")]=!0,n=function(e,t){if(d(e,o))throw g(m);return t.facade=e,c(e,o,t),t},r=function(e){return d(e,o)?e[o]:{}},function(e){return d(e,o)});e.exports={set:n,get:r,has:f,enforce:function(e){return f(e)?r(e):n(e,{})},getterFor:function(t){return function(e){if(h(e)&&(e=r(e)).type===t)return e;throw g("Incompatible receiver, "+t+" required")}}}},(e,t,i)=>{var n=i(4),i=i(21),n=n.WeakMap;e.exports=i(n)&&/native code/.test(String(n))},(e,t,i)=>{var n=i(35),r=i(41),s=n("keys");e.exports=function(e){return s[e]||(s[e]=r(e))}},e=>{e.exports={}},(e,t,i)=>{var l=i(39),h=i(57),c=i(5),d=i(45);e.exports=function(e,t,i){for(var n=h(t),r=d.f,s=c.f,o=0;o{var n=i(24),r=i(14),s=i(58),o=i(67),a=i(47),l=r([].concat);e.exports=n("Reflect","ownKeys")||function(e){var t=s.f(a(e)),i=o.f;return i?l(t,i(e)):t}},(e,t,i)=>{var n=i(59),r=i(66).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return n(e,r)}},(e,t,i)=>{var n=i(14),o=i(39),a=i(12),l=i(60).indexOf,h=i(55),c=n([].push);e.exports=function(e,t){var i,n=a(e),r=0,s=[];for(i in n)!o(h,i)&&o(n,i)&&c(s,i);for(;t.length>r;)!o(n,i=t[r++])||~l(s,i)||c(s,i);return s}},(e,t,i)=>{function n(a){return function(e,t,i){var n,r=l(e),s=c(r),o=h(i,s);if(a&&t!=t){for(;o{var n=i(62),r=Math.max,s=Math.min;e.exports=function(e,t){e=n(e);return e<0?r(e+t,0):s(e,t)}},(e,t,i)=>{var n=i(63);e.exports=function(e){e=+e;return e!=e||0==e?0:n(e)}},e=>{var t=Math.ceil,i=Math.floor;e.exports=Math.trunc||function(e){e=+e;return(0{var n=i(65);e.exports=function(e){return n(e.length)}},(e,t,i)=>{var n=i(62),r=Math.min;e.exports=function(e){return 0{e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},(e,t)=>{t.f=Object.getOwnPropertySymbols},(e,t,i)=>{function n(e,t){return(e=l[a(e)])===c||e!==h&&(s(t)?r(t):!!t)}var r=i(7),s=i(21),o=/#|\.prototype\./,a=n.normalize=function(e){return String(e).replace(o,".").toLowerCase()},l=n.data={},h=n.NATIVE="N",c=n.POLYFILL="P";e.exports=n},(e,t,i)=>{var i=i(9),n=Function.prototype,r=n.apply,s=n.call;e.exports="object"==typeof Reflect&&Reflect.apply||(i?s.bind(r):function(){return s.apply(r,arguments)})},(e,t,i)=>{var d=i(24),u=i(39),p=i(44),m=i(25),g=i(71),f=i(56),v=i(74),b=i(75),y=i(76),w=i(80),x=i(81),A=i(6),S=i(36);e.exports=function(e,t,i,n){var r="stackTraceLimit",s=n?2:1,o=e.split("."),a=o[o.length-1],l=d.apply(null,o);if(l){var h=l.prototype;if(!S&&u(h,"cause")&&delete h.cause,!i)return l;var o=d("Error"),c=t(function(e,t){t=y(n?t:e,void 0),e=n?new l(e):new l;return void 0!==t&&p(e,"message",t),x(e,c,e.stack,2),this&&m(h,this)&&b(e,this,c),s{var r=i(72),s=i(47),o=i(73);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var i,n=!1,e={};try{(i=r(Object.prototype,"__proto__","set"))(e,[]),n=e instanceof Array}catch(i){}return function(e,t){return s(e),o(t),n?i(e,t):e.__proto__=t,e}}():void 0)},(e,t,i)=>{var n=i(14),r=i(31);e.exports=function(e,t,i){try{return n(r(Object.getOwnPropertyDescriptor(e,t)[i]))}catch(e){}}},(e,t,i)=>{var n=i(21),r=String,s=TypeError;e.exports=function(e){if("object"==typeof e||n(e))return e;throw s("Can't set "+r(e)+" as a prototype")}},(e,t,i)=>{var n=i(45).f;e.exports=function(e,t,i){i in e||n(e,i,{configurable:!0,get:function(){return t[i]},set:function(e){t[i]=e}})}},(e,t,i)=>{var n=i(21),r=i(20),s=i(71);e.exports=function(e,t,i){return s&&n(t=t.constructor)&&t!==i&&r(t=t.prototype)&&t!==i.prototype&&s(e,t),e}},(e,t,i)=>{var n=i(77);e.exports=function(e,t){return void 0===e?arguments.length<2?"":t:n(e)}},(e,t,i)=>{var n=i(78),r=String;e.exports=function(e){if("Symbol"===n(e))throw TypeError("Cannot convert a Symbol value to a string");return r(e)}},(e,t,i)=>{var n=i(79),r=i(21),s=i(15),o=i(34)("toStringTag"),a=Object,l="Arguments"===s(function(){return arguments}());e.exports=n?s:function(e){var t;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(t=function(e,t){try{return e[t]}catch(e){}}(e=a(e),o))?t:l?s(e):"Object"===(t=s(e))&&r(e.callee)?"Arguments":t}},(e,t,i)=>{var n={};n[i(34)("toStringTag")]="z",e.exports="[object z]"===String(n)},(e,t,i)=>{var n=i(20),r=i(44);e.exports=function(e,t){n(t)&&"cause"in t&&r(e,"cause",t.cause)}},(e,t,i)=>{var r=i(44),s=i(82),o=i(83),a=Error.captureStackTrace;e.exports=function(e,t,i,n){o&&(a?a(e,t):r(e,"stack",s(i,n)))}},(e,t,i)=>{var i=i(14),n=Error,r=i("".replace),i=String(n("zxcasd").stack),s=/\n\s*at [^:]*:[^\n]*/,o=s.test(i);e.exports=function(e,t){if(o&&"string"==typeof e&&!n.prepareStackTrace)for(;t--;)e=r(e,s,"");return e}},(e,t,i)=>{var n=i(7),r=i(11);e.exports=!n(function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",r(1,7)),7!==e.stack)})},(e,t,i)=>{var n=i(48),r=i(14),d=i(77),u=i(85),i=URLSearchParams,s=i.prototype,p=r(s.append),m=r(s.delete),g=r(s.forEach),f=r([].push),r=new i("a=1&a=2&b=3");r.delete("a",1),r.delete("b",void 0),r+""!="a=2"&&n(s,"delete",function(e){var t=arguments.length,i=t<2?void 0:arguments[1];if(t&&void 0===i)return m(this,e);var n=[];g(this,function(e,t){f(n,{key:t,value:e})}),u(t,1);for(var r,s=d(e),o=d(i),a=0,l=0,h=!1,c=n.length;a{var i=TypeError;e.exports=function(e,t){if(e{var n=i(48),r=i(14),o=i(77),a=i(85),i=URLSearchParams,s=i.prototype,l=r(s.getAll),h=r(s.has),r=new i("a=1");!r.has("a",2)&&r.has("a",void 0)||n(s,"has",function(e){var t=arguments.length,i=t<2?void 0:arguments[1];if(t&&void 0===i)return h(this,e);var n=l(this,e);a(t,1);for(var r=o(i),s=0;s{var n=i(6),r=i(14),i=i(88),s=URLSearchParams.prototype,o=r(s.forEach);!n||"size"in s||i(s,"size",{get:function(){var e=0;return o(this,function(){e++}),e},configurable:!0,enumerable:!0})},(e,t,i)=>{var n=i(49),r=i(45);e.exports=function(e,t,i){return i.get&&n(i.get,t,{getter:!0}),i.set&&n(i.set,t,{setter:!0}),r.f(e,t,i)}},(e,t,i)=>{var n=i(3),s=i(40),o=i(64),a=i(90),l=i(92);n({target:"Array",proto:!0,arity:1,forced:i(7)(function(){return 4294967297!==[].push.call({length:4294967296},1)})||!function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(e){return e instanceof TypeError}}()},{push:function(e){var t=s(this),i=o(t),n=arguments.length;l(i+n);for(var r=0;r{var n=i(6),r=i(91),s=TypeError,o=Object.getOwnPropertyDescriptor,i=n&&!function(){if(void 0!==this)return 1;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(e){return e instanceof TypeError}}();e.exports=i?function(e,t){if(r(e)&&!o(e,"length").writable)throw s("Cannot set read only .length");return e.length=t}:function(e,t){return e.length=t}},(e,t,i)=>{var n=i(15);e.exports=Array.isArray||function(e){return"Array"===n(e)}},e=>{var t=TypeError;e.exports=function(e){if(9007199254740991{var n=i(94),r=i(98).findLast,s=n.aTypedArray;(0,n.exportTypedArrayMethod)("findLast",function(e){return r(s(this),e,1{function n(e){var t,e=w(e);if(u(e))return(t=_(e))&&p(t,$)?t[$]:n(e)}function r(e){return!!u(e)&&(e=m(e),p(P,e)||p(I,e))}var s,o,a,l=i(95),h=i(6),c=i(4),d=i(21),u=i(20),p=i(39),m=i(78),g=i(32),f=i(44),v=i(48),b=i(88),y=i(25),w=i(96),x=i(71),A=i(34),S=i(41),i=i(52),k=i.enforce,_=i.get,i=c.Int8Array,C=i&&i.prototype,E=c.Uint8ClampedArray,E=E&&E.prototype,T=i&&w(i),M=C&&w(C),i=Object.prototype,R=c.TypeError,A=A("toStringTag"),L=S("TYPED_ARRAY_TAG"),$="TypedArrayConstructor",F=l&&!!x&&"Opera"!==m(c.opera),S=!1,P={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},I={BigInt64Array:8,BigUint64Array:8};for(s in P)(a=(o=c[s])&&o.prototype)?k(a)[$]=o:F=!1;for(s in I)(a=(o=c[s])&&o.prototype)&&(k(a)[$]=o);if((!F||!d(T)||T===Function.prototype)&&(T=function(){throw R("Incorrect invocation")},F))for(s in P)c[s]&&x(c[s],T);if((!F||!M||M===i)&&(M=T.prototype,F))for(s in P)c[s]&&x(c[s].prototype,M);if(F&&w(E)!==M&&x(E,M),h&&!p(M,A))for(s in b(M,A,{configurable:S=!0,get:function(){return u(this)?this[L]:void 0}}),P)c[s]&&f(c[s],L,s);e.exports={NATIVE_ARRAY_BUFFER_VIEWS:F,TYPED_ARRAY_TAG:S&&L,aTypedArray:function(e){if(r(e))return e;throw R("Target is not a typed array")},aTypedArrayConstructor:function(e){if(!d(e)||x&&!y(T,e))throw R(g(e)+" is not a typed array constructor");return e},exportTypedArrayMethod:function(e,t,i,n){if(h){if(i)for(var r in P){r=c[r];if(r&&p(r.prototype,e))try{delete r.prototype[e]}catch(i){try{r.prototype[e]=t}catch(e){}}}M[e]&&!i||v(M,e,!i&&F&&C[e]||t,n)}},exportTypedArrayStaticMethod:function(e,t,i){var n,r;if(h){if(x){if(i)for(n in P)if((r=c[n])&&p(r,e))try{delete r[e]}catch(e){}if(T[e]&&!i)return;try{return v(T,e,!i&&F&&T[e]||t)}catch(e){}}for(n in P)!(r=c[n])||r[e]&&!i||v(r,e,t)}},getTypedArrayConstructor:n,isView:function(e){return!!u(e)&&("DataView"===(e=m(e))||p(P,e)||p(I,e))},isTypedArray:r,TypedArray:T,TypedArrayPrototype:M}},e=>{e.exports="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView},(e,t,i)=>{var n=i(39),r=i(21),s=i(40),o=i(54),i=i(97),a=o("IE_PROTO"),l=Object,h=l.prototype;e.exports=i?l.getPrototypeOf:function(e){var t,e=s(e);return n(e,a)?e[a]:(t=e.constructor,r(t)&&e instanceof t?t.prototype:e instanceof l?h:null)}},(e,t,i)=>{i=i(7);e.exports=!i(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})},(e,t,i)=>{function n(l){var h=1===l;return function(e,t,i){for(var n,r=u(e),s=d(r),o=c(t,i),a=p(s);0{var n=i(100),r=i(31),s=i(9),o=n(n.bind);e.exports=function(e,t){return r(e),void 0===t?e:s?o(e,t):function(){return e.apply(t,arguments)}}},(e,t,i)=>{var n=i(15),r=i(14);e.exports=function(e){if("Function"===n(e))return r(e)}},(e,t,i)=>{var n=i(94),r=i(98).findLastIndex,s=n.aTypedArray;(0,n.exportTypedArrayMethod)("findLastIndex",function(e){return r(s(this),e,1{var n=i(4),s=i(8),r=i(94),o=i(64),a=i(103),l=i(40),i=i(7),h=n.RangeError,c=n.Int8Array,n=c&&c.prototype,d=n&&n.set,u=r.aTypedArray,n=r.exportTypedArrayMethod,p=!i(function(){var e=new Uint8ClampedArray(2);return s(d,e,{length:1,0:3},1),3!==e[1]}),r=p&&r.NATIVE_ARRAY_BUFFER_VIEWS&&i(function(){var e=new c(2);return e.set(1),e.set("2",1),0!==e[0]||2!==e[1]});n("set",function(e){u(this);var t=a(1{var n=i(104),r=RangeError;e.exports=function(e,t){e=n(e);if(e%t)throw r("Wrong offset");return e}},(e,t,i)=>{var n=i(62),r=RangeError;e.exports=function(e){e=n(e);if(e<0)throw r("The argument can't be less than 0");return e}},(e,t,i)=>{var n=i(106),i=i(94),r=i.aTypedArray,s=i.exportTypedArrayMethod,o=i.getTypedArrayConstructor;s("toReversed",function(){return n(r(this),o(this))})},(e,t,i)=>{var s=i(64);e.exports=function(e,t){for(var i=s(e),n=new t(i),r=0;r{var n=i(94),r=i(14),s=i(31),o=i(108),a=n.aTypedArray,l=n.getTypedArrayConstructor,i=n.exportTypedArrayMethod,h=r(n.TypedArrayPrototype.sort);i("toSorted",function(e){void 0!==e&&s(e);var t=a(this),t=o(l(t),t);return h(t,e)})},(e,t,i)=>{var s=i(64);e.exports=function(e,t){for(var i=0,n=s(t),r=new e(n);i{var n=i(110),r=i(94),s=i(111),o=i(62),a=i(112),l=r.aTypedArray,h=r.getTypedArrayConstructor;(0,r.exportTypedArrayMethod)("with",function(e,t){var i=l(this),e=o(e),t=s(i)?a(t):+t;return n(i,h(i),e,t)},!!!function(){try{new Int8Array(1).with(2,{valueOf:function(){throw 8}})}catch(e){return 8===e}}())},(e,t,i)=>{var l=i(64),h=i(62),c=RangeError;e.exports=function(e,t,i,n){var r=l(e),i=h(i),s=i<0?r+i:i;if(r<=s||s<0)throw c("Incorrect index");for(var o=new t(r),a=0;a{var n=i(78);e.exports=function(e){e=n(e);return"BigInt64Array"===e||"BigUint64Array"===e}},(e,t,i)=>{var n=i(19),r=TypeError;e.exports=function(e){e=n(e,"number");if("number"==typeof e)throw r("Can't convert number to bigint");return BigInt(e)}},(e,t,i)=>{var n=i(6),r=i(88),s=i(114),i=ArrayBuffer.prototype;!n||"detached"in i||r(i,"detached",{configurable:!0,get:function(){return s(this)}})},(e,t,i)=>{var n=i(14),r=i(115),s=n(ArrayBuffer.prototype.slice);e.exports=function(e){if(0!==r(e))return!1;try{return s(e,0,0),!1}catch(e){return!0}}},(e,t,i)=>{var n=i(72),r=i(15),s=TypeError;e.exports=n(ArrayBuffer.prototype,"byteLength","get")||function(e){if("ArrayBuffer"!==r(e))throw s("ArrayBuffer expected");return e.byteLength}},(e,t,i)=>{var n=i(3),r=i(117);r&&n({target:"ArrayBuffer",proto:!0},{transfer:function(){return r(this,arguments.length?arguments[0]:void 0,!0)}})},(e,t,i)=>{var n=i(4),r=i(14),s=i(72),h=i(118),c=i(114),d=i(115),i=i(119),u=n.TypeError,p=n.structuredClone,m=n.ArrayBuffer,g=n.DataView,f=Math.min,n=m.prototype,o=g.prototype,v=r(n.slice),b=s(n,"resizable","get"),y=s(n,"maxByteLength","get"),w=r(o.getInt8),x=r(o.setInt8);e.exports=i&&function(e,t,i){var n=d(e),t=void 0===t?n:h(t),r=!b||!b(e);if(c(e))throw u("ArrayBuffer is detached");e=p(e,{transfer:[e]});if(n===t&&(i||r))return e;if(t<=n&&(!i||r))return v(e,0,t);for(var i=i&&!r&&y?{maxByteLength:y(e)}:void 0,r=new m(t,i),s=new g(e),o=new g(r),a=f(t,n),l=0;l{var n=i(62),r=i(65),s=RangeError;e.exports=function(e){if(void 0===e)return 0;var e=n(e),t=r(e);if(e!==t)throw s("Wrong length or index");return t}},(e,t,i)=>{var n=i(4),r=i(7),s=i(28),o=i(120),a=i(121),l=i(122),h=n.structuredClone;e.exports=!!h&&!r(function(){var e,t;return!(a&&92{var n=i(121),i=i(122);e.exports=!n&&!i&&"object"==typeof window&&"object"==typeof document},e=>{e.exports="object"==typeof Deno&&Deno&&"object"==typeof Deno.version},(e,t,i)=>{var n=i(4),i=i(15);e.exports="process"===i(n.process)},(e,t,i)=>{var n=i(3),r=i(117);r&&n({target:"ArrayBuffer",proto:!0},{transferToFixedLength:function(){return r(this,arguments.length?arguments[0]:void 0,!1)}})},(__unused_webpack_module,exports,__w_pdfjs_require__)=>{Object.defineProperty(exports,"__esModule",{value:!0}),exports.RenderTask=exports.PDFWorkerUtil=exports.PDFWorker=exports.PDFPageProxy=exports.PDFDocumentProxy=exports.PDFDocumentLoadingTask=exports.PDFDataRangeTransport=exports.LoopbackPort=exports.DefaultStandardFontDataFactory=exports.DefaultFilterFactory=exports.DefaultCanvasFactory=exports.DefaultCMapReaderFactory=void 0,Object.defineProperty(exports,"SVGGraphics",{enumerable:!0,get:function(){return _displaySvg.SVGGraphics}}),exports.build=void 0,exports.getDocument=getDocument,exports.version=void 0,__w_pdfjs_require__(84),__w_pdfjs_require__(86),__w_pdfjs_require__(87),__w_pdfjs_require__(2),__w_pdfjs_require__(93),__w_pdfjs_require__(101),__w_pdfjs_require__(102),__w_pdfjs_require__(105),__w_pdfjs_require__(107),__w_pdfjs_require__(109),__w_pdfjs_require__(113),__w_pdfjs_require__(116),__w_pdfjs_require__(123),__w_pdfjs_require__(89),__w_pdfjs_require__(125),__w_pdfjs_require__(136),__w_pdfjs_require__(138),__w_pdfjs_require__(141),__w_pdfjs_require__(143),__w_pdfjs_require__(145),__w_pdfjs_require__(147),__w_pdfjs_require__(149),__w_pdfjs_require__(152);var _util=__w_pdfjs_require__(1),_annotation_storage=__w_pdfjs_require__(163),_display_utils=__w_pdfjs_require__(168),_font_loader=__w_pdfjs_require__(171),_displayNode_utils=__w_pdfjs_require__(172),_canvas=__w_pdfjs_require__(173),_worker_options=__w_pdfjs_require__(176),_message_handler=__w_pdfjs_require__(177),_metadata=__w_pdfjs_require__(178),_optional_content_config=__w_pdfjs_require__(179),_transport_stream=__w_pdfjs_require__(180),_displayFetch_stream=__w_pdfjs_require__(181),_displayNetwork=__w_pdfjs_require__(184),_displayNode_stream=__w_pdfjs_require__(185),_displaySvg=__w_pdfjs_require__(186),_xfa_text=__w_pdfjs_require__(194);const DEFAULT_RANGE_CHUNK_SIZE=65536,RENDERING_CANCELLED_TIMEOUT=100,DELAYED_CLEANUP_TIMEOUT=5e3,DefaultCanvasFactory=_util.isNodeJS?_displayNode_utils.NodeCanvasFactory:_display_utils.DOMCanvasFactory,DefaultCMapReaderFactory=(exports.DefaultCanvasFactory=DefaultCanvasFactory,_util.isNodeJS?_displayNode_utils.NodeCMapReaderFactory:_display_utils.DOMCMapReaderFactory),DefaultFilterFactory=(exports.DefaultCMapReaderFactory=DefaultCMapReaderFactory,_util.isNodeJS?_displayNode_utils.NodeFilterFactory:_display_utils.DOMFilterFactory),DefaultStandardFontDataFactory=(exports.DefaultFilterFactory=DefaultFilterFactory,_util.isNodeJS?_displayNode_utils.NodeStandardFontDataFactory:_display_utils.DOMStandardFontDataFactory);function getDocument(e){if("string"==typeof e||e instanceof URL?e={url:e}:(0,_util.isArrayBuffer)(e)&&(e={data:e}),"object"!=typeof e)throw new Error("Invalid parameter in getDocument, need parameter object.");if(!e.url&&!e.data&&!e.range)throw new Error("Invalid parameter object: need either .data, .range or .url");const i=new PDFDocumentLoadingTask,n=i["docId"],r=e.url?getUrlProp(e.url):null,s=e.data?getDataProp(e.data):null,o=e.httpHeaders||null,a=!0===e.withCredentials,t=e.password??null,l=e.range instanceof PDFDataRangeTransport?e.range:null,h=Number.isInteger(e.rangeChunkSize)&&0{for(const e of this._progressListeners)e(t,i)})}onDataProgressiveRead(t){this._readyCapability.promise.then(()=>{for(const e of this._progressiveReadListeners)e(t)})}onDataProgressiveDone(){this._readyCapability.promise.then(()=>{for(const e of this._progressiveDoneListeners)e()})}transportReady(){this._readyCapability.resolve()}requestDataRange(e,t){(0,_util.unreachable)("Abstract method PDFDataRangeTransport.requestDataRange")}abort(){}}exports.PDFDataRangeTransport=PDFDataRangeTransport;class PDFDocumentProxy{constructor(e,t){this._pdfInfo=e,this._transport=t,Object.defineProperty(this,"getJavaScript",{value:()=>((0,_display_utils.deprecated)("`PDFDocumentProxy.getJavaScript`, please use `PDFDocumentProxy.getJSActions` instead."),this.getJSActions().then(e=>{if(!e)return e;var t=[];for(const i in e)t.push(...e[i]);return t}))})}get annotationStorage(){return this._transport.annotationStorage}get filterFactory(){return this._transport.filterFactory}get numPages(){return this._pdfInfo.numPages}get fingerprints(){return this._pdfInfo.fingerprints}get isPureXfa(){return(0,_util.shadow)(this,"isPureXfa",!!this._transport._htmlForXfa)}get allXfaHtml(){return this._transport._htmlForXfa}getPage(e){return this._transport.getPage(e)}getPageIndex(e){return this._transport.getPageIndex(e)}getDestinations(){return this._transport.getDestinations()}getDestination(e){return this._transport.getDestination(e)}getPageLabels(){return this._transport.getPageLabels()}getPageLayout(){return this._transport.getPageLayout()}getPageMode(){return this._transport.getPageMode()}getViewerPreferences(){return this._transport.getViewerPreferences()}getOpenAction(){return this._transport.getOpenAction()}getAttachments(){return this._transport.getAttachments()}getJSActions(){return this._transport.getDocJSActions()}getOutline(){return this._transport.getOutline()}getOptionalContentConfig(){return this._transport.getOptionalContentConfig()}getPermissions(){return this._transport.getPermissions()}getMetadata(){return this._transport.getMetadata()}getMarkInfo(){return this._transport.getMarkInfo()}getData(){return this._transport.getData()}saveDocument(){return this._transport.saveDocument()}getDownloadInfo(){return this._transport.downloadInfoCapability.promise}cleanup(){return this._transport.startCleanup(0{d.renderTasks.delete(m),(this._maybeCleanupAfterRender||u)&&(this.#i=!0),this.#s(!u),e?(m.capability.reject(e),this._abortOperatorList({intentState:d,reason:e instanceof Error?e:new Error(e)})):m.capability.resolve(),this._stats?.timeEnd("Rendering"),this._stats?.timeEnd("Overall")}),m=new InternalRenderTask({callback:p,params:{canvasContext:t,viewport:i,transform:s,background:o},objs:this.objs,commonObjs:this.commonObjs,annotationCanvasMap:l,operatorList:d.operatorList,pageIndex:this._pageIndex,canvasFactory:this._transport.canvasFactory,filterFactory:this._transport.filterFactory,useRequestAnimationFrame:!u,pdfBug:this._pdfBug,pageColors:h});(d.renderTasks||=new Set).add(m);e=m.task;return Promise.all([d.displayReadyCapability.promise,a]).then(e=>{var[e,t]=e;this.destroyed?p():(this._stats?.time("Rendering"),m.initializeGraphics({transparency:e,optionalContentConfig:t}),m.operatorListChanged())}).catch(p),e}getOperatorList(){var{intent:e="display",annotationMode:t=_util.AnnotationMode.ENABLE,printAnnotationStorage:i=null}=0e.items.length})}getTextContent(){var e=0_xfa_text.XfaText.textContent(e));const i=this.streamTextContent(e);return new Promise(function(n,e){const t=i.getReader(),r={items:[],styles:Object.create(null)};!function i(){t.read().then(function(e){var{value:e,done:t}=e;t?n(r):(Object.assign(r.styles,e.styles),r.items.push(...e.items),i())},e)}()})}getStructTree(){return this._transport.getStructTree(this._pageIndex)}_destroy(){this.destroyed=!0;var e=[];for(const t of this._intentStates.values())if(this._abortOperatorList({intentState:t,reason:new Error("Page was destroyed."),force:!0}),!t.opListReadCapability)for(const i of t.renderTasks)e.push(i.completed),i.cancel();return this.objs.clear(),this.#i=!1,this.#r(),Promise.all(e)}cleanup(){var e=0{this.#n=null,this.#s(!1)},DELAYED_CLEANUP_TIMEOUT),!1;for(const{renderTasks:e,operatorList:t}of this._intentStates.values())if(0{s.read().then(e=>{var{value:e,done:t}=e;t?o.streamReader=null:this._transport.destroyed||(this._renderPageChunk(e,o),a())},e=>{if(o.streamReader=null,!this._transport.destroyed){if(o.operatorList){o.operatorList.lastChunk=!0;for(const e of o.renderTasks)e.operatorListChanged();this.#s(!0)}if(o.displayReadyCapability)o.displayReadyCapability.reject(e);else{if(!o.opListReadCapability)throw e;o.opListReadCapability.reject(e)}}})});a()}_abortOperatorList(e){let{intentState:t,reason:i,force:n=!1}=e;if(t.streamReader){if(t.streamReaderCancelTimeout&&(clearTimeout(t.streamReaderCancelTimeout),t.streamReaderCancelTimeout=null),!n){if(0{t.streamReaderCancelTimeout=null,this._abortOperatorList({intentState:t,reason:i,force:!0})},e))}}if(t.streamReader.cancel(new _util.AbortException(i.message)).catch(()=>{}),t.streamReader=null,!this._transport.destroyed){for(const[e,i]of this._intentStates)if(i===t){this._intentStates.delete(e);break}this.cleanup()}}}get stats(){return this._stats}}exports.PDFPageProxy=PDFPageProxy;class LoopbackPort{#a=new Set;#o=Promise.resolve();postMessage(e,t){const i={data:structuredClone(e,null)};this.#o.then(()=>{for(const e of this.#a)e.call(this,i)})}addEventListener(e,t){this.#a.add(t)}removeEventListener(e,t){this.#a.delete(t)}terminate(){this.#a.clear()}}exports.LoopbackPort=LoopbackPort;const PDFWorkerUtil={isWorkerDisabled:!1,fallbackWorkerSrc:null,fakeWorkerId:0};if(exports.PDFWorkerUtil=PDFWorkerUtil,_util.isNodeJS&&"function"==typeof require)PDFWorkerUtil.isWorkerDisabled=!0,PDFWorkerUtil.fallbackWorkerSrc="./pdf.worker.js";else if("object"==typeof document){const t=document?.currentScript?.src;t&&(PDFWorkerUtil.fallbackWorkerSrc=t.replace(/(\.(?:min\.)?js)(\?.*)?$/i,".worker$1$2"))}PDFWorkerUtil.isSameOrigin=function(e,t){let i;try{if(!(i=new URL(e)).origin||"null"===i.origin)return!1}catch{return!1}e=new URL(t,i);return i.origin===e.origin},PDFWorkerUtil.createCDNWrapper=function(e){return URL.createObjectURL(new Blob([`importScripts("${e}");`]))};class PDFWorker{static#l;constructor(){var{name:e=null,port:t=null,verbosity:i=(0,_util.getVerbosityLevel)()}=0{t.removeEventListener("error",r),i.destroy(),t.terminate(),this.destroyed?this._readyCapability.reject(new Error("Worker was destroyed")):this._setupFakeWorker()},r=()=>{this._webWorker||n()},s=(t.addEventListener("error",r),i.on("test",e=>{t.removeEventListener("error",r),this.destroyed?n():e?(this._messageHandler=i,this._port=t,this._webWorker=t,this._readyCapability.resolve(),i.send("configure",{verbosity:this.verbosity})):(this._setupFakeWorker(),i.destroy(),t.terminate())}),i.on("ready",e=>{if(t.removeEventListener("error",r),this.destroyed)n();else try{s()}catch{this._setupFakeWorker()}}),()=>{var e=new Uint8Array;i.send("test",e,[e.buffer])});return void s()}catch{(0,_util.info)("The worker has been disabled.")}}this._setupFakeWorker()}_setupFakeWorker(){PDFWorkerUtil.isWorkerDisabled||((0,_util.warn)("Setting up fake worker."),PDFWorkerUtil.isWorkerDisabled=!0),PDFWorker._setupFakeWorkerGlobal.then(e=>{var t,i,n;this.destroyed?this._readyCapability.reject(new Error("Worker was destroyed")):(t=new LoopbackPort,this._port=t,i="fake"+PDFWorkerUtil.fakeWorkerId++,n=new _message_handler.MessageHandler(i+"_worker",i,t),e.setup(n,t),e=new _message_handler.MessageHandler(i,i+"_worker",t),this._messageHandler=e,this._readyCapability.resolve(),e.send("configure",{verbosity:this.verbosity}))}).catch(e=>{this._readyCapability.reject(new Error(`Setting up fake worker failed: "${e.message}".`))})}destroy(){this.destroyed=!0,this._webWorker&&(this._webWorker.terminate(),this._webWorker=null),PDFWorker.#l?.delete(this._port),this._port=null,this._messageHandler&&(this._messageHandler.destroy(),this._messageHandler=null)}static fromPort(e){if(!e?.port)throw new Error("PDFWorker.fromPort - invalid method signature.");var t=this.#l?.get(e.port);if(t){if(t._pendingDestroy)throw new Error("PDFWorker.fromPort - the worker is being destroyed.\nPlease remember to await `PDFDocumentLoadingTask.destroy()`-calls.");return t}return new PDFWorker(e)}static get workerSrc(){if(_worker_options.GlobalWorkerOptions.workerSrc)return _worker_options.GlobalWorkerOptions.workerSrc;if(null!==PDFWorkerUtil.fallbackWorkerSrc)return _util.isNodeJS||(0,_display_utils.deprecated)('No "GlobalWorkerOptions.workerSrc" specified.'),PDFWorkerUtil.fallbackWorkerSrc;throw new Error('No "GlobalWorkerOptions.workerSrc" specified.')}static get _mainThreadWorkerMessageHandler(){try{return globalThis.pdfjsWorker?.WorkerMessageHandler||null}catch{return null}}static get _setupFakeWorkerGlobal(){const loader=async()=>{const mainWorkerMessageHandler=this._mainThreadWorkerMessageHandler;if(mainWorkerMessageHandler)return mainWorkerMessageHandler;if(_util.isNodeJS&&"function"==typeof require){const worker=eval("require")(this.workerSrc);return worker.WorkerMessageHandler}return await(0,_display_utils.loadScript)(this.workerSrc),window.pdfjsWorker.WorkerMessageHandler};return(0,_util.shadow)(this,"_setupFakeWorkerGlobal",loader())}}exports.PDFWorker=PDFWorker;class WorkerTransport{#c=new Map;#h=new Map;#d=new Map;#u=null;constructor(e,t,i,n,r){this.messageHandler=e,this.loadingTask=t,this.commonObjs=new PDFObjects,this.fontLoader=new _font_loader.FontLoader({ownerDocument:n.ownerDocument,styleElement:n.styleElement}),this._params=n,this.canvasFactory=r.canvasFactory,this.filterFactory=r.filterFactory,this.cMapReaderFactory=r.cMapReaderFactory,this.standardFontDataFactory=r.standardFontDataFactory,this.destroyed=!1,this.destroyCapability=null,this._networkStream=i,this._fullReader=null,this._lastProgress=null,this.downloadInfoCapability=new _util.PromiseCapability,this.setupMessageHandler()}#p(e){var t=1{this.commonObjs.clear(),this.fontLoader.clear(),this.#c.clear(),this.filterFactory.destroy(),this._networkStream?.cancelAllRequests(new _util.AbortException("Worker was terminated.")),this.messageHandler&&(this.messageHandler.destroy(),this.messageHandler=null),this.destroyCapability.resolve()},this.destroyCapability.reject)}return this.destroyCapability.promise}setupMessageHandler(){const{messageHandler:o,loadingTask:n}=this;o.on("GetReader",(e,i)=>{(0,_util.assert)(this._networkStream,"GetReader - no `IPDFStream` instance available."),this._fullReader=this._networkStream.getFullReader(),this._fullReader.onProgress=e=>{this._lastProgress={loaded:e.loaded,total:e.total}},i.onPull=()=>{this._fullReader.read().then(function(e){var{value:e,done:t}=e;t?i.close():((0,_util.assert)(e instanceof ArrayBuffer,"GetReader - expected an ArrayBuffer."),i.enqueue(new Uint8Array(e),1,[e]))}).catch(e=>{i.error(e)})},i.onCancel=e=>{this._fullReader.cancel(e),i.ready.catch(e=>{if(!this.destroyed)throw e})}}),o.on("ReaderHeadersReady",e=>{const t=new _util.PromiseCapability,i=this._fullReader;return i.headersReady.then(()=>{i.isStreamingSupported&&i.isRangeSupported||(this._lastProgress&&n.onProgress?.(this._lastProgress),i.onProgress=e=>{n.onProgress?.({loaded:e.loaded,total:e.total})}),t.resolve({isStreamingSupported:i.isStreamingSupported,isRangeSupported:i.isRangeSupported,contentLength:i.contentLength})},t.reject),t.promise}),o.on("GetRangeReader",(e,i)=>{(0,_util.assert)(this._networkStream,"GetRangeReader - no `IPDFStream` instance available.");const t=this._networkStream.getRangeReader(e.begin,e.end);t?(i.onPull=()=>{t.read().then(function(e){var{value:e,done:t}=e;t?i.close():((0,_util.assert)(e instanceof ArrayBuffer,"GetRangeReader - expected an ArrayBuffer."),i.enqueue(new Uint8Array(e),1,[e]))}).catch(e=>{i.error(e)})},i.onCancel=e=>{t.cancel(e),i.ready.catch(e=>{if(!this.destroyed)throw e})}):i.close()}),o.on("GetDoc",e=>{e=e.pdfInfo;this._numPages=e.numPages,this._htmlForXfa=e.htmlForXfa,delete e.htmlForXfa,n._capability.resolve(new PDFDocumentProxy(e,this))}),o.on("DocException",function(e){let t;switch(e.name){case"PasswordException":t=new _util.PasswordException(e.message,e.code);break;case"InvalidPDFException":t=new _util.InvalidPDFException(e.message);break;case"MissingPDFException":t=new _util.MissingPDFException(e.message);break;case"UnexpectedResponseException":t=new _util.UnexpectedResponseException(e.message,e.status);break;case"UnknownErrorException":t=new _util.UnknownErrorException(e.message,e.details);break;default:(0,_util.unreachable)("DocException - expected a valid Error.")}n._capability.reject(t)}),o.on("PasswordRequest",e=>{if(this.#u=new _util.PromiseCapability,n.onPassword){var t=e=>{e instanceof Error?this.#u.reject(e):this.#u.resolve({password:e})};try{n.onPassword(t,e.code)}catch(e){this.#u.reject(e)}}else this.#u.reject(new _util.PasswordException(e.message,e.code));return this.#u.promise}),o.on("DataLoaded",e=>{n.onProgress?.({loaded:e.length,total:e.length}),this.downloadInfoCapability.resolve(e)}),o.on("StartRenderPage",e=>{this.destroyed||this.#h.get(e.pageIndex)._startRenderPage(e.transparency,e.cacheKey)}),o.on("commonobj",e=>{let[t,i,n]=e;if(!this.destroyed&&!this.commonObjs.has(t))switch(i){case"Font":const e=this._params;if("error"in n){const o=n.error;(0,_util.warn)("Error during font loading: "+o),this.commonObjs.resolve(t,o)}else{const r=e.pdfBug&&globalThis.FontInspector?.enabled?(e,t)=>globalThis.FontInspector.fontAdded(e,t):null,s=new _font_loader.FontFaceObject(n,{isEvalSupported:e.isEvalSupported,disableFontFace:e.disableFontFace,ignoreErrors:e.ignoreErrors,inspectFont:r});this.fontLoader.bind(s).catch(e=>o.sendWithPromise("FontFallback",{id:t})).finally(()=>{!e.fontExtraProperties&&s.data&&(s.data=null),this.commonObjs.resolve(t,s)})}break;case"FontPath":case"Image":case"Pattern":this.commonObjs.resolve(t,n);break;default:throw new Error("Got unknown common object type "+i)}}),o.on("obj",e=>{let[t,i,n,r]=e;if(!this.destroyed){var s=this.#h.get(i);if(!s.objs.has(t))switch(n){case"Image":if(s.objs.resolve(t,r),r){let e;if(r.bitmap){const{width:t,height:i}=r;e=t*i*4}else e=r.data?.length||0;e>_util.MAX_IMAGE_SIZE_TO_CACHE&&(s._maybeCleanupAfterRender=!0)}break;case"Pattern":s.objs.resolve(t,r);break;default:throw new Error("Got unknown object type "+n)}}}),o.on("DocProgress",e=>{this.destroyed||n.onProgress?.({loaded:e.loaded,total:e.total})}),o.on("FetchBuiltInCMap",e=>this.destroyed?Promise.reject(new Error("Worker was destroyed.")):this.cMapReaderFactory?this.cMapReaderFactory.fetch(e):Promise.reject(new Error("CMapReaderFactory not initialized, see the `useWorkerFetch` parameter."))),o.on("FetchStandardFontData",e=>this.destroyed?Promise.reject(new Error("Worker was destroyed.")):this.standardFontDataFactory?this.standardFontDataFactory.fetch(e):Promise.reject(new Error("StandardFontDataFactory not initialized, see the `useWorkerFetch` parameter.")))}getData(){return this.messageHandler.sendWithPromise("GetData",null)}saveDocument(){this.annotationStorage.size<=0&&(0,_util.warn)("saveDocument called while `annotationStorage` is empty, please use the getData-method instead.");var{map:e,transfers:t}=this.annotationStorage.serializable;return this.messageHandler.sendWithPromise("SaveDocument",{isPureXfa:!!this._htmlForXfa,numPages:this._numPages,annotationStorage:e,filename:this._fullReader?.filename??null},t).finally(()=>{this.annotationStorage.resetModified()})}getPage(e){if(!Number.isInteger(e)||e<=0||e>this._numPages)return Promise.reject(new Error("Invalid page request."));const t=e-1,i=this.#d.get(t);return i||(e=this.messageHandler.sendWithPromise("GetPage",{pageIndex:t}).then(e=>{if(this.destroyed)throw new Error("Transport destroyed");e=new PDFPageProxy(t,e,this,this._params.pdfBug);return this.#h.set(t,e),e}),this.#d.set(t,e),e)}getPageIndex(e){return"object"!=typeof e||null===e||!Number.isInteger(e.num)||e.num<0||!Number.isInteger(e.gen)||e.gen<0?Promise.reject(new Error("Invalid pageIndex request.")):this.messageHandler.sendWithPromise("GetPageIndex",{num:e.num,gen:e.gen})}getAnnotations(e,t){return this.messageHandler.sendWithPromise("GetAnnotations",{pageIndex:e,intent:t})}getFieldObjects(){return this.#p("GetFieldObjects")}hasJSActions(){return this.#p("HasJSActions")}getCalculationOrderIds(){return this.messageHandler.sendWithPromise("GetCalculationOrderIds",null)}getDestinations(){return this.messageHandler.sendWithPromise("GetDestinations",null)}getDestination(e){return"string"!=typeof e?Promise.reject(new Error("Invalid destination request.")):this.messageHandler.sendWithPromise("GetDestination",{id:e})}getPageLabels(){return this.messageHandler.sendWithPromise("GetPageLabels",null)}getPageLayout(){return this.messageHandler.sendWithPromise("GetPageLayout",null)}getPageMode(){return this.messageHandler.sendWithPromise("GetPageMode",null)}getViewerPreferences(){return this.messageHandler.sendWithPromise("GetViewerPreferences",null)}getOpenAction(){return this.messageHandler.sendWithPromise("GetOpenAction",null)}getAttachments(){return this.messageHandler.sendWithPromise("GetAttachments",null)}getDocJSActions(){return this.#p("GetDocJSActions")}getPageJSActions(e){return this.messageHandler.sendWithPromise("GetPageJSActions",{pageIndex:e})}getStructTree(e){return this.messageHandler.sendWithPromise("GetStructTree",{pageIndex:e})}getOutline(){return this.messageHandler.sendWithPromise("GetOutline",null)}getOptionalContentConfig(){return this.messageHandler.sendWithPromise("GetOptionalContentConfig",null).then(e=>new _optional_content_config.OptionalContentConfig(e))}getPermissions(){return this.messageHandler.sendWithPromise("GetPermissions",null)}getMetadata(){var e="GetMetadata",t=this.#c.get(e);return t||(t=this.messageHandler.sendWithPromise(e,null).then(e=>({info:e[0],metadata:e[1]?new _metadata.Metadata(e[1]):null,contentDispositionFilename:this._fullReader?.filename??null,contentLength:this._fullReader?.contentLength??null})),this.#c.set(e,t),t)}getMarkInfo(){return this.messageHandler.sendWithPromise("GetMarkInfo",null)}async startCleanup(){let e=0t(i.data)),null}const i=this.#f[e];if(i?.capability.settled)return i.data;throw new Error(`Requesting object that isn't resolved yet ${e}.`)}has(e){return this.#f[e]?.capability.settled||!1}resolve(e){var t=1{this._nextBound().catch(this._cancelBound)}):Promise.resolve().then(this._nextBound).catch(this._cancelBound)}async _next(){this.cancelled||(this.operatorListIdx=this.gfx.executeOperatorList(this.operatorList,this.operatorListIdx,this._continueBound,this.stepper),this.operatorListIdx===this.operatorList.argsArray.length&&(this.running=!1,this.operatorList.lastChunk)&&(this.gfx.endDrawing(),InternalRenderTask.#b.delete(this._canvas),this.callback()))}}const version="3.11.174",build=(exports.version=version,"ce8716743");exports.build=build},(e,t,i)=>{var n=i(3),r=i(126);n({target:"Set",proto:!0,real:!0,forced:!i(135)("difference")},{difference:r})},(e,t,i)=>{var r=i(127),n=i(128),s=i(129),o=i(132),a=i(133),l=i(130),h=i(131),c=n.has,d=n.remove;e.exports=function(e){var t=r(this),i=a(e),n=s(t);return o(t)<=i.size?l(t,function(e){i.includes(e)&&d(n,e)}):h(i.getIterator(),function(e){c(t,e)&&d(n,e)}),n}},(e,t,i)=>{var n=i(128).has;e.exports=function(e){return n(e),e}},(e,t,i)=>{var i=i(14),n=Set.prototype;e.exports={Set:Set,add:i(n.add),has:i(n.has),remove:i(n.delete),proto:n}},(e,t,i)=>{var n=i(128),r=i(130),s=n.Set,o=n.add;e.exports=function(e){var t=new s;return r(e,function(e){o(t,e)}),t}},(e,t,i)=>{var n=i(14),r=i(131),i=i(128),s=i.Set,i=i.proto,o=n(i.forEach),a=n(i.keys),l=a(new s).next;e.exports=function(e,t,i){return i?r({iterator:a(e),next:l},t):o(e,t)}},(e,t,i)=>{var o=i(8);e.exports=function(e,t,i){for(var n,r=i?e:e.iterator,s=e.next;!(n=o(s,r)).done;)if(void 0!==(n=t(n.value)))return n}},(e,t,i)=>{var n=i(72),i=i(128);e.exports=n(i.proto,"size","get")||function(e){return e.size}},(e,t,i)=>{function n(e,t,i,n){this.set=e,this.size=t,this.has=i,this.keys=n}var r=i(31),s=i(47),o=i(8),a=i(62),l=i(134),h="Invalid size",c=RangeError,d=TypeError,u=Math.max;n.prototype={getIterator:function(){return l(s(o(this.keys,this.set)))},includes:function(e){return o(this.has,this.set,e)}},e.exports=function(e){s(e);var t=+e.size;if(t!=t)throw d(h);t=a(t);if(t<0)throw c(h);return new n(e,u(t,0),r(e.has),r(e.keys))}},e=>{e.exports=function(e){return{iterator:e,next:e.next,done:!1}}},(e,t,i)=>{function n(e){return{size:e,has:function(){return!1},keys:function(){return{next:function(){return{done:!0}}}}}}var r=i(24);e.exports=function(e){var t=r("Set");try{(new t)[e](n(0));try{return(new t)[e](n(-1)),!1}catch(e){return!0}}catch(e){return!1}}},(e,t,i)=>{var n=i(3),r=i(7),s=i(137);n({target:"Set",proto:!0,real:!0,forced:!i(135)("intersection")||r(function(){return"3,2"!==Array.from(new Set([1,2,3]).intersection(new Set([3,2])))})},{intersection:s})},(e,t,i)=>{var r=i(127),n=i(128),s=i(132),o=i(133),a=i(130),l=i(131),h=n.Set,c=n.add,d=n.has;e.exports=function(e){var t=r(this),i=o(e),n=new h;return s(t)>i.size?l(i.getIterator(),function(e){d(t,e)&&c(n,e)}):a(t,function(e){i.includes(e)&&c(n,e)}),n}},(e,t,i)=>{var n=i(3),r=i(139);n({target:"Set",proto:!0,real:!0,forced:!i(135)("isDisjointFrom")},{isDisjointFrom:r})},(e,t,i)=>{var r=i(127),s=i(128).has,o=i(132),a=i(133),l=i(130),h=i(131),c=i(140);e.exports=function(e){var t,i=r(this),n=a(e);return o(i)<=n.size?!1!==l(i,function(e){if(n.includes(e))return!1},!0):(t=n.getIterator(),!1!==h(t,function(e){if(s(i,e))return c(t,"normal",!1)}))}},(e,t,i)=>{var s=i(8),o=i(47),a=i(30);e.exports=function(e,t,i){var n,r;o(e);try{if(!(n=a(e,"return"))){if("throw"===t)throw i;return i}n=s(n,e)}catch(e){r=!0,n=e}if("throw"===t)throw i;if(r)throw n;return o(n),i}},(e,t,i)=>{var n=i(3),r=i(142);n({target:"Set",proto:!0,real:!0,forced:!i(135)("isSubsetOf")},{isSubsetOf:r})},(e,t,i)=>{var n=i(127),r=i(132),s=i(130),o=i(133);e.exports=function(e){var t=n(this),i=o(e);return!(r(t)>i.size)&&!1!==s(t,function(e){if(!i.includes(e))return!1},!0)}},(e,t,i)=>{var n=i(3),r=i(144);n({target:"Set",proto:!0,real:!0,forced:!i(135)("isSupersetOf")},{isSupersetOf:r})},(e,t,i)=>{var n=i(127),r=i(128).has,s=i(132),o=i(133),a=i(131),l=i(140);e.exports=function(e){var t,i=n(this),e=o(e);return!(s(i){var n=i(3),r=i(146);n({target:"Set",proto:!0,real:!0,forced:!i(135)("symmetricDifference")},{symmetricDifference:r})},(e,t,i)=>{var n=i(127),r=i(128),s=i(129),o=i(133),a=i(131),l=r.add,h=r.has,c=r.remove;e.exports=function(e){var t=n(this),e=o(e).getIterator(),i=s(t);return a(e,function(e){(h(t,e)?c:l)(i,e)}),i}},(e,t,i)=>{var n=i(3),r=i(148);n({target:"Set",proto:!0,real:!0,forced:!i(135)("union")},{union:r})},(e,t,i)=>{var n=i(127),r=i(128).add,s=i(129),o=i(133),a=i(131);e.exports=function(e){var t=n(this),e=o(e).getIterator(),i=s(t);return a(e,function(e){r(i,e)}),i}},(e,t,i)=>{function n(){d(this,w);var e=p((t=arguments.length)<1?void 0:arguments[0]),t=p(t<2?void 0:arguments[1],"Error"),t=new y(e,t);return(e=b(e)).name=v,h(t,"stack",l(1,g(e.stack,1))),u(t,this,n),t}var r,s=i(3),o=i(4),a=i(24),l=i(11),h=i(45).f,c=i(39),d=i(150),u=i(75),p=i(76),m=i(151),g=i(82),f=i(6),i=i(36),v="DOMException",b=a("Error"),y=a(v),w=n.prototype=y.prototype,x="stack"in b(v),A="stack"in new y(1,2),f=y&&f&&Object.getOwnPropertyDescriptor(o,v),o=!(!f||f.writable&&f.configurable),f=x&&!o&&!A,S=(s({global:!0,constructor:!0,forced:i||f},{DOMException:f?n:y}),a(v)),x=S.prototype;if(x.constructor!==S)for(var k in i||h(x,"constructor",l(1,S)),m)!c(m,k)||c(S,r=(k=m[k]).s)||h(S,r,l(6,k.c))},(e,t,i)=>{var n=i(25),r=TypeError;e.exports=function(e,t){if(n(t,e))return e;throw r("Incorrect invocation")}},e=>{e.exports={IndexSizeError:{s:"INDEX_SIZE_ERR",c:1,m:1},DOMStringSizeError:{s:"DOMSTRING_SIZE_ERR",c:2,m:0},HierarchyRequestError:{s:"HIERARCHY_REQUEST_ERR",c:3,m:1},WrongDocumentError:{s:"WRONG_DOCUMENT_ERR",c:4,m:1},InvalidCharacterError:{s:"INVALID_CHARACTER_ERR",c:5,m:1},NoDataAllowedError:{s:"NO_DATA_ALLOWED_ERR",c:6,m:0},NoModificationAllowedError:{s:"NO_MODIFICATION_ALLOWED_ERR",c:7,m:1},NotFoundError:{s:"NOT_FOUND_ERR",c:8,m:1},NotSupportedError:{s:"NOT_SUPPORTED_ERR",c:9,m:1},InUseAttributeError:{s:"INUSE_ATTRIBUTE_ERR",c:10,m:1},InvalidStateError:{s:"INVALID_STATE_ERR",c:11,m:1},SyntaxError:{s:"SYNTAX_ERR",c:12,m:1},InvalidModificationError:{s:"INVALID_MODIFICATION_ERR",c:13,m:1},NamespaceError:{s:"NAMESPACE_ERR",c:14,m:1},InvalidAccessError:{s:"INVALID_ACCESS_ERR",c:15,m:1},ValidationError:{s:"VALIDATION_ERR",c:16,m:0},TypeMismatchError:{s:"TYPE_MISMATCH_ERR",c:17,m:1},SecurityError:{s:"SECURITY_ERR",c:18,m:1},NetworkError:{s:"NETWORK_ERR",c:19,m:1},AbortError:{s:"ABORT_ERR",c:20,m:1},URLMismatchError:{s:"URL_MISMATCH_ERR",c:21,m:1},QuotaExceededError:{s:"QUOTA_EXCEEDED_ERR",c:22,m:1},TimeoutError:{s:"TIMEOUT_ERR",c:23,m:1},InvalidNodeTypeError:{s:"INVALID_NODE_TYPE_ERR",c:24,m:1},DataCloneError:{s:"DATA_CLONE_ERR",c:25,m:1}}},(l,h,e)=>{function t(n){return!s(function(){var e=new v.Set([7]),t=n(e),i=n(C(7));return t===e||!t.has(7)||"object"!=typeof i||7!=+i})&&n}function i(i,n){return!s(function(){var e=new n,t=i({a:e,b:e});return!(t&&t.a===t.b&&t.a instanceof n&&t.a.stack===e.stack)})}function u(e){throw new T("Uncloneable type: "+e,F)}function p(e,t){return O||D(t),O(e)}function m(e,t,i,n,r){var s=v[t];return w(s)||D(t),new s(N(e.buffer,r),i,n)}function g(e,t,i){this.object=e,this.type=t,this.metadata=i}function f(e,i,n){if(U(e)&&u("Symbol"),!w(e))return e;if(i){if(R(i,e))return L(i,e)}else i=new M;var t,r,s,o,a,l,h,c,d=A(e);switch(d){case"Array":s=Q(k(e));break;case"Object":s={};break;case"Map":s=new M;break;case"Set":s=new he;break;case"RegExp":s=new RegExp(e.source,K(e));break;case"Error":switch(r=e.name){case"AggregateError":s=b("AggregateError")([]);break;case"EvalError":s=Z();break;case"RangeError":s=ee();break;case"ReferenceError":s=te();break;case"SyntaxError":s=ie();break;case"TypeError":s=ne();break;case"URIError":s=re();break;case"CompileError":s=oe();break;case"LinkError":s=ae();break;case"RuntimeError":s=le();break;default:s=E()}break;case"DOMException":s=new T(e.message,e.name);break;case"ArrayBuffer":case"SharedArrayBuffer":s=n?new g(e,d):N(e,i,d);break;case"DataView":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float16Array":case"Float32Array":case"Float64Array":case"BigInt64Array":case"BigUint64Array":l="DataView"===d?e.byteLength:e.length,s=n?new g(e,d,{offset:e.byteOffset,length:l}):m(e,d,e.byteOffset,l,i);break;case"DOMQuad":try{s=new DOMQuad(f(e.p1,i,n),f(e.p2,i,n),f(e.p3,i,n),f(e.p4,i,n))}catch(i){s=p(e,d)}break;case"File":if(O)try{s=O(e),A(s)!==d&&(s=void 0)}catch(e){}if(!s)try{s=new File([e],e.name,e)}catch(e){}s||D(d);break;case"FileList":if(o=function(){var t;try{t=new v.DataTransfer}catch(e){try{t=new v.ClipboardEvent("").clipboardData}catch(t){}}return t&&t.items&&t.files?t:null}()){for(a=0,l=k(e);a{function n(){}function r(e){if(!l(e))return!1;try{return p(n,u,e),!0}catch(e){return!1}}function s(e){if(!l(e))return!1;switch(h(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return f||!!g(m,d(e))}catch(e){return!0}}var o=i(14),a=i(7),l=i(21),h=i(78),c=i(24),d=i(51),u=[],p=c("Reflect","construct"),m=/^\s*(?:class|function)\b/,g=o(m.exec),f=!m.exec(n);s.sham=!0,e.exports=!p||a(function(){var e;return r(r.call)||!r(Object)||!r(function(){e=!0})||e})?s:r},(e,t,i)=>{function v(e,t){this.stopped=e,this.result=t}var b=i(99),y=i(8),w=i(47),x=i(32),A=i(155),S=i(64),k=i(25),_=i(157),C=i(158),E=i(140),T=TypeError,M=v.prototype;e.exports=function(e,t,i){function n(e){return s&&E(s,"normal",e),new v(!0,e)}function r(e){return u?(w(e),g?f(e[0],e[1],n):f(e[0],e[1])):g?f(e,n):f(e)}var s,o,a,l,h,c,d=i&&i.that,u=!(!i||!i.AS_ENTRIES),p=!(!i||!i.IS_RECORD),m=!(!i||!i.IS_ITERATOR),g=!(!i||!i.INTERRUPTED),f=b(t,d);if(p)s=e.iterator;else if(m)s=e;else{if(!(i=C(e)))throw T(x(e)+" is not iterable");if(A(i)){for(o=0,a=S(e);o{var n=i(34),r=i(156),s=n("iterator"),o=Array.prototype;e.exports=function(e){return void 0!==e&&(r.Array===e||o[s]===e)}},e=>{e.exports={}},(e,t,i)=>{var n=i(8),r=i(31),s=i(47),o=i(32),a=i(158),l=TypeError;e.exports=function(e,t){t=arguments.length<2?a(e):t;if(r(t))return s(n(t,e));throw l(o(e)+" is not iterable")}},(e,t,i)=>{var n=i(78),r=i(30),s=i(17),o=i(156),a=i(34)("iterator");e.exports=function(e){if(!s(e))return r(e,a)||r(e,"@@iterator")||o[n(e)]}},(e,t,i)=>{var n=i(18),r=i(45),s=i(11);e.exports=function(e,t,i){t=n(t);t in e?r.f(e,t,s(0,i)):e[t]=i}},(e,t,i)=>{var n=i(8),r=i(39),s=i(25),o=i(161),a=RegExp.prototype;e.exports=function(e){var t=e.flags;return void 0!==t||"flags"in a||r(e,"flags")||!s(a,e)?t:n(o,e)}},(e,t,i)=>{var n=i(47);e.exports=function(){var e=n(this),t="";return e.hasIndices&&(t+="d"),e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.dotAll&&(t+="s"),e.unicode&&(t+="u"),e.unicodeSets&&(t+="v"),e.sticky&&(t+="y"),t}},(e,t,i)=>{var i=i(14),n=Map.prototype;e.exports={Map:Map,set:i(n.set),get:i(n.get),has:i(n.has),remove:i(n.delete),proto:n}},(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SerializableEmpty=t.PrintAnnotationStorage=t.AnnotationStorage=void 0,i(89),i(149),i(152);var n=i(1),s=i(164),o=i(170);const a=Object.freeze({map:null,hash:"",transfers:void 0});t.SerializableEmpty=a;class r{#v=!1;#y=new Map;constructor(){this.onSetModified=null,this.onResetModified=null,this.onAnnotationEditor=null}getValue(e,t){e=this.#y.get(e);return void 0===e?t:Object.assign(t,e)}getRawValue(e){return this.#y.get(e)}remove(e){if(this.#y.delete(e),0===this.#y.size&&this.resetModified(),"function"==typeof this.onAnnotationEditor){for(const e of this.#y.values())if(e instanceof s.AnnotationEditor)return;this.onAnnotationEditor(null)}}setValue(e,t){var i=this.#y.get(e);let n=!1;if(void 0!==i)for(const[e,s]of Object.entries(t))i[e]!==s&&(n=!0,i[e]=s);else n=!0,this.#y.set(e,t);n&&this.#_(),t instanceof s.AnnotationEditor&&"function"==typeof this.onAnnotationEditor&&this.onAnnotationEditor(t.constructor._type)}has(e){return this.#y.has(e)}getAll(){return 0{Object.defineProperty(t,"__esModule",{value:!0}),t.AnnotationEditor=void 0,i(89),i(2);var n=i(165),f=i(1),r=i(168);class E{#S="";#E=!1;#x=null;#w=null;#C=null;#T=!1;#P=null;#k=this.focusin.bind(this);#M=this.focusout.bind(this);#F=!1;#R=!1;#D=!1;_initialOptions=Object.create(null);_uiManager=null;_focusEventsAllowed=!0;_l10nPromise=null;#I=!1;#O=E._zIndex++;static _borderLineWidth=-1;static _colorManager=new n.ColorManager;static _zIndex=1;static SMALL_EDITOR_SIZE=0;constructor(e){this.constructor===E&&(0,f.unreachable)("Cannot initialize AnnotationEditor."),this.parent=e.parent,this.id=e.id,this.width=this.height=null,this.pageIndex=e.parent.pageIndex,this.name=e.name,this.div=null,this._uiManager=e.uiManager,this.annotationElementId=null,this._willKeepAspectRatio=!1,this._initialOptions.isCentered=e.isCentered,this._structTreeParentId=null;var{rotation:t,rawDims:{pageWidth:i,pageHeight:n,pageX:r,pageY:s}}=this.parent.viewport,[t,i]=(this.rotation=t,this.pageRotation=(360+t-this._uiManager.viewParameters.rotation)%360,this.pageDimensions=[i,n],this.pageTranslation=[r,s],this.parentDimensions);this.x=e.x/t,this.y=e.y/i,this.isAttachedToDOM=!1,this.deleted=!1}get editorType(){return Object.getPrototypeOf(this).constructor._type}static get _defaultLineColor(){return(0,f.shadow)(this,"_defaultLineColor",this._colorManager.getHexCode("CanvasText"))}static deleteAnnotationElement(e){var t=new s({id:e.parent.getNextId(),parent:e.parent,uiManager:e._uiManager});t.annotationElementId=e.annotationElementId,t.deleted=!0,t._uiManager.addToAnnotationStorage(t)}static initialize(t){var e=1[e,t.get(e)])),e?.strings)for(const i of e.strings)E._l10nPromise.set(i,t.get(i));if(-1===E._borderLineWidth){const i=getComputedStyle(document.documentElement);E._borderLineWidth=parseFloat(i.getPropertyValue("--outline-width"))||0}}static updateDefaultParams(e,t){}static get defaultPropertiesToUpdate(){return[]}static isHandlingMimeForPasting(e){return!1}static paste(e,t){(0,f.unreachable)("Not implemented")}get propertiesToUpdate(){return[]}get _isDraggable(){return this.#I}set _isDraggable(e){this.#I=e,this.div?.classList.toggle("draggable",e)}center(){var[e,t]=this.pageDimensions;switch(this.parentRotation){case 90:this.x-=this.height*t/(2*e),this.y+=this.width*e/(2*t);break;case 180:this.x+=this.width/2,this.y+=this.height/2;break;case 270:this.x+=this.height*t/(2*e),this.y-=this.width*e/(2*t);break;default:this.x-=this.width/2,this.y-=this.height/2}this.fixAndSetPosition()}addCommands(e){this._uiManager.addCommands(e)}get currentLayer(){return this._uiManager.currentLayer}setInBackground(){this.div.style.zIndex=0}setInForeground(){this.div.style.zIndex=this.#O}setParent(e){null!==e&&(this.pageIndex=e.pageIndex,this.pageDimensions=e.pageDimensions),this.parent=e}focusin(e){this._focusEventsAllowed&&(this.#F?this.#F=!1:this.parent.setSelected(this))}focusout(e){this._focusEventsAllowed&&this.isAttachedToDOM&&!e.relatedTarget?.closest("#"+this.id)&&(e.preventDefault(),!this.parent?.isMultipleSelection)&&this.commitOrRemove()}commitOrRemove(){this.isEmpty()?this.remove():this.commit()}commit(){this.addToAnnotationStorage()}addToAnnotationStorage(){this._uiManager.addToAnnotationStorage(this)}setAt(e,t,i,n){var[r,s]=this.parentDimensions;[i,n]=this.screenToPageTranslation(i,n),this.x=(e+i)/r,this.y=(t+n)/s,this.fixAndSetPosition()}#L(e,t,i){var[e,n]=e;[t,i]=this.screenToPageTranslation(t,i),this.x+=t/e,this.y+=i/n,this.fixAndSetPosition()}translate(e,t){this.#L(this.parentDimensions,e,t)}translateInPage(e,t){this.#L(this.pageDimensions,e,t),this.div.scrollIntoView({block:"nearest"})}drag(e,t){var[i,n]=this.parentDimensions;if(this.x+=e/i,this.y+=t/n,this.parent&&(this.x<0||1{this._isDraggable=a,window.removeEventListener("pointerup",g),window.removeEventListener("blur",g),window.removeEventListener("pointermove",o,l),this.parent.div.style.cursor=p,this.div.style.cursor=m;const i=this.x,n=this.y,r=this.width,s=this.height;i===h&&n===c&&r===d&&s===u||this.addCommands({cmd:()=>{this.width=r,this.height=s,this.x=i,this.y=n;var[e,t]=this.parentDimensions;this.setDims(e*r,t*s),this.fixAndSetPosition()},undo:()=>{this.width=d,this.height=u,this.x=h,this.y=c;var[e,t]=this.parentDimensions;this.setDims(e*d,t*u),this.fixAndSetPosition()},mustExec:!0})});window.addEventListener("pointerup",g),window.addEventListener("blur",g)}}#W(e,t){const[i,n]=this.parentDimensions,r=this.x,s=this.y,o=this.width,a=this.height,l=E.MIN_SIZE/i,h=E.MIN_SIZE/n,c=e=>Math.round(1e4*e)/1e4,d=this.#j(this.rotation),u=(e,t)=>[d[0]*e+d[2]*t,d[1]*e+d[3]*t],p=this.#j(360-this.rotation);let m,g,f=!1,v=!1;switch(e){case"topLeft":f=!0,m=(e,t)=>[0,0],g=(e,t)=>[e,t];break;case"topMiddle":m=(e,t)=>[e/2,0],g=(e,t)=>[e/2,t];break;case"topRight":f=!0,m=(e,t)=>[e,0],g=(e,t)=>[0,t];break;case"middleRight":v=!0,m=(e,t)=>[e,t/2],g=(e,t)=>[0,t/2];break;case"bottomRight":f=!0,m=(e,t)=>[e,t],g=(e,t)=>[0,0];break;case"bottomMiddle":m=(e,t)=>[e/2,t],g=(e,t)=>[e/2,0];break;case"bottomLeft":f=!0,m=(e,t)=>[0,t],g=(e,t)=>[e,0];break;case"middleLeft":v=!0,m=(e,t)=>[0,t/2],g=(e,t)=>[e,t/2]}var b=m(o,a),y=g(o,a),e=u(...y),w=c(r+e[0]),x=c(s+e[1]);let A=1,S=1,[k,_]=this.screenToPageTranslation(t.movementX,t.movementY);if([k,_]=[p[0]*(t=k/i)+p[2]*(C=_/n),p[1]*t+p[3]*C],f){const e=Math.hypot(o,a);A=S=Math.max(Math.min(Math.hypot(y[0]-b[0]-k,y[1]-b[1]-_)/e,1/o,1/a),l/o,h/a)}else v?A=Math.max(l,Math.min(1,Math.abs(y[0]-b[0]-k)))/o:S=Math.max(h,Math.min(1,Math.abs(y[1]-b[1]-_)))/a;var t=c(o*A),C=c(a*S),y=w-(e=u(...g(t,C)))[0],b=x-e[1];this.width=t,this.height=C,this.x=y,this.y=b,this.setDims(i*t,n*C),this.fixAndSetPosition()}async addAltTextButton(){if(!this.#x){const t=this.#x=document.createElement("button"),e=(t.className="altText",await E._l10nPromise.get("editor_alt_text_button_label"));if(t.textContent=e,t.setAttribute("aria-label",e),t.tabIndex="0",t.addEventListener("contextmenu",r.noContextMenu),t.addEventListener("pointerdown",e=>e.stopPropagation()),t.addEventListener("click",e=>{e.preventDefault(),this._uiManager.editAltText(this)},{capture:!0}),t.addEventListener("keydown",e=>{e.target===t&&"Enter"===e.key&&(e.preventDefault(),this._uiManager.editAltText(this))}),this.#H(),this.div.append(t),!E.SMALL_EDITOR_SIZE){const e=40;E.SMALL_EDITOR_SIZE=Math.min(128,Math.round(1.4*t.getBoundingClientRect().width))}}}async#H(){const t=this.#x;if(t)if(this.#S||this.#E){E._l10nPromise.get("editor_alt_text_edit_button_label").then(e=>{t.setAttribute("aria-label",e)});let e=this.#w;if(!e){this.#w=e=document.createElement("span"),e.className="tooltip",e.setAttribute("role","tooltip");var i=e.id="alt-text-tooltip-"+this.id;t.setAttribute("aria-describedby",i);t.addEventListener("mouseenter",()=>{this.#C=setTimeout(()=>{this.#C=null,this.#w.classList.add("show"),this._uiManager._eventBus.dispatch("reporttelemetry",{source:this,details:{type:"editing",subtype:this.editorType,data:{action:"alt_text_tooltip"}}})},100)}),t.addEventListener("mouseleave",()=>{clearTimeout(this.#C),this.#C=null,this.#w?.classList.remove("show")})}t.classList.add("done"),e.innerText=this.#E?await E._l10nPromise.get("editor_alt_text_decorative_tooltip"):this.#S,e.parentNode||t.append(e)}else t.classList.remove("done"),this.#w?.remove()}getClientDimensions(){return this.div.getBoundingClientRect()}get altTextData(){return{altText:this.#S,decorative:this.#E}}set altTextData(e){var{altText:e,decorative:t}=e;this.#S===e&&this.#E===t||(this.#S=e,this.#E=t,this.#H())}render(){this.div=document.createElement("div"),this.div.setAttribute("data-editor-rotation",(360-this.rotation)%360),this.div.className=this.name,this.div.setAttribute("id",this.id),this.div.setAttribute("tabIndex",0),this.setInForeground(),this.div.addEventListener("focusin",this.#k),this.div.addEventListener("focusout",this.#M);var[e,t]=this.parentDimensions,[e,t]=(this.parentRotation%180!=0&&(this.div.style.maxWidth=(100*t/e).toFixed(2)+"%",this.div.style.maxHeight=(100*e/t).toFixed(2)+"%"),this.getInitialTranslation());return this.translate(e,t),(0,n.bindEvents)(this,this.div,["pointerdown"]),this.div}pointerdown(e){var t=f.FeatureTest.platform["isMac"];0!==e.button||e.ctrlKey&&t?e.preventDefault():(this.#F=!0,this.#q(e))}#q(i){if(this._isDraggable){const n=this._uiManager.isSelected(this);this._uiManager.setUpDragSession();let e,t;n&&(e={passive:!0,capture:!0},t=e=>{var[e,t]=this.screenToPageTranslation(e.movementX,e.movementY);this._uiManager.dragSelectedEditors(e,t)},window.addEventListener("pointermove",t,e));const r=()=>{if(window.removeEventListener("pointerup",r),window.removeEventListener("blur",r),n&&window.removeEventListener("pointermove",t,e),this.#F=!1,!this._uiManager.endDragSession()){const n=f.FeatureTest.platform["isMac"];i.ctrlKey&&!n||i.shiftKey||i.metaKey&&n?this.parent.toggleSelected(this):this.parent.setSelected(this)}};window.addEventListener("pointerup",r),window.addEventListener("blur",r)}}moveInDOM(){this.parent?.moveEditorInDOM(this)}_setParentAndPosition(e,t,i){e.changeParent(this),this.x=t,this.y=i,this.fixAndSetPosition()}getRect(e,t){var i=this.parentScale,[n,r]=this.pageDimensions,[s,o]=this.pageTranslation,a=e/i,l=t/i,h=this.x*n,c=this.y*r,d=this.width*n,u=this.height*r;switch(this.rotation){case 0:return[h+a+s,r-c-l-u+o,h+a+d+s,r-c-l+o];case 90:return[h+l+s,r-c+a+o,h+l+u+s,r-c+a+d+o];case 180:return[h-a-d+s,r-c+l+o,h-a+s,r-c+l+u+o];case 270:return[h-l-u+s,r-c-a-d+o,h-l+s,r-c-a+o];default:throw new Error("Invalid rotation")}}getRectInCurrentCoords(e,t){var[i,n,r,s]=e,o=r-i,a=s-n;switch(this.rotation){case 0:return[i,t-s,o,a];case 90:return[i,t-n,a,o];case 180:return[r,t-n,o,a];case 270:return[r,t-s,a,o];default:throw new Error("Invalid rotation")}}onceAdded(){}isEmpty(){return!1}enableEditMode(){this.#D=!0}disableEditMode(){this.#D=!1}isInEditMode(){return this.#D}shouldGetKeyboardEvents(){return!1}needsToBeRebuilt(){return this.div&&!this.isAttachedToDOM}rebuild(){this.div?.addEventListener("focusin",this.#k),this.div?.addEventListener("focusout",this.#M)}serialize(){(0,f.unreachable)("An editor must be serializable")}static deserialize(e,t,i){var t=new this.prototype.constructor({parent:t,id:t.getNextId(),uiManager:i}),[i,n]=(t.rotation=e.rotation,t.pageDimensions),[e,r,s,o]=t.getRectInCurrentCoords(e.rect,n);return t.x=e/i,t.y=r/n,t.width=s/i,t.height=o/n,t}remove(){this.div.removeEventListener("focusin",this.#k),this.div.removeEventListener("focusout",this.#M),this.isEmpty()||this.commit(),this.parent?this.parent.remove(this):this._uiManager.removeEditor(this),this.#x?.remove(),this.#x=null,this.#w=null}get isResizable(){return!1}makeResizable(){this.isResizable&&(this.#U(),this.#P.classList.remove("hidden"))}select(){this.makeResizable(),this.div?.classList.add("selectedEditor")}unselect(){this.#P?.classList.add("hidden"),this.div?.classList.remove("selectedEditor"),this.div?.contains(document.activeElement)&&this._uiManager.currentLayer.div.focus()}updateParams(e,t){}disableEditing(){this.#x&&(this.#x.hidden=!0)}enableEditing(){this.#x&&(this.#x.hidden=!1)}enterInEditMode(){}get contentDiv(){return this.div}get isEditing(){return this.#R}set isEditing(e){this.#R=e,this.parent&&(e?(this.parent.setSelected(this),this.parent.setActiveEditor(this)):this.parent.setActiveEditor(null))}setAspectRatio(e,t){this.#T=!0;var i=this.div["style"];i.aspectRatio=e/t,i.height="auto"}static get MIN_SIZE(){return 16}}class s extends(t.AnnotationEditor=E){constructor(e){super(e),this.annotationElementId=e.annotationElementId,this.deleted=!0}serialize(){return{id:this.annotationElementId,deleted:!0,pageIndex:this.pageIndex}}}},(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.KeyboardManager=t.CommandManager=t.ColorManager=t.AnnotationEditorUIManager=void 0,t.bindEvents=function(e,t,i){for(const n of i)t.addEventListener(n,e[n].bind(e))},t.opacityToHex=function(e){return Math.round(Math.min(255,Math.max(1,255*e))).toString(16).padStart(2,"0")},i(93),i(101),i(102),i(105),i(107),i(109),i(113),i(116),i(123),i(2),i(89),i(125),i(136),i(138),i(141),i(143),i(145),i(147),i(166);var s=i(1),o=i(168);class n{#G=0;getId(){return""+s.AnnotationEditorPrefix+this.#G++}}class a{#V=(0,s.getUuid)();#G=0;#$=null;static get _isSVGFittingCanvas(){const e=new OffscreenCanvas(1,3).getContext("2d"),t=new Image;t.src='data:image/svg+xml;charset=UTF-8,';var i=t.decode().then(()=>(e.drawImage(t,0,0,1,1,0,0,1,3),0===new Uint32Array(e.getImageData(0,0,1,1).data.buffer)[0]));return(0,s.shadow)(this,"_isSVGFittingCanvas",i)}async#X(e,i){this.#$||=new Map;let n=this.#$.get(e);if(null===n)return null;if(n?.bitmap)n.refCounter+=1;else{try{n||={bitmap:null,id:`image_${this.#V}_`+this.#G++,refCounter:0,isSvg:!1};let e;if("string"==typeof i){n.url=i;var t=await fetch(i);if(!t.ok)throw new Error(t.statusText);e=await t.blob()}else e=n.file=i;if("image/svg+xml"===e.type){const i=a._isSVGFittingCanvas,r=new FileReader,s=new Image,o=new Promise((e,t)=>{s.onload=()=>{n.bitmap=s,n.isSvg=!0,e()},r.onload=async()=>{var e=n.svgUrl=r.result;s.src=await i?e+"#svgView(preserveAspectRatio(none))":e},s.onerror=r.onerror=t});r.readAsDataURL(e),await o}else n.bitmap=await createImageBitmap(e);n.refCounter=1}catch(e){console.error(e),n=null}this.#$.set(e,n),n&&this.#$.set(n.id,n)}return n}async getFromFile(e){var{lastModified:t,name:i,size:n,type:r}=e;return this.#X(t+`_${i}_${n}_`+r,e)}async getFromUrl(e){return this.#X(e,e)}async getFromId(e){this.#$||=new Map;e=this.#$.get(e);return e?e.bitmap?(e.refCounter+=1,e):e.file?this.getFromFile(e.file):this.getFromUrl(e.url):null}getSvgUrl(e){e=this.#$.get(e);return e?.isSvg?e.svgUrl:null}deleteId(e){this.#$||=new Map;e=this.#$.get(e);e&&(--e.refCounter,0===e.refCounter)&&(e.bitmap=null)}isValidId(e){return e.startsWith(`image_${this.#V}_`)}}class r{#K=[];#Y=!1;#J;#Q=-1;constructor(){this.#J=0e===i[t]))return h._colorsMapping.get(e);return i}getHexCode(e){var t=this._colors.get(e);return t?s.Util.makeHexColor(...t):e}}t.ColorManager=h;class c{#tt=null;#et=new Map;#nt=new Map;#it=null;#rt=null;#st=new r;#at=0;#ot=new Set;#lt=null;#ct=null;#ht=new Set;#dt=null;#ut=new n;#pt=!1;#ft=!1;#gt=null;#mt=s.AnnotationEditorType.NONE;#bt=new Set;#vt=null;#yt=this.blur.bind(this);#_t=this.focus.bind(this);#At=this.copy.bind(this);#St=this.cut.bind(this);#Et=this.paste.bind(this);#xt=this.keydown.bind(this);#wt=this.onEditingAction.bind(this);#Ct=this.onPageChanging.bind(this);#Tt=this.onScaleChanging.bind(this);#Pt=this.onRotationChanging.bind(this);#kt={isEditing:!1,isEmpty:!0,hasSomethingToUndo:!1,hasSomethingToRedo:!1,hasSelectedEditor:!1};#Mt=[0,0];#Ft=null;#Rt=null;#Dt=null;static TRANSLATE_SMALL=1;static TRANSLATE_BIG=10;static get _keyboardManager(){var e=c.prototype,t=e=>{var t=document["activeElement"];return t&&e.#Rt.contains(t)&&e.hasSomethingToControl()},i=this.TRANSLATE_SMALL,n=this.TRANSLATE_BIG;return(0,s.shadow)(this,"_keyboardManager",new l([[["ctrl+a","mac+meta+a"],e.selectAll],[["ctrl+z","mac+meta+z"],e.undo],[["ctrl+y","ctrl+shift+z","mac+meta+shift+z","ctrl+shift+Z","mac+meta+shift+Z"],e.redo],[["Backspace","alt+Backspace","ctrl+Backspace","shift+Backspace","mac+Backspace","mac+alt+Backspace","mac+ctrl+Backspace","Delete","ctrl+Delete","shift+Delete","mac+Delete"],e.delete],[["Escape","mac+Escape"],e.unselectAll],[["ArrowLeft","mac+ArrowLeft"],e.translateSelectedEditors,{args:[-i,0],checker:t}],[["ctrl+ArrowLeft","mac+shift+ArrowLeft"],e.translateSelectedEditors,{args:[-n,0],checker:t}],[["ArrowRight","mac+ArrowRight"],e.translateSelectedEditors,{args:[i,0],checker:t}],[["ctrl+ArrowRight","mac+shift+ArrowRight"],e.translateSelectedEditors,{args:[n,0],checker:t}],[["ArrowUp","mac+ArrowUp"],e.translateSelectedEditors,{args:[0,-i],checker:t}],[["ctrl+ArrowUp","mac+shift+ArrowUp"],e.translateSelectedEditors,{args:[0,-n],checker:t}],[["ArrowDown","mac+ArrowDown"],e.translateSelectedEditors,{args:[0,i],checker:t}],[["ctrl+ArrowDown","mac+shift+ArrowDown"],e.translateSelectedEditors,{args:[0,n],checker:t}]]))}constructor(e,t,i,n,r,s){this.#Rt=e,this.#Dt=t,this.#it=i,this._eventBus=n,this._eventBus._on("editingaction",this.#wt),this._eventBus._on("pagechanging",this.#Ct),this._eventBus._on("scalechanging",this.#Tt),this._eventBus._on("rotationchanging",this.#Pt),this.#rt=r.annotationStorage,this.#dt=r.filterFactory,this.#vt=s,this.viewParameters={realScale:o.PixelsPerInch.PDF_TO_CSS_UNITS,rotation:0}}destroy(){this.#It(),this.#Ot(),this._eventBus._off("editingaction",this.#wt),this._eventBus._off("pagechanging",this.#Ct),this._eventBus._off("scalechanging",this.#Tt),this._eventBus._off("rotationchanging",this.#Pt);for(const e of this.#nt.values())e.destroy();this.#nt.clear(),this.#et.clear(),this.#ht.clear(),this.#tt=null,this.#bt.clear(),this.#st.destroy(),this.#it.destroy()}get hcmFilter(){return(0,s.shadow)(this,"hcmFilter",this.#vt?this.#dt.addHCMFilter(this.#vt.foreground,this.#vt.background):"none")}get direction(){return(0,s.shadow)(this,"direction",getComputedStyle(this.#Rt).direction)}editAltText(e){this.#it?.editAltText(this,e)}onPageChanging(e){e=e.pageNumber;this.#at=e-1}focusMainContainer(){this.#Rt.focus()}findParent(e,t){for(const o of this.#nt.values()){var{x:i,y:n,width:r,height:s}=o.div.getBoundingClientRect();if(i<=e&&e<=i+r&&n<=t&&t<=n+s)return o}return null}disableUserSelect(){this.#Dt.classList.toggle("noUserSelect",0{e._focusEventsAllowed=!0},{once:!0}),t.focus()}}#Nt(){window.addEventListener("keydown",this.#xt,{capture:!0})}#It(){window.removeEventListener("keydown",this.#xt,{capture:!0})}#Bt(){document.addEventListener("copy",this.#At),document.addEventListener("cut",this.#St),document.addEventListener("paste",this.#Et)}#jt(){document.removeEventListener("copy",this.#At),document.removeEventListener("cut",this.#St),document.removeEventListener("paste",this.#Et)}addEditListeners(){this.#Nt(),this.#Bt()}removeEditListeners(){this.#It(),this.#jt()}copy(e){if(e.preventDefault(),this.#tt?.commitOrRemove(),this.hasSelection){var t=[];for(const e of this.#bt){var i=e.serialize(!0);i&&t.push(i)}0!==t.length&&e.clipboardData.setData("application/pdfjs",JSON.stringify(t))}}cut(e){this.copy(e),this.delete()}paste(t){t.preventDefault();const e=t["clipboardData"];for(const t of e.items)for(const e of this.#ct)if(e.isHandlingMimeForPasting(t.type))return void e.paste(t,this.currentLayer);let i=e.getData("application/pdfjs");if(i){try{i=JSON.parse(i)}catch(t){return void(0,s.warn)(`paste: "${t.message}".`)}if(Array.isArray(i)){this.unselectAll();var n=this.currentLayer;try{const t=[];for(const e of i){const i=n.deserialize(e);if(!i)return;t.push(i)}this.addCommands({cmd:()=>{for(const e of t)this.#Ut(e);this.#zt(t)},undo:()=>{for(const e of t)e.remove()},mustExec:!0})}catch(t){(0,s.warn)(`paste: "${t.message}".`)}}}}keydown(e){this.getActive()?.shouldGetKeyboardEvents()||c._keyboardManager.exec(this,e)}onEditingAction(e){["undo","redo","delete","selectAll"].includes(e.name)&&this[e.name]()}#Wt(e){Object.entries(e).some(e=>{var[e,t]=e;return this.#kt[e]!==t})&&this._eventBus.dispatch("annotationeditorstateschanged",{source:this,details:Object.assign(this.#kt,e)})}#Ht(e){this._eventBus.dispatch("annotationeditorparamschanged",{source:this,details:e})}setEditingState(e){e?(this.#Lt(),this.#Nt(),this.#Bt(),this.#Wt({isEditing:this.#mt!==s.AnnotationEditorType.NONE,isEmpty:this.#qt(),hasSomethingToUndo:this.#st.hasSomethingToUndo(),hasSomethingToRedo:this.#st.hasSomethingToRedo(),hasSelectedEditor:!1})):(this.#Ot(),this.#It(),this.#jt(),this.#Wt({isEditing:!1}),this.disableUserSelect(!1))}registerEditorTypes(e){if(!this.#ct){this.#ct=e;for(const e of this.#ct)this.#Ht(e.defaultPropertiesToUpdate)}}getId(){return this.#ut.getId()}get currentLayer(){return this.#nt.get(this.#at)}getLayer(e){return this.#nt.get(e)}get currentPageIndex(){return this.#at}addLayer(e){this.#nt.set(e.pageIndex,e),this.#pt?e.enable():e.disable()}removeLayer(e){this.#nt.delete(e.pageIndex)}updateMode(e){let t=1{for(const e of t)e.remove()},undo:()=>{for(const e of t)this.#Ut(e)},mustExec:!0})}}commitOrRemove(){this.#tt?.commitOrRemove()}hasSomethingToControl(){return this.#tt||this.hasSelection}#zt(e){this.#bt.clear();for(const t of e)t.isEmpty()||(this.#bt.add(t),t.select());this.#Wt({hasSelectedEditor:!0})}selectAll(){for(const e of this.#bt)e.commit();this.#zt(this.#et.values())}unselectAll(){if(this.#tt)this.#tt.commitOrRemove();else if(this.hasSelection){for(const e of this.#bt)e.unselect();this.#bt.clear(),this.#Wt({hasSelectedEditor:!1})}}translateSelectedEditors(e,t){if(2{this.#Ft=null,this.#Mt[0]=this.#Mt[1]=0,this.addCommands({cmd:()=>{for(const e of r)this.#et.has(e.id)&&e.translateInPage(i,n)},undo:()=>{for(const e of r)this.#et.has(e.id)&&e.translateInPage(-i,-n)},mustExec:!1})},1e3);for(const i of r)i.translateInPage(e,t)}}setUpDragSession(){if(this.hasSelection){this.disableUserSelect(!0),this.#lt=new Map;for(const e of this.#bt)this.#lt.set(e,{savedX:e.x,savedY:e.y,savedPageIndex:e.pageIndex,newX:0,newY:0,newPageIndex:-1})}}endDragSession(){if(!this.#lt)return!1;this.disableUserSelect(!1);const r=this.#lt;this.#lt=null;let e=!1;for(var[{x:t,y:i,pageIndex:n},s]of r)s.newX=t,s.newY=i,s.newPageIndex=n,e||=t!==s.savedX||i!==s.savedY||n!==s.savedPageIndex;if(!e)return!1;const o=(e,t,i,n)=>{var r;this.#et.has(e.id)&&((r=this.#nt.get(n))?e._setParentAndPosition(r,t,i):(e.pageIndex=n,e.x=t,e.y=i))};return this.addCommands({cmd:()=>{for(var[e,{newX:t,newY:i,newPageIndex:n}]of r)o(e,t,i,n)},undo:()=>{for(var[e,{savedX:t,savedY:i,savedPageIndex:n}]of r)o(e,t,i,n)},mustExec:!0}),!0}dragSelectedEditors(e,t){if(this.#lt)for(const i of this.#lt.keys())i.drag(e,t)}rebuild(e){var t;null===e.parent?(t=this.getLayer(e.pageIndex))?(t.changeParent(e),t.addOrRebuild(e)):(this.addEditor(e),this.addToAnnotationStorage(e),e.rebuild()):e.parent.addOrRebuild(e)}isActive(e){return this.#tt===e}getActive(){return this.#tt}getMode(){return this.#mt}get imageManager(){return(0,s.shadow)(this,"imageManager",new a)}}t.AnnotationEditorUIManager=c},(e,O,t)=>{function m(e,t,i,n){var r,s,o,a,l,h=e[t],c=n&&h===n.value,d=c&&"string"==typeof n.source?{source:n.source}:{};if(v(h)){var u=b(h),p=c?n.nodes:u?[]:{};if(u)for(r=p.length,o=w(h),a=0;a{var n=i(14),o=i(39),a=SyntaxError,l=parseInt,h=String.fromCharCode,c=n("".charAt),d=n("".slice),u=n(/./.exec),p={'\\"':'"',"\\\\":"\\","\\/":"/","\\b":"\b","\\f":"\f","\\n":"\n","\\r":"\r","\\t":"\t"},m=/^[\da-f]{4}$/i,g=/^[\u0000-\u001F]$/;e.exports=function(e,t){for(var i=!0,n="";t{Object.defineProperty(t,"__esModule",{value:!0}),t.StatTimer=t.RenderingCancelledException=t.PixelsPerInch=t.PageViewport=t.PDFDateString=t.DOMStandardFontDataFactory=t.DOMSVGFactory=t.DOMFilterFactory=t.DOMCanvasFactory=t.DOMCMapReaderFactory=void 0,t.deprecated=function(e){console.log("Deprecated API usage: "+e)},t.getColorValues=function(e){var t=document.createElement("span");t.style.visibility="hidden",document.body.append(t);for(const n of e.keys()){t.style.color=n;var i=window.getComputedStyle(t).color;e.set(n,b(i))}t.remove()},t.getCurrentTransform=function(e){var{a:e,b:t,c:i,d:n,e:r,f:s}=e.getTransform();return[e,t,i,n,r,s]},t.getCurrentTransformInverse=function(e){var{a:e,b:t,c:i,d:n,e:r,f:s}=e.getTransform().invertSelf();return[e,t,i,n,r,s]},t.getFilenameFromUrl=function(e){return 1{const i=document.createElement("script");i.src=n,i.onload=function(e){r&&i.remove(),t(e)},i.onerror=function(){e(new Error("Cannot load script at: "+i.src))},(document.head||document.documentElement).append(i)})},t.noContextMenu=function(e){e.preventDefault()},t.setLayerDimensions=function(e,t){let i=2{var i=s[e]/255,n=o[e]/255,r=new Array(t+1);for(let e=0;e<=t;e++)r[e]=i+e/t*(n-i);return r.join(",")});this.#re(i(0,5),i(1,5),i(2,5),t),this.#Qt=`url(#${e})`}}return this.#Qt}addHighlightHCMFilter(i,n,r,s){var o=i+`-${n}-${r}-`+s;if(this.#te!==o&&(this.#te=o,this.#ee="none",this.#Zt?.remove(),i)&&n){var[o,i]=[i,n].map(this.#se.bind(this));let l=Math.round(.2126*o[0]+.7152*o[1]+.0722*o[2]),h=Math.round(.2126*i[0]+.7152*i[1]+.0722*i[2]),[e,t]=[r,s].map(this.#se.bind(this));h{var n=new Array(256),r=(h-l)/i,s=e/255,o=(t-e)/(255*i);let a=0;for(let e=0;e<=i;e++){const t=Math.round(l+e*r),i=s+e*o;for(let e=a;e<=t;e++)n[e]=i;a=t+1}for(let e=a;e<256;e++)n[e]=n[a-1];return n.join(",")},o=`g_${this.#e}_hcm_highlight_filter`,i=this.#Zt=this.#ie(o);this.#ae(i),this.#re(n(e[0],t[0],5),n(e[1],t[1],5),n(e[2],t[2],5),i),this.#ee=`url(#${o})`}return this.#ee}destroy(){0{const i=new XMLHttpRequest;i.open("GET",n,!0),r&&(i.responseType="arraybuffer"),i.onreadystatechange=()=>{if(i.readyState===XMLHttpRequest.DONE){if(200===i.status||0===i.status){let e;if(r&&i.response?e=new Uint8Array(i.response):!r&&i.responseText&&(e=(0,d.stringToBytes)(i.responseText)),e)return void t(e)}e(new Error(i.statusText))}},i.send(null)})}t.DOMCanvasFactory=a;class h extends n.BaseCMapReaderFactory{_fetchData(e,t){return l(e,this.isCompressed).then(e=>({cMapData:e,compressionType:t}))}}t.DOMCMapReaderFactory=h;class c extends n.BaseStandardFontDataFactory{_fetchData(e){return l(e,!0)}}t.DOMStandardFontDataFactory=c;class u extends n.BaseSVGFactory{_createSVG(e){return document.createElementNS(s,e)}}t.DOMSVGFactory=u;class p{constructor(e){let{viewBox:t,scale:i,rotation:n,offsetX:r=0,offsetY:s=0,dontFlip:o=!1}=e;this.viewBox=t,this.scale=i,this.rotation=n,this.offsetX=r,this.offsetY=s;var e=(t[2]+t[0])/2,a=(t[3]+t[1])/2;let l,h,c,d,u,p,m,g;switch((n%=360)<0&&(n+=360),n){case 180:l=-1,h=0,c=0,d=1;break;case 90:l=0,h=1,c=1,d=0;break;case 270:l=0,h=-1,c=-1,d=0;break;case 0:l=1,h=0,c=0,d=-1;break;default:throw new Error("PageViewport: Invalid rotation, must be a multiple of 90 degrees.")}o&&(c=-c,d=-d),g=0===l?(u=Math.abs(a-t[1])*i+r,p=Math.abs(e-t[0])*i+s,m=(t[3]-t[1])*i,(t[2]-t[0])*i):(u=Math.abs(e-t[0])*i+r,p=Math.abs(a-t[1])*i+s,m=(t[2]-t[0])*i,(t[3]-t[1])*i),this.transform=[l*i,h*i,c*i,d*i,u-l*i*e-c*i*a,p-h*i*e-d*i*a],this.width=m,this.height=g}get rawDims(){var e=this["viewBox"];return(0,d.shadow)(this,"rawDims",{pageWidth:e[2]-e[0],pageHeight:e[3]-e[1],pageX:e[0],pageY:e[1]})}clone(){var{scale:e=this.scale,rotation:t=this.rotation,offsetX:i=this.offsetX,offsetY:n=this.offsetY,dontFlip:r=!1}=0>16,(65280&t)>>8,255&t]:e.startsWith("rgb(")?e.slice(4,-1).split(",").map(e=>parseInt(e)):e.startsWith("rgba(")?e.slice(5,-1).split(",").map(e=>parseInt(e)).slice(0,3):((0,d.warn)(`Not a valid color format: "${e}"`),[0,0,0])}t.PDFDateString=class{static toDateObject(e){if(!e||"string"!=typeof e)return null;e=(v||=new RegExp("^D:(\\d{4})(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?(\\d{2})?([Z|+|-])?(\\d{2})?'?(\\d{2})?'?")).exec(e);if(!e)return null;var t=parseInt(e[1],10),i=1<=(i=parseInt(e[2],10))&&i<=12?i-1:0,n=1<=(n=parseInt(e[3],10))&&n<=31?n:1;let r=parseInt(e[4],10),s=(r=0<=r&&r<=23?r:0,parseInt(e[5],10));s=0<=s&&s<=59?s:0;var o=0<=(o=parseInt(e[6],10))&&o<=59?o:0,a=e[7]||"Z",l=0<=(l=parseInt(e[8],10))&&l<=23?l:0,e=0<=(e=parseInt(e[9],10)||0)&&e<=59?e:0;return"-"===a?(r+=l,s+=e):"+"===a&&(r-=l,s-=e),new Date(Date.UTC(t,i,n,r,s,o))}}},(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BaseStandardFontDataFactory=t.BaseSVGFactory=t.BaseFilterFactory=t.BaseCanvasFactory=t.BaseCMapReaderFactory=void 0,i(2);var n=i(1);t.BaseFilterFactory=class r{constructor(){this.constructor===r&&(0,n.unreachable)("Cannot initialize BaseFilterFactory.")}addFilter(e){return"none"}addHCMFilter(e,t){return"none"}addHighlightHCMFilter(e,t,i,n){return"none"}destroy(){}};t.BaseCanvasFactory=class s{constructor(){this.constructor===s&&(0,n.unreachable)("Cannot initialize BaseCanvasFactory.")}create(e,t){if(e<=0||t<=0)throw new Error("Invalid canvas size");return{canvas:e=this._createCanvas(e,t),context:e.getContext("2d")}}reset(e,t,i){if(!e.canvas)throw new Error("Canvas is not specified");if(t<=0||i<=0)throw new Error("Invalid canvas size");e.canvas.width=t,e.canvas.height=i}destroy(e){if(!e.canvas)throw new Error("Canvas is not specified");e.canvas.width=0,e.canvas.height=0,e.canvas=null,e.context=null}_createCanvas(e,t){(0,n.unreachable)("Abstract method `_createCanvas` called.")}};t.BaseCMapReaderFactory=class o{constructor(e){var{baseUrl:e=null,isCompressed:t=!0}=e;this.constructor===o&&(0,n.unreachable)("Cannot initialize BaseCMapReaderFactory."),this.baseUrl=e,this.isCompressed=t}async fetch(e){if(e=e.name,!this.baseUrl)throw new Error('The CMap "baseUrl" parameter must be specified, ensure that the "cMapUrl" and "cMapPacked" API parameters are provided.');if(!e)throw new Error("CMap name must be specified.");const t=this.baseUrl+e+(this.isCompressed?".bcmap":""),i=this.isCompressed?n.CMapCompressionType.BINARY:n.CMapCompressionType.NONE;return this._fetchData(t,i).catch(e=>{throw new Error(`Unable to load ${this.isCompressed?"binary ":""}CMap at: `+t)})}_fetchData(e,t){(0,n.unreachable)("Abstract method `_fetchData` called.")}};t.BaseStandardFontDataFactory=class a{constructor(e){var{baseUrl:e=null}=e;this.constructor===a&&(0,n.unreachable)("Cannot initialize BaseStandardFontDataFactory."),this.baseUrl=e}async fetch(e){if(e=e.filename,!this.baseUrl)throw new Error('The standard font "baseUrl" parameter must be specified, ensure that the "standardFontDataUrl" API parameter is provided.');if(!e)throw new Error("Font filename must be specified.");const t=""+this.baseUrl+e;return this._fetchData(t).catch(e=>{throw new Error("Unable to load font data at: "+t)})}_fetchData(e){(0,n.unreachable)("Abstract method `_fetchData` called.")}};t.BaseSVGFactory=class l{constructor(){this.constructor===l&&(0,n.unreachable)("Cannot initialize BaseSVGFactory.")}create(e,t){var i=2{Object.defineProperty(t,"__esModule",{value:!0}),t.MurmurHash3_64=void 0,i(93),i(101),i(102),i(105),i(107),i(109),i(113),i(116),i(123),i(2);var u=i(1);const n=3285377520,p=4294901760,m=65535;t.MurmurHash3_64=class{constructor(e){this.h1=e?4294967295&e:n,this.h2=e?4294967295&e:n}update(i){let n,r;if("string"==typeof i){n=new Uint8Array(2*i.length);for(let e=r=0,t=i.length;e>>8,n[r++]=255&s)}}else{if(!(0,u.isArrayBuffer)(i))throw new Error("Wrong data format in MurmurHash3_64_update. Input must be a string or array.");n=i.slice(),r=n.byteLength}const s=r>>2,e=r-4*s,t=new Uint32Array(n.buffer,0,s);let o=0,a,l=this.h1,h=this.h2;var c=3432918353,d=461845907;for(let e=0;e>>17)*d&p|13715*o&m,l=5*(l=(l^=o)<<13|l>>>19)+3864292196):(a=(a=(a=(a=t[e])*c&p|11601*a&m)<<15|a>>>17)*d&p|13715*a&m,h=5*(h=(h^=a)<<13|h>>>19)+3864292196);switch(o=0,e){case 3:o^=n[4*s+2]<<16;case 2:o^=n[4*s+1]<<8;case 1:o=(o=(o=(o^=n[4*s])*c&p|11601*o&m)<<15|o>>>17)*d&p|13715*o&m,1&s?l^=o:h^=o}this.h1=l,this.h2=h}hexdigest(){var e=this.h1,t=this.h2,e=3981806797*(e^=t>>>1)&p|36045*e&m;return e=444984403*(e^=(t=4283543511*t&p|(2950163797*(t<<16|e>>>16)&p)>>>16)>>>1)&p|60499*e&m,((e^=(t=3301882366*t&p|(3120437893*(t<<16|e>>>16)&p)>>>16)>>>1)>>>0).toString(16).padStart(8,"0")+(t>>>0).toString(16).padStart(8,"0")}}},(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.FontLoader=t.FontFaceObject=void 0,i(125),i(136),i(138),i(141),i(143),i(145),i(147),i(89),i(149);var p=i(1);t.FontLoader=class{#le=new Set;constructor(e){var{ownerDocument:e=globalThis.document}=e;this._document=e,this.nativeFontFaces=new Set,this.styleElement=null,this.loadingRequests=[],this.loadTestFontId=0}addNativeFontFace(e){this.nativeFontFaces.add(e),this._document.fonts.add(e)}removeNativeFontFace(e){this.nativeFontFaces.delete(e),this._document.fonts.delete(e)}insertRule(e){this.styleElement||(this.styleElement=this._document.createElement("style"),this._document.documentElement.getElementsByTagName("head")[0].append(this.styleElement));var t=this.styleElement.sheet;t.insertRule(e,t.cssRules.length)}clear(){for(const e of this.nativeFontFaces)this._document.fonts.delete(e);this.nativeFontFaces.clear(),this.#le.clear(),this.styleElement&&(this.styleElement.remove(),this.styleElement=null)}async loadSystemFont(e){if(e&&!this.#le.has(e.loadedName))if((0,p.assert)(!this.disableFontFace,"loadSystemFont shouldn't be called when `disableFontFace` is set."),this.isFontLoadingAPISupported){var{loadedName:t,src:i,style:n}=e,i=new FontFace(t,i,n);this.addNativeFontFace(i);try{await i.load(),this.#le.add(t)}catch{(0,p.warn)(`Cannot load system font: ${e.baseFontName}, installing it could help to improve PDF rendering.`),this.removeNativeFontFace(i)}}else(0,p.unreachable)("Not implemented: loadSystemFont without the Font Loading API.")}async bind(t){if(!(t.attached||t.missingFile&&!t.systemFontInfo))if(t.attached=!0,t.systemFontInfo)await this.loadSystemFont(t.systemFontInfo);else if(this.isFontLoadingAPISupported){const i=t.createNativeFontFace();if(i){this.addNativeFontFace(i);try{await i.loaded}catch(e){throw(0,p.warn)(`Failed to load font '${i.family}': '${e}'.`),t.disableFontFace=!0,e}}}else{const i=t.createFontFaceRule();i&&(this.insertRule(i),this.isSyncFontLoadingSupported||await new Promise(e=>{e=this._queueLoadingCallback(e);this._prepareFontLoadEvent(t,e)}))}}get isFontLoadingAPISupported(){var e=!!this._document?.fonts;return(0,p.shadow)(this,"isFontLoadingAPISupported",e)}get isSyncFontLoadingSupported(){let e=!1;return(p.isNodeJS||"undefined"!=typeof navigator&&/Mozilla\/5.0.*?rv:\d+.*? Gecko/.test(navigator.userAgent))&&(e=!0),(0,p.shadow)(this,"isSyncFontLoadingSupported",e)}_queueLoadingCallback(e){const t=this["loadingRequests"],i={done:!1,complete:function(){for((0,p.assert)(!i.done,"completeRequest() cannot be called twice."),i.done=!0;0{u.remove(),t.complete()})}},t.FontFaceObject=class{constructor(e,t){var{isEvalSupported:t=!0,disableFontFace:i=!1,ignoreErrors:n=!1,inspectFont:r=null}=t;this.compiledGlyphs=Object.create(null);for(const t in e)this[t]=e[t];this.isEvalSupported=!1!==t,this.disableFontFace=!0===i,this.ignoreErrors=!0===n,this._inspectFont=r}createNativeFontFace(){if(!this.data||this.disableFontFace)return null;let e;var t;return e=this.cssFontInfo?(t={weight:this.cssFontInfo.fontWeight},this.cssFontInfo.italicAngle&&(t.style=`oblique ${this.cssFontInfo.italicAngle}deg`),new FontFace(this.cssFontInfo.fontFamily,this.data,t)):new FontFace(this.loadedName,this.data,{}),this._inspectFont?.(this),e}createFontFaceRule(){if(!this.data||this.disableFontFace)return null;var t=(0,p.bytesToString)(this.data),t=`url(data:${this.mimetype};base64,${btoa(t)});`;let i;if(this.cssFontInfo){let e=`font-weight: ${this.cssFontInfo.fontWeight};`;this.cssFontInfo.italicAngle&&(e+=`font-style: oblique ${this.cssFontInfo.italicAngle}deg;`),i=`@font-face {font-family:"${this.cssFontInfo.fontFamily}";${e}src:${t}}`}else i=`@font-face {font-family:"${this.loadedName}";src:${t}}`;return this._inspectFont?.(this,t),i}getPathGenerator(e,t){if(void 0!==this.compiledGlyphs[t])return this.compiledGlyphs[t];let n;try{n=e.get(this.loadedName+"_path_"+t)}catch(e){if(this.ignoreErrors)return(0,p.warn)(`getPathGenerator - ignoring character: "${e}".`),this.compiledGlyphs[t]=function(e,t){};throw e}if(this.isEvalSupported&&p.FeatureTest.isEvalSupported){const e=[];for(const t of n){const n=void 0!==t.args?t.args.join(","):"";e.push("c.",t.cmd,"(",n,");\n")}return this.compiledGlyphs[t]=new Function("c","size",e.join(""))}return this.compiledGlyphs[t]=function(e,t){for(const i of n)"scale"===i.cmd&&(i.args=[t,-t]),e[i.cmd].apply(e,i.args)}}}},(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.NodeStandardFontDataFactory=t.NodeFilterFactory=t.NodeCanvasFactory=t.NodeCMapReaderFactory=void 0,i(2),i(93),i(101),i(102),i(105),i(107),i(109),i(113),i(116),i(123);var n=i(169),i=i(1);if(!globalThis.DOMMatrix&&i.isNodeJS)try{globalThis.DOMMatrix=require("canvas").DOMMatrix}catch(e){(0,i.warn)(`Cannot polyfill \`DOMMatrix\`, rendering may be broken: "${e}".`)}if(!globalThis.Path2D&&i.isNodeJS)try{var r=require("canvas")["CanvasRenderingContext2D"],s=require("path2d-polyfill")["polyfillPath2D"];globalThis.CanvasRenderingContext2D=r,s(globalThis)}catch(e){(0,i.warn)(`Cannot polyfill \`Path2D\`, rendering may be broken: "${e}".`)}function o(e){return new Promise((i,n)=>{require("fs").readFile(e,(e,t)=>{!e&&t?i(new Uint8Array(t)):n(new Error(e))})})}class a extends n.BaseFilterFactory{}t.NodeFilterFactory=a;class l extends n.BaseCanvasFactory{_createCanvas(e,t){return require("canvas").createCanvas(e,t)}}t.NodeCanvasFactory=l;class h extends n.BaseCMapReaderFactory{_fetchData(e,t){return o(e).then(e=>({cMapData:e,compressionType:t}))}}t.NodeCMapReaderFactory=h;class c extends n.BaseStandardFontDataFactory{_fetchData(e){return o(e)}}t.NodeStandardFontDataFactory=c},(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CanvasGraphics=void 0,i(2),i(93),i(101),i(102),i(105),i(107),i(109),i(113),i(116),i(123),i(89);var w=i(1),R=i(168),x=i(174),d=i(175);const u=4096;class h{constructor(e){this.canvasFactory=e,this.cache=Object.create(null)}getCanvas(e,t,i){let n;return void 0!==this.cache[e]?(n=this.cache[e],this.canvasFactory.reset(n,t,i)):(n=this.canvasFactory.create(t,i),this.cache[e]=n),n}delete(e){delete this.cache[e]}clear(){for(const t in this.cache){var e=this.cache[t];this.canvasFactory.destroy(e),delete this.cache[t]}}}function v(e,t,i,n,r,s,o,a,l,h){var[c,d,u,p,m,g]=(0,R.getCurrentTransform)(e);if(0===d&&0===u){const R=o*c+m,f=Math.round(R),v=a*p+g,b=Math.round(v),y=(o+l)*c+m,w=Math.abs(Math.round(y)-f)||1,x=(a+h)*p+g,A=Math.abs(Math.round(x)-b)||1;e.setTransform(Math.sign(c),0,0,Math.sign(p),f,b),e.drawImage(t,i,n,r,s,0,0,w,A),void e.setTransform(c,d,u,p,m,g)}else if(0===c&&0===p){const R=a*u+m,S=Math.round(R),k=o*d+g,_=Math.round(k),C=(a+h)*u+m,E=Math.abs(Math.round(C)-S)||1,T=(o+l)*d+g,M=Math.abs(Math.round(T)-_)||1;e.setTransform(0,Math.sign(d),Math.sign(u),0,S,_),e.drawImage(t,i,n,r,s,0,0,M,E),void e.setTransform(c,d,u,p,m,g)}else e.drawImage(t,i,n,r,s,o,a,l,h),Math.hypot(c,d),Math.hypot(u,p)}class p{constructor(e,t){this.alphaIsShape=!1,this.fontSize=0,this.fontSizeScale=1,this.textMatrix=w.IDENTITY_MATRIX,this.textMatrixScale=1,this.fontMatrix=w.FONT_IDENTITY_MATRIX,this.leading=0,this.x=0,this.y=0,this.lineX=0,this.lineY=0,this.charSpacing=0,this.wordSpacing=0,this.textHScale=1,this.textRenderingMode=w.TextRenderingMode.FILL,this.textRise=0,this.fillColor="#000000",this.strokeColor="#000000",this.patternFill=!1,this.fillAlpha=1,this.strokeAlpha=1,this.lineWidth=1,this.activeSMask=null,this.transferMaps="none",this.startNewPathAndClipBox([0,0,e,t])}clone(){var e=Object.create(this);return e.clipBox=this.clipBox.slice(),e}setCurrentPoint(e,t){this.x=e,this.y=t}updatePathMinMax(e,t,i){[t,i]=w.Util.applyTransform([t,i],e),this.minX=Math.min(this.minX,t),this.minY=Math.min(this.minY,i),this.maxX=Math.max(this.maxX,t),this.maxY=Math.max(this.maxY,i)}updateRectMinMax(e,t){var i=w.Util.applyTransform(t,e),t=w.Util.applyTransform(t.slice(2),e);this.minX=Math.min(this.minX,i[0],t[0]),this.minY=Math.min(this.minY,i[1],t[1]),this.maxX=Math.max(this.maxX,i[0],t[0]),this.maxY=Math.max(this.maxY,i[1],t[1])}updateScalingPathMinMax(e,t){w.Util.scaleMinMax(e,t),this.minX=Math.min(this.minX,t[0]),this.maxX=Math.max(this.maxX,t[1]),this.minY=Math.min(this.minY,t[2]),this.maxY=Math.max(this.maxY,t[3])}updateCurvePathMinMax(e,t,i,n,r,s,o,a,l,h){t=w.Util.bezierBoundingBox(t,i,n,r,s,o,a,l);h?(h[0]=Math.min(h[0],t[0],t[2]),h[1]=Math.max(h[1],t[0],t[2]),h[2]=Math.min(h[2],t[1],t[3]),h[3]=Math.max(h[3],t[1],t[3])):this.updateRectMinMax(e,t)}getPathBoundingBox(){let e=0>2),e=c.length,f=d+7>>3,v=4294967295,b=w.FeatureTest.isLittleEndian?4278190080:255;for(t=0;tf?d:8*o-7,p=-8&u;let t=0,i=0;for(;e>=1}for(;n=p&&(s=u,e=d*s),n=0,i=e;i--;)h[n++]=l[r++],h[n++]=l[r++],h[n++]=l[r++],h[n++]=255;o.putImageData(g,0,16*t)}}}}function b(i,e){if(e.bitmap)i.drawImage(e.bitmap,0,0);else{const s=e.height,o=e.width,a=s%16,l=(s-a)/16,h=0==a?l:1+l,c=i.createImageData(o,16);let t=0;var n=e.data,r=c.data;for(let e=0;e>8]>>8:i[e]*r>>16}}function y(e,t){var e=w.Util.singularValueDecompose2dScale(e),i=(e[0]=Math.fround(e[0]),e[1]=Math.fround(e[1]),Math.fround((globalThis.devicePixelRatio||1)*R.PixelsPerInch.PDF_TO_CSS_UNITS));return void 0!==t?t:e[0]<=i||e[1]<=i}const n=["butt","round","square"],r=["miter","round","bevel"],s={},a={};class l{constructor(e,t,i,n,r,s,o,a){var{optionalContentConfig:s,markedContentStack:l=null}=s;this.ctx=e,this.current=new p(this.ctx.canvas.width,this.ctx.canvas.height),this.stateStack=[],this.pendingClip=null,this.pendingEOFill=!1,this.res=null,this.xobjs=null,this.commonObjs=t,this.objs=i,this.canvasFactory=n,this.filterFactory=r,this.groupStack=[],this.processingType3=null,this.baseTransform=null,this.baseTransformStack=[],this.groupLevel=0,this.smaskStack=[],this.smaskCounter=0,this.tempSMask=null,this.suspendedCtx=null,this.contentVisible=!0,this.markedContentStack=l||[],this.optionalContentConfig=s,this.cachedCanvases=new h(this.canvasFactory),this.cachedPatterns=new Map,this.annotationCanvasMap=o,this.viewportScale=1,this.outputScaleX=1,this.outputScaleY=1,this.pageColors=a,this._cachedScaleForStroking=[-1,0],this._cachedGetSinglePixelWidth=null,this._cachedBitmapsMap=new Map}getObject(e){var t=1h)return i(),o;c=0}}}#ce(){for(;this.stateStack.length||this.inSMaskMode;)this.restore();this.ctx.restore(),this.transparentCanvas&&(this.ctx=this.compositeCtx,this.ctx.save(),this.ctx.setTransform(1,0,0,1,0,0),this.ctx.drawImage(this.transparentCanvas,0,0),this.ctx.restore(),this.transparentCanvas=null)}endDrawing(){this.#ce(),this.cachedCanvases.clear(),this.cachedPatterns.clear();for(const e of this._cachedBitmapsMap.values()){for(const t of e.values())"undefined"!=typeof HTMLCanvasElement&&t instanceof HTMLCanvasElement&&(t.width=t.height=0);e.clear()}this._cachedBitmapsMap.clear(),this.#he()}#he(){var e,t;this.pageColors&&"none"!==(e=this.filterFactory.addHCMFilter(this.pageColors.foreground,this.pageColors.background))&&(t=this.ctx.filter,this.ctx.filter=e,this.ctx.drawImage(this.ctx.canvas,0,0),this.ctx.filter=t)}_scaleImage(i,e){var t=i.width,n=i.height;let r,s,o=Math.max(Math.hypot(e[0],e[1]),1),a=Math.max(Math.hypot(e[2],e[3]),1),l=t,h=n,c="prescale1";for(;2{n.save=n.__originalSave,n.restore=n.__originalRestore,n.rotate=n.__originalRotate,n.scale=n.__originalScale,n.translate=n.__originalTranslate,n.transform=n.__originalTransform,n.setTransform=n.__originalSetTransform,n.resetTransform=n.__originalResetTransform,n.clip=n.__originalClip,n.moveTo=n.__originalMoveTo,n.lineTo=n.__originalLineTo,n.bezierCurveTo=n.__originalBezierCurveTo,n.rect=n.__originalRect,n.closePath=n.__originalClosePath,n.beginPath=n.__originalBeginPath,delete n._removeMirroring},n.save=function(){o.save(),this.__originalSave()},n.restore=function(){o.restore(),this.__originalRestore()},n.translate=function(e,t){o.translate(e,t),this.__originalTranslate(e,t)},n.scale=function(e,t){o.scale(e,t),this.__originalScale(e,t)},n.transform=function(e,t,i,n,r,s){o.transform(e,t,i,n,r,s),this.__originalTransform(e,t,i,n,r,s)},n.setTransform=function(e,t,i,n,r,s){o.setTransform(e,t,i,n,r,s),this.__originalSetTransform(e,t,i,n,r,s)},n.resetTransform=function(){o.resetTransform(),this.__originalResetTransform()},n.rotate=function(e){o.rotate(e),this.__originalRotate(e)},n.clip=function(e){o.clip(e),this.__originalClip(e)},n.moveTo=function(e,t){o.moveTo(e,t),this.__originalMoveTo(e,t)},n.lineTo=function(e,t){o.lineTo(e,t),this.__originalLineTo(e,t)},n.bezierCurveTo=function(e,t,i,n,r,s){o.bezierCurveTo(e,t,i,n,r,s),this.__originalBezierCurveTo(e,t,i,n,r,s)},n.rect=function(e,t,i,n){o.rect(e,t,i,n),this.__originalRect(e,t,i,n)},n.closePath=function(){o.closePath(),this.__originalClosePath()},n.beginPath=function(){o.beginPath(),this.__originalBeginPath()},this.setGState([["BM","source-over"],["ca",1],["CA",1]])}endSMaskMode(){if(!this.inSMaskMode)throw new Error("endSMaskMode called while not in smask mode");this.ctx._removeMirroring(),m(this.ctx,this.suspendedCtx),this.ctx=this.suspendedCtx,this.suspendedCtx=null}compose(e){if(this.current.activeSMask){e?(e[0]=Math.floor(e[0]),e[1]=Math.floor(e[1]),e[2]=Math.ceil(e[2]),e[3]=Math.ceil(e[3])):e=[0,0,this.ctx.canvas.width,this.ctx.canvas.height];var t=this.current.activeSMask,i=this.suspendedCtx,n=this.ctx,r=(e=e)[0],s=e[1],o=e[2]-r,e=e[3]-s;if(0!=o&&0!=e){var a,l=t.context,h=n,c=o,d=e,o=t.subtype,u=t.backdrop,p=t.transferMap,m=r,g=s,f=t.offsetX,v=t.offsetY,b=!!u,y=b?u[0]:0,w=b?u[1]:0,x=b?u[2]:0,A="Luminosity"===o?$:L,S=Math.min(d,Math.ceil(1048576/c));for(let e=0;e>8,k[e-2]=k[e-2]*R+C*a>>8,k[e-1]=k[e-1]*R+E*a>>8)}}A(T.data,M.data,p),h.putImageData(M,m,e+g)}i.save(),i.globalAlpha=1,i.globalCompositeOperation="source-over",i.setTransform(1,0,0,1,0,0),i.drawImage(n.canvas,0,0),i.restore()}this.ctx.save(),this.ctx.setTransform(1,0,0,1,0,0),this.ctx.clearRect(0,0,this.ctx.canvas.width,this.ctx.canvas.height),this.ctx.restore()}}save(){(this.inSMaskMode?(m(this.ctx,this.suspendedCtx),this.suspendedCtx):this.ctx).save();var e=this.current;this.stateStack.push(e),this.current=e.clone()}restore(){0===this.stateStack.length&&this.inSMaskMode&&this.endSMaskMode(),0!==this.stateStack.length&&(this.current=this.stateStack.pop(),this.inSMaskMode?(this.suspendedCtx.restore(),m(this.suspendedCtx,this.ctx)):this.ctx.restore(),this.checkSMaskState(),this.pendingClip=null,this._cachedScaleForStroking[0]=-1,this._cachedGetSinglePixelWidth=null)}transform(e,t,i,n,r,s){this.ctx.transform(e,t,i,n,r,s),this._cachedScaleForStroking[0]=-1,this._cachedGetSinglePixelWidth=null}constructPath(n,r,s){var o=this.ctx,a=this.current;let l,h,c=a.x,d=a.y;var u=(0,R.getCurrentTransform)(o),p=0===u[0]&&0===u[3]||0===u[1]&&0===u[2],m=p?s.slice(0):null;for(let e=0,t=0,i=n.length;enew l(e,this.commonObjs,this.objs,this.canvasFactory,this.filterFactory,{optionalContentConfig:this.optionalContentConfig,markedContentStack:this.markedContentStack})},n)):this._getPattern(e[1],e[2])}setStrokeColorN(){this.current.strokeColor=this.getColorN_Pattern(arguments)}setFillColorN(){this.current.fillColor=this.getColorN_Pattern(arguments),this.current.patternFill=!0}setStrokeRGBColor(e,t,i){e=w.Util.makeHexColor(e,t,i);this.ctx.strokeStyle=e,this.current.strokeColor=e}setFillRGBColor(e,t,i){e=w.Util.makeHexColor(e,t,i);this.ctx.fillStyle=e,this.current.fillColor=e,this.current.patternFill=!1}_getPattern(e){let t,i=1u&&(i=e/u,e=u),t>u&&(n=t/u,t=u),this.current.startNewPathAndClipBox([0,0,e,t]),"groupAt"+this.groupLevel);s.smask&&(r+="_smask_"+this.smaskCounter++%2);var l=this.cachedCanvases.getCanvas(r,e,t),d=l.context;d.scale(1/i,1/n),d.translate(-h,-c),d.transform(...a),s.smask?this.smaskStack.push({canvas:l.canvas,context:d,offsetX:h,offsetY:c,scaleX:i,scaleY:n,subtype:s.smask.subtype,backdrop:s.smask.backdrop,transferMap:s.smask.transferMap||null,startTransformInverse:null}):(o.setTransform(1,0,0,1,0,0),o.translate(h,c),o.scale(i,n),o.save()),m(o,d),this.ctx=d,this.setGState([["BM","source-over"],["ca",1],["CA",1]]),this.groupStack.push(o),this.groupLevel++}}endGroup(e){if(this.contentVisible){this.groupLevel--;const t=this.ctx,i=this.groupStack.pop();if(this.ctx=i,this.ctx.imageSmoothingEnabled=!1,e.smask)this.tempSMask=this.smaskStack.pop(),this.restore();else{this.ctx.restore();const e=(0,R.getCurrentTransform)(this.ctx),i=(this.restore(),this.ctx.save(),this.ctx.setTransform(...e),w.Util.getAxialAlignedBoundingBox([0,0,t.canvas.width,t.canvas.height],e));this.ctx.drawImage(t.canvas,0,0),this.ctx.restore(),this.compose(i)}}}beginAnnotation(e,t,i,n,r){if(this.#ce(),g(this.ctx),this.ctx.save(),this.save(),this.baseTransform&&this.ctx.setTransform(...this.baseTransform),Array.isArray(t)&&4===t.length){const n=t[2]-t[0],a=t[3]-t[1];if(r&&this.annotationCanvasMap){(i=i.slice())[4]-=t[0],i[5]-=t[1],(t=t.slice())[0]=t[1]=0,t[2]=n,t[3]=a;const[r,l]=w.Util.singularValueDecompose2dScale((0,R.getCurrentTransform)(this.ctx)),h=this["viewportScale"],c=Math.ceil(n*this.outputScaleX*h),d=Math.ceil(a*this.outputScaleY*h);this.annotationCanvas=this.canvasFactory.create(c,d);var{canvas:s,context:o}=this.annotationCanvas;this.annotationCanvasMap.set(e,s),this.annotationCanvas.savedCtx=this.ctx,this.ctx=o,this.ctx.save(),this.ctx.setTransform(r,0,0,-l,0,a*l),g(this.ctx)}else g(this.ctx),this.ctx.rect(t[0],t[1],n,a),this.ctx.clip(),this.endPath()}this.current=new p(this.ctx.canvas.width,this.ctx.canvas.height),this.transform(...i),this.transform(...n)}endAnnotation(){this.annotationCanvas&&(this.ctx.restore(),this.#he(),this.ctx=this.annotationCanvas.savedCtx,delete this.annotationCanvas.savedCtx,delete this.annotationCanvas)}paintImageMaskXObject(e){var t,i;this.contentVisible&&(t=e.count,(e=this.getObject(e.data,e)).count=t,t=this.ctx,(i=this.processingType3)&&(void 0===i.compiled&&(i.compiled=function(e){const{width:i,height:n}=e;if(1e3>=1}let u=0;for((d=0)!==c[d]&&(l[0]=1,++u),t=1;t>2)+(c[d+1]?4:0)+(c[d-h+1]?8:0),r[e]&&(l[a+t]=r[e],++u),d++;if(c[d-h]!==c[d]&&(l[a+t]=c[d]?2:4,++u),1e3>4,l[t]&=e>>2|e<<2),m.lineTo(t%s,t/s|0),l[t]||--u}while(r!==t);--o}}return c=null,l=null,function(e){e.save(),e.scale(1/i,-1/n),e.translate(0,-n),e.fill(m),e.beginPath(),e.restore()}}(e)),i.compiled)?i.compiled(t):(e=(i=this._createMaskCanvas(e)).canvas,t.save(),t.setTransform(1,0,0,1,0,0),t.drawImage(e,i.offsetX,i.offsetY),t.restore(),this.compose()))}paintImageMaskXObjectRepeat(e,i){var n=2e/t)),e.lineDashOffset/=t}e.stroke(),t&&e.restore()}}isContentVisible(){for(let e=this.markedContentStack.length-1;0<=e;e--)if(!this.markedContentStack[e].visible)return!1;return!0}}t.CanvasGraphics=l;for(const e in w.OPS)void 0!==l.prototype[e]&&(l.prototype[w.OPS[e]]=l.prototype[e])},(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TilingPattern=t.PathType=void 0,t.getShadingPattern=function(e){switch(e[0]){case"RadialAxial":return new r(e);case"Mesh":return new s(e);case"Dummy":return new o}throw new Error("Unknown IR type: "+e[0])},i(2);var v=i(1),b=i(168);const h={FILL:"Fill",STROKE:"Stroke",SHADING:"Shading"};function c(e,t){var i,n,r;t&&(i=t[2]-t[0],n=t[3]-t[1],(r=new Path2D).rect(t[0],t[1],i,n),e.clip(r))}t.PathType=h;class n{constructor(){this.constructor===n&&(0,v.unreachable)("Cannot initialize BaseShadingPattern.")}getPattern(){(0,v.unreachable)("Abstract method `getPattern` called.")}}class r extends n{constructor(e){super(),this._type=e[1],this._bbox=e[2],this._colorStops=e[3],this._p0=e[4],this._p1=e[5],this._r0=e[6],this._r1=e[7],this.matrix=null}_createGradient(e){let t;"axial"===this._type?t=e.createLinearGradient(this._p0[0],this._p0[1],this._p1[0],this._p1[1]):"radial"===this._type&&(t=e.createRadialGradient(this._p0[0],this._p0[1],this._r0,this._p1[0],this._p1[1],this._r1));for(const e of this._colorStops)t.addColorStop(e[0],e[1]);return t}getPattern(e,t,i,n){let r;if(n===h.STROKE||n===h.FILL){const h=t.current.getClippedPathBoundingBox(n,(0,b.getCurrentTransform)(e))||[0,0,0,0],s=Math.ceil(h[2]-h[0])||1,o=Math.ceil(h[3]-h[1])||1,a=t.cachedCanvases.getCanvas("pattern",s,o,!0),l=a.context;l.clearRect(0,0,l.canvas.width,l.canvas.height),l.beginPath(),l.rect(0,0,l.canvas.width,l.canvas.height),l.translate(-h[0],-h[1]),i=v.Util.transform(i,[1,0,0,1,h[0],h[1]]),l.transform(...t.baseTransform),this.matrix&&l.transform(...this.matrix),c(l,this._bbox),l.fillStyle=this._createGradient(l),l.fill(),r=e.createPattern(a.canvas,"no-repeat");n=new DOMMatrix(i);r.setTransform(n)}else c(e,this._bbox),r=this._createGradient(e);return r}}function y(t,d,u,p,e,i,m,g){var n=d.coords,f=d.colors,v=t.data,b=4*t.width;let r;n[u+1]>n[p+1]&&(r=u,u=p,p=r,r=i,i=m,m=r),n[p+1]>n[e+1]&&(r=p,p=e,e=r,r=m,m=g,g=r),n[u+1]>n[p+1]&&(r=u,u=p,p=r,r=i,i=m,m=r);var y=(n[u]+d.offsetX)*d.scaleX,w=(n[u+1]+d.offsetY)*d.scaleY,x=(n[p]+d.offsetX)*d.scaleX,A=(n[p+1]+d.offsetY)*d.scaleY,S=(n[e]+d.offsetX)*d.scaleX,k=(n[e+1]+d.offsetY)*d.scaleY;if(!(k<=w)){var _=f[i],C=f[i+1],E=f[i+2],T=f[m],M=f[m+1],R=f[m+2],L=f[g],$=f[g+1],F=f[g+2],t=Math.round(w),P=Math.round(k);let n,r,s,o,a,l,h,c;for(let e=t;e<=P;e++){if(ek?1:A==k?0:(A-e)/(A-k);n=x-(x-S)*I,r=T-(T-L)*I,s=M-(M-$)*I,o=R-(R-F)*I}let t;a=y-(y-S)*(t=ek?1:(w-e)/(w-k)),l=_-(_-L)*t,h=C-(C-$)*t,c=E-(E-F)*t;const u=Math.round(Math.min(n,a)),p=Math.round(Math.max(n,a));let i=b*e+4*u;for(let e=u;e<=p;e++)(t=(n-e)/(n-a))<0?t=0:1=t?n=t:i=n/e,{scale:i,size:n}}clipBbox(e,t,i,n,r){e.ctx.rect(t,i,n-t,r-i),e.current.updateRectMinMax((0,b.getCurrentTransform)(e.ctx),[t,i,n,r]),e.clip(),e.endPath()}setFillAndStrokeStyleToContext(e,t,i){var n=e.ctx,r=e.current;switch(t){case 1:const e=this.ctx;n.fillStyle=e.fillStyle,n.strokeStyle=e.strokeStyle,r.fillColor=e.fillStyle,r.strokeColor=e.strokeStyle;break;case 2:var s=v.Util.makeHexColor(i[0],i[1],i[2]);n.fillStyle=s,n.strokeStyle=s,r.fillColor=s,r.strokeColor=s;break;default:throw new v.FormatError("Unsupported paint type: "+t)}}getPattern(e,t,i,n){let r=i,s=(n!==h.SHADING&&(r=v.Util.transform(r,t.baseTransform),this.matrix)&&(r=v.Util.transform(r,this.matrix)),i=this.createPatternCanvas(t),new DOMMatrix(r));return s=(s=s.translate(i.offsetX,i.offsetY)).scale(1/i.scaleX,1/i.scaleY),(n=e.createPattern(i.canvas,"repeat")).setTransform(s),n}}},(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.convertBlackAndWhiteToRGBA=n,t.convertToRGBA=function(t){switch(t.kind){case m.ImageKind.GRAYSCALE_1BPP:return n(t);case m.ImageKind.RGB_24BPP:{var o=t;let{src:i,srcPos:e=0,dest:n,destPos:r=0}=o,s=0;var a=i.length>>2,l=new Uint32Array(i.buffer,e,a);if(m.FeatureTest.isLittleEndian){for(;s>>24|e<<8|4278190080,n[r+2]=e>>>16|t<<16|4278190080,n[r+3]=t>>>8|4278190080}for(let e=4*s,t=i.length;e>>8|255,n[r+2]=e<<16|t>>>16|255,n[r+3]=t<<8|255}for(let e=4*s,t=i.length;e>3,d=7&e,u=i.length;r=new Uint32Array(r.buffer);let p=0;for(let e=0;e{Object.defineProperty(t,"__esModule",{value:!0}),t.GlobalWorkerOptions=void 0;var i=Object.create(null);(t.GlobalWorkerOptions=i).workerPort=null,i.workerSrc=""},(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.MessageHandler=void 0,i(2);var h=i(1);function c(e){switch(e instanceof Error||"object"==typeof e&&null!==e||(0,h.unreachable)('wrapReason: Expected "reason" to be a (possibly cloned) Error.'),e.name){case"AbortException":return new h.AbortException(e.message);case"MissingPDFException":return new h.MissingPDFException(e.message);case"PasswordException":return new h.PasswordException(e.message,e.code);case"UnexpectedResponseException":return new h.UnexpectedResponseException(e.message,e.status);case"UnknownErrorException":return new h.UnknownErrorException(e.message,e.details);default:return new h.UnknownErrorException(e.message,e.toString())}}t.MessageHandler=class{constructor(e,t,s){this.sourceName=e,this.targetName=t,this.comObj=s,this.callbackId=1,this.streamId=1,this.streamSinks=Object.create(null),this.streamControllers=Object.create(null),this.callbackCapabilities=Object.create(null),this.actionHandler=Object.create(null),this._onComObjOnMessage=t=>{const i=t.data;if(i.targetName===this.sourceName)if(i.stream)this.#de(i);else if(i.callback){const t=i.callbackId,s=this.callbackCapabilities[t];if(!s)throw new Error("Cannot resolve callback "+t);if(delete this.callbackCapabilities[t],1===i.callback)s.resolve(i.data);else{if(2!==i.callback)throw new Error("Unexpected callback case");s.reject(c(i.reason))}}else{const n=this.actionHandler[i.action];if(!n)throw new Error("Unknown action from worker: "+i.action);if(i.callbackId){const t=this.sourceName,r=i.sourceName;new Promise(function(e){e(n(i.data))}).then(function(e){s.postMessage({sourceName:t,targetName:r,callback:1,callbackId:i.callbackId,data:e})},function(e){s.postMessage({sourceName:t,targetName:r,callback:2,callbackId:i.callbackId,reason:c(e)})})}else i.streamId?this.#ue(i):n(i.data)}},s.addEventListener("message",this._onComObjOnMessage)}on(e,t){var i=this.actionHandler;if(i[e])throw new Error(`There is already an actionName called "${e}"`);i[e]=t}send(e,t,i){this.comObj.postMessage({sourceName:this.sourceName,targetName:this.targetName,action:e,data:t},i)}sendWithPromise(e,t,i){var n=this.callbackId++,r=new h.PromiseCapability;this.callbackCapabilities[n]=r;try{this.comObj.postMessage({sourceName:this.sourceName,targetName:this.targetName,action:e,callbackId:n,data:t},i)}catch(e){r.reject(e)}return r.promise}sendWithStream(i,n,e,r){const s=this.streamId++,o=this.sourceName,a=this.targetName,l=this.comObj;return new ReadableStream({start:e=>{var t=new h.PromiseCapability;return this.streamControllers[s]={controller:e,startCall:t,pullCall:null,cancelCall:null,isClosed:!1},l.postMessage({sourceName:o,targetName:a,action:i,streamId:s,data:n,desiredSize:e.desiredSize},r),t.promise},pull:e=>{var t=new h.PromiseCapability;return this.streamControllers[s].pullCall=t,l.postMessage({sourceName:o,targetName:a,stream:6,streamId:s,desiredSize:e.desiredSize}),t.promise},cancel:e=>{(0,h.assert)(e instanceof Error,"cancel must have a valid reason");var t=new h.PromiseCapability;return this.streamControllers[s].cancelCall=t,this.streamControllers[s].isClosed=!0,l.postMessage({sourceName:o,targetName:a,stream:1,streamId:s,reason:c(e)}),t.promise}},e)}#ue(t){const r=t.streamId,s=this.sourceName,o=t.sourceName,a=this.comObj,e=this,i=this.actionHandler[t.action],n={enqueue(e){var t,i=1{Object.defineProperty(t,"__esModule",{value:!0}),t.Metadata=void 0;var n=i(1);t.Metadata=class{#fe;#ge;constructor(e){var{parsedData:e,rawData:t}=e;this.#fe=e,this.#ge=t}getRaw(){return this.#ge}get(e){return this.#fe.get(e)??null}getAll(){return(0,n.objectFromMap)(this.#fe)}has(e){return this.#fe.has(e)}}},(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.OptionalContentConfig=void 0;var s=i(1),n=i(170);const r=Symbol("INTERNAL");class o{#me=!0;constructor(e,t){this.name=e,this.intent=t}get visible(){return this.#me}_setVisible(e,t){e!==r&&(0,s.unreachable)("Internal method `_setVisible` called."),this.#me=t}}t.OptionalContentConfig=class{#be=null;#ve=new Map;#ye=null;#_e=null;constructor(e){if(this.name=null,(this.creator=null)!==e){this.name=e.name,this.creator=e.creator,this.#_e=e.order;for(const t of e.groups)this.#ve.set(t.id,new o(t.name,t.intent));if("OFF"===e.baseState)for(const e of this.#ve.values())e._setVisible(r,!1);for(const i of e.on)this.#ve.get(i)._setVisible(r,!0);for(const n of e.off)this.#ve.get(n)._setVisible(r,!1);this.#ye=this.getHash()}}#Ae(i){const n=i.length;if(n<2)return!0;var r=i[0];for(let t=1;t{Object.defineProperty(t,"__esModule",{value:!0}),t.PDFDataTransportStream=void 0,i(93),i(101),i(102),i(105),i(107),i(109),i(113),i(116),i(123),i(89);var a=i(1),r=i(168);t.PDFDataTransportStream=class{constructor(e,t){var{length:e,initialData:i,progressiveDone:n=!1,contentDispositionFilename:r=null,disableRange:s=!1,disableStream:o=!1}=e;if((0,a.assert)(t,'PDFDataTransportStream - missing required "pdfDataRangeTransport" argument.'),this._queuedChunks=[],this._progressiveDone=n,this._contentDispositionFilename=r,0{this._onReceiveData({begin:e,chunk:t})}),this._pdfDataRangeTransport.addProgressListener((e,t)=>{this._onProgress({loaded:e,total:t})}),this._pdfDataRangeTransport.addProgressiveReadListener(e=>{this._onReceiveData({chunk:e})}),this._pdfDataRangeTransport.addProgressiveDoneListener(()=>{this._onProgressiveDone()}),this._pdfDataRangeTransport.transportReady()}_onReceiveData(e){let{begin:t,chunk:i}=e;const n=(i instanceof Uint8Array&&i.byteLength===i.buffer.byteLength?i:new Uint8Array(i)).buffer;if(void 0===t)this._fullRequestReader?this._fullRequestReader._enqueue(n):this._queuedChunks.push(n);else{const e=this._rangeReaders.some(function(e){return e._begin===t&&(e._enqueue(n),!0)});(0,a.assert)(e,"_onReceiveData - no `PDFDataTransportStreamRangeReader` instance found.")}}get _progressiveDataLength(){return this._fullRequestReader?._loaded??0}_onProgress(e){void 0===e.total?this._rangeReaders[0]?.onProgress?.({loaded:e.loaded}):this._fullRequestReader?.onProgress?.({loaded:e.loaded,total:e.total})}_onProgressiveDone(){this._fullRequestReader?.progressiveDone(),this._progressiveDone=!0}_removeRangeReader(e){e=this._rangeReaders.indexOf(e);0<=e&&this._rangeReaders.splice(e,1)}getFullReader(){(0,a.assert)(!this._fullRequestReader,"PDFDataTransportStream.getFullReader can only be called once.");var e=this._queuedChunks;return this._queuedChunks=null,new n(this,e,this._progressiveDone,this._contentDispositionFilename)}getRangeReader(e,t){var i;return t<=this._progressiveDataLength?null:(i=new s(this,e,t),this._pdfDataRangeTransport.requestDataRange(e,t),this._rangeReaders.push(i),i)}cancelAllRequests(e){this._fullRequestReader?.cancel(e);for(const t of this._rangeReaders.slice(0))t.cancel(e);this._pdfDataRangeTransport.abort()}};class n{constructor(e,t){var i=2{Object.defineProperty(t,"__esModule",{value:!0}),t.PDFFetchStream=void 0,i(93),i(101),i(102),i(105),i(107),i(109),i(113),i(116),i(123),i(89);var s=i(1),o=i(182);function a(e,t,i){return{method:"GET",headers:e,signal:i.signal,mode:"cors",credentials:t?"include":"same-origin",redirect:"follow"}}function l(e){var t=new Headers;for(const n in e){var i=e[n];void 0!==i&&t.append(n,i)}return t}function n(e){return e instanceof Uint8Array?e.buffer:e instanceof ArrayBuffer?e:((0,s.warn)("getArrayBuffer - unexpected data format: "+e),new Uint8Array(e).buffer)}t.PDFFetchStream=class{constructor(e){this.source=e,this.isHttp=/^https?:/i.test(e.url),this.httpHeaders=this.isHttp&&e.httpHeaders||{},this._fullRequestReader=null,this._rangeRequestReaders=[]}get _progressiveDataLength(){return this._fullRequestReader?._loaded??0}getFullReader(){return(0,s.assert)(!this._fullRequestReader,"PDFFetchStream.getFullReader can only be called once."),this._fullRequestReader=new r(this),this._fullRequestReader}getRangeReader(e,t){return t<=this._progressiveDataLength?null:(e=new h(this,e,t),this._rangeRequestReaders.push(e),e)}cancelAllRequests(e){this._fullRequestReader?.cancel(e);for(const t of this._rangeRequestReaders.slice(0))t.cancel(e)}};class r{constructor(e){this._stream=e,this._reader=null,this._loaded=0,this._filename=null;e=e.source;this._withCredentials=e.withCredentials||!1,this._contentLength=e.length,this._headersCapability=new s.PromiseCapability,this._disableRange=e.disableRange||!1,this._rangeChunkSize=e.rangeChunkSize,this._rangeChunkSize||this._disableRange||(this._disableRange=!0),this._abortController=new AbortController,this._isStreamingSupported=!e.disableStream,this._isRangeSupported=!e.disableRange,this._headers=l(this._stream.httpHeaders);const r=e.url;fetch(r,a(this._headers,this._withCredentials,this._abortController)).then(t=>{if(!(0,o.validateResponseStatus)(t.status))throw(0,o.createResponseStatusError)(t.status,r);this._reader=t.body.getReader(),this._headersCapability.resolve();var e=e=>t.headers.get(e),{allowRangeRequests:i,suggestedLength:n}=(0,o.validateRangeRequestCapabilities)({getResponseHeader:e,isHttp:this._stream.isHttp,rangeChunkSize:this._rangeChunkSize,disableRange:this._disableRange});this._isRangeSupported=i,this._contentLength=n||this._contentLength,this._filename=(0,o.extractFilenameFromHeader)(e),!this._isStreamingSupported&&this._isRangeSupported&&this.cancel(new s.AbortException("Streaming is disabled."))}).catch(this._headersCapability.reject),this.onProgress=null}get headersReady(){return this._headersCapability.promise}get filename(){return this._filename}get contentLength(){return this._contentLength}get isRangeSupported(){return this._isRangeSupported}get isStreamingSupported(){return this._isStreamingSupported}async read(){await this._headersCapability.promise;var{value:e,done:t}=await this._reader.read();return t?{value:e,done:t}:(this._loaded+=e.byteLength,this.onProgress?.({loaded:this._loaded,total:this._contentLength}),{value:n(e),done:!1})}cancel(e){this._reader?.cancel(e),this._abortController.abort()}}class h{constructor(e,t,i){this._stream=e,this._reader=null,this._loaded=0;e=e.source;this._withCredentials=e.withCredentials||!1,this._readCapability=new s.PromiseCapability,this._isStreamingSupported=!e.disableStream,this._abortController=new AbortController,this._headers=l(this._stream.httpHeaders),this._headers.append("Range",`bytes=${t}-`+(i-1));const n=e.url;fetch(n,a(this._headers,this._withCredentials,this._abortController)).then(e=>{if(!(0,o.validateResponseStatus)(e.status))throw(0,o.createResponseStatusError)(e.status,n);this._readCapability.resolve(),this._reader=e.body.getReader()}).catch(this._readCapability.reject),this.onProgress=null}get isStreamingSupported(){return this._isStreamingSupported}async read(){await this._readCapability.promise;var{value:e,done:t}=await this._reader.read();return t?{value:e,done:t}:(this._loaded+=e.byteLength,this.onProgress?.({loaded:this._loaded}),{value:n(e),done:!1})}cancel(e){this._reader?.cancel(e),this._abortController.abort()}}},(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.createResponseStatusError=function(e,t){return 404===e||0===e&&t.startsWith("file:")?new n.MissingPDFException('Missing PDF "'+t+'".'):new n.UnexpectedResponseException(`Unexpected server response (${e}) while retrieving PDF "${t}".`,e)},t.extractFilenameFromHeader=function(t){t=t("Content-Disposition");if(t){let e=(0,r.getFilenameFromContentDispositionHeader)(t);if(e.includes("%"))try{e=decodeURIComponent(e)}catch{}if((0,s.isPdfFile)(e))return e}return null},t.validateRangeRequestCapabilities=function(e){var{getResponseHeader:e,isHttp:t,rangeChunkSize:i,disableRange:n}=e,r={allowRangeRequests:!1,suggestedLength:void 0},s=parseInt(e("Content-Length"),10);return!Number.isInteger(s)||(r.suggestedLength=s)<=2*i||!n&&t&&"bytes"===e("Accept-Ranges")&&"identity"===(e("Content-Encoding")||"identity")&&(r.allowRangeRequests=!0),r},t.validateResponseStatus=function(e){return 200===e||206===e};var n=i(1),r=i(183),s=i(168)},(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getFilenameFromContentDispositionHeader=function(e){let r=!0,t=a("filename\\*","i").exec(e);var i;return t?(i=l(t=t[1]),n(i=o(i=h(i=unescape(i))))):(t=function(e){for(var n=[],t=a("filename\\*((?!0\\d)\\d+)(\\*?)","ig");null!==(i=t.exec(e));){var[,i,r,s]=i;if((i=parseInt(i,10))in n){if(0===i)break}else n[i]=[r,s]}var o=[];for(let i=0;i{Object.defineProperty(t,"__esModule",{value:!0}),t.PDFNetworkStream=void 0,i(89);var s=i(1),o=i(182);class n{constructor(e){var t=1t.getResponseHeader(e),{allowRangeRequests:n,suggestedLength:r}=(0,o.validateRangeRequestCapabilities)({getResponseHeader:i,isHttp:this._manager.isHttp,rangeChunkSize:this._rangeChunkSize,disableRange:this._disableRange});n&&(this._isRangeSupported=!0),this._contentLength=r||this._contentLength,this._filename=(0,o.extractFilenameFromHeader)(i),this._isRangeSupported&&this._manager.abortRequest(e),this._headersReceivedCapability.resolve()}_onDone(e){if(e&&(0{Object.defineProperty(t,"__esModule",{value:!0}),t.PDFNodeStream=void 0,i(89),i(93),i(101),i(102),i(105),i(107),i(109),i(113),i(116),i(123);var r=i(1),s=i(182);const o=/^file:\/\/\/[a-zA-Z]:\//;t.PDFNodeStream=class{constructor(e){this.source=e,this.url=function(e){var t=require("url"),i=t.parse(e);if("file:"!==i.protocol&&!i.host){if(/^[a-z]:[/\\]/i.test(e))return t.parse("file:///"+e);i.host||(i.protocol="file:")}return i}(e.url),this.isHttp="http:"===this.url.protocol||"https:"===this.url.protocol,this.isFsUrl="file:"===this.url.protocol,this.httpHeaders=this.isHttp&&e.httpHeaders||{},this._fullRequestReader=null,this._rangeRequestReaders=[]}get _progressiveDataLength(){return this._fullRequestReader?._loaded??0}getFullReader(){return(0,r.assert)(!this._fullRequestReader,"PDFNodeStream.getFullReader can only be called once."),this._fullRequestReader=new(this.isFsUrl?d:h)(this),this._fullRequestReader}getRangeReader(e,t){return t<=this._progressiveDataLength?null:(e=new(this.isFsUrl?u:c)(this,e,t),this._rangeRequestReaders.push(e),e)}cancelAllRequests(e){this._fullRequestReader?.cancel(e);for(const t of this._rangeRequestReaders.slice(0))t.cancel(e)}};class n{constructor(e){this._url=e.url,this._done=!1,this._storedError=null,this.onProgress=null;e=e.source;this._contentLength=e.length,this._loaded=0,this._filename=null,this._disableRange=e.disableRange||!1,this._rangeChunkSize=e.rangeChunkSize,this._rangeChunkSize||this._disableRange||(this._disableRange=!0),this._isStreamingSupported=!e.disableStream,this._isRangeSupported=!e.disableRange,this._readableStream=null,this._readCapability=new r.PromiseCapability,this._headersCapability=new r.PromiseCapability}get headersReady(){return this._headersCapability.promise}get filename(){return this._filename}get contentLength(){return this._contentLength}get isRangeSupported(){return this._isRangeSupported}get isStreamingSupported(){return this._isStreamingSupported}async read(){if(await this._readCapability.promise,this._done)return{value:void 0,done:!0};if(this._storedError)throw this._storedError;var e=this._readableStream.read();return null===e?(this._readCapability=new r.PromiseCapability,this.read()):(this._loaded+=e.length,this.onProgress?.({loaded:this._loaded,total:this._contentLength}),{value:new Uint8Array(e).buffer,done:!1})}cancel(e){this._readableStream?this._readableStream.destroy(e):this._error(e)}_error(e){this._storedError=e,this._readCapability.resolve()}_setReadableStream(e){(this._readableStream=e).on("readable",()=>{this._readCapability.resolve()}),e.on("end",()=>{e.destroy(),this._done=!0,this._readCapability.resolve()}),e.on("error",e=>{this._error(e)}),!this._isStreamingSupported&&this._isRangeSupported&&this._error(new r.AbortException("streaming is disabled")),this._storedError&&this._readableStream.destroy(this._storedError)}}class a{constructor(e){this._url=e.url,this._done=!1,this._storedError=null,this.onProgress=null,this._loaded=0,this._readableStream=null,this._readCapability=new r.PromiseCapability;e=e.source;this._isStreamingSupported=!e.disableStream}get isStreamingSupported(){return this._isStreamingSupported}async read(){if(await this._readCapability.promise,this._done)return{value:void 0,done:!0};if(this._storedError)throw this._storedError;var e=this._readableStream.read();return null===e?(this._readCapability=new r.PromiseCapability,this.read()):(this._loaded+=e.length,this.onProgress?.({loaded:this._loaded}),{value:new Uint8Array(e).buffer,done:!1})}cancel(e){this._readableStream?this._readableStream.destroy(e):this._error(e)}_error(e){this._storedError=e,this._readCapability.resolve()}_setReadableStream(e){(this._readableStream=e).on("readable",()=>{this._readCapability.resolve()}),e.on("end",()=>{e.destroy(),this._done=!0,this._readCapability.resolve()}),e.on("error",e=>{this._error(e)}),this._storedError&&this._readableStream.destroy(this._storedError)}}function l(e,t){return{protocol:e.protocol,auth:e.auth,host:e.hostname,port:e.port,path:e.path,method:"GET",headers:t}}class h extends n{constructor(n){super(n);var e,t=e=>{if(404===e.statusCode){const n=new r.MissingPDFException(`Missing PDF "${this._url}".`);this._storedError=n,void this._headersCapability.reject(n)}else{this._headersCapability.resolve(),this._setReadableStream(e);var e=e=>this._readableStream.headers[e.toLowerCase()],{allowRangeRequests:t,suggestedLength:i}=(0,s.validateRangeRequestCapabilities)({getResponseHeader:e,isHttp:n.isHttp,rangeChunkSize:this._rangeChunkSize,disableRange:this._disableRange});this._isRangeSupported=t,this._contentLength=i||this._contentLength,this._filename=(0,s.extractFilenameFromHeader)(e)}};this._request=null,"http:"===this._url.protocol?(e=require("http"),this._request=e.request(l(this._url,n.httpHeaders),t)):(e=require("https"),this._request=e.request(l(this._url,n.httpHeaders),t)),this._request.on("error",e=>{this._storedError=e,this._headersCapability.reject(e)}),this._request.end()}}class c extends a{constructor(e,t,i){super(e),this._httpHeaders={};for(const t in e.httpHeaders){const i=e.httpHeaders[t];void 0!==i&&(this._httpHeaders[t]=i)}this._httpHeaders.Range=`bytes=${t}-`+(i-1);t=e=>{if(404!==e.statusCode)this._setReadableStream(e);else{const e=new r.MissingPDFException(`Missing PDF "${this._url}".`);this._storedError=e}};if(this._request=null,"http:"===this._url.protocol){const e=require("http");this._request=e.request(l(this._url,this._httpHeaders),t)}else{const e=require("https");this._request=e.request(l(this._url,this._httpHeaders),t)}this._request.on("error",e=>{this._storedError=e}),this._request.end()}}class d extends n{constructor(e){super(e);let i=decodeURIComponent(this._url.path);o.test(this._url.href)&&(i=i.replace(/^\//,""));const n=require("fs");n.lstat(i,(e,t)=>{e?("ENOENT"===e.code&&(e=new r.MissingPDFException(`Missing PDF "${i}".`)),this._storedError=e,this._headersCapability.reject(e)):(this._contentLength=t.size,this._setReadableStream(n.createReadStream(i)),this._headersCapability.resolve())})}}class u extends a{constructor(e,t,i){super(e);let n=decodeURIComponent(this._url.path);o.test(this._url.href)&&(n=n.replace(/^\//,""));e=require("fs");this._setReadableStream(e.createReadStream(n,{start:t,end:i-1}))}}},(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SVGGraphics=void 0,i(84),i(86),i(87),i(93),i(101),i(102),i(105),i(107),i(109),i(113),i(116),i(123),i(2),i(89),i(187);var n=i(168),v=i(1);function b(i){var e=1>2]+n[(3&s)<<4|o>>4]+n[e+1>6:64]+n[e+2>1&2147483647:t>>1&2147483647;o[e]=t}function g(e,t,i,n){var r=n,s=t.length,s=(i[r]=s>>24&255,i[r+1]=s>>16&255,i[r+2]=s>>8&255,i[r+3]=255&s,i[r+=4]=255&e.charCodeAt(0),i[r+1]=255&e.charCodeAt(1),i[r+2]=255&e.charCodeAt(2),i[r+3]=255&e.charCodeAt(3),i.set(t,r+=4),function(t,i,n){let r=-1;for(let e=i;e>>8^o[i]}return-1^r}(i,n+4,r+=t.length));i[r]=s>>24&255,i[r+1]=s>>16&255,i[r+2]=s>>8&255,i[r+3]=255&s}function f(e){let t=e.length;var i=65535,n=Math.ceil(t/i),r=new Uint8Array(2+t+5*n+4);let s=0,o=(r[s++]=120,r[s++]=156,0);for(;t>i;)r[s++]=0,r[s++]=255,r[s++]=255,r[s++]=0,r[s++]=0,r.set(e.subarray(o,o+i),s),s+=i,o+=i,t-=i;r[s++]=1,r[s++]=255&t,r[s++]=t>>8&255,r[s++]=255&~t,r[s++]=(65535&~t)>>8&255,r.set(e.subarray(o),s),s+=e.length-o;n=function(t,i,n){let r=1,s=0;for(let e=i;e>24&255,r[s++]=n>>16&255,r[s++]=n>>8&255,r[s++]=255&n,r}return function(s,o,a){{var l=s,h=(s=void 0===s.kind?v.ImageKind.GRAYSCALE_1BPP:s.kind,l.width),c=l.height;let e,t,i;var d=l.data;switch(s){case v.ImageKind.GRAYSCALE_1BPP:t=0,e=1,i=h+7>>3;break;case v.ImageKind.RGB_24BPP:t=2,e=8,i=3*h;break;case v.ImageKind.RGBA_32BPP:t=6,e=8,i=4*h;break;default:throw new Error("invalid format")}var u=new Uint8Array((1+i)*c);let n=0,r=0;for(let e=0;e>24&255,h>>16&255,h>>8&255,255&h,c>>24&255,c>>16&255,c>>8&255,255&c,e,t,0,0,0]),s=function(e){if(v.isNodeJS)try{var t=8<=parseInt(process.versions.node)?e:Buffer.from(e),i=require("zlib").deflateSync(t,{level:9});return i instanceof Uint8Array?i:new Uint8Array(i)}catch(e){(0,v.warn)("Not compressing PNG because zlib.deflateSync is unavailable: "+e)}return f(e)}(u),a=m.length+36+l.length+s.length,a=new Uint8Array(a),p=0;return a.set(m,0),g("IHDR",l,a,p+=m.length),g("IDATA",s,a,p+=12+l.length),p+=12+s.length,g("IEND",new Uint8Array(0),a,p),b(a,"image/png",o)}}}();class a{constructor(){this.fontSizeScale=1,this.fontWeight="normal",this.fontSize=0,this.textMatrix=v.IDENTITY_MATRIX,this.fontMatrix=v.FONT_IDENTITY_MATRIX,this.leading=0,this.textRenderingMode=v.TextRenderingMode.FILL,this.textMatrixScale=1,this.x=0,this.y=0,this.lineX=0,this.lineY=0,this.charSpacing=0,this.wordSpacing=0,this.textHScale=1,this.textRise=0,this.fillColor="#000000",this.strokeColor="#000000",this.fillAlpha=1,this.strokeAlpha=1,this.lineWidth=1,this.lineJoin="",this.lineCap="",this.miterLimit=0,this.dashArray=[],this.dashPhase=0,this.dependencies=[],this.activeClipUrl=null,this.clipGroup=null,this.maskId=""}clone(){return Object.create(this)}setCurrentPoint(e,t){this.x=e,this.y=t}}function y(e){if(Number.isInteger(e))return e.toString();var t=e.toFixed(10);let i=t.length-1;if("0"!==t[i])return t;for(;"0"===t[--i];);return t.substring(0,"."===t[i]?i:i+1)}function w(e){if(0===e[4]&&0===e[5]){if(0===e[1]&&0===e[2])return 1===e[0]&&1===e[3]?"":`scale(${y(e[0])} ${y(e[3])})`;if(e[0]===e[3]&&e[1]===-e[2])return`rotate(${y(180*Math.acos(e[0])/Math.PI)})`}else if(1===e[0]&&0===e[1]&&0===e[2]&&1===e[3])return`translate(${y(e[4])} ${y(e[5])})`;return`matrix(${y(e[0])} ${y(e[1])} ${y(e[2])} ${y(e[3])} ${y(e[4])} ${y(e[5])})`}let l=0,h=0,m=0;t.SVGGraphics=class{constructor(e,t){var i=2{i.get(n,e)});this.current.dependencies.push(r)}return Promise.all(this.current.dependencies)}transform(e,t,i,n,r,s){this.transformMatrix=v.Util.transform(this.transformMatrix,[e,t,i,n,r,s]),this.tgrp=null}getSVG(e,t){this.viewport=t;const i=this._initialize(t);return this.loadDependencies(e).then(()=>(this.transformMatrix=v.IDENTITY_MATRIX,this.executeOpTree(this.convertOpList(e)),i))}convertOpList(t){var i=this._operatorIdMapping,n=t.argsArray,r=t.fnArray,s=[];for(let e=0,t=r.length;e{var n=i(3),r=i(188),i=i(193);n({target:"Array",proto:!0},{group:function(e){return r(this,e,1{var p=i(99),n=i(14),m=i(13),g=i(40),f=i(18),v=i(64),b=i(189),y=i(108),w=Array,x=n([].push);e.exports=function(e,t,i,n){for(var r,s,o,a=g(e),l=m(a),h=p(t,i),c=b(null),d=v(l),u=0;u{function n(){}function r(e){e.write(g("")),e.close();var t=e.parentWindow.Object;return e=null,t}var s,o=i(47),a=i(190),l=i(66),h=i(55),c=i(192),d=i(43),i=i(54),u="prototype",p="script",m=i("IE_PROTO"),g=function(e){return"<"+p+">"+e+""},f=function(){try{s=new ActiveXObject("htmlfile")}catch(i){}var e,t;f="undefined"==typeof document||document.domain&&s?r(s):(e=d("iframe"),t="java"+p+":",e.style.display="none",c.appendChild(e),e.src=String(t),(t=e.contentWindow.document).open(),t.write(g("document.F=Object")),t.close(),t.F);for(var i=l.length;i--;)delete f[u][l[i]];return f()};h[m]=!0,e.exports=Object.create||function(e,t){var i;return null!==e?(n[u]=o(e),i=new n,n[u]=null,i[m]=e):i=f(),void 0===t?i:a.f(i,t)}},(e,t,i)=>{var n=i(6),r=i(46),a=i(45),l=i(47),h=i(12),c=i(191);t.f=n&&!r?Object.defineProperties:function(e,t){l(e);for(var i,n=h(t),r=c(t),s=r.length,o=0;o{var n=i(59),r=i(66);e.exports=Object.keys||function(e){return n(e,r)}},(e,t,i)=>{i=i(24);e.exports=i("document","documentElement")},(e,t,i)=>{var n=i(34),r=i(189),i=i(45).f,s=n("unscopables"),o=Array.prototype;void 0===o[s]&&i(o,s,{configurable:!0,value:r(null)}),e.exports=function(e){o[s][e]=!0}},(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.XfaText=void 0,i(89);class s{static textContent(e){const r=[],t={items:r,styles:Object.create(null)};return function t(i){if(i){let e=null;var n=i.name;if("#text"===n)e=i.value;else{if(!s.shouldBuildText(n))return;i?.attributes?.textContent?e=i.attributes.textContent:i.value&&(e=i.value)}if(null!==e&&r.push({str:e}),i.children)for(const r of i.children)t(r)}}(e),t}static shouldBuildText(e){return!("textarea"===e||"input"===e||"option"===e||"select"===e)}}t.XfaText=s},(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TextLayerRenderTask=void 0,t.renderTextLayer=function(e){e.textContentSource||!e.textContent&&!e.textContentStream||((0,l.deprecated)("The TextLayerRender `textContent`/`textContentStream` parameters will be removed in the future, please use `textContentSource` instead."),e.textContentSource=e.textContent||e.textContentStream);var{container:t,viewport:i}=e,t=getComputedStyle(t),n=t.getPropertyValue("visibility"),t=parseFloat(t.getPropertyValue("--scale-factor")),n=("visible"===n&&(!t||1e-5{this._layoutTextParams=null}).catch(()=>{})}get promise(){return this._capability.promise}cancel(){this._canceled=!0,this._reader&&(this._reader.cancel(new m.AbortException("TextLayer task cancelled.")).catch(()=>{}),this._reader=null),this._capability.reject(new m.AbortException("TextLayer task cancelled."))}_processItems(e,r){for(const p of e)if(void 0!==p.str){this._textContentItemsStr.push(p.str);{s=void 0;o=void 0;a=void 0;l=void 0;h=void 0;c=void 0;d=void 0;u=void 0;var s=this;var o=p;var a=r;var l=document.createElement("span"),h={angle:0,canvasWidth:0,hasText:""!==o.str,hasEOL:o.hasEOL,fontSize:0},c=(s._textDivs.push(l),m.Util.transform(s._transform,o.transform));let e=Math.atan2(c[1],c[0]);var a=a[o.fontName],d=(a.vertical&&(e+=Math.PI/2),Math.hypot(c[2],c[3])),u=d*function(e,t){var i=g.get(e);if(i)return i;i=f(30,t),i.font="30px "+e,t=i.measureText("");let n=t.fontBoundingBoxAscent,r=Math.abs(t.fontBoundingBoxDescent);if(n){const t=n/(n+r);return g.set(e,t),i.canvas.width=i.canvas.height=0,t}i.strokeStyle="red",i.clearRect(0,0,30,30),i.strokeText("g",0,0);let s=i.getImageData(0,0,30,30).data;r=0;for(let e=s.length-1-3;0<=e;e-=4)if(0{this._reader.read().then(e=>{var{value:e,done:t}=e;t?i.resolve():(Object.assign(n,e.styles),this._processItems(e.items,n),r())},i.reject)};this._reader=this._textContentSource.getReader(),r()}else{if(!this._textContentSource)throw new Error('No "textContentSource" parameter specified.');{const{items:n,styles:e}=this._textContentSource;this._processItems(n,e),i.resolve()}}i.promise.then(()=>{n=null;var e=this;if(!e._canceled){const t=e._textDivs,i=e._capability;if(!(1e5{Object.defineProperty(t,"__esModule",{value:!0}),t.AnnotationEditorLayer=void 0,i(125),i(136),i(138),i(141),i(143),i(145),i(147);var n=i(1),r=i(164),l=i(197),h=i(202),s=i(168),c=i(203);class d{#Se;#Ee=!1;#xe=null;#we=this.pointerup.bind(this);#Ce=this.pointerdown.bind(this);#Te=new Map;#Pe=!1;#ke=!1;#Me=!1;#Fe;static _initialized=!1;constructor(e){var{uiManager:e,pageIndex:t,div:i,accessibilityManager:n,annotationLayer:r,viewport:s,l10n:o}=e,a=[l.FreeTextEditor,h.InkEditor,c.StampEditor];if(!d._initialized){d._initialized=!0;for(const e of a)e.initialize(o)}e.registerEditorTypes(a),this.#Fe=e,this.pageIndex=t,this.div=i,this.#Se=n,this.#xe=r,this.viewport=s,this.#Fe.addLayer(this)}get isEmpty(){return 0===this.#Te.size}updateToolbar(e){this.#Fe.updateToolbar(e)}updateMode(){var e=0{this.#Fe.focusMainContainer()},0),e.div.remove(),e.isAttachedToDOM=!1,this.#ke||this.addInkEditorIfNeeded(!1)}changeParent(e){e.parent!==this&&(e.annotationElementId&&(this.#Fe.addDeletedAnnotationElement(e.annotationElementId),r.AnnotationEditor.deleteAnnotationElement(e),e.annotationElementId=null),this.attach(e),e.parent?.detach(e),e.setParent(this),e.div)&&e.isAttachedToDOM&&(e.div.remove(),this.div.append(e.div))}add(e){var t;this.changeParent(e),this.#Fe.addEditor(e),this.attach(e),e.isAttachedToDOM||(t=e.render(),this.div.append(t),e.isAttachedToDOM=!0),e.fixAndSetPosition(),e.onceAdded(),this.#Fe.addToAnnotationStorage(e)}moveEditorInDOM(e){if(e.isAttachedToDOM){const t=document["activeElement"];e.div.contains(t)&&(e._focusEventsAllowed=!1,setTimeout(()=>{e.div.contains(document.activeElement)?e._focusEventsAllowed=!0:(e.div.addEventListener("focusin",()=>{e._focusEventsAllowed=!0},{once:!0}),t.focus())},0)),e._structTreeParentId=this.#Se?.moveElementInDOM(this.div,e.div,e.contentDiv,!0)}}addOrRebuild(e){e.needsToBeRebuilt()?e.rebuild():this.add(e)}addUndoableEditor(e){this.addCommands({cmd:()=>e._uiManager.rebuild(e),undo:()=>{e.remove()},mustExec:!1})}getNextId(){return this.#Fe.getId()}#Ie(e){switch(this.#Fe.getMode()){case n.AnnotationEditorType.FREETEXT:return new l.FreeTextEditor(e);case n.AnnotationEditorType.INK:return new h.InkEditor(e);case n.AnnotationEditorType.STAMP:return new c.StampEditor(e)}return null}pasteEditor(e,t){this.#Fe.updateToolbar(e),this.#Fe.updateMode(e);var{offsetX:e,offsetY:i}=this.#Oe(),n=this.getNextId(),n=this.#Ie({parent:this,id:n,x:e,y:i,uiManager:this.#Fe,isCentered:!0,...t});n&&this.add(n)}deserialize(e){switch(e.annotationType??e.annotationEditorType){case n.AnnotationEditorType.FREETEXT:return l.FreeTextEditor.deserialize(e,this,this.#Fe);case n.AnnotationEditorType.INK:return h.InkEditor.deserialize(e,this,this.#Fe);case n.AnnotationEditorType.STAMP:return c.StampEditor.deserialize(e,this,this.#Fe)}return null}#De(e,t){var i=this.getNextId(),i=this.#Ie({parent:this,id:i,x:e.offsetX,y:e.offsetY,uiManager:this.#Fe,isCentered:t});return i&&this.add(i),i}#Oe(){var{x:e,y:t,width:i,height:n}=this.div.getBoundingClientRect(),r=Math.max(0,e),s=Math.max(0,t),r=(r+Math.min(window.innerWidth,e+i))/2-e,i=(s+Math.min(window.innerHeight,t+n))/2-t,[e,s]=this.viewport.rotation%180==0?[r,i]:[i,r];return{offsetX:e,offsetY:s}}addNewEditor(){this.#De(this.#Oe(),!0)}setSelected(e){this.#Fe.setSelected(e)}toggleSelected(e){this.#Fe.toggleSelected(e)}isSelected(e){return this.#Fe.isSelected(e)}unselect(e){this.#Fe.unselect(e)}pointerup(e){var t=n.FeatureTest.platform["isMac"];0!==e.button||e.ctrlKey&&t||e.target!==this.div||!this.#Pe||(this.#Pe=!1,this.#Ee?this.#Fe.getMode()!==n.AnnotationEditorType.STAMP?this.#De(e,!1):this.#Fe.unselectAll():this.#Ee=!0)}pointerdown(e){var t;this.#Pe?this.#Pe=!1:(t=n.FeatureTest.platform.isMac,0!==e.button||e.ctrlKey&&t||e.target===this.div&&(this.#Pe=!0,t=this.#Fe.getActive(),this.#Ee=!t||t.isEmpty()))}findNewParent(e,t,i){t=this.#Fe.findParent(t,i);return null!==t&&t!==this&&(t.changeParent(e),!0)}destroy(){this.#Fe.getActive()?.parent===this&&(this.#Fe.commitOrRemove(),this.#Fe.setActiveEditor(null));for(const e of this.#Te.values())this.#Se?.removePointerInTextLayer(e.contentDiv),e.setParent(null),e.isAttachedToDOM=!1,e.div.remove();this.div=null,this.#Te.clear(),this.#Fe.removeLayer(this)}#Re(){this.#ke=!0;for(const e of this.#Te.values())e.isEmpty()&&e.remove();this.#ke=!1}render(e){e=e.viewport;this.viewport=e,(0,s.setLayerDimensions)(this.div,e);for(const e of this.#Fe.getEditors(this.pageIndex))this.add(e);this.updateMode()}update(e){e=e.viewport;this.#Fe.commitOrRemove(),this.viewport=e,(0,s.setLayerDimensions)(this.div,{rotation:e.rotation}),this.updateMode()}get pageDimensions(){var{pageWidth:e,pageHeight:t}=this.viewport.rawDims;return[e,t]}}t.AnnotationEditorLayer=d},(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.FreeTextEditor=void 0,i(89);var h=i(1),u=i(165),n=i(164),c=i(198);class r extends n.AnnotationEditor{#Le=this.editorDivBlur.bind(this);#Ne=this.editorDivFocus.bind(this);#Be=this.editorDivInput.bind(this);#je=this.editorDivKeydown.bind(this);#Ue;#ze="";#We=this.id+"-editor";#He;#qe=null;static _freeTextDefaultContent="";static _internalPadding=0;static _defaultColor=null;static _defaultFontSize=10;static get _keyboardManager(){var e=r.prototype,t=e=>e.isEmpty(),i=u.AnnotationEditorUIManager.TRANSLATE_SMALL,n=u.AnnotationEditorUIManager.TRANSLATE_BIG;return(0,h.shadow)(this,"_keyboardManager",new u.KeyboardManager([[["ctrl+s","mac+meta+s","ctrl+p","mac+meta+p"],e.commitOrRemove,{bubbles:!0}],[["ctrl+Enter","mac+meta+Enter","Escape","mac+Escape"],e.commitOrRemove],[["ArrowLeft","mac+ArrowLeft"],e._translateEmpty,{args:[-i,0],checker:t}],[["ctrl+ArrowLeft","mac+shift+ArrowLeft"],e._translateEmpty,{args:[-n,0],checker:t}],[["ArrowRight","mac+ArrowRight"],e._translateEmpty,{args:[i,0],checker:t}],[["ctrl+ArrowRight","mac+shift+ArrowRight"],e._translateEmpty,{args:[n,0],checker:t}],[["ArrowUp","mac+ArrowUp"],e._translateEmpty,{args:[0,-i],checker:t}],[["ctrl+ArrowUp","mac+shift+ArrowUp"],e._translateEmpty,{args:[0,-n],checker:t}],[["ArrowDown","mac+ArrowDown"],e._translateEmpty,{args:[0,i],checker:t}],[["ctrl+ArrowDown","mac+shift+ArrowDown"],e._translateEmpty,{args:[0,n],checker:t}]]))}static _type="freetext";constructor(e){super({...e,name:"freeTextEditor"}),this.#Ue=e.color||r._defaultColor||n.AnnotationEditor._defaultLineColor,this.#He=e.fontSize||r._defaultFontSize}static initialize(e){n.AnnotationEditor.initialize(e,{strings:["free_text2_default_content","editor_free_text2_aria_label"]});e=getComputedStyle(document.documentElement);this._internalPadding=parseFloat(e.getPropertyValue("--freetext-padding"))}static updateDefaultParams(e,t){switch(e){case h.AnnotationEditorParamsType.FREETEXT_SIZE:r._defaultFontSize=t;break;case h.AnnotationEditorParamsType.FREETEXT_COLOR:r._defaultColor=t}}updateParams(e,t){switch(e){case h.AnnotationEditorParamsType.FREETEXT_SIZE:this.#Ge(t);break;case h.AnnotationEditorParamsType.FREETEXT_COLOR:this.#Ve(t)}}static get defaultPropertiesToUpdate(){return[[h.AnnotationEditorParamsType.FREETEXT_SIZE,r._defaultFontSize],[h.AnnotationEditorParamsType.FREETEXT_COLOR,r._defaultColor||n.AnnotationEditor._defaultLineColor]]}get propertiesToUpdate(){return[[h.AnnotationEditorParamsType.FREETEXT_SIZE,this.#He],[h.AnnotationEditorParamsType.FREETEXT_COLOR,this.#Ue]]}#Ge(e){const t=e=>{this.editorDiv.style.fontSize=`calc(${e}px * var(--scale-factor))`,this.translate(0,-(e-this.#He)*this.parentScale),this.#He=e,this.#$e()},i=this.#He;this.addCommands({cmd:()=>{t(e)},undo:()=>{t(i)},mustExec:!0,type:h.AnnotationEditorParamsType.FREETEXT_SIZE,overwriteIfSameType:!0,keepUndo:!0})}#Ve(e){const t=this.#Ue;this.addCommands({cmd:()=>{this.#Ue=this.editorDiv.style.color=e},undo:()=>{this.#Ue=this.editorDiv.style.color=t},mustExec:!0,type:h.AnnotationEditorParamsType.FREETEXT_COLOR,overwriteIfSameType:!0,keepUndo:!0})}_translateEmpty(e,t){this._uiManager.translateSelectedEditors(e,t,!0)}getInitialTranslation(){var e=this.parentScale;return[-r._internalPadding*e,-(r._internalPadding+this.#He)*e]}rebuild(){this.parent&&(super.rebuild(),null===this.div||this.isAttachedToDOM||this.parent.add(this))}enableEditMode(){this.isInEditMode()||(this.parent.setEditingState(!1),this.parent.updateToolbar(h.AnnotationEditorType.FREETEXT),super.enableEditMode(),this.overlayDiv.classList.remove("enabled"),this.editorDiv.contentEditable=!0,this._isDraggable=!1,this.div.removeAttribute("aria-activedescendant"),this.editorDiv.addEventListener("keydown",this.#je),this.editorDiv.addEventListener("focus",this.#Ne),this.editorDiv.addEventListener("blur",this.#Le),this.editorDiv.addEventListener("input",this.#Be))}disableEditMode(){this.isInEditMode()&&(this.parent.setEditingState(!0),super.disableEditMode(),this.overlayDiv.classList.add("enabled"),this.editorDiv.contentEditable=!1,this.div.setAttribute("aria-activedescendant",this.#We),this._isDraggable=!0,this.editorDiv.removeEventListener("keydown",this.#je),this.editorDiv.removeEventListener("focus",this.#Ne),this.editorDiv.removeEventListener("blur",this.#Le),this.editorDiv.removeEventListener("input",this.#Be),this.div.focus({preventScroll:!0}),this.isEditing=!1,this.parent.div.classList.add("freeTextEditing"))}focusin(e){this._focusEventsAllowed&&(super.focusin(e),e.target!==this.editorDiv)&&this.editorDiv.focus()}onceAdded(){this.width?this.#Xe():(this.enableEditMode(),this.editorDiv.focus(),this._initialOptions?.isCentered&&this.center(),this._initialOptions=null)}isEmpty(){return!this.editorDiv||""===this.editorDiv.innerText.trim()}remove(){this.isEditing=!1,this.parent&&(this.parent.setEditingState(!0),this.parent.div.classList.add("freeTextEditing")),super.remove()}#Ke(){var e=this.editorDiv.getElementsByTagName("div");if(0===e.length)return this.editorDiv.innerText;var t=[];for(const i of e)t.push(i.innerText.replace(/\r\n?|\n/,""));return t.join("\n")}#$e(){const[e,t]=this.parentDimensions;let i;if(this.isAttachedToDOM)i=this.div.getBoundingClientRect();else{const{currentLayer:e,div:t}=this,n=t.style.display;t.style.display="hidden",e.div.append(this.div),i=t.getBoundingClientRect(),t.remove(),t.style.display=n}this.rotation%180==this.parentRotation%180?(this.width=i.width/e,this.height=i.height/t):(this.width=i.height/e,this.height=i.width/t),this.fixAndSetPosition()}commit(){if(this.isInEditMode()){super.commit(),this.disableEditMode();const e=this.#ze,t=this.#ze=this.#Ke().trimEnd();if(e!==t){const i=e=>{(this.#ze=e)?(this.#Ye(),this._uiManager.rebuild(this),this.#$e()):this.remove()};this.addCommands({cmd:()=>{i(t)},undo:()=>{i(e)},mustExec:!1}),this.#$e()}}}shouldGetKeyboardEvents(){return this.isInEditMode()}enterInEditMode(){this.enableEditMode(),this.editorDiv.focus()}dblclick(e){this.enterInEditMode()}keydown(e){e.target===this.div&&"Enter"===e.key&&(this.enterInEditMode(),e.preventDefault())}editorDivKeydown(e){r._keyboardManager.exec(this,e)}editorDivFocus(e){this.isEditing=!0}editorDivBlur(e){this.isEditing=!1}editorDivInput(e){this.parent.div.classList.toggle("freeTextEditing",this.isEmpty())}disableEditing(){this.editorDiv.setAttribute("role","comment"),this.editorDiv.removeAttribute("aria-multiline")}enableEditing(){this.editorDiv.setAttribute("role","textbox"),this.editorDiv.setAttribute("aria-multiline",!0)}render(){if(!this.div){let r,s;this.width&&(r=this.x,s=this.y),super.render(),this.editorDiv=document.createElement("div"),this.editorDiv.className="internal",this.editorDiv.setAttribute("id",this.#We),this.enableEditing(),n.AnnotationEditor._l10nPromise.get("editor_free_text2_aria_label").then(e=>this.editorDiv?.setAttribute("aria-label",e)),n.AnnotationEditor._l10nPromise.get("free_text2_default_content").then(e=>this.editorDiv?.setAttribute("default-content",e)),this.editorDiv.contentEditable=!0;const c=this.editorDiv["style"];if(c.fontSize=`calc(${this.#He}px * var(--scale-factor))`,c.color=this.#Ue,this.div.append(this.editorDiv),this.overlayDiv=document.createElement("div"),this.overlayDiv.classList.add("overlay","enabled"),this.div.append(this.overlayDiv),(0,u.bindEvents)(this,this.div,["dblclick","keydown"]),this.width){const[c,d]=this.parentDimensions;if(this.annotationElementId){const u=this.#qe["position"];let[e,t]=this.getInitialTranslation();[e,t]=this.pageTranslationToScreen(e,t);var[o,a]=this.pageDimensions,[l,h]=this.pageTranslation;let i,n;switch(this.rotation){case 0:i=r+(u[0]-l)/o,n=s+this.height-(u[1]-h)/a;break;case 90:i=r+(u[0]-l)/o,n=s-(u[1]-h)/a,[e,t]=[t,-e];break;case 180:i=r-this.width+(u[0]-l)/o,n=s-(u[1]-h)/a,[e,t]=[-e,-t];break;case 270:i=r+(u[0]-l-this.height*a)/o,n=s+(u[1]-h-this.width*o)/a,[e,t]=[-t,e]}this.setAt(i*c,n*d,e,t)}else this.setAt(r*c,s*d,this.width*c,this.height*d);this.#Ye(),this._isDraggable=!0,this.editorDiv.contentEditable=!1}else this._isDraggable=!1,this.editorDiv.contentEditable=!0}return this.div}#Ye(){if(this.editorDiv.replaceChildren(),this.#ze)for(const t of this.#ze.split("\n")){var e=document.createElement("div");e.append(t?document.createTextNode(t):document.createElement("br")),this.editorDiv.append(e)}}get contentDiv(){return this.editorDiv}static deserialize(e,t,i){let n=null;if(e instanceof c.FreeTextAnnotationElement){const{data:{defaultAppearanceData:{fontSize:t,fontColor:i},rect:r,rotation:c,id:s},textContent:o,textPosition:a,parent:{page:{pageNumber:l}}}=e;if(!o||0===o.length)return null;n=e={annotationType:h.AnnotationEditorType.FREETEXT,color:Array.from(i),fontSize:t,value:o.join("\n"),position:a,pageIndex:l-1,rect:r,rotation:c,id:s,deleted:!1}}const r=super.deserialize(e,t,i);return r.#He=e.fontSize,r.#Ue=h.Util.makeHexColor(...e.color),r.#ze=e.value,r.annotationElementId=e.id||null,r.#qe=n,r}serialize(){var e=01<=Math.abs(e-r[t]))||e.color.some((e,t)=>e!==n[t])||e.pageIndex!==s}#Xe(){var e=0this.#Xe(!0),0))}}t.FreeTextEditor=r},(O,e,t)=>{Object.defineProperty(e,"__esModule",{value:!0}),e.StampAnnotationElement=e.InkAnnotationElement=e.FreeTextAnnotationElement=e.AnnotationLayer=void 0,t(89),t(125),t(136),t(138),t(141),t(143),t(145),t(147);var u=t(1),d=t(168),s=t(163),r=t(199),o=t(200),p=t(201);const m=new WeakSet;function g(e){return{width:e[2]-e[0],height:e[3]-e[1]}}class a{static create(e){switch(e.data.annotationType){case u.AnnotationType.LINK:return new i(e);case u.AnnotationType.TEXT:return new l(e);case u.AnnotationType.WIDGET:switch(e.data.fieldType){case"Tx":return new h(e);case"Btn":return new(e.data.radioButton?b:e.data.checkBox?v:y)(e);case"Ch":return new w(e);case"Sig":return new c(e)}return new f(e);case u.AnnotationType.POPUP:return new x(e);case u.AnnotationType.FREETEXT:return new S(e);case u.AnnotationType.LINE:return new k(e);case u.AnnotationType.SQUARE:return new _(e);case u.AnnotationType.CIRCLE:return new C(e);case u.AnnotationType.POLYLINE:return new E(e);case u.AnnotationType.CARET:return new M(e);case u.AnnotationType.INK:return new R(e);case u.AnnotationType.POLYGON:return new T(e);case u.AnnotationType.HIGHLIGHT:return new L(e);case u.AnnotationType.UNDERLINE:return new $(e);case u.AnnotationType.SQUIGGLY:return new F(e);case u.AnnotationType.STRIKEOUT:return new P(e);case u.AnnotationType.STAMP:return new I(e);case u.AnnotationType.FILEATTACHMENT:return new D(e);default:return new n(e)}}}class n{#Qe=!1;constructor(e){var{isRenderable:t=!1,ignoreBorder:i=!1,createQuadrilaterals:n=!1}=1{var e=i.detail[e],n=e[0],e=e.slice(1);i.target.style[t]=r.ColorConverters[n+"_HTML"](e),this.annotationStorage.setValue(this.data.id,{[t]:r.ColorConverters[n+"_rgb"](e)})};return(0,u.shadow)(this,"_commonActions",{display:e=>{var e=e.detail["display"],t=e%2==1;this.container.style.visibility=t?"hidden":"visible",this.annotationStorage.setValue(this.data.id,{noView:t,noPrint:1===e||2===e})},print:e=>{this.annotationStorage.setValue(this.data.id,{noPrint:!e.detail.print})},hidden:e=>{e=e.detail.hidden;this.container.style.visibility=e?"hidden":"visible",this.annotationStorage.setValue(this.data.id,{noPrint:e,noView:e})},focus:e=>{setTimeout(()=>e.target.focus({preventScroll:!1}),0)},userName:e=>{e.target.title=e.detail.userName},readonly:e=>{e.target.disabled=e.detail.readonly},required:e=>{this._setRequired(e.target,e.detail.required)},bgColor:e=>{t("bgColor","backgroundColor",e)},fillColor:e=>{t("fillColor","backgroundColor",e)},fgColor:e=>{t("fgColor","color",e)},textColor:e=>{t("textColor","color",e)},borderColor:e=>{t("borderColor","borderColor",e)},strokeColor:e=>{t("strokeColor","borderColor",e)},rotation:e=>{e=e.detail.rotation;this.setRotation(e),this.annotationStorage.setValue(this.data.id,{rotation:e})}})}_dispatchEventFromSandbox(e,t){var i=this._commonActions;for(const n of Object.keys(t.detail))(e[n]||i[n])?.(t)}_setDefaultPropertiesFromJS(e){if(this.enableScripting){var t=this.annotationStorage.getRawValue(this.data.id);if(t){var i,n,r=this._commonActions;for([i,n]of Object.entries(t)){var s=r[i];s&&(s({detail:{[i]:n},target:e}),delete t[i])}}}}_createQuadrilaterals(){if(this.container){const t=this.data["quadPoints"];if(t){const[i,n,r,s]=this.data.rect;if(1===t.length){const[,{x:o,y:e},{x:a,y:l}]=t[0];if(r===o&&s===e&&i===a&&n===l)return}const o=this.container["style"];let e;if(this.#Qe){const{borderColor:t,borderWidth:i}=o;o.borderWidth=0,e=["url('data:image/svg+xml;utf8,",'',``],this.container.classList.add("hasBorder")}const a=r-i,l=s-n,h=this["svgFactory"],c=h.createElement("svg"),d=(c.classList.add("quadrilateralsContainer"),c.setAttribute("width",0),c.setAttribute("height",0),h.createElement("defs")),u=(c.append(d),h.createElement("clipPath")),p="clippath_"+this.data.id;u.setAttribute("id",p),u.setAttribute("clipPathUnits","objectBoundingBox"),d.append(u);for(const[,{x:n,y:r},{x:o,y:c}]of t){const t=h.createElement("rect"),d=(o-i)/a,p=(s-r)/l,m=(n-o)/a,g=(r-c)/l;t.setAttribute("x",d),t.setAttribute("y",p),t.setAttribute("width",m),t.setAttribute("height",g),u.append(t),e?.push(``)}this.#Qe&&(e.push("')"),o.backgroundImage=e.join("")),this.container.append(c),this.container.style.clipPath=`url(#${p})`}}}_createPopup(){var{container:e,data:t}=this,e=(e.setAttribute("aria-haspopup","dialog"),new x({data:{color:t.color,titleObj:t.titleObj,modificationDate:t.modificationDate,contentsObj:t.contentsObj,richText:t.richText,parentRect:t.rect,borderStyle:0,id:"popup_"+t.id,rotation:t.rotation},parent:this.parent,elements:[this]}));this.parent.div.append(e.render())}render(){(0,u.unreachable)("Abstract method `AnnotationElement.render` called")}_getElementsByName(e){var t=1{this.linkService.eventBus?.dispatch("switchannotationeditormode",{source:this,mode:e,editId:t})})}}class i extends n{constructor(e){super(e,{isRenderable:!0,ignoreBorder:!!(1(t&&this.linkService.goToDestination(t),!1),!t&&""!==t||this.#tn()}_bindNamedAction(e,t){e.href=this.linkService.getAnchorUrl(""),e.onclick=()=>(this.linkService.executeNamedAction(t),!1),this.#tn()}_bindAttachment(e,t){e.href=this.linkService.getAnchorUrl(""),e.onclick=()=>(this.downloadManager?.openOrDownloadData(this.container,t.content,t.filename),!1),this.#tn()}#Ze(e,t){e.href=this.linkService.getAnchorUrl(""),e.onclick=()=>(this.linkService.executeSetOCGState(t),!1),this.#tn()}_bindJSAction(e,t){e.href=this.linkService.getAnchorUrl("");var i=new Map([["Action","onclick"],["Mouse Up","onmouseup"],["Mouse Down","onmousedown"]]);for(const r of Object.keys(t.actions)){var n=i.get(r);n&&(e[n]=()=>(this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:t.id,name:r}}),!1))}e.onclick||(e.onclick=()=>!1),this.#tn()}_bindResetFormAction(e,o){const a=e.onclick;a||(e.href=this.linkService.getAnchorUrl("")),this.#tn(),this._fieldObjects?e.onclick=()=>{a?.();const{fields:e,refs:t,include:i}=o,n=[];if(0!==e.length||0!==t.length){const o=new Set(t);for(const a of e){const e=this._fieldObjects[a]||[];for(const{id:a}of e)o.add(a)}for(const e of Object.values(this._fieldObjects))for(const a of e)o.has(a.id)===i&&n.push(a)}else for(const e of Object.values(this._fieldObjects))n.push(...e);var r=this.annotationStorage,s=[];for(const e of n){const o=e["id"];switch(s.push(o),e.type){case"text":{const a=e.defaultValue||"";r.setValue(o,{value:a});break}case"checkbox":case"radiobutton":{const a=e.defaultValue===e.exportValues;r.setValue(o,{value:a});break}case"combobox":case"listbox":{const a=e.defaultValue||"";r.setValue(o,{value:a});break}default:continue}const a=document.querySelector(`[data-element-id="${o}"]`);a&&(m.has(a)?a.dispatchEvent(new Event("resetform")):(0,u.warn)("_bindResetFormAction - element not allowed: "+o))}return this.enableScripting&&this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:"app",ids:s,name:"ResetForm"}}),!1}:((0,u.warn)('_bindResetFormAction - "resetForm" action not supported, ensure that the `fieldObjects` parameter is provided.'),a||(e.onclick=()=>!1))}}class l extends n{constructor(e){super(e,{isRenderable:!0})}render(){this.container.classList.add("textAnnotation");var e=document.createElement("img");return e.src=this.imageResourcesPath+"annotation-"+this.data.name.toLowerCase()+".svg",e.alt="[{{type}} Annotation]",e.dataset.l10nId="text_annotation_type",e.dataset.l10nArgs=JSON.stringify({type:this.data.name}),!this.data.popupRef&&this.hasPopupData&&this._createPopup(),this.container.append(e),this.container}}class f extends n{render(){return this.data.alternativeText&&(this.container.title=this.data.alternativeText),this.container}showElementAndHideCanvas(e){this.data.hasOwnCanvas&&("CANVAS"===e.previousSibling?.nodeName&&(e.previousSibling.hidden=!0),e.hidden=!1)}_getKeyModifier(e){var{isWin:t,isMac:i}=u.FeatureTest.platform;return t&&e.ctrlKey||i&&e.metaKey}_setEventListener(e,t,i,n,r){i.includes("mouse")?e.addEventListener(i,e=>{this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:this.data.id,name:n,value:r(e),shift:e.shiftKey,modifier:this._getKeyModifier(e)}})}):e.addEventListener(i,e=>{if("blur"===i){if(!t.focused||!e.relatedTarget)return;t.focused=!1}else if("focus"===i){if(t.focused)return;t.focused=!0}r&&this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:this.data.id,name:n,value:r(e)}})})}_setEventListeners(e,t,i,n){for(var[r,s]of i)"Action"!==s&&!this.data.actions?.[s]||("Focus"!==s&&"Blur"!==s||(t||={focused:!1}),this._setEventListener(e,t,r,s,n),"Focus"!==s||this.data.actions?.Blur?"Blur"!==s||this.data.actions?.Focus||this._setEventListener(e,t,"focus","Focus",null):this._setEventListener(e,t,"blur","Blur",null))}_setBackgroundColor(e){var t=this.data.backgroundColor||null;e.style.backgroundColor=null===t?"transparent":u.Util.makeHexColor(t[0],t[1],t[2])}_setTextStyle(e){const t=["left","center","right"],i=this.data.defaultAppearanceData["fontColor"],n=this.data.defaultAppearanceData.fontSize||9,r=e.style;let s;var o=e=>Math.round(10*e)/10;if(this.data.multiLine){const e=Math.abs(this.data.rect[3]-this.data.rect[1]-2),t=e/(Math.round(e/(u.LINE_FACTOR*n))||1);s=Math.min(n,o(t/u.LINE_FACTOR))}else{const e=Math.abs(this.data.rect[3]-this.data.rect[1]-2);s=Math.min(n,o(e/u.LINE_FACTOR))}r.fontSize=`calc(${s}px * var(--scale-factor))`,r.color=u.Util.makeHexColor(i[0],i[1],i[2]),null!==this.data.textAlignment&&(r.textAlign=t[this.data.textAlignment])}_setRequired(e,t){t?e.setAttribute("required",!0):e.removeAttribute("required"),e.setAttribute("aria-required",t)}}class h extends f{constructor(e){super(e,{isRenderable:e.renderForms||!e.data.hasAppearance&&!!e.data.fieldValue})}setPropertyOnSiblings(e,t,i,n){var r=this.annotationStorage;for(const s of this._getElementsByName(e.name,e.id))s.domElement&&(s.domElement[t]=i),r.setValue(s.id,{[n]:i})}render(){const n=this.annotationStorage,l=this.data.id;this.container.classList.add("textWidgetAnnotation");let r=null;if(this.renderForms){var s=n.getValue(l,{value:this.data.fieldValue});let e=s.value||"";var o=n.getValue(l,{charLimit:this.data.maxLen}).charLimit;o&&e.length>o&&(e=e.slice(0,o));let t=s.formattedValue||this.data.textContent?.join("\n")||null;t&&this.data.comb&&(t=t.replaceAll(/\s+/g,""));const h={userValue:e,formattedValue:t,lastCommittedValue:null,commitKey:1,focused:!1};this.data.multiLine?((r=document.createElement("textarea")).textContent=t??e,this.data.doNotScroll&&(r.style.overflowY="hidden")):((r=document.createElement("input")).type="text",r.setAttribute("value",t??e),this.data.doNotScroll&&(r.style.overflowX="hidden")),this.data.hasOwnCanvas&&(r.hidden=!0),m.add(r),r.setAttribute("data-element-id",l),r.disabled=this.data.readOnly,r.name=this.data.fieldName,r.tabIndex=1e3,this._setRequired(r,this.data.required),o&&(r.maxLength=o),r.addEventListener("input",e=>{n.setValue(l,{value:e.target.value}),this.setPropertyOnSiblings(r,"value",e.target.value,"value"),h.formattedValue=null}),r.addEventListener("resetform",e=>{var t=this.data.defaultFieldValue??"";r.value=h.userValue=t,h.formattedValue=null});let i=e=>{var t=h["formattedValue"];null!=t&&(e.target.value=t),e.target.scrollLeft=0};if(this.enableScripting&&this.hasJSActions){r.addEventListener("focus",e=>{h.focused||(e=e["target"],h.userValue&&(e.value=h.userValue),h.lastCommittedValue=e.value,h.commitKey=1,h.focused=!0)}),r.addEventListener("updatefromsandbox",e=>{this.showElementAndHideCanvas(e.target),this._dispatchEventFromSandbox({value(e){h.userValue=e.detail.value??"",n.setValue(l,{value:h.userValue.toString()}),e.target.value=h.userValue},formattedValue(e){var t=e.detail["formattedValue"];null!=(h.formattedValue=t)&&e.target!==document.activeElement&&(e.target.value=t),n.setValue(l,{formattedValue:t})},selRange(e){e.target.setSelectionRange(...e.detail.selRange)},charLimit:t=>{var i=t.detail["charLimit"],t=t["target"];if(0===i)t.removeAttribute("maxLength");else{t.setAttribute("maxLength",i);let e=h.userValue;!e||e.length<=i||(e=e.slice(0,i),t.value=h.userValue=e,n.setValue(l,{value:e}),this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:l,name:"Keystroke",value:e,willCommit:!0,commitKey:1,selStart:t.selectionStart,selEnd:t.selectionEnd}}))}}},e)}),r.addEventListener("keydown",e=>{let t=-(h.commitKey=1);var i;"Escape"===e.key?t=0:"Enter"!==e.key||this.data.multiLine?"Tab"===e.key&&(h.commitKey=3):t=2,-1!==t&&(i=e.target.value,h.lastCommittedValue!==i)&&(h.lastCommittedValue=i,h.userValue=i,this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:l,name:"Keystroke",value:i,willCommit:!0,commitKey:t,selStart:e.target.selectionStart,selEnd:e.target.selectionEnd}}))});const a=i;i=null,r.addEventListener("blur",e=>{var t;h.focused&&e.relatedTarget&&(h.focused=!1,t=e.target["value"],h.userValue=t,h.lastCommittedValue!==t&&this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:l,name:"Keystroke",value:t,willCommit:!0,commitKey:h.commitKey,selStart:e.target.selectionStart,selEnd:e.target.selectionEnd}}),a(e))}),this.data.actions?.Keystroke&&r.addEventListener("beforeinput",e=>{h.lastCommittedValue=null;var{data:t,target:i}=e,{value:n,selectionStart:r,selectionEnd:s}=i;let o=r,a=s;switch(e.inputType){case"deleteWordBackward":{const e=n.substring(0,r).match(/\w*[^\w]*$/);e&&(o-=e[0].length);break}case"deleteWordForward":{const e=n.substring(r).match(/^[^\w]*\w*/);e&&(a+=e[0].length);break}case"deleteContentBackward":r===s&&--o;break;case"deleteContentForward":r===s&&(a+=1)}e.preventDefault(),this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:l,name:"Keystroke",value:n,change:t||"",willCommit:!1,selStart:o,selEnd:a}})}),this._setEventListeners(r,h,[["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"]],e=>e.target.value)}if(i&&r.addEventListener("blur",i),this.data.comb){const n=(this.data.rect[2]-this.data.rect[0])/o;r.classList.add("comb"),r.style.letterSpacing=`calc(${n}px * var(--scale-factor) - 1ch)`}}else(r=document.createElement("div")).textContent=this.data.fieldValue,r.style.verticalAlign="middle",r.style.display="table-cell";return this._setTextStyle(r),this._setBackgroundColor(r),this._setDefaultPropertiesFromJS(r),this.container.append(r),this.container}}class c extends f{constructor(e){super(e,{isRenderable:!!e.data.hasOwnCanvas})}}class v extends f{constructor(e){super(e,{isRenderable:e.renderForms})}render(){const n=this.annotationStorage,r=this.data,s=r.id;let e=n.getValue(s,{value:r.exportValue===r.fieldValue}).value;"string"==typeof e&&(e="Off"!==e,n.setValue(s,{value:e})),this.container.classList.add("buttonWidgetAnnotation","checkBox");var t=document.createElement("input");return m.add(t),t.setAttribute("data-element-id",s),t.disabled=r.readOnly,this._setRequired(t,this.data.required),t.type="checkbox",t.name=r.fieldName,e&&t.setAttribute("checked",!0),t.setAttribute("exportValue",r.exportValue),t.tabIndex=1e3,t.addEventListener("change",e=>{var{name:t,checked:i}=e.target;for(const e of this._getElementsByName(t,s)){const s=i&&e.exportValue===r.exportValue;e.domElement&&(e.domElement.checked=s),n.setValue(e.id,{value:s})}n.setValue(s,{value:i})}),t.addEventListener("resetform",e=>{var t=r.defaultFieldValue||"Off";e.target.checked=t===r.exportValue}),this.enableScripting&&this.hasJSActions&&(t.addEventListener("updatefromsandbox",e=>{this._dispatchEventFromSandbox({value(e){e.target.checked="Off"!==e.detail.value,n.setValue(s,{value:e.target.checked})}},e)}),this._setEventListeners(t,null,[["change","Validate"],["change","Action"],["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"]],e=>e.target.checked)),this._setBackgroundColor(t),this._setDefaultPropertiesFromJS(t),this.container.append(t),this.container}}class b extends f{constructor(e){super(e,{isRenderable:e.renderForms})}render(){this.container.classList.add("buttonWidgetAnnotation","radioButton");const i=this.annotationStorage,n=this.data,r=n.id;let s=i.getValue(r,{value:n.fieldValue===n.buttonValue}).value;"string"==typeof s&&(s=s!==n.buttonValue,i.setValue(r,{value:s}));var e=document.createElement("input");if(m.add(e),e.setAttribute("data-element-id",r),e.disabled=n.readOnly,this._setRequired(e,this.data.required),e.type="radio",e.name=n.fieldName,s&&e.setAttribute("checked",!0),e.tabIndex=1e3,e.addEventListener("change",e=>{var{name:t,checked:e}=e.target;for(const e of this._getElementsByName(t,r))i.setValue(e.id,{value:!1});i.setValue(r,{value:e})}),e.addEventListener("resetform",e=>{var t=n.defaultFieldValue;e.target.checked=null!=t&&t===n.buttonValue}),this.enableScripting&&this.hasJSActions){const s=n.buttonValue;e.addEventListener("updatefromsandbox",e=>{this._dispatchEventFromSandbox({value:e=>{var t=s===e.detail.value;for(const s of this._getElementsByName(e.target.name)){const e=t&&s.id===r;s.domElement&&(s.domElement.checked=e),i.setValue(s.id,{value:e})}}},e)}),this._setEventListeners(e,null,[["change","Validate"],["change","Action"],["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"]],e=>e.target.checked)}return this._setBackgroundColor(e),this._setDefaultPropertiesFromJS(e),this.container.append(e),this.container}}class y extends i{constructor(e){super(e,{ignoreBorder:e.data.hasAppearance})}render(){var e=super.render(),t=(e.classList.add("buttonWidgetAnnotation","pushButton"),this.data.alternativeText&&(e.title=this.data.alternativeText),e.lastChild);return this.enableScripting&&this.hasJSActions&&t&&(this._setDefaultPropertiesFromJS(t),t.addEventListener("updatefromsandbox",e=>{this._dispatchEventFromSandbox({},e)})),e}}class w extends f{constructor(e){super(e,{isRenderable:e.renderForms})}render(){this.container.classList.add("choiceWidgetAnnotation");const s=this.annotationStorage,o=this.data.id,e=s.getValue(o,{value:this.data.fieldValue}),a=document.createElement("select");m.add(a),a.setAttribute("data-element-id",o),a.disabled=this.data.readOnly,this._setRequired(a,this.data.required),a.name=this.data.fieldName,a.tabIndex=1e3;let t=this.data.combo&&0{var t=this.data.defaultFieldValue;for(const e of a.options)e.selected=e.value===t});for(const s of this.data.options){const o=document.createElement("option");o.textContent=s.displayValue,o.value=s.exportValue,e.value.includes(s.exportValue)&&(o.setAttribute("selected",!0),t=!1),a.append(o)}let i=null;if(t){const s=document.createElement("option");s.value=" ",s.setAttribute("hidden",!0),s.setAttribute("selected",!0),a.prepend(s),i=()=>{s.remove(),a.removeEventListener("input",i),i=null},a.addEventListener("input",i)}const l=e=>{const t=e?"value":"textContent",{options:i,multiple:n}=a;return n?Array.prototype.filter.call(i,e=>e.selected).map(e=>e[t]):-1===i.selectedIndex?null:i[i.selectedIndex][t]};let h=l(!1);const c=e=>{e=e.target.options;return Array.prototype.map.call(e,e=>({displayValue:e.textContent,exportValue:e.value}))};return this.enableScripting&&this.hasJSActions?(a.addEventListener("updatefromsandbox",e=>{this._dispatchEventFromSandbox({value(e){i?.();var e=e.detail.value,t=new Set(Array.isArray(e)?e:[e]);for(const s of a.options)s.selected=t.has(s.value);s.setValue(o,{value:l(!0)}),h=l(!1)},multipleSelection(e){a.multiple=!0},remove(e){var t=a.options,i=e.detail.remove;t[i].selected=!1,a.remove(i),0e.selected)&&(t[0].selected=!0),s.setValue(o,{value:l(!0),items:c(e)}),h=l(!1)},clear(e){for(;0!==a.length;)a.remove(0);s.setValue(o,{value:null,items:[]}),h=l(!1)},insert(e){var{index:t,displayValue:i,exportValue:n}=e.detail.insert,t=a.children[t],r=document.createElement("option");r.textContent=i,r.value=n,t?t.before(r):a.append(r),s.setValue(o,{value:l(!0),items:c(e)}),h=l(!1)},items(e){const t=e.detail["items"];for(;0!==a.length;)a.remove(0);for(const s of t){const{displayValue:o,exportValue:e}=s,t=document.createElement("option");t.textContent=o,t.value=e,a.append(t)}0{var t=l(!0);s.setValue(o,{value:t}),e.preventDefault(),this.linkService.eventBus?.dispatch("dispatcheventinsandbox",{source:this,detail:{id:o,name:"Keystroke",value:h,changeEx:t,willCommit:!1,commitKey:1,keyDown:!1}})}),this._setEventListeners(a,null,[["focus","Focus"],["blur","Blur"],["mousedown","Mouse Down"],["mouseenter","Mouse Enter"],["mouseleave","Mouse Exit"],["mouseup","Mouse Up"],["input","Action"],["input","Validate"]],e=>e.target.value)):a.addEventListener("input",function(e){s.setValue(o,{value:l(!0)})}),this.data.combo&&this._setTextStyle(a),this._setBackgroundColor(a),this._setDefaultPropertiesFromJS(a),this.container.append(a),this.container}}class x extends n{constructor(e){var{data:t,elements:i}=e;super(e,{isRenderable:n._hasPopupData(t)}),this.elements=i}render(){this.container.classList.add("popupAnnotation");var e=new A({container:this.container,color:this.data.color,titleObj:this.data.titleObj,modificationDate:this.data.modificationDate,contentsObj:this.data.contentsObj,richText:this.data.richText,rect:this.data.rect,parentRect:this.data.parentRect||null,parent:this.parent,elements:this.elements,open:this.data.open}),t=[];for(const i of this.elements)i.popup=e,t.push(i.data.id),i.addHighlightArea();return this.container.setAttribute("aria-controls",t.map(e=>""+u.AnnotationPrefix+e).join(",")),this.container}}class A{#en=null;#nn=this.#in.bind(this);#rn=this.#sn.bind(this);#an=this.#on.bind(this);#ln=this.#cn.bind(this);#Ue=null;#Rt=null;#hn=null;#dn=null;#un=null;#pn=null;#fn=!1;#gn=null;#mn=null;#bn=null;#vn=null;#yn=!1;constructor(e){var{container:e,color:t,elements:i,titleObj:n,modificationDate:r,contentsObj:s,richText:o,parent:a,rect:l,parentRect:h,open:c}=e,e=(this.#Rt=e,this.#vn=n,this.#hn=s,this.#bn=o,this.#un=a,this.#Ue=t,this.#mn=l,this.#pn=h,this.#dn=i,d.PDFDateString.toDateObject(r));e&&(this.#en=a.l10n.get("annotation_date_string",{date:e.toLocaleDateString(),time:e.toLocaleTimeString()})),this.trigger=i.flatMap(e=>e.getElementsToTriggerPopup());for(const e of this.trigger)e.addEventListener("click",this.#ln),e.addEventListener("mouseenter",this.#an),e.addEventListener("mouseleave",this.#rn),e.classList.add("popupTriggerArea");for(const e of i)e.container?.addEventListener("keydown",this.#nn);this.#Rt.hidden=!0,c&&this.#cn()}render(){if(!this.#gn){const{page:{view:s},viewport:{rawDims:{pageWidth:o,pageHeight:a,pageX:l,pageY:h}}}=this.#un,c=this.#gn=document.createElement("div");if(c.className="popup",this.#Ue){const s=c.style.outlineColor=u.Util.makeHexColor(...this.#Ue);if(CSS.supports("background-color","color-mix(in srgb, red 30%, white)"))c.style.backgroundColor=`color-mix(in srgb, ${s} 30%, white)`;else{const s=.7;c.style.backgroundColor=u.Util.makeHexColor(...this.#Ue.map(e=>Math.floor(.7*(255-e)+e)))}}var i=document.createElement("span"),n=(i.className="header",document.createElement("h1"));if(i.append(n),{dir:n.dir,str:n.textContent}=this.#vn,c.append(i),this.#en){const s=document.createElement("span");s.classList.add("popupDate"),this.#en.then(e=>{s.textContent=e}),i.append(s)}n=this.#hn,i=this.#bn;if(!i?.str||n?.str&&n.str!==i.str){const s=this._formatContents(n);c.append(s)}else p.XfaLayer.render({xfaHtml:i.html,intent:"richText",div:c}),c.lastChild.classList.add("richText","popupContent");let e=!!this.#pn,t=e?this.#pn:this.#mn;for(const s of this.#dn)if(!t||null!==u.Util.intersect(s.data.rect,t)){t=s.data.rect,e=!0;break}var n=u.Util.normalizeRect([t[0],s[3]-t[1]+s[1],t[2],s[3]-t[3]+s[1]]),i=e?t[2]-t[0]+5:0,i=n[0]+i,n=n[1],r=this.#Rt["style"];r.left=100*(i-l)/o+"%",r.top=100*(n-h)/a+"%",this.#Rt.append(c)}}_formatContents(e){let{str:t,dir:i}=e;var n=document.createElement("p"),r=(n.classList.add("popupContent"),n.dir=i,t.split(/(?:\r\n?|\n)/));for(let e=0,t=r.length;e{"Enter"===e.key&&(n?e.metaKey:e.ctrlKey)&&this.#Cn()}),!t.popupRef&&this.hasPopupData?this._createPopup():i.classList.add("popupTriggerArea"),e.append(i),e}getElementsToTriggerPopup(){return this.#wn}addHighlightArea(){this.container.classList.add("highlightArea")}#Cn(){this.downloadManager?.openOrDownloadData(this.container,this.content,this.filename)}}e.AnnotationLayer=class{#Se=null;#Tn=null;#Pn=new Map;constructor(e){var{div:e,accessibilityManager:t,annotationCanvasMap:i,l10n:n,page:r,viewport:s}=e;this.div=e,this.#Se=t,this.#Tn=i,this.l10n=n,this.page=r,this.viewport=s,this.zIndex=0,this.l10n||=o.NullL10n}#kn(e,t){var i=e.firstChild||e;i.id=""+u.AnnotationPrefix+t,this.div.append(e),this.#Se?.moveElementInDOM(this.div,e,i,!1)}async render(e){const t=e["annotations"],i=this.div;(0,d.setLayerDimensions)(i,this.viewport);var n=new Map,r={data:null,layer:i,linkService:e.linkService,downloadManager:e.downloadManager,imageResourcesPath:e.imageResourcesPath||"",renderForms:!1!==e.renderForms,svgFactory:new d.DOMSVGFactory,annotationStorage:e.annotationStorage||new s.AnnotationStorage,enableScripting:!0===e.enableScripting,hasJSActions:e.hasJSActions,fieldObjects:e.fieldObjects,parent:this,elements:null};for(const e of t)if(!e.noHTML){const t=e.annotationType===u.AnnotationType.POPUP;if(t){const t=n.get(e.id);if(!t)continue;r.elements=t}else{const{width:t,height:i}=g(e.rect);if(t<=0||i<=0)continue}r.data=e;const i=a.create(r);if(i.isRenderable){if(!t&&e.popupRef){const t=n.get(e.popupRef);t?t.push(i):n.set(e.popupRef,[i])}0{function i(e){return Math.floor(255*Math.max(0,Math.min(1,e))).toString(16).padStart(2,"0")}function r(e){return Math.max(0,Math.min(255,255*e))}Object.defineProperty(t,"__esModule",{value:!0}),t.ColorConverters=void 0,t.ColorConverters=class{static CMYK_G(e){var[e,t,i,n]=e;return["G",1-Math.min(1,.3*e+.59*i+.11*t+n)]}static G_CMYK(e){var[e]=e;return["CMYK",0,0,0,1-e]}static G_RGB(e){var[e]=e;return["RGB",e,e,e]}static G_rgb(e){var[e]=e;return[e=r(e),e,e]}static G_HTML(e){var[e]=e,e=i(e);return"#"+e+e+e}static RGB_G(e){var[e,t,i]=e;return["G",.3*e+.59*t+.11*i]}static RGB_rgb(e){return e.map(r)}static RGB_HTML(e){return"#"+e.map(i).join("")}static T_HTML(){return"#00000000"}static T_rgb(){return[null]}static CMYK_RGB(e){var[e,t,i,n]=e;return["RGB",1-Math.min(1,e+n),1-Math.min(1,i+n),1-Math.min(1,t+n)]}static CMYK_rgb(e){var[e,t,i,n]=e;return[r(1-Math.min(1,e+n)),r(1-Math.min(1,i+n)),r(1-Math.min(1,t+n))]}static CMYK_HTML(e){e=this.CMYK_RGB(e).slice(1);return this.RGB_HTML(e)}static RGB_CMYK(e){var[e,t,i]=e,e=1-e,t=1-t,i=1-i;return["CMYK",e,t,i,Math.min(e,t,i)]}}},(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.NullL10n=void 0,t.getL10nFallback=n;const i={of_pages:"of {{pagesCount}}",page_of_pages:"({{pageNumber}} of {{pagesCount}})",document_properties_kb:"{{size_kb}} KB ({{size_b}} bytes)",document_properties_mb:"{{size_mb}} MB ({{size_b}} bytes)",document_properties_date_string:"{{date}}, {{time}}",document_properties_page_size_unit_inches:"in",document_properties_page_size_unit_millimeters:"mm",document_properties_page_size_orientation_portrait:"portrait",document_properties_page_size_orientation_landscape:"landscape",document_properties_page_size_name_a3:"A3",document_properties_page_size_name_a4:"A4",document_properties_page_size_name_letter:"Letter",document_properties_page_size_name_legal:"Legal",document_properties_page_size_dimension_string:"{{width}} × {{height}} {{unit}} ({{orientation}})",document_properties_page_size_dimension_name_string:"{{width}} × {{height}} {{unit}} ({{name}}, {{orientation}})",document_properties_linearized_yes:"Yes",document_properties_linearized_no:"No",additional_layers:"Additional Layers",page_landmark:"Page {{page}}",thumb_page_title:"Page {{page}}",thumb_page_canvas:"Thumbnail of Page {{page}}",find_reached_top:"Reached top of document, continued from bottom",find_reached_bottom:"Reached end of document, continued from top","find_match_count[one]":"{{current}} of {{total}} match","find_match_count[other]":"{{current}} of {{total}} matches","find_match_count_limit[one]":"More than {{limit}} match","find_match_count_limit[other]":"More than {{limit}} matches",find_not_found:"Phrase not found",page_scale_width:"Page Width",page_scale_fit:"Page Fit",page_scale_auto:"Automatic Zoom",page_scale_actual:"Actual Size",page_scale_percent:"{{scale}}%",loading_error:"An error occurred while loading the PDF.",invalid_file_error:"Invalid or corrupted PDF file.",missing_file_error:"Missing PDF file.",unexpected_response_error:"Unexpected server response.",rendering_error:"An error occurred while rendering the page.",annotation_date_string:"{{date}}, {{time}}",printing_not_supported:"Warning: Printing is not fully supported by this browser.",printing_not_ready:"Warning: The PDF is not fully loaded for printing.",web_fonts_disabled:"Web fonts are disabled: unable to use embedded PDF fonts.",free_text2_default_content:"Start typing…",editor_free_text2_aria_label:"Text Editor",editor_ink2_aria_label:"Draw Editor",editor_ink_canvas_aria_label:"User-created image",editor_alt_text_button_label:"Alt text",editor_alt_text_edit_button_label:"Edit alt text",editor_alt_text_decorative_tooltip:"Marked as decorative",print_progress_percent:"{{progress}}%"};function n(e,t){switch(e){case"find_match_count":e=`find_match_count[${1===t.total?"one":"other"}]`;break;case"find_match_count_limit":e=`find_match_count_limit[${1===t.limit?"one":"other"}]`}return i[e]||""}t.NullL10n={getLanguage:async()=>"en-us",getDirection:async()=>"ltr",async get(e){var i,t=1t in i?i[t]:"{{"+t+"}}"):e},async translate(e){}}},(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.XfaLayer=void 0,i(89);var d=i(194);t.XfaLayer=class{static setupStorage(e,t,i,n,r){var s=n.getValue(t,{value:null});switch(i.name){case"textarea":null!==s.value&&(e.textContent=s.value),"print"!==r&&e.addEventListener("input",e=>{n.setValue(t,{value:e.target.value})});break;case"input":if("radio"===i.attributes.type||"checkbox"===i.attributes.type){if(s.value===i.attributes.xfaOn?e.setAttribute("checked",!0):s.value===i.attributes.xfaOff&&e.removeAttribute("checked"),"print"===r)break;e.addEventListener("change",e=>{n.setValue(t,{value:e.target.checked?e.target.getAttribute("xfaOn"):e.target.getAttribute("xfaOff")})})}else{if(null!==s.value&&e.setAttribute("value",s.value),"print"===r)break;e.addEventListener("input",e=>{n.setValue(t,{value:e.target.value})})}break;case"select":if(null!==s.value){e.setAttribute("value",s.value);for(const e of i.children)e.attributes.value===s.value?e.attributes.selected=!0:e.attributes.hasOwnProperty("selected")&&delete e.attributes.selected}e.addEventListener("input",e=>{e=e.target.options,e=-1===e.selectedIndex?"":e[e.selectedIndex].value;n.setValue(t,{value:e})})}}static setAttributes(e){let{html:t,element:i,storage:n=null,intent:r,linkService:s}=e;var o=i["attributes"],a=t instanceof HTMLAnchorElement;"radio"===o.type&&(o.name=o.name+"-"+r);for(const[e,i]of Object.entries(o))if(null!=i)switch(e){case"class":i.length&&t.setAttribute(e,i.join(" "));break;case"dataId":break;case"id":t.setAttribute("data-element-id",i);break;case"style":Object.assign(t.style,i);break;case"textContent":t.textContent=i;break;default:a&&("href"===e||"newWindow"===e)||t.setAttribute(e,i)}a&&s.addLinkAttributes(t,o.href,o.newWindow),n&&o.dataId&&this.setupStorage(t,o.dataId,i,n)}static render(e){const t=e.annotationStorage,i=e.linkService,n=e.xfaHtml,r=e.intent||"display",s=document.createElement(n.name),o=(n.attributes&&this.setAttributes({html:s,element:n,intent:r,linkService:i}),[[n,-1,s]]),a=e.div;if(a.append(s),e.viewport){const t=`matrix(${e.viewport.transform.join(",")})`;a.style.transform=t}"richText"!==r&&a.setAttribute("class","xfaLayer xfaFont");for(var l=[];0{Object.defineProperty(t,"__esModule",{value:!0}),t.InkEditor=void 0,i(89),i(2);var g=i(1),f=i(164),v=i(198),n=i(168),o=i(165);class b extends f.AnnotationEditor{#Fn=0;#Rn=0;#Dn=this.canvasPointermove.bind(this);#In=this.canvasPointerleave.bind(this);#On=this.canvasPointerup.bind(this);#Ln=this.canvasPointerdown.bind(this);#Nn=new Path2D;#Bn=!1;#jn=!1;#Un=!1;#zn=null;#Wn=0;#Hn=0;#qn=null;static _defaultColor=null;static _defaultOpacity=1;static _defaultThickness=1;static _type="ink";constructor(e){super({...e,name:"inkEditor"}),this.color=e.color||null,this.thickness=e.thickness||null,this.opacity=e.opacity||null,this.paths=[],this.bezierPath2D=[],this.allRawPaths=[],this.currentPath=[],this.scaleFactor=1,this.translationX=this.translationY=0,this.x=0,this.y=0,this._willKeepAspectRatio=!0}static initialize(e){f.AnnotationEditor.initialize(e,{strings:["editor_ink_canvas_aria_label","editor_ink2_aria_label"]})}static updateDefaultParams(e,t){switch(e){case g.AnnotationEditorParamsType.INK_THICKNESS:b._defaultThickness=t;break;case g.AnnotationEditorParamsType.INK_COLOR:b._defaultColor=t;break;case g.AnnotationEditorParamsType.INK_OPACITY:b._defaultOpacity=t/100}}updateParams(e,t){switch(e){case g.AnnotationEditorParamsType.INK_THICKNESS:this.#Gn(t);break;case g.AnnotationEditorParamsType.INK_COLOR:this.#Ve(t);break;case g.AnnotationEditorParamsType.INK_OPACITY:this.#Vn(t)}}static get defaultPropertiesToUpdate(){return[[g.AnnotationEditorParamsType.INK_THICKNESS,b._defaultThickness],[g.AnnotationEditorParamsType.INK_COLOR,b._defaultColor||f.AnnotationEditor._defaultLineColor],[g.AnnotationEditorParamsType.INK_OPACITY,Math.round(100*b._defaultOpacity)]]}get propertiesToUpdate(){return[[g.AnnotationEditorParamsType.INK_THICKNESS,this.thickness||b._defaultThickness],[g.AnnotationEditorParamsType.INK_COLOR,this.color||b._defaultColor||f.AnnotationEditor._defaultLineColor],[g.AnnotationEditorParamsType.INK_OPACITY,Math.round(100*(this.opacity??b._defaultOpacity))]]}#Gn(e){const t=this.thickness;this.addCommands({cmd:()=>{this.thickness=e,this.#$n()},undo:()=>{this.thickness=t,this.#$n()},mustExec:!0,type:g.AnnotationEditorParamsType.INK_THICKNESS,overwriteIfSameType:!0,keepUndo:!0})}#Ve(e){const t=this.color;this.addCommands({cmd:()=>{this.color=e,this.#Xn()},undo:()=>{this.color=t,this.#Xn()},mustExec:!0,type:g.AnnotationEditorParamsType.INK_COLOR,overwriteIfSameType:!0,keepUndo:!0})}#Vn(e){e/=100;const t=this.opacity;this.addCommands({cmd:()=>{this.opacity=e,this.#Xn()},undo:()=>{this.opacity=t,this.#Xn()},mustExec:!0,type:g.AnnotationEditorParamsType.INK_OPACITY,overwriteIfSameType:!0,keepUndo:!0})}rebuild(){this.parent&&(super.rebuild(),null!==this.div)&&(this.canvas||(this.#Kn(),this.#Yn()),this.isAttachedToDOM||(this.parent.add(this),this.#Jn()),this.#$n())}remove(){null!==this.canvas&&(this.isEmpty()||this.commit(),this.canvas.width=this.canvas.height=0,this.canvas.remove(),this.canvas=null,this.#zn.disconnect(),this.#zn=null,super.remove())}setParent(e){!this.parent&&e?this._uiManager.removeShouldRescale(this):this.parent&&null===e&&this._uiManager.addShouldRescale(this),super.setParent(e)}onScaleChanging(){var[e,t]=this.parentDimensions,e=this.width*e,t=this.height*t;this.setDimensions(e,t)}enableEditMode(){this.#Bn||null===this.canvas||(super.enableEditMode(),this._isDraggable=!1,this.canvas.addEventListener("pointerdown",this.#Ln))}disableEditMode(){this.isInEditMode()&&null!==this.canvas&&(super.disableEditMode(),this._isDraggable=!this.isEmpty(),this.div.classList.remove("editing"),this.canvas.removeEventListener("pointerdown",this.#Ln))}onceAdded(){this._isDraggable=!this.isEmpty()}isEmpty(){return 0===this.paths.length||1===this.paths.length&&0===this.paths[0].length}#Qn(){var{parentRotation:e,parentDimensions:[t,i]}=this;switch(e){case 90:return[0,i,i,t];case 180:return[t,i,t,i];case 270:return[t,0,i,t];default:return[0,0,t,i]}}#Zn(){var{ctx:e,color:t,opacity:i,thickness:n,parentScale:r,scaleFactor:s}=this;e.lineWidth=n*r/s,e.lineCap="round",e.lineJoin="round",e.miterLimit=10,e.strokeStyle=""+t+(0,o.opacityToHex)(i)}#ti(e,t){this.canvas.addEventListener("contextmenu",n.noContextMenu),this.canvas.addEventListener("pointerleave",this.#In),this.canvas.addEventListener("pointermove",this.#Dn),this.canvas.addEventListener("pointerup",this.#On),this.canvas.removeEventListener("pointerdown",this.#Ln),this.isEditing=!0,this.#Un||(this.#Un=!0,this.#Jn(),this.thickness||=b._defaultThickness,this.color||=b._defaultColor||f.AnnotationEditor._defaultLineColor,this.opacity??=b._defaultOpacity),this.currentPath.push([e,t]),this.#jn=!1,this.#Zn(),this.#qn=()=>{this.#ei(),this.#qn&&window.requestAnimationFrame(this.#qn)},window.requestAnimationFrame(this.#qn)}#ni(t,i){var[n,e]=this.currentPath.at(-1);if(!(1{this.allRawPaths.push(r),this.paths.push(i),this.bezierPath2D.push(n),this.rebuild()},undo:()=>{this.allRawPaths.pop(),this.paths.pop(),this.bezierPath2D.pop(),0===this.paths.length?this.remove():(this.canvas||(this.#Kn(),this.#Yn()),this.#$n())},mustExec:!0})}#ei(){if(this.#jn){this.#jn=!1;Math.ceil(this.thickness*this.parentScale);const e=this.currentPath.slice(-3),t=e.map(e=>e[0]),i=e.map(e=>e[1]),n=(Math.min(...t),Math.max(...t),Math.min(...i),Math.max(...i),this)["ctx"];n.save(),n.clearRect(0,0,this.canvas.width,this.canvas.height);for(const r of this.bezierPath2D)n.stroke(r);n.stroke(this.#Nn),n.restore()}}#ii(e,t,i,n,r,s,o){t=(t+n)/2,i=(i+r)/2,s=(n+s)/2,o=(r+o)/2;e.bezierCurveTo(t+2*(n-t)/3,i+2*(r-i)/3,s+2*(n-s)/3,o+2*(r-o)/3,s,o)}#ai(){var e=this.currentPath;if(e.length<=2)return[[e[0],e[0],e.at(-1),e.at(-1)]];var t=[];let i,[n,r]=e[0];for(i=1;i{this.canvas.removeEventListener("contextmenu",n.noContextMenu)},10),this.#si(e.offsetX,e.offsetY),this.addToAnnotationStorage(),this.setInBackground()}#Kn(){this.canvas=document.createElement("canvas"),this.canvas.width=this.canvas.height=0,this.canvas.className="inkEditorCanvas",f.AnnotationEditor._l10nPromise.get("editor_ink_canvas_aria_label").then(e=>this.canvas?.setAttribute("aria-label",e)),this.div.append(this.canvas),this.ctx=this.canvas.getContext("2d")}#Yn(){this.#zn=new ResizeObserver(e=>{e=e[0].contentRect;e.width&&e.height&&this.setDimensions(e.width,e.height)}),this.#zn.observe(this.div)}get isResizable(){return!this.isEmpty()&&this.#Bn}render(){if(!this.div){let e,t;this.width&&(e=this.x,t=this.y),super.render(),f.AnnotationEditor._l10nPromise.get("editor_ink2_aria_label").then(e=>this.div?.setAttribute("aria-label",e));const[i,n,r,s]=this.#Qn();if(this.setAt(i,n,0,0),this.setDims(r,s),this.#Kn(),this.width){const[i,n]=this.parentDimensions;this.setAspectRatio(this.width*i,this.height*n),this.setAt(e*i,t*n,this.width*i,this.height*n),this.#Un=!0,this.#Jn(),this.setDims(this.width*i,this.height*n),this.#Xn(),this.div.classList.add("disabled")}else this.div.classList.add("editing"),this.enableEditMode();this.#Yn()}return this.div}#Jn(){var e,t;this.#Un&&([e,t]=this.parentDimensions,this.canvas.width=Math.ceil(this.width*e),this.canvas.height=Math.ceil(this.height*t),this.#oi())}setDimensions(e,t){var i=Math.round(e),n=Math.round(t);this.#Wn===i&&this.#Hn===n||(this.#Wn=i,this.#Hn=n,this.canvas.style.visibility="hidden",[i,n]=this.parentDimensions,this.width=e/i,this.height=t/n,this.fixAndSetPosition(),this.#Bn&&this.#ci(e,t),this.#Jn(),this.#Xn(),this.canvas.style.visibility="visible",this.fixDims())}#ci(e,t){var i=this.#hi(),e=(e-i)/this.#Rn,t=(t-i)/this.#Fn;this.scaleFactor=Math.min(e,t)}#oi(){var e=this.#hi()/2;this.ctx.setTransform(this.scaleFactor,0,0,this.scaleFactor,this.translationX*this.scaleFactor+e,this.translationY*this.scaleFactor+e)}static#di(i){var n=new Path2D;for(let e=0,t=i.length;e{Object.defineProperty(t,"__esModule",{value:!0}),t.StampEditor=void 0,i(149),i(152);var s=i(1),n=i(164),o=i(168),a=i(198);class r extends n.AnnotationEditor{#mi=null;#bi=null;#vi=null;#yi=null;#_i=null;#Ai=null;#zn=null;#Si=null;#Ei=!1;#xi=!1;static _type="stamp";constructor(e){super({...e,name:"stampEditor"}),this.#yi=e.bitmapUrl,this.#_i=e.bitmapFile}static initialize(e){n.AnnotationEditor.initialize(e)}static get supportedTypes(){return(0,s.shadow)(this,"supportedTypes",["apng","avif","bmp","gif","jpeg","png","svg+xml","webp","x-icon"].map(e=>"image/"+e))}static get supportedTypesStr(){return(0,s.shadow)(this,"supportedTypesStr",this.supportedTypes.join(","))}static isHandlingMimeForPasting(e){return this.supportedTypes.includes(e)}static paste(e,t){t.pasteEditor(s.AnnotationEditorType.STAMP,{bitmapFile:e.getAsFile()})}#wi(e){var t=1this.#wi(e,!0)).finally(()=>this.#Ci());else if(this.#yi){const t=this.#yi;this.#yi=null,this._uiManager.enableWaiting(!0),void(this.#vi=this._uiManager.imageManager.getFromUrl(t).then(e=>this.#wi(e)).finally(()=>this.#Ci()))}else if(this.#_i){const t=this.#_i;this.#_i=null,this._uiManager.enableWaiting(!0),void(this.#vi=this._uiManager.imageManager.getFromFile(t).then(e=>this.#wi(e)).finally(()=>this.#Ci()))}else{const t=document.createElement("input");t.type="file",t.accept=r.supportedTypesStr,this.#vi=new Promise(e=>{t.addEventListener("change",async()=>{if(t.files&&0!==t.files.length){this._uiManager.enableWaiting(!0);const e=await this._uiManager.imageManager.getFromFile(t.files[0]);this.#wi(e)}else this.remove();e()}),t.addEventListener("cancel",()=>{this.remove(),e()})}).finally(()=>this.#Ci()),t.click()}}remove(){this.#bi&&(this.#mi=null,this._uiManager.imageManager.deleteId(this.#bi),this.#Ai?.remove(),this.#Ai=null,this.#zn?.disconnect(),this.#zn=null),super.remove()}rebuild(){this.parent?(super.rebuild(),null!==this.div&&(this.#bi&&this.#Ti(),this.isAttachedToDOM||this.parent.add(this))):this.#bi&&this.#Ti()}onceAdded(){this._isDraggable=!0,this.div.focus()}isEmpty(){return!(this.#vi||this.#mi||this.#yi||this.#_i)}get isResizable(){return!0}render(){if(!this.div){let e,t;var i,n;this.width&&(e=this.x,t=this.y),super.render(),this.div.hidden=!0,this.#mi?this.#Kn():this.#Ti(),this.width&&([i,n]=this.parentDimensions,this.setAt(e*i,t*n,this.width*i,this.height*n))}return this.div}#Kn(){const e=this["div"];let{width:t,height:i}=this.#mi;var[n,r]=this.pageDimensions;if(this.width)t=this.width*n,i=this.height*r;else if(t>.75*n||i>.75*r){const e=Math.min(.75*n/t,.75*r/i);t*=e,i*=e}var[s,o]=this.parentDimensions,s=(this.setDims(t*s/n,i*o/r),this._uiManager.enableWaiting(!1),this.#Ai=document.createElement("canvas"));e.append(s),e.hidden=!1,this.#Pi(t,i),this.#Yn(),this.#xi||(this.parent.addUndoableEditor(this),this.#xi=!0),this._uiManager._eventBus.dispatch("reporttelemetry",{source:this,details:{type:"editing",subtype:this.editorType,data:{action:"inserted_image"}}}),this.addAltTextButton()}#ki(e,t){var[i,n]=this.parentDimensions;this.width=e/i,this.height=t/n,this.setDims(e,t),this._initialOptions?.isCentered?this.center():this.fixAndSetPosition(),(this._initialOptions=null)!==this.#Si&&clearTimeout(this.#Si),this.#Si=setTimeout(()=>{this.#Si=null,this.#Pi(e,t)},200)}#Mi(e,t){const{width:i,height:n}=this.#mi;let r=i,s=n,o=this.#mi;for(;r>2*e||s>2*t;){const i=r,n=s;r>2*e&&(r=16384<=r?Math.floor(r/2)-1:Math.ceil(r/2)),s>2*t&&(s=16384<=s?Math.floor(s/2)-1:Math.ceil(s/2));var a=new OffscreenCanvas(r,s);a.getContext("2d").drawImage(o,0,0,i,n,0,0,r,s),o=a.transferToImageBitmap()}return o}#Pi(e,t){e=Math.ceil(e),t=Math.ceil(t);var i,n=this.#Ai;!n||n.width===e&&n.height===t||(n.width=e,n.height=t,i=this.#Ei?this.#mi:this.#Mi(e,t),(n=n.getContext("2d")).filter=this._uiManager.hcmFilter,n.drawImage(i,0,0,i.width,i.height,0,0,e,t))}#Fi(e){if(e){if(this.#Ei){const e=this._uiManager.imageManager.getSvgUrl(this.#bi);if(e)return e}const e=document.createElement("canvas");return{width:e.width,height:e.height}=this.#mi,e.getContext("2d").drawImage(this.#mi,0,0),e.toDataURL()}if(this.#Ei){const[e,t]=this.pageDimensions,i=Math.round(this.width*e*o.PixelsPerInch.PDF_TO_CSS_UNITS),n=Math.round(this.height*t*o.PixelsPerInch.PDF_TO_CSS_UNITS),r=new OffscreenCanvas(i,n);return r.getContext("2d").drawImage(this.#mi,0,0,this.#mi.width,this.#mi.height,0,0,i,n),r.transferToImageBitmap()}return structuredClone(this.#mi)}#Yn(){this.#zn=new ResizeObserver(e=>{e=e[0].contentRect;e.width&&e.height&&this.#ki(e.width,e.height)}),this.#zn.observe(this.div)}static deserialize(e,t,i){var n,r,s,o;return e instanceof a.StampAnnotationElement?null:(t=super.deserialize(e,t,i),{rect:e,bitmapUrl:n,bitmapId:o,isSvg:r,accessibilityData:s}=e,[i,o]=(o&&i.imageManager.isValidId(o)?t.#bi=o:t.#yi=n,t.#Ei=r,t.pageDimensions),t.width=(e[2]-e[0])/i,t.height=(e[3]-e[1])/o,s&&(t.altTextData=s),t)}serialize(){let e=0e.area&&(e.area=n,e.serialized.bitmap.close(),e.serialized.bitmap=this.#Fi(!1))}}else t.stamps.set(this.#bi,{area:n,serialized:i}),i.bitmap=this.#Fi(!1)}}return i}}t.StampEditor=r}],__webpack_module_cache__={};function __w_pdfjs_require__(e){var t=__webpack_module_cache__[e];return void 0!==t||(t=__webpack_module_cache__[e]={exports:{}},__webpack_modules__[e].call(t.exports,t,t.exports,__w_pdfjs_require__)),t.exports}var __webpack_exports__={};return(()=>{var e=__webpack_exports__,t=(Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"AbortException",{enumerable:!0,get:function(){return t.AbortException}}),Object.defineProperty(e,"AnnotationEditorLayer",{enumerable:!0,get:function(){return s.AnnotationEditorLayer}}),Object.defineProperty(e,"AnnotationEditorParamsType",{enumerable:!0,get:function(){return t.AnnotationEditorParamsType}}),Object.defineProperty(e,"AnnotationEditorType",{enumerable:!0,get:function(){return t.AnnotationEditorType}}),Object.defineProperty(e,"AnnotationEditorUIManager",{enumerable:!0,get:function(){return o.AnnotationEditorUIManager}}),Object.defineProperty(e,"AnnotationLayer",{enumerable:!0,get:function(){return a.AnnotationLayer}}),Object.defineProperty(e,"AnnotationMode",{enumerable:!0,get:function(){return t.AnnotationMode}}),Object.defineProperty(e,"CMapCompressionType",{enumerable:!0,get:function(){return t.CMapCompressionType}}),Object.defineProperty(e,"DOMSVGFactory",{enumerable:!0,get:function(){return n.DOMSVGFactory}}),Object.defineProperty(e,"FeatureTest",{enumerable:!0,get:function(){return t.FeatureTest}}),Object.defineProperty(e,"GlobalWorkerOptions",{enumerable:!0,get:function(){return l.GlobalWorkerOptions}}),Object.defineProperty(e,"ImageKind",{enumerable:!0,get:function(){return t.ImageKind}}),Object.defineProperty(e,"InvalidPDFException",{enumerable:!0,get:function(){return t.InvalidPDFException}}),Object.defineProperty(e,"MissingPDFException",{enumerable:!0,get:function(){return t.MissingPDFException}}),Object.defineProperty(e,"OPS",{enumerable:!0,get:function(){return t.OPS}}),Object.defineProperty(e,"PDFDataRangeTransport",{enumerable:!0,get:function(){return i.PDFDataRangeTransport}}),Object.defineProperty(e,"PDFDateString",{enumerable:!0,get:function(){return n.PDFDateString}}),Object.defineProperty(e,"PDFWorker",{enumerable:!0,get:function(){return i.PDFWorker}}),Object.defineProperty(e,"PasswordResponses",{enumerable:!0,get:function(){return t.PasswordResponses}}),Object.defineProperty(e,"PermissionFlag",{enumerable:!0,get:function(){return t.PermissionFlag}}),Object.defineProperty(e,"PixelsPerInch",{enumerable:!0,get:function(){return n.PixelsPerInch}}),Object.defineProperty(e,"PromiseCapability",{enumerable:!0,get:function(){return t.PromiseCapability}}),Object.defineProperty(e,"RenderingCancelledException",{enumerable:!0,get:function(){return n.RenderingCancelledException}}),Object.defineProperty(e,"SVGGraphics",{enumerable:!0,get:function(){return i.SVGGraphics}}),Object.defineProperty(e,"UnexpectedResponseException",{enumerable:!0,get:function(){return t.UnexpectedResponseException}}),Object.defineProperty(e,"Util",{enumerable:!0,get:function(){return t.Util}}),Object.defineProperty(e,"VerbosityLevel",{enumerable:!0,get:function(){return t.VerbosityLevel}}),Object.defineProperty(e,"XfaLayer",{enumerable:!0,get:function(){return h.XfaLayer}}),Object.defineProperty(e,"build",{enumerable:!0,get:function(){return i.build}}),Object.defineProperty(e,"createValidAbsoluteUrl",{enumerable:!0,get:function(){return t.createValidAbsoluteUrl}}),Object.defineProperty(e,"getDocument",{enumerable:!0,get:function(){return i.getDocument}}),Object.defineProperty(e,"getFilenameFromUrl",{enumerable:!0,get:function(){return n.getFilenameFromUrl}}),Object.defineProperty(e,"getPdfFilenameFromUrl",{enumerable:!0,get:function(){return n.getPdfFilenameFromUrl}}),Object.defineProperty(e,"getXfaPageViewport",{enumerable:!0,get:function(){return n.getXfaPageViewport}}),Object.defineProperty(e,"isDataScheme",{enumerable:!0,get:function(){return n.isDataScheme}}),Object.defineProperty(e,"isPdfFile",{enumerable:!0,get:function(){return n.isPdfFile}}),Object.defineProperty(e,"loadScript",{enumerable:!0,get:function(){return n.loadScript}}),Object.defineProperty(e,"noContextMenu",{enumerable:!0,get:function(){return n.noContextMenu}}),Object.defineProperty(e,"normalizeUnicode",{enumerable:!0,get:function(){return t.normalizeUnicode}}),Object.defineProperty(e,"renderTextLayer",{enumerable:!0,get:function(){return r.renderTextLayer}}),Object.defineProperty(e,"setLayerDimensions",{enumerable:!0,get:function(){return n.setLayerDimensions}}),Object.defineProperty(e,"shadow",{enumerable:!0,get:function(){return t.shadow}}),Object.defineProperty(e,"updateTextLayer",{enumerable:!0,get:function(){return r.updateTextLayer}}),Object.defineProperty(e,"version",{enumerable:!0,get:function(){return i.version}}),__w_pdfjs_require__(1)),i=__w_pdfjs_require__(124),n=__w_pdfjs_require__(168),r=__w_pdfjs_require__(195),s=__w_pdfjs_require__(196),o=__w_pdfjs_require__(165),a=__w_pdfjs_require__(198),l=__w_pdfjs_require__(176),h=__w_pdfjs_require__(201)})(),__webpack_exports__})()),!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.katex=t():e.katex=t()}("undefined"!=typeof self?self:this,function(){"use strict";var O={d:function(e,t){for(var i in t)O.o(t,i)&&!O.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},o:function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}},t={};O.d(t,{default:function(){return _n}});class D{constructor(e,t){this.name=void 0,this.position=void 0,this.length=void 0,this.rawMessage=void 0;let i,n,r="KaTeX parse error: "+e;var s=t&&t.loc;if(s&&s.start<=s.end){const e=s.lexer.input,t=(i=s.start,n=s.end,i===e.length?r+=" at end of input: ":r+=" at position "+(i+1)+": ",e.slice(i,n).replace(/[^]/g,"$&̲"));var s=15":">","<":"<",'"':""","'":"'"},H=/[&><"']/g;var C={contains:function(e,t){return-1!==e.indexOf(t)},deflt:function(e,t){return void 0===e?t:e},escape:function(e){return String(e).replace(H,e=>z[e])},hyphenate:function(e){return e.replace(B,"-$1").toLowerCase()},getBaseElem:N,isCharacterBox:function(e){e=N(e);return"mathord"===e.type||"textord"===e.type||"atom"===e.type},protocolFromUrl:function(e){e=/^[\x00-\x20]*([^\\/#?]*?)(:|�*58|�*3a|&colon)/i.exec(e);return e?":"===e[2]&&/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(e[1])?e[1].toLowerCase():null:"_relative"}};const W={displayMode:{type:"boolean",description:"Render math in display mode, which puts the math in display style (so \\int and \\sum are large, for example), and centers the math on the page on its own line.",cli:"-d, --display-mode"},output:{type:{enum:["htmlAndMathml","html","mathml"]},description:"Determines the markup language of the output.",cli:"-F, --format "},leqno:{type:"boolean",description:"Render display math in leqno style (left-justified tags)."},fleqn:{type:"boolean",description:"Render display math flush left."},throwOnError:{type:"boolean",default:!0,cli:"-t, --no-throw-on-error",cliDescription:"Render errors (in the color given by --error-color) instead of throwing a ParseError exception when encountering an error."},errorColor:{type:"string",default:"#cc0000",cli:"-c, --error-color ",cliDescription:"A color string given in the format 'rgb' or 'rrggbb' (no #). This option determines the color of errors rendered by the -t option.",cliProcessor:e=>"#"+e},macros:{type:"object",cli:"-m, --macro ",cliDescription:"Define custom macro of the form '\\foo:expansion' (use multiple -m arguments for multiple macros).",cliDefault:[],cliProcessor:(e,t)=>(t.push(e),t)},minRuleThickness:{type:"number",description:"Specifies a minimum thickness, in ems, for fraction lines, `\\sqrt` top lines, `{array}` vertical lines, `\\hline`, `\\hdashline`, `\\underline`, `\\overline`, and the borders of `\\fbox`, `\\boxed`, and `\\fcolorbox`.",processor:e=>Math.max(0,e),cli:"--min-rule-thickness ",cliProcessor:parseFloat},colorIsTextColor:{type:"boolean",description:"Makes \\color behave like LaTeX's 2-argument \\textcolor, instead of LaTeX's one-argument \\color mode change.",cli:"-b, --color-is-text-color"},strict:{type:[{enum:["warn","ignore","error"]},"boolean","function"],description:"Turn on strict / LaTeX faithfulness mode, which throws an error if the input uses features that are not supported by LaTeX.",cli:"-S, --strict",cliDefault:!1},trust:{type:["boolean","function"],description:"Trust the input, enabling all HTML features such as \\url.",cli:"-T, --trust"},maxSize:{type:"number",default:1/0,description:"If non-zero, all user-specified sizes, e.g. in \\rule{500em}{500em}, will be capped to maxSize ems. Otherwise, elements and spaces can be arbitrarily large",processor:e=>Math.max(0,e),cli:"-s, --max-size ",cliProcessor:parseInt},maxExpand:{type:"number",default:1e3,description:"Limit the number of macro expansions to the specified number, to prevent e.g. infinite macro loops. If set to Infinity, the macro expander will try to fully expand as in LaTeX.",processor:e=>Math.max(0,e),cli:"-e, --max-expand ",cliProcessor:e=>"Infinity"===e?1/0:parseInt(e)},globalGroup:{type:"boolean",cli:!1}};class U{constructor(e){this.displayMode=void 0,this.output=void 0,this.leqno=void 0,this.fleqn=void 0,this.throwOnError=void 0,this.errorColor=void 0,this.macros=void 0,this.minRuleThickness=void 0,this.colorIsTextColor=void 0,this.strict=void 0,this.trust=void 0,this.maxSize=void 0,this.maxExpand=void 0,this.globalGroup=void 0,e=e||{};for(const i in W){var t;W.hasOwnProperty(i)&&(t=W[i],this[i]=void 0!==e[i]?t.processor?t.processor(e[i]):e[i]:function(e){if(e.default)return e.default;if(e=e.type,"string"!=typeof(e=Array.isArray(e)?e[0]:e))return e.enum[0];switch(e){case"boolean":return!1;case"string":return"";case"number":return 0;case"object":return{}}}(t))}}reportNonstrict(e,t,i){let n=this.strict;if((n="function"==typeof n?n(e,t,i):n)&&"ignore"!==n){if(!0===n||"error"===n)throw new _("LaTeX-incompatible input and strict mode is set to 'error': "+t+" ["+e+"]",i);"warn"===n?"undefined"!=typeof console&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+t+" ["+e+"]"):"undefined"!=typeof console&&console.warn("LaTeX-incompatible input and strict mode is set to unrecognized '"+n+"': "+t+" ["+e+"]")}}useStrictBehavior(e,t,i){let n=this.strict;if("function"==typeof n)try{n=n(e,t,i)}catch(e){n="error"}return!(!n||"ignore"===n||!0!==n&&"error"!==n&&("warn"===n?"undefined"!=typeof console&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+t+" ["+e+"]"):"undefined"!=typeof console&&console.warn("LaTeX-incompatible input and strict mode is set to unrecognized '"+n+"': "+t+" ["+e+"]"),1))}isTrusted(e){if(e.url&&!e.protocol){const t=C.protocolFromUrl(e.url);if(null==t)return!1;e.protocol=t}const t="function"==typeof this.trust?this.trust(e):this.trust;return Boolean(t)}}class V{constructor(e,t,i){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=e,this.size=t,this.cramped=i}sup(){return j[q[this.id]]}sub(){return j[G[this.id]]}fracNum(){return j[K[this.id]]}fracDen(){return j[X[this.id]]}cramp(){return j[Y[this.id]]}text(){return j[Q[this.id]]}isTight(){return 2<=this.size}}const j=[new V(0,0,!1),new V(1,0,!0),new V(2,1,!1),new V(3,1,!0),new V(4,2,!1),new V(5,2,!0),new V(6,3,!1),new V(7,3,!0)],q=[4,5,4,5,6,7,6,7],G=[5,5,5,5,7,7,7,7],K=[2,3,4,5,6,7,6,7],X=[3,3,5,5,7,7,7,7],Y=[1,1,3,3,5,5,7,7],Q=[0,1,2,3,2,3,2,3];var E={DISPLAY:j[0],TEXT:j[2],SCRIPT:j[4],SCRIPTSCRIPT:j[6]};const J=[{name:"latin",blocks:[[256,591],[768,879]]},{name:"cyrillic",blocks:[[1024,1279]]},{name:"armenian",blocks:[[1328,1423]]},{name:"brahmic",blocks:[[2304,4255]]},{name:"georgian",blocks:[[4256,4351]]},{name:"cjk",blocks:[[12288,12543],[19968,40879],[65280,65376]]},{name:"hangul",blocks:[[44032,55215]]}],Z=[];function ee(t){for(let e=0;e=Z[e]&&t<=Z[e+1])return 1}J.forEach(e=>e.blocks.forEach(e=>Z.push(...e)));const te={doubleleftarrow:"M262 157\nl10-10c34-36 62.7-77 86-123 3.3-8 5-13.3 5-16 0-5.3-6.7-8-20-8-7.3\n 0-12.2.5-14.5 1.5-2.3 1-4.8 4.5-7.5 10.5-49.3 97.3-121.7 169.3-217 216-28\n 14-57.3 25-88 33-6.7 2-11 3.8-13 5.5-2 1.7-3 4.2-3 7.5s1 5.8 3 7.5\nc2 1.7 6.3 3.5 13 5.5 68 17.3 128.2 47.8 180.5 91.5 52.3 43.7 93.8 96.2 124.5\n 157.5 9.3 8 15.3 12.3 18 13h6c12-.7 18-4 18-10 0-2-1.7-7-5-15-23.3-46-52-87\n-86-123l-10-10h399738v-40H218c328 0 0 0 0 0l-10-8c-26.7-20-65.7-43-117-69 2.7\n-2 6-3.7 10-5 36.7-16 72.3-37.3 107-64l10-8h399782v-40z\nm8 0v40h399730v-40zm0 194v40h399730v-40z",doublerightarrow:"M399738 392l\n-10 10c-34 36-62.7 77-86 123-3.3 8-5 13.3-5 16 0 5.3 6.7 8 20 8 7.3 0 12.2-.5\n 14.5-1.5 2.3-1 4.8-4.5 7.5-10.5 49.3-97.3 121.7-169.3 217-216 28-14 57.3-25 88\n-33 6.7-2 11-3.8 13-5.5 2-1.7 3-4.2 3-7.5s-1-5.8-3-7.5c-2-1.7-6.3-3.5-13-5.5-68\n-17.3-128.2-47.8-180.5-91.5-52.3-43.7-93.8-96.2-124.5-157.5-9.3-8-15.3-12.3-18\n-13h-6c-12 .7-18 4-18 10 0 2 1.7 7 5 15 23.3 46 52 87 86 123l10 10H0v40h399782\nc-328 0 0 0 0 0l10 8c26.7 20 65.7 43 117 69-2.7 2-6 3.7-10 5-36.7 16-72.3 37.3\n-107 64l-10 8H0v40zM0 157v40h399730v-40zm0 194v40h399730v-40z",leftarrow:"M400000 241H110l3-3c68.7-52.7 113.7-120\n 135-202 4-14.7 6-23 6-25 0-7.3-7-11-21-11-8 0-13.2.8-15.5 2.5-2.3 1.7-4.2 5.8\n-5.5 12.5-1.3 4.7-2.7 10.3-4 17-12 48.7-34.8 92-68.5 130S65.3 228.3 18 247\nc-10 4-16 7.7-18 11 0 8.7 6 14.3 18 17 47.3 18.7 87.8 47 121.5 85S196 441.3 208\n 490c.7 2 1.3 5 2 9s1.2 6.7 1.5 8c.3 1.3 1 3.3 2 6s2.2 4.5 3.5 5.5c1.3 1 3.3\n 1.8 6 2.5s6 1 10 1c14 0 21-3.7 21-11 0-2-2-10.3-6-25-20-79.3-65-146.7-135-202\n l-3-3h399890zM100 241v40h399900v-40z",leftbrace:"M6 548l-6-6v-35l6-11c56-104 135.3-181.3 238-232 57.3-28.7 117\n-45 179-50h399577v120H403c-43.3 7-81 15-113 26-100.7 33-179.7 91-237 174-2.7\n 5-6 9-10 13-.7 1-7.3 1-20 1H6z",leftbraceunder:"M0 6l6-6h17c12.688 0 19.313.3 20 1 4 4 7.313 8.3 10 13\n 35.313 51.3 80.813 93.8 136.5 127.5 55.688 33.7 117.188 55.8 184.5 66.5.688\n 0 2 .3 4 1 18.688 2.7 76 4.3 172 5h399450v120H429l-6-1c-124.688-8-235-61.7\n-331-161C60.687 138.7 32.312 99.3 7 54L0 41V6z",leftgroup:"M400000 80\nH435C64 80 168.3 229.4 21 260c-5.9 1.2-18 0-18 0-2 0-3-1-3-3v-38C76 61 257 0\n 435 0h399565z",leftgroupunder:"M400000 262\nH435C64 262 168.3 112.6 21 82c-5.9-1.2-18 0-18 0-2 0-3 1-3 3v38c76 158 257 219\n 435 219h399565z",leftharpoon:"M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3\n-3.3 10.2-9.5 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5\n-18.3 3-21-1.3-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7\n-196 228-6.7 4.7-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40z",leftharpoonplus:"M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3-3.3 10.2-9.5\n 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5-18.3 3-21-1.3\n-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7-196 228-6.7 4.7\n-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40zM0 435v40h400000v-40z\nm0 0v40h400000v-40z",leftharpoondown:"M7 241c-4 4-6.333 8.667-7 14 0 5.333.667 9 2 11s5.333\n 5.333 12 10c90.667 54 156 130 196 228 3.333 10.667 6.333 16.333 9 17 2 .667 5\n 1 9 1h5c10.667 0 16.667-2 18-6 2-2.667 1-9.667-3-21-32-87.333-82.667-157.667\n-152-211l-3-3h399907v-40zM93 281 H400000 v-40L7 241z",leftharpoondownplus:"M7 435c-4 4-6.3 8.7-7 14 0 5.3.7 9 2 11s5.3 5.3 12\n 10c90.7 54 156 130 196 228 3.3 10.7 6.3 16.3 9 17 2 .7 5 1 9 1h5c10.7 0 16.7\n-2 18-6 2-2.7 1-9.7-3-21-32-87.3-82.7-157.7-152-211l-3-3h399907v-40H7zm93 0\nv40h399900v-40zM0 241v40h399900v-40zm0 0v40h399900v-40z",lefthook:"M400000 281 H103s-33-11.2-61-33.5S0 197.3 0 164s14.2-61.2 42.5\n-83.5C70.8 58.2 104 47 142 47 c16.7 0 25 6.7 25 20 0 12-8.7 18.7-26 20-40 3.3\n-68.7 15.7-86 37-10 12-15 25.3-15 40 0 22.7 9.8 40.7 29.5 54 19.7 13.3 43.5 21\n 71.5 23h399859zM103 281v-40h399897v40z",leftlinesegment:"M40 281 V428 H0 V94 H40 V241 H400000 v40z\nM40 281 V428 H0 V94 H40 V241 H400000 v40z",leftmapsto:"M40 281 V448H0V74H40V241H400000v40z\nM40 281 V448H0V74H40V241H400000v40z",leftToFrom:"M0 147h400000v40H0zm0 214c68 40 115.7 95.7 143 167h22c15.3 0 23\n-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69-70-101l-7-8h399905v-40H95l7-8\nc28.7-32 52-65.7 70-101 10.7-23.3 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 265.3\n 68 321 0 361zm0-174v-40h399900v40zm100 154v40h399900v-40z",longequal:"M0 50 h400000 v40H0z m0 194h40000v40H0z\nM0 50 h400000 v40H0z m0 194h40000v40H0z",midbrace:"M200428 334\nc-100.7-8.3-195.3-44-280-108-55.3-42-101.7-93-139-153l-9-14c-2.7 4-5.7 8.7-9 14\n-53.3 86.7-123.7 153-211 199-66.7 36-137.3 56.3-212 62H0V214h199568c178.3-11.7\n 311.7-78.3 403-201 6-8 9.7-12 11-12 .7-.7 6.7-1 18-1s17.3.3 18 1c1.3 0 5 4 11\n 12 44.7 59.3 101.3 106.3 170 141s145.3 54.3 229 60h199572v120z",midbraceunder:"M199572 214\nc100.7 8.3 195.3 44 280 108 55.3 42 101.7 93 139 153l9 14c2.7-4 5.7-8.7 9-14\n 53.3-86.7 123.7-153 211-199 66.7-36 137.3-56.3 212-62h199568v120H200432c-178.3\n 11.7-311.7 78.3-403 201-6 8-9.7 12-11 12-.7.7-6.7 1-18 1s-17.3-.3-18-1c-1.3 0\n-5-4-11-12-44.7-59.3-101.3-106.3-170-141s-145.3-54.3-229-60H0V214z",oiintSize1:"M512.6 71.6c272.6 0 320.3 106.8 320.3 178.2 0 70.8-47.7 177.6\n-320.3 177.6S193.1 320.6 193.1 249.8c0-71.4 46.9-178.2 319.5-178.2z\nm368.1 178.2c0-86.4-60.9-215.4-368.1-215.4-306.4 0-367.3 129-367.3 215.4 0 85.8\n60.9 214.8 367.3 214.8 307.2 0 368.1-129 368.1-214.8z",oiintSize2:"M757.8 100.1c384.7 0 451.1 137.6 451.1 230 0 91.3-66.4 228.8\n-451.1 228.8-386.3 0-452.7-137.5-452.7-228.8 0-92.4 66.4-230 452.7-230z\nm502.4 230c0-111.2-82.4-277.2-502.4-277.2s-504 166-504 277.2\nc0 110 84 276 504 276s502.4-166 502.4-276z",oiiintSize1:"M681.4 71.6c408.9 0 480.5 106.8 480.5 178.2 0 70.8-71.6 177.6\n-480.5 177.6S202.1 320.6 202.1 249.8c0-71.4 70.5-178.2 479.3-178.2z\nm525.8 178.2c0-86.4-86.8-215.4-525.7-215.4-437.9 0-524.7 129-524.7 215.4 0\n85.8 86.8 214.8 524.7 214.8 438.9 0 525.7-129 525.7-214.8z",oiiintSize2:"M1021.2 53c603.6 0 707.8 165.8 707.8 277.2 0 110-104.2 275.8\n-707.8 275.8-606 0-710.2-165.8-710.2-275.8C311 218.8 415.2 53 1021.2 53z\nm770.4 277.1c0-131.2-126.4-327.6-770.5-327.6S248.4 198.9 248.4 330.1\nc0 130 128.8 326.4 772.7 326.4s770.5-196.4 770.5-326.4z",rightarrow:"M0 241v40h399891c-47.3 35.3-84 78-110 128\n-16.7 32-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20\n 11 8 0 13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7\n 39-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85\n-40.5-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5\n-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67\n 151.7 139 205zm0 0v40h399900v-40z",rightbrace:"M400000 542l\n-6 6h-17c-12.7 0-19.3-.3-20-1-4-4-7.3-8.3-10-13-35.3-51.3-80.8-93.8-136.5-127.5\ns-117.2-55.8-184.5-66.5c-.7 0-2-.3-4-1-18.7-2.7-76-4.3-172-5H0V214h399571l6 1\nc124.7 8 235 61.7 331 161 31.3 33.3 59.7 72.7 85 118l7 13v35z",rightbraceunder:"M399994 0l6 6v35l-6 11c-56 104-135.3 181.3-238 232-57.3\n 28.7-117 45-179 50H-300V214h399897c43.3-7 81-15 113-26 100.7-33 179.7-91 237\n-174 2.7-5 6-9 10-13 .7-1 7.3-1 20-1h17z",rightgroup:"M0 80h399565c371 0 266.7 149.4 414 180 5.9 1.2 18 0 18 0 2 0\n 3-1 3-3v-38c-76-158-257-219-435-219H0z",rightgroupunder:"M0 262h399565c371 0 266.7-149.4 414-180 5.9-1.2 18 0 18\n 0 2 0 3 1 3 3v38c-76 158-257 219-435 219H0z",rightharpoon:"M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3\n-3.7-15.3-11-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2\n-10.7 0-16.7 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58\n 69.2 92 94.5zm0 0v40h399900v-40z",rightharpoonplus:"M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3-3.7-15.3-11\n-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2-10.7 0-16.7\n 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58 69.2 92 94.5z\nm0 0v40h399900v-40z m100 194v40h399900v-40zm0 0v40h399900v-40z",rightharpoondown:"M399747 511c0 7.3 6.7 11 20 11 8 0 13-.8 15-2.5s4.7-6.8\n 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3 8.5-5.8 9.5\n-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3-64.7 57-92 95\n-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 241v40h399900v-40z",rightharpoondownplus:"M399747 705c0 7.3 6.7 11 20 11 8 0 13-.8\n 15-2.5s4.7-6.8 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3\n 8.5-5.8 9.5-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3\n-64.7 57-92 95-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 435v40h399900v-40z\nm0-194v40h400000v-40zm0 0v40h400000v-40z",righthook:"M399859 241c-764 0 0 0 0 0 40-3.3 68.7-15.7 86-37 10-12 15-25.3\n 15-40 0-22.7-9.8-40.7-29.5-54-19.7-13.3-43.5-21-71.5-23-17.3-1.3-26-8-26-20 0\n-13.3 8.7-20 26-20 38 0 71 11.2 99 33.5 0 0 7 5.6 21 16.7 14 11.2 21 33.5 21\n 66.8s-14 61.2-42 83.5c-28 22.3-61 33.5-99 33.5L0 241z M0 281v-40h399859v40z",rightlinesegment:"M399960 241 V94 h40 V428 h-40 V281 H0 v-40z\nM399960 241 V94 h40 V428 h-40 V281 H0 v-40z",rightToFrom:"M400000 167c-70.7-42-118-97.7-142-167h-23c-15.3 0-23 .3-23\n 1 0 1.3 5.3 13.7 16 37 18 35.3 41.3 69 70 101l7 8H0v40h399905l-7 8c-28.7 32\n-52 65.7-70 101-10.7 23.3-16 35.7-16 37 0 .7 7.7 1 23 1h23c24-69.3 71.3-125 142\n-167z M100 147v40h399900v-40zM0 341v40h399900v-40z",twoheadleftarrow:"M0 167c68 40\n 115.7 95.7 143 167h22c15.3 0 23-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69\n-70-101l-7-8h125l9 7c50.7 39.3 85 86 103 140h46c0-4.7-6.3-18.7-19-42-18-35.3\n-40-67.3-66-96l-9-9h399716v-40H284l9-9c26-28.7 48-60.7 66-96 12.7-23.333 19\n-37.333 19-42h-46c-18 54-52.3 100.7-103 140l-9 7H95l7-8c28.7-32 52-65.7 70-101\n 10.7-23.333 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 71.3 68 127 0 167z",twoheadrightarrow:"M400000 167\nc-68-40-115.7-95.7-143-167h-22c-15.3 0-23 .3-23 1 0 1.3 5.3 13.7 16 37 18 35.3\n 41.3 69 70 101l7 8h-125l-9-7c-50.7-39.3-85-86-103-140h-46c0 4.7 6.3 18.7 19 42\n 18 35.3 40 67.3 66 96l9 9H0v40h399716l-9 9c-26 28.7-48 60.7-66 96-12.7 23.333\n-19 37.333-19 42h46c18-54 52.3-100.7 103-140l9-7h125l-7 8c-28.7 32-52 65.7-70\n 101-10.7 23.333-16 35.7-16 37 0 .7 7.7 1 23 1h22c27.3-71.3 75-127 143-167z",tilde1:"M200 55.538c-77 0-168 73.953-177 73.953-3 0-7\n-2.175-9-5.437L2 97c-1-2-2-4-2-6 0-4 2-7 5-9l20-12C116 12 171 0 207 0c86 0\n 114 68 191 68 78 0 168-68 177-68 4 0 7 2 9 5l12 19c1 2.175 2 4.35 2 6.525 0\n 4.35-2 7.613-5 9.788l-19 13.05c-92 63.077-116.937 75.308-183 76.128\n-68.267.847-113-73.952-191-73.952z",tilde2:"M344 55.266c-142 0-300.638 81.316-311.5 86.418\n-8.01 3.762-22.5 10.91-23.5 5.562L1 120c-1-2-1-3-1-4 0-5 3-9 8-10l18.4-9C160.9\n 31.9 283 0 358 0c148 0 188 122 331 122s314-97 326-97c4 0 8 2 10 7l7 21.114\nc1 2.14 1 3.21 1 4.28 0 5.347-3 9.626-7 10.696l-22.3 12.622C852.6 158.372 751\n 181.476 676 181.476c-149 0-189-126.21-332-126.21z",tilde3:"M786 59C457 59 32 175.242 13 175.242c-6 0-10-3.457\n-11-10.37L.15 138c-1-7 3-12 10-13l19.2-6.4C378.4 40.7 634.3 0 804.3 0c337 0\n 411.8 157 746.8 157 328 0 754-112 773-112 5 0 10 3 11 9l1 14.075c1 8.066-.697\n 16.595-6.697 17.492l-21.052 7.31c-367.9 98.146-609.15 122.696-778.15 122.696\n -338 0-409-156.573-744-156.573z",tilde4:"M786 58C457 58 32 177.487 13 177.487c-6 0-10-3.345\n-11-10.035L.15 143c-1-7 3-12 10-13l22-6.7C381.2 35 637.15 0 807.15 0c337 0 409\n 177 744 177 328 0 754-127 773-127 5 0 10 3 11 9l1 14.794c1 7.805-3 13.38-9\n 14.495l-20.7 5.574c-366.85 99.79-607.3 139.372-776.3 139.372-338 0-409\n -175.236-744-175.236z",vec:"M377 20c0-5.333 1.833-10 5.5-14S391 0 397 0c4.667 0 8.667 1.667 12 5\n3.333 2.667 6.667 9 10 19 6.667 24.667 20.333 43.667 41 57 7.333 4.667 11\n10.667 11 18 0 6-1 10-3 12s-6.667 5-14 9c-28.667 14.667-53.667 35.667-75 63\n-1.333 1.333-3.167 3.5-5.5 6.5s-4 4.833-5 5.5c-1 .667-2.5 1.333-4.5 2s-4.333 1\n-7 1c-4.667 0-9.167-1.833-13.5-5.5S337 184 337 178c0-12.667 15.667-32.333 47-59\nH213l-171-1c-8.667-6-13-12.333-13-19 0-4.667 4.333-11.333 13-20h359\nc-16-25.333-24-45-24-59z",widehat1:"M529 0h5l519 115c5 1 9 5 9 10 0 1-1 2-1 3l-4 22\nc-1 5-5 9-11 9h-2L532 67 19 159h-2c-5 0-9-4-11-9l-5-22c-1-6 2-12 8-13z",widehat2:"M1181 0h2l1171 176c6 0 10 5 10 11l-2 23c-1 6-5 10\n-11 10h-1L1182 67 15 220h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z",widehat3:"M1181 0h2l1171 236c6 0 10 5 10 11l-2 23c-1 6-5 10\n-11 10h-1L1182 67 15 280h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z",widehat4:"M1181 0h2l1171 296c6 0 10 5 10 11l-2 23c-1 6-5 10\n-11 10h-1L1182 67 15 340h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z",widecheck1:"M529,159h5l519,-115c5,-1,9,-5,9,-10c0,-1,-1,-2,-1,-3l-4,-22c-1,\n-5,-5,-9,-11,-9h-2l-512,92l-513,-92h-2c-5,0,-9,4,-11,9l-5,22c-1,6,2,12,8,13z",widecheck2:"M1181,220h2l1171,-176c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,\n-11,-10h-1l-1168,153l-1167,-153h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z",widecheck3:"M1181,280h2l1171,-236c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,\n-11,-10h-1l-1168,213l-1167,-213h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z",widecheck4:"M1181,340h2l1171,-296c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,\n-11,-10h-1l-1168,273l-1167,-273h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z",baraboveleftarrow:"M400000 620h-399890l3 -3c68.7 -52.7 113.7 -120 135 -202\nc4 -14.7 6 -23 6 -25c0 -7.3 -7 -11 -21 -11c-8 0 -13.2 0.8 -15.5 2.5\nc-2.3 1.7 -4.2 5.8 -5.5 12.5c-1.3 4.7 -2.7 10.3 -4 17c-12 48.7 -34.8 92 -68.5 130\ns-74.2 66.3 -121.5 85c-10 4 -16 7.7 -18 11c0 8.7 6 14.3 18 17c47.3 18.7 87.8 47\n121.5 85s56.5 81.3 68.5 130c0.7 2 1.3 5 2 9s1.2 6.7 1.5 8c0.3 1.3 1 3.3 2 6\ns2.2 4.5 3.5 5.5c1.3 1 3.3 1.8 6 2.5s6 1 10 1c14 0 21 -3.7 21 -11\nc0 -2 -2 -10.3 -6 -25c-20 -79.3 -65 -146.7 -135 -202l-3 -3h399890z\nM100 620v40h399900v-40z M0 241v40h399900v-40zM0 241v40h399900v-40z",rightarrowabovebar:"M0 241v40h399891c-47.3 35.3-84 78-110 128-16.7 32\n-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20 11 8 0\n13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7 39\n-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85-40.5\n-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5\n-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67\n151.7 139 205zm96 379h399894v40H0zm0 0h399904v40H0z",baraboveshortleftharpoon:"M507,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11\nc1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17\nc2,0.7,5,1,9,1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21\nc-32,-87.3,-82.7,-157.7,-152,-211c0,0,-3,-3,-3,-3l399351,0l0,-40\nc-398570,0,-399437,0,-399437,0z M593 435 v40 H399500 v-40z\nM0 281 v-40 H399908 v40z M0 281 v-40 H399908 v40z",rightharpoonaboveshortbar:"M0,241 l0,40c399126,0,399993,0,399993,0\nc4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,\n-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6\nc-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z\nM0 241 v40 H399908 v-40z M0 475 v-40 H399500 v40z M0 475 v-40 H399500 v40z",shortbaraboveleftharpoon:"M7,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11\nc1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17c2,0.7,5,1,9,\n1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21c-32,-87.3,-82.7,-157.7,\n-152,-211c0,0,-3,-3,-3,-3l399907,0l0,-40c-399126,0,-399993,0,-399993,0z\nM93 435 v40 H400000 v-40z M500 241 v40 H400000 v-40z M500 241 v40 H400000 v-40z",shortrightharpoonabovebar:"M53,241l0,40c398570,0,399437,0,399437,0\nc4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,\n-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6\nc-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z\nM500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z"};class ie{constructor(e){this.children=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.children=e,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}hasClass(e){return C.contains(this.classes,e)}toNode(){var t=document.createDocumentFragment();for(let e=0;ee.toText()).join("")}}var ne={"AMS-Regular":{32:[0,0,0,0,.25],65:[0,.68889,0,0,.72222],66:[0,.68889,0,0,.66667],67:[0,.68889,0,0,.72222],68:[0,.68889,0,0,.72222],69:[0,.68889,0,0,.66667],70:[0,.68889,0,0,.61111],71:[0,.68889,0,0,.77778],72:[0,.68889,0,0,.77778],73:[0,.68889,0,0,.38889],74:[.16667,.68889,0,0,.5],75:[0,.68889,0,0,.77778],76:[0,.68889,0,0,.66667],77:[0,.68889,0,0,.94445],78:[0,.68889,0,0,.72222],79:[.16667,.68889,0,0,.77778],80:[0,.68889,0,0,.61111],81:[.16667,.68889,0,0,.77778],82:[0,.68889,0,0,.72222],83:[0,.68889,0,0,.55556],84:[0,.68889,0,0,.66667],85:[0,.68889,0,0,.72222],86:[0,.68889,0,0,.72222],87:[0,.68889,0,0,1],88:[0,.68889,0,0,.72222],89:[0,.68889,0,0,.72222],90:[0,.68889,0,0,.66667],107:[0,.68889,0,0,.55556],160:[0,0,0,0,.25],165:[0,.675,.025,0,.75],174:[.15559,.69224,0,0,.94666],240:[0,.68889,0,0,.55556],295:[0,.68889,0,0,.54028],710:[0,.825,0,0,2.33334],732:[0,.9,0,0,2.33334],770:[0,.825,0,0,2.33334],771:[0,.9,0,0,2.33334],989:[.08167,.58167,0,0,.77778],1008:[0,.43056,.04028,0,.66667],8245:[0,.54986,0,0,.275],8463:[0,.68889,0,0,.54028],8487:[0,.68889,0,0,.72222],8498:[0,.68889,0,0,.55556],8502:[0,.68889,0,0,.66667],8503:[0,.68889,0,0,.44445],8504:[0,.68889,0,0,.66667],8513:[0,.68889,0,0,.63889],8592:[-.03598,.46402,0,0,.5],8594:[-.03598,.46402,0,0,.5],8602:[-.13313,.36687,0,0,1],8603:[-.13313,.36687,0,0,1],8606:[.01354,.52239,0,0,1],8608:[.01354,.52239,0,0,1],8610:[.01354,.52239,0,0,1.11111],8611:[.01354,.52239,0,0,1.11111],8619:[0,.54986,0,0,1],8620:[0,.54986,0,0,1],8621:[-.13313,.37788,0,0,1.38889],8622:[-.13313,.36687,0,0,1],8624:[0,.69224,0,0,.5],8625:[0,.69224,0,0,.5],8630:[0,.43056,0,0,1],8631:[0,.43056,0,0,1],8634:[.08198,.58198,0,0,.77778],8635:[.08198,.58198,0,0,.77778],8638:[.19444,.69224,0,0,.41667],8639:[.19444,.69224,0,0,.41667],8642:[.19444,.69224,0,0,.41667],8643:[.19444,.69224,0,0,.41667],8644:[.1808,.675,0,0,1],8646:[.1808,.675,0,0,1],8647:[.1808,.675,0,0,1],8648:[.19444,.69224,0,0,.83334],8649:[.1808,.675,0,0,1],8650:[.19444,.69224,0,0,.83334],8651:[.01354,.52239,0,0,1],8652:[.01354,.52239,0,0,1],8653:[-.13313,.36687,0,0,1],8654:[-.13313,.36687,0,0,1],8655:[-.13313,.36687,0,0,1],8666:[.13667,.63667,0,0,1],8667:[.13667,.63667,0,0,1],8669:[-.13313,.37788,0,0,1],8672:[-.064,.437,0,0,1.334],8674:[-.064,.437,0,0,1.334],8705:[0,.825,0,0,.5],8708:[0,.68889,0,0,.55556],8709:[.08167,.58167,0,0,.77778],8717:[0,.43056,0,0,.42917],8722:[-.03598,.46402,0,0,.5],8724:[.08198,.69224,0,0,.77778],8726:[.08167,.58167,0,0,.77778],8733:[0,.69224,0,0,.77778],8736:[0,.69224,0,0,.72222],8737:[0,.69224,0,0,.72222],8738:[.03517,.52239,0,0,.72222],8739:[.08167,.58167,0,0,.22222],8740:[.25142,.74111,0,0,.27778],8741:[.08167,.58167,0,0,.38889],8742:[.25142,.74111,0,0,.5],8756:[0,.69224,0,0,.66667],8757:[0,.69224,0,0,.66667],8764:[-.13313,.36687,0,0,.77778],8765:[-.13313,.37788,0,0,.77778],8769:[-.13313,.36687,0,0,.77778],8770:[-.03625,.46375,0,0,.77778],8774:[.30274,.79383,0,0,.77778],8776:[-.01688,.48312,0,0,.77778],8778:[.08167,.58167,0,0,.77778],8782:[.06062,.54986,0,0,.77778],8783:[.06062,.54986,0,0,.77778],8785:[.08198,.58198,0,0,.77778],8786:[.08198,.58198,0,0,.77778],8787:[.08198,.58198,0,0,.77778],8790:[0,.69224,0,0,.77778],8791:[.22958,.72958,0,0,.77778],8796:[.08198,.91667,0,0,.77778],8806:[.25583,.75583,0,0,.77778],8807:[.25583,.75583,0,0,.77778],8808:[.25142,.75726,0,0,.77778],8809:[.25142,.75726,0,0,.77778],8812:[.25583,.75583,0,0,.5],8814:[.20576,.70576,0,0,.77778],8815:[.20576,.70576,0,0,.77778],8816:[.30274,.79383,0,0,.77778],8817:[.30274,.79383,0,0,.77778],8818:[.22958,.72958,0,0,.77778],8819:[.22958,.72958,0,0,.77778],8822:[.1808,.675,0,0,.77778],8823:[.1808,.675,0,0,.77778],8828:[.13667,.63667,0,0,.77778],8829:[.13667,.63667,0,0,.77778],8830:[.22958,.72958,0,0,.77778],8831:[.22958,.72958,0,0,.77778],8832:[.20576,.70576,0,0,.77778],8833:[.20576,.70576,0,0,.77778],8840:[.30274,.79383,0,0,.77778],8841:[.30274,.79383,0,0,.77778],8842:[.13597,.63597,0,0,.77778],8843:[.13597,.63597,0,0,.77778],8847:[.03517,.54986,0,0,.77778],8848:[.03517,.54986,0,0,.77778],8858:[.08198,.58198,0,0,.77778],8859:[.08198,.58198,0,0,.77778],8861:[.08198,.58198,0,0,.77778],8862:[0,.675,0,0,.77778],8863:[0,.675,0,0,.77778],8864:[0,.675,0,0,.77778],8865:[0,.675,0,0,.77778],8872:[0,.69224,0,0,.61111],8873:[0,.69224,0,0,.72222],8874:[0,.69224,0,0,.88889],8876:[0,.68889,0,0,.61111],8877:[0,.68889,0,0,.61111],8878:[0,.68889,0,0,.72222],8879:[0,.68889,0,0,.72222],8882:[.03517,.54986,0,0,.77778],8883:[.03517,.54986,0,0,.77778],8884:[.13667,.63667,0,0,.77778],8885:[.13667,.63667,0,0,.77778],8888:[0,.54986,0,0,1.11111],8890:[.19444,.43056,0,0,.55556],8891:[.19444,.69224,0,0,.61111],8892:[.19444,.69224,0,0,.61111],8901:[0,.54986,0,0,.27778],8903:[.08167,.58167,0,0,.77778],8905:[.08167,.58167,0,0,.77778],8906:[.08167,.58167,0,0,.77778],8907:[0,.69224,0,0,.77778],8908:[0,.69224,0,0,.77778],8909:[-.03598,.46402,0,0,.77778],8910:[0,.54986,0,0,.76042],8911:[0,.54986,0,0,.76042],8912:[.03517,.54986,0,0,.77778],8913:[.03517,.54986,0,0,.77778],8914:[0,.54986,0,0,.66667],8915:[0,.54986,0,0,.66667],8916:[0,.69224,0,0,.66667],8918:[.0391,.5391,0,0,.77778],8919:[.0391,.5391,0,0,.77778],8920:[.03517,.54986,0,0,1.33334],8921:[.03517,.54986,0,0,1.33334],8922:[.38569,.88569,0,0,.77778],8923:[.38569,.88569,0,0,.77778],8926:[.13667,.63667,0,0,.77778],8927:[.13667,.63667,0,0,.77778],8928:[.30274,.79383,0,0,.77778],8929:[.30274,.79383,0,0,.77778],8934:[.23222,.74111,0,0,.77778],8935:[.23222,.74111,0,0,.77778],8936:[.23222,.74111,0,0,.77778],8937:[.23222,.74111,0,0,.77778],8938:[.20576,.70576,0,0,.77778],8939:[.20576,.70576,0,0,.77778],8940:[.30274,.79383,0,0,.77778],8941:[.30274,.79383,0,0,.77778],8994:[.19444,.69224,0,0,.77778],8995:[.19444,.69224,0,0,.77778],9416:[.15559,.69224,0,0,.90222],9484:[0,.69224,0,0,.5],9488:[0,.69224,0,0,.5],9492:[0,.37788,0,0,.5],9496:[0,.37788,0,0,.5],9585:[.19444,.68889,0,0,.88889],9586:[.19444,.74111,0,0,.88889],9632:[0,.675,0,0,.77778],9633:[0,.675,0,0,.77778],9650:[0,.54986,0,0,.72222],9651:[0,.54986,0,0,.72222],9654:[.03517,.54986,0,0,.77778],9660:[0,.54986,0,0,.72222],9661:[0,.54986,0,0,.72222],9664:[.03517,.54986,0,0,.77778],9674:[.11111,.69224,0,0,.66667],9733:[.19444,.69224,0,0,.94445],10003:[0,.69224,0,0,.83334],10016:[0,.69224,0,0,.83334],10731:[.11111,.69224,0,0,.66667],10846:[.19444,.75583,0,0,.61111],10877:[.13667,.63667,0,0,.77778],10878:[.13667,.63667,0,0,.77778],10885:[.25583,.75583,0,0,.77778],10886:[.25583,.75583,0,0,.77778],10887:[.13597,.63597,0,0,.77778],10888:[.13597,.63597,0,0,.77778],10889:[.26167,.75726,0,0,.77778],10890:[.26167,.75726,0,0,.77778],10891:[.48256,.98256,0,0,.77778],10892:[.48256,.98256,0,0,.77778],10901:[.13667,.63667,0,0,.77778],10902:[.13667,.63667,0,0,.77778],10933:[.25142,.75726,0,0,.77778],10934:[.25142,.75726,0,0,.77778],10935:[.26167,.75726,0,0,.77778],10936:[.26167,.75726,0,0,.77778],10937:[.26167,.75726,0,0,.77778],10938:[.26167,.75726,0,0,.77778],10949:[.25583,.75583,0,0,.77778],10950:[.25583,.75583,0,0,.77778],10955:[.28481,.79383,0,0,.77778],10956:[.28481,.79383,0,0,.77778],57350:[.08167,.58167,0,0,.22222],57351:[.08167,.58167,0,0,.38889],57352:[.08167,.58167,0,0,.77778],57353:[0,.43056,.04028,0,.66667],57356:[.25142,.75726,0,0,.77778],57357:[.25142,.75726,0,0,.77778],57358:[.41951,.91951,0,0,.77778],57359:[.30274,.79383,0,0,.77778],57360:[.30274,.79383,0,0,.77778],57361:[.41951,.91951,0,0,.77778],57366:[.25142,.75726,0,0,.77778],57367:[.25142,.75726,0,0,.77778],57368:[.25142,.75726,0,0,.77778],57369:[.25142,.75726,0,0,.77778],57370:[.13597,.63597,0,0,.77778],57371:[.13597,.63597,0,0,.77778]},"Caligraphic-Regular":{32:[0,0,0,0,.25],65:[0,.68333,0,.19445,.79847],66:[0,.68333,.03041,.13889,.65681],67:[0,.68333,.05834,.13889,.52653],68:[0,.68333,.02778,.08334,.77139],69:[0,.68333,.08944,.11111,.52778],70:[0,.68333,.09931,.11111,.71875],71:[.09722,.68333,.0593,.11111,.59487],72:[0,.68333,.00965,.11111,.84452],73:[0,.68333,.07382,0,.54452],74:[.09722,.68333,.18472,.16667,.67778],75:[0,.68333,.01445,.05556,.76195],76:[0,.68333,0,.13889,.68972],77:[0,.68333,0,.13889,1.2009],78:[0,.68333,.14736,.08334,.82049],79:[0,.68333,.02778,.11111,.79611],80:[0,.68333,.08222,.08334,.69556],81:[.09722,.68333,0,.11111,.81667],82:[0,.68333,0,.08334,.8475],83:[0,.68333,.075,.13889,.60556],84:[0,.68333,.25417,0,.54464],85:[0,.68333,.09931,.08334,.62583],86:[0,.68333,.08222,0,.61278],87:[0,.68333,.08222,.08334,.98778],88:[0,.68333,.14643,.13889,.7133],89:[.09722,.68333,.08222,.08334,.66834],90:[0,.68333,.07944,.13889,.72473],160:[0,0,0,0,.25]},"Fraktur-Regular":{32:[0,0,0,0,.25],33:[0,.69141,0,0,.29574],34:[0,.69141,0,0,.21471],38:[0,.69141,0,0,.73786],39:[0,.69141,0,0,.21201],40:[.24982,.74947,0,0,.38865],41:[.24982,.74947,0,0,.38865],42:[0,.62119,0,0,.27764],43:[.08319,.58283,0,0,.75623],44:[0,.10803,0,0,.27764],45:[.08319,.58283,0,0,.75623],46:[0,.10803,0,0,.27764],47:[.24982,.74947,0,0,.50181],48:[0,.47534,0,0,.50181],49:[0,.47534,0,0,.50181],50:[0,.47534,0,0,.50181],51:[.18906,.47534,0,0,.50181],52:[.18906,.47534,0,0,.50181],53:[.18906,.47534,0,0,.50181],54:[0,.69141,0,0,.50181],55:[.18906,.47534,0,0,.50181],56:[0,.69141,0,0,.50181],57:[.18906,.47534,0,0,.50181],58:[0,.47534,0,0,.21606],59:[.12604,.47534,0,0,.21606],61:[-.13099,.36866,0,0,.75623],63:[0,.69141,0,0,.36245],65:[0,.69141,0,0,.7176],66:[0,.69141,0,0,.88397],67:[0,.69141,0,0,.61254],68:[0,.69141,0,0,.83158],69:[0,.69141,0,0,.66278],70:[.12604,.69141,0,0,.61119],71:[0,.69141,0,0,.78539],72:[.06302,.69141,0,0,.7203],73:[0,.69141,0,0,.55448],74:[.12604,.69141,0,0,.55231],75:[0,.69141,0,0,.66845],76:[0,.69141,0,0,.66602],77:[0,.69141,0,0,1.04953],78:[0,.69141,0,0,.83212],79:[0,.69141,0,0,.82699],80:[.18906,.69141,0,0,.82753],81:[.03781,.69141,0,0,.82699],82:[0,.69141,0,0,.82807],83:[0,.69141,0,0,.82861],84:[0,.69141,0,0,.66899],85:[0,.69141,0,0,.64576],86:[0,.69141,0,0,.83131],87:[0,.69141,0,0,1.04602],88:[0,.69141,0,0,.71922],89:[.18906,.69141,0,0,.83293],90:[.12604,.69141,0,0,.60201],91:[.24982,.74947,0,0,.27764],93:[.24982,.74947,0,0,.27764],94:[0,.69141,0,0,.49965],97:[0,.47534,0,0,.50046],98:[0,.69141,0,0,.51315],99:[0,.47534,0,0,.38946],100:[0,.62119,0,0,.49857],101:[0,.47534,0,0,.40053],102:[.18906,.69141,0,0,.32626],103:[.18906,.47534,0,0,.5037],104:[.18906,.69141,0,0,.52126],105:[0,.69141,0,0,.27899],106:[0,.69141,0,0,.28088],107:[0,.69141,0,0,.38946],108:[0,.69141,0,0,.27953],109:[0,.47534,0,0,.76676],110:[0,.47534,0,0,.52666],111:[0,.47534,0,0,.48885],112:[.18906,.52396,0,0,.50046],113:[.18906,.47534,0,0,.48912],114:[0,.47534,0,0,.38919],115:[0,.47534,0,0,.44266],116:[0,.62119,0,0,.33301],117:[0,.47534,0,0,.5172],118:[0,.52396,0,0,.5118],119:[0,.52396,0,0,.77351],120:[.18906,.47534,0,0,.38865],121:[.18906,.47534,0,0,.49884],122:[.18906,.47534,0,0,.39054],160:[0,0,0,0,.25],8216:[0,.69141,0,0,.21471],8217:[0,.69141,0,0,.21471],58112:[0,.62119,0,0,.49749],58113:[0,.62119,0,0,.4983],58114:[.18906,.69141,0,0,.33328],58115:[.18906,.69141,0,0,.32923],58116:[.18906,.47534,0,0,.50343],58117:[0,.69141,0,0,.33301],58118:[0,.62119,0,0,.33409],58119:[0,.47534,0,0,.50073]},"Main-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.35],34:[0,.69444,0,0,.60278],35:[.19444,.69444,0,0,.95833],36:[.05556,.75,0,0,.575],37:[.05556,.75,0,0,.95833],38:[0,.69444,0,0,.89444],39:[0,.69444,0,0,.31944],40:[.25,.75,0,0,.44722],41:[.25,.75,0,0,.44722],42:[0,.75,0,0,.575],43:[.13333,.63333,0,0,.89444],44:[.19444,.15556,0,0,.31944],45:[0,.44444,0,0,.38333],46:[0,.15556,0,0,.31944],47:[.25,.75,0,0,.575],48:[0,.64444,0,0,.575],49:[0,.64444,0,0,.575],50:[0,.64444,0,0,.575],51:[0,.64444,0,0,.575],52:[0,.64444,0,0,.575],53:[0,.64444,0,0,.575],54:[0,.64444,0,0,.575],55:[0,.64444,0,0,.575],56:[0,.64444,0,0,.575],57:[0,.64444,0,0,.575],58:[0,.44444,0,0,.31944],59:[.19444,.44444,0,0,.31944],60:[.08556,.58556,0,0,.89444],61:[-.10889,.39111,0,0,.89444],62:[.08556,.58556,0,0,.89444],63:[0,.69444,0,0,.54305],64:[0,.69444,0,0,.89444],65:[0,.68611,0,0,.86944],66:[0,.68611,0,0,.81805],67:[0,.68611,0,0,.83055],68:[0,.68611,0,0,.88194],69:[0,.68611,0,0,.75555],70:[0,.68611,0,0,.72361],71:[0,.68611,0,0,.90416],72:[0,.68611,0,0,.9],73:[0,.68611,0,0,.43611],74:[0,.68611,0,0,.59444],75:[0,.68611,0,0,.90138],76:[0,.68611,0,0,.69166],77:[0,.68611,0,0,1.09166],78:[0,.68611,0,0,.9],79:[0,.68611,0,0,.86388],80:[0,.68611,0,0,.78611],81:[.19444,.68611,0,0,.86388],82:[0,.68611,0,0,.8625],83:[0,.68611,0,0,.63889],84:[0,.68611,0,0,.8],85:[0,.68611,0,0,.88472],86:[0,.68611,.01597,0,.86944],87:[0,.68611,.01597,0,1.18888],88:[0,.68611,0,0,.86944],89:[0,.68611,.02875,0,.86944],90:[0,.68611,0,0,.70277],91:[.25,.75,0,0,.31944],92:[.25,.75,0,0,.575],93:[.25,.75,0,0,.31944],94:[0,.69444,0,0,.575],95:[.31,.13444,.03194,0,.575],97:[0,.44444,0,0,.55902],98:[0,.69444,0,0,.63889],99:[0,.44444,0,0,.51111],100:[0,.69444,0,0,.63889],101:[0,.44444,0,0,.52708],102:[0,.69444,.10903,0,.35139],103:[.19444,.44444,.01597,0,.575],104:[0,.69444,0,0,.63889],105:[0,.69444,0,0,.31944],106:[.19444,.69444,0,0,.35139],107:[0,.69444,0,0,.60694],108:[0,.69444,0,0,.31944],109:[0,.44444,0,0,.95833],110:[0,.44444,0,0,.63889],111:[0,.44444,0,0,.575],112:[.19444,.44444,0,0,.63889],113:[.19444,.44444,0,0,.60694],114:[0,.44444,0,0,.47361],115:[0,.44444,0,0,.45361],116:[0,.63492,0,0,.44722],117:[0,.44444,0,0,.63889],118:[0,.44444,.01597,0,.60694],119:[0,.44444,.01597,0,.83055],120:[0,.44444,0,0,.60694],121:[.19444,.44444,.01597,0,.60694],122:[0,.44444,0,0,.51111],123:[.25,.75,0,0,.575],124:[.25,.75,0,0,.31944],125:[.25,.75,0,0,.575],126:[.35,.34444,0,0,.575],160:[0,0,0,0,.25],163:[0,.69444,0,0,.86853],168:[0,.69444,0,0,.575],172:[0,.44444,0,0,.76666],176:[0,.69444,0,0,.86944],177:[.13333,.63333,0,0,.89444],184:[.17014,0,0,0,.51111],198:[0,.68611,0,0,1.04166],215:[.13333,.63333,0,0,.89444],216:[.04861,.73472,0,0,.89444],223:[0,.69444,0,0,.59722],230:[0,.44444,0,0,.83055],247:[.13333,.63333,0,0,.89444],248:[.09722,.54167,0,0,.575],305:[0,.44444,0,0,.31944],338:[0,.68611,0,0,1.16944],339:[0,.44444,0,0,.89444],567:[.19444,.44444,0,0,.35139],710:[0,.69444,0,0,.575],711:[0,.63194,0,0,.575],713:[0,.59611,0,0,.575],714:[0,.69444,0,0,.575],715:[0,.69444,0,0,.575],728:[0,.69444,0,0,.575],729:[0,.69444,0,0,.31944],730:[0,.69444,0,0,.86944],732:[0,.69444,0,0,.575],733:[0,.69444,0,0,.575],915:[0,.68611,0,0,.69166],916:[0,.68611,0,0,.95833],920:[0,.68611,0,0,.89444],923:[0,.68611,0,0,.80555],926:[0,.68611,0,0,.76666],928:[0,.68611,0,0,.9],931:[0,.68611,0,0,.83055],933:[0,.68611,0,0,.89444],934:[0,.68611,0,0,.83055],936:[0,.68611,0,0,.89444],937:[0,.68611,0,0,.83055],8211:[0,.44444,.03194,0,.575],8212:[0,.44444,.03194,0,1.14999],8216:[0,.69444,0,0,.31944],8217:[0,.69444,0,0,.31944],8220:[0,.69444,0,0,.60278],8221:[0,.69444,0,0,.60278],8224:[.19444,.69444,0,0,.51111],8225:[.19444,.69444,0,0,.51111],8242:[0,.55556,0,0,.34444],8407:[0,.72444,.15486,0,.575],8463:[0,.69444,0,0,.66759],8465:[0,.69444,0,0,.83055],8467:[0,.69444,0,0,.47361],8472:[.19444,.44444,0,0,.74027],8476:[0,.69444,0,0,.83055],8501:[0,.69444,0,0,.70277],8592:[-.10889,.39111,0,0,1.14999],8593:[.19444,.69444,0,0,.575],8594:[-.10889,.39111,0,0,1.14999],8595:[.19444,.69444,0,0,.575],8596:[-.10889,.39111,0,0,1.14999],8597:[.25,.75,0,0,.575],8598:[.19444,.69444,0,0,1.14999],8599:[.19444,.69444,0,0,1.14999],8600:[.19444,.69444,0,0,1.14999],8601:[.19444,.69444,0,0,1.14999],8636:[-.10889,.39111,0,0,1.14999],8637:[-.10889,.39111,0,0,1.14999],8640:[-.10889,.39111,0,0,1.14999],8641:[-.10889,.39111,0,0,1.14999],8656:[-.10889,.39111,0,0,1.14999],8657:[.19444,.69444,0,0,.70277],8658:[-.10889,.39111,0,0,1.14999],8659:[.19444,.69444,0,0,.70277],8660:[-.10889,.39111,0,0,1.14999],8661:[.25,.75,0,0,.70277],8704:[0,.69444,0,0,.63889],8706:[0,.69444,.06389,0,.62847],8707:[0,.69444,0,0,.63889],8709:[.05556,.75,0,0,.575],8711:[0,.68611,0,0,.95833],8712:[.08556,.58556,0,0,.76666],8715:[.08556,.58556,0,0,.76666],8722:[.13333,.63333,0,0,.89444],8723:[.13333,.63333,0,0,.89444],8725:[.25,.75,0,0,.575],8726:[.25,.75,0,0,.575],8727:[-.02778,.47222,0,0,.575],8728:[-.02639,.47361,0,0,.575],8729:[-.02639,.47361,0,0,.575],8730:[.18,.82,0,0,.95833],8733:[0,.44444,0,0,.89444],8734:[0,.44444,0,0,1.14999],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.31944],8741:[.25,.75,0,0,.575],8743:[0,.55556,0,0,.76666],8744:[0,.55556,0,0,.76666],8745:[0,.55556,0,0,.76666],8746:[0,.55556,0,0,.76666],8747:[.19444,.69444,.12778,0,.56875],8764:[-.10889,.39111,0,0,.89444],8768:[.19444,.69444,0,0,.31944],8771:[.00222,.50222,0,0,.89444],8773:[.027,.638,0,0,.894],8776:[.02444,.52444,0,0,.89444],8781:[.00222,.50222,0,0,.89444],8801:[.00222,.50222,0,0,.89444],8804:[.19667,.69667,0,0,.89444],8805:[.19667,.69667,0,0,.89444],8810:[.08556,.58556,0,0,1.14999],8811:[.08556,.58556,0,0,1.14999],8826:[.08556,.58556,0,0,.89444],8827:[.08556,.58556,0,0,.89444],8834:[.08556,.58556,0,0,.89444],8835:[.08556,.58556,0,0,.89444],8838:[.19667,.69667,0,0,.89444],8839:[.19667,.69667,0,0,.89444],8846:[0,.55556,0,0,.76666],8849:[.19667,.69667,0,0,.89444],8850:[.19667,.69667,0,0,.89444],8851:[0,.55556,0,0,.76666],8852:[0,.55556,0,0,.76666],8853:[.13333,.63333,0,0,.89444],8854:[.13333,.63333,0,0,.89444],8855:[.13333,.63333,0,0,.89444],8856:[.13333,.63333,0,0,.89444],8857:[.13333,.63333,0,0,.89444],8866:[0,.69444,0,0,.70277],8867:[0,.69444,0,0,.70277],8868:[0,.69444,0,0,.89444],8869:[0,.69444,0,0,.89444],8900:[-.02639,.47361,0,0,.575],8901:[-.02639,.47361,0,0,.31944],8902:[-.02778,.47222,0,0,.575],8968:[.25,.75,0,0,.51111],8969:[.25,.75,0,0,.51111],8970:[.25,.75,0,0,.51111],8971:[.25,.75,0,0,.51111],8994:[-.13889,.36111,0,0,1.14999],8995:[-.13889,.36111,0,0,1.14999],9651:[.19444,.69444,0,0,1.02222],9657:[-.02778,.47222,0,0,.575],9661:[.19444,.69444,0,0,1.02222],9667:[-.02778,.47222,0,0,.575],9711:[.19444,.69444,0,0,1.14999],9824:[.12963,.69444,0,0,.89444],9825:[.12963,.69444,0,0,.89444],9826:[.12963,.69444,0,0,.89444],9827:[.12963,.69444,0,0,.89444],9837:[0,.75,0,0,.44722],9838:[.19444,.69444,0,0,.44722],9839:[.19444,.69444,0,0,.44722],10216:[.25,.75,0,0,.44722],10217:[.25,.75,0,0,.44722],10815:[0,.68611,0,0,.9],10927:[.19667,.69667,0,0,.89444],10928:[.19667,.69667,0,0,.89444],57376:[.19444,.69444,0,0,0]},"Main-BoldItalic":{32:[0,0,0,0,.25],33:[0,.69444,.11417,0,.38611],34:[0,.69444,.07939,0,.62055],35:[.19444,.69444,.06833,0,.94444],37:[.05556,.75,.12861,0,.94444],38:[0,.69444,.08528,0,.88555],39:[0,.69444,.12945,0,.35555],40:[.25,.75,.15806,0,.47333],41:[.25,.75,.03306,0,.47333],42:[0,.75,.14333,0,.59111],43:[.10333,.60333,.03306,0,.88555],44:[.19444,.14722,0,0,.35555],45:[0,.44444,.02611,0,.41444],46:[0,.14722,0,0,.35555],47:[.25,.75,.15806,0,.59111],48:[0,.64444,.13167,0,.59111],49:[0,.64444,.13167,0,.59111],50:[0,.64444,.13167,0,.59111],51:[0,.64444,.13167,0,.59111],52:[.19444,.64444,.13167,0,.59111],53:[0,.64444,.13167,0,.59111],54:[0,.64444,.13167,0,.59111],55:[.19444,.64444,.13167,0,.59111],56:[0,.64444,.13167,0,.59111],57:[0,.64444,.13167,0,.59111],58:[0,.44444,.06695,0,.35555],59:[.19444,.44444,.06695,0,.35555],61:[-.10889,.39111,.06833,0,.88555],63:[0,.69444,.11472,0,.59111],64:[0,.69444,.09208,0,.88555],65:[0,.68611,0,0,.86555],66:[0,.68611,.0992,0,.81666],67:[0,.68611,.14208,0,.82666],68:[0,.68611,.09062,0,.87555],69:[0,.68611,.11431,0,.75666],70:[0,.68611,.12903,0,.72722],71:[0,.68611,.07347,0,.89527],72:[0,.68611,.17208,0,.8961],73:[0,.68611,.15681,0,.47166],74:[0,.68611,.145,0,.61055],75:[0,.68611,.14208,0,.89499],76:[0,.68611,0,0,.69777],77:[0,.68611,.17208,0,1.07277],78:[0,.68611,.17208,0,.8961],79:[0,.68611,.09062,0,.85499],80:[0,.68611,.0992,0,.78721],81:[.19444,.68611,.09062,0,.85499],82:[0,.68611,.02559,0,.85944],83:[0,.68611,.11264,0,.64999],84:[0,.68611,.12903,0,.7961],85:[0,.68611,.17208,0,.88083],86:[0,.68611,.18625,0,.86555],87:[0,.68611,.18625,0,1.15999],88:[0,.68611,.15681,0,.86555],89:[0,.68611,.19803,0,.86555],90:[0,.68611,.14208,0,.70888],91:[.25,.75,.1875,0,.35611],93:[.25,.75,.09972,0,.35611],94:[0,.69444,.06709,0,.59111],95:[.31,.13444,.09811,0,.59111],97:[0,.44444,.09426,0,.59111],98:[0,.69444,.07861,0,.53222],99:[0,.44444,.05222,0,.53222],100:[0,.69444,.10861,0,.59111],101:[0,.44444,.085,0,.53222],102:[.19444,.69444,.21778,0,.4],103:[.19444,.44444,.105,0,.53222],104:[0,.69444,.09426,0,.59111],105:[0,.69326,.11387,0,.35555],106:[.19444,.69326,.1672,0,.35555],107:[0,.69444,.11111,0,.53222],108:[0,.69444,.10861,0,.29666],109:[0,.44444,.09426,0,.94444],110:[0,.44444,.09426,0,.64999],111:[0,.44444,.07861,0,.59111],112:[.19444,.44444,.07861,0,.59111],113:[.19444,.44444,.105,0,.53222],114:[0,.44444,.11111,0,.50167],115:[0,.44444,.08167,0,.48694],116:[0,.63492,.09639,0,.385],117:[0,.44444,.09426,0,.62055],118:[0,.44444,.11111,0,.53222],119:[0,.44444,.11111,0,.76777],120:[0,.44444,.12583,0,.56055],121:[.19444,.44444,.105,0,.56166],122:[0,.44444,.13889,0,.49055],126:[.35,.34444,.11472,0,.59111],160:[0,0,0,0,.25],168:[0,.69444,.11473,0,.59111],176:[0,.69444,0,0,.94888],184:[.17014,0,0,0,.53222],198:[0,.68611,.11431,0,1.02277],216:[.04861,.73472,.09062,0,.88555],223:[.19444,.69444,.09736,0,.665],230:[0,.44444,.085,0,.82666],248:[.09722,.54167,.09458,0,.59111],305:[0,.44444,.09426,0,.35555],338:[0,.68611,.11431,0,1.14054],339:[0,.44444,.085,0,.82666],567:[.19444,.44444,.04611,0,.385],710:[0,.69444,.06709,0,.59111],711:[0,.63194,.08271,0,.59111],713:[0,.59444,.10444,0,.59111],714:[0,.69444,.08528,0,.59111],715:[0,.69444,0,0,.59111],728:[0,.69444,.10333,0,.59111],729:[0,.69444,.12945,0,.35555],730:[0,.69444,0,0,.94888],732:[0,.69444,.11472,0,.59111],733:[0,.69444,.11472,0,.59111],915:[0,.68611,.12903,0,.69777],916:[0,.68611,0,0,.94444],920:[0,.68611,.09062,0,.88555],923:[0,.68611,0,0,.80666],926:[0,.68611,.15092,0,.76777],928:[0,.68611,.17208,0,.8961],931:[0,.68611,.11431,0,.82666],933:[0,.68611,.10778,0,.88555],934:[0,.68611,.05632,0,.82666],936:[0,.68611,.10778,0,.88555],937:[0,.68611,.0992,0,.82666],8211:[0,.44444,.09811,0,.59111],8212:[0,.44444,.09811,0,1.18221],8216:[0,.69444,.12945,0,.35555],8217:[0,.69444,.12945,0,.35555],8220:[0,.69444,.16772,0,.62055],8221:[0,.69444,.07939,0,.62055]},"Main-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.12417,0,.30667],34:[0,.69444,.06961,0,.51444],35:[.19444,.69444,.06616,0,.81777],37:[.05556,.75,.13639,0,.81777],38:[0,.69444,.09694,0,.76666],39:[0,.69444,.12417,0,.30667],40:[.25,.75,.16194,0,.40889],41:[.25,.75,.03694,0,.40889],42:[0,.75,.14917,0,.51111],43:[.05667,.56167,.03694,0,.76666],44:[.19444,.10556,0,0,.30667],45:[0,.43056,.02826,0,.35778],46:[0,.10556,0,0,.30667],47:[.25,.75,.16194,0,.51111],48:[0,.64444,.13556,0,.51111],49:[0,.64444,.13556,0,.51111],50:[0,.64444,.13556,0,.51111],51:[0,.64444,.13556,0,.51111],52:[.19444,.64444,.13556,0,.51111],53:[0,.64444,.13556,0,.51111],54:[0,.64444,.13556,0,.51111],55:[.19444,.64444,.13556,0,.51111],56:[0,.64444,.13556,0,.51111],57:[0,.64444,.13556,0,.51111],58:[0,.43056,.0582,0,.30667],59:[.19444,.43056,.0582,0,.30667],61:[-.13313,.36687,.06616,0,.76666],63:[0,.69444,.1225,0,.51111],64:[0,.69444,.09597,0,.76666],65:[0,.68333,0,0,.74333],66:[0,.68333,.10257,0,.70389],67:[0,.68333,.14528,0,.71555],68:[0,.68333,.09403,0,.755],69:[0,.68333,.12028,0,.67833],70:[0,.68333,.13305,0,.65277],71:[0,.68333,.08722,0,.77361],72:[0,.68333,.16389,0,.74333],73:[0,.68333,.15806,0,.38555],74:[0,.68333,.14028,0,.525],75:[0,.68333,.14528,0,.76888],76:[0,.68333,0,0,.62722],77:[0,.68333,.16389,0,.89666],78:[0,.68333,.16389,0,.74333],79:[0,.68333,.09403,0,.76666],80:[0,.68333,.10257,0,.67833],81:[.19444,.68333,.09403,0,.76666],82:[0,.68333,.03868,0,.72944],83:[0,.68333,.11972,0,.56222],84:[0,.68333,.13305,0,.71555],85:[0,.68333,.16389,0,.74333],86:[0,.68333,.18361,0,.74333],87:[0,.68333,.18361,0,.99888],88:[0,.68333,.15806,0,.74333],89:[0,.68333,.19383,0,.74333],90:[0,.68333,.14528,0,.61333],91:[.25,.75,.1875,0,.30667],93:[.25,.75,.10528,0,.30667],94:[0,.69444,.06646,0,.51111],95:[.31,.12056,.09208,0,.51111],97:[0,.43056,.07671,0,.51111],98:[0,.69444,.06312,0,.46],99:[0,.43056,.05653,0,.46],100:[0,.69444,.10333,0,.51111],101:[0,.43056,.07514,0,.46],102:[.19444,.69444,.21194,0,.30667],103:[.19444,.43056,.08847,0,.46],104:[0,.69444,.07671,0,.51111],105:[0,.65536,.1019,0,.30667],106:[.19444,.65536,.14467,0,.30667],107:[0,.69444,.10764,0,.46],108:[0,.69444,.10333,0,.25555],109:[0,.43056,.07671,0,.81777],110:[0,.43056,.07671,0,.56222],111:[0,.43056,.06312,0,.51111],112:[.19444,.43056,.06312,0,.51111],113:[.19444,.43056,.08847,0,.46],114:[0,.43056,.10764,0,.42166],115:[0,.43056,.08208,0,.40889],116:[0,.61508,.09486,0,.33222],117:[0,.43056,.07671,0,.53666],118:[0,.43056,.10764,0,.46],119:[0,.43056,.10764,0,.66444],120:[0,.43056,.12042,0,.46389],121:[.19444,.43056,.08847,0,.48555],122:[0,.43056,.12292,0,.40889],126:[.35,.31786,.11585,0,.51111],160:[0,0,0,0,.25],168:[0,.66786,.10474,0,.51111],176:[0,.69444,0,0,.83129],184:[.17014,0,0,0,.46],198:[0,.68333,.12028,0,.88277],216:[.04861,.73194,.09403,0,.76666],223:[.19444,.69444,.10514,0,.53666],230:[0,.43056,.07514,0,.71555],248:[.09722,.52778,.09194,0,.51111],338:[0,.68333,.12028,0,.98499],339:[0,.43056,.07514,0,.71555],710:[0,.69444,.06646,0,.51111],711:[0,.62847,.08295,0,.51111],713:[0,.56167,.10333,0,.51111],714:[0,.69444,.09694,0,.51111],715:[0,.69444,0,0,.51111],728:[0,.69444,.10806,0,.51111],729:[0,.66786,.11752,0,.30667],730:[0,.69444,0,0,.83129],732:[0,.66786,.11585,0,.51111],733:[0,.69444,.1225,0,.51111],915:[0,.68333,.13305,0,.62722],916:[0,.68333,0,0,.81777],920:[0,.68333,.09403,0,.76666],923:[0,.68333,0,0,.69222],926:[0,.68333,.15294,0,.66444],928:[0,.68333,.16389,0,.74333],931:[0,.68333,.12028,0,.71555],933:[0,.68333,.11111,0,.76666],934:[0,.68333,.05986,0,.71555],936:[0,.68333,.11111,0,.76666],937:[0,.68333,.10257,0,.71555],8211:[0,.43056,.09208,0,.51111],8212:[0,.43056,.09208,0,1.02222],8216:[0,.69444,.12417,0,.30667],8217:[0,.69444,.12417,0,.30667],8220:[0,.69444,.1685,0,.51444],8221:[0,.69444,.06961,0,.51444],8463:[0,.68889,0,0,.54028]},"Main-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.27778],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.77778],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.19444,.10556,0,0,.27778],45:[0,.43056,0,0,.33333],46:[0,.10556,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.64444,0,0,.5],49:[0,.64444,0,0,.5],50:[0,.64444,0,0,.5],51:[0,.64444,0,0,.5],52:[0,.64444,0,0,.5],53:[0,.64444,0,0,.5],54:[0,.64444,0,0,.5],55:[0,.64444,0,0,.5],56:[0,.64444,0,0,.5],57:[0,.64444,0,0,.5],58:[0,.43056,0,0,.27778],59:[.19444,.43056,0,0,.27778],60:[.0391,.5391,0,0,.77778],61:[-.13313,.36687,0,0,.77778],62:[.0391,.5391,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.77778],65:[0,.68333,0,0,.75],66:[0,.68333,0,0,.70834],67:[0,.68333,0,0,.72222],68:[0,.68333,0,0,.76389],69:[0,.68333,0,0,.68056],70:[0,.68333,0,0,.65278],71:[0,.68333,0,0,.78472],72:[0,.68333,0,0,.75],73:[0,.68333,0,0,.36111],74:[0,.68333,0,0,.51389],75:[0,.68333,0,0,.77778],76:[0,.68333,0,0,.625],77:[0,.68333,0,0,.91667],78:[0,.68333,0,0,.75],79:[0,.68333,0,0,.77778],80:[0,.68333,0,0,.68056],81:[.19444,.68333,0,0,.77778],82:[0,.68333,0,0,.73611],83:[0,.68333,0,0,.55556],84:[0,.68333,0,0,.72222],85:[0,.68333,0,0,.75],86:[0,.68333,.01389,0,.75],87:[0,.68333,.01389,0,1.02778],88:[0,.68333,0,0,.75],89:[0,.68333,.025,0,.75],90:[0,.68333,0,0,.61111],91:[.25,.75,0,0,.27778],92:[.25,.75,0,0,.5],93:[.25,.75,0,0,.27778],94:[0,.69444,0,0,.5],95:[.31,.12056,.02778,0,.5],97:[0,.43056,0,0,.5],98:[0,.69444,0,0,.55556],99:[0,.43056,0,0,.44445],100:[0,.69444,0,0,.55556],101:[0,.43056,0,0,.44445],102:[0,.69444,.07778,0,.30556],103:[.19444,.43056,.01389,0,.5],104:[0,.69444,0,0,.55556],105:[0,.66786,0,0,.27778],106:[.19444,.66786,0,0,.30556],107:[0,.69444,0,0,.52778],108:[0,.69444,0,0,.27778],109:[0,.43056,0,0,.83334],110:[0,.43056,0,0,.55556],111:[0,.43056,0,0,.5],112:[.19444,.43056,0,0,.55556],113:[.19444,.43056,0,0,.52778],114:[0,.43056,0,0,.39167],115:[0,.43056,0,0,.39445],116:[0,.61508,0,0,.38889],117:[0,.43056,0,0,.55556],118:[0,.43056,.01389,0,.52778],119:[0,.43056,.01389,0,.72222],120:[0,.43056,0,0,.52778],121:[.19444,.43056,.01389,0,.52778],122:[0,.43056,0,0,.44445],123:[.25,.75,0,0,.5],124:[.25,.75,0,0,.27778],125:[.25,.75,0,0,.5],126:[.35,.31786,0,0,.5],160:[0,0,0,0,.25],163:[0,.69444,0,0,.76909],167:[.19444,.69444,0,0,.44445],168:[0,.66786,0,0,.5],172:[0,.43056,0,0,.66667],176:[0,.69444,0,0,.75],177:[.08333,.58333,0,0,.77778],182:[.19444,.69444,0,0,.61111],184:[.17014,0,0,0,.44445],198:[0,.68333,0,0,.90278],215:[.08333,.58333,0,0,.77778],216:[.04861,.73194,0,0,.77778],223:[0,.69444,0,0,.5],230:[0,.43056,0,0,.72222],247:[.08333,.58333,0,0,.77778],248:[.09722,.52778,0,0,.5],305:[0,.43056,0,0,.27778],338:[0,.68333,0,0,1.01389],339:[0,.43056,0,0,.77778],567:[.19444,.43056,0,0,.30556],710:[0,.69444,0,0,.5],711:[0,.62847,0,0,.5],713:[0,.56778,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.66786,0,0,.27778],730:[0,.69444,0,0,.75],732:[0,.66786,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.68333,0,0,.625],916:[0,.68333,0,0,.83334],920:[0,.68333,0,0,.77778],923:[0,.68333,0,0,.69445],926:[0,.68333,0,0,.66667],928:[0,.68333,0,0,.75],931:[0,.68333,0,0,.72222],933:[0,.68333,0,0,.77778],934:[0,.68333,0,0,.72222],936:[0,.68333,0,0,.77778],937:[0,.68333,0,0,.72222],8211:[0,.43056,.02778,0,.5],8212:[0,.43056,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5],8224:[.19444,.69444,0,0,.44445],8225:[.19444,.69444,0,0,.44445],8230:[0,.123,0,0,1.172],8242:[0,.55556,0,0,.275],8407:[0,.71444,.15382,0,.5],8463:[0,.68889,0,0,.54028],8465:[0,.69444,0,0,.72222],8467:[0,.69444,0,.11111,.41667],8472:[.19444,.43056,0,.11111,.63646],8476:[0,.69444,0,0,.72222],8501:[0,.69444,0,0,.61111],8592:[-.13313,.36687,0,0,1],8593:[.19444,.69444,0,0,.5],8594:[-.13313,.36687,0,0,1],8595:[.19444,.69444,0,0,.5],8596:[-.13313,.36687,0,0,1],8597:[.25,.75,0,0,.5],8598:[.19444,.69444,0,0,1],8599:[.19444,.69444,0,0,1],8600:[.19444,.69444,0,0,1],8601:[.19444,.69444,0,0,1],8614:[.011,.511,0,0,1],8617:[.011,.511,0,0,1.126],8618:[.011,.511,0,0,1.126],8636:[-.13313,.36687,0,0,1],8637:[-.13313,.36687,0,0,1],8640:[-.13313,.36687,0,0,1],8641:[-.13313,.36687,0,0,1],8652:[.011,.671,0,0,1],8656:[-.13313,.36687,0,0,1],8657:[.19444,.69444,0,0,.61111],8658:[-.13313,.36687,0,0,1],8659:[.19444,.69444,0,0,.61111],8660:[-.13313,.36687,0,0,1],8661:[.25,.75,0,0,.61111],8704:[0,.69444,0,0,.55556],8706:[0,.69444,.05556,.08334,.5309],8707:[0,.69444,0,0,.55556],8709:[.05556,.75,0,0,.5],8711:[0,.68333,0,0,.83334],8712:[.0391,.5391,0,0,.66667],8715:[.0391,.5391,0,0,.66667],8722:[.08333,.58333,0,0,.77778],8723:[.08333,.58333,0,0,.77778],8725:[.25,.75,0,0,.5],8726:[.25,.75,0,0,.5],8727:[-.03472,.46528,0,0,.5],8728:[-.05555,.44445,0,0,.5],8729:[-.05555,.44445,0,0,.5],8730:[.2,.8,0,0,.83334],8733:[0,.43056,0,0,.77778],8734:[0,.43056,0,0,1],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.27778],8741:[.25,.75,0,0,.5],8743:[0,.55556,0,0,.66667],8744:[0,.55556,0,0,.66667],8745:[0,.55556,0,0,.66667],8746:[0,.55556,0,0,.66667],8747:[.19444,.69444,.11111,0,.41667],8764:[-.13313,.36687,0,0,.77778],8768:[.19444,.69444,0,0,.27778],8771:[-.03625,.46375,0,0,.77778],8773:[-.022,.589,0,0,.778],8776:[-.01688,.48312,0,0,.77778],8781:[-.03625,.46375,0,0,.77778],8784:[-.133,.673,0,0,.778],8801:[-.03625,.46375,0,0,.77778],8804:[.13597,.63597,0,0,.77778],8805:[.13597,.63597,0,0,.77778],8810:[.0391,.5391,0,0,1],8811:[.0391,.5391,0,0,1],8826:[.0391,.5391,0,0,.77778],8827:[.0391,.5391,0,0,.77778],8834:[.0391,.5391,0,0,.77778],8835:[.0391,.5391,0,0,.77778],8838:[.13597,.63597,0,0,.77778],8839:[.13597,.63597,0,0,.77778],8846:[0,.55556,0,0,.66667],8849:[.13597,.63597,0,0,.77778],8850:[.13597,.63597,0,0,.77778],8851:[0,.55556,0,0,.66667],8852:[0,.55556,0,0,.66667],8853:[.08333,.58333,0,0,.77778],8854:[.08333,.58333,0,0,.77778],8855:[.08333,.58333,0,0,.77778],8856:[.08333,.58333,0,0,.77778],8857:[.08333,.58333,0,0,.77778],8866:[0,.69444,0,0,.61111],8867:[0,.69444,0,0,.61111],8868:[0,.69444,0,0,.77778],8869:[0,.69444,0,0,.77778],8872:[.249,.75,0,0,.867],8900:[-.05555,.44445,0,0,.5],8901:[-.05555,.44445,0,0,.27778],8902:[-.03472,.46528,0,0,.5],8904:[.005,.505,0,0,.9],8942:[.03,.903,0,0,.278],8943:[-.19,.313,0,0,1.172],8945:[-.1,.823,0,0,1.282],8968:[.25,.75,0,0,.44445],8969:[.25,.75,0,0,.44445],8970:[.25,.75,0,0,.44445],8971:[.25,.75,0,0,.44445],8994:[-.14236,.35764,0,0,1],8995:[-.14236,.35764,0,0,1],9136:[.244,.744,0,0,.412],9137:[.244,.745,0,0,.412],9651:[.19444,.69444,0,0,.88889],9657:[-.03472,.46528,0,0,.5],9661:[.19444,.69444,0,0,.88889],9667:[-.03472,.46528,0,0,.5],9711:[.19444,.69444,0,0,1],9824:[.12963,.69444,0,0,.77778],9825:[.12963,.69444,0,0,.77778],9826:[.12963,.69444,0,0,.77778],9827:[.12963,.69444,0,0,.77778],9837:[0,.75,0,0,.38889],9838:[.19444,.69444,0,0,.38889],9839:[.19444,.69444,0,0,.38889],10216:[.25,.75,0,0,.38889],10217:[.25,.75,0,0,.38889],10222:[.244,.744,0,0,.412],10223:[.244,.745,0,0,.412],10229:[.011,.511,0,0,1.609],10230:[.011,.511,0,0,1.638],10231:[.011,.511,0,0,1.859],10232:[.024,.525,0,0,1.609],10233:[.024,.525,0,0,1.638],10234:[.024,.525,0,0,1.858],10236:[.011,.511,0,0,1.638],10815:[0,.68333,0,0,.75],10927:[.13597,.63597,0,0,.77778],10928:[.13597,.63597,0,0,.77778],57376:[.19444,.69444,0,0,0]},"Math-BoldItalic":{32:[0,0,0,0,.25],48:[0,.44444,0,0,.575],49:[0,.44444,0,0,.575],50:[0,.44444,0,0,.575],51:[.19444,.44444,0,0,.575],52:[.19444,.44444,0,0,.575],53:[.19444,.44444,0,0,.575],54:[0,.64444,0,0,.575],55:[.19444,.44444,0,0,.575],56:[0,.64444,0,0,.575],57:[.19444,.44444,0,0,.575],65:[0,.68611,0,0,.86944],66:[0,.68611,.04835,0,.8664],67:[0,.68611,.06979,0,.81694],68:[0,.68611,.03194,0,.93812],69:[0,.68611,.05451,0,.81007],70:[0,.68611,.15972,0,.68889],71:[0,.68611,0,0,.88673],72:[0,.68611,.08229,0,.98229],73:[0,.68611,.07778,0,.51111],74:[0,.68611,.10069,0,.63125],75:[0,.68611,.06979,0,.97118],76:[0,.68611,0,0,.75555],77:[0,.68611,.11424,0,1.14201],78:[0,.68611,.11424,0,.95034],79:[0,.68611,.03194,0,.83666],80:[0,.68611,.15972,0,.72309],81:[.19444,.68611,0,0,.86861],82:[0,.68611,.00421,0,.87235],83:[0,.68611,.05382,0,.69271],84:[0,.68611,.15972,0,.63663],85:[0,.68611,.11424,0,.80027],86:[0,.68611,.25555,0,.67778],87:[0,.68611,.15972,0,1.09305],88:[0,.68611,.07778,0,.94722],89:[0,.68611,.25555,0,.67458],90:[0,.68611,.06979,0,.77257],97:[0,.44444,0,0,.63287],98:[0,.69444,0,0,.52083],99:[0,.44444,0,0,.51342],100:[0,.69444,0,0,.60972],101:[0,.44444,0,0,.55361],102:[.19444,.69444,.11042,0,.56806],103:[.19444,.44444,.03704,0,.5449],104:[0,.69444,0,0,.66759],105:[0,.69326,0,0,.4048],106:[.19444,.69326,.0622,0,.47083],107:[0,.69444,.01852,0,.6037],108:[0,.69444,.0088,0,.34815],109:[0,.44444,0,0,1.0324],110:[0,.44444,0,0,.71296],111:[0,.44444,0,0,.58472],112:[.19444,.44444,0,0,.60092],113:[.19444,.44444,.03704,0,.54213],114:[0,.44444,.03194,0,.5287],115:[0,.44444,0,0,.53125],116:[0,.63492,0,0,.41528],117:[0,.44444,0,0,.68102],118:[0,.44444,.03704,0,.56666],119:[0,.44444,.02778,0,.83148],120:[0,.44444,0,0,.65903],121:[.19444,.44444,.03704,0,.59028],122:[0,.44444,.04213,0,.55509],160:[0,0,0,0,.25],915:[0,.68611,.15972,0,.65694],916:[0,.68611,0,0,.95833],920:[0,.68611,.03194,0,.86722],923:[0,.68611,0,0,.80555],926:[0,.68611,.07458,0,.84125],928:[0,.68611,.08229,0,.98229],931:[0,.68611,.05451,0,.88507],933:[0,.68611,.15972,0,.67083],934:[0,.68611,0,0,.76666],936:[0,.68611,.11653,0,.71402],937:[0,.68611,.04835,0,.8789],945:[0,.44444,0,0,.76064],946:[.19444,.69444,.03403,0,.65972],947:[.19444,.44444,.06389,0,.59003],948:[0,.69444,.03819,0,.52222],949:[0,.44444,0,0,.52882],950:[.19444,.69444,.06215,0,.50833],951:[.19444,.44444,.03704,0,.6],952:[0,.69444,.03194,0,.5618],953:[0,.44444,0,0,.41204],954:[0,.44444,0,0,.66759],955:[0,.69444,0,0,.67083],956:[.19444,.44444,0,0,.70787],957:[0,.44444,.06898,0,.57685],958:[.19444,.69444,.03021,0,.50833],959:[0,.44444,0,0,.58472],960:[0,.44444,.03704,0,.68241],961:[.19444,.44444,0,0,.6118],962:[.09722,.44444,.07917,0,.42361],963:[0,.44444,.03704,0,.68588],964:[0,.44444,.13472,0,.52083],965:[0,.44444,.03704,0,.63055],966:[.19444,.44444,0,0,.74722],967:[.19444,.44444,0,0,.71805],968:[.19444,.69444,.03704,0,.75833],969:[0,.44444,.03704,0,.71782],977:[0,.69444,0,0,.69155],981:[.19444,.69444,0,0,.7125],982:[0,.44444,.03194,0,.975],1009:[.19444,.44444,0,0,.6118],1013:[0,.44444,0,0,.48333],57649:[0,.44444,0,0,.39352],57911:[.19444,.44444,0,0,.43889]},"Math-Italic":{32:[0,0,0,0,.25],48:[0,.43056,0,0,.5],49:[0,.43056,0,0,.5],50:[0,.43056,0,0,.5],51:[.19444,.43056,0,0,.5],52:[.19444,.43056,0,0,.5],53:[.19444,.43056,0,0,.5],54:[0,.64444,0,0,.5],55:[.19444,.43056,0,0,.5],56:[0,.64444,0,0,.5],57:[.19444,.43056,0,0,.5],65:[0,.68333,0,.13889,.75],66:[0,.68333,.05017,.08334,.75851],67:[0,.68333,.07153,.08334,.71472],68:[0,.68333,.02778,.05556,.82792],69:[0,.68333,.05764,.08334,.7382],70:[0,.68333,.13889,.08334,.64306],71:[0,.68333,0,.08334,.78625],72:[0,.68333,.08125,.05556,.83125],73:[0,.68333,.07847,.11111,.43958],74:[0,.68333,.09618,.16667,.55451],75:[0,.68333,.07153,.05556,.84931],76:[0,.68333,0,.02778,.68056],77:[0,.68333,.10903,.08334,.97014],78:[0,.68333,.10903,.08334,.80347],79:[0,.68333,.02778,.08334,.76278],80:[0,.68333,.13889,.08334,.64201],81:[.19444,.68333,0,.08334,.79056],82:[0,.68333,.00773,.08334,.75929],83:[0,.68333,.05764,.08334,.6132],84:[0,.68333,.13889,.08334,.58438],85:[0,.68333,.10903,.02778,.68278],86:[0,.68333,.22222,0,.58333],87:[0,.68333,.13889,0,.94445],88:[0,.68333,.07847,.08334,.82847],89:[0,.68333,.22222,0,.58056],90:[0,.68333,.07153,.08334,.68264],97:[0,.43056,0,0,.52859],98:[0,.69444,0,0,.42917],99:[0,.43056,0,.05556,.43276],100:[0,.69444,0,.16667,.52049],101:[0,.43056,0,.05556,.46563],102:[.19444,.69444,.10764,.16667,.48959],103:[.19444,.43056,.03588,.02778,.47697],104:[0,.69444,0,0,.57616],105:[0,.65952,0,0,.34451],106:[.19444,.65952,.05724,0,.41181],107:[0,.69444,.03148,0,.5206],108:[0,.69444,.01968,.08334,.29838],109:[0,.43056,0,0,.87801],110:[0,.43056,0,0,.60023],111:[0,.43056,0,.05556,.48472],112:[.19444,.43056,0,.08334,.50313],113:[.19444,.43056,.03588,.08334,.44641],114:[0,.43056,.02778,.05556,.45116],115:[0,.43056,0,.05556,.46875],116:[0,.61508,0,.08334,.36111],117:[0,.43056,0,.02778,.57246],118:[0,.43056,.03588,.02778,.48472],119:[0,.43056,.02691,.08334,.71592],120:[0,.43056,0,.02778,.57153],121:[.19444,.43056,.03588,.05556,.49028],122:[0,.43056,.04398,.05556,.46505],160:[0,0,0,0,.25],915:[0,.68333,.13889,.08334,.61528],916:[0,.68333,0,.16667,.83334],920:[0,.68333,.02778,.08334,.76278],923:[0,.68333,0,.16667,.69445],926:[0,.68333,.07569,.08334,.74236],928:[0,.68333,.08125,.05556,.83125],931:[0,.68333,.05764,.08334,.77986],933:[0,.68333,.13889,.05556,.58333],934:[0,.68333,0,.08334,.66667],936:[0,.68333,.11,.05556,.61222],937:[0,.68333,.05017,.08334,.7724],945:[0,.43056,.0037,.02778,.6397],946:[.19444,.69444,.05278,.08334,.56563],947:[.19444,.43056,.05556,0,.51773],948:[0,.69444,.03785,.05556,.44444],949:[0,.43056,0,.08334,.46632],950:[.19444,.69444,.07378,.08334,.4375],951:[.19444,.43056,.03588,.05556,.49653],952:[0,.69444,.02778,.08334,.46944],953:[0,.43056,0,.05556,.35394],954:[0,.43056,0,0,.57616],955:[0,.69444,0,0,.58334],956:[.19444,.43056,0,.02778,.60255],957:[0,.43056,.06366,.02778,.49398],958:[.19444,.69444,.04601,.11111,.4375],959:[0,.43056,0,.05556,.48472],960:[0,.43056,.03588,0,.57003],961:[.19444,.43056,0,.08334,.51702],962:[.09722,.43056,.07986,.08334,.36285],963:[0,.43056,.03588,0,.57141],964:[0,.43056,.1132,.02778,.43715],965:[0,.43056,.03588,.02778,.54028],966:[.19444,.43056,0,.08334,.65417],967:[.19444,.43056,0,.05556,.62569],968:[.19444,.69444,.03588,.11111,.65139],969:[0,.43056,.03588,0,.62245],977:[0,.69444,0,.08334,.59144],981:[.19444,.69444,0,.08334,.59583],982:[0,.43056,.02778,0,.82813],1009:[.19444,.43056,0,.08334,.51702],1013:[0,.43056,0,.05556,.4059],57649:[0,.43056,0,.02778,.32246],57911:[.19444,.43056,0,.08334,.38403]},"SansSerif-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.36667],34:[0,.69444,0,0,.55834],35:[.19444,.69444,0,0,.91667],36:[.05556,.75,0,0,.55],37:[.05556,.75,0,0,1.02912],38:[0,.69444,0,0,.83056],39:[0,.69444,0,0,.30556],40:[.25,.75,0,0,.42778],41:[.25,.75,0,0,.42778],42:[0,.75,0,0,.55],43:[.11667,.61667,0,0,.85556],44:[.10556,.13056,0,0,.30556],45:[0,.45833,0,0,.36667],46:[0,.13056,0,0,.30556],47:[.25,.75,0,0,.55],48:[0,.69444,0,0,.55],49:[0,.69444,0,0,.55],50:[0,.69444,0,0,.55],51:[0,.69444,0,0,.55],52:[0,.69444,0,0,.55],53:[0,.69444,0,0,.55],54:[0,.69444,0,0,.55],55:[0,.69444,0,0,.55],56:[0,.69444,0,0,.55],57:[0,.69444,0,0,.55],58:[0,.45833,0,0,.30556],59:[.10556,.45833,0,0,.30556],61:[-.09375,.40625,0,0,.85556],63:[0,.69444,0,0,.51945],64:[0,.69444,0,0,.73334],65:[0,.69444,0,0,.73334],66:[0,.69444,0,0,.73334],67:[0,.69444,0,0,.70278],68:[0,.69444,0,0,.79445],69:[0,.69444,0,0,.64167],70:[0,.69444,0,0,.61111],71:[0,.69444,0,0,.73334],72:[0,.69444,0,0,.79445],73:[0,.69444,0,0,.33056],74:[0,.69444,0,0,.51945],75:[0,.69444,0,0,.76389],76:[0,.69444,0,0,.58056],77:[0,.69444,0,0,.97778],78:[0,.69444,0,0,.79445],79:[0,.69444,0,0,.79445],80:[0,.69444,0,0,.70278],81:[.10556,.69444,0,0,.79445],82:[0,.69444,0,0,.70278],83:[0,.69444,0,0,.61111],84:[0,.69444,0,0,.73334],85:[0,.69444,0,0,.76389],86:[0,.69444,.01528,0,.73334],87:[0,.69444,.01528,0,1.03889],88:[0,.69444,0,0,.73334],89:[0,.69444,.0275,0,.73334],90:[0,.69444,0,0,.67223],91:[.25,.75,0,0,.34306],93:[.25,.75,0,0,.34306],94:[0,.69444,0,0,.55],95:[.35,.10833,.03056,0,.55],97:[0,.45833,0,0,.525],98:[0,.69444,0,0,.56111],99:[0,.45833,0,0,.48889],100:[0,.69444,0,0,.56111],101:[0,.45833,0,0,.51111],102:[0,.69444,.07639,0,.33611],103:[.19444,.45833,.01528,0,.55],104:[0,.69444,0,0,.56111],105:[0,.69444,0,0,.25556],106:[.19444,.69444,0,0,.28611],107:[0,.69444,0,0,.53056],108:[0,.69444,0,0,.25556],109:[0,.45833,0,0,.86667],110:[0,.45833,0,0,.56111],111:[0,.45833,0,0,.55],112:[.19444,.45833,0,0,.56111],113:[.19444,.45833,0,0,.56111],114:[0,.45833,.01528,0,.37222],115:[0,.45833,0,0,.42167],116:[0,.58929,0,0,.40417],117:[0,.45833,0,0,.56111],118:[0,.45833,.01528,0,.5],119:[0,.45833,.01528,0,.74445],120:[0,.45833,0,0,.5],121:[.19444,.45833,.01528,0,.5],122:[0,.45833,0,0,.47639],126:[.35,.34444,0,0,.55],160:[0,0,0,0,.25],168:[0,.69444,0,0,.55],176:[0,.69444,0,0,.73334],180:[0,.69444,0,0,.55],184:[.17014,0,0,0,.48889],305:[0,.45833,0,0,.25556],567:[.19444,.45833,0,0,.28611],710:[0,.69444,0,0,.55],711:[0,.63542,0,0,.55],713:[0,.63778,0,0,.55],728:[0,.69444,0,0,.55],729:[0,.69444,0,0,.30556],730:[0,.69444,0,0,.73334],732:[0,.69444,0,0,.55],733:[0,.69444,0,0,.55],915:[0,.69444,0,0,.58056],916:[0,.69444,0,0,.91667],920:[0,.69444,0,0,.85556],923:[0,.69444,0,0,.67223],926:[0,.69444,0,0,.73334],928:[0,.69444,0,0,.79445],931:[0,.69444,0,0,.79445],933:[0,.69444,0,0,.85556],934:[0,.69444,0,0,.79445],936:[0,.69444,0,0,.85556],937:[0,.69444,0,0,.79445],8211:[0,.45833,.03056,0,.55],8212:[0,.45833,.03056,0,1.10001],8216:[0,.69444,0,0,.30556],8217:[0,.69444,0,0,.30556],8220:[0,.69444,0,0,.55834],8221:[0,.69444,0,0,.55834]},"SansSerif-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.05733,0,.31945],34:[0,.69444,.00316,0,.5],35:[.19444,.69444,.05087,0,.83334],36:[.05556,.75,.11156,0,.5],37:[.05556,.75,.03126,0,.83334],38:[0,.69444,.03058,0,.75834],39:[0,.69444,.07816,0,.27778],40:[.25,.75,.13164,0,.38889],41:[.25,.75,.02536,0,.38889],42:[0,.75,.11775,0,.5],43:[.08333,.58333,.02536,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,.01946,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,.13164,0,.5],48:[0,.65556,.11156,0,.5],49:[0,.65556,.11156,0,.5],50:[0,.65556,.11156,0,.5],51:[0,.65556,.11156,0,.5],52:[0,.65556,.11156,0,.5],53:[0,.65556,.11156,0,.5],54:[0,.65556,.11156,0,.5],55:[0,.65556,.11156,0,.5],56:[0,.65556,.11156,0,.5],57:[0,.65556,.11156,0,.5],58:[0,.44444,.02502,0,.27778],59:[.125,.44444,.02502,0,.27778],61:[-.13,.37,.05087,0,.77778],63:[0,.69444,.11809,0,.47222],64:[0,.69444,.07555,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,.08293,0,.66667],67:[0,.69444,.11983,0,.63889],68:[0,.69444,.07555,0,.72223],69:[0,.69444,.11983,0,.59722],70:[0,.69444,.13372,0,.56945],71:[0,.69444,.11983,0,.66667],72:[0,.69444,.08094,0,.70834],73:[0,.69444,.13372,0,.27778],74:[0,.69444,.08094,0,.47222],75:[0,.69444,.11983,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,.08094,0,.875],78:[0,.69444,.08094,0,.70834],79:[0,.69444,.07555,0,.73611],80:[0,.69444,.08293,0,.63889],81:[.125,.69444,.07555,0,.73611],82:[0,.69444,.08293,0,.64584],83:[0,.69444,.09205,0,.55556],84:[0,.69444,.13372,0,.68056],85:[0,.69444,.08094,0,.6875],86:[0,.69444,.1615,0,.66667],87:[0,.69444,.1615,0,.94445],88:[0,.69444,.13372,0,.66667],89:[0,.69444,.17261,0,.66667],90:[0,.69444,.11983,0,.61111],91:[.25,.75,.15942,0,.28889],93:[.25,.75,.08719,0,.28889],94:[0,.69444,.0799,0,.5],95:[.35,.09444,.08616,0,.5],97:[0,.44444,.00981,0,.48056],98:[0,.69444,.03057,0,.51667],99:[0,.44444,.08336,0,.44445],100:[0,.69444,.09483,0,.51667],101:[0,.44444,.06778,0,.44445],102:[0,.69444,.21705,0,.30556],103:[.19444,.44444,.10836,0,.5],104:[0,.69444,.01778,0,.51667],105:[0,.67937,.09718,0,.23889],106:[.19444,.67937,.09162,0,.26667],107:[0,.69444,.08336,0,.48889],108:[0,.69444,.09483,0,.23889],109:[0,.44444,.01778,0,.79445],110:[0,.44444,.01778,0,.51667],111:[0,.44444,.06613,0,.5],112:[.19444,.44444,.0389,0,.51667],113:[.19444,.44444,.04169,0,.51667],114:[0,.44444,.10836,0,.34167],115:[0,.44444,.0778,0,.38333],116:[0,.57143,.07225,0,.36111],117:[0,.44444,.04169,0,.51667],118:[0,.44444,.10836,0,.46111],119:[0,.44444,.10836,0,.68334],120:[0,.44444,.09169,0,.46111],121:[.19444,.44444,.10836,0,.46111],122:[0,.44444,.08752,0,.43472],126:[.35,.32659,.08826,0,.5],160:[0,0,0,0,.25],168:[0,.67937,.06385,0,.5],176:[0,.69444,0,0,.73752],184:[.17014,0,0,0,.44445],305:[0,.44444,.04169,0,.23889],567:[.19444,.44444,.04169,0,.26667],710:[0,.69444,.0799,0,.5],711:[0,.63194,.08432,0,.5],713:[0,.60889,.08776,0,.5],714:[0,.69444,.09205,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,.09483,0,.5],729:[0,.67937,.07774,0,.27778],730:[0,.69444,0,0,.73752],732:[0,.67659,.08826,0,.5],733:[0,.69444,.09205,0,.5],915:[0,.69444,.13372,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,.07555,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,.12816,0,.66667],928:[0,.69444,.08094,0,.70834],931:[0,.69444,.11983,0,.72222],933:[0,.69444,.09031,0,.77778],934:[0,.69444,.04603,0,.72222],936:[0,.69444,.09031,0,.77778],937:[0,.69444,.08293,0,.72222],8211:[0,.44444,.08616,0,.5],8212:[0,.44444,.08616,0,1],8216:[0,.69444,.07816,0,.27778],8217:[0,.69444,.07816,0,.27778],8220:[0,.69444,.14205,0,.5],8221:[0,.69444,.00316,0,.5]},"SansSerif-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.31945],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.75834],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,0,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.65556,0,0,.5],49:[0,.65556,0,0,.5],50:[0,.65556,0,0,.5],51:[0,.65556,0,0,.5],52:[0,.65556,0,0,.5],53:[0,.65556,0,0,.5],54:[0,.65556,0,0,.5],55:[0,.65556,0,0,.5],56:[0,.65556,0,0,.5],57:[0,.65556,0,0,.5],58:[0,.44444,0,0,.27778],59:[.125,.44444,0,0,.27778],61:[-.13,.37,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,0,0,.66667],67:[0,.69444,0,0,.63889],68:[0,.69444,0,0,.72223],69:[0,.69444,0,0,.59722],70:[0,.69444,0,0,.56945],71:[0,.69444,0,0,.66667],72:[0,.69444,0,0,.70834],73:[0,.69444,0,0,.27778],74:[0,.69444,0,0,.47222],75:[0,.69444,0,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,0,0,.875],78:[0,.69444,0,0,.70834],79:[0,.69444,0,0,.73611],80:[0,.69444,0,0,.63889],81:[.125,.69444,0,0,.73611],82:[0,.69444,0,0,.64584],83:[0,.69444,0,0,.55556],84:[0,.69444,0,0,.68056],85:[0,.69444,0,0,.6875],86:[0,.69444,.01389,0,.66667],87:[0,.69444,.01389,0,.94445],88:[0,.69444,0,0,.66667],89:[0,.69444,.025,0,.66667],90:[0,.69444,0,0,.61111],91:[.25,.75,0,0,.28889],93:[.25,.75,0,0,.28889],94:[0,.69444,0,0,.5],95:[.35,.09444,.02778,0,.5],97:[0,.44444,0,0,.48056],98:[0,.69444,0,0,.51667],99:[0,.44444,0,0,.44445],100:[0,.69444,0,0,.51667],101:[0,.44444,0,0,.44445],102:[0,.69444,.06944,0,.30556],103:[.19444,.44444,.01389,0,.5],104:[0,.69444,0,0,.51667],105:[0,.67937,0,0,.23889],106:[.19444,.67937,0,0,.26667],107:[0,.69444,0,0,.48889],108:[0,.69444,0,0,.23889],109:[0,.44444,0,0,.79445],110:[0,.44444,0,0,.51667],111:[0,.44444,0,0,.5],112:[.19444,.44444,0,0,.51667],113:[.19444,.44444,0,0,.51667],114:[0,.44444,.01389,0,.34167],115:[0,.44444,0,0,.38333],116:[0,.57143,0,0,.36111],117:[0,.44444,0,0,.51667],118:[0,.44444,.01389,0,.46111],119:[0,.44444,.01389,0,.68334],120:[0,.44444,0,0,.46111],121:[.19444,.44444,.01389,0,.46111],122:[0,.44444,0,0,.43472],126:[.35,.32659,0,0,.5],160:[0,0,0,0,.25],168:[0,.67937,0,0,.5],176:[0,.69444,0,0,.66667],184:[.17014,0,0,0,.44445],305:[0,.44444,0,0,.23889],567:[.19444,.44444,0,0,.26667],710:[0,.69444,0,0,.5],711:[0,.63194,0,0,.5],713:[0,.60889,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.67937,0,0,.27778],730:[0,.69444,0,0,.66667],732:[0,.67659,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.69444,0,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,0,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,0,0,.66667],928:[0,.69444,0,0,.70834],931:[0,.69444,0,0,.72222],933:[0,.69444,0,0,.77778],934:[0,.69444,0,0,.72222],936:[0,.69444,0,0,.77778],937:[0,.69444,0,0,.72222],8211:[0,.44444,.02778,0,.5],8212:[0,.44444,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5]},"Script-Regular":{32:[0,0,0,0,.25],65:[0,.7,.22925,0,.80253],66:[0,.7,.04087,0,.90757],67:[0,.7,.1689,0,.66619],68:[0,.7,.09371,0,.77443],69:[0,.7,.18583,0,.56162],70:[0,.7,.13634,0,.89544],71:[0,.7,.17322,0,.60961],72:[0,.7,.29694,0,.96919],73:[0,.7,.19189,0,.80907],74:[.27778,.7,.19189,0,1.05159],75:[0,.7,.31259,0,.91364],76:[0,.7,.19189,0,.87373],77:[0,.7,.15981,0,1.08031],78:[0,.7,.3525,0,.9015],79:[0,.7,.08078,0,.73787],80:[0,.7,.08078,0,1.01262],81:[0,.7,.03305,0,.88282],82:[0,.7,.06259,0,.85],83:[0,.7,.19189,0,.86767],84:[0,.7,.29087,0,.74697],85:[0,.7,.25815,0,.79996],86:[0,.7,.27523,0,.62204],87:[0,.7,.27523,0,.80532],88:[0,.7,.26006,0,.94445],89:[0,.7,.2939,0,.70961],90:[0,.7,.24037,0,.8212],160:[0,0,0,0,.25]},"Size1-Regular":{32:[0,0,0,0,.25],40:[.35001,.85,0,0,.45834],41:[.35001,.85,0,0,.45834],47:[.35001,.85,0,0,.57778],91:[.35001,.85,0,0,.41667],92:[.35001,.85,0,0,.57778],93:[.35001,.85,0,0,.41667],123:[.35001,.85,0,0,.58334],125:[.35001,.85,0,0,.58334],160:[0,0,0,0,.25],710:[0,.72222,0,0,.55556],732:[0,.72222,0,0,.55556],770:[0,.72222,0,0,.55556],771:[0,.72222,0,0,.55556],8214:[-99e-5,.601,0,0,.77778],8593:[1e-5,.6,0,0,.66667],8595:[1e-5,.6,0,0,.66667],8657:[1e-5,.6,0,0,.77778],8659:[1e-5,.6,0,0,.77778],8719:[.25001,.75,0,0,.94445],8720:[.25001,.75,0,0,.94445],8721:[.25001,.75,0,0,1.05556],8730:[.35001,.85,0,0,1],8739:[-.00599,.606,0,0,.33333],8741:[-.00599,.606,0,0,.55556],8747:[.30612,.805,.19445,0,.47222],8748:[.306,.805,.19445,0,.47222],8749:[.306,.805,.19445,0,.47222],8750:[.30612,.805,.19445,0,.47222],8896:[.25001,.75,0,0,.83334],8897:[.25001,.75,0,0,.83334],8898:[.25001,.75,0,0,.83334],8899:[.25001,.75,0,0,.83334],8968:[.35001,.85,0,0,.47222],8969:[.35001,.85,0,0,.47222],8970:[.35001,.85,0,0,.47222],8971:[.35001,.85,0,0,.47222],9168:[-99e-5,.601,0,0,.66667],10216:[.35001,.85,0,0,.47222],10217:[.35001,.85,0,0,.47222],10752:[.25001,.75,0,0,1.11111],10753:[.25001,.75,0,0,1.11111],10754:[.25001,.75,0,0,1.11111],10756:[.25001,.75,0,0,.83334],10758:[.25001,.75,0,0,.83334]},"Size2-Regular":{32:[0,0,0,0,.25],40:[.65002,1.15,0,0,.59722],41:[.65002,1.15,0,0,.59722],47:[.65002,1.15,0,0,.81111],91:[.65002,1.15,0,0,.47222],92:[.65002,1.15,0,0,.81111],93:[.65002,1.15,0,0,.47222],123:[.65002,1.15,0,0,.66667],125:[.65002,1.15,0,0,.66667],160:[0,0,0,0,.25],710:[0,.75,0,0,1],732:[0,.75,0,0,1],770:[0,.75,0,0,1],771:[0,.75,0,0,1],8719:[.55001,1.05,0,0,1.27778],8720:[.55001,1.05,0,0,1.27778],8721:[.55001,1.05,0,0,1.44445],8730:[.65002,1.15,0,0,1],8747:[.86225,1.36,.44445,0,.55556],8748:[.862,1.36,.44445,0,.55556],8749:[.862,1.36,.44445,0,.55556],8750:[.86225,1.36,.44445,0,.55556],8896:[.55001,1.05,0,0,1.11111],8897:[.55001,1.05,0,0,1.11111],8898:[.55001,1.05,0,0,1.11111],8899:[.55001,1.05,0,0,1.11111],8968:[.65002,1.15,0,0,.52778],8969:[.65002,1.15,0,0,.52778],8970:[.65002,1.15,0,0,.52778],8971:[.65002,1.15,0,0,.52778],10216:[.65002,1.15,0,0,.61111],10217:[.65002,1.15,0,0,.61111],10752:[.55001,1.05,0,0,1.51112],10753:[.55001,1.05,0,0,1.51112],10754:[.55001,1.05,0,0,1.51112],10756:[.55001,1.05,0,0,1.11111],10758:[.55001,1.05,0,0,1.11111]},"Size3-Regular":{32:[0,0,0,0,.25],40:[.95003,1.45,0,0,.73611],41:[.95003,1.45,0,0,.73611],47:[.95003,1.45,0,0,1.04445],91:[.95003,1.45,0,0,.52778],92:[.95003,1.45,0,0,1.04445],93:[.95003,1.45,0,0,.52778],123:[.95003,1.45,0,0,.75],125:[.95003,1.45,0,0,.75],160:[0,0,0,0,.25],710:[0,.75,0,0,1.44445],732:[0,.75,0,0,1.44445],770:[0,.75,0,0,1.44445],771:[0,.75,0,0,1.44445],8730:[.95003,1.45,0,0,1],8968:[.95003,1.45,0,0,.58334],8969:[.95003,1.45,0,0,.58334],8970:[.95003,1.45,0,0,.58334],8971:[.95003,1.45,0,0,.58334],10216:[.95003,1.45,0,0,.75],10217:[.95003,1.45,0,0,.75]},"Size4-Regular":{32:[0,0,0,0,.25],40:[1.25003,1.75,0,0,.79167],41:[1.25003,1.75,0,0,.79167],47:[1.25003,1.75,0,0,1.27778],91:[1.25003,1.75,0,0,.58334],92:[1.25003,1.75,0,0,1.27778],93:[1.25003,1.75,0,0,.58334],123:[1.25003,1.75,0,0,.80556],125:[1.25003,1.75,0,0,.80556],160:[0,0,0,0,.25],710:[0,.825,0,0,1.8889],732:[0,.825,0,0,1.8889],770:[0,.825,0,0,1.8889],771:[0,.825,0,0,1.8889],8730:[1.25003,1.75,0,0,1],8968:[1.25003,1.75,0,0,.63889],8969:[1.25003,1.75,0,0,.63889],8970:[1.25003,1.75,0,0,.63889],8971:[1.25003,1.75,0,0,.63889],9115:[.64502,1.155,0,0,.875],9116:[1e-5,.6,0,0,.875],9117:[.64502,1.155,0,0,.875],9118:[.64502,1.155,0,0,.875],9119:[1e-5,.6,0,0,.875],9120:[.64502,1.155,0,0,.875],9121:[.64502,1.155,0,0,.66667],9122:[-99e-5,.601,0,0,.66667],9123:[.64502,1.155,0,0,.66667],9124:[.64502,1.155,0,0,.66667],9125:[-99e-5,.601,0,0,.66667],9126:[.64502,1.155,0,0,.66667],9127:[1e-5,.9,0,0,.88889],9128:[.65002,1.15,0,0,.88889],9129:[.90001,0,0,0,.88889],9130:[0,.3,0,0,.88889],9131:[1e-5,.9,0,0,.88889],9132:[.65002,1.15,0,0,.88889],9133:[.90001,0,0,0,.88889],9143:[.88502,.915,0,0,1.05556],10216:[1.25003,1.75,0,0,.80556],10217:[1.25003,1.75,0,0,.80556],57344:[-.00499,.605,0,0,1.05556],57345:[-.00499,.605,0,0,1.05556],57680:[0,.12,0,0,.45],57681:[0,.12,0,0,.45],57682:[0,.12,0,0,.45],57683:[0,.12,0,0,.45]},"Typewriter-Regular":{32:[0,0,0,0,.525],33:[0,.61111,0,0,.525],34:[0,.61111,0,0,.525],35:[0,.61111,0,0,.525],36:[.08333,.69444,0,0,.525],37:[.08333,.69444,0,0,.525],38:[0,.61111,0,0,.525],39:[0,.61111,0,0,.525],40:[.08333,.69444,0,0,.525],41:[.08333,.69444,0,0,.525],42:[0,.52083,0,0,.525],43:[-.08056,.53055,0,0,.525],44:[.13889,.125,0,0,.525],45:[-.08056,.53055,0,0,.525],46:[0,.125,0,0,.525],47:[.08333,.69444,0,0,.525],48:[0,.61111,0,0,.525],49:[0,.61111,0,0,.525],50:[0,.61111,0,0,.525],51:[0,.61111,0,0,.525],52:[0,.61111,0,0,.525],53:[0,.61111,0,0,.525],54:[0,.61111,0,0,.525],55:[0,.61111,0,0,.525],56:[0,.61111,0,0,.525],57:[0,.61111,0,0,.525],58:[0,.43056,0,0,.525],59:[.13889,.43056,0,0,.525],60:[-.05556,.55556,0,0,.525],61:[-.19549,.41562,0,0,.525],62:[-.05556,.55556,0,0,.525],63:[0,.61111,0,0,.525],64:[0,.61111,0,0,.525],65:[0,.61111,0,0,.525],66:[0,.61111,0,0,.525],67:[0,.61111,0,0,.525],68:[0,.61111,0,0,.525],69:[0,.61111,0,0,.525],70:[0,.61111,0,0,.525],71:[0,.61111,0,0,.525],72:[0,.61111,0,0,.525],73:[0,.61111,0,0,.525],74:[0,.61111,0,0,.525],75:[0,.61111,0,0,.525],76:[0,.61111,0,0,.525],77:[0,.61111,0,0,.525],78:[0,.61111,0,0,.525],79:[0,.61111,0,0,.525],80:[0,.61111,0,0,.525],81:[.13889,.61111,0,0,.525],82:[0,.61111,0,0,.525],83:[0,.61111,0,0,.525],84:[0,.61111,0,0,.525],85:[0,.61111,0,0,.525],86:[0,.61111,0,0,.525],87:[0,.61111,0,0,.525],88:[0,.61111,0,0,.525],89:[0,.61111,0,0,.525],90:[0,.61111,0,0,.525],91:[.08333,.69444,0,0,.525],92:[.08333,.69444,0,0,.525],93:[.08333,.69444,0,0,.525],94:[0,.61111,0,0,.525],95:[.09514,0,0,0,.525],96:[0,.61111,0,0,.525],97:[0,.43056,0,0,.525],98:[0,.61111,0,0,.525],99:[0,.43056,0,0,.525],100:[0,.61111,0,0,.525],101:[0,.43056,0,0,.525],102:[0,.61111,0,0,.525],103:[.22222,.43056,0,0,.525],104:[0,.61111,0,0,.525],105:[0,.61111,0,0,.525],106:[.22222,.61111,0,0,.525],107:[0,.61111,0,0,.525],108:[0,.61111,0,0,.525],109:[0,.43056,0,0,.525],110:[0,.43056,0,0,.525],111:[0,.43056,0,0,.525],112:[.22222,.43056,0,0,.525],113:[.22222,.43056,0,0,.525],114:[0,.43056,0,0,.525],115:[0,.43056,0,0,.525],116:[0,.55358,0,0,.525],117:[0,.43056,0,0,.525],118:[0,.43056,0,0,.525],119:[0,.43056,0,0,.525],120:[0,.43056,0,0,.525],121:[.22222,.43056,0,0,.525],122:[0,.43056,0,0,.525],123:[.08333,.69444,0,0,.525],124:[.08333,.69444,0,0,.525],125:[.08333,.69444,0,0,.525],126:[0,.61111,0,0,.525],127:[0,.61111,0,0,.525],160:[0,0,0,0,.525],176:[0,.61111,0,0,.525],184:[.19445,0,0,0,.525],305:[0,.43056,0,0,.525],567:[.22222,.43056,0,0,.525],711:[0,.56597,0,0,.525],713:[0,.56555,0,0,.525],714:[0,.61111,0,0,.525],715:[0,.61111,0,0,.525],728:[0,.61111,0,0,.525],730:[0,.61111,0,0,.525],770:[0,.61111,0,0,.525],771:[0,.61111,0,0,.525],776:[0,.61111,0,0,.525],915:[0,.61111,0,0,.525],916:[0,.61111,0,0,.525],920:[0,.61111,0,0,.525],923:[0,.61111,0,0,.525],926:[0,.61111,0,0,.525],928:[0,.61111,0,0,.525],931:[0,.61111,0,0,.525],933:[0,.61111,0,0,.525],934:[0,.61111,0,0,.525],936:[0,.61111,0,0,.525],937:[0,.61111,0,0,.525],8216:[0,.61111,0,0,.525],8217:[0,.61111,0,0,.525],8242:[0,.61111,0,0,.525],9251:[.11111,.21944,0,0,.525]}};const re={slant:[.25,.25,.25],space:[0,0,0],stretch:[0,0,0],shrink:[0,0,0],xHeight:[.431,.431,.431],quad:[1,1.171,1.472],extraSpace:[0,0,0],num1:[.677,.732,.925],num2:[.394,.384,.387],num3:[.444,.471,.504],denom1:[.686,.752,1.025],denom2:[.345,.344,.532],sup1:[.413,.503,.504],sup2:[.363,.431,.404],sup3:[.289,.286,.294],sub1:[.15,.143,.2],sub2:[.247,.286,.4],supDrop:[.386,.353,.494],subDrop:[.05,.071,.1],delim1:[2.39,1.7,1.98],delim2:[1.01,1.157,1.42],axisHeight:[.25,.25,.25],defaultRuleThickness:[.04,.049,.049],bigOpSpacing1:[.111,.111,.111],bigOpSpacing2:[.166,.166,.166],bigOpSpacing3:[.2,.2,.2],bigOpSpacing4:[.6,.611,.611],bigOpSpacing5:[.1,.143,.143],sqrtRuleThickness:[.04,.04,.04],ptPerEm:[10,10,10],doubleRuleSep:[.2,.2,.2],arrayRuleWidth:[.04,.04,.04],fboxsep:[.3,.3,.3],fboxrule:[.04,.04,.04]},se={"Å":"A","Ð":"D","Þ":"o","å":"a","ð":"d","þ":"o","А":"A","Б":"B","В":"B","Г":"F","Д":"A","Е":"E","Ж":"K","З":"3","И":"N","Й":"N","К":"K","Л":"N","М":"M","Н":"H","О":"O","П":"N","Р":"P","С":"C","Т":"T","У":"y","Ф":"O","Х":"X","Ц":"U","Ч":"h","Ш":"W","Щ":"W","Ъ":"B","Ы":"X","Ь":"B","Э":"3","Ю":"X","Я":"R","а":"a","б":"b","в":"a","г":"r","д":"y","е":"e","ж":"m","з":"e","и":"n","й":"n","к":"n","л":"n","м":"m","н":"n","о":"o","п":"n","р":"p","с":"c","т":"o","у":"y","ф":"b","х":"x","ц":"n","ч":"n","ш":"w","щ":"w","ъ":"a","ы":"m","ь":"a","э":"e","ю":"m","я":"r"};function oe(e,t,i){if(!ne[t])throw new Error("Font metrics not found for font: "+t+".");let n=e.charCodeAt(0),r=ne[t][n];if(!r&&e[0]in se&&(n=se[e[0]].charCodeAt(0),r=ne[t][n]),r||"text"!==i||ee(n)&&(r=ne[t][77]),r)return{depth:r[0],height:r[1],italic:r[2],skew:r[3],width:r[4]}}function ae(e,t){return t.size<2?e:he[e-1][t.size-1]}const le={},he=[[1,1,1],[2,1,1],[3,1,1],[4,2,1],[5,2,1],[6,3,1],[7,4,2],[8,6,3],[9,7,6],[10,8,7],[11,10,9]],ce=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488];class de{constructor(e){this.style=void 0,this.color=void 0,this.size=void 0,this.textSize=void 0,this.phantom=void 0,this.font=void 0,this.fontFamily=void 0,this.fontWeight=void 0,this.fontShape=void 0,this.sizeMultiplier=void 0,this.maxSize=void 0,this.minRuleThickness=void 0,this._fontMetrics=void 0,this.style=e.style,this.color=e.color,this.size=e.size||de.BASESIZE,this.textSize=e.textSize||this.size,this.phantom=!!e.phantom,this.font=e.font||"",this.fontFamily=e.fontFamily||"",this.fontWeight=e.fontWeight||"",this.fontShape=e.fontShape||"",this.sizeMultiplier=ce[this.size-1],this.maxSize=e.maxSize,this.minRuleThickness=e.minRuleThickness,this._fontMetrics=void 0}extend(e){var t={style:this.style,size:this.size,textSize:this.textSize,color:this.color,phantom:this.phantom,font:this.font,fontFamily:this.fontFamily,fontWeight:this.fontWeight,fontShape:this.fontShape,maxSize:this.maxSize,minRuleThickness:this.minRuleThickness};for(const i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);return new de(t)}havingStyle(e){return this.style===e?this:this.extend({style:e,size:ae(this.textSize,e)})}havingCrampedStyle(){return this.havingStyle(this.style.cramp())}havingSize(e){return this.size===e&&this.textSize===e?this:this.extend({style:this.style.text(),size:e,textSize:e,sizeMultiplier:ce[e-1]})}havingBaseStyle(e){e=e||this.style.text();var t=ae(de.BASESIZE,e);return this.size===t&&this.textSize===de.BASESIZE&&this.style===e?this:this.extend({style:e,size:t})}havingBaseSizing(){let e;switch(this.style.id){case 4:case 5:e=3;break;case 6:case 7:e=1;break;default:e=6}return this.extend({style:this.style.text(),size:e})}withColor(e){return this.extend({color:e})}withPhantom(){return this.extend({phantom:!0})}withFont(e){return this.extend({font:e})}withTextFontFamily(e){return this.extend({fontFamily:e,font:""})}withTextFontWeight(e){return this.extend({fontWeight:e,font:""})}withTextFontShape(e){return this.extend({fontShape:e,font:""})}sizingClasses(e){return e.size!==this.size?["sizing","reset-size"+e.size,"size"+this.size]:[]}baseSizingClasses(){return this.size!==de.BASESIZE?["sizing","reset-size"+this.size,"size"+de.BASESIZE]:[]}fontMetrics(){return this._fontMetrics||(this._fontMetrics=function(e){var t=5<=e?0:3<=e?1:2;if(!le[t]){const e=le[t]={cssEmPerMu:re.quad[t]/18};for(const i in re)re.hasOwnProperty(i)&&(e[i]=re[i][t])}return le[t]}(this.size)),this._fontMetrics}getColor(){return this.phantom?"transparent":this.color}}de.BASESIZE=6;var ue=de;function pe(e){return(e="string"!=typeof e?e.unit:e)in be||e in ye||"ex"===e}function T(e,t){let i;if(e.unit in be)i=be[e.unit]/t.fontMetrics().ptPerEm/t.sizeMultiplier;else if("mu"===e.unit)i=t.fontMetrics().cssEmPerMu;else{var n=t.style.isTight()?t.havingStyle(t.style.text()):t;if("ex"===e.unit)i=n.fontMetrics().xHeight;else{if("em"!==e.unit)throw new _("Invalid unit: '"+e.unit+"'");i=n.fontMetrics().quad}n!==t&&(i*=n.sizeMultiplier/t.sizeMultiplier)}return Math.min(e.number*i,t.maxSize)}function me(e){return e.filter(e=>e).join(" ")}function ge(e,t,i){if(this.classes=e||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=i||{},t){t.style.isTight()&&this.classes.push("mtight");const e=t.getColor();e&&(this.style.color=e)}}function fe(e){var t=document.createElement(e);t.className=me(this.classes);for(const e in this.style)this.style.hasOwnProperty(e)&&(t.style[e]=this.style[e]);for(const e in this.attributes)this.attributes.hasOwnProperty(e)&&t.setAttribute(e,this.attributes[e]);for(let e=0;e"}const be={pt:1,mm:7227/2540,cm:7227/254,in:72.27,bp:1.00375,pc:12,dd:1238/1157,cc:14856/1157,nd:685/642,nc:1370/107,sp:1/65536,px:1.00375},ye={ex:!0,em:!0,mu:!0},M=function(e){return+e.toFixed(4)+"em"};class we{constructor(e,t,i,n){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.width=void 0,this.maxFontSize=void 0,this.style=void 0,ge.call(this,e,i,n),this.children=t||[]}setAttribute(e,t){this.attributes[e]=t}hasClass(e){return C.contains(this.classes,e)}toNode(){return fe.call(this,"span")}toMarkup(){return ve.call(this,"span")}}class xe{constructor(e,t,i,n){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,ge.call(this,t,n),this.children=i||[],this.setAttribute("href",e)}setAttribute(e,t){this.attributes[e]=t}hasClass(e){return C.contains(this.classes,e)}toNode(){return fe.call(this,"a")}toMarkup(){return ve.call(this,"a")}}class Ae{constructor(e,t,i){this.src=void 0,this.alt=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.alt=t,this.src=e,this.classes=["mord"],this.style=i}hasClass(e){return C.contains(this.classes,e)}toNode(){var e=document.createElement("img");e.src=this.src,e.alt=this.alt,e.className="mord";for(const t in this.style)this.style.hasOwnProperty(t)&&(e.style[t]=this.style[t]);return e}toMarkup(){let e=''+C.escape(this.alt)+'=n[0]&&t<=n[1])return i.name}}return null}(this.text.charCodeAt(0));e&&this.classes.push(e+"_fallback"),/[\xee\xef\xed\xec]/.test(this.text)&&(this.text=Se[this.text])}hasClass(e){return C.contains(this.classes,e)}toNode(){const e=document.createTextNode(this.text);let t=null;0")+n+"":n}}class ke{constructor(e,t){this.children=void 0,this.attributes=void 0,this.children=e||[],this.attributes=t||{}}toNode(){var t=document.createElementNS("http://www.w3.org/2000/svg","svg");for(const e in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,e)&&t.setAttribute(e,this.attributes[e]);for(let e=0;e':''}}class Ce{constructor(e){this.attributes=void 0,this.attributes=e||{}}toNode(){var e=document.createElementNS("http://www.w3.org/2000/svg","line");for(const t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&e.setAttribute(t,this.attributes[t]);return e}toMarkup(){let e="","\\gt",!0),i(n,s,p,"∈","\\in",!0),i(n,s,p,"","\\@not"),i(n,s,p,"⊂","\\subset",!0),i(n,s,p,"⊃","\\supset",!0),i(n,s,p,"⊆","\\subseteq",!0),i(n,s,p,"⊇","\\supseteq",!0),i(n,e,p,"⊈","\\nsubseteq",!0),i(n,e,p,"⊉","\\nsupseteq",!0),i(n,s,p,"⊨","\\models"),i(n,s,p,"←","\\leftarrow",!0),i(n,s,p,"≤","\\le"),i(n,s,p,"≤","\\leq",!0),i(n,s,p,"<","\\lt",!0),i(n,s,p,"→","\\rightarrow",!0),i(n,s,p,"→","\\to"),i(n,e,p,"≱","\\ngeq",!0),i(n,e,p,"≰","\\nleq",!0),i(n,s,g," ","\\ "),i(n,s,g," ","\\space"),i(n,s,g," ","\\nobreakspace"),i(r,s,g," ","\\ "),i(r,s,g," "," "),i(r,s,g," ","\\space"),i(r,s,g," ","\\nobreakspace"),i(n,s,g,null,"\\nobreak"),i(n,s,g,null,"\\allowbreak"),i(n,s,$e,",",","),i(n,s,$e,";",";"),i(n,e,a,"⊼","\\barwedge",!0),i(n,e,a,"⊻","\\veebar",!0),i(n,s,a,"⊙","\\odot",!0),i(n,s,a,"⊕","\\oplus",!0),i(n,s,a,"⊗","\\otimes",!0),i(n,s,f,"∂","\\partial",!0),i(n,s,a,"⊘","\\oslash",!0),i(n,e,a,"⊚","\\circledcirc",!0),i(n,e,a,"⊡","\\boxdot",!0),i(n,s,a,"△","\\bigtriangleup"),i(n,s,a,"▽","\\bigtriangledown"),i(n,s,a,"†","\\dagger"),i(n,s,a,"⋄","\\diamond"),i(n,s,a,"⋆","\\star"),i(n,s,a,"◃","\\triangleleft"),i(n,s,a,"▹","\\triangleright"),i(n,s,u,"{","\\{"),i(r,s,f,"{","\\{"),i(r,s,f,"{","\\textbraceleft"),i(n,s,l,"}","\\}"),i(r,s,f,"}","\\}"),i(r,s,f,"}","\\textbraceright"),i(n,s,u,"{","\\lbrace"),i(n,s,l,"}","\\rbrace"),i(n,s,u,"[","\\lbrack",!0),i(r,s,f,"[","\\lbrack",!0),i(n,s,l,"]","\\rbrack",!0),i(r,s,f,"]","\\rbrack",!0),i(n,s,u,"(","\\lparen",!0),i(n,s,l,")","\\rparen",!0),i(r,s,f,"<","\\textless",!0),i(r,s,f,">","\\textgreater",!0),i(n,s,u,"⌊","\\lfloor",!0),i(n,s,l,"⌋","\\rfloor",!0),i(n,s,u,"⌈","\\lceil",!0),i(n,s,l,"⌉","\\rceil",!0),i(n,s,f,"\\","\\backslash"),i(n,s,f,"∣","|"),i(n,s,f,"∣","\\vert"),i(r,s,f,"|","\\textbar",!0),i(n,s,f,"∥","\\|"),i(n,s,f,"∥","\\Vert"),i(r,s,f,"∥","\\textbardbl"),i(r,s,f,"~","\\textasciitilde"),i(r,s,f,"\\","\\textbackslash"),i(r,s,f,"^","\\textasciicircum"),i(n,s,p,"↑","\\uparrow",!0),i(n,s,p,"⇑","\\Uparrow",!0),i(n,s,p,"↓","\\downarrow",!0),i(n,s,p,"⇓","\\Downarrow",!0),i(n,s,p,"↕","\\updownarrow",!0),i(n,s,p,"⇕","\\Updownarrow",!0),i(n,s,c,"∐","\\coprod"),i(n,s,c,"⋁","\\bigvee"),i(n,s,c,"⋀","\\bigwedge"),i(n,s,c,"⨄","\\biguplus"),i(n,s,c,"⋂","\\bigcap"),i(n,s,c,"⋃","\\bigcup"),i(n,s,c,"∫","\\int"),i(n,s,c,"∫","\\intop"),i(n,s,c,"∬","\\iint"),i(n,s,c,"∭","\\iiint"),i(n,s,c,"∏","\\prod"),i(n,s,c,"∑","\\sum"),i(n,s,c,"⨂","\\bigotimes"),i(n,s,c,"⨁","\\bigoplus"),i(n,s,c,"⨀","\\bigodot"),i(n,s,c,"∮","\\oint"),i(n,s,c,"∯","\\oiint"),i(n,s,c,"∰","\\oiiint"),i(n,s,c,"⨆","\\bigsqcup"),i(n,s,c,"∫","\\smallint"),i(r,s,Le,"…","\\textellipsis"),i(n,s,Le,"…","\\mathellipsis"),i(r,s,Le,"…","\\ldots",!0),i(n,s,Le,"…","\\ldots",!0),i(n,s,Le,"⋯","\\@cdots",!0),i(n,s,Le,"⋱","\\ddots",!0),i(n,s,f,"⋮","\\varvdots"),i(n,s,o,"ˊ","\\acute"),i(n,s,o,"ˋ","\\grave"),i(n,s,o,"¨","\\ddot"),i(n,s,o,"~","\\tilde"),i(n,s,o,"ˉ","\\bar"),i(n,s,o,"˘","\\breve"),i(n,s,o,"ˇ","\\check"),i(n,s,o,"^","\\hat"),i(n,s,o,"⃗","\\vec"),i(n,s,o,"˙","\\dot"),i(n,s,o,"˚","\\mathring"),i(n,s,h,"","\\@imath"),i(n,s,h,"","\\@jmath"),i(n,s,f,"ı","ı"),i(n,s,f,"ȷ","ȷ"),i(r,s,f,"ı","\\i",!0),i(r,s,f,"ȷ","\\j",!0),i(r,s,f,"ß","\\ss",!0),i(r,s,f,"æ","\\ae",!0),i(r,s,f,"œ","\\oe",!0),i(r,s,f,"ø","\\o",!0),i(r,s,f,"Æ","\\AE",!0),i(r,s,f,"Œ","\\OE",!0),i(r,s,f,"Ø","\\O",!0),i(r,s,o,"ˊ","\\'"),i(r,s,o,"ˋ","\\`"),i(r,s,o,"ˆ","\\^"),i(r,s,o,"˜","\\~"),i(r,s,o,"ˉ","\\="),i(r,s,o,"˘","\\u"),i(r,s,o,"˙","\\."),i(r,s,o,"¸","\\c"),i(r,s,o,"˚","\\r"),i(r,s,o,"ˇ","\\v"),i(r,s,o,"¨",'\\"'),i(r,s,o,"˝","\\H"),i(r,s,o,"◯","\\textcircled");const Fe={"--":!0,"---":!0,"``":!0,"''":!0};i(r,s,f,"–","--",!0),i(r,s,f,"–","\\textendash"),i(r,s,f,"—","---",!0),i(r,s,f,"—","\\textemdash"),i(r,s,f,"‘","`",!0),i(r,s,f,"‘","\\textquoteleft"),i(r,s,f,"’","'",!0),i(r,s,f,"’","\\textquoteright"),i(r,s,f,"“","``",!0),i(r,s,f,"“","\\textquotedblleft"),i(r,s,f,"”","''",!0),i(r,s,f,"”","\\textquotedblright"),i(n,s,f,"°","\\degree",!0),i(r,s,f,"°","\\degree"),i(r,s,f,"°","\\textdegree",!0),i(n,s,f,"£","\\pounds"),i(n,s,f,"£","\\mathsterling",!0),i(r,s,f,"£","\\pounds"),i(r,s,f,"£","\\textsterling",!0),i(n,e,f,"✠","\\maltese"),i(r,e,f,"✠","\\maltese");var Pe='0123456789/@."';for(let e=0;ei&&(i=s.height),s.depth>n&&(n=s.depth),s.maxFontSize>r&&(r=s.maxFontSize)}t.height=i,t.depth=n,t.maxFontSize=r}function b(e,t,i,n){return e=new we(e,t,i,n),Be(e),e}function ze(e){return e=new ie(e),Be(e),e}function He(e,t,i){let n="";switch(e){case"amsrm":n="AMS";break;case"textrm":n="Main";break;case"textsf":n="SansSerif";break;case"texttt":n="Typewriter";break;default:n=e}return n+"-"+("textbf"===t&&"textit"===i?"BoldItalic":"textbf"===t?"Bold":"textit"===t?"Italic":"Regular")}const We=[["mathbf","textbf","Main-Bold"],["mathbf","textbf","Main-Bold"],["mathnormal","textit","Math-Italic"],["mathnormal","textit","Math-Italic"],["boldsymbol","boldsymbol","Main-BoldItalic"],["boldsymbol","boldsymbol","Main-BoldItalic"],["mathscr","textscr","Script-Regular"],["","",""],["","",""],["","",""],["mathfrak","textfrak","Fraktur-Regular"],["mathfrak","textfrak","Fraktur-Regular"],["mathbb","textbb","AMS-Regular"],["mathbb","textbb","AMS-Regular"],["mathboldfrak","textboldfrak","Fraktur-Regular"],["mathboldfrak","textboldfrak","Fraktur-Regular"],["mathsf","textsf","SansSerif-Regular"],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathitsf","textitsf","SansSerif-Italic"],["mathitsf","textitsf","SansSerif-Italic"],["","",""],["","",""],["mathtt","texttt","Typewriter-Regular"],["mathtt","texttt","Typewriter-Regular"]],Ue=[["mathbf","textbf","Main-Bold"],["","",""],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathtt","texttt","Typewriter-Regular"]],Ve=(e,t,i,n)=>new we(e,t,i,n),je={mathbf:{variant:"bold",fontName:"Main-Bold"},mathrm:{variant:"normal",fontName:"Main-Regular"},textit:{variant:"italic",fontName:"Main-Italic"},mathit:{variant:"italic",fontName:"Main-Italic"},mathnormal:{variant:"italic",fontName:"Math-Italic"},mathbb:{variant:"double-struck",fontName:"AMS-Regular"},mathcal:{variant:"script",fontName:"Caligraphic-Regular"},mathfrak:{variant:"fraktur",fontName:"Fraktur-Regular"},mathscr:{variant:"script",fontName:"Script-Regular"},mathsf:{variant:"sans-serif",fontName:"SansSerif-Regular"},mathtt:{variant:"monospace",fontName:"Typewriter-Regular"}},qe={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]};var R={fontMap:je,makeSymbol:Ne,mathsym:function(e,t,i,n){return void 0===n&&(n=[]),"boldsymbol"===i.font&&De(e,"Main-Bold",t).metrics?Ne(e,"Main-Bold",t,i,n.concat(["mathbf"])):"\\"===e||"main"===d[t][e].font?Ne(e,"Main-Regular",t,i,n):Ne(e,"AMS-Regular",t,i,n.concat(["amsrm"]))},makeSpan:b,makeSvgSpan:Ve,makeLineSpan:function(e,t,i){e=b([e],[],t);return e.height=Math.max(i||t.fontMetrics().defaultRuleThickness,t.minRuleThickness),e.style.borderBottomWidth=M(e.height),e.maxFontSize=1,e},makeAnchor:function(e,t,i,n){e=new xe(e,t,i,n);return Be(e),e},makeFragment:ze,wrapFragment:function(e,t){return e instanceof ie?b([],[e],t):e},makeVList:function(t,i){const{children:n,depth:r}=function(i){if("individualShift"===i.positionType){const s=i.children,a=[s[0]],l=-s[0].shift-s[0].elem.depth;let t=l;for(let e=1;e{var i=b(["mspace"],[],t),e=T(e,t);return i.style.marginRight=M(e),i},staticSvg:function(e,t){var[e,i,n]=qe[e],e=new _e(e),e=new ke([e],{width:M(i),height:M(n),style:"width:"+M(i),viewBox:"0 0 "+1e3*i+" "+1e3*n,preserveAspectRatio:"xMinYMin"}),e=Ve(["overlay"],[e],t);return e.height=n,e.style.height=M(n),e.style.width=M(i),e},svgData:qe,tryCombineChars:t=>{for(let e=0;e{if(me(e.classes)!==me(t.classes)||e.skew!==t.skew||e.maxFontSize!==t.maxFontSize)return!1;if(1===e.classes.length){const t=e.classes[0];if("mbin"===t||"mord"===t)return!1}for(const i in e.style)if(e.style.hasOwnProperty(i)&&e.style[i]!==t.style[i])return!1;for(const n in t.style)if(t.style.hasOwnProperty(n)&&e.style[n]!==t.style[n])return!1;return!0})(i,n)&&(i.text+=n.text,i.height=Math.max(i.height,n.height),i.depth=Math.max(i.depth,n.depth),i.italic=n.italic,t.splice(e+1,1),e--)}return t}};const y={number:3,unit:"mu"},Ge={number:4,unit:"mu"},Ke={number:5,unit:"mu"},Xe={mord:{mop:y,mbin:Ge,mrel:Ke,minner:y},mop:{mord:y,mop:y,mrel:Ke,minner:y},mbin:{mord:Ge,mop:Ge,mopen:Ge,minner:Ge},mrel:{mord:Ke,mop:Ke,mopen:Ke,minner:Ke},mopen:{},mclose:{mop:y,mbin:Ge,mrel:Ke,minner:y},mpunct:{mord:y,mop:y,mrel:Ke,mopen:y,mclose:y,mpunct:y,minner:y},minner:{mord:y,mop:y,mbin:Ge,mrel:Ke,mopen:y,mpunct:y,minner:y}},Ye={mord:{mop:y},mop:{mord:y,mop:y},mbin:{},mrel:{},mopen:{},mclose:{mop:y},mpunct:{},minner:{mop:y}},Qe={},Je={},Ze={};function w(e){var{type:e,names:t,props:i,handler:n,htmlBuilder:r,mathmlBuilder:s}=e,o={type:e,numArgs:i.numArgs,argTypes:i.argTypes,allowedInArgument:!!i.allowedInArgument,allowedInText:!!i.allowedInText,allowedInMath:void 0===i.allowedInMath||i.allowedInMath,numOptionalArgs:i.numOptionalArgs||0,infix:!!i.infix,primitive:!!i.primitive,handler:n};for(let e=0;e{var i=t.classes[0],n=e.classes[0];"mbin"===i&&C.contains(st,n)?t.classes[0]="mord":"mbin"===n&&C.contains(rt,i)&&(e.classes[0]="mord")},{node:o},r,e),lt(s,(e,t)=>{var t=dt(t),i=dt(e),e=t&&i?(e.hasClass("mtight")?Ye:Xe)[t][i]:null;if(e)return R.makeGlue(e,n)},{node:o},r,e)}return s}function it(e,t){return e=["nulldelimiter"].concat(e.baseSizingClasses()),nt(t.concat(e))}const nt=R.makeSpan,rt=["leftmost","mbin","mopen","mrel","mop","mpunct"],st=["rightmost","mrel","mclose","mpunct"],ot={display:E.DISPLAY,text:E.TEXT,script:E.SCRIPT,scriptscript:E.SCRIPTSCRIPT},at={mord:"mord",mop:"mop",mbin:"mbin",mrel:"mrel",mopen:"mopen",mclose:"mclose",mpunct:"mpunct",minner:"minner"},lt=function(i,e,t,n,r){n&&i.push(n);let s=0;for(;se=>{i.splice(t+1,0,e),s++})(s)}}n&&i.pop()},ht=function(e){return e instanceof ie||e instanceof xe||e instanceof we&&e.hasClass("enclosing")?e:null},ct=function(e,t){var i=ht(e);if(i){const e=i.children;if(e.length){if("right"===t)return ct(e[e.length-1],"right");if("left"===t)return ct(e[0],"left")}}return e},dt=function(e,t){return e&&(t&&(e=ct(e,t)),at[e.classes[0]])||null},$=function(t,i,n){if(!t)return nt();if(Je[t.type]){let e=Je[t.type](t,i);if(n&&i.size!==n.size){e=nt(i.sizingClasses(n),[e],i);const t=i.sizeMultiplier/n.sizeMultiplier;e.height*=t,e.depth*=t}return e}throw new _("Got group of unknown type: '"+t.type+"'")};function ut(e,t){e=nt(["base"],e,t),t=nt(["strut"]);return t.style.height=M(e.height+e.depth),e.depth&&(t.style.verticalAlign=M(-e.depth)),e.children.unshift(t),e}function pt(e,i){let t=null;1===e.length&&"tag"===e[0].type&&(t=e[0].tag,e=e[0].body);var n=L(e,i,"root");let r;2===n.length&&n[1].hasClass("tag")&&(r=n.pop());var s=[];let o,a=[];for(let t=0;t"}toText(){return this.children.map(e=>e.toText()).join("")}}class gt{constructor(e){this.text=void 0,this.text=e}toNode(){return document.createTextNode(this.text)}toMarkup(){return C.escape(this.toText())}toText(){return this.text}}var S={MathNode:A,TextNode:gt,SpaceNode:class{constructor(e){this.width=void 0,this.character=void 0,this.width=e,this.character=.05555<=e&&e<=.05556?" ":.1666<=e&&e<=.1667?" ":.2222<=e&&e<=.2223?" ":.2777<=e&&e<=.2778?"  ":-.05556<=e&&e<=-.05555?" ⁣":-.1667<=e&&e<=-.1666?" ⁣":-.2223<=e&&e<=-.2222?" ⁣":-.2778<=e&&e<=-.2777?" ⁣":null}toNode(){var e;return this.character?document.createTextNode(this.character):((e=document.createElementNS("http://www.w3.org/1998/Math/MathML","mspace")).setAttribute("width",M(this.width)),e)}toMarkup(){return this.character?""+this.character+"":''}toText(){return this.character||" "}},newDocumentFragment:mt};function ft(e,t,i){return!d[t][e]||!d[t][e].replace||55349===e.charCodeAt(0)||Fe.hasOwnProperty(e)&&i&&(i.fontFamily&&"tt"===i.fontFamily.slice(4,6)||i.font&&"tt"===i.font.slice(4,6))||(e=d[t][e].replace),new S.TextNode(e)}function vt(e){return 1===e.length?e[0]:new S.MathNode("mrow",e)}function bt(e,t){if("texttt"===t.fontFamily)return"monospace";if("textsf"===t.fontFamily)return"textit"===t.fontShape&&"textbf"===t.fontWeight?"sans-serif-bold-italic":"textit"===t.fontShape?"sans-serif-italic":"textbf"===t.fontWeight?"bold-sans-serif":"sans-serif";if("textit"===t.fontShape&&"textbf"===t.fontWeight)return"bold-italic";if("textit"===t.fontShape)return"italic";if("textbf"===t.fontWeight)return"bold";if(!(t=t.font)||"mathnormal"===t)return null;var i=e.mode;if("mathit"===t)return"italic";if("boldsymbol"===t)return"textord"===e.type?"bold":"bold-italic";if("mathbf"===t)return"bold";if("mathbb"===t)return"double-struck";if("mathfrak"===t)return"fraktur";if("mathscr"===t||"mathcal"===t)return"script";if("mathsf"===t)return"sans-serif";if("mathtt"===t)return"monospace";let n=e.text;return!C.contains(["\\imath","\\jmath"],n)&&oe(n=d[i][n]&&d[i][n].replace?d[i][n].replace:n,R.fontMap[t].fontName,i)?R.fontMap[t].variant:null}function k(t,i,e){if(1===t.length){const n=F(t[0],i);return e&&n instanceof A&&"mo"===n.type&&(n.setAttribute("lspace","0em"),n.setAttribute("rspace","0em")),[n]}const n=[];let r;for(let e=0;e{let e,s,o;n&&"supsub"===n.type?(s=P(n.base,"accent"),e=s.base,n.base=e,o=function(e){if(e instanceof we)return e;throw new Error("Expected span but got "+String(e)+".")}($(n,r)),n.base=s):(s=P(n,"accent"),e=s.base);n=$(e,r.havingCrampedStyle());let a=0;if(s.isShifty&&C.isCharacterBox(e)){const n=C.getBaseElem(e);a=Ee($(n,r.havingCrampedStyle())).skew}var l="\\c"===s.label;let h,c=l?n.height+n.depth:Math.min(n.height,r.fontMetrics().xHeight);if(s.isStretchy)h=Ct(s,r),h=R.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:n},{type:"elem",elem:h,wrapperClasses:["svg-align"],wrapperStyle:0{var i=e.isStretchy?_t(e.label):new S.MathNode("mo",[ft(e.label,e.mode)]),e=new S.MathNode("mover",[F(e.base,t),i]);return e.setAttribute("accent","true"),e},Lt=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(e=>"\\"+e).join("|")),$t=(w({type:"accent",names:["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring","\\widecheck","\\widehat","\\widetilde","\\overrightarrow","\\overleftarrow","\\Overrightarrow","\\overleftrightarrow","\\overgroup","\\overlinesegment","\\overleftharpoon","\\overrightharpoon"],props:{numArgs:1},handler:(e,t)=>{var t=tt(t[0]),i=!Lt.test(e.funcName),n=!i||"\\widehat"===e.funcName||"\\widetilde"===e.funcName||"\\widecheck"===e.funcName;return{type:"accent",mode:e.parser.mode,label:e.funcName,isStretchy:i,isShifty:n,base:t}},htmlBuilder:Mt,mathmlBuilder:Rt}),w({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\c","\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["primitive"]},handler:(e,t)=>{t=t[0];let i=e.parser.mode;return"math"===i&&(e.parser.settings.reportNonstrict("mathVsTextAccents","LaTeX's accent "+e.funcName+" works only in text mode"),i="text"),{type:"accent",mode:i,label:e.funcName,isStretchy:!1,isShifty:!0,base:t}},htmlBuilder:Mt,mathmlBuilder:Rt}),w({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:(e,t)=>{var{parser:e,funcName:i}=e,t=t[0];return{type:"accentUnder",mode:e.mode,label:i,base:t}},htmlBuilder:(e,t)=>{var i=$(e.base,t),n=Ct(e,t),e="\\utilde"===e.label?.12:0,n=R.makeVList({positionType:"top",positionData:i.height,children:[{type:"elem",elem:n,wrapperClasses:["svg-align"]},{type:"kern",size:e},{type:"elem",elem:i}]},t);return R.makeSpan(["mord","accentunder"],[n],t)},mathmlBuilder:(e,t)=>{var i=_t(e.label),e=new S.MathNode("munder",[F(e.base,t),i]);return e.setAttribute("accentunder","true"),e}}),e=>{e=new S.MathNode("mpadded",e?[e]:[]);return e.setAttribute("width","+0.6em"),e.setAttribute("lspace","0.3em"),e}),Ft=(w({type:"xArrow",names:["\\xleftarrow","\\xrightarrow","\\xLeftarrow","\\xRightarrow","\\xleftrightarrow","\\xLeftrightarrow","\\xhookleftarrow","\\xhookrightarrow","\\xmapsto","\\xrightharpoondown","\\xrightharpoonup","\\xleftharpoondown","\\xleftharpoonup","\\xrightleftharpoons","\\xleftrightharpoons","\\xlongequal","\\xtwoheadrightarrow","\\xtwoheadleftarrow","\\xtofrom","\\xrightleftarrows","\\xrightequilibrium","\\xleftequilibrium","\\\\cdrightarrow","\\\\cdleftarrow","\\\\cdlongequal"],props:{numArgs:1,numOptionalArgs:1},handler(e,t,i){var{parser:e,funcName:n}=e;return{type:"xArrow",mode:e.mode,label:n,body:t[0],below:i[0]}},htmlBuilder(e,t){var i=t.style,n=t.havingStyle(i.sup()),r=R.wrapFragment($(e.body,n,t),t),s="\\x"===e.label.slice(0,2)?"x":"cd";let o;r.classes.push(s+"-arrow-pad"),e.below&&(n=t.havingStyle(i.sub()),(o=R.wrapFragment($(e.below,n,t),t)).classes.push(s+"-arrow-pad"));i=Ct(e,t),n=-t.fontMetrics().axisHeight+.5*i.height;let a,l=-t.fontMetrics().axisHeight-.5*i.height-.111;if((.25{e="ordgroup"===e.type&&e.body.length?e.body[0]:e;return"atom"!==e.type||"bin"!==e.family&&"rel"!==e.family?"mord":"m"+e.family},Dt=(w({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler(e,t){e=e.parser;return{type:"mclass",mode:e.mode,mclass:Ot(t[0]),body:x(t[1]),isCharacterBox:C.isCharacterBox(t[1])}}}),w({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler(e,t){var{parser:e,funcName:i}=e,n=t[1],t=t[0],r="\\stackrel"!==i?Ot(n):"mrel",n={type:"op",mode:n.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:"\\stackrel"!==i,body:x(n)},n={type:"supsub",mode:t.mode,base:n,sup:"\\underset"===i?null:t,sub:"\\underset"===i?t:null};return{type:"mclass",mode:e.mode,mclass:r,body:[n],isCharacterBox:C.isCharacterBox(n)}},htmlBuilder:Pt,mathmlBuilder:It}),w({type:"pmb",names:["\\pmb"],props:{numArgs:1,allowedInText:!0},handler(e,t){e=e.parser;return{type:"pmb",mode:e.mode,mclass:Ot(t[0]),body:x(t[0])}},htmlBuilder(e,t){var i=L(e.body,t,!0),e=R.makeSpan([e.mclass],i,t);return e.style.textShadow="0.02em 0.01em 0.04px",e},mathmlBuilder(e,t){e=k(e.body,t),t=new S.MathNode("mstyle",e);return t.setAttribute("style","text-shadow: 0.02em 0.01em 0.04px"),t}}),{">":"\\\\cdrightarrow","<":"\\\\cdleftarrow","=":"\\\\cdlongequal",A:"\\uparrow",V:"\\downarrow","|":"\\Vert",".":"no arrow"}),Nt=e=>"textord"===e.type&&"@"===e.text;w({type:"cdlabel",names:["\\\\cdleft","\\\\cdright"],props:{numArgs:1},handler(e,t){var{parser:e,funcName:i}=e;return{type:"cdlabel",mode:e.mode,side:i.slice(4),label:t[0]}},htmlBuilder(e,t){var i=t.havingStyle(t.style.sup()),i=R.wrapFragment($(e.label,i,t),t);return i.classes.push("cd-label-"+e.side),i.style.bottom=M(.8-i.depth),i.height=0,i.depth=0,i},mathmlBuilder(e,t){let i=new S.MathNode("mrow",[F(e.label,t)]);return(i=new S.MathNode("mpadded",[i])).setAttribute("width","0"),"left"===e.side&&i.setAttribute("lspace","-1width"),i.setAttribute("voffset","0.7em"),(i=new S.MathNode("mstyle",[i])).setAttribute("displaystyle","false"),i.setAttribute("scriptlevel","1"),i}}),w({type:"cdlabelparent",names:["\\\\cdparent"],props:{numArgs:1},handler(e,t){e=e.parser;return{type:"cdlabelparent",mode:e.mode,fragment:t[0]}},htmlBuilder(e,t){e=R.wrapFragment($(e.fragment,t),t);return e.classes.push("cd-vert-arrow"),e},mathmlBuilder(e,t){return new S.MathNode("mrow",[F(e.fragment,t)])}}),w({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler(e,t){var e=e["parser"],i=P(t[0],"ordgroup").body;let n="";for(let e=0;e>10),56320+(1023&s))),{type:"textord",mode:e.mode,text:r}}});g=(e,t)=>{t=L(e.body,t.withColor(e.color),!1);return R.makeFragment(t)},$e=(e,t)=>{t=k(e.body,t.withColor(e.color)),t=new S.MathNode("mstyle",t);return t.setAttribute("mathcolor",e.color),t};w({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:!0,argTypes:["color","original"]},handler(e,t){var e=e["parser"],i=P(t[0],"color-token").color,t=t[1];return{type:"color",mode:e.mode,color:i,body:x(t)}},htmlBuilder:g,mathmlBuilder:$e}),w({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,argTypes:["color"]},handler(e,t){var{parser:e,breakOnTokenText:i}=e,t=P(t[0],"color-token").color,i=(e.gullet.macros.set("\\current@color",t),e.parseExpression(!0,i));return{type:"color",mode:e.mode,color:t,body:i}},htmlBuilder:g,mathmlBuilder:$e}),w({type:"cr",names:["\\\\"],props:{numArgs:0,numOptionalArgs:0,allowedInText:!0},handler(e,t,i){var e=e["parser"],n="["===e.gullet.future().text?e.parseSizeGroup(!0):null,r=!e.settings.displayMode||!e.settings.useStrictBehavior("newLineInDisplayMode","In LaTeX, \\\\ or \\newline does nothing in display mode");return{type:"cr",mode:e.mode,newLine:r,size:n&&P(n,"size").value}},htmlBuilder(e,t){var i=R.makeSpan(["mspace"],[],t);return e.newLine&&(i.classes.push("newline"),e.size)&&(i.style.marginTop=M(T(e.size,t))),i},mathmlBuilder(e,t){var i=new S.MathNode("mspace");return e.newLine&&(i.setAttribute("linebreak","newline"),e.size)&&i.setAttribute("height",M(T(e.size,t))),i}});function Bt(e,t,i){if(i=oe(d.math[e]&&d.math[e].replace||e,t,i))return i;throw new Error("Unsupported symbol "+e+" and font size "+t+".")}function zt(e,t,i,n){return t=i.havingBaseStyle(t),n=R.makeSpan(n.concat(t.sizingClasses(i)),[e],i),e=t.sizeMultiplier/i.sizeMultiplier,n.height*=e,n.depth*=e,n.maxFontSize=t.sizeMultiplier,n}function Ht(e,t,i){i=t.havingBaseStyle(i),i=(1-t.sizeMultiplier/i.sizeMultiplier)*t.fontMetrics().axisHeight,e.classes.push("delimcenter"),e.style.top=M(i),e.height-=i,e.depth+=i}function Wt(e,t,i,n,r,s){return e=R.makeSymbol(e,"Size"+t+"-Regular",r,n),r=zt(R.makeSpan(["delimsizing","size"+t],[e],n),E.TEXT,n,s),i&&Ht(r,n,E.TEXT),r}function Ut(e,t,i){return{type:"elem",elem:R.makeSpan(["delimsizinginner","Size1-Regular"===t?"delim-size1":"delim-size4"],[R.makeSpan([],[R.makeSymbol(e,t,i)])])}}function Vt(e,t,i){var n=(ne["Size4-Regular"][e.charCodeAt(0)]?ne["Size4-Regular"]:ne["Size1-Regular"])[e.charCodeAt(0)][4],e=new _e("inner",function(e,t){switch(e){case"⎜":return"M291 0 H417 V"+t+" H291z M291 0 H417 V"+t+" H291z";case"∣":return"M145 0 H188 V"+t+" H145z M145 0 H188 V"+t+" H145z";case"∥":return"M145 0 H188 V"+t+" H145z M145 0 H188 V"+t+" H145zM367 0 H410 V"+t+" H367z M367 0 H410 V"+t+" H367z";case"⎟":return"M457 0 H583 V"+t+" H457z M457 0 H583 V"+t+" H457z";case"⎢":return"M319 0 H403 V"+t+" H319z M319 0 H403 V"+t+" H319z";case"⎥":return"M263 0 H347 V"+t+" H263z M263 0 H347 V"+t+" H263z";case"⎪":return"M384 0 H504 V"+t+" H384z M384 0 H504 V"+t+" H384z";case"⏐":return"M312 0 H355 V"+t+" H312z M312 0 H355 V"+t+" H312z";case"‖":return"M257 0 H300 V"+t+" H257z M257 0 H300 V"+t+" H257zM478 0 H521 V"+t+" H478z M478 0 H521 V"+t+" H478z";default:return""}}(e,Math.round(1e3*t))),e=new ke([e],{width:M(n),height:M(t),style:"width:"+M(n),viewBox:"0 0 "+1e3*n+" "+Math.round(1e3*t),preserveAspectRatio:"xMinYMin"});return(e=R.makeSvgSpan([],[e],i)).height=t,e.style.height=M(t),e.style.width=M(n),{type:"elem",elem:e}}function jt(e,t,i,n,r,s){let o,a,l,h,c="",d=0,u=(o=l=h=e,a=null,"Size1-Regular");"\\uparrow"===e?l=h="⏐":"\\Uparrow"===e?l=h="‖":"\\downarrow"===e?o=l="⏐":"\\Downarrow"===e?o=l="‖":"\\updownarrow"===e?(o="\\uparrow",l="⏐",h="\\downarrow"):"\\Updownarrow"===e?(o="\\Uparrow",l="‖",h="\\Downarrow"):C.contains(Zt,e)?(l="∣",c="vert",d=333):C.contains(ei,e)?(l="∥",c="doublevert",d=556):"["===e||"\\lbrack"===e?(o="⎡",l="⎢",h="⎣",u="Size4-Regular",c="lbrack",d=667):"]"===e||"\\rbrack"===e?(o="⎤",l="⎥",h="⎦",u="Size4-Regular",c="rbrack",d=667):"\\lfloor"===e||"⌊"===e?(l=o="⎢",h="⎣",u="Size4-Regular",c="lfloor",d=667):"\\lceil"===e||"⌈"===e?(o="⎡",l=h="⎢",u="Size4-Regular",c="lceil",d=667):"\\rfloor"===e||"⌋"===e?(l=o="⎥",h="⎦",u="Size4-Regular",c="rfloor",d=667):"\\rceil"===e||"⌉"===e?(o="⎤",l=h="⎥",u="Size4-Regular",c="rceil",d=667):"("===e||"\\lparen"===e?(o="⎛",l="⎜",h="⎝",u="Size4-Regular",c="lparen",d=875):")"===e||"\\rparen"===e?(o="⎞",l="⎟",h="⎠",u="Size4-Regular",c="rparen",d=875):"\\{"===e||"\\lbrace"===e?(o="⎧",a="⎨",h="⎩",l="⎪",u="Size4-Regular"):"\\}"===e||"\\rbrace"===e?(o="⎫",a="⎬",h="⎭",l="⎪",u="Size4-Regular"):"\\lgroup"===e||"⟮"===e?(o="⎧",h="⎩",l="⎪",u="Size4-Regular"):"\\rgroup"===e||"⟯"===e?(o="⎫",h="⎭",l="⎪",u="Size4-Regular"):"\\lmoustache"===e||"⎰"===e?(o="⎧",h="⎭",l="⎪",u="Size4-Regular"):"\\rmoustache"!==e&&"⎱"!==e||(o="⎫",h="⎩",l="⎪",u="Size4-Regular");var e=Bt(o,u,r),p=e.height+e.depth,e=Bt(l,u,r),e=e.height+e.depth,m=(m=Bt(h,u,r)).height+m.depth;let g=0,f=1;if(null!==a){const e=Bt(a,u,r);g=e.height+e.depth,f=2}var v=(v=p+m+g)+Math.max(0,Math.ceil((t-v)/(f*e)))*f*e;let b=n.fontMetrics().axisHeight;i&&(b*=n.sizeMultiplier);var t=v/2-b,y=[];if(0n)return r[t]}return r[r.length-1]}function Kt(e,t,i,n,r,s){"<"===e||"\\lt"===e||"⟨"===e?e="\\langle":">"!==e&&"\\gt"!==e&&"⟩"!==e||(e="\\rangle"),d=C.contains(ni,e)?si:C.contains(ti,e)?ai:oi;var o,a,l,h,c,d=Gt(e,t,d,n);return"small"===d.type?(o=e,a=d.style,l=i,h=n,c=s,o=R.makeSymbol(o,"Main-Regular",r,h),o=zt(o,a,h,c),l&&Ht(o,h,a),o):"large"===d.type?Wt(e,d.size,i,n,r,s):jt(e,t,i,n,r,s)}const Xt={"\\global":"\\global","\\long":"\\\\globallong","\\\\globallong":"\\\\globallong","\\def":"\\gdef","\\gdef":"\\gdef","\\edef":"\\xdef","\\xdef":"\\xdef","\\let":"\\\\globallet","\\futurelet":"\\\\globalfuture"},Yt=e=>{var t=e.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(t))throw new _("Expected a control sequence",e);return t},Qt=(e,t,i,n)=>{let r=e.gullet.macros.get(i.text);null==r&&(i.noexpand=!0,r={tokens:[i],numArgs:0,unexpandable:!e.gullet.isExpandable(i.text)}),e.gullet.macros.set(t,r,n)},Jt=(w({type:"internal",names:["\\global","\\long","\\\\globallong"],props:{numArgs:0,allowedInText:!0},handler(e){var{parser:e,funcName:t}=e,i=(e.consumeSpaces(),e.fetch());if(Xt[i.text])return"\\global"!==t&&"\\\\globallong"!==t||(i.text=Xt[i.text]),P(e.parseFunction(),"internal");throw new _("Invalid token after macro prefix",i)}}),w({type:"internal",names:["\\def","\\gdef","\\edef","\\xdef"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){let{parser:t,funcName:i}=e,n=t.gullet.popToken();e=n.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(e))throw new _("Expected a control sequence",n);let r,s=0;for(var o=[[]];"{"!==t.gullet.future().text;)if("#"===(n=t.gullet.popToken()).text){if("{"===t.gullet.future().text){r=t.gullet.future(),o[s].push("{");break}if(n=t.gullet.popToken(),!/^[1-9]$/.test(n.text))throw new _('Invalid argument number "'+n.text+'"');if(parseInt(n.text)!==s+1)throw new _('Argument number "'+n.text+'" out of order');s++,o.push([])}else{if("EOF"===n.text)throw new _("Expected a macro definition");o[s].push(n.text)}let a=t.gullet.consumeArg()["tokens"];return r&&a.unshift(r),"\\edef"!==i&&"\\xdef"!==i||(a=t.gullet.expandTokens(a)).reverse(),t.gullet.macros.set(e,{tokens:a,numArgs:s,delimiters:o},i===Xt[i]),{type:"internal",mode:t.mode}}}),w({type:"internal",names:["\\let","\\\\globallet"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:e,funcName:t}=e,i=Yt(e.gullet.popToken()),n=(e.gullet.consumeSpaces(),(e=>{let t=e.gullet.popToken();return t="="===t.text&&" "===(t=e.gullet.popToken()).text?e.gullet.popToken():t})(e));return Qt(e,i,n,"\\\\globallet"===t),{type:"internal",mode:e.mode}}}),w({type:"internal",names:["\\futurelet","\\\\globalfuture"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:e,funcName:t}=e,i=Yt(e.gullet.popToken()),n=e.gullet.popToken(),r=e.gullet.popToken();return Qt(e,i,r,"\\\\globalfuture"===t),e.gullet.pushToken(r),e.gullet.pushToken(n),{type:"internal",mode:e.mode}}}),{type:"kern",size:-.008}),Zt=["|","\\lvert","\\rvert","\\vert"],ei=["\\|","\\lVert","\\rVert","\\Vert"],ti=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","\\surd"],ii=["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱"],ni=["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"],ri=[0,1.2,1.8,2.4,3],si=[{type:"small",style:E.SCRIPTSCRIPT},{type:"small",style:E.SCRIPT},{type:"small",style:E.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],oi=[{type:"small",style:E.SCRIPTSCRIPT},{type:"small",style:E.SCRIPT},{type:"small",style:E.TEXT},{type:"stack"}],ai=[{type:"small",style:E.SCRIPTSCRIPT},{type:"small",style:E.SCRIPT},{type:"small",style:E.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}];var li={sqrtImage:function(e,t){var i=t.havingBaseSizing(),n=Gt("\\surd",e*i.sizeMultiplier,ai,i);let r=i.sizeMultiplier;i=Math.max(0,t.minRuleThickness-t.fontMetrics().sqrtRuleThickness);let s,o,a=0,l=0,h=0;return o="small"===n.type?(h=1e3+1e3*i+80,e<1?r=1:e<1.4&&(r=.7),a=(1+i+.08)/r,l=(1+i)/r,(s=qt("sqrtMain",a,h,i,t)).style.minWidth="0.853em",.833/r):"large"===n.type?(h=1080*ri[n.size],l=(ri[n.size]+i)/r,a=(ri[n.size]+i+.08)/r,(s=qt("sqrtSize"+n.size,a,h,i,t)).style.minWidth="1.02em",1/r):(a=e+i+.08,l=e+i,h=Math.floor(1e3*e+i)+80,(s=qt("sqrtTall",a,h,i,t)).style.minWidth="0.742em",1.056),s.height=l,s.style.height=M(a),{span:s,advanceWidth:o,ruleWidth:(t.fontMetrics().sqrtRuleThickness+i)*r}},sizedDelim:function(e,t,i,n,r){if("<"===e||"\\lt"===e||"⟨"===e?e="\\langle":">"!==e&&"\\gt"!==e&&"⟩"!==e||(e="\\rangle"),C.contains(ti,e)||C.contains(ni,e))return Wt(e,t,!1,i,n,r);if(C.contains(ii,e))return jt(e,ri[t],!1,i,n,r);throw new _("Illegal delimiter: '"+e+"'")},sizeToMaxHeight:ri,customSizedDelim:Kt,leftRightDelim:function(e,t,i,n,r,s){var o=n.fontMetrics().axisHeight*n.sizeMultiplier,a=5/n.fontMetrics().ptPerEm,t=Math.max(t-o,i+o),i=Math.max(t/500*901,2*t-a);return Kt(e,i,!0,n,r,s)}};const hi={"\\bigl":{mclass:"mopen",size:1},"\\Bigl":{mclass:"mopen",size:2},"\\biggl":{mclass:"mopen",size:3},"\\Biggl":{mclass:"mopen",size:4},"\\bigr":{mclass:"mclose",size:1},"\\Bigr":{mclass:"mclose",size:2},"\\biggr":{mclass:"mclose",size:3},"\\Biggr":{mclass:"mclose",size:4},"\\bigm":{mclass:"mrel",size:1},"\\Bigm":{mclass:"mrel",size:2},"\\biggm":{mclass:"mrel",size:3},"\\Biggm":{mclass:"mrel",size:4},"\\big":{mclass:"mord",size:1},"\\Big":{mclass:"mord",size:2},"\\bigg":{mclass:"mord",size:3},"\\Bigg":{mclass:"mord",size:4}},ci=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","<",">","\\langle","⟨","\\rangle","⟩","\\lt","\\gt","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱","/","\\backslash","|","\\vert","\\|","\\Vert","\\uparrow","\\Uparrow","\\downarrow","\\Downarrow","\\updownarrow","\\Updownarrow","."];function di(e,t){var i=Tt(e);if(i&&C.contains(ci,i.text))return i;throw new _(i?"Invalid delimiter '"+i.text+"' after '"+t.funcName+"'":"Invalid delimiter type '"+e.type+"'",e)}function ui(e){if(!e.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}w({type:"delimsizing",names:["\\bigl","\\Bigl","\\biggl","\\Biggl","\\bigr","\\Bigr","\\biggr","\\Biggr","\\bigm","\\Bigm","\\biggm","\\Biggm","\\big","\\Big","\\bigg","\\Bigg"],props:{numArgs:1,argTypes:["primitive"]},handler:(e,t)=>{t=di(t[0],e);return{type:"delimsizing",mode:e.parser.mode,size:hi[e.funcName].size,mclass:hi[e.funcName].mclass,delim:t.text}},htmlBuilder:(e,t)=>"."===e.delim?R.makeSpan([e.mclass]):li.sizedDelim(e.delim,e.size,t,e.mode,[e.mclass]),mathmlBuilder:e=>{var t=[],t=("."!==e.delim&&t.push(ft(e.delim,e.mode)),new S.MathNode("mo",t)),e=("mopen"===e.mclass||"mclose"===e.mclass?t.setAttribute("fence","true"):t.setAttribute("fence","false"),t.setAttribute("stretchy","true"),M(li.sizeToMaxHeight[e.size]));return t.setAttribute("minsize",e),t.setAttribute("maxsize",e),t}}),w({type:"leftright-right",names:["\\right"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var i=e.parser.gullet.macros.get("\\current@color");if(i&&"string"!=typeof i)throw new _("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:e.parser.mode,delim:di(t[0],e).text,color:i}}}),w({type:"leftright",names:["\\left"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var t=di(t[0],e),e=e.parser,i=(++e.leftrightDepth,e.parseExpression(!1)),n=(--e.leftrightDepth,e.expect("\\right",!1),P(e.parseFunction(),"leftright-right"));return{type:"leftright",mode:e.mode,body:i,left:t.text,right:n.delim,rightColor:n.color}},htmlBuilder:(t,e)=>{ui(t);const i=L(t.body,e,!0,["mopen","mclose"]);let n,r,s=0,o=0,a=!1;for(let e=0;e{ui(e);var i=k(e.body,t);if("."!==e.left){const t=new S.MathNode("mo",[ft(e.left,e.mode)]);t.setAttribute("fence","true"),i.unshift(t)}if("."!==e.right){const t=new S.MathNode("mo",[ft(e.right,e.mode)]);t.setAttribute("fence","true"),e.rightColor&&t.setAttribute("mathcolor",e.rightColor),i.push(t)}return vt(i)}}),w({type:"middle",names:["\\middle"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{t=di(t[0],e);if(e.parser.leftrightDepth)return{type:"middle",mode:e.parser.mode,delim:t.text};throw new _("\\middle without preceding \\left",t)},htmlBuilder:(e,t)=>{let i;return"."===e.delim?i=it(t,[]):(i=li.sizedDelim(e.delim,1,t,e.mode,[]),e={delim:e.delim,options:t},i.isMiddle=e),i},mathmlBuilder:(e,t)=>{e="\\vert"===e.delim||"|"===e.delim?ft("|","text"):ft(e.delim,e.mode),e=new S.MathNode("mo",[e]);return e.setAttribute("fence","true"),e.setAttribute("lspace","0.05em"),e.setAttribute("rspace","0.05em"),e}});a=(n,r)=>{const s=R.wrapFragment($(n.body,r),r),o=n.label.slice(1);let a,e=r.sizeMultiplier,l=0;const h=C.isCharacterBox(n.body);if("sout"===o)(a=R.makeSpan(["stretchy","sout"])).height=r.fontMetrics().defaultRuleThickness/e,l=-.5*r.fontMetrics().xHeight;else if("phase"===o){const n=T({number:.6,unit:"pt"},r),o=T({number:.35,unit:"ex"},r),h=(e/=r.havingBaseSizing().sizeMultiplier,s.height+s.depth+n+o),C=(s.style.paddingLeft=M(h/2+n),Math.floor(1e3*h*e)),t="M400000 "+C+" H0 L"+C/2+" 0 l65 45 L145 "+(C-80)+" H400000z",i=new ke([new _e("phase",t)],{width:"400em",height:M(C/1e3),viewBox:"0 0 400000 "+C,preserveAspectRatio:"xMinYMin slice"});(a=R.makeSvgSpan(["hide-tail"],[i],r)).style.height=M(h),l=s.depth+n+o}else{/cancel/.test(o)?h||s.classes.push("cancel-pad"):"angl"===o?s.classes.push("anglpad"):s.classes.push("boxpad");let e=0,t=0,i=0;t=/box/.test(o)?(i=Math.max(r.fontMetrics().fboxrule,r.minRuleThickness),e=r.fontMetrics().fboxsep+("colorbox"===o?0:i)):"angl"===o?(i=Math.max(r.fontMetrics().defaultRuleThickness,r.minRuleThickness),e=4*i,Math.max(0,.25-s.depth)):e=h?.2:0,a=function(e,t,i,n,r){let s;n=e.height+e.depth+i+n;if(/fbox|color|angl/.test(t)){if(s=R.makeSpan(["stretchy",t],[],r),"fbox"===t){const e=r.color&&r.getColor();e&&(s.style.borderColor=e)}}else{const e=[],i=(/^[bx]cancel$/.test(t)&&e.push(new Ce({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(t)&&e.push(new Ce({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"})),new ke(e,{width:"100%",height:M(n)}));s=R.makeSvgSpan([],[i],r)}return s.height=n,s.style.height=M(n),s}(s,o,e,t,r),/fbox|boxed|fcolorbox/.test(o)?(a.style.borderStyle="solid",a.style.borderWidth=M(i)):"angl"===o&&.049!==i&&(a.style.borderTopWidth=M(i),a.style.borderRightWidth=M(i)),l=s.depth+t,n.backgroundColor&&(a.style.backgroundColor=n.backgroundColor,n.borderColor)&&(a.style.borderColor=n.borderColor)}let t;if(n.backgroundColor)t=R.makeVList({positionType:"individualShift",children:[{type:"elem",elem:a,shift:l},{type:"elem",elem:s,shift:0}]},r);else{const n=/cancel|phase/.test(o)?["svg-align"]:[];t=R.makeVList({positionType:"individualShift",children:[{type:"elem",elem:s,shift:0},{type:"elem",elem:a,shift:l,wrapperClasses:n}]},r)}return/cancel/.test(o)&&(t.height=s.height,t.depth=s.depth),/cancel/.test(o)&&!h?R.makeSpan(["mord","cancel-lap"],[t],r):R.makeSpan(["mord"],[t],r)},u=(e,t)=>{let i=0;var n=new S.MathNode(-1{if(!e.parser.settings.displayMode)throw new _("{"+e.envName+"} can be used only in display mode.")};function wi(e){if(-1===e.indexOf("ed"))return-1===e.indexOf("*")}function xi(t,e,i){let{hskipBeforeAndAfter:n,addJot:r,cols:s,arraystretch:o,colSeparationType:a,autoTag:l,singleRow:h,emptySingleRow:c,maxNumCols:d,leqno:u}=e;if(t.gullet.beginGroup(),h||t.gullet.macros.set("\\cr","\\\\\\relax"),!o){const e=t.gullet.expandMacroAsText("\\arraystretch");if(null==e)o=1;else if(!(o=parseFloat(e))||o<0)throw new _("Invalid \\arraystretch: "+e)}t.gullet.beginGroup();let p=[];const m=[p],g=[],f=[],v=null!=l?[]:void 0;function b(){l&&t.gullet.macros.set("\\@eqnsw","1",!0)}function y(){v&&(t.gullet.macros.get("\\df@tag")?(v.push(t.subparse([new vi("\\df@tag")])),t.gullet.macros.set("\\df@tag",void 0,!0)):v.push(Boolean(l)&&"1"===t.gullet.macros.get("\\@eqnsw")))}for(b(),f.push(bi(t));;){let e=t.parseExpression(!1,h?"\\end":"\\\\");t.gullet.endGroup(),t.gullet.beginGroup(),e={type:"ordgroup",mode:t.mode,body:e},i&&(e={type:"styling",mode:t.mode,style:i,body:[e]}),p.push(e);const n=t.fetch().text;if("&"===n){if(d&&p.length===d){if(h||a)throw new _("Too many tab characters: &",t.nextToken);t.settings.reportNonstrict("textEnv","Too few columns specified in the {array} column argument.")}t.consume()}else{if("\\end"===n){y(),1===p.length&&"styling"===e.type&&0===e.body[0].body.length&&(1e))for(s=0;s=h)){(0e.length));return n.cols=new Array(r).fill({type:"align",align:i}),t?{type:"leftright",mode:e.mode,body:[n],left:t[0],right:t[1],rightColor:void 0}:n},htmlBuilder:Si,mathmlBuilder:ki}),mi({type:"array",names:["smallmatrix"],props:{numArgs:0},handler(e){e=xi(e.parser,{arraystretch:.5},"script");return e.colSeparationType="small",e},htmlBuilder:Si,mathmlBuilder:ki}),mi({type:"array",names:["subarray"],props:{numArgs:1},handler(e,t){t=(Tt(t[0])?[t[0]]:P(t[0],"ordgroup").body).map(function(e){var t=Et(e).text;if(-1!=="lc".indexOf(t))return{type:"align",align:t};throw new _("Unknown column alignment: "+t,e)});if(1AV".indexOf(h)))throw new _('Expected one of "<>AV=|." after @',a[n]);for(let i=0;i<2;i++){let t=!0;for(let e=n+1;e{var i=e.font,t=t.withFont(i);return $(e.body,t)},Li=(e,t)=>{var i=e.font,t=t.withFont(i);return F(e.body,t)},$i={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak","\\bm":"\\boldsymbol"},Fi=(w({type:"font",names:["\\mathrm","\\mathit","\\mathbf","\\mathnormal","\\mathbb","\\mathcal","\\mathfrak","\\mathscr","\\mathsf","\\mathtt","\\Bbb","\\bold","\\frak"],props:{numArgs:1,allowedInArgument:!0},handler:(e,t)=>{var{parser:e,funcName:i}=e,t=tt(t[0]);let n=i;return n in $i&&(n=$i[n]),{type:"font",mode:e.mode,font:n.slice(1),body:t}},htmlBuilder:Ri,mathmlBuilder:Li}),w({type:"mclass",names:["\\boldsymbol","\\bm"],props:{numArgs:1},handler:(e,t)=>{var e=e["parser"],t=t[0],i=C.isCharacterBox(t);return{type:"mclass",mode:e.mode,mclass:Ot(t),body:[{type:"font",mode:e.mode,font:"boldsymbol",body:t}],isCharacterBox:i}}}),w({type:"font",names:["\\rm","\\sf","\\tt","\\bf","\\it","\\cal"],props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{parser:e,funcName:i,breakOnTokenText:n}=e,r=e["mode"],n=e.parseExpression(!0,n);return{type:"font",mode:r,font:"math"+i.slice(1),body:{type:"ordgroup",mode:e.mode,body:n}}},htmlBuilder:Ri,mathmlBuilder:Li}),(e,t)=>{let i=t;return"display"===e?i=i.id>=E.SCRIPT.id?i.text():E.DISPLAY:"text"===e&&i.size===E.DISPLAY.size?i=E.TEXT:"script"===e?i=E.SCRIPT:"scriptscript"===e&&(i=E.SCRIPTSCRIPT),i}),Pi=(e,t)=>{const i=Fi(e.size,t.style),n=i.fracNum(),r=i.fracDen();var s=t.havingStyle(n),o=$(e.numer,s,t);if(e.continued){const e=8.5/t.fontMetrics().ptPerEm,i=3.5/t.fontMetrics().ptPerEm;o.height=o.height{let i=new S.MathNode("mfrac",[F(e.numer,t),F(e.denom,t)]);if(e.hasBarLine){if(e.barSize){const n=T(e.barSize,t);i.setAttribute("linethickness",M(n))}}else i.setAttribute("linethickness","0px");const n=Fi(e.size,t.style);if(n.size!==t.style.size){i=new S.MathNode("mstyle",[i]);const e=n.size===E.DISPLAY.size?"true":"false";i.setAttribute("displaystyle",e),i.setAttribute("scriptlevel","0")}if(null==e.leftDelim&&null==e.rightDelim)return i;{const t=[];if(null!=e.leftDelim){const i=new S.MathNode("mo",[new S.TextNode(e.leftDelim.replace("\\",""))]);i.setAttribute("fence","true"),t.push(i)}if(t.push(i),null!=e.rightDelim){const i=new S.MathNode("mo",[new S.TextNode(e.rightDelim.replace("\\",""))]);i.setAttribute("fence","true"),t.push(i)}return vt(t)}},Oi=(w({type:"genfrac",names:["\\dfrac","\\frac","\\tfrac","\\dbinom","\\binom","\\tbinom","\\\\atopfrac","\\\\bracefrac","\\\\brackfrac"],props:{numArgs:2,allowedInArgument:!0},handler:(e,t)=>{var{parser:e,funcName:i}=e,n=t[0],t=t[1];let r,s=null,o=null,a="auto";switch(i){case"\\dfrac":case"\\frac":case"\\tfrac":r=!0;break;case"\\\\atopfrac":r=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":r=!1,s="(",o=")";break;case"\\\\bracefrac":r=!1,s="\\{",o="\\}";break;case"\\\\brackfrac":r=!1,s="[",o="]";break;default:throw new Error("Unrecognized genfrac command")}switch(i){case"\\dfrac":case"\\dbinom":a="display";break;case"\\tfrac":case"\\tbinom":a="text"}return{type:"genfrac",mode:e.mode,continued:!1,numer:n,denom:t,hasBarLine:r,leftDelim:s,rightDelim:o,size:a,barSize:null}},htmlBuilder:Pi,mathmlBuilder:Ii}),w({type:"genfrac",names:["\\cfrac"],props:{numArgs:2},handler:(e,t)=>{var e=e["parser"],i=t[0],t=t[1];return{type:"genfrac",mode:e.mode,continued:!0,numer:i,denom:t,hasBarLine:!0,leftDelim:null,rightDelim:null,size:"display",barSize:null}}}),w({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],props:{numArgs:0,infix:!0},handler(e){let t,{parser:i,funcName:n,token:r}=e;switch(n){case"\\over":t="\\frac";break;case"\\choose":t="\\binom";break;case"\\atop":t="\\\\atopfrac";break;case"\\brace":t="\\\\bracefrac";break;case"\\brack":t="\\\\brackfrac";break;default:throw new Error("Unrecognized infix genfrac command")}return{type:"infix",mode:i.mode,replaceWith:t,token:r}}}),["display","text","script","scriptscript"]),Di=(w({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,allowedInArgument:!0,argTypes:["math","math","size","text","math","math"]},handler(e,t){var e=e["parser"],i=t[4],n=t[5],r=tt(t[0]),r="atom"===r.type&&"open"===r.family?Ti(r.text):null,s=tt(t[1]),s="atom"===s.type&&"close"===s.family?Ti(s.text):null,o=P(t[2],"size");let a,l=null,h=(a=!!o.isBlank||0<(l=o.value).number,"auto"),c=t[3];if("ordgroup"===c.type){if(0{var e=e["parser"],i=t[0],n=function(e){if(e)return e;throw new Error("Expected non-null, but got "+String(e))}(P(t[1],"infix").size),t=t[2],r=0{var i=t.style;let n,r;r="supsub"===e.type?(n=e.sup?$(e.sup,t.havingStyle(i.sup()),t):$(e.sub,t.havingStyle(i.sub()),t),P(e.base,"horizBrace")):P(e,"horizBrace");i=$(r.base,t.havingBaseStyle(E.DISPLAY)),e=Ct(r,t);let s;if((r.isOver?(s=R.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:i},{type:"kern",size:.1},{type:"elem",elem:e}]},t)).children[0].children[0].children[1]:(s=R.makeVList({positionType:"bottom",positionData:i.depth+.1+e.height,children:[{type:"elem",elem:e},{type:"kern",size:.1},{type:"elem",elem:i}]},t)).children[0].children[0].children[0]).classes.push("svg-align"),n){const e=R.makeSpan(["mord",r.isOver?"mover":"munder"],[s],t);s=r.isOver?R.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:e},{type:"kern",size:.2},{type:"elem",elem:n}]},t):R.makeVList({positionType:"bottom",positionData:e.depth+.2+n.height+n.depth,children:[{type:"elem",elem:n},{type:"kern",size:.2},{type:"elem",elem:e}]},t)}return R.makeSpan(["mord",r.isOver?"mover":"munder"],[s],t)}),Ni=(w({type:"horizBrace",names:["\\overbrace","\\underbrace"],props:{numArgs:1},handler(e,t){var{parser:e,funcName:i}=e;return{type:"horizBrace",mode:e.mode,label:i,isOver:/^\\over/.test(i),base:t[0]}},htmlBuilder:Di,mathmlBuilder:(e,t)=>{var i=_t(e.label);return new S.MathNode(e.isOver?"mover":"munder",[F(e.base,t),i])}}),w({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:(e,t)=>{var e=e["parser"],i=t[1],t=P(t[0],"url").url;return e.settings.isTrusted({command:"\\href",url:t})?{type:"href",mode:e.mode,href:t,body:x(i)}:e.formatUnsupportedCmd("\\href")},htmlBuilder:(e,t)=>{var i=L(e.body,t,!1);return R.makeAnchor(e.href,[],i,t)},mathmlBuilder:(e,t)=>{let i=yt(e.body,t);return(i=i instanceof A?i:new A("mrow",[i])).setAttribute("href",e.href),i}}),w({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:(e,t)=>{var e=e["parser"],i=P(t[0],"url").url;if(!e.settings.isTrusted({command:"\\url",url:i}))return e.formatUnsupportedCmd("\\url");var n=[];for(let t=0;t{let{parser:i,funcName:n}=t;var r=P(e[0],"raw").string,t=e[1];let s;i.settings.strict&&i.settings.reportNonstrict("htmlExtension","HTML extension is disabled on strict mode");var o={};switch(n){case"\\htmlClass":o.class=r,s={command:"\\htmlClass",class:r};break;case"\\htmlId":o.id=r,s={command:"\\htmlId",id:r};break;case"\\htmlStyle":o.style=r,s={command:"\\htmlStyle",style:r};break;case"\\htmlData":{const t=r.split(",");for(let e=0;e{var i=L(e.body,t,!1),n=["enclosing"],r=(e.attributes.class&&n.push(...e.attributes.class.trim().split(/\s+/)),R.makeSpan(n,i,t));for(const t in e.attributes)"class"!==t&&e.attributes.hasOwnProperty(t)&&r.setAttribute(t,e.attributes[t]);return r},mathmlBuilder:(e,t)=>yt(e.body,t)}),w({type:"htmlmathml",names:["\\html@mathml"],props:{numArgs:2,allowedInText:!0},handler:(e,t)=>{e=e.parser;return{type:"htmlmathml",mode:e.mode,html:x(t[0]),mathml:x(t[1])}},htmlBuilder:(e,t)=>{e=L(e.html,t,!1);return R.makeFragment(e)},mathmlBuilder:(e,t)=>yt(e.mathml,t)}),w({type:"includegraphics",names:["\\includegraphics"],props:{numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1},handler:(t,e,i)=>{let n=t["parser"],r={number:0,unit:"em"},s={number:.9,unit:"em"},o={number:0,unit:"em"},a="";if(i[0]){const t=P(i[0],"raw").string.split(",");for(let e=0;e{var i=T(e.height,t);let n=0,r=(0{var i=new S.MathNode("mglyph",[]);i.setAttribute("alt",e.alt);const n=T(e.height,t);let r=0;if(0{var{parser:e,funcName:i}=e,t=t[0];return{type:"lap",mode:e.mode,alignment:i.slice(5),body:t}},htmlBuilder:(e,t)=>{let i;i="clap"===e.alignment?(i=R.makeSpan([],[$(e.body,t)]),R.makeSpan(["inner"],[i],t)):R.makeSpan(["inner"],[$(e.body,t)]);var n=R.makeSpan(["fix"],[]);let r=R.makeSpan([e.alignment],[i,n],t);e=R.makeSpan(["strut"]);return e.style.height=M(r.height+r.depth),r.depth&&(e.style.verticalAlign=M(-r.depth)),r.children.unshift(e),r=R.makeSpan(["thinbox"],[r],t),R.makeSpan(["mord","vbox"],[r],t)},mathmlBuilder:(e,t)=>{var i=new S.MathNode("mpadded",[F(e.body,t)]);if("rlap"!==e.alignment){const t="llap"===e.alignment?"-1":"-0.5";i.setAttribute("lspace",t+"width")}return i.setAttribute("width","0px"),i}}),w({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){var{funcName:e,parser:i}=e,n=i.mode,e=(i.switchMode("math"),"\\("===e?"\\)":"$"),r=i.parseExpression(!1,e);return i.expect(e),i.switchMode(n),{type:"styling",mode:i.mode,style:"text",body:r}}}),w({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){throw new _("Mismatched "+e.funcName)}}),(e,t)=>{switch(t.style.size){case E.DISPLAY.size:return e.display;case E.TEXT.size:return e.text;case E.SCRIPT.size:return e.script;case E.SCRIPTSCRIPT.size:return e.scriptscript;default:return e.text}}),Bi=(w({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4,primitive:!0},handler:(e,t)=>{e=e.parser;return{type:"mathchoice",mode:e.mode,display:x(t[0]),text:x(t[1]),script:x(t[2]),scriptscript:x(t[3])}},htmlBuilder:(e,t)=>{e=Ni(e,t),e=L(e,t,!1);return R.makeFragment(e)},mathmlBuilder:(e,t)=>{e=Ni(e,t);return yt(e,t)}}),(e,t,i,n,r,s,o)=>{e=R.makeSpan([],[e]);var a=i&&C.isCharacterBox(i);let l,h,c;if(t){const e=$(t,n.havingStyle(r.sup()),n);h={elem:e,kern:Math.max(n.fontMetrics().bigOpSpacing1,n.fontMetrics().bigOpSpacing3-e.depth)}}if(i){const e=$(i,n.havingStyle(r.sub()),n);l={elem:e,kern:Math.max(n.fontMetrics().bigOpSpacing2,n.fontMetrics().bigOpSpacing4-e.height)}}if(h&&l){const t=n.fontMetrics().bigOpSpacing5+l.elem.height+l.elem.depth+l.kern+e.depth+o;c=R.makeVList({positionType:"bottom",positionData:t,children:[{type:"kern",size:n.fontMetrics().bigOpSpacing5},{type:"elem",elem:l.elem,marginLeft:M(-s)},{type:"kern",size:l.kern},{type:"elem",elem:e},{type:"kern",size:h.kern},{type:"elem",elem:h.elem,marginLeft:M(s)},{type:"kern",size:n.fontMetrics().bigOpSpacing5}]},n)}else if(l){const t=e.height-o;c=R.makeVList({positionType:"top",positionData:t,children:[{type:"kern",size:n.fontMetrics().bigOpSpacing5},{type:"elem",elem:l.elem,marginLeft:M(-s)},{type:"kern",size:l.kern},{type:"elem",elem:e}]},n)}else{if(!h)return e;{const t=e.depth+o;c=R.makeVList({positionType:"bottom",positionData:t,children:[{type:"elem",elem:e},{type:"kern",size:h.kern},{type:"elem",elem:h.elem,marginLeft:M(s)},{type:"kern",size:n.fontMetrics().bigOpSpacing5}]},n)}}t=[c];if(l&&0!==s&&!a){const e=R.makeSpan(["mspace"],[],n);e.style.marginRight=M(s),t.unshift(e)}return R.makeSpan(["mop","op-limits"],t,n)}),zi=["\\smallint"],Hi=(t,i)=>{let e,n,r,s=!1;"supsub"===t.type?(e=t.sup,n=t.sub,r=P(t.base,"op"),s=!0):r=P(t,"op");t=i.style;let o,a=!1;if(t.size===E.DISPLAY.size&&r.symbol&&!C.contains(zi,r.name)&&(a=!0),r.symbol){const t=a?"Size2-Regular":"Size1-Regular";let e="";if("\\oiint"!==r.name&&"\\oiiint"!==r.name||(e=r.name.slice(1),r.name="oiint"===e?"\\iint":"\\iiint"),o=R.makeSymbol(r.name,t,"math",i,["mop","op-symbol",a?"large-op":"small-op"]),0{let i;if(e.symbol)i=new A("mo",[ft(e.name,e.mode)]),C.contains(zi,e.name)&&i.setAttribute("largeop","false");else if(e.body)i=new A("mo",k(e.body,t));else{i=new A("mi",[new gt(e.name.slice(1))]);const t=new A("mo",[ft("⁡","text")]);i=e.parentIsSupSub?new A("mrow",[i,t]):mt([i,t])}return i},Ui={"∏":"\\prod","∐":"\\coprod","∑":"\\sum","⋀":"\\bigwedge","⋁":"\\bigvee","⋂":"\\bigcap","⋃":"\\bigcup","⨀":"\\bigodot","⨁":"\\bigoplus","⨂":"\\bigotimes","⨄":"\\biguplus","⨆":"\\bigsqcup"},Vi=(w({type:"op",names:["\\coprod","\\bigvee","\\bigwedge","\\biguplus","\\bigcap","\\bigcup","\\intop","\\prod","\\sum","\\bigotimes","\\bigoplus","\\bigodot","\\bigsqcup","\\smallint","∏","∐","∑","⋀","⋁","⋂","⋃","⨀","⨁","⨂","⨄","⨆"],props:{numArgs:0},handler:(e,t)=>{let{parser:i,funcName:n}=e,r=n;return 1===r.length&&(r=Ui[r]),{type:"op",mode:i.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:r}},htmlBuilder:Hi,mathmlBuilder:Wi}),w({type:"op",names:["\\mathop"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{e=e.parser,t=t[0];return{type:"op",mode:e.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:x(t)}},htmlBuilder:Hi,mathmlBuilder:Wi}),{"∫":"\\int","∬":"\\iint","∭":"\\iiint","∮":"\\oint","∯":"\\oiint","∰":"\\oiiint"}),ji=(w({type:"op",names:["\\arcsin","\\arccos","\\arctan","\\arctg","\\arcctg","\\arg","\\ch","\\cos","\\cosec","\\cosh","\\cot","\\cotg","\\coth","\\csc","\\ctg","\\cth","\\deg","\\dim","\\exp","\\hom","\\ker","\\lg","\\ln","\\log","\\sec","\\sin","\\sinh","\\sh","\\tan","\\tanh","\\tg","\\th"],props:{numArgs:0},handler(e){var{parser:e,funcName:t}=e;return{type:"op",mode:e.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:t}},htmlBuilder:Hi,mathmlBuilder:Wi}),w({type:"op",names:["\\det","\\gcd","\\inf","\\lim","\\max","\\min","\\Pr","\\sup"],props:{numArgs:0},handler(e){var{parser:e,funcName:t}=e;return{type:"op",mode:e.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:t}},htmlBuilder:Hi,mathmlBuilder:Wi}),w({type:"op",names:["\\int","\\iint","\\iiint","\\oint","\\oiint","\\oiiint","∫","∬","∭","∮","∯","∰"],props:{numArgs:0},handler(e){let{parser:t,funcName:i}=e,n=i;return 1===n.length&&(n=Vi[n]),{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:n}},htmlBuilder:Hi,mathmlBuilder:Wi}),(e,t)=>{let i,n,r,s,o=!1;if("supsub"===e.type?(i=e.sup,n=e.sub,r=P(e.base,"operatorname"),o=!0):r=P(e,"operatorname"),0{var t=e.text;return"string"==typeof t?{type:"textord",mode:e.mode,text:t}:e}),i=L(e,t.withFont("mathrm"),!0);for(let e=0;e{var{parser:e,funcName:i}=e,t=t[0];return{type:"operatorname",mode:e.mode,body:x(t),alwaysHandleSupSub:"\\operatornamewithlimits"===i,limits:!1,parentIsSupSub:!1}},htmlBuilder:ji,mathmlBuilder:(t,i)=>{let n=k(t.body,i.withFont("mathrm")),r=!0;for(let e=0;ee.toText()).join("");n=[new S.TextNode(t)]}var i=new S.MathNode("mi",n),e=(i.setAttribute("mathvariant","normal"),new S.MathNode("mo",[ft("⁡","text")]));return t.parentIsSupSub?new S.MathNode("mrow",[i,e]):S.newDocumentFragment([i,e])}}),I("\\operatorname","\\@ifstar\\operatornamewithlimits\\operatorname@"),et({type:"ordgroup",htmlBuilder(e,t){return e.semisimple?R.makeFragment(L(e.body,t,!1)):R.makeSpan(["mord"],L(e.body,t,!0),t)},mathmlBuilder(e,t){return yt(e.body,t,!0)}}),w({type:"overline",names:["\\overline"],props:{numArgs:1},handler(e,t){e=e.parser,t=t[0];return{type:"overline",mode:e.mode,body:t}},htmlBuilder(e,t){var e=$(e.body,t.havingCrampedStyle()),i=R.makeLineSpan("overline-line",t),n=t.fontMetrics().defaultRuleThickness,e=R.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:e},{type:"kern",size:3*n},{type:"elem",elem:i},{type:"kern",size:n}]},t);return R.makeSpan(["mord","overline"],[e],t)},mathmlBuilder(e,t){var i=new S.MathNode("mo",[new S.TextNode("‾")]),e=(i.setAttribute("stretchy","true"),new S.MathNode("mover",[F(e.body,t),i]));return e.setAttribute("accent","true"),e}}),w({type:"phantom",names:["\\phantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{e=e.parser,t=t[0];return{type:"phantom",mode:e.mode,body:x(t)}},htmlBuilder:(e,t)=>{e=L(e.body,t.withPhantom(),!1);return R.makeFragment(e)},mathmlBuilder:(e,t)=>{e=k(e.body,t);return new S.MathNode("mphantom",e)}}),w({type:"hphantom",names:["\\hphantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{e=e.parser,t=t[0];return{type:"hphantom",mode:e.mode,body:t}},htmlBuilder:(e,t)=>{let i=R.makeSpan([],[$(e.body,t.withPhantom())]);if(i.height=0,i.depth=0,i.children)for(let e=0;e{e=k(x(e.body),t),t=new S.MathNode("mphantom",e),e=new S.MathNode("mpadded",[t]);return e.setAttribute("height","0px"),e.setAttribute("depth","0px"),e}}),w({type:"vphantom",names:["\\vphantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{e=e.parser,t=t[0];return{type:"vphantom",mode:e.mode,body:t}},htmlBuilder:(e,t)=>{var e=R.makeSpan(["inner"],[$(e.body,t.withPhantom())]),i=R.makeSpan(["fix"],[]);return R.makeSpan(["mord","rlap"],[e,i],t)},mathmlBuilder:(e,t)=>{e=k(x(e.body),t),t=new S.MathNode("mphantom",e),e=new S.MathNode("mpadded",[t]);return e.setAttribute("width","0px"),e}}),w({type:"raisebox",names:["\\raisebox"],props:{numArgs:2,argTypes:["size","hbox"],allowedInText:!0},handler(e,t){var e=e["parser"],i=P(t[0],"size").value,t=t[1];return{type:"raisebox",mode:e.mode,dy:i,body:t}},htmlBuilder(e,t){var i=$(e.body,t),e=T(e.dy,t);return R.makeVList({positionType:"shift",positionData:-e,children:[{type:"elem",elem:i}]},t)},mathmlBuilder(e,t){t=new S.MathNode("mpadded",[F(e.body,t)]),e=e.dy.number+e.dy.unit;return t.setAttribute("voffset",e),t}}),w({type:"internal",names:["\\relax"],props:{numArgs:0,allowedInText:!0},handler(e){e=e.parser;return{type:"internal",mode:e.mode}}}),w({type:"rule",names:["\\rule"],props:{numArgs:2,numOptionalArgs:1,argTypes:["size","size","size"]},handler(e,t,i){var e=e["parser"],i=i[0],n=P(t[0],"size"),t=P(t[1],"size");return{type:"rule",mode:e.mode,shift:i&&P(i,"size").value,width:n.value,height:t.value}},htmlBuilder(e,t){var i=R.makeSpan(["mord","rule"],[],t),n=T(e.width,t),r=T(e.height,t),e=e.shift?T(e.shift,t):0;return i.style.borderRightWidth=M(n),i.style.borderTopWidth=M(r),i.style.bottom=M(e),i.width=n,i.height=r+e,i.depth=-e,i.maxFontSize=1.125*r*t.sizeMultiplier,i},mathmlBuilder(e,t){var i=T(e.width,t),n=T(e.height,t),e=e.shift?T(e.shift,t):0,t=t.color&&t.getColor()||"black",r=new S.MathNode("mspace"),t=(r.setAttribute("mathbackground",t),r.setAttribute("width",M(i)),r.setAttribute("height",M(n)),new S.MathNode("mpadded",[r]));return 0<=e?t.setAttribute("height",M(e)):(t.setAttribute("height",M(e)),t.setAttribute("depth",M(-e))),t.setAttribute("voffset",M(e)),t}});const Gi=["\\tiny","\\sixptsize","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"],Ki=(w({type:"sizing",names:Gi,props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{breakOnTokenText:e,funcName:i,parser:n}=e,e=n.parseExpression(!1,e);return{type:"sizing",mode:n.mode,size:Gi.indexOf(i)+1,body:e}},htmlBuilder:(e,t)=>{var i=t.havingSize(e.size);return qi(e.body,i,t)},mathmlBuilder:(e,t)=>{t=t.havingSize(e.size),e=k(e.body,t),e=new S.MathNode("mstyle",e);return e.setAttribute("mathsize",M(t.sizeMultiplier)),e}}),w({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:(e,t,i)=>{let n=e["parser"],r=!1,s=!1;var o=i[0]&&P(i[0],"ordgroup");if(o){var a;for(let e=0;e{var i=R.makeSpan([],[$(e.body,t)]);if(!e.smashHeight&&!e.smashDepth)return i;if(e.smashHeight&&(i.height=0,i.children))for(let e=0;e{t=new S.MathNode("mpadded",[F(e.body,t)]);return e.smashHeight&&t.setAttribute("height","0px"),e.smashDepth&&t.setAttribute("depth","0px"),t}}),w({type:"sqrt",names:["\\sqrt"],props:{numArgs:1,numOptionalArgs:1},handler(e,t,i){e=e.parser,i=i[0],t=t[0];return{type:"sqrt",mode:e.mode,body:t,index:i}},htmlBuilder(e,t){let i=$(e.body,t.havingCrampedStyle());0===i.height&&(i.height=t.fontMetrics().xHeight),i=R.wrapFragment(i,t);const n=t.fontMetrics().defaultRuleThickness;let r=n,s=(t.style.idi.height+i.depth+s&&(s=(s+c-i.height-i.depth)/2);var d=a.height-i.height-s-l,d=(i.style.paddingLeft=M(h),R.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:i,wrapperClasses:["svg-align"]},{type:"kern",size:-(i.height+d)},{type:"elem",elem:a},{type:"kern",size:l}]},t));if(e.index){const i=t.havingStyle(E.SCRIPTSCRIPT),n=$(e.index,i,t),r=.6*(d.height-d.depth),s=R.makeVList({positionType:"shift",positionData:-r,children:[{type:"elem",elem:n}]},t),o=R.makeSpan(["root"],[s]);return R.makeSpan(["mord","sqrt"],[o,d],t)}return R.makeSpan(["mord","sqrt"],[d],t)},mathmlBuilder(e,t){var{body:e,index:i}=e;return i?new S.MathNode("mroot",[F(e,t),F(i,t)]):new S.MathNode("msqrt",[F(e,t)])}}),{display:E.DISPLAY,text:E.TEXT,script:E.SCRIPT,scriptscript:E.SCRIPTSCRIPT}),Xi=(w({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e,t){var{breakOnTokenText:e,funcName:i,parser:n}=e,e=n.parseExpression(!0,e),i=i.slice(1,i.length-5);return{type:"styling",mode:n.mode,style:i,body:e}},htmlBuilder(e,t){var i=Ki[e.style],i=t.havingStyle(i).withFont("");return qi(e.body,i,t)},mathmlBuilder(e,t){var i=Ki[e.style],t=t.havingStyle(i),i=k(e.body,t),t=new S.MathNode("mstyle",i),i={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]}[e.style];return t.setAttribute("scriptlevel",i[0]),t.setAttribute("displaystyle",i[1]),t}}),et({type:"supsub",htmlBuilder(e,t){n=t;const i=(s=(r=e).base)?"op"===s.type?s.limits&&(n.style.size===E.DISPLAY.size||s.alwaysHandleSupSub)?Hi:null:"operatorname"===s.type?s.alwaysHandleSupSub&&(n.style.size===E.DISPLAY.size||s.limits)?ji:null:"accent"===s.type?C.isCharacterBox(s.base)?Mt:null:"horizBrace"===s.type&&!r.sub===s.isOver?Di:null:null;if(i)return i(e,t);var{base:n,sup:r,sub:s}=e,o=$(n,t);let a,l;var h=t.fontMetrics();let c=0,d=0;n=n&&C.isCharacterBox(n);if(r){const e=t.havingStyle(t.style.sup());a=$(r,e,t),n||(c=o.height-e.fontMetrics().supDrop*e.sizeMultiplier/t.sizeMultiplier)}if(s){const e=t.havingStyle(t.style.sub());l=$(s,e,t),n||(d=o.depth+e.fontMetrics().subDrop*e.sizeMultiplier/t.sizeMultiplier)}r=t.style===E.DISPLAY?h.sup1:t.style.cramped?h.sup3:h.sup2,s=t.sizeMultiplier,n=M(.5/h.ptPerEm/s);let u,p=null;if(l){const t=e.base&&"op"===e.base.type&&e.base.name&&("\\oiint"===e.base.name||"\\oiiint"===e.base.name);(o instanceof m||t)&&(p=M(-o.italic))}if(a&&l){c=Math.max(c,r,a.depth+.25*h.xHeight),d=Math.max(d,h.sub2);const e=4*h.defaultRuleThickness;if(c-a.depth-(l.height-d){var e=new S.MathNode("mtd",[]);return e.setAttribute("width","50%"),e}),Zi=(et({type:"tag",mathmlBuilder(e,t){e=new S.MathNode("mtable",[new S.MathNode("mtr",[Ji(),new S.MathNode("mtd",[yt(e.body,t)]),Ji(),new S.MathNode("mtd",[yt(e.tag,t)])])]);return e.setAttribute("width","100%"),e}}),{"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"}),en={"\\textbf":"textbf","\\textmd":"textmd"},tn={"\\textit":"textit","\\textup":"textup"},nn=(e,t)=>{e=e.font;return e?Zi[e]?t.withTextFontFamily(Zi[e]):en[e]?t.withTextFontWeight(en[e]):t.withTextFontShape(tn[e]):t},rn=(w({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textbf","\\textmd","\\textit","\\textup"],props:{numArgs:1,argTypes:["text"],allowedInArgument:!0,allowedInText:!0},handler(e,t){var{parser:e,funcName:i}=e,t=t[0];return{type:"text",mode:e.mode,body:x(t),font:i}},htmlBuilder(e,t){t=nn(e,t),e=L(e.body,t,!0);return R.makeSpan(["mord","text"],e,t)},mathmlBuilder(e,t){t=nn(e,t);return yt(e.body,t)}}),w({type:"underline",names:["\\underline"],props:{numArgs:1,allowedInText:!0},handler(e,t){e=e.parser;return{type:"underline",mode:e.mode,body:t[0]}},htmlBuilder(e,t){var e=$(e.body,t),i=R.makeLineSpan("underline-line",t),n=t.fontMetrics().defaultRuleThickness,i=R.makeVList({positionType:"top",positionData:e.height,children:[{type:"kern",size:n},{type:"elem",elem:i},{type:"kern",size:3*n},{type:"elem",elem:e}]},t);return R.makeSpan(["mord","underline"],[i],t)},mathmlBuilder(e,t){var i=new S.MathNode("mo",[new S.TextNode("‾")]),e=(i.setAttribute("stretchy","true"),new S.MathNode("munder",[F(e.body,t),i]));return e.setAttribute("accentunder","true"),e}}),w({type:"vcenter",names:["\\vcenter"],props:{numArgs:1,argTypes:["original"],allowedInText:!1},handler(e,t){e=e.parser;return{type:"vcenter",mode:e.mode,body:t[0]}},htmlBuilder(e,t){var e=$(e.body,t),i=t.fontMetrics().axisHeight,i=.5*(e.height-i-(e.depth+i));return R.makeVList({positionType:"shift",positionData:i,children:[{type:"elem",elem:e}]},t)},mathmlBuilder(e,t){return new S.MathNode("mpadded",[F(e.body,t)],["vcenter"])}}),w({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler(e,t,i){throw new _("\\verb ended by end of line instead of matching delimiter")},htmlBuilder(i,e){var n=rn(i),r=[],s=e.havingStyle(e.style.text());for(let t=0;te.body.replace(/ /g,e.star?"␣":" "));var sn=Qe;const on=new RegExp("[̀-ͯ]+$");class an{constructor(e,t){this.input=void 0,this.settings=void 0,this.tokenRegex=void 0,this.catcodes=void 0,this.input=e,this.settings=t,this.tokenRegex=new RegExp("([ \r\n\t]+)|\\\\(\n|[ \r\t]+\n?)[ \r\t]*|([!-\\[\\]-‧‪-퟿豈-￿][̀-ͯ]*|[\ud800-\udbff][\udc00-\udfff][̀-ͯ]*|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5|(\\\\[a-zA-Z@]+)[ \r\n\t]*|\\\\[^\ud800-\udfff])","g"),this.catcodes={"%":14,"~":13}}setCatcode(e,t){this.catcodes[e]=t}lex(){const e=this.input,t=this.tokenRegex.lastIndex;if(t===e.length)return new vi("EOF",new fi(this,t,t));var i=this.tokenRegex.exec(e);if(null===i||i.index!==t)throw new _("Unexpected character: '"+e[t]+"'",new vi(e[t],new fi(this,t,t+1)));i=i[6]||i[3]||(i[2]?"\\ ":" ");if(14!==this.catcodes[i])return new vi(i,new fi(this,t,this.tokenRegex.lastIndex));{const t=e.indexOf("\n",this.tokenRegex.lastIndex);return-1===t?(this.tokenRegex.lastIndex=e.length,this.settings.reportNonstrict("commentAtEnd","% comment has no terminating newline; LaTeX would fail because of commenting the end of math mode (e.g. $)")):this.tokenRegex.lastIndex=t+1,this.lex()}}}class ln{constructor(e,t){void 0===e&&(e={}),void 0===t&&(t={}),this.current=void 0,this.builtins=void 0,this.undefStack=void 0,this.current=t,this.builtins=e,this.undefStack=[]}beginGroup(){this.undefStack.push({})}endGroup(){if(0===this.undefStack.length)throw new _("Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug");var e=this.undefStack.pop();for(const t in e)e.hasOwnProperty(t)&&(null==e[t]?delete this.current[t]:this.current[t]=e[t])}endGroups(){for(;0=t)throw new _("Invalid base-"+t+" digit "+i.text);for(var r;null!=(r=cn[e.future().text])&&r{let n=i.consumeArg().tokens;if(1!==n.length)throw new _("\\newcommand's first argument must be a macro name");var r=n[0].text,s=i.isDefined(r);if(s&&!e)throw new _("\\newcommand{"+r+"} attempting to redefine "+r+"; use \\renewcommand");if(!s&&!t)throw new _("\\renewcommand{"+r+"} when command "+r+" does not yet exist; use \\newcommand");let o=0;if(1===(n=i.consumeArg().tokens).length&&"["===n[0].text){let e="",t=i.expandNextToken();for(;"]"!==t.text&&"EOF"!==t.text;)e+=t.text,t=i.expandNextToken();if(!e.match(/^\s*[0-9]+\s*$/))throw new _("Invalid number of arguments: "+e);o=parseInt(e),n=i.consumeArg().tokens}return i.macros.set(r,{tokens:n,numArgs:o}),""}),un=(I("\\newcommand",e=>dn(e,!1,!0)),I("\\renewcommand",e=>dn(e,!0,!1)),I("\\providecommand",e=>dn(e,!0,!0)),I("\\message",e=>{e=e.consumeArgs(1)[0];return console.log(e.reverse().map(e=>e.text).join("")),""}),I("\\errmessage",e=>{e=e.consumeArgs(1)[0];return console.error(e.reverse().map(e=>e.text).join("")),""}),I("\\show",e=>{var t=e.popToken(),i=t.text;return console.log(t,e.macros.get(i),sn[i],d.math[i],d.text[i]),""}),I("\\bgroup","{"),I("\\egroup","}"),I("~","\\nobreakspace"),I("\\lq","`"),I("\\rq","'"),I("\\aa","\\r a"),I("\\AA","\\r A"),I("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`©}"),I("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}"),I("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`®}"),I("ℬ","\\mathscr{B}"),I("ℰ","\\mathscr{E}"),I("ℱ","\\mathscr{F}"),I("ℋ","\\mathscr{H}"),I("ℐ","\\mathscr{I}"),I("ℒ","\\mathscr{L}"),I("ℳ","\\mathscr{M}"),I("ℛ","\\mathscr{R}"),I("ℭ","\\mathfrak{C}"),I("ℌ","\\mathfrak{H}"),I("ℨ","\\mathfrak{Z}"),I("\\Bbbk","\\Bbb{k}"),I("·","\\cdotp"),I("\\llap","\\mathllap{\\textrm{#1}}"),I("\\rlap","\\mathrlap{\\textrm{#1}}"),I("\\clap","\\mathclap{\\textrm{#1}}"),I("\\mathstrut","\\vphantom{(}"),I("\\underbar","\\underline{\\text{#1}}"),I("\\not",'\\html@mathml{\\mathrel{\\mathrlap\\@not}}{\\char"338}'),I("\\neq","\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`≠}}"),I("\\ne","\\neq"),I("≠","\\neq"),I("\\notin","\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`∉}}"),I("∉","\\notin"),I("≘","\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`≘}}"),I("≙","\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`≘}}"),I("≚","\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`≚}}"),I("≛","\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`≛}}"),I("≝","\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`≝}}"),I("≞","\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`≞}}"),I("≟","\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`≟}}"),I("⟂","\\perp"),I("‼","\\mathclose{!\\mkern-0.8mu!}"),I("∌","\\notni"),I("⌜","\\ulcorner"),I("⌝","\\urcorner"),I("⌞","\\llcorner"),I("⌟","\\lrcorner"),I("©","\\copyright"),I("®","\\textregistered"),I("️","\\textregistered"),I("\\ulcorner",'\\html@mathml{\\@ulcorner}{\\mathop{\\char"231c}}'),I("\\urcorner",'\\html@mathml{\\@urcorner}{\\mathop{\\char"231d}}'),I("\\llcorner",'\\html@mathml{\\@llcorner}{\\mathop{\\char"231e}}'),I("\\lrcorner",'\\html@mathml{\\@lrcorner}{\\mathop{\\char"231f}}'),I("\\vdots","\\mathord{\\varvdots\\rule{0pt}{15pt}}"),I("⋮","\\vdots"),I("\\varGamma","\\mathit{\\Gamma}"),I("\\varDelta","\\mathit{\\Delta}"),I("\\varTheta","\\mathit{\\Theta}"),I("\\varLambda","\\mathit{\\Lambda}"),I("\\varXi","\\mathit{\\Xi}"),I("\\varPi","\\mathit{\\Pi}"),I("\\varSigma","\\mathit{\\Sigma}"),I("\\varUpsilon","\\mathit{\\Upsilon}"),I("\\varPhi","\\mathit{\\Phi}"),I("\\varPsi","\\mathit{\\Psi}"),I("\\varOmega","\\mathit{\\Omega}"),I("\\substack","\\begin{subarray}{c}#1\\end{subarray}"),I("\\colon","\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu\\relax"),I("\\boxed","\\fbox{$\\displaystyle{#1}$}"),I("\\iff","\\DOTSB\\;\\Longleftrightarrow\\;"),I("\\implies","\\DOTSB\\;\\Longrightarrow\\;"),I("\\impliedby","\\DOTSB\\;\\Longleftarrow\\;"),{",":"\\dotsc","\\not":"\\dotsb","+":"\\dotsb","=":"\\dotsb","<":"\\dotsb",">":"\\dotsb","-":"\\dotsb","*":"\\dotsb",":":"\\dotsb","\\DOTSB":"\\dotsb","\\coprod":"\\dotsb","\\bigvee":"\\dotsb","\\bigwedge":"\\dotsb","\\biguplus":"\\dotsb","\\bigcap":"\\dotsb","\\bigcup":"\\dotsb","\\prod":"\\dotsb","\\sum":"\\dotsb","\\bigotimes":"\\dotsb","\\bigoplus":"\\dotsb","\\bigodot":"\\dotsb","\\bigsqcup":"\\dotsb","\\And":"\\dotsb","\\longrightarrow":"\\dotsb","\\Longrightarrow":"\\dotsb","\\longleftarrow":"\\dotsb","\\Longleftarrow":"\\dotsb","\\longleftrightarrow":"\\dotsb","\\Longleftrightarrow":"\\dotsb","\\mapsto":"\\dotsb","\\longmapsto":"\\dotsb","\\hookrightarrow":"\\dotsb","\\doteq":"\\dotsb","\\mathbin":"\\dotsb","\\mathrel":"\\dotsb","\\relbar":"\\dotsb","\\Relbar":"\\dotsb","\\xrightarrow":"\\dotsb","\\xleftarrow":"\\dotsb","\\DOTSI":"\\dotsi","\\int":"\\dotsi","\\oint":"\\dotsi","\\iint":"\\dotsi","\\iiint":"\\dotsi","\\iiiint":"\\dotsi","\\idotsint":"\\dotsi","\\DOTSX":"\\dotsx"}),pn=(I("\\dots",function(e){let t="\\dotso";e=e.expandAfterFuture().text;return e in un?t=un[e]:("\\not"===e.slice(0,4)||e in d.math&&C.contains(["bin","rel"],d.math[e].group))&&(t="\\dotsb"),t}),{")":!0,"]":!0,"\\rbrack":!0,"\\}":!0,"\\rbrace":!0,"\\rangle":!0,"\\rceil":!0,"\\rfloor":!0,"\\rgroup":!0,"\\rmoustache":!0,"\\right":!0,"\\bigr":!0,"\\biggr":!0,"\\Bigr":!0,"\\Biggr":!0,$:!0,";":!0,".":!0,",":!0});I("\\dotso",function(e){return e.future().text in pn?"\\ldots\\,":"\\ldots"}),I("\\dotsc",function(e){e=e.future().text;return e in pn&&","!==e?"\\ldots\\,":"\\ldots"}),I("\\cdots",function(e){return e.future().text in pn?"\\@cdots\\,":"\\@cdots"}),I("\\dotsb","\\cdots"),I("\\dotsm","\\cdots"),I("\\dotsi","\\!\\cdots"),I("\\dotsx","\\ldots\\,"),I("\\DOTSI","\\relax"),I("\\DOTSB","\\relax"),I("\\DOTSX","\\relax"),I("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax"),I("\\,","\\tmspace+{3mu}{.1667em}"),I("\\thinspace","\\,"),I("\\>","\\mskip{4mu}"),I("\\:","\\tmspace+{4mu}{.2222em}"),I("\\medspace","\\:"),I("\\;","\\tmspace+{5mu}{.2777em}"),I("\\thickspace","\\;"),I("\\!","\\tmspace-{3mu}{.1667em}"),I("\\negthinspace","\\!"),I("\\negmedspace","\\tmspace-{4mu}{.2222em}"),I("\\negthickspace","\\tmspace-{5mu}{.277em}"),I("\\enspace","\\kern.5em "),I("\\enskip","\\hskip.5em\\relax"),I("\\quad","\\hskip1em\\relax"),I("\\qquad","\\hskip2em\\relax"),I("\\tag","\\@ifstar\\tag@literal\\tag@paren"),I("\\tag@paren","\\tag@literal{({#1})}"),I("\\tag@literal",e=>{if(e.macros.get("\\df@tag"))throw new _("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"}),I("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}"),I("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)"),I("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}"),I("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1"),I("\\newline","\\\\\\relax"),I("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");l=M(ne["Main-Regular"]["T".charCodeAt(0)][1]-.7*ne["Main-Regular"]["A".charCodeAt(0)][1]),I("\\LaTeX","\\textrm{\\html@mathml{L\\kern-.36em\\raisebox{"+l+"}{\\scriptstyle A}\\kern-.15em\\TeX}{LaTeX}}"),I("\\KaTeX","\\textrm{\\html@mathml{K\\kern-.17em\\raisebox{"+l+"}{\\scriptstyle A}\\kern-.15em\\TeX}{KaTeX}}"),I("\\hspace","\\@ifstar\\@hspacer\\@hspace"),I("\\@hspace","\\hskip #1\\relax"),I("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax"),I("\\ordinarycolon",":"),I("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}"),I("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}'),I("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}'),I("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}'),I("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}'),I("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}'),I("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}'),I("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}'),I("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}'),I("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}'),I("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}'),I("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}'),I("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}'),I("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}'),I("∷","\\dblcolon"),I("∹","\\eqcolon"),I("≔","\\coloneqq"),I("≕","\\eqqcolon"),I("⩴","\\Coloneqq"),I("\\ratio","\\vcentcolon"),I("\\coloncolon","\\dblcolon"),I("\\colonequals","\\coloneqq"),I("\\coloncolonequals","\\Coloneqq"),I("\\equalscolon","\\eqqcolon"),I("\\equalscoloncolon","\\Eqqcolon"),I("\\colonminus","\\coloneq"),I("\\coloncolonminus","\\Coloneq"),I("\\minuscolon","\\eqcolon"),I("\\minuscoloncolon","\\Eqcolon"),I("\\coloncolonapprox","\\Colonapprox"),I("\\coloncolonsim","\\Colonsim"),I("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),I("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}"),I("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),I("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}"),I("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`∌}}"),I("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}"),I("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}"),I("\\injlim","\\DOTSB\\operatorname*{inj\\,lim}"),I("\\projlim","\\DOTSB\\operatorname*{proj\\,lim}"),I("\\varlimsup","\\DOTSB\\operatorname*{\\overline{lim}}"),I("\\varliminf","\\DOTSB\\operatorname*{\\underline{lim}}"),I("\\varinjlim","\\DOTSB\\operatorname*{\\underrightarrow{lim}}"),I("\\varprojlim","\\DOTSB\\operatorname*{\\underleftarrow{lim}}"),I("\\gvertneqq","\\html@mathml{\\@gvertneqq}{≩}"),I("\\lvertneqq","\\html@mathml{\\@lvertneqq}{≨}"),I("\\ngeqq","\\html@mathml{\\@ngeqq}{≱}"),I("\\ngeqslant","\\html@mathml{\\@ngeqslant}{≱}"),I("\\nleqq","\\html@mathml{\\@nleqq}{≰}"),I("\\nleqslant","\\html@mathml{\\@nleqslant}{≰}"),I("\\nshortmid","\\html@mathml{\\@nshortmid}{∤}"),I("\\nshortparallel","\\html@mathml{\\@nshortparallel}{∦}"),I("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{⊈}"),I("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{⊉}"),I("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{⊊}"),I("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{⫋}"),I("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{⊋}"),I("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{⫌}"),I("\\imath","\\html@mathml{\\@imath}{ı}"),I("\\jmath","\\html@mathml{\\@jmath}{ȷ}"),I("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`⟦}}"),I("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`⟧}}"),I("⟦","\\llbracket"),I("⟧","\\rrbracket"),I("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`⦃}}"),I("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`⦄}}"),I("⦃","\\lBrace"),I("⦄","\\rBrace"),I("\\minuso","\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`⦵}}"),I("⦵","\\minuso"),I("\\darr","\\downarrow"),I("\\dArr","\\Downarrow"),I("\\Darr","\\Downarrow"),I("\\lang","\\langle"),I("\\rang","\\rangle"),I("\\uarr","\\uparrow"),I("\\uArr","\\Uparrow"),I("\\Uarr","\\Uparrow"),I("\\N","\\mathbb{N}"),I("\\R","\\mathbb{R}"),I("\\Z","\\mathbb{Z}"),I("\\alef","\\aleph"),I("\\alefsym","\\aleph"),I("\\Alpha","\\mathrm{A}"),I("\\Beta","\\mathrm{B}"),I("\\bull","\\bullet"),I("\\Chi","\\mathrm{X}"),I("\\clubs","\\clubsuit"),I("\\cnums","\\mathbb{C}"),I("\\Complex","\\mathbb{C}"),I("\\Dagger","\\ddagger"),I("\\diamonds","\\diamondsuit"),I("\\empty","\\emptyset"),I("\\Epsilon","\\mathrm{E}"),I("\\Eta","\\mathrm{H}"),I("\\exist","\\exists"),I("\\harr","\\leftrightarrow"),I("\\hArr","\\Leftrightarrow"),I("\\Harr","\\Leftrightarrow"),I("\\hearts","\\heartsuit"),I("\\image","\\Im"),I("\\infin","\\infty"),I("\\Iota","\\mathrm{I}"),I("\\isin","\\in"),I("\\Kappa","\\mathrm{K}"),I("\\larr","\\leftarrow"),I("\\lArr","\\Leftarrow"),I("\\Larr","\\Leftarrow"),I("\\lrarr","\\leftrightarrow"),I("\\lrArr","\\Leftrightarrow"),I("\\Lrarr","\\Leftrightarrow"),I("\\Mu","\\mathrm{M}"),I("\\natnums","\\mathbb{N}"),I("\\Nu","\\mathrm{N}"),I("\\Omicron","\\mathrm{O}"),I("\\plusmn","\\pm"),I("\\rarr","\\rightarrow"),I("\\rArr","\\Rightarrow"),I("\\Rarr","\\Rightarrow"),I("\\real","\\Re"),I("\\reals","\\mathbb{R}"),I("\\Reals","\\mathbb{R}"),I("\\Rho","\\mathrm{P}"),I("\\sdot","\\cdot"),I("\\sect","\\S"),I("\\spades","\\spadesuit"),I("\\sub","\\subset"),I("\\sube","\\subseteq"),I("\\supe","\\supseteq"),I("\\Tau","\\mathrm{T}"),I("\\thetasym","\\vartheta"),I("\\weierp","\\wp"),I("\\Zeta","\\mathrm{Z}"),I("\\argmin","\\DOTSB\\operatorname*{arg\\,min}"),I("\\argmax","\\DOTSB\\operatorname*{arg\\,max}"),I("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits"),I("\\bra","\\mathinner{\\langle{#1}|}"),I("\\ket","\\mathinner{|{#1}\\rangle}"),I("\\braket","\\mathinner{\\langle{#1}\\rangle}"),I("\\Bra","\\left\\langle#1\\right|"),I("\\Ket","\\left|#1\\right\\rangle"),p=l=>e=>{const t=e.consumeArg().tokens,n=e.consumeArg().tokens,r=e.consumeArg().tokens,i=e.consumeArg().tokens,s=e.macros.get("|"),o=e.macros.get("\\|");e.macros.beginGroup();var a=i=>e=>{l&&(e.macros.set("|",s),r.length)&&e.macros.set("\\|",o);let t=i;return!i&&r.length&&"|"===e.future().text&&(e.popToken(),t=!0),{tokens:t?r:n,numArgs:0}},a=(e.macros.set("|",a(!1)),r.length&&e.macros.set("\\|",a(!0)),e.consumeArg().tokens),a=e.expandTokens([...i,...a,...t]);return e.macros.endGroup(),{tokens:a.reverse(),numArgs:0}};I("\\bra@ket",p(!1)),I("\\bra@set",p(!0)),I("\\Braket","\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}"),I("\\Set","\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}"),I("\\set","\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}"),I("\\angln","{\\angl n}"),I("\\blue","\\textcolor{##6495ed}{#1}"),I("\\orange","\\textcolor{##ffa500}{#1}"),I("\\pink","\\textcolor{##ff00af}{#1}"),I("\\red","\\textcolor{##df0030}{#1}"),I("\\green","\\textcolor{##28ae7b}{#1}"),I("\\gray","\\textcolor{gray}{#1}"),I("\\purple","\\textcolor{##9d38bd}{#1}"),I("\\blueA","\\textcolor{##ccfaff}{#1}"),I("\\blueB","\\textcolor{##80f6ff}{#1}"),I("\\blueC","\\textcolor{##63d9ea}{#1}"),I("\\blueD","\\textcolor{##11accd}{#1}"),I("\\blueE","\\textcolor{##0c7f99}{#1}"),I("\\tealA","\\textcolor{##94fff5}{#1}"),I("\\tealB","\\textcolor{##26edd5}{#1}"),I("\\tealC","\\textcolor{##01d1c1}{#1}"),I("\\tealD","\\textcolor{##01a995}{#1}"),I("\\tealE","\\textcolor{##208170}{#1}"),I("\\greenA","\\textcolor{##b6ffb0}{#1}"),I("\\greenB","\\textcolor{##8af281}{#1}"),I("\\greenC","\\textcolor{##74cf70}{#1}"),I("\\greenD","\\textcolor{##1fab54}{#1}"),I("\\greenE","\\textcolor{##0d923f}{#1}"),I("\\goldA","\\textcolor{##ffd0a9}{#1}"),I("\\goldB","\\textcolor{##ffbb71}{#1}"),I("\\goldC","\\textcolor{##ff9c39}{#1}"),I("\\goldD","\\textcolor{##e07d10}{#1}"),I("\\goldE","\\textcolor{##a75a05}{#1}"),I("\\redA","\\textcolor{##fca9a9}{#1}"),I("\\redB","\\textcolor{##ff8482}{#1}"),I("\\redC","\\textcolor{##f9685d}{#1}"),I("\\redD","\\textcolor{##e84d39}{#1}"),I("\\redE","\\textcolor{##bc2612}{#1}"),I("\\maroonA","\\textcolor{##ffbde0}{#1}"),I("\\maroonB","\\textcolor{##ff92c6}{#1}"),I("\\maroonC","\\textcolor{##ed5fa6}{#1}"),I("\\maroonD","\\textcolor{##ca337c}{#1}"),I("\\maroonE","\\textcolor{##9e034e}{#1}"),I("\\purpleA","\\textcolor{##ddd7ff}{#1}"),I("\\purpleB","\\textcolor{##c6b9fc}{#1}"),I("\\purpleC","\\textcolor{##aa87ff}{#1}"),I("\\purpleD","\\textcolor{##7854ab}{#1}"),I("\\purpleE","\\textcolor{##543b78}{#1}"),I("\\mintA","\\textcolor{##f5f9e8}{#1}"),I("\\mintB","\\textcolor{##edf2df}{#1}"),I("\\mintC","\\textcolor{##e0e5cc}{#1}"),I("\\grayA","\\textcolor{##f6f7f7}{#1}"),I("\\grayB","\\textcolor{##f0f1f2}{#1}"),I("\\grayC","\\textcolor{##e3e5e6}{#1}"),I("\\grayD","\\textcolor{##d6d8da}{#1}"),I("\\grayE","\\textcolor{##babec2}{#1}"),I("\\grayF","\\textcolor{##888d93}{#1}"),I("\\grayG","\\textcolor{##626569}{#1}"),I("\\grayH","\\textcolor{##3b3e40}{#1}"),I("\\grayI","\\textcolor{##21242c}{#1}"),I("\\kaBlue","\\textcolor{##314453}{#1}"),I("\\kaGreen","\\textcolor{##71B307}{#1}");const mn={"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0};class gn{constructor(e,t,i){this.settings=void 0,this.expansionCount=void 0,this.lexer=void 0,this.macros=void 0,this.stack=void 0,this.mode=void 0,this.settings=t,this.expansionCount=0,this.feed(e),this.macros=new ln(hn,t.macros),this.mode=i,this.stack=[]}feed(e){this.lexer=new an(e,this.settings)}switchMode(e){this.mode=e}beginGroup(){this.macros.beginGroup()}endGroup(){this.macros.endGroup()}endGroups(){this.macros.endGroups()}future(){return 0===this.stack.length&&this.pushToken(this.lexer.lex()),this.stack[this.stack.length-1]}popToken(){return this.future(),this.stack.pop()}pushToken(e){this.stack.push(e)}pushTokens(e){this.stack.push(...e)}scanArgument(e){let t,i,n;if(e){if(this.consumeSpaces(),"["!==this.future().text)return null;t=this.popToken(),{tokens:n,end:i}=this.consumeArg(["]"])}else({tokens:n,start:t,end:i}=this.consumeArg());return this.pushToken(new vi("EOF",i.loc)),this.pushTokens(n),t.range(i,"")}consumeSpaces(){for(;" "===this.future().text;)this.stack.pop()}consumeArg(e){var t=[],i=e&&0this.settings.maxExpand)throw new _("Too many expansions: infinite loop or need to increase maxExpand setting")}expandOnce(e){var t=this.popToken(),i=t.text,n=t.noexpand?null:this._getExpansion(i);if(null==n||e&&n.unexpandable){if(e&&null==n&&"\\"===i[0]&&!this.isDefined(i))throw new _("Undefined control sequence: "+i);return this.pushToken(t),!1}this.countExpansion(1);let r=n.tokens;var s=this.consumeArgs(n.numArgs,n.delimiters);if(n.numArgs)for(let e=(r=r.slice()).length-1;0<=e;--e){var o=r[e];if("#"===o.text){if(0===e)throw new _("Incomplete placeholder at end of macro body",o);if("#"===(o=r[--e]).text)r.splice(e+1,1);else{if(!/^[1-9]$/.test(o.text))throw new _("Not a valid argument number",o);r.splice(e,2,...s[+o.text-1])}}}return this.pushTokens(r),r.length}expandAfterFuture(){return this.expandOnce(),this.future()}expandNextToken(){for(;;){var e;if(!1===this.expandOnce())return(e=this.stack.pop()).treatAsRelax&&(e.text="\\relax"),e}throw new Error}expandMacro(e){return this.macros.has(e)?this.expandTokens([new vi(e)]):void 0}expandTokens(e){var t=[],i=this.stack.length;for(this.pushTokens(e);this.stack.length>i;)if(!1===this.expandOnce(!0)){const e=this.stack.pop();e.treatAsRelax&&(e.noexpand=!1,e.treatAsRelax=!1),t.push(e)}return this.countExpansion(t.length),t}expandMacroAsText(e){e=this.expandMacro(e);return e&&e.map(e=>e.text).join("")}_getExpansion(i){const n=this.macros.get(i);if(null==n)return n;if(1===i.length){const n=this.lexer.catcodes[i];if(null!=n&&13!==n)return}i="function"==typeof n?n(this):n;if("string"!=typeof i)return i;{let e=0;if(-1!==i.indexOf("#")){const n=i.replace(/##/g,"");for(;-1!==n.indexOf("#"+(e+1));)++e}const n=new an(i,this.settings),r=[];let t=n.lex();for(;"EOF"!==t.text;)r.push(t),t=n.lex();return r.reverse(),{tokens:r,numArgs:e}}}isDefined(e){return this.macros.has(e)||sn.hasOwnProperty(e)||d.math.hasOwnProperty(e)||d.text.hasOwnProperty(e)||mn.hasOwnProperty(e)}isExpandable(e){var t=this.macros.get(e);return null!=t?"string"==typeof t||"function"==typeof t||!t.unexpandable:sn.hasOwnProperty(e)&&!sn[e].primitive}}const fn=/^[\u208a\u208b\u208c\u208d\u208e\u2080\u2081\u2082\u2083\u2084\u2085\u2086\u2087\u2088\u2089\u2090\u2091\u2095\u1d62\u2c7c\u2096\u2097\u2098\u2099\u2092\u209a\u1d63\u209b\u209c\u1d64\u1d65\u2093\u1d66\u1d67\u1d68\u1d69\u1d6a]/,vn=Object.freeze({"₊":"+","₋":"-","₌":"=","₍":"(","₎":")","₀":"0","₁":"1","₂":"2","₃":"3","₄":"4","₅":"5","₆":"6","₇":"7","₈":"8","₉":"9","ₐ":"a","ₑ":"e","ₕ":"h","ᵢ":"i","ⱼ":"j","ₖ":"k","ₗ":"l","ₘ":"m","ₙ":"n","ₒ":"o","ₚ":"p","ᵣ":"r","ₛ":"s","ₜ":"t","ᵤ":"u","ᵥ":"v","ₓ":"x","ᵦ":"β","ᵧ":"γ","ᵨ":"ρ","ᵩ":"ϕ","ᵪ":"χ","⁺":"+","⁻":"-","⁼":"=","⁽":"(","⁾":")","⁰":"0","¹":"1","²":"2","³":"3","⁴":"4","⁵":"5","⁶":"6","⁷":"7","⁸":"8","⁹":"9","ᴬ":"A","ᴮ":"B","ᴰ":"D","ᴱ":"E","ᴳ":"G","ᴴ":"H","ᴵ":"I","ᴶ":"J","ᴷ":"K","ᴸ":"L","ᴹ":"M","ᴺ":"N","ᴼ":"O","ᴾ":"P","ᴿ":"R","ᵀ":"T","ᵁ":"U","ⱽ":"V","ᵂ":"W","ᵃ":"a","ᵇ":"b","ᶜ":"c","ᵈ":"d","ᵉ":"e","ᶠ":"f","ᵍ":"g","ʰ":"h","ⁱ":"i","ʲ":"j","ᵏ":"k","ˡ":"l","ᵐ":"m","ⁿ":"n","ᵒ":"o","ᵖ":"p","ʳ":"r","ˢ":"s","ᵗ":"t","ᵘ":"u","ᵛ":"v","ʷ":"w","ˣ":"x","ʸ":"y","ᶻ":"z","ᵝ":"β","ᵞ":"γ","ᵟ":"δ","ᵠ":"ϕ","ᵡ":"χ","ᶿ":"θ"}),bn={"́":{text:"\\'",math:"\\acute"},"̀":{text:"\\`",math:"\\grave"},"̈":{text:'\\"',math:"\\ddot"},"̃":{text:"\\~",math:"\\tilde"},"̄":{text:"\\=",math:"\\bar"},"̆":{text:"\\u",math:"\\breve"},"̌":{text:"\\v",math:"\\check"},"̂":{text:"\\^",math:"\\hat"},"̇":{text:"\\.",math:"\\dot"},"̊":{text:"\\r",math:"\\mathring"},"̋":{text:"\\H"},"̧":{text:"\\c"}},yn={"á":"á","à":"à","ä":"ä","ǟ":"ǟ","ã":"ã","ā":"ā","ă":"ă","ắ":"ắ","ằ":"ằ","ẵ":"ẵ","ǎ":"ǎ","â":"â","ấ":"ấ","ầ":"ầ","ẫ":"ẫ","ȧ":"ȧ","ǡ":"ǡ","å":"å","ǻ":"ǻ","ḃ":"ḃ","ć":"ć","ḉ":"ḉ","č":"č","ĉ":"ĉ","ċ":"ċ","ç":"ç","ď":"ď","ḋ":"ḋ","ḑ":"ḑ","é":"é","è":"è","ë":"ë","ẽ":"ẽ","ē":"ē","ḗ":"ḗ","ḕ":"ḕ","ĕ":"ĕ","ḝ":"ḝ","ě":"ě","ê":"ê","ế":"ế","ề":"ề","ễ":"ễ","ė":"ė","ȩ":"ȩ","ḟ":"ḟ","ǵ":"ǵ","ḡ":"ḡ","ğ":"ğ","ǧ":"ǧ","ĝ":"ĝ","ġ":"ġ","ģ":"ģ","ḧ":"ḧ","ȟ":"ȟ","ĥ":"ĥ","ḣ":"ḣ","ḩ":"ḩ","í":"í","ì":"ì","ï":"ï","ḯ":"ḯ","ĩ":"ĩ","ī":"ī","ĭ":"ĭ","ǐ":"ǐ","î":"î","ǰ":"ǰ","ĵ":"ĵ","ḱ":"ḱ","ǩ":"ǩ","ķ":"ķ","ĺ":"ĺ","ľ":"ľ","ļ":"ļ","ḿ":"ḿ","ṁ":"ṁ","ń":"ń","ǹ":"ǹ","ñ":"ñ","ň":"ň","ṅ":"ṅ","ņ":"ņ","ó":"ó","ò":"ò","ö":"ö","ȫ":"ȫ","õ":"õ","ṍ":"ṍ","ṏ":"ṏ","ȭ":"ȭ","ō":"ō","ṓ":"ṓ","ṑ":"ṑ","ŏ":"ŏ","ǒ":"ǒ","ô":"ô","ố":"ố","ồ":"ồ","ỗ":"ỗ","ȯ":"ȯ","ȱ":"ȱ","ő":"ő","ṕ":"ṕ","ṗ":"ṗ","ŕ":"ŕ","ř":"ř","ṙ":"ṙ","ŗ":"ŗ","ś":"ś","ṥ":"ṥ","š":"š","ṧ":"ṧ","ŝ":"ŝ","ṡ":"ṡ","ş":"ş","ẗ":"ẗ","ť":"ť","ṫ":"ṫ","ţ":"ţ","ú":"ú","ù":"ù","ü":"ü","ǘ":"ǘ","ǜ":"ǜ","ǖ":"ǖ","ǚ":"ǚ","ũ":"ũ","ṹ":"ṹ","ū":"ū","ṻ":"ṻ","ŭ":"ŭ","ǔ":"ǔ","û":"û","ů":"ů","ű":"ű","ṽ":"ṽ","ẃ":"ẃ","ẁ":"ẁ","ẅ":"ẅ","ŵ":"ŵ","ẇ":"ẇ","ẘ":"ẘ","ẍ":"ẍ","ẋ":"ẋ","ý":"ý","ỳ":"ỳ","ÿ":"ÿ","ỹ":"ỹ","ȳ":"ȳ","ŷ":"ŷ","ẏ":"ẏ","ẙ":"ẙ","ź":"ź","ž":"ž","ẑ":"ẑ","ż":"ż","Á":"Á","À":"À","Ä":"Ä","Ǟ":"Ǟ","Ã":"Ã","Ā":"Ā","Ă":"Ă","Ắ":"Ắ","Ằ":"Ằ","Ẵ":"Ẵ","Ǎ":"Ǎ","Â":"Â","Ấ":"Ấ","Ầ":"Ầ","Ẫ":"Ẫ","Ȧ":"Ȧ","Ǡ":"Ǡ","Å":"Å","Ǻ":"Ǻ","Ḃ":"Ḃ","Ć":"Ć","Ḉ":"Ḉ","Č":"Č","Ĉ":"Ĉ","Ċ":"Ċ","Ç":"Ç","Ď":"Ď","Ḋ":"Ḋ","Ḑ":"Ḑ","É":"É","È":"È","Ë":"Ë","Ẽ":"Ẽ","Ē":"Ē","Ḗ":"Ḗ","Ḕ":"Ḕ","Ĕ":"Ĕ","Ḝ":"Ḝ","Ě":"Ě","Ê":"Ê","Ế":"Ế","Ề":"Ề","Ễ":"Ễ","Ė":"Ė","Ȩ":"Ȩ","Ḟ":"Ḟ","Ǵ":"Ǵ","Ḡ":"Ḡ","Ğ":"Ğ","Ǧ":"Ǧ","Ĝ":"Ĝ","Ġ":"Ġ","Ģ":"Ģ","Ḧ":"Ḧ","Ȟ":"Ȟ","Ĥ":"Ĥ","Ḣ":"Ḣ","Ḩ":"Ḩ","Í":"Í","Ì":"Ì","Ï":"Ï","Ḯ":"Ḯ","Ĩ":"Ĩ","Ī":"Ī","Ĭ":"Ĭ","Ǐ":"Ǐ","Î":"Î","İ":"İ","Ĵ":"Ĵ","Ḱ":"Ḱ","Ǩ":"Ǩ","Ķ":"Ķ","Ĺ":"Ĺ","Ľ":"Ľ","Ļ":"Ļ","Ḿ":"Ḿ","Ṁ":"Ṁ","Ń":"Ń","Ǹ":"Ǹ","Ñ":"Ñ","Ň":"Ň","Ṅ":"Ṅ","Ņ":"Ņ","Ó":"Ó","Ò":"Ò","Ö":"Ö","Ȫ":"Ȫ","Õ":"Õ","Ṍ":"Ṍ","Ṏ":"Ṏ","Ȭ":"Ȭ","Ō":"Ō","Ṓ":"Ṓ","Ṑ":"Ṑ","Ŏ":"Ŏ","Ǒ":"Ǒ","Ô":"Ô","Ố":"Ố","Ồ":"Ồ","Ỗ":"Ỗ","Ȯ":"Ȯ","Ȱ":"Ȱ","Ő":"Ő","Ṕ":"Ṕ","Ṗ":"Ṗ","Ŕ":"Ŕ","Ř":"Ř","Ṙ":"Ṙ","Ŗ":"Ŗ","Ś":"Ś","Ṥ":"Ṥ","Š":"Š","Ṧ":"Ṧ","Ŝ":"Ŝ","Ṡ":"Ṡ","Ş":"Ş","Ť":"Ť","Ṫ":"Ṫ","Ţ":"Ţ","Ú":"Ú","Ù":"Ù","Ü":"Ü","Ǘ":"Ǘ","Ǜ":"Ǜ","Ǖ":"Ǖ","Ǚ":"Ǚ","Ũ":"Ũ","Ṹ":"Ṹ","Ū":"Ū","Ṻ":"Ṻ","Ŭ":"Ŭ","Ǔ":"Ǔ","Û":"Û","Ů":"Ů","Ű":"Ű","Ṽ":"Ṽ","Ẃ":"Ẃ","Ẁ":"Ẁ","Ẅ":"Ẅ","Ŵ":"Ŵ","Ẇ":"Ẇ","Ẍ":"Ẍ","Ẋ":"Ẋ","Ý":"Ý","Ỳ":"Ỳ","Ÿ":"Ÿ","Ỹ":"Ỹ","Ȳ":"Ȳ","Ŷ":"Ŷ","Ẏ":"Ẏ","Ź":"Ź","Ž":"Ž","Ẑ":"Ẑ","Ż":"Ż","ά":"ά","ὰ":"ὰ","ᾱ":"ᾱ","ᾰ":"ᾰ","έ":"έ","ὲ":"ὲ","ή":"ή","ὴ":"ὴ","ί":"ί","ὶ":"ὶ","ϊ":"ϊ","ΐ":"ΐ","ῒ":"ῒ","ῑ":"ῑ","ῐ":"ῐ","ό":"ό","ὸ":"ὸ","ύ":"ύ","ὺ":"ὺ","ϋ":"ϋ","ΰ":"ΰ","ῢ":"ῢ","ῡ":"ῡ","ῠ":"ῠ","ώ":"ώ","ὼ":"ὼ","Ύ":"Ύ","Ὺ":"Ὺ","Ϋ":"Ϋ","Ῡ":"Ῡ","Ῠ":"Ῠ","Ώ":"Ώ","Ὼ":"Ὼ"};class wn{constructor(e,t){this.mode=void 0,this.gullet=void 0,this.settings=void 0,this.leftrightDepth=void 0,this.nextToken=void 0,this.mode="math",this.gullet=new gn(e,t,this.mode),this.settings=t,this.leftrightDepth=0}expect(e,t){if(void 0===t&&(t=!0),this.fetch().text!==e)throw new _("Expected '"+e+"', got '"+this.fetch().text+"'",this.fetch());t&&this.consume()}consume(){this.nextToken=null}fetch(){return null==this.nextToken&&(this.nextToken=this.gullet.expandNextToken()),this.nextToken}switchMode(e){this.mode=e,this.gullet.switchMode(e)}parse(){this.settings.globalGroup||this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set("\\color","\\textcolor");try{var e=this.parseExpression(!1);return this.expect("EOF"),this.settings.globalGroup||this.gullet.endGroup(),e}finally{this.gullet.endGroups()}}subparse(e){var t=this.nextToken,e=(this.consume(),this.gullet.pushToken(new vi("}")),this.gullet.pushTokens(e),this.parseExpression(!1));return this.expect("}"),this.nextToken=t,e}parseExpression(e,t){for(var i=[];;){"math"===this.mode&&this.consumeSpaces();var n=this.fetch();if(-1!==wn.endOfExpression.indexOf(n.text))break;if(t&&n.text===t)break;if(e&&sn[n.text]&&sn[n.text].infix)break;n=this.parseAtom(t);if(!n)break;"internal"!==n.type&&i.push(n)}return"text"===this.mode&&this.formLigatures(i),this.handleInfixNodes(i)}handleInfixNodes(t){let i,n=-1;for(let e=0;ee.left.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")).join("|")+")");for(;-1!==(i=t.search(r));){0t.startsWith(e.left));if(-1===(i=function(e,t,i){let n=i,r=0;for(var s=e.length;n-1===r.indexOf(" "+e+" "))&&h(o,s)}}};var s=function(e,t){if(!e)throw new Error("No element provided to render");var i={};for(const e in t)t.hasOwnProperty(e)&&(i[e]=t[e]);i.delimiters=i.delimiters||[{left:"$$",right:"$$",display:!0},{left:"\\(",right:"\\)",display:!1},{left:"\\begin{equation}",right:"\\end{equation}",display:!0},{left:"\\begin{align}",right:"\\end{align}",display:!0},{left:"\\begin{alignat}",right:"\\end{alignat}",display:!0},{left:"\\begin{gather}",right:"\\end{gather}",display:!0},{left:"\\begin{CD}",right:"\\end{CD}",display:!0},{left:"\\[",right:"\\]",display:!0}],i.ignoredTags=i.ignoredTags||["script","noscript","style","textarea","pre","code","option"],i.ignoredClasses=i.ignoredClasses||[],i.errorCallback=i.errorCallback||console.error,i.macros=i.macros||{},h(e,i)}}return e.default}()}),!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("katex")):"function"==typeof define&&define.amd?define(["katex"],t):(e="undefined"!=typeof globalThis?globalThis:e||self).markedKatex=t(e.katex)}(this,function(n){"use strict";const r=/^(\${1,2})(?!\$)((?:\\.|[^\\\n])*?(?:\\.|[^\\\n\$]))\1(?=[\s?!\.,:?!。,:]|$)/,i=/^(\${1,2})\n((?:\\[^]|[^\\])+?)\n\1(?:\n|$)/;function t(t,i){return e=>n.renderToString(e.text,{...t,displayMode:e.displayMode})+(i?"\n":"")}return function(e={}){return{extensions:[{name:"inlineKatex",level:"inline",start(e){let t,i=e;for(;i;){if(-1===(t=i.indexOf("$")))return;if((0===t||" "===i.charAt(t-1))&&i.substring(t).match(r))return t;i=i.substring(t+1).replace(/^\$+/,"")}},tokenizer(e,t){e=e.match(r);if(e)return{type:"inlineKatex",raw:e[0],text:e[2].trim(),displayMode:2===e[1].length}},renderer:t(e,!1)},{name:"blockKatex",level:"block",tokenizer(e,t){e=e.match(i);if(e)return{type:"blockKatex",raw:e[0],text:e[2].trim(),displayMode:2===e[1].length}},renderer:t(e,!0)}]}}}),"undefined"!=typeof window&&(window.markedMermaid=markedMermaid),"undefined"!=typeof module&&module.exports&&(module.exports=markedMermaid),!function(){function e(e){return e}function t(i){return function(e){var t=h("img",["image-output"]);return t.src="data:image/"+i+";base64,"+d(e).replace(/\n/g,""),t}}function i(){var t=this,e=u.display_priority.filter(function(e){return(t.raw.data||t.raw)[e]})[0];return e&&u.display[e]?u.display[e](t.raw[e]||t.raw.data[e]):h("div",["empty-output"])}function n(){var e=h("pre",["pyerr"]),t=this.raw.traceback.join("\n");return e.innerHTML=u.highlighter(u.ansi(c(t)),e),e}var r,s,o,a=this,l=void 0!==a.window,h=(s=(l?a:(r=new(require("jsdom").JSDOM)).window).document,function(e,t){e=s.createElement(e);return e.className=(t||[]).map(function(e){return u.prefix+e}).join(" "),e}),c=function(e){return e.replace(//g,">")},d=function(e){return e.join?e.map(d).join(""):e},u={prefix:"nb-",markdown:(o=a.marked||"function"==typeof require&&require("marked"))&&o.parse||e,ansi:(o=a.ansi_up||"function"==typeof require&&require("ansi_up"))&&o.ansi_to_html||e,sanitizer:(o=a.DOMPurify||"function"==typeof require&&require("dompurify"),(l?o&&o.sanitize:o(r.window).sanitize)||e),highlighter:e,VERSION:"0.7.0",Input:function(e,t){this.raw=e,this.cell=t}},p=(u.Input.prototype.render=function(){var e,t,i,n;return this.raw.length?(e=h("div",["input"]),"number"==typeof(n=this.cell).number&&e.setAttribute("data-prompt-number",this.cell.number),t=h("pre"),i=h("code"),n=n.worksheet.notebook.metadata,n=this.cell.raw.language||n.language||n.kernelspec&&n.kernelspec.language||n.language_info&&n.language_info.name,i.setAttribute("data-language",n),i.className="lang-"+n,i.innerHTML=u.highlighter(c(d(this.raw)),t,i,n),t.appendChild(i),e.appendChild(t),this.el=e):h("div")},u.display={},u.display.text=function(e){var t=h("pre",["text-output"]);return t.innerHTML=u.highlighter(u.ansi(d(e)),t),t},u.display["text/plain"]=u.display.text,u.display.html=function(e){var t=h("div",["html-output"]);return t.innerHTML=u.sanitizer(d(e)),t},u.display["text/html"]=u.display.html,u.display.marked=function(e){return u.display.html(u.markdown(d(e)))},u.display["text/markdown"]=u.display.marked,u.display.svg=function(e){var t=h("div",["svg-output"]);return t.innerHTML=d(e),t},u.display["text/svg+xml"]=u.display.svg,u.display["image/svg+xml"]=u.display.svg,u.display.latex=function(e){var t=h("div",["latex-output"]);return t.innerHTML=d(e),t},u.display["text/latex"]=u.display.latex,u.display.javascript=function(e){var t=h("script");return t.innerHTML=d(e),t},u.display["application/javascript"]=u.display.javascript,u.display.png=t("png"),u.display["image/png"]=u.display.png,u.display.jpeg=t("jpeg"),u.display["image/jpeg"]=u.display.jpeg,u.display_priority=["png","image/png","jpeg","image/jpeg","svg","image/svg+xml","text/svg+xml","html","text/html","text/markdown","latex","text/latex","javascript","application/javascript","text","text/plain"],u.Output=function(e,t){this.raw=e,this.cell=t,this.type=e.output_type},u.Output.prototype.renderers={display_data:i,execute_result:i,pyout:i,pyerr:n,error:n,stream:function(){var e=h("pre",[this.raw.stream||this.raw.name]),t=d(this.raw.text);return e.innerHTML=u.highlighter(u.ansi(c(t)),e),e}},u.Output.prototype.render=function(){var e=h("div",["output"]),t=("number"==typeof this.cell.number&&e.setAttribute("data-prompt-number",this.cell.number),this.renderers[this.type].call(this));return e.appendChild(t),this.el=e},u.coalesceStreams=function(e){var t,i;return e.length?(t=e[0],i=[t],e.slice(1).forEach(function(e){"stream"===e.raw.output_type&&"stream"===t.raw.output_type&&e.raw.stream===t.raw.stream&&e.raw.name===t.raw.name?t.raw.text=t.raw.text.concat(e.raw.text):(i.push(e),t=e)}),i):e},[{left:"$$",right:"$$",display:!0},{left:"\\[",right:"\\]",display:!0},{left:"\\(",right:"\\)",display:!(u.Cell=function(e,t){var i=this;i.raw=e,i.worksheet=t,i.type=e.cell_type,"code"===i.type&&(i.number=-1")))):e.innerHTML=u.sanitizer(u.markdown(t)),e},heading:function(){var e=h("h"+this.raw.level,["cell","heading-cell"]);return e.innerHTML=u.sanitizer(d(this.raw.source)),e},raw:function(){var e=h("div",["cell","raw-cell"]);return e.innerHTML=c(d(this.raw.source)),e},code:function(){var t=h("div",["cell","code-cell"]);t.appendChild(this.input.render()),this.outputs.forEach(function(e){t.appendChild(e.render())});return t}},u.Cell.prototype.render=function(){var e=this.renderers[this.type].call(this);return this.el=e},u.Worksheet=function(e,t){var i=this;this.raw=e,this.notebook=t,this.cells=e.cells.map(function(e){return new u.Cell(e,i)}),this.render=function(){var t=h("div",["worksheet"]);return i.cells.forEach(function(e){t.appendChild(e.render())}),this.el=t}},u.Notebook=function(e,t){var i=this,t=(this.raw=e,this.config=t,this.metadata=e.metadata||{}),t=(this.title=t.title||t.name,e.worksheets||[{cells:e.cells}]);this.worksheets=t.map(function(e){return new u.Worksheet(e,i)}),this.sheet=this.worksheets[0]},u.Notebook.prototype.render=function(){var t=h("div",["notebook"]);return this.worksheets.forEach(function(e){t.appendChild(e.render())}),this.el=t},u.parse=function(e,t){return new u.Notebook(e,t)},"function"==typeof define&&define.amd&&define(function(){return u}),"undefined"!=typeof exports?(exports="undefined"!=typeof module&&module.exports?module.exports=u:exports).nb=u:a.nb=u}.call(this);var Org=function(){var e={},n={rules:{},define:function(t,e){this.rules[t]=e,this["is"+t.substring(0,1).toUpperCase()+t.substring(1)]=function(e){return this.rules[t].exec(e)}}};function r(){}function s(e){this.stream=e,this.tokenStack=[]}function o(e,t){if(this.type=e,this.children=[],t)for(var i=0,n=t.length;i";return void 0!==this.value?e+=" "+this.value:this.children&&(e+="\n"+this.children.map(function(e,t){return"#"+t+" "+e.toString()}).join("\n").split("\n").map(function(e){return" "+e}).join("\n")),e}};var u={types:{},define:function(i,n){var e="create"+(this.types[i]=i).substring(0,1).toUpperCase()+i.substring(1),r="function"==typeof n;this[e]=function(e,t){e=new o(i,e);return r&&n(e,t||{}),e}}};function a(e){this.sequences=e.split(/\r?\n/),this.totalLines=this.sequences.length,this.lineNumber=0}function l(){this.inlineParser=new t}function t(){this.preEmphasis=" \t\\('\"",this.postEmphasis="- \t.,:!?;'\"\\)",this.borderForbidden=" \t\r\n,\"'",this.bodyRegexp="[\\s\\S]*?",this.markers="*/_=~+",this.emphasisPattern=this.buildEmphasisPattern(),this.linkPattern=/\[\[([^\]]*)\](?:\[([^\]]*)\])?\]/g}function i(){}function h(e,t){this.initialize(e,t),this.result=this.convert()}return u.define("text",function(e,t){e.value=t.value}),u.define("header",function(e,t){e.level=t.level}),u.define("orderedList"),u.define("unorderedList"),u.define("definitionList"),u.define("listElement"),u.define("paragraph"),u.define("preformatted"),u.define("table"),u.define("tableRow"),u.define("tableCell"),u.define("horizontalRule"),u.define("directive"),u.define("inlineContainer"),u.define("bold"),u.define("italic"),u.define("underline"),u.define("code"),u.define("verbatim"),u.define("dashed"),u.define("link",function(e,t){e.src=t.src}),void 0!==e&&(e.Node=u),a.prototype.peekNextLine=function(){return this.hasNext()?this.sequences[this.lineNumber]:null},a.prototype.getNextLine=function(){return this.hasNext()?this.sequences[this.lineNumber++]:null},a.prototype.hasNext=function(){return this.lineNumbere)){if(0<(l=s.level-i))for(var o,a=0;a]+|\(([^\s()<>]+|(\([^\s()<>]+\)))*\))+(?:\(([^\s()<>]+|(\([^\s()<>]+\)))*\)|[^\s`!()\[\]{};:'".,<>?«»“”‘’])/i,linkURL:function(e){var t=this;return e.replace(this.urlPattern,function(e){return e.indexOf("://")<0&&(e="http://"+e),t.makeLink(e)})},makeLink:function(e){throw"Implement makeLink"},makeSubscripts:function(e){return"{}"===this.documentOptions["^"]?e.replace(/\b([^_ \t]*)_{([^}]*)}/g,this.makeSubscript):this.documentOptions["^"]?e.replace(/\b([^_ \t]*)_([^_]*)\b/g,this.makeSubscript):e},makeSubscript:function(e,t,i){throw"Implement makeSubscript"},imageExtensionPattern:new RegExp("("+["bmp","png","jpeg","jpg","gif","tiff","tif","xbm","xpm","pbm","pgm","ppm"].join("|")+")$","i")},void 0!==e&&(e.Converter=i),h.prototype={__proto__:i.prototype,convert:function(){var e=this.orgDocument.title?this.convertNode(this.orgDocument.title):this.untitled,t=this.tag("h1",e),i=this.convertNodes(this.orgDocument.nodes,!0),n=this.computeToc(this.documentOptions.toc),r=this.tocToHTML(n);return{title:e,titleHTML:t,contentHTML:i,tocHTML:r,toc:n,toString:function(){return t+r+"\n"+i}}},tocToHTML:function(e){function a(e){for(var t="",i=0;i":[">",null],'"':[""",null],"'":["'",null],"->":["➔",function(e,t){return this.exportOptions.translateSymbolArrow&&!t}]},replaceRegexp:null,escapeSpecialChars:function(i,n){this.replaceRegexp||(this.replaceRegexp=new RegExp(Object.keys(this.replaceMap).join("|"),"g"));var r=this.replaceMap,s=this;return i.replace(this.replaceRegexp,function(e){var t;if(r[e])return"function"!=typeof(t=r[e][1])||t.call(s,i,n)?r[e][0]:e;throw"escapeSpecialChars: Invalid match"})},postProcess:function(e,t,i){return t=this.exportOptions.exportFromLineNumber&&"number"==typeof e.fromLineNumber?this.inlineTag("div",t,{"data-line-number":e.fromLineNumber}):t},makeLink:function(e){return''+decodeURIComponent(e)+""},makeSubscript:function(e,t,i){return''+t+''+i+""},attributesObjectToString:function(e){var t,i="";for(t in e)e.hasOwnProperty(t)&&(i+=" "+t+'="'+e[t]+'"');return i},inlineTag:function(e,t,i,n){var r="<"+e;return n&&(r+=" "+n),r+=this.attributesObjectToString(i=i||{}),null===t?r+"/>":r+">"+t+""},tag:function(e,t,i,n){return this.inlineTag(e,t,i,n)+"\n"}},void 0!==e&&(e.ConverterHTML=h),e}();(function(){function l(e,i){var t,n;return i=o(e,i),(e=r.modules[i])||("function"==typeof(e=r.payloads[i])&&(t={id:i,uri:"",exports:n={},packaged:!0},n=e(function(e,t){return s(i,e,t)},n,t)||t.exports,r.modules[i]=n,delete r.payloads[i]),e=r.modules[i]=n||e),e}var e,t,i=function(){return this}(),r=(i||"undefined"==typeof window||(i=window),function(e,t,i){"string"!=typeof e?r.original?r.original.apply(this,arguments):(console.error("dropping module because define wasn't a string."),console.trace()):(2==arguments.length&&(i=t),r.modules[e]||(r.payloads[e]=i,r.modules[e]=null))}),s=(r.modules={},r.payloads={},function(e,t,i){if("string"==typeof t){var n=l(e,t);if(null!=n)return i&&i(),n}else if("[object Array]"===Object.prototype.toString.call(t)){for(var r=[],s=0,o=t.length;s ["+this.end.row+"/"+this.end.column+"]"},this.contains=function(e,t){return 0==this.compare(e,t)},this.compareRange=function(e){var t=e.end,e=e.start,t=this.compare(t.row,t.column);return 1==t?1==(t=this.compare(e.row,e.column))?2:0==t?1:0:-1==t?-2:-1==(t=this.compare(e.row,e.column))?-1:1==t?42:0},this.comparePoint=function(e){return this.compare(e.row,e.column)},this.containsRange=function(e){return 0==this.comparePoint(e.start)&&0==this.comparePoint(e.end)},this.intersects=function(e){e=this.compareRange(e);return-1==e||0==e||1==e},this.isEnd=function(e,t){return this.end.row==e&&this.end.column==t},this.isStart=function(e,t){return this.start.row==e&&this.start.column==t},this.setStart=function(e,t){"object"==typeof e?(this.start.column=e.column,this.start.row=e.row):(this.start.row=e,this.start.column=t)},this.setEnd=function(e,t){"object"==typeof e?(this.end.column=e.column,this.end.row=e.row):(this.end.row=e,this.end.column=t)},this.inside=function(e,t){return 0==this.compare(e,t)&&!this.isEnd(e,t)&&!this.isStart(e,t)},this.insideStart=function(e,t){return 0==this.compare(e,t)&&!this.isEnd(e,t)},this.insideEnd=function(e,t){return 0==this.compare(e,t)&&!this.isStart(e,t)},this.compare=function(e,t){return this.isMultiLine()||e!==this.start.row?ethis.end.row?1:this.start.row===e?t>=this.start.column?0:-1:this.end.row!==e||t<=this.end.column?0:1:tthis.end.column?1:0},this.compareStart=function(e,t){return this.start.row==e&&this.start.column==t?-1:this.compare(e,t)},this.compareEnd=function(e,t){return this.end.row==e&&this.end.column==t?1:this.compare(e,t)},this.compareInside=function(e,t){return this.end.row==e&&this.end.column==t?1:this.start.row==e&&this.start.column==t?-1:this.compare(e,t)},this.clipRows=function(e,t){var i,n;return this.end.row>t?i={row:t+1,column:0}:this.end.rowt?n={row:t+1,column:0}:this.start.row>=1)&&(e+=e);return i};var n=/^\s\s*/,r=/\s\s*$/;t.stringTrimLeft=function(e){return e.replace(n,"")},t.stringTrimRight=function(e){return e.replace(r,"")},t.copyObject=function(e){var t,i={};for(t in e)i[t]=e[t];return i},t.copyArray=function(e){for(var t=[],i=0,n=e.length;iDate.now()-50)||(n=!1)},cancel:function(){n=Date.now()}}}),ace.define("ace/keyboard/textinput",["require","exports","module","ace/lib/event","ace/lib/useragent","ace/lib/dom","ace/lib/lang","ace/clipboard","ace/lib/keys"],function(e,t,i){"use strict";var N=e("../lib/event"),B=e("../lib/useragent"),z=e("../lib/dom"),H=e("../lib/lang"),W=e("../clipboard"),U=B.isChrome<18,V=B.isIE,j=63e+1?t.length:n,n+=r.length+1,r=r+"\n"+t):Y&&0=f.length&&e.value===f&&f&&e.selectionEnd!==b}),x=null,A=(this.setInputHandler=function(e){x=e},!(this.getInputHandler=function(){return x})),S=function(e,t){if(A=A&&!1,p)return w(),e&&d.onPaste(e),p=!1,"";for(var i=u.selectionStart,n=u.selectionEnd,r=v,s=f.length-b,o=e,a=e.length-i,l=e.length-n,h=0;0v-1&&f[f.length-h]==e[e.length-h];)h++,s--;a-=h-1,l-=h-1;var c=o.length-h+1;return c<0&&(r=-c,c=0),o=o.slice(0,c),t||o||a||r||s||l?(c=!(m=!0),B.isAndroid&&". "==o&&(o=" ",c=!0),o&&!r&&!s&&!a&&!l||g?d.onTextInput(o):d.onTextInput(o,{extendLeft:r,extendRight:s,restoreStart:a,restoreEnd:l}),m=!1,f=e,v=i,b=n,y=l,c?"\n":o):""},k=function(e){if(o)return E();if(e&&e.inputType){if("historyUndo"==e.inputType)return d.execCommand("undo");if("historyRedo"==e.inputType)return d.execCommand("redo")}var e=u.value,t=S(e,!0);(500this.$focusTimeout)&&this.startSelect(this.mousedownEvent.getDocumentPosition())},this.onDoubleClick=function(e){var e=e.getDocumentPosition(),t=this.editor,i=t.session.getBracketRange(e);i?(i.isEmpty()&&(i.start.column--,i.end.column++),this.setState("select")):(i=t.selection.getWordRange(e.row,e.column),this.setState("selectByWords")),this.$clickSelection=i,this.select()},this.onTripleClick=function(e){var e=e.getDocumentPosition(),t=this.editor,i=(this.setState("selectByLines"),t.getSelectionRange());i.isMultiLine()&&i.contains(e.row,e.column)?(this.$clickSelection=t.selection.getLineRange(i.start.row),this.$clickSelection.end=t.selection.getLineRange(i.end.row).end):this.$clickSelection=t.selection.getLineRange(e.row),this.select()},this.onQuadClick=function(e){var t=this.editor;t.selectAll(),this.$clickSelection=t.getSelectionRange(),this.setState("selectAll")},this.onMouseWheel=function(e){var t,i,n,r,s,o,a;if(!e.getAccelKey())return e.getShiftKey()&&e.wheelY&&!e.wheelX&&(e.wheelX=e.wheelY,e.wheelY=0),t=this.editor,this.$lastScroll||(this.$lastScroll={t:0,vx:0,vy:0,allowed:0}),i=this.$lastScroll,r=(a=(n=e.domEvent.timeStamp)-i.t)?e.wheelX/a:i.vx,s=a?e.wheelY/a:i.vy,a<550&&(r=(r+i.vx)/2,s=(s+i.vy)/2),a=!1,1<=(o=Math.abs(r/s))&&t.renderer.isScrollableBy(e.wheelX*e.speed,0)&&(a=!0),(a=o<=1&&t.renderer.isScrollableBy(0,e.wheelY*e.speed)?!0:a)?i.allowed=n:n-i.allowed<550&&(Math.abs(r)<=1.5*Math.abs(i.vx)&&Math.abs(s)<=1.5*Math.abs(i.vy)?(a=!0,i.allowed=n):i.allowed=0),i.t=n,i.vx=r,i.vy=s,a?(t.renderer.scrollBy(e.wheelX*e.speed,e.wheelY*e.speed),e.stop()):void 0}}).call(n.prototype),t.DefaultHandlers=n}),ace.define("ace/tooltip",["require","exports","module","ace/lib/oop","ace/lib/dom"],function(e,t,i){"use strict";function n(e){this.isOpen=!1,this.$element=null,this.$parentNode=e}e("./lib/oop");var r=e("./lib/dom");(function(){this.$init=function(){return this.$element=r.createElement("div"),this.$element.className="ace_tooltip",this.$element.style.display="none",this.$parentNode.appendChild(this.$element),this.$element},this.getElement=function(){return this.$element||this.$init()},this.setText=function(e){this.getElement().textContent=e},this.setHtml=function(e){this.getElement().innerHTML=e},this.setPosition=function(e,t){this.getElement().style.left=e+"px",this.getElement().style.top=t+"px"},this.setClassName=function(e){r.addCssClass(this.getElement(),e)},this.show=function(e,t,i){null!=e&&this.setText(e),null!=t&&null!=i&&this.setPosition(t,i),this.isOpen||(this.getElement().style.display="block",this.isOpen=!0)},this.hide=function(){this.isOpen&&(this.getElement().style.display="none",this.isOpen=!1)},this.getHeight=function(){return this.getElement().offsetHeight},this.getWidth=function(){return this.getElement().offsetWidth},this.destroy=function(){this.isOpen=!1,this.$element&&this.$element.parentNode&&this.$element.parentNode.removeChild(this.$element)}}).call(n.prototype),t.Tooltip=n}),ace.define("ace/mouse/default_gutter_handler",["require","exports","module","ace/lib/dom","ace/lib/oop","ace/lib/event","ace/tooltip"],function(e,t,i){"use strict";function d(e){o.call(this,e)}var u=e("../lib/dom"),n=e("../lib/oop"),p=e("../lib/event"),o=e("../tooltip").Tooltip;n.inherits(d,o),function(){this.setPosition=function(e,t){var i=window.innerWidth||document.documentElement.clientWidth,n=window.innerHeight||document.documentElement.clientHeight,r=this.getWidth(),s=this.getHeight();i<(e+=15)+r&&(e-=e+r-i),n<(t+=15)+s&&(t-=20+s),o.prototype.setPosition.call(this,e,t)}}.call(d.prototype),t.GutterHandler=function(n){function r(){i=i&&clearTimeout(i),a&&(c.hide(),a=null,l._signal("hideGutterTooltip",c),l.off("mousewheel",r))}function s(e){c.setPosition(e.x,e.y)}var i,o,a,l=n.editor,h=l.renderer.$gutterLayer,c=new d(l.container);n.editor.setDefaultHandler("guttermousedown",function(e){if(l.isFocused()&&0==e.getButton()){var t=h.getRegion(e);if("foldWidgets"!=t){var t=e.getDocumentPosition().row,i=l.session.selection;if(e.getShiftKey())i.selectTo(t,0);else{if(2==e.domEvent.detail)return l.selectAll(),e.preventDefault();n.$clickSelection=l.selection.getLineRange(t)}return n.setState("selectByLines"),n.captureMouse(e),e.preventDefault()}}}),n.editor.setDefaultHandler("guttermousemove",function(e){var t=e.domEvent.target||e.domEvent.srcElement;if(u.hasCssClass(t,"ace_fold-widget"))return r();a&&n.$tooltipFollowsMouse&&s(e),o=e,i=i||setTimeout(function(){i=null,(o&&!n.isMousePressed?function(){var e=o.getDocumentPosition().row,t=h.$annotations[e];if(!t)return r();if(e==l.session.getLength()){var e=l.renderer.pixelToScreenCoordinates(0,o.y).row,i=o.$pos;if(e>l.session.documentToScreenRow(i.row,i.column))return r()}a!=t&&(a=t.text.join("
"),c.setHtml(a),c.show(),l._signal("showGutterTooltip",c),l.on("mousewheel",r),n.$tooltipFollowsMouse?s(o):(e=o.domEvent.target.getBoundingClientRect(),(i=c.getElement().style).left=e.right+"px",i.top=e.bottom+"px"))}:r)()},50)}),p.addListener(l.renderer.$gutter,"mouseout",function(e){o=null,a&&(i=i||setTimeout(function(){i=null,r()},50))},l),l.on("changeSession",r)}}),ace.define("ace/mouse/mouse_event",["require","exports","module","ace/lib/event","ace/lib/useragent"],function(e,t,i){"use strict";var n=e("../lib/event"),r=e("../lib/useragent"),e=t.MouseEvent=function(e,t){this.domEvent=e,this.editor=t,this.x=this.clientX=e.clientX,this.y=this.clientY=e.clientY,this.$pos=null,this.$inSelection=null,this.propagationStopped=!1,this.defaultPrevented=!1};!function(){this.stopPropagation=function(){n.stopPropagation(this.domEvent),this.propagationStopped=!0},this.preventDefault=function(){n.preventDefault(this.domEvent),this.defaultPrevented=!0},this.stop=function(){this.stopPropagation(),this.preventDefault()},this.getDocumentPosition=function(){return this.$pos||(this.$pos=this.editor.renderer.screenToTextCoordinates(this.clientX,this.clientY),this.$pos)},this.inSelection=function(){var e,t;return null===this.$inSelection&&((e=this.editor.getSelectionRange()).isEmpty()?this.$inSelection=!1:(t=this.getDocumentPosition(),this.$inSelection=e.contains(t.row,t.column))),this.$inSelection},this.getButton=function(){return n.getButton(this.domEvent)},this.getShiftKey=function(){return this.domEvent.shiftKey},this.getAccelKey=r.isMac?function(){return this.domEvent.metaKey}:function(){return this.domEvent.ctrlKey}}.call(e.prototype)}),ace.define("ace/mouse/dragdrop_handler",["require","exports","module","ace/lib/dom","ace/lib/event","ace/lib/useragent"],function(e,t,i){"use strict";function n(t){function e(){var e,t,i,n,r,s,o,a,l=u;u=b.renderer.screenToTextCoordinates(h,c),r=u,s=l,o=Date.now(),a=!s||r.row!=s.row,s=!s||r.column!=s.column,!f||a||s?(b.moveCursorToPosition(r),f=o,v={x:h,y:c}):5this.editor.getDragDelay()&&this.startDrag()},this.dragWaitEnd=function(){this.editor.container.draggable=!1,this.startSelect(this.mousedownEvent.getDocumentPosition()),this.selectEnd()},this.dragReadyEnd=function(e){this.editor.$resetCursorStyle(),this.editor.unsetStyle("ace_dragging"),this.editor.renderer.setCursorStyle(""),this.dragWaitEnd()},this.startDrag=function(){this.cancelDrag=!1;var e=this.editor,t=(e.container.draggable=!0,e.renderer.$cursorLayer.setBlinking(!1),e.setStyle("ace_dragging"),C.isWin?"default":"move");e.renderer.setCursorStyle(t),this.setState("dragReady")},this.onMouseDrag=function(e){var t=this.editor.container;C.isIE&&"dragReady"==this.state&&3i&&(m=-1),u=e.clientX=o,p=e.clientY=s,A=S=0,new k(e,c));if(v=o.getDocumentPosition(),r-m<500&&1==t.length&&!w)x++,e.preventDefault(),e.button=0,f=null,clearTimeout(f),c.selection.moveToPosition(v),(s=2<=x?c.selection.getLineRange(v.row):c.session.getBracketRange(v))&&!s.isEmpty()?c.selection.setRange(s):c.selection.selectWord(),y="wait";else{x=0;var o=c.selection.cursor,t=c.selection.isEmpty()?o:c.selection.anchor,s=c.renderer.$cursorLayer.getPixelPosition(o,!0),o=c.renderer.$cursorLayer.getPixelPosition(t,!0),t=c.renderer.scroller.getBoundingClientRect(),a=c.renderer.layerConfig.offset,l=c.renderer.scrollLeft,h=function(e,t){return(e/=n)*e+(t=t/i-.75)*t};if(e.clientX=t.length||(r=i[n-1])!=k&&r!=_||(l=t[n+1])!=k&&l!=_?C:(l=v?_:l)==r?l:C;case $:return(r=0=e){for(n=l+1;n=e;)n++;for(r=l,s=n-1;r>8;return 0==i?191M&&t[a]t.row||e.row==t.row&&e.column>t.column},this.getRange=function(){var e=this.anchor,t=this.lead;return this.$isEmpty?a.fromPoints(t,t):this.isBackwards()?a.fromPoints(t,e):a.fromPoints(e,t)},this.clearSelection=function(){this.$isEmpty||(this.$isEmpty=!0,this._emit("changeSelection"))},this.selectAll=function(){this.$setSelection(0,0,Number.MAX_VALUE,Number.MAX_VALUE)},this.setRange=this.setSelectionRange=function(e,t){var i=t?e.end:e.start,t=t?e.start:e.end;this.$setSelection(i.row,i.column,t.row,t.column)},this.$setSelection=function(e,t,i,n){var r,s;!this.$silent&&(r=this.$isEmpty,s=this.inMultiSelectMode,this.$silent=!0,this.$cursorChanged=this.$anchorChanged=!1,this.anchor.setPosition(e,t),this.cursor.setPosition(i,n),this.$isEmpty=!a.comparePoints(this.anchor,this.cursor),this.$silent=!1,this.$cursorChanged&&this._emit("changeCursor"),this.$cursorChanged||this.$anchorChanged||r!=this.$isEmpty||s)&&this._emit("changeSelection")},this.$moveSelection=function(e){var t=this.lead;this.$isEmpty&&this.setSelectionAnchor(t.row,t.column),e.call(this)},this.selectTo=function(e,t){this.$moveSelection(function(){this.moveCursorTo(e,t)})},this.selectToPosition=function(e){this.$moveSelection(function(){this.moveCursorToPosition(e)})},this.moveTo=function(e,t){this.clearSelection(),this.moveCursorTo(e,t)},this.moveToPosition=function(e){this.clearSelection(),this.moveCursorToPosition(e)},this.selectUp=function(){this.$moveSelection(this.moveCursorUp)},this.selectDown=function(){this.$moveSelection(this.moveCursorDown)},this.selectRight=function(){this.$moveSelection(this.moveCursorRight)},this.selectLeft=function(){this.$moveSelection(this.moveCursorLeft)},this.selectLineStart=function(){this.$moveSelection(this.moveCursorLineStart)},this.selectLineEnd=function(){this.$moveSelection(this.moveCursorLineEnd)},this.selectFileEnd=function(){this.$moveSelection(this.moveCursorFileEnd)},this.selectFileStart=function(){this.$moveSelection(this.moveCursorFileStart)},this.selectWordRight=function(){this.$moveSelection(this.moveCursorWordRight)},this.selectWordLeft=function(){this.$moveSelection(this.moveCursorWordLeft)},this.getWordRange=function(e,t){var i;return void 0===t&&(e=(i=e||this.lead).row,t=i.column),this.session.getWordRange(e,t)},this.selectWord=function(){this.setSelectionRange(this.getWordRange())},this.selectAWord=function(){var e=this.getCursor(),e=this.session.getAWordRange(e.row,e.column);this.setSelectionRange(e)},this.getLineRange=function(e,t){var e="number"==typeof e?e:this.lead.row,i=this.session.getFoldLine(e),i=i?(e=i.start.row,i.end.row):e;return!0===t?new a(e,0,i,this.session.getLine(i).length):new a(e,0,i+1,0)},this.selectLine=function(){this.setSelectionRange(this.getLineRange())},this.moveCursorUp=function(){this.moveCursorBy(-1,0)},this.moveCursorDown=function(){this.moveCursorBy(1,0)},this.wouldMoveIntoSoftTab=function(e,t,i){var n=e.column,r=e.column+t;return i<0&&(n=e.column-t,r=e.column),this.session.isTabStop(e)&&this.doc.getLine(e.row).slice(n,r).split(" ").length-1==t},this.moveCursorLeft=function(){var e,t=this.lead.getPosition();(e=this.session.getFoldAt(t.row,t.column,-1))?this.moveCursorTo(e.start.row,e.start.column):0===t.column?0=i.length?(this.moveCursorTo(e,i.length),this.moveCursorRight(),eh&&(u=e.substring(h,f-g.length),d.type==p?d.value+=u:(d.type&&l.push(d),d={type:p,value:u}));for(var v=0;vb){for(c>2*e.length&&this.reportError("infinite loop with in ace tokenizer",{startState:t,line:e});h=this.$rowTokens.length;){if(this.$row+=1,e=e||this.$session.getLength(),this.$row>=e)return this.$row=e-1,null;this.$rowTokens=this.$session.getTokens(this.$row),this.$tokenIndex=0}return this.$rowTokens[this.$tokenIndex]},this.getCurrentToken=function(){return this.$rowTokens[this.$tokenIndex]},this.getCurrentTokenRow=function(){return this.$row},this.getCurrentTokenColumn=function(){var e=this.$rowTokens,t=this.$tokenIndex,i=e[t].start;if(void 0===i)for(i=0;0e.length&&(w=e.length)}),l==1/0&&(l=w,a=o=!1),c&&l%h!=0&&(l=Math.floor(l/h)*h),t(a?d:p)},this.toggleBlockComment=function(e,t,i,n){var r=this.blockComment;if(r){!r.start&&r[0]&&(r=r[0]);var s,o,a=(u=new g(t,n.row,n.column)).getCurrentToken(),l=(t.selection,t.selection.toOrientedRange());if(a&&/comment/.test(a.type)){for(;a&&/comment/.test(a.type);){if(-1!=(p=a.value.indexOf(r.start))){var h=u.getCurrentTokenRow(),c=u.getCurrentTokenColumn()+p,d=new f(h,c,h,c+r.start.length);break}a=u.stepBackward()}for(var u,p,a=(u=new g(t,n.row,n.column)).getCurrentToken();a&&/comment/.test(a.type);){if(-1!=(p=a.value.indexOf(r.end))){var h=u.getCurrentTokenRow(),c=u.getCurrentTokenColumn()+p,m=new f(h,c,h,c+r.end.length);break}a=u.stepForward()}m&&t.remove(m),d&&(t.remove(d),s=d.start.row,o=-r.start.length)}else o=r.start.length,s=i.start.row,t.insert(i.end,r.end),t.insert(i.start,r.start);l.start.row==s&&(l.start.column+=o),l.end.row==s&&(l.end.column+=o),t.selection.fromOrientedRange(l)}},this.getNextLineIndent=function(e,t,i){return this.$getIndent(t)},this.checkOutdent=function(e,t,i){return!1},this.autoOutdent=function(e,t,i){},this.$getIndent=function(e){return e.match(/^\s*/)[0]},this.createWorker=function(e){return null},this.createModeDelegates=function(e){for(var n in this.$embeds=[],this.$modes={},e){var t,i,r;e[n]&&(i=(t=e[n]).prototype.$id,(r=o.$modes[i])||(o.$modes[i]=r=new t),o.$modes[n]||(o.$modes[n]=r),this.$embeds.push(n),this.$modes[n]=r)}for(var s=["toggleBlockComment","toggleCommentLines","getNextLineIndent","checkOutdent","autoOutdent","transformAction","getCompletions"],n=0;nthis.row||(e=e,t={row:this.row,column:this.column},i=this.$insertRight,n=((o="insert"==e.action)?1:-1)*(e.end.row-e.start.row),r=(o?1:-1)*(e.end.column-e.start.column),s=e.start,o=o?s:e.end,e=a(t,s,i)?{row:t.row,column:t.column}:a(o,t,!i)?{row:t.row+n,column:t.column+(t.row==o.row?r:0)}:{row:s.row,column:s.column},this.setPosition(e.row,e.column,!0))},this.setPosition=function(e,t,i){i=i?{row:e,column:t}:this.$clipPositionToDocument(e,t);this.row==i.row&&this.column==i.column||(e={row:this.row,column:this.column},this.row=i.row,this.column=i.column,this._signal("change",{old:e,value:i}))},this.detach=function(){this.document.off("change",this.$onChange)},this.attach=function(e){this.document=e||this.document,this.document.on("change",this.$onChange)},this.$clipPositionToDocument=function(e,t){var i={};return e>=this.document.getLength()?(i.row=Math.max(0,this.document.getLength()-1),i.column=this.document.getLine(i.row).length):e<0?(i.row=0,i.column=0):(i.row=e,i.column=Math.min(this.document.getLine(i.row).length,Math.max(0,t))),t<0&&(i.column=0),i}}.call(e.prototype)}),ace.define("ace/document",["require","exports","module","ace/lib/oop","ace/apply_delta","ace/lib/event_emitter","ace/range","ace/anchor"],function(e,t,i){"use strict";function n(e){this.$lines=[""],0===e.length?this.$lines=[""]:Array.isArray(e)?this.insertMergedLines({row:0,column:0},e):this.insert({row:0,column:0},e)}var r=e("./lib/oop"),s=e("./apply_delta").applyDelta,o=e("./lib/event_emitter").EventEmitter,a=e("./range").Range,l=e("./anchor").Anchor;(function(){r.implement(this,o),this.setValue=function(e){var t=this.getLength()-1;this.remove(new a(0,0,t,this.getLine(t).length)),this.insert({row:0,column:0},e)},this.getValue=function(){return this.getAllLines().join(this.getNewLineCharacter())},this.createAnchor=function(e,t){return new l(this,e,t)},0==="aaa".split(/a/).length?this.$split=function(e){return e.replace(/\r\n|\r/g,"\n").split("\n")}:this.$split=function(e){return e.split(/\r\n|\r|\n/)},this.$detectNewLine=function(e){e=e.match(/^.*?(\r\n|\r|\n)/m);this.$autoNewLine=e?e[1]:"\n",this._signal("changeNewLineMode")},this.getNewLineCharacter=function(){switch(this.$newLineMode){case"windows":return"\r\n";case"unix":return"\n";default:return this.$autoNewLine||"\n"}},this.$autoNewLine="",this.$newLineMode="auto",this.setNewLineMode=function(e){this.$newLineMode!==e&&(this.$newLineMode=e,this._signal("changeNewLineMode"))},this.getNewLineMode=function(){return this.$newLineMode},this.isNewLine=function(e){return"\r\n"==e||"\r"==e||"\n"==e},this.getLine=function(e){return this.$lines[e]||""},this.getLines=function(e,t){return this.$lines.slice(e,t+1)},this.getAllLines=function(){return this.getLines(0,this.getLength())},this.getLength=function(){return this.$lines.length},this.getTextRange=function(e){return this.getLinesForRange(e).join(this.getNewLineCharacter())},this.getLinesForRange=function(e){var t,i;return e.start.row===e.end.row?t=[this.getLine(e.start.row).substring(e.start.column,e.end.column)]:((t=this.getLines(e.start.row,e.end.row))[0]=(t[0]||"").substring(e.start.column),i=t.length-1,e.end.row-e.start.row==i&&(t[i]=t[i].substring(0,e.end.column))),t},this.insertLines=function(e,t){return console.warn("Use of document.insertLines is deprecated. Use the insertFullLines method instead."),this.insertFullLines(e,t)},this.removeLines=function(e,t){return console.warn("Use of document.removeLines is deprecated. Use the removeFullLines method instead."),this.removeFullLines(e,t)},this.insertNewLine=function(e){return console.warn("Use of document.insertNewLine is deprecated. Use insertMergedLines(position, ['', '']) instead."),this.insertMergedLines(e,["",""])},this.insert=function(e,t){return this.getLength()<=1&&this.$detectNewLine(t),this.insertMergedLines(e,this.$split(t))},this.insertInLine=function(e,t){var i=this.clippedPos(e.row,e.column),e=this.pos(e.row,e.column+t.length);return this.applyDelta({start:i,end:e,action:"insert",lines:[t]},!0),this.clonePos(e)},this.clippedPos=function(e,t){var i=this.getLength(),i=(void 0===e?e=i:e<0?e=0:i<=e&&(e=i-1,t=void 0),this.getLine(e));return null==t&&(t=i.length),{row:e,column:t=Math.min(Math.max(t,0),i.length)}},this.clonePos=function(e){return{row:e.row,column:e.column}},this.pos=function(e,t){return{row:e,column:t}},this.$clipPosition=function(e){var t=this.getLength();return e.row>=t?(e.row=Math.max(0,t-1),e.column=this.getLine(t-1).length):(e.row=Math.max(0,e.row),e.column=Math.min(Math.max(e.column,0),this.getLine(e.row).length)),e},this.insertFullLines=function(e,t){var i=0,i=(e=Math.min(Math.max(e,0),this.getLength()))e+1&&(this.currentLine=e+1)):this.currentLine==e&&(this.currentLine=e+1),this.lines[e]=t.tokens}}).call(n.prototype),t.BackgroundTokenizer=n}),ace.define("ace/search_highlight",["require","exports","module","ace/lib/lang","ace/lib/oop","ace/range"],function(e,t,i){"use strict";function n(e,t,i){this.setRegexp(e),this.clazz=t,this.type=i||"text"}var h=e("./lib/lang"),c=(e("./lib/oop"),e("./range").Range);(function(){this.MAX_RANGES=500,this.setRegexp=function(e){this.regExp+""!=e+""&&(this.regExp=e,this.cache=[])},this.update=function(e,t,i,n){if(this.regExp)for(var r=n.firstRow,s=n.lastRow,o=r;o<=s;o++){var a=this.cache[o];null==a&&(a=(a=(a=h.getMatchOffsets(i.getLine(o),this.regExp)).length>this.MAX_RANGES?a.slice(0,this.MAX_RANGES):a).map(function(e){return new c(o,e.offset,o,e.offset+e.length)}),this.cache[o]=a.length?a:"");for(var l=a.length;l--;)t.drawSingleLineMarker(e,a[l].toScreenRange(i),this.clazz,n)}}}).call(n.prototype),t.SearchHighlight=n}),ace.define("ace/edit_session/fold_line",["require","exports","module","ace/range"],function(e,t,i){"use strict";function r(e,t){this.foldData=e,Array.isArray(t)?this.folds=t:t=this.folds=[t];e=t[t.length-1];this.range=new n(t[0].start.row,t[0].start.column,e.end.row,e.end.column),this.start=this.range.start,this.end=this.range.end,this.folds.forEach(function(e){e.setFoldLine(this)},this)}var n=e("../range").Range;(function(){this.shiftRow=function(t){this.start.row+=t,this.end.row+=t,this.folds.forEach(function(e){e.start.row+=t,e.end.row+=t})},this.addFold=function(e){if(e.sameRow){if(e.start.rowthis.endRow)throw new Error("Can't add a fold to this FoldLine as it has no connection");this.folds.push(e),this.folds.sort(function(e,t){return-e.range.compareEnd(t.start.row,t.start.column)}),0=this.start.row&&e<=this.end.row},this.walk=function(e,t,i){var n,r,s=0,o=this.folds,a=!0;null==t&&(t=this.end.row,i=this.end.column);for(var l=0;lt||i[i.length-1].start.row=n);o++);if("insert"==e.action)for(var l=r-n,h=-t.column+i.column;on)break;c.start.row==n&&c.start.column>=t.column&&(c.start.column==t.column&&this.$bias<=0||(c.start.column+=h,c.start.row+=l)),c.end.row==n&&c.end.column>=t.column&&(c.end.column==t.column&&this.$bias<0||(c.end.column==t.column&&0c.start.column&&c.end.column==s[o+1].start.column&&(c.end.column-=h),c.end.column+=h,c.end.row+=l))}else for(var c,l=n-r,h=t.column-i.column;or)break;c.end.rowt.column)&&(c.end.column=t.column,c.end.row=t.row):(c.end.column+=h,c.end.row+=l):c.end.row>r&&(c.end.row+=l),c.start.rowt.column)&&(c.start.column=t.column,c.start.row=t.row):(c.start.column+=h,c.start.row+=l):c.start.row>r&&(c.start.row+=l)}if(0!=l&&o=e)return r;if(r.end.row>e)return null}return null},this.getNextFoldLine=function(e,t){var i=this.$foldData,n=0;for(-1==(n=t?i.indexOf(t):n)&&(n=0);n=e)return r}return null},this.getFoldedRowCount=function(e,t){for(var i=this.$foldData,n=t-e+1,r=0;ra)break}while(r&&o.test(r.type));r=n.stepBackward()}else r=n.getCurrentToken();return s.end.row=n.getCurrentTokenRow(),s.end.column=n.getCurrentTokenColumn()+r.value.length-2,s}},this.foldAll=function(e,t,i,n){null==i&&(i=1e5);var r=this.foldWidgets;if(r){t=t||this.getLength();for(var s,o=e=e||0;o=e&&(o=s.end.row,s.collapseChildren=i,this.addFold("...",s))}},this.foldToLevel=function(e){for(this.foldAll();0=e)break}n--}return{range:-1!==n&&s,firstRange:o}},this.onFoldWidgetClick=function(e,t){var i={children:(t=t.domEvent).shiftKey,all:t.ctrlKey||t.metaKey,siblings:t.altKey};this.$toggleFoldWidget(e,i)||(e=t.target||t.srcElement)&&/ace_fold-widget/.test(e.className)&&(e.className+=" ace_invalid")},this.$toggleFoldWidget=function(e,t){var i,n,r,s;if(this.getFoldWidget)return i=this.getFoldWidget(e),n=this.getLine(e),(n=this.getFoldAt(e,-1==(i="end"===i?-1:1)?0:n.length,i))?(t.children||t.all?this.removeFold(n):this.expandFold(n),n):(i=this.getFoldWidgetRange(e,!0))&&!i.isMultiLine()&&(n=this.getFoldAt(i.start.row,i.start.column,1))&&i.isEqual(n.range)?(this.removeFold(n),n):(t.siblings?((n=this.getParentFoldRangeData(e)).range&&(r=n.range.start.row+1,s=n.range.end.row),this.foldAll(r,s,t.all?1e4:0)):t.children?(s=i?i.end.row:this.getLength(),this.foldAll(e+1,s,t.all?1e4:0)):i&&(t.all&&(i.collapseChildren=1e4),this.addFold("...",i)),i)},this.toggleFoldWidget=function(e){var t,i=this.selection.getCursor().row;i=this.getRowFoldStart(i),!this.$toggleFoldWidget(i,{})&&(t=(t=this.getParentFoldRangeData(i,!0)).range||t.firstRange)&&(i=t.start.row,(i=this.getFoldAt(i,this.getLine(i).length,1))?this.removeFold(i):this.addFold("...",t))},this.updateFoldWidgets=function(e){var t=e.start.row,i=e.end.row-t;0==i?this.foldWidgets[t]=null:"remove"==e.action?this.foldWidgets.splice(t,1+i,null):((e=Array(1+i)).unshift(t,1),this.foldWidgets.splice.apply(this.foldWidgets,e))},this.tokenizerUpdateFoldWidgets=function(e){e=e.data;e.first!=e.last&&this.foldWidgets.length>e.first&&this.foldWidgets.splice(e.first,this.foldWidgets.length)}}}),ace.define("ace/edit_session/bracket_match",["require","exports","module","ace/token_iterator","ace/range"],function(e,t,i){"use strict";var d=e("../token_iterator").TokenIterator,a=e("../range").Range;t.BracketMatch=function(){this.findMatchingBracket=function(e,t){return 0!=e.column&&""!=(t=t||this.getLine(e.row).charAt(e.column-1))&&(t=t.match(/([\(\[\{])|([\)\]\}])/))?t[1]?this.$findClosingBracket(t[1],e):this.$findOpeningBracket(t[2],e):null},this.getBracketRange=function(e){var t,i,n=this.getLine(e.row),r=!0,s=n.charAt(e.column-1),o=s&&s.match(/([\(\[\{])|([\)\]\}])/);if(o||(s=n.charAt(e.column),e={row:e.row,column:e.column+1},o=s&&s.match(/([\(\[\{])|([\)\]\}])/),r=!1),!o)return null;if(o[1]){if(!(i=this.$findClosingBracket(o[1],e)))return null;t=a.fromPoints(e,i),r||(t.end.column++,t.start.column--),t.cursor=t.end}else{if(!(i=this.$findOpeningBracket(o[2],e)))return null;t=a.fromPoints(i,e),r||(t.start.column++,t.end.column--),t.cursor=t.start}return t},this.getMatchingBracketRanges=function(e){var t=this.getLine(e.row),i=t.charAt(e.column-1),n=i&&i.match(/([\(\[\{])|([\)\]\}])/);return n||(i=t.charAt(e.column),e={row:e.row,column:e.column+1},n=i&&i.match(/([\(\[\{])|([\)\]\}])/)),n?(t=new a(e.row,e.column-1,e.row,e.column),(i=n[1]?this.$findClosingBracket(n[1],e):this.$findOpeningBracket(n[2],e))?[t,new a(i.row,i.column,i.row,i.column+1)]:[t]):null},this.$brackets={")":"(","(":")","]":"[","[":"]","{":"}","}":"{","<":">",">":"<"},this.$findOpeningBracket=function(e,t,i){var n=this.$brackets[e],r=1,s=new d(this,t.row,t.column),o=s.getCurrentToken();if(o=o||s.stepForward()){i=i||new RegExp("(\\.?"+o.type.replace(".","\\.").replace("rparen",".paren").replace(/\b(?:end)\b/,"(?:start|begin|end)")+")+");for(var a=t.column-s.getCurrentTokenColumn()-2,l=o.value;;){for(;0<=a;){var h=l.charAt(a);if(h==n){if(0==--r)return{row:s.getCurrentTokenRow(),column:a+s.getCurrentTokenColumn()}}else h==e&&(r+=1);--a}for(;(o=s.stepBackward())&&!i.test(o.type););if(null==o)break;a=(l=o.value).length-1}return null}},this.$findClosingBracket=function(e,t,i){var n=this.$brackets[e],r=1,s=new d(this,t.row,t.column),o=s.getCurrentToken();if(o=o||s.stepForward()){i=i||new RegExp("(\\.?"+o.type.replace(".","\\.").replace("lparen",".paren").replace(/\b(?:start|begin)\b/,"(?:start|begin|end)")+")+");for(var a=t.column-s.getCurrentTokenColumn();;){for(var l=o.value,h=l.length;a>1,s=e[r];if(st&&(t=e.screenWidth)}),this.lineWidgetWidth=t)},this.$computeWidth=function(e){if(this.$modified||e){if(this.$modified=!1,this.$useWrapMode)return this.screenWidth=this.$wrapLimit;for(var t=this.doc.getAllLines(),i=this.$rowLengthCache,n=0,r=0,s=this.$foldData[r],o=s?s.start.row:1/0,a=t.length,l=0;ln&&(n=i[l])}this.screenWidth=n}},this.getLine=function(e){return this.doc.getLine(e)},this.getLines=function(e,t){return this.doc.getLines(e,t)},this.getLength=function(){return this.doc.getLength()},this.getTextRange=function(e){return this.doc.getTextRange(e||this.selection.getRange())},this.insert=function(e,t){return this.doc.insert(e,t)},this.remove=function(e){return this.doc.remove(e)},this.removeFullLines=function(e,t){return this.doc.removeFullLines(e,t)},this.undoChanges=function(e,t){if(e.length){this.$fromUndo=!0;for(var i=e.length-1;-1!=i;i--){var n=e[i];"insert"==n.action||"remove"==n.action?this.doc.revertDelta(n):n.folds&&this.addFolds(n.folds)}!t&&this.$undoSelect&&(e.selectionBefore?this.selection.fromJSON(e.selectionBefore):this.selection.setRange(this.$getUndoSelection(e,!0))),this.$fromUndo=!1}},this.redoChanges=function(e,t){if(e.length){this.$fromUndo=!0;for(var i=0;ie.end.column&&(t.start.column+=s),t.end.row==e.end.row)&&t.end.column>e.end.column&&(t.end.column+=s),r&&t.start.row>=e.end.row&&(t.start.row+=r,t.end.row+=r)),t.end=this.insert(t.start,o),a.length&&(n=e.start,i=t.start,r=i.row-n.row,s=i.column-n.column,this.addFolds(a.map(function(e){return(e=e.clone()).start.row==n.row&&(e.start.column+=s),e.end.row==n.row&&(e.end.column+=s),e.start.row+=r,e.end.row+=r,e}))),t},this.indentRows=function(e,t,i){i=i.replace(/\t/g,this.getTabString());for(var n=e;n<=t;n++)this.doc.insertInLine({row:n,column:0},i)},this.outdentRows=function(e){for(var t=e.collapseRows(),i=new d(0,0,0,0),n=this.getTabSize(),r=t.start.row;r<=t.end.row;++r){var s=this.getLine(r);i.start.row=r,i.end.row=r;for(var o=0;othis.doc.getLength()-1)return 0;n=r-t}else{e=this.$clipRowToDocument(e);n=(t=this.$clipRowToDocument(t))-e+1}var r=new d(e,0,t,Number.MAX_VALUE),r=this.getFoldsInRange(r).map(function(e){return(e=e.clone()).start.row+=n,e.end.row+=n,e}),i=0==i?this.doc.getLines(e,t):this.doc.removeFullLines(e,t);return this.doc.insertFullLines(e+n,i),r.length&&this.addFolds(r),n},this.moveLinesUp=function(e,t){return this.$moveLines(e,t,-1)},this.moveLinesDown=function(e,t){return this.$moveLines(e,t,1)},this.duplicateLines=function(e,t){return this.$moveLines(e,t,0)},this.$clipRowToDocument=function(e){return Math.max(0,Math.min(e,this.doc.getLength()-1))},this.$clipColumnToRow=function(e,t){return t<0?0:Math.min(this.doc.getLine(e).length,t)},this.$clipPositionToDocument=function(e,t){var i;return t=Math.max(0,t),t=e<0?e=0:(i=this.doc.getLength())<=e?this.doc.getLine(e=i-1).length:Math.min(this.doc.getLine(e).length,t),{row:e,column:t}},this.$clipRangeToDocument=function(e){e.start.row<0?(e.start.row=0,e.start.column=0):e.start.column=this.$clipColumnToRow(e.start.row,e.start.column);var t=this.doc.getLength()-1;return e.end.row>t?(e.end.row=t,e.end.column=this.doc.getLine(t).length):e.end.column=this.$clipColumnToRow(e.end.row,e.end.column),e},this.$wrapLimit=80,this.$useWrapMode=!1,this.$wrapLimitRange={min:null,max:null},this.setUseWrapMode=function(e){e!=this.$useWrapMode&&(this.$useWrapMode=e,this.$modified=!0,this.$resetRowCache(0),e&&(e=this.getLength(),this.$wrapData=Array(e),this.$updateWrapData(0,e-1)),this._signal("changeWrapMode"))},this.getUseWrapMode=function(){return this.$useWrapMode},this.setWrapLimitRange=function(e,t){this.$wrapLimitRange.min===e&&this.$wrapLimitRange.max===t||(this.$wrapLimitRange={min:e,max:t},this.$modified=!0,this.$bidiHandler.markAsDirty(),this.$useWrapMode&&this._signal("changeWrapMode"))},this.adjustWrapLimit=function(e,t){var i=this.$wrapLimitRange,t=(i.max<0&&(i={min:t,max:t}),this.$constrainWrapLimit(e,i.min,i.max));return t!=this.$wrapLimit&&1=r.row&&p.shiftRow(-a);o=s}else{var d=Array(a),u=(d.unshift(s,0),t?this.$wrapData:this.$rowLengthCache),h=(u.splice.apply(u,d),this.$foldData),c=0;for((p=this.getFoldLine(s))&&(0==(u=p.range.compareInside(n.row,n.column))?(p=p.split(n.row,n.column))&&(p.shiftRow(a),p.addRemoveChars(o,0,r.column-n.column)):-1==u&&(p.addRemoveChars(s,0,r.column-n.column),p.shiftRow(a)),c=h.indexOf(p)+1);c=s&&p.shiftRow(a)}else{var p,a=Math.abs(e.start.column-e.end.column);"remove"===i&&(l=this.getFoldsInRange(e),this.removeFolds(l),a=-a),(p=this.getFoldLine(s))&&p.addRemoveChars(s,n.column,a)}return t&&this.$wrapData.length!=this.doc.getLength()&&console.error("doc.getLength() and $wrapData.length have to be the same!"),this.$updating=!1,t?this.$updateWrapData(s,o):this.$updateRowLengthCache(s,o),l},this.$updateRowLengthCache=function(e,t,i){this.$rowLengthCache[e]=null,this.$rowLengthCache[t]=null},this.$updateWrapData=function(e,t){var o,i,a=this.doc.getAllLines(),n=this.getTabSize(),r=this.$wrapData,s=this.$wrapLimit,l=e;for(t=Math.min(t,a.length-1);l<=t;)(i=this.getFoldLine(l,i))?(o=[],i.walk(function(e,t,i,n){var r;if(null!=e){(r=this.$getDisplayTokens(e,o.length))[0]=m;for(var s=1;s>2)),a-1);pc[u-1]):!u,this.getLength()-1),m=this.getNextFoldLine(o),g=m?m.start.row:1/0;l<=e&&!(ea[h-1]):!h,this.getNextFoldLine(o)),d=c?c.start.row:1/0;o=p[m];)n++,m++;u=u.substring(p[m-1]||0,u.length),l=0d||(r.push(o=new y(h,d,h+a-1,u)),2v&&r[c].end.row==i.end.row;)c--;for(r=r.slice(p,c+1),p=0,c=r.length;p=r.length)break;d.lastIndex=a+=1}if(n.index+o>t)break;s.push(n.index,o)}for(var l=s.length-1;0<=l;l-=2){var h=s[l-1];if(i(e,h,e,h+(o=s[l])))return!0}}:function(e,t,i){var n=c.getLine(e);for(d.lastIndex=t;r=d.exec(n);){var r,s=r[0].length;if(i(e,r=r.index,e,r+s))return!0;if(!s&&(d.lastIndex=r+=1,r>=n.length))return!1}},{forEach:a?function(e){var t=n.row;if(!o(t,n.column,e)){for(t--;r<=t;t--)if(o(t,Number.MAX_VALUE,e))return;if(0!=i.wrap)for(t=s,r=n.row;r<=t;t--)if(o(t,Number.MAX_VALUE,e))return}}:function(e){var t=n.row;if(!o(t,n.column,e)){for(t+=1;t<=s;t++)if(o(t,0,e))return;if(0!=i.wrap)for(t=r,s=n.row;t<=s;t++)if(o(t,0,e))return}}})}}).call(n.prototype),t.Search=n}),ace.define("ace/keyboard/hash_handler",["require","exports","module","ace/lib/keys","ace/lib/useragent"],function(e,t,i){"use strict";function n(e,t){this.platform=t||(s.isMac?"mac":"win"),this.commands={},this.commandKeyBinding={},this.addCommands(e),this.$singleCommand=!0}function r(e,t){n.call(this,e,t),this.$singleCommand=!1}var a=e("../lib/keys"),s=e("../lib/useragent"),l=a.KEY_MODS;r.prototype=n.prototype,function(){function o(e){return"object"==typeof e&&e.bindKey&&e.bindKey.position||(e.isDefault?-100:0)}this.addCommand=function(e){this.commands[e.name]&&this.removeCommand(e),(this.commands[e.name]=e).bindKey&&this._buildKeyHash(e)},this.removeCommand=function(e,t){var i,n=e&&("string"==typeof e?e:e.name),r=(e=this.commands[n],t||delete this.commands[n],this.commandKeyBinding);for(i in r){var s,o=r[i];o==e?delete r[i]:Array.isArray(o)&&-1!=(s=o.indexOf(e))&&(o.splice(s,1),1==o.length)&&(r[i]=o[0])}},this.bindKey=function(e,n,r){if("object"==typeof e&&e&&(null==r&&(r=e.position),e=e[this.platform]),e)return"function"==typeof n?this.addCommand({exec:n,bindKey:e,name:n.name||e}):void e.split("|").forEach(function(e){var t="",i=(-1!=e.indexOf(" ")&&(e=(i=e.split(/\s+/)).pop(),i.forEach(function(e){e=this.parseKeys(e),e=l[e.hashId]+e.key;t+=(t?" ":"")+e,this._addCommandToBinding(t,"chainKeys")},this),t+=" "),this.parseKeys(e)),e=l[i.hashId]+i.key;this._addCommandToBinding(t+e,n,r)},this)},this._addCommandToBinding=function(e,t,i){var n=this.commandKeyBinding;if(t)if(!n[e]||this.$singleCommand)n[e]=t;else{Array.isArray(n[e])?-1!=(s=n[e].indexOf(t))&&n[e].splice(s,1):n[e]=[n[e]],"number"!=typeof i&&(i=o(t));for(var r=n[e],s=0;st?t+1:t,e.selection.moveCursorTo(i.row,t))},multiSelectAction:"forEach",readOnly:!0},{name:"invertSelection",description:"Invert selection",bindKey:n(null,null),exec:function(e){var t=e.session.doc.getLength()-1,i=e.session.doc.getLine(t).length,n=e.selection.rangeList.ranges,r=[];n.length<1&&(n=[e.selection.getRange()]);for(var s=0;s=n.lastRow||i.end.row<=n.firstRow)&&this.renderer.scrollSelectionIntoView(this.selection.anchor,this.selection.lead)}"animate"==t&&this.renderer.animateScrolling(this.curOp.scrollTop)}e=this.selection.toJSON();this.curOp.selectionAfter=e,this.$lastSel=this.selection.toJSON(),this.session.getUndoManager().addSelection(e),this.prevOp=this.curOp,this.curOp=null}}},this.$mergeableCommands=["backspace","del","insertstring"],this.$historyTracker=function(e){var t,i,n,r;this.$mergeUndoDeltas&&(t=this.prevOp,i=this.$mergeableCommands,n=t.command&&e.command.name==t.command.name,"insertstring"==e.command.name?(r=e.args,void 0===this.mergeNextCommand&&(this.mergeNextCommand=!0),n=n&&this.mergeNextCommand&&(!/\s/.test(r)||/\s/.test(t.args)),this.mergeNextCommand=!0):n=n&&-1!==i.indexOf(e.command.name),(n="always"!=this.$mergeUndoDeltas&&2e3"===n.value&&a--),n&&0<=a;);else{do{if(n=l,l=i.stepBackward(),n)if(-1!==n.type.indexOf("tag-name"))s===n.value&&("<"===l.value?a++:""===n.value){for(var h=0,c=l;c;){if(-1!==c.type.indexOf("tag-name")&&c.value===s){a--;break}if("<"===c.value)break;c=i.stepBackward(),h++}for(var d=0;da.search(/\S|$/)&&(t=a.substr(s.column).search(/\S|$/),n.doc.removeInLine(s.row,s.column,s.column+t))),this.clearSelection(),s.column),t=n.getState(s.row),a=n.getLine(s.row),l=r.checkOutdent(t,a,e);n.insert(s,e),i&&i.selection&&(2==i.selection.length?this.selection.setSelectionRange(new f(s.row,o+i.selection[0],s.row,o+i.selection[1])):this.selection.setSelectionRange(new f(s.row+i.selection[0],i.selection[1],s.row+i.selection[2],i.selection[3]))),this.$enableAutoIndent&&(n.getDocument().isNewLine(e)&&(o=r.getNextLineIndent(t,a.slice(0,s.column),n.getTabString()),n.insert({row:s.row+1,column:0},o)),l)&&r.autoOutdent(t,n,s.row)},this.autoIndent=function(){for(var e,t,i,n,r,s=this.session,o=s.getMode(),a=(i=this.selection.isEmpty()?(t=0,s.doc.getLength()-1):(t=(e=this.getSelectionRange()).start.row,e.end.row),""),l="",h=s.getTabString(),c=t;c<=i;c++)0t.toLowerCase()?1:0});for(var r=new f(0,0,0,0),n=e.first;n<=e.last;n++){var s=t.getLine(n);r.start.row=n,r.end.row=n,r.end.column=s.length,t.replace(r,i[n-e.first])}},this.toggleCommentLines=function(){var e=this.session.getState(this.getCursorPosition().row),t=this.$getSelectedRows();this.session.getMode().toggleCommentLines(e,this.session,t.first,t.last)},this.toggleBlockComment=function(){var e=this.getCursorPosition(),t=this.session.getState(e.row),i=this.getSelectionRange();this.session.getMode().toggleBlockComment(t,this.session,i,e)},this.getNumberAt=function(e,t){for(var i=/[\-]?[0-9]+(?:\.[0-9]+)?/g,n=(i.lastIndex=0,this.session.getLine(e));i.lastIndex=t)return{value:r[0],start:r.index,end:r.index+r[0].length}}return null},this.modifyNumber=function(e){var t,i,n,r=this.selection.getCursor().row,s=this.selection.getCursor().column,o=new f(r,s-1,r,s),o=this.session.getTextRange(o);!isNaN(parseFloat(o))&&isFinite(o)?(o=this.getNumberAt(r,s))&&(n=0<=o.value.indexOf(".")?o.start+o.value.indexOf(".")+1:o.end,t=o.start+o.value.length-n,i=parseFloat(o.value),i*=Math.pow(10,t),n!==o.end&&sp+1)break;p=m.last}for(c--,a=this.session.$moveLines(u,p,t?0:e),t&&-1==e&&(d=c+1);d<=c;)o[d].moveBy(a,0),d++;l+=a=t?a:0}i.fromOrientedRange(i.ranges[0]),i.rangeList.attach(this.session),this.inVirtualSelectionMode=!1}},this.$getSelectedRows=function(e){return e=(e||this.getSelectionRange()).collapseRows(),{first:this.session.getRowFoldStart(e.start.row),last:this.session.getRowFoldEnd(e.end.row)}},this.onCompositionStart=function(e){this.renderer.showComposition(e)},this.onCompositionUpdate=function(e){this.renderer.setCompositionText(e)},this.onCompositionEnd=function(){this.renderer.hideComposition()},this.getFirstVisibleRow=function(){return this.renderer.getFirstVisibleRow()},this.getLastVisibleRow=function(){return this.renderer.getLastVisibleRow()},this.isRowVisible=function(e){return e>=this.getFirstVisibleRow()&&e<=this.getLastVisibleRow()},this.isRowFullyVisible=function(e){return e>=this.renderer.getFirstFullyVisibleRow()&&e<=this.renderer.getLastFullyVisibleRow()},this.$getVisibleRowCount=function(){return this.renderer.getScrollBottomRow()-this.renderer.getScrollTopRow()+1},this.$moveByPage=function(e,t){var i=this.renderer,n=this.renderer.layerConfig,r=e*Math.floor(n.height/n.lineHeight),e=(!0===t?this.selection.$moveSelection(function(){this.moveCursorBy(r,0)}):!1===t&&(this.selection.moveCursorBy(r,0),this.selection.clearSelection()),i.scrollTop);i.scrollBy(0,r*n.lineHeight),null!=t&&i.scrollCursorIntoView(null,.5),i.animateScrolling(e)},this.selectPageDown=function(){this.$moveByPage(1,!0)},this.selectPageUp=function(){this.$moveByPage(-1,!0)},this.gotoPageDown=function(){this.$moveByPage(1,!1)},this.gotoPageUp=function(){this.$moveByPage(-1,!1)},this.scrollPageDown=function(){this.$moveByPage(1)},this.scrollPageUp=function(){this.$moveByPage(-1)},this.scrollToRow=function(e){this.renderer.scrollToRow(e)},this.scrollToLine=function(e,t,i,n){this.renderer.scrollToLine(e,t,i,n)},this.centerSelection=function(){var e=this.getSelectionRange(),e={row:Math.floor(e.start.row+(e.end.row-e.start.row)/2),column:Math.floor(e.start.column+(e.end.column-e.start.column)/2)};this.renderer.alignCursor(e,.5)},this.getCursorPosition=function(){return this.selection.getCursor()},this.getCursorPositionScreen=function(){return this.session.documentToScreenPosition(this.getCursorPosition())},this.getSelectionRange=function(){return this.selection.getRange()},this.selectAll=function(){this.selection.selectAll()},this.clearSelection=function(){this.selection.clearSelection()},this.moveCursorTo=function(e,t){this.selection.moveCursorTo(e,t)},this.moveCursorToPosition=function(e){this.selection.moveCursorToPosition(e)},this.jumpToMatching=function(e,t){var i=this.getCursorPosition(),n=new y(this.session,i.row,i.column),r=n.getCurrentToken(),s=r||n.stepForward();if(s){var o,a,l,h=!1,c={},d=i.column-s.start,u={")":"(","(":"(","]":"[","[":"[","{":"{","}":"{"};do{if(s.value.match(/[{}()\[\]]/g)){for(;dwindow.innerHeight)&&null)&&(o.style.top=i+"px",o.style.left=e.left+"px",o.style.height=t.lineHeight+"px",o.scrollIntoView(s)),s=n=null)}),this.setAutoScrollEditorIntoView=function(e){e||(delete this.setAutoScrollEditorIntoView,this.off("changeSelection",t),this.renderer.off("afterRender",a),this.renderer.off("beforeRender",i))})},this.$resetCursorStyle=function(){var e=this.$cursorStyle||"ace",t=this.renderer.$cursorLayer;t&&(t.setSmoothBlinking(/smooth/.test(e)),t.isBlinking=!this.$readOnly&&"wide"!=e,n.setCssClass(t.element,"ace_slim-cursors",/slim/.test(e)))},this.prompt=function(t,i,n){var r=this;b.loadModule("./ext/prompt",function(e){e.prompt(r,t,i,n)})}}.call(r.prototype),b.defineOptions(r.prototype,"editor",{selectionStyle:{set:function(e){this.onSelectionChange(),this._signal("changeSelectionStyle",{data:e})},initialValue:"line"},highlightActiveLine:{set:function(){this.$updateHighlightActiveLine()},initialValue:!0},highlightSelectedWord:{set:function(e){this.$onSelectionChange()},initialValue:!0},readOnly:{set:function(e){this.textInput.setReadOnly(e),this.$resetCursorStyle()},initialValue:!1},copyWithEmptySelection:{set:function(e){this.textInput.setCopyWithEmptySelection(e)},initialValue:!1},cursorStyle:{set:function(e){this.$resetCursorStyle()},values:["ace","slim","smooth","wide"],initialValue:"ace"},mergeUndoDeltas:{values:[!1,!0,"always"],initialValue:!0},behavioursEnabled:{initialValue:!0},wrapBehavioursEnabled:{initialValue:!0},enableAutoIndent:{initialValue:!0},autoScrollEditorIntoView:{set:function(e){this.setAutoScrollEditorIntoView(e)}},keyboardHandler:{set:function(e){this.setKeyboardHandler(e)},get:function(){return this.$keybindingId},handlesSet:!0},value:{set:function(e){this.session.setValue(e)},get:function(){return this.getValue()},handlesSet:!0,hidden:!0},session:{set:function(e){this.setSession(e)},get:function(){return this.session},handlesSet:!0,hidden:!0},showLineNumbers:{set:function(e){this.renderer.$gutterLayer.setShowLineNumbers(e),this.renderer.$loop.schedule(this.renderer.CHANGE_GUTTER),e&&this.$relativeLineNumbers?x.attach(this):x.detach(this)},initialValue:!0},relativeLineNumbers:{set:function(e){this.$showLineNumbers&&e?x.attach(this):x.detach(this)}},placeholder:{set:function(e){this.$updatePlaceholder||(this.$updatePlaceholder=function(){var e=this.session&&(this.renderer.$composition||this.getValue());e&&this.renderer.placeholderNode?(this.renderer.off("afterRender",this.$updatePlaceholder),n.removeCssClass(this.container,"ace_hasPlaceholder"),this.renderer.placeholderNode.remove(),this.renderer.placeholderNode=null):e||this.renderer.placeholderNode?!e&&this.renderer.placeholderNode&&(this.renderer.placeholderNode.textContent=this.$placeholder||""):(this.renderer.on("afterRender",this.$updatePlaceholder),n.addCssClass(this.container,"ace_hasPlaceholder"),(e=n.createElement("div")).className="ace_placeholder",e.textContent=this.$placeholder||"",this.renderer.placeholderNode=e,this.renderer.content.appendChild(this.renderer.placeholderNode))}.bind(this),this.on("input",this.$updatePlaceholder)),this.$updatePlaceholder()}},hScrollBarAlwaysVisible:"renderer",vScrollBarAlwaysVisible:"renderer",highlightGutterLine:"renderer",animatedScroll:"renderer",showInvisibles:"renderer",showPrintMargin:"renderer",printMarginColumn:"renderer",printMargin:"renderer",fadeFoldWidgets:"renderer",showFoldWidgets:"renderer",displayIndentGuides:"renderer",showGutter:"renderer",fontSize:"renderer",fontFamily:"renderer",maxLines:"renderer",minLines:"renderer",scrollPastEnd:"renderer",fixedWidthGutter:"renderer",theme:"renderer",hasCssTransforms:"renderer",maxPixelHeight:"renderer",useTextareaForIME:"renderer",scrollSpeed:"$mouseHandler",dragDelay:"$mouseHandler",dragEnabled:"$mouseHandler",focusTimeout:"$mouseHandler",tooltipFollowsMouse:"$mouseHandler",firstLineNumber:"session",overwrite:"session",newLineMode:"session",useWorker:"session",useSoftTabs:"session",navigateWithinSoftTabs:"session",tabSize:"session",wrap:"session",indentedSoftWrap:"session",foldStyle:"session",mode:"session"}),{getText:function(e,t){return(Math.abs(e.selection.lead.row-t)||t+1+(t<9?"·":""))+""},getWidth:function(e,t,i){return Math.max(t.toString().length,(i.lastRow+1).toString().length,2)*i.characterWidth},update:function(e,t){t.renderer.$loop.schedule(t.renderer.CHANGE_GUTTER)},attach:function(e){e.renderer.$gutterLayer.$renderer=this,e.on("changeSelection",this.update),this.update(null,e)},detach:function(e){e.renderer.$gutterLayer.$renderer==this&&(e.renderer.$gutterLayer.$renderer=null),e.off("changeSelection",this.update),this.update(null,e)}});t.Editor=r}),ace.define("ace/undomanager",["require","exports","module","ace/range"],function(e,t,i){"use strict";function r(e,t){for(var i=t;i--;){var n=e[i];if(n&&!n[0].ignore){for(;i"+e.end.row+":"+e.end.column}function o(e,t){var i="insert"==e.action,n="insert"==t.action;if(i&&n)if(0<=m(t.start,e.end))l(t,e,-1);else{if(!(m(t.start,e.start)<=0))return;l(e,t,1)}else if(i&&!n)if(0<=m(t.start,e.end))l(t,e,-1);else{if(!(m(t.end,e.start)<=0))return;l(e,t,-1)}else if(!i&&n)if(0<=m(t.start,e.start))l(t,e,1);else{if(!(m(t.start,e.start)<=0))return;l(e,t,1)}else if(!i&&!n)if(0<=m(t.start,e.start))l(t,e,1);else{if(!(m(t.end,e.start)<=0))return;l(e,t,-1)}return 1}function l(e,t,i){h(e.start,t.start,t.end,i),h(e.end,t.start,t.end,i)}function h(e,t,i,n){e.row==(1==n?t:i).row&&(e.column+=n*(i.column-t.column)),e.row+=n*(i.row-t.row)}function c(e,t){var i=e.lines,n=e.end,r=(e.end=a(t),e.end.row-e.start.row),s=i.splice(r,i.length),r=r?t.column:t.column-e.start.column;return i.push(s[0].substring(0,r)),s[0]=s[0].substr(r),{start:a(t),end:n,lines:s,action:e.action}}function d(e,t){var i;t={start:a((i=t).start),end:a(i.end),action:i.action,lines:i.lines.slice()};for(var n=e.length;n--;){for(var r=e[n],s=0;sa+1;)this.$lines.pop();break}(o=this.$lines.get(++a))?o.row=l:(o=this.$lines.createCell(l,e,this.session,h),this.$lines.push(o)),this.$renderCell(o,e,r,l),l++}this._signal("afterRender"),this.$updateGutterWidth(e)},this.$updateGutterWidth=function(e){var t=this.session,i=t.gutterRenderer||this.$renderer,n=t.$firstLineNumber,r=this.$lines.last()?this.$lines.last().text:"",n=((this.$fixedWidth||t.$useWrapMode)&&(r=t.getLength()+n-1),i?i.getWidth(t,r,e):r.toString().length*e.characterWidth),i=this.$padding||this.$computePadding();(n+=i.left+i.right)===this.gutterWidth||isNaN(n)||(this.gutterWidth=n,this.element.parentNode.style.width=this.element.style.width=Math.ceil(this.gutterWidth)+"px",this._signal("changeGutterWidth",n))},this.$updateCursorRow=function(){var e;this.$highlightGutterLine&&(e=this.session.selection.getCursor(),this.$cursorRow!==e.row)&&(this.$cursorRow=e.row)},this.updateLineHighlight=function(){if(this.$highlightGutterLine){var e=this.session.selection.cursor.row;if(this.$cursorRow=e,!this.$cursorCell||this.$cursorCell.row!=e){this.$cursorCell&&(this.$cursorCell.element.className=this.$cursorCell.element.className.replace("ace_gutter-active-line ",""));var t=this.$lines.cells;this.$cursorCell=null;for(var i=0;i=this.$cursorRow){if(n.row>this.$cursorRow){var r=this.session.getFoldLine(this.$cursorRow);if(!(0i.right-t.right?"foldWidgets":void 0}}).call(n.prototype),t.Gutter=n}),ace.define("ace/layer/marker",["require","exports","module","ace/range","ace/lib/dom"],function(e,t,i){"use strict";function n(e){this.element=r.createElement("div"),this.element.className="ace_layer ace_marker-layer",e.appendChild(this.element)}var p=e("../range").Range,r=e("../lib/dom");(function(){this.$padding=0,this.setPadding=function(e){this.$padding=e},this.setSession=function(e){this.session=e},this.setMarkers=function(e){this.markers=e},this.elt=function(e,t){var i=-1!=this.i&&this.element.childNodes[this.i];i?this.i++:(i=document.createElement("div"),this.element.appendChild(i),this.i=-1),i.style.cssText=t,i.className=e},this.update=function(e){if(e){var t,i;for(i in this.config=e,this.i=0,this.markers){var n,r,s,o=this.markers[i];o.range?(s=o.range.clipRows(e.firstRow,e.lastRow)).isEmpty()||(s=s.toScreenRange(this.session),o.renderer?(n=this.$getTop(s.start.row,e),r=this.$padding+s.start.column*e.characterWidth,o.renderer(t,s,r,n,e)):"fullLine"==o.type?this.drawFullLineMarker(t,s,o.clazz,e):"screenLine"==o.type?this.drawScreenLineMarker(t,s,o.clazz,e):s.isMultiLine()?"text"==o.type?this.drawTextMarker(t,s,o.clazz,e):this.drawMultiLineMarker(t,s,o.clazz,e):this.drawSingleLineMarker(t,s,o.clazz+" ace_start ace_br15",e)):o.update(t,this,this.session,e)}if(-1!=this.i)for(;this.ie.lastRow)for(r=this.session.getFoldedRowCount(e.lastRow+1,t.lastRow);0t.lastRow&&this.$lines.push(this.$renderLinesFragment(e,t.lastRow+1,e.lastRow))},this.$renderLinesFragment=function(e,t,i){for(var n=[],r=t,s=this.session.getNextFoldLine(r),o=s?s.start.row:1/0;o=s;)o=this.$renderToken(a,o,h,c.substring(0,s-n)),c=c.substring(s-n),n=s,a=this.$createLineElement(),e.appendChild(a),a.appendChild(this.dom.createTextNode(v.stringRepeat(" ",i.indent),this.element)),o=0,s=i[++r]||Number.MAX_VALUE;0!=c.length&&(n+=c.length,o=this.$renderToken(a,o,h,c))}}i[i.length-1]>this.MAX_LINE_LENGTH&&this.$renderOverflowMessage(a,o,null,"",!0)},this.$renderSimpleLine=function(e,t){var i=0,n=t[0],r=n.value;(r=this.displayIndentGuides?this.renderIndentGuide(e,r):r)&&(i=this.$renderToken(e,i,n,r));for(var s=1;sthis.MAX_LINE_LENGTH)return this.$renderOverflowMessage(e,i,n,r);i=this.$renderToken(e,i,n,r)}},this.$renderOverflowMessage=function(e,t,i,n,r){i&&this.$renderToken(e,t,i,n.slice(0,this.MAX_LINE_LENGTH-t));i=this.dom.createElement("span");i.className="ace_inline_button ace_keyword ace_toggle_wrap",i.textContent=r?"":"",e.appendChild(i)},this.$renderLine=function(e,t,i){var n,r,s=e;(n=(i=i||0==i?i:this.session.getFoldLine(t))?this.$getFoldLineTokens(t,i):this.session.getTokens(t)).length?(r=this.session.getRowSplitData(t))&&r.length?(this.$renderWrappedLine(e,n,r),s=e.lastChild):(s=e,this.$useLineGroups()&&(s=this.$createLineElement(),e.appendChild(s)),this.$renderSimpleLine(s,n)):this.$useLineGroups()&&(s=this.$createLineElement(),e.appendChild(s)),this.showEOL&&s&&(i&&(t=i.end.row),(r=this.dom.createElement("span")).className="ace_invisible ace_invisible_eol",r.textContent=t==this.session.getLength()-1?this.EOF_CHAR:this.EOL_CHAR,s.appendChild(r))},this.$getFoldLineTokens=function(e,t){var d=this.session,u=[],p=d.getTokens(e);return t.walk(function(e,t,i,n,r){if(null!=e)u.push({type:"fold",value:e});else if((p=r?d.getTokens(t):p).length){for(var s,o=p,a=n,l=i,h=0,c=0;c+o[h].value.lengthl-a&&(s=s.substring(0,l-a)),u.push({type:o[h].type,value:s}),c=a+s.length,h+=1);cl?u.push({type:o[h].type,value:s.substring(0,l-c)}):u.push(o[h]),c+=s.length,h+=1}},t.end.row,this.session.getLine(t.end.row).length),u},this.$useLineGroups=function(){return this.session.getUseWrapMode()},this.destroy=function(){}}).call(n.prototype),t.Text=n}),ace.define("ace/layer/cursor",["require","exports","module","ace/lib/dom"],function(e,t,i){"use strict";function n(e){this.element=h.createElement("div"),this.element.className="ace_layer ace_cursor-layer",e.appendChild(this.element),this.isVisible=!1,this.isBlinking=!0,this.blinkInterval=1e3,this.smoothBlinking=!1,this.cursors=[],this.cursor=this.addCursor(),h.addCssClass(this.element,"ace_hidden-cursors"),this.$updateCursors=this.$updateOpacity.bind(this)}var h=e("../lib/dom");(function(){this.$updateOpacity=function(e){for(var t=this.cursors,i=t.length;i--;)h.setStyle(t[i].style,"opacity",e?"":"0")},this.$startCssAnimation=function(){for(var e=this.cursors,t=e.length;t--;)e[t].style.animationDuration=this.blinkInterval+"ms";setTimeout(function(){h.addCssClass(this.element,"ace_animate-blinking")}.bind(this))},this.$stopCssAnimation=function(){h.removeCssClass(this.element,"ace_animate-blinking")},this.$padding=0,this.setPadding=function(e){this.$padding=e},this.setSession=function(e){this.session=e},this.setBlinking=function(e){e!=this.isBlinking&&(this.isBlinking=e,this.restartTimer())},this.setBlinkInterval=function(e){e!=this.blinkInterval&&(this.blinkInterval=e,this.restartTimer())},this.setSmoothBlinking=function(e){e!=this.smoothBlinking&&(this.smoothBlinking=e,h.setCssClass(this.element,"ace_smooth-blinking",e),this.$updateCursors(!0),this.restartTimer())},this.addCursor=function(){var e=h.createElement("div");return e.className="ace_cursor",this.element.appendChild(e),this.cursors.push(e),e},this.removeCursor=function(){var e;if(1e.height+e.offset||a.top<0)&&1n;)this.removeCursor();var l=this.session.getOverwrite();this.$setOverwrite(l),this.$pixelPos=a,this.restartTimer()},this.drawCursor=null,this.$setOverwrite=function(e){e!=this.overwrite&&((this.overwrite=e)?h.addCssClass(this.element,"ace_overwrite-cursors"):h.removeCssClass(this.element,"ace_overwrite-cursors"))},this.destroy=function(){clearInterval(this.intervalId),clearTimeout(this.timeoutId)}}).call(n.prototype),t.Cursor=n}),ace.define("ace/scrollbar",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/event","ace/lib/event_emitter"],function(e,t,i){"use strict";function n(e){this.element=a.createElement("div"),this.element.className="ace_scrollbar ace_scrollbar"+this.classSuffix,this.inner=a.createElement("div"),this.inner.className="ace_scrollbar-inner",this.inner.textContent=" ",this.element.appendChild(this.inner),e.appendChild(this.element),this.setVisible(!1),this.skipEvent=!1,l.addListener(this.element,"scroll",this.onScroll.bind(this)),l.addListener(this.element,"mousedown",l.preventDefault)}function r(e,t){n.call(this,e),this.scrollTop=0,this.scrollHeight=0,t.$scrollbarWidth=this.width=a.scrollbarWidth(e.ownerDocument),this.inner.style.width=this.element.style.width=(this.width||15)+5+"px",this.$minWidth=0}function s(e,t){n.call(this,e),this.scrollLeft=0,this.height=t.$scrollbarWidth,this.inner.style.height=this.element.style.height=(this.height||15)+5+"px"}var o=e("./lib/oop"),a=e("./lib/dom"),l=e("./lib/event"),h=e("./lib/event_emitter").EventEmitter;!function(){o.implement(this,h),this.setVisible=function(e){this.element.style.display=e?"":"none",this.isVisible=e,this.coeff=1}}.call(n.prototype),o.inherits(r,n),function(){this.classSuffix="-v",this.onScroll=function(){var e;this.skipEvent||(this.scrollTop=this.element.scrollTop,1!=this.coeff&&(e=this.element.clientHeight/this.scrollHeight,this.scrollTop=this.scrollTop*(1-e)/(this.coeff-e)),this._emit("scroll",{data:this.scrollTop})),this.skipEvent=!1},this.getWidth=function(){return Math.max(this.isVisible?this.width:0,this.$minWidth||0)},this.setHeight=function(e){this.element.style.height=e+"px"},this.setInnerHeight=this.setScrollHeight=function(e){32768<(this.scrollHeight=e)?(this.coeff=32768/e,e=32768):1!=this.coeff&&(this.coeff=1),this.inner.style.height=e+"px"},this.setScrollTop=function(e){this.scrollTop!=e&&(this.skipEvent=!0,this.scrollTop=e,this.element.scrollTop=e*this.coeff)}}.call(r.prototype);o.inherits(s,n),function(){this.classSuffix="-h",this.onScroll=function(){this.skipEvent||(this.scrollLeft=this.element.scrollLeft,this._emit("scroll",{data:this.scrollLeft})),this.skipEvent=!1},this.getHeight=function(){return this.isVisible?this.height:0},this.setWidth=function(e){this.element.style.width=e+"px"},this.setInnerWidth=function(e){this.inner.style.width=e+"px"},this.setScrollWidth=function(e){this.inner.style.width=e+"px"},this.setScrollLeft=function(e){this.scrollLeft!=e&&(this.skipEvent=!0,this.scrollLeft=this.element.scrollLeft=e)}}.call(s.prototype),t.ScrollBar=r,t.ScrollBarV=r,t.ScrollBarH=s,t.VScrollBar=r,t.HScrollBar=s}),ace.define("ace/renderloop",["require","exports","module","ace/lib/event"],function(e,t,i){"use strict";function n(e,t){this.onRender=e,this.pending=!1,this.changes=0,this.$recursionLimit=2,this.window=t||window;var i=this;this._flush=function(e){i.pending=!1;var t=i.changes;t&&(r.blockIdle(100),i.changes=0,i.onRender(t)),i.changes?i.$recursionLimit--<0||i.schedule():i.$recursionLimit=2}}var r=e("./lib/event");(function(){this.schedule=function(e){this.changes=this.changes|e,this.changes&&!this.pending&&(r.nextFrame(this._flush),this.pending=!0)},this.clear=function(e){var t=this.changes;return this.changes=0,t}}).call(n.prototype),t.RenderLoop=n}),ace.define("ace/layer/font_metrics",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/lib/event","ace/lib/useragent","ace/lib/event_emitter"],function(e,t,i){var n=e("../lib/oop"),r=e("../lib/dom"),s=e("../lib/lang"),o=e("../lib/event"),a=e("../lib/useragent"),l=e("../lib/event_emitter").EventEmitter,h="function"==typeof ResizeObserver,e=t.FontMetrics=function(e){this.el=r.createElement("div"),this.$setMeasureNodeStyles(this.el.style,!0),this.$main=r.createElement("div"),this.$setMeasureNodeStyles(this.$main.style),this.$measureNode=r.createElement("div"),this.$setMeasureNodeStyles(this.$measureNode.style),this.el.appendChild(this.$main),this.el.appendChild(this.$measureNode),e.appendChild(this.el),this.$measureNode.textContent=s.stringRepeat("X",256),this.$characterSize={width:0,height:0},h?this.$addObserver():this.checkForSizeChanges()};!function(){n.implement(this,l),this.$characterSize={width:0,height:0},this.$setMeasureNodeStyles=function(e,t){e.width=e.height="auto",e.left=e.top="0px",e.visibility="hidden",e.position="absolute",e.whiteSpace="pre",a.isIE<8?e["font-family"]="inherit":e.font="inherit",e.overflow=t?"hidden":"visible"},this.checkForSizeChanges=function(e){var t;!(e=void 0===e?this.$measureSizes():e)||this.$characterSize.width===e.width&&this.$characterSize.height===e.height||(this.$measureNode.style.fontWeight="bold",t=this.$measureSizes(),this.$measureNode.style.fontWeight="",this.$characterSize=e,this.charSizes=Object.create(null),this.allowBoldFonts=t&&t.width===e.width&&t.height===e.height,this._emit("changeCharacterSize",{data:e}))},this.$addObserver=function(){var t=this;this.$observer=new window.ResizeObserver(function(e){t.checkForSizeChanges()}),this.$observer.observe(this.$measureNode)},this.$pollSizeChanges=function(){var t;return this.$pollSizeChangesTimer||this.$observer?this.$pollSizeChangesTimer:(t=this).$pollSizeChangesTimer=o.onIdle(function e(){t.checkForSizeChanges(),o.onIdle(e,500)},500)},this.setPolling=function(e){e?this.$pollSizeChanges():this.$pollSizeChangesTimer&&(clearInterval(this.$pollSizeChangesTimer),this.$pollSizeChangesTimer=0)},this.$measureSizes=function(e){e={height:(e||this.$measureNode).clientHeight,width:(e||this.$measureNode).clientWidth/256};return 0===e.width||0===e.height?null:e},this.$measureCharWidth=function(e){return this.$main.textContent=s.stringRepeat(e,256),this.$main.getBoundingClientRect().width/256},this.getCharacterWidth=function(e){var t=this.charSizes[e];return t=void 0===t?this.charSizes[e]=this.$measureCharWidth(e)/this.$characterSize.width:t},this.destroy=function(){clearInterval(this.$pollSizeChangesTimer),this.$observer&&this.$observer.disconnect(),this.el&&this.el.parentNode&&this.el.parentNode.removeChild(this.el)},this.$getZoom=function e(t){return t&&t.parentElement?(window.getComputedStyle(t).zoom||1)*e(t.parentElement):1},this.$initTransformMeasureNodes=function(){function e(e,t){return["div",{style:"position: absolute;top:"+e+"px;left:"+t+"px;"}]}this.els=r.buildDom([e(0,0),e(200,0),e(0,200),e(200,200)],this.el)},this.transformCoordinates=function(e,t){function i(e,t,i){var n=e[1]*t[0]-e[0]*t[1];return[(-t[1]*i[0]+t[0]*i[1])/n,(+e[1]*i[0]-e[0]*i[1])/n]}function n(e,t){return[e[0]-t[0],e[1]-t[1]]}function r(e,t){return[e[0]+t[0],e[1]+t[1]]}function s(e,t){return[e*t[0],e*t[1]]}function o(e){e=e.getBoundingClientRect();return[e.left,e.top]}e=e&&s(1/this.$getZoom(this.el),e),this.els||this.$initTransformMeasureNodes();var a,l=o(this.els[0]),h=o(this.els[1]),c=o(this.els[2]),d=o(this.els[3]),d=i(n(d,h),n(d,c),n(r(h,c),r(d,l))),h=s(1+d[0],n(h,l)),c=s(1+d[1],n(c,l));return t?(a=d[0]*t[0]/200+d[1]*t[1]/200+1,t=r(s(t[0],h),s(t[1],c)),r(s(1/a/200,t),l)):(a=n(e,l),t=i(n(h,s(d[0],a)),n(c,s(d[1],a)),a),s(200,t))}}.call(e.prototype)}),ace.define("ace/virtual_renderer",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/config","ace/layer/gutter","ace/layer/marker","ace/layer/text","ace/layer/cursor","ace/scrollbar","ace/scrollbar","ace/renderloop","ace/layer/font_metrics","ace/lib/event_emitter","ace/lib/useragent"],function(e,t,i){"use strict";function n(e,t){var i=this,e=(this.container=e||a.createElement("div"),a.addCssClass(this.container,"ace_editor"),a.HI_DPI&&a.addCssClass(this.container,"ace_hidpi"),this.setTheme(t),this.$gutter=a.createElement("div"),this.$gutter.className="ace_gutter",this.container.appendChild(this.$gutter),this.$gutter.setAttribute("aria-hidden",!0),this.scroller=a.createElement("div"),this.scroller.className="ace_scroller",this.container.appendChild(this.scroller),this.content=a.createElement("div"),this.content.className="ace_content",this.scroller.appendChild(this.content),this.$gutterLayer=new o(this.$gutter),this.$gutterLayer.on("changeGutterWidth",this.onGutterResize.bind(this)),this.$markerBack=new l(this.content),this.$textLayer=new h(this.content));this.canvas=e.element,this.$markerFront=new l(this.content),this.$cursorLayer=new c(this.content),this.$horizScroll=!1,this.$vScroll=!1,this.scrollBar=this.scrollBarV=new u(this.container,this),this.scrollBarH=new d(this.container,this),this.scrollBarV.on("scroll",function(e){i.$scrollAnimation||i.session.setScrollTop(e.data-i.scrollMargin.top)}),this.scrollBarH.on("scroll",function(e){i.$scrollAnimation||i.session.setScrollLeft(e.data-i.scrollMargin.left)}),this.scrollTop=0,this.scrollLeft=0,this.cursorPos={row:0,column:0},this.$fontMetrics=new m(this.container),this.$textLayer.$setFontMetrics(this.$fontMetrics),this.$textLayer.on("changeCharacterSize",function(e){i.updateCharacterSize(),i.onResize(!0,i.gutterWidth,i.$size.width,i.$size.height),i._signal("changeCharacterSize",e)}),this.$size={width:0,height:0,scrollerHeight:0,scrollerWidth:0,$dirty:!0},this.layerConfig={width:1,padding:0,firstRow:0,firstRowScreen:0,lastRow:0,lineHeight:0,characterWidth:0,minHeight:1,maxHeight:1,offset:0,height:1,gutterOffset:1},this.scrollMargin={left:0,right:0,top:0,bottom:0,v:0,h:0},this.margin={left:0,right:0,top:0,bottom:0,v:0,h:0},this.$keepTextAreaAtCursor=!v.isIOS,this.$loop=new p(this.$renderChanges.bind(this),this.container.ownerDocument.defaultView),this.$loop.schedule(this.CHANGE_FULL),this.updateCharacterSize(),this.setPadding(4),s.resetOptions(this),s._signal("renderer",this)}var r=e("./lib/oop"),a=e("./lib/dom"),s=e("./config"),o=e("./layer/gutter").Gutter,l=e("./layer/marker").Marker,h=e("./layer/text").Text,c=e("./layer/cursor").Cursor,d=e("./scrollbar").HScrollBar,u=e("./scrollbar").VScrollBar,p=e("./renderloop").RenderLoop,m=e("./layer/font_metrics").FontMetrics,g=e("./lib/event_emitter").EventEmitter,f='.ace_br1 {border-top-left-radius : 3px;}.ace_br2 {border-top-right-radius : 3px;}.ace_br3 {border-top-left-radius : 3px; border-top-right-radius: 3px;}.ace_br4 {border-bottom-right-radius: 3px;}.ace_br5 {border-top-left-radius : 3px; border-bottom-right-radius: 3px;}.ace_br6 {border-top-right-radius : 3px; border-bottom-right-radius: 3px;}.ace_br7 {border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px;}.ace_br8 {border-bottom-left-radius : 3px;}.ace_br9 {border-top-left-radius : 3px; border-bottom-left-radius: 3px;}.ace_br10{border-top-right-radius : 3px; border-bottom-left-radius: 3px;}.ace_br11{border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-left-radius: 3px;}.ace_br12{border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}.ace_br13{border-top-left-radius : 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}.ace_br14{border-top-right-radius : 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}.ace_br15{border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}.ace_editor {position: relative;overflow: hidden;padding: 0;font: 12px/normal \'Monaco\', \'Menlo\', \'Ubuntu Mono\', \'Consolas\', \'source-code-pro\', monospace;direction: ltr;text-align: left;-webkit-tap-highlight-color: rgba(0, 0, 0, 0);}.ace_scroller {position: absolute;overflow: hidden;top: 0;bottom: 0;background-color: inherit;-ms-user-select: none;-moz-user-select: none;-webkit-user-select: none;user-select: none;cursor: text;}.ace_content {position: absolute;box-sizing: border-box;min-width: 100%;contain: style size layout;font-variant-ligatures: no-common-ligatures;}.ace_dragging .ace_scroller:before{position: absolute;top: 0;left: 0;right: 0;bottom: 0;content: \'\';background: rgba(250, 250, 250, 0.01);z-index: 1000;}.ace_dragging.ace_dark .ace_scroller:before{background: rgba(0, 0, 0, 0.01);}.ace_selecting, .ace_selecting * {cursor: text !important;}.ace_gutter {position: absolute;overflow : hidden;width: auto;top: 0;bottom: 0;left: 0;cursor: default;z-index: 4;-ms-user-select: none;-moz-user-select: none;-webkit-user-select: none;user-select: none;contain: style size layout;}.ace_gutter-active-line {position: absolute;left: 0;right: 0;}.ace_scroller.ace_scroll-left {box-shadow: 17px 0 16px -16px rgba(0, 0, 0, 0.4) inset;}.ace_gutter-cell {position: absolute;top: 0;left: 0;right: 0;padding-left: 19px;padding-right: 6px;background-repeat: no-repeat;}.ace_gutter-cell.ace_error {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAABOFBMVEX/////////QRswFAb/Ui4wFAYwFAYwFAaWGAfDRymzOSH/PxswFAb/SiUwFAYwFAbUPRvjQiDllog5HhHdRybsTi3/Tyv9Tir+Syj/UC3////XurebMBIwFAb/RSHbPx/gUzfdwL3kzMivKBAwFAbbvbnhPx66NhowFAYwFAaZJg8wFAaxKBDZurf/RB6mMxb/SCMwFAYwFAbxQB3+RB4wFAb/Qhy4Oh+4QifbNRcwFAYwFAYwFAb/QRzdNhgwFAYwFAbav7v/Uy7oaE68MBK5LxLewr/r2NXewLswFAaxJw4wFAbkPRy2PyYwFAaxKhLm1tMwFAazPiQwFAaUGAb/QBrfOx3bvrv/VC/maE4wFAbRPBq6MRO8Qynew8Dp2tjfwb0wFAbx6eju5+by6uns4uH9/f36+vr/GkHjAAAAYnRSTlMAGt+64rnWu/bo8eAA4InH3+DwoN7j4eLi4xP99Nfg4+b+/u9B/eDs1MD1mO7+4PHg2MXa347g7vDizMLN4eG+Pv7i5evs/v79yu7S3/DV7/498Yv24eH+4ufQ3Ozu/v7+y13sRqwAAADLSURBVHjaZc/XDsFgGIBhtDrshlitmk2IrbHFqL2pvXf/+78DPokj7+Fz9qpU/9UXJIlhmPaTaQ6QPaz0mm+5gwkgovcV6GZzd5JtCQwgsxoHOvJO15kleRLAnMgHFIESUEPmawB9ngmelTtipwwfASilxOLyiV5UVUyVAfbG0cCPHig+GBkzAENHS0AstVF6bacZIOzgLmxsHbt2OecNgJC83JERmePUYq8ARGkJx6XtFsdddBQgZE2nPR6CICZhawjA4Fb/chv+399kfR+MMMDGOQAAAABJRU5ErkJggg==");background-repeat: no-repeat;background-position: 2px center;}.ace_gutter-cell.ace_warning {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAAmVBMVEX///8AAAD///8AAAAAAABPSzb/5sAAAAB/blH/73z/ulkAAAAAAAD85pkAAAAAAAACAgP/vGz/rkDerGbGrV7/pkQICAf////e0IsAAAD/oED/qTvhrnUAAAD/yHD/njcAAADuv2r/nz//oTj/p064oGf/zHAAAAA9Nir/tFIAAAD/tlTiuWf/tkIAAACynXEAAAAAAAAtIRW7zBpBAAAAM3RSTlMAABR1m7RXO8Ln31Z36zT+neXe5OzooRDfn+TZ4p3h2hTf4t3k3ucyrN1K5+Xaks52Sfs9CXgrAAAAjklEQVR42o3PbQ+CIBQFYEwboPhSYgoYunIqqLn6/z8uYdH8Vmdnu9vz4WwXgN/xTPRD2+sgOcZjsge/whXZgUaYYvT8QnuJaUrjrHUQreGczuEafQCO/SJTufTbroWsPgsllVhq3wJEk2jUSzX3CUEDJC84707djRc5MTAQxoLgupWRwW6UB5fS++NV8AbOZgnsC7BpEAAAAABJRU5ErkJggg==");background-position: 2px center;}.ace_gutter-cell.ace_info {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAAAAAA6mKC9AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAAJ0Uk5TAAB2k804AAAAPklEQVQY02NgIB68QuO3tiLznjAwpKTgNyDbMegwisCHZUETUZV0ZqOquBpXj2rtnpSJT1AEnnRmL2OgGgAAIKkRQap2htgAAAAASUVORK5CYII=");background-position: 2px center;}.ace_dark .ace_gutter-cell.ace_info {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQBAMAAADt3eJSAAAAJFBMVEUAAAChoaGAgIAqKiq+vr6tra1ZWVmUlJSbm5s8PDxubm56enrdgzg3AAAAAXRSTlMAQObYZgAAAClJREFUeNpjYMAPdsMYHegyJZFQBlsUlMFVCWUYKkAZMxZAGdxlDMQBAG+TBP4B6RyJAAAAAElFTkSuQmCC");}.ace_scrollbar {contain: strict;position: absolute;right: 0;bottom: 0;z-index: 6;}.ace_scrollbar-inner {position: absolute;cursor: text;left: 0;top: 0;}.ace_scrollbar-v{overflow-x: hidden;overflow-y: scroll;top: 0;}.ace_scrollbar-h {overflow-x: scroll;overflow-y: hidden;left: 0;}.ace_print-margin {position: absolute;height: 100%;}.ace_text-input {position: absolute;z-index: 0;width: 0.5em;height: 1em;opacity: 0;background: transparent;-moz-appearance: none;appearance: none;border: none;resize: none;outline: none;overflow: hidden;font: inherit;padding: 0 1px;margin: 0 -1px;contain: strict;-ms-user-select: text;-moz-user-select: text;-webkit-user-select: text;user-select: text;white-space: pre!important;}.ace_text-input.ace_composition {background: transparent;color: inherit;z-index: 1000;opacity: 1;}.ace_composition_placeholder { color: transparent }.ace_composition_marker { border-bottom: 1px solid;position: absolute;border-radius: 0;margin-top: 1px;}[ace_nocontext=true] {transform: none!important;filter: none!important;clip-path: none!important;mask : none!important;contain: none!important;perspective: none!important;mix-blend-mode: initial!important;z-index: auto;}.ace_layer {z-index: 1;position: absolute;overflow: hidden;word-wrap: normal;white-space: pre;height: 100%;width: 100%;box-sizing: border-box;pointer-events: none;}.ace_gutter-layer {position: relative;width: auto;text-align: right;pointer-events: auto;height: 1000000px;contain: style size layout;}.ace_text-layer {font: inherit !important;position: absolute;height: 1000000px;width: 1000000px;contain: style size layout;}.ace_text-layer > .ace_line, .ace_text-layer > .ace_line_group {contain: style size layout;position: absolute;top: 0;left: 0;right: 0;}.ace_hidpi .ace_text-layer,.ace_hidpi .ace_gutter-layer,.ace_hidpi .ace_content,.ace_hidpi .ace_gutter {contain: strict;will-change: transform;}.ace_hidpi .ace_text-layer > .ace_line, .ace_hidpi .ace_text-layer > .ace_line_group {contain: strict;}.ace_cjk {display: inline-block;text-align: center;}.ace_cursor-layer {z-index: 4;}.ace_cursor {z-index: 4;position: absolute;box-sizing: border-box;border-left: 2px solid;transform: translatez(0);}.ace_multiselect .ace_cursor {border-left-width: 1px;}.ace_slim-cursors .ace_cursor {border-left-width: 1px;}.ace_overwrite-cursors .ace_cursor {border-left-width: 0;border-bottom: 1px solid;}.ace_hidden-cursors .ace_cursor {opacity: 0.2;}.ace_hasPlaceholder .ace_hidden-cursors .ace_cursor {opacity: 0;}.ace_smooth-blinking .ace_cursor {transition: opacity 0.18s;}.ace_animate-blinking .ace_cursor {animation-duration: 1000ms;animation-timing-function: step-end;animation-name: blink-ace-animate;animation-iteration-count: infinite;}.ace_animate-blinking.ace_smooth-blinking .ace_cursor {animation-duration: 1000ms;animation-timing-function: ease-in-out;animation-name: blink-ace-animate-smooth;}@keyframes blink-ace-animate {from, to { opacity: 1; }60% { opacity: 0; }}@keyframes blink-ace-animate-smooth {from, to { opacity: 1; }45% { opacity: 1; }60% { opacity: 0; }85% { opacity: 0; }}.ace_marker-layer .ace_step, .ace_marker-layer .ace_stack {position: absolute;z-index: 3;}.ace_marker-layer .ace_selection {position: absolute;z-index: 5;}.ace_marker-layer .ace_bracket {position: absolute;z-index: 6;}.ace_marker-layer .ace_error_bracket {position: absolute;border-bottom: 1px solid #DE5555;border-radius: 0;}.ace_marker-layer .ace_active-line {position: absolute;z-index: 2;}.ace_marker-layer .ace_selected-word {position: absolute;z-index: 4;box-sizing: border-box;}.ace_line .ace_fold {box-sizing: border-box;display: inline-block;height: 11px;margin-top: -2px;vertical-align: middle;background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII="),url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACJJREFUeNpi+P//fxgTAwPDBxDxD078RSX+YeEyDFMCIMAAI3INmXiwf2YAAAAASUVORK5CYII=");background-repeat: no-repeat, repeat-x;background-position: center center, top left;color: transparent;border: 1px solid black;border-radius: 2px;cursor: pointer;pointer-events: auto;}.ace_dark .ace_fold {}.ace_fold:hover{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII="),url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACBJREFUeNpi+P//fz4TAwPDZxDxD5X4i5fLMEwJgAADAEPVDbjNw87ZAAAAAElFTkSuQmCC");}.ace_tooltip {background-color: #FFF;background-image: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.1));border: 1px solid gray;border-radius: 1px;box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);color: black;max-width: 100%;padding: 3px 4px;position: fixed;z-index: 999999;box-sizing: border-box;cursor: default;white-space: pre;word-wrap: break-word;line-height: normal;font-style: normal;font-weight: normal;letter-spacing: normal;pointer-events: none;}.ace_folding-enabled > .ace_gutter-cell {padding-right: 13px;}.ace_fold-widget {box-sizing: border-box;margin: 0 -12px 0 1px;display: none;width: 11px;vertical-align: top;background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42mWKsQ0AMAzC8ixLlrzQjzmBiEjp0A6WwBCSPgKAXoLkqSot7nN3yMwR7pZ32NzpKkVoDBUxKAAAAABJRU5ErkJggg==");background-repeat: no-repeat;background-position: center;border-radius: 3px;border: 1px solid transparent;cursor: pointer;}.ace_folding-enabled .ace_fold-widget {display: inline-block; }.ace_fold-widget.ace_end {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42m3HwQkAMAhD0YzsRchFKI7sAikeWkrxwScEB0nh5e7KTPWimZki4tYfVbX+MNl4pyZXejUO1QAAAABJRU5ErkJggg==");}.ace_fold-widget.ace_closed {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAGCAYAAAAG5SQMAAAAOUlEQVR42jXKwQkAMAgDwKwqKD4EwQ26sSOkVWjgIIHAzPiCgaqiqnJHZnKICBERHN194O5b9vbLuAVRL+l0YWnZAAAAAElFTkSuQmCCXA==");}.ace_fold-widget:hover {border: 1px solid rgba(0, 0, 0, 0.3);background-color: rgba(255, 255, 255, 0.2);box-shadow: 0 1px 1px rgba(255, 255, 255, 0.7);}.ace_fold-widget:active {border: 1px solid rgba(0, 0, 0, 0.4);background-color: rgba(0, 0, 0, 0.05);box-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);}.ace_dark .ace_fold-widget {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHklEQVQIW2P4//8/AzoGEQ7oGCaLLAhWiSwB146BAQCSTPYocqT0AAAAAElFTkSuQmCC");}.ace_dark .ace_fold-widget.ace_end {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAH0lEQVQIW2P4//8/AxQ7wNjIAjDMgC4AxjCVKBirIAAF0kz2rlhxpAAAAABJRU5ErkJggg==");}.ace_dark .ace_fold-widget.ace_closed {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAFCAYAAACAcVaiAAAAHElEQVQIW2P4//+/AxAzgDADlOOAznHAKgPWAwARji8UIDTfQQAAAABJRU5ErkJggg==");}.ace_dark .ace_fold-widget:hover {box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);background-color: rgba(255, 255, 255, 0.1);}.ace_dark .ace_fold-widget:active {box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);}.ace_inline_button {border: 1px solid lightgray;display: inline-block;margin: -1px 8px;padding: 0 5px;pointer-events: auto;cursor: pointer;}.ace_inline_button:hover {border-color: gray;background: rgba(200,200,200,0.2);display: inline-block;pointer-events: auto;}.ace_fold-widget.ace_invalid {background-color: #FFB4B4;border-color: #DE5555;}.ace_fade-fold-widgets .ace_fold-widget {transition: opacity 0.4s ease 0.05s;opacity: 0;}.ace_fade-fold-widgets:hover .ace_fold-widget {transition: opacity 0.05s ease 0.05s;opacity:1;}.ace_underline {text-decoration: underline;}.ace_bold {font-weight: bold;}.ace_nobold .ace_bold {font-weight: normal;}.ace_italic {font-style: italic;}.ace_error-marker {background-color: rgba(255, 0, 0,0.2);position: absolute;z-index: 9;}.ace_highlight-marker {background-color: rgba(255, 255, 0,0.2);position: absolute;z-index: 8;}.ace_mobile-menu {position: absolute;line-height: 1.5;border-radius: 4px;-ms-user-select: none;-moz-user-select: none;-webkit-user-select: none;user-select: none;background: white;box-shadow: 1px 3px 2px grey;border: 1px solid #dcdcdc;color: black;}.ace_dark > .ace_mobile-menu {background: #333;color: #ccc;box-shadow: 1px 3px 2px grey;border: 1px solid #444;}.ace_mobile-button {padding: 2px;cursor: pointer;overflow: hidden;}.ace_mobile-button:hover {background-color: #eee;opacity:1;}.ace_mobile-button:active {background-color: #ddd;}.ace_placeholder {font-family: arial;transform: scale(0.9);transform-origin: left;white-space: pre;opacity: 0.7;margin: 0 10px;}',v=e("./lib/useragent"),b=v.isIE;a.importCssString(f,"ace_editor.css");(function(){this.CHANGE_CURSOR=1,this.CHANGE_MARKER=2,this.CHANGE_GUTTER=4,this.CHANGE_SCROLL=8,this.CHANGE_LINES=16,this.CHANGE_TEXT=32,this.CHANGE_SIZE=64,this.CHANGE_MARKER_BACK=128,this.CHANGE_MARKER_FRONT=256,this.CHANGE_FULL=512,this.CHANGE_H_SCROLL=1024,r.implement(this,g),this.updateCharacterSize=function(){this.$textLayer.allowBoldFonts!=this.$allowBoldFonts&&(this.$allowBoldFonts=this.$textLayer.allowBoldFonts,this.setStyle("ace_nobold",!this.$allowBoldFonts)),this.layerConfig.characterWidth=this.characterWidth=this.$textLayer.getCharacterWidth(),this.layerConfig.lineHeight=this.lineHeight=this.$textLayer.getLineHeight(),this.$updatePrintMargin(),a.setStyle(this.scroller.style,"line-height",this.lineHeight+"px")},this.setSession=function(e){this.session&&this.session.doc.off("changeNewLineMode",this.onChangeNewLineMode),(this.session=e)&&this.scrollMargin.top&&e.getScrollTop()<=0&&e.setScrollTop(-this.scrollMargin.top),this.$cursorLayer.setSession(e),this.$markerBack.setSession(e),this.$markerFront.setSession(e),this.$gutterLayer.setSession(e),this.$textLayer.setSession(e),e&&(this.$loop.schedule(this.CHANGE_FULL),this.session.$setFontMetrics(this.$fontMetrics),this.scrollBarH.scrollLeft=this.scrollBarV.scrollTop=null,this.onChangeNewLineMode=this.onChangeNewLineMode.bind(this),this.onChangeNewLineMode(),this.session.doc.on("changeNewLineMode",this.onChangeNewLineMode))},this.updateLines=function(e,t,i){if(void 0===t&&(t=1/0),this.$changedLines?(this.$changedLines.firstRow>e&&(this.$changedLines.firstRow=e),this.$changedLines.lastRowthis.layerConfig.lastRow||this.$loop.schedule(this.CHANGE_LINES)},this.onChangeNewLineMode=function(){this.$loop.schedule(this.CHANGE_TEXT),this.$textLayer.$updateEolChar(),this.session.$bidiHandler.setEolChar(this.$textLayer.EOL_CHAR)},this.onChangeTabSize=function(){this.$loop.schedule(this.CHANGE_TEXT|this.CHANGE_MARKER),this.$textLayer.onChangeTabSize()},this.updateText=function(){this.$loop.schedule(this.CHANGE_TEXT)},this.updateFull=function(e){e?this.$renderChanges(this.CHANGE_FULL,!0):this.$loop.schedule(this.CHANGE_FULL)},this.updateFontSize=function(){this.$textLayer.checkForSizeChanges()},this.$changes=0,this.$updateSizeAsync=function(){this.$loop.pending?this.$size.$dirty=!0:this.onResize()},this.onResize=function(e,t,i,n){if(!(2o.height-n?a.translate(this.textarea,0,0):(o=1,r=this.$size.height-n,s?s.useTextareaForIME?(s=this.textarea.value,o=this.characterWidth*this.session.$getStringScreenWidth(s)[0]):t+=this.lineHeight+2:t+=this.lineHeight,(i-=this.scrollLeft)>this.$size.scrollerWidth-o&&(i=this.$size.scrollerWidth-o),i+=this.gutterWidth+this.margin.left,a.setStyle(e,"height",n+"px"),a.setStyle(e,"width",o+"px"),a.translate(this.textarea,Math.min(i,this.$size.scrollerWidth-o),Math.min(t,r)))):a.translate(this.textarea,-100,0))},this.getFirstVisibleRow=function(){return this.layerConfig.firstRow},this.getFirstFullyVisibleRow=function(){return this.layerConfig.firstRow+(0===this.layerConfig.offset?0:1)},this.getLastFullyVisibleRow=function(){var e=this.layerConfig,t=e.lastRow;return this.session.documentToScreenRow(t,0)*e.lineHeight-this.session.getScrollTop()>e.height-e.lineHeight?t-1:t},this.getLastVisibleRow=function(){return this.layerConfig.lastRow},this.$padding=null,this.setPadding=function(e){this.$padding=e,this.$textLayer.setPadding(e),this.$cursorLayer.setPadding(e),this.$markerFront.setPadding(e),this.$markerBack.setPadding(e),this.$loop.schedule(this.CHANGE_FULL),this.$updatePrintMargin()},this.setScrollMargin=function(e,t,i,n){var r=this.scrollMargin;r.top=0|e,r.bottom=0|t,r.right=0|n,r.left=0|i,r.v=r.top+r.bottom,r.h=r.left+r.right,r.top&&this.scrollTop<=0&&this.session&&this.session.setScrollTop(-r.top),this.updateFull()},this.setMargin=function(e,t,i,n){var r=this.margin;r.top=0|e,r.bottom=0|t,r.right=0|n,r.left=0|i,r.v=r.top+r.bottom,r.h=r.left+r.right,this.$updateCachedSize(!0,this.gutterWidth,this.$size.width,this.$size.height),this.updateFull()},this.getHScrollBarAlwaysVisible=function(){return this.$hScrollBarAlwaysVisible},this.setHScrollBarAlwaysVisible=function(e){this.setOption("hScrollBarAlwaysVisible",e)},this.getVScrollBarAlwaysVisible=function(){return this.$vScrollBarAlwaysVisible},this.setVScrollBarAlwaysVisible=function(e){this.setOption("vScrollBarAlwaysVisible",e)},this.$updateScrollBarV=function(){var e=this.layerConfig.maxHeight,t=this.$size.scrollerHeight;!this.$maxLines&&this.$scrollPastEnd&&(e-=(t-this.lineHeight)*this.$scrollPastEnd,this.scrollTop>e-t)&&(e=this.scrollTop+t,this.scrollBarV.scrollTop=null),this.scrollBarV.setScrollHeight(e+this.scrollMargin.v),this.scrollBarV.setScrollTop(this.scrollTop+this.scrollMargin.top)},this.$updateScrollBarH=function(){this.scrollBarH.setScrollWidth(this.layerConfig.width+2*this.$padding+this.scrollMargin.h),this.scrollBarH.setScrollLeft(this.scrollLeft+this.scrollMargin.left)},this.$frozen=!1,this.freeze=function(){this.$frozen=!0},this.unfreeze=function(){this.$frozen=!1},this.$renderChanges=function(e,t){if(this.$changes&&(e|=this.$changes,this.$changes=0),this.session&&this.container.offsetWidth&&!this.$frozen&&(e||t)){if(this.$size.$dirty)return this.$changes|=e,this.onResize(!0);this.lineHeight||this.$textLayer.checkForSizeChanges(),this._signal("beforeRender",e),this.session&&this.session.$bidiHandler&&this.session.$bidiHandler.updateCharacterWidths(this.$fontMetrics);var i,n,t=this.layerConfig;(e&this.CHANGE_FULL||e&this.CHANGE_SIZE||e&this.CHANGE_TEXT||e&this.CHANGE_LINES||e&this.CHANGE_SCROLL||e&this.CHANGE_H_SCROLL)&&(e|=this.$computeLayerConfig()|this.$loop.clear(),t.firstRow!=this.layerConfig.firstRow&&t.firstRowScreen==this.layerConfig.firstRowScreen&&0<(i=this.scrollTop+(t.firstRow-this.layerConfig.firstRow)*this.lineHeight)&&(this.scrollTop=i,e=(e|=this.CHANGE_SCROLL)|(this.$computeLayerConfig()|this.$loop.clear())),t=this.layerConfig,this.$updateScrollBarV(),e&this.CHANGE_H_SCROLL&&this.$updateScrollBarH(),a.translate(this.content,-this.scrollLeft,-t.offset),i=t.width+2*this.$padding+"px",n=t.minHeight+"px",a.setStyle(this.content.style,"width",i),a.setStyle(this.content.style,"height",n)),e&this.CHANGE_H_SCROLL&&(a.translate(this.content,-this.scrollLeft,-t.offset),this.scroller.className=this.scrollLeft<=0?"ace_scroller":"ace_scroller ace_scroll-left"),e&this.CHANGE_FULL?(this.$changedLines=null,this.$textLayer.update(t),this.$showGutter&&this.$gutterLayer.update(t),this.$markerBack.update(t),this.$markerFront.update(t),this.$cursorLayer.update(t),this.$moveTextAreaToCursor()):e&this.CHANGE_SCROLL?(this.$changedLines=null,e&this.CHANGE_TEXT||e&this.CHANGE_LINES?this.$textLayer.update(t):this.$textLayer.scrollLines(t),this.$showGutter&&(e&this.CHANGE_GUTTER||e&this.CHANGE_LINES?this.$gutterLayer.update(t):this.$gutterLayer.scrollLines(t)),this.$markerBack.update(t),this.$markerFront.update(t),this.$cursorLayer.update(t),this.$moveTextAreaToCursor()):(e&this.CHANGE_TEXT?(this.$changedLines=null,this.$textLayer.update(t),this.$showGutter&&this.$gutterLayer.update(t)):e&this.CHANGE_LINES?(this.$updateLines()||e&this.CHANGE_GUTTER&&this.$showGutter)&&this.$gutterLayer.update(t):e&this.CHANGE_TEXT||e&this.CHANGE_GUTTER?this.$showGutter&&this.$gutterLayer.update(t):e&this.CHANGE_CURSOR&&this.$highlightGutterLine&&this.$gutterLayer.updateLineHighlight(t),e&this.CHANGE_CURSOR&&(this.$cursorLayer.update(t),this.$moveTextAreaToCursor()),e&(this.CHANGE_MARKER|this.CHANGE_MARKER_FRONT)&&this.$markerFront.update(t),e&(this.CHANGE_MARKER|this.CHANGE_MARKER_BACK)&&this.$markerBack.update(t)),this._signal("afterRender",e)}else this.$changes|=e},this.$autosize=function(){var e=this.session.getScreenLength()*this.lineHeight,t=this.$maxLines*this.lineHeight,i=Math.min(t,Math.max((this.$minLines||1)*this.lineHeight,e))+this.scrollMargin.v+(this.$extraHeight||0);this.$horizScroll&&(i+=this.scrollBarH.getHeight());t=!((i=this.$maxPixelHeight&&i>this.$maxPixelHeight?this.$maxPixelHeight:i)<=2*this.lineHeight)&&tc.top)),h=o!==n,c=(h&&(this.$vScroll=n,this.scrollBarV.setVisible(n)),this.scrollTop%this.lineHeight),o=Math.ceil(l/this.lineHeight)-1,o=(n=Math.max(0,Math.round((this.scrollTop-c)/this.lineHeight)))+o,d=this.lineHeight,n=t.screenToDocumentRow(n,0),u=t.getFoldLine(n),t=(u&&(n=u.start.row),u=t.documentToScreenRow(n,0),e=t.getRowLength(n)*d,o=Math.min(t.screenToDocumentRow(o,0),t.getLength()-1),l=i.scrollerHeight+t.getRowLength(o)*d+e,c=this.scrollTop-u*d,0);return this.layerConfig.width==s&&!a||(t=this.CHANGE_H_SCROLL),(a||h)&&(t|=this.$updateCachedSize(!0,this.gutterWidth,i.width,i.height),this._signal("scrollbarVisibilityChanged"),h)&&(s=this.$getLongestLine()),this.layerConfig={width:s,padding:this.$padding,firstRow:n,firstRowScreen:u,lastRow:o,lineHeight:d,characterWidth:this.characterWidth,minHeight:l,maxHeight:r,offset:c,gutterOffset:d?Math.max(0,Math.ceil((c+i.height-i.scrollerHeight)/d)):0,height:this.$size.scrollerHeight},this.session.$bidiHandler&&this.session.$bidiHandler.setContentWidth(s-this.$padding),t},this.$updateLines=function(){if(this.$changedLines){var e=this.$changedLines.firstRow,t=this.$changedLines.lastRow,i=(this.$changedLines=null,this.layerConfig);if(!(e>i.lastRow+1||tthis.$textLayer.MAX_LINE_LENGTH&&(e=this.$textLayer.MAX_LINE_LENGTH+30),Math.max(this.$size.scrollerWidth-2*this.$padding,Math.round(e*this.characterWidth))},this.updateFrontMarkers=function(){this.$markerFront.setMarkers(this.session.getMarkers(!0)),this.$loop.schedule(this.CHANGE_MARKER_FRONT)},this.updateBackMarkers=function(){this.$markerBack.setMarkers(this.session.getMarkers()),this.$loop.schedule(this.CHANGE_MARKER_BACK)},this.addGutterDecoration=function(e,t){this.$gutterLayer.addGutterDecoration(e,t)},this.removeGutterDecoration=function(e,t){this.$gutterLayer.removeGutterDecoration(e,t)},this.updateBreakpoints=function(e){this.$loop.schedule(this.CHANGE_GUTTER)},this.setAnnotations=function(e){this.$gutterLayer.setAnnotations(e),this.$loop.schedule(this.CHANGE_GUTTER)},this.updateCursor=function(){this.$loop.schedule(this.CHANGE_CURSOR)},this.hideCursor=function(){this.$cursorLayer.hideCursor()},this.showCursor=function(){this.$cursorLayer.showCursor()},this.scrollSelectionIntoView=function(e,t,i){this.scrollCursorIntoView(e,i),this.scrollCursorIntoView(t,i)},this.scrollCursorIntoView=function(e,t,i){var n,r,s;0!==this.$size.scrollerHeight&&(n=(e=this.$cursorLayer.getPixelPosition(e)).left,e=e.top,s=i&&i.top||0,i=i&&i.bottom||0,e<(r=this.$scrollAnimation?this.session.getScrollTop():this.scrollTop)+s?(t&&r+s>e+this.lineHeight&&(e-=t*this.$size.scrollerHeight),0===e&&(e=-this.scrollMargin.top),this.session.setScrollTop(e)):r+this.$size.scrollerHeight-i=1-this.scrollMargin.top||0=1-this.scrollMargin.left||0this.$doc.getLength()>>1?this.call("setValue",[this.$doc.getValue()]):this.emit("change",{data:e}))}}).call(h.prototype);e.UIWorkerClient=function(e,t,i){var n=null,r=!1,s=Object.create(c),o=[],a=new h({messageBuffer:o,terminate:function(){},postMessage:function(e){o.push(e),n&&(r?setTimeout(l):l())}}),l=(a.setEmitSync=function(e){r=e},function(){var e=o.shift();e.command?n[e.command].apply(n,e.args):e.event&&s._signal(e.event,e.data)});return s.postMessage=function(e){a.onMessage({data:e})},s.callback=function(e,t){this.postMessage({type:"call",id:t,data:e})},s.emit=function(e,t){this.postMessage({type:"event",name:e,data:t})},d.loadModule(["worker",t],function(e){for(n=new e[i](s);o.length;)l()}),a},e.WorkerClient=h,e.createWorker=l}),ace.define("ace/placeholder",["require","exports","module","ace/range","ace/lib/event_emitter","ace/lib/oop"],function(e,t,i){"use strict";function n(e,t,i,n,r,s){var o=this,t=(this.length=t,this.session=e,this.doc=e.getDocument(),this.mainClass=r,this.othersClass=s,this.$onUpdate=this.onUpdate.bind(this),this.doc.on("change",this.$onUpdate),this.$others=n,this.$onCursorChange=function(){setTimeout(function(){o.onCursorChange()})},this.$pos=i,e.getUndoManager().$undoStack||e.getUndoManager().$undostack||{length:-1});this.$undoStackDepth=t.length,this.setup(),e.selection.on("changeCursor",this.$onCursorChange)}var l=e("./range").Range,r=e("./lib/event_emitter").EventEmitter,s=e("./lib/oop");(function(){s.implement(this,r),this.setup=function(){var t=this,i=this.doc,e=this.session,n=(this.selectionBefore=e.selection.toJSON(),e.selection.inMultiSelectMode&&e.selection.toSingleRange(),this.pos=i.createAnchor(this.$pos.row,this.$pos.column),this.pos);n.$insertRight=!0,n.detach(),n.markerId=e.addMarker(new l(n.row,n.column,n.row,n.column+this.length),this.mainClass,null,!1),this.others=[],this.$others.forEach(function(e){e=i.createAnchor(e.row,e.column);e.$insertRight=!0,e.detach(),t.others.push(e)}),e.setUndoSelect(!1)},this.showOtherMarkers=function(){var t,i;this.othersActive||(t=this.session,(i=this).othersActive=!0,this.others.forEach(function(e){e.markerId=t.addMarker(new l(e.row,e.column,e.row,e.column+i.length),i.othersClass,null,!1)}))},this.hideOtherMarkers=function(){if(this.othersActive){this.othersActive=!1;for(var e=0;e=this.pos.column&&t.start.column<=this.pos.column+this.length+1,r=t.start.column-this.pos.column;if(this.updateAnchors(e),n&&(this.length+=i),n&&!this.session.$fromUndo)if("insert"===e.action)for(var s=this.others.length-1;0<=s;s--){var o={row:(a=this.others[s]).row,column:a.column+r};this.doc.insertMergedLines(o,e.lines)}else if("remove"===e.action)for(s=this.others.length-1;0<=s;s--){var a,o={row:(a=this.others[s]).row,column:a.column+r};this.doc.remove(new l(o.row,o.column,o.row,o.column-i))}this.$updating=!1,this.updateMarkers()}},this.updateAnchors=function(e){this.pos.onChange(e);for(var t=this.others.length;t--;)this.others[t].onChange(e);this.updateMarkers()},this.updateMarkers=function(){if(!this.$updating){var i=this,n=this.session,e=function(e,t){n.removeMarker(e.markerId),e.markerId=n.addMarker(new l(e.row,e.column,e.row,e.column+i.length),t,null,!1)};e(this.pos,this.mainClass);for(var t=this.others.length;t--;)e(this.others[t],this.othersClass)}},this.onCursorChange=function(e){var t;!this.$updating&&this.session&&((t=this.session.selection.getCursor()).row===this.pos.row&&t.column>=this.pos.column&&t.column<=this.pos.column+this.length?(this.showOtherMarkers(),this._emit("cursorEnter",e)):(this.hideOtherMarkers(),this._emit("cursorLeave",e)))},this.detach=function(){this.session.removeMarker(this.pos&&this.pos.markerId),this.hideOtherMarkers(),this.doc.off("change",this.$onUpdate),this.session.selection.off("changeCursor",this.$onCursorChange),this.session.setUndoSelect(!0),this.session=null},this.cancel=function(){if(-1!==this.$undoStackDepth){for(var e=this.session.getUndoManager(),t=(e.$undoStack||e.$undostack).length-this.$undoStackDepth,i=0;is&&(s=e.column),(t=-1==t?0:t)t[1].length&&(r=t[1].length),st[3].length&&(o=t[3].length)),t):[e]}).map(t?n:a?l?function(e){return e[2]?i(r+s-e[2].length)+e[2]+i(o)+e[4].replace(/^([=:])\s+/,"$1 "):e[0]}:n:function(e){return e[2]?i(r)+e[2]+i(o)+e[4].replace(/^([=:])\s+/,"$1 "):e[0]})}}).call(h.prototype),r.onSessionChange=function(e){var t=e.session,e=(t&&!t.multiSelect&&(t.$selectionMarkers=[],t.selection.$initRangeList(),t.multiSelect=t.selection),this.multiSelect=t&&t.multiSelect,e.oldSession);e&&(e.multiSelect.off("addRange",this.$onAddRange),e.multiSelect.off("removeRange",this.$onRemoveRange),e.multiSelect.off("multiSelect",this.$onMultiSelect),e.multiSelect.off("singleSelect",this.$onSingleSelect),e.multiSelect.lead.off("change",this.$checkMultiselectChange),e.multiSelect.anchor.off("change",this.$checkMultiselectChange)),t&&(t.multiSelect.on("addRange",this.$onAddRange),t.multiSelect.on("removeRange",this.$onRemoveRange),t.multiSelect.on("multiSelect",this.$onMultiSelect),t.multiSelect.on("singleSelect",this.$onSingleSelect),t.multiSelect.lead.on("change",this.$checkMultiselectChange),t.multiSelect.anchor.on("change",this.$checkMultiselectChange)),t&&this.inMultiSelectMode!=t.selection.inMultiSelectMode&&(t.selection.inMultiSelectMode?this.$onMultiSelect():this.$onSingleSelect())},r.MultiSelect=i,e("./config").defineOptions(h.prototype,"editor",{enableMultiselect:{set:function(e){i(this),e?(this.on("changeSession",this.$multiselectOnSessionChange),this.on("mousedown",s)):(this.off("changeSession",this.$multiselectOnSessionChange),this.off("mousedown",s))},value:!0},enableBlockSelect:{set:function(e){this.$blockSelectEnabled=e},value:!0}})}),ace.define("ace/mode/folding/fold_mode",["require","exports","module","ace/range"],function(e,t,i){"use strict";var c=e("../../range").Range,e=t.FoldMode=function(){};!function(){this.foldingStartMarker=null,this.foldingStopMarker=null,this.getFoldWidget=function(e,t,i){e=e.getLine(i);return this.foldingStartMarker.test(e)?"start":"markbeginend"==t&&this.foldingStopMarker&&this.foldingStopMarker.test(e)?"end":""},this.getFoldWidgetRange=function(e,t,i){return null},this.indentationBlock=function(e,t,i){var n=/\S/,r=e.getLine(t),s=r.search(n);if(-1!=s){for(var o,i=i||r.length,a=e.getLength(),r=t,l=t;++ti.row&&(n.row--,n.column=e.getLine(n.row).length),c.fromPoints(i,n)},this.closingBracketBlock=function(e,t,i,n,r){i={row:i,column:n},n=e.$findOpeningBracket(t,i);if(n)return n.column++,i.column--,c.fromPoints(n,i)}}.call(e.prototype)}),ace.define("ace/theme/textmate",["require","exports","module","ace/lib/dom"],function(e,t,i){"use strict";t.isDark=!1,t.cssClass="ace-tm",t.cssText='.ace-tm .ace_gutter {background: #f0f0f0;color: #333;}.ace-tm .ace_print-margin {width: 1px;background: #e8e8e8;}.ace-tm .ace_fold {background-color: #6B72E6;}.ace-tm {background-color: #FFFFFF;color: black;}.ace-tm .ace_cursor {color: black;}.ace-tm .ace_invisible {color: rgb(191, 191, 191);}.ace-tm .ace_storage,.ace-tm .ace_keyword {color: blue;}.ace-tm .ace_constant {color: rgb(197, 6, 11);}.ace-tm .ace_constant.ace_buildin {color: rgb(88, 72, 246);}.ace-tm .ace_constant.ace_language {color: rgb(88, 92, 246);}.ace-tm .ace_constant.ace_library {color: rgb(6, 150, 14);}.ace-tm .ace_invalid {background-color: rgba(255, 0, 0, 0.1);color: red;}.ace-tm .ace_support.ace_function {color: rgb(60, 76, 114);}.ace-tm .ace_support.ace_constant {color: rgb(6, 150, 14);}.ace-tm .ace_support.ace_type,.ace-tm .ace_support.ace_class {color: rgb(109, 121, 222);}.ace-tm .ace_keyword.ace_operator {color: rgb(104, 118, 135);}.ace-tm .ace_string {color: rgb(3, 106, 7);}.ace-tm .ace_comment {color: rgb(76, 136, 107);}.ace-tm .ace_comment.ace_doc {color: rgb(0, 102, 255);}.ace-tm .ace_comment.ace_doc.ace_tag {color: rgb(128, 159, 191);}.ace-tm .ace_constant.ace_numeric {color: rgb(0, 0, 205);}.ace-tm .ace_variable {color: rgb(49, 132, 149);}.ace-tm .ace_xml-pe {color: rgb(104, 104, 91);}.ace-tm .ace_entity.ace_name.ace_function {color: #0000A2;}.ace-tm .ace_heading {color: rgb(12, 7, 255);}.ace-tm .ace_list {color:rgb(185, 6, 144);}.ace-tm .ace_meta.ace_tag {color:rgb(0, 22, 142);}.ace-tm .ace_string.ace_regex {color: rgb(255, 0, 0)}.ace-tm .ace_marker-layer .ace_selection {background: rgb(181, 213, 255);}.ace-tm.ace_multiselect .ace_selection.ace_start {box-shadow: 0 0 3px 0px white;}.ace-tm .ace_marker-layer .ace_step {background: rgb(252, 255, 0);}.ace-tm .ace_marker-layer .ace_stack {background: rgb(164, 229, 101);}.ace-tm .ace_marker-layer .ace_bracket {margin: -1px 0 0 -1px;border: 1px solid rgb(192, 192, 192);}.ace-tm .ace_marker-layer .ace_active-line {background: rgba(0, 0, 0, 0.07);}.ace-tm .ace_gutter-active-line {background-color : #dcdcdc;}.ace-tm .ace_marker-layer .ace_selected-word {background: rgb(250, 250, 255);border: 1px solid rgb(200, 200, 250);}.ace-tm .ace_indent-guide {background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAE0lEQVQImWP4////f4bLly//BwAmVgd1/w11/gAAAABJRU5ErkJggg==") right repeat-y;}',t.$id="ace/theme/textmate",e("../lib/dom").importCssString(t.cssText,t.cssClass)}),ace.define("ace/line_widgets",["require","exports","module","ace/lib/dom"],function(e,t,i){"use strict";function n(e){this.session=e,(this.session.widgetManager=this).session.getRowLength=this.getRowLength,this.session.$getWidgetScreenLength=this.$getWidgetScreenLength,this.updateOnChange=this.updateOnChange.bind(this),this.renderWidgets=this.renderWidgets.bind(this),this.measureWidgets=this.measureWidgets.bind(this),this.session._changedWidgets=[],this.$onChangeEditor=this.$onChangeEditor.bind(this),this.session.on("change",this.updateOnChange),this.session.on("changeFold",this.updateOnFold),this.session.on("changeEditor",this.$onChangeEditor)}var r=e("./lib/dom");(function(){this.getRowLength=function(e){var t=this.lineWidgets&&this.lineWidgets[e]&&this.lineWidgets[e].rowCount||0;return this.$useWrapMode&&this.$wrapData[e]?this.$wrapData[e].length+1+t:1+t},this.$getWidgetScreenLength=function(){var t=0;return this.lineWidgets.forEach(function(e){e&&e.rowCount&&!e.hidden&&(t+=e.rowCount)}),t},this.$onChangeEditor=function(e){this.attach(e.editor)},this.attach=function(e){e&&e.widgetManager&&e.widgetManager!=this&&e.widgetManager.detach(),this.editor!=e&&(this.detach(),this.editor=e)&&(e.widgetManager=this,e.renderer.on("beforeRender",this.measureWidgets),e.renderer.on("afterRender",this.renderWidgets))},this.detach=function(e){var t=this.editor;t&&(this.editor=null,t.widgetManager=null,t.renderer.off("beforeRender",this.measureWidgets),t.renderer.off("afterRender",this.renderWidgets),t=this.session.lineWidgets)&&t.forEach(function(e){e&&e.el&&e.el.parentNode&&(e._inDocument=!1,e.el.parentNode.removeChild(e.el))})},this.updateOnFold=function(e,t){var i=t.lineWidgets;if(i&&e.action){for(var t=e.data,n=t.start.row,r=t.end.row,s="add"==e.action,o=n+1;or[t].column&&t++,n.unshift(t,0),r.splice.apply(r,n)),this.$updateRows())},this.$updateRows=function(){var i,e=this.session.lineWidgets;e&&(i=!0,e.forEach(function(e,t){if(e)for(i=!1,e.row=t;e.$oldWidget;)e.$oldWidget.row=t,e=e.$oldWidget}),i)&&(this.session.lineWidgets=null)},this.$registerLineWidget=function(e){this.session.lineWidgets||(this.session.lineWidgets=new Array(this.session.getLength()));var t=this.session.lineWidgets[e.row];return t&&(e.$oldWidget=t).el&&t.el.parentNode&&(t.el.parentNode.removeChild(t.el),t._inDocument=!1),this.session.lineWidgets[e.row]=e},this.addLineWidget=function(e){var t,i,n;return this.$registerLineWidget(e),e.session=this.session,this.editor&&(t=this.editor.renderer,e.html&&!e.el&&(e.el=r.createElement("div"),e.el.innerHTML=e.html),e.el&&(r.addCssClass(e.el,"ace_lineWidgetContainer"),e.el.style.position="absolute",e.el.style.zIndex=5,t.container.appendChild(e.el),e._inDocument=!0,e.coverGutter||(e.el.style.zIndex=3),null==e.pixelHeight)&&(e.pixelHeight=e.el.offsetHeight),null==e.rowCount&&(e.rowCount=e.pixelHeight/t.layerConfig.lineHeight),i=this.session.getFoldAt(e.row,0),(e.$fold=i)&&(n=this.session.lineWidgets,e.row!=i.end.row||n[i.start.row]?e.hidden=!0:n[i.start.row]=e),this.session._emit("changeFold",{data:{start:{row:e.row}}}),this.$updateRows(),this.renderWidgets(null,t),this.onWidgetChanged(e)),e},this.removeLineWidget=function(e){if(e._inDocument=!1,e.session=null,e.el&&e.el.parentNode&&e.el.parentNode.removeChild(e.el),e.editor&&e.editor.destroy)try{e.editor.destroy()}catch(e){}if(this.session.lineWidgets){var t=this.session.lineWidgets[e.row];if(t==e)this.session.lineWidgets[e.row]=e.$oldWidget,e.$oldWidget&&this.onWidgetChanged(e.$oldWidget);else for(;t;){if(t.$oldWidget==e){t.$oldWidget=e.$oldWidget;break}t=t.$oldWidget}}this.session._emit("changeFold",{data:{start:{row:e.row}}}),this.$updateRows()},this.getWidgetsAtRow=function(e){for(var t=this.session.lineWidgets,i=t&&t[e],n=[];i;)n.push(i),i=i.$oldWidget;return n},this.onWidgetChanged=function(e){this.session._changedWidgets.push(e),this.editor&&this.editor.renderer.updateFull()},this.measureWidgets=function(e,t){var i=this.session._changedWidgets,n=t.layerConfig;if(i&&i.length){for(var r=1/0,s=0;s>1,o=i(t,e[s]);if(0=n.length?r=0"),s.appendChild(d.createElement("div"));l.destroy=function(){e.$mouseHandler.isMousePressed||(e.keyBinding.removeKeyboardHandler(a),n.widgetManager.removeLineWidget(l),e.off("changeSelection",l.destroy),e.off("changeSession",l.destroy),e.off("mouseup",l.destroy),e.off("change",l.destroy))},e.keyBinding.addKeyboardHandler(a),e.on("changeSelection",l.destroy),e.on("changeSession",l.destroy),e.on("mouseup",l.destroy),e.on("change",l.destroy),e.session.widgetManager.addLineWidget(l),l.el.onmousedown=e.focus.bind(e),e.renderer.scrollCursorIntoView(null,.5,{bottom:l.el.offsetHeight})},d.importCssString(" .error_widget_wrapper { background: inherit; color: inherit; border:none } .error_widget { border-top: solid 2px; border-bottom: solid 2px; margin: 5px 0; padding: 10px 40px; white-space: pre-wrap; } .error_widget.ace_error, .error_widget_arrow.ace_error{ border-color: #ff5a5a } .error_widget.ace_warning, .error_widget_arrow.ace_warning{ border-color: #F1D817 } .error_widget.ace_info, .error_widget_arrow.ace_info{ border-color: #5a5a5a } .error_widget.ace_ok, .error_widget_arrow.ace_ok{ border-color: #5aaa5a } .error_widget_arrow { position: absolute; border: solid 5px; border-top-color: transparent!important; border-right-color: transparent!important; border-left-color: transparent!important; top: -5px; }","")}),ace.define("ace/ace",["require","exports","module","ace/lib/fixoldbrowsers","ace/lib/dom","ace/lib/event","ace/range","ace/editor","ace/edit_session","ace/undomanager","ace/virtual_renderer","ace/worker/worker_client","ace/keyboard/hash_handler","ace/placeholder","ace/multi_select","ace/mode/folding/fold_mode","ace/theme/textmate","ace/ext/error_marker","ace/config"],function(e,s,t){"use strict";e("./lib/fixoldbrowsers");var o=e("./lib/dom"),a=e("./lib/event"),i=e("./range").Range,l=e("./editor").Editor,n=e("./edit_session").EditSession,r=e("./undomanager").UndoManager,h=e("./virtual_renderer").VirtualRenderer;e("./worker/worker_client"),e("./keyboard/hash_handler"),e("./placeholder"),e("./multi_select"),e("./mode/folding/fold_mode"),e("./theme/textmate"),e("./ext/error_marker"),s.config=e("./config"),s.require=e,"function"==typeof define&&(s.define=define),s.edit=function(e,t){if("string"==typeof e){var i=e;if(!(e=document.getElementById(i)))throw new Error("ace.edit can't find div #"+i)}var n,r;return e&&e.env&&e.env.editor instanceof l?e.env.editor:(i="",e&&/input|textarea/i.test(e.tagName)?(i=(n=e).value,e=o.createElement("pre"),n.parentNode.replaceChild(e,n)):e&&(i=e.textContent,e.innerHTML=""),i=s.createEditSession(i),e=new l(new h(e),i,t),r={document:i,editor:e,onResize:e.resize.bind(e,null)},n&&(r.textarea=n),a.addListener(window,"resize",r.onResize),e.on("destroy",function(){a.removeListener(window,"resize",r.onResize),r.editor.container.env=null}),e.container.env=e.env=r,e)},s.createEditSession=function(e,t){e=new n(e,t);return e.setUndoManager(new r),e},s.Range=i,s.Editor=l,s.EditSession=n,s.UndoManager=r,s.VirtualRenderer=h,s.version=s.config.version}),ace.require(["ace/ace"],function(e){for(var t in e&&(e.config.init(!0),e.define=ace.define),window.ace||(window.ace=e),e)e.hasOwnProperty(t)&&(window.ace[t]=e[t]);window.ace.default=window.ace,"object"==typeof module&&"object"==typeof exports&&module&&(module.exports=window.ace)}); -;"use strict";(()=>{var Ol=Object.defineProperty;var Al=(e,t)=>{for(var o in t)Ol(e,o,{get:t[o],enumerable:!0})};function as(e){let t=Object.create(null);for(let o of e.split(","))t[o]=1;return o=>o in t}var Ie={},jt=[],nt=()=>{},Wn=()=>!1,ls=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),ds=e=>e.startsWith("onUpdate:"),Be=Object.assign,Es=(e,t)=>{let o=e.indexOf(t);o>-1&&e.splice(o,1)},Il=Object.prototype.hasOwnProperty,Se=(e,t)=>Il.call(e,t),we=Array.isArray,Vt=e=>Cs(e)==="[object Map]",is=e=>Cs(e)==="[object Set]",Jo=e=>Cs(e)==="[object Date]";var ke=e=>typeof e=="function",Fe=e=>typeof e=="string",ut=e=>typeof e=="symbol",Te=e=>e!==null&&typeof e=="object",Kn=e=>(Te(e)||ke(e))&&ke(e.then)&&ke(e.catch),Zo=Object.prototype.toString,Cs=e=>Zo.call(e),Yn=e=>Cs(e).slice(8,-1),en=e=>Cs(e)==="[object Object]",tn=e=>Fe(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,us=as(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted");var sn=e=>{let t=Object.create(null);return(o=>t[o]||(t[o]=e(o)))},Vl=/-\w/g,We=sn(e=>e.replace(Vl,t=>t.slice(1).toUpperCase())),Pl=/\B([A-Z])/g,Pt=sn(e=>e.replace(Pl,"-$1").toLowerCase()),Wt=sn(e=>e.charAt(0).toUpperCase()+e.slice(1)),Ns=sn(e=>e?`on${Wt(e)}`:""),mt=(e,t)=>!Object.is(e,t),Ss=(e,...t)=>{for(let o=0;o{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:o})},xn=e=>{let t=parseFloat(e);return isNaN(t)?e:t};var Qo,Ds=()=>Qo||(Qo=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Oe(e){if(we(e)){let t={};for(let o=0;o{if(o){let r=o.split(Ml);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function T(e){let t="";if(Fe(e))t=e;else if(we(e))for(let o=0;o!!(e&&e.__v_isRef===!0),c=e=>Fe(e)?e:e==null?"":we(e)||Te(e)&&(e.toString===Zo||!ke(e.toString))?sr(e)?c(e.value):JSON.stringify(e,nr,2):String(e),nr=(e,t)=>sr(t)?nr(e,t.value):Vt(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((o,[r,n],i)=>(o[jn(r,i)+" =>"]=n,o),{})}:is(t)?{[`Set(${t.size})`]:[...t.values()].map(o=>jn(o))}:ut(t)?jn(t):Te(t)&&!we(t)&&!en(t)?String(t):t,jn=(e,t="")=>{var o;return ut(e)?`Symbol(${(o=e.description)!=null?o:t})`:e};function zl(e,...t){console.warn(`[Vue warn] ${e}`,...t)}var Ke,As=class{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this._warnOnRun=!0,this.__v_skip=!0,!t&&Ke&&(Ke.active?(this.parent=Ke,this.index=(Ke.scopes||(Ke.scopes=[])).push(this)-1):(this._active=!1,this._warnOnRun=!1))}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,o;if(this.scopes){let r=this.scopes.slice();for(t=0,o=r.length;t0&&--this._on===0){if(Ke===this)Ke=this.prevScope;else{let t=Ke;for(;t;){if(t.prevScope===this){t.prevScope=this.prevScope;break}t=t.prevScope}}this.prevScope=void 0}}stop(t){if(this._active){this._active=!1;let o,r;for(o=0,r=this.effects.length;o0)return;if(Os){let t=Os;for(Os=void 0;t;){let o=t.next;t.next=void 0,t.flags&=-9,t=o}}let e;for(;Ts;){let t=Ts;for(Ts=void 0;t;){let o=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(r){e||(e=r)}t=o}}if(e)throw e}function dr(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function ur(e){let t,o=e.depsTail,r=o;for(;r;){let n=r.prevDep;r.version===-1?(r===o&&(o=n),uo(r),Hl(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=n}e.deps=t,e.depsTail=o}function Zn(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(cr(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function cr(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Is)||(e.globalVersion=Is,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Zn(e))))return;e.flags|=2;let t=e.dep,o=Me,r=bt;Me=e,bt=!0;try{dr(e);let n=e.fn(e._value);(t.version===0||mt(n,e._value))&&(e.flags|=128,e._value=n,t.version++)}catch(n){throw t.version++,n}finally{Me=o,bt=r,ur(e),e.flags&=-3}}function uo(e,t=!1){let{dep:o,prevSub:r,nextSub:n}=e;if(r&&(r.nextSub=n,e.prevSub=void 0),n&&(n.prevSub=r,e.nextSub=void 0),o.subs===e&&(o.subs=r,!r&&o.computed)){o.computed.flags&=-5;for(let i=o.computed.deps;i;i=i.nextDep)uo(i,!0)}!t&&!--o.sc&&o.map&&o.map.delete(o.key)}function Hl(e){let{prevDep:t,nextDep:o}=e;t&&(t.nextDep=o,e.prevDep=void 0),o&&(o.prevDep=t,e.nextDep=void 0)}var bt=!0,pr=[];function St(){pr.push(bt),bt=!1}function Dt(){let e=pr.pop();bt=e===void 0?!0:e}function or(e){let{cleanup:t}=e;if(e.cleanup=void 0,t){let o=Me;Me=void 0;try{t()}finally{Me=o}}}var Is=0,eo=class{constructor(t,o){this.sub=t,this.dep=o,this.version=o.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}},Vs=class{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(t){if(!Me||!bt||Me===this.computed)return;let o=this.activeLink;if(o===void 0||o.sub!==Me)o=this.activeLink=new eo(Me,this),Me.deps?(o.prevDep=Me.depsTail,Me.depsTail.nextDep=o,Me.depsTail=o):Me.deps=Me.depsTail=o,fr(o);else if(o.version===-1&&(o.version=this.version,o.nextDep)){let r=o.nextDep;r.prevDep=o.prevDep,o.prevDep&&(o.prevDep.nextDep=r),o.prevDep=Me.depsTail,o.nextDep=void 0,Me.depsTail.nextDep=o,Me.depsTail=o,Me.deps===o&&(Me.deps=r)}return o}trigger(t){this.version++,Is++,this.notify(t)}notify(t){ao();try{for(let o=this.subs;o;o=o.prevSub)o.sub.notify()&&o.sub.dep.notify()}finally{lo()}}};function fr(e){if(e.dep.sc++,e.sub.flags&4){let t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let r=t.deps;r;r=r.nextDep)fr(r)}let o=e.dep.subs;o!==e&&(e.prevSub=o,o&&(o.nextSub=e)),e.dep.subs=e}}var to=new WeakMap,Yt=Symbol(""),so=Symbol(""),Ps=Symbol("");function Je(e,t,o){if(bt&&Me){let r=to.get(e);r||to.set(e,r=new Map);let n=r.get(o);n||(r.set(o,n=new Vs),n.map=r,n.key=o),n.track()}}function Ct(e,t,o,r,n,i){let a=to.get(e);if(!a){Is++;return}let u=p=>{p&&p.trigger()};if(ao(),t==="clear")a.forEach(u);else{let p=we(e),h=p&&tn(o);if(p&&o==="length"){let v=Number(r);a.forEach((g,f)=>{(f==="length"||f===Ps||!ut(f)&&f>=v)&&u(g)})}else switch((o!==void 0||a.has(void 0))&&u(a.get(o)),h&&u(a.get(Ps)),t){case"add":p?h&&u(a.get("length")):(u(a.get(Yt)),Vt(e)&&u(a.get(so)));break;case"delete":p||(u(a.get(Yt)),Vt(e)&&u(a.get(so)));break;case"set":Vt(e)&&u(a.get(Yt));break}}lo()}function ps(e){let t=De(e);return t===e?t:(Je(t,"iterate",Ps),ot(e)?t:t.map(ht))}function Ms(e){return Je(e=De(e),"iterate",Ps),e}function Et(e,t){return wt(e)?xt(Mt(e)?ht(t):t):ht(t)}var Bl={__proto__:null,[Symbol.iterator](){return Qn(this,Symbol.iterator,e=>Et(this,e))},concat(...e){return ps(this).concat(...e.map(t=>we(t)?ps(t):t))},entries(){return Qn(this,"entries",e=>(e[1]=Et(this,e[1]),e))},every(e,t){return qt(this,"every",e,t,void 0,arguments)},filter(e,t){return qt(this,"filter",e,t,o=>o.map(r=>Et(this,r)),arguments)},find(e,t){return qt(this,"find",e,t,o=>Et(this,o),arguments)},findIndex(e,t){return qt(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return qt(this,"findLast",e,t,o=>Et(this,o),arguments)},findLastIndex(e,t){return qt(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return qt(this,"forEach",e,t,void 0,arguments)},includes(...e){return Xn(this,"includes",e)},indexOf(...e){return Xn(this,"indexOf",e)},join(e){return ps(this).join(e)},lastIndexOf(...e){return Xn(this,"lastIndexOf",e)},map(e,t){return qt(this,"map",e,t,void 0,arguments)},pop(){return Rs(this,"pop")},push(...e){return Rs(this,"push",e)},reduce(e,...t){return rr(this,"reduce",e,t)},reduceRight(e,...t){return rr(this,"reduceRight",e,t)},shift(){return Rs(this,"shift")},some(e,t){return qt(this,"some",e,t,void 0,arguments)},splice(...e){return Rs(this,"splice",e)},toReversed(){return ps(this).toReversed()},toSorted(e){return ps(this).toSorted(e)},toSpliced(...e){return ps(this).toSpliced(...e)},unshift(...e){return Rs(this,"unshift",e)},values(){return Qn(this,"values",e=>Et(this,e))}};function Qn(e,t,o){let r=Ms(e),n=r[t]();return r!==e&&!ot(e)&&(n._next=n.next,n.next=()=>{let i=n._next();return i.done||(i.value=o(i.value)),i}),n}var Gl=Array.prototype;function qt(e,t,o,r,n,i){let a=Ms(e),u=a!==e&&!ot(e),p=a[t];if(p!==Gl[t]){let g=p.apply(e,i);return u?ht(g):g}let h=o;a!==e&&(u?h=function(g,f){return o.call(this,Et(e,g),f,e)}:o.length>2&&(h=function(g,f){return o.call(this,g,f,e)}));let v=p.call(a,h,r);return u&&n?n(v):v}function rr(e,t,o,r){let n=Ms(e),i=n!==e&&!ot(e),a=o,u=!1;n!==e&&(i?(u=r.length===0,a=function(h,v,g){return u&&(u=!1,h=Et(e,h)),o.call(this,h,Et(e,v),g,e)}):o.length>3&&(a=function(h,v,g){return o.call(this,h,v,g,e)}));let p=n[t](a,...r);return u?Et(e,p):p}function Xn(e,t,o){let r=De(e);Je(r,"iterate",Ps);let n=r[t](...o);return(n===-1||n===!1)&&Fs(o[0])?(o[0]=De(o[0]),r[t](...o)):n}function Rs(e,t,o=[]){St(),ao();let r=De(e)[t].apply(e,o);return lo(),Dt(),r}var jl=as("__proto__,__v_isRef,__isVue"),mr=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(ut));function Wl(e){ut(e)||(e=String(e));let t=De(this);return Je(t,"has",e),t.hasOwnProperty(e)}var dn=class{constructor(t=!1,o=!1){this._isReadonly=t,this._isShallow=o}get(t,o,r){if(o==="__v_skip")return t.__v_skip;let n=this._isReadonly,i=this._isShallow;if(o==="__v_isReactive")return!n;if(o==="__v_isReadonly")return n;if(o==="__v_isShallow")return i;if(o==="__v_raw")return r===(n?i?td:yr:i?vr:hr).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(r)?t:void 0;let a=we(t);if(!n){let p;if(a&&(p=Bl[o]))return p;if(o==="hasOwnProperty")return Wl}let u=Reflect.get(t,o,xe(t)?t:r);if((ut(o)?mr.has(o):jl(o))||(n||Je(t,"get",o),i))return u;if(xe(u)){let p=a&&tn(o)?u:u.value;return n&&Te(p)?cn(p):p}return Te(u)?n?cn(u):Le(u):u}},un=class extends dn{constructor(t=!1){super(!1,t)}set(t,o,r,n){let i=t[o],a=we(t)&&tn(o);if(!this._isShallow){let h=wt(i);if(!ot(r)&&!wt(r)&&(i=De(i),r=De(r)),!a&&xe(i)&&!xe(r))return h||(i.value=r),!0}let u=a?Number(o)e,rn=e=>Reflect.getPrototypeOf(e);function Jl(e,t,o){return function(...r){let n=this.__v_raw,i=De(n),a=Vt(i),u=e==="entries"||e===Symbol.iterator&&a,p=e==="keys"&&a,h=n[e](...r),v=o?oo:t?xt:ht;return!t&&Je(i,"iterate",p?so:Yt),Be(Object.create(h),{next(){let{value:g,done:f}=h.next();return f?{value:g,done:f}:{value:u?[v(g[0]),v(g[1])]:v(g),done:f}}})}}function an(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function Ql(e,t){let o={get(n){let i=this.__v_raw,a=De(i),u=De(n);e||(mt(n,u)&&Je(a,"get",n),Je(a,"get",u));let{has:p}=rn(a),h=t?oo:e?xt:ht;if(p.call(a,n))return h(i.get(n));if(p.call(a,u))return h(i.get(u));i!==a&&i.get(n)},get size(){let n=this.__v_raw;return!e&&Je(De(n),"iterate",Yt),n.size},has(n){let i=this.__v_raw,a=De(i),u=De(n);return e||(mt(n,u)&&Je(a,"has",n),Je(a,"has",u)),n===u?i.has(n):i.has(n)||i.has(u)},forEach(n,i){let a=this,u=a.__v_raw,p=De(u),h=t?oo:e?xt:ht;return!e&&Je(p,"iterate",Yt),u.forEach((v,g)=>n.call(i,h(v),h(g),a))}};return Be(o,e?{add:an("add"),set:an("set"),delete:an("delete"),clear:an("clear")}:{add(n){let i=De(this),a=rn(i),u=De(n),p=!t&&!ot(n)&&!wt(n)?u:n;return a.has.call(i,p)||mt(n,p)&&a.has.call(i,n)||mt(u,p)&&a.has.call(i,u)||(i.add(p),Ct(i,"add",p,p)),this},set(n,i){!t&&!ot(i)&&!wt(i)&&(i=De(i));let a=De(this),{has:u,get:p}=rn(a),h=u.call(a,n);h||(n=De(n),h=u.call(a,n));let v=p.call(a,n);return a.set(n,i),h?mt(i,v)&&Ct(a,"set",n,i,v):Ct(a,"add",n,i),this},delete(n){let i=De(this),{has:a,get:u}=rn(i),p=a.call(i,n);p||(n=De(n),p=a.call(i,n));let h=u?u.call(i,n):void 0,v=i.delete(n);return p&&Ct(i,"delete",n,void 0,h),v},clear(){let n=De(this),i=n.size!==0,a=void 0,u=n.clear();return i&&Ct(n,"clear",void 0,void 0,a),u}}),["keys","values","entries",Symbol.iterator].forEach(n=>{o[n]=Jl(n,e,t)}),o}function co(e,t){let o=Ql(e,t);return(r,n,i)=>n==="__v_isReactive"?!e:n==="__v_isReadonly"?e:n==="__v_raw"?r:Reflect.get(Se(o,n)&&n in r?o:r,n,i)}var Xl={get:co(!1,!1)},Zl={get:co(!1,!0)},ed={get:co(!0,!1)};var hr=new WeakMap,vr=new WeakMap,yr=new WeakMap,td=new WeakMap;function sd(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Le(e){return wt(e)?e:po(e,!1,Kl,Xl,hr)}function $s(e){return po(e,!1,xl,Zl,vr)}function cn(e){return po(e,!0,Yl,ed,yr)}function po(e,t,o,r,n){if(!Te(e)||e.__v_raw&&!(t&&e.__v_isReactive)||e.__v_skip||!Object.isExtensible(e))return e;let i=n.get(e);if(i)return i;let a=sd(Yn(e));if(a===0)return e;let u=new Proxy(e,a===2?r:o);return n.set(e,u),u}function Mt(e){return wt(e)?Mt(e.__v_raw):!!(e&&e.__v_isReactive)}function wt(e){return!!(e&&e.__v_isReadonly)}function ot(e){return!!(e&&e.__v_isShallow)}function Fs(e){return e?!!e.__v_raw:!1}function De(e){let t=e&&e.__v_raw;return t?De(t):e}function fo(e){return!Se(e,"__v_skip")&&Object.isExtensible(e)&&nn(e,"__v_skip",!0),e}var ht=e=>Te(e)?Le(e):e,xt=e=>Te(e)?cn(e):e;function xe(e){return e?e.__v_isRef===!0:!1}function rt(e){return gr(e,!1)}function fn(e){return gr(e,!0)}function gr(e,t){return xe(e)?e:new ro(e,t)}var ro=class{constructor(t,o){this.dep=new Vs,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=o?t:De(t),this._value=o?t:ht(t),this.__v_isShallow=o}get value(){return this.dep.track(),this._value}set value(t){let o=this._rawValue,r=this.__v_isShallow||ot(t)||wt(t);t=r?t:De(t),mt(t,o)&&(this._rawValue=t,this._value=r?t:ht(t),this.dep.trigger())}};function $t(e){return xe(e)?e.value:e}var nd={get:(e,t,o)=>t==="__v_raw"?e:$t(Reflect.get(e,t,o)),set:(e,t,o,r)=>{let n=e[t];return xe(n)&&!xe(o)?(n.value=o,!0):Reflect.set(e,t,o,r)}};function mn(e){return Mt(e)?e:new Proxy(e,nd)}var io=class{constructor(t,o,r){this.fn=t,this.setter=o,this._value=void 0,this.dep=new Vs(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Is-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!o,this.isSSR=r}notify(){if(this.flags|=16,!(this.flags&8)&&Me!==this)return lr(this,!0),!0}get value(){let t=this.dep.track();return cr(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}};function br(e,t,o=!1){let r,n;return ke(e)?r=e:(r=e.get,n=e.set),new io(r,n,o)}var ln={},pn=new WeakMap,Kt;function wr(e,t=!1,o=Kt){if(o){let r=pn.get(o);r||pn.set(o,r=[]),r.push(e)}}function kr(e,t,o=Ie){let{immediate:r,deep:n,once:i,scheduler:a,augmentJob:u,call:p}=o,h=A=>{(o.onWarn||zl)("Invalid watch source: ",A,"A watch source can only be a getter/effect function, a ref, a reactive object, or an array of these types.")},v=A=>n?A:ot(A)||n===!1||n===0?Nt(A,1):Nt(A),g,f,b,_,k=!1,R=!1;if(xe(e)?(f=()=>e.value,k=ot(e)):Mt(e)?(f=()=>v(e),k=!0):we(e)?(R=!0,k=e.some(A=>Mt(A)||ot(A)),f=()=>e.map(A=>{if(xe(A))return A.value;if(Mt(A))return v(A);if(ke(A))return p?p(A,2):A()})):ke(e)?t?f=p?()=>p(e,2):e:f=()=>{if(b){St();try{b()}finally{Dt()}}let A=Kt;Kt=g;try{return p?p(e,3,[_]):e(_)}finally{Kt=A}}:f=nt,t&&n){let A=f,q=n===!0?1/0:n;f=()=>Nt(A(),q)}let S=ir(),D=()=>{g.stop(),S&&S.active&&Es(S.effects,g)};if(i&&t){let A=t;t=(...q)=>{let ee=A(...q);return D(),ee}}let I=R?new Array(e.length).fill(ln):ln,C=A=>{if(!(!(g.flags&1)||!g.dirty&&!A))if(t){let q=g.run();if(A||n||k||(R?q.some((ee,J)=>mt(ee,I[J])):mt(q,I))){b&&b();let ee=Kt;Kt=g;try{let J=[q,I===ln?void 0:R&&I[0]===ln?[]:I,_];I=q,p?p(t,3,J):t(...J)}finally{Kt=ee}}}else g.run()};return u&&u(C),g=new fs(f),g.scheduler=a?()=>a(C,!1):C,_=A=>wr(A,!1,g),b=g.onStop=()=>{let A=pn.get(g);if(A){if(p)p(A,4);else for(let q of A)q();pn.delete(g)}},t?r?C(!0):I=g.run():a?a(C.bind(null,!0),!0):g.run(),D.pause=g.pause.bind(g),D.resume=g.resume.bind(g),D.stop=D,D}function Nt(e,t=1/0,o){if(t<=0||!Te(e)||e.__v_skip||(o=o||new Map,(o.get(e)||0)>=t))return e;if(o.set(e,t),t--,xe(e))Nt(e.value,t,o);else if(we(e))for(let r=0;r{Nt(r,t,o)});else if(en(e)){for(let r in e)Nt(e[r],t,o);for(let r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&Nt(e[r],t,o)}return e}function xs(e,t,o,r){try{return r?e(...r):e()}catch(n){Cn(n,t,o)}}function vt(e,t,o,r){if(ke(e)){let n=xs(e,t,o,r);return n&&Kn(n)&&n.catch(i=>{Cn(i,t,o)}),n}if(we(e)){let n=[];for(let i=0;i>>1,n=tt[r],i=js(n);i=js(o)?tt.push(e):tt.splice(ld(t),0,e),e.flags|=1,Fr()}}function Fr(){vn||(vn=$r.then(zr))}function Lr(e){if(!we(e))Gt&&e.id===-1?Gt.splice(ms+1,0,e):e.flags&1||(hs.push(e),e.flags|=1);else for(let t=0;tjs(o)-js(r));if(hs.length=0,Gt){for(let o=0;oe.id==null?e.flags&2?-1:1/0:e.id;function zr(e){let t=nt;try{for(Tt=0;Tt{r._d&&wn(-1);let i=yn(t),a=Xt.length,u;try{u=e(...n)}finally{for(let p=Xt.length;p>a;p--)yi();yn(i),r._d&&wn(1)}return u};return r._n=!0,r._c=!0,r._d=!0,r}function E(e,t){if(ct===null)return e;let o=In(ct),r=e.dirs||(e.dirs=[]);for(let n=0;n1)return o&&ke(t)?t.call(r&&r.proxy):t}}var ud=Symbol.for("v-scx"),cd=()=>{{let e=at(ud);return e}};function ze(e,t,o){return Br(e,t,o)}function Br(e,t,o=Ie){let{immediate:r,deep:n,flush:i,once:a}=o,u=Be({},o),p=t&&r||!t&&i!=="post",h;if(Ys){if(i==="sync"){let b=cd();h=b.__watcherHandles||(b.__watcherHandles=[])}else if(!p){let b=()=>{};return b.stop=nt,b.resume=nt,b.pause=nt,b}}let v=Ze;u.call=(b,_,k)=>vt(b,v,_,k);let g=!1;i==="post"?u.scheduler=b=>{it(b,v&&v.suspense)}:i!=="sync"&&(g=!0,u.scheduler=(b,_)=>{_?b():_o(b)}),u.augmentJob=b=>{t&&(b.flags|=4),g&&(b.flags|=2,v&&(b.id=v.uid,b.i=v))};let f=kr(e,t,u);return Ys&&(h?h.push(f):p&&f()),f}function pd(e,t,o){let r=this.proxy,n=Fe(e)?e.includes(".")?Gr(r,e):()=>r[e]:e.bind(r,r),i;ke(t)?i=t:(i=t.handler,o=t);let a=Js(this),u=Br(n,i.bind(r),o);return a(),u}function Gr(e,t){let o=t.split(".");return()=>{let r=e;for(let n=0;ne.__isTeleport;var mo=Symbol("_leaveCb");function md(e){let t=e[0];if(e.length>1){let o=!1;for(let r of e)if(r.type!==Lt){t=r,o=!0;break}}return t}function jr(e){if(!Eo(e))return Nn(e.type)&&e.children?md(e.children):e;if(e.component)return e.component.subTree;let{shapeFlag:t,children:o}=e;if(o){if(t&16)return o[0];if(t&32&&ke(o.default))return o.default()}}function Sn(e,t){if(e.shapeFlag&6&&e.component){e.transition=t;let o=e.component.subTree;Sn(Nn(o.type)&&jr(o)||o,t)}else e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function Dn(e,t){return ke(e)?Be({name:e.name},t,{setup:e}):e}function Wr(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function Er(e,t){let o;return!!((o=Object.getOwnPropertyDescriptor(e,t))&&!o.configurable)}var gn=new WeakMap;function zs(e,t,o,r,n=!1){if(we(e)){e.forEach((k,R)=>zs(k,t&&(we(t)?t[R]:t),o,r,n));return}if(Hs(r)&&!n){r.shapeFlag&512&&r.type.__asyncResolved&&r.component.subTree.component&&zs(e,t,o,r.component.subTree);return}let i=r.shapeFlag&4?In(r.component):r.el,a=n?null:i,{i:u,r:p}=e,h=t&&t.r,v=u.refs===Ie?u.refs={}:u.refs,g=u.setupState,f=De(g),b=g===Ie?Wn:k=>Er(v,k)?!1:Se(f,k),_=(k,R)=>!(R&&Er(v,R));if(h!=null&&h!==p){if(Cr(t),Fe(h))v[h]=null,b(h)&&(g[h]=null);else if(xe(h)){let k=t;_(h,k.k)&&(h.value=null),k.k&&(v[k.k]=null)}}if(ke(p))xs(p,u,12,[a,v]);else{let k=Fe(p),R=xe(p);if(k||R){let S=()=>{if(e.f){let D=k?b(p)?g[p]:v[p]:_(p)||!e.k?p.value:v[e.k];if(n)we(D)&&Es(D,i);else if(we(D))D.includes(i)||D.push(i);else if(k)v[p]=[i],b(p)&&(g[p]=v[p]);else{let I=[i];_(p,e.k)&&(p.value=I),e.k&&(v[e.k]=I)}}else k?(v[p]=a,b(p)&&(g[p]=a)):R&&(_(p,e.k)&&(p.value=a),e.k&&(v[e.k]=a))};if(a){let D=()=>{S(),gn.delete(e)};D.id=-1,gn.set(e,D),it(D,o)}else Cr(e),S()}}}function Cr(e){let t=gn.get(e);t&&(t.flags|=8,gn.delete(e))}var Z3=Ds().requestIdleCallback||(e=>setTimeout(e,1)),eq=Ds().cancelIdleCallback||(e=>clearTimeout(e));var Hs=e=>!!e.type.__asyncLoader;var Eo=e=>e.type.__isKeepAlive;function Kr(e,t){xr(e,"a",t)}function Yr(e,t){xr(e,"da",t)}function xr(e,t,o=Ze){let r=e.__wdc||(e.__wdc=()=>{let n=o;for(;n;){if(n.isDeactivated)return;n=n.parent}return e()});if(Rn(t,r,o),o){let n=o.parent;for(;n&&n.parent;)Eo(n.parent.vnode)&&hd(r,t,o,n),n=n.parent}}function hd(e,t,o,r){let n=Rn(t,e,r,!0);Tn(()=>{Es(r[t],n)},o)}function Rn(e,t,o=Ze,r=!1){if(o){let n=o[e]||(o[e]=[]),i=t.__weh||(t.__weh=(...a)=>{St();let u=Js(o),p=vt(t,o,e,a);return u(),Dt(),p});return r?n.unshift(i):n.push(i),i}}var Ut=e=>(t,o=Ze)=>{(!Ys||e==="sp")&&Rn(e,(...r)=>t(...r),o)},vd=Ut("bm"),At=Ut("m"),Jr=Ut("bu"),Qr=Ut("u"),es=Ut("bum"),Tn=Ut("um"),yd=Ut("sp"),gd=Ut("rtg"),bd=Ut("rtc");function wd(e,t=Ze){Rn("ec",e,t)}var Xr="components",kd="directives";function Qe(e,t){return Zr(Xr,e,!0,t)||e}var _d=Symbol.for("v-ndc");function ye(e){return Zr(kd,e)}function Zr(e,t,o=!0,r=!1){let n=ct||Ze;if(n){let i=n.type;if(e===Xr){let u=ru(i,!1);if(u&&(u===t||u===We(t)||u===Wt(We(t))))return i}let a=Nr(n[e]||i[e],t)||Nr(n.appContext[e],t);return!a&&r?i:a}}function Nr(e,t){return e&&(e[t]||e[We(t)]||e[Wt(We(t))])}function re(e,t,o,r){let n,i=o&&o[r],a=we(e);if(a||Fe(e)){let u=a&&Mt(e),p=!1,h=!1;u&&(p=!ot(e),h=wt(e),e=Ms(e)),n=new Array(e.length);for(let v=0,g=e.length;vt(u,p,void 0,i&&i[p]));else{let u=Object.keys(e);n=new Array(u.length);for(let p=0,h=u.length;pe?wi(e)?In(e):go(e.parent):null;var Bs=Be(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>go(e.parent),$root:e=>go(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Co(e),$forceUpdate:e=>e.f||(e.f=()=>{_o(e.update)}),$nextTick:e=>e.n||(e.n=kt.bind(e.proxy)),$watch:e=>pd.bind(e)});var ho=(e,t)=>e!==Ie&&!e.__isScriptSetup&&Se(e,t),Ed={get({_:e},t){if(t==="__v_skip")return!0;let{ctx:o,setupState:r,data:n,props:i,accessCache:a,type:u,appContext:p}=e;if(t[0]!=="$"){let f=a[t];if(f!==void 0)switch(f){case 1:return r[t];case 2:return n[t];case 4:return o[t];case 3:return i[t]}else{if(ho(r,t))return a[t]=1,r[t];if(n!==Ie&&Se(n,t))return a[t]=2,n[t];if(Se(i,t))return a[t]=3,i[t];if(o!==Ie&&Se(o,t))return a[t]=4,o[t];bo&&(a[t]=0)}}let h=Bs[t],v,g;if(h)return t==="$attrs"&&Je(e.attrs,"get",""),h(e);if((v=u.__cssModules)&&(v=v[t]))return v;if(o!==Ie&&Se(o,t))return a[t]=4,o[t];if(g=p.config.globalProperties,Se(g,t))return g[t]},set({_:e},t,o){let{data:r,setupState:n,ctx:i}=e;return ho(n,t)?(n[t]=o,!0):r!==Ie&&Se(r,t)?(r[t]=o,!0):Se(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=o,!0)},has({_:{data:e,setupState:t,accessCache:o,ctx:r,appContext:n,props:i,type:a}},u){let p;return!!(o[u]||e!==Ie&&u[0]!=="$"&&Se(e,u)||ho(t,u)||Se(i,u)||Se(r,u)||Se(Bs,u)||Se(n.config.globalProperties,u)||(p=a.__cssModules)&&p[u])},defineProperty(e,t,o){return o.get!=null?e._.accessCache[t]=0:Se(o,"value")&&this.set(e,t,o.value,null),Reflect.defineProperty(e,t,o)}};function Sr(e){return we(e)?e.reduce((t,o)=>(t[o]=null,t),{}):e}var bo=!0;function Cd(e){let t=Co(e),o=e.proxy,r=e.ctx;bo=!1,t.beforeCreate&&Dr(t.beforeCreate,e,"bc");let{data:n,computed:i,methods:a,watch:u,provide:p,inject:h,created:v,beforeMount:g,mounted:f,beforeUpdate:b,updated:_,activated:k,deactivated:R,beforeDestroy:S,beforeUnmount:D,destroyed:I,unmounted:C,render:A,renderTracked:q,renderTriggered:ee,errorCaptured:J,serverPrefetch:K,expose:U,inheritAttrs:de,components:se,directives:ie,filters:ce}=t;if(h&&Nd(h,r,null),a)for(let me in a){let ae=a[me];ke(ae)&&(r[me]=ae.bind(o))}if(n){let me=n.call(o,o);Te(me)&&(e.data=Le(me))}if(bo=!0,i)for(let me in i){let ae=i[me],O=ke(ae)?ae.bind(o,o):ke(ae.get)?ae.get.bind(o,o):nt,V=!ke(ae)&&ke(ae.set)?ae.set.bind(o):nt,j=Xe({get:O,set:V});Object.defineProperty(r,me,{enumerable:!0,configurable:!0,get:()=>j.value,set:Z=>j.value=Z})}if(u)for(let me in u)ei(u[me],r,o,me);if(p){let me=ke(p)?p.call(o):p;Reflect.ownKeys(me).forEach(ae=>{Zt(ae,me[ae])})}v&&Dr(v,e,"c");function he(me,ae){we(ae)?ae.forEach(O=>me(O.bind(o))):ae&&me(ae.bind(o))}if(he(vd,g),he(At,f),he(Jr,b),he(Qr,_),he(Kr,k),he(Yr,R),he(wd,J),he(bd,q),he(gd,ee),he(es,D),he(Tn,C),he(yd,K),we(U))if(U.length){let me=e.exposed||(e.exposed={});U.forEach(ae=>{Object.defineProperty(me,ae,{get:()=>o[ae],set:O=>o[ae]=O,enumerable:!0})})}else e.exposed||(e.exposed={});A&&e.render===nt&&(e.render=A),de!=null&&(e.inheritAttrs=de),se&&(e.components=se),ie&&(e.directives=ie),K&&Wr(e)}function Nd(e,t,o=nt){we(e)&&(e=wo(e));for(let r in e){let n=e[r],i;Te(n)?"default"in n?i=at(n.from||r,n.default,!0):i=at(n.from||r):i=at(n),xe(i)?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>i.value,set:a=>i.value=a}):t[r]=i}}function Dr(e,t,o){vt(we(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,o)}function ei(e,t,o,r){let n=r.includes(".")?Gr(o,r):()=>o[r];if(Fe(e)){let i=t[e];ke(i)&&ze(n,i)}else if(ke(e))ze(n,e.bind(o));else if(Te(e))if(we(e))e.forEach(i=>ei(i,t,o,r));else{let i=ke(e.handler)?e.handler.bind(o):t[e.handler];ke(i)&&ze(n,i,e)}}function Co(e){let t=e.type,{mixins:o,extends:r}=t,{mixins:n,optionsCache:i,config:{optionMergeStrategies:a}}=e.appContext,u=i.get(t),p;return u?p=u:!n.length&&!o&&!r?p=t:(p={},n.length&&n.forEach(h=>bn(p,h,a,!0)),bn(p,t,a)),Te(t)&&i.set(t,p),p}function bn(e,t,o,r=!1){let{mixins:n,extends:i}=t;i&&bn(e,i,o,!0),n&&n.forEach(a=>bn(e,a,o,!0));for(let a in t)if(!(r&&a==="expose")){let u=Sd[a]||o&&o[a];e[a]=u?u(e[a],t[a]):t[a]}return e}var Sd={data:Rr,props:Tr,emits:Tr,methods:Us,computed:Us,beforeCreate:et,created:et,beforeMount:et,mounted:et,beforeUpdate:et,updated:et,beforeDestroy:et,beforeUnmount:et,destroyed:et,unmounted:et,activated:et,deactivated:et,errorCaptured:et,serverPrefetch:et,components:Us,directives:Us,watch:Rd,provide:Rr,inject:Dd};function Rr(e,t){return t?e?function(){return Be(ke(e)?e.call(this,this):e,ke(t)?t.call(this,this):t)}:t:e}function Dd(e,t){return Us(wo(e),wo(t))}function wo(e){if(we(e)){let t={};for(let o=0;ot==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${We(t)}Modifiers`]||e[`${Pt(t)}Modifiers`];function Id(e,t,...o){if(e.isUnmounted)return;let r=e.vnode.props||Ie,n=o,i=t.startsWith("update:"),a=i&&Ad(r,t.slice(7));a&&(a.trim&&(n=o.map(v=>Fe(v)?v.trim():v)),a.number&&(n=n.map(xn)));let u,p=r[u=Ns(t)]||r[u=Ns(We(t))];!p&&i&&(p=r[u=Ns(Pt(t))]),p&&vt(p,e,6,n);let h=r[u+"Once"];if(h){if(!e.emitted)e.emitted={};else if(e.emitted[u])return;e.emitted[u]=!0,vt(h,e,6,n)}}var Vd=new WeakMap;function si(e,t,o=!1){let r=o?Vd:t.emitsCache,n=r.get(e);if(n!==void 0)return n;let i=e.emits,a={},u=!1;if(!ke(e)){let p=h=>{let v=si(h,t,!0);v&&(u=!0,Be(a,v))};!o&&t.mixins.length&&t.mixins.forEach(p),e.extends&&p(e.extends),e.mixins&&e.mixins.forEach(p)}return!i&&!u?(Te(e)&&r.set(e,null),null):(we(i)?i.forEach(p=>a[p]=null):Be(a,i),Te(e)&&r.set(e,a),a)}function On(e,t){return!e||!ls(t)?!1:(t=t.slice(2),t=t==="Once"?t:t.replace(/Once$/,""),Se(e,t[0].toLowerCase()+t.slice(1))||Se(e,Pt(t))||Se(e,t))}function vo(e){let{type:t,vnode:o,proxy:r,withProxy:n,propsOptions:[i],slots:a,attrs:u,emit:p,render:h,renderCache:v,props:g,data:f,setupState:b,ctx:_,inheritAttrs:k}=e,R=yn(e),S,D;try{if(o.shapeFlag&4){let A=n||r,q=A;S=Ot(h.call(q,A,v,g,b,f,_)),D=u}else{let A=t;S=Ot(A.length>1?A(g,{attrs:u,slots:a,emit:p}):A(g,null)),D=t.props?u:Pd(u)}}catch(A){Xt.length=0,Cn(A,e,1),S=Re(Lt)}let I=S,C;if(D&&k!==!1){let A=Object.keys(D),{shapeFlag:q}=I;A.length&&q&7&&(i&&A.some(ds)&&(D=qd(D,i)),I=ys(I,D,!1,!0))}if(o.dirs&&(I=ys(I,null,!1,!0),I.dirs=I.dirs?I.dirs.concat(o.dirs):o.dirs),o.transition){let A=Nn(I.type)&&jr(I)||I;Sn(A,o.transition)}return S=I,yn(R),S}var Pd=e=>{let t;for(let o in e)(o==="class"||o==="style"||ls(o))&&((t||(t={}))[o]=e[o]);return t},qd=(e,t)=>{let o={};for(let r in e)(!ds(r)||!(r.slice(9)in t))&&(o[r]=e[r]);return o};function Md(e,t,o){let{props:r,children:n,component:i}=e,{props:a,children:u,patchFlag:p}=t,h=i.emitsOptions;if(t.dirs||t.transition)return!0;if(o&&p>=0){if(p&1024)return!0;if(p&16)return r?Or(r,a,h):!!a;if(p&8){let v=t.dynamicProps;for(let g=0;gObject.create(oi),ii=e=>Object.getPrototypeOf(e)===oi;function Fd(e,t,o,r=!1){let n={},i=ri();e.propsDefaults=Object.create(null),ai(e,t,n,i);for(let a in e.propsOptions[0])a in n||(n[a]=void 0);o?e.props=r?n:$s(n):e.type.props?e.props=n:e.props=i,e.attrs=i}function Ld(e,t,o,r){let{props:n,attrs:i,vnode:{patchFlag:a}}=e,u=De(n),[p]=e.propsOptions,h=!1;if((r||a>0)&&!(a&16)){if(a&8){let v=e.vnode.dynamicProps;for(let g=0;g{p=!0;let[f,b]=li(g,t,!0);Be(a,f),b&&u.push(...b)};!o&&t.mixins.length&&t.mixins.forEach(v),e.extends&&v(e.extends),e.mixins&&e.mixins.forEach(v)}if(!i&&!p)return Te(e)&&r.set(e,jt),jt;if(we(i))for(let v=0;ve==="_"||e==="_ctx"||e==="$stable",So=e=>we(e)?e.map(Ot):[Ot(e)],zd=(e,t,o)=>{if(t._n)return t;let r=dd((...n)=>So(t(...n)),o);return r._c=!1,r},di=(e,t,o)=>{let r=e._ctx;for(let n in e){if(No(n))continue;let i=e[n];if(ke(i))t[n]=zd(n,i,r);else if(i!=null){let a=So(i);t[n]=()=>a}}},ui=(e,t)=>{let o=So(t);e.slots.default=()=>o},ci=(e,t,o)=>{for(let r in t)(o||!No(r))&&(e[r]=t[r])},Hd=(e,t,o)=>{let r=e.slots=ri();if(e.vnode.shapeFlag&32){let n=t._;n?(ci(r,t,o),o&&nn(r,"_",n,!0)):di(t,r)}else t&&ui(e,t)},Bd=(e,t,o)=>{let{vnode:r,slots:n}=e,i=!0,a=Ie;if(r.shapeFlag&32){let u=t._;u?o&&u===1?i=!1:ci(n,t,o):(i=!t.$stable,di(t,n)),a=t}else t&&(ui(e,t),a={default:1});if(i)for(let u in n)!No(u)&&a[u]==null&&delete n[u]};function Gd(){let e=[]}var it=Yd;function pi(e){return jd(e)}function jd(e,t){Gd();let o=Ds();o.__VUE__=!0;let{insert:r,remove:n,patchProp:i,createElement:a,createText:u,createComment:p,setText:h,setElementText:v,parentNode:g,nextSibling:f,setScopeId:b=nt,insertStaticContent:_}=e,k=(w,N,P,z=null,G=null,M=null,Y=void 0,X=null,Q=!!N.dynamicChildren)=>{if(w===N)return;w&&!Ls(w,N)&&(z=ne(w),oe(w,G,M,!0),w=null),N.patchFlag===-2&&(Q=!1,N.dynamicChildren=null);let{type:B,ref:ue,shapeFlag:te}=N;switch(B){case An:R(w,N,P,z);break;case Lt:S(w,N,P,z);break;case Gs:w==null&&D(N,P,z,Y);break;case x:ie(w,N,P,z,G,M,Y,X,Q);break;default:te&1?q(w,N,P,z,G,M,Y,X,Q):te&6?ce(w,N,P,z,G,M,Y,X,Q):(te&64||te&128)&&B.process(w,N,P,z,G,M,Y,X,Q,fe)}ue!=null&&G?zs(ue,w&&w.ref,M,N||w,!N):ue==null&&w&&w.ref!=null&&zs(w.ref,null,M,w,!0)},R=(w,N,P,z)=>{if(w==null)r(N.el=u(N.children),P,z);else{let G=N.el=w.el;N.children!==w.children&&h(G,N.children)}},S=(w,N,P,z)=>{w==null?r(N.el=p(N.children||""),P,z):N.el=w.el},D=(w,N,P,z)=>{[w.el,w.anchor]=_(w.children,N,P,z,w.el,w.anchor)},I=(w,N,P,z)=>{if(N.children!==w.children){let G=f(w.anchor);A(w),[N.el,N.anchor]=_(N.children,P,G,z)}else N.el=w.el,N.anchor=w.anchor},C=({el:w,anchor:N},P,z)=>{let G;for(;w&&w!==N;)G=f(w),r(w,P,z),w=G;r(N,P,z)},A=({el:w,anchor:N})=>{let P;for(;w&&w!==N;)P=f(w),n(w),w=P;n(N)},q=(w,N,P,z,G,M,Y,X,Q)=>{if(N.type==="svg"?Y="svg":N.type==="math"&&(Y="mathml"),w==null)ee(N,P,z,G,M,Y,X,Q);else{let B=w.el&&w.el._isVueCE?w.el:null;try{B&&B._beginPatch(),U(w,N,G,M,Y,X,Q)}finally{B&&B._endPatch()}}},ee=(w,N,P,z,G,M,Y,X)=>{let Q,B,{props:ue,shapeFlag:te,transition:le,dirs:ve}=w;if(Q=w.el=a(w.type,M,ue&&ue.is,ue),te&8?v(Q,w.children):te&16&&K(w.children,Q,null,z,G,yo(w,M),Y,X),ve&&Jt(w,null,z,"created"),J(Q,w,w.scopeId,Y,z),ue){for(let qe in ue)qe!=="value"&&!us(qe)&&i(Q,qe,null,ue[qe],M,z);"value"in ue&&i(Q,"value",null,ue.value,M),(B=ue.onVnodeBeforeMount)&&Rt(B,z,w)}ve&&Jt(w,null,z,"beforeMount");let Ne=Wd(G,le);Ne&&le.beforeEnter(Q),r(Q,N,P),((B=ue&&ue.onVnodeMounted)||Ne||ve)&&it(()=>{let Ve;try{B&&Rt(B,z,w),Ne&&le.enter(Q),ve&&Jt(w,null,z,"mounted")}finally{}},G)},J=(w,N,P,z,G)=>{if(P&&b(w,P),z)for(let M=0;M{for(let B=Q;B{let X=N.el=w.el,{patchFlag:Q,dynamicChildren:B,dirs:ue}=N;Q|=w.patchFlag&16;let te=w.props||Ie,le=N.props||Ie,ve;if(P&&Qt(P,!1),(ve=le.onVnodeBeforeUpdate)&&Rt(ve,P,N,w),ue&&Jt(N,w,P,"beforeUpdate"),P&&Qt(P,!0),B&&(!w.dynamicChildren||w.dynamicChildren.length!==B.length)&&(Q=0,Y=!1,B=null),(te.innerHTML&&le.innerHTML==null||te.textContent&&le.textContent==null)&&v(X,""),B?de(w.dynamicChildren,B,X,P,z,yo(N,G),M):Y||O(w,N,X,null,P,z,yo(N,G),M,!1),Q>0){if(Q&16)se(X,te,le,P,G);else if(Q&2&&te.class!==le.class&&i(X,"class",null,le.class,G),Q&4&&i(X,"style",te.style,le.style,G),Q&8){let Ne=N.dynamicProps;for(let qe=0;qe{ve&&Rt(ve,P,N,w),ue&&Jt(N,w,P,"updated")},z)},de=(w,N,P,z,G,M,Y)=>{for(let X=0;X{if(N!==P){if(N!==Ie)for(let M in N)!us(M)&&!(M in P)&&i(w,M,N[M],null,G,z);for(let M in P){if(us(M))continue;let Y=P[M],X=N[M];Y!==X&&M!=="value"&&i(w,M,X,Y,G,z)}"value"in P&&i(w,"value",N.value,P.value,G)}},ie=(w,N,P,z,G,M,Y,X,Q)=>{let B=N.el=w?w.el:u(""),ue=N.anchor=w?w.anchor:u(""),{patchFlag:te,dynamicChildren:le,slotScopeIds:ve}=N;ve&&(X=X?X.concat(ve):ve),w==null?(r(B,P,z),r(ue,P,z),K(N.children||[],P,ue,G,M,Y,X,Q)):te>0&&te&64&&le&&w.dynamicChildren&&w.dynamicChildren.length===le.length?(de(w.dynamicChildren,le,P,G,M,Y,X),(N.key!=null||G&&N===G.subTree)&&fi(w,N,!0)):O(w,N,P,ue,G,M,Y,X,Q)},ce=(w,N,P,z,G,M,Y,X,Q)=>{N.slotScopeIds=X,w==null?N.shapeFlag&512?G.ctx.activate(N,P,z,Y,Q):be(N,P,z,G,M,Y,Q):he(w,N,Q)},be=(w,N,P,z,G,M,Y)=>{let X=w.component=eu(w,z,G);if(Eo(w)&&(X.ctx.renderer=fe),tu(X,!1,Y),X.asyncDep){if(G&&G.registerDep(X,me,Y),!w.el){let Q=X.subTree=Re(Lt);S(null,Q,N,P),w.placeholder=Q.el}}else me(X,w,N,P,G,M,Y)},he=(w,N,P)=>{let z=N.component=w.component;if(Md(w,N,P))if(z.asyncDep&&!z.asyncResolved){ae(z,N,P);return}else z.next=N,z.update();else N.el=w.el,z.vnode=N},me=(w,N,P,z,G,M,Y)=>{let X=()=>{if(w.isMounted){let{next:te,bu:le,u:ve,parent:Ne,vnode:qe}=w;{let lt=mi(w);if(lt){te&&(te.el=qe.el,ae(w,te,Y)),lt.asyncDep.then(()=>{it(()=>{w.isUnmounted||B()},G)});return}}let Ve=te,Ge;Qt(w,!1),te?(te.el=qe.el,ae(w,te,Y)):te=qe,le&&Ss(le),(Ge=te.props&&te.props.onVnodeBeforeUpdate)&&Rt(Ge,Ne,te,qe),Qt(w,!0);let je=vo(w),gt=w.subTree;w.subTree=je,k(gt,je,g(gt.el),ne(gt),w,G,M),te.el=je.el,Ve===null&&$d(w,je.el),ve&&it(ve,G),(Ge=te.props&&te.props.onVnodeUpdated)&&it(()=>Rt(Ge,Ne,te,qe),G)}else{let te,{el:le,props:ve}=N,{bm:Ne,m:qe,parent:Ve,root:Ge,type:je}=w,gt=Hs(N);if(Qt(w,!1),Ne&&Ss(Ne),!gt&&(te=ve&&ve.onVnodeBeforeMount)&&Rt(te,Ve,N),Qt(w,!0),le&&pe){let lt=()=>{w.subTree=vo(w),pe(le,w.subTree,w,G,null)};gt&&je.__asyncHydrate?je.__asyncHydrate(le,w,lt):lt()}else{Ge.ce&&Ge.ce._hasShadowRoot()&&Ge.ce._injectChildStyle(je,w.parent?w.parent.type:void 0);let lt=w.subTree=vo(w);k(null,lt,P,z,w,G,M),N.el=lt.el}if(qe&&it(qe,G),!gt&&(te=ve&&ve.onVnodeMounted)){let lt=N;it(()=>Rt(te,Ve,lt),G)}(N.shapeFlag&256||Ve&&Hs(Ve.vnode)&&Ve.vnode.shapeFlag&256)&&w.a&&it(w.a,G),w.isMounted=!0,N=P=z=null}};w.scope.on();let Q=w.effect=new fs(X);w.scope.off();let B=w.update=Q.run.bind(Q),ue=w.job=Q.runIfDirty.bind(Q);ue.i=w,ue.id=w.uid,Q.scheduler=()=>_o(ue),Qt(w,!0),B()},ae=(w,N,P)=>{N.component=w;let z=w.vnode.props;w.vnode=N,w.next=null,Ld(w,N.props,z,P),Bd(w,N.children,P),St(),_r(w),Dt()},O=(w,N,P,z,G,M,Y,X,Q=!1)=>{let B=w&&w.children,ue=w?w.shapeFlag:0,te=N.children,{patchFlag:le,shapeFlag:ve}=N;if(le>0){if(le&128){j(B,te,P,z,G,M,Y,X,Q);return}else if(le&256){V(B,te,P,z,G,M,Y,X,Q);return}}ve&8?(ue&16&&F(B,G,M),te!==B&&v(P,te)):ue&16?ve&16?j(B,te,P,z,G,M,Y,X,Q):F(B,G,M,!0):(ue&8&&v(P,""),ve&16&&K(te,P,z,G,M,Y,X,Q))},V=(w,N,P,z,G,M,Y,X,Q)=>{w=w||jt,N=N||jt;let B=w.length,ue=N.length,te=Math.min(B,ue),le;for(le=0;leue?F(w,G,M,!0,!1,te):K(N,P,z,G,M,Y,X,Q,te)},j=(w,N,P,z,G,M,Y,X,Q)=>{let B=0,ue=N.length,te=w.length-1,le=ue-1;for(;B<=te&&B<=le;){let ve=w[B],Ne=N[B]=Q?Ft(N[B]):Ot(N[B]);if(Ls(ve,Ne))k(ve,Ne,P,null,G,M,Y,X,Q);else break;B++}for(;B<=te&&B<=le;){let ve=w[te],Ne=N[le]=Q?Ft(N[le]):Ot(N[le]);if(Ls(ve,Ne))k(ve,Ne,P,null,G,M,Y,X,Q);else break;te--,le--}if(B>te){if(B<=le){let ve=le+1,Ne=vele)for(;B<=te;)oe(w[B],G,M,!0),B++;else{let ve=B,Ne=B,qe=new Map;for(B=Ne;B<=le;B++){let dt=N[B]=Q?Ft(N[B]):Ot(N[B]);dt.key!=null&&qe.set(dt.key,B)}let Ve,Ge=0,je=le-Ne+1,gt=!1,lt=0,_s=new Array(je);for(B=0;B=je){oe(dt,G,M,!0);continue}let _t;if(dt.key!=null)_t=qe.get(dt.key);else for(Ve=Ne;Ve<=le;Ve++)if(_s[Ve-Ne]===0&&Ls(dt,N[Ve])){_t=Ve;break}_t===void 0?oe(dt,G,M,!0):(_s[_t-Ne]=B+1,_t>=lt?lt=_t:gt=!0,k(dt,N[_t],P,null,G,M,Y,X,Q),Ge++)}let Ko=gt?Kd(_s):jt;for(Ve=Ko.length-1,B=je-1;B>=0;B--){let dt=Ne+B,_t=N[dt],Yo=N[dt+1],xo=dt+1{let{el:M,type:Y,transition:X,children:Q,shapeFlag:B}=w;if(B&6){Z(w.component.subTree,N,P,z);return}if(B&128){w.suspense.move(N,P,z);return}if(B&64){Y.move(w,N,P,fe);return}if(Y===x){r(M,N,P);for(let te=0;teX.enter(M),G));else{let{leave:te,delayLeave:le,afterLeave:ve}=X,Ne=()=>{w.ctx.isUnmounted?n(M):r(M,N,P)},qe=()=>{let Ve=M._isLeaving||!!M[mo];M._isLeaving&&M[mo](!0),X.persisted&&!Ve?Ne():te(M,()=>{Ne(),ve&&ve()})};le?le(M,Ne,qe):qe()}else r(M,N,P)},oe=(w,N,P,z=!1,G=!1)=>{let{type:M,props:Y,ref:X,children:Q,dynamicChildren:B,shapeFlag:ue,patchFlag:te,dirs:le,cacheIndex:ve,memo:Ne}=w;if(te===-2&&(G=!1),X!=null&&(St(),zs(X,null,P,w,!0),Dt()),ve!=null&&(N.renderCache[ve]=void 0),ue&256){N.ctx.deactivate(w);return}let qe=ue&1&&le,Ve=!Hs(w),Ge;if(Ve&&(Ge=Y&&Y.onVnodeBeforeUnmount)&&Rt(Ge,N,w),ue&6)$e(w.component,P,z);else{if(ue&128){w.suspense.unmount(P,z);return}qe&&Jt(w,null,N,"beforeUnmount"),ue&64?w.type.remove(w,N,P,fe,z):B&&!B.hasOnce&&(M!==x||te>0&&te&64)?F(B,N,P,!1,!0):(M===x&&te&384||!G&&ue&16)&&F(Q,N,P),z&&Pe(w)}let je=Ne!=null&&ve==null;(Ve&&(Ge=Y&&Y.onVnodeUnmounted)||qe||je)&&it(()=>{Ge&&Rt(Ge,N,w),qe&&Jt(w,null,N,"unmounted"),je&&(w.el=null)},P)},Pe=w=>{let{type:N,el:P,anchor:z,transition:G}=w;if(N===x){Ue(P,z);return}if(N===Gs){A(w);return}let M=()=>{n(P),G&&!G.persisted&&G.afterLeave&&G.afterLeave()};if(w.shapeFlag&1&&G&&!G.persisted){let{leave:Y,delayLeave:X}=G,Q=()=>Y(P,M);X?X(w.el,M,Q):Q()}else M()},Ue=(w,N)=>{let P;for(;w!==N;)P=f(w),n(w),w=P;n(N)},$e=(w,N,P)=>{let{bum:z,scope:G,job:M,subTree:Y,um:X,m:Q,a:B}=w;Ir(Q),Ir(B),z&&Ss(z),G.stop(),M&&(M.flags|=8,oe(Y,w,N,P)),X&&it(X,N),it(()=>{w.isUnmounted=!0},N)},F=(w,N,P,z=!1,G=!1,M=0)=>{for(let Y=M;Y{if(w.shapeFlag&6)return ne(w.component.subTree);if(w.shapeFlag&128)return w.suspense.next();let N=f(w.anchor||w.el),P=N&&N[fd];return P?f(P):N},L=!1,W=(w,N,P)=>{let z;w==null?N._vnode&&(oe(N._vnode,null,null,!0),z=N._vnode.component):k(N._vnode||null,w,N,null,null,null,P),N._vnode=w,L||(L=!0,_r(z),Ur(),L=!1)},fe={p:k,um:oe,m:Z,r:Pe,mt:be,mc:K,pc:O,pbc:de,n:ne,o:e},Ee,pe;return t&&([Ee,pe]=t(fe)),{render:W,hydrate:Ee,createApp:Od(W,Ee)}}function yo({type:e,props:t},o){return o==="svg"&&e==="foreignObject"||o==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:o}function Qt({effect:e,job:t},o){o?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Wd(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function fi(e,t,o=!1){let r=e.children,n=t.children;if(we(r)&&we(n))for(let i=0;i>1,e[o[u]]0&&(t[r]=o[i-1]),o[i]=r)}}for(i=o.length,a=o[i-1];i-- >0;)o[i]=a,a=t[a];return o}function mi(e){let t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:mi(t)}function Ir(e){if(e)for(let t=0;te.__isSuspense;function Yd(e,t){t&&t.pendingBranch?we(e)?t.effects.push(...e):t.effects.push(e):Lr(e)}var x=Symbol.for("v-fgt"),An=Symbol.for("v-txt"),Lt=Symbol.for("v-cmt"),Gs=Symbol.for("v-stc"),Xt=[],pt=null;function l(e=!1){Xt.push(pt=e?null:[])}function yi(){Xt.pop(),pt=Xt[Xt.length-1]||null}var Ws=1;function wn(e,t=!1){Ws+=e,e<0&&pt&&t&&(pt.hasOnce=!0)}function gi(e){return e.dynamicChildren=Ws>0?pt||jt:null,yi(),Ws>0&&pt&&pt.push(e),e}function d(e,t,o,r,n,i){return gi(s(e,t,o,r,n,i,!0))}function gs(e,t,o,r,n){return gi(Re(e,t,o,r,n,!0))}function kn(e){return e?e.__v_isVNode===!0:!1}function Ls(e,t){return e.type===t.type&&e.key===t.key}var bi=({key:e})=>e??null,hn=({ref:e,ref_key:t,ref_for:o})=>(typeof e=="number"&&(e=""+e),e!=null?Fe(e)||xe(e)||ke(e)?{i:ct,r:e,k:t,f:!!o}:e:null);function s(e,t=null,o=null,r=0,n=null,i=e===x?0:1,a=!1,u=!1){let p={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&bi(t),ref:t&&hn(t),scopeId:Hr,slotScopeIds:null,children:o,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:r,dynamicProps:n,dynamicChildren:null,appContext:null,ctx:ct};return u?(_n(p,o),i&128&&e.normalize(p)):o&&(p.shapeFlag|=Fe(o)?8:16),Ws>0&&!a&&pt&&(p.patchFlag>0||i&6)&&p.patchFlag!==32&&pt.push(p),p}var Re=xd;function xd(e,t=null,o=null,r=0,n=null,i=!1){if((!e||e===_d)&&(e=Lt),kn(e)){let u=ys(e,t,!0);return o&&_n(u,o),Ws>0&&!i&&pt&&(u.shapeFlag&6?pt[pt.indexOf(e)]=u:pt.push(u)),u.patchFlag=-2,u}if(iu(e)&&(e=e.__vccOpts),t){t=Jd(t);let{class:u,style:p}=t;u&&!Fe(u)&&(t.class=T(u)),Te(p)&&(Fs(p)&&!we(p)&&(p=Be({},p)),t.style=Oe(p))}let a=Fe(e)?1:vi(e)?128:Nn(e)?64:Te(e)?4:ke(e)?2:0;return s(e,t,o,r,n,a,i,!0)}function Jd(e){return e?Fs(e)||ii(e)?Be({},e):e:null}function ys(e,t,o=!1,r=!1){let{props:n,ref:i,patchFlag:a,children:u,transition:p}=e,h=t?Qd(n||{},t):n,v={__v_isVNode:!0,__v_skip:!0,type:e.type,props:h,key:h&&bi(h),ref:t&&t.ref?o&&i?we(i)?i.concat(hn(t)):[i,hn(t)]:hn(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:u,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==x?a===-1?16:a|16:a,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:p,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&ys(e.ssContent),ssFallback:e.ssFallback&&ys(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return p&&r&&Sn(v,p.clone(v)),v}function y(e=" ",t=0){return Re(An,null,e,t)}function _e(e,t){let o=Re(Gs,null,e);return o.staticCount=t,o}function m(e="",t=!1){return t?(l(),gs(Lt,null,e)):Re(Lt,null,e)}function Ot(e){return e==null||typeof e=="boolean"?Re(Lt):we(e)?Re(x,null,e.slice()):kn(e)?Ft(e):Re(An,null,String(e))}function Ft(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:ys(e)}function _n(e,t){let o=0,{shapeFlag:r}=e;if(t==null)t=null;else if(we(t))o=16;else if(typeof t=="object")if(r&65){let n=t.default;n&&(n._c&&(n._d=!1),_n(e,n()),n._c&&(n._d=!0));return}else{o=32;let n=t._;!n&&!ii(t)?t._ctx=ct:n===3&&ct&&(ct.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else if(ke(t)){if(r&65){_n(e,{default:t});return}t={default:t,_ctx:ct},o=32}else t=String(t),r&64?(o=16,t=[y(t)]):o=8;e.children=t,e.shapeFlag|=o}function Qd(...e){let t={};for(let o=0;oZe||ct,En,Ks;{let e=Ds(),t=(o,r)=>{let n;return(n=e[o])||(n=e[o]=[]),n.push(r),i=>{n.length>1?n.forEach(a=>a(i)):n[0](i)}};En=t("__VUE_INSTANCE_SETTERS__",o=>Ze=o),Ks=t("__VUE_SSR_SETTERS__",o=>Ys=o)}var Js=e=>{let t=Ze;return En(e),e.scope.on(),()=>{e.scope.off(),En(t)}},Vr=()=>{Ze&&Ze.scope.off(),En(null)};function wi(e){return e.vnode.shapeFlag&4}var Ys=!1;function tu(e,t=!1,o=!1){t&&Ks(t);let{props:r,children:n}=e.vnode,i=wi(e);Fd(e,r,i,t),Hd(e,n,o||t);let a=i?su(e,t):void 0;return t&&Ks(!1),a}function su(e,t){let o=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Ed);let{setup:r}=o;if(r){St();let n=e.setupContext=r.length>1?ou(e):null,i=Js(e),a=xs(r,e,0,[e.props,n]),u=Kn(a);if(Dt(),i(),(u||e.sp)&&!Hs(e)&&Wr(e),u){if(a.then(Vr,Vr),t)return a.then(p=>{Ks(!0);try{Pr(e,p,t)}finally{Ks(!1)}}).catch(p=>{Cn(p,e,0)});e.asyncDep=a}else Pr(e,a,t)}else ki(e,t)}function Pr(e,t,o){ke(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Te(t)&&(e.setupState=mn(t)),ki(e,o)}var qr,Mr;function ki(e,t,o){let r=e.type;if(!e.render){if(!t&&qr&&!r.render){let n=r.template||Co(e).template;if(n){let{isCustomElement:i,compilerOptions:a}=e.appContext.config,{delimiters:u,compilerOptions:p}=r,h=Be(Be({isCustomElement:i,delimiters:u},a),p);r.render=qr(n,h)}}e.render=r.render||nt,Mr&&Mr(e)}{let n=Js(e);St();try{Cd(e)}finally{Dt(),n()}}}var nu={get(e,t){return Je(e,"get",""),e[t]}};function ou(e){let t=o=>{e.exposed=o||{}};return{attrs:new Proxy(e.attrs,nu),slots:e.slots,emit:e.emit,expose:t}}function In(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(mn(fo(e.exposed)),{get(t,o){if(o in t)return t[o];if(o in Bs)return Bs[o](e)},has(t,o){return o in t||o in Bs}})):e.proxy}function ru(e,t=!0){return ke(e)?e.displayName||e.name:e.name||t&&e.__name}function iu(e){return ke(e)&&"__vccOpts"in e}var Xe=(e,t)=>br(e,t,Ys);function Ce(e,t,o){try{wn(-1);let r=arguments.length;return r===2?Te(t)&&!we(t)?kn(t)?Re(e,null,[t]):Re(e,t):Re(e,null,t):(r>3?o=Array.prototype.slice.call(arguments,2):r===3&&kn(o)&&(o=[o]),Re(e,t,o))}finally{wn(1)}}var au="3.5.42";var Oo,_i=typeof window<"u"&&window.trustedTypes;if(_i)try{Oo=_i.createPolicy("vue",{createHTML:e=>e})}catch{}var Ai=Oo?e=>Oo.createHTML(e):e=>e,lu="http://www.w3.org/2000/svg",du="http://www.w3.org/1998/Math/MathML",zt=typeof document<"u"?document:null,Ei=zt&&zt.createElement("template"),uu={insert:(e,t,o)=>{t.insertBefore(e,o||null)},remove:e=>{let t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,o,r)=>{let n=t==="svg"?zt.createElementNS(lu,e):t==="mathml"?zt.createElementNS(du,e):o?zt.createElement(e,{is:o}):zt.createElement(e);return e==="select"&&r&&r.multiple!=null&&n.setAttribute("multiple",r.multiple),n},createText:e=>zt.createTextNode(e),createComment:e=>zt.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>zt.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,o,r,n,i){let a=o?o.previousSibling:t.lastChild;if(n&&(n===i||n.nextSibling))for(;t.insertBefore(n.cloneNode(!0),o),!(n===i||!(n=n.nextSibling)););else{Ei.innerHTML=Ai(r==="svg"?`${e}`:r==="mathml"?`${e}`:e);let u=Ei.content;if(r==="svg"||r==="mathml"){let p=u.firstChild;for(;p.firstChild;)u.appendChild(p.firstChild);u.removeChild(p)}t.insertBefore(u,o)}return[a?a.nextSibling:t.firstChild,o?o.previousSibling:t.lastChild]}};var cu=Symbol("_vtc");function pu(e,t,o){let r=e[cu];r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):o?e.setAttribute("class",t):e.className=t}var Pn=Symbol("_vod"),Ii=Symbol("_vsh"),H={name:"show",beforeMount(e,{value:t},{transition:o}){e[Pn]=e.style.display==="none"?"":e.style.display,o&&t?o.beforeEnter(e):Qs(e,t)},mounted(e,{value:t},{transition:o}){o&&t&&o.enter(e)},updated(e,{value:t,oldValue:o},{transition:r}){!t!=!o&&(r?t?(r.beforeEnter(e),Qs(e,!0),r.enter(e)):r.leave(e,()=>{Qs(e,!1)}):Qs(e,t))},beforeUnmount(e,{value:t}){Qs(e,t)}};function Qs(e,t){e.style.display=t?e[Pn]:"none",e[Ii]=!t}var fu=Symbol("");var mu=/(?:^|;)\s*display\s*:/;function hu(e,t,o){let r=e.style,n=Fe(o),i=!1;if(o&&!n){if(t)if(Fe(t))for(let a of t.split(";")){let u=a.slice(0,a.indexOf(":")).trim();o[u]==null&&Xs(r,u,"")}else for(let a in t)o[a]==null&&Xs(r,a,"");for(let a in o){a==="display"&&(i=!0);let u=o[a];u!=null?yu(e,a,!Fe(t)&&t?t[a]:void 0,u)||Xs(r,a,u):Xs(r,a,"")}}else if(n){if(t!==o){let a=r[fu];a&&(o+=";"+a),r.cssText=o,i=mu.test(o)}}else t&&e.removeAttribute("style");Pn in e&&(e[Pn]=i?r.display:"",e[Ii]&&(r.display="none"))}var Vn=/\s*!important$/;function Xs(e,t,o){if(we(o))o.forEach(r=>Xs(e,t,r));else if(o==null&&(o=""),t.startsWith("--"))Vn.test(o)?e.setProperty(t,o.replace(Vn,""),"important"):e.setProperty(t,o);else{let r=vu(e,t);Vn.test(o)?e.setProperty(Pt(r),o.replace(Vn,""),"important"):e[r]=o}}var Ci=["Webkit","Moz","ms"],Ro={};function vu(e,t){let o=Ro[t];if(o)return o;let r=We(t);if(r!=="filter"&&r in e)return Ro[t]=r;r=Wt(r);for(let n=0;nTo||(Cu.then(()=>To=0),To=Date.now());function Su(e,t){let o=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=o.attached)return;let n=o.value;if(we(n)){let i=r.stopImmediatePropagation;r.stopImmediatePropagation=()=>{i.call(r),r._stopped=!0};let a=n.slice(),u=[r];for(let p=0;pe.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Du=(e,t,o,r,n,i)=>{let a=n==="svg";t==="class"?pu(e,r,a):t==="style"?hu(e,o,r):ls(t)?ds(t)||wu(e,t,o,r,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Ru(e,t,r,a))?(Di(e,t,r),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Si(e,t,r,a,i,t!=="value")):e._isVueCE&&(Tu(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!Fe(r)))?Di(e,We(t),r,i,t):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),Si(e,t,r,a))};function Ru(e,t,o,r){if(r)return!!(t==="innerHTML"||t==="textContent"||t in e&&Ti(t)&&ke(o));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="sandbox"&&e.tagName==="IFRAME"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){let n=e.tagName;if(n==="IMG"||n==="VIDEO"||n==="CANVAS"||n==="SOURCE")return!1}return Ti(t)&&Fe(o)?!1:t in e}function Tu(e,t){let o=e._def.props;if(!o)return!1;let r=We(t);return Array.isArray(o)?o.some(n=>We(n)===r):Object.keys(o).some(n=>We(n)===r)}var Ou=["ctrl","shift","alt","meta"],Au={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>Ou.some(o=>e[`${o}Key`]&&!t.includes(o))},ge=(e,t)=>{if(!e)return e;let o=e._withMods||(e._withMods={}),r=t.join(".");return o[r]||(o[r]=((n,...i)=>{for(let a=0;a{let t=Vu().createApp(...e),{mount:o}=t;return t.mount=r=>{let n=qu(r);if(!n)return;let i=t._component;!ke(i)&&!i.render&&!i.template&&(i.template=n.innerHTML),n.nodeType===1&&(n.textContent="");let a=o(n,!1,Pu(n));return n instanceof Element&&(n.removeAttribute("v-cloak"),n.setAttribute("data-v-app","")),a},t});function Pu(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function qu(e){return Fe(e)?document.querySelector(e):e}var ns=typeof document<"u";function qi(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function Mu(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&qi(e.default)}var Ae=Object.assign;function qn(e,t){let o={};for(let r in t){let n=t[r];o[r]=yt(n)?n.map(e):e(n)}return o}var ws=()=>{},yt=Array.isArray;function Vo(e,t){let o={};for(let r in e)o[r]=r in t?t[r]:e[r];return o}var Mi=/#/g,$u=/&/g,Fu=/\//g,Lu=/=/g,Uu=/\?/g,$i=/\+/g,zu=/%5B/g,Hu=/%5D/g,Fi=/%5E/g,Bu=/%60/g,Li=/%7B/g,Gu=/%7C/g,Ui=/%7D/g,ju=/%20/g;function Po(e){return e==null?"":encodeURI(""+e).replace(Gu,"|").replace(zu,"[").replace(Hu,"]")}function zi(e){return Po(e).replace(Li,"{").replace(Ui,"}").replace(Fi,"^")}function Ao(e){return Po(e).replace($i,"%2B").replace(ju,"+").replace(Mi,"%23").replace($u,"%26").replace(Bu,"`").replace(Li,"{").replace(Ui,"}").replace(Fi,"^")}function Wu(e){return Ao(e).replace(Lu,"%3D")}function Ku(e){return Po(e).replace(Mi,"%23").replace(Uu,"%3F")}function Hi(e){return Ku(e).replace(Fu,"%2F")}function bs(e){if(e==null)return null;try{return decodeURIComponent(""+e)}catch{}return""+e}var Yu=/\/$/,xu=e=>e.replace(Yu,"");function Mn(e,t,o="/"){let r,n={},i="",a="",u=t.indexOf("#"),p=t.indexOf("?");return p=u>=0&&p>u?-1:p,p>=0&&(r=t.slice(0,p),i=t.slice(p,u>0?u:t.length),n=e(i.slice(1))),u>=0&&(r=r||t.slice(0,u),a=t.slice(u,t.length)),r=Qu(r??t,o),{fullPath:r+i+a,path:r,query:n,hash:bs(a)}}function Bi(e,t){let o=t.query?e(t.query):"";return t.path+(o&&"?")+o+(t.hash||"")}function qo(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function Gi(e,t,o){let r=t.matched.length-1,n=o.matched.length-1;return r>-1&&r===n&&ts(t.matched[r],o.matched[n])&&Mo(t.params,o.params)&&e(t.query)===e(o.query)&&t.hash===o.hash}function ts(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Mo(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var o in e)if(!Ju(e[o],t[o]))return!1;return!0}function Ju(e,t){return yt(e)?Pi(e,t):yt(t)?Pi(t,e):e?.valueOf()===t?.valueOf()}function Pi(e,t){return yt(t)?e.length===t.length&&e.every((o,r)=>o===t[r]):e.length===1&&e[0]===t}function Qu(e,t){if(e.startsWith("/"))return e;if(!e)return t;let o=t.split("/"),r=e.split("/"),n=r[r.length-1];(n===".."||n===".")&&r.push("");let i=o.length-1,a,u;for(a=0;a1&&i--;else break;return o.slice(0,i).join("/")+"/"+r.slice(a).join("/")}var Bt={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},$n=(function(e){return e.pop="pop",e.push="push",e})({}),Fn=(function(e){return e.back="back",e.forward="forward",e.unknown="",e})({});function ji(e){if(!e)if(ns){let t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),xu(e)}var Xu=/^[^#]+#/;function Wi(e,t){return e.replace(Xu,"#")+t}function Zu(e,t){let o=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-o.left-(t.left||0),top:r.top-o.top-(t.top||0)}}var Zs=()=>({left:window.scrollX,top:window.scrollY});function Ki(e){let t;if("el"in e){let o=e.el,r=typeof o=="string"&&o.startsWith("#"),n=typeof o=="string"?r?document.getElementById(o.slice(1)):document.querySelector(o):o;if(!n)return;t=Zu(n,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function $o(e,t){return(history.state?history.state.position-t:-1)+e}var Io=new Map;function Yi(e,t){Io.set(e,t)}function xi(e){let t=Io.get(e);return Io.delete(e),t}function ec(e){return typeof e=="string"||e&&typeof e=="object"}function Fo(e){return typeof e=="string"||typeof e=="symbol"}var He=(function(e){return e[e.MATCHER_NOT_FOUND=1]="MATCHER_NOT_FOUND",e[e.NAVIGATION_GUARD_REDIRECT=2]="NAVIGATION_GUARD_REDIRECT",e[e.NAVIGATION_ABORTED=4]="NAVIGATION_ABORTED",e[e.NAVIGATION_CANCELLED=8]="NAVIGATION_CANCELLED",e[e.NAVIGATION_DUPLICATED=16]="NAVIGATION_DUPLICATED",e})({}),Ji=Symbol("");var Sq={[He.MATCHER_NOT_FOUND]({location:e,currentLocation:t}){return`No match for +"use strict";(()=>{var $l=Object.defineProperty;var Fl=(e,t)=>{for(var o in t)$l(e,o,{get:t[o],enumerable:!0})};var ye={notebook:"/script/notebook.8844e2735f.min.js",pdf:"/script/pdf.eaa7573247.min.js",markdown:"/script/markdown.ad7b1d71c3.min.js",org:"/script/org.f4e2a3f59f.min.js",editor:"/script/editor.e243722d87.min.js"};var rn=new Map,Ul=ye;function Wt(e){if(!rn.has(e)){let t=document.createElement("script");t.src=Ul[e];let o=new Promise((r,n)=>{t.onload=r,t.onerror=()=>{rn.delete(e),t.remove(),n(new Error(`Unable to load ${e}. Please retry.`))}});rn.set(e,o),document.head.appendChild(t)}return rn.get(e)}async function tr(){await Wt("editor"),ace.config.set("basePath","/script/external/ace/")}function ds(e){let t=Object.create(null);for(let o of e.split(","))t[o]=1;return o=>o in t}var Ve={},Kt=[],rt=()=>{},Qn=()=>!1,us=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),cs=e=>e.startsWith("onUpdate:"),Ge=Object.assign,Ss=(e,t)=>{let o=e.indexOf(t);o>-1&&e.splice(o,1)},zl=Object.prototype.hasOwnProperty,Re=(e,t)=>zl.call(e,t),_e=Array.isArray,Pt=e=>Ds(e)==="[object Map]",ls=e=>Ds(e)==="[object Set]",sr=e=>Ds(e)==="[object Date]";var ke=e=>typeof e=="function",Le=e=>typeof e=="string",ct=e=>typeof e=="symbol",Oe=e=>e!==null&&typeof e=="object",Xn=e=>(Oe(e)||ke(e))&&ke(e.then)&&ke(e.catch),rr=Object.prototype.toString,Ds=e=>rr.call(e),Zn=e=>Ds(e).slice(8,-1),an=e=>Ds(e)==="[object Object]",ln=e=>Le(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,ps=ds(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted");var dn=e=>{let t=Object.create(null);return(o=>t[o]||(t[o]=e(o)))},Hl=/-\w/g,Ke=dn(e=>e.replace(Hl,t=>t.slice(1).toUpperCase())),Bl=/\B([A-Z])/g,qt=dn(e=>e.replace(Bl,"-$1").toLowerCase()),Yt=dn(e=>e.charAt(0).toUpperCase()+e.slice(1)),Rs=dn(e=>e?`on${Yt(e)}`:""),ht=(e,t)=>!Object.is(e,t),Ts=(e,...t)=>{for(let o=0;o{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:o})},eo=e=>{let t=parseFloat(e);return isNaN(t)?e:t};var nr,Os=()=>nr||(nr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Ae(e){if(_e(e)){let t={};for(let o=0;o{if(o){let r=o.split(jl);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function T(e){let t="";if(Le(e))t=e;else if(_e(e))for(let o=0;o!!(e&&e.__v_isRef===!0),c=e=>Le(e)?e:e==null?"":_e(e)||Oe(e)&&(e.toString===rr||!ke(e.toString))?lr(e)?c(e.value):JSON.stringify(e,dr,2):String(e),dr=(e,t)=>lr(t)?dr(e,t.value):Pt(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((o,[r,n],i)=>(o[Jn(r,i)+" =>"]=n,o),{})}:ls(t)?{[`Set(${t.size})`]:[...t.values()].map(o=>Jn(o))}:ct(t)?Jn(t):Oe(t)&&!_e(t)&&!an(t)?String(t):t,Jn=(e,t="")=>{var o;return ct(e)?`Symbol(${(o=e.description)!=null?o:t})`:e};function Jl(e,...t){console.warn(`[Vue warn] ${e}`,...t)}var Ye,Ps=class{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this._warnOnRun=!0,this.__v_skip=!0,!t&&Ye&&(Ye.active?(this.parent=Ye,this.index=(Ye.scopes||(Ye.scopes=[])).push(this)-1):(this._active=!1,this._warnOnRun=!1))}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,o;if(this.scopes){let r=this.scopes.slice();for(t=0,o=r.length;t0&&--this._on===0){if(Ye===this)Ye=this.prevScope;else{let t=Ye;for(;t;){if(t.prevScope===this){t.prevScope=this.prevScope;break}t=t.prevScope}}this.prevScope=void 0}}stop(t){if(this._active){this._active=!1;let o,r;for(o=0,r=this.effects.length;o0)return;if(Vs){let t=Vs;for(Vs=void 0;t;){let o=t.next;t.next=void 0,t.flags&=-9,t=o}}let e;for(;Is;){let t=Is;for(Is=void 0;t;){let o=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(r){e||(e=r)}t=o}}if(e)throw e}function hr(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function vr(e){let t,o=e.depsTail,r=o;for(;r;){let n=r.prevDep;r.version===-1?(r===o&&(o=n),ho(r),Ql(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=n}e.deps=t,e.depsTail=o}function oo(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(yr(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function yr(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===qs)||(e.globalVersion=qs,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!oo(e))))return;e.flags|=2;let t=e.dep,o=$e,r=wt;$e=e,wt=!0;try{hr(e);let n=e.fn(e._value);(t.version===0||ht(n,e._value))&&(e.flags|=128,e._value=n,t.version++)}catch(n){throw t.version++,n}finally{$e=o,wt=r,vr(e),e.flags&=-3}}function ho(e,t=!1){let{dep:o,prevSub:r,nextSub:n}=e;if(r&&(r.nextSub=n,e.prevSub=void 0),n&&(n.prevSub=r,e.nextSub=void 0),o.subs===e&&(o.subs=r,!r&&o.computed)){o.computed.flags&=-5;for(let i=o.computed.deps;i;i=i.nextDep)ho(i,!0)}!t&&!--o.sc&&o.map&&o.map.delete(o.key)}function Ql(e){let{prevDep:t,nextDep:o}=e;t&&(t.nextDep=o,e.prevDep=void 0),o&&(o.prevDep=t,e.nextDep=void 0)}var wt=!0,gr=[];function Dt(){gr.push(wt),wt=!1}function Rt(){let e=gr.pop();wt=e===void 0?!0:e}function ur(e){let{cleanup:t}=e;if(e.cleanup=void 0,t){let o=$e;$e=void 0;try{t()}finally{$e=o}}}var qs=0,ro=class{constructor(t,o){this.sub=t,this.dep=o,this.version=o.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}},Ms=class{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(t){if(!$e||!wt||$e===this.computed)return;let o=this.activeLink;if(o===void 0||o.sub!==$e)o=this.activeLink=new ro($e,this),$e.deps?(o.prevDep=$e.depsTail,$e.depsTail.nextDep=o,$e.depsTail=o):$e.deps=$e.depsTail=o,br(o);else if(o.version===-1&&(o.version=this.version,o.nextDep)){let r=o.nextDep;r.prevDep=o.prevDep,o.prevDep&&(o.prevDep.nextDep=r),o.prevDep=$e.depsTail,o.nextDep=void 0,$e.depsTail.nextDep=o,$e.depsTail=o,$e.deps===o&&($e.deps=r)}return o}trigger(t){this.version++,qs++,this.notify(t)}notify(t){fo();try{for(let o=this.subs;o;o=o.prevSub)o.sub.notify()&&o.sub.dep.notify()}finally{mo()}}};function br(e){if(e.dep.sc++,e.sub.flags&4){let t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let r=t.deps;r;r=r.nextDep)br(r)}let o=e.dep.subs;o!==e&&(e.prevSub=o,o&&(o.nextSub=e)),e.dep.subs=e}}var io=new WeakMap,Jt=Symbol(""),ao=Symbol(""),$s=Symbol("");function Qe(e,t,o){if(wt&&$e){let r=io.get(e);r||io.set(e,r=new Map);let n=r.get(o);n||(r.set(o,n=new Ms),n.map=r,n.key=o),n.track()}}function Nt(e,t,o,r,n,i){let a=io.get(e);if(!a){qs++;return}let u=p=>{p&&p.trigger()};if(fo(),t==="clear")a.forEach(u);else{let p=_e(e),h=p&&ln(o);if(p&&o==="length"){let v=Number(r);a.forEach((g,f)=>{(f==="length"||f===$s||!ct(f)&&f>=v)&&u(g)})}else switch((o!==void 0||a.has(void 0))&&u(a.get(o)),h&&u(a.get($s)),t){case"add":p?h&&u(a.get("length")):(u(a.get(Jt)),Pt(e)&&u(a.get(ao)));break;case"delete":p||(u(a.get(Jt)),Pt(e)&&u(a.get(ao)));break;case"set":Pt(e)&&u(a.get(Jt));break}}mo()}function ms(e){let t=Te(e);return t===e?t:(Qe(t,"iterate",$s),it(e)?t:t.map(vt))}function Ls(e){return Qe(e=Te(e),"iterate",$s),e}function Ct(e,t){return kt(e)?Qt($t(e)?vt(t):t):vt(t)}var Xl={__proto__:null,[Symbol.iterator](){return so(this,Symbol.iterator,e=>Ct(this,e))},concat(...e){return ms(this).concat(...e.map(t=>_e(t)?ms(t):t))},entries(){return so(this,"entries",e=>(e[1]=Ct(this,e[1]),e))},every(e,t){return Mt(this,"every",e,t,void 0,arguments)},filter(e,t){return Mt(this,"filter",e,t,o=>o.map(r=>Ct(this,r)),arguments)},find(e,t){return Mt(this,"find",e,t,o=>Ct(this,o),arguments)},findIndex(e,t){return Mt(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return Mt(this,"findLast",e,t,o=>Ct(this,o),arguments)},findLastIndex(e,t){return Mt(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return Mt(this,"forEach",e,t,void 0,arguments)},includes(...e){return no(this,"includes",e)},indexOf(...e){return no(this,"indexOf",e)},join(e){return ms(this).join(e)},lastIndexOf(...e){return no(this,"lastIndexOf",e)},map(e,t){return Mt(this,"map",e,t,void 0,arguments)},pop(){return As(this,"pop")},push(...e){return As(this,"push",e)},reduce(e,...t){return cr(this,"reduce",e,t)},reduceRight(e,...t){return cr(this,"reduceRight",e,t)},shift(){return As(this,"shift")},some(e,t){return Mt(this,"some",e,t,void 0,arguments)},splice(...e){return As(this,"splice",e)},toReversed(){return ms(this).toReversed()},toSorted(e){return ms(this).toSorted(e)},toSpliced(...e){return ms(this).toSpliced(...e)},unshift(...e){return As(this,"unshift",e)},values(){return so(this,"values",e=>Ct(this,e))}};function so(e,t,o){let r=Ls(e),n=r[t]();return r!==e&&!it(e)&&(n._next=n.next,n.next=()=>{let i=n._next();return i.done||(i.value=o(i.value)),i}),n}var Zl=Array.prototype;function Mt(e,t,o,r,n,i){let a=Ls(e),u=a!==e&&!it(e),p=a[t];if(p!==Zl[t]){let g=p.apply(e,i);return u?vt(g):g}let h=o;a!==e&&(u?h=function(g,f){return o.call(this,Ct(e,g),f,e)}:o.length>2&&(h=function(g,f){return o.call(this,g,f,e)}));let v=p.call(a,h,r);return u&&n?n(v):v}function cr(e,t,o,r){let n=Ls(e),i=n!==e&&!it(e),a=o,u=!1;n!==e&&(i?(u=r.length===0,a=function(h,v,g){return u&&(u=!1,h=Ct(e,h)),o.call(this,h,Ct(e,v),g,e)}):o.length>3&&(a=function(h,v,g){return o.call(this,h,v,g,e)}));let p=n[t](a,...r);return u?Ct(e,p):p}function no(e,t,o){let r=Te(e);Qe(r,"iterate",$s);let n=r[t](...o);return(n===-1||n===!1)&&zs(o[0])?(o[0]=Te(o[0]),r[t](...o)):n}function As(e,t,o=[]){Dt(),fo();let r=Te(e)[t].apply(e,o);return mo(),Rt(),r}var ed=ds("__proto__,__v_isRef,__isVue"),wr=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(ct));function td(e){ct(e)||(e=String(e));let t=Te(this);return Qe(t,"has",e),t.hasOwnProperty(e)}var hn=class{constructor(t=!1,o=!1){this._isReadonly=t,this._isShallow=o}get(t,o,r){if(o==="__v_skip")return t.__v_skip;let n=this._isReadonly,i=this._isShallow;if(o==="__v_isReactive")return!n;if(o==="__v_isReadonly")return n;if(o==="__v_isShallow")return i;if(o==="__v_raw")return r===(n?i?ud:Er:i?_r:kr).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(r)?t:void 0;let a=_e(t);if(!n){let p;if(a&&(p=Xl[o]))return p;if(o==="hasOwnProperty")return td}let u=Reflect.get(t,o,Je(t)?t:r);if((ct(o)?wr.has(o):ed(o))||(n||Qe(t,"get",o),i))return u;if(Je(u)){let p=a&&ln(o)?u:u.value;return n&&Oe(p)?yn(p):p}return Oe(u)?n?yn(u):Ue(u):u}},vn=class extends hn{constructor(t=!1){super(!1,t)}set(t,o,r,n){let i=t[o],a=_e(t)&&ln(o);if(!this._isShallow){let h=kt(i);if(!it(r)&&!kt(r)&&(i=Te(i),r=Te(r)),!a&&Je(i)&&!Je(r))return h||(i.value=r),!0}let u=a?Number(o)e,pn=e=>Reflect.getPrototypeOf(e);function rd(e,t,o){return function(...r){let n=this.__v_raw,i=Te(n),a=Pt(i),u=e==="entries"||e===Symbol.iterator&&a,p=e==="keys"&&a,h=n[e](...r),v=o?uo:t?Qt:vt;return!t&&Qe(i,"iterate",p?ao:Jt),Ge(Object.create(h),{next(){let{value:g,done:f}=h.next();return f?{value:g,done:f}:{value:u?[v(g[0]),v(g[1])]:v(g),done:f}}})}}function fn(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function id(e,t){let o={get(n){let i=this.__v_raw,a=Te(i),u=Te(n);e||(ht(n,u)&&Qe(a,"get",n),Qe(a,"get",u));let{has:p}=pn(a),h=t?uo:e?Qt:vt;if(p.call(a,n))return h(i.get(n));if(p.call(a,u))return h(i.get(u));i!==a&&i.get(n)},get size(){let n=this.__v_raw;return!e&&Qe(Te(n),"iterate",Jt),n.size},has(n){let i=this.__v_raw,a=Te(i),u=Te(n);return e||(ht(n,u)&&Qe(a,"has",n),Qe(a,"has",u)),n===u?i.has(n):i.has(n)||i.has(u)},forEach(n,i){let a=this,u=a.__v_raw,p=Te(u),h=t?uo:e?Qt:vt;return!e&&Qe(p,"iterate",Jt),u.forEach((v,g)=>n.call(i,h(v),h(g),a))}};return Ge(o,e?{add:fn("add"),set:fn("set"),delete:fn("delete"),clear:fn("clear")}:{add(n){let i=Te(this),a=pn(i),u=Te(n),p=!t&&!it(n)&&!kt(n)?u:n;return a.has.call(i,p)||ht(n,p)&&a.has.call(i,n)||ht(u,p)&&a.has.call(i,u)||(i.add(p),Nt(i,"add",p,p)),this},set(n,i){!t&&!it(i)&&!kt(i)&&(i=Te(i));let a=Te(this),{has:u,get:p}=pn(a),h=u.call(a,n);h||(n=Te(n),h=u.call(a,n));let v=p.call(a,n);return a.set(n,i),h?ht(i,v)&&Nt(a,"set",n,i,v):Nt(a,"add",n,i),this},delete(n){let i=Te(this),{has:a,get:u}=pn(i),p=a.call(i,n);p||(n=Te(n),p=a.call(i,n));let h=u?u.call(i,n):void 0,v=i.delete(n);return p&&Nt(i,"delete",n,void 0,h),v},clear(){let n=Te(this),i=n.size!==0,a=void 0,u=n.clear();return i&&Nt(n,"clear",void 0,void 0,a),u}}),["keys","values","entries",Symbol.iterator].forEach(n=>{o[n]=rd(n,e,t)}),o}function vo(e,t){let o=id(e,t);return(r,n,i)=>n==="__v_isReactive"?!e:n==="__v_isReadonly"?e:n==="__v_raw"?r:Reflect.get(Re(o,n)&&n in r?o:r,n,i)}var ad={get:vo(!1,!1)},ld={get:vo(!1,!0)},dd={get:vo(!0,!1)};var kr=new WeakMap,_r=new WeakMap,Er=new WeakMap,ud=new WeakMap;function cd(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Ue(e){return kt(e)?e:yo(e,!1,sd,ad,kr)}function Us(e){return yo(e,!1,od,ld,_r)}function yn(e){return yo(e,!0,nd,dd,Er)}function yo(e,t,o,r,n){if(!Oe(e)||e.__v_raw&&!(t&&e.__v_isReactive)||e.__v_skip||!Object.isExtensible(e))return e;let i=n.get(e);if(i)return i;let a=cd(Zn(e));if(a===0)return e;let u=new Proxy(e,a===2?r:o);return n.set(e,u),u}function $t(e){return kt(e)?$t(e.__v_raw):!!(e&&e.__v_isReactive)}function kt(e){return!!(e&&e.__v_isReadonly)}function it(e){return!!(e&&e.__v_isShallow)}function zs(e){return e?!!e.__v_raw:!1}function Te(e){let t=e&&e.__v_raw;return t?Te(t):e}function go(e){return!Re(e,"__v_skip")&&Object.isExtensible(e)&&un(e,"__v_skip",!0),e}var vt=e=>Oe(e)?Ue(e):e,Qt=e=>Oe(e)?yn(e):e;function Je(e){return e?e.__v_isRef===!0:!1}function Xe(e){return Cr(e,!1)}function bn(e){return Cr(e,!0)}function Cr(e,t){return Je(e)?e:new co(e,t)}var co=class{constructor(t,o){this.dep=new Ms,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=o?t:Te(t),this._value=o?t:vt(t),this.__v_isShallow=o}get value(){return this.dep.track(),this._value}set value(t){let o=this._rawValue,r=this.__v_isShallow||it(t)||kt(t);t=r?t:Te(t),ht(t,o)&&(this._rawValue=t,this._value=r?t:vt(t),this.dep.trigger())}};function Ft(e){return Je(e)?e.value:e}var pd={get:(e,t,o)=>t==="__v_raw"?e:Ft(Reflect.get(e,t,o)),set:(e,t,o,r)=>{let n=e[t];return Je(n)&&!Je(o)?(n.value=o,!0):Reflect.set(e,t,o,r)}};function wn(e){return $t(e)?e:new Proxy(e,pd)}var po=class{constructor(t,o,r){this.fn=t,this.setter=o,this._value=void 0,this.dep=new Ms(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=qs-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!o,this.isSSR=r}notify(){if(this.flags|=16,!(this.flags&8)&&$e!==this)return mr(this,!0),!0}get value(){let t=this.dep.track();return yr(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}};function Nr(e,t,o=!1){let r,n;return ke(e)?r=e:(r=e.get,n=e.set),new po(r,n,o)}var mn={},gn=new WeakMap,xt;function Sr(e,t=!1,o=xt){if(o){let r=gn.get(o);r||gn.set(o,r=[]),r.push(e)}}function Dr(e,t,o=Ve){let{immediate:r,deep:n,once:i,scheduler:a,augmentJob:u,call:p}=o,h=O=>{(o.onWarn||Jl)("Invalid watch source: ",O,"A watch source can only be a getter/effect function, a ref, a reactive object, or an array of these types.")},v=O=>n?O:it(O)||n===!1||n===0?St(O,1):St(O),g,f,w,k,b=!1,R=!1;if(Je(e)?(f=()=>e.value,b=it(e)):$t(e)?(f=()=>v(e),b=!0):_e(e)?(R=!0,b=e.some(O=>$t(O)||it(O)),f=()=>e.map(O=>{if(Je(O))return O.value;if($t(O))return v(O);if(ke(O))return p?p(O,2):O()})):ke(e)?t?f=p?()=>p(e,2):e:f=()=>{if(w){Dt();try{w()}finally{Rt()}}let O=xt;xt=g;try{return p?p(e,3,[k]):e(k)}finally{xt=O}}:f=rt,t&&n){let O=f,P=n===!0?1/0:n;f=()=>St(O(),P)}let N=pr(),D=()=>{g.stop(),N&&N.active&&Ss(N.effects,g)};if(i&&t){let O=t;t=(...P)=>{let ee=O(...P);return D(),ee}}let I=R?new Array(e.length).fill(mn):mn,C=O=>{if(!(!(g.flags&1)||!g.dirty&&!O))if(t){let P=g.run();if(O||n||b||(R?P.some((ee,J)=>ht(ee,I[J])):ht(P,I))){w&&w();let ee=xt;xt=g;try{let J=[P,I===mn?void 0:R&&I[0]===mn?[]:I,k];I=P,p?p(t,3,J):t(...J)}finally{xt=ee}}}else g.run()};return u&&u(C),g=new hs(f),g.scheduler=a?()=>a(C,!1):C,k=O=>Sr(O,!1,g),w=g.onStop=()=>{let O=gn.get(g);if(O){if(p)p(O,4);else for(let P of O)P();gn.delete(g)}},t?r?C(!0):I=g.run():a?a(C.bind(null,!0),!0):g.run(),D.pause=g.pause.bind(g),D.resume=g.resume.bind(g),D.stop=D,D}function St(e,t=1/0,o){if(t<=0||!Oe(e)||e.__v_skip||(o=o||new Map,(o.get(e)||0)>=t))return e;if(o.set(e,t),t--,Je(e))St(e.value,t,o);else if(_e(e))for(let r=0;r{St(r,t,o)});else if(an(e)){for(let r in e)St(e[r],t,o);for(let r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&St(e[r],t,o)}return e}function Qs(e,t,o,r){try{return r?e(...r):e()}catch(n){Xs(n,t,o)}}function yt(e,t,o,r){if(ke(e)){let n=Qs(e,t,o,r);return n&&Xn(n)&&n.catch(i=>{Xs(i,t,o)}),n}if(_e(e)){let n=[];for(let i=0;i>>1,n=nt[r],i=Ys(n);i=Ys(o)?nt.push(e):nt.splice(yd(t),0,e),e.flags|=1,jr()}}function jr(){En||(En=Gr.then(Yr))}function Wr(e){if(!_e(e))jt&&e.id===-1?jt.splice(vs+1,0,e):e.flags&1||(ys.push(e),e.flags|=1);else for(let t=0;tYs(o)-Ys(r));if(ys.length=0,jt){for(let o=0;oe.id==null?e.flags&2?-1:1/0:e.id;function Yr(e){let t=rt;try{for(Ot=0;Ot{r._d&&Dn(-1);let i=Cn(t),a=es.length,u;try{u=e(...n)}finally{for(let p=es.length;p>a;p--)Ci();Cn(i),r._d&&Dn(1)}return u};return r._n=!0,r._c=!0,r._d=!0,r}function E(e,t){if(pt===null)return e;let o=$n(pt),r=e.dirs||(e.dirs=[]);for(let n=0;n1)return o&&ke(t)?t.call(r&&r.proxy):t}}var bd=Symbol.for("v-scx"),wd=()=>{{let e=lt(bd);return e}};function He(e,t,o){return Jr(e,t,o)}function Jr(e,t,o=Ve){let{immediate:r,deep:n,flush:i,once:a}=o,u=Ge({},o),p=t&&r||!t&&i!=="post",h;if(ws){if(i==="sync"){let w=wd();h=w.__watcherHandles||(w.__watcherHandles=[])}else if(!p){let w=()=>{};return w.stop=rt,w.resume=rt,w.pause=rt,w}}let v=Ze;u.call=(w,k,b)=>yt(w,v,k,b);let g=!1;i==="post"?u.scheduler=w=>{at(w,v&&v.suspense)}:i!=="sync"&&(g=!0,u.scheduler=(w,k)=>{k?w():Do(w)}),u.augmentJob=w=>{t&&(w.flags|=4),g&&(w.flags|=2,v&&(w.id=v.uid,w.i=v))};let f=Dr(e,t,u);return ws&&(h?h.push(f):p&&f()),f}function kd(e,t,o){let r=this.proxy,n=Le(e)?e.includes(".")?Qr(r,e):()=>r[e]:e.bind(r,r),i;ke(t)?i=t:(i=t.handler,o=t);let a=tn(this),u=Jr(n,i.bind(r),o);return a(),u}function Qr(e,t){let o=t.split(".");return()=>{let r=e;for(let n=0;ne.__isTeleport;var bo=Symbol("_leaveCb");function Ed(e){let t=e[0];if(e.length>1){let o=!1;for(let r of e)if(r.type!==Ut){t=r,o=!0;break}}return t}function Xr(e){if(!Vn(e))return An(e.type)&&e.children?Ed(e.children):e;if(e.component)return e.component.subTree;let{shapeFlag:t,children:o}=e;if(o){if(t&16)return o[0];if(t&32&&ke(o.default))return o.default()}}function In(e,t){if(e.shapeFlag&6&&e.component){e.transition=t;let o=e.component.subTree;In(An(o.type)&&Xr(o)||o,t)}else e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function Zs(e,t){return ke(e)?Ge({name:e.name},t,{setup:e}):e}function Ro(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function Tr(e,t){let o;return!!((o=Object.getOwnPropertyDescriptor(e,t))&&!o.configurable)}var Nn=new WeakMap;function Gs(e,t,o,r,n=!1){if(_e(e)){e.forEach((b,R)=>Gs(b,t&&(_e(t)?t[R]:t),o,r,n));return}if(js(r)&&!n){r.shapeFlag&512&&r.type.__asyncResolved&&r.component.subTree.component&&Gs(e,t,o,r.component.subTree);return}let i=r.shapeFlag&4?$n(r.component):r.el,a=n?null:i,{i:u,r:p}=e,h=t&&t.r,v=u.refs===Ve?u.refs={}:u.refs,g=u.setupState,f=Te(g),w=g===Ve?Qn:b=>Tr(v,b)?!1:Re(f,b),k=(b,R)=>!(R&&Tr(v,R));if(h!=null&&h!==p){if(Or(t),Le(h))v[h]=null,w(h)&&(g[h]=null);else if(Je(h)){let b=t;k(h,b.k)&&(h.value=null),b.k&&(v[b.k]=null)}}if(ke(p))Qs(p,u,12,[a,v]);else{let b=Le(p),R=Je(p);if(b||R){let N=()=>{if(e.f){let D=b?w(p)?g[p]:v[p]:k(p)||!e.k?p.value:v[e.k];if(n)_e(D)&&Ss(D,i);else if(_e(D))D.includes(i)||D.push(i);else if(b)v[p]=[i],w(p)&&(g[p]=v[p]);else{let I=[i];k(p,e.k)&&(p.value=I),e.k&&(v[e.k]=I)}}else b?(v[p]=a,w(p)&&(g[p]=a)):R&&(k(p,e.k)&&(p.value=a),e.k&&(v[e.k]=a))};if(a){let D=()=>{N(),Nn.delete(e)};D.id=-1,Nn.set(e,D),at(D,o)}else Or(e),N()}}}function Or(e){let t=Nn.get(e);t&&(t.flags|=8,Nn.delete(e))}var Ar=e=>e.nodeType===8;var mq=Os().requestIdleCallback||(e=>setTimeout(e,1)),hq=Os().cancelIdleCallback||(e=>clearTimeout(e));function Cd(e,t){if(Ar(e)&&e.data==="["){let o=1,r=e.nextSibling;for(;r;){if(r.nodeType===1){if(t(r)===!1)break}else if(Ar(r))if(r.data==="]"){if(--o===0)break}else r.data==="["&&o++;r=r.nextSibling}}else t(e)}var js=e=>!!e.type.__asyncLoader;function Zr(e){ke(e)&&(e={loader:e});let{loader:t,loadingComponent:o,errorComponent:r,delay:n=200,hydrate:i,timeout:a,suspensible:u=!0,onError:p}=e,h=null,v,g=0,f=()=>(g++,h=null,w()),w=()=>{let k;return h||(k=h=t().catch(b=>{if(b=b instanceof Error?b:new Error(String(b)),p)return new Promise((R,N)=>{p(b,()=>R(f()),()=>N(b),g+1)});throw b}).then(b=>k!==h&&h?h:(b&&(b.__esModule||b[Symbol.toStringTag]==="Module")&&(b=b.default),v=b,b)))};return Zs({name:"AsyncComponentWrapper",__asyncLoader:w,__asyncHydrate(k,b,R){let N=k.isConnected,D=!1;(b.bu||(b.bu=[])).push(()=>D=!0);let I=()=>{D||!k.parentNode||N&&!k.isConnected||R()},C=i?()=>{let O=i(I,P=>Cd(k,P));O&&(b.bum||(b.bum=[])).push(O)}:I;v?C():w().then(()=>!b.isUnmounted&&C())},get __asyncResolved(){return v},setup(){let k=Ze;if(Ro(k),v)return()=>kn(v,k);let b=O=>{h=null,Xs(O,k,13,!r)};if(u&&k.suspense||ws)return w().then(O=>()=>kn(O,k)).catch(O=>(b(O),()=>r?Se(r,{error:O}):null));let R=Xe(!1),N=Xe(),D=Xe(!!n),I,C;return en(()=>{I!=null&&clearTimeout(I),C!=null&&clearTimeout(C)}),n&&(C=setTimeout(()=>{k.isUnmounted||(D.value=!1)},n)),a!=null&&(I=setTimeout(()=>{if(!k.isUnmounted&&!R.value&&!N.value){let O=new Error(`Async component timed out after ${a}ms.`);b(O),N.value=O}},a)),w().then(()=>{k.isUnmounted||(R.value=!0,k.parent&&Vn(k.parent.vnode)&&k.parent.update())}).catch(O=>{if(k.isUnmounted){h=null;return}b(O),N.value=O}),()=>{if(R.value&&v)return kn(v,k);if(N.value&&r)return Se(r,{error:N.value});if(o&&!D.value)return kn(o,k)}}})}function kn(e,t){let{ref:o,props:r,children:n,ce:i}=t.vnode,a=Se(e,r,n);return a.ref=o,a.ce=i,delete t.vnode.ce,a}var Vn=e=>e.type.__isKeepAlive;function ei(e,t){si(e,"a",t)}function ti(e,t){si(e,"da",t)}function si(e,t,o=Ze){let r=e.__wdc||(e.__wdc=()=>{let n=o;for(;n;){if(n.isDeactivated)return;n=n.parent}return e()});if(Pn(t,r,o),o){let n=o.parent;for(;n&&n.parent;)Vn(n.parent.vnode)&&Nd(r,t,o,n),n=n.parent}}function Nd(e,t,o,r){let n=Pn(t,e,r,!0);en(()=>{Ss(r[t],n)},o)}function Pn(e,t,o=Ze,r=!1){if(o){let n=o[e]||(o[e]=[]),i=t.__weh||(t.__weh=(...a)=>{Dt();let u=tn(o),p=yt(t,o,e,a);return u(),Rt(),p});return r?n.unshift(i):n.push(i),i}}var zt=e=>(t,o=Ze)=>{(!ws||e==="sp")&&Pn(e,(...r)=>t(...r),o)},Sd=zt("bm"),It=zt("m"),ni=zt("bu"),oi=zt("u"),ss=zt("bum"),en=zt("um"),Dd=zt("sp"),Rd=zt("rtg"),Td=zt("rtc");function Od(e,t=Ze){Pn("ec",e,t)}var ri="components",Ad="directives";function et(e,t){return ii(ri,e,!0,t)||e}var Id=Symbol.for("v-ndc");function ge(e){return ii(Ad,e)}function ii(e,t,o=!0,r=!1){let n=pt||Ze;if(n){let i=n.type;if(e===ri){let u=hu(i,!1);if(u&&(u===t||u===Ke(t)||u===Yt(Ke(t))))return i}let a=Ir(n[e]||i[e],t)||Ir(n.appContext[e],t);return!a&&r?i:a}}function Ir(e,t){return e&&(e[t]||e[Ke(t)]||e[Yt(Ke(t))])}function re(e,t,o,r){let n,i=o&&o[r],a=_e(e);if(a||Le(e)){let u=a&&$t(e),p=!1,h=!1;u&&(p=!it(e),h=kt(e),e=Ls(e)),n=new Array(e.length);for(let v=0,g=e.length;vt(u,p,void 0,i&&i[p]));else{let u=Object.keys(e);n=new Array(u.length);for(let p=0,h=u.length;pe?Di(e)?$n(e):Eo(e.parent):null;var Ws=Ge(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Eo(e.parent),$root:e=>Eo(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>To(e),$forceUpdate:e=>e.f||(e.f=()=>{Do(e.update)}),$nextTick:e=>e.n||(e.n=_t.bind(e.proxy)),$watch:e=>kd.bind(e)});var wo=(e,t)=>e!==Ve&&!e.__isScriptSetup&&Re(e,t),Vd={get({_:e},t){if(t==="__v_skip")return!0;let{ctx:o,setupState:r,data:n,props:i,accessCache:a,type:u,appContext:p}=e;if(t[0]!=="$"){let f=a[t];if(f!==void 0)switch(f){case 1:return r[t];case 2:return n[t];case 4:return o[t];case 3:return i[t]}else{if(wo(r,t))return a[t]=1,r[t];if(n!==Ve&&Re(n,t))return a[t]=2,n[t];if(Re(i,t))return a[t]=3,i[t];if(o!==Ve&&Re(o,t))return a[t]=4,o[t];Co&&(a[t]=0)}}let h=Ws[t],v,g;if(h)return t==="$attrs"&&Qe(e.attrs,"get",""),h(e);if((v=u.__cssModules)&&(v=v[t]))return v;if(o!==Ve&&Re(o,t))return a[t]=4,o[t];if(g=p.config.globalProperties,Re(g,t))return g[t]},set({_:e},t,o){let{data:r,setupState:n,ctx:i}=e;return wo(n,t)?(n[t]=o,!0):r!==Ve&&Re(r,t)?(r[t]=o,!0):Re(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=o,!0)},has({_:{data:e,setupState:t,accessCache:o,ctx:r,appContext:n,props:i,type:a}},u){let p;return!!(o[u]||e!==Ve&&u[0]!=="$"&&Re(e,u)||wo(t,u)||Re(i,u)||Re(r,u)||Re(Ws,u)||Re(n.config.globalProperties,u)||(p=a.__cssModules)&&p[u])},defineProperty(e,t,o){return o.get!=null?e._.accessCache[t]=0:Re(o,"value")&&this.set(e,t,o.value,null),Reflect.defineProperty(e,t,o)}};function Vr(e){return _e(e)?e.reduce((t,o)=>(t[o]=null,t),{}):e}var Co=!0;function Pd(e){let t=To(e),o=e.proxy,r=e.ctx;Co=!1,t.beforeCreate&&Pr(t.beforeCreate,e,"bc");let{data:n,computed:i,methods:a,watch:u,provide:p,inject:h,created:v,beforeMount:g,mounted:f,beforeUpdate:w,updated:k,activated:b,deactivated:R,beforeDestroy:N,beforeUnmount:D,destroyed:I,unmounted:C,render:O,renderTracked:P,renderTriggered:ee,errorCaptured:J,serverPrefetch:K,expose:U,inheritAttrs:de,components:se,directives:ie,filters:ce}=t;if(h&&qd(h,r,null),a)for(let me in a){let ae=a[me];ke(ae)&&(r[me]=ae.bind(o))}if(n){let me=n.call(o,o);Oe(me)&&(e.data=Ue(me))}if(Co=!0,i)for(let me in i){let ae=i[me],A=ke(ae)?ae.bind(o,o):ke(ae.get)?ae.get.bind(o,o):rt,V=!ke(ae)&&ke(ae.set)?ae.set.bind(o):rt,j=tt({get:A,set:V});Object.defineProperty(r,me,{enumerable:!0,configurable:!0,get:()=>j.value,set:Z=>j.value=Z})}if(u)for(let me in u)ai(u[me],r,o,me);if(p){let me=ke(p)?p.call(o):p;Reflect.ownKeys(me).forEach(ae=>{ts(ae,me[ae])})}v&&Pr(v,e,"c");function he(me,ae){_e(ae)?ae.forEach(A=>me(A.bind(o))):ae&&me(ae.bind(o))}if(he(Sd,g),he(It,f),he(ni,w),he(oi,k),he(ei,b),he(ti,R),he(Od,J),he(Td,P),he(Rd,ee),he(ss,D),he(en,C),he(Dd,K),_e(U))if(U.length){let me=e.exposed||(e.exposed={});U.forEach(ae=>{Object.defineProperty(me,ae,{get:()=>o[ae],set:A=>o[ae]=A,enumerable:!0})})}else e.exposed||(e.exposed={});O&&e.render===rt&&(e.render=O),de!=null&&(e.inheritAttrs=de),se&&(e.components=se),ie&&(e.directives=ie),K&&Ro(e)}function qd(e,t,o=rt){_e(e)&&(e=No(e));for(let r in e){let n=e[r],i;Oe(n)?"default"in n?i=lt(n.from||r,n.default,!0):i=lt(n.from||r):i=lt(n),Je(i)?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>i.value,set:a=>i.value=a}):t[r]=i}}function Pr(e,t,o){yt(_e(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,o)}function ai(e,t,o,r){let n=r.includes(".")?Qr(o,r):()=>o[r];if(Le(e)){let i=t[e];ke(i)&&He(n,i)}else if(ke(e))He(n,e.bind(o));else if(Oe(e))if(_e(e))e.forEach(i=>ai(i,t,o,r));else{let i=ke(e.handler)?e.handler.bind(o):t[e.handler];ke(i)&&He(n,i,e)}}function To(e){let t=e.type,{mixins:o,extends:r}=t,{mixins:n,optionsCache:i,config:{optionMergeStrategies:a}}=e.appContext,u=i.get(t),p;return u?p=u:!n.length&&!o&&!r?p=t:(p={},n.length&&n.forEach(h=>Sn(p,h,a,!0)),Sn(p,t,a)),Oe(t)&&i.set(t,p),p}function Sn(e,t,o,r=!1){let{mixins:n,extends:i}=t;i&&Sn(e,i,o,!0),n&&n.forEach(a=>Sn(e,a,o,!0));for(let a in t)if(!(r&&a==="expose")){let u=Md[a]||o&&o[a];e[a]=u?u(e[a],t[a]):t[a]}return e}var Md={data:qr,props:Mr,emits:Mr,methods:Bs,computed:Bs,beforeCreate:st,created:st,beforeMount:st,mounted:st,beforeUpdate:st,updated:st,beforeDestroy:st,beforeUnmount:st,destroyed:st,unmounted:st,activated:st,deactivated:st,errorCaptured:st,serverPrefetch:st,components:Bs,directives:Bs,watch:Fd,provide:qr,inject:$d};function qr(e,t){return t?e?function(){return Ge(ke(e)?e.call(this,this):e,ke(t)?t.call(this,this):t)}:t:e}function $d(e,t){return Bs(No(e),No(t))}function No(e){if(_e(e)){let t={};for(let o=0;ot==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${Ke(t)}Modifiers`]||e[`${qt(t)}Modifiers`];function Hd(e,t,...o){if(e.isUnmounted)return;let r=e.vnode.props||Ve,n=o,i=t.startsWith("update:"),a=i&&zd(r,t.slice(7));a&&(a.trim&&(n=o.map(v=>Le(v)?v.trim():v)),a.number&&(n=n.map(eo)));let u,p=r[u=Rs(t)]||r[u=Rs(Ke(t))];!p&&i&&(p=r[u=Rs(qt(t))]),p&&yt(p,e,6,n);let h=r[u+"Once"];if(h){if(!e.emitted)e.emitted={};else if(e.emitted[u])return;e.emitted[u]=!0,yt(h,e,6,n)}}var Bd=new WeakMap;function di(e,t,o=!1){let r=o?Bd:t.emitsCache,n=r.get(e);if(n!==void 0)return n;let i=e.emits,a={},u=!1;if(!ke(e)){let p=h=>{let v=di(h,t,!0);v&&(u=!0,Ge(a,v))};!o&&t.mixins.length&&t.mixins.forEach(p),e.extends&&p(e.extends),e.mixins&&e.mixins.forEach(p)}return!i&&!u?(Oe(e)&&r.set(e,null),null):(_e(i)?i.forEach(p=>a[p]=null):Ge(a,i),Oe(e)&&r.set(e,a),a)}function qn(e,t){return!e||!us(t)?!1:(t=t.slice(2),t=t==="Once"?t:t.replace(/Once$/,""),Re(e,t[0].toLowerCase()+t.slice(1))||Re(e,qt(t))||Re(e,t))}function ko(e){let{type:t,vnode:o,proxy:r,withProxy:n,propsOptions:[i],slots:a,attrs:u,emit:p,render:h,renderCache:v,props:g,data:f,setupState:w,ctx:k,inheritAttrs:b}=e,R=Cn(e),N,D;try{if(o.shapeFlag&4){let O=n||r,P=O;N=At(h.call(P,O,v,g,w,f,k)),D=u}else{let O=t;N=At(O.length>1?O(g,{attrs:u,slots:a,emit:p}):O(g,null)),D=t.props?u:Gd(u)}}catch(O){es.length=0,Xs(O,e,1),N=Se(Ut)}let I=N,C;if(D&&b!==!1){let O=Object.keys(D),{shapeFlag:P}=I;O.length&&P&7&&(i&&O.some(cs)&&(D=jd(D,i)),I=bs(I,D,!1,!0))}if(o.dirs&&(I=bs(I,null,!1,!0),I.dirs=I.dirs?I.dirs.concat(o.dirs):o.dirs),o.transition){let O=An(I.type)&&Xr(I)||I;In(O,o.transition)}return N=I,Cn(R),N}var Gd=e=>{let t;for(let o in e)(o==="class"||o==="style"||us(o))&&((t||(t={}))[o]=e[o]);return t},jd=(e,t)=>{let o={};for(let r in e)(!cs(r)||!(r.slice(9)in t))&&(o[r]=e[r]);return o};function Wd(e,t,o){let{props:r,children:n,component:i}=e,{props:a,children:u,patchFlag:p}=t,h=i.emitsOptions;if(t.dirs||t.transition)return!0;if(o&&p>=0){if(p&1024)return!0;if(p&16)return r?$r(r,a,h):!!a;if(p&8){let v=t.dynamicProps;for(let g=0;gObject.create(ci),fi=e=>Object.getPrototypeOf(e)===ci;function Yd(e,t,o,r=!1){let n={},i=pi();e.propsDefaults=Object.create(null),mi(e,t,n,i);for(let a in e.propsOptions[0])a in n||(n[a]=void 0);o?e.props=r?n:Us(n):e.type.props?e.props=n:e.props=i,e.attrs=i}function xd(e,t,o,r){let{props:n,attrs:i,vnode:{patchFlag:a}}=e,u=Te(n),[p]=e.propsOptions,h=!1;if((r||a>0)&&!(a&16)){if(a&8){let v=e.vnode.dynamicProps;for(let g=0;g{p=!0;let[f,w]=hi(g,t,!0);Ge(a,f),w&&u.push(...w)};!o&&t.mixins.length&&t.mixins.forEach(v),e.extends&&v(e.extends),e.mixins&&e.mixins.forEach(v)}if(!i&&!p)return Oe(e)&&r.set(e,Kt),Kt;if(_e(i))for(let v=0;ve==="_"||e==="_ctx"||e==="$stable",Ao=e=>_e(e)?e.map(At):[At(e)],Qd=(e,t,o)=>{if(t._n)return t;let r=gd((...n)=>Ao(t(...n)),o);return r._c=!1,r},vi=(e,t,o)=>{let r=e._ctx;for(let n in e){if(Oo(n))continue;let i=e[n];if(ke(i))t[n]=Qd(n,i,r);else if(i!=null){let a=Ao(i);t[n]=()=>a}}},yi=(e,t)=>{let o=Ao(t);e.slots.default=()=>o},gi=(e,t,o)=>{for(let r in t)(o||!Oo(r))&&(e[r]=t[r])},Xd=(e,t,o)=>{let r=e.slots=pi();if(e.vnode.shapeFlag&32){let n=t._;n?(gi(r,t,o),o&&un(r,"_",n,!0)):vi(t,r)}else t&&yi(e,t)},Zd=(e,t,o)=>{let{vnode:r,slots:n}=e,i=!0,a=Ve;if(r.shapeFlag&32){let u=t._;u?o&&u===1?i=!1:gi(n,t,o):(i=!t.$stable,vi(t,n)),a=t}else t&&(yi(e,t),a={default:1});if(i)for(let u in n)!Oo(u)&&a[u]==null&&delete n[u]};function eu(){let e=[]}var at=ou;function bi(e){return tu(e)}function tu(e,t){eu();let o=Os();o.__VUE__=!0;let{insert:r,remove:n,patchProp:i,createElement:a,createText:u,createComment:p,setText:h,setElementText:v,parentNode:g,nextSibling:f,setScopeId:w=rt,insertStaticContent:k}=e,b=(_,S,q,z=null,G=null,M=null,Y=void 0,X=null,Q=!!S.dynamicChildren)=>{if(_===S)return;_&&!Hs(_,S)&&(z=ne(_),oe(_,G,M,!0),_=null),S.patchFlag===-2&&(Q=!1,S.dynamicChildren=null);let{type:B,ref:ue,shapeFlag:te}=S;switch(B){case Mn:R(_,S,q,z);break;case Ut:N(_,S,q,z);break;case Ks:_==null&&D(S,q,z,Y);break;case x:ie(_,S,q,z,G,M,Y,X,Q);break;default:te&1?P(_,S,q,z,G,M,Y,X,Q):te&6?ce(_,S,q,z,G,M,Y,X,Q):(te&64||te&128)&&B.process(_,S,q,z,G,M,Y,X,Q,fe)}ue!=null&&G?Gs(ue,_&&_.ref,M,S||_,!S):ue==null&&_&&_.ref!=null&&Gs(_.ref,null,M,_,!0)},R=(_,S,q,z)=>{if(_==null)r(S.el=u(S.children),q,z);else{let G=S.el=_.el;S.children!==_.children&&h(G,S.children)}},N=(_,S,q,z)=>{_==null?r(S.el=p(S.children||""),q,z):S.el=_.el},D=(_,S,q,z)=>{[_.el,_.anchor]=k(_.children,S,q,z,_.el,_.anchor)},I=(_,S,q,z)=>{if(S.children!==_.children){let G=f(_.anchor);O(_),[S.el,S.anchor]=k(S.children,q,G,z)}else S.el=_.el,S.anchor=_.anchor},C=({el:_,anchor:S},q,z)=>{let G;for(;_&&_!==S;)G=f(_),r(_,q,z),_=G;r(S,q,z)},O=({el:_,anchor:S})=>{let q;for(;_&&_!==S;)q=f(_),n(_),_=q;n(S)},P=(_,S,q,z,G,M,Y,X,Q)=>{if(S.type==="svg"?Y="svg":S.type==="math"&&(Y="mathml"),_==null)ee(S,q,z,G,M,Y,X,Q);else{let B=_.el&&_.el._isVueCE?_.el:null;try{B&&B._beginPatch(),U(_,S,G,M,Y,X,Q)}finally{B&&B._endPatch()}}},ee=(_,S,q,z,G,M,Y,X)=>{let Q,B,{props:ue,shapeFlag:te,transition:le,dirs:ve}=_;if(Q=_.el=a(_.type,M,ue&&ue.is,ue),te&8?v(Q,_.children):te&16&&K(_.children,Q,null,z,G,_o(_,M),Y,X),ve&&Xt(_,null,z,"created"),J(Q,_,_.scopeId,Y,z),ue){for(let Me in ue)Me!=="value"&&!ps(Me)&&i(Q,Me,null,ue[Me],M,z);"value"in ue&&i(Q,"value",null,ue.value,M),(B=ue.onVnodeBeforeMount)&&Tt(B,z,_)}ve&&Xt(_,null,z,"beforeMount");let De=su(G,le);De&&le.beforeEnter(Q),r(Q,S,q),((B=ue&&ue.onVnodeMounted)||De||ve)&&at(()=>{let Pe;try{B&&Tt(B,z,_),De&&le.enter(Q),ve&&Xt(_,null,z,"mounted")}finally{}},G)},J=(_,S,q,z,G)=>{if(q&&w(_,q),z)for(let M=0;M{for(let B=Q;B<_.length;B++){let ue=_[B]=X?Lt(_[B]):At(_[B]);b(null,ue,S,q,z,G,M,Y,X)}},U=(_,S,q,z,G,M,Y)=>{let X=S.el=_.el,{patchFlag:Q,dynamicChildren:B,dirs:ue}=S;Q|=_.patchFlag&16;let te=_.props||Ve,le=S.props||Ve,ve;if(q&&Zt(q,!1),(ve=le.onVnodeBeforeUpdate)&&Tt(ve,q,S,_),ue&&Xt(S,_,q,"beforeUpdate"),q&&Zt(q,!0),B&&(!_.dynamicChildren||_.dynamicChildren.length!==B.length)&&(Q=0,Y=!1,B=null),(te.innerHTML&&le.innerHTML==null||te.textContent&&le.textContent==null)&&v(X,""),B?de(_.dynamicChildren,B,X,q,z,_o(S,G),M):Y||A(_,S,X,null,q,z,_o(S,G),M,!1),Q>0){if(Q&16)se(X,te,le,q,G);else if(Q&2&&te.class!==le.class&&i(X,"class",null,le.class,G),Q&4&&i(X,"style",te.style,le.style,G),Q&8){let De=S.dynamicProps;for(let Me=0;Me{ve&&Tt(ve,q,S,_),ue&&Xt(S,_,q,"updated")},z)},de=(_,S,q,z,G,M,Y)=>{for(let X=0;X{if(S!==q){if(S!==Ve)for(let M in S)!ps(M)&&!(M in q)&&i(_,M,S[M],null,G,z);for(let M in q){if(ps(M))continue;let Y=q[M],X=S[M];Y!==X&&M!=="value"&&i(_,M,X,Y,G,z)}"value"in q&&i(_,"value",S.value,q.value,G)}},ie=(_,S,q,z,G,M,Y,X,Q)=>{let B=S.el=_?_.el:u(""),ue=S.anchor=_?_.anchor:u(""),{patchFlag:te,dynamicChildren:le,slotScopeIds:ve}=S;ve&&(X=X?X.concat(ve):ve),_==null?(r(B,q,z),r(ue,q,z),K(S.children||[],q,ue,G,M,Y,X,Q)):te>0&&te&64&&le&&_.dynamicChildren&&_.dynamicChildren.length===le.length?(de(_.dynamicChildren,le,q,G,M,Y,X),(S.key!=null||G&&S===G.subTree)&&wi(_,S,!0)):A(_,S,q,ue,G,M,Y,X,Q)},ce=(_,S,q,z,G,M,Y,X,Q)=>{S.slotScopeIds=X,_==null?S.shapeFlag&512?G.ctx.activate(S,q,z,Y,Q):we(S,q,z,G,M,Y,Q):he(_,S,Q)},we=(_,S,q,z,G,M,Y)=>{let X=_.component=uu(_,z,G);if(Vn(_)&&(X.ctx.renderer=fe),cu(X,!1,Y),X.asyncDep){if(G&&G.registerDep(X,me,Y),!_.el){let Q=X.subTree=Se(Ut);N(null,Q,S,q),_.placeholder=Q.el}}else me(X,_,S,q,G,M,Y)},he=(_,S,q)=>{let z=S.component=_.component;if(Wd(_,S,q))if(z.asyncDep&&!z.asyncResolved){ae(z,S,q);return}else z.next=S,z.update();else S.el=_.el,z.vnode=S},me=(_,S,q,z,G,M,Y)=>{let X=()=>{if(_.isMounted){let{next:te,bu:le,u:ve,parent:De,vnode:Me}=_;{let dt=ki(_);if(dt){te&&(te.el=Me.el,ae(_,te,Y)),dt.asyncDep.then(()=>{at(()=>{_.isUnmounted||B()},G)});return}}let Pe=te,je;Zt(_,!1),te?(te.el=Me.el,ae(_,te,Y)):te=Me,le&&Ts(le),(je=te.props&&te.props.onVnodeBeforeUpdate)&&Tt(je,De,te,Me),Zt(_,!0);let We=ko(_),bt=_.subTree;_.subTree=We,b(bt,We,g(bt.el),ne(bt),_,G,M),te.el=We.el,Pe===null&&Kd(_,We.el),ve&&at(ve,G),(je=te.props&&te.props.onVnodeUpdated)&&at(()=>Tt(je,De,te,Me),G)}else{let te,{el:le,props:ve}=S,{bm:De,m:Me,parent:Pe,root:je,type:We}=_,bt=js(S);if(Zt(_,!1),De&&Ts(De),!bt&&(te=ve&&ve.onVnodeBeforeMount)&&Tt(te,Pe,S),Zt(_,!0),le&&pe){let dt=()=>{_.subTree=ko(_),pe(le,_.subTree,_,G,null)};bt&&We.__asyncHydrate?We.__asyncHydrate(le,_,dt):dt()}else{je.ce&&je.ce._hasShadowRoot()&&je.ce._injectChildStyle(We,_.parent?_.parent.type:void 0);let dt=_.subTree=ko(_);b(null,dt,q,z,_,G,M),S.el=dt.el}if(Me&&at(Me,G),!bt&&(te=ve&&ve.onVnodeMounted)){let dt=S;at(()=>Tt(te,Pe,dt),G)}(S.shapeFlag&256||Pe&&js(Pe.vnode)&&Pe.vnode.shapeFlag&256)&&_.a&&at(_.a,G),_.isMounted=!0,S=q=z=null}};_.scope.on();let Q=_.effect=new hs(X);_.scope.off();let B=_.update=Q.run.bind(Q),ue=_.job=Q.runIfDirty.bind(Q);ue.i=_,ue.id=_.uid,Q.scheduler=()=>Do(ue),Zt(_,!0),B()},ae=(_,S,q)=>{S.component=_;let z=_.vnode.props;_.vnode=S,_.next=null,xd(_,S.props,z,q),Zd(_,S.children,q),Dt(),Rr(_),Rt()},A=(_,S,q,z,G,M,Y,X,Q=!1)=>{let B=_&&_.children,ue=_?_.shapeFlag:0,te=S.children,{patchFlag:le,shapeFlag:ve}=S;if(le>0){if(le&128){j(B,te,q,z,G,M,Y,X,Q);return}else if(le&256){V(B,te,q,z,G,M,Y,X,Q);return}}ve&8?(ue&16&&F(B,G,M),te!==B&&v(q,te)):ue&16?ve&16?j(B,te,q,z,G,M,Y,X,Q):F(B,G,M,!0):(ue&8&&v(q,""),ve&16&&K(te,q,z,G,M,Y,X,Q))},V=(_,S,q,z,G,M,Y,X,Q)=>{_=_||Kt,S=S||Kt;let B=_.length,ue=S.length,te=Math.min(B,ue),le;for(le=0;leue?F(_,G,M,!0,!1,te):K(S,q,z,G,M,Y,X,Q,te)},j=(_,S,q,z,G,M,Y,X,Q)=>{let B=0,ue=S.length,te=_.length-1,le=ue-1;for(;B<=te&&B<=le;){let ve=_[B],De=S[B]=Q?Lt(S[B]):At(S[B]);if(Hs(ve,De))b(ve,De,q,null,G,M,Y,X,Q);else break;B++}for(;B<=te&&B<=le;){let ve=_[te],De=S[le]=Q?Lt(S[le]):At(S[le]);if(Hs(ve,De))b(ve,De,q,null,G,M,Y,X,Q);else break;te--,le--}if(B>te){if(B<=le){let ve=le+1,De=vele)for(;B<=te;)oe(_[B],G,M,!0),B++;else{let ve=B,De=B,Me=new Map;for(B=De;B<=le;B++){let ut=S[B]=Q?Lt(S[B]):At(S[B]);ut.key!=null&&Me.set(ut.key,B)}let Pe,je=0,We=le-De+1,bt=!1,dt=0,Ns=new Array(We);for(B=0;B=We){oe(ut,G,M,!0);continue}let Et;if(ut.key!=null)Et=Me.get(ut.key);else for(Pe=De;Pe<=le;Pe++)if(Ns[Pe-De]===0&&Hs(ut,S[Pe])){Et=Pe;break}Et===void 0?oe(ut,G,M,!0):(Ns[Et-De]=B+1,Et>=dt?dt=Et:bt=!0,b(ut,S[Et],q,null,G,M,Y,X,Q),je++)}let Xo=bt?nu(Ns):Kt;for(Pe=Xo.length-1,B=We-1;B>=0;B--){let ut=De+B,Et=S[ut],Zo=S[ut+1],er=ut+1{let{el:M,type:Y,transition:X,children:Q,shapeFlag:B}=_;if(B&6){Z(_.component.subTree,S,q,z);return}if(B&128){_.suspense.move(S,q,z);return}if(B&64){Y.move(_,S,q,fe);return}if(Y===x){r(M,S,q);for(let te=0;teX.enter(M),G));else{let{leave:te,delayLeave:le,afterLeave:ve}=X,De=()=>{_.ctx.isUnmounted?n(M):r(M,S,q)},Me=()=>{let Pe=M._isLeaving||!!M[bo];M._isLeaving&&M[bo](!0),X.persisted&&!Pe?De():te(M,()=>{De(),ve&&ve()})};le?le(M,De,Me):Me()}else r(M,S,q)},oe=(_,S,q,z=!1,G=!1)=>{let{type:M,props:Y,ref:X,children:Q,dynamicChildren:B,shapeFlag:ue,patchFlag:te,dirs:le,cacheIndex:ve,memo:De}=_;if(te===-2&&(G=!1),X!=null&&(Dt(),Gs(X,null,q,_,!0),Rt()),ve!=null&&(S.renderCache[ve]=void 0),ue&256){S.ctx.deactivate(_);return}let Me=ue&1&&le,Pe=!js(_),je;if(Pe&&(je=Y&&Y.onVnodeBeforeUnmount)&&Tt(je,S,_),ue&6)Fe(_.component,q,z);else{if(ue&128){_.suspense.unmount(q,z);return}Me&&Xt(_,null,S,"beforeUnmount"),ue&64?_.type.remove(_,S,q,fe,z):B&&!B.hasOnce&&(M!==x||te>0&&te&64)?F(B,S,q,!1,!0):(M===x&&te&384||!G&&ue&16)&&F(Q,S,q),z&&qe(_)}let We=De!=null&&ve==null;(Pe&&(je=Y&&Y.onVnodeUnmounted)||Me||We)&&at(()=>{je&&Tt(je,S,_),Me&&Xt(_,null,S,"unmounted"),We&&(_.el=null)},q)},qe=_=>{let{type:S,el:q,anchor:z,transition:G}=_;if(S===x){ze(q,z);return}if(S===Ks){O(_);return}let M=()=>{n(q),G&&!G.persisted&&G.afterLeave&&G.afterLeave()};if(_.shapeFlag&1&&G&&!G.persisted){let{leave:Y,delayLeave:X}=G,Q=()=>Y(q,M);X?X(_.el,M,Q):Q()}else M()},ze=(_,S)=>{let q;for(;_!==S;)q=f(_),n(_),_=q;n(S)},Fe=(_,S,q)=>{let{bum:z,scope:G,job:M,subTree:Y,um:X,m:Q,a:B}=_;Lr(Q),Lr(B),z&&Ts(z),G.stop(),M&&(M.flags|=8,oe(Y,_,S,q)),X&&at(X,S),at(()=>{_.isUnmounted=!0},S)},F=(_,S,q,z=!1,G=!1,M=0)=>{for(let Y=M;Y<_.length;Y++)oe(_[Y],S,q,z,G)},ne=_=>{if(_.shapeFlag&6)return ne(_.component.subTree);if(_.shapeFlag&128)return _.suspense.next();let S=f(_.anchor||_.el),q=S&&S[_d];return q?f(q):S},L=!1,W=(_,S,q)=>{let z;_==null?S._vnode&&(oe(S._vnode,null,null,!0),z=S._vnode.component):b(S._vnode||null,_,S,null,null,null,q),S._vnode=_,L||(L=!0,Rr(z),Kr(),L=!1)},fe={p:b,um:oe,m:Z,r:qe,mt:we,mc:K,pc:A,pbc:de,n:ne,o:e},Ce,pe;return t&&([Ce,pe]=t(fe)),{render:W,hydrate:Ce,createApp:Ud(W,Ce)}}function _o({type:e,props:t},o){return o==="svg"&&e==="foreignObject"||o==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:o}function Zt({effect:e,job:t},o){o?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function su(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function wi(e,t,o=!1){let r=e.children,n=t.children;if(_e(r)&&_e(n))for(let i=0;i>1,e[o[u]]0&&(t[r]=o[i-1]),o[i]=r)}}for(i=o.length,a=o[i-1];i-- >0;)o[i]=a,a=t[a];return o}function ki(e){let t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:ki(t)}function Lr(e){if(e)for(let t=0;te.__isSuspense;function ou(e,t){t&&t.pendingBranch?_e(e)?t.effects.push(...e):t.effects.push(e):Wr(e)}var x=Symbol.for("v-fgt"),Mn=Symbol.for("v-txt"),Ut=Symbol.for("v-cmt"),Ks=Symbol.for("v-stc"),es=[],ft=null;function l(e=!1){es.push(ft=e?null:[])}function Ci(){es.pop(),ft=es[es.length-1]||null}var xs=1;function Dn(e,t=!1){xs+=e,e<0&&ft&&t&&(ft.hasOnce=!0)}function Ni(e){return e.dynamicChildren=xs>0?ft||Kt:null,Ci(),xs>0&&ft&&ft.push(e),e}function d(e,t,o,r,n,i){return Ni(s(e,t,o,r,n,i,!0))}function ks(e,t,o,r,n){return Ni(Se(e,t,o,r,n,!0))}function Rn(e){return e?e.__v_isVNode===!0:!1}function Hs(e,t){return e.type===t.type&&e.key===t.key}var Si=({key:e})=>e??null,_n=({ref:e,ref_key:t,ref_for:o})=>(typeof e=="number"&&(e=""+e),e!=null?Le(e)||Je(e)||ke(e)?{i:pt,r:e,k:t,f:!!o}:e:null);function s(e,t=null,o=null,r=0,n=null,i=e===x?0:1,a=!1,u=!1){let p={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Si(t),ref:t&&_n(t),scopeId:xr,slotScopeIds:null,children:o,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:r,dynamicProps:n,dynamicChildren:null,appContext:null,ctx:pt};return u?(Tn(p,o),i&128&&e.normalize(p)):o&&(p.shapeFlag|=Le(o)?8:16),xs>0&&!a&&ft&&(p.patchFlag>0||i&6)&&p.patchFlag!==32&&ft.push(p),p}var Se=ru;function ru(e,t=null,o=null,r=0,n=null,i=!1){if((!e||e===Id)&&(e=Ut),Rn(e)){let u=bs(e,t,!0);return o&&Tn(u,o),xs>0&&!i&&ft&&(u.shapeFlag&6?ft[ft.indexOf(e)]=u:ft.push(u)),u.patchFlag=-2,u}if(vu(e)&&(e=e.__vccOpts),t){t=iu(t);let{class:u,style:p}=t;u&&!Le(u)&&(t.class=T(u)),Oe(p)&&(zs(p)&&!_e(p)&&(p=Ge({},p)),t.style=Ae(p))}let a=Le(e)?1:Ei(e)?128:An(e)?64:Oe(e)?4:ke(e)?2:0;return s(e,t,o,r,n,a,i,!0)}function iu(e){return e?zs(e)||fi(e)?Ge({},e):e:null}function bs(e,t,o=!1,r=!1){let{props:n,ref:i,patchFlag:a,children:u,transition:p}=e,h=t?au(n||{},t):n,v={__v_isVNode:!0,__v_skip:!0,type:e.type,props:h,key:h&&Si(h),ref:t&&t.ref?o&&i?_e(i)?i.concat(_n(t)):[i,_n(t)]:_n(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:u,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==x?a===-1?16:a|16:a,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:p,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&bs(e.ssContent),ssFallback:e.ssFallback&&bs(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return p&&r&&In(v,p.clone(v)),v}function y(e=" ",t=0){return Se(Mn,null,e,t)}function Ee(e,t){let o=Se(Ks,null,e);return o.staticCount=t,o}function m(e="",t=!1){return t?(l(),ks(Ut,null,e)):Se(Ut,null,e)}function At(e){return e==null||typeof e=="boolean"?Se(Ut):_e(e)?Se(x,null,e.slice()):Rn(e)?Lt(e):Se(Mn,null,String(e))}function Lt(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:bs(e)}function Tn(e,t){let o=0,{shapeFlag:r}=e;if(t==null)t=null;else if(_e(t))o=16;else if(typeof t=="object")if(r&65){let n=t.default;n&&(n._c&&(n._d=!1),Tn(e,n()),n._c&&(n._d=!0));return}else{o=32;let n=t._;!n&&!fi(t)?t._ctx=pt:n===3&&pt&&(pt.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else if(ke(t)){if(r&65){Tn(e,{default:t});return}t={default:t,_ctx:pt},o=32}else t=String(t),r&64?(o=16,t=[y(t)]):o=8;e.children=t,e.shapeFlag|=o}function au(...e){let t={};for(let o=0;oZe||pt,On,Js;{let e=Os(),t=(o,r)=>{let n;return(n=e[o])||(n=e[o]=[]),n.push(r),i=>{n.length>1?n.forEach(a=>a(i)):n[0](i)}};On=t("__VUE_INSTANCE_SETTERS__",o=>Ze=o),Js=t("__VUE_SSR_SETTERS__",o=>ws=o)}var tn=e=>{let t=Ze;return On(e),e.scope.on(),()=>{e.scope.off(),On(t)}},Ur=()=>{Ze&&Ze.scope.off(),On(null)};function Di(e){return e.vnode.shapeFlag&4}var ws=!1;function cu(e,t=!1,o=!1){t&&Js(t);let{props:r,children:n}=e.vnode,i=Di(e);Yd(e,r,i,t),Xd(e,n,o||t);let a=i?pu(e,t):void 0;return t&&Js(!1),a}function pu(e,t){let o=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Vd);let{setup:r}=o;if(r){Dt();let n=e.setupContext=r.length>1?mu(e):null,i=tn(e),a=Qs(r,e,0,[e.props,n]),u=Xn(a);if(Rt(),i(),(u||e.sp)&&!js(e)&&Ro(e),u){if(a.then(Ur,Ur),t)return a.then(p=>{Js(!0);try{zr(e,p,t)}finally{Js(!1)}}).catch(p=>{Xs(p,e,0)});e.asyncDep=a}else zr(e,a,t)}else Ri(e,t)}function zr(e,t,o){ke(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Oe(t)&&(e.setupState=wn(t)),Ri(e,o)}var Hr,Br;function Ri(e,t,o){let r=e.type;if(!e.render){if(!t&&Hr&&!r.render){let n=r.template||To(e).template;if(n){let{isCustomElement:i,compilerOptions:a}=e.appContext.config,{delimiters:u,compilerOptions:p}=r,h=Ge(Ge({isCustomElement:i,delimiters:u},a),p);r.render=Hr(n,h)}}e.render=r.render||rt,Br&&Br(e)}{let n=tn(e);Dt();try{Pd(e)}finally{Rt(),n()}}}var fu={get(e,t){return Qe(e,"get",""),e[t]}};function mu(e){let t=o=>{e.exposed=o||{}};return{attrs:new Proxy(e.attrs,fu),slots:e.slots,emit:e.emit,expose:t}}function $n(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(wn(go(e.exposed)),{get(t,o){if(o in t)return t[o];if(o in Ws)return Ws[o](e)},has(t,o){return o in t||o in Ws}})):e.proxy}function hu(e,t=!0){return ke(e)?e.displayName||e.name:e.name||t&&e.__name}function vu(e){return ke(e)&&"__vccOpts"in e}var tt=(e,t)=>Nr(e,t,ws);function Ne(e,t,o){try{Dn(-1);let r=arguments.length;return r===2?Oe(t)&&!_e(t)?Rn(t)?Se(e,null,[t]):Se(e,t):Se(e,null,t):(r>3?o=Array.prototype.slice.call(arguments,2):r===3&&Rn(o)&&(o=[o]),Se(e,t,o))}finally{Dn(1)}}var yu="3.5.42";var qo,Ti=typeof window<"u"&&window.trustedTypes;if(Ti)try{qo=Ti.createPolicy("vue",{createHTML:e=>e})}catch{}var Fi=qo?e=>qo.createHTML(e):e=>e,gu="http://www.w3.org/2000/svg",bu="http://www.w3.org/1998/Math/MathML",Ht=typeof document<"u"?document:null,Oi=Ht&&Ht.createElement("template"),wu={insert:(e,t,o)=>{t.insertBefore(e,o||null)},remove:e=>{let t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,o,r)=>{let n=t==="svg"?Ht.createElementNS(gu,e):t==="mathml"?Ht.createElementNS(bu,e):o?Ht.createElement(e,{is:o}):Ht.createElement(e);return e==="select"&&r&&r.multiple!=null&&n.setAttribute("multiple",r.multiple),n},createText:e=>Ht.createTextNode(e),createComment:e=>Ht.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Ht.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,o,r,n,i){let a=o?o.previousSibling:t.lastChild;if(n&&(n===i||n.nextSibling))for(;t.insertBefore(n.cloneNode(!0),o),!(n===i||!(n=n.nextSibling)););else{Oi.innerHTML=Fi(r==="svg"?`${e}`:r==="mathml"?`${e}`:e);let u=Oi.content;if(r==="svg"||r==="mathml"){let p=u.firstChild;for(;p.firstChild;)u.appendChild(p.firstChild);u.removeChild(p)}t.insertBefore(u,o)}return[a?a.nextSibling:t.firstChild,o?o.previousSibling:t.lastChild]}};var ku=Symbol("_vtc");function _u(e,t,o){let r=e[ku];r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):o?e.setAttribute("class",t):e.className=t}var Ln=Symbol("_vod"),Li=Symbol("_vsh"),H={name:"show",beforeMount(e,{value:t},{transition:o}){e[Ln]=e.style.display==="none"?"":e.style.display,o&&t?o.beforeEnter(e):sn(e,t)},mounted(e,{value:t},{transition:o}){o&&t&&o.enter(e)},updated(e,{value:t,oldValue:o},{transition:r}){!t!=!o&&(r?t?(r.beforeEnter(e),sn(e,!0),r.enter(e)):r.leave(e,()=>{sn(e,!1)}):sn(e,t))},beforeUnmount(e,{value:t}){sn(e,t)}};function sn(e,t){e.style.display=t?e[Ln]:"none",e[Li]=!t}var Eu=Symbol("");var Cu=/(?:^|;)\s*display\s*:/;function Nu(e,t,o){let r=e.style,n=Le(o),i=!1;if(o&&!n){if(t)if(Le(t))for(let a of t.split(";")){let u=a.slice(0,a.indexOf(":")).trim();o[u]==null&&nn(r,u,"")}else for(let a in t)o[a]==null&&nn(r,a,"");for(let a in o){a==="display"&&(i=!0);let u=o[a];u!=null?Du(e,a,!Le(t)&&t?t[a]:void 0,u)||nn(r,a,u):nn(r,a,"")}}else if(n){if(t!==o){let a=r[Eu];a&&(o+=";"+a),r.cssText=o,i=Cu.test(o)}}else t&&e.removeAttribute("style");Ln in e&&(e[Ln]=i?r.display:"",e[Li]&&(r.display="none"))}var Fn=/\s*!important$/;function nn(e,t,o){if(_e(o))o.forEach(r=>nn(e,t,r));else if(o==null&&(o=""),t.startsWith("--"))Fn.test(o)?e.setProperty(t,o.replace(Fn,""),"important"):e.setProperty(t,o);else{let r=Su(e,t);Fn.test(o)?e.setProperty(qt(r),o.replace(Fn,""),"important"):e[r]=o}}var Ai=["Webkit","Moz","ms"],Vo={};function Su(e,t){let o=Vo[t];if(o)return o;let r=Ke(t);if(r!=="filter"&&r in e)return Vo[t]=r;r=Yt(r);for(let n=0;nPo||(Pu.then(()=>Po=0),Po=Date.now());function Mu(e,t){let o=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=o.attached)return;let n=o.value;if(_e(n)){let i=r.stopImmediatePropagation;r.stopImmediatePropagation=()=>{i.call(r),r._stopped=!0};let a=n.slice(),u=[r];for(let p=0;pe.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,$u=(e,t,o,r,n,i)=>{let a=n==="svg";t==="class"?_u(e,r,a):t==="style"?Nu(e,o,r):us(t)?cs(t)||Ou(e,t,o,r,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Fu(e,t,r,a))?(Pi(e,t,r),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Vi(e,t,r,a,i,t!=="value")):e._isVueCE&&(Lu(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!Le(r)))?Pi(e,Ke(t),r,i,t):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),Vi(e,t,r,a))};function Fu(e,t,o,r){if(r)return!!(t==="innerHTML"||t==="textContent"||t in e&&Mi(t)&&ke(o));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="sandbox"&&e.tagName==="IFRAME"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){let n=e.tagName;if(n==="IMG"||n==="VIDEO"||n==="CANVAS"||n==="SOURCE")return!1}return Mi(t)&&Le(o)?!1:t in e}function Lu(e,t){let o=e._def.props;if(!o)return!1;let r=Ke(t);return Array.isArray(o)?o.some(n=>Ke(n)===r):Object.keys(o).some(n=>Ke(n)===r)}var Uu=["ctrl","shift","alt","meta"],zu={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>Uu.some(o=>e[`${o}Key`]&&!t.includes(o))},be=(e,t)=>{if(!e)return e;let o=e._withMods||(e._withMods={}),r=t.join(".");return o[r]||(o[r]=((n,...i)=>{for(let a=0;a{let t=Bu().createApp(...e),{mount:o}=t;return t.mount=r=>{let n=ju(r);if(!n)return;let i=t._component;!ke(i)&&!i.render&&!i.template&&(i.template=n.innerHTML),n.nodeType===1&&(n.textContent="");let a=o(n,!1,Gu(n));return n instanceof Element&&(n.removeAttribute("v-cloak"),n.setAttribute("data-v-app","")),a},t});function Gu(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function ju(e){return Le(e)?document.querySelector(e):e}var rs=typeof document<"u";function Hi(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function Wu(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&Hi(e.default)}var Ie=Object.assign;function Un(e,t){let o={};for(let r in t){let n=t[r];o[r]=gt(n)?n.map(e):e(n)}return o}var Es=()=>{},gt=Array.isArray;function Fo(e,t){let o={};for(let r in e)o[r]=r in t?t[r]:e[r];return o}var Bi=/#/g,Ku=/&/g,Yu=/\//g,xu=/=/g,Ju=/\?/g,Gi=/\+/g,Qu=/%5B/g,Xu=/%5D/g,ji=/%5E/g,Zu=/%60/g,Wi=/%7B/g,ec=/%7C/g,Ki=/%7D/g,tc=/%20/g;function Lo(e){return e==null?"":encodeURI(""+e).replace(ec,"|").replace(Qu,"[").replace(Xu,"]")}function Yi(e){return Lo(e).replace(Wi,"{").replace(Ki,"}").replace(ji,"^")}function Mo(e){return Lo(e).replace(Gi,"%2B").replace(tc,"+").replace(Bi,"%23").replace(Ku,"%26").replace(Zu,"`").replace(Wi,"{").replace(Ki,"}").replace(ji,"^")}function sc(e){return Mo(e).replace(xu,"%3D")}function nc(e){return Lo(e).replace(Bi,"%23").replace(Ju,"%3F")}function xi(e){return nc(e).replace(Yu,"%2F")}function _s(e){if(e==null)return null;try{return decodeURIComponent(""+e)}catch{}return""+e}var oc=/\/$/,rc=e=>e.replace(oc,"");function zn(e,t,o="/"){let r,n={},i="",a="",u=t.indexOf("#"),p=t.indexOf("?");return p=u>=0&&p>u?-1:p,p>=0&&(r=t.slice(0,p),i=t.slice(p,u>0?u:t.length),n=e(i.slice(1))),u>=0&&(r=r||t.slice(0,u),a=t.slice(u,t.length)),r=ac(r??t,o),{fullPath:r+i+a,path:r,query:n,hash:_s(a)}}function Ji(e,t){let o=t.query?e(t.query):"";return t.path+(o&&"?")+o+(t.hash||"")}function Uo(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function Qi(e,t,o){let r=t.matched.length-1,n=o.matched.length-1;return r>-1&&r===n&&ns(t.matched[r],o.matched[n])&&zo(t.params,o.params)&&e(t.query)===e(o.query)&&t.hash===o.hash}function ns(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function zo(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var o in e)if(!ic(e[o],t[o]))return!1;return!0}function ic(e,t){return gt(e)?zi(e,t):gt(t)?zi(t,e):e?.valueOf()===t?.valueOf()}function zi(e,t){return gt(t)?e.length===t.length&&e.every((o,r)=>o===t[r]):e.length===1&&e[0]===t}function ac(e,t){if(e.startsWith("/"))return e;if(!e)return t;let o=t.split("/"),r=e.split("/"),n=r[r.length-1];(n===".."||n===".")&&r.push("");let i=o.length-1,a,u;for(a=0;a1&&i--;else break;return o.slice(0,i).join("/")+"/"+r.slice(a).join("/")}var Gt={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},Hn=(function(e){return e.pop="pop",e.push="push",e})({}),Bn=(function(e){return e.back="back",e.forward="forward",e.unknown="",e})({});function Xi(e){if(!e)if(rs){let t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),rc(e)}var lc=/^[^#]+#/;function Zi(e,t){return e.replace(lc,"#")+t}function dc(e,t){let o=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-o.left-(t.left||0),top:r.top-o.top-(t.top||0)}}var on=()=>({left:window.scrollX,top:window.scrollY});function ea(e){let t;if("el"in e){let o=e.el,r=typeof o=="string"&&o.startsWith("#"),n=typeof o=="string"?r?document.getElementById(o.slice(1)):document.querySelector(o):o;if(!n)return;t=dc(n,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function Ho(e,t){return(history.state?history.state.position-t:-1)+e}var $o=new Map;function ta(e,t){$o.set(e,t)}function sa(e){let t=$o.get(e);return $o.delete(e),t}function uc(e){return typeof e=="string"||e&&typeof e=="object"}function Bo(e){return typeof e=="string"||typeof e=="symbol"}var Be=(function(e){return e[e.MATCHER_NOT_FOUND=1]="MATCHER_NOT_FOUND",e[e.NAVIGATION_GUARD_REDIRECT=2]="NAVIGATION_GUARD_REDIRECT",e[e.NAVIGATION_ABORTED=4]="NAVIGATION_ABORTED",e[e.NAVIGATION_CANCELLED=8]="NAVIGATION_CANCELLED",e[e.NAVIGATION_DUPLICATED=16]="NAVIGATION_DUPLICATED",e})({}),na=Symbol("");var Gq={[Be.MATCHER_NOT_FOUND]({location:e,currentLocation:t}){return`No match for ${JSON.stringify(e)}${t?` while being at -`+JSON.stringify(t):""}`},[He.NAVIGATION_GUARD_REDIRECT]({from:e,to:t}){return`Redirected from "${e.fullPath}" to "${sc(t)}" via a navigation guard.`},[He.NAVIGATION_ABORTED]({from:e,to:t}){return`Navigation aborted from "${e.fullPath}" to "${t.fullPath}" via a navigation guard.`},[He.NAVIGATION_CANCELLED]({from:e,to:t}){return`Navigation cancelled from "${e.fullPath}" to "${t.fullPath}" with a new navigation.`},[He.NAVIGATION_DUPLICATED]({from:e,to:t}){return`Avoided redundant navigation to current location: "${e.fullPath}".`}};function ss(e,t){return Ae(new Error,{type:e,[Ji]:!0},t)}function It(e,t){return e instanceof Error&&Ji in e&&(t==null||!!(e.type&t))}var tc=["params","query","hash"];function sc(e){if(typeof e=="string")return e;if(e.path!=null)return e.path;let t={};for(let o of tc)o in e&&(t[o]=e[o]);return JSON.stringify(t,null,2)}function Qi(e){let t={};if(e===""||e==="?")return t;let o=(e[0]==="?"?e.slice(1):e).split("&");for(let r=0;rn&&Ao(n)):[r&&Ao(r)]).forEach(n=>{n!==void 0&&(t+=(t.length?"&":"")+o,n!=null&&(t+="="+n))})}return t}function Xi(e){let t={};for(let o in e){let r=e[o];r!==void 0&&(t[o]=yt(r)?r.map(n=>n==null?null:""+n):r==null?r:""+r)}return t}var Zi=Symbol(""),Uo=Symbol(""),Ln=Symbol(""),Un=Symbol(""),zn=Symbol("");function ks(){let e=[];function t(r){return e.push(r),()=>{let n=e.indexOf(r);n>-1&&e.splice(n,1)}}function o(){e=[]}return{add:t,list:()=>e.slice(),reset:o}}function Ht(e,t,o,r,n,i=a=>a()){let a=r&&(r.enterCallbacks[n]=r.enterCallbacks[n]||[]);return()=>new Promise((u,p)=>{let h=f=>{f===!1?p(ss(He.NAVIGATION_ABORTED,{from:o,to:t})):f instanceof Error?p(f):ec(f)?p(ss(He.NAVIGATION_GUARD_REDIRECT,{from:t,to:f})):(a&&r.enterCallbacks[n]===a&&typeof f=="function"&&a.push(f),u())},v=i(()=>e.call(r&&r.instances[n],t,o,h)),g=Promise.resolve(v);e.length<3&&(g=g.then(h)),g.catch(f=>p(f))})}function Hn(e,t,o,r,n=i=>i()){let i=[];for(let a of e)for(let u in a.components){let p=a.components[u];if(!(t!=="beforeRouteEnter"&&!a.instances[u]))if(qi(p)){let h=(p.__vccOpts||p)[t];h&&i.push(Ht(h,o,r,a,u,n))}else{let h=p();i.push(()=>h.then(v=>{if(!v)throw new Error(`Couldn't resolve component "${u}" at "${a.path}"`);let g=Mu(v)?v.default:v;a.mods[u]=v,a.components[u]=g;let f=(g.__vccOpts||g)[t];return f&&Ht(f,o,r,a,u,n)()}))}}return i}function ea(e,t){let o=[],r=[],n=[],i=Math.max(t.matched.length,e.matched.length);for(let a=0;ats(h,u))?r.push(u):o.push(u));let p=e.matched[a];p&&(t.matched.find(h=>ts(h,p))||n.push(p))}return[o,r,n]}var nc=()=>location.protocol+"//"+location.host;function ca(e,t){let{pathname:o,search:r,hash:n}=t,i=e.indexOf("#");if(i>-1){let a=n.includes(e.slice(i))?e.slice(i).length:1,u=n.slice(a);return u[0]!=="/"&&(u="/"+u),qo(u,"")}return qo(o,e)+r+n}function oc(e,t,o,r){let n=[],i=[],a=null,u=({state:f})=>{let b=ca(e,location),_=o.value,k=t.value,R=0;if(f){if(o.value=b,t.value=f,a&&a===_){a=null;return}R=k?f.position-k.position:0}else r(b);n.forEach(S=>{S(o.value,_,{delta:R,type:$n.pop,direction:R?R>0?Fn.forward:Fn.back:Fn.unknown})})};function p(){a=o.value}function h(f){n.push(f);let b=()=>{let _=n.indexOf(f);_>-1&&n.splice(_,1)};return i.push(b),b}function v(){if(document.visibilityState==="hidden"){let{history:f}=window;if(!f.state)return;f.replaceState(Ae({},f.state,{scroll:Zs()}),"")}}function g(){for(let f of i)f();i=[],window.removeEventListener("popstate",u),window.removeEventListener("pagehide",v),document.removeEventListener("visibilitychange",v)}return window.addEventListener("popstate",u),window.addEventListener("pagehide",v),document.addEventListener("visibilitychange",v),{pauseListeners:p,listen:h,destroy:g}}function ta(e,t,o,r=!1,n=!1){return{back:e,current:t,forward:o,replaced:r,position:window.history.length,scroll:n?Zs():null}}function rc(e){let{history:t,location:o}=window,r={value:ca(e,o)},n={value:t.state};n.value||i(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function i(p,h,v){let g=e.indexOf("#"),f=g>-1?(o.host&&document.querySelector("base")?e:e.slice(g))+p:nc()+e+p;try{t[v?"replaceState":"pushState"](h,"",f),n.value=h}catch(b){console.error(b),o[v?"replace":"assign"](f)}}function a(p,h){i(p,Ae({},t.state,ta(n.value.back,p,n.value.forward,!0),h,{position:n.value.position}),!0),r.value=p}function u(p,h){let v=Ae({},n.value,t.state,{forward:p,scroll:Zs()});i(v.current,v,!0),i(p,Ae({},ta(r.value,p,null),{position:v.position+1},h),!1),r.value=p}return{location:r,state:n,push:u,replace:a}}function pa(e){e=ji(e);let t=rc(e),o=oc(e,t.state,t.location,t.replace);function r(i,a=!0){a||o.pauseListeners(),history.go(i)}let n=Ae({location:"",base:e,go:r,createHref:Wi.bind(null,e)},t,o);return Object.defineProperty(n,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(n,"state",{enumerable:!0,get:()=>t.state.value}),n}var os=(function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.Group=2]="Group",e})({}),Ye=(function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.ParamRegExp=2]="ParamRegExp",e[e.ParamRegExpEnd=3]="ParamRegExpEnd",e[e.EscapeNext=4]="EscapeNext",e})(Ye||{}),ic={type:os.Static,value:""},ac=/[a-zA-Z0-9_]/;function lc(e){if(!e)return[[]];if(e==="/")return[[ic]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(b){throw new Error(`ERR (${o})/"${h}": ${b}`)}let o=Ye.Static,r=o,n=[],i;function a(){i&&n.push(i),i=[]}let u=0,p,h="",v="";function g(){h&&(o===Ye.Static?i.push({type:os.Static,value:h}):o===Ye.Param||o===Ye.ParamRegExp||o===Ye.ParamRegExpEnd?(i.length>1&&(p==="*"||p==="+")&&t(`A repeatable param (${h}) must be alone in its segment. eg: '/:ids+.`),i.push({type:os.Param,value:h,regexp:v,repeatable:p==="*"||p==="+",optional:p==="*"||p==="?"})):t("Invalid state to consume buffer"),h="")}function f(){h+=p}for(;ut.length?t.length===1&&t[0]===st.Static+st.Segment?1:-1:0}function fa(e,t){let o=0,r=e.score,n=t.score;for(;o0&&t[t.length-1]<0}var fc={strict:!1,end:!0,sensitive:!1};function mc(e,t,o){let r=cc(lc(e.path),o),n=Ae(r,{record:e,parent:t,children:[],alias:[]});return t&&!n.record.aliasOf==!t.record.aliasOf&&t.children.push(n),n}function hc(e,t){let o=[],r=new Map;t=Vo(fc,t);function n(g){return r.get(g)}function i(g,f,b){let _=!b,k=ra(g);k.aliasOf=b&&b.record;let R=Vo(t,g),S=[k];if("alias"in g){let C=typeof g.alias=="string"?[g.alias]:g.alias;for(let A of C)S.push(ra(Ae({},k,{components:b?b.record.components:k.components,path:A,aliasOf:b?b.record:k})))}let D,I;for(let C of S){let{path:A}=C;if(f&&A[0]!=="/"){let q=f.record.path,ee=q[q.length-1]==="/"?"":"/";C.path=f.record.path+(A&&ee+A)}if(D=mc(C,f,R),b?b.alias.push(D):(I=I||D,I!==D&&I.alias.push(D),_&&g.name&&!ia(D)&&a(g.name)),ma(D)&&p(D),k.children){let q=k.children;for(let ee=0;ee{a(I)}:ws}function a(g){if(Fo(g)){let f=r.get(g);f&&(r.delete(g),o.splice(o.indexOf(f),1),f.children.forEach(a),f.alias.forEach(a))}else{let f=o.indexOf(g);f>-1&&(o.splice(f,1),g.record.name&&r.delete(g.record.name),g.children.forEach(a),g.alias.forEach(a))}}function u(){return o}function p(g){let f=gc(g,o);o.splice(f,0,g),g.record.name&&!ia(g)&&r.set(g.record.name,g)}function h(g,f){let b,_={},k,R;if("name"in g&&g.name){if(b=r.get(g.name),!b)throw ss(He.MATCHER_NOT_FOUND,{location:g});R=b.record.name,_=Ae(oa(f.params,b.keys.filter(I=>!I.optional).concat(b.parent?b.parent.keys.filter(I=>I.optional):[]).map(I=>I.name)),g.params&&oa(g.params,b.keys.map(I=>I.name))),k=b.stringify(_)}else if(g.path!=null)k=g.path,b=o.find(I=>I.re.test(k)),b&&(_=b.parse(k),R=b.record.name);else{if(b=f.name?r.get(f.name):o.find(I=>I.re.test(f.path)),!b)throw ss(He.MATCHER_NOT_FOUND,{location:g,currentLocation:f});R=b.record.name,_=Ae({},f.params,g.params),k=b.stringify(_)}let S=[],D=b;for(;D;)S.unshift(D.record),D=D.parent;return{name:R,path:k,params:_,matched:S,meta:yc(S)}}e.forEach(g=>i(g));function v(){o.length=0,r.clear()}return{addRoute:i,resolve:h,removeRoute:a,clearRoutes:v,getRoutes:u,getRecordMatcher:n}}function oa(e,t){let o={};for(let r of t)r in e&&(o[r]=e[r]);return o}function ra(e){let t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:vc(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function vc(e){let t={},o=e.props||!1;if("component"in e)t.default=o;else for(let r in e.components)t[r]=typeof o=="object"?o[r]:o;return t}function ia(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function yc(e){return e.reduce((t,o)=>Ae(t,o.meta),{})}function gc(e,t){let o=0,r=t.length;for(;o!==r;){let i=o+r>>1;fa(e,t[i])<0?r=i:o=i+1}let n=bc(e);return n&&(r=t.lastIndexOf(n,r-1)),r}function bc(e){let t=e;for(;t=t.parent;)if(ma(t)&&fa(e,t)===0)return t}function ma({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function aa(e){let t=at(Ln),o=at(Un),r=!1,n=null,i=Xe(()=>{let v=$t(e.to);return t.resolve(v)}),a=Xe(()=>{let{matched:v}=i.value,{length:g}=v,f=v[g-1],b=o.matched;if(!f||!b.length)return-1;let _=b.findIndex(ts.bind(null,f));if(_>-1)return _;let k=la(v[g-2]);return g>1&&la(f)===k&&b[b.length-1].path!==k?b.findIndex(ts.bind(null,v[g-2])):_}),u=Xe(()=>a.value>-1&&Cc(o.params,i.value.params)),p=Xe(()=>a.value>-1&&a.value===o.matched.length-1&&Mo(o.params,i.value.params));function h(v={}){if(Ec(v)){let g=t[$t(e.replace)?"replace":"push"]($t(e.to)).catch(ws);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>g),g}return Promise.resolve()}return{route:i,href:Xe(()=>i.value.href),isActive:u,isExactActive:p,navigate:h}}function wc(e){return e.length===1?e[0]:e}var kc=Dn({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"},viewTransition:Boolean},useLink:aa,setup(e,{slots:t}){let o=Le(aa(e)),{options:r}=at(Ln),n=Xe(()=>({[da(e.activeClass,r.linkActiveClass,"router-link-active")]:o.isActive,[da(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:o.isExactActive}));return()=>{let i=t.default&&wc(t.default(o));return e.custom?i:Ce("a",{"aria-current":o.isExactActive?e.ariaCurrentValue:null,href:o.href,onClick:o.navigate,class:n.value},i)}}}),_c=kc;function Ec(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){let t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function Cc(e,t){for(let o in t){let r=t[o],n=e[o];if(typeof r=="string"){if(r!==n)return!1}else if(!yt(n)||n.length!==r.length||r.some((i,a)=>i.valueOf()!==n[a].valueOf()))return!1}return!0}function la(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}var da=(e,t,o)=>e??t??o,Nc=Dn({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:o}){let r=at(zn),n=Xe(()=>e.route||r.value),i=at(Uo,0),a=Xe(()=>{let h=$t(i),{matched:v}=n.value,g;for(;(g=v[h])&&!g.components;)h++;return h}),u=Xe(()=>n.value.matched[a.value]);Zt(Uo,Xe(()=>a.value+1)),Zt(Zi,u),Zt(zn,n);let p=rt();return ze(()=>[p.value,u.value,e.name],([h,v,g],[f,b,_])=>{v&&(v.instances[g]=h,b&&b!==v&&h&&h===f&&(v.leaveGuards.size||(v.leaveGuards=b.leaveGuards),v.updateGuards.size||(v.updateGuards=b.updateGuards))),h&&v&&(!b||!ts(v,b)||!f)&&(v.enterCallbacks[g]||[]).forEach(k=>k(h))},{flush:"post"}),()=>{let h=n.value,v=e.name,g=u.value,f=g&&g.components[v];if(!f)return ua(o.default,{Component:f,route:h});let b=g.props[v],_=b?b===!0?h.params:typeof b=="function"?b(h):b:null,R=Ce(f,Ae({},_,t,{onVnodeUnmounted:S=>{S.component.isUnmounted&&(g.instances[v]=null)},ref:p}));return ua(o.default,{Component:R,route:h})||R}}});function ua(e,t){if(!e)return null;let o=e(t);return o.length===1?o[0]:o}var zo=Nc;function ha(e){let t=hc(e.routes,e),o=e.parseQuery||Qi,r=e.stringifyQuery||Lo,n=e.history,i=ks(),a=ks(),u=ks(),p=fn(Bt),h=Bt;ns&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");let v=qn.bind(null,F=>""+F),g=qn.bind(null,Hi),f=qn.bind(null,bs);function b(F,ne){let L,W;return Fo(F)?(L=t.getRecordMatcher(F),W=ne):W=F,t.addRoute(W,L)}function _(F){let ne=t.getRecordMatcher(F);ne&&t.removeRoute(ne)}function k(){return t.getRoutes().map(F=>F.record)}function R(F){return!!t.getRecordMatcher(F)}function S(F,ne){if(ne=Ae({},ne||p.value),typeof F=="string"){let w=Mn(o,F,ne.path),N=t.resolve({path:w.path},ne),P=n.createHref(w.fullPath);return Ae(w,N,{params:f(N.params),hash:bs(w.hash),redirectedFrom:void 0,href:P})}let L;if(F.path!=null)L=Ae({},F,{path:Mn(o,F.path,ne.path).path});else{let w=Ae({},F.params);for(let N in w)w[N]==null&&delete w[N];L=Ae({},F,{params:g(w)}),ne.params=g(ne.params)}let W=t.resolve(L,ne),fe=F.hash||"";W.params=v(f(W.params));let Ee=Bi(r,Ae({},F,{hash:zi(fe),path:W.path})),pe=n.createHref(Ee);return Ae({fullPath:Ee,hash:fe,query:r===Lo?Xi(F.query):F.query||{}},W,{redirectedFrom:void 0,href:pe})}function D(F){return typeof F=="string"?Mn(o,F,p.value.path):Ae({},F)}function I(F,ne){if(h!==F)return ss(He.NAVIGATION_CANCELLED,{from:ne,to:F})}function C(F){return ee(F)}function A(F){return C(Ae(D(F),{replace:!0}))}function q(F,ne){let L=F.matched[F.matched.length-1];if(L&&L.redirect){let{redirect:W}=L,fe=typeof W=="function"?W(F,ne):W;return typeof fe=="string"&&(fe=fe.includes("?")||fe.includes("#")?fe=D(fe):{path:fe},fe.params={}),Ae({query:F.query,hash:F.hash,params:fe.path!=null?{}:F.params},fe)}}function ee(F,ne){let L=h=S(F),W=p.value,fe=F.state,Ee=F.force,pe=F.replace===!0,w=q(L,W);if(w)return ee(Ae(D(w),{state:typeof w=="object"?Ae({},fe,w.state):fe,force:Ee,replace:pe}),ne||L);let N=L;N.redirectedFrom=ne;let P;return!Ee&&Gi(r,W,L)&&(P=ss(He.NAVIGATION_DUPLICATED,{to:N,from:W}),j(W,W,!0,!1)),(P?Promise.resolve(P):U(N,W)).catch(z=>It(z)?It(z,He.NAVIGATION_GUARD_REDIRECT)?z:V(z):ae(z,N,W)).then(z=>{if(z){if(It(z,He.NAVIGATION_GUARD_REDIRECT))return ee(Ae({replace:pe},D(z.to),{state:typeof z.to=="object"?Ae({},fe,z.to.state):fe,force:Ee}),ne||N)}else z=se(N,W,!0,pe,fe);return de(N,W,z),z})}function J(F,ne){let L=I(F,ne);return L?Promise.reject(L):Promise.resolve()}function K(F){let ne=Pe.values().next().value;return ne&&typeof ne.runWithContext=="function"?ne.runWithContext(F):F()}function U(F,ne){let L,[W,fe,Ee]=ea(F,ne);L=Hn(W.reverse(),"beforeRouteLeave",F,ne);for(let w of W)w.leaveGuards.forEach(N=>{L.push(Ht(N,F,ne))});let pe=J.bind(null,F,ne);return L.push(pe),$e(L).then(()=>{L=[];for(let w of i.list())L.push(Ht(w,F,ne));return L.push(pe),$e(L)}).then(()=>{L=Hn(fe,"beforeRouteUpdate",F,ne);for(let w of fe)w.updateGuards.forEach(N=>{L.push(Ht(N,F,ne))});return L.push(pe),$e(L)}).then(()=>{L=[];for(let w of Ee)if(w.beforeEnter)if(yt(w.beforeEnter))for(let N of w.beforeEnter)L.push(Ht(N,F,ne));else L.push(Ht(w.beforeEnter,F,ne));return L.push(pe),$e(L)}).then(()=>(F.matched.forEach(w=>w.enterCallbacks={}),L=Hn(Ee,"beforeRouteEnter",F,ne,K),L.push(pe),$e(L))).then(()=>{L=[];for(let w of a.list())L.push(Ht(w,F,ne));return L.push(pe),$e(L)}).catch(w=>It(w,He.NAVIGATION_CANCELLED)?w:Promise.reject(w))}function de(F,ne,L){u.list().forEach(W=>K(()=>W(F,ne,L)))}function se(F,ne,L,W,fe){let Ee=I(F,ne);if(Ee)return Ee;let pe=ne===Bt,w=ns?history.state:{};L&&(W||pe?n.replace(F.fullPath,Ae({scroll:pe&&w&&w.scroll},fe)):n.push(F.fullPath,fe)),p.value=F,j(F,ne,L,pe),V()}let ie;function ce(){ie||(ie=n.listen((F,ne,L)=>{if(!Ue.listening)return;let W=S(F),fe=q(W,Ue.currentRoute.value);if(fe){ee(Ae(fe,{replace:!0,force:!0}),W).catch(ws);return}h=W;let Ee=p.value;ns&&Yi($o(Ee.fullPath,L.delta),Zs()),U(W,Ee).catch(pe=>It(pe,He.NAVIGATION_ABORTED|He.NAVIGATION_CANCELLED)?pe:It(pe,He.NAVIGATION_GUARD_REDIRECT)?(ee(Ae(D(pe.to),{force:!0}),W).then(w=>{It(w,He.NAVIGATION_ABORTED|He.NAVIGATION_DUPLICATED)&&!L.delta&&L.type===$n.pop&&n.go(-1,!1)}).catch(ws),Promise.reject()):(L.delta&&n.go(-L.delta,!1),ae(pe,W,Ee))).then(pe=>{pe=pe||se(W,Ee,!1),pe&&(L.delta&&!It(pe,He.NAVIGATION_CANCELLED)?n.go(-L.delta,!1):L.type===$n.pop&&It(pe,He.NAVIGATION_ABORTED|He.NAVIGATION_DUPLICATED)&&n.go(-1,!1)),de(W,Ee,pe)}).catch(ws)}))}let be=ks(),he=ks(),me;function ae(F,ne,L){V(F);let W=he.list();return W.length?W.forEach(fe=>fe(F,ne,L)):console.error(F),Promise.reject(F)}function O(){return me&&p.value!==Bt?Promise.resolve():new Promise((F,ne)=>{be.add([F,ne])})}function V(F){return me||(me=!F,ce(),be.list().forEach(([ne,L])=>F?L(F):ne()),be.reset()),F}function j(F,ne,L,W){let{scrollBehavior:fe}=e;if(!ns||!fe)return Promise.resolve();let Ee=!L&&xi($o(F.fullPath,0))||(W||!L)&&history.state&&history.state.scroll||null;return kt().then(()=>fe(F,ne,Ee)).then(pe=>pe&&Ki(pe)).catch(pe=>ae(pe,F,ne))}let Z=F=>n.go(F),oe,Pe=new Set,Ue={currentRoute:p,listening:!0,addRoute:b,removeRoute:_,clearRoutes:t.clearRoutes,hasRoute:R,getRoutes:k,resolve:S,options:e,push:C,replace:A,go:Z,back:()=>Z(-1),forward:()=>Z(1),beforeEach:i.add,beforeResolve:a.add,afterEach:u.add,onError:he.add,isReady:O,install(F){F.component("RouterLink",_c),F.component("RouterView",zo),F.config.globalProperties.$router=Ue,Object.defineProperty(F.config.globalProperties,"$route",{enumerable:!0,get:()=>$t(p)}),ns&&!oe&&p.value===Bt&&(oe=!0,C(n.location).catch(W=>{}));let ne={};for(let W in Bt)Object.defineProperty(ne,W,{get:()=>p.value[W],enumerable:!0});F.provide(Ln,Ue),F.provide(Un,$s(ne)),F.provide(zn,p);let L=F.unmount;Pe.add(F),F.unmount=function(){Pe.delete(F),Pe.size<1&&(h=Bt,ie&&ie(),ie=null,p.value=Bt,oe=!1,me=!1),L()}}};function $e(F){return F.reduce((ne,L)=>ne.then(()=>K(L)),Promise.resolve())}return Ue}function va(e){return at(Un)}function ya(e,t){return t?.split(".").reduce((o,r)=>o?.[r],e)}function Ho(e=null,t=new Map){let o=Le({}),r=[],n=!1,i=new Proxy(o,{get(a,u){return typeof u=="string"&&u.startsWith("__v_")||Reflect.has(a,u)?Reflect.get(a,u):e?.[u]}});return Object.defineProperty(o,"parent",{value:e,configurable:!0}),Object.defineProperty(o,"viewState",{get:()=>i}),i.watch=(a,u,p=!1)=>{let h=typeof a=="function"?()=>a(i):()=>ya(i,a),v=ze(h,u,{deep:p,flush:"post"});return r.push(v),kt(()=>{n||u(h(),h())}),v},i.watchGroup=(a,u)=>i.watch(()=>a.map(p=>ya(i,p)),u,!0),i.on=(a,u)=>{if(a==="dispose")return r.push(u),()=>{};t.has(a)||t.set(a,new Set),t.get(a).add(u);let p=()=>t.get(a)?.delete(u);return r.push(p),p},i.emit=(a,...u)=>{for(let p of[...t.get(a)||[]])p({},...u)},i.dispose=()=>{n=!0,r.splice(0).reverse().forEach(a=>a())},qs(i.dispose),i}function ft(){let e=new Set,t=new Set,o=!1,r=(i,a=0)=>{if(o)return;let u=setTimeout(()=>{e.delete(u),i()},a);return e.add(u),u};r.cancel=i=>{clearTimeout(i),e.delete(i)};let n=(i,a)=>{if(o)return;let u=setInterval(i,a);return t.add(u),u};return n.cancel=i=>{clearInterval(i),t.delete(i)},qs(()=>{o=!0,e.forEach(clearTimeout),t.forEach(clearInterval)}),{timeout:r,interval:n}}function rs(){let e=[];return qs(()=>e.forEach(t=>t())),(t,o,r,n)=>{t.addEventListener(o,r,n),e.push(()=>t.removeEventListener(o,r,n))}}var ga=function(e,t,o,r){e.title="Main",e.user={status:"connection"},e.site_options,e.toasts=[],e.removeToast=function(p){let h=e.toasts.indexOf(p);h!==-1&&e.toasts.splice(h,1)},e.addToast=function(p){return e.toasts.push(p),r(function(){e.removeToast(p)},8e3),p},e.path=o.url(),e.paths=o.path().substring(1).split("/"),e.darkMode=function(p){localStorage.setItem("darkMode",p),e.isDarkMode=p;let h="/css/prism-okaidia.css",v="/css/prism.css";if(p){$("body").addClass("dark-mode");let f=document.createElement("link");f.href=h,f.rel="stylesheet",document.head.append(f),$(`link[href='${v}']`).remove()}else{$("body").removeClass("dark-mode");let f=document.createElement("link");f.href=v,f.rel="stylesheet",document.head.append(f),$(`link[href='${h}']`).remove()}var g=document.querySelector(".floatingchat-container-wrap-mo498 .floating-chat-kofi-text-container-wrap");g&&(g.style.backgroundColor=p?"#FAF9F6":"#1A1815",g.style.color=p?"#1A1815":"#FAF9F6"),e.emit("dark-mode",p)},e.darkMode(localStorage.getItem("darkMode")=="true");function n(){t.get("/api/user").then(p=>{p&&(e.user=p.data)},()=>{e.user=null})}n();function i(){t.get("/api/options").then(p=>{p&&(e.site_options=p.data)},()=>{e.site_options=null})}i();function a(){t.get("/api/message").then(p=>{p&&(e.generalMessage=p.data)},()=>{e.generalMessage=null})}a();function u(p,h){h&&(e.title=h.title),e.path=o.url(),e.paths=o.path().substring(1).split("/")}e.on("routeChange",u),e.on("routeUpdate",u)},ba=function(e,t){let o=rs()},wa=function(e,t,o,r,n){e.terms="",e.options={expirationMode:"remove",update:!1,image:!0,pdf:!0,notebook:!0,loc:!0,link:!0},e.saving=!1,e.message=null,e.error=null,n.load().then(u=>{e.quota=u},console.error);function i(){t.get("/api/user/default").then(u=>{let p=u.data||{};p.terms&&(e.terms=p.terms.join(` +`+JSON.stringify(t):""}`},[Be.NAVIGATION_GUARD_REDIRECT]({from:e,to:t}){return`Redirected from "${e.fullPath}" to "${pc(t)}" via a navigation guard.`},[Be.NAVIGATION_ABORTED]({from:e,to:t}){return`Navigation aborted from "${e.fullPath}" to "${t.fullPath}" via a navigation guard.`},[Be.NAVIGATION_CANCELLED]({from:e,to:t}){return`Navigation cancelled from "${e.fullPath}" to "${t.fullPath}" with a new navigation.`},[Be.NAVIGATION_DUPLICATED]({from:e,to:t}){return`Avoided redundant navigation to current location: "${e.fullPath}".`}};function os(e,t){return Ie(new Error,{type:e,[na]:!0},t)}function Vt(e,t){return e instanceof Error&&na in e&&(t==null||!!(e.type&t))}var cc=["params","query","hash"];function pc(e){if(typeof e=="string")return e;if(e.path!=null)return e.path;let t={};for(let o of cc)o in e&&(t[o]=e[o]);return JSON.stringify(t,null,2)}function oa(e){let t={};if(e===""||e==="?")return t;let o=(e[0]==="?"?e.slice(1):e).split("&");for(let r=0;rn&&Mo(n)):[r&&Mo(r)]).forEach(n=>{n!==void 0&&(t+=(t.length?"&":"")+o,n!=null&&(t+="="+n))})}return t}function ra(e){let t={};for(let o in e){let r=e[o];r!==void 0&&(t[o]=gt(r)?r.map(n=>n==null?null:""+n):r==null?r:""+r)}return t}var ia=Symbol(""),jo=Symbol(""),Gn=Symbol(""),jn=Symbol(""),Wn=Symbol("");function Cs(){let e=[];function t(r){return e.push(r),()=>{let n=e.indexOf(r);n>-1&&e.splice(n,1)}}function o(){e=[]}return{add:t,list:()=>e.slice(),reset:o}}function Bt(e,t,o,r,n,i=a=>a()){let a=r&&(r.enterCallbacks[n]=r.enterCallbacks[n]||[]);return()=>new Promise((u,p)=>{let h=f=>{f===!1?p(os(Be.NAVIGATION_ABORTED,{from:o,to:t})):f instanceof Error?p(f):uc(f)?p(os(Be.NAVIGATION_GUARD_REDIRECT,{from:t,to:f})):(a&&r.enterCallbacks[n]===a&&typeof f=="function"&&a.push(f),u())},v=i(()=>e.call(r&&r.instances[n],t,o,h)),g=Promise.resolve(v);e.length<3&&(g=g.then(h)),g.catch(f=>p(f))})}function Kn(e,t,o,r,n=i=>i()){let i=[];for(let a of e)for(let u in a.components){let p=a.components[u];if(!(t!=="beforeRouteEnter"&&!a.instances[u]))if(Hi(p)){let h=(p.__vccOpts||p)[t];h&&i.push(Bt(h,o,r,a,u,n))}else{let h=p();i.push(()=>h.then(v=>{if(!v)throw new Error(`Couldn't resolve component "${u}" at "${a.path}"`);let g=Wu(v)?v.default:v;a.mods[u]=v,a.components[u]=g;let f=(g.__vccOpts||g)[t];return f&&Bt(f,o,r,a,u,n)()}))}}return i}function aa(e,t){let o=[],r=[],n=[],i=Math.max(t.matched.length,e.matched.length);for(let a=0;ans(h,u))?r.push(u):o.push(u));let p=e.matched[a];p&&(t.matched.find(h=>ns(h,p))||n.push(p))}return[o,r,n]}var fc=()=>location.protocol+"//"+location.host;function ga(e,t){let{pathname:o,search:r,hash:n}=t,i=e.indexOf("#");if(i>-1){let a=n.includes(e.slice(i))?e.slice(i).length:1,u=n.slice(a);return u[0]!=="/"&&(u="/"+u),Uo(u,"")}return Uo(o,e)+r+n}function mc(e,t,o,r){let n=[],i=[],a=null,u=({state:f})=>{let w=ga(e,location),k=o.value,b=t.value,R=0;if(f){if(o.value=w,t.value=f,a&&a===k){a=null;return}R=b?f.position-b.position:0}else r(w);n.forEach(N=>{N(o.value,k,{delta:R,type:Hn.pop,direction:R?R>0?Bn.forward:Bn.back:Bn.unknown})})};function p(){a=o.value}function h(f){n.push(f);let w=()=>{let k=n.indexOf(f);k>-1&&n.splice(k,1)};return i.push(w),w}function v(){if(document.visibilityState==="hidden"){let{history:f}=window;if(!f.state)return;f.replaceState(Ie({},f.state,{scroll:on()}),"")}}function g(){for(let f of i)f();i=[],window.removeEventListener("popstate",u),window.removeEventListener("pagehide",v),document.removeEventListener("visibilitychange",v)}return window.addEventListener("popstate",u),window.addEventListener("pagehide",v),document.addEventListener("visibilitychange",v),{pauseListeners:p,listen:h,destroy:g}}function la(e,t,o,r=!1,n=!1){return{back:e,current:t,forward:o,replaced:r,position:window.history.length,scroll:n?on():null}}function hc(e){let{history:t,location:o}=window,r={value:ga(e,o)},n={value:t.state};n.value||i(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function i(p,h,v){let g=e.indexOf("#"),f=g>-1?(o.host&&document.querySelector("base")?e:e.slice(g))+p:fc()+e+p;try{t[v?"replaceState":"pushState"](h,"",f),n.value=h}catch(w){console.error(w),o[v?"replace":"assign"](f)}}function a(p,h){i(p,Ie({},t.state,la(n.value.back,p,n.value.forward,!0),h,{position:n.value.position}),!0),r.value=p}function u(p,h){let v=Ie({},n.value,t.state,{forward:p,scroll:on()});i(v.current,v,!0),i(p,Ie({},la(r.value,p,null),{position:v.position+1},h),!1),r.value=p}return{location:r,state:n,push:u,replace:a}}function ba(e){e=Xi(e);let t=hc(e),o=mc(e,t.state,t.location,t.replace);function r(i,a=!0){a||o.pauseListeners(),history.go(i)}let n=Ie({location:"",base:e,go:r,createHref:Zi.bind(null,e)},t,o);return Object.defineProperty(n,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(n,"state",{enumerable:!0,get:()=>t.state.value}),n}var is=(function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.Group=2]="Group",e})({}),xe=(function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.ParamRegExp=2]="ParamRegExp",e[e.ParamRegExpEnd=3]="ParamRegExpEnd",e[e.EscapeNext=4]="EscapeNext",e})(xe||{}),vc={type:is.Static,value:""},yc=/[a-zA-Z0-9_]/;function gc(e){if(!e)return[[]];if(e==="/")return[[vc]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(w){throw new Error(`ERR (${o})/"${h}": ${w}`)}let o=xe.Static,r=o,n=[],i;function a(){i&&n.push(i),i=[]}let u=0,p,h="",v="";function g(){h&&(o===xe.Static?i.push({type:is.Static,value:h}):o===xe.Param||o===xe.ParamRegExp||o===xe.ParamRegExpEnd?(i.length>1&&(p==="*"||p==="+")&&t(`A repeatable param (${h}) must be alone in its segment. eg: '/:ids+.`),i.push({type:is.Param,value:h,regexp:v,repeatable:p==="*"||p==="+",optional:p==="*"||p==="?"})):t("Invalid state to consume buffer"),h="")}function f(){h+=p}for(;ut.length?t.length===1&&t[0]===ot.Static+ot.Segment?1:-1:0}function wa(e,t){let o=0,r=e.score,n=t.score;for(;o0&&t[t.length-1]<0}var Ec={strict:!1,end:!0,sensitive:!1};function Cc(e,t,o){let r=kc(gc(e.path),o),n=Ie(r,{record:e,parent:t,children:[],alias:[]});return t&&!n.record.aliasOf==!t.record.aliasOf&&t.children.push(n),n}function Nc(e,t){let o=[],r=new Map;t=Fo(Ec,t);function n(g){return r.get(g)}function i(g,f,w){let k=!w,b=pa(g);b.aliasOf=w&&w.record;let R=Fo(t,g),N=[b];if("alias"in g){let C=typeof g.alias=="string"?[g.alias]:g.alias;for(let O of C)N.push(pa(Ie({},b,{components:w?w.record.components:b.components,path:O,aliasOf:w?w.record:b})))}let D,I;for(let C of N){let{path:O}=C;if(f&&O[0]!=="/"){let P=f.record.path,ee=P[P.length-1]==="/"?"":"/";C.path=f.record.path+(O&&ee+O)}if(D=Cc(C,f,R),w?w.alias.push(D):(I=I||D,I!==D&&I.alias.push(D),k&&g.name&&!fa(D)&&a(g.name)),ka(D)&&p(D),b.children){let P=b.children;for(let ee=0;ee{a(I)}:Es}function a(g){if(Bo(g)){let f=r.get(g);f&&(r.delete(g),o.splice(o.indexOf(f),1),f.children.forEach(a),f.alias.forEach(a))}else{let f=o.indexOf(g);f>-1&&(o.splice(f,1),g.record.name&&r.delete(g.record.name),g.children.forEach(a),g.alias.forEach(a))}}function u(){return o}function p(g){let f=Rc(g,o);o.splice(f,0,g),g.record.name&&!fa(g)&&r.set(g.record.name,g)}function h(g,f){let w,k={},b,R;if("name"in g&&g.name){if(w=r.get(g.name),!w)throw os(Be.MATCHER_NOT_FOUND,{location:g});R=w.record.name,k=Ie(ca(f.params,w.keys.filter(I=>!I.optional).concat(w.parent?w.parent.keys.filter(I=>I.optional):[]).map(I=>I.name)),g.params&&ca(g.params,w.keys.map(I=>I.name))),b=w.stringify(k)}else if(g.path!=null)b=g.path,w=o.find(I=>I.re.test(b)),w&&(k=w.parse(b),R=w.record.name);else{if(w=f.name?r.get(f.name):o.find(I=>I.re.test(f.path)),!w)throw os(Be.MATCHER_NOT_FOUND,{location:g,currentLocation:f});R=w.record.name,k=Ie({},f.params,g.params),b=w.stringify(k)}let N=[],D=w;for(;D;)N.unshift(D.record),D=D.parent;return{name:R,path:b,params:k,matched:N,meta:Dc(N)}}e.forEach(g=>i(g));function v(){o.length=0,r.clear()}return{addRoute:i,resolve:h,removeRoute:a,clearRoutes:v,getRoutes:u,getRecordMatcher:n}}function ca(e,t){let o={};for(let r of t)r in e&&(o[r]=e[r]);return o}function pa(e){let t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:Sc(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function Sc(e){let t={},o=e.props||!1;if("component"in e)t.default=o;else for(let r in e.components)t[r]=typeof o=="object"?o[r]:o;return t}function fa(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function Dc(e){return e.reduce((t,o)=>Ie(t,o.meta),{})}function Rc(e,t){let o=0,r=t.length;for(;o!==r;){let i=o+r>>1;wa(e,t[i])<0?r=i:o=i+1}let n=Tc(e);return n&&(r=t.lastIndexOf(n,r-1)),r}function Tc(e){let t=e;for(;t=t.parent;)if(ka(t)&&wa(e,t)===0)return t}function ka({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function ma(e){let t=lt(Gn),o=lt(jn),r=!1,n=null,i=tt(()=>{let v=Ft(e.to);return t.resolve(v)}),a=tt(()=>{let{matched:v}=i.value,{length:g}=v,f=v[g-1],w=o.matched;if(!f||!w.length)return-1;let k=w.findIndex(ns.bind(null,f));if(k>-1)return k;let b=ha(v[g-2]);return g>1&&ha(f)===b&&w[w.length-1].path!==b?w.findIndex(ns.bind(null,v[g-2])):k}),u=tt(()=>a.value>-1&&Pc(o.params,i.value.params)),p=tt(()=>a.value>-1&&a.value===o.matched.length-1&&zo(o.params,i.value.params));function h(v={}){if(Vc(v)){let g=t[Ft(e.replace)?"replace":"push"](Ft(e.to)).catch(Es);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>g),g}return Promise.resolve()}return{route:i,href:tt(()=>i.value.href),isActive:u,isExactActive:p,navigate:h}}function Oc(e){return e.length===1?e[0]:e}var Ac=Zs({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"},viewTransition:Boolean},useLink:ma,setup(e,{slots:t}){let o=Ue(ma(e)),{options:r}=lt(Gn),n=tt(()=>({[va(e.activeClass,r.linkActiveClass,"router-link-active")]:o.isActive,[va(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:o.isExactActive}));return()=>{let i=t.default&&Oc(t.default(o));return e.custom?i:Ne("a",{"aria-current":o.isExactActive?e.ariaCurrentValue:null,href:o.href,onClick:o.navigate,class:n.value},i)}}}),Ic=Ac;function Vc(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){let t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function Pc(e,t){for(let o in t){let r=t[o],n=e[o];if(typeof r=="string"){if(r!==n)return!1}else if(!gt(n)||n.length!==r.length||r.some((i,a)=>i.valueOf()!==n[a].valueOf()))return!1}return!0}function ha(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}var va=(e,t,o)=>e??t??o,qc=Zs({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:o}){let r=lt(Wn),n=tt(()=>e.route||r.value),i=lt(jo,0),a=tt(()=>{let h=Ft(i),{matched:v}=n.value,g;for(;(g=v[h])&&!g.components;)h++;return h}),u=tt(()=>n.value.matched[a.value]);ts(jo,tt(()=>a.value+1)),ts(ia,u),ts(Wn,n);let p=Xe();return He(()=>[p.value,u.value,e.name],([h,v,g],[f,w,k])=>{v&&(v.instances[g]=h,w&&w!==v&&h&&h===f&&(v.leaveGuards.size||(v.leaveGuards=w.leaveGuards),v.updateGuards.size||(v.updateGuards=w.updateGuards))),h&&v&&(!w||!ns(v,w)||!f)&&(v.enterCallbacks[g]||[]).forEach(b=>b(h))},{flush:"post"}),()=>{let h=n.value,v=e.name,g=u.value,f=g&&g.components[v];if(!f)return ya(o.default,{Component:f,route:h});let w=g.props[v],k=w?w===!0?h.params:typeof w=="function"?w(h):w:null,R=Ne(f,Ie({},k,t,{onVnodeUnmounted:N=>{N.component.isUnmounted&&(g.instances[v]=null)},ref:p}));return ya(o.default,{Component:R,route:h})||R}}});function ya(e,t){if(!e)return null;let o=e(t);return o.length===1?o[0]:o}var Wo=qc;function _a(e){let t=Nc(e.routes,e),o=e.parseQuery||oa,r=e.stringifyQuery||Go,n=e.history,i=Cs(),a=Cs(),u=Cs(),p=bn(Gt),h=Gt;rs&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");let v=Un.bind(null,F=>""+F),g=Un.bind(null,xi),f=Un.bind(null,_s);function w(F,ne){let L,W;return Bo(F)?(L=t.getRecordMatcher(F),W=ne):W=F,t.addRoute(W,L)}function k(F){let ne=t.getRecordMatcher(F);ne&&t.removeRoute(ne)}function b(){return t.getRoutes().map(F=>F.record)}function R(F){return!!t.getRecordMatcher(F)}function N(F,ne){if(ne=Ie({},ne||p.value),typeof F=="string"){let _=zn(o,F,ne.path),S=t.resolve({path:_.path},ne),q=n.createHref(_.fullPath);return Ie(_,S,{params:f(S.params),hash:_s(_.hash),redirectedFrom:void 0,href:q})}let L;if(F.path!=null)L=Ie({},F,{path:zn(o,F.path,ne.path).path});else{let _=Ie({},F.params);for(let S in _)_[S]==null&&delete _[S];L=Ie({},F,{params:g(_)}),ne.params=g(ne.params)}let W=t.resolve(L,ne),fe=F.hash||"";W.params=v(f(W.params));let Ce=Ji(r,Ie({},F,{hash:Yi(fe),path:W.path})),pe=n.createHref(Ce);return Ie({fullPath:Ce,hash:fe,query:r===Go?ra(F.query):F.query||{}},W,{redirectedFrom:void 0,href:pe})}function D(F){return typeof F=="string"?zn(o,F,p.value.path):Ie({},F)}function I(F,ne){if(h!==F)return os(Be.NAVIGATION_CANCELLED,{from:ne,to:F})}function C(F){return ee(F)}function O(F){return C(Ie(D(F),{replace:!0}))}function P(F,ne){let L=F.matched[F.matched.length-1];if(L&&L.redirect){let{redirect:W}=L,fe=typeof W=="function"?W(F,ne):W;return typeof fe=="string"&&(fe=fe.includes("?")||fe.includes("#")?fe=D(fe):{path:fe},fe.params={}),Ie({query:F.query,hash:F.hash,params:fe.path!=null?{}:F.params},fe)}}function ee(F,ne){let L=h=N(F),W=p.value,fe=F.state,Ce=F.force,pe=F.replace===!0,_=P(L,W);if(_)return ee(Ie(D(_),{state:typeof _=="object"?Ie({},fe,_.state):fe,force:Ce,replace:pe}),ne||L);let S=L;S.redirectedFrom=ne;let q;return!Ce&&Qi(r,W,L)&&(q=os(Be.NAVIGATION_DUPLICATED,{to:S,from:W}),j(W,W,!0,!1)),(q?Promise.resolve(q):U(S,W)).catch(z=>Vt(z)?Vt(z,Be.NAVIGATION_GUARD_REDIRECT)?z:V(z):ae(z,S,W)).then(z=>{if(z){if(Vt(z,Be.NAVIGATION_GUARD_REDIRECT))return ee(Ie({replace:pe},D(z.to),{state:typeof z.to=="object"?Ie({},fe,z.to.state):fe,force:Ce}),ne||S)}else z=se(S,W,!0,pe,fe);return de(S,W,z),z})}function J(F,ne){let L=I(F,ne);return L?Promise.reject(L):Promise.resolve()}function K(F){let ne=qe.values().next().value;return ne&&typeof ne.runWithContext=="function"?ne.runWithContext(F):F()}function U(F,ne){let L,[W,fe,Ce]=aa(F,ne);L=Kn(W.reverse(),"beforeRouteLeave",F,ne);for(let _ of W)_.leaveGuards.forEach(S=>{L.push(Bt(S,F,ne))});let pe=J.bind(null,F,ne);return L.push(pe),Fe(L).then(()=>{L=[];for(let _ of i.list())L.push(Bt(_,F,ne));return L.push(pe),Fe(L)}).then(()=>{L=Kn(fe,"beforeRouteUpdate",F,ne);for(let _ of fe)_.updateGuards.forEach(S=>{L.push(Bt(S,F,ne))});return L.push(pe),Fe(L)}).then(()=>{L=[];for(let _ of Ce)if(_.beforeEnter)if(gt(_.beforeEnter))for(let S of _.beforeEnter)L.push(Bt(S,F,ne));else L.push(Bt(_.beforeEnter,F,ne));return L.push(pe),Fe(L)}).then(()=>(F.matched.forEach(_=>_.enterCallbacks={}),L=Kn(Ce,"beforeRouteEnter",F,ne,K),L.push(pe),Fe(L))).then(()=>{L=[];for(let _ of a.list())L.push(Bt(_,F,ne));return L.push(pe),Fe(L)}).catch(_=>Vt(_,Be.NAVIGATION_CANCELLED)?_:Promise.reject(_))}function de(F,ne,L){u.list().forEach(W=>K(()=>W(F,ne,L)))}function se(F,ne,L,W,fe){let Ce=I(F,ne);if(Ce)return Ce;let pe=ne===Gt,_=rs?history.state:{};L&&(W||pe?n.replace(F.fullPath,Ie({scroll:pe&&_&&_.scroll},fe)):n.push(F.fullPath,fe)),p.value=F,j(F,ne,L,pe),V()}let ie;function ce(){ie||(ie=n.listen((F,ne,L)=>{if(!ze.listening)return;let W=N(F),fe=P(W,ze.currentRoute.value);if(fe){ee(Ie(fe,{replace:!0,force:!0}),W).catch(Es);return}h=W;let Ce=p.value;rs&&ta(Ho(Ce.fullPath,L.delta),on()),U(W,Ce).catch(pe=>Vt(pe,Be.NAVIGATION_ABORTED|Be.NAVIGATION_CANCELLED)?pe:Vt(pe,Be.NAVIGATION_GUARD_REDIRECT)?(ee(Ie(D(pe.to),{force:!0}),W).then(_=>{Vt(_,Be.NAVIGATION_ABORTED|Be.NAVIGATION_DUPLICATED)&&!L.delta&&L.type===Hn.pop&&n.go(-1,!1)}).catch(Es),Promise.reject()):(L.delta&&n.go(-L.delta,!1),ae(pe,W,Ce))).then(pe=>{pe=pe||se(W,Ce,!1),pe&&(L.delta&&!Vt(pe,Be.NAVIGATION_CANCELLED)?n.go(-L.delta,!1):L.type===Hn.pop&&Vt(pe,Be.NAVIGATION_ABORTED|Be.NAVIGATION_DUPLICATED)&&n.go(-1,!1)),de(W,Ce,pe)}).catch(Es)}))}let we=Cs(),he=Cs(),me;function ae(F,ne,L){V(F);let W=he.list();return W.length?W.forEach(fe=>fe(F,ne,L)):console.error(F),Promise.reject(F)}function A(){return me&&p.value!==Gt?Promise.resolve():new Promise((F,ne)=>{we.add([F,ne])})}function V(F){return me||(me=!F,ce(),we.list().forEach(([ne,L])=>F?L(F):ne()),we.reset()),F}function j(F,ne,L,W){let{scrollBehavior:fe}=e;if(!rs||!fe)return Promise.resolve();let Ce=!L&&sa(Ho(F.fullPath,0))||(W||!L)&&history.state&&history.state.scroll||null;return _t().then(()=>fe(F,ne,Ce)).then(pe=>pe&&ea(pe)).catch(pe=>ae(pe,F,ne))}let Z=F=>n.go(F),oe,qe=new Set,ze={currentRoute:p,listening:!0,addRoute:w,removeRoute:k,clearRoutes:t.clearRoutes,hasRoute:R,getRoutes:b,resolve:N,options:e,push:C,replace:O,go:Z,back:()=>Z(-1),forward:()=>Z(1),beforeEach:i.add,beforeResolve:a.add,afterEach:u.add,onError:he.add,isReady:A,install(F){F.component("RouterLink",Ic),F.component("RouterView",Wo),F.config.globalProperties.$router=ze,Object.defineProperty(F.config.globalProperties,"$route",{enumerable:!0,get:()=>Ft(p)}),rs&&!oe&&p.value===Gt&&(oe=!0,C(n.location).catch(W=>{}));let ne={};for(let W in Gt)Object.defineProperty(ne,W,{get:()=>p.value[W],enumerable:!0});F.provide(Gn,ze),F.provide(jn,Us(ne)),F.provide(Wn,p);let L=F.unmount;qe.add(F),F.unmount=function(){qe.delete(F),qe.size<1&&(h=Gt,ie&&ie(),ie=null,p.value=Gt,oe=!1,me=!1),L()}}};function Fe(F){return F.reduce((ne,L)=>ne.then(()=>K(L)),Promise.resolve())}return ze}function Ea(e){return lt(jn)}function Ca(e,t){return t?.split(".").reduce((o,r)=>o?.[r],e)}function Ko(e=null,t=new Map){let o=Ue({}),r=[],n=!1,i=new Proxy(o,{get(a,u){return typeof u=="string"&&u.startsWith("__v_")||Reflect.has(a,u)?Reflect.get(a,u):e?.[u]}});return Object.defineProperty(o,"parent",{value:e,configurable:!0}),Object.defineProperty(o,"viewState",{get:()=>i}),i.watch=(a,u,p=!1)=>{let h=typeof a=="function"?()=>a(i):()=>Ca(i,a),v=He(h,u,{deep:p,flush:"post"});return r.push(v),_t(()=>{n||u(h(),h())}),v},i.watchGroup=(a,u)=>i.watch(()=>a.map(p=>Ca(i,p)),u,!0),i.on=(a,u)=>{if(a==="dispose")return r.push(u),()=>{};t.has(a)||t.set(a,new Set),t.get(a).add(u);let p=()=>t.get(a)?.delete(u);return r.push(p),p},i.emit=(a,...u)=>{for(let p of[...t.get(a)||[]])p({},...u)},i.dispose=()=>{n=!0,r.splice(0).reverse().forEach(a=>a())},Fs(i.dispose),i}function mt(){let e=new Set,t=new Set,o=!1,r=(i,a=0)=>{if(o)return;let u=setTimeout(()=>{e.delete(u),i()},a);return e.add(u),u};r.cancel=i=>{clearTimeout(i),e.delete(i)};let n=(i,a)=>{if(o)return;let u=setInterval(i,a);return t.add(u),u};return n.cancel=i=>{clearInterval(i),t.delete(i)},Fs(()=>{o=!0,e.forEach(clearTimeout),t.forEach(clearInterval)}),{timeout:r,interval:n}}function as(){let e=[];return Fs(()=>e.forEach(t=>t())),(t,o,r,n)=>{t.addEventListener(o,r,n),e.push(()=>t.removeEventListener(o,r,n))}}var Na=function(e,t,o,r){e.title="Main",e.user={status:"connection"},e.site_options,e.toasts=[],e.removeToast=function(p){let h=e.toasts.indexOf(p);h!==-1&&e.toasts.splice(h,1)},e.addToast=function(p){return e.toasts.push(p),r(function(){e.removeToast(p)},8e3),p},e.path=o.url(),e.paths=o.path().substring(1).split("/"),e.darkMode=function(p){localStorage.setItem("darkMode",p),e.isDarkMode=p;let h="/css/prism-okaidia.css",v="/css/prism.css";if(p){$("body").addClass("dark-mode");let f=document.createElement("link");f.href=h,f.rel="stylesheet",document.head.append(f),$(`link[href='${v}']`).remove()}else{$("body").removeClass("dark-mode");let f=document.createElement("link");f.href=v,f.rel="stylesheet",document.head.append(f),$(`link[href='${h}']`).remove()}var g=document.querySelector(".floatingchat-container-wrap-mo498 .floating-chat-kofi-text-container-wrap");g&&(g.style.backgroundColor=p?"#FAF9F6":"#1A1815",g.style.color=p?"#1A1815":"#FAF9F6"),e.emit("dark-mode",p)},e.darkMode(localStorage.getItem("darkMode")=="true");function n(){t.get("/api/user").then(p=>{p&&(e.user=p.data)},()=>{e.user=null})}n();function i(){t.get("/api/options").then(p=>{p&&(e.site_options=p.data)},()=>{e.site_options=null})}i();function a(){t.get("/api/message").then(p=>{p&&(e.generalMessage=p.data)},()=>{e.generalMessage=null})}a();function u(p,h){h&&(e.title=h.title),e.path=o.url(),e.paths=o.path().substring(1).split("/")}e.on("routeChange",u),e.on("routeUpdate",u)},Sa=function(e,t){let o=as()},Da=function(e,t,o,r,n){e.terms="",e.options={expirationMode:"remove",update:!1,image:!0,pdf:!0,notebook:!0,loc:!0,link:!0},e.saving=!1,e.message=null,e.error=null,n.load().then(u=>{e.quota=u},console.error);function i(){t.get("/api/user/default").then(u=>{let p=u.data||{};p.terms&&(e.terms=p.terms.join(` `)),e.options=Object.assign({},e.options,p.options)})}i();let a=null;e.saveDefault=u=>{u&&u.preventDefault&&u.preventDefault();let p={terms:e.terms.split(` -`).map(h=>h.trim()).filter(h=>h.length>0),options:e.options};e.saving=!0,e.error=null,t.post("/api/user/default",p).then(()=>{i(),e.saving=!1,e.message="Saved",a&&r.cancel(a),a=r(()=>{e.message=null},2500)},h=>{e.saving=!1;let v=h&&h.data&&h.data.error;o("ERRORS."+v).then(g=>{e.error=g},()=>{e.error="Unable to save your defaults. Please try again."})})},e.deleteAccount=()=>{confirm("Delete your account? All your anonymized repositories, gists, and pull requests will be removed, and your personal data will be erased. This cannot be undone.")&&(e.deletingAccount=!0,t.delete("/api/user").then(()=>{window.location.href="/"},()=>{e.deletingAccount=!1,e.deleteError="Unable to delete the account. Please try again."}))}},ka=function(e,t,o){e.repoId=null,e.repoUrl=null,e.claim=()=>{t.post("/api/repo/claim",{repoId:e.repoId,repoUrl:e.repoUrl}).then(r=>{o.url("/dashboard")},r=>{e.error=r.data,e.claimForm.repoUrl.setValidity("not_found",!1),e.claimForm.repoId.setValidity("not_found",!1)})}},_a=function(e,t,o,r,n){e.user&&!e.user.status&&o.url("/dashboard"),e.watch("user.status",()=>{e.user&&!e.user.status&&o.url("/dashboard")}),e.features=[{key:"anonymize",num:"01",eyebrow:"Anonymize",title:"Double-anonymous,",accent:"your rules.",text:"Choose what reviewers may see: links, images, PDFs, notebooks, GitHub Pages. Add your own terms, with regex if you need it, and pick the expiration date.",cta:"Start an anonymization",href:"/anonymize",url:"anonymous.4open.science/anonymize",img:"/imgs/anonymize.png",alt:"The anonymize form: source repository, terms to redact, options and a live README preview"},{key:"review",num:"02",eyebrow:"Review",title:"Reviewers browse",accent:"the real thing.",text:"Highlighted source code, rendered PDFs, images, and notebooks, in a familiar file explorer. GitHub Pages is also supported.",cta:"Open the example",href:"https://anonymous.4open.science/r/840c8c57-3c32-451e-bf12-0e20be300389/",target:"_self",url:"anonymous.4open.science/r/840c8c57-\u2026",img:"/imgs/explorer.png",alt:"The repository explorer with a file tree and a rendered README"},{key:"manage",num:"03",eyebrow:"Manage",title:"One dashboard,",accent:"until the decision.",text:"Monitor views, edit configuration, remove or update your repository. Program chairs can group submissions under a conference with one shared expiry.",cta:"Open the dashboard",href:"/dashboard",needsUser:!0,url:"anonymous.4open.science/dashboard",img:"/imgs/dashboard.png",alt:"The dashboard listing anonymized repositories with status, views and expiry"}],e.feature=e.features[0].key,e.selectFeature=function(u){e.feature=u},e.featureHref=function(u){return u.needsUser&&!e.user?"/github/login":u.href},e.featureTarget=function(u){return u.needsUser&&!e.user?"_self":u.target||void 0},e.featureKeydown=function(u,p){let h={ArrowDown:1,ArrowRight:1,ArrowUp:-1,ArrowLeft:-1,Home:"first",End:"last"}[u.key];if(h===void 0)return;u.preventDefault();let v=e.features.length,g=h==="first"?0:h==="last"?v-1:(p+h+v)%v;e.feature=e.features[g].key,n(()=>{let f=r.document.getElementById("feature-tab-"+e.feature);f&&f.focus()})},e.cards=[{key:"repositories",total:0,label:"repositories anonymized"},{key:"users",total:0,label:"researchers"},{key:"pageViews",total:0,label:"page views"},{key:"pullRequests",total:0,label:"pull requests"}];function i(){t.get("/api/stat/").then(u=>{e.stat=u.data,e.cards[0].total=u.data.nbRepositories,e.cards[1].total=u.data.nbUsers,e.cards[2].total=u.data.nbPageViews,e.cards[3].total=u.data.nbPullRequests})}i();function a(u){let p={series:u,bars:[],viewW:100,deltaToday:0,pctChange:0,pctAbs:0,isUp:!0};if(!u||u.length<2)return p;let h=new Array(u.length-1);for(let k=1;k=2){let k=h[v-2];k&&(p.pctChange=(p.deltaToday-k)/k*100)}return p.pctAbs=Math.round(Math.abs(p.pctChange)),p.isUp=p.pctChange>=0,p}e.history={repositories:a([]),users:a([]),pageViews:a([]),pullRequests:a([])},t.get("/api/stat/history?days=60").then(u=>{let p=u.data||[];e.history={repositories:a(p.map(h=>h.nbRepositories||0)),users:a(p.map(h=>h.nbUsers||0)),pageViews:a(p.map(h=>h.nbPageViews||0)),pullRequests:a(p.map(h=>h.nbPullRequests||0))}})},Ea=function(e,t,o,r,n,i){let a=ft();e.on("routeLeave",function(){$('[data-toggle="tooltip"]').tooltip("dispose")}),e.watch("user.status",()=>{e.user==null&&o.url("/")}),e.user==null&&o.url("/"),a.timeout(()=>{$('[data-toggle="tooltip"]').tooltip()},250),e.items=[],e.search="",e.loading=!0,e.statusKeyLabels={ready:"Ready",progress:"In progress",error:"Error",expired:"Expired",removed:"Removed"};let u=["queue","download","downloaded","preparing","anonymizing"];function p(C){return C==="ready"||C==="error"?C:C==="expired"||C==="expiring"?"expired":C==="removed"||C==="removing"?"removed":(u.indexOf(C)>-1,"progress")}let h=7200*1e3,v="dashboard.filterPrefs",g={typeFilter:"all",filters:{status:{ready:!0,progress:!0,error:!0,expired:!0,removed:!1}},orderBy:"-anonymizeDate"},f=loadFilterPrefs(v)||{};e.typeFilter=f.typeFilter||g.typeFilter,e.filters={status:Object.assign({},g.filters.status,f.filters&&f.filters.status||{})},e.orderBy=f.orderBy||g.orderBy;let b={_name:{label:"Name",defaultDesc:!1},anonymizeDate:{label:"Anonymize date",defaultDesc:!0},status:{label:"Status",defaultDesc:!1},lastView:{label:"Last view",defaultDesc:!0},pageView:{label:"Views",defaultDesc:!0},"options.expirationDate":{label:"Expiration",defaultDesc:!1}};e.sortFields=b,e.sortField=()=>e.orderBy.replace(/^-/,""),e.sortDesc=()=>e.orderBy.charAt(0)==="-",e.sortLabel=()=>{let C=b[e.sortField()];return C?C.label:"Custom"},e.isSortedBy=C=>e.sortField()===C,e.setSort=(C,A)=>{typeof A!="boolean"&&(A=e.isSortedBy(C)?!e.sortDesc():!!(b[C]&&b[C].defaultDesc)),e.orderBy=(A?"-":"")+C},e.toggleSortDirection=()=>{e.setSort(e.sortField(),!e.sortDesc())},e.watchGroup(["typeFilter","orderBy"],()=>{saveFilterPrefs(v,{typeFilter:e.typeFilter,filters:e.filters,orderBy:e.orderBy})}),e.watch("filters",()=>{saveFilterPrefs(v,{typeFilter:e.typeFilter,filters:e.filters,orderBy:e.orderBy})},!0),i.load().then(C=>{e.quota=C},console.error);function _(C,A,q,ee,J,K){C.pageView||(C.pageView=0),C.lastView||(C.lastView=""),C.options=C.options||{},C.options.terms=(C.options.terms||[]).filter(de=>de),C._id=A||"",C._source=ee,C._broken=!A,C._name=A||ee||"(unnamed)",C._editUrl=A?J:null,C._viewUrl=A?K:null,C._broken&&(C.status="error",C.statusMessage="incomplete_record"),C._statusKey=p(C.status);let U=C.anonymizeDate||C.lastView;return C._stale=C._statusKey==="progress"&&!!U&&Date.now()-new Date(U).getTime()>h,C.status==="expired"||C.status==="expiring"?C._expiry={kind:"expired",date:C.options.expirationDate}:C.status!=="ready"?C._expiry={kind:"none"}:C.options.expirationMode==="never"||!C.options.expirationDate?C._expiry={kind:"never"}:C._expiry={kind:"date",date:C.options.expirationDate},C}function k(C){return t.get(C).then(A=>A.data||[],A=>(console.error(A),[]))}function R(){return e.loading=!0,r.all([k("/api/user/anonymized_repositories"),k("/api/user/anonymized_pull_requests"),k("/api/user/anonymized_gists")]).then(C=>{let A=C[0],q=C[1],ee=C[2],J=[];A.forEach(K=>{K._type="repo";let U=K.source||{};J.push(_(K,K.repoId,K.repoId,U.fullName,"/anonymize/"+K.repoId,"/r/"+K.repoId+"/"))}),q.forEach(K=>{K._type="pr";let U=K.source||{};J.push(_(K,K.pullRequestId,K.pullRequestId,U.repositoryFullName+"#"+U.pullRequestId,"/pull-request-anonymize/"+K.pullRequestId,"/pr/"+K.pullRequestId+"/"))}),ee.forEach(K=>{K._type="gist";let U=K.source||{};J.push(_(K,K.gistId,K.gistId,U.gistId,"/gist-anonymize/"+K.gistId,"/gist/"+K.gistId+"/"))}),e.items=J,e.loading=!1})}R(),e.openItem=(C,A)=>{if(!C._viewUrl)return;let q=A&&A.target;q&&q.closest&&q.closest("a, button, .dropdown, input")||(n.location.href=C._viewUrl)},e.hiddenStatusCount=()=>Object.keys(e.filters.status).filter(C=>e.filters.status[C]===!1).length,e.hasHiddenStatus=()=>e.hiddenStatusCount()>0,e.hasActiveFilters=()=>e.typeFilter!=="all"||e.search.trim().length>0||Object.keys(e.filters.status).some(C=>e.filters.status[C]===!1),e.clearFilters=()=>{e.typeFilter="all",e.search="",Object.keys(e.filters.status).forEach(C=>{e.filters.status[C]=!0})};function S(C,A){t.get("/api/repo/"+C).then(q=>{for(let ee of e.items)if(ee._type==="repo"&&ee.repoId==C){ee.status=q.data.status;break}if(q.data.status=="ready"||q.data.status=="error"||q.data.status=="removed"||q.data.status=="expired"){A(q.data);return}a.timeout(()=>S(C,A),2500)})}let D=C=>C==="repo"?"repository":C==="gist"?"gist":"pull request",I=C=>C==="repo"?"/api/repo":C==="gist"?"/api/gist":"/api/pr";e.removeItem=C=>{let A=D(C._type);if(confirm(`Are you sure that you want to remove the ${A} ${C._id}?`)){let q=Le({title:`Removing ${C._id}...`,date:new Date,body:`The ${A} ${C._id} is going to be removed.`});e.addToast(q);let ee=`${I(C._type)}/${C._id}`;t.delete(ee).then(()=>{C._type==="repo"?S(C._id,()=>{q.title=`${C._id} is removed.`,q.body=`The ${A} ${C._id} is removed.`}):(q.title=`${C._id} is removed.`,q.body=`The ${A} ${C._id} is removed.`,R())},J=>{q.title=`Error during the removal of ${C._id}.`,q.body=J.body,R()})}},e.refreshItem=C=>{let A=D(C._type),q=Le({title:`Refreshing ${C._id}...`,date:new Date,body:`The ${A} ${C._id} is going to be refreshed.`});e.addToast(q);let ee=`${I(C._type)}/${C._id}/refresh`;t.post(ee).then(()=>{C._type==="repo"?S(C._id,()=>{q.title=`${C._id} is refreshed.`,q.body=`The ${A} ${C._id} is refreshed.`}):(q.title=`${C._id} is refreshed.`,q.body=`The ${A} ${C._id} is refreshed.`,R())},J=>{q.title=`Error during the refresh of ${C._id}.`,q.body=J.body,R()})},e.extendItem=C=>{let A=D(C._type),q=Le({title:`Extending ${C._id}...`,date:new Date,body:`The expiration of ${A} ${C._id} is going to be extended by 6 months.`});e.addToast(q);let ee=`${I(C._type)}/${C._id}/extend`;t.post(ee).then(()=>{C._type==="repo"?S(C._id,()=>{q.title=`${C._id} is extended.`,q.body=`The expiration of ${A} ${C._id} is extended by 6 months.`}):(q.title=`${C._id} is extended.`,q.body=`The expiration of ${A} ${C._id} is extended by 6 months.`,R())},J=>{q.title=`Error during the extension of ${C._id}.`,q.body=J.data&&J.data.error||J.body,R()})},e.itemFilter=C=>{if(e.typeFilter!=="all"&&C._type!==e.typeFilter||e.filters.status[C._statusKey]===!1)return!1;let A=e.search.trim().toLowerCase();return!!(A.length==0||C._source&&String(C._source).toLowerCase().indexOf(A)>-1||C._id&&String(C._id).toLowerCase().indexOf(A)>-1||C.conference&&String(C.conference).toLowerCase().indexOf(A)>-1)}};var Ca=function(e,t,o){let r=ft();e.repoId=o.repoId,e.repo=null,e.progress=0,e.rateLimitResetAt=0,e.rateLimitCountdown="";var n=null;let i=null,a=!1;function u(h){e.rateLimitResetAt=h,n&&r.interval.cancel(n);function v(){var g=Math.max(0,Math.ceil((h-Date.now())/1e3));if(g<=0)e.rateLimitCountdown="",e.rateLimitResetAt=0,r.interval.cancel(n),n=null;else{var f=Math.floor(g/60),b=g%60;e.rateLimitCountdown=f>0?f+"m "+b+"s":b+"s"}}v(),n=r.interval(v,1e3)}e.on("dispose",function(){a=!0,n&&r.interval.cancel(n),i&&r.timeout.cancel(i)});function p(h){if(!h)return h;var v=h.match(/^rate_limited:(\d+)$/);return v?(u(parseInt(v[1],10)),null):(e.rateLimitResetAt=0,h)}e.getStatus=()=>{a||t.get("/api/repo/"+e.repoId,{repoId:e.repoId,repoUrl:e.repoUrl}).then(h=>{if(!a){e.repo=h.data,h.data.rateLimitResetAt?u(h.data.rateLimitResetAt):e.repo.statusMessage=p(e.repo.statusMessage),e.repo.status=="ready"?e.progress=100:e.repo.status=="queue"?e.progress=10:e.repo.status=="downloaded"?e.progress=50:e.repo.status=="download"||e.repo.status=="preparing"?e.progress=25:e.repo.status=="anonymizing"&&(e.progress=75);var v=!["ready","removed","expired"].includes(e.repo.status);e.repo.status=="error"&&!e.rateLimitResetAt&&(v=!1),v&&(i=r.timeout(e.getStatus,2e3))}},h=>{e.error=h.data.error})},e.getStatus()},Bn=function(e,t,o,r,n,i,a){e.sourceUrl="",e.detectedType=null,e.repoId="",e.pullRequestId="",e.gistId="",e.terms="",e.defaultTerms="",e.branches=[],e.source={branch:"",commit:""},e.options={expirationMode:"remove",expirationDate:new Date,update:!1,image:!0,pdf:!0,notebook:!0,link:!0,body:!0,title:!0,origin:!1,diff:!0,content:!0,comments:!0,username:!0,date:!0};function u(){let O=new Date;return O.setMonth(O.getMonth()+6),O}e.options.expirationDate=u();function p(O){let V=O.getFullYear(),j=String(O.getMonth()+1).padStart(2,"0"),Z=String(O.getDate()).padStart(2,"0");return`${V}-${j}-${Z}`}e.minExpirationDate=p(new Date);let h=new Date;h.setFullYear(h.getFullYear()+1),e.maxExpirationDate=p(h),e.anonymize_readme="",e.readme="",e.html_readme="",e.isUpdate=!1;function v(O){t.get("/api/user/default").then(V=>{let j=V.data;j.terms&&(e.defaultTerms=j.terms.join(` -`)),e.options=Object.assign({},e.options,j.options),e.options.expirationDate=j.options&&j.options.expirationDate?new Date(j.options.expirationDate):u(),O&&O()})}function g(O,V,j){e.anonymize&&e.anonymize[O]&&e.anonymize[O].setValidity(V,j)}function f(O){try{let V=parseGithubUrl(O);if(V&&V.owner&&V.repo)return V.owner+"/"+V.repo}catch{}return null}function b(){return!e.isUpdate||!e._originalRepositoryID?void 0:f(e.sourceUrl)===e._originalFullName?e._originalRepositoryID:void 0}v(()=>{r.repoId&&r.repoId!=""&&(e.isUpdate=!0,e.detectedType="repo",e.repoId=r.repoId,t.get("/api/repo/"+e.repoId).then(async O=>{e.sourceUrl="https://github.com/"+O.data.source.fullName,e._originalFullName=O.data.source.fullName,e.terms=O.data.options.terms.filter(V=>V).join(` -`),e.source=O.data.source,e.role=O.data.role||"owner",e.coauthors=O.data.coauthors||[],e._originalBranch=O.data.source.branch,e.options=Object.assign({},e.options,O.data.options),e.conference=O.data.conference,e.repositoryID=O.data.source.repositoryID,e._originalRepositoryID=O.data.source.repositoryID,O.data.options.expirationDate&&(e.options.expirationDate=new Date(O.data.options.expirationDate)),await Promise.all([_(),k()]),I()},()=>{n.url("/404")})),r.pullRequestId&&r.pullRequestId!=""&&(e.isUpdate=!0,e.detectedType="pr",e.pullRequestId=r.pullRequestId,t.get("/api/pr/"+e.pullRequestId).then(async O=>{e.sourceUrl="https://github.com/"+O.data.source.repositoryFullName+"/pull/"+O.data.source.pullRequestId,e.terms=O.data.options.terms.filter(V=>V).join(` -`),e.source=O.data.source,e.options=Object.assign({},e.options,O.data.options),e.conference=O.data.conference,O.data.options.expirationDate&&(e.options.expirationDate=new Date(O.data.options.expirationDate));try{e.details=(await t.get(`/api/pr/${O.data.source.repositoryFullName}/${O.data.source.pullRequestId}`)).data}catch(V){let j=V&&V.data&&V.data.error;j&&(i("ERRORS."+j).then(Z=>{e.addToast({title:"Error",date:new Date,body:Z}),e.error=Z},console.error),ae(j))}},()=>{n.url("/404")})),r.gistId&&r.gistId!=""&&(e.isUpdate=!0,e.detectedType="gist",e.gistId=r.gistId,t.get("/api/gist/"+e.gistId).then(async O=>{e.sourceUrl="https://gist.github.com/"+O.data.source.gistId,e.terms=O.data.options.terms.filter(V=>V).join(` -`),e.source=O.data.source,e.options=Object.assign({},e.options,O.data.options),e.conference=O.data.conference,O.data.options.expirationDate&&(e.options.expirationDate=new Date(O.data.options.expirationDate)),e.details=(await t.get(`/api/gist/source/${O.data.source.gistId}`)).data},()=>{n.url("/404")}))}),e.urlSelected=async()=>{e.terms=e.defaultTerms,e.isUpdate||(e.repoId="",e.pullRequestId="",e.gistId=""),e.details=null,e.branches=[],e.source={type:"GitHubStream",branch:"",commit:""},e.anonymize_readme="",e.readme="",e.html_readme="",e.detectedType=null;let O;try{O=parseGithubUrl(e.sourceUrl)}catch{g("sourceUrl","github",!1);return}g("sourceUrl","github",!0);try{O.gistId&&!O.repo?(e.detectedType="gist",e.source={gistId:O.gistId},await K()):O.pullRequestId?(e.detectedType="pr",e.source={repositoryFullName:O.owner+"/"+O.repo,pullRequestId:O.pullRequestId},await C()):(e.detectedType="repo",await Promise.all([_(),k()]),I())}catch{return}$('[data-toggle="tooltip"]').tooltip()},$('[data-toggle="tooltip"]').tooltip(),e.watch("source.branch",async()=>{if(e.detectedType!=="repo")return;let O=e.branches.filter(j=>j.name==e.source.branch)[0];if(!O)return;e.isUpdate&&e._originalBranch===e.source.branch&&!!e.source.commit||(e.source.commit=O.commit),e.readme=O.readme,await k(),I()}),e.getBranches=async O=>{let V=parseGithubUrl(e.sourceUrl);try{let j=await t.get(`/api/repo/${V.owner}/${V.repo}/branches`,{params:{force:O===!0?"1":"0",repositoryID:b()}});e.branches=j.data,e.sourceUnreachable=!1,e.source.branch||(e.source.branch=e.details.defaultBranch);let Z=e.branches.filter(oe=>oe.name==e.source.branch);Z.length>0&&(!O&&e.isUpdate&&!e.options.update&&e._originalBranch===e.source.branch&&e.source.commit||(e.source.commit=Z[0].commit),e.readme=Z[0].readme,await k(O))}catch(j){e.branches=[],e.sourceUnreachable=j&&(j.status===404||j.data&&j.data.error==="repo_not_found");let Z=j&&j.data&&j.data.error||(j&&j.status===404?"repo_not_found":"unknown_error");i("ERRORS."+Z).then(oe=>{e.toasts=e.toasts||[],e.addToast({title:"Error",date:new Date,body:oe}),e.error=oe},console.error),typeof g=="function"&&g("sourceUrl","missing",!1)}};async function _(){let O=parseGithubUrl(e.sourceUrl);try{he();let V=await t.get(`/api/repo/${O.owner}/${O.repo}/`,{params:{repositoryID:b(),force:"1"}});e.details=V.data,e.details&&e.details.id&&(e.repositoryID=e.details.id),e.repoId||(e.repoId=e.details.repo+"-"+generateRandomId(4)),await e.getBranches()}catch(V){throw V.data&&(i("ERRORS."+V.data.error).then(j=>{e.addToast({title:"Error",date:new Date,body:j}),e.error=j},console.error),ae(V.data.error)),g("sourceUrl","missing",!1),V}}async function k(O){if(e.readme&&!O)return e.readme;let V=parseGithubUrl(e.sourceUrl);try{let j=await t.get(`/api/repo/${V.owner}/${V.repo}/readme`,{params:{force:O===!0?"1":"0",branch:e.source.branch,repositoryID:b()}});e.readme=j.data}catch{e.readme=""}}function R(){let O={terms:e.terms?e.terms.split(` -`):[],image:!!e.options.image,link:!!e.options.link,repoId:e.repoId};e.source&&e.source.branch&&(O.branchName=e.source.branch);try{let V=parseGithubUrl(e.sourceUrl);O.repoName=`${V.owner}/${V.repo}`}catch{}return O}function S(O,V){let j=null,Z=0;return function(){j&&a.cancel(j),j=a(()=>{j=null;let Pe=++Z,Ue=O();Ue&&t.post("/api/anonymize-preview",Ue).then($e=>{Pe===Z&&V($e.data)},()=>{})},200)}}let D=S(()=>e.readme?{content:e.readme,options:R()}:null,O=>{e.anonymize_readme=O.content||"";let V="";try{let Z=parseGithubUrl(e.sourceUrl),oe=e.source.branch||e.details&&e.details.defaultBranch||"main";V=`https://github.com/${Z.owner}/${Z.repo}/raw/${oe}/`}catch{}let j=renderMD(e.anonymize_readme,V);e.html_readme=j,a(Prism.highlightAll,150)});function I(){!e.anonymize||!e.anonymize.terms||(e.termsRegexWarning=!!e.terms&&!!e.terms.match(/[-[\]{}()*+?.,\\^$|#]/g),D())}async function C(){let O=parseGithubUrl(e.sourceUrl);try{he();let V=await t.get(`/api/pr/${O.owner}/${O.repo}/${O.pullRequestId}`);e.details=V.data,e.pullRequestId||(e.pullRequestId=O.repo+"-PR"+O.pullRequestId+"-"+generateRandomId(4))}catch(V){throw V.data&&(i("ERRORS."+V.data.error).then(j=>{e.addToast({title:"Error",date:new Date,body:j}),e.error=j},console.error),ae(V.data.error)),g("sourceUrl","missing",!1),V}}let A=Le(new Map),q=new Set;function ee(){let O=new Set,V=e.details&&e.details.pullRequest;if(!V)return O;typeof V.title=="string"&&O.add(V.title),typeof V.body=="string"&&O.add(V.body),typeof V.diff=="string"&&O.add(V.diff);let j=V.comments||[];for(let Z of j)typeof Z.author=="string"&&O.add(Z.author),typeof Z.body=="string"&&O.add(Z.body);return O}let J=S(()=>{let O=ee();q=O;let V=Array.from(O);return V.length===0?null:{contents:V,options:R()}},O=>{if(!O||!Array.isArray(O.contents))return;let V=Array.from(q),j=new Map;for(let Z=0;ZA.set(oe,Z))});e.anonymizePrContent=function(O){return O&&(A.has(O)?A.get(O):(q.has(O)||J(),O))};async function K(){let O=parseGithubUrl(e.sourceUrl);try{he();let V=await t.get(`/api/gist/source/${O.gistId}`);e.details=V.data,e.gistId||(e.gistId="gist-"+O.gistId.substring(0,6)+"-"+generateRandomId(4))}catch(V){throw V.data&&(i("ERRORS."+V.data.error).then(j=>{e.addToast({title:"Error",date:new Date,body:j}),e.error=j},console.error),ae(V.data.error)),g("sourceUrl","missing",!1),V}}let U=Le(new Map),de=new Set;function se(){let O=new Set,V=e.details&&e.details.gist;if(!V)return O;typeof V.description=="string"&&O.add(V.description),typeof V.ownerLogin=="string"&&O.add(V.ownerLogin);let j=V.files||[];for(let oe of j)typeof oe.filename=="string"&&O.add(oe.filename),typeof oe.content=="string"&&O.add(oe.content);let Z=V.comments||[];for(let oe of Z)typeof oe.author=="string"&&O.add(oe.author),typeof oe.body=="string"&&O.add(oe.body);return O}let ie=S(()=>{let O=se();de=O;let V=Array.from(O);return V.length===0?null:{contents:V,options:R()}},O=>{if(!O||!Array.isArray(O.contents))return;let V=Array.from(de),j=new Map;for(let Z=0;ZU.set(oe,Z)),ce()});e.anonymizeGistContent=function(O){return O&&(U.has(O)?U.get(O):(de.has(O)||ie(),O))},e.previewGistFiles=[];function ce(){let O=e.details&&e.details.gist&&e.details.gist.files||[];e.previewGistFiles=O.map(V=>({filename:e.anonymizeGistContent(V.filename),content:e.anonymizeGistContent(V.content),language:V.language}))}e.watch("details.gist.files",ce,!0),e.watch("terms",ce);function be(){e.conference&&t.get("/api/conferences/"+e.conference).then(O=>{e.conference_data=O.data,e.conference_data.startDate=new Date(e.conference_data.startDate),e.conference_data.endDate=new Date(e.conference_data.endDate),e.options.expirationDate=new Date(e.conference_data.endDate),e.options.expirationMode="remove",e.options.update=e.conference_data.options.update,e.options.image=e.conference_data.options.image,e.options.pdf=e.conference_data.options.pdf,e.options.notebook=e.conference_data.options.notebook,e.options.link=e.conference_data.options.link},()=>{e.conference_data=null})}function he(){g("repoId","used",!0),g("repoId","format",!0),g("pullRequestId","used",!0),g("pullRequestId","format",!0),g("gistId","used",!0),g("gistId","format",!0),g("sourceUrl","used",!0),g("sourceUrl","missing",!0),g("sourceUrl","access",!0),g("sourceUrl","github",!0),g("commit","exists",!0),g("conference","activated",!0),g("terms","format",!0),e.termsRegexWarning=!1}function me(){let O=e.anonymize&&e.anonymize.expirationDate;return!e.options.expirationDate||O&&O.invalid?(O&&O.setDirty&&O.setDirty(),e.error="Please choose a valid expiration date.",!0):!1}function ae(O){let V=e.detectedType==="pr"?"pullRequestId":e.detectedType==="gist"?"gistId":"repoId";switch(O){case"repoId_already_used":g(V,"used",!1);break;case"invalid_repoId":g(V,"format",!1);break;case"options_not_provided":g(V,"format",!1);break;case"repo_already_anonymized":g("sourceUrl","used",!1);break;case"invalid_terms_format":g("terms","format",!1);break;case"repo_not_found":g("sourceUrl","missing",!1);break;case"repo_not_accessible":g("sourceUrl","access",!1);break;case"commit_not_found":g("commit","exists",!1);break;case"conf_not_activated":g("conference","activated",!1);break}}e.coauthors=e.coauthors||[],e.coauthorResults=[],e.coauthorError="",e.searchCoauthors=()=>{let O=(e.coauthorSearch||"").trim();if(e.coauthorError="",O.length<2){e.coauthorResults=[];return}t.get("/api/user/search/github-users",{params:{q:O}}).then(V=>{let j=new Set((e.coauthors||[]).map(Z=>(Z.username||"").toLowerCase()));e.coauthorResults=(V.data||[]).filter(Z=>!j.has((Z.username||"").toLowerCase()))},()=>{e.coauthorResults=[]})},e.addCoauthor=(O,V)=>{V&&V.preventDefault(),!(!O||!O.username)&&t.post("/api/repo/"+e.repoId+"/coauthors",{username:O.username}).then(j=>{e.coauthors=j.data||[],e.coauthorResults=[],e.coauthorSearch="",e.coauthorError=""},j=>{let Z=j&&j.data&&j.data.error||"unknown_error";e.coauthorError=Z})},e.removeCoauthor=O=>{!O||!O.username||confirm("Remove co-author "+O.username+"?")&&t.delete("/api/repo/"+e.repoId+"/coauthors/"+encodeURIComponent(O.username)).then(V=>{e.coauthors=V.data||[]},V=>{let j=V&&V.data&&V.data.error||"unknown_error";e.coauthorError=j})},e.anonymizeRepo=O=>{if(me())return;O.target.disabled=!0;let V=parseGithubUrl(e.sourceUrl),j={repoId:e.repoId,terms:e.terms.trim().split(` -`).filter(oe=>oe),fullName:`${V.owner}/${V.repo}`,repository:e.sourceUrl,options:e.options,source:e.source,conference:e.conference};e.details&&(j.options.pageSource=e.details.pageSource),he();let Z=e.isUpdate?"/api/repo/"+e.repoId:"/api/repo/";t.post(Z,j,{headers:{"Content-Type":"application/json"}}).then(()=>{window.location.href="/status/"+e.repoId},oe=>{oe.data&&(i("ERRORS."+oe.data.error).then(Pe=>{e.error=Pe},console.error),ae(oe.data.error))}).finally(()=>{O.target.disabled=!1})},e.anonymizeGist=O=>{if(me())return;O.target.disabled=!0;let V=parseGithubUrl(e.sourceUrl),j={gistId:e.gistId,terms:e.terms.trim().split(` -`).filter(oe=>oe),source:{gistId:V.gistId},options:e.options,conference:e.conference};he();let Z=e.isUpdate?"/api/gist/"+e.gistId:"/api/gist/";t.post(Z,j,{headers:{"Content-Type":"application/json"}}).then(()=>{window.location.href="/gist/"+e.gistId},oe=>{oe.data&&(i("ERRORS."+oe.data.error).then(Pe=>{e.error=Pe},console.error),ae(oe.data.error))}).finally(()=>{O.target.disabled=!1})},e.anonymizePullRequest=O=>{if(me())return;O.target.disabled=!0;let V=parseGithubUrl(e.sourceUrl),j={pullRequestId:e.pullRequestId,terms:e.terms.trim().split(` -`).filter(oe=>oe),source:{repositoryFullName:`${V.owner}/${V.repo}`,pullRequestId:V.pullRequestId},options:e.options,conference:e.conference};he();let Z=e.isUpdate?"/api/pr/"+e.pullRequestId:"/api/pr/";t.post(Z,j,{headers:{"Content-Type":"application/json"}}).then(()=>{window.location.href="/pr/"+e.pullRequestId},oe=>{oe.data&&(i("ERRORS."+oe.data.error).then(Pe=>{e.error=Pe},console.error),ae(oe.data.error))}).finally(()=>{O.target.disabled=!1})},e.watch("conference",()=>{be()}),e.watch("terms",()=>{e.detectedType==="repo"&&I(),e.detectedType==="pr"&&J(),e.detectedType==="gist"&&ie()}),e.watch("options.image",()=>{e.detectedType==="repo"&&I(),e.detectedType==="pr"&&J(),e.detectedType==="gist"&&ie()}),e.watch("options.link",()=>{e.detectedType==="repo"&&I(),e.detectedType==="pr"&&J(),e.detectedType==="gist"&&ie()}),e.watch("details",()=>{e.detectedType==="pr"&&J(),e.detectedType==="gist"&&ie()},!0)},Bo=function(e,t,o,r,n,i){let a=ft(),u=rs(),p=0,h=!1;e.on("dispose",()=>{h=!0,p++,v&&v.resolve()}),e.files=[],e.isMac=/Mac|iPhone|iPad|iPod/.test(navigator.platform||navigator.userAgent),e.fileSearchQuery="",e.fileSearchResults=null,e.fileSearchLoading=!1,u(document,"keydown",function(U){if((U.metaKey||U.ctrlKey)&&U.key==="k"){U.preventDefault();var de=document.querySelector(".tree-search-input");de&&(de.focus(),de.select())}});var v=null;e.onFileSearchChange=function(){v&&(v.resolve(),v=null);let U=e.fileSearchQuery;if(!U||U.length<2){e.fileSearchResults=null,e.fileSearchLoading=!1;return}e.fileSearchLoading=!0;let de=i.defer();v=de,t.get(`/api/repo/${e.repoId}/files/search?q=${encodeURIComponent(U)}`,{timeout:de.promise}).then(function(se){if(!(h||v!==de)){v=null,e.fileSearchLoading=!1;var ie={};e.files.forEach(function(F){ie[(F.path||"")+"/"+F.name]=!0});for(var ce=[],be={},he=0;he0&&e.files.push.apply(e.files,ce);for(var oe=[],Pe=0;Pe0&&e.files.push.apply(e.files,oe),e.fileSearchResults=se.data}},function(){!h&&v===de&&(v=null,e.fileSearchLoading=!1,e.fileSearchResults=[])})};let g={yml:"yaml",txt:"text",py:"python",js:"javascript",ts:"typescript"},f=["license","txt"],b=["png","jpg","jpeg","gif","svg","ico","bmp","tiff","tif","webp","avif","heif","heic"],_=["wav","mp3","ogg","wma","flac","aac","m4a"],k=["mp4","avi","webm","mov","mpg","mpeg","mkv","flv","wmv","3gp","3g2","m4v","f4v","f4p","f4a","f4b"];e.on("routeUpdate",function(U,de){if(e.repoId!=r.repoId)return K();if((r.path||"")!=e.filePath){e.filePath=r.path||"",e.paths=e.filePath.split("/").filter(se=>se&&se.trim().length>0),J();for(let se=0;se0?e.paths.slice(0,se).join("/"):"";e.files.some(be=>be.path===ie)||e.getFiles(ie)}}});function R(){if(e.paths[0]!="")return;let U=["readme.md","readme.txt","readme.org","readme.1st","readme"],de={};for(let ie of e.files)ie.name.toLowerCase().indexOf("readme")>-1&&(de[ie.name.toLowerCase()]=ie.name);let se=null;for(let ie of U)if(de[ie]){se=ie;break}if(!se&&Object.keys(de).length>0&&(se=Object.keys(de)[0]),se){let ie=o.url();ie[ie.length-1]!="/"&&(ie+="/"),o.url(ie+encodePathForUrl(de[se]))}}e.fileCounts=null,e.getFiles=function(U){let de=e.repoId;return t.get(`/api/repo/${e.repoId}/files/?path=${encodeURIComponent(U)}&v=${e.options.lastUpdateDate}`).then(function(se){if(h||de!==e.repoId)return[];let ie=U||"";return e.files=e.files.filter(ce=>ce.path!==ie),e.files.push(...se.data),se.data},function(se){if(h||de!==e.repoId)return[];e.type="error",e.content=se&&se.data&&se.data.error||"unknown_error",e.files=[]})};function S(){let U=e.repoId;t.get(`/api/repo/${e.repoId}/files/counts`).then(function(de){h||U!==e.repoId||(e.fileCounts=de.data)},function(){e.fileCounts={}})}function D(){return e.files.filter(U=>U.name==e.paths[e.paths.length-1]&&U.path==e.paths.slice(0,e.paths.length-1).join("/"))[0]}var I=null;e.on("dispose",function(){I&&a.interval.cancel(I)});function C(U){if(h)return;let de=e.repoId;t.get(`/api/repo/${e.repoId}/options`).then(se=>{if(!(h||de!==e.repoId)){if(e.options=se.data,e.options.url){window.location=e.options.url;return}U&&U(se.data)}},se=>{if(!(h||de!==e.repoId)){var ie=se.data||{};if(ie.error==="rate_limited"&&ie.resetAt){let be=function(){var he=Math.max(0,Math.ceil((e.rateLimitResetAt-Date.now())/1e3));if(he<=0)e.rateLimitCountdown="",e.rateLimitResetAt=0,I&&(a.interval.cancel(I),I=null),C(U);else{var me=Math.floor(he/60),ae=he%60;e.rateLimitCountdown=me>0?me+"m "+ae+"s":ae+"s"}};var ce=be;e.type="rate_limited",e.rateLimitResetAt=ie.resetAt,I&&a.interval.cancel(I),be(),I=a.interval(be,1e3)}else ie.error==="repository_not_ready"?(e.type="loading",a.timeout(function(){C(U)},3e3)):(e.type="error",e.content=ie.error)}})}e.toggleSource=function(){e.showSource=!e.showSource},e.toggleAllowScripts=function(){e.allowScripts=!e.allowScripts};function A(U){return g[U]?g[U]:U}function q(U){return U=="pdf"?"pdf":U=="html"||U=="htm"?"html-doc":U=="md"?"md":U=="org"?"org":U=="ipynb"?"IPython":f.indexOf(U)>-1?"text":b.indexOf(U)>-1?"image":k.indexOf(U)>-1?"media":_.indexOf(U)>-1?"audio":"code"}function ee(U,de){let se=p;if(!U){e.type="error",e.content="no_file_selected";return}let ie=e.type;e.type="loading",e.content="loading";let ce=de&&de.sha||"0";t.get(`/api/repo/${e.repoId}/file/${encodePathForUrl(U)}?v=`+ce,{transformResponse:be=>be}).then(be=>{if(!(h||se!==p)){if(e.type=ie,e.content=be.data,e.content==""&&(e.content=null),e.type=="md"&&(e.content=renderMD(be.data,o.url()+"/../"),e.type="html"),e.type=="org"){let me=contentAbs2Relative(be.data);var he=new Org.Parser().parse(me).convert(Org.ConverterHTML,{headerOffset:1,exportFromLineNumber:!1,suppressSubScriptHandling:!0,suppressAutoLink:!1});e.content=DOMPurify.sanitize(he.toString()),e.type="html"}e.type=="code"&&be.headers("content-type")=="application/octet-stream"&&(e.type="binary",e.content="binary"),a.timeout(()=>{Prism.highlightAll()},50)}},be=>{if(!(h||se!==p)){e.type="error",e.content="unknown_error";try{be.data=JSON.parse(be.data),be.data.error?e.content=be.data.error:e.content=be.data}catch{console.log(be),be.status==-1?e.content="request_error":be.status==502&&(e.content="unreachable")}}})}function J(){p++,e.content="",e.file=D();let U="0";e.file&&e.file.sha&&(U=e.file.sha),e.url=`/api/repo/${e.repoId}/file/${encodePathForUrl(e.filePath)}?v=${U}`;let de=e.filePath.substring(0,e.filePath.lastIndexOf("/")+1);e.fileBaseUrl=`/api/repo/${e.repoId}/file/${de?encodePathForUrl(de):""}`,e.showSource=!1,e.allowScripts=!1;let se=e.filePath.toLowerCase(),ie=se.lastIndexOf(".");if(ie>-1&&(se=se.substring(ie+1)),e.aceOption={readOnly:!0,useWrapMode:!0,showGutter:!0,theme:"chrome",useSoftTab:!0,tabSize:2,fontSize:15,keyBinding:"vscode",fullLineSelection:!0,highlightActiveLine:!1,highlightGutterLine:!1,cursor:"hide",showInvisibles:!1,showIndentGuides:!0,showPrintMargin:!1,highlightSelectedWord:!1,enableBehaviours:!0,fadeFoldWidgets:!1,mode:A(se),onLoad:function(ce){let be=ace.require("ace/range").Range,he=null;function me(V,j){he!==null&&(ce.session.removeMarker(he),he=null),V!=null&&(he=ce.session.addMarker(new be(V,0,j,1),"highlighted-line","fullLine"))}function ae(V){let j=window.location.hash.match(/^#L(\d+)(?:-L(\d+))?/);if(!j){me(null);return}let Z=parseInt(j[1])-1,oe=j[2]?parseInt(j[2])-1:Z;me(Z,oe),V&&a.timeout(()=>{ce.scrollToLine(Z,!0,!0,function(){})},100)}ae(!0);let O=null;ce.on("guttermousedown",function(V){let j=V.getDocumentPosition().row,Z=V.domEvent&&V.domEvent.shiftKey,oe=j,Pe=j;Z&&O!==null?(oe=Math.min(O,j),Pe=Math.max(O,j)):O=j;let Ue=oe===Pe?`#L${oe+1}`:`#L${oe+1}-L${Pe+1}`,$e=window.location.pathname+window.location.search+Ue;window.history.replaceState(null,"",$e),me(oe,Pe),V.stop()}),u(window,"hashchange",()=>ae(!1)),ce.setFontSize(e.aceOption.fontSize),ce.setReadOnly(e.aceOption.readOnly),ce.setKeyboardHandler(e.aceOption.keyBinding),ce.setSelectionStyle(e.aceOption.fullLineSelection?"line":"text"),ce.setOption("displayIndentGuides",!0),ce.setHighlightActiveLine(e.aceOption.highlightActiveLine),e.aceOption.cursor=="hide"&&(ce.renderer.$cursorLayer.element.style.display="none"),ce.setHighlightGutterLine(e.aceOption.highlightGutterLine),ce.setShowInvisibles(e.aceOption.showInvisibles),ce.setDisplayIndentGuides(e.aceOption.showIndentGuides),ce.renderer.setShowPrintMargin(e.aceOption.showPrintMargin),ce.setHighlightSelectedWord(e.aceOption.highlightSelectedWord),ce.session.setUseSoftTabs(e.aceOption.useSoftTab),ce.session.setTabSize(e.aceOption.tabSize),ce.setBehavioursEnabled(e.aceOption.enableBehaviours),ce.setFadeFoldWidgets(e.aceOption.fadeFoldWidgets)}},e.on("dark-mode",(ce,be)=>{be?e.aceOption.theme="nord_dark":e.aceOption.theme="chrome"}),e.isDarkMode&&(e.aceOption.theme="nord_dark"),e.type=q(se),e.type=="pdf"){e.content="pdf";return}ee(e.filePath,e.file)}function K(){p++,e.files=[],e.content=null,e.fileCounts=null,e.fileSearchQuery="",e.onFileSearchChange(),e.repoId=r.repoId,e.type="loading",e.filePath=r.path||"",e.paths=e.filePath.split("/");let U=e.repoId;C(function(de){S();var se=i.resolve();for(let ie=0;ie0?e.paths.slice(0,ie).join("/"):"";se=se.then(function(){return e.getFiles(ce)}).then(function(){if(e.type==="error")return i.reject("error")})}se.then(function(){h||U!==e.repoId||(e.files.length==1&&e.files[0].name==""?(e.files=[],e.type="empty"):(R(),J()))})})}K()},Na=function(e,t,o,r,n){async function i(p){t.get(`/api/pr/${e.pullRequestId}/options`).then(h=>{if(e.options=h.data,e.options.url){window.location=e.options.url;return}p&&p(h.data)},h=>{e.type="error",e.content=h.data.error})}async function a(p){t.get(`/api/pr/${e.pullRequestId}/content`).then(h=>{e.details=h.data,e.tabState={active:h.data.diff?"diff":"comments"},p&&p(h.data)},h=>{e.type="error",e.content=h.data.error})}function u(){e.pullRequestId=r.pullRequestId,e.type="loading",i(p=>{a()})}u()},Sa=function(e,t,o,r,n){async function i(p){t.get(`/api/gist/${e.gistId}/options`).then(h=>{if(e.options=h.data,e.options.url){window.location=e.options.url;return}p&&p(h.data)},h=>{e.type="error",e.content=h.data.error})}async function a(p){t.get(`/api/gist/${e.gistId}/content`).then(h=>{e.details=h.data;let v=h.data&&h.data.files&&h.data.files.length;e.tabState={active:v?"files":"comments"},p&&p(h.data)},h=>{e.type="error",e.content=h.data.error})}function u(){e.gistId=r.gistId,e.type="loading",i(()=>{a()})}u()},Da=function(e,t,o){e.watch("user.status",()=>{e.user==null&&o.url("/")}),e.user==null&&o.url("/"),e.conferences=[],e.search="";let r="conferences.filterPrefs",n={filters:{status:{ready:!0,expired:!1,removed:!1}},orderBy:"name"},i=loadFilterPrefs(r)||{};e.filters={status:Object.assign({},n.filters.status,i.filters&&i.filters.status||{})},e.orderBy=i.orderBy||n.orderBy,e.watch("orderBy",()=>{saveFilterPrefs(r,{filters:e.filters,orderBy:e.orderBy})}),e.watch("filters",()=>{saveFilterPrefs(r,{filters:e.filters,orderBy:e.orderBy})},!0),e.removeConference=function(u){if(confirm(`Are you sure that you want to remove the conference ${u.name}? All the repositories linked to this conference will expire.`)){let p=Le({title:`Removing ${u.name}...`,date:new Date,body:`The conference ${u.name} is going to be removed.`});e.addToast(p),t.delete(`/api/conferences/${u.conferenceID}`).then(()=>{p.title=`${u.name} is removed.`,p.body=`The conference ${u.name} is removed.`,a()})}};function a(){t.get("/api/conferences/").then(u=>{e.conferences=u.data||[]},u=>{console.error(u)})}a(),e.conferenceFilter=u=>e.filters.status[u.status]==!1?!1:e.search.trim().length==0||u.name.indexOf(e.search)>-1||u.conferenceID.indexOf(e.search)>-1},Go=function(e,t,o,r){e.watch("user.status",()=>{e.user==null&&o.url("/")}),e.user==null&&o.url("/"),e.plans=[],e.editionMode=!1;function n(){t.get("/api/conferences/"+r.conferenceId).then(v=>{e.options=v.data,e.options.startDate=new Date(e.options.startDate),e.options.endDate=new Date(e.options.endDate)})}r.conferenceId&&(e.editionMode=!0,n());function i(){t.get("/api/conferences/plans").then(v=>{e.plans=v.data,e.plan=e.plans.filter(g=>g.id==e.options.plan.planID)[0]})}i();let a=new Date;a.setDate(1),a.setMonth(a.getMonth()+1);let u=new Date(a);u.setMonth(a.getMonth()+7,0),e.options={startDate:a,endDate:u,plan:{planID:"free_conference"},options:{link:!0,image:!0,pdf:!0,notebook:!0,update:!0,page:!0}},e.plan=null,e.watch("options.plan.planID",()=>{e.plan=e.plans.filter(v=>v.id==e.options.plan.planID)[0]});function p(){e.conference.name.setValidity("required",!0),e.conference.conferenceID.setValidity("pattern",!0),e.conference.conferenceID.setValidity("required",!0),e.conference.conferenceID.setValidity("used",!0),e.conference.startDate.setValidity("required",!0),e.conference.startDate.setValidity("invalid",!0),e.conference.endDate.setValidity("required",!0),e.conference.endDate.setValidity("invalid",!0),e.conference.setValidity("error",!0)}function h(v){switch(v){case"conf_name_missing":e.conference.name.setValidity("required",!1);break;case"conf_id_missing":e.conference.conferenceID.setValidity("required",!1);break;case"conf_id_format":e.conference.conferenceID.setValidity("pattern",!1);break;case"conf_id_used":e.conference.conferenceID.setValidity("used",!1);break;case"conf_start_date_missing":e.conference.startDate.setValidity("required",!1);break;case"conf_end_date_missing":e.conference.endDate.setValidity("required",!1);break;case"conf_start_date_invalid":e.conference.startDate.setValidity("invalid",!1);break;case"conf_end_date_invalid":e.conference.endDate.setValidity("invalid",!1);break;default:e.conference.setValidity("error",!1);break}}e.submit=function(){let v=Le({title:`Creating ${e.options.name}...`,date:new Date,body:`The conference ${e.options.conferenceID} is in creation.`});e.editionMode&&(v.title=`Updating ${e.options.name}...`,v.body=`The conference '${e.options.conferenceID}' is updating.`),e.addToast(v),p(),t.post("/api/conferences/"+(e.editionMode?e.options.conferenceID:""),e.options).then(()=>{e.editionMode?(v.title=`${e.options.name} updated`,v.body=`The conference '${e.options.conferenceID}' is updated.`):(v.title=`${e.options.name} created`,v.body=`The conference '${e.options.conferenceID}' is created.`),o.url("/conference/"+e.options.conferenceID)},g=>{h(g.data.error),e.removeToast(v)})}},Ra=function(e,t,o,r){e.watch("user.status",()=>{e.user==null&&o.url("/")}),e.user==null&&o.url("/"),e.conference=null,e.search="",e.filters={status:{ready:!0,expired:!1,removed:!1}},e.orderBy="-anonymizeDate",e.repoFiler=i=>e.filters.status[i.status]==!1?!1:e.search.trim().length==0||i.source.fullName.indexOf(e.search)>-1||i.repoId.indexOf(e.search)>-1;function n(){t.get("/api/conferences/"+r.conferenceId).then(i=>{e.conference=i.data})}n()};var Ta=function(e,t,o){let r=ft(),n=rs();e.Math=Math,e.watch("user.status",()=>{e.user==null&&o.url("/")}),e.user==null&&o.url("/"),e.repositories=[],e.total=-1,e.totalPage=0,e.statusCounts=[],e.totalSize=0,e.selected={},e.allSelected=!1;let i=_=>{if(_.key==="/"&&!["INPUT","TEXTAREA","SELECT"].includes(document.activeElement?.tagName)){_.preventDefault();let k=document.querySelector('.admin-filter-toolbar input[type="search"]');k&&k.focus()}};n(document,"keydown",i),e.on("dispose",()=>document.removeEventListener("keydown",i)),e.clearFilter=_=>{_==="dateRange"?(e.query.dateFrom="",e.query.dateTo=""):e.query[_]="",e.query.page=1},e.chips=[];let a=()=>{let _=[];e.query.owner&&_.push({key:"owner",label:"Owner",value:e.query.owner}),e.query.conference&&_.push({key:"conference",label:"Conference",value:e.query.conference}),e.chips=_};e.showStatusMessage=_=>{let k=_.statusMessage||"(no message)";window.prompt(`Status message for ${_.repoId} (${_.status}):`,k)},e.fetchGithubInfo=_=>{let k=window.open("","_blank");k&&k.document.write("
Loading GitHub info for "+_.repoId+"...
"),t.get("/api/admin/repos/"+_.repoId+"/github").then(R=>{k&&(k.document.open(),k.document.write('
'+JSON.stringify(R.data,null,2).replace(/[<>]/g,S=>S==="<"?"<":">")+"
"),k.document.close())},R=>{let S=R&&R.data?JSON.stringify(R.data,null,2):String(R);k&&(k.document.body.innerHTML='
'+S+"
")})},e.statusCountFor=_=>{let k=(e.statusCounts||[]).find(R=>R._id===_);return k?k.count:0},e.statusStorageFor=_=>{let k=(e.statusCounts||[]).find(R=>R._id===_);return k?k.storage:0},e.isErrorsOnly=()=>e.query&&e.query.error&&!e.query.ready&&!e.query.preparing&&!e.query.expired&&!e.query.removed,e.toggleErrorsOnly=()=>{e.isErrorsOnly()?Object.assign(e.query,{ready:!1,preparing:!0,expired:!1,removed:!1,error:!0}):Object.assign(e.query,{ready:!1,preparing:!1,expired:!1,removed:!1,error:!0}),e.query.page=1},e.toggleSortDirection=()=>{e.query.direction=e.query.direction==="asc"?"desc":"asc"},e.sortBy=_=>{e.query.sort===_?e.query.direction=e.query.direction==="asc"?"desc":"asc":(e.query.sort=_,e.query.direction="desc"),e.query.page=1},e.sortIcon=_=>e.query.sort===_?e.query.direction==="asc"?"fa-arrow-up":"fa-arrow-down":"";let u="admin.repos.filterPrefs",p={page:1,limit:25,sort:"lastView",direction:"desc",search:"",owner:"",conference:"",dateFrom:"",dateTo:"",ready:!1,expired:!1,removed:!1,error:!0,preparing:!0},h=loadFilterPrefs(u)||{};e.query=Object.assign({},p,h,{page:1,search:""});let v=o.search();v.owner&&(e.query.owner=v.owner),v.conference&&(e.query.conference=v.conference),v.search&&(e.query.search=v.search);let g="admin.repos.presets";e.presets=JSON.parse(localStorage.getItem(g)||"[]"),e.savePreset=()=>{let _=window.prompt("Preset name:");if(!_)return;let k=Object.assign({},e.query);delete k.page,e.presets=(e.presets||[]).filter(R=>R.name!==_),e.presets.push({name:_,query:k}),localStorage.setItem(g,JSON.stringify(e.presets))},e.applyPreset=_=>{Object.assign(e.query,_.query,{page:1})},e.deletePreset=_=>{e.presets=(e.presets||[]).filter(k=>k.name!==_.name),localStorage.setItem(g,JSON.stringify(e.presets))},e.selectAllOnPage=()=>{e.allSelected=!e.allSelected,e.repositories.forEach(_=>{e.selected[_.repoId]=e.allSelected})},e.selectedCount=()=>Object.values(e.selected||{}).filter(Boolean).length,e.selectedRepos=()=>e.repositories.filter(_=>e.selected[_.repoId]),e.bulkRefresh=()=>{let _=e.selectedRepos();_.length&&confirm(`Force refresh ${_.length} repositories?`)&&_.forEach(k=>e.updateRepository(k))},e.bulkRemoveCache=()=>{let _=e.selectedRepos();_.length&&confirm(`Purge cache for ${_.length} repositories?`)&&_.forEach(k=>e.removeCache(k))},e.clearSelection=()=>{e.selected={},e.allSelected=!1},e.exportCsv=()=>{let _=new URLSearchParams(Object.entries(e.query).filter(([,k])=>k!==""&&k!==!1&&k!=null));_.set("format","csv"),_.set("limit","10000"),window.open("/api/admin/repos?"+_.toString(),"_blank")},e.removeCache=_=>{confirm("Remove cached files for "+_.repoId+"?")&&t.delete("/api/admin/repos/"+_.repoId).then(()=>f(),k=>console.error(k))},e.removeRepository=_=>{confirm("Remove repository "+_.repoId+"?")&&t.delete("/api/repo/"+_.repoId+"/").then(()=>f(),k=>console.error(k))},e.updateRepository=_=>{let k=Le({title:`Refreshing ${_.repoId}...`,date:new Date,body:`The repository ${_.repoId} is going to be refreshed.`});e.toasts.push(k),t.post(`/api/repo/${_.repoId}/refresh`).then(R=>{R.data.status=="ready"?k.title=`${_.repoId} is refreshed.`:k.title=`Refreshing of ${_.repoId}.`},R=>{k.title=`Error during the refresh of ${_.repoId}.`,k.body=R.body})},e.fetchError=null;function f(){e.fetchError=null,t.get("/api/admin/repos",{params:e.query}).then(_=>{e.total=_.data.total,e.totalPage=Math.ceil(_.data.total/e.query.limit),e.repositories=_.data.results,e.statusCounts=_.data.statusCounts||[],e.totalSize=_.data.totalSize||0,e.allSelected=!1},_=>{e.fetchError=_&&_.data&&_.data.error||"Failed to load repositories",console.error(_)})}f();let b=null;e.watch("query",()=>{r.timeout.cancel(b),b=r.timeout(f,500);let{page:_,search:k,...R}=e.query;saveFilterPrefs(u,R),a()},!0),a()},Oa=function(e,t,o){let r=ft(),n=rs();e.Math=Math,e.watch("user.status",()=>{e.user==null&&o.url("/")}),e.user==null&&o.url("/"),e.users=[],e.total=-1,e.totalPage=0,e.statusCounts=[],e.selected={},e.allSelected=!1;let i=f=>{if(f.key==="/"&&!["INPUT","TEXTAREA","SELECT"].includes(document.activeElement?.tagName)){f.preventDefault();let b=document.querySelector('.admin-filter-toolbar input[type="search"]');b&&b.focus()}};n(document,"keydown",i),e.on("dispose",()=>document.removeEventListener("keydown",i)),e.clearFilter=f=>{f==="dateRange"?(e.query.dateFrom="",e.query.dateTo=""):e.query[f]="",e.query.page=1},e.chips=[];let a=()=>{let f=[];e.query.role&&f.push({key:"role",label:"Role",value:e.query.role}),e.chips=f};e.statusCountFor=f=>{let b=(e.statusCounts||[]).find(_=>_._id===f);return b?b.count:0},e.toggleSortDirection=()=>{e.query.direction=e.query.direction==="asc"?"desc":"asc"},e.sortBy=f=>{e.query.sort===f?e.query.direction=e.query.direction==="asc"?"desc":"asc":(e.query.sort=f,e.query.direction="desc"),e.query.page=1},e.sortIcon=f=>e.query.sort===f?e.query.direction==="asc"?"fa-arrow-up":"fa-arrow-down":"";let u="admin.users.filterPrefs",p={page:1,limit:25,sort:"username",direction:"asc",search:"",status:"",role:"",dateFrom:"",dateTo:""},h=loadFilterPrefs(u)||{};e.query=Object.assign({},p,h,{page:1,search:""}),e.selectAllOnPage=()=>{e.allSelected=!e.allSelected,e.users.forEach(f=>{e.selected[f.username]=e.allSelected})},e.selectedCount=()=>Object.values(e.selected||{}).filter(Boolean).length,e.selectedUsers=()=>e.users.filter(f=>e.selected[f.username]),e.banUser=f=>{confirm(`Ban user ${f.username}?`)&&t.post(`/api/admin/users/${f.username}/ban`).then(v,b=>console.error(b))},e.activateUser=f=>{t.post(`/api/admin/users/${f.username}/activate`).then(v,b=>console.error(b))},e.bulkBan=()=>{let f=e.selectedUsers();f.length&&confirm(`Ban ${f.length} users?`)&&f.forEach(b=>e.banUser(b))},e.exportCsv=()=>{let f=new URLSearchParams(Object.entries(e.query).filter(([,b])=>b!==""&&b!==!1&&b!=null));f.set("format","csv"),f.set("limit","10000"),window.open("/api/admin/users?"+f.toString(),"_blank")},e.fetchError=null;function v(){e.fetchError=null,t.get("/api/admin/users",{params:e.query}).then(f=>{e.total=f.data.total,e.totalPage=Math.ceil(f.data.total/e.query.limit),e.users=f.data.results,e.statusCounts=f.data.statusCounts||[],e.allSelected=!1},f=>{e.fetchError=f&&f.data&&f.data.error||"Failed to load users",console.error(f)})}v();let g=null;e.watch("query",()=>{r.timeout.cancel(g),g=r.timeout(v,500);let{page:f,search:b,..._}=e.query;saveFilterPrefs(u,_),a()},!0),a()},Aa=function(e,t,o,r){let n=ft();e.watch("user.status",()=>{e.user==null&&o.url("/")}),e.user==null&&o.url("/"),e.userInfo,e.repositories=[],e.search="",e.selected={},e.allSelected=!1;let i="admin.user.filterPrefs",a={filters:{status:{ready:!0,expired:!0,removed:!0,error:!0,preparing:!0}},sort:"anonymizeDate",direction:"desc"},u=loadFilterPrefs(i)||{};e.filters={status:Object.assign({},a.filters.status,u.filters&&u.filters.status||{})},e.query={sort:u.sort||a.sort,direction:u.direction||a.direction},e.orderBy=(e.query.direction==="asc"?"":"-")+e.query.sort,e.sortBy=f=>{e.query.sort===f?e.query.direction=e.query.direction==="asc"?"desc":"asc":(e.query.sort=f,e.query.direction="desc"),e.orderBy=(e.query.direction==="asc"?"":"-")+e.query.sort},e.sortIcon=f=>e.query.sort===f?e.query.direction==="asc"?"fa-arrow-up":"fa-arrow-down":"",e.watch("query",()=>{saveFilterPrefs(i,{filters:e.filters,sort:e.query.sort,direction:e.query.direction})},!0),e.watch("filters",()=>{saveFilterPrefs(i,{filters:e.filters,sort:e.query.sort,direction:e.query.direction})},!0),e.statusCountFor=f=>(e.repositories||[]).filter(b=>b.status===f).length,e.repoFiler=f=>e.filters.status[f.status]==!1?!1:!!(e.search.trim().length==0||f.source.fullName.indexOf(e.search)>-1||f.repoId.indexOf(e.search)>-1||f.statusMessage&&f.statusMessage.indexOf(e.search)>-1||f.conference&&f.conference.indexOf(e.search)>-1),e.selectAllOnPage=()=>{e.allSelected=!e.allSelected,(e.filteredRepositories||e.repositories).forEach(f=>{e.selected[f.repoId]=e.allSelected})},e.selectedCount=()=>Object.values(e.selected||{}).filter(Boolean).length,e.selectedRepos=()=>e.repositories.filter(f=>e.selected[f.repoId]),e.bulkRefresh=()=>{let f=e.selectedRepos();f.length&&confirm(`Force refresh ${f.length} repositories?`)&&f.forEach(b=>e.updateRepository(b))},e.bulkRemoveCache=()=>{let f=e.selectedRepos();f.length&&confirm(`Purge cache for ${f.length} repositories?`)&&f.forEach(b=>e.removeCache(b))},e.clearSelection=()=>{e.selected={},e.allSelected=!1},e.exportCsv=()=>{let f=e.filteredRepositories||e.repositories,_=["repoId","status","statusMessage","pageView","anonymizeDate","source.fullName","conference","size.storage"].join(","),k=f.map(D=>[D.repoId,D.status,D.statusMessage||"",D.pageView||0,D.anonymizeDate||"",D.source&&D.source.fullName||"",D.conference||"",D.size&&D.size.storage||0].map(I=>{let C=String(I??"");return/[",\n\r]/.test(C)?'"'+C.replace(/"/g,'""')+'"':C}).join(",")),R=new Blob([_+` -`+k.join(` -`)],{type:"text/csv"}),S=document.createElement("a");S.href=URL.createObjectURL(R),S.download=r.username+"-repositories.csv",S.click()},e.showStatusMessage=f=>{let b=f.statusMessage||"(no message)";window.prompt(`Status message for ${f.repoId} (${f.status}):`,b)},e.fetchGithubInfo=f=>{let b=window.open("","_blank");b&&b.document.write("
Loading GitHub info for "+f.repoId+"...
"),t.get("/api/admin/repos/"+f.repoId+"/github").then(_=>{b&&(b.document.open(),b.document.write('
'+JSON.stringify(_.data,null,2).replace(/[<>]/g,k=>k==="<"?"<":">")+"
"),b.document.close())},_=>{let k=_&&_.data?JSON.stringify(_.data,null,2):String(_);b&&(b.document.body.innerHTML='
'+k+"
")})};function p(f){t.get("/api/admin/users/"+f+"/repos",{}).then(b=>{e.repositories=b.data},b=>{console.error(b)})}function h(f){t.get("/api/admin/users/"+f,{}).then(b=>{e.userInfo=b.data},b=>{console.error(b)})}h(r.username),p(r.username),e.banUser=()=>{confirm(`Ban user ${r.username}?`)&&t.post(`/api/admin/users/${r.username}/ban`).then(()=>h(r.username),f=>console.error(f))},e.activateUser=()=>{t.post(`/api/admin/users/${r.username}/activate`).then(()=>h(r.username),f=>console.error(f))},e.promoteUser=()=>{confirm(`Promote ${r.username} to admin?`)&&t.post(`/api/admin/users/${r.username}/promote`).then(()=>h(r.username),f=>console.error(f))},e.demoteUser=()=>{confirm(`Remove admin privileges from ${r.username}?`)&&t.post(`/api/admin/users/${r.username}/demote`).then(()=>h(r.username),f=>console.error(f))},e.tokens=[],e.tokenForm={name:"",plaintext:null};function v(){t.get("/api/admin/tokens").then(f=>{e.tokens=f.data||[]},f=>{f.status!==401&&f.status!==403&&console.error(f)})}v(),e.createToken=()=>{e.tokenForm.name&&t.post("/api/admin/tokens",{name:e.tokenForm.name}).then(f=>{e.tokenForm.plaintext=f.data.token,e.tokenForm.name="",v()},f=>console.error(f))},e.revokeToken=f=>{confirm(`Revoke token "${f.name}"?`)&&t.delete("/api/admin/tokens/"+f.id).then(()=>v(),b=>console.error(b))},e.removeCache=f=>{confirm("Remove cached files for "+f.repoId+"?")&&t.delete("/api/admin/repos/"+f.repoId).then(()=>p(r.username),b=>console.error(b))},e.removeRepository=f=>{confirm("Remove repository "+f.repoId+"?")&&t.delete("/api/repo/"+f.repoId+"/").then(()=>p(r.username),b=>console.error(b))},e.updateRepository=f=>{let b=Le({title:`Refreshing ${f.repoId}...`,date:new Date,body:`The repository ${f.repoId} is going to be refreshed.`});e.toasts.push(b),t.post(`/api/repo/${f.repoId}/refresh`).then(_=>{_.data.status=="ready"?b.title=`${f.repoId} is refreshed.`:b.title=`Refreshing of ${f.repoId}.`},_=>{b.title=`Error during the refresh of ${f.repoId}.`,b.body=_.body})},e.getGitHubRepositories=f=>{t.get(`/api/user/${e.userInfo.username}/all_repositories`,{params:{force:"1"}}).then(b=>{e.userInfo.repositories=b.data})};let g=null;e.watch("query",()=>{n.timeout.cancel(g),g=n.timeout(()=>{p(r.username)},500)},!0)},Ia=function(e,t,o){let r=ft(),n=rs();e.Math=Math,e.watch("user.status",()=>{e.user==null&&o.url("/")}),e.user==null&&o.url("/"),e.conferences=[],e.total=-1,e.totalPage=0,e.statusCounts=[];let i=_=>{if(_.key==="/"&&!["INPUT","TEXTAREA","SELECT"].includes(document.activeElement?.tagName)){_.preventDefault();let k=document.querySelector('.admin-filter-toolbar input[type="search"]');k&&k.focus()}};n(document,"keydown",i),e.on("dispose",()=>document.removeEventListener("keydown",i)),e.clearFilter=_=>{_==="dateRange"?(e.query.dateFrom="",e.query.dateTo=""):e.query[_]="",e.query.page=1},e.chips=[];let a=()=>{let _=[];(e.query.dateFrom||e.query.dateTo)&&_.push({key:"dateRange",label:"Date",value:(e.query.dateFrom||"\u2026")+" \u2013 "+(e.query.dateTo||"\u2026")}),e.chips=_};e.statusCountFor=_=>{let k=(e.statusCounts||[]).find(R=>R._id===_);return k?k.count:0},e.toggleSortDirection=()=>{e.query.direction=e.query.direction==="asc"?"desc":"asc"},e.sortBy=_=>{e.query.sort===_?e.query.direction=e.query.direction==="asc"?"desc":"asc":(e.query.sort=_,e.query.direction="desc"),e.query.page=1},e.sortIcon=_=>e.query.sort===_?e.query.direction==="asc"?"fa-arrow-up":"fa-arrow-down":"";let u="admin.conferences.filterPrefs",p={page:1,limit:25,sort:"name",direction:"asc",search:"",dateFrom:"",dateTo:"",ready:!1,expired:!1,removed:!1,error:!0,preparing:!0},h=loadFilterPrefs(u)||{};e.query=Object.assign({},p,h,{page:1,search:""});let v=o.search();v.search&&(e.query.search=v.search);let g="admin.conferences.presets";e.presets=JSON.parse(localStorage.getItem(g)||"[]"),e.savePreset=()=>{let _=window.prompt("Preset name:");if(!_)return;let k=Object.assign({},e.query);delete k.page,e.presets=(e.presets||[]).filter(R=>R.name!==_),e.presets.push({name:_,query:k}),localStorage.setItem(g,JSON.stringify(e.presets))},e.applyPreset=_=>{Object.assign(e.query,_.query,{page:1})},e.deletePreset=_=>{e.presets=(e.presets||[]).filter(k=>k.name!==_.name),localStorage.setItem(g,JSON.stringify(e.presets))},e.removeConference=_=>{confirm("Remove conference "+_.conferenceID+"?")&&t.delete("/api/admin/conferences/"+_.conferenceID).then(()=>f(),k=>console.error(k))},e.exportCsv=()=>{let _=new URLSearchParams(Object.entries(e.query).filter(([,k])=>k!==""&&k!==!1&&k!=null));_.set("format","csv"),_.set("limit","10000"),window.open("/api/admin/conferences?"+_.toString(),"_blank")},e.fetchError=null;function f(){e.fetchError=null,t.get("/api/admin/conferences",{params:e.query}).then(_=>{e.total=_.data.total,e.totalPage=Math.ceil(_.data.total/e.query.limit),e.conferences=_.data.results,e.statusCounts=_.data.statusCounts||[]},_=>{e.fetchError=_&&_.data&&_.data.error||"Failed to load conferences",console.error(_)})}f();let b=null;e.watch("query",()=>{r.timeout.cancel(b),b=r.timeout(f,500);let{page:_,search:k,...R}=e.query;saveFilterPrefs(u,R),a()},!0),a()},Va=function(e,t,o,r,n){let i=ft();e.watch("user.status",()=>{e.user==null&&o.url("/")}),e.user==null&&o.url("/"),e.queueList=[],e.jobs=[],e.selectedQueue="download",e.selectedStats=null,e.range="1h",e.allStates=["active","waiting","delayed","failed","completed"],e.stateFilter={active:!0,waiting:!0,delayed:!0,failed:!0,completed:!0},e.query={search:"",autoRefresh:!0},e.filteredJobs=()=>(e.jobs||[]).filter(k=>e.stateFilter[k._state]),e.jobProgressPct=k=>k&&k.progress&&typeof k.progress=="object"&&typeof k.progress.percent=="number"?Math.max(0,Math.min(100,Math.round(k.progress.percent))):typeof k.progress=="number"?Math.max(0,Math.min(100,Math.round(k.progress))):null,e.jobDuration=k=>{if(!k.processedOn)return"-";let S=(k.finishedOn||Date.now())-k.processedOn;return S<1e3?S+"ms":(S/1e3).toFixed(1)+"s"},e.metricsPoints=[],e.selectQueue=k=>{e.selectedQueue=k,a(),u()},e.setRange=k=>{e.range=k,u()};function a(){let k={queue:e.selectedQueue,search:e.query.search};t.get("/api/admin/queues",{params:k}).then(R=>{e.queueList=R.data.queues||[],e.jobs=R.data.jobs||[],e.selectedStats=e.queueList.find(S=>S.key===e.selectedQueue)||e.queueList[0]||null},R=>console.error(R))}function u(){t.get("/api/admin/queues/metrics",{params:{queue:e.selectedQueue,range:e.range}}).then(k=>{e.metricsPoints=k.data.points||[],n(f,0)},k=>console.error(k))}a(),u();let p=r(()=>{e.query.autoRefresh&&(a(),u())},15e3);e.on("dispose",()=>r.cancel(p)),e.refreshNow=function(){a(),u()};function h(k){let R=k&&k.data&&(k.data.message||k.data.error)||"Request failed";e.actionError=R,n(()=>{e.actionError=null},5e3),console.error(k)}e.actionError=null,e.removeJob=k=>{t.delete(`/api/admin/queue/${e.selectedQueue}/${k.id}`).then(a,h)},e.retryJob=k=>{t.post(`/api/admin/queue/${e.selectedQueue}/${k.id}`).then(a,h)},e.retryFailed=()=>{confirm(`Retry all failed jobs in ${e.selectedQueue}?`)&&t.post(`/api/admin/queue/${e.selectedQueue}/retry-failed`).then(a,k=>console.error(k))},e.drainSelected=()=>{confirm(`Drain the ${e.selectedQueue} queue?`)&&t.post(`/api/admin/queue/${e.selectedQueue}/drain`).then(a,k=>console.error(k))},e.togglePause=()=>{let k=e.selectedStats&&e.selectedStats.paused?"resume":"pause";t.post(`/api/admin/queue/${e.selectedQueue}/${k}`).then(a,R=>console.error(R))},e.emptyQueue=()=>{confirm(`Empty the ${e.selectedQueue} queue? This removes ALL jobs.`)&&t.post(`/api/admin/queue/${e.selectedQueue}/empty`).then(a,k=>console.error(k))},e.pauseAll=()=>{confirm("Pause all queues?")&&t.post("/api/admin/queues/pause-all").then(a,k=>console.error(k))};let v=null;e.watch("query.search",()=>{i.timeout.cancel(v),v=i.timeout(a,350)}),e.expanded={},e.toggleJob=k=>{e.expanded[k.id]=!e.expanded[k.id]},e.humanTime=k=>{if(!k)return"";let R=new Date(k);return R.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!1})+" "+R.toLocaleDateString([],{month:"short",day:"numeric"})},e.delayCountdown=k=>{if(!k)return"";var R=Math.max(0,Math.ceil((k-Date.now())/1e3));if(R<=0)return"resuming soon";var S=Math.floor(R/60),D=R%60;return"in "+(S>0?S+"m "+D+"s":D+"s")};function g(k){if(k<=0)return{ticks:[0],niceMax:1};let R=Math.pow(10,Math.floor(Math.log10(k))),S=R;k/S<2?S=R/2:k/S>5&&(S=R*2);let D=Math.ceil(k/S)*S,I=[];for(let C=0;C<=D;C+=S)I.push(C);return{ticks:I,niceMax:D}}function f(){var k=document.getElementById("q-throughput-chart");if(!k)return;var R=k.getContext("2d"),S=window.devicePixelRatio||1,D=k.parentElement.getBoundingClientRect(),I=44,C=50,A=20,q=D.width-40,ee=180,J=q-I-C,K=ee-A;k.width=q*S,k.height=ee*S,k.style.width=q+"px",k.style.height=ee+"px",R.setTransform(S,0,0,S,0,0);var U=document.body.classList.contains("dark-mode"),de="#8A857C",se=U?"rgba(255,255,255,0.06)":"rgba(0,0,0,0.06)",ie=U?"#A7B2FF":"#3B4AD6",ce=U?"rgba(167,178,255,0.12)":"rgba(59,74,214,0.08)",be=U?"#F08A82":"#B42318",he=U?"rgba(240,138,130,0.08)":"rgba(180,35,24,0.06)",me=U?"#F5C842":"#B8860B",ae=e.metricsPoints||[];if(ae.length===0){R.fillStyle=de,R.font="12px monospace",R.textAlign="center",R.fillText("No metrics data yet",q/2,ee/2),b=null;return}var O=ae.map(function(M){return M.completed}),V=ae.map(function(M){return M.failed}),j=ae.map(function(M){return M.avgMs}),Z=ae.length,oe=J/(Z-1||1),Pe=Math.max(1,Math.max.apply(null,O),Math.max.apply(null,V)),Ue=g(Pe),$e=Math.max.apply(null,j),F=$e>0?g($e):{ticks:[0],niceMax:1},ne=function(M){return K-M/Ue.niceMax*(K-10)},L=function(M){return K-M/F.niceMax*(K-10)},W=function(M){return I+M*oe};R.textAlign="right",R.textBaseline="middle",R.font="10px monospace",Ue.ticks.forEach(function(M){var Y=ne(M);R.strokeStyle=se,R.lineWidth=1,R.beginPath(),R.moveTo(I,Y),R.lineTo(q-C,Y),R.stroke(),R.fillStyle=de,R.fillText(M>=1e3?(M/1e3).toFixed(1)+"k":String(M),I-6,Y)}),$e>0&&(R.textAlign="left",F.ticks.forEach(function(M){var Y=L(M);R.fillStyle=me,R.fillText(M>=1e3?(M/1e3).toFixed(1)+"s":M+"ms",q-C+6,Y)}));var fe=Date.now(),Ee=Math.min(6,Z);R.textAlign="center",R.textBaseline="top";for(var pe=0;pe0&&(R.beginPath(),j.forEach(function(M,Y){var X=W(Y),Q=L(M);if(Y===0)R.moveTo(X,Q);else{var B=(W(Y-1)+X)/2;R.bezierCurveTo(B,L(j[Y-1]),B,Q,X,Q)}}),R.strokeStyle=me,R.lineWidth=1,R.setLineDash([4,3]),R.stroke(),R.setLineDash([])),b={pts:ae,maxLen:Z,marginLeft:I,step:oe,totalW:q,toX:W}}var b=null;function _(){var k=document.getElementById("q-throughput-chart");if(!(!k||k._tipBound)){k._tipBound=!0;var R=document.getElementById("q-chart-tooltip"),S=document.getElementById("q-chart-crosshair");k.addEventListener("mousemove",function(D){if(!(!b||!R||!S)){var I=b,C=k.getBoundingClientRect(),A=D.clientX-C.left,q=Math.round((A-I.marginLeft)/I.step);if(q<0||q>=I.maxLen){R.style.display="none",S.style.display="none";return}var ee=I.pts[q],J=Date.now(),K=Math.round((J-ee.ts)/6e4),U;if(K<=0)U="now";else if(K<60)U=K+"m ago";else if(K<1440){var de=Math.floor(K/60),se=K%60;U=de+"h"+(se?" "+se+"m":"")+" ago"}else U=Math.round(K/1440)+"d ago";var ie='
'+U+'
● completed: '+ee.completed+'/min
● failed: '+ee.failed+"/min
";if(ee.avgMs>0){var ce=ee.avgMs>=1e3?(ee.avgMs/1e3).toFixed(1)+"s":ee.avgMs+"ms";ie+='
● avg time: '+ce+"
"}R.innerHTML=ie;var be=I.toX(q),he=R.offsetWidth,me=be+10;me+he>I.totalW&&(me=be-he-10),R.style.display="block",R.style.left=me+"px",R.style.top="8px",S.style.display="block",S.style.left=be+"px"}}),k.addEventListener("mouseleave",function(){R&&(R.style.display="none"),S&&(S.style.display="none")})}}e.watch("metricsPoints",function(){n(_,50)})},Pa=function(e,t,o,r){let n=ft();e.watch("user.status",()=>{e.user==null&&o.url("/")}),e.user==null&&o.url("/"),e.entries=[],e.visible=[],e.available=!0,e.cap=1e3,e.total=0,e.pageSize=250,e.expanded={},e.detailTab={},e.copyHint="",e.parsedFilterCount=0,e.stats={last24h:0,prev24h:0,delta:0,severity:{error:0,warn:0,info:0},unique:{error:0,warn:0,info:0},buckets:[],dropped:0},e.query={search:"",bucket:"",sort:"recent",group:"code",autoRefresh:!0},e.relTime=S=>{if(!S)return"";let D=new Date(S).getTime();if(isNaN(D))return S;let I=Math.max(0,Date.now()-D),C=Math.floor(I/1e3);if(C<5)return"just now";if(C<60)return`${C}s ago`;let A=Math.floor(C/60);if(A<60)return`${A}m ago`;let q=Math.floor(A/60);if(q<24)return`${q}h ago`;let ee=Math.floor(q/24);return ee<7?`${ee}d ago`:new Date(S).toLocaleDateString()},e.absTime=S=>{if(!S)return"";let D=new Date(S);return isNaN(D.getTime())?S:D.toLocaleString()},e.absTimeShort=S=>{if(!S)return"";let D=new Date(S);return isNaN(D.getTime())?S:D.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!1})};let i=/^[a-zA-Z][a-zA-Z0-9]*(?:_[a-zA-Z0-9]+)+$/;function a(S,D){let I=S&&(S.httpStatus||S.status)||null;if(typeof I=="number"){if(I>=500)return"error";if(I===401||I===403||I===404)return"info";if(I>=400)return"warn"}return D==="error"?"error":D==="warn"?"warn":"info"}function u(S){let D=(S.raw||[]).find(q=>q&&typeof q=="object"&&!Array.isArray(q));if(D){D.message&&i.test(D.message)?(S.displayMessage=D.message,S.displayContext=S.message):D.code&&i.test(String(D.code))?(S.displayMessage=String(D.code),S.displayContext=S.message):D.name&&D.name!=="AnonymousError"&&D.name!=="Error"?(S.displayMessage=D.name,S.displayContext=D.message||S.message):S.displayMessage=S.message,S._status=D.httpStatus||D.status||null,S._url=D.url||null,S._method=D.method||null,S._repoId=D.repoId||D.detail||null,S._detail=D.detail&&D.detail!==S._repoId?D.detail:null;let q=typeof D.stack=="string"?D.stack:null;for(var I=[D.cause,D.err].filter(Boolean),C=0;!q&&C{K==null||K===""||I.push([J,K])};C("name",D&&D.name),C("code",S.displayMessage||D&&D.message),S._bucket&&C("kind",S._bucket),C("httpStatus",D&&D.httpStatus),D&&D.status&&!D.httpStatus&&C("status",D.status),C("module",S.module);let A=D&&D.detail;if(typeof A=="string"){let J=A.trim();if(J[0]==="{"||J[0]==="[")try{A=JSON.parse(A)}catch{}}if(C("detail",A),C("repoId",D&&D.repoId),C("filePath",D&&D.filePath),C("upstreamStatus",D&&D.upstreamStatus),C("upstreamBody",D&&D.upstreamBody),C("url",S._url),C("err",D&&D.err),C("cause",D&&!D.err&&D.cause),C("ts",S.ts),!I.length)return JSON.stringify(S,null,2);let q=I.reduce((J,K)=>Math.max(J,K[0].length),0),ee=["{"];return I.forEach(([J,K],U)=>{let se=` ${`"${J}":`.padEnd(q+3," ")} `,ie=Ume===0?he:be+he).join(` +`).map(h=>h.trim()).filter(h=>h.length>0),options:e.options};e.saving=!0,e.error=null,t.post("/api/user/default",p).then(()=>{i(),e.saving=!1,e.message="Saved",a&&r.cancel(a),a=r(()=>{e.message=null},2500)},h=>{e.saving=!1;let v=h&&h.data&&h.data.error;o("ERRORS."+v).then(g=>{e.error=g},()=>{e.error="Unable to save your defaults. Please try again."})})},e.deleteAccount=()=>{confirm("Delete your account? All your anonymized repositories, gists, and pull requests will be removed, and your personal data will be erased. This cannot be undone.")&&(e.deletingAccount=!0,t.delete("/api/user").then(()=>{window.location.href="/"},()=>{e.deletingAccount=!1,e.deleteError="Unable to delete the account. Please try again."}))}},Ra=function(e,t,o){e.repoId=null,e.repoUrl=null,e.claim=()=>{t.post("/api/repo/claim",{repoId:e.repoId,repoUrl:e.repoUrl}).then(r=>{o.url("/dashboard")},r=>{e.error=r.data,e.claimForm.repoUrl.setValidity("not_found",!1),e.claimForm.repoId.setValidity("not_found",!1)})}},Ta=function(e,t,o,r,n){e.user&&!e.user.status&&o.url("/dashboard"),e.watch("user.status",()=>{e.user&&!e.user.status&&o.url("/dashboard")}),e.features=[{key:"anonymize",num:"01",eyebrow:"Anonymize",title:"Double-anonymous,",accent:"your rules.",text:"Choose what reviewers may see: links, images, PDFs, notebooks, GitHub Pages. Add your own terms, with regex if you need it, and pick the expiration date.",cta:"Start an anonymization",href:"/anonymize",url:"anonymous.4open.science/anonymize",img:"/imgs/anonymize.png",alt:"The anonymize form: source repository, terms to redact, options and a live README preview"},{key:"review",num:"02",eyebrow:"Review",title:"Reviewers browse",accent:"the real thing.",text:"Highlighted source code, rendered PDFs, images, and notebooks, in a familiar file explorer. GitHub Pages is also supported.",cta:"Open the example",href:"https://anonymous.4open.science/r/840c8c57-3c32-451e-bf12-0e20be300389/",target:"_self",url:"anonymous.4open.science/r/840c8c57-\u2026",img:"/imgs/explorer.png",alt:"The repository explorer with a file tree and a rendered README"},{key:"manage",num:"03",eyebrow:"Manage",title:"One dashboard,",accent:"until the decision.",text:"Monitor views, edit configuration, remove or update your repository. Program chairs can group submissions under a conference with one shared expiry.",cta:"Open the dashboard",href:"/dashboard",needsUser:!0,url:"anonymous.4open.science/dashboard",img:"/imgs/dashboard.png",alt:"The dashboard listing anonymized repositories with status, views and expiry"}],e.feature=e.features[0].key,e.selectFeature=function(u){e.feature=u},e.featureHref=function(u){return u.needsUser&&!e.user?"/github/login":u.href},e.featureTarget=function(u){return u.needsUser&&!e.user?"_self":u.target||void 0},e.featureKeydown=function(u,p){let h={ArrowDown:1,ArrowRight:1,ArrowUp:-1,ArrowLeft:-1,Home:"first",End:"last"}[u.key];if(h===void 0)return;u.preventDefault();let v=e.features.length,g=h==="first"?0:h==="last"?v-1:(p+h+v)%v;e.feature=e.features[g].key,n(()=>{let f=r.document.getElementById("feature-tab-"+e.feature);f&&f.focus()})},e.cards=[{key:"repositories",total:0,label:"repositories anonymized"},{key:"users",total:0,label:"researchers"},{key:"pageViews",total:0,label:"page views"},{key:"pullRequests",total:0,label:"pull requests"}];function i(){t.get("/api/stat/").then(u=>{e.stat=u.data,e.cards[0].total=u.data.nbRepositories,e.cards[1].total=u.data.nbUsers,e.cards[2].total=u.data.nbPageViews,e.cards[3].total=u.data.nbPullRequests})}i();function a(u){let p={series:u,bars:[],viewW:100,deltaToday:0,pctChange:0,pctAbs:0,isUp:!0};if(!u||u.length<2)return p;let h=new Array(u.length-1);for(let b=1;b=2){let b=h[v-2];b&&(p.pctChange=(p.deltaToday-b)/b*100)}return p.pctAbs=Math.round(Math.abs(p.pctChange)),p.isUp=p.pctChange>=0,p}e.history={repositories:a([]),users:a([]),pageViews:a([]),pullRequests:a([])},t.get("/api/stat/history?days=60").then(u=>{let p=u.data||[];e.history={repositories:a(p.map(h=>h.nbRepositories||0)),users:a(p.map(h=>h.nbUsers||0)),pageViews:a(p.map(h=>h.nbPageViews||0)),pullRequests:a(p.map(h=>h.nbPullRequests||0))}})},Oa=function(e,t,o,r,n,i){let a=mt();e.on("routeLeave",function(){$('[data-toggle="tooltip"]').tooltip("dispose")}),e.watch("user.status",()=>{e.user==null&&o.url("/")}),e.user==null&&o.url("/"),a.timeout(()=>{$('[data-toggle="tooltip"]').tooltip()},250),e.items=[],e.search="",e.loading=!0,e.statusKeyLabels={ready:"Ready",progress:"In progress",error:"Error",expired:"Expired",removed:"Removed"};let u=["queue","download","downloaded","preparing","anonymizing"];function p(C){return C==="ready"||C==="error"?C:C==="expired"||C==="expiring"?"expired":C==="removed"||C==="removing"?"removed":(u.indexOf(C)>-1,"progress")}let h=7200*1e3,v="dashboard.filterPrefs",g={typeFilter:"all",filters:{status:{ready:!0,progress:!0,error:!0,expired:!0,removed:!1}},orderBy:"-anonymizeDate"},f=loadFilterPrefs(v)||{};e.typeFilter=f.typeFilter||g.typeFilter,e.filters={status:Object.assign({},g.filters.status,f.filters&&f.filters.status||{})},e.orderBy=f.orderBy||g.orderBy;let w={_name:{label:"Name",defaultDesc:!1},anonymizeDate:{label:"Anonymize date",defaultDesc:!0},status:{label:"Status",defaultDesc:!1},lastView:{label:"Last view",defaultDesc:!0},pageView:{label:"Views",defaultDesc:!0},"options.expirationDate":{label:"Expiration",defaultDesc:!1}};e.sortFields=w,e.sortField=()=>e.orderBy.replace(/^-/,""),e.sortDesc=()=>e.orderBy.charAt(0)==="-",e.sortLabel=()=>{let C=w[e.sortField()];return C?C.label:"Custom"},e.isSortedBy=C=>e.sortField()===C,e.setSort=(C,O)=>{typeof O!="boolean"&&(O=e.isSortedBy(C)?!e.sortDesc():!!(w[C]&&w[C].defaultDesc)),e.orderBy=(O?"-":"")+C},e.toggleSortDirection=()=>{e.setSort(e.sortField(),!e.sortDesc())},e.watchGroup(["typeFilter","orderBy"],()=>{saveFilterPrefs(v,{typeFilter:e.typeFilter,filters:e.filters,orderBy:e.orderBy})}),e.watch("filters",()=>{saveFilterPrefs(v,{typeFilter:e.typeFilter,filters:e.filters,orderBy:e.orderBy})},!0),i.load().then(C=>{e.quota=C},console.error);function k(C,O,P,ee,J,K){C.pageView||(C.pageView=0),C.lastView||(C.lastView=""),C.options=C.options||{},C.options.terms=(C.options.terms||[]).filter(de=>de),C._id=O||"",C._source=ee,C._broken=!O,C._name=O||ee||"(unnamed)",C._editUrl=O?J:null,C._viewUrl=O?K:null,C._broken&&(C.status="error",C.statusMessage="incomplete_record"),C._statusKey=p(C.status);let U=C.anonymizeDate||C.lastView;return C._stale=C._statusKey==="progress"&&!!U&&Date.now()-new Date(U).getTime()>h,C.status==="expired"||C.status==="expiring"?C._expiry={kind:"expired",date:C.options.expirationDate}:C.status!=="ready"?C._expiry={kind:"none"}:C.options.expirationMode==="never"||!C.options.expirationDate?C._expiry={kind:"never"}:C._expiry={kind:"date",date:C.options.expirationDate},C}function b(C){return t.get(C).then(O=>O.data||[],O=>(console.error(O),[]))}function R(){return e.loading=!0,r.all([b("/api/user/anonymized_repositories"),b("/api/user/anonymized_pull_requests"),b("/api/user/anonymized_gists")]).then(C=>{let O=C[0],P=C[1],ee=C[2],J=[];O.forEach(K=>{K._type="repo";let U=K.source||{};J.push(k(K,K.repoId,K.repoId,U.fullName,"/anonymize/"+K.repoId,"/r/"+K.repoId+"/"))}),P.forEach(K=>{K._type="pr";let U=K.source||{};J.push(k(K,K.pullRequestId,K.pullRequestId,U.repositoryFullName+"#"+U.pullRequestId,"/pull-request-anonymize/"+K.pullRequestId,"/pr/"+K.pullRequestId+"/"))}),ee.forEach(K=>{K._type="gist";let U=K.source||{};J.push(k(K,K.gistId,K.gistId,U.gistId,"/gist-anonymize/"+K.gistId,"/gist/"+K.gistId+"/"))}),e.items=J,e.loading=!1})}R(),e.openItem=(C,O)=>{if(!C._viewUrl)return;let P=O&&O.target;P&&P.closest&&P.closest("a, button, .dropdown, input")||(n.location.href=C._viewUrl)},e.hiddenStatusCount=()=>Object.keys(e.filters.status).filter(C=>e.filters.status[C]===!1).length,e.hasHiddenStatus=()=>e.hiddenStatusCount()>0,e.hasActiveFilters=()=>e.typeFilter!=="all"||e.search.trim().length>0||Object.keys(e.filters.status).some(C=>e.filters.status[C]===!1),e.clearFilters=()=>{e.typeFilter="all",e.search="",Object.keys(e.filters.status).forEach(C=>{e.filters.status[C]=!0})};function N(C,O){t.get("/api/repo/"+C).then(P=>{for(let ee of e.items)if(ee._type==="repo"&&ee.repoId==C){ee.status=P.data.status;break}if(P.data.status=="ready"||P.data.status=="error"||P.data.status=="removed"||P.data.status=="expired"){O(P.data);return}a.timeout(()=>N(C,O),2500)})}let D=C=>C==="repo"?"repository":C==="gist"?"gist":"pull request",I=C=>C==="repo"?"/api/repo":C==="gist"?"/api/gist":"/api/pr";e.removeItem=C=>{let O=D(C._type);if(confirm(`Are you sure that you want to remove the ${O} ${C._id}?`)){let P=Ue({title:`Removing ${C._id}...`,date:new Date,body:`The ${O} ${C._id} is going to be removed.`});e.addToast(P);let ee=`${I(C._type)}/${C._id}`;t.delete(ee).then(()=>{C._type==="repo"?N(C._id,()=>{P.title=`${C._id} is removed.`,P.body=`The ${O} ${C._id} is removed.`}):(P.title=`${C._id} is removed.`,P.body=`The ${O} ${C._id} is removed.`,R())},J=>{P.title=`Error during the removal of ${C._id}.`,P.body=J.body,R()})}},e.refreshItem=C=>{let O=D(C._type),P=Ue({title:`Refreshing ${C._id}...`,date:new Date,body:`The ${O} ${C._id} is going to be refreshed.`});e.addToast(P);let ee=`${I(C._type)}/${C._id}/refresh`;t.post(ee).then(()=>{C._type==="repo"?N(C._id,()=>{P.title=`${C._id} is refreshed.`,P.body=`The ${O} ${C._id} is refreshed.`}):(P.title=`${C._id} is refreshed.`,P.body=`The ${O} ${C._id} is refreshed.`,R())},J=>{P.title=`Error during the refresh of ${C._id}.`,P.body=J.body,R()})},e.extendItem=C=>{let O=D(C._type),P=Ue({title:`Extending ${C._id}...`,date:new Date,body:`The expiration of ${O} ${C._id} is going to be extended by 6 months.`});e.addToast(P);let ee=`${I(C._type)}/${C._id}/extend`;t.post(ee).then(()=>{C._type==="repo"?N(C._id,()=>{P.title=`${C._id} is extended.`,P.body=`The expiration of ${O} ${C._id} is extended by 6 months.`}):(P.title=`${C._id} is extended.`,P.body=`The expiration of ${O} ${C._id} is extended by 6 months.`,R())},J=>{P.title=`Error during the extension of ${C._id}.`,P.body=J.data&&J.data.error||J.body,R()})},e.itemFilter=C=>{if(e.typeFilter!=="all"&&C._type!==e.typeFilter||e.filters.status[C._statusKey]===!1)return!1;let O=e.search.trim().toLowerCase();return!!(O.length==0||C._source&&String(C._source).toLowerCase().indexOf(O)>-1||C._id&&String(C._id).toLowerCase().indexOf(O)>-1||C.conference&&String(C.conference).toLowerCase().indexOf(O)>-1)}};var Aa=function(e,t,o){let r=mt();e.repoId=o.repoId,e.repo=null,e.progress=0,e.rateLimitResetAt=0,e.rateLimitCountdown="";var n=null;let i=null,a=!1;function u(h){e.rateLimitResetAt=h,n&&r.interval.cancel(n);function v(){var g=Math.max(0,Math.ceil((h-Date.now())/1e3));if(g<=0)e.rateLimitCountdown="",e.rateLimitResetAt=0,r.interval.cancel(n),n=null;else{var f=Math.floor(g/60),w=g%60;e.rateLimitCountdown=f>0?f+"m "+w+"s":w+"s"}}v(),n=r.interval(v,1e3)}e.on("dispose",function(){a=!0,n&&r.interval.cancel(n),i&&r.timeout.cancel(i)});function p(h){if(!h)return h;var v=h.match(/^rate_limited:(\d+)$/);return v?(u(parseInt(v[1],10)),null):(e.rateLimitResetAt=0,h)}e.getStatus=()=>{a||t.get("/api/repo/"+e.repoId,{repoId:e.repoId,repoUrl:e.repoUrl}).then(h=>{if(!a){e.repo=h.data,h.data.rateLimitResetAt?u(h.data.rateLimitResetAt):e.repo.statusMessage=p(e.repo.statusMessage),e.repo.status=="ready"?e.progress=100:e.repo.status=="queue"?e.progress=10:e.repo.status=="downloaded"?e.progress=50:e.repo.status=="download"||e.repo.status=="preparing"?e.progress=25:e.repo.status=="anonymizing"&&(e.progress=75);var v=!["ready","removed","expired"].includes(e.repo.status);e.repo.status=="error"&&!e.rateLimitResetAt&&(v=!1),v&&(i=r.timeout(e.getStatus,2e3))}},h=>{e.error=h.data.error})},e.getStatus()},Yn=function(e,t,o,r,n,i,a){e.sourceUrl="",e.detectedType=null,e.repoId="",e.pullRequestId="",e.gistId="",e.terms="",e.defaultTerms="",e.branches=[],e.source={branch:"",commit:""},e.options={expirationMode:"remove",expirationDate:new Date,update:!1,image:!0,pdf:!0,notebook:!0,link:!0,body:!0,title:!0,origin:!1,diff:!0,content:!0,comments:!0,username:!0,date:!0};function u(){let A=new Date;return A.setMonth(A.getMonth()+6),A}e.options.expirationDate=u();function p(A){let V=A.getFullYear(),j=String(A.getMonth()+1).padStart(2,"0"),Z=String(A.getDate()).padStart(2,"0");return`${V}-${j}-${Z}`}e.minExpirationDate=p(new Date);let h=new Date;h.setFullYear(h.getFullYear()+1),e.maxExpirationDate=p(h),e.anonymize_readme="",e.readme="",e.html_readme="",e.isUpdate=!1;function v(A){t.get("/api/user/default").then(V=>{let j=V.data;j.terms&&(e.defaultTerms=j.terms.join(` +`)),e.options=Object.assign({},e.options,j.options),e.options.expirationDate=j.options&&j.options.expirationDate?new Date(j.options.expirationDate):u(),A&&A()})}function g(A,V,j){e.anonymize&&e.anonymize[A]&&e.anonymize[A].setValidity(V,j)}function f(A){try{let V=parseGithubUrl(A);if(V&&V.owner&&V.repo)return V.owner+"/"+V.repo}catch{}return null}function w(){return!e.isUpdate||!e._originalRepositoryID?void 0:f(e.sourceUrl)===e._originalFullName?e._originalRepositoryID:void 0}v(()=>{r.repoId&&r.repoId!=""&&(e.isUpdate=!0,e.detectedType="repo",e.repoId=r.repoId,t.get("/api/repo/"+e.repoId).then(async A=>{e.sourceUrl="https://github.com/"+A.data.source.fullName,e._originalFullName=A.data.source.fullName,e.terms=A.data.options.terms.filter(V=>V).join(` +`),e.source=A.data.source,e.role=A.data.role||"owner",e.coauthors=A.data.coauthors||[],e._originalBranch=A.data.source.branch,e.options=Object.assign({},e.options,A.data.options),e.conference=A.data.conference,e.repositoryID=A.data.source.repositoryID,e._originalRepositoryID=A.data.source.repositoryID,A.data.options.expirationDate&&(e.options.expirationDate=new Date(A.data.options.expirationDate)),await Promise.all([k(),b()]),I()},()=>{n.url("/404")})),r.pullRequestId&&r.pullRequestId!=""&&(e.isUpdate=!0,e.detectedType="pr",e.pullRequestId=r.pullRequestId,t.get("/api/pr/"+e.pullRequestId).then(async A=>{e.sourceUrl="https://github.com/"+A.data.source.repositoryFullName+"/pull/"+A.data.source.pullRequestId,e.terms=A.data.options.terms.filter(V=>V).join(` +`),e.source=A.data.source,e.options=Object.assign({},e.options,A.data.options),e.conference=A.data.conference,A.data.options.expirationDate&&(e.options.expirationDate=new Date(A.data.options.expirationDate));try{e.details=(await t.get(`/api/pr/${A.data.source.repositoryFullName}/${A.data.source.pullRequestId}`)).data}catch(V){let j=V&&V.data&&V.data.error;j&&(i("ERRORS."+j).then(Z=>{e.addToast({title:"Error",date:new Date,body:Z}),e.error=Z},console.error),ae(j))}},()=>{n.url("/404")})),r.gistId&&r.gistId!=""&&(e.isUpdate=!0,e.detectedType="gist",e.gistId=r.gistId,t.get("/api/gist/"+e.gistId).then(async A=>{e.sourceUrl="https://gist.github.com/"+A.data.source.gistId,e.terms=A.data.options.terms.filter(V=>V).join(` +`),e.source=A.data.source,e.options=Object.assign({},e.options,A.data.options),e.conference=A.data.conference,A.data.options.expirationDate&&(e.options.expirationDate=new Date(A.data.options.expirationDate)),e.details=(await t.get(`/api/gist/source/${A.data.source.gistId}`)).data},()=>{n.url("/404")}))}),e.urlSelected=async()=>{e.terms=e.defaultTerms,e.isUpdate||(e.repoId="",e.pullRequestId="",e.gistId=""),e.details=null,e.branches=[],e.source={type:"GitHubStream",branch:"",commit:""},e.anonymize_readme="",e.readme="",e.html_readme="",e.detectedType=null;let A;try{A=parseGithubUrl(e.sourceUrl)}catch{g("sourceUrl","github",!1);return}g("sourceUrl","github",!0);try{A.gistId&&!A.repo?(e.detectedType="gist",e.source={gistId:A.gistId},await K()):A.pullRequestId?(e.detectedType="pr",e.source={repositoryFullName:A.owner+"/"+A.repo,pullRequestId:A.pullRequestId},await C()):(e.detectedType="repo",await Promise.all([k(),b()]),I())}catch{return}$('[data-toggle="tooltip"]').tooltip()},$('[data-toggle="tooltip"]').tooltip(),e.watch("source.branch",async()=>{if(e.detectedType!=="repo")return;let A=e.branches.filter(j=>j.name==e.source.branch)[0];if(!A)return;e.isUpdate&&e._originalBranch===e.source.branch&&!!e.source.commit||(e.source.commit=A.commit),e.readme=A.readme,await b(),I()}),e.getBranches=async A=>{let V=parseGithubUrl(e.sourceUrl);try{let j=await t.get(`/api/repo/${V.owner}/${V.repo}/branches`,{params:{force:A===!0?"1":"0",repositoryID:w()}});e.branches=j.data,e.sourceUnreachable=!1,e.source.branch||(e.source.branch=e.details.defaultBranch);let Z=e.branches.filter(oe=>oe.name==e.source.branch);Z.length>0&&(!A&&e.isUpdate&&!e.options.update&&e._originalBranch===e.source.branch&&e.source.commit||(e.source.commit=Z[0].commit),e.readme=Z[0].readme,await b(A))}catch(j){e.branches=[],e.sourceUnreachable=j&&(j.status===404||j.data&&j.data.error==="repo_not_found");let Z=j&&j.data&&j.data.error||(j&&j.status===404?"repo_not_found":"unknown_error");i("ERRORS."+Z).then(oe=>{e.toasts=e.toasts||[],e.addToast({title:"Error",date:new Date,body:oe}),e.error=oe},console.error),typeof g=="function"&&g("sourceUrl","missing",!1)}};async function k(){let A=parseGithubUrl(e.sourceUrl);try{he();let V=await t.get(`/api/repo/${A.owner}/${A.repo}/`,{params:{repositoryID:w(),force:"1"}});e.details=V.data,e.details&&e.details.id&&(e.repositoryID=e.details.id),e.repoId||(e.repoId=e.details.repo+"-"+generateRandomId(4)),await e.getBranches()}catch(V){throw V.data&&(i("ERRORS."+V.data.error).then(j=>{e.addToast({title:"Error",date:new Date,body:j}),e.error=j},console.error),ae(V.data.error)),g("sourceUrl","missing",!1),V}}async function b(A){if(e.readme&&!A)return e.readme;let V=parseGithubUrl(e.sourceUrl);try{let j=await t.get(`/api/repo/${V.owner}/${V.repo}/readme`,{params:{force:A===!0?"1":"0",branch:e.source.branch,repositoryID:w()}});e.readme=j.data}catch{e.readme=""}}function R(){let A={terms:e.terms?e.terms.split(` +`):[],image:!!e.options.image,link:!!e.options.link,repoId:e.repoId};e.source&&e.source.branch&&(A.branchName=e.source.branch);try{let V=parseGithubUrl(e.sourceUrl);A.repoName=`${V.owner}/${V.repo}`}catch{}return A}function N(A,V){let j=null,Z=0;return function(){j&&a.cancel(j),j=a(()=>{j=null;let qe=++Z,ze=A();ze&&t.post("/api/anonymize-preview",ze).then(Fe=>{qe===Z&&V(Fe.data)},()=>{})},200)}}let D=N(()=>e.readme?{content:e.readme,options:R()}:null,A=>{e.anonymize_readme=A.content||"";let V="";try{let Z=parseGithubUrl(e.sourceUrl),oe=e.source.branch||e.details&&e.details.defaultBranch||"main";V=`https://github.com/${Z.owner}/${Z.repo}/raw/${oe}/`}catch{}let j=renderMD(e.anonymize_readme,V);e.html_readme=j,a(Prism.highlightAll,150)});function I(){!e.anonymize||!e.anonymize.terms||(e.termsRegexWarning=!!e.terms&&!!e.terms.match(/[-[\]{}()*+?.,\\^$|#]/g),D())}async function C(){let A=parseGithubUrl(e.sourceUrl);try{he();let V=await t.get(`/api/pr/${A.owner}/${A.repo}/${A.pullRequestId}`);e.details=V.data,e.pullRequestId||(e.pullRequestId=A.repo+"-PR"+A.pullRequestId+"-"+generateRandomId(4))}catch(V){throw V.data&&(i("ERRORS."+V.data.error).then(j=>{e.addToast({title:"Error",date:new Date,body:j}),e.error=j},console.error),ae(V.data.error)),g("sourceUrl","missing",!1),V}}let O=Ue(new Map),P=new Set;function ee(){let A=new Set,V=e.details&&e.details.pullRequest;if(!V)return A;typeof V.title=="string"&&A.add(V.title),typeof V.body=="string"&&A.add(V.body),typeof V.diff=="string"&&A.add(V.diff);let j=V.comments||[];for(let Z of j)typeof Z.author=="string"&&A.add(Z.author),typeof Z.body=="string"&&A.add(Z.body);return A}let J=N(()=>{let A=ee();P=A;let V=Array.from(A);return V.length===0?null:{contents:V,options:R()}},A=>{if(!A||!Array.isArray(A.contents))return;let V=Array.from(P),j=new Map;for(let Z=0;ZO.set(oe,Z))});e.anonymizePrContent=function(A){return A&&(O.has(A)?O.get(A):(P.has(A)||J(),A))};async function K(){let A=parseGithubUrl(e.sourceUrl);try{he();let V=await t.get(`/api/gist/source/${A.gistId}`);e.details=V.data,e.gistId||(e.gistId="gist-"+A.gistId.substring(0,6)+"-"+generateRandomId(4))}catch(V){throw V.data&&(i("ERRORS."+V.data.error).then(j=>{e.addToast({title:"Error",date:new Date,body:j}),e.error=j},console.error),ae(V.data.error)),g("sourceUrl","missing",!1),V}}let U=Ue(new Map),de=new Set;function se(){let A=new Set,V=e.details&&e.details.gist;if(!V)return A;typeof V.description=="string"&&A.add(V.description),typeof V.ownerLogin=="string"&&A.add(V.ownerLogin);let j=V.files||[];for(let oe of j)typeof oe.filename=="string"&&A.add(oe.filename),typeof oe.content=="string"&&A.add(oe.content);let Z=V.comments||[];for(let oe of Z)typeof oe.author=="string"&&A.add(oe.author),typeof oe.body=="string"&&A.add(oe.body);return A}let ie=N(()=>{let A=se();de=A;let V=Array.from(A);return V.length===0?null:{contents:V,options:R()}},A=>{if(!A||!Array.isArray(A.contents))return;let V=Array.from(de),j=new Map;for(let Z=0;ZU.set(oe,Z)),ce()});e.anonymizeGistContent=function(A){return A&&(U.has(A)?U.get(A):(de.has(A)||ie(),A))},e.previewGistFiles=[];function ce(){let A=e.details&&e.details.gist&&e.details.gist.files||[];e.previewGistFiles=A.map(V=>({filename:e.anonymizeGistContent(V.filename),content:e.anonymizeGistContent(V.content),language:V.language}))}e.watch("details.gist.files",ce,!0),e.watch("terms",ce);function we(){e.conference&&t.get("/api/conferences/"+e.conference).then(A=>{e.conference_data=A.data,e.conference_data.startDate=new Date(e.conference_data.startDate),e.conference_data.endDate=new Date(e.conference_data.endDate),e.options.expirationDate=new Date(e.conference_data.endDate),e.options.expirationMode="remove",e.options.update=e.conference_data.options.update,e.options.image=e.conference_data.options.image,e.options.pdf=e.conference_data.options.pdf,e.options.notebook=e.conference_data.options.notebook,e.options.link=e.conference_data.options.link},()=>{e.conference_data=null})}function he(){g("repoId","used",!0),g("repoId","format",!0),g("pullRequestId","used",!0),g("pullRequestId","format",!0),g("gistId","used",!0),g("gistId","format",!0),g("sourceUrl","used",!0),g("sourceUrl","missing",!0),g("sourceUrl","access",!0),g("sourceUrl","github",!0),g("commit","exists",!0),g("conference","activated",!0),g("terms","format",!0),e.termsRegexWarning=!1}function me(){let A=e.anonymize&&e.anonymize.expirationDate;return!e.options.expirationDate||A&&A.invalid?(A&&A.setDirty&&A.setDirty(),e.error="Please choose a valid expiration date.",!0):!1}function ae(A){let V=e.detectedType==="pr"?"pullRequestId":e.detectedType==="gist"?"gistId":"repoId";switch(A){case"repoId_already_used":g(V,"used",!1);break;case"invalid_repoId":g(V,"format",!1);break;case"options_not_provided":g(V,"format",!1);break;case"repo_already_anonymized":g("sourceUrl","used",!1);break;case"invalid_terms_format":g("terms","format",!1);break;case"repo_not_found":g("sourceUrl","missing",!1);break;case"repo_not_accessible":g("sourceUrl","access",!1);break;case"commit_not_found":g("commit","exists",!1);break;case"conf_not_activated":g("conference","activated",!1);break}}e.coauthors=e.coauthors||[],e.coauthorResults=[],e.coauthorError="",e.searchCoauthors=()=>{let A=(e.coauthorSearch||"").trim();if(e.coauthorError="",A.length<2){e.coauthorResults=[];return}t.get("/api/user/search/github-users",{params:{q:A}}).then(V=>{let j=new Set((e.coauthors||[]).map(Z=>(Z.username||"").toLowerCase()));e.coauthorResults=(V.data||[]).filter(Z=>!j.has((Z.username||"").toLowerCase()))},()=>{e.coauthorResults=[]})},e.addCoauthor=(A,V)=>{V&&V.preventDefault(),!(!A||!A.username)&&t.post("/api/repo/"+e.repoId+"/coauthors",{username:A.username}).then(j=>{e.coauthors=j.data||[],e.coauthorResults=[],e.coauthorSearch="",e.coauthorError=""},j=>{let Z=j&&j.data&&j.data.error||"unknown_error";e.coauthorError=Z})},e.removeCoauthor=A=>{!A||!A.username||confirm("Remove co-author "+A.username+"?")&&t.delete("/api/repo/"+e.repoId+"/coauthors/"+encodeURIComponent(A.username)).then(V=>{e.coauthors=V.data||[]},V=>{let j=V&&V.data&&V.data.error||"unknown_error";e.coauthorError=j})},e.anonymizeRepo=A=>{if(me())return;A.target.disabled=!0;let V=parseGithubUrl(e.sourceUrl),j={repoId:e.repoId,terms:e.terms.trim().split(` +`).filter(oe=>oe),fullName:`${V.owner}/${V.repo}`,repository:e.sourceUrl,options:e.options,source:e.source,conference:e.conference};e.details&&(j.options.pageSource=e.details.pageSource),he();let Z=e.isUpdate?"/api/repo/"+e.repoId:"/api/repo/";t.post(Z,j,{headers:{"Content-Type":"application/json"}}).then(()=>{window.location.href="/status/"+e.repoId},oe=>{oe.data&&(i("ERRORS."+oe.data.error).then(qe=>{e.error=qe},console.error),ae(oe.data.error))}).finally(()=>{A.target.disabled=!1})},e.anonymizeGist=A=>{if(me())return;A.target.disabled=!0;let V=parseGithubUrl(e.sourceUrl),j={gistId:e.gistId,terms:e.terms.trim().split(` +`).filter(oe=>oe),source:{gistId:V.gistId},options:e.options,conference:e.conference};he();let Z=e.isUpdate?"/api/gist/"+e.gistId:"/api/gist/";t.post(Z,j,{headers:{"Content-Type":"application/json"}}).then(()=>{window.location.href="/gist/"+e.gistId},oe=>{oe.data&&(i("ERRORS."+oe.data.error).then(qe=>{e.error=qe},console.error),ae(oe.data.error))}).finally(()=>{A.target.disabled=!1})},e.anonymizePullRequest=A=>{if(me())return;A.target.disabled=!0;let V=parseGithubUrl(e.sourceUrl),j={pullRequestId:e.pullRequestId,terms:e.terms.trim().split(` +`).filter(oe=>oe),source:{repositoryFullName:`${V.owner}/${V.repo}`,pullRequestId:V.pullRequestId},options:e.options,conference:e.conference};he();let Z=e.isUpdate?"/api/pr/"+e.pullRequestId:"/api/pr/";t.post(Z,j,{headers:{"Content-Type":"application/json"}}).then(()=>{window.location.href="/pr/"+e.pullRequestId},oe=>{oe.data&&(i("ERRORS."+oe.data.error).then(qe=>{e.error=qe},console.error),ae(oe.data.error))}).finally(()=>{A.target.disabled=!1})},e.watch("conference",()=>{we()}),e.watch("terms",()=>{e.detectedType==="repo"&&I(),e.detectedType==="pr"&&J(),e.detectedType==="gist"&&ie()}),e.watch("options.image",()=>{e.detectedType==="repo"&&I(),e.detectedType==="pr"&&J(),e.detectedType==="gist"&&ie()}),e.watch("options.link",()=>{e.detectedType==="repo"&&I(),e.detectedType==="pr"&&J(),e.detectedType==="gist"&&ie()}),e.watch("details",()=>{e.detectedType==="pr"&&J(),e.detectedType==="gist"&&ie()},!0)},Yo=function(e,t,o,r,n,i){let a=mt(),u=as(),p=0,h=!1;e.on("dispose",()=>{h=!0,p++,v&&v.resolve()}),e.files=[],e.isMac=/Mac|iPhone|iPad|iPod/.test(navigator.platform||navigator.userAgent),e.fileSearchQuery="",e.fileSearchResults=null,e.fileSearchLoading=!1,u(document,"keydown",function(U){if((U.metaKey||U.ctrlKey)&&U.key==="k"){U.preventDefault();var de=document.querySelector(".tree-search-input");de&&(de.focus(),de.select())}});var v=null;e.onFileSearchChange=function(){v&&(v.resolve(),v=null);let U=e.fileSearchQuery;if(!U||U.length<2){e.fileSearchResults=null,e.fileSearchLoading=!1;return}e.fileSearchLoading=!0;let de=i.defer();v=de,t.get(`/api/repo/${e.repoId}/files/search?q=${encodeURIComponent(U)}`,{timeout:de.promise}).then(function(se){if(!(h||v!==de)){v=null,e.fileSearchLoading=!1;var ie={};e.files.forEach(function(F){ie[(F.path||"")+"/"+F.name]=!0});for(var ce=[],we={},he=0;he0&&e.files.push.apply(e.files,ce);for(var oe=[],qe=0;qe0&&e.files.push.apply(e.files,oe),e.fileSearchResults=se.data}},function(){!h&&v===de&&(v=null,e.fileSearchLoading=!1,e.fileSearchResults=[])})};let g={yml:"yaml",txt:"text",py:"python",js:"javascript",ts:"typescript"},f=["license","txt"],w=["png","jpg","jpeg","gif","svg","ico","bmp","tiff","tif","webp","avif","heif","heic"],k=["wav","mp3","ogg","wma","flac","aac","m4a"],b=["mp4","avi","webm","mov","mpg","mpeg","mkv","flv","wmv","3gp","3g2","m4v","f4v","f4p","f4a","f4b"];e.on("routeUpdate",function(U,de){if(e.repoId!=r.repoId)return K();if((r.path||"")!=e.filePath){e.filePath=r.path||"",e.paths=e.filePath.split("/").filter(se=>se&&se.trim().length>0),J();for(let se=0;se0?e.paths.slice(0,se).join("/"):"";e.files.some(we=>we.path===ie)||e.getFiles(ie)}}});function R(){if(e.paths[0]!="")return;let U=["readme.md","readme.txt","readme.org","readme.1st","readme"],de={};for(let ie of e.files)ie.name.toLowerCase().indexOf("readme")>-1&&(de[ie.name.toLowerCase()]=ie.name);let se=null;for(let ie of U)if(de[ie]){se=ie;break}if(!se&&Object.keys(de).length>0&&(se=Object.keys(de)[0]),se){let ie=o.url();ie[ie.length-1]!="/"&&(ie+="/"),o.url(ie+encodePathForUrl(de[se]))}}e.fileCounts=null,e.getFiles=function(U){let de=e.repoId;return t.get(`/api/repo/${e.repoId}/files/?path=${encodeURIComponent(U)}&v=${e.options.lastUpdateDate}`).then(function(se){if(h||de!==e.repoId)return[];let ie=U||"";return e.files=e.files.filter(ce=>ce.path!==ie),e.files.push(...se.data),se.data},function(se){if(h||de!==e.repoId)return[];e.type="error",e.content=se&&se.data&&se.data.error||"unknown_error",e.files=[]})};function N(){let U=e.repoId;t.get(`/api/repo/${e.repoId}/files/counts`).then(function(de){h||U!==e.repoId||(e.fileCounts=de.data)},function(){e.fileCounts={}})}function D(){return e.files.filter(U=>U.name==e.paths[e.paths.length-1]&&U.path==e.paths.slice(0,e.paths.length-1).join("/"))[0]}var I=null;e.on("dispose",function(){I&&a.interval.cancel(I)});function C(U){if(h)return;let de=e.repoId;t.get(`/api/repo/${e.repoId}/options`).then(se=>{if(!(h||de!==e.repoId)){if(e.options=se.data,e.options.url){window.location=e.options.url;return}U&&U(se.data)}},se=>{if(!(h||de!==e.repoId)){var ie=se.data||{};if(ie.error==="rate_limited"&&ie.resetAt){let we=function(){var he=Math.max(0,Math.ceil((e.rateLimitResetAt-Date.now())/1e3));if(he<=0)e.rateLimitCountdown="",e.rateLimitResetAt=0,I&&(a.interval.cancel(I),I=null),C(U);else{var me=Math.floor(he/60),ae=he%60;e.rateLimitCountdown=me>0?me+"m "+ae+"s":ae+"s"}};var ce=we;e.type="rate_limited",e.rateLimitResetAt=ie.resetAt,I&&a.interval.cancel(I),we(),I=a.interval(we,1e3)}else ie.error==="repository_not_ready"?(e.type="loading",a.timeout(function(){C(U)},3e3)):(e.type="error",e.content=ie.error)}})}e.toggleSource=function(){e.showSource=!e.showSource},e.toggleAllowScripts=function(){e.allowScripts=!e.allowScripts};function O(U){return g[U]?g[U]:U}function P(U){return U=="pdf"?"pdf":U=="html"||U=="htm"?"html-doc":U=="md"?"md":U=="org"?"org":U=="ipynb"?"IPython":f.indexOf(U)>-1?"text":w.indexOf(U)>-1?"image":b.indexOf(U)>-1?"media":k.indexOf(U)>-1?"audio":"code"}function ee(U,de){let se=p;if(!U){e.type="error",e.content="no_file_selected";return}let ie=e.type;e.type="loading",e.content="loading";let ce=de&&de.sha||"0";t.get(`/api/repo/${e.repoId}/file/${encodePathForUrl(U)}?v=`+ce,{transformResponse:we=>we}).then(we=>{if(!(h||se!==p)){if(e.type=ie,e.content=we.data,e.content==""&&(e.content=null),e.type=="md"&&(e.content=renderMD(we.data,o.url()+"/../"),e.type="html"),e.type=="org"){let me=contentAbs2Relative(we.data);var he=new Org.Parser().parse(me).convert(Org.ConverterHTML,{headerOffset:1,exportFromLineNumber:!1,suppressSubScriptHandling:!0,suppressAutoLink:!1});e.content=DOMPurify.sanitize(he.toString()),e.type="html"}e.type=="code"&&we.headers("content-type")=="application/octet-stream"&&(e.type="binary",e.content="binary"),a.timeout(()=>{Prism.highlightAll()},50)}},we=>{if(!(h||se!==p)){e.type="error",e.content="unknown_error";try{we.data=JSON.parse(we.data),we.data.error?e.content=we.data.error:e.content=we.data}catch{console.log(we),we.status==-1?e.content="request_error":we.status==502&&(e.content="unreachable")}}})}function J(){p++,e.content="",e.file=D();let U="0";e.file&&e.file.sha&&(U=e.file.sha),e.url=`/api/repo/${e.repoId}/file/${encodePathForUrl(e.filePath)}?v=${U}`;let de=e.filePath.substring(0,e.filePath.lastIndexOf("/")+1);e.fileBaseUrl=`/api/repo/${e.repoId}/file/${de?encodePathForUrl(de):""}`,e.showSource=!1,e.allowScripts=!1;let se=e.filePath.toLowerCase(),ie=se.lastIndexOf(".");if(ie>-1&&(se=se.substring(ie+1)),e.aceOption={readOnly:!0,useWrapMode:!0,showGutter:!0,theme:"chrome",useSoftTab:!0,tabSize:2,fontSize:15,keyBinding:"vscode",fullLineSelection:!0,highlightActiveLine:!1,highlightGutterLine:!1,cursor:"hide",showInvisibles:!1,showIndentGuides:!0,showPrintMargin:!1,highlightSelectedWord:!1,enableBehaviours:!0,fadeFoldWidgets:!1,mode:O(se),onLoad:function(ce){let we=ace.require("ace/range").Range,he=null;function me(V,j){he!==null&&(ce.session.removeMarker(he),he=null),V!=null&&(he=ce.session.addMarker(new we(V,0,j,1),"highlighted-line","fullLine"))}function ae(V){let j=window.location.hash.match(/^#L(\d+)(?:-L(\d+))?/);if(!j){me(null);return}let Z=parseInt(j[1])-1,oe=j[2]?parseInt(j[2])-1:Z;me(Z,oe),V&&a.timeout(()=>{ce.scrollToLine(Z,!0,!0,function(){})},100)}ae(!0);let A=null;ce.on("guttermousedown",function(V){let j=V.getDocumentPosition().row,Z=V.domEvent&&V.domEvent.shiftKey,oe=j,qe=j;Z&&A!==null?(oe=Math.min(A,j),qe=Math.max(A,j)):A=j;let ze=oe===qe?`#L${oe+1}`:`#L${oe+1}-L${qe+1}`,Fe=window.location.pathname+window.location.search+ze;window.history.replaceState(null,"",Fe),me(oe,qe),V.stop()}),u(window,"hashchange",()=>ae(!1)),ce.setFontSize(e.aceOption.fontSize),ce.setReadOnly(e.aceOption.readOnly),ce.setKeyboardHandler(e.aceOption.keyBinding),ce.setSelectionStyle(e.aceOption.fullLineSelection?"line":"text"),ce.setOption("displayIndentGuides",!0),ce.setHighlightActiveLine(e.aceOption.highlightActiveLine),e.aceOption.cursor=="hide"&&(ce.renderer.$cursorLayer.element.style.display="none"),ce.setHighlightGutterLine(e.aceOption.highlightGutterLine),ce.setShowInvisibles(e.aceOption.showInvisibles),ce.setDisplayIndentGuides(e.aceOption.showIndentGuides),ce.renderer.setShowPrintMargin(e.aceOption.showPrintMargin),ce.setHighlightSelectedWord(e.aceOption.highlightSelectedWord),ce.session.setUseSoftTabs(e.aceOption.useSoftTab),ce.session.setTabSize(e.aceOption.tabSize),ce.setBehavioursEnabled(e.aceOption.enableBehaviours),ce.setFadeFoldWidgets(e.aceOption.fadeFoldWidgets)}},e.on("dark-mode",(ce,we)=>{we?e.aceOption.theme="nord_dark":e.aceOption.theme="chrome"}),e.isDarkMode&&(e.aceOption.theme="nord_dark"),e.type=P(se),e.type=="pdf"){e.content="pdf";return}ee(e.filePath,e.file)}function K(){p++,e.files=[],e.content=null,e.fileCounts=null,e.fileSearchQuery="",e.onFileSearchChange(),e.repoId=r.repoId,e.type="loading",e.filePath=r.path||"",e.paths=e.filePath.split("/");let U=e.repoId;C(function(de){N();var se=i.resolve();for(let ie=0;ie0?e.paths.slice(0,ie).join("/"):"";se=se.then(function(){return e.getFiles(ce)}).then(function(){if(e.type==="error")return i.reject("error")})}se.then(function(){h||U!==e.repoId||(e.files.length==1&&e.files[0].name==""?(e.files=[],e.type="empty"):(R(),J()))})})}K()},Ia=function(e,t,o,r,n){async function i(p){t.get(`/api/pr/${e.pullRequestId}/options`).then(h=>{if(e.options=h.data,e.options.url){window.location=e.options.url;return}p&&p(h.data)},h=>{e.type="error",e.content=h.data.error})}async function a(p){t.get(`/api/pr/${e.pullRequestId}/content`).then(h=>{e.details=h.data,e.tabState={active:h.data.diff?"diff":"comments"},p&&p(h.data)},h=>{e.type="error",e.content=h.data.error})}function u(){e.pullRequestId=r.pullRequestId,e.type="loading",i(p=>{a()})}u()},Va=function(e,t,o,r,n){async function i(p){t.get(`/api/gist/${e.gistId}/options`).then(h=>{if(e.options=h.data,e.options.url){window.location=e.options.url;return}p&&p(h.data)},h=>{e.type="error",e.content=h.data.error})}async function a(p){t.get(`/api/gist/${e.gistId}/content`).then(h=>{e.details=h.data;let v=h.data&&h.data.files&&h.data.files.length;e.tabState={active:v?"files":"comments"},p&&p(h.data)},h=>{e.type="error",e.content=h.data.error})}function u(){e.gistId=r.gistId,e.type="loading",i(()=>{a()})}u()},Pa=function(e,t,o){e.watch("user.status",()=>{e.user==null&&o.url("/")}),e.user==null&&o.url("/"),e.conferences=[],e.search="";let r="conferences.filterPrefs",n={filters:{status:{ready:!0,expired:!1,removed:!1}},orderBy:"name"},i=loadFilterPrefs(r)||{};e.filters={status:Object.assign({},n.filters.status,i.filters&&i.filters.status||{})},e.orderBy=i.orderBy||n.orderBy,e.watch("orderBy",()=>{saveFilterPrefs(r,{filters:e.filters,orderBy:e.orderBy})}),e.watch("filters",()=>{saveFilterPrefs(r,{filters:e.filters,orderBy:e.orderBy})},!0),e.removeConference=function(u){if(confirm(`Are you sure that you want to remove the conference ${u.name}? All the repositories linked to this conference will expire.`)){let p=Ue({title:`Removing ${u.name}...`,date:new Date,body:`The conference ${u.name} is going to be removed.`});e.addToast(p),t.delete(`/api/conferences/${u.conferenceID}`).then(()=>{p.title=`${u.name} is removed.`,p.body=`The conference ${u.name} is removed.`,a()})}};function a(){t.get("/api/conferences/").then(u=>{e.conferences=u.data||[]},u=>{console.error(u)})}a(),e.conferenceFilter=u=>e.filters.status[u.status]==!1?!1:e.search.trim().length==0||u.name.indexOf(e.search)>-1||u.conferenceID.indexOf(e.search)>-1},xo=function(e,t,o,r){e.watch("user.status",()=>{e.user==null&&o.url("/")}),e.user==null&&o.url("/"),e.plans=[],e.editionMode=!1;function n(){t.get("/api/conferences/"+r.conferenceId).then(v=>{e.options=v.data,e.options.startDate=new Date(e.options.startDate),e.options.endDate=new Date(e.options.endDate)})}r.conferenceId&&(e.editionMode=!0,n());function i(){t.get("/api/conferences/plans").then(v=>{e.plans=v.data,e.plan=e.plans.filter(g=>g.id==e.options.plan.planID)[0]})}i();let a=new Date;a.setDate(1),a.setMonth(a.getMonth()+1);let u=new Date(a);u.setMonth(a.getMonth()+7,0),e.options={startDate:a,endDate:u,plan:{planID:"free_conference"},options:{link:!0,image:!0,pdf:!0,notebook:!0,update:!0,page:!0}},e.plan=null,e.watch("options.plan.planID",()=>{e.plan=e.plans.filter(v=>v.id==e.options.plan.planID)[0]});function p(){e.conference.name.setValidity("required",!0),e.conference.conferenceID.setValidity("pattern",!0),e.conference.conferenceID.setValidity("required",!0),e.conference.conferenceID.setValidity("used",!0),e.conference.startDate.setValidity("required",!0),e.conference.startDate.setValidity("invalid",!0),e.conference.endDate.setValidity("required",!0),e.conference.endDate.setValidity("invalid",!0),e.conference.setValidity("error",!0)}function h(v){switch(v){case"conf_name_missing":e.conference.name.setValidity("required",!1);break;case"conf_id_missing":e.conference.conferenceID.setValidity("required",!1);break;case"conf_id_format":e.conference.conferenceID.setValidity("pattern",!1);break;case"conf_id_used":e.conference.conferenceID.setValidity("used",!1);break;case"conf_start_date_missing":e.conference.startDate.setValidity("required",!1);break;case"conf_end_date_missing":e.conference.endDate.setValidity("required",!1);break;case"conf_start_date_invalid":e.conference.startDate.setValidity("invalid",!1);break;case"conf_end_date_invalid":e.conference.endDate.setValidity("invalid",!1);break;default:e.conference.setValidity("error",!1);break}}e.submit=function(){let v=Ue({title:`Creating ${e.options.name}...`,date:new Date,body:`The conference ${e.options.conferenceID} is in creation.`});e.editionMode&&(v.title=`Updating ${e.options.name}...`,v.body=`The conference '${e.options.conferenceID}' is updating.`),e.addToast(v),p(),t.post("/api/conferences/"+(e.editionMode?e.options.conferenceID:""),e.options).then(()=>{e.editionMode?(v.title=`${e.options.name} updated`,v.body=`The conference '${e.options.conferenceID}' is updated.`):(v.title=`${e.options.name} created`,v.body=`The conference '${e.options.conferenceID}' is created.`),o.url("/conference/"+e.options.conferenceID)},g=>{h(g.data.error),e.removeToast(v)})}},qa=function(e,t,o,r){e.watch("user.status",()=>{e.user==null&&o.url("/")}),e.user==null&&o.url("/"),e.conference=null,e.search="",e.filters={status:{ready:!0,expired:!1,removed:!1}},e.orderBy="-anonymizeDate",e.repoFiler=i=>e.filters.status[i.status]==!1?!1:e.search.trim().length==0||i.source.fullName.indexOf(e.search)>-1||i.repoId.indexOf(e.search)>-1;function n(){t.get("/api/conferences/"+r.conferenceId).then(i=>{e.conference=i.data})}n()};var Ma=function(e,t,o){let r=mt(),n=as();e.Math=Math,e.watch("user.status",()=>{e.user==null&&o.url("/")}),e.user==null&&o.url("/"),e.repositories=[],e.total=-1,e.totalPage=0,e.statusCounts=[],e.totalSize=0,e.selected={},e.allSelected=!1;let i=k=>{if(k.key==="/"&&!["INPUT","TEXTAREA","SELECT"].includes(document.activeElement?.tagName)){k.preventDefault();let b=document.querySelector('.admin-filter-toolbar input[type="search"]');b&&b.focus()}};n(document,"keydown",i),e.on("dispose",()=>document.removeEventListener("keydown",i)),e.clearFilter=k=>{k==="dateRange"?(e.query.dateFrom="",e.query.dateTo=""):e.query[k]="",e.query.page=1},e.chips=[];let a=()=>{let k=[];e.query.owner&&k.push({key:"owner",label:"Owner",value:e.query.owner}),e.query.conference&&k.push({key:"conference",label:"Conference",value:e.query.conference}),e.chips=k};e.showStatusMessage=k=>{let b=k.statusMessage||"(no message)";window.prompt(`Status message for ${k.repoId} (${k.status}):`,b)},e.fetchGithubInfo=k=>{let b=window.open("","_blank");b&&b.document.write("
Loading GitHub info for "+k.repoId+"...
"),t.get("/api/admin/repos/"+k.repoId+"/github").then(R=>{b&&(b.document.open(),b.document.write('
'+JSON.stringify(R.data,null,2).replace(/[<>]/g,N=>N==="<"?"<":">")+"
"),b.document.close())},R=>{let N=R&&R.data?JSON.stringify(R.data,null,2):String(R);b&&(b.document.body.innerHTML='
'+N+"
")})},e.statusCountFor=k=>{let b=(e.statusCounts||[]).find(R=>R._id===k);return b?b.count:0},e.statusStorageFor=k=>{let b=(e.statusCounts||[]).find(R=>R._id===k);return b?b.storage:0},e.isErrorsOnly=()=>e.query&&e.query.error&&!e.query.ready&&!e.query.preparing&&!e.query.expired&&!e.query.removed,e.toggleErrorsOnly=()=>{e.isErrorsOnly()?Object.assign(e.query,{ready:!1,preparing:!0,expired:!1,removed:!1,error:!0}):Object.assign(e.query,{ready:!1,preparing:!1,expired:!1,removed:!1,error:!0}),e.query.page=1},e.toggleSortDirection=()=>{e.query.direction=e.query.direction==="asc"?"desc":"asc"},e.sortBy=k=>{e.query.sort===k?e.query.direction=e.query.direction==="asc"?"desc":"asc":(e.query.sort=k,e.query.direction="desc"),e.query.page=1},e.sortIcon=k=>e.query.sort===k?e.query.direction==="asc"?"fa-arrow-up":"fa-arrow-down":"";let u="admin.repos.filterPrefs",p={page:1,limit:25,sort:"lastView",direction:"desc",search:"",owner:"",conference:"",dateFrom:"",dateTo:"",ready:!1,expired:!1,removed:!1,error:!0,preparing:!0},h=loadFilterPrefs(u)||{};e.query=Object.assign({},p,h,{page:1,search:""});let v=o.search();v.owner&&(e.query.owner=v.owner),v.conference&&(e.query.conference=v.conference),v.search&&(e.query.search=v.search);let g="admin.repos.presets";e.presets=JSON.parse(localStorage.getItem(g)||"[]"),e.savePreset=()=>{let k=window.prompt("Preset name:");if(!k)return;let b=Object.assign({},e.query);delete b.page,e.presets=(e.presets||[]).filter(R=>R.name!==k),e.presets.push({name:k,query:b}),localStorage.setItem(g,JSON.stringify(e.presets))},e.applyPreset=k=>{Object.assign(e.query,k.query,{page:1})},e.deletePreset=k=>{e.presets=(e.presets||[]).filter(b=>b.name!==k.name),localStorage.setItem(g,JSON.stringify(e.presets))},e.selectAllOnPage=()=>{e.allSelected=!e.allSelected,e.repositories.forEach(k=>{e.selected[k.repoId]=e.allSelected})},e.selectedCount=()=>Object.values(e.selected||{}).filter(Boolean).length,e.selectedRepos=()=>e.repositories.filter(k=>e.selected[k.repoId]),e.bulkRefresh=()=>{let k=e.selectedRepos();k.length&&confirm(`Force refresh ${k.length} repositories?`)&&k.forEach(b=>e.updateRepository(b))},e.bulkRemoveCache=()=>{let k=e.selectedRepos();k.length&&confirm(`Purge cache for ${k.length} repositories?`)&&k.forEach(b=>e.removeCache(b))},e.clearSelection=()=>{e.selected={},e.allSelected=!1},e.exportCsv=()=>{let k=new URLSearchParams(Object.entries(e.query).filter(([,b])=>b!==""&&b!==!1&&b!=null));k.set("format","csv"),k.set("limit","10000"),window.open("/api/admin/repos?"+k.toString(),"_blank")},e.removeCache=k=>{confirm("Remove cached files for "+k.repoId+"?")&&t.delete("/api/admin/repos/"+k.repoId).then(()=>f(),b=>console.error(b))},e.removeRepository=k=>{confirm("Remove repository "+k.repoId+"?")&&t.delete("/api/repo/"+k.repoId+"/").then(()=>f(),b=>console.error(b))},e.updateRepository=k=>{let b=Ue({title:`Refreshing ${k.repoId}...`,date:new Date,body:`The repository ${k.repoId} is going to be refreshed.`});e.toasts.push(b),t.post(`/api/repo/${k.repoId}/refresh`).then(R=>{R.data.status=="ready"?b.title=`${k.repoId} is refreshed.`:b.title=`Refreshing of ${k.repoId}.`},R=>{b.title=`Error during the refresh of ${k.repoId}.`,b.body=R.body})},e.fetchError=null;function f(){e.fetchError=null,t.get("/api/admin/repos",{params:e.query}).then(k=>{e.total=k.data.total,e.totalPage=Math.ceil(k.data.total/e.query.limit),e.repositories=k.data.results,e.statusCounts=k.data.statusCounts||[],e.totalSize=k.data.totalSize||0,e.allSelected=!1},k=>{e.fetchError=k&&k.data&&k.data.error||"Failed to load repositories",console.error(k)})}f();let w=null;e.watch("query",()=>{r.timeout.cancel(w),w=r.timeout(f,500);let{page:k,search:b,...R}=e.query;saveFilterPrefs(u,R),a()},!0),a()},$a=function(e,t,o){let r=mt(),n=as();e.Math=Math,e.watch("user.status",()=>{e.user==null&&o.url("/")}),e.user==null&&o.url("/"),e.users=[],e.total=-1,e.totalPage=0,e.statusCounts=[],e.selected={},e.allSelected=!1;let i=f=>{if(f.key==="/"&&!["INPUT","TEXTAREA","SELECT"].includes(document.activeElement?.tagName)){f.preventDefault();let w=document.querySelector('.admin-filter-toolbar input[type="search"]');w&&w.focus()}};n(document,"keydown",i),e.on("dispose",()=>document.removeEventListener("keydown",i)),e.clearFilter=f=>{f==="dateRange"?(e.query.dateFrom="",e.query.dateTo=""):e.query[f]="",e.query.page=1},e.chips=[];let a=()=>{let f=[];e.query.role&&f.push({key:"role",label:"Role",value:e.query.role}),e.chips=f};e.statusCountFor=f=>{let w=(e.statusCounts||[]).find(k=>k._id===f);return w?w.count:0},e.toggleSortDirection=()=>{e.query.direction=e.query.direction==="asc"?"desc":"asc"},e.sortBy=f=>{e.query.sort===f?e.query.direction=e.query.direction==="asc"?"desc":"asc":(e.query.sort=f,e.query.direction="desc"),e.query.page=1},e.sortIcon=f=>e.query.sort===f?e.query.direction==="asc"?"fa-arrow-up":"fa-arrow-down":"";let u="admin.users.filterPrefs",p={page:1,limit:25,sort:"username",direction:"asc",search:"",status:"",role:"",dateFrom:"",dateTo:""},h=loadFilterPrefs(u)||{};e.query=Object.assign({},p,h,{page:1,search:""}),e.selectAllOnPage=()=>{e.allSelected=!e.allSelected,e.users.forEach(f=>{e.selected[f.username]=e.allSelected})},e.selectedCount=()=>Object.values(e.selected||{}).filter(Boolean).length,e.selectedUsers=()=>e.users.filter(f=>e.selected[f.username]),e.banUser=f=>{confirm(`Ban user ${f.username}?`)&&t.post(`/api/admin/users/${f.username}/ban`).then(v,w=>console.error(w))},e.activateUser=f=>{t.post(`/api/admin/users/${f.username}/activate`).then(v,w=>console.error(w))},e.bulkBan=()=>{let f=e.selectedUsers();f.length&&confirm(`Ban ${f.length} users?`)&&f.forEach(w=>e.banUser(w))},e.exportCsv=()=>{let f=new URLSearchParams(Object.entries(e.query).filter(([,w])=>w!==""&&w!==!1&&w!=null));f.set("format","csv"),f.set("limit","10000"),window.open("/api/admin/users?"+f.toString(),"_blank")},e.fetchError=null;function v(){e.fetchError=null,t.get("/api/admin/users",{params:e.query}).then(f=>{e.total=f.data.total,e.totalPage=Math.ceil(f.data.total/e.query.limit),e.users=f.data.results,e.statusCounts=f.data.statusCounts||[],e.allSelected=!1},f=>{e.fetchError=f&&f.data&&f.data.error||"Failed to load users",console.error(f)})}v();let g=null;e.watch("query",()=>{r.timeout.cancel(g),g=r.timeout(v,500);let{page:f,search:w,...k}=e.query;saveFilterPrefs(u,k),a()},!0),a()},Fa=function(e,t,o,r){let n=mt();e.watch("user.status",()=>{e.user==null&&o.url("/")}),e.user==null&&o.url("/"),e.userInfo,e.repositories=[],e.search="",e.selected={},e.allSelected=!1;let i="admin.user.filterPrefs",a={filters:{status:{ready:!0,expired:!0,removed:!0,error:!0,preparing:!0}},sort:"anonymizeDate",direction:"desc"},u=loadFilterPrefs(i)||{};e.filters={status:Object.assign({},a.filters.status,u.filters&&u.filters.status||{})},e.query={sort:u.sort||a.sort,direction:u.direction||a.direction},e.orderBy=(e.query.direction==="asc"?"":"-")+e.query.sort,e.sortBy=f=>{e.query.sort===f?e.query.direction=e.query.direction==="asc"?"desc":"asc":(e.query.sort=f,e.query.direction="desc"),e.orderBy=(e.query.direction==="asc"?"":"-")+e.query.sort},e.sortIcon=f=>e.query.sort===f?e.query.direction==="asc"?"fa-arrow-up":"fa-arrow-down":"",e.watch("query",()=>{saveFilterPrefs(i,{filters:e.filters,sort:e.query.sort,direction:e.query.direction})},!0),e.watch("filters",()=>{saveFilterPrefs(i,{filters:e.filters,sort:e.query.sort,direction:e.query.direction})},!0),e.statusCountFor=f=>(e.repositories||[]).filter(w=>w.status===f).length,e.repoFiler=f=>e.filters.status[f.status]==!1?!1:!!(e.search.trim().length==0||f.source.fullName.indexOf(e.search)>-1||f.repoId.indexOf(e.search)>-1||f.statusMessage&&f.statusMessage.indexOf(e.search)>-1||f.conference&&f.conference.indexOf(e.search)>-1),e.selectAllOnPage=()=>{e.allSelected=!e.allSelected,(e.filteredRepositories||e.repositories).forEach(f=>{e.selected[f.repoId]=e.allSelected})},e.selectedCount=()=>Object.values(e.selected||{}).filter(Boolean).length,e.selectedRepos=()=>e.repositories.filter(f=>e.selected[f.repoId]),e.bulkRefresh=()=>{let f=e.selectedRepos();f.length&&confirm(`Force refresh ${f.length} repositories?`)&&f.forEach(w=>e.updateRepository(w))},e.bulkRemoveCache=()=>{let f=e.selectedRepos();f.length&&confirm(`Purge cache for ${f.length} repositories?`)&&f.forEach(w=>e.removeCache(w))},e.clearSelection=()=>{e.selected={},e.allSelected=!1},e.exportCsv=()=>{let f=e.filteredRepositories||e.repositories,k=["repoId","status","statusMessage","pageView","anonymizeDate","source.fullName","conference","size.storage"].join(","),b=f.map(D=>[D.repoId,D.status,D.statusMessage||"",D.pageView||0,D.anonymizeDate||"",D.source&&D.source.fullName||"",D.conference||"",D.size&&D.size.storage||0].map(I=>{let C=String(I??"");return/[",\n\r]/.test(C)?'"'+C.replace(/"/g,'""')+'"':C}).join(",")),R=new Blob([k+` +`+b.join(` +`)],{type:"text/csv"}),N=document.createElement("a");N.href=URL.createObjectURL(R),N.download=r.username+"-repositories.csv",N.click()},e.showStatusMessage=f=>{let w=f.statusMessage||"(no message)";window.prompt(`Status message for ${f.repoId} (${f.status}):`,w)},e.fetchGithubInfo=f=>{let w=window.open("","_blank");w&&w.document.write("
Loading GitHub info for "+f.repoId+"...
"),t.get("/api/admin/repos/"+f.repoId+"/github").then(k=>{w&&(w.document.open(),w.document.write('
'+JSON.stringify(k.data,null,2).replace(/[<>]/g,b=>b==="<"?"<":">")+"
"),w.document.close())},k=>{let b=k&&k.data?JSON.stringify(k.data,null,2):String(k);w&&(w.document.body.innerHTML='
'+b+"
")})};function p(f){t.get("/api/admin/users/"+f+"/repos",{}).then(w=>{e.repositories=w.data},w=>{console.error(w)})}function h(f){t.get("/api/admin/users/"+f,{}).then(w=>{e.userInfo=w.data},w=>{console.error(w)})}h(r.username),p(r.username),e.banUser=()=>{confirm(`Ban user ${r.username}?`)&&t.post(`/api/admin/users/${r.username}/ban`).then(()=>h(r.username),f=>console.error(f))},e.activateUser=()=>{t.post(`/api/admin/users/${r.username}/activate`).then(()=>h(r.username),f=>console.error(f))},e.promoteUser=()=>{confirm(`Promote ${r.username} to admin?`)&&t.post(`/api/admin/users/${r.username}/promote`).then(()=>h(r.username),f=>console.error(f))},e.demoteUser=()=>{confirm(`Remove admin privileges from ${r.username}?`)&&t.post(`/api/admin/users/${r.username}/demote`).then(()=>h(r.username),f=>console.error(f))},e.tokens=[],e.tokenForm={name:"",plaintext:null};function v(){t.get("/api/admin/tokens").then(f=>{e.tokens=f.data||[]},f=>{f.status!==401&&f.status!==403&&console.error(f)})}v(),e.createToken=()=>{e.tokenForm.name&&t.post("/api/admin/tokens",{name:e.tokenForm.name}).then(f=>{e.tokenForm.plaintext=f.data.token,e.tokenForm.name="",v()},f=>console.error(f))},e.revokeToken=f=>{confirm(`Revoke token "${f.name}"?`)&&t.delete("/api/admin/tokens/"+f.id).then(()=>v(),w=>console.error(w))},e.removeCache=f=>{confirm("Remove cached files for "+f.repoId+"?")&&t.delete("/api/admin/repos/"+f.repoId).then(()=>p(r.username),w=>console.error(w))},e.removeRepository=f=>{confirm("Remove repository "+f.repoId+"?")&&t.delete("/api/repo/"+f.repoId+"/").then(()=>p(r.username),w=>console.error(w))},e.updateRepository=f=>{let w=Ue({title:`Refreshing ${f.repoId}...`,date:new Date,body:`The repository ${f.repoId} is going to be refreshed.`});e.toasts.push(w),t.post(`/api/repo/${f.repoId}/refresh`).then(k=>{k.data.status=="ready"?w.title=`${f.repoId} is refreshed.`:w.title=`Refreshing of ${f.repoId}.`},k=>{w.title=`Error during the refresh of ${f.repoId}.`,w.body=k.body})},e.getGitHubRepositories=f=>{t.get(`/api/user/${e.userInfo.username}/all_repositories`,{params:{force:"1"}}).then(w=>{e.userInfo.repositories=w.data})};let g=null;e.watch("query",()=>{n.timeout.cancel(g),g=n.timeout(()=>{p(r.username)},500)},!0)},La=function(e,t,o){let r=mt(),n=as();e.Math=Math,e.watch("user.status",()=>{e.user==null&&o.url("/")}),e.user==null&&o.url("/"),e.conferences=[],e.total=-1,e.totalPage=0,e.statusCounts=[];let i=k=>{if(k.key==="/"&&!["INPUT","TEXTAREA","SELECT"].includes(document.activeElement?.tagName)){k.preventDefault();let b=document.querySelector('.admin-filter-toolbar input[type="search"]');b&&b.focus()}};n(document,"keydown",i),e.on("dispose",()=>document.removeEventListener("keydown",i)),e.clearFilter=k=>{k==="dateRange"?(e.query.dateFrom="",e.query.dateTo=""):e.query[k]="",e.query.page=1},e.chips=[];let a=()=>{let k=[];(e.query.dateFrom||e.query.dateTo)&&k.push({key:"dateRange",label:"Date",value:(e.query.dateFrom||"\u2026")+" \u2013 "+(e.query.dateTo||"\u2026")}),e.chips=k};e.statusCountFor=k=>{let b=(e.statusCounts||[]).find(R=>R._id===k);return b?b.count:0},e.toggleSortDirection=()=>{e.query.direction=e.query.direction==="asc"?"desc":"asc"},e.sortBy=k=>{e.query.sort===k?e.query.direction=e.query.direction==="asc"?"desc":"asc":(e.query.sort=k,e.query.direction="desc"),e.query.page=1},e.sortIcon=k=>e.query.sort===k?e.query.direction==="asc"?"fa-arrow-up":"fa-arrow-down":"";let u="admin.conferences.filterPrefs",p={page:1,limit:25,sort:"name",direction:"asc",search:"",dateFrom:"",dateTo:"",ready:!1,expired:!1,removed:!1,error:!0,preparing:!0},h=loadFilterPrefs(u)||{};e.query=Object.assign({},p,h,{page:1,search:""});let v=o.search();v.search&&(e.query.search=v.search);let g="admin.conferences.presets";e.presets=JSON.parse(localStorage.getItem(g)||"[]"),e.savePreset=()=>{let k=window.prompt("Preset name:");if(!k)return;let b=Object.assign({},e.query);delete b.page,e.presets=(e.presets||[]).filter(R=>R.name!==k),e.presets.push({name:k,query:b}),localStorage.setItem(g,JSON.stringify(e.presets))},e.applyPreset=k=>{Object.assign(e.query,k.query,{page:1})},e.deletePreset=k=>{e.presets=(e.presets||[]).filter(b=>b.name!==k.name),localStorage.setItem(g,JSON.stringify(e.presets))},e.removeConference=k=>{confirm("Remove conference "+k.conferenceID+"?")&&t.delete("/api/admin/conferences/"+k.conferenceID).then(()=>f(),b=>console.error(b))},e.exportCsv=()=>{let k=new URLSearchParams(Object.entries(e.query).filter(([,b])=>b!==""&&b!==!1&&b!=null));k.set("format","csv"),k.set("limit","10000"),window.open("/api/admin/conferences?"+k.toString(),"_blank")},e.fetchError=null;function f(){e.fetchError=null,t.get("/api/admin/conferences",{params:e.query}).then(k=>{e.total=k.data.total,e.totalPage=Math.ceil(k.data.total/e.query.limit),e.conferences=k.data.results,e.statusCounts=k.data.statusCounts||[]},k=>{e.fetchError=k&&k.data&&k.data.error||"Failed to load conferences",console.error(k)})}f();let w=null;e.watch("query",()=>{r.timeout.cancel(w),w=r.timeout(f,500);let{page:k,search:b,...R}=e.query;saveFilterPrefs(u,R),a()},!0),a()},Ua=function(e,t,o,r,n){let i=mt();e.watch("user.status",()=>{e.user==null&&o.url("/")}),e.user==null&&o.url("/"),e.queueList=[],e.jobs=[],e.selectedQueue="download",e.selectedStats=null,e.range="1h",e.allStates=["active","waiting","delayed","failed","completed"],e.stateFilter={active:!0,waiting:!0,delayed:!0,failed:!0,completed:!0},e.query={search:"",autoRefresh:!0},e.filteredJobs=()=>(e.jobs||[]).filter(b=>e.stateFilter[b._state]),e.jobProgressPct=b=>b&&b.progress&&typeof b.progress=="object"&&typeof b.progress.percent=="number"?Math.max(0,Math.min(100,Math.round(b.progress.percent))):typeof b.progress=="number"?Math.max(0,Math.min(100,Math.round(b.progress))):null,e.jobDuration=b=>{if(!b.processedOn)return"-";let N=(b.finishedOn||Date.now())-b.processedOn;return N<1e3?N+"ms":(N/1e3).toFixed(1)+"s"},e.metricsPoints=[],e.selectQueue=b=>{e.selectedQueue=b,a(),u()},e.setRange=b=>{e.range=b,u()};function a(){let b={queue:e.selectedQueue,search:e.query.search};t.get("/api/admin/queues",{params:b}).then(R=>{e.queueList=R.data.queues||[],e.jobs=R.data.jobs||[],e.selectedStats=e.queueList.find(N=>N.key===e.selectedQueue)||e.queueList[0]||null},R=>console.error(R))}function u(){t.get("/api/admin/queues/metrics",{params:{queue:e.selectedQueue,range:e.range}}).then(b=>{e.metricsPoints=b.data.points||[],n(f,0)},b=>console.error(b))}a(),u();let p=r(()=>{e.query.autoRefresh&&(a(),u())},15e3);e.on("dispose",()=>r.cancel(p)),e.refreshNow=function(){a(),u()};function h(b){let R=b&&b.data&&(b.data.message||b.data.error)||"Request failed";e.actionError=R,n(()=>{e.actionError=null},5e3),console.error(b)}e.actionError=null,e.removeJob=b=>{t.delete(`/api/admin/queue/${e.selectedQueue}/${b.id}`).then(a,h)},e.retryJob=b=>{t.post(`/api/admin/queue/${e.selectedQueue}/${b.id}`).then(a,h)},e.retryFailed=()=>{confirm(`Retry all failed jobs in ${e.selectedQueue}?`)&&t.post(`/api/admin/queue/${e.selectedQueue}/retry-failed`).then(a,b=>console.error(b))},e.drainSelected=()=>{confirm(`Drain the ${e.selectedQueue} queue?`)&&t.post(`/api/admin/queue/${e.selectedQueue}/drain`).then(a,b=>console.error(b))},e.togglePause=()=>{let b=e.selectedStats&&e.selectedStats.paused?"resume":"pause";t.post(`/api/admin/queue/${e.selectedQueue}/${b}`).then(a,R=>console.error(R))},e.emptyQueue=()=>{confirm(`Empty the ${e.selectedQueue} queue? This removes ALL jobs.`)&&t.post(`/api/admin/queue/${e.selectedQueue}/empty`).then(a,b=>console.error(b))},e.pauseAll=()=>{confirm("Pause all queues?")&&t.post("/api/admin/queues/pause-all").then(a,b=>console.error(b))};let v=null;e.watch("query.search",()=>{i.timeout.cancel(v),v=i.timeout(a,350)}),e.expanded={},e.toggleJob=b=>{e.expanded[b.id]=!e.expanded[b.id]},e.humanTime=b=>{if(!b)return"";let R=new Date(b);return R.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!1})+" "+R.toLocaleDateString([],{month:"short",day:"numeric"})},e.delayCountdown=b=>{if(!b)return"";var R=Math.max(0,Math.ceil((b-Date.now())/1e3));if(R<=0)return"resuming soon";var N=Math.floor(R/60),D=R%60;return"in "+(N>0?N+"m "+D+"s":D+"s")};function g(b){if(b<=0)return{ticks:[0],niceMax:1};let R=Math.pow(10,Math.floor(Math.log10(b))),N=R;b/N<2?N=R/2:b/N>5&&(N=R*2);let D=Math.ceil(b/N)*N,I=[];for(let C=0;C<=D;C+=N)I.push(C);return{ticks:I,niceMax:D}}function f(){var b=document.getElementById("q-throughput-chart");if(!b)return;var R=b.getContext("2d"),N=window.devicePixelRatio||1,D=b.parentElement.getBoundingClientRect(),I=44,C=50,O=20,P=D.width-40,ee=180,J=P-I-C,K=ee-O;b.width=P*N,b.height=ee*N,b.style.width=P+"px",b.style.height=ee+"px",R.setTransform(N,0,0,N,0,0);var U=document.body.classList.contains("dark-mode"),de="#8A857C",se=U?"rgba(255,255,255,0.06)":"rgba(0,0,0,0.06)",ie=U?"#A7B2FF":"#3B4AD6",ce=U?"rgba(167,178,255,0.12)":"rgba(59,74,214,0.08)",we=U?"#F08A82":"#B42318",he=U?"rgba(240,138,130,0.08)":"rgba(180,35,24,0.06)",me=U?"#F5C842":"#B8860B",ae=e.metricsPoints||[];if(ae.length===0){R.fillStyle=de,R.font="12px monospace",R.textAlign="center",R.fillText("No metrics data yet",P/2,ee/2),w=null;return}var A=ae.map(function(M){return M.completed}),V=ae.map(function(M){return M.failed}),j=ae.map(function(M){return M.avgMs}),Z=ae.length,oe=J/(Z-1||1),qe=Math.max(1,Math.max.apply(null,A),Math.max.apply(null,V)),ze=g(qe),Fe=Math.max.apply(null,j),F=Fe>0?g(Fe):{ticks:[0],niceMax:1},ne=function(M){return K-M/ze.niceMax*(K-10)},L=function(M){return K-M/F.niceMax*(K-10)},W=function(M){return I+M*oe};R.textAlign="right",R.textBaseline="middle",R.font="10px monospace",ze.ticks.forEach(function(M){var Y=ne(M);R.strokeStyle=se,R.lineWidth=1,R.beginPath(),R.moveTo(I,Y),R.lineTo(P-C,Y),R.stroke(),R.fillStyle=de,R.fillText(M>=1e3?(M/1e3).toFixed(1)+"k":String(M),I-6,Y)}),Fe>0&&(R.textAlign="left",F.ticks.forEach(function(M){var Y=L(M);R.fillStyle=me,R.fillText(M>=1e3?(M/1e3).toFixed(1)+"s":M+"ms",P-C+6,Y)}));var fe=Date.now(),Ce=Math.min(6,Z);R.textAlign="center",R.textBaseline="top";for(var pe=0;pe0&&(R.beginPath(),j.forEach(function(M,Y){var X=W(Y),Q=L(M);if(Y===0)R.moveTo(X,Q);else{var B=(W(Y-1)+X)/2;R.bezierCurveTo(B,L(j[Y-1]),B,Q,X,Q)}}),R.strokeStyle=me,R.lineWidth=1,R.setLineDash([4,3]),R.stroke(),R.setLineDash([])),w={pts:ae,maxLen:Z,marginLeft:I,step:oe,totalW:P,toX:W}}var w=null;function k(){var b=document.getElementById("q-throughput-chart");if(!(!b||b._tipBound)){b._tipBound=!0;var R=document.getElementById("q-chart-tooltip"),N=document.getElementById("q-chart-crosshair");b.addEventListener("mousemove",function(D){if(!(!w||!R||!N)){var I=w,C=b.getBoundingClientRect(),O=D.clientX-C.left,P=Math.round((O-I.marginLeft)/I.step);if(P<0||P>=I.maxLen){R.style.display="none",N.style.display="none";return}var ee=I.pts[P],J=Date.now(),K=Math.round((J-ee.ts)/6e4),U;if(K<=0)U="now";else if(K<60)U=K+"m ago";else if(K<1440){var de=Math.floor(K/60),se=K%60;U=de+"h"+(se?" "+se+"m":"")+" ago"}else U=Math.round(K/1440)+"d ago";var ie='
'+U+'
● completed: '+ee.completed+'/min
● failed: '+ee.failed+"/min
";if(ee.avgMs>0){var ce=ee.avgMs>=1e3?(ee.avgMs/1e3).toFixed(1)+"s":ee.avgMs+"ms";ie+='
● avg time: '+ce+"
"}R.innerHTML=ie;var we=I.toX(P),he=R.offsetWidth,me=we+10;me+he>I.totalW&&(me=we-he-10),R.style.display="block",R.style.left=me+"px",R.style.top="8px",N.style.display="block",N.style.left=we+"px"}}),b.addEventListener("mouseleave",function(){R&&(R.style.display="none"),N&&(N.style.display="none")})}}e.watch("metricsPoints",function(){n(k,50)})},za=function(e,t,o,r){let n=mt();e.watch("user.status",()=>{e.user==null&&o.url("/")}),e.user==null&&o.url("/"),e.entries=[],e.visible=[],e.available=!0,e.cap=1e3,e.total=0,e.pageSize=250,e.expanded={},e.detailTab={},e.copyHint="",e.parsedFilterCount=0,e.stats={last24h:0,prev24h:0,delta:0,severity:{error:0,warn:0,info:0},unique:{error:0,warn:0,info:0},buckets:[],dropped:0},e.query={search:"",bucket:"",sort:"recent",group:"code",autoRefresh:!0},e.relTime=N=>{if(!N)return"";let D=new Date(N).getTime();if(isNaN(D))return N;let I=Math.max(0,Date.now()-D),C=Math.floor(I/1e3);if(C<5)return"just now";if(C<60)return`${C}s ago`;let O=Math.floor(C/60);if(O<60)return`${O}m ago`;let P=Math.floor(O/60);if(P<24)return`${P}h ago`;let ee=Math.floor(P/24);return ee<7?`${ee}d ago`:new Date(N).toLocaleDateString()},e.absTime=N=>{if(!N)return"";let D=new Date(N);return isNaN(D.getTime())?N:D.toLocaleString()},e.absTimeShort=N=>{if(!N)return"";let D=new Date(N);return isNaN(D.getTime())?N:D.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!1})};let i=/^[a-zA-Z][a-zA-Z0-9]*(?:_[a-zA-Z0-9]+)+$/;function a(N,D){let I=N&&(N.httpStatus||N.status)||null;if(typeof I=="number"){if(I>=500)return"error";if(I===401||I===403||I===404)return"info";if(I>=400)return"warn"}return D==="error"?"error":D==="warn"?"warn":"info"}function u(N){let D=(N.raw||[]).find(P=>P&&typeof P=="object"&&!Array.isArray(P));if(D){D.message&&i.test(D.message)?(N.displayMessage=D.message,N.displayContext=N.message):D.code&&i.test(String(D.code))?(N.displayMessage=String(D.code),N.displayContext=N.message):D.name&&D.name!=="AnonymousError"&&D.name!=="Error"?(N.displayMessage=D.name,N.displayContext=D.message||N.message):N.displayMessage=N.message,N._status=D.httpStatus||D.status||null,N._url=D.url||null,N._method=D.method||null,N._repoId=D.repoId||D.detail||null,N._detail=D.detail&&D.detail!==N._repoId?D.detail:null;let P=typeof D.stack=="string"?D.stack:null;for(var I=[D.cause,D.err].filter(Boolean),C=0;!P&&C{K==null||K===""||I.push([J,K])};C("name",D&&D.name),C("code",N.displayMessage||D&&D.message),N._bucket&&C("kind",N._bucket),C("httpStatus",D&&D.httpStatus),D&&D.status&&!D.httpStatus&&C("status",D.status),C("module",N.module);let O=D&&D.detail;if(typeof O=="string"){let J=O.trim();if(J[0]==="{"||J[0]==="[")try{O=JSON.parse(O)}catch{}}if(C("detail",O),C("repoId",D&&D.repoId),C("filePath",D&&D.filePath),C("upstreamStatus",D&&D.upstreamStatus),C("upstreamBody",D&&D.upstreamBody),C("url",N._url),C("err",D&&D.err),C("cause",D&&!D.err&&D.cause),C("ts",N.ts),!I.length)return JSON.stringify(N,null,2);let P=I.reduce((J,K)=>Math.max(J,K[0].length),0),ee=["{"];return I.forEach(([J,K],U)=>{let se=` ${`"${J}":`.padEnd(P+3," ")} `,ie=Ume===0?he:we+he).join(` `)}else typeof K=="number"||typeof K=="boolean"?ce=String(K):ce=JSON.stringify(K);ee.push(`${se}${ce}${ie}`)}),ee.push("}"),ee.join(` -`)}function h(S){let D=[],I="",C=/(\w+):(>=|<=|!=|>|<|=)?([^\s]+)/g,A=0,q;for(;q=C.exec(S);)I+=S.slice(A,q.index),A=C.lastIndex,D.push({key:q[1],op:q[2]||"=",val:q[3]});return I+=S.slice(A),{filters:D,free:I.trim().toLowerCase()}}function v(S,D){for(let I of D.filters){let C=(q,ee,J)=>{let K=parseFloat(q),U=parseFloat(ee);return J==="="?String(q)===String(ee):J==="!="?String(q)!==String(ee):J===">="?K>=U:J==="<="?K<=U:J===">"?K>U:J==="<"?KD&&A._bucket!==D?!1:v(A,S)),C=e.query.group;if(C){let A=J=>C==="module"?J.module:J.displayMessage||J.message||"_",q=new Map;for(let J of I){let K=A(J);if(q.has(K)){let U=q.get(K);U.count++,U._related.push(J),new Date(J.ts)>new Date(U.ts)&&(U.ts=J.ts,U._url=J._url,U._status=J._status),new Date(J.ts)new Date(K.ts).getTime()>=ee).length;I=Array.from(q.values())}else I=I.map((A,q)=>(A._key="row:"+q+":"+A.ts,A._related=[A],A._firstSeen=A.ts,A._lastHourCount=0,A.count=1,A));e.query.sort==="count"?I.sort((A,q)=>q.count-A.count||new Date(q.ts)-new Date(A.ts)):I.sort((A,q)=>new Date(q.ts)-new Date(A.ts)),e.visible=I}function f(S){let D=S?e.entries.length:0,I=S?e.pageSize:Math.max(e.pageSize,e.entries.length||e.pageSize);t.get("/api/admin/errors",{params:{offset:D,limit:I}}).then(C=>{let A=(C.data.entries||[]).map(u);e.entries=S?e.entries.concat(A):A,e.available=!!C.data.available,e.cap=C.data.max||e.cap,e.total=C.data.total||e.entries.length,g()},C=>console.error(C))}e.loadMore=()=>f(!0),e.canLoadMore=()=>e.entries.length{let D=S.data||{},I=D.prev24h?Math.round((D.last24h-D.prev24h)/D.prev24h*100):0;e.stats={last24h:D.last24h||0,prev24h:D.prev24h||0,delta:I,severity:D.severity||{error:0,warn:0,info:0},unique:D.unique||{error:0,warn:0,info:0},buckets:D.buckets||[],dropped:D.dropped||0}},S=>console.error(S))}function _(){f(),b()}e.barPx=(S,D)=>{let I=e.stats.buckets||[],C=0;for(let J of I)C=Math.max(C,(J.error||0)+(J.warn||0)+(J.info||0));if(!C)return 0;let A=(S.error||0)+(S.warn||0)+(S.info||0);if(!A)return 0;let q=Math.round(A/C*60),ee=S[D]||0;return Math.round(ee/A*q)},e.bucketTitle=S=>`${new Date(S.hour).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})} \xB7 ${S.error||0} err \xB7 ${S.warn||0} warn \xB7 ${S.info||0} info`,e.toggle=S=>{e.expanded[S._key]=!e.expanded[S._key]},e.setBucket=S=>{e.query.bucket=S},e.refreshNow=_,e.clearAll=()=>{confirm("Clear all captured errors?")&&t.delete("/api/admin/errors").then(_,S=>console.error(S))},e.exportCsv=()=>{let S=["ts","level","module","displayMessage","_status","_url","_repoId"],D=[S.join(",")];for(let q of e.visible)D.push(S.map(ee=>{let J=q[ee]==null?"":String(q[ee]);return/[",\n]/.test(J)?`"${J.replace(/"/g,'""')}"`:J}).join(","));let I=new Blob([D.join(` -`)],{type:"text/csv;charset=utf-8"}),C=URL.createObjectURL(I),A=document.createElement("a");A.href=C,A.download=`errors-${new Date().toISOString().slice(0,19)}.csv`,document.body.appendChild(A),A.click(),document.body.removeChild(A),URL.revokeObjectURL(C)};function k(S){e.copyHint=`${S} copied`,n.timeout(()=>{e.copyHint=""},1500)}e.copyJson=S=>{navigator.clipboard.writeText(S._detailJson).then(()=>k("JSON"))},e.copyCurl=S=>{if(!S._url)return;let I=`curl -X ${S._method||"GET"} '${window.location.origin}${S._url}'`;navigator.clipboard.writeText(I).then(()=>k("curl"))},_();let R=r(()=>{e.query.autoRefresh&&_()},15e3);e.on("dispose",()=>r.cancel(R)),e.watch("query.search",g),e.watch("query.bucket",g),e.watch("query.sort",g),e.watch("query.group",g)},qa=function(e,t,o,r){if(e.Math=Math,e.watch("user.status",()=>{e.user==null&&o.url("/")}),e.user==null){o.url("/");return}e.data=null,e.loading=!0,e.error=null;function n(f){if(f==null)return"\u2014";for(var b=["B","KB","MB","GB","TB"],_=0,k=f;k>=1024&&_0?1:0)+" "+b[_]}e.humanBytes=n;function i(f){if(!f)return"\u2014";var b=Math.floor(f/86400),_=Math.floor(f%86400/3600),k=Math.floor(f%3600/60);return b>0?b+"d "+(_<10?"0":"")+_+"h":_>0?_+"h "+(k<10?"0":"")+k+"m":k+"m"}e.humanDuration=i;function a(f){return f==null?"\u2014":f>=1e6?(f/1e6).toFixed(1)+"M":f>=1e3?(f/1e3).toFixed(1)+"K":String(f)}e.humanNum=a,e.queueTotal=function(f){return f?(f.waiting||0)+(f.active||0)+(f.delayed||0)+(f.failed||0):0},e.statusCount=function(f){if(!e.data||!e.data.repos)return 0;for(var b=e.data.repos.statusBreakdown||[],_=0;_h[_])&&(h[_]=b[_])})})},function(f){e.loading=!1,e.error=f.data&&f.data.error||"Failed to load overview"})}v();var g=r(v,3e4);e.on("dispose",function(){r.cancel(g)})};var Ma=[{path:"/",template:"partials/home.htm",title:"Anonymous GitHub \u2013 Share the code, not the author",preserveExplorer:!1,setup:(e,t)=>_a(e,t.http,t.location,t.window,t.timeout)},{path:"/dashboard",template:"partials/dashboard.htm",title:"Your anonymizations \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>Ea(e,t.http,t.location,t.promises,t.window,t.quotaService)},{path:"/pr-dashboard",redirect:"/dashboard"},{path:"/anonymize/:repoId?",template:"partials/anonymize.htm",title:"New anonymization \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>Bn(e,t.http,t.html,t.params,t.location,t.translate,t.timeout)},{path:"/pull-request-anonymize/:pullRequestId?",template:"partials/anonymize.htm",title:"Anonymize a pull request \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>Bn(e,t.http,t.html,t.params,t.location,t.translate,t.timeout)},{path:"/gist-anonymize/:gistId?",template:"partials/anonymize.htm",title:"Anonymize a gist \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>Bn(e,t.http,t.html,t.params,t.location,t.translate,t.timeout)},{path:"/status/:repoId",template:"partials/status.htm",title:"Repository status \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>Ca(e,t.http,t.params)},{path:"/conferences",template:"partials/conferences.htm",title:"Your conferences \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>Da(e,t.http,t.location)},{path:"/conference/new",template:"partials/newConference.htm",title:"New conference \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>Go(e,t.http,t.location,t.params)},{path:"/conference/:conferenceId/edit",template:"partials/newConference.htm",title:"Edit conference \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>Go(e,t.http,t.location,t.params)},{path:"/conference/:conferenceId",template:"partials/conference.htm",title:"Conference \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>Ra(e,t.http,t.location,t.params)},{path:"/faq",template:"partials/faq.htm",title:"FAQ \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>ba(e,t.http)},{path:"/profile",template:"partials/profile.htm",title:"Your settings \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>wa(e,t.http,t.translate,t.timeout,t.quotaService)},{path:"/claim",template:"partials/claim.htm",title:"Claim an anonymization \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>ka(e,t.http,t.location)},{path:"/pr/:pullRequestId/:path(.*)*",template:"partials/pullRequest.htm",title:"Anonymous pull request \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>Na(e,t.http,t.location,t.params,t.html)},{path:"/gist/:gistId/:path(.*)*",template:"partials/gist.htm",title:"Anonymous gist \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>Sa(e,t.http,t.location,t.params,t.html)},{path:"/r/:repoId/:path(.*)*",template:"partials/explorer.htm",title:"Anonymous repository \u2013 Anonymous GitHub",preserveExplorer:!0,setup:(e,t)=>Bo(e,t.http,t.location,t.params,t.html,t.promises)},{path:"/repository/:repoId/:path(.*)*",template:"partials/explorer.htm",title:"Anonymous repository \u2013 Anonymous GitHub",preserveExplorer:!0,setup:(e,t)=>Bo(e,t.http,t.location,t.params,t.html,t.promises)},{path:"/admin/",template:"partials/admin/overview.htm",title:"Admin \xB7 Overview \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>qa(e,t.http,t.location,t.interval)},{path:"/admin/repositories",template:"partials/admin/repositories.htm",title:"Admin \xB7 Repositories \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>Ta(e,t.http,t.location)},{path:"/admin/users",template:"partials/admin/users.htm",title:"Admin \xB7 Users \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>Oa(e,t.http,t.location)},{path:"/admin/users/:username",template:"partials/admin/user.htm",title:"Admin \xB7 User details \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>Aa(e,t.http,t.location,t.params)},{path:"/admin/conferences",template:"partials/admin/conferences.htm",title:"Admin \xB7 Conferences \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>Ia(e,t.http,t.location)},{path:"/admin/queues",template:"partials/admin/queues.htm",title:"Admin \xB7 Queues \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>Va(e,t.http,t.location,t.interval,t.timeout)},{path:"/admin/errors",template:"partials/admin/errors.htm",title:"Admin \xB7 Errors \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>Pa(e,t.http,t.location,t.interval)},{path:"/404",template:"partials/404.htm",title:"Page not found \u2013 Anonymous GitHub",preserveExplorer:!1,setup:()=>{}},{path:"/:pathMatch(.*)*",template:"partials/404.htm",title:"Page not found \u2013 Anonymous GitHub",setup:()=>{}}];var Rc={class:"paper-empty"};function $a(e,t){return l(),d("div",Rc,[...t[0]||(t[0]=[_e('
Error \xB7 404

This link
isn\u2019t here.

The anonymous mirror you\u2019re looking for has expired, been removed by its owner, or never existed. If you received this URL from an author, ask them to re-issue it.

',1)])])}var Tc={class:"container paper-page admin-page"},Oc={class:"admin-summary"},Ac={class:"summary-total"},Ic={class:"count"},Vc={class:"count"},Pc={class:"count"},qc={class:"count"},Mc={class:"count"},$c={key:0,class:"alert alert-danger",style:{margin:"8px 0"}},Fc={class:"w-100 admin-filter-toolbar","aria-label":"Conferences","accept-charset":"UTF-8"},Lc={class:"admin-filter-row"},Uc={class:"search-wrap"},zc={type:"search",class:"form-control",placeholder:"Search conferences\u2026",autocomplete:"off"},Hc={key:0,class:"admin-search-hint"},Bc={class:"admin-filter-inline","aria-label":"Pagination"},Gc=["disabled"],jc={style:{"font-family":"var(--font-mono)","font-size":"12px",color:"var(--ink-muted)"}},Wc=["disabled"],Kc={key:0,class:"admin-filter-row"},Yc={class:"admin-active-chips"},xc={class:"key"},Jc=["onClick"],Qc={class:"paper-table paper-table-conferences w-100",role:"table","aria-label":"Conferences"},Xc={class:"paper-table-head",role:"row"},Zc={role:"columnheader"},ep={role:"columnheader"},tp={role:"columnheader"},sp={class:"paper-table-row",role:"row"},np={class:"cell-anon",role:"cell"},op={class:"anon-text"},rp=["textContent","href"],ip={class:"anon-sub"},ap={class:"cell-status",role:"cell"},lp=["textContent"],dp={class:"cell-views num",role:"cell"},up=["textContent","href"],cp={class:"cell-expires",role:"cell"},pp={class:"cell-actions",role:"cell"},fp={class:"dropdown"},mp={class:"dropdown-menu dropdown-menu-right"},hp=["href"],vp=["href"],yp=["href"],gp=["onClick"],bp={key:0,class:"paper-table-empty"},wp={class:"admin-toolbar",style:{"justify-content":"space-between","border-bottom":"none"}},kp={style:{"font-size":"12px",color:"var(--ink-muted)"}},_p={key:0,class:"pagination-compact"},Ep=["disabled"],Cp=["max"],Np=["disabled"],Sp={class:"admin-filter-inline"},Dp={class:"form-control form-control-sm"};function Fa(e,t){let o=ye("field"),r=ye("form");return l(),d("div",Tc,[t[42]||(t[42]=_e('
Admin \xA0/\xA0 Conferences

Conferences

',3)),s("div",Oc,[s("span",Ac,c(e.total>=0?e.fmt.number(e.total):"\u2026"),1),s("span",{class:T(["summary-pill ok",{active:e.query?.ready}]),title:"Toggle ready filter",onClick:t[0]||(t[0]=n=>{e.query.ready=!e.query.ready,e.query.page=1})},[t[13]||(t[13]=y("Ready ",-1)),s("span",Ic,c(e.fmt?.number(e.statusCountFor("ready"))),1)],2),s("span",{class:T(["summary-pill warn",{active:e.query?.preparing}]),title:"Toggle preparing filter",onClick:t[1]||(t[1]=n=>{e.query.preparing=!e.query.preparing,e.query.page=1})},[t[14]||(t[14]=y("Preparing ",-1)),s("span",Vc,c(e.fmt?.number(e.statusCountFor("preparing"))),1)],2),s("span",{class:T(["summary-pill error",{active:e.query?.error}]),title:"Toggle errored filter",onClick:t[2]||(t[2]=n=>{e.query.error=!e.query.error,e.query.page=1})},[t[15]||(t[15]=y("Errored ",-1)),s("span",Pc,c(e.fmt?.number(e.statusCountFor("error"))),1)],2),s("span",{class:T(["summary-pill",{active:e.query?.expired}]),title:"Toggle expired filter",onClick:t[3]||(t[3]=n=>{e.query.expired=!e.query.expired,e.query.page=1})},[t[16]||(t[16]=y("Expired ",-1)),s("span",qc,c(e.fmt?.number(e.statusCountFor("expired"))),1)],2),s("span",{class:T(["summary-pill",{active:e.query?.removed}]),title:"Toggle removed filter",onClick:t[4]||(t[4]=n=>{e.query.removed=!e.query.removed,e.query.page=1})},[t[17]||(t[17]=y("Removed ",-1)),s("span",Mc,c(e.fmt?.number(e.statusCountFor("removed"))),1)],2)]),e.fetchError?(l(),d("div",$c,[t[18]||(t[18]=s("i",{class:"fas fa-exclamation-triangle"},null,-1)),y(" "+c(e.fetchError),1)])):m("v-if",!0),E((l(),d("form",Fc,[s("div",Lc,[s("div",Uc,[E(s("input",zc,null,512),[[o,{state:e.viewState,set:n=>{e.query.search=n},value:e.query?.search,form:null,options:{}}]]),e.query?.search?m("v-if",!0):(l(),d("span",Hc,"/"))]),t[22]||(t[22]=s("span",{class:"admin-filter-spacer"},null,-1)),s("button",{class:"btn btn-sm",type:"button",onClick:t[5]||(t[5]=n=>e.exportCsv())},[...t[19]||(t[19]=[s("i",{class:"fas fa-file-csv"},null,-1),y(" Export",-1)])]),s("span",Bc,[s("button",{class:"btn btn-sm",type:"button",onClick:t[6]||(t[6]=n=>e.query.page=Math.max(1,e.query.page-1)),disabled:e.query?.page<=1},[...t[20]||(t[20]=[s("i",{class:"fas fa-chevron-left"},null,-1)])],8,Gc),s("span",jc,c(e.query?.page)+"/"+c(e.totalPage||1),1),s("button",{class:"btn btn-sm",type:"button",onClick:t[7]||(t[7]=n=>e.query.page=Math.min(e.totalPage,e.query.page+1)),disabled:e.query?.page>=e.totalPage},[...t[21]||(t[21]=[s("i",{class:"fas fa-chevron-right"},null,-1)])],8,Wc)])]),e.chips?.length?(l(),d("div",Kc,[s("div",Yc,[(l(!0),d(x,null,re(e.chips,(n,i)=>(l(),d("span",{class:"admin-active-chip",key:n?.key},[s("span",xc,c(n?.label),1),s("span",null,c(n?.value),1),s("button",{type:"button",onClick:a=>e.clearFilter(n.key)},[...t[23]||(t[23]=[s("i",{class:"fas fa-times"},null,-1)])],8,Jc)]))),128))])])):m("v-if",!0)])),[[r,e.viewState]]),s("div",Qc,[s("div",Xc,[s("div",Zc,[s("span",{class:T(["sortable",{active:e.query?.sort=="name"}]),onClick:t[8]||(t[8]=n=>e.sortBy("name"))},[t[24]||(t[24]=y("Conference ",-1)),s("i",{class:T(["fas",e.sortIcon("name")])},null,2)],2)]),s("div",ep,[s("span",{class:T(["sortable",{active:e.query?.sort=="status"}]),onClick:t[9]||(t[9]=n=>e.sortBy("status"))},[t[25]||(t[25]=y("Status ",-1)),s("i",{class:T(["fas",e.sortIcon("status")])},null,2)],2)]),t[27]||(t[27]=s("div",{role:"columnheader",class:"num"},"Repos",-1)),s("div",tp,[s("span",{class:T(["sortable",{active:e.query?.sort=="startDate"}]),onClick:t[10]||(t[10]=n=>e.sortBy("startDate"))},[t[26]||(t[26]=y("Window ",-1)),s("i",{class:T(["fas",e.sortIcon("startDate")])},null,2)],2)]),t[28]||(t[28]=s("div",{role:"columnheader","aria-label":"Actions"},null,-1))]),(l(!0),d(x,null,re(e.filteredConferences,(n,i)=>(l(),d("div",sp,[s("div",np,[t[30]||(t[30]=s("span",{class:"type-badge type-repo"},"Conf",-1)),s("div",op,[s("a",{class:"repo-name",textContent:c(n?.name),href:e.safeUrl("/conference/"+n?.conferenceID)},null,8,rp),s("div",ip,[s("span",null,c(n?.conferenceID),1),t[29]||(t[29]=y("\xA0\xB7\xA0",-1)),s("span",null,c(e.fmt?.number(n?.price||0))+" \u20AC",1)])])]),s("div",ap,[s("span",{class:T(["status-dot",{"status-removed":n?.status=="removed"||n?.status=="expired","status-ready":n?.status=="ready","status-error":n?.status=="error","status-preparing":n?.status=="preparing"}])},null,2),s("span",{textContent:c(e.fmt?.title(n?.status))},null,8,lp)]),s("div",dp,[s("a",{title:"Show repositories in this conference",textContent:c(e.fmt?.number(n?.repositories?.length||0)),href:e.safeUrl("/admin/?conference="+n?.conferenceID)},null,8,up)]),s("div",cp,c(e.fmt?.date(n?.startDate))+" \u2013 "+c(e.fmt?.date(n?.endDate)),1),s("div",pp,[s("div",fp,[t[36]||(t[36]=s("button",{class:"btn btn-icon-dots",type:"button","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false","aria-label":"Actions"},[s("i",{class:"fas fa-ellipsis-h","aria-hidden":"true"})],-1)),s("div",mp,[s("a",{class:"dropdown-item",href:e.safeUrl("/conference/"+n?.conferenceID+"/edit")},[...t[31]||(t[31]=[s("i",{class:"far fa-edit"},null,-1),y(" Edit",-1)])],8,hp),s("a",{class:"dropdown-item",href:e.safeUrl("/conference/"+n?.conferenceID+"/")},[...t[32]||(t[32]=[s("i",{class:"fa fa-eye"},null,-1),y(" View",-1)])],8,vp),s("a",{class:"dropdown-item",href:e.safeUrl("/admin/?conference="+n?.conferenceID)},[...t[33]||(t[33]=[s("i",{class:"fas fa-code-branch"},null,-1),y(" View repositories",-1)])],8,yp),t[35]||(t[35]=s("div",{class:"dropdown-divider"},null,-1)),E(s("a",{class:"dropdown-item text-danger",href:"#",onClick:ge(a=>e.removeConference(n),["prevent"])},[...t[34]||(t[34]=[s("i",{class:"fas fa-trash-alt"},null,-1),y(" Remove",-1)])],8,gp),[[H,n?.status!="removed"]])])])])]))),256)),e.filteredConferences?.length==0?(l(),d("div",bp,[...t[37]||(t[37]=[s("i",{class:"fas fa-inbox"},null,-1),s("span",null,"No conferences match the current filters.",-1)])])):m("v-if",!0)]),s("div",wp,[s("span",kp,c(e.fmt?.number(e.total))+" results",1),e.totalPage>1?(l(),d("div",_p,[s("button",{class:"btn btn-sm",onClick:t[11]||(t[11]=n=>e.query.page=Math.max(1,e.query.page-1)),disabled:e.query?.page<=1},[...t[38]||(t[38]=[s("i",{class:"fas fa-chevron-left"},null,-1),y(" Previous",-1)])],8,Ep),E(s("input",{type:"number",class:"form-control form-control-sm",min:"1",style:{width:"56px"},max:e.totalPage},null,8,Cp),[[o,{state:e.viewState,set:n=>{e.query.page=n},value:e.query?.page,form:null,options:{}}]]),s("span",null,"of "+c(e.totalPage),1),s("button",{class:"btn btn-sm",onClick:t[12]||(t[12]=n=>e.query.page=Math.min(e.totalPage,e.query.page+1)),disabled:e.query?.page>=e.totalPage},[...t[39]||(t[39]=[y("Next ",-1),s("i",{class:"fas fa-chevron-right"},null,-1)])],8,Np)])):m("v-if",!0),s("span",Sp,[t[41]||(t[41]=s("label",null,"Per page",-1)),E((l(),d("select",Dp,[...t[40]||(t[40]=[_e('',5)])])),[[o,{state:e.viewState,set:n=>{e.query.limit=n},value:e.query?.limit,form:null,options:{}}]])])])])}var Rp={class:"container paper-page admin-page errors-page"},Tp={class:"errors-header"},Op={class:"errors-actions"},Ap={class:"kpi-grid"},Ip={class:"kpi-card"},Vp={class:"kpi-value"},Pp={key:0},qp={key:1},Mp={class:"kpi-card kpi-error"},$p={class:"kpi-value"},Fp={class:"kpi-sub"},Lp={class:"kpi-card kpi-warn"},Up={class:"kpi-value"},zp={class:"kpi-sub"},Hp={class:"kpi-card kpi-info"},Bp={class:"kpi-value"},Gp={class:"kpi-sub"},jp={class:"kpi-value"},Wp={class:"kpi-sub"},Kp={key:0,class:"dropped-warn"},Yp={class:"volume-chart"},xp={class:"volume-bars"},Jp=["title"],Qp={class:"errors-toolbar","aria-label":"Error filters"},Xp={class:"seg-tabs"},Zp={class:"search-wrap"},ef={type:"search",class:"form-control",placeholder:"code:repo_not_found module:route status:>=400",autocomplete:"off"},tf={key:0,class:"filter-count"},sf={class:"select-wrap"},nf={class:"form-control form-control-sm"},of={class:"select-wrap"},rf={class:"form-control form-control-sm"},af={class:"autoref"},lf={type:"checkbox"},df={key:0,class:"admin-empty"},uf={key:1,class:"errors-pager"},cf={key:2,class:"errors-list"},pf=["onClick"],ff={class:"col-when"},mf={class:"when-rel"},hf={class:"when-abs"},vf={class:"col-sev"},yf={class:"sev-label"},gf={class:"col-mod"},bf={class:"pill pill-module"},wf={class:"col-msg"},kf={class:"msg-code"},_f={key:0,class:"msg-context"},Ef={key:1,class:"msg-detail"},Cf={key:2,class:"msg-url"},Nf={class:"col-count"},Sf={key:0,class:"count-pill"},Df={key:1,class:"count-pill count-pill-muted"},Rf={class:"col-status"},Tf={key:0,class:"errors-row-detail"},Of={class:"detail-tabs"},Af=["onClick"],If=["onClick"],Vf=["onClick"],Pf={class:"detail-body"},qf={class:"detail-main"},Mf={key:0},$f={key:1,class:"stack-pre"},Ff={key:2,class:"related-list"},Lf={class:"when-abs"},Uf={class:"msg-url"},zf={class:"detail-actions"},Hf=["onClick"],Bf=["onClick"],Gf={key:0,class:"copy-hint"},jf={class:"detail-aside"},Wf={class:"aside-block"},Kf=["title"],Yf={class:"aside-block"},xf=["title"],Jf={class:"aside-block"},Qf={class:"aside-value"},Xf={key:0,class:"aside-sub"},Zf={key:0,class:"aside-block"},em=["href"],tm={key:1,class:"aside-block"},sm={class:"aside-value mono"};function La(e,t){let o=ye("field"),r=ye("form");return l(),d("div",Rp,[t[32]||(t[32]=s("div",{class:"paper-crumbs"},[y("Admin \xA0/\xA0 "),s("span",{class:"here"},"Errors")],-1)),s("header",Tp,[t[10]||(t[10]=s("h1",{class:"paper-page-title"},"Errors",-1)),s("div",Op,[s("button",{class:"btn btn-sm",type:"button",onClick:t[0]||(t[0]=n=>e.exportCsv())},[...t[8]||(t[8]=[s("i",{class:"fas fa-file-export"},null,-1),y(" Export CSV",-1)])]),s("button",{class:"btn btn-sm btn-danger",type:"button",onClick:t[1]||(t[1]=n=>e.clearAll())},[...t[9]||(t[9]=[s("i",{class:"fas fa-trash"},null,-1),y(" Clear all",-1)])])])]),t[33]||(t[33]=_e('',1)),s("section",Ap,[s("div",Ip,[t[11]||(t[11]=s("div",{class:"kpi-label"},"Last 24h",-1)),s("div",Vp,c(e.stats?.last24h),1),s("div",{class:T(["kpi-sub",{up:e.stats?.delta>0,down:e.stats?.delta<0}])},[e.stats?.prev24h?(l(),d("span",Pp,c(e.stats?.delta>0?"+":"")+c(e.stats?.delta)+"% vs yesterday",1)):m("v-if",!0),e.stats?.prev24h?m("v-if",!0):(l(),d("span",qp,"no prior baseline"))],2)]),s("div",Mp,[t[12]||(t[12]=s("div",{class:"kpi-label"},"Errors (5xx)",-1)),s("div",$p,c(e.stats?.severity?.error),1),s("div",Fp,c(e.stats?.unique?.error)+" unique",1)]),s("div",Lp,[t[13]||(t[13]=s("div",{class:"kpi-label"},"Warnings (4xx)",-1)),s("div",Up,c(e.stats?.severity?.warn),1),s("div",zp,c(e.stats?.unique?.warn)+" unique",1)]),s("div",Hp,[t[14]||(t[14]=s("div",{class:"kpi-label"},"Info (auth, 404)",-1)),s("div",Bp,c(e.stats?.severity?.info),1),s("div",Gp,c(e.stats?.unique?.info)+" unique",1)]),s("div",{class:T(["kpi-card",{"kpi-error":e.stats?.dropped>0}])},[t[15]||(t[15]=s("div",{class:"kpi-label"},"Captured",-1)),s("div",jp,c(e.total),1),s("div",Wp,[y(" cap "+c(e.cap)+" \xB7 "+c(e.available?"live":"redis off")+" ",1),e.stats?.dropped>0?(l(),d("span",Kp," \xB7 "+c(e.stats?.dropped)+" dropped",1)):m("v-if",!0)])],2)]),s("section",Yp,[t[16]||(t[16]=_e('
Volume \xB7 24h \xB7 1h bucketserror warn info
',1)),s("div",xp,[(l(!0),d(x,null,re(e.stats?.buckets,(n,i)=>(l(),d("div",{class:"volume-bar",key:i,title:e.bucketTitle(n)},[s("span",{class:"seg seg-error",style:Oe({height:e.barPx(n,"error")+"px"})},null,4),s("span",{class:"seg seg-warn",style:Oe({height:e.barPx(n,"warn")+"px"})},null,4),s("span",{class:"seg seg-info",style:Oe({height:e.barPx(n,"info")+"px"})},null,4)],8,Jp))),128))])]),E((l(),d("form",Qp,[s("div",Xp,[s("button",{type:"button",class:T({active:e.query?.bucket===""}),onClick:t[2]||(t[2]=n=>e.setBucket(""))},"All",2),s("button",{type:"button",class:T({active:e.query?.bucket==="error"}),onClick:t[3]||(t[3]=n=>e.setBucket("error"))},"5xx",2),s("button",{type:"button",class:T({active:e.query?.bucket==="warn"}),onClick:t[4]||(t[4]=n=>e.setBucket("warn"))},"4xx",2),s("button",{type:"button",class:T({active:e.query?.bucket==="info"}),onClick:t[5]||(t[5]=n=>e.setBucket("info"))},"Info",2)]),s("div",Zp,[t[17]||(t[17]=s("i",{class:"fas fa-search search-icon"},null,-1)),E(s("input",ef,null,512),[[o,{state:e.viewState,set:n=>{e.query.search=n},value:e.query?.search,form:null,options:{}}]]),e.parsedFilterCount?(l(),d("span",tf,c(e.parsedFilterCount)+" filter"+c(e.parsedFilterCount>1?"s":""),1)):m("v-if",!0)]),s("div",sf,[t[19]||(t[19]=s("label",null,"Sort",-1)),E((l(),d("select",nf,[...t[18]||(t[18]=[s("option",{value:"recent"},"Most recent",-1),s("option",{value:"count"},"Most frequent",-1)])])),[[o,{state:e.viewState,set:n=>{e.query.sort=n},value:e.query?.sort,form:null,options:{}}]])]),s("div",of,[t[21]||(t[21]=s("label",null,"Group",-1)),E((l(),d("select",rf,[...t[20]||(t[20]=[s("option",{value:""},"Off",-1),s("option",{value:"code"},"By code",-1),s("option",{value:"module"},"By module",-1)])])),[[o,{state:e.viewState,set:n=>{e.query.group=n},value:e.query?.group,form:null,options:{}}]])]),s("label",af,[E(s("input",lf,null,512),[[o,{state:e.viewState,set:n=>{e.query.autoRefresh=n},value:e.query?.autoRefresh,form:null,options:{}}]]),t[22]||(t[22]=y(" Auto-refresh ",-1))]),s("button",{class:"btn btn-sm btn-icon",type:"button",title:"Refresh now",onClick:t[6]||(t[6]=n=>e.refreshNow())},[...t[23]||(t[23]=[s("i",{class:"fas fa-sync"},null,-1)])])])),[[r,e.viewState]]),e.visible?.length?m("v-if",!0):(l(),d("div",df,"No errors captured.")),e.canLoadMore()&&e.visible?.length?(l(),d("div",uf,[s("span",null,"Showing "+c(e.entries?.length)+" of "+c(e.total)+" captured",1),s("button",{class:"btn btn-sm",type:"button",onClick:t[7]||(t[7]=n=>e.loadMore())},"Load older")])):m("v-if",!0),e.visible?.length?(l(),d("div",cf,[t[31]||(t[31]=_e('
WhenSeverityModuleMessageCountStatus
',1)),(l(!0),d(x,null,re(e.visible,(n,i)=>(l(),d("div",{class:T(["errors-row",{open:e.expanded[n?._key]}]),key:n?._key},[s("div",{class:"errors-row-main",onClick:a=>e.toggle(n)},[s("div",ff,[s("div",mf,c(e.relTime(n?.ts)),1),s("div",hf,c(e.absTimeShort(n?.ts)),1)]),s("div",vf,[s("span",{class:T(["sev-dot","sev-"+n?._bucket])},null,2),s("span",yf,c(e.fmt?.uppercase(n?._bucket)),1)]),s("div",gf,[s("span",bf,c(n?.module),1)]),s("div",wf,[s("strong",kf,c(n?.displayMessage),1),n?.displayContext&&n?.displayContext!==n?.displayMessage?(l(),d("span",_f,c(n?.displayContext),1)):m("v-if",!0),n?._detail?(l(),d("span",Ef,c(n?._detail),1)):m("v-if",!0),n?._url?(l(),d("div",Cf,c(n?._url),1)):m("v-if",!0)]),s("div",Nf,[n?.count>1?(l(),d("span",Sf,"\xD7"+c(n?.count),1)):m("v-if",!0),n?.count===1?(l(),d("span",Df,"\xD71")):m("v-if",!0)]),s("div",Rf,[n?._status?(l(),d("span",{key:0,class:T(["status-pill","status-"+n?._bucket])},c(n?._status),3)):m("v-if",!0)])],8,pf),e.expanded[n?._key]?(l(),d("div",Tf,[s("div",Of,[s("button",{type:"button",class:T({active:e.detailTab[n?._key]==="raw"||!e.detailTab[n?._key]}),onClick:a=>e.detailTab[n._key]="raw"},"Raw",10,Af),n?._stack?(l(),d("button",{key:0,type:"button",class:T({active:e.detailTab[n?._key]==="stack"}),onClick:a=>e.detailTab[n._key]="stack"},"Stack",10,If)):m("v-if",!0),n?.count>1?(l(),d("button",{key:1,type:"button",class:T({active:e.detailTab[n?._key]==="related"}),onClick:a=>e.detailTab[n._key]="related"},"Related ("+c(n?.count)+")",11,Vf)):m("v-if",!0)]),s("div",Pf,[s("div",qf,[(e.detailTab[n?._key]||"raw")==="raw"?(l(),d("pre",Mf,c(n?._detailJson),1)):m("v-if",!0),e.detailTab[n?._key]==="stack"?(l(),d("pre",$f,c(n?._stack),1)):m("v-if",!0),e.detailTab[n?._key]==="related"?(l(),d("div",Ff,[(l(!0),d(x,null,re(n?._related,(a,u)=>(l(),d("div",{class:"related-row",key:u},[s("span",Lf,c(e.absTimeShort(a?.ts)),1),s("span",Uf,c(a?._url),1),a?._status?(l(),d("span",{key:0,class:T(["status-pill","status-"+a?._bucket])},c(a?._status),3)):m("v-if",!0)]))),128))])):m("v-if",!0),s("div",zf,[s("button",{class:"btn btn-sm",type:"button",title:"Copy a curl that reproduces the request",onClick:a=>e.copyCurl(n)},[...t[24]||(t[24]=[s("i",{class:"fas fa-terminal"},null,-1),y(" Copy curl",-1)])],8,Hf),s("button",{class:"btn btn-sm",type:"button",onClick:a=>e.copyJson(n)},[...t[25]||(t[25]=[s("i",{class:"fas fa-clipboard"},null,-1),y(" Copy JSON",-1)])],8,Bf),e.copyHint?(l(),d("span",Gf,c(e.copyHint),1)):m("v-if",!0)])]),s("aside",jf,[s("div",Wf,[t[26]||(t[26]=s("div",{class:"aside-label"},"First seen",-1)),s("div",{class:"aside-value",title:e.absTime(n?._firstSeen)},c(e.relTime(n?._firstSeen)),9,Kf)]),s("div",Yf,[t[27]||(t[27]=s("div",{class:"aside-label"},"Last seen",-1)),s("div",{class:"aside-value",title:e.absTime(n?.ts)},c(e.relTime(n?.ts)),9,xf)]),s("div",Jf,[t[28]||(t[28]=s("div",{class:"aside-label"},"Occurrences",-1)),s("div",Qf,[y(c(n?.count),1),n?._lastHourCount?(l(),d("span",Xf," \xB7 "+c(n?._lastHourCount)+" this hour",1)):m("v-if",!0)])]),n?._repoId?(l(),d("div",Zf,[t[29]||(t[29]=s("div",{class:"aside-label"},"Repository",-1)),s("a",{class:"aside-value",href:e.safeUrl("/r/"+n?._repoId)},c(n?._repoId),9,em)])):m("v-if",!0),n?._url?(l(),d("div",tm,[t[30]||(t[30]=s("div",{class:"aside-label"},"URL",-1)),s("div",sm,c(n?._url),1)])):m("v-if",!0)])])])):m("v-if",!0)],2))),128))])):m("v-if",!0)])}var nm={class:"container paper-page admin-page overview-page"},om={key:0,class:"admin-empty"},rm={key:1,class:"alert alert-danger",style:{margin:"12px 0"}},im={key:2},am={class:"ov-kpi-row"},lm={class:"ov-kpi-card"},dm={class:"ov-kpi-value"},um={class:"ov-kpi-sub"},cm={class:"ov-kpi-card"},pm={class:"ov-kpi-sub"},fm={class:"ov-kpi-card"},mm={class:"ov-kpi-sub"},hm={class:"ov-kpi-card"},vm={class:"ov-kpi-sub"},ym={class:"ov-kpi-card"},gm={class:"ov-kpi-value"},bm={class:"ov-kpi-sub"},wm={class:"ov-daily-row"},km={class:"ov-daily-card"},_m={class:"ov-daily-value"},Em={class:"ov-daily-card"},Cm={class:"ov-daily-value"},Nm={class:"ov-daily-sub"},Sm={class:"ov-daily-card"},Dm={class:"ov-daily-value"},Rm={class:"ov-chart-row"},Tm={class:"ov-chart-card"},Om={key:0,class:"ov-spark-bars"},Am=["data-tip","aria-label"],Im={key:1,class:"ov-spark-x"},Vm={class:"ov-chart-card"},Pm={key:0,class:"ov-spark-bars"},qm=["data-tip","aria-label"],Mm={key:1,class:"ov-spark-x"},$m={class:"ov-chart-card"},Fm={key:0,class:"ov-spark-bars"},Lm=["data-tip","aria-label"],Um={key:1,class:"ov-spark-x"},zm={class:"ov-chart-card"},Hm={key:0,class:"ov-spark-bars"},Bm=["data-tip","aria-label"],Gm={key:1,class:"ov-spark-x"},jm={class:"ov-triple-row"},Wm={class:"ov-panel-card"},Km={class:"ov-panel-head"},Ym={class:"ov-panel-meta"},xm={class:"ov-stacked-bar"},Jm={class:"ov-bar-legend"},Qm={href:"/admin/repositories",class:"ov-legend-item"},Xm={class:"ov-legend-n"},Zm={href:"/admin/repositories",class:"ov-legend-item"},eh={class:"ov-legend-n"},th={href:"/admin/repositories",class:"ov-legend-item"},sh={class:"ov-legend-n"},nh={href:"/admin/repositories",class:"ov-legend-item"},oh={class:"ov-legend-n"},rh={href:"/admin/repositories",class:"ov-legend-item"},ih={class:"ov-legend-n"},ah={class:"ov-panel-card"},lh={class:"ov-panel-head"},dh={class:"ov-panel-meta"},uh={class:"ov-error-bars"},ch={class:"ov-ebar-row"},ph={class:"ov-ebar-track"},fh={class:"ov-ebar-n"},mh={class:"ov-ebar-row"},hh={class:"ov-ebar-track"},vh={class:"ov-ebar-n"},yh={class:"ov-ebar-row"},gh={class:"ov-ebar-track"},bh={class:"ov-ebar-n"},wh={key:0,class:"ov-panel-foot"},kh={href:"/admin/errors"},_h={class:"ov-panel-card"},Eh={class:"ov-routes-table"},Ch={class:"ov-route-row",href:"/admin/queues"},Nh={class:"ov-route-n"},Sh={class:"ov-route-n"},Dh={class:"ov-route-row",href:"/admin/queues"},Rh={class:"ov-route-n"},Th={class:"ov-route-n"},Oh={class:"ov-route-row",href:"/admin/queues"},Ah={class:"ov-route-n"},Ih={class:"ov-route-n"},Vh={class:"ov-services-card"},Ph={class:"ov-services-head"},qh={class:"ov-panel-meta"},Mh={class:"ov-services-grid"},$h={class:"ov-svc"},Fh={class:"ov-svc-info"},Lh={class:"ov-svc-meta"},Uh={class:"ov-svc-detail"},zh={class:"ov-svc"},Hh={class:"ov-svc-info"},Bh={key:0,class:"ov-svc-meta"},Gh={key:1,class:"ov-svc-meta"},jh={class:"ov-svc"},Wh={class:"ov-svc-info"},Kh={key:0,class:"ov-svc-meta"},Yh={key:1,class:"ov-svc-meta"},xh={class:"ov-svc"},Jh={class:"ov-svc-info"},Qh={key:0,class:"ov-svc-meta"},Xh={key:1,class:"ov-svc-meta"},Zh={class:"ov-svc"},ev={class:"ov-svc-info"},tv={class:"ov-svc-meta"};function Ua(e,t){return l(),d("div",nm,[t[42]||(t[42]=_e('
Admin \xB7 System Health

Overview

',3)),e.loading?(l(),d("div",om,"Loading overview\u2026")):m("v-if",!0),e.error?(l(),d("div",rm,[t[0]||(t[0]=s("i",{class:"fas fa-exclamation-triangle"},null,-1)),y(" "+c(e.error),1)])):m("v-if",!0),e.data?(l(),d("div",im,[m(" \u2500\u2500 Top KPI row \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 "),s("section",am,[s("div",lm,[t[1]||(t[1]=s("div",{class:"ov-kpi-label"},[y("Repositories "),s("span",{class:"ov-dot ov-dot-ok"})],-1)),s("div",dm,c(e.humanNum(e.data?.repos?.total)),1),s("div",um,"+"+c(e.data?.repos?.newRepos24h)+" \xB7 last 24h",1)]),s("div",cm,[t[2]||(t[2]=s("div",{class:"ov-kpi-label"},"CPU",-1)),s("div",{class:T(["ov-kpi-value",{"ov-val-warn":e.data?.system?.cpuPercent>80}])},c(e.data?.system?.cpuPercent)+"%",3),s("div",pm,c(e.data?.system?.cpuCount)+" cores \xB7 load "+c(e.data?.system?.loadAvg?.[0]?.toFixed(1)),1)]),s("div",fm,[t[3]||(t[3]=s("div",{class:"ov-kpi-label"},"Memory",-1)),s("div",{class:T(["ov-kpi-value",{"ov-val-warn":e.data?.system?.memPercent>85}])},c(e.data?.system?.memPercent)+"%",3),s("div",mm,c(e.humanBytes(e.data?.system?.memUsed))+" / "+c(e.humanBytes(e.data?.system?.memTotal)),1)]),s("div",hm,[t[4]||(t[4]=s("div",{class:"ov-kpi-label"},"Disk",-1)),s("div",{class:T(["ov-kpi-value",{"ov-val-warn":e.data?.system?.diskPercent>85}])},c(e.data?.system?.diskPercent)+"%",3),s("div",vm,c(e.humanBytes(e.data?.system?.diskUsed))+" / "+c(e.humanBytes(e.data?.system?.diskTotal))+" \xB7 "+c(e.data?.system?.diskMount),1)]),s("div",ym,[t[5]||(t[5]=s("div",{class:"ov-kpi-label"},"Uptime",-1)),s("div",gm,c(e.humanDuration(e.data?.system?.uptime)),1),s("div",bm,c(e.data?.system?.nodeVersion)+" \xB7 "+c(e.data?.system?.platform),1)])]),m(" \u2500\u2500 Daily activity highlights \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 "),s("section",wm,[s("div",km,[t[6]||(t[6]=s("div",{class:"ov-daily-label"},"New repos today",-1)),s("div",_m,"+"+c(e.fmt?.number(e.data?.daily?.today?.repositories)),1),t[7]||(t[7]=s("div",{class:"ov-daily-sub"},"since yesterday",-1))]),s("div",Em,[t[8]||(t[8]=s("div",{class:"ov-daily-label"},"New users today",-1)),s("div",Cm,"+"+c(e.fmt?.number(e.data?.daily?.today?.users)),1),s("div",Nm,c(e.fmt?.number(e.data?.users?.total))+" total users",1)]),s("div",Sm,[t[9]||(t[9]=s("div",{class:"ov-daily-label"},"Page views today",-1)),s("div",Dm,"+"+c(e.fmt?.number(e.data?.daily?.today?.pageViews)),1),t[10]||(t[10]=s("div",{class:"ov-daily-sub"},"since yesterday",-1))])]),m(" \u2500\u2500 Daily charts \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 "),s("section",Rm,[s("div",Tm,[t[11]||(t[11]=s("div",{class:"ov-chart-head"},[s("span",{class:"ov-chart-title"},"Daily page views \xB7 30d"),s("span",{class:"ov-chart-legend"},[s("span",{class:"ov-dot-legend ov-dot-accent"}),y("views/day")])],-1)),e.data?.history?.length?(l(),d("div",Om,[(l(!0),d(x,null,re(e.data?.history,(o,r)=>(l(),d("div",{class:"ov-spark-col has-tip",key:r,"data-tip":e.historyLabel(o)+": +"+e.fmt?.number(o?.dailyPageViews)+" views","aria-label":e.historyLabel(o)+": +"+e.fmt?.number(o?.dailyPageViews)+" views"},[s("span",{class:"ov-spark-fill",style:Oe({height:e.historyBarH(o,"dailyPageViews")+"px"})},null,4)],8,Am))),128))])):m("v-if",!0),e.data?.history?.length?(l(),d("div",Im,[s("span",null,c(e.historyLabel(e.data?.history[0])),1),s("span",null,c(e.historyLabel(e.data?.history[Math?.floor(e.data?.history?.length/2)])),1),s("span",null,c(e.historyLabel(e.data?.history[e.data?.history?.length-1])),1)])):m("v-if",!0)]),s("div",Vm,[t[12]||(t[12]=s("div",{class:"ov-chart-head"},[s("span",{class:"ov-chart-title"},"New repos \xB7 30d"),s("span",{class:"ov-chart-legend"},[s("span",{class:"ov-dot-legend ov-dot-ok-fill"}),y("repos/day")])],-1)),e.data?.history?.length?(l(),d("div",Pm,[(l(!0),d(x,null,re(e.data?.history,(o,r)=>(l(),d("div",{class:"ov-spark-col has-tip",key:r,"data-tip":e.historyLabel(o)+": +"+e.fmt?.number(o?.dailyRepositories)+" repos","aria-label":e.historyLabel(o)+": +"+e.fmt?.number(o?.dailyRepositories)+" repos"},[s("span",{class:"ov-spark-fill ov-spark-fill-alt",style:Oe({height:e.historyBarH(o,"dailyRepositories")+"px"})},null,4)],8,qm))),128))])):m("v-if",!0),e.data?.history?.length?(l(),d("div",Mm,[s("span",null,c(e.historyLabel(e.data?.history[0])),1),s("span",null,c(e.historyLabel(e.data?.history[Math?.floor(e.data?.history?.length/2)])),1),s("span",null,c(e.historyLabel(e.data?.history[e.data?.history?.length-1])),1)])):m("v-if",!0)]),s("div",$m,[t[13]||(t[13]=s("div",{class:"ov-chart-head"},[s("span",{class:"ov-chart-title"},"Users \xB7 30d"),s("span",{class:"ov-chart-legend"},[s("span",{class:"ov-dot-legend ov-dot-user-fill"}),y("total users")])],-1)),e.data?.history?.length?(l(),d("div",Fm,[(l(!0),d(x,null,re(e.data?.history,(o,r)=>(l(),d("div",{class:"ov-spark-col has-tip",key:r,"data-tip":e.historyLabel(o)+": "+e.fmt?.number(o?.nbUsers)+" users","aria-label":e.historyLabel(o)+": "+e.fmt?.number(o?.nbUsers)+" users"},[s("span",{class:"ov-spark-fill ov-spark-fill-user",style:Oe({height:e.historyBarH(o,"nbUsers")+"px"})},null,4)],8,Lm))),128))])):m("v-if",!0),e.data?.history?.length?(l(),d("div",Um,[s("span",null,c(e.historyLabel(e.data?.history[0])),1),s("span",null,c(e.historyLabel(e.data?.history[Math?.floor(e.data?.history?.length/2)])),1),s("span",null,c(e.historyLabel(e.data?.history[e.data?.history?.length-1])),1)])):m("v-if",!0)]),s("div",zm,[t[14]||(t[14]=s("div",{class:"ov-chart-head"},[s("span",{class:"ov-chart-title"},"New users \xB7 30d"),s("span",{class:"ov-chart-legend"},[s("span",{class:"ov-dot-legend ov-dot-new-user-fill"}),y("users/day")])],-1)),e.data?.history?.length?(l(),d("div",Hm,[(l(!0),d(x,null,re(e.data?.history,(o,r)=>(l(),d("div",{class:"ov-spark-col has-tip",key:r,"data-tip":e.historyLabel(o)+": +"+e.fmt?.number(o?.dailyUsers)+" users","aria-label":e.historyLabel(o)+": +"+e.fmt?.number(o?.dailyUsers)+" users"},[s("span",{class:"ov-spark-fill ov-spark-fill-new-user",style:Oe({height:e.historyBarH(o,"dailyUsers")+"px"})},null,4)],8,Bm))),128))])):m("v-if",!0),e.data?.history?.length?(l(),d("div",Gm,[s("span",null,c(e.historyLabel(e.data?.history[0])),1),s("span",null,c(e.historyLabel(e.data?.history[Math?.floor(e.data?.history?.length/2)])),1),s("span",null,c(e.historyLabel(e.data?.history[e.data?.history?.length-1])),1)])):m("v-if",!0)])]),m(" \u2500\u2500 Three-panel row: Status / Errors / Queues \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 "),s("section",jm,[m(" Repo status breakdown "),s("div",Wm,[s("div",Km,[t[15]||(t[15]=s("span",{class:"ov-panel-title"},"Repo status",-1)),s("span",Ym,c(e.fmt?.number(e.data?.repos?.total))+" total",1)]),s("div",xm,[s("span",{class:"ov-bar-seg ov-bar-ready",title:"Ready",style:Oe({width:e.barPct("ready")+"%"})},null,4),s("span",{class:"ov-bar-seg ov-bar-preparing",title:"Preparing",style:Oe({width:e.barPct("preparing")+"%"})},null,4),s("span",{class:"ov-bar-seg ov-bar-error",title:"Error",style:Oe({width:e.barPct("error")+"%"})},null,4),s("span",{class:"ov-bar-seg ov-bar-expired",title:"Expired",style:Oe({width:e.barPct("expired")+"%"})},null,4),s("span",{class:"ov-bar-seg ov-bar-removed",title:"Removed",style:Oe({width:e.barPct("removed")+"%"})},null,4)]),s("div",Jm,[s("a",Qm,[t[16]||(t[16]=s("span",{class:"ov-swatch ov-bar-ready"},null,-1)),t[17]||(t[17]=y(" ready ",-1)),s("span",Xm,c(e.fmt?.number(e.statusCount("ready"))),1)]),s("a",Zm,[t[18]||(t[18]=s("span",{class:"ov-swatch ov-bar-preparing"},null,-1)),t[19]||(t[19]=y(" preparing ",-1)),s("span",eh,c(e.fmt?.number(e.statusCount("preparing")+e.statusCount("download"))),1)]),s("a",th,[t[20]||(t[20]=s("span",{class:"ov-swatch ov-bar-error"},null,-1)),t[21]||(t[21]=y(" error ",-1)),s("span",sh,c(e.fmt?.number(e.statusCount("error"))),1)]),s("a",nh,[t[22]||(t[22]=s("span",{class:"ov-swatch ov-bar-expired"},null,-1)),t[23]||(t[23]=y(" expired ",-1)),s("span",oh,c(e.fmt?.number(e.statusCount("expired")+e.statusCount("expiring"))),1)]),s("a",rh,[t[24]||(t[24]=s("span",{class:"ov-swatch ov-bar-removed"},null,-1)),t[25]||(t[25]=y(" removed ",-1)),s("span",ih,c(e.fmt?.number(e.statusCount("removed")+e.statusCount("removing"))),1)])])]),m(" Error breakdown "),s("div",ah,[s("div",lh,[t[26]||(t[26]=s("span",{class:"ov-panel-title"},"Errors \xB7 24h",-1)),s("span",dh,c(e.data?.errors?.last24h)+" total",1)]),s("div",uh,[s("div",ch,[t[27]||(t[27]=s("span",{class:"ov-ebar-label"},"5xx",-1)),s("span",ph,[s("span",{class:"ov-ebar-fill ov-ebar-error",style:Oe({width:e.errPct("error")+"%"})},null,4)]),s("span",fh,c(e.data?.errors?.severity?.error),1)]),s("div",mh,[t[28]||(t[28]=s("span",{class:"ov-ebar-label"},"4xx",-1)),s("span",hh,[s("span",{class:"ov-ebar-fill ov-ebar-warn",style:Oe({width:e.errPct("warn")+"%"})},null,4)]),s("span",vh,c(e.data?.errors?.severity?.warn),1)]),s("div",yh,[t[29]||(t[29]=s("span",{class:"ov-ebar-label"},"Info",-1)),s("span",gh,[s("span",{class:"ov-ebar-fill ov-ebar-info",style:Oe({width:e.errPct("info")+"%"})},null,4)]),s("span",bh,c(e.data?.errors?.severity?.info),1)])]),e.data?.repos?.recentErrors24h?(l(),d("div",wh,[s("a",kh,c(e.data?.repos?.recentErrors24h)+" repos in error state \u2192",1)])):m("v-if",!0)]),m(" Top routes / queues "),s("div",_h,[t[34]||(t[34]=s("div",{class:"ov-panel-head"},[s("span",{class:"ov-panel-title"},"Queues"),s("span",{class:"ov-panel-meta"},"by state")],-1)),s("div",Eh,[t[33]||(t[33]=_e('
QueueActiveWaitFailed
',1)),s("a",Ch,[t[30]||(t[30]=s("span",{class:"ov-route-name"},"download",-1)),s("span",Nh,c(e.data?.queues?.download?.active),1),s("span",Sh,c(e.data?.queues?.download?.waiting),1),s("span",{class:T(["ov-route-n ov-route-lat",{"ov-n-bad":e.data?.queues?.download?.failed>0}])},c(e.data?.queues?.download?.failed),3)]),s("a",Dh,[t[31]||(t[31]=s("span",{class:"ov-route-name"},"remove",-1)),s("span",Rh,c(e.data?.queues?.remove?.active),1),s("span",Th,c(e.data?.queues?.remove?.waiting),1),s("span",{class:T(["ov-route-n ov-route-lat",{"ov-n-bad":e.data?.queues?.remove?.failed>0}])},c(e.data?.queues?.remove?.failed),3)]),s("a",Oh,[t[32]||(t[32]=s("span",{class:"ov-route-name"},"cache",-1)),s("span",Ah,c(e.data?.queues?.cache?.active),1),s("span",Ih,c(e.data?.queues?.cache?.waiting),1),s("span",{class:T(["ov-route-n ov-route-lat",{"ov-n-bad":e.data?.queues?.cache?.failed>0}])},c(e.data?.queues?.cache?.failed),3)])])])]),m(" \u2500\u2500 Services bar \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 "),s("section",Vh,[s("div",Ph,[t[35]||(t[35]=s("span",{class:"ov-panel-title"},"Services",-1)),s("span",qh,c(e.fmt?.number(e.data?.users?.total))+" users \xB7 "+c(e.data?.conferences?.total)+" conferences",1)]),s("div",Mh,[s("div",$h,[t[37]||(t[37]=s("span",{class:"ov-svc-dot ov-dot-ok"},null,-1)),s("div",Fh,[t[36]||(t[36]=s("span",{class:"ov-svc-name"},"web",-1)),s("span",Lh,c(e.data?.system?.nodeVersion),1)]),s("span",Uh,"uptime "+c(e.humanDuration(e.data?.system?.uptime)),1)]),s("div",zh,[s("span",{class:T(["ov-svc-dot",e.queueTotal(e.data?.queues?.download)>0?"ov-dot-ok":"ov-dot-idle"])},null,2),s("div",Hh,[t[38]||(t[38]=s("span",{class:"ov-svc-name"},"download",-1)),e.queueTotal(e.data?.queues?.download)?(l(),d("span",Bh,c(e.queueTotal(e.data?.queues?.download))+" jobs",1)):m("v-if",!0),e.queueTotal(e.data?.queues?.download)?m("v-if",!0):(l(),d("span",Gh,"idle"))])]),s("div",jh,[s("span",{class:T(["ov-svc-dot",e.queueTotal(e.data?.queues?.cache)>0?"ov-dot-ok":"ov-dot-idle"])},null,2),s("div",Wh,[t[39]||(t[39]=s("span",{class:"ov-svc-name"},"cache",-1)),e.queueTotal(e.data?.queues?.cache)?(l(),d("span",Kh,c(e.queueTotal(e.data?.queues?.cache))+" jobs",1)):m("v-if",!0),e.queueTotal(e.data?.queues?.cache)?m("v-if",!0):(l(),d("span",Yh,"idle"))])]),s("div",xh,[s("span",{class:T(["ov-svc-dot",e.queueTotal(e.data?.queues?.remove)>0?"ov-dot-ok":"ov-dot-idle"])},null,2),s("div",Jh,[t[40]||(t[40]=s("span",{class:"ov-svc-name"},"remove",-1)),e.queueTotal(e.data?.queues?.remove)?(l(),d("span",Qh,c(e.queueTotal(e.data?.queues?.remove))+" jobs",1)):m("v-if",!0),e.queueTotal(e.data?.queues?.remove)?m("v-if",!0):(l(),d("span",Xh,"idle"))])]),s("div",Zh,[s("span",{class:T(["ov-svc-dot",e.data?.repos?.recentErrors24h>10?"ov-dot-warn":"ov-dot-ok"])},null,2),s("div",ev,[t[41]||(t[41]=s("span",{class:"ov-svc-name"},"errors",-1)),s("span",tv,c(e.data?.errors?.last24h)+" / 24h",1)])])])])])):m("v-if",!0)])}var sv={class:"container paper-page admin-page"},nv={class:"q-header"},ov={class:"q-header-actions"},rv={class:"q-range-btns"},iv={class:"q-cards"},av=["onClick"],lv={class:"q-card-head"},dv=["textContent"],uv=["textContent"],cv={class:"q-card-sub"},pv={key:0,class:"q-card-bar"},fv={key:0,class:"q-detail"},mv={class:"q-throughput"},hv={class:"q-section-label"},vv={class:"q-section-right"},yv={class:"q-stats-panel"},gv={class:"q-section-label"},bv={class:"q-stats-grid"},wv={class:"q-stat"},kv=["textContent"],_v={class:"q-stat"},Ev=["textContent"],Cv={class:"q-stat"},Nv=["textContent"],Sv={class:"q-stat"},Dv=["textContent"],Rv={class:"q-stat"},Tv=["textContent"],Ov={class:"q-stat"},Av=["textContent"],Iv={class:"q-stats-actions"},Vv=["disabled"],Pv={class:"q-jobs"},qv={class:"q-jobs-header"},Mv={class:"q-section-label"},$v={class:"q-state-filters"},Fv={class:"q-state-toggle"},Lv={type:"checkbox"},Uv={class:"q-search-row"},zv={type:"search",class:"form-control",placeholder:"Search by job/repo id\u2026",autocomplete:"off"},Hv={class:"q-auto-refresh"},Bv={type:"checkbox"},Gv={key:0,class:"q-table"},jv=["onClick"],Wv={class:"q-cell-state"},Kv=["textContent"],Yv=["textContent"],xv={class:"q-cell-id"},Jv=["textContent","href"],Qv={class:"q-cell-payload"},Xv=["textContent"],Zv={key:0,class:"q-payload-detail"},ey=["textContent"],ty=["textContent"],sy={class:"q-cell-progress"},ny={key:0,class:"q-progress-wrap"},oy=["textContent"],ry={class:"q-cell-actions"},iy=["onClick"],ay=["onClick"],ly={key:0,class:"q-detail-row"},dy={colspan:"7"},uy={class:"q-job-detail"},cy={class:"q-job-detail-grid"},py={class:"q-job-detail-item"},fy={class:"q-job-detail-value"},my=["textContent","href"],hy={class:"q-job-detail-item"},vy={class:"q-job-detail-value"},yy=["textContent"],gy={key:0,class:"q-job-detail-item"},by=["textContent"],wy={key:1,class:"q-job-detail-item"},ky=["textContent"],_y={key:2,class:"q-job-detail-item"},Ey={class:"q-job-detail-value"},Cy={key:3,class:"q-job-detail-item"},Ny=["textContent"],Sy={key:4,class:"q-job-detail-item"},Dy=["textContent"],Ry={key:5,class:"q-job-detail-item"},Ty=["textContent"],Oy={key:6,class:"q-job-detail-item"},Ay=["textContent"],Iy={key:7,class:"q-job-detail-item"},Vy=["textContent"],Py={key:0,class:"q-job-detail-error"},qy=["textContent"],My={key:1},$y=["textContent"],Fy={class:"q-job-detail-actions"},Ly=["onClick"],Uy=["onClick"],zy=["href"],Hy={key:1,class:"paper-table-empty",style:{border:"1px solid var(--border-color)","border-radius":"10px",background:"var(--paper-card)"}},By={key:0},Gy={key:1};function za(e,t){let o=ye("field");return l(),d("div",sv,[t[47]||(t[47]=s("div",{class:"paper-crumbs"},[y("Admin \xA0/\xA0 "),s("span",{class:"here"},"Queues")],-1)),s("div",nv,[t[12]||(t[12]=s("h1",{class:"paper-page-title"},"Queues",-1)),s("div",ov,[s("div",rv,[s("button",{class:T(["btn btn-sm",{active:e.range=="1h"}]),onClick:t[0]||(t[0]=r=>e.setRange("1h"))},"1h",2),s("button",{class:T(["btn btn-sm",{active:e.range=="6h"}]),onClick:t[1]||(t[1]=r=>e.setRange("6h"))},"6h",2),s("button",{class:T(["btn btn-sm",{active:e.range=="24h"}]),onClick:t[2]||(t[2]=r=>e.setRange("24h"))},"24h",2),s("button",{class:T(["btn btn-sm",{active:e.range=="7d"}]),onClick:t[3]||(t[3]=r=>e.setRange("7d"))},"7d",2)]),s("button",{class:"btn btn-sm",onClick:t[4]||(t[4]=r=>e.pauseAll())},"Pause all"),s("button",{class:"btn btn-sm btn-dark",onClick:t[5]||(t[5]=r=>e.drainSelected())},"Drain "+c(e.selectedQueue),1)])]),t[48]||(t[48]=_e('',1)),m(" Queue overview cards "),s("div",iv,[(l(!0),d(x,null,re(e.queueList,(r,n)=>(l(),d("div",{class:T(["q-card",{selected:e.selectedQueue==r?.key,paused:r?.paused}]),onClick:i=>e.selectQueue(r.key)},[s("div",lv,[s("span",{class:T(["q-dot",{"q-dot-red":r?.paused||r?.counts?.failed>0}])},null,2),s("span",{class:"q-card-name",textContent:c(r?.label)},null,8,dv)]),s("div",{class:"q-card-count",textContent:c((r?.counts?.waiting||0)+(r?.counts?.active||0)+(r?.counts?.delayed||0))},null,8,uv),s("div",cv,[s("span",null,"waiting \xB7 "+c(r?.counts?.active||0)+" active",1),r?.counts?.active?(l(),d("div",pv,[s("div",{class:"q-card-bar-fill",style:Oe({width:r?.counts?.active/((r?.counts?.waiting||0)+(r?.counts?.active||0)+(r?.counts?.delayed||0)||1)*100+"%"})},null,4)])):m("v-if",!0)])],10,av))),256))]),m(" Detail: throughput chart + stats panel "),e.selectedStats?(l(),d("div",fv,[s("div",mv,[s("div",hv,[y(c(e.selectedQueue)+"\xB7throughput ",1),s("span",vv,[t[13]||(t[13]=s("span",{class:"q-legend-completed"},"\u25CF",-1)),t[14]||(t[14]=y(" completed ",-1)),t[15]||(t[15]=s("span",{class:"q-legend-failed"},"\u25CF",-1)),t[16]||(t[16]=y(" failed ",-1)),t[17]||(t[17]=s("span",{class:"q-legend-exec"},"- -",-1)),y(" avg time \xB7 "+c(e.fmt?.uppercase(e.range)),1)])]),t[18]||(t[18]=s("div",{class:"q-chart-wrap"},[s("canvas",{id:"q-throughput-chart",height:"180"}),s("div",{id:"q-chart-tooltip",class:"q-chart-tooltip",style:{display:"none"}}),s("div",{id:"q-chart-crosshair",class:"q-chart-crosshair",style:{display:"none"}})],-1))]),s("div",yv,[s("div",gv,c(e.selectedQueue)+"\xB7stats",1),s("div",bv,[s("div",wv,[t[19]||(t[19]=s("div",{class:"q-stat-label"},"WAITING",-1)),s("div",{class:"q-stat-value",textContent:c(e.selectedStats?.counts?.waiting||0)},null,8,kv)]),s("div",_v,[t[20]||(t[20]=s("div",{class:"q-stat-label"},"ACTIVE",-1)),s("div",{class:"q-stat-value",textContent:c(e.selectedStats?.counts?.active||0)},null,8,Ev)]),s("div",Cv,[t[21]||(t[21]=s("div",{class:"q-stat-label"},"COMPLETED (24H)",-1)),s("div",{class:"q-stat-value",textContent:c(e.fmt?.number(e.selectedStats?.completed24h))},null,8,Nv)]),s("div",Sv,[t[22]||(t[22]=s("div",{class:"q-stat-label"},"FAILED (24H)",-1)),s("div",{class:"q-stat-value",textContent:c(e.selectedStats?.failed24h||0)},null,8,Dv)]),s("div",Rv,[t[23]||(t[23]=s("div",{class:"q-stat-label"},"DELAYED",-1)),s("div",{class:"q-stat-value",textContent:c(e.selectedStats?.counts?.delayed||0)},null,8,Tv)]),s("div",Ov,[t[24]||(t[24]=s("div",{class:"q-stat-label"},"WORKERS",-1)),s("div",{class:"q-stat-value",textContent:c(e.selectedStats?.workers||0)},null,8,Av)])]),s("div",Iv,[s("button",{class:"btn btn-sm",onClick:t[6]||(t[6]=r=>e.togglePause())},c(e.selectedStats?.paused?"Resume":"Pause"),1),s("button",{class:"btn btn-sm",onClick:t[7]||(t[7]=r=>e.retryFailed()),disabled:!e.selectedStats?.counts?.failed},"Retry failed",8,Vv),s("button",{class:"btn btn-sm",onClick:t[8]||(t[8]=r=>e.emptyQueue())},"Empty")])])])):m("v-if",!0),e.actionError?(l(),d("div",{key:1,class:"q-toast-error",onClick:t[9]||(t[9]=r=>e.actionError=null)},[t[25]||(t[25]=s("i",{class:"fas fa-exclamation-circle"},null,-1)),y(" "+c(e.actionError),1)])):m("v-if",!0),m(" Jobs table "),s("div",Pv,[s("div",qv,[s("div",Mv,"ALL JOBS \xB7 "+c(e.fmt?.uppercase(e.selectedQueue)),1),s("div",$v,[(l(!0),d(x,null,re(e.allStates,(r,n)=>(l(),d("label",Fv,[E(s("input",Lv,null,512),[[o,{state:e.viewState,set:i=>{e.stateFilter[r]=i},value:e.stateFilter[r],form:null,options:{}}]]),s("span",{class:T("q-state-chip q-state-"+r)},c(r),3)]))),256))])]),s("div",Uv,[E(s("input",zv,null,512),[[o,{state:e.viewState,set:r=>{e.query.search=r},value:e.query?.search,form:null,options:{}}]]),s("label",Hv,[E(s("input",Bv,null,512),[[o,{state:e.viewState,set:r=>{e.query.autoRefresh=r},value:e.query?.autoRefresh,form:null,options:{}}]]),t[26]||(t[26]=y(" Auto-refresh ",-1))]),s("button",{class:"btn btn-sm",type:"button",title:"Refresh now",onClick:t[10]||(t[10]=r=>e.refreshNow())},[...t[27]||(t[27]=[s("i",{class:"fas fa-sync"},null,-1)])])]),e.filteredJobs().length>0?(l(),d("table",Gv,[t[45]||(t[45]=s("thead",null,[s("tr",null,[s("th",null,"STATE"),s("th",null,"JOB ID"),s("th",null,"PAYLOAD"),s("th",null,"ATTEMPTS"),s("th",null,"DURATION"),s("th",null,"PROGRESS"),s("th")])],-1)),(l(!0),d(x,null,re(e.filteredJobs(),(r,n)=>(l(),d("tbody",null,[s("tr",{style:{cursor:"pointer"},class:T({"q-row-failed":r?._state=="failed","q-row-expanded":e.expanded[r?.id]}),onClick:i=>e.toggleJob(r)},[s("td",Wv,[s("span",{textContent:c(r?._state),class:T("q-state-badge q-state-"+r?._state)},null,10,Kv),r?._state=="delayed"&&r?.delayUntil?(l(),d("span",{key:0,class:"q-delay-hint",textContent:c(e.delayCountdown(r?.delayUntil))},null,8,Yv)):m("v-if",!0)]),s("td",xv,[s("i",{class:T(["fas fa-chevron-right q-chevron",{"q-chevron-open":e.expanded[r?.id]}])},null,2),s("a",{target:"_blank",textContent:c("job:"+e.fmt.limitTo(r?.id,6)),onClick:t[11]||(t[11]=i=>i.stopPropagation()),href:e.safeUrl("/r/"+r?.id)},null,8,Jv)]),s("td",Qv,[s("span",{textContent:c(r?.name||"anonymize")},null,8,Xv),r?.data?.repoId&&r?.data?.repoId!==r?.name?(l(),d("span",Zv," \xB7 "+c(r?.data?.repoId),1)):m("v-if",!0)]),s("td",{class:"q-cell-num",textContent:c(r?.attemptsMade||1)},null,8,ey),s("td",{class:"q-cell-num",textContent:c(e.jobDuration(r))},null,8,ty),s("td",sy,[e.jobProgressPct(r)!==null?(l(),d("div",ny,[s("div",{class:"q-progress-bar",style:Oe({"--pct":e.jobProgressPct(r)+"%"})},null,4),s("span",{class:"q-progress-label",textContent:c(e.jobProgressPct(r)+"%")},null,8,oy)])):m("v-if",!0)]),s("td",ry,[r?._state=="failed"?(l(),d("button",{key:0,class:"btn btn-sm",title:"Retry",onClick:i=>{e.retryJob(r),i.stopPropagation()}},[...t[28]||(t[28]=[s("i",{class:"fas fa-sync"},null,-1)])],8,iy)):m("v-if",!0),s("button",{class:"btn btn-sm",title:"Remove",onClick:i=>{e.removeJob(r),i.stopPropagation()}},[...t[29]||(t[29]=[s("i",{class:"fas fa-trash-alt"},null,-1)])],8,ay)])],10,jv),e.expanded[r?.id]?(l(),d("tr",ly,[s("td",dy,[s("div",uy,[s("div",cy,[s("div",py,[t[30]||(t[30]=s("span",{class:"q-job-detail-label"},"JOB ID",-1)),s("span",fy,[s("a",{target:"_blank",textContent:c(r?.id),href:e.safeUrl("/r/"+r?.id)},null,8,my)])]),s("div",hy,[t[31]||(t[31]=s("span",{class:"q-job-detail-label"},"STATE",-1)),s("span",vy,[s("span",{textContent:c(r?._state),class:T("q-state-badge q-state-"+r?._state)},null,10,yy)])]),r?.data?.repoId?(l(),d("div",gy,[t[32]||(t[32]=s("span",{class:"q-job-detail-label"},"REPO ID",-1)),s("span",{class:"q-job-detail-value",textContent:c(r?.data?.repoId)},null,8,by)])):m("v-if",!0),r?.timestamp?(l(),d("div",wy,[t[33]||(t[33]=s("span",{class:"q-job-detail-label"},"CREATED",-1)),s("span",{class:"q-job-detail-value",textContent:c(e.humanTime(r?.timestamp))},null,8,ky)])):m("v-if",!0),r?._state=="delayed"&&r?.delayUntil?(l(),d("div",_y,[t[34]||(t[34]=s("span",{class:"q-job-detail-label"},"RETRY AT",-1)),s("span",Ey,c(e.humanTime(r?.delayUntil))+" ("+c(e.delayCountdown(r?.delayUntil))+")",1)])):m("v-if",!0),r?.processedOn?(l(),d("div",Cy,[t[35]||(t[35]=s("span",{class:"q-job-detail-label"},"PROCESSED",-1)),s("span",{class:"q-job-detail-value",textContent:c(e.humanTime(r?.processedOn))},null,8,Ny)])):m("v-if",!0),r?.finishedOn?(l(),d("div",Sy,[t[36]||(t[36]=s("span",{class:"q-job-detail-label"},"FINISHED",-1)),s("span",{class:"q-job-detail-value",textContent:c(e.humanTime(r?.finishedOn))},null,8,Dy)])):m("v-if",!0),r?.attemptsMade?(l(),d("div",Ry,[t[37]||(t[37]=s("span",{class:"q-job-detail-label"},"ATTEMPTS",-1)),s("span",{class:"q-job-detail-value",textContent:c(r?.attemptsMade)},null,8,Ty)])):m("v-if",!0),r?.progress&&r?.progress?.status?(l(),d("div",Oy,[t[38]||(t[38]=s("span",{class:"q-job-detail-label"},"STATUS",-1)),s("span",{class:"q-job-detail-value",textContent:c(r?.progress?.status)},null,8,Ay)])):m("v-if",!0),e.jobProgressPct(r)!==null?(l(),d("div",Iy,[t[39]||(t[39]=s("span",{class:"q-job-detail-label"},"PROGRESS",-1)),s("span",{class:"q-job-detail-value",textContent:c(e.jobProgressPct(r)+"%")},null,8,Vy)])):m("v-if",!0)]),r?.failedReason?(l(),d("div",Py,[t[40]||(t[40]=s("span",{class:"q-job-detail-label"},"ERROR",-1)),s("div",{class:"q-error-reason",textContent:c(r?.failedReason)},null,8,qy)])):m("v-if",!0),r?.stacktrace?.length?(l(),d("div",My,[t[41]||(t[41]=s("span",{class:"q-job-detail-label"},"STACKTRACE",-1)),(l(!0),d(x,null,re(r?.stacktrace,(i,a)=>(l(),d("pre",{class:"q-error-stack",key:a},[s("code",{textContent:c(i)},null,8,$y)]))),128))])):m("v-if",!0),s("div",Fy,[r?._state=="failed"?(l(),d("button",{key:0,class:"btn btn-sm",onClick:i=>e.retryJob(r)},[...t[42]||(t[42]=[s("i",{class:"fas fa-sync"},null,-1),y(" Retry",-1)])],8,Ly)):m("v-if",!0),s("button",{class:"btn btn-sm",onClick:i=>e.removeJob(r)},[...t[43]||(t[43]=[s("i",{class:"fas fa-trash-alt"},null,-1),y(" Remove",-1)])],8,Uy),s("a",{class:"btn btn-sm",target:"_blank",href:e.safeUrl("/r/"+r?.id)},[...t[44]||(t[44]=[s("i",{class:"fas fa-external-link-alt"},null,-1),y(" View repo",-1)])],8,zy)])])])])):m("v-if",!0)]))),256))])):m("v-if",!0),e.filteredJobs().length==0?(l(),d("div",Hy,[t[46]||(t[46]=s("i",{class:"fas fa-check-circle"},null,-1)),e.query?.search?m("v-if",!0):(l(),d("span",By,"No jobs in the "+c(e.selectedQueue)+" queue.",1)),e.query?.search?(l(),d("span",Gy,"No jobs match the current filters.")):m("v-if",!0)])):m("v-if",!0)])])}var jy={class:"container paper-page admin-page"},Wy={class:"admin-summary"},Ky={class:"summary-total"},Yy={class:"summary-meta"},xy={class:"count"},Jy={class:"count"},Qy={class:"count"},Xy={class:"count"},Zy={class:"count"},eg={key:0,class:"alert alert-danger",style:{margin:"8px 0"}},tg={class:"w-100 admin-filter-toolbar","aria-label":"Repositories","accept-charset":"UTF-8"},sg={class:"admin-filter-row"},ng={class:"search-wrap"},og={type:"search",class:"form-control","aria-label":"Search repositories",placeholder:"Search repoId, source repo, error message\u2026",autocomplete:"off"},rg={key:0,class:"admin-search-hint"},ig={class:"admin-filter-inline"},ag={type:"text",class:"form-control form-control-sm",placeholder:"username"},lg={class:"admin-filter-inline"},dg={type:"text",class:"form-control form-control-sm",placeholder:"ID"},ug={class:"admin-filter-inline","aria-label":"Pagination"},cg=["disabled"],pg={style:{"font-family":"var(--font-mono)","font-size":"12px",color:"var(--ink-muted)"}},fg=["disabled"],mg={key:0,class:"admin-filter-row"},hg={class:"admin-active-chips"},vg={class:"key"},yg=["onClick"],gg={key:1,class:"bulk-bar"},bg={class:"paper-table paper-table-repos has-bulk w-100",role:"table","aria-label":"Repositories"},wg={class:"paper-table-head",role:"row"},kg={role:"columnheader",style:{width:"28px"}},_g=["checked"],Eg={role:"columnheader"},Cg={role:"columnheader"},Ng={role:"columnheader",class:"num"},Sg={role:"columnheader"},Dg={role:"cell",style:{width:"28px"}},Rg={type:"checkbox","aria-label":"Select repository"},Tg={class:"cell-anon",role:"cell"},Og={class:"anon-text"},Ag=["textContent","href"],Ig={class:"anon-sub"},Vg=["textContent","href"],Pg={key:0},qg=["textContent","href"],Mg={key:1},$g=["textContent","href"],Fg={key:2},Lg={class:"cell-status",role:"cell"},Ug={class:"status-line"},zg=["textContent"],Hg=["textContent","title"],Bg=["textContent"],Gg=["textContent"],jg={class:"cell-actions",role:"cell"},Wg={class:"dropdown"},Kg={class:"dropdown-menu dropdown-menu-right"},Yg=["href"],xg=["href"],Jg=["href"],Qg=["onClick"],Xg=["onClick"],Zg=["onClick"],eb=["onClick"],tb=["onClick"],sb=["onClick"],ob={key:0,class:"paper-table-empty"},rb={class:"admin-toolbar",style:{"justify-content":"space-between","border-bottom":"none"}},ib={style:{"font-size":"12px",color:"var(--ink-muted)"}},ab={key:0,class:"pagination-compact"},lb=["disabled"],db=["max"],ub=["disabled"],cb={class:"admin-filter-inline"},pb={class:"form-control form-control-sm"};function Ha(e,t){let o=ye("field"),r=ye("form");return l(),d("div",jy,[t[61]||(t[61]=_e('
Admin \xA0/\xA0 Repositories

Repositories

',3)),s("div",Wy,[s("span",Ky,c(e.total>=0?e.fmt.number(e.total):"\u2026"),1),s("span",Yy,c(e.fmt?.humanFileSize(e.totalSize))+" on disk",1),s("span",{class:T(["summary-pill ok",{active:e.query?.ready}]),title:"Toggle ready filter",onClick:t[0]||(t[0]=n=>{e.query.ready=!e.query.ready,e.query.page=1})},[t[18]||(t[18]=y("Ready ",-1)),s("span",xy,c(e.fmt?.number(e.statusCountFor("ready"))),1)],2),s("span",{class:T(["summary-pill warn",{active:e.query?.preparing}]),title:"Toggle preparing filter",onClick:t[1]||(t[1]=n=>{e.query.preparing=!e.query.preparing,e.query.page=1})},[t[19]||(t[19]=y("Preparing ",-1)),s("span",Jy,c(e.fmt?.number(e.statusCountFor("preparing")+e.statusCountFor("download"))),1)],2),s("span",{class:T(["summary-pill error",{active:e.query?.error}]),title:"Toggle errored filter",onClick:t[2]||(t[2]=n=>{e.query.error=!e.query.error,e.query.page=1})},[t[20]||(t[20]=y("Errored ",-1)),s("span",Qy,c(e.fmt?.number(e.statusCountFor("error"))),1)],2),s("span",{class:T(["summary-pill",{active:e.query?.expired}]),title:"Toggle expired filter",onClick:t[3]||(t[3]=n=>{e.query.expired=!e.query.expired,e.query.page=1})},[t[21]||(t[21]=y("Expired ",-1)),s("span",Xy,c(e.fmt?.number(e.statusCountFor("expired")+e.statusCountFor("expiring"))),1)],2),s("span",{class:T(["summary-pill",{active:e.query?.removed}]),title:"Toggle removed filter",onClick:t[4]||(t[4]=n=>{e.query.removed=!e.query.removed,e.query.page=1})},[t[22]||(t[22]=y("Removed ",-1)),s("span",Zy,c(e.fmt?.number(e.statusCountFor("removed")+e.statusCountFor("removing"))),1)],2)]),e.fetchError?(l(),d("div",eg,[t[23]||(t[23]=s("i",{class:"fas fa-exclamation-triangle"},null,-1)),y(" "+c(e.fetchError),1)])):m("v-if",!0),E((l(),d("form",tg,[m(" Row 1: search + scoped inputs + headline actions "),s("div",sg,[s("div",ng,[E(s("input",og,null,512),[[o,{state:e.viewState,set:n=>{e.query.search=n},value:e.query?.search,form:null,options:{}}]]),e.query?.search?m("v-if",!0):(l(),d("span",rg,"/"))]),s("span",ig,[t[24]||(t[24]=s("label",null,"Owner",-1)),E(s("input",ag,null,512),[[o,{state:e.viewState,set:n=>{e.query.owner=n},value:e.query?.owner,form:null,options:{}}]])]),s("span",lg,[t[25]||(t[25]=s("label",null,"Conference",-1)),E(s("input",dg,null,512),[[o,{state:e.viewState,set:n=>{e.query.conference=n},value:e.query?.conference,form:null,options:{}}]])]),t[29]||(t[29]=s("span",{class:"admin-filter-spacer"},null,-1)),s("button",{class:"btn btn-sm",type:"button",title:"Export current view to CSV",onClick:t[5]||(t[5]=n=>e.exportCsv())},[...t[26]||(t[26]=[s("i",{class:"fas fa-file-csv"},null,-1),y(" Export",-1)])]),s("span",ug,[s("button",{class:"btn btn-sm",type:"button",onClick:t[6]||(t[6]=n=>e.query.page=Math.max(1,e.query.page-1)),disabled:e.query?.page<=1},[...t[27]||(t[27]=[s("i",{class:"fas fa-chevron-left"},null,-1)])],8,cg),s("span",pg,c(e.query?.page)+"/"+c(e.totalPage||1),1),s("button",{class:"btn btn-sm",type:"button",onClick:t[7]||(t[7]=n=>e.query.page=Math.min(e.totalPage,e.query.page+1)),disabled:e.query?.page>=e.totalPage},[...t[28]||(t[28]=[s("i",{class:"fas fa-chevron-right"},null,-1)])],8,fg)])]),m(" Row 2: appears only when there are active filter chips "),e.chips?.length?(l(),d("div",mg,[s("div",hg,[(l(!0),d(x,null,re(e.chips,(n,i)=>(l(),d("span",{class:"admin-active-chip",key:n?.key},[s("span",vg,c(n?.label),1),s("span",null,c(n?.value),1),s("button",{type:"button","aria-label":"Remove filter",onClick:a=>e.clearFilter(n.key)},[...t[30]||(t[30]=[s("i",{class:"fas fa-times"},null,-1)])],8,yg)]))),128))])])):m("v-if",!0)])),[[r,e.viewState]]),e.selectedCount()>0?(l(),d("div",gg,[s("span",null,[s("strong",null,c(e.selectedCount()),1),t[31]||(t[31]=y(" selected",-1))]),s("button",{class:"btn btn-sm",type:"button",onClick:t[8]||(t[8]=n=>e.bulkRefresh())},[...t[32]||(t[32]=[s("i",{class:"fas fa-sync"},null,-1),y(" Force refresh",-1)])]),s("button",{class:"btn btn-sm text-danger",type:"button",onClick:t[9]||(t[9]=n=>e.bulkRemoveCache())},[...t[33]||(t[33]=[s("i",{class:"fas fa-broom"},null,-1),y(" Remove cache",-1)])]),s("button",{class:"btn btn-sm",type:"button",onClick:t[10]||(t[10]=n=>e.clearSelection())},"Clear")])):m("v-if",!0),s("div",bg,[s("div",wg,[s("div",kg,[s("input",{type:"checkbox","aria-label":"Select all on page",onClick:t[11]||(t[11]=n=>e.selectAllOnPage()),checked:e.allSelected},null,8,_g)]),s("div",Eg,[s("span",{class:T(["sortable",{active:e.query?.sort=="source.repositoryName"}]),onClick:t[12]||(t[12]=n=>e.sortBy("source.repositoryName"))},[t[34]||(t[34]=y("Repository ",-1)),s("i",{class:T(["fas",e.sortIcon("source.repositoryName")])},null,2)],2)]),s("div",Cg,[s("span",{class:T(["sortable",{active:e.query?.sort=="status"}]),onClick:t[13]||(t[13]=n=>e.sortBy("status"))},[t[35]||(t[35]=y("Status ",-1)),s("i",{class:T(["fas",e.sortIcon("status")])},null,2)],2)]),s("div",Ng,[s("span",{class:T(["sortable",{active:e.query?.sort=="pageView"}]),onClick:t[14]||(t[14]=n=>e.sortBy("pageView"))},[t[36]||(t[36]=y("Views ",-1)),s("i",{class:T(["fas",e.sortIcon("pageView")])},null,2)],2)]),s("div",Sg,[s("span",{class:T(["sortable",{active:e.query?.sort=="anonymizeDate"}]),onClick:t[15]||(t[15]=n=>e.sortBy("anonymizeDate"))},[t[37]||(t[37]=y("Anonymized ",-1)),s("i",{class:T(["fas",e.sortIcon("anonymizeDate")])},null,2)],2)]),t[38]||(t[38]=s("div",{role:"columnheader","aria-label":"Actions"},null,-1))]),(l(!0),d(x,null,re(e.filteredRepositories,(n,i)=>(l(),d("div",{class:T(["paper-table-row",{"repo-inactive":n?.status=="expired"||n?.status=="removed","repo-error":n?.status=="error","row-selected":e.selected[n?.repoId]}]),role:"row"},[s("div",Dg,[E(s("input",Rg,null,512),[[o,{state:e.viewState,set:a=>{e.selected[n.repoId]=a},value:e.selected[n?.repoId],form:null,options:{}}]])]),s("div",Tg,[t[43]||(t[43]=s("span",{class:"type-badge type-repo"},"Repo",-1)),s("div",Og,[s("a",{class:"repo-name",target:"_blank",textContent:c(n?.repoId),href:e.safeUrl("/r/"+n?.repoId)},null,8,Ag),s("div",Ig,[s("a",{textContent:c(n?.source?.repositoryName),href:e.safeUrl("https://github.com/"+n?.source?.repositoryName+"/")},null,8,Vg),n?.options?.update?(l(),d("span",Pg,[t[39]||(t[39]=y("\xA0\xB7\xA0",-1)),s("a",{textContent:c(n?.source?.branch),href:e.safeUrl("https://github.com/"+n?.source?.fullName+"/tree/"+n?.source?.branch)},null,8,qg)])):m("v-if",!0),n?.options?.update?m("v-if",!0):(l(),d("span",Mg,[t[40]||(t[40]=y("\xA0\xB7\xA0@",-1)),s("a",{textContent:c(n?.source?.commit?.substring(0,8)),href:e.safeUrl("https://github.com/"+n?.source?.fullName+"/tree/"+n?.source?.commit)},null,8,$g)])),n?.conference?(l(),d("span",Fg,[t[41]||(t[41]=y("\xA0\xB7\xA0",-1)),t[42]||(t[42]=s("i",{class:"fas fa-chalkboard-teacher"},null,-1)),y(" "+c(n?.conference),1)])):m("v-if",!0),s("span",null,"\xA0\xB7\xA0"+c(e.fmt?.humanFileSize(n?.size?.storage)),1),s("span",null,"\xA0\xB7\xA0"+c(e.fmt?.number(n?.options?.terms?.length))+" terms",1)])])]),s("div",Lg,[s("span",Ug,[s("span",{class:T(["status-dot",{"status-removed":n?.status=="removed"||n?.status=="expired","status-ready":n?.status=="ready","status-error":n?.status=="error","status-preparing":n?.status=="preparing"}])},null,2),s("span",{textContent:c(e.fmt?.title(n?.status))},null,8,zg)]),n?.statusMessage?(l(),d("span",{key:0,class:"status-sub",textContent:c(e.fmt?.statusMsg(n?.statusMessage)),title:n?.statusMessage},null,8,Hg)):m("v-if",!0)]),s("div",{class:"cell-views num",role:"cell",textContent:c(e.fmt?.number(n?.pageView||0))},null,8,Bg),s("div",{class:"cell-expires",role:"cell",textContent:c(e.fmt?.humanTime(n?.anonymizeDate))},null,8,Gg),s("div",jg,[s("div",Wg,[t[55]||(t[55]=s("button",{class:"btn btn-icon-dots",type:"button","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false","aria-label":"Actions"},[s("i",{class:"fas fa-ellipsis-h","aria-hidden":"true"})],-1)),s("div",Kg,[s("a",{class:"dropdown-item",href:e.safeUrl("/anonymize/"+n?.repoId)},[...t[44]||(t[44]=[s("i",{class:"far fa-edit"},null,-1),y(" Edit",-1)])],8,Yg),s("a",{class:"dropdown-item",href:e.safeUrl("/r/"+n?.repoId+"/")},[...t[45]||(t[45]=[s("i",{class:"fa fa-eye"},null,-1),y(" View repo",-1)])],8,xg),n?.options?.page&&n?.status=="ready"?(l(),d("a",{key:0,class:"dropdown-item",target:"_self",href:e.safeUrl("/w/"+n?.repoId+"/")},[...t[46]||(t[46]=[s("i",{class:"fas fa-globe"},null,-1),y(" View page",-1)])],8,Jg)):m("v-if",!0),s("a",{class:"dropdown-item",href:"#",onClick:ge(a=>e.fetchGithubInfo(n),["prevent"])},[...t[47]||(t[47]=[s("i",{class:"fab fa-github"},null,-1),y(" Live GitHub info",-1)])],8,Qg),t[53]||(t[53]=s("div",{class:"dropdown-divider"},null,-1)),E(s("a",{class:"dropdown-item",href:"#",onClick:ge(a=>e.updateRepository(n),["prevent"])},[...t[48]||(t[48]=[s("i",{class:"fas fa-sync"},null,-1),y(" Force update",-1)])],8,Xg),[[H,n?.status=="ready"||n?.status=="error"]]),E(s("a",{class:"dropdown-item",href:"#",onClick:ge(a=>e.updateRepository(n),["prevent"])},[...t[49]||(t[49]=[s("i",{class:"fas fa-check-circle"},null,-1),y(" Enable",-1)])],8,Zg),[[H,n?.status=="removed"]]),E(s("a",{class:"dropdown-item",href:"#",onClick:ge(a=>e.showStatusMessage(n),["prevent"])},[...t[50]||(t[50]=[s("i",{class:"fas fa-exclamation-triangle"},null,-1),y(" View status message",-1)])],8,eb),[[H,n?.statusMessage]]),t[54]||(t[54]=s("div",{class:"dropdown-divider"},null,-1)),s("a",{class:"dropdown-item",href:"#",onClick:ge(a=>e.removeCache(n),["prevent"])},[...t[51]||(t[51]=[s("i",{class:"fas fa-broom"},null,-1),y(" Remove cache",-1)])],8,tb),E(s("a",{class:"dropdown-item text-danger",href:"#",onClick:ge(a=>e.removeRepository(n),["prevent"])},[...t[52]||(t[52]=[s("i",{class:"fas fa-trash-alt"},null,-1),y(" Remove",-1)])],8,sb),[[H,n?.status=="ready"]])])])])],2))),256)),e.filteredRepositories?.length==0?(l(),d("div",ob,[...t[56]||(t[56]=[s("i",{class:"fas fa-inbox"},null,-1),s("span",null,"No repositories match the current filters.",-1)])])):m("v-if",!0)]),s("div",rb,[s("span",ib,c(e.fmt?.number(e.total))+" results",1),e.totalPage>1?(l(),d("div",ab,[s("button",{class:"btn btn-sm",onClick:t[16]||(t[16]=n=>e.query.page=Math.max(1,e.query.page-1)),disabled:e.query?.page<=1},[...t[57]||(t[57]=[s("i",{class:"fas fa-chevron-left"},null,-1),y(" Previous ",-1)])],8,lb),E(s("input",{type:"number",class:"form-control form-control-sm",min:"1",style:{width:"56px"},"aria-label":"Page",max:e.totalPage},null,8,db),[[o,{state:e.viewState,set:n=>{e.query.page=n},value:e.query?.page,form:null,options:{}}]]),s("span",null,"of "+c(e.totalPage),1),s("button",{class:"btn btn-sm",onClick:t[17]||(t[17]=n=>e.query.page=Math.min(e.totalPage,e.query.page+1)),disabled:e.query?.page>=e.totalPage},[...t[58]||(t[58]=[y(" Next ",-1),s("i",{class:"fas fa-chevron-right"},null,-1)])],8,ub)])):m("v-if",!0),s("span",cb,[t[60]||(t[60]=s("label",null,"Per page",-1)),E((l(),d("select",pb,[...t[59]||(t[59]=[_e('',5)])])),[[o,{state:e.viewState,set:n=>{e.query.limit=n},value:e.query?.limit,form:null,options:{}}]])])])])}var fb={class:"container paper-page admin-page"},mb={class:"paper-crumbs"},hb={class:"here"},vb={class:"paper-page-title"},yb={key:0,class:"user-detail-card"},gb={class:"user-header"},bb=["src"],wb={class:"status-dot-wrap"},kb=["textContent"],_b={key:0,class:"type-badge type-repo"},Eb={class:"user-actions",style:{"margin-top":"4px"}},Cb={class:"user-detail-grid"},Nb={class:"detail-value"},Sb={class:"detail-value"},Db={class:"detail-value",style:{"font-family":"var(--font-mono)","font-size":"0.85rem"}},Rb={class:"detail-value"},Tb=["href"],Ob={class:"detail-value"},Ab={class:"detail-value"},Ib={key:0},Vb={key:1,class:"text-muted"},Pb={class:"detail-value"},qb={key:0,style:{"margin-top":"20px"}},Mb={class:"paper-table w-100",style:{"margin-top":"10px"}},$b={class:"paper-table-row",style:{"grid-template-columns":"1fr 160px"}},Fb={class:"cell-anon",role:"cell"},Lb={class:"anon-text"},Ub=["textContent"],zb={class:"cell-expires",role:"cell"},Hb={key:1,class:"admin-section-header"},Bb={class:"section-count"},Gb={key:2,class:"user-detail-card"},jb={type:"text",class:"form-control",placeholder:"Token name (e.g. dev-laptop)",required:""},Wb={key:0,class:"alert alert-warning",role:"alert"},Kb={style:{"white-space":"pre-wrap","word-break":"break-all",margin:"8px 0 0","font-family":"var(--font-mono)","font-size":"0.85rem"}},Yb={key:1,class:"paper-table w-100"},xb={class:"paper-table-row",role:"row",style:{"grid-template-columns":"1fr 200px 200px 80px"}},Jb=["textContent"],Qb=["textContent"],Xb={role:"cell"},Zb={key:0},e1={key:1,class:"text-muted"},t1={role:"cell"},s1=["onClick"],n1={key:2,class:"paper-table-empty"},o1={class:"admin-section-header"},r1={class:"section-count"},i1={class:"admin-summary"},a1={class:"summary-total"},l1={class:"count"},d1={class:"count"},u1={class:"count"},c1={class:"count"},p1={class:"count"},f1={class:"w-100 admin-filter-toolbar","aria-label":"Repositories","accept-charset":"UTF-8"},m1={class:"admin-filter-row"},h1={class:"search-wrap"},v1={type:"search",class:"form-control","aria-label":"Search repositories",placeholder:"Search repoId, source repo, error message\u2026",autocomplete:"off"},y1={key:3,class:"bulk-bar"},g1={class:"paper-table paper-table-repos has-bulk w-100",role:"table","aria-label":"Repositories"},b1={class:"paper-table-head",role:"row"},w1={role:"columnheader",style:{width:"28px"}},k1=["checked"],_1={role:"columnheader"},E1={role:"columnheader"},C1={role:"columnheader",class:"num"},N1={role:"columnheader"},S1={role:"cell",style:{width:"28px"}},D1={type:"checkbox","aria-label":"Select repository"},R1={class:"cell-anon",role:"cell"},T1={class:"anon-text"},O1=["textContent","href"],A1={class:"anon-sub"},I1=["textContent","href"],V1={key:0},P1=["textContent","href"],q1={key:1},M1=["textContent","href"],$1={key:2},F1={class:"cell-status",role:"cell"},L1={class:"status-line"},U1=["textContent"],z1=["textContent","title"],H1=["textContent"],B1=["textContent"],G1={class:"cell-actions",role:"cell"},j1={class:"dropdown"},W1={class:"dropdown-menu dropdown-menu-right"},K1=["href"],Y1=["href"],x1=["href"],J1=["onClick"],Q1=["onClick"],X1=["onClick"],Z1=["onClick"],ew=["onClick"],tw=["onClick"],sw={key:0,class:"paper-table-empty"};function Ba(e,t){let o=ye("field"),r=ye("form");return l(),d("div",fb,[s("div",mb,[t[22]||(t[22]=s("a",{href:"/admin/users"},"Users",-1)),t[23]||(t[23]=y(" \xA0/\xA0 ",-1)),s("span",hb,c(e.userInfo?.username||"Profile"),1)]),s("h1",vb,c(e.userInfo?.username||"User"),1),t[81]||(t[81]=_e('',1)),e.userInfo?(l(),d("div",yb,[s("div",gb,[e.userInfo?.photo?(l(),d("img",{key:0,width:"56",height:"56",src:e.safeUrl(e.userInfo?.photo)},null,8,bb)):m("v-if",!0),s("div",null,[s("h1",null,[y(c(e.userInfo?.username)+" ",1),s("span",wb,[s("span",{class:T(["status-dot",{"status-ready":e.userInfo?.status=="active","status-removed":e.userInfo?.status!="active"}])},null,2),s("span",{textContent:c(e.fmt?.title(e.userInfo?.status))},null,8,kb)]),e.userInfo?.isAdmin?(l(),d("span",_b,"Admin")):m("v-if",!0)]),s("div",Eb,[e.userInfo?.status!=="banned"?(l(),d("button",{key:0,class:"btn btn-sm text-danger",onClick:t[0]||(t[0]=n=>e.banUser())},[...t[24]||(t[24]=[s("i",{class:"fas fa-ban"},null,-1),y(" Ban",-1)])])):m("v-if",!0),e.userInfo?.status==="banned"||e.userInfo?.status==="removed"?(l(),d("button",{key:1,class:"btn btn-sm",onClick:t[1]||(t[1]=n=>e.activateUser())},[...t[25]||(t[25]=[s("i",{class:"fas fa-check-circle"},null,-1),y(" Activate",-1)])])):m("v-if",!0),e.userInfo?.isAdmin?m("v-if",!0):(l(),d("button",{key:2,class:"btn btn-sm",onClick:t[2]||(t[2]=n=>e.promoteUser())},[...t[26]||(t[26]=[s("i",{class:"fas fa-user-shield"},null,-1),y(" Promote to admin",-1)])])),e.userInfo?.isAdmin?(l(),d("button",{key:3,class:"btn btn-sm text-danger",onClick:t[3]||(t[3]=n=>e.demoteUser())},[...t[27]||(t[27]=[s("i",{class:"fas fa-user-minus"},null,-1),y(" Remove admin",-1)])])):m("v-if",!0)])])]),s("div",Cb,[t[30]||(t[30]=s("div",{class:"detail-label"},"ID",-1)),s("div",Nb,c(e.userInfo?._id),1),t[31]||(t[31]=s("div",{class:"detail-label"},"Email",-1)),s("div",Sb,c(e.userInfo?.emails?.[0]?.email),1),t[32]||(t[32]=s("div",{class:"detail-label"},"Access token",-1)),s("div",Db,c(e.userInfo?.accessTokens?.github),1),t[33]||(t[33]=s("div",{class:"detail-label"},"GitHub",-1)),s("div",Rb,[s("a",{target:"_blank",href:e.safeUrl("https://github.com/"+e.userInfo?.username)},[t[28]||(t[28]=s("i",{class:"fab fa-github"},null,-1)),y(" "+c(e.userInfo?.username),1)],8,Tb)]),t[34]||(t[34]=s("div",{class:"detail-label"},"Created",-1)),s("div",Ob,c(e.fmt?.humanTime(e.userInfo?.dateOfEntry)),1),t[35]||(t[35]=s("div",{class:"detail-label"},"Last connection",-1)),s("div",Ab,[e.userInfo?.accessTokenDates?.github?(l(),d("span",Ib,c(e.fmt?.humanTime(e.userInfo?.accessTokenDates?.github)),1)):m("v-if",!0),e.userInfo?.accessTokenDates?.github?m("v-if",!0):(l(),d("span",Vb,"never"))]),t[36]||(t[36]=s("div",{class:"detail-label"},"GitHub repos",-1)),s("div",Pb,[y(c(e.userInfo?.repositories?.length)+" repositories ",1),s("button",{class:"btn btn-sm ml-2",onClick:t[4]||(t[4]=n=>e.showRepos=!e.showRepos)},c(e.showRepos?"Hide":"Show"),1),s("button",{class:"btn btn-sm ml-1",onClick:t[5]||(t[5]=n=>e.getGitHubRepositories())},[...t[29]||(t[29]=[s("i",{class:"fas fa-sync"},null,-1),y(" Refresh ",-1)])])])]),e.showRepos?(l(),d("div",qb,[t[39]||(t[39]=s("div",{class:"paper-section-eyebrow"},"GitHub repositories",-1)),s("div",Mb,[(l(!0),d(x,null,re(e.userInfo?.repositories,(n,i)=>(l(),d("div",$b,[s("div",Fb,[t[37]||(t[37]=s("span",{class:"type-badge type-repo"},"Repo",-1)),s("div",Lb,[s("span",{class:"repo-name",textContent:c(n?.name)},null,8,Ub)])]),s("div",zb,[t[38]||(t[38]=s("i",{class:"fas fa-database"},null,-1)),y(" "+c(e.fmt?.humanFileSize(n?.size)),1)])]))),256))])])):m("v-if",!0)])):m("v-if",!0),e.userInfo&&e.userInfo?.isAdmin&&e.user&&e.user?.username==e.userInfo?.username?(l(),d("div",Hb,[t[40]||(t[40]=s("h2",null,[s("i",{class:"fas fa-key"}),y(" API tokens")],-1)),s("span",Bb,c(e.tokens?.length),1)])):m("v-if",!0),e.userInfo&&e.userInfo?.isAdmin&&e.user&&e.user?.username==e.userInfo?.username?(l(),d("div",Gb,[t[46]||(t[46]=s("p",{class:"paper-page-lede"},[y("Personal API tokens for this admin account. Send as "),s("code",null,"Authorization: Bearer "),y(" to authenticate without GitHub OAuth (useful for development).")],-1)),E((l(),d("form",{class:"d-flex",style:{gap:"8px","margin-bottom":"12px"},onSubmit:t[6]||(t[6]=ge(n=>e.submitForm(n,()=>{e.createToken()}),["prevent"]))},[E(s("input",jb,null,512),[[o,{state:e.viewState,set:n=>{e.tokenForm.name=n},value:e.tokenForm?.name,form:null,options:{}}]]),t[41]||(t[41]=s("button",{type:"submit",class:"btn btn-primary"},[s("i",{class:"fas fa-plus"}),y(" Generate")],-1))],32)),[[r,e.viewState]]),e.tokenForm?.plaintext?(l(),d("div",Wb,[t[42]||(t[42]=s("strong",null,"Copy this token now \u2014 it will not be shown again:",-1)),s("pre",Kb,c(e.tokenForm?.plaintext),1),s("button",{class:"btn btn-sm",onClick:t[7]||(t[7]=n=>e.tokenForm.plaintext=null)},"Dismiss")])):m("v-if",!0),e.tokens?.length?(l(),d("div",Yb,[t[44]||(t[44]=s("div",{class:"paper-table-head",role:"row",style:{"grid-template-columns":"1fr 200px 200px 80px"}},[s("div",{role:"columnheader"},"Name"),s("div",{role:"columnheader"},"Created"),s("div",{role:"columnheader"},"Last used"),s("div",{role:"columnheader","aria-label":"Actions"})],-1)),(l(!0),d(x,null,re(e.tokens,(n,i)=>(l(),d("div",xb,[s("div",{role:"cell",textContent:c(n?.name)},null,8,Jb),s("div",{role:"cell",textContent:c(e.fmt?.humanTime(n?.createdAt))},null,8,Qb),s("div",Xb,[n?.lastUsedAt?(l(),d("span",Zb,c(e.fmt?.humanTime(n?.lastUsedAt)),1)):m("v-if",!0),n?.lastUsedAt?m("v-if",!0):(l(),d("span",e1,"never"))]),s("div",t1,[s("button",{class:"btn btn-sm text-danger",title:"Revoke",onClick:a=>e.revokeToken(n)},[...t[43]||(t[43]=[s("i",{class:"fas fa-trash-alt"},null,-1)])],8,s1)])]))),256))])):m("v-if",!0),e.tokens?.length?m("v-if",!0):(l(),d("div",n1,[...t[45]||(t[45]=[s("i",{class:"fas fa-inbox"},null,-1),s("span",null,"No tokens yet.",-1)])]))])):m("v-if",!0),s("div",o1,[t[47]||(t[47]=s("h2",null,[s("i",{class:"fas fa-code-branch"}),y(" Anonymized repositories")],-1)),s("span",r1,c(e.repositories?.length),1)]),s("div",i1,[s("span",a1,c(e.fmt?.number(e.repositories?.length)),1),s("span",{class:T(["summary-pill ok",{active:e.filters?.status?.ready===!1}]),title:"Toggle ready filter",onClick:t[8]||(t[8]=n=>e.filters.status.ready=!e.filters.status.ready)},[t[48]||(t[48]=y("Ready ",-1)),s("span",l1,c(e.fmt?.number(e.statusCountFor("ready"))),1)],2),s("span",{class:T(["summary-pill warn",{active:e.filters?.status?.preparing===!1}]),title:"Toggle preparing filter",onClick:t[9]||(t[9]=n=>e.filters.status.preparing=!e.filters.status.preparing)},[t[49]||(t[49]=y("Preparing ",-1)),s("span",d1,c(e.fmt?.number(e.statusCountFor("preparing"))),1)],2),s("span",{class:T(["summary-pill error",{active:e.filters?.status?.error===!1}]),title:"Toggle errored filter",onClick:t[10]||(t[10]=n=>e.filters.status.error=!e.filters.status.error)},[t[50]||(t[50]=y("Errored ",-1)),s("span",u1,c(e.fmt?.number(e.statusCountFor("error"))),1)],2),s("span",{class:T(["summary-pill",{active:e.filters?.status?.expired===!1}]),title:"Toggle expired filter",onClick:t[11]||(t[11]=n=>e.filters.status.expired=!e.filters.status.expired)},[t[51]||(t[51]=y("Expired ",-1)),s("span",c1,c(e.fmt?.number(e.statusCountFor("expired"))),1)],2),s("span",{class:T(["summary-pill",{active:e.filters?.status?.removed===!1}]),title:"Toggle removed filter",onClick:t[12]||(t[12]=n=>e.filters.status.removed=!e.filters.status.removed)},[t[52]||(t[52]=y("Removed ",-1)),s("span",p1,c(e.fmt?.number(e.statusCountFor("removed"))),1)],2)]),E((l(),d("form",f1,[s("div",m1,[s("div",h1,[E(s("input",v1,null,512),[[o,{state:e.viewState,set:n=>{e.search=n},value:e.search,form:null,options:{}}]])]),t[54]||(t[54]=s("span",{class:"admin-filter-spacer"},null,-1)),s("button",{class:"btn btn-sm",type:"button",title:"Export current view to CSV",onClick:t[13]||(t[13]=n=>e.exportCsv())},[...t[53]||(t[53]=[s("i",{class:"fas fa-file-csv"},null,-1),y(" Export",-1)])])])])),[[r,e.viewState]]),e.selectedCount()>0?(l(),d("div",y1,[s("span",null,[s("strong",null,c(e.selectedCount()),1),t[55]||(t[55]=y(" selected",-1))]),s("button",{class:"btn btn-sm",type:"button",onClick:t[14]||(t[14]=n=>e.bulkRefresh())},[...t[56]||(t[56]=[s("i",{class:"fas fa-sync"},null,-1),y(" Force refresh",-1)])]),s("button",{class:"btn btn-sm text-danger",type:"button",onClick:t[15]||(t[15]=n=>e.bulkRemoveCache())},[...t[57]||(t[57]=[s("i",{class:"fas fa-broom"},null,-1),y(" Remove cache",-1)])]),s("button",{class:"btn btn-sm",type:"button",onClick:t[16]||(t[16]=n=>e.clearSelection())},"Clear")])):m("v-if",!0),s("div",g1,[s("div",b1,[s("div",w1,[s("input",{type:"checkbox","aria-label":"Select all on page",onClick:t[17]||(t[17]=n=>e.selectAllOnPage()),checked:e.allSelected},null,8,k1)]),s("div",_1,[s("span",{class:T(["sortable",{active:e.query?.sort=="source.repositoryName"}]),onClick:t[18]||(t[18]=n=>e.sortBy("source.repositoryName"))},[t[58]||(t[58]=y("Repository ",-1)),s("i",{class:T(["fas",e.sortIcon("source.repositoryName")])},null,2)],2)]),s("div",E1,[s("span",{class:T(["sortable",{active:e.query?.sort=="status"}]),onClick:t[19]||(t[19]=n=>e.sortBy("status"))},[t[59]||(t[59]=y("Status ",-1)),s("i",{class:T(["fas",e.sortIcon("status")])},null,2)],2)]),s("div",C1,[s("span",{class:T(["sortable",{active:e.query?.sort=="pageView"}]),onClick:t[20]||(t[20]=n=>e.sortBy("pageView"))},[t[60]||(t[60]=y("Views ",-1)),s("i",{class:T(["fas",e.sortIcon("pageView")])},null,2)],2)]),s("div",N1,[s("span",{class:T(["sortable",{active:e.query?.sort=="anonymizeDate"}]),onClick:t[21]||(t[21]=n=>e.sortBy("anonymizeDate"))},[t[61]||(t[61]=y("Anonymized ",-1)),s("i",{class:T(["fas",e.sortIcon("anonymizeDate")])},null,2)],2)]),t[62]||(t[62]=s("div",{role:"columnheader","aria-label":"Actions"},null,-1))]),(l(!0),d(x,null,re(e.filteredRepositories,(n,i)=>(l(),d("div",{class:T(["paper-table-row",{"repo-inactive":n?.status=="expired"||n?.status=="removed","repo-error":n?.status=="error","row-selected":e.selected[n?.repoId]}]),role:"row"},[s("div",S1,[E(s("input",D1,null,512),[[o,{state:e.viewState,set:a=>{e.selected[n.repoId]=a},value:e.selected[n?.repoId],form:null,options:{}}]])]),s("div",R1,[t[67]||(t[67]=s("span",{class:"type-badge type-repo"},"Repo",-1)),s("div",T1,[s("a",{class:"repo-name",target:"_blank",textContent:c(n?.repoId),href:e.safeUrl("/r/"+n?.repoId)},null,8,O1),s("div",A1,[s("a",{textContent:c(n?.source?.fullName),href:e.safeUrl("https://github.com/"+n?.source?.fullName+"/")},null,8,I1),n?.options?.update?(l(),d("span",V1,[t[63]||(t[63]=y("\xA0\xB7\xA0",-1)),s("a",{textContent:c(n?.source?.branch),href:e.safeUrl("https://github.com/"+n?.source?.fullName+"/tree/"+n?.source?.branch)},null,8,P1)])):m("v-if",!0),n?.options?.update?m("v-if",!0):(l(),d("span",q1,[t[64]||(t[64]=y("\xA0\xB7\xA0@",-1)),s("a",{textContent:c(n?.source?.commit?.substring(0,8)),href:e.safeUrl("https://github.com/"+n?.source?.fullName+"/tree/"+n?.source?.commit)},null,8,M1)])),n?.conference?(l(),d("span",$1,[t[65]||(t[65]=y("\xA0\xB7\xA0",-1)),t[66]||(t[66]=s("i",{class:"fas fa-chalkboard-teacher"},null,-1)),y(" "+c(n?.conference),1)])):m("v-if",!0),s("span",null,"\xA0\xB7\xA0"+c(e.fmt?.humanFileSize(n?.size?.storage)),1),s("span",null,"\xA0\xB7\xA0"+c(e.fmt?.number(n?.options?.terms?.length))+" terms",1)])])]),s("div",F1,[s("span",L1,[s("span",{class:T(["status-dot",{"status-removed":n?.status=="removed"||n?.status=="expired","status-ready":n?.status=="ready","status-error":n?.status=="error","status-preparing":n?.status=="preparing"}])},null,2),s("span",{textContent:c(e.fmt?.title(n?.status))},null,8,U1)]),n?.statusMessage?(l(),d("span",{key:0,class:"status-sub",textContent:c(e.fmt?.statusMsg(n?.statusMessage)),title:n?.statusMessage},null,8,z1)):m("v-if",!0)]),s("div",{class:"cell-views num",role:"cell",textContent:c(e.fmt?.number(n?.pageView||0))},null,8,H1),s("div",{class:"cell-expires",role:"cell",textContent:c(e.fmt?.humanTime(n?.anonymizeDate))},null,8,B1),s("div",G1,[s("div",j1,[t[79]||(t[79]=s("button",{class:"btn btn-icon-dots",type:"button","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false","aria-label":"Actions"},[s("i",{class:"fas fa-ellipsis-h","aria-hidden":"true"})],-1)),s("div",W1,[s("a",{class:"dropdown-item",href:e.safeUrl("/anonymize/"+n?.repoId)},[...t[68]||(t[68]=[s("i",{class:"far fa-edit"},null,-1),y(" Edit",-1)])],8,K1),s("a",{class:"dropdown-item",href:e.safeUrl("/r/"+n?.repoId+"/")},[...t[69]||(t[69]=[s("i",{class:"fa fa-eye"},null,-1),y(" View repo",-1)])],8,Y1),n?.options?.page&&n?.status=="ready"?(l(),d("a",{key:0,class:"dropdown-item",target:"_self",href:e.safeUrl("/w/"+n?.repoId+"/")},[...t[70]||(t[70]=[s("i",{class:"fas fa-globe"},null,-1),y(" View page",-1)])],8,x1)):m("v-if",!0),s("a",{class:"dropdown-item",href:"#",onClick:ge(a=>e.fetchGithubInfo(n),["prevent"])},[...t[71]||(t[71]=[s("i",{class:"fab fa-github"},null,-1),y(" Live GitHub info",-1)])],8,J1),t[77]||(t[77]=s("div",{class:"dropdown-divider"},null,-1)),E(s("a",{class:"dropdown-item",href:"#",onClick:ge(a=>e.updateRepository(n),["prevent"])},[...t[72]||(t[72]=[s("i",{class:"fas fa-sync"},null,-1),y(" Force update",-1)])],8,Q1),[[H,n?.status=="ready"||n?.status=="error"]]),E(s("a",{class:"dropdown-item",href:"#",onClick:ge(a=>e.updateRepository(n),["prevent"])},[...t[73]||(t[73]=[s("i",{class:"fas fa-check-circle"},null,-1),y(" Enable",-1)])],8,X1),[[H,n?.status=="removed"]]),E(s("a",{class:"dropdown-item",href:"#",onClick:ge(a=>e.showStatusMessage(n),["prevent"])},[...t[74]||(t[74]=[s("i",{class:"fas fa-exclamation-triangle"},null,-1),y(" View status message",-1)])],8,Z1),[[H,n?.statusMessage]]),t[78]||(t[78]=s("div",{class:"dropdown-divider"},null,-1)),s("a",{class:"dropdown-item",href:"#",onClick:ge(a=>e.removeCache(n),["prevent"])},[...t[75]||(t[75]=[s("i",{class:"fas fa-broom"},null,-1),y(" Remove cache",-1)])],8,ew),E(s("a",{class:"dropdown-item text-danger",href:"#",onClick:ge(a=>e.removeRepository(n),["prevent"])},[...t[76]||(t[76]=[s("i",{class:"fas fa-trash-alt"},null,-1),y(" Remove",-1)])],8,tw),[[H,n?.status=="ready"]])])])])],2))),256)),e.filteredRepositories?.length==0?(l(),d("div",sw,[...t[80]||(t[80]=[s("i",{class:"fas fa-inbox"},null,-1),s("span",null,"No repositories match the current filters.",-1)])])):m("v-if",!0)])])}var nw={class:"container paper-page admin-page"},ow={class:"admin-summary"},rw={class:"summary-total"},iw={class:"count"},aw={class:"count"},lw={class:"count"},dw={key:0,class:"alert alert-danger",style:{margin:"8px 0"}},uw={class:"w-100 admin-filter-toolbar","aria-label":"Users","accept-charset":"UTF-8"},cw={class:"admin-filter-row"},pw={class:"search-wrap"},fw={type:"search",class:"form-control","aria-label":"Search users",placeholder:"Search username or email\u2026",autocomplete:"off"},mw={key:0,class:"admin-search-hint"},hw={class:"admin-filter-inline"},vw={class:"form-control form-control-sm"},yw={class:"admin-filter-inline","aria-label":"Pagination"},gw=["disabled"],bw={style:{"font-family":"var(--font-mono)","font-size":"12px",color:"var(--ink-muted)"}},ww=["disabled"],kw={key:0,class:"admin-filter-row"},_w={class:"admin-active-chips"},Ew={class:"key"},Cw=["onClick"],Nw={key:1,class:"bulk-bar"},Sw={class:"paper-table w-100",role:"table","aria-label":"Users",style:{"--cols":"28px minmax(280px, 2.4fr) 100px 140px 140px 52px"}},Dw={class:"paper-table-head admin-users-row",role:"row"},Rw={role:"columnheader",style:{width:"28px"}},Tw=["checked"],Ow={role:"columnheader"},Aw={role:"columnheader"},Iw={role:"cell",style:{width:"28px"}},Vw={type:"checkbox","aria-label":"Select user"},Pw={class:"cell-anon",role:"cell"},qw=["src"],Mw={class:"anon-text"},$w=["textContent","href"],Fw={class:"anon-sub"},Lw={key:0},Uw={key:1},zw=["href"],Hw={key:2},Bw={class:"cell-views num",role:"cell"},Gw=["textContent","href"],jw={class:"cell-status",role:"cell"},Ww=["textContent"],Kw={class:"cell-status",role:"cell"},Yw={key:0,class:"type-badge type-repo"},xw={key:1,class:"empty-dash"},Jw={class:"cell-actions",role:"cell"},Qw={class:"dropdown"},Xw={class:"dropdown-menu dropdown-menu-right"},Zw=["href"],ek=["href"],tk=["onClick"],sk=["onClick"],nk={key:0,class:"paper-table-empty"},ok={class:"admin-toolbar",style:{"justify-content":"space-between","border-bottom":"none"}},rk={style:{"font-size":"12px",color:"var(--ink-muted)"}},ik={key:0,class:"pagination-compact"},ak=["disabled"],lk=["max"],dk=["disabled"],uk={class:"admin-filter-inline"},ck={class:"form-control form-control-sm"};function Ga(e,t){let o=ye("field"),r=ye("form");return l(),d("div",nw,[t[43]||(t[43]=_e('
Admin \xA0/\xA0 Users

Users

',3)),s("div",ow,[s("span",rw,c(e.total>=0?e.fmt.number(e.total):"\u2026"),1),s("span",{class:T(["summary-pill ok",{active:e.query?.status=="active"}]),onClick:t[0]||(t[0]=n=>{e.query.status=e.query.status=="active"?"":"active",e.query.page=1})},[t[13]||(t[13]=y("Active ",-1)),s("span",iw,c(e.fmt?.number(e.statusCountFor("active"))),1)],2),s("span",{class:T(["summary-pill error",{active:e.query?.status=="banned"}]),onClick:t[1]||(t[1]=n=>{e.query.status=e.query.status=="banned"?"":"banned",e.query.page=1})},[t[14]||(t[14]=y("Banned ",-1)),s("span",aw,c(e.fmt?.number(e.statusCountFor("banned"))),1)],2),s("span",{class:T(["summary-pill",{active:e.query?.status=="removed"}]),onClick:t[2]||(t[2]=n=>{e.query.status=e.query.status=="removed"?"":"removed",e.query.page=1})},[t[15]||(t[15]=y("Removed ",-1)),s("span",lw,c(e.fmt?.number(e.statusCountFor("removed"))),1)],2)]),e.fetchError?(l(),d("div",dw,[t[16]||(t[16]=s("i",{class:"fas fa-exclamation-triangle"},null,-1)),y(" "+c(e.fetchError),1)])):m("v-if",!0),E((l(),d("form",uw,[s("div",cw,[s("div",pw,[E(s("input",fw,null,512),[[o,{state:e.viewState,set:n=>{e.query.search=n},value:e.query?.search,form:null,options:{}}]]),e.query?.search?m("v-if",!0):(l(),d("span",mw,"/"))]),s("span",hw,[t[18]||(t[18]=s("label",null,"Role",-1)),E((l(),d("select",vw,[...t[17]||(t[17]=[s("option",{value:""},"Any",-1),s("option",{value:"admin"},"Admin",-1)])])),[[o,{state:e.viewState,set:n=>{e.query.role=n},value:e.query?.role,form:null,options:{}}]])]),t[22]||(t[22]=s("span",{class:"admin-filter-spacer"},null,-1)),s("button",{class:"btn btn-sm",type:"button",onClick:t[3]||(t[3]=n=>e.exportCsv())},[...t[19]||(t[19]=[s("i",{class:"fas fa-file-csv"},null,-1),y(" Export",-1)])]),s("span",yw,[s("button",{class:"btn btn-sm",type:"button",onClick:t[4]||(t[4]=n=>e.query.page=Math.max(1,e.query.page-1)),disabled:e.query?.page<=1},[...t[20]||(t[20]=[s("i",{class:"fas fa-chevron-left"},null,-1)])],8,gw),s("span",bw,c(e.query?.page)+"/"+c(e.totalPage||1),1),s("button",{class:"btn btn-sm",type:"button",onClick:t[5]||(t[5]=n=>e.query.page=Math.min(e.totalPage,e.query.page+1)),disabled:e.query?.page>=e.totalPage},[...t[21]||(t[21]=[s("i",{class:"fas fa-chevron-right"},null,-1)])],8,ww)])]),e.chips?.length?(l(),d("div",kw,[s("div",_w,[(l(!0),d(x,null,re(e.chips,(n,i)=>(l(),d("span",{class:"admin-active-chip",key:n?.key},[s("span",Ew,c(n?.label),1),s("span",null,c(n?.value),1),s("button",{type:"button",onClick:a=>e.clearFilter(n.key)},[...t[23]||(t[23]=[s("i",{class:"fas fa-times"},null,-1)])],8,Cw)]))),128))])])):m("v-if",!0)])),[[r,e.viewState]]),e.selectedCount()>0?(l(),d("div",Nw,[s("span",null,[s("strong",null,c(e.selectedCount()),1),t[24]||(t[24]=y(" selected",-1))]),s("button",{class:"btn btn-sm text-danger",type:"button",onClick:t[6]||(t[6]=n=>e.bulkBan())},[...t[25]||(t[25]=[s("i",{class:"fas fa-ban"},null,-1),y(" Ban",-1)])]),s("button",{class:"btn btn-sm",type:"button",onClick:t[7]||(t[7]=n=>{e.selected={},e.allSelected=!1})},"Clear")])):m("v-if",!0),s("div",Sw,[s("div",Dw,[s("div",Rw,[s("input",{type:"checkbox","aria-label":"Select all on page",onClick:t[8]||(t[8]=n=>e.selectAllOnPage()),checked:e.allSelected},null,8,Tw)]),s("div",Ow,[s("span",{class:T(["sortable",{active:e.query?.sort=="username"}]),onClick:t[9]||(t[9]=n=>e.sortBy("username"))},[t[26]||(t[26]=y("User ",-1)),s("i",{class:T(["fas",e.sortIcon("username")])},null,2)],2)]),t[28]||(t[28]=s("div",{role:"columnheader",class:"num"},"Repos",-1)),s("div",Aw,[s("span",{class:T(["sortable",{active:e.query?.sort=="status"}]),onClick:t[10]||(t[10]=n=>e.sortBy("status"))},[t[27]||(t[27]=y("Status ",-1)),s("i",{class:T(["fas",e.sortIcon("status")])},null,2)],2)]),t[29]||(t[29]=s("div",{role:"columnheader"},"Role",-1)),t[30]||(t[30]=s("div",{role:"columnheader","aria-label":"Actions"},null,-1))]),(l(!0),d(x,null,re(e.filteredUsers,(n,i)=>(l(),d("div",{class:T(["paper-table-row admin-users-row",{"row-selected":e.selected[n?.username]}]),role:"row"},[s("div",Iw,[E(s("input",Vw,null,512),[[o,{state:e.viewState,set:a=>{e.selected[n.username]=a},value:e.selected[n?.username],form:null,options:{}}]])]),s("div",Pw,[n?.photo?(l(),d("img",{key:0,width:"28",height:"28",class:"rounded-circle",style:{"flex-shrink":"0"},src:e.safeUrl(n?.photo)},null,8,qw)):m("v-if",!0),s("div",Mw,[s("a",{class:"repo-name",textContent:c(n?.username),href:e.safeUrl("/admin/users/"+n?.username)},null,8,$w),s("div",Fw,[n?.emails[0].email?(l(),d("span",Lw,c(n?.emails[0].email),1)):m("v-if",!0),n?.emails[0].email?(l(),d("span",Uw,"\xA0\xB7\xA0")):m("v-if",!0),s("a",{target:"_blank",href:e.safeUrl("https://github.com/"+n?.username)},[t[31]||(t[31]=s("i",{class:"fab fa-github"},null,-1)),y(" "+c(n?.username),1)],8,zw),n?.dateOfEntry?(l(),d("span",Hw,"\xA0\xB7\xA0Joined "+c(e.fmt?.humanTime(n?.dateOfEntry)),1)):m("v-if",!0)])])]),s("div",Bw,[s("a",{title:"Show this user's repositories",textContent:c(e.fmt?.number(n?.repoCount||0)),href:e.safeUrl("/admin/?owner="+n?.username)},null,8,Gw)]),s("div",jw,[s("span",{class:T(["status-dot",{"status-ready":n?.status=="active","status-removed":n?.status=="removed"||n?.status=="banned"}])},null,2),s("span",{textContent:c(e.fmt?.title(n?.status))},null,8,Ww)]),s("div",Kw,[n?.isAdmin?(l(),d("span",Yw,"Admin")):m("v-if",!0),n?.isAdmin?m("v-if",!0):(l(),d("span",xw,"\u2014"))]),s("div",Jw,[s("div",Qw,[t[37]||(t[37]=s("button",{class:"btn btn-icon-dots",type:"button","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false","aria-label":"Actions"},[s("i",{class:"fas fa-ellipsis-h","aria-hidden":"true"})],-1)),s("div",Xw,[s("a",{class:"dropdown-item",href:e.safeUrl("/admin/users/"+n?.username)},[...t[32]||(t[32]=[s("i",{class:"far fa-eye"},null,-1),y(" View details",-1)])],8,Zw),s("a",{class:"dropdown-item",href:e.safeUrl("/admin/?owner="+n?.username)},[...t[33]||(t[33]=[s("i",{class:"fas fa-code-branch"},null,-1),y(" View repositories",-1)])],8,ek),t[36]||(t[36]=s("div",{class:"dropdown-divider"},null,-1)),E(s("a",{class:"dropdown-item text-danger",href:"#",onClick:ge(a=>e.banUser(n),["prevent"])},[...t[34]||(t[34]=[s("i",{class:"fas fa-ban"},null,-1),y(" Ban",-1)])],8,tk),[[H,n?.status=="active"]]),E(s("a",{class:"dropdown-item",href:"#",onClick:ge(a=>e.activateUser(n),["prevent"])},[...t[35]||(t[35]=[s("i",{class:"fas fa-check-circle"},null,-1),y(" Activate",-1)])],8,sk),[[H,n?.status=="removed"||n?.status=="banned"]])])])])],2))),256)),e.filteredUsers?.length==0?(l(),d("div",nk,[...t[38]||(t[38]=[s("i",{class:"fas fa-inbox"},null,-1),s("span",null,"No users match the current filters.",-1)])])):m("v-if",!0)]),s("div",ok,[s("span",rk,c(e.fmt?.number(e.total))+" results",1),e.totalPage>1?(l(),d("div",ik,[s("button",{class:"btn btn-sm",onClick:t[11]||(t[11]=n=>e.query.page=Math.max(1,e.query.page-1)),disabled:e.query?.page<=1},[...t[39]||(t[39]=[s("i",{class:"fas fa-chevron-left"},null,-1),y(" Previous",-1)])],8,ak),E(s("input",{type:"number",class:"form-control form-control-sm",min:"1",style:{width:"56px"},max:e.totalPage},null,8,lk),[[o,{state:e.viewState,set:n=>{e.query.page=n},value:e.query?.page,form:null,options:{}}]]),s("span",null,"of "+c(e.totalPage),1),s("button",{class:"btn btn-sm",onClick:t[12]||(t[12]=n=>e.query.page=Math.min(e.totalPage,e.query.page+1)),disabled:e.query?.page>=e.totalPage},[...t[40]||(t[40]=[y("Next ",-1),s("i",{class:"fas fa-chevron-right"},null,-1)])],8,dk)])):m("v-if",!0),s("span",uk,[t[42]||(t[42]=s("label",null,"Per page",-1)),E((l(),d("select",ck,[...t[41]||(t[41]=[s("option",{value:"10"},"10",-1),s("option",{value:"25"},"25",-1),s("option",{value:"50"},"50",-1),s("option",{value:"100"},"100",-1)])])),[[o,{state:e.viewState,set:n=>{e.query.limit=n},value:e.query?.limit,form:null,options:{}}]])])])])}var pk={class:"anonymize-page h-100"},fk={class:"anonymize-landing"},mk={class:"anonymize-landing-inner"},hk={class:"form-group mt-4 mb-2"},vk={id:"sourceUrl-landing",type:"text",class:"form-control form-control-lg",placeholder:"https://github.com/owner/repository"},yk={class:"anonymize-workspace"},gk={class:"anonymize-topbar"},bk={class:"anonymize-topbar-inner"},wk={class:"paper-crumbs"},kk={class:"here"},_k={class:"anonymize-topbar-head"},Ek={class:"paper-page-title anonymize-topbar-title"},Ck={key:0},Nk={key:1},Sk={class:"anonymize-split"},Dk={class:"anonymize-form-col overflow-auto"},Rk={class:"form needs-validation paper-settings-main",name:"anonymize",novalidate:""},Tk={class:"paper-settings-section"},Ok={class:"form-group"},Ak=["disabled"],Ik={class:"invalid-feedback"},Vk={class:"invalid-feedback"},Pk={class:"invalid-feedback"},qk={class:"invalid-feedback"},Mk={class:"form-grid-2"},$k={class:"form-group"},Fk={class:"input-group"},Lk={class:"form-control",id:"branch",name:"branch"},Uk=["textContent","value"],zk={class:"input-group-append"},Hk={class:"form-group"},Bk=["disabled"],Gk={class:"invalid-feedback"},jk={class:"invalid-feedback"},Wk={class:"form-check"},Kk={class:"form-check-input",type:"checkbox",id:"update",name:"update"},Yk={class:"paper-settings-section"},xk={class:"form-group"},Jk=["disabled"],Qk={class:"form-text text-muted"},Xk={class:"invalid-feedback"},Zk={class:"form-group"},e_=["disabled"],t_={class:"form-text text-muted"},s_={class:"invalid-feedback"},n_={class:"form-group"},o_=["disabled"],r_={class:"form-text text-muted"},i_={class:"invalid-feedback"},a_={class:"form-group"},l_={class:"form-text text-muted"},d_=["href"],u_={class:"invalid-feedback"},c_={class:"form-text text-muted"},p_={class:"paper-settings-section"},f_={class:"form-group"},m_={class:"form-text text-muted"},h_={class:"warning-feedback"},v_={class:"invalid-feedback"},y_={class:"paper-settings-section"},g_={class:"form-check"},b_={class:"form-check-input",type:"checkbox",id:"link",name:"link"},w_={class:"form-check"},k_={class:"form-check-input",type:"checkbox",id:"image",name:"image"},__={class:"form-check"},E_={class:"form-check-input",type:"checkbox",id:"pdf",name:"pdf"},C_={class:"form-check"},N_={class:"form-check-input",type:"checkbox",id:"notebook",name:"notebook"},S_={class:"form-check"},D_=["disabled"],R_={class:"form-check"},T_={class:"form-check-input",type:"checkbox",id:"title-gist",name:"title-gist"},O_={class:"form-check"},A_={class:"form-check-input",type:"checkbox",id:"content-gist",name:"content-gist"},I_={class:"form-check"},V_={class:"form-check-input",type:"checkbox",id:"comments-gist",name:"comments-gist"},P_={class:"form-check"},q_={class:"form-check-input",type:"checkbox",id:"username-gist",name:"username-gist"},M_={class:"form-check"},$_={class:"form-check-input",type:"checkbox",id:"date-gist",name:"date-gist"},F_={class:"form-check"},L_={class:"form-check-input",type:"checkbox",id:"origin-gist",name:"origin-gist"},U_={class:"form-check"},z_={class:"form-check-input",type:"checkbox",id:"title",name:"title"},H_={class:"form-check"},B_={class:"form-check-input",type:"checkbox",id:"body",name:"body"},G_={class:"form-check"},j_={class:"form-check-input",type:"checkbox",id:"diff",name:"diff"},W_={class:"form-check"},K_={class:"form-check-input",type:"checkbox",id:"comments",name:"comments"},Y_={class:"form-check"},x_={class:"form-check-input",type:"checkbox",id:"username",name:"username"},J_={class:"form-check"},Q_={class:"form-check-input",type:"checkbox",id:"date",name:"date"},X_={class:"form-check"},Z_={class:"form-check-input",type:"checkbox",id:"origin",name:"origin"},e0={class:"paper-settings-section"},t0={class:"form-grid-2"},s0={class:"form-group"},n0={class:"form-control",id:"expiration",name:"expiration"},o0={class:"form-group"},r0=["min","max"],i0={class:"invalid-feedback"},a0={class:"invalid-feedback"},l0={class:"paper-settings-section"},d0={class:"form-group"},u0={style:{position:"relative"}},c0={type:"text",id:"coauthorSearch",class:"form-control",placeholder:"Search GitHub username\u2026",autocomplete:"off"},p0={class:"dropdown-menu show",style:{display:"block","max-height":"220px","overflow-y":"auto",width:"100%"}},f0=["onClick"],m0=["src"],h0=["textContent"],v0=["textContent"],y0={class:"coauthor-list"},g0={class:"coauthor-row d-flex align-items-center",style:{padding:"6px 0",gap:"8px"}},b0=["src"],w0=["textContent","href"],k0=["onClick"],_0={class:"form-text text-muted"},E0=["textContent"],C0={class:"anonymize-submit-bar"},N0={key:0,class:"anonymize-preview-col"},S0=["innerHTML"],D0={key:1,class:"anonymize-preview-col"},R0={class:"anonymize-preview-body"},T0={class:"d-flex w-100 justify-content-between align-items-center flex-wrap"},O0={class:"pr-title mb-1"},A0={key:0},I0=["textContent"],V0={key:0},P0={key:1},q0={key:2},M0={class:"pr-comments mt-3"},$0={class:"pr-comment"},F0={class:"pr-comment-head"},L0=["textContent"],U0={key:0,class:"pr-comment-date"},z0={key:3},H0={class:"pr-comments"},B0={class:"pr-comment"},G0={class:"pr-comment-head"},j0={key:0,class:"pr-comment-author"},W0=["textContent"],K0=["textContent"],Y0={key:0,class:"pr-comment-body"},x0={key:2,class:"anonymize-preview-col"},J0={class:"anonymize-preview-body"},Q0={class:"d-flex w-100 justify-content-between align-items-center flex-wrap"},X0={class:"pr-title mb-1"},Z0={key:0},eE=["textContent"],tE={key:0},sE={key:1,class:"pr-body shadow-sm p-3 mb-4 rounded",style:{background:"var(--paper-bg-alt)"}},nE={key:2,class:"paper-tabs",role:"tablist"},oE=["textContent"],rE={class:"paper-tab-content"},iE={key:0},aE=["innerHTML"],lE={key:1},dE={class:"pr-comments"},uE={class:"pr-comment"},cE={class:"pr-comment-head"},pE={key:0,class:"pr-comment-author"},fE=["textContent"],mE=["textContent"],hE={key:0,class:"pr-comment-body"};function ja(e,t){let o=Qe("gist-file"),r=Qe("markdown"),n=ye("field"),i=ye("form");return l(),d("div",pk,[m(" ===== STATE 1: No URL \u2014 centered input ===== "),E(s("div",fk,[s("div",mk,[t[10]||(t[10]=s("div",{class:"paper-crumbs"},[y("My work \xA0/\xA0 "),s("span",{class:"here"},"New anonymization")],-1)),t[11]||(t[11]=s("h1",{class:"paper-page-title"},[y("New "),s("em",null,"anonymization")],-1)),t[12]||(t[12]=s("p",{class:"paper-page-lede"}," Paste a GitHub repository, pull-request, or gist URL. We\u2019ll fetch it, strip every trace of identity, and hand you back a stable link. ",-1)),s("div",hk,[t[9]||(t[9]=s("label",{class:"paper-field-label",for:"sourceUrl-landing"},"Source URL",-1)),E(s("input",vk,null,512),[[n,{state:e.viewState,set:a=>{e.sourceUrl=a},value:e.sourceUrl,form:null,options:{debounce:{default:1e3,blur:0,click:0},updateOn:"default blur click"},change:()=>{e.urlSelected()}}]])]),t[13]||(t[13]=s("small",{class:"form-text",style:{color:"var(--ink-muted)"}}," Repository, pull request (\u2026/pull/42) and gist (gist.github.com/\u2026) URLs are all accepted. ",-1))])],512),[[H,!e.sourceUrl]]),m(" ===== STATE 2: URL provided \u2014 form (left) + preview (right) ===== "),E(s("div",yk,[s("header",gk,[s("div",bk,[s("div",wk,[t[14]||(t[14]=s("a",{href:"/dashboard"},"My work",-1)),t[15]||(t[15]=y(" \xA0/\xA0 ",-1)),s("span",kk,c(e.isUpdate?"Edit anonymization":"New anonymization"),1)]),s("div",_k,[s("h1",Ek,[e.isUpdate?m("v-if",!0):(l(),d("span",Ck,[...t[16]||(t[16]=[y("New ",-1),s("em",null,"anonymization",-1)])])),e.isUpdate?(l(),d("span",Nk,[...t[17]||(t[17]=[y("Edit ",-1),s("em",null,"anonymization",-1)])])):m("v-if",!0)]),E(s("span",{class:T(["type-badge",{"type-repo":e.detectedType==="repo","type-pr":e.detectedType==="pr","type-gist":e.detectedType==="gist"}])},c(e.detectedType==="repo"?"Repo":e.detectedType==="pr"?"PR":"Gist"),3),[[H,e.detectedType]])])])]),s("div",Sk,[m(" Form column (left) "),s("div",Dk,[E((l(),d("form",Rk,[s("section",Tk,[t[24]||(t[24]=s("div",{class:"paper-section-eyebrow"},"Source",-1)),s("div",Ok,[t[18]||(t[18]=s("label",{class:"paper-field-label",for:"sourceUrl"},"GitHub URL",-1)),E(s("input",{type:"text",class:T(["form-control",{"is-invalid":e.anonymize?.sourceUrl?.invalid}]),name:"sourceUrl",id:"sourceUrl",disabled:e.isUpdate&&e.detectedType!=="repo",placeholder:"Paste a GitHub repo or pull request URL"},null,10,Ak),[[n,{state:e.viewState,set:a=>{e.sourceUrl=a},value:e.sourceUrl,form:"anonymize",options:{debounce:{default:1e3,blur:0,click:0},updateOn:"default blur click"},change:()=>{e.urlSelected()}}]]),E(s("div",Ik," Please provide a valid GitHub URL. ",512),[[H,e.anonymize?.sourceUrl?.errors?.github]]),E(s("div",Vk," Not accessible. The organization may restrict access. ",512),[[H,e.anonymize?.sourceUrl?.errors?.access]]),E(s("div",Pk," Does not exist or is not accessible. ",512),[[H,e.anonymize?.sourceUrl?.errors?.missing]]),E(s("div",qk," Already anonymized. ",512),[[H,e.anonymize?.sourceUrl?.errors?.used]])]),E(s("div",Mk,[s("div",$k,[t[20]||(t[20]=s("label",{class:"paper-field-label",for:"branch"},"Branch",-1)),s("div",Fk,[E((l(),d("select",Lk,[(l(!0),d(x,null,re(e.branches,(a,u)=>(l(),d("option",{textContent:c(a?.name),value:a?.name},null,8,Uk))),256))])),[[n,{state:e.viewState,set:a=>{e.source.branch=a},value:e.source?.branch,form:"anonymize",options:{}}]]),s("div",zk,[s("button",{class:"btn",type:"button",title:"Refresh","data-toggle":"tooltip","data-placement":"bottom",onClick:t[0]||(t[0]=a=>e.getBranches(!0))},[...t[19]||(t[19]=[s("i",{class:"fas fa-sync","aria-hidden":"true"},null,-1)])])])])]),s("div",Hk,[t[21]||(t[21]=s("label",{class:"paper-field-label",for:"commit"},"Commit",-1)),E(s("input",{class:T(["form-control",{"is-invalid":e.anonymize?.commit?.invalid}]),id:"commit",disabled:e.options.update,name:"commit",pattern:"[a-fA-Z0-9]{6,}",required:""},null,10,Bk),[[n,{state:e.viewState,set:a=>{e.source.commit=a},value:e.source?.commit,form:"anonymize",options:{}}]]),E(s("div",Gk," The commit SHA is not valid. ",512),[[H,e.anonymize?.commit?.errors?.pattern||e.anonymize?.commit?.errors?.required]]),E(s("div",jk," This commit no longer exists in the repository. Click refresh to get the latest. ",512),[[H,e.anonymize?.commit?.errors?.exists]])])],512),[[H,e.detectedType==="repo"]]),E(s("div",Wk,[E(s("input",Kk,null,512),[[n,{state:e.viewState,set:a=>{e.options.update=a},value:e.options?.update,form:"anonymize",options:{}}]]),t[22]||(t[22]=s("label",{class:"form-check-label",for:"update"},"Auto-update from GitHub",-1)),t[23]||(t[23]=s("small",{class:"form-text text-muted"},"Follow the branch and pull the latest commit automatically, at most once an hour.",-1))],512),[[H,e.detectedType]])]),E(s("section",Yk,[t[35]||(t[35]=s("div",{class:"paper-section-eyebrow"},"Identity",-1)),E(s("div",xk,[t[27]||(t[27]=s("label",{class:"paper-field-label",for:"repoId"},"Anonymized repository ID",-1)),E(s("input",{type:"text",class:T(["form-control",{"is-invalid":e.anonymize?.repoId?.invalid}]),name:"repoId",id:"repoId",disabled:e.isUpdate},null,10,Jk),[[n,{state:e.viewState,set:a=>{e.repoId=a},value:e.repoId,form:"anonymize",options:{debounce:{default:1e3,blur:0,click:0},updateOn:"default blur click"}}]]),s("small",Qk,[t[25]||(t[25]=y("Your share link will be ",-1)),s("code",null,"anonymous.4open.science/r/"+c(e.repoId),1),t[26]||(t[26]=y(".",-1))]),E(s("div",Xk,"ID can only contain letters and numbers.",512),[[H,e.anonymize?.repoId?.errors?.format]]),E(s("div",{class:"invalid-feedback"},c(e.repoId)+" is already used.",513),[[H,e.anonymize?.repoId?.errors?.used]])],512),[[H,e.detectedType==="repo"]]),E(s("div",Zk,[t[30]||(t[30]=s("label",{class:"paper-field-label",for:"pullRequestId"},"Anonymized pull request ID",-1)),E(s("input",{type:"text",class:T(["form-control",{"is-invalid":e.anonymize?.pullRequestId?.invalid}]),name:"pullRequestId",id:"pullRequestId",disabled:e.isUpdate},null,10,e_),[[n,{state:e.viewState,set:a=>{e.pullRequestId=a},value:e.pullRequestId,form:"anonymize",options:{debounce:{default:1e3,blur:0,click:0},updateOn:"default blur click"}}]]),s("small",t_,[t[28]||(t[28]=y("Your share link will be ",-1)),s("code",null,"anonymous.4open.science/pr/"+c(e.pullRequestId),1),t[29]||(t[29]=y(".",-1))]),E(s("div",s_,"ID can only contain letters and numbers.",512),[[H,e.anonymize?.pullRequestId?.errors?.format]]),E(s("div",{class:"invalid-feedback"},c(e.pullRequestId)+" is already used.",513),[[H,e.anonymize?.pullRequestId?.errors?.used]])],512),[[H,e.detectedType==="pr"]]),E(s("div",n_,[t[33]||(t[33]=s("label",{class:"paper-field-label",for:"gistId"},"Anonymized gist ID",-1)),E(s("input",{type:"text",class:T(["form-control",{"is-invalid":e.anonymize?.gistId?.invalid}]),name:"gistId",id:"gistId",disabled:e.isUpdate},null,10,o_),[[n,{state:e.viewState,set:a=>{e.gistId=a},value:e.gistId,form:"anonymize",options:{debounce:{default:1e3,blur:0,click:0},updateOn:"default blur click"}}]]),s("small",r_,[t[31]||(t[31]=y("Your share link will be ",-1)),s("code",null,"anonymous.4open.science/gist/"+c(e.gistId),1),t[32]||(t[32]=y(".",-1))]),E(s("div",i_,"ID can only contain letters and numbers.",512),[[H,e.anonymize?.gistId?.errors?.format]]),E(s("div",{class:"invalid-feedback"},c(e.gistId)+" is already used.",513),[[H,e.anonymize?.gistId?.errors?.used]])],512),[[H,e.detectedType==="gist"]]),s("div",a_,[t[34]||(t[34]=s("label",{class:"paper-field-label",for:"conference"},[y("Conference "),s("span",{class:"paper-optional"},"(optional)")],-1)),E(s("input",{class:T(["form-control",{"is-invalid":e.anonymize?.conference?.invalid}]),id:"conference",name:"conference"},null,2),[[n,{state:e.viewState,set:a=>{e.conference=a},value:e.conference,form:"anonymize",options:{debounce:{default:800,blur:0},updateOn:"default blur"}}]]),E(s("small",l_,[s("a",{target:"_blank",href:e.safeUrl(e.conference_data?.url)},c(e.conference_data?.name),9,d_),y(" expires "+c(e.fmt?.date(e.conference_data?.endDate))+". ",1)],512),[[H,e.conference_data]]),E(s("div",u_,"The conference is not activated.",512),[[H,e.anonymize?.conference?.errors?.activated]]),E(s("small",c_,"Link to a conference to apply its shared defaults.",512),[[H,!e.conference_data]])])],512),[[H,e.detectedType]]),E(s("section",p_,[t[43]||(t[43]=s("div",{class:"paper-section-eyebrow"},"Anonymization",-1)),s("div",f_,[t[42]||(t[42]=s("label",{class:"paper-field-label",for:"terms"},"Terms to redact",-1)),E(s("textarea",{class:T(["form-control",{"is-invalid":e.anonymize?.terms?.invalid}]),id:"terms",name:"terms",rows:"4"},null,2),[[n,{state:e.viewState,set:a=>{e.terms=a},value:e.terms,form:"anonymize",options:{debounce:250}}]]),s("small",m_,[t[36]||(t[36]=y("One term per line (regex allowed). Replaced by ",-1)),s("code",null,c(e.site_options?.ANONYMIZATION_MASK)+"-[N]",1),t[37]||(t[37]=y(", or use ",-1)),t[38]||(t[38]=s("code",null,"term=>replacement",-1)),t[39]||(t[39]=y(" to pick your own (e.g. ",-1)),t[40]||(t[40]=s("code",null,"Anonymous=>ABC",-1)),t[41]||(t[41]=y(").",-1))]),E(s("div",h_,"Regex characters detected. Escape them if unintentional.",512),[[H,e.termsRegexWarning]]),E(s("div",v_,"Terms are in an invalid format.",512),[[H,e.anonymize?.terms?.errors?.format]])])],512),[[H,e.detectedType]]),E(s("section",y_,[t[62]||(t[62]=s("div",{class:"paper-section-eyebrow"},"Display",-1)),E(s("div",null,[s("div",g_,[E(s("input",b_,null,512),[[n,{state:e.viewState,set:a=>{e.options.link=a},value:e.options?.link,form:"anonymize",options:{}}]]),t[44]||(t[44]=s("label",{class:"form-check-label",for:"link"},"Keep links",-1))]),s("div",w_,[E(s("input",k_,null,512),[[n,{state:e.viewState,set:a=>{e.options.image=a},value:e.options?.image,form:"anonymize",options:{}}]]),t[45]||(t[45]=s("label",{class:"form-check-label",for:"image"},"Display images",-1))]),s("div",__,[E(s("input",E_,null,512),[[n,{state:e.viewState,set:a=>{e.options.pdf=a},value:e.options?.pdf,form:"anonymize",options:{}}]]),t[46]||(t[46]=s("label",{class:"form-check-label",for:"pdf"},"Display PDFs",-1))]),s("div",C_,[E(s("input",N_,null,512),[[n,{state:e.viewState,set:a=>{e.options.notebook=a},value:e.options?.notebook,form:"anonymize",options:{}}]]),t[47]||(t[47]=s("label",{class:"form-check-label",for:"notebook"},"Display Notebooks",-1))]),s("div",S_,[E(s("input",{class:"form-check-input",type:"checkbox",id:"page",name:"page",disabled:!e.details?.hasPage||e.details?.pageSource&&e.details?.pageSource?.branch!==e.source?.branch},null,8,D_),[[n,{state:e.viewState,set:a=>{e.options.page=a},value:e.options?.page,form:"anonymize",options:{}}]]),t[48]||(t[48]=s("label",{class:"form-check-label",for:"page"},"GitHub Pages",-1)),E(s("small",{class:"form-text text-muted d-block"},c(e.fmt?.translate("WARNINGS.page_not_enabled_on_repo")),513),[[H,!e.details?.hasPage]]),E(s("small",{class:"form-text text-muted d-block"},c(e.fmt?.translate("WARNINGS.page_branch_mismatch",{pageBranch:e.details?.pageSource?.branch,selectedBranch:e.source?.branch})),513),[[H,e.details?.hasPage&&e.details?.pageSource&&e.details?.pageSource?.branch!==e.source?.branch]])])],512),[[H,e.detectedType==="repo"]]),E(s("div",null,[s("div",R_,[E(s("input",T_,null,512),[[n,{state:e.viewState,set:a=>{e.options.title=a},value:e.options?.title,form:"anonymize",options:{}}]]),t[49]||(t[49]=s("label",{class:"form-check-label",for:"title-gist"},"Gist description",-1))]),s("div",O_,[E(s("input",A_,null,512),[[n,{state:e.viewState,set:a=>{e.options.content=a},value:e.options?.content,form:"anonymize",options:{}}]]),t[50]||(t[50]=s("label",{class:"form-check-label",for:"content-gist"},"File contents",-1))]),s("div",I_,[E(s("input",V_,null,512),[[n,{state:e.viewState,set:a=>{e.options.comments=a},value:e.options?.comments,form:"anonymize",options:{}}]]),t[51]||(t[51]=s("label",{class:"form-check-label",for:"comments-gist"},"Comments",-1))]),s("div",P_,[E(s("input",q_,null,512),[[n,{state:e.viewState,set:a=>{e.options.username=a},value:e.options?.username,form:"anonymize",options:{}}]]),t[52]||(t[52]=s("label",{class:"form-check-label",for:"username-gist"},"Usernames",-1))]),s("div",M_,[E(s("input",$_,null,512),[[n,{state:e.viewState,set:a=>{e.options.date=a},value:e.options?.date,form:"anonymize",options:{}}]]),t[53]||(t[53]=s("label",{class:"form-check-label",for:"date-gist"},"Dates",-1))]),s("div",F_,[E(s("input",L_,null,512),[[n,{state:e.viewState,set:a=>{e.options.origin=a},value:e.options?.origin,form:"anonymize",options:{}}]]),t[54]||(t[54]=s("label",{class:"form-check-label",for:"origin-gist"},"Source gist ID",-1))])],512),[[H,e.detectedType==="gist"]]),E(s("div",null,[s("div",U_,[E(s("input",z_,null,512),[[n,{state:e.viewState,set:a=>{e.options.title=a},value:e.options?.title,form:"anonymize",options:{}}]]),t[55]||(t[55]=s("label",{class:"form-check-label",for:"title"},"PR title",-1))]),s("div",H_,[E(s("input",B_,null,512),[[n,{state:e.viewState,set:a=>{e.options.body=a},value:e.options?.body,form:"anonymize",options:{}}]]),t[56]||(t[56]=s("label",{class:"form-check-label",for:"body"},"PR body",-1))]),s("div",G_,[E(s("input",j_,null,512),[[n,{state:e.viewState,set:a=>{e.options.diff=a},value:e.options?.diff,form:"anonymize",options:{}}]]),t[57]||(t[57]=s("label",{class:"form-check-label",for:"diff"},"Diff",-1))]),s("div",W_,[E(s("input",K_,null,512),[[n,{state:e.viewState,set:a=>{e.options.comments=a},value:e.options?.comments,form:"anonymize",options:{}}]]),t[58]||(t[58]=s("label",{class:"form-check-label",for:"comments"},"Comments",-1))]),s("div",Y_,[E(s("input",x_,null,512),[[n,{state:e.viewState,set:a=>{e.options.username=a},value:e.options?.username,form:"anonymize",options:{}}]]),t[59]||(t[59]=s("label",{class:"form-check-label",for:"username"},"Usernames",-1))]),s("div",J_,[E(s("input",Q_,null,512),[[n,{state:e.viewState,set:a=>{e.options.date=a},value:e.options?.date,form:"anonymize",options:{}}]]),t[60]||(t[60]=s("label",{class:"form-check-label",for:"date"},"Dates",-1))]),s("div",X_,[E(s("input",Z_,null,512),[[n,{state:e.viewState,set:a=>{e.options.origin=a},value:e.options?.origin,form:"anonymize",options:{}}]]),t[61]||(t[61]=s("label",{class:"form-check-label",for:"origin"},"Project name",-1))])],512),[[H,e.detectedType==="pr"]])],512),[[H,e.detectedType]]),E(s("section",e0,[t[66]||(t[66]=s("div",{class:"paper-section-eyebrow"},"Expiration",-1)),s("div",t0,[s("div",s0,[t[64]||(t[64]=s("label",{class:"paper-field-label",for:"expiration"},"Strategy",-1)),E((l(),d("select",n0,[...t[63]||(t[63]=[s("option",{value:"redirect"},"Redirect to GitHub when expired",-1),s("option",{value:"remove",selected:""},"Remove when expired",-1)])])),[[n,{state:e.viewState,set:a=>{e.options.expirationMode=a},value:e.options?.expirationMode,form:"anonymize",options:{}}]])]),s("div",o0,[t[65]||(t[65]=s("label",{class:"paper-field-label",for:"expirationDate"},"Expiration date",-1)),E(s("input",{class:T(["form-control",{"is-invalid":e.anonymize?.expirationDate?.invalid}]),type:"date",name:"expirationDate",id:"expirationDate",required:"",min:e.minExpirationDate,max:e.maxExpirationDate},null,10,r0),[[n,{state:e.viewState,set:a=>{e.options.expirationDate=a},value:e.options?.expirationDate,form:"anonymize",options:{}}]]),E(s("div",i0,"Pick a date in the future.",512),[[H,e.anonymize?.expirationDate?.errors?.min]]),E(s("div",{class:"invalid-feedback"},"Pick a date on or before "+c(e.fmt?.date(e.maxExpirationDate))+".",513),[[H,e.anonymize?.expirationDate?.errors?.max]]),E(s("div",a0,"Enter a valid expiration date.",512),[[H,e.anonymize?.expirationDate?.errors?.required||e.anonymize?.expirationDate?.errors?.date]])])]),E(s("small",{class:"form-text text-muted"},"After "+c(e.fmt?.date(e.options?.expirationDate))+", the content will be removed.",513),[[H,e.options?.expirationMode=="remove"&&e.options?.expirationDate]]),E(s("small",{class:"form-text text-muted"},"After "+c(e.fmt?.date(e.options?.expirationDate))+", visitors will be redirected to GitHub.",513),[[H,e.options?.expirationMode=="redirect"&&e.options?.expirationDate]])],512),[[H,e.detectedType]]),E(s("section",l0,[t[70]||(t[70]=s("div",{class:"paper-section-eyebrow"},"Co-authors",-1)),t[71]||(t[71]=s("p",{class:"form-text text-muted",style:{"margin-bottom":"8px"}}," Co-authors can view and edit these settings. They cannot delete the anonymization or manage co-authors. ",-1)),E(s("div",d0,[t[67]||(t[67]=s("label",{class:"paper-field-label",for:"coauthorSearch"},"Add a GitHub user",-1)),s("div",u0,[E(s("input",c0,null,512),[[n,{state:e.viewState,set:a=>{e.coauthorSearch=a},value:e.coauthorSearch,form:"anonymize",options:{debounce:300},change:()=>{e.searchCoauthors()}}]]),E(s("div",p0,[(l(!0),d(x,null,re(e.coauthorResults,(a,u)=>(l(),d("a",{href:"#",class:"dropdown-item d-flex align-items-center",onClick:ge(p=>e.addCoauthor(a,p),["prevent"])},[s("img",{alt:"",style:{width:"22px",height:"22px","border-radius":"50%","margin-right":"8px"},src:e.safeUrl(a?.photo)},null,8,m0),s("span",{textContent:c(a?.username)},null,8,h0)],8,f0))),256))],512),[[H,e.coauthorResults?.length>0]])]),E(s("small",{class:"form-text text-muted",textContent:c(e.coauthorError)},null,8,v0),[[H,e.coauthorError]])],512),[[H,e.role==="owner"||e.role==="admin"]]),s("div",y0,[(l(!0),d(x,null,re(e.coauthors,(a,u)=>(l(),d("div",g0,[a?.photo?(l(),d("img",{key:0,alt:"",style:{width:"24px",height:"24px","border-radius":"50%"},src:e.safeUrl(a?.photo)},null,8,b0)):m("v-if",!0),s("a",{target:"_blank",textContent:c(a?.username),href:e.safeUrl("https://github.com/"+a?.username)},null,8,w0),t[69]||(t[69]=s("span",{class:"type-badge type-coauthor"},"Co-author",-1)),E(s("button",{type:"button",class:"btn btn-sm",style:{"margin-left":"auto"},title:"Remove co-author",onClick:p=>e.removeCoauthor(a)},[...t[68]||(t[68]=[s("i",{class:"fas fa-times"},null,-1)])],8,k0),[[H,e.role==="owner"||e.role==="admin"]])]))),256)),E(s("div",_0," No co-authors yet. ",512),[[H,!e.coauthors||e.coauthors?.length===0]])])],512),[[H,e.isUpdate&&e.detectedType==="repo"]]),e.error?(l(),d("div",{key:0,class:"alert alert-danger",role:"alert",textContent:c(e.error)},null,8,E0)):m("v-if",!0),E(s("div",C0,[e.detectedType==="repo"&&!e.isUpdate?(l(),d("button",{key:0,type:"submit",class:"btn btn-ink",onClick:t[1]||(t[1]=ge(a=>e.submitForm(a,()=>{e.anonymizeRepo(a)}),["prevent"]))},[...t[72]||(t[72]=[s("i",{class:"fas fa-user-secret mr-1"},null,-1),y(" Anonymize Repository ",-1)])])):m("v-if",!0),e.detectedType==="repo"&&e.isUpdate?(l(),d("button",{key:1,type:"submit",class:"btn btn-ink",onClick:t[2]||(t[2]=ge(a=>e.submitForm(a,()=>{e.anonymizeRepo(a)}),["prevent"]))},[...t[73]||(t[73]=[s("i",{class:"fas fa-save mr-1"},null,-1),y(" Update Repository ",-1)])])):m("v-if",!0),e.detectedType==="pr"&&!e.isUpdate?(l(),d("button",{key:2,type:"submit",class:"btn btn-ink",onClick:t[3]||(t[3]=ge(a=>e.submitForm(a,()=>{e.anonymizePullRequest(a)}),["prevent"]))},[...t[74]||(t[74]=[s("i",{class:"fas fa-user-secret mr-1"},null,-1),y(" Anonymize Pull Request ",-1)])])):m("v-if",!0),e.detectedType==="pr"&&e.isUpdate?(l(),d("button",{key:3,type:"submit",class:"btn btn-ink",onClick:t[4]||(t[4]=ge(a=>e.submitForm(a,()=>{e.anonymizePullRequest(a)}),["prevent"]))},[...t[75]||(t[75]=[s("i",{class:"fas fa-save mr-1"},null,-1),y(" Update Pull Request ",-1)])])):m("v-if",!0),e.detectedType==="gist"&&!e.isUpdate?(l(),d("button",{key:4,type:"submit",class:"btn btn-ink",onClick:t[5]||(t[5]=ge(a=>e.submitForm(a,()=>{e.anonymizeGist(a)}),["prevent"]))},[...t[76]||(t[76]=[s("i",{class:"fas fa-user-secret mr-1"},null,-1),y(" Anonymize Gist ",-1)])])):m("v-if",!0),e.detectedType==="gist"&&e.isUpdate?(l(),d("button",{key:5,type:"submit",class:"btn btn-ink",onClick:t[6]||(t[6]=ge(a=>e.submitForm(a,()=>{e.anonymizeGist(a)}),["prevent"]))},[...t[77]||(t[77]=[s("i",{class:"fas fa-save mr-1"},null,-1),y(" Update Gist ",-1)])])):m("v-if",!0)],512),[[H,e.detectedType]])])),[[i,e.viewState]])]),m(" Preview column (right) "),e.detectedType==="repo"&&e.html_readme?(l(),d("div",N0,[t[78]||(t[78]=s("div",{class:"anonymize-preview-head"},[s("span",{class:"paper-eyebrow"},"Live preview"),s("span",{class:"anonymize-preview-sub"},"README with redactions applied")],-1)),s("div",{class:"anonymize-preview-body markdown-body body",innerHTML:e.sanitize(e.html_readme)},null,8,S0)])):m("v-if",!0),e.detectedType==="gist"&&e.details?(l(),d("div",D0,[t[82]||(t[82]=s("div",{class:"anonymize-preview-head"},[s("span",{class:"paper-eyebrow"},"Live preview"),s("span",{class:"anonymize-preview-sub"},"Gist with redactions applied")],-1)),s("div",R0,[s("div",T0,[s("h2",O0,[e.options?.title?(l(),d("span",A0,c(e.anonymizeGistContent(e.details?.gist?.description)||"Untitled gist"),1)):m("v-if",!0),s("span",{class:T(["badge",{"badge-success":e.details?.gist?.isPublic,"badge-secondary":!e.details?.gist?.isPublic}])},c(e.details?.gist?.isPublic?"public":"secret"),3)]),e.options?.date?(l(),d("small",{key:0,textContent:c(e.fmt?.date(e.details?.gist?.updatedDate))},null,8,I0)):m("v-if",!0)]),e.options?.origin?(l(),d("small",V0,"Gist ID: "+c(e.details?.source?.gistId),1)):m("v-if",!0),e.options?.username&&e.details?.gist?.ownerLogin?(l(),d("small",P0,"By @"+c(e.anonymizeGistContent(e.details?.gist?.ownerLogin)),1)):m("v-if",!0),e.options?.content&&e.previewGistFiles?.length?(l(),d("div",q0,[s("ul",M0,[(l(!0),d(x,null,re(e.previewGistFiles,(a,u)=>(l(),d("li",$0,[s("div",F0,[s("strong",{textContent:c(a?.filename)},null,8,L0),a?.language?(l(),d("span",U0,c(a?.language),1)):m("v-if",!0)]),Re(o,{file:a,terms:e.terms,options:e.options},null,8,["file","terms","options"])]))),256))])])):m("v-if",!0),e.options?.comments&&e.details?.gist?.comments&&e.details?.gist?.comments?.length?(l(),d("div",z0,[t[81]||(t[81]=s("h3",{class:"paper-section-eyebrow mt-3"},"Comments",-1)),s("ul",H0,[(l(!0),d(x,null,re(e.details?.gist?.comments,(a,u)=>(l(),d("li",B0,[s("div",G0,[e.options?.username?(l(),d("span",j0,[t[79]||(t[79]=s("i",{class:"far fa-user"},null,-1)),t[80]||(t[80]=y(" @",-1)),s("span",{textContent:c(e.anonymizeGistContent(a?.author))},null,8,W0)])):m("v-if",!0),e.options?.date?(l(),d("span",{key:1,class:"pr-comment-date",textContent:c(e.fmt?.date(a?.updatedDate))},null,8,K0)):m("v-if",!0)]),e.options?.body?(l(),d("div",Y0,[Re(r,{content:e.anonymizeGistContent(a?.body),options:e.options,terms:e.terms},null,8,["content","options","terms"])])):m("v-if",!0)]))),256))])])):m("v-if",!0)])])):m("v-if",!0),e.detectedType==="pr"&&e.details?(l(),d("div",x0,[t[87]||(t[87]=s("div",{class:"anonymize-preview-head"},[s("span",{class:"paper-eyebrow"},"Live preview"),s("span",{class:"anonymize-preview-sub"},"Pull request with redactions applied")],-1)),s("div",J0,[s("div",Q0,[s("h2",X0,[e.options?.title?(l(),d("span",Z0,c(e.anonymizePrContent(e.details?.pullRequest?.title)),1)):m("v-if",!0),s("span",{class:T(["badge",{"badge-success":e.details?.pullRequest?.merged,"badge-warning":e.details?.pullRequest?.state=="open","badge-danger":e.details?.pullRequest?.state=="closed"&&!e.details?.pullRequest?.merged}])},c(e.fmt?.title(e.details?.pullRequest?.merged?"merged":e.details?.pullRequest?.state)),3)]),e.options?.date?(l(),d("small",{key:0,textContent:c(e.fmt?.date(e.details?.pullRequest?.updatedDate))},null,8,eE)):m("v-if",!0)]),e.options?.origin?(l(),d("small",tE,"Pull Request on "+c(e.details?.pullRequest?.baseRepositoryFullName),1)):m("v-if",!0),e.options?.body?(l(),d("div",sE,[Re(r,{content:e.anonymizePrContent(e.details?.pullRequest?.body),options:e.options,terms:e.terms},null,8,["content","options","terms"])])):m("v-if",!0),e.options?.diff||e.options?.comments?(l(),d("nav",nE,[e.options?.diff?(l(),d("button",{key:0,class:T(["paper-tab",{active:e.prTabState?.active=="diff"}]),type:"button",role:"tab",onClick:t[7]||(t[7]=a=>e.prTabState.active="diff")},[...t[83]||(t[83]=[s("i",{class:"fas fa-code"},null,-1),y(" Diff ",-1)])],2)):m("v-if",!0),e.options?.comments?(l(),d("button",{key:1,class:T(["paper-tab",{active:e.prTabState?.active=="comments"}]),type:"button",role:"tab",onClick:t[8]||(t[8]=a=>e.prTabState.active="comments")},[t[84]||(t[84]=s("i",{class:"far fa-comment-dots"},null,-1)),s("span",{textContent:c(e.fmt.plural(e.details?.pullRequest?.comments?.length,{0:"No comments",one:"1 comment",other:"{} comments"}))},null,8,oE)],2)):m("v-if",!0)])):m("v-if",!0),s("div",rE,[e.options?.diff&&e.prTabState?.active=="diff"?(l(),d("div",iE,[s("div",{class:"pr-diff",innerHTML:e.sanitize(e.fmt?.diff(e.anonymizePrContent(e.details?.pullRequest?.diff)))},null,8,aE)])):m("v-if",!0),e.options?.comments&&e.prTabState?.active=="comments"?(l(),d("div",lE,[s("ul",dE,[(l(!0),d(x,null,re(e.details?.pullRequest?.comments,(a,u)=>(l(),d("li",uE,[s("div",cE,[e.options?.username?(l(),d("span",pE,[t[85]||(t[85]=s("i",{class:"far fa-user"},null,-1)),t[86]||(t[86]=y(" @",-1)),s("span",{textContent:c(e.anonymizePrContent(a?.author))},null,8,fE)])):m("v-if",!0),e.options?.date?(l(),d("span",{key:1,class:"pr-comment-date",textContent:c(e.fmt?.date(a?.updatedDate))},null,8,mE)):m("v-if",!0)]),e.options?.body?(l(),d("div",hE,[Re(r,{content:e.anonymizePrContent(a?.body),options:e.options,terms:e.terms},null,8,["content","options","terms"])])):m("v-if",!0)]))),256))])])):m("v-if",!0)])])])):m("v-if",!0)])],512),[[H,e.sourceUrl]])])}var vE={class:"container-fluid h-100 anonymize-page"},yE={class:"row h-100 flex-column flex-md-row"},gE={class:"col-md sidePanel shadow overflow-auto anonymize-form-col"},bE={class:"form-group"},wE={class:"form-group"},kE={class:"form-check"},_E={class:"form-check-input",type:"checkbox",id:"update",name:"update"},EE={class:"form-group"},CE={class:"form-text text-muted"},NE=["href"],SE={class:"invalid-feedback"},DE={class:"form-text text-muted"},RE={class:"form-group"},TE={id:"idHelp",class:"form-text text-muted"},OE={class:"invalid-feedback"},AE={class:"form-group"},IE={class:"invalid-feedback"},VE={class:"form-group"},PE={class:"form-control",id:"expiration",name:"expiration"},qE={class:"form-group",id:"expiration-date-form"},ME={class:"form-control",type:"date",name:"expirationDate",id:"expirationDate"},$E={class:"accordion mb-3",id:"options"},FE={class:"card"},LE={id:"collapseOne",class:"collapse show","aria-labelledby":"headingOne","data-parent":"#options"},UE={class:"card-body"},zE={class:"form-group mb-0"},HE={class:"form-check"},BE={class:"form-check-input",type:"checkbox",id:"link",name:"link"},GE={class:"form-check"},jE={class:"form-check-input",type:"checkbox",id:"image",name:"image"},WE={class:"form-check"},KE={class:"form-check-input",type:"checkbox",id:"date",name:"date"},YE={class:"form-check"},xE={class:"form-check-input",type:"checkbox",id:"username",name:"username"},JE={class:"form-check"},QE={class:"form-check-input",type:"checkbox",id:"comments",name:"comments"},XE={class:"form-check"},ZE={class:"form-check-input",type:"checkbox",id:"diff",name:"diff"},eC={class:"form-check"},tC={class:"form-check-input",type:"checkbox",id:"origin",name:"origin"},sC={class:"form-check"},nC={class:"form-check-input",type:"checkbox",id:"title",name:"title"},oC={class:"form-check"},rC={class:"form-check-input",type:"checkbox",id:"body",name:"body"},iC=["textContent"],aC={class:"anonymize-submit-bar"},lC={key:0,class:"col-md-8 p-2 overflow-auto anonymize-preview-col"},dC={class:"d-flex w-100 justify-content-between align-items-center flex-wrap"},uC={class:"pr-title mb-1"},cC={key:0},pC=["textContent"],fC={key:0},mC={key:1,class:"pr-body shadow-sm p-3 mb-4 rounded",style:{background:"var(--sidebar-bg-color)"}},hC={class:"nav nav-tabs",id:"myTab",role:"tablist"},vC={key:0,class:"nav-item",role:"presentation"},yC={key:1,class:"nav-item",role:"presentation"},gC=["textContent"],bC={class:"tab-content",id:"pills-tabContent"},wC={class:"tab-pane show active",id:"pills-diff",role:"tabpanel","aria-labelledby":"pills-diff-tab"},kC={key:0,class:"pr-diff shadow-sm p-3 mb-4 rounded",style:{background:"var(--sidebar-bg-color)"}},_C={style:{"overflow-x":"auto"}},EC=["innerHTML"],CC={key:0,class:"pr-comments list-group"},NC={class:"pr-comment list-group-item"},SC={class:"d-flex w-100 justify-content-between flex-wrap"},DC={key:0,class:"mb-1"},RC=["textContent"],TC={class:"mb-1"};function Wa(e,t){let o=Qe("markdown"),r=ye("field"),n=ye("form");return l(),d("div",vE,[s("div",yE,[s("div",gE,[s("div",{class:T(["p-0 py-2 m-auto",{card:!e.pullRequestUrl,container:e.pullRequestUrl}])},[E((l(),d("form",{class:T(["form needs-validation",{"card-body":!e.pullRequestUrl}]),name:"anonymizeForm",novalidate:""},[t[30]||(t[30]=_e('
Anonymize \xA0/\xA0 Pull request

Anonymize a pull request

Fill in the details \u2014 it only takes a minute.

Source
',4)),m(" pullRequestUrl "),s("div",bE,[t[2]||(t[2]=s("label",{for:"pullRequestUrl"},"URL of your pull request",-1)),E(s("input",{type:"text",class:T(["form-control",{"is-invalid":e.anonymize?.pullRequestUrl?.invalid}]),name:"pullRequestUrl",id:"pullRequestUrl",placeholder:"https://github.com/owner/repo/pull/123"},null,2),[[r,{state:e.viewState,set:i=>{e.pullRequestUrl=i},value:e.pullRequestUrl,form:"anonymizeForm",options:{debounce:{default:1e3,blur:0,click:0},updateOn:"default blur click"},change:()=>{e.pullRequestSelected()}}]]),E(s("div",{class:"invalid-feedback"},c(e.pullRequestUrl)+" is not accessible. Some organizations are restricting the access to the repositories. ",513),[[H,e.anonymize?.pullRequestUrl?.errors?.access]]),E(s("div",{class:"invalid-feedback"},c(e.pullRequestUrl)+" does not exist or is not accessible ",513),[[H,e.anonymize?.pullRequestUrl?.errors?.missing]]),E(s("div",{class:"invalid-feedback"},c(e.pullRequestUrl)+" is already anonymized ",513),[[H,e.anonymize?.pullRequestUrl?.errors?.used]])]),E(s("div",null,[s("div",wE,[s("div",kE,[E(s("input",_E,null,512),[[r,{state:e.viewState,set:i=>{e.options.update=i},value:e.options?.update,form:"anonymizeForm",options:{}}]]),t[3]||(t[3]=s("label",{class:"form-check-label",for:"update"},"Auto update",-1)),t[4]||(t[4]=s("small",{id:"updateHelp",class:"form-text text-muted"},"Automatically update the anonymized pull request with the latest updates. The pull request is updated once per day maximum.",-1))])]),t[26]||(t[26]=s("div",{class:"paper-section-eyebrow anonymize-section-title"},[s("i",{class:"fas fa-chalkboard-teacher"}),y(" Conference ID ")],-1)),m(" Conference "),s("div",EE,[t[5]||(t[5]=s("label",{for:"conference"},[y("Conference ID "),s("span",{class:"text-muted"},"(Optional)")],-1)),E(s("input",{class:T(["form-control",{"is-invalid":e.anonymize?.conference?.invalid}]),id:"conference",name:"conference"},null,2),[[r,{state:e.viewState,set:i=>{e.conference=i},value:e.conference,form:"anonymizeForm",options:{debounce:{default:800,blur:0},updateOn:"default blur"}}]]),E(s("small",CE,[s("a",{target:"_target",href:e.safeUrl(e.conference_data?.url)},c(e.conference_data?.name),9,NE),y(" will expire on "+c(e.fmt?.date(e.conference_data?.endDate))+".",1)],512),[[H,e.conference_data]]),E(s("div",SE," The conference is not activated. ",512),[[H,e.anonymize?.conference?.errors?.activated]]),E(s("small",DE," Use the Conference ID that your conference provided you. This will update automatically the anonymization options based on the conference preferences. ",512),[[H,!e.conference_data]])]),t[27]||(t[27]=s("div",{class:"paper-section-eyebrow anonymize-section-title"},[s("i",{class:"fas fa-shield-alt"}),y(" Anonymization Options ")],-1)),m(" Pull Request ID "),s("div",RE,[t[6]||(t[6]=s("label",{for:"pullRequestId"},"Anonymized pull request id",-1)),E(s("input",{type:"text",class:T(["form-control",{"is-invalid":e.anonymize?.pullRequestId?.invalid}]),name:"pullRequestId",id:"pullRequestId"},null,2),[[r,{state:e.viewState,set:i=>{e.pullRequestId=i},value:e.pullRequestId,form:"anonymizeForm",options:{debounce:{default:1e3,blur:0,click:0},updateOn:"default blur click"}}]]),s("small",TE,"Id used in the url: https://anonymous.4open.science/r/"+c(e.pullRequestId),1),E(s("div",OE," Repository id can only contain letters and numbers ",512),[[H,e.anonymize?.pullRequestId?.errors?.format]]),E(s("div",{class:"invalid-feedback"},c(e.pullRequestId)+" is already used ",513),[[H,e.anonymize?.pullRequestId?.errors?.used]])]),m(" Terms "),s("div",AE,[t[7]||(t[7]=s("label",{for:"terms"},"Terms to anonymize",-1)),E(s("textarea",{class:T(["form-control",{"is-invalid":e.anonymize?.terms?.invalid}]),id:"terms",name:"terms",rows:"3"},null,2),[[r,{state:e.viewState,set:i=>{e.terms=i},value:e.terms,form:"anonymizeForm",options:{debounce:250}}]]),t[8]||(t[8]=s("small",{id:"termsHelp",class:"form-text text-muted"},"One term per line. Each term will be replaced by XXX.",-1)),E(s("div",IE," Terms are in an invalid format ",512),[[H,e.anonymize?.terms?.errors?.format]])]),s("div",VE,[t[10]||(t[10]=s("label",{for:"expiration"},"Expiration strategy",-1)),E((l(),d("select",PE,[...t[9]||(t[9]=[s("option",{value:"never",selected:""},"Never expire",-1),s("option",{value:"redirect"}," Redirect to GitHub when expired ",-1),s("option",{value:"remove"},"Remove when expired",-1)])])),[[r,{state:e.viewState,set:i=>{e.options.expirationMode=i},value:e.options?.expirationMode,form:"anonymizeForm",options:{}}]]),t[11]||(t[11]=s("small",{class:"form-text text-muted"},"Define the expiration strategy for the anonymized repository.",-1))]),E(s("div",qE,[t[12]||(t[12]=s("label",{for:"expirationDate"},"Expiration date of the anonymized repository",-1)),E(s("input",ME,null,512),[[r,{state:e.viewState,set:i=>{e.options.expirationDate=i},value:e.options?.expirationDate,form:"anonymizeForm",options:{}}]]),E(s("small",{class:"form-text text-muted"},"After "+c(e.fmt?.date(e.options?.expirationDate))+", the repository will be removed and the visitor will not be able to see the content of the repository.",513),[[H,e.options?.expirationMode=="remove"]]),E(s("small",{class:"form-text text-muted"},"After "+c(e.fmt?.date(e.options?.expirationDate))+", the visitors of the anonymized repository will be redirected to "+c(e.pullRequestUrl)+".",513),[[H,e.options?.expirationMode=="redirect"]])],512),[[H,e.options?.expirationMode!="never"]]),s("div",$E,[s("div",FE,[t[25]||(t[25]=s("div",{class:"card-header",id:"headingOne"},[s("h2",{class:"mb-0"},[s("button",{class:"btn btn-block text-left",type:"button","data-toggle":"collapse","data-target":"#collapseOne","aria-expanded":"true","aria-controls":"collapseOne"},[s("i",{class:"fas fa-cog mr-1"}),y(" Advanced options ")])])],-1)),s("div",LE,[s("div",UE,[s("div",zE,[s("div",HE,[E(s("input",BE,null,512),[[r,{state:e.viewState,set:i=>{e.options.link=i},value:e.options?.link,form:"anonymizeForm",options:{}}]]),t[13]||(t[13]=s("label",{class:"form-check-label",for:"link"},"Keep links",-1)),t[14]||(t[14]=s("small",{class:"form-text text-muted"},"Keep or remove all the links.",-1))]),s("div",GE,[E(s("input",jE,null,512),[[r,{state:e.viewState,set:i=>{e.options.image=i},value:e.options?.image,form:"anonymizeForm",options:{}}]]),t[15]||(t[15]=s("label",{class:"form-check-label",for:"image"},"Display images",-1)),t[16]||(t[16]=s("small",{class:"form-text text-muted"},"Images are not anonymized",-1))]),s("div",WE,[E(s("input",KE,null,512),[[r,{state:e.viewState,set:i=>{e.options.date=i},value:e.options?.date,form:"anonymizeForm",options:{}}]]),t[17]||(t[17]=s("label",{class:"form-check-label",for:"date"},"Display dates",-1)),t[18]||(t[18]=s("small",{class:"form-text text-muted"},"Display the date of the Pull Request and the date of the comments.",-1))]),s("div",YE,[E(s("input",xE,null,512),[[r,{state:e.viewState,set:i=>{e.options.username=i},value:e.options?.username,form:"anonymizeForm",options:{}}]]),t[19]||(t[19]=s("label",{class:"form-check-label",for:"username"},"Display username",-1))]),s("div",JE,[E(s("input",QE,null,512),[[r,{state:e.viewState,set:i=>{e.options.comments=i},value:e.options?.comments,form:"anonymizeForm",options:{}}]]),t[20]||(t[20]=s("label",{class:"form-check-label",for:"comments"},"Display comments",-1))]),s("div",XE,[E(s("input",ZE,null,512),[[r,{state:e.viewState,set:i=>{e.options.diff=i},value:e.options?.diff,form:"anonymizeForm",options:{}}]]),t[21]||(t[21]=s("label",{class:"form-check-label",for:"diff"},"Display diff",-1))]),s("div",eC,[E(s("input",tC,null,512),[[r,{state:e.viewState,set:i=>{e.options.origin=i},value:e.options?.origin,form:"anonymizeForm",options:{}}]]),t[22]||(t[22]=s("label",{class:"form-check-label",for:"origin"},"Display the project name",-1))]),s("div",sC,[E(s("input",nC,null,512),[[r,{state:e.viewState,set:i=>{e.options.title=i},value:e.options?.title,form:"anonymizeForm",options:{}}]]),t[23]||(t[23]=s("label",{class:"form-check-label",for:"title"},"Display the PR title",-1))]),s("div",oC,[E(s("input",rC,null,512),[[r,{state:e.viewState,set:i=>{e.options.body=i},value:e.options?.body,form:"anonymizeForm",options:{}}]]),t[24]||(t[24]=s("label",{class:"form-check-label",for:"body"},"Display the PR body and comment bodies",-1))])])])])])])],512),[[H,e.pullRequestUrl]]),e.error?(l(),d("div",{key:0,class:"alert alert-danger",role:"alert",textContent:c(e.error)},null,8,iC)):m("v-if",!0),E(s("div",aC,[e.isUpdate?m("v-if",!0):(l(),d("button",{key:0,id:"submit",type:"submit",class:"btn btn-ink btn-block",onClick:t[0]||(t[0]=ge(i=>e.submitForm(i,()=>{e.anonymizePullRequest(i)}),["prevent"]))},[...t[28]||(t[28]=[s("i",{class:"fas fa-user-secret mr-1"},null,-1),y(" Anonymize ",-1)])])),e.isUpdate?(l(),d("button",{key:1,id:"submit",type:"submit",class:"btn btn-ink btn-block",onClick:t[1]||(t[1]=ge(i=>e.submitForm(i,()=>{e.updatePullRequest(i)}),["prevent"]))},[...t[29]||(t[29]=[s("i",{class:"fas fa-save mr-1"},null,-1),y(" Update ",-1)])])):m("v-if",!0)],512),[[H,e.pullRequestUrl]])],2)),[[n,e.viewState]])],2)]),e.details?(l(),d("div",lC,[s("div",dC,[s("h2",uC,[e.options?.title?(l(),d("span",cC,c(e.anonymize(e.details?.pullRequest?.title)),1)):m("v-if",!0),s("span",{class:T(["badge",{"badge-success":e.details?.pullRequest?.merged,"badge-warning":e.details?.pullRequest?.state=="open","badge-danger":e.details?.pullRequest?.state=="closed"&&!e.details?.pullRequest?.merged}])},c(e.fmt?.title(e.details?.pullRequest?.merged?"merged":e.details?.pullRequest?.state)),3)]),e.options?.date?(l(),d("small",{key:0,textContent:c(e.fmt?.date(e.details?.pullRequest?.updatedDate))},null,8,pC)):m("v-if",!0)]),e.options?.origin?(l(),d("small",fC,"Pull Request on "+c(e.details?.pullRequest?.baseRepositoryFullName),1)):m("v-if",!0),e.options?.body?(l(),d("div",mC,[Re(o,{content:e.anonymize(e.details?.pullRequest?.body),options:e.options,terms:e.terms},null,8,["content","options","terms"])])):m("v-if",!0),s("ul",hC,[e.options?.diff?(l(),d("li",vC,[...t[31]||(t[31]=[s("button",{class:"nav-link active",id:"pills-diff-tab","data-toggle":"pill","data-target":"#pills-diff",type:"button",role:"tab","aria-controls":"pills-diff","aria-selected":"true"}," Diff ",-1)])])):m("v-if",!0),e.options?.comments?(l(),d("li",yC,[s("button",{class:T(["nav-link",{active:!e.options?.diff}]),id:"pills-comments-tab","data-toggle":"pill","data-target":"#pills-comments",type:"button",role:"tab","aria-controls":"pills-comments","aria-selected":"false"},[s("span",{textContent:c(e.fmt.plural(e.details?.pullRequest?.comments?.length,{0:"No comment",one:"One Comment",other:"{} Comments"}))},null,8,gC)],2)])):m("v-if",!0)]),s("div",bC,[s("div",wC,[e.options?.diff?(l(),d("div",kC,[s("pre",_C,[s("code",{innerHTML:e.sanitize(e.fmt?.diff(e.anonymize(e.details?.pullRequest?.diff)))},null,8,EC)])])):m("v-if",!0)]),s("div",{class:T(["tab-pane",{"show active":!e.options?.diff}]),id:"pills-comments",role:"tabpanel","aria-labelledby":"pills-comments-tab"},[e.options?.comments?(l(),d("ul",CC,[(l(!0),d(x,null,re(e.details?.pullRequest?.comments,(i,a)=>(l(),d("li",NC,[s("div",SC,[e.options?.username?(l(),d("h5",DC," @"+c(e.anonymize(i?.author)),1)):m("v-if",!0),e.options?.date?(l(),d("small",{key:1,textContent:c(e.fmt?.date(i?.updatedDate))},null,8,RC)):m("v-if",!0)]),s("p",TC,[e.options?.body?(l(),gs(o,{key:0,class:"pr-comment-body",content:e.anonymize(i?.body),options:e.options,terms:e.terms},null,8,["content","options","terms"])):m("v-if",!0)])]))),256))])):m("v-if",!0)],2)])])):m("v-if",!0)])])}var OC={class:"container paper-page"},AC={class:"paper-settings-main claim-form"},IC={class:"form-group"},VC={class:"invalid-feedback"},PC={class:"form-group"};function Ka(e,t){let o=ye("field"),r=ye("form");return l(),d("div",OC,[t[6]||(t[6]=_e('
My work \xA0/\xA0 Claim

Claim an anonymization

Take ownership of an existing anonymized repository so it appears on your dashboard.

',3)),s("div",AC,[t[5]||(t[5]=s("p",{class:"paper-section-copy"},"Use this when an anonymization was created by a co-author or from another account. You must have access to the GitHub repository it was made from.",-1)),E((l(),d("form",{class:"form needs-validation",name:"claimForm",novalidate:"",onSubmit:t[0]||(t[0]=ge(n=>e.submitForm(n,()=>{e.claim()}),["prevent"]))},[s("div",IC,[t[1]||(t[1]=s("label",{class:"paper-field-label",for:"repoUrl"},"GitHub repository URL",-1)),E(s("input",{type:"text",class:T(["form-control",{"is-invalid":e.claimForm?.repoUrl?.invalid&&(e.claimForm?.repoUrl?.touched||e.claimForm?.submitted)}]),name:"repoUrl",id:"repoUrl",required:""},null,2),[[o,{state:e.viewState,set:n=>{e.repoUrl=n},value:e.repoUrl,form:"claimForm",options:{}}]]),E(s("div",VC," No anonymization matches this repository and ID. Check both values and that you can access the repository on GitHub. ",512),[[H,e.claimForm?.repoUrl?.errors?.not_found]])]),s("div",PC,[t[2]||(t[2]=s("label",{class:"paper-field-label",for:"repoId"},"Anonymized repository ID",-1)),E(s("input",{type:"text",class:T(["form-control",{"is-invalid":e.claimForm?.repoId?.invalid&&(e.claimForm?.repoId?.touched||e.claimForm?.submitted)}]),name:"repoId",id:"repoId",required:""},null,2),[[o,{state:e.viewState,set:n=>{e.repoId=n},value:e.repoId,form:"claimForm",options:{}}]]),t[3]||(t[3]=s("small",{id:"idHelp",class:"form-text text-muted"},[y("The ID is the last part of the anonymized URL: "),s("code",null,"anonymous.4open.science/r/"),y(".")],-1))]),t[4]||(t[4]=s("button",{id:"submit",type:"submit",class:"btn btn-ink"}," Claim anonymization ",-1))],32)),[[r,e.viewState]])])])}var qC={class:"container page paper-page"},MC={class:"paper-crumbs"},$C={class:"here"},FC={class:"d-flex align-items-end flex-wrap",style:{gap:"12px","justify-content":"space-between"}},LC=["textContent"],UC={key:0,class:"paper-page-lede"},zC=["textContent","href"],HC={class:"d-flex align-items-center flex-wrap",style:{gap:"10px"}},BC=["textContent"],GC=["href"],jC={class:"paper-meta-rule"},WC=["textContent"],KC=["textContent"],YC={key:0},xC={class:"search-wrap"},JC={type:"search",id:"search",class:"form-control","aria-label":"Search repositories",placeholder:"Search by ID or source repository\u2026",autocomplete:"off"},QC={class:"dashboard-filter-controls"},XC={class:"dropdown"},ZC={class:"btn dropdown-toggle",type:"button",id:"dropdownSort","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"},eN={class:"filter-btn-value"},tN={class:"dropdown-menu","aria-labelledby":"dropdownSort"},sN={class:"form-check dropdown-item"},nN={class:"form-check-input",type:"radio",name:"sort",id:"anonymizeDate",value:"-anonymizeDate"},oN={class:"form-check dropdown-item"},rN={class:"form-check-input",type:"radio",name:"sort",id:"sortID",value:"repoId"},iN={class:"form-check dropdown-item"},aN={class:"form-check-input",type:"radio",name:"sort",id:"sortStatus",value:"-status"},lN={class:"form-check dropdown-item"},dN={class:"form-check-input",type:"radio",name:"sort",id:"sortViews",value:"-pageView"},uN={class:"dropdown"},cN={class:"btn dropdown-toggle",type:"button",id:"dropdownStatus","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"},pN={key:0,class:"filter-btn-value"},fN={key:1,class:"filter-btn-value"},mN={class:"dropdown-menu","aria-labelledby":"dropdownStatus"},hN={class:"form-check dropdown-item"},vN=["id"],yN=["for"],gN={class:"dashboard-meta"},bN={class:"dashboard-count"},wN={key:0},kN={key:0},_N={key:1},EN={key:1},CN={key:0,class:"filter-chip"},NN=["onClick","aria-label"],SN={class:"paper-table paper-table-repos w-100",role:"table","aria-label":"Repositories"},DN={class:"cell-anon",role:"cell"},RN={class:"anon-text"},TN=["textContent","href"],ON={class:"anon-sub"},AN={class:"anon-source"},IN=["textContent","href"],VN={key:0},PN=["textContent","href"],qN={key:1},MN=["href"],$N={class:"cell-status",role:"cell"},FN={class:"status-line"},LN=["textContent"],UN={key:0,class:"status-sub"},zN=["textContent"],HN={class:"cell-expires",role:"cell"},BN={key:0,class:"expires-never"},GN=["textContent"],jN={key:2,class:"expires-past"},WN={key:0},KN={key:3,class:"empty-dash","aria-label":"Not applicable"},YN={class:"cell-actions",role:"cell"},xN={class:"dropdown"},JN=["aria-label"],QN={class:"dropdown-menu dropdown-menu-right"},XN=["href"],ZN=["href"],eS={key:0,class:"paper-table-empty"},tS={key:0},sS={key:1},nS={key:2,class:"paper-table-empty-actions"};function Ya(e,t){let o=ye("field"),r=ye("form");return l(),d("div",qC,[s("div",null,[s("div",MC,[t[2]||(t[2]=s("a",{href:"/dashboard"},"My work",-1)),t[3]||(t[3]=y(" \xA0/\xA0 ",-1)),t[4]||(t[4]=s("a",{href:"/conferences"},"Conferences",-1)),t[5]||(t[5]=y(" \xA0/\xA0 ",-1)),s("span",$C,c(e.conference?.conferenceID),1)]),s("div",FC,[s("div",null,[s("h1",{class:"paper-page-title",textContent:c(e.conference?.name)},null,8,LC),e.conference?.url?(l(),d("p",UC,[s("a",{target:"_blank",rel:"noopener",textContent:c(e.conference?.url),href:e.safeUrl(e.conference?.url)},null,8,zC)])):m("v-if",!0)]),s("div",HC,[s("span",{class:T(["status-pill",{"status-pill-ready":e.conference?.status=="ready","status-pill-removed":e.conference?.status=="removed"||e.conference?.status=="expired"}])},[s("span",{class:T(["status-dot","status-"+e.conference?.status]),"aria-hidden":"true"},null,2),s("span",{textContent:c(e.fmt?.statusLabel(e.conference?.status))},null,8,BC)],2),s("a",{class:"btn btn-outline-ink",href:e.safeUrl("/conference/"+e.conference?.conferenceID+"/edit")},[...t[6]||(t[6]=[s("i",{class:"far fa-edit mr-1","aria-hidden":"true"},null,-1),y(" Edit conference",-1)])],8,GC)])]),s("div",jC,[s("span",null,[t[7]||(t[7]=y("ID ",-1)),s("b",{class:"commit-hash",textContent:c(e.conference?.conferenceID)},null,8,WC)]),s("span",null,[t[8]||(t[8]=y("Review window ",-1)),s("b",null,c(e.fmt?.date(e.conference?.startDate,"mediumDate"))+" \u2013 "+c(e.fmt?.date(e.conference?.endDate,"mediumDate")),1)]),s("span",null,[t[9]||(t[9]=y("Repositories ",-1)),s("b",null,c(e.fmt?.number(e.conference?.repositories?.length)),1)]),s("span",null,[t[10]||(t[10]=y("Plan ",-1)),s("b",{textContent:c(e.conference?.plan?.name||e.conference?.plan?.planID||"Free")},null,8,KC)]),e.conference?.price?(l(),d("span",YC,[t[11]||(t[11]=y("Cost so far ",-1)),s("b",null,c(e.fmt?.number(e.conference?.price,2))+" \u20AC",1)])):m("v-if",!0)]),t[29]||(t[29]=s("div",{class:"paper-section-eyebrow"},"Repositories",-1)),E((l(),d("form",{class:"w-100 dashboard-filter-row","aria-label":"Filter repositories","accept-charset":"UTF-8",onSubmit:t[0]||(t[0]=ge(n=>e.submitForm(n,()=>{n.preventDefault()}),["prevent"]))},[s("div",xC,[E(s("input",JC,null,512),[[o,{state:e.viewState,set:n=>{e.search=n},value:e.search,form:null,options:{}}]])]),s("div",QC,[s("div",XC,[s("button",ZC,[t[12]||(t[12]=s("span",{class:"filter-btn-label"},"Sort",-1)),s("span",eN,c({"-anonymizeDate":"Anonymize date",repoId:"ID","-status":"Status","-pageView":"Views"}[e.orderBy]||"Custom"),1)]),s("div",tN,[t[17]||(t[17]=s("h6",{class:"dropdown-header"},"Order by",-1)),s("div",sN,[E(s("input",nN,null,512),[[o,{state:e.viewState,set:n=>{e.orderBy=n},value:e.orderBy,form:null,options:{}}]]),t[13]||(t[13]=s("label",{class:"form-check-label",for:"anonymizeDate"},"Anonymize date",-1))]),s("div",oN,[E(s("input",rN,null,512),[[o,{state:e.viewState,set:n=>{e.orderBy=n},value:e.orderBy,form:null,options:{}}]]),t[14]||(t[14]=s("label",{class:"form-check-label",for:"sortID"},"ID",-1))]),s("div",iN,[E(s("input",aN,null,512),[[o,{state:e.viewState,set:n=>{e.orderBy=n},value:e.orderBy,form:null,options:{}}]]),t[15]||(t[15]=s("label",{class:"form-check-label",for:"sortStatus"},"Status",-1))]),s("div",lN,[E(s("input",dN,null,512),[[o,{state:e.viewState,set:n=>{e.orderBy=n},value:e.orderBy,form:null,options:{}}]]),t[16]||(t[16]=s("label",{class:"form-check-label",for:"sortViews"},"Views",-1))])])]),s("div",uN,[s("button",cN,[t[18]||(t[18]=s("span",{class:"filter-btn-label"},"Status",-1)),e.filters?.status?.ready&&e.filters?.status?.expired&&e.filters?.status?.removed?(l(),d("span",pN,"All")):m("v-if",!0),e.filters?.status?.ready&&e.filters?.status?.expired&&e.filters?.status?.removed?m("v-if",!0):(l(),d("span",fN,c((e.filters?.status?.ready?0:1)+(e.filters?.status?.expired?0:1)+(e.filters?.status?.removed?0:1))+" hidden ",1))]),s("div",mN,[t[19]||(t[19]=s("h6",{class:"dropdown-header"},"Show statuses",-1)),(l(!0),d(x,null,re(e.statusLabels,(n,i,a)=>(l(),d("div",hN,[E(s("input",{class:"form-check-input",type:"checkbox",id:"status-"+i},null,8,vN),[[o,{state:e.viewState,set:u=>{e.filters.status[i]=u},value:e.filters?.status[i],form:null,options:{}}]]),s("label",{class:"form-check-label",for:"status-"+i},c(n),9,yN)]))),256))])])])],32)),[[r,e.viewState]]),s("div",gN,[s("span",bN,[e.filteredRepositories?.length===e.conference?.repositories?.length?(l(),d("span",wN,[y(c(e.fmt?.number(e.conference?.repositories?.length))+" repositor",1),e.conference?.repositories?.length===1?(l(),d("span",kN,"y")):m("v-if",!0),e.conference?.repositories?.length!==1?(l(),d("span",_N,"ies")):m("v-if",!0)])):m("v-if",!0),e.filteredRepositories?.length!==e.conference?.repositories?.length?(l(),d("span",EN,c(e.fmt?.number(e.filteredRepositories?.length))+" of "+c(e.fmt?.number(e.conference?.repositories?.length))+" shown",1)):m("v-if",!0)]),(l(!0),d(x,null,re(e.filters?.status,(n,i,a)=>(l(),d(x,null,[n===!1?(l(),d("span",CN,[y(" Hiding "+c(e.statusLabels[i])+" ",1),s("button",{type:"button",class:"filter-chip-close",onClick:u=>{e.filters.status[i]=!0},"aria-label":"Show "+e.statusLabels[i]+" again"},"\xD7",8,NN)])):m("v-if",!0)],64))),256))]),s("div",SN,[t[28]||(t[28]=s("div",{class:"paper-table-head",role:"row"},[s("div",{role:"columnheader"},"Repository"),s("div",{role:"columnheader"},"Status"),s("div",{role:"columnheader",class:"num"},"Views"),s("div",{role:"columnheader"},"Expires"),s("div",{role:"columnheader"},[s("span",{class:"sr-only"},"Actions")])],-1)),(l(!0),d(x,null,re(e.filteredRepositories,(n,i)=>(l(),d("div",{class:T(["paper-table-row",{"repo-inactive":n?.status=="expired"||n?.status=="removed","repo-error":n?.status=="error"}]),role:"row",key:n?.repoId},[s("div",DN,[t[22]||(t[22]=s("span",{class:"type-badge type-repo"},"Repo",-1)),s("div",RN,[s("a",{class:"repo-name",textContent:c(n?.repoId),href:e.safeUrl("/r/"+n?.repoId+"/")},null,8,TN),s("div",ON,[s("span",AN,[s("a",{target:"_blank",rel:"noopener",textContent:c(n?.source?.fullName),href:e.safeUrl("https://github.com/"+n?.source?.fullName+"/")},null,8,IN),n?.options?.update&&n?.source?.branch?(l(),d("span",VN,[t[20]||(t[20]=y(" \xB7 ",-1)),s("a",{target:"_blank",rel:"noopener",textContent:c(n?.source?.branch),href:e.safeUrl("https://github.com/"+n?.source?.fullName+"/tree/"+n?.source?.branch)},null,8,PN)])):m("v-if",!0),n?.source?.commit?(l(),d("span",qN,[t[21]||(t[21]=y(" \xB7 ",-1)),s("a",{class:"commit-hash",target:"_blank",rel:"noopener",href:e.safeUrl("https://github.com/"+n?.source?.fullName+"/tree/"+n?.source?.commit)},"@"+c(n?.source?.commit?.substring(0,8)),9,MN)])):m("v-if",!0)])])])]),s("div",$N,[s("div",FN,[s("span",{class:T(["status-dot","status-"+(n?.status=="error"?"error":n?.status=="ready"?"ready":n?.status=="expired"||n?.status=="removed"?n?.status:"progress")]),"aria-hidden":"true"},null,2),s("span",{class:"status-word",textContent:c(e.fmt?.statusLabel(n?.status))},null,8,LN)]),n?.anonymizeDate?(l(),d("div",UN,"anonymized "+c(e.fmt?.humanTime(n?.anonymizeDate)),1)):m("v-if",!0)]),s("div",{class:"cell-views num",role:"cell",textContent:c(e.fmt?.number(n?.pageView))},null,8,zN),s("div",HN,[n?.status=="ready"&&(n?.options?.expirationMode==="never"||!n?.options?.expirationDate)?(l(),d("span",BN,"Never")):m("v-if",!0),n?.status=="ready"&&n?.options?.expirationMode!=="never"&&n?.options?.expirationDate?(l(),d("span",{key:1,textContent:c(e.fmt?.humanTime(n?.options?.expirationDate))},null,8,GN)):m("v-if",!0),n?.status=="expired"?(l(),d("span",jN,[t[23]||(t[23]=y("Expired",-1)),n?.options?.expirationDate?(l(),d("span",WN,c(e.fmt?.humanTime(n?.options?.expirationDate)),1)):m("v-if",!0)])):m("v-if",!0),n?.status!="ready"&&n?.status!="expired"?(l(),d("span",KN,"\u2014")):m("v-if",!0)]),s("div",YN,[s("div",xN,[s("button",{class:"btn btn-icon-dots",type:"button","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false","aria-label":"Actions for "+n?.repoId},[...t[24]||(t[24]=[s("i",{class:"fas fa-ellipsis-h","aria-hidden":"true"},null,-1)])],8,JN),s("div",QN,[s("a",{class:"dropdown-item",href:e.safeUrl("/r/"+n?.repoId+"/")},[...t[25]||(t[25]=[s("i",{class:"fa fa-eye","aria-hidden":"true"},null,-1),y(" View ",-1)])],8,XN),s("a",{class:"dropdown-item",href:e.safeUrl("/anonymize/"+n?.repoId)},[...t[26]||(t[26]=[s("i",{class:"far fa-edit","aria-hidden":"true"},null,-1),y(" Edit ",-1)])],8,ZN)])])])],2))),128)),e.filteredRepositories?.length==0?(l(),d("div",eS,[t[27]||(t[27]=s("i",{class:"fas fa-inbox","aria-hidden":"true"},null,-1)),e.conference?.repositories?.length?m("v-if",!0):(l(),d("span",tS,"No repository has been submitted to this conference yet.")),e.conference?.repositories?.length?(l(),d("span",sS,"Nothing matches the current filters.")):m("v-if",!0),e.conference?.repositories?.length?(l(),d("div",nS,[s("button",{type:"button",class:"btn btn-outline-ink",onClick:t[1]||(t[1]=n=>{e.search="",e.filters.status.ready=!0,e.filters.status.expired=!0,e.filters.status.removed=!0})},"Clear filters")])):m("v-if",!0)])):m("v-if",!0)])])])}var oS={class:"container page paper-page"},rS={class:"row"},iS={class:"w-100"},aS={class:"search-wrap"},lS={type:"search",id:"search",class:"form-control","aria-label":"Search conferences",placeholder:"Search by name or ID\u2026",autocomplete:"off"},dS={class:"dashboard-filter-controls"},uS={class:"dropdown"},cS={class:"btn dropdown-toggle",type:"button",id:"dropdownSort","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"},pS={class:"filter-btn-value"},fS={class:"dropdown-menu","aria-labelledby":"dropdownSort"},mS={class:"form-check dropdown-item"},hS={class:"form-check-input",type:"radio",name:"sort",id:"sortName",value:"name"},vS={class:"form-check dropdown-item"},yS={class:"form-check-input",type:"radio",name:"sort",id:"sortID",value:"conferenceID"},gS={class:"form-check dropdown-item"},bS={class:"form-check-input",type:"radio",name:"sort",id:"sortStatus",value:"-status"},wS={class:"dropdown"},kS={class:"btn dropdown-toggle",type:"button",id:"dropdownStatus","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"},_S={key:0,class:"filter-btn-value"},ES={key:1,class:"filter-btn-value"},CS={class:"dropdown-menu","aria-labelledby":"dropdownStatus"},NS={class:"form-check dropdown-item"},SS=["id"],DS=["for"],RS={class:"dashboard-meta"},TS={class:"dashboard-count"},OS={key:0},AS={key:0},IS={key:1},VS={key:0,class:"filter-chip"},PS=["onClick","aria-label"],qS={class:"paper-table paper-table-conferences w-100",role:"table","aria-label":"Conferences"},MS={class:"cell-anon",role:"cell"},$S={class:"anon-text"},FS=["textContent","href"],LS={class:"anon-sub"},US={class:"anon-source"},zS=["textContent"],HS={key:0},BS=["textContent","href"],GS={class:"cell-status",role:"cell"},jS={class:"status-line"},WS=["textContent"],KS=["textContent"],YS={class:"cell-expires",role:"cell"},xS={key:0},JS={key:1,class:"empty-dash","aria-label":"No review window"},QS={class:"cell-actions",role:"cell"},XS={class:"dropdown"},ZS=["aria-label"],e2={class:"dropdown-menu dropdown-menu-right"},t2=["href"],s2=["href"],n2={key:0},o2=["onClick"],r2={key:0,class:"paper-table-empty"},i2={key:0},a2={key:1},l2={class:"paper-table-empty-actions"},d2={key:1,href:"/conference/new",class:"btn btn-ink"};function xa(e,t){let o=ye("field"),r=ye("form");return l(),d("div",oS,[s("div",rS,[s("div",iS,[t[9]||(t[9]=_e('
My work \xA0/\xA0 Conferences

Your conferences

Group anonymizations by venue, give chairs a shared dashboard, and set one expiry for every submission.

New conference
',2)),E((l(),d("form",{class:"w-100 dashboard-filter-row","aria-label":"Filter conferences","accept-charset":"UTF-8",onSubmit:t[0]||(t[0]=ge(n=>e.submitForm(n,()=>{n.preventDefault()}),["prevent"]))},[s("div",aS,[E(s("input",lS,null,512),[[o,{state:e.viewState,set:n=>{e.search=n},value:e.search,form:null,options:{}}]])]),s("div",dS,[s("div",uS,[s("button",cS,[t[2]||(t[2]=s("span",{class:"filter-btn-label"},"Sort",-1)),s("span",pS,c({name:"Name",conferenceID:"ID","-status":"Status"}[e.orderBy]||"Custom"),1)]),s("div",fS,[t[6]||(t[6]=s("h6",{class:"dropdown-header"},"Order by",-1)),s("div",mS,[E(s("input",hS,null,512),[[o,{state:e.viewState,set:n=>{e.orderBy=n},value:e.orderBy,form:null,options:{}}]]),t[3]||(t[3]=s("label",{class:"form-check-label",for:"sortName"},"Name",-1))]),s("div",vS,[E(s("input",yS,null,512),[[o,{state:e.viewState,set:n=>{e.orderBy=n},value:e.orderBy,form:null,options:{}}]]),t[4]||(t[4]=s("label",{class:"form-check-label",for:"sortID"},"ID",-1))]),s("div",gS,[E(s("input",bS,null,512),[[o,{state:e.viewState,set:n=>{e.orderBy=n},value:e.orderBy,form:null,options:{}}]]),t[5]||(t[5]=s("label",{class:"form-check-label",for:"sortStatus"},"Status",-1))])])]),s("div",wS,[s("button",kS,[t[7]||(t[7]=s("span",{class:"filter-btn-label"},"Status",-1)),e.filters?.status?.ready&&e.filters?.status?.expired&&e.filters?.status?.removed?(l(),d("span",_S,"All")):m("v-if",!0),e.filters?.status?.ready&&e.filters?.status?.expired&&e.filters?.status?.removed?m("v-if",!0):(l(),d("span",ES,c((e.filters?.status?.ready?0:1)+(e.filters?.status?.expired?0:1)+(e.filters?.status?.removed?0:1))+" hidden ",1))]),s("div",CS,[t[8]||(t[8]=s("h6",{class:"dropdown-header"},"Show statuses",-1)),(l(!0),d(x,null,re(e.statusLabels,(n,i,a)=>(l(),d("div",NS,[E(s("input",{class:"form-check-input",type:"checkbox",id:"status-"+i},null,8,SS),[[o,{state:e.viewState,set:u=>{e.filters.status[i]=u},value:e.filters?.status[i],form:null,options:{}}]]),s("label",{class:"form-check-label",for:"status-"+i},c(n),9,DS)]))),256))])])])],32)),[[r,e.viewState]]),s("div",RS,[s("span",TS,[e.filteredConferences?.length===e.conferences?.length?(l(),d("span",OS,[y(c(e.fmt?.number(e.conferences?.length))+" conference",1),e.conferences?.length!==1?(l(),d("span",AS,"s")):m("v-if",!0)])):m("v-if",!0),e.filteredConferences?.length!==e.conferences?.length?(l(),d("span",IS,c(e.fmt?.number(e.filteredConferences?.length))+" of "+c(e.fmt?.number(e.conferences?.length))+" shown",1)):m("v-if",!0)]),(l(!0),d(x,null,re(e.filters?.status,(n,i,a)=>(l(),d(x,null,[n===!1?(l(),d("span",VS,[y(" Hiding "+c(e.statusLabels[i])+" ",1),s("button",{type:"button",class:"filter-chip-close",onClick:u=>{e.filters.status[i]=!0},"aria-label":"Show "+e.statusLabels[i]+" again"},"\xD7",8,PS)])):m("v-if",!0)],64))),256))])]),s("div",qS,[t[20]||(t[20]=s("div",{class:"paper-table-head",role:"row"},[s("div",{role:"columnheader"},"Conference"),s("div",{role:"columnheader"},"Status"),s("div",{role:"columnheader",class:"num"},"Repos"),s("div",{role:"columnheader"},"Review window"),s("div",{role:"columnheader"},[s("span",{class:"sr-only"},"Actions")])],-1)),(l(!0),d(x,null,re(e.filteredConferences,(n,i)=>(l(),d("div",{class:T(["paper-table-row row-clickable",{"repo-inactive":n?.status=="expired"||n?.status=="removed"}]),role:"row",key:n?.conferenceID},[s("div",MS,[t[12]||(t[12]=s("span",{class:"type-badge type-repo"},"Conf",-1)),s("div",$S,[s("a",{class:"repo-name",textContent:c(n?.name),href:e.safeUrl("/conference/"+n?.conferenceID)},null,8,FS),s("div",LS,[s("span",US,[t[11]||(t[11]=y("ID ",-1)),s("span",{class:"commit-hash",textContent:c(n?.conferenceID)},null,8,zS),n?.url?(l(),d("span",HS,[t[10]||(t[10]=y(" \xB7 ",-1)),s("a",{target:"_blank",rel:"noopener",textContent:c(e.fmt?.limitTo(n?.url,60)),href:e.safeUrl(n?.url)},null,8,BS)])):m("v-if",!0)])])])]),s("div",GS,[s("div",jS,[s("span",{class:T(["status-dot","status-"+n?.status]),"aria-hidden":"true"},null,2),s("span",{class:"status-word",textContent:c(e.fmt?.statusLabel(n?.status))},null,8,WS)])]),s("div",{class:"cell-views num",role:"cell",textContent:c(e.fmt?.number(n?.nbRepositories||0))},null,8,KS),s("div",YS,[n?.startDate?(l(),d("span",xS,c(e.fmt?.date(n?.startDate,"mediumDate"))+" \u2013 "+c(e.fmt?.date(n?.endDate,"mediumDate")),1)):m("v-if",!0),n?.startDate?m("v-if",!0):(l(),d("span",JS,"\u2014"))]),s("div",QS,[s("div",XS,[s("button",{class:"btn btn-icon-dots",type:"button","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false","aria-label":"Actions for "+n?.name},[...t[13]||(t[13]=[s("i",{class:"fas fa-ellipsis-h","aria-hidden":"true"},null,-1)])],8,ZS),s("div",e2,[s("a",{class:"dropdown-item",href:e.safeUrl("/conference/"+n?.conferenceID+"/")},[...t[14]||(t[14]=[s("i",{class:"fa fa-eye","aria-hidden":"true"},null,-1),y(" View ",-1)])],8,t2),s("a",{class:"dropdown-item",href:e.safeUrl("/conference/"+n?.conferenceID+"/edit")},[...t[15]||(t[15]=[s("i",{class:"far fa-edit","aria-hidden":"true"},null,-1),y(" Edit ",-1)])],8,s2),n?.status!="removed"?(l(),d("div",n2,[t[17]||(t[17]=s("div",{class:"dropdown-divider"},null,-1)),s("button",{type:"button",class:"dropdown-item dropdown-item-danger",onClick:a=>e.removeConference(n)},[...t[16]||(t[16]=[s("i",{class:"fas fa-trash-alt","aria-hidden":"true"},null,-1),y(" Remove ",-1)])],8,o2)])):m("v-if",!0)])])])],2))),128)),e.filteredConferences?.length==0?(l(),d("div",r2,[t[19]||(t[19]=s("i",{class:"fas fa-inbox","aria-hidden":"true"},null,-1)),e.conferences?.length==0?(l(),d("span",i2,"You have not created a conference yet.")):m("v-if",!0),e.conferences?.length>0?(l(),d("span",a2,"Nothing matches the current filters.")):m("v-if",!0),s("div",l2,[e.conferences?.length>0?(l(),d("button",{key:0,type:"button",class:"btn btn-outline-ink",onClick:t[1]||(t[1]=n=>{e.search="",e.filters.status.ready=!0,e.filters.status.expired=!0,e.filters.status.removed=!0})},"Clear filters")):m("v-if",!0),e.conferences?.length==0?(l(),d("a",d2,[...t[18]||(t[18]=[s("i",{class:"fa fa-plus-circle mr-1","aria-hidden":"true"},null,-1),y(" New conference",-1)])])):m("v-if",!0)])])):m("v-if",!0)])])])}var u2={class:"container page dashboard-page paper-page"},c2={class:"row"},p2={class:"w-100"},f2={key:0,class:"quota-row"},m2={class:"quota-item"},h2={class:"quota-header"},v2={class:"quota-label"},y2={key:0,class:"quota-value"},g2={key:0},b2={key:1,class:"quota-unlimited-tag"},w2={key:1,class:"quota-value"},k2={key:0},_2={key:1,class:"quota-unlimited-tag"},E2=["aria-label","aria-valuenow","aria-valuemax","aria-valuetext"],C2={class:"search-wrap"},N2={type:"search",id:"search",class:"form-control","aria-label":"Search anonymizations",placeholder:"Search by name, source, or conference\u2026",autocomplete:"off"},S2={class:"dashboard-filter-controls"},D2={class:"btn-group",role:"group","aria-label":"Type"},R2=["aria-pressed"],T2=["aria-pressed"],O2=["aria-pressed"],A2=["aria-pressed"],I2={class:"dropdown"},V2={class:"btn dropdown-toggle",type:"button",id:"dropdownSort","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"},P2={class:"filter-btn-value"},q2={class:"sr-only"},M2={class:"dropdown-menu","aria-labelledby":"dropdownSort"},$2={class:"form-check dropdown-item"},F2=["onClick","checked","id"],L2=["for"],U2={class:"dropdown"},z2={class:"btn dropdown-toggle",type:"button",id:"dropdownStatus","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"},H2={key:0,class:"filter-btn-value"},B2={key:1,class:"filter-btn-value"},G2={class:"dropdown-menu","aria-labelledby":"dropdownStatus"},j2={class:"form-check dropdown-item"},W2=["id"],K2=["for"],Y2={key:1,class:"dashboard-meta"},x2={class:"dashboard-count"},J2={key:0},Q2={key:0},X2={key:1},Z2={key:0,class:"filter-chip"},eD=["onClick","aria-label"],tD=["aria-busy"],sD={class:"paper-table-head",role:"row"},nD=["aria-sort"],oD=["aria-sort"],rD=["aria-sort"],iD=["aria-sort"],aD={key:0,class:"paper-table-row paper-table-skeleton",role:"row","aria-hidden":"true"},lD=["onClick"],dD={class:"cell-anon",role:"cell"},uD={class:"anon-text"},cD={class:"anon-title"},pD=["textContent","href"],fD=["textContent"],mD={key:2,class:"type-badge type-coauthor",title:"You are a co-author on this anonymization"},hD={key:0,class:"anon-sub"},vD={key:0,class:"anon-source"},yD=["textContent","href"],gD={key:0},bD=["textContent","href"],wD={key:1},kD=["href"],_D={key:1,class:"anon-source"},ED=["textContent","href"],CD={key:2,class:"anon-source"},ND=["textContent","href"],SD=["title"],DD=["textContent"],RD={class:"cell-status",role:"cell"},TD={class:"status-line"},OD=["textContent"],AD=["textContent","title"],ID=["title"],VD={key:2,class:"status-sub"},PD=["textContent"],qD={class:"cell-expires",role:"cell"},MD={key:0,class:"expires-never"},$D=["textContent"],FD={key:2,class:"expires-past"},LD={key:3,class:"expires-past"},UD={key:4,class:"empty-dash","aria-label":"Not applicable"},zD={class:"cell-actions",role:"cell"},HD={key:0,class:"dropdown"},BD=["aria-label"],GD={class:"dropdown-menu dropdown-menu-right"},jD=["href"],WD=["href"],KD=["href"],YD=["onClick"],xD=["onClick"],JD=["onClick"],QD={key:4},XD=["onClick"],ZD={key:0,class:"paper-table-empty"},eR={key:0},tR={key:1},sR={class:"paper-table-empty-actions"},nR={key:1,href:"/anonymize",class:"btn btn-ink"};function Ja(e,t){let o=ye("field"),r=ye("form");return l(),d("div",u2,[s("div",c2,[s("div",p2,[t[18]||(t[18]=_e('
My work \xA0/\xA0 Dashboard

Your anonymizations

Every repository, pull request, and gist you\u2019ve mirrored, with live status and stats.

New anonymization
',2)),m(" Quota "),e.quota?(l(),d("div",f2,[(l(),d(x,null,re([{key:"repository",label:"Repositories",kind:"count"},{key:"storage",label:"Storage",kind:"bytes"},{key:"file",label:"Files",kind:"count"}],(n,i)=>s("div",m2,[s("div",h2,[s("span",v2,c(n?.label),1),n?.kind==="count"?(l(),d("span",y2,[y(c(e.fmt?.number(e.quota[n?.key].used)),1),e.quota[n?.key].unlimited?m("v-if",!0):(l(),d("span",g2," / "+c(e.fmt?.number(e.quota[n?.key].total)),1)),e.quota[n?.key].unlimited?(l(),d("span",b2,"Unlimited")):m("v-if",!0)])):m("v-if",!0),n?.kind==="bytes"?(l(),d("span",w2,[y(c(e.fmt?.humanFileSize(e.quota[n?.key].used)),1),e.quota[n?.key].unlimited?m("v-if",!0):(l(),d("span",k2," / "+c(e.fmt?.humanFileSize(e.quota[n?.key].total)),1)),e.quota[n?.key].unlimited?(l(),d("span",_2,"Unlimited")):m("v-if",!0)])):m("v-if",!0)]),s("div",{class:T(["quota-track","quota-"+e.quota[n?.key].level]),role:"progressbar","aria-valuemin":"0","aria-label":n?.label+" quota","aria-valuenow":e.quota[n?.key].used,"aria-valuemax":e.quota[n?.key].unlimited?e.quota[n?.key].used:e.quota[n?.key].total,"aria-valuetext":e.quota[n?.key].unlimited?"unlimited":e.fmt.number(e.quota[n?.key].percent,0)+"% used"},[e.quota[n?.key].unlimited?m("v-if",!0):(l(),d("div",{key:0,class:"quota-fill",style:Oe({width:e.quota[n?.key].percent+"%"})},null,4))],10,E2)])),64))])):m("v-if",!0),m(" Search + filters "),E((l(),d("form",{class:"w-100 dashboard-filter-row","aria-label":"Filter anonymizations","accept-charset":"UTF-8",onSubmit:t[5]||(t[5]=ge(n=>e.submitForm(n,()=>{n.preventDefault()}),["prevent"]))},[s("div",C2,[E(s("input",N2,null,512),[[o,{state:e.viewState,set:n=>{e.search=n},value:e.search,form:null,options:{}}]])]),s("div",S2,[s("div",D2,[s("button",{type:"button",class:T(["btn",{"btn-primary":e.typeFilter==="all"}]),onClick:t[0]||(t[0]=n=>e.typeFilter="all"),"aria-pressed":e.typeFilter==="all"},"All",10,R2),s("button",{type:"button",class:T(["btn",{"btn-primary":e.typeFilter==="repo"}]),onClick:t[1]||(t[1]=n=>e.typeFilter="repo"),"aria-pressed":e.typeFilter==="repo"},"Repos",10,T2),s("button",{type:"button",class:T(["btn",{"btn-primary":e.typeFilter==="pr"}]),onClick:t[2]||(t[2]=n=>e.typeFilter="pr"),"aria-pressed":e.typeFilter==="pr"},"PRs",10,O2),s("button",{type:"button",class:T(["btn",{"btn-primary":e.typeFilter==="gist"}]),onClick:t[3]||(t[3]=n=>e.typeFilter="gist"),"aria-pressed":e.typeFilter==="gist"},"Gists",10,A2)]),s("div",I2,[s("button",V2,[t[12]||(t[12]=s("span",{class:"filter-btn-label"},"Sort",-1)),s("span",P2,c(e.sortLabel()),1),s("i",{class:T(["fas",e.sortDesc()?"fa-arrow-down":"fa-arrow-up"]),"aria-hidden":"true"},null,2),s("span",q2,c(e.sortDesc()?"descending":"ascending"),1)]),s("div",M2,[t[14]||(t[14]=s("h6",{class:"dropdown-header"},"Order by",-1)),(l(!0),d(x,null,re(e.sortFields,(n,i,a)=>(l(),d("div",$2,[s("input",{class:"form-check-input",type:"radio",name:"sort",onClick:u=>e.setSort(i,n.defaultDesc),checked:e.isSortedBy(i),id:"sort-"+a},null,8,F2),s("label",{class:"form-check-label",for:"sort-"+a},c(n?.label),9,L2)]))),256)),t[15]||(t[15]=s("div",{class:"dropdown-divider"},null,-1)),s("button",{type:"button",class:"dropdown-item",onClick:t[4]||(t[4]=n=>e.toggleSortDirection())},[t[13]||(t[13]=s("i",{class:"fas fa-exchange-alt fa-rotate-90","aria-hidden":"true"},null,-1)),y(" "+c(e.sortDesc()?"Switch to ascending":"Switch to descending"),1)])])]),s("div",U2,[s("button",z2,[t[16]||(t[16]=s("span",{class:"filter-btn-label"},"Status",-1)),e.hasHiddenStatus()?m("v-if",!0):(l(),d("span",H2,"All")),e.hasHiddenStatus()?(l(),d("span",B2,c(e.hiddenStatusCount())+" hidden",1)):m("v-if",!0)]),s("div",G2,[t[17]||(t[17]=s("h6",{class:"dropdown-header"},"Show statuses",-1)),(l(!0),d(x,null,re(e.statusKeyLabels,(n,i,a)=>(l(),d("div",j2,[E(s("input",{class:"form-check-input",type:"checkbox",id:"status-"+i},null,8,W2),[[o,{state:e.viewState,set:u=>{e.filters.status[i]=u},value:e.filters?.status[i],form:null,options:{}}]]),s("label",{class:"form-check-label",for:"status-"+i},c(n),9,K2)]))),256))])])])],32)),[[r,e.viewState]]),m(" Result count + active filter chips "),e.loading?m("v-if",!0):(l(),d("div",Y2,[s("span",x2,[e.filteredItems?.length===e.items?.length?(l(),d("span",J2,[y(c(e.fmt?.number(e.items?.length))+" anonymization",1),e.items?.length!==1?(l(),d("span",Q2,"s")):m("v-if",!0)])):m("v-if",!0),e.filteredItems?.length!==e.items?.length?(l(),d("span",X2,c(e.fmt?.number(e.filteredItems?.length))+" of "+c(e.fmt?.number(e.items?.length))+" shown",1)):m("v-if",!0)]),(l(!0),d(x,null,re(e.filters?.status,(n,i,a)=>(l(),d(x,null,[n===!1?(l(),d("span",Z2,[y(" Hiding "+c(e.statusKeyLabels[i])+" ",1),s("button",{type:"button",class:"filter-chip-close",onClick:u=>{e.filters.status[i]=!0},"aria-label":"Show "+e.statusKeyLabels[i]+" again"},"\xD7",8,eD)])):m("v-if",!0)],64))),256)),e.hasActiveFilters()?(l(),d("button",{key:0,type:"button",class:"btn-link-inline",onClick:t[6]||(t[6]=n=>e.clearFilters())},"Clear filters")):m("v-if",!0)]))]),m(" Table "),s("div",{class:"paper-table paper-table-dashboard w-100",role:"table","aria-label":"Anonymizations","aria-busy":e.loading},[s("div",sD,[s("div",{role:"columnheader","aria-sort":e.isSortedBy("_name")?e.sortDesc()?"descending":"ascending":"none"},[s("button",{type:"button",class:T(["sortable",{active:e.isSortedBy("_name")}]),onClick:t[7]||(t[7]=n=>e.setSort("_name"))},[t[19]||(t[19]=y(" Anonymization ",-1)),e.isSortedBy("_name")?(l(),d("i",{key:0,class:T(["fas",e.sortDesc()?"fa-arrow-down":"fa-arrow-up"]),"aria-hidden":"true"},null,2)):m("v-if",!0)],2)],8,nD),s("div",{role:"columnheader","aria-sort":e.isSortedBy("status")?e.sortDesc()?"descending":"ascending":"none"},[s("button",{type:"button",class:T(["sortable",{active:e.isSortedBy("status")}]),onClick:t[8]||(t[8]=n=>e.setSort("status"))},[t[20]||(t[20]=y(" Status ",-1)),e.isSortedBy("status")?(l(),d("i",{key:0,class:T(["fas",e.sortDesc()?"fa-arrow-down":"fa-arrow-up"]),"aria-hidden":"true"},null,2)):m("v-if",!0)],2)],8,oD),s("div",{role:"columnheader",class:"num","aria-sort":e.isSortedBy("pageView")?e.sortDesc()?"descending":"ascending":"none"},[s("button",{type:"button",class:T(["sortable",{active:e.isSortedBy("pageView")}]),onClick:t[9]||(t[9]=n=>e.setSort("pageView"))},[t[21]||(t[21]=y(" Views ",-1)),e.isSortedBy("pageView")?(l(),d("i",{key:0,class:T(["fas",e.sortDesc()?"fa-arrow-down":"fa-arrow-up"]),"aria-hidden":"true"},null,2)):m("v-if",!0)],2)],8,rD),s("div",{role:"columnheader","aria-sort":e.isSortedBy("options.expirationDate")?e.sortDesc()?"descending":"ascending":"none"},[s("button",{type:"button",class:T(["sortable",{active:e.isSortedBy("options.expirationDate")}]),onClick:t[10]||(t[10]=n=>e.setSort("options.expirationDate"))},[t[22]||(t[22]=y(" Expires ",-1)),e.isSortedBy("options.expirationDate")?(l(),d("i",{key:0,class:T(["fas",e.sortDesc()?"fa-arrow-down":"fa-arrow-up"]),"aria-hidden":"true"},null,2)):m("v-if",!0)],2)],8,iD),t[23]||(t[23]=s("div",{role:"columnheader"},[s("span",{class:"sr-only"},"Actions")],-1))]),m(" Loading skeleton: keeps the layout stable while the three lists load "),(l(),d(x,null,re([1,2,3,4],(n,i)=>(l(),d(x,null,[e.loading?(l(),d("div",aD,[...t[24]||(t[24]=[s("div",{class:"cell-anon",role:"cell"},[s("span",{class:"skeleton skeleton-badge"}),s("div",{class:"anon-text"},[s("span",{class:"skeleton skeleton-line",style:{width:"38%"}}),s("span",{class:"skeleton skeleton-line skeleton-line-sm",style:{width:"56%"}})])],-1),s("div",{class:"cell-status",role:"cell"},[s("span",{class:"skeleton skeleton-line",style:{width:"60%"}})],-1),s("div",{class:"cell-views num",role:"cell"},[s("span",{class:"skeleton skeleton-line",style:{width:"40%"}})],-1),s("div",{class:"cell-expires",role:"cell"},[s("span",{class:"skeleton skeleton-line",style:{width:"55%"}})],-1),s("div",{class:"cell-actions",role:"cell"},null,-1)])])):m("v-if",!0)],64))),64)),(l(!0),d(x,null,re(e.filteredItems,(n,i)=>(l(),d(x,{key:n?._type+":"+(n?._id||i)},[e.loading?m("v-if",!0):(l(),d("div",{key:0,class:T(["paper-table-row",{"repo-inactive":n?._statusKey=="expired"||n?._statusKey=="removed","repo-error":n?.status=="error","row-clickable":!!n?._viewUrl}]),role:"row",onClick:a=>e.openItem(n,a)},[s("div",dD,[s("span",{class:T(["type-badge",{"type-repo":n?._type==="repo","type-pr":n?._type==="pr","type-gist":n?._type==="gist"}])},c(n?._type==="repo"?"Repo":n?._type==="pr"?"PR":"Gist"),3),s("div",uD,[s("div",cD,[n?._viewUrl?(l(),d("a",{key:0,class:"repo-name",textContent:c(n?._name),href:e.safeUrl(n?._viewUrl)},null,8,pD)):m("v-if",!0),n?._viewUrl?m("v-if",!0):(l(),d("span",{key:1,class:"repo-name repo-name-static",textContent:c(n?._name)},null,8,fD)),n?.role==="coauthor"?(l(),d("span",mD,"Co-author")):m("v-if",!0)]),!n?._broken||n?.conference?(l(),d("div",hD,[n?._type==="repo"&&n?.source?.fullName&&!n?._broken?(l(),d("span",vD,[s("a",{target:"_blank",rel:"noopener",textContent:c(n?.source?.fullName),href:e.safeUrl("https://github.com/"+n?.source?.fullName+"/")},null,8,yD),n?.options?.update&&n?.source?.branch?(l(),d("span",gD,[t[25]||(t[25]=y(" \xB7 ",-1)),s("a",{target:"_blank",rel:"noopener",textContent:c(n?.source?.branch),href:e.safeUrl("https://github.com/"+n?.source?.fullName+"/tree/"+n?.source?.branch)},null,8,bD)])):m("v-if",!0),n?.source?.commit?(l(),d("span",wD,[t[26]||(t[26]=y(" \xB7 ",-1)),s("a",{class:"commit-hash",target:"_blank",rel:"noopener",href:e.safeUrl("https://github.com/"+n?.source?.fullName+"/tree/"+n?.source?.commit)},"@"+c(n?.source?.commit?.substring(0,8)),9,kD)])):m("v-if",!0)])):m("v-if",!0),n?._type==="pr"&&n?.source?.repositoryFullName&&!n?._broken?(l(),d("span",_D,[s("a",{target:"_blank",rel:"noopener",textContent:c(n?._source),href:e.safeUrl("https://github.com/"+n?.source?.repositoryFullName+"/pull/"+n?.source?.pullRequestId)},null,8,ED)])):m("v-if",!0),n?._type==="gist"&&n?.source?.gistId&&!n?._broken?(l(),d("span",CD,[s("a",{target:"_blank",rel:"noopener",textContent:c(n?._source),href:e.safeUrl("https://gist.github.com/"+n?.source?.gistId)},null,8,ND)])):m("v-if",!0),n?.conference?(l(),d("span",{key:3,class:"cell-conf conf-tag",title:n?.conference},[t[27]||(t[27]=s("i",{class:"fas fa-university","aria-hidden":"true"},null,-1)),t[28]||(t[28]=y()),s("span",{textContent:c(n?.conference)},null,8,DD)],8,SD)):m("v-if",!0)])):m("v-if",!0)])]),s("div",RD,[s("div",TD,[s("span",{class:T(["status-dot","status-"+n?._statusKey]),"aria-hidden":"true"},null,2),s("span",{class:"status-word",textContent:c(e.fmt?.statusLabel(n?.status))},null,8,OD)]),n?.status=="error"&&n?.statusMessage?(l(),d("div",{key:0,class:"status-sub status-sub-error",textContent:c(e.fmt?.statusMsg(n?.statusMessage)),title:n?.statusMessage},null,8,AD)):m("v-if",!0),n?._stale?(l(),d("div",{key:1,class:"status-sub status-sub-warn",title:"Last activity "+e.fmt?.humanTime(n?.anonymizeDate||n?.lastView)}," Last activity "+c(e.fmt?.humanTime(n?.anonymizeDate||n?.lastView))+" \xB7 may be stuck ",9,ID)):m("v-if",!0),n?.status!="error"&&!n?._stale&&n?.anonymizeDate?(l(),d("div",VD," anonymized "+c(e.fmt?.humanTime(n?.anonymizeDate)),1)):m("v-if",!0)]),s("div",{class:"cell-views num",role:"cell",textContent:c(e.fmt?.number(n?.pageView))},null,8,PD),s("div",qD,[n?._expiry?.kind==="never"?(l(),d("span",MD,"Never")):m("v-if",!0),n?._expiry?.kind==="date"?(l(),d("span",{key:1,textContent:c(e.fmt?.humanTime(n?._expiry?.date))},null,8,$D)):m("v-if",!0),n?._expiry?.kind==="expired"&&n?._expiry?.date?(l(),d("span",FD,"Expired "+c(e.fmt?.humanTime(n?._expiry?.date)),1)):m("v-if",!0),n?._expiry?.kind==="expired"&&!n?._expiry?.date?(l(),d("span",LD,"Expired")):m("v-if",!0),n?._expiry?.kind==="none"?(l(),d("span",UD,"\u2014")):m("v-if",!0)]),s("div",zD,[n?._broken?m("v-if",!0):(l(),d("div",HD,[s("button",{class:"btn btn-icon-dots",type:"button","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false","aria-label":"Actions for "+n?._name},[...t[29]||(t[29]=[s("i",{class:"fas fa-ellipsis-h","aria-hidden":"true"},null,-1)])],8,BD),s("div",GD,[s("a",{class:"dropdown-item",href:e.safeUrl(n?._viewUrl)},[...t[30]||(t[30]=[s("i",{class:"fa fa-eye","aria-hidden":"true"},null,-1),y(" View ",-1)])],8,jD),n?._type==="repo"&&n?.options?.page&&n?.status=="ready"?(l(),d("a",{key:0,class:"dropdown-item",target:"_self",href:e.safeUrl("/w/"+n?.repoId+"/")},[...t[31]||(t[31]=[s("i",{class:"fas fa-globe","aria-hidden":"true"},null,-1),y(" View page ",-1)])],8,WD)):m("v-if",!0),s("a",{class:"dropdown-item",href:e.safeUrl(n?._editUrl)},[...t[32]||(t[32]=[s("i",{class:"far fa-edit","aria-hidden":"true"},null,-1),y(" Edit ",-1)])],8,KD),n?.status=="ready"||n?.status=="error"?(l(),d("button",{key:1,type:"button",class:"dropdown-item",onClick:a=>e.refreshItem(n)},[...t[33]||(t[33]=[s("i",{class:"fas fa-sync","aria-hidden":"true"},null,-1),y(" Force update ",-1)])],8,YD)):m("v-if",!0),n?.status=="removed"?(l(),d("button",{key:2,type:"button",class:"dropdown-item",onClick:a=>e.refreshItem(n)},[...t[34]||(t[34]=[s("i",{class:"fas fa-check-circle","aria-hidden":"true"},null,-1),y(" Enable ",-1)])],8,xD)):m("v-if",!0),n?.status=="expired"?(l(),d("button",{key:3,type:"button",class:"dropdown-item",onClick:a=>e.extendItem(n)},[...t[35]||(t[35]=[s("i",{class:"fas fa-calendar-plus","aria-hidden":"true"},null,-1),y(" Extend 6 months ",-1)])],8,JD)):m("v-if",!0),(n?.status=="ready"||n?.status=="expired"||n?.status=="error")&&n?.role!=="coauthor"?(l(),d("div",QD,[t[37]||(t[37]=s("div",{class:"dropdown-divider"},null,-1)),s("button",{type:"button",class:"dropdown-item dropdown-item-danger",onClick:a=>e.removeItem(n)},[...t[36]||(t[36]=[s("i",{class:"fas fa-trash-alt","aria-hidden":"true"},null,-1),y(" Remove ",-1)])],8,XD)])):m("v-if",!0)])]))])],10,lD))],64))),128)),!e.loading&&e.filteredItems?.length==0?(l(),d("div",ZD,[t[39]||(t[39]=s("i",{class:"fas fa-inbox","aria-hidden":"true"},null,-1)),e.items?.length==0?(l(),d("span",eR,"You have no anonymizations yet.")):m("v-if",!0),e.items?.length>0?(l(),d("span",tR,"Nothing matches the current filters.")):m("v-if",!0),s("div",sR,[e.hasActiveFilters()?(l(),d("button",{key:0,type:"button",class:"btn btn-outline-ink",onClick:t[11]||(t[11]=n=>e.clearFilters())},"Clear filters")):m("v-if",!0),e.items?.length==0?(l(),d("a",nR,[...t[38]||(t[38]=[s("i",{class:"fa fa-plus-circle mr-1","aria-hidden":"true"},null,-1),y(" New anonymization",-1)])])):m("v-if",!0)])])):m("v-if",!0)],8,tD)])])}var oR={class:"explorer-page"},rR=["aria-label"],iR=["textContent"],aR={class:"leftCol-head"},lR={class:"leftCol-search"},dR={class:"tree-search-box"},uR={type:"text",class:"tree-search-input",placeholder:"Search files","aria-label":"Search files"},cR={class:"leftCol-project-header"},pR=["textContent"],fR={class:"project-file-count"},mR={class:"leftCol-body"},hR={key:0,class:"paper-inline-warning",role:"alert"},vR={key:1,class:"paper-inline-warning",role:"alert"},yR={class:"leftCol-foot"},gR=["title"],bR={class:"explorer-main"},wR={class:"status-bar"},kR={class:"breadcrumb paths","aria-label":"Path"},_R=["textContent"],ER={class:"status-bar-actions"},CR=["href"],NR={class:"d-none d-md-inline"},SR={class:"d-none d-md-inline"},DR=["href"],RR=["href"],TR=["href"],OR=["href"],AR={class:"explorer-content"};function Qa(e,t){let o=Qe("tree"),r=Qe("partial-view"),n=ye("field");return l(),d("div",oR,[E(s("button",{class:"sidebar-toggle",onClick:t[0]||(t[0]=i=>e.sidebarCollapsed=!e.sidebarCollapsed),"aria-label":e.sidebarCollapsed?"Show files":"Hide files"},[s("i",{class:T(["fas",e.sidebarCollapsed?"fa-folder-open":"fa-times"])},null,2),s("span",{textContent:c(e.sidebarCollapsed?"Files":"Close")},null,8,iR)],8,rR),[[H,e.files?.length]]),E(s("div",{class:T(["leftCol",{collapsed:e.sidebarCollapsed}])},[s("div",aR,[t[7]||(t[7]=s("span",{class:"leftCol-eyebrow"},"Files",-1)),s("button",{class:"leftCol-close","aria-label":"Close files",onClick:t[1]||(t[1]=i=>e.sidebarCollapsed=!0)},[...t[6]||(t[6]=[s("i",{class:"fas fa-times"},null,-1)])])]),s("div",lR,[s("div",dR,[s("i",{class:T(["fas tree-search-icon",e.fileSearchLoading?"fa-spinner fa-spin":"fa-search"])},null,2),E(s("input",uR,null,512),[[n,{state:e.viewState,set:i=>{e.fileSearchQuery=i},value:e.fileSearchQuery,form:null,options:{debounce:300},change:()=>{e.onFileSearchChange()}}]]),E(s("kbd",{class:"tree-search-kbd"},c(e.isMac?"\u2318":"Ctrl+")+"K",513),[[H,!e.fileSearchQuery]]),E(s("button",{class:"tree-search-clear","aria-label":"Clear search",onClick:t[2]||(t[2]=i=>{e.fileSearchQuery="",e.onFileSearchChange()})},"\xD7",512),[[H,e.fileSearchQuery]])])]),s("div",cR,[s("span",{class:"project-name",textContent:c(e.repoId)},null,8,pR),s("span",fR,c(e.fileCounts?.[""]||e.files?.length)+" files",1)]),s("div",mR,[e.options?.truncatedFolders?.length>0?(l(),d("div",hR,[t[8]||(t[8]=s("i",{class:"fas fa-exclamation-triangle"},null,-1)),y(" "+c(e.fmt?.translate("WARNINGS.repo_truncated")),1)])):m("v-if",!0),e.options?.hasSubmodules?(l(),d("div",vR,[t[9]||(t[9]=s("i",{class:"fas fa-exclamation-triangle"},null,-1)),y(" "+c(e.fmt?.translate("WARNINGS.submodules_not_included")),1)])):m("v-if",!0),Re(o,{class:"files",file:e.files,"search-query":e.fileSearchQuery,"search-results":e.fileSearchResults,page:e.viewState},null,8,["file","search-query","search-results","page"])]),s("div",yR,[s("span",{class:"last-update","data-toggle":"tooltip","data-placement":"top",title:e.options?.lastUpdateDate}," Updated "+c(e.fmt?.date(e.options?.lastUpdateDate)),9,gR)])],2),[[H,e.files?.length]]),E(s("div",{class:"leftCol-backdrop",onClick:t[3]||(t[3]=i=>e.sidebarCollapsed=!0)},null,512),[[H,e.files?.length&&!e.sidebarCollapsed]]),s("div",bR,[s("div",wR,[s("ol",kR,[(l(!0),d(x,null,re(e.paths,(i,a)=>(l(),d("li",{class:"breadcrumb-item",textContent:c(i)},null,8,_R))),256))]),s("div",ER,[e.options?.isAdmin||e.options?.isOwner?(l(),d("a",{key:0,class:"btn btn-sm","aria-label":"Edit",href:e.safeUrl("/anonymize/"+e.repoId)},[...t[10]||(t[10]=[s("i",{class:"far fa-edit"},null,-1),s("span",{class:"d-none d-md-inline"}," Edit",-1)])],8,CR)):m("v-if",!0),e.type=="html-doc"&&!e.showSource?(l(),d("button",{key:1,class:T(["btn btn-sm",{"btn-active":e.allowScripts}]),"aria-label":"Allow this document to run JavaScript",title:"Scripts in this file are blocked by default. Enable them only if you trust the repository \u2014 the document stays isolated from your session either way.",onClick:t[4]||(t[4]=i=>e.toggleAllowScripts())},[t[11]||(t[11]=s("i",{class:"fab fa-js"},null,-1)),s("span",NR,c(e.allowScripts?"JS on":"JS off"),1)],2)):m("v-if",!0),e.type=="html-doc"?(l(),d("button",{key:2,class:"btn btn-sm","aria-label":"Toggle between the rendered document and its source",title:"Toggle between the rendered document and its source",onClick:t[5]||(t[5]=i=>e.toggleSource())},[s("i",{class:T(["fas",e.showSource?"fa-eye":"fa-code"])},null,2),s("span",SR,c(e.showSource?"Rendered":"Source"),1)])):m("v-if",!0),E(s("a",{target:"_self",class:"btn btn-sm","aria-label":"View raw current file",title:"View the raw content of the current file",href:e.safeUrl(e.url)},[...t[12]||(t[12]=[s("i",{class:"fas fa-file-alt"},null,-1),s("span",{class:"d-none d-md-inline"}," Raw",-1)])],8,DR),[[H,e.content!=null]]),E(s("a",{target:"_self",class:"btn btn-sm","aria-label":"Download current file",title:"Download the current file",href:e.safeUrl(e.url+"&download=true")},[...t[13]||(t[13]=[s("i",{class:"fas fa-download"},null,-1),s("span",{class:"d-none d-md-inline"}," Download",-1)])],8,RR),[[H,e.content!=null]]),e.options?.download?(l(),d("a",{key:3,target:"_self",class:"btn btn-sm","aria-label":"Download full repository as ZIP",title:"Download the full repository as a ZIP archive",href:e.safeUrl("/api/repo/"+e.repoId+"/zip")},[...t[14]||(t[14]=[s("i",{class:"fas fa-file-archive"},null,-1),s("span",{class:"d-none d-md-inline"}," Full repo ZIP",-1)])],8,TR)):m("v-if",!0),e.options?.hasWebsite?(l(),d("a",{key:4,target:"_self",class:"btn btn-sm","aria-label":"Website",href:e.safeUrl("/w/"+e.repoId+"/")},[...t[15]||(t[15]=[s("i",{class:"fas fa-globe"},null,-1),s("span",{class:"d-none d-md-inline"}," Website",-1)])],8,OR)):m("v-if",!0)])]),s("div",AR,[Re(r,{name:"partials/pageView.htm",state:e.viewState},null,8,["state"])])])])}var IR={class:"paper-faq"};function Xa(e,t){return l(),d("div",IR,[...t[0]||(t[0]=[_e('
Help

Answers to the questions that come up most.

If something's missing, write to us \u2014 report a bug on GitHub.

',1),s("div",{class:"paper-faq-body"},[s("aside",{class:"paper-faq-toc"},[s("div",{class:"paper-faq-toc-head"},"Contents"),s("nav",null,[s("a",{href:"#faq-general"},"General"),s("a",{href:"#faq-features"},"Features"),s("a",{href:"#faq-limitations"},"Limitations"),s("a",{href:"#faq-privacy"},"Privacy & Security"),s("a",{href:"#faq-hosting"},"Self-Hosting")])]),s("section",{class:"faq-section","aria-label":"FAQs"},[s("div",null,[m(" General "),s("h4",{class:"faq-cat"},[s("i",{class:"fas fa-info-circle mr-2"}),y("General ")]),s("div",{class:"panel-group",id:"faq-general",role:"tablist","aria-multiselectable":"true"},[s("div",{class:"panel panel-default mb-3"},[s("div",{class:"panel-heading p-3",role:"tab",id:"headingWhatIs"},[s("h3",{class:"panel-title"},[s("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-general",href:"#whatIs","aria-expanded":"false","aria-controls":"whatIs"}," What is Anonymous GitHub? ")])]),s("div",{id:"whatIs",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingWhatIs"},[s("div",{class:"panel-body p-3"},[s("p",null," Anonymous GitHub is a free, open-source tool that anonymizes GitHub repositories and pull requests for double-anonymous (double-blind) peer review. It replaces identifying information \u2014 such as the repository owner, organization name, and custom terms \u2014 so that reviewers cannot determine the identity of the authors through the code repository. ")])])]),s("div",{class:"panel panel-default mb-3"},[s("div",{class:"panel-heading p-3",role:"tab",id:"headingHowWork"},[s("h3",{class:"panel-title"},[s("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-general",href:"#howWork","aria-expanded":"false","aria-controls":"howWork"}," How does Anonymous GitHub work? ")])]),s("div",{id:"howWork",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingHowWork"},[s("div",{class:"panel-body p-3"},[s("p",null," Anonymous GitHub either downloads the complete repository and anonymizes the content, or proxies requests to GitHub on the fly. In both cases, the original and anonymized versions of files are cached on the server. The system automatically detects and replaces the repository owner, organization name, and repository name. You can also specify additional custom terms to anonymize using one-per-line regex patterns. ")])])]),s("div",{class:"panel panel-default mb-3"},[s("div",{class:"panel-heading p-3",role:"tab",id:"headingScope"},[s("h3",{class:"panel-title"},[s("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-general",href:"#scope","aria-expanded":"false","aria-controls":"scope"}," What is the scope of anonymization? ")])]),s("div",{id:"scope",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingScope"},[s("div",{class:"panel-body p-3"},[s("p",null," In double-anonymous peer review, the boundary of anonymization is the paper plus its online appendix \u2014 not the entire internet. Searching for any part of the paper or the online appendix can be considered a deliberate attempt to break anonymity. Anonymous GitHub anonymizes the repository owner, organization, repository name, file and directory names, and file contents across all text-based file types. ")])])]),s("div",{class:"panel panel-default mb-3"},[s("div",{class:"panel-heading p-3",role:"tab",id:"headingCost"},[s("h3",{class:"panel-title"},[s("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-general",href:"#cost","aria-expanded":"false","aria-controls":"cost"}," How much does it cost? ")])]),s("div",{id:"cost",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingCost"},[s("div",{class:"panel-body p-3"},[s("p",null,[y(" Anonymous GitHub is completely free to use. However, the server costs hundreds of dollars per year to maintain. If you find the service useful, a small donation would be greatly appreciated. You can support the project by "),s("a",{href:"https://github.com/sponsors/tdurieux/",target:"_blank"},"sponsoring on GitHub"),y(", donating through "),s("a",{href:"https://ko-fi.com/tdurieux",target:"_blank"},"Ko-fi"),y(', or by clicking the "Support me" button on the site. ')])])])])]),m(" Features "),s("h4",{class:"faq-cat"},[s("i",{class:"fas fa-cogs mr-2"}),y("Features ")]),s("div",{class:"panel-group",id:"faq-features",role:"tablist","aria-multiselectable":"true"},[s("div",{class:"panel panel-default mb-3"},[s("div",{class:"panel-heading p-3",role:"tab",id:"headingFormats"},[s("h3",{class:"panel-title"},[s("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-features",href:"#formats","aria-expanded":"false","aria-controls":"formats"}," Which file formats are supported? ")])]),s("div",{id:"formats",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingFormats"},[s("div",{class:"panel-body p-3"},[s("p",null," Anonymous GitHub can display and render a wide variety of file types: "),s("ul",null,[s("li",null,[s("strong",null,"Text and source code"),y(" \u2014 displayed with syntax highlighting")]),s("li",null,[s("strong",null,"Markdown"),y(" \u2014 rendered as formatted HTML")]),s("li",null,[s("strong",null,"Images"),y(" (PNG, JPG, SVG, etc.) \u2014 displayed inline")]),s("li",null,[s("strong",null,"PDFs"),y(" \u2014 rendered directly in the browser")]),s("li",null,[s("strong",null,"Jupyter Notebooks"),y(" \u2014 rendered with code cells and outputs")])]),s("p",null," Only text-based files are anonymized. Anonymous GitHub analyzes the content of each file to determine whether it is textual or binary. ")])])]),s("div",{class:"panel panel-default mb-3"},[s("div",{class:"panel-heading p-3",role:"tab",id:"headingPR"},[s("h3",{class:"panel-title"},[s("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-features",href:"#pullRequests","aria-expanded":"false","aria-controls":"pullRequests"}," Can I anonymize pull requests? ")])]),s("div",{id:"pullRequests",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingPR"},[s("div",{class:"panel-body p-3"},[s("p",null," Yes. In addition to full repositories, Anonymous GitHub supports anonymizing individual pull requests. Simply paste the URL of a GitHub pull request when creating a new anonymized repository, and the system will automatically detect that it is a pull request and anonymize it accordingly. ")])])]),s("div",{class:"panel panel-default mb-3"},[s("div",{class:"panel-heading p-3",role:"tab",id:"headingConference"},[s("h3",{class:"panel-title"},[s("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-features",href:"#conference","aria-expanded":"false","aria-controls":"conference"}," What is the Conference ID feature? ")])]),s("div",{id:"conference",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingConference"},[s("div",{class:"panel-body p-3"},[s("p",null," When creating an anonymized repository, you can associate it with a Conference ID. This allows conferences to define default anonymization settings (such as expiration dates) that are automatically applied to repositories submitted under that conference. If your conference provides a Conference ID, enter it during the anonymization setup. ")])])]),s("div",{class:"panel panel-default mb-3"},[s("div",{class:"panel-heading p-3",role:"tab",id:"headingExpiration"},[s("h3",{class:"panel-title"},[s("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-features",href:"#expiration","aria-expanded":"false","aria-controls":"expiration"}," What happens when an anonymized repository expires? ")])]),s("div",{id:"expiration",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingExpiration"},[s("div",{class:"panel-body p-3"},[s("p",null," You can configure one of three expiration strategies when creating your anonymized repository: "),s("ul",null,[s("li",null,[s("strong",null,"Never expire"),y(" \u2014 the anonymized repository remains accessible indefinitely.")]),s("li",null,[s("strong",null,"Redirect to GitHub"),y(" \u2014 after expiration, visitors are redirected to the original GitHub repository.")]),s("li",null,[s("strong",null,"Remove content"),y(" \u2014 after expiration, the anonymized content is deleted from the server.")])])])])]),s("div",{class:"panel panel-default mb-3"},[s("div",{class:"panel-heading p-3",role:"tab",id:"headingDownload"},[s("h3",{class:"panel-title"},[s("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-features",href:"#download","aria-expanded":"false","aria-controls":"download"}," Can I download an anonymized repository? ")])]),s("div",{id:"download",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingDownload"},[s("div",{class:"panel-body p-3"},[s("p",null," Yes. Anonymized repositories can be downloaded as a ZIP file. This is useful if reviewers want to build or test the code locally. The downloaded archive contains the fully anonymized version of the repository. ")])])]),s("div",{class:"panel panel-default mb-3"},[s("div",{class:"panel-heading p-3",role:"tab",id:"headingUpdates"},[s("h3",{class:"panel-title"},[s("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-features",href:"#updates","aria-expanded":"false","aria-controls":"updates"}," Are updates to the original repository reflected in the anonymized version? ")])]),s("div",{id:"updates",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingUpdates"},[s("div",{class:"panel-body p-3"},[s("p",null," Yes. The anonymized repository tracks the source on GitHub: when you push new commits to the original repository, the anonymized view picks up those changes (cached files are refreshed against GitHub). This means you can keep iterating on the code while reviewers have the link, and you do not need to recreate the anonymized repository every time you update the source. "),s("p",null," A few practical implications worth keeping in mind: "),s("ul",null,[s("li",null," You can safely create the anonymized repository early in the writing process \u2014 later commits will be visible to reviewers without any additional action. "),s("li",null," If you rename files, add new identifiers, or introduce new contributor names after creation, revisit the anonymization options (custom terms, file filters) to make sure the new content is still properly anonymized. "),s("li",null," If the original repository is made private or deleted, the anonymized repository will no longer be able to fetch updated content. ")])])])]),s("div",{class:"panel panel-default mb-3"},[s("div",{class:"panel-heading p-3",role:"tab",id:"headingCLI"},[s("h3",{class:"panel-title"},[s("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-features",href:"#cli","aria-expanded":"false","aria-controls":"cli"}," Is there a command-line tool? ")])]),s("div",{id:"cli",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingCLI"},[s("div",{class:"panel-body p-3"},[s("p",null," Yes. Anonymous GitHub provides a CLI tool that lets you anonymize repositories locally, generating an anonymized ZIP file on your machine. Install it via npm: "),s("pre",{style:{"background-color":"var(--hover-bg-color)",padding:"12px","border-radius":"4px","margin-top":"8px",color:"var(--color)"}},[s("code",null,`npm install -g @tdurieux/anonymous_github -anonymous_github`)])])])])]),m(" Limitations "),s("h4",{class:"faq-cat"},[s("i",{class:"fas fa-exclamation-triangle mr-2"}),y("Limitations ")]),s("div",{class:"panel-group",id:"faq-limitations",role:"tablist","aria-multiselectable":"true"},[s("div",{class:"panel panel-default mb-3"},[s("div",{class:"panel-heading p-3",role:"tab",id:"headingLimitation"},[s("h3",{class:"panel-title"},[s("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-limitations",href:"#limitation","aria-expanded":"false","aria-controls":"limitation"}," What are the limitations of Anonymous GitHub? ")])]),s("div",{id:"limitation",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingLimitation"},[s("div",{class:"panel-body p-3"},[s("ul",null,[s("li",null," Anonymous GitHub only anonymizes text-based files. Binary files (compiled executables, archives, etc.) are served as-is without anonymization. "),s("li",null," Files larger than 8 MB are not supported. "),s("li",null," Static site generators (such as Jekyll) used with GitHub Pages are not fully supported, although Markdown files are converted to HTML. "),s("li",null," The anonymization of terms within source code may change the behavior of the program (e.g., if a replaced term appears in a string literal or identifier). ")])])])])]),m(" Privacy & Security "),s("h4",{class:"faq-cat"},[s("i",{class:"fas fa-shield-alt mr-2"}),y("Privacy & Security ")]),s("div",{class:"panel-group",id:"faq-privacy",role:"tablist","aria-multiselectable":"true"},[s("div",{class:"panel panel-default mb-3"},[s("div",{class:"panel-heading p-3",role:"tab",id:"headingData"},[s("h3",{class:"panel-title"},[s("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-privacy",href:"#data","aria-expanded":"false","aria-controls":"data"}," How is my data handled? ")])]),s("div",{id:"data",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingData"},[s("div",{class:"panel-body p-3"},[s("p",null," Data stored on Anonymous GitHub is never shared or used for any purpose beyond providing the anonymization service. When a repository is removed or expires, only its configuration is retained \u2014 this makes it easy to restore the repository if needed and ensures that no future repository reuses the same ID. ")])])]),s("div",{class:"panel panel-default mb-3"},[s("div",{class:"panel-heading p-3",role:"tab",id:"headingPermissions"},[s("h3",{class:"panel-title"},[s("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-privacy",href:"#permissions","aria-expanded":"false","aria-controls":"permissions"}," Why does GitHub say Anonymous GitHub asks for write access? ")])]),s("div",{id:"permissions",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingPermissions"},[s("div",{class:"panel-body p-3"},[s("p",null," Anonymous GitHub only reads your repositories \u2014 it never pushes commits, opens issues, modifies settings, or deletes anything. From your perspective as a user, the service is read-only. "),s("p",null,[y(" However, GitHub's OAuth scopes do not offer a read-only option for private repositories: the only scope that grants access to private repos is "),s("code",null,"repo"),y(", which is documented as full read/write access. To support users who want to anonymize a private repository, Anonymous GitHub must request that scope, and GitHub then displays the broader permission text at sign-in. The application itself only ever performs read operations against the GitHub API. ")]),s("p",null,[y(" If you only anonymize public repositories, the source code is open and can be audited on the "),s("a",{href:"https://github.com/tdurieux/anonymous_github/",target:"_blank"},"GitHub repository"),y(", or you can self-host your own instance. ")])])])]),s("div",{class:"panel panel-default mb-3"},[s("div",{class:"panel-heading p-3",role:"tab",id:"headingViewer"},[s("h3",{class:"panel-title"},[s("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-privacy",href:"#viewer","aria-expanded":"false","aria-controls":"viewer"}," Can repository owners see who viewed their anonymized repository? ")])]),s("div",{id:"viewer",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingViewer"},[s("div",{class:"panel-body p-3"},[s("p",null," No. Only the total number of views is tracked as an incremental counter. It is not possible for the repository owner or for Anonymous GitHub to identify individual viewers. Reviewer anonymity is fully preserved. ")])])])]),m(" Self-Hosting "),s("h4",{class:"faq-cat"},[s("i",{class:"fas fa-server mr-2"}),y("Self-Hosting ")]),s("div",{class:"panel-group",id:"faq-hosting",role:"tablist","aria-multiselectable":"true"},[s("div",{class:"panel panel-default mb-3"},[s("div",{class:"panel-heading p-3",role:"tab",id:"headingDeploy"},[s("h3",{class:"panel-title"},[s("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-hosting",href:"#deploy","aria-expanded":"false","aria-controls":"deploy"}," Can I deploy my own instance? ")])]),s("div",{id:"deploy",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingDeploy"},[s("div",{class:"panel-body p-3"},[s("p",null,[y(" Yes. Anonymous GitHub is fully open source (GPL-3.0) and supports Docker-based deployment. You will need to configure a GitHub OAuth app and provide a GitHub token. Detailed setup instructions are available on the "),s("a",{href:"https://github.com/tdurieux/anonymous_github/",target:"_blank"},"GitHub repository"),y(". ")]),s("p",null," The basic steps are: "),s("ol",null,[s("li",null,"Clone the repository and install dependencies"),s("li",null,[y("Create a "),s("code",null,".env"),y(" file with your GitHub token, OAuth client ID, and client secret")]),s("li",null,[y("Run "),s("code",null,"docker-compose up -d")])])])])])]),s("div",{class:"text-center mt-5 mb-5 p-4",style:{"background-color":"var(--hover-bg-color)","border-radius":"8px"}},[s("p",{class:"mb-2",style:{"font-size":"1.1rem"}}," Still have questions? "),s("p",{class:"text-muted mb-0"},[y(" Open an issue on the "),s("a",{href:"https://github.com/tdurieux/anonymous_github/issues",target:"_blank"},"GitHub repository"),y(" and we'll be happy to help. ")])])])])],-1)])])}var VR={class:"pr-page"},PR={class:"container paper-page pr-page-inner"},qR={class:"pr-header"},MR={class:"paper-page-title pr-title"},$R=["textContent"],FR={key:1,class:"text-muted"},LR=["href"],UR={class:"pr-header-meta"},zR={key:0,class:"pr-meta-item"},HR=["textContent"],BR={key:1,class:"pr-meta-item"},GR=["textContent"],jR={key:2,class:"pr-meta-item"},WR=["textContent"],KR={key:0,class:"paper-tabs",role:"tablist"},YR=["textContent"],xR=["textContent"],JR={class:"paper-tab-content"},QR={key:0},XR={class:"pr-comments"},ZR={class:"pr-comment"},eT={class:"pr-comment-head"},tT=["textContent"],sT={key:0,class:"pr-comment-date"},nT={key:0,class:"paper-table-empty"},oT={key:1},rT={class:"pr-comments"},iT={class:"pr-comment"},aT={class:"pr-comment-head"},lT={key:0,class:"pr-comment-author"},dT=["textContent"],uT=["textContent"],cT={key:0,class:"pr-comment-body"},pT={key:0,class:"paper-table-empty"};function Za(e,t){let o=Qe("gist-file"),r=Qe("markdown");return l(),d("div",VR,[s("div",PR,[t[15]||(t[15]=s("div",{class:"paper-crumbs"},[s("a",{href:"/dashboard"},"Reviewer"),y(" \xA0/\xA0 "),s("span",{class:"here"},"Gist")],-1)),s("header",qR,[s("h1",MR,[e.details?.description?(l(),d("span",{key:0,textContent:c(e.details?.description)},null,8,$R)):m("v-if",!0),e.details?.description?m("v-if",!0):(l(),d("span",FR,"Untitled gist")),e.options?.isAdmin||e.options?.isOwner?(l(),d("a",{key:2,class:"btn btn-sm","aria-label":"Edit",href:e.safeUrl("/gist-anonymize/"+e.gistId)},[...t[2]||(t[2]=[s("i",{class:"far fa-edit"},null,-1),s("span",{class:"d-none d-md-inline"}," Edit",-1)])],8,LR)):m("v-if",!0)]),s("div",UR,[s("span",{class:T(["paper-pill",{good:e.details?.isPublic,warn:!e.details?.isPublic}])},c(e.details?.isPublic?"Public":"Secret"),3),e.details?.ownerLogin?(l(),d("span",zR,[t[3]||(t[3]=s("i",{class:"far fa-user"},null,-1)),t[4]||(t[4]=y(" @",-1)),s("span",{textContent:c(e.details?.ownerLogin)},null,8,HR)])):m("v-if",!0),e.details?.updatedDate?(l(),d("span",BR,[t[5]||(t[5]=s("i",{class:"far fa-clock"},null,-1)),t[6]||(t[6]=y()),s("span",{textContent:c(e.fmt?.date(e.details?.updatedDate))},null,8,GR)])):m("v-if",!0),e.details?.anonymizeDate?(l(),d("span",jR,[t[7]||(t[7]=s("i",{class:"fas fa-user-secret"},null,-1)),t[8]||(t[8]=y(" Anonymized ",-1)),s("span",{textContent:c(e.fmt?.date(e.details?.anonymizeDate))},null,8,WR)])):m("v-if",!0)])]),e.details?.files&&e.details?.files?.length||e.details?.comments&&e.details?.comments?.length?(l(),d("nav",KR,[e.details?.files?(l(),d("button",{key:0,class:T(["paper-tab",{active:e.tabState?.active=="files"}]),type:"button",role:"tab",onClick:t[0]||(t[0]=n=>e.tabState.active="files")},[t[9]||(t[9]=s("i",{class:"fas fa-file-code"},null,-1)),s("span",{textContent:c(e.fmt.plural(e.details?.files?.length,{0:"No files",one:"1 file",other:"{} files"}))},null,8,YR)],2)):m("v-if",!0),e.details?.comments?(l(),d("button",{key:1,class:T(["paper-tab",{active:e.tabState?.active=="comments"}]),type:"button",role:"tab",onClick:t[1]||(t[1]=n=>e.tabState.active="comments")},[t[10]||(t[10]=s("i",{class:"far fa-comment-dots"},null,-1)),s("span",{textContent:c(e.fmt.plural(e.details?.comments?.length,{0:"No comments",one:"1 comment",other:"{} comments"}))},null,8,xR)],2)):m("v-if",!0)])):m("v-if",!0),s("div",JR,[e.details?.files&&e.tabState?.active=="files"?(l(),d("div",QR,[s("ul",XR,[(l(!0),d(x,null,re(e.details?.files,(n,i)=>(l(),d("li",ZR,[s("div",eT,[s("strong",{textContent:c(n?.filename)},null,8,tT),n?.language?(l(),d("span",sT,c(n?.language),1)):m("v-if",!0)]),Re(o,{file:n},null,8,["file"])]))),256)),e.details?.files?.length?m("v-if",!0):(l(),d("li",nT,[...t[11]||(t[11]=[s("i",{class:"fas fa-file"},null,-1),s("span",null,"No files in this gist.",-1)])]))])])):m("v-if",!0),e.details?.comments&&e.tabState?.active=="comments"?(l(),d("div",oT,[s("ul",rT,[(l(!0),d(x,null,re(e.details?.comments,(n,i)=>(l(),d("li",iT,[s("div",aT,[n?.author?(l(),d("span",lT,[t[12]||(t[12]=s("i",{class:"far fa-user"},null,-1)),t[13]||(t[13]=y(" @",-1)),s("span",{textContent:c(n?.author)},null,8,dT)])):m("v-if",!0),n?.updatedDate?(l(),d("span",{key:1,class:"pr-comment-date",textContent:c(e.fmt?.date(n?.updatedDate))},null,8,uT)):m("v-if",!0)]),n?.body?(l(),d("div",cT,[Re(r,{content:n?.body},null,8,["content"])])):m("v-if",!0)]))),256)),e.details?.comments?.length?m("v-if",!0):(l(),d("li",pT,[...t[14]||(t[14]=[s("i",{class:"far fa-comment-dots"},null,-1),s("span",null,"No comments on this gist.",-1)])]))])])):m("v-if",!0)])])])}var fT={class:"collapse navbar-collapse",id:"navbarSupportedContent"},mT={class:"navbar-nav mr-auto smooth-scroll"},hT={key:0,class:"nav-item"},vT={key:1,class:"nav-item"},yT={key:2,class:"nav-item"},gT={key:3,class:"nav-item"},bT={class:"nav-item"},wT={key:4,class:"nav-item"},kT={class:"navbar-nav"},_T={key:0,class:"nav-item"},ET={key:1,class:"nav-item"},CT={key:2,class:"nav-item"},NT={key:3,class:"nav-item dropdown user-chip-wrap"},ST={class:"nav-link user-chip dropdown-toggle",href:"#",id:"navbarDropdownMenuLink",role:"button","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"},DT=["src"],RT={class:"user-chip-name"},TT={class:"dropdown-menu dropdown-menu-right user-menu","aria-labelledby":"navbarDropdownMenuLink"},OT={class:"dropdown-header"},AT=["innerHTML"];function el(e,t){return l(),d(x,null,[s("nav",{class:T(["navbar navbar-expand-lg",{"navbar-dark":e.isDarkMode}])},[t[13]||(t[13]=s("a",{class:"navbar-brand",href:"/"},[y("Anonymous "),s("em",null,"GitHub")],-1)),t[14]||(t[14]=s("button",{class:"navbar-toggler",type:"button","data-toggle":"collapse","data-target":"#navbarSupportedContent","aria-controls":"navbarSupportedContent","aria-expanded":"false","aria-label":"Toggle navigation"},[s("span",{class:"navbar-toggler-icon"})],-1)),s("div",fT,[s("ul",mT,[e.user?m("v-if",!0):(l(),d("li",hT,[s("a",{class:T(["nav-link",{active:e.path=="/"}]),href:"/"}," Home ",2)])),e.user?(l(),d("li",vT,[s("a",{class:T(["nav-link",{active:e.path=="/dashboard"}]),href:"/dashboard"},[...t[2]||(t[2]=[s("i",{class:"fas fa-th-large d-lg-none mr-1"},null,-1),y(" My work ",-1)])],2)])):m("v-if",!0),e.user?(l(),d("li",yT,[s("a",{class:T(["nav-link",{active:e.path=="/anonymize"||e.path=="/pull-request-anonymize"}]),href:"/anonymize"},[...t[3]||(t[3]=[s("i",{class:"fas fa-user-secret d-lg-none mr-1"},null,-1),y(" Anonymize ",-1)])],2)])):m("v-if",!0),e.user?(l(),d("li",gT,[s("a",{class:T(["nav-link",{active:e.path=="/conferences"}]),href:"/conferences"},[...t[4]||(t[4]=[s("i",{class:"fas fa-chalkboard-teacher d-lg-none mr-1"},null,-1),y(" Conferences ",-1)])],2)])):m("v-if",!0),s("li",bT,[s("a",{class:T(["nav-link",{active:e.path=="/faq"}]),href:"/faq"},[...t[5]||(t[5]=[s("i",{class:"fas fa-question-circle d-lg-none mr-1"},null,-1),y("FAQ",-1)])],2)]),e.user&&e.user?.isAdmin?(l(),d("li",wT,[s("a",{class:T(["nav-link",{active:e.path?.indexOf("/admin")===0}]),href:"/admin/"},[...t[6]||(t[6]=[s("i",{class:"fas fa-cog d-lg-none mr-1"},null,-1),y(" Admin ",-1)])],2)])):m("v-if",!0)]),s("ul",kT,[t[11]||(t[11]=s("li",{class:"nav-item"},[s("a",{class:"nav-link nav-icon",target:"_blank",href:"https://github.com/tdurieux/anonymous_github/",title:"Anonymous GitHub source code","aria-label":"Anonymous GitHub source code on GitHub",rel:"noopener","data-offset":"30"},[s("i",{class:"fab fa-github","aria-hidden":"true"})])],-1)),m(` "Report a bug" is about this service. Reviewers who land on an +`)}function h(N){let D=[],I="",C=/(\w+):(>=|<=|!=|>|<|=)?([^\s]+)/g,O=0,P;for(;P=C.exec(N);)I+=N.slice(O,P.index),O=C.lastIndex,D.push({key:P[1],op:P[2]||"=",val:P[3]});return I+=N.slice(O),{filters:D,free:I.trim().toLowerCase()}}function v(N,D){for(let I of D.filters){let C=(P,ee,J)=>{let K=parseFloat(P),U=parseFloat(ee);return J==="="?String(P)===String(ee):J==="!="?String(P)!==String(ee):J===">="?K>=U:J==="<="?K<=U:J===">"?K>U:J==="<"?KD&&O._bucket!==D?!1:v(O,N)),C=e.query.group;if(C){let O=J=>C==="module"?J.module:J.displayMessage||J.message||"_",P=new Map;for(let J of I){let K=O(J);if(P.has(K)){let U=P.get(K);U.count++,U._related.push(J),new Date(J.ts)>new Date(U.ts)&&(U.ts=J.ts,U._url=J._url,U._status=J._status),new Date(J.ts)new Date(K.ts).getTime()>=ee).length;I=Array.from(P.values())}else I=I.map((O,P)=>(O._key="row:"+P+":"+O.ts,O._related=[O],O._firstSeen=O.ts,O._lastHourCount=0,O.count=1,O));e.query.sort==="count"?I.sort((O,P)=>P.count-O.count||new Date(P.ts)-new Date(O.ts)):I.sort((O,P)=>new Date(P.ts)-new Date(O.ts)),e.visible=I}function f(N){let D=N?e.entries.length:0,I=N?e.pageSize:Math.max(e.pageSize,e.entries.length||e.pageSize);t.get("/api/admin/errors",{params:{offset:D,limit:I}}).then(C=>{let O=(C.data.entries||[]).map(u);e.entries=N?e.entries.concat(O):O,e.available=!!C.data.available,e.cap=C.data.max||e.cap,e.total=C.data.total||e.entries.length,g()},C=>console.error(C))}e.loadMore=()=>f(!0),e.canLoadMore=()=>e.entries.length{let D=N.data||{},I=D.prev24h?Math.round((D.last24h-D.prev24h)/D.prev24h*100):0;e.stats={last24h:D.last24h||0,prev24h:D.prev24h||0,delta:I,severity:D.severity||{error:0,warn:0,info:0},unique:D.unique||{error:0,warn:0,info:0},buckets:D.buckets||[],dropped:D.dropped||0}},N=>console.error(N))}function k(){f(),w()}e.barPx=(N,D)=>{let I=e.stats.buckets||[],C=0;for(let J of I)C=Math.max(C,(J.error||0)+(J.warn||0)+(J.info||0));if(!C)return 0;let O=(N.error||0)+(N.warn||0)+(N.info||0);if(!O)return 0;let P=Math.round(O/C*60),ee=N[D]||0;return Math.round(ee/O*P)},e.bucketTitle=N=>`${new Date(N.hour).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})} \xB7 ${N.error||0} err \xB7 ${N.warn||0} warn \xB7 ${N.info||0} info`,e.toggle=N=>{e.expanded[N._key]=!e.expanded[N._key]},e.setBucket=N=>{e.query.bucket=N},e.refreshNow=k,e.clearAll=()=>{confirm("Clear all captured errors?")&&t.delete("/api/admin/errors").then(k,N=>console.error(N))},e.exportCsv=()=>{let N=["ts","level","module","displayMessage","_status","_url","_repoId"],D=[N.join(",")];for(let P of e.visible)D.push(N.map(ee=>{let J=P[ee]==null?"":String(P[ee]);return/[",\n]/.test(J)?`"${J.replace(/"/g,'""')}"`:J}).join(","));let I=new Blob([D.join(` +`)],{type:"text/csv;charset=utf-8"}),C=URL.createObjectURL(I),O=document.createElement("a");O.href=C,O.download=`errors-${new Date().toISOString().slice(0,19)}.csv`,document.body.appendChild(O),O.click(),document.body.removeChild(O),URL.revokeObjectURL(C)};function b(N){e.copyHint=`${N} copied`,n.timeout(()=>{e.copyHint=""},1500)}e.copyJson=N=>{navigator.clipboard.writeText(N._detailJson).then(()=>b("JSON"))},e.copyCurl=N=>{if(!N._url)return;let I=`curl -X ${N._method||"GET"} '${window.location.origin}${N._url}'`;navigator.clipboard.writeText(I).then(()=>b("curl"))},k();let R=r(()=>{e.query.autoRefresh&&k()},15e3);e.on("dispose",()=>r.cancel(R)),e.watch("query.search",g),e.watch("query.bucket",g),e.watch("query.sort",g),e.watch("query.group",g)},Ha=function(e,t,o,r){if(e.Math=Math,e.watch("user.status",()=>{e.user==null&&o.url("/")}),e.user==null){o.url("/");return}e.data=null,e.loading=!0,e.error=null;function n(f){if(f==null)return"\u2014";for(var w=["B","KB","MB","GB","TB"],k=0,b=f;b>=1024&&k0?1:0)+" "+w[k]}e.humanBytes=n;function i(f){if(!f)return"\u2014";var w=Math.floor(f/86400),k=Math.floor(f%86400/3600),b=Math.floor(f%3600/60);return w>0?w+"d "+(k<10?"0":"")+k+"h":k>0?k+"h "+(b<10?"0":"")+b+"m":b+"m"}e.humanDuration=i;function a(f){return f==null?"\u2014":f>=1e6?(f/1e6).toFixed(1)+"M":f>=1e3?(f/1e3).toFixed(1)+"K":String(f)}e.humanNum=a,e.queueTotal=function(f){return f?(f.waiting||0)+(f.active||0)+(f.delayed||0)+(f.failed||0):0},e.statusCount=function(f){if(!e.data||!e.data.repos)return 0;for(var w=e.data.repos.statusBreakdown||[],k=0;kh[k])&&(h[k]=w[k])})})},function(f){e.loading=!1,e.error=f.data&&f.data.error||"Failed to load overview"})}v();var g=r(v,3e4);e.on("dispose",function(){r.cancel(g)})};var Ba=[{path:"/",template:"partials/home.htm",title:"Anonymous GitHub \u2013 Share the code, not the author",preserveExplorer:!1,setup:(e,t)=>Ta(e,t.http,t.location,t.window,t.timeout)},{path:"/dashboard",template:"partials/dashboard.htm",title:"Your anonymizations \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>Oa(e,t.http,t.location,t.promises,t.window,t.quotaService)},{path:"/pr-dashboard",redirect:"/dashboard"},{path:"/anonymize/:repoId?",template:"partials/anonymize.htm",title:"New anonymization \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>Yn(e,t.http,t.html,t.params,t.location,t.translate,t.timeout)},{path:"/pull-request-anonymize/:pullRequestId?",template:"partials/anonymize.htm",title:"Anonymize a pull request \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>Yn(e,t.http,t.html,t.params,t.location,t.translate,t.timeout)},{path:"/gist-anonymize/:gistId?",template:"partials/anonymize.htm",title:"Anonymize a gist \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>Yn(e,t.http,t.html,t.params,t.location,t.translate,t.timeout)},{path:"/status/:repoId",template:"partials/status.htm",title:"Repository status \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>Aa(e,t.http,t.params)},{path:"/conferences",template:"partials/conferences.htm",title:"Your conferences \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>Pa(e,t.http,t.location)},{path:"/conference/new",template:"partials/newConference.htm",title:"New conference \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>xo(e,t.http,t.location,t.params)},{path:"/conference/:conferenceId/edit",template:"partials/newConference.htm",title:"Edit conference \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>xo(e,t.http,t.location,t.params)},{path:"/conference/:conferenceId",template:"partials/conference.htm",title:"Conference \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>qa(e,t.http,t.location,t.params)},{path:"/faq",template:"partials/faq.htm",title:"FAQ \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>Sa(e,t.http)},{path:"/profile",template:"partials/profile.htm",title:"Your settings \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>Da(e,t.http,t.translate,t.timeout,t.quotaService)},{path:"/claim",template:"partials/claim.htm",title:"Claim an anonymization \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>Ra(e,t.http,t.location)},{path:"/pr/:pullRequestId/:path(.*)*",template:"partials/pullRequest.htm",title:"Anonymous pull request \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>Ia(e,t.http,t.location,t.params,t.html)},{path:"/gist/:gistId/:path(.*)*",template:"partials/gist.htm",title:"Anonymous gist \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>Va(e,t.http,t.location,t.params,t.html)},{path:"/r/:repoId/:path(.*)*",template:"partials/explorer.htm",title:"Anonymous repository \u2013 Anonymous GitHub",preserveExplorer:!0,setup:(e,t)=>Yo(e,t.http,t.location,t.params,t.html,t.promises)},{path:"/repository/:repoId/:path(.*)*",template:"partials/explorer.htm",title:"Anonymous repository \u2013 Anonymous GitHub",preserveExplorer:!0,setup:(e,t)=>Yo(e,t.http,t.location,t.params,t.html,t.promises)},{path:"/admin/",template:"partials/admin/overview.htm",title:"Admin \xB7 Overview \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>Ha(e,t.http,t.location,t.interval)},{path:"/admin/repositories",template:"partials/admin/repositories.htm",title:"Admin \xB7 Repositories \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>Ma(e,t.http,t.location)},{path:"/admin/users",template:"partials/admin/users.htm",title:"Admin \xB7 Users \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>$a(e,t.http,t.location)},{path:"/admin/users/:username",template:"partials/admin/user.htm",title:"Admin \xB7 User details \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>Fa(e,t.http,t.location,t.params)},{path:"/admin/conferences",template:"partials/admin/conferences.htm",title:"Admin \xB7 Conferences \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>La(e,t.http,t.location)},{path:"/admin/queues",template:"partials/admin/queues.htm",title:"Admin \xB7 Queues \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>Ua(e,t.http,t.location,t.interval,t.timeout)},{path:"/admin/errors",template:"partials/admin/errors.htm",title:"Admin \xB7 Errors \u2013 Anonymous GitHub",preserveExplorer:!1,setup:(e,t)=>za(e,t.http,t.location,t.interval)},{path:"/404",template:"partials/404.htm",title:"Page not found \u2013 Anonymous GitHub",preserveExplorer:!1,setup:()=>{}},{path:"/:pathMatch(.*)*",template:"partials/404.htm",title:"Page not found \u2013 Anonymous GitHub",setup:()=>{}}];var Fc={class:"paper-empty"};function Ga(e,t){return l(),d("div",Fc,[...t[0]||(t[0]=[Ee('
Error \xB7 404

This link
isn\u2019t here.

The anonymous mirror you\u2019re looking for has expired, been removed by its owner, or never existed. If you received this URL from an author, ask them to re-issue it.

',1)])])}var Lc={class:"container paper-page admin-page"},Uc={class:"admin-summary"},zc={class:"summary-total"},Hc={class:"count"},Bc={class:"count"},Gc={class:"count"},jc={class:"count"},Wc={class:"count"},Kc={key:0,class:"alert alert-danger",style:{margin:"8px 0"}},Yc={class:"w-100 admin-filter-toolbar","aria-label":"Conferences","accept-charset":"UTF-8"},xc={class:"admin-filter-row"},Jc={class:"search-wrap"},Qc={type:"search",class:"form-control",placeholder:"Search conferences\u2026",autocomplete:"off"},Xc={key:0,class:"admin-search-hint"},Zc={class:"admin-filter-inline","aria-label":"Pagination"},ep=["disabled"],tp={style:{"font-family":"var(--font-mono)","font-size":"12px",color:"var(--ink-muted)"}},sp=["disabled"],np={key:0,class:"admin-filter-row"},op={class:"admin-active-chips"},rp={class:"key"},ip=["onClick"],ap={class:"paper-table paper-table-conferences w-100",role:"table","aria-label":"Conferences"},lp={class:"paper-table-head",role:"row"},dp={role:"columnheader"},up={role:"columnheader"},cp={role:"columnheader"},pp={class:"paper-table-row",role:"row"},fp={class:"cell-anon",role:"cell"},mp={class:"anon-text"},hp=["textContent","href"],vp={class:"anon-sub"},yp={class:"cell-status",role:"cell"},gp=["textContent"],bp={class:"cell-views num",role:"cell"},wp=["textContent","href"],kp={class:"cell-expires",role:"cell"},_p={class:"cell-actions",role:"cell"},Ep={class:"dropdown"},Cp={class:"dropdown-menu dropdown-menu-right"},Np=["href"],Sp=["href"],Dp=["href"],Rp=["onClick"],Tp={key:0,class:"paper-table-empty"},Op={class:"admin-toolbar",style:{"justify-content":"space-between","border-bottom":"none"}},Ap={style:{"font-size":"12px",color:"var(--ink-muted)"}},Ip={key:0,class:"pagination-compact"},Vp=["disabled"],Pp=["max"],qp=["disabled"],Mp={class:"admin-filter-inline"},$p={class:"form-control form-control-sm"};function ja(e,t){let o=ge("field"),r=ge("form");return l(),d("div",Lc,[t[42]||(t[42]=Ee('
Admin \xA0/\xA0 Conferences

Conferences

',3)),s("div",Uc,[s("span",zc,c(e.total>=0?e.fmt.number(e.total):"\u2026"),1),s("span",{class:T(["summary-pill ok",{active:e.query?.ready}]),title:"Toggle ready filter",onClick:t[0]||(t[0]=n=>{e.query.ready=!e.query.ready,e.query.page=1})},[t[13]||(t[13]=y("Ready ",-1)),s("span",Hc,c(e.fmt?.number(e.statusCountFor("ready"))),1)],2),s("span",{class:T(["summary-pill warn",{active:e.query?.preparing}]),title:"Toggle preparing filter",onClick:t[1]||(t[1]=n=>{e.query.preparing=!e.query.preparing,e.query.page=1})},[t[14]||(t[14]=y("Preparing ",-1)),s("span",Bc,c(e.fmt?.number(e.statusCountFor("preparing"))),1)],2),s("span",{class:T(["summary-pill error",{active:e.query?.error}]),title:"Toggle errored filter",onClick:t[2]||(t[2]=n=>{e.query.error=!e.query.error,e.query.page=1})},[t[15]||(t[15]=y("Errored ",-1)),s("span",Gc,c(e.fmt?.number(e.statusCountFor("error"))),1)],2),s("span",{class:T(["summary-pill",{active:e.query?.expired}]),title:"Toggle expired filter",onClick:t[3]||(t[3]=n=>{e.query.expired=!e.query.expired,e.query.page=1})},[t[16]||(t[16]=y("Expired ",-1)),s("span",jc,c(e.fmt?.number(e.statusCountFor("expired"))),1)],2),s("span",{class:T(["summary-pill",{active:e.query?.removed}]),title:"Toggle removed filter",onClick:t[4]||(t[4]=n=>{e.query.removed=!e.query.removed,e.query.page=1})},[t[17]||(t[17]=y("Removed ",-1)),s("span",Wc,c(e.fmt?.number(e.statusCountFor("removed"))),1)],2)]),e.fetchError?(l(),d("div",Kc,[t[18]||(t[18]=s("i",{class:"fas fa-exclamation-triangle"},null,-1)),y(" "+c(e.fetchError),1)])):m("v-if",!0),E((l(),d("form",Yc,[s("div",xc,[s("div",Jc,[E(s("input",Qc,null,512),[[o,{state:e.viewState,set:n=>{e.query.search=n},value:e.query?.search,form:null,options:{}}]]),e.query?.search?m("v-if",!0):(l(),d("span",Xc,"/"))]),t[22]||(t[22]=s("span",{class:"admin-filter-spacer"},null,-1)),s("button",{class:"btn btn-sm",type:"button",onClick:t[5]||(t[5]=n=>e.exportCsv())},[...t[19]||(t[19]=[s("i",{class:"fas fa-file-csv"},null,-1),y(" Export",-1)])]),s("span",Zc,[s("button",{class:"btn btn-sm",type:"button",onClick:t[6]||(t[6]=n=>e.query.page=Math.max(1,e.query.page-1)),disabled:e.query?.page<=1},[...t[20]||(t[20]=[s("i",{class:"fas fa-chevron-left"},null,-1)])],8,ep),s("span",tp,c(e.query?.page)+"/"+c(e.totalPage||1),1),s("button",{class:"btn btn-sm",type:"button",onClick:t[7]||(t[7]=n=>e.query.page=Math.min(e.totalPage,e.query.page+1)),disabled:e.query?.page>=e.totalPage},[...t[21]||(t[21]=[s("i",{class:"fas fa-chevron-right"},null,-1)])],8,sp)])]),e.chips?.length?(l(),d("div",np,[s("div",op,[(l(!0),d(x,null,re(e.chips,(n,i)=>(l(),d("span",{class:"admin-active-chip",key:n?.key},[s("span",rp,c(n?.label),1),s("span",null,c(n?.value),1),s("button",{type:"button",onClick:a=>e.clearFilter(n.key)},[...t[23]||(t[23]=[s("i",{class:"fas fa-times"},null,-1)])],8,ip)]))),128))])])):m("v-if",!0)])),[[r,e.viewState]]),s("div",ap,[s("div",lp,[s("div",dp,[s("span",{class:T(["sortable",{active:e.query?.sort=="name"}]),onClick:t[8]||(t[8]=n=>e.sortBy("name"))},[t[24]||(t[24]=y("Conference ",-1)),s("i",{class:T(["fas",e.sortIcon("name")])},null,2)],2)]),s("div",up,[s("span",{class:T(["sortable",{active:e.query?.sort=="status"}]),onClick:t[9]||(t[9]=n=>e.sortBy("status"))},[t[25]||(t[25]=y("Status ",-1)),s("i",{class:T(["fas",e.sortIcon("status")])},null,2)],2)]),t[27]||(t[27]=s("div",{role:"columnheader",class:"num"},"Repos",-1)),s("div",cp,[s("span",{class:T(["sortable",{active:e.query?.sort=="startDate"}]),onClick:t[10]||(t[10]=n=>e.sortBy("startDate"))},[t[26]||(t[26]=y("Window ",-1)),s("i",{class:T(["fas",e.sortIcon("startDate")])},null,2)],2)]),t[28]||(t[28]=s("div",{role:"columnheader","aria-label":"Actions"},null,-1))]),(l(!0),d(x,null,re(e.filteredConferences,(n,i)=>(l(),d("div",pp,[s("div",fp,[t[30]||(t[30]=s("span",{class:"type-badge type-repo"},"Conf",-1)),s("div",mp,[s("a",{class:"repo-name",textContent:c(n?.name),href:e.safeUrl("/conference/"+n?.conferenceID)},null,8,hp),s("div",vp,[s("span",null,c(n?.conferenceID),1),t[29]||(t[29]=y("\xA0\xB7\xA0",-1)),s("span",null,c(e.fmt?.number(n?.price||0))+" \u20AC",1)])])]),s("div",yp,[s("span",{class:T(["status-dot",{"status-removed":n?.status=="removed"||n?.status=="expired","status-ready":n?.status=="ready","status-error":n?.status=="error","status-preparing":n?.status=="preparing"}])},null,2),s("span",{textContent:c(e.fmt?.title(n?.status))},null,8,gp)]),s("div",bp,[s("a",{title:"Show repositories in this conference",textContent:c(e.fmt?.number(n?.repositories?.length||0)),href:e.safeUrl("/admin/?conference="+n?.conferenceID)},null,8,wp)]),s("div",kp,c(e.fmt?.date(n?.startDate))+" \u2013 "+c(e.fmt?.date(n?.endDate)),1),s("div",_p,[s("div",Ep,[t[36]||(t[36]=s("button",{class:"btn btn-icon-dots",type:"button","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false","aria-label":"Actions"},[s("i",{class:"fas fa-ellipsis-h","aria-hidden":"true"})],-1)),s("div",Cp,[s("a",{class:"dropdown-item",href:e.safeUrl("/conference/"+n?.conferenceID+"/edit")},[...t[31]||(t[31]=[s("i",{class:"far fa-edit"},null,-1),y(" Edit",-1)])],8,Np),s("a",{class:"dropdown-item",href:e.safeUrl("/conference/"+n?.conferenceID+"/")},[...t[32]||(t[32]=[s("i",{class:"fa fa-eye"},null,-1),y(" View",-1)])],8,Sp),s("a",{class:"dropdown-item",href:e.safeUrl("/admin/?conference="+n?.conferenceID)},[...t[33]||(t[33]=[s("i",{class:"fas fa-code-branch"},null,-1),y(" View repositories",-1)])],8,Dp),t[35]||(t[35]=s("div",{class:"dropdown-divider"},null,-1)),E(s("a",{class:"dropdown-item text-danger",href:"#",onClick:be(a=>e.removeConference(n),["prevent"])},[...t[34]||(t[34]=[s("i",{class:"fas fa-trash-alt"},null,-1),y(" Remove",-1)])],8,Rp),[[H,n?.status!="removed"]])])])])]))),256)),e.filteredConferences?.length==0?(l(),d("div",Tp,[...t[37]||(t[37]=[s("i",{class:"fas fa-inbox"},null,-1),s("span",null,"No conferences match the current filters.",-1)])])):m("v-if",!0)]),s("div",Op,[s("span",Ap,c(e.fmt?.number(e.total))+" results",1),e.totalPage>1?(l(),d("div",Ip,[s("button",{class:"btn btn-sm",onClick:t[11]||(t[11]=n=>e.query.page=Math.max(1,e.query.page-1)),disabled:e.query?.page<=1},[...t[38]||(t[38]=[s("i",{class:"fas fa-chevron-left"},null,-1),y(" Previous",-1)])],8,Vp),E(s("input",{type:"number",class:"form-control form-control-sm",min:"1",style:{width:"56px"},max:e.totalPage},null,8,Pp),[[o,{state:e.viewState,set:n=>{e.query.page=n},value:e.query?.page,form:null,options:{}}]]),s("span",null,"of "+c(e.totalPage),1),s("button",{class:"btn btn-sm",onClick:t[12]||(t[12]=n=>e.query.page=Math.min(e.totalPage,e.query.page+1)),disabled:e.query?.page>=e.totalPage},[...t[39]||(t[39]=[y("Next ",-1),s("i",{class:"fas fa-chevron-right"},null,-1)])],8,qp)])):m("v-if",!0),s("span",Mp,[t[41]||(t[41]=s("label",null,"Per page",-1)),E((l(),d("select",$p,[...t[40]||(t[40]=[Ee('',5)])])),[[o,{state:e.viewState,set:n=>{e.query.limit=n},value:e.query?.limit,form:null,options:{}}]])])])])}var Fp={class:"container paper-page admin-page errors-page"},Lp={class:"errors-header"},Up={class:"errors-actions"},zp={class:"kpi-grid"},Hp={class:"kpi-card"},Bp={class:"kpi-value"},Gp={key:0},jp={key:1},Wp={class:"kpi-card kpi-error"},Kp={class:"kpi-value"},Yp={class:"kpi-sub"},xp={class:"kpi-card kpi-warn"},Jp={class:"kpi-value"},Qp={class:"kpi-sub"},Xp={class:"kpi-card kpi-info"},Zp={class:"kpi-value"},ef={class:"kpi-sub"},tf={class:"kpi-value"},sf={class:"kpi-sub"},nf={key:0,class:"dropped-warn"},of={class:"volume-chart"},rf={class:"volume-bars"},af=["title"],lf={class:"errors-toolbar","aria-label":"Error filters"},df={class:"seg-tabs"},uf={class:"search-wrap"},cf={type:"search",class:"form-control",placeholder:"code:repo_not_found module:route status:>=400",autocomplete:"off"},pf={key:0,class:"filter-count"},ff={class:"select-wrap"},mf={class:"form-control form-control-sm"},hf={class:"select-wrap"},vf={class:"form-control form-control-sm"},yf={class:"autoref"},gf={type:"checkbox"},bf={key:0,class:"admin-empty"},wf={key:1,class:"errors-pager"},kf={key:2,class:"errors-list"},_f=["onClick"],Ef={class:"col-when"},Cf={class:"when-rel"},Nf={class:"when-abs"},Sf={class:"col-sev"},Df={class:"sev-label"},Rf={class:"col-mod"},Tf={class:"pill pill-module"},Of={class:"col-msg"},Af={class:"msg-code"},If={key:0,class:"msg-context"},Vf={key:1,class:"msg-detail"},Pf={key:2,class:"msg-url"},qf={class:"col-count"},Mf={key:0,class:"count-pill"},$f={key:1,class:"count-pill count-pill-muted"},Ff={class:"col-status"},Lf={key:0,class:"errors-row-detail"},Uf={class:"detail-tabs"},zf=["onClick"],Hf=["onClick"],Bf=["onClick"],Gf={class:"detail-body"},jf={class:"detail-main"},Wf={key:0},Kf={key:1,class:"stack-pre"},Yf={key:2,class:"related-list"},xf={class:"when-abs"},Jf={class:"msg-url"},Qf={class:"detail-actions"},Xf=["onClick"],Zf=["onClick"],em={key:0,class:"copy-hint"},tm={class:"detail-aside"},sm={class:"aside-block"},nm=["title"],om={class:"aside-block"},rm=["title"],im={class:"aside-block"},am={class:"aside-value"},lm={key:0,class:"aside-sub"},dm={key:0,class:"aside-block"},um=["href"],cm={key:1,class:"aside-block"},pm={class:"aside-value mono"};function Wa(e,t){let o=ge("field"),r=ge("form");return l(),d("div",Fp,[t[32]||(t[32]=s("div",{class:"paper-crumbs"},[y("Admin \xA0/\xA0 "),s("span",{class:"here"},"Errors")],-1)),s("header",Lp,[t[10]||(t[10]=s("h1",{class:"paper-page-title"},"Errors",-1)),s("div",Up,[s("button",{class:"btn btn-sm",type:"button",onClick:t[0]||(t[0]=n=>e.exportCsv())},[...t[8]||(t[8]=[s("i",{class:"fas fa-file-export"},null,-1),y(" Export CSV",-1)])]),s("button",{class:"btn btn-sm btn-danger",type:"button",onClick:t[1]||(t[1]=n=>e.clearAll())},[...t[9]||(t[9]=[s("i",{class:"fas fa-trash"},null,-1),y(" Clear all",-1)])])])]),t[33]||(t[33]=Ee('',1)),s("section",zp,[s("div",Hp,[t[11]||(t[11]=s("div",{class:"kpi-label"},"Last 24h",-1)),s("div",Bp,c(e.stats?.last24h),1),s("div",{class:T(["kpi-sub",{up:e.stats?.delta>0,down:e.stats?.delta<0}])},[e.stats?.prev24h?(l(),d("span",Gp,c(e.stats?.delta>0?"+":"")+c(e.stats?.delta)+"% vs yesterday",1)):m("v-if",!0),e.stats?.prev24h?m("v-if",!0):(l(),d("span",jp,"no prior baseline"))],2)]),s("div",Wp,[t[12]||(t[12]=s("div",{class:"kpi-label"},"Errors (5xx)",-1)),s("div",Kp,c(e.stats?.severity?.error),1),s("div",Yp,c(e.stats?.unique?.error)+" unique",1)]),s("div",xp,[t[13]||(t[13]=s("div",{class:"kpi-label"},"Warnings (4xx)",-1)),s("div",Jp,c(e.stats?.severity?.warn),1),s("div",Qp,c(e.stats?.unique?.warn)+" unique",1)]),s("div",Xp,[t[14]||(t[14]=s("div",{class:"kpi-label"},"Info (auth, 404)",-1)),s("div",Zp,c(e.stats?.severity?.info),1),s("div",ef,c(e.stats?.unique?.info)+" unique",1)]),s("div",{class:T(["kpi-card",{"kpi-error":e.stats?.dropped>0}])},[t[15]||(t[15]=s("div",{class:"kpi-label"},"Captured",-1)),s("div",tf,c(e.total),1),s("div",sf,[y(" cap "+c(e.cap)+" \xB7 "+c(e.available?"live":"redis off")+" ",1),e.stats?.dropped>0?(l(),d("span",nf," \xB7 "+c(e.stats?.dropped)+" dropped",1)):m("v-if",!0)])],2)]),s("section",of,[t[16]||(t[16]=Ee('
Volume \xB7 24h \xB7 1h bucketserror warn info
',1)),s("div",rf,[(l(!0),d(x,null,re(e.stats?.buckets,(n,i)=>(l(),d("div",{class:"volume-bar",key:i,title:e.bucketTitle(n)},[s("span",{class:"seg seg-error",style:Ae({height:e.barPx(n,"error")+"px"})},null,4),s("span",{class:"seg seg-warn",style:Ae({height:e.barPx(n,"warn")+"px"})},null,4),s("span",{class:"seg seg-info",style:Ae({height:e.barPx(n,"info")+"px"})},null,4)],8,af))),128))])]),E((l(),d("form",lf,[s("div",df,[s("button",{type:"button",class:T({active:e.query?.bucket===""}),onClick:t[2]||(t[2]=n=>e.setBucket(""))},"All",2),s("button",{type:"button",class:T({active:e.query?.bucket==="error"}),onClick:t[3]||(t[3]=n=>e.setBucket("error"))},"5xx",2),s("button",{type:"button",class:T({active:e.query?.bucket==="warn"}),onClick:t[4]||(t[4]=n=>e.setBucket("warn"))},"4xx",2),s("button",{type:"button",class:T({active:e.query?.bucket==="info"}),onClick:t[5]||(t[5]=n=>e.setBucket("info"))},"Info",2)]),s("div",uf,[t[17]||(t[17]=s("i",{class:"fas fa-search search-icon"},null,-1)),E(s("input",cf,null,512),[[o,{state:e.viewState,set:n=>{e.query.search=n},value:e.query?.search,form:null,options:{}}]]),e.parsedFilterCount?(l(),d("span",pf,c(e.parsedFilterCount)+" filter"+c(e.parsedFilterCount>1?"s":""),1)):m("v-if",!0)]),s("div",ff,[t[19]||(t[19]=s("label",null,"Sort",-1)),E((l(),d("select",mf,[...t[18]||(t[18]=[s("option",{value:"recent"},"Most recent",-1),s("option",{value:"count"},"Most frequent",-1)])])),[[o,{state:e.viewState,set:n=>{e.query.sort=n},value:e.query?.sort,form:null,options:{}}]])]),s("div",hf,[t[21]||(t[21]=s("label",null,"Group",-1)),E((l(),d("select",vf,[...t[20]||(t[20]=[s("option",{value:""},"Off",-1),s("option",{value:"code"},"By code",-1),s("option",{value:"module"},"By module",-1)])])),[[o,{state:e.viewState,set:n=>{e.query.group=n},value:e.query?.group,form:null,options:{}}]])]),s("label",yf,[E(s("input",gf,null,512),[[o,{state:e.viewState,set:n=>{e.query.autoRefresh=n},value:e.query?.autoRefresh,form:null,options:{}}]]),t[22]||(t[22]=y(" Auto-refresh ",-1))]),s("button",{class:"btn btn-sm btn-icon",type:"button",title:"Refresh now",onClick:t[6]||(t[6]=n=>e.refreshNow())},[...t[23]||(t[23]=[s("i",{class:"fas fa-sync"},null,-1)])])])),[[r,e.viewState]]),e.visible?.length?m("v-if",!0):(l(),d("div",bf,"No errors captured.")),e.canLoadMore()&&e.visible?.length?(l(),d("div",wf,[s("span",null,"Showing "+c(e.entries?.length)+" of "+c(e.total)+" captured",1),s("button",{class:"btn btn-sm",type:"button",onClick:t[7]||(t[7]=n=>e.loadMore())},"Load older")])):m("v-if",!0),e.visible?.length?(l(),d("div",kf,[t[31]||(t[31]=Ee('
WhenSeverityModuleMessageCountStatus
',1)),(l(!0),d(x,null,re(e.visible,(n,i)=>(l(),d("div",{class:T(["errors-row",{open:e.expanded[n?._key]}]),key:n?._key},[s("div",{class:"errors-row-main",onClick:a=>e.toggle(n)},[s("div",Ef,[s("div",Cf,c(e.relTime(n?.ts)),1),s("div",Nf,c(e.absTimeShort(n?.ts)),1)]),s("div",Sf,[s("span",{class:T(["sev-dot","sev-"+n?._bucket])},null,2),s("span",Df,c(e.fmt?.uppercase(n?._bucket)),1)]),s("div",Rf,[s("span",Tf,c(n?.module),1)]),s("div",Of,[s("strong",Af,c(n?.displayMessage),1),n?.displayContext&&n?.displayContext!==n?.displayMessage?(l(),d("span",If,c(n?.displayContext),1)):m("v-if",!0),n?._detail?(l(),d("span",Vf,c(n?._detail),1)):m("v-if",!0),n?._url?(l(),d("div",Pf,c(n?._url),1)):m("v-if",!0)]),s("div",qf,[n?.count>1?(l(),d("span",Mf,"\xD7"+c(n?.count),1)):m("v-if",!0),n?.count===1?(l(),d("span",$f,"\xD71")):m("v-if",!0)]),s("div",Ff,[n?._status?(l(),d("span",{key:0,class:T(["status-pill","status-"+n?._bucket])},c(n?._status),3)):m("v-if",!0)])],8,_f),e.expanded[n?._key]?(l(),d("div",Lf,[s("div",Uf,[s("button",{type:"button",class:T({active:e.detailTab[n?._key]==="raw"||!e.detailTab[n?._key]}),onClick:a=>e.detailTab[n._key]="raw"},"Raw",10,zf),n?._stack?(l(),d("button",{key:0,type:"button",class:T({active:e.detailTab[n?._key]==="stack"}),onClick:a=>e.detailTab[n._key]="stack"},"Stack",10,Hf)):m("v-if",!0),n?.count>1?(l(),d("button",{key:1,type:"button",class:T({active:e.detailTab[n?._key]==="related"}),onClick:a=>e.detailTab[n._key]="related"},"Related ("+c(n?.count)+")",11,Bf)):m("v-if",!0)]),s("div",Gf,[s("div",jf,[(e.detailTab[n?._key]||"raw")==="raw"?(l(),d("pre",Wf,c(n?._detailJson),1)):m("v-if",!0),e.detailTab[n?._key]==="stack"?(l(),d("pre",Kf,c(n?._stack),1)):m("v-if",!0),e.detailTab[n?._key]==="related"?(l(),d("div",Yf,[(l(!0),d(x,null,re(n?._related,(a,u)=>(l(),d("div",{class:"related-row",key:u},[s("span",xf,c(e.absTimeShort(a?.ts)),1),s("span",Jf,c(a?._url),1),a?._status?(l(),d("span",{key:0,class:T(["status-pill","status-"+a?._bucket])},c(a?._status),3)):m("v-if",!0)]))),128))])):m("v-if",!0),s("div",Qf,[s("button",{class:"btn btn-sm",type:"button",title:"Copy a curl that reproduces the request",onClick:a=>e.copyCurl(n)},[...t[24]||(t[24]=[s("i",{class:"fas fa-terminal"},null,-1),y(" Copy curl",-1)])],8,Xf),s("button",{class:"btn btn-sm",type:"button",onClick:a=>e.copyJson(n)},[...t[25]||(t[25]=[s("i",{class:"fas fa-clipboard"},null,-1),y(" Copy JSON",-1)])],8,Zf),e.copyHint?(l(),d("span",em,c(e.copyHint),1)):m("v-if",!0)])]),s("aside",tm,[s("div",sm,[t[26]||(t[26]=s("div",{class:"aside-label"},"First seen",-1)),s("div",{class:"aside-value",title:e.absTime(n?._firstSeen)},c(e.relTime(n?._firstSeen)),9,nm)]),s("div",om,[t[27]||(t[27]=s("div",{class:"aside-label"},"Last seen",-1)),s("div",{class:"aside-value",title:e.absTime(n?.ts)},c(e.relTime(n?.ts)),9,rm)]),s("div",im,[t[28]||(t[28]=s("div",{class:"aside-label"},"Occurrences",-1)),s("div",am,[y(c(n?.count),1),n?._lastHourCount?(l(),d("span",lm," \xB7 "+c(n?._lastHourCount)+" this hour",1)):m("v-if",!0)])]),n?._repoId?(l(),d("div",dm,[t[29]||(t[29]=s("div",{class:"aside-label"},"Repository",-1)),s("a",{class:"aside-value",href:e.safeUrl("/r/"+n?._repoId)},c(n?._repoId),9,um)])):m("v-if",!0),n?._url?(l(),d("div",cm,[t[30]||(t[30]=s("div",{class:"aside-label"},"URL",-1)),s("div",pm,c(n?._url),1)])):m("v-if",!0)])])])):m("v-if",!0)],2))),128))])):m("v-if",!0)])}var fm={class:"container paper-page admin-page overview-page"},mm={key:0,class:"admin-empty"},hm={key:1,class:"alert alert-danger",style:{margin:"12px 0"}},vm={key:2},ym={class:"ov-kpi-row"},gm={class:"ov-kpi-card"},bm={class:"ov-kpi-value"},wm={class:"ov-kpi-sub"},km={class:"ov-kpi-card"},_m={class:"ov-kpi-sub"},Em={class:"ov-kpi-card"},Cm={class:"ov-kpi-sub"},Nm={class:"ov-kpi-card"},Sm={class:"ov-kpi-sub"},Dm={class:"ov-kpi-card"},Rm={class:"ov-kpi-value"},Tm={class:"ov-kpi-sub"},Om={class:"ov-daily-row"},Am={class:"ov-daily-card"},Im={class:"ov-daily-value"},Vm={class:"ov-daily-card"},Pm={class:"ov-daily-value"},qm={class:"ov-daily-sub"},Mm={class:"ov-daily-card"},$m={class:"ov-daily-value"},Fm={class:"ov-chart-row"},Lm={class:"ov-chart-card"},Um={key:0,class:"ov-spark-bars"},zm=["data-tip","aria-label"],Hm={key:1,class:"ov-spark-x"},Bm={class:"ov-chart-card"},Gm={key:0,class:"ov-spark-bars"},jm=["data-tip","aria-label"],Wm={key:1,class:"ov-spark-x"},Km={class:"ov-chart-card"},Ym={key:0,class:"ov-spark-bars"},xm=["data-tip","aria-label"],Jm={key:1,class:"ov-spark-x"},Qm={class:"ov-chart-card"},Xm={key:0,class:"ov-spark-bars"},Zm=["data-tip","aria-label"],eh={key:1,class:"ov-spark-x"},th={class:"ov-triple-row"},sh={class:"ov-panel-card"},nh={class:"ov-panel-head"},oh={class:"ov-panel-meta"},rh={class:"ov-stacked-bar"},ih={class:"ov-bar-legend"},ah={href:"/admin/repositories",class:"ov-legend-item"},lh={class:"ov-legend-n"},dh={href:"/admin/repositories",class:"ov-legend-item"},uh={class:"ov-legend-n"},ch={href:"/admin/repositories",class:"ov-legend-item"},ph={class:"ov-legend-n"},fh={href:"/admin/repositories",class:"ov-legend-item"},mh={class:"ov-legend-n"},hh={href:"/admin/repositories",class:"ov-legend-item"},vh={class:"ov-legend-n"},yh={class:"ov-panel-card"},gh={class:"ov-panel-head"},bh={class:"ov-panel-meta"},wh={class:"ov-error-bars"},kh={class:"ov-ebar-row"},_h={class:"ov-ebar-track"},Eh={class:"ov-ebar-n"},Ch={class:"ov-ebar-row"},Nh={class:"ov-ebar-track"},Sh={class:"ov-ebar-n"},Dh={class:"ov-ebar-row"},Rh={class:"ov-ebar-track"},Th={class:"ov-ebar-n"},Oh={key:0,class:"ov-panel-foot"},Ah={href:"/admin/errors"},Ih={class:"ov-panel-card"},Vh={class:"ov-routes-table"},Ph={class:"ov-route-row",href:"/admin/queues"},qh={class:"ov-route-n"},Mh={class:"ov-route-n"},$h={class:"ov-route-row",href:"/admin/queues"},Fh={class:"ov-route-n"},Lh={class:"ov-route-n"},Uh={class:"ov-route-row",href:"/admin/queues"},zh={class:"ov-route-n"},Hh={class:"ov-route-n"},Bh={class:"ov-services-card"},Gh={class:"ov-services-head"},jh={class:"ov-panel-meta"},Wh={class:"ov-services-grid"},Kh={class:"ov-svc"},Yh={class:"ov-svc-info"},xh={class:"ov-svc-meta"},Jh={class:"ov-svc-detail"},Qh={class:"ov-svc"},Xh={class:"ov-svc-info"},Zh={key:0,class:"ov-svc-meta"},ev={key:1,class:"ov-svc-meta"},tv={class:"ov-svc"},sv={class:"ov-svc-info"},nv={key:0,class:"ov-svc-meta"},ov={key:1,class:"ov-svc-meta"},rv={class:"ov-svc"},iv={class:"ov-svc-info"},av={key:0,class:"ov-svc-meta"},lv={key:1,class:"ov-svc-meta"},dv={class:"ov-svc"},uv={class:"ov-svc-info"},cv={class:"ov-svc-meta"};function Ka(e,t){return l(),d("div",fm,[t[42]||(t[42]=Ee('
Admin \xB7 System Health

Overview

',3)),e.loading?(l(),d("div",mm,"Loading overview\u2026")):m("v-if",!0),e.error?(l(),d("div",hm,[t[0]||(t[0]=s("i",{class:"fas fa-exclamation-triangle"},null,-1)),y(" "+c(e.error),1)])):m("v-if",!0),e.data?(l(),d("div",vm,[m(" \u2500\u2500 Top KPI row \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 "),s("section",ym,[s("div",gm,[t[1]||(t[1]=s("div",{class:"ov-kpi-label"},[y("Repositories "),s("span",{class:"ov-dot ov-dot-ok"})],-1)),s("div",bm,c(e.humanNum(e.data?.repos?.total)),1),s("div",wm,"+"+c(e.data?.repos?.newRepos24h)+" \xB7 last 24h",1)]),s("div",km,[t[2]||(t[2]=s("div",{class:"ov-kpi-label"},"CPU",-1)),s("div",{class:T(["ov-kpi-value",{"ov-val-warn":e.data?.system?.cpuPercent>80}])},c(e.data?.system?.cpuPercent)+"%",3),s("div",_m,c(e.data?.system?.cpuCount)+" cores \xB7 load "+c(e.data?.system?.loadAvg?.[0]?.toFixed(1)),1)]),s("div",Em,[t[3]||(t[3]=s("div",{class:"ov-kpi-label"},"Memory",-1)),s("div",{class:T(["ov-kpi-value",{"ov-val-warn":e.data?.system?.memPercent>85}])},c(e.data?.system?.memPercent)+"%",3),s("div",Cm,c(e.humanBytes(e.data?.system?.memUsed))+" / "+c(e.humanBytes(e.data?.system?.memTotal)),1)]),s("div",Nm,[t[4]||(t[4]=s("div",{class:"ov-kpi-label"},"Disk",-1)),s("div",{class:T(["ov-kpi-value",{"ov-val-warn":e.data?.system?.diskPercent>85}])},c(e.data?.system?.diskPercent)+"%",3),s("div",Sm,c(e.humanBytes(e.data?.system?.diskUsed))+" / "+c(e.humanBytes(e.data?.system?.diskTotal))+" \xB7 "+c(e.data?.system?.diskMount),1)]),s("div",Dm,[t[5]||(t[5]=s("div",{class:"ov-kpi-label"},"Uptime",-1)),s("div",Rm,c(e.humanDuration(e.data?.system?.uptime)),1),s("div",Tm,c(e.data?.system?.nodeVersion)+" \xB7 "+c(e.data?.system?.platform),1)])]),m(" \u2500\u2500 Daily activity highlights \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 "),s("section",Om,[s("div",Am,[t[6]||(t[6]=s("div",{class:"ov-daily-label"},"New repos today",-1)),s("div",Im,"+"+c(e.fmt?.number(e.data?.daily?.today?.repositories)),1),t[7]||(t[7]=s("div",{class:"ov-daily-sub"},"since yesterday",-1))]),s("div",Vm,[t[8]||(t[8]=s("div",{class:"ov-daily-label"},"New users today",-1)),s("div",Pm,"+"+c(e.fmt?.number(e.data?.daily?.today?.users)),1),s("div",qm,c(e.fmt?.number(e.data?.users?.total))+" total users",1)]),s("div",Mm,[t[9]||(t[9]=s("div",{class:"ov-daily-label"},"Page views today",-1)),s("div",$m,"+"+c(e.fmt?.number(e.data?.daily?.today?.pageViews)),1),t[10]||(t[10]=s("div",{class:"ov-daily-sub"},"since yesterday",-1))])]),m(" \u2500\u2500 Daily charts \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 "),s("section",Fm,[s("div",Lm,[t[11]||(t[11]=s("div",{class:"ov-chart-head"},[s("span",{class:"ov-chart-title"},"Daily page views \xB7 30d"),s("span",{class:"ov-chart-legend"},[s("span",{class:"ov-dot-legend ov-dot-accent"}),y("views/day")])],-1)),e.data?.history?.length?(l(),d("div",Um,[(l(!0),d(x,null,re(e.data?.history,(o,r)=>(l(),d("div",{class:"ov-spark-col has-tip",key:r,"data-tip":e.historyLabel(o)+": +"+e.fmt?.number(o?.dailyPageViews)+" views","aria-label":e.historyLabel(o)+": +"+e.fmt?.number(o?.dailyPageViews)+" views"},[s("span",{class:"ov-spark-fill",style:Ae({height:e.historyBarH(o,"dailyPageViews")+"px"})},null,4)],8,zm))),128))])):m("v-if",!0),e.data?.history?.length?(l(),d("div",Hm,[s("span",null,c(e.historyLabel(e.data?.history[0])),1),s("span",null,c(e.historyLabel(e.data?.history[Math?.floor(e.data?.history?.length/2)])),1),s("span",null,c(e.historyLabel(e.data?.history[e.data?.history?.length-1])),1)])):m("v-if",!0)]),s("div",Bm,[t[12]||(t[12]=s("div",{class:"ov-chart-head"},[s("span",{class:"ov-chart-title"},"New repos \xB7 30d"),s("span",{class:"ov-chart-legend"},[s("span",{class:"ov-dot-legend ov-dot-ok-fill"}),y("repos/day")])],-1)),e.data?.history?.length?(l(),d("div",Gm,[(l(!0),d(x,null,re(e.data?.history,(o,r)=>(l(),d("div",{class:"ov-spark-col has-tip",key:r,"data-tip":e.historyLabel(o)+": +"+e.fmt?.number(o?.dailyRepositories)+" repos","aria-label":e.historyLabel(o)+": +"+e.fmt?.number(o?.dailyRepositories)+" repos"},[s("span",{class:"ov-spark-fill ov-spark-fill-alt",style:Ae({height:e.historyBarH(o,"dailyRepositories")+"px"})},null,4)],8,jm))),128))])):m("v-if",!0),e.data?.history?.length?(l(),d("div",Wm,[s("span",null,c(e.historyLabel(e.data?.history[0])),1),s("span",null,c(e.historyLabel(e.data?.history[Math?.floor(e.data?.history?.length/2)])),1),s("span",null,c(e.historyLabel(e.data?.history[e.data?.history?.length-1])),1)])):m("v-if",!0)]),s("div",Km,[t[13]||(t[13]=s("div",{class:"ov-chart-head"},[s("span",{class:"ov-chart-title"},"Users \xB7 30d"),s("span",{class:"ov-chart-legend"},[s("span",{class:"ov-dot-legend ov-dot-user-fill"}),y("total users")])],-1)),e.data?.history?.length?(l(),d("div",Ym,[(l(!0),d(x,null,re(e.data?.history,(o,r)=>(l(),d("div",{class:"ov-spark-col has-tip",key:r,"data-tip":e.historyLabel(o)+": "+e.fmt?.number(o?.nbUsers)+" users","aria-label":e.historyLabel(o)+": "+e.fmt?.number(o?.nbUsers)+" users"},[s("span",{class:"ov-spark-fill ov-spark-fill-user",style:Ae({height:e.historyBarH(o,"nbUsers")+"px"})},null,4)],8,xm))),128))])):m("v-if",!0),e.data?.history?.length?(l(),d("div",Jm,[s("span",null,c(e.historyLabel(e.data?.history[0])),1),s("span",null,c(e.historyLabel(e.data?.history[Math?.floor(e.data?.history?.length/2)])),1),s("span",null,c(e.historyLabel(e.data?.history[e.data?.history?.length-1])),1)])):m("v-if",!0)]),s("div",Qm,[t[14]||(t[14]=s("div",{class:"ov-chart-head"},[s("span",{class:"ov-chart-title"},"New users \xB7 30d"),s("span",{class:"ov-chart-legend"},[s("span",{class:"ov-dot-legend ov-dot-new-user-fill"}),y("users/day")])],-1)),e.data?.history?.length?(l(),d("div",Xm,[(l(!0),d(x,null,re(e.data?.history,(o,r)=>(l(),d("div",{class:"ov-spark-col has-tip",key:r,"data-tip":e.historyLabel(o)+": +"+e.fmt?.number(o?.dailyUsers)+" users","aria-label":e.historyLabel(o)+": +"+e.fmt?.number(o?.dailyUsers)+" users"},[s("span",{class:"ov-spark-fill ov-spark-fill-new-user",style:Ae({height:e.historyBarH(o,"dailyUsers")+"px"})},null,4)],8,Zm))),128))])):m("v-if",!0),e.data?.history?.length?(l(),d("div",eh,[s("span",null,c(e.historyLabel(e.data?.history[0])),1),s("span",null,c(e.historyLabel(e.data?.history[Math?.floor(e.data?.history?.length/2)])),1),s("span",null,c(e.historyLabel(e.data?.history[e.data?.history?.length-1])),1)])):m("v-if",!0)])]),m(" \u2500\u2500 Three-panel row: Status / Errors / Queues \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 "),s("section",th,[m(" Repo status breakdown "),s("div",sh,[s("div",nh,[t[15]||(t[15]=s("span",{class:"ov-panel-title"},"Repo status",-1)),s("span",oh,c(e.fmt?.number(e.data?.repos?.total))+" total",1)]),s("div",rh,[s("span",{class:"ov-bar-seg ov-bar-ready",title:"Ready",style:Ae({width:e.barPct("ready")+"%"})},null,4),s("span",{class:"ov-bar-seg ov-bar-preparing",title:"Preparing",style:Ae({width:e.barPct("preparing")+"%"})},null,4),s("span",{class:"ov-bar-seg ov-bar-error",title:"Error",style:Ae({width:e.barPct("error")+"%"})},null,4),s("span",{class:"ov-bar-seg ov-bar-expired",title:"Expired",style:Ae({width:e.barPct("expired")+"%"})},null,4),s("span",{class:"ov-bar-seg ov-bar-removed",title:"Removed",style:Ae({width:e.barPct("removed")+"%"})},null,4)]),s("div",ih,[s("a",ah,[t[16]||(t[16]=s("span",{class:"ov-swatch ov-bar-ready"},null,-1)),t[17]||(t[17]=y(" ready ",-1)),s("span",lh,c(e.fmt?.number(e.statusCount("ready"))),1)]),s("a",dh,[t[18]||(t[18]=s("span",{class:"ov-swatch ov-bar-preparing"},null,-1)),t[19]||(t[19]=y(" preparing ",-1)),s("span",uh,c(e.fmt?.number(e.statusCount("preparing")+e.statusCount("download"))),1)]),s("a",ch,[t[20]||(t[20]=s("span",{class:"ov-swatch ov-bar-error"},null,-1)),t[21]||(t[21]=y(" error ",-1)),s("span",ph,c(e.fmt?.number(e.statusCount("error"))),1)]),s("a",fh,[t[22]||(t[22]=s("span",{class:"ov-swatch ov-bar-expired"},null,-1)),t[23]||(t[23]=y(" expired ",-1)),s("span",mh,c(e.fmt?.number(e.statusCount("expired")+e.statusCount("expiring"))),1)]),s("a",hh,[t[24]||(t[24]=s("span",{class:"ov-swatch ov-bar-removed"},null,-1)),t[25]||(t[25]=y(" removed ",-1)),s("span",vh,c(e.fmt?.number(e.statusCount("removed")+e.statusCount("removing"))),1)])])]),m(" Error breakdown "),s("div",yh,[s("div",gh,[t[26]||(t[26]=s("span",{class:"ov-panel-title"},"Errors \xB7 24h",-1)),s("span",bh,c(e.data?.errors?.last24h)+" total",1)]),s("div",wh,[s("div",kh,[t[27]||(t[27]=s("span",{class:"ov-ebar-label"},"5xx",-1)),s("span",_h,[s("span",{class:"ov-ebar-fill ov-ebar-error",style:Ae({width:e.errPct("error")+"%"})},null,4)]),s("span",Eh,c(e.data?.errors?.severity?.error),1)]),s("div",Ch,[t[28]||(t[28]=s("span",{class:"ov-ebar-label"},"4xx",-1)),s("span",Nh,[s("span",{class:"ov-ebar-fill ov-ebar-warn",style:Ae({width:e.errPct("warn")+"%"})},null,4)]),s("span",Sh,c(e.data?.errors?.severity?.warn),1)]),s("div",Dh,[t[29]||(t[29]=s("span",{class:"ov-ebar-label"},"Info",-1)),s("span",Rh,[s("span",{class:"ov-ebar-fill ov-ebar-info",style:Ae({width:e.errPct("info")+"%"})},null,4)]),s("span",Th,c(e.data?.errors?.severity?.info),1)])]),e.data?.repos?.recentErrors24h?(l(),d("div",Oh,[s("a",Ah,c(e.data?.repos?.recentErrors24h)+" repos in error state \u2192",1)])):m("v-if",!0)]),m(" Top routes / queues "),s("div",Ih,[t[34]||(t[34]=s("div",{class:"ov-panel-head"},[s("span",{class:"ov-panel-title"},"Queues"),s("span",{class:"ov-panel-meta"},"by state")],-1)),s("div",Vh,[t[33]||(t[33]=Ee('
QueueActiveWaitFailed
',1)),s("a",Ph,[t[30]||(t[30]=s("span",{class:"ov-route-name"},"download",-1)),s("span",qh,c(e.data?.queues?.download?.active),1),s("span",Mh,c(e.data?.queues?.download?.waiting),1),s("span",{class:T(["ov-route-n ov-route-lat",{"ov-n-bad":e.data?.queues?.download?.failed>0}])},c(e.data?.queues?.download?.failed),3)]),s("a",$h,[t[31]||(t[31]=s("span",{class:"ov-route-name"},"remove",-1)),s("span",Fh,c(e.data?.queues?.remove?.active),1),s("span",Lh,c(e.data?.queues?.remove?.waiting),1),s("span",{class:T(["ov-route-n ov-route-lat",{"ov-n-bad":e.data?.queues?.remove?.failed>0}])},c(e.data?.queues?.remove?.failed),3)]),s("a",Uh,[t[32]||(t[32]=s("span",{class:"ov-route-name"},"cache",-1)),s("span",zh,c(e.data?.queues?.cache?.active),1),s("span",Hh,c(e.data?.queues?.cache?.waiting),1),s("span",{class:T(["ov-route-n ov-route-lat",{"ov-n-bad":e.data?.queues?.cache?.failed>0}])},c(e.data?.queues?.cache?.failed),3)])])])]),m(" \u2500\u2500 Services bar \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500 "),s("section",Bh,[s("div",Gh,[t[35]||(t[35]=s("span",{class:"ov-panel-title"},"Services",-1)),s("span",jh,c(e.fmt?.number(e.data?.users?.total))+" users \xB7 "+c(e.data?.conferences?.total)+" conferences",1)]),s("div",Wh,[s("div",Kh,[t[37]||(t[37]=s("span",{class:"ov-svc-dot ov-dot-ok"},null,-1)),s("div",Yh,[t[36]||(t[36]=s("span",{class:"ov-svc-name"},"web",-1)),s("span",xh,c(e.data?.system?.nodeVersion),1)]),s("span",Jh,"uptime "+c(e.humanDuration(e.data?.system?.uptime)),1)]),s("div",Qh,[s("span",{class:T(["ov-svc-dot",e.queueTotal(e.data?.queues?.download)>0?"ov-dot-ok":"ov-dot-idle"])},null,2),s("div",Xh,[t[38]||(t[38]=s("span",{class:"ov-svc-name"},"download",-1)),e.queueTotal(e.data?.queues?.download)?(l(),d("span",Zh,c(e.queueTotal(e.data?.queues?.download))+" jobs",1)):m("v-if",!0),e.queueTotal(e.data?.queues?.download)?m("v-if",!0):(l(),d("span",ev,"idle"))])]),s("div",tv,[s("span",{class:T(["ov-svc-dot",e.queueTotal(e.data?.queues?.cache)>0?"ov-dot-ok":"ov-dot-idle"])},null,2),s("div",sv,[t[39]||(t[39]=s("span",{class:"ov-svc-name"},"cache",-1)),e.queueTotal(e.data?.queues?.cache)?(l(),d("span",nv,c(e.queueTotal(e.data?.queues?.cache))+" jobs",1)):m("v-if",!0),e.queueTotal(e.data?.queues?.cache)?m("v-if",!0):(l(),d("span",ov,"idle"))])]),s("div",rv,[s("span",{class:T(["ov-svc-dot",e.queueTotal(e.data?.queues?.remove)>0?"ov-dot-ok":"ov-dot-idle"])},null,2),s("div",iv,[t[40]||(t[40]=s("span",{class:"ov-svc-name"},"remove",-1)),e.queueTotal(e.data?.queues?.remove)?(l(),d("span",av,c(e.queueTotal(e.data?.queues?.remove))+" jobs",1)):m("v-if",!0),e.queueTotal(e.data?.queues?.remove)?m("v-if",!0):(l(),d("span",lv,"idle"))])]),s("div",dv,[s("span",{class:T(["ov-svc-dot",e.data?.repos?.recentErrors24h>10?"ov-dot-warn":"ov-dot-ok"])},null,2),s("div",uv,[t[41]||(t[41]=s("span",{class:"ov-svc-name"},"errors",-1)),s("span",cv,c(e.data?.errors?.last24h)+" / 24h",1)])])])])])):m("v-if",!0)])}var pv={class:"container paper-page admin-page"},fv={class:"q-header"},mv={class:"q-header-actions"},hv={class:"q-range-btns"},vv={class:"q-cards"},yv=["onClick"],gv={class:"q-card-head"},bv=["textContent"],wv=["textContent"],kv={class:"q-card-sub"},_v={key:0,class:"q-card-bar"},Ev={key:0,class:"q-detail"},Cv={class:"q-throughput"},Nv={class:"q-section-label"},Sv={class:"q-section-right"},Dv={class:"q-stats-panel"},Rv={class:"q-section-label"},Tv={class:"q-stats-grid"},Ov={class:"q-stat"},Av=["textContent"],Iv={class:"q-stat"},Vv=["textContent"],Pv={class:"q-stat"},qv=["textContent"],Mv={class:"q-stat"},$v=["textContent"],Fv={class:"q-stat"},Lv=["textContent"],Uv={class:"q-stat"},zv=["textContent"],Hv={class:"q-stats-actions"},Bv=["disabled"],Gv={class:"q-jobs"},jv={class:"q-jobs-header"},Wv={class:"q-section-label"},Kv={class:"q-state-filters"},Yv={class:"q-state-toggle"},xv={type:"checkbox"},Jv={class:"q-search-row"},Qv={type:"search",class:"form-control",placeholder:"Search by job/repo id\u2026",autocomplete:"off"},Xv={class:"q-auto-refresh"},Zv={type:"checkbox"},ey={key:0,class:"q-table"},ty=["onClick"],sy={class:"q-cell-state"},ny=["textContent"],oy=["textContent"],ry={class:"q-cell-id"},iy=["textContent","href"],ay={class:"q-cell-payload"},ly=["textContent"],dy={key:0,class:"q-payload-detail"},uy=["textContent"],cy=["textContent"],py={class:"q-cell-progress"},fy={key:0,class:"q-progress-wrap"},my=["textContent"],hy={class:"q-cell-actions"},vy=["onClick"],yy=["onClick"],gy={key:0,class:"q-detail-row"},by={colspan:"7"},wy={class:"q-job-detail"},ky={class:"q-job-detail-grid"},_y={class:"q-job-detail-item"},Ey={class:"q-job-detail-value"},Cy=["textContent","href"],Ny={class:"q-job-detail-item"},Sy={class:"q-job-detail-value"},Dy=["textContent"],Ry={key:0,class:"q-job-detail-item"},Ty=["textContent"],Oy={key:1,class:"q-job-detail-item"},Ay=["textContent"],Iy={key:2,class:"q-job-detail-item"},Vy={class:"q-job-detail-value"},Py={key:3,class:"q-job-detail-item"},qy=["textContent"],My={key:4,class:"q-job-detail-item"},$y=["textContent"],Fy={key:5,class:"q-job-detail-item"},Ly=["textContent"],Uy={key:6,class:"q-job-detail-item"},zy=["textContent"],Hy={key:7,class:"q-job-detail-item"},By=["textContent"],Gy={key:0,class:"q-job-detail-error"},jy=["textContent"],Wy={key:1},Ky=["textContent"],Yy={class:"q-job-detail-actions"},xy=["onClick"],Jy=["onClick"],Qy=["href"],Xy={key:1,class:"paper-table-empty",style:{border:"1px solid var(--border-color)","border-radius":"10px",background:"var(--paper-card)"}},Zy={key:0},eg={key:1};function Ya(e,t){let o=ge("field");return l(),d("div",pv,[t[47]||(t[47]=s("div",{class:"paper-crumbs"},[y("Admin \xA0/\xA0 "),s("span",{class:"here"},"Queues")],-1)),s("div",fv,[t[12]||(t[12]=s("h1",{class:"paper-page-title"},"Queues",-1)),s("div",mv,[s("div",hv,[s("button",{class:T(["btn btn-sm",{active:e.range=="1h"}]),onClick:t[0]||(t[0]=r=>e.setRange("1h"))},"1h",2),s("button",{class:T(["btn btn-sm",{active:e.range=="6h"}]),onClick:t[1]||(t[1]=r=>e.setRange("6h"))},"6h",2),s("button",{class:T(["btn btn-sm",{active:e.range=="24h"}]),onClick:t[2]||(t[2]=r=>e.setRange("24h"))},"24h",2),s("button",{class:T(["btn btn-sm",{active:e.range=="7d"}]),onClick:t[3]||(t[3]=r=>e.setRange("7d"))},"7d",2)]),s("button",{class:"btn btn-sm",onClick:t[4]||(t[4]=r=>e.pauseAll())},"Pause all"),s("button",{class:"btn btn-sm btn-dark",onClick:t[5]||(t[5]=r=>e.drainSelected())},"Drain "+c(e.selectedQueue),1)])]),t[48]||(t[48]=Ee('',1)),m(" Queue overview cards "),s("div",vv,[(l(!0),d(x,null,re(e.queueList,(r,n)=>(l(),d("div",{class:T(["q-card",{selected:e.selectedQueue==r?.key,paused:r?.paused}]),onClick:i=>e.selectQueue(r.key)},[s("div",gv,[s("span",{class:T(["q-dot",{"q-dot-red":r?.paused||r?.counts?.failed>0}])},null,2),s("span",{class:"q-card-name",textContent:c(r?.label)},null,8,bv)]),s("div",{class:"q-card-count",textContent:c((r?.counts?.waiting||0)+(r?.counts?.active||0)+(r?.counts?.delayed||0))},null,8,wv),s("div",kv,[s("span",null,"waiting \xB7 "+c(r?.counts?.active||0)+" active",1),r?.counts?.active?(l(),d("div",_v,[s("div",{class:"q-card-bar-fill",style:Ae({width:r?.counts?.active/((r?.counts?.waiting||0)+(r?.counts?.active||0)+(r?.counts?.delayed||0)||1)*100+"%"})},null,4)])):m("v-if",!0)])],10,yv))),256))]),m(" Detail: throughput chart + stats panel "),e.selectedStats?(l(),d("div",Ev,[s("div",Cv,[s("div",Nv,[y(c(e.selectedQueue)+"\xB7throughput ",1),s("span",Sv,[t[13]||(t[13]=s("span",{class:"q-legend-completed"},"\u25CF",-1)),t[14]||(t[14]=y(" completed ",-1)),t[15]||(t[15]=s("span",{class:"q-legend-failed"},"\u25CF",-1)),t[16]||(t[16]=y(" failed ",-1)),t[17]||(t[17]=s("span",{class:"q-legend-exec"},"- -",-1)),y(" avg time \xB7 "+c(e.fmt?.uppercase(e.range)),1)])]),t[18]||(t[18]=s("div",{class:"q-chart-wrap"},[s("canvas",{id:"q-throughput-chart",height:"180"}),s("div",{id:"q-chart-tooltip",class:"q-chart-tooltip",style:{display:"none"}}),s("div",{id:"q-chart-crosshair",class:"q-chart-crosshair",style:{display:"none"}})],-1))]),s("div",Dv,[s("div",Rv,c(e.selectedQueue)+"\xB7stats",1),s("div",Tv,[s("div",Ov,[t[19]||(t[19]=s("div",{class:"q-stat-label"},"WAITING",-1)),s("div",{class:"q-stat-value",textContent:c(e.selectedStats?.counts?.waiting||0)},null,8,Av)]),s("div",Iv,[t[20]||(t[20]=s("div",{class:"q-stat-label"},"ACTIVE",-1)),s("div",{class:"q-stat-value",textContent:c(e.selectedStats?.counts?.active||0)},null,8,Vv)]),s("div",Pv,[t[21]||(t[21]=s("div",{class:"q-stat-label"},"COMPLETED (24H)",-1)),s("div",{class:"q-stat-value",textContent:c(e.fmt?.number(e.selectedStats?.completed24h))},null,8,qv)]),s("div",Mv,[t[22]||(t[22]=s("div",{class:"q-stat-label"},"FAILED (24H)",-1)),s("div",{class:"q-stat-value",textContent:c(e.selectedStats?.failed24h||0)},null,8,$v)]),s("div",Fv,[t[23]||(t[23]=s("div",{class:"q-stat-label"},"DELAYED",-1)),s("div",{class:"q-stat-value",textContent:c(e.selectedStats?.counts?.delayed||0)},null,8,Lv)]),s("div",Uv,[t[24]||(t[24]=s("div",{class:"q-stat-label"},"WORKERS",-1)),s("div",{class:"q-stat-value",textContent:c(e.selectedStats?.workers||0)},null,8,zv)])]),s("div",Hv,[s("button",{class:"btn btn-sm",onClick:t[6]||(t[6]=r=>e.togglePause())},c(e.selectedStats?.paused?"Resume":"Pause"),1),s("button",{class:"btn btn-sm",onClick:t[7]||(t[7]=r=>e.retryFailed()),disabled:!e.selectedStats?.counts?.failed},"Retry failed",8,Bv),s("button",{class:"btn btn-sm",onClick:t[8]||(t[8]=r=>e.emptyQueue())},"Empty")])])])):m("v-if",!0),e.actionError?(l(),d("div",{key:1,class:"q-toast-error",onClick:t[9]||(t[9]=r=>e.actionError=null)},[t[25]||(t[25]=s("i",{class:"fas fa-exclamation-circle"},null,-1)),y(" "+c(e.actionError),1)])):m("v-if",!0),m(" Jobs table "),s("div",Gv,[s("div",jv,[s("div",Wv,"ALL JOBS \xB7 "+c(e.fmt?.uppercase(e.selectedQueue)),1),s("div",Kv,[(l(!0),d(x,null,re(e.allStates,(r,n)=>(l(),d("label",Yv,[E(s("input",xv,null,512),[[o,{state:e.viewState,set:i=>{e.stateFilter[r]=i},value:e.stateFilter[r],form:null,options:{}}]]),s("span",{class:T("q-state-chip q-state-"+r)},c(r),3)]))),256))])]),s("div",Jv,[E(s("input",Qv,null,512),[[o,{state:e.viewState,set:r=>{e.query.search=r},value:e.query?.search,form:null,options:{}}]]),s("label",Xv,[E(s("input",Zv,null,512),[[o,{state:e.viewState,set:r=>{e.query.autoRefresh=r},value:e.query?.autoRefresh,form:null,options:{}}]]),t[26]||(t[26]=y(" Auto-refresh ",-1))]),s("button",{class:"btn btn-sm",type:"button",title:"Refresh now",onClick:t[10]||(t[10]=r=>e.refreshNow())},[...t[27]||(t[27]=[s("i",{class:"fas fa-sync"},null,-1)])])]),e.filteredJobs().length>0?(l(),d("table",ey,[t[45]||(t[45]=s("thead",null,[s("tr",null,[s("th",null,"STATE"),s("th",null,"JOB ID"),s("th",null,"PAYLOAD"),s("th",null,"ATTEMPTS"),s("th",null,"DURATION"),s("th",null,"PROGRESS"),s("th")])],-1)),(l(!0),d(x,null,re(e.filteredJobs(),(r,n)=>(l(),d("tbody",null,[s("tr",{style:{cursor:"pointer"},class:T({"q-row-failed":r?._state=="failed","q-row-expanded":e.expanded[r?.id]}),onClick:i=>e.toggleJob(r)},[s("td",sy,[s("span",{textContent:c(r?._state),class:T("q-state-badge q-state-"+r?._state)},null,10,ny),r?._state=="delayed"&&r?.delayUntil?(l(),d("span",{key:0,class:"q-delay-hint",textContent:c(e.delayCountdown(r?.delayUntil))},null,8,oy)):m("v-if",!0)]),s("td",ry,[s("i",{class:T(["fas fa-chevron-right q-chevron",{"q-chevron-open":e.expanded[r?.id]}])},null,2),s("a",{target:"_blank",textContent:c("job:"+e.fmt.limitTo(r?.id,6)),onClick:t[11]||(t[11]=i=>i.stopPropagation()),href:e.safeUrl("/r/"+r?.id)},null,8,iy)]),s("td",ay,[s("span",{textContent:c(r?.name||"anonymize")},null,8,ly),r?.data?.repoId&&r?.data?.repoId!==r?.name?(l(),d("span",dy," \xB7 "+c(r?.data?.repoId),1)):m("v-if",!0)]),s("td",{class:"q-cell-num",textContent:c(r?.attemptsMade||1)},null,8,uy),s("td",{class:"q-cell-num",textContent:c(e.jobDuration(r))},null,8,cy),s("td",py,[e.jobProgressPct(r)!==null?(l(),d("div",fy,[s("div",{class:"q-progress-bar",style:Ae({"--pct":e.jobProgressPct(r)+"%"})},null,4),s("span",{class:"q-progress-label",textContent:c(e.jobProgressPct(r)+"%")},null,8,my)])):m("v-if",!0)]),s("td",hy,[r?._state=="failed"?(l(),d("button",{key:0,class:"btn btn-sm",title:"Retry",onClick:i=>{e.retryJob(r),i.stopPropagation()}},[...t[28]||(t[28]=[s("i",{class:"fas fa-sync"},null,-1)])],8,vy)):m("v-if",!0),s("button",{class:"btn btn-sm",title:"Remove",onClick:i=>{e.removeJob(r),i.stopPropagation()}},[...t[29]||(t[29]=[s("i",{class:"fas fa-trash-alt"},null,-1)])],8,yy)])],10,ty),e.expanded[r?.id]?(l(),d("tr",gy,[s("td",by,[s("div",wy,[s("div",ky,[s("div",_y,[t[30]||(t[30]=s("span",{class:"q-job-detail-label"},"JOB ID",-1)),s("span",Ey,[s("a",{target:"_blank",textContent:c(r?.id),href:e.safeUrl("/r/"+r?.id)},null,8,Cy)])]),s("div",Ny,[t[31]||(t[31]=s("span",{class:"q-job-detail-label"},"STATE",-1)),s("span",Sy,[s("span",{textContent:c(r?._state),class:T("q-state-badge q-state-"+r?._state)},null,10,Dy)])]),r?.data?.repoId?(l(),d("div",Ry,[t[32]||(t[32]=s("span",{class:"q-job-detail-label"},"REPO ID",-1)),s("span",{class:"q-job-detail-value",textContent:c(r?.data?.repoId)},null,8,Ty)])):m("v-if",!0),r?.timestamp?(l(),d("div",Oy,[t[33]||(t[33]=s("span",{class:"q-job-detail-label"},"CREATED",-1)),s("span",{class:"q-job-detail-value",textContent:c(e.humanTime(r?.timestamp))},null,8,Ay)])):m("v-if",!0),r?._state=="delayed"&&r?.delayUntil?(l(),d("div",Iy,[t[34]||(t[34]=s("span",{class:"q-job-detail-label"},"RETRY AT",-1)),s("span",Vy,c(e.humanTime(r?.delayUntil))+" ("+c(e.delayCountdown(r?.delayUntil))+")",1)])):m("v-if",!0),r?.processedOn?(l(),d("div",Py,[t[35]||(t[35]=s("span",{class:"q-job-detail-label"},"PROCESSED",-1)),s("span",{class:"q-job-detail-value",textContent:c(e.humanTime(r?.processedOn))},null,8,qy)])):m("v-if",!0),r?.finishedOn?(l(),d("div",My,[t[36]||(t[36]=s("span",{class:"q-job-detail-label"},"FINISHED",-1)),s("span",{class:"q-job-detail-value",textContent:c(e.humanTime(r?.finishedOn))},null,8,$y)])):m("v-if",!0),r?.attemptsMade?(l(),d("div",Fy,[t[37]||(t[37]=s("span",{class:"q-job-detail-label"},"ATTEMPTS",-1)),s("span",{class:"q-job-detail-value",textContent:c(r?.attemptsMade)},null,8,Ly)])):m("v-if",!0),r?.progress&&r?.progress?.status?(l(),d("div",Uy,[t[38]||(t[38]=s("span",{class:"q-job-detail-label"},"STATUS",-1)),s("span",{class:"q-job-detail-value",textContent:c(r?.progress?.status)},null,8,zy)])):m("v-if",!0),e.jobProgressPct(r)!==null?(l(),d("div",Hy,[t[39]||(t[39]=s("span",{class:"q-job-detail-label"},"PROGRESS",-1)),s("span",{class:"q-job-detail-value",textContent:c(e.jobProgressPct(r)+"%")},null,8,By)])):m("v-if",!0)]),r?.failedReason?(l(),d("div",Gy,[t[40]||(t[40]=s("span",{class:"q-job-detail-label"},"ERROR",-1)),s("div",{class:"q-error-reason",textContent:c(r?.failedReason)},null,8,jy)])):m("v-if",!0),r?.stacktrace?.length?(l(),d("div",Wy,[t[41]||(t[41]=s("span",{class:"q-job-detail-label"},"STACKTRACE",-1)),(l(!0),d(x,null,re(r?.stacktrace,(i,a)=>(l(),d("pre",{class:"q-error-stack",key:a},[s("code",{textContent:c(i)},null,8,Ky)]))),128))])):m("v-if",!0),s("div",Yy,[r?._state=="failed"?(l(),d("button",{key:0,class:"btn btn-sm",onClick:i=>e.retryJob(r)},[...t[42]||(t[42]=[s("i",{class:"fas fa-sync"},null,-1),y(" Retry",-1)])],8,xy)):m("v-if",!0),s("button",{class:"btn btn-sm",onClick:i=>e.removeJob(r)},[...t[43]||(t[43]=[s("i",{class:"fas fa-trash-alt"},null,-1),y(" Remove",-1)])],8,Jy),s("a",{class:"btn btn-sm",target:"_blank",href:e.safeUrl("/r/"+r?.id)},[...t[44]||(t[44]=[s("i",{class:"fas fa-external-link-alt"},null,-1),y(" View repo",-1)])],8,Qy)])])])])):m("v-if",!0)]))),256))])):m("v-if",!0),e.filteredJobs().length==0?(l(),d("div",Xy,[t[46]||(t[46]=s("i",{class:"fas fa-check-circle"},null,-1)),e.query?.search?m("v-if",!0):(l(),d("span",Zy,"No jobs in the "+c(e.selectedQueue)+" queue.",1)),e.query?.search?(l(),d("span",eg,"No jobs match the current filters.")):m("v-if",!0)])):m("v-if",!0)])])}var tg={class:"container paper-page admin-page"},sg={class:"admin-summary"},ng={class:"summary-total"},og={class:"summary-meta"},rg={class:"count"},ig={class:"count"},ag={class:"count"},lg={class:"count"},dg={class:"count"},ug={key:0,class:"alert alert-danger",style:{margin:"8px 0"}},cg={class:"w-100 admin-filter-toolbar","aria-label":"Repositories","accept-charset":"UTF-8"},pg={class:"admin-filter-row"},fg={class:"search-wrap"},mg={type:"search",class:"form-control","aria-label":"Search repositories",placeholder:"Search repoId, source repo, error message\u2026",autocomplete:"off"},hg={key:0,class:"admin-search-hint"},vg={class:"admin-filter-inline"},yg={type:"text",class:"form-control form-control-sm",placeholder:"username"},gg={class:"admin-filter-inline"},bg={type:"text",class:"form-control form-control-sm",placeholder:"ID"},wg={class:"admin-filter-inline","aria-label":"Pagination"},kg=["disabled"],_g={style:{"font-family":"var(--font-mono)","font-size":"12px",color:"var(--ink-muted)"}},Eg=["disabled"],Cg={key:0,class:"admin-filter-row"},Ng={class:"admin-active-chips"},Sg={class:"key"},Dg=["onClick"],Rg={key:1,class:"bulk-bar"},Tg={class:"paper-table paper-table-repos has-bulk w-100",role:"table","aria-label":"Repositories"},Og={class:"paper-table-head",role:"row"},Ag={role:"columnheader",style:{width:"28px"}},Ig=["checked"],Vg={role:"columnheader"},Pg={role:"columnheader"},qg={role:"columnheader",class:"num"},Mg={role:"columnheader"},$g={role:"cell",style:{width:"28px"}},Fg={type:"checkbox","aria-label":"Select repository"},Lg={class:"cell-anon",role:"cell"},Ug={class:"anon-text"},zg=["textContent","href"],Hg={class:"anon-sub"},Bg=["textContent","href"],Gg={key:0},jg=["textContent","href"],Wg={key:1},Kg=["textContent","href"],Yg={key:2},xg={class:"cell-status",role:"cell"},Jg={class:"status-line"},Qg=["textContent"],Xg=["textContent","title"],Zg=["textContent"],eb=["textContent"],tb={class:"cell-actions",role:"cell"},sb={class:"dropdown"},ob={class:"dropdown-menu dropdown-menu-right"},rb=["href"],ib=["href"],ab=["href"],lb=["onClick"],db=["onClick"],ub=["onClick"],cb=["onClick"],pb=["onClick"],fb=["onClick"],mb={key:0,class:"paper-table-empty"},hb={class:"admin-toolbar",style:{"justify-content":"space-between","border-bottom":"none"}},vb={style:{"font-size":"12px",color:"var(--ink-muted)"}},yb={key:0,class:"pagination-compact"},gb=["disabled"],bb=["max"],wb=["disabled"],kb={class:"admin-filter-inline"},_b={class:"form-control form-control-sm"};function xa(e,t){let o=ge("field"),r=ge("form");return l(),d("div",tg,[t[61]||(t[61]=Ee('
Admin \xA0/\xA0 Repositories

Repositories

',3)),s("div",sg,[s("span",ng,c(e.total>=0?e.fmt.number(e.total):"\u2026"),1),s("span",og,c(e.fmt?.humanFileSize(e.totalSize))+" on disk",1),s("span",{class:T(["summary-pill ok",{active:e.query?.ready}]),title:"Toggle ready filter",onClick:t[0]||(t[0]=n=>{e.query.ready=!e.query.ready,e.query.page=1})},[t[18]||(t[18]=y("Ready ",-1)),s("span",rg,c(e.fmt?.number(e.statusCountFor("ready"))),1)],2),s("span",{class:T(["summary-pill warn",{active:e.query?.preparing}]),title:"Toggle preparing filter",onClick:t[1]||(t[1]=n=>{e.query.preparing=!e.query.preparing,e.query.page=1})},[t[19]||(t[19]=y("Preparing ",-1)),s("span",ig,c(e.fmt?.number(e.statusCountFor("preparing")+e.statusCountFor("download"))),1)],2),s("span",{class:T(["summary-pill error",{active:e.query?.error}]),title:"Toggle errored filter",onClick:t[2]||(t[2]=n=>{e.query.error=!e.query.error,e.query.page=1})},[t[20]||(t[20]=y("Errored ",-1)),s("span",ag,c(e.fmt?.number(e.statusCountFor("error"))),1)],2),s("span",{class:T(["summary-pill",{active:e.query?.expired}]),title:"Toggle expired filter",onClick:t[3]||(t[3]=n=>{e.query.expired=!e.query.expired,e.query.page=1})},[t[21]||(t[21]=y("Expired ",-1)),s("span",lg,c(e.fmt?.number(e.statusCountFor("expired")+e.statusCountFor("expiring"))),1)],2),s("span",{class:T(["summary-pill",{active:e.query?.removed}]),title:"Toggle removed filter",onClick:t[4]||(t[4]=n=>{e.query.removed=!e.query.removed,e.query.page=1})},[t[22]||(t[22]=y("Removed ",-1)),s("span",dg,c(e.fmt?.number(e.statusCountFor("removed")+e.statusCountFor("removing"))),1)],2)]),e.fetchError?(l(),d("div",ug,[t[23]||(t[23]=s("i",{class:"fas fa-exclamation-triangle"},null,-1)),y(" "+c(e.fetchError),1)])):m("v-if",!0),E((l(),d("form",cg,[m(" Row 1: search + scoped inputs + headline actions "),s("div",pg,[s("div",fg,[E(s("input",mg,null,512),[[o,{state:e.viewState,set:n=>{e.query.search=n},value:e.query?.search,form:null,options:{}}]]),e.query?.search?m("v-if",!0):(l(),d("span",hg,"/"))]),s("span",vg,[t[24]||(t[24]=s("label",null,"Owner",-1)),E(s("input",yg,null,512),[[o,{state:e.viewState,set:n=>{e.query.owner=n},value:e.query?.owner,form:null,options:{}}]])]),s("span",gg,[t[25]||(t[25]=s("label",null,"Conference",-1)),E(s("input",bg,null,512),[[o,{state:e.viewState,set:n=>{e.query.conference=n},value:e.query?.conference,form:null,options:{}}]])]),t[29]||(t[29]=s("span",{class:"admin-filter-spacer"},null,-1)),s("button",{class:"btn btn-sm",type:"button",title:"Export current view to CSV",onClick:t[5]||(t[5]=n=>e.exportCsv())},[...t[26]||(t[26]=[s("i",{class:"fas fa-file-csv"},null,-1),y(" Export",-1)])]),s("span",wg,[s("button",{class:"btn btn-sm",type:"button",onClick:t[6]||(t[6]=n=>e.query.page=Math.max(1,e.query.page-1)),disabled:e.query?.page<=1},[...t[27]||(t[27]=[s("i",{class:"fas fa-chevron-left"},null,-1)])],8,kg),s("span",_g,c(e.query?.page)+"/"+c(e.totalPage||1),1),s("button",{class:"btn btn-sm",type:"button",onClick:t[7]||(t[7]=n=>e.query.page=Math.min(e.totalPage,e.query.page+1)),disabled:e.query?.page>=e.totalPage},[...t[28]||(t[28]=[s("i",{class:"fas fa-chevron-right"},null,-1)])],8,Eg)])]),m(" Row 2: appears only when there are active filter chips "),e.chips?.length?(l(),d("div",Cg,[s("div",Ng,[(l(!0),d(x,null,re(e.chips,(n,i)=>(l(),d("span",{class:"admin-active-chip",key:n?.key},[s("span",Sg,c(n?.label),1),s("span",null,c(n?.value),1),s("button",{type:"button","aria-label":"Remove filter",onClick:a=>e.clearFilter(n.key)},[...t[30]||(t[30]=[s("i",{class:"fas fa-times"},null,-1)])],8,Dg)]))),128))])])):m("v-if",!0)])),[[r,e.viewState]]),e.selectedCount()>0?(l(),d("div",Rg,[s("span",null,[s("strong",null,c(e.selectedCount()),1),t[31]||(t[31]=y(" selected",-1))]),s("button",{class:"btn btn-sm",type:"button",onClick:t[8]||(t[8]=n=>e.bulkRefresh())},[...t[32]||(t[32]=[s("i",{class:"fas fa-sync"},null,-1),y(" Force refresh",-1)])]),s("button",{class:"btn btn-sm text-danger",type:"button",onClick:t[9]||(t[9]=n=>e.bulkRemoveCache())},[...t[33]||(t[33]=[s("i",{class:"fas fa-broom"},null,-1),y(" Remove cache",-1)])]),s("button",{class:"btn btn-sm",type:"button",onClick:t[10]||(t[10]=n=>e.clearSelection())},"Clear")])):m("v-if",!0),s("div",Tg,[s("div",Og,[s("div",Ag,[s("input",{type:"checkbox","aria-label":"Select all on page",onClick:t[11]||(t[11]=n=>e.selectAllOnPage()),checked:e.allSelected},null,8,Ig)]),s("div",Vg,[s("span",{class:T(["sortable",{active:e.query?.sort=="source.repositoryName"}]),onClick:t[12]||(t[12]=n=>e.sortBy("source.repositoryName"))},[t[34]||(t[34]=y("Repository ",-1)),s("i",{class:T(["fas",e.sortIcon("source.repositoryName")])},null,2)],2)]),s("div",Pg,[s("span",{class:T(["sortable",{active:e.query?.sort=="status"}]),onClick:t[13]||(t[13]=n=>e.sortBy("status"))},[t[35]||(t[35]=y("Status ",-1)),s("i",{class:T(["fas",e.sortIcon("status")])},null,2)],2)]),s("div",qg,[s("span",{class:T(["sortable",{active:e.query?.sort=="pageView"}]),onClick:t[14]||(t[14]=n=>e.sortBy("pageView"))},[t[36]||(t[36]=y("Views ",-1)),s("i",{class:T(["fas",e.sortIcon("pageView")])},null,2)],2)]),s("div",Mg,[s("span",{class:T(["sortable",{active:e.query?.sort=="anonymizeDate"}]),onClick:t[15]||(t[15]=n=>e.sortBy("anonymizeDate"))},[t[37]||(t[37]=y("Anonymized ",-1)),s("i",{class:T(["fas",e.sortIcon("anonymizeDate")])},null,2)],2)]),t[38]||(t[38]=s("div",{role:"columnheader","aria-label":"Actions"},null,-1))]),(l(!0),d(x,null,re(e.filteredRepositories,(n,i)=>(l(),d("div",{class:T(["paper-table-row",{"repo-inactive":n?.status=="expired"||n?.status=="removed","repo-error":n?.status=="error","row-selected":e.selected[n?.repoId]}]),role:"row"},[s("div",$g,[E(s("input",Fg,null,512),[[o,{state:e.viewState,set:a=>{e.selected[n.repoId]=a},value:e.selected[n?.repoId],form:null,options:{}}]])]),s("div",Lg,[t[43]||(t[43]=s("span",{class:"type-badge type-repo"},"Repo",-1)),s("div",Ug,[s("a",{class:"repo-name",target:"_blank",textContent:c(n?.repoId),href:e.safeUrl("/r/"+n?.repoId)},null,8,zg),s("div",Hg,[s("a",{textContent:c(n?.source?.repositoryName),href:e.safeUrl("https://github.com/"+n?.source?.repositoryName+"/")},null,8,Bg),n?.options?.update?(l(),d("span",Gg,[t[39]||(t[39]=y("\xA0\xB7\xA0",-1)),s("a",{textContent:c(n?.source?.branch),href:e.safeUrl("https://github.com/"+n?.source?.fullName+"/tree/"+n?.source?.branch)},null,8,jg)])):m("v-if",!0),n?.options?.update?m("v-if",!0):(l(),d("span",Wg,[t[40]||(t[40]=y("\xA0\xB7\xA0@",-1)),s("a",{textContent:c(n?.source?.commit?.substring(0,8)),href:e.safeUrl("https://github.com/"+n?.source?.fullName+"/tree/"+n?.source?.commit)},null,8,Kg)])),n?.conference?(l(),d("span",Yg,[t[41]||(t[41]=y("\xA0\xB7\xA0",-1)),t[42]||(t[42]=s("i",{class:"fas fa-chalkboard-teacher"},null,-1)),y(" "+c(n?.conference),1)])):m("v-if",!0),s("span",null,"\xA0\xB7\xA0"+c(e.fmt?.humanFileSize(n?.size?.storage)),1),s("span",null,"\xA0\xB7\xA0"+c(e.fmt?.number(n?.options?.terms?.length))+" terms",1)])])]),s("div",xg,[s("span",Jg,[s("span",{class:T(["status-dot",{"status-removed":n?.status=="removed"||n?.status=="expired","status-ready":n?.status=="ready","status-error":n?.status=="error","status-preparing":n?.status=="preparing"}])},null,2),s("span",{textContent:c(e.fmt?.title(n?.status))},null,8,Qg)]),n?.statusMessage?(l(),d("span",{key:0,class:"status-sub",textContent:c(e.fmt?.statusMsg(n?.statusMessage)),title:n?.statusMessage},null,8,Xg)):m("v-if",!0)]),s("div",{class:"cell-views num",role:"cell",textContent:c(e.fmt?.number(n?.pageView||0))},null,8,Zg),s("div",{class:"cell-expires",role:"cell",textContent:c(e.fmt?.humanTime(n?.anonymizeDate))},null,8,eb),s("div",tb,[s("div",sb,[t[55]||(t[55]=s("button",{class:"btn btn-icon-dots",type:"button","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false","aria-label":"Actions"},[s("i",{class:"fas fa-ellipsis-h","aria-hidden":"true"})],-1)),s("div",ob,[s("a",{class:"dropdown-item",href:e.safeUrl("/anonymize/"+n?.repoId)},[...t[44]||(t[44]=[s("i",{class:"far fa-edit"},null,-1),y(" Edit",-1)])],8,rb),s("a",{class:"dropdown-item",href:e.safeUrl("/r/"+n?.repoId+"/")},[...t[45]||(t[45]=[s("i",{class:"fa fa-eye"},null,-1),y(" View repo",-1)])],8,ib),n?.options?.page&&n?.status=="ready"?(l(),d("a",{key:0,class:"dropdown-item",target:"_self",href:e.safeUrl("/w/"+n?.repoId+"/")},[...t[46]||(t[46]=[s("i",{class:"fas fa-globe"},null,-1),y(" View page",-1)])],8,ab)):m("v-if",!0),s("a",{class:"dropdown-item",href:"#",onClick:be(a=>e.fetchGithubInfo(n),["prevent"])},[...t[47]||(t[47]=[s("i",{class:"fab fa-github"},null,-1),y(" Live GitHub info",-1)])],8,lb),t[53]||(t[53]=s("div",{class:"dropdown-divider"},null,-1)),E(s("a",{class:"dropdown-item",href:"#",onClick:be(a=>e.updateRepository(n),["prevent"])},[...t[48]||(t[48]=[s("i",{class:"fas fa-sync"},null,-1),y(" Force update",-1)])],8,db),[[H,n?.status=="ready"||n?.status=="error"]]),E(s("a",{class:"dropdown-item",href:"#",onClick:be(a=>e.updateRepository(n),["prevent"])},[...t[49]||(t[49]=[s("i",{class:"fas fa-check-circle"},null,-1),y(" Enable",-1)])],8,ub),[[H,n?.status=="removed"]]),E(s("a",{class:"dropdown-item",href:"#",onClick:be(a=>e.showStatusMessage(n),["prevent"])},[...t[50]||(t[50]=[s("i",{class:"fas fa-exclamation-triangle"},null,-1),y(" View status message",-1)])],8,cb),[[H,n?.statusMessage]]),t[54]||(t[54]=s("div",{class:"dropdown-divider"},null,-1)),s("a",{class:"dropdown-item",href:"#",onClick:be(a=>e.removeCache(n),["prevent"])},[...t[51]||(t[51]=[s("i",{class:"fas fa-broom"},null,-1),y(" Remove cache",-1)])],8,pb),E(s("a",{class:"dropdown-item text-danger",href:"#",onClick:be(a=>e.removeRepository(n),["prevent"])},[...t[52]||(t[52]=[s("i",{class:"fas fa-trash-alt"},null,-1),y(" Remove",-1)])],8,fb),[[H,n?.status=="ready"]])])])])],2))),256)),e.filteredRepositories?.length==0?(l(),d("div",mb,[...t[56]||(t[56]=[s("i",{class:"fas fa-inbox"},null,-1),s("span",null,"No repositories match the current filters.",-1)])])):m("v-if",!0)]),s("div",hb,[s("span",vb,c(e.fmt?.number(e.total))+" results",1),e.totalPage>1?(l(),d("div",yb,[s("button",{class:"btn btn-sm",onClick:t[16]||(t[16]=n=>e.query.page=Math.max(1,e.query.page-1)),disabled:e.query?.page<=1},[...t[57]||(t[57]=[s("i",{class:"fas fa-chevron-left"},null,-1),y(" Previous ",-1)])],8,gb),E(s("input",{type:"number",class:"form-control form-control-sm",min:"1",style:{width:"56px"},"aria-label":"Page",max:e.totalPage},null,8,bb),[[o,{state:e.viewState,set:n=>{e.query.page=n},value:e.query?.page,form:null,options:{}}]]),s("span",null,"of "+c(e.totalPage),1),s("button",{class:"btn btn-sm",onClick:t[17]||(t[17]=n=>e.query.page=Math.min(e.totalPage,e.query.page+1)),disabled:e.query?.page>=e.totalPage},[...t[58]||(t[58]=[y(" Next ",-1),s("i",{class:"fas fa-chevron-right"},null,-1)])],8,wb)])):m("v-if",!0),s("span",kb,[t[60]||(t[60]=s("label",null,"Per page",-1)),E((l(),d("select",_b,[...t[59]||(t[59]=[Ee('',5)])])),[[o,{state:e.viewState,set:n=>{e.query.limit=n},value:e.query?.limit,form:null,options:{}}]])])])])}var Eb={class:"container paper-page admin-page"},Cb={class:"paper-crumbs"},Nb={class:"here"},Sb={class:"paper-page-title"},Db={key:0,class:"user-detail-card"},Rb={class:"user-header"},Tb=["src"],Ob={class:"status-dot-wrap"},Ab=["textContent"],Ib={key:0,class:"type-badge type-repo"},Vb={class:"user-actions",style:{"margin-top":"4px"}},Pb={class:"user-detail-grid"},qb={class:"detail-value"},Mb={class:"detail-value"},$b={class:"detail-value",style:{"font-family":"var(--font-mono)","font-size":"0.85rem"}},Fb={class:"detail-value"},Lb=["href"],Ub={class:"detail-value"},zb={class:"detail-value"},Hb={key:0},Bb={key:1,class:"text-muted"},Gb={class:"detail-value"},jb={key:0,style:{"margin-top":"20px"}},Wb={class:"paper-table w-100",style:{"margin-top":"10px"}},Kb={class:"paper-table-row",style:{"grid-template-columns":"1fr 160px"}},Yb={class:"cell-anon",role:"cell"},xb={class:"anon-text"},Jb=["textContent"],Qb={class:"cell-expires",role:"cell"},Xb={key:1,class:"admin-section-header"},Zb={class:"section-count"},e1={key:2,class:"user-detail-card"},t1={type:"text",class:"form-control",placeholder:"Token name (e.g. dev-laptop)",required:""},s1={key:0,class:"alert alert-warning",role:"alert"},n1={style:{"white-space":"pre-wrap","word-break":"break-all",margin:"8px 0 0","font-family":"var(--font-mono)","font-size":"0.85rem"}},o1={key:1,class:"paper-table w-100"},r1={class:"paper-table-row",role:"row",style:{"grid-template-columns":"1fr 200px 200px 80px"}},i1=["textContent"],a1=["textContent"],l1={role:"cell"},d1={key:0},u1={key:1,class:"text-muted"},c1={role:"cell"},p1=["onClick"],f1={key:2,class:"paper-table-empty"},m1={class:"admin-section-header"},h1={class:"section-count"},v1={class:"admin-summary"},y1={class:"summary-total"},g1={class:"count"},b1={class:"count"},w1={class:"count"},k1={class:"count"},_1={class:"count"},E1={class:"w-100 admin-filter-toolbar","aria-label":"Repositories","accept-charset":"UTF-8"},C1={class:"admin-filter-row"},N1={class:"search-wrap"},S1={type:"search",class:"form-control","aria-label":"Search repositories",placeholder:"Search repoId, source repo, error message\u2026",autocomplete:"off"},D1={key:3,class:"bulk-bar"},R1={class:"paper-table paper-table-repos has-bulk w-100",role:"table","aria-label":"Repositories"},T1={class:"paper-table-head",role:"row"},O1={role:"columnheader",style:{width:"28px"}},A1=["checked"],I1={role:"columnheader"},V1={role:"columnheader"},P1={role:"columnheader",class:"num"},q1={role:"columnheader"},M1={role:"cell",style:{width:"28px"}},$1={type:"checkbox","aria-label":"Select repository"},F1={class:"cell-anon",role:"cell"},L1={class:"anon-text"},U1=["textContent","href"],z1={class:"anon-sub"},H1=["textContent","href"],B1={key:0},G1=["textContent","href"],j1={key:1},W1=["textContent","href"],K1={key:2},Y1={class:"cell-status",role:"cell"},x1={class:"status-line"},J1=["textContent"],Q1=["textContent","title"],X1=["textContent"],Z1=["textContent"],ew={class:"cell-actions",role:"cell"},tw={class:"dropdown"},sw={class:"dropdown-menu dropdown-menu-right"},nw=["href"],ow=["href"],rw=["href"],iw=["onClick"],aw=["onClick"],lw=["onClick"],dw=["onClick"],uw=["onClick"],cw=["onClick"],pw={key:0,class:"paper-table-empty"};function Ja(e,t){let o=ge("field"),r=ge("form");return l(),d("div",Eb,[s("div",Cb,[t[22]||(t[22]=s("a",{href:"/admin/users"},"Users",-1)),t[23]||(t[23]=y(" \xA0/\xA0 ",-1)),s("span",Nb,c(e.userInfo?.username||"Profile"),1)]),s("h1",Sb,c(e.userInfo?.username||"User"),1),t[81]||(t[81]=Ee('',1)),e.userInfo?(l(),d("div",Db,[s("div",Rb,[e.userInfo?.photo?(l(),d("img",{key:0,width:"56",height:"56",src:e.safeUrl(e.userInfo?.photo)},null,8,Tb)):m("v-if",!0),s("div",null,[s("h1",null,[y(c(e.userInfo?.username)+" ",1),s("span",Ob,[s("span",{class:T(["status-dot",{"status-ready":e.userInfo?.status=="active","status-removed":e.userInfo?.status!="active"}])},null,2),s("span",{textContent:c(e.fmt?.title(e.userInfo?.status))},null,8,Ab)]),e.userInfo?.isAdmin?(l(),d("span",Ib,"Admin")):m("v-if",!0)]),s("div",Vb,[e.userInfo?.status!=="banned"?(l(),d("button",{key:0,class:"btn btn-sm text-danger",onClick:t[0]||(t[0]=n=>e.banUser())},[...t[24]||(t[24]=[s("i",{class:"fas fa-ban"},null,-1),y(" Ban",-1)])])):m("v-if",!0),e.userInfo?.status==="banned"||e.userInfo?.status==="removed"?(l(),d("button",{key:1,class:"btn btn-sm",onClick:t[1]||(t[1]=n=>e.activateUser())},[...t[25]||(t[25]=[s("i",{class:"fas fa-check-circle"},null,-1),y(" Activate",-1)])])):m("v-if",!0),e.userInfo?.isAdmin?m("v-if",!0):(l(),d("button",{key:2,class:"btn btn-sm",onClick:t[2]||(t[2]=n=>e.promoteUser())},[...t[26]||(t[26]=[s("i",{class:"fas fa-user-shield"},null,-1),y(" Promote to admin",-1)])])),e.userInfo?.isAdmin?(l(),d("button",{key:3,class:"btn btn-sm text-danger",onClick:t[3]||(t[3]=n=>e.demoteUser())},[...t[27]||(t[27]=[s("i",{class:"fas fa-user-minus"},null,-1),y(" Remove admin",-1)])])):m("v-if",!0)])])]),s("div",Pb,[t[30]||(t[30]=s("div",{class:"detail-label"},"ID",-1)),s("div",qb,c(e.userInfo?._id),1),t[31]||(t[31]=s("div",{class:"detail-label"},"Email",-1)),s("div",Mb,c(e.userInfo?.emails?.[0]?.email),1),t[32]||(t[32]=s("div",{class:"detail-label"},"Access token",-1)),s("div",$b,c(e.userInfo?.accessTokens?.github),1),t[33]||(t[33]=s("div",{class:"detail-label"},"GitHub",-1)),s("div",Fb,[s("a",{target:"_blank",href:e.safeUrl("https://github.com/"+e.userInfo?.username)},[t[28]||(t[28]=s("i",{class:"fab fa-github"},null,-1)),y(" "+c(e.userInfo?.username),1)],8,Lb)]),t[34]||(t[34]=s("div",{class:"detail-label"},"Created",-1)),s("div",Ub,c(e.fmt?.humanTime(e.userInfo?.dateOfEntry)),1),t[35]||(t[35]=s("div",{class:"detail-label"},"Last connection",-1)),s("div",zb,[e.userInfo?.accessTokenDates?.github?(l(),d("span",Hb,c(e.fmt?.humanTime(e.userInfo?.accessTokenDates?.github)),1)):m("v-if",!0),e.userInfo?.accessTokenDates?.github?m("v-if",!0):(l(),d("span",Bb,"never"))]),t[36]||(t[36]=s("div",{class:"detail-label"},"GitHub repos",-1)),s("div",Gb,[y(c(e.userInfo?.repositories?.length)+" repositories ",1),s("button",{class:"btn btn-sm ml-2",onClick:t[4]||(t[4]=n=>e.showRepos=!e.showRepos)},c(e.showRepos?"Hide":"Show"),1),s("button",{class:"btn btn-sm ml-1",onClick:t[5]||(t[5]=n=>e.getGitHubRepositories())},[...t[29]||(t[29]=[s("i",{class:"fas fa-sync"},null,-1),y(" Refresh ",-1)])])])]),e.showRepos?(l(),d("div",jb,[t[39]||(t[39]=s("div",{class:"paper-section-eyebrow"},"GitHub repositories",-1)),s("div",Wb,[(l(!0),d(x,null,re(e.userInfo?.repositories,(n,i)=>(l(),d("div",Kb,[s("div",Yb,[t[37]||(t[37]=s("span",{class:"type-badge type-repo"},"Repo",-1)),s("div",xb,[s("span",{class:"repo-name",textContent:c(n?.name)},null,8,Jb)])]),s("div",Qb,[t[38]||(t[38]=s("i",{class:"fas fa-database"},null,-1)),y(" "+c(e.fmt?.humanFileSize(n?.size)),1)])]))),256))])])):m("v-if",!0)])):m("v-if",!0),e.userInfo&&e.userInfo?.isAdmin&&e.user&&e.user?.username==e.userInfo?.username?(l(),d("div",Xb,[t[40]||(t[40]=s("h2",null,[s("i",{class:"fas fa-key"}),y(" API tokens")],-1)),s("span",Zb,c(e.tokens?.length),1)])):m("v-if",!0),e.userInfo&&e.userInfo?.isAdmin&&e.user&&e.user?.username==e.userInfo?.username?(l(),d("div",e1,[t[46]||(t[46]=s("p",{class:"paper-page-lede"},[y("Personal API tokens for this admin account. Send as "),s("code",null,"Authorization: Bearer "),y(" to authenticate without GitHub OAuth (useful for development).")],-1)),E((l(),d("form",{class:"d-flex",style:{gap:"8px","margin-bottom":"12px"},onSubmit:t[6]||(t[6]=be(n=>e.submitForm(n,()=>{e.createToken()}),["prevent"]))},[E(s("input",t1,null,512),[[o,{state:e.viewState,set:n=>{e.tokenForm.name=n},value:e.tokenForm?.name,form:null,options:{}}]]),t[41]||(t[41]=s("button",{type:"submit",class:"btn btn-primary"},[s("i",{class:"fas fa-plus"}),y(" Generate")],-1))],32)),[[r,e.viewState]]),e.tokenForm?.plaintext?(l(),d("div",s1,[t[42]||(t[42]=s("strong",null,"Copy this token now \u2014 it will not be shown again:",-1)),s("pre",n1,c(e.tokenForm?.plaintext),1),s("button",{class:"btn btn-sm",onClick:t[7]||(t[7]=n=>e.tokenForm.plaintext=null)},"Dismiss")])):m("v-if",!0),e.tokens?.length?(l(),d("div",o1,[t[44]||(t[44]=s("div",{class:"paper-table-head",role:"row",style:{"grid-template-columns":"1fr 200px 200px 80px"}},[s("div",{role:"columnheader"},"Name"),s("div",{role:"columnheader"},"Created"),s("div",{role:"columnheader"},"Last used"),s("div",{role:"columnheader","aria-label":"Actions"})],-1)),(l(!0),d(x,null,re(e.tokens,(n,i)=>(l(),d("div",r1,[s("div",{role:"cell",textContent:c(n?.name)},null,8,i1),s("div",{role:"cell",textContent:c(e.fmt?.humanTime(n?.createdAt))},null,8,a1),s("div",l1,[n?.lastUsedAt?(l(),d("span",d1,c(e.fmt?.humanTime(n?.lastUsedAt)),1)):m("v-if",!0),n?.lastUsedAt?m("v-if",!0):(l(),d("span",u1,"never"))]),s("div",c1,[s("button",{class:"btn btn-sm text-danger",title:"Revoke",onClick:a=>e.revokeToken(n)},[...t[43]||(t[43]=[s("i",{class:"fas fa-trash-alt"},null,-1)])],8,p1)])]))),256))])):m("v-if",!0),e.tokens?.length?m("v-if",!0):(l(),d("div",f1,[...t[45]||(t[45]=[s("i",{class:"fas fa-inbox"},null,-1),s("span",null,"No tokens yet.",-1)])]))])):m("v-if",!0),s("div",m1,[t[47]||(t[47]=s("h2",null,[s("i",{class:"fas fa-code-branch"}),y(" Anonymized repositories")],-1)),s("span",h1,c(e.repositories?.length),1)]),s("div",v1,[s("span",y1,c(e.fmt?.number(e.repositories?.length)),1),s("span",{class:T(["summary-pill ok",{active:e.filters?.status?.ready===!1}]),title:"Toggle ready filter",onClick:t[8]||(t[8]=n=>e.filters.status.ready=!e.filters.status.ready)},[t[48]||(t[48]=y("Ready ",-1)),s("span",g1,c(e.fmt?.number(e.statusCountFor("ready"))),1)],2),s("span",{class:T(["summary-pill warn",{active:e.filters?.status?.preparing===!1}]),title:"Toggle preparing filter",onClick:t[9]||(t[9]=n=>e.filters.status.preparing=!e.filters.status.preparing)},[t[49]||(t[49]=y("Preparing ",-1)),s("span",b1,c(e.fmt?.number(e.statusCountFor("preparing"))),1)],2),s("span",{class:T(["summary-pill error",{active:e.filters?.status?.error===!1}]),title:"Toggle errored filter",onClick:t[10]||(t[10]=n=>e.filters.status.error=!e.filters.status.error)},[t[50]||(t[50]=y("Errored ",-1)),s("span",w1,c(e.fmt?.number(e.statusCountFor("error"))),1)],2),s("span",{class:T(["summary-pill",{active:e.filters?.status?.expired===!1}]),title:"Toggle expired filter",onClick:t[11]||(t[11]=n=>e.filters.status.expired=!e.filters.status.expired)},[t[51]||(t[51]=y("Expired ",-1)),s("span",k1,c(e.fmt?.number(e.statusCountFor("expired"))),1)],2),s("span",{class:T(["summary-pill",{active:e.filters?.status?.removed===!1}]),title:"Toggle removed filter",onClick:t[12]||(t[12]=n=>e.filters.status.removed=!e.filters.status.removed)},[t[52]||(t[52]=y("Removed ",-1)),s("span",_1,c(e.fmt?.number(e.statusCountFor("removed"))),1)],2)]),E((l(),d("form",E1,[s("div",C1,[s("div",N1,[E(s("input",S1,null,512),[[o,{state:e.viewState,set:n=>{e.search=n},value:e.search,form:null,options:{}}]])]),t[54]||(t[54]=s("span",{class:"admin-filter-spacer"},null,-1)),s("button",{class:"btn btn-sm",type:"button",title:"Export current view to CSV",onClick:t[13]||(t[13]=n=>e.exportCsv())},[...t[53]||(t[53]=[s("i",{class:"fas fa-file-csv"},null,-1),y(" Export",-1)])])])])),[[r,e.viewState]]),e.selectedCount()>0?(l(),d("div",D1,[s("span",null,[s("strong",null,c(e.selectedCount()),1),t[55]||(t[55]=y(" selected",-1))]),s("button",{class:"btn btn-sm",type:"button",onClick:t[14]||(t[14]=n=>e.bulkRefresh())},[...t[56]||(t[56]=[s("i",{class:"fas fa-sync"},null,-1),y(" Force refresh",-1)])]),s("button",{class:"btn btn-sm text-danger",type:"button",onClick:t[15]||(t[15]=n=>e.bulkRemoveCache())},[...t[57]||(t[57]=[s("i",{class:"fas fa-broom"},null,-1),y(" Remove cache",-1)])]),s("button",{class:"btn btn-sm",type:"button",onClick:t[16]||(t[16]=n=>e.clearSelection())},"Clear")])):m("v-if",!0),s("div",R1,[s("div",T1,[s("div",O1,[s("input",{type:"checkbox","aria-label":"Select all on page",onClick:t[17]||(t[17]=n=>e.selectAllOnPage()),checked:e.allSelected},null,8,A1)]),s("div",I1,[s("span",{class:T(["sortable",{active:e.query?.sort=="source.repositoryName"}]),onClick:t[18]||(t[18]=n=>e.sortBy("source.repositoryName"))},[t[58]||(t[58]=y("Repository ",-1)),s("i",{class:T(["fas",e.sortIcon("source.repositoryName")])},null,2)],2)]),s("div",V1,[s("span",{class:T(["sortable",{active:e.query?.sort=="status"}]),onClick:t[19]||(t[19]=n=>e.sortBy("status"))},[t[59]||(t[59]=y("Status ",-1)),s("i",{class:T(["fas",e.sortIcon("status")])},null,2)],2)]),s("div",P1,[s("span",{class:T(["sortable",{active:e.query?.sort=="pageView"}]),onClick:t[20]||(t[20]=n=>e.sortBy("pageView"))},[t[60]||(t[60]=y("Views ",-1)),s("i",{class:T(["fas",e.sortIcon("pageView")])},null,2)],2)]),s("div",q1,[s("span",{class:T(["sortable",{active:e.query?.sort=="anonymizeDate"}]),onClick:t[21]||(t[21]=n=>e.sortBy("anonymizeDate"))},[t[61]||(t[61]=y("Anonymized ",-1)),s("i",{class:T(["fas",e.sortIcon("anonymizeDate")])},null,2)],2)]),t[62]||(t[62]=s("div",{role:"columnheader","aria-label":"Actions"},null,-1))]),(l(!0),d(x,null,re(e.filteredRepositories,(n,i)=>(l(),d("div",{class:T(["paper-table-row",{"repo-inactive":n?.status=="expired"||n?.status=="removed","repo-error":n?.status=="error","row-selected":e.selected[n?.repoId]}]),role:"row"},[s("div",M1,[E(s("input",$1,null,512),[[o,{state:e.viewState,set:a=>{e.selected[n.repoId]=a},value:e.selected[n?.repoId],form:null,options:{}}]])]),s("div",F1,[t[67]||(t[67]=s("span",{class:"type-badge type-repo"},"Repo",-1)),s("div",L1,[s("a",{class:"repo-name",target:"_blank",textContent:c(n?.repoId),href:e.safeUrl("/r/"+n?.repoId)},null,8,U1),s("div",z1,[s("a",{textContent:c(n?.source?.fullName),href:e.safeUrl("https://github.com/"+n?.source?.fullName+"/")},null,8,H1),n?.options?.update?(l(),d("span",B1,[t[63]||(t[63]=y("\xA0\xB7\xA0",-1)),s("a",{textContent:c(n?.source?.branch),href:e.safeUrl("https://github.com/"+n?.source?.fullName+"/tree/"+n?.source?.branch)},null,8,G1)])):m("v-if",!0),n?.options?.update?m("v-if",!0):(l(),d("span",j1,[t[64]||(t[64]=y("\xA0\xB7\xA0@",-1)),s("a",{textContent:c(n?.source?.commit?.substring(0,8)),href:e.safeUrl("https://github.com/"+n?.source?.fullName+"/tree/"+n?.source?.commit)},null,8,W1)])),n?.conference?(l(),d("span",K1,[t[65]||(t[65]=y("\xA0\xB7\xA0",-1)),t[66]||(t[66]=s("i",{class:"fas fa-chalkboard-teacher"},null,-1)),y(" "+c(n?.conference),1)])):m("v-if",!0),s("span",null,"\xA0\xB7\xA0"+c(e.fmt?.humanFileSize(n?.size?.storage)),1),s("span",null,"\xA0\xB7\xA0"+c(e.fmt?.number(n?.options?.terms?.length))+" terms",1)])])]),s("div",Y1,[s("span",x1,[s("span",{class:T(["status-dot",{"status-removed":n?.status=="removed"||n?.status=="expired","status-ready":n?.status=="ready","status-error":n?.status=="error","status-preparing":n?.status=="preparing"}])},null,2),s("span",{textContent:c(e.fmt?.title(n?.status))},null,8,J1)]),n?.statusMessage?(l(),d("span",{key:0,class:"status-sub",textContent:c(e.fmt?.statusMsg(n?.statusMessage)),title:n?.statusMessage},null,8,Q1)):m("v-if",!0)]),s("div",{class:"cell-views num",role:"cell",textContent:c(e.fmt?.number(n?.pageView||0))},null,8,X1),s("div",{class:"cell-expires",role:"cell",textContent:c(e.fmt?.humanTime(n?.anonymizeDate))},null,8,Z1),s("div",ew,[s("div",tw,[t[79]||(t[79]=s("button",{class:"btn btn-icon-dots",type:"button","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false","aria-label":"Actions"},[s("i",{class:"fas fa-ellipsis-h","aria-hidden":"true"})],-1)),s("div",sw,[s("a",{class:"dropdown-item",href:e.safeUrl("/anonymize/"+n?.repoId)},[...t[68]||(t[68]=[s("i",{class:"far fa-edit"},null,-1),y(" Edit",-1)])],8,nw),s("a",{class:"dropdown-item",href:e.safeUrl("/r/"+n?.repoId+"/")},[...t[69]||(t[69]=[s("i",{class:"fa fa-eye"},null,-1),y(" View repo",-1)])],8,ow),n?.options?.page&&n?.status=="ready"?(l(),d("a",{key:0,class:"dropdown-item",target:"_self",href:e.safeUrl("/w/"+n?.repoId+"/")},[...t[70]||(t[70]=[s("i",{class:"fas fa-globe"},null,-1),y(" View page",-1)])],8,rw)):m("v-if",!0),s("a",{class:"dropdown-item",href:"#",onClick:be(a=>e.fetchGithubInfo(n),["prevent"])},[...t[71]||(t[71]=[s("i",{class:"fab fa-github"},null,-1),y(" Live GitHub info",-1)])],8,iw),t[77]||(t[77]=s("div",{class:"dropdown-divider"},null,-1)),E(s("a",{class:"dropdown-item",href:"#",onClick:be(a=>e.updateRepository(n),["prevent"])},[...t[72]||(t[72]=[s("i",{class:"fas fa-sync"},null,-1),y(" Force update",-1)])],8,aw),[[H,n?.status=="ready"||n?.status=="error"]]),E(s("a",{class:"dropdown-item",href:"#",onClick:be(a=>e.updateRepository(n),["prevent"])},[...t[73]||(t[73]=[s("i",{class:"fas fa-check-circle"},null,-1),y(" Enable",-1)])],8,lw),[[H,n?.status=="removed"]]),E(s("a",{class:"dropdown-item",href:"#",onClick:be(a=>e.showStatusMessage(n),["prevent"])},[...t[74]||(t[74]=[s("i",{class:"fas fa-exclamation-triangle"},null,-1),y(" View status message",-1)])],8,dw),[[H,n?.statusMessage]]),t[78]||(t[78]=s("div",{class:"dropdown-divider"},null,-1)),s("a",{class:"dropdown-item",href:"#",onClick:be(a=>e.removeCache(n),["prevent"])},[...t[75]||(t[75]=[s("i",{class:"fas fa-broom"},null,-1),y(" Remove cache",-1)])],8,uw),E(s("a",{class:"dropdown-item text-danger",href:"#",onClick:be(a=>e.removeRepository(n),["prevent"])},[...t[76]||(t[76]=[s("i",{class:"fas fa-trash-alt"},null,-1),y(" Remove",-1)])],8,cw),[[H,n?.status=="ready"]])])])])],2))),256)),e.filteredRepositories?.length==0?(l(),d("div",pw,[...t[80]||(t[80]=[s("i",{class:"fas fa-inbox"},null,-1),s("span",null,"No repositories match the current filters.",-1)])])):m("v-if",!0)])])}var fw={class:"container paper-page admin-page"},mw={class:"admin-summary"},hw={class:"summary-total"},vw={class:"count"},yw={class:"count"},gw={class:"count"},bw={key:0,class:"alert alert-danger",style:{margin:"8px 0"}},ww={class:"w-100 admin-filter-toolbar","aria-label":"Users","accept-charset":"UTF-8"},kw={class:"admin-filter-row"},_w={class:"search-wrap"},Ew={type:"search",class:"form-control","aria-label":"Search users",placeholder:"Search username or email\u2026",autocomplete:"off"},Cw={key:0,class:"admin-search-hint"},Nw={class:"admin-filter-inline"},Sw={class:"form-control form-control-sm"},Dw={class:"admin-filter-inline","aria-label":"Pagination"},Rw=["disabled"],Tw={style:{"font-family":"var(--font-mono)","font-size":"12px",color:"var(--ink-muted)"}},Ow=["disabled"],Aw={key:0,class:"admin-filter-row"},Iw={class:"admin-active-chips"},Vw={class:"key"},Pw=["onClick"],qw={key:1,class:"bulk-bar"},Mw={class:"paper-table w-100",role:"table","aria-label":"Users",style:{"--cols":"28px minmax(280px, 2.4fr) 100px 140px 140px 52px"}},$w={class:"paper-table-head admin-users-row",role:"row"},Fw={role:"columnheader",style:{width:"28px"}},Lw=["checked"],Uw={role:"columnheader"},zw={role:"columnheader"},Hw={role:"cell",style:{width:"28px"}},Bw={type:"checkbox","aria-label":"Select user"},Gw={class:"cell-anon",role:"cell"},jw=["src"],Ww={class:"anon-text"},Kw=["textContent","href"],Yw={class:"anon-sub"},xw={key:0},Jw={key:1},Qw=["href"],Xw={key:2},Zw={class:"cell-views num",role:"cell"},ek=["textContent","href"],tk={class:"cell-status",role:"cell"},sk=["textContent"],nk={class:"cell-status",role:"cell"},ok={key:0,class:"type-badge type-repo"},rk={key:1,class:"empty-dash"},ik={class:"cell-actions",role:"cell"},ak={class:"dropdown"},lk={class:"dropdown-menu dropdown-menu-right"},dk=["href"],uk=["href"],ck=["onClick"],pk=["onClick"],fk={key:0,class:"paper-table-empty"},mk={class:"admin-toolbar",style:{"justify-content":"space-between","border-bottom":"none"}},hk={style:{"font-size":"12px",color:"var(--ink-muted)"}},vk={key:0,class:"pagination-compact"},yk=["disabled"],gk=["max"],bk=["disabled"],wk={class:"admin-filter-inline"},kk={class:"form-control form-control-sm"};function Qa(e,t){let o=ge("field"),r=ge("form");return l(),d("div",fw,[t[43]||(t[43]=Ee('
Admin \xA0/\xA0 Users

Users

',3)),s("div",mw,[s("span",hw,c(e.total>=0?e.fmt.number(e.total):"\u2026"),1),s("span",{class:T(["summary-pill ok",{active:e.query?.status=="active"}]),onClick:t[0]||(t[0]=n=>{e.query.status=e.query.status=="active"?"":"active",e.query.page=1})},[t[13]||(t[13]=y("Active ",-1)),s("span",vw,c(e.fmt?.number(e.statusCountFor("active"))),1)],2),s("span",{class:T(["summary-pill error",{active:e.query?.status=="banned"}]),onClick:t[1]||(t[1]=n=>{e.query.status=e.query.status=="banned"?"":"banned",e.query.page=1})},[t[14]||(t[14]=y("Banned ",-1)),s("span",yw,c(e.fmt?.number(e.statusCountFor("banned"))),1)],2),s("span",{class:T(["summary-pill",{active:e.query?.status=="removed"}]),onClick:t[2]||(t[2]=n=>{e.query.status=e.query.status=="removed"?"":"removed",e.query.page=1})},[t[15]||(t[15]=y("Removed ",-1)),s("span",gw,c(e.fmt?.number(e.statusCountFor("removed"))),1)],2)]),e.fetchError?(l(),d("div",bw,[t[16]||(t[16]=s("i",{class:"fas fa-exclamation-triangle"},null,-1)),y(" "+c(e.fetchError),1)])):m("v-if",!0),E((l(),d("form",ww,[s("div",kw,[s("div",_w,[E(s("input",Ew,null,512),[[o,{state:e.viewState,set:n=>{e.query.search=n},value:e.query?.search,form:null,options:{}}]]),e.query?.search?m("v-if",!0):(l(),d("span",Cw,"/"))]),s("span",Nw,[t[18]||(t[18]=s("label",null,"Role",-1)),E((l(),d("select",Sw,[...t[17]||(t[17]=[s("option",{value:""},"Any",-1),s("option",{value:"admin"},"Admin",-1)])])),[[o,{state:e.viewState,set:n=>{e.query.role=n},value:e.query?.role,form:null,options:{}}]])]),t[22]||(t[22]=s("span",{class:"admin-filter-spacer"},null,-1)),s("button",{class:"btn btn-sm",type:"button",onClick:t[3]||(t[3]=n=>e.exportCsv())},[...t[19]||(t[19]=[s("i",{class:"fas fa-file-csv"},null,-1),y(" Export",-1)])]),s("span",Dw,[s("button",{class:"btn btn-sm",type:"button",onClick:t[4]||(t[4]=n=>e.query.page=Math.max(1,e.query.page-1)),disabled:e.query?.page<=1},[...t[20]||(t[20]=[s("i",{class:"fas fa-chevron-left"},null,-1)])],8,Rw),s("span",Tw,c(e.query?.page)+"/"+c(e.totalPage||1),1),s("button",{class:"btn btn-sm",type:"button",onClick:t[5]||(t[5]=n=>e.query.page=Math.min(e.totalPage,e.query.page+1)),disabled:e.query?.page>=e.totalPage},[...t[21]||(t[21]=[s("i",{class:"fas fa-chevron-right"},null,-1)])],8,Ow)])]),e.chips?.length?(l(),d("div",Aw,[s("div",Iw,[(l(!0),d(x,null,re(e.chips,(n,i)=>(l(),d("span",{class:"admin-active-chip",key:n?.key},[s("span",Vw,c(n?.label),1),s("span",null,c(n?.value),1),s("button",{type:"button",onClick:a=>e.clearFilter(n.key)},[...t[23]||(t[23]=[s("i",{class:"fas fa-times"},null,-1)])],8,Pw)]))),128))])])):m("v-if",!0)])),[[r,e.viewState]]),e.selectedCount()>0?(l(),d("div",qw,[s("span",null,[s("strong",null,c(e.selectedCount()),1),t[24]||(t[24]=y(" selected",-1))]),s("button",{class:"btn btn-sm text-danger",type:"button",onClick:t[6]||(t[6]=n=>e.bulkBan())},[...t[25]||(t[25]=[s("i",{class:"fas fa-ban"},null,-1),y(" Ban",-1)])]),s("button",{class:"btn btn-sm",type:"button",onClick:t[7]||(t[7]=n=>{e.selected={},e.allSelected=!1})},"Clear")])):m("v-if",!0),s("div",Mw,[s("div",$w,[s("div",Fw,[s("input",{type:"checkbox","aria-label":"Select all on page",onClick:t[8]||(t[8]=n=>e.selectAllOnPage()),checked:e.allSelected},null,8,Lw)]),s("div",Uw,[s("span",{class:T(["sortable",{active:e.query?.sort=="username"}]),onClick:t[9]||(t[9]=n=>e.sortBy("username"))},[t[26]||(t[26]=y("User ",-1)),s("i",{class:T(["fas",e.sortIcon("username")])},null,2)],2)]),t[28]||(t[28]=s("div",{role:"columnheader",class:"num"},"Repos",-1)),s("div",zw,[s("span",{class:T(["sortable",{active:e.query?.sort=="status"}]),onClick:t[10]||(t[10]=n=>e.sortBy("status"))},[t[27]||(t[27]=y("Status ",-1)),s("i",{class:T(["fas",e.sortIcon("status")])},null,2)],2)]),t[29]||(t[29]=s("div",{role:"columnheader"},"Role",-1)),t[30]||(t[30]=s("div",{role:"columnheader","aria-label":"Actions"},null,-1))]),(l(!0),d(x,null,re(e.filteredUsers,(n,i)=>(l(),d("div",{class:T(["paper-table-row admin-users-row",{"row-selected":e.selected[n?.username]}]),role:"row"},[s("div",Hw,[E(s("input",Bw,null,512),[[o,{state:e.viewState,set:a=>{e.selected[n.username]=a},value:e.selected[n?.username],form:null,options:{}}]])]),s("div",Gw,[n?.photo?(l(),d("img",{key:0,width:"28",height:"28",class:"rounded-circle",style:{"flex-shrink":"0"},src:e.safeUrl(n?.photo)},null,8,jw)):m("v-if",!0),s("div",Ww,[s("a",{class:"repo-name",textContent:c(n?.username),href:e.safeUrl("/admin/users/"+n?.username)},null,8,Kw),s("div",Yw,[n?.emails[0].email?(l(),d("span",xw,c(n?.emails[0].email),1)):m("v-if",!0),n?.emails[0].email?(l(),d("span",Jw,"\xA0\xB7\xA0")):m("v-if",!0),s("a",{target:"_blank",href:e.safeUrl("https://github.com/"+n?.username)},[t[31]||(t[31]=s("i",{class:"fab fa-github"},null,-1)),y(" "+c(n?.username),1)],8,Qw),n?.dateOfEntry?(l(),d("span",Xw,"\xA0\xB7\xA0Joined "+c(e.fmt?.humanTime(n?.dateOfEntry)),1)):m("v-if",!0)])])]),s("div",Zw,[s("a",{title:"Show this user's repositories",textContent:c(e.fmt?.number(n?.repoCount||0)),href:e.safeUrl("/admin/?owner="+n?.username)},null,8,ek)]),s("div",tk,[s("span",{class:T(["status-dot",{"status-ready":n?.status=="active","status-removed":n?.status=="removed"||n?.status=="banned"}])},null,2),s("span",{textContent:c(e.fmt?.title(n?.status))},null,8,sk)]),s("div",nk,[n?.isAdmin?(l(),d("span",ok,"Admin")):m("v-if",!0),n?.isAdmin?m("v-if",!0):(l(),d("span",rk,"\u2014"))]),s("div",ik,[s("div",ak,[t[37]||(t[37]=s("button",{class:"btn btn-icon-dots",type:"button","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false","aria-label":"Actions"},[s("i",{class:"fas fa-ellipsis-h","aria-hidden":"true"})],-1)),s("div",lk,[s("a",{class:"dropdown-item",href:e.safeUrl("/admin/users/"+n?.username)},[...t[32]||(t[32]=[s("i",{class:"far fa-eye"},null,-1),y(" View details",-1)])],8,dk),s("a",{class:"dropdown-item",href:e.safeUrl("/admin/?owner="+n?.username)},[...t[33]||(t[33]=[s("i",{class:"fas fa-code-branch"},null,-1),y(" View repositories",-1)])],8,uk),t[36]||(t[36]=s("div",{class:"dropdown-divider"},null,-1)),E(s("a",{class:"dropdown-item text-danger",href:"#",onClick:be(a=>e.banUser(n),["prevent"])},[...t[34]||(t[34]=[s("i",{class:"fas fa-ban"},null,-1),y(" Ban",-1)])],8,ck),[[H,n?.status=="active"]]),E(s("a",{class:"dropdown-item",href:"#",onClick:be(a=>e.activateUser(n),["prevent"])},[...t[35]||(t[35]=[s("i",{class:"fas fa-check-circle"},null,-1),y(" Activate",-1)])],8,pk),[[H,n?.status=="removed"||n?.status=="banned"]])])])])],2))),256)),e.filteredUsers?.length==0?(l(),d("div",fk,[...t[38]||(t[38]=[s("i",{class:"fas fa-inbox"},null,-1),s("span",null,"No users match the current filters.",-1)])])):m("v-if",!0)]),s("div",mk,[s("span",hk,c(e.fmt?.number(e.total))+" results",1),e.totalPage>1?(l(),d("div",vk,[s("button",{class:"btn btn-sm",onClick:t[11]||(t[11]=n=>e.query.page=Math.max(1,e.query.page-1)),disabled:e.query?.page<=1},[...t[39]||(t[39]=[s("i",{class:"fas fa-chevron-left"},null,-1),y(" Previous",-1)])],8,yk),E(s("input",{type:"number",class:"form-control form-control-sm",min:"1",style:{width:"56px"},max:e.totalPage},null,8,gk),[[o,{state:e.viewState,set:n=>{e.query.page=n},value:e.query?.page,form:null,options:{}}]]),s("span",null,"of "+c(e.totalPage),1),s("button",{class:"btn btn-sm",onClick:t[12]||(t[12]=n=>e.query.page=Math.min(e.totalPage,e.query.page+1)),disabled:e.query?.page>=e.totalPage},[...t[40]||(t[40]=[y("Next ",-1),s("i",{class:"fas fa-chevron-right"},null,-1)])],8,bk)])):m("v-if",!0),s("span",wk,[t[42]||(t[42]=s("label",null,"Per page",-1)),E((l(),d("select",kk,[...t[41]||(t[41]=[s("option",{value:"10"},"10",-1),s("option",{value:"25"},"25",-1),s("option",{value:"50"},"50",-1),s("option",{value:"100"},"100",-1)])])),[[o,{state:e.viewState,set:n=>{e.query.limit=n},value:e.query?.limit,form:null,options:{}}]])])])])}var _k={class:"anonymize-page h-100"},Ek={class:"anonymize-landing"},Ck={class:"anonymize-landing-inner"},Nk={class:"form-group mt-4 mb-2"},Sk={id:"sourceUrl-landing",type:"text",class:"form-control form-control-lg",placeholder:"https://github.com/owner/repository"},Dk={class:"anonymize-workspace"},Rk={class:"anonymize-topbar"},Tk={class:"anonymize-topbar-inner"},Ok={class:"paper-crumbs"},Ak={class:"here"},Ik={class:"anonymize-topbar-head"},Vk={class:"paper-page-title anonymize-topbar-title"},Pk={key:0},qk={key:1},Mk={class:"anonymize-split"},$k={class:"anonymize-form-col overflow-auto"},Fk={class:"form needs-validation paper-settings-main",name:"anonymize",novalidate:""},Lk={class:"paper-settings-section"},Uk={class:"form-group"},zk=["disabled"],Hk={class:"invalid-feedback"},Bk={class:"invalid-feedback"},Gk={class:"invalid-feedback"},jk={class:"invalid-feedback"},Wk={class:"form-grid-2"},Kk={class:"form-group"},Yk={class:"input-group"},xk={class:"form-control",id:"branch",name:"branch"},Jk=["textContent","value"],Qk={class:"input-group-append"},Xk={class:"form-group"},Zk=["disabled"],e_={class:"invalid-feedback"},t_={class:"invalid-feedback"},s_={class:"form-check"},n_={class:"form-check-input",type:"checkbox",id:"update",name:"update"},o_={class:"paper-settings-section"},r_={class:"form-group"},i_=["disabled"],a_={class:"form-text text-muted"},l_={class:"invalid-feedback"},d_={class:"form-group"},u_=["disabled"],c_={class:"form-text text-muted"},p_={class:"invalid-feedback"},f_={class:"form-group"},m_=["disabled"],h_={class:"form-text text-muted"},v_={class:"invalid-feedback"},y_={class:"form-group"},g_={class:"form-text text-muted"},b_=["href"],w_={class:"invalid-feedback"},k_={class:"form-text text-muted"},__={class:"paper-settings-section"},E_={class:"form-group"},C_={class:"form-text text-muted"},N_={class:"warning-feedback"},S_={class:"invalid-feedback"},D_={class:"paper-settings-section"},R_={class:"form-check"},T_={class:"form-check-input",type:"checkbox",id:"link",name:"link"},O_={class:"form-check"},A_={class:"form-check-input",type:"checkbox",id:"image",name:"image"},I_={class:"form-check"},V_={class:"form-check-input",type:"checkbox",id:"pdf",name:"pdf"},P_={class:"form-check"},q_={class:"form-check-input",type:"checkbox",id:"notebook",name:"notebook"},M_={class:"form-check"},$_=["disabled"],F_={class:"form-check"},L_={class:"form-check-input",type:"checkbox",id:"title-gist",name:"title-gist"},U_={class:"form-check"},z_={class:"form-check-input",type:"checkbox",id:"content-gist",name:"content-gist"},H_={class:"form-check"},B_={class:"form-check-input",type:"checkbox",id:"comments-gist",name:"comments-gist"},G_={class:"form-check"},j_={class:"form-check-input",type:"checkbox",id:"username-gist",name:"username-gist"},W_={class:"form-check"},K_={class:"form-check-input",type:"checkbox",id:"date-gist",name:"date-gist"},Y_={class:"form-check"},x_={class:"form-check-input",type:"checkbox",id:"origin-gist",name:"origin-gist"},J_={class:"form-check"},Q_={class:"form-check-input",type:"checkbox",id:"title",name:"title"},X_={class:"form-check"},Z_={class:"form-check-input",type:"checkbox",id:"body",name:"body"},e0={class:"form-check"},t0={class:"form-check-input",type:"checkbox",id:"diff",name:"diff"},s0={class:"form-check"},n0={class:"form-check-input",type:"checkbox",id:"comments",name:"comments"},o0={class:"form-check"},r0={class:"form-check-input",type:"checkbox",id:"username",name:"username"},i0={class:"form-check"},a0={class:"form-check-input",type:"checkbox",id:"date",name:"date"},l0={class:"form-check"},d0={class:"form-check-input",type:"checkbox",id:"origin",name:"origin"},u0={class:"paper-settings-section"},c0={class:"form-grid-2"},p0={class:"form-group"},f0={class:"form-control",id:"expiration",name:"expiration"},m0={class:"form-group"},h0=["min","max"],v0={class:"invalid-feedback"},y0={class:"invalid-feedback"},g0={class:"paper-settings-section"},b0={class:"form-group"},w0={style:{position:"relative"}},k0={type:"text",id:"coauthorSearch",class:"form-control",placeholder:"Search GitHub username\u2026",autocomplete:"off"},_0={class:"dropdown-menu show",style:{display:"block","max-height":"220px","overflow-y":"auto",width:"100%"}},E0=["onClick"],C0=["src"],N0=["textContent"],S0=["textContent"],D0={class:"coauthor-list"},R0={class:"coauthor-row d-flex align-items-center",style:{padding:"6px 0",gap:"8px"}},T0=["src"],O0=["textContent","href"],A0=["onClick"],I0={class:"form-text text-muted"},V0=["textContent"],P0={class:"anonymize-submit-bar"},q0={key:0,class:"anonymize-preview-col"},M0=["innerHTML"],$0={key:1,class:"anonymize-preview-col"},F0={class:"anonymize-preview-body"},L0={class:"d-flex w-100 justify-content-between align-items-center flex-wrap"},U0={class:"pr-title mb-1"},z0={key:0},H0=["textContent"],B0={key:0},G0={key:1},j0={key:2},W0={class:"pr-comments mt-3"},K0={class:"pr-comment"},Y0={class:"pr-comment-head"},x0=["textContent"],J0={key:0,class:"pr-comment-date"},Q0={key:3},X0={class:"pr-comments"},Z0={class:"pr-comment"},eE={class:"pr-comment-head"},tE={key:0,class:"pr-comment-author"},sE=["textContent"],nE=["textContent"],oE={key:0,class:"pr-comment-body"},rE={key:2,class:"anonymize-preview-col"},iE={class:"anonymize-preview-body"},aE={class:"d-flex w-100 justify-content-between align-items-center flex-wrap"},lE={class:"pr-title mb-1"},dE={key:0},uE=["textContent"],cE={key:0},pE={key:1,class:"pr-body shadow-sm p-3 mb-4 rounded",style:{background:"var(--paper-bg-alt)"}},fE={key:2,class:"paper-tabs",role:"tablist"},mE=["textContent"],hE={class:"paper-tab-content"},vE={key:0},yE=["innerHTML"],gE={key:1},bE={class:"pr-comments"},wE={class:"pr-comment"},kE={class:"pr-comment-head"},_E={key:0,class:"pr-comment-author"},EE=["textContent"],CE=["textContent"],NE={key:0,class:"pr-comment-body"};function Xa(e,t){let o=et("gist-file"),r=et("markdown"),n=ge("field"),i=ge("form");return l(),d("div",_k,[m(" ===== STATE 1: No URL \u2014 centered input ===== "),E(s("div",Ek,[s("div",Ck,[t[10]||(t[10]=s("div",{class:"paper-crumbs"},[y("My work \xA0/\xA0 "),s("span",{class:"here"},"New anonymization")],-1)),t[11]||(t[11]=s("h1",{class:"paper-page-title"},[y("New "),s("em",null,"anonymization")],-1)),t[12]||(t[12]=s("p",{class:"paper-page-lede"}," Paste a GitHub repository, pull-request, or gist URL. We\u2019ll fetch it, strip every trace of identity, and hand you back a stable link. ",-1)),s("div",Nk,[t[9]||(t[9]=s("label",{class:"paper-field-label",for:"sourceUrl-landing"},"Source URL",-1)),E(s("input",Sk,null,512),[[n,{state:e.viewState,set:a=>{e.sourceUrl=a},value:e.sourceUrl,form:null,options:{debounce:{default:1e3,blur:0,click:0},updateOn:"default blur click"},change:()=>{e.urlSelected()}}]])]),t[13]||(t[13]=s("small",{class:"form-text",style:{color:"var(--ink-muted)"}}," Repository, pull request (\u2026/pull/42) and gist (gist.github.com/\u2026) URLs are all accepted. ",-1))])],512),[[H,!e.sourceUrl]]),m(" ===== STATE 2: URL provided \u2014 form (left) + preview (right) ===== "),E(s("div",Dk,[s("header",Rk,[s("div",Tk,[s("div",Ok,[t[14]||(t[14]=s("a",{href:"/dashboard"},"My work",-1)),t[15]||(t[15]=y(" \xA0/\xA0 ",-1)),s("span",Ak,c(e.isUpdate?"Edit anonymization":"New anonymization"),1)]),s("div",Ik,[s("h1",Vk,[e.isUpdate?m("v-if",!0):(l(),d("span",Pk,[...t[16]||(t[16]=[y("New ",-1),s("em",null,"anonymization",-1)])])),e.isUpdate?(l(),d("span",qk,[...t[17]||(t[17]=[y("Edit ",-1),s("em",null,"anonymization",-1)])])):m("v-if",!0)]),E(s("span",{class:T(["type-badge",{"type-repo":e.detectedType==="repo","type-pr":e.detectedType==="pr","type-gist":e.detectedType==="gist"}])},c(e.detectedType==="repo"?"Repo":e.detectedType==="pr"?"PR":"Gist"),3),[[H,e.detectedType]])])])]),s("div",Mk,[m(" Form column (left) "),s("div",$k,[E((l(),d("form",Fk,[s("section",Lk,[t[24]||(t[24]=s("div",{class:"paper-section-eyebrow"},"Source",-1)),s("div",Uk,[t[18]||(t[18]=s("label",{class:"paper-field-label",for:"sourceUrl"},"GitHub URL",-1)),E(s("input",{type:"text",class:T(["form-control",{"is-invalid":e.anonymize?.sourceUrl?.invalid}]),name:"sourceUrl",id:"sourceUrl",disabled:e.isUpdate&&e.detectedType!=="repo",placeholder:"Paste a GitHub repo or pull request URL"},null,10,zk),[[n,{state:e.viewState,set:a=>{e.sourceUrl=a},value:e.sourceUrl,form:"anonymize",options:{debounce:{default:1e3,blur:0,click:0},updateOn:"default blur click"},change:()=>{e.urlSelected()}}]]),E(s("div",Hk," Please provide a valid GitHub URL. ",512),[[H,e.anonymize?.sourceUrl?.errors?.github]]),E(s("div",Bk," Not accessible. The organization may restrict access. ",512),[[H,e.anonymize?.sourceUrl?.errors?.access]]),E(s("div",Gk," Does not exist or is not accessible. ",512),[[H,e.anonymize?.sourceUrl?.errors?.missing]]),E(s("div",jk," Already anonymized. ",512),[[H,e.anonymize?.sourceUrl?.errors?.used]])]),E(s("div",Wk,[s("div",Kk,[t[20]||(t[20]=s("label",{class:"paper-field-label",for:"branch"},"Branch",-1)),s("div",Yk,[E((l(),d("select",xk,[(l(!0),d(x,null,re(e.branches,(a,u)=>(l(),d("option",{textContent:c(a?.name),value:a?.name},null,8,Jk))),256))])),[[n,{state:e.viewState,set:a=>{e.source.branch=a},value:e.source?.branch,form:"anonymize",options:{}}]]),s("div",Qk,[s("button",{class:"btn",type:"button",title:"Refresh","data-toggle":"tooltip","data-placement":"bottom",onClick:t[0]||(t[0]=a=>e.getBranches(!0))},[...t[19]||(t[19]=[s("i",{class:"fas fa-sync","aria-hidden":"true"},null,-1)])])])])]),s("div",Xk,[t[21]||(t[21]=s("label",{class:"paper-field-label",for:"commit"},"Commit",-1)),E(s("input",{class:T(["form-control",{"is-invalid":e.anonymize?.commit?.invalid}]),id:"commit",disabled:e.options.update,name:"commit",pattern:"[a-fA-Z0-9]{6,}",required:""},null,10,Zk),[[n,{state:e.viewState,set:a=>{e.source.commit=a},value:e.source?.commit,form:"anonymize",options:{}}]]),E(s("div",e_," The commit SHA is not valid. ",512),[[H,e.anonymize?.commit?.errors?.pattern||e.anonymize?.commit?.errors?.required]]),E(s("div",t_," This commit no longer exists in the repository. Click refresh to get the latest. ",512),[[H,e.anonymize?.commit?.errors?.exists]])])],512),[[H,e.detectedType==="repo"]]),E(s("div",s_,[E(s("input",n_,null,512),[[n,{state:e.viewState,set:a=>{e.options.update=a},value:e.options?.update,form:"anonymize",options:{}}]]),t[22]||(t[22]=s("label",{class:"form-check-label",for:"update"},"Auto-update from GitHub",-1)),t[23]||(t[23]=s("small",{class:"form-text text-muted"},"Follow the branch and pull the latest commit automatically, at most once an hour.",-1))],512),[[H,e.detectedType]])]),E(s("section",o_,[t[35]||(t[35]=s("div",{class:"paper-section-eyebrow"},"Identity",-1)),E(s("div",r_,[t[27]||(t[27]=s("label",{class:"paper-field-label",for:"repoId"},"Anonymized repository ID",-1)),E(s("input",{type:"text",class:T(["form-control",{"is-invalid":e.anonymize?.repoId?.invalid}]),name:"repoId",id:"repoId",disabled:e.isUpdate},null,10,i_),[[n,{state:e.viewState,set:a=>{e.repoId=a},value:e.repoId,form:"anonymize",options:{debounce:{default:1e3,blur:0,click:0},updateOn:"default blur click"}}]]),s("small",a_,[t[25]||(t[25]=y("Your share link will be ",-1)),s("code",null,"anonymous.4open.science/r/"+c(e.repoId),1),t[26]||(t[26]=y(".",-1))]),E(s("div",l_,"ID can only contain letters and numbers.",512),[[H,e.anonymize?.repoId?.errors?.format]]),E(s("div",{class:"invalid-feedback"},c(e.repoId)+" is already used.",513),[[H,e.anonymize?.repoId?.errors?.used]])],512),[[H,e.detectedType==="repo"]]),E(s("div",d_,[t[30]||(t[30]=s("label",{class:"paper-field-label",for:"pullRequestId"},"Anonymized pull request ID",-1)),E(s("input",{type:"text",class:T(["form-control",{"is-invalid":e.anonymize?.pullRequestId?.invalid}]),name:"pullRequestId",id:"pullRequestId",disabled:e.isUpdate},null,10,u_),[[n,{state:e.viewState,set:a=>{e.pullRequestId=a},value:e.pullRequestId,form:"anonymize",options:{debounce:{default:1e3,blur:0,click:0},updateOn:"default blur click"}}]]),s("small",c_,[t[28]||(t[28]=y("Your share link will be ",-1)),s("code",null,"anonymous.4open.science/pr/"+c(e.pullRequestId),1),t[29]||(t[29]=y(".",-1))]),E(s("div",p_,"ID can only contain letters and numbers.",512),[[H,e.anonymize?.pullRequestId?.errors?.format]]),E(s("div",{class:"invalid-feedback"},c(e.pullRequestId)+" is already used.",513),[[H,e.anonymize?.pullRequestId?.errors?.used]])],512),[[H,e.detectedType==="pr"]]),E(s("div",f_,[t[33]||(t[33]=s("label",{class:"paper-field-label",for:"gistId"},"Anonymized gist ID",-1)),E(s("input",{type:"text",class:T(["form-control",{"is-invalid":e.anonymize?.gistId?.invalid}]),name:"gistId",id:"gistId",disabled:e.isUpdate},null,10,m_),[[n,{state:e.viewState,set:a=>{e.gistId=a},value:e.gistId,form:"anonymize",options:{debounce:{default:1e3,blur:0,click:0},updateOn:"default blur click"}}]]),s("small",h_,[t[31]||(t[31]=y("Your share link will be ",-1)),s("code",null,"anonymous.4open.science/gist/"+c(e.gistId),1),t[32]||(t[32]=y(".",-1))]),E(s("div",v_,"ID can only contain letters and numbers.",512),[[H,e.anonymize?.gistId?.errors?.format]]),E(s("div",{class:"invalid-feedback"},c(e.gistId)+" is already used.",513),[[H,e.anonymize?.gistId?.errors?.used]])],512),[[H,e.detectedType==="gist"]]),s("div",y_,[t[34]||(t[34]=s("label",{class:"paper-field-label",for:"conference"},[y("Conference "),s("span",{class:"paper-optional"},"(optional)")],-1)),E(s("input",{class:T(["form-control",{"is-invalid":e.anonymize?.conference?.invalid}]),id:"conference",name:"conference"},null,2),[[n,{state:e.viewState,set:a=>{e.conference=a},value:e.conference,form:"anonymize",options:{debounce:{default:800,blur:0},updateOn:"default blur"}}]]),E(s("small",g_,[s("a",{target:"_blank",href:e.safeUrl(e.conference_data?.url)},c(e.conference_data?.name),9,b_),y(" expires "+c(e.fmt?.date(e.conference_data?.endDate))+". ",1)],512),[[H,e.conference_data]]),E(s("div",w_,"The conference is not activated.",512),[[H,e.anonymize?.conference?.errors?.activated]]),E(s("small",k_,"Link to a conference to apply its shared defaults.",512),[[H,!e.conference_data]])])],512),[[H,e.detectedType]]),E(s("section",__,[t[43]||(t[43]=s("div",{class:"paper-section-eyebrow"},"Anonymization",-1)),s("div",E_,[t[42]||(t[42]=s("label",{class:"paper-field-label",for:"terms"},"Terms to redact",-1)),E(s("textarea",{class:T(["form-control",{"is-invalid":e.anonymize?.terms?.invalid}]),id:"terms",name:"terms",rows:"4"},null,2),[[n,{state:e.viewState,set:a=>{e.terms=a},value:e.terms,form:"anonymize",options:{debounce:250}}]]),s("small",C_,[t[36]||(t[36]=y("One term per line (regex allowed). Replaced by ",-1)),s("code",null,c(e.site_options?.ANONYMIZATION_MASK)+"-[N]",1),t[37]||(t[37]=y(", or use ",-1)),t[38]||(t[38]=s("code",null,"term=>replacement",-1)),t[39]||(t[39]=y(" to pick your own (e.g. ",-1)),t[40]||(t[40]=s("code",null,"Anonymous=>ABC",-1)),t[41]||(t[41]=y(").",-1))]),E(s("div",N_,"Regex characters detected. Escape them if unintentional.",512),[[H,e.termsRegexWarning]]),E(s("div",S_,"Terms are in an invalid format.",512),[[H,e.anonymize?.terms?.errors?.format]])])],512),[[H,e.detectedType]]),E(s("section",D_,[t[62]||(t[62]=s("div",{class:"paper-section-eyebrow"},"Display",-1)),E(s("div",null,[s("div",R_,[E(s("input",T_,null,512),[[n,{state:e.viewState,set:a=>{e.options.link=a},value:e.options?.link,form:"anonymize",options:{}}]]),t[44]||(t[44]=s("label",{class:"form-check-label",for:"link"},"Keep links",-1))]),s("div",O_,[E(s("input",A_,null,512),[[n,{state:e.viewState,set:a=>{e.options.image=a},value:e.options?.image,form:"anonymize",options:{}}]]),t[45]||(t[45]=s("label",{class:"form-check-label",for:"image"},"Display images",-1))]),s("div",I_,[E(s("input",V_,null,512),[[n,{state:e.viewState,set:a=>{e.options.pdf=a},value:e.options?.pdf,form:"anonymize",options:{}}]]),t[46]||(t[46]=s("label",{class:"form-check-label",for:"pdf"},"Display PDFs",-1))]),s("div",P_,[E(s("input",q_,null,512),[[n,{state:e.viewState,set:a=>{e.options.notebook=a},value:e.options?.notebook,form:"anonymize",options:{}}]]),t[47]||(t[47]=s("label",{class:"form-check-label",for:"notebook"},"Display Notebooks",-1))]),s("div",M_,[E(s("input",{class:"form-check-input",type:"checkbox",id:"page",name:"page",disabled:!e.details?.hasPage||e.details?.pageSource&&e.details?.pageSource?.branch!==e.source?.branch},null,8,$_),[[n,{state:e.viewState,set:a=>{e.options.page=a},value:e.options?.page,form:"anonymize",options:{}}]]),t[48]||(t[48]=s("label",{class:"form-check-label",for:"page"},"GitHub Pages",-1)),E(s("small",{class:"form-text text-muted d-block"},c(e.fmt?.translate("WARNINGS.page_not_enabled_on_repo")),513),[[H,!e.details?.hasPage]]),E(s("small",{class:"form-text text-muted d-block"},c(e.fmt?.translate("WARNINGS.page_branch_mismatch",{pageBranch:e.details?.pageSource?.branch,selectedBranch:e.source?.branch})),513),[[H,e.details?.hasPage&&e.details?.pageSource&&e.details?.pageSource?.branch!==e.source?.branch]])])],512),[[H,e.detectedType==="repo"]]),E(s("div",null,[s("div",F_,[E(s("input",L_,null,512),[[n,{state:e.viewState,set:a=>{e.options.title=a},value:e.options?.title,form:"anonymize",options:{}}]]),t[49]||(t[49]=s("label",{class:"form-check-label",for:"title-gist"},"Gist description",-1))]),s("div",U_,[E(s("input",z_,null,512),[[n,{state:e.viewState,set:a=>{e.options.content=a},value:e.options?.content,form:"anonymize",options:{}}]]),t[50]||(t[50]=s("label",{class:"form-check-label",for:"content-gist"},"File contents",-1))]),s("div",H_,[E(s("input",B_,null,512),[[n,{state:e.viewState,set:a=>{e.options.comments=a},value:e.options?.comments,form:"anonymize",options:{}}]]),t[51]||(t[51]=s("label",{class:"form-check-label",for:"comments-gist"},"Comments",-1))]),s("div",G_,[E(s("input",j_,null,512),[[n,{state:e.viewState,set:a=>{e.options.username=a},value:e.options?.username,form:"anonymize",options:{}}]]),t[52]||(t[52]=s("label",{class:"form-check-label",for:"username-gist"},"Usernames",-1))]),s("div",W_,[E(s("input",K_,null,512),[[n,{state:e.viewState,set:a=>{e.options.date=a},value:e.options?.date,form:"anonymize",options:{}}]]),t[53]||(t[53]=s("label",{class:"form-check-label",for:"date-gist"},"Dates",-1))]),s("div",Y_,[E(s("input",x_,null,512),[[n,{state:e.viewState,set:a=>{e.options.origin=a},value:e.options?.origin,form:"anonymize",options:{}}]]),t[54]||(t[54]=s("label",{class:"form-check-label",for:"origin-gist"},"Source gist ID",-1))])],512),[[H,e.detectedType==="gist"]]),E(s("div",null,[s("div",J_,[E(s("input",Q_,null,512),[[n,{state:e.viewState,set:a=>{e.options.title=a},value:e.options?.title,form:"anonymize",options:{}}]]),t[55]||(t[55]=s("label",{class:"form-check-label",for:"title"},"PR title",-1))]),s("div",X_,[E(s("input",Z_,null,512),[[n,{state:e.viewState,set:a=>{e.options.body=a},value:e.options?.body,form:"anonymize",options:{}}]]),t[56]||(t[56]=s("label",{class:"form-check-label",for:"body"},"PR body",-1))]),s("div",e0,[E(s("input",t0,null,512),[[n,{state:e.viewState,set:a=>{e.options.diff=a},value:e.options?.diff,form:"anonymize",options:{}}]]),t[57]||(t[57]=s("label",{class:"form-check-label",for:"diff"},"Diff",-1))]),s("div",s0,[E(s("input",n0,null,512),[[n,{state:e.viewState,set:a=>{e.options.comments=a},value:e.options?.comments,form:"anonymize",options:{}}]]),t[58]||(t[58]=s("label",{class:"form-check-label",for:"comments"},"Comments",-1))]),s("div",o0,[E(s("input",r0,null,512),[[n,{state:e.viewState,set:a=>{e.options.username=a},value:e.options?.username,form:"anonymize",options:{}}]]),t[59]||(t[59]=s("label",{class:"form-check-label",for:"username"},"Usernames",-1))]),s("div",i0,[E(s("input",a0,null,512),[[n,{state:e.viewState,set:a=>{e.options.date=a},value:e.options?.date,form:"anonymize",options:{}}]]),t[60]||(t[60]=s("label",{class:"form-check-label",for:"date"},"Dates",-1))]),s("div",l0,[E(s("input",d0,null,512),[[n,{state:e.viewState,set:a=>{e.options.origin=a},value:e.options?.origin,form:"anonymize",options:{}}]]),t[61]||(t[61]=s("label",{class:"form-check-label",for:"origin"},"Project name",-1))])],512),[[H,e.detectedType==="pr"]])],512),[[H,e.detectedType]]),E(s("section",u0,[t[66]||(t[66]=s("div",{class:"paper-section-eyebrow"},"Expiration",-1)),s("div",c0,[s("div",p0,[t[64]||(t[64]=s("label",{class:"paper-field-label",for:"expiration"},"Strategy",-1)),E((l(),d("select",f0,[...t[63]||(t[63]=[s("option",{value:"redirect"},"Redirect to GitHub when expired",-1),s("option",{value:"remove",selected:""},"Remove when expired",-1)])])),[[n,{state:e.viewState,set:a=>{e.options.expirationMode=a},value:e.options?.expirationMode,form:"anonymize",options:{}}]])]),s("div",m0,[t[65]||(t[65]=s("label",{class:"paper-field-label",for:"expirationDate"},"Expiration date",-1)),E(s("input",{class:T(["form-control",{"is-invalid":e.anonymize?.expirationDate?.invalid}]),type:"date",name:"expirationDate",id:"expirationDate",required:"",min:e.minExpirationDate,max:e.maxExpirationDate},null,10,h0),[[n,{state:e.viewState,set:a=>{e.options.expirationDate=a},value:e.options?.expirationDate,form:"anonymize",options:{}}]]),E(s("div",v0,"Pick a date in the future.",512),[[H,e.anonymize?.expirationDate?.errors?.min]]),E(s("div",{class:"invalid-feedback"},"Pick a date on or before "+c(e.fmt?.date(e.maxExpirationDate))+".",513),[[H,e.anonymize?.expirationDate?.errors?.max]]),E(s("div",y0,"Enter a valid expiration date.",512),[[H,e.anonymize?.expirationDate?.errors?.required||e.anonymize?.expirationDate?.errors?.date]])])]),E(s("small",{class:"form-text text-muted"},"After "+c(e.fmt?.date(e.options?.expirationDate))+", the content will be removed.",513),[[H,e.options?.expirationMode=="remove"&&e.options?.expirationDate]]),E(s("small",{class:"form-text text-muted"},"After "+c(e.fmt?.date(e.options?.expirationDate))+", visitors will be redirected to GitHub.",513),[[H,e.options?.expirationMode=="redirect"&&e.options?.expirationDate]])],512),[[H,e.detectedType]]),E(s("section",g0,[t[70]||(t[70]=s("div",{class:"paper-section-eyebrow"},"Co-authors",-1)),t[71]||(t[71]=s("p",{class:"form-text text-muted",style:{"margin-bottom":"8px"}}," Co-authors can view and edit these settings. They cannot delete the anonymization or manage co-authors. ",-1)),E(s("div",b0,[t[67]||(t[67]=s("label",{class:"paper-field-label",for:"coauthorSearch"},"Add a GitHub user",-1)),s("div",w0,[E(s("input",k0,null,512),[[n,{state:e.viewState,set:a=>{e.coauthorSearch=a},value:e.coauthorSearch,form:"anonymize",options:{debounce:300},change:()=>{e.searchCoauthors()}}]]),E(s("div",_0,[(l(!0),d(x,null,re(e.coauthorResults,(a,u)=>(l(),d("a",{href:"#",class:"dropdown-item d-flex align-items-center",onClick:be(p=>e.addCoauthor(a,p),["prevent"])},[s("img",{alt:"",style:{width:"22px",height:"22px","border-radius":"50%","margin-right":"8px"},src:e.safeUrl(a?.photo)},null,8,C0),s("span",{textContent:c(a?.username)},null,8,N0)],8,E0))),256))],512),[[H,e.coauthorResults?.length>0]])]),E(s("small",{class:"form-text text-muted",textContent:c(e.coauthorError)},null,8,S0),[[H,e.coauthorError]])],512),[[H,e.role==="owner"||e.role==="admin"]]),s("div",D0,[(l(!0),d(x,null,re(e.coauthors,(a,u)=>(l(),d("div",R0,[a?.photo?(l(),d("img",{key:0,alt:"",style:{width:"24px",height:"24px","border-radius":"50%"},src:e.safeUrl(a?.photo)},null,8,T0)):m("v-if",!0),s("a",{target:"_blank",textContent:c(a?.username),href:e.safeUrl("https://github.com/"+a?.username)},null,8,O0),t[69]||(t[69]=s("span",{class:"type-badge type-coauthor"},"Co-author",-1)),E(s("button",{type:"button",class:"btn btn-sm",style:{"margin-left":"auto"},title:"Remove co-author",onClick:p=>e.removeCoauthor(a)},[...t[68]||(t[68]=[s("i",{class:"fas fa-times"},null,-1)])],8,A0),[[H,e.role==="owner"||e.role==="admin"]])]))),256)),E(s("div",I0," No co-authors yet. ",512),[[H,!e.coauthors||e.coauthors?.length===0]])])],512),[[H,e.isUpdate&&e.detectedType==="repo"]]),e.error?(l(),d("div",{key:0,class:"alert alert-danger",role:"alert",textContent:c(e.error)},null,8,V0)):m("v-if",!0),E(s("div",P0,[e.detectedType==="repo"&&!e.isUpdate?(l(),d("button",{key:0,type:"submit",class:"btn btn-ink",onClick:t[1]||(t[1]=be(a=>e.submitForm(a,()=>{e.anonymizeRepo(a)}),["prevent"]))},[...t[72]||(t[72]=[s("i",{class:"fas fa-user-secret mr-1"},null,-1),y(" Anonymize Repository ",-1)])])):m("v-if",!0),e.detectedType==="repo"&&e.isUpdate?(l(),d("button",{key:1,type:"submit",class:"btn btn-ink",onClick:t[2]||(t[2]=be(a=>e.submitForm(a,()=>{e.anonymizeRepo(a)}),["prevent"]))},[...t[73]||(t[73]=[s("i",{class:"fas fa-save mr-1"},null,-1),y(" Update Repository ",-1)])])):m("v-if",!0),e.detectedType==="pr"&&!e.isUpdate?(l(),d("button",{key:2,type:"submit",class:"btn btn-ink",onClick:t[3]||(t[3]=be(a=>e.submitForm(a,()=>{e.anonymizePullRequest(a)}),["prevent"]))},[...t[74]||(t[74]=[s("i",{class:"fas fa-user-secret mr-1"},null,-1),y(" Anonymize Pull Request ",-1)])])):m("v-if",!0),e.detectedType==="pr"&&e.isUpdate?(l(),d("button",{key:3,type:"submit",class:"btn btn-ink",onClick:t[4]||(t[4]=be(a=>e.submitForm(a,()=>{e.anonymizePullRequest(a)}),["prevent"]))},[...t[75]||(t[75]=[s("i",{class:"fas fa-save mr-1"},null,-1),y(" Update Pull Request ",-1)])])):m("v-if",!0),e.detectedType==="gist"&&!e.isUpdate?(l(),d("button",{key:4,type:"submit",class:"btn btn-ink",onClick:t[5]||(t[5]=be(a=>e.submitForm(a,()=>{e.anonymizeGist(a)}),["prevent"]))},[...t[76]||(t[76]=[s("i",{class:"fas fa-user-secret mr-1"},null,-1),y(" Anonymize Gist ",-1)])])):m("v-if",!0),e.detectedType==="gist"&&e.isUpdate?(l(),d("button",{key:5,type:"submit",class:"btn btn-ink",onClick:t[6]||(t[6]=be(a=>e.submitForm(a,()=>{e.anonymizeGist(a)}),["prevent"]))},[...t[77]||(t[77]=[s("i",{class:"fas fa-save mr-1"},null,-1),y(" Update Gist ",-1)])])):m("v-if",!0)],512),[[H,e.detectedType]])])),[[i,e.viewState]])]),m(" Preview column (right) "),e.detectedType==="repo"&&e.html_readme?(l(),d("div",q0,[t[78]||(t[78]=s("div",{class:"anonymize-preview-head"},[s("span",{class:"paper-eyebrow"},"Live preview"),s("span",{class:"anonymize-preview-sub"},"README with redactions applied")],-1)),s("div",{class:"anonymize-preview-body markdown-body body",innerHTML:e.sanitize(e.html_readme)},null,8,M0)])):m("v-if",!0),e.detectedType==="gist"&&e.details?(l(),d("div",$0,[t[82]||(t[82]=s("div",{class:"anonymize-preview-head"},[s("span",{class:"paper-eyebrow"},"Live preview"),s("span",{class:"anonymize-preview-sub"},"Gist with redactions applied")],-1)),s("div",F0,[s("div",L0,[s("h2",U0,[e.options?.title?(l(),d("span",z0,c(e.anonymizeGistContent(e.details?.gist?.description)||"Untitled gist"),1)):m("v-if",!0),s("span",{class:T(["badge",{"badge-success":e.details?.gist?.isPublic,"badge-secondary":!e.details?.gist?.isPublic}])},c(e.details?.gist?.isPublic?"public":"secret"),3)]),e.options?.date?(l(),d("small",{key:0,textContent:c(e.fmt?.date(e.details?.gist?.updatedDate))},null,8,H0)):m("v-if",!0)]),e.options?.origin?(l(),d("small",B0,"Gist ID: "+c(e.details?.source?.gistId),1)):m("v-if",!0),e.options?.username&&e.details?.gist?.ownerLogin?(l(),d("small",G0,"By @"+c(e.anonymizeGistContent(e.details?.gist?.ownerLogin)),1)):m("v-if",!0),e.options?.content&&e.previewGistFiles?.length?(l(),d("div",j0,[s("ul",W0,[(l(!0),d(x,null,re(e.previewGistFiles,(a,u)=>(l(),d("li",K0,[s("div",Y0,[s("strong",{textContent:c(a?.filename)},null,8,x0),a?.language?(l(),d("span",J0,c(a?.language),1)):m("v-if",!0)]),Se(o,{file:a,terms:e.terms,options:e.options},null,8,["file","terms","options"])]))),256))])])):m("v-if",!0),e.options?.comments&&e.details?.gist?.comments&&e.details?.gist?.comments?.length?(l(),d("div",Q0,[t[81]||(t[81]=s("h3",{class:"paper-section-eyebrow mt-3"},"Comments",-1)),s("ul",X0,[(l(!0),d(x,null,re(e.details?.gist?.comments,(a,u)=>(l(),d("li",Z0,[s("div",eE,[e.options?.username?(l(),d("span",tE,[t[79]||(t[79]=s("i",{class:"far fa-user"},null,-1)),t[80]||(t[80]=y(" @",-1)),s("span",{textContent:c(e.anonymizeGistContent(a?.author))},null,8,sE)])):m("v-if",!0),e.options?.date?(l(),d("span",{key:1,class:"pr-comment-date",textContent:c(e.fmt?.date(a?.updatedDate))},null,8,nE)):m("v-if",!0)]),e.options?.body?(l(),d("div",oE,[Se(r,{content:e.anonymizeGistContent(a?.body),options:e.options,terms:e.terms},null,8,["content","options","terms"])])):m("v-if",!0)]))),256))])])):m("v-if",!0)])])):m("v-if",!0),e.detectedType==="pr"&&e.details?(l(),d("div",rE,[t[87]||(t[87]=s("div",{class:"anonymize-preview-head"},[s("span",{class:"paper-eyebrow"},"Live preview"),s("span",{class:"anonymize-preview-sub"},"Pull request with redactions applied")],-1)),s("div",iE,[s("div",aE,[s("h2",lE,[e.options?.title?(l(),d("span",dE,c(e.anonymizePrContent(e.details?.pullRequest?.title)),1)):m("v-if",!0),s("span",{class:T(["badge",{"badge-success":e.details?.pullRequest?.merged,"badge-warning":e.details?.pullRequest?.state=="open","badge-danger":e.details?.pullRequest?.state=="closed"&&!e.details?.pullRequest?.merged}])},c(e.fmt?.title(e.details?.pullRequest?.merged?"merged":e.details?.pullRequest?.state)),3)]),e.options?.date?(l(),d("small",{key:0,textContent:c(e.fmt?.date(e.details?.pullRequest?.updatedDate))},null,8,uE)):m("v-if",!0)]),e.options?.origin?(l(),d("small",cE,"Pull Request on "+c(e.details?.pullRequest?.baseRepositoryFullName),1)):m("v-if",!0),e.options?.body?(l(),d("div",pE,[Se(r,{content:e.anonymizePrContent(e.details?.pullRequest?.body),options:e.options,terms:e.terms},null,8,["content","options","terms"])])):m("v-if",!0),e.options?.diff||e.options?.comments?(l(),d("nav",fE,[e.options?.diff?(l(),d("button",{key:0,class:T(["paper-tab",{active:e.prTabState?.active=="diff"}]),type:"button",role:"tab",onClick:t[7]||(t[7]=a=>e.prTabState.active="diff")},[...t[83]||(t[83]=[s("i",{class:"fas fa-code"},null,-1),y(" Diff ",-1)])],2)):m("v-if",!0),e.options?.comments?(l(),d("button",{key:1,class:T(["paper-tab",{active:e.prTabState?.active=="comments"}]),type:"button",role:"tab",onClick:t[8]||(t[8]=a=>e.prTabState.active="comments")},[t[84]||(t[84]=s("i",{class:"far fa-comment-dots"},null,-1)),s("span",{textContent:c(e.fmt.plural(e.details?.pullRequest?.comments?.length,{0:"No comments",one:"1 comment",other:"{} comments"}))},null,8,mE)],2)):m("v-if",!0)])):m("v-if",!0),s("div",hE,[e.options?.diff&&e.prTabState?.active=="diff"?(l(),d("div",vE,[s("div",{class:"pr-diff",innerHTML:e.sanitize(e.fmt?.diff(e.anonymizePrContent(e.details?.pullRequest?.diff)))},null,8,yE)])):m("v-if",!0),e.options?.comments&&e.prTabState?.active=="comments"?(l(),d("div",gE,[s("ul",bE,[(l(!0),d(x,null,re(e.details?.pullRequest?.comments,(a,u)=>(l(),d("li",wE,[s("div",kE,[e.options?.username?(l(),d("span",_E,[t[85]||(t[85]=s("i",{class:"far fa-user"},null,-1)),t[86]||(t[86]=y(" @",-1)),s("span",{textContent:c(e.anonymizePrContent(a?.author))},null,8,EE)])):m("v-if",!0),e.options?.date?(l(),d("span",{key:1,class:"pr-comment-date",textContent:c(e.fmt?.date(a?.updatedDate))},null,8,CE)):m("v-if",!0)]),e.options?.body?(l(),d("div",NE,[Se(r,{content:e.anonymizePrContent(a?.body),options:e.options,terms:e.terms},null,8,["content","options","terms"])])):m("v-if",!0)]))),256))])])):m("v-if",!0)])])])):m("v-if",!0)])],512),[[H,e.sourceUrl]])])}var SE={class:"container-fluid h-100 anonymize-page"},DE={class:"row h-100 flex-column flex-md-row"},RE={class:"col-md sidePanel shadow overflow-auto anonymize-form-col"},TE={class:"form-group"},OE={class:"form-group"},AE={class:"form-check"},IE={class:"form-check-input",type:"checkbox",id:"update",name:"update"},VE={class:"form-group"},PE={class:"form-text text-muted"},qE=["href"],ME={class:"invalid-feedback"},$E={class:"form-text text-muted"},FE={class:"form-group"},LE={id:"idHelp",class:"form-text text-muted"},UE={class:"invalid-feedback"},zE={class:"form-group"},HE={class:"invalid-feedback"},BE={class:"form-group"},GE={class:"form-control",id:"expiration",name:"expiration"},jE={class:"form-group",id:"expiration-date-form"},WE={class:"form-control",type:"date",name:"expirationDate",id:"expirationDate"},KE={class:"accordion mb-3",id:"options"},YE={class:"card"},xE={id:"collapseOne",class:"collapse show","aria-labelledby":"headingOne","data-parent":"#options"},JE={class:"card-body"},QE={class:"form-group mb-0"},XE={class:"form-check"},ZE={class:"form-check-input",type:"checkbox",id:"link",name:"link"},eC={class:"form-check"},tC={class:"form-check-input",type:"checkbox",id:"image",name:"image"},sC={class:"form-check"},nC={class:"form-check-input",type:"checkbox",id:"date",name:"date"},oC={class:"form-check"},rC={class:"form-check-input",type:"checkbox",id:"username",name:"username"},iC={class:"form-check"},aC={class:"form-check-input",type:"checkbox",id:"comments",name:"comments"},lC={class:"form-check"},dC={class:"form-check-input",type:"checkbox",id:"diff",name:"diff"},uC={class:"form-check"},cC={class:"form-check-input",type:"checkbox",id:"origin",name:"origin"},pC={class:"form-check"},fC={class:"form-check-input",type:"checkbox",id:"title",name:"title"},mC={class:"form-check"},hC={class:"form-check-input",type:"checkbox",id:"body",name:"body"},vC=["textContent"],yC={class:"anonymize-submit-bar"},gC={key:0,class:"col-md-8 p-2 overflow-auto anonymize-preview-col"},bC={class:"d-flex w-100 justify-content-between align-items-center flex-wrap"},wC={class:"pr-title mb-1"},kC={key:0},_C=["textContent"],EC={key:0},CC={key:1,class:"pr-body shadow-sm p-3 mb-4 rounded",style:{background:"var(--sidebar-bg-color)"}},NC={class:"nav nav-tabs",id:"myTab",role:"tablist"},SC={key:0,class:"nav-item",role:"presentation"},DC={key:1,class:"nav-item",role:"presentation"},RC=["textContent"],TC={class:"tab-content",id:"pills-tabContent"},OC={class:"tab-pane show active",id:"pills-diff",role:"tabpanel","aria-labelledby":"pills-diff-tab"},AC={key:0,class:"pr-diff shadow-sm p-3 mb-4 rounded",style:{background:"var(--sidebar-bg-color)"}},IC={style:{"overflow-x":"auto"}},VC=["innerHTML"],PC={key:0,class:"pr-comments list-group"},qC={class:"pr-comment list-group-item"},MC={class:"d-flex w-100 justify-content-between flex-wrap"},$C={key:0,class:"mb-1"},FC=["textContent"],LC={class:"mb-1"};function Za(e,t){let o=et("markdown"),r=ge("field"),n=ge("form");return l(),d("div",SE,[s("div",DE,[s("div",RE,[s("div",{class:T(["p-0 py-2 m-auto",{card:!e.pullRequestUrl,container:e.pullRequestUrl}])},[E((l(),d("form",{class:T(["form needs-validation",{"card-body":!e.pullRequestUrl}]),name:"anonymizeForm",novalidate:""},[t[30]||(t[30]=Ee('
Anonymize \xA0/\xA0 Pull request

Anonymize a pull request

Fill in the details \u2014 it only takes a minute.

Source
',4)),m(" pullRequestUrl "),s("div",TE,[t[2]||(t[2]=s("label",{for:"pullRequestUrl"},"URL of your pull request",-1)),E(s("input",{type:"text",class:T(["form-control",{"is-invalid":e.anonymize?.pullRequestUrl?.invalid}]),name:"pullRequestUrl",id:"pullRequestUrl",placeholder:"https://github.com/owner/repo/pull/123"},null,2),[[r,{state:e.viewState,set:i=>{e.pullRequestUrl=i},value:e.pullRequestUrl,form:"anonymizeForm",options:{debounce:{default:1e3,blur:0,click:0},updateOn:"default blur click"},change:()=>{e.pullRequestSelected()}}]]),E(s("div",{class:"invalid-feedback"},c(e.pullRequestUrl)+" is not accessible. Some organizations are restricting the access to the repositories. ",513),[[H,e.anonymize?.pullRequestUrl?.errors?.access]]),E(s("div",{class:"invalid-feedback"},c(e.pullRequestUrl)+" does not exist or is not accessible ",513),[[H,e.anonymize?.pullRequestUrl?.errors?.missing]]),E(s("div",{class:"invalid-feedback"},c(e.pullRequestUrl)+" is already anonymized ",513),[[H,e.anonymize?.pullRequestUrl?.errors?.used]])]),E(s("div",null,[s("div",OE,[s("div",AE,[E(s("input",IE,null,512),[[r,{state:e.viewState,set:i=>{e.options.update=i},value:e.options?.update,form:"anonymizeForm",options:{}}]]),t[3]||(t[3]=s("label",{class:"form-check-label",for:"update"},"Auto update",-1)),t[4]||(t[4]=s("small",{id:"updateHelp",class:"form-text text-muted"},"Automatically update the anonymized pull request with the latest updates. The pull request is updated once per day maximum.",-1))])]),t[26]||(t[26]=s("div",{class:"paper-section-eyebrow anonymize-section-title"},[s("i",{class:"fas fa-chalkboard-teacher"}),y(" Conference ID ")],-1)),m(" Conference "),s("div",VE,[t[5]||(t[5]=s("label",{for:"conference"},[y("Conference ID "),s("span",{class:"text-muted"},"(Optional)")],-1)),E(s("input",{class:T(["form-control",{"is-invalid":e.anonymize?.conference?.invalid}]),id:"conference",name:"conference"},null,2),[[r,{state:e.viewState,set:i=>{e.conference=i},value:e.conference,form:"anonymizeForm",options:{debounce:{default:800,blur:0},updateOn:"default blur"}}]]),E(s("small",PE,[s("a",{target:"_target",href:e.safeUrl(e.conference_data?.url)},c(e.conference_data?.name),9,qE),y(" will expire on "+c(e.fmt?.date(e.conference_data?.endDate))+".",1)],512),[[H,e.conference_data]]),E(s("div",ME," The conference is not activated. ",512),[[H,e.anonymize?.conference?.errors?.activated]]),E(s("small",$E," Use the Conference ID that your conference provided you. This will update automatically the anonymization options based on the conference preferences. ",512),[[H,!e.conference_data]])]),t[27]||(t[27]=s("div",{class:"paper-section-eyebrow anonymize-section-title"},[s("i",{class:"fas fa-shield-alt"}),y(" Anonymization Options ")],-1)),m(" Pull Request ID "),s("div",FE,[t[6]||(t[6]=s("label",{for:"pullRequestId"},"Anonymized pull request id",-1)),E(s("input",{type:"text",class:T(["form-control",{"is-invalid":e.anonymize?.pullRequestId?.invalid}]),name:"pullRequestId",id:"pullRequestId"},null,2),[[r,{state:e.viewState,set:i=>{e.pullRequestId=i},value:e.pullRequestId,form:"anonymizeForm",options:{debounce:{default:1e3,blur:0,click:0},updateOn:"default blur click"}}]]),s("small",LE,"Id used in the url: https://anonymous.4open.science/r/"+c(e.pullRequestId),1),E(s("div",UE," Repository id can only contain letters and numbers ",512),[[H,e.anonymize?.pullRequestId?.errors?.format]]),E(s("div",{class:"invalid-feedback"},c(e.pullRequestId)+" is already used ",513),[[H,e.anonymize?.pullRequestId?.errors?.used]])]),m(" Terms "),s("div",zE,[t[7]||(t[7]=s("label",{for:"terms"},"Terms to anonymize",-1)),E(s("textarea",{class:T(["form-control",{"is-invalid":e.anonymize?.terms?.invalid}]),id:"terms",name:"terms",rows:"3"},null,2),[[r,{state:e.viewState,set:i=>{e.terms=i},value:e.terms,form:"anonymizeForm",options:{debounce:250}}]]),t[8]||(t[8]=s("small",{id:"termsHelp",class:"form-text text-muted"},"One term per line. Each term will be replaced by XXX.",-1)),E(s("div",HE," Terms are in an invalid format ",512),[[H,e.anonymize?.terms?.errors?.format]])]),s("div",BE,[t[10]||(t[10]=s("label",{for:"expiration"},"Expiration strategy",-1)),E((l(),d("select",GE,[...t[9]||(t[9]=[s("option",{value:"never",selected:""},"Never expire",-1),s("option",{value:"redirect"}," Redirect to GitHub when expired ",-1),s("option",{value:"remove"},"Remove when expired",-1)])])),[[r,{state:e.viewState,set:i=>{e.options.expirationMode=i},value:e.options?.expirationMode,form:"anonymizeForm",options:{}}]]),t[11]||(t[11]=s("small",{class:"form-text text-muted"},"Define the expiration strategy for the anonymized repository.",-1))]),E(s("div",jE,[t[12]||(t[12]=s("label",{for:"expirationDate"},"Expiration date of the anonymized repository",-1)),E(s("input",WE,null,512),[[r,{state:e.viewState,set:i=>{e.options.expirationDate=i},value:e.options?.expirationDate,form:"anonymizeForm",options:{}}]]),E(s("small",{class:"form-text text-muted"},"After "+c(e.fmt?.date(e.options?.expirationDate))+", the repository will be removed and the visitor will not be able to see the content of the repository.",513),[[H,e.options?.expirationMode=="remove"]]),E(s("small",{class:"form-text text-muted"},"After "+c(e.fmt?.date(e.options?.expirationDate))+", the visitors of the anonymized repository will be redirected to "+c(e.pullRequestUrl)+".",513),[[H,e.options?.expirationMode=="redirect"]])],512),[[H,e.options?.expirationMode!="never"]]),s("div",KE,[s("div",YE,[t[25]||(t[25]=s("div",{class:"card-header",id:"headingOne"},[s("h2",{class:"mb-0"},[s("button",{class:"btn btn-block text-left",type:"button","data-toggle":"collapse","data-target":"#collapseOne","aria-expanded":"true","aria-controls":"collapseOne"},[s("i",{class:"fas fa-cog mr-1"}),y(" Advanced options ")])])],-1)),s("div",xE,[s("div",JE,[s("div",QE,[s("div",XE,[E(s("input",ZE,null,512),[[r,{state:e.viewState,set:i=>{e.options.link=i},value:e.options?.link,form:"anonymizeForm",options:{}}]]),t[13]||(t[13]=s("label",{class:"form-check-label",for:"link"},"Keep links",-1)),t[14]||(t[14]=s("small",{class:"form-text text-muted"},"Keep or remove all the links.",-1))]),s("div",eC,[E(s("input",tC,null,512),[[r,{state:e.viewState,set:i=>{e.options.image=i},value:e.options?.image,form:"anonymizeForm",options:{}}]]),t[15]||(t[15]=s("label",{class:"form-check-label",for:"image"},"Display images",-1)),t[16]||(t[16]=s("small",{class:"form-text text-muted"},"Images are not anonymized",-1))]),s("div",sC,[E(s("input",nC,null,512),[[r,{state:e.viewState,set:i=>{e.options.date=i},value:e.options?.date,form:"anonymizeForm",options:{}}]]),t[17]||(t[17]=s("label",{class:"form-check-label",for:"date"},"Display dates",-1)),t[18]||(t[18]=s("small",{class:"form-text text-muted"},"Display the date of the Pull Request and the date of the comments.",-1))]),s("div",oC,[E(s("input",rC,null,512),[[r,{state:e.viewState,set:i=>{e.options.username=i},value:e.options?.username,form:"anonymizeForm",options:{}}]]),t[19]||(t[19]=s("label",{class:"form-check-label",for:"username"},"Display username",-1))]),s("div",iC,[E(s("input",aC,null,512),[[r,{state:e.viewState,set:i=>{e.options.comments=i},value:e.options?.comments,form:"anonymizeForm",options:{}}]]),t[20]||(t[20]=s("label",{class:"form-check-label",for:"comments"},"Display comments",-1))]),s("div",lC,[E(s("input",dC,null,512),[[r,{state:e.viewState,set:i=>{e.options.diff=i},value:e.options?.diff,form:"anonymizeForm",options:{}}]]),t[21]||(t[21]=s("label",{class:"form-check-label",for:"diff"},"Display diff",-1))]),s("div",uC,[E(s("input",cC,null,512),[[r,{state:e.viewState,set:i=>{e.options.origin=i},value:e.options?.origin,form:"anonymizeForm",options:{}}]]),t[22]||(t[22]=s("label",{class:"form-check-label",for:"origin"},"Display the project name",-1))]),s("div",pC,[E(s("input",fC,null,512),[[r,{state:e.viewState,set:i=>{e.options.title=i},value:e.options?.title,form:"anonymizeForm",options:{}}]]),t[23]||(t[23]=s("label",{class:"form-check-label",for:"title"},"Display the PR title",-1))]),s("div",mC,[E(s("input",hC,null,512),[[r,{state:e.viewState,set:i=>{e.options.body=i},value:e.options?.body,form:"anonymizeForm",options:{}}]]),t[24]||(t[24]=s("label",{class:"form-check-label",for:"body"},"Display the PR body and comment bodies",-1))])])])])])])],512),[[H,e.pullRequestUrl]]),e.error?(l(),d("div",{key:0,class:"alert alert-danger",role:"alert",textContent:c(e.error)},null,8,vC)):m("v-if",!0),E(s("div",yC,[e.isUpdate?m("v-if",!0):(l(),d("button",{key:0,id:"submit",type:"submit",class:"btn btn-ink btn-block",onClick:t[0]||(t[0]=be(i=>e.submitForm(i,()=>{e.anonymizePullRequest(i)}),["prevent"]))},[...t[28]||(t[28]=[s("i",{class:"fas fa-user-secret mr-1"},null,-1),y(" Anonymize ",-1)])])),e.isUpdate?(l(),d("button",{key:1,id:"submit",type:"submit",class:"btn btn-ink btn-block",onClick:t[1]||(t[1]=be(i=>e.submitForm(i,()=>{e.updatePullRequest(i)}),["prevent"]))},[...t[29]||(t[29]=[s("i",{class:"fas fa-save mr-1"},null,-1),y(" Update ",-1)])])):m("v-if",!0)],512),[[H,e.pullRequestUrl]])],2)),[[n,e.viewState]])],2)]),e.details?(l(),d("div",gC,[s("div",bC,[s("h2",wC,[e.options?.title?(l(),d("span",kC,c(e.anonymize(e.details?.pullRequest?.title)),1)):m("v-if",!0),s("span",{class:T(["badge",{"badge-success":e.details?.pullRequest?.merged,"badge-warning":e.details?.pullRequest?.state=="open","badge-danger":e.details?.pullRequest?.state=="closed"&&!e.details?.pullRequest?.merged}])},c(e.fmt?.title(e.details?.pullRequest?.merged?"merged":e.details?.pullRequest?.state)),3)]),e.options?.date?(l(),d("small",{key:0,textContent:c(e.fmt?.date(e.details?.pullRequest?.updatedDate))},null,8,_C)):m("v-if",!0)]),e.options?.origin?(l(),d("small",EC,"Pull Request on "+c(e.details?.pullRequest?.baseRepositoryFullName),1)):m("v-if",!0),e.options?.body?(l(),d("div",CC,[Se(o,{content:e.anonymize(e.details?.pullRequest?.body),options:e.options,terms:e.terms},null,8,["content","options","terms"])])):m("v-if",!0),s("ul",NC,[e.options?.diff?(l(),d("li",SC,[...t[31]||(t[31]=[s("button",{class:"nav-link active",id:"pills-diff-tab","data-toggle":"pill","data-target":"#pills-diff",type:"button",role:"tab","aria-controls":"pills-diff","aria-selected":"true"}," Diff ",-1)])])):m("v-if",!0),e.options?.comments?(l(),d("li",DC,[s("button",{class:T(["nav-link",{active:!e.options?.diff}]),id:"pills-comments-tab","data-toggle":"pill","data-target":"#pills-comments",type:"button",role:"tab","aria-controls":"pills-comments","aria-selected":"false"},[s("span",{textContent:c(e.fmt.plural(e.details?.pullRequest?.comments?.length,{0:"No comment",one:"One Comment",other:"{} Comments"}))},null,8,RC)],2)])):m("v-if",!0)]),s("div",TC,[s("div",OC,[e.options?.diff?(l(),d("div",AC,[s("pre",IC,[s("code",{innerHTML:e.sanitize(e.fmt?.diff(e.anonymize(e.details?.pullRequest?.diff)))},null,8,VC)])])):m("v-if",!0)]),s("div",{class:T(["tab-pane",{"show active":!e.options?.diff}]),id:"pills-comments",role:"tabpanel","aria-labelledby":"pills-comments-tab"},[e.options?.comments?(l(),d("ul",PC,[(l(!0),d(x,null,re(e.details?.pullRequest?.comments,(i,a)=>(l(),d("li",qC,[s("div",MC,[e.options?.username?(l(),d("h5",$C," @"+c(e.anonymize(i?.author)),1)):m("v-if",!0),e.options?.date?(l(),d("small",{key:1,textContent:c(e.fmt?.date(i?.updatedDate))},null,8,FC)):m("v-if",!0)]),s("p",LC,[e.options?.body?(l(),ks(o,{key:0,class:"pr-comment-body",content:e.anonymize(i?.body),options:e.options,terms:e.terms},null,8,["content","options","terms"])):m("v-if",!0)])]))),256))])):m("v-if",!0)],2)])])):m("v-if",!0)])])}var UC={class:"container paper-page"},zC={class:"paper-settings-main claim-form"},HC={class:"form-group"},BC={class:"invalid-feedback"},GC={class:"form-group"};function el(e,t){let o=ge("field"),r=ge("form");return l(),d("div",UC,[t[6]||(t[6]=Ee('
My work \xA0/\xA0 Claim

Claim an anonymization

Take ownership of an existing anonymized repository so it appears on your dashboard.

',3)),s("div",zC,[t[5]||(t[5]=s("p",{class:"paper-section-copy"},"Use this when an anonymization was created by a co-author or from another account. You must have access to the GitHub repository it was made from.",-1)),E((l(),d("form",{class:"form needs-validation",name:"claimForm",novalidate:"",onSubmit:t[0]||(t[0]=be(n=>e.submitForm(n,()=>{e.claim()}),["prevent"]))},[s("div",HC,[t[1]||(t[1]=s("label",{class:"paper-field-label",for:"repoUrl"},"GitHub repository URL",-1)),E(s("input",{type:"text",class:T(["form-control",{"is-invalid":e.claimForm?.repoUrl?.invalid&&(e.claimForm?.repoUrl?.touched||e.claimForm?.submitted)}]),name:"repoUrl",id:"repoUrl",required:""},null,2),[[o,{state:e.viewState,set:n=>{e.repoUrl=n},value:e.repoUrl,form:"claimForm",options:{}}]]),E(s("div",BC," No anonymization matches this repository and ID. Check both values and that you can access the repository on GitHub. ",512),[[H,e.claimForm?.repoUrl?.errors?.not_found]])]),s("div",GC,[t[2]||(t[2]=s("label",{class:"paper-field-label",for:"repoId"},"Anonymized repository ID",-1)),E(s("input",{type:"text",class:T(["form-control",{"is-invalid":e.claimForm?.repoId?.invalid&&(e.claimForm?.repoId?.touched||e.claimForm?.submitted)}]),name:"repoId",id:"repoId",required:""},null,2),[[o,{state:e.viewState,set:n=>{e.repoId=n},value:e.repoId,form:"claimForm",options:{}}]]),t[3]||(t[3]=s("small",{id:"idHelp",class:"form-text text-muted"},[y("The ID is the last part of the anonymized URL: "),s("code",null,"anonymous.4open.science/r/"),y(".")],-1))]),t[4]||(t[4]=s("button",{id:"submit",type:"submit",class:"btn btn-ink"}," Claim anonymization ",-1))],32)),[[r,e.viewState]])])])}var jC={class:"container page paper-page"},WC={class:"paper-crumbs"},KC={class:"here"},YC={class:"d-flex align-items-end flex-wrap",style:{gap:"12px","justify-content":"space-between"}},xC=["textContent"],JC={key:0,class:"paper-page-lede"},QC=["textContent","href"],XC={class:"d-flex align-items-center flex-wrap",style:{gap:"10px"}},ZC=["textContent"],eN=["href"],tN={class:"paper-meta-rule"},sN=["textContent"],nN=["textContent"],oN={key:0},rN={class:"search-wrap"},iN={type:"search",id:"search",class:"form-control","aria-label":"Search repositories",placeholder:"Search by ID or source repository\u2026",autocomplete:"off"},aN={class:"dashboard-filter-controls"},lN={class:"dropdown"},dN={class:"btn dropdown-toggle",type:"button",id:"dropdownSort","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"},uN={class:"filter-btn-value"},cN={class:"dropdown-menu","aria-labelledby":"dropdownSort"},pN={class:"form-check dropdown-item"},fN={class:"form-check-input",type:"radio",name:"sort",id:"anonymizeDate",value:"-anonymizeDate"},mN={class:"form-check dropdown-item"},hN={class:"form-check-input",type:"radio",name:"sort",id:"sortID",value:"repoId"},vN={class:"form-check dropdown-item"},yN={class:"form-check-input",type:"radio",name:"sort",id:"sortStatus",value:"-status"},gN={class:"form-check dropdown-item"},bN={class:"form-check-input",type:"radio",name:"sort",id:"sortViews",value:"-pageView"},wN={class:"dropdown"},kN={class:"btn dropdown-toggle",type:"button",id:"dropdownStatus","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"},_N={key:0,class:"filter-btn-value"},EN={key:1,class:"filter-btn-value"},CN={class:"dropdown-menu","aria-labelledby":"dropdownStatus"},NN={class:"form-check dropdown-item"},SN=["id"],DN=["for"],RN={class:"dashboard-meta"},TN={class:"dashboard-count"},ON={key:0},AN={key:0},IN={key:1},VN={key:1},PN={key:0,class:"filter-chip"},qN=["onClick","aria-label"],MN={class:"paper-table paper-table-repos w-100",role:"table","aria-label":"Repositories"},$N={class:"cell-anon",role:"cell"},FN={class:"anon-text"},LN=["textContent","href"],UN={class:"anon-sub"},zN={class:"anon-source"},HN=["textContent","href"],BN={key:0},GN=["textContent","href"],jN={key:1},WN=["href"],KN={class:"cell-status",role:"cell"},YN={class:"status-line"},xN=["textContent"],JN={key:0,class:"status-sub"},QN=["textContent"],XN={class:"cell-expires",role:"cell"},ZN={key:0,class:"expires-never"},eS=["textContent"],tS={key:2,class:"expires-past"},sS={key:0},nS={key:3,class:"empty-dash","aria-label":"Not applicable"},oS={class:"cell-actions",role:"cell"},rS={class:"dropdown"},iS=["aria-label"],aS={class:"dropdown-menu dropdown-menu-right"},lS=["href"],dS=["href"],uS={key:0,class:"paper-table-empty"},cS={key:0},pS={key:1},fS={key:2,class:"paper-table-empty-actions"};function tl(e,t){let o=ge("field"),r=ge("form");return l(),d("div",jC,[s("div",null,[s("div",WC,[t[2]||(t[2]=s("a",{href:"/dashboard"},"My work",-1)),t[3]||(t[3]=y(" \xA0/\xA0 ",-1)),t[4]||(t[4]=s("a",{href:"/conferences"},"Conferences",-1)),t[5]||(t[5]=y(" \xA0/\xA0 ",-1)),s("span",KC,c(e.conference?.conferenceID),1)]),s("div",YC,[s("div",null,[s("h1",{class:"paper-page-title",textContent:c(e.conference?.name)},null,8,xC),e.conference?.url?(l(),d("p",JC,[s("a",{target:"_blank",rel:"noopener",textContent:c(e.conference?.url),href:e.safeUrl(e.conference?.url)},null,8,QC)])):m("v-if",!0)]),s("div",XC,[s("span",{class:T(["status-pill",{"status-pill-ready":e.conference?.status=="ready","status-pill-removed":e.conference?.status=="removed"||e.conference?.status=="expired"}])},[s("span",{class:T(["status-dot","status-"+e.conference?.status]),"aria-hidden":"true"},null,2),s("span",{textContent:c(e.fmt?.statusLabel(e.conference?.status))},null,8,ZC)],2),s("a",{class:"btn btn-outline-ink",href:e.safeUrl("/conference/"+e.conference?.conferenceID+"/edit")},[...t[6]||(t[6]=[s("i",{class:"far fa-edit mr-1","aria-hidden":"true"},null,-1),y(" Edit conference",-1)])],8,eN)])]),s("div",tN,[s("span",null,[t[7]||(t[7]=y("ID ",-1)),s("b",{class:"commit-hash",textContent:c(e.conference?.conferenceID)},null,8,sN)]),s("span",null,[t[8]||(t[8]=y("Review window ",-1)),s("b",null,c(e.fmt?.date(e.conference?.startDate,"mediumDate"))+" \u2013 "+c(e.fmt?.date(e.conference?.endDate,"mediumDate")),1)]),s("span",null,[t[9]||(t[9]=y("Repositories ",-1)),s("b",null,c(e.fmt?.number(e.conference?.repositories?.length)),1)]),s("span",null,[t[10]||(t[10]=y("Plan ",-1)),s("b",{textContent:c(e.conference?.plan?.name||e.conference?.plan?.planID||"Free")},null,8,nN)]),e.conference?.price?(l(),d("span",oN,[t[11]||(t[11]=y("Cost so far ",-1)),s("b",null,c(e.fmt?.number(e.conference?.price,2))+" \u20AC",1)])):m("v-if",!0)]),t[29]||(t[29]=s("div",{class:"paper-section-eyebrow"},"Repositories",-1)),E((l(),d("form",{class:"w-100 dashboard-filter-row","aria-label":"Filter repositories","accept-charset":"UTF-8",onSubmit:t[0]||(t[0]=be(n=>e.submitForm(n,()=>{n.preventDefault()}),["prevent"]))},[s("div",rN,[E(s("input",iN,null,512),[[o,{state:e.viewState,set:n=>{e.search=n},value:e.search,form:null,options:{}}]])]),s("div",aN,[s("div",lN,[s("button",dN,[t[12]||(t[12]=s("span",{class:"filter-btn-label"},"Sort",-1)),s("span",uN,c({"-anonymizeDate":"Anonymize date",repoId:"ID","-status":"Status","-pageView":"Views"}[e.orderBy]||"Custom"),1)]),s("div",cN,[t[17]||(t[17]=s("h6",{class:"dropdown-header"},"Order by",-1)),s("div",pN,[E(s("input",fN,null,512),[[o,{state:e.viewState,set:n=>{e.orderBy=n},value:e.orderBy,form:null,options:{}}]]),t[13]||(t[13]=s("label",{class:"form-check-label",for:"anonymizeDate"},"Anonymize date",-1))]),s("div",mN,[E(s("input",hN,null,512),[[o,{state:e.viewState,set:n=>{e.orderBy=n},value:e.orderBy,form:null,options:{}}]]),t[14]||(t[14]=s("label",{class:"form-check-label",for:"sortID"},"ID",-1))]),s("div",vN,[E(s("input",yN,null,512),[[o,{state:e.viewState,set:n=>{e.orderBy=n},value:e.orderBy,form:null,options:{}}]]),t[15]||(t[15]=s("label",{class:"form-check-label",for:"sortStatus"},"Status",-1))]),s("div",gN,[E(s("input",bN,null,512),[[o,{state:e.viewState,set:n=>{e.orderBy=n},value:e.orderBy,form:null,options:{}}]]),t[16]||(t[16]=s("label",{class:"form-check-label",for:"sortViews"},"Views",-1))])])]),s("div",wN,[s("button",kN,[t[18]||(t[18]=s("span",{class:"filter-btn-label"},"Status",-1)),e.filters?.status?.ready&&e.filters?.status?.expired&&e.filters?.status?.removed?(l(),d("span",_N,"All")):m("v-if",!0),e.filters?.status?.ready&&e.filters?.status?.expired&&e.filters?.status?.removed?m("v-if",!0):(l(),d("span",EN,c((e.filters?.status?.ready?0:1)+(e.filters?.status?.expired?0:1)+(e.filters?.status?.removed?0:1))+" hidden ",1))]),s("div",CN,[t[19]||(t[19]=s("h6",{class:"dropdown-header"},"Show statuses",-1)),(l(!0),d(x,null,re(e.statusLabels,(n,i,a)=>(l(),d("div",NN,[E(s("input",{class:"form-check-input",type:"checkbox",id:"status-"+i},null,8,SN),[[o,{state:e.viewState,set:u=>{e.filters.status[i]=u},value:e.filters?.status[i],form:null,options:{}}]]),s("label",{class:"form-check-label",for:"status-"+i},c(n),9,DN)]))),256))])])])],32)),[[r,e.viewState]]),s("div",RN,[s("span",TN,[e.filteredRepositories?.length===e.conference?.repositories?.length?(l(),d("span",ON,[y(c(e.fmt?.number(e.conference?.repositories?.length))+" repositor",1),e.conference?.repositories?.length===1?(l(),d("span",AN,"y")):m("v-if",!0),e.conference?.repositories?.length!==1?(l(),d("span",IN,"ies")):m("v-if",!0)])):m("v-if",!0),e.filteredRepositories?.length!==e.conference?.repositories?.length?(l(),d("span",VN,c(e.fmt?.number(e.filteredRepositories?.length))+" of "+c(e.fmt?.number(e.conference?.repositories?.length))+" shown",1)):m("v-if",!0)]),(l(!0),d(x,null,re(e.filters?.status,(n,i,a)=>(l(),d(x,null,[n===!1?(l(),d("span",PN,[y(" Hiding "+c(e.statusLabels[i])+" ",1),s("button",{type:"button",class:"filter-chip-close",onClick:u=>{e.filters.status[i]=!0},"aria-label":"Show "+e.statusLabels[i]+" again"},"\xD7",8,qN)])):m("v-if",!0)],64))),256))]),s("div",MN,[t[28]||(t[28]=s("div",{class:"paper-table-head",role:"row"},[s("div",{role:"columnheader"},"Repository"),s("div",{role:"columnheader"},"Status"),s("div",{role:"columnheader",class:"num"},"Views"),s("div",{role:"columnheader"},"Expires"),s("div",{role:"columnheader"},[s("span",{class:"sr-only"},"Actions")])],-1)),(l(!0),d(x,null,re(e.filteredRepositories,(n,i)=>(l(),d("div",{class:T(["paper-table-row",{"repo-inactive":n?.status=="expired"||n?.status=="removed","repo-error":n?.status=="error"}]),role:"row",key:n?.repoId},[s("div",$N,[t[22]||(t[22]=s("span",{class:"type-badge type-repo"},"Repo",-1)),s("div",FN,[s("a",{class:"repo-name",textContent:c(n?.repoId),href:e.safeUrl("/r/"+n?.repoId+"/")},null,8,LN),s("div",UN,[s("span",zN,[s("a",{target:"_blank",rel:"noopener",textContent:c(n?.source?.fullName),href:e.safeUrl("https://github.com/"+n?.source?.fullName+"/")},null,8,HN),n?.options?.update&&n?.source?.branch?(l(),d("span",BN,[t[20]||(t[20]=y(" \xB7 ",-1)),s("a",{target:"_blank",rel:"noopener",textContent:c(n?.source?.branch),href:e.safeUrl("https://github.com/"+n?.source?.fullName+"/tree/"+n?.source?.branch)},null,8,GN)])):m("v-if",!0),n?.source?.commit?(l(),d("span",jN,[t[21]||(t[21]=y(" \xB7 ",-1)),s("a",{class:"commit-hash",target:"_blank",rel:"noopener",href:e.safeUrl("https://github.com/"+n?.source?.fullName+"/tree/"+n?.source?.commit)},"@"+c(n?.source?.commit?.substring(0,8)),9,WN)])):m("v-if",!0)])])])]),s("div",KN,[s("div",YN,[s("span",{class:T(["status-dot","status-"+(n?.status=="error"?"error":n?.status=="ready"?"ready":n?.status=="expired"||n?.status=="removed"?n?.status:"progress")]),"aria-hidden":"true"},null,2),s("span",{class:"status-word",textContent:c(e.fmt?.statusLabel(n?.status))},null,8,xN)]),n?.anonymizeDate?(l(),d("div",JN,"anonymized "+c(e.fmt?.humanTime(n?.anonymizeDate)),1)):m("v-if",!0)]),s("div",{class:"cell-views num",role:"cell",textContent:c(e.fmt?.number(n?.pageView))},null,8,QN),s("div",XN,[n?.status=="ready"&&(n?.options?.expirationMode==="never"||!n?.options?.expirationDate)?(l(),d("span",ZN,"Never")):m("v-if",!0),n?.status=="ready"&&n?.options?.expirationMode!=="never"&&n?.options?.expirationDate?(l(),d("span",{key:1,textContent:c(e.fmt?.humanTime(n?.options?.expirationDate))},null,8,eS)):m("v-if",!0),n?.status=="expired"?(l(),d("span",tS,[t[23]||(t[23]=y("Expired",-1)),n?.options?.expirationDate?(l(),d("span",sS,c(e.fmt?.humanTime(n?.options?.expirationDate)),1)):m("v-if",!0)])):m("v-if",!0),n?.status!="ready"&&n?.status!="expired"?(l(),d("span",nS,"\u2014")):m("v-if",!0)]),s("div",oS,[s("div",rS,[s("button",{class:"btn btn-icon-dots",type:"button","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false","aria-label":"Actions for "+n?.repoId},[...t[24]||(t[24]=[s("i",{class:"fas fa-ellipsis-h","aria-hidden":"true"},null,-1)])],8,iS),s("div",aS,[s("a",{class:"dropdown-item",href:e.safeUrl("/r/"+n?.repoId+"/")},[...t[25]||(t[25]=[s("i",{class:"fa fa-eye","aria-hidden":"true"},null,-1),y(" View ",-1)])],8,lS),s("a",{class:"dropdown-item",href:e.safeUrl("/anonymize/"+n?.repoId)},[...t[26]||(t[26]=[s("i",{class:"far fa-edit","aria-hidden":"true"},null,-1),y(" Edit ",-1)])],8,dS)])])])],2))),128)),e.filteredRepositories?.length==0?(l(),d("div",uS,[t[27]||(t[27]=s("i",{class:"fas fa-inbox","aria-hidden":"true"},null,-1)),e.conference?.repositories?.length?m("v-if",!0):(l(),d("span",cS,"No repository has been submitted to this conference yet.")),e.conference?.repositories?.length?(l(),d("span",pS,"Nothing matches the current filters.")):m("v-if",!0),e.conference?.repositories?.length?(l(),d("div",fS,[s("button",{type:"button",class:"btn btn-outline-ink",onClick:t[1]||(t[1]=n=>{e.search="",e.filters.status.ready=!0,e.filters.status.expired=!0,e.filters.status.removed=!0})},"Clear filters")])):m("v-if",!0)])):m("v-if",!0)])])])}var mS={class:"container page paper-page"},hS={class:"row"},vS={class:"w-100"},yS={class:"search-wrap"},gS={type:"search",id:"search",class:"form-control","aria-label":"Search conferences",placeholder:"Search by name or ID\u2026",autocomplete:"off"},bS={class:"dashboard-filter-controls"},wS={class:"dropdown"},kS={class:"btn dropdown-toggle",type:"button",id:"dropdownSort","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"},_S={class:"filter-btn-value"},ES={class:"dropdown-menu","aria-labelledby":"dropdownSort"},CS={class:"form-check dropdown-item"},NS={class:"form-check-input",type:"radio",name:"sort",id:"sortName",value:"name"},SS={class:"form-check dropdown-item"},DS={class:"form-check-input",type:"radio",name:"sort",id:"sortID",value:"conferenceID"},RS={class:"form-check dropdown-item"},TS={class:"form-check-input",type:"radio",name:"sort",id:"sortStatus",value:"-status"},OS={class:"dropdown"},AS={class:"btn dropdown-toggle",type:"button",id:"dropdownStatus","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"},IS={key:0,class:"filter-btn-value"},VS={key:1,class:"filter-btn-value"},PS={class:"dropdown-menu","aria-labelledby":"dropdownStatus"},qS={class:"form-check dropdown-item"},MS=["id"],$S=["for"],FS={class:"dashboard-meta"},LS={class:"dashboard-count"},US={key:0},zS={key:0},HS={key:1},BS={key:0,class:"filter-chip"},GS=["onClick","aria-label"],jS={class:"paper-table paper-table-conferences w-100",role:"table","aria-label":"Conferences"},WS={class:"cell-anon",role:"cell"},KS={class:"anon-text"},YS=["textContent","href"],xS={class:"anon-sub"},JS={class:"anon-source"},QS=["textContent"],XS={key:0},ZS=["textContent","href"],e2={class:"cell-status",role:"cell"},t2={class:"status-line"},s2=["textContent"],n2=["textContent"],o2={class:"cell-expires",role:"cell"},r2={key:0},i2={key:1,class:"empty-dash","aria-label":"No review window"},a2={class:"cell-actions",role:"cell"},l2={class:"dropdown"},d2=["aria-label"],u2={class:"dropdown-menu dropdown-menu-right"},c2=["href"],p2=["href"],f2={key:0},m2=["onClick"],h2={key:0,class:"paper-table-empty"},v2={key:0},y2={key:1},g2={class:"paper-table-empty-actions"},b2={key:1,href:"/conference/new",class:"btn btn-ink"};function sl(e,t){let o=ge("field"),r=ge("form");return l(),d("div",mS,[s("div",hS,[s("div",vS,[t[9]||(t[9]=Ee('
My work \xA0/\xA0 Conferences

Your conferences

Group anonymizations by venue, give chairs a shared dashboard, and set one expiry for every submission.

New conference
',2)),E((l(),d("form",{class:"w-100 dashboard-filter-row","aria-label":"Filter conferences","accept-charset":"UTF-8",onSubmit:t[0]||(t[0]=be(n=>e.submitForm(n,()=>{n.preventDefault()}),["prevent"]))},[s("div",yS,[E(s("input",gS,null,512),[[o,{state:e.viewState,set:n=>{e.search=n},value:e.search,form:null,options:{}}]])]),s("div",bS,[s("div",wS,[s("button",kS,[t[2]||(t[2]=s("span",{class:"filter-btn-label"},"Sort",-1)),s("span",_S,c({name:"Name",conferenceID:"ID","-status":"Status"}[e.orderBy]||"Custom"),1)]),s("div",ES,[t[6]||(t[6]=s("h6",{class:"dropdown-header"},"Order by",-1)),s("div",CS,[E(s("input",NS,null,512),[[o,{state:e.viewState,set:n=>{e.orderBy=n},value:e.orderBy,form:null,options:{}}]]),t[3]||(t[3]=s("label",{class:"form-check-label",for:"sortName"},"Name",-1))]),s("div",SS,[E(s("input",DS,null,512),[[o,{state:e.viewState,set:n=>{e.orderBy=n},value:e.orderBy,form:null,options:{}}]]),t[4]||(t[4]=s("label",{class:"form-check-label",for:"sortID"},"ID",-1))]),s("div",RS,[E(s("input",TS,null,512),[[o,{state:e.viewState,set:n=>{e.orderBy=n},value:e.orderBy,form:null,options:{}}]]),t[5]||(t[5]=s("label",{class:"form-check-label",for:"sortStatus"},"Status",-1))])])]),s("div",OS,[s("button",AS,[t[7]||(t[7]=s("span",{class:"filter-btn-label"},"Status",-1)),e.filters?.status?.ready&&e.filters?.status?.expired&&e.filters?.status?.removed?(l(),d("span",IS,"All")):m("v-if",!0),e.filters?.status?.ready&&e.filters?.status?.expired&&e.filters?.status?.removed?m("v-if",!0):(l(),d("span",VS,c((e.filters?.status?.ready?0:1)+(e.filters?.status?.expired?0:1)+(e.filters?.status?.removed?0:1))+" hidden ",1))]),s("div",PS,[t[8]||(t[8]=s("h6",{class:"dropdown-header"},"Show statuses",-1)),(l(!0),d(x,null,re(e.statusLabels,(n,i,a)=>(l(),d("div",qS,[E(s("input",{class:"form-check-input",type:"checkbox",id:"status-"+i},null,8,MS),[[o,{state:e.viewState,set:u=>{e.filters.status[i]=u},value:e.filters?.status[i],form:null,options:{}}]]),s("label",{class:"form-check-label",for:"status-"+i},c(n),9,$S)]))),256))])])])],32)),[[r,e.viewState]]),s("div",FS,[s("span",LS,[e.filteredConferences?.length===e.conferences?.length?(l(),d("span",US,[y(c(e.fmt?.number(e.conferences?.length))+" conference",1),e.conferences?.length!==1?(l(),d("span",zS,"s")):m("v-if",!0)])):m("v-if",!0),e.filteredConferences?.length!==e.conferences?.length?(l(),d("span",HS,c(e.fmt?.number(e.filteredConferences?.length))+" of "+c(e.fmt?.number(e.conferences?.length))+" shown",1)):m("v-if",!0)]),(l(!0),d(x,null,re(e.filters?.status,(n,i,a)=>(l(),d(x,null,[n===!1?(l(),d("span",BS,[y(" Hiding "+c(e.statusLabels[i])+" ",1),s("button",{type:"button",class:"filter-chip-close",onClick:u=>{e.filters.status[i]=!0},"aria-label":"Show "+e.statusLabels[i]+" again"},"\xD7",8,GS)])):m("v-if",!0)],64))),256))])]),s("div",jS,[t[20]||(t[20]=s("div",{class:"paper-table-head",role:"row"},[s("div",{role:"columnheader"},"Conference"),s("div",{role:"columnheader"},"Status"),s("div",{role:"columnheader",class:"num"},"Repos"),s("div",{role:"columnheader"},"Review window"),s("div",{role:"columnheader"},[s("span",{class:"sr-only"},"Actions")])],-1)),(l(!0),d(x,null,re(e.filteredConferences,(n,i)=>(l(),d("div",{class:T(["paper-table-row row-clickable",{"repo-inactive":n?.status=="expired"||n?.status=="removed"}]),role:"row",key:n?.conferenceID},[s("div",WS,[t[12]||(t[12]=s("span",{class:"type-badge type-repo"},"Conf",-1)),s("div",KS,[s("a",{class:"repo-name",textContent:c(n?.name),href:e.safeUrl("/conference/"+n?.conferenceID)},null,8,YS),s("div",xS,[s("span",JS,[t[11]||(t[11]=y("ID ",-1)),s("span",{class:"commit-hash",textContent:c(n?.conferenceID)},null,8,QS),n?.url?(l(),d("span",XS,[t[10]||(t[10]=y(" \xB7 ",-1)),s("a",{target:"_blank",rel:"noopener",textContent:c(e.fmt?.limitTo(n?.url,60)),href:e.safeUrl(n?.url)},null,8,ZS)])):m("v-if",!0)])])])]),s("div",e2,[s("div",t2,[s("span",{class:T(["status-dot","status-"+n?.status]),"aria-hidden":"true"},null,2),s("span",{class:"status-word",textContent:c(e.fmt?.statusLabel(n?.status))},null,8,s2)])]),s("div",{class:"cell-views num",role:"cell",textContent:c(e.fmt?.number(n?.nbRepositories||0))},null,8,n2),s("div",o2,[n?.startDate?(l(),d("span",r2,c(e.fmt?.date(n?.startDate,"mediumDate"))+" \u2013 "+c(e.fmt?.date(n?.endDate,"mediumDate")),1)):m("v-if",!0),n?.startDate?m("v-if",!0):(l(),d("span",i2,"\u2014"))]),s("div",a2,[s("div",l2,[s("button",{class:"btn btn-icon-dots",type:"button","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false","aria-label":"Actions for "+n?.name},[...t[13]||(t[13]=[s("i",{class:"fas fa-ellipsis-h","aria-hidden":"true"},null,-1)])],8,d2),s("div",u2,[s("a",{class:"dropdown-item",href:e.safeUrl("/conference/"+n?.conferenceID+"/")},[...t[14]||(t[14]=[s("i",{class:"fa fa-eye","aria-hidden":"true"},null,-1),y(" View ",-1)])],8,c2),s("a",{class:"dropdown-item",href:e.safeUrl("/conference/"+n?.conferenceID+"/edit")},[...t[15]||(t[15]=[s("i",{class:"far fa-edit","aria-hidden":"true"},null,-1),y(" Edit ",-1)])],8,p2),n?.status!="removed"?(l(),d("div",f2,[t[17]||(t[17]=s("div",{class:"dropdown-divider"},null,-1)),s("button",{type:"button",class:"dropdown-item dropdown-item-danger",onClick:a=>e.removeConference(n)},[...t[16]||(t[16]=[s("i",{class:"fas fa-trash-alt","aria-hidden":"true"},null,-1),y(" Remove ",-1)])],8,m2)])):m("v-if",!0)])])])],2))),128)),e.filteredConferences?.length==0?(l(),d("div",h2,[t[19]||(t[19]=s("i",{class:"fas fa-inbox","aria-hidden":"true"},null,-1)),e.conferences?.length==0?(l(),d("span",v2,"You have not created a conference yet.")):m("v-if",!0),e.conferences?.length>0?(l(),d("span",y2,"Nothing matches the current filters.")):m("v-if",!0),s("div",g2,[e.conferences?.length>0?(l(),d("button",{key:0,type:"button",class:"btn btn-outline-ink",onClick:t[1]||(t[1]=n=>{e.search="",e.filters.status.ready=!0,e.filters.status.expired=!0,e.filters.status.removed=!0})},"Clear filters")):m("v-if",!0),e.conferences?.length==0?(l(),d("a",b2,[...t[18]||(t[18]=[s("i",{class:"fa fa-plus-circle mr-1","aria-hidden":"true"},null,-1),y(" New conference",-1)])])):m("v-if",!0)])])):m("v-if",!0)])])])}var w2={class:"container page dashboard-page paper-page"},k2={class:"row"},_2={class:"w-100"},E2={key:0,class:"quota-row"},C2={class:"quota-item"},N2={class:"quota-header"},S2={class:"quota-label"},D2={key:0,class:"quota-value"},R2={key:0},T2={key:1,class:"quota-unlimited-tag"},O2={key:1,class:"quota-value"},A2={key:0},I2={key:1,class:"quota-unlimited-tag"},V2=["aria-label","aria-valuenow","aria-valuemax","aria-valuetext"],P2={class:"search-wrap"},q2={type:"search",id:"search",class:"form-control","aria-label":"Search anonymizations",placeholder:"Search by name, source, or conference\u2026",autocomplete:"off"},M2={class:"dashboard-filter-controls"},$2={class:"btn-group",role:"group","aria-label":"Type"},F2=["aria-pressed"],L2=["aria-pressed"],U2=["aria-pressed"],z2=["aria-pressed"],H2={class:"dropdown"},B2={class:"btn dropdown-toggle",type:"button",id:"dropdownSort","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"},G2={class:"filter-btn-value"},j2={class:"sr-only"},W2={class:"dropdown-menu","aria-labelledby":"dropdownSort"},K2={class:"form-check dropdown-item"},Y2=["onClick","checked","id"],x2=["for"],J2={class:"dropdown"},Q2={class:"btn dropdown-toggle",type:"button",id:"dropdownStatus","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"},X2={key:0,class:"filter-btn-value"},Z2={key:1,class:"filter-btn-value"},eD={class:"dropdown-menu","aria-labelledby":"dropdownStatus"},tD={class:"form-check dropdown-item"},sD=["id"],nD=["for"],oD={key:1,class:"dashboard-meta"},rD={class:"dashboard-count"},iD={key:0},aD={key:0},lD={key:1},dD={key:0,class:"filter-chip"},uD=["onClick","aria-label"],cD=["aria-busy"],pD={class:"paper-table-head",role:"row"},fD=["aria-sort"],mD=["aria-sort"],hD=["aria-sort"],vD=["aria-sort"],yD={key:0,class:"paper-table-row paper-table-skeleton",role:"row","aria-hidden":"true"},gD=["onClick"],bD={class:"cell-anon",role:"cell"},wD={class:"anon-text"},kD={class:"anon-title"},_D=["textContent","href"],ED=["textContent"],CD={key:2,class:"type-badge type-coauthor",title:"You are a co-author on this anonymization"},ND={key:0,class:"anon-sub"},SD={key:0,class:"anon-source"},DD=["textContent","href"],RD={key:0},TD=["textContent","href"],OD={key:1},AD=["href"],ID={key:1,class:"anon-source"},VD=["textContent","href"],PD={key:2,class:"anon-source"},qD=["textContent","href"],MD=["title"],$D=["textContent"],FD={class:"cell-status",role:"cell"},LD={class:"status-line"},UD=["textContent"],zD=["textContent","title"],HD=["title"],BD={key:2,class:"status-sub"},GD=["textContent"],jD={class:"cell-expires",role:"cell"},WD={key:0,class:"expires-never"},KD=["textContent"],YD={key:2,class:"expires-past"},xD={key:3,class:"expires-past"},JD={key:4,class:"empty-dash","aria-label":"Not applicable"},QD={class:"cell-actions",role:"cell"},XD={key:0,class:"dropdown"},ZD=["aria-label"],eR={class:"dropdown-menu dropdown-menu-right"},tR=["href"],sR=["href"],nR=["href"],oR=["onClick"],rR=["onClick"],iR=["onClick"],aR={key:4},lR=["onClick"],dR={key:0,class:"paper-table-empty"},uR={key:0},cR={key:1},pR={class:"paper-table-empty-actions"},fR={key:1,href:"/anonymize",class:"btn btn-ink"};function nl(e,t){let o=ge("field"),r=ge("form");return l(),d("div",w2,[s("div",k2,[s("div",_2,[t[18]||(t[18]=Ee('
My work \xA0/\xA0 Dashboard

Your anonymizations

Every repository, pull request, and gist you\u2019ve mirrored, with live status and stats.

New anonymization
',2)),m(" Quota "),e.quota?(l(),d("div",E2,[(l(),d(x,null,re([{key:"repository",label:"Repositories",kind:"count"},{key:"storage",label:"Storage",kind:"bytes"},{key:"file",label:"Files",kind:"count"}],(n,i)=>s("div",C2,[s("div",N2,[s("span",S2,c(n?.label),1),n?.kind==="count"?(l(),d("span",D2,[y(c(e.fmt?.number(e.quota[n?.key].used)),1),e.quota[n?.key].unlimited?m("v-if",!0):(l(),d("span",R2," / "+c(e.fmt?.number(e.quota[n?.key].total)),1)),e.quota[n?.key].unlimited?(l(),d("span",T2,"Unlimited")):m("v-if",!0)])):m("v-if",!0),n?.kind==="bytes"?(l(),d("span",O2,[y(c(e.fmt?.humanFileSize(e.quota[n?.key].used)),1),e.quota[n?.key].unlimited?m("v-if",!0):(l(),d("span",A2," / "+c(e.fmt?.humanFileSize(e.quota[n?.key].total)),1)),e.quota[n?.key].unlimited?(l(),d("span",I2,"Unlimited")):m("v-if",!0)])):m("v-if",!0)]),s("div",{class:T(["quota-track","quota-"+e.quota[n?.key].level]),role:"progressbar","aria-valuemin":"0","aria-label":n?.label+" quota","aria-valuenow":e.quota[n?.key].used,"aria-valuemax":e.quota[n?.key].unlimited?e.quota[n?.key].used:e.quota[n?.key].total,"aria-valuetext":e.quota[n?.key].unlimited?"unlimited":e.fmt.number(e.quota[n?.key].percent,0)+"% used"},[e.quota[n?.key].unlimited?m("v-if",!0):(l(),d("div",{key:0,class:"quota-fill",style:Ae({width:e.quota[n?.key].percent+"%"})},null,4))],10,V2)])),64))])):m("v-if",!0),m(" Search + filters "),E((l(),d("form",{class:"w-100 dashboard-filter-row","aria-label":"Filter anonymizations","accept-charset":"UTF-8",onSubmit:t[5]||(t[5]=be(n=>e.submitForm(n,()=>{n.preventDefault()}),["prevent"]))},[s("div",P2,[E(s("input",q2,null,512),[[o,{state:e.viewState,set:n=>{e.search=n},value:e.search,form:null,options:{}}]])]),s("div",M2,[s("div",$2,[s("button",{type:"button",class:T(["btn",{"btn-primary":e.typeFilter==="all"}]),onClick:t[0]||(t[0]=n=>e.typeFilter="all"),"aria-pressed":e.typeFilter==="all"},"All",10,F2),s("button",{type:"button",class:T(["btn",{"btn-primary":e.typeFilter==="repo"}]),onClick:t[1]||(t[1]=n=>e.typeFilter="repo"),"aria-pressed":e.typeFilter==="repo"},"Repos",10,L2),s("button",{type:"button",class:T(["btn",{"btn-primary":e.typeFilter==="pr"}]),onClick:t[2]||(t[2]=n=>e.typeFilter="pr"),"aria-pressed":e.typeFilter==="pr"},"PRs",10,U2),s("button",{type:"button",class:T(["btn",{"btn-primary":e.typeFilter==="gist"}]),onClick:t[3]||(t[3]=n=>e.typeFilter="gist"),"aria-pressed":e.typeFilter==="gist"},"Gists",10,z2)]),s("div",H2,[s("button",B2,[t[12]||(t[12]=s("span",{class:"filter-btn-label"},"Sort",-1)),s("span",G2,c(e.sortLabel()),1),s("i",{class:T(["fas",e.sortDesc()?"fa-arrow-down":"fa-arrow-up"]),"aria-hidden":"true"},null,2),s("span",j2,c(e.sortDesc()?"descending":"ascending"),1)]),s("div",W2,[t[14]||(t[14]=s("h6",{class:"dropdown-header"},"Order by",-1)),(l(!0),d(x,null,re(e.sortFields,(n,i,a)=>(l(),d("div",K2,[s("input",{class:"form-check-input",type:"radio",name:"sort",onClick:u=>e.setSort(i,n.defaultDesc),checked:e.isSortedBy(i),id:"sort-"+a},null,8,Y2),s("label",{class:"form-check-label",for:"sort-"+a},c(n?.label),9,x2)]))),256)),t[15]||(t[15]=s("div",{class:"dropdown-divider"},null,-1)),s("button",{type:"button",class:"dropdown-item",onClick:t[4]||(t[4]=n=>e.toggleSortDirection())},[t[13]||(t[13]=s("i",{class:"fas fa-exchange-alt fa-rotate-90","aria-hidden":"true"},null,-1)),y(" "+c(e.sortDesc()?"Switch to ascending":"Switch to descending"),1)])])]),s("div",J2,[s("button",Q2,[t[16]||(t[16]=s("span",{class:"filter-btn-label"},"Status",-1)),e.hasHiddenStatus()?m("v-if",!0):(l(),d("span",X2,"All")),e.hasHiddenStatus()?(l(),d("span",Z2,c(e.hiddenStatusCount())+" hidden",1)):m("v-if",!0)]),s("div",eD,[t[17]||(t[17]=s("h6",{class:"dropdown-header"},"Show statuses",-1)),(l(!0),d(x,null,re(e.statusKeyLabels,(n,i,a)=>(l(),d("div",tD,[E(s("input",{class:"form-check-input",type:"checkbox",id:"status-"+i},null,8,sD),[[o,{state:e.viewState,set:u=>{e.filters.status[i]=u},value:e.filters?.status[i],form:null,options:{}}]]),s("label",{class:"form-check-label",for:"status-"+i},c(n),9,nD)]))),256))])])])],32)),[[r,e.viewState]]),m(" Result count + active filter chips "),e.loading?m("v-if",!0):(l(),d("div",oD,[s("span",rD,[e.filteredItems?.length===e.items?.length?(l(),d("span",iD,[y(c(e.fmt?.number(e.items?.length))+" anonymization",1),e.items?.length!==1?(l(),d("span",aD,"s")):m("v-if",!0)])):m("v-if",!0),e.filteredItems?.length!==e.items?.length?(l(),d("span",lD,c(e.fmt?.number(e.filteredItems?.length))+" of "+c(e.fmt?.number(e.items?.length))+" shown",1)):m("v-if",!0)]),(l(!0),d(x,null,re(e.filters?.status,(n,i,a)=>(l(),d(x,null,[n===!1?(l(),d("span",dD,[y(" Hiding "+c(e.statusKeyLabels[i])+" ",1),s("button",{type:"button",class:"filter-chip-close",onClick:u=>{e.filters.status[i]=!0},"aria-label":"Show "+e.statusKeyLabels[i]+" again"},"\xD7",8,uD)])):m("v-if",!0)],64))),256)),e.hasActiveFilters()?(l(),d("button",{key:0,type:"button",class:"btn-link-inline",onClick:t[6]||(t[6]=n=>e.clearFilters())},"Clear filters")):m("v-if",!0)]))]),m(" Table "),s("div",{class:"paper-table paper-table-dashboard w-100",role:"table","aria-label":"Anonymizations","aria-busy":e.loading},[s("div",pD,[s("div",{role:"columnheader","aria-sort":e.isSortedBy("_name")?e.sortDesc()?"descending":"ascending":"none"},[s("button",{type:"button",class:T(["sortable",{active:e.isSortedBy("_name")}]),onClick:t[7]||(t[7]=n=>e.setSort("_name"))},[t[19]||(t[19]=y(" Anonymization ",-1)),e.isSortedBy("_name")?(l(),d("i",{key:0,class:T(["fas",e.sortDesc()?"fa-arrow-down":"fa-arrow-up"]),"aria-hidden":"true"},null,2)):m("v-if",!0)],2)],8,fD),s("div",{role:"columnheader","aria-sort":e.isSortedBy("status")?e.sortDesc()?"descending":"ascending":"none"},[s("button",{type:"button",class:T(["sortable",{active:e.isSortedBy("status")}]),onClick:t[8]||(t[8]=n=>e.setSort("status"))},[t[20]||(t[20]=y(" Status ",-1)),e.isSortedBy("status")?(l(),d("i",{key:0,class:T(["fas",e.sortDesc()?"fa-arrow-down":"fa-arrow-up"]),"aria-hidden":"true"},null,2)):m("v-if",!0)],2)],8,mD),s("div",{role:"columnheader",class:"num","aria-sort":e.isSortedBy("pageView")?e.sortDesc()?"descending":"ascending":"none"},[s("button",{type:"button",class:T(["sortable",{active:e.isSortedBy("pageView")}]),onClick:t[9]||(t[9]=n=>e.setSort("pageView"))},[t[21]||(t[21]=y(" Views ",-1)),e.isSortedBy("pageView")?(l(),d("i",{key:0,class:T(["fas",e.sortDesc()?"fa-arrow-down":"fa-arrow-up"]),"aria-hidden":"true"},null,2)):m("v-if",!0)],2)],8,hD),s("div",{role:"columnheader","aria-sort":e.isSortedBy("options.expirationDate")?e.sortDesc()?"descending":"ascending":"none"},[s("button",{type:"button",class:T(["sortable",{active:e.isSortedBy("options.expirationDate")}]),onClick:t[10]||(t[10]=n=>e.setSort("options.expirationDate"))},[t[22]||(t[22]=y(" Expires ",-1)),e.isSortedBy("options.expirationDate")?(l(),d("i",{key:0,class:T(["fas",e.sortDesc()?"fa-arrow-down":"fa-arrow-up"]),"aria-hidden":"true"},null,2)):m("v-if",!0)],2)],8,vD),t[23]||(t[23]=s("div",{role:"columnheader"},[s("span",{class:"sr-only"},"Actions")],-1))]),m(" Loading skeleton: keeps the layout stable while the three lists load "),(l(),d(x,null,re([1,2,3,4],(n,i)=>(l(),d(x,null,[e.loading?(l(),d("div",yD,[...t[24]||(t[24]=[s("div",{class:"cell-anon",role:"cell"},[s("span",{class:"skeleton skeleton-badge"}),s("div",{class:"anon-text"},[s("span",{class:"skeleton skeleton-line",style:{width:"38%"}}),s("span",{class:"skeleton skeleton-line skeleton-line-sm",style:{width:"56%"}})])],-1),s("div",{class:"cell-status",role:"cell"},[s("span",{class:"skeleton skeleton-line",style:{width:"60%"}})],-1),s("div",{class:"cell-views num",role:"cell"},[s("span",{class:"skeleton skeleton-line",style:{width:"40%"}})],-1),s("div",{class:"cell-expires",role:"cell"},[s("span",{class:"skeleton skeleton-line",style:{width:"55%"}})],-1),s("div",{class:"cell-actions",role:"cell"},null,-1)])])):m("v-if",!0)],64))),64)),(l(!0),d(x,null,re(e.filteredItems,(n,i)=>(l(),d(x,{key:n?._type+":"+(n?._id||i)},[e.loading?m("v-if",!0):(l(),d("div",{key:0,class:T(["paper-table-row",{"repo-inactive":n?._statusKey=="expired"||n?._statusKey=="removed","repo-error":n?.status=="error","row-clickable":!!n?._viewUrl}]),role:"row",onClick:a=>e.openItem(n,a)},[s("div",bD,[s("span",{class:T(["type-badge",{"type-repo":n?._type==="repo","type-pr":n?._type==="pr","type-gist":n?._type==="gist"}])},c(n?._type==="repo"?"Repo":n?._type==="pr"?"PR":"Gist"),3),s("div",wD,[s("div",kD,[n?._viewUrl?(l(),d("a",{key:0,class:"repo-name",textContent:c(n?._name),href:e.safeUrl(n?._viewUrl)},null,8,_D)):m("v-if",!0),n?._viewUrl?m("v-if",!0):(l(),d("span",{key:1,class:"repo-name repo-name-static",textContent:c(n?._name)},null,8,ED)),n?.role==="coauthor"?(l(),d("span",CD,"Co-author")):m("v-if",!0)]),!n?._broken||n?.conference?(l(),d("div",ND,[n?._type==="repo"&&n?.source?.fullName&&!n?._broken?(l(),d("span",SD,[s("a",{target:"_blank",rel:"noopener",textContent:c(n?.source?.fullName),href:e.safeUrl("https://github.com/"+n?.source?.fullName+"/")},null,8,DD),n?.options?.update&&n?.source?.branch?(l(),d("span",RD,[t[25]||(t[25]=y(" \xB7 ",-1)),s("a",{target:"_blank",rel:"noopener",textContent:c(n?.source?.branch),href:e.safeUrl("https://github.com/"+n?.source?.fullName+"/tree/"+n?.source?.branch)},null,8,TD)])):m("v-if",!0),n?.source?.commit?(l(),d("span",OD,[t[26]||(t[26]=y(" \xB7 ",-1)),s("a",{class:"commit-hash",target:"_blank",rel:"noopener",href:e.safeUrl("https://github.com/"+n?.source?.fullName+"/tree/"+n?.source?.commit)},"@"+c(n?.source?.commit?.substring(0,8)),9,AD)])):m("v-if",!0)])):m("v-if",!0),n?._type==="pr"&&n?.source?.repositoryFullName&&!n?._broken?(l(),d("span",ID,[s("a",{target:"_blank",rel:"noopener",textContent:c(n?._source),href:e.safeUrl("https://github.com/"+n?.source?.repositoryFullName+"/pull/"+n?.source?.pullRequestId)},null,8,VD)])):m("v-if",!0),n?._type==="gist"&&n?.source?.gistId&&!n?._broken?(l(),d("span",PD,[s("a",{target:"_blank",rel:"noopener",textContent:c(n?._source),href:e.safeUrl("https://gist.github.com/"+n?.source?.gistId)},null,8,qD)])):m("v-if",!0),n?.conference?(l(),d("span",{key:3,class:"cell-conf conf-tag",title:n?.conference},[t[27]||(t[27]=s("i",{class:"fas fa-university","aria-hidden":"true"},null,-1)),t[28]||(t[28]=y()),s("span",{textContent:c(n?.conference)},null,8,$D)],8,MD)):m("v-if",!0)])):m("v-if",!0)])]),s("div",FD,[s("div",LD,[s("span",{class:T(["status-dot","status-"+n?._statusKey]),"aria-hidden":"true"},null,2),s("span",{class:"status-word",textContent:c(e.fmt?.statusLabel(n?.status))},null,8,UD)]),n?.status=="error"&&n?.statusMessage?(l(),d("div",{key:0,class:"status-sub status-sub-error",textContent:c(e.fmt?.statusMsg(n?.statusMessage)),title:n?.statusMessage},null,8,zD)):m("v-if",!0),n?._stale?(l(),d("div",{key:1,class:"status-sub status-sub-warn",title:"Last activity "+e.fmt?.humanTime(n?.anonymizeDate||n?.lastView)}," Last activity "+c(e.fmt?.humanTime(n?.anonymizeDate||n?.lastView))+" \xB7 may be stuck ",9,HD)):m("v-if",!0),n?.status!="error"&&!n?._stale&&n?.anonymizeDate?(l(),d("div",BD," anonymized "+c(e.fmt?.humanTime(n?.anonymizeDate)),1)):m("v-if",!0)]),s("div",{class:"cell-views num",role:"cell",textContent:c(e.fmt?.number(n?.pageView))},null,8,GD),s("div",jD,[n?._expiry?.kind==="never"?(l(),d("span",WD,"Never")):m("v-if",!0),n?._expiry?.kind==="date"?(l(),d("span",{key:1,textContent:c(e.fmt?.humanTime(n?._expiry?.date))},null,8,KD)):m("v-if",!0),n?._expiry?.kind==="expired"&&n?._expiry?.date?(l(),d("span",YD,"Expired "+c(e.fmt?.humanTime(n?._expiry?.date)),1)):m("v-if",!0),n?._expiry?.kind==="expired"&&!n?._expiry?.date?(l(),d("span",xD,"Expired")):m("v-if",!0),n?._expiry?.kind==="none"?(l(),d("span",JD,"\u2014")):m("v-if",!0)]),s("div",QD,[n?._broken?m("v-if",!0):(l(),d("div",XD,[s("button",{class:"btn btn-icon-dots",type:"button","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false","aria-label":"Actions for "+n?._name},[...t[29]||(t[29]=[s("i",{class:"fas fa-ellipsis-h","aria-hidden":"true"},null,-1)])],8,ZD),s("div",eR,[s("a",{class:"dropdown-item",href:e.safeUrl(n?._viewUrl)},[...t[30]||(t[30]=[s("i",{class:"fa fa-eye","aria-hidden":"true"},null,-1),y(" View ",-1)])],8,tR),n?._type==="repo"&&n?.options?.page&&n?.status=="ready"?(l(),d("a",{key:0,class:"dropdown-item",target:"_self",href:e.safeUrl("/w/"+n?.repoId+"/")},[...t[31]||(t[31]=[s("i",{class:"fas fa-globe","aria-hidden":"true"},null,-1),y(" View page ",-1)])],8,sR)):m("v-if",!0),s("a",{class:"dropdown-item",href:e.safeUrl(n?._editUrl)},[...t[32]||(t[32]=[s("i",{class:"far fa-edit","aria-hidden":"true"},null,-1),y(" Edit ",-1)])],8,nR),n?.status=="ready"||n?.status=="error"?(l(),d("button",{key:1,type:"button",class:"dropdown-item",onClick:a=>e.refreshItem(n)},[...t[33]||(t[33]=[s("i",{class:"fas fa-sync","aria-hidden":"true"},null,-1),y(" Force update ",-1)])],8,oR)):m("v-if",!0),n?.status=="removed"?(l(),d("button",{key:2,type:"button",class:"dropdown-item",onClick:a=>e.refreshItem(n)},[...t[34]||(t[34]=[s("i",{class:"fas fa-check-circle","aria-hidden":"true"},null,-1),y(" Enable ",-1)])],8,rR)):m("v-if",!0),n?.status=="expired"?(l(),d("button",{key:3,type:"button",class:"dropdown-item",onClick:a=>e.extendItem(n)},[...t[35]||(t[35]=[s("i",{class:"fas fa-calendar-plus","aria-hidden":"true"},null,-1),y(" Extend 6 months ",-1)])],8,iR)):m("v-if",!0),(n?.status=="ready"||n?.status=="expired"||n?.status=="error")&&n?.role!=="coauthor"?(l(),d("div",aR,[t[37]||(t[37]=s("div",{class:"dropdown-divider"},null,-1)),s("button",{type:"button",class:"dropdown-item dropdown-item-danger",onClick:a=>e.removeItem(n)},[...t[36]||(t[36]=[s("i",{class:"fas fa-trash-alt","aria-hidden":"true"},null,-1),y(" Remove ",-1)])],8,lR)])):m("v-if",!0)])]))])],10,gD))],64))),128)),!e.loading&&e.filteredItems?.length==0?(l(),d("div",dR,[t[39]||(t[39]=s("i",{class:"fas fa-inbox","aria-hidden":"true"},null,-1)),e.items?.length==0?(l(),d("span",uR,"You have no anonymizations yet.")):m("v-if",!0),e.items?.length>0?(l(),d("span",cR,"Nothing matches the current filters.")):m("v-if",!0),s("div",pR,[e.hasActiveFilters()?(l(),d("button",{key:0,type:"button",class:"btn btn-outline-ink",onClick:t[11]||(t[11]=n=>e.clearFilters())},"Clear filters")):m("v-if",!0),e.items?.length==0?(l(),d("a",fR,[...t[38]||(t[38]=[s("i",{class:"fa fa-plus-circle mr-1","aria-hidden":"true"},null,-1),y(" New anonymization",-1)])])):m("v-if",!0)])])):m("v-if",!0)],8,cD)])])}var mR={class:"explorer-page"},hR=["aria-label"],vR=["textContent"],yR={class:"leftCol-head"},gR={class:"leftCol-search"},bR={class:"tree-search-box"},wR={type:"text",class:"tree-search-input",placeholder:"Search files","aria-label":"Search files"},kR={class:"leftCol-project-header"},_R=["textContent"],ER={class:"project-file-count"},CR={class:"leftCol-body"},NR={key:0,class:"paper-inline-warning",role:"alert"},SR={key:1,class:"paper-inline-warning",role:"alert"},DR={class:"leftCol-foot"},RR=["title"],TR={class:"explorer-main"},OR={class:"status-bar"},AR={class:"breadcrumb paths","aria-label":"Path"},IR=["textContent"],VR={class:"status-bar-actions"},PR=["href"],qR={class:"d-none d-md-inline"},MR={class:"d-none d-md-inline"},$R=["href"],FR=["href"],LR=["href"],UR=["href"],zR={class:"explorer-content"};function ol(e,t){let o=et("tree"),r=et("partial-view"),n=ge("field");return l(),d("div",mR,[E(s("button",{class:"sidebar-toggle",onClick:t[0]||(t[0]=i=>e.sidebarCollapsed=!e.sidebarCollapsed),"aria-label":e.sidebarCollapsed?"Show files":"Hide files"},[s("i",{class:T(["fas",e.sidebarCollapsed?"fa-folder-open":"fa-times"])},null,2),s("span",{textContent:c(e.sidebarCollapsed?"Files":"Close")},null,8,vR)],8,hR),[[H,e.files?.length]]),E(s("div",{class:T(["leftCol",{collapsed:e.sidebarCollapsed}])},[s("div",yR,[t[7]||(t[7]=s("span",{class:"leftCol-eyebrow"},"Files",-1)),s("button",{class:"leftCol-close","aria-label":"Close files",onClick:t[1]||(t[1]=i=>e.sidebarCollapsed=!0)},[...t[6]||(t[6]=[s("i",{class:"fas fa-times"},null,-1)])])]),s("div",gR,[s("div",bR,[s("i",{class:T(["fas tree-search-icon",e.fileSearchLoading?"fa-spinner fa-spin":"fa-search"])},null,2),E(s("input",wR,null,512),[[n,{state:e.viewState,set:i=>{e.fileSearchQuery=i},value:e.fileSearchQuery,form:null,options:{debounce:300},change:()=>{e.onFileSearchChange()}}]]),E(s("kbd",{class:"tree-search-kbd"},c(e.isMac?"\u2318":"Ctrl+")+"K",513),[[H,!e.fileSearchQuery]]),E(s("button",{class:"tree-search-clear","aria-label":"Clear search",onClick:t[2]||(t[2]=i=>{e.fileSearchQuery="",e.onFileSearchChange()})},"\xD7",512),[[H,e.fileSearchQuery]])])]),s("div",kR,[s("span",{class:"project-name",textContent:c(e.repoId)},null,8,_R),s("span",ER,c(e.fileCounts?.[""]||e.files?.length)+" files",1)]),s("div",CR,[e.options?.truncatedFolders?.length>0?(l(),d("div",NR,[t[8]||(t[8]=s("i",{class:"fas fa-exclamation-triangle"},null,-1)),y(" "+c(e.fmt?.translate("WARNINGS.repo_truncated")),1)])):m("v-if",!0),e.options?.hasSubmodules?(l(),d("div",SR,[t[9]||(t[9]=s("i",{class:"fas fa-exclamation-triangle"},null,-1)),y(" "+c(e.fmt?.translate("WARNINGS.submodules_not_included")),1)])):m("v-if",!0),Se(o,{class:"files",file:e.files,"search-query":e.fileSearchQuery,"search-results":e.fileSearchResults,page:e.viewState},null,8,["file","search-query","search-results","page"])]),s("div",DR,[s("span",{class:"last-update","data-toggle":"tooltip","data-placement":"top",title:e.options?.lastUpdateDate}," Updated "+c(e.fmt?.date(e.options?.lastUpdateDate)),9,RR)])],2),[[H,e.files?.length]]),E(s("div",{class:"leftCol-backdrop",onClick:t[3]||(t[3]=i=>e.sidebarCollapsed=!0)},null,512),[[H,e.files?.length&&!e.sidebarCollapsed]]),s("div",TR,[s("div",OR,[s("ol",AR,[(l(!0),d(x,null,re(e.paths,(i,a)=>(l(),d("li",{class:"breadcrumb-item",textContent:c(i)},null,8,IR))),256))]),s("div",VR,[e.options?.isAdmin||e.options?.isOwner?(l(),d("a",{key:0,class:"btn btn-sm","aria-label":"Edit",href:e.safeUrl("/anonymize/"+e.repoId)},[...t[10]||(t[10]=[s("i",{class:"far fa-edit"},null,-1),s("span",{class:"d-none d-md-inline"}," Edit",-1)])],8,PR)):m("v-if",!0),e.type=="html-doc"&&!e.showSource?(l(),d("button",{key:1,class:T(["btn btn-sm",{"btn-active":e.allowScripts}]),"aria-label":"Allow this document to run JavaScript",title:"Scripts in this file are blocked by default. Enable them only if you trust the repository \u2014 the document stays isolated from your session either way.",onClick:t[4]||(t[4]=i=>e.toggleAllowScripts())},[t[11]||(t[11]=s("i",{class:"fab fa-js"},null,-1)),s("span",qR,c(e.allowScripts?"JS on":"JS off"),1)],2)):m("v-if",!0),e.type=="html-doc"?(l(),d("button",{key:2,class:"btn btn-sm","aria-label":"Toggle between the rendered document and its source",title:"Toggle between the rendered document and its source",onClick:t[5]||(t[5]=i=>e.toggleSource())},[s("i",{class:T(["fas",e.showSource?"fa-eye":"fa-code"])},null,2),s("span",MR,c(e.showSource?"Rendered":"Source"),1)])):m("v-if",!0),E(s("a",{target:"_self",class:"btn btn-sm","aria-label":"View raw current file",title:"View the raw content of the current file",href:e.safeUrl(e.url)},[...t[12]||(t[12]=[s("i",{class:"fas fa-file-alt"},null,-1),s("span",{class:"d-none d-md-inline"}," Raw",-1)])],8,$R),[[H,e.content!=null]]),E(s("a",{target:"_self",class:"btn btn-sm","aria-label":"Download current file",title:"Download the current file",href:e.safeUrl(e.url+"&download=true")},[...t[13]||(t[13]=[s("i",{class:"fas fa-download"},null,-1),s("span",{class:"d-none d-md-inline"}," Download",-1)])],8,FR),[[H,e.content!=null]]),e.options?.download?(l(),d("a",{key:3,target:"_self",class:"btn btn-sm","aria-label":"Download full repository as ZIP",title:"Download the full repository as a ZIP archive",href:e.safeUrl("/api/repo/"+e.repoId+"/zip")},[...t[14]||(t[14]=[s("i",{class:"fas fa-file-archive"},null,-1),s("span",{class:"d-none d-md-inline"}," Full repo ZIP",-1)])],8,LR)):m("v-if",!0),e.options?.hasWebsite?(l(),d("a",{key:4,target:"_self",class:"btn btn-sm","aria-label":"Website",href:e.safeUrl("/w/"+e.repoId+"/")},[...t[15]||(t[15]=[s("i",{class:"fas fa-globe"},null,-1),s("span",{class:"d-none d-md-inline"}," Website",-1)])],8,UR)):m("v-if",!0)])]),s("div",zR,[Se(r,{name:"partials/pageView.htm",state:e.viewState},null,8,["state"])])])])}var HR={class:"paper-faq"};function rl(e,t){return l(),d("div",HR,[...t[0]||(t[0]=[Ee('
Help

Answers to the questions that come up most.

If something's missing, write to us \u2014 report a bug on GitHub.

',1),s("div",{class:"paper-faq-body"},[s("aside",{class:"paper-faq-toc"},[s("div",{class:"paper-faq-toc-head"},"Contents"),s("nav",null,[s("a",{href:"#faq-general"},"General"),s("a",{href:"#faq-features"},"Features"),s("a",{href:"#faq-limitations"},"Limitations"),s("a",{href:"#faq-privacy"},"Privacy & Security"),s("a",{href:"#faq-hosting"},"Self-Hosting")])]),s("section",{class:"faq-section","aria-label":"FAQs"},[s("div",null,[m(" General "),s("h4",{class:"faq-cat"},[s("i",{class:"fas fa-info-circle mr-2"}),y("General ")]),s("div",{class:"panel-group",id:"faq-general",role:"tablist","aria-multiselectable":"true"},[s("div",{class:"panel panel-default mb-3"},[s("div",{class:"panel-heading p-3",role:"tab",id:"headingWhatIs"},[s("h3",{class:"panel-title"},[s("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-general",href:"#whatIs","aria-expanded":"false","aria-controls":"whatIs"}," What is Anonymous GitHub? ")])]),s("div",{id:"whatIs",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingWhatIs"},[s("div",{class:"panel-body p-3"},[s("p",null," Anonymous GitHub is a free, open-source tool that anonymizes GitHub repositories and pull requests for double-anonymous (double-blind) peer review. It replaces identifying information \u2014 such as the repository owner, organization name, and custom terms \u2014 so that reviewers cannot determine the identity of the authors through the code repository. ")])])]),s("div",{class:"panel panel-default mb-3"},[s("div",{class:"panel-heading p-3",role:"tab",id:"headingHowWork"},[s("h3",{class:"panel-title"},[s("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-general",href:"#howWork","aria-expanded":"false","aria-controls":"howWork"}," How does Anonymous GitHub work? ")])]),s("div",{id:"howWork",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingHowWork"},[s("div",{class:"panel-body p-3"},[s("p",null," Anonymous GitHub either downloads the complete repository and anonymizes the content, or proxies requests to GitHub on the fly. In both cases, the original and anonymized versions of files are cached on the server. The system automatically detects and replaces the repository owner, organization name, and repository name. You can also specify additional custom terms to anonymize using one-per-line regex patterns. ")])])]),s("div",{class:"panel panel-default mb-3"},[s("div",{class:"panel-heading p-3",role:"tab",id:"headingScope"},[s("h3",{class:"panel-title"},[s("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-general",href:"#scope","aria-expanded":"false","aria-controls":"scope"}," What is the scope of anonymization? ")])]),s("div",{id:"scope",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingScope"},[s("div",{class:"panel-body p-3"},[s("p",null," In double-anonymous peer review, the boundary of anonymization is the paper plus its online appendix \u2014 not the entire internet. Searching for any part of the paper or the online appendix can be considered a deliberate attempt to break anonymity. Anonymous GitHub anonymizes the repository owner, organization, repository name, file and directory names, and file contents across all text-based file types. ")])])]),s("div",{class:"panel panel-default mb-3"},[s("div",{class:"panel-heading p-3",role:"tab",id:"headingCost"},[s("h3",{class:"panel-title"},[s("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-general",href:"#cost","aria-expanded":"false","aria-controls":"cost"}," How much does it cost? ")])]),s("div",{id:"cost",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingCost"},[s("div",{class:"panel-body p-3"},[s("p",null,[y(" Anonymous GitHub is completely free to use. However, the server costs hundreds of dollars per year to maintain. If you find the service useful, a small donation would be greatly appreciated. You can support the project by "),s("a",{href:"https://github.com/sponsors/tdurieux/",target:"_blank"},"sponsoring on GitHub"),y(", donating through "),s("a",{href:"https://ko-fi.com/tdurieux",target:"_blank"},"Ko-fi"),y(', or by clicking the "Support me" button on the site. ')])])])])]),m(" Features "),s("h4",{class:"faq-cat"},[s("i",{class:"fas fa-cogs mr-2"}),y("Features ")]),s("div",{class:"panel-group",id:"faq-features",role:"tablist","aria-multiselectable":"true"},[s("div",{class:"panel panel-default mb-3"},[s("div",{class:"panel-heading p-3",role:"tab",id:"headingFormats"},[s("h3",{class:"panel-title"},[s("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-features",href:"#formats","aria-expanded":"false","aria-controls":"formats"}," Which file formats are supported? ")])]),s("div",{id:"formats",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingFormats"},[s("div",{class:"panel-body p-3"},[s("p",null," Anonymous GitHub can display and render a wide variety of file types: "),s("ul",null,[s("li",null,[s("strong",null,"Text and source code"),y(" \u2014 displayed with syntax highlighting")]),s("li",null,[s("strong",null,"Markdown"),y(" \u2014 rendered as formatted HTML")]),s("li",null,[s("strong",null,"Images"),y(" (PNG, JPG, SVG, etc.) \u2014 displayed inline")]),s("li",null,[s("strong",null,"PDFs"),y(" \u2014 rendered directly in the browser")]),s("li",null,[s("strong",null,"Jupyter Notebooks"),y(" \u2014 rendered with code cells and outputs")])]),s("p",null," Only text-based files are anonymized. Anonymous GitHub analyzes the content of each file to determine whether it is textual or binary. ")])])]),s("div",{class:"panel panel-default mb-3"},[s("div",{class:"panel-heading p-3",role:"tab",id:"headingPR"},[s("h3",{class:"panel-title"},[s("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-features",href:"#pullRequests","aria-expanded":"false","aria-controls":"pullRequests"}," Can I anonymize pull requests? ")])]),s("div",{id:"pullRequests",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingPR"},[s("div",{class:"panel-body p-3"},[s("p",null," Yes. In addition to full repositories, Anonymous GitHub supports anonymizing individual pull requests. Simply paste the URL of a GitHub pull request when creating a new anonymized repository, and the system will automatically detect that it is a pull request and anonymize it accordingly. ")])])]),s("div",{class:"panel panel-default mb-3"},[s("div",{class:"panel-heading p-3",role:"tab",id:"headingConference"},[s("h3",{class:"panel-title"},[s("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-features",href:"#conference","aria-expanded":"false","aria-controls":"conference"}," What is the Conference ID feature? ")])]),s("div",{id:"conference",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingConference"},[s("div",{class:"panel-body p-3"},[s("p",null," When creating an anonymized repository, you can associate it with a Conference ID. This allows conferences to define default anonymization settings (such as expiration dates) that are automatically applied to repositories submitted under that conference. If your conference provides a Conference ID, enter it during the anonymization setup. ")])])]),s("div",{class:"panel panel-default mb-3"},[s("div",{class:"panel-heading p-3",role:"tab",id:"headingExpiration"},[s("h3",{class:"panel-title"},[s("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-features",href:"#expiration","aria-expanded":"false","aria-controls":"expiration"}," What happens when an anonymized repository expires? ")])]),s("div",{id:"expiration",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingExpiration"},[s("div",{class:"panel-body p-3"},[s("p",null," You can configure one of three expiration strategies when creating your anonymized repository: "),s("ul",null,[s("li",null,[s("strong",null,"Never expire"),y(" \u2014 the anonymized repository remains accessible indefinitely.")]),s("li",null,[s("strong",null,"Redirect to GitHub"),y(" \u2014 after expiration, visitors are redirected to the original GitHub repository.")]),s("li",null,[s("strong",null,"Remove content"),y(" \u2014 after expiration, the anonymized content is deleted from the server.")])])])])]),s("div",{class:"panel panel-default mb-3"},[s("div",{class:"panel-heading p-3",role:"tab",id:"headingDownload"},[s("h3",{class:"panel-title"},[s("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-features",href:"#download","aria-expanded":"false","aria-controls":"download"}," Can I download an anonymized repository? ")])]),s("div",{id:"download",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingDownload"},[s("div",{class:"panel-body p-3"},[s("p",null," Yes. Anonymized repositories can be downloaded as a ZIP file. This is useful if reviewers want to build or test the code locally. The downloaded archive contains the fully anonymized version of the repository. ")])])]),s("div",{class:"panel panel-default mb-3"},[s("div",{class:"panel-heading p-3",role:"tab",id:"headingUpdates"},[s("h3",{class:"panel-title"},[s("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-features",href:"#updates","aria-expanded":"false","aria-controls":"updates"}," Are updates to the original repository reflected in the anonymized version? ")])]),s("div",{id:"updates",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingUpdates"},[s("div",{class:"panel-body p-3"},[s("p",null," Yes. The anonymized repository tracks the source on GitHub: when you push new commits to the original repository, the anonymized view picks up those changes (cached files are refreshed against GitHub). This means you can keep iterating on the code while reviewers have the link, and you do not need to recreate the anonymized repository every time you update the source. "),s("p",null," A few practical implications worth keeping in mind: "),s("ul",null,[s("li",null," You can safely create the anonymized repository early in the writing process \u2014 later commits will be visible to reviewers without any additional action. "),s("li",null," If you rename files, add new identifiers, or introduce new contributor names after creation, revisit the anonymization options (custom terms, file filters) to make sure the new content is still properly anonymized. "),s("li",null," If the original repository is made private or deleted, the anonymized repository will no longer be able to fetch updated content. ")])])])]),s("div",{class:"panel panel-default mb-3"},[s("div",{class:"panel-heading p-3",role:"tab",id:"headingCLI"},[s("h3",{class:"panel-title"},[s("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-features",href:"#cli","aria-expanded":"false","aria-controls":"cli"}," Is there a command-line tool? ")])]),s("div",{id:"cli",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingCLI"},[s("div",{class:"panel-body p-3"},[s("p",null," Yes. Anonymous GitHub provides a CLI tool that lets you anonymize repositories locally, generating an anonymized ZIP file on your machine. Install it via npm: "),s("pre",{style:{"background-color":"var(--hover-bg-color)",padding:"12px","border-radius":"4px","margin-top":"8px",color:"var(--color)"}},[s("code",null,`npm install -g @tdurieux/anonymous_github +anonymous_github`)])])])])]),m(" Limitations "),s("h4",{class:"faq-cat"},[s("i",{class:"fas fa-exclamation-triangle mr-2"}),y("Limitations ")]),s("div",{class:"panel-group",id:"faq-limitations",role:"tablist","aria-multiselectable":"true"},[s("div",{class:"panel panel-default mb-3"},[s("div",{class:"panel-heading p-3",role:"tab",id:"headingLimitation"},[s("h3",{class:"panel-title"},[s("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-limitations",href:"#limitation","aria-expanded":"false","aria-controls":"limitation"}," What are the limitations of Anonymous GitHub? ")])]),s("div",{id:"limitation",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingLimitation"},[s("div",{class:"panel-body p-3"},[s("ul",null,[s("li",null," Anonymous GitHub only anonymizes text-based files. Binary files (compiled executables, archives, etc.) are served as-is without anonymization. "),s("li",null," Files larger than 8 MB are not supported. "),s("li",null," Static site generators (such as Jekyll) used with GitHub Pages are not fully supported, although Markdown files are converted to HTML. "),s("li",null," The anonymization of terms within source code may change the behavior of the program (e.g., if a replaced term appears in a string literal or identifier). ")])])])])]),m(" Privacy & Security "),s("h4",{class:"faq-cat"},[s("i",{class:"fas fa-shield-alt mr-2"}),y("Privacy & Security ")]),s("div",{class:"panel-group",id:"faq-privacy",role:"tablist","aria-multiselectable":"true"},[s("div",{class:"panel panel-default mb-3"},[s("div",{class:"panel-heading p-3",role:"tab",id:"headingData"},[s("h3",{class:"panel-title"},[s("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-privacy",href:"#data","aria-expanded":"false","aria-controls":"data"}," How is my data handled? ")])]),s("div",{id:"data",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingData"},[s("div",{class:"panel-body p-3"},[s("p",null," Data stored on Anonymous GitHub is never shared or used for any purpose beyond providing the anonymization service. When a repository is removed or expires, only its configuration is retained \u2014 this makes it easy to restore the repository if needed and ensures that no future repository reuses the same ID. ")])])]),s("div",{class:"panel panel-default mb-3"},[s("div",{class:"panel-heading p-3",role:"tab",id:"headingPermissions"},[s("h3",{class:"panel-title"},[s("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-privacy",href:"#permissions","aria-expanded":"false","aria-controls":"permissions"}," Why does GitHub say Anonymous GitHub asks for write access? ")])]),s("div",{id:"permissions",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingPermissions"},[s("div",{class:"panel-body p-3"},[s("p",null," Anonymous GitHub only reads your repositories \u2014 it never pushes commits, opens issues, modifies settings, or deletes anything. From your perspective as a user, the service is read-only. "),s("p",null,[y(" However, GitHub's OAuth scopes do not offer a read-only option for private repositories: the only scope that grants access to private repos is "),s("code",null,"repo"),y(", which is documented as full read/write access. To support users who want to anonymize a private repository, Anonymous GitHub must request that scope, and GitHub then displays the broader permission text at sign-in. The application itself only ever performs read operations against the GitHub API. ")]),s("p",null,[y(" If you only anonymize public repositories, the source code is open and can be audited on the "),s("a",{href:"https://github.com/tdurieux/anonymous_github/",target:"_blank"},"GitHub repository"),y(", or you can self-host your own instance. ")])])])]),s("div",{class:"panel panel-default mb-3"},[s("div",{class:"panel-heading p-3",role:"tab",id:"headingViewer"},[s("h3",{class:"panel-title"},[s("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-privacy",href:"#viewer","aria-expanded":"false","aria-controls":"viewer"}," Can repository owners see who viewed their anonymized repository? ")])]),s("div",{id:"viewer",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingViewer"},[s("div",{class:"panel-body p-3"},[s("p",null," No. Only the total number of views is tracked as an incremental counter. It is not possible for the repository owner or for Anonymous GitHub to identify individual viewers. Reviewer anonymity is fully preserved. ")])])])]),m(" Self-Hosting "),s("h4",{class:"faq-cat"},[s("i",{class:"fas fa-server mr-2"}),y("Self-Hosting ")]),s("div",{class:"panel-group",id:"faq-hosting",role:"tablist","aria-multiselectable":"true"},[s("div",{class:"panel panel-default mb-3"},[s("div",{class:"panel-heading p-3",role:"tab",id:"headingDeploy"},[s("h3",{class:"panel-title"},[s("a",{class:"collapsed",role:"button","data-toggle":"collapse","data-parent":"#faq-hosting",href:"#deploy","aria-expanded":"false","aria-controls":"deploy"}," Can I deploy my own instance? ")])]),s("div",{id:"deploy",class:"panel-collapse collapse",role:"tabpanel","aria-labelledby":"headingDeploy"},[s("div",{class:"panel-body p-3"},[s("p",null,[y(" Yes. Anonymous GitHub is fully open source (GPL-3.0) and supports Docker-based deployment. You will need to configure a GitHub OAuth app and provide a GitHub token. Detailed setup instructions are available on the "),s("a",{href:"https://github.com/tdurieux/anonymous_github/",target:"_blank"},"GitHub repository"),y(". ")]),s("p",null," The basic steps are: "),s("ol",null,[s("li",null,"Clone the repository and install dependencies"),s("li",null,[y("Create a "),s("code",null,".env"),y(" file with your GitHub token, OAuth client ID, and client secret")]),s("li",null,[y("Run "),s("code",null,"docker-compose up -d")])])])])])]),s("div",{class:"text-center mt-5 mb-5 p-4",style:{"background-color":"var(--hover-bg-color)","border-radius":"8px"}},[s("p",{class:"mb-2",style:{"font-size":"1.1rem"}}," Still have questions? "),s("p",{class:"text-muted mb-0"},[y(" Open an issue on the "),s("a",{href:"https://github.com/tdurieux/anonymous_github/issues",target:"_blank"},"GitHub repository"),y(" and we'll be happy to help. ")])])])])],-1)])])}var BR={class:"pr-page"},GR={class:"container paper-page pr-page-inner"},jR={class:"pr-header"},WR={class:"paper-page-title pr-title"},KR=["textContent"],YR={key:1,class:"text-muted"},xR=["href"],JR={class:"pr-header-meta"},QR={key:0,class:"pr-meta-item"},XR=["textContent"],ZR={key:1,class:"pr-meta-item"},eT=["textContent"],tT={key:2,class:"pr-meta-item"},sT=["textContent"],nT={key:0,class:"paper-tabs",role:"tablist"},oT=["textContent"],rT=["textContent"],iT={class:"paper-tab-content"},aT={key:0},lT={class:"pr-comments"},dT={class:"pr-comment"},uT={class:"pr-comment-head"},cT=["textContent"],pT={key:0,class:"pr-comment-date"},fT={key:0,class:"paper-table-empty"},mT={key:1},hT={class:"pr-comments"},vT={class:"pr-comment"},yT={class:"pr-comment-head"},gT={key:0,class:"pr-comment-author"},bT=["textContent"],wT=["textContent"],kT={key:0,class:"pr-comment-body"},_T={key:0,class:"paper-table-empty"};function il(e,t){let o=et("gist-file"),r=et("markdown");return l(),d("div",BR,[s("div",GR,[t[15]||(t[15]=s("div",{class:"paper-crumbs"},[s("a",{href:"/dashboard"},"Reviewer"),y(" \xA0/\xA0 "),s("span",{class:"here"},"Gist")],-1)),s("header",jR,[s("h1",WR,[e.details?.description?(l(),d("span",{key:0,textContent:c(e.details?.description)},null,8,KR)):m("v-if",!0),e.details?.description?m("v-if",!0):(l(),d("span",YR,"Untitled gist")),e.options?.isAdmin||e.options?.isOwner?(l(),d("a",{key:2,class:"btn btn-sm","aria-label":"Edit",href:e.safeUrl("/gist-anonymize/"+e.gistId)},[...t[2]||(t[2]=[s("i",{class:"far fa-edit"},null,-1),s("span",{class:"d-none d-md-inline"}," Edit",-1)])],8,xR)):m("v-if",!0)]),s("div",JR,[s("span",{class:T(["paper-pill",{good:e.details?.isPublic,warn:!e.details?.isPublic}])},c(e.details?.isPublic?"Public":"Secret"),3),e.details?.ownerLogin?(l(),d("span",QR,[t[3]||(t[3]=s("i",{class:"far fa-user"},null,-1)),t[4]||(t[4]=y(" @",-1)),s("span",{textContent:c(e.details?.ownerLogin)},null,8,XR)])):m("v-if",!0),e.details?.updatedDate?(l(),d("span",ZR,[t[5]||(t[5]=s("i",{class:"far fa-clock"},null,-1)),t[6]||(t[6]=y()),s("span",{textContent:c(e.fmt?.date(e.details?.updatedDate))},null,8,eT)])):m("v-if",!0),e.details?.anonymizeDate?(l(),d("span",tT,[t[7]||(t[7]=s("i",{class:"fas fa-user-secret"},null,-1)),t[8]||(t[8]=y(" Anonymized ",-1)),s("span",{textContent:c(e.fmt?.date(e.details?.anonymizeDate))},null,8,sT)])):m("v-if",!0)])]),e.details?.files&&e.details?.files?.length||e.details?.comments&&e.details?.comments?.length?(l(),d("nav",nT,[e.details?.files?(l(),d("button",{key:0,class:T(["paper-tab",{active:e.tabState?.active=="files"}]),type:"button",role:"tab",onClick:t[0]||(t[0]=n=>e.tabState.active="files")},[t[9]||(t[9]=s("i",{class:"fas fa-file-code"},null,-1)),s("span",{textContent:c(e.fmt.plural(e.details?.files?.length,{0:"No files",one:"1 file",other:"{} files"}))},null,8,oT)],2)):m("v-if",!0),e.details?.comments?(l(),d("button",{key:1,class:T(["paper-tab",{active:e.tabState?.active=="comments"}]),type:"button",role:"tab",onClick:t[1]||(t[1]=n=>e.tabState.active="comments")},[t[10]||(t[10]=s("i",{class:"far fa-comment-dots"},null,-1)),s("span",{textContent:c(e.fmt.plural(e.details?.comments?.length,{0:"No comments",one:"1 comment",other:"{} comments"}))},null,8,rT)],2)):m("v-if",!0)])):m("v-if",!0),s("div",iT,[e.details?.files&&e.tabState?.active=="files"?(l(),d("div",aT,[s("ul",lT,[(l(!0),d(x,null,re(e.details?.files,(n,i)=>(l(),d("li",dT,[s("div",uT,[s("strong",{textContent:c(n?.filename)},null,8,cT),n?.language?(l(),d("span",pT,c(n?.language),1)):m("v-if",!0)]),Se(o,{file:n},null,8,["file"])]))),256)),e.details?.files?.length?m("v-if",!0):(l(),d("li",fT,[...t[11]||(t[11]=[s("i",{class:"fas fa-file"},null,-1),s("span",null,"No files in this gist.",-1)])]))])])):m("v-if",!0),e.details?.comments&&e.tabState?.active=="comments"?(l(),d("div",mT,[s("ul",hT,[(l(!0),d(x,null,re(e.details?.comments,(n,i)=>(l(),d("li",vT,[s("div",yT,[n?.author?(l(),d("span",gT,[t[12]||(t[12]=s("i",{class:"far fa-user"},null,-1)),t[13]||(t[13]=y(" @",-1)),s("span",{textContent:c(n?.author)},null,8,bT)])):m("v-if",!0),n?.updatedDate?(l(),d("span",{key:1,class:"pr-comment-date",textContent:c(e.fmt?.date(n?.updatedDate))},null,8,wT)):m("v-if",!0)]),n?.body?(l(),d("div",kT,[Se(r,{content:n?.body},null,8,["content"])])):m("v-if",!0)]))),256)),e.details?.comments?.length?m("v-if",!0):(l(),d("li",_T,[...t[14]||(t[14]=[s("i",{class:"far fa-comment-dots"},null,-1),s("span",null,"No comments on this gist.",-1)])]))])])):m("v-if",!0)])])])}var ET={class:"collapse navbar-collapse",id:"navbarSupportedContent"},CT={class:"navbar-nav mr-auto smooth-scroll"},NT={key:0,class:"nav-item"},ST={key:1,class:"nav-item"},DT={key:2,class:"nav-item"},RT={key:3,class:"nav-item"},TT={class:"nav-item"},OT={key:4,class:"nav-item"},AT={class:"navbar-nav"},IT={key:0,class:"nav-item"},VT={key:1,class:"nav-item"},PT={key:2,class:"nav-item"},qT={key:3,class:"nav-item dropdown user-chip-wrap"},MT={class:"nav-link user-chip dropdown-toggle",href:"#",id:"navbarDropdownMenuLink",role:"button","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"},$T=["src"],FT={class:"user-chip-name"},LT={class:"dropdown-menu dropdown-menu-right user-menu","aria-labelledby":"navbarDropdownMenuLink"},UT={class:"dropdown-header"},zT=["innerHTML"];function al(e,t){return l(),d(x,null,[s("nav",{class:T(["navbar navbar-expand-lg",{"navbar-dark":e.isDarkMode}])},[t[13]||(t[13]=s("a",{class:"navbar-brand",href:"/"},[y("Anonymous "),s("em",null,"GitHub")],-1)),t[14]||(t[14]=s("button",{class:"navbar-toggler",type:"button","data-toggle":"collapse","data-target":"#navbarSupportedContent","aria-controls":"navbarSupportedContent","aria-expanded":"false","aria-label":"Toggle navigation"},[s("span",{class:"navbar-toggler-icon"})],-1)),s("div",ET,[s("ul",CT,[e.user?m("v-if",!0):(l(),d("li",NT,[s("a",{class:T(["nav-link",{active:e.path=="/"}]),href:"/"}," Home ",2)])),e.user?(l(),d("li",ST,[s("a",{class:T(["nav-link",{active:e.path=="/dashboard"}]),href:"/dashboard"},[...t[2]||(t[2]=[s("i",{class:"fas fa-th-large d-lg-none mr-1"},null,-1),y(" My work ",-1)])],2)])):m("v-if",!0),e.user?(l(),d("li",DT,[s("a",{class:T(["nav-link",{active:e.path=="/anonymize"||e.path=="/pull-request-anonymize"}]),href:"/anonymize"},[...t[3]||(t[3]=[s("i",{class:"fas fa-user-secret d-lg-none mr-1"},null,-1),y(" Anonymize ",-1)])],2)])):m("v-if",!0),e.user?(l(),d("li",RT,[s("a",{class:T(["nav-link",{active:e.path=="/conferences"}]),href:"/conferences"},[...t[4]||(t[4]=[s("i",{class:"fas fa-chalkboard-teacher d-lg-none mr-1"},null,-1),y(" Conferences ",-1)])],2)])):m("v-if",!0),s("li",TT,[s("a",{class:T(["nav-link",{active:e.path=="/faq"}]),href:"/faq"},[...t[5]||(t[5]=[s("i",{class:"fas fa-question-circle d-lg-none mr-1"},null,-1),y("FAQ",-1)])],2)]),e.user&&e.user?.isAdmin?(l(),d("li",OT,[s("a",{class:T(["nav-link",{active:e.path?.indexOf("/admin")===0}]),href:"/admin/"},[...t[6]||(t[6]=[s("i",{class:"fas fa-cog d-lg-none mr-1"},null,-1),y(" Admin ",-1)])],2)])):m("v-if",!0)]),s("ul",AT,[t[11]||(t[11]=s("li",{class:"nav-item"},[s("a",{class:"nav-link nav-icon",target:"_blank",href:"https://github.com/tdurieux/anonymous_github/",title:"Anonymous GitHub source code","aria-label":"Anonymous GitHub source code on GitHub",rel:"noopener","data-offset":"30"},[s("i",{class:"fab fa-github","aria-hidden":"true"})])],-1)),m(` "Report a bug" is about this service. Reviewers who land on an anonymized repository often think it is about the paper, so the - label names the service and the tooltip says who to contact. `),t[12]||(t[12]=s("li",{class:"nav-item d-none d-lg-block"},[s("a",{class:"nav-link",target:"_blank",rel:"noopener",href:"https://github.com/tdurieux/anonymous_github/issues/new?template=issue_report.yml",title:"Report a problem with the Anonymous GitHub service. Questions about an anonymized repository or paper go to its authors.","data-offset":"30"},[s("i",{class:"fas fa-bug d-lg-none mr-1","aria-hidden":"true"}),y("Report a bug ")])],-1)),e.isDarkMode?m("v-if",!0):(l(),d("li",_T,[s("a",{class:"nav-link nav-icon",href:"#",title:"Switch to dark mode","aria-label":"Switch to dark mode",role:"button",onClick:t[0]||(t[0]=ge(o=>{e.darkMode(!0)},["prevent"]))},[...t[7]||(t[7]=[s("i",{class:"fas fa-moon","aria-hidden":"true"},null,-1)])])])),e.isDarkMode?(l(),d("li",ET,[s("a",{class:"nav-link nav-icon",href:"#",title:"Switch to light mode","aria-label":"Switch to light mode",role:"button",onClick:t[1]||(t[1]=ge(o=>{e.darkMode(!1)},["prevent"]))},[...t[8]||(t[8]=[s("i",{class:"fas fa-sun","aria-hidden":"true"},null,-1)])])])):m("v-if",!0),e.user?m("v-if",!0):(l(),d("li",CT,[...t[9]||(t[9]=[s("a",{class:"nav-link btn-signin",target:"_self",href:"/github/login","data-offset":"30"},[s("i",{class:"fab fa-github mr-1"}),y(" Sign in ")],-1)])])),e.user?(l(),d("li",NT,[s("a",ST,[e.user?.photo?(l(),d("img",{key:0,width:"22",height:"22",class:"rounded-circle",src:e.safeUrl(e.user?.photo)},null,8,DT)):m("v-if",!0),s("span",RT,c(e.user?.username),1)]),s("div",TT,[s("h6",OT,"Signed in as @"+c(e.user?.username),1),t[10]||(t[10]=_e('SettingsDefaults, quotas, accountClaim an anonymizationAttach an existing mirror to your accountReport a bugAbout this service, not a paperSource codeSign out',7))])])):m("v-if",!0)])])],2),e.generalMessage?(l(),d("div",{key:0,class:"navbar shadow generalMessage",innerHTML:e.sanitize(e.generalMessage)},null,8,AT)):m("v-if",!0)],64)}var IT={class:"paper-landing"},VT={class:"paper-hero"},PT={class:"paper-hero-copy"},qT={class:"paper-cta-row"},MT={key:0,href:"/github/login",target:"_self",class:"btn-hero"},$T={key:1,href:"/anonymize",class:"btn-hero"},FT={class:"paper-stats paper-wrap",id:"metrics","aria-label":"Usage over the last 60 days"},LT={class:"paper-stats-grid"},UT={class:"paper-stat-value"},zT={class:"paper-stat-label"},HT=["viewBox"],BT=["x","y","width","height"],GT={key:1,class:"paper-stat-delta"},jT={class:"paper-features paper-wrap","aria-label":"Product features"},WT={class:"paper-features-list",role:"tablist","aria-label":"Features","aria-orientation":"vertical"},KT=["onClick","onKeydown","id","aria-controls","aria-selected","tabindex"],YT={class:"paper-eyebrow"},xT={class:"paper-feature-title"},JT={class:"paper-feature-more"},QT={class:"paper-feature-title paper-feature-title-m","aria-hidden":"true"},XT=["href","target"],ZT={class:"paper-features-stage"},eO=["id","aria-labelledby"],tO={class:"paper-frame"},sO={class:"paper-frame-bar","aria-hidden":"true"},nO={class:"url"},oO=["src","alt"],rO={class:"paper-footer"},iO={class:"paper-footer-inner"},aO={class:"paper-footer-col"},lO={key:0,href:"/dashboard"},dO={key:1,href:"/conferences"},uO={class:"paper-footer-foot"};function tl(e,t){return l(),d("div",IT,[m(" Hero: copy on the left, the product on the right "),s("section",VT,[s("div",PT,[t[2]||(t[2]=s("div",{class:"paper-eyebrow"},"For double-blind peer review",-1)),t[3]||(t[3]=s("h1",{class:"hero-title"},[y(" Share the code,"),s("br"),s("span",{class:"accent"},"not the author.")],-1)),t[4]||(t[4]=s("p",{class:"hero-subtitle"}," Anonymous GitHub makes a read-only mirror of your repository, pull request, or gist with every trace of identity removed, so you can attach a link to your submission without breaking anonymity. ",-1)),s("div",qT,[e.user?m("v-if",!0):(l(),d("a",MT,[...t[0]||(t[0]=[s("i",{class:"fab fa-github mr-2","aria-hidden":"true"},null,-1),y("Sign in with GitHub ",-1)])])),e.user?(l(),d("a",$T," Anonymize a repository \u2192 ")):m("v-if",!0),t[1]||(t[1]=s("a",{class:"paper-link-arrow",target:"_self",href:"https://anonymous.4open.science/r/840c8c57-3c32-451e-bf12-0e20be300389/"},"See an anonymized repository \u2192",-1))]),t[5]||(t[5]=s("ul",{class:"paper-reassure"},[s("li",null,"Free and open source"),s("li",null,"Read-only: never writes to your repos"),s("li",null,"Expires on the date you set")],-1))]),t[6]||(t[6]=_e('
The anonymize form with a live README preview showing the redactions
',1))]),m(" Proof "),t[16]||(t[16]=_e('
Trusted by authors at
ICSEFSEOOPSLA
',1)),m(" Live stats "),s("section",FT,[t[7]||(t[7]=s("div",{class:"paper-stats-meta"},[s("div",{class:"paper-stats-meta-left"},"Live \xB7 last 60 days"),s("div",{class:"paper-stats-meta-right"},[s("span",{class:"paper-stats-dot","aria-hidden":"true"}),y(" updated daily ")])],-1)),s("div",LT,[(l(!0),d(x,null,re(e.cards,(o,r)=>(l(),d("div",{class:"paper-stat-card",key:o?.key},[s("div",UT,c(e.fmt?.bigNum(o?.total)),1),s("div",zT,c(o?.label),1),e.history[o?.key].bars?.length>1?(l(),d("svg",{key:0,class:"paper-stat-bars",preserveAspectRatio:"none","aria-hidden":"true",viewBox:"0 0 "+e.history[o?.key].viewW+" 36"},[(l(!0),d(x,null,re(e.history[o?.key].bars,(n,i)=>(l(),d("rect",{key:i,class:T({"is-latest":i===e.history[o.key].bars.length-1}),x:n?.x,y:n?.y,width:n?.w,height:n?.h},null,10,BT))),128))],8,HT)):m("v-if",!0),e.history[o?.key].bars?.length>1?(l(),d("div",GT," +"+c(e.fmt?.number(e.history[o?.key].deltaToday))+" today ",1)):m("v-if",!0)]))),128))])]),m(" Before / after "),t[17]||(t[17]=s("section",{class:"paper-section-head paper-wrap"},[s("div",null,[s("div",{class:"paper-eyebrow"},"Before \xB7 after"),s("h2",null,[y("The same repository, "),s("em",null,"minus you.")])]),s("p",null," Names, affiliations, emails, and any term you list are replaced across the README, source files, notebooks, and PDF links. Reviewers browse the real thing, not a zip. ")],-1)),t[18]||(t[18]=s("div",{class:"paper-preview paper-wrap","aria-label":"Before and after example"},[s("div",{class:"pane"},[s("div",{class:"pane-header"},[s("span",{class:"pane-label"},"Before \xB7 your repo"),s("span",{class:"pane-url"},"github.com/jane-smith/DeepLearnUtils")]),s("div",{class:"pane-body"},[s("div",null,[s("span",{class:"tok"},"#"),y(),s("strong",null,"DeepLearnUtils")]),s("div",null,"Developed by Jane Smith at MIT CSAIL."),s("div",null,"See Smith et\xA0al., \u201CAttention That Works,\u201D 2026."),s("div",null,"Contact: jane.smith@mit.edu")])]),s("div",{class:"pane"},[s("div",{class:"pane-header"},[s("span",{class:"pane-label"},"After \xB7 anonymous mirror"),s("span",{class:"pane-url"},"anonymous.4open.science/r/paper-7f2a")]),s("div",{class:"pane-body"},[s("div",null,[s("span",{class:"tok"},"#"),y(),s("strong",null,"DeepLearnUtils")]),s("div",null,[y("Developed by "),s("span",{class:"redact",role:"img","aria-label":"redacted author name"},"XXXX-1"),y(" at "),s("span",{class:"redact",role:"img","aria-label":"redacted affiliation"},"XXXX-2"),y(".")]),s("div",null,[y("See "),s("span",{class:"redact",role:"img","aria-label":"redacted author name"},"XXXX-1"),y(" et\xA0al., \u201CAttention That Works,\u201D 2026.")]),s("div",null,[y("Contact: "),s("span",{class:"redact",role:"img","aria-label":"redacted email address"},"XXXX-3")])])])],-1)),m(" What you get: one screenshot, three tabs "),t[19]||(t[19]=s("section",{class:"paper-section-head paper-wrap",id:"about"},[s("div",null,[s("div",{class:"paper-eyebrow"},"What you get"),s("h2",null,[y("Anonymize, review, "),s("em",null,"manage.")])]),s("p",null," Every mirror is read-only and passes through the same filter, from the README to a PDF's link targets. Monitor it, update it, or remove it the day the decision is out. ")],-1)),s("section",jT,[s("div",WT,[(l(!0),d(x,null,re(e.features,(o,r)=>(l(),d("div",{class:T(["paper-feature",{"is-on":e.feature===o?.key}]),key:o?.key},[s("button",{type:"button",class:"paper-feature-tab",role:"tab",onClick:n=>e.selectFeature(o.key),onKeydown:n=>e.featureKeydown(n,r),id:"feature-tab-"+o?.key,"aria-controls":"feature-panel-"+o?.key,"aria-selected":e.feature===o?.key,tabindex:e.feature===o?.key?0:-1},[s("span",YT,c(o?.num)+" \xB7 "+c(o?.eyebrow),1),s("span",xT,[y(c(o?.title)+" ",1),s("em",null,c(o?.accent),1)])],40,KT),s("div",JT,[s("span",QT,[y(c(o?.title)+" ",1),s("em",null,c(o?.accent),1)]),s("p",null,c(o?.text),1),s("a",{class:"paper-link-arrow",href:e.safeUrl(e.featureHref(o)),target:e.featureTarget(o)},c(o?.cta)+" \u2192",9,XT)])],2))),128))]),s("div",ZT,[(l(!0),d(x,null,re(e.features,(o,r)=>E((l(),d("div",{class:"paper-feature-panel",role:"tabpanel",key:o?.key,id:"feature-panel-"+o?.key,"aria-labelledby":"feature-tab-"+o?.key},[s("div",tO,[s("div",sO,[t[8]||(t[8]=s("span",{class:"dots"},[s("i"),s("i"),s("i")],-1)),s("span",nO,c(o?.url),1)]),s("div",{class:T("paper-crop paper-crop-"+o?.key)},[s("img",{loading:"lazy",width:"2880",height:"1800",src:e.safeUrl(o?.img),alt:o?.alt},null,8,oO)],2)])],8,eO)),[[H,e.feature===o?.key]])),128))])]),m(" FAQ teaser "),t[20]||(t[20]=_e('
Before you sign in

The questions that come up most.

Read the full FAQ \u2192
Why does GitHub ask for write access at sign-in?

GitHub's OAuth scopes have no read-only option for private repositories. Anonymous GitHub only ever reads your repositories; it never pushes, modifies, or deletes anything.

Which file formats are supported?

Source code with syntax highlighting, Markdown, Jupyter notebooks, PDFs, images, and GitHub Pages sites. Everything passes through the same redaction filter.

What happens when an anonymized repository expires?

You choose: the mirror is removed, or visitors are redirected to the original GitHub repository once the review is over.

',1)),s("footer",rO,[s("div",iO,[t[12]||(t[12]=s("div",{class:"paper-footer-brand"},[s("div",{class:"paper-footer-mark"},[y("Anonymous "),s("em",null,"GitHub")]),s("p",{class:"paper-footer-tag"}," A read-only, identity-stripped mirror of your repository, built for double-blind peer review. ")],-1)),s("div",aO,[t[9]||(t[9]=s("div",{class:"paper-footer-head"},"Product",-1)),t[10]||(t[10]=s("a",{href:"/anonymize"},"Anonymize",-1)),e.user?(l(),d("a",lO,"My work")):m("v-if",!0),e.user?(l(),d("a",dO,"Conferences")):m("v-if",!0),t[11]||(t[11]=s("a",{href:"/faq"},"FAQ",-1))]),t[13]||(t[13]=_e('',2))]),t[15]||(t[15]=s("div",{class:"paper-footer-rule"},null,-1)),s("div",uO,[s("span",null,"\xA9 "+c(e.year||2026)+" Anonymous GitHub \xB7 MIT licensed",1),t[14]||(t[14]=s("span",{class:"paper-footer-meta"},"Built for reviewers, by researchers.",-1))])])])}var cO={class:"paper-empty"},pO={class:"paper-empty-inner"},fO={key:0,class:"paper-eyebrow"},mO={key:1,class:"paper-eyebrow"},hO={key:2,class:"paper-empty-title"},vO=["textContent"];function sl(e,t){return l(),d("div",cO,[s("div",pO,[e.error?m("v-if",!0):(l(),d("div",fO,"Working")),e.error?(l(),d("div",mO,"Error")):m("v-if",!0),e.error?m("v-if",!0):(l(),d("h1",hO,[...t[0]||(t[0]=[y(" Loading",-1),s("span",{class:"dot-anim"},"\u2026",-1)])])),e.error?(l(),d("h1",{key:3,class:"paper-empty-title",textContent:c(e.fmt.translate(e.error))},null,8,vO)):m("v-if",!0)])])}var yO={class:"container paper-page paper-settings"},gO={class:"paper-crumbs"},bO={class:"here"},wO={class:"paper-page-title"},kO={class:"paper-settings-body"},_O={class:"paper-settings-toc"},EO={href:"#conf-billing"},CO={class:"form needs-validation paper-settings-main",name:"conference",novalidate:""},NO={id:"conf-basics",class:"paper-settings-section"},SO={class:"form-group"},DO={class:"invalid-feedback"},RO={class:"invalid-feedback"},TO={class:"form-group"},OO={class:"invalid-feedback"},AO={class:"form-group"},IO={class:"invalid-feedback"},VO={class:"invalid-feedback"},PO={id:"conf-window",class:"paper-settings-section"},qO={class:"form-grid-2"},MO={class:"form-group"},$O={class:"invalid-feedback"},FO={class:"invalid-feedback"},LO={class:"form-group"},UO={class:"invalid-feedback"},zO={class:"invalid-feedback"},HO={id:"conf-rendering",class:"paper-settings-section"},BO={class:"form-check"},GO={class:"form-check-input",type:"checkbox",id:"link",name:"link"},jO={class:"form-check"},WO={class:"form-check-input",type:"checkbox",id:"image",name:"image"},KO={class:"form-check"},YO={class:"form-check-input",type:"checkbox",id:"pdf",name:"pdf"},xO={class:"form-check"},JO={class:"form-check-input",type:"checkbox",id:"notebook",name:"notebook"},QO={id:"conf-features",class:"paper-settings-section"},XO={class:"form-check"},ZO={class:"form-check-input",type:"checkbox",id:"update",name:"update"},eA={class:"form-check"},tA={class:"form-check-input",type:"checkbox",id:"page",name:"page"},sA={id:"conf-plan",class:"paper-settings-section"},nA={class:"paper-plan-grid"},oA=["value"],rA=["textContent"],iA={class:"paper-plan-price"},aA=["innerHTML"],lA={key:0,id:"conf-billing",class:"paper-settings-section"},dA={class:"form-group"},uA={class:"form-group"},cA={class:"form-group"},pA={class:"form-group"},fA={class:"form-grid-3"},mA={class:"form-group"},hA={class:"form-group"},vA={class:"form-group"},yA={class:"form-group"},gA={class:"paper-settings-footer"},bA=["textContent"],wA=["textContent"];function nl(e,t){let o=ye("paper-scrollspy"),r=ye("field"),n=ye("form");return l(),d("div",yO,[s("div",gO,[t[1]||(t[1]=s("a",{href:"/dashboard"},"My work",-1)),t[2]||(t[2]=y(" \xA0/\xA0 ",-1)),t[3]||(t[3]=s("a",{href:"/conferences"},"Conferences",-1)),t[4]||(t[4]=y(" \xA0/\xA0 ",-1)),s("span",bO,c(e.editionMode?"Edit":"New"),1)]),s("h1",wO,[y(c(e.editionMode?"Edit":"Create a")+" ",1),t[5]||(t[5]=s("em",null,"conference",-1))]),t[42]||(t[42]=s("p",{class:"paper-page-lede"}," Give chairs access to every anonymization submitted to a venue, and lift author quotas during the review window. ",-1)),s("div",kO,[E((l(),d("aside",_O,[t[7]||(t[7]=s("div",{class:"paper-settings-toc-head"},"On this page",-1)),s("nav",null,[t[6]||(t[6]=_e('BasicsReview windowRendering defaultsFeaturesPlan',5)),E(s("a",EO,"Billing",512),[[H,e.plan?.pricePerRepo>0]])])])),[[o]]),E((l(),d("form",CO,[s("section",NO,[t[12]||(t[12]=s("div",{class:"paper-section-eyebrow"},"Basics",-1)),s("div",SO,[t[8]||(t[8]=s("label",{class:"paper-field-label",for:"name"},"Conference name",-1)),E(s("input",{type:"text",class:T(["form-control",{"is-invalid":e.conference?.name?.invalid&&(e.conference?.name?.touched||e.conference?.submitted)}]),name:"name",id:"name",required:"",placeholder:"e.g. International Conference on Software Engineering"},null,2),[[r,{state:e.viewState,set:i=>{e.options.name=i},value:e.options?.name,form:"conference",options:{}}]]),E(s("div",DO," The name of the conference is invalid. ",512),[[H,e.conference?.name?.errors?.invalid]]),E(s("div",RO," The name of the conference is required. ",512),[[H,e.conference?.name?.errors?.required]])]),s("div",TO,[t[9]||(t[9]=s("label",{class:"paper-field-label",for:"url"},"Website",-1)),E(s("input",{type:"url",class:T(["form-control",{"is-invalid":e.conference?.url?.invalid&&(e.conference?.url?.touched||e.conference?.submitted)}]),name:"url",id:"url",placeholder:"https://example.org"},null,2),[[r,{state:e.viewState,set:i=>{e.options.url=i},value:e.options?.url,form:"conference",options:{}}]]),E(s("div",OO," The url of the conference is invalid. ",512),[[H,e.conference?.url?.errors?.invalid]])]),s("div",AO,[t[10]||(t[10]=s("label",{class:"paper-field-label",for:"conferenceID"},"Conference ID",-1)),E(s("input",{type:"text",class:T(["form-control",{"is-invalid":e.conference?.conferenceID?.invalid&&(e.conference?.conferenceID?.touched||e.conference?.submitted)}]),name:"conferenceID",id:"conferenceID",required:"",pattern:"[a-zA-Z0-9\\-_]{3,10}",placeholder:"ICSE26"},null,2),[[r,{state:e.viewState,set:i=>{e.options.conferenceID=i},value:e.options?.conferenceID,form:"conference",options:{}}]]),t[11]||(t[11]=s("small",{class:"form-text text-muted"},[y("3\u201310 characters, letters, numbers, "),s("code",null,"-"),y(" and "),s("code",null,"_"),y(". Authors reference this when they anonymize.")],-1)),E(s("div",{class:"invalid-feedback"}," The conference ID '"+c(e.options?.conferenceID)+"' is already used. ",513),[[H,e.conference?.conferenceID?.errors?.used]]),E(s("div",IO," The conference ID is required. ",512),[[H,e.conference?.conferenceID?.errors?.required]]),E(s("div",VO," The format of the conference ID is incorrect ([a-zA-Z0-9-_]{3,10}). ",512),[[H,e.conference?.conferenceID?.errors?.pattern]])])]),s("section",PO,[t[17]||(t[17]=s("div",{class:"paper-section-eyebrow"},"Review window",-1)),s("div",qO,[s("div",MO,[t[13]||(t[13]=s("label",{class:"paper-field-label",for:"startDate"},"Start date",-1)),E(s("input",{type:"date",class:T(["form-control",{"is-invalid":e.conference?.startDate?.invalid&&(e.conference?.startDate?.touched||e.conference?.submitted)}]),name:"startDate",id:"startDate",required:""},null,2),[[r,{state:e.viewState,set:i=>{e.options.startDate=i},value:e.options?.startDate,form:"conference",options:{}}]]),t[14]||(t[14]=s("small",{class:"form-text text-muted"},"Beginning of the review process.",-1)),E(s("div",$O," Start date is required. ",512),[[H,e.conference?.startDate?.errors?.required]]),E(s("div",FO," Start date must be before end date. ",512),[[H,e.conference?.startDate?.errors?.invalid]])]),s("div",LO,[t[15]||(t[15]=s("label",{class:"paper-field-label",for:"endDate"},"End date",-1)),E(s("input",{type:"date",class:T(["form-control",{"is-invalid":e.conference?.endDate?.invalid&&(e.conference?.endDate?.touched||e.conference?.submitted)}]),name:"endDate",id:"endDate",required:""},null,2),[[r,{state:e.viewState,set:i=>{e.options.endDate=i},value:e.options?.endDate,form:"conference",options:{}}]]),t[16]||(t[16]=s("small",{class:"form-text text-muted"},"All repositories expire on this date.",-1)),E(s("div",UO," End date is required. ",512),[[H,e.conference?.endDate?.errors?.required]]),E(s("div",zO," End date is invalid. ",512),[[H,e.conference?.endDate?.errors?.invalid]])])])]),s("section",HO,[t[25]||(t[25]=s("div",{class:"paper-section-eyebrow"},"Rendering defaults",-1)),s("div",BO,[E(s("input",GO,null,512),[[r,{state:e.viewState,set:i=>{e.options.options.link=i},value:e.options?.options?.link,form:"conference",options:{}}]]),t[18]||(t[18]=s("label",{class:"form-check-label",for:"link"},"Keep links",-1)),t[19]||(t[19]=s("small",{class:"form-text text-muted"},"Keep or remove all links from text files.",-1))]),s("div",jO,[E(s("input",WO,null,512),[[r,{state:e.viewState,set:i=>{e.options.options.image=i},value:e.options?.options?.image,form:"conference",options:{}}]]),t[20]||(t[20]=s("label",{class:"form-check-label",for:"image"},"Display images",-1)),t[21]||(t[21]=s("small",{class:"form-text text-muted"},"Images are not anonymized.",-1))]),s("div",KO,[E(s("input",YO,null,512),[[r,{state:e.viewState,set:i=>{e.options.options.pdf=i},value:e.options?.options?.pdf,form:"conference",options:{}}]]),t[22]||(t[22]=s("label",{class:"form-check-label",for:"pdf"},"Display PDFs",-1)),t[23]||(t[23]=s("small",{class:"form-text text-muted"},"PDFs are not anonymized.",-1))]),s("div",xO,[E(s("input",JO,null,512),[[r,{state:e.viewState,set:i=>{e.options.options.notebook=i},value:e.options?.options?.notebook,form:"conference",options:{}}]]),t[24]||(t[24]=s("label",{class:"form-check-label",for:"notebook"},"Display Notebooks",-1))])]),s("section",QO,[t[30]||(t[30]=s("div",{class:"paper-section-eyebrow"},"Features",-1)),s("div",XO,[E(s("input",ZO,null,512),[[r,{state:e.viewState,set:i=>{e.options.options.update=i},value:e.options?.options?.update,form:"conference",options:{}}]]),t[26]||(t[26]=s("label",{class:"form-check-label",for:"update"},"Auto-update from GitHub",-1)),t[27]||(t[27]=s("small",{class:"form-text text-muted"},"Pull the latest commit automatically (hourly maximum).",-1))]),s("div",eA,[E(s("input",tA,null,512),[[r,{state:e.viewState,set:i=>{e.options.options.page=i},value:e.options?.options?.page,form:"conference",options:{}}]]),t[28]||(t[28]=s("label",{class:"form-check-label",for:"page"},"GitHub Pages",-1)),t[29]||(t[29]=s("small",{class:"form-text text-muted"},"Enable anonymized GitHub pages.",-1))])]),s("section",sA,[t[32]||(t[32]=s("div",{class:"paper-section-eyebrow"},"Plan",-1)),t[33]||(t[33]=s("p",{class:"paper-section-copy"},"Billed per repository per month, prorated by the day for as long as a repository stays in the conference.",-1)),s("div",nA,[(l(!0),d(x,null,re(e.plans,(i,a)=>(l(),d("label",{class:T(["paper-plan-card",{selected:e.options?.plan?.planID==i?.id}])},[E(s("input",{type:"radio",name:"planPicker",value:i?.id},null,8,oA),[[r,{state:e.viewState,set:u=>{e.options.plan.planID=u},value:e.options?.plan?.planID,form:"conference",options:{}}]]),s("div",{class:"paper-plan-head",textContent:c(i?.name)},null,8,rA),s("div",iA,[y(c(e.fmt?.number(i?.pricePerRepo))+"\u20AC ",1),t[31]||(t[31]=s("span",{class:"paper-plan-per"},"/ repo / month",-1))]),s("div",{class:"paper-plan-desc",innerHTML:e.sanitize(i?.description)},null,8,aA)],2))),256))])]),e.plan?.pricePerRepo>0?(l(),d("section",lA,[t[41]||(t[41]=s("div",{class:"paper-section-eyebrow"},"Billing",-1)),s("div",dA,[t[34]||(t[34]=s("label",{class:"paper-field-label",for:"billing_name"},"Name",-1)),E(s("input",{type:"text",class:T(["form-control",{"is-invalid":e.conference?.billing_name?.invalid&&(e.conference?.billing_name?.touched||e.conference?.submitted)}]),name:"billing_name",id:"billing_name",required:"",placeholder:"First & last name"},null,2),[[r,{state:e.viewState,set:i=>{e.options.billing.name=i},value:e.options?.billing?.name,form:"conference",options:{}}]])]),s("div",uA,[t[35]||(t[35]=s("label",{class:"paper-field-label",for:"email"},"Email",-1)),E(s("input",{type:"email",class:T(["form-control",{"is-invalid":e.conference?.email?.invalid&&(e.conference?.email?.touched||e.conference?.submitted)}]),name:"email",id:"email",required:"",placeholder:"you@example.org"},null,2),[[r,{state:e.viewState,set:i=>{e.options.billing.email=i},value:e.options?.billing?.email,form:"conference",options:{}}]])]),s("div",cA,[t[36]||(t[36]=s("label",{class:"paper-field-label",for:"inputAddress"},"Address",-1)),E(s("input",{type:"text",class:T(["form-control",{"is-invalid":e.conference?.inputAddress?.invalid&&(e.conference?.inputAddress?.touched||e.conference?.submitted)}]),name:"inputAddress",id:"inputAddress",required:"",placeholder:"1234 Main St"},null,2),[[r,{state:e.viewState,set:i=>{e.options.billing.address=i},value:e.options?.billing?.address,form:"conference",options:{}}]])]),s("div",pA,[E(s("input",{type:"text",class:T(["form-control",{"is-invalid":e.conference?.inputAddress2?.invalid&&(e.conference?.inputAddress2?.touched||e.conference?.submitted)}]),name:"inputAddress2",id:"inputAddress2",placeholder:"Apartment, studio, or floor"},null,2),[[r,{state:e.viewState,set:i=>{e.options.billing.address2=i},value:e.options?.billing?.address2,form:"conference",options:{}}]])]),s("div",fA,[s("div",mA,[t[37]||(t[37]=s("label",{class:"paper-field-label",for:"city"},"City",-1)),E(s("input",{type:"text",class:T(["form-control",{"is-invalid":e.conference?.city?.invalid&&(e.conference?.city?.touched||e.conference?.submitted)}]),name:"city",id:"city",required:"",placeholder:"City"},null,2),[[r,{state:e.viewState,set:i=>{e.options.billing.city=i},value:e.options?.billing?.city,form:"conference",options:{}}]])]),s("div",hA,[t[38]||(t[38]=s("label",{class:"paper-field-label",for:"country"},"Country",-1)),E(s("input",{type:"text",class:T(["form-control",{"is-invalid":e.conference?.country?.invalid&&(e.conference?.country?.touched||e.conference?.submitted)}]),name:"country",id:"country",required:"",placeholder:"Country"},null,2),[[r,{state:e.viewState,set:i=>{e.options.billing.country=i},value:e.options?.billing?.country,form:"conference",options:{}}]])]),s("div",vA,[t[39]||(t[39]=s("label",{class:"paper-field-label",for:"zip"},"Zip",-1)),E(s("input",{type:"text",class:T(["form-control",{"is-invalid":e.conference?.zip?.invalid&&(e.conference?.zip?.touched||e.conference?.submitted)}]),name:"zip",id:"zip",required:"",placeholder:"Zip"},null,2),[[r,{state:e.viewState,set:i=>{e.options.billing.zip=i},value:e.options?.billing?.zip,form:"conference",options:{}}]])])]),s("div",yA,[t[40]||(t[40]=s("label",{class:"paper-field-label",for:"vat"},"VAT number",-1)),E(s("input",{type:"text",class:T(["form-control",{"is-invalid":e.conference?.vat?.invalid&&(e.conference?.vat?.touched||e.conference?.submitted)}]),name:"vat",id:"vat",placeholder:"VAT Number"},null,2),[[r,{state:e.viewState,set:i=>{e.options.billing.vat=i},value:e.options?.billing?.vat,form:"conference",options:{}}]])])])):m("v-if",!0),s("div",gA,[e.error?(l(),d("div",{key:0,class:"alert alert-danger",role:"alert",textContent:c(e.error)},null,8,bA)):m("v-if",!0),e.message?(l(),d("div",{key:1,class:"alert alert-success",role:"alert",textContent:c(e.message)},null,8,wA)):m("v-if",!0),s("button",{id:"send",type:"submit",class:"btn btn-ink",onClick:t[0]||(t[0]=ge(i=>e.submitForm(i,()=>{e.submit(i)}),["prevent"]))},c(e.editionMode?"Update":"Create")+" conference ",1)])])),[[n,e.viewState]])])])}var kA={key:0},_A=["innerHTML"],EA={key:3},CA=["src"],NA=["src"],SA={key:7},DA={controls:"controls"},RA=["src"],TA={key:8},OA={key:9,class:"file-error container d-flex h-100"},AA={class:"paper-ratelimit-card m-auto",style:{"max-width":"520px"}},IA={class:"paper-error-msg"},VA={key:10,class:"file-error container d-flex h-100"},PA=["textContent"],qA={key:11,class:"file-error container d-flex h-100"},MA={key:12,class:"file-error container d-flex h-100"},$A={key:13,class:"file-error container d-flex h-100"},FA={key:14,class:"file-error container d-flex h-100"},LA={class:"paper-empty-title m-auto"},UA=["href"];function ol(e,t){let o=Qe("html-doc"),r=Qe("pdfviewer"),n=Qe("notebook"),i=ye("code-editor");return l(),d(x,null,[e.type=="text"?E((l(),d("div",kA,null,512)),[[i,{content:e.content,options:e.aceOption}]]):m("v-if",!0),e.type=="html"?(l(),d("div",{key:1,class:"file-content markdown-body",innerHTML:e.sanitize(e.content)},null,8,_A)):m("v-if",!0),e.type=="html-doc"&&!e.showSource&&e.content!=null?(l(),gs(o,{key:2,content:e.content,"base-url":e.fileBaseUrl,"allow-scripts":e.allowScripts},null,8,["content","base-url","allow-scripts"])):m("v-if",!0),(e.type=="code"||e.type=="html-doc"&&e.showSource)&&e.content!=null?E((l(),d("div",EA,null,512)),[[i,{content:e.content,options:e.aceOption}]]):m("v-if",!0),e.type=="image"?(l(),d("img",{key:4,class:"image-content",src:e.safeUrl(e.url)},null,8,CA)):m("v-if",!0),e.type=="media"?(l(),d("iframe",{key:5,class:"h-100 overflow-auto w-100 b-0",src:e.safeUrl(e.url)},null,8,NA)):m("v-if",!0),e.type=="pdf"?(l(),gs(r,{key:6,src:e.safeUrl(e.url)},null,8,["src"])):m("v-if",!0),e.type=="audio"?(l(),d("div",SA,[s("audio",DA,[s("source",{src:e.safeUrl(e.url)},null,8,RA)])])):m("v-if",!0),e.type=="IPython"?(l(),d("div",TA,[Re(n,{file:e.url,content:e.content},null,8,["file","content"])])):m("v-if",!0),e.type=="rate_limited"?(l(),d("div",OA,[s("div",AA,[t[2]||(t[2]=s("div",{class:"paper-ratelimit-head"},[s("i",{class:"fas fa-hourglass-half"}),s("div",null,[s("div",{class:"paper-error-eyebrow"},"Temporarily paused"),s("div",{class:"paper-error-title"},"GitHub API rate limit reached")])],-1)),s("p",IA,[t[0]||(t[0]=y("This repository will be available in ",-1)),s("strong",null,c(e.rateLimitCountdown),1),t[1]||(t[1]=y(". The page will reload automatically.",-1))])])])):m("v-if",!0),e.type=="error"?(l(),d("div",VA,[s("h1",{class:"paper-empty-title m-auto",textContent:c(e.fmt.translate("ERRORS."+e.content))},null,8,PA)])):m("v-if",!0),e.type=="loading"&&!e.error?(l(),d("div",qA,[...t[3]||(t[3]=[s("h1",{class:"paper-empty-title m-auto"},"Loading\u2026",-1)])])):m("v-if",!0),e.type=="empty"?(l(),d("div",MA,[...t[4]||(t[4]=[s("h1",{class:"paper-empty-title m-auto"},[y("Empty "),s("em",null,"repository"),y(".")],-1)])])):m("v-if",!0),e.content==null&&e.type!="empty"?(l(),d("div",$A,[...t[5]||(t[5]=[s("h1",{class:"paper-empty-title m-auto"},[y("Empty "),s("em",null,"file"),y(".")],-1)])])):m("v-if",!0),e.type=="binary"?(l(),d("div",FA,[s("h1",LA,[t[6]||(t[6]=y("Unsupported ",-1)),t[7]||(t[7]=s("em",null,"binary file",-1)),t[8]||(t[8]=y(". You can ",-1)),s("a",{target:"_blank",href:e.safeUrl(e.url+"&download=true")},"download it",8,UA),t[9]||(t[9]=y(".",-1))])])):m("v-if",!0)],64)}var zA={class:"container page dashboard-page paper-page"},HA={class:"row"},BA={class:"w-100"},GA={class:"w-100","aria-label":"Pull Requests","accept-charset":"UTF-8"},jA={class:"d-flex flex-column flex-md-row align-items-md-center",style:{gap:"8px"}},WA={class:"flex-grow-1"},KA={type:"search",id:"search",class:"form-control","aria-label":"Find a pull request...",placeholder:"Find a pull request...",autocomplete:"off"},YA={class:"d-flex flex-wrap",style:{gap:"6px"}},xA={class:"dropdown"},JA={class:"dropdown-menu","aria-labelledby":"dropdownSort"},QA={class:"form-check dropdown-item"},XA={class:"form-check-input",type:"radio",name:"sort",id:"sortFullName",value:"fullName"},ZA={class:"form-check dropdown-item"},eI={class:"form-check-input",type:"radio",name:"sort",id:"sortAnonymizeDate",value:"-anonymizeDate"},tI={class:"form-check dropdown-item"},sI={class:"form-check-input",type:"radio",name:"sort",id:"sortStatus",value:"-status"},nI={class:"form-check dropdown-item"},oI={class:"form-check-input",type:"radio",name:"sort",id:"sortLastView",value:"-lastView"},rI={class:"form-check dropdown-item"},iI={class:"form-check-input",type:"radio",name:"sort",id:"sortPageView",value:"-pageView"},aI={class:"dropdown"},lI={class:"dropdown-menu","aria-labelledby":"dropdownStatus"},dI={class:"form-check dropdown-item"},uI={class:"form-check-input",type:"checkbox",name:"sort",id:"statusReady",value:"ready"},cI={class:"form-check dropdown-item"},pI={class:"form-check-input",type:"checkbox",name:"sort",id:"statusExpired",value:"expired"},fI={class:"form-check dropdown-item"},mI={class:"form-check-input",type:"checkbox",name:"sort",id:"statusRemoved",value:"removed"},hI={class:"d-flex flex-wrap mt-2",style:{gap:"6px"}},vI={class:"filter-chip"},yI=["onClick"],gI={class:"repo-list w-100"},bI={class:"repo-list-item-content"},wI={class:"repo-list-item-main"},kI={class:"repo-list-item-header"},_I=["textContent","href"],EI=["textContent"],CI=["textContent"],NI={class:"repo-source"},SI=["href"],DI={class:"repo-date"},RI={class:"repo-meta"},TI={key:0,title:"Conference"},OI=["title"],AI=["title"],II=["title"],VI={key:1},PI={class:"repo-list-item-actions"},qI={class:"dropdown"},MI={class:"dropdown-menu dropdown-menu-right"},$I=["href"],FI=["onClick"],LI=["onClick"],UI=["onClick"],zI=["href"],HI={key:0,class:"repo-list-empty"};function rl(e,t){let o=ye("field"),r=ye("form");return l(),d("div",zA,[s("div",HA,[s("div",BA,[t[12]||(t[12]=_e('
My work \xA0/\xA0 Pull requests

Anonymized pull requests

Track PR mirrors you\u2019ve created and their reviewer traffic.

',2)),m(" Search + filters row "),E((l(),d("form",GA,[s("div",jA,[s("div",WA,[E(s("input",KA,null,512),[[o,{state:e.viewState,set:n=>{e.search=n},value:e.search,form:null,options:{}}]])]),s("div",YA,[s("div",xA,[t[6]||(t[6]=s("button",{class:"btn btn-sm dropdown-toggle",type:"button",id:"dropdownSort","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"}," Sort ",-1)),s("div",JA,[t[5]||(t[5]=s("h6",{class:"dropdown-header"},"Select order",-1)),s("div",QA,[E(s("input",XA,null,512),[[o,{state:e.viewState,set:n=>{e.orderBy=n},value:e.orderBy,form:null,options:{}}]]),t[0]||(t[0]=s("label",{class:"form-check-label",for:"sortFullName"},"Pull Request",-1))]),s("div",ZA,[E(s("input",eI,null,512),[[o,{state:e.viewState,set:n=>{e.orderBy=n},value:e.orderBy,form:null,options:{}}]]),t[1]||(t[1]=s("label",{class:"form-check-label",for:"sortAnonymizeDate"},"Anonymize Date",-1))]),s("div",tI,[E(s("input",sI,null,512),[[o,{state:e.viewState,set:n=>{e.orderBy=n},value:e.orderBy,form:null,options:{}}]]),t[2]||(t[2]=s("label",{class:"form-check-label",for:"sortStatus"},"Status",-1))]),s("div",nI,[E(s("input",oI,null,512),[[o,{state:e.viewState,set:n=>{e.orderBy=n},value:e.orderBy,form:null,options:{}}]]),t[3]||(t[3]=s("label",{class:"form-check-label",for:"sortLastView"},"Last View",-1))]),s("div",rI,[E(s("input",iI,null,512),[[o,{state:e.viewState,set:n=>{e.orderBy=n},value:e.orderBy,form:null,options:{}}]]),t[4]||(t[4]=s("label",{class:"form-check-label",for:"sortPageView"},"Page View",-1))])])]),s("div",aI,[t[11]||(t[11]=s("button",{class:"btn btn-sm dropdown-toggle",type:"button",id:"dropdownStatus","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"}," Status ",-1)),s("div",lI,[t[10]||(t[10]=s("h6",{class:"dropdown-header"},"Select status",-1)),s("div",dI,[E(s("input",uI,null,512),[[o,{state:e.viewState,set:n=>{e.filters.status.ready=n},value:e.filters?.status?.ready,form:null,options:{}}]]),t[7]||(t[7]=s("label",{class:"form-check-label",for:"statusReady"},"Ready",-1))]),s("div",cI,[E(s("input",pI,null,512),[[o,{state:e.viewState,set:n=>{e.filters.status.expired=n},value:e.filters?.status?.expired,form:null,options:{}}]]),t[8]||(t[8]=s("label",{class:"form-check-label",for:"statusExpired"},"Expired",-1))]),s("div",fI,[E(s("input",mI,null,512),[[o,{state:e.viewState,set:n=>{e.filters.status.removed=n},value:e.filters?.status?.removed,form:null,options:{}}]]),t[9]||(t[9]=s("label",{class:"form-check-label",for:"statusRemoved"},"Removed",-1))])])])])])])),[[r,e.viewState]]),m(" Active filter chips "),E(s("div",hI,[(l(!0),d(x,null,re(e.filters?.status,(n,i,a)=>E((l(),d("span",vI,[y(c(e.fmt?.title(i))+" ",1),s("button",{type:"button",class:"filter-chip-close","aria-label":"Remove filter",onClick:u=>{e.filters.status[i]=!0}}," \xD7 ",8,yI)],512)),[[H,!n]])),256))],512),[[H,e.filters?.status?.ready===!1||e.filters?.status?.expired===!1||e.filters?.status?.removed===!1]])]),m(" Pull request list "),s("ul",gI,[(l(!0),d(x,null,re(e.filteredPullRequests,(n,i)=>(l(),d("li",{class:T(["repo-list-item",{"repo-inactive":n?.status=="expired"||n?.status=="removed"||n?.status=="error"}])},[s("div",bI,[s("div",wI,[s("div",kI,[s("a",{class:"repo-name",textContent:c(n?.pullRequestId),href:e.safeUrl("/pr/"+n?.pullRequestId)},null,8,_I),s("span",{class:T(["status-badge",{"status-removed":n?.status=="removed"||n?.status=="expired"||n?.status=="removing"||n?.status=="expiring","status-preparing":n?.status=="preparing"||n?.status=="download","status-ready":n?.status=="ready","status-error":n?.status=="error"}])},[s("span",{textContent:c(e.fmt?.title(n?.status))},null,8,EI),n?.status=="error"?(l(),d("span",{key:0,textContent:c(": "+n?.statusMessage)},null,8,CI)):m("v-if",!0)],2)]),s("div",NI,[s("span",null,[t[13]||(t[13]=s("i",{class:"fab fa-github","aria-hidden":"true"},null,-1)),s("a",{href:e.safeUrl("https://github.com/"+n?.source?.repositoryFullName+"/pull/"+n?.source?.pullRequestId)},c(n?.source?.repositoryFullName)+"#"+c(n?.source?.pullRequestId),9,SI)]),s("span",{class:T(["status-badge",{"status-ready":n?.merged,"status-removed":n?.state=="open","status-error":n?.state=="closed"&&!n?.merged}]),style:{"font-size":"10px"}},c(e.fmt?.title(n?.merged?"merged":n?.state)),3),s("span",DI,"anonymized "+c(e.fmt?.humanTime(n?.anonymizeDate)),1)])]),s("div",RI,[n?.conference?(l(),d("span",TI,[t[14]||(t[14]=s("i",{class:"fas fa-chalkboard-teacher"},null,-1)),y(" "+c(n?.conference),1)])):m("v-if",!0),s("span",{"data-toggle":"tooltip","data-placement":"bottom",title:"Terms: "+n?.options?.terms?.join(", ")},[t[15]||(t[15]=s("i",{class:"fas fa-shield-alt"},null,-1)),y(" "+c(e.fmt?.number(n?.options?.terms?.length)),1)],8,OI),s("span",{"data-toggle":"tooltip","data-placement":"bottom",title:"Views: "+e.fmt?.number(n?.pageView)},[t[16]||(t[16]=s("i",{class:"far fa-eye"},null,-1)),y(" "+c(e.fmt?.number(n?.pageView)),1)],8,AI),s("span",{"data-toggle":"tooltip","data-placement":"bottom",title:"Last view: "+e.fmt?.date(n?.lastView)},[t[17]||(t[17]=s("i",{class:"far fa-calendar-alt"},null,-1)),y(" "+c(e.fmt?.humanTime(n?.lastView)),1)],8,II),n?.options?.expirationMode!="never"&&n?.status=="ready"?(l(),d("span",VI,[t[18]||(t[18]=s("i",{class:"far fa-clock"},null,-1)),y(" Expire: "+c(e.fmt?.humanTime(n?.options?.expirationDate)),1)])):m("v-if",!0)])]),s("div",PI,[s("div",qI,[t[24]||(t[24]=s("button",{class:"btn btn-sm dropdown-toggle",type:"button","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"}," Actions ",-1)),s("div",MI,[s("a",{class:"dropdown-item",href:e.safeUrl("/pull-request-anonymize/"+n?.pullRequestId)},[...t[19]||(t[19]=[s("i",{class:"far fa-edit","aria-hidden":"true"},null,-1),y(" Edit ",-1)])],8,$I),E(s("a",{class:"dropdown-item",href:"#",onClick:ge(a=>e.updatePullRequest(n),["prevent"])},[...t[20]||(t[20]=[s("i",{class:"fas fa-sync"},null,-1),y(" Force update ",-1)])],8,FI),[[H,n?.status=="ready"||n?.status=="error"]]),E(s("a",{class:"dropdown-item",href:"#",onClick:ge(a=>e.updatePullRequest(n),["prevent"])},[...t[21]||(t[21]=[s("i",{class:"fas fa-check-circle"},null,-1),y(" Enable ",-1)])],8,LI),[[H,n?.status=="removed"]]),E(s("a",{class:"dropdown-item",href:"#",onClick:ge(a=>e.removePullRequest(n),["prevent"])},[...t[22]||(t[22]=[s("i",{class:"fas fa-trash-alt"},null,-1),y(" Remove ",-1)])],8,UI),[[H,n?.status=="ready"]]),s("a",{class:"dropdown-item",href:e.safeUrl("/pr/"+n?.pullRequestId+"/")},[...t[23]||(t[23]=[s("i",{class:"fa fa-eye","aria-hidden":"true"},null,-1),y(" View PR ",-1)])],8,zI)])])])],2))),256)),e.filteredPullRequests?.length==0?(l(),d("li",HI,[...t[25]||(t[25]=[s("i",{class:"fas fa-inbox"},null,-1),s("span",null,"No pull requests to display.",-1)])])):m("v-if",!0)])])])}var BI={class:"container paper-page paper-settings"},GI={class:"paper-settings-body"},jI={class:"paper-settings-toc"},WI={class:"paper-settings-main"},KI={id:"settings-quota",class:"paper-settings-section"},YI={key:0,class:"quota-row"},xI={class:"quota-item"},JI={class:"quota-header"},QI={class:"quota-label"},XI={key:0,class:"quota-value"},ZI={key:0},eV={key:1,class:"quota-unlimited-tag"},tV={key:1,class:"quota-value"},sV={key:0},nV={key:1,class:"quota-unlimited-tag"},oV=["aria-label","aria-valuenow","aria-valuemax","aria-valuetext"],rV={key:1,class:"quota-row","aria-hidden":"true"},iV={class:"quota-item"},aV={id:"settings-terms",class:"paper-settings-section"},lV={class:"form-group"},dV={class:"form-control",id:"terms",name:"terms",rows:"4",placeholder:`Jane Smith + label names the service and the tooltip says who to contact. `),t[12]||(t[12]=s("li",{class:"nav-item d-none d-lg-block"},[s("a",{class:"nav-link",target:"_blank",rel:"noopener",href:"https://github.com/tdurieux/anonymous_github/issues/new?template=issue_report.yml",title:"Report a problem with the Anonymous GitHub service. Questions about an anonymized repository or paper go to its authors.","data-offset":"30"},[s("i",{class:"fas fa-bug d-lg-none mr-1","aria-hidden":"true"}),y("Report a bug ")])],-1)),e.isDarkMode?m("v-if",!0):(l(),d("li",IT,[s("a",{class:"nav-link nav-icon",href:"#",title:"Switch to dark mode","aria-label":"Switch to dark mode",role:"button",onClick:t[0]||(t[0]=be(o=>{e.darkMode(!0)},["prevent"]))},[...t[7]||(t[7]=[s("i",{class:"fas fa-moon","aria-hidden":"true"},null,-1)])])])),e.isDarkMode?(l(),d("li",VT,[s("a",{class:"nav-link nav-icon",href:"#",title:"Switch to light mode","aria-label":"Switch to light mode",role:"button",onClick:t[1]||(t[1]=be(o=>{e.darkMode(!1)},["prevent"]))},[...t[8]||(t[8]=[s("i",{class:"fas fa-sun","aria-hidden":"true"},null,-1)])])])):m("v-if",!0),e.user?m("v-if",!0):(l(),d("li",PT,[...t[9]||(t[9]=[s("a",{class:"nav-link btn-signin",target:"_self",href:"/github/login","data-offset":"30"},[s("i",{class:"fab fa-github mr-1"}),y(" Sign in ")],-1)])])),e.user?(l(),d("li",qT,[s("a",MT,[e.user?.photo?(l(),d("img",{key:0,width:"22",height:"22",class:"rounded-circle",src:e.safeUrl(e.user?.photo)},null,8,$T)):m("v-if",!0),s("span",FT,c(e.user?.username),1)]),s("div",LT,[s("h6",UT,"Signed in as @"+c(e.user?.username),1),t[10]||(t[10]=Ee('SettingsDefaults, quotas, accountClaim an anonymizationAttach an existing mirror to your accountReport a bugAbout this service, not a paperSource codeSign out',7))])])):m("v-if",!0)])])],2),e.generalMessage?(l(),d("div",{key:0,class:"navbar shadow generalMessage",innerHTML:e.sanitize(e.generalMessage)},null,8,zT)):m("v-if",!0)],64)}var HT={class:"paper-landing"},BT={class:"paper-hero"},GT={class:"paper-hero-copy"},jT={class:"paper-cta-row"},WT={key:0,href:"/github/login",target:"_self",class:"btn-hero"},KT={key:1,href:"/anonymize",class:"btn-hero"},YT={class:"paper-stats paper-wrap",id:"metrics","aria-label":"Usage over the last 60 days"},xT={class:"paper-stats-grid"},JT={class:"paper-stat-value"},QT={class:"paper-stat-label"},XT=["viewBox"],ZT=["x","y","width","height"],eO={key:1,class:"paper-stat-delta"},tO={class:"paper-features paper-wrap","aria-label":"Product features"},sO={class:"paper-features-list",role:"tablist","aria-label":"Features","aria-orientation":"vertical"},nO=["onClick","onKeydown","id","aria-controls","aria-selected","tabindex"],oO={class:"paper-eyebrow"},rO={class:"paper-feature-title"},iO={class:"paper-feature-more"},aO={class:"paper-feature-title paper-feature-title-m","aria-hidden":"true"},lO=["href","target"],dO={class:"paper-features-stage"},uO=["id","aria-labelledby"],cO={class:"paper-frame"},pO={class:"paper-frame-bar","aria-hidden":"true"},fO={class:"url"},mO=["src","alt"],hO={class:"paper-footer"},vO={class:"paper-footer-inner"},yO={class:"paper-footer-col"},gO={key:0,href:"/dashboard"},bO={key:1,href:"/conferences"},wO={class:"paper-footer-foot"};function ll(e,t){return l(),d("div",HT,[m(" Hero: copy on the left, the product on the right "),s("section",BT,[s("div",GT,[t[2]||(t[2]=s("div",{class:"paper-eyebrow"},"For double-blind peer review",-1)),t[3]||(t[3]=s("h1",{class:"hero-title"},[y(" Share the code,"),s("br"),s("span",{class:"accent"},"not the author.")],-1)),t[4]||(t[4]=s("p",{class:"hero-subtitle"}," Anonymous GitHub makes a read-only mirror of your repository, pull request, or gist with every trace of identity removed, so you can attach a link to your submission without breaking anonymity. ",-1)),s("div",jT,[e.user?m("v-if",!0):(l(),d("a",WT,[...t[0]||(t[0]=[s("i",{class:"fab fa-github mr-2","aria-hidden":"true"},null,-1),y("Sign in with GitHub ",-1)])])),e.user?(l(),d("a",KT," Anonymize a repository \u2192 ")):m("v-if",!0),t[1]||(t[1]=s("a",{class:"paper-link-arrow",target:"_self",href:"https://anonymous.4open.science/r/840c8c57-3c32-451e-bf12-0e20be300389/"},"See an anonymized repository \u2192",-1))]),t[5]||(t[5]=s("ul",{class:"paper-reassure"},[s("li",null,"Free and open source"),s("li",null,"Read-only: never writes to your repos"),s("li",null,"Expires on the date you set")],-1))]),t[6]||(t[6]=Ee('
The anonymize form with a live README preview showing the redactions
',1))]),m(" Proof "),t[16]||(t[16]=Ee('
Trusted by authors at
ICSEFSEOOPSLA
',1)),m(" Live stats "),s("section",YT,[t[7]||(t[7]=s("div",{class:"paper-stats-meta"},[s("div",{class:"paper-stats-meta-left"},"Live \xB7 last 60 days"),s("div",{class:"paper-stats-meta-right"},[s("span",{class:"paper-stats-dot","aria-hidden":"true"}),y(" updated daily ")])],-1)),s("div",xT,[(l(!0),d(x,null,re(e.cards,(o,r)=>(l(),d("div",{class:"paper-stat-card",key:o?.key},[s("div",JT,c(e.fmt?.bigNum(o?.total)),1),s("div",QT,c(o?.label),1),e.history[o?.key].bars?.length>1?(l(),d("svg",{key:0,class:"paper-stat-bars",preserveAspectRatio:"none","aria-hidden":"true",viewBox:"0 0 "+e.history[o?.key].viewW+" 36"},[(l(!0),d(x,null,re(e.history[o?.key].bars,(n,i)=>(l(),d("rect",{key:i,class:T({"is-latest":i===e.history[o.key].bars.length-1}),x:n?.x,y:n?.y,width:n?.w,height:n?.h},null,10,ZT))),128))],8,XT)):m("v-if",!0),e.history[o?.key].bars?.length>1?(l(),d("div",eO," +"+c(e.fmt?.number(e.history[o?.key].deltaToday))+" today ",1)):m("v-if",!0)]))),128))])]),m(" Before / after "),t[17]||(t[17]=s("section",{class:"paper-section-head paper-wrap"},[s("div",null,[s("div",{class:"paper-eyebrow"},"Before \xB7 after"),s("h2",null,[y("The same repository, "),s("em",null,"minus you.")])]),s("p",null," Names, affiliations, emails, and any term you list are replaced across the README, source files, notebooks, and PDF links. Reviewers browse the real thing, not a zip. ")],-1)),t[18]||(t[18]=s("div",{class:"paper-preview paper-wrap","aria-label":"Before and after example"},[s("div",{class:"pane"},[s("div",{class:"pane-header"},[s("span",{class:"pane-label"},"Before \xB7 your repo"),s("span",{class:"pane-url"},"github.com/jane-smith/DeepLearnUtils")]),s("div",{class:"pane-body"},[s("div",null,[s("span",{class:"tok"},"#"),y(),s("strong",null,"DeepLearnUtils")]),s("div",null,"Developed by Jane Smith at MIT CSAIL."),s("div",null,"See Smith et\xA0al., \u201CAttention That Works,\u201D 2026."),s("div",null,"Contact: jane.smith@mit.edu")])]),s("div",{class:"pane"},[s("div",{class:"pane-header"},[s("span",{class:"pane-label"},"After \xB7 anonymous mirror"),s("span",{class:"pane-url"},"anonymous.4open.science/r/paper-7f2a")]),s("div",{class:"pane-body"},[s("div",null,[s("span",{class:"tok"},"#"),y(),s("strong",null,"DeepLearnUtils")]),s("div",null,[y("Developed by "),s("span",{class:"redact",role:"img","aria-label":"redacted author name"},"XXXX-1"),y(" at "),s("span",{class:"redact",role:"img","aria-label":"redacted affiliation"},"XXXX-2"),y(".")]),s("div",null,[y("See "),s("span",{class:"redact",role:"img","aria-label":"redacted author name"},"XXXX-1"),y(" et\xA0al., \u201CAttention That Works,\u201D 2026.")]),s("div",null,[y("Contact: "),s("span",{class:"redact",role:"img","aria-label":"redacted email address"},"XXXX-3")])])])],-1)),m(" What you get: one screenshot, three tabs "),t[19]||(t[19]=s("section",{class:"paper-section-head paper-wrap",id:"about"},[s("div",null,[s("div",{class:"paper-eyebrow"},"What you get"),s("h2",null,[y("Anonymize, review, "),s("em",null,"manage.")])]),s("p",null," Every mirror is read-only and passes through the same filter, from the README to a PDF's link targets. Monitor it, update it, or remove it the day the decision is out. ")],-1)),s("section",tO,[s("div",sO,[(l(!0),d(x,null,re(e.features,(o,r)=>(l(),d("div",{class:T(["paper-feature",{"is-on":e.feature===o?.key}]),key:o?.key},[s("button",{type:"button",class:"paper-feature-tab",role:"tab",onClick:n=>e.selectFeature(o.key),onKeydown:n=>e.featureKeydown(n,r),id:"feature-tab-"+o?.key,"aria-controls":"feature-panel-"+o?.key,"aria-selected":e.feature===o?.key,tabindex:e.feature===o?.key?0:-1},[s("span",oO,c(o?.num)+" \xB7 "+c(o?.eyebrow),1),s("span",rO,[y(c(o?.title)+" ",1),s("em",null,c(o?.accent),1)])],40,nO),s("div",iO,[s("span",aO,[y(c(o?.title)+" ",1),s("em",null,c(o?.accent),1)]),s("p",null,c(o?.text),1),s("a",{class:"paper-link-arrow",href:e.safeUrl(e.featureHref(o)),target:e.featureTarget(o)},c(o?.cta)+" \u2192",9,lO)])],2))),128))]),s("div",dO,[(l(!0),d(x,null,re(e.features,(o,r)=>E((l(),d("div",{class:"paper-feature-panel",role:"tabpanel",key:o?.key,id:"feature-panel-"+o?.key,"aria-labelledby":"feature-tab-"+o?.key},[s("div",cO,[s("div",pO,[t[8]||(t[8]=s("span",{class:"dots"},[s("i"),s("i"),s("i")],-1)),s("span",fO,c(o?.url),1)]),s("div",{class:T("paper-crop paper-crop-"+o?.key)},[s("img",{loading:"lazy",width:"2880",height:"1800",src:e.safeUrl(o?.img),alt:o?.alt},null,8,mO)],2)])],8,uO)),[[H,e.feature===o?.key]])),128))])]),m(" FAQ teaser "),t[20]||(t[20]=Ee('
Before you sign in

The questions that come up most.

Read the full FAQ \u2192
Why does GitHub ask for write access at sign-in?

GitHub's OAuth scopes have no read-only option for private repositories. Anonymous GitHub only ever reads your repositories; it never pushes, modifies, or deletes anything.

Which file formats are supported?

Source code with syntax highlighting, Markdown, Jupyter notebooks, PDFs, images, and GitHub Pages sites. Everything passes through the same redaction filter.

What happens when an anonymized repository expires?

You choose: the mirror is removed, or visitors are redirected to the original GitHub repository once the review is over.

',1)),s("footer",hO,[s("div",vO,[t[12]||(t[12]=s("div",{class:"paper-footer-brand"},[s("div",{class:"paper-footer-mark"},[y("Anonymous "),s("em",null,"GitHub")]),s("p",{class:"paper-footer-tag"}," A read-only, identity-stripped mirror of your repository, built for double-blind peer review. ")],-1)),s("div",yO,[t[9]||(t[9]=s("div",{class:"paper-footer-head"},"Product",-1)),t[10]||(t[10]=s("a",{href:"/anonymize"},"Anonymize",-1)),e.user?(l(),d("a",gO,"My work")):m("v-if",!0),e.user?(l(),d("a",bO,"Conferences")):m("v-if",!0),t[11]||(t[11]=s("a",{href:"/faq"},"FAQ",-1))]),t[13]||(t[13]=Ee('',2))]),t[15]||(t[15]=s("div",{class:"paper-footer-rule"},null,-1)),s("div",wO,[s("span",null,"\xA9 "+c(e.year||2026)+" Anonymous GitHub \xB7 MIT licensed",1),t[14]||(t[14]=s("span",{class:"paper-footer-meta"},"Built for reviewers, by researchers.",-1))])])])}var kO={class:"paper-empty"},_O={class:"paper-empty-inner"},EO={key:0,class:"paper-eyebrow"},CO={key:1,class:"paper-eyebrow"},NO={key:2,class:"paper-empty-title"},SO=["textContent"];function dl(e,t){return l(),d("div",kO,[s("div",_O,[e.error?m("v-if",!0):(l(),d("div",EO,"Working")),e.error?(l(),d("div",CO,"Error")):m("v-if",!0),e.error?m("v-if",!0):(l(),d("h1",NO,[...t[0]||(t[0]=[y(" Loading",-1),s("span",{class:"dot-anim"},"\u2026",-1)])])),e.error?(l(),d("h1",{key:3,class:"paper-empty-title",textContent:c(e.fmt.translate(e.error))},null,8,SO)):m("v-if",!0)])])}var DO={class:"container paper-page paper-settings"},RO={class:"paper-crumbs"},TO={class:"here"},OO={class:"paper-page-title"},AO={class:"paper-settings-body"},IO={class:"paper-settings-toc"},VO={href:"#conf-billing"},PO={class:"form needs-validation paper-settings-main",name:"conference",novalidate:""},qO={id:"conf-basics",class:"paper-settings-section"},MO={class:"form-group"},$O={class:"invalid-feedback"},FO={class:"invalid-feedback"},LO={class:"form-group"},UO={class:"invalid-feedback"},zO={class:"form-group"},HO={class:"invalid-feedback"},BO={class:"invalid-feedback"},GO={id:"conf-window",class:"paper-settings-section"},jO={class:"form-grid-2"},WO={class:"form-group"},KO={class:"invalid-feedback"},YO={class:"invalid-feedback"},xO={class:"form-group"},JO={class:"invalid-feedback"},QO={class:"invalid-feedback"},XO={id:"conf-rendering",class:"paper-settings-section"},ZO={class:"form-check"},eA={class:"form-check-input",type:"checkbox",id:"link",name:"link"},tA={class:"form-check"},sA={class:"form-check-input",type:"checkbox",id:"image",name:"image"},nA={class:"form-check"},oA={class:"form-check-input",type:"checkbox",id:"pdf",name:"pdf"},rA={class:"form-check"},iA={class:"form-check-input",type:"checkbox",id:"notebook",name:"notebook"},aA={id:"conf-features",class:"paper-settings-section"},lA={class:"form-check"},dA={class:"form-check-input",type:"checkbox",id:"update",name:"update"},uA={class:"form-check"},cA={class:"form-check-input",type:"checkbox",id:"page",name:"page"},pA={id:"conf-plan",class:"paper-settings-section"},fA={class:"paper-plan-grid"},mA=["value"],hA=["textContent"],vA={class:"paper-plan-price"},yA=["innerHTML"],gA={key:0,id:"conf-billing",class:"paper-settings-section"},bA={class:"form-group"},wA={class:"form-group"},kA={class:"form-group"},_A={class:"form-group"},EA={class:"form-grid-3"},CA={class:"form-group"},NA={class:"form-group"},SA={class:"form-group"},DA={class:"form-group"},RA={class:"paper-settings-footer"},TA=["textContent"],OA=["textContent"];function ul(e,t){let o=ge("paper-scrollspy"),r=ge("field"),n=ge("form");return l(),d("div",DO,[s("div",RO,[t[1]||(t[1]=s("a",{href:"/dashboard"},"My work",-1)),t[2]||(t[2]=y(" \xA0/\xA0 ",-1)),t[3]||(t[3]=s("a",{href:"/conferences"},"Conferences",-1)),t[4]||(t[4]=y(" \xA0/\xA0 ",-1)),s("span",TO,c(e.editionMode?"Edit":"New"),1)]),s("h1",OO,[y(c(e.editionMode?"Edit":"Create a")+" ",1),t[5]||(t[5]=s("em",null,"conference",-1))]),t[42]||(t[42]=s("p",{class:"paper-page-lede"}," Give chairs access to every anonymization submitted to a venue, and lift author quotas during the review window. ",-1)),s("div",AO,[E((l(),d("aside",IO,[t[7]||(t[7]=s("div",{class:"paper-settings-toc-head"},"On this page",-1)),s("nav",null,[t[6]||(t[6]=Ee('BasicsReview windowRendering defaultsFeaturesPlan',5)),E(s("a",VO,"Billing",512),[[H,e.plan?.pricePerRepo>0]])])])),[[o]]),E((l(),d("form",PO,[s("section",qO,[t[12]||(t[12]=s("div",{class:"paper-section-eyebrow"},"Basics",-1)),s("div",MO,[t[8]||(t[8]=s("label",{class:"paper-field-label",for:"name"},"Conference name",-1)),E(s("input",{type:"text",class:T(["form-control",{"is-invalid":e.conference?.name?.invalid&&(e.conference?.name?.touched||e.conference?.submitted)}]),name:"name",id:"name",required:"",placeholder:"e.g. International Conference on Software Engineering"},null,2),[[r,{state:e.viewState,set:i=>{e.options.name=i},value:e.options?.name,form:"conference",options:{}}]]),E(s("div",$O," The name of the conference is invalid. ",512),[[H,e.conference?.name?.errors?.invalid]]),E(s("div",FO," The name of the conference is required. ",512),[[H,e.conference?.name?.errors?.required]])]),s("div",LO,[t[9]||(t[9]=s("label",{class:"paper-field-label",for:"url"},"Website",-1)),E(s("input",{type:"url",class:T(["form-control",{"is-invalid":e.conference?.url?.invalid&&(e.conference?.url?.touched||e.conference?.submitted)}]),name:"url",id:"url",placeholder:"https://example.org"},null,2),[[r,{state:e.viewState,set:i=>{e.options.url=i},value:e.options?.url,form:"conference",options:{}}]]),E(s("div",UO," The url of the conference is invalid. ",512),[[H,e.conference?.url?.errors?.invalid]])]),s("div",zO,[t[10]||(t[10]=s("label",{class:"paper-field-label",for:"conferenceID"},"Conference ID",-1)),E(s("input",{type:"text",class:T(["form-control",{"is-invalid":e.conference?.conferenceID?.invalid&&(e.conference?.conferenceID?.touched||e.conference?.submitted)}]),name:"conferenceID",id:"conferenceID",required:"",pattern:"[a-zA-Z0-9\\-_]{3,10}",placeholder:"ICSE26"},null,2),[[r,{state:e.viewState,set:i=>{e.options.conferenceID=i},value:e.options?.conferenceID,form:"conference",options:{}}]]),t[11]||(t[11]=s("small",{class:"form-text text-muted"},[y("3\u201310 characters, letters, numbers, "),s("code",null,"-"),y(" and "),s("code",null,"_"),y(". Authors reference this when they anonymize.")],-1)),E(s("div",{class:"invalid-feedback"}," The conference ID '"+c(e.options?.conferenceID)+"' is already used. ",513),[[H,e.conference?.conferenceID?.errors?.used]]),E(s("div",HO," The conference ID is required. ",512),[[H,e.conference?.conferenceID?.errors?.required]]),E(s("div",BO," The format of the conference ID is incorrect ([a-zA-Z0-9-_]{3,10}). ",512),[[H,e.conference?.conferenceID?.errors?.pattern]])])]),s("section",GO,[t[17]||(t[17]=s("div",{class:"paper-section-eyebrow"},"Review window",-1)),s("div",jO,[s("div",WO,[t[13]||(t[13]=s("label",{class:"paper-field-label",for:"startDate"},"Start date",-1)),E(s("input",{type:"date",class:T(["form-control",{"is-invalid":e.conference?.startDate?.invalid&&(e.conference?.startDate?.touched||e.conference?.submitted)}]),name:"startDate",id:"startDate",required:""},null,2),[[r,{state:e.viewState,set:i=>{e.options.startDate=i},value:e.options?.startDate,form:"conference",options:{}}]]),t[14]||(t[14]=s("small",{class:"form-text text-muted"},"Beginning of the review process.",-1)),E(s("div",KO," Start date is required. ",512),[[H,e.conference?.startDate?.errors?.required]]),E(s("div",YO," Start date must be before end date. ",512),[[H,e.conference?.startDate?.errors?.invalid]])]),s("div",xO,[t[15]||(t[15]=s("label",{class:"paper-field-label",for:"endDate"},"End date",-1)),E(s("input",{type:"date",class:T(["form-control",{"is-invalid":e.conference?.endDate?.invalid&&(e.conference?.endDate?.touched||e.conference?.submitted)}]),name:"endDate",id:"endDate",required:""},null,2),[[r,{state:e.viewState,set:i=>{e.options.endDate=i},value:e.options?.endDate,form:"conference",options:{}}]]),t[16]||(t[16]=s("small",{class:"form-text text-muted"},"All repositories expire on this date.",-1)),E(s("div",JO," End date is required. ",512),[[H,e.conference?.endDate?.errors?.required]]),E(s("div",QO," End date is invalid. ",512),[[H,e.conference?.endDate?.errors?.invalid]])])])]),s("section",XO,[t[25]||(t[25]=s("div",{class:"paper-section-eyebrow"},"Rendering defaults",-1)),s("div",ZO,[E(s("input",eA,null,512),[[r,{state:e.viewState,set:i=>{e.options.options.link=i},value:e.options?.options?.link,form:"conference",options:{}}]]),t[18]||(t[18]=s("label",{class:"form-check-label",for:"link"},"Keep links",-1)),t[19]||(t[19]=s("small",{class:"form-text text-muted"},"Keep or remove all links from text files.",-1))]),s("div",tA,[E(s("input",sA,null,512),[[r,{state:e.viewState,set:i=>{e.options.options.image=i},value:e.options?.options?.image,form:"conference",options:{}}]]),t[20]||(t[20]=s("label",{class:"form-check-label",for:"image"},"Display images",-1)),t[21]||(t[21]=s("small",{class:"form-text text-muted"},"Images are not anonymized.",-1))]),s("div",nA,[E(s("input",oA,null,512),[[r,{state:e.viewState,set:i=>{e.options.options.pdf=i},value:e.options?.options?.pdf,form:"conference",options:{}}]]),t[22]||(t[22]=s("label",{class:"form-check-label",for:"pdf"},"Display PDFs",-1)),t[23]||(t[23]=s("small",{class:"form-text text-muted"},"PDFs are not anonymized.",-1))]),s("div",rA,[E(s("input",iA,null,512),[[r,{state:e.viewState,set:i=>{e.options.options.notebook=i},value:e.options?.options?.notebook,form:"conference",options:{}}]]),t[24]||(t[24]=s("label",{class:"form-check-label",for:"notebook"},"Display Notebooks",-1))])]),s("section",aA,[t[30]||(t[30]=s("div",{class:"paper-section-eyebrow"},"Features",-1)),s("div",lA,[E(s("input",dA,null,512),[[r,{state:e.viewState,set:i=>{e.options.options.update=i},value:e.options?.options?.update,form:"conference",options:{}}]]),t[26]||(t[26]=s("label",{class:"form-check-label",for:"update"},"Auto-update from GitHub",-1)),t[27]||(t[27]=s("small",{class:"form-text text-muted"},"Pull the latest commit automatically (hourly maximum).",-1))]),s("div",uA,[E(s("input",cA,null,512),[[r,{state:e.viewState,set:i=>{e.options.options.page=i},value:e.options?.options?.page,form:"conference",options:{}}]]),t[28]||(t[28]=s("label",{class:"form-check-label",for:"page"},"GitHub Pages",-1)),t[29]||(t[29]=s("small",{class:"form-text text-muted"},"Enable anonymized GitHub pages.",-1))])]),s("section",pA,[t[32]||(t[32]=s("div",{class:"paper-section-eyebrow"},"Plan",-1)),t[33]||(t[33]=s("p",{class:"paper-section-copy"},"Billed per repository per month, prorated by the day for as long as a repository stays in the conference.",-1)),s("div",fA,[(l(!0),d(x,null,re(e.plans,(i,a)=>(l(),d("label",{class:T(["paper-plan-card",{selected:e.options?.plan?.planID==i?.id}])},[E(s("input",{type:"radio",name:"planPicker",value:i?.id},null,8,mA),[[r,{state:e.viewState,set:u=>{e.options.plan.planID=u},value:e.options?.plan?.planID,form:"conference",options:{}}]]),s("div",{class:"paper-plan-head",textContent:c(i?.name)},null,8,hA),s("div",vA,[y(c(e.fmt?.number(i?.pricePerRepo))+"\u20AC ",1),t[31]||(t[31]=s("span",{class:"paper-plan-per"},"/ repo / month",-1))]),s("div",{class:"paper-plan-desc",innerHTML:e.sanitize(i?.description)},null,8,yA)],2))),256))])]),e.plan?.pricePerRepo>0?(l(),d("section",gA,[t[41]||(t[41]=s("div",{class:"paper-section-eyebrow"},"Billing",-1)),s("div",bA,[t[34]||(t[34]=s("label",{class:"paper-field-label",for:"billing_name"},"Name",-1)),E(s("input",{type:"text",class:T(["form-control",{"is-invalid":e.conference?.billing_name?.invalid&&(e.conference?.billing_name?.touched||e.conference?.submitted)}]),name:"billing_name",id:"billing_name",required:"",placeholder:"First & last name"},null,2),[[r,{state:e.viewState,set:i=>{e.options.billing.name=i},value:e.options?.billing?.name,form:"conference",options:{}}]])]),s("div",wA,[t[35]||(t[35]=s("label",{class:"paper-field-label",for:"email"},"Email",-1)),E(s("input",{type:"email",class:T(["form-control",{"is-invalid":e.conference?.email?.invalid&&(e.conference?.email?.touched||e.conference?.submitted)}]),name:"email",id:"email",required:"",placeholder:"you@example.org"},null,2),[[r,{state:e.viewState,set:i=>{e.options.billing.email=i},value:e.options?.billing?.email,form:"conference",options:{}}]])]),s("div",kA,[t[36]||(t[36]=s("label",{class:"paper-field-label",for:"inputAddress"},"Address",-1)),E(s("input",{type:"text",class:T(["form-control",{"is-invalid":e.conference?.inputAddress?.invalid&&(e.conference?.inputAddress?.touched||e.conference?.submitted)}]),name:"inputAddress",id:"inputAddress",required:"",placeholder:"1234 Main St"},null,2),[[r,{state:e.viewState,set:i=>{e.options.billing.address=i},value:e.options?.billing?.address,form:"conference",options:{}}]])]),s("div",_A,[E(s("input",{type:"text",class:T(["form-control",{"is-invalid":e.conference?.inputAddress2?.invalid&&(e.conference?.inputAddress2?.touched||e.conference?.submitted)}]),name:"inputAddress2",id:"inputAddress2",placeholder:"Apartment, studio, or floor"},null,2),[[r,{state:e.viewState,set:i=>{e.options.billing.address2=i},value:e.options?.billing?.address2,form:"conference",options:{}}]])]),s("div",EA,[s("div",CA,[t[37]||(t[37]=s("label",{class:"paper-field-label",for:"city"},"City",-1)),E(s("input",{type:"text",class:T(["form-control",{"is-invalid":e.conference?.city?.invalid&&(e.conference?.city?.touched||e.conference?.submitted)}]),name:"city",id:"city",required:"",placeholder:"City"},null,2),[[r,{state:e.viewState,set:i=>{e.options.billing.city=i},value:e.options?.billing?.city,form:"conference",options:{}}]])]),s("div",NA,[t[38]||(t[38]=s("label",{class:"paper-field-label",for:"country"},"Country",-1)),E(s("input",{type:"text",class:T(["form-control",{"is-invalid":e.conference?.country?.invalid&&(e.conference?.country?.touched||e.conference?.submitted)}]),name:"country",id:"country",required:"",placeholder:"Country"},null,2),[[r,{state:e.viewState,set:i=>{e.options.billing.country=i},value:e.options?.billing?.country,form:"conference",options:{}}]])]),s("div",SA,[t[39]||(t[39]=s("label",{class:"paper-field-label",for:"zip"},"Zip",-1)),E(s("input",{type:"text",class:T(["form-control",{"is-invalid":e.conference?.zip?.invalid&&(e.conference?.zip?.touched||e.conference?.submitted)}]),name:"zip",id:"zip",required:"",placeholder:"Zip"},null,2),[[r,{state:e.viewState,set:i=>{e.options.billing.zip=i},value:e.options?.billing?.zip,form:"conference",options:{}}]])])]),s("div",DA,[t[40]||(t[40]=s("label",{class:"paper-field-label",for:"vat"},"VAT number",-1)),E(s("input",{type:"text",class:T(["form-control",{"is-invalid":e.conference?.vat?.invalid&&(e.conference?.vat?.touched||e.conference?.submitted)}]),name:"vat",id:"vat",placeholder:"VAT Number"},null,2),[[r,{state:e.viewState,set:i=>{e.options.billing.vat=i},value:e.options?.billing?.vat,form:"conference",options:{}}]])])])):m("v-if",!0),s("div",RA,[e.error?(l(),d("div",{key:0,class:"alert alert-danger",role:"alert",textContent:c(e.error)},null,8,TA)):m("v-if",!0),e.message?(l(),d("div",{key:1,class:"alert alert-success",role:"alert",textContent:c(e.message)},null,8,OA)):m("v-if",!0),s("button",{id:"send",type:"submit",class:"btn btn-ink",onClick:t[0]||(t[0]=be(i=>e.submitForm(i,()=>{e.submit(i)}),["prevent"]))},c(e.editionMode?"Update":"Create")+" conference ",1)])])),[[n,e.viewState]])])])}var AA={key:0},IA=["innerHTML"],VA={key:3},PA=["src"],qA=["src"],MA={key:7},$A={controls:"controls"},FA=["src"],LA={key:8},UA={key:9,class:"file-error container d-flex h-100"},zA={class:"paper-ratelimit-card m-auto",style:{"max-width":"520px"}},HA={class:"paper-error-msg"},BA={key:10,class:"file-error container d-flex h-100"},GA=["textContent"],jA={key:11,class:"file-error container d-flex h-100"},WA={key:12,class:"file-error container d-flex h-100"},KA={key:13,class:"file-error container d-flex h-100"},YA={key:14,class:"file-error container d-flex h-100"},xA={class:"paper-empty-title m-auto"},JA=["href"];function cl(e,t){let o=et("html-doc"),r=et("pdfviewer"),n=et("notebook"),i=ge("code-editor");return l(),d(x,null,[e.type=="text"?E((l(),d("div",AA,null,512)),[[i,{content:e.content,options:e.aceOption}]]):m("v-if",!0),e.type=="html"?(l(),d("div",{key:1,class:"file-content markdown-body",innerHTML:e.sanitize(e.content)},null,8,IA)):m("v-if",!0),e.type=="html-doc"&&!e.showSource&&e.content!=null?(l(),ks(o,{key:2,content:e.content,"base-url":e.fileBaseUrl,"allow-scripts":e.allowScripts},null,8,["content","base-url","allow-scripts"])):m("v-if",!0),(e.type=="code"||e.type=="html-doc"&&e.showSource)&&e.content!=null?E((l(),d("div",VA,null,512)),[[i,{content:e.content,options:e.aceOption}]]):m("v-if",!0),e.type=="image"?(l(),d("img",{key:4,class:"image-content",src:e.safeUrl(e.url)},null,8,PA)):m("v-if",!0),e.type=="media"?(l(),d("iframe",{key:5,class:"h-100 overflow-auto w-100 b-0",src:e.safeUrl(e.url)},null,8,qA)):m("v-if",!0),e.type=="pdf"?(l(),ks(r,{key:6,src:e.safeUrl(e.url)},null,8,["src"])):m("v-if",!0),e.type=="audio"?(l(),d("div",MA,[s("audio",$A,[s("source",{src:e.safeUrl(e.url)},null,8,FA)])])):m("v-if",!0),e.type=="IPython"?(l(),d("div",LA,[Se(n,{file:e.url,content:e.content},null,8,["file","content"])])):m("v-if",!0),e.type=="rate_limited"?(l(),d("div",UA,[s("div",zA,[t[2]||(t[2]=s("div",{class:"paper-ratelimit-head"},[s("i",{class:"fas fa-hourglass-half"}),s("div",null,[s("div",{class:"paper-error-eyebrow"},"Temporarily paused"),s("div",{class:"paper-error-title"},"GitHub API rate limit reached")])],-1)),s("p",HA,[t[0]||(t[0]=y("This repository will be available in ",-1)),s("strong",null,c(e.rateLimitCountdown),1),t[1]||(t[1]=y(". The page will reload automatically.",-1))])])])):m("v-if",!0),e.type=="error"?(l(),d("div",BA,[s("h1",{class:"paper-empty-title m-auto",textContent:c(e.fmt.translate("ERRORS."+e.content))},null,8,GA)])):m("v-if",!0),e.type=="loading"&&!e.error?(l(),d("div",jA,[...t[3]||(t[3]=[s("h1",{class:"paper-empty-title m-auto"},"Loading\u2026",-1)])])):m("v-if",!0),e.type=="empty"?(l(),d("div",WA,[...t[4]||(t[4]=[s("h1",{class:"paper-empty-title m-auto"},[y("Empty "),s("em",null,"repository"),y(".")],-1)])])):m("v-if",!0),e.content==null&&e.type!="empty"?(l(),d("div",KA,[...t[5]||(t[5]=[s("h1",{class:"paper-empty-title m-auto"},[y("Empty "),s("em",null,"file"),y(".")],-1)])])):m("v-if",!0),e.type=="binary"?(l(),d("div",YA,[s("h1",xA,[t[6]||(t[6]=y("Unsupported ",-1)),t[7]||(t[7]=s("em",null,"binary file",-1)),t[8]||(t[8]=y(". You can ",-1)),s("a",{target:"_blank",href:e.safeUrl(e.url+"&download=true")},"download it",8,JA),t[9]||(t[9]=y(".",-1))])])):m("v-if",!0)],64)}var QA={class:"container page dashboard-page paper-page"},XA={class:"row"},ZA={class:"w-100"},eI={class:"w-100","aria-label":"Pull Requests","accept-charset":"UTF-8"},tI={class:"d-flex flex-column flex-md-row align-items-md-center",style:{gap:"8px"}},sI={class:"flex-grow-1"},nI={type:"search",id:"search",class:"form-control","aria-label":"Find a pull request...",placeholder:"Find a pull request...",autocomplete:"off"},oI={class:"d-flex flex-wrap",style:{gap:"6px"}},rI={class:"dropdown"},iI={class:"dropdown-menu","aria-labelledby":"dropdownSort"},aI={class:"form-check dropdown-item"},lI={class:"form-check-input",type:"radio",name:"sort",id:"sortFullName",value:"fullName"},dI={class:"form-check dropdown-item"},uI={class:"form-check-input",type:"radio",name:"sort",id:"sortAnonymizeDate",value:"-anonymizeDate"},cI={class:"form-check dropdown-item"},pI={class:"form-check-input",type:"radio",name:"sort",id:"sortStatus",value:"-status"},fI={class:"form-check dropdown-item"},mI={class:"form-check-input",type:"radio",name:"sort",id:"sortLastView",value:"-lastView"},hI={class:"form-check dropdown-item"},vI={class:"form-check-input",type:"radio",name:"sort",id:"sortPageView",value:"-pageView"},yI={class:"dropdown"},gI={class:"dropdown-menu","aria-labelledby":"dropdownStatus"},bI={class:"form-check dropdown-item"},wI={class:"form-check-input",type:"checkbox",name:"sort",id:"statusReady",value:"ready"},kI={class:"form-check dropdown-item"},_I={class:"form-check-input",type:"checkbox",name:"sort",id:"statusExpired",value:"expired"},EI={class:"form-check dropdown-item"},CI={class:"form-check-input",type:"checkbox",name:"sort",id:"statusRemoved",value:"removed"},NI={class:"d-flex flex-wrap mt-2",style:{gap:"6px"}},SI={class:"filter-chip"},DI=["onClick"],RI={class:"repo-list w-100"},TI={class:"repo-list-item-content"},OI={class:"repo-list-item-main"},AI={class:"repo-list-item-header"},II=["textContent","href"],VI=["textContent"],PI=["textContent"],qI={class:"repo-source"},MI=["href"],$I={class:"repo-date"},FI={class:"repo-meta"},LI={key:0,title:"Conference"},UI=["title"],zI=["title"],HI=["title"],BI={key:1},GI={class:"repo-list-item-actions"},jI={class:"dropdown"},WI={class:"dropdown-menu dropdown-menu-right"},KI=["href"],YI=["onClick"],xI=["onClick"],JI=["onClick"],QI=["href"],XI={key:0,class:"repo-list-empty"};function pl(e,t){let o=ge("field"),r=ge("form");return l(),d("div",QA,[s("div",XA,[s("div",ZA,[t[12]||(t[12]=Ee('
My work \xA0/\xA0 Pull requests

Anonymized pull requests

Track PR mirrors you\u2019ve created and their reviewer traffic.

',2)),m(" Search + filters row "),E((l(),d("form",eI,[s("div",tI,[s("div",sI,[E(s("input",nI,null,512),[[o,{state:e.viewState,set:n=>{e.search=n},value:e.search,form:null,options:{}}]])]),s("div",oI,[s("div",rI,[t[6]||(t[6]=s("button",{class:"btn btn-sm dropdown-toggle",type:"button",id:"dropdownSort","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"}," Sort ",-1)),s("div",iI,[t[5]||(t[5]=s("h6",{class:"dropdown-header"},"Select order",-1)),s("div",aI,[E(s("input",lI,null,512),[[o,{state:e.viewState,set:n=>{e.orderBy=n},value:e.orderBy,form:null,options:{}}]]),t[0]||(t[0]=s("label",{class:"form-check-label",for:"sortFullName"},"Pull Request",-1))]),s("div",dI,[E(s("input",uI,null,512),[[o,{state:e.viewState,set:n=>{e.orderBy=n},value:e.orderBy,form:null,options:{}}]]),t[1]||(t[1]=s("label",{class:"form-check-label",for:"sortAnonymizeDate"},"Anonymize Date",-1))]),s("div",cI,[E(s("input",pI,null,512),[[o,{state:e.viewState,set:n=>{e.orderBy=n},value:e.orderBy,form:null,options:{}}]]),t[2]||(t[2]=s("label",{class:"form-check-label",for:"sortStatus"},"Status",-1))]),s("div",fI,[E(s("input",mI,null,512),[[o,{state:e.viewState,set:n=>{e.orderBy=n},value:e.orderBy,form:null,options:{}}]]),t[3]||(t[3]=s("label",{class:"form-check-label",for:"sortLastView"},"Last View",-1))]),s("div",hI,[E(s("input",vI,null,512),[[o,{state:e.viewState,set:n=>{e.orderBy=n},value:e.orderBy,form:null,options:{}}]]),t[4]||(t[4]=s("label",{class:"form-check-label",for:"sortPageView"},"Page View",-1))])])]),s("div",yI,[t[11]||(t[11]=s("button",{class:"btn btn-sm dropdown-toggle",type:"button",id:"dropdownStatus","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"}," Status ",-1)),s("div",gI,[t[10]||(t[10]=s("h6",{class:"dropdown-header"},"Select status",-1)),s("div",bI,[E(s("input",wI,null,512),[[o,{state:e.viewState,set:n=>{e.filters.status.ready=n},value:e.filters?.status?.ready,form:null,options:{}}]]),t[7]||(t[7]=s("label",{class:"form-check-label",for:"statusReady"},"Ready",-1))]),s("div",kI,[E(s("input",_I,null,512),[[o,{state:e.viewState,set:n=>{e.filters.status.expired=n},value:e.filters?.status?.expired,form:null,options:{}}]]),t[8]||(t[8]=s("label",{class:"form-check-label",for:"statusExpired"},"Expired",-1))]),s("div",EI,[E(s("input",CI,null,512),[[o,{state:e.viewState,set:n=>{e.filters.status.removed=n},value:e.filters?.status?.removed,form:null,options:{}}]]),t[9]||(t[9]=s("label",{class:"form-check-label",for:"statusRemoved"},"Removed",-1))])])])])])])),[[r,e.viewState]]),m(" Active filter chips "),E(s("div",NI,[(l(!0),d(x,null,re(e.filters?.status,(n,i,a)=>E((l(),d("span",SI,[y(c(e.fmt?.title(i))+" ",1),s("button",{type:"button",class:"filter-chip-close","aria-label":"Remove filter",onClick:u=>{e.filters.status[i]=!0}}," \xD7 ",8,DI)],512)),[[H,!n]])),256))],512),[[H,e.filters?.status?.ready===!1||e.filters?.status?.expired===!1||e.filters?.status?.removed===!1]])]),m(" Pull request list "),s("ul",RI,[(l(!0),d(x,null,re(e.filteredPullRequests,(n,i)=>(l(),d("li",{class:T(["repo-list-item",{"repo-inactive":n?.status=="expired"||n?.status=="removed"||n?.status=="error"}])},[s("div",TI,[s("div",OI,[s("div",AI,[s("a",{class:"repo-name",textContent:c(n?.pullRequestId),href:e.safeUrl("/pr/"+n?.pullRequestId)},null,8,II),s("span",{class:T(["status-badge",{"status-removed":n?.status=="removed"||n?.status=="expired"||n?.status=="removing"||n?.status=="expiring","status-preparing":n?.status=="preparing"||n?.status=="download","status-ready":n?.status=="ready","status-error":n?.status=="error"}])},[s("span",{textContent:c(e.fmt?.title(n?.status))},null,8,VI),n?.status=="error"?(l(),d("span",{key:0,textContent:c(": "+n?.statusMessage)},null,8,PI)):m("v-if",!0)],2)]),s("div",qI,[s("span",null,[t[13]||(t[13]=s("i",{class:"fab fa-github","aria-hidden":"true"},null,-1)),s("a",{href:e.safeUrl("https://github.com/"+n?.source?.repositoryFullName+"/pull/"+n?.source?.pullRequestId)},c(n?.source?.repositoryFullName)+"#"+c(n?.source?.pullRequestId),9,MI)]),s("span",{class:T(["status-badge",{"status-ready":n?.merged,"status-removed":n?.state=="open","status-error":n?.state=="closed"&&!n?.merged}]),style:{"font-size":"10px"}},c(e.fmt?.title(n?.merged?"merged":n?.state)),3),s("span",$I,"anonymized "+c(e.fmt?.humanTime(n?.anonymizeDate)),1)])]),s("div",FI,[n?.conference?(l(),d("span",LI,[t[14]||(t[14]=s("i",{class:"fas fa-chalkboard-teacher"},null,-1)),y(" "+c(n?.conference),1)])):m("v-if",!0),s("span",{"data-toggle":"tooltip","data-placement":"bottom",title:"Terms: "+n?.options?.terms?.join(", ")},[t[15]||(t[15]=s("i",{class:"fas fa-shield-alt"},null,-1)),y(" "+c(e.fmt?.number(n?.options?.terms?.length)),1)],8,UI),s("span",{"data-toggle":"tooltip","data-placement":"bottom",title:"Views: "+e.fmt?.number(n?.pageView)},[t[16]||(t[16]=s("i",{class:"far fa-eye"},null,-1)),y(" "+c(e.fmt?.number(n?.pageView)),1)],8,zI),s("span",{"data-toggle":"tooltip","data-placement":"bottom",title:"Last view: "+e.fmt?.date(n?.lastView)},[t[17]||(t[17]=s("i",{class:"far fa-calendar-alt"},null,-1)),y(" "+c(e.fmt?.humanTime(n?.lastView)),1)],8,HI),n?.options?.expirationMode!="never"&&n?.status=="ready"?(l(),d("span",BI,[t[18]||(t[18]=s("i",{class:"far fa-clock"},null,-1)),y(" Expire: "+c(e.fmt?.humanTime(n?.options?.expirationDate)),1)])):m("v-if",!0)])]),s("div",GI,[s("div",jI,[t[24]||(t[24]=s("button",{class:"btn btn-sm dropdown-toggle",type:"button","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"}," Actions ",-1)),s("div",WI,[s("a",{class:"dropdown-item",href:e.safeUrl("/pull-request-anonymize/"+n?.pullRequestId)},[...t[19]||(t[19]=[s("i",{class:"far fa-edit","aria-hidden":"true"},null,-1),y(" Edit ",-1)])],8,KI),E(s("a",{class:"dropdown-item",href:"#",onClick:be(a=>e.updatePullRequest(n),["prevent"])},[...t[20]||(t[20]=[s("i",{class:"fas fa-sync"},null,-1),y(" Force update ",-1)])],8,YI),[[H,n?.status=="ready"||n?.status=="error"]]),E(s("a",{class:"dropdown-item",href:"#",onClick:be(a=>e.updatePullRequest(n),["prevent"])},[...t[21]||(t[21]=[s("i",{class:"fas fa-check-circle"},null,-1),y(" Enable ",-1)])],8,xI),[[H,n?.status=="removed"]]),E(s("a",{class:"dropdown-item",href:"#",onClick:be(a=>e.removePullRequest(n),["prevent"])},[...t[22]||(t[22]=[s("i",{class:"fas fa-trash-alt"},null,-1),y(" Remove ",-1)])],8,JI),[[H,n?.status=="ready"]]),s("a",{class:"dropdown-item",href:e.safeUrl("/pr/"+n?.pullRequestId+"/")},[...t[23]||(t[23]=[s("i",{class:"fa fa-eye","aria-hidden":"true"},null,-1),y(" View PR ",-1)])],8,QI)])])])],2))),256)),e.filteredPullRequests?.length==0?(l(),d("li",XI,[...t[25]||(t[25]=[s("i",{class:"fas fa-inbox"},null,-1),s("span",null,"No pull requests to display.",-1)])])):m("v-if",!0)])])])}var ZI={class:"container paper-page paper-settings"},eV={class:"paper-settings-body"},tV={class:"paper-settings-toc"},sV={class:"paper-settings-main"},nV={id:"settings-quota",class:"paper-settings-section"},oV={key:0,class:"quota-row"},rV={class:"quota-item"},iV={class:"quota-header"},aV={class:"quota-label"},lV={key:0,class:"quota-value"},dV={key:0},uV={key:1,class:"quota-unlimited-tag"},cV={key:1,class:"quota-value"},pV={key:0},fV={key:1,class:"quota-unlimited-tag"},mV=["aria-label","aria-valuenow","aria-valuemax","aria-valuetext"],hV={key:1,class:"quota-row","aria-hidden":"true"},vV={class:"quota-item"},yV={id:"settings-terms",class:"paper-settings-section"},gV={class:"form-group"},bV={class:"form-control",id:"terms",name:"terms",rows:"4",placeholder:`Jane Smith MIT CSAIL -jane.smith@example.org`},uV={id:"termsHelp",class:"form-text text-muted"},cV={class:"invalid-feedback"},pV={id:"settings-display",class:"paper-settings-section"},fV={class:"form-group paper-check-list"},mV={class:"form-check"},hV={class:"form-check-input",type:"checkbox",id:"link",name:"link"},vV={class:"form-check"},yV={class:"form-check-input",type:"checkbox",id:"image",name:"image"},gV={class:"form-check"},bV={class:"form-check-input",type:"checkbox",id:"pdf",name:"pdf"},wV={class:"form-check"},kV={class:"form-check-input",type:"checkbox",id:"notebook",name:"notebook"},_V={id:"settings-features",class:"paper-settings-section"},EV={class:"form-group paper-check-list"},CV={class:"form-check"},NV={class:"form-check-input",type:"checkbox",id:"page",name:"page"},SV={class:"form-check"},DV={class:"form-check-input",type:"checkbox",id:"loc",name:"loc"},RV={class:"form-check"},TV={class:"form-check-input",type:"checkbox",id:"update",name:"update"},OV={class:"form-group"},AV={class:"form-control",id:"mode",name:"mode"},IV={class:"form-text text-muted"},VV={id:"settings-expiration",class:"paper-settings-section"},PV={class:"form-group"},qV={class:"form-control",id:"expiration",name:"expiration"},MV={class:"paper-settings-footer"},$V={key:0,class:"paper-inline-alert paper-inline-alert-error",role:"alert"},FV=["textContent"],LV={class:"paper-settings-actions"},UV=["disabled"],zV={key:0,class:"fas fa-check mr-1","aria-hidden":"true"},HV={id:"settings-account",class:"paper-settings-section"},BV={class:"paper-account-card"},GV=["src"],jV={class:"paper-account-identity"},WV={class:"paper-account-name"},KV={class:"paper-danger-zone"},YV={key:0,class:"paper-inline-alert paper-inline-alert-error",role:"alert"},xV=["textContent"],JV=["disabled"];function il(e,t){let o=ye("paper-scrollspy"),r=ye("field"),n=ye("form");return l(),d("div",BI,[t[47]||(t[47]=_e('
My work \xA0/\xA0 Settings

Your settings

Defaults applied to every new anonymization, your quotas, and your account.

',3)),s("div",GI,[E((l(),d("aside",jI,[...t[2]||(t[2]=[_e('
On this page
',2)])])),[[o]]),s("div",WI,[m(" Quota: same markup as the dashboard, driven by quotaService "),s("section",KI,[t[4]||(t[4]=s("div",{class:"paper-section-eyebrow"},"Quota",-1)),t[5]||(t[5]=s("p",{class:"paper-section-copy"},"What you are using across all your anonymizations. Conferences can lift these limits during a review window.",-1)),e.quota?(l(),d("div",YI,[(l(),d(x,null,re([{key:"repository",label:"Repositories",kind:"count"},{key:"storage",label:"Storage",kind:"bytes"},{key:"file",label:"Files",kind:"count"}],(i,a)=>s("div",xI,[s("div",JI,[s("span",QI,c(i?.label),1),i?.kind==="count"?(l(),d("span",XI,[y(c(e.fmt?.number(e.quota[i?.key].used)),1),e.quota[i?.key].unlimited?m("v-if",!0):(l(),d("span",ZI," / "+c(e.fmt?.number(e.quota[i?.key].total)),1)),e.quota[i?.key].unlimited?(l(),d("span",eV,"Unlimited")):m("v-if",!0)])):m("v-if",!0),i?.kind==="bytes"?(l(),d("span",tV,[y(c(e.fmt?.humanFileSize(e.quota[i?.key].used)),1),e.quota[i?.key].unlimited?m("v-if",!0):(l(),d("span",sV," / "+c(e.fmt?.humanFileSize(e.quota[i?.key].total)),1)),e.quota[i?.key].unlimited?(l(),d("span",nV,"Unlimited")):m("v-if",!0)])):m("v-if",!0)]),s("div",{class:T(["quota-track","quota-"+e.quota[i?.key].level]),role:"progressbar","aria-valuemin":"0","aria-label":i?.label+" quota","aria-valuenow":e.quota[i?.key].used,"aria-valuemax":e.quota[i?.key].unlimited?e.quota[i?.key].used:e.quota[i?.key].total,"aria-valuetext":e.quota[i?.key].unlimited?"unlimited":e.fmt.number(e.quota[i?.key].percent,0)+"% used"},[e.quota[i?.key].unlimited?m("v-if",!0):(l(),d("div",{key:0,class:"quota-fill",style:Oe({width:e.quota[i?.key].percent+"%"})},null,4))],10,oV)])),64))])):m("v-if",!0),e.quota?m("v-if",!0):(l(),d("div",rV,[(l(),d(x,null,re([1,2,3],(i,a)=>s("div",iV,[...t[3]||(t[3]=[s("div",{class:"quota-header"},[s("span",{class:"skeleton skeleton-line",style:{width:"40%"}}),s("span",{class:"skeleton skeleton-line",style:{width:"25%"}})],-1),s("div",{class:"quota-track"},null,-1)])])),64))]))]),E((l(),d("form",{class:"form needs-validation",name:"defaultsForm",novalidate:"",onSubmit:t[0]||(t[0]=ge(i=>e.submitForm(i,()=>{e.saveDefault(i)}),["prevent"]))},[s("section",aV,[t[11]||(t[11]=s("div",{class:"paper-section-eyebrow"},"Terms to redact",-1)),t[12]||(t[12]=s("p",{class:"paper-section-copy"},"Pre-filled in every new anonymization. You can still edit the list per anonymization.",-1)),s("div",lV,[t[10]||(t[10]=s("label",{class:"paper-field-label",for:"terms"},"Default terms",-1)),E(s("textarea",dV,null,512),[[r,{state:e.viewState,set:i=>{e.terms=i},value:e.terms,form:"defaultsForm",options:{debounce:250}}]]),s("small",uV,[t[6]||(t[6]=y(" One term per line (regex allowed). Each match is replaced by ",-1)),s("code",null,c(e.site_options?.ANONYMIZATION_MASK||"XXX")+"-[N]",1),t[7]||(t[7]=y(", or use ",-1)),t[8]||(t[8]=s("code",null,"term=>replacement",-1)),t[9]||(t[9]=y(" to pick your own. ",-1))]),E(s("div",cV," Terms are in an invalid format ",512),[[H,e.defaultsForm?.terms?.errors?.format]])])]),s("section",pV,[t[21]||(t[21]=s("div",{class:"paper-section-eyebrow"},"Display",-1)),t[22]||(t[22]=s("p",{class:"paper-section-copy"},"What reviewers can see inside an anonymized repository.",-1)),s("div",fV,[s("div",mV,[E(s("input",hV,null,512),[[r,{state:e.viewState,set:i=>{e.options.link=i},value:e.options?.link,form:"defaultsForm",options:{}}]]),t[13]||(t[13]=s("label",{class:"form-check-label",for:"link"},"Keep links",-1)),t[14]||(t[14]=s("small",{class:"form-text text-muted"},"Unchecked, every link in text files is removed.",-1))]),s("div",vV,[E(s("input",yV,null,512),[[r,{state:e.viewState,set:i=>{e.options.image=i},value:e.options?.image,form:"defaultsForm",options:{}}]]),t[15]||(t[15]=s("label",{class:"form-check-label",for:"image"},"Display images",-1)),t[16]||(t[16]=s("small",{class:"form-text text-muted"},"Images are shown as is. They are not anonymized.",-1))]),s("div",gV,[E(s("input",bV,null,512),[[r,{state:e.viewState,set:i=>{e.options.pdf=i},value:e.options?.pdf,form:"defaultsForm",options:{}}]]),t[17]||(t[17]=s("label",{class:"form-check-label",for:"pdf"},"Display PDFs",-1)),t[18]||(t[18]=s("small",{class:"form-text text-muted"},"PDFs are shown as is. They are not anonymized.",-1))]),s("div",wV,[E(s("input",kV,null,512),[[r,{state:e.viewState,set:i=>{e.options.notebook=i},value:e.options?.notebook,form:"defaultsForm",options:{}}]]),t[19]||(t[19]=s("label",{class:"form-check-label",for:"notebook"},"Display notebooks",-1)),t[20]||(t[20]=s("small",{class:"form-text text-muted"},"Render Jupyter notebooks instead of raw JSON.",-1))])])]),s("section",_V,[t[31]||(t[31]=s("div",{class:"paper-section-eyebrow"},"Features",-1)),s("div",EV,[s("div",CV,[E(s("input",NV,null,512),[[r,{state:e.viewState,set:i=>{e.options.page=i},value:e.options?.page,form:"defaultsForm",options:{}}]]),t[23]||(t[23]=s("label",{class:"form-check-label",for:"page"},"GitHub Pages",-1)),t[24]||(t[24]=s("small",{class:"form-text text-muted"},"Serve an anonymized copy of the repository's GitHub Pages site. Only pages built from the anonymized branch are supported.",-1))]),s("div",SV,[E(s("input",DV,null,512),[[r,{state:e.viewState,set:i=>{e.options.loc=i},value:e.options?.loc,form:"defaultsForm",options:{}}]]),t[25]||(t[25]=s("label",{class:"form-check-label",for:"loc"},"Lines of code",-1)),t[26]||(t[26]=s("small",{class:"form-text text-muted"},"Show the line count of the repository in the explorer.",-1))]),s("div",RV,[E(s("input",TV,null,512),[[r,{state:e.viewState,set:i=>{e.options.update=i},value:e.options?.update,form:"defaultsForm",options:{}}]]),t[27]||(t[27]=s("label",{class:"form-check-label",for:"update"},"Auto-update from GitHub",-1)),t[28]||(t[28]=s("small",{class:"form-text text-muted"},"Follow the branch and pull the latest commit automatically, at most once an hour.",-1))])]),s("div",OV,[t[30]||(t[30]=s("label",{class:"paper-field-label",for:"mode"},"Fetch mode",-1)),E((l(),d("select",AV,[...t[29]||(t[29]=[s("option",{value:"GitHubStream",selected:""},"Stream from GitHub on demand",-1),s("option",{value:"GitHubDownload"},"Download to Anonymous GitHub",-1)])])),[[r,{state:e.viewState,set:i=>{e.options.mode=i},value:e.options?.mode,form:"defaultsForm",options:{}}]]),s("small",IV," Download is faster for reviewers and enables every feature. Streaming is the only option above "+c(e.fmt?.humanFileSize(e.site_options?.MAX_REPO_SIZE*1024))+". ",1)])]),s("section",VV,[t[35]||(t[35]=s("div",{class:"paper-section-eyebrow"},"Expiration",-1)),s("div",PV,[t[33]||(t[33]=s("label",{class:"paper-field-label",for:"expiration"},"When an anonymization expires",-1)),E((l(),d("select",qV,[...t[32]||(t[32]=[s("option",{value:"redirect"},"Redirect visitors to the GitHub repository",-1),s("option",{value:"remove",selected:""},"Remove the anonymized repository",-1)])])),[[r,{state:e.viewState,set:i=>{e.options.expirationMode=i},value:e.options?.expirationMode,form:"defaultsForm",options:{}}]]),t[34]||(t[34]=s("small",{class:"form-text text-muted"}," The expiration date itself is chosen per anonymization. Redirecting reveals the source repository, so pick it only once the review is over. ",-1))])]),s("div",MV,[e.error?(l(),d("div",$V,[t[36]||(t[36]=s("i",{class:"fas fa-exclamation-circle","aria-hidden":"true"},null,-1)),t[37]||(t[37]=y()),s("span",{textContent:c(e.error)},null,8,FV)])):m("v-if",!0),s("div",LV,[s("button",{id:"save",type:"submit",class:"btn btn-ink",disabled:e.saving},[e.message?(l(),d("i",zV)):m("v-if",!0),y(c(e.saving?"Saving\u2026":e.message?"Saved":"Save defaults"),1)],8,UV),t[38]||(t[38]=s("span",{class:"paper-settings-hint"},"Applies to new anonymizations only. Existing ones keep their settings.",-1))])])],32)),[[n,e.viewState]]),s("section",HV,[t[46]||(t[46]=s("div",{class:"paper-section-eyebrow"},"Account",-1)),s("div",BV,[e.user?.photo?(l(),d("img",{key:0,width:"40",height:"40",class:"rounded-circle",alt:"",src:e.safeUrl(e.user?.photo)},null,8,GV)):m("v-if",!0),s("div",jV,[s("div",WV,"@"+c(e.user?.username),1),t[39]||(t[39]=s("div",{class:"paper-account-meta"},"Signed in with GitHub. Anonymous GitHub only reads your repositories.",-1))]),t[40]||(t[40]=s("a",{class:"btn btn-outline-ink",href:"/api/user/logout",target:"_self"},"Sign out",-1))]),s("div",KV,[t[44]||(t[44]=s("div",{class:"paper-danger-head"},"Delete account",-1)),t[45]||(t[45]=s("p",{class:"paper-danger-copy"}," Removes all your anonymized repositories, gists, and pull requests, revokes the application's access to your GitHub account, and erases your personal data (username, email, access tokens). This cannot be undone. ",-1)),e.deleteError?(l(),d("div",YV,[t[41]||(t[41]=s("i",{class:"fas fa-exclamation-circle","aria-hidden":"true"},null,-1)),t[42]||(t[42]=y()),s("span",{textContent:c(e.deleteError)},null,8,xV)])):m("v-if",!0),s("button",{type:"button",class:"btn btn-outline-danger",onClick:t[1]||(t[1]=i=>e.deleteAccount()),disabled:e.deletingAccount},[t[43]||(t[43]=s("i",{class:"fas fa-trash-alt mr-1","aria-hidden":"true"},null,-1)),y(c(e.deletingAccount?"Deleting\u2026":"Delete my account"),1)],8,JV)])])])])])}var QV={class:"pr-page"},XV={class:"container paper-page pr-page-inner"},ZV={class:"pr-header"},eP={class:"paper-page-title pr-title"},tP=["textContent"],sP={key:1,class:"text-muted"},nP=["href"],oP={class:"pr-header-meta"},rP={key:0,class:"pr-meta-item"},iP=["textContent"],aP={key:1,class:"pr-meta-item"},lP=["textContent"],dP={key:2,class:"pr-meta-item"},uP=["textContent"],cP={key:0,class:"pr-body-card"},pP={key:1,class:"paper-tabs",role:"tablist"},fP=["textContent"],mP={class:"paper-tab-content"},hP={key:0},vP=["innerHTML"],yP={key:1},gP={class:"pr-comments"},bP={class:"pr-comment"},wP={class:"pr-comment-head"},kP={key:0,class:"pr-comment-author"},_P=["textContent"],EP=["textContent"],CP={key:0,class:"pr-comment-body"},NP={key:0,class:"paper-table-empty"};function al(e,t){let o=Qe("markdown");return l(),d("div",QV,[s("div",XV,[t[15]||(t[15]=s("div",{class:"paper-crumbs"},[s("a",{href:"/dashboard"},"Reviewer"),y(" \xA0/\xA0 "),s("span",{class:"here"},"Pull request")],-1)),s("header",ZV,[s("h1",eP,[e.details?.title?(l(),d("span",{key:0,textContent:c(e.details?.title)},null,8,tP)):m("v-if",!0),e.details?.title?m("v-if",!0):(l(),d("span",sP,"Untitled pull request")),e.options?.isAdmin||e.options?.isOwner?(l(),d("a",{key:2,class:"btn btn-sm","aria-label":"Edit",href:e.safeUrl("/pull-request-anonymize/"+e.pullRequestId)},[...t[2]||(t[2]=[s("i",{class:"far fa-edit"},null,-1),s("span",{class:"d-none d-md-inline"}," Edit",-1)])],8,nP)):m("v-if",!0)]),s("div",oP,[s("span",{class:T(["paper-pill",{good:e.details?.merged,warn:e.details?.state=="open",bad:e.details?.state=="closed"&&!e.details?.merged}])},[s("span",{class:T(["status-dot",{"status-ready":e.details?.merged,"status-error":e.details?.state=="closed"&&!e.details?.merged}])},null,2),y(" "+c(e.details?.merged?"Merged":e.fmt.title(e.details?.state)),1)],2),e.details?.baseRepositoryFullName?(l(),d("span",rP,[t[3]||(t[3]=s("i",{class:"fab fa-github"},null,-1)),t[4]||(t[4]=y()),s("span",{textContent:c(e.details?.baseRepositoryFullName)},null,8,iP)])):m("v-if",!0),e.details?.updatedDate?(l(),d("span",aP,[t[5]||(t[5]=s("i",{class:"far fa-clock"},null,-1)),t[6]||(t[6]=y()),s("span",{textContent:c(e.fmt?.date(e.details?.updatedDate))},null,8,lP)])):m("v-if",!0),e.details?.anonymizeDate?(l(),d("span",dP,[t[7]||(t[7]=s("i",{class:"fas fa-user-secret"},null,-1)),t[8]||(t[8]=y(" Anonymized ",-1)),s("span",{textContent:c(e.fmt?.date(e.details?.anonymizeDate))},null,8,uP)])):m("v-if",!0)])]),e.details?.body?(l(),d("section",cP,[t[9]||(t[9]=s("div",{class:"paper-section-eyebrow"},"Description",-1)),Re(o,{content:e.details?.body},null,8,["content"])])):m("v-if",!0),e.details?.diff||e.details?.comments?(l(),d("nav",pP,[e.details?.diff?(l(),d("button",{key:0,class:T(["paper-tab",{active:e.tabState?.active=="diff"}]),type:"button",role:"tab",onClick:t[0]||(t[0]=r=>e.tabState.active="diff")},[...t[10]||(t[10]=[s("i",{class:"fas fa-code"},null,-1),y(" Diff ",-1)])],2)):m("v-if",!0),e.details?.comments?(l(),d("button",{key:1,class:T(["paper-tab",{active:e.tabState?.active=="comments"}]),type:"button",role:"tab",onClick:t[1]||(t[1]=r=>e.tabState.active="comments")},[t[11]||(t[11]=s("i",{class:"far fa-comment-dots"},null,-1)),s("span",{textContent:c(e.fmt.plural(e.details?.comments?.length,{0:"No comments",one:"1 comment",other:"{} comments"}))},null,8,fP)],2)):m("v-if",!0)])):m("v-if",!0),s("div",mP,[e.details?.diff&&e.tabState?.active=="diff"?(l(),d("div",hP,[s("div",{class:"pr-diff",innerHTML:e.sanitize(e.fmt?.diff(e.details?.diff))},null,8,vP)])):m("v-if",!0),e.details?.comments&&e.tabState?.active=="comments"?(l(),d("div",yP,[s("ul",gP,[(l(!0),d(x,null,re(e.details?.comments,(r,n)=>(l(),d("li",bP,[s("div",wP,[r?.author?(l(),d("span",kP,[t[12]||(t[12]=s("i",{class:"far fa-user"},null,-1)),t[13]||(t[13]=y(" @",-1)),s("span",{textContent:c(r?.author)},null,8,_P)])):m("v-if",!0),r?.updatedDate?(l(),d("span",{key:1,class:"pr-comment-date",textContent:c(e.fmt?.date(r?.updatedDate))},null,8,EP)):m("v-if",!0)]),r?.body?(l(),d("div",CP,[Re(o,{content:r?.body},null,8,["content"])])):m("v-if",!0)]))),256)),e.details?.comments?.length?m("v-if",!0):(l(),d("li",NP,[...t[14]||(t[14]=[s("i",{class:"far fa-comment-dots"},null,-1),s("span",null,"No comments on this pull request.",-1)])]))])])):m("v-if",!0)])])])}var SP={class:"container paper-page"},DP={class:"d-flex align-items-end justify-content-between flex-wrap",style:{gap:"12px"}},RP={class:"paper-page-title"},TP=["textContent"],OP={key:1},AP={class:"paper-settings-section"},IP={key:0,class:"paper-ratelimit-card",role:"status"},VP={class:"paper-error-msg"},PP=["aria-valuenow"],qP={class:"paper-progress-label"},MP=["textContent"],$P={key:0},FP=["textContent"],LP={class:"paper-progress-pct"},UP={key:2,class:"paper-error-card",role:"alert"},zP={key:0,class:"paper-error-msg"},HP={key:1,class:"paper-error-msg"},BP={class:"paper-error-actions"},GP=["href"],jP={class:"paper-detail-grid"},WP={class:"detail-value"},KP=["href"],YP={key:0,class:"detail-label"},xP={key:1,class:"detail-value"},JP=["href"],QP={key:3,class:"anonymize-submit-bar"},XP=["href"],ZP=["href"];function ll(e,t){return l(),d("div",SP,[t[16]||(t[16]=s("div",{class:"paper-crumbs"},[y("Anonymization \xA0/\xA0 "),s("span",{class:"here"},"Status")],-1)),s("div",DP,[s("div",null,[s("h1",RP,[t[0]||(t[0]=y("Status of ",-1)),s("em",null,c(e.repoId),1)]),t[1]||(t[1]=s("p",{class:"paper-page-lede"},"Track progress as your anonymization is prepared.",-1))]),s("span",{class:T(["status-pill",{"status-pill-ready":e.repo?.status=="ready","status-pill-error":e.repo?.status=="error","status-pill-removed":e.repo?.status=="removed"||e.repo?.status=="expired","status-pill-ratelimit":e.rateLimitResetAt}])},[s("span",{class:T(["status-dot",{"status-ready":e.repo?.status=="ready","status-error":e.repo?.status=="error","status-removed":e.repo?.status=="removed"||e.repo?.status=="expired","status-ratelimit":e.rateLimitResetAt}])},null,2),e.rateLimitResetAt?m("v-if",!0):(l(),d("span",{key:0,textContent:c(e.fmt?.title(e.repo?.status))},null,8,TP)),e.rateLimitResetAt?(l(),d("span",OP,"Rate limited")):m("v-if",!0)],2)]),s("section",AP,[t[14]||(t[14]=s("div",{class:"paper-section-eyebrow"},"Progress",-1)),t[15]||(t[15]=s("p",{class:"paper-section-copy"},[y(" The repository will take a few minutes to get ready, depending on its size. Visit the "),s("a",{href:"/faq"},"FAQ"),y(" for more information. ")],-1)),e.rateLimitResetAt?(l(),d("div",IP,[t[4]||(t[4]=s("div",{class:"paper-ratelimit-head"},[s("i",{class:"fas fa-hourglass-half"}),s("div",null,[s("div",{class:"paper-error-eyebrow"},"Temporarily paused"),s("div",{class:"paper-error-title"},"GitHub API rate limit reached")])],-1)),s("p",VP,[t[2]||(t[2]=y("Anonymization will resume automatically in ",-1)),s("strong",null,c(e.rateLimitCountdown),1),t[3]||(t[3]=y(". No action needed \u2014 the job is queued and will continue where it left off.",-1))])])):m("v-if",!0),e.repo?.status!="error"&&!e.rateLimitResetAt?(l(),d("div",{key:1,class:T(["paper-progress",{"paper-progress-ready":e.repo?.status=="ready"}]),role:"progressbar","aria-valuemin":"0","aria-valuemax":"100","aria-valuenow":e.progress},[s("div",{class:"paper-progress-bar",style:Oe("width: "+e.progress+"%;")},null,4),s("div",qP,[s("span",{textContent:c(e.fmt?.title(e.repo?.status))},null,8,MP),e.repo?.statusMessage?(l(),d("span",$P,[t[5]||(t[5]=y("\xA0\xB7\xA0",-1)),s("span",{textContent:c(e.repo?.statusMessage)},null,8,FP)])):m("v-if",!0),s("span",LP,c(e.progress||0)+"%",1)])],10,PP)):m("v-if",!0),e.repo?.status=="error"&&!e.rateLimitResetAt?(l(),d("div",UP,[t[9]||(t[9]=s("div",{class:"paper-error-head"},[s("i",{class:"fas fa-exclamation-triangle"}),s("div",null,[s("div",{class:"paper-error-eyebrow"},"Anonymization failed"),s("div",{class:"paper-error-title"},"Something went wrong while preparing this repository.")])],-1)),e.repo?.statusMessage?(l(),d("p",zP,c(e.fmt?.translate("ERRORS."+e.repo?.statusMessage)),1)):m("v-if",!0),e.repo?.statusMessage?m("v-if",!0):(l(),d("p",HP,"No additional details were reported. The most common causes are private repositories, missing branches, and rate limits.")),t[10]||(t[10]=s("ul",{class:"paper-error-hints"},[s("li",null,"Make sure the source URL points to a repository or pull request you can access."),s("li",null,"Check that the chosen branch and commit still exist on GitHub."),s("li",null,"If you just signed in, the access token may need a moment to propagate \u2014 try again.")],-1)),s("div",BP,[s("a",{class:"btn btn-ink",href:e.safeUrl("/anonymize/"+e.repoId)},[...t[6]||(t[6]=[s("i",{class:"far fa-edit mr-1"},null,-1),y(" Edit anonymization",-1)])],8,GP),t[7]||(t[7]=s("a",{class:"btn",href:"/faq"},[s("i",{class:"far fa-question-circle mr-1"}),y(" Read the FAQ")],-1)),t[8]||(t[8]=s("a",{class:"btn",href:"https://github.com/tdurieux/anonymous_github/issues/new?template=issue_report.yml",target:"_blank",rel:"noopener"},[s("i",{class:"fas fa-bug mr-1","aria-hidden":"true"}),y(" Report a bug in Anonymous GitHub")],-1))])])):m("v-if",!0),s("div",jP,[t[11]||(t[11]=s("div",{class:"detail-label"},"Repository",-1)),s("div",WP,[s("a",{target:"_self",href:e.safeUrl("/r/"+e.repoId+"/")},"/r/"+c(e.repoId)+"/",9,KP)]),e.repo?.options?.page?(l(),d("div",YP,"GitHub Page")):m("v-if",!0),e.repo?.options?.page?(l(),d("div",xP,[s("a",{target:"_self",href:e.safeUrl("/w/"+e.repoId+"/")},"/w/"+c(e.repoId)+"/",9,JP)])):m("v-if",!0)]),e.repo?.status=="ready"?(l(),d("div",QP,[s("a",{class:"btn btn-ink",target:"_self",href:e.safeUrl("/r/"+e.repoId+"/")},[...t[12]||(t[12]=[s("i",{class:"far fa-eye mr-1"},null,-1),y(" Go to anonymized repository ",-1)])],8,XP),e.repo?.options?.page?(l(),d("a",{key:0,class:"btn",target:"_self",href:e.safeUrl("/w/"+e.repoId+"/")},[...t[13]||(t[13]=[s("i",{class:"fas fa-globe mr-1"},null,-1),y(" Go to anonymized GitHub page ",-1)])],8,ZP)):m("v-if",!0)])):m("v-if",!0)]),t[17]||(t[17]=_e('
Support Anonymous GitHub

A small team keeps this running. If it helps you, please consider contributing back \u2014 in code, ideas, or coffee.

',1))])}var Gn={"partials/404.htm":$a,"partials/admin/conferences.htm":Fa,"partials/admin/errors.htm":La,"partials/admin/overview.htm":Ua,"partials/admin/queues.htm":za,"partials/admin/repositories.htm":Ha,"partials/admin/user.htm":Ba,"partials/admin/users.htm":Ga,"partials/anonymize.htm":ja,"partials/anonymizePullRequest.htm":Wa,"partials/claim.htm":Ka,"partials/conference.htm":Ya,"partials/conferences.htm":xa,"partials/dashboard.htm":Ja,"partials/explorer.htm":Qa,"partials/faq.htm":Xa,"partials/gist.htm":Za,"partials/header.htm":el,"partials/home.htm":tl,"partials/loading.htm":sl,"partials/newConference.htm":nl,"partials/pageView.htm":ol,"partials/pr-dashboard.htm":rl,"partials/profile.htm":il,"partials/pullRequest.htm":al,"partials/status.htm":ll};function dl(e,t){e==="partials/explorer.htm"&&(t.sidebarCollapsed=window.matchMedia?.("(max-width: 767px)").matches||!1),e==="partials/anonymize.htm"&&(t.prTabState={active:t.options.diff?"diff":"comments"}),e==="partials/gist.htm"&&(t.tabState={active:t.details?.files?"files":"comments"}),["partials/conferences.htm","partials/conference.htm"].includes(e)&&(t.statusLabels={ready:"Ready",expired:"Expired",removed:"Removed"});let r={"partials/dashboard.htm":["filteredItems",()=>t.items,"itemFilter"],"partials/conferences.htm":["filteredConferences",()=>t.conferences,"conferenceFilter"],"partials/conference.htm":["filteredRepositories",()=>t.conference?.repositories,"repoFiler"],"partials/admin/repositories.htm":["filteredRepositories",()=>t.repositories,"repoFiler"],"partials/admin/user.htm":["filteredRepositories",()=>t.repositories,"repoFiler"],"partials/admin/users.htm":["filteredUsers",()=>t.users,"userFiler"],"partials/admin/conferences.htm":["filteredConferences",()=>t.conferences]}[e];if(r){let n=Xe(()=>t.fmt.orderBy(t.fmt.filter(r[1](),t[r[2]]),t.orderBy));Object.defineProperty(t,r[0],{configurable:!0,get:()=>n.value})}}function ul(e=(...t)=>fetch(...t)){async function t(r,n,i,a={}){let u=new URL(n,window.location.href);for(let[v,g]of Object.entries(a.params||{}))if(g!=null)for(let f of Array.isArray(g)?g:[g])u.searchParams.append(v,typeof f=="object"?JSON.stringify(f):f);let p=new AbortController,h;a.timeout?.then?a.timeout.then(()=>p.abort()):a.timeout&&(h=setTimeout(()=>p.abort(),a.timeout));try{let v={Accept:"application/json, text/plain, */*",...a.headers},g=document.cookie.match(/(?:^|;\s*)XSRF-TOKEN=([^;]*)/);g&&u.origin===window.location.origin&&(v["X-XSRF-TOKEN"]=decodeURIComponent(g[1]));let f;i!==void 0&&(i instanceof FormData?f=i:(v["Content-Type"]||(v["Content-Type"]="application/json;charset=utf-8"),f=JSON.stringify(i)));let b=await e(u.href,{method:r,headers:v,body:f,credentials:"same-origin",signal:p.signal}),_=await b.text(),k=_;if(a.transformResponse)k=a.transformResponse(_);else if(_&&(/json/i.test(b.headers.get("content-type")||"")||/^[\[{]/.test(_.trim())))try{k=JSON.parse(_)}catch{}let R={data:k,status:b.status,headers:S=>b.headers.get(S)};if(!b.ok)throw R;return R}catch(v){throw v.name==="AbortError"?{status:-1,data:null}:v}finally{clearTimeout(h)}}let o={};for(let r of["get","delete","head"])o[r]=(n,i)=>t(r.toUpperCase(),n,void 0,i);for(let r of["post","put","patch"])o[r]=(n,i,a)=>t(r.toUpperCase(),n,i,a);return o}var cl={resolve:e=>Promise.resolve(e),reject:e=>Promise.reject(e),all:e=>Promise.all(e),defer(){let e,t;return{promise:new Promise((r,n)=>{e=r,t=n}),resolve:e,reject:t}}};var pl=function(e){function t(o){return o=o||{used:0,total:0},o.unlimited=!o.total,o.percent=o.unlimited?0:Math.min(100,o.used*100/o.total),o.level=o.unlimited?"unlimited":o.percent>=95?"danger":o.percent>=80?"warn":"ok",o}return{decorate:t,load:function(){return e.get("/api/user/quota").then(o=>{let r=o.data||{};return r.storage=t(r.storage),r.file=t(r.file),r.repository=t(r.repository),r})}}};var jo={};Al(jo,{bigNum:()=>t3,date:()=>p3,diff:()=>i3,filter:()=>u3,humanFileSize:()=>e3,humanTime:()=>s3,limitTo:()=>d3,number:()=>a3,orderBy:()=>c3,plural:()=>f3,statusLabel:()=>o3,statusMsg:()=>r3,title:()=>n3,uppercase:()=>l3});var e3=e=>window.humanFileSize(e),t3=(function(){return function(t){let o=Number(t)||0,r=Math.abs(o);return r<1e3?String(o):r<1e4?(o/1e3).toFixed(1).replace(/\.0$/,"")+"k":r<1e6?Math.round(o/1e3)+"k":r<1e7?(o/1e6).toFixed(1).replace(/\.0$/,"")+"M":Math.round(o/1e6)+"M"}})(),s3=(function(){return function(t){if(!t)return"never";t instanceof Date&&(t=Math.round((Date.now()-t)/1e3)),(typeof t=="string"||typeof t=="number")&&(t=Math.round((Date.now()-new Date(t))/1e3));var o=t<0?"from now":"ago";if(Math.abs(t)>7200*24){let p=new Date;return p.setSeconds(p.getSeconds()-t),"on "+p.toLocaleDateString(void 0,{day:"numeric",month:"short",year:"numeric"})}t=Math.abs(t);for(var r=[t/60/60/24/365,t/60/60/24/30,t/60/60/24/7,t/60/60/24,t/60/60,t/60,t],n=["year","month","week","day","hour","minute","second"],i=0;i1&&(u+="s"),a>=1)return a+" "+u+" "+o}return"0 seconds "+o}})(),n3=(function(){return function(e){if(!e)return e;e=e.toLowerCase();var t=e.split(" "),o=t.map(function(r){return r.charAt(0).toUpperCase()+r.substring(1,r.length)});return o.join(" ")}})(),o3=(function(){var e={ready:"Ready",error:"Error",expired:"Expired",expiring:"Expiring",removed:"Removed",removing:"Removing",queue:"Queued",download:"Downloading",downloaded:"Downloaded",preparing:"Preparing",anonymizing:"Anonymizing"};return function(t){if(!t)return"";if(e[t])return e[t];var o=String(t).replace(/[_-]+/g," ").toLowerCase();return o.charAt(0).toUpperCase()+o.slice(1)}})(),r3=(function(){var e={branch_not_found:"Branch not found on GitHub",repo_not_found:"Repository not found on GitHub",repository_not_found:"Repository not found on GitHub",repo_not_accessible:"Repository is not accessible with your token",pr_not_found:"Pull request not found on GitHub",gist_not_found:"Gist not found on GitHub",commit_not_found:"Commit not found on GitHub",repo_too_big:"Repository exceeds the size limit",quota_exceeded:"Storage quota exceeded",incomplete_record:"Incomplete record: missing identifier"};return function(t){if(!t)return t;var o=t.match(/^rate_limited:(\d+)$/);if(o){var r=Math.max(0,Math.ceil((parseInt(o[1],10)-Date.now())/1e3));if(r<=0)return"Rate limited \u2014 resuming soon";var n=Math.floor(r/60),i=r%60;return"Rate limited \u2014 retrying in "+(n>0?n+"m "+i+"s":i+"s")}if(e[t])return e[t];if(/^[a-z0-9]+(_[a-z0-9]+)+$/.test(t)){var a=t.replace(/_/g," ");return a.charAt(0).toUpperCase()+a.slice(1)}return t}})(),i3=(function(e){let t=r=>r.replace(/&/g,"&").replace(//g,">");function o(r,n){if(!n)return;let i=n.newPath&&n.newPath!=="/dev/null"?n.newPath:n.oldPath||"",a=n.oldPath==="/dev/null"?"added":n.newPath==="/dev/null"?"deleted":n.oldPath&&n.newPath&&n.oldPath!==n.newPath?"renamed":"modified";if(r.push('
'),r.push('
'+t(i)+''+a+"
"),n.lines.length){r.push('');for(let u of n.lines)r.push('");r.push("
'+(u.oldNo||"")+''+(u.newNo||"")+''+(u.kind==="add"?"+":u.kind==="remove"?"-":u.kind==="hunk"?"@":"")+''+t(u.text)+"
")}r.push("
")}return function(r){if(!r)return r;let n=[],i=null,a=0,u=0,p=()=>(i||(i={oldPath:"",newPath:"",lines:[]}),i),h=()=>{i&&(i.lines.length||i.oldPath||i.newPath)&&(o(n,i),i=null)},v=r.split(` -`);for(let g=0;ge});function a3(e,t){return e==null?"":Number(e).toLocaleString(void 0,t==null?{}:{minimumFractionDigits:t,maximumFractionDigits:t})}function l3(e){return String(e??"").toUpperCase()}function d3(e,t,o=0){return(e||[]).slice(o,o+t)}function u3(e,t){return Array.isArray(e)?typeof t=="function"?e.filter(t):e:[]}function c3(e,t){if(!t)return e||[];let o=Array.isArray(t)?t:[t];return[...e||[]].sort((r,n)=>{for(let i of o){let a=i[0]==="-"?-1:1;i=i.replace(/^[+-]/,"");let u=i.split(".").reduce((h,v)=>h?.[v],r),p=i.split(".").reduce((h,v)=>h?.[v],n);if(typeof u=="string"&&(u=u.toLowerCase()),typeof p=="string"&&(p=p.toLowerCase()),u!==p)return(u==null?-1:p==null?1:ur[n])}function f3(e,t){return(t?.[e]??t?.[e===1?"one":"other"]??"").replace(/\{\}/g,e??0)}var fl={ERRORS:{repository_job_cancelled:"The repository changed or was removed while processing.",storage_delete_failed:"Unable to remove cached files. Please try again later.",unknown_error:"Unknown error, contact the admin.",unreachable:"Anonymous GitHub is unreachable, contact the admin.",request_error:"Unable to download the file, check your connection or contact the admin.",not_found:"The requested resource could not be found.",not_connected:"You must be logged in to perform this action.",not_authorized:"You do not have permission to perform this action.",unable_to_connect_user:"Unable to connect your account. Please try again later.",user_not_found:"The requested user could not be found.",user_banned:"Your account has been banned. Contact the admin for more information.",repo_access_limited:"GitHub blocked access because the repository's organization restricts third-party OAuth apps. Ask an org owner to approve Anonymous GitHub under Settings \u2192 Third-party Access \u2192 OAuth app policy, or anonymize a personal fork instead.",repo_saml_enforcement:"The repository's organization enforces SAML single sign-on. Authorize your token for that organization (GitHub \u2192 Settings \u2192 Applications, or re-run the org's SSO sign-in), then retry. Alternatively, anonymize a personal fork.",repo_not_found:"The repository was not found on GitHub. Check the URL and spelling, make sure you are signed in to the account that can see it, and confirm the repo isn't hidden under an org that restricts third-party app access.",repo_empty:"The selected branch has no commits on GitHub. Push at least one commit, or pick a different branch, then retry.",repo_not_accessible:"Anonymous GitHub cannot access this repository. Verify the repository exists and that Anonymous GitHub has been authorized for the owning organization.",repository_archived:"This repository has been archived and its files are no longer available.",repository_expired:"The repository is expired.",invalid_status:"This action cannot be performed while the resource is in its current state.",repository_not_ready:"Anonymous GitHub is still processing the repository, it can take several minutes.",repository_not_accessible:"This repository is currently not accessible.",repo_is_updating:"Anonymous GitHub is still processing the repository, it can take several minutes.",invalid_repo:"The provided repository is not valid.",invalid_source_repository:"The repository source name is invalid; expected the form 'owner/name'.",repoId_not_defined:"A repository ID must be provided.",repoUrl_not_defined:"The repository URL needs to be defined.",source_not_provided:"A repository source must be provided.",github_rate_limit_exceeded:"GitHub temporarily blocked the request because we hit its API rate limit. Wait a few minutes and try again. If the problem persists and you contact GitHub Support, include the request ID and timestamp shown in GitHub's response (the 'X-GitHub-Request-Id' header).",rate_limited:"GitHub API rate limit reached. The repository will be available shortly \u2014 please wait a moment and refresh.",repoId_already_used:"The repository ID is already used.",invalid_repoId:"The format of the repository ID is invalid.",unsupported_source:"The repository source type is not supported.",branch_not_specified:"The branch is not specified.",branch_not_found:"The branch of the repository cannot be found.",commit_not_specified:"A commit must be specified.",commit_not_found:"The configured commit no longer exists in the source repository. It may have been force-pushed, rebased, or removed.",repo_renamed:"The source repository appears to have been renamed or moved on GitHub. Please refresh and try again \u2014 the cached name has been updated.",invalid_commit_format:"The commit hash format is invalid. It must be a hexadecimal string.",pull_request_not_found:"The requested pull request could not be found.",pull_request_expired:"This pull request has expired and is no longer available.",pull_request_not_ready:"This pull request is still being prepared. Please try again shortly.",pull_request_not_available:"This pull request is currently not available.",invalid_pullRequestId:"The pull request ID is invalid.",pullRequestId_already_used:"This pull request ID is already in use. Please choose a different one.",repository_not_specified:"A repository must be specified for this pull request.",pullRequestId_not_specified:"A pull request ID must be specified.",pullRequestId_is_not_a_number:"The source pull request ID must be a number.",options_not_provided:"Anonymization options are mandatory.",terms_not_specified:"Anonymization terms must be specified.",invalid_terms_format:"Terms are in an invalid format.",missing_content:"No content was provided to the anonymization preview.",unable_to_anonymize:"An error happened during the anonymization process. Please try later or report the issue.",non_supported_mode:"The selected anonymization mode is invalid, only download and stream are supported.",invalid_path:"The provided path is invalid or missing.",path_not_specified:"A file path must be specified.",path_not_defined:"The file path has not been resolved yet.",invalid_file_path:"The requested file path is not valid.",invalid_request:"The request is missing required fields or is malformed.",no_file_selected:"Please select a file.",file_not_found:"The requested file is not found.",file_not_accessible:"The requested file is not accessible.",file_not_supported:"The file type is not supported. Anonymous GitHub cannot handle it.",file_too_big:"The file size exceeds the limit of Anonymous GitHub.",is_folder:"The path points to a folder.",folder_not_supported:"The path points to a folder. Please select a file.",unable_to_write_file:"Unable to write file on disk.",download_not_enabled:"Repository downloads are not enabled on this server.",unable_to_download:"The repository could not be downloaded. Please try again later.",s3_config_not_provided:"Object storage has not been configured on this server.",stats_unsupported:"Statistics are only supported in download mode.",branches_not_found:"The requested branch is not found.",readme_not_available:"No README for the repository is found.",page_not_supported_on_different_branch:"GitHub Pages is served from a different branch than the one selected. Pick the branch that GitHub Pages is configured to use.",page_not_activated:"GitHub Pages is not enabled on this repository. Enable it in the repository settings on GitHub before anonymizing.",is_removed:"This resource has been removed and is no longer available.",conf_name_missing:"A conference name is required.",conf_id_missing:"A conference ID is required.",conf_id_used:"This conference ID is already in use. Please choose a different one.",conf_start_date_missing:"A start date is required for the conference.",conf_end_date_missing:"An end date is required for the conference.",conf_start_date_invalid:"The start date must be before the end date.",conf_end_date_invalid:"The end date must be in the future.",invalid_plan:"The selected plan is not valid.",conference_not_found:"The requested conference could not be found.",conf_not_found:"The requested conference could not be found.",conf_not_activated:"The conference is not activated.",billing_missing:"Billing information is required for this plan.",billing_name_missing:"A billing name is required.",billing_email_missing:"A billing email is required.",billing_address_missing:"A billing address is required.",billing_city_missing:"A billing city is required.",billing_zip_missing:"A billing ZIP/postal code is required.",billing_country_missing:"A billing country is required.",queue_not_found:"The specified queue could not be found.",job_not_found:"The specified job could not be found in the queue.",error_retrying_job:"An error occurred while retrying the job.",gist_expired:"The gist is expired.",gist_not_ready:"Anonymous GitHub is still processing the gist, it can take several minutes.",gist_not_found:"The requested gist could not be found.",gist_not_available:"This gist is currently not available.",invalid_gistId:"The format of the gist ID is invalid.",gistId_not_specified:"A gist ID must be provided.",gistId_already_used:"The gist ID is already used.",missing_token:"An authentication token is required.",invalid_token:"The provided authentication token is invalid.",login_failed:"Login failed. Please try again.",server_error:"An unexpected server error occurred. Please try again later.",username_not_defined:"A username must be provided.",github_user_not_found:"The specified GitHub user could not be found.",cannot_coauthor_self:"You cannot add yourself as a co-author.",storage_write_size_mismatch:"The downloaded file was smaller than expected. The upstream source may have returned an incomplete response \u2014 please try again.",storage_read_error:"An error occurred while reading the file from storage \u2014 please try again.",upstream_error:"A temporary error occurred while fetching from GitHub \u2014 please try again.",token_expired:"Your GitHub access token has expired. Please log out and log in again to refresh it.",job_is_active:"This job is currently running \u2014 wait for it to finish or remove it first."},WARNINGS:{page_not_enabled_on_repo:"GitHub Pages is not enabled on this repository. Enable it in the repository's Settings \u2192 Pages on GitHub, then refresh.",page_branch_mismatch:"GitHub Pages on this repository is served from the '{{pageBranch}}' branch, but you selected '{{selectedBranch}}'. Switch the branch above to '{{pageBranch}}' to anonymize the Pages site.",folder_truncated:"This folder has more than 10,000 entries; only a partial listing is shown.",repo_truncated:"Some folders in this repository have too many files to be fully listed. Affected folders are marked with a warning icon.",submodules_not_included:"This repository uses git submodules. Submodule contents are not included in the anonymized repository and appear as empty folders."}};var ml={name:"htmlDoc",props:["content","baseUrl","allowScripts"],setup(e){let t=rt(null);return At(()=>{let r=[t.value][0];r.classList.add("html-doc");function n(){r.innerHTML="";let i=e.content;if(typeof i!="string")return;let a=document.createElement("iframe");a.className="html-doc-frame",a.setAttribute("title","Rendered HTML document");let u=["allow-popups","allow-popups-to-escape-sandbox"];e.allowScripts&&u.push("allow-scripts","allow-forms","allow-modals"),a.setAttribute("sandbox",u.join(" ")),a.setAttribute("referrerpolicy","no-referrer"),r.appendChild(a);let p="";e.baseUrl&&(p=''),a.srcdoc=p+i}ze(()=>e.content,n,{immediate:!0}),ze(()=>e.baseUrl,n,{immediate:!0}),ze(()=>e.allowScripts,n,{immediate:!0})}),()=>Ce("html-doc",{ref:t})}};var hl={name:"pdfviewer",props:["src"],setup(e){let t=rt(null);return At(()=>{let o=[t.value],r=400,n=[.5,.75,1,1.25,1.5,2,3],i=1e3,a=o[0];a.classList.add("pdf-viewer");let u=null,p=[],h=!1,v=null,g=1,f=1,b=0,_=0,k=612/792,R=0,S=document.createElement("div");S.className="pdf-toolbar";let D=document.createElement("div");D.className="pdf-pages",D.tabIndex=0,D.setAttribute("aria-label","PDF pages"),a.appendChild(S),a.appendChild(D);function I(L,W,fe){let Ee=document.createElement("button");return Ee.type="button",Ee.className="pdf-toolbar-btn",Ee.title=W,Ee.setAttribute("aria-label",W),Ee.innerHTML='',Ee.addEventListener("click",fe),Ee}let C=I("fa-chevron-up","Previous page",function(){he(f-1)}),A=I("fa-chevron-down","Next page",function(){he(f+1)}),q=document.createElement("input");q.type="text",q.className="pdf-toolbar-page",q.setAttribute("aria-label","Page number"),q.title="Page number \u2014 type a page and press Enter",q.addEventListener("keydown",function(L){L.key==="Enter"&&(he(parseInt(q.value,10)),q.blur())}),q.addEventListener("blur",function(){q.value=String(f)});let ee=document.createElement("span");ee.className="pdf-toolbar-count";let J=I("fa-search-minus","Zoom out",function(){$e(n[Math.max(0,ie()-1)])}),K=I("fa-search-plus","Zoom in",function(){$e(n[Math.min(n.length-1,ie()+1)])}),U=document.createElement("button");U.type="button",U.className="pdf-toolbar-btn pdf-toolbar-zoom",U.title="Reset zoom to fit the width",U.setAttribute("aria-label","Reset zoom to fit the width"),U.addEventListener("click",function(){$e(1)}),S.appendChild(C),S.appendChild(A);let de=document.createElement("span");de.className="pdf-toolbar-group",de.appendChild(q),de.appendChild(ee),S.appendChild(de);let se=document.createElement("span");se.className="pdf-toolbar-group pdf-toolbar-right",se.appendChild(J),se.appendChild(U),se.appendChild(K),S.appendChild(se);function ie(){let L=0;for(let W=0;W=L,U.textContent=Math.round(g*100)+"%",J.disabled=ie()===0,K.disabled=ie()===n.length-1}function be(L){let W=p[L-1];W&&(D.scrollTop+=W.getBoundingClientRect().top-D.getBoundingClientRect().top)}function he(L){if(!u||isNaN(L))return;let W=Math.min(Math.max(1,L),u.numPages);p[W-1]&&(be(W),f=W,b=W,_=Date.now()+800,ce(),Z())}function me(){if(!p.length||Date.now()<_)return;let L=D.getBoundingClientRect(),W=L.top+L.height/2,fe=1;for(let Ee=0;EeEe||N.bottome.src,ne,{immediate:!0}),es(function(){D.removeEventListener("scroll",oe),$(window).off("resize",F),ae()})}),()=>Ce("pdfviewer",{ref:t})}};var yl={props:["content","terms","options"],setup(e){let t=rt(null),o=()=>{t.value.innerHTML=renderMD(e.content||"",window.location.pathname+"/../")};return At(()=>{o(),ze(()=>[e.content,e.terms,e.options],o,{deep:!0})}),()=>Ce("markdown",{ref:t})}},h3={props:["file","terms","options"],setup(e){let t=rt(null),o=()=>kt(()=>t.value?.querySelectorAll("pre code").forEach(r=>window.Prism?.highlightElement(r)));return At(o),ze(()=>[e.file?.content,e.terms,e.options],o,{deep:!0}),()=>{let r=e.file||{},n=(r.filename||"").split(".").pop().toLowerCase();if(["md","markdown"].includes(n)||r.language==="Markdown")return Ce("gist-file",{ref:t},Ce(yl,{content:r.content,terms:e.terms,options:e.options}));let i={js:"javascript",jsx:"javascript",ts:"javascript",typescript:"javascript",py:"python",html:"markup",xml:"markup",svg:"markup",sh:"bash"},a=(r.language||n||"none").toLowerCase();return Ce("gist-file",{ref:t},Ce("pre",{class:"line-numbers"},Ce("code",{class:"language-"+(i[a]||a),key:r.content},r.content||"")))}}},v3={props:["file","content"],setup(e){let t=rt(null),o=0,r,n=async()=>{let i=++o;r?.abort(),r=new AbortController;try{let a=e.content?JSON.parse(e.content):await fetch(e.file?.download_url||e.file,{signal:r.signal}).then(u=>{if(!u.ok)throw Error("Notebook request failed");return u.json()});if(i!==o)return;t.value.innerHTML=DOMPurify.sanitize(nb.parse(a).render()),t.value.querySelectorAll("pre code").forEach(u=>window.Prism?.highlightElement(u))}catch(a){i===o&&a.name!=="AbortError"&&(t.value.textContent="Unable to render the notebook.")}};return At(()=>{n(),ze(()=>[e.file,e.content],n)}),es(()=>{o++,r?.abort()}),()=>Ce("notebook",{ref:t})}},y3={props:["stats"],setup(e){return()=>{let t=Object.entries(e.stats||{}).filter(([,r])=>r.code),o=t.reduce((r,[,n])=>r+n.code,0);return Ce("loc",t.map(([r,n])=>Ce("div",{class:"lang",title:`${r}: ${n.code.toLocaleString()} lines`,style:{width:n.code*100/o+"%",background:langColors[r]}})))}}},gl={Markdown:yl,GistFile:h3,Notebook:v3,Loc:y3,HtmlDoc:ml,Pdfviewer:hl},bl={mounted(e,{value:t}){let o=ace.edit(e);e._editor=o,o.setValue(String(t.content??""),-1),vl(e,t.options),t.options?.onLoad?.(o)},updated(e,{value:t}){e._editor.getValue()!==String(t.content??"")&&e._editor.setValue(String(t.content??""),-1),vl(e,t.options)},beforeUnmount(e){e._editor.destroy()}};function vl(e,t={}){t.mode&&e._editor.session.setMode("ace/mode/"+t.mode),t.theme&&e._editor.setTheme("ace/theme/"+t.theme),e._editor.setReadOnly(t.readOnly!==!1)}var wl={mounted(e){if(!window.IntersectionObserver)return;let t=[...e.querySelectorAll('a[href^="#"]')],o=new Set,r=new IntersectionObserver(n=>{n.forEach(a=>a.isIntersecting?o.add(a.target.id):o.delete(a.target.id));let i=t.find(a=>o.has(a.hash.slice(1)));t.forEach(a=>a.classList.toggle("active",a===i))},{rootMargin:"-20% 0px -60% 0px",threshold:0});kt(()=>t.forEach(n=>{let i=document.getElementById(n.hash.slice(1));i&&r.observe(i)})),e._observer=r},beforeUnmount(e){e._observer?.disconnect()}};function g3(e){let t={children:[]},o=new Map([["",t]]);function r(n){if(o.has(n))return o.get(n);let i=n.lastIndexOf("/"),a=r(i<0?"":n.slice(0,i)),u={name:n.slice(i+1),children:[]};return o.set(n,u),a.children.push(u),u}for(let n of e||[]){let i=n.path?`${n.path}/${n.name}`:n.name;n.size==null?r(i):r(n.path||"").children.push({...n})}return t.children}var kl={name:"FileTree",props:["file","parent","searchQuery","searchResults","page"],setup(e){let t=va(),o=rt(null),r=Le(Object.create(null)),n=null,i=Xe(()=>g3(e.file)),a=()=>"/"+(Array.isArray(t.params.path)?t.params.path.join("/"):t.params.path||"");ze(()=>[t.params.repoId,t.params.path],()=>{let f="";a().split("/").filter(Boolean).forEach(b=>{f+="/"+b,r[f]=!0})},{immediate:!0});let u=Xe(()=>{if(!e.searchQuery||!e.searchResults)return null;let f=new Set,b=new Set;return e.searchResults.forEach(_=>{f.add(_.path?`${_.path}/${_.name}`:_.name);let k="";(_.path||"").split("/").filter(Boolean).forEach(R=>{k=k?k+"/"+R:R,b.add(k)})}),{files:f,folders:b}}),p=()=>[...o.value.querySelectorAll("li > a")],h=f=>{o.value.querySelector(".tree-focused")?.classList.remove("tree-focused"),f&&(n=f.dataset.path,f.classList.add("tree-focused"),f.scrollIntoView?.({block:"nearest"}),o.value.focus())};function v(f){let b=p(),_=o.value.querySelector(".tree-focused")||b[0],k=b.indexOf(_);if(!["ArrowDown","ArrowUp","ArrowRight","ArrowLeft","Enter"].includes(f.key)||(f.preventDefault(),f.key==="ArrowDown"&&h(b[(k+1)%b.length]),f.key==="ArrowUp"&&h(b[(k-1+b.length)%b.length]),!_))return;let R=_.closest("li");f.key==="ArrowRight"&&R.classList.contains("folder")&&(R.classList.contains("open")?h(R.querySelector(":scope > ul > li > a")):_.click()),f.key==="ArrowLeft"&&(R.classList.contains("folder")&&R.classList.contains("open")?_.click():h(R.parentElement.closest("li.folder")?.querySelector(":scope > a"))),f.key==="Enter"&&_.click()}function g(f,b=""){let _=[...f].sort((k,R)=>+!!R.children-+!!k.children||k.name.localeCompare(R.name));return Ce("ul",_.flatMap(k=>{let R=k,S=R.name,D=(b+"/"+S).slice(1);if(u.value&&!u.value.files.has(D)&&!u.value.folders.has(D))return[];for(;R.children?.length===1;)R=R.children[0],S+="/"+R.name;let I=b+"/"+S,C=!!R.children,A=u.value?r[I]!==!1:!!r[I],q=C&&e.page?.options?.truncatedFolders?.includes(I.slice(1)),ee=e.page?.fileCounts?.[I.slice(1)]||0,J=Ce("span",{class:C?"tree-icon-folder":"tree-icon-file"}),K=Ce("span",{class:"tree-name"},S),U=se=>{h(se.currentTarget),C&&(se.preventDefault(),r[I]=!A,r[I]&&!R.children.length&&e.page.getFiles(I.slice(1)),kt(()=>h(p().find(ie=>ie.dataset.path===n))))},de=Ce("a",{"data-path":I,href:C?void 0:`/r/${encodeURIComponent(t.params.repoId)}${encodePathForUrl(I)}`,class:{"tree-focused":n===I},onClick:U},[C?Ce("span",{class:"tree-toggle"}):b?Ce("span",{class:"tree-spacer"}):null,J,K,q?Ce("span",{class:"truncated-warning",title:e.page.fmt.translate("WARNINGS.folder_truncated")},Ce("i",{class:"fas fa-exclamation-triangle"})):null,C&&ee?Ce("span",{class:"tree-count"},ee):null]);return Ce("li",{key:I,class:{file:!0,folder:C,open:A,active:a()===I,truncated:q},title:C?"":`Size: ${humanFileSize(R.size||0)}`},[de,C&&A?g(R.children,I):null])}))}return()=>Ce("tree",{ref:o,tabindex:0,onKeydown:v},e.file?.length?u.value?.files.size===0?Ce("div",{class:"tree-search-empty"},"No files found"):g(i.value):"Empty repository")}};function El(){return Le({errors:{},dirty:!1,touched:!1,submitted:!1,get invalid(){return Object.values(this.errors).some(Boolean)},setValidity(e,t){this.errors[e]=!t},setDirty(){this.dirty=!0}})}function Cl(e,t){if(!e[t]){let o=El();Object.defineProperty(o,"invalid",{get(){return Object.values(o.errors).some(Boolean)||Object.keys(o).some(r=>r!=="invalid"&&o[r]&&typeof o[r]=="object"&&o[r].invalid)}}),e[t]=o}return e[t]}var Nl={beforeMount(e,{value:t}){e._formState=Cl(t,e.name),e.addEventListener("submit",o=>o.preventDefault())}};function b3(e){return e instanceof Date?isNaN(e)?"":`${e.getFullYear()}-${String(e.getMonth()+1).padStart(2,"0")}-${String(e.getDate()).padStart(2,"0")}`:e||""}function _l(e){let t=e._field.binding.value;e.type==="checkbox"?e.checked=!!t:e.type==="radio"?e.checked=t==(e._value??e.value):e._field.timer||(e.value=e.type==="date"?b3(t):t??""),Wo(e)}function Wo(e){let t=e._field.validation;if(!t)return;let o=e.validity;for(let[r,n]of Object.entries({required:o.valueMissing,pattern:o.patternMismatch,min:o.rangeUnderflow,max:o.rangeOverflow,date:o.badInput,email:o.typeMismatch&&e.type==="email",url:o.typeMismatch&&e.type==="url"}))t.setValidity(r,e.disabled||!n)}var Sl={beforeMount(e,{value:t}){var a;let o=t.form&&Cl(t.state,t.form),r=o&&e.name?o[a=e.name]||(o[a]=El()):null;e._field={binding:t,validation:r,timer:null};let n=()=>{clearTimeout(e._field.timer),e._field.timer=null;let u=e._field.binding,p=e.type==="checkbox"?e.checked:e._value??e.value;if(!(e.type==="radio"&&!e.checked)){if((e.type==="number"||e.type==="range")&&(p=e.value===""?null:Number(e.value)),e.type==="date"&&(p=e.value?new Date(e.value+"T00:00:00"):null),r){r.setDirty();for(let h of Object.keys(r.errors))r.setValidity(h,!0)}u.set(p),Wo(e),u.change?.()}};e._field.commit=n;let i=u=>{let p=e._field.binding.options?.debounce||0,h=typeof p=="number"?p:p[u.type]??p.default??0;clearTimeout(e._field.timer),h?e._field.timer=setTimeout(n,h):n()};e.addEventListener(e.tagName==="SELECT"||["checkbox","radio","date"].includes(e.type)?"change":"input",i),e.addEventListener("blur",()=>{r&&(r.touched=!0),e._field.timer&&n()})},mounted:_l,updated(e,{value:t}){e._field.binding=t,_l(e)},beforeUnmount(e){clearTimeout(e._field.timer);let{binding:t,validation:o}=e._field,r=t.form&&t.state[t.form];r&&r[e.name]===o&&delete r[e.name]}};function Dl(e,t){let o=e.target.closest("form");if(o?._formState&&(o._formState.submitted=!0),o?.querySelectorAll("input, select, textarea").forEach(r=>{r._field?.timer&&r._field.commit(),r._field&&Wo(r)}),!(o&&!o.checkValidity()))return t()}var Rl=Symbol("session"),w3=/^\/(w|api|github)(\/|$)/;function Tl(e,t={}){let o=e?.split(".").reduce((r,n)=>r?.[n],fl);return String(o??e??"").replace(/{{\s*([^}]+?)\s*}}/g,(r,n)=>t[n]??"")}var k3={...jo,translate:Tl};function _3(e){if(e==null||e==="")return e;try{let t=new URL(e,window.location.href);return["http:","https:","mailto:","tel:","blob:"].includes(t.protocol)?e:void 0}catch{return}}function E3(e="#app",t={}){let o=new Map,r=ul(t.fetch),n,i;function a(){let h=ft(),v={url(f){return f===void 0?i.currentRoute.value.fullPath:(i.push(f),v)},path(){return i.currentRoute.value.path},search(){return i.currentRoute.value.query}},g=new Proxy({},{get(f,b){let _=i.currentRoute.value.params[b];return Array.isArray(_)?_.join("/"):_}});return{http:r,...h,location:v,params:g,window,promises:cl,html:{trustAsHtml:f=>f},translate:(f,b)=>Promise.resolve(Tl(f,b)),quotaService:pl(r)}}function u(h){return{name:h.template,setup(){let v=Ho(at(Rl),o);h.setup(v,a()),dl(h.template,v);let g=[];return()=>Gn[h.template](v,g)}}}i=ha({history:t.history||pa(),routes:Ma.map(h=>h.redirect?h:{path:h.path,component:u(h),meta:{title:h.title,preserveExplorer:h.preserveExplorer}})});let p=Vi({setup(){n=Ho(null,o),n.fmt=k3,n.window=window,n.Math=Math,n.sanitize=f=>DOMPurify.sanitize(f??""),n.submitForm=Dl,n.safeUrl=_3;let h=a();ga(n,h.http,h.location,h.timeout),Zt(Rl,n),ze(()=>n.title,f=>{document.title=f||"Anonymous GitHub"});let v=[],g=f=>{let b=f.target.closest?.("a[href]");if(f.defaultPrevented||f.button!==0||f.metaKey||f.ctrlKey||f.shiftKey||f.altKey||!b||b.hasAttribute("download")||b.target&&b.target!=="_self"||b.dataset.toggle||b.getAttribute("href").startsWith("#"))return;let k=new URL(b.href,window.location.href);k.origin!==window.location.origin||w3.test(k.pathname)||(f.preventDefault(),i.push(k.pathname+k.search+k.hash),$("#navbarSupportedContent.show").collapse("hide"))};return document.addEventListener("click",g),es(()=>document.removeEventListener("click",g)),()=>[Ce("header",{class:"app-header"},Gn["partials/header.htm"](n,v)),Ce("main",{class:"app-view align-items-stretch w-100"},Ce(zo,null,{default:({Component:f,route:b})=>f?Ce(f,{key:b.meta.preserveExplorer?b.matched[0]?.path:b.path}):null})),Ce("div",{class:"position-fixed p-3",style:{zIndex:999999999,right:0,bottom:0}},n.toasts.map((f,b)=>Ce("div",{class:"toast show",role:"alert","aria-live":"assertive","aria-atomic":"true",key:b},[Ce("div",{class:"toast-header"},[Ce("strong",{class:"mr-auto"},f.title),Ce("button",{type:"button",class:"ml-2 mb-1 close","aria-label":"Close",onClick:()=>n.removeToast(f)},"\xD7")]),Ce("div",{class:"toast-body"},f.body)])))]}});for(let[h,v]of Object.entries(gl))p.component(h,v);return p.component("Tree",kl),p.component("PartialView",{props:["name","state"],setup(h){let v=[];return()=>Gn[h.name](h.state,v)}}),p.directive("field",Sl),p.directive("form",Nl),p.directive("code-editor",bl),p.directive("paper-scrollspy",wl),p.use(i),i.beforeEach(()=>{n?.emit("routeLeave")}),i.afterEach(h=>{if(!n)return;n.title=h.meta.title,n.emit("routeChange",{title:h.meta.title}),n.emit("routeUpdate",{title:h.meta.title});let v=document.querySelector(".app-view");!h.meta.preserveExplorer&&v&&(v.scrollTop=0)}),p.mount(e),{app:p,router:i,state:n}}ace.config.set("basePath","/script/external/ace/");pdfjsLib.GlobalWorkerOptions.workerSrc="/script/external/pdf.worker.js";document.querySelector("#app")&&(window.anonymousApp=E3());})(); +jane.smith@example.org`},wV={id:"termsHelp",class:"form-text text-muted"},kV={class:"invalid-feedback"},_V={id:"settings-display",class:"paper-settings-section"},EV={class:"form-group paper-check-list"},CV={class:"form-check"},NV={class:"form-check-input",type:"checkbox",id:"link",name:"link"},SV={class:"form-check"},DV={class:"form-check-input",type:"checkbox",id:"image",name:"image"},RV={class:"form-check"},TV={class:"form-check-input",type:"checkbox",id:"pdf",name:"pdf"},OV={class:"form-check"},AV={class:"form-check-input",type:"checkbox",id:"notebook",name:"notebook"},IV={id:"settings-features",class:"paper-settings-section"},VV={class:"form-group paper-check-list"},PV={class:"form-check"},qV={class:"form-check-input",type:"checkbox",id:"page",name:"page"},MV={class:"form-check"},$V={class:"form-check-input",type:"checkbox",id:"loc",name:"loc"},FV={class:"form-check"},LV={class:"form-check-input",type:"checkbox",id:"update",name:"update"},UV={class:"form-group"},zV={class:"form-control",id:"mode",name:"mode"},HV={class:"form-text text-muted"},BV={id:"settings-expiration",class:"paper-settings-section"},GV={class:"form-group"},jV={class:"form-control",id:"expiration",name:"expiration"},WV={class:"paper-settings-footer"},KV={key:0,class:"paper-inline-alert paper-inline-alert-error",role:"alert"},YV=["textContent"],xV={class:"paper-settings-actions"},JV=["disabled"],QV={key:0,class:"fas fa-check mr-1","aria-hidden":"true"},XV={id:"settings-account",class:"paper-settings-section"},ZV={class:"paper-account-card"},eP=["src"],tP={class:"paper-account-identity"},sP={class:"paper-account-name"},nP={class:"paper-danger-zone"},oP={key:0,class:"paper-inline-alert paper-inline-alert-error",role:"alert"},rP=["textContent"],iP=["disabled"];function fl(e,t){let o=ge("paper-scrollspy"),r=ge("field"),n=ge("form");return l(),d("div",ZI,[t[47]||(t[47]=Ee('
My work \xA0/\xA0 Settings

Your settings

Defaults applied to every new anonymization, your quotas, and your account.

',3)),s("div",eV,[E((l(),d("aside",tV,[...t[2]||(t[2]=[Ee('
On this page
',2)])])),[[o]]),s("div",sV,[m(" Quota: same markup as the dashboard, driven by quotaService "),s("section",nV,[t[4]||(t[4]=s("div",{class:"paper-section-eyebrow"},"Quota",-1)),t[5]||(t[5]=s("p",{class:"paper-section-copy"},"What you are using across all your anonymizations. Conferences can lift these limits during a review window.",-1)),e.quota?(l(),d("div",oV,[(l(),d(x,null,re([{key:"repository",label:"Repositories",kind:"count"},{key:"storage",label:"Storage",kind:"bytes"},{key:"file",label:"Files",kind:"count"}],(i,a)=>s("div",rV,[s("div",iV,[s("span",aV,c(i?.label),1),i?.kind==="count"?(l(),d("span",lV,[y(c(e.fmt?.number(e.quota[i?.key].used)),1),e.quota[i?.key].unlimited?m("v-if",!0):(l(),d("span",dV," / "+c(e.fmt?.number(e.quota[i?.key].total)),1)),e.quota[i?.key].unlimited?(l(),d("span",uV,"Unlimited")):m("v-if",!0)])):m("v-if",!0),i?.kind==="bytes"?(l(),d("span",cV,[y(c(e.fmt?.humanFileSize(e.quota[i?.key].used)),1),e.quota[i?.key].unlimited?m("v-if",!0):(l(),d("span",pV," / "+c(e.fmt?.humanFileSize(e.quota[i?.key].total)),1)),e.quota[i?.key].unlimited?(l(),d("span",fV,"Unlimited")):m("v-if",!0)])):m("v-if",!0)]),s("div",{class:T(["quota-track","quota-"+e.quota[i?.key].level]),role:"progressbar","aria-valuemin":"0","aria-label":i?.label+" quota","aria-valuenow":e.quota[i?.key].used,"aria-valuemax":e.quota[i?.key].unlimited?e.quota[i?.key].used:e.quota[i?.key].total,"aria-valuetext":e.quota[i?.key].unlimited?"unlimited":e.fmt.number(e.quota[i?.key].percent,0)+"% used"},[e.quota[i?.key].unlimited?m("v-if",!0):(l(),d("div",{key:0,class:"quota-fill",style:Ae({width:e.quota[i?.key].percent+"%"})},null,4))],10,mV)])),64))])):m("v-if",!0),e.quota?m("v-if",!0):(l(),d("div",hV,[(l(),d(x,null,re([1,2,3],(i,a)=>s("div",vV,[...t[3]||(t[3]=[s("div",{class:"quota-header"},[s("span",{class:"skeleton skeleton-line",style:{width:"40%"}}),s("span",{class:"skeleton skeleton-line",style:{width:"25%"}})],-1),s("div",{class:"quota-track"},null,-1)])])),64))]))]),E((l(),d("form",{class:"form needs-validation",name:"defaultsForm",novalidate:"",onSubmit:t[0]||(t[0]=be(i=>e.submitForm(i,()=>{e.saveDefault(i)}),["prevent"]))},[s("section",yV,[t[11]||(t[11]=s("div",{class:"paper-section-eyebrow"},"Terms to redact",-1)),t[12]||(t[12]=s("p",{class:"paper-section-copy"},"Pre-filled in every new anonymization. You can still edit the list per anonymization.",-1)),s("div",gV,[t[10]||(t[10]=s("label",{class:"paper-field-label",for:"terms"},"Default terms",-1)),E(s("textarea",bV,null,512),[[r,{state:e.viewState,set:i=>{e.terms=i},value:e.terms,form:"defaultsForm",options:{debounce:250}}]]),s("small",wV,[t[6]||(t[6]=y(" One term per line (regex allowed). Each match is replaced by ",-1)),s("code",null,c(e.site_options?.ANONYMIZATION_MASK||"XXX")+"-[N]",1),t[7]||(t[7]=y(", or use ",-1)),t[8]||(t[8]=s("code",null,"term=>replacement",-1)),t[9]||(t[9]=y(" to pick your own. ",-1))]),E(s("div",kV," Terms are in an invalid format ",512),[[H,e.defaultsForm?.terms?.errors?.format]])])]),s("section",_V,[t[21]||(t[21]=s("div",{class:"paper-section-eyebrow"},"Display",-1)),t[22]||(t[22]=s("p",{class:"paper-section-copy"},"What reviewers can see inside an anonymized repository.",-1)),s("div",EV,[s("div",CV,[E(s("input",NV,null,512),[[r,{state:e.viewState,set:i=>{e.options.link=i},value:e.options?.link,form:"defaultsForm",options:{}}]]),t[13]||(t[13]=s("label",{class:"form-check-label",for:"link"},"Keep links",-1)),t[14]||(t[14]=s("small",{class:"form-text text-muted"},"Unchecked, every link in text files is removed.",-1))]),s("div",SV,[E(s("input",DV,null,512),[[r,{state:e.viewState,set:i=>{e.options.image=i},value:e.options?.image,form:"defaultsForm",options:{}}]]),t[15]||(t[15]=s("label",{class:"form-check-label",for:"image"},"Display images",-1)),t[16]||(t[16]=s("small",{class:"form-text text-muted"},"Images are shown as is. They are not anonymized.",-1))]),s("div",RV,[E(s("input",TV,null,512),[[r,{state:e.viewState,set:i=>{e.options.pdf=i},value:e.options?.pdf,form:"defaultsForm",options:{}}]]),t[17]||(t[17]=s("label",{class:"form-check-label",for:"pdf"},"Display PDFs",-1)),t[18]||(t[18]=s("small",{class:"form-text text-muted"},"PDFs are shown as is. They are not anonymized.",-1))]),s("div",OV,[E(s("input",AV,null,512),[[r,{state:e.viewState,set:i=>{e.options.notebook=i},value:e.options?.notebook,form:"defaultsForm",options:{}}]]),t[19]||(t[19]=s("label",{class:"form-check-label",for:"notebook"},"Display notebooks",-1)),t[20]||(t[20]=s("small",{class:"form-text text-muted"},"Render Jupyter notebooks instead of raw JSON.",-1))])])]),s("section",IV,[t[31]||(t[31]=s("div",{class:"paper-section-eyebrow"},"Features",-1)),s("div",VV,[s("div",PV,[E(s("input",qV,null,512),[[r,{state:e.viewState,set:i=>{e.options.page=i},value:e.options?.page,form:"defaultsForm",options:{}}]]),t[23]||(t[23]=s("label",{class:"form-check-label",for:"page"},"GitHub Pages",-1)),t[24]||(t[24]=s("small",{class:"form-text text-muted"},"Serve an anonymized copy of the repository's GitHub Pages site. Only pages built from the anonymized branch are supported.",-1))]),s("div",MV,[E(s("input",$V,null,512),[[r,{state:e.viewState,set:i=>{e.options.loc=i},value:e.options?.loc,form:"defaultsForm",options:{}}]]),t[25]||(t[25]=s("label",{class:"form-check-label",for:"loc"},"Lines of code",-1)),t[26]||(t[26]=s("small",{class:"form-text text-muted"},"Show the line count of the repository in the explorer.",-1))]),s("div",FV,[E(s("input",LV,null,512),[[r,{state:e.viewState,set:i=>{e.options.update=i},value:e.options?.update,form:"defaultsForm",options:{}}]]),t[27]||(t[27]=s("label",{class:"form-check-label",for:"update"},"Auto-update from GitHub",-1)),t[28]||(t[28]=s("small",{class:"form-text text-muted"},"Follow the branch and pull the latest commit automatically, at most once an hour.",-1))])]),s("div",UV,[t[30]||(t[30]=s("label",{class:"paper-field-label",for:"mode"},"Fetch mode",-1)),E((l(),d("select",zV,[...t[29]||(t[29]=[s("option",{value:"GitHubStream",selected:""},"Stream from GitHub on demand",-1),s("option",{value:"GitHubDownload"},"Download to Anonymous GitHub",-1)])])),[[r,{state:e.viewState,set:i=>{e.options.mode=i},value:e.options?.mode,form:"defaultsForm",options:{}}]]),s("small",HV," Download is faster for reviewers and enables every feature. Streaming is the only option above "+c(e.fmt?.humanFileSize(e.site_options?.MAX_REPO_SIZE*1024))+". ",1)])]),s("section",BV,[t[35]||(t[35]=s("div",{class:"paper-section-eyebrow"},"Expiration",-1)),s("div",GV,[t[33]||(t[33]=s("label",{class:"paper-field-label",for:"expiration"},"When an anonymization expires",-1)),E((l(),d("select",jV,[...t[32]||(t[32]=[s("option",{value:"redirect"},"Redirect visitors to the GitHub repository",-1),s("option",{value:"remove",selected:""},"Remove the anonymized repository",-1)])])),[[r,{state:e.viewState,set:i=>{e.options.expirationMode=i},value:e.options?.expirationMode,form:"defaultsForm",options:{}}]]),t[34]||(t[34]=s("small",{class:"form-text text-muted"}," The expiration date itself is chosen per anonymization. Redirecting reveals the source repository, so pick it only once the review is over. ",-1))])]),s("div",WV,[e.error?(l(),d("div",KV,[t[36]||(t[36]=s("i",{class:"fas fa-exclamation-circle","aria-hidden":"true"},null,-1)),t[37]||(t[37]=y()),s("span",{textContent:c(e.error)},null,8,YV)])):m("v-if",!0),s("div",xV,[s("button",{id:"save",type:"submit",class:"btn btn-ink",disabled:e.saving},[e.message?(l(),d("i",QV)):m("v-if",!0),y(c(e.saving?"Saving\u2026":e.message?"Saved":"Save defaults"),1)],8,JV),t[38]||(t[38]=s("span",{class:"paper-settings-hint"},"Applies to new anonymizations only. Existing ones keep their settings.",-1))])])],32)),[[n,e.viewState]]),s("section",XV,[t[46]||(t[46]=s("div",{class:"paper-section-eyebrow"},"Account",-1)),s("div",ZV,[e.user?.photo?(l(),d("img",{key:0,width:"40",height:"40",class:"rounded-circle",alt:"",src:e.safeUrl(e.user?.photo)},null,8,eP)):m("v-if",!0),s("div",tP,[s("div",sP,"@"+c(e.user?.username),1),t[39]||(t[39]=s("div",{class:"paper-account-meta"},"Signed in with GitHub. Anonymous GitHub only reads your repositories.",-1))]),t[40]||(t[40]=s("a",{class:"btn btn-outline-ink",href:"/api/user/logout",target:"_self"},"Sign out",-1))]),s("div",nP,[t[44]||(t[44]=s("div",{class:"paper-danger-head"},"Delete account",-1)),t[45]||(t[45]=s("p",{class:"paper-danger-copy"}," Removes all your anonymized repositories, gists, and pull requests, revokes the application's access to your GitHub account, and erases your personal data (username, email, access tokens). This cannot be undone. ",-1)),e.deleteError?(l(),d("div",oP,[t[41]||(t[41]=s("i",{class:"fas fa-exclamation-circle","aria-hidden":"true"},null,-1)),t[42]||(t[42]=y()),s("span",{textContent:c(e.deleteError)},null,8,rP)])):m("v-if",!0),s("button",{type:"button",class:"btn btn-outline-danger",onClick:t[1]||(t[1]=i=>e.deleteAccount()),disabled:e.deletingAccount},[t[43]||(t[43]=s("i",{class:"fas fa-trash-alt mr-1","aria-hidden":"true"},null,-1)),y(c(e.deletingAccount?"Deleting\u2026":"Delete my account"),1)],8,iP)])])])])])}var aP={class:"pr-page"},lP={class:"container paper-page pr-page-inner"},dP={class:"pr-header"},uP={class:"paper-page-title pr-title"},cP=["textContent"],pP={key:1,class:"text-muted"},fP=["href"],mP={class:"pr-header-meta"},hP={key:0,class:"pr-meta-item"},vP=["textContent"],yP={key:1,class:"pr-meta-item"},gP=["textContent"],bP={key:2,class:"pr-meta-item"},wP=["textContent"],kP={key:0,class:"pr-body-card"},_P={key:1,class:"paper-tabs",role:"tablist"},EP=["textContent"],CP={class:"paper-tab-content"},NP={key:0},SP=["innerHTML"],DP={key:1},RP={class:"pr-comments"},TP={class:"pr-comment"},OP={class:"pr-comment-head"},AP={key:0,class:"pr-comment-author"},IP=["textContent"],VP=["textContent"],PP={key:0,class:"pr-comment-body"},qP={key:0,class:"paper-table-empty"};function ml(e,t){let o=et("markdown");return l(),d("div",aP,[s("div",lP,[t[15]||(t[15]=s("div",{class:"paper-crumbs"},[s("a",{href:"/dashboard"},"Reviewer"),y(" \xA0/\xA0 "),s("span",{class:"here"},"Pull request")],-1)),s("header",dP,[s("h1",uP,[e.details?.title?(l(),d("span",{key:0,textContent:c(e.details?.title)},null,8,cP)):m("v-if",!0),e.details?.title?m("v-if",!0):(l(),d("span",pP,"Untitled pull request")),e.options?.isAdmin||e.options?.isOwner?(l(),d("a",{key:2,class:"btn btn-sm","aria-label":"Edit",href:e.safeUrl("/pull-request-anonymize/"+e.pullRequestId)},[...t[2]||(t[2]=[s("i",{class:"far fa-edit"},null,-1),s("span",{class:"d-none d-md-inline"}," Edit",-1)])],8,fP)):m("v-if",!0)]),s("div",mP,[s("span",{class:T(["paper-pill",{good:e.details?.merged,warn:e.details?.state=="open",bad:e.details?.state=="closed"&&!e.details?.merged}])},[s("span",{class:T(["status-dot",{"status-ready":e.details?.merged,"status-error":e.details?.state=="closed"&&!e.details?.merged}])},null,2),y(" "+c(e.details?.merged?"Merged":e.fmt.title(e.details?.state)),1)],2),e.details?.baseRepositoryFullName?(l(),d("span",hP,[t[3]||(t[3]=s("i",{class:"fab fa-github"},null,-1)),t[4]||(t[4]=y()),s("span",{textContent:c(e.details?.baseRepositoryFullName)},null,8,vP)])):m("v-if",!0),e.details?.updatedDate?(l(),d("span",yP,[t[5]||(t[5]=s("i",{class:"far fa-clock"},null,-1)),t[6]||(t[6]=y()),s("span",{textContent:c(e.fmt?.date(e.details?.updatedDate))},null,8,gP)])):m("v-if",!0),e.details?.anonymizeDate?(l(),d("span",bP,[t[7]||(t[7]=s("i",{class:"fas fa-user-secret"},null,-1)),t[8]||(t[8]=y(" Anonymized ",-1)),s("span",{textContent:c(e.fmt?.date(e.details?.anonymizeDate))},null,8,wP)])):m("v-if",!0)])]),e.details?.body?(l(),d("section",kP,[t[9]||(t[9]=s("div",{class:"paper-section-eyebrow"},"Description",-1)),Se(o,{content:e.details?.body},null,8,["content"])])):m("v-if",!0),e.details?.diff||e.details?.comments?(l(),d("nav",_P,[e.details?.diff?(l(),d("button",{key:0,class:T(["paper-tab",{active:e.tabState?.active=="diff"}]),type:"button",role:"tab",onClick:t[0]||(t[0]=r=>e.tabState.active="diff")},[...t[10]||(t[10]=[s("i",{class:"fas fa-code"},null,-1),y(" Diff ",-1)])],2)):m("v-if",!0),e.details?.comments?(l(),d("button",{key:1,class:T(["paper-tab",{active:e.tabState?.active=="comments"}]),type:"button",role:"tab",onClick:t[1]||(t[1]=r=>e.tabState.active="comments")},[t[11]||(t[11]=s("i",{class:"far fa-comment-dots"},null,-1)),s("span",{textContent:c(e.fmt.plural(e.details?.comments?.length,{0:"No comments",one:"1 comment",other:"{} comments"}))},null,8,EP)],2)):m("v-if",!0)])):m("v-if",!0),s("div",CP,[e.details?.diff&&e.tabState?.active=="diff"?(l(),d("div",NP,[s("div",{class:"pr-diff",innerHTML:e.sanitize(e.fmt?.diff(e.details?.diff))},null,8,SP)])):m("v-if",!0),e.details?.comments&&e.tabState?.active=="comments"?(l(),d("div",DP,[s("ul",RP,[(l(!0),d(x,null,re(e.details?.comments,(r,n)=>(l(),d("li",TP,[s("div",OP,[r?.author?(l(),d("span",AP,[t[12]||(t[12]=s("i",{class:"far fa-user"},null,-1)),t[13]||(t[13]=y(" @",-1)),s("span",{textContent:c(r?.author)},null,8,IP)])):m("v-if",!0),r?.updatedDate?(l(),d("span",{key:1,class:"pr-comment-date",textContent:c(e.fmt?.date(r?.updatedDate))},null,8,VP)):m("v-if",!0)]),r?.body?(l(),d("div",PP,[Se(o,{content:r?.body},null,8,["content"])])):m("v-if",!0)]))),256)),e.details?.comments?.length?m("v-if",!0):(l(),d("li",qP,[...t[14]||(t[14]=[s("i",{class:"far fa-comment-dots"},null,-1),s("span",null,"No comments on this pull request.",-1)])]))])])):m("v-if",!0)])])])}var MP={class:"container paper-page"},$P={class:"d-flex align-items-end justify-content-between flex-wrap",style:{gap:"12px"}},FP={class:"paper-page-title"},LP=["textContent"],UP={key:1},zP={class:"paper-settings-section"},HP={key:0,class:"paper-ratelimit-card",role:"status"},BP={class:"paper-error-msg"},GP=["aria-valuenow"],jP={class:"paper-progress-label"},WP=["textContent"],KP={key:0},YP=["textContent"],xP={class:"paper-progress-pct"},JP={key:2,class:"paper-error-card",role:"alert"},QP={key:0,class:"paper-error-msg"},XP={key:1,class:"paper-error-msg"},ZP={class:"paper-error-actions"},e3=["href"],t3={class:"paper-detail-grid"},s3={class:"detail-value"},n3=["href"],o3={key:0,class:"detail-label"},r3={key:1,class:"detail-value"},i3=["href"],a3={key:3,class:"anonymize-submit-bar"},l3=["href"],d3=["href"];function hl(e,t){return l(),d("div",MP,[t[16]||(t[16]=s("div",{class:"paper-crumbs"},[y("Anonymization \xA0/\xA0 "),s("span",{class:"here"},"Status")],-1)),s("div",$P,[s("div",null,[s("h1",FP,[t[0]||(t[0]=y("Status of ",-1)),s("em",null,c(e.repoId),1)]),t[1]||(t[1]=s("p",{class:"paper-page-lede"},"Track progress as your anonymization is prepared.",-1))]),s("span",{class:T(["status-pill",{"status-pill-ready":e.repo?.status=="ready","status-pill-error":e.repo?.status=="error","status-pill-removed":e.repo?.status=="removed"||e.repo?.status=="expired","status-pill-ratelimit":e.rateLimitResetAt}])},[s("span",{class:T(["status-dot",{"status-ready":e.repo?.status=="ready","status-error":e.repo?.status=="error","status-removed":e.repo?.status=="removed"||e.repo?.status=="expired","status-ratelimit":e.rateLimitResetAt}])},null,2),e.rateLimitResetAt?m("v-if",!0):(l(),d("span",{key:0,textContent:c(e.fmt?.title(e.repo?.status))},null,8,LP)),e.rateLimitResetAt?(l(),d("span",UP,"Rate limited")):m("v-if",!0)],2)]),s("section",zP,[t[14]||(t[14]=s("div",{class:"paper-section-eyebrow"},"Progress",-1)),t[15]||(t[15]=s("p",{class:"paper-section-copy"},[y(" The repository will take a few minutes to get ready, depending on its size. Visit the "),s("a",{href:"/faq"},"FAQ"),y(" for more information. ")],-1)),e.rateLimitResetAt?(l(),d("div",HP,[t[4]||(t[4]=s("div",{class:"paper-ratelimit-head"},[s("i",{class:"fas fa-hourglass-half"}),s("div",null,[s("div",{class:"paper-error-eyebrow"},"Temporarily paused"),s("div",{class:"paper-error-title"},"GitHub API rate limit reached")])],-1)),s("p",BP,[t[2]||(t[2]=y("Anonymization will resume automatically in ",-1)),s("strong",null,c(e.rateLimitCountdown),1),t[3]||(t[3]=y(". No action needed \u2014 the job is queued and will continue where it left off.",-1))])])):m("v-if",!0),e.repo?.status!="error"&&!e.rateLimitResetAt?(l(),d("div",{key:1,class:T(["paper-progress",{"paper-progress-ready":e.repo?.status=="ready"}]),role:"progressbar","aria-valuemin":"0","aria-valuemax":"100","aria-valuenow":e.progress},[s("div",{class:"paper-progress-bar",style:Ae("width: "+e.progress+"%;")},null,4),s("div",jP,[s("span",{textContent:c(e.fmt?.title(e.repo?.status))},null,8,WP),e.repo?.statusMessage?(l(),d("span",KP,[t[5]||(t[5]=y("\xA0\xB7\xA0",-1)),s("span",{textContent:c(e.repo?.statusMessage)},null,8,YP)])):m("v-if",!0),s("span",xP,c(e.progress||0)+"%",1)])],10,GP)):m("v-if",!0),e.repo?.status=="error"&&!e.rateLimitResetAt?(l(),d("div",JP,[t[9]||(t[9]=s("div",{class:"paper-error-head"},[s("i",{class:"fas fa-exclamation-triangle"}),s("div",null,[s("div",{class:"paper-error-eyebrow"},"Anonymization failed"),s("div",{class:"paper-error-title"},"Something went wrong while preparing this repository.")])],-1)),e.repo?.statusMessage?(l(),d("p",QP,c(e.fmt?.translate("ERRORS."+e.repo?.statusMessage)),1)):m("v-if",!0),e.repo?.statusMessage?m("v-if",!0):(l(),d("p",XP,"No additional details were reported. The most common causes are private repositories, missing branches, and rate limits.")),t[10]||(t[10]=s("ul",{class:"paper-error-hints"},[s("li",null,"Make sure the source URL points to a repository or pull request you can access."),s("li",null,"Check that the chosen branch and commit still exist on GitHub."),s("li",null,"If you just signed in, the access token may need a moment to propagate \u2014 try again.")],-1)),s("div",ZP,[s("a",{class:"btn btn-ink",href:e.safeUrl("/anonymize/"+e.repoId)},[...t[6]||(t[6]=[s("i",{class:"far fa-edit mr-1"},null,-1),y(" Edit anonymization",-1)])],8,e3),t[7]||(t[7]=s("a",{class:"btn",href:"/faq"},[s("i",{class:"far fa-question-circle mr-1"}),y(" Read the FAQ")],-1)),t[8]||(t[8]=s("a",{class:"btn",href:"https://github.com/tdurieux/anonymous_github/issues/new?template=issue_report.yml",target:"_blank",rel:"noopener"},[s("i",{class:"fas fa-bug mr-1","aria-hidden":"true"}),y(" Report a bug in Anonymous GitHub")],-1))])])):m("v-if",!0),s("div",t3,[t[11]||(t[11]=s("div",{class:"detail-label"},"Repository",-1)),s("div",s3,[s("a",{target:"_self",href:e.safeUrl("/r/"+e.repoId+"/")},"/r/"+c(e.repoId)+"/",9,n3)]),e.repo?.options?.page?(l(),d("div",o3,"GitHub Page")):m("v-if",!0),e.repo?.options?.page?(l(),d("div",r3,[s("a",{target:"_self",href:e.safeUrl("/w/"+e.repoId+"/")},"/w/"+c(e.repoId)+"/",9,i3)])):m("v-if",!0)]),e.repo?.status=="ready"?(l(),d("div",a3,[s("a",{class:"btn btn-ink",target:"_self",href:e.safeUrl("/r/"+e.repoId+"/")},[...t[12]||(t[12]=[s("i",{class:"far fa-eye mr-1"},null,-1),y(" Go to anonymized repository ",-1)])],8,l3),e.repo?.options?.page?(l(),d("a",{key:0,class:"btn",target:"_self",href:e.safeUrl("/w/"+e.repoId+"/")},[...t[13]||(t[13]=[s("i",{class:"fas fa-globe mr-1"},null,-1),y(" Go to anonymized GitHub page ",-1)])],8,d3)):m("v-if",!0)])):m("v-if",!0)]),t[17]||(t[17]=Ee('
Support Anonymous GitHub

A small team keeps this running. If it helps you, please consider contributing back \u2014 in code, ideas, or coffee.

',1))])}var xn={"partials/404.htm":Ga,"partials/admin/conferences.htm":ja,"partials/admin/errors.htm":Wa,"partials/admin/overview.htm":Ka,"partials/admin/queues.htm":Ya,"partials/admin/repositories.htm":xa,"partials/admin/user.htm":Ja,"partials/admin/users.htm":Qa,"partials/anonymize.htm":Xa,"partials/anonymizePullRequest.htm":Za,"partials/claim.htm":el,"partials/conference.htm":tl,"partials/conferences.htm":sl,"partials/dashboard.htm":nl,"partials/explorer.htm":ol,"partials/faq.htm":rl,"partials/gist.htm":il,"partials/header.htm":al,"partials/home.htm":ll,"partials/loading.htm":dl,"partials/newConference.htm":ul,"partials/pageView.htm":cl,"partials/pr-dashboard.htm":pl,"partials/profile.htm":fl,"partials/pullRequest.htm":ml,"partials/status.htm":hl};function vl(e,t){e==="partials/explorer.htm"&&(t.sidebarCollapsed=window.matchMedia?.("(max-width: 767px)").matches||!1),e==="partials/anonymize.htm"&&(t.prTabState={active:t.options.diff?"diff":"comments"}),e==="partials/gist.htm"&&(t.tabState={active:t.details?.files?"files":"comments"}),["partials/conferences.htm","partials/conference.htm"].includes(e)&&(t.statusLabels={ready:"Ready",expired:"Expired",removed:"Removed"});let r={"partials/dashboard.htm":["filteredItems",()=>t.items,"itemFilter"],"partials/conferences.htm":["filteredConferences",()=>t.conferences,"conferenceFilter"],"partials/conference.htm":["filteredRepositories",()=>t.conference?.repositories,"repoFiler"],"partials/admin/repositories.htm":["filteredRepositories",()=>t.repositories,"repoFiler"],"partials/admin/user.htm":["filteredRepositories",()=>t.repositories,"repoFiler"],"partials/admin/users.htm":["filteredUsers",()=>t.users,"userFiler"],"partials/admin/conferences.htm":["filteredConferences",()=>t.conferences]}[e];if(r){let n=tt(()=>t.fmt.orderBy(t.fmt.filter(r[1](),t[r[2]]),t.orderBy));Object.defineProperty(t,r[0],{configurable:!0,get:()=>n.value})}}function yl(e=(...t)=>fetch(...t)){async function t(r,n,i,a={}){let u=new URL(n,window.location.href);for(let[v,g]of Object.entries(a.params||{}))if(g!=null)for(let f of Array.isArray(g)?g:[g])u.searchParams.append(v,typeof f=="object"?JSON.stringify(f):f);let p=new AbortController,h;a.timeout?.then?a.timeout.then(()=>p.abort()):a.timeout&&(h=setTimeout(()=>p.abort(),a.timeout));try{let v={Accept:"application/json, text/plain, */*",...a.headers},g=document.cookie.match(/(?:^|;\s*)XSRF-TOKEN=([^;]*)/);g&&u.origin===window.location.origin&&(v["X-XSRF-TOKEN"]=decodeURIComponent(g[1]));let f;i!==void 0&&(i instanceof FormData?f=i:(v["Content-Type"]||(v["Content-Type"]="application/json;charset=utf-8"),f=JSON.stringify(i)));let w=await e(u.href,{method:r,headers:v,body:f,credentials:"same-origin",signal:p.signal}),k=await w.text(),b=k;if(a.transformResponse)b=a.transformResponse(k);else if(k&&(/json/i.test(w.headers.get("content-type")||"")||/^[\[{]/.test(k.trim())))try{b=JSON.parse(k)}catch{}let R={data:b,status:w.status,headers:N=>w.headers.get(N)};if(!w.ok)throw R;return R}catch(v){throw v.name==="AbortError"?{status:-1,data:null}:v}finally{clearTimeout(h)}}let o={};for(let r of["get","delete","head"])o[r]=(n,i)=>t(r.toUpperCase(),n,void 0,i);for(let r of["post","put","patch"])o[r]=(n,i,a)=>t(r.toUpperCase(),n,i,a);return o}var gl={resolve:e=>Promise.resolve(e),reject:e=>Promise.reject(e),all:e=>Promise.all(e),defer(){let e,t;return{promise:new Promise((r,n)=>{e=r,t=n}),resolve:e,reject:t}}};var bl=function(e){function t(o){return o=o||{used:0,total:0},o.unlimited=!o.total,o.percent=o.unlimited?0:Math.min(100,o.used*100/o.total),o.level=o.unlimited?"unlimited":o.percent>=95?"danger":o.percent>=80?"warn":"ok",o}return{decorate:t,load:function(){return e.get("/api/user/quota").then(o=>{let r=o.data||{};return r.storage=t(r.storage),r.file=t(r.file),r.repository=t(r.repository),r})}}};var Jo={};Fl(Jo,{bigNum:()=>c3,date:()=>_3,diff:()=>v3,filter:()=>w3,humanFileSize:()=>u3,humanTime:()=>p3,limitTo:()=>b3,number:()=>y3,orderBy:()=>k3,plural:()=>E3,statusLabel:()=>m3,statusMsg:()=>h3,title:()=>f3,uppercase:()=>g3});var u3=e=>window.humanFileSize(e),c3=(function(){return function(t){let o=Number(t)||0,r=Math.abs(o);return r<1e3?String(o):r<1e4?(o/1e3).toFixed(1).replace(/\.0$/,"")+"k":r<1e6?Math.round(o/1e3)+"k":r<1e7?(o/1e6).toFixed(1).replace(/\.0$/,"")+"M":Math.round(o/1e6)+"M"}})(),p3=(function(){return function(t){if(!t)return"never";t instanceof Date&&(t=Math.round((Date.now()-t)/1e3)),(typeof t=="string"||typeof t=="number")&&(t=Math.round((Date.now()-new Date(t))/1e3));var o=t<0?"from now":"ago";if(Math.abs(t)>7200*24){let p=new Date;return p.setSeconds(p.getSeconds()-t),"on "+p.toLocaleDateString(void 0,{day:"numeric",month:"short",year:"numeric"})}t=Math.abs(t);for(var r=[t/60/60/24/365,t/60/60/24/30,t/60/60/24/7,t/60/60/24,t/60/60,t/60,t],n=["year","month","week","day","hour","minute","second"],i=0;i1&&(u+="s"),a>=1)return a+" "+u+" "+o}return"0 seconds "+o}})(),f3=(function(){return function(e){if(!e)return e;e=e.toLowerCase();var t=e.split(" "),o=t.map(function(r){return r.charAt(0).toUpperCase()+r.substring(1,r.length)});return o.join(" ")}})(),m3=(function(){var e={ready:"Ready",error:"Error",expired:"Expired",expiring:"Expiring",removed:"Removed",removing:"Removing",queue:"Queued",download:"Downloading",downloaded:"Downloaded",preparing:"Preparing",anonymizing:"Anonymizing"};return function(t){if(!t)return"";if(e[t])return e[t];var o=String(t).replace(/[_-]+/g," ").toLowerCase();return o.charAt(0).toUpperCase()+o.slice(1)}})(),h3=(function(){var e={branch_not_found:"Branch not found on GitHub",repo_not_found:"Repository not found on GitHub",repository_not_found:"Repository not found on GitHub",repo_not_accessible:"Repository is not accessible with your token",pr_not_found:"Pull request not found on GitHub",gist_not_found:"Gist not found on GitHub",commit_not_found:"Commit not found on GitHub",repo_too_big:"Repository exceeds the size limit",quota_exceeded:"Storage quota exceeded",incomplete_record:"Incomplete record: missing identifier"};return function(t){if(!t)return t;var o=t.match(/^rate_limited:(\d+)$/);if(o){var r=Math.max(0,Math.ceil((parseInt(o[1],10)-Date.now())/1e3));if(r<=0)return"Rate limited \u2014 resuming soon";var n=Math.floor(r/60),i=r%60;return"Rate limited \u2014 retrying in "+(n>0?n+"m "+i+"s":i+"s")}if(e[t])return e[t];if(/^[a-z0-9]+(_[a-z0-9]+)+$/.test(t)){var a=t.replace(/_/g," ");return a.charAt(0).toUpperCase()+a.slice(1)}return t}})(),v3=(function(e){let t=r=>r.replace(/&/g,"&").replace(//g,">");function o(r,n){if(!n)return;let i=n.newPath&&n.newPath!=="/dev/null"?n.newPath:n.oldPath||"",a=n.oldPath==="/dev/null"?"added":n.newPath==="/dev/null"?"deleted":n.oldPath&&n.newPath&&n.oldPath!==n.newPath?"renamed":"modified";if(r.push('
'),r.push('
'+t(i)+''+a+"
"),n.lines.length){r.push('');for(let u of n.lines)r.push('");r.push("
'+(u.oldNo||"")+''+(u.newNo||"")+''+(u.kind==="add"?"+":u.kind==="remove"?"-":u.kind==="hunk"?"@":"")+''+t(u.text)+"
")}r.push("
")}return function(r){if(!r)return r;let n=[],i=null,a=0,u=0,p=()=>(i||(i={oldPath:"",newPath:"",lines:[]}),i),h=()=>{i&&(i.lines.length||i.oldPath||i.newPath)&&(o(n,i),i=null)},v=r.split(` +`);for(let g=0;ge});function y3(e,t){return e==null?"":Number(e).toLocaleString(void 0,t==null?{}:{minimumFractionDigits:t,maximumFractionDigits:t})}function g3(e){return String(e??"").toUpperCase()}function b3(e,t,o=0){return(e||[]).slice(o,o+t)}function w3(e,t){return Array.isArray(e)?typeof t=="function"?e.filter(t):e:[]}function k3(e,t){if(!t)return e||[];let o=Array.isArray(t)?t:[t];return[...e||[]].sort((r,n)=>{for(let i of o){let a=i[0]==="-"?-1:1;i=i.replace(/^[+-]/,"");let u=i.split(".").reduce((h,v)=>h?.[v],r),p=i.split(".").reduce((h,v)=>h?.[v],n);if(typeof u=="string"&&(u=u.toLowerCase()),typeof p=="string"&&(p=p.toLowerCase()),u!==p)return(u==null?-1:p==null?1:ur[n])}function E3(e,t){return(t?.[e]??t?.[e===1?"one":"other"]??"").replace(/\{\}/g,e??0)}var wl={ERRORS:{repository_job_cancelled:"The repository changed or was removed while processing.",storage_delete_failed:"Unable to remove cached files. Please try again later.",unknown_error:"Unknown error, contact the admin.",unreachable:"Anonymous GitHub is unreachable, contact the admin.",request_error:"Unable to download the file, check your connection or contact the admin.",not_found:"The requested resource could not be found.",not_connected:"You must be logged in to perform this action.",not_authorized:"You do not have permission to perform this action.",unable_to_connect_user:"Unable to connect your account. Please try again later.",user_not_found:"The requested user could not be found.",user_banned:"Your account has been banned. Contact the admin for more information.",repo_access_limited:"GitHub blocked access because the repository's organization restricts third-party OAuth apps. Ask an org owner to approve Anonymous GitHub under Settings \u2192 Third-party Access \u2192 OAuth app policy, or anonymize a personal fork instead.",repo_saml_enforcement:"The repository's organization enforces SAML single sign-on. Authorize your token for that organization (GitHub \u2192 Settings \u2192 Applications, or re-run the org's SSO sign-in), then retry. Alternatively, anonymize a personal fork.",repo_not_found:"The repository was not found on GitHub. Check the URL and spelling, make sure you are signed in to the account that can see it, and confirm the repo isn't hidden under an org that restricts third-party app access.",repo_empty:"The selected branch has no commits on GitHub. Push at least one commit, or pick a different branch, then retry.",repo_not_accessible:"Anonymous GitHub cannot access this repository. Verify the repository exists and that Anonymous GitHub has been authorized for the owning organization.",repository_archived:"This repository has been archived and its files are no longer available.",repository_expired:"The repository is expired.",invalid_status:"This action cannot be performed while the resource is in its current state.",repository_not_ready:"Anonymous GitHub is still processing the repository, it can take several minutes.",repository_not_accessible:"This repository is currently not accessible.",repo_is_updating:"Anonymous GitHub is still processing the repository, it can take several minutes.",invalid_repo:"The provided repository is not valid.",invalid_source_repository:"The repository source name is invalid; expected the form 'owner/name'.",repoId_not_defined:"A repository ID must be provided.",repoUrl_not_defined:"The repository URL needs to be defined.",source_not_provided:"A repository source must be provided.",github_rate_limit_exceeded:"GitHub temporarily blocked the request because we hit its API rate limit. Wait a few minutes and try again. If the problem persists and you contact GitHub Support, include the request ID and timestamp shown in GitHub's response (the 'X-GitHub-Request-Id' header).",rate_limited:"GitHub API rate limit reached. The repository will be available shortly \u2014 please wait a moment and refresh.",repoId_already_used:"The repository ID is already used.",invalid_repoId:"The format of the repository ID is invalid.",unsupported_source:"The repository source type is not supported.",branch_not_specified:"The branch is not specified.",branch_not_found:"The branch of the repository cannot be found.",commit_not_specified:"A commit must be specified.",commit_not_found:"The configured commit no longer exists in the source repository. It may have been force-pushed, rebased, or removed.",repo_renamed:"The source repository appears to have been renamed or moved on GitHub. Please refresh and try again \u2014 the cached name has been updated.",invalid_commit_format:"The commit hash format is invalid. It must be a hexadecimal string.",pull_request_not_found:"The requested pull request could not be found.",pull_request_expired:"This pull request has expired and is no longer available.",pull_request_not_ready:"This pull request is still being prepared. Please try again shortly.",pull_request_not_available:"This pull request is currently not available.",invalid_pullRequestId:"The pull request ID is invalid.",pullRequestId_already_used:"This pull request ID is already in use. Please choose a different one.",repository_not_specified:"A repository must be specified for this pull request.",pullRequestId_not_specified:"A pull request ID must be specified.",pullRequestId_is_not_a_number:"The source pull request ID must be a number.",options_not_provided:"Anonymization options are mandatory.",terms_not_specified:"Anonymization terms must be specified.",invalid_terms_format:"Terms are in an invalid format.",missing_content:"No content was provided to the anonymization preview.",unable_to_anonymize:"An error happened during the anonymization process. Please try later or report the issue.",non_supported_mode:"The selected anonymization mode is invalid, only download and stream are supported.",invalid_path:"The provided path is invalid or missing.",path_not_specified:"A file path must be specified.",path_not_defined:"The file path has not been resolved yet.",invalid_file_path:"The requested file path is not valid.",invalid_request:"The request is missing required fields or is malformed.",no_file_selected:"Please select a file.",file_not_found:"The requested file is not found.",file_not_accessible:"The requested file is not accessible.",file_not_supported:"The file type is not supported. Anonymous GitHub cannot handle it.",file_too_big:"The file size exceeds the limit of Anonymous GitHub.",is_folder:"The path points to a folder.",folder_not_supported:"The path points to a folder. Please select a file.",unable_to_write_file:"Unable to write file on disk.",download_not_enabled:"Repository downloads are not enabled on this server.",unable_to_download:"The repository could not be downloaded. Please try again later.",s3_config_not_provided:"Object storage has not been configured on this server.",stats_unsupported:"Statistics are only supported in download mode.",branches_not_found:"The requested branch is not found.",readme_not_available:"No README for the repository is found.",page_not_supported_on_different_branch:"GitHub Pages is served from a different branch than the one selected. Pick the branch that GitHub Pages is configured to use.",page_not_activated:"GitHub Pages is not enabled on this repository. Enable it in the repository settings on GitHub before anonymizing.",is_removed:"This resource has been removed and is no longer available.",conf_name_missing:"A conference name is required.",conf_id_missing:"A conference ID is required.",conf_id_used:"This conference ID is already in use. Please choose a different one.",conf_start_date_missing:"A start date is required for the conference.",conf_end_date_missing:"An end date is required for the conference.",conf_start_date_invalid:"The start date must be before the end date.",conf_end_date_invalid:"The end date must be in the future.",invalid_plan:"The selected plan is not valid.",conference_not_found:"The requested conference could not be found.",conf_not_found:"The requested conference could not be found.",conf_not_activated:"The conference is not activated.",billing_missing:"Billing information is required for this plan.",billing_name_missing:"A billing name is required.",billing_email_missing:"A billing email is required.",billing_address_missing:"A billing address is required.",billing_city_missing:"A billing city is required.",billing_zip_missing:"A billing ZIP/postal code is required.",billing_country_missing:"A billing country is required.",queue_not_found:"The specified queue could not be found.",job_not_found:"The specified job could not be found in the queue.",error_retrying_job:"An error occurred while retrying the job.",gist_expired:"The gist is expired.",gist_not_ready:"Anonymous GitHub is still processing the gist, it can take several minutes.",gist_not_found:"The requested gist could not be found.",gist_not_available:"This gist is currently not available.",invalid_gistId:"The format of the gist ID is invalid.",gistId_not_specified:"A gist ID must be provided.",gistId_already_used:"The gist ID is already used.",missing_token:"An authentication token is required.",invalid_token:"The provided authentication token is invalid.",login_failed:"Login failed. Please try again.",server_error:"An unexpected server error occurred. Please try again later.",username_not_defined:"A username must be provided.",github_user_not_found:"The specified GitHub user could not be found.",cannot_coauthor_self:"You cannot add yourself as a co-author.",storage_write_size_mismatch:"The downloaded file was smaller than expected. The upstream source may have returned an incomplete response \u2014 please try again.",storage_read_error:"An error occurred while reading the file from storage \u2014 please try again.",upstream_error:"A temporary error occurred while fetching from GitHub \u2014 please try again.",token_expired:"Your GitHub access token has expired. Please log out and log in again to refresh it.",job_is_active:"This job is currently running \u2014 wait for it to finish or remove it first."},WARNINGS:{page_not_enabled_on_repo:"GitHub Pages is not enabled on this repository. Enable it in the repository's Settings \u2192 Pages on GitHub, then refresh.",page_branch_mismatch:"GitHub Pages on this repository is served from the '{{pageBranch}}' branch, but you selected '{{selectedBranch}}'. Switch the branch above to '{{pageBranch}}' to anonymize the Pages site.",folder_truncated:"This folder has more than 10,000 entries; only a partial listing is shown.",repo_truncated:"Some folders in this repository have too many files to be fully listed. Affected folders are marked with a warning icon.",submodules_not_included:"This repository uses git submodules. Submodule contents are not included in the anonymized repository and appear as empty folders."}};var kl={name:"htmlDoc",props:["content","baseUrl","allowScripts"],setup(e){let t=Xe(null);return It(()=>{let r=[t.value][0];r.classList.add("html-doc");function n(){r.innerHTML="";let i=e.content;if(typeof i!="string")return;let a=document.createElement("iframe");a.className="html-doc-frame",a.setAttribute("title","Rendered HTML document");let u=["allow-popups","allow-popups-to-escape-sandbox"];e.allowScripts&&u.push("allow-scripts","allow-forms","allow-modals"),a.setAttribute("sandbox",u.join(" ")),a.setAttribute("referrerpolicy","no-referrer"),r.appendChild(a);let p="";e.baseUrl&&(p=''),a.srcdoc=p+i}He(()=>e.content,n,{immediate:!0}),He(()=>e.baseUrl,n,{immediate:!0}),He(()=>e.allowScripts,n,{immediate:!0})}),()=>Ne("html-doc",{ref:t})}};var _l={name:"pdfviewer",props:["src"],setup(e){let t=Xe(null);return It(()=>{let o=[t.value],r=400,n=[.5,.75,1,1.25,1.5,2,3],i=1e3,a=o[0];a.classList.add("pdf-viewer");let u=null,p=[],h=!1,v=null,g=1,f=1,w=0,k=0,b=612/792,R=0,N=document.createElement("div");N.className="pdf-toolbar";let D=document.createElement("div");D.className="pdf-pages",D.tabIndex=0,D.setAttribute("aria-label","PDF pages"),a.appendChild(N),a.appendChild(D);function I(L,W,fe){let Ce=document.createElement("button");return Ce.type="button",Ce.className="pdf-toolbar-btn",Ce.title=W,Ce.setAttribute("aria-label",W),Ce.innerHTML='',Ce.addEventListener("click",fe),Ce}let C=I("fa-chevron-up","Previous page",function(){he(f-1)}),O=I("fa-chevron-down","Next page",function(){he(f+1)}),P=document.createElement("input");P.type="text",P.className="pdf-toolbar-page",P.setAttribute("aria-label","Page number"),P.title="Page number \u2014 type a page and press Enter",P.addEventListener("keydown",function(L){L.key==="Enter"&&(he(parseInt(P.value,10)),P.blur())}),P.addEventListener("blur",function(){P.value=String(f)});let ee=document.createElement("span");ee.className="pdf-toolbar-count";let J=I("fa-search-minus","Zoom out",function(){Fe(n[Math.max(0,ie()-1)])}),K=I("fa-search-plus","Zoom in",function(){Fe(n[Math.min(n.length-1,ie()+1)])}),U=document.createElement("button");U.type="button",U.className="pdf-toolbar-btn pdf-toolbar-zoom",U.title="Reset zoom to fit the width",U.setAttribute("aria-label","Reset zoom to fit the width"),U.addEventListener("click",function(){Fe(1)}),N.appendChild(C),N.appendChild(O);let de=document.createElement("span");de.className="pdf-toolbar-group",de.appendChild(P),de.appendChild(ee),N.appendChild(de);let se=document.createElement("span");se.className="pdf-toolbar-group pdf-toolbar-right",se.appendChild(J),se.appendChild(U),se.appendChild(K),N.appendChild(se);function ie(){let L=0;for(let W=0;W=L,U.textContent=Math.round(g*100)+"%",J.disabled=ie()===0,K.disabled=ie()===n.length-1}function we(L){let W=p[L-1];W&&(D.scrollTop+=W.getBoundingClientRect().top-D.getBoundingClientRect().top)}function he(L){if(!u||isNaN(L))return;let W=Math.min(Math.max(1,L),u.numPages);p[W-1]&&(we(W),f=W,w=W,k=Date.now()+800,ce(),Z())}function me(){if(!p.length||Date.now()Ce||S.bottome.src,ne,{immediate:!0}),ss(function(){D.removeEventListener("scroll",oe),$(window).off("resize",F),ae()})}),()=>Ne("pdfviewer",{ref:t})}};var Cl={props:["content","terms","options"],setup(e){let t=Xe(null),o=()=>{t.value.innerHTML=renderMD(e.content||"",window.location.pathname+"/../")};return It(()=>{o(),He(()=>[e.content,e.terms,e.options],o,{deep:!0})}),()=>Ne("markdown",{ref:t})}},N3={props:["file","terms","options"],setup(e){let t=Xe(null),o=()=>_t(()=>t.value?.querySelectorAll("pre code").forEach(r=>window.Prism?.highlightElement(r)));return It(o),He(()=>[e.file?.content,e.terms,e.options],o,{deep:!0}),()=>{let r=e.file||{},n=(r.filename||"").split(".").pop().toLowerCase();if(["md","markdown"].includes(n)||r.language==="Markdown")return Ne("gist-file",{ref:t},Ne(Cl,{content:r.content,terms:e.terms,options:e.options}));let i={js:"javascript",jsx:"javascript",ts:"javascript",typescript:"javascript",py:"python",html:"markup",xml:"markup",svg:"markup",sh:"bash"},a=(r.language||n||"none").toLowerCase();return Ne("gist-file",{ref:t},Ne("pre",{class:"line-numbers"},Ne("code",{class:"language-"+(i[a]||a),key:r.content},r.content||"")))}}},S3={props:["file","content"],setup(e){let t=Xe(null),o=0,r,n=async()=>{let i=++o;r?.abort(),r=new AbortController;try{let a=e.content?JSON.parse(e.content):await fetch(e.file?.download_url||e.file,{signal:r.signal}).then(u=>{if(!u.ok)throw Error("Notebook request failed");return u.json()});if(await Wt("notebook"),i!==o)return;t.value.innerHTML=DOMPurify.sanitize(nb.parse(a).render()),t.value.querySelectorAll("pre code").forEach(u=>window.Prism?.highlightElement(u))}catch(a){i===o&&a.name!=="AbortError"&&(t.value.textContent="Unable to render the notebook.")}};return It(()=>{n(),He(()=>[e.file,e.content],n)}),ss(()=>{o++,r?.abort()}),()=>Ne("notebook",{ref:t})}},D3={props:["stats"],setup(e){return()=>{let t=Object.entries(e.stats||{}).filter(([,r])=>r.code),o=t.reduce((r,[,n])=>r+n.code,0);return Ne("loc",t.map(([r,n])=>Ne("div",{class:"lang",title:`${r}: ${n.code.toLocaleString()} lines`,style:{width:n.code*100/o+"%",background:langColors[r]}})))}}},Nl={Markdown:Cl,GistFile:N3,Notebook:S3,Loc:D3,HtmlDoc:kl,Pdfviewer:Zr(async()=>(await Wt("pdf"),pdfjsLib.GlobalWorkerOptions.workerSrc="/script/external/pdf.worker.js",_l))},Sl={async mounted(e,{value:t}){e._editorValue=t;try{if(await tr(),e._editorDisposed)return;let o=e._editorValue,r=ace.edit(e);e._editor=r,r.setValue(String(o.content??""),-1),El(e,o.options),o.options?.onLoad?.(r)}catch(o){e._editorDisposed||(e.textContent=o.message)}},updated(e,{value:t}){e._editorValue=t,e._editor&&(e._editor.getValue()!==String(t.content??"")&&e._editor.setValue(String(t.content??""),-1),El(e,t.options))},beforeUnmount(e){e._editorDisposed=!0,e._editor?.destroy()}};function El(e,t={}){t.mode&&e._editor.session.setMode("ace/mode/"+t.mode),t.theme&&e._editor.setTheme("ace/theme/"+t.theme),e._editor.setReadOnly(t.readOnly!==!1)}var Dl={mounted(e){if(!window.IntersectionObserver)return;let t=[...e.querySelectorAll('a[href^="#"]')],o=new Set,r=new IntersectionObserver(n=>{n.forEach(a=>a.isIntersecting?o.add(a.target.id):o.delete(a.target.id));let i=t.find(a=>o.has(a.hash.slice(1)));t.forEach(a=>a.classList.toggle("active",a===i))},{rootMargin:"-20% 0px -60% 0px",threshold:0});_t(()=>t.forEach(n=>{let i=document.getElementById(n.hash.slice(1));i&&r.observe(i)})),e._observer=r},beforeUnmount(e){e._observer?.disconnect()}};function R3(e){let t={children:[]},o=new Map([["",t]]);function r(n){if(o.has(n))return o.get(n);let i=n.lastIndexOf("/"),a=r(i<0?"":n.slice(0,i)),u={name:n.slice(i+1),children:[]};return o.set(n,u),a.children.push(u),u}for(let n of e||[]){let i=n.path?`${n.path}/${n.name}`:n.name;n.size==null?r(i):r(n.path||"").children.push({...n})}return t.children}var Rl={name:"FileTree",props:["file","parent","searchQuery","searchResults","page"],setup(e){let t=Ea(),o=Xe(null),r=Ue(Object.create(null)),n=null,i=tt(()=>R3(e.file)),a=()=>"/"+(Array.isArray(t.params.path)?t.params.path.join("/"):t.params.path||"");He(()=>[t.params.repoId,t.params.path],()=>{let f="";a().split("/").filter(Boolean).forEach(w=>{f+="/"+w,r[f]=!0})},{immediate:!0});let u=tt(()=>{if(!e.searchQuery||!e.searchResults)return null;let f=new Set,w=new Set;return e.searchResults.forEach(k=>{f.add(k.path?`${k.path}/${k.name}`:k.name);let b="";(k.path||"").split("/").filter(Boolean).forEach(R=>{b=b?b+"/"+R:R,w.add(b)})}),{files:f,folders:w}}),p=()=>[...o.value.querySelectorAll("li > a")],h=f=>{o.value.querySelector(".tree-focused")?.classList.remove("tree-focused"),f&&(n=f.dataset.path,f.classList.add("tree-focused"),f.scrollIntoView?.({block:"nearest"}),o.value.focus())};function v(f){let w=p(),k=o.value.querySelector(".tree-focused")||w[0],b=w.indexOf(k);if(!["ArrowDown","ArrowUp","ArrowRight","ArrowLeft","Enter"].includes(f.key)||(f.preventDefault(),f.key==="ArrowDown"&&h(w[(b+1)%w.length]),f.key==="ArrowUp"&&h(w[(b-1+w.length)%w.length]),!k))return;let R=k.closest("li");f.key==="ArrowRight"&&R.classList.contains("folder")&&(R.classList.contains("open")?h(R.querySelector(":scope > ul > li > a")):k.click()),f.key==="ArrowLeft"&&(R.classList.contains("folder")&&R.classList.contains("open")?k.click():h(R.parentElement.closest("li.folder")?.querySelector(":scope > a"))),f.key==="Enter"&&k.click()}function g(f,w=""){let k=[...f].sort((b,R)=>+!!R.children-+!!b.children||b.name.localeCompare(R.name));return Ne("ul",k.flatMap(b=>{let R=b,N=R.name,D=(w+"/"+N).slice(1);if(u.value&&!u.value.files.has(D)&&!u.value.folders.has(D))return[];for(;R.children?.length===1;)R=R.children[0],N+="/"+R.name;let I=w+"/"+N,C=!!R.children,O=u.value?r[I]!==!1:!!r[I],P=C&&e.page?.options?.truncatedFolders?.includes(I.slice(1)),ee=e.page?.fileCounts?.[I.slice(1)]||0,J=Ne("span",{class:C?"tree-icon-folder":"tree-icon-file"}),K=Ne("span",{class:"tree-name"},N),U=se=>{h(se.currentTarget),C&&(se.preventDefault(),r[I]=!O,r[I]&&!R.children.length&&e.page.getFiles(I.slice(1)),_t(()=>h(p().find(ie=>ie.dataset.path===n))))},de=Ne("a",{"data-path":I,href:C?void 0:`/r/${encodeURIComponent(t.params.repoId)}${encodePathForUrl(I)}`,class:{"tree-focused":n===I},onClick:U},[C?Ne("span",{class:"tree-toggle"}):w?Ne("span",{class:"tree-spacer"}):null,J,K,P?Ne("span",{class:"truncated-warning",title:e.page.fmt.translate("WARNINGS.folder_truncated")},Ne("i",{class:"fas fa-exclamation-triangle"})):null,C&&ee?Ne("span",{class:"tree-count"},ee):null]);return Ne("li",{key:I,class:{file:!0,folder:C,open:O,active:a()===I,truncated:P},title:C?"":`Size: ${humanFileSize(R.size||0)}`},[de,C&&O?g(R.children,I):null])}))}return()=>Ne("tree",{ref:o,tabindex:0,onKeydown:v},e.file?.length?u.value?.files.size===0?Ne("div",{class:"tree-search-empty"},"No files found"):g(i.value):"Empty repository")}};function Ol(){return Ue({errors:{},dirty:!1,touched:!1,submitted:!1,get invalid(){return Object.values(this.errors).some(Boolean)},setValidity(e,t){this.errors[e]=!t},setDirty(){this.dirty=!0}})}function Al(e,t){if(!e[t]){let o=Ol();Object.defineProperty(o,"invalid",{get(){return Object.values(o.errors).some(Boolean)||Object.keys(o).some(r=>r!=="invalid"&&o[r]&&typeof o[r]=="object"&&o[r].invalid)}}),e[t]=o}return e[t]}var Il={beforeMount(e,{value:t}){e._formState=Al(t,e.name),e.addEventListener("submit",o=>o.preventDefault())}};function T3(e){return e instanceof Date?isNaN(e)?"":`${e.getFullYear()}-${String(e.getMonth()+1).padStart(2,"0")}-${String(e.getDate()).padStart(2,"0")}`:e||""}function Tl(e){let t=e._field.binding.value;e.type==="checkbox"?e.checked=!!t:e.type==="radio"?e.checked=t==(e._value??e.value):e._field.timer||(e.value=e.type==="date"?T3(t):t??""),Qo(e)}function Qo(e){let t=e._field.validation;if(!t)return;let o=e.validity;for(let[r,n]of Object.entries({required:o.valueMissing,pattern:o.patternMismatch,min:o.rangeUnderflow,max:o.rangeOverflow,date:o.badInput,email:o.typeMismatch&&e.type==="email",url:o.typeMismatch&&e.type==="url"}))t.setValidity(r,e.disabled||!n)}var Vl={beforeMount(e,{value:t}){var a;let o=t.form&&Al(t.state,t.form),r=o&&e.name?o[a=e.name]||(o[a]=Ol()):null;e._field={binding:t,validation:r,timer:null};let n=()=>{clearTimeout(e._field.timer),e._field.timer=null;let u=e._field.binding,p=e.type==="checkbox"?e.checked:e._value??e.value;if(!(e.type==="radio"&&!e.checked)){if((e.type==="number"||e.type==="range")&&(p=e.value===""?null:Number(e.value)),e.type==="date"&&(p=e.value?new Date(e.value+"T00:00:00"):null),r){r.setDirty();for(let h of Object.keys(r.errors))r.setValidity(h,!0)}u.set(p),Qo(e),u.change?.()}};e._field.commit=n;let i=u=>{let p=e._field.binding.options?.debounce||0,h=typeof p=="number"?p:p[u.type]??p.default??0;clearTimeout(e._field.timer),h?e._field.timer=setTimeout(n,h):n()};e.addEventListener(e.tagName==="SELECT"||["checkbox","radio","date"].includes(e.type)?"change":"input",i),e.addEventListener("blur",()=>{r&&(r.touched=!0),e._field.timer&&n()})},mounted:Tl,updated(e,{value:t}){e._field.binding=t,Tl(e)},beforeUnmount(e){clearTimeout(e._field.timer);let{binding:t,validation:o}=e._field,r=t.form&&t.state[t.form];r&&r[e.name]===o&&delete r[e.name]}};function Pl(e,t){let o=e.target.closest("form");if(o?._formState&&(o._formState.submitted=!0),o?.querySelectorAll("input, select, textarea").forEach(r=>{r._field?.timer&&r._field.commit(),r._field&&Qo(r)}),!(o&&!o.checkValidity()))return t()}var ql=Symbol("session"),O3=/^\/(w|api|github)(\/|$)/;function Ml(e,t={}){let o=e?.split(".").reduce((r,n)=>r?.[n],wl);return String(o??e??"").replace(/{{\s*([^}]+?)\s*}}/g,(r,n)=>t[n]??"")}var A3={...Jo,translate:Ml};function I3(e){if(e==null||e==="")return e;try{let t=new URL(e,window.location.href);return["http:","https:","mailto:","tel:","blob:"].includes(t.protocol)?e:void 0}catch{return}}function V3(e="#app",t={}){let o=new Map,r=yl(t.fetch),n,i;function a(){let h=mt(),v={url(f){return f===void 0?i.currentRoute.value.fullPath:(i.push(f),v)},path(){return i.currentRoute.value.path},search(){return i.currentRoute.value.query}},g=new Proxy({},{get(f,w){let k=i.currentRoute.value.params[w];return Array.isArray(k)?k.join("/"):k}});return{http:r,...h,location:v,params:g,window,promises:gl,html:{trustAsHtml:f=>f},translate:(f,w)=>Promise.resolve(Ml(f,w)),quotaService:bl(r)}}function u(h){return{name:h.template,setup(){let v=Ko(lt(ql),o);h.setup(v,a()),vl(h.template,v);let g=[];return()=>xn[h.template](v,g)}}}i=_a({history:t.history||ba(),routes:Ba.map(h=>h.redirect?h:{path:h.path,component:u(h),meta:{title:h.title,preserveExplorer:h.preserveExplorer}})});let p=Ui({setup(){n=Ko(null,o),n.fmt=A3,n.window=window,n.Math=Math,n.sanitize=f=>DOMPurify.sanitize(f??""),n.submitForm=Pl,n.safeUrl=I3;let h=a();Na(n,h.http,h.location,h.timeout),ts(ql,n),He(()=>n.title,f=>{document.title=f||"Anonymous GitHub"});let v=[],g=f=>{let w=f.target.closest?.("a[href]");if(f.defaultPrevented||f.button!==0||f.metaKey||f.ctrlKey||f.shiftKey||f.altKey||!w||w.hasAttribute("download")||w.target&&w.target!=="_self"||w.dataset.toggle||w.getAttribute("href").startsWith("#"))return;let b=new URL(w.href,window.location.href);b.origin!==window.location.origin||O3.test(b.pathname)||(f.preventDefault(),i.push(b.pathname+b.search+b.hash),$("#navbarSupportedContent.show").collapse("hide"))};return document.addEventListener("click",g),ss(()=>document.removeEventListener("click",g)),()=>[Ne("header",{class:"app-header"},xn["partials/header.htm"](n,v)),Ne("main",{class:"app-view align-items-stretch w-100"},Ne(Wo,null,{default:({Component:f,route:w})=>f?Ne(f,{key:w.meta.preserveExplorer?w.matched[0]?.path:w.path}):null})),Ne("div",{class:"position-fixed p-3",style:{zIndex:999999999,right:0,bottom:0}},n.toasts.map((f,w)=>Ne("div",{class:"toast show",role:"alert","aria-live":"assertive","aria-atomic":"true",key:w},[Ne("div",{class:"toast-header"},[Ne("strong",{class:"mr-auto"},f.title),Ne("button",{type:"button",class:"ml-2 mb-1 close","aria-label":"Close",onClick:()=>n.removeToast(f)},"\xD7")]),Ne("div",{class:"toast-body"},f.body)])))]}});for(let[h,v]of Object.entries(Nl))p.component(h,v);return p.component("Tree",Rl),p.component("PartialView",{props:["name","state"],setup(h){let v=[];return()=>xn[h.name](h.state,v)}}),p.directive("field",Vl),p.directive("form",Il),p.directive("code-editor",Sl),p.directive("paper-scrollspy",Dl),p.use(i),i.beforeEach(async h=>{n?.emit("routeLeave"),/^\/(r|repository|anonymize|pull-request-anonymize|gist-anonymize|pr|gist)(\/|$)/.test(h.path)&&await Wt("markdown"),/^\/(r|repository)\//.test(h.path)&&await Wt("org")}),i.afterEach(h=>{if(!n)return;n.title=h.meta.title,n.emit("routeChange",{title:h.meta.title}),n.emit("routeUpdate",{title:h.meta.title});let v=document.querySelector(".app-view");!h.meta.preserveExplorer&&v&&(v.scrollTop=0)}),p.mount(e),{app:p,router:i,state:n}}document.querySelector("#app")&&(window.anonymousApp=V3());})(); /*! Bundled license information: @vue/shared/dist/shared.esm-bundler.js: diff --git a/test/asset-build.test.js b/test/asset-build.test.js index 711160c..e5d992c 100644 --- a/test/asset-build.test.js +++ b/test/asset-build.test.js @@ -47,15 +47,18 @@ describe("asset build", function () { it("preserves script dependencies and CSS precedence and hashes completed assets", function () { const result = build(); expect(result.status, result.stderr).to.equal(0); - for (const [bundle, group] of [["core", "coreJsFiles"], ["vendor", "vendorJsFiles"], ["mermaid", "mermaidFiles"]]) { + for (const [bundle, group] of [["core", "coreJsFiles"], ["markdown", "markdownFiles"], ["pdf", "pdfFiles"], ["editor", "editorFiles"], ["notebook", "notebookFiles"], ["org", "orgFiles"], ["mermaid", "mermaidFiles"]]) { const context = { assetOrder: [] }; vm.runInNewContext(fs.readFileSync(path.join(directory, `public/script/${bundle}.min.js`), "utf8"), context); expect(context.assetOrder).to.deep.equal(groups[group]); - if (bundle === "vendor") expect(context.appLoaded).to.equal(true); + } expect(fs.readFileSync(path.join(directory, "public/css/all.min.css"), "utf8")).to.equal(".cascade{color:#00f}".repeat(groups.cssFiles.length - 1) + ".cascade{color:red}"); const manifest = JSON.parse(fs.readFileSync(path.join(directory, "public/asset-manifest.json"), "utf8")); - expect(Object.keys(manifest)).to.have.length(4); + expect(Object.keys(manifest)).to.have.length(9); + const appContext = {}; + vm.runInNewContext(fs.readFileSync(path.join(directory, "public/script/vendor.min.js"), "utf8"), appContext); + expect(appContext.appLoaded).to.equal(true); for (const [name, hashed] of Object.entries(manifest)) { const content = fs.readFileSync(path.join(directory, "public", name.endsWith(".css") ? "css" : "script", name)); const hash = require("node:crypto").createHash("md5").update(content).digest("hex").slice(0, 10); @@ -72,7 +75,7 @@ describe("asset build", function () { }); it("fails on invalid JavaScript without publishing a manifest", function () { - fs.writeFileSync(path.join(directory, groups.vendorJsFiles[0]), "function {"); + fs.writeFileSync(path.join(directory, groups.pdfFiles[0]), "function {"); const result = build(); expect(result.status).not.to.equal(0); expect(result.stderr).to.include("uglify"); diff --git a/test/vue-ui.test.js b/test/vue-ui.test.js index 75c9561..6346135 100644 --- a/test/vue-ui.test.js +++ b/test/vue-ui.test.js @@ -1,5 +1,5 @@ const { expect } = require("chai"); -const { JSDOM, VirtualConsole } = require("jsdom"); +const { JSDOM, VirtualConsole, ResourceLoader } = require("jsdom"); const fs = require("fs"); const path = require("path"); const { URL } = require("node:url"); @@ -9,13 +9,22 @@ const publicDir = path.join(__dirname, "../public"); const bundles = ["core.min.js", "vendor.min.js"].map(name => fs.readFileSync(path.join(publicDir, "script", name), "utf8")); async function browser(route = "/", overrides = {}) { - const errors = [], requests = []; + const errors = [], requests = [], assets = []; const virtualConsole = new VirtualConsole(); virtualConsole.on("jsdomError", error => { if (!error.message.includes("navigation (except hash changes)")) errors.push(error.message); }); virtualConsole.on("error", error => errors.push(error?.message || String(error))); const dom = new JSDOM('
', { + resources: new class extends ResourceLoader { + fetch(url) { + assets.push(new URL(url).pathname); + if (/\/pdf\.[a-f0-9]+\.min\.js$/.test(new URL(url).pathname) && dom.window.pdfjsLib) return Promise.resolve(Buffer.from("")); + const pathname = new URL(url).pathname.replace(/\.[a-f0-9]{10}\.min\.js$/, ".min.js"); + if (pathname.startsWith("/script/")) return Promise.resolve(fs.readFileSync(path.join(publicDir, pathname))); + return null; + } + }(), url: "http://localhost" + route, runScripts: "dangerously", pretendToBeVisual: true, virtualConsole, }); const window = dom.window; @@ -46,7 +55,7 @@ async function browser(route = "/", overrides = {}) { await app.router.isReady(); await delay(30); return { - window, app, errors, requests, + window, app, errors, requests, assets, async go(path) { await app.router.push(path); await delay(30); }, async input(selector, value, event = "input") { const input = window.document.querySelector(selector); @@ -79,6 +88,21 @@ describe("Vue 3 UI", function () { expect(ui.errors).to.deep.equal([]); }); + it("loads document libraries on demand and reuses them across navigation", async function () { + ui = await browser("/dashboard"); + expect(ui.assets.filter(url => url.endsWith(".js"))).to.deep.equal([]); + await ui.go("/r/test/README.md"); + expect(ui.assets.some(url => /\/markdown\./.test(url))).to.equal(true); + expect(ui.assets.some(url => /\/(pdf|editor|notebook)\./.test(url))).to.equal(false); + await ui.go("/faq"); + await ui.go("/r/test/README.md"); + expect(ui.assets.filter(url => /\/markdown\./.test(url))).to.have.length(1); + await ui.go("/r/test/hello.js"); + expect(ui.assets.some(url => /\/editor\./.test(url))).to.equal(true); + expect(ui.window.document.querySelector(".ace_editor")).not.to.equal(null); + expect(ui.errors).to.deep.equal([]); + }); + it("validates a claim, binds input values and renders server validation failures", async function () { ui = await browser("/claim", { "/api/repo/claim": { __status: 404, body: {} } }); const form = ui.window.document.querySelector("form"); @@ -231,7 +255,7 @@ describe("Vue 3 UI", function () { it("loads PDF pages, changes documents and releases the previous document", async function () { ui = await browser("/faq"); const loaded = [], destroyed = []; - ui.window.pdfjsLib = { getDocument({ url }) { + ui.window.pdfjsLib = { GlobalWorkerOptions: {}, getDocument({ url }) { loaded.push(url); return { promise: Promise.resolve({ numPages: 2,