oceanpress 1.0.11 → 1.0.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,2030 +0,0 @@
1
- import{A as Gi,r as Me,a as Hc,w as rs,c as Fe,g as ig,o as To,b as gi,d as ag,e as cs,f as aA,h as oA,C as cA,i as mt,j as R,T as lA,t as on,k as uA,u as dA,F as fa,l as og,m as $t,n as cg,p as Fx,q as lg,s as os,v as oi,x as fA,y as Ef,z as hA,B as mA,D as bA,E as j,G as ce,H as J,I as rc,N as uh,J as dh,K as Gs,L as ug,M as ps,O as oe,P as Er,Q as Vs,R as nn,S as Cf,U as ys,V as xf,W as dg,X as zx,Y as Qi,Z as ai,_ as jr,$ as Ge,a0 as Ux,a1 as $x,a2 as fg,a3 as Hx,a4 as qx,a5 as hg,a6 as gA,a7 as fu,a8 as vf,a9 as fh,aa as jx,ab as va,ac as mg,ad as bg,ae as gg,af as _f,ag as pA,ah as Wx,ai as vy,aj as yA,ak as EA,al as CA,am as xA,an as vA,ao as qc,ap as Sf,aq as Qr,ar as kd,as as hu,at as Gx,au as ec,av as Tf,aw as Rm,ax as Vx,ay as jh,az as _A,aA as _y,aB as nt,aC as Ne,aD as $o,aE as SA,aF as TA,aG as wA,aH as Kx,aI as AA}from"./index-SyBTrsYP.js";function pg(e){return`data/${e.box}${e.path}`}const Wh=new Map,Sy=new Map,yg=new Map,Bm=new Map;async function Eg(e){if(Wh.has(e))return Wh.get(e);const t=await Gi.query_sql({stmt:e});return Wh.set(e,t),t}async function kA(e){{const r=Sy.get(e);if(r)return r}const t=(await Eg(`SELECT * FROM blocks WHERE hpath = '${e}'`))[0];if(t===void 0)throw new Error(`not doc by:${e}`);const n=await Yx(pg(t));return Sy.set(e,n),n}async function Yx(e){const t=Jx(await Gi.file_getFile({path:e}));return Zx(t),t}async function Pm(e){{const n=Bm.get(e);if(n)return n}const t=await Eg(`
2
- SELECT * from blocks
3
- WHERE id = '${e}'
4
- `);if(t.length!==0)return Bm.set(e,t[0]),t[0]}async function Xx(e){if(e===void 0)return;{const r=yg.get(e);if(r)return r}const t=await Nm(e);if(t===void 0)return;return n(t);function n(r){if(r.ID===e)return r;if(r.Children)return r.Children.find(s=>n(s))}}async function Qx(e){const t=await Eg(`
5
- SELECT * from blocks
6
- WHERE box = '${e}'
7
- AND type = 'd'
8
- limit 150000 OFFSET 0
9
- `);return t.forEach(n=>Bm.set(n.id,n)),t}async function Nm(e){{const n=yg.get(e);if(n){let r=n;for(;;){if(r.Type==="NodeDocument")return r;if(r===void 0)break;r=r.Parent}}}const t=await Pm(e);if(t!==void 0)return await kA(t.hpath)}function Zx(e){e.ID&&yg.set(e.ID,e),e.Children&&e.Children.forEach(Zx)}function Jx(e){for(const t of e?.Children??[])t.Parent=e,Jx(t);return e}const ev={getDocByChildID:async e=>await Nm(e),getDocPathBySY:async e=>{if(e?.ID){const t=await Pm(e.ID);if(t)return pg(t)}},getHPathByID_Node:async e=>{const t=typeof e=="string"?e:e.ID;if(t===void 0)throw new Error("id is undefined");if(await Nm(t)===void 0)throw new Error("docNode is undefined");const r=await Pm(t);if(r===void 0)throw new Error("docBlock is undefined");return r.hpath},getNodeByID:async e=>{if(e===void 0)return;const t=await ev.getDocByChildID(e);if(t===void 0)return;return n(t);function n(r){if(r.ID===e)return r;if(r.Children!==void 0)for(const s of r.Children){const i=n(s);if(i)return i}}},log(e){console.log(e)},percentage:e=>{console.log(e)}};function IA(e,t){return localStorage.setItem(e,t)}function RA(e){return localStorage.getItem(e)??void 0}const tv={setItem:IA,getItem:RA};function Ty(e,t){let{target:n}=e;for(;n;){if(n.dataset&&n.dataset[t]!==void 0)return!0;n=n.parentElement}return!1}function Cg(e){return e.composedPath()[0]||null}function mu(e){return typeof e=="string"?e.endsWith("px")?Number(e.slice(0,e.length-2)):Number(e):e}function ks(e,t){const n=e.trim().split(/\s+/g),r={top:n[0]};switch(n.length){case 1:r.right=n[0],r.bottom=n[0],r.left=n[0];break;case 2:r.right=n[1],r.left=n[1],r.bottom=n[0];break;case 3:r.right=n[1],r.bottom=n[2],r.left=n[1];break;case 4:r.right=n[1],r.bottom=n[2],r.left=n[3];break;default:throw new Error("[seemly/getMargin]:"+e+" is not a valid value.")}return t===void 0?r:r[t]}function BA(e,t){const[n,r]=e.split(" ");return{row:n,col:r||n}}function Id(e){return e.composedPath()[0]}const PA={mousemoveoutside:new WeakMap,clickoutside:new WeakMap};function NA(e,t,n){if(e==="mousemoveoutside"){const r=s=>{t.contains(Id(s))||n(s)};return{mousemove:r,touchstart:r}}else if(e==="clickoutside"){let r=!1;const s=a=>{r=!t.contains(Id(a))},i=a=>{r&&(t.contains(Id(a))||n(a))};return{mousedown:s,mouseup:i,touchstart:s,touchend:i}}return console.error(`[evtd/create-trap-handler]: name \`${e}\` is invalid. This could be a bug of evtd.`),{}}function nv(e,t,n){const r=PA[e];let s=r.get(t);s===void 0&&r.set(t,s=new WeakMap);let i=s.get(n);return i===void 0&&s.set(n,i=NA(e,t,n)),i}function OA(e,t,n,r){if(e==="mousemoveoutside"||e==="clickoutside"){const s=nv(e,t,n);return Object.keys(s).forEach(i=>{Yn(i,document,s[i],r)}),!0}return!1}function DA(e,t,n,r){if(e==="mousemoveoutside"||e==="clickoutside"){const s=nv(e,t,n);return Object.keys(s).forEach(i=>{mr(i,document,s[i],r)}),!0}return!1}function LA(){if(typeof window>"u")return{on:()=>{},off:()=>{}};const e=new WeakMap,t=new WeakMap;function n(){e.set(this,!0)}function r(){e.set(this,!0),t.set(this,!0)}function s(v,O,z){const Q=v[O];return v[O]=function(){return z.apply(v,arguments),Q.apply(v,arguments)},v}function i(v,O){v[O]=Event.prototype[O]}const a=new WeakMap,o=Object.getOwnPropertyDescriptor(Event.prototype,"currentTarget");function c(){var v;return(v=a.get(this))!==null&&v!==void 0?v:null}function l(v,O){o!==void 0&&Object.defineProperty(v,"currentTarget",{configurable:!0,enumerable:!0,get:O??o.get})}const d={bubble:{},capture:{}},f={};function m(){const v=function(O){const{type:z,eventPhase:Q,bubbles:be}=O,N=Id(O);if(Q===2)return;const Y=Q===1?"capture":"bubble";let x=N;const Z=[];for(;x===null&&(x=window),Z.push(x),x!==window;)x=x.parentNode||null;const Le=d.capture[z],re=d.bubble[z];if(s(O,"stopPropagation",n),s(O,"stopImmediatePropagation",r),l(O,c),Y==="capture"){if(Le===void 0)return;for(let He=Z.length-1;He>=0&&!e.has(O);--He){const he=Z[He],ze=Le.get(he);if(ze!==void 0){a.set(O,he);for(const X of ze){if(t.has(O))break;X(O)}}if(He===0&&!be&&re!==void 0){const X=re.get(he);if(X!==void 0)for(const K of X){if(t.has(O))break;K(O)}}}}else if(Y==="bubble"){if(re===void 0)return;for(let He=0;He<Z.length&&!e.has(O);++He){const he=Z[He],ze=re.get(he);if(ze!==void 0){a.set(O,he);for(const X of ze){if(t.has(O))break;X(O)}}}}i(O,"stopPropagation"),i(O,"stopImmediatePropagation"),l(O)};return v.displayName="evtdUnifiedHandler",v}function h(){const v=function(O){const{type:z,eventPhase:Q}=O;if(Q!==2)return;const be=f[z];be!==void 0&&be.forEach(N=>N(O))};return v.displayName="evtdUnifiedWindowEventHandler",v}const b=m(),g=h();function y(v,O){const z=d[v];return z[O]===void 0&&(z[O]=new Map,window.addEventListener(O,b,v==="capture")),z[O]}function p(v){return f[v]===void 0&&(f[v]=new Set,window.addEventListener(v,g)),f[v]}function C(v,O){let z=v.get(O);return z===void 0&&v.set(O,z=new Set),z}function w(v,O,z,Q){const be=d[O][z];if(be!==void 0){const N=be.get(v);if(N!==void 0&&N.has(Q))return!0}return!1}function _(v,O){const z=f[v];return!!(z!==void 0&&z.has(O))}function S(v,O,z,Q){let be;if(typeof Q=="object"&&Q.once===!0?be=Le=>{A(v,O,be,Q),z(Le)}:be=z,OA(v,O,be,Q))return;const Y=Q===!0||typeof Q=="object"&&Q.capture===!0?"capture":"bubble",x=y(Y,v),Z=C(x,O);if(Z.has(be)||Z.add(be),O===window){const Le=p(v);Le.has(be)||Le.add(be)}}function A(v,O,z,Q){if(DA(v,O,z,Q))return;const N=Q===!0||typeof Q=="object"&&Q.capture===!0,Y=N?"capture":"bubble",x=y(Y,v),Z=C(x,O);if(O===window&&!w(O,N?"bubble":"capture",v,z)&&_(v,z)){const re=f[v];re.delete(z),re.size===0&&(window.removeEventListener(v,g),f[v]=void 0)}Z.has(z)&&Z.delete(z),Z.size===0&&x.delete(O),x.size===0&&(window.removeEventListener(v,b,Y==="capture"),d[Y][v]=void 0)}return{on:S,off:A}}const{on:Yn,off:mr}=LA();function rv(e){const t=Me(!!e.value);if(t.value)return Hc(t);const n=rs(e,r=>{r&&(t.value=!0,n())});return Hc(t)}function go(e){const t=Fe(e),n=Me(t.value);return rs(t,r=>{n.value=r}),typeof e=="function"?n:{__v_isRef:!0,get value(){return n.value},set value(r){e.set(r)}}}function sv(){return ig()!==null}const xg=typeof window<"u";let sc,Kl;const MA=()=>{var e,t;sc=xg?(t=(e=document)===null||e===void 0?void 0:e.fonts)===null||t===void 0?void 0:t.ready:void 0,Kl=!1,sc!==void 0?sc.then(()=>{Kl=!0}):Kl=!0};MA();function FA(e){if(Kl)return;let t=!1;To(()=>{Kl||sc?.then(()=>{t||e()})}),gi(()=>{t=!0})}const Wl=Me(null);function wy(e){if(e.clientX>0||e.clientY>0)Wl.value={x:e.clientX,y:e.clientY};else{const{target:t}=e;if(t instanceof Element){const{left:n,top:r,width:s,height:i}=t.getBoundingClientRect();n>0||r>0?Wl.value={x:n+s/2,y:r+i/2}:Wl.value={x:0,y:0}}else Wl.value=null}}let ed=0,Ay=!0;function zA(){if(!xg)return Hc(Me(null));ed===0&&Yn("click",document,wy,!0);const e=()=>{ed+=1};return Ay&&(Ay=sv())?(ag(e),gi(()=>{ed-=1,ed===0&&mr("click",document,wy,!0)})):e(),Hc(Wl)}const UA=Me(void 0);let td=0;function ky(){UA.value=Date.now()}let Iy=!0;function $A(e){if(!xg)return Hc(Me(!1));const t=Me(!1);let n=null;function r(){n!==null&&window.clearTimeout(n)}function s(){r(),t.value=!0,n=window.setTimeout(()=>{t.value=!1},e)}td===0&&Yn("click",window,ky,!0);const i=()=>{td+=1,Yn("click",window,s,!0)};return Iy&&(Iy=sv())?(ag(i),gi(()=>{td-=1,td===0&&mr("click",window,ky,!0),mr("click",window,s,!0),r()})):i(),Hc(t)}function tl(e,t){return rs(e,n=>{n!==void 0&&(t.value=n)}),Fe(()=>e.value===void 0?t.value:e.value)}function Ry(e,t){return Fe(()=>{for(const n of t)if(e[n]!==void 0)return e[n];return e[t[t.length-1]]})}const HA=(typeof window>"u"?!1:/iPad|iPhone|iPod/.test(navigator.platform)||navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1)&&!window.MSStream;function qA(){return HA}const jA=cs("n-drawer-body"),WA=cs("n-modal-body"),GA=cs("n-modal-provider"),iv=cs("n-modal"),VA=cs("n-popover-body"),nl=typeof document<"u"&&typeof window<"u",vg=Me(!1);function By(){vg.value=!0}function Py(){vg.value=!1}let Dl=0;function KA(){return nl&&(ag(()=>{Dl||(window.addEventListener("compositionstart",By),window.addEventListener("compositionend",Py)),Dl++}),gi(()=>{Dl<=1?(window.removeEventListener("compositionstart",By),window.removeEventListener("compositionend",Py),Dl=0):Dl--})),vg}let Ho=0,Ny="",Oy="",Dy="",Ly="";const My=Me("0px");function YA(e){if(typeof document>"u")return;const t=document.documentElement;let n,r=!1;const s=()=>{t.style.marginRight=Ny,t.style.overflow=Oy,t.style.overflowX=Dy,t.style.overflowY=Ly,My.value="0px"};To(()=>{n=rs(e,i=>{if(i){if(!Ho){const a=window.innerWidth-t.offsetWidth;a>0&&(Ny=t.style.marginRight,t.style.marginRight=`${a}px`,My.value=`${a}px`),Oy=t.style.overflow,Dy=t.style.overflowX,Ly=t.style.overflowY,t.style.overflow="hidden",t.style.overflowX="hidden",t.style.overflowY="hidden"}r=!0,Ho++}else Ho--,Ho||s(),r=!1},{immediate:!0})}),gi(()=>{n?.(),r&&(Ho--,Ho||s(),r=!1)})}function XA(e){const t={isDeactivated:!1};let n=!1;return aA(()=>{if(t.isDeactivated=!1,!n){n=!0;return}e()}),oA(()=>{t.isDeactivated=!0,n||(n=!0)}),t}function Fy(e,t,n="default"){const r=t[n];if(r===void 0)throw new Error(`[vueuc/${e}]: slot[${n}] is empty.`);return r()}const qo="@@coContext",QA={mounted(e,{value:t,modifiers:n}){e[qo]={handler:void 0},typeof t=="function"&&(e[qo].handler=t,Yn("clickoutside",e,t,{capture:n.capture}))},updated(e,{value:t,modifiers:n}){const r=e[qo];typeof t=="function"?r.handler?r.handler!==t&&(mr("clickoutside",e,r.handler,{capture:n.capture}),r.handler=t,Yn("clickoutside",e,t,{capture:n.capture})):(e[qo].handler=t,Yn("clickoutside",e,t,{capture:n.capture})):r.handler&&(mr("clickoutside",e,r.handler,{capture:n.capture}),r.handler=void 0)},unmounted(e,{modifiers:t}){const{handler:n}=e[qo];n&&mr("clickoutside",e,n,{capture:t.capture}),e[qo].handler=void 0}};function ZA(e,t){console.error(`[vdirs/${e}]: ${t}`)}class JA{constructor(){this.elementZIndex=new Map,this.nextZIndex=2e3}get elementCount(){return this.elementZIndex.size}ensureZIndex(t,n){const{elementZIndex:r}=this;if(n!==void 0){t.style.zIndex=`${n}`,r.delete(t);return}const{nextZIndex:s}=this;r.has(t)&&r.get(t)+1===this.nextZIndex||(t.style.zIndex=`${s}`,r.set(t,s),this.nextZIndex=s+1,this.squashState())}unregister(t,n){const{elementZIndex:r}=this;r.has(t)?r.delete(t):n===void 0&&ZA("z-index-manager/unregister-element","Element not found when unregistering."),this.squashState()}squashState(){const{elementCount:t}=this;t||(this.nextZIndex=2e3),this.nextZIndex-t>2500&&this.rearrange()}rearrange(){const t=Array.from(this.elementZIndex.entries());t.sort((n,r)=>n[1]-r[1]),this.nextZIndex=2e3,t.forEach(n=>{const r=n[0],s=this.nextZIndex++;`${s}`!==r.style.zIndex&&(r.style.zIndex=`${s}`)})}}const Gh=new JA,jo="@@ziContext",e3={mounted(e,t){const{value:n={}}=t,{zIndex:r,enabled:s}=n;e[jo]={enabled:!!s,initialized:!1},s&&(Gh.ensureZIndex(e,r),e[jo].initialized=!0)},updated(e,t){const{value:n={}}=t,{zIndex:r,enabled:s}=n,i=e[jo].enabled;s&&!i&&(Gh.ensureZIndex(e,r),e[jo].initialized=!0),e[jo].enabled=!!s},unmounted(e,t){if(!e[jo].initialized)return;const{value:n={}}=t,{zIndex:r}=n;Gh.unregister(e,r)}};function zy(e,t){console.error(`[vueuc/${e}]: ${t}`)}const{c:Uy}=cA(),t3="vueuc-style";function $y(e){return typeof e=="string"?document.querySelector(e):e()}const n3=mt({name:"LazyTeleport",props:{to:{type:[String,Object],default:void 0},disabled:Boolean,show:{type:Boolean,required:!0}},setup(e){return{showTeleport:rv(on(e,"show")),mergedTo:Fe(()=>{const{to:t}=e;return t??"body"})}},render(){return this.showTeleport?this.disabled?Fy("lazy-teleport",this.$slots):R(lA,{disabled:this.disabled,to:this.mergedTo},Fy("lazy-teleport",this.$slots)):null}});var Ma=[],r3=function(){return Ma.some(function(e){return e.activeTargets.length>0})},s3=function(){return Ma.some(function(e){return e.skippedTargets.length>0})},Hy="ResizeObserver loop completed with undelivered notifications.",i3=function(){var e;typeof ErrorEvent=="function"?e=new ErrorEvent("error",{message:Hy}):(e=document.createEvent("Event"),e.initEvent("error",!1,!1),e.message=Hy),window.dispatchEvent(e)},bu;(function(e){e.BORDER_BOX="border-box",e.CONTENT_BOX="content-box",e.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"})(bu||(bu={}));var Fa=function(e){return Object.freeze(e)},a3=function(){function e(t,n){this.inlineSize=t,this.blockSize=n,Fa(this)}return e}(),av=function(){function e(t,n,r,s){return this.x=t,this.y=n,this.width=r,this.height=s,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,Fa(this)}return e.prototype.toJSON=function(){var t=this,n=t.x,r=t.y,s=t.top,i=t.right,a=t.bottom,o=t.left,c=t.width,l=t.height;return{x:n,y:r,top:s,right:i,bottom:a,left:o,width:c,height:l}},e.fromRect=function(t){return new e(t.x,t.y,t.width,t.height)},e}(),_g=function(e){return e instanceof SVGElement&&"getBBox"in e},ov=function(e){if(_g(e)){var t=e.getBBox(),n=t.width,r=t.height;return!n&&!r}var s=e,i=s.offsetWidth,a=s.offsetHeight;return!(i||a||e.getClientRects().length)},qy=function(e){var t;if(e instanceof Element)return!0;var n=(t=e?.ownerDocument)===null||t===void 0?void 0:t.defaultView;return!!(n&&e instanceof n.Element)},o3=function(e){switch(e.tagName){case"INPUT":if(e.type!=="image")break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1},Yl=typeof window<"u"?window:{},nd=new WeakMap,jy=/auto|scroll/,c3=/^tb|vertical/,l3=/msie|trident/i.test(Yl.navigator&&Yl.navigator.userAgent),Zs=function(e){return parseFloat(e||"0")},ic=function(e,t,n){return e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=!1),new a3((n?t:e)||0,(n?e:t)||0)},Wy=Fa({devicePixelContentBoxSize:ic(),borderBoxSize:ic(),contentBoxSize:ic(),contentRect:new av(0,0,0,0)}),cv=function(e,t){if(t===void 0&&(t=!1),nd.has(e)&&!t)return nd.get(e);if(ov(e))return nd.set(e,Wy),Wy;var n=getComputedStyle(e),r=_g(e)&&e.ownerSVGElement&&e.getBBox(),s=!l3&&n.boxSizing==="border-box",i=c3.test(n.writingMode||""),a=!r&&jy.test(n.overflowY||""),o=!r&&jy.test(n.overflowX||""),c=r?0:Zs(n.paddingTop),l=r?0:Zs(n.paddingRight),d=r?0:Zs(n.paddingBottom),f=r?0:Zs(n.paddingLeft),m=r?0:Zs(n.borderTopWidth),h=r?0:Zs(n.borderRightWidth),b=r?0:Zs(n.borderBottomWidth),g=r?0:Zs(n.borderLeftWidth),y=f+l,p=c+d,C=g+h,w=m+b,_=o?e.offsetHeight-w-e.clientHeight:0,S=a?e.offsetWidth-C-e.clientWidth:0,A=s?y+C:0,v=s?p+w:0,O=r?r.width:Zs(n.width)-A-S,z=r?r.height:Zs(n.height)-v-_,Q=O+y+S+C,be=z+p+_+w,N=Fa({devicePixelContentBoxSize:ic(Math.round(O*devicePixelRatio),Math.round(z*devicePixelRatio),i),borderBoxSize:ic(Q,be,i),contentBoxSize:ic(O,z,i),contentRect:new av(f,c,O,z)});return nd.set(e,N),N},lv=function(e,t,n){var r=cv(e,n),s=r.borderBoxSize,i=r.contentBoxSize,a=r.devicePixelContentBoxSize;switch(t){case bu.DEVICE_PIXEL_CONTENT_BOX:return a;case bu.BORDER_BOX:return s;default:return i}},u3=function(){function e(t){var n=cv(t);this.target=t,this.contentRect=n.contentRect,this.borderBoxSize=Fa([n.borderBoxSize]),this.contentBoxSize=Fa([n.contentBoxSize]),this.devicePixelContentBoxSize=Fa([n.devicePixelContentBoxSize])}return e}(),uv=function(e){if(ov(e))return 1/0;for(var t=0,n=e.parentNode;n;)t+=1,n=n.parentNode;return t},d3=function(){var e=1/0,t=[];Ma.forEach(function(a){if(a.activeTargets.length!==0){var o=[];a.activeTargets.forEach(function(l){var d=new u3(l.target),f=uv(l.target);o.push(d),l.lastReportedSize=lv(l.target,l.observedBox),f<e&&(e=f)}),t.push(function(){a.callback.call(a.observer,o,a.observer)}),a.activeTargets.splice(0,a.activeTargets.length)}});for(var n=0,r=t;n<r.length;n++){var s=r[n];s()}return e},Gy=function(e){Ma.forEach(function(n){n.activeTargets.splice(0,n.activeTargets.length),n.skippedTargets.splice(0,n.skippedTargets.length),n.observationTargets.forEach(function(s){s.isActive()&&(uv(s.target)>e?n.activeTargets.push(s):n.skippedTargets.push(s))})})},f3=function(){var e=0;for(Gy(e);r3();)e=d3(),Gy(e);return s3()&&i3(),e>0},Vh,dv=[],h3=function(){return dv.splice(0).forEach(function(e){return e()})},m3=function(e){if(!Vh){var t=0,n=document.createTextNode(""),r={characterData:!0};new MutationObserver(function(){return h3()}).observe(n,r),Vh=function(){n.textContent="".concat(t?t--:t++)}}dv.push(e),Vh()},b3=function(e){m3(function(){requestAnimationFrame(e)})},Rd=0,g3=function(){return!!Rd},p3=250,y3={attributes:!0,characterData:!0,childList:!0,subtree:!0},Vy=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],Ky=function(e){return e===void 0&&(e=0),Date.now()+e},Kh=!1,E3=function(){function e(){var t=this;this.stopped=!0,this.listener=function(){return t.schedule()}}return e.prototype.run=function(t){var n=this;if(t===void 0&&(t=p3),!Kh){Kh=!0;var r=Ky(t);b3(function(){var s=!1;try{s=f3()}finally{if(Kh=!1,t=r-Ky(),!g3())return;s?n.run(1e3):t>0?n.run(t):n.start()}})}},e.prototype.schedule=function(){this.stop(),this.run()},e.prototype.observe=function(){var t=this,n=function(){return t.observer&&t.observer.observe(document.body,y3)};document.body?n():Yl.addEventListener("DOMContentLoaded",n)},e.prototype.start=function(){var t=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),Vy.forEach(function(n){return Yl.addEventListener(n,t.listener,!0)}))},e.prototype.stop=function(){var t=this;this.stopped||(this.observer&&this.observer.disconnect(),Vy.forEach(function(n){return Yl.removeEventListener(n,t.listener,!0)}),this.stopped=!0)},e}(),Om=new E3,Yy=function(e){!Rd&&e>0&&Om.start(),Rd+=e,!Rd&&Om.stop()},C3=function(e){return!_g(e)&&!o3(e)&&getComputedStyle(e).display==="inline"},x3=function(){function e(t,n){this.target=t,this.observedBox=n||bu.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var t=lv(this.target,this.observedBox,!0);return C3(this.target)&&(this.lastReportedSize=t),this.lastReportedSize.inlineSize!==t.inlineSize||this.lastReportedSize.blockSize!==t.blockSize},e}(),v3=function(){function e(t,n){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=t,this.callback=n}return e}(),rd=new WeakMap,Xy=function(e,t){for(var n=0;n<e.length;n+=1)if(e[n].target===t)return n;return-1},sd=function(){function e(){}return e.connect=function(t,n){var r=new v3(t,n);rd.set(t,r)},e.observe=function(t,n,r){var s=rd.get(t),i=s.observationTargets.length===0;Xy(s.observationTargets,n)<0&&(i&&Ma.push(s),s.observationTargets.push(new x3(n,r&&r.box)),Yy(1),Om.schedule())},e.unobserve=function(t,n){var r=rd.get(t),s=Xy(r.observationTargets,n),i=r.observationTargets.length===1;s>=0&&(i&&Ma.splice(Ma.indexOf(r),1),r.observationTargets.splice(s,1),Yy(-1))},e.disconnect=function(t){var n=this,r=rd.get(t);r.observationTargets.slice().forEach(function(s){return n.unobserve(t,s.target)}),r.activeTargets.splice(0,r.activeTargets.length)},e}(),_3=function(){function e(t){if(arguments.length===0)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if(typeof t!="function")throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");sd.connect(this,t)}return e.prototype.observe=function(t,n){if(arguments.length===0)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!qy(t))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");sd.observe(this,t,n)},e.prototype.unobserve=function(t){if(arguments.length===0)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!qy(t))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");sd.unobserve(this,t)},e.prototype.disconnect=function(){sd.disconnect(this)},e.toString=function(){return"function ResizeObserver () { [polyfill code] }"},e}();class S3{constructor(){this.handleResize=this.handleResize.bind(this),this.observer=new(typeof window<"u"&&window.ResizeObserver||_3)(this.handleResize),this.elHandlersMap=new Map}handleResize(t){for(const n of t){const r=this.elHandlersMap.get(n.target);r!==void 0&&r(n)}}registerHandler(t,n){this.elHandlersMap.set(t,n),this.observer.observe(t)}unregisterHandler(t){this.elHandlersMap.has(t)&&(this.elHandlersMap.delete(t),this.observer.unobserve(t))}}const Qy=new S3,ac=mt({name:"ResizeObserver",props:{onResize:Function},setup(e){let t=!1;const n=ig().proxy;function r(s){const{onResize:i}=e;i!==void 0&&i(s)}To(()=>{const s=n.$el;if(s===void 0){zy("resize-observer","$el does not exist.");return}if(s.nextElementSibling!==s.nextSibling&&s.nodeType===3&&s.nodeValue!==""){zy("resize-observer","$el can not be observed (it may be a text node).");return}s.nextElementSibling!==null&&(Qy.registerHandler(s.nextElementSibling,r),t=!0)}),gi(()=>{t&&Qy.unregisterHandler(n.$el.nextElementSibling)})},render(){return uA(this.$slots,"default")}}),T3=Uy(".v-x-scroll",{overflow:"auto",scrollbarWidth:"none"},[Uy("&::-webkit-scrollbar",{width:0,height:0})]),w3=mt({name:"XScroll",props:{disabled:Boolean,onScroll:Function},setup(){const e=Me(null);function t(s){!(s.currentTarget.offsetWidth<s.currentTarget.scrollWidth)||s.deltaY===0||(s.currentTarget.scrollLeft+=s.deltaY+s.deltaX,s.preventDefault())}const n=dA();return T3.mount({id:"vueuc/x-scroll",head:!0,anchorMetaName:t3,ssr:n}),Object.assign({selfRef:e,handleWheel:t},{scrollTo(...s){var i;(i=e.value)===null||i===void 0||i.scrollTo(...s)}})},render(){return R("div",{ref:"selfRef",onScroll:this.onScroll,onWheel:this.disabled?void 0:this.handleWheel,class:"v-x-scroll"},this.$slots)}});function fv(e){return e instanceof HTMLElement}function hv(e){for(let t=0;t<e.childNodes.length;t++){const n=e.childNodes[t];if(fv(n)&&(bv(n)||hv(n)))return!0}return!1}function mv(e){for(let t=e.childNodes.length-1;t>=0;t--){const n=e.childNodes[t];if(fv(n)&&(bv(n)||mv(n)))return!0}return!1}function bv(e){if(!A3(e))return!1;try{e.focus({preventScroll:!0})}catch{}return document.activeElement===e}function A3(e){if(e.tabIndex>0||e.tabIndex===0&&e.getAttribute("tabIndex")!==null)return!0;if(e.getAttribute("disabled"))return!1;switch(e.nodeName){case"A":return!!e.href&&e.rel!=="ignore";case"INPUT":return e.type!=="hidden"&&e.type!=="file";case"BUTTON":case"SELECT":case"TEXTAREA":return!0;default:return!1}}let Ll=[];const k3=mt({name:"FocusTrap",props:{disabled:Boolean,active:Boolean,autoFocus:{type:Boolean,default:!0},onEsc:Function,initialFocusTo:String,finalFocusTo:String,returnFocusOnDeactivated:{type:Boolean,default:!0}},setup(e){const t=og(),n=Me(null),r=Me(null);let s=!1,i=!1;const a=typeof document>"u"?null:document.activeElement;function o(){return Ll[Ll.length-1]===t}function c(y){var p;y.code==="Escape"&&o()&&((p=e.onEsc)===null||p===void 0||p.call(e,y))}To(()=>{rs(()=>e.active,y=>{y?(f(),Yn("keydown",document,c)):(mr("keydown",document,c),s&&m())},{immediate:!0})}),gi(()=>{mr("keydown",document,c),s&&m()});function l(y){if(!i&&o()){const p=d();if(p===null||p.contains(Cg(y)))return;h("first")}}function d(){const y=n.value;if(y===null)return null;let p=y;for(;p=p.nextSibling,!(p===null||p instanceof Element&&p.tagName==="DIV"););return p}function f(){var y;if(!e.disabled){if(Ll.push(t),e.autoFocus){const{initialFocusTo:p}=e;p===void 0?h("first"):(y=$y(p))===null||y===void 0||y.focus({preventScroll:!0})}s=!0,document.addEventListener("focus",l,!0)}}function m(){var y;if(e.disabled||(document.removeEventListener("focus",l,!0),Ll=Ll.filter(C=>C!==t),o()))return;const{finalFocusTo:p}=e;p!==void 0?(y=$y(p))===null||y===void 0||y.focus({preventScroll:!0}):e.returnFocusOnDeactivated&&a instanceof HTMLElement&&(i=!0,a.focus({preventScroll:!0}),i=!1)}function h(y){if(o()&&e.active){const p=n.value,C=r.value;if(p!==null&&C!==null){const w=d();if(w==null||w===C){i=!0,p.focus({preventScroll:!0}),i=!1;return}i=!0;const _=y==="first"?hv(w):mv(w);i=!1,_||(i=!0,p.focus({preventScroll:!0}),i=!1)}}}function b(y){if(i)return;const p=d();p!==null&&(y.relatedTarget!==null&&p.contains(y.relatedTarget)?h("last"):h("first"))}function g(y){i||(y.relatedTarget!==null&&y.relatedTarget===n.value?h("last"):h("first"))}return{focusableStartRef:n,focusableEndRef:r,focusableStyle:"position: absolute; height: 0; width: 0;",handleStartFocus:b,handleEndFocus:g}},render(){const{default:e}=this.$slots;if(e===void 0)return null;if(this.disabled)return e();const{active:t,focusableStyle:n}=this;return R(fa,null,[R("div",{"aria-hidden":"true",tabindex:t?"0":"-1",ref:"focusableStartRef",style:n,onFocus:this.handleStartFocus}),e(),R("div",{"aria-hidden":"true",style:n,ref:"focusableEndRef",tabindex:t?"0":"-1",onFocus:this.handleEndFocus})])}});function Zy(e){return e.replace(/#|\(|\)|,|\s|\./g,"_")}const I3=/^(\d|\.)+$/,Jy=/(\d|\.)+/;function Wo(e,{c:t=1,offset:n=0,attachPx:r=!0}={}){if(typeof e=="number"){const s=(e+n)*t;return s===0?"0":`${s}px`}else if(typeof e=="string")if(I3.test(e)){const s=(Number(e)+n)*t;return r?s===0?"0":`${s}px`:`${s}`}else{const s=Jy.exec(e);return s?e.replace(Jy,String((Number(s[0])+n)*t)):e}return e}function eE(e){const{left:t,right:n,top:r,bottom:s}=ks(e);return`${r} ${t} ${s} ${n}`}const R3=new WeakSet;function B3(e){return!R3.has(e)}function vt(e,...t){if(Array.isArray(e))e.forEach(n=>vt(n,...t));else return e(...t)}function _i(e,t=!0,n=[]){return e.forEach(r=>{if(r!==null){if(typeof r!="object"){(typeof r=="string"||typeof r=="number")&&n.push($t(String(r)));return}if(Array.isArray(r)){_i(r,t,n);return}if(r.type===fa){if(r.children===null)return;Array.isArray(r.children)&&_i(r.children,t,n)}else{if(r.type===cg&&t)return;n.push(r)}}}),n}function P3(e,t,n){if(!t)return null;const r=_i(t(n));return r.length===1?r[0]:(Fx("getFirstSlotVNode",`slot[${e}] should have exactly one child`),null)}function Sg(e,t="default",n=[]){const s=e.$slots[t];return s===void 0?n:s()}function Dm(e,t=[],n){const r={};return t.forEach(s=>{r[s]=e[s]}),Object.assign(r,n)}function Tg(e){return Object.keys(e)}function ws(e){return e.some(t=>lg(t)?!(t.type===cg||t.type===fa&&!ws(t.children)):!0)?e:null}function ci(e,t){return e&&ws(e())||t()}function Lm(e,t,n){return e&&ws(e(t))||n(t)}function $n(e,t){const n=e&&ws(e());return t(n||null)}function N3(e,t,n){const r=e&&ws(e(t));return n(r||null)}function O3(e){return!(e&&ws(e()))}const tE=mt({render(){var e,t;return(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e)}}),nE=cs("n-form-item");function Pu(e,{defaultSize:t="medium",mergedSize:n,mergedDisabled:r}={}){const s=os(nE,null);oi(nE,null);const i=Fe(n?()=>n(s):()=>{const{size:c}=e;if(c)return c;if(s){const{mergedSize:l}=s;if(l.value!==void 0)return l.value}return t}),a=Fe(r?()=>r(s):()=>{const{disabled:c}=e;return c!==void 0?c:s?s.disabled.value:!1}),o=Fe(()=>{const{status:c}=e;return c||s?.mergedValidationStatus.value});return gi(()=>{s&&s.restoreValidation()}),{mergedSizeRef:i,mergedDisabledRef:a,mergedStatusRef:o,nTriggerFormBlur(){s&&s.handleContentBlur()},nTriggerFormChange(){s&&s.handleContentChange()},nTriggerFormFocus(){s&&s.handleContentFocus()},nTriggerFormInput(){s&&s.handleContentInput()}}}const D3={name:"en-US",global:{undo:"Undo",redo:"Redo",confirm:"Confirm",clear:"Clear"},Popconfirm:{positiveText:"Confirm",negativeText:"Cancel"},Cascader:{placeholder:"Please Select",loading:"Loading",loadingRequiredMessage:e=>`Please load all ${e}'s descendants before checking it.`},Time:{dateFormat:"yyyy-MM-dd",dateTimeFormat:"yyyy-MM-dd HH:mm:ss"},DatePicker:{yearFormat:"yyyy",monthFormat:"MMM",dayFormat:"eeeeee",yearTypeFormat:"yyyy",monthTypeFormat:"yyyy-MM",dateFormat:"yyyy-MM-dd",dateTimeFormat:"yyyy-MM-dd HH:mm:ss",quarterFormat:"yyyy-qqq",weekFormat:"YYYY-w",clear:"Clear",now:"Now",confirm:"Confirm",selectTime:"Select Time",selectDate:"Select Date",datePlaceholder:"Select Date",datetimePlaceholder:"Select Date and Time",monthPlaceholder:"Select Month",yearPlaceholder:"Select Year",quarterPlaceholder:"Select Quarter",weekPlaceholder:"Select Week",startDatePlaceholder:"Start Date",endDatePlaceholder:"End Date",startDatetimePlaceholder:"Start Date and Time",endDatetimePlaceholder:"End Date and Time",startMonthPlaceholder:"Start Month",endMonthPlaceholder:"End Month",monthBeforeYear:!0,firstDayOfWeek:6,today:"Today"},DataTable:{checkTableAll:"Select all in the table",uncheckTableAll:"Unselect all in the table",confirm:"Confirm",clear:"Clear"},LegacyTransfer:{sourceTitle:"Source",targetTitle:"Target"},Transfer:{selectAll:"Select all",unselectAll:"Unselect all",clearAll:"Clear",total:e=>`Total ${e} items`,selected:e=>`${e} items selected`},Empty:{description:"No Data"},Select:{placeholder:"Please Select"},TimePicker:{placeholder:"Select Time",positiveText:"OK",negativeText:"Cancel",now:"Now",clear:"Clear"},Pagination:{goto:"Goto",selectionSuffix:"page"},DynamicTags:{add:"Add"},Log:{loading:"Loading"},Input:{placeholder:"Please Input"},InputNumber:{placeholder:"Please Input"},DynamicInput:{create:"Create"},ThemeEditor:{title:"Theme Editor",clearAllVars:"Clear All Variables",clearSearch:"Clear Search",filterCompName:"Filter Component Name",filterVarName:"Filter Variable Name",import:"Import",export:"Export",restore:"Reset to Default"},Image:{tipPrevious:"Previous picture (←)",tipNext:"Next picture (→)",tipCounterclockwise:"Counterclockwise",tipClockwise:"Clockwise",tipZoomOut:"Zoom out",tipZoomIn:"Zoom in",tipDownload:"Download",tipClose:"Close (Esc)",tipOriginalSize:"Zoom to original size"}};function Yh(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}function Ml(e){return(t,n)=>{const r=n?.context?String(n.context):"standalone";let s;if(r==="formatting"&&e.formattingValues){const a=e.defaultFormattingWidth||e.defaultWidth,o=n?.width?String(n.width):a;s=e.formattingValues[o]||e.formattingValues[a]}else{const a=e.defaultWidth,o=n?.width?String(n.width):e.defaultWidth;s=e.values[o]||e.values[a]}const i=e.argumentCallback?e.argumentCallback(t):t;return s[i]}}function Fl(e){return(t,n={})=>{const r=n.width,s=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],i=t.match(s);if(!i)return null;const a=i[0],o=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(o)?M3(o,f=>f.test(a)):L3(o,f=>f.test(a));let l;l=e.valueCallback?e.valueCallback(c):c,l=n.valueCallback?n.valueCallback(l):l;const d=t.slice(a.length);return{value:l,rest:d}}}function L3(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function M3(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function F3(e){return(t,n={})=>{const r=t.match(e.matchPattern);if(!r)return null;const s=r[0],i=t.match(e.parsePattern);if(!i)return null;let a=e.valueCallback?e.valueCallback(i[0]):i[0];a=n.valueCallback?n.valueCallback(a):a;const o=t.slice(s.length);return{value:a,rest:o}}}const z3={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},U3=(e,t,n)=>{let r;const s=z3[e];return typeof s=="string"?r=s:t===1?r=s.one:r=s.other.replace("{{count}}",t.toString()),n?.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r},$3={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},H3=(e,t,n,r)=>$3[e],q3={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},j3={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},W3={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},G3={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},V3={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},K3={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},Y3=(e,t)=>{const n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},X3={ordinalNumber:Y3,era:Ml({values:q3,defaultWidth:"wide"}),quarter:Ml({values:j3,defaultWidth:"wide",argumentCallback:e=>e-1}),month:Ml({values:W3,defaultWidth:"wide"}),day:Ml({values:G3,defaultWidth:"wide"}),dayPeriod:Ml({values:V3,defaultWidth:"wide",formattingValues:K3,defaultFormattingWidth:"wide"})},Q3=/^(\d+)(th|st|nd|rd)?/i,Z3=/\d+/i,J3={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},ek={any:[/^b/i,/^(a|c)/i]},tk={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},nk={any:[/1/i,/2/i,/3/i,/4/i]},rk={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},sk={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},ik={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},ak={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},ok={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},ck={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},lk={ordinalNumber:F3({matchPattern:Q3,parsePattern:Z3,valueCallback:e=>parseInt(e,10)}),era:Fl({matchPatterns:J3,defaultMatchWidth:"wide",parsePatterns:ek,defaultParseWidth:"any"}),quarter:Fl({matchPatterns:tk,defaultMatchWidth:"wide",parsePatterns:nk,defaultParseWidth:"any",valueCallback:e=>e+1}),month:Fl({matchPatterns:rk,defaultMatchWidth:"wide",parsePatterns:sk,defaultParseWidth:"any"}),day:Fl({matchPatterns:ik,defaultMatchWidth:"wide",parsePatterns:ak,defaultParseWidth:"any"}),dayPeriod:Fl({matchPatterns:ok,defaultMatchWidth:"any",parsePatterns:ck,defaultParseWidth:"any"})},uk={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},dk={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},fk={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},hk={date:Yh({formats:uk,defaultWidth:"full"}),time:Yh({formats:dk,defaultWidth:"full"}),dateTime:Yh({formats:fk,defaultWidth:"full"})},mk={code:"en-US",formatDistance:U3,formatLong:hk,formatRelative:H3,localize:X3,match:lk,options:{weekStartsOn:0,firstWeekContainsDate:1}},bk={name:"en-US",locale:mk};var gk=/\s/;function pk(e){for(var t=e.length;t--&&gk.test(e.charAt(t)););return t}var yk=/^\s+/;function Ek(e){return e&&e.slice(0,pk(e)+1).replace(yk,"")}var rE=NaN,Ck=/^[-+]0x[0-9a-f]+$/i,xk=/^0b[01]+$/i,vk=/^0o[0-7]+$/i,_k=parseInt;function sE(e){if(typeof e=="number")return e;if(fA(e))return rE;if(Ef(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Ef(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=Ek(e);var n=xk.test(e);return n||vk.test(e)?_k(e.slice(2),n?2:8):Ck.test(e)?rE:+e}var Xh=function(){return hA.Date.now()},Sk="Expected a function",Tk=Math.max,wk=Math.min;function Ak(e,t,n){var r,s,i,a,o,c,l=0,d=!1,f=!1,m=!0;if(typeof e!="function")throw new TypeError(Sk);t=sE(t)||0,Ef(n)&&(d=!!n.leading,f="maxWait"in n,i=f?Tk(sE(n.maxWait)||0,t):i,m="trailing"in n?!!n.trailing:m);function h(A){var v=r,O=s;return r=s=void 0,l=A,a=e.apply(O,v),a}function b(A){return l=A,o=setTimeout(p,t),d?h(A):a}function g(A){var v=A-c,O=A-l,z=t-v;return f?wk(z,i-O):z}function y(A){var v=A-c,O=A-l;return c===void 0||v>=t||v<0||f&&O>=i}function p(){var A=Xh();if(y(A))return C(A);o=setTimeout(p,g(A))}function C(A){return o=void 0,m&&r?h(A):(r=s=void 0,a)}function w(){o!==void 0&&clearTimeout(o),l=0,r=c=s=o=void 0}function _(){return o===void 0?a:C(Xh())}function S(){var A=Xh(),v=y(A);if(r=arguments,s=this,c=A,v){if(o===void 0)return b(c);if(f)return clearTimeout(o),o=setTimeout(p,t),h(c)}return o===void 0&&(o=setTimeout(p,t)),a}return S.cancel=w,S.flush=_,S}var kk="Expected a function";function Qh(e,t,n){var r=!0,s=!0;if(typeof e!="function")throw new TypeError(kk);return Ef(n)&&(r="leading"in n?!!n.leading:r,s="trailing"in n?!!n.trailing:s),Ak(e,t,{leading:r,maxWait:t,trailing:s})}function Ik(e){const{mergedLocaleRef:t,mergedDateLocaleRef:n}=os(mA,null)||{},r=Fe(()=>{var i,a;return(a=(i=t?.value)===null||i===void 0?void 0:i[e])!==null&&a!==void 0?a:D3[e]});return{dateLocaleRef:Fe(()=>{var i;return(i=n?.value)!==null&&i!==void 0?i:bk}),localeRef:r}}const Rk=mt({name:"Add",render(){return R("svg",{width:"512",height:"512",viewBox:"0 0 512 512",fill:"none",xmlns:"http://www.w3.org/2000/svg"},R("path",{d:"M256 112V400M400 256H112",stroke:"currentColor","stroke-width":"32","stroke-linecap":"round","stroke-linejoin":"round"}))}}),Bk=mt({name:"Checkmark",render(){return R("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},R("g",{fill:"none"},R("path",{d:"M14.046 3.486a.75.75 0 0 1-.032 1.06l-7.93 7.474a.85.85 0 0 1-1.188-.022l-2.68-2.72a.75.75 0 1 1 1.068-1.053l2.234 2.267l7.468-7.038a.75.75 0 0 1 1.06.032z",fill:"currentColor"})))}}),Pk=mt({name:"ChevronDown",render(){return R("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},R("path",{d:"M3.14645 5.64645C3.34171 5.45118 3.65829 5.45118 3.85355 5.64645L8 9.79289L12.1464 5.64645C12.3417 5.45118 12.6583 5.45118 12.8536 5.64645C13.0488 5.84171 13.0488 6.15829 12.8536 6.35355L8.35355 10.8536C8.15829 11.0488 7.84171 11.0488 7.64645 10.8536L3.14645 6.35355C2.95118 6.15829 2.95118 5.84171 3.14645 5.64645Z",fill:"currentColor"}))}}),Nk=mt({name:"ChevronLeft",render(){return R("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},R("path",{d:"M10.3536 3.14645C10.5488 3.34171 10.5488 3.65829 10.3536 3.85355L6.20711 8L10.3536 12.1464C10.5488 12.3417 10.5488 12.6583 10.3536 12.8536C10.1583 13.0488 9.84171 13.0488 9.64645 12.8536L5.14645 8.35355C4.95118 8.15829 4.95118 7.84171 5.14645 7.64645L9.64645 3.14645C9.84171 2.95118 10.1583 2.95118 10.3536 3.14645Z",fill:"currentColor"}))}}),Ok=mt({name:"ChevronRight",render(){return R("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},R("path",{d:"M5.64645 3.14645C5.45118 3.34171 5.45118 3.65829 5.64645 3.85355L9.79289 8L5.64645 12.1464C5.45118 12.3417 5.45118 12.6583 5.64645 12.8536C5.84171 13.0488 6.15829 13.0488 6.35355 12.8536L10.8536 8.35355C11.0488 8.15829 11.0488 7.84171 10.8536 7.64645L6.35355 3.14645C6.15829 2.95118 5.84171 2.95118 5.64645 3.14645Z",fill:"currentColor"}))}}),Dk=bA("clear",()=>R("svg",{viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},R("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},R("g",{fill:"currentColor","fill-rule":"nonzero"},R("path",{d:"M8,2 C11.3137085,2 14,4.6862915 14,8 C14,11.3137085 11.3137085,14 8,14 C4.6862915,14 2,11.3137085 2,8 C2,4.6862915 4.6862915,2 8,2 Z M6.5343055,5.83859116 C6.33943736,5.70359511 6.07001296,5.72288026 5.89644661,5.89644661 L5.89644661,5.89644661 L5.83859116,5.9656945 C5.70359511,6.16056264 5.72288026,6.42998704 5.89644661,6.60355339 L5.89644661,6.60355339 L7.293,8 L5.89644661,9.39644661 L5.83859116,9.4656945 C5.70359511,9.66056264 5.72288026,9.92998704 5.89644661,10.1035534 L5.89644661,10.1035534 L5.9656945,10.1614088 C6.16056264,10.2964049 6.42998704,10.2771197 6.60355339,10.1035534 L6.60355339,10.1035534 L8,8.707 L9.39644661,10.1035534 L9.4656945,10.1614088 C9.66056264,10.2964049 9.92998704,10.2771197 10.1035534,10.1035534 L10.1035534,10.1035534 L10.1614088,10.0343055 C10.2964049,9.83943736 10.2771197,9.57001296 10.1035534,9.39644661 L10.1035534,9.39644661 L8.707,8 L10.1035534,6.60355339 L10.1614088,6.5343055 C10.2964049,6.33943736 10.2771197,6.07001296 10.1035534,5.89644661 L10.1035534,5.89644661 L10.0343055,5.83859116 C9.83943736,5.70359511 9.57001296,5.72288026 9.39644661,5.89644661 L9.39644661,5.89644661 L8,7.293 L6.60355339,5.89644661 Z"}))))),Lk=mt({name:"Eye",render(){return R("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},R("path",{d:"M255.66 112c-77.94 0-157.89 45.11-220.83 135.33a16 16 0 0 0-.27 17.77C82.92 340.8 161.8 400 255.66 400c92.84 0 173.34-59.38 221.79-135.25a16.14 16.14 0 0 0 0-17.47C428.89 172.28 347.8 112 255.66 112z",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"}),R("circle",{cx:"256",cy:"256",r:"80",fill:"none",stroke:"currentColor","stroke-miterlimit":"10","stroke-width":"32"}))}}),Mk=mt({name:"EyeOff",render(){return R("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},R("path",{d:"M432 448a15.92 15.92 0 0 1-11.31-4.69l-352-352a16 16 0 0 1 22.62-22.62l352 352A16 16 0 0 1 432 448z",fill:"currentColor"}),R("path",{d:"M255.66 384c-41.49 0-81.5-12.28-118.92-36.5c-34.07-22-64.74-53.51-88.7-91v-.08c19.94-28.57 41.78-52.73 65.24-72.21a2 2 0 0 0 .14-2.94L93.5 161.38a2 2 0 0 0-2.71-.12c-24.92 21-48.05 46.76-69.08 76.92a31.92 31.92 0 0 0-.64 35.54c26.41 41.33 60.4 76.14 98.28 100.65C162 402 207.9 416 255.66 416a239.13 239.13 0 0 0 75.8-12.58a2 2 0 0 0 .77-3.31l-21.58-21.58a4 4 0 0 0-3.83-1a204.8 204.8 0 0 1-51.16 6.47z",fill:"currentColor"}),R("path",{d:"M490.84 238.6c-26.46-40.92-60.79-75.68-99.27-100.53C349 110.55 302 96 255.66 96a227.34 227.34 0 0 0-74.89 12.83a2 2 0 0 0-.75 3.31l21.55 21.55a4 4 0 0 0 3.88 1a192.82 192.82 0 0 1 50.21-6.69c40.69 0 80.58 12.43 118.55 37c34.71 22.4 65.74 53.88 89.76 91a.13.13 0 0 1 0 .16a310.72 310.72 0 0 1-64.12 72.73a2 2 0 0 0-.15 2.95l19.9 19.89a2 2 0 0 0 2.7.13a343.49 343.49 0 0 0 68.64-78.48a32.2 32.2 0 0 0-.1-34.78z",fill:"currentColor"}),R("path",{d:"M256 160a95.88 95.88 0 0 0-21.37 2.4a2 2 0 0 0-1 3.38l112.59 112.56a2 2 0 0 0 3.38-1A96 96 0 0 0 256 160z",fill:"currentColor"}),R("path",{d:"M165.78 233.66a2 2 0 0 0-3.38 1a96 96 0 0 0 115 115a2 2 0 0 0 1-3.38z",fill:"currentColor"}))}}),Fk=j("base-clear",`
10
- flex-shrink: 0;
11
- height: 1em;
12
- width: 1em;
13
- position: relative;
14
- `,[ce(">",[J("clear",`
15
- font-size: var(--n-clear-size);
16
- height: 1em;
17
- width: 1em;
18
- cursor: pointer;
19
- color: var(--n-clear-color);
20
- transition: color .3s var(--n-bezier);
21
- display: flex;
22
- `,[ce("&:hover",`
23
- color: var(--n-clear-color-hover)!important;
24
- `),ce("&:active",`
25
- color: var(--n-clear-color-pressed)!important;
26
- `)]),J("placeholder",`
27
- display: flex;
28
- `),J("clear, placeholder",`
29
- position: absolute;
30
- left: 50%;
31
- top: 50%;
32
- transform: translateX(-50%) translateY(-50%);
33
- `,[rc({originalTransform:"translateX(-50%) translateY(-50%)",left:"50%",top:"50%"})])])]),Mm=mt({name:"BaseClear",props:{clsPrefix:{type:String,required:!0},show:Boolean,onClear:Function},setup(e){return dh("-base-clear",Fk,on(e,"clsPrefix")),{handleMouseDown(t){t.preventDefault()}}},render(){const{clsPrefix:e}=this;return R("div",{class:`${e}-base-clear`},R(uh,null,{default:()=>{var t,n;return this.show?R("div",{key:"dismiss",class:`${e}-base-clear__clear`,onClick:this.onClear,onMousedown:this.handleMouseDown,"data-clear":!0},ci(this.$slots.icon,()=>[R(Gs,{clsPrefix:e},{default:()=>R(Dk,null)})])):R("div",{key:"icon",class:`${e}-base-clear__placeholder`},(n=(t=this.$slots).placeholder)===null||n===void 0?void 0:n.call(t))}}))}}),{cubicBezierEaseInOut:iE}=ug;function gv({name:e="fade-in",enterDuration:t="0.2s",leaveDuration:n="0.2s",enterCubicBezier:r=iE,leaveCubicBezier:s=iE}={}){return[ce(`&.${e}-transition-enter-active`,{transition:`all ${t} ${r}!important`}),ce(`&.${e}-transition-leave-active`,{transition:`all ${n} ${s}!important`}),ce(`&.${e}-transition-enter-from, &.${e}-transition-leave-to`,{opacity:0}),ce(`&.${e}-transition-leave-from, &.${e}-transition-enter-to`,{opacity:1})]}const zk={railInsetHorizontalBottom:"auto 2px 4px 2px",railInsetHorizontalTop:"4px 2px auto 2px",railInsetVerticalRight:"2px 4px 2px auto",railInsetVerticalLeft:"2px auto 2px 4px",railColor:"transparent"};function Uk(e){const{scrollbarColor:t,scrollbarColorHover:n,scrollbarHeight:r,scrollbarWidth:s,scrollbarBorderRadius:i}=e;return Object.assign(Object.assign({},zk),{height:r,width:s,borderRadius:i,color:t,colorHover:n})}const pv={name:"Scrollbar",common:ps,self:Uk},$k=j("scrollbar",`
34
- overflow: hidden;
35
- position: relative;
36
- z-index: auto;
37
- height: 100%;
38
- width: 100%;
39
- `,[ce(">",[j("scrollbar-container",`
40
- width: 100%;
41
- overflow: scroll;
42
- height: 100%;
43
- min-height: inherit;
44
- max-height: inherit;
45
- scrollbar-width: none;
46
- `,[ce("&::-webkit-scrollbar, &::-webkit-scrollbar-track-piece, &::-webkit-scrollbar-thumb",`
47
- width: 0;
48
- height: 0;
49
- display: none;
50
- `),ce(">",[j("scrollbar-content",`
51
- box-sizing: border-box;
52
- min-width: 100%;
53
- `)])])]),ce(">, +",[j("scrollbar-rail",`
54
- position: absolute;
55
- pointer-events: none;
56
- user-select: none;
57
- background: var(--n-scrollbar-rail-color);
58
- -webkit-user-select: none;
59
- `,[oe("horizontal",`
60
- height: var(--n-scrollbar-height);
61
- `,[ce(">",[J("scrollbar",`
62
- height: var(--n-scrollbar-height);
63
- border-radius: var(--n-scrollbar-border-radius);
64
- right: 0;
65
- `)])]),oe("horizontal--top",`
66
- top: var(--n-scrollbar-rail-top-horizontal-top);
67
- right: var(--n-scrollbar-rail-right-horizontal-top);
68
- bottom: var(--n-scrollbar-rail-bottom-horizontal-top);
69
- left: var(--n-scrollbar-rail-left-horizontal-top);
70
- `),oe("horizontal--bottom",`
71
- top: var(--n-scrollbar-rail-top-horizontal-bottom);
72
- right: var(--n-scrollbar-rail-right-horizontal-bottom);
73
- bottom: var(--n-scrollbar-rail-bottom-horizontal-bottom);
74
- left: var(--n-scrollbar-rail-left-horizontal-bottom);
75
- `),oe("vertical",`
76
- width: var(--n-scrollbar-width);
77
- `,[ce(">",[J("scrollbar",`
78
- width: var(--n-scrollbar-width);
79
- border-radius: var(--n-scrollbar-border-radius);
80
- bottom: 0;
81
- `)])]),oe("vertical--left",`
82
- top: var(--n-scrollbar-rail-top-vertical-left);
83
- right: var(--n-scrollbar-rail-right-vertical-left);
84
- bottom: var(--n-scrollbar-rail-bottom-vertical-left);
85
- left: var(--n-scrollbar-rail-left-vertical-left);
86
- `),oe("vertical--right",`
87
- top: var(--n-scrollbar-rail-top-vertical-right);
88
- right: var(--n-scrollbar-rail-right-vertical-right);
89
- bottom: var(--n-scrollbar-rail-bottom-vertical-right);
90
- left: var(--n-scrollbar-rail-left-vertical-right);
91
- `),oe("disabled",[ce(">",[J("scrollbar","pointer-events: none;")])]),ce(">",[J("scrollbar",`
92
- z-index: 1;
93
- position: absolute;
94
- cursor: pointer;
95
- pointer-events: all;
96
- background-color: var(--n-scrollbar-color);
97
- transition: background-color .2s var(--n-scrollbar-bezier);
98
- `,[gv(),ce("&:hover","background-color: var(--n-scrollbar-color-hover);")])])])])]),Hk=Object.assign(Object.assign({},nn.props),{duration:{type:Number,default:0},scrollable:{type:Boolean,default:!0},xScrollable:Boolean,trigger:{type:String,default:"hover"},useUnifiedContainer:Boolean,triggerDisplayManually:Boolean,container:Function,content:Function,containerClass:String,containerStyle:[String,Object],contentClass:[String,Array],contentStyle:[String,Object],horizontalRailStyle:[String,Object],verticalRailStyle:[String,Object],onScroll:Function,onWheel:Function,onResize:Function,internalOnUpdateScrollLeft:Function,internalHoistYRail:Boolean,yPlacement:{type:String,default:"right"},xPlacement:{type:String,default:"bottom"}}),yv=mt({name:"Scrollbar",props:Hk,inheritAttrs:!1,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n,mergedRtlRef:r}=Er(e),s=Vs("Scrollbar",r,t),i=Me(null),a=Me(null),o=Me(null),c=Me(null),l=Me(null),d=Me(null),f=Me(null),m=Me(null),h=Me(null),b=Me(null),g=Me(null),y=Me(0),p=Me(0),C=Me(!1),w=Me(!1);let _=!1,S=!1,A,v,O=0,z=0,Q=0,be=0;const N=qA(),Y=nn("Scrollbar","-scrollbar",$k,pv,e,t),x=Fe(()=>{const{value:we}=m,{value:Xe}=d,{value:ct}=b;return we===null||Xe===null||ct===null?0:Math.min(we,ct*we/Xe+mu(Y.value.self.width)*1.5)}),Z=Fe(()=>`${x.value}px`),Le=Fe(()=>{const{value:we}=h,{value:Xe}=f,{value:ct}=g;return we===null||Xe===null||ct===null?0:ct*we/Xe+mu(Y.value.self.height)*1.5}),re=Fe(()=>`${Le.value}px`),He=Fe(()=>{const{value:we}=m,{value:Xe}=y,{value:ct}=d,{value:qt}=b;if(we===null||ct===null||qt===null)return 0;{const vn=ct-we;return vn?Xe/vn*(qt-x.value):0}}),he=Fe(()=>`${He.value}px`),ze=Fe(()=>{const{value:we}=h,{value:Xe}=p,{value:ct}=f,{value:qt}=g;if(we===null||ct===null||qt===null)return 0;{const vn=ct-we;return vn?Xe/vn*(qt-Le.value):0}}),X=Fe(()=>`${ze.value}px`),K=Fe(()=>{const{value:we}=m,{value:Xe}=d;return we!==null&&Xe!==null&&Xe>we}),Qe=Fe(()=>{const{value:we}=h,{value:Xe}=f;return we!==null&&Xe!==null&&Xe>we}),De=Fe(()=>{const{trigger:we}=e;return we==="none"||C.value}),Be=Fe(()=>{const{trigger:we}=e;return we==="none"||w.value}),et=Fe(()=>{const{container:we}=e;return we?we():a.value}),Wt=Fe(()=>{const{content:we}=e;return we?we():o.value}),ft=(we,Xe)=>{if(!e.scrollable)return;if(typeof we=="number"){Sn(we,Xe??0,0,!1,"auto");return}const{left:ct,top:qt,index:vn,elSize:Mn,position:Tn,behavior:Ut,el:cr,debounce:xs=!0}=we;(ct!==void 0||qt!==void 0)&&Sn(ct??0,qt??0,0,!1,Ut),cr!==void 0?Sn(0,cr.offsetTop,cr.offsetHeight,xs,Ut):vn!==void 0&&Mn!==void 0?Sn(0,vn*Mn,Mn,xs,Ut):Tn==="bottom"?Sn(0,Number.MAX_SAFE_INTEGER,0,!1,Ut):Tn==="top"&&Sn(0,0,0,!1,Ut)},Ke=XA(()=>{e.container||ft({top:y.value,left:p.value})}),Ot=()=>{Ke.isDeactivated||ye()},Ft=we=>{if(Ke.isDeactivated)return;const{onResize:Xe}=e;Xe&&Xe(we),ye()},ar=(we,Xe)=>{if(!e.scrollable)return;const{value:ct}=et;ct&&(typeof we=="object"?ct.scrollBy(we):ct.scrollBy(we,Xe||0))};function Sn(we,Xe,ct,qt,vn){const{value:Mn}=et;if(Mn){if(qt){const{scrollTop:Tn,offsetHeight:Ut}=Mn;if(Xe>Tn){Xe+ct<=Tn+Ut||Mn.scrollTo({left:we,top:Xe+ct-Ut,behavior:vn});return}}Mn.scrollTo({left:we,top:Xe,behavior:vn})}}function E(){W(),U(),ye()}function de(){se()}function se(){L(),I()}function L(){v!==void 0&&window.clearTimeout(v),v=window.setTimeout(()=>{w.value=!1},e.duration)}function I(){A!==void 0&&window.clearTimeout(A),A=window.setTimeout(()=>{C.value=!1},e.duration)}function W(){A!==void 0&&window.clearTimeout(A),C.value=!0}function U(){v!==void 0&&window.clearTimeout(v),w.value=!0}function q(we){const{onScroll:Xe}=e;Xe&&Xe(we),$()}function $(){const{value:we}=et;we&&(y.value=we.scrollTop,p.value=we.scrollLeft*(s?.value?-1:1))}function ae(){const{value:we}=Wt;we&&(d.value=we.offsetHeight,f.value=we.offsetWidth);const{value:Xe}=et;Xe&&(m.value=Xe.offsetHeight,h.value=Xe.offsetWidth);const{value:ct}=l,{value:qt}=c;ct&&(g.value=ct.offsetWidth),qt&&(b.value=qt.offsetHeight)}function Pe(){const{value:we}=et;we&&(y.value=we.scrollTop,p.value=we.scrollLeft*(s?.value?-1:1),m.value=we.offsetHeight,h.value=we.offsetWidth,d.value=we.scrollHeight,f.value=we.scrollWidth);const{value:Xe}=l,{value:ct}=c;Xe&&(g.value=Xe.offsetWidth),ct&&(b.value=ct.offsetHeight)}function ye(){e.scrollable&&(e.useUnifiedContainer?Pe():(ae(),$()))}function Ye(we){var Xe;return!(!((Xe=i.value)===null||Xe===void 0)&&Xe.contains(Cg(we)))}function It(we){we.preventDefault(),we.stopPropagation(),S=!0,Yn("mousemove",window,ht,!0),Yn("mouseup",window,Zn,!0),z=p.value,Q=s?.value?window.innerWidth-we.clientX:we.clientX}function ht(we){if(!S)return;A!==void 0&&window.clearTimeout(A),v!==void 0&&window.clearTimeout(v);const{value:Xe}=h,{value:ct}=f,{value:qt}=Le;if(Xe===null||ct===null)return;const Mn=(s?.value?window.innerWidth-we.clientX-Q:we.clientX-Q)*(ct-Xe)/(Xe-qt),Tn=ct-Xe;let Ut=z+Mn;Ut=Math.min(Tn,Ut),Ut=Math.max(Ut,0);const{value:cr}=et;if(cr){cr.scrollLeft=Ut*(s?.value?-1:1);const{internalOnUpdateScrollLeft:xs}=e;xs&&xs(Ut)}}function Zn(we){we.preventDefault(),we.stopPropagation(),mr("mousemove",window,ht,!0),mr("mouseup",window,Zn,!0),S=!1,ye(),Ye(we)&&se()}function Us(we){we.preventDefault(),we.stopPropagation(),_=!0,Yn("mousemove",window,or,!0),Yn("mouseup",window,us,!0),O=y.value,be=we.clientY}function or(we){if(!_)return;A!==void 0&&window.clearTimeout(A),v!==void 0&&window.clearTimeout(v);const{value:Xe}=m,{value:ct}=d,{value:qt}=x;if(Xe===null||ct===null)return;const Mn=(we.clientY-be)*(ct-Xe)/(Xe-qt),Tn=ct-Xe;let Ut=O+Mn;Ut=Math.min(Tn,Ut),Ut=Math.max(Ut,0);const{value:cr}=et;cr&&(cr.scrollTop=Ut)}function us(we){we.preventDefault(),we.stopPropagation(),mr("mousemove",window,or,!0),mr("mouseup",window,us,!0),_=!1,ye(),Ye(we)&&se()}Cf(()=>{const{value:we}=Qe,{value:Xe}=K,{value:ct}=t,{value:qt}=l,{value:vn}=c;qt&&(we?qt.classList.remove(`${ct}-scrollbar-rail--disabled`):qt.classList.add(`${ct}-scrollbar-rail--disabled`)),vn&&(Xe?vn.classList.remove(`${ct}-scrollbar-rail--disabled`):vn.classList.add(`${ct}-scrollbar-rail--disabled`))}),To(()=>{e.container||ye()}),gi(()=>{A!==void 0&&window.clearTimeout(A),v!==void 0&&window.clearTimeout(v),mr("mousemove",window,or,!0),mr("mouseup",window,us,!0)});const Qt=Fe(()=>{const{common:{cubicBezierEaseInOut:we},self:{color:Xe,colorHover:ct,height:qt,width:vn,borderRadius:Mn,railInsetHorizontalTop:Tn,railInsetHorizontalBottom:Ut,railInsetVerticalRight:cr,railInsetVerticalLeft:xs,railColor:zo}}=Y.value,{top:Rl,right:Oi,bottom:Di,left:Bl}=ks(Tn),{top:Pl,right:Uo,bottom:Li,left:G}=ks(Ut),{top:me,right:it,bottom:Zt,left:wn}=ks(s?.value?eE(cr):cr),{top:Kt,right:yi,bottom:Ei,left:Ci}=ks(s?.value?eE(xs):xs);return{"--n-scrollbar-bezier":we,"--n-scrollbar-color":Xe,"--n-scrollbar-color-hover":ct,"--n-scrollbar-border-radius":Mn,"--n-scrollbar-width":vn,"--n-scrollbar-height":qt,"--n-scrollbar-rail-top-horizontal-top":Rl,"--n-scrollbar-rail-right-horizontal-top":Oi,"--n-scrollbar-rail-bottom-horizontal-top":Di,"--n-scrollbar-rail-left-horizontal-top":Bl,"--n-scrollbar-rail-top-horizontal-bottom":Pl,"--n-scrollbar-rail-right-horizontal-bottom":Uo,"--n-scrollbar-rail-bottom-horizontal-bottom":Li,"--n-scrollbar-rail-left-horizontal-bottom":G,"--n-scrollbar-rail-top-vertical-right":me,"--n-scrollbar-rail-right-vertical-right":it,"--n-scrollbar-rail-bottom-vertical-right":Zt,"--n-scrollbar-rail-left-vertical-right":wn,"--n-scrollbar-rail-top-vertical-left":Kt,"--n-scrollbar-rail-right-vertical-left":yi,"--n-scrollbar-rail-bottom-vertical-left":Ei,"--n-scrollbar-rail-left-vertical-left":Ci,"--n-scrollbar-rail-color":zo}}),zr=n?ys("scrollbar",void 0,Qt,e):void 0;return Object.assign(Object.assign({},{scrollTo:ft,scrollBy:ar,sync:ye,syncUnifiedContainer:Pe,handleMouseEnterWrapper:E,handleMouseLeaveWrapper:de}),{mergedClsPrefix:t,rtlEnabled:s,containerScrollTop:y,wrapperRef:i,containerRef:a,contentRef:o,yRailRef:c,xRailRef:l,needYBar:K,needXBar:Qe,yBarSizePx:Z,xBarSizePx:re,yBarTopPx:he,xBarLeftPx:X,isShowXBar:De,isShowYBar:Be,isIos:N,handleScroll:q,handleContentResize:Ot,handleContainerResize:Ft,handleYScrollMouseDown:Us,handleXScrollMouseDown:It,cssVars:n?void 0:Qt,themeClass:zr?.themeClass,onRender:zr?.onRender})},render(){var e;const{$slots:t,mergedClsPrefix:n,triggerDisplayManually:r,rtlEnabled:s,internalHoistYRail:i,yPlacement:a,xPlacement:o,xScrollable:c}=this;if(!this.scrollable)return(e=t.default)===null||e===void 0?void 0:e.call(t);const l=this.trigger==="none",d=(h,b)=>R("div",{ref:"yRailRef",class:[`${n}-scrollbar-rail`,`${n}-scrollbar-rail--vertical`,`${n}-scrollbar-rail--vertical--${a}`,h],"data-scrollbar-rail":!0,style:[b||"",this.verticalRailStyle],"aria-hidden":!0},R(l?tE:xf,l?null:{name:"fade-in-transition"},{default:()=>this.needYBar&&this.isShowYBar&&!this.isIos?R("div",{class:`${n}-scrollbar-rail__scrollbar`,style:{height:this.yBarSizePx,top:this.yBarTopPx},onMousedown:this.handleYScrollMouseDown}):null})),f=()=>{var h,b;return(h=this.onRender)===null||h===void 0||h.call(this),R("div",dg(this.$attrs,{role:"none",ref:"wrapperRef",class:[`${n}-scrollbar`,this.themeClass,s&&`${n}-scrollbar--rtl`],style:this.cssVars,onMouseenter:r?void 0:this.handleMouseEnterWrapper,onMouseleave:r?void 0:this.handleMouseLeaveWrapper}),[this.container?(b=t.default)===null||b===void 0?void 0:b.call(t):R("div",{role:"none",ref:"containerRef",class:[`${n}-scrollbar-container`,this.containerClass],style:this.containerStyle,onScroll:this.handleScroll,onWheel:this.onWheel},R(ac,{onResize:this.handleContentResize},{default:()=>R("div",{ref:"contentRef",role:"none",style:[{width:this.xScrollable?"fit-content":null},this.contentStyle],class:[`${n}-scrollbar-content`,this.contentClass]},t)})),i?null:d(void 0,void 0),c&&R("div",{ref:"xRailRef",class:[`${n}-scrollbar-rail`,`${n}-scrollbar-rail--horizontal`,`${n}-scrollbar-rail--horizontal--${o}`],style:this.horizontalRailStyle,"data-scrollbar-rail":!0,"aria-hidden":!0},R(l?tE:xf,l?null:{name:"fade-in-transition"},{default:()=>this.needXBar&&this.isShowXBar&&!this.isIos?R("div",{class:`${n}-scrollbar-rail__scrollbar`,style:{width:this.xBarSizePx,right:s?this.xBarLeftPx:void 0,left:s?void 0:this.xBarLeftPx},onMousedown:this.handleXScrollMouseDown}):null}))])},m=this.container?f():R(ac,{onResize:this.handleContainerResize},{default:f});return i?R(fa,null,m,d(this.themeClass,this.cssVars)):m}}),{cubicBezierEaseIn:aE,cubicBezierEaseOut:oE}=ug;function qk({transformOrigin:e="inherit",duration:t=".2s",enterScale:n=".9",originalTransform:r="",originalTransition:s=""}={}){return[ce("&.fade-in-scale-up-transition-leave-active",{transformOrigin:e,transition:`opacity ${t} ${aE}, transform ${t} ${aE} ${s&&`,${s}`}`}),ce("&.fade-in-scale-up-transition-enter-active",{transformOrigin:e,transition:`opacity ${t} ${oE}, transform ${t} ${oE} ${s&&`,${s}`}`}),ce("&.fade-in-scale-up-transition-enter-from, &.fade-in-scale-up-transition-leave-to",{opacity:0,transform:`${r} scale(${n})`}),ce("&.fade-in-scale-up-transition-leave-from, &.fade-in-scale-up-transition-enter-to",{opacity:1,transform:`${r} scale(1)`})]}const jk=mt({name:"InternalSelectionSuffix",props:{clsPrefix:{type:String,required:!0},showArrow:{type:Boolean,default:void 0},showClear:{type:Boolean,default:void 0},loading:{type:Boolean,default:!1},onClear:Function},setup(e,{slots:t}){return()=>{const{clsPrefix:n}=e;return R(zx,{clsPrefix:n,class:`${n}-base-suffix`,strokeWidth:24,scale:.85,show:e.loading},{default:()=>e.showArrow?R(Mm,{clsPrefix:n,show:e.showClear,onClear:e.onClear},{placeholder:()=>R(Gs,{clsPrefix:n,class:`${n}-base-suffix__arrow`},{default:()=>ci(t.default,()=>[R(Pk,null)])})}):null})}}}),{cubicBezierEaseInOut:Mi}=ug;function Wk({duration:e=".2s",delay:t=".1s"}={}){return[ce("&.fade-in-width-expand-transition-leave-from, &.fade-in-width-expand-transition-enter-to",{opacity:1}),ce("&.fade-in-width-expand-transition-leave-to, &.fade-in-width-expand-transition-enter-from",`
99
- opacity: 0!important;
100
- margin-left: 0!important;
101
- margin-right: 0!important;
102
- `),ce("&.fade-in-width-expand-transition-leave-active",`
103
- overflow: hidden;
104
- transition:
105
- opacity ${e} ${Mi},
106
- max-width ${e} ${Mi} ${t},
107
- margin-left ${e} ${Mi} ${t},
108
- margin-right ${e} ${Mi} ${t};
109
- `),ce("&.fade-in-width-expand-transition-enter-active",`
110
- overflow: hidden;
111
- transition:
112
- opacity ${e} ${Mi} ${t},
113
- max-width ${e} ${Mi},
114
- margin-left ${e} ${Mi},
115
- margin-right ${e} ${Mi};
116
- `)]}const Gk=j("base-wave",`
117
- position: absolute;
118
- left: 0;
119
- right: 0;
120
- top: 0;
121
- bottom: 0;
122
- border-radius: inherit;
123
- `),Vk=mt({name:"BaseWave",props:{clsPrefix:{type:String,required:!0}},setup(e){dh("-base-wave",Gk,on(e,"clsPrefix"));const t=Me(null),n=Me(!1);let r=null;return gi(()=>{r!==null&&window.clearTimeout(r)}),{active:n,selfRef:t,play(){r!==null&&(window.clearTimeout(r),n.value=!1,r=null),Qi(()=>{var s;(s=t.value)===null||s===void 0||s.offsetHeight,n.value=!0,r=window.setTimeout(()=>{n.value=!1,r=null},1e3)})}}},render(){const{clsPrefix:e}=this;return R("div",{ref:"selfRef","aria-hidden":!0,class:[`${e}-base-wave`,this.active&&`${e}-base-wave--active`]})}}),Kk=nl&&"chrome"in window;nl&&navigator.userAgent.includes("Firefox");const Ev=nl&&navigator.userAgent.includes("Safari")&&!Kk,Yk={paddingTiny:"0 8px",paddingSmall:"0 10px",paddingMedium:"0 12px",paddingLarge:"0 14px",clearSize:"16px"};function Xk(e){const{textColor2:t,textColor3:n,textColorDisabled:r,primaryColor:s,primaryColorHover:i,inputColor:a,inputColorDisabled:o,borderColor:c,warningColor:l,warningColorHover:d,errorColor:f,errorColorHover:m,borderRadius:h,lineHeight:b,fontSizeTiny:g,fontSizeSmall:y,fontSizeMedium:p,fontSizeLarge:C,heightTiny:w,heightSmall:_,heightMedium:S,heightLarge:A,actionColor:v,clearColor:O,clearColorHover:z,clearColorPressed:Q,placeholderColor:be,placeholderColorDisabled:N,iconColor:Y,iconColorDisabled:x,iconColorHover:Z,iconColorPressed:Le,fontWeight:re}=e;return Object.assign(Object.assign({},Yk),{fontWeight:re,countTextColorDisabled:r,countTextColor:n,heightTiny:w,heightSmall:_,heightMedium:S,heightLarge:A,fontSizeTiny:g,fontSizeSmall:y,fontSizeMedium:p,fontSizeLarge:C,lineHeight:b,lineHeightTextarea:b,borderRadius:h,iconSize:"16px",groupLabelColor:v,groupLabelTextColor:t,textColor:t,textColorDisabled:r,textDecorationColor:t,caretColor:s,placeholderColor:be,placeholderColorDisabled:N,color:a,colorDisabled:o,colorFocus:a,groupLabelBorder:`1px solid ${c}`,border:`1px solid ${c}`,borderHover:`1px solid ${i}`,borderDisabled:`1px solid ${c}`,borderFocus:`1px solid ${i}`,boxShadowFocus:`0 0 0 2px ${ai(s,{alpha:.2})}`,loadingColor:s,loadingColorWarning:l,borderWarning:`1px solid ${l}`,borderHoverWarning:`1px solid ${d}`,colorFocusWarning:a,borderFocusWarning:`1px solid ${d}`,boxShadowFocusWarning:`0 0 0 2px ${ai(l,{alpha:.2})}`,caretColorWarning:l,loadingColorError:f,borderError:`1px solid ${f}`,borderHoverError:`1px solid ${m}`,colorFocusError:a,borderFocusError:`1px solid ${m}`,boxShadowFocusError:`0 0 0 2px ${ai(f,{alpha:.2})}`,caretColorError:f,clearColor:O,clearColorHover:z,clearColorPressed:Q,iconColor:Y,iconColorDisabled:x,iconColorHover:Z,iconColorPressed:Le,suffixTextColor:t})}const Qk={common:ps,self:Xk},Cv=cs("n-input"),Zk=j("input",`
124
- max-width: 100%;
125
- cursor: text;
126
- line-height: 1.5;
127
- z-index: auto;
128
- outline: none;
129
- box-sizing: border-box;
130
- position: relative;
131
- display: inline-flex;
132
- border-radius: var(--n-border-radius);
133
- background-color: var(--n-color);
134
- transition: background-color .3s var(--n-bezier);
135
- font-size: var(--n-font-size);
136
- font-weight: var(--n-font-weight);
137
- --n-padding-vertical: calc((var(--n-height) - 1.5 * var(--n-font-size)) / 2);
138
- `,[J("input, textarea",`
139
- overflow: hidden;
140
- flex-grow: 1;
141
- position: relative;
142
- `),J("input-el, textarea-el, input-mirror, textarea-mirror, separator, placeholder",`
143
- box-sizing: border-box;
144
- font-size: inherit;
145
- line-height: 1.5;
146
- font-family: inherit;
147
- border: none;
148
- outline: none;
149
- background-color: #0000;
150
- text-align: inherit;
151
- transition:
152
- -webkit-text-fill-color .3s var(--n-bezier),
153
- caret-color .3s var(--n-bezier),
154
- color .3s var(--n-bezier),
155
- text-decoration-color .3s var(--n-bezier);
156
- `),J("input-el, textarea-el",`
157
- -webkit-appearance: none;
158
- scrollbar-width: none;
159
- width: 100%;
160
- min-width: 0;
161
- text-decoration-color: var(--n-text-decoration-color);
162
- color: var(--n-text-color);
163
- caret-color: var(--n-caret-color);
164
- background-color: transparent;
165
- `,[ce("&::-webkit-scrollbar, &::-webkit-scrollbar-track-piece, &::-webkit-scrollbar-thumb",`
166
- width: 0;
167
- height: 0;
168
- display: none;
169
- `),ce("&::placeholder",`
170
- color: #0000;
171
- -webkit-text-fill-color: transparent !important;
172
- `),ce("&:-webkit-autofill ~",[J("placeholder","display: none;")])]),oe("round",[jr("textarea","border-radius: calc(var(--n-height) / 2);")]),J("placeholder",`
173
- pointer-events: none;
174
- position: absolute;
175
- left: 0;
176
- right: 0;
177
- top: 0;
178
- bottom: 0;
179
- overflow: hidden;
180
- color: var(--n-placeholder-color);
181
- `,[ce("span",`
182
- width: 100%;
183
- display: inline-block;
184
- `)]),oe("textarea",[J("placeholder","overflow: visible;")]),jr("autosize","width: 100%;"),oe("autosize",[J("textarea-el, input-el",`
185
- position: absolute;
186
- top: 0;
187
- left: 0;
188
- height: 100%;
189
- `)]),j("input-wrapper",`
190
- overflow: hidden;
191
- display: inline-flex;
192
- flex-grow: 1;
193
- position: relative;
194
- padding-left: var(--n-padding-left);
195
- padding-right: var(--n-padding-right);
196
- `),J("input-mirror",`
197
- padding: 0;
198
- height: var(--n-height);
199
- line-height: var(--n-height);
200
- overflow: hidden;
201
- visibility: hidden;
202
- position: static;
203
- white-space: pre;
204
- pointer-events: none;
205
- `),J("input-el",`
206
- padding: 0;
207
- height: var(--n-height);
208
- line-height: var(--n-height);
209
- `,[ce("&[type=password]::-ms-reveal","display: none;"),ce("+",[J("placeholder",`
210
- display: flex;
211
- align-items: center;
212
- `)])]),jr("textarea",[J("placeholder","white-space: nowrap;")]),J("eye",`
213
- display: flex;
214
- align-items: center;
215
- justify-content: center;
216
- transition: color .3s var(--n-bezier);
217
- `),oe("textarea","width: 100%;",[j("input-word-count",`
218
- position: absolute;
219
- right: var(--n-padding-right);
220
- bottom: var(--n-padding-vertical);
221
- `),oe("resizable",[j("input-wrapper",`
222
- resize: vertical;
223
- min-height: var(--n-height);
224
- `)]),J("textarea-el, textarea-mirror, placeholder",`
225
- height: 100%;
226
- padding-left: 0;
227
- padding-right: 0;
228
- padding-top: var(--n-padding-vertical);
229
- padding-bottom: var(--n-padding-vertical);
230
- word-break: break-word;
231
- display: inline-block;
232
- vertical-align: bottom;
233
- box-sizing: border-box;
234
- line-height: var(--n-line-height-textarea);
235
- margin: 0;
236
- resize: none;
237
- white-space: pre-wrap;
238
- scroll-padding-block-end: var(--n-padding-vertical);
239
- `),J("textarea-mirror",`
240
- width: 100%;
241
- pointer-events: none;
242
- overflow: hidden;
243
- visibility: hidden;
244
- position: static;
245
- white-space: pre-wrap;
246
- overflow-wrap: break-word;
247
- `)]),oe("pair",[J("input-el, placeholder","text-align: center;"),J("separator",`
248
- display: flex;
249
- align-items: center;
250
- transition: color .3s var(--n-bezier);
251
- color: var(--n-text-color);
252
- white-space: nowrap;
253
- `,[j("icon",`
254
- color: var(--n-icon-color);
255
- `),j("base-icon",`
256
- color: var(--n-icon-color);
257
- `)])]),oe("disabled",`
258
- cursor: not-allowed;
259
- background-color: var(--n-color-disabled);
260
- `,[J("border","border: var(--n-border-disabled);"),J("input-el, textarea-el",`
261
- cursor: not-allowed;
262
- color: var(--n-text-color-disabled);
263
- text-decoration-color: var(--n-text-color-disabled);
264
- `),J("placeholder","color: var(--n-placeholder-color-disabled);"),J("separator","color: var(--n-text-color-disabled);",[j("icon",`
265
- color: var(--n-icon-color-disabled);
266
- `),j("base-icon",`
267
- color: var(--n-icon-color-disabled);
268
- `)]),j("input-word-count",`
269
- color: var(--n-count-text-color-disabled);
270
- `),J("suffix, prefix","color: var(--n-text-color-disabled);",[j("icon",`
271
- color: var(--n-icon-color-disabled);
272
- `),j("internal-icon",`
273
- color: var(--n-icon-color-disabled);
274
- `)])]),jr("disabled",[J("eye",`
275
- color: var(--n-icon-color);
276
- cursor: pointer;
277
- `,[ce("&:hover",`
278
- color: var(--n-icon-color-hover);
279
- `),ce("&:active",`
280
- color: var(--n-icon-color-pressed);
281
- `)]),ce("&:hover",[J("state-border","border: var(--n-border-hover);")]),oe("focus","background-color: var(--n-color-focus);",[J("state-border",`
282
- border: var(--n-border-focus);
283
- box-shadow: var(--n-box-shadow-focus);
284
- `)])]),J("border, state-border",`
285
- box-sizing: border-box;
286
- position: absolute;
287
- left: 0;
288
- right: 0;
289
- top: 0;
290
- bottom: 0;
291
- pointer-events: none;
292
- border-radius: inherit;
293
- border: var(--n-border);
294
- transition:
295
- box-shadow .3s var(--n-bezier),
296
- border-color .3s var(--n-bezier);
297
- `),J("state-border",`
298
- border-color: #0000;
299
- z-index: 1;
300
- `),J("prefix","margin-right: 4px;"),J("suffix",`
301
- margin-left: 4px;
302
- `),J("suffix, prefix",`
303
- transition: color .3s var(--n-bezier);
304
- flex-wrap: nowrap;
305
- flex-shrink: 0;
306
- line-height: var(--n-height);
307
- white-space: nowrap;
308
- display: inline-flex;
309
- align-items: center;
310
- justify-content: center;
311
- color: var(--n-suffix-text-color);
312
- `,[j("base-loading",`
313
- font-size: var(--n-icon-size);
314
- margin: 0 2px;
315
- color: var(--n-loading-color);
316
- `),j("base-clear",`
317
- font-size: var(--n-icon-size);
318
- `,[J("placeholder",[j("base-icon",`
319
- transition: color .3s var(--n-bezier);
320
- color: var(--n-icon-color);
321
- font-size: var(--n-icon-size);
322
- `)])]),ce(">",[j("icon",`
323
- transition: color .3s var(--n-bezier);
324
- color: var(--n-icon-color);
325
- font-size: var(--n-icon-size);
326
- `)]),j("base-icon",`
327
- font-size: var(--n-icon-size);
328
- `)]),j("input-word-count",`
329
- pointer-events: none;
330
- line-height: 1.5;
331
- font-size: .85em;
332
- color: var(--n-count-text-color);
333
- transition: color .3s var(--n-bezier);
334
- margin-left: 4px;
335
- font-variant: tabular-nums;
336
- `),["warning","error"].map(e=>oe(`${e}-status`,[jr("disabled",[j("base-loading",`
337
- color: var(--n-loading-color-${e})
338
- `),J("input-el, textarea-el",`
339
- caret-color: var(--n-caret-color-${e});
340
- `),J("state-border",`
341
- border: var(--n-border-${e});
342
- `),ce("&:hover",[J("state-border",`
343
- border: var(--n-border-hover-${e});
344
- `)]),ce("&:focus",`
345
- background-color: var(--n-color-focus-${e});
346
- `,[J("state-border",`
347
- box-shadow: var(--n-box-shadow-focus-${e});
348
- border: var(--n-border-focus-${e});
349
- `)]),oe("focus",`
350
- background-color: var(--n-color-focus-${e});
351
- `,[J("state-border",`
352
- box-shadow: var(--n-box-shadow-focus-${e});
353
- border: var(--n-border-focus-${e});
354
- `)])])]))]),Jk=j("input",[oe("disabled",[J("input-el, textarea-el",`
355
- -webkit-text-fill-color: var(--n-text-color-disabled);
356
- `)])]);function eI(e){let t=0;for(const n of e)t++;return t}function id(e){return e===""||e==null}function tI(e){const t=Me(null);function n(){const{value:i}=e;if(!i?.focus){s();return}const{selectionStart:a,selectionEnd:o,value:c}=i;if(a==null||o==null){s();return}t.value={start:a,end:o,beforeText:c.slice(0,a),afterText:c.slice(o)}}function r(){var i;const{value:a}=t,{value:o}=e;if(!a||!o)return;const{value:c}=o,{start:l,beforeText:d,afterText:f}=a;let m=c.length;if(c.endsWith(f))m=c.length-f.length;else if(c.startsWith(d))m=d.length;else{const h=d[l-1],b=c.indexOf(h,l-1);b!==-1&&(m=b+1)}(i=o.setSelectionRange)===null||i===void 0||i.call(o,m,m)}function s(){t.value=null}return rs(e,s),{recordCursor:n,restoreCursor:r}}const cE=mt({name:"InputWordCount",setup(e,{slots:t}){const{mergedValueRef:n,maxlengthRef:r,mergedClsPrefixRef:s,countGraphemesRef:i}=os(Cv),a=Fe(()=>{const{value:o}=n;return o===null||Array.isArray(o)?0:(i.value||eI)(o)});return()=>{const{value:o}=r,{value:c}=n;return R("span",{class:`${s.value}-input-word-count`},Lm(t.default,{value:c===null||Array.isArray(c)?"":c},()=>[o===void 0?a.value:`${a.value} / ${o}`]))}}}),nI=Object.assign(Object.assign({},nn.props),{bordered:{type:Boolean,default:void 0},type:{type:String,default:"text"},placeholder:[Array,String],defaultValue:{type:[String,Array],default:null},value:[String,Array],disabled:{type:Boolean,default:void 0},size:String,rows:{type:[Number,String],default:3},round:Boolean,minlength:[String,Number],maxlength:[String,Number],clearable:Boolean,autosize:{type:[Boolean,Object],default:!1},pair:Boolean,separator:String,readonly:{type:[String,Boolean],default:!1},passivelyActivated:Boolean,showPasswordOn:String,stateful:{type:Boolean,default:!0},autofocus:Boolean,inputProps:Object,resizable:{type:Boolean,default:!0},showCount:Boolean,loading:{type:Boolean,default:void 0},allowInput:Function,renderCount:Function,onMousedown:Function,onKeydown:Function,onKeyup:[Function,Array],onInput:[Function,Array],onFocus:[Function,Array],onBlur:[Function,Array],onClick:[Function,Array],onChange:[Function,Array],onClear:[Function,Array],countGraphemes:Function,status:String,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],textDecoration:[String,Array],attrSize:{type:Number,default:20},onInputBlur:[Function,Array],onInputFocus:[Function,Array],onDeactivate:[Function,Array],onActivate:[Function,Array],onWrapperFocus:[Function,Array],onWrapperBlur:[Function,Array],internalDeactivateOnEnter:Boolean,internalForceFocus:Boolean,internalLoadingBeforeSuffix:{type:Boolean,default:!0},showPasswordToggle:Boolean}),hr=mt({name:"Input",props:nI,slots:Object,setup(e){const{mergedClsPrefixRef:t,mergedBorderedRef:n,inlineThemeDisabled:r,mergedRtlRef:s}=Er(e),i=nn("Input","-input",Zk,Qk,e,t);Ev&&dh("-input-safari",Jk,t);const a=Me(null),o=Me(null),c=Me(null),l=Me(null),d=Me(null),f=Me(null),m=Me(null),h=tI(m),b=Me(null),{localeRef:g}=Ik("Input"),y=Me(e.defaultValue),p=on(e,"value"),C=tl(p,y),w=Pu(e),{mergedSizeRef:_,mergedDisabledRef:S,mergedStatusRef:A}=w,v=Me(!1),O=Me(!1),z=Me(!1),Q=Me(!1);let be=null;const N=Fe(()=>{const{placeholder:G,pair:me}=e;return me?Array.isArray(G)?G:G===void 0?["",""]:[G,G]:G===void 0?[g.value.placeholder]:[G]}),Y=Fe(()=>{const{value:G}=z,{value:me}=C,{value:it}=N;return!G&&(id(me)||Array.isArray(me)&&id(me[0]))&&it[0]}),x=Fe(()=>{const{value:G}=z,{value:me}=C,{value:it}=N;return!G&&it[1]&&(id(me)||Array.isArray(me)&&id(me[1]))}),Z=go(()=>e.internalForceFocus||v.value),Le=go(()=>{if(S.value||e.readonly||!e.clearable||!Z.value&&!O.value)return!1;const{value:G}=C,{value:me}=Z;return e.pair?!!(Array.isArray(G)&&(G[0]||G[1]))&&(O.value||me):!!G&&(O.value||me)}),re=Fe(()=>{const{showPasswordOn:G}=e;if(G)return G;if(e.showPasswordToggle)return"click"}),He=Me(!1),he=Fe(()=>{const{textDecoration:G}=e;return G?Array.isArray(G)?G.map(me=>({textDecoration:me})):[{textDecoration:G}]:["",""]}),ze=Me(void 0),X=()=>{var G,me;if(e.type==="textarea"){const{autosize:it}=e;if(it&&(ze.value=(me=(G=b.value)===null||G===void 0?void 0:G.$el)===null||me===void 0?void 0:me.offsetWidth),!o.value||typeof it=="boolean")return;const{paddingTop:Zt,paddingBottom:wn,lineHeight:Kt}=window.getComputedStyle(o.value),yi=Number(Zt.slice(0,-2)),Ei=Number(wn.slice(0,-2)),Ci=Number(Kt.slice(0,-2)),{value:Nl}=c;if(!Nl)return;if(it.minRows){const Ol=Math.max(it.minRows,1),qh=`${yi+Ei+Ci*Ol}px`;Nl.style.minHeight=qh}if(it.maxRows){const Ol=`${yi+Ei+Ci*it.maxRows}px`;Nl.style.maxHeight=Ol}}},K=Fe(()=>{const{maxlength:G}=e;return G===void 0?void 0:Number(G)});To(()=>{const{value:G}=C;Array.isArray(G)||cr(G)});const Qe=ig().proxy;function De(G,me){const{onUpdateValue:it,"onUpdate:value":Zt,onInput:wn}=e,{nTriggerFormInput:Kt}=w;it&&vt(it,G,me),Zt&&vt(Zt,G,me),wn&&vt(wn,G,me),y.value=G,Kt()}function Be(G,me){const{onChange:it}=e,{nTriggerFormChange:Zt}=w;it&&vt(it,G,me),y.value=G,Zt()}function et(G){const{onBlur:me}=e,{nTriggerFormBlur:it}=w;me&&vt(me,G),it()}function Wt(G){const{onFocus:me}=e,{nTriggerFormFocus:it}=w;me&&vt(me,G),it()}function ft(G){const{onClear:me}=e;me&&vt(me,G)}function Ke(G){const{onInputBlur:me}=e;me&&vt(me,G)}function Ot(G){const{onInputFocus:me}=e;me&&vt(me,G)}function Ft(){const{onDeactivate:G}=e;G&&vt(G)}function ar(){const{onActivate:G}=e;G&&vt(G)}function Sn(G){const{onClick:me}=e;me&&vt(me,G)}function E(G){const{onWrapperFocus:me}=e;me&&vt(me,G)}function de(G){const{onWrapperBlur:me}=e;me&&vt(me,G)}function se(){z.value=!0}function L(G){z.value=!1,G.target===f.value?I(G,1):I(G,0)}function I(G,me=0,it="input"){const Zt=G.target.value;if(cr(Zt),G instanceof InputEvent&&!G.isComposing&&(z.value=!1),e.type==="textarea"){const{value:Kt}=b;Kt&&Kt.syncUnifiedContainer()}if(be=Zt,z.value)return;h.recordCursor();const wn=W(Zt);if(wn)if(!e.pair)it==="input"?De(Zt,{source:me}):Be(Zt,{source:me});else{let{value:Kt}=C;Array.isArray(Kt)?Kt=[Kt[0],Kt[1]]:Kt=["",""],Kt[me]=Zt,it==="input"?De(Kt,{source:me}):Be(Kt,{source:me})}Qe.$forceUpdate(),wn||Qi(h.restoreCursor)}function W(G){const{countGraphemes:me,maxlength:it,minlength:Zt}=e;if(me){let Kt;if(it!==void 0&&(Kt===void 0&&(Kt=me(G)),Kt>Number(it))||Zt!==void 0&&(Kt===void 0&&(Kt=me(G)),Kt<Number(it)))return!1}const{allowInput:wn}=e;return typeof wn=="function"?wn(G):!0}function U(G){Ke(G),G.relatedTarget===a.value&&Ft(),G.relatedTarget!==null&&(G.relatedTarget===d.value||G.relatedTarget===f.value||G.relatedTarget===o.value)||(Q.value=!1),Pe(G,"blur"),m.value=null}function q(G,me){Ot(G),v.value=!0,Q.value=!0,ar(),Pe(G,"focus"),me===0?m.value=d.value:me===1?m.value=f.value:me===2&&(m.value=o.value)}function $(G){e.passivelyActivated&&(de(G),Pe(G,"blur"))}function ae(G){e.passivelyActivated&&(v.value=!0,E(G),Pe(G,"focus"))}function Pe(G,me){G.relatedTarget!==null&&(G.relatedTarget===d.value||G.relatedTarget===f.value||G.relatedTarget===o.value||G.relatedTarget===a.value)||(me==="focus"?(Wt(G),v.value=!0):me==="blur"&&(et(G),v.value=!1))}function ye(G,me){I(G,me,"change")}function Ye(G){Sn(G)}function It(G){ft(G),ht()}function ht(){e.pair?(De(["",""],{source:"clear"}),Be(["",""],{source:"clear"})):(De("",{source:"clear"}),Be("",{source:"clear"}))}function Zn(G){const{onMousedown:me}=e;me&&me(G);const{tagName:it}=G.target;if(it!=="INPUT"&&it!=="TEXTAREA"){if(e.resizable){const{value:Zt}=a;if(Zt){const{left:wn,top:Kt,width:yi,height:Ei}=Zt.getBoundingClientRect(),Ci=14;if(wn+yi-Ci<G.clientX&&G.clientX<wn+yi&&Kt+Ei-Ci<G.clientY&&G.clientY<Kt+Ei)return}}G.preventDefault(),v.value||ct()}}function Us(){var G;O.value=!0,e.type==="textarea"&&((G=b.value)===null||G===void 0||G.handleMouseEnterWrapper())}function or(){var G;O.value=!1,e.type==="textarea"&&((G=b.value)===null||G===void 0||G.handleMouseLeaveWrapper())}function us(){S.value||re.value==="click"&&(He.value=!He.value)}function Qt(G){if(S.value)return;G.preventDefault();const me=Zt=>{Zt.preventDefault(),mr("mouseup",document,me)};if(Yn("mouseup",document,me),re.value!=="mousedown")return;He.value=!0;const it=()=>{He.value=!1,mr("mouseup",document,it)};Yn("mouseup",document,it)}function zr(G){e.onKeyup&&vt(e.onKeyup,G)}function Ni(G){switch(e.onKeydown&&vt(e.onKeydown,G),G.key){case"Escape":Xe();break;case"Enter":we(G);break}}function we(G){var me,it;if(e.passivelyActivated){const{value:Zt}=Q;if(Zt){e.internalDeactivateOnEnter&&Xe();return}G.preventDefault(),e.type==="textarea"?(me=o.value)===null||me===void 0||me.focus():(it=d.value)===null||it===void 0||it.focus()}}function Xe(){e.passivelyActivated&&(Q.value=!1,Qi(()=>{var G;(G=a.value)===null||G===void 0||G.focus()}))}function ct(){var G,me,it;S.value||(e.passivelyActivated?(G=a.value)===null||G===void 0||G.focus():((me=o.value)===null||me===void 0||me.focus(),(it=d.value)===null||it===void 0||it.focus()))}function qt(){var G;!((G=a.value)===null||G===void 0)&&G.contains(document.activeElement)&&document.activeElement.blur()}function vn(){var G,me;(G=o.value)===null||G===void 0||G.select(),(me=d.value)===null||me===void 0||me.select()}function Mn(){S.value||(o.value?o.value.focus():d.value&&d.value.focus())}function Tn(){const{value:G}=a;G?.contains(document.activeElement)&&G!==document.activeElement&&Xe()}function Ut(G){if(e.type==="textarea"){const{value:me}=o;me?.scrollTo(G)}else{const{value:me}=d;me?.scrollTo(G)}}function cr(G){const{type:me,pair:it,autosize:Zt}=e;if(!it&&Zt)if(me==="textarea"){const{value:wn}=c;wn&&(wn.textContent=`${G??""}\r
357
- `)}else{const{value:wn}=l;wn&&(G?wn.textContent=G:wn.innerHTML="&nbsp;")}}function xs(){X()}const zo=Me({top:"0"});function Rl(G){var me;const{scrollTop:it}=G.target;zo.value.top=`${-it}px`,(me=b.value)===null||me===void 0||me.syncUnifiedContainer()}let Oi=null;Cf(()=>{const{autosize:G,type:me}=e;G&&me==="textarea"?Oi=rs(C,it=>{!Array.isArray(it)&&it!==be&&cr(it)}):Oi?.()});let Di=null;Cf(()=>{e.type==="textarea"?Di=rs(C,G=>{var me;!Array.isArray(G)&&G!==be&&((me=b.value)===null||me===void 0||me.syncUnifiedContainer())}):Di?.()}),oi(Cv,{mergedValueRef:C,maxlengthRef:K,mergedClsPrefixRef:t,countGraphemesRef:on(e,"countGraphemes")});const Bl={wrapperElRef:a,inputElRef:d,textareaElRef:o,isCompositing:z,clear:ht,focus:ct,blur:qt,select:vn,deactivate:Tn,activate:Mn,scrollTo:Ut},Pl=Vs("Input",s,t),Uo=Fe(()=>{const{value:G}=_,{common:{cubicBezierEaseInOut:me},self:{color:it,borderRadius:Zt,textColor:wn,caretColor:Kt,caretColorError:yi,caretColorWarning:Ei,textDecorationColor:Ci,border:Nl,borderDisabled:Ol,borderHover:qh,borderFocus:x2,placeholderColor:v2,placeholderColorDisabled:_2,lineHeightTextarea:S2,colorDisabled:T2,colorFocus:w2,textColorDisabled:A2,boxShadowFocus:k2,iconSize:I2,colorFocusWarning:R2,boxShadowFocusWarning:B2,borderWarning:P2,borderFocusWarning:N2,borderHoverWarning:O2,colorFocusError:D2,boxShadowFocusError:L2,borderError:M2,borderFocusError:F2,borderHoverError:z2,clearSize:U2,clearColor:$2,clearColorHover:H2,clearColorPressed:q2,iconColor:j2,iconColorDisabled:W2,suffixTextColor:G2,countTextColor:V2,countTextColorDisabled:K2,iconColorHover:Y2,iconColorPressed:X2,loadingColor:Q2,loadingColorError:Z2,loadingColorWarning:J2,fontWeight:eA,[Ge("padding",G)]:tA,[Ge("fontSize",G)]:nA,[Ge("height",G)]:rA}}=i.value,{left:sA,right:iA}=ks(tA);return{"--n-bezier":me,"--n-count-text-color":V2,"--n-count-text-color-disabled":K2,"--n-color":it,"--n-font-size":nA,"--n-font-weight":eA,"--n-border-radius":Zt,"--n-height":rA,"--n-padding-left":sA,"--n-padding-right":iA,"--n-text-color":wn,"--n-caret-color":Kt,"--n-text-decoration-color":Ci,"--n-border":Nl,"--n-border-disabled":Ol,"--n-border-hover":qh,"--n-border-focus":x2,"--n-placeholder-color":v2,"--n-placeholder-color-disabled":_2,"--n-icon-size":I2,"--n-line-height-textarea":S2,"--n-color-disabled":T2,"--n-color-focus":w2,"--n-text-color-disabled":A2,"--n-box-shadow-focus":k2,"--n-loading-color":Q2,"--n-caret-color-warning":Ei,"--n-color-focus-warning":R2,"--n-box-shadow-focus-warning":B2,"--n-border-warning":P2,"--n-border-focus-warning":N2,"--n-border-hover-warning":O2,"--n-loading-color-warning":J2,"--n-caret-color-error":yi,"--n-color-focus-error":D2,"--n-box-shadow-focus-error":L2,"--n-border-error":M2,"--n-border-focus-error":F2,"--n-border-hover-error":z2,"--n-loading-color-error":Z2,"--n-clear-color":$2,"--n-clear-size":U2,"--n-clear-color-hover":H2,"--n-clear-color-pressed":q2,"--n-icon-color":j2,"--n-icon-color-hover":Y2,"--n-icon-color-pressed":X2,"--n-icon-color-disabled":W2,"--n-suffix-text-color":G2}}),Li=r?ys("input",Fe(()=>{const{value:G}=_;return G[0]}),Uo,e):void 0;return Object.assign(Object.assign({},Bl),{wrapperElRef:a,inputElRef:d,inputMirrorElRef:l,inputEl2Ref:f,textareaElRef:o,textareaMirrorElRef:c,textareaScrollbarInstRef:b,rtlEnabled:Pl,uncontrolledValue:y,mergedValue:C,passwordVisible:He,mergedPlaceholder:N,showPlaceholder1:Y,showPlaceholder2:x,mergedFocus:Z,isComposing:z,activated:Q,showClearButton:Le,mergedSize:_,mergedDisabled:S,textDecorationStyle:he,mergedClsPrefix:t,mergedBordered:n,mergedShowPasswordOn:re,placeholderStyle:zo,mergedStatus:A,textAreaScrollContainerWidth:ze,handleTextAreaScroll:Rl,handleCompositionStart:se,handleCompositionEnd:L,handleInput:I,handleInputBlur:U,handleInputFocus:q,handleWrapperBlur:$,handleWrapperFocus:ae,handleMouseEnter:Us,handleMouseLeave:or,handleMouseDown:Zn,handleChange:ye,handleClick:Ye,handleClear:It,handlePasswordToggleClick:us,handlePasswordToggleMousedown:Qt,handleWrapperKeydown:Ni,handleWrapperKeyup:zr,handleTextAreaMirrorResize:xs,getTextareaScrollContainer:()=>o.value,mergedTheme:i,cssVars:r?void 0:Uo,themeClass:Li?.themeClass,onRender:Li?.onRender})},render(){var e,t;const{mergedClsPrefix:n,mergedStatus:r,themeClass:s,type:i,countGraphemes:a,onRender:o}=this,c=this.$slots;return o?.(),R("div",{ref:"wrapperElRef",class:[`${n}-input`,s,r&&`${n}-input--${r}-status`,{[`${n}-input--rtl`]:this.rtlEnabled,[`${n}-input--disabled`]:this.mergedDisabled,[`${n}-input--textarea`]:i==="textarea",[`${n}-input--resizable`]:this.resizable&&!this.autosize,[`${n}-input--autosize`]:this.autosize,[`${n}-input--round`]:this.round&&i!=="textarea",[`${n}-input--pair`]:this.pair,[`${n}-input--focus`]:this.mergedFocus,[`${n}-input--stateful`]:this.stateful}],style:this.cssVars,tabindex:!this.mergedDisabled&&this.passivelyActivated&&!this.activated?0:void 0,onFocus:this.handleWrapperFocus,onBlur:this.handleWrapperBlur,onClick:this.handleClick,onMousedown:this.handleMouseDown,onMouseenter:this.handleMouseEnter,onMouseleave:this.handleMouseLeave,onCompositionstart:this.handleCompositionStart,onCompositionend:this.handleCompositionEnd,onKeyup:this.handleWrapperKeyup,onKeydown:this.handleWrapperKeydown},R("div",{class:`${n}-input-wrapper`},$n(c.prefix,l=>l&&R("div",{class:`${n}-input__prefix`},l)),i==="textarea"?R(yv,{ref:"textareaScrollbarInstRef",class:`${n}-input__textarea`,container:this.getTextareaScrollContainer,triggerDisplayManually:!0,useUnifiedContainer:!0,internalHoistYRail:!0},{default:()=>{var l,d;const{textAreaScrollContainerWidth:f}=this,m={width:this.autosize&&f&&`${f}px`};return R(fa,null,R("textarea",Object.assign({},this.inputProps,{ref:"textareaElRef",class:[`${n}-input__textarea-el`,(l=this.inputProps)===null||l===void 0?void 0:l.class],autofocus:this.autofocus,rows:Number(this.rows),placeholder:this.placeholder,value:this.mergedValue,disabled:this.mergedDisabled,maxlength:a?void 0:this.maxlength,minlength:a?void 0:this.minlength,readonly:this.readonly,tabindex:this.passivelyActivated&&!this.activated?-1:void 0,style:[this.textDecorationStyle[0],(d=this.inputProps)===null||d===void 0?void 0:d.style,m],onBlur:this.handleInputBlur,onFocus:h=>{this.handleInputFocus(h,2)},onInput:this.handleInput,onChange:this.handleChange,onScroll:this.handleTextAreaScroll})),this.showPlaceholder1?R("div",{class:`${n}-input__placeholder`,style:[this.placeholderStyle,m],key:"placeholder"},this.mergedPlaceholder[0]):null,this.autosize?R(ac,{onResize:this.handleTextAreaMirrorResize},{default:()=>R("div",{ref:"textareaMirrorElRef",class:`${n}-input__textarea-mirror`,key:"mirror"})}):null)}}):R("div",{class:`${n}-input__input`},R("input",Object.assign({type:i==="password"&&this.mergedShowPasswordOn&&this.passwordVisible?"text":i},this.inputProps,{ref:"inputElRef",class:[`${n}-input__input-el`,(e=this.inputProps)===null||e===void 0?void 0:e.class],style:[this.textDecorationStyle[0],(t=this.inputProps)===null||t===void 0?void 0:t.style],tabindex:this.passivelyActivated&&!this.activated?-1:void 0,placeholder:this.mergedPlaceholder[0],disabled:this.mergedDisabled,maxlength:a?void 0:this.maxlength,minlength:a?void 0:this.minlength,value:Array.isArray(this.mergedValue)?this.mergedValue[0]:this.mergedValue,readonly:this.readonly,autofocus:this.autofocus,size:this.attrSize,onBlur:this.handleInputBlur,onFocus:l=>{this.handleInputFocus(l,0)},onInput:l=>{this.handleInput(l,0)},onChange:l=>{this.handleChange(l,0)}})),this.showPlaceholder1?R("div",{class:`${n}-input__placeholder`},R("span",null,this.mergedPlaceholder[0])):null,this.autosize?R("div",{class:`${n}-input__input-mirror`,key:"mirror",ref:"inputMirrorElRef"}," "):null),!this.pair&&$n(c.suffix,l=>l||this.clearable||this.showCount||this.mergedShowPasswordOn||this.loading!==void 0?R("div",{class:`${n}-input__suffix`},[$n(c["clear-icon-placeholder"],d=>(this.clearable||d)&&R(Mm,{clsPrefix:n,show:this.showClearButton,onClear:this.handleClear},{placeholder:()=>d,icon:()=>{var f,m;return(m=(f=this.$slots)["clear-icon"])===null||m===void 0?void 0:m.call(f)}})),this.internalLoadingBeforeSuffix?null:l,this.loading!==void 0?R(jk,{clsPrefix:n,loading:this.loading,showArrow:!1,showClear:!1,style:this.cssVars}):null,this.internalLoadingBeforeSuffix?l:null,this.showCount&&this.type!=="textarea"?R(cE,null,{default:d=>{var f;const{renderCount:m}=this;return m?m(d):(f=c.count)===null||f===void 0?void 0:f.call(c,d)}}):null,this.mergedShowPasswordOn&&this.type==="password"?R("div",{class:`${n}-input__eye`,onMousedown:this.handlePasswordToggleMousedown,onClick:this.handlePasswordToggleClick},this.passwordVisible?ci(c["password-visible-icon"],()=>[R(Gs,{clsPrefix:n},{default:()=>R(Lk,null)})]):ci(c["password-invisible-icon"],()=>[R(Gs,{clsPrefix:n},{default:()=>R(Mk,null)})])):null]):null)),this.pair?R("span",{class:`${n}-input__separator`},ci(c.separator,()=>[this.separator])):null,this.pair?R("div",{class:`${n}-input-wrapper`},R("div",{class:`${n}-input__input`},R("input",{ref:"inputEl2Ref",type:this.type,class:`${n}-input__input-el`,tabindex:this.passivelyActivated&&!this.activated?-1:void 0,placeholder:this.mergedPlaceholder[1],disabled:this.mergedDisabled,maxlength:a?void 0:this.maxlength,minlength:a?void 0:this.minlength,value:Array.isArray(this.mergedValue)?this.mergedValue[1]:void 0,readonly:this.readonly,style:this.textDecorationStyle[1],onBlur:this.handleInputBlur,onFocus:l=>{this.handleInputFocus(l,1)},onInput:l=>{this.handleInput(l,1)},onChange:l=>{this.handleChange(l,1)}}),this.showPlaceholder2?R("div",{class:`${n}-input__placeholder`},R("span",null,this.mergedPlaceholder[1])):null),$n(c.suffix,l=>(this.clearable||l)&&R("div",{class:`${n}-input__suffix`},[this.clearable&&R(Mm,{clsPrefix:n,show:this.showClearButton,onClear:this.handleClear},{icon:()=>{var d;return(d=c["clear-icon"])===null||d===void 0?void 0:d.call(c)},placeholder:()=>{var d;return(d=c["clear-icon-placeholder"])===null||d===void 0?void 0:d.call(c)}}),l]))):null,this.mergedBordered?R("div",{class:`${n}-input__border`}):null,this.mergedBordered?R("div",{class:`${n}-input__state-border`}):null,this.showCount&&i==="textarea"?R(cE,null,{default:l=>{var d;const{renderCount:f}=this;return f?f(l):(d=c.count)===null||d===void 0?void 0:d.call(c,l)}}):null)}}),rI=j("input-group",`
358
- display: inline-flex;
359
- width: 100%;
360
- flex-wrap: nowrap;
361
- vertical-align: bottom;
362
- `,[ce(">",[j("input",[ce("&:not(:last-child)",`
363
- border-top-right-radius: 0!important;
364
- border-bottom-right-radius: 0!important;
365
- `),ce("&:not(:first-child)",`
366
- border-top-left-radius: 0!important;
367
- border-bottom-left-radius: 0!important;
368
- margin-left: -1px!important;
369
- `)]),j("button",[ce("&:not(:last-child)",`
370
- border-top-right-radius: 0!important;
371
- border-bottom-right-radius: 0!important;
372
- `,[J("state-border, border",`
373
- border-top-right-radius: 0!important;
374
- border-bottom-right-radius: 0!important;
375
- `)]),ce("&:not(:first-child)",`
376
- border-top-left-radius: 0!important;
377
- border-bottom-left-radius: 0!important;
378
- `,[J("state-border, border",`
379
- border-top-left-radius: 0!important;
380
- border-bottom-left-radius: 0!important;
381
- `)])]),ce("*",[ce("&:not(:last-child)",`
382
- border-top-right-radius: 0!important;
383
- border-bottom-right-radius: 0!important;
384
- `,[ce(">",[j("input",`
385
- border-top-right-radius: 0!important;
386
- border-bottom-right-radius: 0!important;
387
- `),j("base-selection",[j("base-selection-label",`
388
- border-top-right-radius: 0!important;
389
- border-bottom-right-radius: 0!important;
390
- `),j("base-selection-tags",`
391
- border-top-right-radius: 0!important;
392
- border-bottom-right-radius: 0!important;
393
- `),J("box-shadow, border, state-border",`
394
- border-top-right-radius: 0!important;
395
- border-bottom-right-radius: 0!important;
396
- `)])])]),ce("&:not(:first-child)",`
397
- margin-left: -1px!important;
398
- border-top-left-radius: 0!important;
399
- border-bottom-left-radius: 0!important;
400
- `,[ce(">",[j("input",`
401
- border-top-left-radius: 0!important;
402
- border-bottom-left-radius: 0!important;
403
- `),j("base-selection",[j("base-selection-label",`
404
- border-top-left-radius: 0!important;
405
- border-bottom-left-radius: 0!important;
406
- `),j("base-selection-tags",`
407
- border-top-left-radius: 0!important;
408
- border-bottom-left-radius: 0!important;
409
- `),J("box-shadow, border, state-border",`
410
- border-top-left-radius: 0!important;
411
- border-bottom-left-radius: 0!important;
412
- `)])])])])])]),sI={},iI=mt({name:"InputGroup",props:sI,setup(e){const{mergedClsPrefixRef:t}=Er(e);return dh("-input-group",rI,t),{mergedClsPrefix:t}},render(){const{mergedClsPrefix:e}=this;return R("div",{class:`${e}-input-group`},this.$slots)}});function ya(e){return Ux(e,[255,255,255,.16])}function ad(e){return Ux(e,[0,0,0,.12])}const aI=cs("n-button-group"),oI={paddingTiny:"0 6px",paddingSmall:"0 10px",paddingMedium:"0 14px",paddingLarge:"0 18px",paddingRoundTiny:"0 10px",paddingRoundSmall:"0 14px",paddingRoundMedium:"0 18px",paddingRoundLarge:"0 22px",iconMarginTiny:"6px",iconMarginSmall:"6px",iconMarginMedium:"6px",iconMarginLarge:"6px",iconSizeTiny:"14px",iconSizeSmall:"18px",iconSizeMedium:"18px",iconSizeLarge:"20px",rippleDuration:".6s"};function cI(e){const{heightTiny:t,heightSmall:n,heightMedium:r,heightLarge:s,borderRadius:i,fontSizeTiny:a,fontSizeSmall:o,fontSizeMedium:c,fontSizeLarge:l,opacityDisabled:d,textColor2:f,textColor3:m,primaryColorHover:h,primaryColorPressed:b,borderColor:g,primaryColor:y,baseColor:p,infoColor:C,infoColorHover:w,infoColorPressed:_,successColor:S,successColorHover:A,successColorPressed:v,warningColor:O,warningColorHover:z,warningColorPressed:Q,errorColor:be,errorColorHover:N,errorColorPressed:Y,fontWeight:x,buttonColor2:Z,buttonColor2Hover:Le,buttonColor2Pressed:re,fontWeightStrong:He}=e;return Object.assign(Object.assign({},oI),{heightTiny:t,heightSmall:n,heightMedium:r,heightLarge:s,borderRadiusTiny:i,borderRadiusSmall:i,borderRadiusMedium:i,borderRadiusLarge:i,fontSizeTiny:a,fontSizeSmall:o,fontSizeMedium:c,fontSizeLarge:l,opacityDisabled:d,colorOpacitySecondary:"0.16",colorOpacitySecondaryHover:"0.22",colorOpacitySecondaryPressed:"0.28",colorSecondary:Z,colorSecondaryHover:Le,colorSecondaryPressed:re,colorTertiary:Z,colorTertiaryHover:Le,colorTertiaryPressed:re,colorQuaternary:"#0000",colorQuaternaryHover:Le,colorQuaternaryPressed:re,color:"#0000",colorHover:"#0000",colorPressed:"#0000",colorFocus:"#0000",colorDisabled:"#0000",textColor:f,textColorTertiary:m,textColorHover:h,textColorPressed:b,textColorFocus:h,textColorDisabled:f,textColorText:f,textColorTextHover:h,textColorTextPressed:b,textColorTextFocus:h,textColorTextDisabled:f,textColorGhost:f,textColorGhostHover:h,textColorGhostPressed:b,textColorGhostFocus:h,textColorGhostDisabled:f,border:`1px solid ${g}`,borderHover:`1px solid ${h}`,borderPressed:`1px solid ${b}`,borderFocus:`1px solid ${h}`,borderDisabled:`1px solid ${g}`,rippleColor:y,colorPrimary:y,colorHoverPrimary:h,colorPressedPrimary:b,colorFocusPrimary:h,colorDisabledPrimary:y,textColorPrimary:p,textColorHoverPrimary:p,textColorPressedPrimary:p,textColorFocusPrimary:p,textColorDisabledPrimary:p,textColorTextPrimary:y,textColorTextHoverPrimary:h,textColorTextPressedPrimary:b,textColorTextFocusPrimary:h,textColorTextDisabledPrimary:f,textColorGhostPrimary:y,textColorGhostHoverPrimary:h,textColorGhostPressedPrimary:b,textColorGhostFocusPrimary:h,textColorGhostDisabledPrimary:y,borderPrimary:`1px solid ${y}`,borderHoverPrimary:`1px solid ${h}`,borderPressedPrimary:`1px solid ${b}`,borderFocusPrimary:`1px solid ${h}`,borderDisabledPrimary:`1px solid ${y}`,rippleColorPrimary:y,colorInfo:C,colorHoverInfo:w,colorPressedInfo:_,colorFocusInfo:w,colorDisabledInfo:C,textColorInfo:p,textColorHoverInfo:p,textColorPressedInfo:p,textColorFocusInfo:p,textColorDisabledInfo:p,textColorTextInfo:C,textColorTextHoverInfo:w,textColorTextPressedInfo:_,textColorTextFocusInfo:w,textColorTextDisabledInfo:f,textColorGhostInfo:C,textColorGhostHoverInfo:w,textColorGhostPressedInfo:_,textColorGhostFocusInfo:w,textColorGhostDisabledInfo:C,borderInfo:`1px solid ${C}`,borderHoverInfo:`1px solid ${w}`,borderPressedInfo:`1px solid ${_}`,borderFocusInfo:`1px solid ${w}`,borderDisabledInfo:`1px solid ${C}`,rippleColorInfo:C,colorSuccess:S,colorHoverSuccess:A,colorPressedSuccess:v,colorFocusSuccess:A,colorDisabledSuccess:S,textColorSuccess:p,textColorHoverSuccess:p,textColorPressedSuccess:p,textColorFocusSuccess:p,textColorDisabledSuccess:p,textColorTextSuccess:S,textColorTextHoverSuccess:A,textColorTextPressedSuccess:v,textColorTextFocusSuccess:A,textColorTextDisabledSuccess:f,textColorGhostSuccess:S,textColorGhostHoverSuccess:A,textColorGhostPressedSuccess:v,textColorGhostFocusSuccess:A,textColorGhostDisabledSuccess:S,borderSuccess:`1px solid ${S}`,borderHoverSuccess:`1px solid ${A}`,borderPressedSuccess:`1px solid ${v}`,borderFocusSuccess:`1px solid ${A}`,borderDisabledSuccess:`1px solid ${S}`,rippleColorSuccess:S,colorWarning:O,colorHoverWarning:z,colorPressedWarning:Q,colorFocusWarning:z,colorDisabledWarning:O,textColorWarning:p,textColorHoverWarning:p,textColorPressedWarning:p,textColorFocusWarning:p,textColorDisabledWarning:p,textColorTextWarning:O,textColorTextHoverWarning:z,textColorTextPressedWarning:Q,textColorTextFocusWarning:z,textColorTextDisabledWarning:f,textColorGhostWarning:O,textColorGhostHoverWarning:z,textColorGhostPressedWarning:Q,textColorGhostFocusWarning:z,textColorGhostDisabledWarning:O,borderWarning:`1px solid ${O}`,borderHoverWarning:`1px solid ${z}`,borderPressedWarning:`1px solid ${Q}`,borderFocusWarning:`1px solid ${z}`,borderDisabledWarning:`1px solid ${O}`,rippleColorWarning:O,colorError:be,colorHoverError:N,colorPressedError:Y,colorFocusError:N,colorDisabledError:be,textColorError:p,textColorHoverError:p,textColorPressedError:p,textColorFocusError:p,textColorDisabledError:p,textColorTextError:be,textColorTextHoverError:N,textColorTextPressedError:Y,textColorTextFocusError:N,textColorTextDisabledError:f,textColorGhostError:be,textColorGhostHoverError:N,textColorGhostPressedError:Y,textColorGhostFocusError:N,textColorGhostDisabledError:be,borderError:`1px solid ${be}`,borderHoverError:`1px solid ${N}`,borderPressedError:`1px solid ${Y}`,borderFocusError:`1px solid ${N}`,borderDisabledError:`1px solid ${be}`,rippleColorError:be,waveOpacity:"0.6",fontWeight:x,fontWeightStrong:He})}const xv={name:"Button",common:ps,self:cI},lI=ce([j("button",`
413
- margin: 0;
414
- font-weight: var(--n-font-weight);
415
- line-height: 1;
416
- font-family: inherit;
417
- padding: var(--n-padding);
418
- height: var(--n-height);
419
- font-size: var(--n-font-size);
420
- border-radius: var(--n-border-radius);
421
- color: var(--n-text-color);
422
- background-color: var(--n-color);
423
- width: var(--n-width);
424
- white-space: nowrap;
425
- outline: none;
426
- position: relative;
427
- z-index: auto;
428
- border: none;
429
- display: inline-flex;
430
- flex-wrap: nowrap;
431
- flex-shrink: 0;
432
- align-items: center;
433
- justify-content: center;
434
- user-select: none;
435
- -webkit-user-select: none;
436
- text-align: center;
437
- cursor: pointer;
438
- text-decoration: none;
439
- transition:
440
- color .3s var(--n-bezier),
441
- background-color .3s var(--n-bezier),
442
- opacity .3s var(--n-bezier),
443
- border-color .3s var(--n-bezier);
444
- `,[oe("color",[J("border",{borderColor:"var(--n-border-color)"}),oe("disabled",[J("border",{borderColor:"var(--n-border-color-disabled)"})]),jr("disabled",[ce("&:focus",[J("state-border",{borderColor:"var(--n-border-color-focus)"})]),ce("&:hover",[J("state-border",{borderColor:"var(--n-border-color-hover)"})]),ce("&:active",[J("state-border",{borderColor:"var(--n-border-color-pressed)"})]),oe("pressed",[J("state-border",{borderColor:"var(--n-border-color-pressed)"})])])]),oe("disabled",{backgroundColor:"var(--n-color-disabled)",color:"var(--n-text-color-disabled)"},[J("border",{border:"var(--n-border-disabled)"})]),jr("disabled",[ce("&:focus",{backgroundColor:"var(--n-color-focus)",color:"var(--n-text-color-focus)"},[J("state-border",{border:"var(--n-border-focus)"})]),ce("&:hover",{backgroundColor:"var(--n-color-hover)",color:"var(--n-text-color-hover)"},[J("state-border",{border:"var(--n-border-hover)"})]),ce("&:active",{backgroundColor:"var(--n-color-pressed)",color:"var(--n-text-color-pressed)"},[J("state-border",{border:"var(--n-border-pressed)"})]),oe("pressed",{backgroundColor:"var(--n-color-pressed)",color:"var(--n-text-color-pressed)"},[J("state-border",{border:"var(--n-border-pressed)"})])]),oe("loading","cursor: wait;"),j("base-wave",`
445
- pointer-events: none;
446
- top: 0;
447
- right: 0;
448
- bottom: 0;
449
- left: 0;
450
- animation-iteration-count: 1;
451
- animation-duration: var(--n-ripple-duration);
452
- animation-timing-function: var(--n-bezier-ease-out), var(--n-bezier-ease-out);
453
- `,[oe("active",{zIndex:1,animationName:"button-wave-spread, button-wave-opacity"})]),nl&&"MozBoxSizing"in document.createElement("div").style?ce("&::moz-focus-inner",{border:0}):null,J("border, state-border",`
454
- position: absolute;
455
- left: 0;
456
- top: 0;
457
- right: 0;
458
- bottom: 0;
459
- border-radius: inherit;
460
- transition: border-color .3s var(--n-bezier);
461
- pointer-events: none;
462
- `),J("border",{border:"var(--n-border)"}),J("state-border",{border:"var(--n-border)",borderColor:"#0000",zIndex:1}),J("icon",`
463
- margin: var(--n-icon-margin);
464
- margin-left: 0;
465
- height: var(--n-icon-size);
466
- width: var(--n-icon-size);
467
- max-width: var(--n-icon-size);
468
- font-size: var(--n-icon-size);
469
- position: relative;
470
- flex-shrink: 0;
471
- `,[j("icon-slot",`
472
- height: var(--n-icon-size);
473
- width: var(--n-icon-size);
474
- position: absolute;
475
- left: 0;
476
- top: 50%;
477
- transform: translateY(-50%);
478
- display: flex;
479
- align-items: center;
480
- justify-content: center;
481
- `,[rc({top:"50%",originalTransform:"translateY(-50%)"})]),Wk()]),J("content",`
482
- display: flex;
483
- align-items: center;
484
- flex-wrap: nowrap;
485
- min-width: 0;
486
- `,[ce("~",[J("icon",{margin:"var(--n-icon-margin)",marginRight:0})])]),oe("block",`
487
- display: flex;
488
- width: 100%;
489
- `),oe("dashed",[J("border, state-border",{borderStyle:"dashed !important"})]),oe("disabled",{cursor:"not-allowed",opacity:"var(--n-opacity-disabled)"})]),ce("@keyframes button-wave-spread",{from:{boxShadow:"0 0 0.5px 0 var(--n-ripple-color)"},to:{boxShadow:"0 0 0.5px 4.5px var(--n-ripple-color)"}}),ce("@keyframes button-wave-opacity",{from:{opacity:"var(--n-wave-opacity)"},to:{opacity:0}})]),uI=Object.assign(Object.assign({},nn.props),{color:String,textColor:String,text:Boolean,block:Boolean,loading:Boolean,disabled:Boolean,circle:Boolean,size:String,ghost:Boolean,round:Boolean,secondary:Boolean,tertiary:Boolean,quaternary:Boolean,strong:Boolean,focusable:{type:Boolean,default:!0},keyboard:{type:Boolean,default:!0},tag:{type:String,default:"button"},type:{type:String,default:"default"},dashed:Boolean,renderIcon:Function,iconPlacement:{type:String,default:"left"},attrType:{type:String,default:"button"},bordered:{type:Boolean,default:!0},onClick:[Function,Array],nativeFocusBehavior:{type:Boolean,default:!Ev}}),Zi=mt({name:"Button",props:uI,slots:Object,setup(e){const t=Me(null),n=Me(null),r=Me(!1),s=go(()=>!e.quaternary&&!e.tertiary&&!e.secondary&&!e.text&&(!e.color||e.ghost||e.dashed)&&e.bordered),i=os(aI,{}),{mergedSizeRef:a}=Pu({},{defaultSize:"medium",mergedSize:_=>{const{size:S}=e;if(S)return S;const{size:A}=i;if(A)return A;const{mergedSize:v}=_||{};return v?v.value:"medium"}}),o=Fe(()=>e.focusable&&!e.disabled),c=_=>{var S;o.value||_.preventDefault(),!e.nativeFocusBehavior&&(_.preventDefault(),!e.disabled&&o.value&&((S=t.value)===null||S===void 0||S.focus({preventScroll:!0})))},l=_=>{var S;if(!e.disabled&&!e.loading){const{onClick:A}=e;A&&vt(A,_),e.text||(S=n.value)===null||S===void 0||S.play()}},d=_=>{switch(_.key){case"Enter":if(!e.keyboard)return;r.value=!1}},f=_=>{switch(_.key){case"Enter":if(!e.keyboard||e.loading){_.preventDefault();return}r.value=!0}},m=()=>{r.value=!1},{inlineThemeDisabled:h,mergedClsPrefixRef:b,mergedRtlRef:g}=Er(e),y=nn("Button","-button",lI,xv,e,b),p=Vs("Button",g,b),C=Fe(()=>{const _=y.value,{common:{cubicBezierEaseInOut:S,cubicBezierEaseOut:A},self:v}=_,{rippleDuration:O,opacityDisabled:z,fontWeight:Q,fontWeightStrong:be}=v,N=a.value,{dashed:Y,type:x,ghost:Z,text:Le,color:re,round:He,circle:he,textColor:ze,secondary:X,tertiary:K,quaternary:Qe,strong:De}=e,Be={"--n-font-weight":De?be:Q};let et={"--n-color":"initial","--n-color-hover":"initial","--n-color-pressed":"initial","--n-color-focus":"initial","--n-color-disabled":"initial","--n-ripple-color":"initial","--n-text-color":"initial","--n-text-color-hover":"initial","--n-text-color-pressed":"initial","--n-text-color-focus":"initial","--n-text-color-disabled":"initial"};const Wt=x==="tertiary",ft=x==="default",Ke=Wt?"default":x;if(Le){const U=ze||re;et={"--n-color":"#0000","--n-color-hover":"#0000","--n-color-pressed":"#0000","--n-color-focus":"#0000","--n-color-disabled":"#0000","--n-ripple-color":"#0000","--n-text-color":U||v[Ge("textColorText",Ke)],"--n-text-color-hover":U?ya(U):v[Ge("textColorTextHover",Ke)],"--n-text-color-pressed":U?ad(U):v[Ge("textColorTextPressed",Ke)],"--n-text-color-focus":U?ya(U):v[Ge("textColorTextHover",Ke)],"--n-text-color-disabled":U||v[Ge("textColorTextDisabled",Ke)]}}else if(Z||Y){const U=ze||re;et={"--n-color":"#0000","--n-color-hover":"#0000","--n-color-pressed":"#0000","--n-color-focus":"#0000","--n-color-disabled":"#0000","--n-ripple-color":re||v[Ge("rippleColor",Ke)],"--n-text-color":U||v[Ge("textColorGhost",Ke)],"--n-text-color-hover":U?ya(U):v[Ge("textColorGhostHover",Ke)],"--n-text-color-pressed":U?ad(U):v[Ge("textColorGhostPressed",Ke)],"--n-text-color-focus":U?ya(U):v[Ge("textColorGhostHover",Ke)],"--n-text-color-disabled":U||v[Ge("textColorGhostDisabled",Ke)]}}else if(X){const U=ft?v.textColor:Wt?v.textColorTertiary:v[Ge("color",Ke)],q=re||U,$=x!=="default"&&x!=="tertiary";et={"--n-color":$?ai(q,{alpha:Number(v.colorOpacitySecondary)}):v.colorSecondary,"--n-color-hover":$?ai(q,{alpha:Number(v.colorOpacitySecondaryHover)}):v.colorSecondaryHover,"--n-color-pressed":$?ai(q,{alpha:Number(v.colorOpacitySecondaryPressed)}):v.colorSecondaryPressed,"--n-color-focus":$?ai(q,{alpha:Number(v.colorOpacitySecondaryHover)}):v.colorSecondaryHover,"--n-color-disabled":v.colorSecondary,"--n-ripple-color":"#0000","--n-text-color":q,"--n-text-color-hover":q,"--n-text-color-pressed":q,"--n-text-color-focus":q,"--n-text-color-disabled":q}}else if(K||Qe){const U=ft?v.textColor:Wt?v.textColorTertiary:v[Ge("color",Ke)],q=re||U;K?(et["--n-color"]=v.colorTertiary,et["--n-color-hover"]=v.colorTertiaryHover,et["--n-color-pressed"]=v.colorTertiaryPressed,et["--n-color-focus"]=v.colorSecondaryHover,et["--n-color-disabled"]=v.colorTertiary):(et["--n-color"]=v.colorQuaternary,et["--n-color-hover"]=v.colorQuaternaryHover,et["--n-color-pressed"]=v.colorQuaternaryPressed,et["--n-color-focus"]=v.colorQuaternaryHover,et["--n-color-disabled"]=v.colorQuaternary),et["--n-ripple-color"]="#0000",et["--n-text-color"]=q,et["--n-text-color-hover"]=q,et["--n-text-color-pressed"]=q,et["--n-text-color-focus"]=q,et["--n-text-color-disabled"]=q}else et={"--n-color":re||v[Ge("color",Ke)],"--n-color-hover":re?ya(re):v[Ge("colorHover",Ke)],"--n-color-pressed":re?ad(re):v[Ge("colorPressed",Ke)],"--n-color-focus":re?ya(re):v[Ge("colorFocus",Ke)],"--n-color-disabled":re||v[Ge("colorDisabled",Ke)],"--n-ripple-color":re||v[Ge("rippleColor",Ke)],"--n-text-color":ze||(re?v.textColorPrimary:Wt?v.textColorTertiary:v[Ge("textColor",Ke)]),"--n-text-color-hover":ze||(re?v.textColorHoverPrimary:v[Ge("textColorHover",Ke)]),"--n-text-color-pressed":ze||(re?v.textColorPressedPrimary:v[Ge("textColorPressed",Ke)]),"--n-text-color-focus":ze||(re?v.textColorFocusPrimary:v[Ge("textColorFocus",Ke)]),"--n-text-color-disabled":ze||(re?v.textColorDisabledPrimary:v[Ge("textColorDisabled",Ke)])};let Ot={"--n-border":"initial","--n-border-hover":"initial","--n-border-pressed":"initial","--n-border-focus":"initial","--n-border-disabled":"initial"};Le?Ot={"--n-border":"none","--n-border-hover":"none","--n-border-pressed":"none","--n-border-focus":"none","--n-border-disabled":"none"}:Ot={"--n-border":v[Ge("border",Ke)],"--n-border-hover":v[Ge("borderHover",Ke)],"--n-border-pressed":v[Ge("borderPressed",Ke)],"--n-border-focus":v[Ge("borderFocus",Ke)],"--n-border-disabled":v[Ge("borderDisabled",Ke)]};const{[Ge("height",N)]:Ft,[Ge("fontSize",N)]:ar,[Ge("padding",N)]:Sn,[Ge("paddingRound",N)]:E,[Ge("iconSize",N)]:de,[Ge("borderRadius",N)]:se,[Ge("iconMargin",N)]:L,waveOpacity:I}=v,W={"--n-width":he&&!Le?Ft:"initial","--n-height":Le?"initial":Ft,"--n-font-size":ar,"--n-padding":he||Le?"initial":He?E:Sn,"--n-icon-size":de,"--n-icon-margin":L,"--n-border-radius":Le?"initial":he||He?Ft:se};return Object.assign(Object.assign(Object.assign(Object.assign({"--n-bezier":S,"--n-bezier-ease-out":A,"--n-ripple-duration":O,"--n-opacity-disabled":z,"--n-wave-opacity":I},Be),et),Ot),W)}),w=h?ys("button",Fe(()=>{let _="";const{dashed:S,type:A,ghost:v,text:O,color:z,round:Q,circle:be,textColor:N,secondary:Y,tertiary:x,quaternary:Z,strong:Le}=e;S&&(_+="a"),v&&(_+="b"),O&&(_+="c"),Q&&(_+="d"),be&&(_+="e"),Y&&(_+="f"),x&&(_+="g"),Z&&(_+="h"),Le&&(_+="i"),z&&(_+=`j${Zy(z)}`),N&&(_+=`k${Zy(N)}`);const{value:re}=a;return _+=`l${re[0]}`,_+=`m${A[0]}`,_}),C,e):void 0;return{selfElRef:t,waveElRef:n,mergedClsPrefix:b,mergedFocusable:o,mergedSize:a,showBorder:s,enterPressed:r,rtlEnabled:p,handleMousedown:c,handleKeydown:f,handleBlur:m,handleKeyup:d,handleClick:l,customColorCssVars:Fe(()=>{const{color:_}=e;if(!_)return null;const S=ya(_);return{"--n-border-color":_,"--n-border-color-hover":S,"--n-border-color-pressed":ad(_),"--n-border-color-focus":S,"--n-border-color-disabled":_}}),cssVars:h?void 0:C,themeClass:w?.themeClass,onRender:w?.onRender}},render(){const{mergedClsPrefix:e,tag:t,onRender:n}=this;n?.();const r=$n(this.$slots.default,s=>s&&R("span",{class:`${e}-button__content`},s));return R(t,{ref:"selfElRef",class:[this.themeClass,`${e}-button`,`${e}-button--${this.type}-type`,`${e}-button--${this.mergedSize}-type`,this.rtlEnabled&&`${e}-button--rtl`,this.disabled&&`${e}-button--disabled`,this.block&&`${e}-button--block`,this.enterPressed&&`${e}-button--pressed`,!this.text&&this.dashed&&`${e}-button--dashed`,this.color&&`${e}-button--color`,this.secondary&&`${e}-button--secondary`,this.loading&&`${e}-button--loading`,this.ghost&&`${e}-button--ghost`],tabindex:this.mergedFocusable?0:-1,type:this.attrType,style:this.cssVars,disabled:this.disabled,onClick:this.handleClick,onBlur:this.handleBlur,onMousedown:this.handleMousedown,onKeyup:this.handleKeyup,onKeydown:this.handleKeydown},this.iconPlacement==="right"&&r,R($x,{width:!0},{default:()=>$n(this.$slots.icon,s=>(this.loading||this.renderIcon||s)&&R("span",{class:`${e}-button__icon`,style:{margin:O3(this.$slots.default)?"0":""}},R(uh,null,{default:()=>this.loading?R(zx,{clsPrefix:e,key:"loading",class:`${e}-icon-slot`,strokeWidth:20}):R("div",{key:"icon",class:`${e}-icon-slot`,role:"none"},this.renderIcon?this.renderIcon():s)})))}),this.iconPlacement==="left"&&r,this.text?null:R(Vk,{ref:"waveElRef",clsPrefix:e}),this.showBorder?R("div",{"aria-hidden":!0,class:`${e}-button__border`,style:this.customColorCssVars}):null,this.showBorder?R("div",{"aria-hidden":!0,class:`${e}-button__state-border`,style:this.customColorCssVars}):null)}}),dI={paddingSmall:"12px 16px 12px",paddingMedium:"19px 24px 20px",paddingLarge:"23px 32px 24px",paddingHuge:"27px 40px 28px",titleFontSizeSmall:"16px",titleFontSizeMedium:"18px",titleFontSizeLarge:"18px",titleFontSizeHuge:"18px",closeIconSize:"18px",closeSize:"22px"};function fI(e){const{primaryColor:t,borderRadius:n,lineHeight:r,fontSize:s,cardColor:i,textColor2:a,textColor1:o,dividerColor:c,fontWeightStrong:l,closeIconColor:d,closeIconColorHover:f,closeIconColorPressed:m,closeColorHover:h,closeColorPressed:b,modalColor:g,boxShadow1:y,popoverColor:p,actionColor:C}=e;return Object.assign(Object.assign({},dI),{lineHeight:r,color:i,colorModal:g,colorPopover:p,colorTarget:t,colorEmbedded:C,colorEmbeddedModal:C,colorEmbeddedPopover:C,textColor:a,titleTextColor:o,borderColor:c,actionColor:C,titleFontWeight:l,closeColorHover:h,closeColorPressed:b,closeBorderRadius:n,closeIconColor:d,closeIconColorHover:f,closeIconColorPressed:m,fontSizeSmall:s,fontSizeMedium:s,fontSizeLarge:s,fontSizeHuge:s,boxShadow:y,borderRadius:n})}const vv={name:"Card",common:ps,self:fI},hI=ce([j("card",`
490
- font-size: var(--n-font-size);
491
- line-height: var(--n-line-height);
492
- display: flex;
493
- flex-direction: column;
494
- width: 100%;
495
- box-sizing: border-box;
496
- position: relative;
497
- border-radius: var(--n-border-radius);
498
- background-color: var(--n-color);
499
- color: var(--n-text-color);
500
- word-break: break-word;
501
- transition:
502
- color .3s var(--n-bezier),
503
- background-color .3s var(--n-bezier),
504
- box-shadow .3s var(--n-bezier),
505
- border-color .3s var(--n-bezier);
506
- `,[qx({background:"var(--n-color-modal)"}),oe("hoverable",[ce("&:hover","box-shadow: var(--n-box-shadow);")]),oe("content-segmented",[ce(">",[J("content",{paddingTop:"var(--n-padding-bottom)"})])]),oe("content-soft-segmented",[ce(">",[J("content",`
507
- margin: 0 var(--n-padding-left);
508
- padding: var(--n-padding-bottom) 0;
509
- `)])]),oe("footer-segmented",[ce(">",[J("footer",{paddingTop:"var(--n-padding-bottom)"})])]),oe("footer-soft-segmented",[ce(">",[J("footer",`
510
- padding: var(--n-padding-bottom) 0;
511
- margin: 0 var(--n-padding-left);
512
- `)])]),ce(">",[j("card-header",`
513
- box-sizing: border-box;
514
- display: flex;
515
- align-items: center;
516
- font-size: var(--n-title-font-size);
517
- padding:
518
- var(--n-padding-top)
519
- var(--n-padding-left)
520
- var(--n-padding-bottom)
521
- var(--n-padding-left);
522
- `,[J("main",`
523
- font-weight: var(--n-title-font-weight);
524
- transition: color .3s var(--n-bezier);
525
- flex: 1;
526
- min-width: 0;
527
- color: var(--n-title-text-color);
528
- `),J("extra",`
529
- display: flex;
530
- align-items: center;
531
- font-size: var(--n-font-size);
532
- font-weight: 400;
533
- transition: color .3s var(--n-bezier);
534
- color: var(--n-text-color);
535
- `),J("close",`
536
- margin: 0 0 0 8px;
537
- transition:
538
- background-color .3s var(--n-bezier),
539
- color .3s var(--n-bezier);
540
- `)]),J("action",`
541
- box-sizing: border-box;
542
- transition:
543
- background-color .3s var(--n-bezier),
544
- border-color .3s var(--n-bezier);
545
- background-clip: padding-box;
546
- background-color: var(--n-action-color);
547
- `),J("content","flex: 1; min-width: 0;"),J("content, footer",`
548
- box-sizing: border-box;
549
- padding: 0 var(--n-padding-left) var(--n-padding-bottom) var(--n-padding-left);
550
- font-size: var(--n-font-size);
551
- `,[ce("&:first-child",{paddingTop:"var(--n-padding-bottom)"})]),J("action",`
552
- background-color: var(--n-action-color);
553
- padding: var(--n-padding-bottom) var(--n-padding-left);
554
- border-bottom-left-radius: var(--n-border-radius);
555
- border-bottom-right-radius: var(--n-border-radius);
556
- `)]),j("card-cover",`
557
- overflow: hidden;
558
- width: 100%;
559
- border-radius: var(--n-border-radius) var(--n-border-radius) 0 0;
560
- `,[ce("img",`
561
- display: block;
562
- width: 100%;
563
- `)]),oe("bordered",`
564
- border: 1px solid var(--n-border-color);
565
- `,[ce("&:target","border-color: var(--n-color-target);")]),oe("action-segmented",[ce(">",[J("action",[ce("&:not(:first-child)",{borderTop:"1px solid var(--n-border-color)"})])])]),oe("content-segmented, content-soft-segmented",[ce(">",[J("content",{transition:"border-color 0.3s var(--n-bezier)"},[ce("&:not(:first-child)",{borderTop:"1px solid var(--n-border-color)"})])])]),oe("footer-segmented, footer-soft-segmented",[ce(">",[J("footer",{transition:"border-color 0.3s var(--n-bezier)"},[ce("&:not(:first-child)",{borderTop:"1px solid var(--n-border-color)"})])])]),oe("embedded",`
566
- background-color: var(--n-color-embedded);
567
- `)]),fg(j("card",`
568
- background: var(--n-color-modal);
569
- `,[oe("embedded",`
570
- background-color: var(--n-color-embedded-modal);
571
- `)])),Hx(j("card",`
572
- background: var(--n-color-popover);
573
- `,[oe("embedded",`
574
- background-color: var(--n-color-embedded-popover);
575
- `)]))]),wg={title:[String,Function],contentClass:String,contentStyle:[Object,String],headerClass:String,headerStyle:[Object,String],headerExtraClass:String,headerExtraStyle:[Object,String],footerClass:String,footerStyle:[Object,String],embedded:Boolean,segmented:{type:[Boolean,Object],default:!1},size:{type:String,default:"medium"},bordered:{type:Boolean,default:!0},closable:Boolean,hoverable:Boolean,role:String,onClose:[Function,Array],tag:{type:String,default:"div"},cover:Function,content:[String,Function],footer:Function,action:Function,headerExtra:Function},mI=Tg(wg),bI=Object.assign(Object.assign({},nn.props),wg),_v=mt({name:"Card",props:bI,slots:Object,setup(e){const t=()=>{const{onClose:l}=e;l&&vt(l)},{inlineThemeDisabled:n,mergedClsPrefixRef:r,mergedRtlRef:s}=Er(e),i=nn("Card","-card",hI,vv,e,r),a=Vs("Card",s,r),o=Fe(()=>{const{size:l}=e,{self:{color:d,colorModal:f,colorTarget:m,textColor:h,titleTextColor:b,titleFontWeight:g,borderColor:y,actionColor:p,borderRadius:C,lineHeight:w,closeIconColor:_,closeIconColorHover:S,closeIconColorPressed:A,closeColorHover:v,closeColorPressed:O,closeBorderRadius:z,closeIconSize:Q,closeSize:be,boxShadow:N,colorPopover:Y,colorEmbedded:x,colorEmbeddedModal:Z,colorEmbeddedPopover:Le,[Ge("padding",l)]:re,[Ge("fontSize",l)]:He,[Ge("titleFontSize",l)]:he},common:{cubicBezierEaseInOut:ze}}=i.value,{top:X,left:K,bottom:Qe}=ks(re);return{"--n-bezier":ze,"--n-border-radius":C,"--n-color":d,"--n-color-modal":f,"--n-color-popover":Y,"--n-color-embedded":x,"--n-color-embedded-modal":Z,"--n-color-embedded-popover":Le,"--n-color-target":m,"--n-text-color":h,"--n-line-height":w,"--n-action-color":p,"--n-title-text-color":b,"--n-title-font-weight":g,"--n-close-icon-color":_,"--n-close-icon-color-hover":S,"--n-close-icon-color-pressed":A,"--n-close-color-hover":v,"--n-close-color-pressed":O,"--n-border-color":y,"--n-box-shadow":N,"--n-padding-top":X,"--n-padding-bottom":Qe,"--n-padding-left":K,"--n-font-size":He,"--n-title-font-size":he,"--n-close-size":be,"--n-close-icon-size":Q,"--n-close-border-radius":z}}),c=n?ys("card",Fe(()=>e.size[0]),o,e):void 0;return{rtlEnabled:a,mergedClsPrefix:r,mergedTheme:i,handleCloseClick:t,cssVars:n?void 0:o,themeClass:c?.themeClass,onRender:c?.onRender}},render(){const{segmented:e,bordered:t,hoverable:n,mergedClsPrefix:r,rtlEnabled:s,onRender:i,embedded:a,tag:o,$slots:c}=this;return i?.(),R(o,{class:[`${r}-card`,this.themeClass,a&&`${r}-card--embedded`,{[`${r}-card--rtl`]:s,[`${r}-card--content${typeof e!="boolean"&&e.content==="soft"?"-soft":""}-segmented`]:e===!0||e!==!1&&e.content,[`${r}-card--footer${typeof e!="boolean"&&e.footer==="soft"?"-soft":""}-segmented`]:e===!0||e!==!1&&e.footer,[`${r}-card--action-segmented`]:e===!0||e!==!1&&e.action,[`${r}-card--bordered`]:t,[`${r}-card--hoverable`]:n}],style:this.cssVars,role:this.role},$n(c.cover,l=>{const d=this.cover?ws([this.cover()]):l;return d&&R("div",{class:`${r}-card-cover`,role:"none"},d)}),$n(c.header,l=>{const{title:d}=this,f=d?ws(typeof d=="function"?[d()]:[d]):l;return f||this.closable?R("div",{class:[`${r}-card-header`,this.headerClass],style:this.headerStyle,role:"heading"},R("div",{class:`${r}-card-header__main`,role:"heading"},f),$n(c["header-extra"],m=>{const h=this.headerExtra?ws([this.headerExtra()]):m;return h&&R("div",{class:[`${r}-card-header__extra`,this.headerExtraClass],style:this.headerExtraStyle},h)}),this.closable&&R(hg,{clsPrefix:r,class:`${r}-card-header__close`,onClick:this.handleCloseClick,absolute:!0})):null}),$n(c.default,l=>{const{content:d}=this,f=d?ws(typeof d=="function"?[d()]:[d]):l;return f&&R("div",{class:[`${r}-card__content`,this.contentClass],style:this.contentStyle,role:"none"},f)}),$n(c.footer,l=>{const d=this.footer?ws([this.footer()]):l;return d&&R("div",{class:[`${r}-card__footer`,this.footerClass],style:this.footerStyle,role:"none"},d)}),$n(c.action,l=>{const d=this.action?ws([this.action()]):l;return d&&R("div",{class:`${r}-card__action`,role:"none"},d)}))}}),gI={sizeSmall:"14px",sizeMedium:"16px",sizeLarge:"18px",labelPadding:"0 8px",labelFontWeight:"400"};function pI(e){const{baseColor:t,inputColorDisabled:n,cardColor:r,modalColor:s,popoverColor:i,textColorDisabled:a,borderColor:o,primaryColor:c,textColor2:l,fontSizeSmall:d,fontSizeMedium:f,fontSizeLarge:m,borderRadiusSmall:h,lineHeight:b}=e;return Object.assign(Object.assign({},gI),{labelLineHeight:b,fontSizeSmall:d,fontSizeMedium:f,fontSizeLarge:m,borderRadius:h,color:t,colorChecked:c,colorDisabled:n,colorDisabledChecked:n,colorTableHeader:r,colorTableHeaderModal:s,colorTableHeaderPopover:i,checkMarkColor:t,checkMarkColorDisabled:a,checkMarkColorDisabledChecked:a,border:`1px solid ${o}`,borderDisabled:`1px solid ${o}`,borderDisabledChecked:`1px solid ${o}`,borderChecked:`1px solid ${c}`,borderFocus:`1px solid ${c}`,boxShadowFocus:`0 0 0 2px ${ai(c,{alpha:.3})}`,textColor:l,textColorDisabled:a})}const yI={common:ps,self:pI},EI=cs("n-checkbox-group"),CI=()=>R("svg",{viewBox:"0 0 64 64",class:"check-icon"},R("path",{d:"M50.42,16.76L22.34,39.45l-8.1-11.46c-1.12-1.58-3.3-1.96-4.88-0.84c-1.58,1.12-1.95,3.3-0.84,4.88l10.26,14.51 c0.56,0.79,1.42,1.31,2.38,1.45c0.16,0.02,0.32,0.03,0.48,0.03c0.8,0,1.57-0.27,2.2-0.78l30.99-25.03c1.5-1.21,1.74-3.42,0.52-4.92 C54.13,15.78,51.93,15.55,50.42,16.76z"})),xI=()=>R("svg",{viewBox:"0 0 100 100",class:"line-icon"},R("path",{d:"M80.2,55.5H21.4c-2.8,0-5.1-2.5-5.1-5.5l0,0c0-3,2.3-5.5,5.1-5.5h58.7c2.8,0,5.1,2.5,5.1,5.5l0,0C85.2,53.1,82.9,55.5,80.2,55.5z"})),vI=ce([j("checkbox",`
576
- font-size: var(--n-font-size);
577
- outline: none;
578
- cursor: pointer;
579
- display: inline-flex;
580
- flex-wrap: nowrap;
581
- align-items: flex-start;
582
- word-break: break-word;
583
- line-height: var(--n-size);
584
- --n-merged-color-table: var(--n-color-table);
585
- `,[oe("show-label","line-height: var(--n-label-line-height);"),ce("&:hover",[j("checkbox-box",[J("border","border: var(--n-border-checked);")])]),ce("&:focus:not(:active)",[j("checkbox-box",[J("border",`
586
- border: var(--n-border-focus);
587
- box-shadow: var(--n-box-shadow-focus);
588
- `)])]),oe("inside-table",[j("checkbox-box",`
589
- background-color: var(--n-merged-color-table);
590
- `)]),oe("checked",[j("checkbox-box",`
591
- background-color: var(--n-color-checked);
592
- `,[j("checkbox-icon",[ce(".check-icon",`
593
- opacity: 1;
594
- transform: scale(1);
595
- `)])])]),oe("indeterminate",[j("checkbox-box",[j("checkbox-icon",[ce(".check-icon",`
596
- opacity: 0;
597
- transform: scale(.5);
598
- `),ce(".line-icon",`
599
- opacity: 1;
600
- transform: scale(1);
601
- `)])])]),oe("checked, indeterminate",[ce("&:focus:not(:active)",[j("checkbox-box",[J("border",`
602
- border: var(--n-border-checked);
603
- box-shadow: var(--n-box-shadow-focus);
604
- `)])]),j("checkbox-box",`
605
- background-color: var(--n-color-checked);
606
- border-left: 0;
607
- border-top: 0;
608
- `,[J("border",{border:"var(--n-border-checked)"})])]),oe("disabled",{cursor:"not-allowed"},[oe("checked",[j("checkbox-box",`
609
- background-color: var(--n-color-disabled-checked);
610
- `,[J("border",{border:"var(--n-border-disabled-checked)"}),j("checkbox-icon",[ce(".check-icon, .line-icon",{fill:"var(--n-check-mark-color-disabled-checked)"})])])]),j("checkbox-box",`
611
- background-color: var(--n-color-disabled);
612
- `,[J("border",`
613
- border: var(--n-border-disabled);
614
- `),j("checkbox-icon",[ce(".check-icon, .line-icon",`
615
- fill: var(--n-check-mark-color-disabled);
616
- `)])]),J("label",`
617
- color: var(--n-text-color-disabled);
618
- `)]),j("checkbox-box-wrapper",`
619
- position: relative;
620
- width: var(--n-size);
621
- flex-shrink: 0;
622
- flex-grow: 0;
623
- user-select: none;
624
- -webkit-user-select: none;
625
- `),j("checkbox-box",`
626
- position: absolute;
627
- left: 0;
628
- top: 50%;
629
- transform: translateY(-50%);
630
- height: var(--n-size);
631
- width: var(--n-size);
632
- display: inline-block;
633
- box-sizing: border-box;
634
- border-radius: var(--n-border-radius);
635
- background-color: var(--n-color);
636
- transition: background-color 0.3s var(--n-bezier);
637
- `,[J("border",`
638
- transition:
639
- border-color .3s var(--n-bezier),
640
- box-shadow .3s var(--n-bezier);
641
- border-radius: inherit;
642
- position: absolute;
643
- left: 0;
644
- right: 0;
645
- top: 0;
646
- bottom: 0;
647
- border: var(--n-border);
648
- `),j("checkbox-icon",`
649
- display: flex;
650
- align-items: center;
651
- justify-content: center;
652
- position: absolute;
653
- left: 1px;
654
- right: 1px;
655
- top: 1px;
656
- bottom: 1px;
657
- `,[ce(".check-icon, .line-icon",`
658
- width: 100%;
659
- fill: var(--n-check-mark-color);
660
- opacity: 0;
661
- transform: scale(0.5);
662
- transform-origin: center;
663
- transition:
664
- fill 0.3s var(--n-bezier),
665
- transform 0.3s var(--n-bezier),
666
- opacity 0.3s var(--n-bezier),
667
- border-color 0.3s var(--n-bezier);
668
- `),rc({left:"1px",top:"1px"})])]),J("label",`
669
- color: var(--n-text-color);
670
- transition: color .3s var(--n-bezier);
671
- user-select: none;
672
- -webkit-user-select: none;
673
- padding: var(--n-label-padding);
674
- font-weight: var(--n-label-font-weight);
675
- `,[ce("&:empty",{display:"none"})])]),fg(j("checkbox",`
676
- --n-merged-color-table: var(--n-color-table-modal);
677
- `)),Hx(j("checkbox",`
678
- --n-merged-color-table: var(--n-color-table-popover);
679
- `))]),_I=Object.assign(Object.assign({},nn.props),{size:String,checked:{type:[Boolean,String,Number],default:void 0},defaultChecked:{type:[Boolean,String,Number],default:!1},value:[String,Number],disabled:{type:Boolean,default:void 0},indeterminate:Boolean,label:String,focusable:{type:Boolean,default:!0},checkedValue:{type:[Boolean,String,Number],default:!0},uncheckedValue:{type:[Boolean,String,Number],default:!1},"onUpdate:checked":[Function,Array],onUpdateChecked:[Function,Array],privateInsideTable:Boolean,onChange:[Function,Array]}),Fi=mt({name:"Checkbox",props:_I,setup(e){const t=os(EI,null),n=Me(null),{mergedClsPrefixRef:r,inlineThemeDisabled:s,mergedRtlRef:i}=Er(e),a=Me(e.defaultChecked),o=on(e,"checked"),c=tl(o,a),l=go(()=>{if(t){const A=t.valueSetRef.value;return A&&e.value!==void 0?A.has(e.value):!1}else return c.value===e.checkedValue}),d=Pu(e,{mergedSize(A){const{size:v}=e;if(v!==void 0)return v;if(t){const{value:O}=t.mergedSizeRef;if(O!==void 0)return O}if(A){const{mergedSize:O}=A;if(O!==void 0)return O.value}return"medium"},mergedDisabled(A){const{disabled:v}=e;if(v!==void 0)return v;if(t){if(t.disabledRef.value)return!0;const{maxRef:{value:O},checkedCountRef:z}=t;if(O!==void 0&&z.value>=O&&!l.value)return!0;const{minRef:{value:Q}}=t;if(Q!==void 0&&z.value<=Q&&l.value)return!0}return A?A.disabled.value:!1}}),{mergedDisabledRef:f,mergedSizeRef:m}=d,h=nn("Checkbox","-checkbox",vI,yI,e,r);function b(A){if(t&&e.value!==void 0)t.toggleCheckbox(!l.value,e.value);else{const{onChange:v,"onUpdate:checked":O,onUpdateChecked:z}=e,{nTriggerFormInput:Q,nTriggerFormChange:be}=d,N=l.value?e.uncheckedValue:e.checkedValue;O&&vt(O,N,A),z&&vt(z,N,A),v&&vt(v,N,A),Q(),be(),a.value=N}}function g(A){f.value||b(A)}function y(A){if(!f.value)switch(A.key){case" ":case"Enter":b(A)}}function p(A){switch(A.key){case" ":A.preventDefault()}}const C={focus:()=>{var A;(A=n.value)===null||A===void 0||A.focus()},blur:()=>{var A;(A=n.value)===null||A===void 0||A.blur()}},w=Vs("Checkbox",i,r),_=Fe(()=>{const{value:A}=m,{common:{cubicBezierEaseInOut:v},self:{borderRadius:O,color:z,colorChecked:Q,colorDisabled:be,colorTableHeader:N,colorTableHeaderModal:Y,colorTableHeaderPopover:x,checkMarkColor:Z,checkMarkColorDisabled:Le,border:re,borderFocus:He,borderDisabled:he,borderChecked:ze,boxShadowFocus:X,textColor:K,textColorDisabled:Qe,checkMarkColorDisabledChecked:De,colorDisabledChecked:Be,borderDisabledChecked:et,labelPadding:Wt,labelLineHeight:ft,labelFontWeight:Ke,[Ge("fontSize",A)]:Ot,[Ge("size",A)]:Ft}}=h.value;return{"--n-label-line-height":ft,"--n-label-font-weight":Ke,"--n-size":Ft,"--n-bezier":v,"--n-border-radius":O,"--n-border":re,"--n-border-checked":ze,"--n-border-focus":He,"--n-border-disabled":he,"--n-border-disabled-checked":et,"--n-box-shadow-focus":X,"--n-color":z,"--n-color-checked":Q,"--n-color-table":N,"--n-color-table-modal":Y,"--n-color-table-popover":x,"--n-color-disabled":be,"--n-color-disabled-checked":Be,"--n-text-color":K,"--n-text-color-disabled":Qe,"--n-check-mark-color":Z,"--n-check-mark-color-disabled":Le,"--n-check-mark-color-disabled-checked":De,"--n-font-size":Ot,"--n-label-padding":Wt}}),S=s?ys("checkbox",Fe(()=>m.value[0]),_,e):void 0;return Object.assign(d,C,{rtlEnabled:w,selfRef:n,mergedClsPrefix:r,mergedDisabled:f,renderedChecked:l,mergedTheme:h,labelId:og(),handleClick:g,handleKeyUp:y,handleKeyDown:p,cssVars:s?void 0:_,themeClass:S?.themeClass,onRender:S?.onRender})},render(){var e;const{$slots:t,renderedChecked:n,mergedDisabled:r,indeterminate:s,privateInsideTable:i,cssVars:a,labelId:o,label:c,mergedClsPrefix:l,focusable:d,handleKeyUp:f,handleKeyDown:m,handleClick:h}=this;(e=this.onRender)===null||e===void 0||e.call(this);const b=$n(t.default,g=>c||g?R("span",{class:`${l}-checkbox__label`,id:o},c||g):null);return R("div",{ref:"selfRef",class:[`${l}-checkbox`,this.themeClass,this.rtlEnabled&&`${l}-checkbox--rtl`,n&&`${l}-checkbox--checked`,r&&`${l}-checkbox--disabled`,s&&`${l}-checkbox--indeterminate`,i&&`${l}-checkbox--inside-table`,b&&`${l}-checkbox--show-label`],tabindex:r||!d?void 0:0,role:"checkbox","aria-checked":s?"mixed":n,"aria-labelledby":o,style:a,onKeyup:f,onKeydown:m,onClick:h,onMousedown:()=>{Yn("selectstart",window,g=>{g.preventDefault()},{once:!0})}},R("div",{class:`${l}-checkbox-box-wrapper`}," ",R("div",{class:`${l}-checkbox-box`},R(uh,null,{default:()=>this.indeterminate?R("div",{key:"indeterminate",class:`${l}-checkbox-icon`},xI()):R("div",{key:"check",class:`${l}-checkbox-icon`},CI())}),R("div",{class:`${l}-checkbox-box__border`}))),b)}});function SI(e){const{fontWeight:t,textColor1:n,textColor2:r,textColorDisabled:s,dividerColor:i,fontSize:a}=e;return{titleFontSize:a,titleFontWeight:t,dividerColor:i,titleTextColor:n,titleTextColorDisabled:s,fontSize:a,textColor:r,arrowColor:r,arrowColorDisabled:s,itemMargin:"16px 0 0 0",titlePadding:"16px 0 0 0"}}const TI={common:ps,self:SI},wI=j("collapse","width: 100%;",[j("collapse-item",`
680
- font-size: var(--n-font-size);
681
- color: var(--n-text-color);
682
- transition:
683
- color .3s var(--n-bezier),
684
- border-color .3s var(--n-bezier);
685
- margin: var(--n-item-margin);
686
- `,[oe("disabled",[J("header","cursor: not-allowed;",[J("header-main",`
687
- color: var(--n-title-text-color-disabled);
688
- `),j("collapse-item-arrow",`
689
- color: var(--n-arrow-color-disabled);
690
- `)])]),j("collapse-item","margin-left: 32px;"),ce("&:first-child","margin-top: 0;"),ce("&:first-child >",[J("header","padding-top: 0;")]),oe("left-arrow-placement",[J("header",[j("collapse-item-arrow","margin-right: 4px;")])]),oe("right-arrow-placement",[J("header",[j("collapse-item-arrow","margin-left: 4px;")])]),J("content-wrapper",[J("content-inner","padding-top: 16px;"),gA({duration:"0.15s"})]),oe("active",[J("header",[oe("active",[j("collapse-item-arrow","transform: rotate(90deg);")])])]),ce("&:not(:first-child)","border-top: 1px solid var(--n-divider-color);"),jr("disabled",[oe("trigger-area-main",[J("header",[J("header-main","cursor: pointer;"),j("collapse-item-arrow","cursor: default;")])]),oe("trigger-area-arrow",[J("header",[j("collapse-item-arrow","cursor: pointer;")])]),oe("trigger-area-extra",[J("header",[J("header-extra","cursor: pointer;")])])]),J("header",`
691
- font-size: var(--n-title-font-size);
692
- display: flex;
693
- flex-wrap: nowrap;
694
- align-items: center;
695
- transition: color .3s var(--n-bezier);
696
- position: relative;
697
- padding: var(--n-title-padding);
698
- color: var(--n-title-text-color);
699
- `,[J("header-main",`
700
- display: flex;
701
- flex-wrap: nowrap;
702
- align-items: center;
703
- font-weight: var(--n-title-font-weight);
704
- transition: color .3s var(--n-bezier);
705
- flex: 1;
706
- color: var(--n-title-text-color);
707
- `),J("header-extra",`
708
- display: flex;
709
- align-items: center;
710
- transition: color .3s var(--n-bezier);
711
- color: var(--n-text-color);
712
- `),j("collapse-item-arrow",`
713
- display: flex;
714
- transition:
715
- transform .15s var(--n-bezier),
716
- color .3s var(--n-bezier);
717
- font-size: 18px;
718
- color: var(--n-arrow-color);
719
- `)])])]),AI=Object.assign(Object.assign({},nn.props),{defaultExpandedNames:{type:[Array,String],default:null},expandedNames:[Array,String],arrowPlacement:{type:String,default:"left"},accordion:{type:Boolean,default:!1},displayDirective:{type:String,default:"if"},triggerAreas:{type:Array,default:()=>["main","extra","arrow"]},onItemHeaderClick:[Function,Array],"onUpdate:expandedNames":[Function,Array],onUpdateExpandedNames:[Function,Array],onExpandedNamesChange:{type:[Function,Array],validator:()=>!0,default:void 0}}),Sv=cs("n-collapse"),kI=mt({name:"Collapse",props:AI,slots:Object,setup(e,{slots:t}){const{mergedClsPrefixRef:n,inlineThemeDisabled:r,mergedRtlRef:s}=Er(e),i=Me(e.defaultExpandedNames),a=Fe(()=>e.expandedNames),o=tl(a,i),c=nn("Collapse","-collapse",wI,TI,e,n);function l(g){const{"onUpdate:expandedNames":y,onUpdateExpandedNames:p,onExpandedNamesChange:C}=e;p&&vt(p,g),y&&vt(y,g),C&&vt(C,g),i.value=g}function d(g){const{onItemHeaderClick:y}=e;y&&vt(y,g)}function f(g,y,p){const{accordion:C}=e,{value:w}=o;if(C)g?(l([y]),d({name:y,expanded:!0,event:p})):(l([]),d({name:y,expanded:!1,event:p}));else if(!Array.isArray(w))l([y]),d({name:y,expanded:!0,event:p});else{const _=w.slice(),S=_.findIndex(A=>y===A);~S?(_.splice(S,1),l(_),d({name:y,expanded:!1,event:p})):(_.push(y),l(_),d({name:y,expanded:!0,event:p}))}}oi(Sv,{props:e,mergedClsPrefixRef:n,expandedNamesRef:o,slots:t,toggleItem:f});const m=Vs("Collapse",s,n),h=Fe(()=>{const{common:{cubicBezierEaseInOut:g},self:{titleFontWeight:y,dividerColor:p,titlePadding:C,titleTextColor:w,titleTextColorDisabled:_,textColor:S,arrowColor:A,fontSize:v,titleFontSize:O,arrowColorDisabled:z,itemMargin:Q}}=c.value;return{"--n-font-size":v,"--n-bezier":g,"--n-text-color":S,"--n-divider-color":p,"--n-title-padding":C,"--n-title-font-size":O,"--n-title-text-color":w,"--n-title-text-color-disabled":_,"--n-title-font-weight":y,"--n-arrow-color":A,"--n-arrow-color-disabled":z,"--n-item-margin":Q}}),b=r?ys("collapse",void 0,h,e):void 0;return{rtlEnabled:m,mergedTheme:c,mergedClsPrefix:n,cssVars:r?void 0:h,themeClass:b?.themeClass,onRender:b?.onRender}},render(){var e;return(e=this.onRender)===null||e===void 0||e.call(this),R("div",{class:[`${this.mergedClsPrefix}-collapse`,this.rtlEnabled&&`${this.mergedClsPrefix}-collapse--rtl`,this.themeClass],style:this.cssVars},this.$slots)}}),II=mt({name:"CollapseItemContent",props:{displayDirective:{type:String,required:!0},show:Boolean,clsPrefix:{type:String,required:!0}},setup(e){return{onceTrue:rv(on(e,"show"))}},render(){return R($x,null,{default:()=>{const{show:e,displayDirective:t,onceTrue:n,clsPrefix:r}=this,s=t==="show"&&n,i=R("div",{class:`${r}-collapse-item__content-wrapper`},R("div",{class:`${r}-collapse-item__content-inner`},this.$slots));return s?fu(i,[[vf,e]]):e?i:null}})}}),RI={title:String,name:[String,Number],disabled:Boolean,displayDirective:String},od=mt({name:"CollapseItem",props:RI,setup(e){const{mergedRtlRef:t}=Er(e),n=og(),r=go(()=>{var f;return(f=e.name)!==null&&f!==void 0?f:n}),s=os(Sv);s||fh("collapse-item","`n-collapse-item` must be placed inside `n-collapse`.");const{expandedNamesRef:i,props:a,mergedClsPrefixRef:o,slots:c}=s,l=Fe(()=>{const{value:f}=i;if(Array.isArray(f)){const{value:m}=r;return!~f.findIndex(h=>h===m)}else if(f){const{value:m}=r;return m!==f}return!0});return{rtlEnabled:Vs("Collapse",t,o),collapseSlots:c,randomName:n,mergedClsPrefix:o,collapsed:l,triggerAreas:on(a,"triggerAreas"),mergedDisplayDirective:Fe(()=>{const{displayDirective:f}=e;return f||a.displayDirective}),arrowPlacement:Fe(()=>a.arrowPlacement),handleClick(f){let m="main";Ty(f,"arrow")&&(m="arrow"),Ty(f,"extra")&&(m="extra"),a.triggerAreas.includes(m)&&s&&!e.disabled&&s.toggleItem(l.value,r.value,f)}}},render(){const{collapseSlots:e,$slots:t,arrowPlacement:n,collapsed:r,mergedDisplayDirective:s,mergedClsPrefix:i,disabled:a,triggerAreas:o}=this,c=Lm(t.header,{collapsed:r},()=>[this.title]),l=t["header-extra"]||e["header-extra"],d=t.arrow||e.arrow;return R("div",{class:[`${i}-collapse-item`,`${i}-collapse-item--${n}-arrow-placement`,a&&`${i}-collapse-item--disabled`,!r&&`${i}-collapse-item--active`,o.map(f=>`${i}-collapse-item--trigger-area-${f}`)]},R("div",{class:[`${i}-collapse-item__header`,!r&&`${i}-collapse-item__header--active`]},R("div",{class:`${i}-collapse-item__header-main`,onClick:this.handleClick},n==="right"&&c,R("div",{class:`${i}-collapse-item-arrow`,key:this.rtlEnabled?0:1,"data-arrow":!0},Lm(d,{collapsed:r},()=>[R(Gs,{clsPrefix:i},{default:()=>this.rtlEnabled?R(Nk,null):R(Ok,null)})])),n==="left"&&c),N3(l,{collapsed:r},f=>R("div",{class:`${i}-collapse-item__header-extra`,onClick:this.handleClick,"data-extra":!0},f))),R(II,{clsPrefix:i,displayDirective:s,show:!r},t))}}),BI={radioSizeSmall:"14px",radioSizeMedium:"16px",radioSizeLarge:"18px",labelPadding:"0 8px",labelFontWeight:"400"};function PI(e){const{borderColor:t,primaryColor:n,baseColor:r,textColorDisabled:s,inputColorDisabled:i,textColor2:a,opacityDisabled:o,borderRadius:c,fontSizeSmall:l,fontSizeMedium:d,fontSizeLarge:f,heightSmall:m,heightMedium:h,heightLarge:b,lineHeight:g}=e;return Object.assign(Object.assign({},BI),{labelLineHeight:g,buttonHeightSmall:m,buttonHeightMedium:h,buttonHeightLarge:b,fontSizeSmall:l,fontSizeMedium:d,fontSizeLarge:f,boxShadow:`inset 0 0 0 1px ${t}`,boxShadowActive:`inset 0 0 0 1px ${n}`,boxShadowFocus:`inset 0 0 0 1px ${n}, 0 0 0 2px ${ai(n,{alpha:.2})}`,boxShadowHover:`inset 0 0 0 1px ${n}`,boxShadowDisabled:`inset 0 0 0 1px ${t}`,color:r,colorDisabled:i,colorActive:"#0000",textColor:a,textColorDisabled:s,dotColorActive:n,dotColorDisabled:t,buttonBorderColor:t,buttonBorderColorActive:n,buttonBorderColorHover:t,buttonColor:r,buttonColorActive:r,buttonTextColor:a,buttonTextColorActive:n,buttonTextColorHover:n,opacityDisabled:o,buttonBoxShadowFocus:`inset 0 0 0 1px ${n}, 0 0 0 2px ${ai(n,{alpha:.3})}`,buttonBoxShadowHover:"inset 0 0 0 1px #0000",buttonBoxShadow:"inset 0 0 0 1px #0000",buttonBorderRadius:c})}const NI={common:ps,self:PI},OI={name:String,value:{type:[String,Number,Boolean],default:"on"},checked:{type:Boolean,default:void 0},defaultChecked:Boolean,disabled:{type:Boolean,default:void 0},label:String,size:String,onUpdateChecked:[Function,Array],"onUpdate:checked":[Function,Array],checkedValue:{type:Boolean,default:void 0}},Tv=cs("n-radio-group");function DI(e){const t=os(Tv,null),n=Pu(e,{mergedSize(C){const{size:w}=e;if(w!==void 0)return w;if(t){const{mergedSizeRef:{value:_}}=t;if(_!==void 0)return _}return C?C.mergedSize.value:"medium"},mergedDisabled(C){return!!(e.disabled||t?.disabledRef.value||C?.disabled.value)}}),{mergedSizeRef:r,mergedDisabledRef:s}=n,i=Me(null),a=Me(null),o=Me(e.defaultChecked),c=on(e,"checked"),l=tl(c,o),d=go(()=>t?t.valueRef.value===e.value:l.value),f=go(()=>{const{name:C}=e;if(C!==void 0)return C;if(t)return t.nameRef.value}),m=Me(!1);function h(){if(t){const{doUpdateValue:C}=t,{value:w}=e;vt(C,w)}else{const{onUpdateChecked:C,"onUpdate:checked":w}=e,{nTriggerFormInput:_,nTriggerFormChange:S}=n;C&&vt(C,!0),w&&vt(w,!0),_(),S(),o.value=!0}}function b(){s.value||d.value||h()}function g(){b(),i.value&&(i.value.checked=d.value)}function y(){m.value=!1}function p(){m.value=!0}return{mergedClsPrefix:t?t.mergedClsPrefixRef:Er(e).mergedClsPrefixRef,inputRef:i,labelRef:a,mergedName:f,mergedDisabled:s,renderSafeChecked:d,focus:m,mergedSize:r,handleRadioInputChange:g,handleRadioInputBlur:y,handleRadioInputFocus:p}}const LI=mt({name:"RadioButton",props:OI,setup:DI,render(){const{mergedClsPrefix:e}=this;return R("label",{class:[`${e}-radio-button`,this.mergedDisabled&&`${e}-radio-button--disabled`,this.renderSafeChecked&&`${e}-radio-button--checked`,this.focus&&[`${e}-radio-button--focus`]]},R("input",{ref:"inputRef",type:"radio",class:`${e}-radio-input`,value:this.value,name:this.mergedName,checked:this.renderSafeChecked,disabled:this.mergedDisabled,onChange:this.handleRadioInputChange,onFocus:this.handleRadioInputFocus,onBlur:this.handleRadioInputBlur}),R("div",{class:`${e}-radio-button__state-border`}),$n(this.$slots.default,t=>!t&&!this.label?null:R("div",{ref:"labelRef",class:`${e}-radio__label`},t||this.label)))}}),MI=j("radio-group",`
720
- display: inline-block;
721
- font-size: var(--n-font-size);
722
- `,[J("splitor",`
723
- display: inline-block;
724
- vertical-align: bottom;
725
- width: 1px;
726
- transition:
727
- background-color .3s var(--n-bezier),
728
- opacity .3s var(--n-bezier);
729
- background: var(--n-button-border-color);
730
- `,[oe("checked",{backgroundColor:"var(--n-button-border-color-active)"}),oe("disabled",{opacity:"var(--n-opacity-disabled)"})]),oe("button-group",`
731
- white-space: nowrap;
732
- height: var(--n-height);
733
- line-height: var(--n-height);
734
- `,[j("radio-button",{height:"var(--n-height)",lineHeight:"var(--n-height)"}),J("splitor",{height:"var(--n-height)"})]),j("radio-button",`
735
- vertical-align: bottom;
736
- outline: none;
737
- position: relative;
738
- user-select: none;
739
- -webkit-user-select: none;
740
- display: inline-block;
741
- box-sizing: border-box;
742
- padding-left: 14px;
743
- padding-right: 14px;
744
- white-space: nowrap;
745
- transition:
746
- background-color .3s var(--n-bezier),
747
- opacity .3s var(--n-bezier),
748
- border-color .3s var(--n-bezier),
749
- color .3s var(--n-bezier);
750
- background: var(--n-button-color);
751
- color: var(--n-button-text-color);
752
- border-top: 1px solid var(--n-button-border-color);
753
- border-bottom: 1px solid var(--n-button-border-color);
754
- `,[j("radio-input",`
755
- pointer-events: none;
756
- position: absolute;
757
- border: 0;
758
- border-radius: inherit;
759
- left: 0;
760
- right: 0;
761
- top: 0;
762
- bottom: 0;
763
- opacity: 0;
764
- z-index: 1;
765
- `),J("state-border",`
766
- z-index: 1;
767
- pointer-events: none;
768
- position: absolute;
769
- box-shadow: var(--n-button-box-shadow);
770
- transition: box-shadow .3s var(--n-bezier);
771
- left: -1px;
772
- bottom: -1px;
773
- right: -1px;
774
- top: -1px;
775
- `),ce("&:first-child",`
776
- border-top-left-radius: var(--n-button-border-radius);
777
- border-bottom-left-radius: var(--n-button-border-radius);
778
- border-left: 1px solid var(--n-button-border-color);
779
- `,[J("state-border",`
780
- border-top-left-radius: var(--n-button-border-radius);
781
- border-bottom-left-radius: var(--n-button-border-radius);
782
- `)]),ce("&:last-child",`
783
- border-top-right-radius: var(--n-button-border-radius);
784
- border-bottom-right-radius: var(--n-button-border-radius);
785
- border-right: 1px solid var(--n-button-border-color);
786
- `,[J("state-border",`
787
- border-top-right-radius: var(--n-button-border-radius);
788
- border-bottom-right-radius: var(--n-button-border-radius);
789
- `)]),jr("disabled",`
790
- cursor: pointer;
791
- `,[ce("&:hover",[J("state-border",`
792
- transition: box-shadow .3s var(--n-bezier);
793
- box-shadow: var(--n-button-box-shadow-hover);
794
- `),jr("checked",{color:"var(--n-button-text-color-hover)"})]),oe("focus",[ce("&:not(:active)",[J("state-border",{boxShadow:"var(--n-button-box-shadow-focus)"})])])]),oe("checked",`
795
- background: var(--n-button-color-active);
796
- color: var(--n-button-text-color-active);
797
- border-color: var(--n-button-border-color-active);
798
- `),oe("disabled",`
799
- cursor: not-allowed;
800
- opacity: var(--n-opacity-disabled);
801
- `)])]);function FI(e,t,n){var r;const s=[];let i=!1;for(let a=0;a<e.length;++a){const o=e[a],c=(r=o.type)===null||r===void 0?void 0:r.name;c==="RadioButton"&&(i=!0);const l=o.props;if(c!=="RadioButton"){s.push(o);continue}if(a===0)s.push(o);else{const d=s[s.length-1].props,f=t===d.value,m=d.disabled,h=t===l.value,b=l.disabled,g=(f?2:0)+(m?0:1),y=(h?2:0)+(b?0:1),p={[`${n}-radio-group__splitor--disabled`]:m,[`${n}-radio-group__splitor--checked`]:f},C={[`${n}-radio-group__splitor--disabled`]:b,[`${n}-radio-group__splitor--checked`]:h},w=g<y?C:p;s.push(R("div",{class:[`${n}-radio-group__splitor`,w]}),o)}}return{children:s,isButtonGroup:i}}const zI=Object.assign(Object.assign({},nn.props),{name:String,value:[String,Number,Boolean],defaultValue:{type:[String,Number,Boolean],default:null},size:String,disabled:{type:Boolean,default:void 0},"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array]}),UI=mt({name:"RadioGroup",props:zI,setup(e){const t=Me(null),{mergedSizeRef:n,mergedDisabledRef:r,nTriggerFormChange:s,nTriggerFormInput:i,nTriggerFormBlur:a,nTriggerFormFocus:o}=Pu(e),{mergedClsPrefixRef:c,inlineThemeDisabled:l,mergedRtlRef:d}=Er(e),f=nn("Radio","-radio-group",MI,NI,e,c),m=Me(e.defaultValue),h=on(e,"value"),b=tl(h,m);function g(S){const{onUpdateValue:A,"onUpdate:value":v}=e;A&&vt(A,S),v&&vt(v,S),m.value=S,s(),i()}function y(S){const{value:A}=t;A&&(A.contains(S.relatedTarget)||o())}function p(S){const{value:A}=t;A&&(A.contains(S.relatedTarget)||a())}oi(Tv,{mergedClsPrefixRef:c,nameRef:on(e,"name"),valueRef:b,disabledRef:r,mergedSizeRef:n,doUpdateValue:g});const C=Vs("Radio",d,c),w=Fe(()=>{const{value:S}=n,{common:{cubicBezierEaseInOut:A},self:{buttonBorderColor:v,buttonBorderColorActive:O,buttonBorderRadius:z,buttonBoxShadow:Q,buttonBoxShadowFocus:be,buttonBoxShadowHover:N,buttonColor:Y,buttonColorActive:x,buttonTextColor:Z,buttonTextColorActive:Le,buttonTextColorHover:re,opacityDisabled:He,[Ge("buttonHeight",S)]:he,[Ge("fontSize",S)]:ze}}=f.value;return{"--n-font-size":ze,"--n-bezier":A,"--n-button-border-color":v,"--n-button-border-color-active":O,"--n-button-border-radius":z,"--n-button-box-shadow":Q,"--n-button-box-shadow-focus":be,"--n-button-box-shadow-hover":N,"--n-button-color":Y,"--n-button-color-active":x,"--n-button-text-color":Z,"--n-button-text-color-hover":re,"--n-button-text-color-active":Le,"--n-height":he,"--n-opacity-disabled":He}}),_=l?ys("radio-group",Fe(()=>n.value[0]),w,e):void 0;return{selfElRef:t,rtlEnabled:C,mergedClsPrefix:c,mergedValue:b,handleFocusout:p,handleFocusin:y,cssVars:l?void 0:w,themeClass:_?.themeClass,onRender:_?.onRender}},render(){var e;const{mergedValue:t,mergedClsPrefix:n,handleFocusin:r,handleFocusout:s}=this,{children:i,isButtonGroup:a}=FI(_i(Sg(this)),t,n);return(e=this.onRender)===null||e===void 0||e.call(this),R("div",{onFocusin:r,onFocusout:s,ref:"selfElRef",class:[`${n}-radio-group`,this.rtlEnabled&&`${n}-radio-group--rtl`,this.themeClass,a&&`${n}-radio-group--button-group`],style:this.cssVars},i)}}),$I=cs("n-dialog-provider"),HI={titleFontSize:"18px",padding:"16px 28px 20px 28px",iconSize:"28px",actionSpace:"12px",contentMargin:"8px 0 16px 0",iconMargin:"0 4px 0 0",iconMarginIconTop:"4px 0 8px 0",closeSize:"22px",closeIconSize:"18px",closeMargin:"20px 26px 0 0",closeMarginIconTop:"10px 16px 0 0"};function qI(e){const{textColor1:t,textColor2:n,modalColor:r,closeIconColor:s,closeIconColorHover:i,closeIconColorPressed:a,closeColorHover:o,closeColorPressed:c,infoColor:l,successColor:d,warningColor:f,errorColor:m,primaryColor:h,dividerColor:b,borderRadius:g,fontWeightStrong:y,lineHeight:p,fontSize:C}=e;return Object.assign(Object.assign({},HI),{fontSize:C,lineHeight:p,border:`1px solid ${b}`,titleTextColor:t,textColor:n,color:r,closeColorHover:o,closeColorPressed:c,closeIconColor:s,closeIconColorHover:i,closeIconColorPressed:a,closeBorderRadius:g,iconColor:h,iconColorInfo:l,iconColorSuccess:d,iconColorWarning:f,iconColorError:m,borderRadius:g,titleFontWeight:y})}const wv=jx({name:"Dialog",common:ps,peers:{Button:xv},self:qI}),Ag={icon:Function,type:{type:String,default:"default"},title:[String,Function],closable:{type:Boolean,default:!0},negativeText:String,positiveText:String,positiveButtonProps:Object,negativeButtonProps:Object,content:[String,Function],action:Function,showIcon:{type:Boolean,default:!0},loading:Boolean,bordered:Boolean,iconPlacement:String,titleClass:[String,Array],titleStyle:[String,Object],contentClass:[String,Array],contentStyle:[String,Object],actionClass:[String,Array],actionStyle:[String,Object],onPositiveClick:Function,onNegativeClick:Function,onClose:Function},jI=Tg(Ag),WI=ce([j("dialog",`
802
- --n-icon-margin: var(--n-icon-margin-top) var(--n-icon-margin-right) var(--n-icon-margin-bottom) var(--n-icon-margin-left);
803
- word-break: break-word;
804
- line-height: var(--n-line-height);
805
- position: relative;
806
- background: var(--n-color);
807
- color: var(--n-text-color);
808
- box-sizing: border-box;
809
- margin: auto;
810
- border-radius: var(--n-border-radius);
811
- padding: var(--n-padding);
812
- transition:
813
- border-color .3s var(--n-bezier),
814
- background-color .3s var(--n-bezier),
815
- color .3s var(--n-bezier);
816
- `,[J("icon",{color:"var(--n-icon-color)"}),oe("bordered",{border:"var(--n-border)"}),oe("icon-top",[J("close",{margin:"var(--n-close-margin)"}),J("icon",{margin:"var(--n-icon-margin)"}),J("content",{textAlign:"center"}),J("title",{justifyContent:"center"}),J("action",{justifyContent:"center"})]),oe("icon-left",[J("icon",{margin:"var(--n-icon-margin)"}),oe("closable",[J("title",`
817
- padding-right: calc(var(--n-close-size) + 6px);
818
- `)])]),J("close",`
819
- position: absolute;
820
- right: 0;
821
- top: 0;
822
- margin: var(--n-close-margin);
823
- transition:
824
- background-color .3s var(--n-bezier),
825
- color .3s var(--n-bezier);
826
- z-index: 1;
827
- `),J("content",`
828
- font-size: var(--n-font-size);
829
- margin: var(--n-content-margin);
830
- position: relative;
831
- word-break: break-word;
832
- `,[oe("last","margin-bottom: 0;")]),J("action",`
833
- display: flex;
834
- justify-content: flex-end;
835
- `,[ce("> *:not(:last-child)",`
836
- margin-right: var(--n-action-space);
837
- `)]),J("icon",`
838
- font-size: var(--n-icon-size);
839
- transition: color .3s var(--n-bezier);
840
- `),J("title",`
841
- transition: color .3s var(--n-bezier);
842
- display: flex;
843
- align-items: center;
844
- font-size: var(--n-title-font-size);
845
- font-weight: var(--n-title-font-weight);
846
- color: var(--n-title-text-color);
847
- `),j("dialog-icon-container",`
848
- display: flex;
849
- justify-content: center;
850
- `)]),fg(j("dialog",`
851
- width: 446px;
852
- max-width: calc(100vw - 32px);
853
- `)),j("dialog",[qx(`
854
- width: 446px;
855
- max-width: calc(100vw - 32px);
856
- `)])]),GI={default:()=>R(_f,null),info:()=>R(_f,null),success:()=>R(gg,null),warning:()=>R(bg,null),error:()=>R(mg,null)},VI=mt({name:"Dialog",alias:["NimbusConfirmCard","Confirm"],props:Object.assign(Object.assign({},nn.props),Ag),slots:Object,setup(e){const{mergedComponentPropsRef:t,mergedClsPrefixRef:n,inlineThemeDisabled:r,mergedRtlRef:s}=Er(e),i=Vs("Dialog",s,n),a=Fe(()=>{var h,b;const{iconPlacement:g}=e;return g||((b=(h=t?.value)===null||h===void 0?void 0:h.Dialog)===null||b===void 0?void 0:b.iconPlacement)||"left"});function o(h){const{onPositiveClick:b}=e;b&&b(h)}function c(h){const{onNegativeClick:b}=e;b&&b(h)}function l(){const{onClose:h}=e;h&&h()}const d=nn("Dialog","-dialog",WI,wv,e,n),f=Fe(()=>{const{type:h}=e,b=a.value,{common:{cubicBezierEaseInOut:g},self:{fontSize:y,lineHeight:p,border:C,titleTextColor:w,textColor:_,color:S,closeBorderRadius:A,closeColorHover:v,closeColorPressed:O,closeIconColor:z,closeIconColorHover:Q,closeIconColorPressed:be,closeIconSize:N,borderRadius:Y,titleFontWeight:x,titleFontSize:Z,padding:Le,iconSize:re,actionSpace:He,contentMargin:he,closeSize:ze,[b==="top"?"iconMarginIconTop":"iconMargin"]:X,[b==="top"?"closeMarginIconTop":"closeMargin"]:K,[Ge("iconColor",h)]:Qe}}=d.value,De=ks(X);return{"--n-font-size":y,"--n-icon-color":Qe,"--n-bezier":g,"--n-close-margin":K,"--n-icon-margin-top":De.top,"--n-icon-margin-right":De.right,"--n-icon-margin-bottom":De.bottom,"--n-icon-margin-left":De.left,"--n-icon-size":re,"--n-close-size":ze,"--n-close-icon-size":N,"--n-close-border-radius":A,"--n-close-color-hover":v,"--n-close-color-pressed":O,"--n-close-icon-color":z,"--n-close-icon-color-hover":Q,"--n-close-icon-color-pressed":be,"--n-color":S,"--n-text-color":_,"--n-border-radius":Y,"--n-padding":Le,"--n-line-height":p,"--n-border":C,"--n-content-margin":he,"--n-title-font-size":Z,"--n-title-font-weight":x,"--n-title-text-color":w,"--n-action-space":He}}),m=r?ys("dialog",Fe(()=>`${e.type[0]}${a.value[0]}`),f,e):void 0;return{mergedClsPrefix:n,rtlEnabled:i,mergedIconPlacement:a,mergedTheme:d,handlePositiveClick:o,handleNegativeClick:c,handleCloseClick:l,cssVars:r?void 0:f,themeClass:m?.themeClass,onRender:m?.onRender}},render(){var e;const{bordered:t,mergedIconPlacement:n,cssVars:r,closable:s,showIcon:i,title:a,content:o,action:c,negativeText:l,positiveText:d,positiveButtonProps:f,negativeButtonProps:m,handlePositiveClick:h,handleNegativeClick:b,mergedTheme:g,loading:y,type:p,mergedClsPrefix:C}=this;(e=this.onRender)===null||e===void 0||e.call(this);const w=i?R(Gs,{clsPrefix:C,class:`${C}-dialog__icon`},{default:()=>$n(this.$slots.icon,S=>S||(this.icon?va(this.icon):GI[this.type]()))}):null,_=$n(this.$slots.action,S=>S||d||l||c?R("div",{class:[`${C}-dialog__action`,this.actionClass],style:this.actionStyle},S||(c?[va(c)]:[this.negativeText&&R(Zi,Object.assign({theme:g.peers.Button,themeOverrides:g.peerOverrides.Button,ghost:!0,size:"small",onClick:b},m),{default:()=>va(this.negativeText)}),this.positiveText&&R(Zi,Object.assign({theme:g.peers.Button,themeOverrides:g.peerOverrides.Button,size:"small",type:p==="default"?"primary":p,disabled:y,loading:y,onClick:h},f),{default:()=>va(this.positiveText)})])):null);return R("div",{class:[`${C}-dialog`,this.themeClass,this.closable&&`${C}-dialog--closable`,`${C}-dialog--icon-${n}`,t&&`${C}-dialog--bordered`,this.rtlEnabled&&`${C}-dialog--rtl`],style:r,role:"dialog"},s?$n(this.$slots.close,S=>{const A=[`${C}-dialog__close`,this.rtlEnabled&&`${C}-dialog--rtl`];return S?R("div",{class:A},S):R(hg,{clsPrefix:C,class:A,onClick:this.handleCloseClick})}):null,i&&n==="top"?R("div",{class:`${C}-dialog-icon-container`},w):null,R("div",{class:[`${C}-dialog__title`,this.titleClass],style:this.titleStyle},i&&n==="left"?w:null,ci(this.$slots.header,()=>[va(a)])),R("div",{class:[`${C}-dialog__content`,_?"":`${C}-dialog__content--last`,this.contentClass],style:this.contentStyle},ci(this.$slots.default,()=>[va(o)])),_)}});function KI(e){const{modalColor:t,textColor2:n,boxShadow3:r}=e;return{color:t,textColor:n,boxShadow:r}}const YI=jx({name:"Modal",common:ps,peers:{Scrollbar:pv,Dialog:wv,Card:vv},self:KI}),Fm="n-draggable";function XI(e,t){let n;const r=Fe(()=>e.value!==!1),s=Fe(()=>r.value?Fm:""),i=Fe(()=>{const c=e.value;return c===!0||c===!1?!0:c?c.bounds!=="none":!0});function a(c){const l=c.querySelector(`.${Fm}`);if(!l||!s.value)return;let d=0,f=0,m=0,h=0,b=0,g=0,y;function p(_){_.preventDefault(),y=_;const{x:S,y:A,right:v,bottom:O}=c.getBoundingClientRect();f=S,h=A,d=window.innerWidth-v,m=window.innerHeight-O;const{left:z,top:Q}=c.style;b=+Q.slice(0,-2),g=+z.slice(0,-2)}function C(_){if(!y)return;const{clientX:S,clientY:A}=y;let v=_.clientX-S,O=_.clientY-A;i.value&&(v>d?v=d:-v>f&&(v=-f),O>m?O=m:-O>h&&(O=-h));const z=v+g,Q=O+b;c.style.top=`${Q}px`,c.style.left=`${z}px`}function w(){y=void 0,t.onEnd(c)}Yn("mousedown",l,p),Yn("mousemove",window,C),Yn("mouseup",window,w),n=()=>{mr("mousedown",l,p),Yn("mousemove",window,C),Yn("mouseup",window,w)}}function o(){n&&(n(),n=void 0)}return pA(o),{stopDrag:o,startDrag:a,draggableRef:r,draggableClassRef:s}}const kg=Object.assign(Object.assign({},wg),Ag),QI=Tg(kg),ZI=mt({name:"ModalBody",inheritAttrs:!1,slots:Object,props:Object.assign(Object.assign({show:{type:Boolean,required:!0},preset:String,displayDirective:{type:String,required:!0},trapFocus:{type:Boolean,default:!0},autoFocus:{type:Boolean,default:!0},blockScroll:Boolean,draggable:{type:[Boolean,Object],default:!1}},kg),{renderMask:Function,onClickoutside:Function,onBeforeLeave:{type:Function,required:!0},onAfterLeave:{type:Function,required:!0},onPositiveClick:{type:Function,required:!0},onNegativeClick:{type:Function,required:!0},onClose:{type:Function,required:!0},onAfterEnter:Function,onEsc:Function}),setup(e){const t=Me(null),n=Me(null),r=Me(e.show),s=Me(null),i=Me(null),a=os(iv);let o=null;rs(on(e,"show"),O=>{O&&(o=a.getMousePosition())},{immediate:!0});const{stopDrag:c,startDrag:l,draggableRef:d,draggableClassRef:f}=XI(on(e,"draggable"),{onEnd:O=>{g(O)}}),m=Fe(()=>vy([e.titleClass,f.value])),h=Fe(()=>vy([e.headerClass,f.value]));rs(on(e,"show"),O=>{O&&(r.value=!0)}),YA(Fe(()=>e.blockScroll&&r.value));function b(){if(a.transformOriginRef.value==="center")return"";const{value:O}=s,{value:z}=i;if(O===null||z===null)return"";if(n.value){const Q=n.value.containerScrollTop;return`${O}px ${z+Q}px`}return""}function g(O){if(a.transformOriginRef.value==="center"||!o||!n.value)return;const z=n.value.containerScrollTop,{offsetLeft:Q,offsetTop:be}=O,N=o.y,Y=o.x;s.value=-(Q-Y),i.value=-(be-N-z),O.style.transformOrigin=b()}function y(O){Qi(()=>{g(O)})}function p(O){O.style.transformOrigin=b(),e.onBeforeLeave()}function C(O){const z=O;d.value&&l(z),e.onAfterEnter&&e.onAfterEnter(z)}function w(){r.value=!1,s.value=null,i.value=null,c(),e.onAfterLeave()}function _(){const{onClose:O}=e;O&&O()}function S(){e.onNegativeClick()}function A(){e.onPositiveClick()}const v=Me(null);return rs(v,O=>{O&&Qi(()=>{const z=O.el;z&&t.value!==z&&(t.value=z)})}),oi(WA,t),oi(jA,null),oi(VA,null),{mergedTheme:a.mergedThemeRef,appear:a.appearRef,isMounted:a.isMountedRef,mergedClsPrefix:a.mergedClsPrefixRef,bodyRef:t,scrollbarRef:n,draggableClass:f,displayed:r,childNodeRef:v,cardHeaderClass:h,dialogTitleClass:m,handlePositiveClick:A,handleNegativeClick:S,handleCloseClick:_,handleAfterEnter:C,handleAfterLeave:w,handleBeforeLeave:p,handleEnter:y}},render(){const{$slots:e,$attrs:t,handleEnter:n,handleAfterEnter:r,handleAfterLeave:s,handleBeforeLeave:i,preset:a,mergedClsPrefix:o}=this;let c=null;if(!a){if(c=P3("default",e.default,{draggableClass:this.draggableClass}),!c){Fx("modal","default slot is empty");return}c=Wx(c),c.props=dg({class:`${o}-modal`},t,c.props||{})}return this.displayDirective==="show"||this.displayed||this.show?fu(R("div",{role:"none",class:`${o}-modal-body-wrapper`},R(yv,{ref:"scrollbarRef",theme:this.mergedTheme.peers.Scrollbar,themeOverrides:this.mergedTheme.peerOverrides.Scrollbar,contentClass:`${o}-modal-scroll-content`},{default:()=>{var l;return[(l=this.renderMask)===null||l===void 0?void 0:l.call(this),R(k3,{disabled:!this.trapFocus,active:this.show,onEsc:this.onEsc,autoFocus:this.autoFocus},{default:()=>{var d;return R(xf,{name:"fade-in-scale-up-transition",appear:(d=this.appear)!==null&&d!==void 0?d:this.isMounted,onEnter:n,onAfterEnter:r,onAfterLeave:s,onBeforeLeave:i},{default:()=>{const f=[[vf,this.show]],{onClickoutside:m}=this;return m&&f.push([QA,this.onClickoutside,void 0,{capture:!0}]),fu(this.preset==="confirm"||this.preset==="dialog"?R(VI,Object.assign({},this.$attrs,{class:[`${o}-modal`,this.$attrs.class],ref:"bodyRef",theme:this.mergedTheme.peers.Dialog,themeOverrides:this.mergedTheme.peerOverrides.Dialog},Dm(this.$props,jI),{titleClass:this.dialogTitleClass,"aria-modal":"true"}),e):this.preset==="card"?R(_v,Object.assign({},this.$attrs,{ref:"bodyRef",class:[`${o}-modal`,this.$attrs.class],theme:this.mergedTheme.peers.Card,themeOverrides:this.mergedTheme.peerOverrides.Card},Dm(this.$props,mI),{headerClass:this.cardHeaderClass,"aria-modal":"true",role:"dialog"}),e):this.childNodeRef=c,f)}})}})]}})),[[vf,this.displayDirective==="if"||this.displayed||this.show]]):null}}),JI=ce([j("modal-container",`
857
- position: fixed;
858
- left: 0;
859
- top: 0;
860
- height: 0;
861
- width: 0;
862
- display: flex;
863
- `),j("modal-mask",`
864
- position: fixed;
865
- left: 0;
866
- right: 0;
867
- top: 0;
868
- bottom: 0;
869
- background-color: rgba(0, 0, 0, .4);
870
- `,[gv({enterDuration:".25s",leaveDuration:".25s",enterCubicBezier:"var(--n-bezier-ease-out)",leaveCubicBezier:"var(--n-bezier-ease-out)"})]),j("modal-body-wrapper",`
871
- position: fixed;
872
- left: 0;
873
- right: 0;
874
- top: 0;
875
- bottom: 0;
876
- overflow: visible;
877
- `,[j("modal-scroll-content",`
878
- min-height: 100%;
879
- display: flex;
880
- position: relative;
881
- `)]),j("modal",`
882
- position: relative;
883
- align-self: center;
884
- color: var(--n-text-color);
885
- margin: auto;
886
- box-shadow: var(--n-box-shadow);
887
- `,[qk({duration:".25s",enterScale:".5"}),ce(`.${Fm}`,`
888
- cursor: move;
889
- user-select: none;
890
- `)])]),eR=Object.assign(Object.assign(Object.assign(Object.assign({},nn.props),{show:Boolean,unstableShowMask:{type:Boolean,default:!0},maskClosable:{type:Boolean,default:!0},preset:String,to:[String,Object],displayDirective:{type:String,default:"if"},transformOrigin:{type:String,default:"mouse"},zIndex:Number,autoFocus:{type:Boolean,default:!0},trapFocus:{type:Boolean,default:!0},closeOnEsc:{type:Boolean,default:!0},blockScroll:{type:Boolean,default:!0}}),kg),{draggable:[Boolean,Object],onEsc:Function,"onUpdate:show":[Function,Array],onUpdateShow:[Function,Array],onAfterEnter:Function,onBeforeLeave:Function,onAfterLeave:Function,onClose:Function,onPositiveClick:Function,onNegativeClick:Function,onMaskClick:Function,internalDialog:Boolean,internalModal:Boolean,internalAppear:{type:Boolean,default:void 0},overlayStyle:[String,Object],onBeforeHide:Function,onAfterHide:Function,onHide:Function}),tR=mt({name:"Modal",inheritAttrs:!1,props:eR,slots:Object,setup(e){const t=Me(null),{mergedClsPrefixRef:n,namespaceRef:r,inlineThemeDisabled:s}=Er(e),i=nn("Modal","-modal",JI,YI,e,n),a=$A(64),o=zA(),c=yA(),l=e.internalDialog?os($I,null):null,d=e.internalModal?os(GA,null):null,f=KA();function m(A){const{onUpdateShow:v,"onUpdate:show":O,onHide:z}=e;v&&vt(v,A),O&&vt(O,A),z&&!A&&z(A)}function h(){const{onClose:A}=e;A?Promise.resolve(A()).then(v=>{v!==!1&&m(!1)}):m(!1)}function b(){const{onPositiveClick:A}=e;A?Promise.resolve(A()).then(v=>{v!==!1&&m(!1)}):m(!1)}function g(){const{onNegativeClick:A}=e;A?Promise.resolve(A()).then(v=>{v!==!1&&m(!1)}):m(!1)}function y(){const{onBeforeLeave:A,onBeforeHide:v}=e;A&&vt(A),v&&v()}function p(){const{onAfterLeave:A,onAfterHide:v}=e;A&&vt(A),v&&v()}function C(A){var v;const{onMaskClick:O}=e;O&&O(A),e.maskClosable&&!((v=t.value)===null||v===void 0)&&v.contains(Cg(A))&&m(!1)}function w(A){var v;(v=e.onEsc)===null||v===void 0||v.call(e),e.show&&e.closeOnEsc&&B3(A)&&(f.value||m(!1))}oi(iv,{getMousePosition:()=>{const A=l||d;if(A){const{clickedRef:v,clickedPositionRef:O}=A;if(v.value&&O.value)return O.value}return a.value?o.value:null},mergedClsPrefixRef:n,mergedThemeRef:i,isMountedRef:c,appearRef:on(e,"internalAppear"),transformOriginRef:on(e,"transformOrigin")});const _=Fe(()=>{const{common:{cubicBezierEaseOut:A},self:{boxShadow:v,color:O,textColor:z}}=i.value;return{"--n-bezier-ease-out":A,"--n-box-shadow":v,"--n-color":O,"--n-text-color":z}}),S=s?ys("theme-class",void 0,_,e):void 0;return{mergedClsPrefix:n,namespace:r,isMounted:c,containerRef:t,presetProps:Fe(()=>Dm(e,QI)),handleEsc:w,handleAfterLeave:p,handleClickoutside:C,handleBeforeLeave:y,doUpdateShow:m,handleNegativeClick:g,handlePositiveClick:b,handleCloseClick:h,cssVars:s?void 0:_,themeClass:S?.themeClass,onRender:S?.onRender}},render(){const{mergedClsPrefix:e}=this;return R(n3,{to:this.to,show:this.show},{default:()=>{var t;(t=this.onRender)===null||t===void 0||t.call(this);const{unstableShowMask:n}=this;return fu(R("div",{role:"none",ref:"containerRef",class:[`${e}-modal-container`,this.themeClass,this.namespace],style:this.cssVars},R(ZI,Object.assign({style:this.overlayStyle},this.$attrs,{ref:"bodyWrapper",displayDirective:this.displayDirective,show:this.show,preset:this.preset,autoFocus:this.autoFocus,trapFocus:this.trapFocus,draggable:this.draggable,blockScroll:this.blockScroll},this.presetProps,{onEsc:this.handleEsc,onClose:this.handleCloseClick,onNegativeClick:this.handleNegativeClick,onPositiveClick:this.handlePositiveClick,onBeforeLeave:this.handleBeforeLeave,onAfterEnter:this.onAfterEnter,onAfterLeave:this.handleAfterLeave,onClickoutside:n?void 0:this.handleClickoutside,renderMask:n?()=>{var r;return R(xf,{name:"fade-in-transition",key:"mask",appear:(r=this.internalAppear)!==null&&r!==void 0?r:this.isMounted},{default:()=>this.show?R("div",{"aria-hidden":!0,ref:"containerRef",class:`${e}-modal-mask`,onClick:this.handleClickoutside}):null})}:void 0}),this.$slots)),[[e3,{zIndex:this.zIndex,enabled:this.show}]])}})}});function nR(){const e=os(EA,null);return e===null&&fh("use-message","No outer <n-message-provider /> founded. See prerequisite in https://www.naiveui.com/en-US/os-theme/components/message for more details. If you want to use `useMessage` outside setup, please check https://www.naiveui.com/zh-CN/os-theme/components/message#Q-&-A."),e}function rR(e){const{textColor1:t,dividerColor:n,fontWeightStrong:r}=e;return{textColor:t,color:n,fontWeight:r}}const sR={common:ps,self:rR},iR=j("divider",`
891
- position: relative;
892
- display: flex;
893
- width: 100%;
894
- box-sizing: border-box;
895
- font-size: 16px;
896
- color: var(--n-text-color);
897
- transition:
898
- color .3s var(--n-bezier),
899
- background-color .3s var(--n-bezier);
900
- `,[jr("vertical",`
901
- margin-top: 24px;
902
- margin-bottom: 24px;
903
- `,[jr("no-title",`
904
- display: flex;
905
- align-items: center;
906
- `)]),J("title",`
907
- display: flex;
908
- align-items: center;
909
- margin-left: 12px;
910
- margin-right: 12px;
911
- white-space: nowrap;
912
- font-weight: var(--n-font-weight);
913
- `),oe("title-position-left",[J("line",[oe("left",{width:"28px"})])]),oe("title-position-right",[J("line",[oe("right",{width:"28px"})])]),oe("dashed",[J("line",`
914
- background-color: #0000;
915
- height: 0px;
916
- width: 100%;
917
- border-style: dashed;
918
- border-width: 1px 0 0;
919
- `)]),oe("vertical",`
920
- display: inline-block;
921
- height: 1em;
922
- margin: 0 8px;
923
- vertical-align: middle;
924
- width: 1px;
925
- `),J("line",`
926
- border: none;
927
- transition: background-color .3s var(--n-bezier), border-color .3s var(--n-bezier);
928
- height: 1px;
929
- width: 100%;
930
- margin: 0;
931
- `),jr("dashed",[J("line",{backgroundColor:"var(--n-color)"})]),oe("dashed",[J("line",{borderColor:"var(--n-color)"})]),oe("vertical",{backgroundColor:"var(--n-color)"})]),aR=Object.assign(Object.assign({},nn.props),{titlePlacement:{type:String,default:"center"},dashed:Boolean,vertical:Boolean}),Ur=mt({name:"Divider",props:aR,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:n}=Er(e),r=nn("Divider","-divider",iR,sR,e,t),s=Fe(()=>{const{common:{cubicBezierEaseInOut:a},self:{color:o,textColor:c,fontWeight:l}}=r.value;return{"--n-bezier":a,"--n-color":o,"--n-text-color":c,"--n-font-weight":l}}),i=n?ys("divider",void 0,s,e):void 0;return{mergedClsPrefix:t,cssVars:n?void 0:s,themeClass:i?.themeClass,onRender:i?.onRender}},render(){var e;const{$slots:t,titlePlacement:n,vertical:r,dashed:s,cssVars:i,mergedClsPrefix:a}=this;return(e=this.onRender)===null||e===void 0||e.call(this),R("div",{role:"separator",class:[`${a}-divider`,this.themeClass,{[`${a}-divider--vertical`]:r,[`${a}-divider--no-title`]:!t.default,[`${a}-divider--dashed`]:s,[`${a}-divider--title-position-${n}`]:t.default&&n}],style:i},r?null:R("div",{class:`${a}-divider__line ${a}-divider__line--left`}),!r&&t.default?R(fa,null,R("div",{class:`${a}-divider__title`},this.$slots),R("div",{class:`${a}-divider__line ${a}-divider__line--right`})):null)}}),oR={gapSmall:"4px 8px",gapMedium:"8px 12px",gapLarge:"12px 16px"};function cR(){return oR}const lR={self:cR};let Zh;function uR(){if(!nl)return!0;if(Zh===void 0){const e=document.createElement("div");e.style.display="flex",e.style.flexDirection="column",e.style.rowGap="1px",e.appendChild(document.createElement("div")),e.appendChild(document.createElement("div")),document.body.appendChild(e);const t=e.scrollHeight===1;return document.body.removeChild(e),Zh=t}return Zh}const dR=Object.assign(Object.assign({},nn.props),{align:String,justify:{type:String,default:"start"},inline:Boolean,vertical:Boolean,reverse:Boolean,size:{type:[String,Number,Array],default:"medium"},wrapItem:{type:Boolean,default:!0},itemClass:String,itemStyle:[String,Object],wrap:{type:Boolean,default:!0},internalUseGap:{type:Boolean,default:void 0}}),fR=mt({name:"Space",props:dR,setup(e){const{mergedClsPrefixRef:t,mergedRtlRef:n}=Er(e),r=nn("Space","-space",void 0,lR,e,t),s=Vs("Space",n,t);return{useGap:uR(),rtlEnabled:s,mergedClsPrefix:t,margin:Fe(()=>{const{size:i}=e;if(Array.isArray(i))return{horizontal:i[0],vertical:i[1]};if(typeof i=="number")return{horizontal:i,vertical:i};const{self:{[Ge("gap",i)]:a}}=r.value,{row:o,col:c}=BA(a);return{horizontal:mu(c),vertical:mu(o)}})}},render(){const{vertical:e,reverse:t,align:n,inline:r,justify:s,itemClass:i,itemStyle:a,margin:o,wrap:c,mergedClsPrefix:l,rtlEnabled:d,useGap:f,wrapItem:m,internalUseGap:h}=this,b=_i(Sg(this),!1);if(!b.length)return null;const g=`${o.horizontal}px`,y=`${o.horizontal/2}px`,p=`${o.vertical}px`,C=`${o.vertical/2}px`,w=b.length-1,_=s.startsWith("space-");return R("div",{role:"none",class:[`${l}-space`,d&&`${l}-space--rtl`],style:{display:r?"inline-flex":"flex",flexDirection:e&&!t?"column":e&&t?"column-reverse":!e&&t?"row-reverse":"row",justifyContent:["start","end"].includes(s)?`flex-${s}`:s,flexWrap:!c||e?"nowrap":"wrap",marginTop:f||e?"":`-${C}`,marginBottom:f||e?"":`-${C}`,alignItems:n,gap:f?`${o.vertical}px ${o.horizontal}px`:""}},!m&&(f||h)?b:b.map((S,A)=>S.type===cg?S:R("div",{role:"none",class:i,style:[a,{maxWidth:"100%"},f?"":e?{marginBottom:A!==w?p:""}:d?{marginLeft:_?s==="space-between"&&A===w?"":y:A!==w?g:"",marginRight:_?s==="space-between"&&A===0?"":y:"",paddingTop:C,paddingBottom:C}:{marginRight:_?s==="space-between"&&A===w?"":y:A!==w?g:"",marginLeft:_?s==="space-between"&&A===0?"":y:"",paddingTop:C,paddingBottom:C}]},S)))}});function hR(e){const{infoColor:t,successColor:n,warningColor:r,errorColor:s,textColor2:i,progressRailColor:a,fontSize:o,fontWeight:c}=e;return{fontSize:o,fontSizeCircle:"28px",fontWeightCircle:c,railColor:a,railHeight:"8px",iconSizeCircle:"36px",iconSizeLine:"18px",iconColor:t,iconColorInfo:t,iconColorSuccess:n,iconColorWarning:r,iconColorError:s,textColorCircle:i,textColorLineInner:"rgb(255, 255, 255)",textColorLineOuter:i,fillColor:t,fillColorInfo:t,fillColorSuccess:n,fillColorWarning:r,fillColorError:s,lineBgProcessing:"linear-gradient(90deg, rgba(255, 255, 255, .3) 0%, rgba(255, 255, 255, .5) 100%)"}}const mR={common:ps,self:hR},bR={stepHeaderFontSizeSmall:"14px",stepHeaderFontSizeMedium:"16px",indicatorIndexFontSizeSmall:"14px",indicatorIndexFontSizeMedium:"16px",indicatorSizeSmall:"22px",indicatorSizeMedium:"28px",indicatorIconSizeSmall:"14px",indicatorIconSizeMedium:"18px"};function gR(e){const{fontWeightStrong:t,baseColor:n,textColorDisabled:r,primaryColor:s,errorColor:i,textColor1:a,textColor2:o}=e;return Object.assign(Object.assign({},bR),{stepHeaderFontWeight:t,indicatorTextColorProcess:n,indicatorTextColorWait:r,indicatorTextColorFinish:s,indicatorTextColorError:i,indicatorBorderColorProcess:s,indicatorBorderColorWait:r,indicatorBorderColorFinish:s,indicatorBorderColorError:i,indicatorColorProcess:s,indicatorColorWait:"#0000",indicatorColorFinish:"#0000",indicatorColorError:"#0000",splitorColorProcess:r,splitorColorWait:r,splitorColorFinish:s,splitorColorError:r,headerTextColorProcess:a,headerTextColorWait:r,headerTextColorFinish:r,headerTextColorError:i,descriptionTextColorProcess:o,descriptionTextColorWait:r,descriptionTextColorFinish:r,descriptionTextColorError:i})}const pR={common:ps,self:gR},yR={tabFontSizeSmall:"14px",tabFontSizeMedium:"14px",tabFontSizeLarge:"16px",tabGapSmallLine:"36px",tabGapMediumLine:"36px",tabGapLargeLine:"36px",tabGapSmallLineVertical:"8px",tabGapMediumLineVertical:"8px",tabGapLargeLineVertical:"8px",tabPaddingSmallLine:"6px 0",tabPaddingMediumLine:"10px 0",tabPaddingLargeLine:"14px 0",tabPaddingVerticalSmallLine:"6px 12px",tabPaddingVerticalMediumLine:"8px 16px",tabPaddingVerticalLargeLine:"10px 20px",tabGapSmallBar:"36px",tabGapMediumBar:"36px",tabGapLargeBar:"36px",tabGapSmallBarVertical:"8px",tabGapMediumBarVertical:"8px",tabGapLargeBarVertical:"8px",tabPaddingSmallBar:"4px 0",tabPaddingMediumBar:"6px 0",tabPaddingLargeBar:"10px 0",tabPaddingVerticalSmallBar:"6px 12px",tabPaddingVerticalMediumBar:"8px 16px",tabPaddingVerticalLargeBar:"10px 20px",tabGapSmallCard:"4px",tabGapMediumCard:"4px",tabGapLargeCard:"4px",tabGapSmallCardVertical:"4px",tabGapMediumCardVertical:"4px",tabGapLargeCardVertical:"4px",tabPaddingSmallCard:"8px 16px",tabPaddingMediumCard:"10px 20px",tabPaddingLargeCard:"12px 24px",tabPaddingSmallSegment:"4px 0",tabPaddingMediumSegment:"6px 0",tabPaddingLargeSegment:"8px 0",tabPaddingVerticalLargeSegment:"0 8px",tabPaddingVerticalSmallCard:"8px 12px",tabPaddingVerticalMediumCard:"10px 16px",tabPaddingVerticalLargeCard:"12px 20px",tabPaddingVerticalSmallSegment:"0 4px",tabPaddingVerticalMediumSegment:"0 6px",tabGapSmallSegment:"0",tabGapMediumSegment:"0",tabGapLargeSegment:"0",tabGapSmallSegmentVertical:"0",tabGapMediumSegmentVertical:"0",tabGapLargeSegmentVertical:"0",panePaddingSmall:"8px 0 0 0",panePaddingMedium:"12px 0 0 0",panePaddingLarge:"16px 0 0 0",closeSize:"18px",closeIconSize:"14px"};function ER(e){const{textColor2:t,primaryColor:n,textColorDisabled:r,closeIconColor:s,closeIconColorHover:i,closeIconColorPressed:a,closeColorHover:o,closeColorPressed:c,tabColor:l,baseColor:d,dividerColor:f,fontWeight:m,textColor1:h,borderRadius:b,fontSize:g,fontWeightStrong:y}=e;return Object.assign(Object.assign({},yR),{colorSegment:l,tabFontSizeCard:g,tabTextColorLine:h,tabTextColorActiveLine:n,tabTextColorHoverLine:n,tabTextColorDisabledLine:r,tabTextColorSegment:h,tabTextColorActiveSegment:t,tabTextColorHoverSegment:t,tabTextColorDisabledSegment:r,tabTextColorBar:h,tabTextColorActiveBar:n,tabTextColorHoverBar:n,tabTextColorDisabledBar:r,tabTextColorCard:h,tabTextColorHoverCard:h,tabTextColorActiveCard:n,tabTextColorDisabledCard:r,barColor:n,closeIconColor:s,closeIconColorHover:i,closeIconColorPressed:a,closeColorHover:o,closeColorPressed:c,closeBorderRadius:b,tabColor:l,tabColorSegment:d,tabBorderColor:f,tabFontWeightActive:m,tabFontWeight:m,tabBorderRadius:b,paneTextColor:t,fontWeightStrong:y})}const CR={common:ps,self:ER},xR={success:R(gg,null),error:R(mg,null),warning:R(bg,null),info:R(_f,null)},vR=mt({name:"ProgressCircle",props:{clsPrefix:{type:String,required:!0},status:{type:String,required:!0},strokeWidth:{type:Number,required:!0},fillColor:[String,Object],railColor:String,railStyle:[String,Object],percentage:{type:Number,default:0},offsetDegree:{type:Number,default:0},showIndicator:{type:Boolean,required:!0},indicatorTextColor:String,unit:String,viewBoxWidth:{type:Number,required:!0},gapDegree:{type:Number,required:!0},gapOffsetDegree:{type:Number,default:0}},setup(e,{slots:t}){function n(s,i,a,o){const{gapDegree:c,viewBoxWidth:l,strokeWidth:d}=e,f=50,m=0,h=f,b=0,g=2*f,y=50+d/2,p=`M ${y},${y} m ${m},${h}
932
- a ${f},${f} 0 1 1 ${b},${-g}
933
- a ${f},${f} 0 1 1 ${-b},${g}`,C=Math.PI*2*f,w={stroke:o==="rail"?a:typeof e.fillColor=="object"?"url(#gradient)":a,strokeDasharray:`${s/100*(C-c)}px ${l*8}px`,strokeDashoffset:`-${c/2}px`,transformOrigin:i?"center":void 0,transform:i?`rotate(${i}deg)`:void 0};return{pathString:p,pathStyle:w}}const r=()=>{const s=typeof e.fillColor=="object",i=s?e.fillColor.stops[0]:"",a=s?e.fillColor.stops[1]:"";return s&&R("defs",null,R("linearGradient",{id:"gradient",x1:"0%",y1:"100%",x2:"100%",y2:"0%"},R("stop",{offset:"0%","stop-color":i}),R("stop",{offset:"100%","stop-color":a})))};return()=>{const{fillColor:s,railColor:i,strokeWidth:a,offsetDegree:o,status:c,percentage:l,showIndicator:d,indicatorTextColor:f,unit:m,gapOffsetDegree:h,clsPrefix:b}=e,{pathString:g,pathStyle:y}=n(100,0,i,"rail"),{pathString:p,pathStyle:C}=n(l,o,s,"fill"),w=100+a;return R("div",{class:`${b}-progress-content`,role:"none"},R("div",{class:`${b}-progress-graph`,"aria-hidden":!0},R("div",{class:`${b}-progress-graph-circle`,style:{transform:h?`rotate(${h}deg)`:void 0}},R("svg",{viewBox:`0 0 ${w} ${w}`},r(),R("g",null,R("path",{class:`${b}-progress-graph-circle-rail`,d:g,"stroke-width":a,"stroke-linecap":"round",fill:"none",style:y})),R("g",null,R("path",{class:[`${b}-progress-graph-circle-fill`,l===0&&`${b}-progress-graph-circle-fill--empty`],d:p,"stroke-width":a,"stroke-linecap":"round",fill:"none",style:C}))))),d?R("div",null,t.default?R("div",{class:`${b}-progress-custom-content`,role:"none"},t.default()):c!=="default"?R("div",{class:`${b}-progress-icon`,"aria-hidden":!0},R(Gs,{clsPrefix:b},{default:()=>xR[c]})):R("div",{class:`${b}-progress-text`,style:{color:f},role:"none"},R("span",{class:`${b}-progress-text__percentage`},l),R("span",{class:`${b}-progress-text__unit`},m))):null)}}}),_R={success:R(gg,null),error:R(mg,null),warning:R(bg,null),info:R(_f,null)},SR=mt({name:"ProgressLine",props:{clsPrefix:{type:String,required:!0},percentage:{type:Number,default:0},railColor:String,railStyle:[String,Object],fillColor:[String,Object],status:{type:String,required:!0},indicatorPlacement:{type:String,required:!0},indicatorTextColor:String,unit:{type:String,default:"%"},processing:{type:Boolean,required:!0},showIndicator:{type:Boolean,required:!0},height:[String,Number],railBorderRadius:[String,Number],fillBorderRadius:[String,Number]},setup(e,{slots:t}){const n=Fe(()=>Wo(e.height)),r=Fe(()=>{var a,o;return typeof e.fillColor=="object"?`linear-gradient(to right, ${(a=e.fillColor)===null||a===void 0?void 0:a.stops[0]} , ${(o=e.fillColor)===null||o===void 0?void 0:o.stops[1]})`:e.fillColor}),s=Fe(()=>e.railBorderRadius!==void 0?Wo(e.railBorderRadius):e.height!==void 0?Wo(e.height,{c:.5}):""),i=Fe(()=>e.fillBorderRadius!==void 0?Wo(e.fillBorderRadius):e.railBorderRadius!==void 0?Wo(e.railBorderRadius):e.height!==void 0?Wo(e.height,{c:.5}):"");return()=>{const{indicatorPlacement:a,railColor:o,railStyle:c,percentage:l,unit:d,indicatorTextColor:f,status:m,showIndicator:h,processing:b,clsPrefix:g}=e;return R("div",{class:`${g}-progress-content`,role:"none"},R("div",{class:`${g}-progress-graph`,"aria-hidden":!0},R("div",{class:[`${g}-progress-graph-line`,{[`${g}-progress-graph-line--indicator-${a}`]:!0}]},R("div",{class:`${g}-progress-graph-line-rail`,style:[{backgroundColor:o,height:n.value,borderRadius:s.value},c]},R("div",{class:[`${g}-progress-graph-line-fill`,b&&`${g}-progress-graph-line-fill--processing`],style:{maxWidth:`${e.percentage}%`,background:r.value,height:n.value,lineHeight:n.value,borderRadius:i.value}},a==="inside"?R("div",{class:`${g}-progress-graph-line-indicator`,style:{color:f}},t.default?t.default():`${l}${d}`):null)))),h&&a==="outside"?R("div",null,t.default?R("div",{class:`${g}-progress-custom-content`,style:{color:f},role:"none"},t.default()):m==="default"?R("div",{role:"none",class:`${g}-progress-icon ${g}-progress-icon--as-text`,style:{color:f}},l,d):R("div",{class:`${g}-progress-icon`,"aria-hidden":!0},R(Gs,{clsPrefix:g},{default:()=>_R[m]}))):null)}}});function lE(e,t,n=100){return`m ${n/2} ${n/2-e} a ${e} ${e} 0 1 1 0 ${2*e} a ${e} ${e} 0 1 1 0 -${2*e}`}const TR=mt({name:"ProgressMultipleCircle",props:{clsPrefix:{type:String,required:!0},viewBoxWidth:{type:Number,required:!0},percentage:{type:Array,default:[0]},strokeWidth:{type:Number,required:!0},circleGap:{type:Number,required:!0},showIndicator:{type:Boolean,required:!0},fillColor:{type:Array,default:()=>[]},railColor:{type:Array,default:()=>[]},railStyle:{type:Array,default:()=>[]}},setup(e,{slots:t}){const n=Fe(()=>e.percentage.map((i,a)=>`${Math.PI*i/100*(e.viewBoxWidth/2-e.strokeWidth/2*(1+2*a)-e.circleGap*a)*2}, ${e.viewBoxWidth*8}`)),r=(s,i)=>{const a=e.fillColor[i],o=typeof a=="object"?a.stops[0]:"",c=typeof a=="object"?a.stops[1]:"";return typeof e.fillColor[i]=="object"&&R("linearGradient",{id:`gradient-${i}`,x1:"100%",y1:"0%",x2:"0%",y2:"100%"},R("stop",{offset:"0%","stop-color":o}),R("stop",{offset:"100%","stop-color":c}))};return()=>{const{viewBoxWidth:s,strokeWidth:i,circleGap:a,showIndicator:o,fillColor:c,railColor:l,railStyle:d,percentage:f,clsPrefix:m}=e;return R("div",{class:`${m}-progress-content`,role:"none"},R("div",{class:`${m}-progress-graph`,"aria-hidden":!0},R("div",{class:`${m}-progress-graph-circle`},R("svg",{viewBox:`0 0 ${s} ${s}`},R("defs",null,f.map((h,b)=>r(h,b))),f.map((h,b)=>R("g",{key:b},R("path",{class:`${m}-progress-graph-circle-rail`,d:lE(s/2-i/2*(1+2*b)-a*b,i,s),"stroke-width":i,"stroke-linecap":"round",fill:"none",style:[{strokeDashoffset:0,stroke:l[b]},d[b]]}),R("path",{class:[`${m}-progress-graph-circle-fill`,h===0&&`${m}-progress-graph-circle-fill--empty`],d:lE(s/2-i/2*(1+2*b)-a*b,i,s),"stroke-width":i,"stroke-linecap":"round",fill:"none",style:{strokeDasharray:n.value[b],strokeDashoffset:0,stroke:typeof c[b]=="object"?`url(#gradient-${b})`:c[b]}})))))),o&&t.default?R("div",null,R("div",{class:`${m}-progress-text`},t.default())):null)}}}),wR=ce([j("progress",{display:"inline-block"},[j("progress-icon",`
934
- color: var(--n-icon-color);
935
- transition: color .3s var(--n-bezier);
936
- `),oe("line",`
937
- width: 100%;
938
- display: block;
939
- `,[j("progress-content",`
940
- display: flex;
941
- align-items: center;
942
- `,[j("progress-graph",{flex:1})]),j("progress-custom-content",{marginLeft:"14px"}),j("progress-icon",`
943
- width: 30px;
944
- padding-left: 14px;
945
- height: var(--n-icon-size-line);
946
- line-height: var(--n-icon-size-line);
947
- font-size: var(--n-icon-size-line);
948
- `,[oe("as-text",`
949
- color: var(--n-text-color-line-outer);
950
- text-align: center;
951
- width: 40px;
952
- font-size: var(--n-font-size);
953
- padding-left: 4px;
954
- transition: color .3s var(--n-bezier);
955
- `)])]),oe("circle, dashboard",{width:"120px"},[j("progress-custom-content",`
956
- position: absolute;
957
- left: 50%;
958
- top: 50%;
959
- transform: translateX(-50%) translateY(-50%);
960
- display: flex;
961
- align-items: center;
962
- justify-content: center;
963
- `),j("progress-text",`
964
- position: absolute;
965
- left: 50%;
966
- top: 50%;
967
- transform: translateX(-50%) translateY(-50%);
968
- display: flex;
969
- align-items: center;
970
- color: inherit;
971
- font-size: var(--n-font-size-circle);
972
- color: var(--n-text-color-circle);
973
- font-weight: var(--n-font-weight-circle);
974
- transition: color .3s var(--n-bezier);
975
- white-space: nowrap;
976
- `),j("progress-icon",`
977
- position: absolute;
978
- left: 50%;
979
- top: 50%;
980
- transform: translateX(-50%) translateY(-50%);
981
- display: flex;
982
- align-items: center;
983
- color: var(--n-icon-color);
984
- font-size: var(--n-icon-size-circle);
985
- `)]),oe("multiple-circle",`
986
- width: 200px;
987
- color: inherit;
988
- `,[j("progress-text",`
989
- font-weight: var(--n-font-weight-circle);
990
- color: var(--n-text-color-circle);
991
- position: absolute;
992
- left: 50%;
993
- top: 50%;
994
- transform: translateX(-50%) translateY(-50%);
995
- display: flex;
996
- align-items: center;
997
- justify-content: center;
998
- transition: color .3s var(--n-bezier);
999
- `)]),j("progress-content",{position:"relative"}),j("progress-graph",{position:"relative"},[j("progress-graph-circle",[ce("svg",{verticalAlign:"bottom"}),j("progress-graph-circle-fill",`
1000
- stroke: var(--n-fill-color);
1001
- transition:
1002
- opacity .3s var(--n-bezier),
1003
- stroke .3s var(--n-bezier),
1004
- stroke-dasharray .3s var(--n-bezier);
1005
- `,[oe("empty",{opacity:0})]),j("progress-graph-circle-rail",`
1006
- transition: stroke .3s var(--n-bezier);
1007
- overflow: hidden;
1008
- stroke: var(--n-rail-color);
1009
- `)]),j("progress-graph-line",[oe("indicator-inside",[j("progress-graph-line-rail",`
1010
- height: 16px;
1011
- line-height: 16px;
1012
- border-radius: 10px;
1013
- `,[j("progress-graph-line-fill",`
1014
- height: inherit;
1015
- border-radius: 10px;
1016
- `),j("progress-graph-line-indicator",`
1017
- background: #0000;
1018
- white-space: nowrap;
1019
- text-align: right;
1020
- margin-left: 14px;
1021
- margin-right: 14px;
1022
- height: inherit;
1023
- font-size: 12px;
1024
- color: var(--n-text-color-line-inner);
1025
- transition: color .3s var(--n-bezier);
1026
- `)])]),oe("indicator-inside-label",`
1027
- height: 16px;
1028
- display: flex;
1029
- align-items: center;
1030
- `,[j("progress-graph-line-rail",`
1031
- flex: 1;
1032
- transition: background-color .3s var(--n-bezier);
1033
- `),j("progress-graph-line-indicator",`
1034
- background: var(--n-fill-color);
1035
- font-size: 12px;
1036
- transform: translateZ(0);
1037
- display: flex;
1038
- vertical-align: middle;
1039
- height: 16px;
1040
- line-height: 16px;
1041
- padding: 0 10px;
1042
- border-radius: 10px;
1043
- position: absolute;
1044
- white-space: nowrap;
1045
- color: var(--n-text-color-line-inner);
1046
- transition:
1047
- right .2s var(--n-bezier),
1048
- color .3s var(--n-bezier),
1049
- background-color .3s var(--n-bezier);
1050
- `)]),j("progress-graph-line-rail",`
1051
- position: relative;
1052
- overflow: hidden;
1053
- height: var(--n-rail-height);
1054
- border-radius: 5px;
1055
- background-color: var(--n-rail-color);
1056
- transition: background-color .3s var(--n-bezier);
1057
- `,[j("progress-graph-line-fill",`
1058
- background: var(--n-fill-color);
1059
- position: relative;
1060
- border-radius: 5px;
1061
- height: inherit;
1062
- width: 100%;
1063
- max-width: 0%;
1064
- transition:
1065
- background-color .3s var(--n-bezier),
1066
- max-width .2s var(--n-bezier);
1067
- `,[oe("processing",[ce("&::after",`
1068
- content: "";
1069
- background-image: var(--n-line-bg-processing);
1070
- animation: progress-processing-animation 2s var(--n-bezier) infinite;
1071
- `)])])])])])]),ce("@keyframes progress-processing-animation",`
1072
- 0% {
1073
- position: absolute;
1074
- left: 0;
1075
- top: 0;
1076
- bottom: 0;
1077
- right: 100%;
1078
- opacity: 1;
1079
- }
1080
- 66% {
1081
- position: absolute;
1082
- left: 0;
1083
- top: 0;
1084
- bottom: 0;
1085
- right: 0;
1086
- opacity: 0;
1087
- }
1088
- 100% {
1089
- position: absolute;
1090
- left: 0;
1091
- top: 0;
1092
- bottom: 0;
1093
- right: 0;
1094
- opacity: 0;
1095
- }
1096
- `)]),AR=Object.assign(Object.assign({},nn.props),{processing:Boolean,type:{type:String,default:"line"},gapDegree:Number,gapOffsetDegree:Number,status:{type:String,default:"default"},railColor:[String,Array],railStyle:[String,Array],color:[String,Array,Object],viewBoxWidth:{type:Number,default:100},strokeWidth:{type:Number,default:7},percentage:[Number,Array],unit:{type:String,default:"%"},showIndicator:{type:Boolean,default:!0},indicatorPosition:{type:String,default:"outside"},indicatorPlacement:{type:String,default:"outside"},indicatorTextColor:String,circleGap:{type:Number,default:1},height:Number,borderRadius:[String,Number],fillBorderRadius:[String,Number],offsetDegree:Number}),kR=mt({name:"Progress",props:AR,setup(e){const t=Fe(()=>e.indicatorPlacement||e.indicatorPosition),n=Fe(()=>{if(e.gapDegree||e.gapDegree===0)return e.gapDegree;if(e.type==="dashboard")return 75}),{mergedClsPrefixRef:r,inlineThemeDisabled:s}=Er(e),i=nn("Progress","-progress",wR,mR,e,r),a=Fe(()=>{const{status:c}=e,{common:{cubicBezierEaseInOut:l},self:{fontSize:d,fontSizeCircle:f,railColor:m,railHeight:h,iconSizeCircle:b,iconSizeLine:g,textColorCircle:y,textColorLineInner:p,textColorLineOuter:C,lineBgProcessing:w,fontWeightCircle:_,[Ge("iconColor",c)]:S,[Ge("fillColor",c)]:A}}=i.value;return{"--n-bezier":l,"--n-fill-color":A,"--n-font-size":d,"--n-font-size-circle":f,"--n-font-weight-circle":_,"--n-icon-color":S,"--n-icon-size-circle":b,"--n-icon-size-line":g,"--n-line-bg-processing":w,"--n-rail-color":m,"--n-rail-height":h,"--n-text-color-circle":y,"--n-text-color-line-inner":p,"--n-text-color-line-outer":C}}),o=s?ys("progress",Fe(()=>e.status[0]),a,e):void 0;return{mergedClsPrefix:r,mergedIndicatorPlacement:t,gapDeg:n,cssVars:s?void 0:a,themeClass:o?.themeClass,onRender:o?.onRender}},render(){const{type:e,cssVars:t,indicatorTextColor:n,showIndicator:r,status:s,railColor:i,railStyle:a,color:o,percentage:c,viewBoxWidth:l,strokeWidth:d,mergedIndicatorPlacement:f,unit:m,borderRadius:h,fillBorderRadius:b,height:g,processing:y,circleGap:p,mergedClsPrefix:C,gapDeg:w,gapOffsetDegree:_,themeClass:S,$slots:A,onRender:v}=this;return v?.(),R("div",{class:[S,`${C}-progress`,`${C}-progress--${e}`,`${C}-progress--${s}`],style:t,"aria-valuemax":100,"aria-valuemin":0,"aria-valuenow":c,role:e==="circle"||e==="line"||e==="dashboard"?"progressbar":"none"},e==="circle"||e==="dashboard"?R(vR,{clsPrefix:C,status:s,showIndicator:r,indicatorTextColor:n,railColor:i,fillColor:o,railStyle:a,offsetDegree:this.offsetDegree,percentage:c,viewBoxWidth:l,strokeWidth:d,gapDegree:w===void 0?e==="dashboard"?75:0:w,gapOffsetDegree:_,unit:m},A):e==="line"?R(SR,{clsPrefix:C,status:s,showIndicator:r,indicatorTextColor:n,railColor:i,fillColor:o,railStyle:a,percentage:c,processing:y,indicatorPlacement:f,unit:m,fillBorderRadius:b,railBorderRadius:h,height:g},A):e==="multiple-circle"?R(TR,{clsPrefix:C,strokeWidth:d,railColor:i,fillColor:o,railStyle:a,viewBoxWidth:l,percentage:c,showIndicator:r,circleGap:p},A):null)}}),IR=j("steps",`
1097
- width: 100%;
1098
- display: flex;
1099
- `,[j("step",`
1100
- position: relative;
1101
- display: flex;
1102
- flex: 1;
1103
- `,[oe("disabled","cursor: not-allowed"),oe("clickable",`
1104
- cursor: pointer;
1105
- `),ce("&:last-child",[j("step-splitor","display: none;")])]),j("step-splitor",`
1106
- background-color: var(--n-splitor-color);
1107
- margin-top: calc(var(--n-step-header-font-size) / 2);
1108
- height: 1px;
1109
- flex: 1;
1110
- align-self: flex-start;
1111
- margin-left: 12px;
1112
- margin-right: 12px;
1113
- transition:
1114
- color .3s var(--n-bezier),
1115
- background-color .3s var(--n-bezier);
1116
- `),j("step-content","flex: 1;",[j("step-content-header",`
1117
- color: var(--n-header-text-color);
1118
- margin-top: calc(var(--n-indicator-size) / 2 - var(--n-step-header-font-size) / 2);
1119
- line-height: var(--n-step-header-font-size);
1120
- font-size: var(--n-step-header-font-size);
1121
- position: relative;
1122
- display: flex;
1123
- font-weight: var(--n-step-header-font-weight);
1124
- margin-left: 9px;
1125
- transition:
1126
- color .3s var(--n-bezier),
1127
- background-color .3s var(--n-bezier);
1128
- `,[J("title",`
1129
- white-space: nowrap;
1130
- flex: 0;
1131
- `)]),J("description",`
1132
- color: var(--n-description-text-color);
1133
- margin-top: 12px;
1134
- margin-left: 9px;
1135
- transition:
1136
- color .3s var(--n-bezier),
1137
- background-color .3s var(--n-bezier);
1138
- `)]),j("step-indicator",`
1139
- background-color: var(--n-indicator-color);
1140
- box-shadow: 0 0 0 1px var(--n-indicator-border-color);
1141
- height: var(--n-indicator-size);
1142
- width: var(--n-indicator-size);
1143
- border-radius: 50%;
1144
- display: flex;
1145
- align-items: center;
1146
- justify-content: center;
1147
- transition:
1148
- background-color .3s var(--n-bezier),
1149
- box-shadow .3s var(--n-bezier);
1150
- `,[j("step-indicator-slot",`
1151
- position: relative;
1152
- width: var(--n-indicator-icon-size);
1153
- height: var(--n-indicator-icon-size);
1154
- font-size: var(--n-indicator-icon-size);
1155
- line-height: var(--n-indicator-icon-size);
1156
- `,[J("index",`
1157
- display: inline-block;
1158
- text-align: center;
1159
- position: absolute;
1160
- left: 0;
1161
- top: 0;
1162
- white-space: nowrap;
1163
- font-size: var(--n-indicator-index-font-size);
1164
- width: var(--n-indicator-icon-size);
1165
- height: var(--n-indicator-icon-size);
1166
- line-height: var(--n-indicator-icon-size);
1167
- color: var(--n-indicator-text-color);
1168
- transition: color .3s var(--n-bezier);
1169
- `,[rc()]),j("icon",`
1170
- color: var(--n-indicator-text-color);
1171
- transition: color .3s var(--n-bezier);
1172
- `,[rc()]),j("base-icon",`
1173
- color: var(--n-indicator-text-color);
1174
- transition: color .3s var(--n-bezier);
1175
- `,[rc()])])]),oe("vertical","flex-direction: column;",[jr("show-description",[ce(">",[j("step","padding-bottom: 8px;")])]),ce(">",[j("step","margin-bottom: 16px;",[ce("&:last-child","margin-bottom: 0;"),ce(">",[j("step-indicator",[ce(">",[j("step-splitor",`
1176
- position: absolute;
1177
- bottom: -8px;
1178
- width: 1px;
1179
- margin: 0 !important;
1180
- left: calc(var(--n-indicator-size) / 2);
1181
- height: calc(100% - var(--n-indicator-size));
1182
- `)])]),j("step-content",[J("description","margin-top: 8px;")])])])])])]);function RR(e,t){return typeof e!="object"||e===null||Array.isArray(e)?null:(e.props||(e.props={}),e.props.internalIndex=t+1,e)}function BR(e){return e.map((t,n)=>RR(t,n))}const PR=Object.assign(Object.assign({},nn.props),{current:Number,status:{type:String,default:"process"},size:{type:String,default:"medium"},vertical:Boolean,"onUpdate:current":[Function,Array],onUpdateCurrent:[Function,Array]}),Av=cs("n-steps"),NR=mt({name:"Steps",props:PR,slots:Object,setup(e,{slots:t}){const{mergedClsPrefixRef:n,mergedRtlRef:r}=Er(e),s=Vs("Steps",r,n),i=nn("Steps","-steps",IR,pR,e,n);return oi(Av,{props:e,mergedThemeRef:i,mergedClsPrefixRef:n,stepsSlots:t}),{mergedClsPrefix:n,rtlEnabled:s}},render(){const{mergedClsPrefix:e}=this;return R("div",{class:[`${e}-steps`,this.rtlEnabled&&`${e}-steps--rtl`,this.vertical&&`${e}-steps--vertical`]},BR(_i(Sg(this))))}}),OR={status:String,title:String,description:String,disabled:Boolean,internalIndex:{type:Number,default:0}},hh=mt({name:"Step",props:OR,slots:Object,setup(e){const t=os(Av,null);t||fh("step","`n-step` must be placed inside `n-steps`.");const{inlineThemeDisabled:n}=Er(),{props:r,mergedThemeRef:s,mergedClsPrefixRef:i,stepsSlots:a}=t,o=Fe(()=>r.vertical),c=Fe(()=>{const{status:m}=e;if(m)return m;{const{internalIndex:h}=e,{current:b}=r;if(b===void 0)return"process";if(h<b)return"finish";if(h===b)return r.status||"process";if(h>b)return"wait"}return"process"}),l=Fe(()=>{const{value:m}=c,{size:h}=r,{common:{cubicBezierEaseInOut:b},self:{stepHeaderFontWeight:g,[Ge("stepHeaderFontSize",h)]:y,[Ge("indicatorIndexFontSize",h)]:p,[Ge("indicatorSize",h)]:C,[Ge("indicatorIconSize",h)]:w,[Ge("indicatorTextColor",m)]:_,[Ge("indicatorBorderColor",m)]:S,[Ge("headerTextColor",m)]:A,[Ge("splitorColor",m)]:v,[Ge("indicatorColor",m)]:O,[Ge("descriptionTextColor",m)]:z}}=s.value;return{"--n-bezier":b,"--n-description-text-color":z,"--n-header-text-color":A,"--n-indicator-border-color":S,"--n-indicator-color":O,"--n-indicator-icon-size":w,"--n-indicator-index-font-size":p,"--n-indicator-size":C,"--n-indicator-text-color":_,"--n-splitor-color":v,"--n-step-header-font-size":y,"--n-step-header-font-weight":g}}),d=n?ys("step",Fe(()=>{const{value:m}=c,{size:h}=r;return`${m[0]}${h[0]}`}),l,r):void 0,f=Fe(()=>{if(e.disabled)return;const{onUpdateCurrent:m,"onUpdate:current":h}=r;return m||h?()=>{m&&vt(m,e.internalIndex),h&&vt(h,e.internalIndex)}:void 0});return{stepsSlots:a,mergedClsPrefix:i,vertical:o,mergedStatus:c,handleStepClick:f,cssVars:n?void 0:l,themeClass:d?.themeClass,onRender:d?.onRender}},render(){const{mergedClsPrefix:e,onRender:t,handleStepClick:n,disabled:r}=this,s=$n(this.$slots.default,i=>{const a=i||this.description;return a?R("div",{class:`${e}-step-content__description`},a):null});return t?.(),R("div",{class:[`${e}-step`,r&&`${e}-step--disabled`,!r&&n&&`${e}-step--clickable`,this.themeClass,s&&`${e}-step--show-description`,`${e}-step--${this.mergedStatus}-status`],style:this.cssVars,onClick:n},R("div",{class:`${e}-step-indicator`},R("div",{class:`${e}-step-indicator-slot`},R(uh,null,{default:()=>$n(this.$slots.icon,i=>{const{mergedStatus:a,stepsSlots:o}=this;return a==="finish"||a==="error"?a==="finish"?R(Gs,{clsPrefix:e,key:"finish"},{default:()=>ci(o["finish-icon"],()=>[R(Bk,null)])}):a==="error"?R(Gs,{clsPrefix:e,key:"error"},{default:()=>ci(o["error-icon"],()=>[R(CA,null)])}):null:i||R("div",{key:this.internalIndex,class:`${e}-step-indicator-slot__index`},this.internalIndex)})})),this.vertical?R("div",{class:`${e}-step-splitor`}):null),R("div",{class:`${e}-step-content`},R("div",{class:`${e}-step-content-header`},R("div",{class:`${e}-step-content-header__title`},ci(this.$slots.title,()=>[this.title])),this.vertical?null:R("div",{class:`${e}-step-splitor`})),s))}}),Ig=cs("n-tabs"),kv={tab:[String,Number,Object,Function],name:{type:[String,Number],required:!0},disabled:Boolean,displayDirective:{type:String,default:"if"},closable:{type:Boolean,default:void 0},tabProps:Object,label:[String,Number,Object,Function]},DR=mt({__TAB_PANE__:!0,name:"TabPane",alias:["TabPanel"],props:kv,slots:Object,setup(e){const t=os(Ig,null);return t||fh("tab-pane","`n-tab-pane` must be placed inside `n-tabs`."),{style:t.paneStyleRef,class:t.paneClassRef,mergedClsPrefix:t.mergedClsPrefixRef}},render(){return R("div",{class:[`${this.mergedClsPrefix}-tab-pane`,this.class],style:this.style},this.$slots)}}),LR=Object.assign({internalLeftPadded:Boolean,internalAddable:Boolean,internalCreatedByPane:Boolean},xA(kv,["displayDirective"])),zm=mt({__TAB__:!0,inheritAttrs:!1,name:"Tab",props:LR,setup(e){const{mergedClsPrefixRef:t,valueRef:n,typeRef:r,closableRef:s,tabStyleRef:i,addTabStyleRef:a,tabClassRef:o,addTabClassRef:c,tabChangeIdRef:l,onBeforeLeaveRef:d,triggerRef:f,handleAdd:m,activateTab:h,handleClose:b}=os(Ig);return{trigger:f,mergedClosable:Fe(()=>{if(e.internalAddable)return!1;const{closable:g}=e;return g===void 0?s.value:g}),style:i,addStyle:a,tabClass:o,addTabClass:c,clsPrefix:t,value:n,type:r,handleClose(g){g.stopPropagation(),!e.disabled&&b(e.name)},activateTab(){if(e.disabled)return;if(e.internalAddable){m();return}const{name:g}=e,y=++l.id;if(g!==n.value){const{value:p}=d;p?Promise.resolve(p(e.name,n.value)).then(C=>{C&&l.id===y&&h(g)}):h(g)}}}},render(){const{internalAddable:e,clsPrefix:t,name:n,disabled:r,label:s,tab:i,value:a,mergedClosable:o,trigger:c,$slots:{default:l}}=this,d=s??i;return R("div",{class:`${t}-tabs-tab-wrapper`},this.internalLeftPadded?R("div",{class:`${t}-tabs-tab-pad`}):null,R("div",Object.assign({key:n,"data-name":n,"data-disabled":r?!0:void 0},dg({class:[`${t}-tabs-tab`,a===n&&`${t}-tabs-tab--active`,r&&`${t}-tabs-tab--disabled`,o&&`${t}-tabs-tab--closable`,e&&`${t}-tabs-tab--addable`,e?this.addTabClass:this.tabClass],onClick:c==="click"?this.activateTab:void 0,onMouseenter:c==="hover"?this.activateTab:void 0,style:e?this.addStyle:this.style},this.internalCreatedByPane?this.tabProps||{}:this.$attrs)),R("span",{class:`${t}-tabs-tab__label`},e?R(fa,null,R("div",{class:`${t}-tabs-tab__height-placeholder`}," "),R(Gs,{clsPrefix:t},{default:()=>R(Rk,null)})):l?l():typeof d=="object"?d:va(d??n)),o&&this.type==="card"?R(hg,{clsPrefix:t,class:`${t}-tabs-tab__close`,onClick:this.handleClose,disabled:r}):null))}}),MR=j("tabs",`
1183
- box-sizing: border-box;
1184
- width: 100%;
1185
- display: flex;
1186
- flex-direction: column;
1187
- transition:
1188
- background-color .3s var(--n-bezier),
1189
- border-color .3s var(--n-bezier);
1190
- `,[oe("segment-type",[j("tabs-rail",[ce("&.transition-disabled",[j("tabs-capsule",`
1191
- transition: none;
1192
- `)])])]),oe("top",[j("tab-pane",`
1193
- padding: var(--n-pane-padding-top) var(--n-pane-padding-right) var(--n-pane-padding-bottom) var(--n-pane-padding-left);
1194
- `)]),oe("left",[j("tab-pane",`
1195
- padding: var(--n-pane-padding-right) var(--n-pane-padding-bottom) var(--n-pane-padding-left) var(--n-pane-padding-top);
1196
- `)]),oe("left, right",`
1197
- flex-direction: row;
1198
- `,[j("tabs-bar",`
1199
- width: 2px;
1200
- right: 0;
1201
- transition:
1202
- top .2s var(--n-bezier),
1203
- max-height .2s var(--n-bezier),
1204
- background-color .3s var(--n-bezier);
1205
- `),j("tabs-tab",`
1206
- padding: var(--n-tab-padding-vertical);
1207
- `)]),oe("right",`
1208
- flex-direction: row-reverse;
1209
- `,[j("tab-pane",`
1210
- padding: var(--n-pane-padding-left) var(--n-pane-padding-top) var(--n-pane-padding-right) var(--n-pane-padding-bottom);
1211
- `),j("tabs-bar",`
1212
- left: 0;
1213
- `)]),oe("bottom",`
1214
- flex-direction: column-reverse;
1215
- justify-content: flex-end;
1216
- `,[j("tab-pane",`
1217
- padding: var(--n-pane-padding-bottom) var(--n-pane-padding-right) var(--n-pane-padding-top) var(--n-pane-padding-left);
1218
- `),j("tabs-bar",`
1219
- top: 0;
1220
- `)]),j("tabs-rail",`
1221
- position: relative;
1222
- padding: 3px;
1223
- border-radius: var(--n-tab-border-radius);
1224
- width: 100%;
1225
- background-color: var(--n-color-segment);
1226
- transition: background-color .3s var(--n-bezier);
1227
- display: flex;
1228
- align-items: center;
1229
- `,[j("tabs-capsule",`
1230
- border-radius: var(--n-tab-border-radius);
1231
- position: absolute;
1232
- pointer-events: none;
1233
- background-color: var(--n-tab-color-segment);
1234
- box-shadow: 0 1px 3px 0 rgba(0, 0, 0, .08);
1235
- transition: transform 0.3s var(--n-bezier);
1236
- `),j("tabs-tab-wrapper",`
1237
- flex-basis: 0;
1238
- flex-grow: 1;
1239
- display: flex;
1240
- align-items: center;
1241
- justify-content: center;
1242
- `,[j("tabs-tab",`
1243
- overflow: hidden;
1244
- border-radius: var(--n-tab-border-radius);
1245
- width: 100%;
1246
- display: flex;
1247
- align-items: center;
1248
- justify-content: center;
1249
- `,[oe("active",`
1250
- font-weight: var(--n-font-weight-strong);
1251
- color: var(--n-tab-text-color-active);
1252
- `),ce("&:hover",`
1253
- color: var(--n-tab-text-color-hover);
1254
- `)])])]),oe("flex",[j("tabs-nav",`
1255
- width: 100%;
1256
- position: relative;
1257
- `,[j("tabs-wrapper",`
1258
- width: 100%;
1259
- `,[j("tabs-tab",`
1260
- margin-right: 0;
1261
- `)])])]),j("tabs-nav",`
1262
- box-sizing: border-box;
1263
- line-height: 1.5;
1264
- display: flex;
1265
- transition: border-color .3s var(--n-bezier);
1266
- `,[J("prefix, suffix",`
1267
- display: flex;
1268
- align-items: center;
1269
- `),J("prefix","padding-right: 16px;"),J("suffix","padding-left: 16px;")]),oe("top, bottom",[j("tabs-nav-scroll-wrapper",[ce("&::before",`
1270
- top: 0;
1271
- bottom: 0;
1272
- left: 0;
1273
- width: 20px;
1274
- `),ce("&::after",`
1275
- top: 0;
1276
- bottom: 0;
1277
- right: 0;
1278
- width: 20px;
1279
- `),oe("shadow-start",[ce("&::before",`
1280
- box-shadow: inset 10px 0 8px -8px rgba(0, 0, 0, .12);
1281
- `)]),oe("shadow-end",[ce("&::after",`
1282
- box-shadow: inset -10px 0 8px -8px rgba(0, 0, 0, .12);
1283
- `)])])]),oe("left, right",[j("tabs-nav-scroll-content",`
1284
- flex-direction: column;
1285
- `),j("tabs-nav-scroll-wrapper",[ce("&::before",`
1286
- top: 0;
1287
- left: 0;
1288
- right: 0;
1289
- height: 20px;
1290
- `),ce("&::after",`
1291
- bottom: 0;
1292
- left: 0;
1293
- right: 0;
1294
- height: 20px;
1295
- `),oe("shadow-start",[ce("&::before",`
1296
- box-shadow: inset 0 10px 8px -8px rgba(0, 0, 0, .12);
1297
- `)]),oe("shadow-end",[ce("&::after",`
1298
- box-shadow: inset 0 -10px 8px -8px rgba(0, 0, 0, .12);
1299
- `)])])]),j("tabs-nav-scroll-wrapper",`
1300
- flex: 1;
1301
- position: relative;
1302
- overflow: hidden;
1303
- `,[j("tabs-nav-y-scroll",`
1304
- height: 100%;
1305
- width: 100%;
1306
- overflow-y: auto;
1307
- scrollbar-width: none;
1308
- `,[ce("&::-webkit-scrollbar, &::-webkit-scrollbar-track-piece, &::-webkit-scrollbar-thumb",`
1309
- width: 0;
1310
- height: 0;
1311
- display: none;
1312
- `)]),ce("&::before, &::after",`
1313
- transition: box-shadow .3s var(--n-bezier);
1314
- pointer-events: none;
1315
- content: "";
1316
- position: absolute;
1317
- z-index: 1;
1318
- `)]),j("tabs-nav-scroll-content",`
1319
- display: flex;
1320
- position: relative;
1321
- min-width: 100%;
1322
- min-height: 100%;
1323
- width: fit-content;
1324
- box-sizing: border-box;
1325
- `),j("tabs-wrapper",`
1326
- display: inline-flex;
1327
- flex-wrap: nowrap;
1328
- position: relative;
1329
- `),j("tabs-tab-wrapper",`
1330
- display: flex;
1331
- flex-wrap: nowrap;
1332
- flex-shrink: 0;
1333
- flex-grow: 0;
1334
- `),j("tabs-tab",`
1335
- cursor: pointer;
1336
- white-space: nowrap;
1337
- flex-wrap: nowrap;
1338
- display: inline-flex;
1339
- align-items: center;
1340
- color: var(--n-tab-text-color);
1341
- font-size: var(--n-tab-font-size);
1342
- background-clip: padding-box;
1343
- padding: var(--n-tab-padding);
1344
- transition:
1345
- box-shadow .3s var(--n-bezier),
1346
- color .3s var(--n-bezier),
1347
- background-color .3s var(--n-bezier),
1348
- border-color .3s var(--n-bezier);
1349
- `,[oe("disabled",{cursor:"not-allowed"}),J("close",`
1350
- margin-left: 6px;
1351
- transition:
1352
- background-color .3s var(--n-bezier),
1353
- color .3s var(--n-bezier);
1354
- `),J("label",`
1355
- display: flex;
1356
- align-items: center;
1357
- z-index: 1;
1358
- `)]),j("tabs-bar",`
1359
- position: absolute;
1360
- bottom: 0;
1361
- height: 2px;
1362
- border-radius: 1px;
1363
- background-color: var(--n-bar-color);
1364
- transition:
1365
- left .2s var(--n-bezier),
1366
- max-width .2s var(--n-bezier),
1367
- opacity .3s var(--n-bezier),
1368
- background-color .3s var(--n-bezier);
1369
- `,[ce("&.transition-disabled",`
1370
- transition: none;
1371
- `),oe("disabled",`
1372
- background-color: var(--n-tab-text-color-disabled)
1373
- `)]),j("tabs-pane-wrapper",`
1374
- position: relative;
1375
- overflow: hidden;
1376
- transition: max-height .2s var(--n-bezier);
1377
- `),j("tab-pane",`
1378
- color: var(--n-pane-text-color);
1379
- width: 100%;
1380
- transition:
1381
- color .3s var(--n-bezier),
1382
- background-color .3s var(--n-bezier),
1383
- opacity .2s var(--n-bezier);
1384
- left: 0;
1385
- right: 0;
1386
- top: 0;
1387
- `,[ce("&.next-transition-leave-active, &.prev-transition-leave-active, &.next-transition-enter-active, &.prev-transition-enter-active",`
1388
- transition:
1389
- color .3s var(--n-bezier),
1390
- background-color .3s var(--n-bezier),
1391
- transform .2s var(--n-bezier),
1392
- opacity .2s var(--n-bezier);
1393
- `),ce("&.next-transition-leave-active, &.prev-transition-leave-active",`
1394
- position: absolute;
1395
- `),ce("&.next-transition-enter-from, &.prev-transition-leave-to",`
1396
- transform: translateX(32px);
1397
- opacity: 0;
1398
- `),ce("&.next-transition-leave-to, &.prev-transition-enter-from",`
1399
- transform: translateX(-32px);
1400
- opacity: 0;
1401
- `),ce("&.next-transition-leave-from, &.next-transition-enter-to, &.prev-transition-leave-from, &.prev-transition-enter-to",`
1402
- transform: translateX(0);
1403
- opacity: 1;
1404
- `)]),j("tabs-tab-pad",`
1405
- box-sizing: border-box;
1406
- width: var(--n-tab-gap);
1407
- flex-grow: 0;
1408
- flex-shrink: 0;
1409
- `),oe("line-type, bar-type",[j("tabs-tab",`
1410
- font-weight: var(--n-tab-font-weight);
1411
- box-sizing: border-box;
1412
- vertical-align: bottom;
1413
- `,[ce("&:hover",{color:"var(--n-tab-text-color-hover)"}),oe("active",`
1414
- color: var(--n-tab-text-color-active);
1415
- font-weight: var(--n-tab-font-weight-active);
1416
- `),oe("disabled",{color:"var(--n-tab-text-color-disabled)"})])]),j("tabs-nav",[oe("line-type",[oe("top",[J("prefix, suffix",`
1417
- border-bottom: 1px solid var(--n-tab-border-color);
1418
- `),j("tabs-nav-scroll-content",`
1419
- border-bottom: 1px solid var(--n-tab-border-color);
1420
- `),j("tabs-bar",`
1421
- bottom: -1px;
1422
- `)]),oe("left",[J("prefix, suffix",`
1423
- border-right: 1px solid var(--n-tab-border-color);
1424
- `),j("tabs-nav-scroll-content",`
1425
- border-right: 1px solid var(--n-tab-border-color);
1426
- `),j("tabs-bar",`
1427
- right: -1px;
1428
- `)]),oe("right",[J("prefix, suffix",`
1429
- border-left: 1px solid var(--n-tab-border-color);
1430
- `),j("tabs-nav-scroll-content",`
1431
- border-left: 1px solid var(--n-tab-border-color);
1432
- `),j("tabs-bar",`
1433
- left: -1px;
1434
- `)]),oe("bottom",[J("prefix, suffix",`
1435
- border-top: 1px solid var(--n-tab-border-color);
1436
- `),j("tabs-nav-scroll-content",`
1437
- border-top: 1px solid var(--n-tab-border-color);
1438
- `),j("tabs-bar",`
1439
- top: -1px;
1440
- `)]),J("prefix, suffix",`
1441
- transition: border-color .3s var(--n-bezier);
1442
- `),j("tabs-nav-scroll-content",`
1443
- transition: border-color .3s var(--n-bezier);
1444
- `),j("tabs-bar",`
1445
- border-radius: 0;
1446
- `)]),oe("card-type",[J("prefix, suffix",`
1447
- transition: border-color .3s var(--n-bezier);
1448
- `),j("tabs-pad",`
1449
- flex-grow: 1;
1450
- transition: border-color .3s var(--n-bezier);
1451
- `),j("tabs-tab-pad",`
1452
- transition: border-color .3s var(--n-bezier);
1453
- `),j("tabs-tab",`
1454
- font-weight: var(--n-tab-font-weight);
1455
- border: 1px solid var(--n-tab-border-color);
1456
- background-color: var(--n-tab-color);
1457
- box-sizing: border-box;
1458
- position: relative;
1459
- vertical-align: bottom;
1460
- display: flex;
1461
- justify-content: space-between;
1462
- font-size: var(--n-tab-font-size);
1463
- color: var(--n-tab-text-color);
1464
- `,[oe("addable",`
1465
- padding-left: 8px;
1466
- padding-right: 8px;
1467
- font-size: 16px;
1468
- justify-content: center;
1469
- `,[J("height-placeholder",`
1470
- width: 0;
1471
- font-size: var(--n-tab-font-size);
1472
- `),jr("disabled",[ce("&:hover",`
1473
- color: var(--n-tab-text-color-hover);
1474
- `)])]),oe("closable","padding-right: 8px;"),oe("active",`
1475
- background-color: #0000;
1476
- font-weight: var(--n-tab-font-weight-active);
1477
- color: var(--n-tab-text-color-active);
1478
- `),oe("disabled","color: var(--n-tab-text-color-disabled);")])]),oe("left, right",`
1479
- flex-direction: column;
1480
- `,[J("prefix, suffix",`
1481
- padding: var(--n-tab-padding-vertical);
1482
- `),j("tabs-wrapper",`
1483
- flex-direction: column;
1484
- `),j("tabs-tab-wrapper",`
1485
- flex-direction: column;
1486
- `,[j("tabs-tab-pad",`
1487
- height: var(--n-tab-gap-vertical);
1488
- width: 100%;
1489
- `)])]),oe("top",[oe("card-type",[j("tabs-scroll-padding","border-bottom: 1px solid var(--n-tab-border-color);"),J("prefix, suffix",`
1490
- border-bottom: 1px solid var(--n-tab-border-color);
1491
- `),j("tabs-tab",`
1492
- border-top-left-radius: var(--n-tab-border-radius);
1493
- border-top-right-radius: var(--n-tab-border-radius);
1494
- `,[oe("active",`
1495
- border-bottom: 1px solid #0000;
1496
- `)]),j("tabs-tab-pad",`
1497
- border-bottom: 1px solid var(--n-tab-border-color);
1498
- `),j("tabs-pad",`
1499
- border-bottom: 1px solid var(--n-tab-border-color);
1500
- `)])]),oe("left",[oe("card-type",[j("tabs-scroll-padding","border-right: 1px solid var(--n-tab-border-color);"),J("prefix, suffix",`
1501
- border-right: 1px solid var(--n-tab-border-color);
1502
- `),j("tabs-tab",`
1503
- border-top-left-radius: var(--n-tab-border-radius);
1504
- border-bottom-left-radius: var(--n-tab-border-radius);
1505
- `,[oe("active",`
1506
- border-right: 1px solid #0000;
1507
- `)]),j("tabs-tab-pad",`
1508
- border-right: 1px solid var(--n-tab-border-color);
1509
- `),j("tabs-pad",`
1510
- border-right: 1px solid var(--n-tab-border-color);
1511
- `)])]),oe("right",[oe("card-type",[j("tabs-scroll-padding","border-left: 1px solid var(--n-tab-border-color);"),J("prefix, suffix",`
1512
- border-left: 1px solid var(--n-tab-border-color);
1513
- `),j("tabs-tab",`
1514
- border-top-right-radius: var(--n-tab-border-radius);
1515
- border-bottom-right-radius: var(--n-tab-border-radius);
1516
- `,[oe("active",`
1517
- border-left: 1px solid #0000;
1518
- `)]),j("tabs-tab-pad",`
1519
- border-left: 1px solid var(--n-tab-border-color);
1520
- `),j("tabs-pad",`
1521
- border-left: 1px solid var(--n-tab-border-color);
1522
- `)])]),oe("bottom",[oe("card-type",[j("tabs-scroll-padding","border-top: 1px solid var(--n-tab-border-color);"),J("prefix, suffix",`
1523
- border-top: 1px solid var(--n-tab-border-color);
1524
- `),j("tabs-tab",`
1525
- border-bottom-left-radius: var(--n-tab-border-radius);
1526
- border-bottom-right-radius: var(--n-tab-border-radius);
1527
- `,[oe("active",`
1528
- border-top: 1px solid #0000;
1529
- `)]),j("tabs-tab-pad",`
1530
- border-top: 1px solid var(--n-tab-border-color);
1531
- `),j("tabs-pad",`
1532
- border-top: 1px solid var(--n-tab-border-color);
1533
- `)])])])]),FR=Object.assign(Object.assign({},nn.props),{value:[String,Number],defaultValue:[String,Number],trigger:{type:String,default:"click"},type:{type:String,default:"bar"},closable:Boolean,justifyContent:String,size:{type:String,default:"medium"},placement:{type:String,default:"top"},tabStyle:[String,Object],tabClass:String,addTabStyle:[String,Object],addTabClass:String,barWidth:Number,paneClass:String,paneStyle:[String,Object],paneWrapperClass:String,paneWrapperStyle:[String,Object],addable:[Boolean,Object],tabsPadding:{type:Number,default:0},animated:Boolean,onBeforeLeave:Function,onAdd:Function,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onClose:[Function,Array],labelSize:String,activeName:[String,Number],onActiveNameChange:[Function,Array]}),zR=mt({name:"Tabs",props:FR,slots:Object,setup(e,{slots:t}){var n,r,s,i;const{mergedClsPrefixRef:a,inlineThemeDisabled:o}=Er(e),c=nn("Tabs","-tabs",MR,CR,e,a),l=Me(null),d=Me(null),f=Me(null),m=Me(null),h=Me(null),b=Me(null),g=Me(!0),y=Me(!0),p=Ry(e,["labelSize","size"]),C=Ry(e,["activeName","value"]),w=Me((r=(n=C.value)!==null&&n!==void 0?n:e.defaultValue)!==null&&r!==void 0?r:t.default?(i=(s=_i(t.default())[0])===null||s===void 0?void 0:s.props)===null||i===void 0?void 0:i.name:null),_=tl(C,w),S={id:0},A=Fe(()=>{if(!(!e.justifyContent||e.type==="card"))return{display:"flex",justifyContent:e.justifyContent}});rs(_,()=>{S.id=0,be(),N()});function v(){var U;const{value:q}=_;return q===null?null:(U=l.value)===null||U===void 0?void 0:U.querySelector(`[data-name="${q}"]`)}function O(U){if(e.type==="card")return;const{value:q}=d;if(!q)return;const $=q.style.opacity==="0";if(U){const ae=`${a.value}-tabs-bar--disabled`,{barWidth:Pe,placement:ye}=e;if(U.dataset.disabled==="true"?q.classList.add(ae):q.classList.remove(ae),["top","bottom"].includes(ye)){if(Q(["top","maxHeight","height"]),typeof Pe=="number"&&U.offsetWidth>=Pe){const Ye=Math.floor((U.offsetWidth-Pe)/2)+U.offsetLeft;q.style.left=`${Ye}px`,q.style.maxWidth=`${Pe}px`}else q.style.left=`${U.offsetLeft}px`,q.style.maxWidth=`${U.offsetWidth}px`;q.style.width="8192px",$&&(q.style.transition="none"),q.offsetWidth,$&&(q.style.transition="",q.style.opacity="1")}else{if(Q(["left","maxWidth","width"]),typeof Pe=="number"&&U.offsetHeight>=Pe){const Ye=Math.floor((U.offsetHeight-Pe)/2)+U.offsetTop;q.style.top=`${Ye}px`,q.style.maxHeight=`${Pe}px`}else q.style.top=`${U.offsetTop}px`,q.style.maxHeight=`${U.offsetHeight}px`;q.style.height="8192px",$&&(q.style.transition="none"),q.offsetHeight,$&&(q.style.transition="",q.style.opacity="1")}}}function z(){if(e.type==="card")return;const{value:U}=d;U&&(U.style.opacity="0")}function Q(U){const{value:q}=d;if(q)for(const $ of U)q.style[$]=""}function be(){if(e.type==="card")return;const U=v();U?O(U):z()}function N(){var U;const q=(U=h.value)===null||U===void 0?void 0:U.$el;if(!q)return;const $=v();if(!$)return;const{scrollLeft:ae,offsetWidth:Pe}=q,{offsetLeft:ye,offsetWidth:Ye}=$;ae>ye?q.scrollTo({top:0,left:ye,behavior:"smooth"}):ye+Ye>ae+Pe&&q.scrollTo({top:0,left:ye+Ye-Pe,behavior:"smooth"})}const Y=Me(null);let x=0,Z=null;function Le(U){const q=Y.value;if(q){x=U.getBoundingClientRect().height;const $=`${x}px`,ae=()=>{q.style.height=$,q.style.maxHeight=$};Z?(ae(),Z(),Z=null):Z=ae}}function re(U){const q=Y.value;if(q){const $=U.getBoundingClientRect().height,ae=()=>{document.body.offsetHeight,q.style.maxHeight=`${$}px`,q.style.height=`${Math.max(x,$)}px`};Z?(Z(),Z=null,ae()):Z=ae}}function He(){const U=Y.value;if(U){U.style.maxHeight="",U.style.height="";const{paneWrapperStyle:q}=e;if(typeof q=="string")U.style.cssText=q;else if(q){const{maxHeight:$,height:ae}=q;$!==void 0&&(U.style.maxHeight=$),ae!==void 0&&(U.style.height=ae)}}}const he={value:[]},ze=Me("next");function X(U){const q=_.value;let $="next";for(const ae of he.value){if(ae===q)break;if(ae===U){$="prev";break}}ze.value=$,K(U)}function K(U){const{onActiveNameChange:q,onUpdateValue:$,"onUpdate:value":ae}=e;q&&vt(q,U),$&&vt($,U),ae&&vt(ae,U),w.value=U}function Qe(U){const{onClose:q}=e;q&&vt(q,U)}function De(){const{value:U}=d;if(!U)return;const q="transition-disabled";U.classList.add(q),be(),U.classList.remove(q)}const Be=Me(null);function et({transitionDisabled:U}){const q=l.value;if(!q)return;U&&q.classList.add("transition-disabled");const $=v();$&&Be.value&&(Be.value.style.width=`${$.offsetWidth}px`,Be.value.style.height=`${$.offsetHeight}px`,Be.value.style.transform=`translateX(${$.offsetLeft-mu(getComputedStyle(q).paddingLeft)}px)`,U&&Be.value.offsetWidth),U&&q.classList.remove("transition-disabled")}rs([_],()=>{e.type==="segment"&&Qi(()=>{et({transitionDisabled:!1})})}),To(()=>{e.type==="segment"&&et({transitionDisabled:!0})});let Wt=0;function ft(U){var q;if(U.contentRect.width===0&&U.contentRect.height===0||Wt===U.contentRect.width)return;Wt=U.contentRect.width;const{type:$}=e;if(($==="line"||$==="bar")&&De(),$!=="segment"){const{placement:ae}=e;E((ae==="top"||ae==="bottom"?(q=h.value)===null||q===void 0?void 0:q.$el:b.value)||null)}}const Ke=Qh(ft,64);rs([()=>e.justifyContent,()=>e.size],()=>{Qi(()=>{const{type:U}=e;(U==="line"||U==="bar")&&De()})});const Ot=Me(!1);function Ft(U){var q;const{target:$,contentRect:{width:ae,height:Pe}}=U,ye=$.parentElement.parentElement.offsetWidth,Ye=$.parentElement.parentElement.offsetHeight,{placement:It}=e;if(!Ot.value)It==="top"||It==="bottom"?ye<ae&&(Ot.value=!0):Ye<Pe&&(Ot.value=!0);else{const{value:ht}=m;if(!ht)return;It==="top"||It==="bottom"?ye-ae>ht.$el.offsetWidth&&(Ot.value=!1):Ye-Pe>ht.$el.offsetHeight&&(Ot.value=!1)}E(((q=h.value)===null||q===void 0?void 0:q.$el)||null)}const ar=Qh(Ft,64);function Sn(){const{onAdd:U}=e;U&&U(),Qi(()=>{const q=v(),{value:$}=h;!q||!$||$.scrollTo({left:q.offsetLeft,top:0,behavior:"smooth"})})}function E(U){if(!U)return;const{placement:q}=e;if(q==="top"||q==="bottom"){const{scrollLeft:$,scrollWidth:ae,offsetWidth:Pe}=U;g.value=$<=0,y.value=$+Pe>=ae}else{const{scrollTop:$,scrollHeight:ae,offsetHeight:Pe}=U;g.value=$<=0,y.value=$+Pe>=ae}}const de=Qh(U=>{E(U.target)},64);oi(Ig,{triggerRef:on(e,"trigger"),tabStyleRef:on(e,"tabStyle"),tabClassRef:on(e,"tabClass"),addTabStyleRef:on(e,"addTabStyle"),addTabClassRef:on(e,"addTabClass"),paneClassRef:on(e,"paneClass"),paneStyleRef:on(e,"paneStyle"),mergedClsPrefixRef:a,typeRef:on(e,"type"),closableRef:on(e,"closable"),valueRef:_,tabChangeIdRef:S,onBeforeLeaveRef:on(e,"onBeforeLeave"),activateTab:X,handleClose:Qe,handleAdd:Sn}),FA(()=>{be(),N()}),Cf(()=>{const{value:U}=f;if(!U)return;const{value:q}=a,$=`${q}-tabs-nav-scroll-wrapper--shadow-start`,ae=`${q}-tabs-nav-scroll-wrapper--shadow-end`;g.value?U.classList.remove($):U.classList.add($),y.value?U.classList.remove(ae):U.classList.add(ae)});const se={syncBarPosition:()=>{be()}},L=()=>{et({transitionDisabled:!0})},I=Fe(()=>{const{value:U}=p,{type:q}=e,$={card:"Card",bar:"Bar",line:"Line",segment:"Segment"}[q],ae=`${U}${$}`,{self:{barColor:Pe,closeIconColor:ye,closeIconColorHover:Ye,closeIconColorPressed:It,tabColor:ht,tabBorderColor:Zn,paneTextColor:Us,tabFontWeight:or,tabBorderRadius:us,tabFontWeightActive:Qt,colorSegment:zr,fontWeightStrong:Ni,tabColorSegment:we,closeSize:Xe,closeIconSize:ct,closeColorHover:qt,closeColorPressed:vn,closeBorderRadius:Mn,[Ge("panePadding",U)]:Tn,[Ge("tabPadding",ae)]:Ut,[Ge("tabPaddingVertical",ae)]:cr,[Ge("tabGap",ae)]:xs,[Ge("tabGap",`${ae}Vertical`)]:zo,[Ge("tabTextColor",q)]:Rl,[Ge("tabTextColorActive",q)]:Oi,[Ge("tabTextColorHover",q)]:Di,[Ge("tabTextColorDisabled",q)]:Bl,[Ge("tabFontSize",U)]:Pl},common:{cubicBezierEaseInOut:Uo}}=c.value;return{"--n-bezier":Uo,"--n-color-segment":zr,"--n-bar-color":Pe,"--n-tab-font-size":Pl,"--n-tab-text-color":Rl,"--n-tab-text-color-active":Oi,"--n-tab-text-color-disabled":Bl,"--n-tab-text-color-hover":Di,"--n-pane-text-color":Us,"--n-tab-border-color":Zn,"--n-tab-border-radius":us,"--n-close-size":Xe,"--n-close-icon-size":ct,"--n-close-color-hover":qt,"--n-close-color-pressed":vn,"--n-close-border-radius":Mn,"--n-close-icon-color":ye,"--n-close-icon-color-hover":Ye,"--n-close-icon-color-pressed":It,"--n-tab-color":ht,"--n-tab-font-weight":or,"--n-tab-font-weight-active":Qt,"--n-tab-padding":Ut,"--n-tab-padding-vertical":cr,"--n-tab-gap":xs,"--n-tab-gap-vertical":zo,"--n-pane-padding-left":ks(Tn,"left"),"--n-pane-padding-right":ks(Tn,"right"),"--n-pane-padding-top":ks(Tn,"top"),"--n-pane-padding-bottom":ks(Tn,"bottom"),"--n-font-weight-strong":Ni,"--n-tab-color-segment":we}}),W=o?ys("tabs",Fe(()=>`${p.value[0]}${e.type[0]}`),I,e):void 0;return Object.assign({mergedClsPrefix:a,mergedValue:_,renderedNames:new Set,segmentCapsuleElRef:Be,tabsPaneWrapperRef:Y,tabsElRef:l,barElRef:d,addTabInstRef:m,xScrollInstRef:h,scrollWrapperElRef:f,addTabFixed:Ot,tabWrapperStyle:A,handleNavResize:Ke,mergedSize:p,handleScroll:de,handleTabsResize:ar,cssVars:o?void 0:I,themeClass:W?.themeClass,animationDirection:ze,renderNameListRef:he,yScrollElRef:b,handleSegmentResize:L,onAnimationBeforeLeave:Le,onAnimationEnter:re,onAnimationAfterEnter:He,onRender:W?.onRender},se)},render(){const{mergedClsPrefix:e,type:t,placement:n,addTabFixed:r,addable:s,mergedSize:i,renderNameListRef:a,onRender:o,paneWrapperClass:c,paneWrapperStyle:l,$slots:{default:d,prefix:f,suffix:m}}=this;o?.();const h=d?_i(d()).filter(S=>S.type.__TAB_PANE__===!0):[],b=d?_i(d()).filter(S=>S.type.__TAB__===!0):[],g=!b.length,y=t==="card",p=t==="segment",C=!y&&!p&&this.justifyContent;a.value=[];const w=()=>{const S=R("div",{style:this.tabWrapperStyle,class:`${e}-tabs-wrapper`},C?null:R("div",{class:`${e}-tabs-scroll-padding`,style:n==="top"||n==="bottom"?{width:`${this.tabsPadding}px`}:{height:`${this.tabsPadding}px`}}),g?h.map((A,v)=>(a.value.push(A.props.name),Jh(R(zm,Object.assign({},A.props,{internalCreatedByPane:!0,internalLeftPadded:v!==0&&(!C||C==="center"||C==="start"||C==="end")}),A.children?{default:A.children.tab}:void 0)))):b.map((A,v)=>(a.value.push(A.props.name),Jh(v!==0&&!C?fE(A):A))),!r&&s&&y?dE(s,(g?h.length:b.length)!==0):null,C?null:R("div",{class:`${e}-tabs-scroll-padding`,style:{width:`${this.tabsPadding}px`}}));return R("div",{ref:"tabsElRef",class:`${e}-tabs-nav-scroll-content`},y&&s?R(ac,{onResize:this.handleTabsResize},{default:()=>S}):S,y?R("div",{class:`${e}-tabs-pad`}):null,y?null:R("div",{ref:"barElRef",class:`${e}-tabs-bar`}))},_=p?"top":n;return R("div",{class:[`${e}-tabs`,this.themeClass,`${e}-tabs--${t}-type`,`${e}-tabs--${i}-size`,C&&`${e}-tabs--flex`,`${e}-tabs--${_}`],style:this.cssVars},R("div",{class:[`${e}-tabs-nav--${t}-type`,`${e}-tabs-nav--${_}`,`${e}-tabs-nav`]},$n(f,S=>S&&R("div",{class:`${e}-tabs-nav__prefix`},S)),p?R(ac,{onResize:this.handleSegmentResize},{default:()=>R("div",{class:`${e}-tabs-rail`,ref:"tabsElRef"},R("div",{class:`${e}-tabs-capsule`,ref:"segmentCapsuleElRef"},R("div",{class:`${e}-tabs-wrapper`},R("div",{class:`${e}-tabs-tab`}))),g?h.map((S,A)=>(a.value.push(S.props.name),R(zm,Object.assign({},S.props,{internalCreatedByPane:!0,internalLeftPadded:A!==0}),S.children?{default:S.children.tab}:void 0))):b.map((S,A)=>(a.value.push(S.props.name),A===0?S:fE(S))))}):R(ac,{onResize:this.handleNavResize},{default:()=>R("div",{class:`${e}-tabs-nav-scroll-wrapper`,ref:"scrollWrapperElRef"},["top","bottom"].includes(_)?R(w3,{ref:"xScrollInstRef",onScroll:this.handleScroll},{default:w}):R("div",{class:`${e}-tabs-nav-y-scroll`,onScroll:this.handleScroll,ref:"yScrollElRef"},w()))}),r&&s&&y?dE(s,!0):null,$n(m,S=>S&&R("div",{class:`${e}-tabs-nav__suffix`},S))),g&&(this.animated&&(_==="top"||_==="bottom")?R("div",{ref:"tabsPaneWrapperRef",style:l,class:[`${e}-tabs-pane-wrapper`,c]},uE(h,this.mergedValue,this.renderedNames,this.onAnimationBeforeLeave,this.onAnimationEnter,this.onAnimationAfterEnter,this.animationDirection)):uE(h,this.mergedValue,this.renderedNames)))}});function uE(e,t,n,r,s,i,a){const o=[];return e.forEach(c=>{const{name:l,displayDirective:d,"display-directive":f}=c.props,m=b=>d===b||f===b,h=t===l;if(c.key!==void 0&&(c.key=l),h||m("show")||m("show:lazy")&&n.has(l)){n.has(l)||n.add(l);const b=!m("if");o.push(b?fu(c,[[vf,h]]):c)}}),a?R(vA,{name:`${a}-transition`,onBeforeLeave:r,onEnter:s,onAfterEnter:i},{default:()=>o}):o}function dE(e,t){return R(zm,{ref:"addTabInstRef",key:"__addable",name:"__addable",internalCreatedByPane:!0,internalAddable:!0,internalLeftPadded:t,disabled:typeof e=="object"&&e.disabled})}function fE(e){const t=Wx(e);return t.props?t.props.internalLeftPadded=!0:t.props={internalLeftPadded:!0},t}function Jh(e){return Array.isArray(e.dynamicProps)?e.dynamicProps.includes("internalLeftPadded")||e.dynamicProps.push("internalLeftPadded"):e.dynamicProps=["internalLeftPadded"],e}const UR={INDEX_NOT_FOUND:"index_not_found"};class rl extends Error{name="MeiliSearchError"}class $R extends rl{name="MeiliSearchApiError";cause;response;constructor(t,n){super(n?.message??`${t.status}: ${t.statusText}`),this.response=t,n!==void 0&&(this.cause=n)}}class HR extends rl{name="MeiliSearchRequestError";constructor(t,n){super(`Request to ${t} has failed`,{cause:n})}}class qR extends rl{name="MeiliSearchRequestTimeOutError";cause;constructor(t,n){super(`request timed out after ${t}ms`),this.cause={timeout:t,requestInit:n}}}class jR extends rl{name="MeiliSearchTaskTimeOutError";cause;constructor(t,n){super(`timeout of ${n}ms has exceeded on task ${t} when waiting for it to be resolved.`),this.cause={taskUid:t,timeout:n}}}const WR="0.51.0";function GR(e){return e.startsWith("https://")||e.startsWith("http://")?e:`http://${e}`}function VR(e){return e.endsWith("/")||(e+="/"),e}function KR(e,t){for(const[n,r]of Object.entries(t))r!=null&&e.set(n,Array.isArray(r)?r.join():r instanceof Date?r.toISOString():String(r))}function YR(e,t){const n="X-Meilisearch-Client",r=`Meilisearch JavaScript (v${WR})`,s="Content-Type",i="Authorization",a=new Headers(t);if(e.apiKey&&!a.has(i)&&a.set(i,`Bearer ${e.apiKey}`),a.has(s)||a.set(s,"application/json"),e.clientAgents!==void 0){const o=e.clientAgents.concat(r);a.set(n,o.join(" ; "))}else a.set(n,r);return a}const Um=Symbol("<timeout>");function XR(e,t){const{signal:n}=e,r=new AbortController;if(n!=null){let s=null;if(n.aborted)r.abort(n.reason);else{const i=()=>r.abort(n.reason);n.addEventListener("abort",i,{once:!0}),s=()=>n.removeEventListener("abort",i),r.signal.addEventListener("abort",s,{once:!0})}return()=>{if(n.aborted)return;const i=setTimeout(()=>r.abort(Um),t),a=()=>{clearTimeout(i),s!==null&&r.signal.removeEventListener("abort",s)};return n.addEventListener("abort",a,{once:!0}),()=>{n.removeEventListener("abort",a),a()}}}return e.signal=r.signal,()=>{const s=setTimeout(()=>r.abort(Um),t);return()=>clearTimeout(s)}}class $m{#e;#n;#t;#r;constructor(t){const n=VR(GR(t.host));try{this.#e=new URL(n)}catch(r){throw new rl("The provided host is not valid",{cause:r})}this.#n={...t.requestInit,headers:YR(t,t.requestInit?.headers)},this.#t=t.httpClient,this.#r=t.timeout}#i(t,n){if(t===void 0&&n===void 0)return this.#n.headers;const r=new Headers(t);n!==void 0&&!r.has("Content-Type")&&r.set("Content-Type",n);for(const[s,i]of this.#n.headers)r.has(s)||r.set(s,i);return r}async#s({path:t,method:n,params:r,contentType:s,body:i,extraRequestInit:a}){const o=new URL(t,this.#e);r!==void 0&&KR(o.searchParams,r);const c={method:n,body:s===void 0||typeof i!="string"?JSON.stringify(i):i,...a,...this.#n,headers:this.#i(a?.headers,s)},d=(this.#r!==void 0?XR(c,this.#r):null)?.();let f,m;try{if(this.#t!==void 0)return await this.#t(o,c);f=await fetch(o,c),m=await f.text()}catch(b){throw new HR(o.toString(),Object.is(b,Um)?new qR(this.#r,c):b)}finally{d?.()}const h=m===""?void 0:JSON.parse(m);if(!f.ok)throw new $R(f,h);return h}get(t){return this.#s(t)}post(t){return this.#s({...t,method:"POST"})}put(t){return this.#s({...t,method:"PUT"})}patch(t){return this.#s({...t,method:"PATCH"})}delete(t){return this.#s({...t,method:"DELETE"})}}const hE=Symbol("<task timeout>");function Iv(e){return function(t){return Object.defineProperty(t,"waitTask",{async value(n){return await e.waitForTask(await t,n)}})}}const QR=e=>typeof e=="number"?e:e.taskUid;class Hm{#e;#n;#t;#r;constructor(t,n){this.#e=t,this.#n=n?.timeout??5e3,this.#t=n?.interval??50,this.#r=Iv(this)}async getTask(t,n){return await this.#e.get({path:`tasks/${t}`,extraRequestInit:n})}async getTasks(t){return await this.#e.get({path:"tasks",params:t})}async waitForTask(t,n){const r=QR(t),s=n?.timeout??this.#n,i=n?.interval??this.#t,a=s>0?new AbortController:null,o=a!==null?setTimeout(()=>void a.abort(hE),s):void 0;try{for(;;){const c=await this.getTask(r,{signal:a?.signal});if(c.status!=="enqueued"&&c.status!=="processing")return clearTimeout(o),c;i>0&&await new Promise(l=>setTimeout(l,i))}}catch(c){throw Object.is(c.cause,hE)?new jR(r,s):c}}async*waitForTasksIter(t,n){for await(const r of t)yield await this.waitForTask(r,n)}async waitForTasks(...t){const n=[];for await(const r of this.waitForTasksIter(...t))n.push(r);return n}cancelTasks(t){return this.#r(this.#e.post({path:"tasks/cancel",params:t}))}deleteTasks(t){return this.#r(this.#e.delete({path:"tasks",params:t}))}}function qm(e,t){const n=Iv(t);return{post:(...r)=>n(e.post(...r)),put:(...r)=>n(e.put(...r)),patch:(...r)=>n(e.patch(...r)),delete:(...r)=>n(e.delete(...r))}}class Ea{uid;primaryKey;createdAt;updatedAt;httpRequest;tasks;#e;constructor(t,n,r){this.uid=n,this.primaryKey=r,this.httpRequest=new $m(t),this.tasks=new Hm(this.httpRequest,t.defaultWaitOptions),this.#e=qm(this.httpRequest,this.tasks)}async search(t,n,r){return await this.httpRequest.post({path:`indexes/${this.uid}/search`,body:{q:t,...n},extraRequestInit:r})}async searchGet(t,n,r){const i={q:t,...n,filter:(a=>{if(typeof a=="string")return a;if(Array.isArray(a))throw new rl("The filter query parameter should be in string format when using searchGet")})(n?.filter),sort:n?.sort?.join(","),facets:n?.facets?.join(","),attributesToRetrieve:n?.attributesToRetrieve?.join(","),attributesToCrop:n?.attributesToCrop?.join(","),attributesToHighlight:n?.attributesToHighlight?.join(","),vector:n?.vector?.join(","),attributesToSearchOn:n?.attributesToSearchOn?.join(",")};return await this.httpRequest.get({path:`indexes/${this.uid}/search`,params:i,extraRequestInit:r})}async searchForFacetValues(t,n){return await this.httpRequest.post({path:`indexes/${this.uid}/facet-search`,body:t,extraRequestInit:n})}async searchSimilarDocuments(t){return await this.httpRequest.post({path:`indexes/${this.uid}/similar`,body:t})}async getRawInfo(){const t=await this.httpRequest.get({path:`indexes/${this.uid}`});return this.primaryKey=t.primaryKey,this.updatedAt=new Date(t.updatedAt),this.createdAt=new Date(t.createdAt),t}async fetchInfo(){return await this.getRawInfo(),this}async fetchPrimaryKey(){return this.primaryKey=(await this.getRawInfo()).primaryKey,this.primaryKey}static create(t,n={},r){const s=new $m(r);return qm(s,new Hm(s)).post({path:"indexes",body:{...n,uid:t}})}update(t){return this.#e.patch({path:`indexes/${this.uid}`,body:t})}delete(){return this.#e.delete({path:`indexes/${this.uid}`})}async getStats(){return await this.httpRequest.get({path:`indexes/${this.uid}/stats`})}async getDocuments(t){const n=`indexes/${this.uid}/documents`;return t?.filter!==void 0?await this.httpRequest.post({path:`${n}/fetch`,body:t}):await this.httpRequest.get({path:n,params:t})}async getDocument(t,n){const r=Array.isArray(n?.fields)?n.fields.join():void 0;return await this.httpRequest.get({path:`indexes/${this.uid}/documents/${t}`,params:{...n,fields:r}})}addDocuments(t,n){return this.#e.post({path:`indexes/${this.uid}/documents`,params:n,body:t})}addDocumentsFromString(t,n,r){return this.#e.post({path:`indexes/${this.uid}/documents`,body:t,params:r,contentType:n})}addDocumentsInBatches(t,n=1e3,r){const s=[];for(let i=0;i<t.length;i+=n)s.push(this.addDocuments(t.slice(i,i+n),r));return s}updateDocuments(t,n){return this.#e.put({path:`indexes/${this.uid}/documents`,params:n,body:t})}updateDocumentsInBatches(t,n=1e3,r){const s=[];for(let i=0;i<t.length;i+=n)s.push(this.updateDocuments(t.slice(i,i+n),r));return s}updateDocumentsFromString(t,n,r){return this.#e.put({path:`indexes/${this.uid}/documents`,body:t,params:r,contentType:n})}deleteDocument(t){return this.#e.delete({path:`indexes/${this.uid}/documents/${t}`})}deleteDocuments(t){const r=!Array.isArray(t)&&typeof t=="object"?"documents/delete":"documents/delete-batch";return this.#e.post({path:`indexes/${this.uid}/${r}`,body:t})}deleteAllDocuments(){return this.#e.delete({path:`indexes/${this.uid}/documents`})}updateDocumentsByFunction(t){return this.#e.post({path:`indexes/${this.uid}/documents/edit`,body:t})}async getSettings(){return await this.httpRequest.get({path:`indexes/${this.uid}/settings`})}updateSettings(t){return this.#e.patch({path:`indexes/${this.uid}/settings`,body:t})}resetSettings(){return this.#e.delete({path:`indexes/${this.uid}/settings`})}async getPagination(){return await this.httpRequest.get({path:`indexes/${this.uid}/settings/pagination`})}updatePagination(t){return this.#e.patch({path:`indexes/${this.uid}/settings/pagination`,body:t})}resetPagination(){return this.#e.delete({path:`indexes/${this.uid}/settings/pagination`})}async getSynonyms(){return await this.httpRequest.get({path:`indexes/${this.uid}/settings/synonyms`})}updateSynonyms(t){return this.#e.put({path:`indexes/${this.uid}/settings/synonyms`,body:t})}resetSynonyms(){return this.#e.delete({path:`indexes/${this.uid}/settings/synonyms`})}async getStopWords(){return await this.httpRequest.get({path:`indexes/${this.uid}/settings/stop-words`})}updateStopWords(t){return this.#e.put({path:`indexes/${this.uid}/settings/stop-words`,body:t})}resetStopWords(){return this.#e.delete({path:`indexes/${this.uid}/settings/stop-words`})}async getRankingRules(){return await this.httpRequest.get({path:`indexes/${this.uid}/settings/ranking-rules`})}updateRankingRules(t){return this.#e.put({path:`indexes/${this.uid}/settings/ranking-rules`,body:t})}resetRankingRules(){return this.#e.delete({path:`indexes/${this.uid}/settings/ranking-rules`})}async getDistinctAttribute(){return await this.httpRequest.get({path:`indexes/${this.uid}/settings/distinct-attribute`})}updateDistinctAttribute(t){return this.#e.put({path:`indexes/${this.uid}/settings/distinct-attribute`,body:t})}resetDistinctAttribute(){return this.#e.delete({path:`indexes/${this.uid}/settings/distinct-attribute`})}async getFilterableAttributes(){return await this.httpRequest.get({path:`indexes/${this.uid}/settings/filterable-attributes`})}updateFilterableAttributes(t){return this.#e.put({path:`indexes/${this.uid}/settings/filterable-attributes`,body:t})}resetFilterableAttributes(){return this.#e.delete({path:`indexes/${this.uid}/settings/filterable-attributes`})}async getSortableAttributes(){return await this.httpRequest.get({path:`indexes/${this.uid}/settings/sortable-attributes`})}updateSortableAttributes(t){return this.#e.put({path:`indexes/${this.uid}/settings/sortable-attributes`,body:t})}resetSortableAttributes(){return this.#e.delete({path:`indexes/${this.uid}/settings/sortable-attributes`})}async getSearchableAttributes(){return await this.httpRequest.get({path:`indexes/${this.uid}/settings/searchable-attributes`})}updateSearchableAttributes(t){return this.#e.put({path:`indexes/${this.uid}/settings/searchable-attributes`,body:t})}resetSearchableAttributes(){return this.#e.delete({path:`indexes/${this.uid}/settings/searchable-attributes`})}async getDisplayedAttributes(){return await this.httpRequest.get({path:`indexes/${this.uid}/settings/displayed-attributes`})}updateDisplayedAttributes(t){return this.#e.put({path:`indexes/${this.uid}/settings/displayed-attributes`,body:t})}resetDisplayedAttributes(){return this.#e.delete({path:`indexes/${this.uid}/settings/displayed-attributes`})}async getTypoTolerance(){return await this.httpRequest.get({path:`indexes/${this.uid}/settings/typo-tolerance`})}updateTypoTolerance(t){return this.#e.patch({path:`indexes/${this.uid}/settings/typo-tolerance`,body:t})}resetTypoTolerance(){return this.#e.delete({path:`indexes/${this.uid}/settings/typo-tolerance`})}async getFaceting(){return await this.httpRequest.get({path:`indexes/${this.uid}/settings/faceting`})}updateFaceting(t){return this.#e.patch({path:`indexes/${this.uid}/settings/faceting`,body:t})}resetFaceting(){return this.#e.delete({path:`indexes/${this.uid}/settings/faceting`})}async getSeparatorTokens(){return await this.httpRequest.get({path:`indexes/${this.uid}/settings/separator-tokens`})}updateSeparatorTokens(t){return this.#e.put({path:`indexes/${this.uid}/settings/separator-tokens`,body:t})}resetSeparatorTokens(){return this.#e.delete({path:`indexes/${this.uid}/settings/separator-tokens`})}async getNonSeparatorTokens(){return await this.httpRequest.get({path:`indexes/${this.uid}/settings/non-separator-tokens`})}updateNonSeparatorTokens(t){return this.#e.put({path:`indexes/${this.uid}/settings/non-separator-tokens`,body:t})}resetNonSeparatorTokens(){return this.#e.delete({path:`indexes/${this.uid}/settings/non-separator-tokens`})}async getDictionary(){return await this.httpRequest.get({path:`indexes/${this.uid}/settings/dictionary`})}updateDictionary(t){return this.#e.put({path:`indexes/${this.uid}/settings/dictionary`,body:t})}resetDictionary(){return this.#e.delete({path:`indexes/${this.uid}/settings/dictionary`})}async getProximityPrecision(){return await this.httpRequest.get({path:`indexes/${this.uid}/settings/proximity-precision`})}updateProximityPrecision(t){return this.#e.put({path:`indexes/${this.uid}/settings/proximity-precision`,body:t})}resetProximityPrecision(){return this.#e.delete({path:`indexes/${this.uid}/settings/proximity-precision`})}async getEmbedders(){return await this.httpRequest.get({path:`indexes/${this.uid}/settings/embedders`})}updateEmbedders(t){return this.#e.patch({path:`indexes/${this.uid}/settings/embedders`,body:t})}resetEmbedders(){return this.#e.delete({path:`indexes/${this.uid}/settings/embedders`})}async getSearchCutoffMs(){return await this.httpRequest.get({path:`indexes/${this.uid}/settings/search-cutoff-ms`})}updateSearchCutoffMs(t){return this.#e.put({path:`indexes/${this.uid}/settings/search-cutoff-ms`,body:t})}resetSearchCutoffMs(){return this.#e.delete({path:`indexes/${this.uid}/settings/search-cutoff-ms`})}async getLocalizedAttributes(){return await this.httpRequest.get({path:`indexes/${this.uid}/settings/localized-attributes`})}updateLocalizedAttributes(t){return this.#e.put({path:`indexes/${this.uid}/settings/localized-attributes`,body:t})}resetLocalizedAttributes(){return this.#e.delete({path:`indexes/${this.uid}/settings/localized-attributes`})}async getFacetSearch(){return await this.httpRequest.get({path:`indexes/${this.uid}/settings/facet-search`})}updateFacetSearch(t){return this.#e.put({path:`indexes/${this.uid}/settings/facet-search`,body:t})}resetFacetSearch(){return this.#e.delete({path:`indexes/${this.uid}/settings/facet-search`})}async getPrefixSearch(){return await this.httpRequest.get({path:`indexes/${this.uid}/settings/prefix-search`})}updatePrefixSearch(t){return this.#e.put({path:`indexes/${this.uid}/settings/prefix-search`,body:t})}resetPrefixSearch(){return this.#e.delete({path:`indexes/${this.uid}/settings/prefix-search`})}}class ZR{#e;constructor(t){this.#e=t}async getBatch(t){return await this.#e.get({path:`batches/${t}`})}async getBatches(t){return await this.#e.get({path:"batches",params:t})}}class JR{config;httpRequest;#e;get tasks(){return this.#e}#n;get batches(){return this.#n}#t;constructor(t){this.config=t,this.httpRequest=new $m(t),this.#e=new Hm(this.httpRequest,t.defaultWaitOptions),this.#n=new ZR(this.httpRequest),this.#t=qm(this.httpRequest,this.tasks)}index(t){return new Ea(this.config,t)}async getIndex(t){return new Ea(this.config,t).fetchInfo()}async getRawIndex(t){return new Ea(this.config,t).getRawInfo()}async getIndexes(t){const n=await this.getRawIndexes(t),r=n.results.map(s=>new Ea(this.config,s.uid,s.primaryKey));return{...n,results:r}}async getRawIndexes(t){return await this.httpRequest.get({path:"indexes",params:t})}createIndex(t,n){return Ea.create(t,n,this.config)}updateIndex(t,n){return new Ea(this.config,t).update(n)}deleteIndex(t){return new Ea(this.config,t).delete()}async deleteIndexIfExists(t){try{return await this.deleteIndex(t),!0}catch(n){if(n?.cause?.code===UR.INDEX_NOT_FOUND)return!1;throw n}}swapIndexes(t){return this.#t.post({path:"/swap-indexes",body:t})}async multiSearch(t,n){return await this.httpRequest.post({path:"multi-search",body:t,extraRequestInit:n})}async getNetwork(){return await this.httpRequest.get({path:"network"})}async updateNetwork(t){return await this.httpRequest.patch({path:"network",body:t})}async getKeys(t){const n=await this.httpRequest.get({path:"keys",params:t});return n.results=n.results.map(r=>({...r,createdAt:new Date(r.createdAt),updatedAt:new Date(r.updatedAt)})),n}async getKey(t){return await this.httpRequest.get({path:`keys/${t}`})}async createKey(t){return await this.httpRequest.post({path:"keys",body:t})}async updateKey(t,n){return await this.httpRequest.patch({path:`keys/${t}`,body:n})}async deleteKey(t){await this.httpRequest.delete({path:`keys/${t}`})}async health(){return await this.httpRequest.get({path:"health"})}async isHealthy(){try{const{status:t}=await this.health();return t==="available"}catch{return!1}}async getStats(){return await this.httpRequest.get({path:"stats"})}async getVersion(){return await this.httpRequest.get({path:"version"})}createDump(){return this.#t.post({path:"dumps"})}createSnapshot(){return this.#t.post({path:"snapshots"})}async getExperimentalFeatures(){return await this.httpRequest.get({path:"experimental-features"})}async updateExperimentalFeatures(t){return await this.httpRequest.patch({path:"experimental-features",body:t})}}var jt;(function(e){e.Root="root",e.Text="text",e.Directive="directive",e.Comment="comment",e.Script="script",e.Style="style",e.Tag="tag",e.CDATA="cdata",e.Doctype="doctype"})(jt||(jt={}));function eB(e){return e.type===jt.Tag||e.type===jt.Script||e.type===jt.Style}const Rg=jt.Root,Rv=jt.Text,tB=jt.Directive,Bv=jt.Comment,nB=jt.Script,rB=jt.Style,jm=jt.Tag,sB=jt.CDATA,iB=jt.Doctype;class Pv{constructor(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}get parentNode(){return this.parent}set parentNode(t){this.parent=t}get previousSibling(){return this.prev}set previousSibling(t){this.prev=t}get nextSibling(){return this.next}set nextSibling(t){this.next=t}cloneNode(t=!1){return pu(this,t)}}class Bg extends Pv{constructor(t){super(),this.data=t}get nodeValue(){return this.data}set nodeValue(t){this.data=t}}class gu extends Bg{constructor(){super(...arguments),this.type=jt.Text}get nodeType(){return 3}}class Pg extends Bg{constructor(){super(...arguments),this.type=jt.Comment}get nodeType(){return 8}}class Ng extends Bg{constructor(t,n){super(n),this.name=t,this.type=jt.Directive}get nodeType(){return 1}}class Og extends Pv{constructor(t){super(),this.children=t}get firstChild(){var t;return(t=this.children[0])!==null&&t!==void 0?t:null}get lastChild(){return this.children.length>0?this.children[this.children.length-1]:null}get childNodes(){return this.children}set childNodes(t){this.children=t}}class Nv extends Og{constructor(){super(...arguments),this.type=jt.CDATA}get nodeType(){return 4}}class po extends Og{constructor(){super(...arguments),this.type=jt.Root}get nodeType(){return 9}}let Dg=class extends Og{constructor(t,n,r=[],s=t==="script"?jt.Script:t==="style"?jt.Style:jt.Tag){super(r),this.name=t,this.attribs=n,this.type=s}get nodeType(){return 1}get tagName(){return this.name}set tagName(t){this.name=t}get attributes(){return Object.keys(this.attribs).map(t=>{var n,r;return{name:t,value:this.attribs[t],namespace:(n=this["x-attribsNamespace"])===null||n===void 0?void 0:n[t],prefix:(r=this["x-attribsPrefix"])===null||r===void 0?void 0:r[t]}})}};function dt(e){return eB(e)}function mh(e){return e.type===jt.CDATA}function li(e){return e.type===jt.Text}function bh(e){return e.type===jt.Comment}function Wm(e){return e.type===jt.Directive}function ha(e){return e.type===jt.Root}function Wn(e){return Object.prototype.hasOwnProperty.call(e,"children")}function pu(e,t=!1){let n;if(li(e))n=new gu(e.data);else if(bh(e))n=new Pg(e.data);else if(dt(e)){const r=t?e0(e.children):[],s=new Dg(e.name,{...e.attribs},r);r.forEach(i=>i.parent=s),e.namespace!=null&&(s.namespace=e.namespace),e["x-attribsNamespace"]&&(s["x-attribsNamespace"]={...e["x-attribsNamespace"]}),e["x-attribsPrefix"]&&(s["x-attribsPrefix"]={...e["x-attribsPrefix"]}),n=s}else if(mh(e)){const r=t?e0(e.children):[],s=new Nv(r);r.forEach(i=>i.parent=s),n=s}else if(ha(e)){const r=t?e0(e.children):[],s=new po(r);r.forEach(i=>i.parent=s),e["x-mode"]&&(s["x-mode"]=e["x-mode"]),n=s}else if(Wm(e)){const r=new Ng(e.name,e.data);e["x-name"]!=null&&(r["x-name"]=e["x-name"],r["x-publicId"]=e["x-publicId"],r["x-systemId"]=e["x-systemId"]),n=r}else throw new Error(`Not implemented yet: ${e.type}`);return n.startIndex=e.startIndex,n.endIndex=e.endIndex,e.sourceCodeLocation!=null&&(n.sourceCodeLocation=e.sourceCodeLocation),n}function e0(e){const t=e.map(n=>pu(n,!0));for(let n=1;n<t.length;n++)t[n].prev=t[n-1],t[n-1].next=t[n];return t}const mE={withStartIndices:!1,withEndIndices:!1,xmlMode:!1};class aB{constructor(t,n,r){this.dom=[],this.root=new po(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,typeof n=="function"&&(r=n,n=mE),typeof t=="object"&&(n=t,t=void 0),this.callback=t??null,this.options=n??mE,this.elementCB=r??null}onparserinit(t){this.parser=t}onreset(){this.dom=[],this.root=new po(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null}onend(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))}onerror(t){this.handleCallback(t)}onclosetag(){this.lastNode=null;const t=this.tagStack.pop();this.options.withEndIndices&&(t.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(t)}onopentag(t,n){const r=this.options.xmlMode?jt.Tag:void 0,s=new Dg(t,n,void 0,r);this.addNode(s),this.tagStack.push(s)}ontext(t){const{lastNode:n}=this;if(n&&n.type===jt.Text)n.data+=t,this.options.withEndIndices&&(n.endIndex=this.parser.endIndex);else{const r=new gu(t);this.addNode(r),this.lastNode=r}}oncomment(t){if(this.lastNode&&this.lastNode.type===jt.Comment){this.lastNode.data+=t;return}const n=new Pg(t);this.addNode(n),this.lastNode=n}oncommentend(){this.lastNode=null}oncdatastart(){const t=new gu(""),n=new Nv([t]);this.addNode(n),t.parent=n,this.lastNode=t}oncdataend(){this.lastNode=null}onprocessinginstruction(t,n){const r=new Ng(t,n);this.addNode(r)}handleCallback(t){if(typeof this.callback=="function")this.callback(t,this.dom);else if(t)throw t}addNode(t){const n=this.tagStack[this.tagStack.length-1],r=n.children[n.children.length-1];this.options.withStartIndices&&(t.startIndex=this.parser.startIndex),this.options.withEndIndices&&(t.endIndex=this.parser.endIndex),n.children.push(t),r&&(t.prev=r,r.next=t),t.parent=n,this.lastNode=null}}const bE=/["&'<>$\x80-\uFFFF]/g,oB=new Map([[34,"&quot;"],[38,"&amp;"],[39,"&apos;"],[60,"&lt;"],[62,"&gt;"]]),cB=String.prototype.codePointAt!=null?(e,t)=>e.codePointAt(t):(e,t)=>(e.charCodeAt(t)&64512)===55296?(e.charCodeAt(t)-55296)*1024+e.charCodeAt(t+1)-56320+65536:e.charCodeAt(t);function Ov(e){let t="",n=0,r;for(;(r=bE.exec(e))!==null;){const s=r.index,i=e.charCodeAt(s),a=oB.get(i);a!==void 0?(t+=e.substring(n,s)+a,n=s+1):(t+=`${e.substring(n,s)}&#x${cB(e,s).toString(16)};`,n=bE.lastIndex+=+((i&64512)===55296))}return t+e.substr(n)}function Dv(e,t){return function(r){let s,i=0,a="";for(;s=e.exec(r);)i!==s.index&&(a+=r.substring(i,s.index)),a+=t.get(s[0].charCodeAt(0)),i=s.index+1;return a+r.substring(i)}}const lB=Dv(/["&\u00A0]/g,new Map([[34,"&quot;"],[38,"&amp;"],[160,"&nbsp;"]])),uB=Dv(/[&<>\u00A0]/g,new Map([[38,"&amp;"],[60,"&lt;"],[62,"&gt;"],[160,"&nbsp;"]])),dB=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map(e=>[e.toLowerCase(),e])),fB=new Map(["definitionURL","attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map(e=>[e.toLowerCase(),e])),hB=new Set(["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"]);function mB(e){return e.replace(/"/g,"&quot;")}function bB(e,t){var n;if(!e)return;const r=((n=t.encodeEntities)!==null&&n!==void 0?n:t.decodeEntities)===!1?mB:t.xmlMode||t.encodeEntities!=="utf8"?Ov:lB;return Object.keys(e).map(s=>{var i,a;const o=(i=e[s])!==null&&i!==void 0?i:"";return t.xmlMode==="foreign"&&(s=(a=fB.get(s))!==null&&a!==void 0?a:s),!t.emptyAttrs&&!t.xmlMode&&o===""?s:`${s}="${r(o)}"`}).join(" ")}const gE=new Set(["area","base","basefont","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr"]);function gh(e,t={}){const n="length"in e?e:[e];let r="";for(let s=0;s<n.length;s++)r+=gB(n[s],t);return r}function gB(e,t){switch(e.type){case Rg:return gh(e.children,t);case iB:case tB:return CB(e);case Bv:return _B(e);case sB:return vB(e);case nB:case rB:case jm:return EB(e,t);case Rv:return xB(e,t)}}const pB=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignObject","desc","title"]),yB=new Set(["svg","math"]);function EB(e,t){var n;t.xmlMode==="foreign"&&(e.name=(n=dB.get(e.name))!==null&&n!==void 0?n:e.name,e.parent&&pB.has(e.parent.name)&&(t={...t,xmlMode:!1})),!t.xmlMode&&yB.has(e.name)&&(t={...t,xmlMode:"foreign"});let r=`<${e.name}`;const s=bB(e.attribs,t);return s&&(r+=` ${s}`),e.children.length===0&&(t.xmlMode?t.selfClosingTags!==!1:t.selfClosingTags&&gE.has(e.name))?(t.xmlMode||(r+=" "),r+="/>"):(r+=">",e.children.length>0&&(r+=gh(e.children,t)),(t.xmlMode||!gE.has(e.name))&&(r+=`</${e.name}>`)),r}function CB(e){return`<${e.data}>`}function xB(e,t){var n;let r=e.data||"";return((n=t.encodeEntities)!==null&&n!==void 0?n:t.decodeEntities)!==!1&&!(!t.xmlMode&&e.parent&&hB.has(e.parent.name))&&(r=t.xmlMode||t.encodeEntities!=="utf8"?Ov(r):uB(r)),r}function vB(e){return`<![CDATA[${e.children[0].data}]]>`}function _B(e){return`<!--${e.data}-->`}function Lv(e,t){return gh(e,t)}function SB(e,t){return Wn(e)?e.children.map(n=>Lv(n,t)).join(""):""}function Bd(e){return Array.isArray(e)?e.map(Bd).join(""):dt(e)?e.name==="br"?`
1534
- `:Bd(e.children):mh(e)?Bd(e.children):li(e)?e.data:""}function jc(e){return Array.isArray(e)?e.map(jc).join(""):Wn(e)&&!bh(e)?jc(e.children):li(e)?e.data:""}function wf(e){return Array.isArray(e)?e.map(wf).join(""):Wn(e)&&(e.type===jt.Tag||mh(e))?wf(e.children):li(e)?e.data:""}function ph(e){return Wn(e)?e.children:[]}function Mv(e){return e.parent||null}function Fv(e){const t=Mv(e);if(t!=null)return ph(t);const n=[e];let{prev:r,next:s}=e;for(;r!=null;)n.unshift(r),{prev:r}=r;for(;s!=null;)n.push(s),{next:s}=s;return n}function TB(e,t){var n;return(n=e.attribs)===null||n===void 0?void 0:n[t]}function wB(e,t){return e.attribs!=null&&Object.prototype.hasOwnProperty.call(e.attribs,t)&&e.attribs[t]!=null}function AB(e){return e.name}function Lg(e){let{next:t}=e;for(;t!==null&&!dt(t);)({next:t}=t);return t}function Mg(e){let{prev:t}=e;for(;t!==null&&!dt(t);)({prev:t}=t);return t}function wo(e){if(e.prev&&(e.prev.next=e.next),e.next&&(e.next.prev=e.prev),e.parent){const t=e.parent.children,n=t.lastIndexOf(e);n>=0&&t.splice(n,1)}e.next=null,e.prev=null,e.parent=null}function kB(e,t){const n=t.prev=e.prev;n&&(n.next=t);const r=t.next=e.next;r&&(r.prev=t);const s=t.parent=e.parent;if(s){const i=s.children;i[i.lastIndexOf(e)]=t,e.parent=null}}function IB(e,t){if(wo(t),t.next=null,t.parent=e,e.children.push(t)>1){const n=e.children[e.children.length-2];n.next=t,t.prev=n}else t.prev=null}function RB(e,t){wo(t);const{parent:n}=e,r=e.next;if(t.next=r,t.prev=e,e.next=t,t.parent=n,r){if(r.prev=t,n){const s=n.children;s.splice(s.lastIndexOf(r),0,t)}}else n&&n.children.push(t)}function BB(e,t){if(wo(t),t.parent=e,t.prev=null,e.children.unshift(t)!==1){const n=e.children[1];n.prev=t,t.next=n}else t.next=null}function PB(e,t){wo(t);const{parent:n}=e;if(n){const r=n.children;r.splice(r.indexOf(e),0,t)}e.prev&&(e.prev.next=t),t.parent=n,t.prev=e.prev,t.next=e,e.prev=t}function Nu(e,t,n=!0,r=1/0){return Fg(e,Array.isArray(t)?t:[t],n,r)}function Fg(e,t,n,r){const s=[],i=[Array.isArray(t)?t:[t]],a=[0];for(;;){if(a[0]>=i[0].length){if(a.length===1)return s;i.shift(),a.shift();continue}const o=i[0][a[0]++];if(e(o)&&(s.push(o),--r<=0))return s;n&&Wn(o)&&o.children.length>0&&(a.unshift(0),i.unshift(o.children))}}function NB(e,t){return t.find(e)}function zg(e,t,n=!0){const r=Array.isArray(t)?t:[t];for(let s=0;s<r.length;s++){const i=r[s];if(dt(i)&&e(i))return i;if(n&&Wn(i)&&i.children.length>0){const a=zg(e,i.children,!0);if(a)return a}}return null}function zv(e,t){return(Array.isArray(t)?t:[t]).some(n=>dt(n)&&e(n)||Wn(n)&&zv(e,n.children))}function OB(e,t){const n=[],r=[Array.isArray(t)?t:[t]],s=[0];for(;;){if(s[0]>=r[0].length){if(r.length===1)return n;r.shift(),s.shift();continue}const i=r[0][s[0]++];dt(i)&&e(i)&&n.push(i),Wn(i)&&i.children.length>0&&(s.unshift(0),r.unshift(i.children))}}const Af={tag_name(e){return typeof e=="function"?t=>dt(t)&&e(t.name):e==="*"?dt:t=>dt(t)&&t.name===e},tag_type(e){return typeof e=="function"?t=>e(t.type):t=>t.type===e},tag_contains(e){return typeof e=="function"?t=>li(t)&&e(t.data):t=>li(t)&&t.data===e}};function Ug(e,t){return typeof t=="function"?n=>dt(n)&&t(n.attribs[e]):n=>dt(n)&&n.attribs[e]===t}function DB(e,t){return n=>e(n)||t(n)}function Uv(e){const t=Object.keys(e).map(n=>{const r=e[n];return Object.prototype.hasOwnProperty.call(Af,n)?Af[n](r):Ug(n,r)});return t.length===0?null:t.reduce(DB)}function LB(e,t){const n=Uv(e);return n?n(t):!0}function MB(e,t,n,r=1/0){const s=Uv(e);return s?Nu(s,t,n,r):[]}function FB(e,t,n=!0){return Array.isArray(t)||(t=[t]),zg(Ug("id",e),t,n)}function sl(e,t,n=!0,r=1/0){return Nu(Af.tag_name(e),t,n,r)}function zB(e,t,n=!0,r=1/0){return Nu(Ug("class",e),t,n,r)}function UB(e,t,n=!0,r=1/0){return Nu(Af.tag_type(e),t,n,r)}function $B(e){let t=e.length;for(;--t>=0;){const n=e[t];if(t>0&&e.lastIndexOf(n,t-1)>=0){e.splice(t,1);continue}for(let r=n.parent;r;r=r.parent)if(e.includes(r)){e.splice(t,1);break}}return e}var Ts;(function(e){e[e.DISCONNECTED=1]="DISCONNECTED",e[e.PRECEDING=2]="PRECEDING",e[e.FOLLOWING=4]="FOLLOWING",e[e.CONTAINS=8]="CONTAINS",e[e.CONTAINED_BY=16]="CONTAINED_BY"})(Ts||(Ts={}));function $v(e,t){const n=[],r=[];if(e===t)return 0;let s=Wn(e)?e:e.parent;for(;s;)n.unshift(s),s=s.parent;for(s=Wn(t)?t:t.parent;s;)r.unshift(s),s=s.parent;const i=Math.min(n.length,r.length);let a=0;for(;a<i&&n[a]===r[a];)a++;if(a===0)return Ts.DISCONNECTED;const o=n[a-1],c=o.children,l=n[a],d=r[a];return c.indexOf(l)>c.indexOf(d)?o===t?Ts.FOLLOWING|Ts.CONTAINED_BY:Ts.FOLLOWING:o===e?Ts.PRECEDING|Ts.CONTAINS:Ts.PRECEDING}function il(e){return e=e.filter((t,n,r)=>!r.includes(t,n+1)),e.sort((t,n)=>{const r=$v(t,n);return r&Ts.PRECEDING?-1:r&Ts.FOLLOWING?1:0}),e}function HB(e){const t=kf(VB,e);return t?t.name==="feed"?qB(t):jB(t):null}function qB(e){var t;const n=e.children,r={type:"atom",items:sl("entry",n).map(a=>{var o;const{children:c}=a,l={media:Hv(c)};Zr(l,"id","id",c),Zr(l,"title","title",c);const d=(o=kf("link",c))===null||o===void 0?void 0:o.attribs.href;d&&(l.link=d);const f=Vi("summary",c)||Vi("content",c);f&&(l.description=f);const m=Vi("updated",c);return m&&(l.pubDate=new Date(m)),l})};Zr(r,"id","id",n),Zr(r,"title","title",n);const s=(t=kf("link",n))===null||t===void 0?void 0:t.attribs.href;s&&(r.link=s),Zr(r,"description","subtitle",n);const i=Vi("updated",n);return i&&(r.updated=new Date(i)),Zr(r,"author","email",n,!0),r}function jB(e){var t,n;const r=(n=(t=kf("channel",e.children))===null||t===void 0?void 0:t.children)!==null&&n!==void 0?n:[],s={type:e.name.substr(0,3),id:"",items:sl("item",e.children).map(a=>{const{children:o}=a,c={media:Hv(o)};Zr(c,"id","guid",o),Zr(c,"title","title",o),Zr(c,"link","link",o),Zr(c,"description","description",o);const l=Vi("pubDate",o)||Vi("dc:date",o);return l&&(c.pubDate=new Date(l)),c})};Zr(s,"title","title",r),Zr(s,"link","link",r),Zr(s,"description","description",r);const i=Vi("lastBuildDate",r);return i&&(s.updated=new Date(i)),Zr(s,"author","managingEditor",r,!0),s}const WB=["url","type","lang"],GB=["fileSize","bitrate","framerate","samplingrate","channels","duration","height","width"];function Hv(e){return sl("media:content",e).map(t=>{const{attribs:n}=t,r={medium:n.medium,isDefault:!!n.isDefault};for(const s of WB)n[s]&&(r[s]=n[s]);for(const s of GB)n[s]&&(r[s]=parseInt(n[s],10));return n.expression&&(r.expression=n.expression),r})}function kf(e,t){return sl(e,t,!0,1)[0]}function Vi(e,t,n=!1){return jc(sl(e,t,n,1)).trim()}function Zr(e,t,n,r,s=!1){const i=Vi(n,r,s);i&&(e[t]=i)}function VB(e){return e==="rss"||e==="feed"||e==="rdf:RDF"}const yh=Object.freeze(Object.defineProperty({__proto__:null,get DocumentPosition(){return Ts},append:RB,appendChild:IB,compareDocumentPosition:$v,existsOne:zv,filter:Nu,find:Fg,findAll:OB,findOne:zg,findOneChild:NB,getAttributeValue:TB,getChildren:ph,getElementById:FB,getElements:MB,getElementsByClassName:zB,getElementsByTagName:sl,getElementsByTagType:UB,getFeed:HB,getInnerHTML:SB,getName:AB,getOuterHTML:Lv,getParent:Mv,getSiblings:Fv,getText:Bd,hasAttrib:wB,hasChildren:Wn,innerText:wf,isCDATA:mh,isComment:bh,isDocument:ha,isTag:dt,isText:li,nextElementSibling:Lg,prepend:PB,prependChild:BB,prevElementSibling:Mg,removeElement:wo,removeSubsets:$B,replaceElement:kB,testElement:LB,textContent:jc,uniqueSort:il},Symbol.toStringTag,{value:"Module"})),KB={_useHtmlParser2:!1};function Gm(e,t){if(!e)return t??KB;const n={_useHtmlParser2:!!e.xmlMode,...t,...e};return e.xml?(n._useHtmlParser2=!0,n.xmlMode=!0,e.xml!==!0&&Object.assign(n,e.xml)):e.xmlMode&&(n._useHtmlParser2=!0),n}function qv(e,t,n){return e?e(t??e._root.children,null,void 0,n).toString():""}function YB(e,t){return typeof e=="object"&&e!=null&&!("length"in e)&&!("type"in e)}function XB(e,t){const n=YB(e)?(t=e,void 0):e,r={...this===null||this===void 0?void 0:this._options,...Gm(t)};return qv(this,n,r)}function QB(e){const t={...this._options,xmlMode:!0};return qv(this,e,t)}function yu(e){const t=e??(this?this.root():[]);let n="";for(let r=0;r<t.length;r++)n+=jc(t[r]);return n}function ZB(e,t,n=typeof t=="boolean"?t:!1){if(!e||typeof e!="string")return null;typeof t=="boolean"&&(n=t);const r=this.load(e,this._options,!1);return n||r("script").remove(),[...r.root()[0].children]}function JB(){return this(this._root)}function jv(e,t){if(t===e)return!1;let n=t;for(;n&&n!==n.parent;)if(n=n.parent,n===e)return!0;return!1}function e6(e){return this.root().extract(e)}function t6(e,t){if(!pE(e)||!pE(t))return;let n=e.length;const r=+t.length;for(let s=0;s<r;s++)e[n++]=t[s];return e.length=n,e}function pE(e){if(Array.isArray(e))return!0;if(typeof e!="object"||e===null||!("length"in e)||typeof e.length!="number"||e.length<0)return!1;for(let t=0;t<e.length;t++)if(!(t in e))return!1;return!0}const n6=Object.freeze(Object.defineProperty({__proto__:null,contains:jv,extract:e6,html:XB,merge:t6,parseHTML:ZB,root:JB,text:yu,xml:QB},Symbol.toStringTag,{value:"Module"}));function Si(e){return e.cheerio!=null}function r6(e){return e.replace(/[._-](\w|$)/g,(t,n)=>n.toUpperCase())}function s6(e){return e.replace(/[A-Z]/g,"-$&").toLowerCase()}function Pn(e,t){const n=e.length;for(let r=0;r<n;r++)t(e[r],r);return e}var Sa;(function(e){e[e.LowerA=97]="LowerA",e[e.LowerZ=122]="LowerZ",e[e.UpperA=65]="UpperA",e[e.UpperZ=90]="UpperZ",e[e.Exclamation=33]="Exclamation"})(Sa||(Sa={}));function Vm(e){const t=e.indexOf("<");if(t===-1||t>e.length-3)return!1;const n=e.charCodeAt(t+1);return(n>=Sa.LowerA&&n<=Sa.LowerZ||n>=Sa.UpperA&&n<=Sa.UpperZ||n===Sa.Exclamation)&&e.includes(">",t+2)}const Wv=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏ੊ઑඡ๭༉༦჊ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ὾⁠↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms„‹•˜¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲ΂ϏϢϸontourIntegraìȹoɴ͹\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՗՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲ׌y;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱cò׋؀JTabcdfgorstר׬ׯ׺؀ؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d׷׸䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇܎ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ޷޼߂ߐĀiyޱ޵rc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄΀HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶߻dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣ঳সে্਷ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗ࡜ࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४Ānrࢃ࢏gleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpw৔ਖਛgȀLRlr৞৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼੝੠੷੼અઋ઎p;椅y;䐜Ādl੥੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑ඗ඞcy;䐊cute;䅃ƀaey઴હાron;䅇dil;䅅;䐝ƀgswે૰଎ativeƀMTV૓૟૨ediumSpace;怋hiĀcn૦૘ë૙eryThiî૙tedĀGL૸ଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷ଺reak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪୼஡௫ఄ౞಄ದ೘ൡඅ櫬Āou୛୤ngruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊ஛ement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater΀;EFGLSTஶஷ஽௉௓௘௥扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲௽ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ೒拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨೹setĀ;E೰ೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂ෉෕ෛ෠෧෼ขภยา฿ไlig;䅒cute耻Ó䃓Āiy෎ීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲ෶cr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬื฼de耻Õ䃕es;樷ml耻Ö䃖erĀBP๋๠Āar๐๓r;怾acĀek๚๜;揞et;掴arenthesis;揜Ҁacfhilors๿ງຊຏຒດຝະ໼rtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ໠໤檻cedesȀ;EST່້໏໚扺qual;檯lantEqual;扼ilde;找me;怳Ādp໩໮uct;戏ortionĀ;aȥ໹l;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬؀BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁࿫࿳ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL࿜࿝࿡憒ar;懥eftArrow;懄eiling;按oǵ࿹\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»࿝pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄ቉ቕ቞ቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHc቎ቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗Āeiቻ኉Dzኀ\0ኇefore;戴a;䎘Ācn኎ኘkSpace;쀀  Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0᏿ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0጖y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻፿on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtè૙a;䎖r;愨pf;愤cr;쀀𝒵௡ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚΀;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒΀;Eaeiop዁ᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;e዁ᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;e዁ᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰ᜼ᝃᝈ᝸᝽០៦ᠹᡐᜍ᤽᥈ᥰot;櫭Ācrᛶ᜞kȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e᜚᜛戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;t፜᜷brk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓ᝛ᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯ᝱ᝳ;䎲;愶een;扬r;쀀𝔟g΀costuvwឍឝឳេ៕៛៞ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀako៭ᠦᠵĀcn៲ᠣkƀlst៺֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘᠝斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈؀DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬ᣿ᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教΀;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ᣷᣹᣻᣽;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ᤟;敛;敘;攘;攔΀;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģ᥂bar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;e᜚᜜lƀ;bhᥨᥩᥫ䁜;槅sub;柈Ŭᥴ᥾lĀ;e᥹᥺怢t»᥺pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭍᭒\0᯽\0ᰌƀcpr᦭ᦲ᧝ute;䄇̀;abcdsᦿᧀᧄ᧊᧕᧙戩nd;橄rcup;橉Āau᧏᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r΀;Ecefms᩟᩠ᩢᩫ᪤᪪᪮旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖᪚᪟»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇᫔᫺\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ᫙\0\0᫢aĀ;t᫞᫟䀬;䁀ƀ;fl᫨᫩᫫戁îᅠeĀmx᫱᫶ent»᫩eóɍǧ᫾\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯΀delprvw᭠᭬᭷ᮂᮬᯔ᯹arrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;p᭿ᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰸᰻᰿ᱝᱩᱵᲊᲞᲬᲷ᳻᳿ᴍᵻᶑᶫᶻ᷆᷍rò΁ar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂͸᳖᳜᳠mƀ;oș᳊᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄ὎὚ĀDoḆᴴoôᲉĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»Ṻƀaeiἒ἖Ἒls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙ῜ῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao‌⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧‪‬\0‮耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₟₥₰₴⃰⃵⃺⃿℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕ₝ute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽⃉ƀ;qsؾٌ⃄lanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqr׮ⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0↎proø₞r;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢␧␭␱␵␻ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀஀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼rò৆òΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonó྘quigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d྘➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ᠛旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐௏쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop඄⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roø඄urĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓΀;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨í஘istĀ;s஠டr;쀀𝔫ȀEest௅⩦⩹⩼ƀ;qs஼⩭௡ƀ;qs஼௅⩴lanô௢ií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚΀AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs఻⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs఻⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast୻⭕⭚⭟lleì୻l;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖ΀chimpqu⮽⯍⯙⬄୸⯤⯯Ȁ;cerല⯆ഷ⯉uå൅;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭å೸åഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñ೗Ā;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰⳴ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥ⵲ⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;c᪞ⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācr⵩⵭ir;榿;쀀𝔬ͯ⵹\0\0⵼\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕ⶘ⶥⶨrò᪀Āir⶝ⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔ⷗ǒr;榷rp;榹΀;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ⹞\0⹽\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ⹧⹲຅脀¶;l⹭⹮䂶leìЃɩ⹸\0\0⹻m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳⻴ᤈ⻹⻽⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp໬⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t໻⾴ï໻rel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⿚⋢⿟⿥⿫⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei⿾々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔઀ABHabcdefhilmnoprstux぀けさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤΀cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstw࿜ガクシスゼゾダッデナp;極Ā;f࿠ゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes㄂㄄;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ì࿲âヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘㇤㇮rrowĀ;t࿜ㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowó࿪arpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓rò࿪aòՑ;怏oustĀ;a㈞㈟掱che»㈟mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦΀Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼਴t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì⹯耻­䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;q኱ኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫ਩war;椪lig耻ß䃟௡㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rë๟ƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproø዁im»ኬsðኞĀas㚺㚮ð዁rn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈ΀adempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xô᝷headĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜΀eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roð໻tré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚΀cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜ៟tré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(e=>e.charCodeAt(0))),i6=new Uint16Array("Ȁaglq \x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(e=>e.charCodeAt(0)));var t0;const a6=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]),yE=(t0=String.fromCodePoint)!==null&&t0!==void 0?t0:function(e){let t="";return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|e&1023),t+=String.fromCharCode(e),t};function o6(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=a6.get(e))!==null&&t!==void 0?t:e}var br;(function(e){e[e.NUM=35]="NUM",e[e.SEMI=59]="SEMI",e[e.EQUALS=61]="EQUALS",e[e.ZERO=48]="ZERO",e[e.NINE=57]="NINE",e[e.LOWER_A=97]="LOWER_A",e[e.LOWER_F=102]="LOWER_F",e[e.LOWER_X=120]="LOWER_X",e[e.LOWER_Z=122]="LOWER_Z",e[e.UPPER_A=65]="UPPER_A",e[e.UPPER_F=70]="UPPER_F",e[e.UPPER_Z=90]="UPPER_Z"})(br||(br={}));const c6=32;var Ki;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(Ki||(Ki={}));function Km(e){return e>=br.ZERO&&e<=br.NINE}function l6(e){return e>=br.UPPER_A&&e<=br.UPPER_F||e>=br.LOWER_A&&e<=br.LOWER_F}function u6(e){return e>=br.UPPER_A&&e<=br.UPPER_Z||e>=br.LOWER_A&&e<=br.LOWER_Z||Km(e)}function d6(e){return e===br.EQUALS||u6(e)}var fr;(function(e){e[e.EntityStart=0]="EntityStart",e[e.NumericStart=1]="NumericStart",e[e.NumericDecimal=2]="NumericDecimal",e[e.NumericHex=3]="NumericHex",e[e.NamedEntity=4]="NamedEntity"})(fr||(fr={}));var As;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(As||(As={}));class Gv{constructor(t,n,r){this.decodeTree=t,this.emitCodePoint=n,this.errors=r,this.state=fr.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=As.Strict}startEntity(t){this.decodeMode=t,this.state=fr.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(t,n){switch(this.state){case fr.EntityStart:return t.charCodeAt(n)===br.NUM?(this.state=fr.NumericStart,this.consumed+=1,this.stateNumericStart(t,n+1)):(this.state=fr.NamedEntity,this.stateNamedEntity(t,n));case fr.NumericStart:return this.stateNumericStart(t,n);case fr.NumericDecimal:return this.stateNumericDecimal(t,n);case fr.NumericHex:return this.stateNumericHex(t,n);case fr.NamedEntity:return this.stateNamedEntity(t,n)}}stateNumericStart(t,n){return n>=t.length?-1:(t.charCodeAt(n)|c6)===br.LOWER_X?(this.state=fr.NumericHex,this.consumed+=1,this.stateNumericHex(t,n+1)):(this.state=fr.NumericDecimal,this.stateNumericDecimal(t,n))}addToNumericResult(t,n,r,s){if(n!==r){const i=r-n;this.result=this.result*Math.pow(s,i)+Number.parseInt(t.substr(n,i),s),this.consumed+=i}}stateNumericHex(t,n){const r=n;for(;n<t.length;){const s=t.charCodeAt(n);if(Km(s)||l6(s))n+=1;else return this.addToNumericResult(t,r,n,16),this.emitNumericEntity(s,3)}return this.addToNumericResult(t,r,n,16),-1}stateNumericDecimal(t,n){const r=n;for(;n<t.length;){const s=t.charCodeAt(n);if(Km(s))n+=1;else return this.addToNumericResult(t,r,n,10),this.emitNumericEntity(s,2)}return this.addToNumericResult(t,r,n,10),-1}emitNumericEntity(t,n){var r;if(this.consumed<=n)return(r=this.errors)===null||r===void 0||r.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(t===br.SEMI)this.consumed+=1;else if(this.decodeMode===As.Strict)return 0;return this.emitCodePoint(o6(this.result),this.consumed),this.errors&&(t!==br.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(t,n){const{decodeTree:r}=this;let s=r[this.treeIndex],i=(s&Ki.VALUE_LENGTH)>>14;for(;n<t.length;n++,this.excess++){const a=t.charCodeAt(n);if(this.treeIndex=f6(r,s,this.treeIndex+Math.max(1,i),a),this.treeIndex<0)return this.result===0||this.decodeMode===As.Attribute&&(i===0||d6(a))?0:this.emitNotTerminatedNamedEntity();if(s=r[this.treeIndex],i=(s&Ki.VALUE_LENGTH)>>14,i!==0){if(a===br.SEMI)return this.emitNamedEntityData(this.treeIndex,i,this.consumed+this.excess);this.decodeMode!==As.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var t;const{result:n,decodeTree:r}=this,s=(r[n]&Ki.VALUE_LENGTH)>>14;return this.emitNamedEntityData(n,s,this.consumed),(t=this.errors)===null||t===void 0||t.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(t,n,r){const{decodeTree:s}=this;return this.emitCodePoint(n===1?s[t]&~Ki.VALUE_LENGTH:s[t+1],r),n===3&&this.emitCodePoint(s[t+2],r),r}end(){var t;switch(this.state){case fr.NamedEntity:return this.result!==0&&(this.decodeMode!==As.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case fr.NumericDecimal:return this.emitNumericEntity(0,2);case fr.NumericHex:return this.emitNumericEntity(0,3);case fr.NumericStart:return(t=this.errors)===null||t===void 0||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case fr.EntityStart:return 0}}}function f6(e,t,n,r){const s=(t&Ki.BRANCH_LENGTH)>>7,i=t&Ki.JUMP_TABLE;if(s===0)return i!==0&&r===i?n:-1;if(i){const c=r-i;return c<0||c>=s?-1:e[n+c]-1}let a=n,o=a+s-1;for(;a<=o;){const c=a+o>>>1,l=e[c];if(l<r)a=c+1;else if(l>r)o=c-1;else return e[c+s]}return-1}var lt;(function(e){e[e.Tab=9]="Tab",e[e.NewLine=10]="NewLine",e[e.FormFeed=12]="FormFeed",e[e.CarriageReturn=13]="CarriageReturn",e[e.Space=32]="Space",e[e.ExclamationMark=33]="ExclamationMark",e[e.Number=35]="Number",e[e.Amp=38]="Amp",e[e.SingleQuote=39]="SingleQuote",e[e.DoubleQuote=34]="DoubleQuote",e[e.Dash=45]="Dash",e[e.Slash=47]="Slash",e[e.Zero=48]="Zero",e[e.Nine=57]="Nine",e[e.Semi=59]="Semi",e[e.Lt=60]="Lt",e[e.Eq=61]="Eq",e[e.Gt=62]="Gt",e[e.Questionmark=63]="Questionmark",e[e.UpperA=65]="UpperA",e[e.LowerA=97]="LowerA",e[e.UpperF=70]="UpperF",e[e.LowerF=102]="LowerF",e[e.UpperZ=90]="UpperZ",e[e.LowerZ=122]="LowerZ",e[e.LowerX=120]="LowerX",e[e.OpeningSquareBracket=91]="OpeningSquareBracket"})(lt||(lt={}));var Ae;(function(e){e[e.Text=1]="Text",e[e.BeforeTagName=2]="BeforeTagName",e[e.InTagName=3]="InTagName",e[e.InSelfClosingTag=4]="InSelfClosingTag",e[e.BeforeClosingTagName=5]="BeforeClosingTagName",e[e.InClosingTagName=6]="InClosingTagName",e[e.AfterClosingTagName=7]="AfterClosingTagName",e[e.BeforeAttributeName=8]="BeforeAttributeName",e[e.InAttributeName=9]="InAttributeName",e[e.AfterAttributeName=10]="AfterAttributeName",e[e.BeforeAttributeValue=11]="BeforeAttributeValue",e[e.InAttributeValueDq=12]="InAttributeValueDq",e[e.InAttributeValueSq=13]="InAttributeValueSq",e[e.InAttributeValueNq=14]="InAttributeValueNq",e[e.BeforeDeclaration=15]="BeforeDeclaration",e[e.InDeclaration=16]="InDeclaration",e[e.InProcessingInstruction=17]="InProcessingInstruction",e[e.BeforeComment=18]="BeforeComment",e[e.CDATASequence=19]="CDATASequence",e[e.InSpecialComment=20]="InSpecialComment",e[e.InCommentLike=21]="InCommentLike",e[e.BeforeSpecialS=22]="BeforeSpecialS",e[e.BeforeSpecialT=23]="BeforeSpecialT",e[e.SpecialStartSequence=24]="SpecialStartSequence",e[e.InSpecialTag=25]="InSpecialTag",e[e.InEntity=26]="InEntity"})(Ae||(Ae={}));function xi(e){return e===lt.Space||e===lt.NewLine||e===lt.Tab||e===lt.FormFeed||e===lt.CarriageReturn}function cd(e){return e===lt.Slash||e===lt.Gt||xi(e)}function h6(e){return e>=lt.LowerA&&e<=lt.LowerZ||e>=lt.UpperA&&e<=lt.UpperZ}var si;(function(e){e[e.NoValue=0]="NoValue",e[e.Unquoted=1]="Unquoted",e[e.Single=2]="Single",e[e.Double=3]="Double"})(si||(si={}));const Gn={Cdata:new Uint8Array([67,68,65,84,65,91]),CdataEnd:new Uint8Array([93,93,62]),CommentEnd:new Uint8Array([45,45,62]),ScriptEnd:new Uint8Array([60,47,115,99,114,105,112,116]),StyleEnd:new Uint8Array([60,47,115,116,121,108,101]),TitleEnd:new Uint8Array([60,47,116,105,116,108,101]),TextareaEnd:new Uint8Array([60,47,116,101,120,116,97,114,101,97]),XmpEnd:new Uint8Array([60,47,120,109,112])};let m6=class{constructor({xmlMode:t=!1,decodeEntities:n=!0},r){this.cbs=r,this.state=Ae.Text,this.buffer="",this.sectionStart=0,this.index=0,this.entityStart=0,this.baseState=Ae.Text,this.isSpecial=!1,this.running=!0,this.offset=0,this.currentSequence=void 0,this.sequenceIndex=0,this.xmlMode=t,this.decodeEntities=n,this.entityDecoder=new Gv(t?i6:Wv,(s,i)=>this.emitCodePoint(s,i))}reset(){this.state=Ae.Text,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=Ae.Text,this.currentSequence=void 0,this.running=!0,this.offset=0}write(t){this.offset+=this.buffer.length,this.buffer=t,this.parse()}end(){this.running&&this.finish()}pause(){this.running=!1}resume(){this.running=!0,this.index<this.buffer.length+this.offset&&this.parse()}stateText(t){t===lt.Lt||!this.decodeEntities&&this.fastForwardTo(lt.Lt)?(this.index>this.sectionStart&&this.cbs.ontext(this.sectionStart,this.index),this.state=Ae.BeforeTagName,this.sectionStart=this.index):this.decodeEntities&&t===lt.Amp&&this.startEntity()}stateSpecialStartSequence(t){const n=this.sequenceIndex===this.currentSequence.length;if(!(n?cd(t):(t|32)===this.currentSequence[this.sequenceIndex]))this.isSpecial=!1;else if(!n){this.sequenceIndex++;return}this.sequenceIndex=0,this.state=Ae.InTagName,this.stateInTagName(t)}stateInSpecialTag(t){if(this.sequenceIndex===this.currentSequence.length){if(t===lt.Gt||xi(t)){const n=this.index-this.currentSequence.length;if(this.sectionStart<n){const r=this.index;this.index=n,this.cbs.ontext(this.sectionStart,n),this.index=r}this.isSpecial=!1,this.sectionStart=n+2,this.stateInClosingTagName(t);return}this.sequenceIndex=0}(t|32)===this.currentSequence[this.sequenceIndex]?this.sequenceIndex+=1:this.sequenceIndex===0?this.currentSequence===Gn.TitleEnd?this.decodeEntities&&t===lt.Amp&&this.startEntity():this.fastForwardTo(lt.Lt)&&(this.sequenceIndex=1):this.sequenceIndex=+(t===lt.Lt)}stateCDATASequence(t){t===Gn.Cdata[this.sequenceIndex]?++this.sequenceIndex===Gn.Cdata.length&&(this.state=Ae.InCommentLike,this.currentSequence=Gn.CdataEnd,this.sequenceIndex=0,this.sectionStart=this.index+1):(this.sequenceIndex=0,this.state=Ae.InDeclaration,this.stateInDeclaration(t))}fastForwardTo(t){for(;++this.index<this.buffer.length+this.offset;)if(this.buffer.charCodeAt(this.index-this.offset)===t)return!0;return this.index=this.buffer.length+this.offset-1,!1}stateInCommentLike(t){t===this.currentSequence[this.sequenceIndex]?++this.sequenceIndex===this.currentSequence.length&&(this.currentSequence===Gn.CdataEnd?this.cbs.oncdata(this.sectionStart,this.index,2):this.cbs.oncomment(this.sectionStart,this.index,2),this.sequenceIndex=0,this.sectionStart=this.index+1,this.state=Ae.Text):this.sequenceIndex===0?this.fastForwardTo(this.currentSequence[0])&&(this.sequenceIndex=1):t!==this.currentSequence[this.sequenceIndex-1]&&(this.sequenceIndex=0)}isTagStartChar(t){return this.xmlMode?!cd(t):h6(t)}startSpecial(t,n){this.isSpecial=!0,this.currentSequence=t,this.sequenceIndex=n,this.state=Ae.SpecialStartSequence}stateBeforeTagName(t){if(t===lt.ExclamationMark)this.state=Ae.BeforeDeclaration,this.sectionStart=this.index+1;else if(t===lt.Questionmark)this.state=Ae.InProcessingInstruction,this.sectionStart=this.index+1;else if(this.isTagStartChar(t)){const n=t|32;this.sectionStart=this.index,this.xmlMode?this.state=Ae.InTagName:n===Gn.ScriptEnd[2]?this.state=Ae.BeforeSpecialS:n===Gn.TitleEnd[2]||n===Gn.XmpEnd[2]?this.state=Ae.BeforeSpecialT:this.state=Ae.InTagName}else t===lt.Slash?this.state=Ae.BeforeClosingTagName:(this.state=Ae.Text,this.stateText(t))}stateInTagName(t){cd(t)&&(this.cbs.onopentagname(this.sectionStart,this.index),this.sectionStart=-1,this.state=Ae.BeforeAttributeName,this.stateBeforeAttributeName(t))}stateBeforeClosingTagName(t){xi(t)||(t===lt.Gt?this.state=Ae.Text:(this.state=this.isTagStartChar(t)?Ae.InClosingTagName:Ae.InSpecialComment,this.sectionStart=this.index))}stateInClosingTagName(t){(t===lt.Gt||xi(t))&&(this.cbs.onclosetag(this.sectionStart,this.index),this.sectionStart=-1,this.state=Ae.AfterClosingTagName,this.stateAfterClosingTagName(t))}stateAfterClosingTagName(t){(t===lt.Gt||this.fastForwardTo(lt.Gt))&&(this.state=Ae.Text,this.sectionStart=this.index+1)}stateBeforeAttributeName(t){t===lt.Gt?(this.cbs.onopentagend(this.index),this.isSpecial?(this.state=Ae.InSpecialTag,this.sequenceIndex=0):this.state=Ae.Text,this.sectionStart=this.index+1):t===lt.Slash?this.state=Ae.InSelfClosingTag:xi(t)||(this.state=Ae.InAttributeName,this.sectionStart=this.index)}stateInSelfClosingTag(t){t===lt.Gt?(this.cbs.onselfclosingtag(this.index),this.state=Ae.Text,this.sectionStart=this.index+1,this.isSpecial=!1):xi(t)||(this.state=Ae.BeforeAttributeName,this.stateBeforeAttributeName(t))}stateInAttributeName(t){(t===lt.Eq||cd(t))&&(this.cbs.onattribname(this.sectionStart,this.index),this.sectionStart=this.index,this.state=Ae.AfterAttributeName,this.stateAfterAttributeName(t))}stateAfterAttributeName(t){t===lt.Eq?this.state=Ae.BeforeAttributeValue:t===lt.Slash||t===lt.Gt?(this.cbs.onattribend(si.NoValue,this.sectionStart),this.sectionStart=-1,this.state=Ae.BeforeAttributeName,this.stateBeforeAttributeName(t)):xi(t)||(this.cbs.onattribend(si.NoValue,this.sectionStart),this.state=Ae.InAttributeName,this.sectionStart=this.index)}stateBeforeAttributeValue(t){t===lt.DoubleQuote?(this.state=Ae.InAttributeValueDq,this.sectionStart=this.index+1):t===lt.SingleQuote?(this.state=Ae.InAttributeValueSq,this.sectionStart=this.index+1):xi(t)||(this.sectionStart=this.index,this.state=Ae.InAttributeValueNq,this.stateInAttributeValueNoQuotes(t))}handleInAttributeValue(t,n){t===n||!this.decodeEntities&&this.fastForwardTo(n)?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(n===lt.DoubleQuote?si.Double:si.Single,this.index+1),this.state=Ae.BeforeAttributeName):this.decodeEntities&&t===lt.Amp&&this.startEntity()}stateInAttributeValueDoubleQuotes(t){this.handleInAttributeValue(t,lt.DoubleQuote)}stateInAttributeValueSingleQuotes(t){this.handleInAttributeValue(t,lt.SingleQuote)}stateInAttributeValueNoQuotes(t){xi(t)||t===lt.Gt?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(si.Unquoted,this.index),this.state=Ae.BeforeAttributeName,this.stateBeforeAttributeName(t)):this.decodeEntities&&t===lt.Amp&&this.startEntity()}stateBeforeDeclaration(t){t===lt.OpeningSquareBracket?(this.state=Ae.CDATASequence,this.sequenceIndex=0):this.state=t===lt.Dash?Ae.BeforeComment:Ae.InDeclaration}stateInDeclaration(t){(t===lt.Gt||this.fastForwardTo(lt.Gt))&&(this.cbs.ondeclaration(this.sectionStart,this.index),this.state=Ae.Text,this.sectionStart=this.index+1)}stateInProcessingInstruction(t){(t===lt.Gt||this.fastForwardTo(lt.Gt))&&(this.cbs.onprocessinginstruction(this.sectionStart,this.index),this.state=Ae.Text,this.sectionStart=this.index+1)}stateBeforeComment(t){t===lt.Dash?(this.state=Ae.InCommentLike,this.currentSequence=Gn.CommentEnd,this.sequenceIndex=2,this.sectionStart=this.index+1):this.state=Ae.InDeclaration}stateInSpecialComment(t){(t===lt.Gt||this.fastForwardTo(lt.Gt))&&(this.cbs.oncomment(this.sectionStart,this.index,0),this.state=Ae.Text,this.sectionStart=this.index+1)}stateBeforeSpecialS(t){const n=t|32;n===Gn.ScriptEnd[3]?this.startSpecial(Gn.ScriptEnd,4):n===Gn.StyleEnd[3]?this.startSpecial(Gn.StyleEnd,4):(this.state=Ae.InTagName,this.stateInTagName(t))}stateBeforeSpecialT(t){switch(t|32){case Gn.TitleEnd[3]:{this.startSpecial(Gn.TitleEnd,4);break}case Gn.TextareaEnd[3]:{this.startSpecial(Gn.TextareaEnd,4);break}case Gn.XmpEnd[3]:{this.startSpecial(Gn.XmpEnd,4);break}default:this.state=Ae.InTagName,this.stateInTagName(t)}}startEntity(){this.baseState=this.state,this.state=Ae.InEntity,this.entityStart=this.index,this.entityDecoder.startEntity(this.xmlMode?As.Strict:this.baseState===Ae.Text||this.baseState===Ae.InSpecialTag?As.Legacy:As.Attribute)}stateInEntity(){const t=this.entityDecoder.write(this.buffer,this.index-this.offset);t>=0?(this.state=this.baseState,t===0&&(this.index=this.entityStart)):this.index=this.offset+this.buffer.length-1}cleanup(){this.running&&this.sectionStart!==this.index&&(this.state===Ae.Text||this.state===Ae.InSpecialTag&&this.sequenceIndex===0?(this.cbs.ontext(this.sectionStart,this.index),this.sectionStart=this.index):(this.state===Ae.InAttributeValueDq||this.state===Ae.InAttributeValueSq||this.state===Ae.InAttributeValueNq)&&(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=this.index))}shouldContinue(){return this.index<this.buffer.length+this.offset&&this.running}parse(){for(;this.shouldContinue();){const t=this.buffer.charCodeAt(this.index-this.offset);switch(this.state){case Ae.Text:{this.stateText(t);break}case Ae.SpecialStartSequence:{this.stateSpecialStartSequence(t);break}case Ae.InSpecialTag:{this.stateInSpecialTag(t);break}case Ae.CDATASequence:{this.stateCDATASequence(t);break}case Ae.InAttributeValueDq:{this.stateInAttributeValueDoubleQuotes(t);break}case Ae.InAttributeName:{this.stateInAttributeName(t);break}case Ae.InCommentLike:{this.stateInCommentLike(t);break}case Ae.InSpecialComment:{this.stateInSpecialComment(t);break}case Ae.BeforeAttributeName:{this.stateBeforeAttributeName(t);break}case Ae.InTagName:{this.stateInTagName(t);break}case Ae.InClosingTagName:{this.stateInClosingTagName(t);break}case Ae.BeforeTagName:{this.stateBeforeTagName(t);break}case Ae.AfterAttributeName:{this.stateAfterAttributeName(t);break}case Ae.InAttributeValueSq:{this.stateInAttributeValueSingleQuotes(t);break}case Ae.BeforeAttributeValue:{this.stateBeforeAttributeValue(t);break}case Ae.BeforeClosingTagName:{this.stateBeforeClosingTagName(t);break}case Ae.AfterClosingTagName:{this.stateAfterClosingTagName(t);break}case Ae.BeforeSpecialS:{this.stateBeforeSpecialS(t);break}case Ae.BeforeSpecialT:{this.stateBeforeSpecialT(t);break}case Ae.InAttributeValueNq:{this.stateInAttributeValueNoQuotes(t);break}case Ae.InSelfClosingTag:{this.stateInSelfClosingTag(t);break}case Ae.InDeclaration:{this.stateInDeclaration(t);break}case Ae.BeforeDeclaration:{this.stateBeforeDeclaration(t);break}case Ae.BeforeComment:{this.stateBeforeComment(t);break}case Ae.InProcessingInstruction:{this.stateInProcessingInstruction(t);break}case Ae.InEntity:{this.stateInEntity();break}}this.index++}this.cleanup()}finish(){this.state===Ae.InEntity&&(this.entityDecoder.end(),this.state=this.baseState),this.handleTrailingData(),this.cbs.onend()}handleTrailingData(){const t=this.buffer.length+this.offset;this.sectionStart>=t||(this.state===Ae.InCommentLike?this.currentSequence===Gn.CdataEnd?this.cbs.oncdata(this.sectionStart,t,0):this.cbs.oncomment(this.sectionStart,t,0):this.state===Ae.InTagName||this.state===Ae.BeforeAttributeName||this.state===Ae.BeforeAttributeValue||this.state===Ae.AfterAttributeName||this.state===Ae.InAttributeName||this.state===Ae.InAttributeValueSq||this.state===Ae.InAttributeValueDq||this.state===Ae.InAttributeValueNq||this.state===Ae.InClosingTagName||this.cbs.ontext(this.sectionStart,t))}emitCodePoint(t,n){this.baseState!==Ae.Text&&this.baseState!==Ae.InSpecialTag?(this.sectionStart<this.entityStart&&this.cbs.onattribdata(this.sectionStart,this.entityStart),this.sectionStart=this.entityStart+n,this.index=this.sectionStart-1,this.cbs.onattribentity(t)):(this.sectionStart<this.entityStart&&this.cbs.ontext(this.sectionStart,this.entityStart),this.sectionStart=this.entityStart+n,this.index=this.sectionStart-1,this.cbs.ontextentity(t,this.sectionStart))}};const Go=new Set(["input","option","optgroup","select","button","datalist","textarea"]),Jt=new Set(["p"]),EE=new Set(["thead","tbody"]),CE=new Set(["dd","dt"]),xE=new Set(["rt","rp"]),b6=new Map([["tr",new Set(["tr","th","td"])],["th",new Set(["th"])],["td",new Set(["thead","th","td"])],["body",new Set(["head","link","script"])],["li",new Set(["li"])],["p",Jt],["h1",Jt],["h2",Jt],["h3",Jt],["h4",Jt],["h5",Jt],["h6",Jt],["select",Go],["input",Go],["output",Go],["button",Go],["datalist",Go],["textarea",Go],["option",new Set(["option"])],["optgroup",new Set(["optgroup","option"])],["dd",CE],["dt",CE],["address",Jt],["article",Jt],["aside",Jt],["blockquote",Jt],["details",Jt],["div",Jt],["dl",Jt],["fieldset",Jt],["figcaption",Jt],["figure",Jt],["footer",Jt],["form",Jt],["header",Jt],["hr",Jt],["main",Jt],["nav",Jt],["ol",Jt],["pre",Jt],["section",Jt],["table",Jt],["ul",Jt],["rt",xE],["rp",xE],["tbody",EE],["tfoot",EE]]),g6=new Set(["area","base","basefont","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr"]),vE=new Set(["math","svg"]),_E=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignobject","desc","title"]),p6=/\s|\//;let y6=class{constructor(t,n={}){var r,s,i,a,o,c;this.options=n,this.startIndex=0,this.endIndex=0,this.openTagStart=0,this.tagname="",this.attribname="",this.attribvalue="",this.attribs=null,this.stack=[],this.buffers=[],this.bufferOffset=0,this.writeIndex=0,this.ended=!1,this.cbs=t??{},this.htmlMode=!this.options.xmlMode,this.lowerCaseTagNames=(r=n.lowerCaseTags)!==null&&r!==void 0?r:this.htmlMode,this.lowerCaseAttributeNames=(s=n.lowerCaseAttributeNames)!==null&&s!==void 0?s:this.htmlMode,this.recognizeSelfClosing=(i=n.recognizeSelfClosing)!==null&&i!==void 0?i:!this.htmlMode,this.tokenizer=new((a=n.Tokenizer)!==null&&a!==void 0?a:m6)(this.options,this),this.foreignContext=[!this.htmlMode],(c=(o=this.cbs).onparserinit)===null||c===void 0||c.call(o,this)}ontext(t,n){var r,s;const i=this.getSlice(t,n);this.endIndex=n-1,(s=(r=this.cbs).ontext)===null||s===void 0||s.call(r,i),this.startIndex=n}ontextentity(t,n){var r,s;this.endIndex=n-1,(s=(r=this.cbs).ontext)===null||s===void 0||s.call(r,yE(t)),this.startIndex=n}isVoidElement(t){return this.htmlMode&&g6.has(t)}onopentagname(t,n){this.endIndex=n;let r=this.getSlice(t,n);this.lowerCaseTagNames&&(r=r.toLowerCase()),this.emitOpenTag(r)}emitOpenTag(t){var n,r,s,i;this.openTagStart=this.startIndex,this.tagname=t;const a=this.htmlMode&&b6.get(t);if(a)for(;this.stack.length>0&&a.has(this.stack[0]);){const o=this.stack.shift();(r=(n=this.cbs).onclosetag)===null||r===void 0||r.call(n,o,!0)}this.isVoidElement(t)||(this.stack.unshift(t),this.htmlMode&&(vE.has(t)?this.foreignContext.unshift(!0):_E.has(t)&&this.foreignContext.unshift(!1))),(i=(s=this.cbs).onopentagname)===null||i===void 0||i.call(s,t),this.cbs.onopentag&&(this.attribs={})}endOpenTag(t){var n,r;this.startIndex=this.openTagStart,this.attribs&&((r=(n=this.cbs).onopentag)===null||r===void 0||r.call(n,this.tagname,this.attribs,t),this.attribs=null),this.cbs.onclosetag&&this.isVoidElement(this.tagname)&&this.cbs.onclosetag(this.tagname,!0),this.tagname=""}onopentagend(t){this.endIndex=t,this.endOpenTag(!1),this.startIndex=t+1}onclosetag(t,n){var r,s,i,a,o,c,l,d;this.endIndex=n;let f=this.getSlice(t,n);if(this.lowerCaseTagNames&&(f=f.toLowerCase()),this.htmlMode&&(vE.has(f)||_E.has(f))&&this.foreignContext.shift(),this.isVoidElement(f))this.htmlMode&&f==="br"&&((a=(i=this.cbs).onopentagname)===null||a===void 0||a.call(i,"br"),(c=(o=this.cbs).onopentag)===null||c===void 0||c.call(o,"br",{},!0),(d=(l=this.cbs).onclosetag)===null||d===void 0||d.call(l,"br",!1));else{const m=this.stack.indexOf(f);if(m!==-1)for(let h=0;h<=m;h++){const b=this.stack.shift();(s=(r=this.cbs).onclosetag)===null||s===void 0||s.call(r,b,h!==m)}else this.htmlMode&&f==="p"&&(this.emitOpenTag("p"),this.closeCurrentTag(!0))}this.startIndex=n+1}onselfclosingtag(t){this.endIndex=t,this.recognizeSelfClosing||this.foreignContext[0]?(this.closeCurrentTag(!1),this.startIndex=t+1):this.onopentagend(t)}closeCurrentTag(t){var n,r;const s=this.tagname;this.endOpenTag(t),this.stack[0]===s&&((r=(n=this.cbs).onclosetag)===null||r===void 0||r.call(n,s,!t),this.stack.shift())}onattribname(t,n){this.startIndex=t;const r=this.getSlice(t,n);this.attribname=this.lowerCaseAttributeNames?r.toLowerCase():r}onattribdata(t,n){this.attribvalue+=this.getSlice(t,n)}onattribentity(t){this.attribvalue+=yE(t)}onattribend(t,n){var r,s;this.endIndex=n,(s=(r=this.cbs).onattribute)===null||s===void 0||s.call(r,this.attribname,this.attribvalue,t===si.Double?'"':t===si.Single?"'":t===si.NoValue?void 0:null),this.attribs&&!Object.prototype.hasOwnProperty.call(this.attribs,this.attribname)&&(this.attribs[this.attribname]=this.attribvalue),this.attribvalue=""}getInstructionName(t){const n=t.search(p6);let r=n<0?t:t.substr(0,n);return this.lowerCaseTagNames&&(r=r.toLowerCase()),r}ondeclaration(t,n){this.endIndex=n;const r=this.getSlice(t,n);if(this.cbs.onprocessinginstruction){const s=this.getInstructionName(r);this.cbs.onprocessinginstruction(`!${s}`,`!${r}`)}this.startIndex=n+1}onprocessinginstruction(t,n){this.endIndex=n;const r=this.getSlice(t,n);if(this.cbs.onprocessinginstruction){const s=this.getInstructionName(r);this.cbs.onprocessinginstruction(`?${s}`,`?${r}`)}this.startIndex=n+1}oncomment(t,n,r){var s,i,a,o;this.endIndex=n,(i=(s=this.cbs).oncomment)===null||i===void 0||i.call(s,this.getSlice(t,n-r)),(o=(a=this.cbs).oncommentend)===null||o===void 0||o.call(a),this.startIndex=n+1}oncdata(t,n,r){var s,i,a,o,c,l,d,f,m,h;this.endIndex=n;const b=this.getSlice(t,n-r);!this.htmlMode||this.options.recognizeCDATA?((i=(s=this.cbs).oncdatastart)===null||i===void 0||i.call(s),(o=(a=this.cbs).ontext)===null||o===void 0||o.call(a,b),(l=(c=this.cbs).oncdataend)===null||l===void 0||l.call(c)):((f=(d=this.cbs).oncomment)===null||f===void 0||f.call(d,`[CDATA[${b}]]`),(h=(m=this.cbs).oncommentend)===null||h===void 0||h.call(m)),this.startIndex=n+1}onend(){var t,n;if(this.cbs.onclosetag){this.endIndex=this.startIndex;for(let r=0;r<this.stack.length;r++)this.cbs.onclosetag(this.stack[r],!0)}(n=(t=this.cbs).onend)===null||n===void 0||n.call(t)}reset(){var t,n,r,s;(n=(t=this.cbs).onreset)===null||n===void 0||n.call(t),this.tokenizer.reset(),this.tagname="",this.attribname="",this.attribs=null,this.stack.length=0,this.startIndex=0,this.endIndex=0,(s=(r=this.cbs).onparserinit)===null||s===void 0||s.call(r,this),this.buffers.length=0,this.foreignContext.length=0,this.foreignContext.unshift(!this.htmlMode),this.bufferOffset=0,this.writeIndex=0,this.ended=!1}parseComplete(t){this.reset(),this.end(t)}getSlice(t,n){for(;t-this.bufferOffset>=this.buffers[0].length;)this.shiftBuffer();let r=this.buffers[0].slice(t-this.bufferOffset,n-this.bufferOffset);for(;n-this.bufferOffset>this.buffers[0].length;)this.shiftBuffer(),r+=this.buffers[0].slice(0,n-this.bufferOffset);return r}shiftBuffer(){this.bufferOffset+=this.buffers[0].length,this.writeIndex--,this.buffers.shift()}write(t){var n,r;if(this.ended){(r=(n=this.cbs).onerror)===null||r===void 0||r.call(n,new Error(".write() after done!"));return}this.buffers.push(t),this.tokenizer.running&&(this.tokenizer.write(t),this.writeIndex++)}end(t){var n,r;if(this.ended){(r=(n=this.cbs).onerror)===null||r===void 0||r.call(n,new Error(".end() after done!"));return}t&&this.write(t),this.ended=!0,this.tokenizer.end()}pause(){this.tokenizer.pause()}resume(){for(this.tokenizer.resume();this.tokenizer.running&&this.writeIndex<this.buffers.length;)this.tokenizer.write(this.buffers[this.writeIndex++]);this.ended&&this.tokenizer.end()}parseChunk(t){this.write(t)}done(t){this.end(t)}};function E6(e,t){const n=new aB(void 0,t);return new y6(n,t).end(e),n.root}var n0;const Eu=(n0=Object.hasOwn)!==null&&n0!==void 0?n0:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),Cu=/\s+/,Ym="data-",$g=/^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,C6=/^{[^]*}$|^\[[^]*]$/;function If(e,t,n){var r;if(!(!e||!dt(e))){if((r=e.attribs)!==null&&r!==void 0||(e.attribs={}),!t)return e.attribs;if(Eu(e.attribs,t))return!n&&$g.test(t)?t:e.attribs[t];if(e.name==="option"&&t==="value")return yu(e.children);if(e.name==="input"&&(e.attribs.type==="radio"||e.attribs.type==="checkbox")&&t==="value")return"on"}}function oc(e,t,n){n===null?Kv(e,t):e.attribs[t]=`${n}`}function x6(e,t){if(typeof e=="object"||t!==void 0){if(typeof t=="function"){if(typeof e!="string")throw new Error("Bad combination of arguments.");return Pn(this,(n,r)=>{dt(n)&&oc(n,e,t.call(n,r,n.attribs[e]))})}return Pn(this,n=>{if(dt(n))if(typeof e=="object")for(const r of Object.keys(e)){const s=e[r];oc(n,r,s)}else oc(n,e,t)})}return arguments.length>1?this:If(this[0],e,this.options.xmlMode)}function SE(e,t,n){return t in e?e[t]:!n&&$g.test(t)?If(e,t,!1)!==void 0:If(e,t,n)}function r0(e,t,n,r){t in e?e[t]=n:oc(e,t,!r&&$g.test(t)?n?"":null:`${n}`)}function v6(e,t){var n;if(typeof e=="string"&&t===void 0){const r=this[0];if(!r)return;switch(e){case"style":{const s=this.css(),i=Object.keys(s);for(let a=0;a<i.length;a++)s[a]=i[a];return s.length=i.length,s}case"tagName":case"nodeName":return dt(r)?r.name.toUpperCase():void 0;case"href":case"src":{if(!dt(r))return;const s=(n=r.attribs)===null||n===void 0?void 0:n[e];return typeof URL<"u"&&(e==="href"&&(r.tagName==="a"||r.tagName==="link")||e==="src"&&(r.tagName==="img"||r.tagName==="iframe"||r.tagName==="audio"||r.tagName==="video"||r.tagName==="source"))&&s!==void 0&&this.options.baseURI?new URL(s,this.options.baseURI).href:s}case"innerText":return wf(r);case"textContent":return jc(r);case"outerHTML":return r.type===Rg?this.html():this.clone().wrap("<container />").parent().html();case"innerHTML":return this.html();default:return dt(r)?SE(r,e,this.options.xmlMode):void 0}}if(typeof e=="object"||t!==void 0){if(typeof t=="function"){if(typeof e=="object")throw new TypeError("Bad combination of arguments.");return Pn(this,(r,s)=>{dt(r)&&r0(r,e,t.call(r,s,SE(r,e,this.options.xmlMode)),this.options.xmlMode)})}return Pn(this,r=>{if(dt(r))if(typeof e=="object")for(const s of Object.keys(e)){const i=e[s];r0(r,s,i,this.options.xmlMode)}else r0(r,e,t,this.options.xmlMode)})}}function TE(e,t,n){var r;(r=e.data)!==null&&r!==void 0||(e.data={}),typeof t=="object"?Object.assign(e.data,t):typeof t=="string"&&n!==void 0&&(e.data[t]=n)}function _6(e){for(const t of Object.keys(e.attribs)){if(!t.startsWith(Ym))continue;const n=r6(t.slice(Ym.length));Eu(e.data,n)||(e.data[n]=Vv(e.attribs[t]))}return e.data}function S6(e,t){const n=Ym+s6(t),r=e.data;if(Eu(r,t))return r[t];if(Eu(e.attribs,n))return r[t]=Vv(e.attribs[n])}function Vv(e){if(e==="null")return null;if(e==="true")return!0;if(e==="false")return!1;const t=Number(e);if(e===String(t))return t;if(C6.test(e))try{return JSON.parse(e)}catch{}return e}function T6(e,t){var n;const r=this[0];if(!r||!dt(r))return;const s=r;return(n=s.data)!==null&&n!==void 0||(s.data={}),e==null?_6(s):typeof e=="object"||t!==void 0?(Pn(this,i=>{dt(i)&&(typeof e=="object"?TE(i,e):TE(i,e,t))}),this):S6(s,e)}function w6(e){const t=arguments.length===0,n=this[0];if(!n||!dt(n))return t?void 0:this;switch(n.name){case"textarea":return this.text(e);case"select":{const r=this.find("option:selected");if(!t){if(this.attr("multiple")==null&&typeof e=="object")return this;this.find("option").removeAttr("selected");const s=typeof e=="object"?e:[e];for(const i of s)this.find(`option[value="${i}"]`).attr("selected","");return this}return this.attr("multiple")?r.toArray().map(s=>yu(s.children)):r.attr("value")}case"input":case"option":return t?this.attr("value"):this.attr("value",e)}}function Kv(e,t){!e.attribs||!Eu(e.attribs,t)||delete e.attribs[t]}function Rf(e){return e?e.trim().split(Cu):[]}function A6(e){const t=Rf(e);for(const n of t)Pn(this,r=>{dt(r)&&Kv(r,n)});return this}function k6(e){return this.toArray().some(t=>{const n=dt(t)&&t.attribs.class;let r=-1;if(n&&e.length>0)for(;(r=n.indexOf(e,r+1))>-1;){const s=r+e.length;if((r===0||Cu.test(n[r-1]))&&(s===n.length||Cu.test(n[s])))return!0}return!1})}function Yv(e){if(typeof e=="function")return Pn(this,(r,s)=>{if(dt(r)){const i=r.attribs.class||"";Yv.call([r],e.call(r,s,i))}});if(!e||typeof e!="string")return this;const t=e.split(Cu),n=this.length;for(let r=0;r<n;r++){const s=this[r];if(!dt(s))continue;const i=If(s,"class",!1);if(i){let a=` ${i} `;for(const o of t){const c=`${o} `;a.includes(` ${c}`)||(a+=c)}oc(s,"class",a.trim())}else oc(s,"class",t.join(" ").trim())}return this}function Xv(e){if(typeof e=="function")return Pn(this,(s,i)=>{dt(s)&&Xv.call([s],e.call(s,i,s.attribs.class||""))});const t=Rf(e),n=t.length,r=arguments.length===0;return Pn(this,s=>{if(dt(s))if(r)s.attribs.class="";else{const i=Rf(s.attribs.class);let a=!1;for(let o=0;o<n;o++){const c=i.indexOf(t[o]);c!==-1&&(i.splice(c,1),a=!0,o--)}a&&(s.attribs.class=i.join(" "))}})}function Qv(e,t){if(typeof e=="function")return Pn(this,(a,o)=>{dt(a)&&Qv.call([a],e.call(a,o,a.attribs.class||"",t),t)});if(!e||typeof e!="string")return this;const n=e.split(Cu),r=n.length,s=typeof t=="boolean"?t?1:-1:0,i=this.length;for(let a=0;a<i;a++){const o=this[a];if(!dt(o))continue;const c=Rf(o.attribs.class);for(let l=0;l<r;l++){const d=c.indexOf(n[l]);s>=0&&d===-1?c.push(n[l]):s<=0&&d!==-1&&c.splice(d,1)}o.attribs.class=c.join(" ")}return this}const I6=Object.freeze(Object.defineProperty({__proto__:null,addClass:Yv,attr:x6,data:T6,hasClass:k6,prop:v6,removeAttr:A6,removeClass:Xv,toggleClass:Qv,val:w6},Symbol.toStringTag,{value:"Module"}));var at;(function(e){e.Attribute="attribute",e.Pseudo="pseudo",e.PseudoElement="pseudo-element",e.Tag="tag",e.Universal="universal",e.Adjacent="adjacent",e.Child="child",e.Descendant="descendant",e.Parent="parent",e.Sibling="sibling",e.ColumnCombinator="column-combinator"})(at||(at={}));var tr;(function(e){e.Any="any",e.Element="element",e.End="end",e.Equals="equals",e.Exists="exists",e.Hyphen="hyphen",e.Not="not",e.Start="start"})(tr||(tr={}));const wE=/^[^\\#]?(?:\\(?:[\da-f]{1,6}\s?|.)|[\w\-\u00b0-\uFFFF])+/,R6=/\\([\da-f]{1,6}\s?|(\s)|.)/gi,B6=new Map([[126,tr.Element],[94,tr.Start],[36,tr.End],[42,tr.Any],[33,tr.Not],[124,tr.Hyphen]]),P6=new Set(["has","not","matches","is","where","host","host-context"]);function Xl(e){switch(e.type){case at.Adjacent:case at.Child:case at.Descendant:case at.Parent:case at.Sibling:case at.ColumnCombinator:return!0;default:return!1}}const N6=new Set(["contains","icontains"]);function O6(e,t,n){const r=parseInt(t,16)-65536;return r!==r||n?t:r<0?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,r&1023|56320)}function zl(e){return e.replace(R6,O6)}function s0(e){return e===39||e===34}function AE(e){return e===32||e===9||e===10||e===12||e===13}function Eh(e){const t=[],n=Zv(t,`${e}`,0);if(n<e.length)throw new Error(`Unmatched selector: ${e.slice(n)}`);return t}function Zv(e,t,n){let r=[];function s(m){const h=t.slice(n+m).match(wE);if(!h)throw new Error(`Expected name, found ${t.slice(n)}`);const[b]=h;return n+=m+b.length,zl(b)}function i(m){for(n+=m;n<t.length&&AE(t.charCodeAt(n));)n++}function a(){n+=1;const m=n;let h=1;for(;h>0&&n<t.length;n++)t.charCodeAt(n)===40&&!o(n)?h++:t.charCodeAt(n)===41&&!o(n)&&h--;if(h)throw new Error("Parenthesis not matched");return zl(t.slice(m,n-1))}function o(m){let h=0;for(;t.charCodeAt(--m)===92;)h++;return(h&1)===1}function c(){if(r.length>0&&Xl(r[r.length-1]))throw new Error("Did not expect successive traversals.")}function l(m){if(r.length>0&&r[r.length-1].type===at.Descendant){r[r.length-1].type=m;return}c(),r.push({type:m})}function d(m,h){r.push({type:at.Attribute,name:m,action:h,value:s(1),namespace:null,ignoreCase:"quirks"})}function f(){if(r.length&&r[r.length-1].type===at.Descendant&&r.pop(),r.length===0)throw new Error("Empty sub-selector");e.push(r)}if(i(0),t.length===n)return n;e:for(;n<t.length;){const m=t.charCodeAt(n);switch(m){case 32:case 9:case 10:case 12:case 13:{(r.length===0||r[0].type!==at.Descendant)&&(c(),r.push({type:at.Descendant})),i(1);break}case 62:{l(at.Child),i(1);break}case 60:{l(at.Parent),i(1);break}case 126:{l(at.Sibling),i(1);break}case 43:{l(at.Adjacent),i(1);break}case 46:{d("class",tr.Element);break}case 35:{d("id",tr.Equals);break}case 91:{i(1);let h,b=null;t.charCodeAt(n)===124?h=s(1):t.startsWith("*|",n)?(b="*",h=s(2)):(h=s(0),t.charCodeAt(n)===124&&t.charCodeAt(n+1)!==61&&(b=h,h=s(1))),i(0);let g=tr.Exists;const y=B6.get(t.charCodeAt(n));if(y){if(g=y,t.charCodeAt(n+1)!==61)throw new Error("Expected `=`");i(2)}else t.charCodeAt(n)===61&&(g=tr.Equals,i(1));let p="",C=null;if(g!=="exists"){if(s0(t.charCodeAt(n))){const S=t.charCodeAt(n);let A=n+1;for(;A<t.length&&(t.charCodeAt(A)!==S||o(A));)A+=1;if(t.charCodeAt(A)!==S)throw new Error("Attribute value didn't end");p=zl(t.slice(n+1,A)),n=A+1}else{const S=n;for(;n<t.length&&(!AE(t.charCodeAt(n))&&t.charCodeAt(n)!==93||o(n));)n+=1;p=zl(t.slice(S,n))}i(0);const _=t.charCodeAt(n)|32;_===115?(C=!1,i(1)):_===105&&(C=!0,i(1))}if(t.charCodeAt(n)!==93)throw new Error("Attribute selector didn't terminate");n+=1;const w={type:at.Attribute,name:h,action:g,value:p,namespace:b,ignoreCase:C};r.push(w);break}case 58:{if(t.charCodeAt(n+1)===58){r.push({type:at.PseudoElement,name:s(2).toLowerCase(),data:t.charCodeAt(n)===40?a():null});continue}const h=s(1).toLowerCase();let b=null;if(t.charCodeAt(n)===40)if(P6.has(h)){if(s0(t.charCodeAt(n+1)))throw new Error(`Pseudo-selector ${h} cannot be quoted`);if(b=[],n=Zv(b,t,n+1),t.charCodeAt(n)!==41)throw new Error(`Missing closing parenthesis in :${h} (${t})`);n+=1}else{if(b=a(),N6.has(h)){const g=b.charCodeAt(0);g===b.charCodeAt(b.length-1)&&s0(g)&&(b=b.slice(1,-1))}b=zl(b)}r.push({type:at.Pseudo,name:h,data:b});break}case 44:{f(),r=[],i(1);break}default:{if(t.startsWith("/*",n)){const g=t.indexOf("*/",n+2);if(g<0)throw new Error("Comment was not terminated");n=g+2,r.length===0&&i(0);break}let h=null,b;if(m===42)n+=1,b="*";else if(m===124){if(b="",t.charCodeAt(n+1)===124){l(at.ColumnCombinator),i(2);break}}else if(wE.test(t.slice(n)))b=s(0);else break e;t.charCodeAt(n)===124&&t.charCodeAt(n+1)!==124&&(h=b,t.charCodeAt(n+1)===42?(b="*",n+=2):b=s(1)),r.push(b==="*"?{type:at.Universal,namespace:h}:{type:at.Tag,name:b,namespace:h})}}}return f(),n}var ld=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Jv(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var i0,kE;function D6(){return kE||(kE=1,i0={trueFunc:function(){return!0},falseFunc:function(){return!1}}),i0}var Bf=D6();const kt=Jv(Bf),e_=new Map([[at.Universal,50],[at.Tag,30],[at.Attribute,1],[at.Pseudo,0]]);function Hg(e){return!e_.has(e.type)}const L6=new Map([[tr.Exists,10],[tr.Equals,8],[tr.Not,7],[tr.Start,6],[tr.End,6],[tr.Any,5]]);function M6(e){const t=e.map(t_);for(let n=1;n<e.length;n++){const r=t[n];if(!(r<0))for(let s=n-1;s>=0&&r<t[s];s--){const i=e[s+1];e[s+1]=e[s],e[s]=i,t[s+1]=t[s],t[s]=r}}}function t_(e){var t,n;let r=(t=e_.get(e.type))!==null&&t!==void 0?t:-1;return e.type===at.Attribute?(r=(n=L6.get(e.action))!==null&&n!==void 0?n:4,e.action===tr.Equals&&e.name==="id"&&(r=9),e.ignoreCase&&(r>>=1)):e.type===at.Pseudo&&(e.data?e.name==="has"||e.name==="contains"?r=0:Array.isArray(e.data)?(r=Math.min(...e.data.map(s=>Math.min(...s.map(t_)))),r<0&&(r=0)):r=2:r=3),r}const F6=/[-[\]{}()*+?.,\\^$|#\s]/g;function IE(e){return e.replace(F6,"\\$&")}const z6=new Set(["accept","accept-charset","align","alink","axis","bgcolor","charset","checked","clear","codetype","color","compact","declare","defer","dir","direction","disabled","enctype","face","frame","hreflang","http-equiv","lang","language","link","media","method","multiple","nohref","noresize","noshade","nowrap","readonly","rel","rev","rules","scope","scrolling","selected","shape","target","text","type","valign","valuetype","vlink"]);function Ca(e,t){return typeof e.ignoreCase=="boolean"?e.ignoreCase:e.ignoreCase==="quirks"?!!t.quirksMode:!t.xmlMode&&z6.has(e.name)}const U6={equals(e,t,n){const{adapter:r}=n,{name:s}=t;let{value:i}=t;return Ca(t,n)?(i=i.toLowerCase(),a=>{const o=r.getAttributeValue(a,s);return o!=null&&o.length===i.length&&o.toLowerCase()===i&&e(a)}):a=>r.getAttributeValue(a,s)===i&&e(a)},hyphen(e,t,n){const{adapter:r}=n,{name:s}=t;let{value:i}=t;const a=i.length;return Ca(t,n)?(i=i.toLowerCase(),function(c){const l=r.getAttributeValue(c,s);return l!=null&&(l.length===a||l.charAt(a)==="-")&&l.substr(0,a).toLowerCase()===i&&e(c)}):function(c){const l=r.getAttributeValue(c,s);return l!=null&&(l.length===a||l.charAt(a)==="-")&&l.substr(0,a)===i&&e(c)}},element(e,t,n){const{adapter:r}=n,{name:s,value:i}=t;if(/\s/.test(i))return kt.falseFunc;const a=new RegExp(`(?:^|\\s)${IE(i)}(?:$|\\s)`,Ca(t,n)?"i":"");return function(c){const l=r.getAttributeValue(c,s);return l!=null&&l.length>=i.length&&a.test(l)&&e(c)}},exists(e,{name:t},{adapter:n}){return r=>n.hasAttrib(r,t)&&e(r)},start(e,t,n){const{adapter:r}=n,{name:s}=t;let{value:i}=t;const a=i.length;return a===0?kt.falseFunc:Ca(t,n)?(i=i.toLowerCase(),o=>{const c=r.getAttributeValue(o,s);return c!=null&&c.length>=a&&c.substr(0,a).toLowerCase()===i&&e(o)}):o=>{var c;return!!(!((c=r.getAttributeValue(o,s))===null||c===void 0)&&c.startsWith(i))&&e(o)}},end(e,t,n){const{adapter:r}=n,{name:s}=t;let{value:i}=t;const a=-i.length;return a===0?kt.falseFunc:Ca(t,n)?(i=i.toLowerCase(),o=>{var c;return((c=r.getAttributeValue(o,s))===null||c===void 0?void 0:c.substr(a).toLowerCase())===i&&e(o)}):o=>{var c;return!!(!((c=r.getAttributeValue(o,s))===null||c===void 0)&&c.endsWith(i))&&e(o)}},any(e,t,n){const{adapter:r}=n,{name:s,value:i}=t;if(i==="")return kt.falseFunc;if(Ca(t,n)){const a=new RegExp(IE(i),"i");return function(c){const l=r.getAttributeValue(c,s);return l!=null&&l.length>=i.length&&a.test(l)&&e(c)}}return a=>{var o;return!!(!((o=r.getAttributeValue(a,s))===null||o===void 0)&&o.includes(i))&&e(a)}},not(e,t,n){const{adapter:r}=n,{name:s}=t;let{value:i}=t;return i===""?a=>!!r.getAttributeValue(a,s)&&e(a):Ca(t,n)?(i=i.toLowerCase(),a=>{const o=r.getAttributeValue(a,s);return(o==null||o.length!==i.length||o.toLowerCase()!==i)&&e(a)}):a=>r.getAttributeValue(a,s)!==i&&e(a)}},$6=new Set([9,10,12,13,32]),RE=48,H6=57;function q6(e){if(e=e.trim().toLowerCase(),e==="even")return[2,0];if(e==="odd")return[2,1];let t=0,n=0,r=i(),s=a();if(t<e.length&&e.charAt(t)==="n"&&(t++,n=r*(s??1),o(),t<e.length?(r=i(),o(),s=a()):r=s=0),s===null||t<e.length)throw new Error(`n-th rule couldn't be parsed ('${e}')`);return[n,r*s];function i(){return e.charAt(t)==="-"?(t++,-1):(e.charAt(t)==="+"&&t++,1)}function a(){const c=t;let l=0;for(;t<e.length&&e.charCodeAt(t)>=RE&&e.charCodeAt(t)<=H6;)l=l*10+(e.charCodeAt(t)-RE),t++;return t===c?null:l}function o(){for(;t<e.length&&$6.has(e.charCodeAt(t));)t++}}function j6(e){const t=e[0],n=e[1]-1;if(n<0&&t<=0)return kt.falseFunc;if(t===-1)return i=>i<=n;if(t===0)return i=>i===n;if(t===1)return n<0?kt.trueFunc:i=>i>=n;const r=Math.abs(t),s=(n%r+r)%r;return t>1?i=>i>=n&&i%r===s:i=>i<=n&&i%r===s}function ud(e){return j6(q6(e))}function dd(e,t){return n=>{const r=t.getParent(n);return r!=null&&t.isTag(r)&&e(n)}}const Xm={contains(e,t,{adapter:n}){return function(s){return e(s)&&n.getText(s).includes(t)}},icontains(e,t,{adapter:n}){const r=t.toLowerCase();return function(i){return e(i)&&n.getText(i).toLowerCase().includes(r)}},"nth-child"(e,t,{adapter:n,equals:r}){const s=ud(t);return s===kt.falseFunc?kt.falseFunc:s===kt.trueFunc?dd(e,n):function(a){const o=n.getSiblings(a);let c=0;for(let l=0;l<o.length&&!r(a,o[l]);l++)n.isTag(o[l])&&c++;return s(c)&&e(a)}},"nth-last-child"(e,t,{adapter:n,equals:r}){const s=ud(t);return s===kt.falseFunc?kt.falseFunc:s===kt.trueFunc?dd(e,n):function(a){const o=n.getSiblings(a);let c=0;for(let l=o.length-1;l>=0&&!r(a,o[l]);l--)n.isTag(o[l])&&c++;return s(c)&&e(a)}},"nth-of-type"(e,t,{adapter:n,equals:r}){const s=ud(t);return s===kt.falseFunc?kt.falseFunc:s===kt.trueFunc?dd(e,n):function(a){const o=n.getSiblings(a);let c=0;for(let l=0;l<o.length;l++){const d=o[l];if(r(a,d))break;n.isTag(d)&&n.getName(d)===n.getName(a)&&c++}return s(c)&&e(a)}},"nth-last-of-type"(e,t,{adapter:n,equals:r}){const s=ud(t);return s===kt.falseFunc?kt.falseFunc:s===kt.trueFunc?dd(e,n):function(a){const o=n.getSiblings(a);let c=0;for(let l=o.length-1;l>=0;l--){const d=o[l];if(r(a,d))break;n.isTag(d)&&n.getName(d)===n.getName(a)&&c++}return s(c)&&e(a)}},root(e,t,{adapter:n}){return r=>{const s=n.getParent(r);return(s==null||!n.isTag(s))&&e(r)}},scope(e,t,n,r){const{equals:s}=n;return!r||r.length===0?Xm.root(e,t,n):r.length===1?i=>s(r[0],i)&&e(i):i=>r.includes(i)&&e(i)},hover:a0("isHovered"),visited:a0("isVisited"),active:a0("isActive")};function a0(e){return function(n,r,{adapter:s}){const i=s[e];return typeof i!="function"?kt.falseFunc:function(o){return i(o)&&n(o)}}}const BE={empty(e,{adapter:t}){return!t.getChildren(e).some(n=>t.isTag(n)||t.getText(n)!=="")},"first-child"(e,{adapter:t,equals:n}){if(t.prevElementSibling)return t.prevElementSibling(e)==null;const r=t.getSiblings(e).find(s=>t.isTag(s));return r!=null&&n(e,r)},"last-child"(e,{adapter:t,equals:n}){const r=t.getSiblings(e);for(let s=r.length-1;s>=0;s--){if(n(e,r[s]))return!0;if(t.isTag(r[s]))break}return!1},"first-of-type"(e,{adapter:t,equals:n}){const r=t.getSiblings(e),s=t.getName(e);for(let i=0;i<r.length;i++){const a=r[i];if(n(e,a))return!0;if(t.isTag(a)&&t.getName(a)===s)break}return!1},"last-of-type"(e,{adapter:t,equals:n}){const r=t.getSiblings(e),s=t.getName(e);for(let i=r.length-1;i>=0;i--){const a=r[i];if(n(e,a))return!0;if(t.isTag(a)&&t.getName(a)===s)break}return!1},"only-of-type"(e,{adapter:t,equals:n}){const r=t.getName(e);return t.getSiblings(e).every(s=>n(e,s)||!t.isTag(s)||t.getName(s)!==r)},"only-child"(e,{adapter:t,equals:n}){return t.getSiblings(e).every(r=>n(e,r)||!t.isTag(r))}};function PE(e,t,n,r){if(n===null){if(e.length>r)throw new Error(`Pseudo-class :${t} requires an argument`)}else if(e.length===r)throw new Error(`Pseudo-class :${t} doesn't have any arguments`)}const W6={"any-link":":is(a, area, link)[href]",link:":any-link:not(:visited)",disabled:`:is(
1535
- :is(button, input, select, textarea, optgroup, option)[disabled],
1536
- optgroup[disabled] > option,
1537
- fieldset[disabled]:not(fieldset[disabled] legend:first-of-type *)
1538
- )`,enabled:":not(:disabled)",checked:":is(:is(input[type=radio], input[type=checkbox])[checked], option:selected)",required:":is(input, select, textarea)[required]",optional:":is(input, select, textarea):not([required])",selected:"option:is([selected], select:not([multiple]):not(:has(> option[selected])) > :first-of-type)",checkbox:"[type=checkbox]",file:"[type=file]",password:"[type=password]",radio:"[type=radio]",reset:"[type=reset]",image:"[type=image]",submit:"[type=submit]",parent:":not(:empty)",header:":is(h1, h2, h3, h4, h5, h6)",button:":is(button, input[type=button])",input:":is(input, textarea, select, button)",text:"input:is(:not([type!='']), [type=text])"},n_={};function G6(e,t){return e===kt.falseFunc?kt.falseFunc:n=>t.isTag(n)&&e(n)}function r_(e,t){const n=t.getSiblings(e);if(n.length<=1)return[];const r=n.indexOf(e);return r<0||r===n.length-1?[]:n.slice(r+1).filter(t.isTag)}function Qm(e){return{xmlMode:!!e.xmlMode,lowerCaseAttributeNames:!!e.lowerCaseAttributeNames,lowerCaseTags:!!e.lowerCaseTags,quirksMode:!!e.quirksMode,cacheResults:!!e.cacheResults,pseudos:e.pseudos,adapter:e.adapter,equals:e.equals}}const o0=(e,t,n,r,s)=>{const i=s(t,Qm(n),r);return i===kt.trueFunc?e:i===kt.falseFunc?kt.falseFunc:a=>i(a)&&e(a)},c0={is:o0,matches:o0,where:o0,not(e,t,n,r,s){const i=s(t,Qm(n),r);return i===kt.falseFunc?e:i===kt.trueFunc?kt.falseFunc:a=>!i(a)&&e(a)},has(e,t,n,r,s){const{adapter:i}=n,a=Qm(n);a.relativeSelector=!0;const o=t.some(d=>d.some(Hg))?[n_]:void 0,c=s(t,a,o);if(c===kt.falseFunc)return kt.falseFunc;const l=G6(c,i);if(o&&c!==kt.trueFunc){const{shouldTestNextSiblings:d=!1}=c;return f=>{if(!e(f))return!1;o[0]=f;const m=i.getChildren(f),h=d?[...m,...r_(f,i)]:m;return i.existsOne(l,h)}}return d=>e(d)&&i.existsOne(l,i.getChildren(d))}};function V6(e,t,n,r,s){var i;const{name:a,data:o}=t;if(Array.isArray(o)){if(!(a in c0))throw new Error(`Unknown pseudo-class :${a}(${o})`);return c0[a](e,o,n,r,s)}const c=(i=n.pseudos)===null||i===void 0?void 0:i[a],l=typeof c=="string"?c:W6[a];if(typeof l=="string"){if(o!=null)throw new Error(`Pseudo ${a} doesn't have any arguments`);const d=Eh(l);return c0.is(e,d,n,r,s)}if(typeof c=="function")return PE(c,a,o,1),d=>c(d,o)&&e(d);if(a in Xm)return Xm[a](e,o,n,r);if(a in BE){const d=BE[a];return PE(d,a,o,2),f=>d(f,n,o)&&e(f)}throw new Error(`Unknown pseudo-class :${a}`)}function l0(e,t){const n=t.getParent(e);return n&&t.isTag(n)?n:null}function K6(e,t,n,r,s){const{adapter:i,equals:a}=n;switch(t.type){case at.PseudoElement:throw new Error("Pseudo-elements are not supported by css-select");case at.ColumnCombinator:throw new Error("Column combinators are not yet supported by css-select");case at.Attribute:{if(t.namespace!=null)throw new Error("Namespaced attributes are not yet supported by css-select");return(!n.xmlMode||n.lowerCaseAttributeNames)&&(t.name=t.name.toLowerCase()),U6[t.action](e,t,n)}case at.Pseudo:return V6(e,t,n,r,s);case at.Tag:{if(t.namespace!=null)throw new Error("Namespaced tag names are not yet supported by css-select");let{name:o}=t;return(!n.xmlMode||n.lowerCaseTags)&&(o=o.toLowerCase()),function(l){return i.getName(l)===o&&e(l)}}case at.Descendant:{if(n.cacheResults===!1||typeof WeakSet>"u")return function(l){let d=l;for(;d=l0(d,i);)if(e(d))return!0;return!1};const o=new WeakSet;return function(l){let d=l;for(;d=l0(d,i);)if(!o.has(d)){if(i.isTag(d)&&e(d))return!0;o.add(d)}return!1}}case"_flexibleDescendant":return function(c){let l=c;do if(e(l))return!0;while(l=l0(l,i));return!1};case at.Parent:return function(c){return i.getChildren(c).some(l=>i.isTag(l)&&e(l))};case at.Child:return function(c){const l=i.getParent(c);return l!=null&&i.isTag(l)&&e(l)};case at.Sibling:return function(c){const l=i.getSiblings(c);for(let d=0;d<l.length;d++){const f=l[d];if(a(c,f))break;if(i.isTag(f)&&e(f))return!0}return!1};case at.Adjacent:return i.prevElementSibling?function(c){const l=i.prevElementSibling(c);return l!=null&&e(l)}:function(c){const l=i.getSiblings(c);let d;for(let f=0;f<l.length;f++){const m=l[f];if(a(c,m))break;i.isTag(m)&&(d=m)}return!!d&&e(d)};case at.Universal:{if(t.namespace!=null&&t.namespace!=="*")throw new Error("Namespaced universal selectors are not yet supported by css-select");return e}}}function s_(e){return e.type===at.Pseudo&&(e.name==="scope"||Array.isArray(e.data)&&e.data.some(t=>t.some(s_)))}const Y6={type:at.Descendant},X6={type:"_flexibleDescendant"},Q6={type:at.Pseudo,name:"scope",data:null};function Z6(e,{adapter:t},n){const r=!!n?.every(s=>{const i=t.isTag(s)&&t.getParent(s);return s===n_||i&&t.isTag(i)});for(const s of e){if(!(s.length>0&&Hg(s[0])&&s[0].type!==at.Descendant))if(r&&!s.some(s_))s.unshift(Y6);else continue;s.unshift(Q6)}}function i_(e,t,n){var r;e.forEach(M6),n=(r=t.context)!==null&&r!==void 0?r:n;const s=Array.isArray(n),i=n&&(Array.isArray(n)?n:[n]);if(t.relativeSelector!==!1)Z6(e,t,i);else if(e.some(c=>c.length>0&&Hg(c[0])))throw new Error("Relative selectors are not allowed when the `relativeSelector` option is disabled");let a=!1;const o=e.map(c=>{if(c.length>=2){const[l,d]=c;l.type!==at.Pseudo||l.name!=="scope"||(s&&d.type===at.Descendant?c[1]=X6:(d.type===at.Adjacent||d.type===at.Sibling)&&(a=!0))}return J6(c,t,i)}).reduce(eP,kt.falseFunc);return o.shouldTestNextSiblings=a,o}function J6(e,t,n){var r;return e.reduce((s,i)=>s===kt.falseFunc?kt.falseFunc:K6(s,i,t,n,i_),(r=t.rootFunc)!==null&&r!==void 0?r:kt.trueFunc)}function eP(e,t){return t===kt.falseFunc||e===kt.trueFunc?e:e===kt.falseFunc||t===kt.trueFunc?t:function(r){return e(r)||t(r)}}const a_=(e,t)=>e===t,tP={adapter:yh,equals:a_};function nP(e){var t,n,r,s;const i=e??tP;return(t=i.adapter)!==null&&t!==void 0||(i.adapter=yh),(n=i.equals)!==null&&n!==void 0||(i.equals=(s=(r=i.adapter)===null||r===void 0?void 0:r.equals)!==null&&s!==void 0?s:a_),i}function rP(e){return function(n,r,s){const i=nP(r);return e(n,i,s)}}const qg=rP(i_);function o_(e,t,n=!1){return n&&(e=sP(e,t)),Array.isArray(e)?t.removeSubsets(e):t.getChildren(e)}function sP(e,t){const n=Array.isArray(e)?e.slice(0):[e],r=n.length;for(let s=0;s<r;s++){const i=r_(n[s],t);n.push(...i)}return n}const iP=new Set(["first","last","eq","gt","nth","lt","even","odd"]);function Pf(e){return e.type!=="pseudo"?!1:iP.has(e.name)?!0:e.name==="not"&&Array.isArray(e.data)?e.data.some(t=>t.some(Pf)):!1}function aP(e,t,n){const r=t!=null?parseInt(t,10):NaN;switch(e){case"first":return 1;case"nth":case"eq":return isFinite(r)?r>=0?r+1:1/0:0;case"lt":return isFinite(r)?r>=0?Math.min(r,n):1/0:0;case"gt":return isFinite(r)?1/0:0;case"odd":return 2*n;case"even":return 2*n-1;case"last":case"not":return 1/0}}function oP(e){for(;e.parent;)e=e.parent;return e}function jg(e){const t=[],n=[];for(const r of e)r.some(Pf)?t.push(r):n.push(r);return[n,t]}const cP={type:at.Universal,namespace:null},lP={type:at.Pseudo,name:"scope",data:null};function c_(e,t,n={}){return l_([e],t,n)}function l_(e,t,n={}){if(typeof t=="function")return e.some(t);const[r,s]=jg(Eh(t));return r.length>0&&e.some(qg(r,n))||s.some(i=>f_(i,e,n).length>0)}function uP(e,t,n,r){const s=typeof n=="string"?parseInt(n,10):NaN;switch(e){case"first":case"lt":return t;case"last":return t.length>0?[t[t.length-1]]:t;case"nth":case"eq":return isFinite(s)&&Math.abs(s)<t.length?[s<0?t[t.length+s]:t[s]]:[];case"gt":return isFinite(s)?t.slice(s+1):[];case"even":return t.filter((i,a)=>a%2===0);case"odd":return t.filter((i,a)=>a%2===1);case"not":{const i=new Set(d_(n,t,r));return t.filter(a=>!i.has(a))}}}function u_(e,t,n={}){return d_(Eh(e),t,n)}function d_(e,t,n){if(t.length===0)return[];const[r,s]=jg(e);let i;if(r.length){const a=Jm(t,r,n);if(s.length===0)return a;a.length&&(i=new Set(a))}for(let a=0;a<s.length&&i?.size!==t.length;a++){const o=s[a];if((i?t.filter(d=>dt(d)&&!i.has(d)):t).length===0)break;const l=f_(o,t,n);if(l.length)if(i)l.forEach(d=>i.add(d));else{if(a===s.length-1)return l;i=new Set(l)}}return typeof i<"u"?i.size===t.length?t:t.filter(a=>i.has(a)):[]}function f_(e,t,n){var r;if(e.some(Xl)){const s=(r=n.root)!==null&&r!==void 0?r:oP(t[0]),i={...n,context:t,relativeSelector:!1};return e.push(lP),Nf(s,e,i,!0,t.length)}return Nf(t,e,n,!1,t.length)}function dP(e,t,n={},r=1/0){if(typeof e=="function")return h_(t,e);const[s,i]=jg(Eh(e)),a=i.map(o=>Nf(t,o,n,!0,r));return s.length&&a.push(Zm(t,s,n,r)),a.length===0?[]:a.length===1?a[0]:il(a.reduce((o,c)=>[...o,...c]))}function Nf(e,t,n,r,s){const i=t.findIndex(Pf),a=t.slice(0,i),o=t[i],c=t.length-1===i?s:1/0,l=aP(o.name,o.data,c);if(l===0)return[];const f=(a.length===0&&!Array.isArray(e)?ph(e).filter(dt):a.length===0?(Array.isArray(e)?e:[e]).filter(dt):r||a.some(Xl)?Zm(e,[a],n,l):Jm(e,[a],n)).slice(0,l);let m=uP(o.name,f,o.data,n);if(m.length===0||t.length===i+1)return m;const h=t.slice(i+1),b=h.some(Xl);if(b){if(Xl(h[0])){const{type:g}=h[0];(g===at.Sibling||g===at.Adjacent)&&(m=o_(m,yh,!0)),h.unshift(cP)}n={...n,relativeSelector:!1,rootFunc:g=>m.includes(g)}}else n.rootFunc&&n.rootFunc!==Bf.trueFunc&&(n={...n,rootFunc:Bf.trueFunc});return h.some(Pf)?Nf(m,h,n,!1,s):b?Zm(m,[h],n,s):Jm(m,[h],n)}function Zm(e,t,n,r){const s=qg(t,n,e);return h_(e,s,r)}function h_(e,t,n=1/0){const r=o_(e,yh,t.shouldTestNextSiblings);return Fg(s=>dt(s)&&t(s),r,!0,n)}function Jm(e,t,n){const r=(Array.isArray(e)?e:[e]).filter(dt);if(r.length===0)return r;const s=qg(t,n);return s===Bf.trueFunc?r:r.filter(s)}const fP=/^\s*[+~]/;function hP(e){if(!e)return this._make([]);if(typeof e!="string"){const t=Si(e)?e.toArray():[e],n=this.toArray();return this._make(t.filter(r=>n.some(s=>jv(s,r))))}return this._findBySelector(e,Number.POSITIVE_INFINITY)}function mP(e,t){var n;const r=this.toArray(),s=fP.test(e)?r:this.children().toArray(),i={context:r,root:(n=this._root)===null||n===void 0?void 0:n[0],xmlMode:this.options.xmlMode,lowerCaseTags:this.options.lowerCaseTags,lowerCaseAttributeNames:this.options.lowerCaseAttributeNames,pseudos:this.options.pseudos,quirksMode:this.options.quirksMode};return this._make(dP(e,s,i,t))}function Wg(e){return function(t,...n){return function(r){var s;let i=e(t,this);return r&&(i=Kg(i,r,this.options.xmlMode,(s=this._root)===null||s===void 0?void 0:s[0])),this._make(this.length>1&&i.length>1?n.reduce((a,o)=>o(a),i):i)}}}const Ou=Wg((e,t)=>{let n=[];for(let r=0;r<t.length;r++){const s=e(t[r]);s.length>0&&(n=n.concat(s))}return n}),Gg=Wg((e,t)=>{const n=[];for(let r=0;r<t.length;r++){const s=e(t[r]);s!==null&&n.push(s)}return n});function Vg(e,...t){let n=null;const r=Wg((s,i)=>{const a=[];return Pn(i,o=>{for(let c;(c=s(o))&&!n?.(c,a.length);o=c)a.push(c)}),a})(e,...t);return function(s,i){n=typeof s=="string"?o=>c_(o,s,this.options):s?Du(s):null;const a=r.call(this,i);return n=null,a}}function al(e){return e.length>1?Array.from(new Set(e)):e}const bP=Gg(({parent:e})=>e&&!ha(e)?e:null,al),gP=Ou(e=>{const t=[];for(;e.parent&&!ha(e.parent);)t.push(e.parent),e=e.parent;return t},il,e=>e.reverse()),pP=Vg(({parent:e})=>e&&!ha(e)?e:null,il,e=>e.reverse());function yP(e){var t;const n=[];if(!e)return this._make(n);const r={xmlMode:this.options.xmlMode,root:(t=this._root)===null||t===void 0?void 0:t[0]},s=typeof e=="string"?i=>c_(i,e,r):Du(e);return Pn(this,i=>{for(i&&!ha(i)&&!dt(i)&&(i=i.parent);i&&dt(i);){if(s(i,0)){n.includes(i)||n.push(i);break}i=i.parent}}),this._make(n)}const EP=Gg(e=>Lg(e)),CP=Ou(e=>{const t=[];for(;e.next;)e=e.next,dt(e)&&t.push(e);return t},al),xP=Vg(e=>Lg(e),al),vP=Gg(e=>Mg(e)),_P=Ou(e=>{const t=[];for(;e.prev;)e=e.prev,dt(e)&&t.push(e);return t},al),SP=Vg(e=>Mg(e),al),TP=Ou(e=>Fv(e).filter(t=>dt(t)&&t!==e),il),wP=Ou(e=>ph(e).filter(dt),al);function AP(){const e=this.toArray().reduce((t,n)=>Wn(n)?t.concat(n.children):t,[]);return this._make(e)}function kP(e){let t=0;const n=this.length;for(;t<n&&e.call(this[t],t,this[t])!==!1;)++t;return this}function IP(e){let t=[];for(let n=0;n<this.length;n++){const r=this[n],s=e.call(r,n,r);s!=null&&(t=t.concat(s))}return this._make(t)}function Du(e){return typeof e=="function"?(t,n)=>e.call(t,n,t):Si(e)?t=>Array.prototype.includes.call(e,t):function(t){return e===t}}function RP(e){var t;return this._make(Kg(this.toArray(),e,this.options.xmlMode,(t=this._root)===null||t===void 0?void 0:t[0]))}function Kg(e,t,n,r){return typeof t=="string"?u_(t,e,{xmlMode:n,root:r}):e.filter(Du(t))}function BP(e){const t=this.toArray();return typeof e=="string"?l_(t.filter(dt),e,this.options):e?t.some(Du(e)):!1}function PP(e){let t=this.toArray();if(typeof e=="string"){const n=new Set(u_(e,t,this.options));t=t.filter(r=>!n.has(r))}else{const n=Du(e);t=t.filter((r,s)=>!n(r,s))}return this._make(t)}function NP(e){return this.filter(typeof e=="string"?`:has(${e})`:(t,n)=>this._make(n).find(e).length>0)}function OP(){return this.length>1?this._make(this[0]):this}function DP(){return this.length>0?this._make(this[this.length-1]):this}function LP(e){var t;return e=+e,e===0&&this.length<=1?this:(e<0&&(e=this.length+e),this._make((t=this[e])!==null&&t!==void 0?t:[]))}function MP(e){return e==null?this.toArray():this[e<0?this.length+e:e]}function FP(){return Array.prototype.slice.call(this)}function zP(e){let t,n;return e==null?(t=this.parent().children(),n=this[0]):typeof e=="string"?(t=this._make(e),n=this[0]):(t=this,n=Si(e)?e[0]:e),Array.prototype.indexOf.call(t,n)}function UP(e,t){return this._make(Array.prototype.slice.call(this,e,t))}function $P(){var e;return(e=this.prevObject)!==null&&e!==void 0?e:this._make([])}function HP(e,t){const n=this._make(e,t),r=il([...this.get(),...n.get()]);return this._make(r)}function qP(e){return this.prevObject?this.add(e?this.prevObject.filter(e):this.prevObject):this}const jP=Object.freeze(Object.defineProperty({__proto__:null,_findBySelector:mP,add:HP,addBack:qP,children:wP,closest:yP,contents:AP,each:kP,end:$P,eq:LP,filter:RP,filterArray:Kg,find:hP,first:OP,get:MP,has:NP,index:zP,is:BP,last:DP,map:IP,next:EP,nextAll:CP,nextUntil:xP,not:PP,parent:bP,parents:gP,parentsUntil:pP,prev:vP,prevAll:_P,prevUntil:SP,siblings:TP,slice:UP,toArray:FP},Symbol.toStringTag,{value:"Module"}));function WP(e){return function(n,r,s,i){if(typeof Buffer<"u"&&Buffer.isBuffer(n)&&(n=n.toString()),typeof n=="string")return e(n,r,s,i);const a=n;if(!Array.isArray(a)&&ha(a))return a;const o=new po([]);return yo(a,o),o}}function yo(e,t){const n=Array.isArray(e)?e:[e];t?t.children=n:t=null;for(let r=0;r<n.length;r++){const s=n[r];s.parent&&s.parent.children!==n&&wo(s),t?(s.prev=n[r-1]||null,s.next=n[r+1]||null):s.prev=s.next=null,s.parent=t}return t}function GP(e,t){if(e==null)return[];if(typeof e=="string")return this._parse(e,this.options,!1,null).children.slice(0);if("length"in e){if(e.length===1)return this._makeDomArray(e[0],t);const n=[];for(let r=0;r<e.length;r++){const s=e[r];if(typeof s=="object"){if(s==null)continue;if(!("length"in s)){n.push(t?pu(s,!0):s);continue}}n.push(...this._makeDomArray(s,t))}return n}return[t?pu(e,!0):e]}function m_(e){return function(...t){const n=this.length-1;return Pn(this,(r,s)=>{if(!Wn(r))return;const i=typeof t[0]=="function"?t[0].call(r,s,this._render(r.children)):t,a=this._makeDomArray(i,s<n);e(a,r.children,r)})}}function ma(e,t,n,r,s){var i,a;const o=[t,n,...r],c=t===0?null:e[t-1],l=t+n>=e.length?null:e[t+n];for(let d=0;d<r.length;++d){const f=r[d],m=f.parent;if(m){const b=m.children.indexOf(f);b!==-1&&(m.children.splice(b,1),s===m&&t>b&&o[0]--)}f.parent=s,f.prev&&(f.prev.next=(i=f.next)!==null&&i!==void 0?i:null),f.next&&(f.next.prev=(a=f.prev)!==null&&a!==void 0?a:null),f.prev=d===0?c:r[d-1],f.next=d===r.length-1?l:r[d+1]}return c&&(c.next=r[0]),l&&(l.prev=r[r.length-1]),e.splice(...o)}function VP(e){return(Si(e)?e:this._make(e)).append(this),this}function KP(e){return(Si(e)?e:this._make(e)).prepend(this),this}const YP=m_((e,t,n)=>{ma(t,t.length,0,e,n)}),XP=m_((e,t,n)=>{ma(t,0,0,e,n)});function b_(e){return function(t){const n=this.length-1,r=this.parents().last();for(let s=0;s<this.length;s++){const i=this[s],a=typeof t=="function"?t.call(i,s,i):typeof t=="string"&&!Vm(t)?r.find(t).clone():t,[o]=this._makeDomArray(a,s<n);if(!o||!Wn(o))continue;let c=o,l=0;for(;l<c.children.length;){const d=c.children[l];dt(d)?(c=d,l=0):l++}e(i,c,[o])}return this}}const QP=b_((e,t,n)=>{const{parent:r}=e;if(!r)return;const s=r.children,i=s.indexOf(e);yo([e],t),ma(s,i,0,n,r)}),ZP=b_((e,t,n)=>{Wn(e)&&(yo(e.children,t),yo(n,e))});function JP(e){return this.parent(e).not("body").each((t,n)=>{this._make(n).replaceWith(n.children)}),this}function eN(e){const t=this[0];if(t){const n=this._make(typeof e=="function"?e.call(t,0,t):e).insertBefore(t);let r;for(let i=0;i<n.length;i++)n[i].type===jm&&(r=n[i]);let s=0;for(;r&&s<r.children.length;){const i=r.children[s];i.type===jm?(r=i,s=0):s++}r&&this._make(r).append(this)}return this}function tN(...e){const t=this.length-1;return Pn(this,(n,r)=>{if(!Wn(n)||!n.parent)return;const s=n.parent.children,i=s.indexOf(n);if(i===-1)return;const a=typeof e[0]=="function"?e[0].call(n,r,this._render(n.children)):e,o=this._makeDomArray(a,r<t);ma(s,i+1,0,o,n.parent)})}function nN(e){typeof e=="string"&&(e=this._make(e)),this.remove();const t=[];for(const n of this._makeDomArray(e)){const r=this.clone().toArray(),{parent:s}=n;if(!s)continue;const i=s.children,a=i.indexOf(n);a!==-1&&(ma(i,a+1,0,r,s),t.push(...r))}return this._make(t)}function rN(...e){const t=this.length-1;return Pn(this,(n,r)=>{if(!Wn(n)||!n.parent)return;const s=n.parent.children,i=s.indexOf(n);if(i===-1)return;const a=typeof e[0]=="function"?e[0].call(n,r,this._render(n.children)):e,o=this._makeDomArray(a,r<t);ma(s,i,0,o,n.parent)})}function sN(e){const t=this._make(e);this.remove();const n=[];return Pn(t,r=>{const s=this.clone().toArray(),{parent:i}=r;if(!i)return;const a=i.children,o=a.indexOf(r);o!==-1&&(ma(a,o,0,s,i),n.push(...s))}),this._make(n)}function iN(e){const t=e?this.filter(e):this;return Pn(t,n=>{wo(n),n.prev=n.next=n.parent=null}),this}function aN(e){return Pn(this,(t,n)=>{const{parent:r}=t;if(!r)return;const s=r.children,i=typeof e=="function"?e.call(t,n,t):e,a=this._makeDomArray(i);yo(a,null);const o=s.indexOf(t);ma(s,o,1,a,r),a.includes(t)||(t.parent=t.prev=t.next=null)})}function oN(){return Pn(this,e=>{if(Wn(e)){for(const t of e.children)t.next=t.prev=t.parent=null;e.children.length=0}})}function cN(e){if(e===void 0){const t=this[0];return!t||!Wn(t)?null:this._render(t.children)}return Pn(this,t=>{if(!Wn(t))return;for(const r of t.children)r.next=r.prev=r.parent=null;const n=Si(e)?e.toArray():this._parse(`${e}`,this.options,!1,t).children;yo(n,t)})}function lN(){return this._render(this)}function uN(e){return e===void 0?yu(this):typeof e=="function"?Pn(this,(t,n)=>this._make(t).text(e.call(t,n,yu([t])))):Pn(this,t=>{if(!Wn(t))return;for(const r of t.children)r.next=r.prev=r.parent=null;const n=new gu(`${e}`);yo(n,t)})}function dN(){const e=Array.prototype.map.call(this.get(),n=>pu(n,!0)),t=new po(e);for(const n of e)n.parent=t;return this._make(e)}const fN=Object.freeze(Object.defineProperty({__proto__:null,_makeDomArray:GP,after:tN,append:YP,appendTo:VP,before:rN,clone:dN,empty:oN,html:cN,insertAfter:nN,insertBefore:sN,prepend:XP,prependTo:KP,remove:iN,replaceWith:aN,text:uN,toString:lN,unwrap:JP,wrap:QP,wrapAll:eN,wrapInner:ZP},Symbol.toStringTag,{value:"Module"}));function hN(e,t){if(e!=null&&t!=null||typeof e=="object"&&!Array.isArray(e))return Pn(this,(n,r)=>{dt(n)&&g_(n,e,t,r)});if(this.length!==0)return p_(this[0],e)}function g_(e,t,n,r){if(typeof t=="string"){const s=p_(e),i=typeof n=="function"?n.call(e,r,s[t]):n;i===""?delete s[t]:i!=null&&(s[t]=i),e.attribs.style=mN(s)}else if(typeof t=="object"){const s=Object.keys(t);for(let i=0;i<s.length;i++){const a=s[i];g_(e,a,t[a],i)}}}function p_(e,t){if(!e||!dt(e))return;const n=bN(e.attribs.style);if(typeof t=="string")return n[t];if(Array.isArray(t)){const r={};for(const s of t)n[s]!=null&&(r[s]=n[s]);return r}return n}function mN(e){return Object.keys(e).reduce((t,n)=>`${t}${t?" ":""}${n}: ${e[n]};`,"")}function bN(e){if(e=(e||"").trim(),!e)return{};const t={};let n;for(const r of e.split(";")){const s=r.indexOf(":");if(s<1||s===r.length-1){const i=r.trimEnd();i.length>0&&n!==void 0&&(t[n]+=`;${i}`)}else n=r.slice(0,s).trim(),t[n]=r.slice(s+1).trim()}return t}const gN=Object.freeze(Object.defineProperty({__proto__:null,css:hN},Symbol.toStringTag,{value:"Module"})),NE="input,select,textarea,keygen",pN=/%20/g,OE=/\r?\n/g;function yN(){return this.serializeArray().map(n=>`${encodeURIComponent(n.name)}=${encodeURIComponent(n.value)}`).join("&").replace(pN,"+")}function EN(){return this.map((e,t)=>{const n=this._make(t);return dt(t)&&t.name==="form"?n.find(NE).toArray():n.filter(NE).toArray()}).filter('[name!=""]:enabled:not(:submit, :button, :image, :reset, :file):matches([checked], :not(:checkbox, :radio))').map((e,t)=>{var n;const r=this._make(t),s=r.attr("name"),i=(n=r.val())!==null&&n!==void 0?n:"";return Array.isArray(i)?i.map(a=>({name:s,value:a.replace(OE,`\r
1539
- `)})):{name:s,value:i.replace(OE,`\r
1540
- `)}}).toArray()}const CN=Object.freeze(Object.defineProperty({__proto__:null,serialize:yN,serializeArray:EN},Symbol.toStringTag,{value:"Module"}));function xN(e){var t;return typeof e=="string"?{selector:e,value:"textContent"}:{selector:e.selector,value:(t=e.value)!==null&&t!==void 0?t:"textContent"}}function vN(e){const t={};for(const n in e){const r=e[n],s=Array.isArray(r),{selector:i,value:a}=xN(s?r[0]:r),o=typeof a=="function"?a:typeof a=="string"?c=>this._make(c).prop(a):c=>this._make(c).extract(a);if(s)t[n]=this._findBySelector(i,Number.POSITIVE_INFINITY).map((c,l)=>o(l,n,t)).get();else{const c=this._findBySelector(i,1);t[n]=c.length>0?o(c[0],n,t):void 0}}return t}const _N=Object.freeze(Object.defineProperty({__proto__:null,extract:vN},Symbol.toStringTag,{value:"Module"}));class Lu{constructor(t,n,r){if(this.length=0,this.options=r,this._root=n,t){for(let s=0;s<t.length;s++)this[s]=t[s];this.length=t.length}}}Lu.prototype.cheerio="[cheerio object]";Lu.prototype.splice=Array.prototype.splice;Lu.prototype[Symbol.iterator]=Array.prototype[Symbol.iterator];Object.assign(Lu.prototype,I6,jP,fN,gN,CN,_N);function SN(e,t){return function n(r,s,i=!0){if(r==null)throw new Error("cheerio.load() expects a string");const a=Gm(s),o=e(r,a,i,null);class c extends Lu{_make(f,m){const h=l(f,m);return h.prevObject=this,h}_parse(f,m,h,b){return e(f,m,h,b)}_render(f){return t(f,this.options)}}function l(d,f,m=o,h){if(d&&Si(d))return d;const b=Gm(h,a),g=typeof m=="string"?[e(m,b,!1,null)]:"length"in m?m:[m],y=Si(g)?g:new c(g,null,b);if(y._root=y,!d)return new c(void 0,y,b);const p=typeof d=="string"&&Vm(d)?e(d,b,!1,null).children:TN(d)?[d]:Array.isArray(d)?d:void 0,C=new c(p,y,b);if(p)return C;if(typeof d!="string")throw new TypeError("Unexpected type of selector");let w=d;const _=f?typeof f=="string"?Vm(f)?new c([e(f,b,!1,null)],y,b):(w=`${f} ${w}`,y):Si(f)?f:new c(Array.isArray(f)?f:[f],y,b):y;return _?_.find(w):C}return Object.assign(l,n6,{load:n,_root:o,_options:a,fn:c.prototype,prototype:c.prototype}),l}}function TN(e){return!!e.name||e.type===Rg||e.type===Rv||e.type===Bv}const wN=new Set([65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111]),An="�";var k;(function(e){e[e.EOF=-1]="EOF",e[e.NULL=0]="NULL",e[e.TABULATION=9]="TABULATION",e[e.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",e[e.LINE_FEED=10]="LINE_FEED",e[e.FORM_FEED=12]="FORM_FEED",e[e.SPACE=32]="SPACE",e[e.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",e[e.QUOTATION_MARK=34]="QUOTATION_MARK",e[e.AMPERSAND=38]="AMPERSAND",e[e.APOSTROPHE=39]="APOSTROPHE",e[e.HYPHEN_MINUS=45]="HYPHEN_MINUS",e[e.SOLIDUS=47]="SOLIDUS",e[e.DIGIT_0=48]="DIGIT_0",e[e.DIGIT_9=57]="DIGIT_9",e[e.SEMICOLON=59]="SEMICOLON",e[e.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",e[e.EQUALS_SIGN=61]="EQUALS_SIGN",e[e.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",e[e.QUESTION_MARK=63]="QUESTION_MARK",e[e.LATIN_CAPITAL_A=65]="LATIN_CAPITAL_A",e[e.LATIN_CAPITAL_Z=90]="LATIN_CAPITAL_Z",e[e.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",e[e.GRAVE_ACCENT=96]="GRAVE_ACCENT",e[e.LATIN_SMALL_A=97]="LATIN_SMALL_A",e[e.LATIN_SMALL_Z=122]="LATIN_SMALL_Z"})(k||(k={}));const Xr={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function y_(e){return e>=55296&&e<=57343}function AN(e){return e>=56320&&e<=57343}function kN(e,t){return(e-55296)*1024+9216+t}function E_(e){return e!==32&&e!==10&&e!==13&&e!==9&&e!==12&&e>=1&&e<=31||e>=127&&e<=159}function C_(e){return e>=64976&&e<=65007||wN.has(e)}var ie;(function(e){e.controlCharacterInInputStream="control-character-in-input-stream",e.noncharacterInInputStream="noncharacter-in-input-stream",e.surrogateInInputStream="surrogate-in-input-stream",e.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",e.endTagWithAttributes="end-tag-with-attributes",e.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",e.unexpectedSolidusInTag="unexpected-solidus-in-tag",e.unexpectedNullCharacter="unexpected-null-character",e.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",e.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",e.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",e.missingEndTagName="missing-end-tag-name",e.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",e.unknownNamedCharacterReference="unknown-named-character-reference",e.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",e.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",e.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",e.eofBeforeTagName="eof-before-tag-name",e.eofInTag="eof-in-tag",e.missingAttributeValue="missing-attribute-value",e.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",e.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keyword",e.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers="missing-whitespace-between-doctype-public-and-system-identifiers",e.missingWhitespaceAfterDoctypeSystemKeyword="missing-whitespace-after-doctype-system-keyword",e.missingQuoteBeforeDoctypePublicIdentifier="missing-quote-before-doctype-public-identifier",e.missingQuoteBeforeDoctypeSystemIdentifier="missing-quote-before-doctype-system-identifier",e.missingDoctypePublicIdentifier="missing-doctype-public-identifier",e.missingDoctypeSystemIdentifier="missing-doctype-system-identifier",e.abruptDoctypePublicIdentifier="abrupt-doctype-public-identifier",e.abruptDoctypeSystemIdentifier="abrupt-doctype-system-identifier",e.cdataInHtmlContent="cdata-in-html-content",e.incorrectlyOpenedComment="incorrectly-opened-comment",e.eofInScriptHtmlCommentLikeText="eof-in-script-html-comment-like-text",e.eofInDoctype="eof-in-doctype",e.nestedComment="nested-comment",e.abruptClosingOfEmptyComment="abrupt-closing-of-empty-comment",e.eofInComment="eof-in-comment",e.incorrectlyClosedComment="incorrectly-closed-comment",e.eofInCdata="eof-in-cdata",e.absenceOfDigitsInNumericCharacterReference="absence-of-digits-in-numeric-character-reference",e.nullCharacterReference="null-character-reference",e.surrogateCharacterReference="surrogate-character-reference",e.characterReferenceOutsideUnicodeRange="character-reference-outside-unicode-range",e.controlCharacterReference="control-character-reference",e.noncharacterCharacterReference="noncharacter-character-reference",e.missingWhitespaceBeforeDoctypeName="missing-whitespace-before-doctype-name",e.missingDoctypeName="missing-doctype-name",e.invalidCharacterSequenceAfterDoctypeName="invalid-character-sequence-after-doctype-name",e.duplicateAttribute="duplicate-attribute",e.nonConformingDoctype="non-conforming-doctype",e.missingDoctype="missing-doctype",e.misplacedDoctype="misplaced-doctype",e.endTagWithoutMatchingOpenElement="end-tag-without-matching-open-element",e.closingOfElementWithOpenChildElements="closing-of-element-with-open-child-elements",e.disallowedContentInNoscriptInHead="disallowed-content-in-noscript-in-head",e.openElementsLeftAfterEof="open-elements-left-after-eof",e.abandonedHeadElementChild="abandoned-head-element-child",e.misplacedStartTagForHeadElement="misplaced-start-tag-for-head-element",e.nestedNoscriptInHead="nested-noscript-in-head",e.eofInElementThatCanContainOnlyText="eof-in-element-that-can-contain-only-text"})(ie||(ie={}));const IN=65536;class RN{constructor(t){this.handler=t,this.html="",this.pos=-1,this.lastGapPos=-2,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=IN,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.line=1,this.lastErrOffset=-1}get col(){return this.pos-this.lineStartPos+ +(this.lastGapPos!==this.pos)}get offset(){return this.droppedBufferSize+this.pos}getError(t,n){const{line:r,col:s,offset:i}=this,a=s+n,o=i+n;return{code:t,startLine:r,endLine:r,startCol:a,endCol:a,startOffset:o,endOffset:o}}_err(t){this.handler.onParseError&&this.lastErrOffset!==this.offset&&(this.lastErrOffset=this.offset,this.handler.onParseError(this.getError(t,0)))}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(t){if(this.pos!==this.html.length-1){const n=this.html.charCodeAt(this.pos+1);if(AN(n))return this.pos++,this._addGap(),kN(t,n)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,k.EOF;return this._err(ie.surrogateInInputStream),t}willDropParsedChunk(){return this.pos>this.bufferWaterline}dropParsedChunk(){this.willDropParsedChunk()&&(this.html=this.html.substring(this.pos),this.lineStartPos-=this.pos,this.droppedBufferSize+=this.pos,this.pos=0,this.lastGapPos=-2,this.gapStack.length=0)}write(t,n){this.html.length>0?this.html+=t:this.html=t,this.endOfChunkHit=!1,this.lastChunkWritten=n}insertHtmlAtCurrentPos(t){this.html=this.html.substring(0,this.pos+1)+t+this.html.substring(this.pos+1),this.endOfChunkHit=!1}startsWith(t,n){if(this.pos+t.length>this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,!1;if(n)return this.html.startsWith(t,this.pos);for(let r=0;r<t.length;r++)if((this.html.charCodeAt(this.pos+r)|32)!==t.charCodeAt(r))return!1;return!0}peek(t){const n=this.pos+t;if(n>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,k.EOF;const r=this.html.charCodeAt(n);return r===k.CARRIAGE_RETURN?k.LINE_FEED:r}advance(){if(this.pos++,this.isEol&&(this.isEol=!1,this.line++,this.lineStartPos=this.pos),this.pos>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,k.EOF;let t=this.html.charCodeAt(this.pos);return t===k.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,k.LINE_FEED):t===k.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,y_(t)&&(t=this._processSurrogate(t)),this.handler.onParseError===null||t>31&&t<127||t===k.LINE_FEED||t===k.CARRIAGE_RETURN||t>159&&t<64976||this._checkForProblematicCharacters(t),t)}_checkForProblematicCharacters(t){E_(t)?this._err(ie.controlCharacterInInputStream):C_(t)&&this._err(ie.noncharacterInInputStream)}retreat(t){for(this.pos-=t;this.pos<this.lastGapPos;)this.lastGapPos=this.gapStack.pop(),this.pos--;this.isEol=!1}}var zt;(function(e){e[e.CHARACTER=0]="CHARACTER",e[e.NULL_CHARACTER=1]="NULL_CHARACTER",e[e.WHITESPACE_CHARACTER=2]="WHITESPACE_CHARACTER",e[e.START_TAG=3]="START_TAG",e[e.END_TAG=4]="END_TAG",e[e.COMMENT=5]="COMMENT",e[e.DOCTYPE=6]="DOCTYPE",e[e.EOF=7]="EOF",e[e.HIBERNATION=8]="HIBERNATION"})(zt||(zt={}));function x_(e,t){for(let n=e.attrs.length-1;n>=0;n--)if(e.attrs[n].name===t)return e.attrs[n].value;return null}var pe;(function(e){e.HTML="http://www.w3.org/1999/xhtml",e.MATHML="http://www.w3.org/1998/Math/MathML",e.SVG="http://www.w3.org/2000/svg",e.XLINK="http://www.w3.org/1999/xlink",e.XML="http://www.w3.org/XML/1998/namespace",e.XMLNS="http://www.w3.org/2000/xmlns/"})(pe||(pe={}));var za;(function(e){e.TYPE="type",e.ACTION="action",e.ENCODING="encoding",e.PROMPT="prompt",e.NAME="name",e.COLOR="color",e.FACE="face",e.SIZE="size"})(za||(za={}));var fs;(function(e){e.NO_QUIRKS="no-quirks",e.QUIRKS="quirks",e.LIMITED_QUIRKS="limited-quirks"})(fs||(fs={}));var V;(function(e){e.A="a",e.ADDRESS="address",e.ANNOTATION_XML="annotation-xml",e.APPLET="applet",e.AREA="area",e.ARTICLE="article",e.ASIDE="aside",e.B="b",e.BASE="base",e.BASEFONT="basefont",e.BGSOUND="bgsound",e.BIG="big",e.BLOCKQUOTE="blockquote",e.BODY="body",e.BR="br",e.BUTTON="button",e.CAPTION="caption",e.CENTER="center",e.CODE="code",e.COL="col",e.COLGROUP="colgroup",e.DD="dd",e.DESC="desc",e.DETAILS="details",e.DIALOG="dialog",e.DIR="dir",e.DIV="div",e.DL="dl",e.DT="dt",e.EM="em",e.EMBED="embed",e.FIELDSET="fieldset",e.FIGCAPTION="figcaption",e.FIGURE="figure",e.FONT="font",e.FOOTER="footer",e.FOREIGN_OBJECT="foreignObject",e.FORM="form",e.FRAME="frame",e.FRAMESET="frameset",e.H1="h1",e.H2="h2",e.H3="h3",e.H4="h4",e.H5="h5",e.H6="h6",e.HEAD="head",e.HEADER="header",e.HGROUP="hgroup",e.HR="hr",e.HTML="html",e.I="i",e.IMG="img",e.IMAGE="image",e.INPUT="input",e.IFRAME="iframe",e.KEYGEN="keygen",e.LABEL="label",e.LI="li",e.LINK="link",e.LISTING="listing",e.MAIN="main",e.MALIGNMARK="malignmark",e.MARQUEE="marquee",e.MATH="math",e.MENU="menu",e.META="meta",e.MGLYPH="mglyph",e.MI="mi",e.MO="mo",e.MN="mn",e.MS="ms",e.MTEXT="mtext",e.NAV="nav",e.NOBR="nobr",e.NOFRAMES="noframes",e.NOEMBED="noembed",e.NOSCRIPT="noscript",e.OBJECT="object",e.OL="ol",e.OPTGROUP="optgroup",e.OPTION="option",e.P="p",e.PARAM="param",e.PLAINTEXT="plaintext",e.PRE="pre",e.RB="rb",e.RP="rp",e.RT="rt",e.RTC="rtc",e.RUBY="ruby",e.S="s",e.SCRIPT="script",e.SEARCH="search",e.SECTION="section",e.SELECT="select",e.SOURCE="source",e.SMALL="small",e.SPAN="span",e.STRIKE="strike",e.STRONG="strong",e.STYLE="style",e.SUB="sub",e.SUMMARY="summary",e.SUP="sup",e.TABLE="table",e.TBODY="tbody",e.TEMPLATE="template",e.TEXTAREA="textarea",e.TFOOT="tfoot",e.TD="td",e.TH="th",e.THEAD="thead",e.TITLE="title",e.TR="tr",e.TRACK="track",e.TT="tt",e.U="u",e.UL="ul",e.SVG="svg",e.VAR="var",e.WBR="wbr",e.XMP="xmp"})(V||(V={}));var u;(function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.A=1]="A",e[e.ADDRESS=2]="ADDRESS",e[e.ANNOTATION_XML=3]="ANNOTATION_XML",e[e.APPLET=4]="APPLET",e[e.AREA=5]="AREA",e[e.ARTICLE=6]="ARTICLE",e[e.ASIDE=7]="ASIDE",e[e.B=8]="B",e[e.BASE=9]="BASE",e[e.BASEFONT=10]="BASEFONT",e[e.BGSOUND=11]="BGSOUND",e[e.BIG=12]="BIG",e[e.BLOCKQUOTE=13]="BLOCKQUOTE",e[e.BODY=14]="BODY",e[e.BR=15]="BR",e[e.BUTTON=16]="BUTTON",e[e.CAPTION=17]="CAPTION",e[e.CENTER=18]="CENTER",e[e.CODE=19]="CODE",e[e.COL=20]="COL",e[e.COLGROUP=21]="COLGROUP",e[e.DD=22]="DD",e[e.DESC=23]="DESC",e[e.DETAILS=24]="DETAILS",e[e.DIALOG=25]="DIALOG",e[e.DIR=26]="DIR",e[e.DIV=27]="DIV",e[e.DL=28]="DL",e[e.DT=29]="DT",e[e.EM=30]="EM",e[e.EMBED=31]="EMBED",e[e.FIELDSET=32]="FIELDSET",e[e.FIGCAPTION=33]="FIGCAPTION",e[e.FIGURE=34]="FIGURE",e[e.FONT=35]="FONT",e[e.FOOTER=36]="FOOTER",e[e.FOREIGN_OBJECT=37]="FOREIGN_OBJECT",e[e.FORM=38]="FORM",e[e.FRAME=39]="FRAME",e[e.FRAMESET=40]="FRAMESET",e[e.H1=41]="H1",e[e.H2=42]="H2",e[e.H3=43]="H3",e[e.H4=44]="H4",e[e.H5=45]="H5",e[e.H6=46]="H6",e[e.HEAD=47]="HEAD",e[e.HEADER=48]="HEADER",e[e.HGROUP=49]="HGROUP",e[e.HR=50]="HR",e[e.HTML=51]="HTML",e[e.I=52]="I",e[e.IMG=53]="IMG",e[e.IMAGE=54]="IMAGE",e[e.INPUT=55]="INPUT",e[e.IFRAME=56]="IFRAME",e[e.KEYGEN=57]="KEYGEN",e[e.LABEL=58]="LABEL",e[e.LI=59]="LI",e[e.LINK=60]="LINK",e[e.LISTING=61]="LISTING",e[e.MAIN=62]="MAIN",e[e.MALIGNMARK=63]="MALIGNMARK",e[e.MARQUEE=64]="MARQUEE",e[e.MATH=65]="MATH",e[e.MENU=66]="MENU",e[e.META=67]="META",e[e.MGLYPH=68]="MGLYPH",e[e.MI=69]="MI",e[e.MO=70]="MO",e[e.MN=71]="MN",e[e.MS=72]="MS",e[e.MTEXT=73]="MTEXT",e[e.NAV=74]="NAV",e[e.NOBR=75]="NOBR",e[e.NOFRAMES=76]="NOFRAMES",e[e.NOEMBED=77]="NOEMBED",e[e.NOSCRIPT=78]="NOSCRIPT",e[e.OBJECT=79]="OBJECT",e[e.OL=80]="OL",e[e.OPTGROUP=81]="OPTGROUP",e[e.OPTION=82]="OPTION",e[e.P=83]="P",e[e.PARAM=84]="PARAM",e[e.PLAINTEXT=85]="PLAINTEXT",e[e.PRE=86]="PRE",e[e.RB=87]="RB",e[e.RP=88]="RP",e[e.RT=89]="RT",e[e.RTC=90]="RTC",e[e.RUBY=91]="RUBY",e[e.S=92]="S",e[e.SCRIPT=93]="SCRIPT",e[e.SEARCH=94]="SEARCH",e[e.SECTION=95]="SECTION",e[e.SELECT=96]="SELECT",e[e.SOURCE=97]="SOURCE",e[e.SMALL=98]="SMALL",e[e.SPAN=99]="SPAN",e[e.STRIKE=100]="STRIKE",e[e.STRONG=101]="STRONG",e[e.STYLE=102]="STYLE",e[e.SUB=103]="SUB",e[e.SUMMARY=104]="SUMMARY",e[e.SUP=105]="SUP",e[e.TABLE=106]="TABLE",e[e.TBODY=107]="TBODY",e[e.TEMPLATE=108]="TEMPLATE",e[e.TEXTAREA=109]="TEXTAREA",e[e.TFOOT=110]="TFOOT",e[e.TD=111]="TD",e[e.TH=112]="TH",e[e.THEAD=113]="THEAD",e[e.TITLE=114]="TITLE",e[e.TR=115]="TR",e[e.TRACK=116]="TRACK",e[e.TT=117]="TT",e[e.U=118]="U",e[e.UL=119]="UL",e[e.SVG=120]="SVG",e[e.VAR=121]="VAR",e[e.WBR=122]="WBR",e[e.XMP=123]="XMP"})(u||(u={}));const BN=new Map([[V.A,u.A],[V.ADDRESS,u.ADDRESS],[V.ANNOTATION_XML,u.ANNOTATION_XML],[V.APPLET,u.APPLET],[V.AREA,u.AREA],[V.ARTICLE,u.ARTICLE],[V.ASIDE,u.ASIDE],[V.B,u.B],[V.BASE,u.BASE],[V.BASEFONT,u.BASEFONT],[V.BGSOUND,u.BGSOUND],[V.BIG,u.BIG],[V.BLOCKQUOTE,u.BLOCKQUOTE],[V.BODY,u.BODY],[V.BR,u.BR],[V.BUTTON,u.BUTTON],[V.CAPTION,u.CAPTION],[V.CENTER,u.CENTER],[V.CODE,u.CODE],[V.COL,u.COL],[V.COLGROUP,u.COLGROUP],[V.DD,u.DD],[V.DESC,u.DESC],[V.DETAILS,u.DETAILS],[V.DIALOG,u.DIALOG],[V.DIR,u.DIR],[V.DIV,u.DIV],[V.DL,u.DL],[V.DT,u.DT],[V.EM,u.EM],[V.EMBED,u.EMBED],[V.FIELDSET,u.FIELDSET],[V.FIGCAPTION,u.FIGCAPTION],[V.FIGURE,u.FIGURE],[V.FONT,u.FONT],[V.FOOTER,u.FOOTER],[V.FOREIGN_OBJECT,u.FOREIGN_OBJECT],[V.FORM,u.FORM],[V.FRAME,u.FRAME],[V.FRAMESET,u.FRAMESET],[V.H1,u.H1],[V.H2,u.H2],[V.H3,u.H3],[V.H4,u.H4],[V.H5,u.H5],[V.H6,u.H6],[V.HEAD,u.HEAD],[V.HEADER,u.HEADER],[V.HGROUP,u.HGROUP],[V.HR,u.HR],[V.HTML,u.HTML],[V.I,u.I],[V.IMG,u.IMG],[V.IMAGE,u.IMAGE],[V.INPUT,u.INPUT],[V.IFRAME,u.IFRAME],[V.KEYGEN,u.KEYGEN],[V.LABEL,u.LABEL],[V.LI,u.LI],[V.LINK,u.LINK],[V.LISTING,u.LISTING],[V.MAIN,u.MAIN],[V.MALIGNMARK,u.MALIGNMARK],[V.MARQUEE,u.MARQUEE],[V.MATH,u.MATH],[V.MENU,u.MENU],[V.META,u.META],[V.MGLYPH,u.MGLYPH],[V.MI,u.MI],[V.MO,u.MO],[V.MN,u.MN],[V.MS,u.MS],[V.MTEXT,u.MTEXT],[V.NAV,u.NAV],[V.NOBR,u.NOBR],[V.NOFRAMES,u.NOFRAMES],[V.NOEMBED,u.NOEMBED],[V.NOSCRIPT,u.NOSCRIPT],[V.OBJECT,u.OBJECT],[V.OL,u.OL],[V.OPTGROUP,u.OPTGROUP],[V.OPTION,u.OPTION],[V.P,u.P],[V.PARAM,u.PARAM],[V.PLAINTEXT,u.PLAINTEXT],[V.PRE,u.PRE],[V.RB,u.RB],[V.RP,u.RP],[V.RT,u.RT],[V.RTC,u.RTC],[V.RUBY,u.RUBY],[V.S,u.S],[V.SCRIPT,u.SCRIPT],[V.SEARCH,u.SEARCH],[V.SECTION,u.SECTION],[V.SELECT,u.SELECT],[V.SOURCE,u.SOURCE],[V.SMALL,u.SMALL],[V.SPAN,u.SPAN],[V.STRIKE,u.STRIKE],[V.STRONG,u.STRONG],[V.STYLE,u.STYLE],[V.SUB,u.SUB],[V.SUMMARY,u.SUMMARY],[V.SUP,u.SUP],[V.TABLE,u.TABLE],[V.TBODY,u.TBODY],[V.TEMPLATE,u.TEMPLATE],[V.TEXTAREA,u.TEXTAREA],[V.TFOOT,u.TFOOT],[V.TD,u.TD],[V.TH,u.TH],[V.THEAD,u.THEAD],[V.TITLE,u.TITLE],[V.TR,u.TR],[V.TRACK,u.TRACK],[V.TT,u.TT],[V.U,u.U],[V.UL,u.UL],[V.SVG,u.SVG],[V.VAR,u.VAR],[V.WBR,u.WBR],[V.XMP,u.XMP]]);function Ch(e){var t;return(t=BN.get(e))!==null&&t!==void 0?t:u.UNKNOWN}const Re=u,PN={[pe.HTML]:new Set([Re.ADDRESS,Re.APPLET,Re.AREA,Re.ARTICLE,Re.ASIDE,Re.BASE,Re.BASEFONT,Re.BGSOUND,Re.BLOCKQUOTE,Re.BODY,Re.BR,Re.BUTTON,Re.CAPTION,Re.CENTER,Re.COL,Re.COLGROUP,Re.DD,Re.DETAILS,Re.DIR,Re.DIV,Re.DL,Re.DT,Re.EMBED,Re.FIELDSET,Re.FIGCAPTION,Re.FIGURE,Re.FOOTER,Re.FORM,Re.FRAME,Re.FRAMESET,Re.H1,Re.H2,Re.H3,Re.H4,Re.H5,Re.H6,Re.HEAD,Re.HEADER,Re.HGROUP,Re.HR,Re.HTML,Re.IFRAME,Re.IMG,Re.INPUT,Re.LI,Re.LINK,Re.LISTING,Re.MAIN,Re.MARQUEE,Re.MENU,Re.META,Re.NAV,Re.NOEMBED,Re.NOFRAMES,Re.NOSCRIPT,Re.OBJECT,Re.OL,Re.P,Re.PARAM,Re.PLAINTEXT,Re.PRE,Re.SCRIPT,Re.SECTION,Re.SELECT,Re.SOURCE,Re.STYLE,Re.SUMMARY,Re.TABLE,Re.TBODY,Re.TD,Re.TEMPLATE,Re.TEXTAREA,Re.TFOOT,Re.TH,Re.THEAD,Re.TITLE,Re.TR,Re.TRACK,Re.UL,Re.WBR,Re.XMP]),[pe.MATHML]:new Set([Re.MI,Re.MO,Re.MN,Re.MS,Re.MTEXT,Re.ANNOTATION_XML]),[pe.SVG]:new Set([Re.TITLE,Re.FOREIGN_OBJECT,Re.DESC]),[pe.XLINK]:new Set,[pe.XML]:new Set,[pe.XMLNS]:new Set},eb=new Set([Re.H1,Re.H2,Re.H3,Re.H4,Re.H5,Re.H6]),NN=new Set([V.STYLE,V.SCRIPT,V.XMP,V.IFRAME,V.NOEMBED,V.NOFRAMES,V.PLAINTEXT]);function ON(e,t){return NN.has(e)||t&&e===V.NOSCRIPT}var P;(function(e){e[e.DATA=0]="DATA",e[e.RCDATA=1]="RCDATA",e[e.RAWTEXT=2]="RAWTEXT",e[e.SCRIPT_DATA=3]="SCRIPT_DATA",e[e.PLAINTEXT=4]="PLAINTEXT",e[e.TAG_OPEN=5]="TAG_OPEN",e[e.END_TAG_OPEN=6]="END_TAG_OPEN",e[e.TAG_NAME=7]="TAG_NAME",e[e.RCDATA_LESS_THAN_SIGN=8]="RCDATA_LESS_THAN_SIGN",e[e.RCDATA_END_TAG_OPEN=9]="RCDATA_END_TAG_OPEN",e[e.RCDATA_END_TAG_NAME=10]="RCDATA_END_TAG_NAME",e[e.RAWTEXT_LESS_THAN_SIGN=11]="RAWTEXT_LESS_THAN_SIGN",e[e.RAWTEXT_END_TAG_OPEN=12]="RAWTEXT_END_TAG_OPEN",e[e.RAWTEXT_END_TAG_NAME=13]="RAWTEXT_END_TAG_NAME",e[e.SCRIPT_DATA_LESS_THAN_SIGN=14]="SCRIPT_DATA_LESS_THAN_SIGN",e[e.SCRIPT_DATA_END_TAG_OPEN=15]="SCRIPT_DATA_END_TAG_OPEN",e[e.SCRIPT_DATA_END_TAG_NAME=16]="SCRIPT_DATA_END_TAG_NAME",e[e.SCRIPT_DATA_ESCAPE_START=17]="SCRIPT_DATA_ESCAPE_START",e[e.SCRIPT_DATA_ESCAPE_START_DASH=18]="SCRIPT_DATA_ESCAPE_START_DASH",e[e.SCRIPT_DATA_ESCAPED=19]="SCRIPT_DATA_ESCAPED",e[e.SCRIPT_DATA_ESCAPED_DASH=20]="SCRIPT_DATA_ESCAPED_DASH",e[e.SCRIPT_DATA_ESCAPED_DASH_DASH=21]="SCRIPT_DATA_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN=22]="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_OPEN=23]="SCRIPT_DATA_ESCAPED_END_TAG_OPEN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_NAME=24]="SCRIPT_DATA_ESCAPED_END_TAG_NAME",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_START=25]="SCRIPT_DATA_DOUBLE_ESCAPE_START",e[e.SCRIPT_DATA_DOUBLE_ESCAPED=26]="SCRIPT_DATA_DOUBLE_ESCAPED",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH=27]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH=28]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN=29]="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_END=30]="SCRIPT_DATA_DOUBLE_ESCAPE_END",e[e.BEFORE_ATTRIBUTE_NAME=31]="BEFORE_ATTRIBUTE_NAME",e[e.ATTRIBUTE_NAME=32]="ATTRIBUTE_NAME",e[e.AFTER_ATTRIBUTE_NAME=33]="AFTER_ATTRIBUTE_NAME",e[e.BEFORE_ATTRIBUTE_VALUE=34]="BEFORE_ATTRIBUTE_VALUE",e[e.ATTRIBUTE_VALUE_DOUBLE_QUOTED=35]="ATTRIBUTE_VALUE_DOUBLE_QUOTED",e[e.ATTRIBUTE_VALUE_SINGLE_QUOTED=36]="ATTRIBUTE_VALUE_SINGLE_QUOTED",e[e.ATTRIBUTE_VALUE_UNQUOTED=37]="ATTRIBUTE_VALUE_UNQUOTED",e[e.AFTER_ATTRIBUTE_VALUE_QUOTED=38]="AFTER_ATTRIBUTE_VALUE_QUOTED",e[e.SELF_CLOSING_START_TAG=39]="SELF_CLOSING_START_TAG",e[e.BOGUS_COMMENT=40]="BOGUS_COMMENT",e[e.MARKUP_DECLARATION_OPEN=41]="MARKUP_DECLARATION_OPEN",e[e.COMMENT_START=42]="COMMENT_START",e[e.COMMENT_START_DASH=43]="COMMENT_START_DASH",e[e.COMMENT=44]="COMMENT",e[e.COMMENT_LESS_THAN_SIGN=45]="COMMENT_LESS_THAN_SIGN",e[e.COMMENT_LESS_THAN_SIGN_BANG=46]="COMMENT_LESS_THAN_SIGN_BANG",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH=47]="COMMENT_LESS_THAN_SIGN_BANG_DASH",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH=48]="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH",e[e.COMMENT_END_DASH=49]="COMMENT_END_DASH",e[e.COMMENT_END=50]="COMMENT_END",e[e.COMMENT_END_BANG=51]="COMMENT_END_BANG",e[e.DOCTYPE=52]="DOCTYPE",e[e.BEFORE_DOCTYPE_NAME=53]="BEFORE_DOCTYPE_NAME",e[e.DOCTYPE_NAME=54]="DOCTYPE_NAME",e[e.AFTER_DOCTYPE_NAME=55]="AFTER_DOCTYPE_NAME",e[e.AFTER_DOCTYPE_PUBLIC_KEYWORD=56]="AFTER_DOCTYPE_PUBLIC_KEYWORD",e[e.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER=57]="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER",e[e.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED=58]="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED=59]="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_PUBLIC_IDENTIFIER=60]="AFTER_DOCTYPE_PUBLIC_IDENTIFIER",e[e.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS=61]="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS",e[e.AFTER_DOCTYPE_SYSTEM_KEYWORD=62]="AFTER_DOCTYPE_SYSTEM_KEYWORD",e[e.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER=63]="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER",e[e.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED=64]="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED=65]="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_SYSTEM_IDENTIFIER=66]="AFTER_DOCTYPE_SYSTEM_IDENTIFIER",e[e.BOGUS_DOCTYPE=67]="BOGUS_DOCTYPE",e[e.CDATA_SECTION=68]="CDATA_SECTION",e[e.CDATA_SECTION_BRACKET=69]="CDATA_SECTION_BRACKET",e[e.CDATA_SECTION_END=70]="CDATA_SECTION_END",e[e.CHARACTER_REFERENCE=71]="CHARACTER_REFERENCE",e[e.AMBIGUOUS_AMPERSAND=72]="AMBIGUOUS_AMPERSAND"})(P||(P={}));const Jr={DATA:P.DATA,RCDATA:P.RCDATA,RAWTEXT:P.RAWTEXT,SCRIPT_DATA:P.SCRIPT_DATA,PLAINTEXT:P.PLAINTEXT,CDATA_SECTION:P.CDATA_SECTION};function DN(e){return e>=k.DIGIT_0&&e<=k.DIGIT_9}function Gl(e){return e>=k.LATIN_CAPITAL_A&&e<=k.LATIN_CAPITAL_Z}function LN(e){return e>=k.LATIN_SMALL_A&&e<=k.LATIN_SMALL_Z}function Hi(e){return LN(e)||Gl(e)}function DE(e){return Hi(e)||DN(e)}function fd(e){return e+32}function v_(e){return e===k.SPACE||e===k.LINE_FEED||e===k.TABULATION||e===k.FORM_FEED}function LE(e){return v_(e)||e===k.SOLIDUS||e===k.GREATER_THAN_SIGN}function MN(e){return e===k.NULL?ie.nullCharacterReference:e>1114111?ie.characterReferenceOutsideUnicodeRange:y_(e)?ie.surrogateCharacterReference:C_(e)?ie.noncharacterCharacterReference:E_(e)||e===k.CARRIAGE_RETURN?ie.controlCharacterReference:null}class FN{constructor(t,n){this.options=t,this.handler=n,this.paused=!1,this.inLoop=!1,this.inForeignNode=!1,this.lastStartTagName="",this.active=!1,this.state=P.DATA,this.returnState=P.DATA,this.entityStartPos=0,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new RN(n),this.currentLocation=this.getCurrentLocation(-1),this.entityDecoder=new Gv(Wv,(r,s)=>{this.preprocessor.pos=this.entityStartPos+s-1,this._flushCodePointConsumedAsCharacterReference(r)},n.onParseError?{missingSemicolonAfterCharacterReference:()=>{this._err(ie.missingSemicolonAfterCharacterReference,1)},absenceOfDigitsInNumericCharacterReference:r=>{this._err(ie.absenceOfDigitsInNumericCharacterReference,this.entityStartPos-this.preprocessor.pos+r)},validateNumericCharacterReference:r=>{const s=MN(r);s&&this._err(s,1)}}:void 0)}_err(t,n=0){var r,s;(s=(r=this.handler).onParseError)===null||s===void 0||s.call(r,this.preprocessor.getError(t,n))}getCurrentLocation(t){return this.options.sourceCodeLocationInfo?{startLine:this.preprocessor.line,startCol:this.preprocessor.col-t,startOffset:this.preprocessor.offset-t,endLine:-1,endCol:-1,endOffset:-1}:null}_runParsingLoop(){if(!this.inLoop){for(this.inLoop=!0;this.active&&!this.paused;){this.consumedAfterSnapshot=0;const t=this._consume();this._ensureHibernation()||this._callState(t)}this.inLoop=!1}}pause(){this.paused=!0}resume(t){if(!this.paused)throw new Error("Parser was already resumed");this.paused=!1,!this.inLoop&&(this._runParsingLoop(),this.paused||t?.())}write(t,n,r){this.active=!0,this.preprocessor.write(t,n),this._runParsingLoop(),this.paused||r?.()}insertHtmlAtCurrentPos(t){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(t),this._runParsingLoop()}_ensureHibernation(){return this.preprocessor.endOfChunkHit?(this.preprocessor.retreat(this.consumedAfterSnapshot),this.consumedAfterSnapshot=0,this.active=!1,!0):!1}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_advanceBy(t){this.consumedAfterSnapshot+=t;for(let n=0;n<t;n++)this.preprocessor.advance()}_consumeSequenceIfMatch(t,n){return this.preprocessor.startsWith(t,n)?(this._advanceBy(t.length-1),!0):!1}_createStartTagToken(){this.currentToken={type:zt.START_TAG,tagName:"",tagID:u.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(1)}}_createEndTagToken(){this.currentToken={type:zt.END_TAG,tagName:"",tagID:u.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(2)}}_createCommentToken(t){this.currentToken={type:zt.COMMENT,data:"",location:this.getCurrentLocation(t)}}_createDoctypeToken(t){this.currentToken={type:zt.DOCTYPE,name:t,forceQuirks:!1,publicId:null,systemId:null,location:this.currentLocation}}_createCharacterToken(t,n){this.currentCharacterToken={type:t,chars:n,location:this.currentLocation}}_createAttr(t){this.currentAttr={name:t,value:""},this.currentLocation=this.getCurrentLocation(0)}_leaveAttrName(){var t,n;const r=this.currentToken;if(x_(r,this.currentAttr.name)===null){if(r.attrs.push(this.currentAttr),r.location&&this.currentLocation){const s=(t=(n=r.location).attrs)!==null&&t!==void 0?t:n.attrs=Object.create(null);s[this.currentAttr.name]=this.currentLocation,this._leaveAttrValue()}}else this._err(ie.duplicateAttribute)}_leaveAttrValue(){this.currentLocation&&(this.currentLocation.endLine=this.preprocessor.line,this.currentLocation.endCol=this.preprocessor.col,this.currentLocation.endOffset=this.preprocessor.offset)}prepareToken(t){this._emitCurrentCharacterToken(t.location),this.currentToken=null,t.location&&(t.location.endLine=this.preprocessor.line,t.location.endCol=this.preprocessor.col+1,t.location.endOffset=this.preprocessor.offset+1),this.currentLocation=this.getCurrentLocation(-1)}emitCurrentTagToken(){const t=this.currentToken;this.prepareToken(t),t.tagID=Ch(t.tagName),t.type===zt.START_TAG?(this.lastStartTagName=t.tagName,this.handler.onStartTag(t)):(t.attrs.length>0&&this._err(ie.endTagWithAttributes),t.selfClosing&&this._err(ie.endTagWithTrailingSolidus),this.handler.onEndTag(t)),this.preprocessor.dropParsedChunk()}emitCurrentComment(t){this.prepareToken(t),this.handler.onComment(t),this.preprocessor.dropParsedChunk()}emitCurrentDoctype(t){this.prepareToken(t),this.handler.onDoctype(t),this.preprocessor.dropParsedChunk()}_emitCurrentCharacterToken(t){if(this.currentCharacterToken){switch(t&&this.currentCharacterToken.location&&(this.currentCharacterToken.location.endLine=t.startLine,this.currentCharacterToken.location.endCol=t.startCol,this.currentCharacterToken.location.endOffset=t.startOffset),this.currentCharacterToken.type){case zt.CHARACTER:{this.handler.onCharacter(this.currentCharacterToken);break}case zt.NULL_CHARACTER:{this.handler.onNullCharacter(this.currentCharacterToken);break}case zt.WHITESPACE_CHARACTER:{this.handler.onWhitespaceCharacter(this.currentCharacterToken);break}}this.currentCharacterToken=null}}_emitEOFToken(){const t=this.getCurrentLocation(0);t&&(t.endLine=t.startLine,t.endCol=t.startCol,t.endOffset=t.startOffset),this._emitCurrentCharacterToken(t),this.handler.onEof({type:zt.EOF,location:t}),this.active=!1}_appendCharToCurrentCharacterToken(t,n){if(this.currentCharacterToken)if(this.currentCharacterToken.type===t){this.currentCharacterToken.chars+=n;return}else this.currentLocation=this.getCurrentLocation(0),this._emitCurrentCharacterToken(this.currentLocation),this.preprocessor.dropParsedChunk();this._createCharacterToken(t,n)}_emitCodePoint(t){const n=v_(t)?zt.WHITESPACE_CHARACTER:t===k.NULL?zt.NULL_CHARACTER:zt.CHARACTER;this._appendCharToCurrentCharacterToken(n,String.fromCodePoint(t))}_emitChars(t){this._appendCharToCurrentCharacterToken(zt.CHARACTER,t)}_startCharacterReference(){this.returnState=this.state,this.state=P.CHARACTER_REFERENCE,this.entityStartPos=this.preprocessor.pos,this.entityDecoder.startEntity(this._isCharacterReferenceInAttribute()?As.Attribute:As.Legacy)}_isCharacterReferenceInAttribute(){return this.returnState===P.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===P.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===P.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(t){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(t):this._emitCodePoint(t)}_callState(t){switch(this.state){case P.DATA:{this._stateData(t);break}case P.RCDATA:{this._stateRcdata(t);break}case P.RAWTEXT:{this._stateRawtext(t);break}case P.SCRIPT_DATA:{this._stateScriptData(t);break}case P.PLAINTEXT:{this._statePlaintext(t);break}case P.TAG_OPEN:{this._stateTagOpen(t);break}case P.END_TAG_OPEN:{this._stateEndTagOpen(t);break}case P.TAG_NAME:{this._stateTagName(t);break}case P.RCDATA_LESS_THAN_SIGN:{this._stateRcdataLessThanSign(t);break}case P.RCDATA_END_TAG_OPEN:{this._stateRcdataEndTagOpen(t);break}case P.RCDATA_END_TAG_NAME:{this._stateRcdataEndTagName(t);break}case P.RAWTEXT_LESS_THAN_SIGN:{this._stateRawtextLessThanSign(t);break}case P.RAWTEXT_END_TAG_OPEN:{this._stateRawtextEndTagOpen(t);break}case P.RAWTEXT_END_TAG_NAME:{this._stateRawtextEndTagName(t);break}case P.SCRIPT_DATA_LESS_THAN_SIGN:{this._stateScriptDataLessThanSign(t);break}case P.SCRIPT_DATA_END_TAG_OPEN:{this._stateScriptDataEndTagOpen(t);break}case P.SCRIPT_DATA_END_TAG_NAME:{this._stateScriptDataEndTagName(t);break}case P.SCRIPT_DATA_ESCAPE_START:{this._stateScriptDataEscapeStart(t);break}case P.SCRIPT_DATA_ESCAPE_START_DASH:{this._stateScriptDataEscapeStartDash(t);break}case P.SCRIPT_DATA_ESCAPED:{this._stateScriptDataEscaped(t);break}case P.SCRIPT_DATA_ESCAPED_DASH:{this._stateScriptDataEscapedDash(t);break}case P.SCRIPT_DATA_ESCAPED_DASH_DASH:{this._stateScriptDataEscapedDashDash(t);break}case P.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataEscapedLessThanSign(t);break}case P.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:{this._stateScriptDataEscapedEndTagOpen(t);break}case P.SCRIPT_DATA_ESCAPED_END_TAG_NAME:{this._stateScriptDataEscapedEndTagName(t);break}case P.SCRIPT_DATA_DOUBLE_ESCAPE_START:{this._stateScriptDataDoubleEscapeStart(t);break}case P.SCRIPT_DATA_DOUBLE_ESCAPED:{this._stateScriptDataDoubleEscaped(t);break}case P.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:{this._stateScriptDataDoubleEscapedDash(t);break}case P.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:{this._stateScriptDataDoubleEscapedDashDash(t);break}case P.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataDoubleEscapedLessThanSign(t);break}case P.SCRIPT_DATA_DOUBLE_ESCAPE_END:{this._stateScriptDataDoubleEscapeEnd(t);break}case P.BEFORE_ATTRIBUTE_NAME:{this._stateBeforeAttributeName(t);break}case P.ATTRIBUTE_NAME:{this._stateAttributeName(t);break}case P.AFTER_ATTRIBUTE_NAME:{this._stateAfterAttributeName(t);break}case P.BEFORE_ATTRIBUTE_VALUE:{this._stateBeforeAttributeValue(t);break}case P.ATTRIBUTE_VALUE_DOUBLE_QUOTED:{this._stateAttributeValueDoubleQuoted(t);break}case P.ATTRIBUTE_VALUE_SINGLE_QUOTED:{this._stateAttributeValueSingleQuoted(t);break}case P.ATTRIBUTE_VALUE_UNQUOTED:{this._stateAttributeValueUnquoted(t);break}case P.AFTER_ATTRIBUTE_VALUE_QUOTED:{this._stateAfterAttributeValueQuoted(t);break}case P.SELF_CLOSING_START_TAG:{this._stateSelfClosingStartTag(t);break}case P.BOGUS_COMMENT:{this._stateBogusComment(t);break}case P.MARKUP_DECLARATION_OPEN:{this._stateMarkupDeclarationOpen(t);break}case P.COMMENT_START:{this._stateCommentStart(t);break}case P.COMMENT_START_DASH:{this._stateCommentStartDash(t);break}case P.COMMENT:{this._stateComment(t);break}case P.COMMENT_LESS_THAN_SIGN:{this._stateCommentLessThanSign(t);break}case P.COMMENT_LESS_THAN_SIGN_BANG:{this._stateCommentLessThanSignBang(t);break}case P.COMMENT_LESS_THAN_SIGN_BANG_DASH:{this._stateCommentLessThanSignBangDash(t);break}case P.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:{this._stateCommentLessThanSignBangDashDash(t);break}case P.COMMENT_END_DASH:{this._stateCommentEndDash(t);break}case P.COMMENT_END:{this._stateCommentEnd(t);break}case P.COMMENT_END_BANG:{this._stateCommentEndBang(t);break}case P.DOCTYPE:{this._stateDoctype(t);break}case P.BEFORE_DOCTYPE_NAME:{this._stateBeforeDoctypeName(t);break}case P.DOCTYPE_NAME:{this._stateDoctypeName(t);break}case P.AFTER_DOCTYPE_NAME:{this._stateAfterDoctypeName(t);break}case P.AFTER_DOCTYPE_PUBLIC_KEYWORD:{this._stateAfterDoctypePublicKeyword(t);break}case P.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateBeforeDoctypePublicIdentifier(t);break}case P.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypePublicIdentifierDoubleQuoted(t);break}case P.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypePublicIdentifierSingleQuoted(t);break}case P.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateAfterDoctypePublicIdentifier(t);break}case P.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:{this._stateBetweenDoctypePublicAndSystemIdentifiers(t);break}case P.AFTER_DOCTYPE_SYSTEM_KEYWORD:{this._stateAfterDoctypeSystemKeyword(t);break}case P.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateBeforeDoctypeSystemIdentifier(t);break}case P.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypeSystemIdentifierDoubleQuoted(t);break}case P.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypeSystemIdentifierSingleQuoted(t);break}case P.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateAfterDoctypeSystemIdentifier(t);break}case P.BOGUS_DOCTYPE:{this._stateBogusDoctype(t);break}case P.CDATA_SECTION:{this._stateCdataSection(t);break}case P.CDATA_SECTION_BRACKET:{this._stateCdataSectionBracket(t);break}case P.CDATA_SECTION_END:{this._stateCdataSectionEnd(t);break}case P.CHARACTER_REFERENCE:{this._stateCharacterReference();break}case P.AMBIGUOUS_AMPERSAND:{this._stateAmbiguousAmpersand(t);break}default:throw new Error("Unknown state")}}_stateData(t){switch(t){case k.LESS_THAN_SIGN:{this.state=P.TAG_OPEN;break}case k.AMPERSAND:{this._startCharacterReference();break}case k.NULL:{this._err(ie.unexpectedNullCharacter),this._emitCodePoint(t);break}case k.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRcdata(t){switch(t){case k.AMPERSAND:{this._startCharacterReference();break}case k.LESS_THAN_SIGN:{this.state=P.RCDATA_LESS_THAN_SIGN;break}case k.NULL:{this._err(ie.unexpectedNullCharacter),this._emitChars(An);break}case k.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRawtext(t){switch(t){case k.LESS_THAN_SIGN:{this.state=P.RAWTEXT_LESS_THAN_SIGN;break}case k.NULL:{this._err(ie.unexpectedNullCharacter),this._emitChars(An);break}case k.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptData(t){switch(t){case k.LESS_THAN_SIGN:{this.state=P.SCRIPT_DATA_LESS_THAN_SIGN;break}case k.NULL:{this._err(ie.unexpectedNullCharacter),this._emitChars(An);break}case k.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_statePlaintext(t){switch(t){case k.NULL:{this._err(ie.unexpectedNullCharacter),this._emitChars(An);break}case k.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateTagOpen(t){if(Hi(t))this._createStartTagToken(),this.state=P.TAG_NAME,this._stateTagName(t);else switch(t){case k.EXCLAMATION_MARK:{this.state=P.MARKUP_DECLARATION_OPEN;break}case k.SOLIDUS:{this.state=P.END_TAG_OPEN;break}case k.QUESTION_MARK:{this._err(ie.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=P.BOGUS_COMMENT,this._stateBogusComment(t);break}case k.EOF:{this._err(ie.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break}default:this._err(ie.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=P.DATA,this._stateData(t)}}_stateEndTagOpen(t){if(Hi(t))this._createEndTagToken(),this.state=P.TAG_NAME,this._stateTagName(t);else switch(t){case k.GREATER_THAN_SIGN:{this._err(ie.missingEndTagName),this.state=P.DATA;break}case k.EOF:{this._err(ie.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken();break}default:this._err(ie.invalidFirstCharacterOfTagName),this._createCommentToken(2),this.state=P.BOGUS_COMMENT,this._stateBogusComment(t)}}_stateTagName(t){const n=this.currentToken;switch(t){case k.SPACE:case k.LINE_FEED:case k.TABULATION:case k.FORM_FEED:{this.state=P.BEFORE_ATTRIBUTE_NAME;break}case k.SOLIDUS:{this.state=P.SELF_CLOSING_START_TAG;break}case k.GREATER_THAN_SIGN:{this.state=P.DATA,this.emitCurrentTagToken();break}case k.NULL:{this._err(ie.unexpectedNullCharacter),n.tagName+=An;break}case k.EOF:{this._err(ie.eofInTag),this._emitEOFToken();break}default:n.tagName+=String.fromCodePoint(Gl(t)?fd(t):t)}}_stateRcdataLessThanSign(t){t===k.SOLIDUS?this.state=P.RCDATA_END_TAG_OPEN:(this._emitChars("<"),this.state=P.RCDATA,this._stateRcdata(t))}_stateRcdataEndTagOpen(t){Hi(t)?(this.state=P.RCDATA_END_TAG_NAME,this._stateRcdataEndTagName(t)):(this._emitChars("</"),this.state=P.RCDATA,this._stateRcdata(t))}handleSpecialEndTag(t){if(!this.preprocessor.startsWith(this.lastStartTagName,!1))return!this._ensureHibernation();this._createEndTagToken();const n=this.currentToken;switch(n.tagName=this.lastStartTagName,this.preprocessor.peek(this.lastStartTagName.length)){case k.SPACE:case k.LINE_FEED:case k.TABULATION:case k.FORM_FEED:return this._advanceBy(this.lastStartTagName.length),this.state=P.BEFORE_ATTRIBUTE_NAME,!1;case k.SOLIDUS:return this._advanceBy(this.lastStartTagName.length),this.state=P.SELF_CLOSING_START_TAG,!1;case k.GREATER_THAN_SIGN:return this._advanceBy(this.lastStartTagName.length),this.emitCurrentTagToken(),this.state=P.DATA,!1;default:return!this._ensureHibernation()}}_stateRcdataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=P.RCDATA,this._stateRcdata(t))}_stateRawtextLessThanSign(t){t===k.SOLIDUS?this.state=P.RAWTEXT_END_TAG_OPEN:(this._emitChars("<"),this.state=P.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagOpen(t){Hi(t)?(this.state=P.RAWTEXT_END_TAG_NAME,this._stateRawtextEndTagName(t)):(this._emitChars("</"),this.state=P.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=P.RAWTEXT,this._stateRawtext(t))}_stateScriptDataLessThanSign(t){switch(t){case k.SOLIDUS:{this.state=P.SCRIPT_DATA_END_TAG_OPEN;break}case k.EXCLAMATION_MARK:{this.state=P.SCRIPT_DATA_ESCAPE_START,this._emitChars("<!");break}default:this._emitChars("<"),this.state=P.SCRIPT_DATA,this._stateScriptData(t)}}_stateScriptDataEndTagOpen(t){Hi(t)?(this.state=P.SCRIPT_DATA_END_TAG_NAME,this._stateScriptDataEndTagName(t)):(this._emitChars("</"),this.state=P.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=P.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStart(t){t===k.HYPHEN_MINUS?(this.state=P.SCRIPT_DATA_ESCAPE_START_DASH,this._emitChars("-")):(this.state=P.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStartDash(t){t===k.HYPHEN_MINUS?(this.state=P.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-")):(this.state=P.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscaped(t){switch(t){case k.HYPHEN_MINUS:{this.state=P.SCRIPT_DATA_ESCAPED_DASH,this._emitChars("-");break}case k.LESS_THAN_SIGN:{this.state=P.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case k.NULL:{this._err(ie.unexpectedNullCharacter),this._emitChars(An);break}case k.EOF:{this._err(ie.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataEscapedDash(t){switch(t){case k.HYPHEN_MINUS:{this.state=P.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-");break}case k.LESS_THAN_SIGN:{this.state=P.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case k.NULL:{this._err(ie.unexpectedNullCharacter),this.state=P.SCRIPT_DATA_ESCAPED,this._emitChars(An);break}case k.EOF:{this._err(ie.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=P.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedDashDash(t){switch(t){case k.HYPHEN_MINUS:{this._emitChars("-");break}case k.LESS_THAN_SIGN:{this.state=P.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case k.GREATER_THAN_SIGN:{this.state=P.SCRIPT_DATA,this._emitChars(">");break}case k.NULL:{this._err(ie.unexpectedNullCharacter),this.state=P.SCRIPT_DATA_ESCAPED,this._emitChars(An);break}case k.EOF:{this._err(ie.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=P.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedLessThanSign(t){t===k.SOLIDUS?this.state=P.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:Hi(t)?(this._emitChars("<"),this.state=P.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(t)):(this._emitChars("<"),this.state=P.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagOpen(t){Hi(t)?(this.state=P.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(t)):(this._emitChars("</"),this.state=P.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=P.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscapeStart(t){if(this.preprocessor.startsWith(Xr.SCRIPT,!1)&&LE(this.preprocessor.peek(Xr.SCRIPT.length))){this._emitCodePoint(t);for(let n=0;n<Xr.SCRIPT.length;n++)this._emitCodePoint(this._consume());this.state=P.SCRIPT_DATA_DOUBLE_ESCAPED}else this._ensureHibernation()||(this.state=P.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscaped(t){switch(t){case k.HYPHEN_MINUS:{this.state=P.SCRIPT_DATA_DOUBLE_ESCAPED_DASH,this._emitChars("-");break}case k.LESS_THAN_SIGN:{this.state=P.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case k.NULL:{this._err(ie.unexpectedNullCharacter),this._emitChars(An);break}case k.EOF:{this._err(ie.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDash(t){switch(t){case k.HYPHEN_MINUS:{this.state=P.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH,this._emitChars("-");break}case k.LESS_THAN_SIGN:{this.state=P.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case k.NULL:{this._err(ie.unexpectedNullCharacter),this.state=P.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(An);break}case k.EOF:{this._err(ie.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=P.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDashDash(t){switch(t){case k.HYPHEN_MINUS:{this._emitChars("-");break}case k.LESS_THAN_SIGN:{this.state=P.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case k.GREATER_THAN_SIGN:{this.state=P.SCRIPT_DATA,this._emitChars(">");break}case k.NULL:{this._err(ie.unexpectedNullCharacter),this.state=P.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(An);break}case k.EOF:{this._err(ie.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=P.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedLessThanSign(t){t===k.SOLIDUS?(this.state=P.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=P.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateScriptDataDoubleEscapeEnd(t){if(this.preprocessor.startsWith(Xr.SCRIPT,!1)&&LE(this.preprocessor.peek(Xr.SCRIPT.length))){this._emitCodePoint(t);for(let n=0;n<Xr.SCRIPT.length;n++)this._emitCodePoint(this._consume());this.state=P.SCRIPT_DATA_ESCAPED}else this._ensureHibernation()||(this.state=P.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateBeforeAttributeName(t){switch(t){case k.SPACE:case k.LINE_FEED:case k.TABULATION:case k.FORM_FEED:break;case k.SOLIDUS:case k.GREATER_THAN_SIGN:case k.EOF:{this.state=P.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case k.EQUALS_SIGN:{this._err(ie.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=P.ATTRIBUTE_NAME;break}default:this._createAttr(""),this.state=P.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateAttributeName(t){switch(t){case k.SPACE:case k.LINE_FEED:case k.TABULATION:case k.FORM_FEED:case k.SOLIDUS:case k.GREATER_THAN_SIGN:case k.EOF:{this._leaveAttrName(),this.state=P.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case k.EQUALS_SIGN:{this._leaveAttrName(),this.state=P.BEFORE_ATTRIBUTE_VALUE;break}case k.QUOTATION_MARK:case k.APOSTROPHE:case k.LESS_THAN_SIGN:{this._err(ie.unexpectedCharacterInAttributeName),this.currentAttr.name+=String.fromCodePoint(t);break}case k.NULL:{this._err(ie.unexpectedNullCharacter),this.currentAttr.name+=An;break}default:this.currentAttr.name+=String.fromCodePoint(Gl(t)?fd(t):t)}}_stateAfterAttributeName(t){switch(t){case k.SPACE:case k.LINE_FEED:case k.TABULATION:case k.FORM_FEED:break;case k.SOLIDUS:{this.state=P.SELF_CLOSING_START_TAG;break}case k.EQUALS_SIGN:{this.state=P.BEFORE_ATTRIBUTE_VALUE;break}case k.GREATER_THAN_SIGN:{this.state=P.DATA,this.emitCurrentTagToken();break}case k.EOF:{this._err(ie.eofInTag),this._emitEOFToken();break}default:this._createAttr(""),this.state=P.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateBeforeAttributeValue(t){switch(t){case k.SPACE:case k.LINE_FEED:case k.TABULATION:case k.FORM_FEED:break;case k.QUOTATION_MARK:{this.state=P.ATTRIBUTE_VALUE_DOUBLE_QUOTED;break}case k.APOSTROPHE:{this.state=P.ATTRIBUTE_VALUE_SINGLE_QUOTED;break}case k.GREATER_THAN_SIGN:{this._err(ie.missingAttributeValue),this.state=P.DATA,this.emitCurrentTagToken();break}default:this.state=P.ATTRIBUTE_VALUE_UNQUOTED,this._stateAttributeValueUnquoted(t)}}_stateAttributeValueDoubleQuoted(t){switch(t){case k.QUOTATION_MARK:{this.state=P.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case k.AMPERSAND:{this._startCharacterReference();break}case k.NULL:{this._err(ie.unexpectedNullCharacter),this.currentAttr.value+=An;break}case k.EOF:{this._err(ie.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueSingleQuoted(t){switch(t){case k.APOSTROPHE:{this.state=P.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case k.AMPERSAND:{this._startCharacterReference();break}case k.NULL:{this._err(ie.unexpectedNullCharacter),this.currentAttr.value+=An;break}case k.EOF:{this._err(ie.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueUnquoted(t){switch(t){case k.SPACE:case k.LINE_FEED:case k.TABULATION:case k.FORM_FEED:{this._leaveAttrValue(),this.state=P.BEFORE_ATTRIBUTE_NAME;break}case k.AMPERSAND:{this._startCharacterReference();break}case k.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=P.DATA,this.emitCurrentTagToken();break}case k.NULL:{this._err(ie.unexpectedNullCharacter),this.currentAttr.value+=An;break}case k.QUOTATION_MARK:case k.APOSTROPHE:case k.LESS_THAN_SIGN:case k.EQUALS_SIGN:case k.GRAVE_ACCENT:{this._err(ie.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=String.fromCodePoint(t);break}case k.EOF:{this._err(ie.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAfterAttributeValueQuoted(t){switch(t){case k.SPACE:case k.LINE_FEED:case k.TABULATION:case k.FORM_FEED:{this._leaveAttrValue(),this.state=P.BEFORE_ATTRIBUTE_NAME;break}case k.SOLIDUS:{this._leaveAttrValue(),this.state=P.SELF_CLOSING_START_TAG;break}case k.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=P.DATA,this.emitCurrentTagToken();break}case k.EOF:{this._err(ie.eofInTag),this._emitEOFToken();break}default:this._err(ie.missingWhitespaceBetweenAttributes),this.state=P.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateSelfClosingStartTag(t){switch(t){case k.GREATER_THAN_SIGN:{const n=this.currentToken;n.selfClosing=!0,this.state=P.DATA,this.emitCurrentTagToken();break}case k.EOF:{this._err(ie.eofInTag),this._emitEOFToken();break}default:this._err(ie.unexpectedSolidusInTag),this.state=P.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateBogusComment(t){const n=this.currentToken;switch(t){case k.GREATER_THAN_SIGN:{this.state=P.DATA,this.emitCurrentComment(n);break}case k.EOF:{this.emitCurrentComment(n),this._emitEOFToken();break}case k.NULL:{this._err(ie.unexpectedNullCharacter),n.data+=An;break}default:n.data+=String.fromCodePoint(t)}}_stateMarkupDeclarationOpen(t){this._consumeSequenceIfMatch(Xr.DASH_DASH,!0)?(this._createCommentToken(Xr.DASH_DASH.length+1),this.state=P.COMMENT_START):this._consumeSequenceIfMatch(Xr.DOCTYPE,!1)?(this.currentLocation=this.getCurrentLocation(Xr.DOCTYPE.length+1),this.state=P.DOCTYPE):this._consumeSequenceIfMatch(Xr.CDATA_START,!0)?this.inForeignNode?this.state=P.CDATA_SECTION:(this._err(ie.cdataInHtmlContent),this._createCommentToken(Xr.CDATA_START.length+1),this.currentToken.data="[CDATA[",this.state=P.BOGUS_COMMENT):this._ensureHibernation()||(this._err(ie.incorrectlyOpenedComment),this._createCommentToken(2),this.state=P.BOGUS_COMMENT,this._stateBogusComment(t))}_stateCommentStart(t){switch(t){case k.HYPHEN_MINUS:{this.state=P.COMMENT_START_DASH;break}case k.GREATER_THAN_SIGN:{this._err(ie.abruptClosingOfEmptyComment),this.state=P.DATA;const n=this.currentToken;this.emitCurrentComment(n);break}default:this.state=P.COMMENT,this._stateComment(t)}}_stateCommentStartDash(t){const n=this.currentToken;switch(t){case k.HYPHEN_MINUS:{this.state=P.COMMENT_END;break}case k.GREATER_THAN_SIGN:{this._err(ie.abruptClosingOfEmptyComment),this.state=P.DATA,this.emitCurrentComment(n);break}case k.EOF:{this._err(ie.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="-",this.state=P.COMMENT,this._stateComment(t)}}_stateComment(t){const n=this.currentToken;switch(t){case k.HYPHEN_MINUS:{this.state=P.COMMENT_END_DASH;break}case k.LESS_THAN_SIGN:{n.data+="<",this.state=P.COMMENT_LESS_THAN_SIGN;break}case k.NULL:{this._err(ie.unexpectedNullCharacter),n.data+=An;break}case k.EOF:{this._err(ie.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+=String.fromCodePoint(t)}}_stateCommentLessThanSign(t){const n=this.currentToken;switch(t){case k.EXCLAMATION_MARK:{n.data+="!",this.state=P.COMMENT_LESS_THAN_SIGN_BANG;break}case k.LESS_THAN_SIGN:{n.data+="<";break}default:this.state=P.COMMENT,this._stateComment(t)}}_stateCommentLessThanSignBang(t){t===k.HYPHEN_MINUS?this.state=P.COMMENT_LESS_THAN_SIGN_BANG_DASH:(this.state=P.COMMENT,this._stateComment(t))}_stateCommentLessThanSignBangDash(t){t===k.HYPHEN_MINUS?this.state=P.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:(this.state=P.COMMENT_END_DASH,this._stateCommentEndDash(t))}_stateCommentLessThanSignBangDashDash(t){t!==k.GREATER_THAN_SIGN&&t!==k.EOF&&this._err(ie.nestedComment),this.state=P.COMMENT_END,this._stateCommentEnd(t)}_stateCommentEndDash(t){const n=this.currentToken;switch(t){case k.HYPHEN_MINUS:{this.state=P.COMMENT_END;break}case k.EOF:{this._err(ie.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="-",this.state=P.COMMENT,this._stateComment(t)}}_stateCommentEnd(t){const n=this.currentToken;switch(t){case k.GREATER_THAN_SIGN:{this.state=P.DATA,this.emitCurrentComment(n);break}case k.EXCLAMATION_MARK:{this.state=P.COMMENT_END_BANG;break}case k.HYPHEN_MINUS:{n.data+="-";break}case k.EOF:{this._err(ie.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="--",this.state=P.COMMENT,this._stateComment(t)}}_stateCommentEndBang(t){const n=this.currentToken;switch(t){case k.HYPHEN_MINUS:{n.data+="--!",this.state=P.COMMENT_END_DASH;break}case k.GREATER_THAN_SIGN:{this._err(ie.incorrectlyClosedComment),this.state=P.DATA,this.emitCurrentComment(n);break}case k.EOF:{this._err(ie.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="--!",this.state=P.COMMENT,this._stateComment(t)}}_stateDoctype(t){switch(t){case k.SPACE:case k.LINE_FEED:case k.TABULATION:case k.FORM_FEED:{this.state=P.BEFORE_DOCTYPE_NAME;break}case k.GREATER_THAN_SIGN:{this.state=P.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t);break}case k.EOF:{this._err(ie.eofInDoctype),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(ie.missingWhitespaceBeforeDoctypeName),this.state=P.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t)}}_stateBeforeDoctypeName(t){if(Gl(t))this._createDoctypeToken(String.fromCharCode(fd(t))),this.state=P.DOCTYPE_NAME;else switch(t){case k.SPACE:case k.LINE_FEED:case k.TABULATION:case k.FORM_FEED:break;case k.NULL:{this._err(ie.unexpectedNullCharacter),this._createDoctypeToken(An),this.state=P.DOCTYPE_NAME;break}case k.GREATER_THAN_SIGN:{this._err(ie.missingDoctypeName),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=P.DATA;break}case k.EOF:{this._err(ie.eofInDoctype),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._createDoctypeToken(String.fromCodePoint(t)),this.state=P.DOCTYPE_NAME}}_stateDoctypeName(t){const n=this.currentToken;switch(t){case k.SPACE:case k.LINE_FEED:case k.TABULATION:case k.FORM_FEED:{this.state=P.AFTER_DOCTYPE_NAME;break}case k.GREATER_THAN_SIGN:{this.state=P.DATA,this.emitCurrentDoctype(n);break}case k.NULL:{this._err(ie.unexpectedNullCharacter),n.name+=An;break}case k.EOF:{this._err(ie.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.name+=String.fromCodePoint(Gl(t)?fd(t):t)}}_stateAfterDoctypeName(t){const n=this.currentToken;switch(t){case k.SPACE:case k.LINE_FEED:case k.TABULATION:case k.FORM_FEED:break;case k.GREATER_THAN_SIGN:{this.state=P.DATA,this.emitCurrentDoctype(n);break}case k.EOF:{this._err(ie.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._consumeSequenceIfMatch(Xr.PUBLIC,!1)?this.state=P.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._consumeSequenceIfMatch(Xr.SYSTEM,!1)?this.state=P.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._ensureHibernation()||(this._err(ie.invalidCharacterSequenceAfterDoctypeName),n.forceQuirks=!0,this.state=P.BOGUS_DOCTYPE,this._stateBogusDoctype(t))}}_stateAfterDoctypePublicKeyword(t){const n=this.currentToken;switch(t){case k.SPACE:case k.LINE_FEED:case k.TABULATION:case k.FORM_FEED:{this.state=P.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;break}case k.QUOTATION_MARK:{this._err(ie.missingWhitespaceAfterDoctypePublicKeyword),n.publicId="",this.state=P.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case k.APOSTROPHE:{this._err(ie.missingWhitespaceAfterDoctypePublicKeyword),n.publicId="",this.state=P.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case k.GREATER_THAN_SIGN:{this._err(ie.missingDoctypePublicIdentifier),n.forceQuirks=!0,this.state=P.DATA,this.emitCurrentDoctype(n);break}case k.EOF:{this._err(ie.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(ie.missingQuoteBeforeDoctypePublicIdentifier),n.forceQuirks=!0,this.state=P.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypePublicIdentifier(t){const n=this.currentToken;switch(t){case k.SPACE:case k.LINE_FEED:case k.TABULATION:case k.FORM_FEED:break;case k.QUOTATION_MARK:{n.publicId="",this.state=P.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case k.APOSTROPHE:{n.publicId="",this.state=P.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case k.GREATER_THAN_SIGN:{this._err(ie.missingDoctypePublicIdentifier),n.forceQuirks=!0,this.state=P.DATA,this.emitCurrentDoctype(n);break}case k.EOF:{this._err(ie.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(ie.missingQuoteBeforeDoctypePublicIdentifier),n.forceQuirks=!0,this.state=P.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypePublicIdentifierDoubleQuoted(t){const n=this.currentToken;switch(t){case k.QUOTATION_MARK:{this.state=P.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case k.NULL:{this._err(ie.unexpectedNullCharacter),n.publicId+=An;break}case k.GREATER_THAN_SIGN:{this._err(ie.abruptDoctypePublicIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=P.DATA;break}case k.EOF:{this._err(ie.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.publicId+=String.fromCodePoint(t)}}_stateDoctypePublicIdentifierSingleQuoted(t){const n=this.currentToken;switch(t){case k.APOSTROPHE:{this.state=P.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case k.NULL:{this._err(ie.unexpectedNullCharacter),n.publicId+=An;break}case k.GREATER_THAN_SIGN:{this._err(ie.abruptDoctypePublicIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=P.DATA;break}case k.EOF:{this._err(ie.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.publicId+=String.fromCodePoint(t)}}_stateAfterDoctypePublicIdentifier(t){const n=this.currentToken;switch(t){case k.SPACE:case k.LINE_FEED:case k.TABULATION:case k.FORM_FEED:{this.state=P.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;break}case k.GREATER_THAN_SIGN:{this.state=P.DATA,this.emitCurrentDoctype(n);break}case k.QUOTATION_MARK:{this._err(ie.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),n.systemId="",this.state=P.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case k.APOSTROPHE:{this._err(ie.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),n.systemId="",this.state=P.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case k.EOF:{this._err(ie.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(ie.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=P.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBetweenDoctypePublicAndSystemIdentifiers(t){const n=this.currentToken;switch(t){case k.SPACE:case k.LINE_FEED:case k.TABULATION:case k.FORM_FEED:break;case k.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=P.DATA;break}case k.QUOTATION_MARK:{n.systemId="",this.state=P.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case k.APOSTROPHE:{n.systemId="",this.state=P.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case k.EOF:{this._err(ie.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(ie.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=P.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateAfterDoctypeSystemKeyword(t){const n=this.currentToken;switch(t){case k.SPACE:case k.LINE_FEED:case k.TABULATION:case k.FORM_FEED:{this.state=P.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;break}case k.QUOTATION_MARK:{this._err(ie.missingWhitespaceAfterDoctypeSystemKeyword),n.systemId="",this.state=P.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case k.APOSTROPHE:{this._err(ie.missingWhitespaceAfterDoctypeSystemKeyword),n.systemId="",this.state=P.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case k.GREATER_THAN_SIGN:{this._err(ie.missingDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=P.DATA,this.emitCurrentDoctype(n);break}case k.EOF:{this._err(ie.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(ie.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=P.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypeSystemIdentifier(t){const n=this.currentToken;switch(t){case k.SPACE:case k.LINE_FEED:case k.TABULATION:case k.FORM_FEED:break;case k.QUOTATION_MARK:{n.systemId="",this.state=P.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case k.APOSTROPHE:{n.systemId="",this.state=P.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case k.GREATER_THAN_SIGN:{this._err(ie.missingDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=P.DATA,this.emitCurrentDoctype(n);break}case k.EOF:{this._err(ie.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(ie.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=P.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypeSystemIdentifierDoubleQuoted(t){const n=this.currentToken;switch(t){case k.QUOTATION_MARK:{this.state=P.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case k.NULL:{this._err(ie.unexpectedNullCharacter),n.systemId+=An;break}case k.GREATER_THAN_SIGN:{this._err(ie.abruptDoctypeSystemIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=P.DATA;break}case k.EOF:{this._err(ie.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.systemId+=String.fromCodePoint(t)}}_stateDoctypeSystemIdentifierSingleQuoted(t){const n=this.currentToken;switch(t){case k.APOSTROPHE:{this.state=P.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case k.NULL:{this._err(ie.unexpectedNullCharacter),n.systemId+=An;break}case k.GREATER_THAN_SIGN:{this._err(ie.abruptDoctypeSystemIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=P.DATA;break}case k.EOF:{this._err(ie.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.systemId+=String.fromCodePoint(t)}}_stateAfterDoctypeSystemIdentifier(t){const n=this.currentToken;switch(t){case k.SPACE:case k.LINE_FEED:case k.TABULATION:case k.FORM_FEED:break;case k.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=P.DATA;break}case k.EOF:{this._err(ie.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(ie.unexpectedCharacterAfterDoctypeSystemIdentifier),this.state=P.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBogusDoctype(t){const n=this.currentToken;switch(t){case k.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=P.DATA;break}case k.NULL:{this._err(ie.unexpectedNullCharacter);break}case k.EOF:{this.emitCurrentDoctype(n),this._emitEOFToken();break}}}_stateCdataSection(t){switch(t){case k.RIGHT_SQUARE_BRACKET:{this.state=P.CDATA_SECTION_BRACKET;break}case k.EOF:{this._err(ie.eofInCdata),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateCdataSectionBracket(t){t===k.RIGHT_SQUARE_BRACKET?this.state=P.CDATA_SECTION_END:(this._emitChars("]"),this.state=P.CDATA_SECTION,this._stateCdataSection(t))}_stateCdataSectionEnd(t){switch(t){case k.GREATER_THAN_SIGN:{this.state=P.DATA;break}case k.RIGHT_SQUARE_BRACKET:{this._emitChars("]");break}default:this._emitChars("]]"),this.state=P.CDATA_SECTION,this._stateCdataSection(t)}}_stateCharacterReference(){let t=this.entityDecoder.write(this.preprocessor.html,this.preprocessor.pos);if(t<0)if(this.preprocessor.lastChunkWritten)t=this.entityDecoder.end();else{this.active=!1,this.preprocessor.pos=this.preprocessor.html.length-1,this.consumedAfterSnapshot=0,this.preprocessor.endOfChunkHit=!0;return}t===0?(this.preprocessor.pos=this.entityStartPos,this._flushCodePointConsumedAsCharacterReference(k.AMPERSAND),this.state=!this._isCharacterReferenceInAttribute()&&DE(this.preprocessor.peek(1))?P.AMBIGUOUS_AMPERSAND:this.returnState):this.state=this.returnState}_stateAmbiguousAmpersand(t){DE(t)?this._flushCodePointConsumedAsCharacterReference(t):(t===k.SEMICOLON&&this._err(ie.unknownNamedCharacterReference),this.state=this.returnState,this._callState(t))}}const __=new Set([u.DD,u.DT,u.LI,u.OPTGROUP,u.OPTION,u.P,u.RB,u.RP,u.RT,u.RTC]),ME=new Set([...__,u.CAPTION,u.COLGROUP,u.TBODY,u.TD,u.TFOOT,u.TH,u.THEAD,u.TR]),Of=new Set([u.APPLET,u.CAPTION,u.HTML,u.MARQUEE,u.OBJECT,u.TABLE,u.TD,u.TEMPLATE,u.TH]),zN=new Set([...Of,u.OL,u.UL]),UN=new Set([...Of,u.BUTTON]),FE=new Set([u.ANNOTATION_XML,u.MI,u.MN,u.MO,u.MS,u.MTEXT]),zE=new Set([u.DESC,u.FOREIGN_OBJECT,u.TITLE]),$N=new Set([u.TR,u.TEMPLATE,u.HTML]),HN=new Set([u.TBODY,u.TFOOT,u.THEAD,u.TEMPLATE,u.HTML]),qN=new Set([u.TABLE,u.TEMPLATE,u.HTML]),jN=new Set([u.TD,u.TH]);class WN{get currentTmplContentOrNode(){return this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):this.current}constructor(t,n,r){this.treeAdapter=n,this.handler=r,this.items=[],this.tagIDs=[],this.stackTop=-1,this.tmplCount=0,this.currentTagId=u.UNKNOWN,this.current=t}_indexOf(t){return this.items.lastIndexOf(t,this.stackTop)}_isInTemplate(){return this.currentTagId===u.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===pe.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagId=this.tagIDs[this.stackTop]}push(t,n){this.stackTop++,this.items[this.stackTop]=t,this.current=t,this.tagIDs[this.stackTop]=n,this.currentTagId=n,this._isInTemplate()&&this.tmplCount++,this.handler.onItemPush(t,n,!0)}pop(){const t=this.current;this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!0)}replace(t,n){const r=this._indexOf(t);this.items[r]=n,r===this.stackTop&&(this.current=n)}insertAfter(t,n,r){const s=this._indexOf(t)+1;this.items.splice(s,0,n),this.tagIDs.splice(s,0,r),this.stackTop++,s===this.stackTop&&this._updateCurrentElement(),this.current&&this.currentTagId!==void 0&&this.handler.onItemPush(this.current,this.currentTagId,s===this.stackTop)}popUntilTagNamePopped(t){let n=this.stackTop+1;do n=this.tagIDs.lastIndexOf(t,n-1);while(n>0&&this.treeAdapter.getNamespaceURI(this.items[n])!==pe.HTML);this.shortenToLength(Math.max(n,0))}shortenToLength(t){for(;this.stackTop>=t;){const n=this.current;this.tmplCount>0&&this._isInTemplate()&&(this.tmplCount-=1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(n,this.stackTop<t)}}popUntilElementPopped(t){const n=this._indexOf(t);this.shortenToLength(Math.max(n,0))}popUntilPopped(t,n){const r=this._indexOfTagNames(t,n);this.shortenToLength(Math.max(r,0))}popUntilNumberedHeaderPopped(){this.popUntilPopped(eb,pe.HTML)}popUntilTableCellPopped(){this.popUntilPopped(jN,pe.HTML)}popAllUpToHtmlElement(){this.tmplCount=0,this.shortenToLength(1)}_indexOfTagNames(t,n){for(let r=this.stackTop;r>=0;r--)if(t.has(this.tagIDs[r])&&this.treeAdapter.getNamespaceURI(this.items[r])===n)return r;return-1}clearBackTo(t,n){const r=this._indexOfTagNames(t,n);this.shortenToLength(r+1)}clearBackToTableContext(){this.clearBackTo(qN,pe.HTML)}clearBackToTableBodyContext(){this.clearBackTo(HN,pe.HTML)}clearBackToTableRowContext(){this.clearBackTo($N,pe.HTML)}remove(t){const n=this._indexOf(t);n>=0&&(n===this.stackTop?this.pop():(this.items.splice(n,1),this.tagIDs.splice(n,1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!1)))}tryPeekProperlyNestedBodyElement(){return this.stackTop>=1&&this.tagIDs[1]===u.BODY?this.items[1]:null}contains(t){return this._indexOf(t)>-1}getCommonAncestor(t){const n=this._indexOf(t)-1;return n>=0?this.items[n]:null}isRootHtmlElementCurrent(){return this.stackTop===0&&this.tagIDs[0]===u.HTML}hasInDynamicScope(t,n){for(let r=this.stackTop;r>=0;r--){const s=this.tagIDs[r];switch(this.treeAdapter.getNamespaceURI(this.items[r])){case pe.HTML:{if(s===t)return!0;if(n.has(s))return!1;break}case pe.SVG:{if(zE.has(s))return!1;break}case pe.MATHML:{if(FE.has(s))return!1;break}}}return!0}hasInScope(t){return this.hasInDynamicScope(t,Of)}hasInListItemScope(t){return this.hasInDynamicScope(t,zN)}hasInButtonScope(t){return this.hasInDynamicScope(t,UN)}hasNumberedHeaderInScope(){for(let t=this.stackTop;t>=0;t--){const n=this.tagIDs[t];switch(this.treeAdapter.getNamespaceURI(this.items[t])){case pe.HTML:{if(eb.has(n))return!0;if(Of.has(n))return!1;break}case pe.SVG:{if(zE.has(n))return!1;break}case pe.MATHML:{if(FE.has(n))return!1;break}}}return!0}hasInTableScope(t){for(let n=this.stackTop;n>=0;n--)if(this.treeAdapter.getNamespaceURI(this.items[n])===pe.HTML)switch(this.tagIDs[n]){case t:return!0;case u.TABLE:case u.HTML:return!1}return!0}hasTableBodyContextInTableScope(){for(let t=this.stackTop;t>=0;t--)if(this.treeAdapter.getNamespaceURI(this.items[t])===pe.HTML)switch(this.tagIDs[t]){case u.TBODY:case u.THEAD:case u.TFOOT:return!0;case u.TABLE:case u.HTML:return!1}return!0}hasInSelectScope(t){for(let n=this.stackTop;n>=0;n--)if(this.treeAdapter.getNamespaceURI(this.items[n])===pe.HTML)switch(this.tagIDs[n]){case t:return!0;case u.OPTION:case u.OPTGROUP:break;default:return!1}return!0}generateImpliedEndTags(){for(;this.currentTagId!==void 0&&__.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;this.currentTagId!==void 0&&ME.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(t){for(;this.currentTagId!==void 0&&this.currentTagId!==t&&ME.has(this.currentTagId);)this.pop()}}const u0=3;var ri;(function(e){e[e.Marker=0]="Marker",e[e.Element=1]="Element"})(ri||(ri={}));const UE={type:ri.Marker};class GN{constructor(t){this.treeAdapter=t,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(t,n){const r=[],s=n.length,i=this.treeAdapter.getTagName(t),a=this.treeAdapter.getNamespaceURI(t);for(let o=0;o<this.entries.length;o++){const c=this.entries[o];if(c.type===ri.Marker)break;const{element:l}=c;if(this.treeAdapter.getTagName(l)===i&&this.treeAdapter.getNamespaceURI(l)===a){const d=this.treeAdapter.getAttrList(l);d.length===s&&r.push({idx:o,attrs:d})}}return r}_ensureNoahArkCondition(t){if(this.entries.length<u0)return;const n=this.treeAdapter.getAttrList(t),r=this._getNoahArkConditionCandidates(t,n);if(r.length<u0)return;const s=new Map(n.map(a=>[a.name,a.value]));let i=0;for(let a=0;a<r.length;a++){const o=r[a];o.attrs.every(c=>s.get(c.name)===c.value)&&(i+=1,i>=u0&&this.entries.splice(o.idx,1))}}insertMarker(){this.entries.unshift(UE)}pushElement(t,n){this._ensureNoahArkCondition(t),this.entries.unshift({type:ri.Element,element:t,token:n})}insertElementAfterBookmark(t,n){const r=this.entries.indexOf(this.bookmark);this.entries.splice(r,0,{type:ri.Element,element:t,token:n})}removeEntry(t){const n=this.entries.indexOf(t);n!==-1&&this.entries.splice(n,1)}clearToLastMarker(){const t=this.entries.indexOf(UE);t===-1?this.entries.length=0:this.entries.splice(0,t+1)}getElementEntryInScopeWithTagName(t){const n=this.entries.find(r=>r.type===ri.Marker||this.treeAdapter.getTagName(r.element)===t);return n&&n.type===ri.Element?n:null}getElementEntry(t){return this.entries.find(n=>n.type===ri.Element&&n.element===t)}}const vi={createDocument(){return{nodeName:"#document",mode:fs.NO_QUIRKS,childNodes:[]}},createDocumentFragment(){return{nodeName:"#document-fragment",childNodes:[]}},createElement(e,t,n){return{nodeName:e,tagName:e,attrs:n,namespaceURI:t,childNodes:[],parentNode:null}},createCommentNode(e){return{nodeName:"#comment",data:e,parentNode:null}},createTextNode(e){return{nodeName:"#text",value:e,parentNode:null}},appendChild(e,t){e.childNodes.push(t),t.parentNode=e},insertBefore(e,t,n){const r=e.childNodes.indexOf(n);e.childNodes.splice(r,0,t),t.parentNode=e},setTemplateContent(e,t){e.content=t},getTemplateContent(e){return e.content},setDocumentType(e,t,n,r){const s=e.childNodes.find(i=>i.nodeName==="#documentType");if(s)s.name=t,s.publicId=n,s.systemId=r;else{const i={nodeName:"#documentType",name:t,publicId:n,systemId:r,parentNode:null};vi.appendChild(e,i)}},setDocumentMode(e,t){e.mode=t},getDocumentMode(e){return e.mode},detachNode(e){if(e.parentNode){const t=e.parentNode.childNodes.indexOf(e);e.parentNode.childNodes.splice(t,1),e.parentNode=null}},insertText(e,t){if(e.childNodes.length>0){const n=e.childNodes[e.childNodes.length-1];if(vi.isTextNode(n)){n.value+=t;return}}vi.appendChild(e,vi.createTextNode(t))},insertTextBefore(e,t,n){const r=e.childNodes[e.childNodes.indexOf(n)-1];r&&vi.isTextNode(r)?r.value+=t:vi.insertBefore(e,vi.createTextNode(t),n)},adoptAttributes(e,t){const n=new Set(e.attrs.map(r=>r.name));for(let r=0;r<t.length;r++)n.has(t[r].name)||e.attrs.push(t[r])},getFirstChild(e){return e.childNodes[0]},getChildNodes(e){return e.childNodes},getParentNode(e){return e.parentNode},getAttrList(e){return e.attrs},getTagName(e){return e.tagName},getNamespaceURI(e){return e.namespaceURI},getTextNodeContent(e){return e.value},getCommentNodeContent(e){return e.data},getDocumentTypeNodeName(e){return e.name},getDocumentTypeNodePublicId(e){return e.publicId},getDocumentTypeNodeSystemId(e){return e.systemId},isTextNode(e){return e.nodeName==="#text"},isCommentNode(e){return e.nodeName==="#comment"},isDocumentTypeNode(e){return e.nodeName==="#documentType"},isElementNode(e){return Object.prototype.hasOwnProperty.call(e,"tagName")},setNodeSourceCodeLocation(e,t){e.sourceCodeLocation=t},getNodeSourceCodeLocation(e){return e.sourceCodeLocation},updateNodeSourceCodeLocation(e,t){e.sourceCodeLocation={...e.sourceCodeLocation,...t}}},S_="html",VN="about:legacy-compat",KN="http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd",T_=["+//silmaril//dtd html pro v0r11 19970101//","-//as//dtd html 3.0 aswedit + extensions//","-//advasoft ltd//dtd html 3.0 aswedit + extensions//","-//ietf//dtd html 2.0 level 1//","-//ietf//dtd html 2.0 level 2//","-//ietf//dtd html 2.0 strict level 1//","-//ietf//dtd html 2.0 strict level 2//","-//ietf//dtd html 2.0 strict//","-//ietf//dtd html 2.0//","-//ietf//dtd html 2.1e//","-//ietf//dtd html 3.0//","-//ietf//dtd html 3.2 final//","-//ietf//dtd html 3.2//","-//ietf//dtd html 3//","-//ietf//dtd html level 0//","-//ietf//dtd html level 1//","-//ietf//dtd html level 2//","-//ietf//dtd html level 3//","-//ietf//dtd html strict level 0//","-//ietf//dtd html strict level 1//","-//ietf//dtd html strict level 2//","-//ietf//dtd html strict level 3//","-//ietf//dtd html strict//","-//ietf//dtd html//","-//metrius//dtd metrius presentational//","-//microsoft//dtd internet explorer 2.0 html strict//","-//microsoft//dtd internet explorer 2.0 html//","-//microsoft//dtd internet explorer 2.0 tables//","-//microsoft//dtd internet explorer 3.0 html strict//","-//microsoft//dtd internet explorer 3.0 html//","-//microsoft//dtd internet explorer 3.0 tables//","-//netscape comm. corp.//dtd html//","-//netscape comm. corp.//dtd strict html//","-//o'reilly and associates//dtd html 2.0//","-//o'reilly and associates//dtd html extended 1.0//","-//o'reilly and associates//dtd html extended relaxed 1.0//","-//sq//dtd html 2.0 hotmetal + extensions//","-//softquad software//dtd hotmetal pro 6.0::19990601::extensions to html 4.0//","-//softquad//dtd hotmetal pro 4.0::19971010::extensions to html 4.0//","-//spyglass//dtd html 2.0 extended//","-//sun microsystems corp.//dtd hotjava html//","-//sun microsystems corp.//dtd hotjava strict html//","-//w3c//dtd html 3 1995-03-24//","-//w3c//dtd html 3.2 draft//","-//w3c//dtd html 3.2 final//","-//w3c//dtd html 3.2//","-//w3c//dtd html 3.2s draft//","-//w3c//dtd html 4.0 frameset//","-//w3c//dtd html 4.0 transitional//","-//w3c//dtd html experimental 19960712//","-//w3c//dtd html experimental 970421//","-//w3c//dtd w3 html//","-//w3o//dtd w3 html 3.0//","-//webtechs//dtd mozilla html 2.0//","-//webtechs//dtd mozilla html//"],YN=[...T_,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"],XN=new Set(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]),w_=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],QN=[...w_,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"];function $E(e,t){return t.some(n=>e.startsWith(n))}function ZN(e){return e.name===S_&&e.publicId===null&&(e.systemId===null||e.systemId===VN)}function JN(e){if(e.name!==S_)return fs.QUIRKS;const{systemId:t}=e;if(t&&t.toLowerCase()===KN)return fs.QUIRKS;let{publicId:n}=e;if(n!==null){if(n=n.toLowerCase(),XN.has(n))return fs.QUIRKS;let r=t===null?YN:T_;if($E(n,r))return fs.QUIRKS;if(r=t===null?w_:QN,$E(n,r))return fs.LIMITED_QUIRKS}return fs.NO_QUIRKS}const HE={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},eO="definitionurl",tO="definitionURL",nO=new Map(["attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map(e=>[e.toLowerCase(),e])),rO=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:pe.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:pe.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:pe.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:pe.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:pe.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:pe.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:pe.XLINK}],["xml:lang",{prefix:"xml",name:"lang",namespace:pe.XML}],["xml:space",{prefix:"xml",name:"space",namespace:pe.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:pe.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:pe.XMLNS}]]),sO=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map(e=>[e.toLowerCase(),e])),iO=new Set([u.B,u.BIG,u.BLOCKQUOTE,u.BODY,u.BR,u.CENTER,u.CODE,u.DD,u.DIV,u.DL,u.DT,u.EM,u.EMBED,u.H1,u.H2,u.H3,u.H4,u.H5,u.H6,u.HEAD,u.HR,u.I,u.IMG,u.LI,u.LISTING,u.MENU,u.META,u.NOBR,u.OL,u.P,u.PRE,u.RUBY,u.S,u.SMALL,u.SPAN,u.STRONG,u.STRIKE,u.SUB,u.SUP,u.TABLE,u.TT,u.U,u.UL,u.VAR]);function aO(e){const t=e.tagID;return t===u.FONT&&e.attrs.some(({name:r})=>r===za.COLOR||r===za.SIZE||r===za.FACE)||iO.has(t)}function A_(e){for(let t=0;t<e.attrs.length;t++)if(e.attrs[t].name===eO){e.attrs[t].name=tO;break}}function k_(e){for(let t=0;t<e.attrs.length;t++){const n=nO.get(e.attrs[t].name);n!=null&&(e.attrs[t].name=n)}}function Yg(e){for(let t=0;t<e.attrs.length;t++){const n=rO.get(e.attrs[t].name);n&&(e.attrs[t].prefix=n.prefix,e.attrs[t].name=n.name,e.attrs[t].namespace=n.namespace)}}function oO(e){const t=sO.get(e.tagName);t!=null&&(e.tagName=t,e.tagID=Ch(e.tagName))}function cO(e,t){return t===pe.MATHML&&(e===u.MI||e===u.MO||e===u.MN||e===u.MS||e===u.MTEXT)}function lO(e,t,n){if(t===pe.MATHML&&e===u.ANNOTATION_XML){for(let r=0;r<n.length;r++)if(n[r].name===za.ENCODING){const s=n[r].value.toLowerCase();return s===HE.TEXT_HTML||s===HE.APPLICATION_XML}}return t===pe.SVG&&(e===u.FOREIGN_OBJECT||e===u.DESC||e===u.TITLE)}function uO(e,t,n,r){return(!r||r===pe.HTML)&&lO(e,t,n)||(!r||r===pe.MATHML)&&cO(e,t)}const dO="hidden",fO=8,hO=3;var F;(function(e){e[e.INITIAL=0]="INITIAL",e[e.BEFORE_HTML=1]="BEFORE_HTML",e[e.BEFORE_HEAD=2]="BEFORE_HEAD",e[e.IN_HEAD=3]="IN_HEAD",e[e.IN_HEAD_NO_SCRIPT=4]="IN_HEAD_NO_SCRIPT",e[e.AFTER_HEAD=5]="AFTER_HEAD",e[e.IN_BODY=6]="IN_BODY",e[e.TEXT=7]="TEXT",e[e.IN_TABLE=8]="IN_TABLE",e[e.IN_TABLE_TEXT=9]="IN_TABLE_TEXT",e[e.IN_CAPTION=10]="IN_CAPTION",e[e.IN_COLUMN_GROUP=11]="IN_COLUMN_GROUP",e[e.IN_TABLE_BODY=12]="IN_TABLE_BODY",e[e.IN_ROW=13]="IN_ROW",e[e.IN_CELL=14]="IN_CELL",e[e.IN_SELECT=15]="IN_SELECT",e[e.IN_SELECT_IN_TABLE=16]="IN_SELECT_IN_TABLE",e[e.IN_TEMPLATE=17]="IN_TEMPLATE",e[e.AFTER_BODY=18]="AFTER_BODY",e[e.IN_FRAMESET=19]="IN_FRAMESET",e[e.AFTER_FRAMESET=20]="AFTER_FRAMESET",e[e.AFTER_AFTER_BODY=21]="AFTER_AFTER_BODY",e[e.AFTER_AFTER_FRAMESET=22]="AFTER_AFTER_FRAMESET"})(F||(F={}));const mO={startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1},I_=new Set([u.TABLE,u.TBODY,u.TFOOT,u.THEAD,u.TR]),qE={scriptingEnabled:!0,sourceCodeLocationInfo:!1,treeAdapter:vi,onParseError:null};let R_=class{constructor(t,n,r=null,s=null){this.fragmentContext=r,this.scriptHandler=s,this.currentToken=null,this.stopped=!1,this.insertionMode=F.INITIAL,this.originalInsertionMode=F.INITIAL,this.headElement=null,this.formElement=null,this.currentNotInHTML=!1,this.tmplInsertionModeStack=[],this.pendingCharacterTokens=[],this.hasNonWhitespacePendingCharacterToken=!1,this.framesetOk=!0,this.skipNextNewLine=!1,this.fosterParentingEnabled=!1,this.options={...qE,...t},this.treeAdapter=this.options.treeAdapter,this.onParseError=this.options.onParseError,this.onParseError&&(this.options.sourceCodeLocationInfo=!0),this.document=n??this.treeAdapter.createDocument(),this.tokenizer=new FN(this.options,this),this.activeFormattingElements=new GN(this.treeAdapter),this.fragmentContextID=r?Ch(this.treeAdapter.getTagName(r)):u.UNKNOWN,this._setContextModes(r??this.document,this.fragmentContextID),this.openElements=new WN(this.document,this.treeAdapter,this)}static parse(t,n){const r=new this(n);return r.tokenizer.write(t,!0),r.document}static getFragmentParser(t,n){const r={...qE,...n};t??(t=r.treeAdapter.createElement(V.TEMPLATE,pe.HTML,[]));const s=r.treeAdapter.createElement("documentmock",pe.HTML,[]),i=new this(r,s,t);return i.fragmentContextID===u.TEMPLATE&&i.tmplInsertionModeStack.unshift(F.IN_TEMPLATE),i._initTokenizerForFragmentParsing(),i._insertFakeRootElement(),i._resetInsertionMode(),i._findFormInFragmentContext(),i}getFragment(){const t=this.treeAdapter.getFirstChild(this.document),n=this.treeAdapter.createDocumentFragment();return this._adoptNodes(t,n),n}_err(t,n,r){var s;if(!this.onParseError)return;const i=(s=t.location)!==null&&s!==void 0?s:mO,a={code:n,startLine:i.startLine,startCol:i.startCol,startOffset:i.startOffset,endLine:r?i.startLine:i.endLine,endCol:r?i.startCol:i.endCol,endOffset:r?i.startOffset:i.endOffset};this.onParseError(a)}onItemPush(t,n,r){var s,i;(i=(s=this.treeAdapter).onItemPush)===null||i===void 0||i.call(s,t),r&&this.openElements.stackTop>0&&this._setContextModes(t,n)}onItemPop(t,n){var r,s;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(t,this.currentToken),(s=(r=this.treeAdapter).onItemPop)===null||s===void 0||s.call(r,t,this.openElements.current),n){let i,a;this.openElements.stackTop===0&&this.fragmentContext?(i=this.fragmentContext,a=this.fragmentContextID):{current:i,currentTagId:a}=this.openElements,this._setContextModes(i,a)}}_setContextModes(t,n){const r=t===this.document||t&&this.treeAdapter.getNamespaceURI(t)===pe.HTML;this.currentNotInHTML=!r,this.tokenizer.inForeignNode=!r&&t!==void 0&&n!==void 0&&!this._isIntegrationPoint(n,t)}_switchToTextParsing(t,n){this._insertElement(t,pe.HTML),this.tokenizer.state=n,this.originalInsertionMode=this.insertionMode,this.insertionMode=F.TEXT}switchToPlaintextParsing(){this.insertionMode=F.TEXT,this.originalInsertionMode=F.IN_BODY,this.tokenizer.state=Jr.PLAINTEXT}_getAdjustedCurrentElement(){return this.openElements.stackTop===0&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let t=this.fragmentContext;for(;t;){if(this.treeAdapter.getTagName(t)===V.FORM){this.formElement=t;break}t=this.treeAdapter.getParentNode(t)}}_initTokenizerForFragmentParsing(){if(!(!this.fragmentContext||this.treeAdapter.getNamespaceURI(this.fragmentContext)!==pe.HTML))switch(this.fragmentContextID){case u.TITLE:case u.TEXTAREA:{this.tokenizer.state=Jr.RCDATA;break}case u.STYLE:case u.XMP:case u.IFRAME:case u.NOEMBED:case u.NOFRAMES:case u.NOSCRIPT:{this.tokenizer.state=Jr.RAWTEXT;break}case u.SCRIPT:{this.tokenizer.state=Jr.SCRIPT_DATA;break}case u.PLAINTEXT:{this.tokenizer.state=Jr.PLAINTEXT;break}}}_setDocumentType(t){const n=t.name||"",r=t.publicId||"",s=t.systemId||"";if(this.treeAdapter.setDocumentType(this.document,n,r,s),t.location){const a=this.treeAdapter.getChildNodes(this.document).find(o=>this.treeAdapter.isDocumentTypeNode(o));a&&this.treeAdapter.setNodeSourceCodeLocation(a,t.location)}}_attachElementToTree(t,n){if(this.options.sourceCodeLocationInfo){const r=n&&{...n,startTag:n};this.treeAdapter.setNodeSourceCodeLocation(t,r)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(t);else{const r=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(r??this.document,t)}}_appendElement(t,n){const r=this.treeAdapter.createElement(t.tagName,n,t.attrs);this._attachElementToTree(r,t.location)}_insertElement(t,n){const r=this.treeAdapter.createElement(t.tagName,n,t.attrs);this._attachElementToTree(r,t.location),this.openElements.push(r,t.tagID)}_insertFakeElement(t,n){const r=this.treeAdapter.createElement(t,pe.HTML,[]);this._attachElementToTree(r,null),this.openElements.push(r,n)}_insertTemplate(t){const n=this.treeAdapter.createElement(t.tagName,pe.HTML,t.attrs),r=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(n,r),this._attachElementToTree(n,t.location),this.openElements.push(n,t.tagID),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(r,null)}_insertFakeRootElement(){const t=this.treeAdapter.createElement(V.HTML,pe.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(t,null),this.treeAdapter.appendChild(this.openElements.current,t),this.openElements.push(t,u.HTML)}_appendCommentNode(t,n){const r=this.treeAdapter.createCommentNode(t.data);this.treeAdapter.appendChild(n,r),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(r,t.location)}_insertCharacters(t){let n,r;if(this._shouldFosterParentOnInsertion()?({parent:n,beforeElement:r}=this._findFosterParentingLocation(),r?this.treeAdapter.insertTextBefore(n,t.chars,r):this.treeAdapter.insertText(n,t.chars)):(n=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(n,t.chars)),!t.location)return;const s=this.treeAdapter.getChildNodes(n),i=r?s.lastIndexOf(r):s.length,a=s[i-1];if(this.treeAdapter.getNodeSourceCodeLocation(a)){const{endLine:c,endCol:l,endOffset:d}=t.location;this.treeAdapter.updateNodeSourceCodeLocation(a,{endLine:c,endCol:l,endOffset:d})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(a,t.location)}_adoptNodes(t,n){for(let r=this.treeAdapter.getFirstChild(t);r;r=this.treeAdapter.getFirstChild(t))this.treeAdapter.detachNode(r),this.treeAdapter.appendChild(n,r)}_setEndLocation(t,n){if(this.treeAdapter.getNodeSourceCodeLocation(t)&&n.location){const r=n.location,s=this.treeAdapter.getTagName(t),i=n.type===zt.END_TAG&&s===n.tagName?{endTag:{...r},endLine:r.endLine,endCol:r.endCol,endOffset:r.endOffset}:{endLine:r.startLine,endCol:r.startCol,endOffset:r.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(t,i)}}shouldProcessStartTagTokenInForeignContent(t){if(!this.currentNotInHTML)return!1;let n,r;return this.openElements.stackTop===0&&this.fragmentContext?(n=this.fragmentContext,r=this.fragmentContextID):{current:n,currentTagId:r}=this.openElements,t.tagID===u.SVG&&this.treeAdapter.getTagName(n)===V.ANNOTATION_XML&&this.treeAdapter.getNamespaceURI(n)===pe.MATHML?!1:this.tokenizer.inForeignNode||(t.tagID===u.MGLYPH||t.tagID===u.MALIGNMARK)&&r!==void 0&&!this._isIntegrationPoint(r,n,pe.HTML)}_processToken(t){switch(t.type){case zt.CHARACTER:{this.onCharacter(t);break}case zt.NULL_CHARACTER:{this.onNullCharacter(t);break}case zt.COMMENT:{this.onComment(t);break}case zt.DOCTYPE:{this.onDoctype(t);break}case zt.START_TAG:{this._processStartTag(t);break}case zt.END_TAG:{this.onEndTag(t);break}case zt.EOF:{this.onEof(t);break}case zt.WHITESPACE_CHARACTER:{this.onWhitespaceCharacter(t);break}}}_isIntegrationPoint(t,n,r){const s=this.treeAdapter.getNamespaceURI(n),i=this.treeAdapter.getAttrList(n);return uO(t,s,i,r)}_reconstructActiveFormattingElements(){const t=this.activeFormattingElements.entries.length;if(t){const n=this.activeFormattingElements.entries.findIndex(s=>s.type===ri.Marker||this.openElements.contains(s.element)),r=n===-1?t-1:n-1;for(let s=r;s>=0;s--){const i=this.activeFormattingElements.entries[s];this._insertElement(i.token,this.treeAdapter.getNamespaceURI(i.element)),i.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=F.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(u.P),this.openElements.popUntilTagNamePopped(u.P)}_resetInsertionMode(){for(let t=this.openElements.stackTop;t>=0;t--)switch(t===0&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[t]){case u.TR:{this.insertionMode=F.IN_ROW;return}case u.TBODY:case u.THEAD:case u.TFOOT:{this.insertionMode=F.IN_TABLE_BODY;return}case u.CAPTION:{this.insertionMode=F.IN_CAPTION;return}case u.COLGROUP:{this.insertionMode=F.IN_COLUMN_GROUP;return}case u.TABLE:{this.insertionMode=F.IN_TABLE;return}case u.BODY:{this.insertionMode=F.IN_BODY;return}case u.FRAMESET:{this.insertionMode=F.IN_FRAMESET;return}case u.SELECT:{this._resetInsertionModeForSelect(t);return}case u.TEMPLATE:{this.insertionMode=this.tmplInsertionModeStack[0];return}case u.HTML:{this.insertionMode=this.headElement?F.AFTER_HEAD:F.BEFORE_HEAD;return}case u.TD:case u.TH:{if(t>0){this.insertionMode=F.IN_CELL;return}break}case u.HEAD:{if(t>0){this.insertionMode=F.IN_HEAD;return}break}}this.insertionMode=F.IN_BODY}_resetInsertionModeForSelect(t){if(t>0)for(let n=t-1;n>0;n--){const r=this.openElements.tagIDs[n];if(r===u.TEMPLATE)break;if(r===u.TABLE){this.insertionMode=F.IN_SELECT_IN_TABLE;return}}this.insertionMode=F.IN_SELECT}_isElementCausesFosterParenting(t){return I_.has(t)}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this.openElements.currentTagId!==void 0&&this._isElementCausesFosterParenting(this.openElements.currentTagId)}_findFosterParentingLocation(){for(let t=this.openElements.stackTop;t>=0;t--){const n=this.openElements.items[t];switch(this.openElements.tagIDs[t]){case u.TEMPLATE:{if(this.treeAdapter.getNamespaceURI(n)===pe.HTML)return{parent:this.treeAdapter.getTemplateContent(n),beforeElement:null};break}case u.TABLE:{const r=this.treeAdapter.getParentNode(n);return r?{parent:r,beforeElement:n}:{parent:this.openElements.items[t-1],beforeElement:null}}}}return{parent:this.openElements.items[0],beforeElement:null}}_fosterParentElement(t){const n=this._findFosterParentingLocation();n.beforeElement?this.treeAdapter.insertBefore(n.parent,t,n.beforeElement):this.treeAdapter.appendChild(n.parent,t)}_isSpecialElement(t,n){const r=this.treeAdapter.getNamespaceURI(t);return PN[r].has(n)}onCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){jD(this,t);return}switch(this.insertionMode){case F.INITIAL:{Ul(this,t);break}case F.BEFORE_HTML:{Ql(this,t);break}case F.BEFORE_HEAD:{Zl(this,t);break}case F.IN_HEAD:{Jl(this,t);break}case F.IN_HEAD_NO_SCRIPT:{eu(this,t);break}case F.AFTER_HEAD:{tu(this,t);break}case F.IN_BODY:case F.IN_CAPTION:case F.IN_CELL:case F.IN_TEMPLATE:{P_(this,t);break}case F.TEXT:case F.IN_SELECT:case F.IN_SELECT_IN_TABLE:{this._insertCharacters(t);break}case F.IN_TABLE:case F.IN_TABLE_BODY:case F.IN_ROW:{d0(this,t);break}case F.IN_TABLE_TEXT:{F_(this,t);break}case F.IN_COLUMN_GROUP:{Df(this,t);break}case F.AFTER_BODY:{Lf(this,t);break}case F.AFTER_AFTER_BODY:{Pd(this,t);break}}}onNullCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){qD(this,t);return}switch(this.insertionMode){case F.INITIAL:{Ul(this,t);break}case F.BEFORE_HTML:{Ql(this,t);break}case F.BEFORE_HEAD:{Zl(this,t);break}case F.IN_HEAD:{Jl(this,t);break}case F.IN_HEAD_NO_SCRIPT:{eu(this,t);break}case F.AFTER_HEAD:{tu(this,t);break}case F.TEXT:{this._insertCharacters(t);break}case F.IN_TABLE:case F.IN_TABLE_BODY:case F.IN_ROW:{d0(this,t);break}case F.IN_COLUMN_GROUP:{Df(this,t);break}case F.AFTER_BODY:{Lf(this,t);break}case F.AFTER_AFTER_BODY:{Pd(this,t);break}}}onComment(t){if(this.skipNextNewLine=!1,this.currentNotInHTML){tb(this,t);return}switch(this.insertionMode){case F.INITIAL:case F.BEFORE_HTML:case F.BEFORE_HEAD:case F.IN_HEAD:case F.IN_HEAD_NO_SCRIPT:case F.AFTER_HEAD:case F.IN_BODY:case F.IN_TABLE:case F.IN_CAPTION:case F.IN_COLUMN_GROUP:case F.IN_TABLE_BODY:case F.IN_ROW:case F.IN_CELL:case F.IN_SELECT:case F.IN_SELECT_IN_TABLE:case F.IN_TEMPLATE:case F.IN_FRAMESET:case F.AFTER_FRAMESET:{tb(this,t);break}case F.IN_TABLE_TEXT:{$l(this,t);break}case F.AFTER_BODY:{xO(this,t);break}case F.AFTER_AFTER_BODY:case F.AFTER_AFTER_FRAMESET:{vO(this,t);break}}}onDoctype(t){switch(this.skipNextNewLine=!1,this.insertionMode){case F.INITIAL:{_O(this,t);break}case F.BEFORE_HEAD:case F.IN_HEAD:case F.IN_HEAD_NO_SCRIPT:case F.AFTER_HEAD:{this._err(t,ie.misplacedDoctype);break}case F.IN_TABLE_TEXT:{$l(this,t);break}}}onStartTag(t){this.skipNextNewLine=!1,this.currentToken=t,this._processStartTag(t),t.selfClosing&&!t.ackSelfClosing&&this._err(t,ie.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(t){this.shouldProcessStartTagTokenInForeignContent(t)?WD(this,t):this._startTagOutsideForeignContent(t)}_startTagOutsideForeignContent(t){switch(this.insertionMode){case F.INITIAL:{Ul(this,t);break}case F.BEFORE_HTML:{SO(this,t);break}case F.BEFORE_HEAD:{wO(this,t);break}case F.IN_HEAD:{Ks(this,t);break}case F.IN_HEAD_NO_SCRIPT:{IO(this,t);break}case F.AFTER_HEAD:{BO(this,t);break}case F.IN_BODY:{Mr(this,t);break}case F.IN_TABLE:{Wc(this,t);break}case F.IN_TABLE_TEXT:{$l(this,t);break}case F.IN_CAPTION:{AD(this,t);break}case F.IN_COLUMN_GROUP:{Zg(this,t);break}case F.IN_TABLE_BODY:{_h(this,t);break}case F.IN_ROW:{Sh(this,t);break}case F.IN_CELL:{RD(this,t);break}case F.IN_SELECT:{$_(this,t);break}case F.IN_SELECT_IN_TABLE:{PD(this,t);break}case F.IN_TEMPLATE:{OD(this,t);break}case F.AFTER_BODY:{LD(this,t);break}case F.IN_FRAMESET:{MD(this,t);break}case F.AFTER_FRAMESET:{zD(this,t);break}case F.AFTER_AFTER_BODY:{$D(this,t);break}case F.AFTER_AFTER_FRAMESET:{HD(this,t);break}}}onEndTag(t){this.skipNextNewLine=!1,this.currentToken=t,this.currentNotInHTML?GD(this,t):this._endTagOutsideForeignContent(t)}_endTagOutsideForeignContent(t){switch(this.insertionMode){case F.INITIAL:{Ul(this,t);break}case F.BEFORE_HTML:{TO(this,t);break}case F.BEFORE_HEAD:{AO(this,t);break}case F.IN_HEAD:{kO(this,t);break}case F.IN_HEAD_NO_SCRIPT:{RO(this,t);break}case F.AFTER_HEAD:{PO(this,t);break}case F.IN_BODY:{vh(this,t);break}case F.TEXT:{pD(this,t);break}case F.IN_TABLE:{xu(this,t);break}case F.IN_TABLE_TEXT:{$l(this,t);break}case F.IN_CAPTION:{kD(this,t);break}case F.IN_COLUMN_GROUP:{ID(this,t);break}case F.IN_TABLE_BODY:{nb(this,t);break}case F.IN_ROW:{U_(this,t);break}case F.IN_CELL:{BD(this,t);break}case F.IN_SELECT:{H_(this,t);break}case F.IN_SELECT_IN_TABLE:{ND(this,t);break}case F.IN_TEMPLATE:{DD(this,t);break}case F.AFTER_BODY:{j_(this,t);break}case F.IN_FRAMESET:{FD(this,t);break}case F.AFTER_FRAMESET:{UD(this,t);break}case F.AFTER_AFTER_BODY:{Pd(this,t);break}}}onEof(t){switch(this.insertionMode){case F.INITIAL:{Ul(this,t);break}case F.BEFORE_HTML:{Ql(this,t);break}case F.BEFORE_HEAD:{Zl(this,t);break}case F.IN_HEAD:{Jl(this,t);break}case F.IN_HEAD_NO_SCRIPT:{eu(this,t);break}case F.AFTER_HEAD:{tu(this,t);break}case F.IN_BODY:case F.IN_TABLE:case F.IN_CAPTION:case F.IN_COLUMN_GROUP:case F.IN_TABLE_BODY:case F.IN_ROW:case F.IN_CELL:case F.IN_SELECT:case F.IN_SELECT_IN_TABLE:{L_(this,t);break}case F.TEXT:{yD(this,t);break}case F.IN_TABLE_TEXT:{$l(this,t);break}case F.IN_TEMPLATE:{q_(this,t);break}case F.AFTER_BODY:case F.IN_FRAMESET:case F.AFTER_FRAMESET:case F.AFTER_AFTER_BODY:case F.AFTER_AFTER_FRAMESET:{Qg(this,t);break}}}onWhitespaceCharacter(t){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,t.chars.charCodeAt(0)===k.LINE_FEED)){if(t.chars.length===1)return;t.chars=t.chars.substr(1)}if(this.tokenizer.inForeignNode){this._insertCharacters(t);return}switch(this.insertionMode){case F.IN_HEAD:case F.IN_HEAD_NO_SCRIPT:case F.AFTER_HEAD:case F.TEXT:case F.IN_COLUMN_GROUP:case F.IN_SELECT:case F.IN_SELECT_IN_TABLE:case F.IN_FRAMESET:case F.AFTER_FRAMESET:{this._insertCharacters(t);break}case F.IN_BODY:case F.IN_CAPTION:case F.IN_CELL:case F.IN_TEMPLATE:case F.AFTER_BODY:case F.AFTER_AFTER_BODY:case F.AFTER_AFTER_FRAMESET:{B_(this,t);break}case F.IN_TABLE:case F.IN_TABLE_BODY:case F.IN_ROW:{d0(this,t);break}case F.IN_TABLE_TEXT:{M_(this,t);break}}}};function bO(e,t){let n=e.activeFormattingElements.getElementEntryInScopeWithTagName(t.tagName);return n?e.openElements.contains(n.element)?e.openElements.hasInScope(t.tagID)||(n=null):(e.activeFormattingElements.removeEntry(n),n=null):D_(e,t),n}function gO(e,t){let n=null,r=e.openElements.stackTop;for(;r>=0;r--){const s=e.openElements.items[r];if(s===t.element)break;e._isSpecialElement(s,e.openElements.tagIDs[r])&&(n=s)}return n||(e.openElements.shortenToLength(Math.max(r,0)),e.activeFormattingElements.removeEntry(t)),n}function pO(e,t,n){let r=t,s=e.openElements.getCommonAncestor(t);for(let i=0,a=s;a!==n;i++,a=s){s=e.openElements.getCommonAncestor(a);const o=e.activeFormattingElements.getElementEntry(a),c=o&&i>=hO;!o||c?(c&&e.activeFormattingElements.removeEntry(o),e.openElements.remove(a)):(a=yO(e,o),r===t&&(e.activeFormattingElements.bookmark=o),e.treeAdapter.detachNode(r),e.treeAdapter.appendChild(a,r),r=a)}return r}function yO(e,t){const n=e.treeAdapter.getNamespaceURI(t.element),r=e.treeAdapter.createElement(t.token.tagName,n,t.token.attrs);return e.openElements.replace(t.element,r),t.element=r,r}function EO(e,t,n){const r=e.treeAdapter.getTagName(t),s=Ch(r);if(e._isElementCausesFosterParenting(s))e._fosterParentElement(n);else{const i=e.treeAdapter.getNamespaceURI(t);s===u.TEMPLATE&&i===pe.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,n)}}function CO(e,t,n){const r=e.treeAdapter.getNamespaceURI(n.element),{token:s}=n,i=e.treeAdapter.createElement(s.tagName,r,s.attrs);e._adoptNodes(t,i),e.treeAdapter.appendChild(t,i),e.activeFormattingElements.insertElementAfterBookmark(i,s),e.activeFormattingElements.removeEntry(n),e.openElements.remove(n.element),e.openElements.insertAfter(t,i,s.tagID)}function Xg(e,t){for(let n=0;n<fO;n++){const r=bO(e,t);if(!r)break;const s=gO(e,r);if(!s)break;e.activeFormattingElements.bookmark=r;const i=pO(e,s,r.element),a=e.openElements.getCommonAncestor(r.element);e.treeAdapter.detachNode(i),a&&EO(e,a,i),CO(e,s,r)}}function tb(e,t){e._appendCommentNode(t,e.openElements.currentTmplContentOrNode)}function xO(e,t){e._appendCommentNode(t,e.openElements.items[0])}function vO(e,t){e._appendCommentNode(t,e.document)}function Qg(e,t){if(e.stopped=!0,t.location){const n=e.fragmentContext?0:2;for(let r=e.openElements.stackTop;r>=n;r--)e._setEndLocation(e.openElements.items[r],t);if(!e.fragmentContext&&e.openElements.stackTop>=0){const r=e.openElements.items[0],s=e.treeAdapter.getNodeSourceCodeLocation(r);if(s&&!s.endTag&&(e._setEndLocation(r,t),e.openElements.stackTop>=1)){const i=e.openElements.items[1],a=e.treeAdapter.getNodeSourceCodeLocation(i);a&&!a.endTag&&e._setEndLocation(i,t)}}}}function _O(e,t){e._setDocumentType(t);const n=t.forceQuirks?fs.QUIRKS:JN(t);ZN(t)||e._err(t,ie.nonConformingDoctype),e.treeAdapter.setDocumentMode(e.document,n),e.insertionMode=F.BEFORE_HTML}function Ul(e,t){e._err(t,ie.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,fs.QUIRKS),e.insertionMode=F.BEFORE_HTML,e._processToken(t)}function SO(e,t){t.tagID===u.HTML?(e._insertElement(t,pe.HTML),e.insertionMode=F.BEFORE_HEAD):Ql(e,t)}function TO(e,t){const n=t.tagID;(n===u.HTML||n===u.HEAD||n===u.BODY||n===u.BR)&&Ql(e,t)}function Ql(e,t){e._insertFakeRootElement(),e.insertionMode=F.BEFORE_HEAD,e._processToken(t)}function wO(e,t){switch(t.tagID){case u.HTML:{Mr(e,t);break}case u.HEAD:{e._insertElement(t,pe.HTML),e.headElement=e.openElements.current,e.insertionMode=F.IN_HEAD;break}default:Zl(e,t)}}function AO(e,t){const n=t.tagID;n===u.HEAD||n===u.BODY||n===u.HTML||n===u.BR?Zl(e,t):e._err(t,ie.endTagWithoutMatchingOpenElement)}function Zl(e,t){e._insertFakeElement(V.HEAD,u.HEAD),e.headElement=e.openElements.current,e.insertionMode=F.IN_HEAD,e._processToken(t)}function Ks(e,t){switch(t.tagID){case u.HTML:{Mr(e,t);break}case u.BASE:case u.BASEFONT:case u.BGSOUND:case u.LINK:case u.META:{e._appendElement(t,pe.HTML),t.ackSelfClosing=!0;break}case u.TITLE:{e._switchToTextParsing(t,Jr.RCDATA);break}case u.NOSCRIPT:{e.options.scriptingEnabled?e._switchToTextParsing(t,Jr.RAWTEXT):(e._insertElement(t,pe.HTML),e.insertionMode=F.IN_HEAD_NO_SCRIPT);break}case u.NOFRAMES:case u.STYLE:{e._switchToTextParsing(t,Jr.RAWTEXT);break}case u.SCRIPT:{e._switchToTextParsing(t,Jr.SCRIPT_DATA);break}case u.TEMPLATE:{e._insertTemplate(t),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=F.IN_TEMPLATE,e.tmplInsertionModeStack.unshift(F.IN_TEMPLATE);break}case u.HEAD:{e._err(t,ie.misplacedStartTagForHeadElement);break}default:Jl(e,t)}}function kO(e,t){switch(t.tagID){case u.HEAD:{e.openElements.pop(),e.insertionMode=F.AFTER_HEAD;break}case u.BODY:case u.BR:case u.HTML:{Jl(e,t);break}case u.TEMPLATE:{Ao(e,t);break}default:e._err(t,ie.endTagWithoutMatchingOpenElement)}}function Ao(e,t){e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagId!==u.TEMPLATE&&e._err(t,ie.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(u.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode()):e._err(t,ie.endTagWithoutMatchingOpenElement)}function Jl(e,t){e.openElements.pop(),e.insertionMode=F.AFTER_HEAD,e._processToken(t)}function IO(e,t){switch(t.tagID){case u.HTML:{Mr(e,t);break}case u.BASEFONT:case u.BGSOUND:case u.HEAD:case u.LINK:case u.META:case u.NOFRAMES:case u.STYLE:{Ks(e,t);break}case u.NOSCRIPT:{e._err(t,ie.nestedNoscriptInHead);break}default:eu(e,t)}}function RO(e,t){switch(t.tagID){case u.NOSCRIPT:{e.openElements.pop(),e.insertionMode=F.IN_HEAD;break}case u.BR:{eu(e,t);break}default:e._err(t,ie.endTagWithoutMatchingOpenElement)}}function eu(e,t){const n=t.type===zt.EOF?ie.openElementsLeftAfterEof:ie.disallowedContentInNoscriptInHead;e._err(t,n),e.openElements.pop(),e.insertionMode=F.IN_HEAD,e._processToken(t)}function BO(e,t){switch(t.tagID){case u.HTML:{Mr(e,t);break}case u.BODY:{e._insertElement(t,pe.HTML),e.framesetOk=!1,e.insertionMode=F.IN_BODY;break}case u.FRAMESET:{e._insertElement(t,pe.HTML),e.insertionMode=F.IN_FRAMESET;break}case u.BASE:case u.BASEFONT:case u.BGSOUND:case u.LINK:case u.META:case u.NOFRAMES:case u.SCRIPT:case u.STYLE:case u.TEMPLATE:case u.TITLE:{e._err(t,ie.abandonedHeadElementChild),e.openElements.push(e.headElement,u.HEAD),Ks(e,t),e.openElements.remove(e.headElement);break}case u.HEAD:{e._err(t,ie.misplacedStartTagForHeadElement);break}default:tu(e,t)}}function PO(e,t){switch(t.tagID){case u.BODY:case u.HTML:case u.BR:{tu(e,t);break}case u.TEMPLATE:{Ao(e,t);break}default:e._err(t,ie.endTagWithoutMatchingOpenElement)}}function tu(e,t){e._insertFakeElement(V.BODY,u.BODY),e.insertionMode=F.IN_BODY,xh(e,t)}function xh(e,t){switch(t.type){case zt.CHARACTER:{P_(e,t);break}case zt.WHITESPACE_CHARACTER:{B_(e,t);break}case zt.COMMENT:{tb(e,t);break}case zt.START_TAG:{Mr(e,t);break}case zt.END_TAG:{vh(e,t);break}case zt.EOF:{L_(e,t);break}}}function B_(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function P_(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function NO(e,t){e.openElements.tmplCount===0&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}function OO(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e.openElements.tmplCount===0&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(n,t.attrs))}function DO(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&n&&(e.treeAdapter.detachNode(n),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,pe.HTML),e.insertionMode=F.IN_FRAMESET)}function LO(e,t){e.openElements.hasInButtonScope(u.P)&&e._closePElement(),e._insertElement(t,pe.HTML)}function MO(e,t){e.openElements.hasInButtonScope(u.P)&&e._closePElement(),e.openElements.currentTagId!==void 0&&eb.has(e.openElements.currentTagId)&&e.openElements.pop(),e._insertElement(t,pe.HTML)}function FO(e,t){e.openElements.hasInButtonScope(u.P)&&e._closePElement(),e._insertElement(t,pe.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function zO(e,t){const n=e.openElements.tmplCount>0;(!e.formElement||n)&&(e.openElements.hasInButtonScope(u.P)&&e._closePElement(),e._insertElement(t,pe.HTML),n||(e.formElement=e.openElements.current))}function UO(e,t){e.framesetOk=!1;const n=t.tagID;for(let r=e.openElements.stackTop;r>=0;r--){const s=e.openElements.tagIDs[r];if(n===u.LI&&s===u.LI||(n===u.DD||n===u.DT)&&(s===u.DD||s===u.DT)){e.openElements.generateImpliedEndTagsWithExclusion(s),e.openElements.popUntilTagNamePopped(s);break}if(s!==u.ADDRESS&&s!==u.DIV&&s!==u.P&&e._isSpecialElement(e.openElements.items[r],s))break}e.openElements.hasInButtonScope(u.P)&&e._closePElement(),e._insertElement(t,pe.HTML)}function $O(e,t){e.openElements.hasInButtonScope(u.P)&&e._closePElement(),e._insertElement(t,pe.HTML),e.tokenizer.state=Jr.PLAINTEXT}function HO(e,t){e.openElements.hasInScope(u.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(u.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,pe.HTML),e.framesetOk=!1}function qO(e,t){const n=e.activeFormattingElements.getElementEntryInScopeWithTagName(V.A);n&&(Xg(e,t),e.openElements.remove(n.element),e.activeFormattingElements.removeEntry(n)),e._reconstructActiveFormattingElements(),e._insertElement(t,pe.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function jO(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,pe.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function WO(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(u.NOBR)&&(Xg(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,pe.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function GO(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,pe.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function VO(e,t){e.treeAdapter.getDocumentMode(e.document)!==fs.QUIRKS&&e.openElements.hasInButtonScope(u.P)&&e._closePElement(),e._insertElement(t,pe.HTML),e.framesetOk=!1,e.insertionMode=F.IN_TABLE}function N_(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,pe.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function O_(e){const t=x_(e,za.TYPE);return t!=null&&t.toLowerCase()===dO}function KO(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,pe.HTML),O_(t)||(e.framesetOk=!1),t.ackSelfClosing=!0}function YO(e,t){e._appendElement(t,pe.HTML),t.ackSelfClosing=!0}function XO(e,t){e.openElements.hasInButtonScope(u.P)&&e._closePElement(),e._appendElement(t,pe.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function QO(e,t){t.tagName=V.IMG,t.tagID=u.IMG,N_(e,t)}function ZO(e,t){e._insertElement(t,pe.HTML),e.skipNextNewLine=!0,e.tokenizer.state=Jr.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=F.TEXT}function JO(e,t){e.openElements.hasInButtonScope(u.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,Jr.RAWTEXT)}function eD(e,t){e.framesetOk=!1,e._switchToTextParsing(t,Jr.RAWTEXT)}function jE(e,t){e._switchToTextParsing(t,Jr.RAWTEXT)}function tD(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,pe.HTML),e.framesetOk=!1,e.insertionMode=e.insertionMode===F.IN_TABLE||e.insertionMode===F.IN_CAPTION||e.insertionMode===F.IN_TABLE_BODY||e.insertionMode===F.IN_ROW||e.insertionMode===F.IN_CELL?F.IN_SELECT_IN_TABLE:F.IN_SELECT}function nD(e,t){e.openElements.currentTagId===u.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,pe.HTML)}function rD(e,t){e.openElements.hasInScope(u.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,pe.HTML)}function sD(e,t){e.openElements.hasInScope(u.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(u.RTC),e._insertElement(t,pe.HTML)}function iD(e,t){e._reconstructActiveFormattingElements(),A_(t),Yg(t),t.selfClosing?e._appendElement(t,pe.MATHML):e._insertElement(t,pe.MATHML),t.ackSelfClosing=!0}function aD(e,t){e._reconstructActiveFormattingElements(),k_(t),Yg(t),t.selfClosing?e._appendElement(t,pe.SVG):e._insertElement(t,pe.SVG),t.ackSelfClosing=!0}function WE(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,pe.HTML)}function Mr(e,t){switch(t.tagID){case u.I:case u.S:case u.B:case u.U:case u.EM:case u.TT:case u.BIG:case u.CODE:case u.FONT:case u.SMALL:case u.STRIKE:case u.STRONG:{jO(e,t);break}case u.A:{qO(e,t);break}case u.H1:case u.H2:case u.H3:case u.H4:case u.H5:case u.H6:{MO(e,t);break}case u.P:case u.DL:case u.OL:case u.UL:case u.DIV:case u.DIR:case u.NAV:case u.MAIN:case u.MENU:case u.ASIDE:case u.CENTER:case u.FIGURE:case u.FOOTER:case u.HEADER:case u.HGROUP:case u.DIALOG:case u.DETAILS:case u.ADDRESS:case u.ARTICLE:case u.SEARCH:case u.SECTION:case u.SUMMARY:case u.FIELDSET:case u.BLOCKQUOTE:case u.FIGCAPTION:{LO(e,t);break}case u.LI:case u.DD:case u.DT:{UO(e,t);break}case u.BR:case u.IMG:case u.WBR:case u.AREA:case u.EMBED:case u.KEYGEN:{N_(e,t);break}case u.HR:{XO(e,t);break}case u.RB:case u.RTC:{rD(e,t);break}case u.RT:case u.RP:{sD(e,t);break}case u.PRE:case u.LISTING:{FO(e,t);break}case u.XMP:{JO(e,t);break}case u.SVG:{aD(e,t);break}case u.HTML:{NO(e,t);break}case u.BASE:case u.LINK:case u.META:case u.STYLE:case u.TITLE:case u.SCRIPT:case u.BGSOUND:case u.BASEFONT:case u.TEMPLATE:{Ks(e,t);break}case u.BODY:{OO(e,t);break}case u.FORM:{zO(e,t);break}case u.NOBR:{WO(e,t);break}case u.MATH:{iD(e,t);break}case u.TABLE:{VO(e,t);break}case u.INPUT:{KO(e,t);break}case u.PARAM:case u.TRACK:case u.SOURCE:{YO(e,t);break}case u.IMAGE:{QO(e,t);break}case u.BUTTON:{HO(e,t);break}case u.APPLET:case u.OBJECT:case u.MARQUEE:{GO(e,t);break}case u.IFRAME:{eD(e,t);break}case u.SELECT:{tD(e,t);break}case u.OPTION:case u.OPTGROUP:{nD(e,t);break}case u.NOEMBED:case u.NOFRAMES:{jE(e,t);break}case u.FRAMESET:{DO(e,t);break}case u.TEXTAREA:{ZO(e,t);break}case u.NOSCRIPT:{e.options.scriptingEnabled?jE(e,t):WE(e,t);break}case u.PLAINTEXT:{$O(e,t);break}case u.COL:case u.TH:case u.TD:case u.TR:case u.HEAD:case u.FRAME:case u.TBODY:case u.TFOOT:case u.THEAD:case u.CAPTION:case u.COLGROUP:break;default:WE(e,t)}}function oD(e,t){if(e.openElements.hasInScope(u.BODY)&&(e.insertionMode=F.AFTER_BODY,e.options.sourceCodeLocationInfo)){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e._setEndLocation(n,t)}}function cD(e,t){e.openElements.hasInScope(u.BODY)&&(e.insertionMode=F.AFTER_BODY,j_(e,t))}function lD(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n))}function uD(e){const t=e.openElements.tmplCount>0,{formElement:n}=e;t||(e.formElement=null),(n||t)&&e.openElements.hasInScope(u.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(u.FORM):n&&e.openElements.remove(n))}function dD(e){e.openElements.hasInButtonScope(u.P)||e._insertFakeElement(V.P,u.P),e._closePElement()}function fD(e){e.openElements.hasInListItemScope(u.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(u.LI),e.openElements.popUntilTagNamePopped(u.LI))}function hD(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n))}function mD(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}function bD(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker())}function gD(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(V.BR,u.BR),e.openElements.pop(),e.framesetOk=!1}function D_(e,t){const n=t.tagName,r=t.tagID;for(let s=e.openElements.stackTop;s>0;s--){const i=e.openElements.items[s],a=e.openElements.tagIDs[s];if(r===a&&(r!==u.UNKNOWN||e.treeAdapter.getTagName(i)===n)){e.openElements.generateImpliedEndTagsWithExclusion(r),e.openElements.stackTop>=s&&e.openElements.shortenToLength(s);break}if(e._isSpecialElement(i,a))break}}function vh(e,t){switch(t.tagID){case u.A:case u.B:case u.I:case u.S:case u.U:case u.EM:case u.TT:case u.BIG:case u.CODE:case u.FONT:case u.NOBR:case u.SMALL:case u.STRIKE:case u.STRONG:{Xg(e,t);break}case u.P:{dD(e);break}case u.DL:case u.UL:case u.OL:case u.DIR:case u.DIV:case u.NAV:case u.PRE:case u.MAIN:case u.MENU:case u.ASIDE:case u.BUTTON:case u.CENTER:case u.FIGURE:case u.FOOTER:case u.HEADER:case u.HGROUP:case u.DIALOG:case u.ADDRESS:case u.ARTICLE:case u.DETAILS:case u.SEARCH:case u.SECTION:case u.SUMMARY:case u.LISTING:case u.FIELDSET:case u.BLOCKQUOTE:case u.FIGCAPTION:{lD(e,t);break}case u.LI:{fD(e);break}case u.DD:case u.DT:{hD(e,t);break}case u.H1:case u.H2:case u.H3:case u.H4:case u.H5:case u.H6:{mD(e);break}case u.BR:{gD(e);break}case u.BODY:{oD(e,t);break}case u.HTML:{cD(e,t);break}case u.FORM:{uD(e);break}case u.APPLET:case u.OBJECT:case u.MARQUEE:{bD(e,t);break}case u.TEMPLATE:{Ao(e,t);break}default:D_(e,t)}}function L_(e,t){e.tmplInsertionModeStack.length>0?q_(e,t):Qg(e,t)}function pD(e,t){var n;t.tagID===u.SCRIPT&&((n=e.scriptHandler)===null||n===void 0||n.call(e,e.openElements.current)),e.openElements.pop(),e.insertionMode=e.originalInsertionMode}function yD(e,t){e._err(t,ie.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e.onEof(t)}function d0(e,t){if(e.openElements.currentTagId!==void 0&&I_.has(e.openElements.currentTagId))switch(e.pendingCharacterTokens.length=0,e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=F.IN_TABLE_TEXT,t.type){case zt.CHARACTER:{F_(e,t);break}case zt.WHITESPACE_CHARACTER:{M_(e,t);break}}else Mu(e,t)}function ED(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,pe.HTML),e.insertionMode=F.IN_CAPTION}function CD(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,pe.HTML),e.insertionMode=F.IN_COLUMN_GROUP}function xD(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(V.COLGROUP,u.COLGROUP),e.insertionMode=F.IN_COLUMN_GROUP,Zg(e,t)}function vD(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,pe.HTML),e.insertionMode=F.IN_TABLE_BODY}function _D(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(V.TBODY,u.TBODY),e.insertionMode=F.IN_TABLE_BODY,_h(e,t)}function SD(e,t){e.openElements.hasInTableScope(u.TABLE)&&(e.openElements.popUntilTagNamePopped(u.TABLE),e._resetInsertionMode(),e._processStartTag(t))}function TD(e,t){O_(t)?e._appendElement(t,pe.HTML):Mu(e,t),t.ackSelfClosing=!0}function wD(e,t){!e.formElement&&e.openElements.tmplCount===0&&(e._insertElement(t,pe.HTML),e.formElement=e.openElements.current,e.openElements.pop())}function Wc(e,t){switch(t.tagID){case u.TD:case u.TH:case u.TR:{_D(e,t);break}case u.STYLE:case u.SCRIPT:case u.TEMPLATE:{Ks(e,t);break}case u.COL:{xD(e,t);break}case u.FORM:{wD(e,t);break}case u.TABLE:{SD(e,t);break}case u.TBODY:case u.TFOOT:case u.THEAD:{vD(e,t);break}case u.INPUT:{TD(e,t);break}case u.CAPTION:{ED(e,t);break}case u.COLGROUP:{CD(e,t);break}default:Mu(e,t)}}function xu(e,t){switch(t.tagID){case u.TABLE:{e.openElements.hasInTableScope(u.TABLE)&&(e.openElements.popUntilTagNamePopped(u.TABLE),e._resetInsertionMode());break}case u.TEMPLATE:{Ao(e,t);break}case u.BODY:case u.CAPTION:case u.COL:case u.COLGROUP:case u.HTML:case u.TBODY:case u.TD:case u.TFOOT:case u.TH:case u.THEAD:case u.TR:break;default:Mu(e,t)}}function Mu(e,t){const n=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,xh(e,t),e.fosterParentingEnabled=n}function M_(e,t){e.pendingCharacterTokens.push(t)}function F_(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function $l(e,t){let n=0;if(e.hasNonWhitespacePendingCharacterToken)for(;n<e.pendingCharacterTokens.length;n++)Mu(e,e.pendingCharacterTokens[n]);else for(;n<e.pendingCharacterTokens.length;n++)e._insertCharacters(e.pendingCharacterTokens[n]);e.insertionMode=e.originalInsertionMode,e._processToken(t)}const z_=new Set([u.CAPTION,u.COL,u.COLGROUP,u.TBODY,u.TD,u.TFOOT,u.TH,u.THEAD,u.TR]);function AD(e,t){const n=t.tagID;z_.has(n)?e.openElements.hasInTableScope(u.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(u.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=F.IN_TABLE,Wc(e,t)):Mr(e,t)}function kD(e,t){const n=t.tagID;switch(n){case u.CAPTION:case u.TABLE:{e.openElements.hasInTableScope(u.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(u.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=F.IN_TABLE,n===u.TABLE&&xu(e,t));break}case u.BODY:case u.COL:case u.COLGROUP:case u.HTML:case u.TBODY:case u.TD:case u.TFOOT:case u.TH:case u.THEAD:case u.TR:break;default:vh(e,t)}}function Zg(e,t){switch(t.tagID){case u.HTML:{Mr(e,t);break}case u.COL:{e._appendElement(t,pe.HTML),t.ackSelfClosing=!0;break}case u.TEMPLATE:{Ks(e,t);break}default:Df(e,t)}}function ID(e,t){switch(t.tagID){case u.COLGROUP:{e.openElements.currentTagId===u.COLGROUP&&(e.openElements.pop(),e.insertionMode=F.IN_TABLE);break}case u.TEMPLATE:{Ao(e,t);break}case u.COL:break;default:Df(e,t)}}function Df(e,t){e.openElements.currentTagId===u.COLGROUP&&(e.openElements.pop(),e.insertionMode=F.IN_TABLE,e._processToken(t))}function _h(e,t){switch(t.tagID){case u.TR:{e.openElements.clearBackToTableBodyContext(),e._insertElement(t,pe.HTML),e.insertionMode=F.IN_ROW;break}case u.TH:case u.TD:{e.openElements.clearBackToTableBodyContext(),e._insertFakeElement(V.TR,u.TR),e.insertionMode=F.IN_ROW,Sh(e,t);break}case u.CAPTION:case u.COL:case u.COLGROUP:case u.TBODY:case u.TFOOT:case u.THEAD:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=F.IN_TABLE,Wc(e,t));break}default:Wc(e,t)}}function nb(e,t){const n=t.tagID;switch(t.tagID){case u.TBODY:case u.TFOOT:case u.THEAD:{e.openElements.hasInTableScope(n)&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=F.IN_TABLE);break}case u.TABLE:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=F.IN_TABLE,xu(e,t));break}case u.BODY:case u.CAPTION:case u.COL:case u.COLGROUP:case u.HTML:case u.TD:case u.TH:case u.TR:break;default:xu(e,t)}}function Sh(e,t){switch(t.tagID){case u.TH:case u.TD:{e.openElements.clearBackToTableRowContext(),e._insertElement(t,pe.HTML),e.insertionMode=F.IN_CELL,e.activeFormattingElements.insertMarker();break}case u.CAPTION:case u.COL:case u.COLGROUP:case u.TBODY:case u.TFOOT:case u.THEAD:case u.TR:{e.openElements.hasInTableScope(u.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=F.IN_TABLE_BODY,_h(e,t));break}default:Wc(e,t)}}function U_(e,t){switch(t.tagID){case u.TR:{e.openElements.hasInTableScope(u.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=F.IN_TABLE_BODY);break}case u.TABLE:{e.openElements.hasInTableScope(u.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=F.IN_TABLE_BODY,nb(e,t));break}case u.TBODY:case u.TFOOT:case u.THEAD:{(e.openElements.hasInTableScope(t.tagID)||e.openElements.hasInTableScope(u.TR))&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=F.IN_TABLE_BODY,nb(e,t));break}case u.BODY:case u.CAPTION:case u.COL:case u.COLGROUP:case u.HTML:case u.TD:case u.TH:break;default:xu(e,t)}}function RD(e,t){const n=t.tagID;z_.has(n)?(e.openElements.hasInTableScope(u.TD)||e.openElements.hasInTableScope(u.TH))&&(e._closeTableCell(),Sh(e,t)):Mr(e,t)}function BD(e,t){const n=t.tagID;switch(n){case u.TD:case u.TH:{e.openElements.hasInTableScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=F.IN_ROW);break}case u.TABLE:case u.TBODY:case u.TFOOT:case u.THEAD:case u.TR:{e.openElements.hasInTableScope(n)&&(e._closeTableCell(),U_(e,t));break}case u.BODY:case u.CAPTION:case u.COL:case u.COLGROUP:case u.HTML:break;default:vh(e,t)}}function $_(e,t){switch(t.tagID){case u.HTML:{Mr(e,t);break}case u.OPTION:{e.openElements.currentTagId===u.OPTION&&e.openElements.pop(),e._insertElement(t,pe.HTML);break}case u.OPTGROUP:{e.openElements.currentTagId===u.OPTION&&e.openElements.pop(),e.openElements.currentTagId===u.OPTGROUP&&e.openElements.pop(),e._insertElement(t,pe.HTML);break}case u.HR:{e.openElements.currentTagId===u.OPTION&&e.openElements.pop(),e.openElements.currentTagId===u.OPTGROUP&&e.openElements.pop(),e._appendElement(t,pe.HTML),t.ackSelfClosing=!0;break}case u.INPUT:case u.KEYGEN:case u.TEXTAREA:case u.SELECT:{e.openElements.hasInSelectScope(u.SELECT)&&(e.openElements.popUntilTagNamePopped(u.SELECT),e._resetInsertionMode(),t.tagID!==u.SELECT&&e._processStartTag(t));break}case u.SCRIPT:case u.TEMPLATE:{Ks(e,t);break}}}function H_(e,t){switch(t.tagID){case u.OPTGROUP:{e.openElements.stackTop>0&&e.openElements.currentTagId===u.OPTION&&e.openElements.tagIDs[e.openElements.stackTop-1]===u.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagId===u.OPTGROUP&&e.openElements.pop();break}case u.OPTION:{e.openElements.currentTagId===u.OPTION&&e.openElements.pop();break}case u.SELECT:{e.openElements.hasInSelectScope(u.SELECT)&&(e.openElements.popUntilTagNamePopped(u.SELECT),e._resetInsertionMode());break}case u.TEMPLATE:{Ao(e,t);break}}}function PD(e,t){const n=t.tagID;n===u.CAPTION||n===u.TABLE||n===u.TBODY||n===u.TFOOT||n===u.THEAD||n===u.TR||n===u.TD||n===u.TH?(e.openElements.popUntilTagNamePopped(u.SELECT),e._resetInsertionMode(),e._processStartTag(t)):$_(e,t)}function ND(e,t){const n=t.tagID;n===u.CAPTION||n===u.TABLE||n===u.TBODY||n===u.TFOOT||n===u.THEAD||n===u.TR||n===u.TD||n===u.TH?e.openElements.hasInTableScope(n)&&(e.openElements.popUntilTagNamePopped(u.SELECT),e._resetInsertionMode(),e.onEndTag(t)):H_(e,t)}function OD(e,t){switch(t.tagID){case u.BASE:case u.BASEFONT:case u.BGSOUND:case u.LINK:case u.META:case u.NOFRAMES:case u.SCRIPT:case u.STYLE:case u.TEMPLATE:case u.TITLE:{Ks(e,t);break}case u.CAPTION:case u.COLGROUP:case u.TBODY:case u.TFOOT:case u.THEAD:{e.tmplInsertionModeStack[0]=F.IN_TABLE,e.insertionMode=F.IN_TABLE,Wc(e,t);break}case u.COL:{e.tmplInsertionModeStack[0]=F.IN_COLUMN_GROUP,e.insertionMode=F.IN_COLUMN_GROUP,Zg(e,t);break}case u.TR:{e.tmplInsertionModeStack[0]=F.IN_TABLE_BODY,e.insertionMode=F.IN_TABLE_BODY,_h(e,t);break}case u.TD:case u.TH:{e.tmplInsertionModeStack[0]=F.IN_ROW,e.insertionMode=F.IN_ROW,Sh(e,t);break}default:e.tmplInsertionModeStack[0]=F.IN_BODY,e.insertionMode=F.IN_BODY,Mr(e,t)}}function DD(e,t){t.tagID===u.TEMPLATE&&Ao(e,t)}function q_(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(u.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(t)):Qg(e,t)}function LD(e,t){t.tagID===u.HTML?Mr(e,t):Lf(e,t)}function j_(e,t){var n;if(t.tagID===u.HTML){if(e.fragmentContext||(e.insertionMode=F.AFTER_AFTER_BODY),e.options.sourceCodeLocationInfo&&e.openElements.tagIDs[0]===u.HTML){e._setEndLocation(e.openElements.items[0],t);const r=e.openElements.items[1];r&&!(!((n=e.treeAdapter.getNodeSourceCodeLocation(r))===null||n===void 0)&&n.endTag)&&e._setEndLocation(r,t)}}else Lf(e,t)}function Lf(e,t){e.insertionMode=F.IN_BODY,xh(e,t)}function MD(e,t){switch(t.tagID){case u.HTML:{Mr(e,t);break}case u.FRAMESET:{e._insertElement(t,pe.HTML);break}case u.FRAME:{e._appendElement(t,pe.HTML),t.ackSelfClosing=!0;break}case u.NOFRAMES:{Ks(e,t);break}}}function FD(e,t){t.tagID===u.FRAMESET&&!e.openElements.isRootHtmlElementCurrent()&&(e.openElements.pop(),!e.fragmentContext&&e.openElements.currentTagId!==u.FRAMESET&&(e.insertionMode=F.AFTER_FRAMESET))}function zD(e,t){switch(t.tagID){case u.HTML:{Mr(e,t);break}case u.NOFRAMES:{Ks(e,t);break}}}function UD(e,t){t.tagID===u.HTML&&(e.insertionMode=F.AFTER_AFTER_FRAMESET)}function $D(e,t){t.tagID===u.HTML?Mr(e,t):Pd(e,t)}function Pd(e,t){e.insertionMode=F.IN_BODY,xh(e,t)}function HD(e,t){switch(t.tagID){case u.HTML:{Mr(e,t);break}case u.NOFRAMES:{Ks(e,t);break}}}function qD(e,t){t.chars=An,e._insertCharacters(t)}function jD(e,t){e._insertCharacters(t),e.framesetOk=!1}function W_(e){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==pe.HTML&&e.openElements.currentTagId!==void 0&&!e._isIntegrationPoint(e.openElements.currentTagId,e.openElements.current);)e.openElements.pop()}function WD(e,t){if(aO(t))W_(e),e._startTagOutsideForeignContent(t);else{const n=e._getAdjustedCurrentElement(),r=e.treeAdapter.getNamespaceURI(n);r===pe.MATHML?A_(t):r===pe.SVG&&(oO(t),k_(t)),Yg(t),t.selfClosing?e._appendElement(t,r):e._insertElement(t,r),t.ackSelfClosing=!0}}function GD(e,t){if(t.tagID===u.P||t.tagID===u.BR){W_(e),e._endTagOutsideForeignContent(t);return}for(let n=e.openElements.stackTop;n>0;n--){const r=e.openElements.items[n];if(e.treeAdapter.getNamespaceURI(r)===pe.HTML){e._endTagOutsideForeignContent(t);break}const s=e.treeAdapter.getTagName(r);if(s.toLowerCase()===t.tagName){t.tagName=s,e.openElements.shortenToLength(n);break}}}function G_(e,t){return function(r){let s,i=0,a="";for(;s=e.exec(r);)i!==s.index&&(a+=r.substring(i,s.index)),a+=t.get(s[0].charCodeAt(0)),i=s.index+1;return a+r.substring(i)}}const VD=G_(/["&\u00A0]/g,new Map([[34,"&quot;"],[38,"&amp;"],[160,"&nbsp;"]])),KD=G_(/[&<>\u00A0]/g,new Map([[38,"&amp;"],[60,"&lt;"],[62,"&gt;"],[160,"&nbsp;"]])),YD=new Set([V.AREA,V.BASE,V.BASEFONT,V.BGSOUND,V.BR,V.COL,V.EMBED,V.FRAME,V.HR,V.IMG,V.INPUT,V.KEYGEN,V.LINK,V.META,V.PARAM,V.SOURCE,V.TRACK,V.WBR]);function XD(e,t){return t.treeAdapter.isElementNode(e)&&t.treeAdapter.getNamespaceURI(e)===pe.HTML&&YD.has(t.treeAdapter.getTagName(e))}const QD={treeAdapter:vi,scriptingEnabled:!0};function ZD(e,t){const n={...QD,...t};return V_(e,n)}function JD(e,t){let n="";const r=t.treeAdapter.isElementNode(e)&&t.treeAdapter.getTagName(e)===V.TEMPLATE&&t.treeAdapter.getNamespaceURI(e)===pe.HTML?t.treeAdapter.getTemplateContent(e):e,s=t.treeAdapter.getChildNodes(r);if(s)for(const i of s)n+=V_(i,t);return n}function V_(e,t){return t.treeAdapter.isElementNode(e)?e4(e,t):t.treeAdapter.isTextNode(e)?n4(e,t):t.treeAdapter.isCommentNode(e)?r4(e,t):t.treeAdapter.isDocumentTypeNode(e)?s4(e,t):""}function e4(e,t){const n=t.treeAdapter.getTagName(e);return`<${n}${t4(e,t)}>${XD(e,t)?"":`${JD(e,t)}</${n}>`}`}function t4(e,{treeAdapter:t}){let n="";for(const r of t.getAttrList(e)){if(n+=" ",r.namespace)switch(r.namespace){case pe.XML:{n+=`xml:${r.name}`;break}case pe.XMLNS:{r.name!=="xmlns"&&(n+="xmlns:"),n+=r.name;break}case pe.XLINK:{n+=`xlink:${r.name}`;break}default:n+=`${r.prefix}:${r.name}`}else n+=r.name;n+=`="${VD(r.value)}"`}return n}function n4(e,t){const{treeAdapter:n}=t,r=n.getTextNodeContent(e),s=n.getParentNode(e),i=s&&n.isElementNode(s)&&n.getTagName(s);return i&&n.getNamespaceURI(s)===pe.HTML&&ON(i,t.scriptingEnabled)?r:KD(r)}function r4(e,{treeAdapter:t}){return`<!--${t.getCommentNodeContent(e)}-->`}function s4(e,{treeAdapter:t}){return`<!DOCTYPE ${t.getDocumentTypeNodeName(e)}>`}function i4(e,t){return R_.parse(e,t)}function a4(e,t,n){typeof e=="string"&&(n=t,t=e,e=null);const r=R_.getFragmentParser(e,n);return r.tokenizer.write(t,!0),r.getFragment()}function GE(e){const t=e.includes('"')?"'":'"';return t+e+t}function o4(e,t,n){let r="!DOCTYPE ";return e&&(r+=e),t?r+=` PUBLIC ${GE(t)}`:n&&(r+=" SYSTEM"),n&&(r+=` ${GE(n)}`),r}const Wi={isCommentNode:bh,isElementNode:dt,isTextNode:li,createDocument(){const e=new po([]);return e["x-mode"]=fs.NO_QUIRKS,e},createDocumentFragment(){return new po([])},createElement(e,t,n){const r=Object.create(null),s=Object.create(null),i=Object.create(null);for(let o=0;o<n.length;o++){const c=n[o].name;r[c]=n[o].value,s[c]=n[o].namespace,i[c]=n[o].prefix}const a=new Dg(e,r,[]);return a.namespace=t,a["x-attribsNamespace"]=s,a["x-attribsPrefix"]=i,a},createCommentNode(e){return new Pg(e)},createTextNode(e){return new gu(e)},appendChild(e,t){const n=e.children[e.children.length-1];n&&(n.next=t,t.prev=n),e.children.push(t),t.parent=e},insertBefore(e,t,n){const r=e.children.indexOf(n),{prev:s}=n;s&&(s.next=t,t.prev=s),n.prev=t,t.next=n,e.children.splice(r,0,t),t.parent=e},setTemplateContent(e,t){Wi.appendChild(e,t)},getTemplateContent(e){return e.children[0]},setDocumentType(e,t,n,r){const s=o4(t,n,r);let i=e.children.find(a=>Wm(a)&&a.name==="!doctype");i?i.data=s??null:(i=new Ng("!doctype",s),Wi.appendChild(e,i)),i["x-name"]=t,i["x-publicId"]=n,i["x-systemId"]=r},setDocumentMode(e,t){e["x-mode"]=t},getDocumentMode(e){return e["x-mode"]},detachNode(e){if(e.parent){const t=e.parent.children.indexOf(e),{prev:n,next:r}=e;e.prev=null,e.next=null,n&&(n.next=r),r&&(r.prev=n),e.parent.children.splice(t,1),e.parent=null}},insertText(e,t){const n=e.children[e.children.length-1];n&&li(n)?n.data+=t:Wi.appendChild(e,Wi.createTextNode(t))},insertTextBefore(e,t,n){const r=e.children[e.children.indexOf(n)-1];r&&li(r)?r.data+=t:Wi.insertBefore(e,Wi.createTextNode(t),n)},adoptAttributes(e,t){for(let n=0;n<t.length;n++){const r=t[n].name;e.attribs[r]===void 0&&(e.attribs[r]=t[n].value,e["x-attribsNamespace"][r]=t[n].namespace,e["x-attribsPrefix"][r]=t[n].prefix)}},getFirstChild(e){return e.children[0]},getChildNodes(e){return e.children},getParentNode(e){return e.parent},getAttrList(e){return e.attributes},getTagName(e){return e.name},getNamespaceURI(e){return e.namespace},getTextNodeContent(e){return e.data},getCommentNodeContent(e){return e.data},getDocumentTypeNodeName(e){var t;return(t=e["x-name"])!==null&&t!==void 0?t:""},getDocumentTypeNodePublicId(e){var t;return(t=e["x-publicId"])!==null&&t!==void 0?t:""},getDocumentTypeNodeSystemId(e){var t;return(t=e["x-systemId"])!==null&&t!==void 0?t:""},isDocumentTypeNode(e){return Wm(e)&&e.name==="!doctype"},setNodeSourceCodeLocation(e,t){t&&(e.startIndex=t.startOffset,e.endIndex=t.endOffset),e.sourceCodeLocation=t},getNodeSourceCodeLocation(e){return e.sourceCodeLocation},updateNodeSourceCodeLocation(e,t){t.endOffset!=null&&(e.endIndex=t.endOffset),e.sourceCodeLocation={...e.sourceCodeLocation,...t}}};function c4(e,t,n,r){var s;return(s=t.treeAdapter)!==null&&s!==void 0||(t.treeAdapter=Wi),t.scriptingEnabled!==!1&&(t.scriptingEnabled=!0),n?i4(e,t):a4(r,e,t)}const l4={treeAdapter:Wi};function u4(e){const t="length"in e?e:[e];for(let r=0;r<t.length;r+=1){const s=t[r];ha(s)&&Array.prototype.splice.call(t,r,1,...s.children)}let n="";for(let r=0;r<t.length;r+=1){const s=t[r];n+=ZD(s,l4)}return n}const d4=WP((e,t,n,r)=>t._useHtmlParser2?E6(e,t):c4(e,t,n,r)),f4=SN(d4,(e,t)=>t._useHtmlParser2?gh(e,t):u4(e));class h4{_melisearch;_index;_indexName;host;apiKey;constructor(t){this.host=t.host,this.apiKey=t.apiKey,this._indexName=t.indexName}async _getMeliSearch(){return this._melisearch===void 0&&(this._melisearch=new JR({host:this.host,apiKey:this.apiKey})),this._melisearch}async _getIndex(){if(this._index===void 0){const t=await this._getMeliSearch();this._index=t.index(this._indexName)}return this._index}docs={};async addDocument(t){this.docs[t.id]=t}async updateDocument(){console.log(`开始上传数据到 ${this.host}`);const n=await(await this._getIndex()).addDocuments(Object.values(this.docs));console.log("上传结果",n)}build_onFileTree=(t,n)=>{const[r]=t;console.log("开始生成 meilisearch 所需数据结构");const s=Object.keys(r).filter(i=>i.endsWith(".html")).map(i=>[i,r[i]]);for(const[i,a]of s){const o=f4(a.toString()),c=o(".h1,.h2,.h3,.h4,.h5,.h6,.p").toArray(),l={lvl0:o("title").text()};for(const d of c){const f=d.attribs.class;f!=="p"&&(Object.keys(l).forEach(m=>{m.substring(3,4)>f.substring(1,2)&&delete l[m]}),l[`lvl${f.substring(1,2)}`]=o(d).text()),this.addDocument({id:d.attribs.id,content:o(d).text(),url:`${i}#${d.attribs.id}`,...l})}if(i.endsWith("index.html"))break}return this.updateDocument(),n(...t)}}async function m4(...[e,t]){const n=e==="apiProvider"?await t.genApiModule():void 0,r=e==="apiConsumer"?t.remoteCall:void 0;async function s(o,c){async function l(f){return t.middleware&&f<t.middleware.length?t.middleware[f](o,c,()=>l(f+1)):d()}async function d(){try{if(e==="apiProvider"){const f=o.split(".");let m=n;for(const h of f)if(m&&typeof m=="object"&&h in m)m=m[h];else throw new Error(`Method ${o} not found`);if(typeof m=="function")return await m(...c);throw new Error(`${o} is not a function`)}else return await r(o,c)}catch(f){throw console.error("API call failed:",f),f}}return await l(0)}function i(o=[]){return{get(c,l){if(l==="then")return;const d=[...o,l];return new Proxy(function(...f){const m=d.join(".");return s(m,f)},i(d))},apply(c,l,d){const f=o.join(".");return s(f,d)}}}return{API:new Proxy(function(){},i()),RC:s}}class b4{constructor(){this.keyToValue=new Map,this.valueToKey=new Map}set(t,n){this.keyToValue.set(t,n),this.valueToKey.set(n,t)}getByKey(t){return this.keyToValue.get(t)}getByValue(t){return this.valueToKey.get(t)}clear(){this.keyToValue.clear(),this.valueToKey.clear()}}class K_{constructor(t){this.generateIdentifier=t,this.kv=new b4}register(t,n){this.kv.getByValue(t)||(n||(n=this.generateIdentifier(t)),this.kv.set(n,t))}clear(){this.kv.clear()}getIdentifier(t){return this.kv.getByValue(t)}getValue(t){return this.kv.getByKey(t)}}class g4 extends K_{constructor(){super(t=>t.name),this.classToAllowedProps=new Map}register(t,n){typeof n=="object"?(n.allowProps&&this.classToAllowedProps.set(t,n.allowProps),super.register(t,n.identifier)):super.register(t,n)}getAllowedProps(t){return this.classToAllowedProps.get(t)}}function p4(e){if("values"in Object)return Object.values(e);const t=[];for(const n in e)e.hasOwnProperty(n)&&t.push(e[n]);return t}function y4(e,t){const n=p4(e);if("find"in n)return n.find(t);const r=n;for(let s=0;s<r.length;s++){const i=r[s];if(t(i))return i}}function Gc(e,t){Object.entries(e).forEach(([n,r])=>t(r,n))}function Nd(e,t){return e.indexOf(t)!==-1}function VE(e,t){for(let n=0;n<e.length;n++){const r=e[n];if(t(r))return r}}class E4{constructor(){this.transfomers={}}register(t){this.transfomers[t.name]=t}findApplicable(t){return y4(this.transfomers,n=>n.isApplicable(t))}findByName(t){return this.transfomers[t]}}const C4=e=>Object.prototype.toString.call(e).slice(8,-1),Y_=e=>typeof e>"u",x4=e=>e===null,vu=e=>typeof e!="object"||e===null||e===Object.prototype?!1:Object.getPrototypeOf(e)===null?!0:Object.getPrototypeOf(e)===Object.prototype,rb=e=>vu(e)&&Object.keys(e).length===0,ia=e=>Array.isArray(e),v4=e=>typeof e=="string",_4=e=>typeof e=="number"&&!isNaN(e),S4=e=>typeof e=="boolean",T4=e=>e instanceof RegExp,_u=e=>e instanceof Map,Su=e=>e instanceof Set,X_=e=>C4(e)==="Symbol",w4=e=>e instanceof Date&&!isNaN(e.valueOf()),A4=e=>e instanceof Error,KE=e=>typeof e=="number"&&isNaN(e),k4=e=>S4(e)||x4(e)||Y_(e)||_4(e)||v4(e)||X_(e),I4=e=>typeof e=="bigint",R4=e=>e===1/0||e===-1/0,B4=e=>ArrayBuffer.isView(e)&&!(e instanceof DataView),P4=e=>e instanceof URL,Q_=e=>e.replace(/\./g,"\\."),f0=e=>e.map(String).map(Q_).join("."),nu=e=>{const t=[];let n="";for(let s=0;s<e.length;s++){let i=e.charAt(s);if(i==="\\"&&e.charAt(s+1)==="."){n+=".",s++;continue}if(i==="."){t.push(n),n="";continue}n+=i}const r=n;return t.push(r),t};function Js(e,t,n,r){return{isApplicable:e,annotation:t,transform:n,untransform:r}}const Z_=[Js(Y_,"undefined",()=>null,()=>{}),Js(I4,"bigint",e=>e.toString(),e=>typeof BigInt<"u"?BigInt(e):(console.error("Please add a BigInt polyfill."),e)),Js(w4,"Date",e=>e.toISOString(),e=>new Date(e)),Js(A4,"Error",(e,t)=>{const n={name:e.name,message:e.message};return t.allowedErrorProps.forEach(r=>{n[r]=e[r]}),n},(e,t)=>{const n=new Error(e.message);return n.name=e.name,n.stack=e.stack,t.allowedErrorProps.forEach(r=>{n[r]=e[r]}),n}),Js(T4,"regexp",e=>""+e,e=>{const t=e.slice(1,e.lastIndexOf("/")),n=e.slice(e.lastIndexOf("/")+1);return new RegExp(t,n)}),Js(Su,"set",e=>[...e.values()],e=>new Set(e)),Js(_u,"map",e=>[...e.entries()],e=>new Map(e)),Js(e=>KE(e)||R4(e),"number",e=>KE(e)?"NaN":e>0?"Infinity":"-Infinity",Number),Js(e=>e===0&&1/e===-1/0,"number",()=>"-0",Number),Js(P4,"URL",e=>e.toString(),e=>new URL(e))];function Th(e,t,n,r){return{isApplicable:e,annotation:t,transform:n,untransform:r}}const J_=Th((e,t)=>X_(e)?!!t.symbolRegistry.getIdentifier(e):!1,(e,t)=>["symbol",t.symbolRegistry.getIdentifier(e)],e=>e.description,(e,t,n)=>{const r=n.symbolRegistry.getValue(t[1]);if(!r)throw new Error("Trying to deserialize unknown symbol");return r}),N4=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,Uint8ClampedArray].reduce((e,t)=>(e[t.name]=t,e),{}),eS=Th(B4,e=>["typed-array",e.constructor.name],e=>[...e],(e,t)=>{const n=N4[t[1]];if(!n)throw new Error("Trying to deserialize unknown typed array");return new n(e)});function tS(e,t){return e?.constructor?!!t.classRegistry.getIdentifier(e.constructor):!1}const nS=Th(tS,(e,t)=>["class",t.classRegistry.getIdentifier(e.constructor)],(e,t)=>{const n=t.classRegistry.getAllowedProps(e.constructor);if(!n)return{...e};const r={};return n.forEach(s=>{r[s]=e[s]}),r},(e,t,n)=>{const r=n.classRegistry.getValue(t[1]);if(!r)throw new Error(`Trying to deserialize unknown class '${t[1]}' - check https://github.com/blitz-js/superjson/issues/116#issuecomment-773996564`);return Object.assign(Object.create(r.prototype),e)}),rS=Th((e,t)=>!!t.customTransformerRegistry.findApplicable(e),(e,t)=>["custom",t.customTransformerRegistry.findApplicable(e).name],(e,t)=>t.customTransformerRegistry.findApplicable(e).serialize(e),(e,t,n)=>{const r=n.customTransformerRegistry.findByName(t[1]);if(!r)throw new Error("Trying to deserialize unknown custom value");return r.deserialize(e)}),O4=[nS,J_,rS,eS],YE=(e,t)=>{const n=VE(O4,s=>s.isApplicable(e,t));if(n)return{value:n.transform(e,t),type:n.annotation(e,t)};const r=VE(Z_,s=>s.isApplicable(e,t));if(r)return{value:r.transform(e,t),type:r.annotation}},sS={};Z_.forEach(e=>{sS[e.annotation]=e});const D4=(e,t,n)=>{if(ia(t))switch(t[0]){case"symbol":return J_.untransform(e,t,n);case"class":return nS.untransform(e,t,n);case"custom":return rS.untransform(e,t,n);case"typed-array":return eS.untransform(e,t,n);default:throw new Error("Unknown transformation: "+t)}else{const r=sS[t];if(!r)throw new Error("Unknown transformation: "+t);return r.untransform(e,n)}},tc=(e,t)=>{if(t>e.size)throw new Error("index out of bounds");const n=e.keys();for(;t>0;)n.next(),t--;return n.next().value};function iS(e){if(Nd(e,"__proto__"))throw new Error("__proto__ is not allowed as a property");if(Nd(e,"prototype"))throw new Error("prototype is not allowed as a property");if(Nd(e,"constructor"))throw new Error("constructor is not allowed as a property")}const L4=(e,t)=>{iS(t);for(let n=0;n<t.length;n++){const r=t[n];if(Su(e))e=tc(e,+r);else if(_u(e)){const s=+r,i=+t[++n]==0?"key":"value",a=tc(e,s);switch(i){case"key":e=a;break;case"value":e=e.get(a);break}}else e=e[r]}return e},sb=(e,t,n)=>{if(iS(t),t.length===0)return n(e);let r=e;for(let i=0;i<t.length-1;i++){const a=t[i];if(ia(r)){const o=+a;r=r[o]}else if(vu(r))r=r[a];else if(Su(r)){const o=+a;r=tc(r,o)}else if(_u(r)){if(i===t.length-2)break;const c=+a,l=+t[++i]==0?"key":"value",d=tc(r,c);switch(l){case"key":r=d;break;case"value":r=r.get(d);break}}}const s=t[t.length-1];if(ia(r)?r[+s]=n(r[+s]):vu(r)&&(r[s]=n(r[s])),Su(r)){const i=tc(r,+s),a=n(i);i!==a&&(r.delete(i),r.add(a))}if(_u(r)){const i=+t[t.length-2],a=tc(r,i);switch(+s==0?"key":"value"){case"key":{const c=n(a);r.set(c,r.get(a)),c!==a&&r.delete(a);break}case"value":{r.set(a,n(r.get(a)));break}}}return e};function ib(e,t,n=[]){if(!e)return;if(!ia(e)){Gc(e,(i,a)=>ib(i,t,[...n,...nu(a)]));return}const[r,s]=e;s&&Gc(s,(i,a)=>{ib(i,t,[...n,...nu(a)])}),t(r,n)}function M4(e,t,n){return ib(t,(r,s)=>{e=sb(e,s,i=>D4(i,r,n))}),e}function F4(e,t){function n(r,s){const i=L4(e,nu(s));r.map(nu).forEach(a=>{e=sb(e,a,()=>i)})}if(ia(t)){const[r,s]=t;r.forEach(i=>{e=sb(e,nu(i),()=>e)}),s&&Gc(s,n)}else Gc(t,n);return e}const z4=(e,t)=>vu(e)||ia(e)||_u(e)||Su(e)||tS(e,t);function U4(e,t,n){const r=n.get(e);r?r.push(t):n.set(e,[t])}function $4(e,t){const n={};let r;return e.forEach(s=>{if(s.length<=1)return;t||(s=s.map(o=>o.map(String)).sort((o,c)=>o.length-c.length));const[i,...a]=s;i.length===0?r=a.map(f0):n[f0(i)]=a.map(f0)}),r?rb(n)?[r]:[r,n]:rb(n)?void 0:n}const aS=(e,t,n,r,s=[],i=[],a=new Map)=>{const o=k4(e);if(!o){U4(e,s,t);const h=a.get(e);if(h)return r?{transformedValue:null}:h}if(!z4(e,n)){const h=YE(e,n),b=h?{transformedValue:h.value,annotations:[h.type]}:{transformedValue:e};return o||a.set(e,b),b}if(Nd(i,e))return{transformedValue:null};const c=YE(e,n),l=c?.value??e,d=ia(l)?[]:{},f={};Gc(l,(h,b)=>{if(b==="__proto__"||b==="constructor"||b==="prototype")throw new Error(`Detected property ${b}. This is a prototype pollution risk, please remove it from your object.`);const g=aS(h,t,n,r,[...s,b],[...i,e],a);d[b]=g.transformedValue,ia(g.annotations)?f[b]=g.annotations:vu(g.annotations)&&Gc(g.annotations,(y,p)=>{f[Q_(b)+"."+p]=y})});const m=rb(f)?{transformedValue:d,annotations:c?[c.type]:void 0}:{transformedValue:d,annotations:c?[c.type,f]:f};return o||a.set(e,m),m};function oS(e){return Object.prototype.toString.call(e).slice(8,-1)}function XE(e){return oS(e)==="Array"}function H4(e){if(oS(e)!=="Object")return!1;const t=Object.getPrototypeOf(e);return!!t&&t.constructor===Object&&t===Object.prototype}function q4(e,t,n,r,s){const i={}.propertyIsEnumerable.call(r,t)?"enumerable":"nonenumerable";i==="enumerable"&&(e[t]=n),s&&i==="nonenumerable"&&Object.defineProperty(e,t,{value:n,enumerable:!1,writable:!0,configurable:!0})}function ab(e,t={}){if(XE(e))return e.map(s=>ab(s,t));if(!H4(e))return e;const n=Object.getOwnPropertyNames(e),r=Object.getOwnPropertySymbols(e);return[...n,...r].reduce((s,i)=>{if(XE(t.props)&&!t.props.includes(i))return s;const a=e[i],o=ab(a,t);return q4(s,i,o,e,t.nonenumerable),s},{})}class un{constructor({dedupe:t=!1}={}){this.classRegistry=new g4,this.symbolRegistry=new K_(n=>n.description??""),this.customTransformerRegistry=new E4,this.allowedErrorProps=[],this.dedupe=t}serialize(t){const n=new Map,r=aS(t,n,this,this.dedupe),s={json:r.transformedValue};r.annotations&&(s.meta={...s.meta,values:r.annotations});const i=$4(n,this.dedupe);return i&&(s.meta={...s.meta,referentialEqualities:i}),s}deserialize(t){const{json:n,meta:r}=t;let s=ab(n);return r?.values&&(s=M4(s,r.values,this)),r?.referentialEqualities&&(s=F4(s,r.referentialEqualities)),s}stringify(t){return JSON.stringify(this.serialize(t))}parse(t){return this.deserialize(JSON.parse(t))}registerClass(t,n){this.classRegistry.register(t,n)}registerSymbol(t,n){this.symbolRegistry.register(t,n)}registerCustom(t,n){this.customTransformerRegistry.register({name:n,...t})}allowErrorProps(...t){this.allowedErrorProps.push(...t)}}un.defaultInstance=new un;un.serialize=un.defaultInstance.serialize.bind(un.defaultInstance);un.deserialize=un.defaultInstance.deserialize.bind(un.defaultInstance);un.stringify=un.defaultInstance.stringify.bind(un.defaultInstance);un.parse=un.defaultInstance.parse.bind(un.defaultInstance);un.registerClass=un.defaultInstance.registerClass.bind(un.defaultInstance);un.registerSymbol=un.defaultInstance.registerSymbol.bind(un.defaultInstance);un.registerCustom=un.defaultInstance.registerCustom.bind(un.defaultInstance);un.allowErrorProps=un.defaultInstance.allowErrorProps.bind(un.defaultInstance);const j4=un.stringify;function hd(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var h0={exports:{}};/*!
1541
-
1542
- JSZip v3.10.1 - A JavaScript class for generating and reading zip files
1543
- <http://stuartk.com/jszip>
1544
-
1545
- (c) 2009-2016 Stuart Knightley <stuart [at] stuartk.com>
1546
- Dual licenced under the MIT license or GPLv3. See https://raw.github.com/Stuk/jszip/main/LICENSE.markdown.
1547
-
1548
- JSZip uses the library pako released under the MIT license :
1549
- https://github.com/nodeca/pako/blob/main/LICENSE
1550
- */var QE;function W4(){return QE||(QE=1,function(e,t){(function(n){e.exports=n()})(function(){return function n(r,s,i){function a(l,d){if(!s[l]){if(!r[l]){var f=typeof hd=="function"&&hd;if(!d&&f)return f(l,!0);if(o)return o(l,!0);var m=new Error("Cannot find module '"+l+"'");throw m.code="MODULE_NOT_FOUND",m}var h=s[l]={exports:{}};r[l][0].call(h.exports,function(b){var g=r[l][1][b];return a(g||b)},h,h.exports,n,r,s,i)}return s[l].exports}for(var o=typeof hd=="function"&&hd,c=0;c<i.length;c++)a(i[c]);return a}({1:[function(n,r,s){var i=n("./utils"),a=n("./support"),o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";s.encode=function(c){for(var l,d,f,m,h,b,g,y=[],p=0,C=c.length,w=C,_=i.getTypeOf(c)!=="string";p<c.length;)w=C-p,f=_?(l=c[p++],d=p<C?c[p++]:0,p<C?c[p++]:0):(l=c.charCodeAt(p++),d=p<C?c.charCodeAt(p++):0,p<C?c.charCodeAt(p++):0),m=l>>2,h=(3&l)<<4|d>>4,b=1<w?(15&d)<<2|f>>6:64,g=2<w?63&f:64,y.push(o.charAt(m)+o.charAt(h)+o.charAt(b)+o.charAt(g));return y.join("")},s.decode=function(c){var l,d,f,m,h,b,g=0,y=0,p="data:";if(c.substr(0,p.length)===p)throw new Error("Invalid base64 input, it looks like a data url.");var C,w=3*(c=c.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(c.charAt(c.length-1)===o.charAt(64)&&w--,c.charAt(c.length-2)===o.charAt(64)&&w--,w%1!=0)throw new Error("Invalid base64 input, bad content length.");for(C=a.uint8array?new Uint8Array(0|w):new Array(0|w);g<c.length;)l=o.indexOf(c.charAt(g++))<<2|(m=o.indexOf(c.charAt(g++)))>>4,d=(15&m)<<4|(h=o.indexOf(c.charAt(g++)))>>2,f=(3&h)<<6|(b=o.indexOf(c.charAt(g++))),C[y++]=l,h!==64&&(C[y++]=d),b!==64&&(C[y++]=f);return C}},{"./support":30,"./utils":32}],2:[function(n,r,s){var i=n("./external"),a=n("./stream/DataWorker"),o=n("./stream/Crc32Probe"),c=n("./stream/DataLengthProbe");function l(d,f,m,h,b){this.compressedSize=d,this.uncompressedSize=f,this.crc32=m,this.compression=h,this.compressedContent=b}l.prototype={getContentWorker:function(){var d=new a(i.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new c("data_length")),f=this;return d.on("end",function(){if(this.streamInfo.data_length!==f.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),d},getCompressedWorker:function(){return new a(i.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},l.createWorkerFrom=function(d,f,m){return d.pipe(new o).pipe(new c("uncompressedSize")).pipe(f.compressWorker(m)).pipe(new c("compressedSize")).withStreamInfo("compression",f)},r.exports=l},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(n,r,s){var i=n("./stream/GenericWorker");s.STORE={magic:"\0\0",compressWorker:function(){return new i("STORE compression")},uncompressWorker:function(){return new i("STORE decompression")}},s.DEFLATE=n("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(n,r,s){var i=n("./utils"),a=function(){for(var o,c=[],l=0;l<256;l++){o=l;for(var d=0;d<8;d++)o=1&o?3988292384^o>>>1:o>>>1;c[l]=o}return c}();r.exports=function(o,c){return o!==void 0&&o.length?i.getTypeOf(o)!=="string"?function(l,d,f,m){var h=a,b=m+f;l^=-1;for(var g=m;g<b;g++)l=l>>>8^h[255&(l^d[g])];return-1^l}(0|c,o,o.length,0):function(l,d,f,m){var h=a,b=m+f;l^=-1;for(var g=m;g<b;g++)l=l>>>8^h[255&(l^d.charCodeAt(g))];return-1^l}(0|c,o,o.length,0):0}},{"./utils":32}],5:[function(n,r,s){s.base64=!1,s.binary=!1,s.dir=!1,s.createFolders=!0,s.date=null,s.compression=null,s.compressionOptions=null,s.comment=null,s.unixPermissions=null,s.dosPermissions=null},{}],6:[function(n,r,s){var i=null;i=typeof Promise<"u"?Promise:n("lie"),r.exports={Promise:i}},{lie:37}],7:[function(n,r,s){var i=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Uint32Array<"u",a=n("pako"),o=n("./utils"),c=n("./stream/GenericWorker"),l=i?"uint8array":"array";function d(f,m){c.call(this,"FlateWorker/"+f),this._pako=null,this._pakoAction=f,this._pakoOptions=m,this.meta={}}s.magic="\b\0",o.inherits(d,c),d.prototype.processChunk=function(f){this.meta=f.meta,this._pako===null&&this._createPako(),this._pako.push(o.transformTo(l,f.data),!1)},d.prototype.flush=function(){c.prototype.flush.call(this),this._pako===null&&this._createPako(),this._pako.push([],!0)},d.prototype.cleanUp=function(){c.prototype.cleanUp.call(this),this._pako=null},d.prototype._createPako=function(){this._pako=new a[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var f=this;this._pako.onData=function(m){f.push({data:m,meta:f.meta})}},s.compressWorker=function(f){return new d("Deflate",f)},s.uncompressWorker=function(){return new d("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(n,r,s){function i(h,b){var g,y="";for(g=0;g<b;g++)y+=String.fromCharCode(255&h),h>>>=8;return y}function a(h,b,g,y,p,C){var w,_,S=h.file,A=h.compression,v=C!==l.utf8encode,O=o.transformTo("string",C(S.name)),z=o.transformTo("string",l.utf8encode(S.name)),Q=S.comment,be=o.transformTo("string",C(Q)),N=o.transformTo("string",l.utf8encode(Q)),Y=z.length!==S.name.length,x=N.length!==Q.length,Z="",Le="",re="",He=S.dir,he=S.date,ze={crc32:0,compressedSize:0,uncompressedSize:0};b&&!g||(ze.crc32=h.crc32,ze.compressedSize=h.compressedSize,ze.uncompressedSize=h.uncompressedSize);var X=0;b&&(X|=8),v||!Y&&!x||(X|=2048);var K=0,Qe=0;He&&(K|=16),p==="UNIX"?(Qe=798,K|=function(Be,et){var Wt=Be;return Be||(Wt=et?16893:33204),(65535&Wt)<<16}(S.unixPermissions,He)):(Qe=20,K|=function(Be){return 63&(Be||0)}(S.dosPermissions)),w=he.getUTCHours(),w<<=6,w|=he.getUTCMinutes(),w<<=5,w|=he.getUTCSeconds()/2,_=he.getUTCFullYear()-1980,_<<=4,_|=he.getUTCMonth()+1,_<<=5,_|=he.getUTCDate(),Y&&(Le=i(1,1)+i(d(O),4)+z,Z+="up"+i(Le.length,2)+Le),x&&(re=i(1,1)+i(d(be),4)+N,Z+="uc"+i(re.length,2)+re);var De="";return De+=`
1551
- \0`,De+=i(X,2),De+=A.magic,De+=i(w,2),De+=i(_,2),De+=i(ze.crc32,4),De+=i(ze.compressedSize,4),De+=i(ze.uncompressedSize,4),De+=i(O.length,2),De+=i(Z.length,2),{fileRecord:f.LOCAL_FILE_HEADER+De+O+Z,dirRecord:f.CENTRAL_FILE_HEADER+i(Qe,2)+De+i(be.length,2)+"\0\0\0\0"+i(K,4)+i(y,4)+O+Z+be}}var o=n("../utils"),c=n("../stream/GenericWorker"),l=n("../utf8"),d=n("../crc32"),f=n("../signature");function m(h,b,g,y){c.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=b,this.zipPlatform=g,this.encodeFileName=y,this.streamFiles=h,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}o.inherits(m,c),m.prototype.push=function(h){var b=h.meta.percent||0,g=this.entriesCount,y=this._sources.length;this.accumulate?this.contentBuffer.push(h):(this.bytesWritten+=h.data.length,c.prototype.push.call(this,{data:h.data,meta:{currentFile:this.currentFile,percent:g?(b+100*(g-y-1))/g:100}}))},m.prototype.openedSource=function(h){this.currentSourceOffset=this.bytesWritten,this.currentFile=h.file.name;var b=this.streamFiles&&!h.file.dir;if(b){var g=a(h,b,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:g.fileRecord,meta:{percent:0}})}else this.accumulate=!0},m.prototype.closedSource=function(h){this.accumulate=!1;var b=this.streamFiles&&!h.file.dir,g=a(h,b,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(g.dirRecord),b)this.push({data:function(y){return f.DATA_DESCRIPTOR+i(y.crc32,4)+i(y.compressedSize,4)+i(y.uncompressedSize,4)}(h),meta:{percent:100}});else for(this.push({data:g.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},m.prototype.flush=function(){for(var h=this.bytesWritten,b=0;b<this.dirRecords.length;b++)this.push({data:this.dirRecords[b],meta:{percent:100}});var g=this.bytesWritten-h,y=function(p,C,w,_,S){var A=o.transformTo("string",S(_));return f.CENTRAL_DIRECTORY_END+"\0\0\0\0"+i(p,2)+i(p,2)+i(C,4)+i(w,4)+i(A.length,2)+A}(this.dirRecords.length,g,h,this.zipComment,this.encodeFileName);this.push({data:y,meta:{percent:100}})},m.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},m.prototype.registerPrevious=function(h){this._sources.push(h);var b=this;return h.on("data",function(g){b.processChunk(g)}),h.on("end",function(){b.closedSource(b.previous.streamInfo),b._sources.length?b.prepareNextSource():b.end()}),h.on("error",function(g){b.error(g)}),this},m.prototype.resume=function(){return!!c.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},m.prototype.error=function(h){var b=this._sources;if(!c.prototype.error.call(this,h))return!1;for(var g=0;g<b.length;g++)try{b[g].error(h)}catch{}return!0},m.prototype.lock=function(){c.prototype.lock.call(this);for(var h=this._sources,b=0;b<h.length;b++)h[b].lock()},r.exports=m},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(n,r,s){var i=n("../compressions"),a=n("./ZipFileWorker");s.generateWorker=function(o,c,l){var d=new a(c.streamFiles,l,c.platform,c.encodeFileName),f=0;try{o.forEach(function(m,h){f++;var b=function(C,w){var _=C||w,S=i[_];if(!S)throw new Error(_+" is not a valid compression method !");return S}(h.options.compression,c.compression),g=h.options.compressionOptions||c.compressionOptions||{},y=h.dir,p=h.date;h._compressWorker(b,g).withStreamInfo("file",{name:m,dir:y,date:p,comment:h.comment||"",unixPermissions:h.unixPermissions,dosPermissions:h.dosPermissions}).pipe(d)}),d.entriesCount=f}catch(m){d.error(m)}return d}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(n,r,s){function i(){if(!(this instanceof i))return new i;if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files=Object.create(null),this.comment=null,this.root="",this.clone=function(){var a=new i;for(var o in this)typeof this[o]!="function"&&(a[o]=this[o]);return a}}(i.prototype=n("./object")).loadAsync=n("./load"),i.support=n("./support"),i.defaults=n("./defaults"),i.version="3.10.1",i.loadAsync=function(a,o){return new i().loadAsync(a,o)},i.external=n("./external"),r.exports=i},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(n,r,s){var i=n("./utils"),a=n("./external"),o=n("./utf8"),c=n("./zipEntries"),l=n("./stream/Crc32Probe"),d=n("./nodejsUtils");function f(m){return new a.Promise(function(h,b){var g=m.decompressed.getContentWorker().pipe(new l);g.on("error",function(y){b(y)}).on("end",function(){g.streamInfo.crc32!==m.decompressed.crc32?b(new Error("Corrupted zip : CRC32 mismatch")):h()}).resume()})}r.exports=function(m,h){var b=this;return h=i.extend(h||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:o.utf8decode}),d.isNode&&d.isStream(m)?a.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):i.prepareContent("the loaded zip file",m,!0,h.optimizedBinaryString,h.base64).then(function(g){var y=new c(h);return y.load(g),y}).then(function(g){var y=[a.Promise.resolve(g)],p=g.files;if(h.checkCRC32)for(var C=0;C<p.length;C++)y.push(f(p[C]));return a.Promise.all(y)}).then(function(g){for(var y=g.shift(),p=y.files,C=0;C<p.length;C++){var w=p[C],_=w.fileNameStr,S=i.resolve(w.fileNameStr);b.file(S,w.decompressed,{binary:!0,optimizedBinaryString:!0,date:w.date,dir:w.dir,comment:w.fileCommentStr.length?w.fileCommentStr:null,unixPermissions:w.unixPermissions,dosPermissions:w.dosPermissions,createFolders:h.createFolders}),w.dir||(b.file(S).unsafeOriginalName=_)}return y.zipComment.length&&(b.comment=y.zipComment),b})}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(n,r,s){var i=n("../utils"),a=n("../stream/GenericWorker");function o(c,l){a.call(this,"Nodejs stream input adapter for "+c),this._upstreamEnded=!1,this._bindStream(l)}i.inherits(o,a),o.prototype._bindStream=function(c){var l=this;(this._stream=c).pause(),c.on("data",function(d){l.push({data:d,meta:{percent:0}})}).on("error",function(d){l.isPaused?this.generatedError=d:l.error(d)}).on("end",function(){l.isPaused?l._upstreamEnded=!0:l.end()})},o.prototype.pause=function(){return!!a.prototype.pause.call(this)&&(this._stream.pause(),!0)},o.prototype.resume=function(){return!!a.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},r.exports=o},{"../stream/GenericWorker":28,"../utils":32}],13:[function(n,r,s){var i=n("readable-stream").Readable;function a(o,c,l){i.call(this,c),this._helper=o;var d=this;o.on("data",function(f,m){d.push(f)||d._helper.pause(),l&&l(m)}).on("error",function(f){d.emit("error",f)}).on("end",function(){d.push(null)})}n("../utils").inherits(a,i),a.prototype._read=function(){this._helper.resume()},r.exports=a},{"../utils":32,"readable-stream":16}],14:[function(n,r,s){r.exports={isNode:typeof Buffer<"u",newBufferFrom:function(i,a){if(Buffer.from&&Buffer.from!==Uint8Array.from)return Buffer.from(i,a);if(typeof i=="number")throw new Error('The "data" argument must not be a number');return new Buffer(i,a)},allocBuffer:function(i){if(Buffer.alloc)return Buffer.alloc(i);var a=new Buffer(i);return a.fill(0),a},isBuffer:function(i){return Buffer.isBuffer(i)},isStream:function(i){return i&&typeof i.on=="function"&&typeof i.pause=="function"&&typeof i.resume=="function"}}},{}],15:[function(n,r,s){function i(S,A,v){var O,z=o.getTypeOf(A),Q=o.extend(v||{},d);Q.date=Q.date||new Date,Q.compression!==null&&(Q.compression=Q.compression.toUpperCase()),typeof Q.unixPermissions=="string"&&(Q.unixPermissions=parseInt(Q.unixPermissions,8)),Q.unixPermissions&&16384&Q.unixPermissions&&(Q.dir=!0),Q.dosPermissions&&16&Q.dosPermissions&&(Q.dir=!0),Q.dir&&(S=p(S)),Q.createFolders&&(O=y(S))&&C.call(this,O,!0);var be=z==="string"&&Q.binary===!1&&Q.base64===!1;v&&v.binary!==void 0||(Q.binary=!be),(A instanceof f&&A.uncompressedSize===0||Q.dir||!A||A.length===0)&&(Q.base64=!1,Q.binary=!0,A="",Q.compression="STORE",z="string");var N=null;N=A instanceof f||A instanceof c?A:b.isNode&&b.isStream(A)?new g(S,A):o.prepareContent(S,A,Q.binary,Q.optimizedBinaryString,Q.base64);var Y=new m(S,N,Q);this.files[S]=Y}var a=n("./utf8"),o=n("./utils"),c=n("./stream/GenericWorker"),l=n("./stream/StreamHelper"),d=n("./defaults"),f=n("./compressedObject"),m=n("./zipObject"),h=n("./generate"),b=n("./nodejsUtils"),g=n("./nodejs/NodejsStreamInputAdapter"),y=function(S){S.slice(-1)==="/"&&(S=S.substring(0,S.length-1));var A=S.lastIndexOf("/");return 0<A?S.substring(0,A):""},p=function(S){return S.slice(-1)!=="/"&&(S+="/"),S},C=function(S,A){return A=A!==void 0?A:d.createFolders,S=p(S),this.files[S]||i.call(this,S,null,{dir:!0,createFolders:A}),this.files[S]};function w(S){return Object.prototype.toString.call(S)==="[object RegExp]"}var _={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(S){var A,v,O;for(A in this.files)O=this.files[A],(v=A.slice(this.root.length,A.length))&&A.slice(0,this.root.length)===this.root&&S(v,O)},filter:function(S){var A=[];return this.forEach(function(v,O){S(v,O)&&A.push(O)}),A},file:function(S,A,v){if(arguments.length!==1)return S=this.root+S,i.call(this,S,A,v),this;if(w(S)){var O=S;return this.filter(function(Q,be){return!be.dir&&O.test(Q)})}var z=this.files[this.root+S];return z&&!z.dir?z:null},folder:function(S){if(!S)return this;if(w(S))return this.filter(function(z,Q){return Q.dir&&S.test(z)});var A=this.root+S,v=C.call(this,A),O=this.clone();return O.root=v.name,O},remove:function(S){S=this.root+S;var A=this.files[S];if(A||(S.slice(-1)!=="/"&&(S+="/"),A=this.files[S]),A&&!A.dir)delete this.files[S];else for(var v=this.filter(function(z,Q){return Q.name.slice(0,S.length)===S}),O=0;O<v.length;O++)delete this.files[v[O].name];return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(S){var A,v={};try{if((v=o.extend(S||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:a.utf8encode})).type=v.type.toLowerCase(),v.compression=v.compression.toUpperCase(),v.type==="binarystring"&&(v.type="string"),!v.type)throw new Error("No output type specified.");o.checkSupport(v.type),v.platform!=="darwin"&&v.platform!=="freebsd"&&v.platform!=="linux"&&v.platform!=="sunos"||(v.platform="UNIX"),v.platform==="win32"&&(v.platform="DOS");var O=v.comment||this.comment||"";A=h.generateWorker(this,v,O)}catch(z){(A=new c("error")).error(z)}return new l(A,v.type||"string",v.mimeType)},generateAsync:function(S,A){return this.generateInternalStream(S).accumulate(A)},generateNodeStream:function(S,A){return(S=S||{}).type||(S.type="nodebuffer"),this.generateInternalStream(S).toNodejsStream(A)}};r.exports=_},{"./compressedObject":2,"./defaults":5,"./generate":9,"./nodejs/NodejsStreamInputAdapter":12,"./nodejsUtils":14,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31,"./utils":32,"./zipObject":35}],16:[function(n,r,s){r.exports=n("stream")},{stream:void 0}],17:[function(n,r,s){var i=n("./DataReader");function a(o){i.call(this,o);for(var c=0;c<this.data.length;c++)o[c]=255&o[c]}n("../utils").inherits(a,i),a.prototype.byteAt=function(o){return this.data[this.zero+o]},a.prototype.lastIndexOfSignature=function(o){for(var c=o.charCodeAt(0),l=o.charCodeAt(1),d=o.charCodeAt(2),f=o.charCodeAt(3),m=this.length-4;0<=m;--m)if(this.data[m]===c&&this.data[m+1]===l&&this.data[m+2]===d&&this.data[m+3]===f)return m-this.zero;return-1},a.prototype.readAndCheckSignature=function(o){var c=o.charCodeAt(0),l=o.charCodeAt(1),d=o.charCodeAt(2),f=o.charCodeAt(3),m=this.readData(4);return c===m[0]&&l===m[1]&&d===m[2]&&f===m[3]},a.prototype.readData=function(o){if(this.checkOffset(o),o===0)return[];var c=this.data.slice(this.zero+this.index,this.zero+this.index+o);return this.index+=o,c},r.exports=a},{"../utils":32,"./DataReader":18}],18:[function(n,r,s){var i=n("../utils");function a(o){this.data=o,this.length=o.length,this.index=0,this.zero=0}a.prototype={checkOffset:function(o){this.checkIndex(this.index+o)},checkIndex:function(o){if(this.length<this.zero+o||o<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+o+"). Corrupted zip ?")},setIndex:function(o){this.checkIndex(o),this.index=o},skip:function(o){this.setIndex(this.index+o)},byteAt:function(){},readInt:function(o){var c,l=0;for(this.checkOffset(o),c=this.index+o-1;c>=this.index;c--)l=(l<<8)+this.byteAt(c);return this.index+=o,l},readString:function(o){return i.transformTo("string",this.readData(o))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var o=this.readInt(4);return new Date(Date.UTC(1980+(o>>25&127),(o>>21&15)-1,o>>16&31,o>>11&31,o>>5&63,(31&o)<<1))}},r.exports=a},{"../utils":32}],19:[function(n,r,s){var i=n("./Uint8ArrayReader");function a(o){i.call(this,o)}n("../utils").inherits(a,i),a.prototype.readData=function(o){this.checkOffset(o);var c=this.data.slice(this.zero+this.index,this.zero+this.index+o);return this.index+=o,c},r.exports=a},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(n,r,s){var i=n("./DataReader");function a(o){i.call(this,o)}n("../utils").inherits(a,i),a.prototype.byteAt=function(o){return this.data.charCodeAt(this.zero+o)},a.prototype.lastIndexOfSignature=function(o){return this.data.lastIndexOf(o)-this.zero},a.prototype.readAndCheckSignature=function(o){return o===this.readData(4)},a.prototype.readData=function(o){this.checkOffset(o);var c=this.data.slice(this.zero+this.index,this.zero+this.index+o);return this.index+=o,c},r.exports=a},{"../utils":32,"./DataReader":18}],21:[function(n,r,s){var i=n("./ArrayReader");function a(o){i.call(this,o)}n("../utils").inherits(a,i),a.prototype.readData=function(o){if(this.checkOffset(o),o===0)return new Uint8Array(0);var c=this.data.subarray(this.zero+this.index,this.zero+this.index+o);return this.index+=o,c},r.exports=a},{"../utils":32,"./ArrayReader":17}],22:[function(n,r,s){var i=n("../utils"),a=n("../support"),o=n("./ArrayReader"),c=n("./StringReader"),l=n("./NodeBufferReader"),d=n("./Uint8ArrayReader");r.exports=function(f){var m=i.getTypeOf(f);return i.checkSupport(m),m!=="string"||a.uint8array?m==="nodebuffer"?new l(f):a.uint8array?new d(i.transformTo("uint8array",f)):new o(i.transformTo("array",f)):new c(f)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(n,r,s){s.LOCAL_FILE_HEADER="PK",s.CENTRAL_FILE_HEADER="PK",s.CENTRAL_DIRECTORY_END="PK",s.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x07",s.ZIP64_CENTRAL_DIRECTORY_END="PK",s.DATA_DESCRIPTOR="PK\x07\b"},{}],24:[function(n,r,s){var i=n("./GenericWorker"),a=n("../utils");function o(c){i.call(this,"ConvertWorker to "+c),this.destType=c}a.inherits(o,i),o.prototype.processChunk=function(c){this.push({data:a.transformTo(this.destType,c.data),meta:c.meta})},r.exports=o},{"../utils":32,"./GenericWorker":28}],25:[function(n,r,s){var i=n("./GenericWorker"),a=n("../crc32");function o(){i.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}n("../utils").inherits(o,i),o.prototype.processChunk=function(c){this.streamInfo.crc32=a(c.data,this.streamInfo.crc32||0),this.push(c)},r.exports=o},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(n,r,s){var i=n("../utils"),a=n("./GenericWorker");function o(c){a.call(this,"DataLengthProbe for "+c),this.propName=c,this.withStreamInfo(c,0)}i.inherits(o,a),o.prototype.processChunk=function(c){if(c){var l=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=l+c.data.length}a.prototype.processChunk.call(this,c)},r.exports=o},{"../utils":32,"./GenericWorker":28}],27:[function(n,r,s){var i=n("../utils"),a=n("./GenericWorker");function o(c){a.call(this,"DataWorker");var l=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,c.then(function(d){l.dataIsReady=!0,l.data=d,l.max=d&&d.length||0,l.type=i.getTypeOf(d),l.isPaused||l._tickAndRepeat()},function(d){l.error(d)})}i.inherits(o,a),o.prototype.cleanUp=function(){a.prototype.cleanUp.call(this),this.data=null},o.prototype.resume=function(){return!!a.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,i.delay(this._tickAndRepeat,[],this)),!0)},o.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(i.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},o.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var c=null,l=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":c=this.data.substring(this.index,l);break;case"uint8array":c=this.data.subarray(this.index,l);break;case"array":case"nodebuffer":c=this.data.slice(this.index,l)}return this.index=l,this.push({data:c,meta:{percent:this.max?this.index/this.max*100:0}})},r.exports=o},{"../utils":32,"./GenericWorker":28}],28:[function(n,r,s){function i(a){this.name=a||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}i.prototype={push:function(a){this.emit("data",a)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(a){this.emit("error",a)}return!0},error:function(a){return!this.isFinished&&(this.isPaused?this.generatedError=a:(this.isFinished=!0,this.emit("error",a),this.previous&&this.previous.error(a),this.cleanUp()),!0)},on:function(a,o){return this._listeners[a].push(o),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(a,o){if(this._listeners[a])for(var c=0;c<this._listeners[a].length;c++)this._listeners[a][c].call(this,o)},pipe:function(a){return a.registerPrevious(this)},registerPrevious:function(a){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=a.streamInfo,this.mergeStreamInfo(),this.previous=a;var o=this;return a.on("data",function(c){o.processChunk(c)}),a.on("end",function(){o.end()}),a.on("error",function(c){o.error(c)}),this},pause:function(){return!this.isPaused&&!this.isFinished&&(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},resume:function(){if(!this.isPaused||this.isFinished)return!1;var a=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),a=!0),this.previous&&this.previous.resume(),!a},flush:function(){},processChunk:function(a){this.push(a)},withStreamInfo:function(a,o){return this.extraStreamInfo[a]=o,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var a in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,a)&&(this.streamInfo[a]=this.extraStreamInfo[a])},lock:function(){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.isLocked=!0,this.previous&&this.previous.lock()},toString:function(){var a="Worker "+this.name;return this.previous?this.previous+" -> "+a:a}},r.exports=i},{}],29:[function(n,r,s){var i=n("../utils"),a=n("./ConvertWorker"),o=n("./GenericWorker"),c=n("../base64"),l=n("../support"),d=n("../external"),f=null;if(l.nodestream)try{f=n("../nodejs/NodejsStreamOutputAdapter")}catch{}function m(b,g){return new d.Promise(function(y,p){var C=[],w=b._internalType,_=b._outputType,S=b._mimeType;b.on("data",function(A,v){C.push(A),g&&g(v)}).on("error",function(A){C=[],p(A)}).on("end",function(){try{var A=function(v,O,z){switch(v){case"blob":return i.newBlob(i.transformTo("arraybuffer",O),z);case"base64":return c.encode(O);default:return i.transformTo(v,O)}}(_,function(v,O){var z,Q=0,be=null,N=0;for(z=0;z<O.length;z++)N+=O[z].length;switch(v){case"string":return O.join("");case"array":return Array.prototype.concat.apply([],O);case"uint8array":for(be=new Uint8Array(N),z=0;z<O.length;z++)be.set(O[z],Q),Q+=O[z].length;return be;case"nodebuffer":return Buffer.concat(O);default:throw new Error("concat : unsupported type '"+v+"'")}}(w,C),S);y(A)}catch(v){p(v)}C=[]}).resume()})}function h(b,g,y){var p=g;switch(g){case"blob":case"arraybuffer":p="uint8array";break;case"base64":p="string"}try{this._internalType=p,this._outputType=g,this._mimeType=y,i.checkSupport(p),this._worker=b.pipe(new a(p)),b.lock()}catch(C){this._worker=new o("error"),this._worker.error(C)}}h.prototype={accumulate:function(b){return m(this,b)},on:function(b,g){var y=this;return b==="data"?this._worker.on(b,function(p){g.call(y,p.data,p.meta)}):this._worker.on(b,function(){i.delay(g,arguments,y)}),this},resume:function(){return i.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(b){if(i.checkSupport("nodestream"),this._outputType!=="nodebuffer")throw new Error(this._outputType+" is not supported by this method");return new f(this,{objectMode:this._outputType!=="nodebuffer"},b)}},r.exports=h},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(n,r,s){if(s.base64=!0,s.array=!0,s.string=!0,s.arraybuffer=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u",s.nodebuffer=typeof Buffer<"u",s.uint8array=typeof Uint8Array<"u",typeof ArrayBuffer>"u")s.blob=!1;else{var i=new ArrayBuffer(0);try{s.blob=new Blob([i],{type:"application/zip"}).size===0}catch{try{var a=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);a.append(i),s.blob=a.getBlob("application/zip").size===0}catch{s.blob=!1}}}try{s.nodestream=!!n("readable-stream").Readable}catch{s.nodestream=!1}},{"readable-stream":16}],31:[function(n,r,s){for(var i=n("./utils"),a=n("./support"),o=n("./nodejsUtils"),c=n("./stream/GenericWorker"),l=new Array(256),d=0;d<256;d++)l[d]=252<=d?6:248<=d?5:240<=d?4:224<=d?3:192<=d?2:1;l[254]=l[254]=1;function f(){c.call(this,"utf-8 decode"),this.leftOver=null}function m(){c.call(this,"utf-8 encode")}s.utf8encode=function(h){return a.nodebuffer?o.newBufferFrom(h,"utf-8"):function(b){var g,y,p,C,w,_=b.length,S=0;for(C=0;C<_;C++)(64512&(y=b.charCodeAt(C)))==55296&&C+1<_&&(64512&(p=b.charCodeAt(C+1)))==56320&&(y=65536+(y-55296<<10)+(p-56320),C++),S+=y<128?1:y<2048?2:y<65536?3:4;for(g=a.uint8array?new Uint8Array(S):new Array(S),C=w=0;w<S;C++)(64512&(y=b.charCodeAt(C)))==55296&&C+1<_&&(64512&(p=b.charCodeAt(C+1)))==56320&&(y=65536+(y-55296<<10)+(p-56320),C++),y<128?g[w++]=y:(y<2048?g[w++]=192|y>>>6:(y<65536?g[w++]=224|y>>>12:(g[w++]=240|y>>>18,g[w++]=128|y>>>12&63),g[w++]=128|y>>>6&63),g[w++]=128|63&y);return g}(h)},s.utf8decode=function(h){return a.nodebuffer?i.transformTo("nodebuffer",h).toString("utf-8"):function(b){var g,y,p,C,w=b.length,_=new Array(2*w);for(g=y=0;g<w;)if((p=b[g++])<128)_[y++]=p;else if(4<(C=l[p]))_[y++]=65533,g+=C-1;else{for(p&=C===2?31:C===3?15:7;1<C&&g<w;)p=p<<6|63&b[g++],C--;1<C?_[y++]=65533:p<65536?_[y++]=p:(p-=65536,_[y++]=55296|p>>10&1023,_[y++]=56320|1023&p)}return _.length!==y&&(_.subarray?_=_.subarray(0,y):_.length=y),i.applyFromCharCode(_)}(h=i.transformTo(a.uint8array?"uint8array":"array",h))},i.inherits(f,c),f.prototype.processChunk=function(h){var b=i.transformTo(a.uint8array?"uint8array":"array",h.data);if(this.leftOver&&this.leftOver.length){if(a.uint8array){var g=b;(b=new Uint8Array(g.length+this.leftOver.length)).set(this.leftOver,0),b.set(g,this.leftOver.length)}else b=this.leftOver.concat(b);this.leftOver=null}var y=function(C,w){var _;for((w=w||C.length)>C.length&&(w=C.length),_=w-1;0<=_&&(192&C[_])==128;)_--;return _<0||_===0?w:_+l[C[_]]>w?_:w}(b),p=b;y!==b.length&&(a.uint8array?(p=b.subarray(0,y),this.leftOver=b.subarray(y,b.length)):(p=b.slice(0,y),this.leftOver=b.slice(y,b.length))),this.push({data:s.utf8decode(p),meta:h.meta})},f.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:s.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},s.Utf8DecodeWorker=f,i.inherits(m,c),m.prototype.processChunk=function(h){this.push({data:s.utf8encode(h.data),meta:h.meta})},s.Utf8EncodeWorker=m},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(n,r,s){var i=n("./support"),a=n("./base64"),o=n("./nodejsUtils"),c=n("./external");function l(g){return g}function d(g,y){for(var p=0;p<g.length;++p)y[p]=255&g.charCodeAt(p);return y}n("setimmediate"),s.newBlob=function(g,y){s.checkSupport("blob");try{return new Blob([g],{type:y})}catch{try{var p=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return p.append(g),p.getBlob(y)}catch{throw new Error("Bug : can't construct the Blob.")}}};var f={stringifyByChunk:function(g,y,p){var C=[],w=0,_=g.length;if(_<=p)return String.fromCharCode.apply(null,g);for(;w<_;)y==="array"||y==="nodebuffer"?C.push(String.fromCharCode.apply(null,g.slice(w,Math.min(w+p,_)))):C.push(String.fromCharCode.apply(null,g.subarray(w,Math.min(w+p,_)))),w+=p;return C.join("")},stringifyByChar:function(g){for(var y="",p=0;p<g.length;p++)y+=String.fromCharCode(g[p]);return y},applyCanBeUsed:{uint8array:function(){try{return i.uint8array&&String.fromCharCode.apply(null,new Uint8Array(1)).length===1}catch{return!1}}(),nodebuffer:function(){try{return i.nodebuffer&&String.fromCharCode.apply(null,o.allocBuffer(1)).length===1}catch{return!1}}()}};function m(g){var y=65536,p=s.getTypeOf(g),C=!0;if(p==="uint8array"?C=f.applyCanBeUsed.uint8array:p==="nodebuffer"&&(C=f.applyCanBeUsed.nodebuffer),C)for(;1<y;)try{return f.stringifyByChunk(g,p,y)}catch{y=Math.floor(y/2)}return f.stringifyByChar(g)}function h(g,y){for(var p=0;p<g.length;p++)y[p]=g[p];return y}s.applyFromCharCode=m;var b={};b.string={string:l,array:function(g){return d(g,new Array(g.length))},arraybuffer:function(g){return b.string.uint8array(g).buffer},uint8array:function(g){return d(g,new Uint8Array(g.length))},nodebuffer:function(g){return d(g,o.allocBuffer(g.length))}},b.array={string:m,array:l,arraybuffer:function(g){return new Uint8Array(g).buffer},uint8array:function(g){return new Uint8Array(g)},nodebuffer:function(g){return o.newBufferFrom(g)}},b.arraybuffer={string:function(g){return m(new Uint8Array(g))},array:function(g){return h(new Uint8Array(g),new Array(g.byteLength))},arraybuffer:l,uint8array:function(g){return new Uint8Array(g)},nodebuffer:function(g){return o.newBufferFrom(new Uint8Array(g))}},b.uint8array={string:m,array:function(g){return h(g,new Array(g.length))},arraybuffer:function(g){return g.buffer},uint8array:l,nodebuffer:function(g){return o.newBufferFrom(g)}},b.nodebuffer={string:m,array:function(g){return h(g,new Array(g.length))},arraybuffer:function(g){return b.nodebuffer.uint8array(g).buffer},uint8array:function(g){return h(g,new Uint8Array(g.length))},nodebuffer:l},s.transformTo=function(g,y){if(y=y||"",!g)return y;s.checkSupport(g);var p=s.getTypeOf(y);return b[p][g](y)},s.resolve=function(g){for(var y=g.split("/"),p=[],C=0;C<y.length;C++){var w=y[C];w==="."||w===""&&C!==0&&C!==y.length-1||(w===".."?p.pop():p.push(w))}return p.join("/")},s.getTypeOf=function(g){return typeof g=="string"?"string":Object.prototype.toString.call(g)==="[object Array]"?"array":i.nodebuffer&&o.isBuffer(g)?"nodebuffer":i.uint8array&&g instanceof Uint8Array?"uint8array":i.arraybuffer&&g instanceof ArrayBuffer?"arraybuffer":void 0},s.checkSupport=function(g){if(!i[g.toLowerCase()])throw new Error(g+" is not supported by this platform")},s.MAX_VALUE_16BITS=65535,s.MAX_VALUE_32BITS=-1,s.pretty=function(g){var y,p,C="";for(p=0;p<(g||"").length;p++)C+="\\x"+((y=g.charCodeAt(p))<16?"0":"")+y.toString(16).toUpperCase();return C},s.delay=function(g,y,p){setImmediate(function(){g.apply(p||null,y||[])})},s.inherits=function(g,y){function p(){}p.prototype=y.prototype,g.prototype=new p},s.extend=function(){var g,y,p={};for(g=0;g<arguments.length;g++)for(y in arguments[g])Object.prototype.hasOwnProperty.call(arguments[g],y)&&p[y]===void 0&&(p[y]=arguments[g][y]);return p},s.prepareContent=function(g,y,p,C,w){return c.Promise.resolve(y).then(function(_){return i.blob&&(_ instanceof Blob||["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(_))!==-1)&&typeof FileReader<"u"?new c.Promise(function(S,A){var v=new FileReader;v.onload=function(O){S(O.target.result)},v.onerror=function(O){A(O.target.error)},v.readAsArrayBuffer(_)}):_}).then(function(_){var S=s.getTypeOf(_);return S?(S==="arraybuffer"?_=s.transformTo("uint8array",_):S==="string"&&(w?_=a.decode(_):p&&C!==!0&&(_=function(A){return d(A,i.uint8array?new Uint8Array(A.length):new Array(A.length))}(_))),_):c.Promise.reject(new Error("Can't read the data of '"+g+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))})}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,setimmediate:54}],33:[function(n,r,s){var i=n("./reader/readerFor"),a=n("./utils"),o=n("./signature"),c=n("./zipEntry"),l=n("./support");function d(f){this.files=[],this.loadOptions=f}d.prototype={checkSignature:function(f){if(!this.reader.readAndCheckSignature(f)){this.reader.index-=4;var m=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+a.pretty(m)+", expected "+a.pretty(f)+")")}},isSignature:function(f,m){var h=this.reader.index;this.reader.setIndex(f);var b=this.reader.readString(4)===m;return this.reader.setIndex(h),b},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var f=this.reader.readData(this.zipCommentLength),m=l.uint8array?"uint8array":"array",h=a.transformTo(m,f);this.zipComment=this.loadOptions.decodeFileName(h)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var f,m,h,b=this.zip64EndOfCentralSize-44;0<b;)f=this.reader.readInt(2),m=this.reader.readInt(4),h=this.reader.readData(m),this.zip64ExtensibleData[f]={id:f,length:m,value:h}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),1<this.disksCount)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var f,m;for(f=0;f<this.files.length;f++)m=this.files[f],this.reader.setIndex(m.localHeaderOffset),this.checkSignature(o.LOCAL_FILE_HEADER),m.readLocalPart(this.reader),m.handleUTF8(),m.processAttributes()},readCentralDir:function(){var f;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(o.CENTRAL_FILE_HEADER);)(f=new c({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(f);if(this.centralDirRecords!==this.files.length&&this.centralDirRecords!==0&&this.files.length===0)throw new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},readEndOfCentral:function(){var f=this.reader.lastIndexOfSignature(o.CENTRAL_DIRECTORY_END);if(f<0)throw this.isSignature(0,o.LOCAL_FILE_HEADER)?new Error("Corrupted zip: can't find end of central directory"):new Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html");this.reader.setIndex(f);var m=f;if(this.checkSignature(o.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===a.MAX_VALUE_16BITS||this.diskWithCentralDirStart===a.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===a.MAX_VALUE_16BITS||this.centralDirRecords===a.MAX_VALUE_16BITS||this.centralDirSize===a.MAX_VALUE_32BITS||this.centralDirOffset===a.MAX_VALUE_32BITS){if(this.zip64=!0,(f=this.reader.lastIndexOfSignature(o.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(f),this.checkSignature(o.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,o.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(o.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0))throw new Error("Corrupted zip: can't find the ZIP64 end of central directory");this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(o.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var h=this.centralDirOffset+this.centralDirSize;this.zip64&&(h+=20,h+=12+this.zip64EndOfCentralSize);var b=m-h;if(0<b)this.isSignature(m,o.CENTRAL_FILE_HEADER)||(this.reader.zero=b);else if(b<0)throw new Error("Corrupted zip: missing "+Math.abs(b)+" bytes.")},prepareReader:function(f){this.reader=i(f)},load:function(f){this.prepareReader(f),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},r.exports=d},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(n,r,s){var i=n("./reader/readerFor"),a=n("./utils"),o=n("./compressedObject"),c=n("./crc32"),l=n("./utf8"),d=n("./compressions"),f=n("./support");function m(h,b){this.options=h,this.loadOptions=b}m.prototype={isEncrypted:function(){return(1&this.bitFlag)==1},useUTF8:function(){return(2048&this.bitFlag)==2048},readLocalPart:function(h){var b,g;if(h.skip(22),this.fileNameLength=h.readInt(2),g=h.readInt(2),this.fileName=h.readData(this.fileNameLength),h.skip(g),this.compressedSize===-1||this.uncompressedSize===-1)throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if((b=function(y){for(var p in d)if(Object.prototype.hasOwnProperty.call(d,p)&&d[p].magic===y)return d[p];return null}(this.compressionMethod))===null)throw new Error("Corrupted zip : compression "+a.pretty(this.compressionMethod)+" unknown (inner file : "+a.transformTo("string",this.fileName)+")");this.decompressed=new o(this.compressedSize,this.uncompressedSize,this.crc32,b,h.readData(this.compressedSize))},readCentralPart:function(h){this.versionMadeBy=h.readInt(2),h.skip(2),this.bitFlag=h.readInt(2),this.compressionMethod=h.readString(2),this.date=h.readDate(),this.crc32=h.readInt(4),this.compressedSize=h.readInt(4),this.uncompressedSize=h.readInt(4);var b=h.readInt(2);if(this.extraFieldsLength=h.readInt(2),this.fileCommentLength=h.readInt(2),this.diskNumberStart=h.readInt(2),this.internalFileAttributes=h.readInt(2),this.externalFileAttributes=h.readInt(4),this.localHeaderOffset=h.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");h.skip(b),this.readExtraFields(h),this.parseZIP64ExtraField(h),this.fileComment=h.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var h=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),h==0&&(this.dosPermissions=63&this.externalFileAttributes),h==3&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||this.fileNameStr.slice(-1)!=="/"||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var h=i(this.extraFields[1].value);this.uncompressedSize===a.MAX_VALUE_32BITS&&(this.uncompressedSize=h.readInt(8)),this.compressedSize===a.MAX_VALUE_32BITS&&(this.compressedSize=h.readInt(8)),this.localHeaderOffset===a.MAX_VALUE_32BITS&&(this.localHeaderOffset=h.readInt(8)),this.diskNumberStart===a.MAX_VALUE_32BITS&&(this.diskNumberStart=h.readInt(4))}},readExtraFields:function(h){var b,g,y,p=h.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});h.index+4<p;)b=h.readInt(2),g=h.readInt(2),y=h.readData(g),this.extraFields[b]={id:b,length:g,value:y};h.setIndex(p)},handleUTF8:function(){var h=f.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=l.utf8decode(this.fileName),this.fileCommentStr=l.utf8decode(this.fileComment);else{var b=this.findExtraFieldUnicodePath();if(b!==null)this.fileNameStr=b;else{var g=a.transformTo(h,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(g)}var y=this.findExtraFieldUnicodeComment();if(y!==null)this.fileCommentStr=y;else{var p=a.transformTo(h,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(p)}}},findExtraFieldUnicodePath:function(){var h=this.extraFields[28789];if(h){var b=i(h.value);return b.readInt(1)!==1||c(this.fileName)!==b.readInt(4)?null:l.utf8decode(b.readData(h.length-5))}return null},findExtraFieldUnicodeComment:function(){var h=this.extraFields[25461];if(h){var b=i(h.value);return b.readInt(1)!==1||c(this.fileComment)!==b.readInt(4)?null:l.utf8decode(b.readData(h.length-5))}return null}},r.exports=m},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(n,r,s){function i(b,g,y){this.name=b,this.dir=y.dir,this.date=y.date,this.comment=y.comment,this.unixPermissions=y.unixPermissions,this.dosPermissions=y.dosPermissions,this._data=g,this._dataBinary=y.binary,this.options={compression:y.compression,compressionOptions:y.compressionOptions}}var a=n("./stream/StreamHelper"),o=n("./stream/DataWorker"),c=n("./utf8"),l=n("./compressedObject"),d=n("./stream/GenericWorker");i.prototype={internalStream:function(b){var g=null,y="string";try{if(!b)throw new Error("No output type specified.");var p=(y=b.toLowerCase())==="string"||y==="text";y!=="binarystring"&&y!=="text"||(y="string"),g=this._decompressWorker();var C=!this._dataBinary;C&&!p&&(g=g.pipe(new c.Utf8EncodeWorker)),!C&&p&&(g=g.pipe(new c.Utf8DecodeWorker))}catch(w){(g=new d("error")).error(w)}return new a(g,y,"")},async:function(b,g){return this.internalStream(b).accumulate(g)},nodeStream:function(b,g){return this.internalStream(b||"nodebuffer").toNodejsStream(g)},_compressWorker:function(b,g){if(this._data instanceof l&&this._data.compression.magic===b.magic)return this._data.getCompressedWorker();var y=this._decompressWorker();return this._dataBinary||(y=y.pipe(new c.Utf8EncodeWorker)),l.createWorkerFrom(y,b,g)},_decompressWorker:function(){return this._data instanceof l?this._data.getContentWorker():this._data instanceof d?this._data:new o(this._data)}};for(var f=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],m=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},h=0;h<f.length;h++)i.prototype[f[h]]=m;r.exports=i},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(n,r,s){(function(i){var a,o,c=i.MutationObserver||i.WebKitMutationObserver;if(c){var l=0,d=new c(b),f=i.document.createTextNode("");d.observe(f,{characterData:!0}),a=function(){f.data=l=++l%2}}else if(i.setImmediate||i.MessageChannel===void 0)a="document"in i&&"onreadystatechange"in i.document.createElement("script")?function(){var g=i.document.createElement("script");g.onreadystatechange=function(){b(),g.onreadystatechange=null,g.parentNode.removeChild(g),g=null},i.document.documentElement.appendChild(g)}:function(){setTimeout(b,0)};else{var m=new i.MessageChannel;m.port1.onmessage=b,a=function(){m.port2.postMessage(0)}}var h=[];function b(){var g,y;o=!0;for(var p=h.length;p;){for(y=h,h=[],g=-1;++g<p;)y[g]();p=h.length}o=!1}r.exports=function(g){h.push(g)!==1||o||a()}}).call(this,typeof ld<"u"?ld:typeof self<"u"?self:typeof window<"u"?window:{})},{}],37:[function(n,r,s){var i=n("immediate");function a(){}var o={},c=["REJECTED"],l=["FULFILLED"],d=["PENDING"];function f(p){if(typeof p!="function")throw new TypeError("resolver must be a function");this.state=d,this.queue=[],this.outcome=void 0,p!==a&&g(this,p)}function m(p,C,w){this.promise=p,typeof C=="function"&&(this.onFulfilled=C,this.callFulfilled=this.otherCallFulfilled),typeof w=="function"&&(this.onRejected=w,this.callRejected=this.otherCallRejected)}function h(p,C,w){i(function(){var _;try{_=C(w)}catch(S){return o.reject(p,S)}_===p?o.reject(p,new TypeError("Cannot resolve promise with itself")):o.resolve(p,_)})}function b(p){var C=p&&p.then;if(p&&(typeof p=="object"||typeof p=="function")&&typeof C=="function")return function(){C.apply(p,arguments)}}function g(p,C){var w=!1;function _(v){w||(w=!0,o.reject(p,v))}function S(v){w||(w=!0,o.resolve(p,v))}var A=y(function(){C(S,_)});A.status==="error"&&_(A.value)}function y(p,C){var w={};try{w.value=p(C),w.status="success"}catch(_){w.status="error",w.value=_}return w}(r.exports=f).prototype.finally=function(p){if(typeof p!="function")return this;var C=this.constructor;return this.then(function(w){return C.resolve(p()).then(function(){return w})},function(w){return C.resolve(p()).then(function(){throw w})})},f.prototype.catch=function(p){return this.then(null,p)},f.prototype.then=function(p,C){if(typeof p!="function"&&this.state===l||typeof C!="function"&&this.state===c)return this;var w=new this.constructor(a);return this.state!==d?h(w,this.state===l?p:C,this.outcome):this.queue.push(new m(w,p,C)),w},m.prototype.callFulfilled=function(p){o.resolve(this.promise,p)},m.prototype.otherCallFulfilled=function(p){h(this.promise,this.onFulfilled,p)},m.prototype.callRejected=function(p){o.reject(this.promise,p)},m.prototype.otherCallRejected=function(p){h(this.promise,this.onRejected,p)},o.resolve=function(p,C){var w=y(b,C);if(w.status==="error")return o.reject(p,w.value);var _=w.value;if(_)g(p,_);else{p.state=l,p.outcome=C;for(var S=-1,A=p.queue.length;++S<A;)p.queue[S].callFulfilled(C)}return p},o.reject=function(p,C){p.state=c,p.outcome=C;for(var w=-1,_=p.queue.length;++w<_;)p.queue[w].callRejected(C);return p},f.resolve=function(p){return p instanceof this?p:o.resolve(new this(a),p)},f.reject=function(p){var C=new this(a);return o.reject(C,p)},f.all=function(p){var C=this;if(Object.prototype.toString.call(p)!=="[object Array]")return this.reject(new TypeError("must be an array"));var w=p.length,_=!1;if(!w)return this.resolve([]);for(var S=new Array(w),A=0,v=-1,O=new this(a);++v<w;)z(p[v],v);return O;function z(Q,be){C.resolve(Q).then(function(N){S[be]=N,++A!==w||_||(_=!0,o.resolve(O,S))},function(N){_||(_=!0,o.reject(O,N))})}},f.race=function(p){var C=this;if(Object.prototype.toString.call(p)!=="[object Array]")return this.reject(new TypeError("must be an array"));var w=p.length,_=!1;if(!w)return this.resolve([]);for(var S=-1,A=new this(a);++S<w;)v=p[S],C.resolve(v).then(function(O){_||(_=!0,o.resolve(A,O))},function(O){_||(_=!0,o.reject(A,O))});var v;return A}},{immediate:36}],38:[function(n,r,s){var i={};(0,n("./lib/utils/common").assign)(i,n("./lib/deflate"),n("./lib/inflate"),n("./lib/zlib/constants")),r.exports=i},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(n,r,s){var i=n("./zlib/deflate"),a=n("./utils/common"),o=n("./utils/strings"),c=n("./zlib/messages"),l=n("./zlib/zstream"),d=Object.prototype.toString,f=0,m=-1,h=0,b=8;function g(p){if(!(this instanceof g))return new g(p);this.options=a.assign({level:m,method:b,chunkSize:16384,windowBits:15,memLevel:8,strategy:h,to:""},p||{});var C=this.options;C.raw&&0<C.windowBits?C.windowBits=-C.windowBits:C.gzip&&0<C.windowBits&&C.windowBits<16&&(C.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new l,this.strm.avail_out=0;var w=i.deflateInit2(this.strm,C.level,C.method,C.windowBits,C.memLevel,C.strategy);if(w!==f)throw new Error(c[w]);if(C.header&&i.deflateSetHeader(this.strm,C.header),C.dictionary){var _;if(_=typeof C.dictionary=="string"?o.string2buf(C.dictionary):d.call(C.dictionary)==="[object ArrayBuffer]"?new Uint8Array(C.dictionary):C.dictionary,(w=i.deflateSetDictionary(this.strm,_))!==f)throw new Error(c[w]);this._dict_set=!0}}function y(p,C){var w=new g(C);if(w.push(p,!0),w.err)throw w.msg||c[w.err];return w.result}g.prototype.push=function(p,C){var w,_,S=this.strm,A=this.options.chunkSize;if(this.ended)return!1;_=C===~~C?C:C===!0?4:0,typeof p=="string"?S.input=o.string2buf(p):d.call(p)==="[object ArrayBuffer]"?S.input=new Uint8Array(p):S.input=p,S.next_in=0,S.avail_in=S.input.length;do{if(S.avail_out===0&&(S.output=new a.Buf8(A),S.next_out=0,S.avail_out=A),(w=i.deflate(S,_))!==1&&w!==f)return this.onEnd(w),!(this.ended=!0);S.avail_out!==0&&(S.avail_in!==0||_!==4&&_!==2)||(this.options.to==="string"?this.onData(o.buf2binstring(a.shrinkBuf(S.output,S.next_out))):this.onData(a.shrinkBuf(S.output,S.next_out)))}while((0<S.avail_in||S.avail_out===0)&&w!==1);return _===4?(w=i.deflateEnd(this.strm),this.onEnd(w),this.ended=!0,w===f):_!==2||(this.onEnd(f),!(S.avail_out=0))},g.prototype.onData=function(p){this.chunks.push(p)},g.prototype.onEnd=function(p){p===f&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=a.flattenChunks(this.chunks)),this.chunks=[],this.err=p,this.msg=this.strm.msg},s.Deflate=g,s.deflate=y,s.deflateRaw=function(p,C){return(C=C||{}).raw=!0,y(p,C)},s.gzip=function(p,C){return(C=C||{}).gzip=!0,y(p,C)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(n,r,s){var i=n("./zlib/inflate"),a=n("./utils/common"),o=n("./utils/strings"),c=n("./zlib/constants"),l=n("./zlib/messages"),d=n("./zlib/zstream"),f=n("./zlib/gzheader"),m=Object.prototype.toString;function h(g){if(!(this instanceof h))return new h(g);this.options=a.assign({chunkSize:16384,windowBits:0,to:""},g||{});var y=this.options;y.raw&&0<=y.windowBits&&y.windowBits<16&&(y.windowBits=-y.windowBits,y.windowBits===0&&(y.windowBits=-15)),!(0<=y.windowBits&&y.windowBits<16)||g&&g.windowBits||(y.windowBits+=32),15<y.windowBits&&y.windowBits<48&&(15&y.windowBits)==0&&(y.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new d,this.strm.avail_out=0;var p=i.inflateInit2(this.strm,y.windowBits);if(p!==c.Z_OK)throw new Error(l[p]);this.header=new f,i.inflateGetHeader(this.strm,this.header)}function b(g,y){var p=new h(y);if(p.push(g,!0),p.err)throw p.msg||l[p.err];return p.result}h.prototype.push=function(g,y){var p,C,w,_,S,A,v=this.strm,O=this.options.chunkSize,z=this.options.dictionary,Q=!1;if(this.ended)return!1;C=y===~~y?y:y===!0?c.Z_FINISH:c.Z_NO_FLUSH,typeof g=="string"?v.input=o.binstring2buf(g):m.call(g)==="[object ArrayBuffer]"?v.input=new Uint8Array(g):v.input=g,v.next_in=0,v.avail_in=v.input.length;do{if(v.avail_out===0&&(v.output=new a.Buf8(O),v.next_out=0,v.avail_out=O),(p=i.inflate(v,c.Z_NO_FLUSH))===c.Z_NEED_DICT&&z&&(A=typeof z=="string"?o.string2buf(z):m.call(z)==="[object ArrayBuffer]"?new Uint8Array(z):z,p=i.inflateSetDictionary(this.strm,A)),p===c.Z_BUF_ERROR&&Q===!0&&(p=c.Z_OK,Q=!1),p!==c.Z_STREAM_END&&p!==c.Z_OK)return this.onEnd(p),!(this.ended=!0);v.next_out&&(v.avail_out!==0&&p!==c.Z_STREAM_END&&(v.avail_in!==0||C!==c.Z_FINISH&&C!==c.Z_SYNC_FLUSH)||(this.options.to==="string"?(w=o.utf8border(v.output,v.next_out),_=v.next_out-w,S=o.buf2string(v.output,w),v.next_out=_,v.avail_out=O-_,_&&a.arraySet(v.output,v.output,w,_,0),this.onData(S)):this.onData(a.shrinkBuf(v.output,v.next_out)))),v.avail_in===0&&v.avail_out===0&&(Q=!0)}while((0<v.avail_in||v.avail_out===0)&&p!==c.Z_STREAM_END);return p===c.Z_STREAM_END&&(C=c.Z_FINISH),C===c.Z_FINISH?(p=i.inflateEnd(this.strm),this.onEnd(p),this.ended=!0,p===c.Z_OK):C!==c.Z_SYNC_FLUSH||(this.onEnd(c.Z_OK),!(v.avail_out=0))},h.prototype.onData=function(g){this.chunks.push(g)},h.prototype.onEnd=function(g){g===c.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=a.flattenChunks(this.chunks)),this.chunks=[],this.err=g,this.msg=this.strm.msg},s.Inflate=h,s.inflate=b,s.inflateRaw=function(g,y){return(y=y||{}).raw=!0,b(g,y)},s.ungzip=b},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(n,r,s){var i=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";s.assign=function(c){for(var l=Array.prototype.slice.call(arguments,1);l.length;){var d=l.shift();if(d){if(typeof d!="object")throw new TypeError(d+"must be non-object");for(var f in d)d.hasOwnProperty(f)&&(c[f]=d[f])}}return c},s.shrinkBuf=function(c,l){return c.length===l?c:c.subarray?c.subarray(0,l):(c.length=l,c)};var a={arraySet:function(c,l,d,f,m){if(l.subarray&&c.subarray)c.set(l.subarray(d,d+f),m);else for(var h=0;h<f;h++)c[m+h]=l[d+h]},flattenChunks:function(c){var l,d,f,m,h,b;for(l=f=0,d=c.length;l<d;l++)f+=c[l].length;for(b=new Uint8Array(f),l=m=0,d=c.length;l<d;l++)h=c[l],b.set(h,m),m+=h.length;return b}},o={arraySet:function(c,l,d,f,m){for(var h=0;h<f;h++)c[m+h]=l[d+h]},flattenChunks:function(c){return[].concat.apply([],c)}};s.setTyped=function(c){c?(s.Buf8=Uint8Array,s.Buf16=Uint16Array,s.Buf32=Int32Array,s.assign(s,a)):(s.Buf8=Array,s.Buf16=Array,s.Buf32=Array,s.assign(s,o))},s.setTyped(i)},{}],42:[function(n,r,s){var i=n("./common"),a=!0,o=!0;try{String.fromCharCode.apply(null,[0])}catch{a=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{o=!1}for(var c=new i.Buf8(256),l=0;l<256;l++)c[l]=252<=l?6:248<=l?5:240<=l?4:224<=l?3:192<=l?2:1;function d(f,m){if(m<65537&&(f.subarray&&o||!f.subarray&&a))return String.fromCharCode.apply(null,i.shrinkBuf(f,m));for(var h="",b=0;b<m;b++)h+=String.fromCharCode(f[b]);return h}c[254]=c[254]=1,s.string2buf=function(f){var m,h,b,g,y,p=f.length,C=0;for(g=0;g<p;g++)(64512&(h=f.charCodeAt(g)))==55296&&g+1<p&&(64512&(b=f.charCodeAt(g+1)))==56320&&(h=65536+(h-55296<<10)+(b-56320),g++),C+=h<128?1:h<2048?2:h<65536?3:4;for(m=new i.Buf8(C),g=y=0;y<C;g++)(64512&(h=f.charCodeAt(g)))==55296&&g+1<p&&(64512&(b=f.charCodeAt(g+1)))==56320&&(h=65536+(h-55296<<10)+(b-56320),g++),h<128?m[y++]=h:(h<2048?m[y++]=192|h>>>6:(h<65536?m[y++]=224|h>>>12:(m[y++]=240|h>>>18,m[y++]=128|h>>>12&63),m[y++]=128|h>>>6&63),m[y++]=128|63&h);return m},s.buf2binstring=function(f){return d(f,f.length)},s.binstring2buf=function(f){for(var m=new i.Buf8(f.length),h=0,b=m.length;h<b;h++)m[h]=f.charCodeAt(h);return m},s.buf2string=function(f,m){var h,b,g,y,p=m||f.length,C=new Array(2*p);for(h=b=0;h<p;)if((g=f[h++])<128)C[b++]=g;else if(4<(y=c[g]))C[b++]=65533,h+=y-1;else{for(g&=y===2?31:y===3?15:7;1<y&&h<p;)g=g<<6|63&f[h++],y--;1<y?C[b++]=65533:g<65536?C[b++]=g:(g-=65536,C[b++]=55296|g>>10&1023,C[b++]=56320|1023&g)}return d(C,b)},s.utf8border=function(f,m){var h;for((m=m||f.length)>f.length&&(m=f.length),h=m-1;0<=h&&(192&f[h])==128;)h--;return h<0||h===0?m:h+c[f[h]]>m?h:m}},{"./common":41}],43:[function(n,r,s){r.exports=function(i,a,o,c){for(var l=65535&i|0,d=i>>>16&65535|0,f=0;o!==0;){for(o-=f=2e3<o?2e3:o;d=d+(l=l+a[c++]|0)|0,--f;);l%=65521,d%=65521}return l|d<<16|0}},{}],44:[function(n,r,s){r.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],45:[function(n,r,s){var i=function(){for(var a,o=[],c=0;c<256;c++){a=c;for(var l=0;l<8;l++)a=1&a?3988292384^a>>>1:a>>>1;o[c]=a}return o}();r.exports=function(a,o,c,l){var d=i,f=l+c;a^=-1;for(var m=l;m<f;m++)a=a>>>8^d[255&(a^o[m])];return-1^a}},{}],46:[function(n,r,s){var i,a=n("../utils/common"),o=n("./trees"),c=n("./adler32"),l=n("./crc32"),d=n("./messages"),f=0,m=4,h=0,b=-2,g=-1,y=4,p=2,C=8,w=9,_=286,S=30,A=19,v=2*_+1,O=15,z=3,Q=258,be=Q+z+1,N=42,Y=113,x=1,Z=2,Le=3,re=4;function He(E,de){return E.msg=d[de],de}function he(E){return(E<<1)-(4<E?9:0)}function ze(E){for(var de=E.length;0<=--de;)E[de]=0}function X(E){var de=E.state,se=de.pending;se>E.avail_out&&(se=E.avail_out),se!==0&&(a.arraySet(E.output,de.pending_buf,de.pending_out,se,E.next_out),E.next_out+=se,de.pending_out+=se,E.total_out+=se,E.avail_out-=se,de.pending-=se,de.pending===0&&(de.pending_out=0))}function K(E,de){o._tr_flush_block(E,0<=E.block_start?E.block_start:-1,E.strstart-E.block_start,de),E.block_start=E.strstart,X(E.strm)}function Qe(E,de){E.pending_buf[E.pending++]=de}function De(E,de){E.pending_buf[E.pending++]=de>>>8&255,E.pending_buf[E.pending++]=255&de}function Be(E,de){var se,L,I=E.max_chain_length,W=E.strstart,U=E.prev_length,q=E.nice_match,$=E.strstart>E.w_size-be?E.strstart-(E.w_size-be):0,ae=E.window,Pe=E.w_mask,ye=E.prev,Ye=E.strstart+Q,It=ae[W+U-1],ht=ae[W+U];E.prev_length>=E.good_match&&(I>>=2),q>E.lookahead&&(q=E.lookahead);do if(ae[(se=de)+U]===ht&&ae[se+U-1]===It&&ae[se]===ae[W]&&ae[++se]===ae[W+1]){W+=2,se++;do;while(ae[++W]===ae[++se]&&ae[++W]===ae[++se]&&ae[++W]===ae[++se]&&ae[++W]===ae[++se]&&ae[++W]===ae[++se]&&ae[++W]===ae[++se]&&ae[++W]===ae[++se]&&ae[++W]===ae[++se]&&W<Ye);if(L=Q-(Ye-W),W=Ye-Q,U<L){if(E.match_start=de,q<=(U=L))break;It=ae[W+U-1],ht=ae[W+U]}}while((de=ye[de&Pe])>$&&--I!=0);return U<=E.lookahead?U:E.lookahead}function et(E){var de,se,L,I,W,U,q,$,ae,Pe,ye=E.w_size;do{if(I=E.window_size-E.lookahead-E.strstart,E.strstart>=ye+(ye-be)){for(a.arraySet(E.window,E.window,ye,ye,0),E.match_start-=ye,E.strstart-=ye,E.block_start-=ye,de=se=E.hash_size;L=E.head[--de],E.head[de]=ye<=L?L-ye:0,--se;);for(de=se=ye;L=E.prev[--de],E.prev[de]=ye<=L?L-ye:0,--se;);I+=ye}if(E.strm.avail_in===0)break;if(U=E.strm,q=E.window,$=E.strstart+E.lookahead,ae=I,Pe=void 0,Pe=U.avail_in,ae<Pe&&(Pe=ae),se=Pe===0?0:(U.avail_in-=Pe,a.arraySet(q,U.input,U.next_in,Pe,$),U.state.wrap===1?U.adler=c(U.adler,q,Pe,$):U.state.wrap===2&&(U.adler=l(U.adler,q,Pe,$)),U.next_in+=Pe,U.total_in+=Pe,Pe),E.lookahead+=se,E.lookahead+E.insert>=z)for(W=E.strstart-E.insert,E.ins_h=E.window[W],E.ins_h=(E.ins_h<<E.hash_shift^E.window[W+1])&E.hash_mask;E.insert&&(E.ins_h=(E.ins_h<<E.hash_shift^E.window[W+z-1])&E.hash_mask,E.prev[W&E.w_mask]=E.head[E.ins_h],E.head[E.ins_h]=W,W++,E.insert--,!(E.lookahead+E.insert<z)););}while(E.lookahead<be&&E.strm.avail_in!==0)}function Wt(E,de){for(var se,L;;){if(E.lookahead<be){if(et(E),E.lookahead<be&&de===f)return x;if(E.lookahead===0)break}if(se=0,E.lookahead>=z&&(E.ins_h=(E.ins_h<<E.hash_shift^E.window[E.strstart+z-1])&E.hash_mask,se=E.prev[E.strstart&E.w_mask]=E.head[E.ins_h],E.head[E.ins_h]=E.strstart),se!==0&&E.strstart-se<=E.w_size-be&&(E.match_length=Be(E,se)),E.match_length>=z)if(L=o._tr_tally(E,E.strstart-E.match_start,E.match_length-z),E.lookahead-=E.match_length,E.match_length<=E.max_lazy_match&&E.lookahead>=z){for(E.match_length--;E.strstart++,E.ins_h=(E.ins_h<<E.hash_shift^E.window[E.strstart+z-1])&E.hash_mask,se=E.prev[E.strstart&E.w_mask]=E.head[E.ins_h],E.head[E.ins_h]=E.strstart,--E.match_length!=0;);E.strstart++}else E.strstart+=E.match_length,E.match_length=0,E.ins_h=E.window[E.strstart],E.ins_h=(E.ins_h<<E.hash_shift^E.window[E.strstart+1])&E.hash_mask;else L=o._tr_tally(E,0,E.window[E.strstart]),E.lookahead--,E.strstart++;if(L&&(K(E,!1),E.strm.avail_out===0))return x}return E.insert=E.strstart<z-1?E.strstart:z-1,de===m?(K(E,!0),E.strm.avail_out===0?Le:re):E.last_lit&&(K(E,!1),E.strm.avail_out===0)?x:Z}function ft(E,de){for(var se,L,I;;){if(E.lookahead<be){if(et(E),E.lookahead<be&&de===f)return x;if(E.lookahead===0)break}if(se=0,E.lookahead>=z&&(E.ins_h=(E.ins_h<<E.hash_shift^E.window[E.strstart+z-1])&E.hash_mask,se=E.prev[E.strstart&E.w_mask]=E.head[E.ins_h],E.head[E.ins_h]=E.strstart),E.prev_length=E.match_length,E.prev_match=E.match_start,E.match_length=z-1,se!==0&&E.prev_length<E.max_lazy_match&&E.strstart-se<=E.w_size-be&&(E.match_length=Be(E,se),E.match_length<=5&&(E.strategy===1||E.match_length===z&&4096<E.strstart-E.match_start)&&(E.match_length=z-1)),E.prev_length>=z&&E.match_length<=E.prev_length){for(I=E.strstart+E.lookahead-z,L=o._tr_tally(E,E.strstart-1-E.prev_match,E.prev_length-z),E.lookahead-=E.prev_length-1,E.prev_length-=2;++E.strstart<=I&&(E.ins_h=(E.ins_h<<E.hash_shift^E.window[E.strstart+z-1])&E.hash_mask,se=E.prev[E.strstart&E.w_mask]=E.head[E.ins_h],E.head[E.ins_h]=E.strstart),--E.prev_length!=0;);if(E.match_available=0,E.match_length=z-1,E.strstart++,L&&(K(E,!1),E.strm.avail_out===0))return x}else if(E.match_available){if((L=o._tr_tally(E,0,E.window[E.strstart-1]))&&K(E,!1),E.strstart++,E.lookahead--,E.strm.avail_out===0)return x}else E.match_available=1,E.strstart++,E.lookahead--}return E.match_available&&(L=o._tr_tally(E,0,E.window[E.strstart-1]),E.match_available=0),E.insert=E.strstart<z-1?E.strstart:z-1,de===m?(K(E,!0),E.strm.avail_out===0?Le:re):E.last_lit&&(K(E,!1),E.strm.avail_out===0)?x:Z}function Ke(E,de,se,L,I){this.good_length=E,this.max_lazy=de,this.nice_length=se,this.max_chain=L,this.func=I}function Ot(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=C,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new a.Buf16(2*v),this.dyn_dtree=new a.Buf16(2*(2*S+1)),this.bl_tree=new a.Buf16(2*(2*A+1)),ze(this.dyn_ltree),ze(this.dyn_dtree),ze(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new a.Buf16(O+1),this.heap=new a.Buf16(2*_+1),ze(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new a.Buf16(2*_+1),ze(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function Ft(E){var de;return E&&E.state?(E.total_in=E.total_out=0,E.data_type=p,(de=E.state).pending=0,de.pending_out=0,de.wrap<0&&(de.wrap=-de.wrap),de.status=de.wrap?N:Y,E.adler=de.wrap===2?0:1,de.last_flush=f,o._tr_init(de),h):He(E,b)}function ar(E){var de=Ft(E);return de===h&&function(se){se.window_size=2*se.w_size,ze(se.head),se.max_lazy_match=i[se.level].max_lazy,se.good_match=i[se.level].good_length,se.nice_match=i[se.level].nice_length,se.max_chain_length=i[se.level].max_chain,se.strstart=0,se.block_start=0,se.lookahead=0,se.insert=0,se.match_length=se.prev_length=z-1,se.match_available=0,se.ins_h=0}(E.state),de}function Sn(E,de,se,L,I,W){if(!E)return b;var U=1;if(de===g&&(de=6),L<0?(U=0,L=-L):15<L&&(U=2,L-=16),I<1||w<I||se!==C||L<8||15<L||de<0||9<de||W<0||y<W)return He(E,b);L===8&&(L=9);var q=new Ot;return(E.state=q).strm=E,q.wrap=U,q.gzhead=null,q.w_bits=L,q.w_size=1<<q.w_bits,q.w_mask=q.w_size-1,q.hash_bits=I+7,q.hash_size=1<<q.hash_bits,q.hash_mask=q.hash_size-1,q.hash_shift=~~((q.hash_bits+z-1)/z),q.window=new a.Buf8(2*q.w_size),q.head=new a.Buf16(q.hash_size),q.prev=new a.Buf16(q.w_size),q.lit_bufsize=1<<I+6,q.pending_buf_size=4*q.lit_bufsize,q.pending_buf=new a.Buf8(q.pending_buf_size),q.d_buf=1*q.lit_bufsize,q.l_buf=3*q.lit_bufsize,q.level=de,q.strategy=W,q.method=se,ar(E)}i=[new Ke(0,0,0,0,function(E,de){var se=65535;for(se>E.pending_buf_size-5&&(se=E.pending_buf_size-5);;){if(E.lookahead<=1){if(et(E),E.lookahead===0&&de===f)return x;if(E.lookahead===0)break}E.strstart+=E.lookahead,E.lookahead=0;var L=E.block_start+se;if((E.strstart===0||E.strstart>=L)&&(E.lookahead=E.strstart-L,E.strstart=L,K(E,!1),E.strm.avail_out===0)||E.strstart-E.block_start>=E.w_size-be&&(K(E,!1),E.strm.avail_out===0))return x}return E.insert=0,de===m?(K(E,!0),E.strm.avail_out===0?Le:re):(E.strstart>E.block_start&&(K(E,!1),E.strm.avail_out),x)}),new Ke(4,4,8,4,Wt),new Ke(4,5,16,8,Wt),new Ke(4,6,32,32,Wt),new Ke(4,4,16,16,ft),new Ke(8,16,32,32,ft),new Ke(8,16,128,128,ft),new Ke(8,32,128,256,ft),new Ke(32,128,258,1024,ft),new Ke(32,258,258,4096,ft)],s.deflateInit=function(E,de){return Sn(E,de,C,15,8,0)},s.deflateInit2=Sn,s.deflateReset=ar,s.deflateResetKeep=Ft,s.deflateSetHeader=function(E,de){return E&&E.state?E.state.wrap!==2?b:(E.state.gzhead=de,h):b},s.deflate=function(E,de){var se,L,I,W;if(!E||!E.state||5<de||de<0)return E?He(E,b):b;if(L=E.state,!E.output||!E.input&&E.avail_in!==0||L.status===666&&de!==m)return He(E,E.avail_out===0?-5:b);if(L.strm=E,se=L.last_flush,L.last_flush=de,L.status===N)if(L.wrap===2)E.adler=0,Qe(L,31),Qe(L,139),Qe(L,8),L.gzhead?(Qe(L,(L.gzhead.text?1:0)+(L.gzhead.hcrc?2:0)+(L.gzhead.extra?4:0)+(L.gzhead.name?8:0)+(L.gzhead.comment?16:0)),Qe(L,255&L.gzhead.time),Qe(L,L.gzhead.time>>8&255),Qe(L,L.gzhead.time>>16&255),Qe(L,L.gzhead.time>>24&255),Qe(L,L.level===9?2:2<=L.strategy||L.level<2?4:0),Qe(L,255&L.gzhead.os),L.gzhead.extra&&L.gzhead.extra.length&&(Qe(L,255&L.gzhead.extra.length),Qe(L,L.gzhead.extra.length>>8&255)),L.gzhead.hcrc&&(E.adler=l(E.adler,L.pending_buf,L.pending,0)),L.gzindex=0,L.status=69):(Qe(L,0),Qe(L,0),Qe(L,0),Qe(L,0),Qe(L,0),Qe(L,L.level===9?2:2<=L.strategy||L.level<2?4:0),Qe(L,3),L.status=Y);else{var U=C+(L.w_bits-8<<4)<<8;U|=(2<=L.strategy||L.level<2?0:L.level<6?1:L.level===6?2:3)<<6,L.strstart!==0&&(U|=32),U+=31-U%31,L.status=Y,De(L,U),L.strstart!==0&&(De(L,E.adler>>>16),De(L,65535&E.adler)),E.adler=1}if(L.status===69)if(L.gzhead.extra){for(I=L.pending;L.gzindex<(65535&L.gzhead.extra.length)&&(L.pending!==L.pending_buf_size||(L.gzhead.hcrc&&L.pending>I&&(E.adler=l(E.adler,L.pending_buf,L.pending-I,I)),X(E),I=L.pending,L.pending!==L.pending_buf_size));)Qe(L,255&L.gzhead.extra[L.gzindex]),L.gzindex++;L.gzhead.hcrc&&L.pending>I&&(E.adler=l(E.adler,L.pending_buf,L.pending-I,I)),L.gzindex===L.gzhead.extra.length&&(L.gzindex=0,L.status=73)}else L.status=73;if(L.status===73)if(L.gzhead.name){I=L.pending;do{if(L.pending===L.pending_buf_size&&(L.gzhead.hcrc&&L.pending>I&&(E.adler=l(E.adler,L.pending_buf,L.pending-I,I)),X(E),I=L.pending,L.pending===L.pending_buf_size)){W=1;break}W=L.gzindex<L.gzhead.name.length?255&L.gzhead.name.charCodeAt(L.gzindex++):0,Qe(L,W)}while(W!==0);L.gzhead.hcrc&&L.pending>I&&(E.adler=l(E.adler,L.pending_buf,L.pending-I,I)),W===0&&(L.gzindex=0,L.status=91)}else L.status=91;if(L.status===91)if(L.gzhead.comment){I=L.pending;do{if(L.pending===L.pending_buf_size&&(L.gzhead.hcrc&&L.pending>I&&(E.adler=l(E.adler,L.pending_buf,L.pending-I,I)),X(E),I=L.pending,L.pending===L.pending_buf_size)){W=1;break}W=L.gzindex<L.gzhead.comment.length?255&L.gzhead.comment.charCodeAt(L.gzindex++):0,Qe(L,W)}while(W!==0);L.gzhead.hcrc&&L.pending>I&&(E.adler=l(E.adler,L.pending_buf,L.pending-I,I)),W===0&&(L.status=103)}else L.status=103;if(L.status===103&&(L.gzhead.hcrc?(L.pending+2>L.pending_buf_size&&X(E),L.pending+2<=L.pending_buf_size&&(Qe(L,255&E.adler),Qe(L,E.adler>>8&255),E.adler=0,L.status=Y)):L.status=Y),L.pending!==0){if(X(E),E.avail_out===0)return L.last_flush=-1,h}else if(E.avail_in===0&&he(de)<=he(se)&&de!==m)return He(E,-5);if(L.status===666&&E.avail_in!==0)return He(E,-5);if(E.avail_in!==0||L.lookahead!==0||de!==f&&L.status!==666){var q=L.strategy===2?function($,ae){for(var Pe;;){if($.lookahead===0&&(et($),$.lookahead===0)){if(ae===f)return x;break}if($.match_length=0,Pe=o._tr_tally($,0,$.window[$.strstart]),$.lookahead--,$.strstart++,Pe&&(K($,!1),$.strm.avail_out===0))return x}return $.insert=0,ae===m?(K($,!0),$.strm.avail_out===0?Le:re):$.last_lit&&(K($,!1),$.strm.avail_out===0)?x:Z}(L,de):L.strategy===3?function($,ae){for(var Pe,ye,Ye,It,ht=$.window;;){if($.lookahead<=Q){if(et($),$.lookahead<=Q&&ae===f)return x;if($.lookahead===0)break}if($.match_length=0,$.lookahead>=z&&0<$.strstart&&(ye=ht[Ye=$.strstart-1])===ht[++Ye]&&ye===ht[++Ye]&&ye===ht[++Ye]){It=$.strstart+Q;do;while(ye===ht[++Ye]&&ye===ht[++Ye]&&ye===ht[++Ye]&&ye===ht[++Ye]&&ye===ht[++Ye]&&ye===ht[++Ye]&&ye===ht[++Ye]&&ye===ht[++Ye]&&Ye<It);$.match_length=Q-(It-Ye),$.match_length>$.lookahead&&($.match_length=$.lookahead)}if($.match_length>=z?(Pe=o._tr_tally($,1,$.match_length-z),$.lookahead-=$.match_length,$.strstart+=$.match_length,$.match_length=0):(Pe=o._tr_tally($,0,$.window[$.strstart]),$.lookahead--,$.strstart++),Pe&&(K($,!1),$.strm.avail_out===0))return x}return $.insert=0,ae===m?(K($,!0),$.strm.avail_out===0?Le:re):$.last_lit&&(K($,!1),$.strm.avail_out===0)?x:Z}(L,de):i[L.level].func(L,de);if(q!==Le&&q!==re||(L.status=666),q===x||q===Le)return E.avail_out===0&&(L.last_flush=-1),h;if(q===Z&&(de===1?o._tr_align(L):de!==5&&(o._tr_stored_block(L,0,0,!1),de===3&&(ze(L.head),L.lookahead===0&&(L.strstart=0,L.block_start=0,L.insert=0))),X(E),E.avail_out===0))return L.last_flush=-1,h}return de!==m?h:L.wrap<=0?1:(L.wrap===2?(Qe(L,255&E.adler),Qe(L,E.adler>>8&255),Qe(L,E.adler>>16&255),Qe(L,E.adler>>24&255),Qe(L,255&E.total_in),Qe(L,E.total_in>>8&255),Qe(L,E.total_in>>16&255),Qe(L,E.total_in>>24&255)):(De(L,E.adler>>>16),De(L,65535&E.adler)),X(E),0<L.wrap&&(L.wrap=-L.wrap),L.pending!==0?h:1)},s.deflateEnd=function(E){var de;return E&&E.state?(de=E.state.status)!==N&&de!==69&&de!==73&&de!==91&&de!==103&&de!==Y&&de!==666?He(E,b):(E.state=null,de===Y?He(E,-3):h):b},s.deflateSetDictionary=function(E,de){var se,L,I,W,U,q,$,ae,Pe=de.length;if(!E||!E.state||(W=(se=E.state).wrap)===2||W===1&&se.status!==N||se.lookahead)return b;for(W===1&&(E.adler=c(E.adler,de,Pe,0)),se.wrap=0,Pe>=se.w_size&&(W===0&&(ze(se.head),se.strstart=0,se.block_start=0,se.insert=0),ae=new a.Buf8(se.w_size),a.arraySet(ae,de,Pe-se.w_size,se.w_size,0),de=ae,Pe=se.w_size),U=E.avail_in,q=E.next_in,$=E.input,E.avail_in=Pe,E.next_in=0,E.input=de,et(se);se.lookahead>=z;){for(L=se.strstart,I=se.lookahead-(z-1);se.ins_h=(se.ins_h<<se.hash_shift^se.window[L+z-1])&se.hash_mask,se.prev[L&se.w_mask]=se.head[se.ins_h],se.head[se.ins_h]=L,L++,--I;);se.strstart=L,se.lookahead=z-1,et(se)}return se.strstart+=se.lookahead,se.block_start=se.strstart,se.insert=se.lookahead,se.lookahead=0,se.match_length=se.prev_length=z-1,se.match_available=0,E.next_in=q,E.input=$,E.avail_in=U,se.wrap=W,h},s.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(n,r,s){r.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},{}],48:[function(n,r,s){r.exports=function(i,a){var o,c,l,d,f,m,h,b,g,y,p,C,w,_,S,A,v,O,z,Q,be,N,Y,x,Z;o=i.state,c=i.next_in,x=i.input,l=c+(i.avail_in-5),d=i.next_out,Z=i.output,f=d-(a-i.avail_out),m=d+(i.avail_out-257),h=o.dmax,b=o.wsize,g=o.whave,y=o.wnext,p=o.window,C=o.hold,w=o.bits,_=o.lencode,S=o.distcode,A=(1<<o.lenbits)-1,v=(1<<o.distbits)-1;e:do{w<15&&(C+=x[c++]<<w,w+=8,C+=x[c++]<<w,w+=8),O=_[C&A];t:for(;;){if(C>>>=z=O>>>24,w-=z,(z=O>>>16&255)===0)Z[d++]=65535&O;else{if(!(16&z)){if((64&z)==0){O=_[(65535&O)+(C&(1<<z)-1)];continue t}if(32&z){o.mode=12;break e}i.msg="invalid literal/length code",o.mode=30;break e}Q=65535&O,(z&=15)&&(w<z&&(C+=x[c++]<<w,w+=8),Q+=C&(1<<z)-1,C>>>=z,w-=z),w<15&&(C+=x[c++]<<w,w+=8,C+=x[c++]<<w,w+=8),O=S[C&v];n:for(;;){if(C>>>=z=O>>>24,w-=z,!(16&(z=O>>>16&255))){if((64&z)==0){O=S[(65535&O)+(C&(1<<z)-1)];continue n}i.msg="invalid distance code",o.mode=30;break e}if(be=65535&O,w<(z&=15)&&(C+=x[c++]<<w,(w+=8)<z&&(C+=x[c++]<<w,w+=8)),h<(be+=C&(1<<z)-1)){i.msg="invalid distance too far back",o.mode=30;break e}if(C>>>=z,w-=z,(z=d-f)<be){if(g<(z=be-z)&&o.sane){i.msg="invalid distance too far back",o.mode=30;break e}if(Y=p,(N=0)===y){if(N+=b-z,z<Q){for(Q-=z;Z[d++]=p[N++],--z;);N=d-be,Y=Z}}else if(y<z){if(N+=b+y-z,(z-=y)<Q){for(Q-=z;Z[d++]=p[N++],--z;);if(N=0,y<Q){for(Q-=z=y;Z[d++]=p[N++],--z;);N=d-be,Y=Z}}}else if(N+=y-z,z<Q){for(Q-=z;Z[d++]=p[N++],--z;);N=d-be,Y=Z}for(;2<Q;)Z[d++]=Y[N++],Z[d++]=Y[N++],Z[d++]=Y[N++],Q-=3;Q&&(Z[d++]=Y[N++],1<Q&&(Z[d++]=Y[N++]))}else{for(N=d-be;Z[d++]=Z[N++],Z[d++]=Z[N++],Z[d++]=Z[N++],2<(Q-=3););Q&&(Z[d++]=Z[N++],1<Q&&(Z[d++]=Z[N++]))}break}}break}}while(c<l&&d<m);c-=Q=w>>3,C&=(1<<(w-=Q<<3))-1,i.next_in=c,i.next_out=d,i.avail_in=c<l?l-c+5:5-(c-l),i.avail_out=d<m?m-d+257:257-(d-m),o.hold=C,o.bits=w}},{}],49:[function(n,r,s){var i=n("../utils/common"),a=n("./adler32"),o=n("./crc32"),c=n("./inffast"),l=n("./inftrees"),d=1,f=2,m=0,h=-2,b=1,g=852,y=592;function p(N){return(N>>>24&255)+(N>>>8&65280)+((65280&N)<<8)+((255&N)<<24)}function C(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new i.Buf16(320),this.work=new i.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function w(N){var Y;return N&&N.state?(Y=N.state,N.total_in=N.total_out=Y.total=0,N.msg="",Y.wrap&&(N.adler=1&Y.wrap),Y.mode=b,Y.last=0,Y.havedict=0,Y.dmax=32768,Y.head=null,Y.hold=0,Y.bits=0,Y.lencode=Y.lendyn=new i.Buf32(g),Y.distcode=Y.distdyn=new i.Buf32(y),Y.sane=1,Y.back=-1,m):h}function _(N){var Y;return N&&N.state?((Y=N.state).wsize=0,Y.whave=0,Y.wnext=0,w(N)):h}function S(N,Y){var x,Z;return N&&N.state?(Z=N.state,Y<0?(x=0,Y=-Y):(x=1+(Y>>4),Y<48&&(Y&=15)),Y&&(Y<8||15<Y)?h:(Z.window!==null&&Z.wbits!==Y&&(Z.window=null),Z.wrap=x,Z.wbits=Y,_(N))):h}function A(N,Y){var x,Z;return N?(Z=new C,(N.state=Z).window=null,(x=S(N,Y))!==m&&(N.state=null),x):h}var v,O,z=!0;function Q(N){if(z){var Y;for(v=new i.Buf32(512),O=new i.Buf32(32),Y=0;Y<144;)N.lens[Y++]=8;for(;Y<256;)N.lens[Y++]=9;for(;Y<280;)N.lens[Y++]=7;for(;Y<288;)N.lens[Y++]=8;for(l(d,N.lens,0,288,v,0,N.work,{bits:9}),Y=0;Y<32;)N.lens[Y++]=5;l(f,N.lens,0,32,O,0,N.work,{bits:5}),z=!1}N.lencode=v,N.lenbits=9,N.distcode=O,N.distbits=5}function be(N,Y,x,Z){var Le,re=N.state;return re.window===null&&(re.wsize=1<<re.wbits,re.wnext=0,re.whave=0,re.window=new i.Buf8(re.wsize)),Z>=re.wsize?(i.arraySet(re.window,Y,x-re.wsize,re.wsize,0),re.wnext=0,re.whave=re.wsize):(Z<(Le=re.wsize-re.wnext)&&(Le=Z),i.arraySet(re.window,Y,x-Z,Le,re.wnext),(Z-=Le)?(i.arraySet(re.window,Y,x-Z,Z,0),re.wnext=Z,re.whave=re.wsize):(re.wnext+=Le,re.wnext===re.wsize&&(re.wnext=0),re.whave<re.wsize&&(re.whave+=Le))),0}s.inflateReset=_,s.inflateReset2=S,s.inflateResetKeep=w,s.inflateInit=function(N){return A(N,15)},s.inflateInit2=A,s.inflate=function(N,Y){var x,Z,Le,re,He,he,ze,X,K,Qe,De,Be,et,Wt,ft,Ke,Ot,Ft,ar,Sn,E,de,se,L,I=0,W=new i.Buf8(4),U=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!N||!N.state||!N.output||!N.input&&N.avail_in!==0)return h;(x=N.state).mode===12&&(x.mode=13),He=N.next_out,Le=N.output,ze=N.avail_out,re=N.next_in,Z=N.input,he=N.avail_in,X=x.hold,K=x.bits,Qe=he,De=ze,de=m;e:for(;;)switch(x.mode){case b:if(x.wrap===0){x.mode=13;break}for(;K<16;){if(he===0)break e;he--,X+=Z[re++]<<K,K+=8}if(2&x.wrap&&X===35615){W[x.check=0]=255&X,W[1]=X>>>8&255,x.check=o(x.check,W,2,0),K=X=0,x.mode=2;break}if(x.flags=0,x.head&&(x.head.done=!1),!(1&x.wrap)||(((255&X)<<8)+(X>>8))%31){N.msg="incorrect header check",x.mode=30;break}if((15&X)!=8){N.msg="unknown compression method",x.mode=30;break}if(K-=4,E=8+(15&(X>>>=4)),x.wbits===0)x.wbits=E;else if(E>x.wbits){N.msg="invalid window size",x.mode=30;break}x.dmax=1<<E,N.adler=x.check=1,x.mode=512&X?10:12,K=X=0;break;case 2:for(;K<16;){if(he===0)break e;he--,X+=Z[re++]<<K,K+=8}if(x.flags=X,(255&x.flags)!=8){N.msg="unknown compression method",x.mode=30;break}if(57344&x.flags){N.msg="unknown header flags set",x.mode=30;break}x.head&&(x.head.text=X>>8&1),512&x.flags&&(W[0]=255&X,W[1]=X>>>8&255,x.check=o(x.check,W,2,0)),K=X=0,x.mode=3;case 3:for(;K<32;){if(he===0)break e;he--,X+=Z[re++]<<K,K+=8}x.head&&(x.head.time=X),512&x.flags&&(W[0]=255&X,W[1]=X>>>8&255,W[2]=X>>>16&255,W[3]=X>>>24&255,x.check=o(x.check,W,4,0)),K=X=0,x.mode=4;case 4:for(;K<16;){if(he===0)break e;he--,X+=Z[re++]<<K,K+=8}x.head&&(x.head.xflags=255&X,x.head.os=X>>8),512&x.flags&&(W[0]=255&X,W[1]=X>>>8&255,x.check=o(x.check,W,2,0)),K=X=0,x.mode=5;case 5:if(1024&x.flags){for(;K<16;){if(he===0)break e;he--,X+=Z[re++]<<K,K+=8}x.length=X,x.head&&(x.head.extra_len=X),512&x.flags&&(W[0]=255&X,W[1]=X>>>8&255,x.check=o(x.check,W,2,0)),K=X=0}else x.head&&(x.head.extra=null);x.mode=6;case 6:if(1024&x.flags&&(he<(Be=x.length)&&(Be=he),Be&&(x.head&&(E=x.head.extra_len-x.length,x.head.extra||(x.head.extra=new Array(x.head.extra_len)),i.arraySet(x.head.extra,Z,re,Be,E)),512&x.flags&&(x.check=o(x.check,Z,Be,re)),he-=Be,re+=Be,x.length-=Be),x.length))break e;x.length=0,x.mode=7;case 7:if(2048&x.flags){if(he===0)break e;for(Be=0;E=Z[re+Be++],x.head&&E&&x.length<65536&&(x.head.name+=String.fromCharCode(E)),E&&Be<he;);if(512&x.flags&&(x.check=o(x.check,Z,Be,re)),he-=Be,re+=Be,E)break e}else x.head&&(x.head.name=null);x.length=0,x.mode=8;case 8:if(4096&x.flags){if(he===0)break e;for(Be=0;E=Z[re+Be++],x.head&&E&&x.length<65536&&(x.head.comment+=String.fromCharCode(E)),E&&Be<he;);if(512&x.flags&&(x.check=o(x.check,Z,Be,re)),he-=Be,re+=Be,E)break e}else x.head&&(x.head.comment=null);x.mode=9;case 9:if(512&x.flags){for(;K<16;){if(he===0)break e;he--,X+=Z[re++]<<K,K+=8}if(X!==(65535&x.check)){N.msg="header crc mismatch",x.mode=30;break}K=X=0}x.head&&(x.head.hcrc=x.flags>>9&1,x.head.done=!0),N.adler=x.check=0,x.mode=12;break;case 10:for(;K<32;){if(he===0)break e;he--,X+=Z[re++]<<K,K+=8}N.adler=x.check=p(X),K=X=0,x.mode=11;case 11:if(x.havedict===0)return N.next_out=He,N.avail_out=ze,N.next_in=re,N.avail_in=he,x.hold=X,x.bits=K,2;N.adler=x.check=1,x.mode=12;case 12:if(Y===5||Y===6)break e;case 13:if(x.last){X>>>=7&K,K-=7&K,x.mode=27;break}for(;K<3;){if(he===0)break e;he--,X+=Z[re++]<<K,K+=8}switch(x.last=1&X,K-=1,3&(X>>>=1)){case 0:x.mode=14;break;case 1:if(Q(x),x.mode=20,Y!==6)break;X>>>=2,K-=2;break e;case 2:x.mode=17;break;case 3:N.msg="invalid block type",x.mode=30}X>>>=2,K-=2;break;case 14:for(X>>>=7&K,K-=7&K;K<32;){if(he===0)break e;he--,X+=Z[re++]<<K,K+=8}if((65535&X)!=(X>>>16^65535)){N.msg="invalid stored block lengths",x.mode=30;break}if(x.length=65535&X,K=X=0,x.mode=15,Y===6)break e;case 15:x.mode=16;case 16:if(Be=x.length){if(he<Be&&(Be=he),ze<Be&&(Be=ze),Be===0)break e;i.arraySet(Le,Z,re,Be,He),he-=Be,re+=Be,ze-=Be,He+=Be,x.length-=Be;break}x.mode=12;break;case 17:for(;K<14;){if(he===0)break e;he--,X+=Z[re++]<<K,K+=8}if(x.nlen=257+(31&X),X>>>=5,K-=5,x.ndist=1+(31&X),X>>>=5,K-=5,x.ncode=4+(15&X),X>>>=4,K-=4,286<x.nlen||30<x.ndist){N.msg="too many length or distance symbols",x.mode=30;break}x.have=0,x.mode=18;case 18:for(;x.have<x.ncode;){for(;K<3;){if(he===0)break e;he--,X+=Z[re++]<<K,K+=8}x.lens[U[x.have++]]=7&X,X>>>=3,K-=3}for(;x.have<19;)x.lens[U[x.have++]]=0;if(x.lencode=x.lendyn,x.lenbits=7,se={bits:x.lenbits},de=l(0,x.lens,0,19,x.lencode,0,x.work,se),x.lenbits=se.bits,de){N.msg="invalid code lengths set",x.mode=30;break}x.have=0,x.mode=19;case 19:for(;x.have<x.nlen+x.ndist;){for(;Ke=(I=x.lencode[X&(1<<x.lenbits)-1])>>>16&255,Ot=65535&I,!((ft=I>>>24)<=K);){if(he===0)break e;he--,X+=Z[re++]<<K,K+=8}if(Ot<16)X>>>=ft,K-=ft,x.lens[x.have++]=Ot;else{if(Ot===16){for(L=ft+2;K<L;){if(he===0)break e;he--,X+=Z[re++]<<K,K+=8}if(X>>>=ft,K-=ft,x.have===0){N.msg="invalid bit length repeat",x.mode=30;break}E=x.lens[x.have-1],Be=3+(3&X),X>>>=2,K-=2}else if(Ot===17){for(L=ft+3;K<L;){if(he===0)break e;he--,X+=Z[re++]<<K,K+=8}K-=ft,E=0,Be=3+(7&(X>>>=ft)),X>>>=3,K-=3}else{for(L=ft+7;K<L;){if(he===0)break e;he--,X+=Z[re++]<<K,K+=8}K-=ft,E=0,Be=11+(127&(X>>>=ft)),X>>>=7,K-=7}if(x.have+Be>x.nlen+x.ndist){N.msg="invalid bit length repeat",x.mode=30;break}for(;Be--;)x.lens[x.have++]=E}}if(x.mode===30)break;if(x.lens[256]===0){N.msg="invalid code -- missing end-of-block",x.mode=30;break}if(x.lenbits=9,se={bits:x.lenbits},de=l(d,x.lens,0,x.nlen,x.lencode,0,x.work,se),x.lenbits=se.bits,de){N.msg="invalid literal/lengths set",x.mode=30;break}if(x.distbits=6,x.distcode=x.distdyn,se={bits:x.distbits},de=l(f,x.lens,x.nlen,x.ndist,x.distcode,0,x.work,se),x.distbits=se.bits,de){N.msg="invalid distances set",x.mode=30;break}if(x.mode=20,Y===6)break e;case 20:x.mode=21;case 21:if(6<=he&&258<=ze){N.next_out=He,N.avail_out=ze,N.next_in=re,N.avail_in=he,x.hold=X,x.bits=K,c(N,De),He=N.next_out,Le=N.output,ze=N.avail_out,re=N.next_in,Z=N.input,he=N.avail_in,X=x.hold,K=x.bits,x.mode===12&&(x.back=-1);break}for(x.back=0;Ke=(I=x.lencode[X&(1<<x.lenbits)-1])>>>16&255,Ot=65535&I,!((ft=I>>>24)<=K);){if(he===0)break e;he--,X+=Z[re++]<<K,K+=8}if(Ke&&(240&Ke)==0){for(Ft=ft,ar=Ke,Sn=Ot;Ke=(I=x.lencode[Sn+((X&(1<<Ft+ar)-1)>>Ft)])>>>16&255,Ot=65535&I,!(Ft+(ft=I>>>24)<=K);){if(he===0)break e;he--,X+=Z[re++]<<K,K+=8}X>>>=Ft,K-=Ft,x.back+=Ft}if(X>>>=ft,K-=ft,x.back+=ft,x.length=Ot,Ke===0){x.mode=26;break}if(32&Ke){x.back=-1,x.mode=12;break}if(64&Ke){N.msg="invalid literal/length code",x.mode=30;break}x.extra=15&Ke,x.mode=22;case 22:if(x.extra){for(L=x.extra;K<L;){if(he===0)break e;he--,X+=Z[re++]<<K,K+=8}x.length+=X&(1<<x.extra)-1,X>>>=x.extra,K-=x.extra,x.back+=x.extra}x.was=x.length,x.mode=23;case 23:for(;Ke=(I=x.distcode[X&(1<<x.distbits)-1])>>>16&255,Ot=65535&I,!((ft=I>>>24)<=K);){if(he===0)break e;he--,X+=Z[re++]<<K,K+=8}if((240&Ke)==0){for(Ft=ft,ar=Ke,Sn=Ot;Ke=(I=x.distcode[Sn+((X&(1<<Ft+ar)-1)>>Ft)])>>>16&255,Ot=65535&I,!(Ft+(ft=I>>>24)<=K);){if(he===0)break e;he--,X+=Z[re++]<<K,K+=8}X>>>=Ft,K-=Ft,x.back+=Ft}if(X>>>=ft,K-=ft,x.back+=ft,64&Ke){N.msg="invalid distance code",x.mode=30;break}x.offset=Ot,x.extra=15&Ke,x.mode=24;case 24:if(x.extra){for(L=x.extra;K<L;){if(he===0)break e;he--,X+=Z[re++]<<K,K+=8}x.offset+=X&(1<<x.extra)-1,X>>>=x.extra,K-=x.extra,x.back+=x.extra}if(x.offset>x.dmax){N.msg="invalid distance too far back",x.mode=30;break}x.mode=25;case 25:if(ze===0)break e;if(Be=De-ze,x.offset>Be){if((Be=x.offset-Be)>x.whave&&x.sane){N.msg="invalid distance too far back",x.mode=30;break}et=Be>x.wnext?(Be-=x.wnext,x.wsize-Be):x.wnext-Be,Be>x.length&&(Be=x.length),Wt=x.window}else Wt=Le,et=He-x.offset,Be=x.length;for(ze<Be&&(Be=ze),ze-=Be,x.length-=Be;Le[He++]=Wt[et++],--Be;);x.length===0&&(x.mode=21);break;case 26:if(ze===0)break e;Le[He++]=x.length,ze--,x.mode=21;break;case 27:if(x.wrap){for(;K<32;){if(he===0)break e;he--,X|=Z[re++]<<K,K+=8}if(De-=ze,N.total_out+=De,x.total+=De,De&&(N.adler=x.check=x.flags?o(x.check,Le,De,He-De):a(x.check,Le,De,He-De)),De=ze,(x.flags?X:p(X))!==x.check){N.msg="incorrect data check",x.mode=30;break}K=X=0}x.mode=28;case 28:if(x.wrap&&x.flags){for(;K<32;){if(he===0)break e;he--,X+=Z[re++]<<K,K+=8}if(X!==(4294967295&x.total)){N.msg="incorrect length check",x.mode=30;break}K=X=0}x.mode=29;case 29:de=1;break e;case 30:de=-3;break e;case 31:return-4;case 32:default:return h}return N.next_out=He,N.avail_out=ze,N.next_in=re,N.avail_in=he,x.hold=X,x.bits=K,(x.wsize||De!==N.avail_out&&x.mode<30&&(x.mode<27||Y!==4))&&be(N,N.output,N.next_out,De-N.avail_out)?(x.mode=31,-4):(Qe-=N.avail_in,De-=N.avail_out,N.total_in+=Qe,N.total_out+=De,x.total+=De,x.wrap&&De&&(N.adler=x.check=x.flags?o(x.check,Le,De,N.next_out-De):a(x.check,Le,De,N.next_out-De)),N.data_type=x.bits+(x.last?64:0)+(x.mode===12?128:0)+(x.mode===20||x.mode===15?256:0),(Qe==0&&De===0||Y===4)&&de===m&&(de=-5),de)},s.inflateEnd=function(N){if(!N||!N.state)return h;var Y=N.state;return Y.window&&(Y.window=null),N.state=null,m},s.inflateGetHeader=function(N,Y){var x;return N&&N.state?(2&(x=N.state).wrap)==0?h:((x.head=Y).done=!1,m):h},s.inflateSetDictionary=function(N,Y){var x,Z=Y.length;return N&&N.state?(x=N.state).wrap!==0&&x.mode!==11?h:x.mode===11&&a(1,Y,Z,0)!==x.check?-3:be(N,Y,Z,Z)?(x.mode=31,-4):(x.havedict=1,m):h},s.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(n,r,s){var i=n("../utils/common"),a=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],o=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],c=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],l=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];r.exports=function(d,f,m,h,b,g,y,p){var C,w,_,S,A,v,O,z,Q,be=p.bits,N=0,Y=0,x=0,Z=0,Le=0,re=0,He=0,he=0,ze=0,X=0,K=null,Qe=0,De=new i.Buf16(16),Be=new i.Buf16(16),et=null,Wt=0;for(N=0;N<=15;N++)De[N]=0;for(Y=0;Y<h;Y++)De[f[m+Y]]++;for(Le=be,Z=15;1<=Z&&De[Z]===0;Z--);if(Z<Le&&(Le=Z),Z===0)return b[g++]=20971520,b[g++]=20971520,p.bits=1,0;for(x=1;x<Z&&De[x]===0;x++);for(Le<x&&(Le=x),N=he=1;N<=15;N++)if(he<<=1,(he-=De[N])<0)return-1;if(0<he&&(d===0||Z!==1))return-1;for(Be[1]=0,N=1;N<15;N++)Be[N+1]=Be[N]+De[N];for(Y=0;Y<h;Y++)f[m+Y]!==0&&(y[Be[f[m+Y]]++]=Y);if(v=d===0?(K=et=y,19):d===1?(K=a,Qe-=257,et=o,Wt-=257,256):(K=c,et=l,-1),N=x,A=g,He=Y=X=0,_=-1,S=(ze=1<<(re=Le))-1,d===1&&852<ze||d===2&&592<ze)return 1;for(;;){for(O=N-He,Q=y[Y]<v?(z=0,y[Y]):y[Y]>v?(z=et[Wt+y[Y]],K[Qe+y[Y]]):(z=96,0),C=1<<N-He,x=w=1<<re;b[A+(X>>He)+(w-=C)]=O<<24|z<<16|Q|0,w!==0;);for(C=1<<N-1;X&C;)C>>=1;if(C!==0?(X&=C-1,X+=C):X=0,Y++,--De[N]==0){if(N===Z)break;N=f[m+y[Y]]}if(Le<N&&(X&S)!==_){for(He===0&&(He=Le),A+=x,he=1<<(re=N-He);re+He<Z&&!((he-=De[re+He])<=0);)re++,he<<=1;if(ze+=1<<re,d===1&&852<ze||d===2&&592<ze)return 1;b[_=X&S]=Le<<24|re<<16|A-g|0}}return X!==0&&(b[A+X]=N-He<<24|64<<16|0),p.bits=Le,0}},{"../utils/common":41}],51:[function(n,r,s){r.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],52:[function(n,r,s){var i=n("../utils/common"),a=0,o=1;function c(I){for(var W=I.length;0<=--W;)I[W]=0}var l=0,d=29,f=256,m=f+1+d,h=30,b=19,g=2*m+1,y=15,p=16,C=7,w=256,_=16,S=17,A=18,v=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],O=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],z=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],Q=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],be=new Array(2*(m+2));c(be);var N=new Array(2*h);c(N);var Y=new Array(512);c(Y);var x=new Array(256);c(x);var Z=new Array(d);c(Z);var Le,re,He,he=new Array(h);function ze(I,W,U,q,$){this.static_tree=I,this.extra_bits=W,this.extra_base=U,this.elems=q,this.max_length=$,this.has_stree=I&&I.length}function X(I,W){this.dyn_tree=I,this.max_code=0,this.stat_desc=W}function K(I){return I<256?Y[I]:Y[256+(I>>>7)]}function Qe(I,W){I.pending_buf[I.pending++]=255&W,I.pending_buf[I.pending++]=W>>>8&255}function De(I,W,U){I.bi_valid>p-U?(I.bi_buf|=W<<I.bi_valid&65535,Qe(I,I.bi_buf),I.bi_buf=W>>p-I.bi_valid,I.bi_valid+=U-p):(I.bi_buf|=W<<I.bi_valid&65535,I.bi_valid+=U)}function Be(I,W,U){De(I,U[2*W],U[2*W+1])}function et(I,W){for(var U=0;U|=1&I,I>>>=1,U<<=1,0<--W;);return U>>>1}function Wt(I,W,U){var q,$,ae=new Array(y+1),Pe=0;for(q=1;q<=y;q++)ae[q]=Pe=Pe+U[q-1]<<1;for($=0;$<=W;$++){var ye=I[2*$+1];ye!==0&&(I[2*$]=et(ae[ye]++,ye))}}function ft(I){var W;for(W=0;W<m;W++)I.dyn_ltree[2*W]=0;for(W=0;W<h;W++)I.dyn_dtree[2*W]=0;for(W=0;W<b;W++)I.bl_tree[2*W]=0;I.dyn_ltree[2*w]=1,I.opt_len=I.static_len=0,I.last_lit=I.matches=0}function Ke(I){8<I.bi_valid?Qe(I,I.bi_buf):0<I.bi_valid&&(I.pending_buf[I.pending++]=I.bi_buf),I.bi_buf=0,I.bi_valid=0}function Ot(I,W,U,q){var $=2*W,ae=2*U;return I[$]<I[ae]||I[$]===I[ae]&&q[W]<=q[U]}function Ft(I,W,U){for(var q=I.heap[U],$=U<<1;$<=I.heap_len&&($<I.heap_len&&Ot(W,I.heap[$+1],I.heap[$],I.depth)&&$++,!Ot(W,q,I.heap[$],I.depth));)I.heap[U]=I.heap[$],U=$,$<<=1;I.heap[U]=q}function ar(I,W,U){var q,$,ae,Pe,ye=0;if(I.last_lit!==0)for(;q=I.pending_buf[I.d_buf+2*ye]<<8|I.pending_buf[I.d_buf+2*ye+1],$=I.pending_buf[I.l_buf+ye],ye++,q===0?Be(I,$,W):(Be(I,(ae=x[$])+f+1,W),(Pe=v[ae])!==0&&De(I,$-=Z[ae],Pe),Be(I,ae=K(--q),U),(Pe=O[ae])!==0&&De(I,q-=he[ae],Pe)),ye<I.last_lit;);Be(I,w,W)}function Sn(I,W){var U,q,$,ae=W.dyn_tree,Pe=W.stat_desc.static_tree,ye=W.stat_desc.has_stree,Ye=W.stat_desc.elems,It=-1;for(I.heap_len=0,I.heap_max=g,U=0;U<Ye;U++)ae[2*U]!==0?(I.heap[++I.heap_len]=It=U,I.depth[U]=0):ae[2*U+1]=0;for(;I.heap_len<2;)ae[2*($=I.heap[++I.heap_len]=It<2?++It:0)]=1,I.depth[$]=0,I.opt_len--,ye&&(I.static_len-=Pe[2*$+1]);for(W.max_code=It,U=I.heap_len>>1;1<=U;U--)Ft(I,ae,U);for($=Ye;U=I.heap[1],I.heap[1]=I.heap[I.heap_len--],Ft(I,ae,1),q=I.heap[1],I.heap[--I.heap_max]=U,I.heap[--I.heap_max]=q,ae[2*$]=ae[2*U]+ae[2*q],I.depth[$]=(I.depth[U]>=I.depth[q]?I.depth[U]:I.depth[q])+1,ae[2*U+1]=ae[2*q+1]=$,I.heap[1]=$++,Ft(I,ae,1),2<=I.heap_len;);I.heap[--I.heap_max]=I.heap[1],function(ht,Zn){var Us,or,us,Qt,zr,Ni,we=Zn.dyn_tree,Xe=Zn.max_code,ct=Zn.stat_desc.static_tree,qt=Zn.stat_desc.has_stree,vn=Zn.stat_desc.extra_bits,Mn=Zn.stat_desc.extra_base,Tn=Zn.stat_desc.max_length,Ut=0;for(Qt=0;Qt<=y;Qt++)ht.bl_count[Qt]=0;for(we[2*ht.heap[ht.heap_max]+1]=0,Us=ht.heap_max+1;Us<g;Us++)Tn<(Qt=we[2*we[2*(or=ht.heap[Us])+1]+1]+1)&&(Qt=Tn,Ut++),we[2*or+1]=Qt,Xe<or||(ht.bl_count[Qt]++,zr=0,Mn<=or&&(zr=vn[or-Mn]),Ni=we[2*or],ht.opt_len+=Ni*(Qt+zr),qt&&(ht.static_len+=Ni*(ct[2*or+1]+zr)));if(Ut!==0){do{for(Qt=Tn-1;ht.bl_count[Qt]===0;)Qt--;ht.bl_count[Qt]--,ht.bl_count[Qt+1]+=2,ht.bl_count[Tn]--,Ut-=2}while(0<Ut);for(Qt=Tn;Qt!==0;Qt--)for(or=ht.bl_count[Qt];or!==0;)Xe<(us=ht.heap[--Us])||(we[2*us+1]!==Qt&&(ht.opt_len+=(Qt-we[2*us+1])*we[2*us],we[2*us+1]=Qt),or--)}}(I,W),Wt(ae,It,I.bl_count)}function E(I,W,U){var q,$,ae=-1,Pe=W[1],ye=0,Ye=7,It=4;for(Pe===0&&(Ye=138,It=3),W[2*(U+1)+1]=65535,q=0;q<=U;q++)$=Pe,Pe=W[2*(q+1)+1],++ye<Ye&&$===Pe||(ye<It?I.bl_tree[2*$]+=ye:$!==0?($!==ae&&I.bl_tree[2*$]++,I.bl_tree[2*_]++):ye<=10?I.bl_tree[2*S]++:I.bl_tree[2*A]++,ae=$,It=(ye=0)===Pe?(Ye=138,3):$===Pe?(Ye=6,3):(Ye=7,4))}function de(I,W,U){var q,$,ae=-1,Pe=W[1],ye=0,Ye=7,It=4;for(Pe===0&&(Ye=138,It=3),q=0;q<=U;q++)if($=Pe,Pe=W[2*(q+1)+1],!(++ye<Ye&&$===Pe)){if(ye<It)for(;Be(I,$,I.bl_tree),--ye!=0;);else $!==0?($!==ae&&(Be(I,$,I.bl_tree),ye--),Be(I,_,I.bl_tree),De(I,ye-3,2)):ye<=10?(Be(I,S,I.bl_tree),De(I,ye-3,3)):(Be(I,A,I.bl_tree),De(I,ye-11,7));ae=$,It=(ye=0)===Pe?(Ye=138,3):$===Pe?(Ye=6,3):(Ye=7,4)}}c(he);var se=!1;function L(I,W,U,q){De(I,(l<<1)+(q?1:0),3),function($,ae,Pe,ye){Ke($),Qe($,Pe),Qe($,~Pe),i.arraySet($.pending_buf,$.window,ae,Pe,$.pending),$.pending+=Pe}(I,W,U)}s._tr_init=function(I){se||(function(){var W,U,q,$,ae,Pe=new Array(y+1);for($=q=0;$<d-1;$++)for(Z[$]=q,W=0;W<1<<v[$];W++)x[q++]=$;for(x[q-1]=$,$=ae=0;$<16;$++)for(he[$]=ae,W=0;W<1<<O[$];W++)Y[ae++]=$;for(ae>>=7;$<h;$++)for(he[$]=ae<<7,W=0;W<1<<O[$]-7;W++)Y[256+ae++]=$;for(U=0;U<=y;U++)Pe[U]=0;for(W=0;W<=143;)be[2*W+1]=8,W++,Pe[8]++;for(;W<=255;)be[2*W+1]=9,W++,Pe[9]++;for(;W<=279;)be[2*W+1]=7,W++,Pe[7]++;for(;W<=287;)be[2*W+1]=8,W++,Pe[8]++;for(Wt(be,m+1,Pe),W=0;W<h;W++)N[2*W+1]=5,N[2*W]=et(W,5);Le=new ze(be,v,f+1,m,y),re=new ze(N,O,0,h,y),He=new ze(new Array(0),z,0,b,C)}(),se=!0),I.l_desc=new X(I.dyn_ltree,Le),I.d_desc=new X(I.dyn_dtree,re),I.bl_desc=new X(I.bl_tree,He),I.bi_buf=0,I.bi_valid=0,ft(I)},s._tr_stored_block=L,s._tr_flush_block=function(I,W,U,q){var $,ae,Pe=0;0<I.level?(I.strm.data_type===2&&(I.strm.data_type=function(ye){var Ye,It=4093624447;for(Ye=0;Ye<=31;Ye++,It>>>=1)if(1&It&&ye.dyn_ltree[2*Ye]!==0)return a;if(ye.dyn_ltree[18]!==0||ye.dyn_ltree[20]!==0||ye.dyn_ltree[26]!==0)return o;for(Ye=32;Ye<f;Ye++)if(ye.dyn_ltree[2*Ye]!==0)return o;return a}(I)),Sn(I,I.l_desc),Sn(I,I.d_desc),Pe=function(ye){var Ye;for(E(ye,ye.dyn_ltree,ye.l_desc.max_code),E(ye,ye.dyn_dtree,ye.d_desc.max_code),Sn(ye,ye.bl_desc),Ye=b-1;3<=Ye&&ye.bl_tree[2*Q[Ye]+1]===0;Ye--);return ye.opt_len+=3*(Ye+1)+5+5+4,Ye}(I),$=I.opt_len+3+7>>>3,(ae=I.static_len+3+7>>>3)<=$&&($=ae)):$=ae=U+5,U+4<=$&&W!==-1?L(I,W,U,q):I.strategy===4||ae===$?(De(I,2+(q?1:0),3),ar(I,be,N)):(De(I,4+(q?1:0),3),function(ye,Ye,It,ht){var Zn;for(De(ye,Ye-257,5),De(ye,It-1,5),De(ye,ht-4,4),Zn=0;Zn<ht;Zn++)De(ye,ye.bl_tree[2*Q[Zn]+1],3);de(ye,ye.dyn_ltree,Ye-1),de(ye,ye.dyn_dtree,It-1)}(I,I.l_desc.max_code+1,I.d_desc.max_code+1,Pe+1),ar(I,I.dyn_ltree,I.dyn_dtree)),ft(I),q&&Ke(I)},s._tr_tally=function(I,W,U){return I.pending_buf[I.d_buf+2*I.last_lit]=W>>>8&255,I.pending_buf[I.d_buf+2*I.last_lit+1]=255&W,I.pending_buf[I.l_buf+I.last_lit]=255&U,I.last_lit++,W===0?I.dyn_ltree[2*U]++:(I.matches++,W--,I.dyn_ltree[2*(x[U]+f+1)]++,I.dyn_dtree[2*K(W)]++),I.last_lit===I.lit_bufsize-1},s._tr_align=function(I){De(I,2,3),Be(I,w,be),function(W){W.bi_valid===16?(Qe(W,W.bi_buf),W.bi_buf=0,W.bi_valid=0):8<=W.bi_valid&&(W.pending_buf[W.pending++]=255&W.bi_buf,W.bi_buf>>=8,W.bi_valid-=8)}(I)}},{"../utils/common":41}],53:[function(n,r,s){r.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],54:[function(n,r,s){(function(i){(function(a,o){if(!a.setImmediate){var c,l,d,f,m=1,h={},b=!1,g=a.document,y=Object.getPrototypeOf&&Object.getPrototypeOf(a);y=y&&y.setTimeout?y:a,c={}.toString.call(a.process)==="[object process]"?function(_){process.nextTick(function(){C(_)})}:function(){if(a.postMessage&&!a.importScripts){var _=!0,S=a.onmessage;return a.onmessage=function(){_=!1},a.postMessage("","*"),a.onmessage=S,_}}()?(f="setImmediate$"+Math.random()+"$",a.addEventListener?a.addEventListener("message",w,!1):a.attachEvent("onmessage",w),function(_){a.postMessage(f+_,"*")}):a.MessageChannel?((d=new MessageChannel).port1.onmessage=function(_){C(_.data)},function(_){d.port2.postMessage(_)}):g&&"onreadystatechange"in g.createElement("script")?(l=g.documentElement,function(_){var S=g.createElement("script");S.onreadystatechange=function(){C(_),S.onreadystatechange=null,l.removeChild(S),S=null},l.appendChild(S)}):function(_){setTimeout(C,0,_)},y.setImmediate=function(_){typeof _!="function"&&(_=new Function(""+_));for(var S=new Array(arguments.length-1),A=0;A<S.length;A++)S[A]=arguments[A+1];var v={callback:_,args:S};return h[m]=v,c(m),m++},y.clearImmediate=p}function p(_){delete h[_]}function C(_){if(b)setTimeout(C,0,_);else{var S=h[_];if(S){b=!0;try{(function(A){var v=A.callback,O=A.args;switch(O.length){case 0:v();break;case 1:v(O[0]);break;case 2:v(O[0],O[1]);break;case 3:v(O[0],O[1],O[2]);break;default:v.apply(o,O)}})(S)}finally{p(_),b=!1}}}}function w(_){_.source===a&&typeof _.data=="string"&&_.data.indexOf(f)===0&&C(+_.data.slice(f.length))}})(typeof self>"u"?i===void 0?this:i:self)}).call(this,typeof ld<"u"?ld:typeof self<"u"?self:typeof window<"u"?window:{})},{}]},{},[10])(10)})}(h0)),h0.exports}var G4=W4();const V4=Jv(G4);async function K4(e,t){const n=await cS(e,t);if(globalThis.document){const r=document.createElement("a");r.href=URL.createObjectURL(n),r.download="notebook.zip",r.click()}}async function cS(e,t){const n=new V4;if(t?.withoutZip!==!0){const r=await(await fetch(t?.publicZip??"/public.zip")).arrayBuffer();await n.loadAsync(r)}for(const[r,s]of Object.entries(e)){const i=r.startsWith("/")?r.slice(1):r;n.file(i,s)}return await n.generateAsync({type:"blob"})}function Y4(e){return{async build_onFileTree([n,r],s){s(n,r);const i=await m4("apiConsumer",{async remoteCall(m,h){let b,g;return h[0]instanceof ReadableStream?(b=await new Response(h[0]).blob(),g="application/octet-stream"):(b=j4(h),console.log("[body]",b),g="application/json"),fetch(`${e.oceanPressServer.apiBase}/api/${m}`,{method:"POST",body:b,headers:{"x-api-key":e.oceanPressServer.apiKey,"Content-Type":g},duplex:"half"}).then(y=>y.json()).then(y=>{if(y.error)throw console.log("[r]",y),new Error;return y.result})}}),a=await cS(n,{withoutZip:!0}),o=a.size/(1024*1024);console.log("[zip.size in MB]",o.toFixed(2));const c=a.stream(),{chunkCount:l,fileId:d}=await i.API.upload(c);console.log("[res]",{chunkCount:l,fileId:d});const f=await i.API.deploy({zipFileId:d});console.log("[deploy res]",f)}}}const X4=e=>({setHttpHandler(t){e.httpHandler=t},httpHandler(){return e.httpHandler},updateHttpClientConfig(t,n){e.httpHandler?.updateHttpClientConfig(t,n)},httpHandlerConfigs(){return e.httpHandler.httpHandlerConfigs()}}),Q4=e=>({httpHandler:e.httpHandler()});var ZE;(function(e){e.HEADER="header",e.QUERY="query"})(ZE||(ZE={}));var JE;(function(e){e.HEADER="header",e.QUERY="query"})(JE||(JE={}));var Tu;(function(e){e.HTTP="http",e.HTTPS="https"})(Tu||(Tu={}));var Mf;(function(e){e.MD5="md5",e.CRC32="crc32",e.CRC32C="crc32c",e.SHA1="sha1",e.SHA256="sha256"})(Mf||(Mf={}));var e1;(function(e){e[e.HEADER=0]="HEADER",e[e.TRAILER=1]="TRAILER"})(e1||(e1={}));const ob="__smithy_context";var t1;(function(e){e.PROFILE="profile",e.SSO_SESSION="sso-session",e.SERVICES="services"})(t1||(t1={}));var n1;(function(e){e.HTTP_0_9="http/0.9",e.HTTP_1_0="http/1.0",e.TDS_8_0="tds/8.0"})(n1||(n1={}));class Qn{constructor(t){this.method=t.method||"GET",this.hostname=t.hostname||"localhost",this.port=t.port,this.query=t.query||{},this.headers=t.headers||{},this.body=t.body,this.protocol=t.protocol?t.protocol.slice(-1)!==":"?`${t.protocol}:`:t.protocol:"https:",this.path=t.path?t.path.charAt(0)!=="/"?`/${t.path}`:t.path:"/",this.username=t.username,this.password=t.password,this.fragment=t.fragment}static clone(t){const n=new Qn({...t,headers:{...t.headers}});return n.query&&(n.query=Z4(n.query)),n}static isInstance(t){if(!t)return!1;const n=t;return"method"in n&&"protocol"in n&&"hostname"in n&&"path"in n&&typeof n.query=="object"&&typeof n.headers=="object"}clone(){return Qn.clone(this)}}function Z4(e){return Object.keys(e).reduce((t,n)=>{const r=e[n];return{...t,[n]:Array.isArray(r)?[...r]:r}},{})}class Eo{constructor(t){this.statusCode=t.statusCode,this.reason=t.reason,this.headers=t.headers||{},this.body=t.body}static isInstance(t){if(!t)return!1;const n=t;return typeof n.statusCode=="number"&&typeof n.headers=="object"}}function J4(e){return/^[a-z0-9][a-z0-9\.\-]*[a-z0-9]$/.test(e)}function e5(e){return t=>async n=>{const{request:r}=n;return Qn.isInstance(r)&&r.body&&e.runtime==="node"&&e.requestHandler?.constructor?.name!=="FetchHttpHandler"&&(r.headers={...r.headers,Expect:"100-continue"}),t({...n,request:r})}}const t5={step:"build",tags:["SET_EXPECT_HEADER","EXPECT_HEADER"],name:"addExpectContinueMiddleware",override:!0},n5=e=>({applyToStack:t=>{t.add(e5(e),t5)}}),Vc={WHEN_SUPPORTED:"WHEN_SUPPORTED",WHEN_REQUIRED:"WHEN_REQUIRED"},r5=Vc.WHEN_SUPPORTED,m0={WHEN_SUPPORTED:"WHEN_SUPPORTED",WHEN_REQUIRED:"WHEN_REQUIRED"},s5=Vc.WHEN_SUPPORTED;var ln;(function(e){e.MD5="MD5",e.CRC32="CRC32",e.CRC32C="CRC32C",e.CRC64NVME="CRC64NVME",e.SHA1="SHA1",e.SHA256="SHA256"})(ln||(ln={}));var r1;(function(e){e.HEADER="header",e.TRAILER="trailer"})(r1||(r1={}));const cb=ln.CRC32;var s1;(function(e){e.ENV="env",e.CONFIG="shared config entry"})(s1||(s1={}));function i5(e,t,n){return e.$source||(e.$source={}),e.$source[t]=n,e}function Kn(e,t,n){e.__aws_sdk_context?e.__aws_sdk_context.features||(e.__aws_sdk_context.features={}):e.__aws_sdk_context={features:{}},e.__aws_sdk_context.features[t]=n}const i1=e=>Eo.isInstance(e)?e.headers?.date??e.headers?.Date:void 0,Jg=e=>new Date(Date.now()+e),a5=(e,t)=>Math.abs(Jg(t).getTime()-e)>=3e5,a1=(e,t)=>{const n=Date.parse(e);return a5(n,t)?n-Date.now():t},ru=(e,t)=>{if(!t)throw new Error(`Property \`${e}\` is not resolved for AWS SDK SigV4Auth`);return t},lS=async e=>{const t=ru("context",e.context),n=ru("config",e.config),r=t.endpointV2?.properties?.authSchemes?.[0],i=await ru("signer",n.signer)(r),a=e?.signingRegion,o=e?.signingRegionSet,c=e?.signingName;return{config:n,signer:i,signingRegion:a,signingRegionSet:o,signingName:c}};class uS{async sign(t,n,r){if(!Qn.isInstance(t))throw new Error("The request is not an instance of `HttpRequest` and cannot be signed");const s=await lS(r),{config:i,signer:a}=s;let{signingRegion:o,signingName:c}=s;const l=r.context;if(l?.authSchemes?.length??!1){const[f,m]=l.authSchemes;f?.name==="sigv4a"&&m?.name==="sigv4"&&(o=m?.signingRegion??o,c=m?.signingName??c)}return await a.sign(t,{signingDate:Jg(i.systemClockOffset),signingRegion:o,signingService:c})}errorHandler(t){return n=>{const r=n.ServerTime??i1(n.$response);if(r){const s=ru("config",t.config),i=s.systemClockOffset;s.systemClockOffset=a1(r,s.systemClockOffset),s.systemClockOffset!==i&&n.$metadata&&(n.$metadata.clockSkewCorrected=!0)}throw n}}successHandler(t,n){const r=i1(t);if(r){const s=ru("config",n.config);s.systemClockOffset=a1(r,s.systemClockOffset)}}}class o5 extends uS{async sign(t,n,r){if(!Qn.isInstance(t))throw new Error("The request is not an instance of `HttpRequest` and cannot be signed");const{config:s,signer:i,signingRegion:a,signingRegionSet:o,signingName:c}=await lS(r),d=(await s.sigv4aSigningRegionSet?.()??o??[a]).join(",");return await i.sign(t,{signingDate:Jg(s.systemClockOffset),signingRegion:d,signingService:c})}}const ol=e=>e[ob]||(e[ob]={}),Hs=e=>{if(typeof e=="function")return e;const t=Promise.resolve(e);return()=>t},c5=(e,t)=>{if(!t||t.length===0)return e;const n=[];for(const r of t)for(const s of e)s.schemeId.split("#")[1]===r&&n.push(s);for(const r of e)n.find(({schemeId:s})=>s===r.schemeId)||n.push(r);return n};function l5(e){const t=new Map;for(const n of e)t.set(n.schemeId,n);return t}const u5=(e,t)=>(n,r)=>async s=>{const i=e.httpAuthSchemeProvider(await t.httpAuthSchemeParametersProvider(e,r,s.input)),a=e.authSchemePreference?await e.authSchemePreference():[],o=c5(i,a),c=l5(e.httpAuthSchemes),l=ol(r),d=[];for(const f of o){const m=c.get(f.schemeId);if(!m){d.push(`HttpAuthScheme \`${f.schemeId}\` was not enabled for this service.`);continue}const h=m.identityProvider(await t.identityProviderConfigProvider(e));if(!h){d.push(`HttpAuthScheme \`${f.schemeId}\` did not have an IdentityProvider configured.`);continue}const{identityProperties:b={},signingProperties:g={}}=f.propertiesExtractor?.(e,r)||{};f.identityProperties=Object.assign(f.identityProperties||{},b),f.signingProperties=Object.assign(f.signingProperties||{},g),l.selectedHttpAuthScheme={httpAuthOption:f,identity:await h(f.identityProperties),signer:m.signer};break}if(!l.selectedHttpAuthScheme)throw new Error(d.join(`
1552
- `));return n(s)},d5={step:"serialize",tags:["HTTP_AUTH_SCHEME"],name:"httpAuthSchemeMiddleware",override:!0,relation:"before",toMiddleware:"endpointV2Middleware"},f5=(e,{httpAuthSchemeParametersProvider:t,identityProviderConfigProvider:n})=>({applyToStack:r=>{r.addRelativeTo(u5(e,{httpAuthSchemeParametersProvider:t,identityProviderConfigProvider:n}),d5)}}),h5=(e,t)=>(n,r)=>async s=>{const{response:i}=await n(s);try{const a=await t(i,e);return{response:i,output:a}}catch(a){if(Object.defineProperty(a,"$response",{value:i}),!("$metadata"in a)){const o="Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.";try{a.message+=`
1553
- `+o}catch{!r.logger||r.logger?.constructor?.name==="NoOpLogger"?console.warn(o):r.logger?.warn?.(o)}typeof a.$responseBodyText<"u"&&a.$response&&(a.$response.body=a.$responseBodyText);try{if(Eo.isInstance(i)){const{headers:c={}}=i,l=Object.entries(c);a.$metadata={httpStatusCode:i.statusCode,requestId:b0(/^x-[\w-]+-request-?id$/,l),extendedRequestId:b0(/^x-[\w-]+-id-2$/,l),cfId:b0(/^x-[\w-]+-cf-id$/,l)}}}catch{}}throw a}},b0=(e,t)=>(t.find(([n])=>n.match(e))||[void 0,void 0])[1],m5=(e,t)=>(n,r)=>async s=>{const i=e,a=r.endpointV2?.url&&i.urlParser?async()=>i.urlParser(r.endpointV2.url):i.endpoint;if(!a)throw new Error("No valid endpoint provider available.");const o=await t(s.input,{...e,endpoint:a});return n({...s,request:o})},b5={name:"deserializerMiddleware",step:"deserialize",tags:["DESERIALIZER"],override:!0},dS={name:"serializerMiddleware",step:"serialize",tags:["SERIALIZER"],override:!0};function Ce(e,t,n){return{applyToStack:r=>{r.add(h5(e,n),b5),r.add(m5(e,t),dS)}}}const g5=e=>t=>{throw t},p5=(e,t)=>{},y5=e=>(t,n)=>async r=>{if(!Qn.isInstance(r.request))return t(r);const i=ol(n).selectedHttpAuthScheme;if(!i)throw new Error("No HttpAuthScheme was selected: unable to sign request");const{httpAuthOption:{signingProperties:a={}},identity:o,signer:c}=i,l=await t({...r,request:await c.sign(r.request,o,a)}).catch((c.errorHandler||g5)(a));return(c.successHandler||p5)(l.response,a),l},fS={step:"finalizeRequest",tags:["HTTP_SIGNING"],name:"httpSigningMiddleware",aliases:["apiKeyMiddleware","tokenMiddleware","awsAuthMiddleware"],override:!0,relation:"after",toMiddleware:"retryMiddleware"},E5=e=>({applyToStack:t=>{t.addRelativeTo(y5(),fS)}}),cc=e=>{if(typeof e=="function")return e;const t=Promise.resolve(e);return()=>t},aa={},cl=new Array(64);for(let e=0,t=65,n=90;e+t<=n;e++){const r=String.fromCharCode(e+t);aa[r]=e,cl[e]=r}for(let e=0,t=97,n=122;e+t<=n;e++){const r=String.fromCharCode(e+t),s=e+26;aa[r]=s,cl[s]=r}for(let e=0;e<10;e++){aa[e.toString(10)]=e+52;const t=e.toString(10),n=e+52;aa[t]=n,cl[n]=t}aa["+"]=62;cl[62]="+";aa["/"]=63;cl[63]="/";const lc=6,su=8,C5=63,ep=e=>{let t=e.length/4*3;e.slice(-2)==="=="?t-=2:e.slice(-1)==="="&&t--;const n=new ArrayBuffer(t),r=new DataView(n);for(let s=0;s<e.length;s+=4){let i=0,a=0;for(let l=s,d=s+3;l<=d;l++)if(e[l]!=="="){if(!(e[l]in aa))throw new TypeError(`Invalid character ${e[l]} in base64 string.`);i|=aa[e[l]]<<(d-l)*lc,a+=lc}else i>>=lc;const o=s/4*3;i>>=a%su;const c=Math.floor(a/su);for(let l=0;l<c;l++){const d=(c-l-1)*su;r.setUint8(o+l,(i&255<<d)>>d)}}return new Uint8Array(n)},Co=e=>new TextEncoder().encode(e),Kc=e=>typeof e=="string"?Co(e):ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(e),tp=e=>{if(typeof e=="string")return e;if(typeof e!="object"||typeof e.byteOffset!="number"||typeof e.byteLength!="number")throw new Error("@smithy/util-utf8: toUtf8 encoder function only accepts string | Uint8Array.");return new TextDecoder("utf-8").decode(e)};function wh(e){let t;typeof e=="string"?t=Co(e):t=e;const n=typeof t=="object"&&typeof t.length=="number",r=typeof t=="object"&&typeof t.byteOffset=="number"&&typeof t.byteLength=="number";if(!n&&!r)throw new Error("@smithy/util-base64: toBase64 encoder function only accepts string | Uint8Array.");let s="";for(let i=0;i<t.length;i+=3){let a=0,o=0;for(let l=i,d=Math.min(i+3,t.length);l<d;l++)a|=t[l]<<(d-l-1)*su,o+=su;const c=Math.ceil(o/lc);a<<=c*lc-o;for(let l=1;l<=c;l++){const d=(c-l)*lc;s+=cl[(a&C5<<d)>>d]}s+="==".slice(0,4-c)}return s}function x5(e,t="utf-8"){return t==="base64"?wh(e):tp(e)}function v5(e,t){return t==="base64"?Ua.mutate(ep(e)):Ua.mutate(Co(e))}class Ua extends Uint8Array{static fromString(t,n="utf-8"){switch(typeof t){case"string":return v5(t,n);default:throw new Error(`Unsupported conversion from ${typeof t} to Uint8ArrayBlobAdapter.`)}}static mutate(t){return Object.setPrototypeOf(t,Ua.prototype),t}transformToString(t="utf-8"){return x5(this,t)}}const _5=typeof ReadableStream=="function"?ReadableStream:function(){};class S5 extends _5{}const lb=e=>typeof ReadableStream=="function"&&(e?.constructor?.name===ReadableStream.name||e instanceof ReadableStream),T5=({expectedChecksum:e,checksum:t,source:n,checksumSourceLocation:r,base64Encoder:s})=>{if(!lb(n))throw new Error(`@smithy/util-stream: unsupported source type ${n?.constructor?.name??n} in ChecksumStream.`);const i=s??wh;if(typeof TransformStream!="function")throw new Error("@smithy/util-stream: unable to instantiate ChecksumStream because API unavailable: ReadableStream/TransformStream.");const a=new TransformStream({start(){},async transform(c,l){t.update(c),l.enqueue(c)},async flush(c){const l=await t.digest(),d=i(l);if(e!==d){const f=new Error(`Checksum mismatch: expected "${e}" but received "${d}" in response header "${r}".`);c.error(f)}else c.terminate()}});n.pipeThrough(a);const o=a.readable;return Object.setPrototypeOf(o,S5.prototype),o};class w5{constructor(t){this.allocByteArray=t,this.byteLength=0,this.byteArrays=[]}push(t){this.byteArrays.push(t),this.byteLength+=t.byteLength}flush(){if(this.byteArrays.length===1){const r=this.byteArrays[0];return this.reset(),r}const t=this.allocByteArray(this.byteLength);let n=0;for(let r=0;r<this.byteArrays.length;++r){const s=this.byteArrays[r];t.set(s,n),n+=s.byteLength}return this.reset(),t}reset(){this.byteArrays=[],this.byteLength=0}}function A5(e,t,n){const r=e.getReader();let s=!1,i=0;const a=["",new w5(l=>new Uint8Array(l))];let o=-1;const c=async l=>{const{value:d,done:f}=await r.read(),m=d;if(f){if(o!==-1){const h=g0(a,o);iu(h)>0&&l.enqueue(h)}l.close()}else{const h=R5(m,!1);if(o!==h&&(o>=0&&l.enqueue(g0(a,o)),o=h),o===-1){l.enqueue(m);return}const b=iu(m);i+=b;const g=iu(a[o]);if(b>=t&&g===0)l.enqueue(m);else{const y=I5(a,o,m);!s&&i>t*2&&(s=!0,n?.warn(`@smithy/util-stream - stream chunk size ${b} is below threshold of ${t}, automatically buffering.`)),y>=t?l.enqueue(g0(a,o)):await c(l)}}};return new ReadableStream({pull:c})}const k5=A5;function I5(e,t,n){switch(t){case 0:return e[0]+=n,iu(e[0]);case 1:case 2:return e[t].push(n),iu(e[t])}}function g0(e,t){switch(t){case 0:const n=e[0];return e[0]="",n;case 1:case 2:return e[t].flush()}throw new Error(`@smithy/util-stream - invalid index ${t} given to flush()`)}function iu(e){return e?.byteLength??e?.length??0}function R5(e,t=!0){return t&&typeof Buffer<"u"&&e instanceof Buffer?2:e instanceof Uint8Array?1:typeof e=="string"?0:-1}const B5=(e,t)=>{const{base64Encoder:n,bodyLengthChecker:r,checksumAlgorithmFn:s,checksumLocationName:i,streamHasher:a}=t,o=n!==void 0&&r!==void 0&&s!==void 0&&i!==void 0&&a!==void 0,c=o?a(s,e):void 0,l=e.getReader();return new ReadableStream({async pull(d){const{value:f,done:m}=await l.read();if(m){if(d.enqueue(`0\r
1554
- `),o){const h=n(await c);d.enqueue(`${i}:${h}\r
1555
- `),d.enqueue(`\r
1556
- `)}d.close()}else d.enqueue(`${(r(f)||0).toString(16)}\r
1557
- ${f}\r
1558
- `)}})};async function P5(e,t){let n=0;const r=[],s=e.getReader();let i=!1;for(;!i;){const{done:c,value:l}=await s.read();if(l&&(r.push(l),n+=l?.byteLength??0),n>=t)break;i=c}s.releaseLock();const a=new Uint8Array(Math.min(t,n));let o=0;for(const c of r){if(c.byteLength>a.byteLength-o){a.set(c.subarray(0,a.byteLength-o),o);break}else a.set(c,o);o+=c.length}return a}const $a=e=>encodeURIComponent(e).replace(/[!'()*]/g,N5),N5=e=>`%${e.charCodeAt(0).toString(16).toUpperCase()}`;function O5(e){const t=[];for(let n of Object.keys(e).sort()){const r=e[n];if(n=$a(n),Array.isArray(r))for(let s=0,i=r.length;s<i;s++)t.push(`${n}=${$a(r[s])}`);else{let s=n;(r||typeof r=="string")&&(s+=`=${$a(r)}`),t.push(s)}}return t.join("&")}function o1(e,t){return new Request(e,t)}function D5(e=0){return new Promise((t,n)=>{e&&setTimeout(()=>{const r=new Error(`Request did not complete within ${e} ms`);r.name="TimeoutError",n(r)},e)})}const p0={supported:void 0};class np{static create(t){return typeof t?.handle=="function"?t:new np(t)}constructor(t){typeof t=="function"?this.configProvider=t().then(n=>n||{}):(this.config=t??{},this.configProvider=Promise.resolve(this.config)),p0.supported===void 0&&(p0.supported=typeof Request<"u"&&"keepalive"in o1("https://[::1]"))}destroy(){}async handle(t,{abortSignal:n,requestTimeout:r}={}){this.config||(this.config=await this.configProvider);const s=r??this.config.requestTimeout,i=this.config.keepAlive===!0,a=this.config.credentials;if(n?.aborted){const C=new Error("Request aborted");return C.name="AbortError",Promise.reject(C)}let o=t.path;const c=O5(t.query||{});c&&(o+=`?${c}`),t.fragment&&(o+=`#${t.fragment}`);let l="";if(t.username!=null||t.password!=null){const C=t.username??"",w=t.password??"";l=`${C}:${w}@`}const{port:d,method:f}=t,m=`${t.protocol}//${l}${t.hostname}${d?`:${d}`:""}${o}`,h=f==="GET"||f==="HEAD"?void 0:t.body,b={body:h,headers:new Headers(t.headers),method:f,credentials:a};this.config?.cache&&(b.cache=this.config.cache),h&&(b.duplex="half"),typeof AbortController<"u"&&(b.signal=n),p0.supported&&(b.keepalive=i),typeof this.config.requestInit=="function"&&Object.assign(b,this.config.requestInit(t));let g=()=>{};const y=o1(m,b),p=[fetch(y).then(C=>{const w=C.headers,_={};for(const A of w.entries())_[A[0]]=A[1];return C.body!=null?{response:new Eo({headers:_,reason:C.statusText,statusCode:C.status,body:C.body})}:C.blob().then(A=>({response:new Eo({headers:_,reason:C.statusText,statusCode:C.status,body:A})}))}),D5(s)];return n&&p.push(new Promise((C,w)=>{const _=()=>{const S=new Error("Request aborted");S.name="AbortError",w(S)};if(typeof n.addEventListener=="function"){const S=n;S.addEventListener("abort",_,{once:!0}),g=()=>S.removeEventListener("abort",_)}else n.onabort=_})),Promise.race(p).finally(g)}updateHttpClientConfig(t,n){this.config=void 0,this.configProvider=this.configProvider.then(r=>(r[t]=n,r))}httpHandlerConfigs(){return this.config??{}}}const hS=async e=>typeof Blob=="function"&&e instanceof Blob||e.constructor?.name==="Blob"?Blob.prototype.arrayBuffer!==void 0?new Uint8Array(await e.arrayBuffer()):L5(e):M5(e);async function L5(e){const t=await F5(e),n=ep(t);return new Uint8Array(n)}async function M5(e){const t=[],n=e.getReader();let r=!1,s=0;for(;!r;){const{done:o,value:c}=await n.read();c&&(t.push(c),s+=c.length),r=o}const i=new Uint8Array(s);let a=0;for(const o of t)i.set(o,a),a+=o.length;return i}function F5(e){return new Promise((t,n)=>{const r=new FileReader;r.onloadend=()=>{if(r.readyState!==2)return n(new Error("Reader aborted too early"));const s=r.result??"",i=s.indexOf(","),a=i>-1?i+1:s.length;t(s.substring(a))},r.onabort=()=>n(new Error("Read aborted")),r.onerror=()=>n(r.error),r.readAsDataURL(e)})}const mS={},ub={};for(let e=0;e<256;e++){let t=e.toString(16).toLowerCase();t.length===1&&(t=`0${t}`),mS[e]=t,ub[t]=e}function bS(e){if(e.length%2!==0)throw new Error("Hex encoded strings must have an even number length");const t=new Uint8Array(e.length/2);for(let n=0;n<e.length;n+=2){const r=e.slice(n,n+2).toLowerCase();if(r in ub)t[n/2]=ub[r];else throw new Error(`Cannot decode unrecognized sequence ${r} as hexadecimal`)}return t}function es(e){let t="";for(let n=0;n<e.byteLength;n++)t+=mS[e[n]];return t}const c1="The stream has already been transformed.",z5=e=>{if(!l1(e)&&!lb(e)){const s=e?.__proto__?.constructor?.name||e;throw new Error(`Unexpected stream implementation, expect Blob or ReadableStream, got ${s}`)}let t=!1;const n=async()=>{if(t)throw new Error(c1);return t=!0,await hS(e)},r=s=>{if(typeof s.stream!="function")throw new Error(`Cannot transform payload Blob to web stream. Please make sure the Blob.stream() is polyfilled.
1559
- If you are using React Native, this API is not yet supported, see: https://react-native.canny.io/feature-requests/p/fetch-streaming-body`);return s.stream()};return Object.assign(e,{transformToByteArray:n,transformToString:async s=>{const i=await n();if(s==="base64")return wh(i);if(s==="hex")return es(i);if(s===void 0||s==="utf8"||s==="utf-8")return tp(i);if(typeof TextDecoder=="function")return new TextDecoder(s).decode(i);throw new Error("TextDecoder is not available, please make sure polyfill is provided.")},transformToWebStream:()=>{if(t)throw new Error(c1);if(t=!0,l1(e))return r(e);if(lb(e))return e;throw new Error(`Cannot transform payload to web stream, got ${e}`)}})},l1=e=>typeof Blob=="function"&&e instanceof Blob;async function U5(e){return typeof e.stream=="function"&&(e=e.stream()),e.tee()}const tt=async(e=new Uint8Array,t)=>{if(e instanceof Uint8Array)return Ua.mutate(e);if(!e)return Ua.mutate(new Uint8Array);const n=t.streamCollector(e);return Ua.mutate(await n)};function u1(e){return encodeURIComponent(e).replace(/[!'()*]/g,function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()})}const Nt=e=>{switch(e){case"true":return!0;case"false":return!1;default:throw new Error(`Unable to parse boolean value "${e}"`)}},$5=e=>{if(e!=null){if(typeof e=="string"){const t=parseFloat(e);if(!Number.isNaN(t))return String(t)!==String(e)&&yS.warn(pS(`Expected number but observed string: ${e}`)),t}if(typeof e=="number")return e;throw new TypeError(`Expected number, got ${typeof e}: ${e}`)}},H5=Math.ceil(2**127*(2-2**-23)),d1=e=>{const t=$5(e);if(t!==void 0&&!Number.isNaN(t)&&t!==1/0&&t!==-1/0&&Math.abs(t)>H5)throw new TypeError(`Expected 32-bit float, got ${e}`);return t},db=e=>{if(e!=null){if(Number.isInteger(e)&&!Number.isNaN(e))return e;throw new TypeError(`Expected integer, got ${typeof e}: ${e}`)}},f1=e=>rp(e,32),h1=e=>rp(e,16),m1=e=>rp(e,8),rp=(e,t)=>{const n=db(e);if(n!==void 0&&q5(n,t)!==n)throw new TypeError(`Expected ${t}-bit integer, got ${e}`);return n},q5=(e,t)=>{switch(t){case 32:return Int32Array.of(e)[0];case 16:return Int16Array.of(e)[0];case 8:return Int8Array.of(e)[0]}},Ve=(e,t)=>{if(e==null)throw t?new TypeError(`Expected a non-null value for ${t}`):new TypeError("Expected a non-null value");return e},bt=e=>{if(e==null)return;if(typeof e=="object"&&!Array.isArray(e))return e;const t=Array.isArray(e)?"array":typeof e;throw new TypeError(`Expected object, got ${t}: ${e}`)},D=e=>{if(e!=null){if(typeof e=="string")return e;if(["boolean","number","bigint"].includes(typeof e))return yS.warn(pS(`Expected string, got ${typeof e}: ${e}`)),String(e);throw new TypeError(`Expected string, got ${typeof e}: ${e}`)}},gS=e=>{if(e==null)return;const t=bt(e),n=Object.entries(t).filter(([,r])=>r!=null).map(([r])=>r);if(n.length===0)throw new TypeError("Unions must have exactly one non-null member. None were found.");if(n.length>1)throw new TypeError(`Unions must have exactly one non-null member. Keys ${n} were not null.`);return t},j5=e=>d1(typeof e=="string"?Fu(e):e),W5=/(-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?)|(-?Infinity)|(NaN)/g,Fu=e=>{const t=e.match(W5);if(t===null||t[0].length!==e.length)throw new TypeError("Expected real number, got implicit NaN");return parseFloat(e)},yr=e=>db(typeof e=="string"?Fu(e):e),Gt=e=>f1(typeof e=="string"?Fu(e):e),Ff=e=>h1(typeof e=="string"?Fu(e):e),G5=e=>m1(typeof e=="string"?Fu(e):e),pS=e=>String(new TypeError(e).stack||e).split(`
1560
- `).slice(0,5).filter(t=>!t.includes("stackTraceWarning")).join(`
1561
- `),yS={warn:console.warn},V5=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],sp=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function Dn(e){const t=e.getUTCFullYear(),n=e.getUTCMonth(),r=e.getUTCDay(),s=e.getUTCDate(),i=e.getUTCHours(),a=e.getUTCMinutes(),o=e.getUTCSeconds(),c=s<10?`0${s}`:`${s}`,l=i<10?`0${i}`:`${i}`,d=a<10?`0${a}`:`${a}`,f=o<10?`0${o}`:`${o}`;return`${V5[r]}, ${c} ${sp[n]} ${t} ${l}:${d}:${f} GMT`}const K5=new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?(([-+]\d{2}\:\d{2})|[zZ])$/),Kr=e=>{if(e==null)return;if(typeof e!="string")throw new TypeError("RFC-3339 date-times must be expressed as strings");const t=K5.exec(e);if(!t)throw new TypeError("Invalid RFC-3339 date-time value");const[n,r,s,i,a,o,c,l,d]=t,f=Ff(wu(r)),m=Ji(s,"month",1,12),h=Ji(i,"day",1,31),b=Od(f,m,h,{hours:a,minutes:o,seconds:c,fractionalMilliseconds:l});return d.toUpperCase()!="Z"&&b.setTime(b.getTime()-i8(d)),b},Y5=new RegExp(/^(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d{2}) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? GMT$/),X5=new RegExp(/^(?:Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d{2})-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d{2}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? GMT$/),Q5=new RegExp(/^(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( [1-9]|\d{2}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? (\d{4})$/),oa=e=>{if(e==null)return;if(typeof e!="string")throw new TypeError("RFC-7231 date-times must be expressed as strings");let t=Y5.exec(e);if(t){const[n,r,s,i,a,o,c,l]=t;return Od(Ff(wu(i)),y0(s),Ji(r,"day",1,31),{hours:a,minutes:o,seconds:c,fractionalMilliseconds:l})}if(t=X5.exec(e),t){const[n,r,s,i,a,o,c,l]=t;return e8(Od(Z5(i),y0(s),Ji(r,"day",1,31),{hours:a,minutes:o,seconds:c,fractionalMilliseconds:l}))}if(t=Q5.exec(e),t){const[n,r,s,i,a,o,c,l]=t;return Od(Ff(wu(l)),y0(r),Ji(s.trimLeft(),"day",1,31),{hours:i,minutes:a,seconds:o,fractionalMilliseconds:c})}throw new TypeError("Invalid RFC-7231 date-time value")},Od=(e,t,n,r)=>{const s=t-1;return n8(e,s,n),new Date(Date.UTC(e,s,n,Ji(r.hours,"hour",0,23),Ji(r.minutes,"minute",0,59),Ji(r.seconds,"seconds",0,60),s8(r.fractionalMilliseconds)))},Z5=e=>{const t=new Date().getUTCFullYear(),n=Math.floor(t/100)*100+Ff(wu(e));return n<t?n+100:n},J5=50*365*24*60*60*1e3,e8=e=>e.getTime()-new Date().getTime()>J5?new Date(Date.UTC(e.getUTCFullYear()-100,e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds())):e,y0=e=>{const t=sp.indexOf(e);if(t<0)throw new TypeError(`Invalid month: ${e}`);return t+1},t8=[31,28,31,30,31,30,31,31,30,31,30,31],n8=(e,t,n)=>{let r=t8[t];if(t===1&&r8(e)&&(r=29),n>r)throw new TypeError(`Invalid day for ${sp[t]} in ${e}: ${n}`)},r8=e=>e%4===0&&(e%100!==0||e%400===0),Ji=(e,t,n,r)=>{const s=G5(wu(e));if(s<n||s>r)throw new TypeError(`${t} must be between ${n} and ${r}, inclusive`);return s},s8=e=>e==null?0:j5("0."+e)*1e3,i8=e=>{const t=e[0];let n=1;if(t=="+")n=1;else if(t=="-")n=-1;else throw new TypeError(`Offset direction, ${t}, must be "+" or "-"`);const r=Number(e.substring(1,3)),s=Number(e.substring(4,6));return n*(r*60+s)*60*1e3},wu=e=>{let t=0;for(;t<e.length-1&&e.charAt(t)==="0";)t++;return t===0?e:e.slice(t)};let md;const a8=new Uint8Array(16);function o8(){if(!md&&(md=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!md))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return md(a8)}const _r=[];for(let e=0;e<256;++e)_r.push((e+256).toString(16).slice(1));function c8(e,t=0){return _r[e[t+0]]+_r[e[t+1]]+_r[e[t+2]]+_r[e[t+3]]+"-"+_r[e[t+4]]+_r[e[t+5]]+"-"+_r[e[t+6]]+_r[e[t+7]]+"-"+_r[e[t+8]]+_r[e[t+9]]+"-"+_r[e[t+10]]+_r[e[t+11]]+_r[e[t+12]]+_r[e[t+13]]+_r[e[t+14]]+_r[e[t+15]]}const l8=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),b1={randomUUID:l8};function ES(e,t,n){if(b1.randomUUID&&!e)return b1.randomUUID();e=e||{};const r=e.random||(e.rng||o8)();return r[6]=r[6]&15|64,r[8]=r[8]&63|128,c8(r)}function Ah(e){return(e.includes(",")||e.includes('"'))&&(e=`"${e.replace(/"/g,'\\"')}"`),e}const u8=(e,t,n,r,s,i)=>{if(t!=null&&t[n]!==void 0){const a=r();if(a.length<=0)throw new Error("Empty value provided for input HTTP label: "+n+".");e=e.replace(s,i?a.split("/").map(o=>u1(o)).join("/"):u1(a))}else throw new Error("No value provided for input HTTP label: "+n+".");return e};function xe(e,t){return new d8(e,t)}class d8{constructor(t,n){this.input=t,this.context=n,this.query={},this.method="",this.headers={},this.path="",this.body=null,this.hostname="",this.resolvePathStack=[]}async build(){const{hostname:t,protocol:n="https",port:r,path:s}=await this.context.endpoint();this.path=s;for(const i of this.resolvePathStack)i(this.path);return new Qn({protocol:n,hostname:this.hostname||t,port:r,method:this.method,path:this.path,query:this.query,body:this.body,headers:this.headers})}hn(t){return this.hostname=t,this}bp(t){return this.resolvePathStack.push(n=>{this.path=`${n?.endsWith("/")?n.slice(0,-1):n||""}`+t}),this}p(t,n,r,s){return this.resolvePathStack.push(i=>{this.path=u8(i,this.input,t,n,r,s)}),this}h(t){return this.headers=t,this}q(t){return this.query=t,this}b(t){return this.body=t,this}m(t){return this.method=t,this}}function f8(e,t,n){e.__smithy_context?e.__smithy_context.features||(e.__smithy_context.features={}):e.__smithy_context={features:{}},e.__smithy_context.features[t]=n}class h8{constructor(t){this.authSchemes=new Map;for(const[n,r]of Object.entries(t))r!==void 0&&this.authSchemes.set(n,r)}getIdentityProvider(t){return this.authSchemes.get(t)}}const m8=e=>t=>CS(t)&&t.expiration.getTime()-Date.now()<e,b8=3e5,g8=m8(b8),CS=e=>e.expiration!==void 0,p8=(e,t,n)=>{if(e===void 0)return;const r=typeof e!="function"?async()=>Promise.resolve(e):e;let s,i,a,o=!1;const c=async l=>{i||(i=r(l));try{s=await i,a=!0,o=!1}finally{i=void 0}return s};return t===void 0?async l=>((!a||l?.forceRefresh)&&(s=await c(l)),s):async l=>((!a||l?.forceRefresh)&&(s=await c(l)),o?s:n(s)?(t(s)&&await c(l),s):(o=!0,s))},y8=(e,t,n)=>{let r,s,i,a=!1;const o=async()=>{s||(s=e());try{r=await s,i=!0,a=!1}finally{s=void 0}return r};return async c=>((!i||c?.forceRefresh)&&(r=await o()),r)},E8=e=>(e.sigv4aSigningRegionSet=cc(e.sigv4aSigningRegionSet),e),C8="X-Amz-Algorithm",x8="X-Amz-Credential",xS="X-Amz-Date",v8="X-Amz-SignedHeaders",_8="X-Amz-Expires",vS="X-Amz-Signature",_S="X-Amz-Security-Token",SS="authorization",TS=xS.toLowerCase(),S8="date",T8=[SS,TS,S8],w8=vS.toLowerCase(),fb="x-amz-content-sha256",A8=_S.toLowerCase(),k8={authorization:!0,"cache-control":!0,connection:!0,expect:!0,from:!0,"keep-alive":!0,"max-forwards":!0,pragma:!0,referer:!0,te:!0,trailer:!0,"transfer-encoding":!0,upgrade:!0,"user-agent":!0,"x-amzn-trace-id":!0},I8=/^proxy-/,R8=/^sec-/,E0="AWS4-HMAC-SHA256",B8="AWS4-HMAC-SHA256-PAYLOAD",P8="UNSIGNED-PAYLOAD",N8=50,wS="aws4_request",O8=60*60*24*7,bd={},C0=[],x0=(e,t,n)=>`${e}/${t}/${n}/${wS}`,D8=async(e,t,n,r,s)=>{const i=await g1(e,t.secretAccessKey,t.accessKeyId),a=`${n}:${r}:${s}:${es(i)}:${t.sessionToken}`;if(a in bd)return bd[a];for(C0.push(a);C0.length>N8;)delete bd[C0.shift()];let o=`AWS4${t.secretAccessKey}`;for(const c of[n,r,s,wS])o=await g1(e,o,c);return bd[a]=o},g1=(e,t,n)=>{const r=new e(t);return r.update(Kc(n)),r.digest()},p1=({headers:e},t,n)=>{const r={};for(const s of Object.keys(e).sort()){if(e[s]==null)continue;const i=s.toLowerCase();(i in k8||t?.has(i)||I8.test(i)||R8.test(i))&&(!n||n&&!n.has(i))||(r[i]=e[s].trim().replace(/\s+/g," "))}return r},AS=e=>typeof ArrayBuffer=="function"&&e instanceof ArrayBuffer||Object.prototype.toString.call(e)==="[object ArrayBuffer]",v0=async({headers:e,body:t},n)=>{for(const r of Object.keys(e))if(r.toLowerCase()===fb)return e[r];if(t==null)return"e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855";if(typeof t=="string"||ArrayBuffer.isView(t)||AS(t)){const r=new n;return r.update(Kc(t)),es(await r.digest())}return P8};class L8{format(t){const n=[];for(const i of Object.keys(t)){const a=Co(i);n.push(Uint8Array.from([a.byteLength]),a,this.formatHeaderValue(t[i]))}const r=new Uint8Array(n.reduce((i,a)=>i+a.byteLength,0));let s=0;for(const i of n)r.set(i,s),s+=i.byteLength;return r}formatHeaderValue(t){switch(t.type){case"boolean":return Uint8Array.from([t.value?0:1]);case"byte":return Uint8Array.from([2,t.value]);case"short":const n=new DataView(new ArrayBuffer(3));return n.setUint8(0,3),n.setInt16(1,t.value,!1),new Uint8Array(n.buffer);case"integer":const r=new DataView(new ArrayBuffer(5));return r.setUint8(0,4),r.setInt32(1,t.value,!1),new Uint8Array(r.buffer);case"long":const s=new Uint8Array(9);return s[0]=5,s.set(t.value.bytes,1),s;case"binary":const i=new DataView(new ArrayBuffer(3+t.value.byteLength));i.setUint8(0,6),i.setUint16(1,t.value.byteLength,!1);const a=new Uint8Array(i.buffer);return a.set(t.value,3),a;case"string":const o=Co(t.value),c=new DataView(new ArrayBuffer(3+o.byteLength));c.setUint8(0,7),c.setUint16(1,o.byteLength,!1);const l=new Uint8Array(c.buffer);return l.set(o,3),l;case"timestamp":const d=new Uint8Array(9);return d[0]=8,d.set(F8.fromNumber(t.value.valueOf()).bytes,1),d;case"uuid":if(!M8.test(t.value))throw new Error(`Invalid UUID received: ${t.value}`);const f=new Uint8Array(17);return f[0]=9,f.set(bS(t.value.replace(/\-/g,"")),1),f}}}var y1;(function(e){e[e.boolTrue=0]="boolTrue",e[e.boolFalse=1]="boolFalse",e[e.byte=2]="byte",e[e.short=3]="short",e[e.integer=4]="integer",e[e.long=5]="long",e[e.byteArray=6]="byteArray",e[e.string=7]="string",e[e.timestamp=8]="timestamp",e[e.uuid=9]="uuid"})(y1||(y1={}));const M8=/^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/;let F8=class kS{constructor(t){if(this.bytes=t,t.byteLength!==8)throw new Error("Int64 buffers must be exactly 8 bytes")}static fromNumber(t){if(t>9223372036854776e3||t<-9223372036854776e3)throw new Error(`${t} is too large (or, if negative, too small) to represent as an Int64`);const n=new Uint8Array(8);for(let r=7,s=Math.abs(Math.round(t));r>-1&&s>0;r--,s/=256)n[r]=s;return t<0&&E1(n),new kS(n)}valueOf(){const t=this.bytes.slice(0),n=t[0]&128;return n&&E1(t),parseInt(es(t),16)*(n?-1:1)}toString(){return String(this.valueOf())}};function E1(e){for(let t=0;t<8;t++)e[t]^=255;for(let t=7;t>-1&&(e[t]++,e[t]===0);t--);}const z8=(e,t)=>{e=e.toLowerCase();for(const n of Object.keys(t))if(e===n.toLowerCase())return!0;return!1},U8=(e,t={})=>{const{headers:n,query:r={}}=Qn.clone(e);for(const s of Object.keys(n)){const i=s.toLowerCase();(i.slice(0,6)==="x-amz-"&&!t.unhoistableHeaders?.has(i)||t.hoistableHeaders?.has(i))&&(r[s]=n[s],delete n[s])}return{...e,headers:n,query:r}},C1=e=>{e=Qn.clone(e);for(const t of Object.keys(e.headers))T8.indexOf(t.toLowerCase())>-1&&delete e.headers[t];return e},$8=({query:e={}})=>{const t=[],n={};for(const r of Object.keys(e)){if(r.toLowerCase()===w8)continue;const s=$a(r);t.push(s);const i=e[r];typeof i=="string"?n[s]=`${s}=${$a(i)}`:Array.isArray(i)&&(n[s]=i.slice(0).reduce((a,o)=>a.concat([`${s}=${$a(o)}`]),[]).sort().join("&"))}return t.sort().map(r=>n[r]).filter(r=>r).join("&")},H8=e=>q8(e).toISOString().replace(/\.\d{3}Z$/,"Z"),q8=e=>typeof e=="number"?new Date(e*1e3):typeof e=="string"?Number(e)?new Date(Number(e)*1e3):new Date(e):e;class j8{constructor({applyChecksum:t,credentials:n,region:r,service:s,sha256:i,uriEscapePath:a=!0}){this.service=s,this.sha256=i,this.uriEscapePath=a,this.applyChecksum=typeof t=="boolean"?t:!0,this.regionProvider=Hs(r),this.credentialProvider=Hs(n)}createCanonicalRequest(t,n,r){const s=Object.keys(n).sort();return`${t.method}
1562
- ${this.getCanonicalPath(t)}
1563
- ${$8(t)}
1564
- ${s.map(i=>`${i}:${n[i]}`).join(`
1565
- `)}
1566
-
1567
- ${s.join(";")}
1568
- ${r}`}async createStringToSign(t,n,r,s){const i=new this.sha256;i.update(Kc(r));const a=await i.digest();return`${s}
1569
- ${t}
1570
- ${n}
1571
- ${es(a)}`}getCanonicalPath({path:t}){if(this.uriEscapePath){const n=[];for(const i of t.split("/"))i?.length!==0&&i!=="."&&(i===".."?n.pop():n.push(i));const r=`${t?.startsWith("/")?"/":""}${n.join("/")}${n.length>0&&t?.endsWith("/")?"/":""}`;return $a(r).replace(/%2F/g,"/")}return t}validateResolvedCredentials(t){if(typeof t!="object"||typeof t.accessKeyId!="string"||typeof t.secretAccessKey!="string")throw new Error("Resolved credential object is not valid")}formatDate(t){const n=H8(t).replace(/[\-:]/g,"");return{longDate:n,shortDate:n.slice(0,8)}}getCanonicalHeaderList(t){return Object.keys(t).sort().join(";")}}class hb extends j8{constructor({applyChecksum:t,credentials:n,region:r,service:s,sha256:i,uriEscapePath:a=!0}){super({applyChecksum:t,credentials:n,region:r,service:s,sha256:i,uriEscapePath:a}),this.headerFormatter=new L8}async presign(t,n={}){const{signingDate:r=new Date,expiresIn:s=3600,unsignableHeaders:i,unhoistableHeaders:a,signableHeaders:o,hoistableHeaders:c,signingRegion:l,signingService:d}=n,f=await this.credentialProvider();this.validateResolvedCredentials(f);const m=l??await this.regionProvider(),{longDate:h,shortDate:b}=this.formatDate(r);if(s>O8)return Promise.reject("Signature version 4 presigned URLs must have an expiration date less than one week in the future");const g=x0(b,m,d??this.service),y=U8(C1(t),{unhoistableHeaders:a,hoistableHeaders:c});f.sessionToken&&(y.query[_S]=f.sessionToken),y.query[C8]=E0,y.query[x8]=`${f.accessKeyId}/${g}`,y.query[xS]=h,y.query[_8]=s.toString(10);const p=p1(y,i,o);return y.query[v8]=this.getCanonicalHeaderList(p),y.query[vS]=await this.getSignature(h,g,this.getSigningKey(f,m,b,d),this.createCanonicalRequest(y,p,await v0(t,this.sha256))),y}async sign(t,n){return typeof t=="string"?this.signString(t,n):t.headers&&t.payload?this.signEvent(t,n):t.message?this.signMessage(t,n):this.signRequest(t,n)}async signEvent({headers:t,payload:n},{signingDate:r=new Date,priorSignature:s,signingRegion:i,signingService:a}){const o=i??await this.regionProvider(),{shortDate:c,longDate:l}=this.formatDate(r),d=x0(c,o,a??this.service),f=await v0({headers:{},body:n},this.sha256),m=new this.sha256;m.update(t);const h=es(await m.digest()),b=[B8,l,d,s,h,f].join(`
1572
- `);return this.signString(b,{signingDate:r,signingRegion:o,signingService:a})}async signMessage(t,{signingDate:n=new Date,signingRegion:r,signingService:s}){return this.signEvent({headers:this.headerFormatter.format(t.message.headers),payload:t.message.body},{signingDate:n,signingRegion:r,signingService:s,priorSignature:t.priorSignature}).then(a=>({message:t.message,signature:a}))}async signString(t,{signingDate:n=new Date,signingRegion:r,signingService:s}={}){const i=await this.credentialProvider();this.validateResolvedCredentials(i);const a=r??await this.regionProvider(),{shortDate:o}=this.formatDate(n),c=new this.sha256(await this.getSigningKey(i,a,o,s));return c.update(Kc(t)),es(await c.digest())}async signRequest(t,{signingDate:n=new Date,signableHeaders:r,unsignableHeaders:s,signingRegion:i,signingService:a}={}){const o=await this.credentialProvider();this.validateResolvedCredentials(o);const c=i??await this.regionProvider(),l=C1(t),{longDate:d,shortDate:f}=this.formatDate(n),m=x0(f,c,a??this.service);l.headers[TS]=d,o.sessionToken&&(l.headers[A8]=o.sessionToken);const h=await v0(l,this.sha256);!z8(fb,l.headers)&&this.applyChecksum&&(l.headers[fb]=h);const b=p1(l,s,r),g=await this.getSignature(d,m,this.getSigningKey(o,c,f,a),this.createCanonicalRequest(l,b,h));return l.headers[SS]=`${E0} Credential=${o.accessKeyId}/${m}, SignedHeaders=${this.getCanonicalHeaderList(b)}, Signature=${g}`,l}async getSignature(t,n,r,s){const i=await this.createStringToSign(t,n,s,E0),a=new this.sha256(await r);return a.update(Kc(i)),es(await a.digest())}getSigningKey(t,n,r,s){return D8(this.sha256,t,r,n,s||this.service)}}const W8=e=>{let t=e.credentials,n=!!e.credentials,r;Object.defineProperty(e,"credentials",{set(l){l&&l!==t&&l!==r&&(n=!0),t=l;const d=G8(e,{credentials:t,credentialDefaultProvider:e.credentialDefaultProvider}),f=V8(e,d);n&&!f.attributed?(r=async m=>f(m).then(h=>i5(h,"CREDENTIALS_CODE","e")),r.memoized=f.memoized,r.configBound=f.configBound,r.attributed=!0):r=f},get(){return r},enumerable:!0,configurable:!0}),e.credentials=t;const{signingEscapePath:s=!0,systemClockOffset:i=e.systemClockOffset||0,sha256:a}=e;let o;return e.signer?o=cc(e.signer):e.regionInfoProvider?o=()=>cc(e.region)().then(async l=>[await e.regionInfoProvider(l,{useFipsEndpoint:await e.useFipsEndpoint(),useDualstackEndpoint:await e.useDualstackEndpoint()})||{},l]).then(([l,d])=>{const{signingRegion:f,signingService:m}=l;e.signingRegion=e.signingRegion||f||d,e.signingName=e.signingName||m||e.serviceId;const h={...e,credentials:e.credentials,region:e.signingRegion,service:e.signingName,sha256:a,uriEscapePath:s},b=e.signerConstructor||hb;return new b(h)}):o=async l=>{l=Object.assign({},{name:"sigv4",signingName:e.signingName||e.defaultSigningName,signingRegion:await cc(e.region)(),properties:{}},l);const d=l.signingRegion,f=l.signingName;e.signingRegion=e.signingRegion||d,e.signingName=e.signingName||f||e.serviceId;const m={...e,credentials:e.credentials,region:e.signingRegion,service:e.signingName,sha256:a,uriEscapePath:s},h=e.signerConstructor||hb;return new h(m)},Object.assign(e,{systemClockOffset:i,signingEscapePath:s,signer:o})};function G8(e,{credentials:t,credentialDefaultProvider:n}){let r;return t?t?.memoized?r=t:r=p8(t,g8,CS):n?r=cc(n(Object.assign({},e,{parentClientConfig:e}))):r=async()=>{throw new Error("@aws-sdk/core::resolveAwsSdkSigV4Config - `credentials` not provided and no credentialDefaultProvider was configured.")},r.memoized=!0,r}function V8(e,t){if(t.configBound)return t;const n=async r=>t({...r,callerClientConfig:e});return n.memoized=t.memoized,n.configBound=!0,n}const x1=typeof TextEncoder=="function"?new TextEncoder:null,K8=e=>{if(typeof e=="string"){if(x1)return x1.encode(e).byteLength;let t=e.length;for(let n=t-1;n>=0;n--){const r=e.charCodeAt(n);r>127&&r<=2047?t++:r>2047&&r<=65535&&(t+=2),r>=56320&&r<=57343&&n--}return t}else{if(typeof e.byteLength=="number")return e.byteLength;if(typeof e.size=="number")return e.size}throw new Error(`Body Length computation failed for ${e}`)},xa=(e,t)=>{const n=[];if(e&&n.push(e),t)for(const r of t)n.push(r);return n},zi=(e,t)=>`${e||"anonymous"}${t&&t.length>0?` (a.k.a. ${t.join(",")})`:""}`,zf=()=>{let e=[],t=[],n=!1;const r=new Set,s=f=>f.sort((m,h)=>v1[h.step]-v1[m.step]||_1[h.priority||"normal"]-_1[m.priority||"normal"]),i=f=>{let m=!1;const h=b=>{const g=xa(b.name,b.aliases);if(g.includes(f)){m=!0;for(const y of g)r.delete(y);return!1}return!0};return e=e.filter(h),t=t.filter(h),m},a=f=>{let m=!1;const h=b=>{if(b.middleware===f){m=!0;for(const g of xa(b.name,b.aliases))r.delete(g);return!1}return!0};return e=e.filter(h),t=t.filter(h),m},o=f=>(e.forEach(m=>{f.add(m.middleware,{...m})}),t.forEach(m=>{f.addRelativeTo(m.middleware,{...m})}),f.identifyOnResolve?.(d.identifyOnResolve()),f),c=f=>{const m=[];return f.before.forEach(h=>{h.before.length===0&&h.after.length===0?m.push(h):m.push(...c(h))}),m.push(f),f.after.reverse().forEach(h=>{h.before.length===0&&h.after.length===0?m.push(h):m.push(...c(h))}),m},l=(f=!1)=>{const m=[],h=[],b={};return e.forEach(y=>{const p={...y,before:[],after:[]};for(const C of xa(p.name,p.aliases))b[C]=p;m.push(p)}),t.forEach(y=>{const p={...y,before:[],after:[]};for(const C of xa(p.name,p.aliases))b[C]=p;h.push(p)}),h.forEach(y=>{if(y.toMiddleware){const p=b[y.toMiddleware];if(p===void 0){if(f)return;throw new Error(`${y.toMiddleware} is not found when adding ${zi(y.name,y.aliases)} middleware ${y.relation} ${y.toMiddleware}`)}y.relation==="after"&&p.after.push(y),y.relation==="before"&&p.before.push(y)}}),s(m).map(c).reduce((y,p)=>(y.push(...p),y),[])},d={add:(f,m={})=>{const{name:h,override:b,aliases:g}=m,y={step:"initialize",priority:"normal",middleware:f,...m},p=xa(h,g);if(p.length>0){if(p.some(C=>r.has(C))){if(!b)throw new Error(`Duplicate middleware name '${zi(h,g)}'`);for(const C of p){const w=e.findIndex(S=>S.name===C||S.aliases?.some(A=>A===C));if(w===-1)continue;const _=e[w];if(_.step!==y.step||y.priority!==_.priority)throw new Error(`"${zi(_.name,_.aliases)}" middleware with ${_.priority} priority in ${_.step} step cannot be overridden by "${zi(h,g)}" middleware with ${y.priority} priority in ${y.step} step.`);e.splice(w,1)}}for(const C of p)r.add(C)}e.push(y)},addRelativeTo:(f,m)=>{const{name:h,override:b,aliases:g}=m,y={middleware:f,...m},p=xa(h,g);if(p.length>0){if(p.some(C=>r.has(C))){if(!b)throw new Error(`Duplicate middleware name '${zi(h,g)}'`);for(const C of p){const w=t.findIndex(S=>S.name===C||S.aliases?.some(A=>A===C));if(w===-1)continue;const _=t[w];if(_.toMiddleware!==y.toMiddleware||_.relation!==y.relation)throw new Error(`"${zi(_.name,_.aliases)}" middleware ${_.relation} "${_.toMiddleware}" middleware cannot be overridden by "${zi(h,g)}" middleware ${y.relation} "${y.toMiddleware}" middleware.`);t.splice(w,1)}}for(const C of p)r.add(C)}t.push(y)},clone:()=>o(zf()),use:f=>{f.applyToStack(d)},remove:f=>typeof f=="string"?i(f):a(f),removeByTag:f=>{let m=!1;const h=b=>{const{tags:g,name:y,aliases:p}=b;if(g&&g.includes(f)){const C=xa(y,p);for(const w of C)r.delete(w);return m=!0,!1}return!0};return e=e.filter(h),t=t.filter(h),m},concat:f=>{const m=o(zf());return m.use(f),m.identifyOnResolve(n||m.identifyOnResolve()||(f.identifyOnResolve?.()??!1)),m},applyToStack:o,identify:()=>l(!0).map(f=>{const m=f.step??f.relation+" "+f.toMiddleware;return zi(f.name,f.aliases)+" - "+m}),identifyOnResolve(f){return typeof f=="boolean"&&(n=f),n},resolve:(f,m)=>{for(const h of l().map(b=>b.middleware).reverse())f=h(f,m);return n&&console.log(d.identify()),f}};return d},v1={initialize:5,serialize:4,build:3,finalizeRequest:2,deserialize:1},_1={high:3,normal:2,low:1};class Y8{constructor(t){this.config=t,this.middlewareStack=zf()}send(t,n,r){const s=typeof n!="function"?n:void 0,i=typeof n=="function"?n:r,a=s===void 0&&this.config.cacheMiddleware===!0;let o;if(a){this.handlers||(this.handlers=new WeakMap);const c=this.handlers;c.has(t.constructor)?o=c.get(t.constructor):(o=t.resolveMiddleware(this.middlewareStack,this.config,s),c.set(t.constructor,o))}else delete this.handlers,o=t.resolveMiddleware(this.middlewareStack,this.config,s);if(i)o(t).then(c=>i(null,c.output),c=>i(c)).catch(()=>{});else return o(t).then(c=>c.output)}destroy(){this.config?.requestHandler?.destroy?.(),delete this.handlers}}class Ee{constructor(){this.middlewareStack=zf()}static classBuilder(){return new X8}resolveMiddlewareWithContext(t,n,r,{middlewareFn:s,clientName:i,commandName:a,inputFilterSensitiveLog:o,outputFilterSensitiveLog:c,smithyContext:l,additionalContext:d,CommandCtor:f}){for(const y of s.bind(this)(f,t,n,r))this.middlewareStack.use(y);const m=t.concat(this.middlewareStack),{logger:h}=n,b={logger:h,clientName:i,commandName:a,inputFilterSensitiveLog:o,outputFilterSensitiveLog:c,[ob]:{commandInstance:this,...l},...d},{requestHandler:g}=n;return m.resolve(y=>g.handle(y.request,r||{}),b)}}class X8{constructor(){this._init=()=>{},this._ep={},this._middlewareFn=()=>[],this._commandName="",this._clientName="",this._additionalContext={},this._smithyContext={},this._inputFilterSensitiveLog=t=>t,this._outputFilterSensitiveLog=t=>t,this._serializer=null,this._deserializer=null}init(t){this._init=t}ep(t){return this._ep=t,this}m(t){return this._middlewareFn=t,this}s(t,n,r={}){return this._smithyContext={service:t,operation:n,...r},this}c(t={}){return this._additionalContext=t,this}n(t,n){return this._clientName=t,this._commandName=n,this}f(t=r=>r,n=r=>r){return this._inputFilterSensitiveLog=t,this._outputFilterSensitiveLog=n,this}ser(t){return this._serializer=t,this}de(t){return this._deserializer=t,this}sc(t){return this._operationSchema=t,this._smithyContext.operationSchema=t,this}build(){const t=this;let n;return n=class extends Ee{static getEndpointParameterInstructions(){return t._ep}constructor(...[r]){super(),this.serialize=t._serializer,this.deserialize=t._deserializer,this.input=r??{},t._init(this),this.schema=t._operationSchema}resolveMiddleware(r,s,i){return this.resolveMiddlewareWithContext(r,s,i,{CommandCtor:n,middlewareFn:t._middlewareFn,clientName:t._clientName,commandName:t._commandName,inputFilterSensitiveLog:t._inputFilterSensitiveLog,outputFilterSensitiveLog:t._outputFilterSensitiveLog,smithyContext:t._smithyContext,additionalContext:t._additionalContext})}}}}const Tt="***SensitiveInformation***",Q8=(e,t)=>{for(const n of Object.keys(e)){const r=e[n],s=async function(a,o,c){const l=new r(a);if(typeof o=="function")this.send(l,o);else if(typeof c=="function"){if(typeof o!="object")throw new Error(`Expected http options but got ${typeof o}`);this.send(l,o||{},c)}else return this.send(l,o)},i=(n[0].toLowerCase()+n.slice(1)).replace(/Command$/,"");t.prototype[i]=s}};class nc extends Error{constructor(t){super(t.message),Object.setPrototypeOf(this,Object.getPrototypeOf(this).constructor.prototype),this.name=t.name,this.$fault=t.$fault,this.$metadata=t.$metadata}static isInstance(t){if(!t)return!1;const n=t;return nc.prototype.isPrototypeOf(n)||!!n.$fault&&!!n.$metadata&&(n.$fault==="client"||n.$fault==="server")}static[Symbol.hasInstance](t){if(!t)return!1;const n=t;return this===nc?nc.isInstance(t):nc.isInstance(t)?n.name&&this.name?this.prototype.isPrototypeOf(t)||n.name===this.name:this.prototype.isPrototypeOf(t):!1}}const Yr=(e,t={})=>{Object.entries(t).filter(([,r])=>r!==void 0).forEach(([r,s])=>{(e[r]==null||e[r]==="")&&(e[r]=s)});const n=e.message||e.Message||"UnknownError";return e.message=n,delete e.Message,e},Z8=({output:e,parsedBody:t,exceptionCtor:n,errorCode:r})=>{const s=eL(e),i=s.httpStatusCode?s.httpStatusCode+"":void 0,a=new n({name:t?.code||t?.Code||r||i||"UnknownError",$fault:"client",$metadata:s});throw Yr(a,t)},J8=e=>({output:t,parsedBody:n,errorCode:r})=>{Z8({output:t,parsedBody:n,exceptionCtor:e,errorCode:r})},eL=e=>({httpStatusCode:e.statusCode,requestId:e.headers["x-amzn-requestid"]??e.headers["x-amzn-request-id"]??e.headers["x-amz-request-id"],extendedRequestId:e.headers["x-amz-id-2"],cfId:e.headers["x-amz-cf-id"]}),tL=e=>{switch(e){case"standard":return{retryMode:"standard",connectionTimeout:3100};case"in-region":return{retryMode:"standard",connectionTimeout:1100};case"cross-region":return{retryMode:"standard",connectionTimeout:3100};case"mobile":return{retryMode:"standard",connectionTimeout:3e4};default:return{}}},nL=e=>{const t=[];for(const n in Mf){const r=Mf[n];e[r]!==void 0&&t.push({algorithmId:()=>r,checksumConstructor:()=>e[r]})}return{addChecksumAlgorithm(n){t.push(n)},checksumAlgorithms(){return t}}},rL=e=>{const t={};return e.checksumAlgorithms().forEach(n=>{t[n.algorithmId()]=n.checksumConstructor()}),t},sL=e=>({setRetryStrategy(t){e.retryStrategy=t},retryStrategy(){return e.retryStrategy}}),iL=e=>{const t={};return t.retryStrategy=e.retryStrategy(),t},aL=e=>Object.assign(nL(e),sL(e)),oL=e=>Object.assign(rL(e),iL(e)),ot=e=>Array.isArray(e)?e:[e],IS=e=>{const t="#text";for(const n in e)e.hasOwnProperty(n)&&e[n][t]!==void 0?e[n]=e[n][t]:typeof e[n]=="object"&&e[n]!==null&&(e[n]=IS(e[n]));return e},ee=e=>e!=null;class ip{trace(){}debug(){}info(){}warn(){}error(){}}function T(e,t,n){let r,s,i;if(typeof t>"u"&&typeof n>"u")r={},i=e;else{if(r=e,typeof t=="function")return s=t,i=n,cL(r,s,i);i=t}for(const a of Object.keys(i)){if(!Array.isArray(i[a])){r[a]=i[a];continue}lL(r,null,i,a)}return r}const cL=(e,t,n)=>T(e,Object.entries(n).reduce((r,[s,i])=>(Array.isArray(i)?r[s]=i:typeof i=="function"?r[s]=[t,i()]:r[s]=[t,i],r),{})),lL=(e,t,n,r)=>{let[s,i]=n[r];if(typeof i=="function"){let a;const o=s===void 0&&(a=i())!=null,c=typeof s=="function"&&!!s(void 0)||typeof s!="function"&&!!s;o?e[r]=a:c&&(e[r]=i())}else{const a=s===void 0&&i!=null,o=typeof s=="function"&&!!s(i)||typeof s!="function"&&!!s;(a||o)&&(e[r]=i)}},ko=e=>e.toISOString().replace(".000Z","Z"),uL=(e,t)=>tt(e,t).then(n=>t.utf8Encoder(n)),RS=":A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",dL=RS+"\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040",fL="["+RS+"]["+dL+"]*",hL=new RegExp("^"+fL+"$");function BS(e,t){const n=[];let r=t.exec(e);for(;r;){const s=[];s.startIndex=t.lastIndex-r[0].length;const i=r.length;for(let a=0;a<i;a++)s.push(r[a]);n.push(s),r=t.exec(e)}return n}const ap=function(e){const t=hL.exec(e);return!(t===null||typeof t>"u")};function mL(e){return typeof e<"u"}const bL={allowBooleanAttributes:!1,unpairedTags:[]};function gL(e,t){t=Object.assign({},bL,t);const n=[];let r=!1,s=!1;e[0]==="\uFEFF"&&(e=e.substr(1));for(let i=0;i<e.length;i++)if(e[i]==="<"&&e[i+1]==="?"){if(i+=2,i=T1(e,i),i.err)return i}else if(e[i]==="<"){let a=i;if(i++,e[i]==="!"){i=w1(e,i);continue}else{let o=!1;e[i]==="/"&&(o=!0,i++);let c="";for(;i<e.length&&e[i]!==">"&&e[i]!==" "&&e[i]!==" "&&e[i]!==`
1573
- `&&e[i]!=="\r";i++)c+=e[i];if(c=c.trim(),c[c.length-1]==="/"&&(c=c.substring(0,c.length-1),i--),!SL(c)){let f;return c.trim().length===0?f="Invalid space after '<'.":f="Tag '"+c+"' is an invalid name.",Un("InvalidTag",f,$r(e,i))}const l=EL(e,i);if(l===!1)return Un("InvalidAttr","Attributes for '"+c+"' have open quote.",$r(e,i));let d=l.value;if(i=l.index,d[d.length-1]==="/"){const f=i-d.length;d=d.substring(0,d.length-1);const m=A1(d,t);if(m===!0)r=!0;else return Un(m.err.code,m.err.msg,$r(e,f+m.err.line))}else if(o)if(l.tagClosed){if(d.trim().length>0)return Un("InvalidTag","Closing tag '"+c+"' can't have attributes or invalid starting.",$r(e,a));if(n.length===0)return Un("InvalidTag","Closing tag '"+c+"' has not been opened.",$r(e,a));{const f=n.pop();if(c!==f.tagName){let m=$r(e,f.tagStartPos);return Un("InvalidTag","Expected closing tag '"+f.tagName+"' (opened in line "+m.line+", col "+m.col+") instead of closing tag '"+c+"'.",$r(e,a))}n.length==0&&(s=!0)}}else return Un("InvalidTag","Closing tag '"+c+"' doesn't have proper closing.",$r(e,i));else{const f=A1(d,t);if(f!==!0)return Un(f.err.code,f.err.msg,$r(e,i-d.length+f.err.line));if(s===!0)return Un("InvalidXml","Multiple possible root nodes found.",$r(e,i));t.unpairedTags.indexOf(c)!==-1||n.push({tagName:c,tagStartPos:a}),r=!0}for(i++;i<e.length;i++)if(e[i]==="<")if(e[i+1]==="!"){i++,i=w1(e,i);continue}else if(e[i+1]==="?"){if(i=T1(e,++i),i.err)return i}else break;else if(e[i]==="&"){const f=vL(e,i);if(f==-1)return Un("InvalidChar","char '&' is not expected.",$r(e,i));i=f}else if(s===!0&&!S1(e[i]))return Un("InvalidXml","Extra text at the end",$r(e,i));e[i]==="<"&&i--}}else{if(S1(e[i]))continue;return Un("InvalidChar","char '"+e[i]+"' is not expected.",$r(e,i))}if(r){if(n.length==1)return Un("InvalidTag","Unclosed tag '"+n[0].tagName+"'.",$r(e,n[0].tagStartPos));if(n.length>0)return Un("InvalidXml","Invalid '"+JSON.stringify(n.map(i=>i.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}else return Un("InvalidXml","Start tag expected.",1);return!0}function S1(e){return e===" "||e===" "||e===`
1574
- `||e==="\r"}function T1(e,t){const n=t;for(;t<e.length;t++)if(e[t]=="?"||e[t]==" "){const r=e.substr(n,t-n);if(t>5&&r==="xml")return Un("InvalidXml","XML declaration allowed only at the start of the document.",$r(e,t));if(e[t]=="?"&&e[t+1]==">"){t++;break}else continue}return t}function w1(e,t){if(e.length>t+5&&e[t+1]==="-"&&e[t+2]==="-"){for(t+=3;t<e.length;t++)if(e[t]==="-"&&e[t+1]==="-"&&e[t+2]===">"){t+=2;break}}else if(e.length>t+8&&e[t+1]==="D"&&e[t+2]==="O"&&e[t+3]==="C"&&e[t+4]==="T"&&e[t+5]==="Y"&&e[t+6]==="P"&&e[t+7]==="E"){let n=1;for(t+=8;t<e.length;t++)if(e[t]==="<")n++;else if(e[t]===">"&&(n--,n===0))break}else if(e.length>t+9&&e[t+1]==="["&&e[t+2]==="C"&&e[t+3]==="D"&&e[t+4]==="A"&&e[t+5]==="T"&&e[t+6]==="A"&&e[t+7]==="["){for(t+=8;t<e.length;t++)if(e[t]==="]"&&e[t+1]==="]"&&e[t+2]===">"){t+=2;break}}return t}const pL='"',yL="'";function EL(e,t){let n="",r="",s=!1;for(;t<e.length;t++){if(e[t]===pL||e[t]===yL)r===""?r=e[t]:r!==e[t]||(r="");else if(e[t]===">"&&r===""){s=!0;break}n+=e[t]}return r!==""?!1:{value:n,index:t,tagClosed:s}}const CL=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function A1(e,t){const n=BS(e,CL),r={};for(let s=0;s<n.length;s++){if(n[s][1].length===0)return Un("InvalidAttr","Attribute '"+n[s][2]+"' has no space in starting.",Hl(n[s]));if(n[s][3]!==void 0&&n[s][4]===void 0)return Un("InvalidAttr","Attribute '"+n[s][2]+"' is without value.",Hl(n[s]));if(n[s][3]===void 0&&!t.allowBooleanAttributes)return Un("InvalidAttr","boolean attribute '"+n[s][2]+"' is not allowed.",Hl(n[s]));const i=n[s][2];if(!_L(i))return Un("InvalidAttr","Attribute '"+i+"' is an invalid name.",Hl(n[s]));if(!r.hasOwnProperty(i))r[i]=1;else return Un("InvalidAttr","Attribute '"+i+"' is repeated.",Hl(n[s]))}return!0}function xL(e,t){let n=/\d/;for(e[t]==="x"&&(t++,n=/[\da-fA-F]/);t<e.length;t++){if(e[t]===";")return t;if(!e[t].match(n))break}return-1}function vL(e,t){if(t++,e[t]===";")return-1;if(e[t]==="#")return t++,xL(e,t);let n=0;for(;t<e.length;t++,n++)if(!(e[t].match(/\w/)&&n<20)){if(e[t]===";")break;return-1}return t}function Un(e,t,n){return{err:{code:e,msg:t,line:n.line||n,col:n.col}}}function _L(e){return ap(e)}function SL(e){return ap(e)}function $r(e,t){const n=e.substring(0,t).split(/\r?\n/);return{line:n.length,col:n[n.length-1].length+1}}function Hl(e){return e.startIndex+e[1].length}const TL={preserveOrder:!1,attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,removeNSPrefix:!1,allowBooleanAttributes:!1,parseTagValue:!0,parseAttributeValue:!1,trimValues:!0,cdataPropName:!1,numberParseOptions:{hex:!0,leadingZeros:!0,eNotation:!0},tagValueProcessor:function(e,t){return t},attributeValueProcessor:function(e,t){return t},stopNodes:[],alwaysCreateTextNode:!1,isArray:()=>!1,commentPropName:!1,unpairedTags:[],processEntities:!0,htmlEntities:!1,ignoreDeclaration:!1,ignorePiTags:!1,transformTagName:!1,transformAttributeName:!1,updateTag:function(e,t,n){return e},captureMetaData:!1},wL=function(e){return Object.assign({},TL,e)};let Uf;typeof Symbol!="function"?Uf="@@xmlMetadata":Uf=Symbol("XML Node Metadata");let Ta=class{constructor(t){this.tagname=t,this.child=[],this[":@"]={}}add(t,n){t==="__proto__"&&(t="#__proto__"),this.child.push({[t]:n})}addChild(t,n){t.tagname==="__proto__"&&(t.tagname="#__proto__"),t[":@"]&&Object.keys(t[":@"]).length>0?this.child.push({[t.tagname]:t.child,":@":t[":@"]}):this.child.push({[t.tagname]:t.child}),n!==void 0&&(this.child[this.child.length-1][Uf]={startIndex:n})}static getMetaDataSymbol(){return Uf}};function AL(e,t){const n={};if(e[t+3]==="O"&&e[t+4]==="C"&&e[t+5]==="T"&&e[t+6]==="Y"&&e[t+7]==="P"&&e[t+8]==="E"){t=t+9;let r=1,s=!1,i=!1,a="";for(;t<e.length;t++)if(e[t]==="<"&&!i){if(s&&wa(e,"!ENTITY",t)){t+=7;let o,c;[o,c,t]=kL(e,t+1),c.indexOf("&")===-1&&(n[o]={regx:RegExp(`&${o};`,"g"),val:c})}else if(s&&wa(e,"!ELEMENT",t)){t+=8;const{index:o}=RL(e,t+1);t=o}else if(s&&wa(e,"!ATTLIST",t))t+=8;else if(s&&wa(e,"!NOTATION",t)){t+=9;const{index:o}=IL(e,t+1);t=o}else if(wa(e,"!--",t))i=!0;else throw new Error("Invalid DOCTYPE");r++,a=""}else if(e[t]===">"){if(i?e[t-1]==="-"&&e[t-2]==="-"&&(i=!1,r--):r--,r===0)break}else e[t]==="["?s=!0:a+=e[t];if(r!==0)throw new Error("Unclosed DOCTYPE")}else throw new Error("Invalid Tag instead of DOCTYPE");return{entities:n,i:t}}const Yi=(e,t)=>{for(;t<e.length&&/\s/.test(e[t]);)t++;return t};function kL(e,t){t=Yi(e,t);let n="";for(;t<e.length&&!/\s/.test(e[t])&&e[t]!=='"'&&e[t]!=="'";)n+=e[t],t++;if(op(n),t=Yi(e,t),e.substring(t,t+6).toUpperCase()==="SYSTEM")throw new Error("External entities are not supported");if(e[t]==="%")throw new Error("Parameter entities are not supported");let r="";return[t,r]=Dd(e,t,"entity"),t--,[n,r,t]}function IL(e,t){t=Yi(e,t);let n="";for(;t<e.length&&!/\s/.test(e[t]);)n+=e[t],t++;op(n),t=Yi(e,t);const r=e.substring(t,t+6).toUpperCase();if(r!=="SYSTEM"&&r!=="PUBLIC")throw new Error(`Expected SYSTEM or PUBLIC, found "${r}"`);t+=r.length,t=Yi(e,t);let s=null,i=null;if(r==="PUBLIC")[t,s]=Dd(e,t,"publicIdentifier"),t=Yi(e,t),(e[t]==='"'||e[t]==="'")&&([t,i]=Dd(e,t,"systemIdentifier"));else if(r==="SYSTEM"&&([t,i]=Dd(e,t,"systemIdentifier"),!i))throw new Error("Missing mandatory system identifier for SYSTEM notation");return{notationName:n,publicIdentifier:s,systemIdentifier:i,index:--t}}function Dd(e,t,n){let r="";const s=e[t];if(s!=='"'&&s!=="'")throw new Error(`Expected quoted string, found "${s}"`);for(t++;t<e.length&&e[t]!==s;)r+=e[t],t++;if(e[t]!==s)throw new Error(`Unterminated ${n} value`);return t++,[t,r]}function RL(e,t){t=Yi(e,t);let n="";for(;t<e.length&&!/\s/.test(e[t]);)n+=e[t],t++;if(!op(n))throw new Error(`Invalid element name: "${n}"`);t=Yi(e,t);let r="";if(e[t]==="E"&&wa(e,"MPTY",t))t+=4;else if(e[t]==="A"&&wa(e,"NY",t))t+=2;else if(e[t]==="("){for(t++;t<e.length&&e[t]!==")";)r+=e[t],t++;if(e[t]!==")")throw new Error("Unterminated content model")}else throw new Error(`Invalid Element Expression, found "${e[t]}"`);return{elementName:n,contentModel:r.trim(),index:t}}function wa(e,t,n){for(let r=0;r<t.length;r++)if(t[r]!==e[n+r+1])return!1;return!0}function op(e){if(ap(e))return e;throw new Error(`Invalid entity name ${e}`)}const BL=/^[-+]?0x[a-fA-F0-9]+$/,PL=/^([\-\+])?(0*)([0-9]*(\.[0-9]*)?)$/,NL={hex:!0,leadingZeros:!0,decimalPoint:".",eNotation:!0};function OL(e,t={}){if(t=Object.assign({},NL,t),!e||typeof e!="string")return e;let n=e.trim();if(t.skipLike!==void 0&&t.skipLike.test(n))return e;if(e==="0")return 0;if(t.hex&&BL.test(n))return FL(n,16);if(n.search(/.+[eE].+/)!==-1)return LL(e,n,t);{const r=PL.exec(n);if(r){const s=r[1]||"",i=r[2];let a=ML(r[3]);const o=s?e[i.length+1]===".":e[i.length]===".";if(!t.leadingZeros&&(i.length>1||i.length===1&&!o))return e;{const c=Number(n),l=String(c);if(c===0)return c;if(l.search(/[eE]/)!==-1)return t.eNotation?c:e;if(n.indexOf(".")!==-1)return l==="0"||l===a||l===`${s}${a}`?c:e;let d=i?a:n;return i?d===l||s+d===l?c:e:d===l||d===s+l?c:e}}else return e}}const DL=/^([-+])?(0*)(\d*(\.\d*)?[eE][-\+]?\d+)$/;function LL(e,t,n){if(!n.eNotation)return e;const r=t.match(DL);if(r){let s=r[1]||"";const i=r[3].indexOf("e")===-1?"E":"e",a=r[2],o=s?e[a.length+1]===i:e[a.length]===i;return a.length>1&&o?e:a.length===1&&(r[3].startsWith(`.${i}`)||r[3][0]===i)?Number(t):n.leadingZeros&&!o?(t=(r[1]||"")+r[3],Number(t)):e}else return e}function ML(e){return e&&e.indexOf(".")!==-1&&(e=e.replace(/0+$/,""),e==="."?e="0":e[0]==="."?e="0"+e:e[e.length-1]==="."&&(e=e.substring(0,e.length-1))),e}function FL(e,t){if(parseInt)return parseInt(e,t);if(Number.parseInt)return Number.parseInt(e,t);if(window&&window.parseInt)return window.parseInt(e,t);throw new Error("parseInt, Number.parseInt, window.parseInt are not supported")}function zL(e){return typeof e=="function"?e:Array.isArray(e)?t=>{for(const n of e)if(typeof n=="string"&&t===n||n instanceof RegExp&&n.test(t))return!0}:()=>!1}class UL{constructor(t){this.options=t,this.currentNode=null,this.tagsNodeStack=[],this.docTypeEntities={},this.lastEntities={apos:{regex:/&(apos|#39|#x27);/g,val:"'"},gt:{regex:/&(gt|#62|#x3E);/g,val:">"},lt:{regex:/&(lt|#60|#x3C);/g,val:"<"},quot:{regex:/&(quot|#34|#x22);/g,val:'"'}},this.ampEntity={regex:/&(amp|#38|#x26);/g,val:"&"},this.htmlEntities={space:{regex:/&(nbsp|#160);/g,val:" "},cent:{regex:/&(cent|#162);/g,val:"¢"},pound:{regex:/&(pound|#163);/g,val:"£"},yen:{regex:/&(yen|#165);/g,val:"¥"},euro:{regex:/&(euro|#8364);/g,val:"€"},copyright:{regex:/&(copy|#169);/g,val:"©"},reg:{regex:/&(reg|#174);/g,val:"®"},inr:{regex:/&(inr|#8377);/g,val:"₹"},num_dec:{regex:/&#([0-9]{1,7});/g,val:(n,r)=>String.fromCodePoint(Number.parseInt(r,10))},num_hex:{regex:/&#x([0-9a-fA-F]{1,6});/g,val:(n,r)=>String.fromCodePoint(Number.parseInt(r,16))}},this.addExternalEntities=$L,this.parseXml=GL,this.parseTextData=HL,this.resolveNameSpace=qL,this.buildAttributesMap=WL,this.isItStopNode=XL,this.replaceEntitiesValue=KL,this.readStopNodeData=ZL,this.saveTextToParentTag=YL,this.addChild=VL,this.ignoreAttributesFn=zL(this.options.ignoreAttributes)}}function $L(e){const t=Object.keys(e);for(let n=0;n<t.length;n++){const r=t[n];this.lastEntities[r]={regex:new RegExp("&"+r+";","g"),val:e[r]}}}function HL(e,t,n,r,s,i,a){if(e!==void 0&&(this.options.trimValues&&!r&&(e=e.trim()),e.length>0)){a||(e=this.replaceEntitiesValue(e));const o=this.options.tagValueProcessor(t,e,n,s,i);return o==null?e:typeof o!=typeof e||o!==e?o:this.options.trimValues?bb(e,this.options.parseTagValue,this.options.numberParseOptions):e.trim()===e?bb(e,this.options.parseTagValue,this.options.numberParseOptions):e}}function qL(e){if(this.options.removeNSPrefix){const t=e.split(":"),n=e.charAt(0)==="/"?"/":"";if(t[0]==="xmlns")return"";t.length===2&&(e=n+t[1])}return e}const jL=new RegExp(`([^\\s=]+)\\s*(=\\s*(['"])([\\s\\S]*?)\\3)?`,"gm");function WL(e,t,n){if(this.options.ignoreAttributes!==!0&&typeof e=="string"){const r=BS(e,jL),s=r.length,i={};for(let a=0;a<s;a++){const o=this.resolveNameSpace(r[a][1]);if(this.ignoreAttributesFn(o,t))continue;let c=r[a][4],l=this.options.attributeNamePrefix+o;if(o.length)if(this.options.transformAttributeName&&(l=this.options.transformAttributeName(l)),l==="__proto__"&&(l="#__proto__"),c!==void 0){this.options.trimValues&&(c=c.trim()),c=this.replaceEntitiesValue(c);const d=this.options.attributeValueProcessor(o,c,t);d==null?i[l]=c:typeof d!=typeof c||d!==c?i[l]=d:i[l]=bb(c,this.options.parseAttributeValue,this.options.numberParseOptions)}else this.options.allowBooleanAttributes&&(i[l]=!0)}if(!Object.keys(i).length)return;if(this.options.attributesGroupName){const a={};return a[this.options.attributesGroupName]=i,a}return i}}const GL=function(e){e=e.replace(/\r\n?/g,`
1575
- `);const t=new Ta("!xml");let n=t,r="",s="";for(let i=0;i<e.length;i++)if(e[i]==="<")if(e[i+1]==="/"){const o=ka(e,">",i,"Closing Tag is not closed.");let c=e.substring(i+2,o).trim();if(this.options.removeNSPrefix){const f=c.indexOf(":");f!==-1&&(c=c.substr(f+1))}this.options.transformTagName&&(c=this.options.transformTagName(c)),n&&(r=this.saveTextToParentTag(r,n,s));const l=s.substring(s.lastIndexOf(".")+1);if(c&&this.options.unpairedTags.indexOf(c)!==-1)throw new Error(`Unpaired tag can not be used as closing tag: </${c}>`);let d=0;l&&this.options.unpairedTags.indexOf(l)!==-1?(d=s.lastIndexOf(".",s.lastIndexOf(".")-1),this.tagsNodeStack.pop()):d=s.lastIndexOf("."),s=s.substring(0,d),n=this.tagsNodeStack.pop(),r="",i=o}else if(e[i+1]==="?"){let o=mb(e,i,!1,"?>");if(!o)throw new Error("Pi Tag is not closed.");if(r=this.saveTextToParentTag(r,n,s),!(this.options.ignoreDeclaration&&o.tagName==="?xml"||this.options.ignorePiTags)){const c=new Ta(o.tagName);c.add(this.options.textNodeName,""),o.tagName!==o.tagExp&&o.attrExpPresent&&(c[":@"]=this.buildAttributesMap(o.tagExp,s,o.tagName)),this.addChild(n,c,s,i)}i=o.closeIndex+1}else if(e.substr(i+1,3)==="!--"){const o=ka(e,"-->",i+4,"Comment is not closed.");if(this.options.commentPropName){const c=e.substring(i+4,o-2);r=this.saveTextToParentTag(r,n,s),n.add(this.options.commentPropName,[{[this.options.textNodeName]:c}])}i=o}else if(e.substr(i+1,2)==="!D"){const o=AL(e,i);this.docTypeEntities=o.entities,i=o.i}else if(e.substr(i+1,2)==="!["){const o=ka(e,"]]>",i,"CDATA is not closed.")-2,c=e.substring(i+9,o);r=this.saveTextToParentTag(r,n,s);let l=this.parseTextData(c,n.tagname,s,!0,!1,!0,!0);l==null&&(l=""),this.options.cdataPropName?n.add(this.options.cdataPropName,[{[this.options.textNodeName]:c}]):n.add(this.options.textNodeName,l),i=o+2}else{let o=mb(e,i,this.options.removeNSPrefix),c=o.tagName;const l=o.rawTagName;let d=o.tagExp,f=o.attrExpPresent,m=o.closeIndex;this.options.transformTagName&&(c=this.options.transformTagName(c)),n&&r&&n.tagname!=="!xml"&&(r=this.saveTextToParentTag(r,n,s,!1));const h=n;h&&this.options.unpairedTags.indexOf(h.tagname)!==-1&&(n=this.tagsNodeStack.pop(),s=s.substring(0,s.lastIndexOf("."))),c!==t.tagname&&(s+=s?"."+c:c);const b=i;if(this.isItStopNode(this.options.stopNodes,s,c)){let g="";if(d.length>0&&d.lastIndexOf("/")===d.length-1)c[c.length-1]==="/"?(c=c.substr(0,c.length-1),s=s.substr(0,s.length-1),d=c):d=d.substr(0,d.length-1),i=o.closeIndex;else if(this.options.unpairedTags.indexOf(c)!==-1)i=o.closeIndex;else{const p=this.readStopNodeData(e,l,m+1);if(!p)throw new Error(`Unexpected end of ${l}`);i=p.i,g=p.tagContent}const y=new Ta(c);c!==d&&f&&(y[":@"]=this.buildAttributesMap(d,s,c)),g&&(g=this.parseTextData(g,c,s,!0,f,!0,!0)),s=s.substr(0,s.lastIndexOf(".")),y.add(this.options.textNodeName,g),this.addChild(n,y,s,b)}else{if(d.length>0&&d.lastIndexOf("/")===d.length-1){c[c.length-1]==="/"?(c=c.substr(0,c.length-1),s=s.substr(0,s.length-1),d=c):d=d.substr(0,d.length-1),this.options.transformTagName&&(c=this.options.transformTagName(c));const g=new Ta(c);c!==d&&f&&(g[":@"]=this.buildAttributesMap(d,s,c)),this.addChild(n,g,s,b),s=s.substr(0,s.lastIndexOf("."))}else{const g=new Ta(c);this.tagsNodeStack.push(n),c!==d&&f&&(g[":@"]=this.buildAttributesMap(d,s,c)),this.addChild(n,g,s,b),n=g}r="",i=m}}else r+=e[i];return t.child};function VL(e,t,n,r){this.options.captureMetaData||(r=void 0);const s=this.options.updateTag(t.tagname,n,t[":@"]);s===!1||(typeof s=="string"&&(t.tagname=s),e.addChild(t,r))}const KL=function(e){if(this.options.processEntities){for(let t in this.docTypeEntities){const n=this.docTypeEntities[t];e=e.replace(n.regx,n.val)}for(let t in this.lastEntities){const n=this.lastEntities[t];e=e.replace(n.regex,n.val)}if(this.options.htmlEntities)for(let t in this.htmlEntities){const n=this.htmlEntities[t];e=e.replace(n.regex,n.val)}e=e.replace(this.ampEntity.regex,this.ampEntity.val)}return e};function YL(e,t,n,r){return e&&(r===void 0&&(r=t.child.length===0),e=this.parseTextData(e,t.tagname,n,!1,t[":@"]?Object.keys(t[":@"]).length!==0:!1,r),e!==void 0&&e!==""&&t.add(this.options.textNodeName,e),e=""),e}function XL(e,t,n){const r="*."+n;for(const s in e){const i=e[s];if(r===i||t===i)return!0}return!1}function QL(e,t,n=">"){let r,s="";for(let i=t;i<e.length;i++){let a=e[i];if(r)a===r&&(r="");else if(a==='"'||a==="'")r=a;else if(a===n[0])if(n[1]){if(e[i+1]===n[1])return{data:s,index:i}}else return{data:s,index:i};else a===" "&&(a=" ");s+=a}}function ka(e,t,n,r){const s=e.indexOf(t,n);if(s===-1)throw new Error(r);return s+t.length-1}function mb(e,t,n,r=">"){const s=QL(e,t+1,r);if(!s)return;let i=s.data;const a=s.index,o=i.search(/\s/);let c=i,l=!0;o!==-1&&(c=i.substring(0,o),i=i.substring(o+1).trimStart());const d=c;if(n){const f=c.indexOf(":");f!==-1&&(c=c.substr(f+1),l=c!==s.data.substr(f+1))}return{tagName:c,tagExp:i,closeIndex:a,attrExpPresent:l,rawTagName:d}}function ZL(e,t,n){const r=n;let s=1;for(;n<e.length;n++)if(e[n]==="<")if(e[n+1]==="/"){const i=ka(e,">",n,`${t} is not closed`);if(e.substring(n+2,i).trim()===t&&(s--,s===0))return{tagContent:e.substring(r,n),i};n=i}else if(e[n+1]==="?")n=ka(e,"?>",n+1,"StopNode is not closed.");else if(e.substr(n+1,3)==="!--")n=ka(e,"-->",n+3,"StopNode is not closed.");else if(e.substr(n+1,2)==="![")n=ka(e,"]]>",n,"StopNode is not closed.")-2;else{const i=mb(e,n,">");i&&((i&&i.tagName)===t&&i.tagExp[i.tagExp.length-1]!=="/"&&s++,n=i.closeIndex)}}function bb(e,t,n){if(t&&typeof e=="string"){const r=e.trim();return r==="true"?!0:r==="false"?!1:OL(e,n)}else return mL(e)?e:""}const _0=Ta.getMetaDataSymbol();function JL(e,t){return PS(e,t)}function PS(e,t,n){let r;const s={};for(let i=0;i<e.length;i++){const a=e[i],o=eM(a);let c="";if(n===void 0?c=o:c=n+"."+o,o===t.textNodeName)r===void 0?r=a[o]:r+=""+a[o];else{if(o===void 0)continue;if(a[o]){let l=PS(a[o],t,c);const d=nM(l,t);a[_0]!==void 0&&(l[_0]=a[_0]),a[":@"]?tM(l,a[":@"],c,t):Object.keys(l).length===1&&l[t.textNodeName]!==void 0&&!t.alwaysCreateTextNode?l=l[t.textNodeName]:Object.keys(l).length===0&&(t.alwaysCreateTextNode?l[t.textNodeName]="":l=""),s[o]!==void 0&&s.hasOwnProperty(o)?(Array.isArray(s[o])||(s[o]=[s[o]]),s[o].push(l)):t.isArray(o,c,d)?s[o]=[l]:s[o]=l}}}return typeof r=="string"?r.length>0&&(s[t.textNodeName]=r):r!==void 0&&(s[t.textNodeName]=r),s}function eM(e){const t=Object.keys(e);for(let n=0;n<t.length;n++){const r=t[n];if(r!==":@")return r}}function tM(e,t,n,r){if(t){const s=Object.keys(t),i=s.length;for(let a=0;a<i;a++){const o=s[a];r.isArray(o,n+"."+o,!0,!0)?e[o]=[t[o]]:e[o]=t[o]}}}function nM(e,t){const{textNodeName:n}=t,r=Object.keys(e).length;return!!(r===0||r===1&&(e[n]||typeof e[n]=="boolean"||e[n]===0))}class rM{constructor(t){this.externalEntities={},this.options=wL(t)}parse(t,n){if(typeof t!="string")if(t.toString)t=t.toString();else throw new Error("XML data is accepted in String or Bytes[] form.");if(n){n===!0&&(n={});const i=gL(t,n);if(i!==!0)throw Error(`${i.err.msg}:${i.err.line}:${i.err.col}`)}const r=new UL(this.options);r.addExternalEntities(this.externalEntities);const s=r.parseXml(t);return this.options.preserveOrder||s===void 0?s:JL(s,this.options)}addEntity(t,n){if(n.indexOf("&")!==-1)throw new Error("Entity value can't have '&'");if(t.indexOf("&")!==-1||t.indexOf(";")!==-1)throw new Error("An entity must be set without '&' and ';'. Eg. use '#xD' for '&#xD;'");if(n==="&")throw new Error("An entity with value '&' is not permitted");this.externalEntities[t]=n}static getMetaDataSymbol(){return Ta.getMetaDataSymbol()}}const ut=(e,t)=>uL(e,t).then(n=>{if(n.length){const r=new rM({attributeNamePrefix:"",htmlEntities:!0,ignoreAttributes:!1,ignoreDeclaration:!0,parseTagValue:!1,trimValues:!1,tagValueProcessor:(c,l)=>l.trim()===""&&l.includes(`
1576
- `)?"":void 0});r.addEntity("#xD","\r"),r.addEntity("#10",`
1577
- `);let s;try{s=r.parse(n,!0)}catch(c){throw c&&typeof c=="object"&&Object.defineProperty(c,"$responseBodyText",{value:n}),c}const i="#text",a=Object.keys(s)[0],o=s[a];return o[i]&&(o[a]=o[i],delete o[i]),IS(o)}return{}}),sM=async(e,t)=>{const n=await ut(e,t);return n.Error&&(n.Error.message=n.Error.message??n.Error.Message),n},iM=(e,t)=>{if(t?.Error?.Code!==void 0)return t.Error.Code;if(t?.Code!==void 0)return t.Code;if(e.statusCode==404)return"NotFound"};function aM(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")}function oM(e){return e.replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&apos;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/\r/g,"&#x0D;").replace(/\n/g,"&#x0A;").replace(/\u0085/g,"&#x85;").replace(/\u2028/,"&#x2028;")}class cp{value;constructor(t){this.value=t}toString(){return oM(""+this.value)}}class M{name;children;attributes={};static of(t,n,r){const s=new M(t);return n!==void 0&&s.addChildNode(new cp(n)),r!==void 0&&s.withName(r),s}constructor(t,n=[]){this.name=t,this.children=n}withName(t){return this.name=t,this}addAttribute(t,n){return this.attributes[t]=n,this}addChildNode(t){return this.children.push(t),this}removeAttribute(t){return delete this.attributes[t],this}n(t){return this.name=t,this}c(t){return this.children.push(t),this}a(t,n){return n!=null&&(this.attributes[t]=n),this}cc(t,n,r=n){if(t[n]!=null){const s=M.of(n,t[n]).withName(r);this.c(s)}}l(t,n,r,s){t[n]!=null&&s().map(a=>{a.withName(r),this.c(a)})}lc(t,n,r,s){if(t[n]!=null){const i=s(),a=new M(r);i.map(o=>{a.c(o)}),this.c(a)}}toString(){const t=!!this.children.length;let n=`<${this.name}`;const r=this.attributes;for(const s of Object.keys(r)){const i=r[s];i!=null&&(n+=` ${s}="${aM(""+i)}"`)}return n+=t?`>${this.children.map(s=>s.toString()).join("")}</${this.name}>`:"/>"}}const gb=[ln.CRC32,ln.CRC32C,ln.CRC64NVME,ln.SHA1,ln.SHA256],cM=[ln.SHA256,ln.SHA1,ln.CRC32,ln.CRC32C,ln.CRC64NVME],lM=(e,{requestChecksumRequired:t,requestAlgorithmMember:n,requestChecksumCalculation:r})=>{if(!n)return r===Vc.WHEN_SUPPORTED||t?cb:void 0;if(!e[n])return;const s=e[n];if(!gb.includes(s))throw new Error(`The checksum algorithm "${s}" is not supported by the client. Select one of ${gb}.`);return s},lp=e=>e===ln.MD5?"content-md5":`x-amz-checksum-${e.toLowerCase()}`,uM=(e,t)=>{const n=e.toLowerCase();for(const r of Object.keys(t))if(n===r.toLowerCase())return!0;return!1},dM=(e,t)=>{const n=e.toLowerCase();for(const r of Object.keys(t))if(r.toLowerCase().startsWith(n))return!0;return!1},NS=e=>e!==void 0&&typeof e!="string"&&!ArrayBuffer.isView(e)&&!AS(e);function up(e,t,n,r){function s(i){return i instanceof n?i:new n(function(a){a(i)})}return new(n||(n=Promise))(function(i,a){function o(d){try{l(r.next(d))}catch(f){a(f)}}function c(d){try{l(r.throw(d))}catch(f){a(f)}}function l(d){d.done?i(d.value):s(d.value).then(o,c)}l((r=r.apply(e,t||[])).next())})}function dp(e,t){var n={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},r,s,i,a=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return a.next=o(0),a.throw=o(1),a.return=o(2),typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function o(l){return function(d){return c([l,d])}}function c(l){if(r)throw new TypeError("Generator is already executing.");for(;a&&(a=0,l[0]&&(n=0)),n;)try{if(r=1,s&&(i=l[0]&2?s.return:l[0]?s.throw||((i=s.return)&&i.call(s),0):s.next)&&!(i=i.call(s,l[1])).done)return i;switch(s=0,i&&(l=[l[0]&2,i.value]),l[0]){case 0:case 1:i=l;break;case 4:return n.label++,{value:l[1],done:!1};case 5:n.label++,s=l[1],l=[0];continue;case 7:l=n.ops.pop(),n.trys.pop();continue;default:if(i=n.trys,!(i=i.length>0&&i[i.length-1])&&(l[0]===6||l[0]===2)){n=0;continue}if(l[0]===3&&(!i||l[1]>i[0]&&l[1]<i[3])){n.label=l[1];break}if(l[0]===6&&n.label<i[1]){n.label=i[1],i=l;break}if(i&&n.label<i[2]){n.label=i[2],n.ops.push(l);break}i[2]&&n.ops.pop(),n.trys.pop();continue}l=t.call(e,n)}catch(d){l=[6,d],s=0}finally{r=i=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}}function OS(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}const DS=e=>new TextEncoder().encode(e);var fM=typeof Buffer<"u"&&Buffer.from?function(e){return Buffer.from(e,"utf8")}:DS;function ca(e){return e instanceof Uint8Array?e:typeof e=="string"?fM(e):ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(e)}function Au(e){return typeof e=="string"?e.length===0:e.byteLength===0}function LS(e){return new Uint8Array([(e&4278190080)>>24,(e&16711680)>>16,(e&65280)>>8,e&255])}function MS(e){if(!Uint32Array.from){for(var t=new Uint32Array(e.length),n=0;n<e.length;)t[n]=e[n],n+=1;return t}return Uint32Array.from(e)}var hM=function(){function e(){this.crc32c=new k1}return e.prototype.update=function(t){Au(t)||this.crc32c.update(ca(t))},e.prototype.digest=function(){return up(this,void 0,void 0,function(){return dp(this,function(t){return[2,LS(this.crc32c.digest())]})})},e.prototype.reset=function(){this.crc32c=new k1},e}(),k1=function(){function e(){this.checksum=4294967295}return e.prototype.update=function(t){var n,r;try{for(var s=OS(t),i=s.next();!i.done;i=s.next()){var a=i.value;this.checksum=this.checksum>>>8^bM[(this.checksum^a)&255]}}catch(o){n={error:o}}finally{try{i&&!i.done&&(r=s.return)&&r.call(s)}finally{if(n)throw n.error}}return this},e.prototype.digest=function(){return(this.checksum^4294967295)>>>0},e}(),mM=[0,4067132163,3778769143,324072436,3348797215,904991772,648144872,3570033899,2329499855,2024987596,1809983544,2575936315,1296289744,3207089363,2893594407,1578318884,274646895,3795141740,4049975192,51262619,3619967088,632279923,922689671,3298075524,2592579488,1760304291,2075979607,2312596564,1562183871,2943781820,3156637768,1313733451,549293790,3537243613,3246849577,871202090,3878099393,357341890,102525238,4101499445,2858735121,1477399826,1264559846,3107202533,1845379342,2677391885,2361733625,2125378298,820201905,3263744690,3520608582,598981189,4151959214,85089709,373468761,3827903834,3124367742,1213305469,1526817161,2842354314,2107672161,2412447074,2627466902,1861252501,1098587580,3004210879,2688576843,1378610760,2262928035,1955203488,1742404180,2511436119,3416409459,969524848,714683780,3639785095,205050476,4266873199,3976438427,526918040,1361435347,2739821008,2954799652,1114974503,2529119692,1691668175,2005155131,2247081528,3690758684,697762079,986182379,3366744552,476452099,3993867776,4250756596,255256311,1640403810,2477592673,2164122517,1922457750,2791048317,1412925310,1197962378,3037525897,3944729517,427051182,170179418,4165941337,746937522,3740196785,3451792453,1070968646,1905808397,2213795598,2426610938,1657317369,3053634322,1147748369,1463399397,2773627110,4215344322,153784257,444234805,3893493558,1021025245,3467647198,3722505002,797665321,2197175160,1889384571,1674398607,2443626636,1164749927,3070701412,2757221520,1446797203,137323447,4198817972,3910406976,461344835,3484808360,1037989803,781091935,3705997148,2460548119,1623424788,1939049696,2180517859,1429367560,2807687179,3020495871,1180866812,410100952,3927582683,4182430767,186734380,3756733383,763408580,1053836080,3434856499,2722870694,1344288421,1131464017,2971354706,1708204729,2545590714,2229949006,1988219213,680717673,3673779818,3383336350,1002577565,4010310262,493091189,238226049,4233660802,2987750089,1082061258,1395524158,2705686845,1972364758,2279892693,2494862625,1725896226,952904198,3399985413,3656866545,731699698,4283874585,222117402,510512622,3959836397,3280807620,837199303,582374963,3504198960,68661723,4135334616,3844915500,390545967,1230274059,3141532936,2825850620,1510247935,2395924756,2091215383,1878366691,2644384480,3553878443,565732008,854102364,3229815391,340358836,3861050807,4117890627,119113024,1493875044,2875275879,3090270611,1247431312,2660249211,1828433272,2141937292,2378227087,3811616794,291187481,34330861,4032846830,615137029,3603020806,3314634738,939183345,1776939221,2609017814,2295496738,2058945313,2926798794,1545135305,1330124605,3173225534,4084100981,17165430,307568514,3762199681,888469610,3332340585,3587147933,665062302,2042050490,2346497209,2559330125,1793573966,3190661285,1279665062,1595330642,2910671697],bM=MS(mM),gM=function(){function e(){this.crc32=new $f}return e.prototype.update=function(t){Au(t)||this.crc32.update(ca(t))},e.prototype.digest=function(){return up(this,void 0,void 0,function(){return dp(this,function(t){return[2,LS(this.crc32.digest())]})})},e.prototype.reset=function(){this.crc32=new $f},e}(),$f=function(){function e(){this.checksum=4294967295}return e.prototype.update=function(t){var n,r;try{for(var s=OS(t),i=s.next();!i.done;i=s.next()){var a=i.value;this.checksum=this.checksum>>>8^yM[(this.checksum^a)&255]}}catch(o){n={error:o}}finally{try{i&&!i.done&&(r=s.return)&&r.call(s)}finally{if(n)throw n.error}}return this},e.prototype.digest=function(){return(this.checksum^4294967295)>>>0},e}(),pM=[0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117],yM=MS(pM);const EM=()=>gM,FS=(e,t)=>{switch(e){case ln.MD5:return t.md5;case ln.CRC32:return EM();case ln.CRC32C:return hM;case ln.CRC64NVME:throw new Error(`Please check whether you have installed the "@aws-sdk/crc64-nvme-crt" package explicitly.
1578
- You must also register the package by calling [require("@aws-sdk/crc64-nvme-crt");] or an ESM equivalent such as [import "@aws-sdk/crc64-nvme-crt";].
1579
- For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt`);case ln.SHA1:return t.sha1;case ln.SHA256:return t.sha256;default:throw new Error(`Unsupported checksum algorithm: ${e}`)}},zS=(e,t)=>{const n=new e;return n.update(Kc(t||"")),n.digest()},CM={name:"flexibleChecksumsMiddleware",step:"build",tags:["BODY_CHECKSUM"],override:!0},xM=(e,t)=>(n,r)=>async s=>{if(!Qn.isInstance(s.request)||dM("x-amz-checksum-",s.request.headers))return n(s);const{request:i,input:a}=s,{body:o,headers:c}=i,{base64Encoder:l,streamHasher:d}=e,{requestChecksumRequired:f,requestAlgorithmMember:m}=t,h=await e.requestChecksumCalculation(),b=m?.name,g=m?.httpHeader;b&&!a[b]&&(h===Vc.WHEN_SUPPORTED||f)&&(a[b]=cb,g&&(c[g]=cb));const y=lM(a,{requestChecksumRequired:f,requestAlgorithmMember:m?.name,requestChecksumCalculation:h});let p=o,C=c;if(y){switch(y){case ln.CRC32:Kn(r,"FLEXIBLE_CHECKSUMS_REQ_CRC32","U");break;case ln.CRC32C:Kn(r,"FLEXIBLE_CHECKSUMS_REQ_CRC32C","V");break;case ln.CRC64NVME:Kn(r,"FLEXIBLE_CHECKSUMS_REQ_CRC64","W");break;case ln.SHA1:Kn(r,"FLEXIBLE_CHECKSUMS_REQ_SHA1","X");break;case ln.SHA256:Kn(r,"FLEXIBLE_CHECKSUMS_REQ_SHA256","Y");break}const _=lp(y),S=FS(y,e);if(NS(o)){const{getAwsChunkedEncodingStream:A,bodyLengthChecker:v}=e;p=A(typeof e.requestStreamBufferSize=="number"&&e.requestStreamBufferSize>=8*1024?k5(o,e.requestStreamBufferSize,r.logger):o,{base64Encoder:l,bodyLengthChecker:v,checksumLocationName:_,checksumAlgorithmFn:S,streamHasher:d}),C={...c,"content-encoding":c["content-encoding"]?`${c["content-encoding"]},aws-chunked`:"aws-chunked","transfer-encoding":"chunked","x-amz-decoded-content-length":c["content-length"],"x-amz-content-sha256":"STREAMING-UNSIGNED-PAYLOAD-TRAILER","x-amz-trailer":_},delete C["content-length"]}else if(!uM(_,c)){const A=await zS(S,o);C={...c,[_]:l(A)}}}return await n({...s,request:{...i,headers:C,body:p}})},vM={name:"flexibleChecksumsInputMiddleware",toMiddleware:"serializerMiddleware",relation:"before",tags:["BODY_CHECKSUM"],override:!0},_M=(e,t)=>(n,r)=>async s=>{const i=s.input,{requestValidationModeMember:a}=t,o=await e.requestChecksumCalculation(),c=await e.responseChecksumValidation();switch(o){case Vc.WHEN_REQUIRED:Kn(r,"FLEXIBLE_CHECKSUMS_REQ_WHEN_REQUIRED","a");break;case Vc.WHEN_SUPPORTED:Kn(r,"FLEXIBLE_CHECKSUMS_REQ_WHEN_SUPPORTED","Z");break}switch(c){case m0.WHEN_REQUIRED:Kn(r,"FLEXIBLE_CHECKSUMS_RES_WHEN_REQUIRED","c");break;case m0.WHEN_SUPPORTED:Kn(r,"FLEXIBLE_CHECKSUMS_RES_WHEN_SUPPORTED","b");break}return a&&!i[a]&&c===m0.WHEN_SUPPORTED&&(i[a]="ENABLED"),n(s)},US=(e=[])=>{const t=[];for(const n of cM)!e.includes(n)||!gb.includes(n)||t.push(n);return t},SM=e=>{const t=e.lastIndexOf("-");if(t!==-1){const n=e.slice(t+1);if(!n.startsWith("0")){const r=parseInt(n,10);if(!isNaN(r)&&r>=1&&r<=1e4)return!0}}return!1},TM=async(e,{checksumAlgorithmFn:t,base64Encoder:n})=>n(await zS(t,e)),wM=async(e,{config:t,responseAlgorithms:n,logger:r})=>{const s=US(n),{body:i,headers:a}=e;for(const o of s){const c=lp(o),l=a[c];if(l){let d;try{d=FS(o,t)}catch(h){if(o===ln.CRC64NVME){r?.warn(`Skipping ${ln.CRC64NVME} checksum validation: ${h.message}`);continue}throw h}const{base64Encoder:f}=t;if(NS(i)){e.body=T5({expectedChecksum:l,checksumSourceLocation:c,checksum:new d,source:i,base64Encoder:f});return}const m=await TM(i,{checksumAlgorithmFn:d,base64Encoder:f});if(m===l)break;throw new Error(`Checksum mismatch: expected "${m}" but received "${l}" in response header "${c}".`)}}},AM={name:"flexibleChecksumsResponseMiddleware",toMiddleware:"deserializerMiddleware",relation:"after",tags:["BODY_CHECKSUM"],override:!0},kM=(e,t)=>(n,r)=>async s=>{if(!Qn.isInstance(s.request))return n(s);const i=s.input,a=await n(s),o=a.response,{requestValidationModeMember:c,responseAlgorithms:l}=t;if(c&&i[c]==="ENABLED"){const{clientName:d,commandName:f}=r;if(d==="S3Client"&&f==="GetObjectCommand"&&US(l).every(h=>{const b=lp(h),g=o.headers[b];return!g||SM(g)}))return a;await wM(o,{config:e,responseAlgorithms:l,logger:r.logger})}return a},rn=(e,t)=>({applyToStack:n=>{n.add(xM(e,t),CM),n.addRelativeTo(_M(e,t),vM),n.addRelativeTo(kM(e,t),AM)}}),IM=e=>{const{requestChecksumCalculation:t,responseChecksumValidation:n,requestStreamBufferSize:r}=e;return Object.assign(e,{requestChecksumCalculation:Hs(t??r5),responseChecksumValidation:Hs(n??s5),requestStreamBufferSize:Number(r??0)})};const RM=e=>t=>async n=>{if(!Qn.isInstance(n.request))return t(n);const{request:r}=n,{handlerProtocol:s=""}=e.requestHandler.metadata||{};if(s.indexOf("h2")>=0&&!r.headers[":authority"])delete r.headers.host,r.headers[":authority"]=r.hostname+(r.port?":"+r.port:"");else if(!r.headers.host){let i=r.hostname;r.port!=null&&(i+=`:${r.port}`),r.headers.host=i}return t(n)},BM={name:"hostHeaderMiddleware",step:"build",priority:"low",tags:["HOST"],override:!0},PM=e=>({applyToStack:t=>{t.add(RM(e),BM)}}),NM=()=>(e,t)=>async n=>{try{const r=await e(n),{clientName:s,commandName:i,logger:a,dynamoDbDocumentClientOptions:o={}}=t,{overrideInputFilterSensitiveLog:c,overrideOutputFilterSensitiveLog:l}=o,d=c??t.inputFilterSensitiveLog,f=l??t.outputFilterSensitiveLog,{$metadata:m,...h}=r.output;return a?.info?.({clientName:s,commandName:i,input:d(n.input),output:f(h),metadata:m}),r}catch(r){const{clientName:s,commandName:i,logger:a,dynamoDbDocumentClientOptions:o={}}=t,{overrideInputFilterSensitiveLog:c}=o,l=c??t.inputFilterSensitiveLog;throw a?.error?.({clientName:s,commandName:i,input:l(n.input),error:r,metadata:r.$metadata}),r}},OM={name:"loggerMiddleware",tags:["LOGGER"],step:"initialize",override:!0},DM=e=>({applyToStack:t=>{t.add(NM(),OM)}});var I1={};const S0="X-Amzn-Trace-Id",LM="AWS_LAMBDA_FUNCTION_NAME",MM="_X_AMZN_TRACE_ID",FM=e=>t=>async n=>{const{request:r}=n;if(!Qn.isInstance(r)||e.runtime!=="node")return t(n);const s=Object.keys(r.headers??{}).find(c=>c.toLowerCase()===S0.toLowerCase())??S0;if(r.headers.hasOwnProperty(s))return t(n);const i=I1[LM],a=I1[MM],o=c=>typeof c=="string"&&c.length>0;return o(i)&&o(a)&&(r.headers[S0]=a),t({...n,request:r})},zM={step:"build",tags:["RECURSION_DETECTION"],name:"recursionDetectionMiddleware",override:!0,priority:"low"},UM=e=>({applyToStack:t=>{t.add(FM(e),zM)}}),$M="content-length",HM="x-amz-decoded-content-length";function qM(){return(e,t)=>async n=>{const{request:r}=n;if(Qn.isInstance(r)&&!($M in r.headers)&&!(HM in r.headers)){const s="Are you using a Stream of unknown length as the Body of a PutObject request? Consider using Upload instead from @aws-sdk/lib-storage.";typeof t?.logger?.warn=="function"&&!(t.logger instanceof ip)?t.logger.warn(s):console.warn(s)}return e({...n})}}const jM={step:"finalizeRequest",tags:["CHECK_CONTENT_LENGTH_HEADER"],name:"getCheckContentLengthHeaderPlugin",override:!0},WM=e=>({applyToStack:t=>{t.add(qM(),jM)}}),GM=e=>(t,n)=>async r=>{const s=await e.region(),i=e.region;let a=()=>{};n.__s3RegionRedirect&&(Object.defineProperty(e,"region",{writable:!1,value:async()=>n.__s3RegionRedirect}),a=()=>Object.defineProperty(e,"region",{writable:!0,value:i}));try{const o=await t(r);if(n.__s3RegionRedirect){a();const c=await e.region();if(s!==c)throw new Error("Region was not restored following S3 region redirect.")}return o}catch(o){throw a(),o}},VM={tags:["REGION_REDIRECT","S3"],name:"regionRedirectEndpointMiddleware",override:!0,relation:"before",toMiddleware:"endpointV2Middleware"};function KM(e){return(t,n)=>async r=>{try{return await t(r)}catch(s){if(e.followRegionRedirects&&(s?.$metadata?.httpStatusCode===301||s?.$metadata?.httpStatusCode===400&&s?.name==="IllegalLocationConstraintException")){try{const i=s.$response.headers["x-amz-bucket-region"];n.logger?.debug(`Redirecting from ${await e.region()} to ${i}`),n.__s3RegionRedirect=i}catch(i){throw new Error("Region redirect failed: "+i)}return t(r)}throw s}}}const YM={step:"initialize",tags:["REGION_REDIRECT","S3"],name:"regionRedirectMiddleware",override:!0},XM=e=>({applyToStack:t=>{t.add(KM(e),YM),t.addRelativeTo(GM(e),VM)}}),QM=e=>(t,n)=>async r=>{const s=await t(r),{response:i}=s;if(Eo.isInstance(i)&&i.headers.expires){i.headers.expiresstring=i.headers.expires;try{oa(i.headers.expires)}catch(a){n.logger?.warn(`AWS SDK Warning for ${n.clientName}::${n.commandName} response parsing (${i.headers.expires}): ${a}`),delete i.headers.expires}}return s},ZM={tags:["S3"],name:"s3ExpiresMiddleware",override:!0,relation:"after",toMiddleware:"deserializerMiddleware"},$S=e=>({applyToStack:t=>{t.addRelativeTo(QM(),ZM)}});class fp{data;lastPurgeTime=Date.now();static EXPIRED_CREDENTIAL_PURGE_INTERVAL_MS=3e4;constructor(t={}){this.data=t}get(t){const n=this.data[t];if(n)return n}set(t,n){return this.data[t]=n,n}delete(t){delete this.data[t]}async purgeExpired(){const t=Date.now();if(!(this.lastPurgeTime+fp.EXPIRED_CREDENTIAL_PURGE_INTERVAL_MS>t))for(const n in this.data){const r=this.data[n];if(!r.isRefreshing){const s=await r.identity;s.expiration&&s.expiration.getTime()<t&&delete this.data[n]}}}}class T0{_identity;isRefreshing;accessed;constructor(t,n=!1,r=Date.now()){this._identity=t,this.isRefreshing=n,this.accessed=r}get identity(){return this.accessed=Date.now(),this._identity}}class hp{createSessionFn;cache;static REFRESH_WINDOW_MS=6e4;constructor(t,n=new fp){this.createSessionFn=t,this.cache=n}async getS3ExpressIdentity(t,n){const r=n.Bucket,{cache:s}=this,i=s.get(r);return i?i.identity.then(a=>(a.expiration?.getTime()??0)<Date.now()?s.set(r,new T0(this.getIdentity(r))).identity:((a.expiration?.getTime()??0)<Date.now()+hp.REFRESH_WINDOW_MS&&!i.isRefreshing&&(i.isRefreshing=!0,this.getIdentity(r).then(l=>{s.set(r,new T0(Promise.resolve(l)))})),a)):s.set(r,new T0(this.getIdentity(r))).identity}async getIdentity(t){await this.cache.purgeExpired().catch(s=>{console.warn(`Error while clearing expired entries in S3ExpressIdentityCache:
1580
- `+s)});const n=await this.createSessionFn(t);if(!n.Credentials?.AccessKeyId||!n.Credentials?.SecretAccessKey)throw new Error("s3#createSession response credential missing AccessKeyId or SecretAccessKey.");return{accessKeyId:n.Credentials.AccessKeyId,secretAccessKey:n.Credentials.SecretAccessKey,sessionToken:n.Credentials.SessionToken,expiration:n.Credentials.Expiration?new Date(n.Credentials.Expiration):void 0}}}var R1;(function(e){e.ENV="env",e.CONFIG="shared config entry"})(R1||(R1={}));const JM="Directory",eF="S3Express",tF="sigv4-s3express",pb="X-Amz-S3session-Token",yb=pb.toLowerCase();class nF extends hb{async signWithCredentials(t,n,r){const s=B1(n);t.headers[yb]=n.sessionToken;const i=this;return P1(i,s),i.signRequest(t,r??{})}async presignWithCredentials(t,n,r){const s=B1(n);return delete t.headers[yb],t.headers[pb]=n.sessionToken,t.query=t.query??{},t.query[pb]=n.sessionToken,P1(this,s),this.presign(t,r)}}function B1(e){return{accessKeyId:e.accessKeyId,secretAccessKey:e.secretAccessKey,expiration:e.expiration}}function P1(e,t){const n=setTimeout(()=>{throw new Error("SignatureV4S3Express credential override was created but not called.")},10),r=e.credentialProvider,s=()=>(clearTimeout(n),e.credentialProvider=r,Promise.resolve(t));e.credentialProvider=s}const rF=e=>(t,n)=>async r=>{if(n.endpointV2){const s=n.endpointV2,i=s.properties?.authSchemes?.[0]?.name===tF;if((s.properties?.backend===eF||s.properties?.bucketType===JM)&&(Kn(n,"S3_EXPRESS_BUCKET","J"),n.isS3ExpressBucket=!0),i){const o=r.input.Bucket;if(o){const c=await e.s3ExpressIdentityProvider.getS3ExpressIdentity(await e.credentials(),{Bucket:o});n.s3ExpressIdentity=c,Qn.isInstance(r.request)&&c.sessionToken&&(r.request.headers[yb]=c.sessionToken)}}}return t(r)},sF={name:"s3ExpressMiddleware",step:"build",tags:["S3","S3_EXPRESS"],override:!0},iF=e=>({applyToStack:t=>{t.add(rF(e),sF)}}),aF=async(e,t,n,r)=>{const s=await r.signWithCredentials(n,e,{});if(s.headers["X-Amz-Security-Token"]||s.headers["x-amz-security-token"])throw new Error("X-Amz-Security-Token must not be set for s3-express requests.");return s},oF=e=>t=>{throw t},cF=(e,t)=>{},lF=e=>(t,n)=>async r=>{if(!Qn.isInstance(r.request))return t(r);const i=ol(n).selectedHttpAuthScheme;if(!i)throw new Error("No HttpAuthScheme was selected: unable to sign request");const{httpAuthOption:{signingProperties:a={}},identity:o,signer:c}=i;let l;n.s3ExpressIdentity?l=await aF(n.s3ExpressIdentity,a,r.request,await e.signer()):l=await c.sign(r.request,o,a);const d=await t({...r,request:l}).catch((c.errorHandler||oF)(a));return(c.successHandler||cF)(d.response,a),d},uF=e=>({applyToStack:t=>{t.addRelativeTo(lF(e),fS)}}),dF=(e,{session:t})=>{const[n,r]=t,{forcePathStyle:s,useAccelerateEndpoint:i,disableMultiregionAccessPoints:a,followRegionRedirects:o,s3ExpressIdentityProvider:c,bucketEndpoint:l}=e;return Object.assign(e,{forcePathStyle:s??!1,useAccelerateEndpoint:i??!1,disableMultiregionAccessPoints:a??!1,followRegionRedirects:o??!1,s3ExpressIdentityProvider:c??new hp(async d=>n().send(new r({Bucket:d}))),bucketEndpoint:l??!1})},fF={CopyObjectCommand:!0,UploadPartCopyCommand:!0,CompleteMultipartUploadCommand:!0},hF=3e3,mF=e=>(t,n)=>async r=>{const s=await t(r),{response:i}=s;if(!Eo.isInstance(i))return s;const{statusCode:a,body:o}=i;if(a<200||a>=300||!(typeof o?.stream=="function"||typeof o?.pipe=="function"||typeof o?.tee=="function"))return s;let l=o,d=o;o&&typeof o=="object"&&!(o instanceof Uint8Array)&&([l,d]=await U5(o)),i.body=d;const f=await bF(l,{streamCollector:async h=>P5(h,hF)});typeof l?.destroy=="function"&&l.destroy();const m=e.utf8Encoder(f.subarray(f.length-16));if(f.length===0&&fF[n.commandName]){const h=new Error("S3 aborted request");throw h.name="InternalError",h}return m&&m.endsWith("</Error>")&&(i.statusCode=400),s},bF=(e=new Uint8Array,t)=>e instanceof Uint8Array?Promise.resolve(e):t.streamCollector(e)||Promise.resolve(new Uint8Array),gF={relation:"after",toMiddleware:"deserializerMiddleware",tags:["THROW_200_EXCEPTIONS","S3"],name:"throw200ExceptionsMiddleware",override:!0},Je=e=>({applyToStack:t=>{t.addRelativeTo(mF(e),gF)}}),pF=e=>typeof e=="string"&&e.indexOf("arn:")===0&&e.split(":").length>=6;function yF(e){return(t,n)=>async r=>{if(e.bucketEndpoint){const s=n.endpointV2;if(s){const i=r.input.Bucket;if(typeof i=="string")try{const a=new URL(i);n.endpointV2={...s,url:a}}catch(a){const o=`@aws-sdk/middleware-sdk-s3: bucketEndpoint=true was set but Bucket=${i} could not be parsed as URL.`;throw n.logger?.constructor?.name==="NoOpLogger"?console.warn(o):n.logger?.warn?.(o),a}}}return t(r)}}const EF={name:"bucketEndpointMiddleware",override:!0,relation:"after",toMiddleware:"endpointV2Middleware"};function CF({bucketEndpoint:e}){return t=>async n=>{const{input:{Bucket:r}}=n;if(!e&&typeof r=="string"&&!pF(r)&&r.indexOf("/")>=0){const s=new Error(`Bucket name shouldn't contain '/', received '${r}'`);throw s.name="InvalidBucketName",s}return t({...n})}}const xF={step:"initialize",tags:["VALIDATE_BUCKET_NAME"],name:"validateBucketNameMiddleware",override:!0},vF=e=>({applyToStack:t=>{t.add(CF(e),xF),t.addRelativeTo(yF(e),EF)}}),_F=void 0;function SF(e){return e===void 0?!0:typeof e=="string"&&e.length<=50}function TF(e){const t=cc(e.userAgentAppId??_F),{customUserAgent:n}=e;return Object.assign(e,{customUserAgent:typeof n=="string"?[[n]]:n,userAgentAppId:async()=>{const r=await t();if(!SF(r)){const s=e.logger?.constructor?.name==="NoOpLogger"||!e.logger?console:e.logger;typeof r!="string"?s?.warn("userAgentAppId must be a string or undefined."):r.length>50&&s?.warn("The provided userAgentAppId exceeds the maximum length of 50 characters.")}return r}})}class wF{constructor({size:t,params:n}){this.data=new Map,this.parameters=[],this.capacity=t??50,n&&(this.parameters=n)}get(t,n){const r=this.hash(t);if(r===!1)return n();if(!this.data.has(r)){if(this.data.size>this.capacity+10){const s=this.data.keys();let i=0;for(;;){const{value:a,done:o}=s.next();if(this.data.delete(a),o||++i>10)break}}this.data.set(r,n())}return this.data.get(r)}size(){return this.data.size}hash(t){let n="";const{parameters:r}=this;if(r.length===0)return!1;for(const s of r){const i=String(t[s]??"");if(i.includes("|;"))return!1;n+=i+"|;"}return n}}const AF=new RegExp("^(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}$"),HS=e=>AF.test(e)||e.startsWith("[")&&e.endsWith("]"),kF=new RegExp("^(?!.*-$)(?!-)[a-zA-Z0-9-]{1,63}$"),mp=(e,t=!1)=>{if(!t)return kF.test(e);const n=e.split(".");for(const r of n)if(!mp(r))return!1;return!0},Hf={},ku="endpoints";function la(e){return typeof e!="object"||e==null?e:"ref"in e?`$${la(e.ref)}`:"fn"in e?`${e.fn}(${(e.argv||[]).map(la).join(", ")})`:JSON.stringify(e,null,2)}class gs extends Error{constructor(t){super(t),this.name="EndpointError"}}const IF=(e,t)=>e===t,RF=e=>{const t=e.split("."),n=[];for(const r of t){const s=r.indexOf("[");if(s!==-1){if(r.indexOf("]")!==r.length-1)throw new gs(`Path: '${e}' does not end with ']'`);const i=r.slice(s+1,-1);if(Number.isNaN(parseInt(i)))throw new gs(`Invalid array index: '${i}' in path: '${e}'`);s!==0&&n.push(r.slice(0,s)),n.push(i)}else n.push(r)}return n},qS=(e,t)=>RF(t).reduce((n,r)=>{if(typeof n!="object")throw new gs(`Index '${r}' in '${t}' not found in '${JSON.stringify(e)}'`);return Array.isArray(n)?n[parseInt(r)]:n[r]},e),BF=e=>e!=null,PF=e=>!e,w0={[Tu.HTTP]:80,[Tu.HTTPS]:443},NF=e=>{const t=(()=>{try{if(e instanceof URL)return e;if(typeof e=="object"&&"hostname"in e){const{hostname:m,port:h,protocol:b="",path:g="",query:y={}}=e,p=new URL(`${b}//${m}${h?`:${h}`:""}${g}`);return p.search=Object.entries(y).map(([C,w])=>`${C}=${w}`).join("&"),p}return new URL(e)}catch{return null}})();if(!t)return console.error(`Unable to parse ${JSON.stringify(e)} as a whatwg URL.`),null;const n=t.href,{host:r,hostname:s,pathname:i,protocol:a,search:o}=t;if(o)return null;const c=a.slice(0,-1);if(!Object.values(Tu).includes(c))return null;const l=HS(s),d=n.includes(`${r}:${w0[c]}`)||typeof e=="string"&&e.includes(`${r}:${w0[c]}`),f=`${r}${d?`:${w0[c]}`:""}`;return{scheme:c,authority:f,path:i,normalizedPath:i.endsWith("/")?i:`${i}/`,isIp:l}},OF=(e,t)=>e===t,DF=(e,t,n,r)=>t>=n||e.length<n?null:r?e.substring(e.length-n,e.length-t):e.substring(t,n),LF=e=>encodeURIComponent(e).replace(/[!*'()]/g,t=>`%${t.charCodeAt(0).toString(16).toUpperCase()}`),MF={booleanEquals:IF,getAttr:qS,isSet:BF,isValidHostLabel:mp,not:PF,parseURL:NF,stringEquals:OF,substring:DF,uriEncode:LF},jS=(e,t)=>{const n=[],r={...t.endpointParams,...t.referenceRecord};let s=0;for(;s<e.length;){const i=e.indexOf("{",s);if(i===-1){n.push(e.slice(s));break}n.push(e.slice(s,i));const a=e.indexOf("}",i);if(a===-1){n.push(e.slice(i));break}e[i+1]==="{"&&e[a+1]==="}"&&(n.push(e.slice(i+1,a)),s=a+2);const o=e.substring(i+1,a);if(o.includes("#")){const[c,l]=o.split("#");n.push(qS(r[c],l))}else n.push(r[o]);s=a+1}return n.join("")},FF=({ref:e},t)=>({...t.endpointParams,...t.referenceRecord})[e],kh=(e,t,n)=>{if(typeof e=="string")return jS(e,n);if(e.fn)return WS(e,n);if(e.ref)return FF(e,n);throw new gs(`'${t}': ${String(e)} is not a string, function or reference.`)},WS=({fn:e,argv:t},n)=>{const r=t.map(i=>["boolean","number"].includes(typeof i)?i:kh(i,"arg",n)),s=e.split(".");return s[0]in Hf&&s[1]!=null?Hf[s[0]][s[1]](...r):MF[e](...r)},zF=({assign:e,...t},n)=>{if(e&&e in n.referenceRecord)throw new gs(`'${e}' is already defined in Reference Record.`);const r=WS(t,n);return n.logger?.debug?.(`${ku} evaluateCondition: ${la(t)} = ${la(r)}`),{result:r===""?!0:!!r,...e!=null&&{toAssign:{name:e,value:r}}}},bp=(e=[],t)=>{const n={};for(const r of e){const{result:s,toAssign:i}=zF(r,{...t,referenceRecord:{...t.referenceRecord,...n}});if(!s)return{result:s};i&&(n[i.name]=i.value,t.logger?.debug?.(`${ku} assign: ${i.name} := ${la(i.value)}`))}return{result:!0,referenceRecord:n}},UF=(e,t)=>Object.entries(e).reduce((n,[r,s])=>({...n,[r]:s.map(i=>{const a=kh(i,"Header value entry",t);if(typeof a!="string")throw new gs(`Header '${r}' value '${a}' is not a string`);return a})}),{}),GS=(e,t)=>{if(Array.isArray(e))return e.map(n=>GS(n,t));switch(typeof e){case"string":return jS(e,t);case"object":if(e===null)throw new gs(`Unexpected endpoint property: ${e}`);return VS(e,t);case"boolean":return e;default:throw new gs(`Unexpected endpoint property type: ${typeof e}`)}},VS=(e,t)=>Object.entries(e).reduce((n,[r,s])=>({...n,[r]:GS(s,t)}),{}),$F=(e,t)=>{const n=kh(e,"Endpoint URL",t);if(typeof n=="string")try{return new URL(n)}catch(r){throw console.error(`Failed to construct URL with ${n}`,r),r}throw new gs(`Endpoint URL must be a string, got ${typeof n}`)},HF=(e,t)=>{const{conditions:n,endpoint:r}=e,{result:s,referenceRecord:i}=bp(n,t);if(!s)return;const a={...t,referenceRecord:{...t.referenceRecord,...i}},{url:o,properties:c,headers:l}=r;return t.logger?.debug?.(`${ku} Resolving endpoint from template: ${la(r)}`),{...l!=null&&{headers:UF(l,a)},...c!=null&&{properties:VS(c,a)},url:$F(o,a)}},qF=(e,t)=>{const{conditions:n,error:r}=e,{result:s,referenceRecord:i}=bp(n,t);if(s)throw new gs(kh(r,"Error",{...t,referenceRecord:{...t.referenceRecord,...i}}))},jF=(e,t)=>{const{conditions:n,rules:r}=e,{result:s,referenceRecord:i}=bp(n,t);if(s)return KS(r,{...t,referenceRecord:{...t.referenceRecord,...i}})},KS=(e,t)=>{for(const n of e)if(n.type==="endpoint"){const r=HF(n,t);if(r)return r}else if(n.type==="error")qF(n,t);else if(n.type==="tree"){const r=jF(n,t);if(r)return r}else throw new gs(`Unknown endpoint rule: ${n}`);throw new gs("Rules evaluation failed")},WF=(e,t)=>{const{endpointParams:n,logger:r}=t,{parameters:s,rules:i}=e;t.logger?.debug?.(`${ku} Initial EndpointParams: ${la(n)}`);const a=Object.entries(s).filter(([,l])=>l.default!=null).map(([l,d])=>[l,d.default]);if(a.length>0)for(const[l,d]of a)n[l]=n[l]??d;const o=Object.entries(s).filter(([,l])=>l.required).map(([l])=>l);for(const l of o)if(n[l]==null)throw new gs(`Missing required parameter: '${l}'`);const c=KS(i,{endpointParams:n,logger:r,referenceRecord:{}});return t.logger?.debug?.(`${ku} Resolved endpoint: ${la(c)}`),c},YS=(e,t=!1)=>{if(t){for(const n of e.split("."))if(!YS(n))return!1;return!0}return!(!mp(e)||e.length<3||e.length>63||e!==e.toLowerCase()||HS(e))},N1=":",GF="/",VF=e=>{const t=e.split(N1);if(t.length<6)return null;const[n,r,s,i,a,...o]=t;if(n!=="arn"||r===""||s===""||o.join(N1)==="")return null;const c=o.map(l=>l.split(GF)).flat();return{partition:r,service:s,region:i,accountId:a,resourceId:c}},KF=[{id:"aws",outputs:{dnsSuffix:"amazonaws.com",dualStackDnsSuffix:"api.aws",implicitGlobalRegion:"us-east-1",name:"aws",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^(us|eu|ap|sa|ca|me|af|il|mx)\\-\\w+\\-\\d+$",regions:{"af-south-1":{description:"Africa (Cape Town)"},"ap-east-1":{description:"Asia Pacific (Hong Kong)"},"ap-east-2":{description:"Asia Pacific (Taipei)"},"ap-northeast-1":{description:"Asia Pacific (Tokyo)"},"ap-northeast-2":{description:"Asia Pacific (Seoul)"},"ap-northeast-3":{description:"Asia Pacific (Osaka)"},"ap-south-1":{description:"Asia Pacific (Mumbai)"},"ap-south-2":{description:"Asia Pacific (Hyderabad)"},"ap-southeast-1":{description:"Asia Pacific (Singapore)"},"ap-southeast-2":{description:"Asia Pacific (Sydney)"},"ap-southeast-3":{description:"Asia Pacific (Jakarta)"},"ap-southeast-4":{description:"Asia Pacific (Melbourne)"},"ap-southeast-5":{description:"Asia Pacific (Malaysia)"},"ap-southeast-7":{description:"Asia Pacific (Thailand)"},"aws-global":{description:"AWS Standard global region"},"ca-central-1":{description:"Canada (Central)"},"ca-west-1":{description:"Canada West (Calgary)"},"eu-central-1":{description:"Europe (Frankfurt)"},"eu-central-2":{description:"Europe (Zurich)"},"eu-north-1":{description:"Europe (Stockholm)"},"eu-south-1":{description:"Europe (Milan)"},"eu-south-2":{description:"Europe (Spain)"},"eu-west-1":{description:"Europe (Ireland)"},"eu-west-2":{description:"Europe (London)"},"eu-west-3":{description:"Europe (Paris)"},"il-central-1":{description:"Israel (Tel Aviv)"},"me-central-1":{description:"Middle East (UAE)"},"me-south-1":{description:"Middle East (Bahrain)"},"mx-central-1":{description:"Mexico (Central)"},"sa-east-1":{description:"South America (Sao Paulo)"},"us-east-1":{description:"US East (N. Virginia)"},"us-east-2":{description:"US East (Ohio)"},"us-west-1":{description:"US West (N. California)"},"us-west-2":{description:"US West (Oregon)"}}},{id:"aws-cn",outputs:{dnsSuffix:"amazonaws.com.cn",dualStackDnsSuffix:"api.amazonwebservices.com.cn",implicitGlobalRegion:"cn-northwest-1",name:"aws-cn",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^cn\\-\\w+\\-\\d+$",regions:{"aws-cn-global":{description:"AWS China global region"},"cn-north-1":{description:"China (Beijing)"},"cn-northwest-1":{description:"China (Ningxia)"}}},{id:"aws-us-gov",outputs:{dnsSuffix:"amazonaws.com",dualStackDnsSuffix:"api.aws",implicitGlobalRegion:"us-gov-west-1",name:"aws-us-gov",supportsDualStack:!0,supportsFIPS:!0},regionRegex:"^us\\-gov\\-\\w+\\-\\d+$",regions:{"aws-us-gov-global":{description:"AWS GovCloud (US) global region"},"us-gov-east-1":{description:"AWS GovCloud (US-East)"},"us-gov-west-1":{description:"AWS GovCloud (US-West)"}}},{id:"aws-iso",outputs:{dnsSuffix:"c2s.ic.gov",dualStackDnsSuffix:"c2s.ic.gov",implicitGlobalRegion:"us-iso-east-1",name:"aws-iso",supportsDualStack:!1,supportsFIPS:!0},regionRegex:"^us\\-iso\\-\\w+\\-\\d+$",regions:{"aws-iso-global":{description:"AWS ISO (US) global region"},"us-iso-east-1":{description:"US ISO East"},"us-iso-west-1":{description:"US ISO WEST"}}},{id:"aws-iso-b",outputs:{dnsSuffix:"sc2s.sgov.gov",dualStackDnsSuffix:"sc2s.sgov.gov",implicitGlobalRegion:"us-isob-east-1",name:"aws-iso-b",supportsDualStack:!1,supportsFIPS:!0},regionRegex:"^us\\-isob\\-\\w+\\-\\d+$",regions:{"aws-iso-b-global":{description:"AWS ISOB (US) global region"},"us-isob-east-1":{description:"US ISOB East (Ohio)"}}},{id:"aws-iso-e",outputs:{dnsSuffix:"cloud.adc-e.uk",dualStackDnsSuffix:"cloud.adc-e.uk",implicitGlobalRegion:"eu-isoe-west-1",name:"aws-iso-e",supportsDualStack:!1,supportsFIPS:!0},regionRegex:"^eu\\-isoe\\-\\w+\\-\\d+$",regions:{"aws-iso-e-global":{description:"AWS ISOE (Europe) global region"},"eu-isoe-west-1":{description:"EU ISOE West"}}},{id:"aws-iso-f",outputs:{dnsSuffix:"csp.hci.ic.gov",dualStackDnsSuffix:"csp.hci.ic.gov",implicitGlobalRegion:"us-isof-south-1",name:"aws-iso-f",supportsDualStack:!1,supportsFIPS:!0},regionRegex:"^us\\-isof\\-\\w+\\-\\d+$",regions:{"aws-iso-f-global":{description:"AWS ISOF global region"},"us-isof-east-1":{description:"US ISOF EAST"},"us-isof-south-1":{description:"US ISOF SOUTH"}}},{id:"aws-eusc",outputs:{dnsSuffix:"amazonaws.eu",dualStackDnsSuffix:"amazonaws.eu",implicitGlobalRegion:"eusc-de-east-1",name:"aws-eusc",supportsDualStack:!1,supportsFIPS:!0},regionRegex:"^eusc\\-(de)\\-\\w+\\-\\d+$",regions:{"eusc-de-east-1":{description:"EU (Germany)"}}}],YF={partitions:KF};let XF=YF;const QF=e=>{const{partitions:t}=XF;for(const r of t){const{regions:s,outputs:i}=r;for(const[a,o]of Object.entries(s))if(a===e)return{...i,...o}}for(const r of t){const{regionRegex:s,outputs:i}=r;if(new RegExp(s).test(e))return{...i}}const n=t.find(r=>r.id==="aws");if(!n)throw new Error("Provided region was not found in the partition array or regex, and default partition with id 'aws' doesn't exist.");return{...n.outputs}},XS={isVirtualHostableS3Bucket:YS,parseArn:VF,partition:QF};Hf.aws=XS;function ZF(e){const t={};if(e=e.replace(/^\?/,""),e)for(const n of e.split("&")){let[r,s=null]=n.split("=");r=decodeURIComponent(r),s&&(s=decodeURIComponent(s)),r in t?Array.isArray(t[r])?t[r].push(s):t[r]=[t[r],s]:t[r]=s}return t}const qf=e=>{if(typeof e=="string")return qf(new URL(e));const{hostname:t,pathname:n,port:r,protocol:s,search:i}=e;let a;return i&&(a=ZF(i)),{hostname:t,port:r?parseInt(r):void 0,protocol:s,path:n,query:a}},JF=/\d{12}\.ddb/;async function e9(e,t,n){if(n.request?.headers?.["smithy-protocol"]==="rpc-v2-cbor"&&Kn(e,"PROTOCOL_RPC_V2_CBOR","M"),typeof t.retryStrategy=="function"){const i=await t.retryStrategy();typeof i.acquireInitialRetryToken=="function"?i.constructor?.name?.includes("Adaptive")?Kn(e,"RETRY_MODE_ADAPTIVE","F"):Kn(e,"RETRY_MODE_STANDARD","E"):Kn(e,"RETRY_MODE_LEGACY","D")}if(typeof t.accountIdEndpointMode=="function"){const i=e.endpointV2;switch(String(i?.url?.hostname).match(JF)&&Kn(e,"ACCOUNT_ID_ENDPOINT","O"),await t.accountIdEndpointMode?.()){case"disabled":Kn(e,"ACCOUNT_ID_MODE_DISABLED","Q");break;case"preferred":Kn(e,"ACCOUNT_ID_MODE_PREFERRED","P");break;case"required":Kn(e,"ACCOUNT_ID_MODE_REQUIRED","R");break}}const s=e.__smithy_context?.selectedHttpAuthScheme?.identity;if(s?.$source){const i=s;i.accountId&&Kn(e,"RESOLVED_ACCOUNT_ID","T");for(const[a,o]of Object.entries(i.$source??{}))Kn(e,a,o)}}const O1="user-agent",A0="x-amz-user-agent",D1=" ",k0="/",t9=/[^\!\$\%\&\'\*\+\-\.\^\_\`\|\~\d\w]/g,n9=/[^\!\$\%\&\'\*\+\-\.\^\_\`\|\~\d\w\#]/g,L1="-",r9=1024;function s9(e){let t="";for(const n in e){const r=e[n];if(t.length+r.length+1<=r9){t.length?t+=","+r:t+=r;continue}break}return t}const i9=e=>(t,n)=>async r=>{const{request:s}=r;if(!Qn.isInstance(s))return t(r);const{headers:i}=s,a=n?.userAgent?.map(gd)||[],o=(await e.defaultUserAgentProvider()).map(gd);await e9(n,e,r);const c=n;o.push(`m/${s9(Object.assign({},n.__smithy_context?.features,c.__aws_sdk_context?.features))}`);const l=e?.customUserAgent?.map(gd)||[],d=await e.userAgentAppId();d&&o.push(gd([`app/${d}`]));const f=[].concat([...o,...a,...l]).join(D1),m=[...o.filter(h=>h.startsWith("aws-sdk-")),...l].join(D1);return e.runtime!=="browser"?(m&&(i[A0]=i[A0]?`${i[O1]} ${m}`:m),i[O1]=f):i[A0]=f,t({...r,request:s})},gd=e=>{const t=e[0].split(k0).map(a=>a.replace(t9,L1)).join(k0),n=e[1]?.replace(n9,L1),r=t.indexOf(k0),s=t.substring(0,r);let i=t.substring(r+1);return s==="api"&&(i=i.toLowerCase()),[s,i,n].filter(a=>a&&a.length>0).reduce((a,o,c)=>{switch(c){case 0:return o;case 1:return`${a}/${o}`;default:return`${a}#${o}`}},"")},a9={name:"getUserAgentMiddleware",step:"build",priority:"low",tags:["SET_USER_AGENT","USER_AGENT"],override:!0},o9=e=>({applyToStack:t=>{t.add(i9(e),a9)}}),c9=!1,l9=!1,QS=e=>typeof e=="string"&&(e.startsWith("fips-")||e.endsWith("-fips")),M1=e=>QS(e)?["fips-aws-global","aws-fips"].includes(e)?"us-east-1":e.replace(/fips-(dkr-|prod-)?|-fips/,""):e,u9=e=>{const{region:t,useFipsEndpoint:n}=e;if(!t)throw new Error("Region is missing");return Object.assign(e,{region:async()=>{if(typeof t=="string")return M1(t);const r=await t();return M1(r)},useFipsEndpoint:async()=>{const r=typeof t=="string"?t:await t();return QS(r)?!0:typeof n!="function"?Promise.resolve(!!n):n()}})},d9=e=>Object.assign(e,{eventStreamMarshaller:e.eventStreamSerdeProvider(e)}),F1="content-length";function f9(e){return t=>async n=>{const r=n.request;if(Qn.isInstance(r)){const{body:s,headers:i}=r;if(s&&Object.keys(i).map(a=>a.toLowerCase()).indexOf(F1)===-1)try{const a=e(s);r.headers={...r.headers,[F1]:String(a)}}catch{}}return t({...n,request:r})}}const h9={step:"build",tags:["SET_CONTENT_LENGTH","CONTENT_LENGTH"],name:"contentLengthMiddleware",override:!0},m9=e=>({applyToStack:t=>{t.add(f9(e.bodyLengthChecker),h9)}}),b9=async e=>{const t=e?.Bucket||"";if(typeof e.Bucket=="string"&&(e.Bucket=t.replace(/#/g,encodeURIComponent("#")).replace(/\?/g,encodeURIComponent("?"))),C9(t)){if(e.ForcePathStyle===!0)throw new Error("Path-style addressing cannot be used with ARN buckets")}else(!E9(t)||t.indexOf(".")!==-1&&!String(e.Endpoint).startsWith("http:")||t.toLowerCase()!==t||t.length<3)&&(e.ForcePathStyle=!0);return e.DisableMultiRegionAccessPoints&&(e.disableMultiRegionAccessPoints=!0,e.DisableMRAP=!0),e},g9=/^[a-z0-9][a-z0-9\.\-]{1,61}[a-z0-9]$/,p9=/(\d+\.){3}\d+/,y9=/\.\./,E9=e=>g9.test(e)&&!p9.test(e)&&!y9.test(e),C9=e=>{const[t,n,r,,,s]=e.split(":"),i=t==="arn"&&e.split(":").length>=6,a=!!(i&&n&&r&&s);if(i&&!a)throw new Error(`Invalid ARN: ${e} was an invalid ARN.`);return a},x9=(e,t,n)=>{const r=async()=>{const s=n[e]??n[t];return typeof s=="function"?s():s};return e==="credentialScope"||t==="CredentialScope"?async()=>{const s=typeof n.credentials=="function"?await n.credentials():n.credentials;return s?.credentialScope??s?.CredentialScope}:e==="accountId"||t==="AccountId"?async()=>{const s=typeof n.credentials=="function"?await n.credentials():n.credentials;return s?.accountId??s?.AccountId}:e==="endpoint"||t==="endpoint"?async()=>{if(n.isCustomEndpoint===!1)return;const s=await r();if(s&&typeof s=="object"){if("url"in s)return s.url.href;if("hostname"in s){const{protocol:i,hostname:a,port:o,path:c}=s;return`${i}//${a}${o?":"+o:""}${c}`}}return s}:r},ZS=async e=>{},JS=e=>typeof e=="object"?"url"in e?qf(e.url):e:qf(e),v9=async(e,t,n,r)=>{if(!n.isCustomEndpoint){let a;n.serviceConfiguredEndpoint?a=await n.serviceConfiguredEndpoint():a=await ZS(n.serviceId),a&&(n.endpoint=()=>Promise.resolve(JS(a)),n.isCustomEndpoint=!0)}const s=await eT(e,t,n);if(typeof n.endpointProvider!="function")throw new Error("config.endpointProvider is not set.");return n.endpointProvider(s,r)},eT=async(e,t,n)=>{const r={},s=t?.getEndpointParameterInstructions?.()||{};for(const[i,a]of Object.entries(s))switch(a.type){case"staticContextParams":r[i]=a.value;break;case"contextParams":r[i]=e[a.name];break;case"clientContextParams":case"builtInParams":r[i]=await x9(a.name,i,n)();break;case"operationContextParams":r[i]=a.get(e);break;default:throw new Error("Unrecognized endpoint parameter instruction: "+JSON.stringify(a))}return Object.keys(s).length===0&&Object.assign(r,n),String(n.serviceId).toLowerCase()==="s3"&&await b9(r),r},_9=({config:e,instructions:t})=>(n,r)=>async s=>{e.isCustomEndpoint&&f8(r,"ENDPOINT_OVERRIDE","N");const i=await v9(s.input,{getEndpointParameterInstructions(){return t}},{...e},r);r.endpointV2=i,r.authSchemes=i.properties?.authSchemes;const a=r.authSchemes?.[0];if(a){r.signing_region=a.signingRegion,r.signing_service=a.signingName;const c=ol(r)?.selectedHttpAuthScheme?.httpAuthOption;c&&(c.signingProperties=Object.assign(c.signingProperties||{},{signing_region:a.signingRegion,signingRegion:a.signingRegion,signing_service:a.signingName,signingName:a.signingName,signingRegionSet:a.signingRegionSet},a.properties))}return n({...s})},S9={step:"serialize",tags:["ENDPOINT_PARAMETERS","ENDPOINT_V2","ENDPOINT"],name:"endpointV2Middleware",override:!0,relation:"before",toMiddleware:dS.name},ve=(e,t)=>({applyToStack:n=>{n.addRelativeTo(_9({config:e,instructions:t}),S9)}}),T9=e=>{const t=e.tls??!0,{endpoint:n,useDualstackEndpoint:r,useFipsEndpoint:s}=e,i=n!=null?async()=>JS(await Hs(n)()):void 0,o=Object.assign(e,{endpoint:i,tls:t,isCustomEndpoint:!!n,useDualstackEndpoint:Hs(r??!1),useFipsEndpoint:Hs(s??!1)});let c;return o.serviceConfiguredEndpoint=async()=>(e.serviceId&&!c&&(c=ZS(e.serviceId)),c),o};var Yc;(function(e){e.STANDARD="standard",e.ADAPTIVE="adaptive"})(Yc||(Yc={}));const jf=3,w9=Yc.STANDARD,A9=["BandwidthLimitExceeded","EC2ThrottledException","LimitExceededException","PriorRequestNotComplete","ProvisionedThroughputExceededException","RequestLimitExceeded","RequestThrottled","RequestThrottledException","SlowDown","ThrottledException","Throttling","ThrottlingException","TooManyRequestsException","TransactionInProgressException"],k9=["TimeoutError","RequestTimeout","RequestTimeoutException"],I9=[500,502,503,504],R9=["ECONNRESET","ECONNREFUSED","EPIPE","ETIMEDOUT"],B9=["EHOSTUNREACH","ENETUNREACH","ENOTFOUND"],P9=e=>e.$metadata?.clockSkewCorrected,N9=e=>{const t=new Set(["Failed to fetch","NetworkError when attempting to fetch resource","The Internet connection appears to be offline","Load failed","Network request failed"]);return e&&e instanceof TypeError?t.has(e.message):!1},tT=e=>e.$metadata?.httpStatusCode===429||A9.includes(e.name)||e.$retryable?.throttling==!0,gp=(e,t=0)=>P9(e)||k9.includes(e.name)||R9.includes(e?.code||"")||B9.includes(e?.code||"")||I9.includes(e.$metadata?.httpStatusCode||0)||N9(e)||e.cause!==void 0&&t<=10&&gp(e.cause,t+1),O9=e=>{if(e.$metadata?.httpStatusCode!==void 0){const t=e.$metadata.httpStatusCode;return 500<=t&&t<=599&&!gp(e)}return!1};class Ih{constructor(t){this.currentCapacity=0,this.enabled=!1,this.lastMaxRate=0,this.measuredTxRate=0,this.requestCount=0,this.lastTimestamp=0,this.timeWindow=0,this.beta=t?.beta??.7,this.minCapacity=t?.minCapacity??1,this.minFillRate=t?.minFillRate??.5,this.scaleConstant=t?.scaleConstant??.4,this.smooth=t?.smooth??.8;const n=this.getCurrentTimeInSeconds();this.lastThrottleTime=n,this.lastTxRateBucket=Math.floor(this.getCurrentTimeInSeconds()),this.fillRate=this.minFillRate,this.maxCapacity=this.minCapacity}getCurrentTimeInSeconds(){return Date.now()/1e3}async getSendToken(){return this.acquireTokenBucket(1)}async acquireTokenBucket(t){if(this.enabled){if(this.refillTokenBucket(),t>this.currentCapacity){const n=(t-this.currentCapacity)/this.fillRate*1e3;await new Promise(r=>Ih.setTimeoutFn(r,n))}this.currentCapacity=this.currentCapacity-t}}refillTokenBucket(){const t=this.getCurrentTimeInSeconds();if(!this.lastTimestamp){this.lastTimestamp=t;return}const n=(t-this.lastTimestamp)*this.fillRate;this.currentCapacity=Math.min(this.maxCapacity,this.currentCapacity+n),this.lastTimestamp=t}updateClientSendingRate(t){let n;if(this.updateMeasuredRate(),tT(t)){const s=this.enabled?Math.min(this.measuredTxRate,this.fillRate):this.measuredTxRate;this.lastMaxRate=s,this.calculateTimeWindow(),this.lastThrottleTime=this.getCurrentTimeInSeconds(),n=this.cubicThrottle(s),this.enableTokenBucket()}else this.calculateTimeWindow(),n=this.cubicSuccess(this.getCurrentTimeInSeconds());const r=Math.min(n,2*this.measuredTxRate);this.updateTokenBucketRate(r)}calculateTimeWindow(){this.timeWindow=this.getPrecise(Math.pow(this.lastMaxRate*(1-this.beta)/this.scaleConstant,1/3))}cubicThrottle(t){return this.getPrecise(t*this.beta)}cubicSuccess(t){return this.getPrecise(this.scaleConstant*Math.pow(t-this.lastThrottleTime-this.timeWindow,3)+this.lastMaxRate)}enableTokenBucket(){this.enabled=!0}updateTokenBucketRate(t){this.refillTokenBucket(),this.fillRate=Math.max(t,this.minFillRate),this.maxCapacity=Math.max(t,this.minCapacity),this.currentCapacity=Math.min(this.currentCapacity,this.maxCapacity)}updateMeasuredRate(){const t=this.getCurrentTimeInSeconds(),n=Math.floor(t*2)/2;if(this.requestCount++,n>this.lastTxRateBucket){const r=this.requestCount/(n-this.lastTxRateBucket);this.measuredTxRate=this.getPrecise(r*this.smooth+this.measuredTxRate*(1-this.smooth)),this.requestCount=0,this.lastTxRateBucket=n}}getPrecise(t){return parseFloat(t.toFixed(8))}}Ih.setTimeoutFn=setTimeout;const Eb=100,nT=20*1e3,D9=500,z1=500,L9=5,M9=10,F9=1,z9="amz-sdk-invocation-id",U9="amz-sdk-request",$9=()=>{let e=Eb;return{computeNextBackoffDelay:r=>Math.floor(Math.min(nT,Math.random()*2**r*e)),setDelayBase:r=>{e=r}}},U1=({retryDelay:e,retryCount:t,retryCost:n})=>({getRetryCount:()=>t,getRetryDelay:()=>Math.min(nT,e),getRetryCost:()=>n});class rT{constructor(t){this.maxAttempts=t,this.mode=Yc.STANDARD,this.capacity=z1,this.retryBackoffStrategy=$9(),this.maxAttemptsProvider=typeof t=="function"?t:async()=>t}async acquireInitialRetryToken(t){return U1({retryDelay:Eb,retryCount:0})}async refreshRetryTokenForRetry(t,n){const r=await this.getMaxAttempts();if(this.shouldRetry(t,n,r)){const s=n.errorType;this.retryBackoffStrategy.setDelayBase(s==="THROTTLING"?D9:Eb);const i=this.retryBackoffStrategy.computeNextBackoffDelay(t.getRetryCount()),a=n.retryAfterHint?Math.max(n.retryAfterHint.getTime()-Date.now()||0,i):i,o=this.getCapacityCost(s);return this.capacity-=o,U1({retryDelay:a,retryCount:t.getRetryCount()+1,retryCost:o})}throw new Error("No retry token available")}recordSuccess(t){this.capacity=Math.max(z1,this.capacity+(t.getRetryCost()??F9))}getCapacity(){return this.capacity}async getMaxAttempts(){try{return await this.maxAttemptsProvider()}catch{return console.warn(`Max attempts provider could not resolve. Using default of ${jf}`),jf}}shouldRetry(t,n,r){return t.getRetryCount()+1<r&&this.capacity>=this.getCapacityCost(n.errorType)&&this.isRetryableError(n.errorType)}getCapacityCost(t){return t==="TRANSIENT"?M9:L9}isRetryableError(t){return t==="THROTTLING"||t==="TRANSIENT"}}class H9{constructor(t,n){this.maxAttemptsProvider=t,this.mode=Yc.ADAPTIVE;const{rateLimiter:r}=n??{};this.rateLimiter=r??new Ih,this.standardRetryStrategy=new rT(t)}async acquireInitialRetryToken(t){return await this.rateLimiter.getSendToken(),this.standardRetryStrategy.acquireInitialRetryToken(t)}async refreshRetryTokenForRetry(t,n){return this.rateLimiter.updateClientSendingRate(n),this.standardRetryStrategy.refreshRetryTokenForRetry(t,n)}recordSuccess(t){this.rateLimiter.updateClientSendingRate({}),this.standardRetryStrategy.recordSuccess(t)}}const q9=e=>e instanceof Error?e:e instanceof Object?Object.assign(new Error,e):typeof e=="string"?new Error(e):new Error(`AWS SDK error wrapper for ${e}`),j9=e=>{const{retryStrategy:t,retryMode:n,maxAttempts:r}=e,s=Hs(r??jf);return Object.assign(e,{maxAttempts:s,retryStrategy:async()=>t||(await Hs(n)()===Yc.ADAPTIVE?new H9(s):new rT(s))})},W9=e=>e?.body instanceof ReadableStream,G9=e=>(t,n)=>async r=>{let s=await e.retryStrategy();const i=await e.maxAttempts();if(V9(s)){s=s;let a=await s.acquireInitialRetryToken(n.partition_id),o=new Error,c=0,l=0;const{request:d}=r,f=Qn.isInstance(d);for(f&&(d.headers[z9]=ES());;)try{f&&(d.headers[U9]=`attempt=${c+1}; max=${i}`);const{response:m,output:h}=await t(r);return s.recordSuccess(a),h.$metadata.attempts=c+1,h.$metadata.totalRetryDelay=l,{response:m,output:h}}catch(m){const h=K9(m);if(o=q9(m),f&&W9(d))throw(n.logger instanceof ip?console:n.logger)?.warn("An error was encountered in a non-retryable streaming request."),o;try{a=await s.refreshRetryTokenForRetry(a,h)}catch{throw o.$metadata||(o.$metadata={}),o.$metadata.attempts=c+1,o.$metadata.totalRetryDelay=l,o}c=a.getRetryCount();const b=a.getRetryDelay();l+=b,await new Promise(g=>setTimeout(g,b))}}else return s=s,s?.mode&&(n.userAgent=[...n.userAgent||[],["cfg/retry-mode",s.mode]]),s.retry(t,r)},V9=e=>typeof e.acquireInitialRetryToken<"u"&&typeof e.refreshRetryTokenForRetry<"u"&&typeof e.recordSuccess<"u",K9=e=>{const t={error:e,errorType:Y9(e)},n=Z9(e.$response);return n&&(t.retryAfterHint=n),t},Y9=e=>tT(e)?"THROTTLING":gp(e)?"TRANSIENT":O9(e)?"SERVER_ERROR":"CLIENT_ERROR",X9={name:"retryMiddleware",tags:["RETRY"],step:"finalizeRequest",priority:"high",override:!0},Q9=e=>({applyToStack:t=>{t.add(G9(e),X9)}}),Z9=e=>{if(!Eo.isInstance(e))return;const t=Object.keys(e.headers).find(i=>i.toLowerCase()==="retry-after");if(!t)return;const n=e.headers[t],r=Number(n);return Number.isNaN(r)?new Date(n):new Date(r*1e3)};class sT{sigv4aSigner;sigv4Signer;signerOptions;static sigv4aDependency(){return"none"}constructor(t){this.sigv4Signer=new nF(t),this.signerOptions=t}async sign(t,n={}){return n.signingRegion==="*"?this.getSigv4aSigner().sign(t,n):this.sigv4Signer.sign(t,n)}async signWithCredentials(t,n,r={}){if(r.signingRegion==="*")throw this.getSigv4aSigner(),new Error(`signWithCredentials with signingRegion '*' is only supported when using the CRT dependency @aws-sdk/signature-v4-crt. Please check whether you have installed the "@aws-sdk/signature-v4-crt" package explicitly. You must also register the package by calling [require("@aws-sdk/signature-v4-crt");] or an ESM equivalent such as [import "@aws-sdk/signature-v4-crt";]. For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt`);return this.sigv4Signer.signWithCredentials(t,n,r)}async presign(t,n={}){if(n.signingRegion==="*")throw this.getSigv4aSigner(),new Error(`presign with signingRegion '*' is only supported when using the CRT dependency @aws-sdk/signature-v4-crt. Please check whether you have installed the "@aws-sdk/signature-v4-crt" package explicitly. You must also register the package by calling [require("@aws-sdk/signature-v4-crt");] or an ESM equivalent such as [import "@aws-sdk/signature-v4-crt";]. For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt`);return this.sigv4Signer.presign(t,n)}async presignWithCredentials(t,n,r={}){if(r.signingRegion==="*")throw new Error("Method presignWithCredentials is not supported for [signingRegion=*].");return this.sigv4Signer.presignWithCredentials(t,n,r)}getSigv4aSigner(){if(!this.sigv4aSigner)throw this.signerOptions.runtime==="node"?new Error("Neither CRT nor JS SigV4a implementation is available. Please load either @aws-sdk/signature-v4-crt or @aws-sdk/signature-v4a. For more information please go to https://github.com/aws/aws-sdk-js-v3#functionality-requiring-aws-common-runtime-crt"):new Error("JS SigV4a implementation is not available or not a valid constructor. Please check whether you have installed the @aws-sdk/signature-v4a package explicitly. The CRT implementation is not available for browsers. You must also register the package by calling [require('@aws-sdk/signature-v4a');] or an ESM equivalent such as [import '@aws-sdk/signature-v4a';]. For more information please go to https://github.com/aws/aws-sdk-js-v3#using-javascript-non-crt-implementation-of-sigv4a");return this.sigv4aSigner}}const pp="required",B="type",le="rules",H="conditions",te="fn",ne="argv",Ze="ref",Ct="assign",qe="url",je="properties",Ia="backend",Br="authSchemes",gr="disableDoubleEncoding",pr="signingName",Wr="signingRegion",We="headers",yp="signingRegionSet",J9=6,ez=!1,ei=!0,hs="isSet",qn="booleanEquals",$e="error",Wf="aws.partition",Lt="stringEquals",In="getAttr",Hn="name",cn="substring",$1="bucketSuffix",Ep="parseURL",Te="endpoint",ue="tree",Gf="aws.isVirtualHostableS3Bucket",Vf="{url#scheme}://{Bucket}.{url#authority}{url#path}",ui="not",H1="accessPointSuffix",Ld="{url#scheme}://{url#authority}{url#path}",iT="hardwareType",aT="regionPrefix",q1="bucketAliasSuffix",Cb="outpostId",Io="isValidHostLabel",Cp="sigv4a",Iu="s3-outposts",Xc="s3",oT="{url#scheme}://{url#authority}{url#normalizedPath}{Bucket}",cT="https://{Bucket}.s3-accelerate.{partitionResult#dnsSuffix}",j1="https://{Bucket}.s3.{partitionResult#dnsSuffix}",lT="aws.parseArn",uT="bucketArn",dT="arnType",Kf="",xp="s3-object-lambda",fT="accesspoint",vp="accessPointName",W1="{url#scheme}://{accessPointName}-{bucketArn#accountId}.{url#authority}{url#path}",G1="mrapPartition",V1="outpostType",K1="arnPrefix",hT="{url#scheme}://{url#authority}{url#normalizedPath}{uri_encoded_bucket}",Y1="https://s3.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",X1="https://s3.{partitionResult#dnsSuffix}",Vo={[pp]:!1,[B]:"String"},Ko={[pp]:!0,default:!1,[B]:"Boolean"},ql={[pp]:!1,[B]:"Boolean"},_s={[te]:qn,[ne]:[{[Ze]:"Accelerate"},!0]},yn={[te]:qn,[ne]:[{[Ze]:"UseFIPS"},!0]},an={[te]:qn,[ne]:[{[Ze]:"UseDualStack"},!0]},zn={[te]:hs,[ne]:[{[Ze]:"Endpoint"}]},mT={[te]:Wf,[ne]:[{[Ze]:"Region"}],[Ct]:"partitionResult"},Q1={[te]:Lt,[ne]:[{[te]:In,[ne]:[{[Ze]:"partitionResult"},Hn]},"aws-cn"]},au={[te]:hs,[ne]:[{[Ze]:"Bucket"}]},Dt={[Ze]:"Bucket"},Z1={[H]:[an],[$e]:"S3Express does not support Dual-stack.",[B]:$e},J1={[H]:[_s],[$e]:"S3Express does not support S3 Accelerate.",[B]:$e},eC={[H]:[zn,{[te]:Ep,[ne]:[{[Ze]:"Endpoint"}],[Ct]:"url"}],[le]:[{[H]:[{[te]:hs,[ne]:[{[Ze]:"DisableS3ExpressSessionAuth"}]},{[te]:qn,[ne]:[{[Ze]:"DisableS3ExpressSessionAuth"},!0]}],[le]:[{[H]:[{[te]:qn,[ne]:[{[te]:In,[ne]:[{[Ze]:"url"},"isIp"]},!0]}],[le]:[{[H]:[{[te]:"uriEncode",[ne]:[Dt],[Ct]:"uri_encoded_bucket"}],[le]:[{[Te]:{[qe]:"{url#scheme}://{url#authority}/{uri_encoded_bucket}{url#path}",[je]:{[Ia]:"S3Express",[Br]:[{[gr]:!0,[Hn]:"sigv4",[pr]:"s3express",[Wr]:"{Region}"}]},[We]:{}},[B]:Te}],[B]:ue}],[B]:ue},{[H]:[{[te]:Gf,[ne]:[Dt,!1]}],[le]:[{[Te]:{[qe]:Vf,[je]:{[Ia]:"S3Express",[Br]:[{[gr]:!0,[Hn]:"sigv4",[pr]:"s3express",[Wr]:"{Region}"}]},[We]:{}},[B]:Te}],[B]:ue},{[$e]:"S3Express bucket name is not a valid virtual hostable name.",[B]:$e}],[B]:ue},{[H]:[{[te]:qn,[ne]:[{[te]:In,[ne]:[{[Ze]:"url"},"isIp"]},!0]}],[le]:[{[H]:[{[te]:"uriEncode",[ne]:[Dt],[Ct]:"uri_encoded_bucket"}],[le]:[{[Te]:{[qe]:"{url#scheme}://{url#authority}/{uri_encoded_bucket}{url#path}",[je]:{[Ia]:"S3Express",[Br]:[{[gr]:!0,[Hn]:"sigv4-s3express",[pr]:"s3express",[Wr]:"{Region}"}]},[We]:{}},[B]:Te}],[B]:ue}],[B]:ue},{[H]:[{[te]:Gf,[ne]:[Dt,!1]}],[le]:[{[Te]:{[qe]:Vf,[je]:{[Ia]:"S3Express",[Br]:[{[gr]:!0,[Hn]:"sigv4-s3express",[pr]:"s3express",[Wr]:"{Region}"}]},[We]:{}},[B]:Te}],[B]:ue},{[$e]:"S3Express bucket name is not a valid virtual hostable name.",[B]:$e}],[B]:ue},Hr={[te]:Ep,[ne]:[{[Ze]:"Endpoint"}],[Ct]:"url"},I0={[te]:qn,[ne]:[{[te]:In,[ne]:[{[Ze]:"url"},"isIp"]},!0]},bT={[Ze]:"url"},gT={[te]:"uriEncode",[ne]:[Dt],[Ct]:"uri_encoded_bucket"},Aa={[Ia]:"S3Express",[Br]:[{[gr]:!0,[Hn]:"sigv4",[pr]:"s3express",[Wr]:"{Region}"}]},pt={},pT={[te]:Gf,[ne]:[Dt,!1]},tC={[$e]:"S3Express bucket name is not a valid virtual hostable name.",[B]:$e},nC={[te]:hs,[ne]:[{[Ze]:"UseS3ExpressControlEndpoint"}]},rC={[te]:qn,[ne]:[{[Ze]:"UseS3ExpressControlEndpoint"},!0]},yt={[te]:ui,[ne]:[zn]},pd={[$e]:"Unrecognized S3Express bucket name format.",[B]:$e},sC={[te]:ui,[ne]:[au]},iC={[Ze]:iT},aC={[H]:[yt],[$e]:"Expected a endpoint to be specified but no endpoint was found",[B]:$e},yd={[Br]:[{[gr]:!0,[Hn]:Cp,[pr]:Iu,[yp]:["*"]},{[gr]:!0,[Hn]:"sigv4",[pr]:Iu,[Wr]:"{Region}"}]},R0={[te]:qn,[ne]:[{[Ze]:"ForcePathStyle"},!1]},tz={[Ze]:"ForcePathStyle"},Vn={[te]:qn,[ne]:[{[Ze]:"Accelerate"},!1]},er={[te]:Lt,[ne]:[{[Ze]:"Region"},"aws-global"]},lr={[Br]:[{[gr]:!0,[Hn]:"sigv4",[pr]:Xc,[Wr]:"us-east-1"}]},Pt={[te]:ui,[ne]:[er]},ur={[te]:qn,[ne]:[{[Ze]:"UseGlobalEndpoint"},!0]},oC={[qe]:"https://{Bucket}.s3-fips.dualstack.{Region}.{partitionResult#dnsSuffix}",[je]:{[Br]:[{[gr]:!0,[Hn]:"sigv4",[pr]:Xc,[Wr]:"{Region}"}]},[We]:{}},Xn={[Br]:[{[gr]:!0,[Hn]:"sigv4",[pr]:Xc,[Wr]:"{Region}"}]},dr={[te]:qn,[ne]:[{[Ze]:"UseGlobalEndpoint"},!1]},Rt={[te]:qn,[ne]:[{[Ze]:"UseDualStack"},!1]},cC={[qe]:"https://{Bucket}.s3-fips.{Region}.{partitionResult#dnsSuffix}",[je]:Xn,[We]:{}},St={[te]:qn,[ne]:[{[Ze]:"UseFIPS"},!1]},lC={[qe]:"https://{Bucket}.s3-accelerate.dualstack.{partitionResult#dnsSuffix}",[je]:Xn,[We]:{}},uC={[qe]:"https://{Bucket}.s3.dualstack.{Region}.{partitionResult#dnsSuffix}",[je]:Xn,[We]:{}},B0={[te]:qn,[ne]:[{[te]:In,[ne]:[bT,"isIp"]},!1]},P0={[qe]:oT,[je]:Xn,[We]:{}},xb={[qe]:Vf,[je]:Xn,[We]:{}},dC={[Te]:xb,[B]:Te},N0={[qe]:cT,[je]:Xn,[We]:{}},fC={[qe]:"https://{Bucket}.s3.{Region}.{partitionResult#dnsSuffix}",[je]:Xn,[We]:{}},Ed={[$e]:"Invalid region: region was not a valid DNS name.",[B]:$e},ts={[Ze]:uT},yT={[Ze]:dT},O0={[te]:In,[ne]:[ts,"service"]},_p={[Ze]:vp},hC={[H]:[an],[$e]:"S3 Object Lambda does not support Dual-stack",[B]:$e},mC={[H]:[_s],[$e]:"S3 Object Lambda does not support S3 Accelerate",[B]:$e},bC={[H]:[{[te]:hs,[ne]:[{[Ze]:"DisableAccessPoints"}]},{[te]:qn,[ne]:[{[Ze]:"DisableAccessPoints"},!0]}],[$e]:"Access points are not supported for this operation",[B]:$e},D0={[H]:[{[te]:hs,[ne]:[{[Ze]:"UseArnRegion"}]},{[te]:qn,[ne]:[{[Ze]:"UseArnRegion"},!1]},{[te]:ui,[ne]:[{[te]:Lt,[ne]:[{[te]:In,[ne]:[ts,"region"]},"{Region}"]}]}],[$e]:"Invalid configuration: region from ARN `{bucketArn#region}` does not match client region `{Region}` and UseArnRegion is `false`",[B]:$e},ET={[te]:In,[ne]:[{[Ze]:"bucketPartition"},Hn]},CT={[te]:In,[ne]:[ts,"accountId"]},L0={[Br]:[{[gr]:!0,[Hn]:"sigv4",[pr]:xp,[Wr]:"{bucketArn#region}"}]},gC={[$e]:"Invalid ARN: The access point name may only contain a-z, A-Z, 0-9 and `-`. Found: `{accessPointName}`",[B]:$e},M0={[$e]:"Invalid ARN: The account id may only contain a-z, A-Z, 0-9 and `-`. Found: `{bucketArn#accountId}`",[B]:$e},F0={[$e]:"Invalid region in ARN: `{bucketArn#region}` (invalid DNS name)",[B]:$e},z0={[$e]:"Client was configured for partition `{partitionResult#name}` but ARN (`{Bucket}`) has `{bucketPartition#name}`",[B]:$e},pC={[$e]:"Invalid ARN: The ARN may only contain a single resource component after `accesspoint`.",[B]:$e},yC={[$e]:"Invalid ARN: Expected a resource of the format `accesspoint:<accesspoint name>` but no name was provided",[B]:$e},jl={[Br]:[{[gr]:!0,[Hn]:"sigv4",[pr]:Xc,[Wr]:"{bucketArn#region}"}]},EC={[Br]:[{[gr]:!0,[Hn]:Cp,[pr]:Iu,[yp]:["*"]},{[gr]:!0,[Hn]:"sigv4",[pr]:Iu,[Wr]:"{bucketArn#region}"}]},CC={[te]:lT,[ne]:[Dt]},xC={[qe]:"https://s3-fips.dualstack.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[je]:Xn,[We]:{}},vC={[qe]:"https://s3-fips.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[je]:Xn,[We]:{}},_C={[qe]:"https://s3.dualstack.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[je]:Xn,[We]:{}},U0={[qe]:hT,[je]:Xn,[We]:{}},SC={[qe]:"https://s3.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[je]:Xn,[We]:{}},TC={[Ze]:"UseObjectLambdaEndpoint"},$0={[Br]:[{[gr]:!0,[Hn]:"sigv4",[pr]:xp,[Wr]:"{Region}"}]},wC={[qe]:"https://s3-fips.dualstack.{Region}.{partitionResult#dnsSuffix}",[je]:Xn,[We]:{}},AC={[qe]:"https://s3-fips.{Region}.{partitionResult#dnsSuffix}",[je]:Xn,[We]:{}},kC={[qe]:"https://s3.dualstack.{Region}.{partitionResult#dnsSuffix}",[je]:Xn,[We]:{}},H0={[qe]:Ld,[je]:Xn,[We]:{}},IC={[qe]:"https://s3.{Region}.{partitionResult#dnsSuffix}",[je]:Xn,[We]:{}},q0=[{[Ze]:"Region"}],nz=[{[Ze]:"Endpoint"}],rz=[Dt],RC=[an],j0=[_s],Yo=[zn,Hr],BC=[{[te]:hs,[ne]:[{[Ze]:"DisableS3ExpressSessionAuth"}]},{[te]:qn,[ne]:[{[Ze]:"DisableS3ExpressSessionAuth"},!0]}],sz=[gT],PC=[pT],vs=[mT],Xo=[yn],NC=[{[te]:cn,[ne]:[Dt,6,14,!0],[Ct]:"s3expressAvailabilityZoneId"},{[te]:cn,[ne]:[Dt,14,16,!0],[Ct]:"s3expressAvailabilityZoneDelim"},{[te]:Lt,[ne]:[{[Ze]:"s3expressAvailabilityZoneDelim"},"--"]}],ti=[{[H]:[yn],[Te]:{[qe]:"https://{Bucket}.s3express-fips-{s3expressAvailabilityZoneId}.{Region}.{partitionResult#dnsSuffix}",[je]:Aa,[We]:{}},[B]:Te},{[Te]:{[qe]:"https://{Bucket}.s3express-{s3expressAvailabilityZoneId}.{Region}.{partitionResult#dnsSuffix}",[je]:Aa,[We]:{}},[B]:Te}],OC=[{[te]:cn,[ne]:[Dt,6,15,!0],[Ct]:"s3expressAvailabilityZoneId"},{[te]:cn,[ne]:[Dt,15,17,!0],[Ct]:"s3expressAvailabilityZoneDelim"},{[te]:Lt,[ne]:[{[Ze]:"s3expressAvailabilityZoneDelim"},"--"]}],DC=[{[te]:cn,[ne]:[Dt,6,19,!0],[Ct]:"s3expressAvailabilityZoneId"},{[te]:cn,[ne]:[Dt,19,21,!0],[Ct]:"s3expressAvailabilityZoneDelim"},{[te]:Lt,[ne]:[{[Ze]:"s3expressAvailabilityZoneDelim"},"--"]}],LC=[{[te]:cn,[ne]:[Dt,6,20,!0],[Ct]:"s3expressAvailabilityZoneId"},{[te]:cn,[ne]:[Dt,20,22,!0],[Ct]:"s3expressAvailabilityZoneDelim"},{[te]:Lt,[ne]:[{[Ze]:"s3expressAvailabilityZoneDelim"},"--"]}],MC=[{[te]:cn,[ne]:[Dt,6,26,!0],[Ct]:"s3expressAvailabilityZoneId"},{[te]:cn,[ne]:[Dt,26,28,!0],[Ct]:"s3expressAvailabilityZoneDelim"},{[te]:Lt,[ne]:[{[Ze]:"s3expressAvailabilityZoneDelim"},"--"]}],ni=[{[H]:[yn],[Te]:{[qe]:"https://{Bucket}.s3express-fips-{s3expressAvailabilityZoneId}.{Region}.{partitionResult#dnsSuffix}",[je]:{[Ia]:"S3Express",[Br]:[{[gr]:!0,[Hn]:"sigv4-s3express",[pr]:"s3express",[Wr]:"{Region}"}]},[We]:{}},[B]:Te},{[Te]:{[qe]:"https://{Bucket}.s3express-{s3expressAvailabilityZoneId}.{Region}.{partitionResult#dnsSuffix}",[je]:{[Ia]:"S3Express",[Br]:[{[gr]:!0,[Hn]:"sigv4-s3express",[pr]:"s3express",[Wr]:"{Region}"}]},[We]:{}},[B]:Te}],FC=[Dt,0,7,!0],zC=[{[te]:cn,[ne]:[Dt,7,15,!0],[Ct]:"s3expressAvailabilityZoneId"},{[te]:cn,[ne]:[Dt,15,17,!0],[Ct]:"s3expressAvailabilityZoneDelim"},{[te]:Lt,[ne]:[{[Ze]:"s3expressAvailabilityZoneDelim"},"--"]}],UC=[{[te]:cn,[ne]:[Dt,7,16,!0],[Ct]:"s3expressAvailabilityZoneId"},{[te]:cn,[ne]:[Dt,16,18,!0],[Ct]:"s3expressAvailabilityZoneDelim"},{[te]:Lt,[ne]:[{[Ze]:"s3expressAvailabilityZoneDelim"},"--"]}],$C=[{[te]:cn,[ne]:[Dt,7,20,!0],[Ct]:"s3expressAvailabilityZoneId"},{[te]:cn,[ne]:[Dt,20,22,!0],[Ct]:"s3expressAvailabilityZoneDelim"},{[te]:Lt,[ne]:[{[Ze]:"s3expressAvailabilityZoneDelim"},"--"]}],HC=[{[te]:cn,[ne]:[Dt,7,21,!0],[Ct]:"s3expressAvailabilityZoneId"},{[te]:cn,[ne]:[Dt,21,23,!0],[Ct]:"s3expressAvailabilityZoneDelim"},{[te]:Lt,[ne]:[{[Ze]:"s3expressAvailabilityZoneDelim"},"--"]}],qC=[{[te]:cn,[ne]:[Dt,7,27,!0],[Ct]:"s3expressAvailabilityZoneId"},{[te]:cn,[ne]:[Dt,27,29,!0],[Ct]:"s3expressAvailabilityZoneDelim"},{[te]:Lt,[ne]:[{[Ze]:"s3expressAvailabilityZoneDelim"},"--"]}],iz=[au],jC=[{[te]:Io,[ne]:[{[Ze]:Cb},!1]}],WC=[{[te]:Lt,[ne]:[{[Ze]:aT},"beta"]}],az=["*"],GC=[{[te]:Io,[ne]:[{[Ze]:"Region"},!1]}],Ui=[{[te]:Lt,[ne]:[{[Ze]:"Region"},"us-east-1"]}],W0=[{[te]:Lt,[ne]:[yT,fT]}],VC=[{[te]:In,[ne]:[ts,"resourceId[1]"],[Ct]:vp},{[te]:ui,[ne]:[{[te]:Lt,[ne]:[_p,Kf]}]}],oz=[ts,"resourceId[1]"],G0=[{[te]:ui,[ne]:[{[te]:Lt,[ne]:[{[te]:In,[ne]:[ts,"region"]},Kf]}]}],KC=[{[te]:ui,[ne]:[{[te]:hs,[ne]:[{[te]:In,[ne]:[ts,"resourceId[2]"]}]}]}],cz=[ts,"resourceId[2]"],V0=[{[te]:Wf,[ne]:[{[te]:In,[ne]:[ts,"region"]}],[Ct]:"bucketPartition"}],YC=[{[te]:Lt,[ne]:[ET,{[te]:In,[ne]:[{[Ze]:"partitionResult"},Hn]}]}],K0=[{[te]:Io,[ne]:[{[te]:In,[ne]:[ts,"region"]},!0]}],Y0=[{[te]:Io,[ne]:[CT,!1]}],XC=[{[te]:Io,[ne]:[_p,!1]}],QC=[{[te]:Io,[ne]:[{[Ze]:"Region"},!0]}],lz={parameters:{Bucket:Vo,Region:Vo,UseFIPS:Ko,UseDualStack:Ko,Endpoint:Vo,ForcePathStyle:Ko,Accelerate:Ko,UseGlobalEndpoint:Ko,UseObjectLambdaEndpoint:ql,Key:Vo,Prefix:Vo,CopySource:Vo,DisableAccessPoints:ql,DisableMultiRegionAccessPoints:Ko,UseArnRegion:ql,UseS3ExpressControlEndpoint:ql,DisableS3ExpressSessionAuth:ql},[le]:[{[H]:[{[te]:hs,[ne]:q0}],[le]:[{[H]:[_s,yn],error:"Accelerate cannot be used with FIPS",[B]:$e},{[H]:[an,zn],error:"Cannot set dual-stack in combination with a custom endpoint.",[B]:$e},{[H]:[zn,yn],error:"A custom endpoint cannot be combined with FIPS",[B]:$e},{[H]:[zn,_s],error:"A custom endpoint cannot be combined with S3 Accelerate",[B]:$e},{[H]:[yn,mT,Q1],error:"Partition does not support FIPS",[B]:$e},{[H]:[au,{[te]:cn,[ne]:[Dt,0,J9,ei],[Ct]:$1},{[te]:Lt,[ne]:[{[Ze]:$1},"--x-s3"]}],[le]:[Z1,J1,eC,{[H]:[nC,rC],[le]:[{[H]:vs,[le]:[{[H]:[gT,yt],[le]:[{[H]:Xo,endpoint:{[qe]:"https://s3express-control-fips.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[je]:Aa,[We]:pt},[B]:Te},{endpoint:{[qe]:"https://s3express-control.{Region}.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[je]:Aa,[We]:pt},[B]:Te}],[B]:ue}],[B]:ue}],[B]:ue},{[H]:PC,[le]:[{[H]:vs,[le]:[{[H]:BC,[le]:[{[H]:NC,[le]:ti,[B]:ue},{[H]:OC,[le]:ti,[B]:ue},{[H]:DC,[le]:ti,[B]:ue},{[H]:LC,[le]:ti,[B]:ue},{[H]:MC,[le]:ti,[B]:ue},pd],[B]:ue},{[H]:NC,[le]:ni,[B]:ue},{[H]:OC,[le]:ni,[B]:ue},{[H]:DC,[le]:ni,[B]:ue},{[H]:LC,[le]:ni,[B]:ue},{[H]:MC,[le]:ni,[B]:ue},pd],[B]:ue}],[B]:ue},tC],[B]:ue},{[H]:[au,{[te]:cn,[ne]:FC,[Ct]:H1},{[te]:Lt,[ne]:[{[Ze]:H1},"--xa-s3"]}],[le]:[Z1,J1,eC,{[H]:PC,[le]:[{[H]:vs,[le]:[{[H]:BC,[le]:[{[H]:zC,[le]:ti,[B]:ue},{[H]:UC,[le]:ti,[B]:ue},{[H]:$C,[le]:ti,[B]:ue},{[H]:HC,[le]:ti,[B]:ue},{[H]:qC,[le]:ti,[B]:ue},pd],[B]:ue},{[H]:zC,[le]:ni,[B]:ue},{[H]:UC,[le]:ni,[B]:ue},{[H]:$C,[le]:ni,[B]:ue},{[H]:HC,[le]:ni,[B]:ue},{[H]:qC,[le]:ni,[B]:ue},pd],[B]:ue}],[B]:ue},tC],[B]:ue},{[H]:[sC,nC,rC],[le]:[{[H]:vs,[le]:[{[H]:Yo,endpoint:{[qe]:Ld,[je]:Aa,[We]:pt},[B]:Te},{[H]:Xo,endpoint:{[qe]:"https://s3express-control-fips.{Region}.{partitionResult#dnsSuffix}",[je]:Aa,[We]:pt},[B]:Te},{endpoint:{[qe]:"https://s3express-control.{Region}.{partitionResult#dnsSuffix}",[je]:Aa,[We]:pt},[B]:Te}],[B]:ue}],[B]:ue},{[H]:[au,{[te]:cn,[ne]:[Dt,49,50,ei],[Ct]:iT},{[te]:cn,[ne]:[Dt,8,12,ei],[Ct]:aT},{[te]:cn,[ne]:FC,[Ct]:q1},{[te]:cn,[ne]:[Dt,32,49,ei],[Ct]:Cb},{[te]:Wf,[ne]:q0,[Ct]:"regionPartition"},{[te]:Lt,[ne]:[{[Ze]:q1},"--op-s3"]}],[le]:[{[H]:jC,[le]:[{[H]:[{[te]:Lt,[ne]:[iC,"e"]}],[le]:[{[H]:WC,[le]:[aC,{[H]:Yo,endpoint:{[qe]:"https://{Bucket}.ec2.{url#authority}",[je]:yd,[We]:pt},[B]:Te}],[B]:ue},{endpoint:{[qe]:"https://{Bucket}.ec2.s3-outposts.{Region}.{regionPartition#dnsSuffix}",[je]:yd,[We]:pt},[B]:Te}],[B]:ue},{[H]:[{[te]:Lt,[ne]:[iC,"o"]}],[le]:[{[H]:WC,[le]:[aC,{[H]:Yo,endpoint:{[qe]:"https://{Bucket}.op-{outpostId}.{url#authority}",[je]:yd,[We]:pt},[B]:Te}],[B]:ue},{endpoint:{[qe]:"https://{Bucket}.op-{outpostId}.s3-outposts.{Region}.{regionPartition#dnsSuffix}",[je]:yd,[We]:pt},[B]:Te}],[B]:ue},{error:'Unrecognized hardware type: "Expected hardware type o or e but got {hardwareType}"',[B]:$e}],[B]:ue},{error:"Invalid ARN: The outpost Id must only contain a-z, A-Z, 0-9 and `-`.",[B]:$e}],[B]:ue},{[H]:iz,[le]:[{[H]:[zn,{[te]:ui,[ne]:[{[te]:hs,[ne]:[{[te]:Ep,[ne]:nz}]}]}],error:"Custom endpoint `{Endpoint}` was not a valid URI",[B]:$e},{[H]:[R0,pT],[le]:[{[H]:vs,[le]:[{[H]:GC,[le]:[{[H]:[_s,Q1],error:"S3 Accelerate cannot be used in this region",[B]:$e},{[H]:[an,yn,Vn,yt,er],endpoint:{[qe]:"https://{Bucket}.s3-fips.dualstack.us-east-1.{partitionResult#dnsSuffix}",[je]:lr,[We]:pt},[B]:Te},{[H]:[an,yn,Vn,yt,Pt,ur],[le]:[{endpoint:oC,[B]:Te}],[B]:ue},{[H]:[an,yn,Vn,yt,Pt,dr],endpoint:oC,[B]:Te},{[H]:[Rt,yn,Vn,yt,er],endpoint:{[qe]:"https://{Bucket}.s3-fips.us-east-1.{partitionResult#dnsSuffix}",[je]:lr,[We]:pt},[B]:Te},{[H]:[Rt,yn,Vn,yt,Pt,ur],[le]:[{endpoint:cC,[B]:Te}],[B]:ue},{[H]:[Rt,yn,Vn,yt,Pt,dr],endpoint:cC,[B]:Te},{[H]:[an,St,_s,yt,er],endpoint:{[qe]:"https://{Bucket}.s3-accelerate.dualstack.us-east-1.{partitionResult#dnsSuffix}",[je]:lr,[We]:pt},[B]:Te},{[H]:[an,St,_s,yt,Pt,ur],[le]:[{endpoint:lC,[B]:Te}],[B]:ue},{[H]:[an,St,_s,yt,Pt,dr],endpoint:lC,[B]:Te},{[H]:[an,St,Vn,yt,er],endpoint:{[qe]:"https://{Bucket}.s3.dualstack.us-east-1.{partitionResult#dnsSuffix}",[je]:lr,[We]:pt},[B]:Te},{[H]:[an,St,Vn,yt,Pt,ur],[le]:[{endpoint:uC,[B]:Te}],[B]:ue},{[H]:[an,St,Vn,yt,Pt,dr],endpoint:uC,[B]:Te},{[H]:[Rt,St,Vn,zn,Hr,I0,er],endpoint:{[qe]:oT,[je]:lr,[We]:pt},[B]:Te},{[H]:[Rt,St,Vn,zn,Hr,B0,er],endpoint:{[qe]:Vf,[je]:lr,[We]:pt},[B]:Te},{[H]:[Rt,St,Vn,zn,Hr,I0,Pt,ur],[le]:[{[H]:Ui,endpoint:P0,[B]:Te},{endpoint:P0,[B]:Te}],[B]:ue},{[H]:[Rt,St,Vn,zn,Hr,B0,Pt,ur],[le]:[{[H]:Ui,endpoint:xb,[B]:Te},dC],[B]:ue},{[H]:[Rt,St,Vn,zn,Hr,I0,Pt,dr],endpoint:P0,[B]:Te},{[H]:[Rt,St,Vn,zn,Hr,B0,Pt,dr],endpoint:xb,[B]:Te},{[H]:[Rt,St,_s,yt,er],endpoint:{[qe]:cT,[je]:lr,[We]:pt},[B]:Te},{[H]:[Rt,St,_s,yt,Pt,ur],[le]:[{[H]:Ui,endpoint:N0,[B]:Te},{endpoint:N0,[B]:Te}],[B]:ue},{[H]:[Rt,St,_s,yt,Pt,dr],endpoint:N0,[B]:Te},{[H]:[Rt,St,Vn,yt,er],endpoint:{[qe]:j1,[je]:lr,[We]:pt},[B]:Te},{[H]:[Rt,St,Vn,yt,Pt,ur],[le]:[{[H]:Ui,endpoint:{[qe]:j1,[je]:Xn,[We]:pt},[B]:Te},{endpoint:fC,[B]:Te}],[B]:ue},{[H]:[Rt,St,Vn,yt,Pt,dr],endpoint:fC,[B]:Te}],[B]:ue},Ed],[B]:ue}],[B]:ue},{[H]:[zn,Hr,{[te]:Lt,[ne]:[{[te]:In,[ne]:[bT,"scheme"]},"http"]},{[te]:Gf,[ne]:[Dt,ei]},R0,St,Rt,Vn],[le]:[{[H]:vs,[le]:[{[H]:GC,[le]:[dC],[B]:ue},Ed],[B]:ue}],[B]:ue},{[H]:[R0,{[te]:lT,[ne]:rz,[Ct]:uT}],[le]:[{[H]:[{[te]:In,[ne]:[ts,"resourceId[0]"],[Ct]:dT},{[te]:ui,[ne]:[{[te]:Lt,[ne]:[yT,Kf]}]}],[le]:[{[H]:[{[te]:Lt,[ne]:[O0,xp]}],[le]:[{[H]:W0,[le]:[{[H]:VC,[le]:[hC,mC,{[H]:G0,[le]:[bC,{[H]:KC,[le]:[D0,{[H]:V0,[le]:[{[H]:vs,[le]:[{[H]:YC,[le]:[{[H]:K0,[le]:[{[H]:[{[te]:Lt,[ne]:[CT,Kf]}],error:"Invalid ARN: Missing account id",[B]:$e},{[H]:Y0,[le]:[{[H]:XC,[le]:[{[H]:Yo,endpoint:{[qe]:W1,[je]:L0,[We]:pt},[B]:Te},{[H]:Xo,endpoint:{[qe]:"https://{accessPointName}-{bucketArn#accountId}.s3-object-lambda-fips.{bucketArn#region}.{bucketPartition#dnsSuffix}",[je]:L0,[We]:pt},[B]:Te},{endpoint:{[qe]:"https://{accessPointName}-{bucketArn#accountId}.s3-object-lambda.{bucketArn#region}.{bucketPartition#dnsSuffix}",[je]:L0,[We]:pt},[B]:Te}],[B]:ue},gC],[B]:ue},M0],[B]:ue},F0],[B]:ue},z0],[B]:ue}],[B]:ue}],[B]:ue},pC],[B]:ue},{error:"Invalid ARN: bucket ARN is missing a region",[B]:$e}],[B]:ue},yC],[B]:ue},{error:"Invalid ARN: Object Lambda ARNs only support `accesspoint` arn types, but found: `{arnType}`",[B]:$e}],[B]:ue},{[H]:W0,[le]:[{[H]:VC,[le]:[{[H]:G0,[le]:[{[H]:W0,[le]:[{[H]:G0,[le]:[bC,{[H]:KC,[le]:[D0,{[H]:V0,[le]:[{[H]:vs,[le]:[{[H]:[{[te]:Lt,[ne]:[ET,"{partitionResult#name}"]}],[le]:[{[H]:K0,[le]:[{[H]:[{[te]:Lt,[ne]:[O0,Xc]}],[le]:[{[H]:Y0,[le]:[{[H]:XC,[le]:[{[H]:j0,error:"Access Points do not support S3 Accelerate",[B]:$e},{[H]:[yn,an],endpoint:{[qe]:"https://{accessPointName}-{bucketArn#accountId}.s3-accesspoint-fips.dualstack.{bucketArn#region}.{bucketPartition#dnsSuffix}",[je]:jl,[We]:pt},[B]:Te},{[H]:[yn,Rt],endpoint:{[qe]:"https://{accessPointName}-{bucketArn#accountId}.s3-accesspoint-fips.{bucketArn#region}.{bucketPartition#dnsSuffix}",[je]:jl,[We]:pt},[B]:Te},{[H]:[St,an],endpoint:{[qe]:"https://{accessPointName}-{bucketArn#accountId}.s3-accesspoint.dualstack.{bucketArn#region}.{bucketPartition#dnsSuffix}",[je]:jl,[We]:pt},[B]:Te},{[H]:[St,Rt,zn,Hr],endpoint:{[qe]:W1,[je]:jl,[We]:pt},[B]:Te},{[H]:[St,Rt],endpoint:{[qe]:"https://{accessPointName}-{bucketArn#accountId}.s3-accesspoint.{bucketArn#region}.{bucketPartition#dnsSuffix}",[je]:jl,[We]:pt},[B]:Te}],[B]:ue},gC],[B]:ue},M0],[B]:ue},{error:"Invalid ARN: The ARN was not for the S3 service, found: {bucketArn#service}",[B]:$e}],[B]:ue},F0],[B]:ue},z0],[B]:ue}],[B]:ue}],[B]:ue},pC],[B]:ue}],[B]:ue}],[B]:ue},{[H]:[{[te]:Io,[ne]:[_p,ei]}],[le]:[{[H]:RC,error:"S3 MRAP does not support dual-stack",[B]:$e},{[H]:Xo,error:"S3 MRAP does not support FIPS",[B]:$e},{[H]:j0,error:"S3 MRAP does not support S3 Accelerate",[B]:$e},{[H]:[{[te]:qn,[ne]:[{[Ze]:"DisableMultiRegionAccessPoints"},ei]}],error:"Invalid configuration: Multi-Region Access Point ARNs are disabled.",[B]:$e},{[H]:[{[te]:Wf,[ne]:q0,[Ct]:G1}],[le]:[{[H]:[{[te]:Lt,[ne]:[{[te]:In,[ne]:[{[Ze]:G1},Hn]},{[te]:In,[ne]:[ts,"partition"]}]}],[le]:[{endpoint:{[qe]:"https://{accessPointName}.accesspoint.s3-global.{mrapPartition#dnsSuffix}",[je]:{[Br]:[{[gr]:ei,name:Cp,[pr]:Xc,[yp]:az}]},[We]:pt},[B]:Te}],[B]:ue},{error:"Client was configured for partition `{mrapPartition#name}` but bucket referred to partition `{bucketArn#partition}`",[B]:$e}],[B]:ue}],[B]:ue},{error:"Invalid Access Point Name",[B]:$e}],[B]:ue},yC],[B]:ue},{[H]:[{[te]:Lt,[ne]:[O0,Iu]}],[le]:[{[H]:RC,error:"S3 Outposts does not support Dual-stack",[B]:$e},{[H]:Xo,error:"S3 Outposts does not support FIPS",[B]:$e},{[H]:j0,error:"S3 Outposts does not support S3 Accelerate",[B]:$e},{[H]:[{[te]:hs,[ne]:[{[te]:In,[ne]:[ts,"resourceId[4]"]}]}],error:"Invalid Arn: Outpost Access Point ARN contains sub resources",[B]:$e},{[H]:[{[te]:In,[ne]:oz,[Ct]:Cb}],[le]:[{[H]:jC,[le]:[D0,{[H]:V0,[le]:[{[H]:vs,[le]:[{[H]:YC,[le]:[{[H]:K0,[le]:[{[H]:Y0,[le]:[{[H]:[{[te]:In,[ne]:cz,[Ct]:V1}],[le]:[{[H]:[{[te]:In,[ne]:[ts,"resourceId[3]"],[Ct]:vp}],[le]:[{[H]:[{[te]:Lt,[ne]:[{[Ze]:V1},fT]}],[le]:[{[H]:Yo,endpoint:{[qe]:"https://{accessPointName}-{bucketArn#accountId}.{outpostId}.{url#authority}",[je]:EC,[We]:pt},[B]:Te},{endpoint:{[qe]:"https://{accessPointName}-{bucketArn#accountId}.{outpostId}.s3-outposts.{bucketArn#region}.{bucketPartition#dnsSuffix}",[je]:EC,[We]:pt},[B]:Te}],[B]:ue},{error:"Expected an outpost type `accesspoint`, found {outpostType}",[B]:$e}],[B]:ue},{error:"Invalid ARN: expected an access point name",[B]:$e}],[B]:ue},{error:"Invalid ARN: Expected a 4-component resource",[B]:$e}],[B]:ue},M0],[B]:ue},F0],[B]:ue},z0],[B]:ue}],[B]:ue}],[B]:ue},{error:"Invalid ARN: The outpost Id may only contain a-z, A-Z, 0-9 and `-`. Found: `{outpostId}`",[B]:$e}],[B]:ue},{error:"Invalid ARN: The Outpost Id was not set",[B]:$e}],[B]:ue},{error:"Invalid ARN: Unrecognized format: {Bucket} (type: {arnType})",[B]:$e}],[B]:ue},{error:"Invalid ARN: No ARN type specified",[B]:$e}],[B]:ue},{[H]:[{[te]:cn,[ne]:[Dt,0,4,ez],[Ct]:K1},{[te]:Lt,[ne]:[{[Ze]:K1},"arn:"]},{[te]:ui,[ne]:[{[te]:hs,[ne]:[CC]}]}],error:"Invalid ARN: `{Bucket}` was not a valid ARN",[B]:$e},{[H]:[{[te]:qn,[ne]:[tz,ei]},CC],error:"Path-style addressing cannot be used with ARN buckets",[B]:$e},{[H]:sz,[le]:[{[H]:vs,[le]:[{[H]:[Vn],[le]:[{[H]:[an,yt,yn,er],endpoint:{[qe]:"https://s3-fips.dualstack.us-east-1.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[je]:lr,[We]:pt},[B]:Te},{[H]:[an,yt,yn,Pt,ur],[le]:[{endpoint:xC,[B]:Te}],[B]:ue},{[H]:[an,yt,yn,Pt,dr],endpoint:xC,[B]:Te},{[H]:[Rt,yt,yn,er],endpoint:{[qe]:"https://s3-fips.us-east-1.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[je]:lr,[We]:pt},[B]:Te},{[H]:[Rt,yt,yn,Pt,ur],[le]:[{endpoint:vC,[B]:Te}],[B]:ue},{[H]:[Rt,yt,yn,Pt,dr],endpoint:vC,[B]:Te},{[H]:[an,yt,St,er],endpoint:{[qe]:"https://s3.dualstack.us-east-1.{partitionResult#dnsSuffix}/{uri_encoded_bucket}",[je]:lr,[We]:pt},[B]:Te},{[H]:[an,yt,St,Pt,ur],[le]:[{endpoint:_C,[B]:Te}],[B]:ue},{[H]:[an,yt,St,Pt,dr],endpoint:_C,[B]:Te},{[H]:[Rt,zn,Hr,St,er],endpoint:{[qe]:hT,[je]:lr,[We]:pt},[B]:Te},{[H]:[Rt,zn,Hr,St,Pt,ur],[le]:[{[H]:Ui,endpoint:U0,[B]:Te},{endpoint:U0,[B]:Te}],[B]:ue},{[H]:[Rt,zn,Hr,St,Pt,dr],endpoint:U0,[B]:Te},{[H]:[Rt,yt,St,er],endpoint:{[qe]:Y1,[je]:lr,[We]:pt},[B]:Te},{[H]:[Rt,yt,St,Pt,ur],[le]:[{[H]:Ui,endpoint:{[qe]:Y1,[je]:Xn,[We]:pt},[B]:Te},{endpoint:SC,[B]:Te}],[B]:ue},{[H]:[Rt,yt,St,Pt,dr],endpoint:SC,[B]:Te}],[B]:ue},{error:"Path-style addressing cannot be used with S3 Accelerate",[B]:$e}],[B]:ue}],[B]:ue}],[B]:ue},{[H]:[{[te]:hs,[ne]:[TC]},{[te]:qn,[ne]:[TC,ei]}],[le]:[{[H]:vs,[le]:[{[H]:QC,[le]:[hC,mC,{[H]:Yo,endpoint:{[qe]:Ld,[je]:$0,[We]:pt},[B]:Te},{[H]:Xo,endpoint:{[qe]:"https://s3-object-lambda-fips.{Region}.{partitionResult#dnsSuffix}",[je]:$0,[We]:pt},[B]:Te},{endpoint:{[qe]:"https://s3-object-lambda.{Region}.{partitionResult#dnsSuffix}",[je]:$0,[We]:pt},[B]:Te}],[B]:ue},Ed],[B]:ue}],[B]:ue},{[H]:[sC],[le]:[{[H]:vs,[le]:[{[H]:QC,[le]:[{[H]:[yn,an,yt,er],endpoint:{[qe]:"https://s3-fips.dualstack.us-east-1.{partitionResult#dnsSuffix}",[je]:lr,[We]:pt},[B]:Te},{[H]:[yn,an,yt,Pt,ur],[le]:[{endpoint:wC,[B]:Te}],[B]:ue},{[H]:[yn,an,yt,Pt,dr],endpoint:wC,[B]:Te},{[H]:[yn,Rt,yt,er],endpoint:{[qe]:"https://s3-fips.us-east-1.{partitionResult#dnsSuffix}",[je]:lr,[We]:pt},[B]:Te},{[H]:[yn,Rt,yt,Pt,ur],[le]:[{endpoint:AC,[B]:Te}],[B]:ue},{[H]:[yn,Rt,yt,Pt,dr],endpoint:AC,[B]:Te},{[H]:[St,an,yt,er],endpoint:{[qe]:"https://s3.dualstack.us-east-1.{partitionResult#dnsSuffix}",[je]:lr,[We]:pt},[B]:Te},{[H]:[St,an,yt,Pt,ur],[le]:[{endpoint:kC,[B]:Te}],[B]:ue},{[H]:[St,an,yt,Pt,dr],endpoint:kC,[B]:Te},{[H]:[St,Rt,zn,Hr,er],endpoint:{[qe]:Ld,[je]:lr,[We]:pt},[B]:Te},{[H]:[St,Rt,zn,Hr,Pt,ur],[le]:[{[H]:Ui,endpoint:H0,[B]:Te},{endpoint:H0,[B]:Te}],[B]:ue},{[H]:[St,Rt,zn,Hr,Pt,dr],endpoint:H0,[B]:Te},{[H]:[St,Rt,yt,er],endpoint:{[qe]:X1,[je]:lr,[We]:pt},[B]:Te},{[H]:[St,Rt,yt,Pt,ur],[le]:[{[H]:Ui,endpoint:{[qe]:X1,[je]:Xn,[We]:pt},[B]:Te},{endpoint:IC,[B]:Te}],[B]:ue},{[H]:[St,Rt,yt,Pt,dr],endpoint:IC,[B]:Te}],[B]:ue},Ed],[B]:ue}],[B]:ue}],[B]:ue},{error:"A region must be set when sending requests to S3.",[B]:$e}]},uz=lz,dz=new wF({size:50,params:["Accelerate","Bucket","DisableAccessPoints","DisableMultiRegionAccessPoints","DisableS3ExpressSessionAuth","Endpoint","ForcePathStyle","Region","UseArnRegion","UseDualStack","UseFIPS","UseGlobalEndpoint","UseObjectLambdaEndpoint","UseS3ExpressControlEndpoint"]}),xT=(e,t={})=>dz.get(e,()=>WF(uz,{endpointParams:e,logger:t.logger}));Hf.aws=XS;const fz=e=>async(t,n,r)=>{if(!r)throw new Error("Could not find `input` for `defaultEndpointRuleSetHttpAuthSchemeParametersProvider`");const s=await e(t,n,r),i=ol(n)?.commandInstance?.constructor?.getEndpointParameterInstructions;if(!i)throw new Error(`getEndpointParameterInstructions() is not defined on \`${n.commandName}\``);const a=await eT(r,{getEndpointParameterInstructions:i},t);return Object.assign(s,a)},hz=async(e,t,n)=>({operation:ol(t).operation,region:await Hs(e.region)()||(()=>{throw new Error("expected `region` to be configured for `aws.auth#sigv4`")})()}),mz=fz(hz);function vT(e){return{schemeId:"aws.auth#sigv4",signingProperties:{name:"s3",region:e.region},propertiesExtractor:(t,n)=>({signingProperties:{config:t,context:n}})}}function _T(e){return{schemeId:"aws.auth#sigv4a",signingProperties:{name:"s3",region:e.region},propertiesExtractor:(t,n)=>({signingProperties:{config:t,context:n}})}}const bz=(e,t,n)=>s=>{const a=e(s).properties?.authSchemes;if(!a)return t(s);const o=[];for(const c of a){const{name:l,properties:d={},...f}=c,m=l.toLowerCase();l!==m&&console.warn(`HttpAuthScheme has been normalized with lowercasing: \`${l}\` to \`${m}\``);let h;if(m==="sigv4a"){h="aws.auth#sigv4a";const y=a.find(p=>{const C=p.name.toLowerCase();return C!=="sigv4a"&&C.startsWith("sigv4")});if(sT.sigv4aDependency()==="none"&&y)continue}else if(m.startsWith("sigv4"))h="aws.auth#sigv4";else throw new Error(`Unknown HttpAuthScheme found in \`@smithy.rules#endpointRuleSet\`: \`${m}\``);const b=n[h];if(!b)throw new Error(`Could not find HttpAuthOption create function for \`${h}\``);const g=b(s);g.schemeId=h,g.signingProperties={...g.signingProperties||{},...f,...d},o.push(g)}return o},gz=e=>{const t=[];switch(e.operation){default:t.push(vT(e)),t.push(_T(e))}return t},pz=bz(xT,gz,{"aws.auth#sigv4":vT,"aws.auth#sigv4a":_T}),yz=e=>{const t=W8(e),n=E8(t);return Object.assign(n,{authSchemePreference:Hs(e.authSchemePreference??[])})},Ez=e=>Object.assign(e,{useFipsEndpoint:e.useFipsEndpoint??!1,useDualstackEndpoint:e.useDualstackEndpoint??!1,forcePathStyle:e.forcePathStyle??!1,useAccelerateEndpoint:e.useAccelerateEndpoint??!1,useGlobalEndpoint:e.useGlobalEndpoint??!1,disableMultiregionAccessPoints:e.disableMultiregionAccessPoints??!1,defaultSigningName:"s3"}),_e={ForcePathStyle:{type:"clientContextParams",name:"forcePathStyle"},UseArnRegion:{type:"clientContextParams",name:"useArnRegion"},DisableMultiRegionAccessPoints:{type:"clientContextParams",name:"disableMultiregionAccessPoints"},Accelerate:{type:"clientContextParams",name:"useAccelerateEndpoint"},DisableS3ExpressSessionAuth:{type:"clientContextParams",name:"disableS3ExpressSessionAuth"},UseGlobalEndpoint:{type:"builtInParams",name:"useGlobalEndpoint"},UseFIPS:{type:"builtInParams",name:"useFipsEndpoint"},Endpoint:{type:"builtInParams",name:"endpoint"},Region:{type:"builtInParams",name:"region"},UseDualStack:{type:"builtInParams",name:"useDualstackEndpoint"}};class Tr extends nc{constructor(t){super(t),Object.setPrototypeOf(this,Tr.prototype)}}class Sp extends Tr{name="NoSuchUpload";$fault="client";constructor(t){super({name:"NoSuchUpload",$fault:"client",...t}),Object.setPrototypeOf(this,Sp.prototype)}}class Tp extends Tr{name="ObjectNotInActiveTierError";$fault="client";constructor(t){super({name:"ObjectNotInActiveTierError",$fault:"client",...t}),Object.setPrototypeOf(this,Tp.prototype)}}class wp extends Tr{name="BucketAlreadyExists";$fault="client";constructor(t){super({name:"BucketAlreadyExists",$fault:"client",...t}),Object.setPrototypeOf(this,wp.prototype)}}class Ap extends Tr{name="BucketAlreadyOwnedByYou";$fault="client";constructor(t){super({name:"BucketAlreadyOwnedByYou",$fault:"client",...t}),Object.setPrototypeOf(this,Ap.prototype)}}class kp extends Tr{name="NoSuchBucket";$fault="client";constructor(t){super({name:"NoSuchBucket",$fault:"client",...t}),Object.setPrototypeOf(this,kp.prototype)}}var vb;(function(e){e.visit=(t,n)=>t.Prefix!==void 0?n.Prefix(t.Prefix):t.Tag!==void 0?n.Tag(t.Tag):t.And!==void 0?n.And(t.And):n._(t.$unknown[0],t.$unknown[1])})(vb||(vb={}));var _b;(function(e){e.visit=(t,n)=>t.Prefix!==void 0?n.Prefix(t.Prefix):t.Tag!==void 0?n.Tag(t.Tag):t.AccessPointArn!==void 0?n.AccessPointArn(t.AccessPointArn):t.And!==void 0?n.And(t.And):n._(t.$unknown[0],t.$unknown[1])})(_b||(_b={}));class Ip extends Tr{name="InvalidObjectState";$fault="client";StorageClass;AccessTier;constructor(t){super({name:"InvalidObjectState",$fault:"client",...t}),Object.setPrototypeOf(this,Ip.prototype),this.StorageClass=t.StorageClass,this.AccessTier=t.AccessTier}}class Rp extends Tr{name="NoSuchKey";$fault="client";constructor(t){super({name:"NoSuchKey",$fault:"client",...t}),Object.setPrototypeOf(this,Rp.prototype)}}class Bp extends Tr{name="NotFound";$fault="client";constructor(t){super({name:"NotFound",$fault:"client",...t}),Object.setPrototypeOf(this,Bp.prototype)}}const Cz=e=>({...e,...e.SSEKMSKeyId&&{SSEKMSKeyId:Tt}}),xz=e=>({...e,...e.SSECustomerKey&&{SSECustomerKey:Tt}}),vz=e=>({...e,...e.SSEKMSKeyId&&{SSEKMSKeyId:Tt},...e.SSEKMSEncryptionContext&&{SSEKMSEncryptionContext:Tt}}),_z=e=>({...e,...e.SSECustomerKey&&{SSECustomerKey:Tt},...e.SSEKMSKeyId&&{SSEKMSKeyId:Tt},...e.SSEKMSEncryptionContext&&{SSEKMSEncryptionContext:Tt},...e.CopySourceSSECustomerKey&&{CopySourceSSECustomerKey:Tt}}),Sz=e=>({...e,...e.SSEKMSKeyId&&{SSEKMSKeyId:Tt},...e.SSEKMSEncryptionContext&&{SSEKMSEncryptionContext:Tt}}),Tz=e=>({...e,...e.SSECustomerKey&&{SSECustomerKey:Tt},...e.SSEKMSKeyId&&{SSEKMSKeyId:Tt},...e.SSEKMSEncryptionContext&&{SSEKMSEncryptionContext:Tt}}),wz=e=>({...e,...e.SecretAccessKey&&{SecretAccessKey:Tt},...e.SessionToken&&{SessionToken:Tt}}),Az=e=>({...e,...e.SSEKMSKeyId&&{SSEKMSKeyId:Tt},...e.SSEKMSEncryptionContext&&{SSEKMSEncryptionContext:Tt},...e.Credentials&&{Credentials:wz(e.Credentials)}}),kz=e=>({...e,...e.SSEKMSKeyId&&{SSEKMSKeyId:Tt},...e.SSEKMSEncryptionContext&&{SSEKMSEncryptionContext:Tt}}),Iz=e=>({...e,...e.KMSMasterKeyID&&{KMSMasterKeyID:Tt}}),Rz=e=>({...e,...e.ApplyServerSideEncryptionByDefault&&{ApplyServerSideEncryptionByDefault:Iz(e.ApplyServerSideEncryptionByDefault)}}),ST=e=>({...e,...e.Rules&&{Rules:e.Rules.map(t=>Rz(t))}}),Bz=e=>({...e,...e.ServerSideEncryptionConfiguration&&{ServerSideEncryptionConfiguration:ST(e.ServerSideEncryptionConfiguration)}}),Pz=e=>({...e,...e.KeyId&&{KeyId:Tt}}),Nz=e=>({...e,...e.SSEKMS&&{SSEKMS:Pz(e.SSEKMS)}}),Oz=e=>({...e,...e.Encryption&&{Encryption:Nz(e.Encryption)}}),Dz=e=>({...e,...e.S3BucketDestination&&{S3BucketDestination:Oz(e.S3BucketDestination)}}),Pp=e=>({...e,...e.Destination&&{Destination:Dz(e.Destination)}}),Lz=e=>({...e,...e.InventoryConfiguration&&{InventoryConfiguration:Pp(e.InventoryConfiguration)}}),Mz=e=>({...e,...e.SSEKMSKeyId&&{SSEKMSKeyId:Tt}}),Fz=e=>({...e,...e.SSECustomerKey&&{SSECustomerKey:Tt}}),zz=e=>({...e,...e.SSECustomerKey&&{SSECustomerKey:Tt}}),Uz=e=>({...e}),$z=e=>({...e,...e.SSEKMSKeyId&&{SSEKMSKeyId:Tt}}),Hz=e=>({...e,...e.SSECustomerKey&&{SSECustomerKey:Tt}}),qz=e=>({...e,...e.InventoryConfigurationList&&{InventoryConfigurationList:e.InventoryConfigurationList.map(t=>Pp(t))}});class Np extends Tr{name="EncryptionTypeMismatch";$fault="client";constructor(t){super({name:"EncryptionTypeMismatch",$fault:"client",...t}),Object.setPrototypeOf(this,Np.prototype)}}class Op extends Tr{name="InvalidRequest";$fault="client";constructor(t){super({name:"InvalidRequest",$fault:"client",...t}),Object.setPrototypeOf(this,Op.prototype)}}class Dp extends Tr{name="InvalidWriteOffset";$fault="client";constructor(t){super({name:"InvalidWriteOffset",$fault:"client",...t}),Object.setPrototypeOf(this,Dp.prototype)}}class Lp extends Tr{name="TooManyParts";$fault="client";constructor(t){super({name:"TooManyParts",$fault:"client",...t}),Object.setPrototypeOf(this,Lp.prototype)}}class Mp extends Tr{name="IdempotencyParameterMismatch";$fault="client";constructor(t){super({name:"IdempotencyParameterMismatch",$fault:"client",...t}),Object.setPrototypeOf(this,Mp.prototype)}}class Fp extends Tr{name="ObjectAlreadyInActiveTierError";$fault="client";constructor(t){super({name:"ObjectAlreadyInActiveTierError",$fault:"client",...t}),Object.setPrototypeOf(this,Fp.prototype)}}var ZC;(function(e){e.visit=(t,n)=>t.Records!==void 0?n.Records(t.Records):t.Stats!==void 0?n.Stats(t.Stats):t.Progress!==void 0?n.Progress(t.Progress):t.Cont!==void 0?n.Cont(t.Cont):t.End!==void 0?n.End(t.End):n._(t.$unknown[0],t.$unknown[1])})(ZC||(ZC={}));const jz=e=>({...e,...e.SSECustomerKey&&{SSECustomerKey:Tt}}),Wz=e=>({...e,...e.ServerSideEncryptionConfiguration&&{ServerSideEncryptionConfiguration:ST(e.ServerSideEncryptionConfiguration)}}),Gz=e=>({...e,...e.InventoryConfiguration&&{InventoryConfiguration:Pp(e.InventoryConfiguration)}}),Vz=e=>({...e,...e.SSEKMSKeyId&&{SSEKMSKeyId:Tt},...e.SSEKMSEncryptionContext&&{SSEKMSEncryptionContext:Tt}}),Kz=e=>({...e,...e.SSECustomerKey&&{SSECustomerKey:Tt},...e.SSEKMSKeyId&&{SSEKMSKeyId:Tt},...e.SSEKMSEncryptionContext&&{SSEKMSEncryptionContext:Tt}}),Yz=e=>({...e,...e.KMSKeyId&&{KMSKeyId:Tt}}),Xz=e=>({...e,...e.Encryption&&{Encryption:Yz(e.Encryption)}}),Qz=e=>({...e,...e.S3&&{S3:Xz(e.S3)}}),Zz=e=>({...e,...e.OutputLocation&&{OutputLocation:Qz(e.OutputLocation)}}),Jz=e=>({...e,...e.RestoreRequest&&{RestoreRequest:Zz(e.RestoreRequest)}}),eU=e=>({...e,...e.Payload&&{Payload:"STREAMING_CONTENT"}}),tU=e=>({...e,...e.SSECustomerKey&&{SSECustomerKey:Tt}}),nU=e=>({...e,...e.SSEKMSKeyId&&{SSEKMSKeyId:Tt}}),rU=e=>({...e,...e.SSECustomerKey&&{SSECustomerKey:Tt}}),sU=e=>({...e,...e.SSEKMSKeyId&&{SSEKMSKeyId:Tt}}),iU=e=>({...e,...e.SSECustomerKey&&{SSECustomerKey:Tt},...e.CopySourceSSECustomerKey&&{CopySourceSSECustomerKey:Tt}}),aU=e=>({...e,...e.SSEKMSKeyId&&{SSEKMSKeyId:Tt}}),oU=async(e,t)=>{const n=xe(e,t),r=T({},ee,{[Xt]:e[Yt],[Ie]:e[ke],[oZ]:[()=>ee(e[ox]),()=>Dn(e[ox]).toString()]});n.bp("/{Key+}"),n.p("Bucket",()=>e.Bucket,"{Bucket}",!1),n.p("Key",()=>e.Key,"{Key+}",!0);const s=T({[vr]:[,"AbortMultipartUpload"],[Ku]:[,Ve(e[as],"UploadId")]});return n.m("DELETE").h(r).q(s).b(void 0),n.build()},cU=async(e,t)=>{const n=xe(e,t),r=T({},ee,{"content-type":"application/xml",[Oo]:e[dn],[Do]:e[fn],[Lo]:e[hn],[Mo]:e[mn],[Fo]:e[bn],[Tl]:e[gn],[dZ]:[()=>ee(e[fx]),()=>e[fx].toString()],[Xt]:e[Yt],[Ie]:e[ke],[vl]:e[zu],[Gu]:e[Ph],[Cr]:e[rr],[Xs]:e[Ys],[xr]:e[sr]});n.bp("/{Key+}"),n.p("Bucket",()=>e.Bucket,"{Bucket}",!1),n.p("Key",()=>e.Key,"{Key+}",!0);const s=T({[Ku]:[,Ve(e[as],"UploadId")]});let i,a;return e.MultipartUpload!==void 0&&(a=Oq(e.MultipartUpload),a=a.n("CompleteMultipartUpload"),i=Ht,a.a("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),i+=a.toString()),n.m("POST").h(r).q(s).b(i),n.build()},lU=async(e,t)=>{const n=xe(e,t),r=T({},ee,{...e.Metadata!==void 0&&Object.keys(e.Metadata).reduce((a,o)=>(a[`x-amz-meta-${o.toLowerCase()}`]=e.Metadata[o],a),{}),[Sl]:e[dl],[$u]:e[fl],[gy]:e[Et],[Hu]:e[hl],[qu]:e[ml],[ju]:e[bl],[Wu]:e[gl],[Kw]:e[VT],[Yw]:e[KT],[Xw]:[()=>ee(e[Yf]),()=>Dn(e[Yf]).toString()],[Qw]:e[YT],[Zw]:[()=>ee(e[Xf]),()=>Dn(e[Xf]).toString()],[_o]:[()=>ee(e[mi]),()=>Dn(e[mi]).toString()],[wl]:e[pl],[Al]:e[yl],[kl]:e[El],[Il]:e[Cl],[uZ]:e[FY],[TZ]:e[zX],[Es]:e[Fr],[Zu]:e[_t],[Ju]:e[Uu],[Cr]:e[rr],[Xs]:e[Ys],[xr]:e[sr],[Cs]:e[wr],[pa]:e[ga],[Ln]:[()=>ee(e[En]),()=>e[En].toString()],[Jw]:e[XT],[e2]:e[QT],[t2]:e[ZT],[Xt]:e[Yt],[Cy]:e[mo],[Qu]:e[xl],[So]:[()=>ee(e[bi]),()=>ko(e[bi]).toString()],[Xu]:e[Po],[Ie]:e[ke],[i2]:e[tw]});n.bp("/{Key+}"),n.p("Bucket",()=>e.Bucket,"{Bucket}",!1),n.p("Key",()=>e.Key,"{Key+}",!0);const s=T({[vr]:[,"CopyObject"]});return n.m("PUT").h(r).q(s).b(void 0),n.build()},uU=async(e,t)=>{const n=xe(e,t),r=T({},ee,{"content-type":"application/xml",[Sl]:e[dl],[wl]:e[pl],[Al]:e[yl],[kl]:e[El],[py]:e[Kp],[Il]:e[Cl],[EQ]:[()=>ee(e[mx]),()=>e[mx].toString()],[mZ]:e[lu]});n.bp("/"),n.p("Bucket",()=>e.Bucket,"{Bucket}",!1);let s,i;return e.CreateBucketConfiguration!==void 0&&(i=$q(e.CreateBucketConfiguration),s=Ht,i.a("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),s+=i.toString()),n.m("PUT").h(r).b(s),n.build()},dU=async(e,t)=>{const n=xe(e,t),r=T({},ee,{"content-type":"application/xml",[On]:e[Nn],[pn]:e[Et],[Ie]:e[ke]});n.bp("/"),n.p("Bucket",()=>e.Bucket,"{Bucket}",!1);const s=T({[oy]:[,""]});let i,a;return e.MetadataConfiguration!==void 0&&(a=Rj(e.MetadataConfiguration),i=Ht,a.a("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),i+=a.toString()),n.m("POST").h(r).q(s).b(i),n.build()},fU=async(e,t)=>{const n=xe(e,t),r=T({},ee,{"content-type":"application/xml",[On]:e[Nn],[pn]:e[Et],[Ie]:e[ke]});n.bp("/"),n.p("Bucket",()=>e.Bucket,"{Bucket}",!1);const s=T({[cy]:[,""]});let i,a;return e.MetadataTableConfiguration!==void 0&&(a=Pj(e.MetadataTableConfiguration),i=Ht,a.a("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),i+=a.toString()),n.m("POST").h(r).q(s).b(i),n.build()},hU=async(e,t)=>{const n=xe(e,t),r=T({},ee,{...e.Metadata!==void 0&&Object.keys(e.Metadata).reduce((a,o)=>(a[`x-amz-meta-${o.toLowerCase()}`]=e.Metadata[o],a),{}),[Sl]:e[dl],[$u]:e[fl],[Hu]:e[hl],[qu]:e[ml],[ju]:e[bl],[Wu]:e[gl],[_o]:[()=>ee(e[mi]),()=>Dn(e[mi]).toString()],[wl]:e[pl],[Al]:e[yl],[kl]:e[El],[Il]:e[Cl],[Es]:e[Fr],[Zu]:e[_t],[Ju]:e[Uu],[Cr]:e[rr],[Xs]:e[Ys],[xr]:e[sr],[Cs]:e[wr],[pa]:e[ga],[Ln]:[()=>ee(e[En]),()=>e[En].toString()],[Xt]:e[Yt],[Cy]:e[mo],[Qu]:e[xl],[So]:[()=>ee(e[bi]),()=>ko(e[bi]).toString()],[Xu]:e[Po],[Ie]:e[ke],[gy]:e[Et],[Tl]:e[gn]});n.bp("/{Key+}"),n.p("Bucket",()=>e.Bucket,"{Bucket}",!1),n.p("Key",()=>e.Key,"{Key+}",!0);const s=T({[Hw]:[,""]});return n.m("POST").h(r).q(s).b(void 0),n.build()},mU=async(e,t)=>{const n=xe(e,t),r=T({},ee,{[vQ]:e[PX],[Es]:e[Fr],[Cs]:e[wr],[pa]:e[ga],[Ln]:[()=>ee(e[En]),()=>e[En].toString()]});n.bp("/"),n.p("Bucket",()=>e.Bucket,"{Bucket}",!1);const s=T({[cQ]:[,""]});return n.m("GET").h(r).q(s).b(void 0),n.build()},bU=async(e,t)=>{const n=xe(e,t),r=T({},ee,{[Ie]:e[ke]});return n.bp("/"),n.p("Bucket",()=>e.Bucket,"{Bucket}",!1),n.m("DELETE").h(r).b(void 0),n.build()},gU=async(e,t)=>{const n=xe(e,t),r=T({},ee,{[Ie]:e[ke]});n.bp("/"),n.p("Bucket",()=>e.Bucket,"{Bucket}",!1);const s=T({[Nh]:[,""],[zs]:[,Ve(e[st],"Id")]});return n.m("DELETE").h(r).q(s).b(void 0),n.build()},pU=async(e,t)=>{const n=xe(e,t),r=T({},ee,{[Ie]:e[ke]});n.bp("/"),n.p("Bucket",()=>e.Bucket,"{Bucket}",!1);const s=T({[ny]:[,""]});return n.m("DELETE").h(r).q(s).b(void 0),n.build()},yU=async(e,t)=>{const n=xe(e,t),r=T({},ee,{[Ie]:e[ke]});n.bp("/"),n.p("Bucket",()=>e.Bucket,"{Bucket}",!1);const s=T({[ry]:[,""]});return n.m("DELETE").h(r).q(s).b(void 0),n.build()},EU=async(e,t)=>{const n=xe(e,t),r=T({},ee,{[Ie]:e[ke]});n.bp("/"),n.p("Bucket",()=>e.Bucket,"{Bucket}",!1);const s=T({[zh]:[,""],[zs]:[,Ve(e[st],"Id")]});return n.m("DELETE").h(r).q(s).b(void 0),n.build()},CU=async(e,t)=>{const n=xe(e,t),r=T({},ee,{[Ie]:e[ke]});n.bp("/"),n.p("Bucket",()=>e.Bucket,"{Bucket}",!1);const s=T({[Fh]:[,""],[zs]:[,Ve(e[st],"Id")]});return n.m("DELETE").h(r).q(s).b(void 0),n.build()},xU=async(e,t)=>{const n=xe(e,t),r=T({},ee,{[Ie]:e[ke]});n.bp("/"),n.p("Bucket",()=>e.Bucket,"{Bucket}",!1);const s=T({[ay]:[,""]});return n.m("DELETE").h(r).q(s).b(void 0),n.build()},vU=async(e,t)=>{const n=xe(e,t),r=T({},ee,{[Ie]:e[ke]});n.bp("/"),n.p("Bucket",()=>e.Bucket,"{Bucket}",!1);const s=T({[oy]:[,""]});return n.m("DELETE").h(r).q(s).b(void 0),n.build()},_U=async(e,t)=>{const n=xe(e,t),r=T({},ee,{[Ie]:e[ke]});n.bp("/"),n.p("Bucket",()=>e.Bucket,"{Bucket}",!1);const s=T({[cy]:[,""]});return n.m("DELETE").h(r).q(s).b(void 0),n.build()},SU=async(e,t)=>{const n=xe(e,t),r=T({},ee,{[Ie]:e[ke]});n.bp("/"),n.p("Bucket",()=>e.Bucket,"{Bucket}",!1);const s=T({[Uh]:[,""],[zs]:[,Ve(e[st],"Id")]});return n.m("DELETE").h(r).q(s).b(void 0),n.build()},TU=async(e,t)=>{const n=xe(e,t),r=T({},ee,{[Ie]:e[ke]});n.bp("/"),n.p("Bucket",()=>e.Bucket,"{Bucket}",!1);const s=T({[uy]:[,""]});return n.m("DELETE").h(r).q(s).b(void 0),n.build()},wU=async(e,t)=>{const n=xe(e,t),r=T({},ee,{[Ie]:e[ke]});n.bp("/"),n.p("Bucket",()=>e.Bucket,"{Bucket}",!1);const s=T({[dy]:[,""]});return n.m("DELETE").h(r).q(s).b(void 0),n.build()},AU=async(e,t)=>{const n=xe(e,t),r=T({},ee,{[Ie]:e[ke]});n.bp("/"),n.p("Bucket",()=>e.Bucket,"{Bucket}",!1);const s=T({[hy]:[,""]});return n.m("DELETE").h(r).q(s).b(void 0),n.build()},kU=async(e,t)=>{const n=xe(e,t),r=T({},ee,{[Ie]:e[ke]});n.bp("/"),n.p("Bucket",()=>e.Bucket,"{Bucket}",!1);const s=T({[_l]:[,""]});return n.m("DELETE").h(r).q(s).b(void 0),n.build()},IU=async(e,t)=>{const n=xe(e,t),r=T({},ee,{[Ie]:e[ke]});n.bp("/"),n.p("Bucket",()=>e.Bucket,"{Bucket}",!1);const s=T({[my]:[,""]});return n.m("DELETE").h(r).q(s).b(void 0),n.build()},RU=async(e,t)=>{const n=xe(e,t),r=T({},ee,{[yy]:e[Yp],[Xt]:e[Yt],[by]:[()=>ee(e[Qc]),()=>e[Qc].toString()],[Ie]:e[ke],[vl]:e[zu],[cZ]:[()=>ee(e[cx]),()=>Dn(e[cx]).toString()],[lZ]:[()=>ee(e[lx]),()=>e[lx].toString()]});n.bp("/{Key+}"),n.p("Bucket",()=>e.Bucket,"{Bucket}",!1),n.p("Key",()=>e.Key,"{Key+}",!0);const s=T({[vr]:[,"DeleteObject"],[ls]:[,e[wt]]});return n.m("DELETE").h(r).q(s).b(void 0),n.build()},BU=async(e,t)=>{const n=xe(e,t),r=T({},ee,{"content-type":"application/xml",[yy]:e[Yp],[Xt]:e[Yt],[by]:[()=>ee(e[Qc]),()=>e[Qc].toString()],[Ie]:e[ke],[pn]:e[Et]});n.bp("/"),n.p("Bucket",()=>e.Bucket,"{Bucket}",!1);const s=T({[KX]:[,""]});let i,a;return e.Delete!==void 0&&(a=Wq(e.Delete),i=Ht,a.a("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),i+=a.toString()),n.m("POST").h(r).q(s).b(i),n.build()},PU=async(e,t)=>{const n=xe(e,t),r=T({},ee,{[Ie]:e[ke]});n.bp("/{Key+}"),n.p("Bucket",()=>e.Bucket,"{Bucket}",!1),n.p("Key",()=>e.Key,"{Key+}",!0);const s=T({[_l]:[,""],[ls]:[,e[wt]]});return n.m("DELETE").h(r).q(s).b(void 0),n.build()},NU=async(e,t)=>{const n=xe(e,t),r=T({},ee,{[Ie]:e[ke]});n.bp("/"),n.p("Bucket",()=>e.Bucket,"{Bucket}",!1);const s=T({[fy]:[,""]});return n.m("DELETE").h(r).q(s).b(void 0),n.build()},OU=async(e,t)=>{const n=xe(e,t),r=T({},ee,{[Ie]:e[ke],[Xt]:e[Yt]});n.bp("/"),n.p("Bucket",()=>e.Bucket,"{Bucket}",!1);const s=T({[_w]:[,""]});return n.m("GET").h(r).q(s).b(void 0),n.build()},DU=async(e,t)=>{const n=xe(e,t),r=T({},ee,{[Ie]:e[ke]});n.bp("/"),n.p("Bucket",()=>e.Bucket,"{Bucket}",!1);const s=T({[Oh]:[,""]});return n.m("GET").h(r).q(s).b(void 0),n.build()},LU=async(e,t)=>{const n=xe(e,t),r=T({},ee,{[Ie]:e[ke]});n.bp("/"),n.p("Bucket",()=>e.Bucket,"{Bucket}",!1);const s=T({[Nh]:[,""],[vr]:[,"GetBucketAnalyticsConfiguration"],[zs]:[,Ve(e[st],"Id")]});return n.m("GET").h(r).q(s).b(void 0),n.build()},MU=async(e,t)=>{const n=xe(e,t),r=T({},ee,{[Ie]:e[ke]});n.bp("/"),n.p("Bucket",()=>e.Bucket,"{Bucket}",!1);const s=T({[ny]:[,""]});return n.m("GET").h(r).q(s).b(void 0),n.build()},FU=async(e,t)=>{const n=xe(e,t),r=T({},ee,{[Ie]:e[ke]});n.bp("/"),n.p("Bucket",()=>e.Bucket,"{Bucket}",!1);const s=T({[ry]:[,""]});return n.m("GET").h(r).q(s).b(void 0),n.build()},zU=async(e,t)=>{const n=xe(e,t),r=T({},ee,{[Ie]:e[ke]});n.bp("/"),n.p("Bucket",()=>e.Bucket,"{Bucket}",!1);const s=T({[zh]:[,""],[vr]:[,"GetBucketIntelligentTieringConfiguration"],[zs]:[,Ve(e[st],"Id")]});return n.m("GET").h(r).q(s).b(void 0),n.build()},UU=async(e,t)=>{const n=xe(e,t),r=T({},ee,{[Ie]:e[ke]});n.bp("/"),n.p("Bucket",()=>e.Bucket,"{Bucket}",!1);const s=T({[Fh]:[,""],[vr]:[,"GetBucketInventoryConfiguration"],[zs]:[,Ve(e[st],"Id")]});return n.m("GET").h(r).q(s).b(void 0),n.build()},$U=async(e,t)=>{const n=xe(e,t),r=T({},ee,{[Ie]:e[ke]});n.bp("/"),n.p("Bucket",()=>e.Bucket,"{Bucket}",!1);const s=T({[ay]:[,""]});return n.m("GET").h(r).q(s).b(void 0),n.build()},HU=async(e,t)=>{const n=xe(e,t),r=T({},ee,{[Ie]:e[ke]});n.bp("/"),n.p("Bucket",()=>e.Bucket,"{Bucket}",!1);const s=T({[Iw]:[,""]});return n.m("GET").h(r).q(s).b(void 0),n.build()},qU=async(e,t)=>{const n=xe(e,t),r=T({},ee,{[Ie]:e[ke]});n.bp("/"),n.p("Bucket",()=>e.Bucket,"{Bucket}",!1);const s=T({[Rw]:[,""]});return n.m("GET").h(r).q(s).b(void 0),n.build()},jU=async(e,t)=>{const n=xe(e,t),r=T({},ee,{[Ie]:e[ke]});n.bp("/"),n.p("Bucket",()=>e.Bucket,"{Bucket}",!1);const s=T({[oy]:[,""]});return n.m("GET").h(r).q(s).b(void 0),n.build()},WU=async(e,t)=>{const n=xe(e,t),r=T({},ee,{[Ie]:e[ke]});n.bp("/"),n.p("Bucket",()=>e.Bucket,"{Bucket}",!1);const s=T({[cy]:[,""]});return n.m("GET").h(r).q(s).b(void 0),n.build()},GU=async(e,t)=>{const n=xe(e,t),r=T({},ee,{[Ie]:e[ke]});n.bp("/"),n.p("Bucket",()=>e.Bucket,"{Bucket}",!1);const s=T({[Uh]:[,""],[vr]:[,"GetBucketMetricsConfiguration"],[zs]:[,Ve(e[st],"Id")]});return n.m("GET").h(r).q(s).b(void 0),n.build()},VU=async(e,t)=>{const n=xe(e,t),r=T({},ee,{[Ie]:e[ke]});n.bp("/"),n.p("Bucket",()=>e.Bucket,"{Bucket}",!1);const s=T({[Bw]:[,""]});return n.m("GET").h(r).q(s).b(void 0),n.build()},KU=async(e,t)=>{const n=xe(e,t),r=T({},ee,{[Ie]:e[ke]});n.bp("/"),n.p("Bucket",()=>e.Bucket,"{Bucket}",!1);const s=T({[uy]:[,""]});return n.m("GET").h(r).q(s).b(void 0),n.build()},YU=async(e,t)=>{const n=xe(e,t),r=T({},ee,{[Ie]:e[ke]});n.bp("/"),n.p("Bucket",()=>e.Bucket,"{Bucket}",!1);const s=T({[dy]:[,""]});return n.m("GET").h(r).q(s).b(void 0),n.build()},XU=async(e,t)=>{const n=xe(e,t),r=T({},ee,{[Ie]:e[ke]});n.bp("/"),n.p("Bucket",()=>e.Bucket,"{Bucket}",!1);const s=T({[sQ]:[,""]});return n.m("GET").h(r).q(s).b(void 0),n.build()},QU=async(e,t)=>{const n=xe(e,t),r=T({},ee,{[Ie]:e[ke]});n.bp("/"),n.p("Bucket",()=>e.Bucket,"{Bucket}",!1);const s=T({[hy]:[,""]});return n.m("GET").h(r).q(s).b(void 0),n.build()},ZU=async(e,t)=>{const n=xe(e,t),r=T({},ee,{[Ie]:e[ke]});n.bp("/"),n.p("Bucket",()=>e.Bucket,"{Bucket}",!1);const s=T({[Nw]:[,""]});return n.m("GET").h(r).q(s).b(void 0),n.build()},JU=async(e,t)=>{const n=xe(e,t),r=T({},ee,{[Ie]:e[ke]});n.bp("/"),n.p("Bucket",()=>e.Bucket,"{Bucket}",!1);const s=T({[_l]:[,""]});return n.m("GET").h(r).q(s).b(void 0),n.build()},e7=async(e,t)=>{const n=xe(e,t),r=T({},ee,{[Ie]:e[ke]});n.bp("/"),n.p("Bucket",()=>e.Bucket,"{Bucket}",!1);const s=T({[qw]:[,""]});return n.m("GET").h(r).q(s).b(void 0),n.build()},t7=async(e,t)=>{const n=xe(e,t),r=T({},ee,{[Ie]:e[ke]});n.bp("/"),n.p("Bucket",()=>e.Bucket,"{Bucket}",!1);const s=T({[my]:[,""]});return n.m("GET").h(r).q(s).b(void 0),n.build()},n7=async(e,t)=>{const n=xe(e,t),r=T({},ee,{[vl]:e[zu],[sy]:[()=>ee(e[Qf]),()=>Dn(e[Qf]).toString()],[Gu]:e[Ph],[iy]:[()=>ee(e[Zf]),()=>Dn(e[Zf]).toString()],[Ow]:e[fw],[Cr]:e[rr],[Xs]:e[Ys],[xr]:e[sr],[Xt]:e[Yt],[Ie]:e[ke],[Vw]:e[GT]});n.bp("/{Key+}"),n.p("Bucket",()=>e.Bucket,"{Bucket}",!1),n.p("Key",()=>e.Key,"{Key+}",!0);const s=T({[vr]:[,"GetObject"],[Dw]:[,e[hw]],[Lw]:[,e[mw]],[Mw]:[,e[bw]],[Fw]:[,e[gw]],[zw]:[,e[pw]],[Uw]:[()=>e.ResponseExpires!==void 0,()=>Dn(e[yw]).toString()],[ls]:[,e[wt]],[$h]:[()=>e.PartNumber!==void 0,()=>e[ns].toString()]});return n.m("GET").h(r).q(s).b(void 0),n.build()},r7=async(e,t)=>{const n=xe(e,t),r=T({},ee,{[Xt]:e[Yt],[Ie]:e[ke]});n.bp("/{Key+}"),n.p("Bucket",()=>e.Bucket,"{Bucket}",!1),n.p("Key",()=>e.Key,"{Key+}",!0);const s=T({[Oh]:[,""],[ls]:[,e[wt]]});return n.m("GET").h(r).q(s).b(void 0),n.build()},s7=async(e,t)=>{const n=xe(e,t),r=T({},ee,{[fZ]:[()=>ee(e[ki]),()=>e[ki].toString()],[bZ]:e[na],[Cr]:e[rr],[Xs]:e[Ys],[xr]:e[sr],[Xt]:e[Yt],[Ie]:e[ke],[hZ]:[()=>ee(e[hx]),()=>(e[hx]||[]).map(Ah).join(", ")]});n.bp("/{Key+}"),n.p("Bucket",()=>e.Bucket,"{Bucket}",!1),n.p("Key",()=>e.Key,"{Key+}",!0);const s=T({[GX]:[,""],[ls]:[,e[wt]]});return n.m("GET").h(r).q(s).b(void 0),n.build()},i7=async(e,t)=>{const n=xe(e,t),r=T({},ee,{[Xt]:e[Yt],[Ie]:e[ke]});n.bp("/{Key+}"),n.p("Bucket",()=>e.Bucket,"{Bucket}",!1),n.p("Key",()=>e.Key,"{Key+}",!0);const s=T({[kw]:[,""],[ls]:[,e[wt]]});return n.m("GET").h(r).q(s).b(void 0),n.build()},a7=async(e,t)=>{const n=xe(e,t),r=T({},ee,{[Ie]:e[ke]});n.bp("/"),n.p("Bucket",()=>e.Bucket,"{Bucket}",!1);const s=T({[Pw]:[,""]});return n.m("GET").h(r).q(s).b(void 0),n.build()},o7=async(e,t)=>{const n=xe(e,t),r=T({},ee,{[Xt]:e[Yt],[Ie]:e[ke]});n.bp("/{Key+}"),n.p("Bucket",()=>e.Bucket,"{Bucket}",!1),n.p("Key",()=>e.Key,"{Key+}",!0);const s=T({[$w]:[,""],[ls]:[,e[wt]]});return n.m("GET").h(r).q(s).b(void 0),n.build()},c7=async(e,t)=>{const n=xe(e,t),r=T({},ee,{[Ie]:e[ke],[Xt]:e[Yt]});n.bp("/{Key+}"),n.p("Bucket",()=>e.Bucket,"{Bucket}",!1),n.p("Key",()=>e.Key,"{Key+}",!0);const s=T({[_l]:[,""],[ls]:[,e[wt]]});return n.m("GET").h(r).q(s).b(void 0),n.build()},l7=async(e,t)=>{const n=xe(e,t),r=T({},ee,{[Xt]:e[Yt],[Ie]:e[ke]});n.bp("/{Key+}"),n.p("Bucket",()=>e.Bucket,"{Bucket}",!1),n.p("Key",()=>e.Key,"{Key+}",!0);const s=T({[fQ]:[,""]});return n.m("GET").h(r).q(s).b(void 0),n.build()},u7=async(e,t)=>{const n=xe(e,t),r=T({},ee,{[Ie]:e[ke]});n.bp("/"),n.p("Bucket",()=>e.Bucket,"{Bucket}",!1);const s=T({[fy]:[,""]});return n.m("GET").h(r).q(s).b(void 0),n.build()},d7=async(e,t)=>{const n=xe(e,t),r=T({},ee,{[Ie]:e[ke]});return n.bp("/"),n.p("Bucket",()=>e.Bucket,"{Bucket}",!1),n.m("HEAD").h(r).b(void 0),n.build()},f7=async(e,t)=>{const n=xe(e,t),r=T({},ee,{[vl]:e[zu],[sy]:[()=>ee(e[Qf]),()=>Dn(e[Qf]).toString()],[Gu]:e[Ph],[iy]:[()=>ee(e[Zf]),()=>Dn(e[Zf]).toString()],[Ow]:e[fw],[Cr]:e[rr],[Xs]:e[Ys],[xr]:e[sr],[Xt]:e[Yt],[Ie]:e[ke],[Vw]:e[GT]});n.bp("/{Key+}"),n.p("Bucket",()=>e.Bucket,"{Bucket}",!1),n.p("Key",()=>e.Key,"{Key+}",!0);const s=T({[Dw]:[,e[hw]],[Lw]:[,e[mw]],[Mw]:[,e[bw]],[Fw]:[,e[gw]],[zw]:[,e[pw]],[Uw]:[()=>e.ResponseExpires!==void 0,()=>Dn(e[yw]).toString()],[ls]:[,e[wt]],[$h]:[()=>e.PartNumber!==void 0,()=>e[ns].toString()]});return n.m("HEAD").h(r).q(s).b(void 0),n.build()},h7=async(e,t)=>{const n=xe(e,t),r=T({},ee,{[Ie]:e[ke]});n.bp("/"),n.p("Bucket",()=>e.Bucket,"{Bucket}",!1);const s=T({[Nh]:[,""],[vr]:[,"ListBucketAnalyticsConfigurations"],[No]:[,e[en]]});return n.m("GET").h(r).q(s).b(void 0),n.build()},m7=async(e,t)=>{const n=xe(e,t),r=T({},ee,{[Ie]:e[ke]});n.bp("/"),n.p("Bucket",()=>e.Bucket,"{Bucket}",!1);const s=T({[zh]:[,""],[vr]:[,"ListBucketIntelligentTieringConfigurations"],[No]:[,e[en]]});return n.m("GET").h(r).q(s).b(void 0),n.build()},b7=async(e,t)=>{const n=xe(e,t),r=T({},ee,{[Ie]:e[ke]});n.bp("/"),n.p("Bucket",()=>e.Bucket,"{Bucket}",!1);const s=T({[Fh]:[,""],[vr]:[,"ListBucketInventoryConfigurations"],[No]:[,e[en]]});return n.m("GET").h(r).q(s).b(void 0),n.build()},g7=async(e,t)=>{const n=xe(e,t),r=T({},ee,{[Ie]:e[ke]});n.bp("/"),n.p("Bucket",()=>e.Bucket,"{Bucket}",!1);const s=T({[Uh]:[,""],[vr]:[,"ListBucketMetricsConfigurations"],[No]:[,e[en]]});return n.m("GET").h(r).q(s).b(void 0),n.build()},p7=async(e,t)=>{const n=xe(e,t),r={};n.bp("/");const s=T({[vr]:[,"ListBuckets"],[eQ]:[()=>e.MaxBuckets!==void 0,()=>e[LY].toString()],[No]:[,e[en]],[Vu]:[,e[Oe]],[VX]:[,e[cu]]});return n.m("GET").h(r).q(s).b(void 0),n.build()},y7=async(e,t)=>{const n=xe(e,t),r={};n.bp("/");const s=T({[vr]:[,"ListDirectoryBuckets"],[No]:[,e[en]],[tQ]:[()=>e.MaxDirectoryBuckets!==void 0,()=>e[zY].toString()]});return n.m("GET").h(r).q(s).b(void 0),n.build()},E7=async(e,t)=>{const n=xe(e,t),r=T({},ee,{[Ie]:e[ke],[Xt]:e[Yt]});n.bp("/"),n.p("Bucket",()=>e.Bucket,"{Bucket}",!1);const s=T({[Hw]:[,""],[Dh]:[,e[Nr]],[Lh]:[,e[Dr]],[Aw]:[,e[ta]],[rQ]:[()=>e.MaxUploads!==void 0,()=>e[Yd].toString()],[Vu]:[,e[Oe]],[hQ]:[,e[bf]]});return n.m("GET").h(r).q(s).b(void 0),n.build()},C7=async(e,t)=>{const n=xe(e,t),r=T({},ee,{[Xt]:e[Yt],[Ie]:e[ke],[Ey]:[()=>ee(e[Zc]),()=>(e[Zc]||[]).map(Ah).join(", ")]});n.bp("/"),n.p("Bucket",()=>e.Bucket,"{Bucket}",!1);const s=T({[Dh]:[,e[Nr]],[Lh]:[,e[Dr]],[JX]:[,e[Vd]],[ly]:[()=>e.MaxKeys!==void 0,()=>e[Rs].toString()],[Vu]:[,e[Oe]]});return n.m("GET").h(r).q(s).b(void 0),n.build()},x7=async(e,t)=>{const n=xe(e,t),r=T({},ee,{[Xt]:e[Yt],[Ie]:e[ke],[Ey]:[()=>ee(e[Zc]),()=>(e[Zc]||[]).map(Ah).join(", ")]});n.bp("/"),n.p("Bucket",()=>e.Bucket,"{Bucket}",!1);const s=T({[XX]:[,"2"],[Dh]:[,e[Nr]],[Lh]:[,e[Dr]],[ly]:[()=>e.MaxKeys!==void 0,()=>e[Rs].toString()],[Vu]:[,e[Oe]],[No]:[,e[en]],[YX]:[()=>e.FetchOwner!==void 0,()=>e[eY].toString()],[lQ]:[,e[of]]});return n.m("GET").h(r).q(s).b(void 0),n.build()},v7=async(e,t)=>{const n=xe(e,t),r=T({},ee,{[Ie]:e[ke],[Xt]:e[Yt],[Ey]:[()=>ee(e[Zc]),()=>(e[Zc]||[]).map(Ah).join(", ")]});n.bp("/"),n.p("Bucket",()=>e.Bucket,"{Bucket}",!1);const s=T({[mQ]:[,""],[Dh]:[,e[Nr]],[Lh]:[,e[Dr]],[Aw]:[,e[ta]],[ly]:[()=>e.MaxKeys!==void 0,()=>e[Rs].toString()],[Vu]:[,e[Oe]],[bQ]:[,e[pf]]});return n.m("GET").h(r).q(s).b(void 0),n.build()},_7=async(e,t)=>{const n=xe(e,t),r=T({},ee,{[Xt]:e[Yt],[Ie]:e[ke],[Cr]:e[rr],[Xs]:e[Ys],[xr]:e[sr]});n.bp("/{Key+}"),n.p("Bucket",()=>e.Bucket,"{Bucket}",!1),n.p("Key",()=>e.Key,"{Key+}",!0);const s=T({[vr]:[,"ListParts"],[nQ]:[()=>e.MaxParts!==void 0,()=>e[ki].toString()],[iQ]:[,e[na]],[Ku]:[,Ve(e[as],"UploadId")]});return n.m("GET").h(r).q(s).b(void 0),n.build()},S7=async(e,t)=>{const n=xe(e,t),r=T({},ee,{"content-type":"application/xml",[Ie]:e[ke],[pn]:e[Et]});n.bp("/"),n.p("Bucket",()=>e.Bucket,"{Bucket}",!1);const s=T({[_w]:[,""]});let i,a;return e.AccelerateConfiguration!==void 0&&(a=xq(e.AccelerateConfiguration),i=Ht,a.a("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),i+=a.toString()),n.m("PUT").h(r).q(s).b(i),n.build()},T7=async(e,t)=>{const n=xe(e,t),r=T({},ee,{"content-type":"application/xml",[Sl]:e[dl],[On]:e[Nn],[pn]:e[Et],[wl]:e[pl],[Al]:e[yl],[kl]:e[El],[py]:e[Kp],[Il]:e[Cl],[Ie]:e[ke]});n.bp("/"),n.p("Bucket",()=>e.Bucket,"{Bucket}",!1);const s=T({[Oh]:[,""]});let i,a;return e.AccessControlPolicy!==void 0&&(a=TT(e.AccessControlPolicy),i=Ht,a.a("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),i+=a.toString()),n.m("PUT").h(r).q(s).b(i),n.build()},w7=async(e,t)=>{const n=xe(e,t),r=T({},ee,{"content-type":"application/xml",[Ie]:e[ke]});n.bp("/"),n.p("Bucket",()=>e.Bucket,"{Bucket}",!1);const s=T({[Nh]:[,""],[zs]:[,Ve(e[st],"Id")]});let i,a;return e.AnalyticsConfiguration!==void 0&&(a=Aq(e.AnalyticsConfiguration),i=Ht,a.a("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),i+=a.toString()),n.m("PUT").h(r).q(s).b(i),n.build()},A7=async(e,t)=>{const n=xe(e,t),r=T({},ee,{"content-type":"application/xml",[On]:e[Nn],[pn]:e[Et],[Ie]:e[ke]});n.bp("/"),n.p("Bucket",()=>e.Bucket,"{Bucket}",!1);const s=T({[ny]:[,""]});let i,a;return e.CORSConfiguration!==void 0&&(a=Fq(e.CORSConfiguration),i=Ht,a.a("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),i+=a.toString()),n.m("PUT").h(r).q(s).b(i),n.build()},k7=async(e,t)=>{const n=xe(e,t),r=T({},ee,{"content-type":"application/xml",[On]:e[Nn],[pn]:e[Et],[Ie]:e[ke]});n.bp("/"),n.p("Bucket",()=>e.Bucket,"{Bucket}",!1);const s=T({[ry]:[,""]});let i,a;return e.ServerSideEncryptionConfiguration!==void 0&&(a=_W(e.ServerSideEncryptionConfiguration),i=Ht,a.a("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),i+=a.toString()),n.m("PUT").h(r).q(s).b(i),n.build()},I7=async(e,t)=>{const n=xe(e,t),r=T({},ee,{"content-type":"application/xml",[Ie]:e[ke]});n.bp("/"),n.p("Bucket",()=>e.Bucket,"{Bucket}",!1);const s=T({[zh]:[,""],[zs]:[,Ve(e[st],"Id")]});let i,a;return e.IntelligentTieringConfiguration!==void 0&&(a=aj(e.IntelligentTieringConfiguration),i=Ht,a.a("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),i+=a.toString()),n.m("PUT").h(r).q(s).b(i),n.build()},R7=async(e,t)=>{const n=xe(e,t),r=T({},ee,{"content-type":"application/xml",[Ie]:e[ke]});n.bp("/"),n.p("Bucket",()=>e.Bucket,"{Bucket}",!1);const s=T({[Fh]:[,""],[zs]:[,Ve(e[st],"Id")]});let i,a;return e.InventoryConfiguration!==void 0&&(a=cj(e.InventoryConfiguration),i=Ht,a.a("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),i+=a.toString()),n.m("PUT").h(r).q(s).b(i),n.build()},B7=async(e,t)=>{const n=xe(e,t),r=T({},ee,{"content-type":"application/xml",[pn]:e[Et],[Ie]:e[ke],[xy]:e[ty]});n.bp("/"),n.p("Bucket",()=>e.Bucket,"{Bucket}",!1);const s=T({[ay]:[,""]});let i,a;return e.LifecycleConfiguration!==void 0&&(a=Pq(e.LifecycleConfiguration),a=a.n("LifecycleConfiguration"),i=Ht,a.a("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),i+=a.toString()),n.m("PUT").h(r).q(s).b(i),n.build()},P7=async(e,t)=>{const n=xe(e,t),r=T({},ee,{"content-type":"application/xml",[On]:e[Nn],[pn]:e[Et],[Ie]:e[ke]});n.bp("/"),n.p("Bucket",()=>e.Bucket,"{Bucket}",!1);const s=T({[Rw]:[,""]});let i,a;return e.BucketLoggingStatus!==void 0&&(a=Nq(e.BucketLoggingStatus),i=Ht,a.a("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),i+=a.toString()),n.m("PUT").h(r).q(s).b(i),n.build()},N7=async(e,t)=>{const n=xe(e,t),r=T({},ee,{"content-type":"application/xml",[Ie]:e[ke]});n.bp("/"),n.p("Bucket",()=>e.Bucket,"{Bucket}",!1);const s=T({[Uh]:[,""],[zs]:[,Ve(e[st],"Id")]});let i,a;return e.MetricsConfiguration!==void 0&&(a=Dj(e.MetricsConfiguration),i=Ht,a.a("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),i+=a.toString()),n.m("PUT").h(r).q(s).b(i),n.build()},O7=async(e,t)=>{const n=xe(e,t),r=T({},ee,{"content-type":"application/xml",[Ie]:e[ke],[SZ]:[()=>ee(e[gx]),()=>e[gx].toString()]});n.bp("/"),n.p("Bucket",()=>e.Bucket,"{Bucket}",!1);const s=T({[Bw]:[,""]});let i,a;return e.NotificationConfiguration!==void 0&&(a=Uj(e.NotificationConfiguration),i=Ht,a.a("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),i+=a.toString()),n.m("PUT").h(r).q(s).b(i),n.build()},D7=async(e,t)=>{const n=xe(e,t),r=T({},ee,{"content-type":"application/xml",[On]:e[Nn],[Ie]:e[ke],[pn]:e[Et]});n.bp("/"),n.p("Bucket",()=>e.Bucket,"{Bucket}",!1);const s=T({[uy]:[,""]});let i,a;return e.OwnershipControls!==void 0&&(a=Yj(e.OwnershipControls),i=Ht,a.a("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),i+=a.toString()),n.m("PUT").h(r).q(s).b(i),n.build()},L7=async(e,t)=>{const n=xe(e,t),r=T({},ee,{"content-type":"text/plain",[On]:e[Nn],[pn]:e[Et],[xQ]:[()=>ee(e[tx]),()=>e[tx].toString()],[Ie]:e[ke]});n.bp("/"),n.p("Bucket",()=>e.Bucket,"{Bucket}",!1);const s=T({[dy]:[,""]});let i,a;return e.Policy!==void 0&&(a=e.Policy,i=a),n.m("PUT").h(r).q(s).b(i),n.build()},M7=async(e,t)=>{const n=xe(e,t),r=T({},ee,{"content-type":"application/xml",[On]:e[Nn],[pn]:e[Et],[Gw]:e[xw],[Ie]:e[ke]});n.bp("/"),n.p("Bucket",()=>e.Bucket,"{Bucket}",!1);const s=T({[hy]:[,""]});let i,a;return e.ReplicationConfiguration!==void 0&&(a=aW(e.ReplicationConfiguration),i=Ht,a.a("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),i+=a.toString()),n.m("PUT").h(r).q(s).b(i),n.build()},F7=async(e,t)=>{const n=xe(e,t),r=T({},ee,{"content-type":"application/xml",[On]:e[Nn],[pn]:e[Et],[Ie]:e[ke]});n.bp("/"),n.p("Bucket",()=>e.Bucket,"{Bucket}",!1);const s=T({[Nw]:[,""]});let i,a;return e.RequestPaymentConfiguration!==void 0&&(a=fW(e.RequestPaymentConfiguration),i=Ht,a.a("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),i+=a.toString()),n.m("PUT").h(r).q(s).b(i),n.build()},z7=async(e,t)=>{const n=xe(e,t),r=T({},ee,{"content-type":"application/xml",[On]:e[Nn],[pn]:e[Et],[Ie]:e[ke]});n.bp("/"),n.p("Bucket",()=>e.Bucket,"{Bucket}",!1);const s=T({[_l]:[,""]});let i,a;return e.Tagging!==void 0&&(a=Hp(e.Tagging),i=Ht,a.a("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),i+=a.toString()),n.m("PUT").h(r).q(s).b(i),n.build()},U7=async(e,t)=>{const n=xe(e,t),r=T({},ee,{"content-type":"application/xml",[On]:e[Nn],[pn]:e[Et],[yy]:e[Yp],[Ie]:e[ke]});n.bp("/"),n.p("Bucket",()=>e.Bucket,"{Bucket}",!1);const s=T({[qw]:[,""]});let i,a;return e.VersioningConfiguration!==void 0&&(a=qW(e.VersioningConfiguration),i=Ht,a.a("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),i+=a.toString()),n.m("PUT").h(r).q(s).b(i),n.build()},$7=async(e,t)=>{const n=xe(e,t),r=T({},ee,{"content-type":"application/xml",[On]:e[Nn],[pn]:e[Et],[Ie]:e[ke]});n.bp("/"),n.p("Bucket",()=>e.Bucket,"{Bucket}",!1);const s=T({[my]:[,""]});let i,a;return e.WebsiteConfiguration!==void 0&&(a=jW(e.WebsiteConfiguration),i=Ht,a.a("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),i+=a.toString()),n.m("PUT").h(r).q(s).b(i),n.build()},H7=async(e,t)=>{const n=xe(e,t),r=T({},ee,{...e.Metadata!==void 0&&Object.keys(e.Metadata).reduce((o,c)=>(o[`x-amz-meta-${c.toLowerCase()}`]=e.Metadata[c],o),{}),[Wu]:e[gl]||"application/octet-stream",[Sl]:e[dl],[$u]:e[fl],[Hu]:e[hl],[qu]:e[ml],[ju]:e[bl],[vo]:[()=>ee(e[ua]),()=>e[ua].toString()],[On]:e[Nn],[pn]:e[Et],[Oo]:e[dn],[Do]:e[fn],[Lo]:e[hn],[Mo]:e[mn],[Fo]:e[bn],[_o]:[()=>ee(e[mi]),()=>Dn(e[mi]).toString()],[vl]:e[zu],[Gu]:e[Ph],[wl]:e[pl],[Al]:e[yl],[kl]:e[El],[Il]:e[Cl],[wZ]:[()=>ee(e[_x]),()=>e[_x].toString()],[Es]:e[Fr],[Zu]:e[_t],[Ju]:e[Uu],[Cr]:e[rr],[Xs]:e[Ys],[xr]:e[sr],[Cs]:e[wr],[pa]:e[ga],[Ln]:[()=>ee(e[En]),()=>e[En].toString()],[Xt]:e[Yt],[Cy]:e[mo],[Qu]:e[xl],[So]:[()=>ee(e[bi]),()=>ko(e[bi]).toString()],[Xu]:e[Po],[Ie]:e[ke]});n.bp("/{Key+}"),n.p("Bucket",()=>e.Bucket,"{Bucket}",!1),n.p("Key",()=>e.Key,"{Key+}",!0);const s=T({[vr]:[,"PutObject"]});let i,a;return e.Body!==void 0&&(a=e.Body,i=a),n.m("PUT").h(r).q(s).b(i),n.build()},q7=async(e,t)=>{const n=xe(e,t),r=T({},ee,{"content-type":"application/xml",[Sl]:e[dl],[On]:e[Nn],[pn]:e[Et],[wl]:e[pl],[Al]:e[yl],[kl]:e[El],[py]:e[Kp],[Il]:e[Cl],[Xt]:e[Yt],[Ie]:e[ke]});n.bp("/{Key+}"),n.p("Bucket",()=>e.Bucket,"{Bucket}",!1),n.p("Key",()=>e.Key,"{Key+}",!0);const s=T({[Oh]:[,""],[ls]:[,e[wt]]});let i,a;return e.AccessControlPolicy!==void 0&&(a=TT(e.AccessControlPolicy),i=Ht,a.a("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),i+=a.toString()),n.m("PUT").h(r).q(s).b(i),n.build()},j7=async(e,t)=>{const n=xe(e,t),r=T({},ee,{"content-type":"application/xml",[Xt]:e[Yt],[On]:e[Nn],[pn]:e[Et],[Ie]:e[ke]});n.bp("/{Key+}"),n.p("Bucket",()=>e.Bucket,"{Bucket}",!1),n.p("Key",()=>e.Key,"{Key+}",!0);const s=T({[kw]:[,""],[ls]:[,e[wt]]});let i,a;return e.LegalHold!==void 0&&(a=jj(e.LegalHold),a=a.n("LegalHold"),i=Ht,a.a("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),i+=a.toString()),n.m("PUT").h(r).q(s).b(i),n.build()},W7=async(e,t)=>{const n=xe(e,t),r=T({},ee,{"content-type":"application/xml",[Xt]:e[Yt],[Gw]:e[xw],[On]:e[Nn],[pn]:e[Et],[Ie]:e[ke]});n.bp("/"),n.p("Bucket",()=>e.Bucket,"{Bucket}",!1);const s=T({[Pw]:[,""]});let i,a;return e.ObjectLockConfiguration!==void 0&&(a=qj(e.ObjectLockConfiguration),i=Ht,a.a("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),i+=a.toString()),n.m("PUT").h(r).q(s).b(i),n.build()},G7=async(e,t)=>{const n=xe(e,t),r=T({},ee,{"content-type":"application/xml",[Xt]:e[Yt],[by]:[()=>ee(e[Qc]),()=>e[Qc].toString()],[On]:e[Nn],[pn]:e[Et],[Ie]:e[ke]});n.bp("/{Key+}"),n.p("Bucket",()=>e.Bucket,"{Bucket}",!1),n.p("Key",()=>e.Key,"{Key+}",!0);const s=T({[$w]:[,""],[ls]:[,e[wt]]});let i,a;return e.Retention!==void 0&&(a=Wj(e.Retention),a=a.n("Retention"),i=Ht,a.a("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),i+=a.toString()),n.m("PUT").h(r).q(s).b(i),n.build()},V7=async(e,t)=>{const n=xe(e,t),r=T({},ee,{"content-type":"application/xml",[On]:e[Nn],[pn]:e[Et],[Ie]:e[ke],[Xt]:e[Yt]});n.bp("/{Key+}"),n.p("Bucket",()=>e.Bucket,"{Bucket}",!1),n.p("Key",()=>e.Key,"{Key+}",!0);const s=T({[_l]:[,""],[ls]:[,e[wt]]});let i,a;return e.Tagging!==void 0&&(a=Hp(e.Tagging),i=Ht,a.a("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),i+=a.toString()),n.m("PUT").h(r).q(s).b(i),n.build()},K7=async(e,t)=>{const n=xe(e,t),r=T({},ee,{"content-type":"application/xml",[On]:e[Nn],[pn]:e[Et],[Ie]:e[ke]});n.bp("/"),n.p("Bucket",()=>e.Bucket,"{Bucket}",!1);const s=T({[fy]:[,""]});let i,a;return e.PublicAccessBlockConfiguration!==void 0&&(a=eW(e.PublicAccessBlockConfiguration),i=Ht,a.a("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),i+=a.toString()),n.m("PUT").h(r).q(s).b(i),n.build()},Y7=async(e,t)=>{const n=xe(e,t),r=T({},ee,{[yZ]:e[xX],[vl]:e[qK],[Gu]:e[jK],[sy]:[()=>ee(e[nx]),()=>Dn(e[nx]).toString()],[iy]:[()=>ee(e[rx]),()=>Dn(e[rx]).toString()],[EZ]:e[AX],[xZ]:e[kX],[CZ]:[()=>ee(e[px]),()=>Dn(e[px]).toString()],[vZ]:[()=>ee(e[yx]),()=>Dn(e[yx]).toString()],[SQ]:e[UK]??ES()});n.bp("/{Key+}"),n.p("Bucket",()=>e.Bucket,"{Bucket}",!1),n.p("Key",()=>e.Key,"{Key+}",!0);const s=T({[aQ]:[,""]});return n.m("PUT").h(r).q(s).b(void 0),n.build()},X7=async(e,t)=>{const n=xe(e,t),r=T({},ee,{"content-type":"application/xml",[Xt]:e[Yt],[pn]:e[Et],[Ie]:e[ke]});n.bp("/{Key+}"),n.p("Bucket",()=>e.Bucket,"{Bucket}",!1),n.p("Key",()=>e.Key,"{Key+}",!0);const s=T({[oQ]:[,""],[ls]:[,e[wt]]});let i,a;return e.RestoreRequest!==void 0&&(a=mW(e.RestoreRequest),i=Ht,a.a("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),i+=a.toString()),n.m("POST").h(r).q(s).b(i),n.build()},Q7=async(e,t)=>{const n=xe(e,t),r=T({},ee,{"content-type":"application/xml",[Cr]:e[rr],[Xs]:e[Ys],[xr]:e[sr],[Ie]:e[ke]});n.bp("/{Key+}"),n.p("Bucket",()=>e.Bucket,"{Bucket}",!1),n.p("Key",()=>e.Key,"{Key+}",!0);const s=T({[uQ]:[,""],[dQ]:[,"2"]});let i;i=Ht;const a=new M(NX);return a.a("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),a.cc(e,rw),a.cc(e,nw),e[Za]!=null&&a.c(kT(e[Za]).n(Za)),e[ro]!=null&&a.c(IT(e[ro]).n(ro)),e[sf]!=null&&a.c(hW(e[sf]).n(sf)),e[lf]!=null&&a.c(CW(e[lf]).n(lf)),i+=a.toString(),n.m("POST").h(r).q(s).b(i),n.build()},Z7=async(e,t)=>{const n=xe(e,t),r=T({},ee,{"content-type":"application/xml",[On]:e[Nn],[pn]:e[Et],[Ie]:e[ke]});n.bp("/"),n.p("Bucket",()=>e.Bucket,"{Bucket}",!1);const s=T({[QX]:[,""]});let i,a;return e.InventoryTableConfiguration!==void 0&&(a=gj(e.InventoryTableConfiguration),a=a.n("InventoryTableConfiguration"),i=Ht,a.a("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),i+=a.toString()),n.m("PUT").h(r).q(s).b(i),n.build()},J7=async(e,t)=>{const n=xe(e,t),r=T({},ee,{"content-type":"application/xml",[On]:e[Nn],[pn]:e[Et],[Ie]:e[ke]});n.bp("/"),n.p("Bucket",()=>e.Bucket,"{Bucket}",!1);const s=T({[ZX]:[,""]});let i,a;return e.JournalTableConfiguration!==void 0&&(a=yj(e.JournalTableConfiguration),a=a.n("JournalTableConfiguration"),i=Ht,a.a("xmlns","http://s3.amazonaws.com/doc/2006-03-01/"),i+=a.toString()),n.m("PUT").h(r).q(s).b(i),n.build()},e$=async(e,t)=>{const n=xe(e,t),r=T({},ee,{"content-type":"application/octet-stream",[vo]:[()=>ee(e[ua]),()=>e[ua].toString()],[On]:e[Nn],[pn]:e[Et],[Oo]:e[dn],[Do]:e[fn],[Lo]:e[hn],[Mo]:e[mn],[Fo]:e[bn],[Cr]:e[rr],[Xs]:e[Ys],[xr]:e[sr],[Xt]:e[Yt],[Ie]:e[ke]});n.bp("/{Key+}"),n.p("Bucket",()=>e.Bucket,"{Bucket}",!1),n.p("Key",()=>e.Key,"{Key+}",!0);const s=T({[vr]:[,"UploadPart"],[$h]:[Ve(e.PartNumber,"PartNumber")!=null,()=>e[ns].toString()],[Ku]:[,Ve(e[as],"UploadId")]});let i,a;return e.Body!==void 0&&(a=e.Body,i=a),n.m("PUT").h(r).q(s).b(i),n.build()},t$=async(e,t)=>{const n=xe(e,t),r=T({},ee,{[Kw]:e[VT],[Yw]:e[KT],[Xw]:[()=>ee(e[Yf]),()=>Dn(e[Yf]).toString()],[Qw]:e[YT],[Zw]:[()=>ee(e[Xf]),()=>Dn(e[Xf]).toString()],[_Q]:e[MK],[Cr]:e[rr],[Xs]:e[Ys],[xr]:e[sr],[Jw]:e[XT],[e2]:e[QT],[t2]:e[ZT],[Xt]:e[Yt],[Ie]:e[ke],[i2]:e[tw]});n.bp("/{Key+}"),n.p("Bucket",()=>e.Bucket,"{Bucket}",!1),n.p("Key",()=>e.Key,"{Key+}",!0);const s=T({[vr]:[,"UploadPartCopy"],[$h]:[Ve(e.PartNumber,"PartNumber")!=null,()=>e[ns].toString()],[Ku]:[,Ve(e[as],"UploadId")]});return n.m("PUT").h(r).q(s).b(void 0),n.build()},n$=async(e,t)=>{const n=xe(e,t),r=T({},ee,{"x-amz-content-sha256":"UNSIGNED-PAYLOAD",...e.Metadata!==void 0&&Object.keys(e.Metadata).reduce((o,c)=>(o[`x-amz-meta-${c.toLowerCase()}`]=e.Metadata[c],o),{}),"content-type":"application/octet-stream",[pZ]:e[mX],[_Z]:e[vX],[aZ]:[()=>ee(e[bx]),()=>e[bx].toString()],[TQ]:e[Fd],[wQ]:e[zd],[AQ]:e[Gp],[kQ]:e[fl],[IQ]:e[hl],[RQ]:e[ml],[BQ]:e[bl],[vo]:[()=>ee(e[ua]),()=>e[ua].toString()],[PQ]:e[Vp],[NQ]:e[gl],[MQ]:e[dn],[FQ]:e[fn],[zQ]:e[hn],[UQ]:e[mn],[$Q]:e[bn],[HQ]:[()=>ee(e[qs]),()=>e[qs].toString()],[OQ]:e[tn],[DQ]:[()=>ee(e[mi]),()=>Dn(e[mi]).toString()],[qQ]:e[jn],[LQ]:[()=>ee(e[Bn]),()=>Dn(e[Bn]).toString()],[jQ]:[()=>ee(e[Jf]),()=>e[Jf].toString()],[VQ]:e[xl],[GQ]:e[Po],[KQ]:[()=>ee(e[bi]),()=>ko(e[bi]).toString()],[WQ]:[()=>ee(e[Jc]),()=>e[Jc].toString()],[QQ]:e[Jp],[XQ]:e[xn],[YQ]:e[ey],[JQ]:e[Fr],[nZ]:e[rr],[eZ]:e[wr],[rZ]:e[sr],[ZQ]:e[_t],[sZ]:[()=>ee(e[sh]),()=>e[sh].toString()],[iZ]:e[wt],[tZ]:[()=>ee(e[En]),()=>e[En].toString()]});n.bp("/WriteGetObjectResponse");let s,i;e.Body!==void 0&&(i=e.Body,s=i);let{hostname:a}=await t.endpoint();if(t.disableHostPrefix!==!0){if(a="{RequestRoute}."+a,e.RequestRoute===void 0)throw new Error("Empty value provided for input host prefix: RequestRoute.");if(a=a.replace("{RequestRoute}",e.RequestRoute),!J4(a))throw new Error("ValidationError: prefixed hostname must be hostname compatible.")}return n.hn(a),n.m("POST").h(r).b(s),n.build()},r$=async(e,t)=>{if(e.statusCode!==204&&e.statusCode>=300)return Se(e,t);const n=T({$metadata:fe(e),[xn]:[,e.headers[_n]]});return await tt(e.body,t),n},s$=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return Se(e,t);const n=T({$metadata:fe(e),[jn]:[,e.headers[Yu]],[Fr]:[,e.headers[Es]],[wt]:[,e.headers[pi]],[wr]:[,e.headers[Cs]],[En]:[()=>e.headers[Ln]!==void 0,()=>Nt(e.headers[Ln])],[xn]:[,e.headers[_n]]}),r=Ve(bt(await ut(e.body,t)),"body");return r[Bt]!=null&&(n[Bt]=D(r[Bt])),r[dn]!=null&&(n[dn]=D(r[dn])),r[fn]!=null&&(n[fn]=D(r[fn])),r[hn]!=null&&(n[hn]=D(r[hn])),r[mn]!=null&&(n[mn]=D(r[mn])),r[bn]!=null&&(n[bn]=D(r[bn])),r[gn]!=null&&(n[gn]=D(r[gn])),r[tn]!=null&&(n[tn]=D(r[tn])),r[gt]!=null&&(n[gt]=D(r[gt])),r[Ja]!=null&&(n[Ja]=D(r[Ja])),n},i$=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return Se(e,t);const n=T({$metadata:fe(e),[jn]:[,e.headers[Yu]],[JT]:[,e.headers[n2]],[wt]:[,e.headers[pi]],[Fr]:[,e.headers[Es]],[rr]:[,e.headers[Cr]],[sr]:[,e.headers[xr]],[wr]:[,e.headers[Cs]],[ga]:[,e.headers[pa]],[En]:[()=>e.headers[Ln]!==void 0,()=>Nt(e.headers[Ln])],[xn]:[,e.headers[_n]]}),r=bt(await ut(e.body,t));return n.CopyObjectResult=aG(r),n},a$=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return Se(e,t);const n=T({$metadata:fe(e),[Ja]:[,e.headers[Iw]],[ou]:[,e.headers[Ww]]});return await tt(e.body,t),n},o$=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return Se(e,t);const n=T({$metadata:fe(e)});return await tt(e.body,t),n},c$=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return Se(e,t);const n=T({$metadata:fe(e)});return await tt(e.body,t),n},l$=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return Se(e,t);const n=T({$metadata:fe(e),[jT]:[()=>e.headers[ih]!==void 0,()=>Ve(oa(e.headers[ih]))],[WT]:[,e.headers[jw]],[Fr]:[,e.headers[Es]],[rr]:[,e.headers[Cr]],[sr]:[,e.headers[xr]],[wr]:[,e.headers[Cs]],[ga]:[,e.headers[pa]],[En]:[()=>e.headers[Ln]!==void 0,()=>Nt(e.headers[Ln])],[xn]:[,e.headers[_n]],[Et]:[,e.headers[gy]],[gn]:[,e.headers[Tl]]}),r=Ve(bt(await ut(e.body,t)),"body");return r[Bt]!=null&&(n[Bt]=D(r[Bt])),r[gt]!=null&&(n[gt]=D(r[gt])),r[as]!=null&&(n[as]=D(r[as])),n},u$=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return Se(e,t);const n=T({$metadata:fe(e),[Fr]:[,e.headers[Es]],[wr]:[,e.headers[Cs]],[ga]:[,e.headers[pa]],[En]:[()=>e.headers[Ln]!==void 0,()=>Nt(e.headers[Ln])]}),r=Ve(bt(await ut(e.body,t)),"body");return r[Q0]!=null&&(n[Q0]=KV(r[Q0])),n},d$=async(e,t)=>{if(e.statusCode!==204&&e.statusCode>=300)return Se(e,t);const n=T({$metadata:fe(e)});return await tt(e.body,t),n},f$=async(e,t)=>{if(e.statusCode!==204&&e.statusCode>=300)return Se(e,t);const n=T({$metadata:fe(e)});return await tt(e.body,t),n},h$=async(e,t)=>{if(e.statusCode!==204&&e.statusCode>=300)return Se(e,t);const n=T({$metadata:fe(e)});return await tt(e.body,t),n},m$=async(e,t)=>{if(e.statusCode!==204&&e.statusCode>=300)return Se(e,t);const n=T({$metadata:fe(e)});return await tt(e.body,t),n},b$=async(e,t)=>{if(e.statusCode!==204&&e.statusCode>=300)return Se(e,t);const n=T({$metadata:fe(e)});return await tt(e.body,t),n},g$=async(e,t)=>{if(e.statusCode!==204&&e.statusCode>=300)return Se(e,t);const n=T({$metadata:fe(e)});return await tt(e.body,t),n},p$=async(e,t)=>{if(e.statusCode!==204&&e.statusCode>=300)return Se(e,t);const n=T({$metadata:fe(e)});return await tt(e.body,t),n},y$=async(e,t)=>{if(e.statusCode!==204&&e.statusCode>=300)return Se(e,t);const n=T({$metadata:fe(e)});return await tt(e.body,t),n},E$=async(e,t)=>{if(e.statusCode!==204&&e.statusCode>=300)return Se(e,t);const n=T({$metadata:fe(e)});return await tt(e.body,t),n},C$=async(e,t)=>{if(e.statusCode!==204&&e.statusCode>=300)return Se(e,t);const n=T({$metadata:fe(e)});return await tt(e.body,t),n},x$=async(e,t)=>{if(e.statusCode!==204&&e.statusCode>=300)return Se(e,t);const n=T({$metadata:fe(e)});return await tt(e.body,t),n},v$=async(e,t)=>{if(e.statusCode!==204&&e.statusCode>=300)return Se(e,t);const n=T({$metadata:fe(e)});return await tt(e.body,t),n},_$=async(e,t)=>{if(e.statusCode!==204&&e.statusCode>=300)return Se(e,t);const n=T({$metadata:fe(e)});return await tt(e.body,t),n},S$=async(e,t)=>{if(e.statusCode!==204&&e.statusCode>=300)return Se(e,t);const n=T({$metadata:fe(e)});return await tt(e.body,t),n},T$=async(e,t)=>{if(e.statusCode!==204&&e.statusCode>=300)return Se(e,t);const n=T({$metadata:fe(e)});return await tt(e.body,t),n},w$=async(e,t)=>{if(e.statusCode!==204&&e.statusCode>=300)return Se(e,t);const n=T({$metadata:fe(e),[qs]:[()=>e.headers[da]!==void 0,()=>Nt(e.headers[da])],[wt]:[,e.headers[pi]],[xn]:[,e.headers[_n]]});return await tt(e.body,t),n},A$=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return Se(e,t);const n=T({$metadata:fe(e),[xn]:[,e.headers[_n]]}),r=Ve(bt(await ut(e.body,t)),"body");return r.Deleted===""?n[xd]=[]:r[xd]!=null&&(n[xd]=fG(ot(r[xd]))),r.Error===""?n[ix]=[]:r[Ws]!=null&&(n[ix]=vG(ot(r[Ws]))),n},k$=async(e,t)=>{if(e.statusCode!==204&&e.statusCode>=300)return Se(e,t);const n=T({$metadata:fe(e),[wt]:[,e.headers[pi]]});return await tt(e.body,t),n},I$=async(e,t)=>{if(e.statusCode!==204&&e.statusCode>=300)return Se(e,t);const n=T({$metadata:fe(e)});return await tt(e.body,t),n},R$=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return Se(e,t);const n=T({$metadata:fe(e),[xn]:[,e.headers[_n]]}),r=Ve(bt(await ut(e.body,t)),"body");return r[Ue]!=null&&(n[Ue]=D(r[Ue])),n},B$=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return Se(e,t);const n=T({$metadata:fe(e)}),r=Ve(bt(await ut(e.body,t)),"body");return r.AccessControlList===""?n[Ru]=[]:r[Ha]!=null&&r[Ha][Pi]!=null&&(n[Ru]=LT(ot(r[Ha][Pi]))),r[Mt]!=null&&(n[Mt]=ba(r[Mt])),n},P$=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return Se(e,t);const n=T({$metadata:fe(e)}),r=bt(await ut(e.body,t));return n.AnalyticsConfiguration=PT(r),n},N$=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return Se(e,t);const n=T({$metadata:fe(e)}),r=Ve(bt(await ut(e.body,t)),"body");return r.CORSRule===""?n[Nb]=[]:r[Pb]!=null&&(n[Nb]=lG(ot(r[Pb]))),n},O$=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return Se(e,t);const n=T({$metadata:fe(e)}),r=bt(await ut(e.body,t));return n.ServerSideEncryptionConfiguration=WV(r),n},D$=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return Se(e,t);const n=T({$metadata:fe(e)}),r=bt(await ut(e.body,t));return n.IntelligentTieringConfiguration=FT(r),n},L$=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return Se(e,t);const n=T({$metadata:fe(e)}),r=bt(await ut(e.body,t));return n.InventoryConfiguration=zT(r),n},M$=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return Se(e,t);const n=T({$metadata:fe(e),[ty]:[,e.headers[xy]]}),r=Ve(bt(await ut(e.body,t)),"body");return r.Rule===""?n[Fs]=[]:r[ss]!=null&&(n[Fs]=QG(ot(r[ss]))),n},F$=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return Se(e,t);const n=T({$metadata:fe(e)}),r=Ve(bt(await ut(e.body,t)),"body");return r[Rc]!=null&&(n[Rc]=D(r[Rc])),n},z$=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return Se(e,t);const n=T({$metadata:fe(e)}),r=Ve(bt(await ut(e.body,t)),"body");return r[eo]!=null&&(n[eo]=ZG(r[eo])),n},U$=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return Se(e,t);const n=T({$metadata:fe(e)}),r=bt(await ut(e.body,t));return n.GetBucketMetadataConfigurationResult=kG(r),n},$$=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return Se(e,t);const n=T({$metadata:fe(e)}),r=bt(await ut(e.body,t));return n.GetBucketMetadataTableConfigurationResult=IG(r),n},H$=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return Se(e,t);const n=T({$metadata:fe(e)}),r=bt(await ut(e.body,t));return n.MetricsConfiguration=UT(r),n},q$=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return Se(e,t);const n=T({$metadata:fe(e)}),r=Ve(bt(await ut(e.body,t)),"body");return r[Ka]!=null&&(n[Ka]=_G(r[Ka])),r.CloudFunctionConfiguration===""?n[$b]=[]:r[ex]!=null&&(n[$b]=GG(ot(r[ex]))),r.QueueConfiguration===""?n[Vb]=[]:r[Gb]!=null&&(n[Vb]=IV(ot(r[Gb]))),r.TopicConfiguration===""?n[Jb]=[]:r[Zb]!=null&&(n[Jb]=lK(ot(r[Zb]))),n},j$=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return Se(e,t);const n=T({$metadata:fe(e)}),r=bt(await ut(e.body,t));return n.OwnershipControls=yV(r),n},W$=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return Se(e,t);const n=T({$metadata:fe(e)}),r=await fK(e.body,t);return n.Policy=D(r),n},G$=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return Se(e,t);const n=T({$metadata:fe(e)}),r=bt(await ut(e.body,t));return n.PolicyStatus=TV(r),n},V$=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return Se(e,t);const n=T({$metadata:fe(e)}),r=bt(await ut(e.body,t));return n.ReplicationConfiguration=OV(r),n},K$=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return Se(e,t);const n=T({$metadata:fe(e)}),r=Ve(bt(await ut(e.body,t)),"body");return r[Jd]!=null&&(n[Jd]=D(r[Jd])),n},Y$=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return Se(e,t);const n=T({$metadata:fe(e)}),r=Ve(bt(await ut(e.body,t)),"body");return r.TagSet===""?n[$s]=[]:r[$s]!=null&&r[$s][xt]!=null&&(n[$s]=Bo(ot(r[$s][xt]))),n},X$=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return Se(e,t);const n=T({$metadata:fe(e)}),r=Ve(bt(await ut(e.body,t)),"body");return r[qb]!=null&&(n[Kd]=D(r[qb])),r[Ue]!=null&&(n[Ue]=D(r[Ue])),n},Q$=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return Se(e,t);const n=T({$metadata:fe(e)}),r=Ve(bt(await ut(e.body,t)),"body");return r[Ya]!=null&&(n[Ya]=xG(r[Ya])),r[Qa]!=null&&(n[Qa]=PG(r[Qa])),r[io]!=null&&(n[io]=PV(r[io])),r.RoutingRules===""?n[Zo]=[]:r[Zo]!=null&&r[Zo][th]!=null&&(n[Zo]=$V(ot(r[Zo][th]))),n},Z$=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return Se(e,t);const n=T({$metadata:fe(e),[qs]:[()=>e.headers[da]!==void 0,()=>Nt(e.headers[da])],[Gp]:[,e.headers[Sw]],[jn]:[,e.headers[Yu]],[ey]:[,e.headers[r2]],[Bn]:[()=>e.headers[el]!==void 0,()=>Ve(oa(e.headers[el]))],[ua]:[()=>e.headers[vo]!==void 0,()=>yr(e.headers[vo])],[tn]:[,e.headers[Mh]],[dn]:[,e.headers[Oo]],[fn]:[,e.headers[Do]],[hn]:[,e.headers[Lo]],[mn]:[,e.headers[Mo]],[bn]:[,e.headers[Fo]],[gn]:[,e.headers[Tl]],[Jf]:[()=>e.headers[ah]!==void 0,()=>Gt(e.headers[ah])],[wt]:[,e.headers[pi]],[fl]:[,e.headers[$u]],[hl]:[,e.headers[Hu]],[ml]:[,e.headers[qu]],[bl]:[,e.headers[ju]],[Vp]:[,e.headers[Tw]],[gl]:[,e.headers[Wu]],[mi]:[()=>e.headers[_o]!==void 0,()=>Ve(oa(e.headers[_o]))],[ew]:[,e.headers[ww]],[Uu]:[,e.headers[Ju]],[Fr]:[,e.headers[Es]],[rr]:[,e.headers[Cr]],[sr]:[,e.headers[xr]],[wr]:[,e.headers[Cs]],[En]:[()=>e.headers[Ln]!==void 0,()=>Nt(e.headers[Ln])],[_t]:[,e.headers[Zu]],[xn]:[,e.headers[_n]],[Jp]:[,e.headers[s2]],[Jc]:[()=>e.headers[oh]!==void 0,()=>Gt(e.headers[oh])],[sh]:[()=>e.headers[ch]!==void 0,()=>Gt(e.headers[ch])],[xl]:[,e.headers[Qu]],[bi]:[()=>e.headers[So]!==void 0,()=>Ve(Kr(e.headers[So]))],[Po]:[,e.headers[Xu]],Metadata:[,Object.keys(e.headers).filter(s=>s.startsWith("x-amz-meta-")).reduce((s,i)=>(s[i.substring(11)]=e.headers[i],s),{})]}),r=e.body;return t.sdkStreamMixin(r),n.Body=r,n},J$=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return Se(e,t);const n=T({$metadata:fe(e),[xn]:[,e.headers[_n]]}),r=Ve(bt(await ut(e.body,t)),"body");return r.AccessControlList===""?n[Ru]=[]:r[Ha]!=null&&r[Ha][Pi]!=null&&(n[Ru]=LT(ot(r[Ha][Pi]))),r[Mt]!=null&&(n[Mt]=ba(r[Mt])),n},eH=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return Se(e,t);const n=T({$metadata:fe(e),[qs]:[()=>e.headers[da]!==void 0,()=>Nt(e.headers[da])],[Bn]:[()=>e.headers[el]!==void 0,()=>Ve(oa(e.headers[el]))],[wt]:[,e.headers[pi]],[xn]:[,e.headers[_n]]}),r=Ve(bt(await ut(e.body,t)),"body");return r[em]!=null&&(n[em]=nG(r[em])),r[tn]!=null&&(n[tn]=D(r[tn])),r[Em]!=null&&(n[Em]=RG(r[Em])),r[Cm]!=null&&(n[Cm]=yr(r[Cm])),r[_t]!=null&&(n[_t]=D(r[_t])),n},tH=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return Se(e,t);const n=T({$metadata:fe(e)}),r=bt(await ut(e.body,t));return n.LegalHold=fV(r),n},nH=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return Se(e,t);const n=T({$metadata:fe(e)}),r=bt(await ut(e.body,t));return n.ObjectLockConfiguration=dV(r),n},rH=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return Se(e,t);const n=T({$metadata:fe(e)}),r=bt(await ut(e.body,t));return n.Retention=hV(r),n},sH=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return Se(e,t);const n=T({$metadata:fe(e),[wt]:[,e.headers[pi]]}),r=Ve(bt(await ut(e.body,t)),"body");return r.TagSet===""?n[$s]=[]:r[$s]!=null&&r[$s][xt]!=null&&(n[$s]=Bo(ot(r[$s][xt]))),n},iH=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return Se(e,t);const n=T({$metadata:fe(e),[xn]:[,e.headers[_n]]}),r=e.body;return t.sdkStreamMixin(r),n.Body=r,n},aH=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return Se(e,t);const n=T({$metadata:fe(e)}),r=bt(await ut(e.body,t));return n.PublicAccessBlockConfiguration=AV(r),n},oH=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return Se(e,t);const n=T({$metadata:fe(e),[ou]:[,e.headers[Ww]],[RK]:[,e.headers[yQ]],[AK]:[,e.headers[pQ]],[cu]:[,e.headers[CQ]],[EK]:[()=>e.headers[Tx]!==void 0,()=>Nt(e.headers[Tx])]});return await tt(e.body,t),n},cH=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return Se(e,t);const n=T({$metadata:fe(e),[qs]:[()=>e.headers[da]!==void 0,()=>Nt(e.headers[da])],[Gp]:[,e.headers[Sw]],[jn]:[,e.headers[Yu]],[ey]:[,e.headers[r2]],[CK]:[,e.headers[gQ]],[Bn]:[()=>e.headers[el]!==void 0,()=>Ve(oa(e.headers[el]))],[ua]:[()=>e.headers[vo]!==void 0,()=>yr(e.headers[vo])],[dn]:[,e.headers[Oo]],[fn]:[,e.headers[Do]],[hn]:[,e.headers[Lo]],[mn]:[,e.headers[Mo]],[bn]:[,e.headers[Fo]],[gn]:[,e.headers[Tl]],[tn]:[,e.headers[Mh]],[Jf]:[()=>e.headers[ah]!==void 0,()=>Gt(e.headers[ah])],[wt]:[,e.headers[pi]],[fl]:[,e.headers[$u]],[hl]:[,e.headers[Hu]],[ml]:[,e.headers[qu]],[bl]:[,e.headers[ju]],[gl]:[,e.headers[Wu]],[Vp]:[,e.headers[Tw]],[mi]:[()=>e.headers[_o]!==void 0,()=>Ve(oa(e.headers[_o]))],[ew]:[,e.headers[ww]],[Uu]:[,e.headers[Ju]],[Fr]:[,e.headers[Es]],[rr]:[,e.headers[Cr]],[sr]:[,e.headers[xr]],[wr]:[,e.headers[Cs]],[En]:[()=>e.headers[Ln]!==void 0,()=>Nt(e.headers[Ln])],[_t]:[,e.headers[Zu]],[xn]:[,e.headers[_n]],[Jp]:[,e.headers[s2]],[Jc]:[()=>e.headers[oh]!==void 0,()=>Gt(e.headers[oh])],[sh]:[()=>e.headers[ch]!==void 0,()=>Gt(e.headers[ch])],[xl]:[,e.headers[Qu]],[bi]:[()=>e.headers[So]!==void 0,()=>Ve(Kr(e.headers[So]))],[Po]:[,e.headers[Xu]],Metadata:[,Object.keys(e.headers).filter(r=>r.startsWith("x-amz-meta-")).reduce((r,s)=>(r[s.substring(11)]=e.headers[s],r),{})]});return await tt(e.body,t),n},lH=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return Se(e,t);const n=T({$metadata:fe(e)}),r=Ve(bt(await ut(e.body,t)),"body");return r.AnalyticsConfiguration===""?n[JC]=[]:r[Sb]!=null&&(n[JC]=QW(ot(r[Sb]))),r[en]!=null&&(n[en]=D(r[en])),r[Vt]!=null&&(n[Vt]=Nt(r[Vt])),r[Vr]!=null&&(n[Vr]=D(r[Vr])),n},uH=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return Se(e,t);const n=T({$metadata:fe(e)}),r=Ve(bt(await ut(e.body,t)),"body");return r[en]!=null&&(n[en]=D(r[en])),r.IntelligentTieringConfiguration===""?n[ux]=[]:r[Ub]!=null&&(n[ux]=OG(ot(r[Ub]))),r[Vt]!=null&&(n[Vt]=Nt(r[Vt])),r[Vr]!=null&&(n[Vr]=D(r[Vr])),n},dH=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return Se(e,t);const n=T({$metadata:fe(e)}),r=Ve(bt(await ut(e.body,t)),"body");return r[en]!=null&&(n[en]=D(r[en])),r.InventoryConfiguration===""?n[ax]=[]:r[zb]!=null&&(n[ax]=LG(ot(r[zb]))),r[Vt]!=null&&(n[Vt]=Nt(r[Vt])),r[Vr]!=null&&(n[Vr]=D(r[Vr])),n},fH=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return Se(e,t);const n=T({$metadata:fe(e)}),r=Ve(bt(await ut(e.body,t)),"body");return r[en]!=null&&(n[en]=D(r[en])),r[Vt]!=null&&(n[Vt]=Nt(r[Vt])),r.MetricsConfiguration===""?n[dx]=[]:r[Hb]!=null&&(n[dx]=rV(ot(r[Hb]))),r[Vr]!=null&&(n[Vr]=D(r[Vr])),n},hH=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return Se(e,t);const n=T({$metadata:fe(e)}),r=Ve(bt(await ut(e.body,t)),"body");return r.Buckets===""?n[ii]=[]:r[ii]!=null&&r[ii][Bt]!=null&&(n[ii]=NT(ot(r[ii][Bt]))),r[en]!=null&&(n[en]=D(r[en])),r[Mt]!=null&&(n[Mt]=ba(r[Mt])),r[Oe]!=null&&(n[Oe]=D(r[Oe])),n},mH=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return Se(e,t);const n=T({$metadata:fe(e)}),r=Ve(bt(await ut(e.body,t)),"body");return r.Buckets===""?n[ii]=[]:r[ii]!=null&&r[ii][Bt]!=null&&(n[ii]=NT(ot(r[ii][Bt]))),r[en]!=null&&(n[en]=D(r[en])),n},bH=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return Se(e,t);const n=T({$metadata:fe(e),[xn]:[,e.headers[_n]]}),r=Ve(bt(await ut(e.body,t)),"body");return r[Bt]!=null&&(n[Bt]=D(r[Bt])),r.CommonPrefixes===""?n[Pr]=[]:r[Pr]!=null&&(n[Pr]=Rh(ot(r[Pr]))),r[Nr]!=null&&(n[Nr]=D(r[Nr])),r[Dr]!=null&&(n[Dr]=D(r[Dr])),r[Vt]!=null&&(n[Vt]=Nt(r[Vt])),r[ta]!=null&&(n[ta]=D(r[ta])),r[Yd]!=null&&(n[Yd]=Gt(r[Yd])),r[Bc]!=null&&(n[Bc]=D(r[Bc])),r[pm]!=null&&(n[pm]=D(r[pm])),r[Oe]!=null&&(n[Oe]=D(r[Oe])),r[bf]!=null&&(n[bf]=D(r[bf])),r.Upload===""?n[Cx]=[]:r[Ex]!=null&&(n[Cx]=aV(ot(r[Ex]))),n},gH=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return Se(e,t);const n=T({$metadata:fe(e),[xn]:[,e.headers[_n]]}),r=Ve(bt(await ut(e.body,t)),"body");return r.CommonPrefixes===""?n[Pr]=[]:r[Pr]!=null&&(n[Pr]=Rh(ot(r[Pr]))),r.Contents===""?n[Xi]=[]:r[Xi]!=null&&(n[Xi]=$T(ot(r[Xi]))),r[Nr]!=null&&(n[Nr]=D(r[Nr])),r[Dr]!=null&&(n[Dr]=D(r[Dr])),r[Vt]!=null&&(n[Vt]=Nt(r[Vt])),r[Vd]!=null&&(n[Vd]=D(r[Vd])),r[Rs]!=null&&(n[Rs]=Gt(r[Rs])),r[kn]!=null&&(n[kn]=D(r[kn])),r[gm]!=null&&(n[gm]=D(r[gm])),r[Oe]!=null&&(n[Oe]=D(r[Oe])),n},pH=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return Se(e,t);const n=T({$metadata:fe(e),[xn]:[,e.headers[_n]]}),r=Ve(bt(await ut(e.body,t)),"body");return r.CommonPrefixes===""?n[Pr]=[]:r[Pr]!=null&&(n[Pr]=Rh(ot(r[Pr]))),r.Contents===""?n[Xi]=[]:r[Xi]!=null&&(n[Xi]=$T(ot(r[Xi]))),r[en]!=null&&(n[en]=D(r[en])),r[Nr]!=null&&(n[Nr]=D(r[Nr])),r[Dr]!=null&&(n[Dr]=D(r[Dr])),r[Vt]!=null&&(n[Vt]=Nt(r[Vt])),r[dm]!=null&&(n[dm]=Gt(r[dm])),r[Rs]!=null&&(n[Rs]=Gt(r[Rs])),r[kn]!=null&&(n[kn]=D(r[kn])),r[Vr]!=null&&(n[Vr]=D(r[Vr])),r[Oe]!=null&&(n[Oe]=D(r[Oe])),r[of]!=null&&(n[of]=D(r[of])),n},yH=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return Se(e,t);const n=T({$metadata:fe(e),[xn]:[,e.headers[_n]]}),r=Ve(bt(await ut(e.body,t)),"body");return r.CommonPrefixes===""?n[Pr]=[]:r[Pr]!=null&&(n[Pr]=Rh(ot(r[Pr]))),r.DeleteMarker===""?n[sx]=[]:r[qs]!=null&&(n[sx]=bG(ot(r[qs]))),r[Nr]!=null&&(n[Nr]=D(r[Nr])),r[Dr]!=null&&(n[Dr]=D(r[Dr])),r[Vt]!=null&&(n[Vt]=Nt(r[Vt])),r[ta]!=null&&(n[ta]=D(r[ta])),r[Rs]!=null&&(n[Rs]=Gt(r[Rs])),r[kn]!=null&&(n[kn]=D(r[kn])),r[Bc]!=null&&(n[Bc]=D(r[Bc])),r[ym]!=null&&(n[ym]=D(r[ym])),r[Oe]!=null&&(n[Oe]=D(r[Oe])),r[pf]!=null&&(n[pf]=D(r[pf])),r.Version===""?n[vx]=[]:r[xx]!=null&&(n[vx]=pV(ot(r[xx]))),n},EH=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return Se(e,t);const n=T({$metadata:fe(e),[jT]:[()=>e.headers[ih]!==void 0,()=>Ve(oa(e.headers[ih]))],[WT]:[,e.headers[jw]],[xn]:[,e.headers[_n]]}),r=Ve(bt(await ut(e.body,t)),"body");return r[Bt]!=null&&(n[Bt]=D(r[Bt])),r[Et]!=null&&(n[Et]=D(r[Et])),r[gn]!=null&&(n[gn]=D(r[gn])),r[wc]!=null&&(n[wc]=MT(r[wc])),r[Vt]!=null&&(n[Vt]=Nt(r[Vt])),r[gt]!=null&&(n[gt]=D(r[gt])),r[ki]!=null&&(n[ki]=Gt(r[ki])),r[Pc]!=null&&(n[Pc]=D(r[Pc])),r[Mt]!=null&&(n[Mt]=ba(r[Mt])),r[na]!=null&&(n[na]=D(r[na])),r.Part===""?n[Bu]=[]:r[eh]!=null&&(n[Bu]=_V(ot(r[eh]))),r[_t]!=null&&(n[_t]=D(r[_t])),r[as]!=null&&(n[as]=D(r[as])),n},CH=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return Se(e,t);const n=T({$metadata:fe(e)});return await tt(e.body,t),n},xH=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return Se(e,t);const n=T({$metadata:fe(e)});return await tt(e.body,t),n},vH=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return Se(e,t);const n=T({$metadata:fe(e)});return await tt(e.body,t),n},_H=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return Se(e,t);const n=T({$metadata:fe(e)});return await tt(e.body,t),n},SH=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return Se(e,t);const n=T({$metadata:fe(e)});return await tt(e.body,t),n},TH=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return Se(e,t);const n=T({$metadata:fe(e)});return await tt(e.body,t),n},wH=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return Se(e,t);const n=T({$metadata:fe(e)});return await tt(e.body,t),n},AH=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return Se(e,t);const n=T({$metadata:fe(e),[ty]:[,e.headers[xy]]});return await tt(e.body,t),n},kH=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return Se(e,t);const n=T({$metadata:fe(e)});return await tt(e.body,t),n},IH=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return Se(e,t);const n=T({$metadata:fe(e)});return await tt(e.body,t),n},RH=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return Se(e,t);const n=T({$metadata:fe(e)});return await tt(e.body,t),n},BH=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return Se(e,t);const n=T({$metadata:fe(e)});return await tt(e.body,t),n},PH=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return Se(e,t);const n=T({$metadata:fe(e)});return await tt(e.body,t),n},NH=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return Se(e,t);const n=T({$metadata:fe(e)});return await tt(e.body,t),n},OH=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return Se(e,t);const n=T({$metadata:fe(e)});return await tt(e.body,t),n},DH=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return Se(e,t);const n=T({$metadata:fe(e)});return await tt(e.body,t),n},LH=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return Se(e,t);const n=T({$metadata:fe(e)});return await tt(e.body,t),n},MH=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return Se(e,t);const n=T({$metadata:fe(e)});return await tt(e.body,t),n},FH=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return Se(e,t);const n=T({$metadata:fe(e),[jn]:[,e.headers[Yu]],[tn]:[,e.headers[Mh]],[dn]:[,e.headers[Oo]],[fn]:[,e.headers[Do]],[hn]:[,e.headers[Lo]],[mn]:[,e.headers[Mo]],[bn]:[,e.headers[Fo]],[gn]:[,e.headers[Tl]],[Fr]:[,e.headers[Es]],[wt]:[,e.headers[pi]],[rr]:[,e.headers[Cr]],[sr]:[,e.headers[xr]],[wr]:[,e.headers[Cs]],[ga]:[,e.headers[pa]],[En]:[()=>e.headers[Ln]!==void 0,()=>Nt(e.headers[Ln])],[Sr]:[()=>e.headers[wx]!==void 0,()=>yr(e.headers[wx])],[xn]:[,e.headers[_n]]});return await tt(e.body,t),n},zH=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return Se(e,t);const n=T({$metadata:fe(e),[xn]:[,e.headers[_n]]});return await tt(e.body,t),n},UH=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return Se(e,t);const n=T({$metadata:fe(e),[xn]:[,e.headers[_n]]});return await tt(e.body,t),n},$H=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return Se(e,t);const n=T({$metadata:fe(e),[xn]:[,e.headers[_n]]});return await tt(e.body,t),n},HH=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return Se(e,t);const n=T({$metadata:fe(e),[xn]:[,e.headers[_n]]});return await tt(e.body,t),n},qH=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return Se(e,t);const n=T({$metadata:fe(e),[wt]:[,e.headers[pi]]});return await tt(e.body,t),n},jH=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return Se(e,t);const n=T({$metadata:fe(e)});return await tt(e.body,t),n},WH=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return Se(e,t);const n=T({$metadata:fe(e)});return await tt(e.body,t),n},GH=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return Se(e,t);const n=T({$metadata:fe(e),[xn]:[,e.headers[_n]],[fX]:[,e.headers[gZ]]});return await tt(e.body,t),n},VH=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return Se(e,t);const n=T({$metadata:fe(e)}),r=e.body;return n.Payload=mq(r,t),n},KH=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return Se(e,t);const n=T({$metadata:fe(e)});return await tt(e.body,t),n},YH=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return Se(e,t);const n=T({$metadata:fe(e)});return await tt(e.body,t),n},XH=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return Se(e,t);const n=T({$metadata:fe(e),[Fr]:[,e.headers[Es]],[tn]:[,e.headers[Mh]],[dn]:[,e.headers[Oo]],[fn]:[,e.headers[Do]],[hn]:[,e.headers[Lo]],[mn]:[,e.headers[Mo]],[bn]:[,e.headers[Fo]],[rr]:[,e.headers[Cr]],[sr]:[,e.headers[xr]],[wr]:[,e.headers[Cs]],[En]:[()=>e.headers[Ln]!==void 0,()=>Nt(e.headers[Ln])],[xn]:[,e.headers[_n]]});return await tt(e.body,t),n},QH=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return Se(e,t);const n=T({$metadata:fe(e),[JT]:[,e.headers[n2]],[Fr]:[,e.headers[Es]],[rr]:[,e.headers[Cr]],[sr]:[,e.headers[xr]],[wr]:[,e.headers[Cs]],[En]:[()=>e.headers[Ln]!==void 0,()=>Nt(e.headers[Ln])],[xn]:[,e.headers[_n]]}),r=bt(await ut(e.body,t));return n.CopyPartResult=oG(r),n},ZH=async(e,t)=>{if(e.statusCode!==200&&e.statusCode>=300)return Se(e,t);const n=T({$metadata:fe(e)});return await tt(e.body,t),n},Se=async(e,t)=>{const n={...e,body:await sM(e.body,t)},r=iM(e,n.body);switch(r){case"NoSuchUpload":case"com.amazonaws.s3#NoSuchUpload":throw await lq(n);case"ObjectNotInActiveTierError":case"com.amazonaws.s3#ObjectNotInActiveTierError":throw await fq(n);case"BucketAlreadyExists":case"com.amazonaws.s3#BucketAlreadyExists":throw await eq(n);case"BucketAlreadyOwnedByYou":case"com.amazonaws.s3#BucketAlreadyOwnedByYou":throw await tq(n);case"NoSuchBucket":case"com.amazonaws.s3#NoSuchBucket":throw await oq(n);case"InvalidObjectState":case"com.amazonaws.s3#InvalidObjectState":throw await sq(n);case"NoSuchKey":case"com.amazonaws.s3#NoSuchKey":throw await cq(n);case"NotFound":case"com.amazonaws.s3#NotFound":throw await uq(n);case"EncryptionTypeMismatch":case"com.amazonaws.s3#EncryptionTypeMismatch":throw await nq(n);case"InvalidRequest":case"com.amazonaws.s3#InvalidRequest":throw await iq(n);case"InvalidWriteOffset":case"com.amazonaws.s3#InvalidWriteOffset":throw await aq(n);case"TooManyParts":case"com.amazonaws.s3#TooManyParts":throw await hq(n);case"IdempotencyParameterMismatch":case"com.amazonaws.s3#IdempotencyParameterMismatch":throw await rq(n);case"ObjectAlreadyInActiveTierError":case"com.amazonaws.s3#ObjectAlreadyInActiveTierError":throw await dq(n);default:const s=n.body;return JH({output:e,parsedBody:s,errorCode:r})}},JH=J8(Tr),eq=async(e,t)=>{const n=T({});e.body;const r=new wp({$metadata:fe(e),...n});return Yr(r,e.body)},tq=async(e,t)=>{const n=T({});e.body;const r=new Ap({$metadata:fe(e),...n});return Yr(r,e.body)},nq=async(e,t)=>{const n=T({});e.body;const r=new Np({$metadata:fe(e),...n});return Yr(r,e.body)},rq=async(e,t)=>{const n=T({});e.body;const r=new Mp({$metadata:fe(e),...n});return Yr(r,e.body)},sq=async(e,t)=>{const n=T({}),r=e.body;r[wi]!=null&&(n[wi]=D(r[wi])),r[_t]!=null&&(n[_t]=D(r[_t]));const s=new Ip({$metadata:fe(e),...n});return Yr(s,e.body)},iq=async(e,t)=>{const n=T({});e.body;const r=new Op({$metadata:fe(e),...n});return Yr(r,e.body)},aq=async(e,t)=>{const n=T({});e.body;const r=new Dp({$metadata:fe(e),...n});return Yr(r,e.body)},oq=async(e,t)=>{const n=T({});e.body;const r=new kp({$metadata:fe(e),...n});return Yr(r,e.body)},cq=async(e,t)=>{const n=T({});e.body;const r=new Rp({$metadata:fe(e),...n});return Yr(r,e.body)},lq=async(e,t)=>{const n=T({});e.body;const r=new Sp({$metadata:fe(e),...n});return Yr(r,e.body)},uq=async(e,t)=>{const n=T({});e.body;const r=new Bp({$metadata:fe(e),...n});return Yr(r,e.body)},dq=async(e,t)=>{const n=T({});e.body;const r=new Fp({$metadata:fe(e),...n});return Yr(r,e.body)},fq=async(e,t)=>{const n=T({});e.body;const r=new Tp({$metadata:fe(e),...n});return Yr(r,e.body)},hq=async(e,t)=>{const n=T({});e.body;const r=new Lp({$metadata:fe(e),...n});return Yr(r,e.body)},mq=(e,t)=>t.eventStreamMarshaller.deserialize(e,async n=>n.Records!=null?{Records:await yq(n.Records)}:n.Stats!=null?{Stats:await Eq(n.Stats,t)}:n.Progress!=null?{Progress:await pq(n.Progress,t)}:n.Cont!=null?{Cont:await bq(n.Cont,t)}:n.End!=null?{End:await gq(n.End,t)}:{$unknown:n}),bq=async(e,t)=>{const n={};return await ut(e.body,t),Object.assign(n,iG()),n},gq=async(e,t)=>{const n={};return await ut(e.body,t),Object.assign(n,EG()),n},pq=async(e,t)=>{const n={},r=await ut(e.body,t);return n.Details=wV(r),n},yq=async(e,t)=>{const n={};return n.Payload=e.body,n},Eq=async(e,t)=>{const n={},r=await ut(e.body,t);return n.Details=eK(r),n},Cq=(e,t)=>{const n=new M(ja);return e[Ra]!=null&&n.c(M.of(Ra,String(e[Ra])).n(Ra)),n},xq=(e,t)=>{const n=new M(bK);return e[Ue]!=null&&n.c(M.of(_K,e[Ue]).n(Ue)),n},TT=(e,t)=>{const n=new M(mK);return n.lc(e,"Grants","AccessControlList",()=>AT(e[Ru])),e[Mt]!=null&&n.c(Kj(e[Mt]).n(Mt)),n},vq=(e,t)=>{const n=new M(qa);return e[Mt]!=null&&n.c(M.of(rX,e[Mt]).n(Mt)),n},_q=(e,t)=>e.filter(n=>n!=null).map(n=>M.of(Tb,n).n(ir)),Sq=(e,t)=>e.filter(n=>n!=null).map(n=>M.of(Ab,n).n(ir)),Tq=(e,t)=>e.filter(n=>n!=null).map(n=>M.of(Ib,n).n(ir)),wq=(e,t)=>{const n=new M(hK);return n.cc(e,Oe),n.l(e,"Tags","Tag",()=>Ro(e[Lr])),n},Aq=(e,t)=>{const n=new M(Sb);return e[st]!=null&&n.c(M.of(yK,e[st]).n(st)),e[rt]!=null&&n.c(Iq(e[rt]).n(rt)),e[lo]!=null&&n.c(BW(e[lo]).n(lo)),n},kq=(e,t)=>{const n=new M(gK);return e[Ls]!=null&&n.c(Rq(e[Ls]).n(Ls)),n},Iq=(e,t)=>{const n=new M(pK);return vb.visit(e,{Prefix:r=>{e[Oe]!=null&&n.c(M.of(Oe,r).n(Oe))},Tag:r=>{e[xt]!=null&&n.c(ll(r).n(xt))},And:r=>{e[Cn]!=null&&n.c(wq(r).n(Cn))},_:(r,s)=>{if(!(s instanceof M||s instanceof cp))throw new Error("Unable to serialize unknown union members in XML.");n.c(new M(r).c(s))}}),n},Rq=(e,t)=>{const n=new M(xK);return e[Is]!=null&&n.c(M.of(vK,e[Is]).n(Is)),e[hc]!=null&&n.c(M.of(uc,e[hc]).n(hc)),e[Bt]!=null&&n.c(M.of(Bh,e[Bt]).n(Bt)),n.cc(e,Oe),n},Bq=(e,t)=>{const n=new M(SK);return n.cc(e,GK),e[is]!=null&&n.c(M.of(BK,e[is]).n(is)),n},Pq=(e,t)=>{const n=new M(TK);return n.l(e,"Rules","Rule",()=>Aj(e[Fs])),n},Nq=(e,t)=>{const n=new M(IK);return e[eo]!=null&&n.c(Ij(e[eo]).n(eo)),n},Oq=(e,t)=>{const n=new M(OK);return n.l(e,"Parts","Part",()=>Lq(e[Bu])),n},Dq=(e,t)=>{const n=new M(LK);return n.cc(e,tn),n.cc(e,dn),n.cc(e,fn),n.cc(e,hn),n.cc(e,mn),n.cc(e,bn),e[ns]!=null&&n.c(M.of(ns,String(e[ns])).n(ns)),n},Lq=(e,t)=>e.filter(n=>n!=null).map(n=>Dq(n).n(ir)),Mq=(e,t)=>{const n=new M(Wa);return n.cc(e,$d),n.cc(e,Wd),n},Fq=(e,t)=>{const n=new M(DK);return n.l(e,"CORSRules","CORSRule",()=>Uq(e[Nb])),n},zq=(e,t)=>{const n=new M(Pb);return n.cc(e,Rn),n.l(e,"AllowedHeaders","AllowedHeader",()=>_q(e[wb])),n.l(e,"AllowedMethods","AllowedMethod",()=>Sq(e[kb])),n.l(e,"AllowedOrigins","AllowedOrigin",()=>Tq(e[Rb])),n.l(e,"ExposeHeaders","ExposeHeader",()=>Jq(e[Ob])),e[Na]!=null&&n.c(M.of(Na,String(e[Na])).n(Na)),n},Uq=(e,t)=>e.filter(n=>n!=null).map(n=>zq(n).n(ir)),$q=(e,t)=>{const n=new M(NK);return e[Rc]!=null&&n.c(M.of(wK,e[Rc]).n(Rc)),e[Ja]!=null&&n.c(kj(e[Ja]).n(Ja)),e[Bt]!=null&&n.c(Bq(e[Bt]).n(Bt)),n.lc(e,"Tags","Tags",()=>Ro(e[Lr])),n},Hq=(e,t)=>{const n=new M(FK);return n.cc(e,JK),n.cc(e,HK),n.cc(e,dw),n.cc(e,Zp),n.cc(e,sw),n.cc(e,uw),e[Cd]!=null&&n.c(M.of(Cd,String(e[Cd])).n(Cd)),n},qq=(e,t)=>{const n=new M(zK);return n.cc(e,cX),n.cc(e,dw),n.cc(e,Zp),n.cc(e,sw),n.cc(e,uw),n},jq=(e,t)=>{const n=new M(Va);return e[Bs]!=null&&n.c(M.of(ow,e[Bs]).n(Bs)),e[At]!=null&&n.c(M.of(At,String(e[At])).n(At)),e[La]!=null&&n.c(M.of(La,String(e[La])).n(La)),n},Wq=(e,t)=>{const n=new M(VK);return n.l(e,"Objects","Object",()=>Hj(e[iX])),e[Sd]!=null&&n.c(M.of(Sd,String(e[Sd])).n(Sd)),n},Gq=(e,t)=>{const n=new M(Ga);return e[Ue]!=null&&n.c(M.of(WK,e[Ue]).n(Ue)),n},Vq=(e,t)=>{const n=new M(nr);return e[Bt]!=null&&n.c(M.of(Bh,e[Bt]).n(Bt)),e[fc]!=null&&n.c(M.of(uc,e[fc]).n(fc)),n.cc(e,_t),e[qa]!=null&&n.c(vq(e[qa]).n(qa)),e[Or]!=null&&n.c(Yq(e[Or]).n(Or)),e[oo]!=null&&n.c(dW(e[oo]).n(oo)),e[to]!=null&&n.c(Nj(e[to]).n(to)),n},Kq=(e,t)=>{const n=new M(di);return e[sm]!=null&&n.c(M.of(Fr,e[sm]).n(sm)),e[fm]!=null&&n.c(M.of(wr,e[fm]).n(fm)),n.cc(e,TY),n},Yq=(e,t)=>{const n=new M(Or);return n.cc(e,tf),n},Xq=(e,t)=>{const n=new M(Ya);return e[gt]!=null&&n.c(M.of(Qp,e[gt]).n(gt)),n},Qq=(e,t)=>new M(Ka),zp=(e,t)=>e.filter(n=>n!=null).map(n=>M.of(xo,n).n(ir)),Zq=(e,t)=>{const n=new M(Xa);return e[Ue]!=null&&n.c(M.of(YK,e[Ue]).n(Ue)),n},Jq=(e,t)=>e.filter(n=>n!=null).map(n=>M.of(Db,n).n(ir)),ej=(e,t)=>{const n=new M(Lb);return e[kn]!=null&&n.c(M.of(tY,e[kn]).n(kn)),e[bs]!=null&&n.c(M.of(nY,e[bs]).n(bs)),n},tj=(e,t)=>e.filter(n=>n!=null).map(n=>ej(n).n(ir)),nj=(e,t)=>{const n=new M(Ud);return n.cc(e,Cw),n},rj=(e,t)=>{const n=new M(Pi);if(e[ms]!=null){const r=wT(e[ms]).n(ms);r.a("xmlns:xsi","http://www.w3.org/2001/XMLSchema-instance"),n.c(r)}return n.cc(e,fi),n},wT=(e,t)=>{const n=new M(ms);return n.cc(e,js),n.cc(e,Md),n.cc(e,Rn),n.cc(e,gf),n.a("xsi:type",e[is]),n},AT=(e,t)=>e.filter(n=>n!=null).map(n=>rj(n).n(Pi)),sj=(e,t)=>{const n=new M(Qa);return n.cc(e,df),n},kT=(e,t)=>{const n=new M(Za);return e[Ec]!=null&&n.c(Hq(e[Ec]).n(Ec)),n.cc(e,$K),e[Ac]!=null&&n.c(Ej(e[Ac]).n(Ac)),e[xm]!=null&&n.c(Zj(e[xm]).n(xm)),n},ij=(e,t)=>{const n=new M(hY);return n.cc(e,Oe),n.l(e,"Tags","Tag",()=>Ro(e[Lr])),n},aj=(e,t)=>{const n=new M(Ub);return e[st]!=null&&n.c(M.of(yY,e[st]).n(st)),e[rt]!=null&&n.c(oj(e[rt]).n(rt)),e[Ue]!=null&&n.c(M.of(EY,e[Ue]).n(Ue)),n.l(e,"Tierings","Tiering",()=>MW(e[eg])),n},oj=(e,t)=>{const n=new M(pY);return n.cc(e,Oe),e[xt]!=null&&n.c(ll(e[xt]).n(xt)),e[Cn]!=null&&n.c(ij(e[Cn]).n(Cn)),n},cj=(e,t)=>{const n=new M(zb);return e[nr]!=null&&n.c(lj(e[nr]).n(nr)),e[Pa]!=null&&n.c(M.of(Pa,String(e[Pa])).n(Pa)),e[rt]!=null&&n.c(dj(e[rt]).n(rt)),e[st]!=null&&n.c(M.of(cY,e[st]).n(st)),e[Sc]!=null&&n.c(M.of(lY,e[Sc]).n(Sc)),n.lc(e,"OptionalFields","OptionalFields",()=>fj(e[Qo])),e[Fc]!=null&&n.c(mj(e[Fc]).n(Fc)),n},lj=(e,t)=>{const n=new M(rY);return e[Ls]!=null&&n.c(hj(e[Ls]).n(Ls)),n},uj=(e,t)=>{const n=new M(sY);return e[Qb]!=null&&n.c(RW(e[Qb]).n(rh)),e[Xb]!=null&&n.c(kW(e[Xb]).n(nh)),n},dj=(e,t)=>{const n=new M(iY);return n.cc(e,Oe),n},fj=(e,t)=>e.filter(n=>n!=null).map(n=>M.of(uY,n).n(Fb)),hj=(e,t)=>{const n=new M(dY);return n.cc(e,uc),e[Bt]!=null&&n.c(M.of(Bh,e[Bt]).n(Bt)),e[Is]!=null&&n.c(M.of(aY,e[Is]).n(Is)),n.cc(e,Oe),e[di]!=null&&n.c(uj(e[di]).n(di)),n},mj=(e,t)=>{const n=new M(fY);return e[vc]!=null&&n.c(M.of(oY,e[vc]).n(vc)),n},bj=(e,t)=>{const n=new M(qd);return e[Ai]!=null&&n.c(M.of(iw,e[Ai]).n(Ai)),e[Or]!=null&&n.c(Up(e[Or]).n(Or)),n},gj=(e,t)=>{const n=new M(bY);return e[Ai]!=null&&n.c(M.of(iw,e[Ai]).n(Ai)),e[Or]!=null&&n.c(Up(e[Or]).n(Or)),n},pj=(e,t)=>{const n=new M(jd);return e[hi]!=null&&n.c(RT(e[hi]).n(hi)),e[Or]!=null&&n.c(Up(e[Or]).n(Or)),n},yj=(e,t)=>{const n=new M(_Y);return e[hi]!=null&&n.c(RT(e[hi]).n(hi)),n},Ej=(e,t)=>{const n=new M(CY);return e[is]!=null&&n.c(M.of(vY,e[is]).n(is)),n},Cj=(e,t)=>{const n=new M(xY);return n.cc(e,Zp),n},xj=(e,t)=>{const n=new M(AY);return e[st]!=null&&n.c(M.of(Xp,e[st]).n(st)),e[Gd]!=null&&n.c(M.of(Gd,e[Gd]).n(Bb)),n.l(e,"Events","Event",()=>zp(e[Bi])),e[rt]!=null&&n.c($p(e[rt]).n(rt)),n},vj=(e,t)=>e.filter(n=>n!=null).map(n=>xj(n).n(ir)),_j=(e,t)=>{const n=new M(wY);return e[Gr]!=null&&n.c(M.of(Gr,ko(e[Gr]).toString()).n(Gr)),e[At]!=null&&n.c(M.of(At,String(e[At])).n(At)),e[Ba]!=null&&n.c(M.of(Ba,String(e[Ba])).n(Ba)),n},Sj=(e,t)=>{const n=new M(BY);return e[jn]!=null&&n.c(_j(e[jn]).n(jn)),n.cc(e,Rn),n.cc(e,Oe),e[rt]!=null&&n.c(wj(e[rt]).n(rt)),e[Ue]!=null&&n.c(M.of(QK,e[Ue]).n(Ue)),n.l(e,"Transitions","Transition",()=>$W(e[rg])),n.l(e,"NoncurrentVersionTransitions","NoncurrentVersionTransition",()=>zj(e[jb])),e[no]!=null&&n.c(Mj(e[no]).n(no)),e[ja]!=null&&n.c(Cq(e[ja]).n(ja)),n},Tj=(e,t)=>{const n=new M(PY);return n.cc(e,Oe),n.l(e,"Tags","Tag",()=>Ro(e[Lr])),e[Os]!=null&&n.c(M.of(cw,String(e[Os])).n(Os)),e[Ds]!=null&&n.c(M.of(lw,String(e[Ds])).n(Ds)),n},wj=(e,t)=>{const n=new M(NY);return n.cc(e,Oe),e[xt]!=null&&n.c(ll(e[xt]).n(xt)),e[Os]!=null&&n.c(M.of(cw,String(e[Os])).n(Os)),e[Ds]!=null&&n.c(M.of(lw,String(e[Ds])).n(Ds)),e[Cn]!=null&&n.c(Tj(e[Cn]).n(Cn)),n},Aj=(e,t)=>e.filter(n=>n!=null).map(n=>Sj(n).n(ir)),kj=(e,t)=>{const n=new M(kY);return e[is]!=null&&n.c(M.of(OY,e[is]).n(is)),e[kn]!=null&&n.c(M.of(IY,e[kn]).n(kn)),n},Ij=(e,t)=>{const n=new M(eo);return n.cc(e,hf),n.lc(e,"TargetGrants","TargetGrants",()=>OW(e[Jo])),n.cc(e,mf),e[bo]!=null&&n.c(DW(e[bo]).n(bo)),n},Rj=(e,t)=>{const n=new M(MY);return e[jd]!=null&&n.c(pj(e[jd]).n(jd)),e[qd]!=null&&n.c(bj(e[qd]).n(qd)),n},Bj=(e,t)=>{const n=new M(aw);return e[kn]!=null&&n.c(M.of(HY,e[kn]).n(kn)),e[bs]!=null&&n.c(M.of(GY,e[bs]).n(bs)),n},Pj=(e,t)=>{const n=new M(jY);return e[uf]!=null&&n.c(EW(e[uf]).n(uf)),n},Up=(e,t)=>{const n=new M(WY);return e[Sm]!=null&&n.c(M.of(HX,e[Sm]).n(Sm)),n.cc(e,SY),n},Nj=(e,t)=>{const n=new M(to);return e[Ue]!=null&&n.c(M.of(qY,e[Ue]).n(Ue)),e[xc]!=null&&n.c(BT(e[xc]).n(xc)),n},Oj=(e,t)=>{const n=new M(DY);return n.cc(e,Oe),n.l(e,"Tags","Tag",()=>Ro(e[Lr])),n.cc(e,Ti),n},Dj=(e,t)=>{const n=new M(Hb);return e[st]!=null&&n.c(M.of($Y,e[st]).n(st)),e[rt]!=null&&n.c(Lj(e[rt]).n(rt)),n},Lj=(e,t)=>{const n=new M(UY);return _b.visit(e,{Prefix:r=>{e[Oe]!=null&&n.c(M.of(Oe,r).n(Oe))},Tag:r=>{e[xt]!=null&&n.c(ll(r).n(xt))},AccessPointArn:r=>{e[Ti]!=null&&n.c(M.of(Ti,r).n(Ti))},And:r=>{e[Cn]!=null&&n.c(Oj(r).n(Cn))},_:(r,s)=>{if(!(s instanceof M||s instanceof cp))throw new Error("Unable to serialize unknown union members in XML.");n.c(new M(r).c(s))}}),n},Mj=(e,t)=>{const n=new M(no);return e[Ps]!=null&&n.c(M.of(At,String(e[Ps])).n(Ps)),e[Ns]!=null&&n.c(M.of(vw,String(e[Ns])).n(Ns)),n},Fj=(e,t)=>{const n=new M(Wb);return e[Ps]!=null&&n.c(M.of(At,String(e[Ps])).n(Ps)),e[_t]!=null&&n.c(M.of(Ew,e[_t]).n(_t)),e[Ns]!=null&&n.c(M.of(vw,String(e[Ns])).n(Ns)),n},zj=(e,t)=>e.filter(n=>n!=null).map(n=>Fj(n).n(ir)),Uj=(e,t)=>{const n=new M(VY);return n.l(e,"TopicConfigurations","TopicConfiguration",()=>zW(e[Jb])),n.l(e,"QueueConfigurations","QueueConfiguration",()=>nW(e[Vb])),n.l(e,"LambdaFunctionConfigurations","CloudFunctionConfiguration",()=>vj(e[$b])),e[Ka]!=null&&n.c(Qq(e[Ka]).n(Ka)),n},$p=(e,t)=>{const n=new M(KY);return e[gt]!=null&&n.c(pW(e[gt]).n(Yb)),n},$j=(e,t)=>{const n=new M(ZY);return e[gt]!=null&&n.c(M.of(Qp,e[gt]).n(gt)),e[wt]!=null&&n.c(M.of(sX,e[wt]).n(wt)),n.cc(e,tn),e[_d]!=null&&n.c(M.of(_d,Dn(e[_d]).toString()).n(_d)),e[Sr]!=null&&n.c(M.of(Sr,String(e[Sr])).n(Sr)),n},Hj=(e,t)=>e.filter(n=>n!=null).map(n=>$j(n).n(ir)),qj=(e,t)=>{const n=new M(JY);return n.cc(e,Qd),e[ss]!=null&&n.c(Gj(e[ss]).n(ss)),n},jj=(e,t)=>{const n=new M(eX);return e[Ue]!=null&&n.c(M.of(Po,e[Ue]).n(Ue)),n},Wj=(e,t)=>{const n=new M(tX);return e[Bs]!=null&&n.c(M.of(ow,e[Bs]).n(Bs)),e[Lc]!=null&&n.c(M.of(Gr,ko(e[Lc]).toString()).n(Lc)),n},Gj=(e,t)=>{const n=new M(nX);return e[Va]!=null&&n.c(jq(e[Va]).n(Va)),n},Vj=(e,t)=>{const n=new M(Xd);return e[Am]!=null&&n.c(yW(e[Am]).n(Am)),n},IT=(e,t)=>{const n=new M(ro);return e[Ec]!=null&&n.c(qq(e[Ec]).n(Ec)),e[Ac]!=null&&n.c(Cj(e[Ac]).n(Ac)),n},Kj=(e,t)=>{const n=new M(Mt);return n.cc(e,js),n.cc(e,Rn),n},Yj=(e,t)=>{const n=new M(YY);return n.l(e,"Rules","Rule",()=>Qj(e[Fs])),n},Xj=(e,t)=>{const n=new M(QY);return n.cc(e,lu),n},Qj=(e,t)=>e.filter(n=>n!=null).map(n=>Xj(n).n(ir)),Zj=(e,t)=>new M(oX),Jj=(e,t)=>{const n=new M(so);return n.cc(e,Zd),n},eW=(e,t)=>{const n=new M(aX);return e[bc]!=null&&n.c(M.of(Td,String(e[bc])).n(bc)),e[Tc]!=null&&n.c(M.of(Td,String(e[Tc])).n(Tc)),e[gc]!=null&&n.c(M.of(Td,String(e[gc])).n(gc)),e[Oc]!=null&&n.c(M.of(Td,String(e[Oc])).n(Oc)),n},tW=(e,t)=>{const n=new M(Gb);return e[st]!=null&&n.c(M.of(Xp,e[st]).n(st)),e[ef]!=null&&n.c(M.of(ef,e[ef]).n(Kb)),n.l(e,"Events","Event",()=>zp(e[Bi])),e[rt]!=null&&n.c($p(e[rt]).n(rt)),n},nW=(e,t)=>e.filter(n=>n!=null).map(n=>tW(n).n(ir)),RT=(e,t)=>{const n=new M(hi);return e[jn]!=null&&n.c(M.of(ZK,e[jn]).n(jn)),e[At]!=null&&n.c(M.of(uX,String(e[At])).n(At)),n},rW=(e,t)=>{const n=new M(co);return n.cc(e,ea),n.cc(e,Hd),n.cc(e,ra),n.cc(e,nf),n.cc(e,rf),n},sW=(e,t)=>{const n=new M(io);return n.cc(e,ea),n.cc(e,ra),n},iW=(e,t)=>{const n=new M(ao);return e[Ue]!=null&&n.c(M.of(dX,e[Ue]).n(Ue)),n},aW=(e,t)=>{const n=new M(lX);return n.cc(e,af),n.l(e,"Rules","Rule",()=>uW(e[Fs])),n},oW=(e,t)=>{const n=new M(EX);return n.cc(e,Rn),e[Da]!=null&&n.c(M.of(Da,String(e[Da])).n(Da)),n.cc(e,Oe),e[rt]!=null&&n.c(lW(e[rt]).n(rt)),e[Ue]!=null&&n.c(M.of(pX,e[Ue]).n(Ue)),e[ho]!=null&&n.c(AW(e[ho]).n(ho)),e[Xa]!=null&&n.c(Zq(e[Xa]).n(Xa)),e[nr]!=null&&n.c(Vq(e[nr]).n(nr)),e[Ga]!=null&&n.c(Gq(e[Ga]).n(Ga)),n},cW=(e,t)=>{const n=new M(bX);return n.cc(e,Oe),n.l(e,"Tags","Tag",()=>Ro(e[Lr])),n},lW=(e,t)=>{const n=new M(gX);return n.cc(e,Oe),e[xt]!=null&&n.c(ll(e[xt]).n(xt)),e[Cn]!=null&&n.c(cW(e[Cn]).n(Cn)),n},uW=(e,t)=>e.filter(n=>n!=null).map(n=>oW(n).n(ir)),dW=(e,t)=>{const n=new M(oo);return e[Ue]!=null&&n.c(M.of(_X,e[Ue]).n(Ue)),e[$c]!=null&&n.c(BT(e[$c]).n($c)),n},BT=(e,t)=>{const n=new M(SX);return e[Oa]!=null&&n.c(M.of(Oa,String(e[Oa])).n(Oa)),n},fW=(e,t)=>{const n=new M(hX);return n.cc(e,Jd),n},hW=(e,t)=>{const n=new M(sf);return e[im]!=null&&n.c(M.of(XK,String(e[im])).n(im)),n},mW=(e,t)=>{const n=new M(CX);return e[At]!=null&&n.c(M.of(At,String(e[At])).n(At)),e[Ud]!=null&&n.c(nj(e[Ud]).n(Ud)),e[is]!=null&&n.c(M.of(yX,e[is]).n(is)),n.cc(e,Cw),n.cc(e,KK),e[cf]!=null&&n.c(xW(e[cf]).n(cf)),e[Xd]!=null&&n.c(Vj(e[Xd]).n(Xd)),n},bW=(e,t)=>{const n=new M(th);return e[Wa]!=null&&n.c(Mq(e[Wa]).n(Wa)),e[co]!=null&&n.c(rW(e[co]).n(co)),n},gW=(e,t)=>e.filter(n=>n!=null).map(n=>bW(n).n(th)),pW=(e,t)=>{const n=new M(RX);return n.l(e,"FilterRules","FilterRule",()=>tj(e[Mb])),n},yW=(e,t)=>{const n=new M(BX);return n.cc(e,Bh),e[Oe]!=null&&n.c(M.of(RY,e[Oe]).n(Oe)),e[di]!=null&&n.c(Kq(e[di]).n(di)),e[Z0]!=null&&n.c(M.of(XY,e[Z0]).n(Z0)),n.lc(e,"AccessControlList","AccessControlList",()=>AT(e[Ha])),e[mo]!=null&&n.c(Hp(e[mo]).n(mo)),n.lc(e,"UserMetadata","UserMetadata",()=>HW(e[qX])),n.cc(e,_t),n},EW=(e,t)=>{const n=new M(uf);return e[Ri]!=null&&n.c(M.of(MX,e[Ri]).n(Ri)),e[Ms]!=null&&n.c(M.of(FX,e[Ms]).n(Ms)),n},CW=(e,t)=>{const n=new M(lf);return e[wd]!=null&&n.c(M.of(wd,String(e[wd])).n(wd)),e[vd]!=null&&n.c(M.of(vd,String(e[vd])).n(vd)),n},xW=(e,t)=>{const n=new M(cf);return e[Za]!=null&&n.c(kT(e[Za]).n(Za)),n.cc(e,nw),n.cc(e,rw),e[ro]!=null&&n.c(IT(e[ro]).n(ro)),n},vW=(e,t)=>{const n=new M(OX);return e[Mc]!=null&&n.c(M.of(Fr,e[Mc]).n(Mc)),e[Ic]!=null&&n.c(M.of(wr,e[Ic]).n(Ic)),n},_W=(e,t)=>{const n=new M(DX);return n.l(e,"Rules","Rule",()=>TW(e[Fs])),n},SW=(e,t)=>{const n=new M(LX);return e[dc]!=null&&n.c(vW(e[dc]).n(dc)),e[En]!=null&&n.c(M.of(En,String(e[En])).n(En)),n},TW=(e,t)=>e.filter(n=>n!=null).map(n=>SW(n).n(ir)),wW=(e,t)=>new M(fo),AW=(e,t)=>{const n=new M(ho);return e[uo]!=null&&n.c(IW(e[uo]).n(uo)),e[ao]!=null&&n.c(iW(e[ao]).n(ao)),n},kW=(e,t)=>{const n=new M(nh);return e[kc]!=null&&n.c(M.of(wr,e[kc]).n(kc)),n},IW=(e,t)=>{const n=new M(uo);return e[Ue]!=null&&n.c(M.of(IX,e[Ue]).n(Ue)),n},RW=(e,t)=>new M(rh),BW=(e,t)=>{const n=new M(lo);return e[Cc]!=null&&n.c(PW(e[Cc]).n(Cc)),n},PW=(e,t)=>{const n=new M(TX);return e[Nc]!=null&&n.c(M.of(wX,e[Nc]).n(Nc)),e[nr]!=null&&n.c(kq(e[nr]).n(nr)),n},ll=(e,t)=>{const n=new M(xt);return e[gt]!=null&&n.c(M.of(Qp,e[gt]).n(gt)),n.cc(e,bs),n},Hp=(e,t)=>{const n=new M(mo);return n.lc(e,"TagSet","TagSet",()=>Ro(e[$s])),n},Ro=(e,t)=>e.filter(n=>n!=null).map(n=>ll(n).n(xt)),NW=(e,t)=>{const n=new M(UX);if(e[ms]!=null){const r=wT(e[ms]).n(ms);r.a("xmlns:xsi","http://www.w3.org/2001/XMLSchema-instance"),n.c(r)}return e[fi]!=null&&n.c(M.of(kK,e[fi]).n(fi)),n},OW=(e,t)=>e.filter(n=>n!=null).map(n=>NW(n).n(Pi)),DW=(e,t)=>{const n=new M(bo);return e[fo]!=null&&n.c(wW(e[fo]).n(fo)),e[so]!=null&&n.c(Jj(e[so]).n(so)),n},LW=(e,t)=>{const n=new M(tg);return e[At]!=null&&n.c(M.of(gY,String(e[At])).n(At)),e[wi]!=null&&n.c(M.of(mY,e[wi]).n(wi)),n},MW=(e,t)=>e.filter(n=>n!=null).map(n=>LW(n).n(ir)),FW=(e,t)=>{const n=new M(Zb);return e[st]!=null&&n.c(M.of(Xp,e[st]).n(st)),e[ff]!=null&&n.c(M.of(ff,e[ff]).n(ng)),n.l(e,"Events","Event",()=>zp(e[Bi])),e[rt]!=null&&n.c($p(e[rt]).n(rt)),n},zW=(e,t)=>e.filter(n=>n!=null).map(n=>FW(n).n(ir)),UW=(e,t)=>{const n=new M(sg);return e[Gr]!=null&&n.c(M.of(Gr,ko(e[Gr]).toString()).n(Gr)),e[At]!=null&&n.c(M.of(At,String(e[At])).n(At)),e[_t]!=null&&n.c(M.of(Ew,e[_t]).n(_t)),n},$W=(e,t)=>e.filter(n=>n!=null).map(n=>UW(n).n(ir)),HW=(e,t)=>e.filter(n=>n!=null).map(n=>Bj(n).n(aw)),qW=(e,t)=>{const n=new M(jX);return e[Kd]!=null&&n.c(M.of(Kd,e[Kd]).n(qb)),e[Ue]!=null&&n.c(M.of(PK,e[Ue]).n(Ue)),n},jW=(e,t)=>{const n=new M(WX);return e[Ya]!=null&&n.c(Xq(e[Ya]).n(Ya)),e[Qa]!=null&&n.c(sj(e[Qa]).n(Qa)),e[io]!=null&&n.c(sW(e[io]).n(io)),n.lc(e,"RoutingRules","RoutingRules",()=>gW(e[Zo])),n},WW=(e,t)=>{const n={};return e[Ra]!=null&&(n[Ra]=Gt(e[Ra])),n},GW=(e,t)=>{const n={};return e[Mt]!=null&&(n[Mt]=D(e[Mt])),n},VW=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>D(n)),KW=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>D(n)),YW=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>D(n)),XW=(e,t)=>{const n={};return e[Oe]!=null&&(n[Oe]=D(e[Oe])),e.Tag===""?n[Lr]=[]:e[xt]!=null&&(n[Lr]=Bo(ot(e[xt]))),n},PT=(e,t)=>{const n={};return e[st]!=null&&(n[st]=D(e[st])),e.Filter===""||e[rt]!=null&&(n[rt]=JW(gS(e[rt]))),e[lo]!=null&&(n[lo]=tK(e[lo])),n},QW=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>PT(n)),ZW=(e,t)=>{const n={};return e[Ls]!=null&&(n[Ls]=eG(e[Ls])),n},JW=(e,t)=>e[Oe]!=null?{Prefix:D(e[Oe])}:e[xt]!=null?{Tag:ul(e[xt])}:e[Cn]!=null?{And:XW(e[Cn])}:{$unknown:Object.entries(e)[0]},eG=(e,t)=>{const n={};return e[Is]!=null&&(n[Is]=D(e[Is])),e[hc]!=null&&(n[hc]=D(e[hc])),e[Bt]!=null&&(n[Bt]=D(e[Bt])),e[Oe]!=null&&(n[Oe]=D(e[Oe])),n},tG=(e,t)=>{const n={};return e[kn]!=null&&(n[kn]=D(e[kn])),e[J0]!=null&&(n[J0]=Ve(Kr(e[J0]))),e[cu]!=null&&(n[cu]=D(e[cu])),e[ou]!=null&&(n[ou]=D(e[ou])),n},NT=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>tG(n)),nG=(e,t)=>{const n={};return e[dn]!=null&&(n[dn]=D(e[dn])),e[fn]!=null&&(n[fn]=D(e[fn])),e[hn]!=null&&(n[hn]=D(e[hn])),e[mn]!=null&&(n[mn]=D(e[mn])),e[bn]!=null&&(n[bn]=D(e[bn])),e[gn]!=null&&(n[gn]=D(e[gn])),n},OT=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>D(n)),rG=(e,t)=>{const n={};return e[Oe]!=null&&(n[Oe]=D(e[Oe])),n},Rh=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>rG(n)),sG=(e,t)=>{const n={};return e[$d]!=null&&(n[$d]=D(e[$d])),e[Wd]!=null&&(n[Wd]=D(e[Wd])),n},iG=(e,t)=>({}),aG=(e,t)=>{const n={};return e[tn]!=null&&(n[tn]=D(e[tn])),e[Bn]!=null&&(n[Bn]=Ve(Kr(e[Bn]))),e[gn]!=null&&(n[gn]=D(e[gn])),e[dn]!=null&&(n[dn]=D(e[dn])),e[fn]!=null&&(n[fn]=D(e[fn])),e[hn]!=null&&(n[hn]=D(e[hn])),e[mn]!=null&&(n[mn]=D(e[mn])),e[bn]!=null&&(n[bn]=D(e[bn])),n},oG=(e,t)=>{const n={};return e[tn]!=null&&(n[tn]=D(e[tn])),e[Bn]!=null&&(n[Bn]=Ve(Kr(e[Bn]))),e[dn]!=null&&(n[dn]=D(e[dn])),e[fn]!=null&&(n[fn]=D(e[fn])),e[hn]!=null&&(n[hn]=D(e[hn])),e[mn]!=null&&(n[mn]=D(e[mn])),e[bn]!=null&&(n[bn]=D(e[bn])),n},cG=(e,t)=>{const n={};return e[Rn]!=null&&(n[Rn]=D(e[Rn])),e.AllowedHeader===""?n[wb]=[]:e[Tb]!=null&&(n[wb]=VW(ot(e[Tb]))),e.AllowedMethod===""?n[kb]=[]:e[Ab]!=null&&(n[kb]=KW(ot(e[Ab]))),e.AllowedOrigin===""?n[Rb]=[]:e[Ib]!=null&&(n[Rb]=YW(ot(e[Ib]))),e.ExposeHeader===""?n[Ob]=[]:e[Db]!=null&&(n[Ob]=TG(ot(e[Db]))),e[Na]!=null&&(n[Na]=Gt(e[Na])),n},lG=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>cG(n)),uG=(e,t)=>{const n={};return e[Bs]!=null&&(n[Bs]=D(e[Bs])),e[At]!=null&&(n[At]=Gt(e[At])),e[La]!=null&&(n[La]=Gt(e[La])),n},dG=(e,t)=>{const n={};return e[gt]!=null&&(n[gt]=D(e[gt])),e[wt]!=null&&(n[wt]=D(e[wt])),e[qs]!=null&&(n[qs]=Nt(e[qs])),e[nm]!=null&&(n[nm]=D(e[nm])),n},fG=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>dG(n)),hG=(e,t)=>{const n={};return e[Mt]!=null&&(n[Mt]=ba(e[Mt])),e[gt]!=null&&(n[gt]=D(e[gt])),e[wt]!=null&&(n[wt]=D(e[wt])),e[_c]!=null&&(n[_c]=Nt(e[_c])),e[Bn]!=null&&(n[Bn]=Ve(Kr(e[Bn]))),n},mG=(e,t)=>{const n={};return e[Ue]!=null&&(n[Ue]=D(e[Ue])),n},bG=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>hG(n)),gG=(e,t)=>{const n={};return e[Bt]!=null&&(n[Bt]=D(e[Bt])),e[fc]!=null&&(n[fc]=D(e[fc])),e[_t]!=null&&(n[_t]=D(e[_t])),e[qa]!=null&&(n[qa]=GW(e[qa])),e[Or]!=null&&(n[Or]=yG(e[Or])),e[oo]!=null&&(n[oo]=zV(e[oo])),e[to]!=null&&(n[to]=tV(e[to])),n},pG=(e,t)=>{const n={};return e[km]!=null&&(n[km]=D(e[km])),e[Ri]!=null&&(n[Ri]=D(e[Ri])),e[zc]!=null&&(n[zc]=D(e[zc])),n},yG=(e,t)=>{const n={};return e[tf]!=null&&(n[tf]=D(e[tf])),n},EG=(e,t)=>({}),CG=(e,t)=>{const n={};return e[gt]!=null&&(n[gt]=D(e[gt])),e[wt]!=null&&(n[wt]=D(e[wt])),e[tm]!=null&&(n[tm]=D(e[tm])),e[bm]!=null&&(n[bm]=D(e[bm])),n},qp=(e,t)=>{const n={};return e[Fd]!=null&&(n[Fd]=D(e[Fd])),e[zd]!=null&&(n[zd]=D(e[zd])),n},xG=(e,t)=>{const n={};return e[gt]!=null&&(n[gt]=D(e[gt])),n},vG=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>CG(n)),_G=(e,t)=>({}),jp=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>D(n)),SG=(e,t)=>{const n={};return e[Ue]!=null&&(n[Ue]=D(e[Ue])),n},TG=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>D(n)),wG=(e,t)=>{const n={};return e[kn]!=null&&(n[kn]=D(e[kn])),e[bs]!=null&&(n[bs]=D(e[bs])),n},AG=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>wG(n)),kG=(e,t)=>{const n={};return e[hm]!=null&&(n[hm]=JG(e[hm])),n},IG=(e,t)=>{const n={};return e[mm]!=null&&(n[mm]=eV(e[mm])),e[Ue]!=null&&(n[Ue]=D(e[Ue])),e[Ws]!=null&&(n[Ws]=qp(e[Ws])),n},RG=(e,t)=>{const n={};return e[Jc]!=null&&(n[$X]=Gt(e[Jc])),e[na]!=null&&(n[na]=D(e[na])),e[Pc]!=null&&(n[Pc]=D(e[Pc])),e[ki]!=null&&(n[ki]=Gt(e[ki])),e[Vt]!=null&&(n[Vt]=Nt(e[Vt])),e.Part===""?n[Bu]=[]:e[eh]!=null&&(n[Bu]=SV(ot(e[eh]))),n},BG=(e,t)=>{const n={};return e[ms]!=null&&(n[ms]=DT(e[ms])),e[fi]!=null&&(n[fi]=D(e[fi])),n},DT=(e,t)=>{const n={};return e[js]!=null&&(n[js]=D(e[js])),e[Md]!=null&&(n[Md]=D(e[Md])),e[Rn]!=null&&(n[Rn]=D(e[Rn])),e[gf]!=null&&(n[gf]=D(e[gf])),e[Sx]!=null&&(n[is]=D(e[Sx])),n},LT=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>BG(n)),PG=(e,t)=>{const n={};return e[df]!=null&&(n[df]=D(e[df])),n},MT=(e,t)=>{const n={};return e[Rn]!=null&&(n[Rn]=D(e[Rn])),e[js]!=null&&(n[js]=D(e[js])),n},NG=(e,t)=>{const n={};return e[Oe]!=null&&(n[Oe]=D(e[Oe])),e.Tag===""?n[Lr]=[]:e[xt]!=null&&(n[Lr]=Bo(ot(e[xt]))),n},FT=(e,t)=>{const n={};return e[st]!=null&&(n[st]=D(e[st])),e[rt]!=null&&(n[rt]=DG(e[rt])),e[Ue]!=null&&(n[Ue]=D(e[Ue])),e.Tiering===""?n[eg]=[]:e[tg]!=null&&(n[eg]=oK(ot(e[tg]))),n},OG=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>FT(n)),DG=(e,t)=>{const n={};return e[Oe]!=null&&(n[Oe]=D(e[Oe])),e[xt]!=null&&(n[xt]=ul(e[xt])),e[Cn]!=null&&(n[Cn]=NG(e[Cn])),n},zT=(e,t)=>{const n={};return e[nr]!=null&&(n[nr]=MG(e[nr])),e[Pa]!=null&&(n[Pa]=Nt(e[Pa])),e[rt]!=null&&(n[rt]=zG(e[rt])),e[st]!=null&&(n[st]=D(e[st])),e[Sc]!=null&&(n[Sc]=D(e[Sc])),e.OptionalFields===""?n[Qo]=[]:e[Qo]!=null&&e[Qo][Fb]!=null&&(n[Qo]=UG(ot(e[Qo][Fb]))),e[Fc]!=null&&(n[Fc]=HG(e[Fc])),n},LG=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>zT(n)),MG=(e,t)=>{const n={};return e[Ls]!=null&&(n[Ls]=$G(e[Ls])),n},FG=(e,t)=>{const n={};return e[rh]!=null&&(n[Qb]=JV(e[rh])),e[nh]!=null&&(n[Xb]=QV(e[nh])),n},zG=(e,t)=>{const n={};return e[Oe]!=null&&(n[Oe]=D(e[Oe])),n},UG=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>D(n)),$G=(e,t)=>{const n={};return e[uc]!=null&&(n[uc]=D(e[uc])),e[Bt]!=null&&(n[Bt]=D(e[Bt])),e[Is]!=null&&(n[Is]=D(e[Is])),e[Oe]!=null&&(n[Oe]=D(e[Oe])),e[di]!=null&&(n[di]=FG(e[di])),n},HG=(e,t)=>{const n={};return e[vc]!=null&&(n[vc]=D(e[vc])),n},qG=(e,t)=>{const n={};return e[Ai]!=null&&(n[Ai]=D(e[Ai])),e[Uc]!=null&&(n[Uc]=D(e[Uc])),e[Ws]!=null&&(n[Ws]=qp(e[Ws])),e[Ms]!=null&&(n[Ms]=D(e[Ms])),e[Ii]!=null&&(n[Ii]=D(e[Ii])),n},jG=(e,t)=>{const n={};return e[Uc]!=null&&(n[Uc]=D(e[Uc])),e[Ws]!=null&&(n[Ws]=qp(e[Ws])),e[Ms]!=null&&(n[Ms]=D(e[Ms])),e[Ii]!=null&&(n[Ii]=D(e[Ii])),e[hi]!=null&&(n[hi]=RV(e[hi])),n},WG=(e,t)=>{const n={};return e[st]!=null&&(n[st]=D(e[st])),e[Bb]!=null&&(n[Gd]=D(e[Bb])),e.Event===""?n[Bi]=[]:e[xo]!=null&&(n[Bi]=jp(ot(e[xo]))),e[rt]!=null&&(n[rt]=Wp(e[rt])),n},GG=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>WG(n)),VG=(e,t)=>{const n={};return e[Gr]!=null&&(n[Gr]=Ve(Kr(e[Gr]))),e[At]!=null&&(n[At]=Gt(e[At])),e[Ba]!=null&&(n[Ba]=Nt(e[Ba])),n},KG=(e,t)=>{const n={};return e[jn]!=null&&(n[jn]=VG(e[jn])),e[Rn]!=null&&(n[Rn]=D(e[Rn])),e[Oe]!=null&&(n[Oe]=D(e[Oe])),e[rt]!=null&&(n[rt]=XG(e[rt])),e[Ue]!=null&&(n[Ue]=D(e[Ue])),e.Transition===""?n[rg]=[]:e[sg]!=null&&(n[rg]=dK(ot(e[sg]))),e.NoncurrentVersionTransition===""?n[jb]=[]:e[Wb]!=null&&(n[jb]=lV(ot(e[Wb]))),e[no]!=null&&(n[no]=oV(e[no])),e[ja]!=null&&(n[ja]=WW(e[ja])),n},YG=(e,t)=>{const n={};return e[Oe]!=null&&(n[Oe]=D(e[Oe])),e.Tag===""?n[Lr]=[]:e[xt]!=null&&(n[Lr]=Bo(ot(e[xt]))),e[Os]!=null&&(n[Os]=yr(e[Os])),e[Ds]!=null&&(n[Ds]=yr(e[Ds])),n},XG=(e,t)=>{const n={};return e[Oe]!=null&&(n[Oe]=D(e[Oe])),e[xt]!=null&&(n[xt]=ul(e[xt])),e[Os]!=null&&(n[Os]=yr(e[Os])),e[Ds]!=null&&(n[Ds]=yr(e[Ds])),e[Cn]!=null&&(n[Cn]=YG(e[Cn])),n},QG=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>KG(n)),ZG=(e,t)=>{const n={};return e[hf]!=null&&(n[hf]=D(e[hf])),e.TargetGrants===""?n[Jo]=[]:e[Jo]!=null&&e[Jo][Pi]!=null&&(n[Jo]=sK(ot(e[Jo][Pi]))),e[mf]!=null&&(n[mf]=D(e[mf])),e[bo]!=null&&(n[bo]=iK(e[bo])),n},JG=(e,t)=>{const n={};return e[rm]!=null&&(n[rm]=pG(e[rm])),e[um]!=null&&(n[um]=jG(e[um])),e[cm]!=null&&(n[cm]=qG(e[cm])),n},eV=(e,t)=>{const n={};return e[wm]!=null&&(n[wm]=qV(e[wm])),n},tV=(e,t)=>{const n={};return e[Ue]!=null&&(n[Ue]=D(e[Ue])),e[xc]!=null&&(n[xc]=HT(e[xc])),n},nV=(e,t)=>{const n={};return e[Oe]!=null&&(n[Oe]=D(e[Oe])),e.Tag===""?n[Lr]=[]:e[xt]!=null&&(n[Lr]=Bo(ot(e[xt]))),e[Ti]!=null&&(n[Ti]=D(e[Ti])),n},UT=(e,t)=>{const n={};return e[st]!=null&&(n[st]=D(e[st])),e.Filter===""||e[rt]!=null&&(n[rt]=sV(gS(e[rt]))),n},rV=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>UT(n)),sV=(e,t)=>e[Oe]!=null?{Prefix:D(e[Oe])}:e[xt]!=null?{Tag:ul(e[xt])}:e[Ti]!=null?{AccessPointArn:D(e[Ti])}:e[Cn]!=null?{And:nV(e[Cn])}:{$unknown:Object.entries(e)[0]},iV=(e,t)=>{const n={};return e[as]!=null&&(n[as]=D(e[as])),e[gt]!=null&&(n[gt]=D(e[gt])),e[lm]!=null&&(n[lm]=Ve(Kr(e[lm]))),e[_t]!=null&&(n[_t]=D(e[_t])),e[Mt]!=null&&(n[Mt]=ba(e[Mt])),e[wc]!=null&&(n[wc]=MT(e[wc])),e[Et]!=null&&(n[Et]=D(e[Et])),e[gn]!=null&&(n[gn]=D(e[gn])),n},aV=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>iV(n)),oV=(e,t)=>{const n={};return e[Ps]!=null&&(n[Ps]=Gt(e[Ps])),e[Ns]!=null&&(n[Ns]=Gt(e[Ns])),n},cV=(e,t)=>{const n={};return e[Ps]!=null&&(n[Ps]=Gt(e[Ps])),e[_t]!=null&&(n[_t]=D(e[_t])),e[Ns]!=null&&(n[Ns]=Gt(e[Ns])),n},lV=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>cV(n)),Wp=(e,t)=>{const n={};return e[Yb]!=null&&(n[gt]=HV(e[Yb])),n},uV=(e,t)=>{const n={};return e[gt]!=null&&(n[gt]=D(e[gt])),e[Bn]!=null&&(n[Bn]=Ve(Kr(e[Bn]))),e[tn]!=null&&(n[tn]=D(e[tn])),e.ChecksumAlgorithm===""?n[Et]=[]:e[Et]!=null&&(n[Et]=OT(ot(e[Et]))),e[gn]!=null&&(n[gn]=D(e[gn])),e[Sr]!=null&&(n[Sr]=yr(e[Sr])),e[_t]!=null&&(n[_t]=D(e[_t])),e[Mt]!=null&&(n[Mt]=ba(e[Mt])),e[Dc]!=null&&(n[Dc]=qT(e[Dc])),n},$T=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>uV(n)),dV=(e,t)=>{const n={};return e[Qd]!=null&&(n[Qd]=D(e[Qd])),e[ss]!=null&&(n[ss]=mV(e[ss])),n},fV=(e,t)=>{const n={};return e[Ue]!=null&&(n[Ue]=D(e[Ue])),n},hV=(e,t)=>{const n={};return e[Bs]!=null&&(n[Bs]=D(e[Bs])),e[Lc]!=null&&(n[Lc]=Ve(Kr(e[Lc]))),n},mV=(e,t)=>{const n={};return e[Va]!=null&&(n[Va]=uG(e[Va])),n},bV=(e,t)=>{const n={};return e[ns]!=null&&(n[ns]=Gt(e[ns])),e[Sr]!=null&&(n[Sr]=yr(e[Sr])),e[dn]!=null&&(n[dn]=D(e[dn])),e[fn]!=null&&(n[fn]=D(e[fn])),e[hn]!=null&&(n[hn]=D(e[hn])),e[mn]!=null&&(n[mn]=D(e[mn])),e[bn]!=null&&(n[bn]=D(e[bn])),n},gV=(e,t)=>{const n={};return e[tn]!=null&&(n[tn]=D(e[tn])),e.ChecksumAlgorithm===""?n[Et]=[]:e[Et]!=null&&(n[Et]=OT(ot(e[Et]))),e[gn]!=null&&(n[gn]=D(e[gn])),e[Sr]!=null&&(n[Sr]=yr(e[Sr])),e[_t]!=null&&(n[_t]=D(e[_t])),e[gt]!=null&&(n[gt]=D(e[gt])),e[wt]!=null&&(n[wt]=D(e[wt])),e[_c]!=null&&(n[_c]=Nt(e[_c])),e[Bn]!=null&&(n[Bn]=Ve(Kr(e[Bn]))),e[Mt]!=null&&(n[Mt]=ba(e[Mt])),e[Dc]!=null&&(n[Dc]=qT(e[Dc])),n},pV=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>gV(n)),ba=(e,t)=>{const n={};return e[js]!=null&&(n[js]=D(e[js])),e[Rn]!=null&&(n[Rn]=D(e[Rn])),n},yV=(e,t)=>{const n={};return e.Rule===""?n[Fs]=[]:e[ss]!=null&&(n[Fs]=CV(ot(e[ss]))),n},EV=(e,t)=>{const n={};return e[lu]!=null&&(n[lu]=D(e[lu])),n},CV=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>EV(n)),xV=(e,t)=>{const n={};return e[ns]!=null&&(n[ns]=Gt(e[ns])),e[Bn]!=null&&(n[Bn]=Ve(Kr(e[Bn]))),e[tn]!=null&&(n[tn]=D(e[tn])),e[Sr]!=null&&(n[Sr]=yr(e[Sr])),e[dn]!=null&&(n[dn]=D(e[dn])),e[fn]!=null&&(n[fn]=D(e[fn])),e[hn]!=null&&(n[hn]=D(e[hn])),e[mn]!=null&&(n[mn]=D(e[mn])),e[bn]!=null&&(n[bn]=D(e[bn])),n},vV=(e,t)=>{const n={};return e[Zd]!=null&&(n[Zd]=D(e[Zd])),n},_V=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>xV(n)),SV=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>bV(n)),TV=(e,t)=>{const n={};return e[am]!=null&&(n[am]=Nt(e[am])),n},wV=(e,t)=>{const n={};return e[yc]!=null&&(n[yc]=yr(e[yc])),e[mc]!=null&&(n[mc]=yr(e[mc])),e[pc]!=null&&(n[pc]=yr(e[pc])),n},AV=(e,t)=>{const n={};return e[bc]!=null&&(n[bc]=Nt(e[bc])),e[Tc]!=null&&(n[Tc]=Nt(e[Tc])),e[gc]!=null&&(n[gc]=Nt(e[gc])),e[Oc]!=null&&(n[Oc]=Nt(e[Oc])),n},kV=(e,t)=>{const n={};return e[st]!=null&&(n[st]=D(e[st])),e[Kb]!=null&&(n[ef]=D(e[Kb])),e.Event===""?n[Bi]=[]:e[xo]!=null&&(n[Bi]=jp(ot(e[xo]))),e[rt]!=null&&(n[rt]=Wp(e[rt])),n},IV=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>kV(n)),RV=(e,t)=>{const n={};return e[jn]!=null&&(n[jn]=D(e[jn])),e[At]!=null&&(n[At]=Gt(e[At])),n},BV=(e,t)=>{const n={};return e[ea]!=null&&(n[ea]=D(e[ea])),e[Hd]!=null&&(n[Hd]=D(e[Hd])),e[ra]!=null&&(n[ra]=D(e[ra])),e[nf]!=null&&(n[nf]=D(e[nf])),e[rf]!=null&&(n[rf]=D(e[rf])),n},PV=(e,t)=>{const n={};return e[ea]!=null&&(n[ea]=D(e[ea])),e[ra]!=null&&(n[ra]=D(e[ra])),n},NV=(e,t)=>{const n={};return e[Ue]!=null&&(n[Ue]=D(e[Ue])),n},OV=(e,t)=>{const n={};return e[af]!=null&&(n[af]=D(e[af])),e.Rule===""?n[Fs]=[]:e[ss]!=null&&(n[Fs]=FV(ot(e[ss]))),n},DV=(e,t)=>{const n={};return e[Rn]!=null&&(n[Rn]=D(e[Rn])),e[Da]!=null&&(n[Da]=Gt(e[Da])),e[Oe]!=null&&(n[Oe]=D(e[Oe])),e[rt]!=null&&(n[rt]=MV(e[rt])),e[Ue]!=null&&(n[Ue]=D(e[Ue])),e[ho]!=null&&(n[ho]=XV(e[ho])),e[Xa]!=null&&(n[Xa]=SG(e[Xa])),e[nr]!=null&&(n[nr]=gG(e[nr])),e[Ga]!=null&&(n[Ga]=mG(e[Ga])),n},LV=(e,t)=>{const n={};return e[Oe]!=null&&(n[Oe]=D(e[Oe])),e.Tag===""?n[Lr]=[]:e[xt]!=null&&(n[Lr]=Bo(ot(e[xt]))),n},MV=(e,t)=>{const n={};return e[Oe]!=null&&(n[Oe]=D(e[Oe])),e[xt]!=null&&(n[xt]=ul(e[xt])),e[Cn]!=null&&(n[Cn]=LV(e[Cn])),n},FV=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>DV(n)),zV=(e,t)=>{const n={};return e[Ue]!=null&&(n[Ue]=D(e[Ue])),e[$c]!=null&&(n[$c]=HT(e[$c])),n},HT=(e,t)=>{const n={};return e[Oa]!=null&&(n[Oa]=Gt(e[Oa])),n},qT=(e,t)=>{const n={};return e[om]!=null&&(n[om]=Nt(e[om])),e[vm]!=null&&(n[vm]=Ve(Kr(e[vm]))),n},UV=(e,t)=>{const n={};return e[Wa]!=null&&(n[Wa]=sG(e[Wa])),e[co]!=null&&(n[co]=BV(e[co])),n},$V=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>UV(n)),HV=(e,t)=>{const n={};return e.FilterRule===""?n[Mb]=[]:e[Lb]!=null&&(n[Mb]=AG(ot(e[Lb]))),n},qV=(e,t)=>{const n={};return e[Ri]!=null&&(n[Ri]=D(e[Ri])),e[Ms]!=null&&(n[Ms]=D(e[Ms])),e[Ii]!=null&&(n[Ii]=D(e[Ii])),e[zc]!=null&&(n[zc]=D(e[zc])),n},jV=(e,t)=>{const n={};return e[Mc]!=null&&(n[Mc]=D(e[Mc])),e[Ic]!=null&&(n[Ic]=D(e[Ic])),n},WV=(e,t)=>{const n={};return e.Rule===""?n[Fs]=[]:e[ss]!=null&&(n[Fs]=VV(ot(e[ss]))),n},GV=(e,t)=>{const n={};return e[dc]!=null&&(n[dc]=jV(e[dc])),e[En]!=null&&(n[En]=Nt(e[En])),n},VV=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>GV(n)),KV=(e,t)=>{const n={};return e[X0]!=null&&(n[X0]=D(e[X0])),e[_m]!=null&&(n[_m]=D(e[_m])),e[Tm]!=null&&(n[Tm]=D(e[Tm])),e[jn]!=null&&(n[jn]=Ve(Kr(e[jn]))),n},YV=(e,t)=>({}),XV=(e,t)=>{const n={};return e[uo]!=null&&(n[uo]=ZV(e[uo])),e[ao]!=null&&(n[ao]=NV(e[ao])),n},QV=(e,t)=>{const n={};return e[kc]!=null&&(n[kc]=D(e[kc])),n},ZV=(e,t)=>{const n={};return e[Ue]!=null&&(n[Ue]=D(e[Ue])),n},JV=(e,t)=>({}),eK=(e,t)=>{const n={};return e[yc]!=null&&(n[yc]=yr(e[yc])),e[mc]!=null&&(n[mc]=yr(e[mc])),e[pc]!=null&&(n[pc]=yr(e[pc])),n},tK=(e,t)=>{const n={};return e[Cc]!=null&&(n[Cc]=nK(e[Cc])),n},nK=(e,t)=>{const n={};return e[Nc]!=null&&(n[Nc]=D(e[Nc])),e[nr]!=null&&(n[nr]=ZW(e[nr])),n},ul=(e,t)=>{const n={};return e[gt]!=null&&(n[gt]=D(e[gt])),e[bs]!=null&&(n[bs]=D(e[bs])),n},Bo=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>ul(n)),rK=(e,t)=>{const n={};return e[ms]!=null&&(n[ms]=DT(e[ms])),e[fi]!=null&&(n[fi]=D(e[fi])),n},sK=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>rK(n)),iK=(e,t)=>{const n={};return e[fo]!=null&&(n[fo]=YV(e[fo])),e[so]!=null&&(n[so]=vV(e[so])),n},aK=(e,t)=>{const n={};return e[At]!=null&&(n[At]=Gt(e[At])),e[wi]!=null&&(n[wi]=D(e[wi])),n},oK=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>aK(n)),cK=(e,t)=>{const n={};return e[st]!=null&&(n[st]=D(e[st])),e[ng]!=null&&(n[ff]=D(e[ng])),e.Event===""?n[Bi]=[]:e[xo]!=null&&(n[Bi]=jp(ot(e[xo]))),e[rt]!=null&&(n[rt]=Wp(e[rt])),n},lK=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>cK(n)),uK=(e,t)=>{const n={};return e[Gr]!=null&&(n[Gr]=Ve(Kr(e[Gr]))),e[At]!=null&&(n[At]=Gt(e[At])),e[_t]!=null&&(n[_t]=D(e[_t])),n},dK=(e,t)=>(e||[]).filter(n=>n!=null).map(n=>uK(n)),fe=e=>({httpStatusCode:e.statusCode,requestId:e.headers["x-amzn-requestid"]??e.headers["x-amzn-request-id"]??e.headers["x-amz-request-id"],extendedRequestId:e.headers["x-amz-id-2"],cfId:e.headers["x-amz-cf-id"]}),fK=(e,t)=>tt(e,t).then(n=>t.utf8Encoder(n)),Cn="And",hK="AnalyticsAndOperator",Sb="AnalyticsConfiguration",dl="ACL",Ha="AccessControlList",JC="AnalyticsConfigurationList",mK="AccessControlPolicy",qa="AccessControlTranslation",bK="AccelerateConfiguration",jT="AbortDate",gK="AnalyticsExportDestination",pK="AnalyticsFilter",Tb="AllowedHeader",wb="AllowedHeaders",yK="AnalyticsId",ja="AbortIncompleteMultipartUpload",uc="AccountId",X0="AccessKeyId",Ab="AllowedMethod",kb="AllowedMethods",Ib="AllowedOrigin",Rb="AllowedOrigins",EK="AccessPointAlias",Ti="AccessPointArn",Cd="AllowQuotedRecordDelimiter",Gp="AcceptRanges",WT="AbortRuleId",CK="ArchiveStatus",xK="AnalyticsS3BucketDestination",vK="AnalyticsS3ExportFileFormat",dc="ApplyServerSideEncryptionByDefault",wi="AccessTier",fc="Account",Bt="Bucket",ou="BucketArn",hc="BucketAccountId",_K="BucketAccelerateStatus",Qc="BypassGovernanceRetention",SK="BucketInfo",En="BucketKeyEnabled",TK="BucketLifecycleConfiguration",wK="BucketLocationConstraint",AK="BucketLocationName",kK="BucketLogsPermission",IK="BucketLoggingStatus",RK="BucketLocationType",Bh="BucketName",mc="BytesProcessed",bc="BlockPublicAcls",gc="BlockPublicPolicy",cu="BucketRegion",pc="BytesReturned",yc="BytesScanned",BK="BucketType",PK="BucketVersioningStatus",ii="Buckets",Q0="Credentials",Et="ChecksumAlgorithm",Z0="CannedACL",NK="CreateBucketConfiguration",fl="CacheControl",dn="ChecksumCRC32",fn="ChecksumCRC32C",hn="ChecksumCRC64NVME",hl="ContentDisposition",J0="CreationDate",ml="ContentEncoding",Bb="CloudFunction",ex="CloudFunctionConfiguration",bl="ContentLanguage",ua="ContentLength",GT="ChecksumMode",Nn="ContentMD5",OK="CompletedMultipartUpload",DK="CORSConfiguration",Pb="CORSRule",Nb="CORSRules",Pr="CommonPrefixes",LK="CompletedPart",Vp="ContentRange",tx="ConfirmRemoveSelfBucketAccess",VT="CopySource",mn="ChecksumSHA1",bn="ChecksumSHA256",KT="CopySourceIfMatch",Yf="CopySourceIfModifiedSince",YT="CopySourceIfNoneMatch",Xf="CopySourceIfUnmodifiedSince",MK="CopySourceRange",XT="CopySourceSSECustomerAlgorithm",QT="CopySourceSSECustomerKey",ZT="CopySourceSSECustomerKeyMD5",Ec="CSV",JT="CopySourceVersionId",FK="CSVInput",zK="CSVOutput",Ai="ConfigurationState",gn="ChecksumType",UK="ClientToken",gl="ContentType",$K="CompressionType",en="ContinuationToken",em="Checksum",Xi="Contents",tm="Code",HK="Comments",Wa="Condition",Nr="Delimiter",Ra="DaysAfterInitiation",Cc="DataExport",qK="DestinationIfMatch",nx="DestinationIfModifiedSince",jK="DestinationIfNoneMatch",rx="DestinationIfUnmodifiedSince",qs="DeleteMarker",Ga="DeleteMarkerReplication",WK="DeleteMarkerReplicationStatus",nm="DeleteMarkerVersionId",sx="DeleteMarkers",js="DisplayName",GK="DataRedundancy",Va="DefaultRetention",rm="DestinationResult",At="Days",Gr="Date",xd="Deleted",VK="Delete",nr="Destination",KK="Description",mi="Expires",Md="EmailAddress",Ka="EventBridgeConfiguration",ke="ExpectedBucketOwner",Fd="ErrorCode",Or="EncryptionConfiguration",Ya="ErrorDocument",Ob="ExposeHeaders",Db="ExposeHeader",zd="ErrorMessage",Ba="ExpiredObjectDeleteMarker",Xa="ExistingObjectReplication",YK="ExistingObjectReplicationStatus",XK="EnableRequestProgress",ew="ExpiresString",tw="ExpectedSourceBucketOwner",QK="ExpirationStatus",ZK="ExpirationState",Dr="EncodingType",tn="ETag",sm="EncryptionType",xc="EventThreshold",nw="ExpressionType",di="Encryption",im="Enabled",vd="End",Ws="Error",ix="Errors",xo="Event",Bi="Events",rw="Expression",jn="Expiration",rt="Filter",sw="FieldDelimiter",JK="FileHeaderInfo",eY="FetchOwner",Lb="FilterRule",tY="FilterRuleName",nY="FilterRuleValue",Mb="FilterRules",Fb="Field",Is="Format",vc="Frequency",Pi="Grant",pl="GrantFullControl",Ud="GlacierJobParameters",yl="GrantRead",El="GrantReadACP",Kp="GrantWrite",Cl="GrantWriteACP",Ru="Grants",ms="Grantee",$d="HttpErrorCodeReturnedEquals",ea="HostName",Hd="HttpRedirectCode",st="Id",zb="InventoryConfiguration",ax="InventoryConfigurationList",iw="InventoryConfigurationState",Qa="IndexDocument",Rn="ID",rY="InventoryDestination",Pa="IsEnabled",sY="InventoryEncryption",iY="InventoryFilter",aY="InventoryFormat",oY="InventoryFrequency",cY="InventoryId",lY="InventoryIncludedObjectVersions",_c="IsLatest",zu="IfMatch",ox="IfMatchInitiatedTime",cx="IfMatchLastModifiedTime",lx="IfMatchSize",Qf="IfModifiedSince",Ph="IfNoneMatch",uY="InventoryOptionalField",Sc="IncludedObjectVersions",am="IsPublic",Tc="IgnorePublicAcls",om="IsRestoreInProgress",Za="InputSerialization",dY="InventoryS3BucketDestination",fY="InventorySchedule",Vt="IsTruncated",hY="IntelligentTieringAndOperator",mY="IntelligentTieringAccessTier",Ub="IntelligentTieringConfiguration",ux="IntelligentTieringConfigurationList",cm="InventoryTableConfigurationResult",bY="InventoryTableConfigurationUpdates",qd="InventoryTableConfiguration",gY="IntelligentTieringDays",pY="IntelligentTieringFilter",yY="IntelligentTieringId",EY="IntelligentTieringStatus",Zf="IfUnmodifiedSince",wc="Initiator",lm="Initiated",Ac="JSON",CY="JSONInput",xY="JSONOutput",vY="JSONType",jd="JournalTableConfiguration",um="JournalTableConfigurationResult",_Y="JournalTableConfigurationUpdates",gt="Key",dm="KeyCount",kc="KeyId",SY="KmsKeyArn",ta="KeyMarker",TY="KMSContext",fm="KMSKeyId",Ic="KMSMasterKeyID",Wd="KeyPrefixEquals",Ja="Location",Rc="LocationConstraint",eo="LoggingEnabled",wY="LifecycleExpiration",Gd="LambdaFunctionArn",$b="LambdaFunctionConfigurations",AY="LambdaFunctionConfiguration",kY="LocationInfo",Bn="LastModified",_d="LastModifiedTime",IY="LocationNameAsString",RY="LocationPrefix",BY="LifecycleRule",PY="LifecycleRuleAndOperator",NY="LifecycleRuleFilter",OY="LocationType",Vd="Marker",DY="MetricsAndOperator",Na="MaxAgeSeconds",LY="MaxBuckets",Hb="MetricsConfiguration",dx="MetricsConfigurationList",hm="MetadataConfigurationResult",MY="MetadataConfiguration",FY="MetadataDirective",zY="MaxDirectoryBuckets",qb="MfaDelete",aw="MetadataEntry",UY="MetricsFilter",Yp="MFA",Kd="MFADelete",$Y="MetricsId",Rs="MaxKeys",HY="MetadataKey",Jf="MissingMeta",fx="MpuObjectSize",ki="MaxParts",qY="MetricsStatus",jY="MetadataTableConfiguration",mm="MetadataTableConfigurationResult",WY="MetadataTableEncryptionConfiguration",Yd="MaxUploads",GY="MetadataValue",to="Metrics",bm="Message",Oa="Minutes",Bs="Mode",kn="Name",VY="NotificationConfiguration",KY="NotificationConfigurationFilter",Vr="NextContinuationToken",Ps="NoncurrentDays",Xp="NotificationId",Bc="NextKeyMarker",gm="NextMarker",Ns="NewerNoncurrentVersions",Pc="NextPartNumberMarker",pm="NextUploadIdMarker",no="NoncurrentVersionExpiration",ym="NextVersionIdMarker",jb="NoncurrentVersionTransitions",Wb="NoncurrentVersionTransition",Mt="Owner",hx="ObjectAttributes",YY="OwnershipControls",XY="ObjectCannedACL",QY="OwnershipControlsRule",Qo="OptionalFields",ZY="ObjectIdentifier",Qp="ObjectKey",Xd="OutputLocation",JY="ObjectLockConfiguration",Qd="ObjectLockEnabled",mx="ObjectLockEnabledForBucket",eX="ObjectLockLegalHold",Po="ObjectLockLegalHoldStatus",xl="ObjectLockMode",tX="ObjectLockRetention",ow="ObjectLockRetentionMode",bi="ObjectLockRetainUntilDate",nX="ObjectLockRule",lu="ObjectOwnership",Zc="OptionalObjectAttributes",rX="OwnerOverride",Em="ObjectParts",ro="OutputSerialization",Os="ObjectSizeGreaterThan",cw="ObjectSizeGreaterThanBytes",Ds="ObjectSizeLessThan",lw="ObjectSizeLessThanBytes",Nc="OutputSchemaVersion",Cm="ObjectSize",sX="ObjectVersionId",iX="Objects",Oe="Prefix",aX="PublicAccessBlockConfiguration",Jc="PartsCount",Zd="PartitionDateSource",oX="ParquetInput",ns="PartNumber",na="PartNumberMarker",so="PartitionedPrefix",Jd="Payer",eh="Part",xm="Parquet",Bu="Parts",fi="Permission",ra="Protocol",Da="Priority",Sd="Quiet",ef="QueueArn",Gb="QueueConfiguration",Vb="QueueConfigurations",uw="QuoteCharacter",dw="QuoteEscapeCharacter",cX="QuoteFields",Kb="Queue",fw="Range",io="RedirectAllRequestsTo",xn="RequestCharged",hw="ResponseCacheControl",mw="ResponseContentDisposition",bw="ResponseContentEncoding",gw="ResponseContentLanguage",pw="ResponseContentType",lX="ReplicationConfiguration",Zp="RecordDelimiter",yw="ResponseExpires",uX="RecordExpirationDays",vm="RestoreExpiryDate",hi="RecordExpiration",tf="ReplicaKmsKeyID",nf="ReplaceKeyPrefixWith",rf="ReplaceKeyWith",ao="ReplicaModifications",dX="ReplicaModificationsStatus",fX="RestoreOutputPath",Yt="RequestPayer",Oc="RestrictPublicBuckets",hX="RequestPaymentConfiguration",sf="RequestProgress",mX="RequestRoute",bX="ReplicationRuleAndOperator",gX="ReplicationRuleFilter",pX="ReplicationRuleStatus",yX="RestoreRequestType",EX="ReplicationRule",CX="RestoreRequest",Zo="RoutingRules",th="RoutingRule",xX="RenameSource",Jp="ReplicationStatus",Dc="RestoreStatus",vX="RequestToken",_X="ReplicationTimeStatus",SX="ReplicationTimeValue",oo="ReplicationTime",Lc="RetainUntilDate",ey="Restore",co="Redirect",af="Role",ss="Rule",Fs="Rules",Ue="Status",of="StartAfter",_m="SecretAccessKey",Sm="SseAlgorithm",Ls="S3BucketDestination",_t="StorageClass",lo="StorageClassAnalysis",TX="StorageClassAnalysisDataExport",wX="StorageClassAnalysisSchemaVersion",bx="StatusCode",gx="SkipDestinationValidation",AX="SourceIfMatch",px="SourceIfModifiedSince",kX="SourceIfNoneMatch",yx="SourceIfUnmodifiedSince",nh="SSE-KMS",uo="SseKmsEncryptedObjects",IX="SseKmsEncryptedObjectsStatus",RX="S3KeyFilter",Yb="S3Key",BX="S3Location",PX="SessionMode",NX="SelectObjectContentRequest",cf="SelectParameters",fo="SimplePrefix",lf="ScanRange",rh="SSE-S3",ho="SourceSelectionCriteria",Fr="ServerSideEncryption",Mc="SSEAlgorithm",OX="ServerSideEncryptionByDefault",DX="ServerSideEncryptionConfiguration",rr="SSECustomerAlgorithm",Ys="SSECustomerKey",sr="SSECustomerKeyMD5",Xb="SSEKMS",ga="SSEKMSEncryptionContext",wr="SSEKMSKeyId",LX="ServerSideEncryptionRule",Qb="SSES3",Tm="SessionToken",MX="S3TablesBucketArn",uf="S3TablesDestination",wm="S3TablesDestinationResult",FX="S3TablesName",Am="S3",Fc="Schedule",Td="Setting",Sr="Size",wd="Start",df="Suffix",mo="Tagging",ff="TopicArn",Ii="TableArn",hf="TargetBucket",Ri="TableBucketArn",km="TableBucketType",sh="TagCount",Zb="TopicConfiguration",Jb="TopicConfigurations",zX="TaggingDirective",ty="TransitionDefaultMinimumObjectSize",Jo="TargetGrants",UX="TargetGrant",Ms="TableName",zc="TableNamespace",bo="TargetObjectKeyFormat",mf="TargetPrefix",$X="TotalPartsCount",$s="TagSet",HX="TableSseAlgorithm",Ew="TransitionStorageClass",Uc="TableStatus",xt="Tag",Lr="Tags",Cw="Tier",eg="Tierings",tg="Tiering",$c="Time",xw="Token",ng="Topic",rg="Transitions",sg="Transition",is="Type",Ex="Upload",as="UploadId",bf="UploadIdMarker",qX="UserMetadata",gf="URI",Cx="Uploads",xx="Version",vw="VersionCount",jX="VersioningConfiguration",wt="VersionId",pf="VersionIdMarker",bs="Value",vx="Versions",WX="WebsiteConfiguration",_x="WriteOffsetBytes",Uu="WebsiteRedirectLocation",La="Years",Nh="analytics",_w="accelerate",Oh="acl",Sw="accept-ranges",GX="attributes",VX="bucket-region",ny="cors",$u="cache-control",Hu="content-disposition",qu="content-encoding",ju="content-language",vo="content-length",On="content-md5",Tw="content-range",Wu="content-type",No="continuation-token",KX="delete",Dh="delimiter",_o="expires",ry="encryption",Lh="encoding-type",Mh="etag",ww="expiresstring",YX="fetch-owner",zs="id",vl="if-match",sy="if-modified-since",Fh="inventory",Gu="if-none-match",zh="intelligent-tiering",iy="if-unmodified-since",Aw="key-marker",ay="lifecycle",kw="legal-hold",el="last-modified",Iw="location",Rw="logging",XX="list-type",Uh="metrics",oy="metadataConfiguration",QX="metadataInventoryTable",ZX="metadataJournalTable",cy="metadataTable",JX="marker",eQ="max-buckets",tQ="max-directory-buckets",ir="member",ly="max-keys",nQ="max-parts",rQ="max-uploads",Bw="notification",uy="ownershipControls",Pw="object-lock",dy="policy",fy="publicAccessBlock",$h="partNumber",sQ="policyStatus",iQ="part-number-marker",Vu="prefix",hy="replication",aQ="renameObject",Nw="requestPayment",Ow="range",Dw="response-cache-control",Lw="response-content-disposition",Mw="response-content-encoding",Fw="response-content-language",zw="response-content-type",Uw="response-expires",oQ="restore",$w="retention",cQ="session",lQ="start-after",uQ="select",dQ="select-type",_l="tagging",fQ="torrent",Hw="uploads",Ku="uploadId",hQ="upload-id-marker",qw="versioning",ls="versionId",Ht='<?xml version="1.0" encoding="UTF-8"?>',mQ="versions",bQ="version-id-marker",my="website",Sx="xsi:type",Sl="x-amz-acl",ih="x-amz-abort-date",Tx="x-amz-access-point-alias",jw="x-amz-abort-rule-id",gQ="x-amz-archive-status",Ww="x-amz-bucket-arn",by="x-amz-bypass-governance-retention",pQ="x-amz-bucket-location-name",yQ="x-amz-bucket-location-type",EQ="x-amz-bucket-object-lock-enabled",Gw="x-amz-bucket-object-lock-token",CQ="x-amz-bucket-region",gy="x-amz-checksum-algorithm",Oo="x-amz-checksum-crc32",Do="x-amz-checksum-crc32c",Lo="x-amz-checksum-crc64nvme",Vw="x-amz-checksum-mode",xQ="x-amz-confirm-remove-self-bucket-access",Mo="x-amz-checksum-sha1",Fo="x-amz-checksum-sha256",Kw="x-amz-copy-source",Yw="x-amz-copy-source-if-match",Xw="x-amz-copy-source-if-modified-since",Qw="x-amz-copy-source-if-none-match",Zw="x-amz-copy-source-if-unmodified-since",vQ="x-amz-create-session-mode",_Q="x-amz-copy-source-range",Jw="x-amz-copy-source-server-side-encryption-customer-algorithm",e2="x-amz-copy-source-server-side-encryption-customer-key",t2="x-amz-copy-source-server-side-encryption-customer-key-md5",n2="x-amz-copy-source-version-id",Tl="x-amz-checksum-type",SQ="x-amz-client-token",da="x-amz-delete-marker",Yu="x-amz-expiration",Ie="x-amz-expected-bucket-owner",TQ="x-amz-fwd-error-code",wQ="x-amz-fwd-error-message",AQ="x-amz-fwd-header-accept-ranges",kQ="x-amz-fwd-header-cache-control",IQ="x-amz-fwd-header-content-disposition",RQ="x-amz-fwd-header-content-encoding",BQ="x-amz-fwd-header-content-language",PQ="x-amz-fwd-header-content-range",NQ="x-amz-fwd-header-content-type",OQ="x-amz-fwd-header-etag",DQ="x-amz-fwd-header-expires",LQ="x-amz-fwd-header-last-modified",MQ="x-amz-fwd-header-x-amz-checksum-crc32",FQ="x-amz-fwd-header-x-amz-checksum-crc32c",zQ="x-amz-fwd-header-x-amz-checksum-crc64nvme",UQ="x-amz-fwd-header-x-amz-checksum-sha1",$Q="x-amz-fwd-header-x-amz-checksum-sha256",HQ="x-amz-fwd-header-x-amz-delete-marker",qQ="x-amz-fwd-header-x-amz-expiration",jQ="x-amz-fwd-header-x-amz-missing-meta",WQ="x-amz-fwd-header-x-amz-mp-parts-count",GQ="x-amz-fwd-header-x-amz-object-lock-legal-hold",VQ="x-amz-fwd-header-x-amz-object-lock-mode",KQ="x-amz-fwd-header-x-amz-object-lock-retain-until-date",YQ="x-amz-fwd-header-x-amz-restore",XQ="x-amz-fwd-header-x-amz-request-charged",QQ="x-amz-fwd-header-x-amz-replication-status",ZQ="x-amz-fwd-header-x-amz-storage-class",JQ="x-amz-fwd-header-x-amz-server-side-encryption",eZ="x-amz-fwd-header-x-amz-server-side-encryption-aws-kms-key-id",tZ="x-amz-fwd-header-x-amz-server-side-encryption-bucket-key-enabled",nZ="x-amz-fwd-header-x-amz-server-side-encryption-customer-algorithm",rZ="x-amz-fwd-header-x-amz-server-side-encryption-customer-key-md5",sZ="x-amz-fwd-header-x-amz-tagging-count",iZ="x-amz-fwd-header-x-amz-version-id",aZ="x-amz-fwd-status",wl="x-amz-grant-full-control",Al="x-amz-grant-read",kl="x-amz-grant-read-acp",py="x-amz-grant-write",Il="x-amz-grant-write-acp",oZ="x-amz-if-match-initiated-time",cZ="x-amz-if-match-last-modified-time",lZ="x-amz-if-match-size",yy="x-amz-mfa",uZ="x-amz-metadata-directive",ah="x-amz-missing-meta",dZ="x-amz-mp-object-size",fZ="x-amz-max-parts",oh="x-amz-mp-parts-count",hZ="x-amz-object-attributes",Xu="x-amz-object-lock-legal-hold",Qu="x-amz-object-lock-mode",So="x-amz-object-lock-retain-until-date",mZ="x-amz-object-ownership",Ey="x-amz-optional-object-attributes",wx="x-amz-object-size",bZ="x-amz-part-number-marker",r2="x-amz-restore",_n="x-amz-request-charged",gZ="x-amz-restore-output-path",Xt="x-amz-request-payer",pZ="x-amz-request-route",yZ="x-amz-rename-source",s2="x-amz-replication-status",EZ="x-amz-rename-source-if-match",CZ="x-amz-rename-source-if-modified-since",xZ="x-amz-rename-source-if-none-match",vZ="x-amz-rename-source-if-unmodified-since",_Z="x-amz-request-token",Zu="x-amz-storage-class",pn="x-amz-sdk-checksum-algorithm",SZ="x-amz-skip-destination-validation",i2="x-amz-source-expected-bucket-owner",Es="x-amz-server-side-encryption",Cs="x-amz-server-side-encryption-aws-kms-key-id",Ln="x-amz-server-side-encryption-bucket-key-enabled",pa="x-amz-server-side-encryption-context",Cr="x-amz-server-side-encryption-customer-algorithm",Xs="x-amz-server-side-encryption-customer-key",xr="x-amz-server-side-encryption-customer-key-md5",Cy="x-amz-tagging",ch="x-amz-tagging-count",TZ="x-amz-tagging-directive",xy="x-amz-transition-default-minimum-object-size",pi="x-amz-version-id",wZ="x-amz-write-offset-bytes",Ju="x-amz-website-redirect-location",vr="x-id";class a2 extends Ee.classBuilder().ep({..._e,DisableS3ExpressSessionAuth:{type:"staticContextParams",value:!0},Bucket:{type:"contextParams",name:"Bucket"}}).m(function(t,n,r,s){return[Ce(r,this.serialize,this.deserialize),ve(r,t.getEndpointParameterInstructions()),Je(r)]}).s("AmazonS3","CreateSession",{}).n("S3Client","CreateSessionCommand").f(kz,Az).ser(mU).de(u$).build(){}const AZ="3.864.0",kZ={version:AZ};function Ax(e){return typeof e=="string"?e.length===0:e.byteLength===0}var o2={name:"SHA-1"},kx={name:"HMAC",hash:o2},IZ=new Uint8Array([218,57,163,238,94,107,75,13,50,85,191,239,149,96,24,144,175,216,7,9]);const RZ={};function sa(){return typeof window<"u"?window:typeof self<"u"?self:RZ}var BZ=function(){function e(t){this.toHash=new Uint8Array(0),t!==void 0&&(this.key=new Promise(function(n,r){sa().crypto.subtle.importKey("raw",Ix(t),kx,!1,["sign"]).then(n,r)}),this.key.catch(function(){}))}return e.prototype.update=function(t){if(!Ax(t)){var n=Ix(t),r=new Uint8Array(this.toHash.byteLength+n.byteLength);r.set(this.toHash,0),r.set(n,this.toHash.byteLength),this.toHash=r}},e.prototype.digest=function(){var t=this;return this.key?this.key.then(function(n){return sa().crypto.subtle.sign(kx,n,t.toHash).then(function(r){return new Uint8Array(r)})}):Ax(this.toHash)?Promise.resolve(IZ):Promise.resolve().then(function(){return sa().crypto.subtle.digest(o2,t.toHash)}).then(function(n){return Promise.resolve(new Uint8Array(n))})},e.prototype.reset=function(){this.toHash=new Uint8Array(0)},e}();function Ix(e){return typeof e=="string"?DS(e):ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(e)}var PZ=["decrypt","digest","encrypt","exportKey","generateKey","importKey","sign","verify"];function c2(e){if(NZ(e)&&typeof e.crypto.subtle=="object"){var t=e.crypto.subtle;return OZ(t)}return!1}function NZ(e){if(typeof e=="object"&&typeof e.crypto=="object"){var t=e.crypto.getRandomValues;return typeof t=="function"}return!1}function OZ(e){return e&&PZ.every(function(t){return typeof e[t]=="function"})}var DZ=function(){function e(t){if(c2(sa()))this.hash=new BZ(t);else throw new Error("SHA1 not supported")}return e.prototype.update=function(t,n){this.hash.update(ca(t))},e.prototype.digest=function(){return this.hash.digest()},e.prototype.reset=function(){this.hash.reset()},e}(),l2={name:"SHA-256"},Rx={name:"HMAC",hash:l2},LZ=new Uint8Array([227,176,196,66,152,252,28,20,154,251,244,200,153,111,185,36,39,174,65,228,100,155,147,76,164,149,153,27,120,82,184,85]),MZ=function(){function e(t){this.toHash=new Uint8Array(0),this.secret=t,this.reset()}return e.prototype.update=function(t){if(!Au(t)){var n=ca(t),r=new Uint8Array(this.toHash.byteLength+n.byteLength);r.set(this.toHash,0),r.set(n,this.toHash.byteLength),this.toHash=r}},e.prototype.digest=function(){var t=this;return this.key?this.key.then(function(n){return sa().crypto.subtle.sign(Rx,n,t.toHash).then(function(r){return new Uint8Array(r)})}):Au(this.toHash)?Promise.resolve(LZ):Promise.resolve().then(function(){return sa().crypto.subtle.digest(l2,t.toHash)}).then(function(n){return Promise.resolve(new Uint8Array(n))})},e.prototype.reset=function(){var t=this;this.toHash=new Uint8Array(0),this.secret&&this.secret!==void 0&&(this.key=new Promise(function(n,r){sa().crypto.subtle.importKey("raw",ca(t.secret),Rx,!1,["sign"]).then(n,r)}),this.key.catch(function(){}))},e}(),Ss=64,FZ=32,zZ=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),UZ=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],$Z=Math.pow(2,53)-1,yf=function(){function e(){this.state=Int32Array.from(UZ),this.temp=new Int32Array(64),this.buffer=new Uint8Array(64),this.bufferLength=0,this.bytesHashed=0,this.finished=!1}return e.prototype.update=function(t){if(this.finished)throw new Error("Attempted to update an already finished hash.");var n=0,r=t.byteLength;if(this.bytesHashed+=r,this.bytesHashed*8>$Z)throw new Error("Cannot hash more than 2^53 - 1 bits");for(;r>0;)this.buffer[this.bufferLength++]=t[n++],r--,this.bufferLength===Ss&&(this.hashBuffer(),this.bufferLength=0)},e.prototype.digest=function(){if(!this.finished){var t=this.bytesHashed*8,n=new DataView(this.buffer.buffer,this.buffer.byteOffset,this.buffer.byteLength),r=this.bufferLength;if(n.setUint8(this.bufferLength++,128),r%Ss>=Ss-8){for(var s=this.bufferLength;s<Ss;s++)n.setUint8(s,0);this.hashBuffer(),this.bufferLength=0}for(var s=this.bufferLength;s<Ss-8;s++)n.setUint8(s,0);n.setUint32(Ss-8,Math.floor(t/4294967296),!0),n.setUint32(Ss-4,t),this.hashBuffer(),this.finished=!0}for(var i=new Uint8Array(FZ),s=0;s<8;s++)i[s*4]=this.state[s]>>>24&255,i[s*4+1]=this.state[s]>>>16&255,i[s*4+2]=this.state[s]>>>8&255,i[s*4+3]=this.state[s]>>>0&255;return i},e.prototype.hashBuffer=function(){for(var t=this,n=t.buffer,r=t.state,s=r[0],i=r[1],a=r[2],o=r[3],c=r[4],l=r[5],d=r[6],f=r[7],m=0;m<Ss;m++){if(m<16)this.temp[m]=(n[m*4]&255)<<24|(n[m*4+1]&255)<<16|(n[m*4+2]&255)<<8|n[m*4+3]&255;else{var h=this.temp[m-2],b=(h>>>17|h<<15)^(h>>>19|h<<13)^h>>>10;h=this.temp[m-15];var g=(h>>>7|h<<25)^(h>>>18|h<<14)^h>>>3;this.temp[m]=(b+this.temp[m-7]|0)+(g+this.temp[m-16]|0)}var y=(((c>>>6|c<<26)^(c>>>11|c<<21)^(c>>>25|c<<7))+(c&l^~c&d)|0)+(f+(zZ[m]+this.temp[m]|0)|0)|0,p=((s>>>2|s<<30)^(s>>>13|s<<19)^(s>>>22|s<<10))+(s&i^s&a^i&a)|0;f=d,d=l,l=c,c=o+y|0,o=a,a=i,i=s,s=y+p|0}r[0]+=s,r[1]+=i,r[2]+=a,r[3]+=o,r[4]+=c,r[5]+=l,r[6]+=d,r[7]+=f},e}(),HZ=function(){function e(t){this.secret=t,this.hash=new yf,this.reset()}return e.prototype.update=function(t){if(!(Au(t)||this.error))try{this.hash.update(ca(t))}catch(n){this.error=n}},e.prototype.digestSync=function(){if(this.error)throw this.error;return this.outer?(this.outer.finished||this.outer.update(this.hash.digest()),this.outer.digest()):this.hash.digest()},e.prototype.digest=function(){return up(this,void 0,void 0,function(){return dp(this,function(t){return[2,this.digestSync()]})})},e.prototype.reset=function(){if(this.hash=new yf,this.secret){this.outer=new yf;var t=qZ(this.secret),n=new Uint8Array(Ss);n.set(t);for(var r=0;r<Ss;r++)t[r]^=54,n[r]^=92;this.hash.update(t),this.outer.update(n);for(var r=0;r<t.byteLength;r++)t[r]=0}},e}();function qZ(e){var t=ca(e);if(t.byteLength>Ss){var n=new yf;n.update(t),t=n.digest()}var r=new Uint8Array(Ss);return r.set(t),r}var jZ=function(){function e(t){c2(sa())?this.hash=new MZ(t):this.hash=new HZ(t)}return e.prototype.update=function(t,n){this.hash.update(ca(t))},e.prototype.digest=function(){return this.hash.digest()},e.prototype.reset=function(){this.hash.reset()},e}();const WZ={"Amazon Silk":"amazon_silk","Android Browser":"android",Bada:"bada",BlackBerry:"blackberry",Chrome:"chrome",Chromium:"chromium",Electron:"electron",Epiphany:"epiphany",Firefox:"firefox",Focus:"focus",Generic:"generic","Google Search":"google_search",Googlebot:"googlebot","Internet Explorer":"ie","K-Meleon":"k_meleon",Maxthon:"maxthon","Microsoft Edge":"edge","MZ Browser":"mz","NAVER Whale Browser":"naver",Opera:"opera","Opera Coast":"opera_coast",PhantomJS:"phantomjs",Puffin:"puffin",QupZilla:"qupzilla",QQ:"qq",QQLite:"qqlite",Safari:"safari",Sailfish:"sailfish","Samsung Internet for Android":"samsung_internet",SeaMonkey:"seamonkey",Sleipnir:"sleipnir",Swing:"swing",Tizen:"tizen","UC Browser":"uc",Vivaldi:"vivaldi","WebOS Browser":"webos",WeChat:"wechat","Yandex Browser":"yandex",Roku:"roku"},u2={amazon_silk:"Amazon Silk",android:"Android Browser",bada:"Bada",blackberry:"BlackBerry",chrome:"Chrome",chromium:"Chromium",electron:"Electron",epiphany:"Epiphany",firefox:"Firefox",focus:"Focus",generic:"Generic",googlebot:"Googlebot",google_search:"Google Search",ie:"Internet Explorer",k_meleon:"K-Meleon",maxthon:"Maxthon",edge:"Microsoft Edge",mz:"MZ Browser",naver:"NAVER Whale Browser",opera:"Opera",opera_coast:"Opera Coast",phantomjs:"PhantomJS",puffin:"Puffin",qupzilla:"QupZilla",qq:"QQ Browser",qqlite:"QQ Browser Lite",safari:"Safari",sailfish:"Sailfish",samsung_internet:"Samsung Internet for Android",seamonkey:"SeaMonkey",sleipnir:"Sleipnir",swing:"Swing",tizen:"Tizen",uc:"UC Browser",vivaldi:"Vivaldi",webos:"WebOS Browser",wechat:"WeChat",yandex:"Yandex Browser"},Fn={tablet:"tablet",mobile:"mobile",desktop:"desktop",tv:"tv"},qr={WindowsPhone:"Windows Phone",Windows:"Windows",MacOS:"macOS",iOS:"iOS",Android:"Android",WebOS:"WebOS",BlackBerry:"BlackBerry",Bada:"Bada",Tizen:"Tizen",Linux:"Linux",ChromeOS:"Chrome OS",PlayStation4:"PlayStation 4",Roku:"Roku"},qi={EdgeHTML:"EdgeHTML",Blink:"Blink",Trident:"Trident",Presto:"Presto",Gecko:"Gecko",WebKit:"WebKit"};class ge{static getFirstMatch(t,n){const r=n.match(t);return r&&r.length>0&&r[1]||""}static getSecondMatch(t,n){const r=n.match(t);return r&&r.length>1&&r[2]||""}static matchAndReturnConst(t,n,r){if(t.test(n))return r}static getWindowsVersionName(t){switch(t){case"NT":return"NT";case"XP":return"XP";case"NT 5.0":return"2000";case"NT 5.1":return"XP";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}}static getMacOSVersionName(t){const n=t.split(".").splice(0,2).map(r=>parseInt(r,10)||0);if(n.push(0),n[0]===10)switch(n[1]){case 5:return"Leopard";case 6:return"Snow Leopard";case 7:return"Lion";case 8:return"Mountain Lion";case 9:return"Mavericks";case 10:return"Yosemite";case 11:return"El Capitan";case 12:return"Sierra";case 13:return"High Sierra";case 14:return"Mojave";case 15:return"Catalina";default:return}}static getAndroidVersionName(t){const n=t.split(".").splice(0,2).map(r=>parseInt(r,10)||0);if(n.push(0),!(n[0]===1&&n[1]<5)){if(n[0]===1&&n[1]<6)return"Cupcake";if(n[0]===1&&n[1]>=6)return"Donut";if(n[0]===2&&n[1]<2)return"Eclair";if(n[0]===2&&n[1]===2)return"Froyo";if(n[0]===2&&n[1]>2)return"Gingerbread";if(n[0]===3)return"Honeycomb";if(n[0]===4&&n[1]<1)return"Ice Cream Sandwich";if(n[0]===4&&n[1]<4)return"Jelly Bean";if(n[0]===4&&n[1]>=4)return"KitKat";if(n[0]===5)return"Lollipop";if(n[0]===6)return"Marshmallow";if(n[0]===7)return"Nougat";if(n[0]===8)return"Oreo";if(n[0]===9)return"Pie"}}static getVersionPrecision(t){return t.split(".").length}static compareVersions(t,n,r=!1){const s=ge.getVersionPrecision(t),i=ge.getVersionPrecision(n);let a=Math.max(s,i),o=0;const c=ge.map([t,n],l=>{const d=a-ge.getVersionPrecision(l),f=l+new Array(d+1).join(".0");return ge.map(f.split("."),m=>new Array(20-m.length).join("0")+m).reverse()});for(r&&(o=a-Math.min(s,i)),a-=1;a>=o;){if(c[0][a]>c[1][a])return 1;if(c[0][a]===c[1][a]){if(a===o)return 0;a-=1}else if(c[0][a]<c[1][a])return-1}}static map(t,n){const r=[];let s;if(Array.prototype.map)return Array.prototype.map.call(t,n);for(s=0;s<t.length;s+=1)r.push(n(t[s]));return r}static find(t,n){let r,s;if(Array.prototype.find)return Array.prototype.find.call(t,n);for(r=0,s=t.length;r<s;r+=1){const i=t[r];if(n(i,r))return i}}static assign(t,...n){const r=t;let s,i;if(Object.assign)return Object.assign(t,...n);for(s=0,i=n.length;s<i;s+=1){const a=n[s];typeof a=="object"&&a!==null&&Object.keys(a).forEach(c=>{r[c]=a[c]})}return t}static getBrowserAlias(t){return WZ[t]}static getBrowserTypeByAlias(t){return u2[t]||""}}const sn=/version\/(\d+(\.?_?\d+)+)/i,GZ=[{test:[/googlebot/i],describe(e){const t={name:"Googlebot"},n=ge.getFirstMatch(/googlebot\/(\d+(\.\d+))/i,e)||ge.getFirstMatch(sn,e);return n&&(t.version=n),t}},{test:[/opera/i],describe(e){const t={name:"Opera"},n=ge.getFirstMatch(sn,e)||ge.getFirstMatch(/(?:opera)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/opr\/|opios/i],describe(e){const t={name:"Opera"},n=ge.getFirstMatch(/(?:opr|opios)[\s/](\S+)/i,e)||ge.getFirstMatch(sn,e);return n&&(t.version=n),t}},{test:[/SamsungBrowser/i],describe(e){const t={name:"Samsung Internet for Android"},n=ge.getFirstMatch(sn,e)||ge.getFirstMatch(/(?:SamsungBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/Whale/i],describe(e){const t={name:"NAVER Whale Browser"},n=ge.getFirstMatch(sn,e)||ge.getFirstMatch(/(?:whale)[\s/](\d+(?:\.\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/MZBrowser/i],describe(e){const t={name:"MZ Browser"},n=ge.getFirstMatch(/(?:MZBrowser)[\s/](\d+(?:\.\d+)+)/i,e)||ge.getFirstMatch(sn,e);return n&&(t.version=n),t}},{test:[/focus/i],describe(e){const t={name:"Focus"},n=ge.getFirstMatch(/(?:focus)[\s/](\d+(?:\.\d+)+)/i,e)||ge.getFirstMatch(sn,e);return n&&(t.version=n),t}},{test:[/swing/i],describe(e){const t={name:"Swing"},n=ge.getFirstMatch(/(?:swing)[\s/](\d+(?:\.\d+)+)/i,e)||ge.getFirstMatch(sn,e);return n&&(t.version=n),t}},{test:[/coast/i],describe(e){const t={name:"Opera Coast"},n=ge.getFirstMatch(sn,e)||ge.getFirstMatch(/(?:coast)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/opt\/\d+(?:.?_?\d+)+/i],describe(e){const t={name:"Opera Touch"},n=ge.getFirstMatch(/(?:opt)[\s/](\d+(\.?_?\d+)+)/i,e)||ge.getFirstMatch(sn,e);return n&&(t.version=n),t}},{test:[/yabrowser/i],describe(e){const t={name:"Yandex Browser"},n=ge.getFirstMatch(/(?:yabrowser)[\s/](\d+(\.?_?\d+)+)/i,e)||ge.getFirstMatch(sn,e);return n&&(t.version=n),t}},{test:[/ucbrowser/i],describe(e){const t={name:"UC Browser"},n=ge.getFirstMatch(sn,e)||ge.getFirstMatch(/(?:ucbrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/Maxthon|mxios/i],describe(e){const t={name:"Maxthon"},n=ge.getFirstMatch(sn,e)||ge.getFirstMatch(/(?:Maxthon|mxios)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/epiphany/i],describe(e){const t={name:"Epiphany"},n=ge.getFirstMatch(sn,e)||ge.getFirstMatch(/(?:epiphany)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/puffin/i],describe(e){const t={name:"Puffin"},n=ge.getFirstMatch(sn,e)||ge.getFirstMatch(/(?:puffin)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/sleipnir/i],describe(e){const t={name:"Sleipnir"},n=ge.getFirstMatch(sn,e)||ge.getFirstMatch(/(?:sleipnir)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/k-meleon/i],describe(e){const t={name:"K-Meleon"},n=ge.getFirstMatch(sn,e)||ge.getFirstMatch(/(?:k-meleon)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/micromessenger/i],describe(e){const t={name:"WeChat"},n=ge.getFirstMatch(/(?:micromessenger)[\s/](\d+(\.?_?\d+)+)/i,e)||ge.getFirstMatch(sn,e);return n&&(t.version=n),t}},{test:[/qqbrowser/i],describe(e){const t={name:/qqbrowserlite/i.test(e)?"QQ Browser Lite":"QQ Browser"},n=ge.getFirstMatch(/(?:qqbrowserlite|qqbrowser)[/](\d+(\.?_?\d+)+)/i,e)||ge.getFirstMatch(sn,e);return n&&(t.version=n),t}},{test:[/msie|trident/i],describe(e){const t={name:"Internet Explorer"},n=ge.getFirstMatch(/(?:msie |rv:)(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/\sedg\//i],describe(e){const t={name:"Microsoft Edge"},n=ge.getFirstMatch(/\sedg\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/edg([ea]|ios)/i],describe(e){const t={name:"Microsoft Edge"},n=ge.getSecondMatch(/edg([ea]|ios)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/vivaldi/i],describe(e){const t={name:"Vivaldi"},n=ge.getFirstMatch(/vivaldi\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/seamonkey/i],describe(e){const t={name:"SeaMonkey"},n=ge.getFirstMatch(/seamonkey\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/sailfish/i],describe(e){const t={name:"Sailfish"},n=ge.getFirstMatch(/sailfish\s?browser\/(\d+(\.\d+)?)/i,e);return n&&(t.version=n),t}},{test:[/silk/i],describe(e){const t={name:"Amazon Silk"},n=ge.getFirstMatch(/silk\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/phantom/i],describe(e){const t={name:"PhantomJS"},n=ge.getFirstMatch(/phantomjs\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/slimerjs/i],describe(e){const t={name:"SlimerJS"},n=ge.getFirstMatch(/slimerjs\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe(e){const t={name:"BlackBerry"},n=ge.getFirstMatch(sn,e)||ge.getFirstMatch(/blackberry[\d]+\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/(web|hpw)[o0]s/i],describe(e){const t={name:"WebOS Browser"},n=ge.getFirstMatch(sn,e)||ge.getFirstMatch(/w(?:eb)?[o0]sbrowser\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/bada/i],describe(e){const t={name:"Bada"},n=ge.getFirstMatch(/dolfin\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/tizen/i],describe(e){const t={name:"Tizen"},n=ge.getFirstMatch(/(?:tizen\s?)?browser\/(\d+(\.?_?\d+)+)/i,e)||ge.getFirstMatch(sn,e);return n&&(t.version=n),t}},{test:[/qupzilla/i],describe(e){const t={name:"QupZilla"},n=ge.getFirstMatch(/(?:qupzilla)[\s/](\d+(\.?_?\d+)+)/i,e)||ge.getFirstMatch(sn,e);return n&&(t.version=n),t}},{test:[/firefox|iceweasel|fxios/i],describe(e){const t={name:"Firefox"},n=ge.getFirstMatch(/(?:firefox|iceweasel|fxios)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/electron/i],describe(e){const t={name:"Electron"},n=ge.getFirstMatch(/(?:electron)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/MiuiBrowser/i],describe(e){const t={name:"Miui"},n=ge.getFirstMatch(/(?:MiuiBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/chromium/i],describe(e){const t={name:"Chromium"},n=ge.getFirstMatch(/(?:chromium)[\s/](\d+(\.?_?\d+)+)/i,e)||ge.getFirstMatch(sn,e);return n&&(t.version=n),t}},{test:[/chrome|crios|crmo/i],describe(e){const t={name:"Chrome"},n=ge.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/GSA/i],describe(e){const t={name:"Google Search"},n=ge.getFirstMatch(/(?:GSA)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test(e){const t=!e.test(/like android/i),n=e.test(/android/i);return t&&n},describe(e){const t={name:"Android Browser"},n=ge.getFirstMatch(sn,e);return n&&(t.version=n),t}},{test:[/playstation 4/i],describe(e){const t={name:"PlayStation 4"},n=ge.getFirstMatch(sn,e);return n&&(t.version=n),t}},{test:[/safari|applewebkit/i],describe(e){const t={name:"Safari"},n=ge.getFirstMatch(sn,e);return n&&(t.version=n),t}},{test:[/.*/i],describe(e){const t=/^(.*)\/(.*) /,n=/^(.*)\/(.*)[ \t]\((.*)/,s=e.search("\\(")!==-1?n:t;return{name:ge.getFirstMatch(s,e),version:ge.getSecondMatch(s,e)}}}],VZ=[{test:[/Roku\/DVP/],describe(e){const t=ge.getFirstMatch(/Roku\/DVP-(\d+\.\d+)/i,e);return{name:qr.Roku,version:t}}},{test:[/windows phone/i],describe(e){const t=ge.getFirstMatch(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i,e);return{name:qr.WindowsPhone,version:t}}},{test:[/windows /i],describe(e){const t=ge.getFirstMatch(/Windows ((NT|XP)( \d\d?.\d)?)/i,e),n=ge.getWindowsVersionName(t);return{name:qr.Windows,version:t,versionName:n}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe(e){const t={name:qr.iOS},n=ge.getSecondMatch(/(Version\/)(\d[\d.]+)/,e);return n&&(t.version=n),t}},{test:[/macintosh/i],describe(e){const t=ge.getFirstMatch(/mac os x (\d+(\.?_?\d+)+)/i,e).replace(/[_\s]/g,"."),n=ge.getMacOSVersionName(t),r={name:qr.MacOS,version:t};return n&&(r.versionName=n),r}},{test:[/(ipod|iphone|ipad)/i],describe(e){const t=ge.getFirstMatch(/os (\d+([_\s]\d+)*) like mac os x/i,e).replace(/[_\s]/g,".");return{name:qr.iOS,version:t}}},{test(e){const t=!e.test(/like android/i),n=e.test(/android/i);return t&&n},describe(e){const t=ge.getFirstMatch(/android[\s/-](\d+(\.\d+)*)/i,e),n=ge.getAndroidVersionName(t),r={name:qr.Android,version:t};return n&&(r.versionName=n),r}},{test:[/(web|hpw)[o0]s/i],describe(e){const t=ge.getFirstMatch(/(?:web|hpw)[o0]s\/(\d+(\.\d+)*)/i,e),n={name:qr.WebOS};return t&&t.length&&(n.version=t),n}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe(e){const t=ge.getFirstMatch(/rim\stablet\sos\s(\d+(\.\d+)*)/i,e)||ge.getFirstMatch(/blackberry\d+\/(\d+([_\s]\d+)*)/i,e)||ge.getFirstMatch(/\bbb(\d+)/i,e);return{name:qr.BlackBerry,version:t}}},{test:[/bada/i],describe(e){const t=ge.getFirstMatch(/bada\/(\d+(\.\d+)*)/i,e);return{name:qr.Bada,version:t}}},{test:[/tizen/i],describe(e){const t=ge.getFirstMatch(/tizen[/\s](\d+(\.\d+)*)/i,e);return{name:qr.Tizen,version:t}}},{test:[/linux/i],describe(){return{name:qr.Linux}}},{test:[/CrOS/],describe(){return{name:qr.ChromeOS}}},{test:[/PlayStation 4/],describe(e){const t=ge.getFirstMatch(/PlayStation 4[/\s](\d+(\.\d+)*)/i,e);return{name:qr.PlayStation4,version:t}}}],KZ=[{test:[/googlebot/i],describe(){return{type:"bot",vendor:"Google"}}},{test:[/huawei/i],describe(e){const t=ge.getFirstMatch(/(can-l01)/i,e)&&"Nova",n={type:Fn.mobile,vendor:"Huawei"};return t&&(n.model=t),n}},{test:[/nexus\s*(?:7|8|9|10).*/i],describe(){return{type:Fn.tablet,vendor:"Nexus"}}},{test:[/ipad/i],describe(){return{type:Fn.tablet,vendor:"Apple",model:"iPad"}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe(){return{type:Fn.tablet,vendor:"Apple",model:"iPad"}}},{test:[/kftt build/i],describe(){return{type:Fn.tablet,vendor:"Amazon",model:"Kindle Fire HD 7"}}},{test:[/silk/i],describe(){return{type:Fn.tablet,vendor:"Amazon"}}},{test:[/tablet(?! pc)/i],describe(){return{type:Fn.tablet}}},{test(e){const t=e.test(/ipod|iphone/i),n=e.test(/like (ipod|iphone)/i);return t&&!n},describe(e){const t=ge.getFirstMatch(/(ipod|iphone)/i,e);return{type:Fn.mobile,vendor:"Apple",model:t}}},{test:[/nexus\s*[0-6].*/i,/galaxy nexus/i],describe(){return{type:Fn.mobile,vendor:"Nexus"}}},{test:[/[^-]mobi/i],describe(){return{type:Fn.mobile}}},{test(e){return e.getBrowserName(!0)==="blackberry"},describe(){return{type:Fn.mobile,vendor:"BlackBerry"}}},{test(e){return e.getBrowserName(!0)==="bada"},describe(){return{type:Fn.mobile}}},{test(e){return e.getBrowserName()==="windows phone"},describe(){return{type:Fn.mobile,vendor:"Microsoft"}}},{test(e){const t=Number(String(e.getOSVersion()).split(".")[0]);return e.getOSName(!0)==="android"&&t>=3},describe(){return{type:Fn.tablet}}},{test(e){return e.getOSName(!0)==="android"},describe(){return{type:Fn.mobile}}},{test(e){return e.getOSName(!0)==="macos"},describe(){return{type:Fn.desktop,vendor:"Apple"}}},{test(e){return e.getOSName(!0)==="windows"},describe(){return{type:Fn.desktop}}},{test(e){return e.getOSName(!0)==="linux"},describe(){return{type:Fn.desktop}}},{test(e){return e.getOSName(!0)==="playstation 4"},describe(){return{type:Fn.tv}}},{test(e){return e.getOSName(!0)==="roku"},describe(){return{type:Fn.tv}}}],YZ=[{test(e){return e.getBrowserName(!0)==="microsoft edge"},describe(e){if(/\sedg\//i.test(e))return{name:qi.Blink};const n=ge.getFirstMatch(/edge\/(\d+(\.?_?\d+)+)/i,e);return{name:qi.EdgeHTML,version:n}}},{test:[/trident/i],describe(e){const t={name:qi.Trident},n=ge.getFirstMatch(/trident\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test(e){return e.test(/presto/i)},describe(e){const t={name:qi.Presto},n=ge.getFirstMatch(/presto\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test(e){const t=e.test(/gecko/i),n=e.test(/like gecko/i);return t&&!n},describe(e){const t={name:qi.Gecko},n=ge.getFirstMatch(/gecko\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/(apple)?webkit\/537\.36/i],describe(){return{name:qi.Blink}}},{test:[/(apple)?webkit/i],describe(e){const t={name:qi.WebKit},n=ge.getFirstMatch(/webkit\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}}];class Bx{constructor(t,n=!1){if(t==null||t==="")throw new Error("UserAgent parameter can't be empty");this._ua=t,this.parsedResult={},n!==!0&&this.parse()}getUA(){return this._ua}test(t){return t.test(this._ua)}parseBrowser(){this.parsedResult.browser={};const t=ge.find(GZ,n=>{if(typeof n.test=="function")return n.test(this);if(n.test instanceof Array)return n.test.some(r=>this.test(r));throw new Error("Browser's test function is not valid")});return t&&(this.parsedResult.browser=t.describe(this.getUA())),this.parsedResult.browser}getBrowser(){return this.parsedResult.browser?this.parsedResult.browser:this.parseBrowser()}getBrowserName(t){return t?String(this.getBrowser().name).toLowerCase()||"":this.getBrowser().name||""}getBrowserVersion(){return this.getBrowser().version}getOS(){return this.parsedResult.os?this.parsedResult.os:this.parseOS()}parseOS(){this.parsedResult.os={};const t=ge.find(VZ,n=>{if(typeof n.test=="function")return n.test(this);if(n.test instanceof Array)return n.test.some(r=>this.test(r));throw new Error("Browser's test function is not valid")});return t&&(this.parsedResult.os=t.describe(this.getUA())),this.parsedResult.os}getOSName(t){const{name:n}=this.getOS();return t?String(n).toLowerCase()||"":n||""}getOSVersion(){return this.getOS().version}getPlatform(){return this.parsedResult.platform?this.parsedResult.platform:this.parsePlatform()}getPlatformType(t=!1){const{type:n}=this.getPlatform();return t?String(n).toLowerCase()||"":n||""}parsePlatform(){this.parsedResult.platform={};const t=ge.find(KZ,n=>{if(typeof n.test=="function")return n.test(this);if(n.test instanceof Array)return n.test.some(r=>this.test(r));throw new Error("Browser's test function is not valid")});return t&&(this.parsedResult.platform=t.describe(this.getUA())),this.parsedResult.platform}getEngine(){return this.parsedResult.engine?this.parsedResult.engine:this.parseEngine()}getEngineName(t){return t?String(this.getEngine().name).toLowerCase()||"":this.getEngine().name||""}parseEngine(){this.parsedResult.engine={};const t=ge.find(YZ,n=>{if(typeof n.test=="function")return n.test(this);if(n.test instanceof Array)return n.test.some(r=>this.test(r));throw new Error("Browser's test function is not valid")});return t&&(this.parsedResult.engine=t.describe(this.getUA())),this.parsedResult.engine}parse(){return this.parseBrowser(),this.parseOS(),this.parsePlatform(),this.parseEngine(),this}getResult(){return ge.assign({},this.parsedResult)}satisfies(t){const n={};let r=0;const s={};let i=0;if(Object.keys(t).forEach(o=>{const c=t[o];typeof c=="string"?(s[o]=c,i+=1):typeof c=="object"&&(n[o]=c,r+=1)}),r>0){const o=Object.keys(n),c=ge.find(o,d=>this.isOS(d));if(c){const d=this.satisfies(n[c]);if(d!==void 0)return d}const l=ge.find(o,d=>this.isPlatform(d));if(l){const d=this.satisfies(n[l]);if(d!==void 0)return d}}if(i>0){const o=Object.keys(s),c=ge.find(o,l=>this.isBrowser(l,!0));if(c!==void 0)return this.compareVersion(s[c])}}isBrowser(t,n=!1){const r=this.getBrowserName().toLowerCase();let s=t.toLowerCase();const i=ge.getBrowserTypeByAlias(s);return n&&i&&(s=i.toLowerCase()),s===r}compareVersion(t){let n=[0],r=t,s=!1;const i=this.getBrowserVersion();if(typeof i=="string")return t[0]===">"||t[0]==="<"?(r=t.substr(1),t[1]==="="?(s=!0,r=t.substr(2)):n=[],t[0]===">"?n.push(1):n.push(-1)):t[0]==="="?r=t.substr(1):t[0]==="~"&&(s=!0,r=t.substr(1)),n.indexOf(ge.compareVersions(i,r,s))>-1}isOS(t){return this.getOSName(!0)===String(t).toLowerCase()}isPlatform(t){return this.getPlatformType(!0)===String(t).toLowerCase()}isEngine(t){return this.getEngineName(!0)===String(t).toLowerCase()}is(t,n=!1){return this.isBrowser(t,n)||this.isOS(t)||this.isPlatform(t)}some(t=[]){return t.some(n=>this.is(n))}}/*!
1581
- * Bowser - a browser detector
1582
- * https://github.com/lancedikson/bowser
1583
- * MIT License | (c) Dustin Diaz 2012-2015
1584
- * MIT License | (c) Denis Demchenko 2015-2019
1585
- */class d2{static getParser(t,n=!1){if(typeof t!="string")throw new Error("UserAgent should be a string");return new Bx(t,n)}static parse(t){return new Bx(t).getResult()}static get BROWSER_MAP(){return u2}static get ENGINE_MAP(){return qi}static get OS_MAP(){return qr}static get PLATFORMS_MAP(){return Fn}}const XZ=({serviceId:e,clientVersion:t})=>async n=>{const r=typeof window<"u"&&window?.navigator?.userAgent?d2.parse(window.navigator.userAgent):void 0,s=[["aws-sdk-js",t],["ua","2.1"],[`os/${r?.os?.name||"other"}`,r?.os?.version],["lang/js"],["md/browser",`${r?.browser?.name??"unknown"}_${r?.browser?.version??"unknown"}`]];e&&s.push([`api/${e}`,t]);const i=await n?.userAgentAppId?.();return i&&s.push([`app/${i}`]),s};class uu{constructor(t){if(this.bytes=t,t.byteLength!==8)throw new Error("Int64 buffers must be exactly 8 bytes")}static fromNumber(t){if(t>9223372036854776e3||t<-9223372036854776e3)throw new Error(`${t} is too large (or, if negative, too small) to represent as an Int64`);const n=new Uint8Array(8);for(let r=7,s=Math.abs(Math.round(t));r>-1&&s>0;r--,s/=256)n[r]=s;return t<0&&Px(n),new uu(n)}valueOf(){const t=this.bytes.slice(0),n=t[0]&128;return n&&Px(t),parseInt(es(t),16)*(n?-1:1)}toString(){return String(this.valueOf())}}function Px(e){for(let t=0;t<8;t++)e[t]^=255;for(let t=7;t>-1&&(e[t]++,e[t]===0);t--);}class QZ{constructor(t,n){this.toUtf8=t,this.fromUtf8=n}format(t){const n=[];for(const i of Object.keys(t)){const a=this.fromUtf8(i);n.push(Uint8Array.from([a.byteLength]),a,this.formatHeaderValue(t[i]))}const r=new Uint8Array(n.reduce((i,a)=>i+a.byteLength,0));let s=0;for(const i of n)r.set(i,s),s+=i.byteLength;return r}formatHeaderValue(t){switch(t.type){case"boolean":return Uint8Array.from([t.value?0:1]);case"byte":return Uint8Array.from([2,t.value]);case"short":const n=new DataView(new ArrayBuffer(3));return n.setUint8(0,3),n.setInt16(1,t.value,!1),new Uint8Array(n.buffer);case"integer":const r=new DataView(new ArrayBuffer(5));return r.setUint8(0,4),r.setInt32(1,t.value,!1),new Uint8Array(r.buffer);case"long":const s=new Uint8Array(9);return s[0]=5,s.set(t.value.bytes,1),s;case"binary":const i=new DataView(new ArrayBuffer(3+t.value.byteLength));i.setUint8(0,6),i.setUint16(1,t.value.byteLength,!1);const a=new Uint8Array(i.buffer);return a.set(t.value,3),a;case"string":const o=this.fromUtf8(t.value),c=new DataView(new ArrayBuffer(3+o.byteLength));c.setUint8(0,7),c.setUint16(1,o.byteLength,!1);const l=new Uint8Array(c.buffer);return l.set(o,3),l;case"timestamp":const d=new Uint8Array(9);return d[0]=8,d.set(uu.fromNumber(t.value.valueOf()).bytes,1),d;case"uuid":if(!aJ.test(t.value))throw new Error(`Invalid UUID received: ${t.value}`);const f=new Uint8Array(17);return f[0]=9,f.set(bS(t.value.replace(/\-/g,"")),1),f}}parse(t){const n={};let r=0;for(;r<t.byteLength;){const s=t.getUint8(r++),i=this.toUtf8(new Uint8Array(t.buffer,t.byteOffset+r,s));switch(r+=s,t.getUint8(r++)){case 0:n[i]={type:Ox,value:!0};break;case 1:n[i]={type:Ox,value:!1};break;case 2:n[i]={type:ZZ,value:t.getInt8(r++)};break;case 3:n[i]={type:JZ,value:t.getInt16(r,!1)},r+=2;break;case 4:n[i]={type:eJ,value:t.getInt32(r,!1)},r+=4;break;case 5:n[i]={type:tJ,value:new uu(new Uint8Array(t.buffer,t.byteOffset+r,8))},r+=8;break;case 6:const a=t.getUint16(r,!1);r+=2,n[i]={type:nJ,value:new Uint8Array(t.buffer,t.byteOffset+r,a)},r+=a;break;case 7:const o=t.getUint16(r,!1);r+=2,n[i]={type:rJ,value:this.toUtf8(new Uint8Array(t.buffer,t.byteOffset+r,o))},r+=o;break;case 8:n[i]={type:sJ,value:new Date(new uu(new Uint8Array(t.buffer,t.byteOffset+r,8)).valueOf())},r+=8;break;case 9:const c=new Uint8Array(t.buffer,t.byteOffset+r,16);r+=16,n[i]={type:iJ,value:`${es(c.subarray(0,4))}-${es(c.subarray(4,6))}-${es(c.subarray(6,8))}-${es(c.subarray(8,10))}-${es(c.subarray(10))}`};break;default:throw new Error("Unrecognized header type tag")}}return n}}var Nx;(function(e){e[e.boolTrue=0]="boolTrue",e[e.boolFalse=1]="boolFalse",e[e.byte=2]="byte",e[e.short=3]="short",e[e.integer=4]="integer",e[e.long=5]="long",e[e.byteArray=6]="byteArray",e[e.string=7]="string",e[e.timestamp=8]="timestamp",e[e.uuid=9]="uuid"})(Nx||(Nx={}));const Ox="boolean",ZZ="byte",JZ="short",eJ="integer",tJ="long",nJ="binary",rJ="string",sJ="timestamp",iJ="uuid",aJ=/^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/,f2=4,ji=f2*2,_a=4,oJ=ji+_a*2;function cJ({byteLength:e,byteOffset:t,buffer:n}){if(e<oJ)throw new Error("Provided message too short to accommodate event stream message overhead");const r=new DataView(n,t,e),s=r.getUint32(0,!1);if(e!==s)throw new Error("Reported message length does not match received message length");const i=r.getUint32(f2,!1),a=r.getUint32(ji,!1),o=r.getUint32(e-_a,!1),c=new $f().update(new Uint8Array(n,t,ji));if(a!==c.digest())throw new Error(`The prelude checksum specified in the message (${a}) does not match the calculated CRC32 checksum (${c.digest()})`);if(c.update(new Uint8Array(n,t+ji,e-(ji+_a))),o!==c.digest())throw new Error(`The message checksum (${c.digest()}) did not match the expected value of ${o}`);return{headers:new DataView(n,t+ji+_a,i),body:new Uint8Array(n,t+ji+_a+i,s-i-(ji+_a+_a))}}class lJ{constructor(t,n){this.headerMarshaller=new QZ(t,n),this.messageBuffer=[],this.isEndOfStream=!1}feed(t){this.messageBuffer.push(this.decode(t))}endOfStream(){this.isEndOfStream=!0}getMessage(){const t=this.messageBuffer.pop(),n=this.isEndOfStream;return{getMessage(){return t},isEndOfStream(){return n}}}getAvailableMessages(){const t=this.messageBuffer;this.messageBuffer=[];const n=this.isEndOfStream;return{getMessages(){return t},isEndOfStream(){return n}}}encode({headers:t,body:n}){const r=this.headerMarshaller.format(t),s=r.byteLength+n.byteLength+16,i=new Uint8Array(s),a=new DataView(i.buffer,i.byteOffset,i.byteLength),o=new $f;return a.setUint32(0,s,!1),a.setUint32(4,r.byteLength,!1),a.setUint32(8,o.update(i.subarray(0,8)).digest(),!1),i.set(r,12),i.set(n,r.byteLength+12),a.setUint32(s-4,o.update(i.subarray(8,s-4)).digest(),!1),i}decode(t){const{headers:n,body:r}=cJ(t);return{headers:this.headerMarshaller.parse(n),body:r}}formatHeaders(t){return this.headerMarshaller.format(t)}}class uJ{constructor(t){this.options=t}[Symbol.asyncIterator](){return this.asyncIterator()}async*asyncIterator(){for await(const t of this.options.inputStream)yield this.options.decoder.decode(t)}}class dJ{constructor(t){this.options=t}[Symbol.asyncIterator](){return this.asyncIterator()}async*asyncIterator(){for await(const t of this.options.messageStream)yield this.options.encoder.encode(t);this.options.includeEndFrame&&(yield new Uint8Array(0))}}class fJ{constructor(t){this.options=t}[Symbol.asyncIterator](){return this.asyncIterator()}async*asyncIterator(){for await(const t of this.options.messageStream){const n=await this.options.deserializer(t);n!==void 0&&(yield n)}}}class hJ{constructor(t){this.options=t}[Symbol.asyncIterator](){return this.asyncIterator()}async*asyncIterator(){for await(const t of this.options.inputStream)yield this.options.serializer(t)}}function mJ(e){let t=0,n=0,r=null,s=null;const i=o=>{if(typeof o!="number")throw new Error("Attempted to allocate an event message where size was not a number: "+o);t=o,n=4,r=new Uint8Array(o),new DataView(r.buffer).setUint32(0,o,!1)},a=async function*(){const o=e[Symbol.asyncIterator]();for(;;){const{value:c,done:l}=await o.next();if(l){if(t)if(t===n)yield r;else throw new Error("Truncated event message received.");else return;return}const d=c.length;let f=0;for(;f<d;){if(!r){const h=d-f;s||(s=new Uint8Array(4));const b=Math.min(4-n,h);if(s.set(c.slice(f,f+b),n),n+=b,f+=b,n<4)break;i(new DataView(s.buffer).getUint32(0,!1)),s=null}const m=Math.min(t-n,d-f);r.set(c.slice(f,f+m),n),n+=m,f+=m,t&&t===n&&(yield r,r=null,t=0,n=0)}}};return{[Symbol.asyncIterator]:a}}function bJ(e,t){return async function(n){const{value:r}=n.headers[":message-type"];if(r==="error"){const s=new Error(n.headers[":error-message"].value||"UnknownError");throw s.name=n.headers[":error-code"].value,s}else if(r==="exception"){const s=n.headers[":exception-type"].value,i={[s]:n},a=await e(i);if(a.$unknown){const o=new Error(t(n.body));throw o.name=s,o}throw a[s]}else if(r==="event"){const s={[n.headers[":event-type"].value]:n},i=await e(s);return i.$unknown?void 0:i}else throw Error(`Unrecognizable event type: ${n.headers[":event-type"].value}`)}}let gJ=class{constructor({utf8Encoder:t,utf8Decoder:n}){this.eventStreamCodec=new lJ(t,n),this.utfEncoder=t}deserialize(t,n){const r=mJ(t);return new fJ({messageStream:new uJ({inputStream:r,decoder:this.eventStreamCodec}),deserializer:bJ(n,this.utfEncoder)})}serialize(t,n){return new dJ({messageStream:new hJ({inputStream:t,serializer:n}),encoder:this.eventStreamCodec,includeEndFrame:!0})}};const pJ=e=>({[Symbol.asyncIterator]:async function*(){const t=e.getReader();try{for(;;){const{done:n,value:r}=await t.read();if(n)return;yield r}}finally{t.releaseLock()}}}),yJ=e=>{const t=e[Symbol.asyncIterator]();return new ReadableStream({async pull(n){const{done:r,value:s}=await t.next();if(r)return n.close();n.enqueue(s)}})};class EJ{constructor({utf8Encoder:t,utf8Decoder:n}){this.universalMarshaller=new gJ({utf8Decoder:n,utf8Encoder:t})}deserialize(t,n){const r=CJ(t)?pJ(t):t;return this.universalMarshaller.deserialize(r,n)}serialize(t,n){const r=this.universalMarshaller.serialize(t,n);return typeof ReadableStream=="function"?yJ(r):r}}const CJ=e=>typeof ReadableStream=="function"&&e instanceof ReadableStream,xJ=e=>new EJ(e);async function vJ(e,t,n=1024*1024){const r=e.size;let s=0;for(;s<r;){const i=e.slice(s,Math.min(r,s+n));t(new Uint8Array(await i.arrayBuffer())),s+=i.size}}const _J=async function(t,n){const r=new t;return await vJ(n,s=>{r.update(s)}),r.digest()},SJ=e=>()=>Promise.reject(e),$i=64,TJ=16,wJ=[1732584193,4023233417,2562383102,271733878];class AJ{constructor(){this.reset()}update(t){if(kJ(t))return;if(this.finished)throw new Error("Attempted to update an already finished hash.");const n=IJ(t);let r=0,{byteLength:s}=n;for(this.bytesHashed+=s;s>0;)this.buffer.setUint8(this.bufferLength++,n[r++]),s--,this.bufferLength===$i&&(this.hashBuffer(),this.bufferLength=0)}async digest(){if(!this.finished){const{buffer:n,bufferLength:r,bytesHashed:s}=this,i=s*8;if(n.setUint8(this.bufferLength++,128),r%$i>=$i-8){for(let a=this.bufferLength;a<$i;a++)n.setUint8(a,0);this.hashBuffer(),this.bufferLength=0}for(let a=this.bufferLength;a<$i-8;a++)n.setUint8(a,0);n.setUint32($i-8,i>>>0,!0),n.setUint32($i-4,Math.floor(i/4294967296),!0),this.hashBuffer(),this.finished=!0}const t=new DataView(new ArrayBuffer(TJ));for(let n=0;n<4;n++)t.setUint32(n*4,this.state[n],!0);return new Uint8Array(t.buffer,t.byteOffset,t.byteLength)}hashBuffer(){const{buffer:t,state:n}=this;let r=n[0],s=n[1],i=n[2],a=n[3];r=Ar(r,s,i,a,t.getUint32(0,!0),7,3614090360),a=Ar(a,r,s,i,t.getUint32(4,!0),12,3905402710),i=Ar(i,a,r,s,t.getUint32(8,!0),17,606105819),s=Ar(s,i,a,r,t.getUint32(12,!0),22,3250441966),r=Ar(r,s,i,a,t.getUint32(16,!0),7,4118548399),a=Ar(a,r,s,i,t.getUint32(20,!0),12,1200080426),i=Ar(i,a,r,s,t.getUint32(24,!0),17,2821735955),s=Ar(s,i,a,r,t.getUint32(28,!0),22,4249261313),r=Ar(r,s,i,a,t.getUint32(32,!0),7,1770035416),a=Ar(a,r,s,i,t.getUint32(36,!0),12,2336552879),i=Ar(i,a,r,s,t.getUint32(40,!0),17,4294925233),s=Ar(s,i,a,r,t.getUint32(44,!0),22,2304563134),r=Ar(r,s,i,a,t.getUint32(48,!0),7,1804603682),a=Ar(a,r,s,i,t.getUint32(52,!0),12,4254626195),i=Ar(i,a,r,s,t.getUint32(56,!0),17,2792965006),s=Ar(s,i,a,r,t.getUint32(60,!0),22,1236535329),r=kr(r,s,i,a,t.getUint32(4,!0),5,4129170786),a=kr(a,r,s,i,t.getUint32(24,!0),9,3225465664),i=kr(i,a,r,s,t.getUint32(44,!0),14,643717713),s=kr(s,i,a,r,t.getUint32(0,!0),20,3921069994),r=kr(r,s,i,a,t.getUint32(20,!0),5,3593408605),a=kr(a,r,s,i,t.getUint32(40,!0),9,38016083),i=kr(i,a,r,s,t.getUint32(60,!0),14,3634488961),s=kr(s,i,a,r,t.getUint32(16,!0),20,3889429448),r=kr(r,s,i,a,t.getUint32(36,!0),5,568446438),a=kr(a,r,s,i,t.getUint32(56,!0),9,3275163606),i=kr(i,a,r,s,t.getUint32(12,!0),14,4107603335),s=kr(s,i,a,r,t.getUint32(32,!0),20,1163531501),r=kr(r,s,i,a,t.getUint32(52,!0),5,2850285829),a=kr(a,r,s,i,t.getUint32(8,!0),9,4243563512),i=kr(i,a,r,s,t.getUint32(28,!0),14,1735328473),s=kr(s,i,a,r,t.getUint32(48,!0),20,2368359562),r=Ir(r,s,i,a,t.getUint32(20,!0),4,4294588738),a=Ir(a,r,s,i,t.getUint32(32,!0),11,2272392833),i=Ir(i,a,r,s,t.getUint32(44,!0),16,1839030562),s=Ir(s,i,a,r,t.getUint32(56,!0),23,4259657740),r=Ir(r,s,i,a,t.getUint32(4,!0),4,2763975236),a=Ir(a,r,s,i,t.getUint32(16,!0),11,1272893353),i=Ir(i,a,r,s,t.getUint32(28,!0),16,4139469664),s=Ir(s,i,a,r,t.getUint32(40,!0),23,3200236656),r=Ir(r,s,i,a,t.getUint32(52,!0),4,681279174),a=Ir(a,r,s,i,t.getUint32(0,!0),11,3936430074),i=Ir(i,a,r,s,t.getUint32(12,!0),16,3572445317),s=Ir(s,i,a,r,t.getUint32(24,!0),23,76029189),r=Ir(r,s,i,a,t.getUint32(36,!0),4,3654602809),a=Ir(a,r,s,i,t.getUint32(48,!0),11,3873151461),i=Ir(i,a,r,s,t.getUint32(60,!0),16,530742520),s=Ir(s,i,a,r,t.getUint32(8,!0),23,3299628645),r=Rr(r,s,i,a,t.getUint32(0,!0),6,4096336452),a=Rr(a,r,s,i,t.getUint32(28,!0),10,1126891415),i=Rr(i,a,r,s,t.getUint32(56,!0),15,2878612391),s=Rr(s,i,a,r,t.getUint32(20,!0),21,4237533241),r=Rr(r,s,i,a,t.getUint32(48,!0),6,1700485571),a=Rr(a,r,s,i,t.getUint32(12,!0),10,2399980690),i=Rr(i,a,r,s,t.getUint32(40,!0),15,4293915773),s=Rr(s,i,a,r,t.getUint32(4,!0),21,2240044497),r=Rr(r,s,i,a,t.getUint32(32,!0),6,1873313359),a=Rr(a,r,s,i,t.getUint32(60,!0),10,4264355552),i=Rr(i,a,r,s,t.getUint32(24,!0),15,2734768916),s=Rr(s,i,a,r,t.getUint32(52,!0),21,1309151649),r=Rr(r,s,i,a,t.getUint32(16,!0),6,4149444226),a=Rr(a,r,s,i,t.getUint32(44,!0),10,3174756917),i=Rr(i,a,r,s,t.getUint32(8,!0),15,718787259),s=Rr(s,i,a,r,t.getUint32(36,!0),21,3951481745),n[0]=r+n[0]&4294967295,n[1]=s+n[1]&4294967295,n[2]=i+n[2]&4294967295,n[3]=a+n[3]&4294967295}reset(){this.state=Uint32Array.from(wJ),this.buffer=new DataView(new ArrayBuffer($i)),this.bufferLength=0,this.bytesHashed=0,this.finished=!1}}function Hh(e,t,n,r,s,i){return t=(t+e&4294967295)+(r+i&4294967295)&4294967295,(t<<s|t>>>32-s)+n&4294967295}function Ar(e,t,n,r,s,i,a){return Hh(t&n|~t&r,e,t,s,i,a)}function kr(e,t,n,r,s,i,a){return Hh(t&r|n&~r,e,t,s,i,a)}function Ir(e,t,n,r,s,i,a){return Hh(t^n^r,e,t,s,i,a)}function Rr(e,t,n,r,s,i,a){return Hh(n^(t|~r),e,t,s,i,a)}function kJ(e){return typeof e=="string"?e.length===0:e.byteLength===0}function IJ(e){return typeof e=="string"?Co(e):ArrayBuffer.isView(e)?new Uint8Array(e.buffer,e.byteOffset,e.byteLength/Uint8Array.BYTES_PER_ELEMENT):new Uint8Array(e)}const RJ=e=>({apiVersion:"2006-03-01",base64Decoder:e?.base64Decoder??ep,base64Encoder:e?.base64Encoder??wh,disableHostPrefix:e?.disableHostPrefix??!1,endpointProvider:e?.endpointProvider??xT,extensions:e?.extensions??[],getAwsChunkedEncodingStream:e?.getAwsChunkedEncodingStream??B5,httpAuthSchemeProvider:e?.httpAuthSchemeProvider??pz,httpAuthSchemes:e?.httpAuthSchemes??[{schemeId:"aws.auth#sigv4",identityProvider:t=>t.getIdentityProvider("aws.auth#sigv4"),signer:new uS},{schemeId:"aws.auth#sigv4a",identityProvider:t=>t.getIdentityProvider("aws.auth#sigv4a"),signer:new o5}],logger:e?.logger??new ip,sdkStreamMixin:e?.sdkStreamMixin??z5,serviceId:e?.serviceId??"S3",signerConstructor:e?.signerConstructor??sT,signingEscapePath:e?.signingEscapePath??!1,urlParser:e?.urlParser??qf,useArnRegion:e?.useArnRegion??void 0,utf8Decoder:e?.utf8Decoder??Co,utf8Encoder:e?.utf8Encoder??tp}),BJ=["in-region","cross-region","mobile","standard","legacy"],PJ=({defaultsMode:e}={})=>y8(async()=>{const t=typeof e=="function"?await e():e;switch(t?.toLowerCase()){case"auto":return Promise.resolve(NJ()?"mobile":"standard");case"mobile":case"in-region":case"cross-region":case"standard":case"legacy":return Promise.resolve(t?.toLocaleLowerCase());case void 0:return Promise.resolve("legacy");default:throw new Error(`Invalid parameter for "defaultsMode", expect ${BJ.join(", ")}, got ${t}`)}}),NJ=()=>{const t=(typeof window<"u"&&window?.navigator?.userAgent?d2.parse(window.navigator.userAgent):void 0)?.platform?.type;return t==="tablet"||t==="mobile"},OJ=e=>{const t=PJ(e),n=()=>t().then(tL),r=RJ(e);return{...r,...e,runtime:"browser",defaultsMode:t,bodyLengthChecker:e?.bodyLengthChecker??K8,credentialDefaultProvider:e?.credentialDefaultProvider??(s=>()=>Promise.reject(new Error("Credential is missing"))),defaultUserAgentProvider:e?.defaultUserAgentProvider??XZ({serviceId:r.serviceId,clientVersion:kZ.version}),eventStreamSerdeProvider:e?.eventStreamSerdeProvider??xJ,maxAttempts:e?.maxAttempts??jf,md5:e?.md5??AJ,region:e?.region??SJ("Region is missing"),requestHandler:np.create(e?.requestHandler??n),retryMode:e?.retryMode??(async()=>(await n()).retryMode||w9),sha1:e?.sha1??DZ,sha256:e?.sha256??jZ,streamCollector:e?.streamCollector??hS,streamHasher:e?.streamHasher??_J,useDualstackEndpoint:e?.useDualstackEndpoint??(()=>Promise.resolve(c9)),useFipsEndpoint:e?.useFipsEndpoint??(()=>Promise.resolve(l9))}},DJ=e=>({setRegion(t){e.region=t},region(){return e.region}}),LJ=e=>({region:e.region()}),MJ=e=>{const t=e.httpAuthSchemes;let n=e.httpAuthSchemeProvider,r=e.credentials;return{setHttpAuthScheme(s){const i=t.findIndex(a=>a.schemeId===s.schemeId);i===-1?t.push(s):t.splice(i,1,s)},httpAuthSchemes(){return t},setHttpAuthSchemeProvider(s){n=s},httpAuthSchemeProvider(){return n},setCredentials(s){r=s},credentials(){return r}}},FJ=e=>({httpAuthSchemes:e.httpAuthSchemes(),httpAuthSchemeProvider:e.httpAuthSchemeProvider(),credentials:e.credentials()}),zJ=(e,t)=>{const n=Object.assign(DJ(e),aL(e),X4(e),MJ(e));return t.forEach(r=>r.configure(n)),Object.assign(e,LJ(n),oL(n),Q4(n),FJ(n))};class UJ extends Y8{config;constructor(...[t]){const n=OJ(t||{});super(n),this.initConfig=n;const r=Ez(n),s=TF(r),i=IM(s),a=j9(i),o=u9(a),c=o,l=T9(c),d=d9(l),f=yz(d),m=dF(f,{session:[()=>this,a2]}),h=zJ(m,t?.extensions||[]);this.config=h,this.middlewareStack.use(o9(this.config)),this.middlewareStack.use(Q9(this.config)),this.middlewareStack.use(m9(this.config)),this.middlewareStack.use(PM(this.config)),this.middlewareStack.use(DM(this.config)),this.middlewareStack.use(UM(this.config)),this.middlewareStack.use(f5(this.config,{httpAuthSchemeParametersProvider:mz,identityProviderConfigProvider:async b=>new h8({"aws.auth#sigv4":b.credentials,"aws.auth#sigv4a":b.credentials})})),this.middlewareStack.use(E5(this.config)),this.middlewareStack.use(vF(this.config)),this.middlewareStack.use(n5(this.config)),this.middlewareStack.use(XM(this.config)),this.middlewareStack.use(iF(this.config)),this.middlewareStack.use(uF(this.config))}destroy(){super.destroy()}}class $J extends Ee.classBuilder().ep({..._e,Bucket:{type:"contextParams",name:"Bucket"},Key:{type:"contextParams",name:"Key"}}).m(function(t,n,r,s){return[Ce(r,this.serialize,this.deserialize),ve(r,t.getEndpointParameterInstructions()),Je(r)]}).s("AmazonS3","AbortMultipartUpload",{}).n("S3Client","AbortMultipartUploadCommand").f(void 0,void 0).ser(oU).de(r$).build(){}function HJ(e){return t=>async n=>{const r={...n.input},s=[{target:"SSECustomerKey",hash:"SSECustomerKeyMD5"},{target:"CopySourceSSECustomerKey",hash:"CopySourceSSECustomerKeyMD5"}];for(const i of s){const a=r[i.target];if(a){let o;typeof a=="string"?jJ(a,e)?o=e.base64Decoder(a):(o=e.utf8Decoder(a),r[i.target]=e.base64Encoder(o)):(o=ArrayBuffer.isView(a)?new Uint8Array(a.buffer,a.byteOffset,a.byteLength):new Uint8Array(a),r[i.target]=e.base64Encoder(o));const c=new e.md5;c.update(o),r[i.hash]=e.base64Encoder(await c.digest())}}return t({...n,input:r})}}const qJ={name:"ssecMiddleware",step:"initialize",tags:["SSE"],override:!0},Qs=e=>({applyToStack:t=>{t.add(HJ(e),qJ)}});function jJ(e,t){if(!/^(?:[A-Za-z0-9+/]{4})*([A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(e))return!1;try{return t.base64Decoder(e).length===32}catch{return!1}}class WJ extends Ee.classBuilder().ep({..._e,Bucket:{type:"contextParams",name:"Bucket"},Key:{type:"contextParams",name:"Key"}}).m(function(t,n,r,s){return[Ce(r,this.serialize,this.deserialize),ve(r,t.getEndpointParameterInstructions()),Je(r),Qs(r)]}).s("AmazonS3","CompleteMultipartUpload",{}).n("S3Client","CompleteMultipartUploadCommand").f(xz,Cz).ser(cU).de(s$).build(){}class GJ extends Ee.classBuilder().ep({..._e,DisableS3ExpressSessionAuth:{type:"staticContextParams",value:!0},Bucket:{type:"contextParams",name:"Bucket"},Key:{type:"contextParams",name:"Key"},CopySource:{type:"contextParams",name:"CopySource"}}).m(function(t,n,r,s){return[Ce(r,this.serialize,this.deserialize),ve(r,t.getEndpointParameterInstructions()),Je(r),Qs(r)]}).s("AmazonS3","CopyObject",{}).n("S3Client","CopyObjectCommand").f(_z,vz).ser(lU).de(i$).build(){}function VJ(e){return t=>async n=>{const{CreateBucketConfiguration:r}=n.input,s=await e.region();return!r?.LocationConstraint&&!r?.Location&&(n={...n,input:{...n.input,CreateBucketConfiguration:s==="us-east-1"?void 0:{LocationConstraint:s}}}),t(n)}}const KJ={step:"initialize",tags:["LOCATION_CONSTRAINT","CREATE_BUCKET_CONFIGURATION"],name:"locationConstraintMiddleware",override:!0},YJ=e=>({applyToStack:t=>{t.add(VJ(e),KJ)}});class XJ extends Ee.classBuilder().ep({..._e,UseS3ExpressControlEndpoint:{type:"staticContextParams",value:!0},DisableAccessPoints:{type:"staticContextParams",value:!0},Bucket:{type:"contextParams",name:"Bucket"}}).m(function(t,n,r,s){return[Ce(r,this.serialize,this.deserialize),ve(r,t.getEndpointParameterInstructions()),Je(r),YJ(r)]}).s("AmazonS3","CreateBucket",{}).n("S3Client","CreateBucketCommand").f(void 0,void 0).ser(uU).de(a$).build(){}class QJ extends Ee.classBuilder().ep({..._e,UseS3ExpressControlEndpoint:{type:"staticContextParams",value:!0},Bucket:{type:"contextParams",name:"Bucket"}}).m(function(t,n,r,s){return[Ce(r,this.serialize,this.deserialize),ve(r,t.getEndpointParameterInstructions()),rn(r,{requestAlgorithmMember:{httpHeader:"x-amz-sdk-checksum-algorithm",name:"ChecksumAlgorithm"},requestChecksumRequired:!0})]}).s("AmazonS3","CreateBucketMetadataConfiguration",{}).n("S3Client","CreateBucketMetadataConfigurationCommand").f(void 0,void 0).ser(dU).de(o$).build(){}class ZJ extends Ee.classBuilder().ep({..._e,UseS3ExpressControlEndpoint:{type:"staticContextParams",value:!0},Bucket:{type:"contextParams",name:"Bucket"}}).m(function(t,n,r,s){return[Ce(r,this.serialize,this.deserialize),ve(r,t.getEndpointParameterInstructions()),rn(r,{requestAlgorithmMember:{httpHeader:"x-amz-sdk-checksum-algorithm",name:"ChecksumAlgorithm"},requestChecksumRequired:!0})]}).s("AmazonS3","CreateBucketMetadataTableConfiguration",{}).n("S3Client","CreateBucketMetadataTableConfigurationCommand").f(void 0,void 0).ser(fU).de(c$).build(){}class JJ extends Ee.classBuilder().ep({..._e,Bucket:{type:"contextParams",name:"Bucket"},Key:{type:"contextParams",name:"Key"}}).m(function(t,n,r,s){return[Ce(r,this.serialize,this.deserialize),ve(r,t.getEndpointParameterInstructions()),Je(r),Qs(r)]}).s("AmazonS3","CreateMultipartUpload",{}).n("S3Client","CreateMultipartUploadCommand").f(Tz,Sz).ser(hU).de(l$).build(){}class eee extends Ee.classBuilder().ep({..._e,UseS3ExpressControlEndpoint:{type:"staticContextParams",value:!0},Bucket:{type:"contextParams",name:"Bucket"}}).m(function(t,n,r,s){return[Ce(r,this.serialize,this.deserialize),ve(r,t.getEndpointParameterInstructions())]}).s("AmazonS3","DeleteBucketAnalyticsConfiguration",{}).n("S3Client","DeleteBucketAnalyticsConfigurationCommand").f(void 0,void 0).ser(gU).de(f$).build(){}class tee extends Ee.classBuilder().ep({..._e,UseS3ExpressControlEndpoint:{type:"staticContextParams",value:!0},Bucket:{type:"contextParams",name:"Bucket"}}).m(function(t,n,r,s){return[Ce(r,this.serialize,this.deserialize),ve(r,t.getEndpointParameterInstructions())]}).s("AmazonS3","DeleteBucket",{}).n("S3Client","DeleteBucketCommand").f(void 0,void 0).ser(bU).de(d$).build(){}class nee extends Ee.classBuilder().ep({..._e,UseS3ExpressControlEndpoint:{type:"staticContextParams",value:!0},Bucket:{type:"contextParams",name:"Bucket"}}).m(function(t,n,r,s){return[Ce(r,this.serialize,this.deserialize),ve(r,t.getEndpointParameterInstructions())]}).s("AmazonS3","DeleteBucketCors",{}).n("S3Client","DeleteBucketCorsCommand").f(void 0,void 0).ser(pU).de(h$).build(){}class ree extends Ee.classBuilder().ep({..._e,UseS3ExpressControlEndpoint:{type:"staticContextParams",value:!0},Bucket:{type:"contextParams",name:"Bucket"}}).m(function(t,n,r,s){return[Ce(r,this.serialize,this.deserialize),ve(r,t.getEndpointParameterInstructions())]}).s("AmazonS3","DeleteBucketEncryption",{}).n("S3Client","DeleteBucketEncryptionCommand").f(void 0,void 0).ser(yU).de(m$).build(){}class see extends Ee.classBuilder().ep({..._e,UseS3ExpressControlEndpoint:{type:"staticContextParams",value:!0},Bucket:{type:"contextParams",name:"Bucket"}}).m(function(t,n,r,s){return[Ce(r,this.serialize,this.deserialize),ve(r,t.getEndpointParameterInstructions())]}).s("AmazonS3","DeleteBucketIntelligentTieringConfiguration",{}).n("S3Client","DeleteBucketIntelligentTieringConfigurationCommand").f(void 0,void 0).ser(EU).de(b$).build(){}class iee extends Ee.classBuilder().ep({..._e,UseS3ExpressControlEndpoint:{type:"staticContextParams",value:!0},Bucket:{type:"contextParams",name:"Bucket"}}).m(function(t,n,r,s){return[Ce(r,this.serialize,this.deserialize),ve(r,t.getEndpointParameterInstructions())]}).s("AmazonS3","DeleteBucketInventoryConfiguration",{}).n("S3Client","DeleteBucketInventoryConfigurationCommand").f(void 0,void 0).ser(CU).de(g$).build(){}class aee extends Ee.classBuilder().ep({..._e,UseS3ExpressControlEndpoint:{type:"staticContextParams",value:!0},Bucket:{type:"contextParams",name:"Bucket"}}).m(function(t,n,r,s){return[Ce(r,this.serialize,this.deserialize),ve(r,t.getEndpointParameterInstructions())]}).s("AmazonS3","DeleteBucketLifecycle",{}).n("S3Client","DeleteBucketLifecycleCommand").f(void 0,void 0).ser(xU).de(p$).build(){}class oee extends Ee.classBuilder().ep({..._e,UseS3ExpressControlEndpoint:{type:"staticContextParams",value:!0},Bucket:{type:"contextParams",name:"Bucket"}}).m(function(t,n,r,s){return[Ce(r,this.serialize,this.deserialize),ve(r,t.getEndpointParameterInstructions())]}).s("AmazonS3","DeleteBucketMetadataConfiguration",{}).n("S3Client","DeleteBucketMetadataConfigurationCommand").f(void 0,void 0).ser(vU).de(y$).build(){}class cee extends Ee.classBuilder().ep({..._e,UseS3ExpressControlEndpoint:{type:"staticContextParams",value:!0},Bucket:{type:"contextParams",name:"Bucket"}}).m(function(t,n,r,s){return[Ce(r,this.serialize,this.deserialize),ve(r,t.getEndpointParameterInstructions())]}).s("AmazonS3","DeleteBucketMetadataTableConfiguration",{}).n("S3Client","DeleteBucketMetadataTableConfigurationCommand").f(void 0,void 0).ser(_U).de(E$).build(){}class lee extends Ee.classBuilder().ep({..._e,UseS3ExpressControlEndpoint:{type:"staticContextParams",value:!0},Bucket:{type:"contextParams",name:"Bucket"}}).m(function(t,n,r,s){return[Ce(r,this.serialize,this.deserialize),ve(r,t.getEndpointParameterInstructions())]}).s("AmazonS3","DeleteBucketMetricsConfiguration",{}).n("S3Client","DeleteBucketMetricsConfigurationCommand").f(void 0,void 0).ser(SU).de(C$).build(){}class uee extends Ee.classBuilder().ep({..._e,UseS3ExpressControlEndpoint:{type:"staticContextParams",value:!0},Bucket:{type:"contextParams",name:"Bucket"}}).m(function(t,n,r,s){return[Ce(r,this.serialize,this.deserialize),ve(r,t.getEndpointParameterInstructions())]}).s("AmazonS3","DeleteBucketOwnershipControls",{}).n("S3Client","DeleteBucketOwnershipControlsCommand").f(void 0,void 0).ser(TU).de(x$).build(){}class dee extends Ee.classBuilder().ep({..._e,UseS3ExpressControlEndpoint:{type:"staticContextParams",value:!0},Bucket:{type:"contextParams",name:"Bucket"}}).m(function(t,n,r,s){return[Ce(r,this.serialize,this.deserialize),ve(r,t.getEndpointParameterInstructions())]}).s("AmazonS3","DeleteBucketPolicy",{}).n("S3Client","DeleteBucketPolicyCommand").f(void 0,void 0).ser(wU).de(v$).build(){}class fee extends Ee.classBuilder().ep({..._e,UseS3ExpressControlEndpoint:{type:"staticContextParams",value:!0},Bucket:{type:"contextParams",name:"Bucket"}}).m(function(t,n,r,s){return[Ce(r,this.serialize,this.deserialize),ve(r,t.getEndpointParameterInstructions())]}).s("AmazonS3","DeleteBucketReplication",{}).n("S3Client","DeleteBucketReplicationCommand").f(void 0,void 0).ser(AU).de(_$).build(){}class hee extends Ee.classBuilder().ep({..._e,UseS3ExpressControlEndpoint:{type:"staticContextParams",value:!0},Bucket:{type:"contextParams",name:"Bucket"}}).m(function(t,n,r,s){return[Ce(r,this.serialize,this.deserialize),ve(r,t.getEndpointParameterInstructions())]}).s("AmazonS3","DeleteBucketTagging",{}).n("S3Client","DeleteBucketTaggingCommand").f(void 0,void 0).ser(kU).de(S$).build(){}class mee extends Ee.classBuilder().ep({..._e,UseS3ExpressControlEndpoint:{type:"staticContextParams",value:!0},Bucket:{type:"contextParams",name:"Bucket"}}).m(function(t,n,r,s){return[Ce(r,this.serialize,this.deserialize),ve(r,t.getEndpointParameterInstructions())]}).s("AmazonS3","DeleteBucketWebsite",{}).n("S3Client","DeleteBucketWebsiteCommand").f(void 0,void 0).ser(IU).de(T$).build(){}class bee extends Ee.classBuilder().ep({..._e,Bucket:{type:"contextParams",name:"Bucket"},Key:{type:"contextParams",name:"Key"}}).m(function(t,n,r,s){return[Ce(r,this.serialize,this.deserialize),ve(r,t.getEndpointParameterInstructions()),Je(r)]}).s("AmazonS3","DeleteObject",{}).n("S3Client","DeleteObjectCommand").f(void 0,void 0).ser(RU).de(w$).build(){}class gee extends Ee.classBuilder().ep({..._e,Bucket:{type:"contextParams",name:"Bucket"}}).m(function(t,n,r,s){return[Ce(r,this.serialize,this.deserialize),ve(r,t.getEndpointParameterInstructions()),rn(r,{requestAlgorithmMember:{httpHeader:"x-amz-sdk-checksum-algorithm",name:"ChecksumAlgorithm"},requestChecksumRequired:!0}),Je(r)]}).s("AmazonS3","DeleteObjects",{}).n("S3Client","DeleteObjectsCommand").f(void 0,void 0).ser(BU).de(A$).build(){}class pee extends Ee.classBuilder().ep({..._e,Bucket:{type:"contextParams",name:"Bucket"}}).m(function(t,n,r,s){return[Ce(r,this.serialize,this.deserialize),ve(r,t.getEndpointParameterInstructions()),Je(r)]}).s("AmazonS3","DeleteObjectTagging",{}).n("S3Client","DeleteObjectTaggingCommand").f(void 0,void 0).ser(PU).de(k$).build(){}class yee extends Ee.classBuilder().ep({..._e,UseS3ExpressControlEndpoint:{type:"staticContextParams",value:!0},Bucket:{type:"contextParams",name:"Bucket"}}).m(function(t,n,r,s){return[Ce(r,this.serialize,this.deserialize),ve(r,t.getEndpointParameterInstructions())]}).s("AmazonS3","DeletePublicAccessBlock",{}).n("S3Client","DeletePublicAccessBlockCommand").f(void 0,void 0).ser(NU).de(I$).build(){}class Eee extends Ee.classBuilder().ep({..._e,UseS3ExpressControlEndpoint:{type:"staticContextParams",value:!0},Bucket:{type:"contextParams",name:"Bucket"}}).m(function(t,n,r,s){return[Ce(r,this.serialize,this.deserialize),ve(r,t.getEndpointParameterInstructions()),Je(r)]}).s("AmazonS3","GetBucketAccelerateConfiguration",{}).n("S3Client","GetBucketAccelerateConfigurationCommand").f(void 0,void 0).ser(OU).de(R$).build(){}class Cee extends Ee.classBuilder().ep({..._e,UseS3ExpressControlEndpoint:{type:"staticContextParams",value:!0},Bucket:{type:"contextParams",name:"Bucket"}}).m(function(t,n,r,s){return[Ce(r,this.serialize,this.deserialize),ve(r,t.getEndpointParameterInstructions()),Je(r)]}).s("AmazonS3","GetBucketAcl",{}).n("S3Client","GetBucketAclCommand").f(void 0,void 0).ser(DU).de(B$).build(){}class xee extends Ee.classBuilder().ep({..._e,UseS3ExpressControlEndpoint:{type:"staticContextParams",value:!0},Bucket:{type:"contextParams",name:"Bucket"}}).m(function(t,n,r,s){return[Ce(r,this.serialize,this.deserialize),ve(r,t.getEndpointParameterInstructions()),Je(r)]}).s("AmazonS3","GetBucketAnalyticsConfiguration",{}).n("S3Client","GetBucketAnalyticsConfigurationCommand").f(void 0,void 0).ser(LU).de(P$).build(){}class vee extends Ee.classBuilder().ep({..._e,UseS3ExpressControlEndpoint:{type:"staticContextParams",value:!0},Bucket:{type:"contextParams",name:"Bucket"}}).m(function(t,n,r,s){return[Ce(r,this.serialize,this.deserialize),ve(r,t.getEndpointParameterInstructions()),Je(r)]}).s("AmazonS3","GetBucketCors",{}).n("S3Client","GetBucketCorsCommand").f(void 0,void 0).ser(MU).de(N$).build(){}class _ee extends Ee.classBuilder().ep({..._e,UseS3ExpressControlEndpoint:{type:"staticContextParams",value:!0},Bucket:{type:"contextParams",name:"Bucket"}}).m(function(t,n,r,s){return[Ce(r,this.serialize,this.deserialize),ve(r,t.getEndpointParameterInstructions()),Je(r)]}).s("AmazonS3","GetBucketEncryption",{}).n("S3Client","GetBucketEncryptionCommand").f(void 0,Bz).ser(FU).de(O$).build(){}class See extends Ee.classBuilder().ep({..._e,UseS3ExpressControlEndpoint:{type:"staticContextParams",value:!0},Bucket:{type:"contextParams",name:"Bucket"}}).m(function(t,n,r,s){return[Ce(r,this.serialize,this.deserialize),ve(r,t.getEndpointParameterInstructions()),Je(r)]}).s("AmazonS3","GetBucketIntelligentTieringConfiguration",{}).n("S3Client","GetBucketIntelligentTieringConfigurationCommand").f(void 0,void 0).ser(zU).de(D$).build(){}class Tee extends Ee.classBuilder().ep({..._e,UseS3ExpressControlEndpoint:{type:"staticContextParams",value:!0},Bucket:{type:"contextParams",name:"Bucket"}}).m(function(t,n,r,s){return[Ce(r,this.serialize,this.deserialize),ve(r,t.getEndpointParameterInstructions()),Je(r)]}).s("AmazonS3","GetBucketInventoryConfiguration",{}).n("S3Client","GetBucketInventoryConfigurationCommand").f(void 0,Lz).ser(UU).de(L$).build(){}class wee extends Ee.classBuilder().ep({..._e,UseS3ExpressControlEndpoint:{type:"staticContextParams",value:!0},Bucket:{type:"contextParams",name:"Bucket"}}).m(function(t,n,r,s){return[Ce(r,this.serialize,this.deserialize),ve(r,t.getEndpointParameterInstructions()),Je(r)]}).s("AmazonS3","GetBucketLifecycleConfiguration",{}).n("S3Client","GetBucketLifecycleConfigurationCommand").f(void 0,void 0).ser($U).de(M$).build(){}class Aee extends Ee.classBuilder().ep({..._e,UseS3ExpressControlEndpoint:{type:"staticContextParams",value:!0},Bucket:{type:"contextParams",name:"Bucket"}}).m(function(t,n,r,s){return[Ce(r,this.serialize,this.deserialize),ve(r,t.getEndpointParameterInstructions()),Je(r)]}).s("AmazonS3","GetBucketLocation",{}).n("S3Client","GetBucketLocationCommand").f(void 0,void 0).ser(HU).de(F$).build(){}class kee extends Ee.classBuilder().ep({..._e,UseS3ExpressControlEndpoint:{type:"staticContextParams",value:!0},Bucket:{type:"contextParams",name:"Bucket"}}).m(function(t,n,r,s){return[Ce(r,this.serialize,this.deserialize),ve(r,t.getEndpointParameterInstructions()),Je(r)]}).s("AmazonS3","GetBucketLogging",{}).n("S3Client","GetBucketLoggingCommand").f(void 0,void 0).ser(qU).de(z$).build(){}class Iee extends Ee.classBuilder().ep({..._e,UseS3ExpressControlEndpoint:{type:"staticContextParams",value:!0},Bucket:{type:"contextParams",name:"Bucket"}}).m(function(t,n,r,s){return[Ce(r,this.serialize,this.deserialize),ve(r,t.getEndpointParameterInstructions()),Je(r)]}).s("AmazonS3","GetBucketMetadataConfiguration",{}).n("S3Client","GetBucketMetadataConfigurationCommand").f(void 0,void 0).ser(jU).de(U$).build(){}class Ree extends Ee.classBuilder().ep({..._e,UseS3ExpressControlEndpoint:{type:"staticContextParams",value:!0},Bucket:{type:"contextParams",name:"Bucket"}}).m(function(t,n,r,s){return[Ce(r,this.serialize,this.deserialize),ve(r,t.getEndpointParameterInstructions()),Je(r)]}).s("AmazonS3","GetBucketMetadataTableConfiguration",{}).n("S3Client","GetBucketMetadataTableConfigurationCommand").f(void 0,void 0).ser(WU).de($$).build(){}class Bee extends Ee.classBuilder().ep({..._e,UseS3ExpressControlEndpoint:{type:"staticContextParams",value:!0},Bucket:{type:"contextParams",name:"Bucket"}}).m(function(t,n,r,s){return[Ce(r,this.serialize,this.deserialize),ve(r,t.getEndpointParameterInstructions()),Je(r)]}).s("AmazonS3","GetBucketMetricsConfiguration",{}).n("S3Client","GetBucketMetricsConfigurationCommand").f(void 0,void 0).ser(GU).de(H$).build(){}class Pee extends Ee.classBuilder().ep({..._e,UseS3ExpressControlEndpoint:{type:"staticContextParams",value:!0},Bucket:{type:"contextParams",name:"Bucket"}}).m(function(t,n,r,s){return[Ce(r,this.serialize,this.deserialize),ve(r,t.getEndpointParameterInstructions()),Je(r)]}).s("AmazonS3","GetBucketNotificationConfiguration",{}).n("S3Client","GetBucketNotificationConfigurationCommand").f(void 0,void 0).ser(VU).de(q$).build(){}class Nee extends Ee.classBuilder().ep({..._e,UseS3ExpressControlEndpoint:{type:"staticContextParams",value:!0},Bucket:{type:"contextParams",name:"Bucket"}}).m(function(t,n,r,s){return[Ce(r,this.serialize,this.deserialize),ve(r,t.getEndpointParameterInstructions()),Je(r)]}).s("AmazonS3","GetBucketOwnershipControls",{}).n("S3Client","GetBucketOwnershipControlsCommand").f(void 0,void 0).ser(KU).de(j$).build(){}class Oee extends Ee.classBuilder().ep({..._e,UseS3ExpressControlEndpoint:{type:"staticContextParams",value:!0},Bucket:{type:"contextParams",name:"Bucket"}}).m(function(t,n,r,s){return[Ce(r,this.serialize,this.deserialize),ve(r,t.getEndpointParameterInstructions()),Je(r)]}).s("AmazonS3","GetBucketPolicy",{}).n("S3Client","GetBucketPolicyCommand").f(void 0,void 0).ser(YU).de(W$).build(){}class Dee extends Ee.classBuilder().ep({..._e,UseS3ExpressControlEndpoint:{type:"staticContextParams",value:!0},Bucket:{type:"contextParams",name:"Bucket"}}).m(function(t,n,r,s){return[Ce(r,this.serialize,this.deserialize),ve(r,t.getEndpointParameterInstructions()),Je(r)]}).s("AmazonS3","GetBucketPolicyStatus",{}).n("S3Client","GetBucketPolicyStatusCommand").f(void 0,void 0).ser(XU).de(G$).build(){}class Lee extends Ee.classBuilder().ep({..._e,UseS3ExpressControlEndpoint:{type:"staticContextParams",value:!0},Bucket:{type:"contextParams",name:"Bucket"}}).m(function(t,n,r,s){return[Ce(r,this.serialize,this.deserialize),ve(r,t.getEndpointParameterInstructions()),Je(r)]}).s("AmazonS3","GetBucketReplication",{}).n("S3Client","GetBucketReplicationCommand").f(void 0,void 0).ser(QU).de(V$).build(){}class Mee extends Ee.classBuilder().ep({..._e,UseS3ExpressControlEndpoint:{type:"staticContextParams",value:!0},Bucket:{type:"contextParams",name:"Bucket"}}).m(function(t,n,r,s){return[Ce(r,this.serialize,this.deserialize),ve(r,t.getEndpointParameterInstructions()),Je(r)]}).s("AmazonS3","GetBucketRequestPayment",{}).n("S3Client","GetBucketRequestPaymentCommand").f(void 0,void 0).ser(ZU).de(K$).build(){}class Fee extends Ee.classBuilder().ep({..._e,UseS3ExpressControlEndpoint:{type:"staticContextParams",value:!0},Bucket:{type:"contextParams",name:"Bucket"}}).m(function(t,n,r,s){return[Ce(r,this.serialize,this.deserialize),ve(r,t.getEndpointParameterInstructions()),Je(r)]}).s("AmazonS3","GetBucketTagging",{}).n("S3Client","GetBucketTaggingCommand").f(void 0,void 0).ser(JU).de(Y$).build(){}class zee extends Ee.classBuilder().ep({..._e,UseS3ExpressControlEndpoint:{type:"staticContextParams",value:!0},Bucket:{type:"contextParams",name:"Bucket"}}).m(function(t,n,r,s){return[Ce(r,this.serialize,this.deserialize),ve(r,t.getEndpointParameterInstructions()),Je(r)]}).s("AmazonS3","GetBucketVersioning",{}).n("S3Client","GetBucketVersioningCommand").f(void 0,void 0).ser(e7).de(X$).build(){}class Uee extends Ee.classBuilder().ep({..._e,UseS3ExpressControlEndpoint:{type:"staticContextParams",value:!0},Bucket:{type:"contextParams",name:"Bucket"}}).m(function(t,n,r,s){return[Ce(r,this.serialize,this.deserialize),ve(r,t.getEndpointParameterInstructions()),Je(r)]}).s("AmazonS3","GetBucketWebsite",{}).n("S3Client","GetBucketWebsiteCommand").f(void 0,void 0).ser(t7).de(Q$).build(){}class $ee extends Ee.classBuilder().ep({..._e,Bucket:{type:"contextParams",name:"Bucket"},Key:{type:"contextParams",name:"Key"}}).m(function(t,n,r,s){return[Ce(r,this.serialize,this.deserialize),ve(r,t.getEndpointParameterInstructions()),Je(r)]}).s("AmazonS3","GetObjectAcl",{}).n("S3Client","GetObjectAclCommand").f(void 0,void 0).ser(r7).de(J$).build(){}class Hee extends Ee.classBuilder().ep({..._e,Bucket:{type:"contextParams",name:"Bucket"}}).m(function(t,n,r,s){return[Ce(r,this.serialize,this.deserialize),ve(r,t.getEndpointParameterInstructions()),Je(r),Qs(r)]}).s("AmazonS3","GetObjectAttributes",{}).n("S3Client","GetObjectAttributesCommand").f(zz,void 0).ser(s7).de(eH).build(){}class qee extends Ee.classBuilder().ep({..._e,Bucket:{type:"contextParams",name:"Bucket"},Key:{type:"contextParams",name:"Key"}}).m(function(t,n,r,s){return[Ce(r,this.serialize,this.deserialize),ve(r,t.getEndpointParameterInstructions()),rn(r,{requestChecksumRequired:!1,requestValidationModeMember:"ChecksumMode",responseAlgorithms:["CRC64NVME","CRC32","CRC32C","SHA256","SHA1"]}),Qs(r),$S()]}).s("AmazonS3","GetObject",{}).n("S3Client","GetObjectCommand").f(Fz,Mz).ser(n7).de(Z$).build(){}class jee extends Ee.classBuilder().ep({..._e,Bucket:{type:"contextParams",name:"Bucket"}}).m(function(t,n,r,s){return[Ce(r,this.serialize,this.deserialize),ve(r,t.getEndpointParameterInstructions()),Je(r)]}).s("AmazonS3","GetObjectLegalHold",{}).n("S3Client","GetObjectLegalHoldCommand").f(void 0,void 0).ser(i7).de(tH).build(){}class Wee extends Ee.classBuilder().ep({..._e,Bucket:{type:"contextParams",name:"Bucket"}}).m(function(t,n,r,s){return[Ce(r,this.serialize,this.deserialize),ve(r,t.getEndpointParameterInstructions()),Je(r)]}).s("AmazonS3","GetObjectLockConfiguration",{}).n("S3Client","GetObjectLockConfigurationCommand").f(void 0,void 0).ser(a7).de(nH).build(){}class Gee extends Ee.classBuilder().ep({..._e,Bucket:{type:"contextParams",name:"Bucket"}}).m(function(t,n,r,s){return[Ce(r,this.serialize,this.deserialize),ve(r,t.getEndpointParameterInstructions()),Je(r)]}).s("AmazonS3","GetObjectRetention",{}).n("S3Client","GetObjectRetentionCommand").f(void 0,void 0).ser(o7).de(rH).build(){}class Vee extends Ee.classBuilder().ep({..._e,Bucket:{type:"contextParams",name:"Bucket"}}).m(function(t,n,r,s){return[Ce(r,this.serialize,this.deserialize),ve(r,t.getEndpointParameterInstructions()),Je(r)]}).s("AmazonS3","GetObjectTagging",{}).n("S3Client","GetObjectTaggingCommand").f(void 0,void 0).ser(c7).de(sH).build(){}class Kee extends Ee.classBuilder().ep({..._e,Bucket:{type:"contextParams",name:"Bucket"}}).m(function(t,n,r,s){return[Ce(r,this.serialize,this.deserialize),ve(r,t.getEndpointParameterInstructions())]}).s("AmazonS3","GetObjectTorrent",{}).n("S3Client","GetObjectTorrentCommand").f(void 0,Uz).ser(l7).de(iH).build(){}class Yee extends Ee.classBuilder().ep({..._e,UseS3ExpressControlEndpoint:{type:"staticContextParams",value:!0},Bucket:{type:"contextParams",name:"Bucket"}}).m(function(t,n,r,s){return[Ce(r,this.serialize,this.deserialize),ve(r,t.getEndpointParameterInstructions()),Je(r)]}).s("AmazonS3","GetPublicAccessBlock",{}).n("S3Client","GetPublicAccessBlockCommand").f(void 0,void 0).ser(u7).de(aH).build(){}class Xee extends Ee.classBuilder().ep({..._e,Bucket:{type:"contextParams",name:"Bucket"}}).m(function(t,n,r,s){return[Ce(r,this.serialize,this.deserialize),ve(r,t.getEndpointParameterInstructions()),Je(r)]}).s("AmazonS3","HeadBucket",{}).n("S3Client","HeadBucketCommand").f(void 0,void 0).ser(d7).de(oH).build(){}class Qee extends Ee.classBuilder().ep({..._e,Bucket:{type:"contextParams",name:"Bucket"},Key:{type:"contextParams",name:"Key"}}).m(function(t,n,r,s){return[Ce(r,this.serialize,this.deserialize),ve(r,t.getEndpointParameterInstructions()),Je(r),Qs(r),$S()]}).s("AmazonS3","HeadObject",{}).n("S3Client","HeadObjectCommand").f(Hz,$z).ser(f7).de(cH).build(){}class Zee extends Ee.classBuilder().ep({..._e,UseS3ExpressControlEndpoint:{type:"staticContextParams",value:!0},Bucket:{type:"contextParams",name:"Bucket"}}).m(function(t,n,r,s){return[Ce(r,this.serialize,this.deserialize),ve(r,t.getEndpointParameterInstructions()),Je(r)]}).s("AmazonS3","ListBucketAnalyticsConfigurations",{}).n("S3Client","ListBucketAnalyticsConfigurationsCommand").f(void 0,void 0).ser(h7).de(lH).build(){}class Jee extends Ee.classBuilder().ep({..._e,UseS3ExpressControlEndpoint:{type:"staticContextParams",value:!0},Bucket:{type:"contextParams",name:"Bucket"}}).m(function(t,n,r,s){return[Ce(r,this.serialize,this.deserialize),ve(r,t.getEndpointParameterInstructions()),Je(r)]}).s("AmazonS3","ListBucketIntelligentTieringConfigurations",{}).n("S3Client","ListBucketIntelligentTieringConfigurationsCommand").f(void 0,void 0).ser(m7).de(uH).build(){}class ete extends Ee.classBuilder().ep({..._e,UseS3ExpressControlEndpoint:{type:"staticContextParams",value:!0},Bucket:{type:"contextParams",name:"Bucket"}}).m(function(t,n,r,s){return[Ce(r,this.serialize,this.deserialize),ve(r,t.getEndpointParameterInstructions()),Je(r)]}).s("AmazonS3","ListBucketInventoryConfigurations",{}).n("S3Client","ListBucketInventoryConfigurationsCommand").f(void 0,qz).ser(b7).de(dH).build(){}class tte extends Ee.classBuilder().ep({..._e,Bucket:{type:"contextParams",name:"Bucket"}}).m(function(t,n,r,s){return[Ce(r,this.serialize,this.deserialize),ve(r,t.getEndpointParameterInstructions()),Je(r)]}).s("AmazonS3","ListBucketMetricsConfigurations",{}).n("S3Client","ListBucketMetricsConfigurationsCommand").f(void 0,void 0).ser(g7).de(fH).build(){}class nte extends Ee.classBuilder().ep(_e).m(function(t,n,r,s){return[Ce(r,this.serialize,this.deserialize),ve(r,t.getEndpointParameterInstructions()),Je(r)]}).s("AmazonS3","ListBuckets",{}).n("S3Client","ListBucketsCommand").f(void 0,void 0).ser(p7).de(hH).build(){}class rte extends Ee.classBuilder().ep({..._e,UseS3ExpressControlEndpoint:{type:"staticContextParams",value:!0}}).m(function(t,n,r,s){return[Ce(r,this.serialize,this.deserialize),ve(r,t.getEndpointParameterInstructions()),Je(r)]}).s("AmazonS3","ListDirectoryBuckets",{}).n("S3Client","ListDirectoryBucketsCommand").f(void 0,void 0).ser(y7).de(mH).build(){}class ste extends Ee.classBuilder().ep({..._e,Bucket:{type:"contextParams",name:"Bucket"},Prefix:{type:"contextParams",name:"Prefix"}}).m(function(t,n,r,s){return[Ce(r,this.serialize,this.deserialize),ve(r,t.getEndpointParameterInstructions()),Je(r)]}).s("AmazonS3","ListMultipartUploads",{}).n("S3Client","ListMultipartUploadsCommand").f(void 0,void 0).ser(E7).de(bH).build(){}class ite extends Ee.classBuilder().ep({..._e,Bucket:{type:"contextParams",name:"Bucket"},Prefix:{type:"contextParams",name:"Prefix"}}).m(function(t,n,r,s){return[Ce(r,this.serialize,this.deserialize),ve(r,t.getEndpointParameterInstructions()),Je(r)]}).s("AmazonS3","ListObjects",{}).n("S3Client","ListObjectsCommand").f(void 0,void 0).ser(C7).de(gH).build(){}class ate extends Ee.classBuilder().ep({..._e,Bucket:{type:"contextParams",name:"Bucket"},Prefix:{type:"contextParams",name:"Prefix"}}).m(function(t,n,r,s){return[Ce(r,this.serialize,this.deserialize),ve(r,t.getEndpointParameterInstructions()),Je(r)]}).s("AmazonS3","ListObjectsV2",{}).n("S3Client","ListObjectsV2Command").f(void 0,void 0).ser(x7).de(pH).build(){}class ote extends Ee.classBuilder().ep({..._e,Bucket:{type:"contextParams",name:"Bucket"},Prefix:{type:"contextParams",name:"Prefix"}}).m(function(t,n,r,s){return[Ce(r,this.serialize,this.deserialize),ve(r,t.getEndpointParameterInstructions()),Je(r)]}).s("AmazonS3","ListObjectVersions",{}).n("S3Client","ListObjectVersionsCommand").f(void 0,void 0).ser(v7).de(yH).build(){}class cte extends Ee.classBuilder().ep({..._e,Bucket:{type:"contextParams",name:"Bucket"},Key:{type:"contextParams",name:"Key"}}).m(function(t,n,r,s){return[Ce(r,this.serialize,this.deserialize),ve(r,t.getEndpointParameterInstructions()),Je(r),Qs(r)]}).s("AmazonS3","ListParts",{}).n("S3Client","ListPartsCommand").f(jz,void 0).ser(_7).de(EH).build(){}class lte extends Ee.classBuilder().ep({..._e,UseS3ExpressControlEndpoint:{type:"staticContextParams",value:!0},Bucket:{type:"contextParams",name:"Bucket"}}).m(function(t,n,r,s){return[Ce(r,this.serialize,this.deserialize),ve(r,t.getEndpointParameterInstructions()),rn(r,{requestAlgorithmMember:{httpHeader:"x-amz-sdk-checksum-algorithm",name:"ChecksumAlgorithm"},requestChecksumRequired:!1})]}).s("AmazonS3","PutBucketAccelerateConfiguration",{}).n("S3Client","PutBucketAccelerateConfigurationCommand").f(void 0,void 0).ser(S7).de(CH).build(){}class ute extends Ee.classBuilder().ep({..._e,UseS3ExpressControlEndpoint:{type:"staticContextParams",value:!0},Bucket:{type:"contextParams",name:"Bucket"}}).m(function(t,n,r,s){return[Ce(r,this.serialize,this.deserialize),ve(r,t.getEndpointParameterInstructions()),rn(r,{requestAlgorithmMember:{httpHeader:"x-amz-sdk-checksum-algorithm",name:"ChecksumAlgorithm"},requestChecksumRequired:!0})]}).s("AmazonS3","PutBucketAcl",{}).n("S3Client","PutBucketAclCommand").f(void 0,void 0).ser(T7).de(xH).build(){}class dte extends Ee.classBuilder().ep({..._e,UseS3ExpressControlEndpoint:{type:"staticContextParams",value:!0},Bucket:{type:"contextParams",name:"Bucket"}}).m(function(t,n,r,s){return[Ce(r,this.serialize,this.deserialize),ve(r,t.getEndpointParameterInstructions())]}).s("AmazonS3","PutBucketAnalyticsConfiguration",{}).n("S3Client","PutBucketAnalyticsConfigurationCommand").f(void 0,void 0).ser(w7).de(vH).build(){}class fte extends Ee.classBuilder().ep({..._e,UseS3ExpressControlEndpoint:{type:"staticContextParams",value:!0},Bucket:{type:"contextParams",name:"Bucket"}}).m(function(t,n,r,s){return[Ce(r,this.serialize,this.deserialize),ve(r,t.getEndpointParameterInstructions()),rn(r,{requestAlgorithmMember:{httpHeader:"x-amz-sdk-checksum-algorithm",name:"ChecksumAlgorithm"},requestChecksumRequired:!0})]}).s("AmazonS3","PutBucketCors",{}).n("S3Client","PutBucketCorsCommand").f(void 0,void 0).ser(A7).de(_H).build(){}class hte extends Ee.classBuilder().ep({..._e,UseS3ExpressControlEndpoint:{type:"staticContextParams",value:!0},Bucket:{type:"contextParams",name:"Bucket"}}).m(function(t,n,r,s){return[Ce(r,this.serialize,this.deserialize),ve(r,t.getEndpointParameterInstructions()),rn(r,{requestAlgorithmMember:{httpHeader:"x-amz-sdk-checksum-algorithm",name:"ChecksumAlgorithm"},requestChecksumRequired:!0})]}).s("AmazonS3","PutBucketEncryption",{}).n("S3Client","PutBucketEncryptionCommand").f(Wz,void 0).ser(k7).de(SH).build(){}class mte extends Ee.classBuilder().ep({..._e,UseS3ExpressControlEndpoint:{type:"staticContextParams",value:!0},Bucket:{type:"contextParams",name:"Bucket"}}).m(function(t,n,r,s){return[Ce(r,this.serialize,this.deserialize),ve(r,t.getEndpointParameterInstructions())]}).s("AmazonS3","PutBucketIntelligentTieringConfiguration",{}).n("S3Client","PutBucketIntelligentTieringConfigurationCommand").f(void 0,void 0).ser(I7).de(TH).build(){}class bte extends Ee.classBuilder().ep({..._e,UseS3ExpressControlEndpoint:{type:"staticContextParams",value:!0},Bucket:{type:"contextParams",name:"Bucket"}}).m(function(t,n,r,s){return[Ce(r,this.serialize,this.deserialize),ve(r,t.getEndpointParameterInstructions())]}).s("AmazonS3","PutBucketInventoryConfiguration",{}).n("S3Client","PutBucketInventoryConfigurationCommand").f(Gz,void 0).ser(R7).de(wH).build(){}class gte extends Ee.classBuilder().ep({..._e,UseS3ExpressControlEndpoint:{type:"staticContextParams",value:!0},Bucket:{type:"contextParams",name:"Bucket"}}).m(function(t,n,r,s){return[Ce(r,this.serialize,this.deserialize),ve(r,t.getEndpointParameterInstructions()),rn(r,{requestAlgorithmMember:{httpHeader:"x-amz-sdk-checksum-algorithm",name:"ChecksumAlgorithm"},requestChecksumRequired:!0}),Je(r)]}).s("AmazonS3","PutBucketLifecycleConfiguration",{}).n("S3Client","PutBucketLifecycleConfigurationCommand").f(void 0,void 0).ser(B7).de(AH).build(){}class pte extends Ee.classBuilder().ep({..._e,UseS3ExpressControlEndpoint:{type:"staticContextParams",value:!0},Bucket:{type:"contextParams",name:"Bucket"}}).m(function(t,n,r,s){return[Ce(r,this.serialize,this.deserialize),ve(r,t.getEndpointParameterInstructions()),rn(r,{requestAlgorithmMember:{httpHeader:"x-amz-sdk-checksum-algorithm",name:"ChecksumAlgorithm"},requestChecksumRequired:!0})]}).s("AmazonS3","PutBucketLogging",{}).n("S3Client","PutBucketLoggingCommand").f(void 0,void 0).ser(P7).de(kH).build(){}class yte extends Ee.classBuilder().ep({..._e,UseS3ExpressControlEndpoint:{type:"staticContextParams",value:!0},Bucket:{type:"contextParams",name:"Bucket"}}).m(function(t,n,r,s){return[Ce(r,this.serialize,this.deserialize),ve(r,t.getEndpointParameterInstructions())]}).s("AmazonS3","PutBucketMetricsConfiguration",{}).n("S3Client","PutBucketMetricsConfigurationCommand").f(void 0,void 0).ser(N7).de(IH).build(){}class Ete extends Ee.classBuilder().ep({..._e,UseS3ExpressControlEndpoint:{type:"staticContextParams",value:!0},Bucket:{type:"contextParams",name:"Bucket"}}).m(function(t,n,r,s){return[Ce(r,this.serialize,this.deserialize),ve(r,t.getEndpointParameterInstructions())]}).s("AmazonS3","PutBucketNotificationConfiguration",{}).n("S3Client","PutBucketNotificationConfigurationCommand").f(void 0,void 0).ser(O7).de(RH).build(){}class Cte extends Ee.classBuilder().ep({..._e,UseS3ExpressControlEndpoint:{type:"staticContextParams",value:!0},Bucket:{type:"contextParams",name:"Bucket"}}).m(function(t,n,r,s){return[Ce(r,this.serialize,this.deserialize),ve(r,t.getEndpointParameterInstructions()),rn(r,{requestAlgorithmMember:{httpHeader:"x-amz-sdk-checksum-algorithm",name:"ChecksumAlgorithm"},requestChecksumRequired:!0})]}).s("AmazonS3","PutBucketOwnershipControls",{}).n("S3Client","PutBucketOwnershipControlsCommand").f(void 0,void 0).ser(D7).de(BH).build(){}class xte extends Ee.classBuilder().ep({..._e,UseS3ExpressControlEndpoint:{type:"staticContextParams",value:!0},Bucket:{type:"contextParams",name:"Bucket"}}).m(function(t,n,r,s){return[Ce(r,this.serialize,this.deserialize),ve(r,t.getEndpointParameterInstructions()),rn(r,{requestAlgorithmMember:{httpHeader:"x-amz-sdk-checksum-algorithm",name:"ChecksumAlgorithm"},requestChecksumRequired:!0})]}).s("AmazonS3","PutBucketPolicy",{}).n("S3Client","PutBucketPolicyCommand").f(void 0,void 0).ser(L7).de(PH).build(){}class vte extends Ee.classBuilder().ep({..._e,UseS3ExpressControlEndpoint:{type:"staticContextParams",value:!0},Bucket:{type:"contextParams",name:"Bucket"}}).m(function(t,n,r,s){return[Ce(r,this.serialize,this.deserialize),ve(r,t.getEndpointParameterInstructions()),rn(r,{requestAlgorithmMember:{httpHeader:"x-amz-sdk-checksum-algorithm",name:"ChecksumAlgorithm"},requestChecksumRequired:!0})]}).s("AmazonS3","PutBucketReplication",{}).n("S3Client","PutBucketReplicationCommand").f(void 0,void 0).ser(M7).de(NH).build(){}class _te extends Ee.classBuilder().ep({..._e,UseS3ExpressControlEndpoint:{type:"staticContextParams",value:!0},Bucket:{type:"contextParams",name:"Bucket"}}).m(function(t,n,r,s){return[Ce(r,this.serialize,this.deserialize),ve(r,t.getEndpointParameterInstructions()),rn(r,{requestAlgorithmMember:{httpHeader:"x-amz-sdk-checksum-algorithm",name:"ChecksumAlgorithm"},requestChecksumRequired:!0})]}).s("AmazonS3","PutBucketRequestPayment",{}).n("S3Client","PutBucketRequestPaymentCommand").f(void 0,void 0).ser(F7).de(OH).build(){}class Ste extends Ee.classBuilder().ep({..._e,UseS3ExpressControlEndpoint:{type:"staticContextParams",value:!0},Bucket:{type:"contextParams",name:"Bucket"}}).m(function(t,n,r,s){return[Ce(r,this.serialize,this.deserialize),ve(r,t.getEndpointParameterInstructions()),rn(r,{requestAlgorithmMember:{httpHeader:"x-amz-sdk-checksum-algorithm",name:"ChecksumAlgorithm"},requestChecksumRequired:!0})]}).s("AmazonS3","PutBucketTagging",{}).n("S3Client","PutBucketTaggingCommand").f(void 0,void 0).ser(z7).de(DH).build(){}class Tte extends Ee.classBuilder().ep({..._e,UseS3ExpressControlEndpoint:{type:"staticContextParams",value:!0},Bucket:{type:"contextParams",name:"Bucket"}}).m(function(t,n,r,s){return[Ce(r,this.serialize,this.deserialize),ve(r,t.getEndpointParameterInstructions()),rn(r,{requestAlgorithmMember:{httpHeader:"x-amz-sdk-checksum-algorithm",name:"ChecksumAlgorithm"},requestChecksumRequired:!0})]}).s("AmazonS3","PutBucketVersioning",{}).n("S3Client","PutBucketVersioningCommand").f(void 0,void 0).ser(U7).de(LH).build(){}class wte extends Ee.classBuilder().ep({..._e,UseS3ExpressControlEndpoint:{type:"staticContextParams",value:!0},Bucket:{type:"contextParams",name:"Bucket"}}).m(function(t,n,r,s){return[Ce(r,this.serialize,this.deserialize),ve(r,t.getEndpointParameterInstructions()),rn(r,{requestAlgorithmMember:{httpHeader:"x-amz-sdk-checksum-algorithm",name:"ChecksumAlgorithm"},requestChecksumRequired:!0})]}).s("AmazonS3","PutBucketWebsite",{}).n("S3Client","PutBucketWebsiteCommand").f(void 0,void 0).ser($7).de(MH).build(){}class Ate extends Ee.classBuilder().ep({..._e,Bucket:{type:"contextParams",name:"Bucket"},Key:{type:"contextParams",name:"Key"}}).m(function(t,n,r,s){return[Ce(r,this.serialize,this.deserialize),ve(r,t.getEndpointParameterInstructions()),rn(r,{requestAlgorithmMember:{httpHeader:"x-amz-sdk-checksum-algorithm",name:"ChecksumAlgorithm"},requestChecksumRequired:!0}),Je(r)]}).s("AmazonS3","PutObjectAcl",{}).n("S3Client","PutObjectAclCommand").f(void 0,void 0).ser(q7).de(zH).build(){}class kte extends Ee.classBuilder().ep({..._e,Bucket:{type:"contextParams",name:"Bucket"},Key:{type:"contextParams",name:"Key"}}).m(function(t,n,r,s){return[Ce(r,this.serialize,this.deserialize),ve(r,t.getEndpointParameterInstructions()),rn(r,{requestAlgorithmMember:{httpHeader:"x-amz-sdk-checksum-algorithm",name:"ChecksumAlgorithm"},requestChecksumRequired:!1}),WM(),Je(r),Qs(r)]}).s("AmazonS3","PutObject",{}).n("S3Client","PutObjectCommand").f(Kz,Vz).ser(H7).de(FH).build(){}class Ite extends Ee.classBuilder().ep({..._e,Bucket:{type:"contextParams",name:"Bucket"}}).m(function(t,n,r,s){return[Ce(r,this.serialize,this.deserialize),ve(r,t.getEndpointParameterInstructions()),rn(r,{requestAlgorithmMember:{httpHeader:"x-amz-sdk-checksum-algorithm",name:"ChecksumAlgorithm"},requestChecksumRequired:!0}),Je(r)]}).s("AmazonS3","PutObjectLegalHold",{}).n("S3Client","PutObjectLegalHoldCommand").f(void 0,void 0).ser(j7).de(UH).build(){}class Rte extends Ee.classBuilder().ep({..._e,Bucket:{type:"contextParams",name:"Bucket"}}).m(function(t,n,r,s){return[Ce(r,this.serialize,this.deserialize),ve(r,t.getEndpointParameterInstructions()),rn(r,{requestAlgorithmMember:{httpHeader:"x-amz-sdk-checksum-algorithm",name:"ChecksumAlgorithm"},requestChecksumRequired:!0}),Je(r)]}).s("AmazonS3","PutObjectLockConfiguration",{}).n("S3Client","PutObjectLockConfigurationCommand").f(void 0,void 0).ser(W7).de($H).build(){}class Bte extends Ee.classBuilder().ep({..._e,Bucket:{type:"contextParams",name:"Bucket"}}).m(function(t,n,r,s){return[Ce(r,this.serialize,this.deserialize),ve(r,t.getEndpointParameterInstructions()),rn(r,{requestAlgorithmMember:{httpHeader:"x-amz-sdk-checksum-algorithm",name:"ChecksumAlgorithm"},requestChecksumRequired:!0}),Je(r)]}).s("AmazonS3","PutObjectRetention",{}).n("S3Client","PutObjectRetentionCommand").f(void 0,void 0).ser(G7).de(HH).build(){}class Pte extends Ee.classBuilder().ep({..._e,Bucket:{type:"contextParams",name:"Bucket"}}).m(function(t,n,r,s){return[Ce(r,this.serialize,this.deserialize),ve(r,t.getEndpointParameterInstructions()),rn(r,{requestAlgorithmMember:{httpHeader:"x-amz-sdk-checksum-algorithm",name:"ChecksumAlgorithm"},requestChecksumRequired:!0}),Je(r)]}).s("AmazonS3","PutObjectTagging",{}).n("S3Client","PutObjectTaggingCommand").f(void 0,void 0).ser(V7).de(qH).build(){}class Nte extends Ee.classBuilder().ep({..._e,UseS3ExpressControlEndpoint:{type:"staticContextParams",value:!0},Bucket:{type:"contextParams",name:"Bucket"}}).m(function(t,n,r,s){return[Ce(r,this.serialize,this.deserialize),ve(r,t.getEndpointParameterInstructions()),rn(r,{requestAlgorithmMember:{httpHeader:"x-amz-sdk-checksum-algorithm",name:"ChecksumAlgorithm"},requestChecksumRequired:!0})]}).s("AmazonS3","PutPublicAccessBlock",{}).n("S3Client","PutPublicAccessBlockCommand").f(void 0,void 0).ser(K7).de(jH).build(){}class Ote extends Ee.classBuilder().ep({..._e,Bucket:{type:"contextParams",name:"Bucket"},Key:{type:"contextParams",name:"Key"}}).m(function(t,n,r,s){return[Ce(r,this.serialize,this.deserialize),ve(r,t.getEndpointParameterInstructions()),Je(r)]}).s("AmazonS3","RenameObject",{}).n("S3Client","RenameObjectCommand").f(void 0,void 0).ser(Y7).de(WH).build(){}class Dte extends Ee.classBuilder().ep({..._e,Bucket:{type:"contextParams",name:"Bucket"}}).m(function(t,n,r,s){return[Ce(r,this.serialize,this.deserialize),ve(r,t.getEndpointParameterInstructions()),rn(r,{requestAlgorithmMember:{httpHeader:"x-amz-sdk-checksum-algorithm",name:"ChecksumAlgorithm"},requestChecksumRequired:!1}),Je(r)]}).s("AmazonS3","RestoreObject",{}).n("S3Client","RestoreObjectCommand").f(Jz,void 0).ser(X7).de(GH).build(){}class Lte extends Ee.classBuilder().ep({..._e,Bucket:{type:"contextParams",name:"Bucket"}}).m(function(t,n,r,s){return[Ce(r,this.serialize,this.deserialize),ve(r,t.getEndpointParameterInstructions()),Je(r),Qs(r)]}).s("AmazonS3","SelectObjectContent",{eventStream:{output:!0}}).n("S3Client","SelectObjectContentCommand").f(tU,eU).ser(Q7).de(VH).build(){}class Mte extends Ee.classBuilder().ep({..._e,UseS3ExpressControlEndpoint:{type:"staticContextParams",value:!0},Bucket:{type:"contextParams",name:"Bucket"}}).m(function(t,n,r,s){return[Ce(r,this.serialize,this.deserialize),ve(r,t.getEndpointParameterInstructions()),rn(r,{requestAlgorithmMember:{httpHeader:"x-amz-sdk-checksum-algorithm",name:"ChecksumAlgorithm"},requestChecksumRequired:!0})]}).s("AmazonS3","UpdateBucketMetadataInventoryTableConfiguration",{}).n("S3Client","UpdateBucketMetadataInventoryTableConfigurationCommand").f(void 0,void 0).ser(Z7).de(KH).build(){}class Fte extends Ee.classBuilder().ep({..._e,UseS3ExpressControlEndpoint:{type:"staticContextParams",value:!0},Bucket:{type:"contextParams",name:"Bucket"}}).m(function(t,n,r,s){return[Ce(r,this.serialize,this.deserialize),ve(r,t.getEndpointParameterInstructions()),rn(r,{requestAlgorithmMember:{httpHeader:"x-amz-sdk-checksum-algorithm",name:"ChecksumAlgorithm"},requestChecksumRequired:!0})]}).s("AmazonS3","UpdateBucketMetadataJournalTableConfiguration",{}).n("S3Client","UpdateBucketMetadataJournalTableConfigurationCommand").f(void 0,void 0).ser(J7).de(YH).build(){}class zte extends Ee.classBuilder().ep({..._e,Bucket:{type:"contextParams",name:"Bucket"},Key:{type:"contextParams",name:"Key"}}).m(function(t,n,r,s){return[Ce(r,this.serialize,this.deserialize),ve(r,t.getEndpointParameterInstructions()),rn(r,{requestAlgorithmMember:{httpHeader:"x-amz-sdk-checksum-algorithm",name:"ChecksumAlgorithm"},requestChecksumRequired:!1}),Je(r),Qs(r)]}).s("AmazonS3","UploadPart",{}).n("S3Client","UploadPartCommand").f(rU,nU).ser(e$).de(XH).build(){}class Ute extends Ee.classBuilder().ep({..._e,DisableS3ExpressSessionAuth:{type:"staticContextParams",value:!0},Bucket:{type:"contextParams",name:"Bucket"}}).m(function(t,n,r,s){return[Ce(r,this.serialize,this.deserialize),ve(r,t.getEndpointParameterInstructions()),Je(r),Qs(r)]}).s("AmazonS3","UploadPartCopy",{}).n("S3Client","UploadPartCopyCommand").f(iU,sU).ser(t$).de(QH).build(){}class $te extends Ee.classBuilder().ep({..._e,UseObjectLambdaEndpoint:{type:"staticContextParams",value:!0}}).m(function(t,n,r,s){return[Ce(r,this.serialize,this.deserialize),ve(r,t.getEndpointParameterInstructions())]}).s("AmazonS3","WriteGetObjectResponse",{}).n("S3Client","WriteGetObjectResponseCommand").f(aU,void 0).ser(n$).de(ZH).build(){}const Hte={AbortMultipartUploadCommand:$J,CompleteMultipartUploadCommand:WJ,CopyObjectCommand:GJ,CreateBucketCommand:XJ,CreateBucketMetadataConfigurationCommand:QJ,CreateBucketMetadataTableConfigurationCommand:ZJ,CreateMultipartUploadCommand:JJ,CreateSessionCommand:a2,DeleteBucketCommand:tee,DeleteBucketAnalyticsConfigurationCommand:eee,DeleteBucketCorsCommand:nee,DeleteBucketEncryptionCommand:ree,DeleteBucketIntelligentTieringConfigurationCommand:see,DeleteBucketInventoryConfigurationCommand:iee,DeleteBucketLifecycleCommand:aee,DeleteBucketMetadataConfigurationCommand:oee,DeleteBucketMetadataTableConfigurationCommand:cee,DeleteBucketMetricsConfigurationCommand:lee,DeleteBucketOwnershipControlsCommand:uee,DeleteBucketPolicyCommand:dee,DeleteBucketReplicationCommand:fee,DeleteBucketTaggingCommand:hee,DeleteBucketWebsiteCommand:mee,DeleteObjectCommand:bee,DeleteObjectsCommand:gee,DeleteObjectTaggingCommand:pee,DeletePublicAccessBlockCommand:yee,GetBucketAccelerateConfigurationCommand:Eee,GetBucketAclCommand:Cee,GetBucketAnalyticsConfigurationCommand:xee,GetBucketCorsCommand:vee,GetBucketEncryptionCommand:_ee,GetBucketIntelligentTieringConfigurationCommand:See,GetBucketInventoryConfigurationCommand:Tee,GetBucketLifecycleConfigurationCommand:wee,GetBucketLocationCommand:Aee,GetBucketLoggingCommand:kee,GetBucketMetadataConfigurationCommand:Iee,GetBucketMetadataTableConfigurationCommand:Ree,GetBucketMetricsConfigurationCommand:Bee,GetBucketNotificationConfigurationCommand:Pee,GetBucketOwnershipControlsCommand:Nee,GetBucketPolicyCommand:Oee,GetBucketPolicyStatusCommand:Dee,GetBucketReplicationCommand:Lee,GetBucketRequestPaymentCommand:Mee,GetBucketTaggingCommand:Fee,GetBucketVersioningCommand:zee,GetBucketWebsiteCommand:Uee,GetObjectCommand:qee,GetObjectAclCommand:$ee,GetObjectAttributesCommand:Hee,GetObjectLegalHoldCommand:jee,GetObjectLockConfigurationCommand:Wee,GetObjectRetentionCommand:Gee,GetObjectTaggingCommand:Vee,GetObjectTorrentCommand:Kee,GetPublicAccessBlockCommand:Yee,HeadBucketCommand:Xee,HeadObjectCommand:Qee,ListBucketAnalyticsConfigurationsCommand:Zee,ListBucketIntelligentTieringConfigurationsCommand:Jee,ListBucketInventoryConfigurationsCommand:ete,ListBucketMetricsConfigurationsCommand:tte,ListBucketsCommand:nte,ListDirectoryBucketsCommand:rte,ListMultipartUploadsCommand:ste,ListObjectsCommand:ite,ListObjectsV2Command:ate,ListObjectVersionsCommand:ote,ListPartsCommand:cte,PutBucketAccelerateConfigurationCommand:lte,PutBucketAclCommand:ute,PutBucketAnalyticsConfigurationCommand:dte,PutBucketCorsCommand:fte,PutBucketEncryptionCommand:hte,PutBucketIntelligentTieringConfigurationCommand:mte,PutBucketInventoryConfigurationCommand:bte,PutBucketLifecycleConfigurationCommand:gte,PutBucketLoggingCommand:pte,PutBucketMetricsConfigurationCommand:yte,PutBucketNotificationConfigurationCommand:Ete,PutBucketOwnershipControlsCommand:Cte,PutBucketPolicyCommand:xte,PutBucketReplicationCommand:vte,PutBucketRequestPaymentCommand:_te,PutBucketTaggingCommand:Ste,PutBucketVersioningCommand:Tte,PutBucketWebsiteCommand:wte,PutObjectCommand:kte,PutObjectAclCommand:Ate,PutObjectLegalHoldCommand:Ite,PutObjectLockConfigurationCommand:Rte,PutObjectRetentionCommand:Bte,PutObjectTaggingCommand:Pte,PutPublicAccessBlockCommand:Nte,RenameObjectCommand:Ote,RestoreObjectCommand:Dte,SelectObjectContentCommand:Lte,UpdateBucketMetadataInventoryTableConfigurationCommand:Mte,UpdateBucketMetadataJournalTableConfigurationCommand:Fte,UploadPartCommand:zte,UploadPartCopyCommand:Ute,WriteGetObjectResponseCommand:$te};class h2 extends UJ{}Q8(Hte,h2);const qte={build:function([e,t],n){return n(e,{...t,onFileTree:async(r,s)=>{t?.onFileTree&&await t.onFileTree(r,s);for await(const[i,a]of jte(r,e))s.log(`上传: ${i} ${a}`);s.log("s3 上传完毕")}})}},jte=async function*(e,t){const n=new h2({region:t.s3.region,endpoint:t.s3.endpoint,credentials:{accessKeyId:t.s3.accessKeyId,secretAccessKey:t.s3.secretAccessKey}}),r=new TextEncoder;for(const[s,i]of Object.entries(e)){let a;typeof i=="string"?a=r.encode(i):a=new Uint8Array(i);const o=await n.putObject({Bucket:t.s3.bucket,Key:(t.s3.pathPrefix+s).replace(/\/\//g,"/"),Body:a});yield[s,o.ETag]}};async function Wte(e,t,n,r){const s=(await Promise.all([...t.refs.values()].map(Xx))).filter(i=>i);return`<?xml version="1.0" encoding="UTF-8"?>
1586
- <rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
1587
- <channel>
1588
- <title>${n.sitemap.title}</title>
1589
- <link>${n.sitemap.siteLink}</link>
1590
- <description>${n.sitemap.description}</description>
1591
- <atom:link href="${n.sitemap.sitePrefix}${e}" rel="self" type="application/rss+xml"/>
1592
- <lastBuildDate>${new Date().toISOString()}</lastBuildDate>
1593
- ${(await Promise.all(s.map(async i=>`<item>
1594
- <title>${i?.Properties?.title}</title>
1595
- <link>${n.sitemap.sitePrefix}${i?.ID?await r(i?.ID)+".html":""}</link>
1596
- <description></description>
1597
- <pubDate>${i?.Properties?.updated?new Date(i.Properties.updated.replace(/(\d{4})(\d{2})(\d{2})(\d{2})(\d{2})(\d{2})/,"$1/$2/$3 $4:$5:$6")).toISOString():""}</pubDate>
1598
- </item>`))).join(`
1599
- `)}
1600
- </channel>
1601
- </rss>`}function Gte(e,t){return`<?xml version="1.0" encoding="UTF-8"?>
1602
- <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
1603
- ${e.map(r=>{let s="";const i=r.ial.match(/updated=\"(\d+)\"/)?.[1]??r.created;return i&&(s=`
1604
- <lastmod>${i.slice(0,4)}-${i.slice(4,6)}-${i.slice(6,8)}</lastmod>`),`<url>
1605
- <loc>${t.sitePrefix}${r.hpath}.html</loc>${s}
1606
- </url>
1607
- `}).join("")}
1608
- </urlset>`}function m2(e){if(!e||e.length<14)return new Date().toISOString();try{const t=e.slice(0,14);if(t.length===14){const n=t.slice(0,4),r=t.slice(4,6),s=t.slice(6,8),i=t.slice(8,10),a=t.slice(10,12),o=t.slice(12,14);return`${n}-${r}-${s}T${i}:${a}:${o}Z`}}catch{}return new Date().toISOString()}function b2(e){if(!e)return new Date().toISOString();try{if(e.length===14){const n=e.slice(0,4),r=e.slice(4,6),s=e.slice(6,8),i=e.slice(8,10),a=e.slice(10,12),o=e.slice(12,14);return`${n}-${r}-${s}T${i}:${a}:${o}Z`}const t=parseInt(e);return isNaN(t)?new Date(e).toISOString():new Date(t).toISOString()}catch{return new Date().toISOString()}}class Vte{stopWords=new Set(["的","了","在","是","我","有","和","就","不","人","都","一","个","上","也","很","到","说","要","去","你","会","着","没有","看","好","自己","这","那","现在","可以","但是","还是","因为","什么","如果","所以","对于","关于","通过","进行","基于","以及","或者","而且","然后","只是","已经","正在","应该","能够","需要","可能","一定","这样","那样","怎么","为什么","哪里","哪个","多少","几个","什么","怎么","如何","为什么","the","a","an","and","or","but","in","on","at","to","for","of","with","by","is","are","was","were","be","been","being","have","has","had","do","does","did","will","would","could","should","may","might","must","can","this","that","these","those","i","you","he","she","it","we","they","me","him","her","us","them","my","your","his","its","our","their","not","no","yes","so","if","when","where","how","why","what","which","who","whom","there","here"]);calculateTermFrequency(t){const n=this.tokenize(t),r=new Map,s=n.length;for(const i of n)r.set(i,(r.get(i)||0)+1);for(const[i,a]of r)r.set(i,a/s);return r}tokenize(t){const n=[],r=t.replace(/<[^>]*>/g," ").replace(/&[^;]+;/g," ").replace(/\s+/g," ").trim(),s=r.match(/[a-zA-Z]{3,}/g)||[];n.push(...s.map(c=>c.toLowerCase()).filter(c=>!this.stopWords.has(c)));const i=r.match(/[a-z]+[A-Z][a-zA-Z0-9]*|[A-Z][a-z0-9]+[A-Z][a-zA-Z0-9]*/g)||[];n.push(...i.map(c=>c.toLowerCase()));const a=this.extractChineseTokens(r);return n.push(...a),n.filter(c=>!(c.length<2||["div","span","class","id","type","data","href","src","alt","title","style","width","height","rootid","endid","nodedocument","ezcqbj","cktc","quot"].includes(c.toLowerCase())||c.match(/^[a-f0-9]{6,}$/)||/[\u4e00-\u9fa5]/.test(c)&&c.length<2))}extractChineseTokens(t){const n=[],r=t.replace(/[^\u4e00-\u9fa5\s]/g," "),s=[/[\u4e00-\u9fa5]{4}/g,/[\u4e00-\u9fa5]{3}/g,/[\u4e00-\u9fa5]{2}/g];for(const i of s){const a=r.match(i)||[];for(const o of a)!this.stopWords.has(o)&&this.isMeaningfulChineseWord(o)&&n.push(o.toLowerCase())}return n}isMeaningfulChineseWord(t){const n=[/^的.*$/,/^.*的$/,/^了.*$/,/^.*了$/,/^在.*$/,/^.*在$/,/^是.*$/,/^.*是$/,/^我.*$/,/^.*我$/,/^有.*$/,/^.*有$/,/^和.*$/,/^.*和$/,/^就.*$/,/^.*就$/,/^不.*$/,/^.*不$/,/^人.*$/,/^.*人$/];for(const r of n)if(r.test(t))return!1;return!/(.)\1{2,}/.test(t)}calculateInverseDocumentFrequency(t){return new Set(["技术","开发","代码","系统","数据","功能","应用","实现","方法","问题","time","data","system","code","development","application","function","method","problem","solution"]).has(t.toLowerCase())?Math.log(1e3/500):Math.log(1e3/10)}extractKeywords(t,n=10){const r=this.calculateTermFrequency(t),s=new Map;for(const[i,a]of r){const o=this.calculateInverseDocumentFrequency(i),c=a*o;let l=1;t.toLowerCase().includes(i.toLowerCase())&&(t.match(new RegExp(`^${i}`,"mi"))||t.match(new RegExp(`${i}$`,"mi")))&&(l*=1.5),i.length>=2&&i.length<=6&&(l*=1.2),s.set(i,c*l)}return Array.from(s.entries()).sort((i,a)=>a[1]-i[1]).slice(0,n).map(([i])=>i)}}function g2(e,t=160){const n=e.replace(/<[^>]*>/g," ").replace(/\s+/g," ").trim();if(n.length<=t)return n;const r=n.substring(0,t),s=Math.max(r.lastIndexOf("。"),r.lastIndexOf("!"),r.lastIndexOf("?"),r.lastIndexOf("."),r.lastIndexOf("!"),r.lastIndexOf("?"));return s>t*.7?r.substring(0,s+1):r+"..."}function p2(e){return new Vte().extractKeywords(e,8)}function Kte(e,t,n,r){const s=e.Properties?.title||"未命名文档",i=g2(r),a=p2(r),o=m2(e.ID),c=b2(e.Properties?.updated),l={"@context":"https://schema.org","@type":"Article",headline:s,description:i,keywords:a.join(", "),datePublished:o,dateModified:c,author:{"@type":"Person",name:t.sitemap?.title||"崮生",url:t.sitemap?.siteLink||""},publisher:{"@type":"Organization",name:t.sitemap?.title||"OceanPress",logo:{"@type":"ImageObject",url:`${t.sitemap?.siteLink||""}/assets/logo.png`}},mainEntityOfPage:{"@type":"WebPage","@id":n},image:e.Properties?.["title-img"]?{"@type":"ImageObject",url:`${t.sitemap?.siteLink||""}${e.Properties["title-img"].replace("assets","/assets")}`,width:1200,height:630}:void 0,wordCount:r.replace(/<[^>]*>/g,"").length,articleSection:"技术文档",inLanguage:"zh-CN"};return`<script type="application/ld+json">
1609
- ${JSON.stringify(l,null,2)}
1610
- <\/script>`}function Yte(e){const n={"@context":"https://schema.org","@type":"BreadcrumbList",itemListElement:e.map((r,s)=>({"@type":"ListItem",position:s+1,name:r.name,item:r.url}))};return`<script type="application/ld+json">
1611
- ${JSON.stringify(n,null,2)}
1612
- <\/script>`}function Xte(e,t,n,r){const s=e.Properties?.title||"未命名文档",i=g2(r),a=p2(r);let o="";if(o+=` <meta name="description" content="${i.replace(/"/g,"&quot;")}" />
1613
- `,o+=` <meta name="keywords" content="${a.join(", ")}" />
1614
- `,o+=` <meta name="author" content="${t.sitemap?.title||"崮生"}" />
1615
- `,o+=` <meta property="og:title" content="${s.replace(/"/g,"&quot;")}" />
1616
- `,o+=` <meta property="og:description" content="${i.replace(/"/g,"&quot;")}" />
1617
- `,o+=` <meta property="og:type" content="article" />
1618
- `,o+=` <meta property="og:url" content="${n}" />
1619
- `,o+=` <meta property="og:site_name" content="${t.sitemap?.title||"OceanPress"}" />
1620
- `,e.Properties?.["title-img"]){const d=`${t.sitemap?.siteLink||""}${e.Properties["title-img"].replace("assets","/assets")}`;o+=` <meta property="og:image" content="${d}" />
1621
- `,o+=` <meta property="og:image:width" content="1200" />
1622
- `,o+=` <meta property="og:image:height" content="630" />
1623
- `}const c=m2(e.ID),l=b2(e.Properties?.updated);if(o+=` <meta property="article:published_time" content="${c}" />
1624
- `,o+=` <meta property="article:modified_time" content="${l}" />
1625
- `,o+=` <meta name="twitter:card" content="summary_large_image" />
1626
- `,o+=` <meta name="twitter:title" content="${s.replace(/"/g,"&quot;")}" />
1627
- `,o+=` <meta name="twitter:description" content="${i.replace(/"/g,"&quot;")}" />
1628
- `,e.Properties?.["title-img"]){const d=`${t.sitemap?.siteLink||""}${e.Properties["title-img"].replace("assets","/assets")}`;o+=` <meta name="twitter:image" content="${d}" />
1629
- `}return o+=` <meta name="robots" content="index, follow" />
1630
- `,o+=` <link rel="canonical" href="${n}" />
1631
- `,o}function Dx(e){const t=Xte(e.doc,e.config,e.pageUrl,e.content);let n=Kte(e.doc,e.config,e.pageUrl,e.content);return e.breadcrumbs&&e.breadcrumbs.length>0&&(n+=`
1632
- `+Yte(e.breadcrumbs)),{metaTags:t,jsonLd:n}}async function Qte(e,t){let n="";if(t?.siyuanPrefix)n=t.siyuanPrefix;else for(let s=0;s<e.level;s++)n+="../";const r="2.10.5";return`<!DOCTYPE html>
1633
- <html lang="zh_CN" data-theme-mode="light" data-light-theme="daylight" data-dark-theme="midnight">
1634
- <head>
1635
- ${t?.embedCode?.head??""}
1636
- <meta charset="utf-8" />
1637
- <meta http-equiv="X-UA-Compatible" content="IE=edge" />
1638
- <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0"/>
1639
- <meta name="apple-mobile-web-app-capable" content="yes" />
1640
- <meta name="mobile-web-app-capable" content="yes" />
1641
- <meta name="apple-mobile-web-app-status-bar-style" content="black" />
1642
- ${e.seoData?Dx({doc:e.seoData.doc,config:e.seoData.config,pageUrl:e.seoData.pageUrl,content:e.htmlContent,breadcrumbs:e.seoData.breadcrumbs}).metaTags:""}
1643
- <link rel="stylesheet" type="text/css" id="baseStyle" href="${n}stage/build/export/base.css?${r}"/>
1644
- <script>
1645
- // 更好的主题切换方案
1646
- (function() {
1647
- // 主题配置
1648
- const themes = {
1649
- light: {
1650
- name: 'daylight',
1651
- mode: 'light',
1652
- icon: '☀️'
1653
- },
1654
- dark: {
1655
- name: 'midnight',
1656
- mode: 'dark',
1657
- icon: '🌙'
1658
- },
1659
- auto: {
1660
- name: 'auto',
1661
- mode: 'auto',
1662
- icon: '🌗',
1663
- getTheme: function() {
1664
- const currentHour = new Date().getHours();
1665
- return currentHour >= 18 || currentHour < 6 ? 'dark' : 'light';
1666
- }
1667
- }
1668
- };
1669
-
1670
- // 获取当前主题设置
1671
- function getCurrentTheme() {
1672
- // 优先级:localStorage > 系统偏好 > auto
1673
- const savedTheme = localStorage.getItem('oceanpress-theme');
1674
- if (savedTheme && themes[savedTheme]) {
1675
- return savedTheme;
1676
- }
1677
-
1678
- // 检测系统偏好
1679
- if (window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches) {
1680
- return 'dark';
1681
- }
1682
- if (window.matchMedia && window.matchMedia('(prefers-color-scheme: light)').matches) {
1683
- return 'light';
1684
- }
1685
-
1686
- return 'auto';
1687
- }
1688
-
1689
- // 应用主题
1690
- function applyTheme(themeName) {
1691
- const theme = themes[themeName] || themes.auto;
1692
- const actualTheme = themeName === 'auto' ? theme.getTheme() : themeName;
1693
- const themeConfig = themes[actualTheme];
1694
-
1695
- // 设置 CSS 变量
1696
- document.documentElement.setAttribute('data-theme-mode', themeConfig.mode);
1697
- document.documentElement.setAttribute('data-light-theme', 'daylight');
1698
- document.documentElement.setAttribute('data-dark-theme', 'midnight');
1699
-
1700
- // 加载对应的 CSS
1701
- const themeStyle = document.getElementById('themeDefaultStyle');
1702
- if (themeStyle) {
1703
- themeStyle.href = '${n}appearance/themes/' + themeConfig.name + '/theme.css?${r}';
1704
- }
1705
-
1706
- // 更新主题切换按钮
1707
- updateThemeToggle(themeName);
1708
-
1709
- // 保存到 localStorage
1710
- localStorage.setItem('oceanpress-theme', themeName);
1711
-
1712
- // 触发自定义事件
1713
- window.dispatchEvent(new CustomEvent('oceanpress-theme-changed', {
1714
- detail: { theme: themeName, actualTheme: actualTheme }
1715
- }));
1716
- }
1717
-
1718
- // 创建主题切换按钮
1719
- function createThemeToggle() {
1720
- const toggle = document.createElement('div');
1721
- toggle.id = 'oceanpress-theme-toggle';
1722
- toggle.innerHTML = '<span class="theme-icon">🌗</span><span class="theme-text">自动</span>';
1723
- toggle.addEventListener('click', toggleTheme);
1724
- document.body.appendChild(toggle);
1725
- }
1726
-
1727
- // 更新主题切换按钮
1728
- function updateThemeToggle(themeName) {
1729
- const toggle = document.getElementById('oceanpress-theme-toggle');
1730
- if (!toggle) return;
1731
-
1732
- const theme = themes[themeName] || themes.auto;
1733
- toggle.innerHTML = '<span class="theme-icon">' + theme.icon + '</span><span class="theme-text">' +
1734
- (themeName === 'auto' ? '自动' : (themeName === 'dark' ? '深色' : '浅色')) + '</span>';
1735
- }
1736
-
1737
- // 切换主题
1738
- function toggleTheme() {
1739
- const currentTheme = getCurrentTheme();
1740
- const themeOrder = ['auto', 'light', 'dark'];
1741
- const currentIndex = themeOrder.indexOf(currentTheme);
1742
- const nextIndex = (currentIndex + 1) % themeOrder.length;
1743
- const nextTheme = themeOrder[nextIndex];
1744
-
1745
- applyTheme(nextTheme);
1746
- }
1747
-
1748
- // 监听系统主题变化
1749
- if (window.matchMedia) {
1750
- window.matchMedia('(prefers-color-scheme: dark)').addEventListener('change', (e) => {
1751
- const currentTheme = getCurrentTheme();
1752
- if (currentTheme === 'auto') {
1753
- applyTheme('auto');
1754
- }
1755
- });
1756
- }
1757
-
1758
- // 监听自定义主题变化事件(用于侧边栏等组件)
1759
- window.addEventListener('oceanpress-theme-changed', function(e) {
1760
- // 这里可以添加其他组件需要响应主题变化的逻辑
1761
- console.log('Theme changed to:', e.detail);
1762
- });
1763
-
1764
- // 初始化主题
1765
- function initTheme() {
1766
- const themeName = getCurrentTheme();
1767
- const theme = themes[themeName] || themes.auto;
1768
- const actualTheme = themeName === 'auto' ? theme.getTheme() : themeName;
1769
- const themeConfig = themes[actualTheme];
1770
-
1771
- // 立即设置基础主题,避免闪烁
1772
- document.documentElement.setAttribute('data-theme-mode', themeConfig.mode);
1773
- document.documentElement.setAttribute('data-light-theme', 'daylight');
1774
- document.documentElement.setAttribute('data-dark-theme', 'midnight');
1775
-
1776
- // 创建主题切换按钮
1777
- createThemeToggle();
1778
-
1779
- // 应用完整主题
1780
- applyTheme(themeName);
1781
- }
1782
-
1783
- // 页面加载完成后初始化
1784
- if (document.readyState === 'loading') {
1785
- document.addEventListener('DOMContentLoaded', initTheme);
1786
- } else {
1787
- initTheme();
1788
- }
1789
- })();
1790
- <\/script>
1791
- <link rel="stylesheet" type="text/css" href="${n}appearance/oceanpress.css"/>
1792
- <title>${e.title}</title>
1793
- ${e.seoData?Dx({doc:e.seoData.doc,config:e.seoData.config,pageUrl:e.seoData.pageUrl,content:e.htmlContent,breadcrumbs:e.seoData.breadcrumbs}).jsonLd:""}
1794
- </head>
1795
- <body>
1796
- ${t?.embedCode?.beforeBody??""}
1797
- ${e.htmlContent}
1798
- <script src="${n}appearance/icons/material/icon.js?${r}"><\/script>
1799
- <script src="${n}stage/build/export/protyle-method.js?${r}"><\/script>
1800
- <script src="${n}stage/protyle/js/lute/lute.min.js?${r}"><\/script>
1801
- <script>
1802
- window.siyuan = {
1803
- config: {
1804
- appearance: {
1805
- mode: document.documentElement.getAttribute('data-theme-mode') === 'dark' ? 1 : 0,//主题 明亮=0 暗黑=1
1806
- codeBlockThemeDark: "base16/dracula",
1807
- codeBlockThemeLight: "github",
1808
- },
1809
- editor: {
1810
- codeLineWrap: true,
1811
- codeLigatures: false,
1812
- plantUMLServePath: "https://www.plantuml.com/plantuml/svg/~1",
1813
- codeSyntaxHighlightLineNum: true,
1814
- katexMacros: JSON.stringify({}),
1815
- },
1816
- },
1817
- languages: { copy: "复制" },
1818
- };
1819
- const cdn = "${n}stage/protyle";
1820
- const previewElement = document.getElementById("preview");
1821
-
1822
- Protyle.highlightRender(previewElement, cdn);
1823
- Protyle.mathRender(previewElement, cdn, false);
1824
- Protyle.mermaidRender(previewElement, cdn);
1825
- Protyle.flowchartRender(previewElement, cdn);
1826
- Protyle.graphvizRender(previewElement, cdn);
1827
- Protyle.chartRender(previewElement, cdn);
1828
- Protyle.mindmapRender(previewElement, cdn);
1829
- Protyle.abcRender(previewElement, cdn);
1830
- Protyle.htmlRender(previewElement);
1831
- Protyle.plantumlRender(previewElement, cdn);
1832
- document.querySelectorAll(".protyle-action__copy").forEach((item) => {
1833
- item.addEventListener("click", (event) => {
1834
- navigator.clipboard.writeText(
1835
- item.parentElement.nextElementSibling.textContent.trimEnd(),
1836
- );
1837
- event.preventDefault();
1838
- event.stopPropagation();
1839
- });
1840
- });
1841
- <\/script>
1842
- ${t?.embedCode?.afterBody??""}
1843
- </body>
1844
- </html>`}function Zte(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos")}function Lx(e){return e.replace(/&amp;/g,"&").replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&quot;/g,'"').replace(/&apos;/g,"'").replace(/&#(\d+);/g,(t,n)=>String.fromCharCode(Number(n)))}const y2="/__oceanpress/docTree.js";function Jte(){return qc(function*(){const e=yield*Sf,t=yield*Qr(()=>Qx(e.notebook.id)),n=yield*Qr(()=>Gi.file_getFile({path:`/data/${e.notebook.id}/.siyuan/sort.json`}).then(a=>{const c=new TextDecoder("utf-8").decode(a);return JSON.parse(c)})),r=t.map(a=>({id:a.id,hpath:a.hpath,title:a.content,sort:n[a.id]})),s=tne(r);return`
1845
- // OceanPress DocTree - 动态加载的文档树
1846
- (function() {
1847
- 'use strict';
1848
-
1849
- // 文档树数据
1850
- const docTreeData = ${ene(s)};
1851
-
1852
- // 渲染函数
1853
- function renderDocTree(containerId, options = {}) {
1854
- const container = document.getElementById(containerId);
1855
- if (!container) {
1856
- console.error('Container not found:', containerId);
1857
- return;
1858
- }
1859
-
1860
- const currentPath = options.currentPath || window.location.pathname.replace(/\\.html$/, '');
1861
-
1862
- // 生成 HTML
1863
- const html = generateHTMLTree(docTreeData, currentPath);
1864
- container.innerHTML = html;
1865
-
1866
- // 加载样式
1867
- loadStyles();
1868
-
1869
- // 初始化交互
1870
- initInteractions(container, currentPath);
1871
- }
1872
-
1873
- // 生成 HTML 树
1874
- function generateHTMLTree(nodes, currentPath, level = 0) {
1875
- let html = '';
1876
- for (const node of nodes) {
1877
- const isCurrent = node.hpath === currentPath;
1878
- const isActive = isCurrent || (currentPath && node.hpath && currentPath.startsWith(node.hpath));
1879
-
1880
- if (node.children && node.children.length > 0) {
1881
- // 有子节点时使用 details/summary
1882
- const isExpanded = isActive ? 'open' : '';
1883
- html += \`
1884
- <details class="folder" \${isExpanded}>
1885
- <summary class="folder-summary">
1886
- <a href="\${node.hpath}.html" class="folder-link \${isCurrent ? 'current' : ''}" target="_top">\${node.title}</a>
1887
- </summary>
1888
- <div class="folder-children" style="padding:0 0 0 10px;">
1889
- \${generateHTMLTree(node.children, currentPath, level + 1)}
1890
- </div>
1891
- </details>
1892
- \`;
1893
- } else {
1894
- // 没有子节点的普通项目
1895
- html += \`
1896
- <div class="file \${isCurrent ? 'current' : ''}">
1897
- <a href="\${node.hpath}.html" class="file-link" target="_top">\${node.title}</a>
1898
- </div>
1899
- \`;
1900
- }
1901
- }
1902
- return html;
1903
- }
1904
-
1905
- // 加载样式
1906
- function loadStyles() {
1907
- if (document.getElementById('oceanpress-doctree-styles')) return;
1908
-
1909
- const link = document.createElement('link');
1910
- link.id = 'oceanpress-doctree-styles';
1911
- link.rel = 'stylesheet';
1912
- link.type = 'text/css';
1913
- link.href = '${kd.cdn.siyuanPrefix}appearance/docTree.css';
1914
- document.head.appendChild(link);
1915
- }
1916
-
1917
- // 初始化交互
1918
- function initInteractions(container, currentPath) {
1919
- // 为当前页面项添加高亮样式
1920
- const currentItems = container.querySelectorAll('.current');
1921
- currentItems.forEach(item => {
1922
- // 使用 CSS 变量而不是硬编码颜色
1923
- item.style.backgroundColor = 'var(--oceanpress-sidebar-current-bg)';
1924
- item.style.borderLeft = '3px solid var(--oceanpress-sidebar-current-border)';
1925
- item.style.paddingLeft = '7px';
1926
- });
1927
-
1928
- // 自动滚动到当前页面
1929
- const firstCurrent = container.querySelector('.current');
1930
- if (firstCurrent) {
1931
- setTimeout(() => {
1932
- firstCurrent.scrollIntoView({ behavior: 'smooth', block: 'center' });
1933
- }, 100);
1934
- }
1935
-
1936
- // 监听主题变化事件,更新高亮样式
1937
- window.addEventListener('oceanpress-theme-changed', function(e) {
1938
- currentItems.forEach(item => {
1939
- item.style.backgroundColor = 'var(--oceanpress-sidebar-current-bg)';
1940
- item.style.borderLeft = '3px solid var(--oceanpress-sidebar-current-border)';
1941
- });
1942
- });
1943
- }
1944
-
1945
- // 暴露到全局
1946
- window.OceanPressDocTree = {
1947
- render: renderDocTree,
1948
- data: docTreeData
1949
- };
1950
-
1951
- // 自动渲染(如果容器存在)
1952
- if (document.readyState === 'loading') {
1953
- document.addEventListener('DOMContentLoaded', () => {
1954
- if (document.getElementById('oceanpress-doctree')) {
1955
- renderDocTree('oceanpress-doctree');
1956
- }
1957
- });
1958
- } else {
1959
- if (document.getElementById('oceanpress-doctree')) {
1960
- renderDocTree('oceanpress-doctree');
1961
- }
1962
- }
1963
- })();
1964
- `})}function ene(e){return JSON.stringify(e,null,2)}function tne(e){const t=[],n={};e.sort((s,i)=>s.hpath.localeCompare(i.hpath));for(const s of e){const i=s.hpath.split("/").filter(c=>c!=="");let a="",o;for(let c=0;c<i.length-1;c++)a+="/"+i[c],n[a]||(n[a]={id:"virtual_"+a,hpath:a,title:i[c],sort:void 0,children:[]},o?(o.children=o.children||[],o.children.push(n[a])):t.push(n[a])),o=n[a];o?(o.children=o.children||[],o.children.push(s)):t.push(s),n[s.hpath]=s}function r(s){return s.map(i=>(i.children&&(i.children=r(i.children)),i)).sort((i,a)=>i.sort!==void 0&&a.sort!==void 0?i.sort-a.sort:i.sort!==void 0?-1:a.sort!==void 0?1:(i.title||"").localeCompare(a.title||""))}return r(t)}const lh=(e,t)=>qc(function*(){if(e===void 0)return"";const n=yield*C2,r=t??n,s={...r,nodeStack:[...r.nodeStack]};if(r.nodeStack.find(i=>i.ID&&e.ID&&i.ID===e.ID))return du("循环引用",[...r.nodeStack,e].map(i=>i.ID));if(s[e.Type]===void 0)return du(`没有找到对应的渲染方法 ${e.Type} ${s.nodeStack[0].Properties?.title}`);{if(s.nodeStack.push(e),e.ID&&r.nodeStack[0]?.ID){const a=yield*hu,o=e.ID,c=yield*Qr(()=>a.getDocByChildID(o)),l=r.nodeStack[0];c?.ID!==void 0&&c.ID!==l.ID&&l.ID&&s.refs.add(c.ID)}const i=yield*Qr(()=>s[e.Type](e));return s.nodeStack.pop(),i}});function du(e,...t){return Vl(e,...t),`<div class="ft__smaller ft__secondary b3-form__space--small">${e}</div>`}function E2(e){const t=atob(e.CodeBlockInfo??e.Children?.find(n=>n.Type==="NodeCodeBlockFenceInfoMarker")?.CodeBlockInfo??"");return[["mindmap","mermaid","echarts","abc","graphviz","flowchart","plantuml"].includes(t),t]}const Ad=String.raw;function Jn(e,t={}){t?.subtype_class===void 0&&(t.subtype_class=(()=>{const s=e.ListData?.Typ===1?"o":e.ListData?.Typ===3?"t":"u";if(e.Type==="NodeDocument")return"";if(e.Type==="NodeHeading")return`h${e.HeadingLevel}`;if(e.Type==="NodeList")return[s,"list"];if(e.Type==="NodeListItem")return[s,"li"];if(e.Type==="NodeParagraph")return["","p"];if(e.Type==="NodeImage")return["","img"];if(e.Type==="NodeBlockquote")return["","bq"];if(e.Type==="NodeSuperBlock")return["","sb"];if(e.Type==="NodeCodeBlock"){const[i,a]=E2(e);return i?[a,"render-node"]:["","code-block"]}else return e.Type==="NodeTable"?["","table"]:e.Type==="NodeThematicBreak"?["","hr"]:e.Type==="NodeMathBlock"?["math","render-node"]:e.Type==="NodeIFrame"?["","iframe"]:e.Type==="NodeVideo"?["","iframe"]:""})());const n={};function r(s,i){n[s]=i}return e.ID&&(r("id",e.ID),r("data-node-id",e.ID)),e?.TextMarkType==="tag"?r("data-type",e.TextMarkType??""):r("data-type",t?.data_type??e.Type),e.Properties?.updated&&r("updated",e.Properties.updated),t?.subtype_class&&(typeof t.subtype_class=="string"?(r("data-subtype",t.subtype_class),r("class",t.subtype_class)):(t.subtype_class[0]!==""&&r("data-subtype",t.subtype_class[0]),t.subtype_class[1]!==""&&r("class",t.subtype_class[1]))),e.Properties&&Object.entries(e.Properties).forEach(([s,i])=>r(s,i)),e.ListData?.Marker&&r("data-marker",atob(e.ListData.Marker)),e.ListData?.Typ===3&&e.Children?.find(s=>s.Type==="NodeTaskListItemMarker")?.TaskListItemChecked&&(n.class=(n.class??"")+" protyle-task--done "),delete n.fold,e.Type==="NodeDocument"&&delete n.title,Object.entries(n).map(([s,i])=>`${s}="${i}"`).join(" ")}const ds=async e=>"",Im=async e=>e.Data??"",C2=qc(function*(){return{...yield*nne,nodeStack:[],refs:new Set}}),nne=qc(function*(){const e=yield*hu,t=yield*Sf,n=Gx().pipe(ec(hu,e),ec(Sf,t));async function r(a,o){const l=(a?.Children??[]).map(f=>Tf(Rm(lh(f,o),n)));return(await Promise.all(l)).join("")}async function s(a,o){return Tf(Rm(lh(a,o),n))}return{nodeStack:[],refs:new Set,async getTopPathPrefix(){const a=this.nodeStack[0];let o=".";if(a.Type==="NodeDocument"&&a.ID){const c=await e.getDocPathBySY(a);if(c){const l=c.split("/").length-3;for(let d=0;d<l;d++)o+="/.."}return o}else return console.log("未定义顶层元素非 NodeDocument 时的处理方式",a),""},async NodeDocument(a){const o=this.nodeStack.length===1;let c=`<div style="min-height: 150px;" ${Jn(a)}>
1965
- ${o&&a.Properties?.["title-img"]?`<div class="protyle-background__img" style="margin-bottom: 30px;position: relative;height: 16vh;${a.Properties?.["title-img"].replace(/assets/,await this.getTopPathPrefix()+"/assets")}"/>${a.Properties?.icon?`<div style="position: absolute;bottom:-10px;left:15px;height: 80px;width: 80px;transition: var(--b3-transition);cursor: pointer;font-size: 68px;line-height: 80px;text-align: center;font-family: var(--b3-font-family-emoji);margin-right: 16px;"> &#x${a.Properties?.icon} </div>`:""}</div>`:""}
1966
- ${o?`<h1 ${Jn(a)} data-type="NodeHeading" class="h1">${a.Properties?.title}</h1>`:""}
1967
- ${await r(a,this)}</div>`;return o&&(c=`<div class="protyle-wysiwyg protyle-wysiwyg--attr" id="preview">
1968
- <div id="oceanpress-left-sidebar">
1969
- ${t.sidebarCode.leftCode}
1970
- ${t.sidebarCode.enableDocTree?`<div id="oceanpress-doctree"></div>
1971
- <script src="${await this.getTopPathPrefix()}${y2}" async><\/script>`:""}
1972
- </div>
1973
- ${c}
1974
- <div id="oceanpress-right-sidebar">${t.sidebarCode.rightCode}</div>
1975
- </div>`),c},async NodeHeading(a){const o=`h${a.HeadingLevel}`;let c=`<${o} ${Jn(a)}>${await r(a,this)}</${o}>`;if(this.nodeStack[this.nodeStack.length-2]?.Type==="NodeBlockQueryEmbedScript"){let d=!1;for(const f of a.Parent.Children??[])f===a?d=!0:f!==a&&f.Type==="NodeHeading"?d=!1:d&&(c+=`
1976
- `+await s(f,this))}return c},NodeText:Im,async NodeList(a){return Ad`<div ${Jn(a)}>${await r(a,this)}</div>`},async NodeListItem(a){return Ad`<div ${await Jn(a)}>
1977
- <div class="protyle-action">
1978
- ${a.ListData?.Typ===1?atob(a.ListData?.Marker??""):a.ListData?.Typ===3?`<svg><use xlink:href="#${a.Children?.find(o=>o.Type==="NodeTaskListItemMarker")?.TaskListItemChecked?"iconCheck":"iconUncheck"}"></use></svg>`:'<svg><use xlink:href="#iconDot"></use></svg>'}
1979
- </div>
1980
- ${await r(a,this)}
1981
- </div>`},NodeTaskListItemMarker:ds,async NodeParagraph(a){return`<div ${Jn(a)}><div spellcheck="false">${await r(a,this)}</div></div>`},async NodeTextMark(a){const o=this;let c="";for(const d of(a.TextMarkType?.split(" ")??[]).reverse())c===""?c=await l(a,d,a.TextMarkTextContent??""):c=await l(a,d,c);return c;async function l(d,f,m){if(f==="inline-math")return`<span data-type="inline-math" data-subtype="math" data-content="${d.TextMarkInlineMathContent}" class="render-node"></span>`;if(f==="inline-memo")return`${m}<sup>(${d.TextMarkInlineMemoContent})</sup>`;if(f==="block-ref"){let h="";if(d.TextMarkBlockRefID){const b=await e.getDocByChildID(d.TextMarkBlockRefID);b?.ID?(h=`${await o.getTopPathPrefix()}${await e.getHPathByID_Node(b)}.html#${d.TextMarkBlockRefID}`,o.refs.add(b.ID)):Vl(`未查找到${d.ID}所指向的文档节点 ${d.TextMarkBlockRefID}`)}else Vl(`${d.ID} 块引用没有设定 ref id`);return`<span data-type="${d.TextMarkType}" data-subtype="${d.TextMarkBlockRefSubtype}" data-id="${d.TextMarkBlockRefID}"><a href="${h}">${m}</a></span>`}else if(f==="a"){let h=d.TextMarkAHref;return h?.startsWith("assets/")&&(h=`${await o.getTopPathPrefix()}/${h}`),`<a href="${h}">${m}</a>`}else return"strong em u s mark sup sub kbd tag code strong code text".includes(f??"")?`<span ${Jn(d,{data_type:f})}>${m}</span>`:du(`没有找到对应的渲染器 ${d.TextMarkType} ${o.nodeStack[0].Properties?.title}`)}},async NodeImage(a){let o="";const c=a.Children?.filter(f=>f.Type==="NodeLinkDest");c?.length===1?o=await s(c[0],this):c?.length&&c.length>1&&Vl("NodeImage 存在多个 LinkDest",a);let l="";const d=a.Children?.filter(f=>f.Type==="NodeLinkTitle");return d?.length===1?l=await s(d[0],this):d?.length&&d.length>1&&Vl("NodeImage 存在多个 LinkTitle",a),`<span ${await Jn(a)} style="${a.Properties?.["parent-style"]??""}">
1982
- <img
1983
- src="${o}"
1984
- data-src="${o}"
1985
- title="${l}"
1986
- style="${a.Properties?.style??""}"
1987
- loading="lazy"
1988
- />
1989
- <span class="protyle-action__title">${l}</span></span>`},async NodeLinkDest(a){return/^(?:[a-z]+:)?\/\/|^(?:\/)/.test(a.Data??"")?a.Data??"":`${await this.getTopPathPrefix()}/${a.Data}`},NodeLinkTitle:Im,NodeKramdownSpanIAL:ds,async NodeSuperBlock(a){return`<div ${Jn(a)} data-sb-layout="${Mx(a,"NodeSuperBlockLayoutMarker")}">${await r(a,this)}</div>`},NodeSuperBlockOpenMarker:ds,NodeSuperBlockCloseMarker:ds,NodeSuperBlockLayoutMarker:ds,async NodeBlockQueryEmbed(a){return`<div ${Jn(a)} data-type="NodeBlockquote" class="bq"> ${await r(a,this)} </div>`},NodeOpenBrace:ds,NodeCloseBrace:ds,async NodeBlockQueryEmbedScript(a){const o=a.Data;if(!o)return console.log("no sql",a),Ad`<pre>${o}</pre>`;let c="";const l=await Gi.query_sql({stmt:Lx(o).replace(/_esc_newline_/g,`
1990
- `)}).catch(d=>{throw new Error(`sql error: ${d.message}
1991
- rawSql:${o}
1992
- unescapingSql:${Lx(o)}`)});for(const d of l){const f=await e.getNodeByID(d.id);if(f===void 0)return du("未找到此块,可能为跨笔记引用",d.id,o);c+=await s(f,this)}return c},async NodeBlockquote(a){return Ad`<div ${Jn(a)}>${await r(a,this)}</div>`},NodeBlockquoteMarker:ds,NodeCodeBlock:async function(a){const[o,c]=E2(a);return o?`<div ${Jn(a)} data-content="${Zte(a.Children?.find(l=>l.Type==="NodeCodeBlockCode")?.Data??"")}">
1993
- <div spin="1"></div>
1994
- <div class="protyle-attr" contenteditable="false"></div>
1995
- </div>`:`<div ${Jn(a)}>
1996
- <div class="protyle-action">
1997
- <span class="protyle-action--first protyle-action__language">${await s(a.Children?.find(l=>l.Type==="NodeCodeBlockFenceInfoMarker"),this)}</span>
1998
- <span class="fn__flex-1"></span><span class="protyle-icon protyle-icon--only protyle-action__copy"><svg><use xlink:href="#iconCopy"></use></svg></span>
1999
- </div>
2000
- ${await s(a.Children?.find(l=>l.Type==="NodeCodeBlockCode"),this)}
2001
- </div>`},NodeCodeBlockFenceInfoMarker:async a=>atob(a.CodeBlockInfo??""),NodeCodeBlockCode:async a=>`<div class="hljs" spellcheck="false">${a.Data}</div>`,NodeCodeBlockFenceOpenMarker:ds,NodeCodeBlockFenceCloseMarker:ds,async NodeTable(a){return`<div ${Jn(a)}>
2002
- <div>
2003
- <table spellcheck="false">
2004
- <colgroup>
2005
- ${a.TableAligns?.map(()=>"<col />").join("")}
2006
- </colgroup>
2007
- ${await s(a.Children?.find(o=>o.Type==="NodeTableHead"),this)}
2008
- <tbody>
2009
- ${(await Promise.all(a.Children?.filter(o=>o.Type==="NodeTableRow").map(o=>s(o,this))??[])).join(`
2010
- `)}
2011
- </tbody>
2012
- </table>
2013
- </div>
2014
- </div>`},async NodeTableHead(a){return`<${a.Data}>${await r(a,this)}</${a.Data}>`},async NodeTableRow(a){return`<tr>${await r(a,this)}</tr>`},async NodeTableCell(a){return`<td>${await r(a,this)}</td>`},NodeHTMLBlock:async a=>`<div ${Jn(a)}>${a.Data}</div>`,NodeThematicBreak:async a=>`<div ${Jn(a)}><div></div></div>`,NodeMathBlock:async a=>`<div ${Jn(a)} data-content="${Mx(a,"NodeMathBlockContent")}">
2015
- <div spin="1"></div>
2016
- </div>`,NodeMathBlockOpenMarker:ds,NodeMathBlockCloseMarker:ds,async NodeIFrame(a){return` <div ${Jn(a)}>
2017
- <div class="iframe-content">
2018
- ${a.Data?.replace(/src="assets\//,`src="${await this.getTopPathPrefix()}/assets/`)}
2019
- </div>
2020
- </div>`},async NodeVideo(a){return await this.NodeIFrame(a)},async NodeAudio(a){return await this.NodeIFrame(a)},NodeHeadingC8hMarker:ds,async NodeSoftBreak(a){return"​"},async NodeBr(a){return`<${a.Data}>`},async NodeWidget(a){return`<div ${Jn(a)}><img src="${await this.getTopPathPrefix()}/assets/widget/${a.ID}.jpg"/></div>`},async NodeBackslash(a){return a.Data===void 0||a.Data==="span"?`${await r(a,this)}`:du(`未定义的 NodeBackslash 处理 ${a.Data}`,this.nodeStack[0].Properties?.title)},NodeBackslashContent:Im}});function Mx(e,t){return e.Children?.find(n=>n.Type===t)?.Data}function Vl(...e){console.warn(`
2021
- `,...e)}function rne(e,t){const n=[];t.sitemap?.siteLink&&n.push({name:t.sitemap?.title||"首页",url:t.sitemap.siteLink});const r=e.split("/").filter(i=>i.length>0);let s="";for(const i of r)s+="/"+i,n.push({name:i,url:`${t.sitemap?.siteLink||""}${s}.html`});return n}function sne(e,t){return qc(function*(){const n=yield*hu,r=yield*Vx,s=t?.renderHtmlFn??lh,i=e.notebook,a={},o=ine();let c=0,l=0;function d(p){return l+=c,C=>{c=C*p,r.percentage((l+c)*100)}}r.log(`=== 开始编译 ${i.name} ===`);let f=d(.4);const m=yield*Qr(()=>Qx(i.id));function h(p){const C=e.__skipBuilds__[p.id]?.refs??[];for(const w of C){const _=m.find(A=>A.id===w)?.hash,S=e.__skipBuilds__[w]?.hash;if(_===void 0||S===void 0)return!1;if(_===S)continue;return!1}return!0}r.log("=== 查询文档级block完成 ===");let b=0;yield*Qr(()=>Promise.all(m.map(async p=>{const C=await Yx(pg(p));a[p.hpath]={sy:C,docBlock:p},b++,f(b/m.length)})));const g={};f=d(.4);const y=jh.version!==e.OceanPress.version?(r.log(`配置文件版本号[${e.OceanPress.version}]与OceanPress版本[${jh.version}]不一致,将进行文档全量编译`),!1):e.enableIncrementalCompilation_doc;if(r.log("=== 开始渲染文档 ==="),yield*_A(Object.entries(a),([p,{sy:C,docBlock:w}])=>qc(function*(){if(e.enableIncrementalCompilation&&y&&e.__skipBuilds__[w.id]?.hash===w.hash&&h(w))return"/** skip */";const _=yield*C2;try{const S=p.split("/").length-2,A=yield*s(C,_),v=e.sitemap.siteLink?`${e.sitemap.siteLink}${p}.html`:`${p}.html`;if(g[p+".html"]=yield*Qr(()=>Qte({title:C.Properties?.title||"",htmlContent:A,level:S,seoData:{doc:C,config:e,pageUrl:v,breadcrumbs:rne(p,e)}},{...kd.cdn,embedCode:e.embedCode})),e.sitemap.rss&&p.endsWith(".rss.xml")){const O=p;g[O]=yield*Qr(()=>Wte(O,_,e,n.getHPathByID_Node)),r.log(`渲染 rss.xml:${O} 完毕`)}e.enableIncrementalCompilation&&e.enableIncrementalCompilation_doc&&o.add(w.id,{hash:w.hash}),o.add(w.id,{refs:[..._.refs.values()]}),r.log(`渲染完毕:${p}`)}catch(S){r.log(`${p} 渲染失败:${S}`),console.log(S)}return f(b/m.length),`渲染完毕:${p}`})),r.log("=== 渲染文档完成 ==="),r.log("=== 开始生成 sitemap.xml ==="),e.sitemap.enable&&(g["sitemap.xml"]=Gte(m,e.sitemap)),e.excludeAssetsCopy===!1){r.log("=== 开始复制资源文件 ===");const p=yield*Qr(()=>Gi.query_sql({stmt:`SELECT * from assets
2022
- WHERE box = '${i.id}'
2023
- limit 150000 OFFSET 0`}));yield*Qr(()=>Promise.all(p.map(async _=>{e.enableIncrementalCompilation&&e.__skipBuilds__[_.id]?.hash===_.hash||(g[_.path]=await Gi.get_assets({path:_.path}),e.enableIncrementalCompilation&&o.add(_.id,{hash:_.hash}))}))),r.log("=== 开始复制挂件资源文件 ===");const C=yield*Qr(()=>Gi.query_sql({stmt:`
2024
- SELECT *
2025
- from blocks
2026
- WHERE box = '${i.id}'
2027
- AND type = 'widget'
2028
- limit 150000 OFFSET 0
2029
- `})),w=(yield*Qr(()=>Promise.all(C.map(async _=>await Xx(_.id))))).filter(_=>_?.Properties?.["custom-oceanpress-widget-update"]).map(async _=>{if(!_||!_?.ID)return;const S=_?.Properties?.["custom-oceanpress-widget-update"];if(!(e.enableIncrementalCompilation&&e.__skipBuilds__[_.ID]?.updated===S)){const A=_.ID;g[`assets/widget/${A}.jpg`]=await Gi.file_getFile({path:`data/storage/oceanpress/widget_img/${A}.jpg`}),e.enableIncrementalCompilation&&o.add(A,{updated:S})}});yield*Qr(()=>Promise.all(w))}return e.sidebarCode.enableDocTree&&(r.log("=== 开始生成文档树 ==="),g[y2]=yield*Jte(),r.log("=== 文档树生成完成 ===")),t?.onFileTree&&t.onFileTree(g,r),e.compressedZip&&(r.log("=== 开始生成压缩包 ==="),yield*Qr(()=>K4(g,{withoutZip:kd.withoutPublicZip,publicZip:kd.cdn.publicZip}))),e.OceanPress.version=jh.version,o.write(),r.percentage(100),r.log("编译完毕"),{fileTree:g}})}function ine(){const e={};return{add(t,n){e[t]===void 0&&(e[t]={}),_y(e[t],n)},write(){_y(nt.value.__skipBuilds__,e)}}}class ane{constructor(t){this._funMap=t;const n=this;this.fun=new Proxy({},{get(r,s,i){const a=Reflect.get(n._funMap,s,i);return typeof a=="function"?(...o)=>n.callFn(s,a)(...o):a}})}plugins=[];registerPlugin(t){this.plugins.push(t)}removePlugin(t){this.plugins=this.plugins.filter(n=>n!==t)}callFn(t,n){return(...r)=>{const s=new one(n);for(const i of this.plugins){const a=i[t];a&&s.use(a)}return s.runMiddlewareHandel(...r)}}pluginType=0;fun}class one{constructor(t){this.handel=t}middlewares=[];use(t){this.middlewares.push(t)}runMiddlewareHandel(...t){let n=0;const r=(...s)=>{const i=this.middlewares[n];return n++,i===void 0?this.handel.call(this,...s):i(s,r)};return r.call(this,...t)}}class cne{constructor(t){this.config=t,t.meilisearch.enable&&this.pluginCenter.registerPlugin(new h4(t.meilisearch)),t.s3.enable&&this.pluginCenter.registerPlugin(qte),t.oceanPressServer.enable&&this.pluginCenter.registerPlugin(Y4(this.config))}build(){return this.pluginCenter.fun.build(this.config,{renderHtmlFn:this.pluginCenter.fun.build_renderHTML,onFileTree:this.pluginCenter.fun.build_onFileTree})}funMap={build:sne,build_renderHTML:lh,build_onFileTree:(t,n)=>{}};pluginCenter=new ane(this.funMap)}function lne(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!lg(e)}const une=mt({setup(){const e=nR(),t=Me(!1),n=Me(""),r=Fe(()=>Object.entries($o).filter(([c,l])=>c.startsWith("__")?!1:typeof l=="object").map(([c,l])=>({key:c,value:l})));function s(){n.value===""?e.warning("名称不能为空"):n.value in $o?e.warning("不能和已有的配置项重名"):(SA(n.value),t.value=!1)}function i(c){return c.startsWith("__")?(e.warning("名称不能以双下划线开头"),!1):!0}function a(){const c=JSON.stringify($o,null,2),d=new TextEncoder().encode(c),f=new Blob([d],{type:"text/plain;charset=utf-8"}),m=document.createElement("a");m.href=URL.createObjectURL(f),m.download="oceanpress.json",m.click()}async function o(){const c=document.createElement("input");c.type="file",c.click();const d=await(await new Promise(m=>{c.addEventListener("change",()=>{m(c.files[0])})})).text(),f=JSON.parse(d);if(typeof f=="object"){const m=TA(wA(f),Kx,tv);await Tf(m),e.success("导入成功")}}return{showModal:t,name:n,tabs:r,add:s,validateInput:i,downConfig:a,importConfig:o}},render(){let e;return Ne("div",null,[Ne(zR,{value:$o.__current__,"onUpdate:value":t=>$o.__current__=t,type:"card",animated:!0,addable:!0,closable:!0,onAdd:()=>this.showModal=!0,onClose:t=>delete $o[t]},lne(e=this.tabs.map(t=>Ne(DR,{name:t.key,tab:t.key},{default:()=>[t.key]})))?e:{default:()=>[e]}),Ne(Ur,null,null),Ne(fR,{align:"center"},{default:()=>[Ne(Zi,{onClick:this.importConfig},{default:()=>[$t("导入配置文件")],icon:()=>"📂"}),Ne(Zi,{onClick:this.downConfig},{default:()=>[$t("导出配置文件")],icon:()=>"📝"})]}),Ne(tR,{show:this.showModal,"onUpdate:show":t=>this.showModal=t},{default:()=>[Ne(_v,{style:"width: 600px",title:"输入配置名",bordered:!1,size:"huge",role:"dialog","aria-modal":"true"},{default:()=>[Ne(hr,{value:this.name,"onUpdate:value":t=>this.name=t,placeholder:"输入配置名",maxlength:30,"show-count":!0,"clearable:allow-input":this.validateInput},null),Ne("br",null,null),Ne("br",null,null),Ne(Zi,{type:"primary",onClick:()=>this.add(),disabled:!this.validateInput(this.name)},{default:()=>[$t("确认")]}),Ne("br",null,null),$t("不能以双下划线(__)开头、也不能为空、不能和已有的配置项重名")]})]})])}});function dne(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!lg(e)}const fne=mt({props:{notebooks:{type:Array,required:!0}},setup(e){const t=Fe({get:()=>nt.value.notebook.id,set:r=>{Object.assign(nt.value.notebook,e.notebooks.find(s=>s.id===r))}}),n=on(e,"notebooks");return{value:t,notebooks:n}},render(){let e;return Ne(hh,{title:"选择笔记本",description:"选择你需要的笔记本"},{default:()=>[Ne(UI,{value:this.value,"onUpdate:value":t=>this.value=t},dne(e=this.notebooks.map(t=>Ne(LI,{key:t.id,label:t.name,value:t.id},null)))?e:{default:()=>[e]})]})}}),hne=mt({render(){return Ne(hh,{title:"其他配置"},{default:()=>[Ne(kI,null,{default:()=>[Ne(od,{title:"打包选项",name:"1",style:"text-align: start"},{default:()=>[Ne(Fi,{checked:nt.value.compressedZip,"onUpdate:checked":e=>nt.value.compressedZip=e},{default:()=>[$t("打包成 zip(在浏览器端打包完毕后会弹出保存对话窗口)")]}),Ne(Ur,null,null),Ne(Fi,{checked:nt.value.excludeAssetsCopy,"onUpdate:checked":e=>nt.value.excludeAssetsCopy=e},{default:()=>[$t("不复制 assets/ 资源,勾选此选项则需要自行处理资源文件")]}),Ne(Ur,null,null),Ne(Fi,{checked:nt.value.sitemap.enable,"onUpdate:checked":e=>nt.value.sitemap.enable=e},{default:()=>[$t("输出 sitemap.xml 文件")]}),Ne("br",null,null),Ne("h4",null,[$t("路径前缀")]),Ne(hr,{value:nt.value.sitemap.sitePrefix,"onUpdate:value":e=>nt.value.sitemap.sitePrefix=e},null),$t('默认值为 "." 生成路径例如 "./record/思源笔记.html" '),Ne("br",null,null),$t('但 sitemap 并不建议采用相对路径所以应该替换成例如 "https://shenzilong.cn" '),Ne("br",null,null),$t('则会生成 "https://shenzilong.cn/record/思源笔记.html" 这样的绝对路径'),Ne("br",null,null),$t("参见 https://www.sitemaps.org/protocol.html#escaping"),Ne(Ur,null,null),Ne(Fi,{checked:nt.value.enableIncrementalCompilation,"onUpdate:checked":e=>nt.value.enableIncrementalCompilation=e},{default:()=>[$t("开启增量编译,当资源的 hash 值没有变化时不会编译"),Ne("br",null,null),$t("会根据配置文件中的__skipBuilds__字段跳过一些没有变化不需要重新输出的内容"),Ne("br",null,null)]}),Ne("br",null,null),Ne(Fi,{checked:nt.value.enableIncrementalCompilation_doc,"onUpdate:checked":e=>nt.value.enableIncrementalCompilation_doc=e},{default:()=>[$t("增量编译文档,当需要重新全量编译文档时不勾选此项,需要上方选项勾选,此选项才能生效")]}),Ne(Ur,null,null),Ne("h3",null,[$t("head")]),$t("此处的代码将添加至 head 标签顶部"),Ne(hr,{value:nt.value.embedCode.head,"onUpdate:value":e=>nt.value.embedCode.head=e,type:"textarea"},null),Ne("h3",null,[$t("beforeBody")]),$t("此处的代码将添加至 body 标签顶部"),Ne(hr,{value:nt.value.embedCode.beforeBody,"onUpdate:value":e=>nt.value.embedCode.beforeBody=e,type:"textarea"},null),Ne("h3",null,[$t("afterBody")]),$t("此处的代码将添加至 body 标签底部"),Ne(hr,{value:nt.value.embedCode.afterBody,"onUpdate:value":e=>nt.value.embedCode.afterBody=e,type:"textarea"},null)]}),Ne(od,{title:"meilisearch 配置",name:"3"},{default:()=>[Ne(Fi,{checked:nt.value.meilisearch.enable,"onUpdate:checked":e=>nt.value.meilisearch.enable=e},{default:()=>[$t("启用 meilisearch 搜索引擎")]}),Ne("a",{target:"_blank",href:"https://shenzilong.cn/%E6%83%B3%E6%B3%95/%E9%A1%B9%E7%9B%AE/OceanPress_js/%E8%87%AA%E5%BB%BAmeilisearch%E6%90%9C%E7%B4%A2"},[$t("自建meilisearch搜索")]),Ne(Ur,null,null),Ne(hr,{value:nt.value.meilisearch.host,"onUpdate:value":e=>nt.value.meilisearch.host=e,placeholder:"meilisearch.host"},null),Ne(Ur,null,null),Ne(hr,{value:nt.value.meilisearch.apiKey,"onUpdate:value":e=>nt.value.meilisearch.apiKey=e,placeholder:"meilisearch.apiKey"},null),Ne(Ur,null,null),Ne(hr,{value:nt.value.meilisearch.indexName,"onUpdate:value":e=>nt.value.meilisearch.indexName=e,placeholder:"meilisearch.indexName"},null)]}),Ne(od,{title:"部署到 S3",name:"4"},{default:()=>[$t("OceanPress 的运算都是在本地,不会收集密钥,请确保网址是 https 加密的 oceanpress.heartstack.space"),Ne("br",null,null),Ne(Fi,{checked:nt.value.s3.enable,"onUpdate:checked":e=>nt.value.s3.enable=e},{default:()=>[$t("启用 s3")]}),Ne(hr,{value:nt.value.s3.region,"onUpdate:value":e=>nt.value.s3.region=e,placeholder:"s3.region"},null),Ne(Ur,null,null),Ne(hr,{value:nt.value.s3.bucket,"onUpdate:value":e=>nt.value.s3.bucket=e,placeholder:"s3.bucket"},null),Ne(Ur,null,null),Ne(hr,{value:nt.value.s3.pathPrefix,"onUpdate:value":e=>nt.value.s3.pathPrefix=e,placeholder:"s3.pathPrefix"},null),Ne(Ur,null,null),Ne(hr,{value:nt.value.s3.endpoint,"onUpdate:value":e=>nt.value.s3.endpoint=e,placeholder:"s3.endpoint"},null),Ne(Ur,null,null),Ne(hr,{value:nt.value.s3.accessKeyId,"onUpdate:value":e=>nt.value.s3.accessKeyId=e,placeholder:"s3.accessKeyId"},null),Ne(Ur,null,null),Ne(hr,{value:nt.value.s3.secretAccessKey,"onUpdate:value":e=>nt.value.s3.secretAccessKey=e,type:"password",placeholder:"s3.secretAccessKey"},null)]}),Ne(od,{title:"部署到 OceanPress Server",name:"5"},{default:()=>[Ne(Fi,{checked:nt.value.oceanPressServer.enable,"onUpdate:checked":e=>nt.value.oceanPressServer.enable=e},{default:()=>[$t("启用 OceanPress Server")]}),Ne(Ur,null,null),Ne(hr,{value:nt.value.oceanPressServer.apiBase,"onUpdate:value":e=>nt.value.oceanPressServer.apiBase=e,placeholder:"apiBase"},null),Ne(Ur,null,null),Ne(hr,{value:nt.value.oceanPressServer.apiKey,"onUpdate:value":e=>nt.value.oceanPressServer.apiKey=e,placeholder:"apiKey"},null)]})]})]})}}),mne=mt({props:{percentage:{type:Number,default:0},log:{type:String,default:""}},emits:{saveToDisk(e){},generateClick(){},uploadS3(){}},setup(e,t){const n=Fe(()=>"showDirectoryPicker"in globalThis);async function r(){const s=await showDirectoryPicker({mode:"readwrite"});if(!s){console.log("showDirectoryPicker() 未返回有效值");return}t.emit("saveToDisk",s)}return()=>Ne(hh,{title:"开始生成",description:"点击开始生成后请耐心等待,生成完成后会自动弹出下载"},{default:()=>[Ne("div",null,[Ne(Zi,{type:"success",loading:e.percentage>0&&e.percentage<100,onClick:()=>t.emit("generateClick")},{default:()=>[$t("开始生成")]})," ",Ne(Zi,{disabled:!n,type:"success",loading:e.percentage>0&&e.percentage<100,onClick:()=>r()},{default:()=>[$t("保存到本地磁盘")]}),Ne(kR,{type:"line",percentage:e.percentage,"indicator-placement":"inside",style:{marginTop:"12px"}},null),Ne("pre",null,[e.log])])]})}}),_ne=mt({setup(){const e=AA.notebook_lsNotebooks(),t=Fe(()=>{let a=0;return e.value.fulfilled&&(a=2),a=5,a}),n=Me(0),r=Me(!1),s=Me("");async function i(a){r.value=!0,s.value="";const o=new cne(nt.value);a?.dir_ref&&o.pluginCenter.registerPlugin({build_onFileTree([d]){bne(d,a.dir_ref)}});const c=Gx().pipe(ec(hu,ev),ec(Kx,tv),ec(Sf,nt.value),ec(Vx,{log:d=>{s.value+=d+`
2030
- `},percentage:d=>{n.value=d}})),l=Rm(o.build(),c);await Tf(l),r.value=!1,n.value=100}return()=>Ne(fa,null,[Ne(une,null,null),Ne(NR,{vertical:!0,current:t.value,status:"process"},{default:()=>[Ne(hh,{title:"鉴权配置"},{default:()=>[$t("http apiPrefix:"),Ne(hr,{"show-password-on":"mousedown",placeholder:"例如: http:127.0.0.1:6806",value:nt.value.apiPrefix,"onUpdate:value":a=>nt.value.apiPrefix=a},null),$t("authorized:"),Ne(iI,null,{default:()=>[Ne(hr,{type:"password","show-password-on":"mousedown",placeholder:"输入:siyuan-设置-关于-API授权码",value:nt.value.authorized,"onUpdate:value":a=>nt.value.authorized=a},null),Ne(Zi,{type:"primary",ghost:!0,onClick:e.value.reLoad},{default:()=>[$t("确定")]})]})]}),e.value.fulfilled&&Ne(fne,{notebooks:e.value.data.notebooks},null),Ne(hne,null,null),Ne(mne,{percentage:n.value,log:s.value,onGenerateClick:()=>i(),onSaveToDisk:a=>i({dir_ref:a})},null)]})])}});async function bne(e,t){await Promise.all(Object.entries(e).map(async([r,s])=>{await n(t,r,s).catch(i=>{console.log(i,t)})}));async function n(r,s,i){const a=s.split("/");if(a.length>1)for(let l=0;l<a.length-1;l++){const d=a[l];d!==""&&(r=await r.getDirectoryHandle(d,{create:!0}))}const c=await(await r.getFileHandle(a[a.length-1],{create:!0})).createWritable();await c.write(i),await c.close()}}export{_ne as default};