@camera.ui/server 0.0.20-alpha.1 → 0.0.20
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/interface/@tanstack.B_r1lAzq.0.0.20.js +1 -0
- package/dist/interface/{@vee-validate.D80eicWS.0.0.20-alpha.1.js → @vee-validate.BHrNCzDp.0.0.20.js} +1 -1
- package/dist/interface/@vueform.DU6ezNPA.0.0.20.js +1 -0
- package/dist/interface/@vueuse.BAmK3xgU.0.0.20.js +1 -0
- package/dist/interface/Account.DZthPUXg.0.0.20.js +1 -0
- package/dist/interface/Adminpanel.CpWSTW3L.0.0.20.js +2 -0
- package/dist/interface/Appearance.CN7Ce0MO.0.0.20.js +1 -0
- package/dist/interface/Backup.DyjrXO4h.0.0.20.js +1 -0
- package/dist/interface/Camera.BvSYbYVM.0.0.20.js +1 -0
- package/dist/interface/Cameras.DFeHC4FX.0.0.20.js +1 -0
- package/dist/interface/Camview.B0YkwALX.0.0.20.js +1 -0
- package/dist/interface/Config._DqZfd2V.0.0.20.js +1 -0
- package/dist/interface/Console.3m0vdA6i.0.0.20.js +4 -0
- package/dist/interface/FirstSteps.DcMqkb6H.0.0.20.js +1 -0
- package/dist/interface/{NewCamera.DJLv9a29.0.0.20-alpha.1.js → NewCamera.B-FWQpYY.0.0.20.js} +1 -1
- package/dist/interface/Plugin.CdxXSGr3.0.0.20.js +1 -0
- package/dist/interface/Plugins.D0fsNm8V.0.0.20.js +1 -0
- package/dist/interface/Recordings.BlJDZwGK.0.0.20.js +1 -0
- package/dist/interface/Recordings.fDkqtsGS.0.0.20.js +1 -0
- package/dist/interface/Settings.D9tgP4PR.0.0.20.js +1 -0
- package/dist/interface/{System.B0FHABPo.0.0.20-alpha.1.js → System.B4tOxUCr.0.0.20.js} +1 -1
- package/dist/interface/User.BavUIzbY.0.0.20.js +1 -0
- package/dist/interface/VConfigEditor.vue_vue_type_script_setup_true_lang.B7oO67u3.0.0.20.js +2 -0
- package/dist/interface/VConsole.DpazwGX4.0.0.20.js +1 -0
- package/dist/interface/VPlayer.D26-q2K5.0.0.20.js +1 -0
- package/dist/interface/{VPluginCard.xHuPRrAb.0.0.20-alpha.1.js → VPluginCard.C-_o1nI2.0.0.20.js} +1 -1
- package/dist/interface/{ace-builds.Dth_NmnP.0.0.20-alpha.1.js → ace-builds.DcKNGePA.0.0.20.js} +1 -1
- package/dist/interface/{apexcharts.Dw0Xlvfr.0.0.20-alpha.1.js → apexcharts.DCSkgPq9.0.0.20.js} +1 -1
- package/dist/interface/dnd-core.0NACw1jV.0.0.20.js +1 -0
- package/dist/interface/{draggabilly.CSz7AZzv.0.0.20-alpha.1.js → draggabilly.DM7Ie5B6.0.0.20.js} +1 -1
- package/dist/interface/engine.io-client.dy-jBwVc.0.0.20.js +1 -0
- package/dist/interface/ev-emitter.DQVjS35B.0.0.20.js +1 -0
- package/dist/interface/fast-deep-equal.DAQAVFSj.0.0.20.js +1 -0
- package/dist/interface/{highlight.js.C4LZLWzO.0.0.20-alpha.1.js → highlight.js.CHiaj1nT.0.0.20.js} +1 -1
- package/dist/interface/index.html +33 -33
- package/dist/interface/linkify-it.CcC_Dp8E.0.0.20.js +1 -0
- package/dist/interface/main.CiGv5lgD.0.0.20.js +4 -0
- package/dist/interface/{markdown-it.BnAZzTl_.0.0.20-alpha.1.js → markdown-it.D9P_Nds0.0.0.20.js} +1 -1
- package/dist/interface/{nprogress.BH62P_aS.0.0.20-alpha.1.js → nprogress.Bjh5f7vv.0.0.20.js} +1 -1
- package/dist/interface/{pinia.C4m9cWFk.0.0.20-alpha.1.js → pinia.DHWTiYgK.0.0.20.js} +1 -1
- package/dist/interface/plugins.C1O6HlGB.0.0.20.js +1 -0
- package/dist/interface/{qrcode.Bt_V9YAQ.0.0.20-alpha.1.js → qrcode.4Ql0IQww.0.0.20.js} +1 -1
- package/dist/interface/react-dnd-touch-backend.loE8GwrR.0.0.20.js +1 -0
- package/dist/interface/{rxjs.UgpEfnRS.0.0.20-alpha.1.js → rxjs.DHtKZy6U.0.0.20.js} +1 -1
- package/dist/interface/socket.io-client.jp_43Ao5.0.0.20.js +1 -0
- package/dist/interface/socket.io-parser.DqwZstS8.0.0.20.js +1 -0
- package/dist/interface/sw.js +1 -1
- package/dist/interface/system.yDv3HGk7.0.0.20.js +1 -0
- package/dist/interface/ui.CMYO4Uxt.0.0.20.js +1 -0
- package/dist/interface/{unidragger.-H4Pxkk9.0.0.20-alpha.1.js → unidragger.Cvjn6F-6.0.0.20.js} +1 -1
- package/dist/interface/v-calendar.ClLN5nev.0.0.20.js +1 -0
- package/dist/interface/{vee-validate.CqJQurO9.0.0.20-alpha.1.js → vee-validate.BIkGFnnt.0.0.20.js} +1 -1
- package/dist/interface/{vue-i18n.D9eNO0Xk.0.0.20-alpha.1.js → vue-i18n.C4g1CR6N.0.0.20.js} +1 -1
- package/dist/interface/vue-inline-svg.CMZZ7KkA.0.0.20.js +1 -0
- package/dist/interface/{vue-router.SNU3_ffd.0.0.20-alpha.1.js → vue-router.DhA52uMB.0.0.20.js} +1 -1
- package/dist/interface/vue3-apexcharts.CXfUHFQe.0.0.20.js +1 -0
- package/dist/interface/vue3-dnd.DRhfUgcK.0.0.20.js +1 -0
- package/dist/interface/vue3-toastify.CIVCnm9u.0.0.20.js +1 -0
- package/dist/interface/{vuetify.CPcraUMi.0.0.20-alpha.1.js → vuetify.BNQxWD0q.0.0.20.js} +1 -1
- package/dist/server/package.json +1 -1
- package/package.json +1 -1
- package/dist/interface/@tanstack.D3QL_oFC.0.0.20-alpha.1.js +0 -1
- package/dist/interface/@vueform.sbEuRqrm.0.0.20-alpha.1.js +0 -1
- package/dist/interface/@vueuse.2KM86J_q.0.0.20-alpha.1.js +0 -1
- package/dist/interface/Account.CWLgpYm8.0.0.20-alpha.1.js +0 -1
- package/dist/interface/Adminpanel.CxdPPzNR.0.0.20-alpha.1.js +0 -2
- package/dist/interface/Appearance.BnTVU8Ok.0.0.20-alpha.1.js +0 -1
- package/dist/interface/Backup.D5PhHQAM.0.0.20-alpha.1.js +0 -1
- package/dist/interface/Camera.DIgH2eK9.0.0.20-alpha.1.js +0 -1
- package/dist/interface/Cameras.Cwm1dVyc.0.0.20-alpha.1.js +0 -1
- package/dist/interface/Camview.c9_z35EL.0.0.20-alpha.1.js +0 -1
- package/dist/interface/Config.CpaN6Qbg.0.0.20-alpha.1.js +0 -1
- package/dist/interface/Console.BfUsDfAP.0.0.20-alpha.1.js +0 -4
- package/dist/interface/FirstSteps.wVtJjUWg.0.0.20-alpha.1.js +0 -1
- package/dist/interface/Plugin.s3XY5h38.0.0.20-alpha.1.js +0 -1
- package/dist/interface/Plugins.ZodCrWSO.0.0.20-alpha.1.js +0 -1
- package/dist/interface/Recordings.BtIlqxnr.0.0.20-alpha.1.js +0 -1
- package/dist/interface/Recordings.Dq3P0_C_.0.0.20-alpha.1.js +0 -1
- package/dist/interface/Settings.B0A_w3-A.0.0.20-alpha.1.js +0 -1
- package/dist/interface/User.BgzPrkZp.0.0.20-alpha.1.js +0 -1
- package/dist/interface/VConfigEditor.vue_vue_type_script_setup_true_lang.wl9Pl_FV.0.0.20-alpha.1.js +0 -2
- package/dist/interface/VConsole.CbvvP8O8.0.0.20-alpha.1.js +0 -1
- package/dist/interface/VPlayer.ClqQqhnX.0.0.20-alpha.1.js +0 -1
- package/dist/interface/dnd-core.8hJTsVUD.0.0.20-alpha.1.js +0 -1
- package/dist/interface/engine.io-client.DXcWpnXN.0.0.20-alpha.1.js +0 -1
- package/dist/interface/ev-emitter.Bn8_RpH-.0.0.20-alpha.1.js +0 -1
- package/dist/interface/fast-deep-equal.B2Dim6RF.0.0.20-alpha.1.js +0 -1
- package/dist/interface/linkify-it.BvWtmMXl.0.0.20-alpha.1.js +0 -1
- package/dist/interface/main.BUCELHYH.0.0.20-alpha.1.js +0 -4
- package/dist/interface/plugins.ttXvwni9.0.0.20-alpha.1.js +0 -1
- package/dist/interface/react-dnd-touch-backend.CZH-Xu0X.0.0.20-alpha.1.js +0 -1
- package/dist/interface/socket.io-client.aYnSVxTd.0.0.20-alpha.1.js +0 -1
- package/dist/interface/socket.io-parser.BNP8Lce4.0.0.20-alpha.1.js +0 -1
- package/dist/interface/system.BowAD7XS.0.0.20-alpha.1.js +0 -1
- package/dist/interface/ui.D5JeNMju.0.0.20-alpha.1.js +0 -1
- package/dist/interface/v-calendar.Bcf3jS6g.0.0.20-alpha.1.js +0 -1
- package/dist/interface/vue-inline-svg.BzzqxNGR.0.0.20-alpha.1.js +0 -1
- package/dist/interface/vue3-apexcharts.08Nda8fZ.0.0.20-alpha.1.js +0 -1
- package/dist/interface/vue3-dnd.B-eWPkhP.0.0.20-alpha.1.js +0 -1
- package/dist/interface/vue3-toastify.Df4CNF5v.0.0.20-alpha.1.js +0 -1
- /package/dist/interface/{@babel.l0sNRNKZ.0.0.20-alpha.1.js → @babel.l0sNRNKZ.0.0.20.js} +0 -0
- /package/dist/interface/{@intlify.YW_pt133.0.0.20-alpha.1.js → @intlify.YW_pt133.0.0.20.js} +0 -0
- /package/dist/interface/{@mdi.DnMbZhUH.0.0.20-alpha.1.js → @mdi.DnMbZhUH.0.0.20.js} +0 -0
- /package/dist/interface/{@popperjs.BQBsAJpH.0.0.20-alpha.1.js → @popperjs.BQBsAJpH.0.0.20.js} +0 -0
- /package/dist/interface/{@react-dnd.CcwRs9xb.0.0.20-alpha.1.js → @react-dnd.CcwRs9xb.0.0.20.js} +0 -0
- /package/dist/interface/{@socket.io.Dkula2eQ.0.0.20-alpha.1.js → @socket.io.Dkula2eQ.0.0.20.js} +0 -0
- /package/dist/interface/{@vue.CstzJJLy.0.0.20-alpha.1.js → @vue.CstzJJLy.0.0.20.js} +0 -0
- /package/dist/interface/{@xterm.CFD4UPpD.0.0.20-alpha.1.js → @xterm.DG7_lfiC.0.0.20.js} +0 -0
- /package/dist/interface/assets/{@vueform.0.0.20-alpha.1.h7tNX9p6.css → @vueform.0.0.20.h7tNX9p6.css} +0 -0
- /package/dist/interface/assets/{@xterm.0.0.20-alpha.1.CGrrDQr5.css → @xterm.0.0.20.CGrrDQr5.css} +0 -0
- /package/dist/interface/assets/{Account.0.0.20-alpha.1.BCEftDNE.css → Account.0.0.20.BCEftDNE.css} +0 -0
- /package/dist/interface/assets/{Adminpanel.0.0.20-alpha.1.DGj4gqg2.css → Adminpanel.0.0.20.DGj4gqg2.css} +0 -0
- /package/dist/interface/assets/{Backup.0.0.20-alpha.1.BIwaSlv3.css → Backup.0.0.20.BIwaSlv3.css} +0 -0
- /package/dist/interface/assets/{Camera.0.0.20-alpha.1.BDtUJ-lA.css → Camera.0.0.20.BDtUJ-lA.css} +0 -0
- /package/dist/interface/assets/{Cameras.0.0.20-alpha.1.Djx0F2MM.css → Cameras.0.0.20.Djx0F2MM.css} +0 -0
- /package/dist/interface/assets/{Camview.0.0.20-alpha.1.Ce_V-Nxj.css → Camview.0.0.20.Ce_V-Nxj.css} +0 -0
- /package/dist/interface/assets/{Config.0.0.20-alpha.1.k4QpWumg.css → Config.0.0.20.k4QpWumg.css} +0 -0
- /package/dist/interface/assets/{Console.0.0.20-alpha.1.DWrfRWs9.css → Console.0.0.20.DWrfRWs9.css} +0 -0
- /package/dist/interface/assets/{FirstSteps.0.0.20-alpha.1.27JF_jaE.css → FirstSteps.0.0.20.27JF_jaE.css} +0 -0
- /package/dist/interface/assets/{NewCamera.0.0.20-alpha.1.DJ3tUBT_.css → NewCamera.0.0.20.DJ3tUBT_.css} +0 -0
- /package/dist/interface/assets/{Plugin.0.0.20-alpha.1.BtRA6zDt.css → Plugin.0.0.20.BtRA6zDt.css} +0 -0
- /package/dist/interface/assets/{Plugins.0.0.20-alpha.1.Cwu0aGUO.css → Plugins.0.0.20.Cwu0aGUO.css} +0 -0
- /package/dist/interface/assets/{Settings.0.0.20-alpha.1.DC_-E3CR.css → Settings.0.0.20.DC_-E3CR.css} +0 -0
- /package/dist/interface/assets/{User.0.0.20-alpha.1.3wRfclxd.css → User.0.0.20.3wRfclxd.css} +0 -0
- /package/dist/interface/assets/{VConsole.0.0.20-alpha.1.BZT1WyS-.css → VConsole.0.0.20.BZT1WyS-.css} +0 -0
- /package/dist/interface/assets/{VPlayer.0.0.20-alpha.1.YEg8PV4J.css → VPlayer.0.0.20.YEg8PV4J.css} +0 -0
- /package/dist/interface/assets/{VPluginCard.0.0.20-alpha.1.Dc6BSSnE.css → VPluginCard.0.0.20.Dc6BSSnE.css} +0 -0
- /package/dist/interface/assets/{highlight.0.0.20-alpha.1.DgoK_Xib.css → highlight.0.0.20.DgoK_Xib.css} +0 -0
- /package/dist/interface/assets/{logo-256.0.0.20-alpha.1.BCQk9H1-.png → logo-256.0.0.20.BCQk9H1-.png} +0 -0
- /package/dist/interface/assets/{logo-512.0.0.20-alpha.1.DLKVOU2S.png → logo-512.0.0.20.DLKVOU2S.png} +0 -0
- /package/dist/interface/assets/{logo.0.0.20-alpha.1.DmEiRk0z.png → logo.0.0.20.DmEiRk0z.png} +0 -0
- /package/dist/interface/assets/{main.0.0.20-alpha.1.DtbCLMJ4.css → main.0.0.20.DtbCLMJ4.css} +0 -0
- /package/dist/interface/assets/{mode-json.0.0.20-alpha.1.Br7xisR1.js → mode-json.0.0.20.Br7xisR1.js} +0 -0
- /package/dist/interface/assets/{mode-yaml.0.0.20-alpha.1.CIYL8U3d.js → mode-yaml.0.0.20.CIYL8U3d.js} +0 -0
- /package/dist/interface/assets/{v-calendar.0.0.20-alpha.1.CtSuDYZU.css → v-calendar.0.0.20.CtSuDYZU.css} +0 -0
- /package/dist/interface/assets/{vue3-toastify.0.0.20-alpha.1.DTY1DMRs.css → vue3-toastify.0.0.20.DTY1DMRs.css} +0 -0
- /package/dist/interface/assets/{vuetify.0.0.20-alpha.1.Cd1awv3t.css → vuetify.0.0.20.Cd1awv3t.css} +0 -0
- /package/dist/interface/{axios.C-n2IhIP.0.0.20-alpha.1.js → axios.C-n2IhIP.0.0.20.js} +0 -0
- /package/dist/interface/{compare-versions.DqEOhma6.0.0.20-alpha.1.js → compare-versions.DqEOhma6.0.0.20.js} +0 -0
- /package/dist/interface/{dijkstrajs.D_NXgYpA.0.0.20-alpha.1.js → dijkstrajs.D_NXgYpA.0.0.20.js} +0 -0
- /package/dist/interface/{engine.io-parser.BiEtp6m2.0.0.20-alpha.1.js → engine.io-parser.BiEtp6m2.0.0.20.js} +0 -0
- /package/dist/interface/{entities.C20TfXL6.0.0.20-alpha.1.js → entities.C20TfXL6.0.0.20.js} +0 -0
- /package/dist/interface/{get-size.D1dS-IaP.0.0.20-alpha.1.js → get-size.D1dS-IaP.0.0.20.js} +0 -0
- /package/dist/interface/{mdurl.k9Sl0PQj.0.0.20-alpha.1.js → mdurl.k9Sl0PQj.0.0.20.js} +0 -0
- /package/dist/interface/{punycode.js.Dj65hjkv.0.0.20-alpha.1.js → punycode.js.Dj65hjkv.0.0.20.js} +0 -0
- /package/dist/interface/{react-dnd-html5-backend.1HQjlkwI.0.0.20-alpha.1.js → react-dnd-html5-backend.1HQjlkwI.0.0.20.js} +0 -0
- /package/dist/interface/{redux.CuxFRhX_.0.0.20-alpha.1.js → redux.CuxFRhX_.0.0.20.js} +0 -0
- /package/dist/interface/{tslib.9k7AwCpt.0.0.20-alpha.1.js → tslib.9k7AwCpt.0.0.20.js} +0 -0
- /package/dist/interface/{uc.micro.kMc2yuuw.0.0.20-alpha.1.js → uc.micro.kMc2yuuw.0.0.20.js} +0 -0
- /package/dist/interface/{utils.BvINh1mj.0.0.20-alpha.1.js → utils.BvINh1mj.0.0.20.js} +0 -0
- /package/dist/interface/{uuid.DvF23Exx.0.0.20-alpha.1.js → uuid.DvF23Exx.0.0.20.js} +0 -0
- /package/dist/interface/{vue.l0sNRNKZ.0.0.20-alpha.1.js → vue.l0sNRNKZ.0.0.20.js} +0 -0
- /package/dist/interface/{zod.BaF2dDCd.0.0.20-alpha.1.js → zod.BaF2dDCd.0.0.20.js} +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c as j}from"./redux.CuxFRhX_.0.0.20-alpha.1.js";import{i as s,a as M}from"./@react-dnd.CcwRs9xb.0.0.20-alpha.1.js";function H(t,e,r){return e.split(".").reduce((n,i)=>n&&n[i]?n[i]:r||null,t)}function N(t,e){return t.filter(r=>r!==e)}function U(t){return typeof t=="object"}function L(t,e){const r=new Map,n=o=>{r.set(o,r.has(o)?r.get(o)+1:1)};t.forEach(n),e.forEach(n);const i=[];return r.forEach((o,c)=>{o===1&&i.push(c)}),i}function k(t,e){return t.filter(r=>e.indexOf(r)>-1)}const E="dnd-core/INIT_COORDS",p="dnd-core/BEGIN_DRAG",I="dnd-core/PUBLISH_DRAG_SOURCE",h="dnd-core/HOVER",y="dnd-core/DROP",S="dnd-core/END_DRAG";function _(t,e){return{type:E,payload:{sourceClientOffset:e||null,clientOffset:t||null}}}const V={type:E,payload:{clientOffset:null,sourceClientOffset:null}};function B(t){return function(r=[],n={publishSource:!0}){const{publishSource:i=!0,clientOffset:o,getSourceClientOffset:c}=n,u=t.getMonitor(),l=t.getRegistry();t.dispatch(_(o)),q(r,u,l);const f=W(r,u);if(f==null){t.dispatch(V);return}let b=null;if(o){if(!c)throw new Error("getSourceClientOffset must be defined");F(c),b=c(f)}t.dispatch(_(o,b));const D=l.getSource(f).beginDrag(u,f);if(D==null)return;X(D),l.pinSource(f);const $=l.getSourceType(f);return{type:p,payload:{itemType:$,item:D,sourceId:f,clientOffset:o||null,sourceClientOffset:b||null,isSourcePublic:!!i}}}}function q(t,e,r){s(!e.isDragging(),"Cannot call beginDrag while dragging."),t.forEach(function(n){s(r.getSource(n),"Expected sourceIds to be registered.")})}function F(t){s(typeof t=="function","When clientOffset is provided, getSourceClientOffset must be a function.")}function X(t){s(U(t),"Item must be an object.")}function W(t,e){let r=null;for(let n=t.length-1;n>=0;n--)if(e.canDragSource(t[n])){r=t[n];break}return r}function z(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function J(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{},n=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable}))),n.forEach(function(i){z(t,i,r[i])})}return t}function Q(t){return function(r={}){const n=t.getMonitor(),i=t.getRegistry();Y(n),ee(n).forEach((c,u)=>{const l=Z(c,u,i,n),f={type:y,payload:{dropResult:J({},r,l)}};t.dispatch(f)})}}function Y(t){s(t.isDragging(),"Cannot call drop while not dragging."),s(!t.didDrop(),"Cannot call drop twice during one drag operation.")}function Z(t,e,r,n){const i=r.getTarget(t);let o=i?i.drop(n,t):void 0;return K(o),typeof o>"u"&&(o=e===0?{}:n.getDropResult()),o}function K(t){s(typeof t>"u"||U(t),"Drop result must either be an object or undefined.")}function ee(t){const e=t.getTargetIds().filter(t.canDropOnTarget,t);return e.reverse(),e}function te(t){return function(){const r=t.getMonitor(),n=t.getRegistry();re(r);const i=r.getSourceId();return i!=null&&(n.getSource(i,!0).endDrag(r,i),n.unpinSource()),{type:S}}}function re(t){s(t.isDragging(),"Cannot call endDrag while not dragging.")}function T(t,e){return e===null?t===null:Array.isArray(t)?t.some(r=>r===e):t===e}function ne(t){return function(r,{clientOffset:n}={}){ie(r);const i=r.slice(0),o=t.getMonitor(),c=t.getRegistry(),u=o.getItemType();return se(i,c,u),oe(i,o,c),ce(i,o,c),{type:h,payload:{targetIds:i,clientOffset:n||null}}}}function ie(t){s(Array.isArray(t),"Expected targetIds to be an array.")}function oe(t,e,r){s(e.isDragging(),"Cannot call hover while not dragging."),s(!e.didDrop(),"Cannot call hover after drop.");for(let n=0;n<t.length;n++){const i=t[n];s(t.lastIndexOf(i)===n,"Expected targetIds to be unique in the passed array.");const o=r.getTarget(i);s(o,"Expected targetIds to be registered.")}}function se(t,e,r){for(let n=t.length-1;n>=0;n--){const i=t[n],o=e.getTargetType(i);T(o,r)||t.splice(n,1)}}function ce(t,e,r){t.forEach(function(n){r.getTarget(n).hover(e,n)})}function ue(t){return function(){if(t.getMonitor().isDragging())return{type:I}}}function ae(t){return{beginDrag:B(t),publishDragSource:ue(t),hover:ne(t),drop:Q(t),endDrag:te(t)}}class fe{receiveBackend(e){this.backend=e}getMonitor(){return this.monitor}getBackend(){return this.backend}getRegistry(){return this.monitor.registry}getActions(){const e=this,{dispatch:r}=this.store;function n(o){return(...c)=>{const u=o.apply(e,c);typeof u<"u"&&r(u)}}const i=ae(this);return Object.keys(i).reduce((o,c)=>{const u=i[c];return o[c]=n(u),o},{})}dispatch(e){this.store.dispatch(e)}constructor(e,r){this.isSetUp=!1,this.handleRefCountChange=()=>{const n=this.store.getState().refCount>0;this.backend&&(n&&!this.isSetUp?(this.backend.setup(),this.isSetUp=!0):!n&&this.isSetUp&&(this.backend.teardown(),this.isSetUp=!1))},this.store=e,this.monitor=r,e.subscribe(this.handleRefCountChange)}}function le(t,e){return{x:t.x+e.x,y:t.y+e.y}}function G(t,e){return{x:t.x-e.x,y:t.y-e.y}}function de(t){const{clientOffset:e,initialClientOffset:r,initialSourceClientOffset:n}=t;return!e||!r||!n?null:G(le(e,n),r)}function ge(t){const{clientOffset:e,initialClientOffset:r}=t;return!e||!r?null:G(e,r)}const g=[],C=[];g.__IS_NONE__=!0;C.__IS_ALL__=!0;function pe(t,e){return t===g?!1:t===C||typeof e>"u"?!0:k(e,t).length>0}class he{subscribeToStateChange(e,r={}){const{handlerIds:n}=r;s(typeof e=="function","listener must be a function."),s(typeof n>"u"||Array.isArray(n),"handlerIds, when specified, must be an array of strings.");let i=this.store.getState().stateId;const o=()=>{const c=this.store.getState(),u=c.stateId;try{u===i||u===i+1&&!pe(c.dirtyHandlerIds,n)||e()}finally{i=u}};return this.store.subscribe(o)}subscribeToOffsetChange(e){s(typeof e=="function","listener must be a function.");let r=this.store.getState().dragOffset;const n=()=>{const i=this.store.getState().dragOffset;i!==r&&(r=i,e())};return this.store.subscribe(n)}canDragSource(e){if(!e)return!1;const r=this.registry.getSource(e);return s(r,`Expected to find a valid source. sourceId=${e}`),this.isDragging()?!1:r.canDrag(this,e)}canDropOnTarget(e){if(!e)return!1;const r=this.registry.getTarget(e);if(s(r,`Expected to find a valid target. targetId=${e}`),!this.isDragging()||this.didDrop())return!1;const n=this.registry.getTargetType(e),i=this.getItemType();return T(n,i)&&r.canDrop(this,e)}isDragging(){return!!this.getItemType()}isDraggingSource(e){if(!e)return!1;const r=this.registry.getSource(e,!0);if(s(r,`Expected to find a valid source. sourceId=${e}`),!this.isDragging()||!this.isSourcePublic())return!1;const n=this.registry.getSourceType(e),i=this.getItemType();return n!==i?!1:r.isDragging(this,e)}isOverTarget(e,r={shallow:!1}){if(!e)return!1;const{shallow:n}=r;if(!this.isDragging())return!1;const i=this.registry.getTargetType(e),o=this.getItemType();if(o&&!T(i,o))return!1;const c=this.getTargetIds();if(!c.length)return!1;const u=c.indexOf(e);return n?u===c.length-1:u>-1}getItemType(){return this.store.getState().dragOperation.itemType}getItem(){return this.store.getState().dragOperation.item}getSourceId(){return this.store.getState().dragOperation.sourceId}getTargetIds(){return this.store.getState().dragOperation.targetIds}getDropResult(){return this.store.getState().dragOperation.dropResult}didDrop(){return this.store.getState().dragOperation.didDrop}isSourcePublic(){return!!this.store.getState().dragOperation.isSourcePublic}getInitialClientOffset(){return this.store.getState().dragOffset.initialClientOffset}getInitialSourceClientOffset(){return this.store.getState().dragOffset.initialSourceClientOffset}getClientOffset(){return this.store.getState().dragOffset.clientOffset}getSourceClientOffset(){return de(this.store.getState().dragOffset)}getDifferenceFromInitialOffset(){return ge(this.store.getState().dragOffset)}constructor(e,r){this.store=e,this.registry=r}}const R="dnd-core/ADD_SOURCE",v="dnd-core/ADD_TARGET",x="dnd-core/REMOVE_SOURCE",O="dnd-core/REMOVE_TARGET";function ye(t){return{type:R,payload:{sourceId:t}}}function Se(t){return{type:v,payload:{targetId:t}}}function Oe(t){return{type:x,payload:{sourceId:t}}}function be(t){return{type:O,payload:{targetId:t}}}function De(t){s(typeof t.canDrag=="function","Expected canDrag to be a function."),s(typeof t.beginDrag=="function","Expected beginDrag to be a function."),s(typeof t.endDrag=="function","Expected endDrag to be a function.")}function Te(t){s(typeof t.canDrop=="function","Expected canDrop to be a function."),s(typeof t.hover=="function","Expected hover to be a function."),s(typeof t.drop=="function","Expected beginDrag to be a function.")}function m(t,e){if(e&&Array.isArray(t)){t.forEach(r=>m(r,!1));return}s(typeof t=="string"||typeof t=="symbol",e?"Type can only be a string, a symbol, or an array of either.":"Type can only be a string or a symbol.")}var a;(function(t){t.SOURCE="SOURCE",t.TARGET="TARGET"})(a||(a={}));let me=0;function Ee(){return me++}function Ie(t){const e=Ee().toString();switch(t){case a.SOURCE:return`S${e}`;case a.TARGET:return`T${e}`;default:throw new Error(`Unknown Handler Role: ${t}`)}}function w(t){switch(t[0]){case"S":return a.SOURCE;case"T":return a.TARGET;default:throw new Error(`Cannot parse handler ID: ${t}`)}}function P(t,e){const r=t.entries();let n=!1;do{const{done:i,value:[,o]}=r.next();if(o===e)return!0;n=!!i}while(!n);return!1}class Ce{addSource(e,r){m(e),De(r);const n=this.addHandler(a.SOURCE,e,r);return this.store.dispatch(ye(n)),n}addTarget(e,r){m(e,!0),Te(r);const n=this.addHandler(a.TARGET,e,r);return this.store.dispatch(Se(n)),n}containsHandler(e){return P(this.dragSources,e)||P(this.dropTargets,e)}getSource(e,r=!1){return s(this.isSourceId(e),"Expected a valid source ID."),r&&e===this.pinnedSourceId?this.pinnedSource:this.dragSources.get(e)}getTarget(e){return s(this.isTargetId(e),"Expected a valid target ID."),this.dropTargets.get(e)}getSourceType(e){return s(this.isSourceId(e),"Expected a valid source ID."),this.types.get(e)}getTargetType(e){return s(this.isTargetId(e),"Expected a valid target ID."),this.types.get(e)}isSourceId(e){return w(e)===a.SOURCE}isTargetId(e){return w(e)===a.TARGET}removeSource(e){s(this.getSource(e),"Expected an existing source."),this.store.dispatch(Oe(e)),M(()=>{this.dragSources.delete(e),this.types.delete(e)})}removeTarget(e){s(this.getTarget(e),"Expected an existing target."),this.store.dispatch(be(e)),this.dropTargets.delete(e),this.types.delete(e)}pinSource(e){const r=this.getSource(e);s(r,"Expected an existing source."),this.pinnedSourceId=e,this.pinnedSource=r}unpinSource(){s(this.pinnedSource,"No source is pinned at the time."),this.pinnedSourceId=null,this.pinnedSource=null}addHandler(e,r,n){const i=Ie(e);return this.types.set(i,r),e===a.SOURCE?this.dragSources.set(i,n):e===a.TARGET&&this.dropTargets.set(i,n),i}constructor(e){this.types=new Map,this.dragSources=new Map,this.dropTargets=new Map,this.pinnedSourceId=null,this.pinnedSource=null,this.store=e}}const Re=(t,e)=>t===e;function ve(t,e){return!t&&!e?!0:!t||!e?!1:t.x===e.x&&t.y===e.y}function xe(t,e,r=Re){if(t.length!==e.length)return!1;for(let n=0;n<t.length;++n)if(!r(t[n],e[n]))return!1;return!0}function _e(t=g,e){switch(e.type){case h:break;case R:case v:case O:case x:return g;case p:case I:case S:case y:default:return C}const{targetIds:r=[],prevTargetIds:n=[]}=e.payload,i=L(r,n);if(!(i.length>0||!xe(r,n)))return g;const c=n[n.length-1],u=r[r.length-1];return c!==u&&(c&&i.push(c),u&&i.push(u)),i}function we(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Pe(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{},n=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable}))),n.forEach(function(i){we(t,i,r[i])})}return t}const A={initialSourceClientOffset:null,initialClientOffset:null,clientOffset:null};function Ae(t=A,e){const{payload:r}=e;switch(e.type){case E:case p:return{initialSourceClientOffset:r.sourceClientOffset,initialClientOffset:r.clientOffset,clientOffset:r.clientOffset};case h:return ve(t.clientOffset,r.clientOffset)?t:Pe({},t,{clientOffset:r.clientOffset});case S:case y:return A;default:return t}}function Ue(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function d(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{},n=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable}))),n.forEach(function(i){Ue(t,i,r[i])})}return t}const Ge={itemType:null,item:null,sourceId:null,targetIds:[],dropResult:null,didDrop:!1,isSourcePublic:null};function $e(t=Ge,e){const{payload:r}=e;switch(e.type){case p:return d({},t,{itemType:r.itemType,item:r.item,sourceId:r.sourceId,isSourcePublic:r.isSourcePublic,dropResult:null,didDrop:!1});case I:return d({},t,{isSourcePublic:!0});case h:return d({},t,{targetIds:r.targetIds});case O:return t.targetIds.indexOf(r.targetId)===-1?t:d({},t,{targetIds:N(t.targetIds,r.targetId)});case y:return d({},t,{dropResult:r.dropResult,didDrop:!0,targetIds:[]});case S:return d({},t,{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return t}}function je(t=0,e){switch(e.type){case R:case v:return t+1;case x:case O:return t-1;default:return t}}function Me(t=0){return t+1}function He(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Ne(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{},n=Object.keys(r);typeof Object.getOwnPropertySymbols=="function"&&(n=n.concat(Object.getOwnPropertySymbols(r).filter(function(i){return Object.getOwnPropertyDescriptor(r,i).enumerable}))),n.forEach(function(i){He(t,i,r[i])})}return t}function Le(t={},e){return{dirtyHandlerIds:_e(t.dirtyHandlerIds,{type:e.type,payload:Ne({},e.payload,{prevTargetIds:H(t,"dragOperation.targetIds",[])})}),dragOffset:Ae(t.dragOffset,e),refCount:je(t.refCount,e),dragOperation:$e(t.dragOperation,e),stateId:Me(t.stateId)}}function Fe(t,e=void 0,r={},n=!1){const i=ke(n),o=new he(i,new Ce(i)),c=new fe(i,o),u=t(c,e,r);return c.receiveBackend(u),c}function ke(t){const e=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__;return j(Le,t&&e&&e({name:"dnd-core",instanceId:"dnd-core"}))}export{Fe as c};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{d as F,a as W,e as I,b as M,c as D,f as N,p as C}from"./engine.io-parser.BiEtp6m2.0.0.20-alpha.1.js";import{E as g}from"./@socket.io.Dkula2eQ.0.0.20-alpha.1.js";const a=typeof self<"u"?self:typeof window<"u"?window:Function("return this")();function L(r,...e){return e.reduce((t,s)=>(r.hasOwnProperty(s)&&(t[s]=r[s]),t),{})}const X=a.setTimeout,z=a.clearTimeout;function w(r,e){e.useNativeTimers?(r.setTimeoutFn=X.bind(a),r.clearTimeoutFn=z.bind(a)):(r.setTimeoutFn=a.setTimeout.bind(a),r.clearTimeoutFn=a.clearTimeout.bind(a))}const _=1.33;function J(r){return typeof r=="string"?V(r):Math.ceil((r.byteLength||r.size)*_)}function V(r){let e=0,t=0;for(let s=0,i=r.length;s<i;s++)e=r.charCodeAt(s),e<128?t+=1:e<2048?t+=2:e<55296||e>=57344?t+=3:(s++,t+=4);return t}function j(r){let e="";for(let t in r)r.hasOwnProperty(t)&&(e.length&&(e+="&"),e+=encodeURIComponent(t)+"="+encodeURIComponent(r[t]));return e}function $(r){let e={},t=r.split("&");for(let s=0,i=t.length;s<i;s++){let o=t[s].split("=");e[decodeURIComponent(o[0])]=decodeURIComponent(o[1])}return e}class G extends Error{constructor(e,t,s){super(e),this.description=t,this.context=s,this.type="TransportError"}}class b extends g{constructor(e){super(),this.writable=!1,w(this,e),this.opts=e,this.query=e.query,this.socket=e.socket}onError(e,t,s){return super.emitReserved("error",new G(e,t,s)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(e){this.readyState==="open"&&this.write(e)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(e){const t=F(e,this.socket.binaryType);this.onPacket(t)}onPacket(e){super.emitReserved("packet",e)}onClose(e){this.readyState="closed",super.emitReserved("close",e)}pause(e){}createUri(e,t={}){return e+"://"+this._hostname()+this._port()+this.opts.path+this._query(t)}_hostname(){const e=this.opts.hostname;return e.indexOf(":")===-1?e:"["+e+"]"}_port(){return this.opts.port&&(this.opts.secure&&+(this.opts.port!==443)||!this.opts.secure&&Number(this.opts.port)!==80)?":"+this.opts.port:""}_query(e){const t=j(e);return t.length?"?"+t:""}}const O="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),y=64,K={};let k=0,f=0,x;function S(r){let e="";do e=O[r%y]+e,r=Math.floor(r/y);while(r>0);return e}function B(){const r=S(+new Date);return r!==x?(k=0,x=r):r+"."+S(k++)}for(;f<y;f++)K[O[f]]=f;let U=!1;try{U=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const Q=U;function H(r){const e=r.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!e||Q))return new XMLHttpRequest}catch{}if(!e)try{return new a[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}function Y(){}const Z=function(){return new H({xdomain:!1}).responseType!=null}();class ee extends b{constructor(e){if(super(e),this.polling=!1,typeof location<"u"){const s=location.protocol==="https:";let i=location.port;i||(i=s?"443":"80"),this.xd=typeof location<"u"&&e.hostname!==location.hostname||i!==e.port}const t=e&&e.forceBase64;this.supportsBinary=Z&&!t,this.opts.withCredentials&&(this.cookieJar=void 0)}get name(){return"polling"}doOpen(){this.poll()}pause(e){this.readyState="pausing";const t=()=>{this.readyState="paused",e()};if(this.polling||!this.writable){let s=0;this.polling&&(s++,this.once("pollComplete",function(){--s||t()})),this.writable||(s++,this.once("drain",function(){--s||t()}))}else t()}poll(){this.polling=!0,this.doPoll(),this.emitReserved("poll")}onData(e){const t=s=>{if(this.readyState==="opening"&&s.type==="open"&&this.onOpen(),s.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(s)};W(e,this.socket.binaryType).forEach(t),this.readyState!=="closed"&&(this.polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this.poll())}doClose(){const e=()=>{this.write([{type:"close"}])};this.readyState==="open"?e():this.once("open",e)}write(e){this.writable=!1,I(e,t=>{this.doWrite(t,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const e=this.opts.secure?"https":"http",t=this.query||{};return this.opts.timestampRequests!==!1&&(t[this.opts.timestampParam]=B()),!this.supportsBinary&&!t.sid&&(t.b64=1),this.createUri(e,t)}request(e={}){return Object.assign(e,{xd:this.xd,cookieJar:this.cookieJar},this.opts),new h(this.uri(),e)}doWrite(e,t){const s=this.request({method:"POST",data:e});s.on("success",t),s.on("error",(i,o)=>{this.onError("xhr post error",i,o)})}doPoll(){const e=this.request();e.on("data",this.onData.bind(this)),e.on("error",(t,s)=>{this.onError("xhr poll error",t,s)}),this.pollXhr=e}}class h extends g{constructor(e,t){super(),w(this,t),this.opts=t,this.method=t.method||"GET",this.uri=e,this.data=t.data!==void 0?t.data:null,this.create()}create(){var e;const t=L(this.opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");t.xdomain=!!this.opts.xd;const s=this.xhr=new H(t);try{s.open(this.method,this.uri,!0);try{if(this.opts.extraHeaders){s.setDisableHeaderCheck&&s.setDisableHeaderCheck(!0);for(let i in this.opts.extraHeaders)this.opts.extraHeaders.hasOwnProperty(i)&&s.setRequestHeader(i,this.opts.extraHeaders[i])}}catch{}if(this.method==="POST")try{s.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{s.setRequestHeader("Accept","*/*")}catch{}(e=this.opts.cookieJar)===null||e===void 0||e.addCookies(s),"withCredentials"in s&&(s.withCredentials=this.opts.withCredentials),this.opts.requestTimeout&&(s.timeout=this.opts.requestTimeout),s.onreadystatechange=()=>{var i;s.readyState===3&&((i=this.opts.cookieJar)===null||i===void 0||i.parseCookies(s)),s.readyState===4&&(s.status===200||s.status===1223?this.onLoad():this.setTimeoutFn(()=>{this.onError(typeof s.status=="number"?s.status:0)},0))},s.send(this.data)}catch(i){this.setTimeoutFn(()=>{this.onError(i)},0);return}typeof document<"u"&&(this.index=h.requestsCount++,h.requests[this.index]=this)}onError(e){this.emitReserved("error",e,this.xhr),this.cleanup(!0)}cleanup(e){if(!(typeof this.xhr>"u"||this.xhr===null)){if(this.xhr.onreadystatechange=Y,e)try{this.xhr.abort()}catch{}typeof document<"u"&&delete h.requests[this.index],this.xhr=null}}onLoad(){const e=this.xhr.responseText;e!==null&&(this.emitReserved("data",e),this.emitReserved("success"),this.cleanup())}abort(){this.cleanup()}}h.requestsCount=0;h.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",E);else if(typeof addEventListener=="function"){const r="onpagehide"in a?"pagehide":"unload";addEventListener(r,E,!1)}}function E(){for(let r in h.requests)h.requests.hasOwnProperty(r)&&h.requests[r].abort()}const A=typeof Promise=="function"&&typeof Promise.resolve=="function"?e=>Promise.resolve().then(e):(e,t)=>t(e,0),m=a.WebSocket||a.MozWebSocket,R=!0,te="arraybuffer",P=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class se extends b{constructor(e){super(e),this.supportsBinary=!e.forceBase64}get name(){return"websocket"}doOpen(){if(!this.check())return;const e=this.uri(),t=this.opts.protocols,s=P?{}:L(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(s.headers=this.opts.extraHeaders);try{this.ws=R&&!P?t?new m(e,t):new m(e):new m(e,t,s)}catch(i){return this.emitReserved("error",i)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=e=>this.onClose({description:"websocket connection closed",context:e}),this.ws.onmessage=e=>this.onData(e.data),this.ws.onerror=e=>this.onError("websocket error",e)}write(e){this.writable=!1;for(let t=0;t<e.length;t++){const s=e[t],i=t===e.length-1;M(s,this.supportsBinary,o=>{const n={};try{R&&this.ws.send(o)}catch{}i&&A(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.close(),this.ws=null)}uri(){const e=this.opts.secure?"wss":"ws",t=this.query||{};return this.opts.timestampRequests&&(t[this.opts.timestampParam]=B()),this.supportsBinary||(t.b64=1),this.createUri(e,t)}check(){return!!m}}class re extends b{get name(){return"webtransport"}doOpen(){typeof WebTransport=="function"&&(this.transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name]),this.transport.closed.then(()=>{this.onClose()}).catch(e=>{this.onError("webtransport error",e)}),this.transport.ready.then(()=>{this.transport.createBidirectionalStream().then(e=>{const t=D(Number.MAX_SAFE_INTEGER,this.socket.binaryType),s=e.readable.pipeThrough(t).getReader(),i=N();i.readable.pipeTo(e.writable),this.writer=i.writable.getWriter();const o=()=>{s.read().then(({done:l,value:d})=>{l||(this.onPacket(d),o())}).catch(l=>{})};o();const n={type:"open"};this.query.sid&&(n.data=`{"sid":"${this.query.sid}"}`),this.writer.write(n).then(()=>this.onOpen())})}))}write(e){this.writable=!1;for(let t=0;t<e.length;t++){const s=e[t],i=t===e.length-1;this.writer.write(s).then(()=>{i&&A(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var e;(e=this.transport)===null||e===void 0||e.close()}}const ie={websocket:se,webtransport:re,polling:ee},oe=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,ne=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function q(r){if(r.length>2e3)throw"URI too long";const e=r,t=r.indexOf("["),s=r.indexOf("]");t!=-1&&s!=-1&&(r=r.substring(0,t)+r.substring(t,s).replace(/:/g,";")+r.substring(s,r.length));let i=oe.exec(r||""),o={},n=14;for(;n--;)o[ne[n]]=i[n]||"";return t!=-1&&s!=-1&&(o.source=e,o.host=o.host.substring(1,o.host.length-1).replace(/;/g,":"),o.authority=o.authority.replace("[","").replace("]","").replace(/;/g,":"),o.ipv6uri=!0),o.pathNames=ae(o,o.path),o.queryKey=he(o,o.query),o}function ae(r,e){const t=/\/{2,9}/g,s=e.replace(t,"/").split("/");return(e.slice(0,1)=="/"||e.length===0)&&s.splice(0,1),e.slice(-1)=="/"&&s.splice(s.length-1,1),s}function he(r,e){const t={};return e.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(s,i,o){i&&(t[i]=o)}),t}class c extends g{constructor(e,t={}){super(),this.binaryType=te,this.writeBuffer=[],e&&typeof e=="object"&&(t=e,e=null),e?(e=q(e),t.hostname=e.host,t.secure=e.protocol==="https"||e.protocol==="wss",t.port=e.port,e.query&&(t.query=e.query)):t.host&&(t.hostname=q(t.host).host),w(this,t),this.secure=t.secure!=null?t.secure:typeof location<"u"&&location.protocol==="https:",t.hostname&&!t.port&&(t.port=this.secure?"443":"80"),this.hostname=t.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=t.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=t.transports||["polling","websocket","webtransport"],this.writeBuffer=[],this.prevBufferLen=0,this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},t),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=$(this.opts.query)),this.id=null,this.upgrades=null,this.pingInterval=null,this.pingTimeout=null,this.pingTimeoutTimer=null,typeof addEventListener=="function"&&(this.opts.closeOnBeforeunload&&(this.beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this.beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this.offlineEventListener=()=>{this.onClose("transport close",{description:"network connection lost"})},addEventListener("offline",this.offlineEventListener,!1))),this.open()}createTransport(e){const t=Object.assign({},this.opts.query);t.EIO=C,t.transport=e,this.id&&(t.sid=this.id);const s=Object.assign({},this.opts,{query:t,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[e]);return new ie[e](s)}open(){let e;if(this.opts.rememberUpgrade&&c.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1)e="websocket";else if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}else e=this.transports[0];this.readyState="opening";try{e=this.createTransport(e)}catch{this.transports.shift(),this.open();return}e.open(),this.setTransport(e)}setTransport(e){this.transport&&this.transport.removeAllListeners(),this.transport=e,e.on("drain",this.onDrain.bind(this)).on("packet",this.onPacket.bind(this)).on("error",this.onError.bind(this)).on("close",t=>this.onClose("transport close",t))}probe(e){let t=this.createTransport(e),s=!1;c.priorWebsocketSuccess=!1;const i=()=>{s||(t.send([{type:"ping",data:"probe"}]),t.once("packet",p=>{if(!s)if(p.type==="pong"&&p.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",t),!t)return;c.priorWebsocketSuccess=t.name==="websocket",this.transport.pause(()=>{s||this.readyState!=="closed"&&(T(),this.setTransport(t),t.send([{type:"upgrade"}]),this.emitReserved("upgrade",t),t=null,this.upgrading=!1,this.flush())})}else{const u=new Error("probe error");u.transport=t.name,this.emitReserved("upgradeError",u)}}))};function o(){s||(s=!0,T(),t.close(),t=null)}const n=p=>{const u=new Error("probe error: "+p);u.transport=t.name,o(),this.emitReserved("upgradeError",u)};function l(){n("transport closed")}function d(){n("socket closed")}function v(p){t&&p.name!==t.name&&o()}const T=()=>{t.removeListener("open",i),t.removeListener("error",n),t.removeListener("close",l),this.off("close",d),this.off("upgrading",v)};t.once("open",i),t.once("error",n),t.once("close",l),this.once("close",d),this.once("upgrading",v),this.upgrades.indexOf("webtransport")!==-1&&e!=="webtransport"?this.setTimeoutFn(()=>{s||t.open()},200):t.open()}onOpen(){if(this.readyState="open",c.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush(),this.readyState==="open"&&this.opts.upgrade){let e=0;const t=this.upgrades.length;for(;e<t;e++)this.probe(this.upgrades[e])}}onPacket(e){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",e),this.emitReserved("heartbeat"),this.resetPingTimeout(),e.type){case"open":this.onHandshake(JSON.parse(e.data));break;case"ping":this.sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong");break;case"error":const t=new Error("server error");t.code=e.data,this.onError(t);break;case"message":this.emitReserved("data",e.data),this.emitReserved("message",e.data);break}}onHandshake(e){this.emitReserved("handshake",e),this.id=e.sid,this.transport.query.sid=e.sid,this.upgrades=this.filterUpgrades(e.upgrades),this.pingInterval=e.pingInterval,this.pingTimeout=e.pingTimeout,this.maxPayload=e.maxPayload,this.onOpen(),this.readyState!=="closed"&&this.resetPingTimeout()}resetPingTimeout(){this.clearTimeoutFn(this.pingTimeoutTimer),this.pingTimeoutTimer=this.setTimeoutFn(()=>{this.onClose("ping timeout")},this.pingInterval+this.pingTimeout),this.opts.autoUnref&&this.pingTimeoutTimer.unref()}onDrain(){this.writeBuffer.splice(0,this.prevBufferLen),this.prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const e=this.getWritablePackets();this.transport.send(e),this.prevBufferLen=e.length,this.emitReserved("flush")}}getWritablePackets(){if(!(this.maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let t=1;for(let s=0;s<this.writeBuffer.length;s++){const i=this.writeBuffer[s].data;if(i&&(t+=J(i)),s>0&&t>this.maxPayload)return this.writeBuffer.slice(0,s);t+=2}return this.writeBuffer}write(e,t,s){return this.sendPacket("message",e,t,s),this}send(e,t,s){return this.sendPacket("message",e,t,s),this}sendPacket(e,t,s,i){if(typeof t=="function"&&(i=t,t=void 0),typeof s=="function"&&(i=s,s=null),this.readyState==="closing"||this.readyState==="closed")return;s=s||{},s.compress=s.compress!==!1;const o={type:e,data:t,options:s};this.emitReserved("packetCreate",o),this.writeBuffer.push(o),i&&this.once("flush",i),this.flush()}close(){const e=()=>{this.onClose("forced close"),this.transport.close()},t=()=>{this.off("upgrade",t),this.off("upgradeError",t),e()},s=()=>{this.once("upgrade",t),this.once("upgradeError",t)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?s():e()}):this.upgrading?s():e()),this}onError(e){c.priorWebsocketSuccess=!1,this.emitReserved("error",e),this.onClose("transport error",e)}onClose(e,t){(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")&&(this.clearTimeoutFn(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),typeof removeEventListener=="function"&&(removeEventListener("beforeunload",this.beforeunloadEventListener,!1),removeEventListener("offline",this.offlineEventListener,!1)),this.readyState="closed",this.id=null,this.emitReserved("close",e,t),this.writeBuffer=[],this.prevBufferLen=0)}filterUpgrades(e){const t=[];let s=0;const i=e.length;for(;s<i;s++)~this.transports.indexOf(e[s])&&t.push(e[s]);return t}}c.protocol=C;export{c as S,w as i,A as n,q as p};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{c}from"./@xterm.CFD4UPpD.0.0.20-alpha.1.js";var f={exports:{}},u;function p(){return u||(u=1,function(h){(function(r,s){h.exports?h.exports=s():r.EvEmitter=s()})(typeof window<"u"?window:c,function(){function r(){}let s=r.prototype;return s.on=function(e,n){if(!e||!n)return this;let t=this._events=this._events||{},i=t[e]=t[e]||[];return i.includes(n)||i.push(n),this},s.once=function(e,n){if(!e||!n)return this;this.on(e,n);let t=this._onceEvents=this._onceEvents||{},i=t[e]=t[e]||{};return i[n]=!0,this},s.off=function(e,n){let t=this._events&&this._events[e];if(!t||!t.length)return this;let i=t.indexOf(n);return i!=-1&&t.splice(i,1),this},s.emitEvent=function(e,n){let t=this._events&&this._events[e];if(!t||!t.length)return this;t=t.slice(0),n=n||[];let i=this._onceEvents&&this._onceEvents[e];for(let o of t)i&&i[o]&&(this.off(e,o),delete i[o]),o.apply(this,n);return this},s.allOff=function(){return delete this._events,delete this._onceEvents,this},r})}(f)),f.exports}export{p as r};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{g as s}from"./@xterm.CFD4UPpD.0.0.20-alpha.1.js";var c=function u(r,t){if(r===t)return!0;if(r&&t&&typeof r=="object"&&typeof t=="object"){if(r.constructor!==t.constructor)return!1;var f,e,o;if(Array.isArray(r)){if(f=r.length,f!=t.length)return!1;for(e=f;e--!==0;)if(!u(r[e],t[e]))return!1;return!0}if(r.constructor===RegExp)return r.source===t.source&&r.flags===t.flags;if(r.valueOf!==Object.prototype.valueOf)return r.valueOf()===t.valueOf();if(r.toString!==Object.prototype.toString)return r.toString()===t.toString();if(o=Object.keys(r),f=o.length,f!==Object.keys(t).length)return!1;for(e=f;e--!==0;)if(!Object.prototype.hasOwnProperty.call(t,o[e]))return!1;for(e=f;e--!==0;){var n=o[e];if(!u(r[n],t[n]))return!1}return!0}return r!==r&&t!==t};const p=s(c);export{p as e};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{A as x,C as g,Z as C,P as Z}from"./uc.micro.kMc2yuuw.0.0.20-alpha.1.js";function w(_){const t={};_=_||{},t.src_Any=x.source,t.src_Cc=g.source,t.src_Z=C.source,t.src_P=Z.source,t.src_ZPCc=[t.src_Z,t.src_P,t.src_Cc].join("|"),t.src_ZCc=[t.src_Z,t.src_Cc].join("|");const e="[><|]";return t.src_pseudo_letter="(?:(?!"+e+"|"+t.src_ZPCc+")"+t.src_Any+")",t.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",t.src_auth="(?:(?:(?!"+t.src_ZCc+"|[@/\\[\\]()]).)+@)?",t.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",t.src_host_terminator="(?=$|"+e+"|"+t.src_ZPCc+")(?!"+(_["---"]?"-(?!--)|":"-|")+"_|:\\d|\\.-|\\.(?!$|"+t.src_ZPCc+"))",t.src_path="(?:[/?#](?:(?!"+t.src_ZCc+"|"+e+`|[()[\\]{}.,"'?!\\-;]).|\\[(?:(?!`+t.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+t.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+t.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+t.src_ZCc+`|["]).)+\\"|\\'(?:(?!`+t.src_ZCc+"|[']).)+\\'|\\'(?="+t.src_pseudo_letter+"|[-])|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!"+t.src_ZCc+"|[.]|$)|"+(_["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+",(?!"+t.src_ZCc+"|$)|;(?!"+t.src_ZCc+"|$)|\\!+(?!"+t.src_ZCc+"|[!]|$)|\\?(?!"+t.src_ZCc+"|[?]|$))+|\\/)?",t.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',t.src_xn="xn--[a-z0-9\\-]{1,59}",t.src_domain_root="(?:"+t.src_xn+"|"+t.src_pseudo_letter+"{1,63})",t.src_domain="(?:"+t.src_xn+"|(?:"+t.src_pseudo_letter+")|(?:"+t.src_pseudo_letter+"(?:-|"+t.src_pseudo_letter+"){0,61}"+t.src_pseudo_letter+"))",t.src_host="(?:(?:(?:(?:"+t.src_domain+")\\.)*"+t.src_domain+"))",t.tpl_host_fuzzy="(?:"+t.src_ip4+"|(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%)))",t.tpl_host_no_ip_fuzzy="(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%))",t.src_host_strict=t.src_host+t.src_host_terminator,t.tpl_host_fuzzy_strict=t.tpl_host_fuzzy+t.src_host_terminator,t.src_host_port_strict=t.src_host+t.src_port+t.src_host_terminator,t.tpl_host_port_fuzzy_strict=t.tpl_host_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_port_no_ip_fuzzy_strict=t.tpl_host_no_ip_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+t.src_ZPCc+"|>|$))",t.tpl_email_fuzzy="(^|"+e+'|"|\\(|'+t.src_ZCc+")("+t.src_email_name+"@"+t.tpl_host_fuzzy_strict+")",t.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_fuzzy_strict+t.src_path+")",t.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_no_ip_fuzzy_strict+t.src_path+")",t}function p(_){return Array.prototype.slice.call(arguments,1).forEach(function(e){e&&Object.keys(e).forEach(function(r){_[r]=e[r]})}),_}function l(_){return Object.prototype.toString.call(_)}function k(_){return l(_)==="[object String]"}function v(_){return l(_)==="[object Object]"}function E(_){return l(_)==="[object RegExp]"}function f(_){return l(_)==="[object Function]"}function j(_){return _.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}const y={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};function b(_){return Object.keys(_||{}).reduce(function(t,e){return t||y.hasOwnProperty(e)},!1)}const $={"http:":{validate:function(_,t,e){const r=_.slice(t);return e.re.http||(e.re.http=new RegExp("^\\/\\/"+e.re.src_auth+e.re.src_host_port_strict+e.re.src_path,"i")),e.re.http.test(r)?r.match(e.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(_,t,e){const r=_.slice(t);return e.re.no_http||(e.re.no_http=new RegExp("^"+e.re.src_auth+"(?:localhost|(?:(?:"+e.re.src_domain+")\\.)+"+e.re.src_domain_root+")"+e.re.src_port+e.re.src_host_terminator+e.re.src_path,"i")),e.re.no_http.test(r)?t>=3&&_[t-3]===":"||t>=3&&_[t-3]==="/"?0:r.match(e.re.no_http)[0].length:0}},"mailto:":{validate:function(_,t,e){const r=_.slice(t);return e.re.mailto||(e.re.mailto=new RegExp("^"+e.re.src_email_name+"@"+e.re.src_host_strict,"i")),e.re.mailto.test(r)?r.match(e.re.mailto)[0].length:0}}},A="a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]",P="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function S(_){_.__index__=-1,_.__text_cache__=""}function R(_){return function(t,e){const r=t.slice(e);return _.test(r)?r.match(_)[0].length:0}}function z(){return function(_,t){t.normalize(_)}}function u(_){const t=_.re=w(_.__opts__),e=_.__tlds__.slice();_.onCompile(),_.__tlds_replaced__||e.push(A),e.push(t.src_xn),t.src_tlds=e.join("|");function r(i){return i.replace("%TLDS%",t.src_tlds)}t.email_fuzzy=RegExp(r(t.tpl_email_fuzzy),"i"),t.link_fuzzy=RegExp(r(t.tpl_link_fuzzy),"i"),t.link_no_ip_fuzzy=RegExp(r(t.tpl_link_no_ip_fuzzy),"i"),t.host_fuzzy_test=RegExp(r(t.tpl_host_fuzzy_test),"i");const c=[];_.__compiled__={};function h(i,s){throw new Error('(LinkifyIt) Invalid schema "'+i+'": '+s)}Object.keys(_.__schemas__).forEach(function(i){const s=_.__schemas__[i];if(s===null)return;const a={validate:null,link:null};if(_.__compiled__[i]=a,v(s)){E(s.validate)?a.validate=R(s.validate):f(s.validate)?a.validate=s.validate:h(i,s),f(s.normalize)?a.normalize=s.normalize:s.normalize?h(i,s):a.normalize=z();return}if(k(s)){c.push(i);return}h(i,s)}),c.forEach(function(i){_.__compiled__[_.__schemas__[i]]&&(_.__compiled__[i].validate=_.__compiled__[_.__schemas__[i]].validate,_.__compiled__[i].normalize=_.__compiled__[_.__schemas__[i]].normalize)}),_.__compiled__[""]={validate:null,normalize:z()};const o=Object.keys(_.__compiled__).filter(function(i){return i.length>0&&_.__compiled__[i]}).map(j).join("|");_.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+o+")","i"),_.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+o+")","ig"),_.re.schema_at_start=RegExp("^"+_.re.schema_search.source,"i"),_.re.pretest=RegExp("("+_.re.schema_test.source+")|("+_.re.host_fuzzy_test.source+")|@","i"),S(_)}function L(_,t){const e=_.__index__,r=_.__last_index__,c=_.__text_cache__.slice(e,r);this.schema=_.__schema__.toLowerCase(),this.index=e+t,this.lastIndex=r+t,this.raw=c,this.text=c,this.url=c}function d(_,t){const e=new L(_,t);return _.__compiled__[e.schema].normalize(e,_),e}function n(_,t){if(!(this instanceof n))return new n(_,t);t||b(_)&&(t=_,_={}),this.__opts__=p({},y,t),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=p({},$,_),this.__compiled__={},this.__tlds__=P,this.__tlds_replaced__=!1,this.re={},u(this)}n.prototype.add=function(t,e){return this.__schemas__[t]=e,u(this),this};n.prototype.set=function(t){return this.__opts__=p(this.__opts__,t),this};n.prototype.test=function(t){if(this.__text_cache__=t,this.__index__=-1,!t.length)return!1;let e,r,c,h,o,i,s,a,m;if(this.re.schema_test.test(t)){for(s=this.re.schema_search,s.lastIndex=0;(e=s.exec(t))!==null;)if(h=this.testSchemaAt(t,e[2],s.lastIndex),h){this.__schema__=e[2],this.__index__=e.index+e[1].length,this.__last_index__=e.index+e[0].length+h;break}}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(a=t.search(this.re.host_fuzzy_test),a>=0&&(this.__index__<0||a<this.__index__)&&(r=t.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))!==null&&(o=r.index+r[1].length,(this.__index__<0||o<this.__index__)&&(this.__schema__="",this.__index__=o,this.__last_index__=r.index+r[0].length))),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&(m=t.indexOf("@"),m>=0&&(c=t.match(this.re.email_fuzzy))!==null&&(o=c.index+c[1].length,i=c.index+c[0].length,(this.__index__<0||o<this.__index__||o===this.__index__&&i>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=o,this.__last_index__=i))),this.__index__>=0};n.prototype.pretest=function(t){return this.re.pretest.test(t)};n.prototype.testSchemaAt=function(t,e,r){return this.__compiled__[e.toLowerCase()]?this.__compiled__[e.toLowerCase()].validate(t,r,this):0};n.prototype.match=function(t){const e=[];let r=0;this.__index__>=0&&this.__text_cache__===t&&(e.push(d(this,r)),r=this.__last_index__);let c=r?t.slice(r):t;for(;this.test(c);)e.push(d(this,r)),c=c.slice(this.__last_index__),r+=this.__last_index__;return e.length?e:null};n.prototype.matchAtStart=function(t){if(this.__text_cache__=t,this.__index__=-1,!t.length)return null;const e=this.re.schema_at_start.exec(t);if(!e)return null;const r=this.testSchemaAt(t,e[2],e[0].length);return r?(this.__schema__=e[2],this.__index__=e.index+e[1].length,this.__last_index__=e.index+e[0].length+r,d(this,0)):null};n.prototype.tlds=function(t,e){return t=Array.isArray(t)?t:[t],e?(this.__tlds__=this.__tlds__.concat(t).sort().filter(function(r,c,h){return r!==h[c-1]}).reverse(),u(this),this):(this.__tlds__=t.slice(),this.__tlds_replaced__=!0,u(this),this)};n.prototype.normalize=function(t){t.schema||(t.url="http://"+t.url),t.schema==="mailto:"&&!/^mailto:/i.test(t.url)&&(t.url="mailto:"+t.url)};n.prototype.onCompile=function(){};export{n as L};
|