@nocobase/app 2.0.0-alpha.3 → 2.0.0-alpha.30
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.
- package/dist/client/113.736e29a0.async.js +7 -0
- package/dist/client/1145.0351040a.async.js +3 -0
- package/dist/client/1161.0b3b5766.async.js +40 -0
- package/dist/client/1442.be509f94.async.js +5 -0
- package/dist/client/1595.6a6087c3.async.js +44 -0
- package/dist/client/1758.eeeacf43.async.js +5 -0
- package/dist/client/1883.6ee256ab.async.js +17 -0
- package/dist/client/1905.ff0793ff.async.js +12 -0
- package/dist/client/2042.feb4b9ac.async.js +10 -0
- package/dist/client/2097.bb2e7097.async.js +14 -0
- package/dist/client/{2190.90c718a9.async.js → 2190.4f5395e5.async.js} +1 -1
- package/dist/client/2380.900b7a22.async.js +15 -0
- package/dist/client/2612.0865e67e.async.js +19 -0
- package/dist/client/2775.455c3402.async.js +47 -0
- package/dist/client/2936.902710e4.async.js +28 -0
- package/dist/client/3357.be95167c.async.js +28 -0
- package/dist/client/341.fba65e23.async.js +28 -0
- package/dist/client/3451.a9466e73.async.js +24 -0
- package/dist/client/4327.68c0f17b.async.js +16 -0
- package/dist/client/4351.efe05af2.async.js +15 -0
- package/dist/client/4356.feef0eca.async.js +18 -0
- package/dist/client/4666.fb83d11a.async.js +9 -0
- package/dist/client/4727.0f6df8fb.async.js +1 -0
- package/dist/client/4750.b552d2df.async.js +31 -0
- package/dist/client/4841.43cec461.async.js +37 -0
- package/dist/client/4926.58238954.async.js +17 -0
- package/dist/client/5013.b14730ba.async.js +3 -0
- package/dist/client/5501.22d50b3a.async.js +23 -0
- package/dist/client/5505.a71c2922.async.js +2 -0
- package/dist/client/5662.8c643e63.async.js +26 -0
- package/dist/client/5950.179a885e.async.js +4 -0
- package/dist/client/6021.cdefa0d3.async.js +22 -0
- package/dist/client/645.c19a1f59.async.js +55 -0
- package/dist/client/6474.49632e37.async.js +21 -0
- package/dist/client/6534.6ea6468b.async.js +33 -0
- package/dist/client/6747.de538558.async.js +22 -0
- package/dist/client/689.4de33d65.async.js +3 -0
- package/dist/client/6920.497d7e80.async.js +59 -0
- package/dist/client/6939.d7d780b7.async.js +17 -0
- package/dist/client/6996.ae27c9d6.async.js +9 -0
- package/dist/client/703.f2104ec4.async.js +17 -0
- package/dist/client/7087.5646e199.async.js +6 -0
- package/dist/client/7482.3924bcd9.async.js +1 -0
- package/dist/client/7483.546ddcb6.async.js +23 -0
- package/dist/client/7534.0d69e071.async.js +34 -0
- package/dist/client/8183.4c6f7e21.async.js +12 -0
- package/dist/client/8408.c0ef773c.async.js +84 -0
- package/dist/client/8805.819c4f44.async.js +20 -0
- package/dist/client/9017.4ae5c322.async.js +6 -0
- package/dist/client/9042.3d21f631.async.js +45 -0
- package/dist/client/908.0e8c8a54.async.js +14 -0
- package/dist/client/9317.fe6ffa9a.async.js +13 -0
- package/dist/client/935.97d45ffa.async.js +27 -0
- package/dist/client/95.24aa76c4.async.js +6 -0
- package/dist/client/9547.a442df93.async.js +25 -0
- package/dist/client/9801.34b13a74.async.js +9 -0
- package/dist/client/9844.6f484975.async.js +37 -0
- package/dist/client/index.html +1 -1
- package/dist/client/index.html.tpl +1 -1
- package/dist/client/{npm._at_ant-design.0bc226be.async.js → npm._at_ant-design.c2d0554a.async.js} +1 -1
- package/dist/client/npm._at_babel.94b2dd75.async.js +3 -0
- package/dist/client/npm._at_floating-ui.c19fd4ef.async.js +1 -0
- package/dist/client/npm._at_jridgewell.72fd4dd4.async.js +1 -0
- package/dist/client/{npm._at_rc-component.8d2d642c.async.js → npm._at_rc-component.fcc6d966.async.js} +1 -1
- package/dist/client/npm._at_react-spring.2682ca90.async.js +1 -0
- package/dist/client/{npm._at_umijs.47085d01.async.js → npm._at_umijs.f64c1387.async.js} +1 -1
- package/dist/client/npm._at_use-gesture.c2876964.async.js +1 -0
- package/dist/client/npm.acorn.59eb4103.async.js +11 -0
- package/dist/client/npm.ahooks.9a89c2a5.async.js +6 -0
- package/dist/client/npm.antd-mobile-icons.4b133b6b.async.js +1 -0
- package/dist/client/npm.antd-mobile.1a8a8320.async.js +2 -0
- package/dist/client/npm.async-validator.32d9020f.async.js +12 -0
- package/dist/client/{npm.dayjs.772d2a39.async.js → npm.dayjs.549164ec.async.js} +1 -1
- package/dist/client/{npm.highlight.js.c1f693ec.async.js → npm.highlight.js.5db864c8.async.js} +2 -2
- package/dist/client/{npm.htmlparser2.a2f8d64d.async.js → npm.htmlparser2.ee1fb042.async.js} +1 -1
- package/dist/client/npm.liquidjs.7be2e0df.async.js +13 -0
- package/dist/client/{npm.lodash.5dcc1c5e.async.js → npm.lodash.0ff318b3.async.js} +2 -2
- package/dist/client/npm.rc-field-form.6a3cf561.async.js +1 -0
- package/dist/client/npm.rc-util.4aa445e4.async.js +35 -0
- package/dist/client/npm.sucrase.1cb664e8.async.js +135 -0
- package/dist/client/npm.unknown.31407e95.chunk.css +26 -0
- package/dist/client/npm.vditor.eb5da290.async.js +233 -0
- package/dist/client/p__index.1f505ad4.chunk.css +1 -0
- package/dist/client/p__index.c23f714f.async.js +2375 -0
- package/dist/client/{umi.aabb8b7a.js → umi.a2cf225d.js} +7 -7
- package/package.json +6 -6
- package/dist/client/1145.4029b0be.async.js +0 -3
- package/dist/client/1617.dd671a87.async.js +0 -6
- package/dist/client/1833.82373d30.async.js +0 -6
- package/dist/client/2134.1d86e440.async.js +0 -5
- package/dist/client/2498.be8b1194.async.js +0 -7
- package/dist/client/260.5b02a0a5.async.js +0 -4
- package/dist/client/2953.2e77d77c.async.js +0 -24
- package/dist/client/3130.7f60a040.async.js +0 -35
- package/dist/client/3170.6147bd19.async.js +0 -24
- package/dist/client/3255.e6303833.async.js +0 -10
- package/dist/client/3520.81fd6362.async.js +0 -24
- package/dist/client/3522.674f2264.async.js +0 -4
- package/dist/client/4088.0568ef31.async.js +0 -5
- package/dist/client/4205.c3eac46d.async.js +0 -9
- package/dist/client/4644.ae01f8a6.async.js +0 -4
- package/dist/client/4666.d20ff352.async.js +0 -8
- package/dist/client/4840.477401f9.async.js +0 -8
- package/dist/client/5068.72e9d750.async.js +0 -5
- package/dist/client/5087.468f5500.async.js +0 -6
- package/dist/client/5950.b83f8586.async.js +0 -4
- package/dist/client/6416.361c93ff.async.js +0 -4
- package/dist/client/6472.ac05f778.async.js +0 -7
- package/dist/client/6779.47fc1971.async.js +0 -10
- package/dist/client/6816.1ff200ac.async.js +0 -5
- package/dist/client/6996.836a3f7f.async.js +0 -8
- package/dist/client/7463.70ca58ce.async.js +0 -20
- package/dist/client/7522.1f91be5c.async.js +0 -23
- package/dist/client/7596.232a7185.async.js +0 -10
- package/dist/client/7688.85d6d7bb.async.js +0 -4
- package/dist/client/8106.829fd6b5.async.js +0 -10
- package/dist/client/8541.e3110aaa.async.js +0 -8
- package/dist/client/9017.28eacc5a.async.js +0 -6
- package/dist/client/937.a55819ab.async.js +0 -5
- package/dist/client/9489.25ca39a9.async.js +0 -7
- package/dist/client/9663.c04b2ad1.async.js +0 -5
- package/dist/client/9729.0d7a5c47.async.js +0 -8
- package/dist/client/9848.18f8d3db.async.js +0 -4
- package/dist/client/npm._at_babel.aa6aa60c.async.js +0 -3
- package/dist/client/npm._at_react-spring.47360957.async.js +0 -1
- package/dist/client/npm._at_use-gesture.15164819.async.js +0 -1
- package/dist/client/npm.acorn.1f389fab.async.js +0 -6
- package/dist/client/npm.ahooks.7b545023.async.js +0 -6
- package/dist/client/npm.antd-mobile.ba8a4934.async.js +0 -1
- package/dist/client/npm.antd-style.f89528fc.async.js +0 -1
- package/dist/client/npm.babel-runtime.eed49798.async.js +0 -1
- package/dist/client/npm.rc-util.1c9d8b50.async.js +0 -35
- package/dist/client/p__index.5eda2656.chunk.css +0 -1
- package/dist/client/p__index.ac284e3d.async.js +0 -2316
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunknocobase=self.webpackChunknocobase||[]).push([[2319],{34751:function(ve,ot,V){V.d(ot,{useDrag:function(){return le}});function at(s,t,e){return Math.max(t,Math.min(s,e))}const u={toVector(s,t){return s===void 0&&(s=t),Array.isArray(s)?s:[s,s]},add(s,t){return[s[0]+t[0],s[1]+t[1]]},sub(s,t){return[s[0]-t[0],s[1]-t[1]]},addTo(s,t){s[0]+=t[0],s[1]+=t[1]},subTo(s,t){s[0]-=t[0],s[1]-=t[1]}};function B(s,t,e){return t===0||Math.abs(t)===1/0?Math.pow(s,e*5):s*t*e/(t+e*s)}function j(s,t,e,i=.15){return i===0?at(s,t,e):s<t?-B(t-s,e-t,i)+t:s>e?+B(s-e,e-t,i)+e:s}function ct(s,[t,e],[i,n]){const[[r,o],[c,f]]=s;return[j(t,r,o,i),j(e,c,f,n)]}function ut(s,t){if(typeof s!="object"||s===null)return s;var e=s[Symbol.toPrimitive];if(e!==void 0){var i=e.call(s,t||"default");if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(s)}function ht(s){var t=ut(s,"string");return typeof t=="symbol"?t:String(t)}function d(s,t,e){return t=ht(t),t in s?Object.defineProperty(s,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):s[t]=e,s}function H(s,t){var e=Object.keys(s);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(s);t&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(s,n).enumerable})),e.push.apply(e,i)}return e}function l(s){for(var t=1;t<arguments.length;t++){var e=arguments[t]!=null?arguments[t]:{};t%2?H(Object(e),!0).forEach(function(i){d(s,i,e[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(e)):H(Object(e)).forEach(function(i){Object.defineProperty(s,i,Object.getOwnPropertyDescriptor(e,i))})}return s}const U={pointer:{start:"down",change:"move",end:"up"},mouse:{start:"down",change:"move",end:"up"},touch:{start:"start",change:"move",end:"end"},gesture:{start:"start",change:"change",end:"end"}};function Y(s){return s?s[0].toUpperCase()+s.slice(1):""}const lt=["enter","leave"];function ft(s=!1,t){return s&&!lt.includes(t)}function dt(s,t="",e=!1){const i=U[s],n=i&&i[t]||t;return"on"+Y(s)+Y(n)+(ft(e,n)?"Capture":"")}const pt=["gotpointercapture","lostpointercapture"];function mt(s){let t=s.substring(2).toLowerCase();const e=!!~t.indexOf("passive");e&&(t=t.replace("passive",""));const i=pt.includes(t)?"capturecapture":"capture",n=!!~t.indexOf(i);return n&&(t=t.replace("capture","")),{device:t,capture:n,passive:e}}function _t(s,t=""){const e=U[s],i=e&&e[t]||t;return s+i}function S(s){return"touches"in s}function G(s){return S(s)?"touch":"pointerType"in s?s.pointerType:"mouse"}function gt(s){return Array.from(s.touches).filter(t=>{var e,i;return t.target===s.currentTarget||((e=s.currentTarget)===null||e===void 0||(i=e.contains)===null||i===void 0?void 0:i.call(e,t.target))})}function vt(s){return s.type==="touchend"||s.type==="touchcancel"?s.changedTouches:s.targetTouches}function N(s){return S(s)?vt(s)[0]:s}function P(s,t){try{const e=t.clientX-s.clientX,i=t.clientY-s.clientY,n=(t.clientX+s.clientX)/2,r=(t.clientY+s.clientY)/2,o=Math.hypot(e,i);return{angle:-(Math.atan2(e,i)*180)/Math.PI,distance:o,origin:[n,r]}}catch{}return null}function yt(s){return gt(s).map(t=>t.identifier)}function X(s,t){const[e,i]=Array.from(s.touches).filter(n=>t.includes(n.identifier));return P(e,i)}function C(s){const t=N(s);return S(s)?t.identifier:t.pointerId}function b(s){const t=N(s);return[t.clientX,t.clientY]}const W=40,z=800;function $(s){let{deltaX:t,deltaY:e,deltaMode:i}=s;return i===1?(t*=W,e*=W):i===2&&(t*=z,e*=z),[t,e]}function bt(s){var t,e;const{scrollX:i,scrollY:n,scrollLeft:r,scrollTop:o}=s.currentTarget;return[(t=i??r)!==null&&t!==void 0?t:0,(e=n??o)!==null&&e!==void 0?e:0]}function wt(s){const t={};if("buttons"in s&&(t.buttons=s.buttons),"shiftKey"in s){const{shiftKey:e,altKey:i,metaKey:n,ctrlKey:r}=s;Object.assign(t,{shiftKey:e,altKey:i,metaKey:n,ctrlKey:r})}return t}function I(s,...t){return typeof s=="function"?s(...t):s}function Et(){}function Tt(...s){return s.length===0?Et:s.length===1?s[0]:function(){let t;for(const e of s)t=e.apply(this,arguments)||t;return t}}function q(s,t){return Object.assign({},t,s||{})}const At=32;class J{constructor(t,e,i){this.ctrl=t,this.args=e,this.key=i,this.state||(this.state={},this.computeValues([0,0]),this.computeInitial(),this.init&&this.init(),this.reset())}get state(){return this.ctrl.state[this.key]}set state(t){this.ctrl.state[this.key]=t}get shared(){return this.ctrl.state.shared}get eventStore(){return this.ctrl.gestureEventStores[this.key]}get timeoutStore(){return this.ctrl.gestureTimeoutStores[this.key]}get config(){return this.ctrl.config[this.key]}get sharedConfig(){return this.ctrl.config.shared}get handler(){return this.ctrl.handlers[this.key]}reset(){const{state:t,shared:e,ingKey:i,args:n}=this;e[i]=t._active=t.active=t._blocked=t._force=!1,t._step=[!1,!1],t.intentional=!1,t._movement=[0,0],t._distance=[0,0],t._direction=[0,0],t._delta=[0,0],t._bounds=[[-1/0,1/0],[-1/0,1/0]],t.args=n,t.axis=void 0,t.memo=void 0,t.elapsedTime=t.timeDelta=0,t.direction=[0,0],t.distance=[0,0],t.overflow=[0,0],t._movementBound=[!1,!1],t.velocity=[0,0],t.movement=[0,0],t.delta=[0,0],t.timeStamp=0}start(t){const e=this.state,i=this.config;e._active||(this.reset(),this.computeInitial(),e._active=!0,e.target=t.target,e.currentTarget=t.currentTarget,e.lastOffset=i.from?I(i.from,e):e.offset,e.offset=e.lastOffset,e.startTime=e.timeStamp=t.timeStamp)}computeValues(t){const e=this.state;e._values=t,e.values=this.config.transform(t)}computeInitial(){const t=this.state;t._initial=t._values,t.initial=t.values}compute(t){const{state:e,config:i,shared:n}=this;e.args=this.args;let r=0;if(t&&(e.event=t,i.preventDefault&&t.cancelable&&e.event.preventDefault(),e.type=t.type,n.touches=this.ctrl.pointerIds.size||this.ctrl.touchIds.size,n.locked=!!document.pointerLockElement,Object.assign(n,wt(t)),n.down=n.pressed=n.buttons%2===1||n.touches>0,r=t.timeStamp-e.timeStamp,e.timeStamp=t.timeStamp,e.elapsedTime=e.timeStamp-e.startTime),e._active){const y=e._delta.map(Math.abs);u.addTo(e._distance,y)}this.axisIntent&&this.axisIntent(t);const[o,c]=e._movement,[f,h]=i.threshold,{_step:a,values:_}=e;if(i.hasCustomTransform?(a[0]===!1&&(a[0]=Math.abs(o)>=f&&_[0]),a[1]===!1&&(a[1]=Math.abs(c)>=h&&_[1])):(a[0]===!1&&(a[0]=Math.abs(o)>=f&&Math.sign(o)*f),a[1]===!1&&(a[1]=Math.abs(c)>=h&&Math.sign(c)*h)),e.intentional=a[0]!==!1||a[1]!==!1,!e.intentional)return;const p=[0,0];if(i.hasCustomTransform){const[y,ge]=_;p[0]=a[0]!==!1?y-a[0]:0,p[1]=a[1]!==!1?ge-a[1]:0}else p[0]=a[0]!==!1?o-a[0]:0,p[1]=a[1]!==!1?c-a[1]:0;this.restrictToAxis&&!e._blocked&&this.restrictToAxis(p);const D=e.offset,x=e._active&&!e._blocked||e.active;x&&(e.first=e._active&&!e.active,e.last=!e._active&&e.active,e.active=n[this.ingKey]=e._active,t&&(e.first&&("bounds"in i&&(e._bounds=I(i.bounds,e)),this.setup&&this.setup()),e.movement=p,this.computeOffset()));const[O,M]=e.offset,[[K,de],[pe,me]]=e._bounds;e.overflow=[O<K?-1:O>de?1:0,M<pe?-1:M>me?1:0],e._movementBound[0]=e.overflow[0]?e._movementBound[0]===!1?e._movement[0]:e._movementBound[0]:!1,e._movementBound[1]=e.overflow[1]?e._movementBound[1]===!1?e._movement[1]:e._movementBound[1]:!1;const _e=e._active?i.rubberband||[0,0]:[0,0];if(e.offset=ct(e._bounds,e.offset,_e),e.delta=u.sub(e.offset,D),this.computeMovement(),x&&(!e.last||r>At)){e.delta=u.sub(e.offset,D);const y=e.delta.map(Math.abs);u.addTo(e.distance,y),e.direction=e.delta.map(Math.sign),e._direction=e._delta.map(Math.sign),!e.first&&r>0&&(e.velocity=[y[0]/r,y[1]/r],e.timeDelta=r)}}emit(){const t=this.state,e=this.shared,i=this.config;if(t._active||this.clean(),(t._blocked||!t.intentional)&&!t._force&&!i.triggerAllEvents)return;const n=this.handler(l(l(l({},e),t),{},{[this.aliasKey]:t.values}));n!==void 0&&(t.memo=n)}clean(){this.eventStore.clean(),this.timeoutStore.clean()}}function St([s,t],e){const i=Math.abs(s),n=Math.abs(t);if(i>n&&i>e)return"x";if(n>i&&n>e)return"y"}class T extends J{constructor(...t){super(...t),d(this,"aliasKey","xy")}reset(){super.reset(),this.state.axis=void 0}init(){this.state.offset=[0,0],this.state.lastOffset=[0,0]}computeOffset(){this.state.offset=u.add(this.state.lastOffset,this.state.movement)}computeMovement(){this.state.movement=u.sub(this.state.offset,this.state.lastOffset)}axisIntent(t){const e=this.state,i=this.config;if(!e.axis&&t){const n=typeof i.axisThreshold=="object"?i.axisThreshold[G(t)]:i.axisThreshold;e.axis=St(e._movement,n)}e._blocked=(i.lockDirection||!!i.axis)&&!e.axis||!!i.axis&&i.axis!==e.axis}restrictToAxis(t){if(this.config.axis||this.config.lockDirection)switch(this.state.axis){case"x":t[1]=0;break;case"y":t[0]=0;break}}}const It=s=>s,Q=.15,Z={enabled(s=!0){return s},eventOptions(s,t,e){return l(l({},e.shared.eventOptions),s)},preventDefault(s=!1){return s},triggerAllEvents(s=!1){return s},rubberband(s=0){switch(s){case!0:return[Q,Q];case!1:return[0,0];default:return u.toVector(s)}},from(s){if(typeof s=="function")return s;if(s!=null)return u.toVector(s)},transform(s,t,e){const i=s||e.shared.transform;return this.hasCustomTransform=!!i,i||It},threshold(s){return u.toVector(s,0)}},kt=0,g=l(l({},Z),{},{axis(s,t,{axis:e}){if(this.lockDirection=e==="lock",!this.lockDirection)return e},axisThreshold(s=kt){return s},bounds(s={}){if(typeof s=="function")return r=>g.bounds(s(r));if("current"in s)return()=>s.current;if(typeof HTMLElement=="function"&&s instanceof HTMLElement)return s;const{left:t=-1/0,right:e=1/0,top:i=-1/0,bottom:n=1/0}=s;return[[t,e],[i,n]]}}),F={ArrowRight:(s,t=1)=>[s*t,0],ArrowLeft:(s,t=1)=>[-1*s*t,0],ArrowUp:(s,t=1)=>[0,-1*s*t],ArrowDown:(s,t=1)=>[0,s*t]};class Dt extends T{constructor(...t){super(...t),d(this,"ingKey","dragging")}reset(){super.reset();const t=this.state;t._pointerId=void 0,t._pointerActive=!1,t._keyboardActive=!1,t._preventScroll=!1,t._delayed=!1,t.swipe=[0,0],t.tap=!1,t.canceled=!1,t.cancel=this.cancel.bind(this)}setup(){const t=this.state;if(t._bounds instanceof HTMLElement){const e=t._bounds.getBoundingClientRect(),i=t.currentTarget.getBoundingClientRect(),n={left:e.left-i.left+t.offset[0],right:e.right-i.right+t.offset[0],top:e.top-i.top+t.offset[1],bottom:e.bottom-i.bottom+t.offset[1]};t._bounds=g.bounds(n)}}cancel(){const t=this.state;t.canceled||(t.canceled=!0,t._active=!1,setTimeout(()=>{this.compute(),this.emit()},0))}setActive(){this.state._active=this.state._pointerActive||this.state._keyboardActive}clean(){this.pointerClean(),this.state._pointerActive=!1,this.state._keyboardActive=!1,super.clean()}pointerDown(t){const e=this.config,i=this.state;if(t.buttons!=null&&(Array.isArray(e.pointerButtons)?!e.pointerButtons.includes(t.buttons):e.pointerButtons!==-1&&e.pointerButtons!==t.buttons))return;const n=this.ctrl.setEventIds(t);e.pointerCapture&&t.target.setPointerCapture(t.pointerId),!(n&&n.size>1&&i._pointerActive)&&(this.start(t),this.setupPointer(t),i._pointerId=C(t),i._pointerActive=!0,this.computeValues(b(t)),this.computeInitial(),e.preventScrollAxis&&G(t)!=="mouse"?(i._active=!1,this.setupScrollPrevention(t)):e.delay>0?(this.setupDelayTrigger(t),e.triggerAllEvents&&(this.compute(t),this.emit())):this.startPointerDrag(t))}startPointerDrag(t){const e=this.state;e._active=!0,e._preventScroll=!0,e._delayed=!1,this.compute(t),this.emit()}pointerMove(t){const e=this.state,i=this.config;if(!e._pointerActive)return;const n=C(t);if(e._pointerId!==void 0&&n!==e._pointerId)return;const r=b(t);if(document.pointerLockElement===t.target?e._delta=[t.movementX,t.movementY]:(e._delta=u.sub(r,e._values),this.computeValues(r)),u.addTo(e._movement,e._delta),this.compute(t),e._delayed&&e.intentional){this.timeoutStore.remove("dragDelay"),e.active=!1,this.startPointerDrag(t);return}if(i.preventScrollAxis&&!e._preventScroll)if(e.axis)if(e.axis===i.preventScrollAxis||i.preventScrollAxis==="xy"){e._active=!1,this.clean();return}else{this.timeoutStore.remove("startPointerDrag"),this.startPointerDrag(t);return}else return;this.emit()}pointerUp(t){this.ctrl.setEventIds(t);try{this.config.pointerCapture&&t.target.hasPointerCapture(t.pointerId)&&t.target.releasePointerCapture(t.pointerId)}catch{}const e=this.state,i=this.config;if(!e._active||!e._pointerActive)return;const n=C(t);if(e._pointerId!==void 0&&n!==e._pointerId)return;this.state._pointerActive=!1,this.setActive(),this.compute(t);const[r,o]=e._distance;if(e.tap=r<=i.tapsThreshold&&o<=i.tapsThreshold,e.tap&&i.filterTaps)e._force=!0;else{const[c,f]=e._delta,[h,a]=e._movement,[_,p]=i.swipe.velocity,[D,x]=i.swipe.distance,O=i.swipe.duration;if(e.elapsedTime<O){const M=Math.abs(c/e.timeDelta),K=Math.abs(f/e.timeDelta);M>_&&Math.abs(h)>D&&(e.swipe[0]=Math.sign(c)),K>p&&Math.abs(a)>x&&(e.swipe[1]=Math.sign(f))}}this.emit()}pointerClick(t){!this.state.tap&&t.detail>0&&(t.preventDefault(),t.stopPropagation())}setupPointer(t){const e=this.config,i=e.device;e.pointerLock&&t.currentTarget.requestPointerLock(),e.pointerCapture||(this.eventStore.add(this.sharedConfig.window,i,"change",this.pointerMove.bind(this)),this.eventStore.add(this.sharedConfig.window,i,"end",this.pointerUp.bind(this)),this.eventStore.add(this.sharedConfig.window,i,"cancel",this.pointerUp.bind(this)))}pointerClean(){this.config.pointerLock&&document.pointerLockElement===this.state.currentTarget&&document.exitPointerLock()}preventScroll(t){this.state._preventScroll&&t.cancelable&&t.preventDefault()}setupScrollPrevention(t){this.state._preventScroll=!1,xt(t);const e=this.eventStore.add(this.sharedConfig.window,"touch","change",this.preventScroll.bind(this),{passive:!1});this.eventStore.add(this.sharedConfig.window,"touch","end",e),this.eventStore.add(this.sharedConfig.window,"touch","cancel",e),this.timeoutStore.add("startPointerDrag",this.startPointerDrag.bind(this),this.config.preventScrollDelay,t)}setupDelayTrigger(t){this.state._delayed=!0,this.timeoutStore.add("dragDelay",()=>{this.state._step=[0,0],this.startPointerDrag(t)},this.config.delay)}keyDown(t){const e=F[t.key];if(e){const i=this.state,n=t.shiftKey?10:t.altKey?.1:1;this.start(t),i._delta=e(this.config.keyboardDisplacement,n),i._keyboardActive=!0,u.addTo(i._movement,i._delta),this.compute(t),this.emit()}}keyUp(t){t.key in F&&(this.state._keyboardActive=!1,this.setActive(),this.compute(t),this.emit())}bind(t){const e=this.config.device;t(e,"start",this.pointerDown.bind(this)),this.config.pointerCapture&&(t(e,"change",this.pointerMove.bind(this)),t(e,"end",this.pointerUp.bind(this)),t(e,"cancel",this.pointerUp.bind(this)),t("lostPointerCapture","",this.pointerUp.bind(this))),this.config.keys&&(t("key","down",this.keyDown.bind(this)),t("key","up",this.keyUp.bind(this))),this.config.filterTaps&&t("click","",this.pointerClick.bind(this),{capture:!0,passive:!1})}}function xt(s){"persist"in s&&typeof s.persist=="function"&&s.persist()}const A=typeof window<"u"&&window.document&&window.document.createElement;function tt(){return A&&"ontouchstart"in window}function Ot(){return tt()||A&&window.navigator.maxTouchPoints>1}function Mt(){return A&&"onpointerdown"in window}function Pt(){return A&&"exitPointerLock"in window.document}function Ct(){try{return"constructor"in GestureEvent}catch{return!1}}const m={isBrowser:A,gesture:Ct(),touch:tt(),touchscreen:Ot(),pointer:Mt(),pointerLock:Pt()},Lt=250,Rt=180,Kt=.5,Vt=50,Bt=250,jt=10,et={mouse:0,touch:0,pen:8},Ht=l(l({},g),{},{device(s,t,{pointer:{touch:e=!1,lock:i=!1,mouse:n=!1}={}}){return this.pointerLock=i&&m.pointerLock,m.touch&&e?"touch":this.pointerLock?"mouse":m.pointer&&!n?"pointer":m.touch?"touch":"mouse"},preventScrollAxis(s,t,{preventScroll:e}){if(this.preventScrollDelay=typeof e=="number"?e:e||e===void 0&&s?Lt:void 0,!(!m.touchscreen||e===!1))return s||(e!==void 0?"y":void 0)},pointerCapture(s,t,{pointer:{capture:e=!0,buttons:i=1,keys:n=!0}={}}){return this.pointerButtons=i,this.keys=n,!this.pointerLock&&this.device==="pointer"&&e},threshold(s,t,{filterTaps:e=!1,tapsThreshold:i=3,axis:n=void 0}){const r=u.toVector(s,e?i:n?1:0);return this.filterTaps=e,this.tapsThreshold=i,r},swipe({velocity:s=Kt,distance:t=Vt,duration:e=Bt}={}){return{velocity:this.transform(u.toVector(s)),distance:this.transform(u.toVector(t)),duration:e}},delay(s=0){switch(s){case!0:return Rt;case!1:return 0;default:return s}},axisThreshold(s){return s?l(l({},et),s):et},keyboardDisplacement(s=jt){return s}});function st(s){const[t,e]=s.overflow,[i,n]=s._delta,[r,o]=s._direction;(t<0&&i>0&&r<0||t>0&&i<0&&r>0)&&(s._movement[0]=s._movementBound[0]),(e<0&&n>0&&o<0||e>0&&n<0&&o>0)&&(s._movement[1]=s._movementBound[1])}const Ut=30,Yt=100;class Gt extends J{constructor(...t){super(...t),d(this,"ingKey","pinching"),d(this,"aliasKey","da")}init(){this.state.offset=[1,0],this.state.lastOffset=[1,0],this.state._pointerEvents=new Map}reset(){super.reset();const t=this.state;t._touchIds=[],t.canceled=!1,t.cancel=this.cancel.bind(this),t.turns=0}computeOffset(){const{type:t,movement:e,lastOffset:i}=this.state;t==="wheel"?this.state.offset=u.add(e,i):this.state.offset=[(1+e[0])*i[0],e[1]+i[1]]}computeMovement(){const{offset:t,lastOffset:e}=this.state;this.state.movement=[t[0]/e[0],t[1]-e[1]]}axisIntent(){const t=this.state,[e,i]=t._movement;if(!t.axis){const n=Math.abs(e)*Ut-Math.abs(i);n<0?t.axis="angle":n>0&&(t.axis="scale")}}restrictToAxis(t){this.config.lockDirection&&(this.state.axis==="scale"?t[1]=0:this.state.axis==="angle"&&(t[0]=0))}cancel(){const t=this.state;t.canceled||setTimeout(()=>{t.canceled=!0,t._active=!1,this.compute(),this.emit()},0)}touchStart(t){this.ctrl.setEventIds(t);const e=this.state,i=this.ctrl.touchIds;if(e._active&&e._touchIds.every(r=>i.has(r))||i.size<2)return;this.start(t),e._touchIds=Array.from(i).slice(0,2);const n=X(t,e._touchIds);n&&this.pinchStart(t,n)}pointerStart(t){if(t.buttons!=null&&t.buttons%2!==1)return;this.ctrl.setEventIds(t),t.target.setPointerCapture(t.pointerId);const e=this.state,i=e._pointerEvents,n=this.ctrl.pointerIds;if(e._active&&Array.from(i.keys()).every(o=>n.has(o))||(i.size<2&&i.set(t.pointerId,t),e._pointerEvents.size<2))return;this.start(t);const r=P(...Array.from(i.values()));r&&this.pinchStart(t,r)}pinchStart(t,e){const i=this.state;i.origin=e.origin,this.computeValues([e.distance,e.angle]),this.computeInitial(),this.compute(t),this.emit()}touchMove(t){if(!this.state._active)return;const e=X(t,this.state._touchIds);e&&this.pinchMove(t,e)}pointerMove(t){const e=this.state._pointerEvents;if(e.has(t.pointerId)&&e.set(t.pointerId,t),!this.state._active)return;const i=P(...Array.from(e.values()));i&&this.pinchMove(t,i)}pinchMove(t,e){const i=this.state,n=i._values[1],r=e.angle-n;let o=0;Math.abs(r)>270&&(o+=Math.sign(r)),this.computeValues([e.distance,e.angle-360*o]),i.origin=e.origin,i.turns=o,i._movement=[i._values[0]/i._initial[0]-1,i._values[1]-i._initial[1]],this.compute(t),this.emit()}touchEnd(t){this.ctrl.setEventIds(t),this.state._active&&this.state._touchIds.some(e=>!this.ctrl.touchIds.has(e))&&(this.state._active=!1,this.compute(t),this.emit())}pointerEnd(t){const e=this.state;this.ctrl.setEventIds(t);try{t.target.releasePointerCapture(t.pointerId)}catch{}e._pointerEvents.has(t.pointerId)&&e._pointerEvents.delete(t.pointerId),e._active&&e._pointerEvents.size<2&&(e._active=!1,this.compute(t),this.emit())}gestureStart(t){t.cancelable&&t.preventDefault();const e=this.state;e._active||(this.start(t),this.computeValues([t.scale,t.rotation]),e.origin=[t.clientX,t.clientY],this.compute(t),this.emit())}gestureMove(t){if(t.cancelable&&t.preventDefault(),!this.state._active)return;const e=this.state;this.computeValues([t.scale,t.rotation]),e.origin=[t.clientX,t.clientY];const i=e._movement;e._movement=[t.scale-1,t.rotation],e._delta=u.sub(e._movement,i),this.compute(t),this.emit()}gestureEnd(t){this.state._active&&(this.state._active=!1,this.compute(t),this.emit())}wheel(t){const e=this.config.modifierKey;e&&(Array.isArray(e)?!e.find(i=>t[i]):!t[e])||(this.state._active?this.wheelChange(t):this.wheelStart(t),this.timeoutStore.add("wheelEnd",this.wheelEnd.bind(this)))}wheelStart(t){this.start(t),this.wheelChange(t)}wheelChange(t){"uv"in t||t.cancelable&&t.preventDefault();const i=this.state;i._delta=[-$(t)[1]/Yt*i.offset[0],0],u.addTo(i._movement,i._delta),st(i),this.state.origin=[t.clientX,t.clientY],this.compute(t),this.emit()}wheelEnd(){this.state._active&&(this.state._active=!1,this.compute(),this.emit())}bind(t){const e=this.config.device;e&&(t(e,"start",this[e+"Start"].bind(this)),t(e,"change",this[e+"Move"].bind(this)),t(e,"end",this[e+"End"].bind(this)),t(e,"cancel",this[e+"End"].bind(this)),t("lostPointerCapture","",this[e+"End"].bind(this))),this.config.pinchOnWheel&&t("wheel","",this.wheel.bind(this),{passive:!1})}}const Nt=l(l({},Z),{},{device(s,t,{shared:e,pointer:{touch:i=!1}={}}){if(e.target&&!m.touch&&m.gesture)return"gesture";if(m.touch&&i)return"touch";if(m.touchscreen){if(m.pointer)return"pointer";if(m.touch)return"touch"}},bounds(s,t,{scaleBounds:e={},angleBounds:i={}}){const n=o=>{const c=q(I(e,o),{min:-1/0,max:1/0});return[c.min,c.max]},r=o=>{const c=q(I(i,o),{min:-1/0,max:1/0});return[c.min,c.max]};return typeof e!="function"&&typeof i!="function"?[n(),r()]:o=>[n(o),r(o)]},threshold(s,t,e){return this.lockDirection=e.axis==="lock",u.toVector(s,this.lockDirection?[.1,3]:0)},modifierKey(s){return s===void 0?"ctrlKey":s},pinchOnWheel(s=!0){return s}});class Xt extends T{constructor(...t){super(...t),d(this,"ingKey","moving")}move(t){this.config.mouseOnly&&t.pointerType!=="mouse"||(this.state._active?this.moveChange(t):this.moveStart(t),this.timeoutStore.add("moveEnd",this.moveEnd.bind(this)))}moveStart(t){this.start(t),this.computeValues(b(t)),this.compute(t),this.computeInitial(),this.emit()}moveChange(t){if(!this.state._active)return;const e=b(t),i=this.state;i._delta=u.sub(e,i._values),u.addTo(i._movement,i._delta),this.computeValues(e),this.compute(t),this.emit()}moveEnd(t){this.state._active&&(this.state._active=!1,this.compute(t),this.emit())}bind(t){t("pointer","change",this.move.bind(this)),t("pointer","leave",this.moveEnd.bind(this))}}const Wt=l(l({},g),{},{mouseOnly:(s=!0)=>s});class zt extends T{constructor(...t){super(...t),d(this,"ingKey","scrolling")}scroll(t){this.state._active||this.start(t),this.scrollChange(t),this.timeoutStore.add("scrollEnd",this.scrollEnd.bind(this))}scrollChange(t){t.cancelable&&t.preventDefault();const e=this.state,i=bt(t);e._delta=u.sub(i,e._values),u.addTo(e._movement,e._delta),this.computeValues(i),this.compute(t),this.emit()}scrollEnd(){this.state._active&&(this.state._active=!1,this.compute(),this.emit())}bind(t){t("scroll","",this.scroll.bind(this))}}const $t=g;class qt extends T{constructor(...t){super(...t),d(this,"ingKey","wheeling")}wheel(t){this.state._active||this.start(t),this.wheelChange(t),this.timeoutStore.add("wheelEnd",this.wheelEnd.bind(this))}wheelChange(t){const e=this.state;e._delta=$(t),u.addTo(e._movement,e._delta),st(e),this.compute(t),this.emit()}wheelEnd(){this.state._active&&(this.state._active=!1,this.compute(),this.emit())}bind(t){t("wheel","",this.wheel.bind(this))}}const Jt=g;class Qt extends T{constructor(...t){super(...t),d(this,"ingKey","hovering")}enter(t){this.config.mouseOnly&&t.pointerType!=="mouse"||(this.start(t),this.computeValues(b(t)),this.compute(t),this.emit())}leave(t){if(this.config.mouseOnly&&t.pointerType!=="mouse")return;const e=this.state;if(!e._active)return;e._active=!1;const i=b(t);e._movement=e._delta=u.sub(i,e._values),this.computeValues(i),this.compute(t),e.delta=e.movement,this.emit()}bind(t){t("pointer","enter",this.enter.bind(this)),t("pointer","leave",this.leave.bind(this))}}const Zt=l(l({},g),{},{mouseOnly:(s=!0)=>s}),it=new Map,L=new Map;function Ft(s){it.set(s.key,s.engine),L.set(s.key,s.resolver)}const te={key:"drag",engine:Dt,resolver:Ht},ye={key:"hover",engine:Qt,resolver:Zt},be={key:"move",engine:Xt,resolver:Wt},we={key:"pinch",engine:Gt,resolver:Nt},Ee={key:"scroll",engine:zt,resolver:$t},Te={key:"wheel",engine:qt,resolver:Jt};var R=V(67294);function ee(s,t){if(s==null)return{};var e={},i=Object.keys(s),n,r;for(r=0;r<i.length;r++)n=i[r],!(t.indexOf(n)>=0)&&(e[n]=s[n]);return e}function se(s,t){if(s==null)return{};var e=ee(s,t),i,n;if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(s);for(n=0;n<r.length;n++)i=r[n],!(t.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(s,i)&&(e[i]=s[i])}return e}const ie={target(s){if(s)return()=>"current"in s?s.current:s},enabled(s=!0){return s},window(s=m.isBrowser?window:void 0){return s},eventOptions({passive:s=!0,capture:t=!1}={}){return{passive:s,capture:t}},transform(s){return s}},ne=["target","eventOptions","window","enabled","transform"];function k(s={},t){const e={};for(const[i,n]of Object.entries(t))switch(typeof n){case"function":e[i]=n.call(e,s[i],i,s);break;case"object":e[i]=k(s[i],n);break;case"boolean":n&&(e[i]=s[i]);break}return e}function re(s,t,e={}){const i=s,{target:n,eventOptions:r,window:o,enabled:c,transform:f}=i,h=se(i,ne);if(e.shared=k({target:n,eventOptions:r,window:o,enabled:c,transform:f},ie),t){const a=L.get(t);e[t]=k(l({shared:e.shared},h),a)}else for(const a in h){const _=L.get(a);_&&(e[a]=k(l({shared:e.shared},h[a]),_))}return e}class nt{constructor(t,e){d(this,"_listeners",new Set),this._ctrl=t,this._gestureKey=e}add(t,e,i,n,r){const o=this._listeners,c=_t(e,i),f=this._gestureKey?this._ctrl.config[this._gestureKey].eventOptions:{},h=l(l({},f),r);t.addEventListener(c,n,h);const a=()=>{t.removeEventListener(c,n,h),o.delete(a)};return o.add(a),a}clean(){this._listeners.forEach(t=>t()),this._listeners.clear()}}class oe{constructor(){d(this,"_timeouts",new Map)}add(t,e,i=140,...n){this.remove(t),this._timeouts.set(t,window.setTimeout(e,i,...n))}remove(t){const e=this._timeouts.get(t);e&&window.clearTimeout(e)}clean(){this._timeouts.forEach(t=>void window.clearTimeout(t)),this._timeouts.clear()}}class ae{constructor(t){d(this,"gestures",new Set),d(this,"_targetEventStore",new nt(this)),d(this,"gestureEventStores",{}),d(this,"gestureTimeoutStores",{}),d(this,"handlers",{}),d(this,"config",{}),d(this,"pointerIds",new Set),d(this,"touchIds",new Set),d(this,"state",{shared:{shiftKey:!1,metaKey:!1,ctrlKey:!1,altKey:!1}}),ce(this,t)}setEventIds(t){if(S(t))return this.touchIds=new Set(yt(t)),this.touchIds;if("pointerId"in t)return t.type==="pointerup"||t.type==="pointercancel"?this.pointerIds.delete(t.pointerId):t.type==="pointerdown"&&this.pointerIds.add(t.pointerId),this.pointerIds}applyHandlers(t,e){this.handlers=t,this.nativeHandlers=e}applyConfig(t,e){this.config=re(t,e,this.config)}clean(){this._targetEventStore.clean();for(const t of this.gestures)this.gestureEventStores[t].clean(),this.gestureTimeoutStores[t].clean()}effect(){return this.config.shared.target&&this.bind(),()=>this._targetEventStore.clean()}bind(...t){const e=this.config.shared,i={};let n;if(!(e.target&&(n=e.target(),!n))){if(e.enabled){for(const o of this.gestures){const c=this.config[o],f=rt(i,c.eventOptions,!!n);if(c.enabled){const h=it.get(o);new h(this,t,o).bind(f)}}const r=rt(i,e.eventOptions,!!n);for(const o in this.nativeHandlers)r(o,"",c=>this.nativeHandlers[o](l(l({},this.state.shared),{},{event:c,args:t})),void 0,!0)}for(const r in i)i[r]=Tt(...i[r]);if(!n)return i;for(const r in i){const{device:o,capture:c,passive:f}=mt(r);this._targetEventStore.add(n,o,"",i[r],{capture:c,passive:f})}}}}function w(s,t){s.gestures.add(t),s.gestureEventStores[t]=new nt(s,t),s.gestureTimeoutStores[t]=new oe}function ce(s,t){t.drag&&w(s,"drag"),t.wheel&&w(s,"wheel"),t.scroll&&w(s,"scroll"),t.move&&w(s,"move"),t.pinch&&w(s,"pinch"),t.hover&&w(s,"hover")}const rt=(s,t,e)=>(i,n,r,o={},c=!1)=>{var f,h;const a=(f=o.capture)!==null&&f!==void 0?f:t.capture,_=(h=o.passive)!==null&&h!==void 0?h:t.passive;let p=c?i:dt(i,n,a);e&&_&&(p+="Passive"),s[p]=s[p]||[],s[p].push(r)},ue=/^on(Drag|Wheel|Scroll|Move|Pinch|Hover)/;function he(s){const t={},e={},i=new Set;for(let n in s)ue.test(n)?(i.add(RegExp.lastMatch),e[n]=s[n]):t[n]=s[n];return[e,t,i]}function E(s,t,e,i,n,r){if(!s.has(e)||!EngineMap.has(i))return;const o=e+"Start",c=e+"End",f=h=>{let a;return h.first&&o in t&&t[o](h),e in t&&(a=t[e](h)),h.last&&c in t&&t[c](h),a};n[i]=f,r[i]=r[i]||{}}function Ae(s,t){const[e,i,n]=he(s),r={};return E(n,e,"onDrag","drag",r,t),E(n,e,"onWheel","wheel",r,t),E(n,e,"onScroll","scroll",r,t),E(n,e,"onPinch","pinch",r,t),E(n,e,"onMove","move",r,t),E(n,e,"onHover","hover",r,t),{handlers:r,config:t,nativeHandlers:i}}function v(s,t={},e,i){const n=R.useMemo(()=>new ae(s),[]);if(n.applyHandlers(s,i),n.applyConfig(t,e),R.useEffect(n.effect.bind(n)),R.useEffect(()=>n.clean.bind(n),[]),t.target===void 0)return n.bind.bind(n)}function le(s,t){return Ft(te),v({drag:s},t||{},"drag")}function Se(s,t){return registerAction(pinchAction),v({pinch:s},t||{},"pinch")}function Ie(s,t){return registerAction(wheelAction),v({wheel:s},t||{},"wheel")}function ke(s,t){return registerAction(scrollAction),v({scroll:s},t||{},"scroll")}function De(s,t){return registerAction(moveAction),v({move:s},t||{},"move")}function xe(s,t){return registerAction(hoverAction),v({hover:s},t||{},"hover")}function fe(s){return s.forEach(registerAction),function(e,i){const{handlers:n,nativeHandlers:r,config:o}=parseMergedHandlers(e,i||{});return v(n,o,void 0,r)}}function Oe(s,t){return fe([dragAction,pinchAction,scrollAction,wheelAction,moveAction,hoverAction])(s,t||{})}}}]);
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunknocobase=self.webpackChunknocobase||[]).push([[303],{63230:function(Qt,ot,ht){ht.d(ot,{Qc:function(){return zt}});var ct=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,370,1,81,2,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,193,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,84,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,406,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,10,1,2,0,49,6,4,4,14,9,5351,0,7,14,13835,9,87,9,39,4,60,6,26,9,1014,0,2,54,8,3,82,0,12,1,19628,1,4706,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,983,6,110,6,6,9,4759,9,787719,239],_e=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,68,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,349,41,7,1,79,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,159,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,264,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,4026,582,8634,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,689,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,43,8,8936,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,757,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4153,7,221,3,5761,15,7472,16,621,2467,541,1507,4938,6,4191],lt="\u200C\u200D\xB7\u0300-\u036F\u0387\u0483-\u0487\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u0669\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u06F0-\u06F9\u0711\u0730-\u074A\u07A6-\u07B0\u07C0-\u07C9\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0898-\u089F\u08CA-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0966-\u096F\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09E6-\u09EF\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A66-\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AE6-\u0AEF\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B66-\u0B6F\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0BE6-\u0BEF\u0C00-\u0C04\u0C3C\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CE6-\u0CEF\u0CF3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D66-\u0D6F\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0E50-\u0E59\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0ED0-\u0ED9\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1040-\u1049\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F-\u109D\u135D-\u135F\u1369-\u1371\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u17E0-\u17E9\u180B-\u180D\u180F-\u1819\u18A9\u1920-\u192B\u1930-\u193B\u1946-\u194F\u19D0-\u19DA\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AB0-\u1ABD\u1ABF-\u1ACE\u1B00-\u1B04\u1B34-\u1B44\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BB0-\u1BB9\u1BE6-\u1BF3\u1C24-\u1C37\u1C40-\u1C49\u1C50-\u1C59\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DFF\u200C\u200D\u203F\u2040\u2054\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\u30FB\uA620-\uA629\uA66F\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA82C\uA880\uA881\uA8B4-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F1\uA8FF-\uA909\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9D0-\uA9D9\uA9E5\uA9F0-\uA9F9\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA50-\uAA59\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uABF0-\uABF9\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFF10-\uFF19\uFF3F\uFF65",Ce="\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC",ue={3:"abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile",5:"class enum extends super const export import",6:"enum",strict:"implements interface let package private protected public static yield",strictBind:"eval arguments"},oe="break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this",pt={5:oe,"5module":oe+" export import",6:oe+" const class extends export import super"},ft=/^in(stanceof)?$/,dt=new RegExp("["+Ce+"]"),xt=new RegExp("["+Ce+lt+"]");function he(e,t){for(var i=65536,s=0;s<t.length;s+=2){if(i+=t[s],i>e)return!1;if(i+=t[s+1],i>=e)return!0}return!1}function L(e,t){return e<65?e===36:e<91?!0:e<97?e===95:e<123?!0:e<=65535?e>=170&&dt.test(String.fromCharCode(e)):t===!1?!1:he(e,_e)}function M(e,t){return e<48?e===36:e<58?!0:e<65?!1:e<91?!0:e<97?e===95:e<123?!0:e<=65535?e>=170&&xt.test(String.fromCharCode(e)):t===!1?!1:he(e,_e)||he(e,ct)}var v=function(t,i){i===void 0&&(i={}),this.label=t,this.keyword=i.keyword,this.beforeExpr=!!i.beforeExpr,this.startsExpr=!!i.startsExpr,this.isLoop=!!i.isLoop,this.isAssign=!!i.isAssign,this.prefix=!!i.prefix,this.postfix=!!i.postfix,this.binop=i.binop||null,this.updateContext=null};function k(e,t){return new v(e,{beforeExpr:!0,binop:t})}var S={beforeExpr:!0},C={startsExpr:!0},ce={};function m(e,t){return t===void 0&&(t={}),t.keyword=e,ce[e]=new v(e,t)}var a={num:new v("num",C),regexp:new v("regexp",C),string:new v("string",C),name:new v("name",C),privateId:new v("privateId",C),eof:new v("eof"),bracketL:new v("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new v("]"),braceL:new v("{",{beforeExpr:!0,startsExpr:!0}),braceR:new v("}"),parenL:new v("(",{beforeExpr:!0,startsExpr:!0}),parenR:new v(")"),comma:new v(",",S),semi:new v(";",S),colon:new v(":",S),dot:new v("."),question:new v("?",S),questionDot:new v("?."),arrow:new v("=>",S),template:new v("template"),invalidTemplate:new v("invalidTemplate"),ellipsis:new v("...",S),backQuote:new v("`",C),dollarBraceL:new v("${",{beforeExpr:!0,startsExpr:!0}),eq:new v("=",{beforeExpr:!0,isAssign:!0}),assign:new v("_=",{beforeExpr:!0,isAssign:!0}),incDec:new v("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new v("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:k("||",1),logicalAND:k("&&",2),bitwiseOR:k("|",3),bitwiseXOR:k("^",4),bitwiseAND:k("&",5),equality:k("==/!=/===/!==",6),relational:k("</>/<=/>=",7),bitShift:k("<</>>/>>>",8),plusMin:new v("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:k("%",10),star:k("*",10),slash:k("/",10),starstar:new v("**",{beforeExpr:!0}),coalesce:k("??",1),_break:m("break"),_case:m("case",S),_catch:m("catch"),_continue:m("continue"),_debugger:m("debugger"),_default:m("default",S),_do:m("do",{isLoop:!0,beforeExpr:!0}),_else:m("else",S),_finally:m("finally"),_for:m("for",{isLoop:!0}),_function:m("function",C),_if:m("if"),_return:m("return",S),_switch:m("switch"),_throw:m("throw",S),_try:m("try"),_var:m("var"),_const:m("const"),_while:m("while",{isLoop:!0}),_with:m("with"),_new:m("new",{beforeExpr:!0,startsExpr:!0}),_this:m("this",C),_super:m("super",C),_class:m("class",C),_extends:m("extends",S),_export:m("export"),_import:m("import",C),_null:m("null",C),_true:m("true",C),_false:m("false",C),_in:m("in",{beforeExpr:!0,binop:7}),_instanceof:m("instanceof",{beforeExpr:!0,binop:7}),_typeof:m("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:m("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:m("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},w=/\r\n?|\n|\u2028|\u2029/,mt=new RegExp(w.source,"g");function U(e){return e===10||e===13||e===8232||e===8233}function ke(e,t,i){i===void 0&&(i=e.length);for(var s=t;s<i;s++){var r=e.charCodeAt(s);if(U(r))return s<i-1&&r===13&&e.charCodeAt(s+1)===10?s+2:s+1}return-1}var Se=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,E=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,we=Object.prototype,vt=we.hasOwnProperty,gt=we.toString,z=Object.hasOwn||function(e,t){return vt.call(e,t)},Ee=Array.isArray||function(e){return gt.call(e)==="[object Array]"},Ae=Object.create(null);function O(e){return Ae[e]||(Ae[e]=new RegExp("^(?:"+e.replace(/ /g,"|")+")$"))}function B(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode((e>>10)+55296,(e&1023)+56320))}var bt=/(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/,Q=function(t,i){this.line=t,this.column=i};Q.prototype.offset=function(t){return new Q(this.line,this.column+t)};var $=function(t,i,s){this.start=i,this.end=s,t.sourceFile!==null&&(this.source=t.sourceFile)};function Ie(e,t){for(var i=1,s=0;;){var r=ke(e,s,t);if(r<0)return new Q(i,t-s);++i,s=r}}var le={ecmaVersion:null,sourceType:"script",onInsertedSemicolon:null,onTrailingComma:null,allowReserved:null,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowAwaitOutsideFunction:null,allowSuperOutsideMethod:null,allowHashBang:!1,checkPrivateFields:!0,locations:!1,onToken:null,onComment:null,ranges:!1,program:null,sourceFile:null,directSourceFile:null,preserveParens:!1},Pe=!1;function yt(e){var t={};for(var i in le)t[i]=e&&z(e,i)?e[i]:le[i];if(t.ecmaVersion==="latest"?t.ecmaVersion=1e8:t.ecmaVersion==null?(!Pe&&typeof console=="object"&&console.warn&&(Pe=!0,console.warn(`Since Acorn 8.0.0, options.ecmaVersion is required.
|
|
2
|
-
Defaulting to 2020, but this will stop working in the future.`)),t.ecmaVersion=11):t.ecmaVersion>=2015&&(t.ecmaVersion-=2009),t.allowReserved==null&&(t.allowReserved=t.ecmaVersion<5),(!e||e.allowHashBang==null)&&(t.allowHashBang=t.ecmaVersion>=14),Ee(t.onToken)){var s=t.onToken;t.onToken=function(r){return s.push(r)}}return Ee(t.onComment)&&(t.onComment=_t(t,t.onComment)),t}function _t(e,t){return function(i,s,r,n,u,o){var h={type:i?"Block":"Line",value:s,start:r,end:n};e.locations&&(h.loc=new $(this,u,o)),e.ranges&&(h.range=[r,n]),t.push(h)}}var K=1,q=2,pe=4,Ne=8,Ve=16,Le=32,fe=64,Te=128,Y=256,de=K|q|Y;function xe(e,t){return q|(e?pe:0)|(t?Ne:0)}var ee=0,me=1,T=2,Re=3,Oe=4,Be=5,b=function(t,i,s){this.options=t=yt(t),this.sourceFile=t.sourceFile,this.keywords=O(pt[t.ecmaVersion>=6?6:t.sourceType==="module"?"5module":5]);var r="";t.allowReserved!==!0&&(r=ue[t.ecmaVersion>=6?6:t.ecmaVersion===5?5:3],t.sourceType==="module"&&(r+=" await")),this.reservedWords=O(r);var n=(r?r+" ":"")+ue.strict;this.reservedWordsStrict=O(n),this.reservedWordsStrictBind=O(n+" "+ue.strictBind),this.input=String(i),this.containsEsc=!1,s?(this.pos=s,this.lineStart=this.input.lastIndexOf(`
|
|
3
|
-
`,s-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(w).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=a.eof,this.value=null,this.start=this.end=this.pos,this.startLoc=this.endLoc=this.curPosition(),this.lastTokEndLoc=this.lastTokStartLoc=null,this.lastTokStart=this.lastTokEnd=this.pos,this.context=this.initialContext(),this.exprAllowed=!0,this.inModule=t.sourceType==="module",this.strict=this.inModule||this.strictDirective(this.pos),this.potentialArrowAt=-1,this.potentialArrowInForAwait=!1,this.yieldPos=this.awaitPos=this.awaitIdentPos=0,this.labels=[],this.undefinedExports=Object.create(null),this.pos===0&&t.allowHashBang&&this.input.slice(0,2)==="#!"&&this.skipLineComment(2),this.scopeStack=[],this.enterScope(K),this.regexpState=null,this.privateNameStack=[]},N={inFunction:{configurable:!0},inGenerator:{configurable:!0},inAsync:{configurable:!0},canAwait:{configurable:!0},allowSuper:{configurable:!0},allowDirectSuper:{configurable:!0},treatFunctionsAsVar:{configurable:!0},allowNewDotTarget:{configurable:!0},inClassStaticBlock:{configurable:!0}};b.prototype.parse=function(){var t=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(t)},N.inFunction.get=function(){return(this.currentVarScope().flags&q)>0},N.inGenerator.get=function(){return(this.currentVarScope().flags&Ne)>0&&!this.currentVarScope().inClassFieldInit},N.inAsync.get=function(){return(this.currentVarScope().flags&pe)>0&&!this.currentVarScope().inClassFieldInit},N.canAwait.get=function(){for(var e=this.scopeStack.length-1;e>=0;e--){var t=this.scopeStack[e];if(t.inClassFieldInit||t.flags&Y)return!1;if(t.flags&q)return(t.flags&pe)>0}return this.inModule&&this.options.ecmaVersion>=13||this.options.allowAwaitOutsideFunction},N.allowSuper.get=function(){var e=this.currentThisScope(),t=e.flags,i=e.inClassFieldInit;return(t&fe)>0||i||this.options.allowSuperOutsideMethod},N.allowDirectSuper.get=function(){return(this.currentThisScope().flags&Te)>0},N.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())},N.allowNewDotTarget.get=function(){var e=this.currentThisScope(),t=e.flags,i=e.inClassFieldInit;return(t&(q|Y))>0||i},N.inClassStaticBlock.get=function(){return(this.currentVarScope().flags&Y)>0},b.extend=function(){for(var t=[],i=arguments.length;i--;)t[i]=arguments[i];for(var s=this,r=0;r<t.length;r++)s=t[r](s);return s},b.parse=function(t,i){return new this(i,t).parse()},b.parseExpressionAt=function(t,i,s){var r=new this(s,t,i);return r.nextToken(),r.parseExpression()},b.tokenizer=function(t,i){return new this(i,t)},Object.defineProperties(b.prototype,N);var _=b.prototype,Ct=/^(?:'((?:\\.|[^'\\])*?)'|"((?:\\.|[^"\\])*?)")/;_.strictDirective=function(e){if(this.options.ecmaVersion<5)return!1;for(;;){E.lastIndex=e,e+=E.exec(this.input)[0].length;var t=Ct.exec(this.input.slice(e));if(!t)return!1;if((t[1]||t[2])==="use strict"){E.lastIndex=e+t[0].length;var i=E.exec(this.input),s=i.index+i[0].length,r=this.input.charAt(s);return r===";"||r==="}"||w.test(i[0])&&!(/[(`.[+\-/*%<>=,?^&]/.test(r)||r==="!"&&this.input.charAt(s+1)==="=")}e+=t[0].length,E.lastIndex=e,e+=E.exec(this.input)[0].length,this.input[e]===";"&&e++}},_.eat=function(e){return this.type===e?(this.next(),!0):!1},_.isContextual=function(e){return this.type===a.name&&this.value===e&&!this.containsEsc},_.eatContextual=function(e){return this.isContextual(e)?(this.next(),!0):!1},_.expectContextual=function(e){this.eatContextual(e)||this.unexpected()},_.canInsertSemicolon=function(){return this.type===a.eof||this.type===a.braceR||w.test(this.input.slice(this.lastTokEnd,this.start))},_.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0},_.semicolon=function(){!this.eat(a.semi)&&!this.insertSemicolon()&&this.unexpected()},_.afterTrailingComma=function(e,t){if(this.type===e)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),t||this.next(),!0},_.expect=function(e){this.eat(e)||this.unexpected()},_.unexpected=function(e){this.raise(e??this.start,"Unexpected token")};var te=function(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1};_.checkPatternErrors=function(e,t){if(e){e.trailingComma>-1&&this.raiseRecoverable(e.trailingComma,"Comma is not permitted after the rest element");var i=t?e.parenthesizedAssign:e.parenthesizedBind;i>-1&&this.raiseRecoverable(i,t?"Assigning to rvalue":"Parenthesized pattern")}},_.checkExpressionErrors=function(e,t){if(!e)return!1;var i=e.shorthandAssign,s=e.doubleProto;if(!t)return i>=0||s>=0;i>=0&&this.raise(i,"Shorthand property assignments are valid only in destructuring patterns"),s>=0&&this.raiseRecoverable(s,"Redefinition of __proto__ property")},_.checkYieldAwaitInDefaultParams=function(){this.yieldPos&&(!this.awaitPos||this.yieldPos<this.awaitPos)&&this.raise(this.yieldPos,"Yield expression cannot be a default value"),this.awaitPos&&this.raise(this.awaitPos,"Await expression cannot be a default value")},_.isSimpleAssignTarget=function(e){return e.type==="ParenthesizedExpression"?this.isSimpleAssignTarget(e.expression):e.type==="Identifier"||e.type==="MemberExpression"};var l=b.prototype;l.parseTopLevel=function(e){var t=Object.create(null);for(e.body||(e.body=[]);this.type!==a.eof;){var i=this.parseStatement(null,!0,t);e.body.push(i)}if(this.inModule)for(var s=0,r=Object.keys(this.undefinedExports);s<r.length;s+=1){var n=r[s];this.raiseRecoverable(this.undefinedExports[n].start,"Export '"+n+"' is not defined")}return this.adaptDirectivePrologue(e.body),this.next(),e.sourceType=this.options.sourceType,this.finishNode(e,"Program")};var ve={kind:"loop"},kt={kind:"switch"};l.isLet=function(e){if(this.options.ecmaVersion<6||!this.isContextual("let"))return!1;E.lastIndex=this.pos;var t=E.exec(this.input),i=this.pos+t[0].length,s=this.input.charCodeAt(i);if(s===91||s===92)return!0;if(e)return!1;if(s===123||s>55295&&s<56320)return!0;if(L(s,!0)){for(var r=i+1;M(s=this.input.charCodeAt(r),!0);)++r;if(s===92||s>55295&&s<56320)return!0;var n=this.input.slice(i,r);if(!ft.test(n))return!0}return!1},l.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual("async"))return!1;E.lastIndex=this.pos;var e=E.exec(this.input),t=this.pos+e[0].length,i;return!w.test(this.input.slice(this.pos,t))&&this.input.slice(t,t+8)==="function"&&(t+8===this.input.length||!(M(i=this.input.charCodeAt(t+8))||i>55295&&i<56320))},l.parseStatement=function(e,t,i){var s=this.type,r=this.startNode(),n;switch(this.isLet(e)&&(s=a._var,n="let"),s){case a._break:case a._continue:return this.parseBreakContinueStatement(r,s.keyword);case a._debugger:return this.parseDebuggerStatement(r);case a._do:return this.parseDoStatement(r);case a._for:return this.parseForStatement(r);case a._function:return e&&(this.strict||e!=="if"&&e!=="label")&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(r,!1,!e);case a._class:return e&&this.unexpected(),this.parseClass(r,!0);case a._if:return this.parseIfStatement(r);case a._return:return this.parseReturnStatement(r);case a._switch:return this.parseSwitchStatement(r);case a._throw:return this.parseThrowStatement(r);case a._try:return this.parseTryStatement(r);case a._const:case a._var:return n=n||this.value,e&&n!=="var"&&this.unexpected(),this.parseVarStatement(r,n);case a._while:return this.parseWhileStatement(r);case a._with:return this.parseWithStatement(r);case a.braceL:return this.parseBlock(!0,r);case a.semi:return this.parseEmptyStatement(r);case a._export:case a._import:if(this.options.ecmaVersion>10&&s===a._import){E.lastIndex=this.pos;var u=E.exec(this.input),o=this.pos+u[0].length,h=this.input.charCodeAt(o);if(h===40||h===46)return this.parseExpressionStatement(r,this.parseExpression())}return this.options.allowImportExportEverywhere||(t||this.raise(this.start,"'import' and 'export' may only appear at the top level"),this.inModule||this.raise(this.start,"'import' and 'export' may appear only with 'sourceType: module'")),s===a._import?this.parseImport(r):this.parseExport(r,i);default:if(this.isAsyncFunction())return e&&this.unexpected(),this.next(),this.parseFunctionStatement(r,!0,!e);var f=this.value,d=this.parseExpression();return s===a.name&&d.type==="Identifier"&&this.eat(a.colon)?this.parseLabeledStatement(r,f,d,e):this.parseExpressionStatement(r,d)}},l.parseBreakContinueStatement=function(e,t){var i=t==="break";this.next(),this.eat(a.semi)||this.insertSemicolon()?e.label=null:this.type!==a.name?this.unexpected():(e.label=this.parseIdent(),this.semicolon());for(var s=0;s<this.labels.length;++s){var r=this.labels[s];if((e.label==null||r.name===e.label.name)&&(r.kind!=null&&(i||r.kind==="loop")||e.label&&i))break}return s===this.labels.length&&this.raise(e.start,"Unsyntactic "+t),this.finishNode(e,i?"BreakStatement":"ContinueStatement")},l.parseDebuggerStatement=function(e){return this.next(),this.semicolon(),this.finishNode(e,"DebuggerStatement")},l.parseDoStatement=function(e){return this.next(),this.labels.push(ve),e.body=this.parseStatement("do"),this.labels.pop(),this.expect(a._while),e.test=this.parseParenExpression(),this.options.ecmaVersion>=6?this.eat(a.semi):this.semicolon(),this.finishNode(e,"DoWhileStatement")},l.parseForStatement=function(e){this.next();var t=this.options.ecmaVersion>=9&&this.canAwait&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(ve),this.enterScope(0),this.expect(a.parenL),this.type===a.semi)return t>-1&&this.unexpected(t),this.parseFor(e,null);var i=this.isLet();if(this.type===a._var||this.type===a._const||i){var s=this.startNode(),r=i?"let":this.value;return this.next(),this.parseVar(s,!0,r),this.finishNode(s,"VariableDeclaration"),(this.type===a._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&s.declarations.length===1?(this.options.ecmaVersion>=9&&(this.type===a._in?t>-1&&this.unexpected(t):e.await=t>-1),this.parseForIn(e,s)):(t>-1&&this.unexpected(t),this.parseFor(e,s))}var n=this.isContextual("let"),u=!1,o=new te,h=this.parseExpression(t>-1?"await":!0,o);return this.type===a._in||(u=this.options.ecmaVersion>=6&&this.isContextual("of"))?(this.options.ecmaVersion>=9&&(this.type===a._in?t>-1&&this.unexpected(t):e.await=t>-1),n&&u&&this.raise(h.start,"The left-hand side of a for-of loop may not start with 'let'."),this.toAssignable(h,!1,o),this.checkLValPattern(h),this.parseForIn(e,h)):(this.checkExpressionErrors(o,!0),t>-1&&this.unexpected(t),this.parseFor(e,h))},l.parseFunctionStatement=function(e,t,i){return this.next(),this.parseFunction(e,X|(i?0:ge),!1,t)},l.parseIfStatement=function(e){return this.next(),e.test=this.parseParenExpression(),e.consequent=this.parseStatement("if"),e.alternate=this.eat(a._else)?this.parseStatement("if"):null,this.finishNode(e,"IfStatement")},l.parseReturnStatement=function(e){return!this.inFunction&&!this.options.allowReturnOutsideFunction&&this.raise(this.start,"'return' outside of function"),this.next(),this.eat(a.semi)||this.insertSemicolon()?e.argument=null:(e.argument=this.parseExpression(),this.semicolon()),this.finishNode(e,"ReturnStatement")},l.parseSwitchStatement=function(e){this.next(),e.discriminant=this.parseParenExpression(),e.cases=[],this.expect(a.braceL),this.labels.push(kt),this.enterScope(0);for(var t,i=!1;this.type!==a.braceR;)if(this.type===a._case||this.type===a._default){var s=this.type===a._case;t&&this.finishNode(t,"SwitchCase"),e.cases.push(t=this.startNode()),t.consequent=[],this.next(),s?t.test=this.parseExpression():(i&&this.raiseRecoverable(this.lastTokStart,"Multiple default clauses"),i=!0,t.test=null),this.expect(a.colon)}else t||this.unexpected(),t.consequent.push(this.parseStatement(null));return this.exitScope(),t&&this.finishNode(t,"SwitchCase"),this.next(),this.labels.pop(),this.finishNode(e,"SwitchStatement")},l.parseThrowStatement=function(e){return this.next(),w.test(this.input.slice(this.lastTokEnd,this.start))&&this.raise(this.lastTokEnd,"Illegal newline after throw"),e.argument=this.parseExpression(),this.semicolon(),this.finishNode(e,"ThrowStatement")};var St=[];l.parseCatchClauseParam=function(){var e=this.parseBindingAtom(),t=e.type==="Identifier";return this.enterScope(t?Le:0),this.checkLValPattern(e,t?Oe:T),this.expect(a.parenR),e},l.parseTryStatement=function(e){if(this.next(),e.block=this.parseBlock(),e.handler=null,this.type===a._catch){var t=this.startNode();this.next(),this.eat(a.parenL)?t.param=this.parseCatchClauseParam():(this.options.ecmaVersion<10&&this.unexpected(),t.param=null,this.enterScope(0)),t.body=this.parseBlock(!1),this.exitScope(),e.handler=this.finishNode(t,"CatchClause")}return e.finalizer=this.eat(a._finally)?this.parseBlock():null,!e.handler&&!e.finalizer&&this.raise(e.start,"Missing catch or finally clause"),this.finishNode(e,"TryStatement")},l.parseVarStatement=function(e,t,i){return this.next(),this.parseVar(e,!1,t,i),this.semicolon(),this.finishNode(e,"VariableDeclaration")},l.parseWhileStatement=function(e){return this.next(),e.test=this.parseParenExpression(),this.labels.push(ve),e.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(e,"WhileStatement")},l.parseWithStatement=function(e){return this.strict&&this.raise(this.start,"'with' in strict mode"),this.next(),e.object=this.parseParenExpression(),e.body=this.parseStatement("with"),this.finishNode(e,"WithStatement")},l.parseEmptyStatement=function(e){return this.next(),this.finishNode(e,"EmptyStatement")},l.parseLabeledStatement=function(e,t,i,s){for(var r=0,n=this.labels;r<n.length;r+=1){var u=n[r];u.name===t&&this.raise(i.start,"Label '"+t+"' is already declared")}for(var o=this.type.isLoop?"loop":this.type===a._switch?"switch":null,h=this.labels.length-1;h>=0;h--){var f=this.labels[h];if(f.statementStart===e.start)f.statementStart=this.start,f.kind=o;else break}return this.labels.push({name:t,kind:o,statementStart:this.start}),e.body=this.parseStatement(s?s.indexOf("label")===-1?s+"label":s:"label"),this.labels.pop(),e.label=i,this.finishNode(e,"LabeledStatement")},l.parseExpressionStatement=function(e,t){return e.expression=t,this.semicolon(),this.finishNode(e,"ExpressionStatement")},l.parseBlock=function(e,t,i){for(e===void 0&&(e=!0),t===void 0&&(t=this.startNode()),t.body=[],this.expect(a.braceL),e&&this.enterScope(0);this.type!==a.braceR;){var s=this.parseStatement(null);t.body.push(s)}return i&&(this.strict=!1),this.next(),e&&this.exitScope(),this.finishNode(t,"BlockStatement")},l.parseFor=function(e,t){return e.init=t,this.expect(a.semi),e.test=this.type===a.semi?null:this.parseExpression(),this.expect(a.semi),e.update=this.type===a.parenR?null:this.parseExpression(),this.expect(a.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,"ForStatement")},l.parseForIn=function(e,t){var i=this.type===a._in;return this.next(),t.type==="VariableDeclaration"&&t.declarations[0].init!=null&&(!i||this.options.ecmaVersion<8||this.strict||t.kind!=="var"||t.declarations[0].id.type!=="Identifier")&&this.raise(t.start,(i?"for-in":"for-of")+" loop variable declaration may not have an initializer"),e.left=t,e.right=i?this.parseExpression():this.parseMaybeAssign(),this.expect(a.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,i?"ForInStatement":"ForOfStatement")},l.parseVar=function(e,t,i,s){for(e.declarations=[],e.kind=i;;){var r=this.startNode();if(this.parseVarId(r,i),this.eat(a.eq)?r.init=this.parseMaybeAssign(t):!s&&i==="const"&&!(this.type===a._in||this.options.ecmaVersion>=6&&this.isContextual("of"))?this.unexpected():!s&&r.id.type!=="Identifier"&&!(t&&(this.type===a._in||this.isContextual("of")))?this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value"):r.init=null,e.declarations.push(this.finishNode(r,"VariableDeclarator")),!this.eat(a.comma))break}return e},l.parseVarId=function(e,t){e.id=this.parseBindingAtom(),this.checkLValPattern(e.id,t==="var"?me:T,!1)};var X=1,ge=2,Fe=4;l.parseFunction=function(e,t,i,s,r){this.initFunction(e),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!s)&&(this.type===a.star&&t&ge&&this.unexpected(),e.generator=this.eat(a.star)),this.options.ecmaVersion>=8&&(e.async=!!s),t&X&&(e.id=t&Fe&&this.type!==a.name?null:this.parseIdent(),e.id&&!(t&ge)&&this.checkLValSimple(e.id,this.strict||e.generator||e.async?this.treatFunctionsAsVar?me:T:Re));var n=this.yieldPos,u=this.awaitPos,o=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(xe(e.async,e.generator)),t&X||(e.id=this.type===a.name?this.parseIdent():null),this.parseFunctionParams(e),this.parseFunctionBody(e,i,!1,r),this.yieldPos=n,this.awaitPos=u,this.awaitIdentPos=o,this.finishNode(e,t&X?"FunctionDeclaration":"FunctionExpression")},l.parseFunctionParams=function(e){this.expect(a.parenL),e.params=this.parseBindingList(a.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()},l.parseClass=function(e,t){this.next();var i=this.strict;this.strict=!0,this.parseClassId(e,t),this.parseClassSuper(e);var s=this.enterClassBody(),r=this.startNode(),n=!1;for(r.body=[],this.expect(a.braceL);this.type!==a.braceR;){var u=this.parseClassElement(e.superClass!==null);u&&(r.body.push(u),u.type==="MethodDefinition"&&u.kind==="constructor"?(n&&this.raiseRecoverable(u.start,"Duplicate constructor in the same class"),n=!0):u.key&&u.key.type==="PrivateIdentifier"&&wt(s,u)&&this.raiseRecoverable(u.key.start,"Identifier '#"+u.key.name+"' has already been declared"))}return this.strict=i,this.next(),e.body=this.finishNode(r,"ClassBody"),this.exitClassBody(),this.finishNode(e,t?"ClassDeclaration":"ClassExpression")},l.parseClassElement=function(e){if(this.eat(a.semi))return null;var t=this.options.ecmaVersion,i=this.startNode(),s="",r=!1,n=!1,u="method",o=!1;if(this.eatContextual("static")){if(t>=13&&this.eat(a.braceL))return this.parseClassStaticBlock(i),i;this.isClassElementNameStart()||this.type===a.star?o=!0:s="static"}if(i.static=o,!s&&t>=8&&this.eatContextual("async")&&((this.isClassElementNameStart()||this.type===a.star)&&!this.canInsertSemicolon()?n=!0:s="async"),!s&&(t>=9||!n)&&this.eat(a.star)&&(r=!0),!s&&!n&&!r){var h=this.value;(this.eatContextual("get")||this.eatContextual("set"))&&(this.isClassElementNameStart()?u=h:s=h)}if(s?(i.computed=!1,i.key=this.startNodeAt(this.lastTokStart,this.lastTokStartLoc),i.key.name=s,this.finishNode(i.key,"Identifier")):this.parseClassElementName(i),t<13||this.type===a.parenL||u!=="method"||r||n){var f=!i.static&&ie(i,"constructor"),d=f&&e;f&&u!=="method"&&this.raise(i.key.start,"Constructor can't have get/set modifier"),i.kind=f?"constructor":u,this.parseClassMethod(i,r,n,d)}else this.parseClassField(i);return i},l.isClassElementNameStart=function(){return this.type===a.name||this.type===a.privateId||this.type===a.num||this.type===a.string||this.type===a.bracketL||this.type.keyword},l.parseClassElementName=function(e){this.type===a.privateId?(this.value==="constructor"&&this.raise(this.start,"Classes can't have an element named '#constructor'"),e.computed=!1,e.key=this.parsePrivateIdent()):this.parsePropertyName(e)},l.parseClassMethod=function(e,t,i,s){var r=e.key;e.kind==="constructor"?(t&&this.raise(r.start,"Constructor can't be a generator"),i&&this.raise(r.start,"Constructor can't be an async method")):e.static&&ie(e,"prototype")&&this.raise(r.start,"Classes may not have a static property named prototype");var n=e.value=this.parseMethod(t,i,s);return e.kind==="get"&&n.params.length!==0&&this.raiseRecoverable(n.start,"getter should have no params"),e.kind==="set"&&n.params.length!==1&&this.raiseRecoverable(n.start,"setter should have exactly one param"),e.kind==="set"&&n.params[0].type==="RestElement"&&this.raiseRecoverable(n.params[0].start,"Setter cannot use rest params"),this.finishNode(e,"MethodDefinition")},l.parseClassField=function(e){if(ie(e,"constructor")?this.raise(e.key.start,"Classes can't have a field named 'constructor'"):e.static&&ie(e,"prototype")&&this.raise(e.key.start,"Classes can't have a static field named 'prototype'"),this.eat(a.eq)){var t=this.currentThisScope(),i=t.inClassFieldInit;t.inClassFieldInit=!0,e.value=this.parseMaybeAssign(),t.inClassFieldInit=i}else e.value=null;return this.semicolon(),this.finishNode(e,"PropertyDefinition")},l.parseClassStaticBlock=function(e){e.body=[];var t=this.labels;for(this.labels=[],this.enterScope(Y|fe);this.type!==a.braceR;){var i=this.parseStatement(null);e.body.push(i)}return this.next(),this.exitScope(),this.labels=t,this.finishNode(e,"StaticBlock")},l.parseClassId=function(e,t){this.type===a.name?(e.id=this.parseIdent(),t&&this.checkLValSimple(e.id,T,!1)):(t===!0&&this.unexpected(),e.id=null)},l.parseClassSuper=function(e){e.superClass=this.eat(a._extends)?this.parseExprSubscripts(null,!1):null},l.enterClassBody=function(){var e={declared:Object.create(null),used:[]};return this.privateNameStack.push(e),e.declared},l.exitClassBody=function(){var e=this.privateNameStack.pop(),t=e.declared,i=e.used;if(this.options.checkPrivateFields)for(var s=this.privateNameStack.length,r=s===0?null:this.privateNameStack[s-1],n=0;n<i.length;++n){var u=i[n];z(t,u.name)||(r?r.used.push(u):this.raiseRecoverable(u.start,"Private field '#"+u.name+"' must be declared in an enclosing class"))}};function wt(e,t){var i=t.key.name,s=e[i],r="true";return t.type==="MethodDefinition"&&(t.kind==="get"||t.kind==="set")&&(r=(t.static?"s":"i")+t.kind),s==="iget"&&r==="iset"||s==="iset"&&r==="iget"||s==="sget"&&r==="sset"||s==="sset"&&r==="sget"?(e[i]="true",!1):s?!0:(e[i]=r,!1)}function ie(e,t){var i=e.computed,s=e.key;return!i&&(s.type==="Identifier"&&s.name===t||s.type==="Literal"&&s.value===t)}l.parseExportAllDeclaration=function(e,t){return this.options.ecmaVersion>=11&&(this.eatContextual("as")?(e.exported=this.parseModuleExportName(),this.checkExport(t,e.exported,this.lastTokStart)):e.exported=null),this.expectContextual("from"),this.type!==a.string&&this.unexpected(),e.source=this.parseExprAtom(),this.semicolon(),this.finishNode(e,"ExportAllDeclaration")},l.parseExport=function(e,t){if(this.next(),this.eat(a.star))return this.parseExportAllDeclaration(e,t);if(this.eat(a._default))return this.checkExport(t,"default",this.lastTokStart),e.declaration=this.parseExportDefaultDeclaration(),this.finishNode(e,"ExportDefaultDeclaration");if(this.shouldParseExportStatement())e.declaration=this.parseExportDeclaration(e),e.declaration.type==="VariableDeclaration"?this.checkVariableExport(t,e.declaration.declarations):this.checkExport(t,e.declaration.id,e.declaration.id.start),e.specifiers=[],e.source=null;else{if(e.declaration=null,e.specifiers=this.parseExportSpecifiers(t),this.eatContextual("from"))this.type!==a.string&&this.unexpected(),e.source=this.parseExprAtom();else{for(var i=0,s=e.specifiers;i<s.length;i+=1){var r=s[i];this.checkUnreserved(r.local),this.checkLocalExport(r.local),r.local.type==="Literal"&&this.raise(r.local.start,"A string literal cannot be used as an exported binding without `from`.")}e.source=null}this.semicolon()}return this.finishNode(e,"ExportNamedDeclaration")},l.parseExportDeclaration=function(e){return this.parseStatement(null)},l.parseExportDefaultDeclaration=function(){var e;if(this.type===a._function||(e=this.isAsyncFunction())){var t=this.startNode();return this.next(),e&&this.next(),this.parseFunction(t,X|Fe,!1,e)}else if(this.type===a._class){var i=this.startNode();return this.parseClass(i,"nullableID")}else{var s=this.parseMaybeAssign();return this.semicolon(),s}},l.checkExport=function(e,t,i){e&&(typeof t!="string"&&(t=t.type==="Identifier"?t.name:t.value),z(e,t)&&this.raiseRecoverable(i,"Duplicate export '"+t+"'"),e[t]=!0)},l.checkPatternExport=function(e,t){var i=t.type;if(i==="Identifier")this.checkExport(e,t,t.start);else if(i==="ObjectPattern")for(var s=0,r=t.properties;s<r.length;s+=1){var n=r[s];this.checkPatternExport(e,n)}else if(i==="ArrayPattern")for(var u=0,o=t.elements;u<o.length;u+=1){var h=o[u];h&&this.checkPatternExport(e,h)}else i==="Property"?this.checkPatternExport(e,t.value):i==="AssignmentPattern"?this.checkPatternExport(e,t.left):i==="RestElement"&&this.checkPatternExport(e,t.argument)},l.checkVariableExport=function(e,t){if(e)for(var i=0,s=t;i<s.length;i+=1){var r=s[i];this.checkPatternExport(e,r.id)}},l.shouldParseExportStatement=function(){return this.type.keyword==="var"||this.type.keyword==="const"||this.type.keyword==="class"||this.type.keyword==="function"||this.isLet()||this.isAsyncFunction()},l.parseExportSpecifier=function(e){var t=this.startNode();return t.local=this.parseModuleExportName(),t.exported=this.eatContextual("as")?this.parseModuleExportName():t.local,this.checkExport(e,t.exported,t.exported.start),this.finishNode(t,"ExportSpecifier")},l.parseExportSpecifiers=function(e){var t=[],i=!0;for(this.expect(a.braceL);!this.eat(a.braceR);){if(i)i=!1;else if(this.expect(a.comma),this.afterTrailingComma(a.braceR))break;t.push(this.parseExportSpecifier(e))}return t},l.parseImport=function(e){return this.next(),this.type===a.string?(e.specifiers=St,e.source=this.parseExprAtom()):(e.specifiers=this.parseImportSpecifiers(),this.expectContextual("from"),e.source=this.type===a.string?this.parseExprAtom():this.unexpected()),this.semicolon(),this.finishNode(e,"ImportDeclaration")},l.parseImportSpecifier=function(){var e=this.startNode();return e.imported=this.parseModuleExportName(),this.eatContextual("as")?e.local=this.parseIdent():(this.checkUnreserved(e.imported),e.local=e.imported),this.checkLValSimple(e.local,T),this.finishNode(e,"ImportSpecifier")},l.parseImportDefaultSpecifier=function(){var e=this.startNode();return e.local=this.parseIdent(),this.checkLValSimple(e.local,T),this.finishNode(e,"ImportDefaultSpecifier")},l.parseImportNamespaceSpecifier=function(){var e=this.startNode();return this.next(),this.expectContextual("as"),e.local=this.parseIdent(),this.checkLValSimple(e.local,T),this.finishNode(e,"ImportNamespaceSpecifier")},l.parseImportSpecifiers=function(){var e=[],t=!0;if(this.type===a.name&&(e.push(this.parseImportDefaultSpecifier()),!this.eat(a.comma)))return e;if(this.type===a.star)return e.push(this.parseImportNamespaceSpecifier()),e;for(this.expect(a.braceL);!this.eat(a.braceR);){if(t)t=!1;else if(this.expect(a.comma),this.afterTrailingComma(a.braceR))break;e.push(this.parseImportSpecifier())}return e},l.parseModuleExportName=function(){if(this.options.ecmaVersion>=13&&this.type===a.string){var e=this.parseLiteral(this.value);return bt.test(e.value)&&this.raise(e.start,"An export name cannot include a lone surrogate."),e}return this.parseIdent(!0)},l.adaptDirectivePrologue=function(e){for(var t=0;t<e.length&&this.isDirectiveCandidate(e[t]);++t)e[t].directive=e[t].expression.raw.slice(1,-1)},l.isDirectiveCandidate=function(e){return this.options.ecmaVersion>=5&&e.type==="ExpressionStatement"&&e.expression.type==="Literal"&&typeof e.expression.value=="string"&&(this.input[e.start]==='"'||this.input[e.start]==="'")};var A=b.prototype;A.toAssignable=function(e,t,i){if(this.options.ecmaVersion>=6&&e)switch(e.type){case"Identifier":this.inAsync&&e.name==="await"&&this.raise(e.start,"Cannot use 'await' as identifier inside an async function");break;case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":break;case"ObjectExpression":e.type="ObjectPattern",i&&this.checkPatternErrors(i,!0);for(var s=0,r=e.properties;s<r.length;s+=1){var n=r[s];this.toAssignable(n,t),n.type==="RestElement"&&(n.argument.type==="ArrayPattern"||n.argument.type==="ObjectPattern")&&this.raise(n.argument.start,"Unexpected token")}break;case"Property":e.kind!=="init"&&this.raise(e.key.start,"Object pattern can't contain getter or setter"),this.toAssignable(e.value,t);break;case"ArrayExpression":e.type="ArrayPattern",i&&this.checkPatternErrors(i,!0),this.toAssignableList(e.elements,t);break;case"SpreadElement":e.type="RestElement",this.toAssignable(e.argument,t),e.argument.type==="AssignmentPattern"&&this.raise(e.argument.start,"Rest elements cannot have a default value");break;case"AssignmentExpression":e.operator!=="="&&this.raise(e.left.end,"Only '=' operator can be used for specifying default value."),e.type="AssignmentPattern",delete e.operator,this.toAssignable(e.left,t);break;case"ParenthesizedExpression":this.toAssignable(e.expression,t,i);break;case"ChainExpression":this.raiseRecoverable(e.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":if(!t)break;default:this.raise(e.start,"Assigning to rvalue")}else i&&this.checkPatternErrors(i,!0);return e},A.toAssignableList=function(e,t){for(var i=e.length,s=0;s<i;s++){var r=e[s];r&&this.toAssignable(r,t)}if(i){var n=e[i-1];this.options.ecmaVersion===6&&t&&n&&n.type==="RestElement"&&n.argument.type!=="Identifier"&&this.unexpected(n.argument.start)}return e},A.parseSpread=function(e){var t=this.startNode();return this.next(),t.argument=this.parseMaybeAssign(!1,e),this.finishNode(t,"SpreadElement")},A.parseRestBinding=function(){var e=this.startNode();return this.next(),this.options.ecmaVersion===6&&this.type!==a.name&&this.unexpected(),e.argument=this.parseBindingAtom(),this.finishNode(e,"RestElement")},A.parseBindingAtom=function(){if(this.options.ecmaVersion>=6)switch(this.type){case a.bracketL:var e=this.startNode();return this.next(),e.elements=this.parseBindingList(a.bracketR,!0,!0),this.finishNode(e,"ArrayPattern");case a.braceL:return this.parseObj(!0)}return this.parseIdent()},A.parseBindingList=function(e,t,i,s){for(var r=[],n=!0;!this.eat(e);)if(n?n=!1:this.expect(a.comma),t&&this.type===a.comma)r.push(null);else{if(i&&this.afterTrailingComma(e))break;if(this.type===a.ellipsis){var u=this.parseRestBinding();this.parseBindingListItem(u),r.push(u),this.type===a.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.expect(e);break}else r.push(this.parseAssignableListItem(s))}return r},A.parseAssignableListItem=function(e){var t=this.parseMaybeDefault(this.start,this.startLoc);return this.parseBindingListItem(t),t},A.parseBindingListItem=function(e){return e},A.parseMaybeDefault=function(e,t,i){if(i=i||this.parseBindingAtom(),this.options.ecmaVersion<6||!this.eat(a.eq))return i;var s=this.startNodeAt(e,t);return s.left=i,s.right=this.parseMaybeAssign(),this.finishNode(s,"AssignmentPattern")},A.checkLValSimple=function(e,t,i){t===void 0&&(t=ee);var s=t!==ee;switch(e.type){case"Identifier":this.strict&&this.reservedWordsStrictBind.test(e.name)&&this.raiseRecoverable(e.start,(s?"Binding ":"Assigning to ")+e.name+" in strict mode"),s&&(t===T&&e.name==="let"&&this.raiseRecoverable(e.start,"let is disallowed as a lexically bound name"),i&&(z(i,e.name)&&this.raiseRecoverable(e.start,"Argument name clash"),i[e.name]=!0),t!==Be&&this.declareName(e.name,t,e.start));break;case"ChainExpression":this.raiseRecoverable(e.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":s&&this.raiseRecoverable(e.start,"Binding member expression");break;case"ParenthesizedExpression":return s&&this.raiseRecoverable(e.start,"Binding parenthesized expression"),this.checkLValSimple(e.expression,t,i);default:this.raise(e.start,(s?"Binding":"Assigning to")+" rvalue")}},A.checkLValPattern=function(e,t,i){switch(t===void 0&&(t=ee),e.type){case"ObjectPattern":for(var s=0,r=e.properties;s<r.length;s+=1){var n=r[s];this.checkLValInnerPattern(n,t,i)}break;case"ArrayPattern":for(var u=0,o=e.elements;u<o.length;u+=1){var h=o[u];h&&this.checkLValInnerPattern(h,t,i)}break;default:this.checkLValSimple(e,t,i)}},A.checkLValInnerPattern=function(e,t,i){switch(t===void 0&&(t=ee),e.type){case"Property":this.checkLValInnerPattern(e.value,t,i);break;case"AssignmentPattern":this.checkLValPattern(e.left,t,i);break;case"RestElement":this.checkLValPattern(e.argument,t,i);break;default:this.checkLValPattern(e,t,i)}};var P=function(t,i,s,r,n){this.token=t,this.isExpr=!!i,this.preserveSpace=!!s,this.override=r,this.generator=!!n},g={b_stat:new P("{",!1),b_expr:new P("{",!0),b_tmpl:new P("${",!1),p_stat:new P("(",!1),p_expr:new P("(",!0),q_tmpl:new P("`",!0,!0,function(e){return e.tryReadTemplateToken()}),f_stat:new P("function",!1),f_expr:new P("function",!0),f_expr_gen:new P("function",!0,!1,null,!0),f_gen:new P("function",!1,!1,null,!0)},j=b.prototype;j.initialContext=function(){return[g.b_stat]},j.curContext=function(){return this.context[this.context.length-1]},j.braceIsBlock=function(e){var t=this.curContext();return t===g.f_expr||t===g.f_stat?!0:e===a.colon&&(t===g.b_stat||t===g.b_expr)?!t.isExpr:e===a._return||e===a.name&&this.exprAllowed?w.test(this.input.slice(this.lastTokEnd,this.start)):e===a._else||e===a.semi||e===a.eof||e===a.parenR||e===a.arrow?!0:e===a.braceL?t===g.b_stat:e===a._var||e===a._const||e===a.name?!1:!this.exprAllowed},j.inGeneratorContext=function(){for(var e=this.context.length-1;e>=1;e--){var t=this.context[e];if(t.token==="function")return t.generator}return!1},j.updateContext=function(e){var t,i=this.type;i.keyword&&e===a.dot?this.exprAllowed=!1:(t=i.updateContext)?t.call(this,e):this.exprAllowed=i.beforeExpr},j.overrideContext=function(e){this.curContext()!==e&&(this.context[this.context.length-1]=e)},a.parenR.updateContext=a.braceR.updateContext=function(){if(this.context.length===1){this.exprAllowed=!0;return}var e=this.context.pop();e===g.b_stat&&this.curContext().token==="function"&&(e=this.context.pop()),this.exprAllowed=!e.isExpr},a.braceL.updateContext=function(e){this.context.push(this.braceIsBlock(e)?g.b_stat:g.b_expr),this.exprAllowed=!0},a.dollarBraceL.updateContext=function(){this.context.push(g.b_tmpl),this.exprAllowed=!0},a.parenL.updateContext=function(e){var t=e===a._if||e===a._for||e===a._with||e===a._while;this.context.push(t?g.p_stat:g.p_expr),this.exprAllowed=!0},a.incDec.updateContext=function(){},a._function.updateContext=a._class.updateContext=function(e){e.beforeExpr&&e!==a._else&&!(e===a.semi&&this.curContext()!==g.p_stat)&&!(e===a._return&&w.test(this.input.slice(this.lastTokEnd,this.start)))&&!((e===a.colon||e===a.braceL)&&this.curContext()===g.b_stat)?this.context.push(g.f_expr):this.context.push(g.f_stat),this.exprAllowed=!1},a.colon.updateContext=function(){this.curContext().token==="function"&&this.context.pop(),this.exprAllowed=!0},a.backQuote.updateContext=function(){this.curContext()===g.q_tmpl?this.context.pop():this.context.push(g.q_tmpl),this.exprAllowed=!1},a.star.updateContext=function(e){if(e===a._function){var t=this.context.length-1;this.context[t]===g.f_expr?this.context[t]=g.f_expr_gen:this.context[t]=g.f_gen}this.exprAllowed=!0},a.name.updateContext=function(e){var t=!1;this.options.ecmaVersion>=6&&e!==a.dot&&(this.value==="of"&&!this.exprAllowed||this.value==="yield"&&this.inGeneratorContext())&&(t=!0),this.exprAllowed=t};var p=b.prototype;p.checkPropClash=function(e,t,i){if(!(this.options.ecmaVersion>=9&&e.type==="SpreadElement")&&!(this.options.ecmaVersion>=6&&(e.computed||e.method||e.shorthand))){var s=e.key,r;switch(s.type){case"Identifier":r=s.name;break;case"Literal":r=String(s.value);break;default:return}var n=e.kind;if(this.options.ecmaVersion>=6){r==="__proto__"&&n==="init"&&(t.proto&&(i?i.doubleProto<0&&(i.doubleProto=s.start):this.raiseRecoverable(s.start,"Redefinition of __proto__ property")),t.proto=!0);return}r="$"+r;var u=t[r];if(u){var o;n==="init"?o=this.strict&&u.init||u.get||u.set:o=u.init||u[n],o&&this.raiseRecoverable(s.start,"Redefinition of property")}else u=t[r]={init:!1,get:!1,set:!1};u[n]=!0}},p.parseExpression=function(e,t){var i=this.start,s=this.startLoc,r=this.parseMaybeAssign(e,t);if(this.type===a.comma){var n=this.startNodeAt(i,s);for(n.expressions=[r];this.eat(a.comma);)n.expressions.push(this.parseMaybeAssign(e,t));return this.finishNode(n,"SequenceExpression")}return r},p.parseMaybeAssign=function(e,t,i){if(this.isContextual("yield")){if(this.inGenerator)return this.parseYield(e);this.exprAllowed=!1}var s=!1,r=-1,n=-1,u=-1;t?(r=t.parenthesizedAssign,n=t.trailingComma,u=t.doubleProto,t.parenthesizedAssign=t.trailingComma=-1):(t=new te,s=!0);var o=this.start,h=this.startLoc;(this.type===a.parenL||this.type===a.name)&&(this.potentialArrowAt=this.start,this.potentialArrowInForAwait=e==="await");var f=this.parseMaybeConditional(e,t);if(i&&(f=i.call(this,f,o,h)),this.type.isAssign){var d=this.startNodeAt(o,h);return d.operator=this.value,this.type===a.eq&&(f=this.toAssignable(f,!1,t)),s||(t.parenthesizedAssign=t.trailingComma=t.doubleProto=-1),t.shorthandAssign>=f.start&&(t.shorthandAssign=-1),this.type===a.eq?this.checkLValPattern(f):this.checkLValSimple(f),d.left=f,this.next(),d.right=this.parseMaybeAssign(e),u>-1&&(t.doubleProto=u),this.finishNode(d,"AssignmentExpression")}else s&&this.checkExpressionErrors(t,!0);return r>-1&&(t.parenthesizedAssign=r),n>-1&&(t.trailingComma=n),f},p.parseMaybeConditional=function(e,t){var i=this.start,s=this.startLoc,r=this.parseExprOps(e,t);if(this.checkExpressionErrors(t))return r;if(this.eat(a.question)){var n=this.startNodeAt(i,s);return n.test=r,n.consequent=this.parseMaybeAssign(),this.expect(a.colon),n.alternate=this.parseMaybeAssign(e),this.finishNode(n,"ConditionalExpression")}return r},p.parseExprOps=function(e,t){var i=this.start,s=this.startLoc,r=this.parseMaybeUnary(t,!1,!1,e);return this.checkExpressionErrors(t)||r.start===i&&r.type==="ArrowFunctionExpression"?r:this.parseExprOp(r,i,s,-1,e)},p.parseExprOp=function(e,t,i,s,r){var n=this.type.binop;if(n!=null&&(!r||this.type!==a._in)&&n>s){var u=this.type===a.logicalOR||this.type===a.logicalAND,o=this.type===a.coalesce;o&&(n=a.logicalAND.binop);var h=this.value;this.next();var f=this.start,d=this.startLoc,y=this.parseExprOp(this.parseMaybeUnary(null,!1,!1,r),f,d,n,r),D=this.buildBinary(t,i,e,y,h,u||o);return(u&&this.type===a.coalesce||o&&(this.type===a.logicalOR||this.type===a.logicalAND))&&this.raiseRecoverable(this.start,"Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses"),this.parseExprOp(D,t,i,s,r)}return e},p.buildBinary=function(e,t,i,s,r,n){s.type==="PrivateIdentifier"&&this.raise(s.start,"Private identifier can only be left side of binary expression");var u=this.startNodeAt(e,t);return u.left=i,u.operator=r,u.right=s,this.finishNode(u,n?"LogicalExpression":"BinaryExpression")},p.parseMaybeUnary=function(e,t,i,s){var r=this.start,n=this.startLoc,u;if(this.isContextual("await")&&this.canAwait)u=this.parseAwait(s),t=!0;else if(this.type.prefix){var o=this.startNode(),h=this.type===a.incDec;o.operator=this.value,o.prefix=!0,this.next(),o.argument=this.parseMaybeUnary(null,!0,h,s),this.checkExpressionErrors(e,!0),h?this.checkLValSimple(o.argument):this.strict&&o.operator==="delete"&&o.argument.type==="Identifier"?this.raiseRecoverable(o.start,"Deleting local variable in strict mode"):o.operator==="delete"&&De(o.argument)?this.raiseRecoverable(o.start,"Private fields can not be deleted"):t=!0,u=this.finishNode(o,h?"UpdateExpression":"UnaryExpression")}else if(!t&&this.type===a.privateId)(s||this.privateNameStack.length===0)&&this.options.checkPrivateFields&&this.unexpected(),u=this.parsePrivateIdent(),this.type!==a._in&&this.unexpected();else{if(u=this.parseExprSubscripts(e,s),this.checkExpressionErrors(e))return u;for(;this.type.postfix&&!this.canInsertSemicolon();){var f=this.startNodeAt(r,n);f.operator=this.value,f.prefix=!1,f.argument=u,this.checkLValSimple(u),this.next(),u=this.finishNode(f,"UpdateExpression")}}if(!i&&this.eat(a.starstar))if(t)this.unexpected(this.lastTokStart);else return this.buildBinary(r,n,u,this.parseMaybeUnary(null,!1,!1,s),"**",!1);else return u};function De(e){return e.type==="MemberExpression"&&e.property.type==="PrivateIdentifier"||e.type==="ChainExpression"&&De(e.expression)}p.parseExprSubscripts=function(e,t){var i=this.start,s=this.startLoc,r=this.parseExprAtom(e,t);if(r.type==="ArrowFunctionExpression"&&this.input.slice(this.lastTokStart,this.lastTokEnd)!==")")return r;var n=this.parseSubscripts(r,i,s,!1,t);return e&&n.type==="MemberExpression"&&(e.parenthesizedAssign>=n.start&&(e.parenthesizedAssign=-1),e.parenthesizedBind>=n.start&&(e.parenthesizedBind=-1),e.trailingComma>=n.start&&(e.trailingComma=-1)),n},p.parseSubscripts=function(e,t,i,s,r){for(var n=this.options.ecmaVersion>=8&&e.type==="Identifier"&&e.name==="async"&&this.lastTokEnd===e.end&&!this.canInsertSemicolon()&&e.end-e.start===5&&this.potentialArrowAt===e.start,u=!1;;){var o=this.parseSubscript(e,t,i,s,n,u,r);if(o.optional&&(u=!0),o===e||o.type==="ArrowFunctionExpression"){if(u){var h=this.startNodeAt(t,i);h.expression=o,o=this.finishNode(h,"ChainExpression")}return o}e=o}},p.shouldParseAsyncArrow=function(){return!this.canInsertSemicolon()&&this.eat(a.arrow)},p.parseSubscriptAsyncArrow=function(e,t,i,s){return this.parseArrowExpression(this.startNodeAt(e,t),i,!0,s)},p.parseSubscript=function(e,t,i,s,r,n,u){var o=this.options.ecmaVersion>=11,h=o&&this.eat(a.questionDot);s&&h&&this.raise(this.lastTokStart,"Optional chaining cannot appear in the callee of new expressions");var f=this.eat(a.bracketL);if(f||h&&this.type!==a.parenL&&this.type!==a.backQuote||this.eat(a.dot)){var d=this.startNodeAt(t,i);d.object=e,f?(d.property=this.parseExpression(),this.expect(a.bracketR)):this.type===a.privateId&&e.type!=="Super"?d.property=this.parsePrivateIdent():d.property=this.parseIdent(this.options.allowReserved!=="never"),d.computed=!!f,o&&(d.optional=h),e=this.finishNode(d,"MemberExpression")}else if(!s&&this.eat(a.parenL)){var y=new te,D=this.yieldPos,J=this.awaitPos,G=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;var ne=this.parseExprList(a.parenR,this.options.ecmaVersion>=8,!1,y);if(r&&!h&&this.shouldParseAsyncArrow())return this.checkPatternErrors(y,!1),this.checkYieldAwaitInDefaultParams(),this.awaitIdentPos>0&&this.raise(this.awaitIdentPos,"Cannot use 'await' as identifier inside an async function"),this.yieldPos=D,this.awaitPos=J,this.awaitIdentPos=G,this.parseSubscriptAsyncArrow(t,i,ne,u);this.checkExpressionErrors(y,!0),this.yieldPos=D||this.yieldPos,this.awaitPos=J||this.awaitPos,this.awaitIdentPos=G||this.awaitIdentPos;var H=this.startNodeAt(t,i);H.callee=e,H.arguments=ne,o&&(H.optional=h),e=this.finishNode(H,"CallExpression")}else if(this.type===a.backQuote){(h||n)&&this.raise(this.start,"Optional chaining cannot appear in the tag of tagged template expressions");var W=this.startNodeAt(t,i);W.tag=e,W.quasi=this.parseTemplate({isTagged:!0}),e=this.finishNode(W,"TaggedTemplateExpression")}return e},p.parseExprAtom=function(e,t,i){this.type===a.slash&&this.readRegexp();var s,r=this.potentialArrowAt===this.start;switch(this.type){case a._super:return this.allowSuper||this.raise(this.start,"'super' keyword outside a method"),s=this.startNode(),this.next(),this.type===a.parenL&&!this.allowDirectSuper&&this.raise(s.start,"super() call outside constructor of a subclass"),this.type!==a.dot&&this.type!==a.bracketL&&this.type!==a.parenL&&this.unexpected(),this.finishNode(s,"Super");case a._this:return s=this.startNode(),this.next(),this.finishNode(s,"ThisExpression");case a.name:var n=this.start,u=this.startLoc,o=this.containsEsc,h=this.parseIdent(!1);if(this.options.ecmaVersion>=8&&!o&&h.name==="async"&&!this.canInsertSemicolon()&&this.eat(a._function))return this.overrideContext(g.f_expr),this.parseFunction(this.startNodeAt(n,u),0,!1,!0,t);if(r&&!this.canInsertSemicolon()){if(this.eat(a.arrow))return this.parseArrowExpression(this.startNodeAt(n,u),[h],!1,t);if(this.options.ecmaVersion>=8&&h.name==="async"&&this.type===a.name&&!o&&(!this.potentialArrowInForAwait||this.value!=="of"||this.containsEsc))return h=this.parseIdent(!1),(this.canInsertSemicolon()||!this.eat(a.arrow))&&this.unexpected(),this.parseArrowExpression(this.startNodeAt(n,u),[h],!0,t)}return h;case a.regexp:var f=this.value;return s=this.parseLiteral(f.value),s.regex={pattern:f.pattern,flags:f.flags},s;case a.num:case a.string:return this.parseLiteral(this.value);case a._null:case a._true:case a._false:return s=this.startNode(),s.value=this.type===a._null?null:this.type===a._true,s.raw=this.type.keyword,this.next(),this.finishNode(s,"Literal");case a.parenL:var d=this.start,y=this.parseParenAndDistinguishExpression(r,t);return e&&(e.parenthesizedAssign<0&&!this.isSimpleAssignTarget(y)&&(e.parenthesizedAssign=d),e.parenthesizedBind<0&&(e.parenthesizedBind=d)),y;case a.bracketL:return s=this.startNode(),this.next(),s.elements=this.parseExprList(a.bracketR,!0,!0,e),this.finishNode(s,"ArrayExpression");case a.braceL:return this.overrideContext(g.b_expr),this.parseObj(!1,e);case a._function:return s=this.startNode(),this.next(),this.parseFunction(s,0);case a._class:return this.parseClass(this.startNode(),!1);case a._new:return this.parseNew();case a.backQuote:return this.parseTemplate();case a._import:return this.options.ecmaVersion>=11?this.parseExprImport(i):this.unexpected();default:return this.parseExprAtomDefault()}},p.parseExprAtomDefault=function(){this.unexpected()},p.parseExprImport=function(e){var t=this.startNode();this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword import");var i=this.parseIdent(!0);if(this.type===a.parenL&&!e)return this.parseDynamicImport(t);if(this.type===a.dot)return t.meta=i,this.parseImportMeta(t);this.unexpected()},p.parseDynamicImport=function(e){if(this.next(),e.source=this.parseMaybeAssign(),!this.eat(a.parenR)){var t=this.start;this.eat(a.comma)&&this.eat(a.parenR)?this.raiseRecoverable(t,"Trailing comma is not allowed in import()"):this.unexpected(t)}return this.finishNode(e,"ImportExpression")},p.parseImportMeta=function(e){this.next();var t=this.containsEsc;return e.property=this.parseIdent(!0),e.property.name!=="meta"&&this.raiseRecoverable(e.property.start,"The only valid meta property for import is 'import.meta'"),t&&this.raiseRecoverable(e.start,"'import.meta' must not contain escaped characters"),this.options.sourceType!=="module"&&!this.options.allowImportExportEverywhere&&this.raiseRecoverable(e.start,"Cannot use 'import.meta' outside a module"),this.finishNode(e,"MetaProperty")},p.parseLiteral=function(e){var t=this.startNode();return t.value=e,t.raw=this.input.slice(this.start,this.end),t.raw.charCodeAt(t.raw.length-1)===110&&(t.bigint=t.raw.slice(0,-1).replace(/_/g,"")),this.next(),this.finishNode(t,"Literal")},p.parseParenExpression=function(){this.expect(a.parenL);var e=this.parseExpression();return this.expect(a.parenR),e},p.shouldParseArrow=function(e){return!this.canInsertSemicolon()},p.parseParenAndDistinguishExpression=function(e,t){var i=this.start,s=this.startLoc,r,n=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var u=this.start,o=this.startLoc,h=[],f=!0,d=!1,y=new te,D=this.yieldPos,J=this.awaitPos,G;for(this.yieldPos=0,this.awaitPos=0;this.type!==a.parenR;)if(f?f=!1:this.expect(a.comma),n&&this.afterTrailingComma(a.parenR,!0)){d=!0;break}else if(this.type===a.ellipsis){G=this.start,h.push(this.parseParenItem(this.parseRestBinding())),this.type===a.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element");break}else h.push(this.parseMaybeAssign(!1,y,this.parseParenItem));var ne=this.lastTokEnd,H=this.lastTokEndLoc;if(this.expect(a.parenR),e&&this.shouldParseArrow(h)&&this.eat(a.arrow))return this.checkPatternErrors(y,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=D,this.awaitPos=J,this.parseParenArrowList(i,s,h,t);(!h.length||d)&&this.unexpected(this.lastTokStart),G&&this.unexpected(G),this.checkExpressionErrors(y,!0),this.yieldPos=D||this.yieldPos,this.awaitPos=J||this.awaitPos,h.length>1?(r=this.startNodeAt(u,o),r.expressions=h,this.finishNodeAt(r,"SequenceExpression",ne,H)):r=h[0]}else r=this.parseParenExpression();if(this.options.preserveParens){var W=this.startNodeAt(i,s);return W.expression=r,this.finishNode(W,"ParenthesizedExpression")}else return r},p.parseParenItem=function(e){return e},p.parseParenArrowList=function(e,t,i,s){return this.parseArrowExpression(this.startNodeAt(e,t),i,!1,s)};var Et=[];p.parseNew=function(){this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword new");var e=this.startNode();if(this.next(),this.options.ecmaVersion>=6&&this.type===a.dot){var t=this.startNodeAt(e.start,e.startLoc);t.name="new",e.meta=this.finishNode(t,"Identifier"),this.next();var i=this.containsEsc;return e.property=this.parseIdent(!0),e.property.name!=="target"&&this.raiseRecoverable(e.property.start,"The only valid meta property for new is 'new.target'"),i&&this.raiseRecoverable(e.start,"'new.target' must not contain escaped characters"),this.allowNewDotTarget||this.raiseRecoverable(e.start,"'new.target' can only be used in functions and class static block"),this.finishNode(e,"MetaProperty")}var s=this.start,r=this.startLoc;return e.callee=this.parseSubscripts(this.parseExprAtom(null,!1,!0),s,r,!0,!1),this.eat(a.parenL)?e.arguments=this.parseExprList(a.parenR,this.options.ecmaVersion>=8,!1):e.arguments=Et,this.finishNode(e,"NewExpression")},p.parseTemplateElement=function(e){var t=e.isTagged,i=this.startNode();return this.type===a.invalidTemplate?(t||this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal"),i.value={raw:this.value,cooked:null}):i.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,`
|
|
4
|
-
`),cooked:this.value},this.next(),i.tail=this.type===a.backQuote,this.finishNode(i,"TemplateElement")},p.parseTemplate=function(e){e===void 0&&(e={});var t=e.isTagged;t===void 0&&(t=!1);var i=this.startNode();this.next(),i.expressions=[];var s=this.parseTemplateElement({isTagged:t});for(i.quasis=[s];!s.tail;)this.type===a.eof&&this.raise(this.pos,"Unterminated template literal"),this.expect(a.dollarBraceL),i.expressions.push(this.parseExpression()),this.expect(a.braceR),i.quasis.push(s=this.parseTemplateElement({isTagged:t}));return this.next(),this.finishNode(i,"TemplateLiteral")},p.isAsyncProp=function(e){return!e.computed&&e.key.type==="Identifier"&&e.key.name==="async"&&(this.type===a.name||this.type===a.num||this.type===a.string||this.type===a.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===a.star)&&!w.test(this.input.slice(this.lastTokEnd,this.start))},p.parseObj=function(e,t){var i=this.startNode(),s=!0,r={};for(i.properties=[],this.next();!this.eat(a.braceR);){if(s)s=!1;else if(this.expect(a.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(a.braceR))break;var n=this.parseProperty(e,t);e||this.checkPropClash(n,r,t),i.properties.push(n)}return this.finishNode(i,e?"ObjectPattern":"ObjectExpression")},p.parseProperty=function(e,t){var i=this.startNode(),s,r,n,u;if(this.options.ecmaVersion>=9&&this.eat(a.ellipsis))return e?(i.argument=this.parseIdent(!1),this.type===a.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.finishNode(i,"RestElement")):(i.argument=this.parseMaybeAssign(!1,t),this.type===a.comma&&t&&t.trailingComma<0&&(t.trailingComma=this.start),this.finishNode(i,"SpreadElement"));this.options.ecmaVersion>=6&&(i.method=!1,i.shorthand=!1,(e||t)&&(n=this.start,u=this.startLoc),e||(s=this.eat(a.star)));var o=this.containsEsc;return this.parsePropertyName(i),!e&&!o&&this.options.ecmaVersion>=8&&!s&&this.isAsyncProp(i)?(r=!0,s=this.options.ecmaVersion>=9&&this.eat(a.star),this.parsePropertyName(i)):r=!1,this.parsePropertyValue(i,e,s,r,n,u,t,o),this.finishNode(i,"Property")},p.parseGetterSetter=function(e){e.kind=e.key.name,this.parsePropertyName(e),e.value=this.parseMethod(!1);var t=e.kind==="get"?0:1;if(e.value.params.length!==t){var i=e.value.start;e.kind==="get"?this.raiseRecoverable(i,"getter should have no params"):this.raiseRecoverable(i,"setter should have exactly one param")}else e.kind==="set"&&e.value.params[0].type==="RestElement"&&this.raiseRecoverable(e.value.params[0].start,"Setter cannot use rest params")},p.parsePropertyValue=function(e,t,i,s,r,n,u,o){(i||s)&&this.type===a.colon&&this.unexpected(),this.eat(a.colon)?(e.value=t?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,u),e.kind="init"):this.options.ecmaVersion>=6&&this.type===a.parenL?(t&&this.unexpected(),e.kind="init",e.method=!0,e.value=this.parseMethod(i,s)):!t&&!o&&this.options.ecmaVersion>=5&&!e.computed&&e.key.type==="Identifier"&&(e.key.name==="get"||e.key.name==="set")&&this.type!==a.comma&&this.type!==a.braceR&&this.type!==a.eq?((i||s)&&this.unexpected(),this.parseGetterSetter(e)):this.options.ecmaVersion>=6&&!e.computed&&e.key.type==="Identifier"?((i||s)&&this.unexpected(),this.checkUnreserved(e.key),e.key.name==="await"&&!this.awaitIdentPos&&(this.awaitIdentPos=r),e.kind="init",t?e.value=this.parseMaybeDefault(r,n,this.copyNode(e.key)):this.type===a.eq&&u?(u.shorthandAssign<0&&(u.shorthandAssign=this.start),e.value=this.parseMaybeDefault(r,n,this.copyNode(e.key))):e.value=this.copyNode(e.key),e.shorthand=!0):this.unexpected()},p.parsePropertyName=function(e){if(this.options.ecmaVersion>=6){if(this.eat(a.bracketL))return e.computed=!0,e.key=this.parseMaybeAssign(),this.expect(a.bracketR),e.key;e.computed=!1}return e.key=this.type===a.num||this.type===a.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!=="never")},p.initFunction=function(e){e.id=null,this.options.ecmaVersion>=6&&(e.generator=e.expression=!1),this.options.ecmaVersion>=8&&(e.async=!1)},p.parseMethod=function(e,t,i){var s=this.startNode(),r=this.yieldPos,n=this.awaitPos,u=this.awaitIdentPos;return this.initFunction(s),this.options.ecmaVersion>=6&&(s.generator=e),this.options.ecmaVersion>=8&&(s.async=!!t),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(xe(t,s.generator)|fe|(i?Te:0)),this.expect(a.parenL),s.params=this.parseBindingList(a.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(s,!1,!0,!1),this.yieldPos=r,this.awaitPos=n,this.awaitIdentPos=u,this.finishNode(s,"FunctionExpression")},p.parseArrowExpression=function(e,t,i,s){var r=this.yieldPos,n=this.awaitPos,u=this.awaitIdentPos;return this.enterScope(xe(i,!1)|Ve),this.initFunction(e),this.options.ecmaVersion>=8&&(e.async=!!i),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,e.params=this.toAssignableList(t,!0),this.parseFunctionBody(e,!0,!1,s),this.yieldPos=r,this.awaitPos=n,this.awaitIdentPos=u,this.finishNode(e,"ArrowFunctionExpression")},p.parseFunctionBody=function(e,t,i,s){var r=t&&this.type!==a.braceL,n=this.strict,u=!1;if(r)e.body=this.parseMaybeAssign(s),e.expression=!0,this.checkParams(e,!1);else{var o=this.options.ecmaVersion>=7&&!this.isSimpleParamList(e.params);(!n||o)&&(u=this.strictDirective(this.end),u&&o&&this.raiseRecoverable(e.start,"Illegal 'use strict' directive in function with non-simple parameter list"));var h=this.labels;this.labels=[],u&&(this.strict=!0),this.checkParams(e,!n&&!u&&!t&&!i&&this.isSimpleParamList(e.params)),this.strict&&e.id&&this.checkLValSimple(e.id,Be),e.body=this.parseBlock(!1,void 0,u&&!n),e.expression=!1,this.adaptDirectivePrologue(e.body.body),this.labels=h}this.exitScope()},p.isSimpleParamList=function(e){for(var t=0,i=e;t<i.length;t+=1){var s=i[t];if(s.type!=="Identifier")return!1}return!0},p.checkParams=function(e,t){for(var i=Object.create(null),s=0,r=e.params;s<r.length;s+=1){var n=r[s];this.checkLValInnerPattern(n,me,t?null:i)}},p.parseExprList=function(e,t,i,s){for(var r=[],n=!0;!this.eat(e);){if(n)n=!1;else if(this.expect(a.comma),t&&this.afterTrailingComma(e))break;var u=void 0;i&&this.type===a.comma?u=null:this.type===a.ellipsis?(u=this.parseSpread(s),s&&this.type===a.comma&&s.trailingComma<0&&(s.trailingComma=this.start)):u=this.parseMaybeAssign(!1,s),r.push(u)}return r},p.checkUnreserved=function(e){var t=e.start,i=e.end,s=e.name;if(this.inGenerator&&s==="yield"&&this.raiseRecoverable(t,"Cannot use 'yield' as identifier inside a generator"),this.inAsync&&s==="await"&&this.raiseRecoverable(t,"Cannot use 'await' as identifier inside an async function"),this.currentThisScope().inClassFieldInit&&s==="arguments"&&this.raiseRecoverable(t,"Cannot use 'arguments' in class field initializer"),this.inClassStaticBlock&&(s==="arguments"||s==="await")&&this.raise(t,"Cannot use "+s+" in class static initialization block"),this.keywords.test(s)&&this.raise(t,"Unexpected keyword '"+s+"'"),!(this.options.ecmaVersion<6&&this.input.slice(t,i).indexOf("\\")!==-1)){var r=this.strict?this.reservedWordsStrict:this.reservedWords;r.test(s)&&(!this.inAsync&&s==="await"&&this.raiseRecoverable(t,"Cannot use keyword 'await' outside an async function"),this.raiseRecoverable(t,"The keyword '"+s+"' is reserved"))}},p.parseIdent=function(e){var t=this.parseIdentNode();return this.next(!!e),this.finishNode(t,"Identifier"),e||(this.checkUnreserved(t),t.name==="await"&&!this.awaitIdentPos&&(this.awaitIdentPos=t.start)),t},p.parseIdentNode=function(){var e=this.startNode();return this.type===a.name?e.name=this.value:this.type.keyword?(e.name=this.type.keyword,(e.name==="class"||e.name==="function")&&(this.lastTokEnd!==this.lastTokStart+1||this.input.charCodeAt(this.lastTokStart)!==46)&&this.context.pop(),this.type=a.name):this.unexpected(),e},p.parsePrivateIdent=function(){var e=this.startNode();return this.type===a.privateId?e.name=this.value:this.unexpected(),this.next(),this.finishNode(e,"PrivateIdentifier"),this.options.checkPrivateFields&&(this.privateNameStack.length===0?this.raise(e.start,"Private field '#"+e.name+"' must be declared in an enclosing class"):this.privateNameStack[this.privateNameStack.length-1].used.push(e)),e},p.parseYield=function(e){this.yieldPos||(this.yieldPos=this.start);var t=this.startNode();return this.next(),this.type===a.semi||this.canInsertSemicolon()||this.type!==a.star&&!this.type.startsExpr?(t.delegate=!1,t.argument=null):(t.delegate=this.eat(a.star),t.argument=this.parseMaybeAssign(e)),this.finishNode(t,"YieldExpression")},p.parseAwait=function(e){this.awaitPos||(this.awaitPos=this.start);var t=this.startNode();return this.next(),t.argument=this.parseMaybeUnary(null,!0,!1,e),this.finishNode(t,"AwaitExpression")};var se=b.prototype;se.raise=function(e,t){var i=Ie(this.input,e);t+=" ("+i.line+":"+i.column+")";var s=new SyntaxError(t);throw s.pos=e,s.loc=i,s.raisedAt=this.pos,s},se.raiseRecoverable=se.raise,se.curPosition=function(){if(this.options.locations)return new Q(this.curLine,this.pos-this.lineStart)};var F=b.prototype,At=function(t){this.flags=t,this.var=[],this.lexical=[],this.functions=[],this.inClassFieldInit=!1};F.enterScope=function(e){this.scopeStack.push(new At(e))},F.exitScope=function(){this.scopeStack.pop()},F.treatFunctionsAsVarInScope=function(e){return e.flags&q||!this.inModule&&e.flags&K},F.declareName=function(e,t,i){var s=!1;if(t===T){var r=this.currentScope();s=r.lexical.indexOf(e)>-1||r.functions.indexOf(e)>-1||r.var.indexOf(e)>-1,r.lexical.push(e),this.inModule&&r.flags&K&&delete this.undefinedExports[e]}else if(t===Oe){var n=this.currentScope();n.lexical.push(e)}else if(t===Re){var u=this.currentScope();this.treatFunctionsAsVar?s=u.lexical.indexOf(e)>-1:s=u.lexical.indexOf(e)>-1||u.var.indexOf(e)>-1,u.functions.push(e)}else for(var o=this.scopeStack.length-1;o>=0;--o){var h=this.scopeStack[o];if(h.lexical.indexOf(e)>-1&&!(h.flags&Le&&h.lexical[0]===e)||!this.treatFunctionsAsVarInScope(h)&&h.functions.indexOf(e)>-1){s=!0;break}if(h.var.push(e),this.inModule&&h.flags&K&&delete this.undefinedExports[e],h.flags&de)break}s&&this.raiseRecoverable(i,"Identifier '"+e+"' has already been declared")},F.checkLocalExport=function(e){this.scopeStack[0].lexical.indexOf(e.name)===-1&&this.scopeStack[0].var.indexOf(e.name)===-1&&(this.undefinedExports[e.name]=e)},F.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]},F.currentVarScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(t.flags&de)return t}},F.currentThisScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(t.flags&de&&!(t.flags&Ve))return t}};var ae=function(t,i,s){this.type="",this.start=i,this.end=0,t.options.locations&&(this.loc=new $(t,s)),t.options.directSourceFile&&(this.sourceFile=t.options.directSourceFile),t.options.ranges&&(this.range=[i,0])},Z=b.prototype;Z.startNode=function(){return new ae(this,this.start,this.startLoc)},Z.startNodeAt=function(e,t){return new ae(this,e,t)};function Me(e,t,i,s){return e.type=t,e.end=i,this.options.locations&&(e.loc.end=s),this.options.ranges&&(e.range[1]=i),e}Z.finishNode=function(e,t){return Me.call(this,e,t,this.lastTokEnd,this.lastTokEndLoc)},Z.finishNodeAt=function(e,t,i,s){return Me.call(this,e,t,i,s)},Z.copyNode=function(e){var t=new ae(this,e.start,this.startLoc);for(var i in e)t[i]=e[i];return t};var Ue="ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS",qe=Ue+" Extended_Pictographic",je=qe,Ge=je+" EBase EComp EMod EPres ExtPict",He=Ge,It=He,Pt={9:Ue,10:qe,11:je,12:Ge,13:He,14:It},Nt="Basic_Emoji Emoji_Keycap_Sequence RGI_Emoji_Modifier_Sequence RGI_Emoji_Flag_Sequence RGI_Emoji_Tag_Sequence RGI_Emoji_ZWJ_Sequence RGI_Emoji",Vt={9:"",10:"",11:"",12:"",13:"",14:Nt},We="Cased_Letter LC Close_Punctuation Pe Connector_Punctuation Pc Control Cc cntrl Currency_Symbol Sc Dash_Punctuation Pd Decimal_Number Nd digit Enclosing_Mark Me Final_Punctuation Pf Format Cf Initial_Punctuation Pi Letter L Letter_Number Nl Line_Separator Zl Lowercase_Letter Ll Mark M Combining_Mark Math_Symbol Sm Modifier_Letter Lm Modifier_Symbol Sk Nonspacing_Mark Mn Number N Open_Punctuation Ps Other C Other_Letter Lo Other_Number No Other_Punctuation Po Other_Symbol So Paragraph_Separator Zp Private_Use Co Punctuation P punct Separator Z Space_Separator Zs Spacing_Mark Mc Surrogate Cs Symbol S Titlecase_Letter Lt Unassigned Cn Uppercase_Letter Lu",ze="Adlam Adlm Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb",Qe=ze+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd",Ke=Qe+" Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho",Ye=Ke+" Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi",Xe=Ye+" Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith",Lt=Xe+" Hrkt Katakana_Or_Hiragana Kawi Nag_Mundari Nagm Unknown Zzzz",Tt={9:ze,10:Qe,11:Ke,12:Ye,13:Xe,14:Lt},Ze={};function Rt(e){var t=Ze[e]={binary:O(Pt[e]+" "+We),binaryOfStrings:O(Vt[e]),nonBinary:{General_Category:O(We),Script:O(Tt[e])}};t.nonBinary.Script_Extensions=t.nonBinary.Script,t.nonBinary.gc=t.nonBinary.General_Category,t.nonBinary.sc=t.nonBinary.Script,t.nonBinary.scx=t.nonBinary.Script_Extensions}for(var be=0,Je=[9,10,11,12,13,14];be<Je.length;be+=1){var Ot=Je[be];Rt(Ot)}var c=b.prototype,V=function(t){this.parser=t,this.validFlags="gim"+(t.options.ecmaVersion>=6?"uy":"")+(t.options.ecmaVersion>=9?"s":"")+(t.options.ecmaVersion>=13?"d":"")+(t.options.ecmaVersion>=15?"v":""),this.unicodeProperties=Ze[t.options.ecmaVersion>=14?14:t.options.ecmaVersion],this.source="",this.flags="",this.start=0,this.switchU=!1,this.switchV=!1,this.switchN=!1,this.pos=0,this.lastIntValue=0,this.lastStringValue="",this.lastAssertionIsQuantifiable=!1,this.numCapturingParens=0,this.maxBackReference=0,this.groupNames=[],this.backReferenceNames=[]};V.prototype.reset=function(t,i,s){var r=s.indexOf("v")!==-1,n=s.indexOf("u")!==-1;this.start=t|0,this.source=i+"",this.flags=s,r&&this.parser.options.ecmaVersion>=15?(this.switchU=!0,this.switchV=!0,this.switchN=!0):(this.switchU=n&&this.parser.options.ecmaVersion>=6,this.switchV=!1,this.switchN=n&&this.parser.options.ecmaVersion>=9)},V.prototype.raise=function(t){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+t)},V.prototype.at=function(t,i){i===void 0&&(i=!1);var s=this.source,r=s.length;if(t>=r)return-1;var n=s.charCodeAt(t);if(!(i||this.switchU)||n<=55295||n>=57344||t+1>=r)return n;var u=s.charCodeAt(t+1);return u>=56320&&u<=57343?(n<<10)+u-56613888:n},V.prototype.nextIndex=function(t,i){i===void 0&&(i=!1);var s=this.source,r=s.length;if(t>=r)return r;var n=s.charCodeAt(t),u;return!(i||this.switchU)||n<=55295||n>=57344||t+1>=r||(u=s.charCodeAt(t+1))<56320||u>57343?t+1:t+2},V.prototype.current=function(t){return t===void 0&&(t=!1),this.at(this.pos,t)},V.prototype.lookahead=function(t){return t===void 0&&(t=!1),this.at(this.nextIndex(this.pos,t),t)},V.prototype.advance=function(t){t===void 0&&(t=!1),this.pos=this.nextIndex(this.pos,t)},V.prototype.eat=function(t,i){return i===void 0&&(i=!1),this.current(i)===t?(this.advance(i),!0):!1},V.prototype.eatChars=function(t,i){i===void 0&&(i=!1);for(var s=this.pos,r=0,n=t;r<n.length;r+=1){var u=n[r],o=this.at(s,i);if(o===-1||o!==u)return!1;s=this.nextIndex(s,i)}return this.pos=s,!0},c.validateRegExpFlags=function(e){for(var t=e.validFlags,i=e.flags,s=!1,r=!1,n=0;n<i.length;n++){var u=i.charAt(n);t.indexOf(u)===-1&&this.raise(e.start,"Invalid regular expression flag"),i.indexOf(u,n+1)>-1&&this.raise(e.start,"Duplicate regular expression flag"),u==="u"&&(s=!0),u==="v"&&(r=!0)}this.options.ecmaVersion>=15&&s&&r&&this.raise(e.start,"Invalid regular expression flag")},c.validateRegExpPattern=function(e){this.regexp_pattern(e),!e.switchN&&this.options.ecmaVersion>=9&&e.groupNames.length>0&&(e.switchN=!0,this.regexp_pattern(e))},c.regexp_pattern=function(e){e.pos=0,e.lastIntValue=0,e.lastStringValue="",e.lastAssertionIsQuantifiable=!1,e.numCapturingParens=0,e.maxBackReference=0,e.groupNames.length=0,e.backReferenceNames.length=0,this.regexp_disjunction(e),e.pos!==e.source.length&&(e.eat(41)&&e.raise("Unmatched ')'"),(e.eat(93)||e.eat(125))&&e.raise("Lone quantifier brackets")),e.maxBackReference>e.numCapturingParens&&e.raise("Invalid escape");for(var t=0,i=e.backReferenceNames;t<i.length;t+=1){var s=i[t];e.groupNames.indexOf(s)===-1&&e.raise("Invalid named capture referenced")}},c.regexp_disjunction=function(e){for(this.regexp_alternative(e);e.eat(124);)this.regexp_alternative(e);this.regexp_eatQuantifier(e,!0)&&e.raise("Nothing to repeat"),e.eat(123)&&e.raise("Lone quantifier brackets")},c.regexp_alternative=function(e){for(;e.pos<e.source.length&&this.regexp_eatTerm(e););},c.regexp_eatTerm=function(e){return this.regexp_eatAssertion(e)?(e.lastAssertionIsQuantifiable&&this.regexp_eatQuantifier(e)&&e.switchU&&e.raise("Invalid quantifier"),!0):(e.switchU?this.regexp_eatAtom(e):this.regexp_eatExtendedAtom(e))?(this.regexp_eatQuantifier(e),!0):!1},c.regexp_eatAssertion=function(e){var t=e.pos;if(e.lastAssertionIsQuantifiable=!1,e.eat(94)||e.eat(36))return!0;if(e.eat(92)){if(e.eat(66)||e.eat(98))return!0;e.pos=t}if(e.eat(40)&&e.eat(63)){var i=!1;if(this.options.ecmaVersion>=9&&(i=e.eat(60)),e.eat(61)||e.eat(33))return this.regexp_disjunction(e),e.eat(41)||e.raise("Unterminated group"),e.lastAssertionIsQuantifiable=!i,!0}return e.pos=t,!1},c.regexp_eatQuantifier=function(e,t){return t===void 0&&(t=!1),this.regexp_eatQuantifierPrefix(e,t)?(e.eat(63),!0):!1},c.regexp_eatQuantifierPrefix=function(e,t){return e.eat(42)||e.eat(43)||e.eat(63)||this.regexp_eatBracedQuantifier(e,t)},c.regexp_eatBracedQuantifier=function(e,t){var i=e.pos;if(e.eat(123)){var s=0,r=-1;if(this.regexp_eatDecimalDigits(e)&&(s=e.lastIntValue,e.eat(44)&&this.regexp_eatDecimalDigits(e)&&(r=e.lastIntValue),e.eat(125)))return r!==-1&&r<s&&!t&&e.raise("numbers out of order in {} quantifier"),!0;e.switchU&&!t&&e.raise("Incomplete quantifier"),e.pos=i}return!1},c.regexp_eatAtom=function(e){return this.regexp_eatPatternCharacters(e)||e.eat(46)||this.regexp_eatReverseSolidusAtomEscape(e)||this.regexp_eatCharacterClass(e)||this.regexp_eatUncapturingGroup(e)||this.regexp_eatCapturingGroup(e)},c.regexp_eatReverseSolidusAtomEscape=function(e){var t=e.pos;if(e.eat(92)){if(this.regexp_eatAtomEscape(e))return!0;e.pos=t}return!1},c.regexp_eatUncapturingGroup=function(e){var t=e.pos;if(e.eat(40)){if(e.eat(63)&&e.eat(58)){if(this.regexp_disjunction(e),e.eat(41))return!0;e.raise("Unterminated group")}e.pos=t}return!1},c.regexp_eatCapturingGroup=function(e){if(e.eat(40)){if(this.options.ecmaVersion>=9?this.regexp_groupSpecifier(e):e.current()===63&&e.raise("Invalid group"),this.regexp_disjunction(e),e.eat(41))return e.numCapturingParens+=1,!0;e.raise("Unterminated group")}return!1},c.regexp_eatExtendedAtom=function(e){return e.eat(46)||this.regexp_eatReverseSolidusAtomEscape(e)||this.regexp_eatCharacterClass(e)||this.regexp_eatUncapturingGroup(e)||this.regexp_eatCapturingGroup(e)||this.regexp_eatInvalidBracedQuantifier(e)||this.regexp_eatExtendedPatternCharacter(e)},c.regexp_eatInvalidBracedQuantifier=function(e){return this.regexp_eatBracedQuantifier(e,!0)&&e.raise("Nothing to repeat"),!1},c.regexp_eatSyntaxCharacter=function(e){var t=e.current();return $e(t)?(e.lastIntValue=t,e.advance(),!0):!1};function $e(e){return e===36||e>=40&&e<=43||e===46||e===63||e>=91&&e<=94||e>=123&&e<=125}c.regexp_eatPatternCharacters=function(e){for(var t=e.pos,i=0;(i=e.current())!==-1&&!$e(i);)e.advance();return e.pos!==t},c.regexp_eatExtendedPatternCharacter=function(e){var t=e.current();return t!==-1&&t!==36&&!(t>=40&&t<=43)&&t!==46&&t!==63&&t!==91&&t!==94&&t!==124?(e.advance(),!0):!1},c.regexp_groupSpecifier=function(e){if(e.eat(63)){if(this.regexp_eatGroupName(e)){e.groupNames.indexOf(e.lastStringValue)!==-1&&e.raise("Duplicate capture group name"),e.groupNames.push(e.lastStringValue);return}e.raise("Invalid group")}},c.regexp_eatGroupName=function(e){if(e.lastStringValue="",e.eat(60)){if(this.regexp_eatRegExpIdentifierName(e)&&e.eat(62))return!0;e.raise("Invalid capture group name")}return!1},c.regexp_eatRegExpIdentifierName=function(e){if(e.lastStringValue="",this.regexp_eatRegExpIdentifierStart(e)){for(e.lastStringValue+=B(e.lastIntValue);this.regexp_eatRegExpIdentifierPart(e);)e.lastStringValue+=B(e.lastIntValue);return!0}return!1},c.regexp_eatRegExpIdentifierStart=function(e){var t=e.pos,i=this.options.ecmaVersion>=11,s=e.current(i);return e.advance(i),s===92&&this.regexp_eatRegExpUnicodeEscapeSequence(e,i)&&(s=e.lastIntValue),Bt(s)?(e.lastIntValue=s,!0):(e.pos=t,!1)};function Bt(e){return L(e,!0)||e===36||e===95}c.regexp_eatRegExpIdentifierPart=function(e){var t=e.pos,i=this.options.ecmaVersion>=11,s=e.current(i);return e.advance(i),s===92&&this.regexp_eatRegExpUnicodeEscapeSequence(e,i)&&(s=e.lastIntValue),Ft(s)?(e.lastIntValue=s,!0):(e.pos=t,!1)};function Ft(e){return M(e,!0)||e===36||e===95||e===8204||e===8205}c.regexp_eatAtomEscape=function(e){return this.regexp_eatBackReference(e)||this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)||e.switchN&&this.regexp_eatKGroupName(e)?!0:(e.switchU&&(e.current()===99&&e.raise("Invalid unicode escape"),e.raise("Invalid escape")),!1)},c.regexp_eatBackReference=function(e){var t=e.pos;if(this.regexp_eatDecimalEscape(e)){var i=e.lastIntValue;if(e.switchU)return i>e.maxBackReference&&(e.maxBackReference=i),!0;if(i<=e.numCapturingParens)return!0;e.pos=t}return!1},c.regexp_eatKGroupName=function(e){if(e.eat(107)){if(this.regexp_eatGroupName(e))return e.backReferenceNames.push(e.lastStringValue),!0;e.raise("Invalid named reference")}return!1},c.regexp_eatCharacterEscape=function(e){return this.regexp_eatControlEscape(e)||this.regexp_eatCControlLetter(e)||this.regexp_eatZero(e)||this.regexp_eatHexEscapeSequence(e)||this.regexp_eatRegExpUnicodeEscapeSequence(e,!1)||!e.switchU&&this.regexp_eatLegacyOctalEscapeSequence(e)||this.regexp_eatIdentityEscape(e)},c.regexp_eatCControlLetter=function(e){var t=e.pos;if(e.eat(99)){if(this.regexp_eatControlLetter(e))return!0;e.pos=t}return!1},c.regexp_eatZero=function(e){return e.current()===48&&!re(e.lookahead())?(e.lastIntValue=0,e.advance(),!0):!1},c.regexp_eatControlEscape=function(e){var t=e.current();return t===116?(e.lastIntValue=9,e.advance(),!0):t===110?(e.lastIntValue=10,e.advance(),!0):t===118?(e.lastIntValue=11,e.advance(),!0):t===102?(e.lastIntValue=12,e.advance(),!0):t===114?(e.lastIntValue=13,e.advance(),!0):!1},c.regexp_eatControlLetter=function(e){var t=e.current();return et(t)?(e.lastIntValue=t%32,e.advance(),!0):!1};function et(e){return e>=65&&e<=90||e>=97&&e<=122}c.regexp_eatRegExpUnicodeEscapeSequence=function(e,t){t===void 0&&(t=!1);var i=e.pos,s=t||e.switchU;if(e.eat(117)){if(this.regexp_eatFixedHexDigits(e,4)){var r=e.lastIntValue;if(s&&r>=55296&&r<=56319){var n=e.pos;if(e.eat(92)&&e.eat(117)&&this.regexp_eatFixedHexDigits(e,4)){var u=e.lastIntValue;if(u>=56320&&u<=57343)return e.lastIntValue=(r-55296)*1024+(u-56320)+65536,!0}e.pos=n,e.lastIntValue=r}return!0}if(s&&e.eat(123)&&this.regexp_eatHexDigits(e)&&e.eat(125)&&Dt(e.lastIntValue))return!0;s&&e.raise("Invalid unicode escape"),e.pos=i}return!1};function Dt(e){return e>=0&&e<=1114111}c.regexp_eatIdentityEscape=function(e){if(e.switchU)return this.regexp_eatSyntaxCharacter(e)?!0:e.eat(47)?(e.lastIntValue=47,!0):!1;var t=e.current();return t!==99&&(!e.switchN||t!==107)?(e.lastIntValue=t,e.advance(),!0):!1},c.regexp_eatDecimalEscape=function(e){e.lastIntValue=0;var t=e.current();if(t>=49&&t<=57){do e.lastIntValue=10*e.lastIntValue+(t-48),e.advance();while((t=e.current())>=48&&t<=57);return!0}return!1};var tt=0,R=1,I=2;c.regexp_eatCharacterClassEscape=function(e){var t=e.current();if(Mt(t))return e.lastIntValue=-1,e.advance(),R;var i=!1;if(e.switchU&&this.options.ecmaVersion>=9&&((i=t===80)||t===112)){e.lastIntValue=-1,e.advance();var s;if(e.eat(123)&&(s=this.regexp_eatUnicodePropertyValueExpression(e))&&e.eat(125))return i&&s===I&&e.raise("Invalid property name"),s;e.raise("Invalid property name")}return tt};function Mt(e){return e===100||e===68||e===115||e===83||e===119||e===87}c.regexp_eatUnicodePropertyValueExpression=function(e){var t=e.pos;if(this.regexp_eatUnicodePropertyName(e)&&e.eat(61)){var i=e.lastStringValue;if(this.regexp_eatUnicodePropertyValue(e)){var s=e.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(e,i,s),R}}if(e.pos=t,this.regexp_eatLoneUnicodePropertyNameOrValue(e)){var r=e.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(e,r)}return tt},c.regexp_validateUnicodePropertyNameAndValue=function(e,t,i){z(e.unicodeProperties.nonBinary,t)||e.raise("Invalid property name"),e.unicodeProperties.nonBinary[t].test(i)||e.raise("Invalid property value")},c.regexp_validateUnicodePropertyNameOrValue=function(e,t){if(e.unicodeProperties.binary.test(t))return R;if(e.switchV&&e.unicodeProperties.binaryOfStrings.test(t))return I;e.raise("Invalid property name")},c.regexp_eatUnicodePropertyName=function(e){var t=0;for(e.lastStringValue="";it(t=e.current());)e.lastStringValue+=B(t),e.advance();return e.lastStringValue!==""};function it(e){return et(e)||e===95}c.regexp_eatUnicodePropertyValue=function(e){var t=0;for(e.lastStringValue="";Ut(t=e.current());)e.lastStringValue+=B(t),e.advance();return e.lastStringValue!==""};function Ut(e){return it(e)||re(e)}c.regexp_eatLoneUnicodePropertyNameOrValue=function(e){return this.regexp_eatUnicodePropertyValue(e)},c.regexp_eatCharacterClass=function(e){if(e.eat(91)){var t=e.eat(94),i=this.regexp_classContents(e);return e.eat(93)||e.raise("Unterminated character class"),t&&i===I&&e.raise("Negated character class may contain strings"),!0}return!1},c.regexp_classContents=function(e){return e.current()===93?R:e.switchV?this.regexp_classSetExpression(e):(this.regexp_nonEmptyClassRanges(e),R)},c.regexp_nonEmptyClassRanges=function(e){for(;this.regexp_eatClassAtom(e);){var t=e.lastIntValue;if(e.eat(45)&&this.regexp_eatClassAtom(e)){var i=e.lastIntValue;e.switchU&&(t===-1||i===-1)&&e.raise("Invalid character class"),t!==-1&&i!==-1&&t>i&&e.raise("Range out of order in character class")}}},c.regexp_eatClassAtom=function(e){var t=e.pos;if(e.eat(92)){if(this.regexp_eatClassEscape(e))return!0;if(e.switchU){var i=e.current();(i===99||rt(i))&&e.raise("Invalid class escape"),e.raise("Invalid escape")}e.pos=t}var s=e.current();return s!==93?(e.lastIntValue=s,e.advance(),!0):!1},c.regexp_eatClassEscape=function(e){var t=e.pos;if(e.eat(98))return e.lastIntValue=8,!0;if(e.switchU&&e.eat(45))return e.lastIntValue=45,!0;if(!e.switchU&&e.eat(99)){if(this.regexp_eatClassControlLetter(e))return!0;e.pos=t}return this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)},c.regexp_classSetExpression=function(e){var t=R,i;if(!this.regexp_eatClassSetRange(e))if(i=this.regexp_eatClassSetOperand(e)){i===I&&(t=I);for(var s=e.pos;e.eatChars([38,38]);){if(e.current()!==38&&(i=this.regexp_eatClassSetOperand(e))){i!==I&&(t=R);continue}e.raise("Invalid character in character class")}if(s!==e.pos)return t;for(;e.eatChars([45,45]);)this.regexp_eatClassSetOperand(e)||e.raise("Invalid character in character class");if(s!==e.pos)return t}else e.raise("Invalid character in character class");for(;;)if(!this.regexp_eatClassSetRange(e)){if(i=this.regexp_eatClassSetOperand(e),!i)return t;i===I&&(t=I)}},c.regexp_eatClassSetRange=function(e){var t=e.pos;if(this.regexp_eatClassSetCharacter(e)){var i=e.lastIntValue;if(e.eat(45)&&this.regexp_eatClassSetCharacter(e)){var s=e.lastIntValue;return i!==-1&&s!==-1&&i>s&&e.raise("Range out of order in character class"),!0}e.pos=t}return!1},c.regexp_eatClassSetOperand=function(e){return this.regexp_eatClassSetCharacter(e)?R:this.regexp_eatClassStringDisjunction(e)||this.regexp_eatNestedClass(e)},c.regexp_eatNestedClass=function(e){var t=e.pos;if(e.eat(91)){var i=e.eat(94),s=this.regexp_classContents(e);if(e.eat(93))return i&&s===I&&e.raise("Negated character class may contain strings"),s;e.pos=t}if(e.eat(92)){var r=this.regexp_eatCharacterClassEscape(e);if(r)return r;e.pos=t}return null},c.regexp_eatClassStringDisjunction=function(e){var t=e.pos;if(e.eatChars([92,113])){if(e.eat(123)){var i=this.regexp_classStringDisjunctionContents(e);if(e.eat(125))return i}else e.raise("Invalid escape");e.pos=t}return null},c.regexp_classStringDisjunctionContents=function(e){for(var t=this.regexp_classString(e);e.eat(124);)this.regexp_classString(e)===I&&(t=I);return t},c.regexp_classString=function(e){for(var t=0;this.regexp_eatClassSetCharacter(e);)t++;return t===1?R:I},c.regexp_eatClassSetCharacter=function(e){var t=e.pos;if(e.eat(92))return this.regexp_eatCharacterEscape(e)||this.regexp_eatClassSetReservedPunctuator(e)?!0:e.eat(98)?(e.lastIntValue=8,!0):(e.pos=t,!1);var i=e.current();return i<0||i===e.lookahead()&&qt(i)||jt(i)?!1:(e.advance(),e.lastIntValue=i,!0)};function qt(e){return e===33||e>=35&&e<=38||e>=42&&e<=44||e===46||e>=58&&e<=64||e===94||e===96||e===126}function jt(e){return e===40||e===41||e===45||e===47||e>=91&&e<=93||e>=123&&e<=125}c.regexp_eatClassSetReservedPunctuator=function(e){var t=e.current();return Gt(t)?(e.lastIntValue=t,e.advance(),!0):!1};function Gt(e){return e===33||e===35||e===37||e===38||e===44||e===45||e>=58&&e<=62||e===64||e===96||e===126}c.regexp_eatClassControlLetter=function(e){var t=e.current();return re(t)||t===95?(e.lastIntValue=t%32,e.advance(),!0):!1},c.regexp_eatHexEscapeSequence=function(e){var t=e.pos;if(e.eat(120)){if(this.regexp_eatFixedHexDigits(e,2))return!0;e.switchU&&e.raise("Invalid escape"),e.pos=t}return!1},c.regexp_eatDecimalDigits=function(e){var t=e.pos,i=0;for(e.lastIntValue=0;re(i=e.current());)e.lastIntValue=10*e.lastIntValue+(i-48),e.advance();return e.pos!==t};function re(e){return e>=48&&e<=57}c.regexp_eatHexDigits=function(e){var t=e.pos,i=0;for(e.lastIntValue=0;st(i=e.current());)e.lastIntValue=16*e.lastIntValue+at(i),e.advance();return e.pos!==t};function st(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function at(e){return e>=65&&e<=70?10+(e-65):e>=97&&e<=102?10+(e-97):e-48}c.regexp_eatLegacyOctalEscapeSequence=function(e){if(this.regexp_eatOctalDigit(e)){var t=e.lastIntValue;if(this.regexp_eatOctalDigit(e)){var i=e.lastIntValue;t<=3&&this.regexp_eatOctalDigit(e)?e.lastIntValue=t*64+i*8+e.lastIntValue:e.lastIntValue=t*8+i}else e.lastIntValue=t;return!0}return!1},c.regexp_eatOctalDigit=function(e){var t=e.current();return rt(t)?(e.lastIntValue=t-48,e.advance(),!0):(e.lastIntValue=0,!1)};function rt(e){return e>=48&&e<=55}c.regexp_eatFixedHexDigits=function(e,t){var i=e.pos;e.lastIntValue=0;for(var s=0;s<t;++s){var r=e.current();if(!st(r))return e.pos=i,!1;e.lastIntValue=16*e.lastIntValue+at(r),e.advance()}return!0};var ye=function(t){this.type=t.type,this.value=t.value,this.start=t.start,this.end=t.end,t.options.locations&&(this.loc=new $(t,t.startLoc,t.endLoc)),t.options.ranges&&(this.range=[t.start,t.end])},x=b.prototype;x.next=function(e){!e&&this.type.keyword&&this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword "+this.type.keyword),this.options.onToken&&this.options.onToken(new ye(this)),this.lastTokEnd=this.end,this.lastTokStart=this.start,this.lastTokEndLoc=this.endLoc,this.lastTokStartLoc=this.startLoc,this.nextToken()},x.getToken=function(){return this.next(),new ye(this)},typeof Symbol<"u"&&(x[Symbol.iterator]=function(){var e=this;return{next:function(){var t=e.getToken();return{done:t.type===a.eof,value:t}}}}),x.nextToken=function(){var e=this.curContext();if((!e||!e.preserveSpace)&&this.skipSpace(),this.start=this.pos,this.options.locations&&(this.startLoc=this.curPosition()),this.pos>=this.input.length)return this.finishToken(a.eof);if(e.override)return e.override(this);this.readToken(this.fullCharCodeAtPos())},x.readToken=function(e){return L(e,this.options.ecmaVersion>=6)||e===92?this.readWord():this.getTokenFromCode(e)},x.fullCharCodeAtPos=function(){var e=this.input.charCodeAt(this.pos);if(e<=55295||e>=56320)return e;var t=this.input.charCodeAt(this.pos+1);return t<=56319||t>=57344?e:(e<<10)+t-56613888},x.skipBlockComment=function(){var e=this.options.onComment&&this.curPosition(),t=this.pos,i=this.input.indexOf("*/",this.pos+=2);if(i===-1&&this.raise(this.pos-2,"Unterminated comment"),this.pos=i+2,this.options.locations)for(var s=void 0,r=t;(s=ke(this.input,r,this.pos))>-1;)++this.curLine,r=this.lineStart=s;this.options.onComment&&this.options.onComment(!0,this.input.slice(t+2,i),t,this.pos,e,this.curPosition())},x.skipLineComment=function(e){for(var t=this.pos,i=this.options.onComment&&this.curPosition(),s=this.input.charCodeAt(this.pos+=e);this.pos<this.input.length&&!U(s);)s=this.input.charCodeAt(++this.pos);this.options.onComment&&this.options.onComment(!1,this.input.slice(t+e,this.pos),t,this.pos,i,this.curPosition())},x.skipSpace=function(){e:for(;this.pos<this.input.length;){var e=this.input.charCodeAt(this.pos);switch(e){case 32:case 160:++this.pos;break;case 13:this.input.charCodeAt(this.pos+1)===10&&++this.pos;case 10:case 8232:case 8233:++this.pos,this.options.locations&&(++this.curLine,this.lineStart=this.pos);break;case 47:switch(this.input.charCodeAt(this.pos+1)){case 42:this.skipBlockComment();break;case 47:this.skipLineComment(2);break;default:break e}break;default:if(e>8&&e<14||e>=5760&&Se.test(String.fromCharCode(e)))++this.pos;else break e}}},x.finishToken=function(e,t){this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());var i=this.type;this.type=e,this.value=t,this.updateContext(i)},x.readToken_dot=function(){var e=this.input.charCodeAt(this.pos+1);if(e>=48&&e<=57)return this.readNumber(!0);var t=this.input.charCodeAt(this.pos+2);return this.options.ecmaVersion>=6&&e===46&&t===46?(this.pos+=3,this.finishToken(a.ellipsis)):(++this.pos,this.finishToken(a.dot))},x.readToken_slash=function(){var e=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):e===61?this.finishOp(a.assign,2):this.finishOp(a.slash,1)},x.readToken_mult_modulo_exp=function(e){var t=this.input.charCodeAt(this.pos+1),i=1,s=e===42?a.star:a.modulo;return this.options.ecmaVersion>=7&&e===42&&t===42&&(++i,s=a.starstar,t=this.input.charCodeAt(this.pos+2)),t===61?this.finishOp(a.assign,i+1):this.finishOp(s,i)},x.readToken_pipe_amp=function(e){var t=this.input.charCodeAt(this.pos+1);if(t===e){if(this.options.ecmaVersion>=12){var i=this.input.charCodeAt(this.pos+2);if(i===61)return this.finishOp(a.assign,3)}return this.finishOp(e===124?a.logicalOR:a.logicalAND,2)}return t===61?this.finishOp(a.assign,2):this.finishOp(e===124?a.bitwiseOR:a.bitwiseAND,1)},x.readToken_caret=function(){var e=this.input.charCodeAt(this.pos+1);return e===61?this.finishOp(a.assign,2):this.finishOp(a.bitwiseXOR,1)},x.readToken_plus_min=function(e){var t=this.input.charCodeAt(this.pos+1);return t===e?t===45&&!this.inModule&&this.input.charCodeAt(this.pos+2)===62&&(this.lastTokEnd===0||w.test(this.input.slice(this.lastTokEnd,this.pos)))?(this.skipLineComment(3),this.skipSpace(),this.nextToken()):this.finishOp(a.incDec,2):t===61?this.finishOp(a.assign,2):this.finishOp(a.plusMin,1)},x.readToken_lt_gt=function(e){var t=this.input.charCodeAt(this.pos+1),i=1;return t===e?(i=e===62&&this.input.charCodeAt(this.pos+2)===62?3:2,this.input.charCodeAt(this.pos+i)===61?this.finishOp(a.assign,i+1):this.finishOp(a.bitShift,i)):t===33&&e===60&&!this.inModule&&this.input.charCodeAt(this.pos+2)===45&&this.input.charCodeAt(this.pos+3)===45?(this.skipLineComment(4),this.skipSpace(),this.nextToken()):(t===61&&(i=2),this.finishOp(a.relational,i))},x.readToken_eq_excl=function(e){var t=this.input.charCodeAt(this.pos+1);return t===61?this.finishOp(a.equality,this.input.charCodeAt(this.pos+2)===61?3:2):e===61&&t===62&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(a.arrow)):this.finishOp(e===61?a.eq:a.prefix,1)},x.readToken_question=function(){var e=this.options.ecmaVersion;if(e>=11){var t=this.input.charCodeAt(this.pos+1);if(t===46){var i=this.input.charCodeAt(this.pos+2);if(i<48||i>57)return this.finishOp(a.questionDot,2)}if(t===63){if(e>=12){var s=this.input.charCodeAt(this.pos+2);if(s===61)return this.finishOp(a.assign,3)}return this.finishOp(a.coalesce,2)}}return this.finishOp(a.question,1)},x.readToken_numberSign=function(){var e=this.options.ecmaVersion,t=35;if(e>=13&&(++this.pos,t=this.fullCharCodeAtPos(),L(t,!0)||t===92))return this.finishToken(a.privateId,this.readWord1());this.raise(this.pos,"Unexpected character '"+B(t)+"'")},x.getTokenFromCode=function(e){switch(e){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(a.parenL);case 41:return++this.pos,this.finishToken(a.parenR);case 59:return++this.pos,this.finishToken(a.semi);case 44:return++this.pos,this.finishToken(a.comma);case 91:return++this.pos,this.finishToken(a.bracketL);case 93:return++this.pos,this.finishToken(a.bracketR);case 123:return++this.pos,this.finishToken(a.braceL);case 125:return++this.pos,this.finishToken(a.braceR);case 58:return++this.pos,this.finishToken(a.colon);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(a.backQuote);case 48:var t=this.input.charCodeAt(this.pos+1);if(t===120||t===88)return this.readRadixNumber(16);if(this.options.ecmaVersion>=6){if(t===111||t===79)return this.readRadixNumber(8);if(t===98||t===66)return this.readRadixNumber(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return this.readNumber(!1);case 34:case 39:return this.readString(e);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo_exp(e);case 124:case 38:return this.readToken_pipe_amp(e);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(e);case 60:case 62:return this.readToken_lt_gt(e);case 61:case 33:return this.readToken_eq_excl(e);case 63:return this.readToken_question();case 126:return this.finishOp(a.prefix,1);case 35:return this.readToken_numberSign()}this.raise(this.pos,"Unexpected character '"+B(e)+"'")},x.finishOp=function(e,t){var i=this.input.slice(this.pos,this.pos+t);return this.pos+=t,this.finishToken(e,i)},x.readRegexp=function(){for(var e,t,i=this.pos;;){this.pos>=this.input.length&&this.raise(i,"Unterminated regular expression");var s=this.input.charAt(this.pos);if(w.test(s)&&this.raise(i,"Unterminated regular expression"),e)e=!1;else{if(s==="[")t=!0;else if(s==="]"&&t)t=!1;else if(s==="/"&&!t)break;e=s==="\\"}++this.pos}var r=this.input.slice(i,this.pos);++this.pos;var n=this.pos,u=this.readWord1();this.containsEsc&&this.unexpected(n);var o=this.regexpState||(this.regexpState=new V(this));o.reset(i,r,u),this.validateRegExpFlags(o),this.validateRegExpPattern(o);var h=null;try{h=new RegExp(r,u)}catch{}return this.finishToken(a.regexp,{pattern:r,flags:u,value:h})},x.readInt=function(e,t,i){for(var s=this.options.ecmaVersion>=12&&t===void 0,r=i&&this.input.charCodeAt(this.pos)===48,n=this.pos,u=0,o=0,h=0,f=t??1/0;h<f;++h,++this.pos){var d=this.input.charCodeAt(this.pos),y=void 0;if(s&&d===95){r&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed in legacy octal numeric literals"),o===95&&this.raiseRecoverable(this.pos,"Numeric separator must be exactly one underscore"),h===0&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed at the first of digits"),o=d;continue}if(d>=97?y=d-97+10:d>=65?y=d-65+10:d>=48&&d<=57?y=d-48:y=1/0,y>=e)break;o=d,u=u*e+y}return s&&o===95&&this.raiseRecoverable(this.pos-1,"Numeric separator is not allowed at the last of digits"),this.pos===n||t!=null&&this.pos-n!==t?null:u};function Ht(e,t){return t?parseInt(e,8):parseFloat(e.replace(/_/g,""))}function nt(e){return typeof BigInt!="function"?null:BigInt(e.replace(/_/g,""))}x.readRadixNumber=function(e){var t=this.pos;this.pos+=2;var i=this.readInt(e);return i==null&&this.raise(this.start+2,"Expected number in radix "+e),this.options.ecmaVersion>=11&&this.input.charCodeAt(this.pos)===110?(i=nt(this.input.slice(t,this.pos)),++this.pos):L(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(a.num,i)},x.readNumber=function(e){var t=this.pos;!e&&this.readInt(10,void 0,!0)===null&&this.raise(t,"Invalid number");var i=this.pos-t>=2&&this.input.charCodeAt(t)===48;i&&this.strict&&this.raise(t,"Invalid number");var s=this.input.charCodeAt(this.pos);if(!i&&!e&&this.options.ecmaVersion>=11&&s===110){var r=nt(this.input.slice(t,this.pos));return++this.pos,L(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(a.num,r)}i&&/[89]/.test(this.input.slice(t,this.pos))&&(i=!1),s===46&&!i&&(++this.pos,this.readInt(10),s=this.input.charCodeAt(this.pos)),(s===69||s===101)&&!i&&(s=this.input.charCodeAt(++this.pos),(s===43||s===45)&&++this.pos,this.readInt(10)===null&&this.raise(t,"Invalid number")),L(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number");var n=Ht(this.input.slice(t,this.pos),i);return this.finishToken(a.num,n)},x.readCodePoint=function(){var e=this.input.charCodeAt(this.pos),t;if(e===123){this.options.ecmaVersion<6&&this.unexpected();var i=++this.pos;t=this.readHexChar(this.input.indexOf("}",this.pos)-this.pos),++this.pos,t>1114111&&this.invalidStringToken(i,"Code point out of bounds")}else t=this.readHexChar(4);return t},x.readString=function(e){for(var t="",i=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");var s=this.input.charCodeAt(this.pos);if(s===e)break;s===92?(t+=this.input.slice(i,this.pos),t+=this.readEscapedChar(!1),i=this.pos):s===8232||s===8233?(this.options.ecmaVersion<10&&this.raise(this.start,"Unterminated string constant"),++this.pos,this.options.locations&&(this.curLine++,this.lineStart=this.pos)):(U(s)&&this.raise(this.start,"Unterminated string constant"),++this.pos)}return t+=this.input.slice(i,this.pos++),this.finishToken(a.string,t)};var ut={};x.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(e){if(e===ut)this.readInvalidTemplateToken();else throw e}this.inTemplateElement=!1},x.invalidStringToken=function(e,t){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw ut;this.raise(e,t)},x.readTmplToken=function(){for(var e="",t=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated template");var i=this.input.charCodeAt(this.pos);if(i===96||i===36&&this.input.charCodeAt(this.pos+1)===123)return this.pos===this.start&&(this.type===a.template||this.type===a.invalidTemplate)?i===36?(this.pos+=2,this.finishToken(a.dollarBraceL)):(++this.pos,this.finishToken(a.backQuote)):(e+=this.input.slice(t,this.pos),this.finishToken(a.template,e));if(i===92)e+=this.input.slice(t,this.pos),e+=this.readEscapedChar(!0),t=this.pos;else if(U(i)){switch(e+=this.input.slice(t,this.pos),++this.pos,i){case 13:this.input.charCodeAt(this.pos)===10&&++this.pos;case 10:e+=`
|
|
5
|
-
`;break;default:e+=String.fromCharCode(i);break}this.options.locations&&(++this.curLine,this.lineStart=this.pos),t=this.pos}else++this.pos}},x.readInvalidTemplateToken=function(){for(;this.pos<this.input.length;this.pos++)switch(this.input[this.pos]){case"\\":++this.pos;break;case"$":if(this.input[this.pos+1]!=="{")break;case"`":return this.finishToken(a.invalidTemplate,this.input.slice(this.start,this.pos))}this.raise(this.start,"Unterminated template")},x.readEscapedChar=function(e){var t=this.input.charCodeAt(++this.pos);switch(++this.pos,t){case 110:return`
|
|
6
|
-
`;case 114:return"\r";case 120:return String.fromCharCode(this.readHexChar(2));case 117:return B(this.readCodePoint());case 116:return" ";case 98:return"\b";case 118:return"\v";case 102:return"\f";case 13:this.input.charCodeAt(this.pos)===10&&++this.pos;case 10:return this.options.locations&&(this.lineStart=this.pos,++this.curLine),"";case 56:case 57:if(this.strict&&this.invalidStringToken(this.pos-1,"Invalid escape sequence"),e){var i=this.pos-1;this.invalidStringToken(i,"Invalid escape sequence in template string")}default:if(t>=48&&t<=55){var s=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],r=parseInt(s,8);return r>255&&(s=s.slice(0,-1),r=parseInt(s,8)),this.pos+=s.length-1,t=this.input.charCodeAt(this.pos),(s!=="0"||t===56||t===57)&&(this.strict||e)&&this.invalidStringToken(this.pos-1-s.length,e?"Octal literal in template string":"Octal literal in strict mode"),String.fromCharCode(r)}return U(t)?"":String.fromCharCode(t)}},x.readHexChar=function(e){var t=this.pos,i=this.readInt(16,e);return i===null&&this.invalidStringToken(t,"Bad character escape sequence"),i},x.readWord1=function(){this.containsEsc=!1;for(var e="",t=!0,i=this.pos,s=this.options.ecmaVersion>=6;this.pos<this.input.length;){var r=this.fullCharCodeAtPos();if(M(r,s))this.pos+=r<=65535?1:2;else if(r===92){this.containsEsc=!0,e+=this.input.slice(i,this.pos);var n=this.pos;this.input.charCodeAt(++this.pos)!==117&&this.invalidStringToken(this.pos,"Expecting Unicode escape sequence \\uXXXX"),++this.pos;var u=this.readCodePoint();(t?L:M)(u,s)||this.invalidStringToken(n,"Invalid Unicode escape"),e+=B(u),i=this.pos}else break;t=!1}return e+this.input.slice(i,this.pos)},x.readWord=function(){var e=this.readWord1(),t=a.name;return this.keywords.test(e)&&(t=ce[e]),this.finishToken(t,e)};var Wt="8.11.2";b.acorn={Parser:b,version:Wt,defaultOptions:le,Position:Q,SourceLocation:$,getLineInfo:Ie,Node:ae,TokenType:v,tokTypes:a,keywordTypes:ce,TokContext:P,tokContexts:g,isIdentifierChar:M,isIdentifierStart:L,Token:ye,isNewLine:U,lineBreak:w,lineBreakG:mt,nonASCIIwhitespace:Se};function zt(e,t){return b.parse(e,t)}function Kt(e,t,i){return b.parseExpressionAt(e,t,i)}function Yt(e,t){return b.tokenizer(e,t)}}}]);
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunknocobase=self.webpackChunknocobase||[]).push([[7792],{31351:function(te,b,f){f.d(b,{o:function(){return c}});var v=f(67294),u=f(70202),c=function(d){return function(L,Z){var O=(0,v.useRef)(),H=(0,v.useRef)(0);(Z===void 0||!(0,u.k)(Z,O.current))&&(O.current=Z,H.current+=1),d(L,[H.current])}}},44370:function(te,b,f){f.d(b,{a:function(){return u}});var v=f(67294),u=function(d){return function(L,Z){var O=(0,v.useRef)(!1);d(function(){return function(){O.current=!1}},[]),d(function(){if(!O.current)O.current=!0;else return L()},Z)}},c=null},9577:function(te,b,f){f.d(b,{f:function(){return Z}});var v=f(97582),u=f(67294),c=f(22638),d=f(42170),L=f(92770);function Z(O){function H(X,U){U===void 0&&(U={});var I,ae=U.onError,he=ae===void 0?function(me){console.error(me)}:ae;try{I=O()}catch(me){he(me)}var de=function(me){return U!=null&&U.serializer?U==null?void 0:U.serializer(me):JSON.stringify(me)},se=function(me){return U!=null&&U.deserializer?U==null?void 0:U.deserializer(me):JSON.parse(me)};function $(){try{var me=I==null?void 0:I.getItem(X);if(me)return se(me)}catch(Ee){he(Ee)}return(0,L.mf)(U==null?void 0:U.defaultValue)?U==null?void 0:U.defaultValue():U==null?void 0:U.defaultValue}var G=(0,v.CR)((0,u.useState)(function(){return $()}),2),Le=G[0],we=G[1];(0,d.Z)(function(){we($())},[X]);var Be=function(me){var Ee=(0,L.mf)(me)?me(Le):me;if(we(Ee),(0,L.G7)(Ee))I==null||I.removeItem(X);else try{I==null||I.setItem(X,de(Ee))}catch(Oe){console.error(Oe)}};return[Le,(0,c.Z)(Be)]}return H}},87715:function(te,b,f){f.r(b),f.d(b,{clearCache:function(){return Kt.LK},configResponsive:function(){return Ht},createUpdateEffect:function(){return v.a},useAntdTable:function(){return U},useAsyncEffect:function(){return de},useBoolean:function(){return se.Z},useClickAway:function(){return Oe},useControllableValue:function(){return en},useCookieState:function(){return rn},useCountDown:function(){return cn},useCounter:function(){return sn},useCreation:function(){return Ve.Z},useDebounce:function(){return ln.Z},useDebounceEffect:function(){return dn},useDebounceFn:function(){return Xe.Z},useDeepCompareEffect:function(){return mn.Z},useDeepCompareLayoutEffect:function(){return gn},useDocumentVisibility:function(){return En},useDrag:function(){return pn},useDrop:function(){return yn},useDynamicList:function(){return D},useEventEmitter:function(){return y},useEventListener:function(){return pe.Z},useEventTarget:function(){return N},useExternal:function(){return A},useFavicon:function(){return ge},useFocusWithin:function(){return k},useFullscreen:function(){return Ge},useFusionTable:function(){return _e},useGetState:function(){return We},useHistoryTravel:function(){return Xn},useHover:function(){return Yn},useInViewport:function(){return tt},useInfiniteScroll:function(){return kn},useInterval:function(){return et},useIsomorphicLayoutEffect:function(){return rt.Z},useKeyPress:function(){return vt},useLatest:function(){return $.Z},useLocalStorageState:function(){return dt.Z},useLockFn:function(){return gt},useLongPress:function(){return Et},useMap:function(){return pt},useMemoizedFn:function(){return d.Z},useMount:function(){return Ct.Z},useMouse:function(){return Dt},useMutationObserver:function(){return wr},useNetwork:function(){return _t},usePagination:function(){return O},usePrevious:function(){return Lt},useRafInterval:function(){return At},useRafState:function(){return $e},useRafTimeout:function(){return wt},useReactive:function(){return xt},useRequest:function(){return L.Z},useResetState:function(){return zt},useResponsive:function(){return Vt},useSafeState:function(){return Yt},useScroll:function(){return Jt},useSelections:function(){return $t},useSessionStorageState:function(){return qt},useSet:function(){return nr},useSetState:function(){return tr.Z},useSize:function(){return zn},useTextSelection:function(){return vr},useThrottle:function(){return Rr},useThrottleEffect:function(){return Cr},useThrottleFn:function(){return Tn},useTimeout:function(){return Pr},useTitle:function(){return _r},useToggle:function(){return Mr.Z},useTrackedEffect:function(){return Or},useUnmount:function(){return Ce.Z},useUnmountedRef:function(){return jn.Z},useUpdate:function(){return Ie.Z},useUpdateEffect:function(){return H.Z},useUpdateLayoutEffect:function(){return br},useVirtualList:function(){return Ar},useWebSocket:function(){return Ir},useWhyDidYouUpdate:function(){return Fr}});var v=f(44370),u=f(97582),c=f(67294),d=f(22638),L=f(20578),Z=function(e,n){var t;n===void 0&&(n={});var r=n.defaultPageSize,a=r===void 0?10:r,i=n.defaultCurrent,o=i===void 0?1:i,s=(0,u._T)(n,["defaultPageSize","defaultCurrent"]),l=(0,L.Z)(e,(0,u.pi)({defaultParams:[{current:o,pageSize:a}],refreshDepsAction:function(){Y(1)}},s)),E=l.params[0]||{},g=E.current,m=g===void 0?1:g,h=E.pageSize,p=h===void 0?a:h,S=((t=l.data)===null||t===void 0?void 0:t.total)||0,T=(0,c.useMemo)(function(){return Math.ceil(S/p)},[p,S]),R=function(j,M){var F=j<=0?1:j,_=M<=0?1:M,P=Math.ceil(S/_);F>P&&(F=Math.max(1,P));var w=(0,u.CR)(l.params||[]),W=w[0],ue=W===void 0?{}:W,ie=w.slice(1);l.run.apply(l,(0,u.ev)([(0,u.pi)((0,u.pi)({},ue),{current:F,pageSize:_})],(0,u.CR)(ie),!1))},Y=function(j){R(j,p)},K=function(j){R(m,j)};return(0,u.pi)((0,u.pi)({},l),{pagination:{current:m,pageSize:p,total:S,totalPage:T,onChange:(0,d.Z)(R),changeCurrent:(0,d.Z)(Y),changePageSize:(0,d.Z)(K)}})},O=Z,H=f(42170),X=function(e,n){var t;n===void 0&&(n={});var r=n.form,a=n.defaultType,i=a===void 0?"simple":a,o=n.defaultParams,s=n.manual,l=s===void 0?!1:s,E=n.refreshDeps,g=E===void 0?[]:E,m=n.ready,h=m===void 0?!0:m,p=(0,u._T)(n,["form","defaultType","defaultParams","manual","refreshDeps","ready"]),S=O(e,(0,u.pi)({manual:!0},p)),T=S.params,R=T===void 0?[]:T,Y=S.run,K=R[2]||{},j=(0,u.CR)((0,c.useState)((K==null?void 0:K.type)||i),2),M=j[0],F=j[1],_=(0,c.useRef)({}),P=(0,c.useRef)([]),w=!!(r!=null&&r.getInternalHooks),W=function(){if(!r)return{};if(w)return r.getFieldsValue(null,function(){return!0});var fe=r.getFieldsValue(),oe={};return Object.keys(fe).forEach(function(ye){(!r.getFieldInstance||r.getFieldInstance(ye))&&(oe[ye]=fe[ye])}),oe},ue=function(){if(!r)return Promise.resolve({});var fe=W(),oe=Object.keys(fe);return w?r.validateFields(oe):new Promise(function(ye,Ln){r.validateFields(oe,function(je,On){je?Ln(je):ye(On)})})},ie=function(){if(r){if(w)return r.setFieldsValue(_.current);var fe={};Object.keys(_.current).forEach(function(oe){(!r.getFieldInstance||r.getFieldInstance(oe))&&(fe[oe]=_.current[oe])}),r.setFieldsValue(fe)}},Te=function(){var fe=W();_.current=(0,u.pi)((0,u.pi)({},_.current),fe),F(function(oe){return oe==="simple"?"advance":"simple"})},Re=function(fe){h&&setTimeout(function(){ue().then(function(oe){oe===void 0&&(oe={});var ye=fe||(0,u.pi)((0,u.pi)({pageSize:n.defaultPageSize||10},(R==null?void 0:R[0])||{}),{current:1});if(!r){Y(ye);return}_.current=(0,u.pi)((0,u.pi)({},_.current),oe),Y(ye,oe,{allFormData:_.current,type:M})}).catch(function(oe){return oe})})},le=function(){var fe,oe;r&&r.resetFields(),Re((0,u.pi)((0,u.pi)({},(o==null?void 0:o[0])||{}),{pageSize:n.defaultPageSize||((oe=(fe=n.defaultParams)===null||fe===void 0?void 0:fe[0])===null||oe===void 0?void 0:oe.pageSize)||10,current:1}))},V=function(fe){var oe;(oe=fe==null?void 0:fe.preventDefault)===null||oe===void 0||oe.call(fe),Re()},ve=function(fe,oe,ye,Ln){var je=(0,u.CR)(R||[]),On=je[0],Ur=je.slice(1);Y.apply(void 0,(0,u.ev)([(0,u.pi)((0,u.pi)({},On),{current:fe.current,pageSize:fe.pageSize,filters:oe,sorter:ye,extra:Ln})],(0,u.CR)(Ur),!1))};(0,c.useEffect)(function(){if(R.length>0){_.current=(K==null?void 0:K.allFormData)||{},ie(),Y.apply(void 0,(0,u.ev)([],(0,u.CR)(R),!1));return}!l&&h&&(_.current=(o==null?void 0:o[1])||{},ie(),Re(o==null?void 0:o[0]))},[]),(0,H.Z)(function(){h&&ie()},[M]);var ce=(0,c.useRef)(!1);return ce.current=!1,(0,H.Z)(function(){!l&&h&&(ce.current=!0,r&&r.resetFields(),_.current=(o==null?void 0:o[1])||{},ie(),Re(o==null?void 0:o[0]))},[h]),(0,H.Z)(function(){ce.current||h&&(l||(ce.current=!0,S.pagination.changeCurrent(1)))},(0,u.ev)([],(0,u.CR)(g),!1)),(0,u.pi)((0,u.pi)({},S),{tableProps:{dataSource:((t=S.data)===null||t===void 0?void 0:t.list)||P.current,loading:S.loading,onChange:(0,d.Z)(ve),pagination:{current:S.pagination.current,pageSize:S.pagination.pageSize,total:S.pagination.total}},search:{submit:(0,d.Z)(V),type:M,changeType:(0,d.Z)(Te),reset:(0,d.Z)(le)}})},U=X,I=f(92770);function ae(e){return(0,I.mf)(e[Symbol.asyncIterator])}function he(e,n){(0,c.useEffect)(function(){var t=e(),r=!1;function a(){return(0,u.mG)(this,void 0,void 0,function(){var i;return(0,u.Jh)(this,function(o){switch(o.label){case 0:if(!ae(t))return[3,4];o.label=1;case 1:return[4,t.next()];case 2:return i=o.sent(),i.done||r?[3,3]:[3,1];case 3:return[3,6];case 4:return[4,t];case 5:o.sent(),o.label=6;case 6:return[2]}})})}return a(),function(){r=!0}},n)}var de=he,se=f(36705),$=f(3930),G=f(48002),Le=function(e){return e.every(function(n){var t=(0,G.n)(n);if(!t)return!1;if(t.getRootNode()instanceof ShadowRoot)return!0})},we=function(e){return e?e.getRootNode():document},Be=function(e){if(!e||!document.getRootNode)return document;var n=Array.isArray(e)?e:[e];return Le(n)?we((0,G.n)(n[0])):document},me=Be,Ee=f(59682);function Oe(e,n,t){t===void 0&&(t="click");var r=(0,$.Z)(e);(0,Ee.Z)(function(){var a=function(s){var l=Array.isArray(n)?n:[n];l.some(function(E){var g=(0,G.n)(E);return!g||g.contains(s.target)})||r.current(s)},i=me(n),o=Array.isArray(t)?t:[t];return o.forEach(function(s){return i.addEventListener(s,a)}),function(){o.forEach(function(s){return i.removeEventListener(s,a)})}},Array.isArray(t)?t:[t],n)}var Ie=f(90105);function Fe(e,n){e===void 0&&(e={}),n===void 0&&(n={});var t=n.defaultValue,r=n.defaultValuePropName,a=r===void 0?"defaultValue":r,i=n.valuePropName,o=i===void 0?"value":i,s=n.trigger,l=s===void 0?"onChange":s,E=e[o],g=e.hasOwnProperty(o),m=(0,c.useMemo)(function(){return g?E:e.hasOwnProperty(a)?e[a]:t},[]),h=(0,c.useRef)(m);g&&(h.current=E);var p=(0,Ie.Z)();function S(T){for(var R=[],Y=1;Y<arguments.length;Y++)R[Y-1]=arguments[Y];var K=(0,I.mf)(T)?T(h.current):T;g||(h.current=K,p()),e[l]&&e[l].apply(e,(0,u.ev)([K],(0,u.CR)(R),!1))}return[h.current,(0,d.Z)(S)]}var en=Fe,nn=f(36808),Ne=f.n(nn);function tn(e,n){n===void 0&&(n={});var t=(0,u.CR)((0,c.useState)(function(){var o=Ne().get(e);return(0,I.HD)(o)?o:(0,I.mf)(n.defaultValue)?n.defaultValue():n.defaultValue}),2),r=t[0],a=t[1],i=(0,d.Z)(function(o,s){s===void 0&&(s={});var l=(0,u.pi)((0,u.pi)({},n),s),E=l.defaultValue,g=(0,u._T)(l,["defaultValue"]),m=(0,I.mf)(o)?o(r):o;a(m),m===void 0?Ne().remove(e):Ne().set(e,m,g)});return[r,i]}var rn=tn,un=f(27484),an=f.n(un),Pe=function(e){if(!e)return 0;var n=an()(e).valueOf()-Date.now();return n<0?0:n},on=function(e){return{days:Math.floor(e/864e5),hours:Math.floor(e/36e5)%24,minutes:Math.floor(e/6e4)%60,seconds:Math.floor(e/1e3)%60,milliseconds:Math.floor(e)%1e3}},ze=function(e){e===void 0&&(e={});var n=e||{},t=n.leftTime,r=n.targetDate,a=n.interval,i=a===void 0?1e3:a,o=n.onEnd,s=(0,c.useMemo)(function(){return"leftTime"in e?(0,I.hj)(t)&&t>0?Date.now()+t:void 0:r},[t,r]),l=(0,u.CR)((0,c.useState)(function(){return Pe(s)}),2),E=l[0],g=l[1],m=(0,$.Z)(o);(0,c.useEffect)(function(){if(!s){g(0);return}g(Pe(s));var p=setInterval(function(){var S,T=Pe(s);g(T),T===0&&(clearInterval(p),(S=m.current)===null||S===void 0||S.call(m))},i);return function(){return clearInterval(p)}},[s,i]);var h=(0,c.useMemo)(function(){return on(E)},[E]);return[E,h]},cn=ze;function He(e,n){n===void 0&&(n={});var t=n.min,r=n.max,a=e;return(0,I.hj)(r)&&(a=Math.min(r,a)),(0,I.hj)(t)&&(a=Math.max(t,a)),a}function fn(e,n){e===void 0&&(e=0),n===void 0&&(n={});var t=n.min,r=n.max,a=(0,u.CR)((0,c.useState)(function(){return He(e,{min:t,max:r})}),2),i=a[0],o=a[1],s=function(h){o(function(p){var S=(0,I.hj)(h)?h:h(p);return He(S,{max:r,min:t})})},l=function(h){h===void 0&&(h=1),s(function(p){return p+h})},E=function(h){h===void 0&&(h=1),s(function(p){return p-h})},g=function(h){s(h)},m=function(){s(e)};return[i,{inc:(0,d.Z)(l),dec:(0,d.Z)(E),set:(0,d.Z)(g),reset:(0,d.Z)(m)}]}var sn=fn,Ve=f(85292),ln=f(58580),Xe=f(85980);function vn(e,n,t){var r=(0,u.CR)((0,c.useState)({}),2),a=r[0],i=r[1],o=(0,Xe.Z)(function(){i({})},t).run;(0,c.useEffect)(function(){return o()},n),(0,H.Z)(e,[a])}var dn=vn,mn=f(8291),be=f(31351),gn=(0,be.o)(c.useLayoutEffect),pe=f(83204),De=f(52982),Ye=function(){return De.Z?document.visibilityState:"visible"};function hn(){var e=(0,u.CR)((0,c.useState)(function(){return Ye()}),2),n=e[0],t=e[1];return(0,pe.Z)("visibilitychange",function(){t(Ye())},{target:function(){return document}}),n}var En=hn,Rn=function(e,n,t){t===void 0&&(t={});var r=(0,$.Z)(t),a=(0,$.Z)(e);(0,Ee.Z)(function(){var i=(0,G.n)(n);if(i!=null&&i.addEventListener){var o=function(l){var E,g;(g=(E=r.current).onDragStart)===null||g===void 0||g.call(E,l),l.dataTransfer.setData("custom",JSON.stringify(a.current))},s=function(l){var E,g;(g=(E=r.current).onDragEnd)===null||g===void 0||g.call(E,l)};return i.setAttribute("draggable","true"),i.addEventListener("dragstart",o),i.addEventListener("dragend",s),function(){i.removeEventListener("dragstart",o),i.removeEventListener("dragend",s)}}},[],n)},pn=Rn,Cn=function(e,n){n===void 0&&(n={});var t=(0,$.Z)(n),r=(0,c.useRef)();(0,Ee.Z)(function(){var a=(0,G.n)(e);if(a!=null&&a.addEventListener){var i=function(m,h){var p=m.getData("text/uri-list"),S=m.getData("custom");if(S&&t.current.onDom){var T=S;try{T=JSON.parse(S)}catch{T=S}t.current.onDom(T,h);return}if(p&&t.current.onUri){t.current.onUri(p,h);return}if(m.files&&m.files.length&&t.current.onFiles){t.current.onFiles(Array.from(m.files),h);return}m.items&&m.items.length&&t.current.onText&&m.items[0].getAsString(function(R){t.current.onText(R,h)})},o=function(m){var h,p;m.preventDefault(),m.stopPropagation(),r.current=m.target,(p=(h=t.current).onDragEnter)===null||p===void 0||p.call(h,m)},s=function(m){var h,p;m.preventDefault(),(p=(h=t.current).onDragOver)===null||p===void 0||p.call(h,m)},l=function(m){var h,p;m.target===r.current&&((p=(h=t.current).onDragLeave)===null||p===void 0||p.call(h,m))},E=function(m){var h,p;m.preventDefault(),i(m.dataTransfer,m),(p=(h=t.current).onDrop)===null||p===void 0||p.call(h,m)},g=function(m){var h,p;i(m.clipboardData,m),(p=(h=t.current).onPaste)===null||p===void 0||p.call(h,m)};return a.addEventListener("dragenter",o),a.addEventListener("dragover",s),a.addEventListener("dragleave",l),a.addEventListener("drop",E),a.addEventListener("paste",g),function(){a.removeEventListener("dragenter",o),a.removeEventListener("dragover",s),a.removeEventListener("dragleave",l),a.removeEventListener("drop",E),a.removeEventListener("paste",g)}}},[],e)},yn=Cn,Pn=function(e){e===void 0&&(e=[]);var n=(0,c.useRef)(-1),t=(0,c.useRef)([]),r=(0,c.useCallback)(function(M){n.current+=1,t.current.splice(M,0,n.current)},[]),a=(0,u.CR)((0,c.useState)(function(){return e.forEach(function(M,F){r(F)}),e}),2),i=a[0],o=a[1],s=(0,c.useCallback)(function(M){t.current=[],o(function(){return M.forEach(function(F,_){r(_)}),M})},[]),l=(0,c.useCallback)(function(M,F){o(function(_){var P=(0,u.ev)([],(0,u.CR)(_),!1);return P.splice(M,0,F),r(M),P})},[]),E=(0,c.useCallback)(function(M){return t.current[M]},[]),g=(0,c.useCallback)(function(M){return t.current.findIndex(function(F){return F===M})},[]),m=(0,c.useCallback)(function(M,F){o(function(_){var P=(0,u.ev)([],(0,u.CR)(_),!1);return F.forEach(function(w,W){r(M+W)}),P.splice.apply(P,(0,u.ev)([M,0],(0,u.CR)(F),!1)),P})},[]),h=(0,c.useCallback)(function(M,F){o(function(_){var P=(0,u.ev)([],(0,u.CR)(_),!1);return P[M]=F,P})},[]),p=(0,c.useCallback)(function(M){o(function(F){var _=(0,u.ev)([],(0,u.CR)(F),!1);_.splice(M,1);try{t.current.splice(M,1)}catch(P){console.error(P)}return _})},[]),S=(0,c.useCallback)(function(M,F){M!==F&&o(function(_){var P=(0,u.ev)([],(0,u.CR)(_),!1),w=P.filter(function(ue,ie){return ie!==M});w.splice(F,0,P[M]);try{var W=t.current.filter(function(ue,ie){return ie!==M});W.splice(F,0,t.current[M]),t.current=W}catch(ue){console.error(ue)}return w})},[]),T=(0,c.useCallback)(function(M){o(function(F){return r(F.length),F.concat([M])})},[]),R=(0,c.useCallback)(function(){try{t.current=t.current.slice(0,t.current.length-1)}catch(M){console.error(M)}o(function(M){return M.slice(0,M.length-1)})},[]),Y=(0,c.useCallback)(function(M){o(function(F){return r(0),[M].concat(F)})},[]),K=(0,c.useCallback)(function(){try{t.current=t.current.slice(1,t.current.length)}catch(M){console.error(M)}o(function(M){return M.slice(1,M.length)})},[]),j=(0,c.useCallback)(function(M){return M.map(function(F,_){return{key:_,item:F}}).sort(function(F,_){return g(F.key)-g(_.key)}).filter(function(F){return!!F.item}).map(function(F){return F.item})},[]);return{list:i,insert:l,merge:m,replace:h,remove:p,getKey:E,getIndex:g,move:S,push:T,pop:R,unshift:Y,shift:K,sortList:j,resetList:s}},D=Pn,C=function(){function e(){var n=this;this.subscriptions=new Set,this.emit=function(t){var r,a;try{for(var i=(0,u.XA)(n.subscriptions),o=i.next();!o.done;o=i.next()){var s=o.value;s(t)}}catch(l){r={error:l}}finally{try{o&&!o.done&&(a=i.return)&&a.call(i)}finally{if(r)throw r.error}}},this.useSubscription=function(t){var r=(0,c.useRef)();r.current=t,(0,c.useEffect)(function(){function a(i){r.current&&r.current(i)}return n.subscriptions.add(a),function(){n.subscriptions.delete(a)}},[])}}return e}();function y(){var e=(0,c.useRef)();return e.current||(e.current=new C),e.current}function B(e){var n=e||{},t=n.initialValue,r=n.transformer,a=(0,u.CR)((0,c.useState)(t),2),i=a[0],o=a[1],s=(0,$.Z)(r),l=(0,c.useCallback)(function(){return o(t)},[]),E=(0,c.useCallback)(function(g){var m=g.target.value;return(0,I.mf)(s.current)?o(s.current(m)):o(m)},[]);return[i,{onChange:E,reset:l}]}var N=B,x={},z=function(e,n){n===void 0&&(n={});var t=document.querySelector('script[src="'.concat(e,'"]'));if(!t){var r=document.createElement("script");return r.src=e,Object.keys(n).forEach(function(a){r[a]=n[a]}),r.setAttribute("data-status","loading"),document.body.appendChild(r),{ref:r,status:"loading"}}return{ref:t,status:t.getAttribute("data-status")||"ready"}},Q=function(e,n){n===void 0&&(n={});var t=document.querySelector('link[href="'.concat(e,'"]'));if(!t){var r=document.createElement("link");r.rel="stylesheet",r.href=e,Object.keys(n).forEach(function(i){r[i]=n[i]});var a="hideFocus"in r;return a&&r.relList&&(r.rel="preload",r.as="style"),r.setAttribute("data-status","loading"),document.head.appendChild(r),{ref:r,status:"loading"}}return{ref:t,status:t.getAttribute("data-status")||"ready"}},J=function(e,n){var t=(0,u.CR)((0,c.useState)(e?"loading":"unset"),2),r=t[0],a=t[1],i=(0,c.useRef)();return(0,c.useEffect)(function(){if(!e){a("unset");return}var o=e.replace(/[|#].*$/,"");if((n==null?void 0:n.type)==="css"||!(n!=null&&n.type)&&/(^css!|\.css$)/.test(o)){var s=Q(e,n==null?void 0:n.css);i.current=s.ref,a(s.status)}else if((n==null?void 0:n.type)==="js"||!(n!=null&&n.type)&&/(^js!|\.js$)/.test(o)){var s=z(e,n==null?void 0:n.js);i.current=s.ref,a(s.status)}else console.error("Cannot infer the type of external resource, and please provide a type ('js' | 'css'). Refer to the https://ahooks.js.org/hooks/dom/use-external/#options");if(i.current){x[e]===void 0?x[e]=1:x[e]+=1;var l=function(E){var g,m=E.type==="load"?"ready":"error";(g=i.current)===null||g===void 0||g.setAttribute("data-status",m),a(m)};return i.current.addEventListener("load",l),i.current.addEventListener("error",l),function(){var E,g,m;(E=i.current)===null||E===void 0||E.removeEventListener("load",l),(g=i.current)===null||g===void 0||g.removeEventListener("error",l),x[e]-=1,x[e]===0&&!(n!=null&&n.keepWhenUnused)&&((m=i.current)===null||m===void 0||m.remove()),i.current=void 0}}},[e]),r},A=J,re={SVG:"image/svg+xml",ICO:"image/x-icon",GIF:"image/gif",PNG:"image/png"},ee=function(e){(0,c.useEffect)(function(){if(e){var n=e.split("."),t=n[n.length-1].toLocaleUpperCase(),r=document.querySelector("link[rel*='icon']")||document.createElement("link");r.type=re[t],r.href=e,r.rel="shortcut icon",document.getElementsByTagName("head")[0].appendChild(r)}},[e])},ge=ee;function k(e,n){var t=(0,u.CR)((0,c.useState)(!1),2),r=t[0],a=t[1],i=n||{},o=i.onFocus,s=i.onBlur,l=i.onChange;return(0,pe.Z)("focusin",function(E){r||(o==null||o(E),l==null||l(!0),a(!0))},{target:e}),(0,pe.Z)("focusout",function(E){var g,m;r&&!(!((m=(g=E.currentTarget)===null||g===void 0?void 0:g.contains)===null||m===void 0)&&m.call(g,E.relatedTarget))&&(s==null||s(E),l==null||l(!1),a(!1))},{target:e}),r}var q=f(10577),ne=f.n(q),Ce=f(45210),xe=function(e,n){var t=n||{},r=t.onExit,a=t.onEnter,i=t.pageFullscreen,o=i===void 0?!1:i,s=(0,I.jn)(o)||!o?{}:o,l=s.className,E=l===void 0?"ahooks-page-fullscreen":l,g=s.zIndex,m=g===void 0?999999:g,h=(0,$.Z)(r),p=(0,$.Z)(a),S=(0,u.CR)((0,c.useState)(!1),2),T=S[0],R=S[1],Y=function(P){var w,W;P?(w=p.current)===null||w===void 0||w.call(p):(W=h.current)===null||W===void 0||W.call(h)},K=(0,d.Z)(function(){if(ne().isEnabled){var P=(0,G.n)(e);if(!ne().element)Y(!1),R(!1),ne().off("change",K);else{var w=ne().element===P;Y(w),R(w)}}}),j=function(P){var w=(0,G.n)(e);if(w){var W=document.getElementById(E);P?(w.classList.add(E),W||(W=document.createElement("style"),W.setAttribute("id",E),W.textContent=`
|
|
2
|
-
.`.concat(E,` {
|
|
3
|
-
position: fixed; left: 0; top: 0; right: 0; bottom: 0;
|
|
4
|
-
width: 100% !important; height: 100% !important;
|
|
5
|
-
z-index: `).concat(m,`;
|
|
6
|
-
}`),w.appendChild(W))):(w.classList.remove(E),W&&W.remove()),T!==P&&(Y(P),R(P))}},M=function(){var P=(0,G.n)(e);if(P){if(o){j(!0);return}if(ne().isEnabled)try{ne().request(P),ne().on("change",K)}catch(w){console.error(w)}}},F=function(){var P=(0,G.n)(e);if(P){if(o){j(!1);return}ne().isEnabled&&ne().element===P&&ne().exit()}},_=function(){T?F():M()};return(0,Ce.Z)(function(){ne().isEnabled&&!o&&ne().off("change",K)}),[T,{enterFullscreen:(0,d.Z)(M),exitFullscreen:(0,d.Z)(F),toggleFullscreen:(0,d.Z)(_),isEnabled:ne().isEnabled}]},Ge=xe,Ke=function(e){return{getFieldInstance:function(n){return e.getNames().includes(n)},setFieldsValue:e.setValues,getFieldsValue:e.getValues,resetFields:e.resetToDefault,validateFields:function(n,t){e.validate(n,t)}}},Ue=function(e){var n={dataSource:e.tableProps.dataSource,loading:e.tableProps.loading,onSort:function(r,a){var i;e.tableProps.onChange({current:e.pagination.current,pageSize:e.pagination.pageSize},(i=e.params[0])===null||i===void 0?void 0:i.filters,{field:r,order:a})},onFilter:function(r){var a;e.tableProps.onChange({current:e.pagination.current,pageSize:e.pagination.pageSize},r,(a=e.params[0])===null||a===void 0?void 0:a.sorter)}},t={onChange:e.pagination.changeCurrent,onPageSizeChange:e.pagination.changePageSize,current:e.pagination.current,pageSize:e.pagination.pageSize,total:e.pagination.total};return(0,u.pi)((0,u.pi)({},e),{tableProps:n,paginationProps:t})},Se=function(e,n){n===void 0&&(n={});var t=U(e,(0,u.pi)((0,u.pi)({},n),{form:n.field?Ke(n.field):void 0}));return Ue(t)},_e=Se;function Je(e){var n=(0,u.CR)((0,c.useState)(e),2),t=n[0],r=n[1],a=(0,c.useRef)(t);a.current=t;var i=(0,c.useCallback)(function(){return a.current},[]);return[t,r,i]}var We=Je,Vn=function(e,n){var t=e>0?e-1:n.length+e;return t>=n.length-1&&(t=n.length-1),t<0&&(t=0),t},bn=function(e,n){var t=Vn(e,n);return{_current:n[t],_before:n.slice(0,t),_after:n.slice(t+1)}};function Xn(e,n){n===void 0&&(n=0);var t=(0,u.CR)((0,c.useState)({present:e,past:[],future:[]}),2),r=t[0],a=t[1],i=r.present,o=r.past,s=r.future,l=(0,c.useRef)(e),E=function(){for(var S=[],T=0;T<arguments.length;T++)S[T]=arguments[T];var R=S.length>0?S[0]:l.current;l.current=R,a({present:R,future:[],past:[]})},g=function(S){var T=(0,u.ev)((0,u.ev)([],(0,u.CR)(o),!1),[i],!1),R=(0,I.hj)(n)?n:Number(n);R>0&&T.length>R&&T.splice(0,1),a({present:S,future:[],past:T})},m=function(S){if(S===void 0&&(S=1),s.length!==0){var T=bn(S,s),R=T._before,Y=T._current,K=T._after;a({past:(0,u.ev)((0,u.ev)((0,u.ev)([],(0,u.CR)(o),!1),[i],!1),(0,u.CR)(R),!1),present:Y,future:K})}},h=function(S){if(S===void 0&&(S=-1),o.length!==0){var T=bn(S,o),R=T._before,Y=T._current,K=T._after;a({past:R,present:Y,future:(0,u.ev)((0,u.ev)((0,u.ev)([],(0,u.CR)(K),!1),[i],!1),(0,u.CR)(s),!1)})}},p=function(S){var T=(0,I.hj)(S)?S:Number(S);if(T!==0){if(T>0)return m(T);h(T)}};return{value:i,backLength:o.length,forwardLength:s.length,setValue:(0,d.Z)(g),go:(0,d.Z)(p),back:(0,d.Z)(function(){p(-1)}),forward:(0,d.Z)(function(){p(1)}),reset:(0,d.Z)(E)}}var Yn=function(e,n){var t=n||{},r=t.onEnter,a=t.onLeave,i=t.onChange,o=(0,u.CR)((0,se.Z)(!1),2),s=o[0],l=o[1],E=l.setTrue,g=l.setFalse;return(0,pe.Z)("mouseenter",function(){r==null||r(),E(),i==null||i(!0)},{target:e}),(0,pe.Z)("mouseleave",function(){a==null||a(),g(),i==null||i(!1)},{target:e}),s},Gn=function(e){return e===document||e===document.body?Math.max(window.pageYOffset,document.documentElement.scrollTop,document.body.scrollTop):e.scrollTop},Jn=function(e){return e.scrollHeight||Math.max(document.documentElement.scrollHeight,document.body.scrollHeight)},$n=function(e){return e.clientHeight||Math.max(document.documentElement.clientHeight,document.body.clientHeight)},Qn=function(e,n){n===void 0&&(n={});var t=n.target,r=n.isNoMore,a=n.threshold,i=a===void 0?100:a,o=n.reloadDeps,s=o===void 0?[]:o,l=n.manual,E=n.onBefore,g=n.onSuccess,m=n.onError,h=n.onFinally,p=(0,u.CR)((0,c.useState)(),2),S=p[0],T=p[1],R=(0,u.CR)((0,c.useState)(!1),2),Y=R[0],K=R[1],j=(0,c.useMemo)(function(){return r?r(S):!1},[S]),M=(0,L.Z)(function(le){return(0,u.mG)(void 0,void 0,void 0,function(){var V,ve,ce;return(0,u.Jh)(this,function(fe){switch(fe.label){case 0:return[4,e(le)];case 1:return V=fe.sent(),T(le?(0,u.pi)((0,u.pi)({},V),{list:(0,u.ev)((0,u.ev)([],(0,u.CR)((ce=le.list)!==null&&ce!==void 0?ce:[]),!1),(0,u.CR)(V.list),!1)}):(0,u.pi)((0,u.pi)({},V),{list:(0,u.ev)([],(0,u.CR)((ve=V.list)!==null&&ve!==void 0?ve:[]),!1)})),[2,V]}})})},{manual:l,onFinally:function(le,V,ve){K(!1),h==null||h(V,ve)},onBefore:function(){return E==null?void 0:E()},onSuccess:function(le){setTimeout(function(){Re()}),g==null||g(le)},onError:function(le){return m==null?void 0:m(le)}}),F=M.loading,_=M.run,P=M.runAsync,w=M.cancel,W=(0,d.Z)(function(){j||(K(!0),_(S))}),ue=(0,d.Z)(function(){return j?Promise.reject():(K(!0),P(S))}),ie=function(){return K(!1),_()},Te=function(){return K(!1),P()},Re=function(){var le=(0,G.n)(t);if(le){le=le===document?document.documentElement:le;var V=Gn(le),ve=Jn(le),ce=$n(le);ve-V<=ce+i&&W()}};return(0,pe.Z)("scroll",function(){F||Y||Re()},{target:t}),(0,H.Z)(function(){_()},(0,u.ev)([],(0,u.CR)(s),!1)),{data:S,loading:!Y&&F,loadingMore:Y,noMore:j,loadMore:W,loadMoreAsync:ue,reload:(0,d.Z)(ie),reloadAsync:(0,d.Z)(Te),mutate:T,cancel:w}},kn=Qn,qn=function(e,n,t){t===void 0&&(t={});var r=(0,d.Z)(e),a=(0,c.useRef)(null),i=(0,c.useCallback)(function(){a.current&&clearInterval(a.current)},[]);return(0,c.useEffect)(function(){if(!(!(0,I.hj)(n)||n<0))return t.immediate&&r(),a.current=setInterval(r,n),i},[n,t.immediate]),i},et=qn,Br=f(66337);function nt(e,n){var t=(0,u.CR)((0,c.useState)(),2),r=t[0],a=t[1],i=(0,u.CR)((0,c.useState)(),2),o=i[0],s=i[1];return(0,Ee.Z)(function(){var l=(0,G.n)(e);if(l){var E=new IntersectionObserver(function(g){var m,h;try{for(var p=(0,u.XA)(g),S=p.next();!S.done;S=p.next()){var T=S.value;s(T.intersectionRatio),a(T.isIntersecting)}}catch(R){m={error:R}}finally{try{S&&!S.done&&(h=p.return)&&h.call(p)}finally{if(m)throw m.error}}},(0,u.pi)((0,u.pi)({},n),{root:(0,G.n)(n==null?void 0:n.root)}));return E.observe(l),function(){E.disconnect()}}},[n==null?void 0:n.rootMargin,n==null?void 0:n.threshold],e),[r,o]}var tt=nt,rt=f(12527),ut=f(70202),at=function(e,n,t){var r=(0,c.useRef)(),a=(0,c.useRef)(0);(0,ut.k)(n,r.current)||(r.current=n,a.current+=1),(0,Ee.Z)(e,[a.current],t)},Zn=at,it=/(mac|iphone|ipod|ipad)/i.test(typeof navigator<"u"?navigator==null?void 0:navigator.platform:""),ot=it,An={0:48,1:49,2:50,3:51,4:52,5:53,6:54,7:55,8:56,9:57,backspace:8,tab:9,enter:13,shift:16,ctrl:17,alt:18,pausebreak:19,capslock:20,esc:27,space:32,pageup:33,pagedown:34,end:35,home:36,leftarrow:37,uparrow:38,rightarrow:39,downarrow:40,insert:45,delete:46,a:65,b:66,c:67,d:68,e:69,f:70,g:71,h:72,i:73,j:74,k:75,l:76,m:77,n:78,o:79,p:80,q:81,r:82,s:83,t:84,u:85,v:86,w:87,x:88,y:89,z:90,leftwindowkey:91,rightwindowkey:92,meta:ot?[91,93]:[91,92],selectkey:93,numpad0:96,numpad1:97,numpad2:98,numpad3:99,numpad4:100,numpad5:101,numpad6:102,numpad7:103,numpad8:104,numpad9:105,multiply:106,add:107,subtract:109,decimalpoint:110,divide:111,f1:112,f2:113,f3:114,f4:115,f5:116,f6:117,f7:118,f8:119,f9:120,f10:121,f11:122,f12:123,numlock:144,scrolllock:145,semicolon:186,equalsign:187,comma:188,dash:189,period:190,forwardslash:191,graveaccent:192,openbracket:219,backslash:220,closebracket:221,singlequote:222},Dn={ctrl:function(e){return e.ctrlKey},shift:function(e){return e.shiftKey},alt:function(e){return e.altKey},meta:function(e){return e.type==="keyup"?An.meta.includes(e.keyCode):e.metaKey}};function ct(e){var n=Object.keys(Dn).reduce(function(t,r){return Dn[r](e)?t+1:t},0);return[16,17,18,91,92].includes(e.keyCode)?n:n+1}function In(e,n,t){var r,a;if(!e.key)return!1;if((0,I.hj)(n))return e.keyCode===n;var i=n.split("."),o=0;try{for(var s=(0,u.XA)(i),l=s.next();!l.done;l=s.next()){var E=l.value,g=Dn[E],m=An[E.toLowerCase()];(g&&g(e)||m&&m===e.keyCode)&&o++}}catch(h){r={error:h}}finally{try{l&&!l.done&&(a=s.return)&&a.call(s)}finally{if(r)throw r.error}}return t?o===i.length&&ct(e)===i.length:o===i.length}function ft(e,n){return(0,I.mf)(e)?e:(0,I.HD)(e)||(0,I.hj)(e)?function(t){return In(t,e,n)}:Array.isArray(e)?function(t){return e.some(function(r){return In(t,r,n)})}:function(){return!!e}}var st=["keydown"];function lt(e,n,t){var r=t||{},a=r.events,i=a===void 0?st:a,o=r.target,s=r.exactMatch,l=s===void 0?!1:s,E=r.useCapture,g=E===void 0?!1:E,m=(0,$.Z)(n),h=(0,$.Z)(e);Zn(function(){var p,S,T,R=(0,G.n)(o,window);if(R){var Y=function(F){var _,P=ft(h.current,l);if(P(F))return(_=m.current)===null||_===void 0?void 0:_.call(m,F)};try{for(var K=(0,u.XA)(i),j=K.next();!j.done;j=K.next()){var M=j.value;(T=R==null?void 0:R.addEventListener)===null||T===void 0||T.call(R,M,Y,g)}}catch(F){p={error:F}}finally{try{j&&!j.done&&(S=K.return)&&S.call(K)}finally{if(p)throw p.error}}return function(){var F,_,P;try{for(var w=(0,u.XA)(i),W=w.next();!W.done;W=w.next()){var ue=W.value;(P=R==null?void 0:R.removeEventListener)===null||P===void 0||P.call(R,ue,Y,g)}}catch(ie){F={error:ie}}finally{try{W&&!W.done&&(_=w.return)&&_.call(w)}finally{if(F)throw F.error}}}}},[i],o)}var vt=lt,dt=f(51283);function mt(e){var n=this,t=(0,c.useRef)(!1);return(0,c.useCallback)(function(){for(var r=[],a=0;a<arguments.length;a++)r[a]=arguments[a];return(0,u.mG)(n,void 0,void 0,function(){var i,o;return(0,u.Jh)(this,function(s){switch(s.label){case 0:if(t.current)return[2];t.current=!0,s.label=1;case 1:return s.trys.push([1,3,,4]),[4,e.apply(void 0,(0,u.ev)([],(0,u.CR)(r),!1))];case 2:return i=s.sent(),t.current=!1,[2,i];case 3:throw o=s.sent(),t.current=!1,o;case 4:return[2]}})})},[e])}var gt=mt,Fn=De.Z&&("ontouchstart"in window||window.DocumentTouch&&document instanceof DocumentTouch);function ht(e,n,t){var r=t===void 0?{}:t,a=r.delay,i=a===void 0?300:a,o=r.moveThreshold,s=r.onClick,l=r.onLongPressEnd,E=(0,$.Z)(e),g=(0,$.Z)(s),m=(0,$.Z)(l),h=(0,c.useRef)(),p=(0,c.useRef)(!1),S=(0,c.useRef)({x:0,y:0}),T=!!(o!=null&&o.x&&o.x>0||o!=null&&o.y&&o.y>0);(0,Ee.Z)(function(){var R=(0,G.n)(n);if(!(R!=null&&R.addEventListener))return;var Y=function(P){var w=K(P),W=w.clientX,ue=w.clientY,ie=Math.abs(W-S.current.x),Te=Math.abs(ue-S.current.y);return!!(o!=null&&o.x&&ie>o.x||o!=null&&o.y&&Te>o.y)};function K(P){return P instanceof TouchEvent?{clientX:P.touches[0].clientX,clientY:P.touches[0].clientY}:P instanceof MouseEvent?{clientX:P.clientX,clientY:P.clientY}:(console.warn("Unsupported event type"),{clientX:0,clientY:0})}var j=function(P){if(T){var w=K(P),W=w.clientX,ue=w.clientY;S.current.x=W,S.current.y=ue}h.current=setTimeout(function(){E.current(P),p.current=!0},i)},M=function(P){h.current&&Y(P)&&(clearInterval(h.current),h.current=void 0)},F=function(P,w){var W;w===void 0&&(w=!1),h.current&&clearTimeout(h.current),p.current&&((W=m.current)===null||W===void 0||W.call(m,P)),w&&!p.current&&g.current&&g.current(P),p.current=!1},_=function(P){return F(P,!0)};return Fn?(R.addEventListener("touchstart",j),R.addEventListener("touchend",_),T&&R.addEventListener("touchmove",M)):(R.addEventListener("mousedown",j),R.addEventListener("mouseup",_),R.addEventListener("mouseleave",F),T&&R.addEventListener("mousemove",M)),function(){h.current&&(clearTimeout(h.current),p.current=!1),Fn?(R.removeEventListener("touchstart",j),R.removeEventListener("touchend",_),T&&R.removeEventListener("touchmove",M)):(R.removeEventListener("mousedown",j),R.removeEventListener("mouseup",_),R.removeEventListener("mouseleave",F),T&&R.removeEventListener("mousemove",M))}},[],n)}var Et=ht;function Rt(e){var n=function(){return new Map(e)},t=(0,u.CR)((0,c.useState)(n),2),r=t[0],a=t[1],i=function(g,m){a(function(h){var p=new Map(h);return p.set(g,m),p})},o=function(g){a(new Map(g))},s=function(g){a(function(m){var h=new Map(m);return h.delete(g),h})},l=function(){return a(n())},E=function(g){return r.get(g)};return[r,{set:(0,d.Z)(i),setAll:(0,d.Z)(o),remove:(0,d.Z)(s),reset:(0,d.Z)(l),get:(0,d.Z)(E)}]}var pt=Rt,Ct=f(78234);function yt(e){var n=(0,c.useRef)(0),t=(0,u.CR)((0,c.useState)(e),2),r=t[0],a=t[1],i=(0,c.useCallback)(function(o){cancelAnimationFrame(n.current),n.current=requestAnimationFrame(function(){a(o)})},[]);return(0,Ce.Z)(function(){cancelAnimationFrame(n.current)}),[r,i]}var $e=yt,Pt={screenX:NaN,screenY:NaN,clientX:NaN,clientY:NaN,pageX:NaN,pageY:NaN,elementX:NaN,elementY:NaN,elementH:NaN,elementW:NaN,elementPosX:NaN,elementPosY:NaN},Dt=function(e){var n=(0,u.CR)($e(Pt),2),t=n[0],r=n[1];return(0,pe.Z)("mousemove",function(a){var i=a.screenX,o=a.screenY,s=a.clientX,l=a.clientY,E=a.pageX,g=a.pageY,m={screenX:i,screenY:o,clientX:s,clientY:l,pageX:E,pageY:g,elementX:NaN,elementY:NaN,elementH:NaN,elementW:NaN,elementPosX:NaN,elementPosY:NaN},h=(0,G.n)(e);if(h){var p=h.getBoundingClientRect(),S=p.left,T=p.top,R=p.width,Y=p.height;m.elementPosX=S+window.pageXOffset,m.elementPosY=T+window.pageYOffset,m.elementX=E-m.elementPosX,m.elementY=g-m.elementPosY,m.elementW=R,m.elementH=Y}r(m)},{target:function(){return document}}),t},Ze;(function(e){e.ONLINE="online",e.OFFLINE="offline",e.CHANGE="change"})(Ze||(Ze={}));function Wn(){var e=navigator;return(0,I.Kn)(e)?e.connection||e.mozConnection||e.webkitConnection:null}function wn(){var e=Wn();return e?{rtt:e.rtt,type:e.type,saveData:e.saveData,downlink:e.downlink,downlinkMax:e.downlinkMax,effectiveType:e.effectiveType}:{}}function St(){var e=(0,u.CR)((0,c.useState)(function(){return(0,u.pi)({since:void 0,online:navigator==null?void 0:navigator.onLine},wn())}),2),n=e[0],t=e[1];return(0,c.useEffect)(function(){var r=function(){t(function(s){return(0,u.pi)((0,u.pi)({},s),{online:!0,since:new Date})})},a=function(){t(function(s){return(0,u.pi)((0,u.pi)({},s),{online:!1,since:new Date})})},i=function(){t(function(s){return(0,u.pi)((0,u.pi)({},s),wn())})};window.addEventListener(Ze.ONLINE,r),window.addEventListener(Ze.OFFLINE,a);var o=Wn();return o==null||o.addEventListener(Ze.CHANGE,i),function(){window.removeEventListener(Ze.ONLINE,r),window.removeEventListener(Ze.OFFLINE,a),o==null||o.removeEventListener(Ze.CHANGE,i)}},[]),n}var _t=St,Mt=function(e,n){return!Object.is(e,n)};function Tt(e,n){n===void 0&&(n=Mt);var t=(0,c.useRef)(),r=(0,c.useRef)();return n(r.current,e)&&(t.current=r.current,r.current=e),t.current}var Lt=Tt,Ot=function(e,n){if(n===void 0&&(n=0),typeof requestAnimationFrame>"u")return{id:setInterval(e,n)};var t=new Date().getTime(),r={id:0},a=function(){var i=new Date().getTime();i-t>=n&&(e(),t=new Date().getTime()),r.id=requestAnimationFrame(a)};return r.id=requestAnimationFrame(a),r};function bt(e){return typeof cancelAnimationFrame>"u"}var Un=function(e){if(bt(e.id))return clearInterval(e.id);cancelAnimationFrame(e.id)};function Zt(e,n,t){var r=t==null?void 0:t.immediate,a=(0,$.Z)(e),i=(0,c.useRef)();(0,c.useEffect)(function(){if(!(!(0,I.hj)(n)||n<0))return r&&a.current(),i.current=Ot(function(){a.current()},n),function(){i.current&&Un(i.current)}},[n]);var o=(0,c.useCallback)(function(){i.current&&Un(i.current)},[]);return o}var At=Zt,It=function(e,n){if(n===void 0&&(n=0),typeof requestAnimationFrame>"u")return{id:setTimeout(e,n)};var t={id:0},r=new Date().getTime(),a=function(){var i=new Date().getTime();i-r>=n?e():t.id=requestAnimationFrame(a)};return t.id=requestAnimationFrame(a),t};function Ft(e){return typeof cancelAnimationFrame>"u"}var Bn=function(e){if(Ft(e.id))return clearTimeout(e.id);cancelAnimationFrame(e.id)};function Wt(e,n){var t=(0,$.Z)(e),r=(0,c.useRef)();(0,c.useEffect)(function(){if(!(!(0,I.hj)(n)||n<0))return r.current=It(function(){t.current()},n),function(){r.current&&Bn(r.current)}},[n]);var a=(0,c.useCallback)(function(){r.current&&Bn(r.current)},[]);return a}var wt=Wt,Ut=f(68630),Bt=f.n(Ut),Nn=new WeakMap,xn=new WeakMap;function Kn(e,n){var t=Nn.get(e);if(t)return t;if(xn.has(e))return e;var r=new Proxy(e,{get:function(a,i,o){var s=Reflect.get(a,i,o);return Bt()(s)||Array.isArray(s)?Kn(s,n):s},set:function(a,i,o){var s=Reflect.set(a,i,o);return n(),s},deleteProperty:function(a,i){var o=Reflect.deleteProperty(a,i);return n(),o}});return Nn.set(e,r),xn.set(r,e),r}function Nt(e){var n=(0,Ie.Z)(),t=(0,c.useRef)(e),r=(0,Ve.Z)(function(){return Kn(t.current,function(){n()})},[]);return r}var xt=Nt,Kt=f(29178),jt=function(e){var n=(0,u.CR)((0,c.useState)(e),2),t=n[0],r=n[1],a=(0,d.Z)(function(){r(e)});return[t,r,a]},zt=jt,Qe=new Set,Ae,Sn={xs:0,sm:576,md:768,lg:992,xl:1200};function _n(){var e,n,t=Ae;if(Mn(),t!==Ae)try{for(var r=(0,u.XA)(Qe),a=r.next();!a.done;a=r.next()){var i=a.value;i()}}catch(o){e={error:o}}finally{try{a&&!a.done&&(n=r.return)&&n.call(r)}finally{if(e)throw e.error}}}var ke=!1;function Mn(){var e,n,t=window.innerWidth,r={},a=!1;try{for(var i=(0,u.XA)(Object.keys(Sn)),o=i.next();!o.done;o=i.next()){var s=o.value;r[s]=t>=Sn[s],r[s]!==Ae[s]&&(a=!0)}}catch(l){e={error:l}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(e)throw e.error}}a&&(Ae=r)}function Ht(e){Sn=e,Ae&&Mn()}function Vt(){De.Z&&!ke&&(Ae={},Mn(),window.addEventListener("resize",_n),ke=!0);var e=(0,u.CR)((0,c.useState)(Ae),2),n=e[0],t=e[1];return(0,c.useEffect)(function(){if(De.Z){ke||window.addEventListener("resize",_n);var r=function(){t(Ae)};return Qe.add(r),function(){Qe.delete(r),Qe.size===0&&(window.removeEventListener("resize",_n),ke=!1)}}},[]),n}var jn=f(8591);function Xt(e){var n=(0,jn.Z)(),t=(0,u.CR)((0,c.useState)(e),2),r=t[0],a=t[1],i=(0,c.useCallback)(function(o){n.current||a(o)},[]);return[r,i]}var Yt=Xt;function Gt(e,n){n===void 0&&(n=function(){return!0});var t=(0,u.CR)($e(),2),r=t[0],a=t[1],i=(0,$.Z)(n);return(0,Ee.Z)(function(){var o=(0,G.n)(e,document);if(o){var s=function(){var l;o===document?document.scrollingElement?l={left:document.scrollingElement.scrollLeft,top:document.scrollingElement.scrollTop}:l={left:Math.max(window.pageXOffset,document.documentElement.scrollLeft,document.body.scrollLeft),top:Math.max(window.pageYOffset,document.documentElement.scrollTop,document.body.scrollTop)}:l={left:o.scrollLeft,top:o.scrollTop},i.current(l)&&a(l)};return s(),o.addEventListener("scroll",s),function(){o.removeEventListener("scroll",s)}}},[],e),r}var Jt=Gt;function $t(e,n){n===void 0&&(n=[]);var t=(0,u.CR)((0,c.useState)(n),2),r=t[0],a=t[1],i=(0,c.useMemo)(function(){return new Set(r)},[r]),o=function(R){return i.has(R)},s=function(R){return i.add(R),a(Array.from(i))},l=function(R){return i.delete(R),a(Array.from(i))},E=function(R){o(R)?l(R):s(R)},g=function(){e.forEach(function(R){i.add(R)}),a(Array.from(i))},m=function(){e.forEach(function(R){i.delete(R)}),a(Array.from(i))},h=(0,c.useMemo)(function(){return e.every(function(R){return!i.has(R)})},[e,i]),p=(0,c.useMemo)(function(){return e.every(function(R){return i.has(R)})&&!h},[e,i,h]),S=(0,c.useMemo)(function(){return!h&&!p},[h,p]),T=function(){return p?m():g()};return{selected:r,noneSelected:h,allSelected:p,partiallySelected:S,setSelected:a,isSelected:o,select:(0,d.Z)(s),unSelect:(0,d.Z)(l),toggle:(0,d.Z)(E),selectAll:(0,d.Z)(g),unSelectAll:(0,d.Z)(m),toggleAll:(0,d.Z)(T)}}var Qt=f(9577),kt=(0,Qt.f)(function(){return De.Z?sessionStorage:void 0}),qt=kt;function er(e){var n=function(){return new Set(e)},t=(0,u.CR)((0,c.useState)(n),2),r=t[0],a=t[1],i=function(l){r.has(l)||a(function(E){var g=new Set(E);return g.add(l),g})},o=function(l){r.has(l)&&a(function(E){var g=new Set(E);return g.delete(l),g})},s=function(){return a(n())};return[r,{add:(0,d.Z)(i),remove:(0,d.Z)(o),reset:(0,d.Z)(s)}]}var nr=er,tr=f(96638),rr=f(91033),ur=f(44999),ar=(0,ur.Z)(c.useLayoutEffect),ir=ar,or=De.Z?ir:Ee.Z,cr=or;function fr(e){var n=(0,u.CR)($e(function(){var a=(0,G.n)(e);return a?{width:a.clientWidth,height:a.clientHeight}:void 0}),2),t=n[0],r=n[1];return cr(function(){var a=(0,G.n)(e);if(a){var i=new rr.Z(function(o){o.forEach(function(s){var l=s.target,E=l.clientWidth,g=l.clientHeight;r({width:E,height:g})})});return i.observe(a),function(){i.disconnect()}}},[],e),t}var zn=fr,qe={top:NaN,left:NaN,bottom:NaN,right:NaN,height:NaN,width:NaN},Hn=(0,u.pi)({text:""},qe);function sr(e){if(!e||e.rangeCount<1)return qe;var n=e.getRangeAt(0),t=n.getBoundingClientRect(),r=t.height,a=t.width,i=t.top,o=t.left,s=t.right,l=t.bottom;return{height:r,width:a,top:i,left:o,right:s,bottom:l}}function lr(e){var n=(0,u.CR)((0,c.useState)(Hn),2),t=n[0],r=n[1],a=(0,c.useRef)(t),i=(0,c.useRef)(!1);return a.current=t,(0,Ee.Z)(function(){var o=(0,G.n)(e,document);if(o){var s=function(){var E=null,g="",m=qe;window.getSelection&&(E=window.getSelection(),g=E?E.toString():"",g&&i.current&&(m=sr(E),r((0,u.pi)((0,u.pi)((0,u.pi)({},t),{text:g}),m))))},l=function(E){if(window.getSelection){a.current.text&&r((0,u.pi)({},Hn)),i.current=!1;var g=window.getSelection();g&&(g.removeAllRanges(),i.current=o.contains(E.target))}};return o.addEventListener("mouseup",s),document.addEventListener("mousedown",l),function(){o.removeEventListener("mouseup",s),document.removeEventListener("mousedown",l)}}},[],e),t}var vr=lr,dr=f(23493),mr=f.n(dr),gr=f(31663);function hr(e,n){var t;gr.Z&&((0,I.mf)(e)||console.error("useThrottleFn expected parameter is a function, got ".concat(typeof e)));var r=(0,$.Z)(e),a=(t=n==null?void 0:n.wait)!==null&&t!==void 0?t:1e3,i=(0,c.useMemo)(function(){return mr()(function(){for(var o=[],s=0;s<arguments.length;s++)o[s]=arguments[s];return r.current.apply(r,(0,u.ev)([],(0,u.CR)(o),!1))},a,n)},[]);return(0,Ce.Z)(function(){i.cancel()}),{run:i,cancel:i.cancel,flush:i.flush}}var Tn=hr;function Er(e,n){var t=(0,u.CR)((0,c.useState)(e),2),r=t[0],a=t[1],i=Tn(function(){a(e)},n).run;return(0,c.useEffect)(function(){i()},[e]),r}var Rr=Er;function pr(e,n,t){var r=(0,u.CR)((0,c.useState)({}),2),a=r[0],i=r[1],o=Tn(function(){i({})},t).run;(0,c.useEffect)(function(){return o()},n),(0,H.Z)(e,[a])}var Cr=pr,yr=function(e,n){var t=(0,d.Z)(e),r=(0,c.useRef)(null),a=(0,c.useCallback)(function(){r.current&&clearTimeout(r.current)},[]);return(0,c.useEffect)(function(){if(!(!(0,I.hj)(n)||n<0))return r.current=setTimeout(t,n),a},[n]),a},Pr=yr,Dr={restoreOnUnmount:!1};function Sr(e,n){n===void 0&&(n=Dr);var t=(0,c.useRef)(De.Z?document.title:"");(0,c.useEffect)(function(){document.title=e},[e]),(0,Ce.Z)(function(){n.restoreOnUnmount&&(document.title=t.current)})}var _r=Sr,Mr=f(70451),Tr=function(e,n){return e?e.map(function(t,r){return Object.is(e[r],n==null?void 0:n[r])?-1:r}).filter(function(t){return t>=0}):n?n.map(function(t,r){return r}):[]},Lr=function(e,n){var t=(0,c.useRef)();(0,c.useEffect)(function(){var r=Tr(t.current,n),a=t.current;return t.current=n,e(r,a,n)},n)},Or=Lr,br=(0,v.a)(c.useLayoutEffect),Zr=function(e,n){var t=n.containerTarget,r=n.wrapperTarget,a=n.itemHeight,i=n.overscan,o=i===void 0?5:i,s=(0,$.Z)(a),l=zn(t),E=(0,c.useRef)(!1),g=(0,u.CR)((0,c.useState)([]),2),m=g[0],h=g[1],p=(0,u.CR)((0,c.useState)({}),2),S=p[0],T=p[1],R=function(_,P){if((0,I.hj)(s.current))return Math.ceil(_/s.current);for(var w=0,W=0,ue=P;ue<e.length;ue++){var ie=s.current(ue,e[ue]);if(w+=ie,W=ue,w>=_)break}return W-P},Y=function(_){if((0,I.hj)(s.current))return Math.floor(_/s.current)+1;for(var P=0,w=0,W=0;W<e.length;W++){var ue=s.current(W,e[W]);if(P+=ue,P>=_){w=W;break}}return w+1},K=function(_){if((0,I.hj)(s.current)){var P=_*s.current;return P}var w=e.slice(0,_).reduce(function(W,ue,ie){return W+s.current(ie,e[ie])},0);return w},j=(0,c.useMemo)(function(){return(0,I.hj)(s.current)?e.length*s.current:e.reduce(function(_,P,w){return _+s.current(w,e[w])},0)},[e]),M=function(){var _=(0,G.n)(t);if(_){var P=_.scrollTop,w=_.clientHeight,W=Y(P),ue=R(w,W),ie=Math.max(0,W-o),Te=Math.min(e.length,W+ue+o),Re=K(ie);T({height:j-Re+"px",marginTop:Re+"px"}),h(e.slice(ie,Te).map(function(le,V){return{data:le,index:V+ie}}))}};(0,H.Z)(function(){var _=(0,G.n)(r);_&&Object.keys(S).forEach(function(P){return _.style[P]=S[P]})},[S]),(0,c.useEffect)(function(){!(l!=null&&l.width)||!(l!=null&&l.height)||M()},[l==null?void 0:l.width,l==null?void 0:l.height,e]),(0,pe.Z)("scroll",function(_){if(E.current){E.current=!1;return}_.preventDefault(),M()},{target:t});var F=function(_){var P=(0,G.n)(t);P&&(E.current=!0,P.scrollTop=K(_),M())};return[m,(0,d.Z)(F)]},Ar=Zr,Me;(function(e){e[e.Connecting=0]="Connecting",e[e.Open=1]="Open",e[e.Closing=2]="Closing",e[e.Closed=3]="Closed"})(Me||(Me={}));function Ir(e,n){n===void 0&&(n={});var t=n.reconnectLimit,r=t===void 0?3:t,a=n.reconnectInterval,i=a===void 0?3*1e3:a,o=n.manual,s=o===void 0?!1:o,l=n.onOpen,E=n.onClose,g=n.onMessage,m=n.onError,h=n.protocols,p=(0,$.Z)(l),S=(0,$.Z)(E),T=(0,$.Z)(g),R=(0,$.Z)(m),Y=(0,c.useRef)(0),K=(0,c.useRef)(),j=(0,c.useRef)(),M=(0,u.CR)((0,c.useState)(),2),F=M[0],_=M[1],P=(0,u.CR)((0,c.useState)(Me.Closed),2),w=P[0],W=P[1],ue=function(){var V;Y.current<r&&((V=j.current)===null||V===void 0?void 0:V.readyState)!==Me.Open&&(K.current&&clearTimeout(K.current),K.current=setTimeout(function(){ie(),Y.current++},i))},ie=function(){K.current&&clearTimeout(K.current),j.current&&j.current.close();var V=new WebSocket(e,h);W(Me.Connecting),V.onerror=function(ve){var ce;j.current===V&&(ue(),(ce=R.current)===null||ce===void 0||ce.call(R,ve,V),W(V.readyState||Me.Closed))},V.onopen=function(ve){var ce;j.current===V&&((ce=p.current)===null||ce===void 0||ce.call(p,ve,V),Y.current=0,W(V.readyState||Me.Open))},V.onmessage=function(ve){var ce;j.current===V&&((ce=T.current)===null||ce===void 0||ce.call(T,ve,V),_(ve))},V.onclose=function(ve){var ce;(ce=S.current)===null||ce===void 0||ce.call(S,ve,V),j.current===V&&ue(),(!j.current||j.current===V)&&W(V.readyState||Me.Closed)},j.current=V},Te=function(V){var ve;if(w===Me.Open)(ve=j.current)===null||ve===void 0||ve.send(V);else throw new Error("WebSocket disconnected")},Re=function(){Y.current=0,ie()},le=function(){var V;K.current&&clearTimeout(K.current),Y.current=r,(V=j.current)===null||V===void 0||V.close(),j.current=void 0};return(0,c.useEffect)(function(){!s&&e&&Re()},[e,s]),(0,Ce.Z)(function(){le()}),{latestMessage:F,sendMessage:(0,d.Z)(Te),connect:(0,d.Z)(Re),disconnect:(0,d.Z)(le),readyState:w,webSocketIns:j.current}}function Fr(e,n){var t=(0,c.useRef)({});(0,c.useEffect)(function(){if(t.current){var r=Object.keys((0,u.pi)((0,u.pi)({},t.current),n)),a={};r.forEach(function(i){Object.is(t.current[i],n[i])||(a[i]={from:t.current[i],to:n[i]})}),Object.keys(a).length&&console.log("[why-did-you-update]",e,a)}t.current=n})}var Wr=function(e,n,t){t===void 0&&(t={});var r=(0,$.Z)(e);Zn(function(){var a=(0,G.n)(n);if(a){var i=new MutationObserver(r.current);return i.observe(a,t),function(){i==null||i.disconnect()}}},[t],n)},wr=Wr},36705:function(te,b,f){f.d(b,{Z:function(){return d}});var v=f(97582),u=f(67294),c=f(70451);function d(L){L===void 0&&(L=!1);var Z=(0,v.CR)((0,c.Z)(!!L),2),O=Z[0],H=Z[1],X=H.toggle,U=H.set,I=(0,u.useMemo)(function(){var ae=function(){return U(!0)},he=function(){return U(!1)};return{toggle:X,set:function(de){return U(!!de)},setTrue:ae,setFalse:he}},[]);return[O,I]}},85292:function(te,b,f){f.d(b,{Z:function(){return c}});var v=f(67294),u=f(8224);function c(d,L){var Z=(0,v.useRef)({deps:L,obj:void 0,initialized:!1}).current;return(Z.initialized===!1||!(0,u.Z)(Z.deps,L))&&(Z.deps=L,Z.obj=d(),Z.initialized=!0),Z.obj}},58580:function(te,b,f){var v=f(97582),u=f(67294),c=f(85980);function d(L,Z){var O=(0,v.CR)((0,u.useState)(L),2),H=O[0],X=O[1],U=(0,c.Z)(function(){X(L)},Z).run;return(0,u.useEffect)(function(){U()},[L]),H}b.Z=d},85980:function(te,b,f){var v=f(97582),u=f(23279),c=f.n(u),d=f(67294),L=f(3930),Z=f(45210),O=f(92770),H=f(31663);function X(U,I){var ae;H.Z&&((0,O.mf)(U)||console.error("useDebounceFn expected parameter is a function, got ".concat(typeof U)));var he=(0,L.Z)(U),de=(ae=I==null?void 0:I.wait)!==null&&ae!==void 0?ae:1e3,se=(0,d.useMemo)(function(){return c()(function(){for(var $=[],G=0;G<arguments.length;G++)$[G]=arguments[G];return he.current.apply(he,(0,v.ev)([],(0,v.CR)($),!1))},de,I)},[]);return(0,Z.Z)(function(){se.cancel()}),{run:se,cancel:se.cancel,flush:se.flush}}b.Z=X},8291:function(te,b,f){var v=f(67294),u=f(31351);b.Z=(0,u.o)(v.useEffect)},83204:function(te,b,f){var v=f(3930),u=f(48002),c=f(59682);function d(L,Z,O){O===void 0&&(O={});var H=(0,v.Z)(Z);(0,c.Z)(function(){var X=(0,u.n)(O.target,window);if(X!=null&&X.addEventListener){var U=function(I){return H.current(I)};return X.addEventListener(L,U,{capture:O.capture,once:O.once,passive:O.passive}),function(){X.removeEventListener(L,U,{capture:O.capture})}}},[L,O.capture,O.once,O.passive],O.target)}b.Z=d},12527:function(te,b,f){var v=f(67294),u=f(52982),c=u.Z?v.useLayoutEffect:v.useEffect;b.Z=c},3930:function(te,b,f){var v=f(67294);function u(c){var d=(0,v.useRef)(c);return d.current=c,d}b.Z=u},51283:function(te,b,f){var v=f(9577),u=f(52982),c=(0,v.f)(function(){return u.Z?localStorage:void 0});b.Z=c},22638:function(te,b,f){var v=f(67294),u=f(92770),c=f(31663);function d(L){c.Z&&((0,u.mf)(L)||console.error("useMemoizedFn expected parameter is a function, got ".concat(typeof L)));var Z=(0,v.useRef)(L);Z.current=(0,v.useMemo)(function(){return L},[L]);var O=(0,v.useRef)();return O.current||(O.current=function(){for(var H=[],X=0;X<arguments.length;X++)H[X]=arguments[X];return Z.current.apply(this,H)}),O.current}b.Z=d},78234:function(te,b,f){var v=f(67294),u=f(92770),c=f(31663),d=function(L){c.Z&&((0,u.mf)(L)||console.error('useMount: parameter `fn` expected to be a function, but got "'.concat(typeof L,'".'))),(0,v.useEffect)(function(){L==null||L()},[])};b.Z=d},20578:function(te,b,f){f.d(b,{Z:function(){return Pn}});var v=f(97582),u=f(67294),c=f(42170),d=function(D,C){var y=C.manual,B=C.ready,N=B===void 0?!0:B,x=C.defaultParams,z=x===void 0?[]:x,Q=C.refreshDeps,J=Q===void 0?[]:Q,A=C.refreshDepsAction,re=(0,u.useRef)(!1);return re.current=!1,(0,c.Z)(function(){!y&&N&&(re.current=!0,D.run.apply(D,(0,v.ev)([],(0,v.CR)(z),!1)))},[N]),(0,c.Z)(function(){re.current||y||(re.current=!0,A?A():D.refresh())},(0,v.ev)([],(0,v.CR)(J),!1)),{onBefore:function(){if(!N)return{stopNow:!0}}}};d.onInit=function(D){var C=D.ready,y=C===void 0?!0:C,B=D.manual;return{loading:!B&&y}};var L=d,Z=f(85292),O=f(45210),H=f(29178),X=new Map,U=function(D){return X.get(D)},I=function(D,C){X.set(D,C),C.then(function(y){return X.delete(D),y}).catch(function(){X.delete(D)})},ae={},he=function(D,C){ae[D]&&ae[D].forEach(function(y){return y(C)})},de=function(D,C){return ae[D]||(ae[D]=[]),ae[D].push(C),function(){var B=ae[D].indexOf(C);ae[D].splice(B,1)}},se=function(D,C){var y=C.cacheKey,B=C.cacheTime,N=B===void 0?5*60*1e3:B,x=C.staleTime,z=x===void 0?0:x,Q=C.setCache,J=C.getCache,A=(0,u.useRef)(),re=(0,u.useRef)(),ee=function(k,q){Q?Q(q):H.K7(k,N,q),he(k,q.data)},ge=function(k,q){return q===void 0&&(q=[]),J?J(q):H.lJ(k)};return(0,Z.Z)(function(){if(y){var k=ge(y);k&&Object.hasOwnProperty.call(k,"data")&&(D.state.data=k.data,D.state.params=k.params,(z===-1||new Date().getTime()-k.time<=z)&&(D.state.loading=!1)),A.current=de(y,function(q){D.setState({data:q})})}},[]),(0,O.Z)(function(){var k;(k=A.current)===null||k===void 0||k.call(A)}),y?{onBefore:function(k){var q=ge(y,k);return!q||!Object.hasOwnProperty.call(q,"data")?{}:z===-1||new Date().getTime()-q.time<=z?{loading:!1,data:q==null?void 0:q.data,error:void 0,returnNow:!0}:{data:q==null?void 0:q.data,error:void 0}},onRequest:function(k,q){var ne=U(y);return ne&&ne!==re.current?{servicePromise:ne}:(ne=k.apply(void 0,(0,v.ev)([],(0,v.CR)(q),!1)),re.current=ne,I(y,ne),{servicePromise:ne})},onSuccess:function(k,q){var ne;y&&((ne=A.current)===null||ne===void 0||ne.call(A),ee(y,{data:k,params:q,time:new Date().getTime()}),A.current=de(y,function(Ce){D.setState({data:Ce})}))},onMutate:function(k){var q;y&&((q=A.current)===null||q===void 0||q.call(A),ee(y,{data:k,params:D.state.params,time:new Date().getTime()}),A.current=de(y,function(ne){D.setState({data:ne})}))}}:{}},$=se,G=f(23279),Le=f.n(G),we=function(D,C){var y=C.debounceWait,B=C.debounceLeading,N=C.debounceTrailing,x=C.debounceMaxWait,z=(0,u.useRef)(),Q=(0,u.useMemo)(function(){var J={};return B!==void 0&&(J.leading=B),N!==void 0&&(J.trailing=N),x!==void 0&&(J.maxWait=x),J},[B,N,x]);return(0,u.useEffect)(function(){if(y){var J=D.runAsync.bind(D);return z.current=Le()(function(A){A()},y,Q),D.runAsync=function(){for(var A=[],re=0;re<arguments.length;re++)A[re]=arguments[re];return new Promise(function(ee,ge){var k;(k=z.current)===null||k===void 0||k.call(z,function(){J.apply(void 0,(0,v.ev)([],(0,v.CR)(A),!1)).then(ee).catch(ge)})})},function(){var A;(A=z.current)===null||A===void 0||A.cancel(),D.runAsync=J}}},[y,Q]),y?{onCancel:function(){var J;(J=z.current)===null||J===void 0||J.cancel()}}:{}},Be=we,me=function(D,C){var y=C.loadingDelay,B=C.ready,N=(0,u.useRef)();if(!y)return{};var x=function(){N.current&&clearTimeout(N.current)};return{onBefore:function(){return x(),B!==!1&&(N.current=setTimeout(function(){D.setState({loading:!0})},y)),{loading:!1}},onFinally:function(){x()},onCancel:function(){x()}}},Ee=me,Oe=f(52982);function Ie(){return Oe.Z?document.visibilityState!=="hidden":!0}var Fe=[];function en(D){return Fe.push(D),function(){var y=Fe.indexOf(D);Fe.splice(y,1)}}if(Oe.Z){var nn=function(){if(Ie())for(var D=0;D<Fe.length;D++){var C=Fe[D];C()}};window.addEventListener("visibilitychange",nn,!1)}var Ne=en,tn=function(D,C){var y=C.pollingInterval,B=C.pollingWhenHidden,N=B===void 0?!0:B,x=C.pollingErrorRetryCount,z=x===void 0?-1:x,Q=(0,u.useRef)(),J=(0,u.useRef)(),A=(0,u.useRef)(0),re=function(){var ee;Q.current&&clearTimeout(Q.current),(ee=J.current)===null||ee===void 0||ee.call(J)};return(0,c.Z)(function(){y||re()},[y]),y?{onBefore:function(){re()},onError:function(){A.current+=1},onSuccess:function(){A.current=0},onFinally:function(){z===-1||z!==-1&&A.current<=z?Q.current=setTimeout(function(){!N&&!Ie()?J.current=Ne(function(){D.refresh()}):D.refresh()},y):A.current=0},onCancel:function(){re()}}:{}},rn=tn;function un(D,C){var y=!1;return function(){for(var B=[],N=0;N<arguments.length;N++)B[N]=arguments[N];y||(y=!0,D.apply(void 0,(0,v.ev)([],(0,v.CR)(B),!1)),setTimeout(function(){y=!1},C))}}function an(){return Oe.Z&&typeof navigator.onLine<"u"?navigator.onLine:!0}var Pe=[];function on(D){return Pe.push(D),function(){var y=Pe.indexOf(D);y>-1&&Pe.splice(y,1)}}if(Oe.Z){var ze=function(){if(!(!Ie()||!an()))for(var D=0;D<Pe.length;D++){var C=Pe[D];C()}};window.addEventListener("visibilitychange",ze,!1),window.addEventListener("focus",ze,!1)}var cn=on,He=function(D,C){var y=C.refreshOnWindowFocus,B=C.focusTimespan,N=B===void 0?5e3:B,x=(0,u.useRef)(),z=function(){var Q;(Q=x.current)===null||Q===void 0||Q.call(x)};return(0,u.useEffect)(function(){if(y){var Q=un(D.refresh.bind(D),N);x.current=cn(function(){Q()})}return function(){z()}},[y,N]),(0,O.Z)(function(){z()}),{}},fn=He,sn=function(D,C){var y=C.retryInterval,B=C.retryCount,N=(0,u.useRef)(),x=(0,u.useRef)(0),z=(0,u.useRef)(!1);return B?{onBefore:function(){z.current||(x.current=0),z.current=!1,N.current&&clearTimeout(N.current)},onSuccess:function(){x.current=0},onError:function(){if(x.current+=1,B===-1||x.current<=B){var Q=y??Math.min(1e3*Math.pow(2,x.current),3e4);N.current=setTimeout(function(){z.current=!0,D.refresh()},Q)}else x.current=0},onCancel:function(){x.current=0,N.current&&clearTimeout(N.current)}}:{}},Ve=sn,ln=f(23493),Xe=f.n(ln),vn=function(D,C){var y=C.throttleWait,B=C.throttleLeading,N=C.throttleTrailing,x=(0,u.useRef)(),z={};return B!==void 0&&(z.leading=B),N!==void 0&&(z.trailing=N),(0,u.useEffect)(function(){if(y){var Q=D.runAsync.bind(D);return x.current=Xe()(function(J){J()},y,z),D.runAsync=function(){for(var J=[],A=0;A<arguments.length;A++)J[A]=arguments[A];return new Promise(function(re,ee){var ge;(ge=x.current)===null||ge===void 0||ge.call(x,function(){Q.apply(void 0,(0,v.ev)([],(0,v.CR)(J),!1)).then(re).catch(ee)})})},function(){var J;D.runAsync=Q,(J=x.current)===null||J===void 0||J.cancel()}}},[y,B,N]),y?{onCancel:function(){var Q;(Q=x.current)===null||Q===void 0||Q.cancel()}}:{}},dn=vn,mn=f(3930),be=f(22638),gn=f(78234),pe=f(90105),De=f(31663),Ye=f(92770),hn=function(){function D(C,y,B,N){N===void 0&&(N={}),this.serviceRef=C,this.options=y,this.subscribe=B,this.initState=N,this.count=0,this.state={loading:!1,params:void 0,data:void 0,error:void 0},this.state=(0,v.pi)((0,v.pi)((0,v.pi)({},this.state),{loading:!y.manual}),N)}return D.prototype.setState=function(C){C===void 0&&(C={}),this.state=(0,v.pi)((0,v.pi)({},this.state),C),this.subscribe()},D.prototype.runPluginHandler=function(C){for(var y=[],B=1;B<arguments.length;B++)y[B-1]=arguments[B];var N=this.pluginImpls.map(function(x){var z;return(z=x[C])===null||z===void 0?void 0:z.call.apply(z,(0,v.ev)([x],(0,v.CR)(y),!1))}).filter(Boolean);return Object.assign.apply(Object,(0,v.ev)([{}],(0,v.CR)(N),!1))},D.prototype.runAsync=function(){for(var C,y,B,N,x,z,Q,J,A,re,ee=[],ge=0;ge<arguments.length;ge++)ee[ge]=arguments[ge];return(0,v.mG)(this,void 0,void 0,function(){var k,q,ne,Ce,xe,Ge,Ke,Ue,Se,_e,Je;return(0,v.Jh)(this,function(We){switch(We.label){case 0:if(this.count+=1,k=this.count,q=this.runPluginHandler("onBefore",ee),ne=q.stopNow,Ce=ne===void 0?!1:ne,xe=q.returnNow,Ge=xe===void 0?!1:xe,Ke=(0,v._T)(q,["stopNow","returnNow"]),Ce)return[2,new Promise(function(){})];if(this.setState((0,v.pi)({loading:!0,params:ee},Ke)),Ge)return[2,Promise.resolve(Ke.data)];(y=(C=this.options).onBefore)===null||y===void 0||y.call(C,ee),We.label=1;case 1:return We.trys.push([1,3,,4]),Ue=this.runPluginHandler("onRequest",this.serviceRef.current,ee).servicePromise,Ue||(Ue=(Je=this.serviceRef).current.apply(Je,(0,v.ev)([],(0,v.CR)(ee),!1))),[4,Ue];case 2:return Se=We.sent(),k!==this.count?[2,new Promise(function(){})]:(this.setState({data:Se,error:void 0,loading:!1}),(N=(B=this.options).onSuccess)===null||N===void 0||N.call(B,Se,ee),this.runPluginHandler("onSuccess",Se,ee),(z=(x=this.options).onFinally)===null||z===void 0||z.call(x,ee,Se,void 0),k===this.count&&this.runPluginHandler("onFinally",ee,Se,void 0),[2,Se]);case 3:if(_e=We.sent(),k!==this.count)return[2,new Promise(function(){})];throw this.setState({error:_e,loading:!1}),(J=(Q=this.options).onError)===null||J===void 0||J.call(Q,_e,ee),this.runPluginHandler("onError",_e,ee),(re=(A=this.options).onFinally)===null||re===void 0||re.call(A,ee,void 0,_e),k===this.count&&this.runPluginHandler("onFinally",ee,void 0,_e),_e;case 4:return[2]}})})},D.prototype.run=function(){for(var C=this,y=[],B=0;B<arguments.length;B++)y[B]=arguments[B];this.runAsync.apply(this,(0,v.ev)([],(0,v.CR)(y),!1)).catch(function(N){C.options.onError||console.error(N)})},D.prototype.cancel=function(){this.count+=1,this.setState({loading:!1}),this.runPluginHandler("onCancel")},D.prototype.refresh=function(){this.run.apply(this,(0,v.ev)([],(0,v.CR)(this.state.params||[]),!1))},D.prototype.refreshAsync=function(){return this.runAsync.apply(this,(0,v.ev)([],(0,v.CR)(this.state.params||[]),!1))},D.prototype.mutate=function(C){var y=(0,Ye.mf)(C)?C(this.state.data):C;this.runPluginHandler("onMutate",y),this.setState({data:y})},D}(),En=hn;function Rn(D,C,y){C===void 0&&(C={}),y===void 0&&(y=[]);var B=C.manual,N=B===void 0?!1:B,x=(0,v._T)(C,["manual"]);De.Z&&C.defaultParams&&!Array.isArray(C.defaultParams)&&console.warn("expected defaultParams is array, got ".concat(typeof C.defaultParams));var z=(0,v.pi)({manual:N},x),Q=(0,mn.Z)(D),J=(0,pe.Z)(),A=(0,Z.Z)(function(){var re=y.map(function(ee){var ge;return(ge=ee==null?void 0:ee.onInit)===null||ge===void 0?void 0:ge.call(ee,z)}).filter(Boolean);return new En(Q,z,J,Object.assign.apply(Object,(0,v.ev)([{}],(0,v.CR)(re),!1)))},[]);return A.options=z,A.pluginImpls=y.map(function(re){return re(A,z)}),(0,gn.Z)(function(){if(!N){var re=A.state.params||C.defaultParams||[];A.run.apply(A,(0,v.ev)([],(0,v.CR)(re),!1))}}),(0,O.Z)(function(){A.cancel()}),{loading:A.state.loading,data:A.state.data,error:A.state.error,params:A.state.params||[],cancel:(0,be.Z)(A.cancel.bind(A)),refresh:(0,be.Z)(A.refresh.bind(A)),refreshAsync:(0,be.Z)(A.refreshAsync.bind(A)),run:(0,be.Z)(A.run.bind(A)),runAsync:(0,be.Z)(A.runAsync.bind(A)),mutate:(0,be.Z)(A.mutate.bind(A))}}var pn=Rn;function Cn(D,C,y){return pn(D,C,(0,v.ev)((0,v.ev)([],(0,v.CR)(y||[]),!1),[Be,Ee,rn,fn,dn,L,$,Ve],!1))}var yn=Cn,Pn=yn},29178:function(te,b,f){f.d(b,{K7:function(){return c},LK:function(){return L},lJ:function(){return d}});var v=f(97582),u=new Map,c=function(Z,O,H){var X=u.get(Z);X!=null&&X.timer&&clearTimeout(X.timer);var U=void 0;O>-1&&(U=setTimeout(function(){u.delete(Z)},O)),u.set(Z,(0,v.pi)((0,v.pi)({},H),{timer:U}))},d=function(Z){return u.get(Z)},L=function(Z){if(Z){var O=Array.isArray(Z)?Z:[Z];O.forEach(function(H){return u.delete(H)})}else u.clear()}},96638:function(te,b,f){var v=f(97582),u=f(67294),c=f(92770),d=function(L){var Z=(0,v.CR)((0,u.useState)(L),2),O=Z[0],H=Z[1],X=(0,u.useCallback)(function(U){H(function(I){var ae=(0,c.mf)(U)?U(I):U;return ae?(0,v.pi)((0,v.pi)({},I),ae):I})},[]);return[O,X]};b.Z=d},70451:function(te,b,f){var v=f(97582),u=f(67294);function c(d,L){d===void 0&&(d=!1);var Z=(0,v.CR)((0,u.useState)(d),2),O=Z[0],H=Z[1],X=(0,u.useMemo)(function(){var U=L===void 0?!d:L,I=function(){return H(function(se){return se===d?U:d})},ae=function(se){return H(se)},he=function(){return H(d)},de=function(){return H(U)};return{toggle:I,set:ae,setLeft:he,setRight:de}},[]);return[O,X]}b.Z=c},45210:function(te,b,f){var v=f(67294),u=f(3930),c=f(92770),d=f(31663),L=function(Z){d.Z&&((0,c.mf)(Z)||console.error("useUnmount expected parameter is a function, got ".concat(typeof Z)));var O=(0,u.Z)(Z);(0,v.useEffect)(function(){return function(){O.current()}},[])};b.Z=L},8591:function(te,b,f){var v=f(67294),u=function(){var c=(0,v.useRef)(!1);return(0,v.useEffect)(function(){return c.current=!1,function(){c.current=!0}},[]),c};b.Z=u},90105:function(te,b,f){var v=f(97582),u=f(67294),c=function(){var d=(0,v.CR)((0,u.useState)({}),2),L=d[1];return(0,u.useCallback)(function(){return L({})},[])};b.Z=c},42170:function(te,b,f){var v=f(67294),u=f(44370);b.Z=(0,u.a)(v.useEffect)},44999:function(te,b,f){var v=f(67294),u=f(45210),c=f(8224),d=f(48002),L=function(Z){var O=function(H,X,U){var I=(0,v.useRef)(!1),ae=(0,v.useRef)([]),he=(0,v.useRef)([]),de=(0,v.useRef)();Z(function(){var se,$=Array.isArray(U)?U:[U],G=$.map(function(Le){return(0,d.n)(Le)});if(!I.current){I.current=!0,ae.current=G,he.current=X,de.current=H();return}(G.length!==ae.current.length||!(0,c.Z)(G,ae.current)||!(0,c.Z)(X,he.current))&&((se=de.current)===null||se===void 0||se.call(de),ae.current=G,he.current=X,de.current=H())}),(0,u.Z)(function(){var se;(se=de.current)===null||se===void 0||se.call(de),I.current=!1})};return O};b.Z=L},8224:function(te,b,f){f.d(b,{Z:function(){return v}});function v(u,c){if(u===c)return!0;for(var d=0;d<u.length;d++)if(!Object.is(u[d],c[d]))return!1;return!0}},70202:function(te,b,f){f.d(b,{k:function(){return c}});var v=f(18446),u=f.n(v),c=function(d,L){return d===void 0&&(d=[]),L===void 0&&(L=[]),u()(d,L)}},48002:function(te,b,f){f.d(b,{n:function(){return c}});var v=f(92770),u=f(52982);function c(d,L){if(u.Z){if(!d)return L;var Z;return(0,v.mf)(d)?Z=d():"current"in d?Z=d.current:Z=d,Z}}},92770:function(te,b,f){f.d(b,{G7:function(){return Z},HD:function(){return c},Kn:function(){return v},hj:function(){return L},jn:function(){return d},mf:function(){return u}});var v=function(O){return O!==null&&typeof O=="object"},u=function(O){return typeof O=="function"},c=function(O){return typeof O=="string"},d=function(O){return typeof O=="boolean"},L=function(O){return typeof O=="number"},Z=function(O){return typeof O>"u"}},52982:function(te,b){var f=!!(typeof window<"u"&&window.document&&window.document.createElement);b.Z=f},31663:function(te,b){var f=!1;b.Z=f},59682:function(te,b,f){var v=f(67294),u=f(44999),c=(0,u.Z)(v.useEffect);b.Z=c}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunknocobase=self.webpackChunknocobase||[]).push([[2663],{71808:function(ke,W,f){f.d(W,{GI:function(){return Ee}});var k=!!(typeof window<"u"&&typeof document<"u"&&window.document&&window.document.createElement);k&&document.addEventListener("touchstart",function(){},!0);var G=f(5574),P=f.n(G),K=f(93967),N=f.n(K),i=f(67294),j=f(12527),H=f(8591);function B(t,n){var e=Object.assign({},n.props);t.className&&(e.className=N()(n.props.className,t.className)),t.style&&(e.style=Object.assign(Object.assign({},e.style),t.style)),t.tabIndex!==void 0&&(e.tabIndex=t.tabIndex);for(var a in t)t.hasOwnProperty(a)&&(a.startsWith("data-")||a.startsWith("aria-"))&&(e[a]=t[a]);return i.cloneElement(n,e)}function Y(){for(var t={},n=arguments.length,e=new Array(n),a=0;a<n;a++)e[a]=arguments[a];return e.forEach(function(o){o&&Object.keys(o).forEach(function(l){o[l]!==void 0&&(t[l]=o[l])})}),t}function Pe(t){for(var n=arguments.length,e=new Array(n>1?n-1:0),a=1;a<n;a++)e[a-1]=arguments[a];for(var o=e.length-1;o>=0;o-=1)if(e[o]!==void 0)return e[o];return t}var D=10;function J(t,n){return t>n&&t>D?"horizontal":n>t&&n>D?"vertical":""}function Q(){var t=(0,i.useRef)(0),n=(0,i.useRef)(0),e=(0,i.useRef)(0),a=(0,i.useRef)(0),o=(0,i.useRef)(0),l=(0,i.useRef)(0),r=(0,i.useRef)(""),d=function(){return r.current==="vertical"},g=function(){return r.current==="horizontal"},c=function(){e.current=0,a.current=0,o.current=0,l.current=0,r.current=""},u=function(h){c(),t.current=h.touches[0].clientX,n.current=h.touches[0].clientY},m=function(h){var R=h.touches[0];e.current=R.clientX<0?0:R.clientX-t.current,a.current=R.clientY-n.current,o.current=Math.abs(e.current),l.current=Math.abs(a.current),r.current||(r.current=J(o.current,l.current))};return{move:m,start:u,reset:c,startX:t,startY:n,deltaX:e,deltaY:a,offsetX:o,offsetY:l,direction:r,isVertical:d,isHorizontal:g}}var q=k?window:void 0,_=["scroll","auto","overlay"];function ee(t){var n=1;return t.nodeType===n}function te(t){for(var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:q,e=t;e&&e!==n&&ee(e);){if(e===document.body)return n;var a=window.getComputedStyle(e),o=a.overflowY;if(_.includes(o)&&e.scrollHeight>e.clientHeight)return e;e=e.parentNode}return n}var I=!1;if(k)try{var z={};Object.defineProperty(z,"passive",{get:function(){I=!0}}),window.addEventListener("test-passive",null,z)}catch{}var O=0,A="adm-overflow-hidden";function ne(t){for(var n=t==null?void 0:t.parentElement;n;){if(n.clientHeight<n.scrollHeight)return n;n=n.parentElement}return null}function L(t,n){var e=Q(),a=function(d){e.move(d);var g=e.deltaY.current>0?"10":"01",c=te(d.target,t.current);if(c){if(n==="strict"){var u=ne(d.target);if(u===document.body||u===document.documentElement){d.preventDefault();return}}var m=c.scrollHeight,b=c.offsetHeight,h=c.scrollTop,R=c.getBoundingClientRect(),C=R.height,s="11";h===0?s=b>=m?"00":"01":m<=Math.round(C+h)&&(s="10"),s!=="11"&&e.isVertical()&&!(parseInt(s,2)&parseInt(g,2))&&d.cancelable&&I&&d.preventDefault()}},o=function(){document.addEventListener("touchstart",e.start),document.addEventListener("touchmove",a,I?{passive:!1}:!1),O||document.body.classList.add(A),O++},l=function(){O&&(document.removeEventListener("touchstart",e.start),document.removeEventListener("touchmove",a),O--,O||document.body.classList.remove(A))};(0,i.useEffect)(function(){if(n)return o(),function(){l()}},[n])}var w=f(36740),re=f(73935);function ae(t){var n=typeof t=="function"?t():t;return n||document.body}function X(t,n){if(k&&t){var e=ae(t);return(0,re.createPortal)(n,e)}return n}var v="${label}\u4E0D\u662F\u4E00\u4E2A\u6709\u6548\u7684${type}",oe={locale:"zh-CH",common:{confirm:"\u786E\u5B9A",cancel:"\u53D6\u6D88",loading:"\u52A0\u8F7D\u4E2D",close:"\u5173\u95ED"},Calendar:{title:"\u65E5\u671F\u9009\u62E9",confirm:"\u786E\u8BA4",start:"\u5F00\u59CB",end:"\u7ED3\u675F",startAndEnd:"\u5F00\u59CB/\u7ED3\u675F",today:"\u4ECA\u65E5",markItems:["\u4E00","\u4E8C","\u4E09","\u56DB","\u4E94","\u516D","\u65E5"],yearAndMonth:"${year}\u5E74${month}\u6708"},Cascader:{placeholder:"\u8BF7\u9009\u62E9"},Dialog:{ok:"\u6211\u77E5\u9053\u4E86"},DatePicker:{tillNow:"\u81F3\u4ECA"},ErrorBlock:{default:{title:"\u9875\u9762\u9047\u5230\u4E00\u4E9B\u5C0F\u95EE\u9898",description:"\u5F85\u4F1A\u6765\u8BD5\u8BD5"},busy:{title:"\u524D\u65B9\u62E5\u5835",description:"\u5237\u65B0\u8BD5\u8BD5"},disconnected:{title:"\u7F51\u7EDC\u6709\u70B9\u5FD9",description:"\u52A8\u52A8\u624B\u6307\u5E2E\u5FD9\u4FEE\u590D"},empty:{title:"\u6CA1\u6709\u627E\u5230\u4F60\u9700\u8981\u7684\u4E1C\u897F",description:"\u627E\u627E\u5176\u4ED6\u7684\u5427"}},Form:{required:"\u5FC5\u586B",optional:"\u9009\u586B",defaultValidateMessages:{default:"\u5B57\u6BB5\u9A8C\u8BC1\u9519\u8BEF${label}",required:"\u8BF7\u8F93\u5165${label}",enum:"${label}\u5FC5\u987B\u662F\u5176\u4E2D\u4E00\u4E2A[${enum}]",whitespace:"${label}\u4E0D\u80FD\u4E3A\u7A7A\u5B57\u7B26",date:{format:"${label}\u65E5\u671F\u683C\u5F0F\u65E0\u6548",parse:"${label}\u4E0D\u80FD\u8F6C\u6362\u4E3A\u65E5\u671F",invalid:"${label}\u662F\u4E00\u4E2A\u65E0\u6548\u65E5\u671F"},types:{string:v,method:v,array:v,object:v,number:v,date:v,boolean:v,integer:v,float:v,regexp:v,email:v,url:v,hex:v},string:{len:"${label}\u987B\u4E3A${len}\u4E2A\u5B57\u7B26",min:"${label}\u6700\u5C11${min}\u4E2A\u5B57\u7B26",max:"${label}\u6700\u591A${max}\u4E2A\u5B57\u7B26",range:"${label}\u987B\u5728${min}-${max}\u5B57\u7B26\u4E4B\u95F4"},number:{len:"${label}\u5FC5\u987B\u7B49\u4E8E${len}",min:"${label}\u6700\u5C0F\u503C\u4E3A${min}",max:"${label}\u6700\u5927\u503C\u4E3A${max}",range:"${label}\u987B\u5728${min}-${max}\u4E4B\u95F4"},array:{len:"\u987B\u4E3A${len}\u4E2A${label}",min:"\u6700\u5C11${min}\u4E2A${label}",max:"\u6700\u591A${max}\u4E2A${label}",range:"${label}\u6570\u91CF\u987B\u5728${min}-${max}\u4E4B\u95F4"},pattern:{mismatch:"${label}\u4E0E\u6A21\u5F0F\u4E0D\u5339\u914D${pattern}"}}},ImageUploader:{uploading:"\u4E0A\u4F20\u4E2D...",upload:"\u4E0A\u4F20"},InfiniteScroll:{noMore:"\u6CA1\u6709\u66F4\u591A\u4E86",failedToLoad:"\u52A0\u8F7D\u5931\u8D25",retry:"\u91CD\u65B0\u52A0\u8F7D"},Input:{clear:"\u6E05\u9664"},Mask:{name:"\u80CC\u666F\u8499\u5C42"},Modal:{ok:"\u6211\u77E5\u9053\u4E86"},PasscodeInput:{name:"\u5BC6\u7801\u8F93\u5165\u6846"},PullToRefresh:{pulling:"\u4E0B\u62C9\u5237\u65B0",canRelease:"\u91CA\u653E\u7ACB\u5373\u5237\u65B0",complete:"\u5237\u65B0\u6210\u529F"},SearchBar:{name:"\u641C\u7D22\u6846"},Slider:{name:"\u6ED1\u52A8\u8F93\u5165\u6761"},Stepper:{decrease:"\u51CF\u5C11",increase:"\u589E\u52A0"},Switch:{name:"\u5F00\u5173"},Selector:{name:"\u9009\u62E9\u7EC4"}},ie=oe,V={current:{locale:ie}};function we(t){V.current=t}function le(){return V.current}var Z=i.createContext(null),Me=function(n){var e=n.children,a=__rest(n,["children"]),o=x();return React.createElement(Z.Provider,{value:Object.assign(Object.assign({},o),a)},e)};function x(){var t;return(t=(0,i.useContext)(Z))!==null&&t!==void 0?t:le()}function ce(t){var n=(0,i.useRef)(t);return t&&(n.current=!0),!!n.current}var F=function(n){var e=se(n.active,n.forceRender,n.destroyOnClose);return e?n.children:null};function se(t,n,e){var a=ce(t);return n||t?!0:a?!e:!1}var ue=f(96695),fe=f.n(ue),de={click:"onClick",touchstart:"onTouchStart"};function U(t,n){var e=Object.assign({},n.props),a=fe()(t),o;try{var l=function(){var d=o.value,g=de[d];e[g]=function(c){var u,m;c.stopPropagation(),(m=(u=n.props)[g])===null||m===void 0||m.call(u,c)}};for(a.s();!(o=a.n()).done;)l()}catch(r){a.e(r)}finally{a.f()}return i.cloneElement(n,e)}var T="adm-mask",ve={default:.55,thin:.35,thick:.75},me={black:"0, 0, 0",white:"255, 255, 255"},pe={visible:!0,destroyOnClose:!1,forceRender:!1,color:"black",opacity:"default",disableBodyScroll:!0,getContainer:null,stopPropagation:["click"]},ge=function(n){var e=Y(pe,n),a=x(),o=a.locale,l=(0,i.useRef)(null);L(l,e.visible&&e.disableBodyScroll);var r=(0,i.useMemo)(function(){var C,s=(C=ve[e.opacity])!==null&&C!==void 0?C:e.opacity,p=me[e.color];return p?"rgba(".concat(p,", ").concat(s,")"):e.color},[e.color,e.opacity]),d=(0,i.useState)(e.visible),g=P()(d,2),c=g[0],u=g[1],m=(0,H.Z)(),b=(0,w.useSpring)({opacity:e.visible?1:0,config:{precision:.01,mass:1,tension:250,friction:30,clamp:!0},onStart:function(){u(!0)},onRest:function(){var s,p;m.current||(u(e.visible),e.visible?(s=e.afterShow)===null||s===void 0||s.call(e):(p=e.afterClose)===null||p===void 0||p.call(e))}}),h=b.opacity,R=U(e.stopPropagation,B(e,i.createElement(w.animated.div,{className:T,ref:l,"aria-hidden":!0,style:Object.assign(Object.assign({},e.style),{background:r,opacity:h,display:c?void 0:"none"}),onClick:function(s){var p;s.target===s.currentTarget&&((p=e.onMaskClick)===null||p===void 0||p.call(e,s))}},e.onMaskClick&&i.createElement("div",{className:"".concat(T,"-aria-button"),role:"button","aria-label":o.Mask.name,onClick:e.onMaskClick}),i.createElement("div",{className:"".concat(T,"-content")},e.children))));return i.createElement(F,{active:c,forceRender:e.forceRender,destroyOnClose:e.destroyOnClose},X(e.getContainer,R))},be=ge,he=f(20856),Ce={closeOnMaskClick:!1,closeIcon:i.createElement(he.Z,null),destroyOnClose:!1,disableBodyScroll:!0,forceRender:!1,getContainer:function(){return document.body},mask:!0,showCloseButton:!1,stopPropagation:["click"],visible:!1};function ye(t){var n=(0,i.useState)(t),e=P()(n,2),a=e[0],o=e[1];return(0,j.Z)(function(){o(t)},[t]),a}var Se=f(34751),M="adm-popup",$e=Object.assign(Object.assign({},Ce),{closeOnSwipe:!1,position:"bottom"}),Re=function(n){var e=x(),a=e.locale,o=e.popup,l=o===void 0?{}:o,r=Y($e,l,n),d=N()("".concat(M,"-body"),r.bodyClassName,"".concat(M,"-body-position-").concat(r.position)),g=(0,i.useState)(r.visible),c=P()(g,2),u=c[0],m=c[1],b=(0,i.useRef)(null);L(b,r.disableBodyScroll&&u?"strict":!1),(0,j.Z)(function(){r.visible&&m(!0)},[r.visible]);var h=(0,H.Z)(),R=(0,w.useSpring)({percent:r.visible?0:100,config:{precision:.1,mass:.4,tension:300,friction:30},onRest:function(){var S,$;h.current||(m(r.visible),r.visible?(S=r.afterShow)===null||S===void 0||S.call(r):($=r.afterClose)===null||$===void 0||$.call(r))}}),C=R.percent,s=(0,Se.useDrag)(function(y){var S=P()(y.swipe,2),$=S[1],E;r.closeOnSwipe&&($===1&&r.position==="bottom"||$===-1&&r.position==="top")&&((E=r.onClose)===null||E===void 0||E.call(r))},{axis:"y",enabled:["top","bottom"].includes(r.position)}),p=ye(u&&r.visible),Oe=U(r.stopPropagation,B(r,i.createElement("div",Object.assign({className:M,onClick:r.onClick,style:{display:u?void 0:"none",touchAction:["top","bottom"].includes(r.position)?"none":"auto"}},s()),r.mask&&i.createElement(be,{visible:p,forceRender:r.forceRender,destroyOnClose:r.destroyOnClose,onMaskClick:function(S){var $,E;($=r.onMaskClick)===null||$===void 0||$.call(r,S),r.closeOnMaskClick&&((E=r.onClose)===null||E===void 0||E.call(r))},className:r.maskClassName,style:r.maskStyle,disableBodyScroll:!1,stopPropagation:r.stopPropagation}),i.createElement(w.animated.div,{className:d,style:Object.assign(Object.assign({},r.bodyStyle),{pointerEvents:C.to(function(y){return y===0?"unset":"none"}),transform:C.to(function(y){return r.position==="bottom"?"translate(0, ".concat(y,"%)"):r.position==="top"?"translate(0, -".concat(y,"%)"):r.position==="left"?"translate(-".concat(y,"%, 0)"):r.position==="right"?"translate(".concat(y,"%, 0)"):"none"})}),ref:b},r.showCloseButton&&i.createElement("a",{className:N()("".concat(M,"-close-icon"),"adm-plain-anchor"),onClick:function(){var S;(S=r.onClose)===null||S===void 0||S.call(r)},role:"button","aria-label":a.common.close},r.closeIcon),r.children))));return i.createElement(F,{active:u,forceRender:r.forceRender,destroyOnClose:r.destroyOnClose},X(r.getContainer,Oe))},Ee=Re}}]);
|