(self.webpackChunkchatgot_client_deepsider=self.webpackChunkchatgot_client_deepsider||[]).push([[6055],{743:function(e,t,n){var i,r=n(96763);
/**
 * @licstart The following is the entire license notice for the
 * JavaScript code in this page
 *
 * Copyright 2022 Mozilla Foundation
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 * @licend The above is the entire license notice for the
 * JavaScript code in this page
 */globalThis,i=()=>(()=>{"use strict";var e=[,(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DefaultXfaLayerFactory=t.DefaultTextLayerFactory=t.DefaultStructTreeLayerFactory=t.DefaultAnnotationLayerFactory=t.DefaultAnnotationEditorLayerFactory=void 0;var i=n(2),r=n(5),a=n(4),s=n(6),o=n(8),l=n(9),u=n(10);t.DefaultAnnotationLayerFactory=class{createAnnotationLayerBuilder({pageDiv:e,pdfPage:t,annotationStorage:n=null,imageResourcesPath:i="",renderForms:o=!0,l10n:l=a.NullL10n,enableScripting:u=!1,hasJSActionsPromise:c=null,mouseState:d=null,fieldObjectsPromise:p=null,annotationCanvasMap:h=null,accessibilityManager:g=null}){return new r.AnnotationLayerBuilder({pageDiv:e,pdfPage:t,imageResourcesPath:i,renderForms:o,linkService:new s.SimpleLinkService,l10n:l,annotationStorage:n,enableScripting:u,hasJSActionsPromise:c,fieldObjectsPromise:p,mouseState:d,annotationCanvasMap:h,accessibilityManager:g})}},t.DefaultAnnotationEditorLayerFactory=class{createAnnotationEditorLayerBuilder({uiManager:e=null,pageDiv:t,pdfPage:n,accessibilityManager:r=null,l10n:a,annotationStorage:s=null}){return new i.AnnotationEditorLayerBuilder({uiManager:e,pageDiv:t,pdfPage:n,accessibilityManager:r,l10n:a,annotationStorage:s})}},t.DefaultStructTreeLayerFactory=class{createStructTreeLayerBuilder({pdfPage:e}){return new o.StructTreeLayerBuilder({pdfPage:e})}},t.DefaultTextLayerFactory=class{createTextLayerBuilder({textLayerDiv:e,pageIndex:t,viewport:n,enhanceTextSelection:i=!1,eventBus:r,highlighter:a,accessibilityManager:s=null}){return new l.TextLayerBuilder({textLayerDiv:e,pageIndex:t,viewport:n,enhanceTextSelection:i,eventBus:r,highlighter:a,accessibilityManager:s})}},t.DefaultXfaLayerFactory=class{createXfaLayerBuilder({pageDiv:e,pdfPage:t,annotationStorage:n=null}){return new u.XfaLayerBuilder({pageDiv:e,pdfPage:t,annotationStorage:n,linkService:new s.SimpleLinkService})}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.AnnotationEditorLayerBuilder=void 0;var i=n(3),r=n(4);t.AnnotationEditorLayerBuilder=class{#e;constructor(e){this.pageDiv=e.pageDiv,this.pdfPage=e.pdfPage,this.annotationStorage=e.annotationStorage||null,this.accessibilityManager=e.accessibilityManager,this.l10n=e.l10n||r.NullL10n,this.annotationEditorLayer=null,this.div=null,this._cancelled=!1,this.#e=e.uiManager}async render(e,t="display"){if("display"!==t)return;if(this._cancelled)return;const n=e.clone({dontFlip:!0});if(this.div)return this.annotationEditorLayer.update({viewport:n}),void this.show();this.div=document.createElement("div"),this.div.className="annotationEditorLayer",this.div.tabIndex=0,this.pageDiv.append(this.div),this.annotationEditorLayer=new i.AnnotationEditorLayer({uiManager:this.#e,div:this.div,annotationStorage:this.annotationStorage,accessibilityManager:this.accessibilityManager,pageIndex:this.pdfPage._pageIndex,l10n:this.l10n,viewport:n});const r={viewport:n,div:this.div,annotations:null,intent:t};this.annotationEditorLayer.render(r)}cancel(){this._cancelled=!0,this.destroy()}hide(){this.div&&(this.div.hidden=!0)}show(){this.div&&(this.div.hidden=!1)}destroy(){this.div&&(this.pageDiv=null,this.annotationEditorLayer.destroy(),this.div.remove())}}},e=>{let t;t="undefined"!=typeof window&&window["pdfjs-dist/build/pdf"]?window["pdfjs-dist/build/pdf"]:n(80748),e.exports=t},(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.NullL10n=void 0,t.fixupLangCode=function(e){return r[e?.toLowerCase()]||e},t.getL10nFallback=i;const n={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}} \xd7 {{height}} {{unit}} ({{orientation}})",document_properties_page_size_dimension_name_string:"{{width}} \xd7 {{height}} {{unit}} ({{name}}, {{orientation}})",document_properties_linearized_yes:"Yes",document_properties_linearized_no:"No",print_progress_percent:"{{progress}}%","toggle_sidebar.title":"Toggle Sidebar","toggle_sidebar_notification2.title":"Toggle Sidebar (document contains outline/attachments/layers)",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",error_version_info:"PDF.js v{{version}} (build: {{build}})",error_message:"Message: {{message}}",error_stack:"Stack: {{stack}}",error_file:"File: {{file}}",error_line:"Line: {{line}}",rendering_error:"An error occurred while rendering the page.",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:"Loading\u2026",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.",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_text_default_content:"Enter text\u2026",editor_free_text_aria_label:"FreeText Editor",editor_ink_aria_label:"Ink Editor",editor_ink_canvas_aria_label:"User-created image"};function i(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 n[e]||""}const r={en:"en-US",es:"es-ES",fy:"fy-NL",ga:"ga-IE",gu:"gu-IN",hi:"hi-IN",hy:"hy-AM",nb:"nb-NO",ne:"ne-NP",nn:"nn-NO",pa:"pa-IN",pt:"pt-PT",sv:"sv-SE",zh:"zh-CN"},a={async getLanguage(){return"en-us"},async getDirection(){return"ltr"},async get(e,t=null,n=i(e,t)){return function(e,t){return t?e.replace(/\{\{\s*(\w+)\s*\}\}/g,((e,n)=>n in t?t[n]:"{{"+n+"}}")):e}(n,t)},async translate(e){}};t.NullL10n=a},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.AnnotationLayerBuilder=void 0;var i=n(3),r=n(4);t.AnnotationLayerBuilder=class{constructor({pageDiv:e,pdfPage:t,linkService:n,downloadManager:i,annotationStorage:a=null,imageResourcesPath:s="",renderForms:o=!0,l10n:l=r.NullL10n,enableScripting:u=!1,hasJSActionsPromise:c=null,fieldObjectsPromise:d=null,mouseState:p=null,annotationCanvasMap:h=null,accessibilityManager:g=null}){this.pageDiv=e,this.pdfPage=t,this.linkService=n,this.downloadManager=i,this.imageResourcesPath=s,this.renderForms=o,this.l10n=l,this.annotationStorage=a,this.enableScripting=u,this._hasJSActionsPromise=c,this._fieldObjectsPromise=d,this._mouseState=p,this._annotationCanvasMap=h,this._accessibilityManager=g,this.div=null,this._cancelled=!1}async render(e,t="display"){const[n,r=!1,a=null]=await Promise.all([this.pdfPage.getAnnotations({intent:t}),this._hasJSActionsPromise,this._fieldObjectsPromise]);if(this._cancelled||0===n.length)return;const s={viewport:e.clone({dontFlip:!0}),div:this.div,annotations:n,page:this.pdfPage,imageResourcesPath:this.imageResourcesPath,renderForms:this.renderForms,linkService:this.linkService,downloadManager:this.downloadManager,annotationStorage:this.annotationStorage,enableScripting:this.enableScripting,hasJSActions:r,fieldObjects:a,mouseState:this._mouseState,annotationCanvasMap:this._annotationCanvasMap,accessibilityManager:this._accessibilityManager};this.div?i.AnnotationLayer.update(s):(this.div=document.createElement("div"),this.div.className="annotationLayer",this.pageDiv.append(this.div),s.div=this.div,i.AnnotationLayer.render(s),this.l10n.translate(this.div))}cancel(){this._cancelled=!0}hide(){this.div&&(this.div.hidden=!0)}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SimpleLinkService=t.PDFLinkService=t.LinkTarget=void 0;var i=n(7);const a={NONE:0,SELF:1,BLANK:2,PARENT:3,TOP:4};function s(e,{url:t,target:n,rel:r,enabled:s=!0}={}){if(!t||"string"!=typeof t)throw new Error('A valid "url" parameter must provided.');const o=(0,i.removeNullCharacters)(t);s?e.href=e.title=o:(e.href="",e.title=`Disabled: ${o}`,e.onclick=()=>!1);let l="";switch(n){case a.NONE:break;case a.SELF:l="_self";break;case a.BLANK:l="_blank";break;case a.PARENT:l="_parent";break;case a.TOP:l="_top"}e.target=l,e.rel="string"==typeof r?r:"noopener noreferrer nofollow"}t.LinkTarget=a;class o{#t=new Map;constructor({eventBus:e,externalLinkTarget:t=null,externalLinkRel:n=null,ignoreDestinationZoom:i=!1}={}){this.eventBus=e,this.externalLinkTarget=t,this.externalLinkRel=n,this.externalLinkEnabled=!0,this._ignoreDestinationZoom=i,this.baseUrl=null,this.pdfDocument=null,this.pdfViewer=null,this.pdfHistory=null}setDocument(e,t=null){this.baseUrl=t,this.pdfDocument=e,this.#t.clear()}setViewer(e){this.pdfViewer=e}setHistory(e){this.pdfHistory=e}get pagesCount(){return this.pdfDocument?this.pdfDocument.numPages:0}get page(){return this.pdfViewer.currentPageNumber}set page(e){this.pdfViewer.currentPageNumber=e}get rotation(){return this.pdfViewer.pagesRotation}set rotation(e){this.pdfViewer.pagesRotation=e}#n(e,t=null,n){const i=n[0];let a;if("object"==typeof i&&null!==i){if(a=this._cachedPageNumber(i),!a)return void this.pdfDocument.getPageIndex(i).then((r=>{this.cachePageRef(r+1,i),this.#n(e,t,n)})).catch((()=>{r.error(`PDFLinkService.#goToDestinationHelper: "${i}" is not a valid page reference, for dest="${e}".`)}))}else{if(!Number.isInteger(i))return void r.error(`PDFLinkService.#goToDestinationHelper: "${i}" is not a valid destination reference, for dest="${e}".`);a=i+1}!a||a<1||a>this.pagesCount?r.error(`PDFLinkService.#goToDestinationHelper: "${a}" is not a valid page number, for dest="${e}".`):(this.pdfHistory&&(this.pdfHistory.pushCurrentPosition(),this.pdfHistory.push({namedDest:t,explicitDest:n,pageNumber:a})),this.pdfViewer.scrollPageIntoView({pageNumber:a,destArray:n,ignoreDestinationZoom:this._ignoreDestinationZoom}))}async goToDestination(e){if(!this.pdfDocument)return;let t,n;"string"==typeof e?(t=e,n=await this.pdfDocument.getDestination(e)):(t=null,n=await e),Array.isArray(n)?this.#n(e,t,n):r.error(`PDFLinkService.goToDestination: "${n}" is not a valid destination array, for dest="${e}".`)}goToPage(e){if(!this.pdfDocument)return;const t="string"==typeof e&&this.pdfViewer.pageLabelToPageNumber(e)||0|e;Number.isInteger(t)&&t>0&&t<=this.pagesCount?(this.pdfHistory&&(this.pdfHistory.pushCurrentPosition(),this.pdfHistory.pushPage(t)),this.pdfViewer.scrollPageIntoView({pageNumber:t})):r.error(`PDFLinkService.goToPage: "${e}" is not a valid page.`)}addLinkAttributes(e,t,n=!1){s(e,{url:t,target:n?a.BLANK:this.externalLinkTarget,rel:this.externalLinkRel,enabled:this.externalLinkEnabled})}getDestinationHash(e){if("string"==typeof e){if(e.length>0)return this.getAnchorUrl("#"+escape(e))}else if(Array.isArray(e)){const t=JSON.stringify(e);if(t.length>0)return this.getAnchorUrl("#"+escape(t))}return this.getAnchorUrl("")}getAnchorUrl(e){return(this.baseUrl||"")+e}setHash(e){if(!this.pdfDocument)return;let t,n;if(e.includes("=")){const a=(0,i.parseQueryString)(e);if(a.has("search")&&this.eventBus.dispatch("findfromurlhash",{source:this,query:a.get("search").replace(/"/g,""),phraseSearch:"true"===a.get("phrase")}),a.has("page")&&(t=0|a.get("page")||1),a.has("zoom")){const e=a.get("zoom").split(","),t=e[0],i=parseFloat(t);t.includes("Fit")?"Fit"===t||"FitB"===t?n=[null,{name:t}]:"FitH"===t||"FitBH"===t||"FitV"===t||"FitBV"===t?n=[null,{name:t},e.length>1?0|e[1]:null]:"FitR"===t?5!==e.length?r.error('PDFLinkService.setHash: Not enough parameters for "FitR".'):n=[null,{name:t},0|e[1],0|e[2],0|e[3],0|e[4]]:r.error(`PDFLinkService.setHash: "${t}" is not a valid zoom value.`):n=[null,{name:"XYZ"},e.length>1?0|e[1]:null,e.length>2?0|e[2]:null,i?i/100:t]}n?this.pdfViewer.scrollPageIntoView({pageNumber:t||this.page,destArray:n,allowNegativeOffset:!0}):t&&(this.page=t),a.has("pagemode")&&this.eventBus.dispatch("pagemode",{source:this,mode:a.get("pagemode")}),a.has("nameddest")&&this.goToDestination(a.get("nameddest"))}else{n=unescape(e);try{n=JSON.parse(n),Array.isArray(n)||(n=n.toString())}catch(e){}if("string"==typeof n||o.#i(n))return void this.goToDestination(n);r.error(`PDFLinkService.setHash: "${unescape(e)}" is not a valid destination.`)}}executeNamedAction(e){switch(e){case"GoBack":this.pdfHistory?.back();break;case"GoForward":this.pdfHistory?.forward();break;case"NextPage":this.pdfViewer.nextPage();break;case"PrevPage":this.pdfViewer.previousPage();break;case"LastPage":this.page=this.pagesCount;break;case"FirstPage":this.page=1}this.eventBus.dispatch("namedaction",{source:this,action:e})}cachePageRef(e,t){if(!t)return;const n=0===t.gen?`${t.num}R`:`${t.num}R${t.gen}`;this.#t.set(n,e)}_cachedPageNumber(e){if(!e)return null;const t=0===e.gen?`${e.num}R`:`${e.num}R${e.gen}`;return this.#t.get(t)||null}isPageVisible(e){return this.pdfViewer.isPageVisible(e)}isPageCached(e){return this.pdfViewer.isPageCached(e)}static#i(e){if(!Array.isArray(e))return!1;const t=e.length;if(t<2)return!1;const n=e[0];if(!("object"==typeof n&&Number.isInteger(n.num)&&Number.isInteger(n.gen)||Number.isInteger(n)&&n>=0))return!1;const i=e[1];if("object"!=typeof i||"string"!=typeof i.name)return!1;let r=!0;switch(i.name){case"XYZ":if(5!==t)return!1;break;case"Fit":case"FitB":return 2===t;case"FitH":case"FitBH":case"FitV":case"FitBV":if(3!==t)return!1;break;case"FitR":if(6!==t)return!1;r=!1;break;default:return!1}for(let n=2;n<t;n++){const t=e[n];if(!("number"==typeof t||r&&null===t))return!1}return!0}}t.PDFLinkService=o,t.SimpleLinkService=class{constructor(){this.externalLinkEnabled=!0}get pagesCount(){return 0}get page(){return 0}set page(e){}get rotation(){return 0}set rotation(e){}async goToDestination(e){}goToPage(e){}addLinkAttributes(e,t,n=!1){s(e,{url:t,enabled:this.externalLinkEnabled})}getDestinationHash(e){return"#"}getAnchorUrl(e){return"#"}setHash(e){}executeNamedAction(e){}cachePageRef(e,t){}isPageVisible(e){return!0}isPageCached(e){return!0}}},(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.animationStarted=t.VERTICAL_PADDING=t.UNKNOWN_SCALE=t.TextLayerMode=t.SpreadMode=t.SidebarView=t.ScrollMode=t.SCROLLBAR_PADDING=t.RenderingStates=t.RendererType=t.ProgressBar=t.PresentationModeState=t.OutputScale=t.MIN_SCALE=t.MAX_SCALE=t.MAX_AUTO_SCALE=t.DEFAULT_SCALE_VALUE=t.DEFAULT_SCALE_DELTA=t.DEFAULT_SCALE=t.AutoPrintRegExp=void 0,t.apiPageLayoutToViewerModes=function(e){let t=i.VERTICAL,n=a.NONE;switch(e){case"SinglePage":t=i.PAGE;break;case"OneColumn":break;case"TwoPageLeft":t=i.PAGE;case"TwoColumnLeft":n=a.ODD;break;case"TwoPageRight":t=i.PAGE;case"TwoColumnRight":n=a.EVEN}return{scrollMode:t,spreadMode:n}},t.apiPageModeToSidebarView=function(e){switch(e){case"UseNone":return n.NONE;case"UseThumbs":return n.THUMBS;case"UseOutlines":return n.OUTLINE;case"UseAttachments":return n.ATTACHMENTS;case"UseOC":return n.LAYERS}return n.NONE},t.approximateFraction=function(e){if(Math.floor(e)===e)return[e,1];const t=1/e;if(t>8)return[1,8];if(Math.floor(t)===t)return[1,t];const n=e>1?t:e;let i,r=0,a=1,s=1,o=1;for(;;){const e=r+s,t=a+o;if(t>8)break;n<=e/t?(s=e,o=t):(r=e,a=t)}return i=n-r/a<s/o-n?n===e?[r,a]:[a,r]:n===e?[s,o]:[o,s],i},t.backtrackBeforeAllVisibleElements=u,t.binarySearchFirstItem=l,t.docStyle=void 0,t.getActiveOrFocusedElement=function(){let e=document,t=e.activeElement||e.querySelector(":focus");for(;t?.shadowRoot;)e=t.shadowRoot,t=e.activeElement||e.querySelector(":focus");return t},t.getPageSizeInches=function({view:e,userUnit:t,rotate:n}){const[i,r,a,s]=e,o=n%180!=0,l=(a-i)/72*t,u=(s-r)/72*t;return{width:o?u:l,height:o?l:u}},t.getVisibleElements=function({scrollEl:e,views:t,sortByVisibility:n=!1,horizontal:i=!1,rtl:r=!1}){const a=e.scrollTop,s=a+e.clientHeight,o=e.scrollLeft,c=o+e.clientWidth,d=[],p=new Set,h=t.length;let g=l(t,i?function(e){const t=e.div,n=t.offsetLeft+t.clientLeft,i=n+t.clientWidth;return r?n<c:i>o}:function(e){const t=e.div;return t.offsetTop+t.clientTop+t.clientHeight>a});g>0&&g<h&&!i&&(g=u(g,t,a));let f=i?c:-1;for(let e=g;e<h;e++){const n=t[e],r=n.div,l=r.offsetLeft+r.clientLeft,u=r.offsetTop+r.clientTop,h=r.clientWidth,g=r.clientHeight,m=l+h,b=u+g;if(-1===f)b>=s&&(f=b);else if((i?l:u)>f)break;if(b<=a||u>=s||m<=o||l>=c)continue;const y=Math.max(0,a-u)+Math.max(0,b-s),_=(h-(Math.max(0,o-l)+Math.max(0,m-c)))/h,v=(g-y)/g*_*100|0;d.push({id:n.id,x:l,y:u,view:n,percent:v,widthPercent:100*_|0}),p.add(n.id)}const m=d[0],b=d.at(-1);return n&&d.sort((function(e,t){const n=e.percent-t.percent;return Math.abs(n)>0.001?-n:e.id-t.id})),{first:m,last:b,views:d,ids:p}},t.isPortraitOrientation=function(e){return e.width<=e.height},t.isValidRotation=function(e){return Number.isInteger(e)&&e%90==0},t.isValidScrollMode=function(e){return Number.isInteger(e)&&Object.values(i).includes(e)&&e!==i.UNKNOWN},t.isValidSpreadMode=function(e){return Number.isInteger(e)&&Object.values(a).includes(e)&&e!==a.UNKNOWN},t.noContextMenuHandler=function(e){e.preventDefault()},t.normalizeWheelEventDelta=function(e){let t=c(e);return 0===e.deltaMode?t/=900:1===e.deltaMode&&(t/=30),t},t.normalizeWheelEventDirection=c,t.parseQueryString=function(e){const t=new Map;for(const[n,i]of new URLSearchParams(e))t.set(n.toLowerCase(),i);return t},t.removeNullCharacters=function(e,t=!1){return"string"!=typeof e?(r.error("The argument must be a string."),e):(t&&(e=e.replace(o," ")),e.replace(s,""))},t.roundToDivide=function(e,t){const n=e%t;return 0===n?e:Math.round(e-n+t)},t.scrollIntoView=function(e,t,n=!1){let i=e.offsetParent;if(!i)return void r.error("offsetParent is not set -- cannot scroll");let a=e.offsetTop+e.clientTop,s=e.offsetLeft+e.clientLeft;for(;i.clientHeight===i.scrollHeight&&i.clientWidth===i.scrollWidth||n&&(i.classList.contains("markedContent")||"hidden"===getComputedStyle(i).overflow);)if(a+=i.offsetTop,s+=i.offsetLeft,i=i.offsetParent,!i)return;t&&(void 0!==t.top&&(a+=t.top),void 0!==t.left&&(s+=t.left,i.scrollLeft=s)),i.scrollTop=a},t.watchScroll=function(e,t){const n=function(n){r||(r=window.requestAnimationFrame((function(){r=null;const n=e.scrollLeft,a=i.lastX;n!==a&&(i.right=n>a),i.lastX=n;const s=e.scrollTop,o=i.lastY;s!==o&&(i.down=s>o),i.lastY=s,t(i)})))},i={right:!0,down:!0,lastX:e.scrollLeft,lastY:e.scrollTop,_eventHandler:n};let r=null;return e.addEventListener("scroll",n,!0),i},t.DEFAULT_SCALE_VALUE="auto",t.DEFAULT_SCALE=1.0,t.DEFAULT_SCALE_DELTA=1.1,t.MIN_SCALE=0.1,t.MAX_SCALE=10.0,t.UNKNOWN_SCALE=0,t.MAX_AUTO_SCALE=1.25,t.SCROLLBAR_PADDING=40,t.VERTICAL_PADDING=5,t.RenderingStates={INITIAL:0,RUNNING:1,PAUSED:2,FINISHED:3},t.PresentationModeState={UNKNOWN:0,NORMAL:1,CHANGING:2,FULLSCREEN:3};const n={UNKNOWN:-1,NONE:0,THUMBS:1,OUTLINE:2,ATTACHMENTS:3,LAYERS:4};t.SidebarView=n,t.RendererType={CANVAS:"canvas",SVG:"svg"},t.TextLayerMode={DISABLE:0,ENABLE:1,ENABLE_ENHANCE:2};const i={UNKNOWN:-1,VERTICAL:0,HORIZONTAL:1,WRAPPED:2,PAGE:3};t.ScrollMode=i;const a={UNKNOWN:-1,NONE:0,ODD:1,EVEN:2};t.SpreadMode=a,t.AutoPrintRegExp=/\bprint\s*\(/,t.OutputScale=class{constructor(){const e=window.devicePixelRatio||1;this.sx=e,this.sy=e}get scaled(){return 1!==this.sx||1!==this.sy}};const s=/\x00/g,o=/[\x01-\x1F]/g;function l(e,t,n=0){let i=n,r=e.length-1;if(r<0||!t(e[r]))return e.length;if(t(e[i]))return i;for(;i<r;){const n=i+r>>1;t(e[n])?r=n:i=n+1}return i}function u(e,t,n){if(e<2)return e;let i=t[e].div,r=i.offsetTop+i.clientTop;r>=n&&(i=t[e-1].div,r=i.offsetTop+i.clientTop);for(let n=e-2;n>=0&&(i=t[n].div,!(i.offsetTop+i.clientTop+i.clientHeight<=r));--n)e=n;return e}function c(e){let t=Math.hypot(e.deltaX,e.deltaY);const n=Math.atan2(e.deltaY,e.deltaX);return-0.25*Math.PI<n&&n<0.75*Math.PI&&(t=-t),t}const d=new Promise((function(e){window.requestAnimationFrame(e)}));t.animationStarted=d;const p=document.documentElement.style;t.docStyle=p,t.ProgressBar=class{#r=null;#a=0;#s=!0;constructor(e){if(arguments.length>1)throw new Error("ProgressBar no longer accepts any additional options, please use CSS rules to modify its appearance instead.");const t=document.getElementById(e);this.#r=t.classList}get percent(){return this.#a}set percent(e){var t,n,i;this.#a=(t=e,n=0,i=100,Math.min(Math.max(t,n),i)),isNaN(e)?this.#r.add("indeterminate"):(this.#r.remove("indeterminate"),p.setProperty("--progressBar-percent",`${this.#a}%`))}setWidth(e){if(!e)return;const t=e.parentNode.offsetWidth-e.offsetWidth;t>0&&p.setProperty("--progressBar-end-offset",`${t}px`)}hide(){this.#s&&(this.#s=!1,this.#r.add("hidden"))}show(){this.#s||(this.#s=!0,this.#r.remove("hidden"))}}},(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.StructTreeLayerBuilder=void 0;const n={Document:null,DocumentFragment:null,Part:"group",Sect:"group",Div:"group",Aside:"note",NonStruct:"none",P:null,H:"heading",Title:null,FENote:"note",Sub:"group",Lbl:null,Span:null,Em:null,Strong:null,Link:"link",Annot:"note",Form:"form",Ruby:null,RB:null,RT:null,RP:null,Warichu:null,WT:null,WP:null,L:"list",LI:"listitem",LBody:null,Table:"table",TR:"row",TH:"columnheader",TD:"cell",THead:"columnheader",TBody:null,TFoot:null,Caption:null,Figure:"figure",Formula:null,Artifact:null},i=/^H(\d+)$/;t.StructTreeLayerBuilder=class{constructor({pdfPage:e}){this.pdfPage=e}render(e){return this._walk(e)}_setAttributes(e,t){void 0!==e.alt&&t.setAttribute("aria-label",e.alt),void 0!==e.id&&t.setAttribute("aria-owns",e.id),void 0!==e.lang&&t.setAttribute("lang",e.lang)}_walk(e){if(!e)return null;const t=document.createElement("span");if("role"in e){const{role:r}=e,a=r.match(i);a?(t.setAttribute("role","heading"),t.setAttribute("aria-level",a[1])):n[r]&&t.setAttribute("role",n[r])}if(this._setAttributes(e,t),e.children)if(1===e.children.length&&"id"in e.children[0])this._setAttributes(e.children[0],t);else for(const n of e.children)t.append(this._walk(n));return t}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TextLayerBuilder=void 0;var i=n(3);t.TextLayerBuilder=class{constructor({textLayerDiv:e,eventBus:t,pageIndex:n,viewport:i,highlighter:r=null,enhanceTextSelection:a=!1,accessibilityManager:s=null}){this.textLayerDiv=e,this.eventBus=t,this.textContent=null,this.textContentItemsStr=[],this.textContentStream=null,this.renderingDone=!1,this.pageNumber=n+1,this.viewport=i,this.textDivs=[],this.textLayerRenderTask=null,this.highlighter=r,this.enhanceTextSelection=a,this.accessibilityManager=s,this._bindMouse()}_finishRendering(){if(this.renderingDone=!0,!this.enhanceTextSelection){const e=document.createElement("div");e.className="endOfContent",this.textLayerDiv.append(e)}this.eventBus.dispatch("textlayerrendered",{source:this,pageNumber:this.pageNumber,numTextDivs:this.textDivs.length})}render(e=0){if(!this.textContent&&!this.textContentStream||this.renderingDone)return;this.cancel(),this.textDivs.length=0,this.highlighter?.setTextMapping(this.textDivs,this.textContentItemsStr),this.accessibilityManager?.setTextMapping(this.textDivs);const t=document.createDocumentFragment();this.textLayerRenderTask=(0,i.renderTextLayer)({textContent:this.textContent,textContentStream:this.textContentStream,container:t,viewport:this.viewport,textDivs:this.textDivs,textContentItemsStr:this.textContentItemsStr,timeout:e,enhanceTextSelection:this.enhanceTextSelection}),this.textLayerRenderTask.promise.then((()=>{this.textLayerDiv.append(t),this._finishRendering(),this.highlighter?.enable(),this.accessibilityManager?.enable()}),(function(e){}))}cancel(){this.textLayerRenderTask&&(this.textLayerRenderTask.cancel(),this.textLayerRenderTask=null),this.highlighter?.disable(),this.accessibilityManager?.disable()}setTextContentStream(e){this.cancel(),this.textContentStream=e}setTextContent(e){this.cancel(),this.textContent=e}_bindMouse(){const e=this.textLayerDiv;let t=null;e.addEventListener("mousedown",(n=>{if(this.enhanceTextSelection&&this.textLayerRenderTask)return this.textLayerRenderTask.expandTextDivs(!0),void(t&&(clearTimeout(t),t=null));const i=e.querySelector(".endOfContent");if(!i)return;let r=n.target!==e;if(r=r&&"none"!==window.getComputedStyle(i).getPropertyValue("-moz-user-select"),r){const t=e.getBoundingClientRect(),r=Math.max(0,(n.pageY-t.top)/t.height);i.style.top=(100*r).toFixed(2)+"%"}i.classList.add("active")})),e.addEventListener("mouseup",(()=>{if(this.enhanceTextSelection&&this.textLayerRenderTask)return void(t=setTimeout((()=>{this.textLayerRenderTask&&this.textLayerRenderTask.expandTextDivs(!1),t=null}),300));const n=e.querySelector(".endOfContent");n&&(n.style.top="",n.classList.remove("active"))}))}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.XfaLayerBuilder=void 0;var i=n(3);t.XfaLayerBuilder=class{constructor({pageDiv:e,pdfPage:t,annotationStorage:n=null,linkService:i,xfaHtml:r=null}){this.pageDiv=e,this.pdfPage=t,this.annotationStorage=n,this.linkService=i,this.xfaHtml=r,this.div=null,this._cancelled=!1}render(e,t="display"){if("print"===t){const n={viewport:e.clone({dontFlip:!0}),div:this.div,xfaHtml:this.xfaHtml,annotationStorage:this.annotationStorage,linkService:this.linkService,intent:t},r=document.createElement("div");this.pageDiv.append(r),n.div=r;const a=i.XfaLayer.render(n);return Promise.resolve(a)}return this.pdfPage.getXfa().then((n=>{if(this._cancelled||!n)return{textDivs:[]};const r={viewport:e.clone({dontFlip:!0}),div:this.div,xfaHtml:n,annotationStorage:this.annotationStorage,linkService:this.linkService,intent:t};return this.div?i.XfaLayer.update(r):(this.div=document.createElement("div"),this.pageDiv.append(this.div),r.div=this.div,i.XfaLayer.render(r))})).catch((e=>{r.error(e)}))}cancel(){this._cancelled=!0}hide(){this.div&&(this.div.hidden=!0)}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PDFViewer=t.PDFSinglePageViewer=void 0;var i=n(7),r=n(12);class a extends r.BaseViewer{}t.PDFViewer=a;class s extends r.BaseViewer{_resetView(){super._resetView(),this._scrollMode=i.ScrollMode.PAGE,this._spreadMode=i.SpreadMode.NONE}set scrollMode(e){}_updateScrollMode(){}set spreadMode(e){}_updateSpreadMode(){}}t.PDFSinglePageViewer=s},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PagesCountLimit=t.PDFPageViewBuffer=t.BaseViewer=void 0;var i=n(3),a=n(7),s=n(2),o=n(5),l=n(4),u=n(13),c=n(16),d=n(6),p=n(8),h=n(17),g=n(9),f=n(10);const m="enablePermissions",b={FORCE_SCROLL_MODE_PAGE:15000,FORCE_LAZY_PAGE_INIT:7500,PAUSE_EAGER_PAGE_INIT:250};function y(e){return Object.values(i.AnnotationEditorType).includes(e)&&e!==i.AnnotationEditorType.DISABLE}t.PagesCountLimit=b;class _{#o=new Set;#l=0;constructor(e){this.#l=e}push(e){const t=this.#o;t.has(e)&&t.delete(e),t.add(e),t.size>this.#l&&this.#u()}resize(e,t=null){this.#l=e;const n=this.#o;if(t){const e=n.size;let i=1;for(const r of n)if(t.has(r.id)&&(n.delete(r),n.add(r)),++i>e)break}for(;n.size>this.#l;)this.#u()}has(e){return this.#o.has(e)}[Symbol.iterator](){return this.#o.keys()}#u(){const e=this.#o.keys().next().value;e?.destroy(),this.#o.delete(e)}}t.PDFPageViewBuffer=_;class v{#c=null;#d=i.AnnotationEditorType.DISABLE;#p=null;#h=i.AnnotationMode.ENABLE_FORMS;#g=!1;#f=0;#m=null;#b=null;constructor(e){if(this.constructor===v)throw new Error("Cannot initialize BaseViewer.");const t="2.16.105";if(i.version!==t)throw new Error(`The API version "${i.version}" does not match the Viewer version "${t}".`);if(this.container=e.container,this.viewer=e.viewer||e.container.firstElementChild,"DIV"!==this.container?.tagName.toUpperCase()||"DIV"!==this.viewer?.tagName.toUpperCase())throw new Error("Invalid `container` and/or `viewer` option.");if(this.container.offsetParent&&"absolute"!==getComputedStyle(this.container).position)throw new Error("The `container` must be absolutely positioned.");this.eventBus=e.eventBus,this.linkService=e.linkService||new d.SimpleLinkService,this.downloadManager=e.downloadManager||null,this.findController=e.findController||null,this._scriptingManager=e.scriptingManager||null,this.removePageBorders=e.removePageBorders||!1,this.textLayerMode=e.textLayerMode??a.TextLayerMode.ENABLE,this.#h=e.annotationMode??i.AnnotationMode.ENABLE_FORMS,this.#d=e.annotationEditorMode??i.AnnotationEditorType.DISABLE,this.imageResourcesPath=e.imageResourcesPath||"",this.enablePrintAutoRotate=e.enablePrintAutoRotate||!1,this.renderer=e.renderer||a.RendererType.CANVAS,this.useOnlyCssZoom=e.useOnlyCssZoom||!1,this.maxCanvasPixels=e.maxCanvasPixels,this.l10n=e.l10n||l.NullL10n,this.#g=e.enablePermissions||!1,this.pageColors=e.pageColors||null,!this.pageColors||CSS.supports("color",this.pageColors.background)&&CSS.supports("color",this.pageColors.foreground)||((this.pageColors.background||this.pageColors.foreground)&&r.warn("BaseViewer: Ignoring `pageColors`-option, since the browser doesn't support the values used."),this.pageColors=null),this.defaultRenderingQueue=!e.renderingQueue,this.defaultRenderingQueue?(this.renderingQueue=new c.PDFRenderingQueue,this.renderingQueue.setViewer(this)):this.renderingQueue=e.renderingQueue,this.scroll=(0,a.watchScroll)(this.container,this._scrollUpdate.bind(this)),this.presentationModeState=a.PresentationModeState.UNKNOWN,this._onBeforeDraw=this._onAfterDraw=null,this._resetView(),this.removePageBorders&&this.viewer.classList.add("removePageBorders"),this.updateContainerHeightCss()}get pagesCount(){return this._pages.length}getPageView(e){return this._pages[e]}get pageViewsReady(){return!!this._pagesCapability.settled&&this._pages.every((function(e){return e?.pdfPage}))}get renderForms(){return this.#h===i.AnnotationMode.ENABLE_FORMS}get enableScripting(){return!!this._scriptingManager}get currentPageNumber(){return this._currentPageNumber}set currentPageNumber(e){if(!Number.isInteger(e))throw new Error("Invalid page number.");this.pdfDocument&&(this._setCurrentPageNumber(e,!0)||r.error(`currentPageNumber: "${e}" is not a valid page.`))}_setCurrentPageNumber(e,t=!1){if(this._currentPageNumber===e)return t&&this.#y(),!0;if(!(0<e&&e<=this.pagesCount))return!1;const n=this._currentPageNumber;return this._currentPageNumber=e,this.eventBus.dispatch("pagechanging",{source:this,pageNumber:e,pageLabel:this._pageLabels?.[e-1]??null,previous:n}),t&&this.#y(),!0}get currentPageLabel(){return this._pageLabels?.[this._currentPageNumber-1]??null}set currentPageLabel(e){if(!this.pdfDocument)return;let t=0|e;if(this._pageLabels){const n=this._pageLabels.indexOf(e);n>=0&&(t=n+1)}this._setCurrentPageNumber(t,!0)||r.error(`currentPageLabel: "${e}" is not a valid page.`)}get currentScale(){return this._currentScale!==a.UNKNOWN_SCALE?this._currentScale:a.DEFAULT_SCALE}set currentScale(e){if(isNaN(e))throw new Error("Invalid numeric scale.");this.pdfDocument&&this._setScale(e,!1)}get currentScaleValue(){return this._currentScaleValue}set currentScaleValue(e){this.pdfDocument&&this._setScale(e,!1)}get pagesRotation(){return this._pagesRotation}set pagesRotation(e){if(!(0,a.isValidRotation)(e))throw new Error("Invalid pages rotation angle.");if(!this.pdfDocument)return;if((e%=360)<0&&(e+=360),this._pagesRotation===e)return;this._pagesRotation=e;const t=this._currentPageNumber,n={rotation:e};for(const e of this._pages)e.update(n);this._currentScaleValue&&this._setScale(this._currentScaleValue,!0),this.eventBus.dispatch("rotationchanging",{source:this,pagesRotation:e,pageNumber:t}),this.defaultRenderingQueue&&this.update()}get firstPagePromise(){return this.pdfDocument?this._firstPageCapability.promise:null}get onePageRendered(){return this.pdfDocument?this._onePageRenderedCapability.promise:null}get pagesPromise(){return this.pdfDocument?this._pagesCapability.promise:null}#_(e){const t={annotationEditorMode:this.#d,annotationMode:this.#h,textLayerMode:this.textLayerMode};return e?(e.includes(i.PermissionFlag.COPY)||this.viewer.classList.add(m),e.includes(i.PermissionFlag.MODIFY_CONTENTS)||(t.annotationEditorMode=i.AnnotationEditorType.DISABLE),e.includes(i.PermissionFlag.MODIFY_ANNOTATIONS)||e.includes(i.PermissionFlag.FILL_INTERACTIVE_FORMS)||this.#h!==i.AnnotationMode.ENABLE_FORMS||(t.annotationMode=i.AnnotationMode.ENABLE),t):t}#v(){if("hidden"===document.visibilityState||!this.container.offsetParent||0===this._getVisiblePages().views.length)return Promise.resolve();const e=new Promise((e=>{this.#b=()=>{"hidden"===document.visibilityState&&(e(),document.removeEventListener("visibilitychange",this.#b),this.#b=null)},document.addEventListener("visibilitychange",this.#b)}));return Promise.race([this._onePageRenderedCapability.promise,e])}setDocument(e){if(this.pdfDocument&&(this.eventBus.dispatch("pagesdestroy",{source:this}),this._cancelRendering(),this._resetView(),this.findController&&this.findController.setDocument(null),this._scriptingManager&&this._scriptingManager.setDocument(null),this.#p&&(this.#p.destroy(),this.#p=null)),this.pdfDocument=e,!e)return;const t=e.isPureXfa,n=e.numPages,s=e.getPage(1),o=e.getOptionalContentConfig(),l=this.#g?e.getPermissions():Promise.resolve();if(n>b.FORCE_SCROLL_MODE_PAGE){r.warn("Forcing PAGE-scrolling for performance reasons, given the length of the document.");const e=this._scrollMode=a.ScrollMode.PAGE;this.eventBus.dispatch("scrollmodechanged",{source:this,mode:e})}this._pagesCapability.promise.then((()=>{this.eventBus.dispatch("pagesloaded",{source:this,pagesCount:n})}),(()=>{})),this._onBeforeDraw=e=>{const t=this._pages[e.pageNumber-1];t&&this.#c.push(t)},this.eventBus._on("pagerender",this._onBeforeDraw),this._onAfterDraw=e=>{e.cssTransform||this._onePageRenderedCapability.settled||(this._onePageRenderedCapability.resolve({timestamp:e.timestamp}),this.eventBus._off("pagerendered",this._onAfterDraw),this._onAfterDraw=null,this.#b&&(document.removeEventListener("visibilitychange",this.#b),this.#b=null))},this.eventBus._on("pagerendered",this._onAfterDraw),Promise.all([s,l]).then((([s,l])=>{if(e!==this.pdfDocument)return;this._firstPageCapability.resolve(s),this._optionalContentConfigPromise=o;const{annotationEditorMode:c,annotationMode:d,textLayerMode:p}=this.#_(l);if(c!==i.AnnotationEditorType.DISABLE){const e=c;t?r.warn("Warning: XFA-editing is not implemented."):y(e)?(this.#p=new i.AnnotationEditorUIManager(this.container,this.eventBus),e!==i.AnnotationEditorType.NONE&&this.#p.updateMode(e)):r.error(`Invalid AnnotationEditor mode: ${e}`)}const h=this._scrollMode===a.ScrollMode.PAGE?null:this.viewer,g=this.currentScale,f=s.getViewport({scale:g*i.PixelsPerInch.PDF_TO_CSS_UNITS}),m=p===a.TextLayerMode.DISABLE||t?null:this,_=d!==i.AnnotationMode.DISABLE?this:null,v=t?this:null,w=this.#p?this:null;for(let e=1;e<=n;++e){const t=new u.PDFPageView({container:h,eventBus:this.eventBus,id:e,scale:g,defaultViewport:f.clone(),optionalContentConfigPromise:o,renderingQueue:this.renderingQueue,textLayerFactory:m,textLayerMode:p,annotationLayerFactory:_,annotationMode:d,xfaLayerFactory:v,annotationEditorLayerFactory:w,textHighlighterFactory:this,structTreeLayerFactory:this,imageResourcesPath:this.imageResourcesPath,renderer:this.renderer,useOnlyCssZoom:this.useOnlyCssZoom,maxCanvasPixels:this.maxCanvasPixels,pageColors:this.pageColors,l10n:this.l10n});this._pages.push(t)}const E=this._pages[0];E&&(E.setPdfPage(s),this.linkService.cachePageRef(1,s.ref)),this._scrollMode===a.ScrollMode.PAGE?this.#w():this._spreadMode!==a.SpreadMode.NONE&&this._updateSpreadMode(),this.#v().then((async()=>{if(this.findController&&this.findController.setDocument(e),this._scriptingManager&&this._scriptingManager.setDocument(e),this.#p&&this.eventBus.dispatch("annotationeditormodechanged",{source:this,mode:this.#d}),e.loadingParams.disableAutoFetch||n>b.FORCE_LAZY_PAGE_INIT)return void this._pagesCapability.resolve();let t=n-1;if(t<=0)this._pagesCapability.resolve();else for(let i=2;i<=n;++i){const n=e.getPage(i).then((e=>{const n=this._pages[i-1];n.pdfPage||n.setPdfPage(e),this.linkService.cachePageRef(i,e.ref),0==--t&&this._pagesCapability.resolve()}),(e=>{r.error(`Unable to get page ${i} to initialize viewer`,e),0==--t&&this._pagesCapability.resolve()}));i%b.PAUSE_EAGER_PAGE_INIT==0&&await n}})),this.eventBus.dispatch("pagesinit",{source:this}),e.getMetadata().then((({info:t})=>{e===this.pdfDocument&&t.Language&&(this.viewer.lang=t.Language)})),this.defaultRenderingQueue&&this.update()})).catch((e=>{r.error("Unable to initialize viewer",e),this._pagesCapability.reject(e)}))}setPageLabels(e){if(this.pdfDocument){e?Array.isArray(e)&&this.pdfDocument.numPages===e.length?this._pageLabels=e:(this._pageLabels=null,r.error("setPageLabels: Invalid page labels.")):this._pageLabels=null;for(let e=0,t=this._pages.length;e<t;e++)this._pages[e].setPageLabel(this._pageLabels?.[e]??null)}}_resetView(){this._pages=[],this._currentPageNumber=1,this._currentScale=a.UNKNOWN_SCALE,this._currentScaleValue=null,this._pageLabels=null,this.#c=new _(10),this._location=null,this._pagesRotation=0,this._optionalContentConfigPromise=null,this._firstPageCapability=(0,i.createPromiseCapability)(),this._onePageRenderedCapability=(0,i.createPromiseCapability)(),this._pagesCapability=(0,i.createPromiseCapability)(),this._scrollMode=a.ScrollMode.VERTICAL,this._previousScrollMode=a.ScrollMode.UNKNOWN,this._spreadMode=a.SpreadMode.NONE,this.#m={previousPageNumber:1,scrollDown:!0,pages:[]},this._onBeforeDraw&&(this.eventBus._off("pagerender",this._onBeforeDraw),this._onBeforeDraw=null),this._onAfterDraw&&(this.eventBus._off("pagerendered",this._onAfterDraw),this._onAfterDraw=null),this.#b&&(document.removeEventListener("visibilitychange",this.#b),this.#b=null),this.viewer.textContent="",this._updateScrollMode(),this.viewer.removeAttribute("lang"),this.viewer.classList.remove(m)}#w(){if(this._scrollMode!==a.ScrollMode.PAGE)throw new Error("#ensurePageViewVisible: Invalid scrollMode value.");const e=this._currentPageNumber,t=this.#m,n=this.viewer;if(n.textContent="",t.pages.length=0,this._spreadMode!==a.SpreadMode.NONE||this.isInPresentationMode){const i=new Set,r=this._spreadMode-1;-1===r?i.add(e-1):e%2!==r?(i.add(e-1),i.add(e)):(i.add(e-2),i.add(e-1));const a=document.createElement("div");if(a.className="spread",this.isInPresentationMode){const e=document.createElement("div");e.className="dummyPage",a.append(e)}for(const e of i){const n=this._pages[e];n&&(a.append(n.div),t.pages.push(n))}n.append(a)}else{const i=this._pages[e-1];n.append(i.div),t.pages.push(i)}t.scrollDown=e>=t.previousPageNumber,t.previousPageNumber=e}_scrollUpdate(){0!==this.pagesCount&&this.update()}#E(e,t=null){const{div:n,id:i}=e;if(this._scrollMode===a.ScrollMode.PAGE&&(this._setCurrentPageNumber(i),this.#w(),this.update()),!t&&!this.isInPresentationMode){const e=n.offsetLeft+n.clientLeft,i=e+n.clientWidth,{scrollLeft:r,clientWidth:s}=this.container;(this._scrollMode===a.ScrollMode.HORIZONTAL||e<r||i>r+s)&&(t={left:0,top:0})}(0,a.scrollIntoView)(n,t)}#S(e){return e===this._currentScale||Math.abs(e-this._currentScale)<1e-15}_setScaleUpdatePages(e,t,n=!1,r=!1){if(this._currentScaleValue=t.toString(),this.#S(e))return void(r&&this.eventBus.dispatch("scalechanging",{source:this,scale:e,presetValue:t}));a.docStyle.setProperty("--scale-factor",e*i.PixelsPerInch.PDF_TO_CSS_UNITS);const s={scale:e};for(const e of this._pages)e.update(s);if(this._currentScale=e,!n){let e,t=this._currentPageNumber;!this._location||this.isInPresentationMode||this.isChangingPresentationMode||(t=this._location.pageNumber,e=[null,{name:"XYZ"},this._location.left,this._location.top,null]),this.scrollPageIntoView({pageNumber:t,destArray:e,allowNegativeOffset:!0})}this.eventBus.dispatch("scalechanging",{source:this,scale:e,presetValue:r?t:void 0}),this.defaultRenderingQueue&&this.update(),this.updateContainerHeightCss()}get _pageWidthScaleFactor(){return this._spreadMode!==a.SpreadMode.NONE&&this._scrollMode!==a.ScrollMode.HORIZONTAL?2:1}_setScale(e,t=!1){let n=parseFloat(e);if(n>0)this._setScaleUpdatePages(n,e,t,!1);else{const i=this._pages[this._currentPageNumber-1];if(!i)return;let s=a.SCROLLBAR_PADDING,o=a.VERTICAL_PADDING;this.isInPresentationMode?s=o=4:this.removePageBorders?s=o=0:this._scrollMode===a.ScrollMode.HORIZONTAL&&([s,o]=[o,s]);const l=(this.container.clientWidth-s)/i.width*i.scale/this._pageWidthScaleFactor,u=(this.container.clientHeight-o)/i.height*i.scale;switch(e){case"page-actual":n=1;break;case"page-width":n=l;break;case"page-height":n=u;break;case"page-fit":n=Math.min(l,u);break;case"auto":const t=(0,a.isPortraitOrientation)(i)?l:Math.min(u,l);n=Math.min(a.MAX_AUTO_SCALE,t);break;default:return void r.error(`_setScale: "${e}" is an unknown zoom value.`)}this._setScaleUpdatePages(n,e,t,!0)}}#y(){const e=this._pages[this._currentPageNumber-1];this.isInPresentationMode&&this._setScale(this._currentScaleValue,!0),this.#E(e)}pageLabelToPageNumber(e){if(!this._pageLabels)return null;const t=this._pageLabels.indexOf(e);return t<0?null:t+1}scrollPageIntoView({pageNumber:e,destArray:t=null,allowNegativeOffset:n=!1,ignoreDestinationZoom:s=!1}){if(!this.pdfDocument)return;const o=Number.isInteger(e)&&this._pages[e-1];if(!o)return void r.error(`scrollPageIntoView: "${e}" is not a valid pageNumber parameter.`);if(this.isInPresentationMode||!t)return void this._setCurrentPageNumber(e,!0);let l,u,c=0,d=0,p=0,h=0;const g=o.rotation%180!=0,f=(g?o.height:o.width)/o.scale/i.PixelsPerInch.PDF_TO_CSS_UNITS,m=(g?o.width:o.height)/o.scale/i.PixelsPerInch.PDF_TO_CSS_UNITS;let b=0;switch(t[1].name){case"XYZ":c=t[2],d=t[3],b=t[4],c=null!==c?c:0,d=null!==d?d:m;break;case"Fit":case"FitB":b="page-fit";break;case"FitH":case"FitBH":d=t[2],b="page-width",null===d&&this._location?(c=this._location.left,d=this._location.top):("number"!=typeof d||d<0)&&(d=m);break;case"FitV":case"FitBV":c=t[2],p=f,h=m,b="page-height";break;case"FitR":c=t[2],d=t[3],p=t[4]-c,h=t[5]-d;const e=this.removePageBorders?0:a.SCROLLBAR_PADDING,n=this.removePageBorders?0:a.VERTICAL_PADDING;l=(this.container.clientWidth-e)/p/i.PixelsPerInch.PDF_TO_CSS_UNITS,u=(this.container.clientHeight-n)/h/i.PixelsPerInch.PDF_TO_CSS_UNITS,b=Math.min(Math.abs(l),Math.abs(u));break;default:return void r.error(`scrollPageIntoView: "${t[1].name}" is not a valid destination type.`)}if(s||(b&&b!==this._currentScale?this.currentScaleValue=b:this._currentScale===a.UNKNOWN_SCALE&&(this.currentScaleValue=a.DEFAULT_SCALE_VALUE)),"page-fit"===b&&!t[4])return void this.#E(o);const y=[o.viewport.convertToViewportPoint(c,d),o.viewport.convertToViewportPoint(c+p,d+h)];let _=Math.min(y[0][0],y[1][0]),v=Math.min(y[0][1],y[1][1]);n||(_=Math.max(_,0),v=Math.max(v,0)),this.#E(o,{left:_,top:v})}_updateLocation(e){const t=this._currentScale,n=this._currentScaleValue,i=parseFloat(n)===t?Math.round(10000*t)/100:n,r=e.id,a=this._pages[r-1],s=this.container,o=a.getPagePoint(s.scrollLeft-e.x,s.scrollTop-e.y),l=Math.round(o[0]),u=Math.round(o[1]);let c=`#page=${r}`;this.isInPresentationMode||(c+=`&zoom=${i},${l},${u}`),this._location={pageNumber:r,scale:i,top:u,left:l,rotation:this._pagesRotation,pdfOpenParams:c}}update(){const e=this._getVisiblePages(),t=e.views,n=t.length;if(0===n)return;const i=Math.max(10,2*n+1);this.#c.resize(i,e.ids),this.renderingQueue.renderHighestPriority(e);const r=this._spreadMode===a.SpreadMode.NONE&&(this._scrollMode===a.ScrollMode.PAGE||this._scrollMode===a.ScrollMode.VERTICAL),s=this._currentPageNumber;let o=!1;for(const e of t){if(e.percent<100)break;if(e.id===s&&r){o=!0;break}}this._setCurrentPageNumber(o?s:t[0].id),this._updateLocation(e.first),this.eventBus.dispatch("updateviewarea",{source:this,location:this._location})}containsElement(e){return this.container.contains(e)}focus(){this.container.focus()}get _isContainerRtl(){return"rtl"===getComputedStyle(this.container).direction}get isInPresentationMode(){return this.presentationModeState===a.PresentationModeState.FULLSCREEN}get isChangingPresentationMode(){return this.presentationModeState===a.PresentationModeState.CHANGING}get isHorizontalScrollbarEnabled(){return!this.isInPresentationMode&&this.container.scrollWidth>this.container.clientWidth}get isVerticalScrollbarEnabled(){return!this.isInPresentationMode&&this.container.scrollHeight>this.container.clientHeight}_getVisiblePages(){const e=this._scrollMode===a.ScrollMode.PAGE?this.#m.pages:this._pages,t=this._scrollMode===a.ScrollMode.HORIZONTAL,n=t&&this._isContainerRtl;return(0,a.getVisibleElements)({scrollEl:this.container,views:e,sortByVisibility:!0,horizontal:t,rtl:n})}isPageVisible(e){return!!this.pdfDocument&&(Number.isInteger(e)&&e>0&&e<=this.pagesCount?this._getVisiblePages().ids.has(e):(r.error(`isPageVisible: "${e}" is not a valid page.`),!1))}isPageCached(e){if(!this.pdfDocument)return!1;if(!(Number.isInteger(e)&&e>0&&e<=this.pagesCount))return r.error(`isPageCached: "${e}" is not a valid page.`),!1;const t=this._pages[e-1];return this.#c.has(t)}cleanup(){for(const e of this._pages)e.renderingState!==a.RenderingStates.FINISHED&&e.reset()}_cancelRendering(){for(const e of this._pages)e.cancelRendering()}async#P(e){if(e.pdfPage)return e.pdfPage;try{const t=await this.pdfDocument.getPage(e.id);return e.pdfPage||e.setPdfPage(t),this.linkService._cachedPageNumber?.(t.ref)||this.linkService.cachePageRef(e.id,t.ref),t}catch(e){return r.error("Unable to get page for page view",e),null}}#x(e){if(1===e.first?.id)return!0;if(e.last?.id===this.pagesCount)return!1;switch(this._scrollMode){case a.ScrollMode.PAGE:return this.#m.scrollDown;case a.ScrollMode.HORIZONTAL:return this.scroll.right}return this.scroll.down}#A(e){for(const t of e){const e=this._pages[t-1];e?.toggleLoadingIconSpinner(!0)}for(const t of this.#c)e.has(t.id)||t.toggleLoadingIconSpinner(!1)}forceRendering(e){const t=e||this._getVisiblePages(),n=this.#x(t),i=this._spreadMode!==a.SpreadMode.NONE&&this._scrollMode!==a.ScrollMode.HORIZONTAL,r=this.renderingQueue.getHighestPriority(t,this._pages,n,i);return this.#A(t.ids),!!r&&(this.#P(r).then((()=>{this.renderingQueue.renderView(r)})),!0)}createTextLayerBuilder({textLayerDiv:e,pageIndex:t,viewport:n,enhanceTextSelection:i=!1,eventBus:r,highlighter:a,accessibilityManager:s=null}){return new g.TextLayerBuilder({textLayerDiv:e,eventBus:r,pageIndex:t,viewport:n,enhanceTextSelection:!this.isInPresentationMode&&i,highlighter:a,accessibilityManager:s})}createTextHighlighter({pageIndex:e,eventBus:t}){return new h.TextHighlighter({eventBus:t,pageIndex:e,findController:this.isInPresentationMode?null:this.findController})}createAnnotationLayerBuilder({pageDiv:e,pdfPage:t,annotationStorage:n=this.pdfDocument?.annotationStorage,imageResourcesPath:i="",renderForms:r=!0,l10n:a=l.NullL10n,enableScripting:s=this.enableScripting,hasJSActionsPromise:u=this.pdfDocument?.hasJSActions(),mouseState:c=this._scriptingManager?.mouseState,fieldObjectsPromise:d=this.pdfDocument?.getFieldObjects(),annotationCanvasMap:p=null,accessibilityManager:h=null}){return new o.AnnotationLayerBuilder({pageDiv:e,pdfPage:t,annotationStorage:n,imageResourcesPath:i,renderForms:r,linkService:this.linkService,downloadManager:this.downloadManager,l10n:a,enableScripting:s,hasJSActionsPromise:u,mouseState:c,fieldObjectsPromise:d,annotationCanvasMap:p,accessibilityManager:h})}createAnnotationEditorLayerBuilder({uiManager:e=this.#p,pageDiv:t,pdfPage:n,accessibilityManager:i=null,l10n:r,annotationStorage:a=this.pdfDocument?.annotationStorage}){return new s.AnnotationEditorLayerBuilder({uiManager:e,pageDiv:t,pdfPage:n,annotationStorage:a,accessibilityManager:i,l10n:r})}createXfaLayerBuilder({pageDiv:e,pdfPage:t,annotationStorage:n=this.pdfDocument?.annotationStorage}){return new f.XfaLayerBuilder({pageDiv:e,pdfPage:t,annotationStorage:n,linkService:this.linkService})}createStructTreeLayerBuilder({pdfPage:e}){return new p.StructTreeLayerBuilder({pdfPage:e})}get hasEqualPageSizes(){const e=this._pages[0];for(let t=1,n=this._pages.length;t<n;++t){const n=this._pages[t];if(n.width!==e.width||n.height!==e.height)return!1}return!0}getPagesOverview(){return this._pages.map((e=>{const t=e.pdfPage.getViewport({scale:1});return!this.enablePrintAutoRotate||(0,a.isPortraitOrientation)(t)?{width:t.width,height:t.height,rotation:t.rotation}:{width:t.height,height:t.width,rotation:(t.rotation-90)%360}}))}get optionalContentConfigPromise(){return this.pdfDocument?this._optionalContentConfigPromise?this._optionalContentConfigPromise:(r.error("optionalContentConfigPromise: Not initialized yet."),this.pdfDocument.getOptionalContentConfig()):Promise.resolve(null)}set optionalContentConfigPromise(e){if(!(e instanceof Promise))throw new Error(`Invalid optionalContentConfigPromise: ${e}`);if(!this.pdfDocument)return;if(!this._optionalContentConfigPromise)return;this._optionalContentConfigPromise=e;const t={optionalContentConfigPromise:e};for(const e of this._pages)e.update(t);this.update(),this.eventBus.dispatch("optionalcontentconfigchanged",{source:this,promise:e})}get scrollMode(){return this._scrollMode}set scrollMode(e){if(this._scrollMode!==e){if(!(0,a.isValidScrollMode)(e))throw new Error(`Invalid scroll mode: ${e}`);this.pagesCount>b.FORCE_SCROLL_MODE_PAGE||(this._previousScrollMode=this._scrollMode,this._scrollMode=e,this.eventBus.dispatch("scrollmodechanged",{source:this,mode:e}),this._updateScrollMode(this._currentPageNumber))}}_updateScrollMode(e=null){const t=this._scrollMode,n=this.viewer;n.classList.toggle("scrollHorizontal",t===a.ScrollMode.HORIZONTAL),n.classList.toggle("scrollWrapped",t===a.ScrollMode.WRAPPED),this.pdfDocument&&e&&(t===a.ScrollMode.PAGE?this.#w():this._previousScrollMode===a.ScrollMode.PAGE&&this._updateSpreadMode(),this._currentScaleValue&&isNaN(this._currentScaleValue)&&this._setScale(this._currentScaleValue,!0),this._setCurrentPageNumber(e,!0),this.update())}get spreadMode(){return this._spreadMode}set spreadMode(e){if(this._spreadMode!==e){if(!(0,a.isValidSpreadMode)(e))throw new Error(`Invalid spread mode: ${e}`);this._spreadMode=e,this.eventBus.dispatch("spreadmodechanged",{source:this,mode:e}),this._updateSpreadMode(this._currentPageNumber)}}_updateSpreadMode(e=null){if(!this.pdfDocument)return;const t=this.viewer,n=this._pages;if(this._scrollMode===a.ScrollMode.PAGE)this.#w();else if(t.textContent="",this._spreadMode===a.SpreadMode.NONE)for(const e of this._pages)t.append(e.div);else{const e=this._spreadMode-1;let i=null;for(let r=0,a=n.length;r<a;++r)null===i?(i=document.createElement("div"),i.className="spread",t.append(i)):r%2===e&&(i=i.cloneNode(!1),t.append(i)),i.append(n[r].div)}e&&(this._currentScaleValue&&isNaN(this._currentScaleValue)&&this._setScale(this._currentScaleValue,!0),this._setCurrentPageNumber(e,!0),this.update())}_getPageAdvance(e,t=!1){switch(this._scrollMode){case a.ScrollMode.WRAPPED:{const{views:n}=this._getVisiblePages(),i=new Map;for(const{id:e,y:t,percent:r,widthPercent:a}of n){if(0===r||a<100)continue;let n=i.get(t);n||i.set(t,n||=[]),n.push(e)}for(const n of i.values()){const i=n.indexOf(e);if(-1===i)continue;const r=n.length;if(1===r)break;if(t)for(let t=i-1,r=0;t>=r;t--){const i=n[t],r=n[t+1]-1;if(i<r)return e-r}else for(let t=i+1,a=r;t<a;t++){const i=n[t],r=n[t-1]+1;if(i>r)return r-e}if(t){const t=n[0];if(t<e)return e-t+1}else{const t=n[r-1];if(t>e)return t-e+1}break}break}case a.ScrollMode.HORIZONTAL:break;case a.ScrollMode.PAGE:case a.ScrollMode.VERTICAL:{if(this._spreadMode===a.SpreadMode.NONE)break;const n=this._spreadMode-1;if(t&&e%2!==n)break;if(!t&&e%2===n)break;const{views:i}=this._getVisiblePages(),r=t?e-1:e+1;for(const{id:e,percent:t,widthPercent:n}of i)if(e===r){if(t>0&&100===n)return 2;break}break}}return 1}nextPage(){const e=this._currentPageNumber,t=this.pagesCount;if(e>=t)return!1;const n=this._getPageAdvance(e,!1)||1;return this.currentPageNumber=Math.min(e+n,t),!0}previousPage(){const e=this._currentPageNumber;if(e<=1)return!1;const t=this._getPageAdvance(e,!0)||1;return this.currentPageNumber=Math.max(e-t,1),!0}increaseScale(e=1){let t=this._currentScale;do{t=(t*a.DEFAULT_SCALE_DELTA).toFixed(2),t=Math.ceil(10*t)/10,t=Math.min(a.MAX_SCALE,t)}while(--e>0&&t<a.MAX_SCALE);this.currentScaleValue=t}decreaseScale(e=1){let t=this._currentScale;do{t=(t/a.DEFAULT_SCALE_DELTA).toFixed(2),t=Math.floor(10*t)/10,t=Math.max(a.MIN_SCALE,t)}while(--e>0&&t>a.MIN_SCALE);this.currentScaleValue=t}updateContainerHeightCss(){const e=this.container.clientHeight;e!==this.#f&&(this.#f=e,a.docStyle.setProperty("--viewer-container-height",`${e}px`))}get annotationEditorMode(){return this.#p?this.#d:i.AnnotationEditorType.DISABLE}set annotationEditorMode(e){if(!this.#p)throw new Error("The AnnotationEditor is not enabled.");if(this.#d!==e){if(!y(e))throw new Error(`Invalid AnnotationEditor mode: ${e}`);this.pdfDocument&&(this.#d=e,this.eventBus.dispatch("annotationeditormodechanged",{source:this,mode:e}),this.#p.updateMode(e))}}set annotationEditorParams({type:e,value:t}){if(!this.#p)throw new Error("The AnnotationEditor is not enabled.");this.#p.updateParams(e,t)}refresh(){if(!this.pdfDocument)return;const e={};for(const t of this._pages)t.update(e);this.update()}}t.BaseViewer=v},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PDFPageView=void 0;var i=n(3),a=n(7),s=n(14),o=n(4),l=n(15);const u=s.compatibilityParams.maxCanvasPixels||16777216;t.PDFPageView=class{#h=i.AnnotationMode.ENABLE_FORMS;#k={initialOptionalContent:!0,regularAnnotations:!0};constructor(e){const t=e.container,n=e.defaultViewport;this.id=e.id,this.renderingId="page"+this.id,this.pdfPage=null,this.pageLabel=null,this.rotation=0,this.scale=e.scale||a.DEFAULT_SCALE,this.viewport=n,this.pdfPageRotate=n.rotation,this._optionalContentConfigPromise=e.optionalContentConfigPromise||null,this.hasRestrictedScaling=!1,this.textLayerMode=e.textLayerMode??a.TextLayerMode.ENABLE,this.#h=e.annotationMode??i.AnnotationMode.ENABLE_FORMS,this.imageResourcesPath=e.imageResourcesPath||"",this.useOnlyCssZoom=e.useOnlyCssZoom||!1,this.maxCanvasPixels=e.maxCanvasPixels||u,this.pageColors=e.pageColors||null,this.eventBus=e.eventBus,this.renderingQueue=e.renderingQueue,this.textLayerFactory=e.textLayerFactory,this.annotationLayerFactory=e.annotationLayerFactory,this.annotationEditorLayerFactory=e.annotationEditorLayerFactory,this.xfaLayerFactory=e.xfaLayerFactory,this.textHighlighter=e.textHighlighterFactory?.createTextHighlighter({pageIndex:this.id-1,eventBus:this.eventBus}),this.structTreeLayerFactory=e.structTreeLayerFactory,this.renderer=e.renderer||a.RendererType.CANVAS,this.l10n=e.l10n||o.NullL10n,this.paintTask=null,this.paintedViewportMap=new WeakMap,this.renderingState=a.RenderingStates.INITIAL,this.resume=null,this._renderError=null,this._isStandalone=!this.renderingQueue?.hasViewer(),this._annotationCanvasMap=null,this.annotationLayer=null,this.annotationEditorLayer=null,this.textLayer=null,this.zoomLayer=null,this.xfaLayer=null,this.structTreeLayer=null;const r=document.createElement("div");if(r.className="page",r.style.width=Math.floor(this.viewport.width)+"px",r.style.height=Math.floor(this.viewport.height)+"px",r.setAttribute("data-page-number",this.id),r.setAttribute("role","region"),this.l10n.get("page_landmark",{page:this.id}).then((e=>{r.setAttribute("aria-label",e)})),this.div=r,t?.append(r),this._isStandalone){const{optionalContentConfigPromise:t}=e;t&&t.then((e=>{t===this._optionalContentConfigPromise&&(this.#k.initialOptionalContent=e.hasInitialVisibility)}))}}setPdfPage(e){this.pdfPage=e,this.pdfPageRotate=e.rotate;const t=(this.rotation+this.pdfPageRotate)%360;this.viewport=e.getViewport({scale:this.scale*i.PixelsPerInch.PDF_TO_CSS_UNITS,rotation:t}),this.reset()}destroy(){this.reset(),this.pdfPage&&this.pdfPage.cleanup()}async _renderAnnotationLayer(){let e=null;try{await this.annotationLayer.render(this.viewport,"display")}catch(t){r.error(`_renderAnnotationLayer: "${t}".`),e=t}finally{this.eventBus.dispatch("annotationlayerrendered",{source:this,pageNumber:this.id,error:e})}}async _renderAnnotationEditorLayer(){let e=null;try{await this.annotationEditorLayer.render(this.viewport,"display")}catch(t){r.error(`_renderAnnotationEditorLayer: "${t}".`),e=t}finally{this.eventBus.dispatch("annotationeditorlayerrendered",{source:this,pageNumber:this.id,error:e})}}async _renderXfaLayer(){let e=null;try{const e=await this.xfaLayer.render(this.viewport,"display");this.textHighlighter&&this._buildXfaTextContentItems(e.textDivs)}catch(t){r.error(`_renderXfaLayer: "${t}".`),e=t}finally{this.eventBus.dispatch("xfalayerrendered",{source:this,pageNumber:this.id,error:e})}}async _buildXfaTextContentItems(e){const t=await this.pdfPage.getTextContent(),n=[];for(const e of t.items)n.push(e.str);this.textHighlighter.setTextMapping(e,n),this.textHighlighter.enable()}_resetZoomLayer(e=!1){if(!this.zoomLayer)return;const t=this.zoomLayer.firstChild;this.paintedViewportMap.delete(t),t.width=0,t.height=0,e&&this.zoomLayer.remove(),this.zoomLayer=null}reset({keepZoomLayer:e=!1,keepAnnotationLayer:t=!1,keepAnnotationEditorLayer:n=!1,keepXfaLayer:i=!1}={}){this.cancelRendering({keepAnnotationLayer:t,keepAnnotationEditorLayer:n,keepXfaLayer:i}),this.renderingState=a.RenderingStates.INITIAL;const r=this.div;r.style.width=Math.floor(this.viewport.width)+"px",r.style.height=Math.floor(this.viewport.height)+"px";const s=r.childNodes,o=e&&this.zoomLayer||null,l=t&&this.annotationLayer?.div||null,u=n&&this.annotationEditorLayer?.div||null,c=i&&this.xfaLayer?.div||null;for(let e=s.length-1;e>=0;e--){const t=s[e];switch(t){case o:case l:case u:case c:continue}t.remove()}r.removeAttribute("data-loaded"),l&&this.annotationLayer.hide(),u?this.annotationEditorLayer.hide():this.annotationEditorLayer?.destroy(),c&&this.xfaLayer.hide(),o||(this.canvas&&(this.paintedViewportMap.delete(this.canvas),this.canvas.width=0,this.canvas.height=0,delete this.canvas),this._resetZoomLayer()),this.svg&&(this.paintedViewportMap.delete(this.svg),delete this.svg),this.loadingIconDiv=document.createElement("div"),this.loadingIconDiv.className="loadingIcon notVisible",this._isStandalone&&this.toggleLoadingIconSpinner(!0),this.loadingIconDiv.setAttribute("role","img"),this.l10n.get("loading").then((e=>{this.loadingIconDiv?.setAttribute("aria-label",e)})),r.append(this.loadingIconDiv)}update({scale:e=0,rotation:t=null,optionalContentConfigPromise:n=null}){this.scale=e||this.scale,"number"==typeof t&&(this.rotation=t),n instanceof Promise&&(this._optionalContentConfigPromise=n,n.then((e=>{n===this._optionalContentConfigPromise&&(this.#k.initialOptionalContent=e.hasInitialVisibility)})));const r=(this.rotation+this.pdfPageRotate)%360;if(this.viewport=this.viewport.clone({scale:this.scale*i.PixelsPerInch.PDF_TO_CSS_UNITS,rotation:r}),this._isStandalone&&a.docStyle.setProperty("--scale-factor",this.viewport.scale),this.svg)return this.cssTransform({target:this.svg,redrawAnnotationLayer:!0,redrawAnnotationEditorLayer:!0,redrawXfaLayer:!0}),void this.eventBus.dispatch("pagerendered",{source:this,pageNumber:this.id,cssTransform:!0,timestamp:performance.now(),error:this._renderError});let s=!1;if(this.canvas&&this.maxCanvasPixels>0){const e=this.outputScale;(Math.floor(this.viewport.width)*e.sx|0)*(Math.floor(this.viewport.height)*e.sy|0)>this.maxCanvasPixels&&(s=!0)}if(this.canvas){if(this.useOnlyCssZoom||this.hasRestrictedScaling&&s)return this.cssTransform({target:this.canvas,redrawAnnotationLayer:!0,redrawAnnotationEditorLayer:!0,redrawXfaLayer:!0}),void this.eventBus.dispatch("pagerendered",{source:this,pageNumber:this.id,cssTransform:!0,timestamp:performance.now(),error:this._renderError});this.zoomLayer||this.canvas.hidden||(this.zoomLayer=this.canvas.parentNode,this.zoomLayer.style.position="absolute")}this.zoomLayer&&this.cssTransform({target:this.zoomLayer.firstChild}),this.reset({keepZoomLayer:!0,keepAnnotationLayer:!0,keepAnnotationEditorLayer:!0,keepXfaLayer:!0})}cancelRendering({keepAnnotationLayer:e=!1,keepAnnotationEditorLayer:t=!1,keepXfaLayer:n=!1}={}){this.paintTask&&(this.paintTask.cancel(),this.paintTask=null),this.resume=null,this.textLayer&&(this.textLayer.cancel(),this.textLayer=null),!this.annotationLayer||e&&this.annotationLayer.div||(this.annotationLayer.cancel(),this.annotationLayer=null,this._annotationCanvasMap=null),!this.annotationEditorLayer||t&&this.annotationEditorLayer.div||(this.annotationEditorLayer.cancel(),this.annotationEditorLayer=null),!this.xfaLayer||n&&this.xfaLayer.div||(this.xfaLayer.cancel(),this.xfaLayer=null,this.textHighlighter?.disable()),this._onTextLayerRendered&&(this.eventBus._off("textlayerrendered",this._onTextLayerRendered),this._onTextLayerRendered=null)}cssTransform({target:e,redrawAnnotationLayer:t=!1,redrawAnnotationEditorLayer:n=!1,redrawXfaLayer:i=!1}){const a=this.viewport.width,s=this.viewport.height,o=this.div;e.style.width=e.parentNode.style.width=o.style.width=Math.floor(a)+"px",e.style.height=e.parentNode.style.height=o.style.height=Math.floor(s)+"px";const l=this.viewport.rotation-this.paintedViewportMap.get(e).rotation,u=Math.abs(l);let c=1,d=1;if(90!==u&&270!==u||(c=s/a,d=a/s),e.style.transform=`rotate(${l}deg) scale(${c}, ${d})`,this.textLayer){const e=this.textLayer.viewport,t=this.viewport.rotation-e.rotation,n=Math.abs(t);let i=a/e.width;90!==n&&270!==n||(i=a/e.height);const s=this.textLayer.textLayerDiv;let o,l;switch(n){case 0:o=l=0;break;case 90:o=0,l="-"+s.style.height;break;case 180:o="-"+s.style.width,l="-"+s.style.height;break;case 270:o="-"+s.style.width,l=0;break;default:r.error("Bad rotation value.")}s.style.transform=`rotate(${n}deg) scale(${i}) translate(${o}, ${l})`,s.style.transformOrigin="0% 0%"}t&&this.annotationLayer&&this._renderAnnotationLayer(),n&&this.annotationEditorLayer&&this._renderAnnotationEditorLayer(),i&&this.xfaLayer&&this._renderXfaLayer()}get width(){return this.viewport.width}get height(){return this.viewport.height}getPagePoint(e,t){return this.viewport.convertToPdfPoint(e,t)}toggleLoadingIconSpinner(e=!1){this.loadingIconDiv?.classList.toggle("notVisible",!e)}draw(){this.renderingState!==a.RenderingStates.INITIAL&&(r.error("Must be in new state before drawing"),this.reset());const{div:e,pdfPage:t}=this;if(!t)return this.renderingState=a.RenderingStates.FINISHED,this.loadingIconDiv&&(this.loadingIconDiv.remove(),delete this.loadingIconDiv),Promise.reject(new Error("pdfPage is not loaded"));this.renderingState=a.RenderingStates.RUNNING;const n=document.createElement("div");n.style.width=e.style.width,n.style.height=e.style.height,n.classList.add("canvasWrapper");const s=this.annotationLayer?.div||this.annotationEditorLayer?.div;s?s.before(n):e.append(n);let o=null;if(this.textLayerMode!==a.TextLayerMode.DISABLE&&this.textLayerFactory){this._accessibilityManager||=new l.TextAccessibilityManager;const t=document.createElement("div");t.className="textLayer",t.style.width=n.style.width,t.style.height=n.style.height,s?s.before(t):e.append(t),o=this.textLayerFactory.createTextLayerBuilder({textLayerDiv:t,pageIndex:this.id-1,viewport:this.viewport,enhanceTextSelection:this.textLayerMode===a.TextLayerMode.ENABLE_ENHANCE,eventBus:this.eventBus,highlighter:this.textHighlighter,accessibilityManager:this._accessibilityManager})}this.textLayer=o,this.#h!==i.AnnotationMode.DISABLE&&this.annotationLayerFactory&&(this._annotationCanvasMap||=new Map,this.annotationLayer||=this.annotationLayerFactory.createAnnotationLayerBuilder({pageDiv:e,pdfPage:t,imageResourcesPath:this.imageResourcesPath,renderForms:this.#h===i.AnnotationMode.ENABLE_FORMS,l10n:this.l10n,annotationCanvasMap:this._annotationCanvasMap,accessibilityManager:this._accessibilityManager})),this.xfaLayer?.div&&e.append(this.xfaLayer.div);let u=null;this.renderingQueue&&(u=e=>{if(!this.renderingQueue.isHighestPriority(this))return this.renderingState=a.RenderingStates.PAUSED,void(this.resume=()=>{this.renderingState=a.RenderingStates.RUNNING,e()});e()});const c=async(e=null)=>{if(d===this.paintTask&&(this.paintTask=null),e instanceof i.RenderingCancelledException)this._renderError=null;else if(this._renderError=e,this.renderingState=a.RenderingStates.FINISHED,this.loadingIconDiv&&(this.loadingIconDiv.remove(),delete this.loadingIconDiv),this._resetZoomLayer(!0),this.#k.regularAnnotations=!d.separateAnnots,this.eventBus.dispatch("pagerendered",{source:this,pageNumber:this.id,cssTransform:!1,timestamp:performance.now(),error:this._renderError}),e)throw e},d=this.renderer===a.RendererType.SVG?this.paintOnSvg(n):this.paintOnCanvas(n);d.onRenderContinue=u,this.paintTask=d;const p=d.promise.then((()=>c(null).then((()=>{if(o){const e=t.streamTextContent({includeMarkedContent:!0});o.setTextContentStream(e),o.render()}this.annotationLayer&&this._renderAnnotationLayer().then((()=>{this.annotationEditorLayerFactory&&(this.annotationEditorLayer||=this.annotationEditorLayerFactory.createAnnotationEditorLayerBuilder({pageDiv:e,pdfPage:t,l10n:this.l10n,accessibilityManager:this._accessibilityManager}),this._renderAnnotationEditorLayer())}))}))),(function(e){return c(e)}));return this.xfaLayerFactory&&(this.xfaLayer||=this.xfaLayerFactory.createXfaLayerBuilder({pageDiv:e,pdfPage:t}),this._renderXfaLayer()),this.structTreeLayerFactory&&this.textLayer&&this.canvas&&(this._onTextLayerRendered=e=>{e.pageNumber===this.id&&(this.eventBus._off("textlayerrendered",this._onTextLayerRendered),this._onTextLayerRendered=null,this.canvas&&this.pdfPage.getStructTree().then((e=>{if(!e)return;if(!this.canvas)return;const t=this.structTreeLayer.render(e);t.classList.add("structTree"),this.canvas.append(t)})))},this.eventBus._on("textlayerrendered",this._onTextLayerRendered),this.structTreeLayer=this.structTreeLayerFactory.createStructTreeLayerBuilder({pdfPage:t})),e.setAttribute("data-loaded",!0),this.eventBus.dispatch("pagerender",{source:this,pageNumber:this.id}),p}paintOnCanvas(e){const t=(0,i.createPromiseCapability)(),n={promise:t.promise,onRenderContinue(e){e()},cancel(){g.cancel()},get separateAnnots(){return g.separateAnnots}},r=this.viewport,s=document.createElement("canvas");s.setAttribute("role","presentation"),s.hidden=!0;let o=!0;const l=function(){o&&(s.hidden=!1,o=!1)};e.append(s),this.canvas=s;const u=s.getContext("2d",{alpha:!1}),c=this.outputScale=new a.OutputScale;if(this.useOnlyCssZoom){const e=r.clone({scale:i.PixelsPerInch.PDF_TO_CSS_UNITS});c.sx*=e.width/r.width,c.sy*=e.height/r.height}if(this.maxCanvasPixels>0){const e=r.width*r.height,t=Math.sqrt(this.maxCanvasPixels/e);c.sx>t||c.sy>t?(c.sx=t,c.sy=t,this.hasRestrictedScaling=!0):this.hasRestrictedScaling=!1}const d=(0,a.approximateFraction)(c.sx),p=(0,a.approximateFraction)(c.sy);s.width=(0,a.roundToDivide)(r.width*c.sx,d[0]),s.height=(0,a.roundToDivide)(r.height*c.sy,p[0]),s.style.width=(0,a.roundToDivide)(r.width,d[1])+"px",s.style.height=(0,a.roundToDivide)(r.height,p[1])+"px",this.paintedViewportMap.set(s,r);const h={canvasContext:u,transform:c.scaled?[c.sx,0,0,c.sy,0,0]:null,viewport:this.viewport,annotationMode:this.#h,optionalContentConfigPromise:this._optionalContentConfigPromise,annotationCanvasMap:this._annotationCanvasMap,pageColors:this.pageColors},g=this.pdfPage.render(h);return g.onContinue=function(e){l(),n.onRenderContinue?n.onRenderContinue(e):e()},g.promise.then((function(){l(),t.resolve()}),(function(e){l(),t.reject(e)})),n}paintOnSvg(e){let t=!1;const n=()=>{if(t)throw new i.RenderingCancelledException(`Rendering cancelled, page ${this.id}`,"svg")},r=this.pdfPage,s=this.viewport.clone({scale:i.PixelsPerInch.PDF_TO_CSS_UNITS});return{promise:r.getOperatorList({annotationMode:this.#h}).then((t=>(n(),new i.SVGGraphics(r.commonObjs,r.objs).getSVG(t,s).then((t=>{n(),this.svg=t,this.paintedViewportMap.set(t,s),t.style.width=e.style.width,t.style.height=e.style.height,this.renderingState=a.RenderingStates.FINISHED,e.append(t)}))))),onRenderContinue(e){e()},cancel(){t=!0},get separateAnnots(){return!1}}}setPageLabel(e){this.pageLabel="string"==typeof e?e:null,null!==this.pageLabel?this.div.setAttribute("data-page-label",this.pageLabel):this.div.removeAttribute("data-page-label")}get thumbnailCanvas(){const{initialOptionalContent:e,regularAnnotations:t}=this.#k;return e&&t?this.canvas:null}}},(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.compatibilityParams=t.OptionKind=t.AppOptions=void 0;const n=Object.create(null);t.compatibilityParams=n;{const e=navigator.userAgent||"",t=navigator.platform||"",i=navigator.maxTouchPoints||1,r=/Android/.test(e);(/\b(iPad|iPhone|iPod)(?=;)/.test(e)||"MacIntel"===t&&i>1||r)&&(n.maxCanvasPixels=5242880)}const i={VIEWER:0x02,API:0x04,WORKER:0x08,PREFERENCE:0x80};t.OptionKind=i;const r={annotationEditorMode:{value:-1,kind:i.VIEWER+i.PREFERENCE},annotationMode:{value:2,kind:i.VIEWER+i.PREFERENCE},cursorToolOnLoad:{value:0,kind:i.VIEWER+i.PREFERENCE},defaultZoomValue:{value:"",kind:i.VIEWER+i.PREFERENCE},disableHistory:{value:!1,kind:i.VIEWER},disablePageLabels:{value:!1,kind:i.VIEWER+i.PREFERENCE},enablePermissions:{value:!1,kind:i.VIEWER+i.PREFERENCE},enablePrintAutoRotate:{value:!0,kind:i.VIEWER+i.PREFERENCE},enableScripting:{value:!0,kind:i.VIEWER+i.PREFERENCE},externalLinkRel:{value:"noopener noreferrer nofollow",kind:i.VIEWER},externalLinkTarget:{value:0,kind:i.VIEWER+i.PREFERENCE},historyUpdateUrl:{value:!1,kind:i.VIEWER+i.PREFERENCE},ignoreDestinationZoom:{value:!1,kind:i.VIEWER+i.PREFERENCE},imageResourcesPath:{value:"./images/",kind:i.VIEWER},maxCanvasPixels:{value:16777216,kind:i.VIEWER},forcePageColors:{value:!1,kind:i.VIEWER+i.PREFERENCE},pageColorsBackground:{value:"Canvas",kind:i.VIEWER+i.PREFERENCE},pageColorsForeground:{value:"CanvasText",kind:i.VIEWER+i.PREFERENCE},pdfBugEnabled:{value:!1,kind:i.VIEWER+i.PREFERENCE},printResolution:{value:150,kind:i.VIEWER},sidebarViewOnLoad:{value:-1,kind:i.VIEWER+i.PREFERENCE},scrollModeOnLoad:{value:-1,kind:i.VIEWER+i.PREFERENCE},spreadModeOnLoad:{value:-1,kind:i.VIEWER+i.PREFERENCE},textLayerMode:{value:1,kind:i.VIEWER+i.PREFERENCE},useOnlyCssZoom:{value:!1,kind:i.VIEWER+i.PREFERENCE},viewerCssTheme:{value:0,kind:i.VIEWER+i.PREFERENCE},viewOnLoad:{value:0,kind:i.VIEWER+i.PREFERENCE},cMapPacked:{value:!0,kind:i.API},cMapUrl:{value:"../web/cmaps/",kind:i.API},disableAutoFetch:{value:!1,kind:i.API+i.PREFERENCE},disableFontFace:{value:!1,kind:i.API+i.PREFERENCE},disableRange:{value:!1,kind:i.API+i.PREFERENCE},disableStream:{value:!1,kind:i.API+i.PREFERENCE},docBaseUrl:{value:"",kind:i.API},enableXfa:{value:!0,kind:i.API+i.PREFERENCE},fontExtraProperties:{value:!1,kind:i.API},isEvalSupported:{value:!0,kind:i.API},maxImageSize:{value:-1,kind:i.API},pdfBug:{value:!1,kind:i.API},standardFontDataUrl:{value:"../web/standard_fonts/",kind:i.API},verbosity:{value:1,kind:i.API},workerPort:{value:null,kind:i.WORKER},workerSrc:{value:"../build/pdf.worker.js",kind:i.WORKER}};r.defaultUrl={value:"compressed.tracemonkey-pldi-09.pdf",kind:i.VIEWER},r.disablePreferences={value:!1,kind:i.VIEWER},r.locale={value:navigator.language||"en-US",kind:i.VIEWER},r.renderer={value:"canvas",kind:i.VIEWER+i.PREFERENCE},r.sandboxBundleSrc={value:"../build/pdf.sandbox.js",kind:i.VIEWER};const a=Object.create(null);t.AppOptions=class{constructor(){throw new Error("Cannot initialize AppOptions.")}static get(e){const t=a[e];if(void 0!==t)return t;const i=r[e];return void 0!==i?n[e]??i.value:void 0}static getAll(e=null){const t=Object.create(null);for(const s in r){const o=r[s];if(e){if(!(e&o.kind))continue;if(e===i.PREFERENCE){const e=o.value,n=typeof e;if("boolean"===n||"string"===n||"number"===n&&Number.isInteger(e)){t[s]=e;continue}throw new Error(`Invalid type for preference: ${s}`)}}const l=a[s];t[s]=void 0!==l?l:n[s]??o.value}return t}static set(e,t){a[e]=t}static setAll(e){for(const t in e)a[t]=e[t]}static remove(e){delete a[e]}static _hasUserOptions(){return Object.keys(a).length>0}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TextAccessibilityManager=void 0;var i=n(7);class r{#L=!1;#T=null;#I=new Map;#R=new Map;setTextMapping(e){this.#T=e}static#N(e,t){const n=e.getBoundingClientRect(),i=t.getBoundingClientRect();if(0===n.width&&0===n.height)return 1;if(0===i.width&&0===i.height)return-1;const r=n.y,a=n.y+n.height,s=n.y+n.height/2,o=i.y,l=i.y+i.height,u=i.y+i.height/2;return s<=o&&u>=a?-1:u<=r&&s>=l?1:n.x+n.width/2-(i.x+i.width/2)}enable(){if(this.#L)throw new Error("TextAccessibilityManager is already enabled.");if(!this.#T)throw new Error("Text divs and strings have not been set.");if(this.#L=!0,this.#T=this.#T.slice(),this.#T.sort(r.#N),this.#I.size>0){const e=this.#T;for(const[t,n]of this.#I)document.getElementById(t)?this.#C(t,e[n]):this.#I.delete(t)}for(const[e,t]of this.#R)this.addPointerInTextLayer(e,t);this.#R.clear()}disable(){this.#L&&(this.#R.clear(),this.#T=null,this.#L=!1)}removePointerInTextLayer(e){if(!this.#L)return void this.#R.delete(e);const t=this.#T;if(!t||0===t.length)return;const{id:n}=e,i=this.#I.get(n);if(void 0===i)return;const r=t[i];this.#I.delete(n);let a=r.getAttribute("aria-owns");a?.includes(n)&&(a=a.split(" ").filter((e=>e!==n)).join(" "),a?r.setAttribute("aria-owns",a):(r.removeAttribute("aria-owns"),r.setAttribute("role","presentation")))}#C(e,t){const n=t.getAttribute("aria-owns");n?.includes(e)||t.setAttribute("aria-owns",n?`${n} ${e}`:e),t.removeAttribute("role")}addPointerInTextLayer(e,t){const{id:n}=e;if(!n)return;if(!this.#L)return void this.#R.set(e,t);t&&this.removePointerInTextLayer(e);const a=this.#T;if(!a||0===a.length)return;const s=(0,i.binarySearchFirstItem)(a,(t=>r.#N(e,t)<0)),o=Math.max(0,s-1);this.#C(n,a[o]),this.#I.set(n,o)}moveElementInDOM(e,t,n,a){if(this.addPointerInTextLayer(n,a),!e.hasChildNodes())return void e.append(t);const s=Array.from(e.childNodes).filter((e=>e!==t));if(0===s.length)return;const o=n||t,l=(0,i.binarySearchFirstItem)(s,(e=>r.#N(o,e)<0));0===l?s[0].before(t):s[l-1].after(t)}}t.TextAccessibilityManager=r},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PDFRenderingQueue=void 0;var i=n(3),a=n(7);t.PDFRenderingQueue=class{constructor(){this.pdfViewer=null,this.pdfThumbnailViewer=null,this.onIdle=null,this.highestPriorityPage=null,this.idleTimeout=null,this.printing=!1,this.isThumbnailViewEnabled=!1}setViewer(e){this.pdfViewer=e}setThumbnailViewer(e){this.pdfThumbnailViewer=e}isHighestPriority(e){return this.highestPriorityPage===e.renderingId}hasViewer(){return!!this.pdfViewer}renderHighestPriority(e){this.idleTimeout&&(clearTimeout(this.idleTimeout),this.idleTimeout=null),this.pdfViewer.forceRendering(e)||this.isThumbnailViewEnabled&&this.pdfThumbnailViewer?.forceRendering()||this.printing||this.onIdle&&(this.idleTimeout=setTimeout(this.onIdle.bind(this),3e4))}getHighestPriority(e,t,n,i=!1){const r=e.views,a=r.length;if(0===a)return null;for(let e=0;e<a;e++){const t=r[e].view;if(!this.isViewFinished(t))return t}const s=e.first.id,o=e.last.id;if(o-s+1>a){const i=e.ids;for(let e=1,r=o-s;e<r;e++){const r=n?s+e:o-e;if(i.has(r))continue;const a=t[r-1];if(!this.isViewFinished(a))return a}}let l=n?o:s-2,u=t[l];return u&&!this.isViewFinished(u)||i&&(l+=n?1:-1,u=t[l],u&&!this.isViewFinished(u))?u:null}isViewFinished(e){return e.renderingState===a.RenderingStates.FINISHED}renderView(e){switch(e.renderingState){case a.RenderingStates.FINISHED:return!1;case a.RenderingStates.PAUSED:this.highestPriorityPage=e.renderingId,e.resume();break;case a.RenderingStates.RUNNING:this.highestPriorityPage=e.renderingId;break;case a.RenderingStates.INITIAL:this.highestPriorityPage=e.renderingId,e.draw().finally((()=>{this.renderHighestPriority()})).catch((e=>{e instanceof i.RenderingCancelledException||r.error(`renderView: "${e}"`)}))}return!0}}},(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TextHighlighter=void 0,t.TextHighlighter=class{constructor({findController:e,eventBus:t,pageIndex:n}){this.findController=e,this.matches=[],this.eventBus=t,this.pageIdx=n,this._onUpdateTextLayerMatches=null,this.textDivs=null,this.textContentItemsStr=null,this.enabled=!1}setTextMapping(e,t){this.textDivs=e,this.textContentItemsStr=t}enable(){if(!this.textDivs||!this.textContentItemsStr)throw new Error("Text divs and strings have not been set.");if(this.enabled)throw new Error("TextHighlighter is already enabled.");this.enabled=!0,this._onUpdateTextLayerMatches||(this._onUpdateTextLayerMatches=e=>{e.pageIndex!==this.pageIdx&&-1!==e.pageIndex||this._updateMatches()},this.eventBus._on("updatetextlayermatches",this._onUpdateTextLayerMatches)),this._updateMatches()}disable(){this.enabled&&(this.enabled=!1,this._onUpdateTextLayerMatches&&(this.eventBus._off("updatetextlayermatches",this._onUpdateTextLayerMatches),this._onUpdateTextLayerMatches=null))}_convertMatches(e,t){if(!e)return[];const{textContentItemsStr:n}=this;let i=0,a=0;const s=n.length-1,o=[];for(let l=0,u=e.length;l<u;l++){let u=e[l];for(;i!==s&&u>=a+n[i].length;)a+=n[i].length,i++;i===n.length&&r.error("Could not find a matching mapping");const c={begin:{divIdx:i,offset:u-a}};for(u+=t[l];i!==s&&u>a+n[i].length;)a+=n[i].length,i++;c.end={divIdx:i,offset:u-a},o.push(c)}return o}_renderMatches(e){if(0===e.length)return;const{findController:t,pageIdx:n}=this,{textContentItemsStr:i,textDivs:r}=this,a=n===t.selected.pageIdx,s=t.selected.matchIdx;let o=null;const l={divIdx:-1,offset:void 0};function u(e,t){const n=e.divIdx;return r[n].textContent="",c(n,0,e.offset,t)}function c(e,t,n,a){let s=r[e];if(s.nodeType===Node.TEXT_NODE){const t=document.createElement("span");s.before(t),t.append(s),r[e]=t,s=t}const o=i[e].substring(t,n),l=document.createTextNode(o);if(a){const e=document.createElement("span");return e.className=`${a} appended`,e.append(l),s.append(e),a.includes("selected")?e.offsetLeft:0}return s.append(l),0}let d=s,p=d+1;if(t.state.highlightAll)d=0,p=e.length;else if(!a)return;for(let i=d;i<p;i++){const d=e[i],p=d.begin,h=d.end,g=a&&i===s,f=g?" selected":"";let m=0;if(o&&p.divIdx===o.divIdx?c(o.divIdx,o.offset,p.offset):(null!==o&&c(o.divIdx,o.offset,l.offset),u(p)),p.divIdx===h.divIdx)m=c(p.divIdx,p.offset,h.offset,"highlight"+f);else{m=c(p.divIdx,p.offset,l.offset,"highlight begin"+f);for(let e=p.divIdx+1,t=h.divIdx;e<t;e++)r[e].className="highlight middle"+f;u(h,"highlight end"+f)}o=h,g&&t.scrollMatchIntoView({element:r[p.divIdx],selectedLeft:m,pageIndex:n,matchIndex:s})}o&&c(o.divIdx,o.offset,l.offset)}_updateMatches(){if(!this.enabled)return;const{findController:e,matches:t,pageIdx:n}=this,{textContentItemsStr:i,textDivs:r}=this;let a=-1;for(let e=0,n=t.length;e<n;e++){const n=t[e];for(let e=Math.max(a,n.begin.divIdx),t=n.end.divIdx;e<=t;e++){const t=r[e];t.textContent=i[e],t.className=""}a=n.end.divIdx+1}if(!e?.highlightMatches)return;const s=e.pageMatches[n]||null,o=e.pageMatchesLength[n]||null;this.matches=this._convertMatches(s,o),this._renderMatches(this.matches)}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DownloadManager=void 0;var i=n(3);function a(e,t){const n=document.createElement("a");if(!n.click)throw new Error('DownloadManager: "a.click()" is not supported.');n.href=e,n.target="_parent","download"in n&&(n.download=t),(document.body||document.documentElement).append(n),n.click(),n.remove()}t.DownloadManager=class{constructor(){this._openBlobUrls=new WeakMap}downloadUrl(e,t){(0,i.createValidAbsoluteUrl)(e,"http://example.com")?a(e+"#pdfjs.action=download",t):r.error(`downloadUrl - not a valid URL: ${e}`)}downloadData(e,t,n){a(URL.createObjectURL(new Blob([e],{type:n})),t)}openOrDownloadData(e,t,n){const a=(0,i.isPdfFile)(n),s=a?"application/pdf":"";if(a){let i,a=this._openBlobUrls.get(e);a||(a=URL.createObjectURL(new Blob([t],{type:s})),this._openBlobUrls.set(e,a)),i="?file="+encodeURIComponent(a+"#"+n);try{return window.open(i),!0}catch(t){r.error(`openOrDownloadData: ${t}`),URL.revokeObjectURL(a),this._openBlobUrls.delete(e)}}return this.downloadData(t,n,s),!1}download(e,t,n){a(URL.createObjectURL(e),n)}}},(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.WaitOnType=t.EventBus=t.AutomationEventBus=void 0,t.waitOnEventOrTimeout=function({target:e,name:t,delay:r=0}){return new Promise((function(a,s){if("object"!=typeof e||!t||"string"!=typeof t||!(Number.isInteger(r)&&r>=0))throw new Error("waitOnEventOrTimeout - invalid parameters.");function o(n){e instanceof i?e._off(t,l):e.removeEventListener(t,l),c&&clearTimeout(c),a(n)}const l=o.bind(null,n.EVENT);e instanceof i?e._on(t,l):e.addEventListener(t,l);const u=o.bind(null,n.TIMEOUT),c=setTimeout(u,r)}))};const n={EVENT:"event",TIMEOUT:"timeout"};t.WaitOnType=n;class i{constructor(){this._listeners=Object.create(null)}on(e,t,n=null){this._on(e,t,{external:!0,once:n?.once})}off(e,t,n=null){this._off(e,t,{external:!0,once:n?.once})}dispatch(e,t){const n=this._listeners[e];if(!n||0===n.length)return;let i;for(const{listener:r,external:a,once:s}of n.slice(0))s&&this._off(e,r),a?(i||=[]).push(r):r(t);if(i){for(const e of i)e(t);i=null}}_on(e,t,n=null){(this._listeners[e]||=[]).push({listener:t,external:!0===n?.external,once:!0===n?.once})}_off(e,t,n=null){const i=this._listeners[e];if(i)for(let e=0,n=i.length;e<n;e++)if(i[e].listener===t)return void i.splice(e,1)}}t.EventBus=i,t.AutomationEventBus=class extends i{dispatch(e,t){throw new Error("Not implemented: AutomationEventBus.dispatch")}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.GenericL10n=void 0,n(21);var i=n(4);const r=document.webL10n;t.GenericL10n=class{constructor(e){this._lang=e,this._ready=new Promise(((t,n)=>{r.setLanguage((0,i.fixupLangCode)(e),(()=>{t(r)}))}))}async getLanguage(){return(await this._ready).getLanguage()}async getDirection(){return(await this._ready).getDirection()}async get(e,t=null,n=(0,i.getL10nFallback)(e,t)){return(await this._ready).get(e,t,n)}async translate(e){return(await this._ready).translate(e)}}},()=>{document.webL10n=function(e,t){var n={},i="",a="textContent",s="",o={},l="loading";function u(e,t,n){t=t||function(e){},n=n||function(){};var i=new XMLHttpRequest;i.open("GET",e,!0),i.overrideMimeType&&i.overrideMimeType("text/plain; charset=utf-8"),i.onreadystatechange=function(){4==i.readyState&&(200==i.status||0===i.status?t(i.responseText):n())},i.onerror=n,i.ontimeout=n;try{i.send(null)}catch(e){n()}}function c(e,t,s,o){var l=e.replace(/[^\/]*$/,"")||"./";function c(e){return e.lastIndexOf("\\")<0?e:e.replace(/\\\\/g,"\\").replace(/\\n/g,"\n").replace(/\\r/g,"\r").replace(/\\t/g,"\t").replace(/\\b/g,"\b").replace(/\\f/g,"\f").replace(/\\{/g,"{").replace(/\\}/g,"}").replace(/\\"/g,'"').replace(/\\'/g,"'")}u(e,(function(e){i+=e,function(e,n){var i={},a=/^\s*|\s*$/,s=/^\s*#|^\s*$/,o=/^\s*\[(.*)\]\s*$/,d=/^\s*@import\s+url\((.*)\)\s*$/i,p=/^([^=\s]*)\s*=\s*(.+)$/;function h(e,n,r){var u=e.replace(a,"").split(/[\r\n]+/),h="*",f=t.split("-",1)[0],m=!1,b="";!function e(){for(;;){if(!u.length)return void r();var a=u.shift();if(!s.test(a)){if(n){if(b=o.exec(a)){h=b[1].toLowerCase(),m="*"!==h&&h!==t&&h!==f;continue}if(m)continue;if(b=d.exec(a))return void g(l+b[1],e)}var y=a.match(p);y&&3==y.length&&(i[y[1]]=c(y[2]))}}}()}function g(e,t){u(e,(function(e){h(e,!1,t)}),(function(){r.warn(e+" not found."),t()}))}h(e,!0,(function(){n(i)}))}(e,(function(e){for(var t in e){var i,r,o=t.lastIndexOf(".");o>0?(i=t.substring(0,o),r=t.substring(o+1)):(i=t,r=a),n[i]||(n[i]={}),n[i][r]=e[t]}s&&s()}))}),o)}function d(e,a){e&&(e=e.toLowerCase()),a=a||function(){},n={},i="",s="",s=e;var o=t.querySelectorAll('link[type="application/l10n"]'),u=o.length;if(0!==u){var d,p,h=0;p=function(){++h>=u&&(a(),l="complete")};for(var g=0;g<u;g++)new y(o[g]).load(e,p)}else{var f=(d=t.querySelector('script[type="application/l10n"]'))?JSON.parse(d.innerHTML):null;if(f&&f.locales&&f.default_locale){if(r.log("using the embedded JSON directory, early way out"),!(n=f.locales[e])){var m=f.default_locale.toLowerCase();for(var b in f.locales){if((b=b.toLowerCase())===e){n=f.locales[e];break}b===m&&(n=f.locales[m])}}a()}else r.log("no resource to load, early way out");l="complete"}function y(e){var t=e.href;this.load=function(e,n){c(t,e,n,(function(){r.warn(t+" not found."),r.warn('"'+e+'" resource not found'),s="",n()}))}}}function p(e,t,i){var a=n[e];if(!a){if(r.warn("#"+e+" is undefined."),!i)return null;a=i}var s={};for(var o in a){var l=a[o];l=g(l=h(l,t,e,o),t,e),s[o]=l}return s}function h(e,t,i,r){var a=/\{\[\s*([a-zA-Z]+)\(([a-zA-Z]+)\)\s*\]\}/.exec(e);if(!a||!a.length)return e;var s,l=a[1],u=a[2];return t&&u in t?s=t[u]:u in n&&(s=n[u]),l in o&&(e=(0,o[l])(e,s,i,r)),e}function g(e,t,i){return e.replace(/\{\{\s*(.+?)\s*\}\}/g,(function(e,a){return t&&a in t?t[a]:a in n?n[a]:(r.log("argument {{"+a+"}} for #"+i+" is undefined."),e)}))}function f(e){var n=function(e){if(!e)return{};var t=e.getAttribute("data-l10n-id"),n=e.getAttribute("data-l10n-args"),i={};if(n)try{i=JSON.parse(n)}catch(e){r.warn("could not parse arguments for #"+t)}return{id:t,args:i}}(e);if(n.id){var i=p(n.id,n.args);if(i){if(i[a]){if(0===function(e){if(e.children)return e.children.length;if(void 0!==e.childElementCount)return e.childElementCount;for(var t=0,n=0;n<e.childNodes.length;n++)t+=1===e.nodeType?1:0;return t}(e))e[a]=i[a];else{for(var s=e.childNodes,o=!1,l=0,u=s.length;l<u;l++)3===s[l].nodeType&&/\S/.test(s[l].nodeValue)&&(o?s[l].nodeValue="":(s[l].nodeValue=i[a],o=!0));if(!o){var c=t.createTextNode(i[a]);e.prepend(c)}}delete i[a]}for(var d in i)e[d]=i[d]}else r.warn("#"+n.id+" is undefined.")}}return o.plural=function(e,t,i,l){var u=parseFloat(t);if(isNaN(u))return e;if(l!=a)return e;o._pluralRules||(o._pluralRules=function(e){function t(e,t){return-1!==t.indexOf(e)}function n(e,t,n){return t<=e&&e<=n}var i={0:function(e){return"other"},1:function(e){return n(e%100,3,10)?"few":0===e?"zero":n(e%100,11,99)?"many":2==e?"two":1==e?"one":"other"},2:function(e){return 0!==e&&e%10==0?"many":2==e?"two":1==e?"one":"other"},3:function(e){return 1==e?"one":"other"},4:function(e){return n(e,0,1)?"one":"other"},5:function(e){return n(e,0,2)&&2!=e?"one":"other"},6:function(e){return 0===e?"zero":e%10==1&&e%100!=11?"one":"other"},7:function(e){return 2==e?"two":1==e?"one":"other"},8:function(e){return n(e,3,6)?"few":n(e,7,10)?"many":2==e?"two":1==e?"one":"other"},9:function(e){return 0===e||1!=e&&n(e%100,1,19)?"few":1==e?"one":"other"},10:function(e){return n(e%10,2,9)&&!n(e%100,11,19)?"few":e%10!=1||n(e%100,11,19)?"other":"one"},11:function(e){return n(e%10,2,4)&&!n(e%100,12,14)?"few":e%10==0||n(e%10,5,9)||n(e%100,11,14)?"many":e%10==1&&e%100!=11?"one":"other"},12:function(e){return n(e,2,4)?"few":1==e?"one":"other"},13:function(e){return n(e%10,2,4)&&!n(e%100,12,14)?"few":1!=e&&n(e%10,0,1)||n(e%10,5,9)||n(e%100,12,14)?"many":1==e?"one":"other"},14:function(e){return n(e%100,3,4)?"few":e%100==2?"two":e%100==1?"one":"other"},15:function(e){return 0===e||n(e%100,2,10)?"few":n(e%100,11,19)?"many":1==e?"one":"other"},16:function(e){return e%10==1&&11!=e?"one":"other"},17:function(e){return 3==e?"few":0===e?"zero":6==e?"many":2==e?"two":1==e?"one":"other"},18:function(e){return 0===e?"zero":n(e,0,2)&&0!==e&&2!=e?"one":"other"},19:function(e){return n(e,2,10)?"few":n(e,0,1)?"one":"other"},20:function(e){return!n(e%10,3,4)&&e%10!=9||n(e%100,10,19)||n(e%100,70,79)||n(e%100,90,99)?e%1000000==0&&0!==e?"many":e%10!=2||t(e%100,[12,72,92])?e%10!=1||t(e%100,[11,71,91])?"other":"one":"two":"few"},21:function(e){return 0===e?"zero":1==e?"one":"other"},22:function(e){return n(e,0,1)||n(e,11,99)?"one":"other"},23:function(e){return n(e%10,1,2)||e%20==0?"one":"other"},24:function(e){return n(e,3,10)||n(e,13,19)?"few":t(e,[2,12])?"two":t(e,[1,11])?"one":"other"}},a={af:3,ak:4,am:4,ar:1,asa:3,az:0,be:11,bem:3,bez:3,bg:3,bh:4,bm:0,bn:3,bo:0,br:20,brx:3,bs:11,ca:3,cgg:3,chr:3,cs:12,cy:17,da:3,de:3,dv:3,dz:0,ee:3,el:3,en:3,eo:3,es:3,et:3,eu:3,fa:0,ff:5,fi:3,fil:4,fo:3,fr:5,fur:3,fy:3,ga:8,gd:24,gl:3,gsw:3,gu:3,guw:4,gv:23,ha:3,haw:3,he:2,hi:4,hr:11,hu:0,id:0,ig:0,ii:0,is:3,it:3,iu:7,ja:0,jmc:3,jv:0,ka:0,kab:5,kaj:3,kcg:3,kde:0,kea:0,kk:3,kl:3,km:0,kn:0,ko:0,ksb:3,ksh:21,ku:3,kw:7,lag:18,lb:3,lg:3,ln:4,lo:0,lt:10,lv:6,mas:3,mg:4,mk:16,ml:3,mn:3,mo:9,mr:3,ms:0,mt:15,my:0,nah:3,naq:7,nb:3,nd:3,ne:3,nl:3,nn:3,no:3,nr:3,nso:4,ny:3,nyn:3,om:3,or:3,pa:3,pap:3,pl:13,ps:3,pt:3,rm:3,ro:9,rof:3,ru:11,rwk:3,sah:0,saq:3,se:7,seh:3,ses:0,sg:0,sh:11,shi:19,sk:12,sl:14,sma:7,smi:7,smj:7,smn:7,sms:7,sn:3,so:3,sq:3,sr:11,ss:3,ssy:3,st:3,sv:3,sw:3,syr:3,ta:3,te:3,teo:3,th:0,ti:4,tig:3,tk:3,tl:4,tn:3,to:0,tr:0,ts:3,tzm:22,uk:11,ur:3,ve:3,vi:0,vun:3,wa:4,wae:3,wo:0,xh:3,xog:3,yo:0,zh:0,zu:3}[e.replace(/-.*$/,"")];return a in i?i[a]:(r.warn("plural form unknown for ["+e+"]"),function(){return"other"})}(s));var c="["+o._pluralRules(u)+"]";return 0===u&&i+"[zero]"in n?e=n[i+"[zero]"][l]:1==u&&i+"[one]"in n?e=n[i+"[one]"][l]:2==u&&i+"[two]"in n?e=n[i+"[two]"][l]:i+c in n?e=n[i+c][l]:i+"[other]"in n&&(e=n[i+"[other]"][l]),e},{get:function(e,t,n){var i,r=e.lastIndexOf("."),s=a;r>0&&(s=e.substring(r+1),e=e.substring(0,r)),n&&((i={})[s]=n);var o=p(e,t,i);return o&&s in o?o[s]:"{{"+e+"}}"},getData:function(){return n},getText:function(){return i},getLanguage:function(){return s},setLanguage:function(e,t){d(e,(function(){t&&t()}))},getDirection:function(){var e=s.split("-",1)[0];return["ar","he","fa","ps","ur"].indexOf(e)>=0?"rtl":"ltr"},translate:function(e){for(var n=function(e){return e?e.querySelectorAll("*[data-l10n-id]"):[]}(e=e||t.documentElement),i=n.length,r=0;r<i;r++)f(n[r]);f(e)},getReadyState:function(){return l},ready:function(n){n&&("complete"==l||"interactive"==l?e.setTimeout((function(){n()})):t.addEventListener&&t.addEventListener("localized",(function e(){t.removeEventListener("localized",e),n()})))}}}(window,document)},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PDFFindController=t.FindState=void 0;var i=n(7),a=n(3),s=n(23);const o={FOUND:0,NOT_FOUND:1,WRAPPED:2,PENDING:3};t.FindState=o;const l={"\u2010":"-","\u2018":"'","\u2019":"'","\u201a":"'","\u201b":"'","\u201c":'"',"\u201d":'"',"\u201e":'"',"\u201f":'"',"\xbc":"1/4","\xbd":"1/2","\xbe":"3/4"},u=new Set([0x3099,0x309a,0x094d,0x09cd,0x0a4d,0x0acd,0x0b4d,0x0bcd,0x0c4d,0x0ccd,0x0d3b,0x0d3c,0x0d4d,0x0dca,0x0e3a,0x0eba,0x0f84,0x1039,0x103a,0x1714,0x1734,0x17d2,0x1a60,0x1b44,0x1baa,0x1bab,0x1bf2,0x1bf3,0x2d7f,0xa806,0xa82c,0xa8c4,0xa953,0xa9c0,0xaaf6,0xabed,0x0c56,0x0f71,0x0f72,0x0f7a,0x0f7b,0x0f7c,0x0f7d,0x0f80,0x0f74]),c=[...u.values()].map((e=>String.fromCharCode(e))).join(""),d=/\p{M}+/gu,p=/([.*+?^${}()|[\]\\])|(\p{P})|(\s+)|(\p{M})|(\p{L})/gu,h=/([^\p{M}])\p{M}*$/u,g=/^\p{M}*([^\p{M}])/u,f=/[\uAC00-\uD7AF\uFA6C\uFACF-\uFAD1\uFAD5-\uFAD7]+/g,m=new Map;let b=null,y=null;function _(e){const t=[];let n,i;for(;null!==(n=f.exec(e));){let{index:e}=n;for(const i of n[0]){let n=m.get(i);n||(n=i.normalize("NFD").length,m.set(i,n)),t.push([n,e++])}}if(0===t.length&&b)i=b;else if(t.length>0&&y)i=y;else{const e=`([${Object.keys(l).join("")}])|(\\p{M}+(?:-\\n)?)|(\\S-\\n)|(\\n)`;i=0===t.length?b=new RegExp(e+"|(\\u0000)","gum"):y=new RegExp(e+"|([\\u1100-\\u1112\\ud7a4-\\ud7af\\ud84a\\ud84c\\ud850\\ud854\\ud857\\ud85f])","gum")}const r=[];for(;null!==(n=d.exec(e));)r.push([n[0].length,n.index]);let a=e.normalize("NFD");const s=[[0,0]];let o=0,u=0,c=0,p=0,h=0,g=!1;return a=a.replace(i,((e,n,i,a,d,f,m)=>{if(m-=p,n){const t=l[e],n=t.length;for(let e=1;e<n;e++)s.push([m-c+e,c-e]);return c-=n-1,t}if(i){const e=i.endsWith("\n"),t=e?i.length-2:i.length;g=!0;let n=t;m+h===r[o]?.[1]&&(n-=r[o][0],++o);for(let e=1;e<=n;e++)s.push([m-1-c+e,c-e]);return c-=n,p+=n,e?(m+=t-1,s.push([m-c+1,1+c]),c+=1,p+=1,h+=1,i.slice(0,t)):i}if(a)return s.push([m-c+1,1+c]),c+=1,p+=1,h+=1,a.charAt(0);if(d)return s.push([m-c+1,c-1]),c-=1,p+=1,h+=1," ";if(m+h===t[u]?.[1]){const e=t[u][0]-1;++u;for(let t=1;t<=e;t++)s.push([m-(c-t),c-t]);c-=e,p+=e}return f})),s.push([a.length,c]),[a,s,g]}function v(e,t,n){if(!e)return[t,n];const r=t,a=t+n;let s=(0,i.binarySearchFirstItem)(e,(e=>e[0]>=r));e[s][0]>r&&--s;let o=(0,i.binarySearchFirstItem)(e,(e=>e[0]>=a),s);return e[o][0]>a&&--o,[r+e[s][1],n+e[o][1]-e[s][1]]}t.PDFFindController=class{constructor({linkService:e,eventBus:t}){this._linkService=e,this._eventBus=t,this.#M(),t._on("find",this.#D.bind(this)),t._on("findbarclose",this.#O.bind(this))}get highlightMatches(){return this._highlightMatches}get pageMatches(){return this._pageMatches}get pageMatchesLength(){return this._pageMatchesLength}get selected(){return this._selected}get state(){return this._state}setDocument(e){this._pdfDocument&&this.#M(),e&&(this._pdfDocument=e,this._firstPageCapability.resolve())}#D(e){if(!e)return;const t=this._pdfDocument,{type:n}=e;(null===this._state||this.#F(e))&&(this._dirtyMatch=!0),this._state=e,"highlightallchange"!==n&&this.#B(o.PENDING),this._firstPageCapability.promise.then((()=>{if(!this._pdfDocument||t&&this._pdfDocument!==t)return;this.#$();const e=!this._highlightMatches,i=!!this._findTimeout;this._findTimeout&&(clearTimeout(this._findTimeout),this._findTimeout=null),n?this._dirtyMatch?this.#V():"again"===n?(this.#V(),e&&this._state.highlightAll&&this.#U()):"highlightallchange"===n?(i?this.#V():this._highlightMatches=!0,this.#U()):this.#V():this._findTimeout=setTimeout((()=>{this.#V(),this._findTimeout=null}),250)}))}scrollMatchIntoView({element:e=null,selectedLeft:t=0,pageIndex:n=-1,matchIndex:r=-1}){if(!this._scrollMatches||!e)return;if(-1===r||r!==this._selected.matchIdx)return;if(-1===n||n!==this._selected.pageIdx)return;this._scrollMatches=!1;const a={top:-50,left:t+-400};(0,i.scrollIntoView)(e,a,!0)}#M(){this._highlightMatches=!1,this._scrollMatches=!1,this._pdfDocument=null,this._pageMatches=[],this._pageMatchesLength=[],this._state=null,this._selected={pageIdx:-1,matchIdx:-1},this._offset={pageIdx:null,matchIdx:null,wrapped:!1},this._extractTextPromises=[],this._pageContents=[],this._pageDiffs=[],this._hasDiacritics=[],this._matchesCountTotal=0,this._pagesToSearch=null,this._pendingFindMatches=new Set,this._resumePageIdx=null,this._dirtyMatch=!1,clearTimeout(this._findTimeout),this._findTimeout=null,this._firstPageCapability=(0,a.createPromiseCapability)()}get#z(){return this._state.query!==this._rawQuery&&(this._rawQuery=this._state.query,[this._normalizedQuery]=_(this._state.query)),this._normalizedQuery}#F(e){if(e.query!==this._state.query)return!0;switch(e.type){case"again":const e=this._selected.pageIdx+1,t=this._linkService;return e>=1&&e<=t.pagesCount&&e!==t.page&&!t.isPageVisible(e);case"highlightallchange":return!1}return!0}#H(e,t,n){let i=e.slice(0,t).match(h);if(i){const n=e.charCodeAt(t),r=i[1].charCodeAt(0);if((0,s.getCharacterType)(n)===(0,s.getCharacterType)(r))return!1}if(i=e.slice(t+n).match(g),i){const r=e.charCodeAt(t+n-1),a=i[1].charCodeAt(0);if((0,s.getCharacterType)(r)===(0,s.getCharacterType)(a))return!1}return!0}#j(e,t,n,i){const r=[],a=[],s=this._pageDiffs[n];let o;for(;null!==(o=e.exec(i));){if(t&&!this.#H(i,o.index,o[0].length))continue;const[e,n]=v(s,o.index,o[0].length);n&&(r.push(e),a.push(n))}this._pageMatches[n]=r,this._pageMatchesLength[n]=a}#G(e,t){const{matchDiacritics:n}=this._state;let i=!1;const r="[ ]*";return(e=e.replace(p,((e,r,a,s,o,l)=>r?`[ ]*\\${r}[ ]*`:a?`[ ]*${a}[ ]*`:s?"[ ]+":n?o||l:o?u.has(o.charCodeAt(0))?o:"":t?(i=!0,`${l}\\p{M}*`):l))).endsWith(r)&&(e=e.slice(0,e.length-4)),n&&t&&(i=!0,e=`${e}(?=[${c}]|[^\\p{M}]|$)`),[i,e]}#W(e){let t=this.#z;if(0===t.length)return;const{caseSensitive:n,entireWord:i,phraseSearch:r}=this._state,a=this._pageContents[e],s=this._hasDiacritics[e];let o=!1;if(r)[o,t]=this.#G(t,s);else{const e=t.match(/\S+/g);e&&(t=e.sort().reverse().map((e=>{const[t,n]=this.#G(e,s);return o||=t,`(${n})`})).join("|"))}t=new RegExp(t,`g${o?"u":""}${n?"":"i"}`),this.#j(t,i,e,a),this._state.highlightAll&&this.#Z(e),this._resumePageIdx===e&&(this._resumePageIdx=null,this.#q());const l=this._pageMatches[e].length;l>0&&(this._matchesCountTotal+=l,this.#X())}#$(){if(this._extractTextPromises.length>0)return;let e=Promise.resolve();for(let t=0,n=this._linkService.pagesCount;t<n;t++){const n=(0,a.createPromiseCapability)();this._extractTextPromises[t]=n.promise,e=e.then((()=>this._pdfDocument.getPage(t+1).then((e=>e.getTextContent())).then((e=>{const i=[];for(const t of e.items)i.push(t.str),t.hasEOL&&i.push("\n");[this._pageContents[t],this._pageDiffs[t],this._hasDiacritics[t]]=_(i.join("")),n.resolve()}),(e=>{r.error(`Unable to get text content for page ${t+1}`,e),this._pageContents[t]="",this._pageDiffs[t]=null,this._hasDiacritics[t]=!1,n.resolve()}))))}}#Z(e){this._scrollMatches&&this._selected.pageIdx===e&&(this._linkService.page=e+1),this._eventBus.dispatch("updatetextlayermatches",{source:this,pageIndex:e})}#U(){this._eventBus.dispatch("updatetextlayermatches",{source:this,pageIndex:-1})}#V(){const e=this._state.findPrevious,t=this._linkService.page-1,n=this._linkService.pagesCount;if(this._highlightMatches=!0,this._dirtyMatch){this._dirtyMatch=!1,this._selected.pageIdx=this._selected.matchIdx=-1,this._offset.pageIdx=t,this._offset.matchIdx=null,this._offset.wrapped=!1,this._resumePageIdx=null,this._pageMatches.length=0,this._pageMatchesLength.length=0,this._matchesCountTotal=0,this.#U();for(let e=0;e<n;e++)this._pendingFindMatches.has(e)||(this._pendingFindMatches.add(e),this._extractTextPromises[e].then((()=>{this._pendingFindMatches.delete(e),this.#W(e)})))}if(""===this.#z)return void this.#B(o.FOUND);if(this._resumePageIdx)return;const i=this._offset;if(this._pagesToSearch=n,null!==i.matchIdx){const t=this._pageMatches[i.pageIdx].length;if(!e&&i.matchIdx+1<t||e&&i.matchIdx>0)return i.matchIdx=e?i.matchIdx-1:i.matchIdx+1,void this.#K(!0);this.#Y(e)}this.#q()}#Q(e){const t=this._offset,n=e.length,i=this._state.findPrevious;return n?(t.matchIdx=i?n-1:0,this.#K(!0),!0):(this.#Y(i),!!(t.wrapped&&(t.matchIdx=null,this._pagesToSearch<0))&&(this.#K(!1),!0))}#q(){null!==this._resumePageIdx&&r.error("There can only be one pending page.");let e=null;do{const t=this._offset.pageIdx;if(e=this._pageMatches[t],!e){this._resumePageIdx=t;break}}while(!this.#Q(e))}#Y(e){const t=this._offset,n=this._linkService.pagesCount;t.pageIdx=e?t.pageIdx-1:t.pageIdx+1,t.matchIdx=null,this._pagesToSearch--,(t.pageIdx>=n||t.pageIdx<0)&&(t.pageIdx=e?n-1:0,t.wrapped=!0)}#K(e=!1){let t=o.NOT_FOUND;const n=this._offset.wrapped;if(this._offset.wrapped=!1,e){const e=this._selected.pageIdx;this._selected.pageIdx=this._offset.pageIdx,this._selected.matchIdx=this._offset.matchIdx,t=n?o.WRAPPED:o.FOUND,-1!==e&&e!==this._selected.pageIdx&&this.#Z(e)}this.#B(t,this._state.findPrevious),-1!==this._selected.pageIdx&&(this._scrollMatches=!0,this.#Z(this._selected.pageIdx))}#O(e){const t=this._pdfDocument;this._firstPageCapability.promise.then((()=>{!this._pdfDocument||t&&this._pdfDocument!==t||(this._findTimeout&&(clearTimeout(this._findTimeout),this._findTimeout=null),this._resumePageIdx&&(this._resumePageIdx=null,this._dirtyMatch=!0),this.#B(o.FOUND),this._highlightMatches=!1,this.#U())}))}#J(){const{pageIdx:e,matchIdx:t}=this._selected;let n=0,i=this._matchesCountTotal;if(-1!==t){for(let t=0;t<e;t++)n+=this._pageMatches[t]?.length||0;n+=t+1}return(n<1||n>i)&&(n=i=0),{current:n,total:i}}#X(){this._eventBus.dispatch("updatefindmatchescount",{source:this,matchesCount:this.#J()})}#B(e,t=!1){this._eventBus.dispatch("updatefindcontrolstate",{source:this,state:e,previous:t,matchesCount:this.#J(),rawQuery:this._state?.query??null})}}},(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CharacterType=void 0,t.getCharacterType=function(e){return function(e){return e<0x2e80}(e)?function(e){return!(0xff80&e)}(e)?function(e){return 0x20===e||0x09===e||0x0d===e||0x0a===e}(e)?n.SPACE:function(e){return e>=0x61&&e<=0x7a||e>=0x41&&e<=0x5a}(e)||function(e){return e>=0x30&&e<=0x39}(e)||0x5f===e?n.ALPHA_LETTER:n.PUNCT:function(e){return 0x0e00==(0xff80&e)}(e)?n.THAI_LETTER:0xa0===e?n.SPACE:n.ALPHA_LETTER:function(e){return e>=0x3400&&e<=0x9fff||e>=0xf900&&e<=0xfaff}(e)?n.HAN_LETTER:function(e){return e>=0x30a0&&e<=0x30ff}(e)?n.KATAKANA_LETTER:function(e){return e>=0x3040&&e<=0x309f}(e)?n.HIRAGANA_LETTER:function(e){return e>=0xff60&&e<=0xff9f}(e)?n.HALFWIDTH_KATAKANA_LETTER:n.ALPHA_LETTER};const n={SPACE:0,ALPHA_LETTER:1,PUNCT:2,HAN_LETTER:3,KATAKANA_LETTER:4,HIRAGANA_LETTER:5,HALFWIDTH_KATAKANA_LETTER:6,THAI_LETTER:7};t.CharacterType=n},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PDFHistory=void 0,t.isDestArraysEqual=l,t.isDestHashesEqual=o;var i=n(7),a=n(19);function s(){return document.location.hash}function o(e,t){return"string"==typeof e&&"string"==typeof t&&(e===t||(0,i.parseQueryString)(e).get("nameddest")===t)}function l(e,t){function n(e,t){if(typeof e!=typeof t)return!1;if(Array.isArray(e)||Array.isArray(t))return!1;if(null!==e&&"object"==typeof e&&null!==t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const i in e)if(!n(e[i],t[i]))return!1;return!0}return e===t||Number.isNaN(e)&&Number.isNaN(t)}if(!Array.isArray(e)||!Array.isArray(t))return!1;if(e.length!==t.length)return!1;for(let i=0,r=e.length;i<r;i++)if(!n(e[i],t[i]))return!1;return!0}t.PDFHistory=class{constructor({linkService:e,eventBus:t}){this.linkService=e,this.eventBus=t,this._initialized=!1,this._fingerprint="",this.reset(),this._boundEvents=null,this.eventBus._on("pagesinit",(()=>{this._isPagesLoaded=!1,this.eventBus._on("pagesloaded",(e=>{this._isPagesLoaded=!!e.pagesCount}),{once:!0})}))}initialize({fingerprint:e,resetHistory:t=!1,updateUrl:n=!1}){if(!e||"string"!=typeof e)return void r.error('PDFHistory.initialize: The "fingerprint" must be a non-empty string.');this._initialized&&this.reset();const i=""!==this._fingerprint&&this._fingerprint!==e;this._fingerprint=e,this._updateUrl=!0===n,this._initialized=!0,this._bindEvents();const a=window.history.state;if(this._popStateInProgress=!1,this._blockHashChange=0,this._currentHash=s(),this._numPositionUpdates=0,this._uid=this._maxUid=0,this._destination=null,this._position=null,!this._isValidState(a,!0)||t){const{hash:e,page:n,rotation:r}=this._parseCurrentHash(!0);return!e||i||t?void this._pushOrReplaceState(null,!0):void this._pushOrReplaceState({hash:e,page:n,rotation:r},!0)}const o=a.destination;this._updateInternalState(o,a.uid,!0),void 0!==o.rotation&&(this._initialRotation=o.rotation),o.dest?(this._initialBookmark=JSON.stringify(o.dest),this._destination.page=null):o.hash?this._initialBookmark=o.hash:o.page&&(this._initialBookmark=`page=${o.page}`)}reset(){this._initialized&&(this._pageHide(),this._initialized=!1,this._unbindEvents()),this._updateViewareaTimeout&&(clearTimeout(this._updateViewareaTimeout),this._updateViewareaTimeout=null),this._initialBookmark=null,this._initialRotation=null}push({namedDest:e=null,explicitDest:t,pageNumber:n}){if(!this._initialized)return;if(e&&"string"!=typeof e)return void r.error(`PDFHistory.push: "${e}" is not a valid namedDest parameter.`);if(!Array.isArray(t))return void r.error(`PDFHistory.push: "${t}" is not a valid explicitDest parameter.`);if(!this._isValidPage(n)&&(null!==n||this._destination))return void r.error(`PDFHistory.push: "${n}" is not a valid pageNumber parameter.`);const i=e||JSON.stringify(t);if(!i)return;let a=!1;if(this._destination&&(o(this._destination.hash,i)||l(this._destination.dest,t))){if(this._destination.page)return;a=!0}this._popStateInProgress&&!a||(this._pushOrReplaceState({dest:t,hash:i,page:n,rotation:this.linkService.rotation},a),this._popStateInProgress||(this._popStateInProgress=!0,Promise.resolve().then((()=>{this._popStateInProgress=!1}))))}pushPage(e){this._initialized&&(this._isValidPage(e)?this._destination?.page!==e&&(this._popStateInProgress||(this._pushOrReplaceState({dest:null,hash:`page=${e}`,page:e,rotation:this.linkService.rotation}),this._popStateInProgress||(this._popStateInProgress=!0,Promise.resolve().then((()=>{this._popStateInProgress=!1}))))):r.error(`PDFHistory.pushPage: "${e}" is not a valid page number.`))}pushCurrentPosition(){this._initialized&&!this._popStateInProgress&&this._tryPushCurrentPosition()}back(){if(!this._initialized||this._popStateInProgress)return;const e=window.history.state;this._isValidState(e)&&e.uid>0&&window.history.back()}forward(){if(!this._initialized||this._popStateInProgress)return;const e=window.history.state;this._isValidState(e)&&e.uid<this._maxUid&&window.history.forward()}get popStateInProgress(){return this._initialized&&(this._popStateInProgress||this._blockHashChange>0)}get initialBookmark(){return this._initialized?this._initialBookmark:null}get initialRotation(){return this._initialized?this._initialRotation:null}_pushOrReplaceState(e,t=!1){const n=t||!this._destination,i={fingerprint:this._fingerprint,uid:n?this._uid:this._uid+1,destination:e};let r;if(this._updateInternalState(e,i.uid),this._updateUrl&&e?.hash){const t=document.location.href.split("#")[0];t.startsWith("file://")||(r=`${t}#${e.hash}`)}n?window.history.replaceState(i,"",r):window.history.pushState(i,"",r)}_tryPushCurrentPosition(e=!1){if(!this._position)return;let t=this._position;if(e&&(t=Object.assign(Object.create(null),this._position),t.temporary=!0),!this._destination)return void this._pushOrReplaceState(t);if(this._destination.temporary)return void this._pushOrReplaceState(t,!0);if(this._destination.hash===t.hash)return;if(!this._destination.page&&this._numPositionUpdates<=50)return;let n=!1;if(this._destination.page>=t.first&&this._destination.page<=t.page){if(void 0!==this._destination.dest||!this._destination.first)return;n=!0}this._pushOrReplaceState(t,n)}_isValidPage(e){return Number.isInteger(e)&&e>0&&e<=this.linkService.pagesCount}_isValidState(e,t=!1){if(!e)return!1;if(e.fingerprint!==this._fingerprint){if(!t)return!1;{if("string"!=typeof e.fingerprint||e.fingerprint.length!==this._fingerprint.length)return!1;const[t]=performance.getEntriesByType("navigation");if("reload"!==t?.type)return!1}}return!(!Number.isInteger(e.uid)||e.uid<0)&&null!==e.destination&&"object"==typeof e.destination}_updateInternalState(e,t,n=!1){this._updateViewareaTimeout&&(clearTimeout(this._updateViewareaTimeout),this._updateViewareaTimeout=null),n&&e?.temporary&&delete e.temporary,this._destination=e,this._uid=t,this._maxUid=Math.max(this._maxUid,t),this._numPositionUpdates=0}_parseCurrentHash(e=!1){const t=unescape(s()).substring(1),n=(0,i.parseQueryString)(t),r=n.get("nameddest")||"";let a=0|n.get("page");return(!this._isValidPage(a)||e&&r.length>0)&&(a=null),{hash:t,page:a,rotation:this.linkService.rotation}}_updateViewarea({location:e}){this._updateViewareaTimeout&&(clearTimeout(this._updateViewareaTimeout),this._updateViewareaTimeout=null),this._position={hash:e.pdfOpenParams.substring(1),page:this.linkService.page,first:e.pageNumber,rotation:e.rotation},this._popStateInProgress||(this._isPagesLoaded&&this._destination&&!this._destination.page&&this._numPositionUpdates++,this._updateViewareaTimeout=setTimeout((()=>{this._popStateInProgress||this._tryPushCurrentPosition(!0),this._updateViewareaTimeout=null}),1e3))}_popState({state:e}){const t=s(),n=this._currentHash!==t;if(this._currentHash=t,!e){this._uid++;const{hash:e,page:t,rotation:n}=this._parseCurrentHash();return void this._pushOrReplaceState({hash:e,page:t,rotation:n},!0)}if(!this._isValidState(e))return;this._popStateInProgress=!0,n&&(this._blockHashChange++,(0,a.waitOnEventOrTimeout)({target:window,name:"hashchange",delay:1e3}).then((()=>{this._blockHashChange--})));const r=e.destination;this._updateInternalState(r,e.uid,!0),(0,i.isValidRotation)(r.rotation)&&(this.linkService.rotation=r.rotation),r.dest?this.linkService.goToDestination(r.dest):r.hash?this.linkService.setHash(r.hash):r.page&&(this.linkService.page=r.page),Promise.resolve().then((()=>{this._popStateInProgress=!1}))}_pageHide(){this._destination&&!this._destination.temporary||this._tryPushCurrentPosition()}_bindEvents(){this._boundEvents||(this._boundEvents={updateViewarea:this._updateViewarea.bind(this),popState:this._popState.bind(this),pageHide:this._pageHide.bind(this)},this.eventBus._on("updateviewarea",this._boundEvents.updateViewarea),window.addEventListener("popstate",this._boundEvents.popState),window.addEventListener("pagehide",this._boundEvents.pageHide))}_unbindEvents(){this._boundEvents&&(this.eventBus._off("updateviewarea",this._boundEvents.updateViewarea),window.removeEventListener("popstate",this._boundEvents.popState),window.removeEventListener("pagehide",this._boundEvents.pageHide),this._boundEvents=null)}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PDFScriptingManager=void 0;var i=n(7),a=n(3);t.PDFScriptingManager=class{constructor({eventBus:e,sandboxBundleSrc:t=null,scriptingFactory:n=null,docPropertiesLookup:i=null}){this._pdfDocument=null,this._pdfViewer=null,this._closeCapability=null,this._destroyCapability=null,this._scripting=null,this._mouseState=Object.create(null),this._ready=!1,this._eventBus=e,this._sandboxBundleSrc=t,this._scriptingFactory=n,this._docPropertiesLookup=i,this._scriptingFactory||window.addEventListener("updatefromsandbox",(e=>{this._eventBus.dispatch("updatefromsandbox",{source:window,detail:e.detail})}))}setViewer(e){this._pdfViewer=e}async setDocument(e){if(this._pdfDocument&&await this._destroyScripting(),this._pdfDocument=e,!e)return;const[t,n,i]=await Promise.all([e.getFieldObjects(),e.getCalculationOrderIds(),e.getJSActions()]);if(t||i){if(e===this._pdfDocument){try{this._scripting=this._createScripting()}catch(e){return r.error(`PDFScriptingManager.setDocument: "${e?.message}".`),void await this._destroyScripting()}this._internalEvents.set("updatefromsandbox",(e=>{e?.source===window&&this._updateFromSandbox(e.detail)})),this._internalEvents.set("dispatcheventinsandbox",(e=>{this._scripting?.dispatchEventInSandbox(e.detail)})),this._internalEvents.set("pagechanging",(({pageNumber:e,previous:t})=>{e!==t&&(this._dispatchPageClose(t),this._dispatchPageOpen(e))})),this._internalEvents.set("pagerendered",(({pageNumber:e})=>{this._pageOpenPending.has(e)&&e===this._pdfViewer.currentPageNumber&&this._dispatchPageOpen(e)})),this._internalEvents.set("pagesdestroy",(async e=>{await this._dispatchPageClose(this._pdfViewer.currentPageNumber),await(this._scripting?.dispatchEventInSandbox({id:"doc",name:"WillClose"})),this._closeCapability?.resolve()})),this._domEvents.set("mousedown",(e=>{this._mouseState.isDown=!0})),this._domEvents.set("mouseup",(e=>{this._mouseState.isDown=!1}));for(const[e,t]of this._internalEvents)this._eventBus._on(e,t);for(const[e,t]of this._domEvents)window.addEventListener(e,t,!0);try{const r=await this._getDocProperties();if(e!==this._pdfDocument)return;await this._scripting.createSandbox({objects:t,calculationOrder:n,appInfo:{platform:navigator.platform,language:navigator.language},docInfo:{...r,actions:i}}),this._eventBus.dispatch("sandboxcreated",{source:this})}catch(e){return r.error(`PDFScriptingManager.setDocument: "${e?.message}".`),void await this._destroyScripting()}await(this._scripting?.dispatchEventInSandbox({id:"doc",name:"Open"})),await this._dispatchPageOpen(this._pdfViewer.currentPageNumber,!0),Promise.resolve().then((()=>{e===this._pdfDocument&&(this._ready=!0)}))}}else await this._destroyScripting()}async dispatchWillSave(e){return this._scripting?.dispatchEventInSandbox({id:"doc",name:"WillSave"})}async dispatchDidSave(e){return this._scripting?.dispatchEventInSandbox({id:"doc",name:"DidSave"})}async dispatchWillPrint(e){return this._scripting?.dispatchEventInSandbox({id:"doc",name:"WillPrint"})}async dispatchDidPrint(e){return this._scripting?.dispatchEventInSandbox({id:"doc",name:"DidPrint"})}get mouseState(){return this._mouseState}get destroyPromise(){return this._destroyCapability?.promise||null}get ready(){return this._ready}get _internalEvents(){return(0,a.shadow)(this,"_internalEvents",new Map)}get _domEvents(){return(0,a.shadow)(this,"_domEvents",new Map)}get _pageOpenPending(){return(0,a.shadow)(this,"_pageOpenPending",new Set)}get _visitedPages(){return(0,a.shadow)(this,"_visitedPages",new Map)}async _updateFromSandbox(e){const t=this._pdfViewer.isInPresentationMode||this._pdfViewer.isChangingPresentationMode,{id:n,siblings:a,command:s,value:o}=e;if(!n){switch(s){case"clear":r.clear();break;case"error":r.error(o);break;case"layout":if(t)return;const e=(0,i.apiPageLayoutToViewerModes)(o);this._pdfViewer.spreadMode=e.spreadMode;break;case"page-num":this._pdfViewer.currentPageNumber=o+1;break;case"print":await this._pdfViewer.pagesPromise,this._eventBus.dispatch("print",{source:this});break;case"println":r.log(o);break;case"zoom":if(t)return;this._pdfViewer.currentScaleValue=o;break;case"SaveAs":this._eventBus.dispatch("download",{source:this});break;case"FirstPage":this._pdfViewer.currentPageNumber=1;break;case"LastPage":this._pdfViewer.currentPageNumber=this._pdfViewer.pagesCount;break;case"NextPage":this._pdfViewer.nextPage();break;case"PrevPage":this._pdfViewer.previousPage();break;case"ZoomViewIn":if(t)return;this._pdfViewer.increaseScale();break;case"ZoomViewOut":if(t)return;this._pdfViewer.decreaseScale()}return}if(t&&e.focus)return;delete e.id,delete e.siblings;const l=a?[n,...a]:[n];for(const t of l){const n=document.querySelector(`[data-element-id="${t}"]`);n?n.dispatchEvent(new CustomEvent("updatefromsandbox",{detail:e})):this._pdfDocument?.annotationStorage.setValue(t,e)}}async _dispatchPageOpen(e,t=!1){const n=this._pdfDocument,r=this._visitedPages;if(t&&(this._closeCapability=(0,a.createPromiseCapability)()),!this._closeCapability)return;const s=this._pdfViewer.getPageView(e-1);if(s?.renderingState!==i.RenderingStates.FINISHED)return void this._pageOpenPending.add(e);this._pageOpenPending.delete(e);const o=(async()=>{const t=await(r.has(e)?null:s.pdfPage?.getJSActions());n===this._pdfDocument&&await(this._scripting?.dispatchEventInSandbox({id:"page",name:"PageOpen",pageNumber:e,actions:t}))})();r.set(e,o)}async _dispatchPageClose(e){const t=this._pdfDocument,n=this._visitedPages;if(!this._closeCapability)return;if(this._pageOpenPending.has(e))return;const i=n.get(e);i&&(n.set(e,null),await i,t===this._pdfDocument&&await(this._scripting?.dispatchEventInSandbox({id:"page",name:"PageClose",pageNumber:e})))}async _getDocProperties(){if(this._docPropertiesLookup)return this._docPropertiesLookup(this._pdfDocument);const{docPropertiesLookup:e}=n(26);return e(this._pdfDocument)}_createScripting(){if(this._destroyCapability=(0,a.createPromiseCapability)(),this._scripting)throw new Error("_createScripting: Scripting already exists.");if(this._scriptingFactory)return this._scriptingFactory.createScripting({sandboxBundleSrc:this._sandboxBundleSrc});const{GenericScripting:e}=n(26);return new e(this._sandboxBundleSrc)}async _destroyScripting(){if(!this._scripting)return this._pdfDocument=null,void this._destroyCapability?.resolve();this._closeCapability&&(await Promise.race([this._closeCapability.promise,new Promise((e=>{setTimeout(e,1000)}))]).catch((e=>{})),this._closeCapability=null),this._pdfDocument=null;try{await this._scripting.destroySandbox()}catch(e){}for(const[e,t]of this._internalEvents)this._eventBus._off(e,t);this._internalEvents.clear();for(const[e,t]of this._domEvents)window.removeEventListener(e,t,!0);this._domEvents.clear(),this._pageOpenPending.clear(),this._visitedPages.clear(),this._scripting=null,delete this._mouseState.isDown,this._ready=!1,this._destroyCapability?.resolve()}}},(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.GenericScripting=void 0,t.docPropertiesLookup=async function(e){const t="".split("#")[0];let{info:n,metadata:r,contentDispositionFilename:a,contentLength:s}=await e.getMetadata();if(!s){const{length:t}=await e.getDownloadInfo();s=t}return{...n,baseURL:t,filesize:s,filename:a||(0,i.getPdfFilenameFromUrl)(""),metadata:r?.getRaw(),authors:r?.get("dc:creator"),numPages:e.numPages,URL:""}};var i=n(3);t.GenericScripting=class{constructor(e){this._ready=(0,i.loadScript)(e,!0).then((()=>window.pdfjsSandbox.QuickJSSandbox()))}async createSandbox(e){(await this._ready).create(e)}async dispatchEventInSandbox(e){const t=await this._ready;setTimeout((()=>t.dispatchEvent(e)),0)}async destroySandbox(){(await this._ready).nukeSandbox()}}}],t={};function i(n){var r=t[n];if(void 0!==r)return r.exports;var a=t[n]={exports:{}};return e[n](a,a.exports,i),a.exports}var a={};return(()=>{var e=a;Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"AnnotationLayerBuilder",{enumerable:!0,get:function(){return o.AnnotationLayerBuilder}}),Object.defineProperty(e,"DefaultAnnotationLayerFactory",{enumerable:!0,get:function(){return t.DefaultAnnotationLayerFactory}}),Object.defineProperty(e,"DefaultStructTreeLayerFactory",{enumerable:!0,get:function(){return t.DefaultStructTreeLayerFactory}}),Object.defineProperty(e,"DefaultTextLayerFactory",{enumerable:!0,get:function(){return t.DefaultTextLayerFactory}}),Object.defineProperty(e,"DefaultXfaLayerFactory",{enumerable:!0,get:function(){return t.DefaultXfaLayerFactory}}),Object.defineProperty(e,"DownloadManager",{enumerable:!0,get:function(){return l.DownloadManager}}),Object.defineProperty(e,"EventBus",{enumerable:!0,get:function(){return u.EventBus}}),Object.defineProperty(e,"GenericL10n",{enumerable:!0,get:function(){return c.GenericL10n}}),Object.defineProperty(e,"LinkTarget",{enumerable:!0,get:function(){return n.LinkTarget}}),Object.defineProperty(e,"NullL10n",{enumerable:!0,get:function(){return d.NullL10n}}),Object.defineProperty(e,"PDFFindController",{enumerable:!0,get:function(){return p.PDFFindController}}),Object.defineProperty(e,"PDFHistory",{enumerable:!0,get:function(){return h.PDFHistory}}),Object.defineProperty(e,"PDFLinkService",{enumerable:!0,get:function(){return n.PDFLinkService}}),Object.defineProperty(e,"PDFPageView",{enumerable:!0,get:function(){return g.PDFPageView}}),Object.defineProperty(e,"PDFScriptingManager",{enumerable:!0,get:function(){return f.PDFScriptingManager}}),Object.defineProperty(e,"PDFSinglePageViewer",{enumerable:!0,get:function(){return s.PDFSinglePageViewer}}),Object.defineProperty(e,"PDFViewer",{enumerable:!0,get:function(){return s.PDFViewer}}),Object.defineProperty(e,"ProgressBar",{enumerable:!0,get:function(){return r.ProgressBar}}),Object.defineProperty(e,"RenderingStates",{enumerable:!0,get:function(){return r.RenderingStates}}),Object.defineProperty(e,"ScrollMode",{enumerable:!0,get:function(){return r.ScrollMode}}),Object.defineProperty(e,"SimpleLinkService",{enumerable:!0,get:function(){return n.SimpleLinkService}}),Object.defineProperty(e,"SpreadMode",{enumerable:!0,get:function(){return r.SpreadMode}}),Object.defineProperty(e,"StructTreeLayerBuilder",{enumerable:!0,get:function(){return m.StructTreeLayerBuilder}}),Object.defineProperty(e,"TextLayerBuilder",{enumerable:!0,get:function(){return b.TextLayerBuilder}}),Object.defineProperty(e,"XfaLayerBuilder",{enumerable:!0,get:function(){return y.XfaLayerBuilder}}),Object.defineProperty(e,"parseQueryString",{enumerable:!0,get:function(){return r.parseQueryString}});var t=i(1),n=i(6),r=i(7),s=i(11),o=i(5),l=i(18),u=i(19),c=i(20),d=i(4),p=i(22),h=i(24),g=i(13),f=i(25),m=i(8),b=i(9),y=i(10)})(),a})(),e.exports=i()},13491:function(e,t,n){var i=n(65606);(function(){var t,n,r,a,s,o;"undefined"!=typeof performance&&null!==performance&&performance.now?e.exports=function(){return performance.now()}:null!=i&&i.hrtime?(e.exports=function(){return(t()-s)/1e6},n=i.hrtime,a=(t=function(){var e;return 1e9*(e=n())[0]+e[1]})(),o=1e9*i.uptime(),s=a-o):Date.now?(e.exports=function(){return Date.now()-r},r=Date.now()):(e.exports=function(){return(new Date).getTime()-r},r=(new Date).getTime())}).call(this)},76578:function(e){"use strict";e.exports=["Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]},57022:function(){!function(e){var t="\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b",n={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},i={bash:n,environment:{pattern:RegExp("\\$"+t),alias:"constant"},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+t),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/};e.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?:\.\w+)*(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+t),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},parameter:{pattern:/(^|\s)-{1,2}(?:\w+:[+-]?)?\w+(?:\.\w+)*(?=[=\s]|$)/,alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:i},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:n}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:i},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:i.entity}}],environment:{pattern:RegExp("\\$?"+t),alias:"constant"},variable:i.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cargo|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|java|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|sysctl|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},n.inside=e.languages.bash;for(var r=["comment","function-name","for-or-select","assign-left","parameter","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],a=i.variable[1].inside,s=0;s<r.length;s++)a[r[s]]=e.languages.bash[r[s]];e.languages.sh=e.languages.bash,e.languages.shell=e.languages.bash}(Prism)},87336:function(){Prism.languages.basic={comment:{pattern:/(?:!|REM\b).+/i,inside:{keyword:/^REM/i}},string:{pattern:/"(?:""|[!#$%&'()*,\/:;<=>?^\w +\-.])*"/,greedy:!0},number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,keyword:/\b(?:AS|BEEP|BLOAD|BSAVE|CALL(?: ABSOLUTE)?|CASE|CHAIN|CHDIR|CLEAR|CLOSE|CLS|COM|COMMON|CONST|DATA|DECLARE|DEF(?: FN| SEG|DBL|INT|LNG|SNG|STR)|DIM|DO|DOUBLE|ELSE|ELSEIF|END|ENVIRON|ERASE|ERROR|EXIT|FIELD|FILES|FOR|FUNCTION|GET|GOSUB|GOTO|IF|INPUT|INTEGER|IOCTL|KEY|KILL|LINE INPUT|LOCATE|LOCK|LONG|LOOP|LSET|MKDIR|NAME|NEXT|OFF|ON(?: COM| ERROR| KEY| TIMER)?|OPEN|OPTION BASE|OUT|POKE|PUT|READ|REDIM|REM|RESTORE|RESUME|RETURN|RMDIR|RSET|RUN|SELECT CASE|SHARED|SHELL|SINGLE|SLEEP|STATIC|STEP|STOP|STRING|SUB|SWAP|SYSTEM|THEN|TIMER|TO|TROFF|TRON|TYPE|UNLOCK|UNTIL|USING|VIEW PRINT|WAIT|WEND|WHILE|WRITE)(?:\$|\b)/i,function:/\b(?:ABS|ACCESS|ACOS|ANGLE|AREA|ARITHMETIC|ARRAY|ASIN|ASK|AT|ATN|BASE|BEGIN|BREAK|CAUSE|CEIL|CHR|CLIP|COLLATE|COLOR|CON|COS|COSH|COT|CSC|DATE|DATUM|DEBUG|DECIMAL|DEF|DEG|DEGREES|DELETE|DET|DEVICE|DISPLAY|DOT|ELAPSED|EPS|ERASABLE|EXLINE|EXP|EXTERNAL|EXTYPE|FILETYPE|FIXED|FP|GO|GRAPH|HANDLER|IDN|IMAGE|IN|INT|INTERNAL|IP|IS|KEYED|LBOUND|LCASE|LEFT|LEN|LENGTH|LET|LINE|LINES|LOG|LOG10|LOG2|LTRIM|MARGIN|MAT|MAX|MAXNUM|MID|MIN|MISSING|MOD|NATIVE|NUL|NUMERIC|OF|OPTION|ORD|ORGANIZATION|OUTIN|OUTPUT|PI|POINT|POINTER|POINTS|POS|PRINT|PROGRAM|PROMPT|RAD|RADIANS|RANDOMIZE|RECORD|RECSIZE|RECTYPE|RELATIVE|REMAINDER|REPEAT|REST|RETRY|REWRITE|RIGHT|RND|ROUND|RTRIM|SAME|SEC|SELECT|SEQUENTIAL|SET|SETTER|SGN|SIN|SINH|SIZE|SKIP|SQR|STANDARD|STATUS|STR|STREAM|STYLE|TAB|TAN|TANH|TEMPLATE|TEXT|THERE|TIME|TIMEOUT|TRACE|TRANSFORM|TRUNCATE|UBOUND|UCASE|USE|VAL|VARIABLE|VIEWPORT|WHEN|WINDOW|WITH|ZER|ZONEWIDTH)(?:\$|\b)/i,operator:/<[=>]?|>=?|[+\-*\/^=&]|\b(?:AND|EQV|IMP|NOT|OR|XOR)\b/i,punctuation:/[,;:()]/}},50271:function(){Prism.languages.c=Prism.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|__attribute__|asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|inline|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|typeof|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),Prism.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}}),Prism.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},Prism.languages.c.string],char:Prism.languages.c.char,comment:Prism.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:Prism.languages.c}}}}),Prism.languages.insertBefore("c","function",{constant:/\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/}),delete Prism.languages.c.boolean},75624:function(){Prism.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/}},71983:function(e,t,n){var i=function(e){var t=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,n=0,i={},r={manual:e.Prism&&e.Prism.manual,disableWorkerMessageHandler:e.Prism&&e.Prism.disableWorkerMessageHandler,util:{encode:function e(t){return t instanceof a?new a(t.type,e(t.content),t.alias):Array.isArray(t)?t.map(e):t.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/\u00a0/g," ")},type:function(e){return Object.prototype.toString.call(e).slice(8,-1)},objId:function(e){return e.__id||Object.defineProperty(e,"__id",{value:++n}),e.__id},clone:function e(t,n){var i,a;switch(n=n||{},r.util.type(t)){case"Object":if(a=r.util.objId(t),n[a])return n[a];for(var s in i={},n[a]=i,t)t.hasOwnProperty(s)&&(i[s]=e(t[s],n));return i;case"Array":return a=r.util.objId(t),n[a]?n[a]:(i=[],n[a]=i,t.forEach((function(t,r){i[r]=e(t,n)})),i);default:return t}},getLanguage:function(e){for(;e;){var n=t.exec(e.className);if(n)return n[1].toLowerCase();e=e.parentElement}return"none"},setLanguage:function(e,n){e.className=e.className.replace(RegExp(t,"gi"),""),e.classList.add("language-"+n)},currentScript:function(){if("undefined"==typeof document)return null;if("currentScript"in document)return document.currentScript;try{throw new Error}catch(i){var e=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(i.stack)||[])[1];if(e){var t=document.getElementsByTagName("script");for(var n in t)if(t[n].src==e)return t[n]}return null}},isActive:function(e,t,n){for(var i="no-"+t;e;){var r=e.classList;if(r.contains(t))return!0;if(r.contains(i))return!1;e=e.parentElement}return!!n}},languages:{plain:i,plaintext:i,text:i,txt:i,extend:function(e,t){var n=r.util.clone(r.languages[e]);for(var i in t)n[i]=t[i];return n},insertBefore:function(e,t,n,i){var a=(i=i||r.languages)[e],s={};for(var o in a)if(a.hasOwnProperty(o)){if(o==t)for(var l in n)n.hasOwnProperty(l)&&(s[l]=n[l]);n.hasOwnProperty(o)||(s[o]=a[o])}var u=i[e];return i[e]=s,r.languages.DFS(r.languages,(function(t,n){n===u&&t!=e&&(this[t]=s)})),s},DFS:function e(t,n,i,a){a=a||{};var s=r.util.objId;for(var o in t)if(t.hasOwnProperty(o)){n.call(t,o,t[o],i||o);var l=t[o],u=r.util.type(l);"Object"!==u||a[s(l)]?"Array"!==u||a[s(l)]||(a[s(l)]=!0,e(l,n,o,a)):(a[s(l)]=!0,e(l,n,null,a))}}},plugins:{},highlightAll:function(e,t){r.highlightAllUnder(document,e,t)},highlightAllUnder:function(e,t,n){var i={callback:n,container:e,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};r.hooks.run("before-highlightall",i),i.elements=Array.prototype.slice.apply(i.container.querySelectorAll(i.selector)),r.hooks.run("before-all-elements-highlight",i);for(var a,s=0;a=i.elements[s++];)r.highlightElement(a,!0===t,i.callback)},highlightElement:function(t,n,i){var a=r.util.getLanguage(t),s=r.languages[a];r.util.setLanguage(t,a);var o=t.parentElement;o&&"pre"===o.nodeName.toLowerCase()&&r.util.setLanguage(o,a);var l={element:t,language:a,grammar:s,code:t.textContent};function u(e){l.highlightedCode=e,r.hooks.run("before-insert",l),l.element.innerHTML=l.highlightedCode,r.hooks.run("after-highlight",l),r.hooks.run("complete",l),i&&i.call(l.element)}if(r.hooks.run("before-sanity-check",l),(o=l.element.parentElement)&&"pre"===o.nodeName.toLowerCase()&&!o.hasAttribute("tabindex")&&o.setAttribute("tabindex","0"),!l.code)return r.hooks.run("complete",l),void(i&&i.call(l.element));if(r.hooks.run("before-highlight",l),l.grammar)if(n&&e.Worker){var c=new Worker(r.filename);c.onmessage=function(e){u(e.data)},c.postMessage(JSON.stringify({language:l.language,code:l.code,immediateClose:!0}))}else u(r.highlight(l.code,l.grammar,l.language));else u(r.util.encode(l.code))},highlight:function(e,t,n){var i={code:e,grammar:t,language:n};if(r.hooks.run("before-tokenize",i),!i.grammar)throw new Error('The language "'+i.language+'" has no grammar.');return i.tokens=r.tokenize(i.code,i.grammar),r.hooks.run("after-tokenize",i),a.stringify(r.util.encode(i.tokens),i.language)},tokenize:function(e,t){var n=t.rest;if(n){for(var i in n)t[i]=n[i];delete t.rest}var r=new l;return u(r,r.head,e),o(e,r,t,r.head,0),function(e){var t=[],n=e.head.next;for(;n!==e.tail;)t.push(n.value),n=n.next;return t}(r)},hooks:{all:{},add:function(e,t){var n=r.hooks.all;n[e]=n[e]||[],n[e].push(t)},run:function(e,t){var n=r.hooks.all[e];if(n&&n.length)for(var i,a=0;i=n[a++];)i(t)}},Token:a};function a(e,t,n,i){this.type=e,this.content=t,this.alias=n,this.length=0|(i||"").length}function s(e,t,n,i){e.lastIndex=t;var r=e.exec(n);if(r&&i&&r[1]){var a=r[1].length;r.index+=a,r[0]=r[0].slice(a)}return r}function o(e,t,n,i,l,d){for(var p in n)if(n.hasOwnProperty(p)&&n[p]){var h=n[p];h=Array.isArray(h)?h:[h];for(var g=0;g<h.length;++g){if(d&&d.cause==p+","+g)return;var f=h[g],m=f.inside,b=!!f.lookbehind,y=!!f.greedy,_=f.alias;if(y&&!f.pattern.global){var v=f.pattern.toString().match(/[imsuy]*$/)[0];f.pattern=RegExp(f.pattern.source,v+"g")}for(var w=f.pattern||f,E=i.next,S=l;E!==t.tail&&!(d&&S>=d.reach);S+=E.value.length,E=E.next){var P=E.value;if(t.length>e.length)return;if(!(P instanceof a)){var x,A=1;if(y){if(!(x=s(w,S,e,b))||x.index>=e.length)break;var k=x.index,L=x.index+x[0].length,T=S;for(T+=E.value.length;k>=T;)T+=(E=E.next).value.length;if(S=T-=E.value.length,E.value instanceof a)continue;for(var I=E;I!==t.tail&&(T<L||"string"==typeof I.value);I=I.next)A++,T+=I.value.length;A--,P=e.slice(S,T),x.index-=S}else if(!(x=s(w,0,P,b)))continue;k=x.index;var R=x[0],N=P.slice(0,k),C=P.slice(k+R.length),M=S+P.length;d&&M>d.reach&&(d.reach=M);var D=E.prev;if(N&&(D=u(t,D,N),S+=N.length),c(t,D,A),E=u(t,D,new a(p,m?r.tokenize(R,m):R,_,R)),C&&u(t,E,C),A>1){var O={cause:p+","+g,reach:M};o(e,t,n,E.prev,S,O),d&&O.reach>d.reach&&(d.reach=O.reach)}}}}}}function l(){var e={value:null,prev:null,next:null},t={value:null,prev:e,next:null};e.next=t,this.head=e,this.tail=t,this.length=0}function u(e,t,n){var i=t.next,r={value:n,prev:t,next:i};return t.next=r,i.prev=r,e.length++,r}function c(e,t,n){for(var i=t.next,r=0;r<n&&i!==e.tail;r++)i=i.next;t.next=i,i.prev=t,e.length-=r}if(e.Prism=r,a.stringify=function e(t,n){if("string"==typeof t)return t;if(Array.isArray(t)){var i="";return t.forEach((function(t){i+=e(t,n)})),i}var a={type:t.type,content:e(t.content,n),tag:"span",classes:["token",t.type],attributes:{},language:n},s=t.alias;s&&(Array.isArray(s)?Array.prototype.push.apply(a.classes,s):a.classes.push(s)),r.hooks.run("wrap",a);var o="";for(var l in a.attributes)o+=" "+l+'="'+(a.attributes[l]||"").replace(/"/g,"&quot;")+'"';return"<"+a.tag+' class="'+a.classes.join(" ")+'"'+o+">"+a.content+"</"+a.tag+">"},!e.document)return e.addEventListener?(r.disableWorkerMessageHandler||e.addEventListener("message",(function(t){var n=JSON.parse(t.data),i=n.language,a=n.code,s=n.immediateClose;e.postMessage(r.highlight(a,r.languages[i],i)),s&&e.close()}),!1),r):r;var d=r.util.currentScript();function p(){r.manual||r.highlightAll()}if(d&&(r.filename=d.src,d.hasAttribute("data-manual")&&(r.manual=!0)),!r.manual){var h=document.readyState;"loading"===h||"interactive"===h&&d&&d.defer?document.addEventListener("DOMContentLoaded",p):window.requestAnimationFrame?window.requestAnimationFrame(p):window.setTimeout(p,16)}return r}("undefined"!=typeof window?window:"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:{});
/**
 * Prism: Lightweight, robust, elegant syntax highlighting
 *
 * @license MIT <https://opensource.org/licenses/MIT>
 * @author Lea Verou <https://lea.verou.me>
 * @namespace
 * @public
 */e.exports&&(e.exports=i),void 0!==n.g&&(n.g.Prism=i)},72415:function(){!function(e){var t=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|char8_t|class|co_await|co_return|co_yield|compl|concept|const|const_cast|consteval|constexpr|constinit|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int16_t|int32_t|int64_t|int8_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|uint16_t|uint32_t|uint64_t|uint8_t|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,n=/\b(?!<keyword>)\w+(?:\s*\.\s*\w+)*\b/.source.replace(/<keyword>/g,(function(){return t.source}));e.languages.cpp=e.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!<keyword>)\w+/.source.replace(/<keyword>/g,(function(){return t.source}))),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:t,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:false|true)\b/}),e.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:import|module)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/<mod-name>(?:\s*:\s*<mod-name>)?|:\s*<mod-name>/.source.replace(/<mod-name>/g,(function(){return n}))+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),e.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:e.languages.cpp}}}}),e.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),e.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:e.languages.extend("cpp",{})}}),e.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},e.languages.cpp["base-clause"])}(Prism)},5651:function(){!function(e){function t(e,t){return e.replace(/<<(\d+)>>/g,(function(e,n){return"(?:"+t[+n]+")"}))}function n(e,n,i){return RegExp(t(e,n),i||"")}function i(e,t){for(var n=0;n<t;n++)e=e.replace(/<<self>>/g,(function(){return"(?:"+e+")"}));return e.replace(/<<self>>/g,"[^\\s\\S]")}var r="bool byte char decimal double dynamic float int long object sbyte short string uint ulong ushort var void",a="class enum interface record struct",s="add alias and ascending async await by descending from(?=\\s*(?:\\w|$)) get global group into init(?=\\s*;) join let nameof not notnull on or orderby partial remove select set unmanaged value when where with(?=\\s*{)",o="abstract as base break case catch checked const continue default delegate do else event explicit extern finally fixed for foreach goto if implicit in internal is lock namespace new null operator out override params private protected public readonly ref return sealed sizeof stackalloc static switch this throw try typeof unchecked unsafe using virtual volatile while yield";function l(e){return"\\b(?:"+e.trim().replace(/ /g,"|")+")\\b"}var u=l(a),c=RegExp(l(r+" "+a+" "+s+" "+o)),d=l(a+" "+s+" "+o),p=l(r+" "+a+" "+o),h=i(/<(?:[^<>;=+\-*/%&|^]|<<self>>)*>/.source,2),g=i(/\((?:[^()]|<<self>>)*\)/.source,2),f=/@?\b[A-Za-z_]\w*\b/.source,m=t(/<<0>>(?:\s*<<1>>)?/.source,[f,h]),b=t(/(?!<<0>>)<<1>>(?:\s*\.\s*<<1>>)*/.source,[d,m]),y=/\[\s*(?:,\s*)*\]/.source,_=t(/<<0>>(?:\s*(?:\?\s*)?<<1>>)*(?:\s*\?)?/.source,[b,y]),v=t(/[^,()<>[\];=+\-*/%&|^]|<<0>>|<<1>>|<<2>>/.source,[h,g,y]),w=t(/\(<<0>>+(?:,<<0>>+)+\)/.source,[v]),E=t(/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source,[w,b,y]),S={keyword:c,punctuation:/[<>()?,.:[\]]/},P=/'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source,x=/"(?:\\.|[^\\"\r\n])*"/.source,A=/@"(?:""|\\[\s\S]|[^\\"])*"(?!")/.source;e.languages.csharp=e.languages.extend("clike",{string:[{pattern:n(/(^|[^$\\])<<0>>/.source,[A]),lookbehind:!0,greedy:!0},{pattern:n(/(^|[^@$\\])<<0>>/.source,[x]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:n(/(\busing\s+static\s+)<<0>>(?=\s*;)/.source,[b]),lookbehind:!0,inside:S},{pattern:n(/(\busing\s+<<0>>\s*=\s*)<<1>>(?=\s*;)/.source,[f,E]),lookbehind:!0,inside:S},{pattern:n(/(\busing\s+)<<0>>(?=\s*=)/.source,[f]),lookbehind:!0},{pattern:n(/(\b<<0>>\s+)<<1>>/.source,[u,m]),lookbehind:!0,inside:S},{pattern:n(/(\bcatch\s*\(\s*)<<0>>/.source,[b]),lookbehind:!0,inside:S},{pattern:n(/(\bwhere\s+)<<0>>/.source,[f]),lookbehind:!0},{pattern:n(/(\b(?:is(?:\s+not)?|as)\s+)<<0>>/.source,[_]),lookbehind:!0,inside:S},{pattern:n(/\b<<0>>(?=\s+(?!<<1>>|with\s*\{)<<2>>(?:\s*[=,;:{)\]]|\s+(?:in|when)\b))/.source,[E,p,f]),inside:S}],keyword:c,number:/(?:\b0(?:x[\da-f_]*[\da-f]|b[01_]*[01])|(?:\B\.\d+(?:_+\d+)*|\b\d+(?:_+\d+)*(?:\.\d+(?:_+\d+)*)?)(?:e[-+]?\d+(?:_+\d+)*)?)(?:[dflmu]|lu|ul)?\b/i,operator:/>>=?|<<=?|[-=]>|([-+&|])\1|~|\?\?=?|[-+*/%&|^!=<>]=?/,punctuation:/\?\.?|::|[{}[\];(),.:]/}),e.languages.insertBefore("csharp","number",{range:{pattern:/\.\./,alias:"operator"}}),e.languages.insertBefore("csharp","punctuation",{"named-parameter":{pattern:n(/([(,]\s*)<<0>>(?=\s*:)/.source,[f]),lookbehind:!0,alias:"punctuation"}}),e.languages.insertBefore("csharp","class-name",{namespace:{pattern:n(/(\b(?:namespace|using)\s+)<<0>>(?:\s*\.\s*<<0>>)*(?=\s*[;{])/.source,[f]),lookbehind:!0,inside:{punctuation:/\./}},"type-expression":{pattern:n(/(\b(?:default|sizeof|typeof)\s*\(\s*(?!\s))(?:[^()\s]|\s(?!\s)|<<0>>)*(?=\s*\))/.source,[g]),lookbehind:!0,alias:"class-name",inside:S},"return-type":{pattern:n(/<<0>>(?=\s+(?:<<1>>\s*(?:=>|[({]|\.\s*this\s*\[)|this\s*\[))/.source,[E,b]),inside:S,alias:"class-name"},"constructor-invocation":{pattern:n(/(\bnew\s+)<<0>>(?=\s*[[({])/.source,[E]),lookbehind:!0,inside:S,alias:"class-name"},"generic-method":{pattern:n(/<<0>>\s*<<1>>(?=\s*\()/.source,[f,h]),inside:{function:n(/^<<0>>/.source,[f]),generic:{pattern:RegExp(h),alias:"class-name",inside:S}}},"type-list":{pattern:n(/\b((?:<<0>>\s+<<1>>|record\s+<<1>>\s*<<5>>|where\s+<<2>>)\s*:\s*)(?:<<3>>|<<4>>|<<1>>\s*<<5>>|<<6>>)(?:\s*,\s*(?:<<3>>|<<4>>|<<6>>))*(?=\s*(?:where|[{;]|=>|$))/.source,[u,m,f,E,c.source,g,/\bnew\s*\(\s*\)/.source]),lookbehind:!0,inside:{"record-arguments":{pattern:n(/(^(?!new\s*\()<<0>>\s*)<<1>>/.source,[m,g]),lookbehind:!0,greedy:!0,inside:e.languages.csharp},keyword:c,"class-name":{pattern:RegExp(E),greedy:!0,inside:S},punctuation:/[,()]/}},preprocessor:{pattern:/(^[\t ]*)#.*/m,lookbehind:!0,alias:"property",inside:{directive:{pattern:/(#)\b(?:define|elif|else|endif|endregion|error|if|line|nullable|pragma|region|undef|warning)\b/,lookbehind:!0,alias:"keyword"}}}});var k=x+"|"+P,L=t(/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source,[k]),T=i(t(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[L]),2),I=/\b(?:assembly|event|field|method|module|param|property|return|type)\b/.source,R=t(/<<0>>(?:\s*\(<<1>>*\))?/.source,[b,T]);e.languages.insertBefore("csharp","class-name",{attribute:{pattern:n(/((?:^|[^\s\w>)?])\s*\[\s*)(?:<<0>>\s*:\s*)?<<1>>(?:\s*,\s*<<1>>)*(?=\s*\])/.source,[I,R]),lookbehind:!0,greedy:!0,inside:{target:{pattern:n(/^<<0>>(?=\s*:)/.source,[I]),alias:"keyword"},"attribute-arguments":{pattern:n(/\(<<0>>*\)/.source,[T]),inside:e.languages.csharp},"class-name":{pattern:RegExp(b),inside:{punctuation:/\./}},punctuation:/[:,]/}}});var N=/:[^}\r\n]+/.source,C=i(t(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[L]),2),M=t(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[C,N]),D=i(t(/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<<self>>*\)/.source,[k]),2),O=t(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[D,N]);function F(t,i){return{interpolation:{pattern:n(/((?:^|[^{])(?:\{\{)*)<<0>>/.source,[t]),lookbehind:!0,inside:{"format-string":{pattern:n(/(^\{(?:(?![}:])<<0>>)*)<<1>>(?=\}$)/.source,[i,N]),lookbehind:!0,inside:{punctuation:/^:/}},punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-csharp",inside:e.languages.csharp}}},string:/[\s\S]+/}}e.languages.insertBefore("csharp","string",{"interpolation-string":[{pattern:n(/(^|[^\\])(?:\$@|@\$)"(?:""|\\[\s\S]|\{\{|<<0>>|[^\\{"])*"/.source,[M]),lookbehind:!0,greedy:!0,inside:F(M,C)},{pattern:n(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source,[O]),lookbehind:!0,greedy:!0,inside:F(O,D)}],char:{pattern:RegExp(P),greedy:!0}}),e.languages.dotnet=e.languages.cs=e.languages.csharp}(Prism)},91113:function(){!function(e){var t=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;e.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+t.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+t.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+t.source+"$"),alias:"url"}}},selector:{pattern:RegExp("(^|[{}\\s])[^{}\\s](?:[^{};\"'\\s]|\\s+(?![\\s{])|"+t.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:t,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},e.languages.css.atrule.inside.rest=e.languages.css;var n=e.languages.markup;n&&(n.tag.addInlined("style","css"),n.tag.addAttribute("style","css"))}(Prism)},60869:function(){!function(e){var t=[/\b(?:async|sync|yield)\*/,/\b(?:abstract|assert|async|await|break|case|catch|class|const|continue|covariant|default|deferred|do|dynamic|else|enum|export|extends|extension|external|factory|final|finally|for|get|hide|if|implements|import|in|interface|library|mixin|new|null|on|operator|part|rethrow|return|set|show|static|super|switch|sync|this|throw|try|typedef|var|void|while|with|yield)\b/],n=/(^|[^\w.])(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,i={pattern:RegExp(n+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}}}};e.languages.dart=e.languages.extend("clike",{"class-name":[i,{pattern:RegExp(n+/[A-Z]\w*(?=\s+\w+\s*[;,=()])/.source),lookbehind:!0,inside:i.inside}],keyword:t,operator:/\bis!|\b(?:as|is)\b|\+\+|--|&&|\|\||<<=?|>>=?|~(?:\/=?)?|[+\-*\/%&^|=!<>]=?|\?/}),e.languages.insertBefore("dart","string",{"string-literal":{pattern:/r?(?:("""|''')[\s\S]*?\1|(["'])(?:\\.|(?!\2)[^\\\r\n])*\2(?!\2))/,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:\w+|\{(?:[^{}]|\{[^{}]*\})*\})/,lookbehind:!0,inside:{punctuation:/^\$\{?|\}$/,expression:{pattern:/[\s\S]+/,inside:e.languages.dart}}},string:/[\s\S]+/}},string:void 0}),e.languages.insertBefore("dart","class-name",{metadata:{pattern:/@\w+/,alias:"function"}}),e.languages.insertBefore("dart","class-name",{generics:{pattern:/<(?:[\w\s,.&?]|<(?:[\w\s,.&?]|<(?:[\w\s,.&?]|<[\w\s,.&?]*>)*>)*>)*>/,inside:{"class-name":i,keyword:t,punctuation:/[<>(),.:]/,operator:/[?&|]/}}})}(Prism)},70568:function(){!function(e){var t=/\\[\r\n](?:\s|\\[\r\n]|#.*(?!.))*(?![\s#]|\\[\r\n])/.source,n=/(?:[ \t]+(?![ \t])(?:<SP_BS>)?|<SP_BS>)/.source.replace(/<SP_BS>/g,(function(){return t})),i=/"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*"|'(?:[^'\\\r\n]|\\(?:\r\n|[\s\S]))*'/.source,r=/--[\w-]+=(?:<STR>|(?!["'])(?:[^\s\\]|\\.)+)/.source.replace(/<STR>/g,(function(){return i})),a={pattern:RegExp(i),greedy:!0},s={pattern:/(^[ \t]*)#.*/m,lookbehind:!0,greedy:!0};function o(e,t){return e=e.replace(/<OPT>/g,(function(){return r})).replace(/<SP>/g,(function(){return n})),RegExp(e,t)}e.languages.docker={instruction:{pattern:/(^[ \t]*)(?:ADD|ARG|CMD|COPY|ENTRYPOINT|ENV|EXPOSE|FROM|HEALTHCHECK|LABEL|MAINTAINER|ONBUILD|RUN|SHELL|STOPSIGNAL|USER|VOLUME|WORKDIR)(?=\s)(?:\\.|[^\r\n\\])*(?:\\$(?:\s|#.*$)*(?![\s#])(?:\\.|[^\r\n\\])*)*/im,lookbehind:!0,greedy:!0,inside:{options:{pattern:o(/(^(?:ONBUILD<SP>)?\w+<SP>)<OPT>(?:<SP><OPT>)*/.source,"i"),lookbehind:!0,greedy:!0,inside:{property:{pattern:/(^|\s)--[\w-]+/,lookbehind:!0},string:[a,{pattern:/(=)(?!["'])(?:[^\s\\]|\\.)+/,lookbehind:!0}],operator:/\\$/m,punctuation:/=/}},keyword:[{pattern:o(/(^(?:ONBUILD<SP>)?HEALTHCHECK<SP>(?:<OPT><SP>)*)(?:CMD|NONE)\b/.source,"i"),lookbehind:!0,greedy:!0},{pattern:o(/(^(?:ONBUILD<SP>)?FROM<SP>(?:<OPT><SP>)*(?!--)[^ \t\\]+<SP>)AS/.source,"i"),lookbehind:!0,greedy:!0},{pattern:o(/(^ONBUILD<SP>)\w+/.source,"i"),lookbehind:!0,greedy:!0},{pattern:/^\w+/,greedy:!0}],comment:s,string:a,variable:/\$(?:\w+|\{[^{}"'\\]*\})/,operator:/\\$/m}},comment:s},e.languages.dockerfile=e.languages.docker}(Prism)},56258:function(){!function(e){e.languages.ejs={delimiter:{pattern:/^<%[-_=]?|[-_]?%>$/,alias:"punctuation"},comment:/^#[\s\S]*/,"language-javascript":{pattern:/[\s\S]+/,inside:e.languages.javascript}},e.hooks.add("before-tokenize",(function(t){e.languages["markup-templating"].buildPlaceholders(t,"ejs",/<%(?!%)[\s\S]+?%>/g)})),e.hooks.add("after-tokenize",(function(t){e.languages["markup-templating"].tokenizePlaceholders(t,"ejs")})),e.languages.eta=e.languages.ejs}(Prism)},86378:function(){Prism.languages.go=Prism.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"|`[^`]*`/,lookbehind:!0,greedy:!0},keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,boolean:/\b(?:_|false|iota|nil|true)\b/,number:[/\b0(?:b[01_]+|o[0-7_]+)i?\b/i,/\b0x(?:[a-f\d_]+(?:\.[a-f\d_]*)?|\.[a-f\d_]+)(?:p[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,/(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?[\d_]+)?i?(?!\w)/i],operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:append|bool|byte|cap|close|complex|complex(?:64|128)|copy|delete|error|float(?:32|64)|u?int(?:8|16|32|64)?|imag|len|make|new|panic|print(?:ln)?|real|recover|rune|string|uintptr)\b/}),Prism.languages.insertBefore("go","string",{char:{pattern:/'(?:\\.|[^'\\\r\n]){0,10}'/,greedy:!0}}),delete Prism.languages.go["class-name"]},34619:function(){Prism.languages.graphql={comment:/#.*/,description:{pattern:/(?:"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*")(?=\s*[a-z_])/i,greedy:!0,alias:"string",inside:{"language-markdown":{pattern:/(^"(?:"")?)(?!\1)[\s\S]+(?=\1$)/,lookbehind:!0,inside:Prism.languages.markdown}}},string:{pattern:/"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*"/,greedy:!0},number:/(?:\B-|\b)\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,boolean:/\b(?:false|true)\b/,variable:/\$[a-z_]\w*/i,directive:{pattern:/@[a-z_]\w*/i,alias:"function"},"attr-name":{pattern:/\b[a-z_]\w*(?=\s*(?:\((?:[^()"]|"(?:\\.|[^\\"\r\n])*")*\))?:)/i,greedy:!0},"atom-input":{pattern:/\b[A-Z]\w*Input\b/,alias:"class-name"},scalar:/\b(?:Boolean|Float|ID|Int|String)\b/,constant:/\b[A-Z][A-Z_\d]*\b/,"class-name":{pattern:/(\b(?:enum|implements|interface|on|scalar|type|union)\s+|&\s*|:\s*|\[)[A-Z_]\w*/,lookbehind:!0},fragment:{pattern:/(\bfragment\s+|\.{3}\s*(?!on\b))[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-mutation":{pattern:/(\bmutation\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-query":{pattern:/(\bquery\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},keyword:/\b(?:directive|enum|extend|fragment|implements|input|interface|mutation|on|query|repeatable|scalar|schema|subscription|type|union)\b/,operator:/[!=|&]|\.{3}/,"property-query":/\w+(?=\s*\()/,object:/\w+(?=\s*\{)/,punctuation:/[!(){}\[\]:=,]/,property:/\w+/},Prism.hooks.add("after-tokenize",(function(e){if("graphql"===e.language)for(var t=e.tokens.filter((function(e){return"string"!=typeof e&&"comment"!==e.type&&"scalar"!==e.type})),n=0;n<t.length;){var i=t[n++];if("keyword"===i.type&&"mutation"===i.content){var r=[];if(d(["definition-mutation","punctuation"])&&"("===c(1).content){n+=2;var a=p(/^\($/,/^\)$/);if(-1===a)continue;for(;n<a;n++){var s=c(0);"variable"===s.type&&(h(s,"variable-input"),r.push(s.content))}n=a+1}if(d(["punctuation","property-query"])&&"{"===c(0).content&&(n++,h(c(0),"property-mutation"),r.length>0)){var o=p(/^\{$/,/^\}$/);if(-1===o)continue;for(var l=n;l<o;l++){var u=t[l];"variable"===u.type&&r.indexOf(u.content)>=0&&h(u,"variable-input")}}}}function c(e){return t[n+e]}function d(e,t){t=t||0;for(var n=0;n<e.length;n++){var i=c(n+t);if(!i||i.type!==e[n])return!1}return!0}function p(e,i){for(var r=1,a=n;a<t.length;a++){var s=t[a],o=s.content;if("punctuation"===s.type&&"string"==typeof o)if(e.test(o))r++;else if(i.test(o)&&0===--r)return a}return-1}function h(e,t){var n=e.alias;n?Array.isArray(n)||(e.alias=n=[n]):e.alias=n=[],n.push(t)}}))},554:function(){Prism.languages.haskell={comment:{pattern:/(^|[^-!#$%*+=?&@|~.:<>^\\\/])(?:--(?:(?=.)[^-!#$%*+=?&@|~.:<>^\\\/].*|$)|\{-[\s\S]*?-\})/m,lookbehind:!0},char:{pattern:/'(?:[^\\']|\\(?:[abfnrtv\\"'&]|\^[A-Z@[\]^_]|ACK|BEL|BS|CAN|CR|DC1|DC2|DC3|DC4|DEL|DLE|EM|ENQ|EOT|ESC|ETB|ETX|FF|FS|GS|HT|LF|NAK|NUL|RS|SI|SO|SOH|SP|STX|SUB|SYN|US|VT|\d+|o[0-7]+|x[0-9a-fA-F]+))'/,alias:"string"},string:{pattern:/"(?:[^\\"]|\\(?:\S|\s+\\))*"/,greedy:!0},keyword:/\b(?:case|class|data|deriving|do|else|if|in|infixl|infixr|instance|let|module|newtype|of|primitive|then|type|where)\b/,"import-statement":{pattern:/(^[\t ]*)import\s+(?:qualified\s+)?(?:[A-Z][\w']*)(?:\.[A-Z][\w']*)*(?:\s+as\s+(?:[A-Z][\w']*)(?:\.[A-Z][\w']*)*)?(?:\s+hiding\b)?/m,lookbehind:!0,inside:{keyword:/\b(?:as|hiding|import|qualified)\b/,punctuation:/\./}},builtin:/\b(?:abs|acos|acosh|all|and|any|appendFile|approxRational|asTypeOf|asin|asinh|atan|atan2|atanh|basicIORun|break|catch|ceiling|chr|compare|concat|concatMap|const|cos|cosh|curry|cycle|decodeFloat|denominator|digitToInt|div|divMod|drop|dropWhile|either|elem|encodeFloat|enumFrom|enumFromThen|enumFromThenTo|enumFromTo|error|even|exp|exponent|fail|filter|flip|floatDigits|floatRadix|floatRange|floor|fmap|foldl|foldl1|foldr|foldr1|fromDouble|fromEnum|fromInt|fromInteger|fromIntegral|fromRational|fst|gcd|getChar|getContents|getLine|group|head|id|inRange|index|init|intToDigit|interact|ioError|isAlpha|isAlphaNum|isAscii|isControl|isDenormalized|isDigit|isHexDigit|isIEEE|isInfinite|isLower|isNaN|isNegativeZero|isOctDigit|isPrint|isSpace|isUpper|iterate|last|lcm|length|lex|lexDigits|lexLitChar|lines|log|logBase|lookup|map|mapM|mapM_|max|maxBound|maximum|maybe|min|minBound|minimum|mod|negate|not|notElem|null|numerator|odd|or|ord|otherwise|pack|pi|pred|primExitWith|print|product|properFraction|putChar|putStr|putStrLn|quot|quotRem|range|rangeSize|read|readDec|readFile|readFloat|readHex|readIO|readInt|readList|readLitChar|readLn|readOct|readParen|readSigned|reads|readsPrec|realToFrac|recip|rem|repeat|replicate|return|reverse|round|scaleFloat|scanl|scanl1|scanr|scanr1|seq|sequence|sequence_|show|showChar|showInt|showList|showLitChar|showParen|showSigned|showString|shows|showsPrec|significand|signum|sin|sinh|snd|sort|span|splitAt|sqrt|subtract|succ|sum|tail|take|takeWhile|tan|tanh|threadToIOResult|toEnum|toInt|toInteger|toLower|toRational|toUpper|truncate|uncurry|undefined|unlines|until|unwords|unzip|unzip3|userError|words|writeFile|zip|zip3|zipWith|zipWith3)\b/,number:/\b(?:\d+(?:\.\d+)?(?:e[+-]?\d+)?|0o[0-7]+|0x[0-9a-f]+)\b/i,operator:[{pattern:/`(?:[A-Z][\w']*\.)*[_a-z][\w']*`/,greedy:!0},{pattern:/(\s)\.(?=\s)/,lookbehind:!0},/[-!#$%*+=?&@|~:<>^\\\/][-!#$%*+=?&@|~.:<>^\\\/]*|\.[-!#$%*+=?&@|~.:<>^\\\/]+/],hvariable:{pattern:/\b(?:[A-Z][\w']*\.)*[_a-z][\w']*/,inside:{punctuation:/\./}},constant:{pattern:/\b(?:[A-Z][\w']*\.)*[A-Z][\w']*/,inside:{punctuation:/\./}},punctuation:/[{}[\];(),.:]/},Prism.languages.hs=Prism.languages.haskell},96976:function(){!function(e){var t=/\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record(?!\s*[(){}[\]<>=%~.:,;?+\-*/&|^])|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/,n=/(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,i={pattern:RegExp(/(^|[^\w.])/.source+n+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}},punctuation:/\./}};e.languages.java=e.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"/,lookbehind:!0,greedy:!0},"class-name":[i,{pattern:RegExp(/(^|[^\w.])/.source+n+/[A-Z]\w*(?=\s+\w+\s*[;,=()]|\s*(?:\[[\s,]*\]\s*)?::\s*new\b)/.source),lookbehind:!0,inside:i.inside},{pattern:RegExp(/(\b(?:class|enum|extends|implements|instanceof|interface|new|record|throws)\s+)/.source+n+/[A-Z]\w*\b/.source),lookbehind:!0,inside:i.inside}],keyword:t,function:[e.languages.clike.function,{pattern:/(::\s*)[a-z_]\w*/,lookbehind:!0}],number:/\b0b[01][01_]*L?\b|\b0x(?:\.[\da-f_p+-]+|[\da-f_]+(?:\.[\da-f_p+-]+)?)\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfl]?/i,operator:{pattern:/(^|[^.])(?:<<=?|>>>?=?|->|--|\+\+|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?)/m,lookbehind:!0},constant:/\b[A-Z][A-Z_\d]+\b/}),e.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"},char:{pattern:/'(?:\\.|[^'\\\r\n]){1,6}'/,greedy:!0}}),e.languages.insertBefore("java","class-name",{annotation:{pattern:/(^|[^.])@\w+(?:\s*\.\s*\w+)*/,lookbehind:!0,alias:"punctuation"},generics:{pattern:/<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&))*>)*>)*>)*>/,inside:{"class-name":i,keyword:t,punctuation:/[<>(),.:]/,operator:/[?&|]/}},import:[{pattern:RegExp(/(\bimport\s+)/.source+n+/(?:[A-Z]\w*|\*)(?=\s*;)/.source),lookbehind:!0,inside:{namespace:i.inside.namespace,punctuation:/\./,operator:/\*/,"class-name":/\w+/}},{pattern:RegExp(/(\bimport\s+static\s+)/.source+n+/(?:\w+|\*)(?=\s*;)/.source),lookbehind:!0,alias:"static",inside:{namespace:i.inside.namespace,static:/\b\w+$/,punctuation:/\./,operator:/\*/,"class-name":/\w+/}}],namespace:{pattern:RegExp(/(\b(?:exports|import(?:\s+static)?|module|open|opens|package|provides|requires|to|transitive|uses|with)\s+)(?!<keyword>)[a-z]\w*(?:\.[a-z]\w*)*\.?/.source.replace(/<keyword>/g,(function(){return t.source}))),lookbehind:!0,inside:{punctuation:/\./}}})}(Prism)},25723:function(){Prism.languages.javascript=Prism.languages.extend("clike",{"class-name":[Prism.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),Prism.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,Prism.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:Prism.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:Prism.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:Prism.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),Prism.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:Prism.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),Prism.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),Prism.languages.markup&&(Prism.languages.markup.tag.addInlined("script","javascript"),Prism.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),Prism.languages.js=Prism.languages.javascript},72514:function(){Prism.languages.json={property:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\],]/,operator:/:/,boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"}},Prism.languages.webmanifest=Prism.languages.json},10267:function(){!function(e){var t=/("|')(?:\\(?:\r\n?|\n|.)|(?!\1)[^\\\r\n])*\1/;e.languages.json5=e.languages.extend("json",{property:[{pattern:RegExp(t.source+"(?=\\s*:)"),greedy:!0},{pattern:/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/,alias:"unquoted"}],string:{pattern:t,greedy:!0},number:/[+-]?\b(?:NaN|Infinity|0x[a-fA-F\d]+)\b|[+-]?(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[eE][+-]?\d+\b)?/})}(Prism)},65903:function(){!function(e){var t=e.util.clone(e.languages.javascript),n=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,i=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,r=/(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;function a(e,t){return e=e.replace(/<S>/g,(function(){return n})).replace(/<BRACES>/g,(function(){return i})).replace(/<SPREAD>/g,(function(){return r})),RegExp(e,t)}r=a(r).source,e.languages.jsx=e.languages.extend("markup",t),e.languages.jsx.tag.pattern=a(/<\/?(?:[\w.:-]+(?:<S>+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|<BRACES>))?|<SPREAD>))*<S>*\/?)?>/.source),e.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/,e.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/,e.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,e.languages.jsx.tag.inside.comment=t.comment,e.languages.insertBefore("inside","attr-name",{spread:{pattern:a(/<SPREAD>/.source),inside:e.languages.jsx}},e.languages.jsx.tag),e.languages.insertBefore("inside","special-attr",{script:{pattern:a(/=<BRACES>/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:e.languages.jsx}}},e.languages.jsx.tag);var s=function(e){return e?"string"==typeof e?e:"string"==typeof e.content?e.content:e.content.map(s).join(""):""},o=function(t){for(var n=[],i=0;i<t.length;i++){var r=t[i],a=!1;if("string"!=typeof r&&("tag"===r.type&&r.content[0]&&"tag"===r.content[0].type?"</"===r.content[0].content[0].content?n.length>0&&n[n.length-1].tagName===s(r.content[0].content[1])&&n.pop():"/>"===r.content[r.content.length-1].content||n.push({tagName:s(r.content[0].content[1]),openedBraces:0}):n.length>0&&"punctuation"===r.type&&"{"===r.content?n[n.length-1].openedBraces++:n.length>0&&n[n.length-1].openedBraces>0&&"punctuation"===r.type&&"}"===r.content?n[n.length-1].openedBraces--:a=!0),(a||"string"==typeof r)&&n.length>0&&0===n[n.length-1].openedBraces){var l=s(r);i<t.length-1&&("string"==typeof t[i+1]||"plain-text"===t[i+1].type)&&(l+=s(t[i+1]),t.splice(i+1,1)),i>0&&("string"==typeof t[i-1]||"plain-text"===t[i-1].type)&&(l=s(t[i-1])+l,t.splice(i-1,1),i--),t[i]=new e.Token("plain-text",l,null,l)}r.content&&"string"!=typeof r.content&&o(r.content)}};e.hooks.add("after-tokenize",(function(e){"jsx"!==e.language&&"tsx"!==e.language||o(e.tokens)}))}(Prism)},69913:function(){!function(e){e.languages.kotlin=e.languages.extend("clike",{keyword:{pattern:/(^|[^.])\b(?:abstract|actual|annotation|as|break|by|catch|class|companion|const|constructor|continue|crossinline|data|do|dynamic|else|enum|expect|external|final|finally|for|fun|get|if|import|in|infix|init|inline|inner|interface|internal|is|lateinit|noinline|null|object|open|operator|out|override|package|private|protected|public|reified|return|sealed|set|super|suspend|tailrec|this|throw|to|try|typealias|val|var|vararg|when|where|while)\b/,lookbehind:!0},function:[{pattern:/(?:`[^\r\n`]+`|\b\w+)(?=\s*\()/,greedy:!0},{pattern:/(\.)(?:`[^\r\n`]+`|\w+)(?=\s*\{)/,lookbehind:!0,greedy:!0}],number:/\b(?:0[xX][\da-fA-F]+(?:_[\da-fA-F]+)*|0[bB][01]+(?:_[01]+)*|\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?(?:[eE][+-]?\d+(?:_\d+)*)?[fFL]?)\b/,operator:/\+[+=]?|-[-=>]?|==?=?|!(?:!|==?)?|[\/*%<>]=?|[?:]:?|\.\.|&&|\|\||\b(?:and|inv|or|shl|shr|ushr|xor)\b/}),delete e.languages.kotlin["class-name"];var t={"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:e.languages.kotlin}};e.languages.insertBefore("kotlin","string",{"string-literal":[{pattern:/"""(?:[^$]|\$(?:(?!\{)|\{[^{}]*\}))*?"""/,alias:"multiline",inside:{interpolation:{pattern:/\$(?:[a-z_]\w*|\{[^{}]*\})/i,inside:t},string:/[\s\S]+/}},{pattern:/"(?:[^"\\\r\n$]|\\.|\$(?:(?!\{)|\{[^{}]*\}))*"/,alias:"singleline",inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:[a-z_]\w*|\{[^{}]*\})/i,lookbehind:!0,inside:t},string:/[\s\S]+/}}],char:{pattern:/'(?:[^'\\\r\n]|\\(?:.|u[a-fA-F0-9]{0,4}))'/,greedy:!0}}),delete e.languages.kotlin.string,e.languages.insertBefore("kotlin","keyword",{annotation:{pattern:/\B@(?:\w+:)?(?:[A-Z]\w*|\[[^\]]+\])/,alias:"builtin"}}),e.languages.insertBefore("kotlin","function",{label:{pattern:/\b\w+@|@\w+\b/,alias:"symbol"}}),e.languages.kt=e.languages.kotlin,e.languages.kts=e.languages.kotlin}(Prism)},18713:function(){Prism.languages.less=Prism.languages.extend("css",{comment:[/\/\*[\s\S]*?\*\//,{pattern:/(^|[^\\])\/\/.*/,lookbehind:!0}],atrule:{pattern:/@[\w-](?:\((?:[^(){}]|\([^(){}]*\))*\)|[^(){};\s]|\s+(?!\s))*?(?=\s*\{)/,inside:{punctuation:/[:()]/}},selector:{pattern:/(?:@\{[\w-]+\}|[^{};\s@])(?:@\{[\w-]+\}|\((?:[^(){}]|\([^(){}]*\))*\)|[^(){};@\s]|\s+(?!\s))*?(?=\s*\{)/,inside:{variable:/@+[\w-]+/}},property:/(?:@\{[\w-]+\}|[\w-])+(?:\+_?)?(?=\s*:)/,operator:/[+\-*\/]/}),Prism.languages.insertBefore("less","property",{variable:[{pattern:/@[\w-]+\s*:/,inside:{punctuation:/:/}},/@@?[\w-]+/],"mixin-usage":{pattern:/([{;]\s*)[.#](?!\d)[\w-].*?(?=[(;])/,lookbehind:!0,alias:"function"}})},10116:function(){!function(e){function t(e){return RegExp(/(\()/.source+"(?:"+e+")"+/(?=[\s\)])/.source)}function n(e){return RegExp(/([\s([])/.source+"(?:"+e+")"+/(?=[\s)])/.source)}var i=/(?!\d)[-+*/~!@$%^=<>{}\w]+/.source,r="&"+i,a="(\\()",s="(?=\\s)",o=/(?:[^()]|\((?:[^()]|\((?:[^()]|\((?:[^()]|\((?:[^()]|\([^()]*\))*\))*\))*\))*\))*/.source,l={heading:{pattern:/;;;.*/,alias:["comment","title"]},comment:/;.*/,string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0,inside:{argument:/[-A-Z]+(?=[.,\s])/,symbol:RegExp("`"+i+"'")}},"quoted-symbol":{pattern:RegExp("#?'"+i),alias:["variable","symbol"]},"lisp-property":{pattern:RegExp(":"+i),alias:"property"},splice:{pattern:RegExp(",@?"+i),alias:["symbol","variable"]},keyword:[{pattern:RegExp(a+"(?:and|(?:cl-)?letf|cl-loop|cond|cons|error|if|(?:lexical-)?let\\*?|message|not|null|or|provide|require|setq|unless|use-package|when|while)"+s),lookbehind:!0},{pattern:RegExp(a+"(?:append|by|collect|concat|do|finally|for|in|return)"+s),lookbehind:!0}],declare:{pattern:t(/declare/.source),lookbehind:!0,alias:"keyword"},interactive:{pattern:t(/interactive/.source),lookbehind:!0,alias:"keyword"},boolean:{pattern:n(/nil|t/.source),lookbehind:!0},number:{pattern:n(/[-+]?\d+(?:\.\d*)?/.source),lookbehind:!0},defvar:{pattern:RegExp(a+"def(?:const|custom|group|var)\\s+"+i),lookbehind:!0,inside:{keyword:/^def[a-z]+/,variable:RegExp(i)}},defun:{pattern:RegExp(a+/(?:cl-)?(?:defmacro|defun\*?)\s+/.source+i+/\s+\(/.source+o+/\)/.source),lookbehind:!0,greedy:!0,inside:{keyword:/^(?:cl-)?def\S+/,arguments:null,function:{pattern:RegExp("(^\\s)"+i),lookbehind:!0},punctuation:/[()]/}},lambda:{pattern:RegExp(a+"lambda\\s+\\(\\s*(?:&?"+i+"(?:\\s+&?"+i+")*\\s*)?\\)"),lookbehind:!0,greedy:!0,inside:{keyword:/^lambda/,arguments:null,punctuation:/[()]/}},car:{pattern:RegExp(a+i),lookbehind:!0},punctuation:[/(?:['`,]?\(|[)\[\]])/,{pattern:/(\s)\.(?=\s)/,lookbehind:!0}]},u={"lisp-marker":RegExp(r),varform:{pattern:RegExp(/\(/.source+i+/\s+(?=\S)/.source+o+/\)/.source),inside:l},argument:{pattern:RegExp(/(^|[\s(])/.source+i),lookbehind:!0,alias:"variable"},rest:l},c="\\S+(?:\\s+\\S+)*",d={pattern:RegExp(a+o+"(?=\\))"),lookbehind:!0,inside:{"rest-vars":{pattern:RegExp("&(?:body|rest)\\s+"+c),inside:u},"other-marker-vars":{pattern:RegExp("&(?:aux|optional)\\s+"+c),inside:u},keys:{pattern:RegExp("&key\\s+"+c+"(?:\\s+&allow-other-keys)?"),inside:u},argument:{pattern:RegExp(i),alias:"variable"},punctuation:/[()]/}};l.lambda.inside.arguments=d,l.defun.inside.arguments=e.util.clone(d),l.defun.inside.arguments.inside.sublist=d,e.languages.lisp=l,e.languages.elisp=l,e.languages.emacs=l,e.languages["emacs-lisp"]=l}(Prism)},30260:function(){Prism.languages.makefile={comment:{pattern:/(^|[^\\])#(?:\\(?:\r\n|[\s\S])|[^\\\r\n])*/,lookbehind:!0},string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"builtin-target":{pattern:/\.[A-Z][^:#=\s]+(?=\s*:(?!=))/,alias:"builtin"},target:{pattern:/^(?:[^:=\s]|[ \t]+(?![\s:]))+(?=\s*:(?!=))/m,alias:"symbol",inside:{variable:/\$+(?:(?!\$)[^(){}:#=\s]+|(?=[({]))/}},variable:/\$+(?:(?!\$)[^(){}:#=\s]+|\([@*%<^+?][DF]\)|(?=[({]))/,keyword:/-include\b|\b(?:define|else|endef|endif|export|ifn?def|ifn?eq|include|override|private|sinclude|undefine|unexport|vpath)\b/,function:{pattern:/(\()(?:abspath|addsuffix|and|basename|call|dir|error|eval|file|filter(?:-out)?|findstring|firstword|flavor|foreach|guile|if|info|join|lastword|load|notdir|or|origin|patsubst|realpath|shell|sort|strip|subst|suffix|value|warning|wildcard|word(?:list|s)?)(?=[ \t])/,lookbehind:!0},operator:/(?:::|[?:+!])?=|[|@]/,punctuation:/[:;(){}]/}},97926:function(){!function(e){var t=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function n(e){return e=e.replace(/<inner>/g,(function(){return t})),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+e+")")}var i=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,r=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,(function(){return i})),a=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;e.languages.markdown=e.languages.extend("markup",{}),e.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:e.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+r+a+"(?:"+r+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+r+a+")(?:"+r+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(i),inside:e.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+r+")"+a+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+r+"$"),inside:{"table-header":{pattern:RegExp(i),alias:"important",inside:e.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:n(/\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:n(/\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:n(/(~~?)(?:(?!~)<inner>)+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:n(/!?\[(?:(?!\])<inner>)+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\])<inner>)+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach((function(t){["url","bold","italic","strike","code-snippet"].forEach((function(n){t!==n&&(e.languages.markdown[t].inside.content.inside[n]=e.languages.markdown[n])}))})),e.hooks.add("after-tokenize",(function(e){"markdown"!==e.language&&"md"!==e.language||function e(t){if(t&&"string"!=typeof t)for(var n=0,i=t.length;n<i;n++){var r=t[n];if("code"===r.type){var a=r.content[1],s=r.content[3];if(a&&s&&"code-language"===a.type&&"code-block"===s.type&&"string"==typeof a.content){var o=a.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp"),l="language-"+(o=(/[a-z][\w-]*/i.exec(o)||[""])[0].toLowerCase());s.alias?"string"==typeof s.alias?s.alias=[s.alias,l]:s.alias.push(l):s.alias=[l]}}else e(r.content)}}(e.tokens)})),e.hooks.add("wrap",(function(t){if("code-block"===t.type){for(var n="",i=0,r=t.classes.length;i<r;i++){var a=t.classes[i],u=/language-(.+)/.exec(a);if(u){n=u[1];break}}var c,d=e.languages[n];if(d)t.content=e.highlight((c=t.content,c.replace(s,"").replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,(function(e,t){var n;if("#"===(t=t.toLowerCase())[0])return n="x"===t[1]?parseInt(t.slice(2),16):Number(t.slice(1)),l(n);var i=o[t];return i||e}))),d,n);else if(n&&"none"!==n&&e.plugins.autoloader){var p="md-"+(new Date).valueOf()+"-"+Math.floor(1e16*Math.random());t.attributes.id=p,e.plugins.autoloader.loadLanguages(n,(function(){var t=document.getElementById(p);t&&(t.innerHTML=e.highlight(t.textContent,e.languages[n],n))}))}}}));var s=RegExp(e.languages.markup.tag.pattern.source,"gi"),o={amp:"&",lt:"<",gt:">",quot:'"'},l=String.fromCodePoint||String.fromCharCode;e.languages.md=e.languages.markdown}(Prism)},19700:function(){!function(e){function t(e,t){return"___"+e.toUpperCase()+t+"___"}Object.defineProperties(e.languages["markup-templating"]={},{buildPlaceholders:{value:function(n,i,r,a){if(n.language===i){var s=n.tokenStack=[];n.code=n.code.replace(r,(function(e){if("function"==typeof a&&!a(e))return e;for(var r,o=s.length;-1!==n.code.indexOf(r=t(i,o));)++o;return s[o]=e,r})),n.grammar=e.languages.markup}}},tokenizePlaceholders:{value:function(n,i){if(n.language===i&&n.tokenStack){n.grammar=e.languages[i];var r=0,a=Object.keys(n.tokenStack);!function s(o){for(var l=0;l<o.length&&!(r>=a.length);l++){var u=o[l];if("string"==typeof u||u.content&&"string"==typeof u.content){var c=a[r],d=n.tokenStack[c],p="string"==typeof u?u:u.content,h=t(i,c),g=p.indexOf(h);if(g>-1){++r;var f=p.substring(0,g),m=new e.Token(i,e.tokenize(d,n.grammar),"language-"+i,d),b=p.substring(g+h.length),y=[];f&&y.push.apply(y,s([f])),y.push(m),b&&y.push.apply(y,s([b])),"string"==typeof u?o.splice.apply(o,[l,1].concat(y)):u.content=y}}else u.content&&s(u.content)}return o}(n.tokens)}}}})}(Prism)},64312:function(){Prism.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},Prism.languages.markup.tag.inside["attr-value"].inside.entity=Prism.languages.markup.entity,Prism.languages.markup.doctype.inside["internal-subset"].inside=Prism.languages.markup,Prism.hooks.add("wrap",(function(e){"entity"===e.type&&(e.attributes.title=e.content.replace(/&amp;/,"&"))})),Object.defineProperty(Prism.languages.markup.tag,"addInlined",{value:function(e,t){var n={};n["language-"+t]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:Prism.languages[t]},n.cdata=/^<!\[CDATA\[|\]\]>$/i;var i={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:n}};i["language-"+t]={pattern:/[\s\S]+/,inside:Prism.languages[t]};var r={};r[e]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,(function(){return e})),"i"),lookbehind:!0,greedy:!0,inside:i},Prism.languages.insertBefore("markup","cdata",r)}}),Object.defineProperty(Prism.languages.markup.tag,"addAttribute",{value:function(e,t){Prism.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+e+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[t,"language-"+t],inside:Prism.languages[t]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),Prism.languages.html=Prism.languages.markup,Prism.languages.mathml=Prism.languages.markup,Prism.languages.svg=Prism.languages.markup,Prism.languages.xml=Prism.languages.extend("markup",{}),Prism.languages.ssml=Prism.languages.xml,Prism.languages.atom=Prism.languages.xml,Prism.languages.rss=Prism.languages.xml},99486:function(){!function(e){var t=/\$(?:\w[a-z\d]*(?:_[^\x00-\x1F\s"'\\()$]*)?|\{[^}\s"'\\]+\})/i;e.languages.nginx={comment:{pattern:/(^|[\s{};])#.*/,lookbehind:!0,greedy:!0},directive:{pattern:/(^|\s)\w(?:[^;{}"'\\\s]|\\.|"(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*'|\s+(?:#.*(?!.)|(?![#\s])))*?(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:{string:{pattern:/((?:^|[^\\])(?:\\\\)*)(?:"(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*')/,lookbehind:!0,greedy:!0,inside:{escape:{pattern:/\\["'\\nrt]/,alias:"entity"},variable:t}},comment:{pattern:/(\s)#.*/,lookbehind:!0,greedy:!0},keyword:{pattern:/^\S+/,greedy:!0},boolean:{pattern:/(\s)(?:off|on)(?!\S)/,lookbehind:!0},number:{pattern:/(\s)\d+[a-z]*(?!\S)/i,lookbehind:!0},variable:t}},punctuation:/[{};]/}}(Prism)},32821:function(){!function(e){var t=/(?:\((?:[^()\\]|\\[\s\S])*\)|\{(?:[^{}\\]|\\[\s\S])*\}|\[(?:[^[\]\\]|\\[\s\S])*\]|<(?:[^<>\\]|\\[\s\S])*>)/.source;e.languages.perl={comment:[{pattern:/(^\s*)=\w[\s\S]*?=cut.*/m,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\$])#.*/,lookbehind:!0,greedy:!0}],string:[{pattern:RegExp(/\b(?:q|qq|qw|qx)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/([a-zA-Z0-9])(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,t].join("|")+")"),greedy:!0},{pattern:/("|`)(?:(?!\1)[^\\]|\\[\s\S])*\1/,greedy:!0},{pattern:/'(?:[^'\\\r\n]|\\.)*'/,greedy:!0}],regex:[{pattern:RegExp(/\b(?:m|qr)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/([a-zA-Z0-9])(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,t].join("|")+")"+/[msixpodualngc]*/.source),greedy:!0},{pattern:RegExp(/(^|[^-])\b(?:s|tr|y)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\2)[^\\]|\\[\s\S])*\2(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,/([a-zA-Z0-9])(?:(?!\3)[^\\]|\\[\s\S])*\3(?:(?!\3)[^\\]|\\[\s\S])*\3/.source,t+/\s*/.source+t].join("|")+")"+/[msixpodualngcer]*/.source),lookbehind:!0,greedy:!0},{pattern:/\/(?:[^\/\\\r\n]|\\.)*\/[msixpodualngc]*(?=\s*(?:$|[\r\n,.;})&|\-+*~<>!?^]|(?:and|cmp|eq|ge|gt|le|lt|ne|not|or|x|xor)\b))/,greedy:!0}],variable:[/[&*$@%]\{\^[A-Z]+\}/,/[&*$@%]\^[A-Z_]/,/[&*$@%]#?(?=\{)/,/[&*$@%]#?(?:(?:::)*'?(?!\d)[\w$]+(?![\w$]))+(?:::)*/,/[&*$@%]\d+/,/(?!%=)[$@%][!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~]/],filehandle:{pattern:/<(?![<=])\S*?>|\b_\b/,alias:"symbol"},"v-string":{pattern:/v\d+(?:\.\d+)*|\d+(?:\.\d+){2,}/,alias:"string"},function:{pattern:/(\bsub[ \t]+)\w+/,lookbehind:!0},keyword:/\b(?:any|break|continue|default|delete|die|do|else|elsif|eval|for|foreach|given|goto|if|last|local|my|next|our|package|print|redo|require|return|say|state|sub|switch|undef|unless|until|use|when|while)\b/,number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)\b/,operator:/-[rwxoRWXOezsfdlpSbctugkTBMAC]\b|\+[+=]?|-[-=>]?|\*\*?=?|\/\/?=?|=[=~>]?|~[~=]?|\|\|?=?|&&?=?|<(?:=>?|<=?)?|>>?=?|![~=]?|[%^]=?|\.(?:=|\.\.?)?|[\\?]|\bx(?:=|\b)|\b(?:and|cmp|eq|ge|gt|le|lt|ne|not|or|xor)\b/,punctuation:/[{}[\];(),:]/}}(Prism)},43554:function(){!function(e){var t=/\/\*[\s\S]*?\*\/|\/\/.*|#(?!\[).*/,n=[{pattern:/\b(?:false|true)\b/i,alias:"boolean"},{pattern:/(::\s*)\b[a-z_]\w*\b(?!\s*\()/i,greedy:!0,lookbehind:!0},{pattern:/(\b(?:case|const)\s+)\b[a-z_]\w*(?=\s*[;=])/i,greedy:!0,lookbehind:!0},/\b(?:null)\b/i,/\b[A-Z_][A-Z0-9_]*\b(?!\s*\()/],i=/\b0b[01]+(?:_[01]+)*\b|\b0o[0-7]+(?:_[0-7]+)*\b|\b0x[\da-f]+(?:_[\da-f]+)*\b|(?:\b\d+(?:_\d+)*\.?(?:\d+(?:_\d+)*)?|\B\.\d+)(?:e[+-]?\d+)?/i,r=/<?=>|\?\?=?|\.{3}|\??->|[!=]=?=?|::|\*\*=?|--|\+\+|&&|\|\||<<|>>|[?~]|[/^|%*&<>.+-]=?/,a=/[{}\[\](),:;]/;e.languages.php={delimiter:{pattern:/\?>$|^<\?(?:php(?=\s)|=)?/i,alias:"important"},comment:t,variable:/\$+(?:\w+\b|(?=\{))/,package:{pattern:/(namespace\s+|use\s+(?:function\s+)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,lookbehind:!0,inside:{punctuation:/\\/}},"class-name-definition":{pattern:/(\b(?:class|enum|interface|trait)\s+)\b[a-z_]\w*(?!\\)\b/i,lookbehind:!0,alias:"class-name"},"function-definition":{pattern:/(\bfunction\s+)[a-z_]\w*(?=\s*\()/i,lookbehind:!0,alias:"function"},keyword:[{pattern:/(\(\s*)\b(?:array|bool|boolean|float|int|integer|object|string)\b(?=\s*\))/i,alias:"type-casting",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|object|self|static|string)\b(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|never|object|self|static|string|void)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/\b(?:array(?!\s*\()|bool|float|int|iterable|mixed|object|string|void)\b/i,alias:"type-declaration",greedy:!0},{pattern:/(\|\s*)(?:false|null)\b|\b(?:false|null)(?=\s*\|)/i,alias:"type-declaration",greedy:!0,lookbehind:!0},{pattern:/\b(?:parent|self|static)(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(\byield\s+)from\b/i,lookbehind:!0},/\bclass\b/i,{pattern:/((?:^|[^\s>:]|(?:^|[^-])>|(?:^|[^:]):)\s*)\b(?:abstract|and|array|as|break|callable|case|catch|clone|const|continue|declare|default|die|do|echo|else|elseif|empty|enddeclare|endfor|endforeach|endif|endswitch|endwhile|enum|eval|exit|extends|final|finally|fn|for|foreach|function|global|goto|if|implements|include|include_once|instanceof|insteadof|interface|isset|list|match|namespace|never|new|or|parent|print|private|protected|public|readonly|require|require_once|return|self|static|switch|throw|trait|try|unset|use|var|while|xor|yield|__halt_compiler)\b/i,lookbehind:!0}],"argument-name":{pattern:/([(,]\s*)\b[a-z_]\w*(?=\s*:(?!:))/i,lookbehind:!0},"class-name":[{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self|\s+static))\s+|\bcatch\s*\()\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/(\|\s*)\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/\b[a-z_]\w*(?!\\)\b(?=\s*\|)/i,greedy:!0},{pattern:/(\|\s*)(?:\\?\b[a-z_]\w*)+\b/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(?:\\?\b[a-z_]\w*)+\b(?=\s*\|)/i,alias:"class-name-fully-qualified",greedy:!0,inside:{punctuation:/\\/}},{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self\b|\s+static\b))\s+|\bcatch\s*\()(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*\$)/i,alias:"type-declaration",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-declaration"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*::)/i,alias:["class-name-fully-qualified","static-context"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/([(,?]\s*)[a-z_]\w*(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-hint"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b[a-z_]\w*(?!\\)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:["class-name-fully-qualified","return-type"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:n,function:{pattern:/(^|[^\\\w])\\?[a-z_](?:[\w\\]*\w)?(?=\s*\()/i,lookbehind:!0,inside:{punctuation:/\\/}},property:{pattern:/(->\s*)\w+/,lookbehind:!0},number:i,operator:r,punctuation:a};var s={pattern:/\{\$(?:\{(?:\{[^{}]+\}|[^{}]+)\}|[^{}])+\}|(^|[^\\{])\$+(?:\w+(?:\[[^\r\n\[\]]+\]|->\w+)?)/,lookbehind:!0,inside:e.languages.php},o=[{pattern:/<<<'([^']+)'[\r\n](?:.*[\r\n])*?\1;/,alias:"nowdoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<'[^']+'|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<'?|[';]$/}}}},{pattern:/<<<(?:"([^"]+)"[\r\n](?:.*[\r\n])*?\1;|([a-z_]\w*)[\r\n](?:.*[\r\n])*?\2;)/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<(?:"[^"]+"|[a-z_]\w*)|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<"?|[";]$/}},interpolation:s}},{pattern:/`(?:\\[\s\S]|[^\\`])*`/,alias:"backtick-quoted-string",greedy:!0},{pattern:/'(?:\\[\s\S]|[^\\'])*'/,alias:"single-quoted-string",greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,alias:"double-quoted-string",greedy:!0,inside:{interpolation:s}}];e.languages.insertBefore("php","variable",{string:o,attribute:{pattern:/#\[(?:[^"'\/#]|\/(?![*/])|\/\/.*$|#(?!\[).*$|\/\*(?:[^*]|\*(?!\/))*\*\/|"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*')+\](?=\s*[a-z$#])/im,greedy:!0,inside:{"attribute-content":{pattern:/^(#\[)[\s\S]+(?=\]$)/,lookbehind:!0,inside:{comment:t,string:o,"attribute-class-name":[{pattern:/([^:]|^)\b[a-z_]\w*(?!\\)\b/i,alias:"class-name",greedy:!0,lookbehind:!0},{pattern:/([^:]|^)(?:\\?\b[a-z_]\w*)+/i,alias:["class-name","class-name-fully-qualified"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:n,number:i,operator:r,punctuation:a}},delimiter:{pattern:/^#\[|\]$/,alias:"punctuation"}}}}),e.hooks.add("before-tokenize",(function(t){if(/<\?/.test(t.code)){e.languages["markup-templating"].buildPlaceholders(t,"php",/<\?(?:[^"'/#]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|(?:\/\/|#(?!\[))(?:[^?\n\r]|\?(?!>))*(?=$|\?>|[\r\n])|#\[|\/\*(?:[^*]|\*(?!\/))*(?:\*\/|$))*?(?:\?>|$)/g)}})),e.hooks.add("after-tokenize",(function(t){e.languages["markup-templating"].tokenizePlaceholders(t,"php")}))}(Prism)},28882:function(){!function(e){e.languages.pug={comment:{pattern:/(^([\t ]*))\/\/.*(?:(?:\r?\n|\r)\2[\t ].+)*/m,lookbehind:!0},"multiline-script":{pattern:/(^([\t ]*)script\b.*\.[\t ]*)(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/m,lookbehind:!0,inside:e.languages.javascript},filter:{pattern:/(^([\t ]*)):.+(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/m,lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"variable"},text:/\S[\s\S]*/}},"multiline-plain-text":{pattern:/(^([\t ]*)[\w\-#.]+\.[\t ]*)(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/m,lookbehind:!0},markup:{pattern:/(^[\t ]*)<.+/m,lookbehind:!0,inside:e.languages.markup},doctype:{pattern:/((?:^|\n)[\t ]*)doctype(?: .+)?/,lookbehind:!0},"flow-control":{pattern:/(^[\t ]*)(?:case|default|each|else|if|unless|when|while)\b(?: .+)?/m,lookbehind:!0,inside:{each:{pattern:/^each .+? in\b/,inside:{keyword:/\b(?:each|in)\b/,punctuation:/,/}},branch:{pattern:/^(?:case|default|else|if|unless|when|while)\b/,alias:"keyword"},rest:e.languages.javascript}},keyword:{pattern:/(^[\t ]*)(?:append|block|extends|include|prepend)\b.+/m,lookbehind:!0},mixin:[{pattern:/(^[\t ]*)mixin .+/m,lookbehind:!0,inside:{keyword:/^mixin/,function:/\w+(?=\s*\(|\s*$)/,punctuation:/[(),.]/}},{pattern:/(^[\t ]*)\+.+/m,lookbehind:!0,inside:{name:{pattern:/^\+\w+/,alias:"function"},rest:e.languages.javascript}}],script:{pattern:/(^[\t ]*script(?:(?:&[^(]+)?\([^)]+\))*[\t ]).+/m,lookbehind:!0,inside:e.languages.javascript},"plain-text":{pattern:/(^[\t ]*(?!-)[\w\-#.]*[\w\-](?:(?:&[^(]+)?\([^)]+\))*\/?[\t ]).+/m,lookbehind:!0},tag:{pattern:/(^[\t ]*)(?!-)[\w\-#.]*[\w\-](?:(?:&[^(]+)?\([^)]+\))*\/?:?/m,lookbehind:!0,inside:{attributes:[{pattern:/&[^(]+\([^)]+\)/,inside:e.languages.javascript},{pattern:/\([^)]+\)/,inside:{"attr-value":{pattern:/(=\s*(?!\s))(?:\{[^}]*\}|[^,)\r\n]+)/,lookbehind:!0,inside:e.languages.javascript},"attr-name":/[\w-]+(?=\s*!?=|\s*[,)])/,punctuation:/[!=(),]+/}}],punctuation:/:/,"attr-id":/#[\w\-]+/,"attr-class":/\.[\w\-]+/}},code:[{pattern:/(^[\t ]*(?:-|!?=)).+/m,lookbehind:!0,inside:e.languages.javascript}],punctuation:/[.\-!=|]+/};for(var t=/(^([\t ]*)):<filter_name>(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/.source,n=[{filter:"atpl",language:"twig"},{filter:"coffee",language:"coffeescript"},"ejs","handlebars","less","livescript","markdown",{filter:"sass",language:"scss"},"stylus"],i={},r=0,a=n.length;r<a;r++){var s=n[r];s="string"==typeof s?{filter:s,language:s}:s,e.languages[s.language]&&(i["filter-"+s.filter]={pattern:RegExp(t.replace("<filter_name>",(function(){return s.filter})),"m"),lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"variable"},text:{pattern:/\S[\s\S]*/,alias:[s.language,"language-"+s.language],inside:e.languages[s.language]}}})}e.languages.insertBefore("pug","filter",i)}(Prism)},29405:function(){Prism.languages.purescript=Prism.languages.extend("haskell",{keyword:/\b(?:ado|case|class|data|derive|do|else|forall|if|in|infixl|infixr|instance|let|module|newtype|of|primitive|then|type|where)\b|\u2200/,"import-statement":{pattern:/(^[\t ]*)import\s+[A-Z][\w']*(?:\.[A-Z][\w']*)*(?:\s+as\s+[A-Z][\w']*(?:\.[A-Z][\w']*)*)?(?:\s+hiding\b)?/m,lookbehind:!0,inside:{keyword:/\b(?:as|hiding|import)\b/,punctuation:/\./}},builtin:/\b(?:absurd|add|ap|append|apply|between|bind|bottom|clamp|compare|comparing|compose|conj|const|degree|discard|disj|div|eq|flap|flip|gcd|identity|ifM|join|lcm|liftA1|liftM1|map|max|mempty|min|mod|mul|negate|not|notEq|one|otherwise|recip|show|sub|top|unit|unless|unlessM|void|when|whenM|zero)\b/,operator:[Prism.languages.haskell.operator[0],Prism.languages.haskell.operator[2],/[\xa2-\xa6\xa8\xa9\xac\xae-\xb1\xb4\xb8\xd7\xf7\u02c2-\u02c5\u02d2-\u02df\u02e5-\u02eb\u02ed\u02ef-\u02ff\u0375\u0384\u0385\u03f6\u0482\u058d-\u058f\u0606-\u0608\u060b\u060e\u060f\u06de\u06e9\u06fd\u06fe\u07f6\u07fe\u07ff\u09f2\u09f3\u09fa\u09fb\u0af1\u0b70\u0bf3-\u0bfa\u0c7f\u0d4f\u0d79\u0e3f\u0f01-\u0f03\u0f13\u0f15-\u0f17\u0f1a-\u0f1f\u0f34\u0f36\u0f38\u0fbe-\u0fc5\u0fc7-\u0fcc\u0fce\u0fcf\u0fd5-\u0fd8\u109e\u109f\u1390-\u1399\u166d\u17db\u1940\u19de-\u19ff\u1b61-\u1b6a\u1b74-\u1b7c\u1fbd\u1fbf-\u1fc1\u1fcd-\u1fcf\u1fdd-\u1fdf\u1fed-\u1fef\u1ffd\u1ffe\u2044\u2052\u207a-\u207c\u208a-\u208c\u20a0-\u20bf\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211e-\u2123\u2125\u2127\u2129\u212e\u213a\u213b\u2140-\u2144\u214a-\u214d\u214f\u218a\u218b\u2190-\u2307\u230c-\u2328\u232b-\u2426\u2440-\u244a\u249c-\u24e9\u2500-\u2767\u2794-\u27c4\u27c7-\u27e5\u27f0-\u2982\u2999-\u29d7\u29dc-\u29fb\u29fe-\u2b73\u2b76-\u2b95\u2b97-\u2bff\u2ce5-\u2cea\u2e50\u2e51\u2e80-\u2e99\u2e9b-\u2ef3\u2f00-\u2fd5\u2ff0-\u2ffb\u3004\u3012\u3013\u3020\u3036\u3037\u303e\u303f\u309b\u309c\u3190\u3191\u3196-\u319f\u31c0-\u31e3\u3200-\u321e\u322a-\u3247\u3250\u3260-\u327f\u328a-\u32b0\u32c0-\u33ff\u4dc0-\u4dff\ua490-\ua4c6\ua700-\ua716\ua720\ua721\ua789\ua78a\ua828-\ua82b\ua836-\ua839\uaa77-\uaa79\uab5b\uab6a\uab6b\ufb29\ufbb2-\ufbc1\ufdfc\ufdfd\ufe62\ufe64-\ufe66\ufe69\uff04\uff0b\uff1c-\uff1e\uff3e\uff40\uff5c\uff5e\uffe0-\uffe6\uffe8-\uffee\ufffc\ufffd]/]}),Prism.languages.purs=Prism.languages.purescript},52342:function(){Prism.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern:/![sra](?=[:}]$)/,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},Prism.languages.python["string-interpolation"].inside.interpolation.inside.rest=Prism.languages.python,Prism.languages.py=Prism.languages.python},27768:function(){Prism.languages.r={comment:/#.*/,string:{pattern:/(['"])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},"percent-operator":{pattern:/%[^%\s]*%/,alias:"operator"},boolean:/\b(?:FALSE|TRUE)\b/,ellipsis:/\.\.(?:\.|\d+)/,number:[/\b(?:Inf|NaN)\b/,/(?:\b0x[\dA-Fa-f]+(?:\.\d*)?|\b\d+(?:\.\d*)?|\B\.\d+)(?:[EePp][+-]?\d+)?[iL]?/],keyword:/\b(?:NA|NA_character_|NA_complex_|NA_integer_|NA_real_|NULL|break|else|for|function|if|in|next|repeat|while)\b/,operator:/->?>?|<(?:=|<?-)?|[>=!]=?|::?|&&?|\|\|?|[+*\/^$@~]/,punctuation:/[(){}\[\],;]/}},75133:function(){!function(e){var t={pattern:/\\[\\(){}[\]^$+*?|.]/,alias:"escape"},n=/\\(?:x[\da-fA-F]{2}|u[\da-fA-F]{4}|u\{[\da-fA-F]+\}|0[0-7]{0,2}|[123][0-7]{2}|c[a-zA-Z]|.)/,i="(?:[^\\\\-]|"+n.source+")",r=RegExp(i+"-"+i),a={pattern:/(<|')[^<>']+(?=[>']$)/,lookbehind:!0,alias:"variable"};e.languages.regex={"char-class":{pattern:/((?:^|[^\\])(?:\\\\)*)\[(?:[^\\\]]|\\[\s\S])*\]/,lookbehind:!0,inside:{"char-class-negation":{pattern:/(^\[)\^/,lookbehind:!0,alias:"operator"},"char-class-punctuation":{pattern:/^\[|\]$/,alias:"punctuation"},range:{pattern:r,inside:{escape:n,"range-punctuation":{pattern:/-/,alias:"operator"}}},"special-escape":t,"char-set":{pattern:/\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},escape:n}},"special-escape":t,"char-set":{pattern:/\.|\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},backreference:[{pattern:/\\(?![123][0-7]{2})[1-9]/,alias:"keyword"},{pattern:/\\k<[^<>']+>/,alias:"keyword",inside:{"group-name":a}}],anchor:{pattern:/[$^]|\\[ABbGZz]/,alias:"function"},escape:n,group:[{pattern:/\((?:\?(?:<[^<>']+>|'[^<>']+'|[>:]|<?[=!]|[idmnsuxU]+(?:-[idmnsuxU]+)?:?))?/,alias:"punctuation",inside:{"group-name":a}},{pattern:/\)/,alias:"punctuation"}],quantifier:{pattern:/(?:[+*?]|\{\d+(?:,\d*)?\})[?+]?/,alias:"number"},alternation:{pattern:/\|/,alias:"keyword"}}}(Prism)},19514:function(){Prism.languages.rescript={comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},char:{pattern:/'(?:[^\r\n\\]|\\(?:.|\w+))'/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^\\\r\n"])*"/,greedy:!0},"class-name":/\b[A-Z]\w*|@[a-z.]*|#[A-Za-z]\w*|#\d/,function:{pattern:/[a-zA-Z]\w*(?=\()|(\.)[a-z]\w*/,lookbehind:!0},number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,boolean:/\b(?:false|true)\b/,"attr-value":/[A-Za-z]\w*(?==)/,constant:{pattern:/(\btype\s+)[a-z]\w*/,lookbehind:!0},tag:{pattern:/(<)[a-z]\w*|(?:<\/)[a-z]\w*/,lookbehind:!0,inside:{operator:/<|>|\//}},keyword:/\b(?:and|as|assert|begin|bool|class|constraint|do|done|downto|else|end|exception|external|float|for|fun|function|if|in|include|inherit|initializer|int|lazy|let|method|module|mutable|new|nonrec|object|of|open|or|private|rec|string|switch|then|to|try|type|when|while|with)\b/,operator:/\.{3}|:[:=]?|\|>|->|=(?:==?|>)?|<=?|>=?|[|^?'#!~`]|[+\-*\/]\.?|\b(?:asr|land|lor|lsl|lsr|lxor|mod)\b/,punctuation:/[(){}[\],;.]/},Prism.languages.insertBefore("rescript","string",{"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"tag"},rest:Prism.languages.rescript}},string:/[\s\S]+/}}}),Prism.languages.res=Prism.languages.rescript},41648:function(){!function(e){e.languages.ruby=e.languages.extend("clike",{comment:{pattern:/#.*|^=begin\s[\s\S]*?^=end/m,greedy:!0},"class-name":{pattern:/(\b(?:class|module)\s+|\bcatch\s+\()[\w.\\]+|\b[A-Z_]\w*(?=\s*\.\s*new\b)/,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:BEGIN|END|alias|and|begin|break|case|class|def|define_method|defined|do|each|else|elsif|end|ensure|extend|for|if|in|include|module|new|next|nil|not|or|prepend|private|protected|public|raise|redo|require|rescue|retry|return|self|super|then|throw|undef|unless|until|when|while|yield)\b/,operator:/\.{2,3}|&\.|===|<?=>|[!=]?~|(?:&&|\|\||<<|>>|\*\*|[+\-*/%<>!^&|=])=?|[?:]/,punctuation:/[(){}[\].,;]/}),e.languages.insertBefore("ruby","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}});var t={pattern:/((?:^|[^\\])(?:\\{2})*)#\{(?:[^{}]|\{[^{}]*\})*\}/,lookbehind:!0,inside:{content:{pattern:/^(#\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:e.languages.ruby},delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"}}};delete e.languages.ruby.function;var n="(?:"+[/([^a-zA-Z0-9\s{(\[<=])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/\((?:[^()\\]|\\[\s\S]|\((?:[^()\\]|\\[\s\S])*\))*\)/.source,/\{(?:[^{}\\]|\\[\s\S]|\{(?:[^{}\\]|\\[\s\S])*\})*\}/.source,/\[(?:[^\[\]\\]|\\[\s\S]|\[(?:[^\[\]\\]|\\[\s\S])*\])*\]/.source,/<(?:[^<>\\]|\\[\s\S]|<(?:[^<>\\]|\\[\s\S])*>)*>/.source].join("|")+")",i=/(?:"(?:\\.|[^"\\\r\n])*"|(?:\b[a-zA-Z_]\w*|[^\s\0-\x7F]+)[?!]?|\$.)/.source;e.languages.insertBefore("ruby","keyword",{"regex-literal":[{pattern:RegExp(/%r/.source+n+/[egimnosux]{0,6}/.source),greedy:!0,inside:{interpolation:t,regex:/[\s\S]+/}},{pattern:/(^|[^/])\/(?!\/)(?:\[[^\r\n\]]+\]|\\.|[^[/\\\r\n])+\/[egimnosux]{0,6}(?=\s*(?:$|[\r\n,.;})#]))/,lookbehind:!0,greedy:!0,inside:{interpolation:t,regex:/[\s\S]+/}}],variable:/[@$]+[a-zA-Z_]\w*(?:[?!]|\b)/,symbol:[{pattern:RegExp(/(^|[^:]):/.source+i),lookbehind:!0,greedy:!0},{pattern:RegExp(/([\r\n{(,][ \t]*)/.source+i+/(?=:(?!:))/.source),lookbehind:!0,greedy:!0}],"method-definition":{pattern:/(\bdef\s+)\w+(?:\s*\.\s*\w+)?/,lookbehind:!0,inside:{function:/\b\w+$/,keyword:/^self\b/,"class-name":/^\w+/,punctuation:/\./}}}),e.languages.insertBefore("ruby","string",{"string-literal":[{pattern:RegExp(/%[qQiIwWs]?/.source+n),greedy:!0,inside:{interpolation:t,string:/[\s\S]+/}},{pattern:/("|')(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|(?!\1)[^\\#\r\n])*\1/,greedy:!0,inside:{interpolation:t,string:/[\s\S]+/}},{pattern:/<<[-~]?([a-z_]\w*)[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?[a-z_]\w*|\b[a-z_]\w*$/i,inside:{symbol:/\b\w+/,punctuation:/^<<[-~]?/}},interpolation:t,string:/[\s\S]+/}},{pattern:/<<[-~]?'([a-z_]\w*)'[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?'[a-z_]\w*'|\b[a-z_]\w*$/i,inside:{symbol:/\b\w+/,punctuation:/^<<[-~]?'|'$/}},string:/[\s\S]+/}}],"command-literal":[{pattern:RegExp(/%x/.source+n),greedy:!0,inside:{interpolation:t,command:{pattern:/[\s\S]+/,alias:"string"}}},{pattern:/`(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|[^\\`#\r\n])*`/,greedy:!0,inside:{interpolation:t,command:{pattern:/[\s\S]+/,alias:"string"}}}]}),delete e.languages.ruby.string,e.languages.insertBefore("ruby","number",{builtin:/\b(?:Array|Bignum|Binding|Class|Continuation|Dir|Exception|FalseClass|File|Fixnum|Float|Hash|IO|Integer|MatchData|Method|Module|NilClass|Numeric|Object|Proc|Range|Regexp|Stat|String|Struct|Symbol|TMS|Thread|ThreadGroup|Time|TrueClass)\b/,constant:/\b[A-Z][A-Z0-9_]*(?:[?!]|\b)/}),e.languages.rb=e.languages.ruby}(Prism)},75342:function(){!function(e){for(var t=/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|<self>)*\*\//.source,n=0;n<2;n++)t=t.replace(/<self>/g,(function(){return t}));t=t.replace(/<self>/g,(function(){return/[^\s\S]/.source})),e.languages.rust={comment:[{pattern:RegExp(/(^|[^\\])/.source+t),lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/b?"(?:\\[\s\S]|[^\\"])*"|b?r(#*)"(?:[^"]|"(?!\1))*"\1/,greedy:!0},char:{pattern:/b?'(?:\\(?:x[0-7][\da-fA-F]|u\{(?:[\da-fA-F]_*){1,6}\}|.)|[^\\\r\n\t'])'/,greedy:!0},attribute:{pattern:/#!?\[(?:[^\[\]"]|"(?:\\[\s\S]|[^\\"])*")*\]/,greedy:!0,alias:"attr-name",inside:{string:null}},"closure-params":{pattern:/([=(,:]\s*|\bmove\s*)\|[^|]*\||\|[^|]*\|(?=\s*(?:\{|->))/,lookbehind:!0,greedy:!0,inside:{"closure-punctuation":{pattern:/^\||\|$/,alias:"punctuation"},rest:null}},"lifetime-annotation":{pattern:/'\w+/,alias:"symbol"},"fragment-specifier":{pattern:/(\$\w+:)[a-z]+/,lookbehind:!0,alias:"punctuation"},variable:/\$\w+/,"function-definition":{pattern:/(\bfn\s+)\w+/,lookbehind:!0,alias:"function"},"type-definition":{pattern:/(\b(?:enum|struct|trait|type|union)\s+)\w+/,lookbehind:!0,alias:"class-name"},"module-declaration":[{pattern:/(\b(?:crate|mod)\s+)[a-z][a-z_\d]*/,lookbehind:!0,alias:"namespace"},{pattern:/(\b(?:crate|self|super)\s*)::\s*[a-z][a-z_\d]*\b(?:\s*::(?:\s*[a-z][a-z_\d]*\s*::)*)?/,lookbehind:!0,alias:"namespace",inside:{punctuation:/::/}}],keyword:[/\b(?:Self|abstract|as|async|await|become|box|break|const|continue|crate|do|dyn|else|enum|extern|final|fn|for|if|impl|in|let|loop|macro|match|mod|move|mut|override|priv|pub|ref|return|self|static|struct|super|trait|try|type|typeof|union|unsafe|unsized|use|virtual|where|while|yield)\b/,/\b(?:bool|char|f(?:32|64)|[ui](?:8|16|32|64|128|size)|str)\b/],function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())/,macro:{pattern:/\b\w+!/,alias:"property"},constant:/\b[A-Z_][A-Z_\d]+\b/,"class-name":/\b[A-Z]\w*\b/,namespace:{pattern:/(?:\b[a-z][a-z_\d]*\s*::\s*)*\b[a-z][a-z_\d]*\s*::(?!\s*<)/,inside:{punctuation:/::/}},number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0o[0-7](?:_?[0-7])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)(?:_?(?:f32|f64|[iu](?:8|16|32|64|size)?))?\b/,boolean:/\b(?:false|true)\b/,punctuation:/->|\.\.=|\.{1,3}|::|[{}[\];(),:]/,operator:/[-+*\/%!^]=?|=[=>]?|&[&=]?|\|[|=]?|<<?=?|>>?=?|[@?]/},e.languages.rust["closure-params"].inside.rest=e.languages.rust,e.languages.rust.attribute.inside.string=e.languages.rust.string}(Prism)},99562:function(){!function(e){e.languages.sass=e.languages.extend("css",{comment:{pattern:/^([ \t]*)\/[\/*].*(?:(?:\r?\n|\r)\1[ \t].+)*/m,lookbehind:!0,greedy:!0}}),e.languages.insertBefore("sass","atrule",{"atrule-line":{pattern:/^(?:[ \t]*)[@+=].+/m,greedy:!0,inside:{atrule:/(?:@[\w-]+|[+=])/}}}),delete e.languages.sass.atrule;var t=/\$[-\w]+|#\{\$[-\w]+\}/,n=[/[+*\/%]|[=!]=|<=?|>=?|\b(?:and|not|or)\b/,{pattern:/(\s)-(?=\s)/,lookbehind:!0}];e.languages.insertBefore("sass","property",{"variable-line":{pattern:/^[ \t]*\$.+/m,greedy:!0,inside:{punctuation:/:/,variable:t,operator:n}},"property-line":{pattern:/^[ \t]*(?:[^:\s]+ *:.*|:[^:\s].*)/m,greedy:!0,inside:{property:[/[^:\s]+(?=\s*:)/,{pattern:/(:)[^:\s]+/,lookbehind:!0}],punctuation:/:/,variable:t,operator:n,important:e.languages.sass.important}}}),delete e.languages.sass.property,delete e.languages.sass.important,e.languages.insertBefore("sass","punctuation",{selector:{pattern:/^([ \t]*)\S(?:,[^,\r\n]+|[^,\r\n]*)(?:,[^,\r\n]+)*(?:,(?:\r?\n|\r)\1[ \t]+\S(?:,[^,\r\n]+|[^,\r\n]*)(?:,[^,\r\n]+)*)*/m,lookbehind:!0,greedy:!0}})}(Prism)},64252:function(){Prism.languages.scala=Prism.languages.extend("java",{"triple-quoted-string":{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string"},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},keyword:/<-|=>|\b(?:abstract|case|catch|class|def|derives|do|else|enum|extends|extension|final|finally|for|forSome|given|if|implicit|import|infix|inline|lazy|match|new|null|object|opaque|open|override|package|private|protected|return|sealed|self|super|this|throw|trait|transparent|try|type|using|val|var|while|with|yield)\b/,number:/\b0x(?:[\da-f]*\.)?[\da-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e\d+)?[dfl]?/i,builtin:/\b(?:Any|AnyRef|AnyVal|Boolean|Byte|Char|Double|Float|Int|Long|Nothing|Short|String|Unit)\b/,symbol:/'[^\d\s\\]\w*/}),Prism.languages.insertBefore("scala","triple-quoted-string",{"string-interpolation":{pattern:/\b[a-z]\w*(?:"""(?:[^$]|\$(?:[^{]|\{(?:[^{}]|\{[^{}]*\})*\}))*?"""|"(?:[^$"\r\n]|\$(?:[^{]|\{(?:[^{}]|\{[^{}]*\})*\}))*")/i,greedy:!0,inside:{id:{pattern:/^\w+/,greedy:!0,alias:"function"},escape:{pattern:/\\\$"|\$[$"]/,greedy:!0,alias:"symbol"},interpolation:{pattern:/\$(?:\w+|\{(?:[^{}]|\{[^{}]*\})*\})/,greedy:!0,inside:{punctuation:/^\$\{?|\}$/,expression:{pattern:/[\s\S]+/,inside:Prism.languages.scala}}},string:/[\s\S]+/}}}),delete Prism.languages.scala["class-name"],delete Prism.languages.scala.function,delete Prism.languages.scala.constant},14183:function(){!function(e){e.languages.scheme={comment:/;.*|#;\s*(?:\((?:[^()]|\([^()]*\))*\)|\[(?:[^\[\]]|\[[^\[\]]*\])*\])|#\|(?:[^#|]|#(?!\|)|\|(?!#)|#\|(?:[^#|]|#(?!\|)|\|(?!#))*\|#)*\|#/,string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0},symbol:{pattern:/'[^()\[\]#'\s]+/,greedy:!0},char:{pattern:/#\\(?:[ux][a-fA-F\d]+\b|[-a-zA-Z]+\b|[\uD800-\uDBFF][\uDC00-\uDFFF]|\S)/,greedy:!0},"lambda-parameter":[{pattern:/((?:^|[^'`#])[(\[]lambda\s+)(?:[^|()\[\]'\s]+|\|(?:[^\\|]|\\.)*\|)/,lookbehind:!0},{pattern:/((?:^|[^'`#])[(\[]lambda\s+[(\[])[^()\[\]']+/,lookbehind:!0}],keyword:{pattern:/((?:^|[^'`#])[(\[])(?:begin|case(?:-lambda)?|cond(?:-expand)?|define(?:-library|-macro|-record-type|-syntax|-values)?|defmacro|delay(?:-force)?|do|else|except|export|guard|if|import|include(?:-ci|-library-declarations)?|lambda|let(?:rec)?(?:-syntax|-values|\*)?|let\*-values|only|parameterize|prefix|(?:quasi-?)?quote|rename|set!|syntax-(?:case|rules)|unless|unquote(?:-splicing)?|when)(?=[()\[\]\s]|$)/,lookbehind:!0},builtin:{pattern:/((?:^|[^'`#])[(\[])(?:abs|and|append|apply|assoc|ass[qv]|binary-port\?|boolean=?\?|bytevector(?:-append|-copy|-copy!|-length|-u8-ref|-u8-set!|\?)?|caar|cadr|call-with-(?:current-continuation|port|values)|call\/cc|car|cdar|cddr|cdr|ceiling|char(?:->integer|-ready\?|\?|<\?|<=\?|=\?|>\?|>=\?)|close-(?:input-port|output-port|port)|complex\?|cons|current-(?:error|input|output)-port|denominator|dynamic-wind|eof-object\??|eq\?|equal\?|eqv\?|error|error-object(?:-irritants|-message|\?)|eval|even\?|exact(?:-integer-sqrt|-integer\?|\?)?|expt|features|file-error\?|floor(?:-quotient|-remainder|\/)?|flush-output-port|for-each|gcd|get-output-(?:bytevector|string)|inexact\??|input-port(?:-open\?|\?)|integer(?:->char|\?)|lcm|length|list(?:->string|->vector|-copy|-ref|-set!|-tail|\?)?|make-(?:bytevector|list|parameter|string|vector)|map|max|member|memq|memv|min|modulo|negative\?|newline|not|null\?|number(?:->string|\?)|numerator|odd\?|open-(?:input|output)-(?:bytevector|string)|or|output-port(?:-open\?|\?)|pair\?|peek-char|peek-u8|port\?|positive\?|procedure\?|quotient|raise|raise-continuable|rational\?|rationalize|read-(?:bytevector|bytevector!|char|error\?|line|string|u8)|real\?|remainder|reverse|round|set-c[ad]r!|square|string(?:->list|->number|->symbol|->utf8|->vector|-append|-copy|-copy!|-fill!|-for-each|-length|-map|-ref|-set!|\?|<\?|<=\?|=\?|>\?|>=\?)?|substring|symbol(?:->string|\?|=\?)|syntax-error|textual-port\?|truncate(?:-quotient|-remainder|\/)?|u8-ready\?|utf8->string|values|vector(?:->list|->string|-append|-copy|-copy!|-fill!|-for-each|-length|-map|-ref|-set!|\?)?|with-exception-handler|write-(?:bytevector|char|string|u8)|zero\?)(?=[()\[\]\s]|$)/,lookbehind:!0},operator:{pattern:/((?:^|[^'`#])[(\[])(?:[-+*%/]|[<>]=?|=>?)(?=[()\[\]\s]|$)/,lookbehind:!0},number:{pattern:RegExp(function(e){for(var t in e)e[t]=e[t].replace(/<[\w\s]+>/g,(function(t){return"(?:"+e[t].trim()+")"}));return e[t]}({"<ureal dec>":/\d+(?:\/\d+)|(?:\d+(?:\.\d*)?|\.\d+)(?:[esfdl][+-]?\d+)?/.source,"<real dec>":/[+-]?<ureal dec>|[+-](?:inf|nan)\.0/.source,"<imaginary dec>":/[+-](?:<ureal dec>|(?:inf|nan)\.0)?i/.source,"<complex dec>":/<real dec>(?:@<real dec>|<imaginary dec>)?|<imaginary dec>/.source,"<num dec>":/(?:#d(?:#[ei])?|#[ei](?:#d)?)?<complex dec>/.source,"<ureal box>":/[0-9a-f]+(?:\/[0-9a-f]+)?/.source,"<real box>":/[+-]?<ureal box>|[+-](?:inf|nan)\.0/.source,"<imaginary box>":/[+-](?:<ureal box>|(?:inf|nan)\.0)?i/.source,"<complex box>":/<real box>(?:@<real box>|<imaginary box>)?|<imaginary box>/.source,"<num box>":/#[box](?:#[ei])?|(?:#[ei])?#[box]<complex box>/.source,"<number>":/(^|[()\[\]\s])(?:<num dec>|<num box>)(?=[()\[\]\s]|$)/.source}),"i"),lookbehind:!0},boolean:{pattern:/(^|[()\[\]\s])#(?:[ft]|false|true)(?=[()\[\]\s]|$)/,lookbehind:!0},function:{pattern:/((?:^|[^'`#])[(\[])(?:[^|()\[\]'\s]+|\|(?:[^\\|]|\\.)*\|)(?=[()\[\]\s]|$)/,lookbehind:!0},identifier:{pattern:/(^|[()\[\]\s])\|(?:[^\\|]|\\.)*\|(?=[()\[\]\s]|$)/,lookbehind:!0,greedy:!0},punctuation:/[()\[\]']/}}(Prism)},94604:function(){Prism.languages.scss=Prism.languages.extend("css",{comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0},atrule:{pattern:/@[\w-](?:\([^()]+\)|[^()\s]|\s+(?!\s))*?(?=\s+[{;])/,inside:{rule:/@[\w-]+/}},url:/(?:[-a-z]+-)?url(?=\()/i,selector:{pattern:/(?=\S)[^@;{}()]?(?:[^@;{}()\s]|\s+(?!\s)|#\{\$[-\w]+\})+(?=\s*\{(?:\}|\s|[^}][^:{}]*[:{][^}]))/,inside:{parent:{pattern:/&/,alias:"important"},placeholder:/%[-\w]+/,variable:/\$[-\w]+|#\{\$[-\w]+\}/}},property:{pattern:/(?:[-\w]|\$[-\w]|#\{\$[-\w]+\})+(?=\s*:)/,inside:{variable:/\$[-\w]+|#\{\$[-\w]+\}/}}}),Prism.languages.insertBefore("scss","atrule",{keyword:[/@(?:content|debug|each|else(?: if)?|extend|for|forward|function|if|import|include|mixin|return|use|warn|while)\b/i,{pattern:/( )(?:from|through)(?= )/,lookbehind:!0}]}),Prism.languages.insertBefore("scss","important",{variable:/\$[-\w]+|#\{\$[-\w]+\}/}),Prism.languages.insertBefore("scss","function",{"module-modifier":{pattern:/\b(?:as|hide|show|with)\b/i,alias:"keyword"},placeholder:{pattern:/%[-\w]+/,alias:"selector"},statement:{pattern:/\B!(?:default|optional)\b/i,alias:"keyword"},boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"},operator:{pattern:/(\s)(?:[-+*\/%]|[=!]=|<=?|>=?|and|not|or)(?=\s)/,lookbehind:!0}}),Prism.languages.scss.atrule.inside.rest=Prism.languages.scss},60061:function(){!function(e){var t=[/"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/.source,/'[^']*'/.source,/\$'(?:[^'\\]|\\[\s\S])*'/.source,/<<-?\s*(["']?)(\w+)\1\s[\s\S]*?[\r\n]\2/.source].join("|");e.languages["shell-session"]={command:{pattern:RegExp(/^/.source+"(?:"+/[^\s@:$#%*!/\\]+@[^\r\n@:$#%*!/\\]+(?::[^\0-\x1F$#%*?"<>:;|]+)?/.source+"|"+/[/~.][^\0-\x1F$#%*?"<>@:;|]*/.source+")?"+/[$#%](?=\s)/.source+/(?:[^\\\r\n \t'"<$]|[ \t](?:(?!#)|#.*$)|\\(?:[^\r]|\r\n?)|\$(?!')|<(?!<)|<<str>>)+/.source.replace(/<<str>>/g,(function(){return t})),"m"),greedy:!0,inside:{info:{pattern:/^[^#$%]+/,alias:"punctuation",inside:{user:/^[^\s@:$#%*!/\\]+@[^\r\n@:$#%*!/\\]+/,punctuation:/:/,path:/[\s\S]+/}},bash:{pattern:/(^[$#%]\s*)\S[\s\S]*/,lookbehind:!0,alias:"language-bash",inside:e.languages.bash},"shell-symbol":{pattern:/^[$#%]/,alias:"important"}}},output:/.(?:.*(?:[\r\n]|.$))*/},e.languages["sh-session"]=e.languages.shellsession=e.languages["shell-session"]}(Prism)},43537:function(){Prism.languages.solidity=Prism.languages.extend("clike",{"class-name":{pattern:/(\b(?:contract|enum|interface|library|new|struct|using)\s+)(?!\d)[\w$]+/,lookbehind:!0},keyword:/\b(?:_|anonymous|as|assembly|assert|break|calldata|case|constant|constructor|continue|contract|default|delete|do|else|emit|enum|event|external|for|from|function|if|import|indexed|inherited|interface|internal|is|let|library|mapping|memory|modifier|new|payable|pragma|private|public|pure|require|returns?|revert|selfdestruct|solidity|storage|struct|suicide|switch|this|throw|using|var|view|while)\b/,operator:/=>|->|:=|=:|\*\*|\+\+|--|\|\||&&|<<=?|>>=?|[-+*/%^&|<>!=]=?|[~?]/}),Prism.languages.insertBefore("solidity","keyword",{builtin:/\b(?:address|bool|byte|u?int(?:8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?|string|bytes(?:[1-9]|[12]\d|3[0-2])?)\b/}),Prism.languages.insertBefore("solidity","number",{version:{pattern:/([<>]=?|\^)\d+\.\d+\.\d+\b/,lookbehind:!0,alias:"number"}}),Prism.languages.sol=Prism.languages.solidity},96966:function(){Prism.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},identifier:{pattern:/(^|[^@\\])`(?:\\[\s\S]|[^`\\]|``)*`/,greedy:!0,lookbehind:!0,inside:{punctuation:/^`|`$/}},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:COL|_INSERT)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:ING|S)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/}},54793:function(){Prism.languages.swift={comment:{pattern:/(^|[^\\:])(?:\/\/.*|\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\/)/,lookbehind:!0,greedy:!0},"string-literal":[{pattern:RegExp(/(^|[^"#])/.source+"(?:"+/"(?:\\(?:\((?:[^()]|\([^()]*\))*\)|\r\n|[^(])|[^\\\r\n"])*"/.source+"|"+/"""(?:\\(?:\((?:[^()]|\([^()]*\))*\)|[^(])|[^\\"]|"(?!""))*"""/.source+")"+/(?!["#])/.source),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\\($/,alias:"punctuation"},punctuation:/\\(?=[\r\n])/,string:/[\s\S]+/}},{pattern:RegExp(/(^|[^"#])(#+)/.source+"(?:"+/"(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|\r\n|[^#])|[^\\\r\n])*?"/.source+"|"+/"""(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|[^#])|[^\\])*?"""/.source+")\\2"),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\#+\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\#+\($/,alias:"punctuation"},string:/[\s\S]+/}}],directive:{pattern:RegExp(/#/.source+"(?:"+/(?:elseif|if)\b/.source+"(?:[ \t]*"+/(?:![ \t]*)?(?:\b\w+\b(?:[ \t]*\((?:[^()]|\([^()]*\))*\))?|\((?:[^()]|\([^()]*\))*\))(?:[ \t]*(?:&&|\|\|))?/.source+")+|"+/(?:else|endif)\b/.source+")"),alias:"property",inside:{"directive-name":/^#\w+/,boolean:/\b(?:false|true)\b/,number:/\b\d+(?:\.\d+)*\b/,operator:/!|&&|\|\||[<>]=?/,punctuation:/[(),]/}},literal:{pattern:/#(?:colorLiteral|column|dsohandle|file(?:ID|Literal|Path)?|function|imageLiteral|line)\b/,alias:"constant"},"other-directive":{pattern:/#\w+\b/,alias:"property"},attribute:{pattern:/@\w+/,alias:"atrule"},"function-definition":{pattern:/(\bfunc\s+)\w+/,lookbehind:!0,alias:"function"},label:{pattern:/\b(break|continue)\s+\w+|\b[a-zA-Z_]\w*(?=\s*:\s*(?:for|repeat|while)\b)/,lookbehind:!0,alias:"important"},keyword:/\b(?:Any|Protocol|Self|Type|actor|as|assignment|associatedtype|associativity|async|await|break|case|catch|class|continue|convenience|default|defer|deinit|didSet|do|dynamic|else|enum|extension|fallthrough|fileprivate|final|for|func|get|guard|higherThan|if|import|in|indirect|infix|init|inout|internal|is|isolated|lazy|left|let|lowerThan|mutating|none|nonisolated|nonmutating|open|operator|optional|override|postfix|precedencegroup|prefix|private|protocol|public|repeat|required|rethrows|return|right|safe|self|set|some|static|struct|subscript|super|switch|throw|throws|try|typealias|unowned|unsafe|var|weak|where|while|willSet)\b/,boolean:/\b(?:false|true)\b/,nil:{pattern:/\bnil\b/,alias:"constant"},"short-argument":/\$\d+\b/,omit:{pattern:/\b_\b/,alias:"keyword"},number:/\b(?:[\d_]+(?:\.[\de_]+)?|0x[a-f0-9_]+(?:\.[a-f0-9p_]+)?|0b[01_]+|0o[0-7_]+)\b/i,"class-name":/\b[A-Z](?:[A-Z_\d]*[a-z]\w*)?\b/,function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:[A-Z_]{2,}|k[A-Z][A-Za-z_]+)\b/,operator:/[-+*/%=!<>&|^~?]+|\.[.\-+*/%=!<>&|^~?]+/,punctuation:/[{}[\]();,.:\\]/},Prism.languages.swift["string-literal"].forEach((function(e){e.inside.interpolation.inside=Prism.languages.swift}))},82769:function(){!function(e){var t=e.util.clone(e.languages.typescript);e.languages.tsx=e.languages.extend("jsx",t),delete e.languages.tsx.parameter,delete e.languages.tsx["literal-property"];var n=e.languages.tsx.tag;n.pattern=RegExp(/(^|[^\w$]|(?=<\/))/.source+"(?:"+n.pattern.source+")",n.pattern.flags),n.lookbehind=!0}(Prism)},59587:function(){!function(e){e.languages.typescript=e.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),e.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete e.languages.typescript.parameter,delete e.languages.typescript["literal-property"];var t=e.languages.extend("typescript",{});delete t["class-name"],e.languages.typescript["class-name"].inside=t,e.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:t}}}}),e.languages.ts=e.languages.typescript}(Prism)},83960:function(){!function(e){function t(t,n){e.languages[t]&&e.languages.insertBefore(t,"comment",{"doc-comment":n})}var n=e.languages.markup.tag,i={pattern:/\/\/\/.*/,greedy:!0,alias:"comment",inside:{tag:n}},r={pattern:/'''.*/,greedy:!0,alias:"comment",inside:{tag:n}};t("csharp",i),t("fsharp",i),t("vbnet",r)}(Prism)},60083:function(){!function(e){var t=/[*&][^\s[\]{},]+/,n=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,i="(?:"+n.source+"(?:[ \t]+"+t.source+")?|"+t.source+"(?:[ \t]+"+n.source+")?)",r=/(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-]<PLAIN>)(?:[ \t]*(?:(?![#:])<PLAIN>|:<PLAIN>))*/.source.replace(/<PLAIN>/g,(function(){return/[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source})),a=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function s(e,t){t=(t||"").replace(/m/g,"")+"m";var n=/([:\-,[{]\s*(?:\s<<prop>>[ \t]+)?)(?:<<value>>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<<prop>>/g,(function(){return i})).replace(/<<value>>/g,(function(){return e}));return RegExp(n,t)}e.languages.yaml={scalar:{pattern:RegExp(/([\-:]\s*(?:\s<<prop>>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<<prop>>/g,(function(){return i}))),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<<prop>>[ \t]+)?)<<key>>(?=\s*:\s)/.source.replace(/<<prop>>/g,(function(){return i})).replace(/<<key>>/g,(function(){return"(?:"+r+"|"+a+")"}))),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:s(/\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/.source),lookbehind:!0,alias:"number"},boolean:{pattern:s(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:s(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:s(a),lookbehind:!0,greedy:!0},number:{pattern:s(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:!0},tag:n,important:t,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},e.languages.yml=e.languages.yaml}(Prism)},65606:function(e){var t,n,i=e.exports={};function r(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(e){if(t===setTimeout)return setTimeout(e,0);if((t===r||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:r}catch(e){t=r}try{n="function"==typeof clearTimeout?clearTimeout:a}catch(e){n=a}}();var o,l=[],u=!1,c=-1;function d(){u&&o&&(u=!1,o.length?l=o.concat(l):c=-1,l.length&&p())}function p(){if(!u){var e=s(d);u=!0;for(var t=l.length;t;){for(o=l,l=[];++c<t;)o&&o[c].run();c=-1,t=l.length}o=null,u=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===a||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{return n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(e)}}function h(e,t){this.fun=e,this.array=t}function g(){}i.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];l.push(new h(e,t)),1!==l.length||u||s(p)},h.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=g,i.addListener=g,i.once=g,i.off=g,i.removeListener=g,i.removeAllListeners=g,i.emit=g,i.prependListener=g,i.prependOnceListener=g,i.listeners=function(e){return[]},i.binding=function(e){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},42632:function(e,t,n){"use strict";n.d(t,{r:function(){return Fn}});var i=n(50953),r=n(20641);
/*!
 * OverlayScrollbars
 * Version: 2.9.1
 *
 * Copyright (c) Rene Haas | KingSora.
 * https://github.com/KingSora
 *
 * Released under the MIT license.
 */
const a=(e,t)=>{const{o:n,i:i,u:r}=e;let a,s=n;const o=(e,t)=>{const n=s,o=e,l=t||(i?!i(n,o):n!==o);return(l||r)&&(s=o,a=n),[s,l,a]};return[t?e=>o(t(s,a),e):o,e=>[s,!!e,a]]},s="undefined"!=typeof window&&"undefined"!=typeof HTMLElement&&!!window.document?window:{},o=Math.max,l=Math.min,u=Math.round,c=Math.abs,d=Math.sign,p=s.cancelAnimationFrame,h=s.requestAnimationFrame,g=s.setTimeout,f=s.clearTimeout,m=e=>void 0!==s[e]?s[e]:void 0,b=m("MutationObserver"),y=m("IntersectionObserver"),_=m("ResizeObserver"),v=m("ScrollTimeline"),w=e=>void 0===e,E=e=>null===e,S=e=>"number"==typeof e,P=e=>"string"==typeof e,x=e=>"boolean"==typeof e,A=e=>"function"==typeof e,k=e=>Array.isArray(e),L=e=>"object"==typeof e&&!k(e)&&!E(e),T=e=>{const t=!!e&&e.length,n=S(t)&&t>-1&&t%1==0;return!!(k(e)||!A(e)&&n)&&(!(t>0&&L(e))||t-1 in e)},I=e=>!!e&&e.constructor===Object,R=e=>e instanceof HTMLElement,N=e=>e instanceof Element;function C(e,t){if(T(e))for(let n=0;n<e.length&&!1!==t(e[n],n,e);n++);else e&&C(Object.keys(e),(n=>t(e[n],n,e)));return e}const M=(e,t)=>e.indexOf(t)>=0,D=(e,t)=>e.concat(t),O=(e,t,n)=>(n||P(t)||!T(t)?e.push(t):Array.prototype.push.apply(e,t),e),F=e=>Array.from(e||[]),B=e=>k(e)?e:!P(e)&&T(e)?F(e):[e],$=e=>!!e&&!e.length,V=e=>F(new Set(e)),U=(e,t,n)=>{C(e,(e=>e&&e.apply(void 0,t||[]))),!n&&(e.length=0)},z="paddingTop",H="paddingRight",j="paddingLeft",G="paddingBottom",W="marginLeft",Z="marginRight",q="marginBottom",X="overflowX",K="overflowY",Y="width",Q="height",J="visible",ee="hidden",te="scroll",ne=(e,t,n,i)=>{if(e&&t){let r=!0;return C(n,(n=>{(i?i(e[n]):e[n])!==(i?i(t[n]):t[n])&&(r=!1)})),r}return!1},ie=(e,t)=>ne(e,t,["w","h"]),re=(e,t)=>ne(e,t,["x","y"]),ae=(e,t)=>ne(e,t,["t","r","b","l"]),se=()=>{},oe=(e,...t)=>e.bind(0,...t),le=e=>{let t;const n=e?g:h,i=e?f:p;return[r=>{i(t),t=n((()=>r()),A(e)?e():e)},()=>i(t)]},ue=(e,t)=>{const{_:n,p:i,v:r,S:a}=t||{};let s,o,l,u,c=se;const d=function(t){c(),f(s),u=s=o=void 0,c=se,e.apply(this,t)},m=e=>a&&o?a(o,e):e,b=()=>{c!==se&&d(m(l)||l)},y=function(){const e=F(arguments),t=A(n)?n():n;if(S(t)&&t>=0){const n=A(i)?i():i,a=S(n)&&n>=0,y=t>0?g:h,_=t>0?f:p,v=m(e)||e,w=d.bind(0,v);let E;c(),r&&!u?(w(),u=!0,E=y((()=>u=void 0),t)):(E=y(w,t),a&&!s&&(s=g(b,n))),c=()=>_(E),o=l=v}else d(e)};return y.m=b,y},ce=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),de=e=>e?Object.keys(e):[],pe=(e,t,n,i,r,a,s)=>{const o=[t,n,i,r,a,s];return"object"==typeof e&&!E(e)||A(e)||(e={}),C(o,(t=>{C(t,((n,i)=>{const r=t[i];if(e===r)return!0;const a=k(r);if(r&&I(r)){const t=e[i];let n=t;a&&!k(t)?n=[]:a||I(t)||(n={}),e[i]=pe(n,r)}else e[i]=a?r.slice():r}))})),e},he=(e,t)=>C(pe({},e),((e,n,i)=>{void 0===e?delete i[n]:t&&e&&I(e)&&(i[n]=he(e,t))})),ge=e=>!de(e).length,fe=(e,t,n)=>o(e,l(t,n)),me=e=>V((k(e)?e:(e||"").split(" ")).filter((e=>e))),be=(e,t)=>e&&e.getAttribute(t),ye=(e,t)=>e&&e.hasAttribute(t),_e=(e,t,n)=>{C(me(t),(t=>{e&&e.setAttribute(t,String(n||""))}))},ve=(e,t)=>{C(me(t),(t=>e&&e.removeAttribute(t)))},we=(e,t)=>{const n=me(be(e,t)),i=oe(_e,e,t),r=(e,t)=>{const i=new Set(n);return C(me(e),(e=>{i[t](e)})),F(i).join(" ")};return{O:e=>i(r(e,"delete")),$:e=>i(r(e,"add")),C:e=>{const t=me(e);return t.reduce(((e,t)=>e&&n.includes(t)),t.length>0)}}},Ee=(e,t,n)=>(we(e,t).O(n),oe(Se,e,t,n)),Se=(e,t,n)=>(we(e,t).$(n),oe(Ee,e,t,n)),Pe=(e,t,n,i)=>(i?Se:Ee)(e,t,n),xe=(e,t,n)=>we(e,t).C(n),Ae=e=>we(e,"class"),ke=(e,t)=>{Ae(e).O(t)},Le=(e,t)=>(Ae(e).$(t),oe(ke,e,t)),Te=(e,t)=>{const n=t?N(t)&&t:document;return n?F(n.querySelectorAll(e)):[]},Ie=(e,t)=>N(e)&&e.matches(t),Re=e=>Ie(e,"body"),Ne=e=>e?F(e.childNodes):[],Ce=e=>e&&e.parentElement,Me=(e,t)=>N(e)&&e.closest(t),De=e=>(e||document).activeElement,Oe=(e,t,n)=>{const i=Me(e,t),r=e&&((e,t)=>{const n=t?N(t)&&t:document;return n&&n.querySelector(e)})(n,i),a=Me(r,t)===i;return!(!i||!r)&&(i===e||r===e||a&&Me(Me(e,n),t)!==i)},Fe=e=>{C(B(e),(e=>{const t=Ce(e);e&&t&&t.removeChild(e)}))},Be=(e,t)=>oe(Fe,e&&t&&C(B(t),(t=>{t&&e.appendChild(t)}))),$e=e=>{const t=document.createElement("div");return _e(t,"class",e),t},Ve=e=>{const t=$e();return t.innerHTML=e.trim(),C(Ne(t),(e=>Fe(e)))},Ue=(e,t)=>e.getPropertyValue(t)||e[t]||"",ze=e=>{const t=e||0;return isFinite(t)?t:0},He=e=>ze(parseFloat(e||"")),je=e=>Math.round(1e4*e)/1e4,Ge=e=>`${je(ze(e))}px`;function We(e,t){e&&t&&C(t,((t,n)=>{try{const i=e.style,r=E(t)||x(t)?"":S(t)?Ge(t):t;0===n.indexOf("--")?i.setProperty(n,r):i[n]=r}catch(e){}}))}function Ze(e,t,n){const i=P(t);let r=i?"":{};if(e){const a=s.getComputedStyle(e,n)||e.style;r=i?Ue(a,t):F(t).reduce(((e,t)=>(e[t]=Ue(a,t),e)),r)}return r}const qe=(e,t,n)=>{const i=t?`${t}-`:"",r=n?`-${n}`:"",a=`${i}top${r}`,s=`${i}right${r}`,o=`${i}bottom${r}`,l=`${i}left${r}`,u=Ze(e,[a,s,o,l]);return{t:He(u[a]),r:He(u[s]),b:He(u[o]),l:He(u[l])}},Xe=(e,t)=>"translate"+(L(e)?`(${e.x},${e.y})`:`${t?"X":"Y"}(${e})`),Ke={w:0,h:0},Ye=(e,t)=>t?{w:t[`${e}Width`],h:t[`${e}Height`]}:Ke,Qe=e=>Ye("inner",e||s),Je=oe(Ye,"offset"),et=oe(Ye,"client"),tt=oe(Ye,"scroll"),nt=e=>{const t=parseFloat(Ze(e,Y))||0,n=parseFloat(Ze(e,Q))||0;return{w:t-u(t),h:n-u(n)}},it=e=>e.getBoundingClientRect(),rt=e=>!(!e||!e[Q]&&!e[Y]),at=(e,t)=>{const n=rt(e);return!rt(t)&&n},st=(e,t,n,i)=>{C(me(t),(t=>{e&&e.removeEventListener(t,n,i)}))},ot=(e,t,n,i)=>{var r;const a=null==(r=i&&i.H)||r,s=i&&i.I||!1,o=i&&i.A||!1,l={passive:a,capture:s};return oe(U,me(t).map((t=>{const i=o?r=>{st(e,t,i,s),n&&n(r)}:n;return e&&e.addEventListener(t,i,l),oe(st,e,t,i,s)})))},lt=e=>e.stopPropagation(),ut=e=>e.preventDefault(),ct=e=>lt(e)||ut(e),dt=(e,t)=>{const{x:n,y:i}=S(t)?{x:t,y:t}:t||{};S(n)&&(e.scrollLeft=n),S(i)&&(e.scrollTop=i)},pt=e=>({x:e.scrollLeft,y:e.scrollTop}),ht=(e,t)=>{const{D:n,T:i}=e,{w:r,h:a}=t,s=(e,t,n)=>{let i=d(e)*n,r=d(t)*n;if(i===r){const n=c(e),a=c(t);r=n>a?0:r,i=n<a?0:i}return i=i===r?0:i,[i+0,r+0]},[o,l]=s(n.x,i.x,r),[u,p]=s(n.y,i.y,a);return{D:{x:o,y:u},T:{x:l,y:p}}},gt=({D:e,T:t})=>{const n=(e,t)=>0===e&&e<=t;return{x:n(e.x,t.x),y:n(e.y,t.y)}},ft=({D:e,T:t},n)=>{const i=(e,t,n)=>fe(0,1,(e-n)/(e-t)||0);return{x:i(e.x,t.x,n.x),y:i(e.y,t.y,n.y)}},mt=e=>{e&&e.focus&&e.focus({preventScroll:!0})},bt=(e,t)=>{C(B(t),e)},yt=e=>{const t=new Map,n=(e,n)=>{if(e){const i=t.get(e);bt((e=>{i&&i[e?"delete":"clear"](e)}),n)}else t.forEach((e=>{e.clear()})),t.clear()},i=(e,r)=>{if(P(e)){const i=t.get(e)||new Set;return t.set(e,i),bt((e=>{A(e)&&i.add(e)}),r),oe(n,e,r)}x(r)&&r&&n();const a=de(e),s=[];return C(a,(t=>{const n=e[t];n&&O(s,i(t,n))})),oe(U,s)};return i(e||{}),[i,n,(e,n)=>{C(F(t.get(e)),(e=>{n&&!$(n)?e.apply(0,n):e()}))}]},_t=e=>JSON.stringify(e,((e,t)=>{if(A(t))throw 0;return t})),vt=(e,t)=>e?`${t}`.split(".").reduce(((e,t)=>e&&ce(e,t)?e[t]:void 0),e):void 0,wt={paddingAbsolute:!1,showNativeOverlaidScrollbars:!1,update:{elementEvents:[["img","load"]],debounce:[0,33],attributes:null,ignoreMutation:null},overflow:{x:"scroll",y:"scroll"},scrollbars:{theme:"os-theme-dark",visibility:"auto",autoHide:"never",autoHideDelay:1300,autoHideSuspend:!1,dragScroll:!0,clickScroll:!1,pointers:["mouse","touch","pen"]}},Et=(e,t)=>{const n={};return C(D(de(t),de(e)),(i=>{const r=e[i],a=t[i];if(L(r)&&L(a))pe(n[i]={},Et(r,a)),ge(n[i])&&delete n[i];else if(ce(t,i)&&a!==r){let e=!0;if(k(r)||k(a))try{_t(r)===_t(a)&&(e=!1)}catch(e){}e&&(n[i]=a)}})),n},St=(e,t,n)=>i=>[vt(e,i),n||void 0!==vt(t,i)],Pt="data-overlayscrollbars",xt="os-environment",At=`${xt}-scrollbar-hidden`,kt=`${Pt}-initialize`,Lt="noClipping",Tt=`${Pt}-body`,It=Pt,Rt=`${Pt}-viewport`,Nt=X,Ct=K,Mt="arrange",Dt="measuring",Ot="scrollbarHidden",Ft=`${Pt}-padding`,Bt=`${Pt}-content`,$t="os-size-observer",Vt=`${$t}-appear`,Ut=`${$t}-listener`,zt="os-scrollbar",Ht=`${zt}-rtl`,jt=`${zt}-horizontal`,Gt=`${zt}-vertical`,Wt=`${zt}-track`,Zt=`${zt}-handle`,qt=`${zt}-visible`,Xt=`${zt}-cornerless`,Kt=`${zt}-interaction`,Yt=`${zt}-unusable`,Qt=`${zt}-auto-hide`,Jt=`${Qt}-hidden`,en=`${zt}-wheel`,tn=`${Wt}-interactive`,nn=`${Zt}-interactive`;let rn;let an;const sn=()=>{const e=(e,t,n)=>{Be(document.body,e),Be(document.body,e);const i=et(e),r=Je(e),a=nt(t);return n&&Fe(e),{x:r.h-i.h+a.h,y:r.w-i.w+a.w}},t=Ve(`<div class="${xt}"><div></div><style>${`.${xt}{scroll-behavior:auto!important;position:fixed;opacity:0;visibility:hidden;overflow:scroll;height:200px;width:200px;z-index:-1}.${xt} div{width:200%;height:200%;margin:10px 0}.${At}{scrollbar-width:none!important}.${At}::-webkit-scrollbar,.${At}::-webkit-scrollbar-corner{appearance:none!important;display:none!important;width:0!important;height:0!important}`}</style></div>`)[0],n=t.firstChild,i=t.lastChild,r=rn;r&&(i.nonce=r);const[o,,l]=yt(),[u,c]=a({o:e(t,n),i:re},oe(e,t,n,!0)),[d]=c(),p=(e=>{let t=!1;const n=Le(e,At);try{t="none"===Ze(e,"scrollbar-width")||"none"===Ze(e,"display","::-webkit-scrollbar")}catch(e){}return n(),t})(t),h={x:0===d.x,y:0===d.y},g={elements:{host:null,padding:!p,viewport:e=>p&&Re(e)&&e,content:!1},scrollbars:{slot:!0},cancel:{nativeScrollbarsOverlaid:!1,body:null}},f=pe({},wt),m=oe(pe,{},f),b=oe(pe,{},g),y={k:d,M:h,R:p,V:!!v,L:oe(o,"r"),U:b,P:e=>pe(g,e)&&b(),N:m,q:e=>pe(f,e)&&m(),B:pe({},g),F:pe({},f)};if(ve(t,"style"),Fe(t),ot(s,"resize",(()=>{l("r",[])})),A(s.matchMedia)&&!p&&(!h.x||!h.y)){const e=t=>{const n=s.matchMedia(`(resolution: ${s.devicePixelRatio}dppx)`);ot(n,"change",(()=>{t(),e(t)}),{A:!0})};e((()=>{const[e,t]=u();pe(y.k,e),l("r",[t])}))}return y},on=()=>(an||(an=sn()),an),ln=(e,t)=>A(t)?t.apply(0,e):t,un=(e,t,n,i)=>{const r=w(i)?n:i;return ln(e,r)||t.apply(0,e)},cn=(e,t,n,i)=>{const r=w(i)?n:i,a=ln(e,r);return!!a&&(R(a)?a:t.apply(0,e))},dn=new WeakMap,pn=e=>dn.get(e),hn=(e,t,n,i)=>{let r=!1;const{j:a,X:s,Y:o,W:l,J:u,G:c}=i||{},d=ue((()=>r&&n(!0)),{_:33,p:99}),[p,h]=((e,t,n)=>{let i=!1;const r=!!n&&new WeakMap,a=a=>{if(r&&n){const s=n.map((t=>{const[n,i]=t||[];return[i&&n?(a||Te)(n,e):[],i]}));C(s,(n=>C(n[0],(a=>{const s=n[1],o=r.get(a)||[];if(e.contains(a)&&s){const e=ot(a,s,(n=>{i?(e(),r.delete(a)):t(n)}));r.set(a,O(o,e))}else U(o),r.delete(a)}))))}};return a(),[()=>{i=!0},a]})(e,d,o),g=s||[],f=D(a||[],g),m=(r,a)=>{if(!$(a)){const s=u||se,o=c||se,d=[],p=[];let f=!1,m=!1;if(C(a,(n=>{const{attributeName:r,target:a,type:u,oldValue:c,addedNodes:h,removedNodes:b}=n,y="attributes"===u,_="childList"===u,v=e===a,w=y&&r,E=w&&be(a,r||""),S=P(E)?E:null,x=w&&c!==S,A=M(g,r)&&x;if(t&&(_||!v)){const t=y&&x,u=t&&l&&Ie(a,l),p=(u?!s(a,r,c,S):!y||t)&&!o(n,!!u,e,i);C(h,(e=>O(d,e))),C(b,(e=>O(d,e))),m=m||p}!t&&v&&x&&!s(a,r,c,S)&&(O(p,r),f=f||A)})),h((e=>V(d).reduce(((t,n)=>(O(t,Te(e,n)),Ie(n,e)?O(t,n):t)),[]))),t)return!r&&m&&n(!1),[!1];if(!$(p)||f){const e=[V(p),f];return!r&&n.apply(0,e),e}}},y=new b(oe(m,!1));return[()=>(y.observe(e,{attributes:!0,attributeOldValue:!0,attributeFilter:f,subtree:t,childList:t,characterData:t}),r=!0,()=>{r&&(p(),y.disconnect(),r=!1)}),()=>{if(r)return d.m(),m(!0,y.takeRecords())}]},gn={},fn={},mn=(e,t,n)=>de(e).map((i=>{const{static:r,instance:a}=e[i],[s,o,l]=n||[],u=n?a:r;if(u){const e=n?u(s,o,t):u(t);return(l||fn)[i]=e}})),bn=e=>fn[e],yn="__osSizeObserverPlugin",_n=(e,t)=>{const{M:n}=t,[i,r]=e("showNativeOverlaidScrollbars");return[i&&n.x&&n.y,r]},vn=e=>0===e.indexOf(J),wn=(e,t)=>{const n=(e,t,n,i)=>{const r=e===J?ee:e.replace(`${J}-`,""),a=vn(e),s=vn(n);if(!t&&!i)return ee;if(a&&s)return J;if(a){return t&&i?r:t?J:ee}return t?r:s&&i?J:ee},i={x:n(t.x,e.x,t.y,e.y),y:n(t.y,e.y,t.x,e.x)};return{K:i,Z:{x:i.x===te,y:i.y===te}}},En="__osScrollbarsHidingPlugin",Sn="__osClickScrollPlugin",Pn=(e,t,n)=>{const{dt:i}=n||{},r=bn(yn),[s]=a({o:!1,u:!0});return()=>{const n=[],a=Ve(`<div class="${$t}"><div class="${Ut}"></div></div>`)[0],o=a.firstChild,l=e=>{let n=!1,i=!1;if(e instanceof ResizeObserverEntry){const[t,,r]=s(e.contentRect),a=rt(t);i=at(t,r),n=!i&&!a}else i=!0===e;n||t({ft:!0,dt:i})};if(_){const e=new _((e=>l(e.pop())));e.observe(o),O(n,(()=>{e.disconnect()}))}else{if(!r)return se;{const[e,t]=r(o,l,i);O(n,D([Le(a,Vt),ot(a,"animationstart",e)],t))}}return oe(U,O(n,Be(e,a)))}},xn=(e,t)=>{let n;const i=$e("os-trinsic-observer"),[r]=a({o:!1}),s=(e,n)=>{if(e){const i=r((e=>0===e.h||e.isIntersecting||e.intersectionRatio>0)(e)),[,a]=i;return a&&!n&&t(i)&&[i]}},o=(e,t)=>s(t.pop(),e);return[()=>{const t=[];if(y)n=new y(oe(o,!1),{root:e}),n.observe(i),O(t,(()=>{n.disconnect()}));else{const e=()=>{const e=Je(i);s(e)};O(t,Pn(i,e)()),e()}return oe(U,O(t,Be(e,i)))},()=>n&&o(!0,n.takeRecords())]},An=(e,t,n,i)=>{let r,s,o,l,u,c;const d=`[${It}]`,p=`[${Rt}]`,h=["id","class","style","open","wrap","cols","rows"],{vt:g,gt:f,ot:m,ht:b,bt:y,nt:v,wt:w,yt:E,St:P,Ot:x}=e,L=e=>"rtl"===Ze(e,"direction"),T={$t:!1,ct:L(g)},I=on(),R=bn(En),[N]=a({i:ie,o:{w:0,h:0}},(()=>{const i=R&&R.tt(e,t,T,I,n).ut,r=!(w&&v)&&xe(f,It,Lt),a=!v&&E(Mt),s=a&&pt(b),o=s&&x(),l=P(Dt,r),u=a&&i&&i()[0],c=tt(m),d=nt(m);return u&&u(),dt(b,s),o&&o(),r&&l(),{w:c.w+d.w,h:c.h+d.h}})),C=ue(i,{_:()=>r,p:()=>s,S(e,t){const[n]=e,[i]=t;return[D(de(n),de(i)).reduce(((e,t)=>(e[t]=n[t]||i[t],e)),{})]}}),M=e=>{const t=L(g);pe(e,{Ct:c!==t}),pe(T,{ct:t}),c=t},O=(e,t)=>{const[n,r]=e,a={xt:r};return pe(T,{$t:n}),!t&&i(a),a},F=({ft:e,dt:t})=>{const n=!(e&&!t)&&I.R?C:i,r={ft:e||t,dt:t};M(r),n(r)},B=(e,t)=>{const[,n]=N(),r={Ht:n};M(r);return n&&!t&&(e?i:C)(r),r},$=(e,t,n)=>{const i={Et:t};return M(i),t&&!n&&C(i),i},[V,U]=y?xn(f,O):[],z=!v&&Pn(f,F,{dt:!0}),[H,j]=hn(f,!1,$,{X:h,j:h}),G=v&&_&&new _((e=>{const t=e[e.length-1].contentRect;F({ft:!0,dt:at(t,u)}),u=t})),W=ue((()=>{const[,e]=N();i({Ht:e})}),{_:222,v:!0});return[()=>{G&&G.observe(f);const e=z&&z(),t=V&&V(),n=H(),i=I.L((e=>{e?C({zt:e}):W()}));return()=>{G&&G.disconnect(),e&&e(),t&&t(),l&&l(),n(),i()}},({It:e,At:t,Dt:n})=>{const i={},[a]=e("update.ignoreMutation"),[u,c]=e("update.attributes"),[g,f]=e("update.elementEvents"),[b,_]=e("update.debounce"),w=t||n;if(f||c){o&&o(),l&&l();const[e,t]=hn(y||m,!0,B,{j:D(h,u||[]),Y:g,W:d,G:(e,t)=>{const{target:n,attributeName:i}=e;return!(t||!i||v)&&Oe(n,d,p)||!!Me(n,`.${zt}`)||!!(e=>A(a)&&a(e))(e)}});l=e(),o=t}if(_)if(C.m(),k(b)){const e=b[0],t=b[1];r=S(e)&&e,s=S(t)&&t}else S(b)?(r=b,s=!1):(r=!1,s=!1);if(w){const e=j(),t=U&&U(),n=o&&o();e&&pe(i,$(e[0],e[1],w)),t&&pe(i,O(t[0],w)),n&&pe(i,B(n[0],w))}return M(i),i},T]},kn=(e,t,n,i)=>{const r="--os-viewport-percent",a="--os-scroll-percent",s="--os-scroll-direction",{U:o}=on(),{scrollbars:l}=o(),{slot:u}=l,{vt:c,gt:d,ot:p,Tt:h,ht:g,wt:f,nt:m}=t,{scrollbars:b}=h?{}:e,{slot:y}=b||{},_=[],w=[],E=[],S=cn([c,d,p],(()=>m&&f?c:d),u,y),P=e=>{if(v){const t=new v({source:g,axis:e}),n=e=>{const n=e.kt.animate({clear:["left"],[a]:[0,1]},{timeline:t});return()=>n.cancel()};return{Mt:n}}},A={x:P("x"),y:P("y")},k=(e,t,n)=>{const i=n?Le:ke;C(e,(e=>{i(e.kt,t)}))},L=(e,t)=>{C(e,(e=>{const[n,i]=t(e);We(n,i)}))},T=(e,t,n)=>{const i=x(n),r=!i||!n;(!i||n)&&k(w,e,t),r&&k(E,e,t)},I=e=>{const t=e?"x":"y",n=$e(`${zt} ${e?jt:Gt}`),r=$e(Wt),a=$e(Zt),s={kt:n,Ut:r,Pt:a},o=A[t];return O(e?w:E,s),O(_,[Be(n,r),Be(r,a),oe(Fe,n),o&&o.Mt(s),i(s,T,e)]),s},R=oe(I,!0),N=oe(I,!1);return R(),N(),[{Nt:()=>{const e=(()=>{const{Rt:e,Vt:t}=n,i=(e,t)=>fe(0,1,e/(e+t)||0);return{x:i(t.x,e.x),y:i(t.y,e.y)}})(),t=e=>t=>[t.kt,{[r]:je(e)+""}];L(w,t(e.x)),L(E,t(e.y))},qt:()=>{if(!v){const{Lt:e}=n,t=ft(e,pt(g)),i=e=>t=>[t.kt,{[a]:je(e)+""}];L(w,i(t.x)),L(E,i(t.y))}},Bt:()=>{const{Lt:e}=n,t=gt(e),i=e=>t=>[t.kt,{[s]:e?"0":"1"}];L(w,i(t.x)),L(E,i(t.y))},Ft:()=>{if(m&&!f){const{Rt:e,Lt:t}=n,i=gt(t),r=ft(t,pt(g)),a=t=>{const{kt:n}=t,a=Ce(n)===p&&n,s=(e,t,n)=>{const i=t*e;return Ge(n?i:-i)};return[a,a&&{transform:Xe({x:s(r.x,e.x,i.x),y:s(r.y,e.y,i.y)})}]};L(w,a),L(E,a)}},jt:T,Xt:{Yt:w,Wt:R,Jt:oe(L,w)},Gt:{Yt:E,Wt:N,Jt:oe(L,E)}},()=>(Be(S,w[0].kt),Be(S,E[0].kt),oe(U,_))]},Ln=(e,t,n,i)=>(r,a,s)=>{const{gt:o,ot:l,nt:d,ht:p,Kt:h,Ot:f}=t,{kt:m,Ut:b,Pt:y}=r,[_,v]=le(333),[w,E]=le(444),S=e=>{A(p.scrollBy)&&p.scrollBy({behavior:"smooth",left:e.x,top:e.y})};let P=!0;return oe(U,[ot(y,"pointermove pointerleave",i),ot(m,"pointerenter",(()=>{a(Kt,!0)})),ot(m,"pointerleave pointercancel",(()=>{a(Kt,!1)})),!d&&ot(m,"mousedown",(()=>{const e=De();(ye(e,Rt)||ye(e,It)||e===document.body)&&g(oe(mt,l),25)})),ot(m,"wheel",(e=>{const{deltaX:t,deltaY:n,deltaMode:i}=e;P&&0===i&&Ce(m)===o&&S({x:t,y:n}),P=!1,a(en,!0),_((()=>{P=!0,a(en)})),ut(e)}),{H:!1,I:!0}),ot(m,"pointerdown",oe(ot,h,"click",ct,{A:!0,I:!0,H:!1}),{I:!0}),(()=>{const t="pointerup pointercancel lostpointercapture",i="client"+(s?"X":"Y"),r=s?Y:Q,a=s?"left":"top",o=s?"w":"h",l=s?"x":"y",d=(e,t)=>i=>{const{Rt:r}=n,a=Je(b)[o]-Je(y)[o],s=t*i/a*r[l];dt(p,{[l]:e+s})},g=[];return ot(b,"pointerdown",(n=>{const s=Me(n.target,`.${Zt}`)===y,m=s?y:b,_=e.scrollbars,{button:v,isPrimary:P,pointerType:x}=n,{pointers:A}=_;if(0===v&&P&&_[s?"dragScroll":"clickScroll"]&&(A||[]).includes(x)){U(g),E();const e=!s&&n.shiftKey,_=oe(it,y),v=oe(it,b),P=(e,t)=>(e||_())[a]-(t||v())[a],x=u(it(p)[r])/Je(p)[o]||1,A=d(pt(p)[l],1/x),k=n[i],L=_(),T=v(),I=L[r],R=P(L,T)+I/2,N=k-T[a],C=s?0:N-R,M=e=>{U(F),m.releasePointerCapture(e.pointerId)},D=f(),F=[()=>{const e=pt(p);D();const t=pt(p),n={x:t.x-e.x,y:t.y-e.y};(c(n.x)>3||c(n.y)>3)&&(f(),dt(p,e),S(n),w(D))},ot(h,t,M),ot(h,"selectstart",(e=>ut(e)),{H:!1}),ot(b,t,M),ot(b,"pointermove",(t=>{const n=t[i]-k;(s||e)&&A(C+n)}))];if(m.setPointerCapture(n.pointerId),e)A(C);else if(!s){const e=bn(Sn);if(e){const t=e(A,P,C,I,N);O(F,oe(t)),O(g,oe(t,!0))}}}}))})(),v,E])},Tn=e=>{const t=on(),{U:n,R:i}=t,{elements:r}=n(),{padding:a,viewport:o,content:l}=r,u=R(e),c=u?{}:e,{elements:d}=c,{padding:p,viewport:h,content:g}=d||{},f=u?e:c.target,m=Re(f),b=f.ownerDocument,y=b.documentElement,_=()=>b.defaultView||s,v=oe(un,[f]),w=oe(cn,[f]),E=oe($e,""),S=oe(v,E,o),P=oe(w,E,l),x=S(h),A=x===f,k=A&&m,L=!A&&P(g),T=!A&&x===L,I=k?y:x,N=k?I:f,C=!A&&w(E,a,p),D=!T&&L,F=[D,I,C,N].map((e=>R(e)&&!Ce(e)&&e)),B=e=>e&&M(F,e),$=!B(I)&&(e=>{const t=Je(e),n=tt(e),i=Ze(e,X),r=Ze(e,K);return n.w-t.w>0&&!vn(i)||n.h-t.h>0&&!vn(r)})(I)?I:f,V=k?y:I,z={vt:f,gt:N,ot:I,ln:C,bt:D,ht:V,Qt:k?b:I,an:m?y:$,Kt:b,wt:m,Tt:u,nt:A,un:_,yt:e=>xe(I,Rt,e),St:(e,t)=>Pe(I,Rt,e,t),Ot:()=>Pe(V,Rt,"scrolling",!0)},{vt:H,gt:j,ln:G,ot:W,bt:Z}=z,q=[()=>{ve(j,[It,kt]),ve(H,kt),m&&ve(y,[kt,It])}];let Y=Ne([Z,W,G,j,H].find((e=>e&&!B(e))));const Q=k?H:Z||W,J=oe(U,q);return[z,()=>{const e=_(),t=De(),n=e=>{Be(Ce(e),Ne(e)),Fe(e)},r=e=>ot(e,"focusin focusout focus blur",ct,{I:!0,H:!1}),a="tabindex",s=be(W,a),o=r(t);return _e(j,It,A?"":"host"),_e(G,Ft,""),_e(W,Rt,""),_e(Z,Bt,""),A||(_e(W,a,s||"-1"),m&&_e(y,Tt,"")),Be(Q,Y),Be(j,G),Be(G||j,!A&&W),Be(W,Z),O(q,[o,()=>{const e=De(),t=B(W),i=t&&e===W?H:e,o=r(i);ve(G,Ft),ve(Z,Bt),ve(W,Rt),m&&ve(y,Tt),s?_e(W,a,s):ve(W,a),B(Z)&&n(Z),t&&n(W),B(G)&&n(G),mt(i),o()}]),i&&!A&&(Se(W,Rt,Ot),O(q,oe(ve,W,Rt))),mt(!A&&m&&t===H&&e.top===e?W:t),o(),Y=0,J},J]},In=({bt:e})=>({Zt:t,_n:n,Dt:i})=>{const{xt:r}=t||{},{$t:a}=n;e&&(r||i)&&We(e,{[Q]:a&&"100%"})},Rn=({gt:e,ln:t,ot:n,nt:i},r)=>{const[s,o]=a({i:ae,o:qe()},oe(qe,e,"padding",""));return({It:e,Zt:a,_n:l,Dt:u})=>{let[c,d]=o(u);const{R:p}=on(),{ft:h,Ht:g,Ct:f}=a||{},{ct:m}=l,[b,y]=e("paddingAbsolute");(h||d||(u||g))&&([c,d]=s(u));const _=!i&&(y||f||d);if(_){const e=!b||!t&&!p,i=c.r+c.l,a=c.t+c.b,s={[Z]:e&&!m?-i:0,[q]:e?-a:0,[W]:e&&m?-i:0,top:e?-c.t:0,right:e?m?-c.r:"auto":0,left:e?m?"auto":-c.l:0,[Y]:e&&`calc(100% + ${i}px)`},o={[z]:e?c.t:0,[H]:e?c.r:0,[G]:e?c.b:0,[j]:e?c.l:0};We(t||n,s),We(n,o),pe(r,{ln:c,dn:!e,rt:t?o:pe({},s,o)})}return{fn:_}}},Nn=(e,t)=>{const n=on(),{gt:i,ln:r,ot:l,nt:u,Qt:c,ht:d,wt:p,St:g,un:f}=e,{R:m}=n,b=p&&u,y=oe(o,0),_=["display","direction","flexDirection","writingMode"],v={i:ie,o:{w:0,h:0}},w={i:re,o:{}},E=e=>{g(Dt,!b&&e)},S=(e,t)=>{const n=s.devicePixelRatio%1!=0?1:0,i={w:y(e.w-t.w),h:y(e.h-t.h)};return{w:i.w>n?i.w:0,h:i.h>n?i.h:0}},[P,x]=a(v,oe(nt,l)),[A,k]=a(v,oe(tt,l)),[L,T]=a(v),[I]=a(w),[R,N]=a(v),[C]=a(w),[M]=a({i:(e,t)=>ne(e,t,_),o:{}},(()=>(e=>!!e&&(e=>!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length))(e))(l)?Ze(l,_):{})),[D,O]=a({i:(e,t)=>re(e.D,t.D)&&re(e.T,t.T),o:{D:{x:0,y:0},T:{x:0,y:0}}},(()=>{E(!0);const e=pt(d),t=g("noContent",!0),n=ot(c,te,(t=>{const n=pt(d);t.isTrusted&&n.x===e.x&&n.y===e.y&&lt(t)}),{I:!0,A:!0});dt(d,{x:0,y:0}),t();const i=pt(d),r=tt(d);dt(d,{x:r.w,y:r.h});const a=pt(d);dt(d,{x:a.x-i.x<1&&-r.w,y:a.y-i.y<1&&-r.h});const s=pt(d);return dt(d,e),h((()=>n())),{D:i,T:s}})),F=bn(En),B=(e,t)=>`${t?Nt:Ct}${(e=>{const t=String(e||"");return t?t[0].toUpperCase()+t.slice(1):""})(e)}`,$=e=>{const t=e=>[J,ee,te].map((t=>B(t,e))),n=t(!0).concat(t()).join(" ");g(n),g(de(e).map((t=>B(e[t],"x"===t))).join(" "),!0)};return({It:a,Zt:s,_n:o,Dt:u},{fn:c})=>{const{ft:d,Ht:p,Ct:h,dt:_,zt:v}=s||{},w=F&&F.tt(e,t,o,n,a),{it:B,ut:V,_t:U}=w||{},[z,H]=_n(a,n),[j,G]=a("overflow"),W=vn(j.x),Z=vn(j.y);let q=x(u),X=k(u),K=T(u),Y=N(u);H&&m&&g(Ot,!z);{xe(i,It,Lt)&&E(!0);const[e]=V?V():[],[t]=q=P(u),[n]=X=A(u),r=et(l),a=b&&Qe(f()),s={w:y(n.w+t.w),h:y(n.h+t.h)},o={w:y((a?a.w:r.w+y(r.w-n.w))+t.w),h:y((a?a.h:r.h+y(r.h-n.h))+t.h)};e&&e(),Y=R(o),K=L(S(s,o),u)}const[Q,J]=Y,[ee,te]=K,[ne,ie]=X,[re,ae]=q,[se,oe]=I({x:ee.w>0,y:ee.h>0}),le=W&&Z&&(se.x||se.y)||W&&se.x&&!se.y||Z&&se.y&&!se.x,ue=c||h||v||ae||ie||J||te||G||H||!0,ce=wn(se,j),[de,he]=C(ce.K),[,ge]=M(u),fe=h||_||ge||oe||u,[me,be]=fe?D(u):O();return ue&&(he&&$(ce.K),U&&B&&We(l,U(ce,o,B(ce,ne,re)))),E(!1),Pe(i,It,Lt,le),Pe(r,Ft,Lt,le),pe(t,{K:de,Vt:{x:Q.w,y:Q.h},Rt:{x:ee.w,y:ee.h},rn:se,Lt:ht(me,ee)}),{en:he,nn:J,sn:te,cn:be||te,pn:fe}}},Cn=e=>{const[t,n,i]=Tn(e),r={ln:{t:0,r:0,b:0,l:0},dn:!1,rt:{[Z]:0,[q]:0,[W]:0,[z]:0,[H]:0,[G]:0,[j]:0},Vt:{x:0,y:0},Rt:{x:0,y:0},K:{x:ee,y:ee},rn:{x:!1,y:!1},Lt:{D:{x:0,y:0},T:{x:0,y:0}}},{vt:a,ht:s,nt:o,Ot:l}=t,{R:u,M:c}=on(),d=!u&&(c.x||c.y),p=[In(t),Rn(t,r),Nn(t,r)];return[n,e=>{const t={},n=d&&pt(s),i=n&&l();return C(p,(n=>{pe(t,n(e,t)||{})})),dt(s,n),i&&i(),!o&&dt(a,0),t},r,t,i]},Mn=(e,t,n,i,r)=>{let a=!1;const s=St(t,{}),[o,l,u,c,d]=Cn(e),[p,h,g]=An(c,u,s,(e=>{_({},e)})),[f,m,,b]=((e,t,n,i,r,a)=>{let s,o,l,u,c,d=se,p=0;const h=e=>"mouse"===e.pointerType,[g,f]=le(),[m,b]=le(100),[y,_]=le(100),[v,w]=le((()=>p)),[E,S]=kn(e,r,i,Ln(t,r,i,(e=>h(e)&&C()))),{gt:P,Qt:x,wt:A}=r,{jt:k,Nt:L,qt:T,Bt:I,Ft:R}=E,N=(e,t)=>{if(w(),e)k(Jt);else{const e=oe(k,Jt,!0);p>0&&!t?v(e):e()}},C=()=>{(l?s:u)||(N(!0),m((()=>{N(!1)})))},M=e=>{k(Qt,e,!0),k(Qt,e,!1)},D=e=>{h(e)&&(s=l,l&&N(!0))},F=[w,b,_,f,()=>d(),ot(P,"pointerover",D,{A:!0}),ot(P,"pointerenter",D),ot(P,"pointerleave",(e=>{h(e)&&(s=!1,l&&N(!1))})),ot(P,"pointermove",(e=>{h(e)&&o&&C()})),ot(x,"scroll",(e=>{g((()=>{T(),C()})),a(e),R()}))];return[()=>oe(U,O(F,S())),({It:e,Dt:t,Zt:r,tn:a})=>{const{nn:s,sn:h,en:g,cn:f}=a||{},{Ct:m,dt:b}=r||{},{ct:_}=n,{M:v}=on(),{K:w,rn:E}=i,[S,P]=e("showNativeOverlaidScrollbars"),[C,D]=e("scrollbars.theme"),[O,F]=e("scrollbars.visibility"),[B,$]=e("scrollbars.autoHide"),[V,U]=e("scrollbars.autoHideSuspend"),[z]=e("scrollbars.autoHideDelay"),[H,j]=e("scrollbars.dragScroll"),[G,W]=e("scrollbars.clickScroll"),[Z,q]=e("overflow"),X=b&&!t,K=E.x||E.y,Y=s||h||f||m||t,Q=g||F||q,ee=S&&v.x&&v.y,ne=(e,t,n)=>{const i=e.includes(te)&&(O===J||"auto"===O&&t===te);return k(qt,i,n),i};if(p=z,X&&(V&&K?(M(!1),d(),y((()=>{d=ot(x,"scroll",oe(M,!0),{A:!0})}))):M(!0)),P&&k("os-theme-none",ee),D&&(k(c),k(C,!0),c=C),U&&!V&&M(!0),$&&(o="move"===B,l="leave"===B,u="never"===B,N(u,!0)),j&&k(nn,H),W&&k(tn,G),Q){const e=ne(Z.x,w.x,!0),t=ne(Z.y,w.y,!1);k(Xt,!(e&&t))}Y&&(T(),L(),R(),f&&I(),k(Yt,!E.x,!0),k(Yt,!E.y,!1),k(Ht,_&&!A))},{},E]})(e,t,g,u,c,r),y=e=>de(e).some((t=>!!e[t])),_=(e,r)=>{if(n())return!1;const{vn:s,Dt:o,At:u,gn:c}=e,d=s||{},p=!!o||!a,f={It:St(t,d,p),vn:d,Dt:p};if(c)return m(f),!1;const b=r||h(pe({},f,{At:u})),_=l(pe({},f,{_n:g,Zt:b}));m(pe({},f,{Zt:b,tn:_}));const v=y(b),w=y(_),E=v||w||!ge(d)||p;return a=!0,E&&i(e,{Zt:b,tn:_}),E};return[()=>{const{an:e,ht:t,Ot:n}=c,i=pt(e),r=[p(),o(),f()],a=n();return dt(t,i),a(),oe(U,r)},_,()=>({hn:g,bn:u}),{wn:c,yn:b},d]},Dn=(e,t,n)=>{const{N:i}=on(),r=R(e),a=r?e:e.target,s=pn(a);if(t&&!s){let s=!1;const o=[],l={},u=e=>{const t=he(e,!0),n=bn("__osOptionsValidationPlugin");return n?n(t,!0):t},c=pe({},i(),u(t)),[d,p,h]=yt(),[g,f,m]=yt(n),b=(e,t)=>{m(e,t),h(e,t)},[y,_,v,S,P]=Mn(e,c,(()=>s),(({vn:e,Dt:t},{Zt:n,tn:i})=>{const{ft:r,Ct:a,xt:s,Ht:o,Et:l,dt:u}=n,{nn:c,sn:d,en:p,cn:h}=i;b("updated",[A,{updateHints:{sizeChanged:!!r,directionChanged:!!a,heightIntrinsicChanged:!!s,overflowEdgeChanged:!!c,overflowAmountChanged:!!d,overflowStyleChanged:!!p,scrollCoordinatesChanged:!!h,contentMutation:!!o,hostMutation:!!l,appear:!!u},changedOptions:e||{},force:!!t}])}),(e=>b("scroll",[A,e]))),x=e=>{(e=>{dn.delete(e)})(a),U(o),s=!0,b("destroyed",[A,e]),p(),f()},A={options(e,t){if(e){const n=t?i():{},r=Et(c,pe(n,u(e)));ge(r)||(pe(c,r),_({vn:r}))}return pe({},c)},on:g,off:(e,t)=>{e&&t&&f(e,t)},state(){const{hn:e,bn:t}=v(),{ct:n}=e,{Vt:i,Rt:r,K:a,rn:o,ln:l,dn:u,Lt:c}=t;return pe({},{overflowEdge:i,overflowAmount:r,overflowStyle:a,hasOverflow:o,scrollCoordinates:{start:c.D,end:c.T},padding:l,paddingAbsolute:u,directionRTL:n,destroyed:s})},elements(){const{vt:e,gt:t,ln:n,ot:i,bt:r,ht:a,Qt:s}=S.wn,{Xt:o,Gt:l}=S.yn,u=e=>{const{Pt:t,Ut:n,kt:i}=e;return{scrollbar:i,track:n,handle:t}},c=e=>{const{Yt:t,Wt:n}=e,i=u(t[0]);return pe({},i,{clone:()=>{const e=u(n());return _({gn:!0}),e}})};return pe({},{target:e,host:t,padding:n||i,viewport:i,content:r||i,scrollOffsetElement:a,scrollEventElement:s,scrollbarHorizontal:c(o),scrollbarVertical:c(l)})},update:e=>_({Dt:e,At:!0}),destroy:oe(x,!1),plugin:e=>l[de(e)[0]]};return O(o,[P]),((e,t)=>{dn.set(e,t)})(a,A),mn(gn,Dn,[A,d,l]),((e,t)=>{const{nativeScrollbarsOverlaid:n,body:i}=t||{},{M:r,R:a,U:s}=on(),{nativeScrollbarsOverlaid:o,body:l}=s().cancel,u=null!=n?n:o,c=w(i)?l:i,d=(r.x||r.y)&&u,p=e&&(E(c)?!a:c);return!!d||!!p})(S.wn.wt,!r&&e.cancel)?(x(!0),A):(O(o,y()),b("initialized",[A]),A.update(),A)}return s};Dn.plugin=e=>{const t=k(e),n=t?e:[e],i=n.map((e=>mn(e,Dn)[0]));return(e=>{C(e,(e=>C(e,((t,n)=>{gn[n]=e[n]}))))})(n),t?i:i[0]},Dn.valid=e=>{const t=e&&e.elements,n=A(t)&&t();return I(n)&&!!pn(n.target)},Dn.env=()=>{const{k:e,M:t,R:n,V:i,B:r,F:a,U:s,P:o,N:l,q:u}=on();return pe({},{scrollbarsSize:e,scrollbarsOverlaid:t,scrollbarsHiding:n,scrollTimeline:i,staticDefaultInitialization:r,staticDefaultOptions:a,getDefaultInitialization:s,setDefaultInitialization:o,getDefaultOptions:l,setDefaultOptions:u})},Dn.nonce=e=>{rn=e};const On=e=>{let t,n,a,s=null;const o=(0,i.IJ)(e||{}),[l,u]=(()=>{if(typeof window>"u"){const e=()=>{};return[e,e]}let e,t;const n=window,i="function"==typeof n.requestIdleCallback,r=n.requestAnimationFrame,a=n.cancelAnimationFrame,s=i?n.requestIdleCallback:r,o=i?n.cancelIdleCallback:a,l=()=>{o(e),a(t)};return[(n,a)=>{l(),e=s(i?()=>{l(),t=r(n)}:n,"object"==typeof a?a:{timeout:2233})},l]})();return(0,r.wB)((()=>{var e;return(0,i.R1)(null==(e=o.value)?void 0:e.defer)}),(e=>{a=e}),{deep:!0,immediate:!0}),(0,r.wB)((()=>{var e;return(0,i.R1)(null==(e=o.value)?void 0:e.options)}),(e=>{t=e,Dn.valid(s)&&s.options(t||{},!0)}),{deep:!0,immediate:!0}),(0,r.wB)((()=>{var e;return(0,i.R1)(null==(e=o.value)?void 0:e.events)}),(e=>{n=e,Dn.valid(s)&&s.on(n||{},!0)}),{deep:!0,immediate:!0}),(0,r.hi)((()=>{u(),null==s||s.destroy()})),[e=>{if(Dn.valid(s))return s;const i=()=>s=Dn(e,t||{},n||{});a?l(i,a):i()},()=>s]},Fn=(0,r.pM)({__name:"OverlayScrollbarsComponent",props:{element:{type:[String,Object],default:"div"},options:{type:Object},events:{type:Object},defer:{type:[Boolean,Object]}},emits:["osInitialized","osUpdated","osDestroyed","osScroll"],setup(e,{expose:t,emit:n}){const a=e,s={initialized:"osInitialized",updated:"osUpdated",destroyed:"osDestroyed",scroll:"osScroll"},{element:o,options:l,events:u,defer:c}=(0,i.QW)(a),d=(0,i.IJ)(null),p=(0,i.IJ)(null),h=(0,i.KR)(),[g,f]=On({options:l,events:h,defer:c});return t({osInstance:f,getElement:()=>d.value}),(0,r.p9)((e=>{const{value:t}=d,{value:n}=p;t&&(g("body"===o.value?{target:t,cancel:{body:null}}:{target:t,elements:{viewport:n,content:n}}),e((()=>{var e;return null==(e=f())?void 0:e.destroy()})))})),(0,r.wB)((()=>(0,i.R1)(u)),(e=>{const t=e||{};h.value=Object.keys(s).reduce(((e,i)=>{const r=t[i];return e[i]=[(...e)=>n(s[i],...e),...(Array.isArray(r)?r:[r]).filter(Boolean)],e}),{})}),{deep:!0,immediate:!0}),(e,t)=>((0,r.uX)(),(0,r.Wv)((0,r.$y)((0,i.R1)(o)),{"data-overlayscrollbars-initialize":"",ref_key:"elementRef",ref:d},{default:(0,r.k6)((()=>["body"===(0,i.R1)(o)?(0,r.RG)(e.$slots,"default",{key:0}):((0,r.uX)(),(0,r.CE)("div",{key:1,"data-overlayscrollbars-contents":"",ref_key:"slotRef",ref:p},[(0,r.RG)(e.$slots,"default")],512))])),_:3},512))}})}}]);