@ibiz-template/mob-vue3-components 0.7.41-alpha.44 → 0.7.41-alpha.45

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.
Files changed (111) hide show
  1. package/dist/index-C2RpvUdN.js +305 -0
  2. package/dist/index-C2RpvUdN.js.map +1 -0
  3. package/dist/index-DlGM9S4F.js +2 -0
  4. package/dist/index-DlGM9S4F.js.map +1 -0
  5. package/dist/index-nnXrw2xr.js +2 -0
  6. package/dist/index-nnXrw2xr.js.map +1 -0
  7. package/dist/{index.es-B4WC8P83.js → index.es-_6ywDrFd.js} +2 -2
  8. package/dist/{index.es-B4WC8P83.js.map → index.es-_6ywDrFd.js.map} +1 -1
  9. package/dist/index.min.css +2 -2
  10. package/dist/index.system.min.js +1 -1
  11. package/dist/{quill-Df5cj2RQ.js → quill-DRZb928s.js} +2 -2
  12. package/dist/{quill-Df5cj2RQ.js.map → quill-DRZb928s.js.map} +1 -1
  13. package/dist/{quill-editor-CQYTRYYm.js → quill-editor-Dr2Twryp.js} +2 -2
  14. package/dist/{quill-editor-CQYTRYYm.js.map → quill-editor-Dr2Twryp.js.map} +1 -1
  15. package/dist/{quill-editor-preview-C8H85dB-.js → quill-editor-preview-Z4mYt5NV.js} +2 -2
  16. package/dist/{quill-editor-preview-C8H85dB-.js.map → quill-editor-preview-Z4mYt5NV.js.map} +1 -1
  17. package/dist/{tree-NsIllfO6.js → tree-CeHNT0xx.js} +2 -2
  18. package/dist/{tree-NsIllfO6.js.map → tree-CeHNT0xx.js.map} +1 -1
  19. package/dist/{xlsx-util-DLbbu4ET.js → xlsx-util-CfBSMyVx.js} +2 -2
  20. package/dist/{xlsx-util-DLbbu4ET.js.map → xlsx-util-CfBSMyVx.js.map} +1 -1
  21. package/es/common/no-data/no-data.mjs +1 -1
  22. package/es/control/calendar/calendar.mjs +1 -1
  23. package/es/control/dashboard/dashboard.css +1 -1
  24. package/es/control/data-view/data-view.css +1 -1
  25. package/es/control/data-view/data-view.mjs +46 -1
  26. package/es/control/list/list/list.mjs +48 -1
  27. package/es/control/list/md-ctrl/md-ctrl.css +1 -1
  28. package/es/control/list/md-ctrl/md-ctrl.mjs +48 -1
  29. package/es/control/search-bar/filter-field-select/filter-field-select.mjs +4 -4
  30. package/es/control/search-bar/filter-mode-select/filter-mode-select.mjs +7 -51
  31. package/es/control/search-bar/filter-tree/filter-tree.css +1 -1
  32. package/es/control/search-bar/filter-tree/filter-tree.mjs +9 -52
  33. package/es/editor/ai-chat/embed-ai-chat/embed-ai-chat.css +1 -0
  34. package/es/editor/ai-chat/embed-ai-chat/embed-ai-chat.mjs +76 -0
  35. package/es/editor/ai-chat/embed-ai-chat-editor.controller.mjs +70 -0
  36. package/es/editor/ai-chat/embed-ai-chat-editor.provider.mjs +22 -0
  37. package/es/editor/ai-chat/index.mjs +5 -0
  38. package/es/editor/index.mjs +9 -0
  39. package/es/editor/map-picker/ibiz-map-picker/ibiz-map-picker.css +1 -1
  40. package/es/editor/map-picker/ibiz-map-picker/ibiz-map-picker.mjs +91 -6
  41. package/es/editor/map-picker/map-picker-editor.controller.mjs +71 -0
  42. package/es/editor/text-box/signature/signature.mjs +3 -0
  43. package/es/index.mjs +2 -0
  44. package/es/locale/en/index.mjs +39 -18
  45. package/es/locale/index.mjs +28 -3
  46. package/es/locale/zh-CN/index.mjs +22 -3
  47. package/es/mob-app/App.mjs +15 -2
  48. package/es/mob-app/guard/auth-guard/auth-guard.mjs +10 -11
  49. package/es/mob-app/guard/auth-guard/dyna-auth-guard.mjs +0 -13
  50. package/es/mob-app/index.mjs +2 -0
  51. package/es/mob-app/main.mjs +3 -1
  52. package/es/mob-app/util/app-func-block-provider/app-func-block-provider.mjs +99 -0
  53. package/es/mob-app/util/index.mjs +1 -0
  54. package/es/node_modules/.pnpm/vant@4.9.21_vue@3.5.22/node_modules/vant/es/locale/lang/en-US.mjs +64 -0
  55. package/es/panel-component/view-content-panel-container/view-content-panel-container.css +1 -1
  56. package/es/panel-component/view-content-panel-container/view-content-panel-container.mjs +26 -19
  57. package/es/util/ai-chat-util/ai-chat-util.mjs +118 -16
  58. package/es/util/app-util/app-util.mjs +27 -18
  59. package/es/util/index.mjs +1 -0
  60. package/es/util/util/index.mjs +69 -0
  61. package/es/view/login-view/login-view.mjs +6 -12
  62. package/es/view-engine/login-view.engine.mjs +12 -23
  63. package/lib/common/no-data/no-data.cjs +1 -1
  64. package/lib/control/calendar/calendar.cjs +1 -1
  65. package/lib/control/dashboard/dashboard.css +1 -1
  66. package/lib/control/data-view/data-view.cjs +46 -1
  67. package/lib/control/data-view/data-view.css +1 -1
  68. package/lib/control/list/list/list.cjs +48 -1
  69. package/lib/control/list/md-ctrl/md-ctrl.cjs +48 -1
  70. package/lib/control/list/md-ctrl/md-ctrl.css +1 -1
  71. package/lib/control/search-bar/filter-field-select/filter-field-select.cjs +4 -4
  72. package/lib/control/search-bar/filter-mode-select/filter-mode-select.cjs +7 -51
  73. package/lib/control/search-bar/filter-tree/filter-tree.cjs +9 -52
  74. package/lib/control/search-bar/filter-tree/filter-tree.css +1 -1
  75. package/lib/editor/ai-chat/embed-ai-chat/embed-ai-chat.cjs +78 -0
  76. package/lib/editor/ai-chat/embed-ai-chat/embed-ai-chat.css +1 -0
  77. package/lib/editor/ai-chat/embed-ai-chat-editor.controller.cjs +72 -0
  78. package/lib/editor/ai-chat/embed-ai-chat-editor.provider.cjs +24 -0
  79. package/lib/editor/ai-chat/index.cjs +11 -0
  80. package/lib/editor/index.cjs +9 -0
  81. package/lib/editor/map-picker/ibiz-map-picker/ibiz-map-picker.cjs +91 -6
  82. package/lib/editor/map-picker/ibiz-map-picker/ibiz-map-picker.css +1 -1
  83. package/lib/editor/map-picker/map-picker-editor.controller.cjs +71 -0
  84. package/lib/editor/text-box/signature/signature.cjs +3 -0
  85. package/lib/index.cjs +4 -0
  86. package/lib/locale/en/index.cjs +39 -18
  87. package/lib/locale/index.cjs +28 -3
  88. package/lib/locale/zh-CN/index.cjs +22 -3
  89. package/lib/mob-app/App.cjs +13 -0
  90. package/lib/mob-app/guard/auth-guard/auth-guard.cjs +10 -11
  91. package/lib/mob-app/guard/auth-guard/dyna-auth-guard.cjs +0 -13
  92. package/lib/mob-app/index.cjs +3 -0
  93. package/lib/mob-app/main.cjs +2 -0
  94. package/lib/mob-app/util/app-func-block-provider/app-func-block-provider.cjs +101 -0
  95. package/lib/mob-app/util/index.cjs +2 -0
  96. package/lib/node_modules/.pnpm/vant@4.9.21_vue@3.5.22/node_modules/vant/es/locale/lang/en-US.cjs +68 -0
  97. package/lib/panel-component/view-content-panel-container/view-content-panel-container.cjs +25 -18
  98. package/lib/panel-component/view-content-panel-container/view-content-panel-container.css +1 -1
  99. package/lib/util/ai-chat-util/ai-chat-util.cjs +118 -16
  100. package/lib/util/app-util/app-util.cjs +26 -17
  101. package/lib/util/index.cjs +2 -0
  102. package/lib/util/util/index.cjs +71 -0
  103. package/lib/view/login-view/login-view.cjs +6 -12
  104. package/lib/view-engine/login-view.engine.cjs +11 -22
  105. package/package.json +9 -9
  106. package/dist/index-0Tm3N1Vm.js +0 -305
  107. package/dist/index-0Tm3N1Vm.js.map +0 -1
  108. package/dist/index-BGhGphQC.js +0 -2
  109. package/dist/index-BGhGphQC.js.map +0 -1
  110. package/dist/index-DvcCk7Fe.js +0 -2
  111. package/dist/index-DvcCk7Fe.js.map +0 -1
@@ -0,0 +1,305 @@
1
+ System.register(["@ibiz-template/vue3-util","vue","vant","@ibiz-template/core","ramda","lodash-es","@ibiz-template/runtime","@floating-ui/dom","vue-router","pinia","qx-util","dayjs","vuedraggable","qs","vue-i18n","@ibiz-template/devtool","@ibiz-template/model-helper"],function(e,t){"use strict";var n,a,i,o,r,s,l,c,u,d,h,p,f,v,m,g,b,y,w,_,E,P,N,I,A,k,C,S,M,x,O,D,T,j,L,V,B,U,z,R,F,$,q,W,H,G,Y,X,J,K,Q,Z,ee,te,ne,ae,ie,oe,re,se,le,ce,ue,de,he,pe,fe,ve,me,ge,be,ye,we,_e,Ee,Pe,Ne,Ie,Ae,ke,Ce,Se,Me,xe,Oe,De,Te,je,Le,Ve,Be,Ue,ze,Re,Fe,$e,qe,We,He,Ge,Ye,Xe,Je,Ke,Qe,Ze,et,tt,nt,at,it,ot,rt,st,lt,ct,ut,dt,ht,pt,ft,vt,mt,gt,bt,yt,wt,_t,Et,Pt,Nt,It,At,kt,Ct,St,Mt,xt,Ot,Dt,Tt,jt,Lt,Vt,Bt,Ut,zt,Rt,Ft,$t,qt,Wt,Ht,Gt,Yt,Xt,Jt,Kt,Qt,Zt,en,tn,nn,an,on,rn,sn,ln,cn,un,dn,hn,pn,fn,vn,mn,gn,bn,yn,wn,_n,En,Pn,Nn,In,An,kn,Cn,Sn,Mn,xn,On,Dn,Tn,jn,Ln,Vn,Bn,Un,zn,Rn,Fn,$n,qn,Wn,Hn,Gn,Yn,Xn,Jn,Kn,Qn,Zn,ea,ta,na,aa,ia,oa,ra,sa,la,ca,ua,da,ha,pa,fa,va,ma,ga,ba,ya,wa,_a,Ea,Pa,Na,Ia,Aa,ka,Ca,Sa,Ma,xa,Oa,Da,Ta,ja,La,Va,Ba,Ua,za,Ra,Fa,$a,qa,Wa,Ha,Ga,Ya,Xa,Ja,Ka,Qa,Za,ei,ti,ni,ai,ii,oi,ri,si,li,ci,ui,di,hi,pi,fi,vi,mi,gi,bi,yi,wi,_i,Ei,Pi,Ni,Ii,Ai,ki,Ci,Si,Mi,xi,Oi,Di,Ti,ji,Li,Vi,Bi,Ui,zi,Ri,Fi,$i;return{setters:[function(e){n=e.useNamespace,a=e.generateRoutePathByModal,i=e.routerCallback,o=e.generateRoutePath,r=e.openViewModal,s=e.openViewPopover,l=e.getDrawerPlacement,c=e.openViewDrawer,u=e.OverlayContainer,d=e.useUIStore,h=e.OverlayPopoverContainer,p=e.route2routePath,f=e.routePath2string,v=e.getNestedRoutePath,m=e.useFilterAttribute,g=e.useCtx,b=e.IBizViewShell,y=e.IBizIcon,w=e.IBizControlBase,_=e.IBizRouterView,E=e.IBizControlShell,P=e.IBizCodeList,N=e.IBizBadge,I=e.IBizSignaturePad,A=e.useControlController,k=e.withInstall,C=e.useController,S=e.useClickOutside,M=e.ControlLoadingPlaceholder,x=e.onRouteChange,O=e.PanelContainerController,D=e.useMobCtx,T=e.getRawProps,j=e.IBizPanelCtrlViewPageCaption,L=e.IBizPanelContainer,V=e.IBizPanelCtrlPos,B=e.IBizNavPos,U=e.IBizPanelField,z=e.IBizGridContainer,R=e.IBizPanelRawItem,F=e.IBizSingleDataContainer,$=e.IBizMultiDataContainer,q=e.IBizMultiDataContainerRaw,W=e.IBizPanelTabPage,H=e.IBizPanelContainerImage,G=e.IBizScrollContainer,Y=e.IBizPanelItemRender,X=e.IBizAuthWxmpQrcode,J=e.IBizTeleportPlaceholder,K=e.getSpanProps,Q=e.useFocusAndBlur,Z=e.getEditorEmits,ee=e.getInputProps,te=e.getInputNumberProps,ne=e.getDropdownProps,ae=e.getCheckboxListProps,ie=e.getSwitchProps,oe=e.getRadioProps,re=e.getSliderProps,se=e.getStepperProps,le=e.getRateProps,ce=e.getDatePickerProps,ue=e.getDataPickerProps,de=e.getUploadProps,he=e.getNumberRangeProps,pe=e.getDateRangeProps,fe=e.getCascaderProps,ve=e.getColorPickerProps,me=e.getCheckboxProps,ge=e.getMapPickerProps,be=e.getArrayProps,ye=e.AppHooks,we=e.useViewController,_e=e.IBizView,Ee=e.IBizDeRedirectView,Pe=e.IBizViewLayoutPanelControl,Ne=e.IBizPanelControl,Ie=e.piniaInstance,Ae=e.parseRouteViewData,ke=e.createOverlayView,Ce=e.AppRedirectView,Se=e.useAppStore,Me=e.PluginFactory},function(e){xe=e.defineComponent,Oe=e.createVNode,De=e.resolveComponent,Te=e.mergeProps,je=e.ref,Le=e.reactive,Ve=e.isVNode,Be=e.onMounted,Ue=e.onUnmounted,ze=e.h,Re=e.createApp,Fe=e.onBeforeUnmount,$e=e.watch,qe=e.computed,We=e.createElementBlock,He=e.openBlock,Ge=e.createElementVNode,Ye=e.withDirectives,Xe=e.normalizeStyle,Je=e.vShow,Ke=e.renderSlot,Qe=e.createTextVNode,Ze=e.callWithErrorHandling,et=e.getCurrentInstance,tt=e.onUpdated,nt=e.cloneVNode,at=e.callWithAsyncErrorHandling,it=e.nextTick,ot=e.resolveDirective,rt=e.toRaw,st=e.onActivated,lt=e.Teleport,ct=e.defineAsyncComponent,ut=e.isReactive,dt=e.unref,ht=e.Fragment,pt=e.onDeactivated,ft=e.inject,vt=e.KeepAlive},function(e){mt=e.showLoadingToast,gt=e.showNotify,bt=e.showDialog,yt=e.showConfirmDialog,wt=e.showImagePreview,_t=e.Locale,Et=e.allowMultipleToast,Pt=e.default},function(e){Nt=e.RuntimeError,It=e.UrlHelper,At=e.calcOpenModeStyle,kt=e.Namespace,Ct=e.StringUtil,St=e.IBizContext,Mt=e.showTitle,xt=e.NOOP,Ot=e.listenJSEvent,Dt=e.debounce,Tt=e.recursiveIterate,jt=e.ModelError,Lt=e.clone,Vt=e.downloadFileFromBlob,Bt=e.getToken,Ut=e.DataTypes,zt=e.isEmoji,Rt=e.base64ToStr,Ft=e.RuntimeModelError,$t=e.getAppCookie,qt=e.CoreConst,Wt=e.base64ToBlob,Ht=e.strToBase64,Gt=e.HttpError,Yt=e.LoginMode,Xt=e.setAppCookie,Jt=e.install},function(e){Kt=e.isNil,Qt=e.isNotNil,Zt=e.clone,en=e.equals,tn=e.mergeDeepLeft,nn=e.isEmpty,an=e.mergeDeepRight},function(e){on=e.isNumber,rn=e.isFunction,sn=e.isString,ln=e.chunk,cn=e.isArray,un=e.debounce,dn=e.isObject,hn=e.isNil,pn=e.floor,fn=e.toNumber,vn=e.isEmpty,mn=e.clone},function(e){gn=e.Modal,bn=e.ViewMode,yn=e.getAppFuncBlockProvider,wn=e.getDeACMode,_n=e.calcDeCodeNameById,En=e.ScriptFactory,Pn=e.GridRowState,Nn=e.ControlVO,In=e.UIActionUtil,An=e.SysUIActionTag,kn=e.parseViewProtocol,Cn=e.OpenAppViewCommand,Sn=e.ConfigService,Mn=e.UtilService,xn=e.AIUtilService,On=e.isWeChat,Dn=e.isDingDing,Tn=e.ValueOP,jn=e.calcGridLayoutPos,Ln=e.MDCtrlController,Vn=e.getAllUIActionItems,Bn=e.registerControlProvider,Un=e.ControlType,zn=e.AppMenuController,Rn=e.SearchFormController,Fn=e.FormGroupPanelController,$n=e.registerFormDetailProvider,qn=e.FormItemController,Wn=e.FormPageController,Hn=e.FormButtonController,Gn=e.FormDRUIPartController,Yn=e.FormRawItemController,Xn=e.FormTabPanelController,Jn=e.FormTabPageController,Kn=e.FormMDCtrlController,Qn=e.FormMDCtrlFormController,Zn=e.FormMDCtrlMDController,ea=e.FormMDCtrlRepeaterController,ta=e.EditFormController,na=e.FormButtonListController,aa=e.findChildFormDetails,ia=e.PickupViewPanelController,oa=e.ControlController,ra=e.convertNavData,sa=e.ListController,la=e.TabExpPanelController,ca=e.ToolbarController,ua=e.CaptionBarController,da=e.SearchBarController,ha=e.getOriginFilterNodes,pa=e.CounterService,fa=e.calcItemVisible,va=e.Srfuf,ma=e.hasSubRoute,ga=e.calcNavParams,ba=e.calcItemVisibleByCounter,ya=e.DataViewControlController,wa=e.DashboardController,_a=e.MobCustomDashboardController,Ea=e.ContainerPortletController,Pa=e.registerPortletProvider,Na=e.PortletPartController,Ia=e.MenuPortletController,Aa=e.ViewPortletController,ka=e.ListPortletController,Ca=e.RawItemPortletController,Sa=e.ChartPortletController,Ma=e.HtmlPortletController,xa=e.ActionBarPortletController,Oa=e.CalendarController,Da=e.WizardPanelController,Ta=e.TreeExpBarController,ja=e.registerPanelItemProvider,La=e.PanelItemState,Va=e.PanelItemController,Ba=e.getUIActionById,Ua=e.UIActionButtonState,za=e.getInternalMessageProvider,Ra=e.registerInternalMessageProvider,Fa=e.getAsyncActionProvider,$a=e.registerAsyncActionProvider,qa=e.ButtonContainerState,Wa=e.calcUIActionGroup,Ha=e.PanelContainerController,Ga=e.PanelContainerState,Ya=e.BrowserPlatformProvider,Xa=e.PlatformProviderBase,Ja=e.isIos,Ka=e.CodeListEditorController,Qa=e.getPlatformType,Za=e.PlatformType,ei=e.EditorController,ti=e.registerEditorProvider,ni=e.ViewEngineBase,ai=e.ViewCallTag,ii=e.getAppViewRef,oi=e.MDViewEngine,ri=e.getWFContext,si=e.getControl,li=e.getWFSubmitViewId,ci=e.ViewController,ui=e.registerViewProvider,di=e.ViewType,hi=e.registerPlatformProvider,pi=e.RouteConst,fi=e.install,vi=e.getPlatformProvider,mi=e.registerAppFuncBlockProvider},function(e){gi=e.autoUpdate,bi=e.offset,yi=e.flip,wi=e.shift,_i=e.arrow,Ei=e.computePosition},function(e){Pi=e.isNavigationFailure,Ni=e.useRoute,Ii=e.useRouter,Ai=e.onBeforeRouteUpdate,ki=e.createRouter,Ci=e.createWebHashHistory},function(e){Si=e.defineStore},function(e){Mi=e.QXEvent,xi=e.createUUID,Oi=e.clearAll,Di=e.notNilEmpty,Ti=e.isNilOrEmpty,ji=e.AsyncSeriesHook},function(e){Li=e.default},function(e){Vi=e.default},function(e){Bi=e.default},function(e){Ui=e.createI18n},function(e){zi=e.updateDevToolConfig,Ri=e.install,Fi=e.listenOpenDevTool},function(e){$i=e.ModelHelper}],execute:function(){function qi(e,t){return t.forEach(function(t){t&&"string"!=typeof t&&!Array.isArray(t)&&Object.keys(t).forEach(function(n){if("default"!==n&&!(n in e)){var a=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,a.get?a:{enumerable:!0,get:function(){return t[n]}})}})}),Object.freeze(e)}e({_:ss,c:QV,cc:ho,cg:Jr,ch:Kr,ci:Zr,cn:ku,co:go,cq:async function(e,t){ye.createApp.tap((t,n)=>{e&&e.forEach(e=>{n.use(e)})}),Jt(),fi(),ye.appResorceInited.call(ibiz.hub),ibiz.util.getGlobalParam=()=>Se().appStore,ibiz.util.getRouterParams=()=>p(oB.getRouter().currentRoute.value).pathNodes,ibiz.plugin=new Me,ibiz.util.error.register(new lB);const n=QV($V);let a;u.createVueApp=QV,window.onerror=function(e,t,n,a,i){return i&&ibiz.util.error.handle(i),!0},window.addEventListener("unhandledrejection",function(e){e.preventDefault(),e.promise.catch(e=>{ibiz.util.error.handle(e)})}),await WV(),Ri(),a=(null==t?void 0:t.getAuthGuard)?t.getAuthGuard():new mB;oB.setAuthGuard((e,t)=>a.verify(e,t));const i=oB.getRouter(null==t?void 0:t.userRoutes);n.use(i),Fi(i),ibiz.appUtil=new uo(i),ibiz.openView=new Ki(i),ibiz.message=new Yi,ibiz.modal=new Xi,ibiz.confirm=new so,ibiz.notification=new Ji,ibiz.loading=new Gi,ibiz.overlay=new to,ibiz.platform=vi(),ibiz.fullscreenUtil=new mo,ibiz.printPreview=new Au,ibiz.util.text.format=(e,t)=>n.config.globalProperties.$textFormat(e,t),ibiz.qrcodeUtil=new Xr,ibiz.aiChatUtil=new rs,mi(()=>new cB),await ibiz.i18n.init(),n.mount("#app")},g:_o,l:nd,s:Zu});var Wi=Object.defineProperty,Hi=(e,t,n)=>(((e,t,n)=>{t in e?Wi(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n),n);class Gi{constructor(){Hi(this,"count",0),Hi(this,"countRedirect",0),Hi(this,"loading")}show(){const e=n("loading");0===this.count&&(this.loading=mt({message:"".concat(ibiz.i18n.t("util.loading"),"..."),forbidClick:!0,className:e.b(),loadingType:"spinner",overlayClass:e.e("overlay")})),this.count+=1}hide(){this.count>0&&(this.count-=1),0===this.count&&this.loading&&this.loading.close()}showRedirect(){this.show()}hideRedirect(){this.hide()}}e("c3",Gi);class Yi{info(e,t,n){gt({message:e,duration:null!=t?1e3*t:1500,type:"primary"})}success(e,t,n){gt({message:e,duration:null!=t?1e3*t:1500,type:"success"})}warning(e,t,n){gt({message:e,duration:null!=t?1e3*t:1500,type:"warning"})}error(e,t,n){gt({message:e,duration:null!=t?1e3*t:1500,type:"danger"})}notice(e){throw new Nt(ibiz.i18n.t("util.notAchieved"))}}e("c4",Yi);class Xi{getRootCssVar(e){const t=document.documentElement,n=window.getComputedStyle(t);if(n)return n.getPropertyValue(e)}async info(e){const{confirmButtonText:t,cancelButtonText:n}=e;await bt({title:e.title,message:e.desc,confirmButtonText:t,cancelButtonText:n})}async success(e){const{confirmButtonText:t,cancelButtonText:a}=e,i=n(),o=this.getRootCssVar(i.cssVarName("color-success"));await bt({title:e.title,message:e.desc,confirmButtonColor:o,confirmButtonText:t,cancelButtonText:a})}async warning(e){const{confirmButtonText:t,cancelButtonText:a}=e,i=n(),o=this.getRootCssVar(i.cssVarName("color-warning"));await bt({title:e.title,message:e.desc,confirmButtonColor:o,confirmButtonText:t,cancelButtonText:a})}async error(e){const{confirmButtonText:t,cancelButtonText:a}=e,i=n(),o=this.getRootCssVar(i.cssVarName("color-danger"));await bt({title:e.title,message:e.desc,confirmButtonColor:o,theme:"round-button",confirmButtonText:t,cancelButtonText:a})}async confirm(e){const{confirmButtonText:t,cancelButtonText:n}=e;return new Promise(a=>{yt({title:e.title,message:e.desc,confirmButtonText:t,cancelButtonText:n}).then(()=>{a(!0)}).catch(()=>{a(!1)})})}async extendConfirm(e){return new Promise(t=>{yt({message:e.desc,beforeClose:e=>(e||t("cancel"),!0),...e,...e.options}).then(()=>{t("yes")}).catch(()=>{t("no")})})}}e("c5",Xi);class Ji{uploadManager(e){throw new Error("Method not implemented.")}default(e){throw new Error(ibiz.i18n.t("util.unrealized"))}info(e){const t=e.duration?1e3*e.duration:4500;gt({message:e.desc,type:"primary",duration:t})}success(e){const t=e.duration?1e3*e.duration:4500;gt({message:e.desc,type:"success",duration:t})}warning(e){const t=e.duration?1e3*e.duration:4500;gt({message:e.desc,type:"warning",duration:t})}error(e){const t=e.duration?1e3*e.duration:4500;gt({message:e.desc,type:"danger",duration:t})}}e("c6",Ji);class Ki{constructor(e){this.router=e}async rootByModal(e,t,n){const i=await ibiz.hub.config.view.get(e),{path:o}=await a(i,this.router.currentRoute.value,t,n);return this.push(o)}push(e){return i.open(this.router,e)}async root(e,t,n,a={}){const r=await ibiz.hub.config.view.get(e),s=this.router.currentRoute.value,{path:l}=await o(r,s,t,n);return s.meta.home&&Kt(a.replace)&&"replace"===ibiz.config.mob.mobHomeRouteMode&&(a.replace=!0),i.open(this.router,l,a)}async modal(e,t,n,a={}){const i=await ibiz.hub.config.view.get(e),o=JSON.parse(ibiz.config.common.modalOption||"{}"),s={width:i.width,height:i.height,footerHide:!0,...o,...a,...i.modalOption};return r({context:t,params:n,viewId:i.id,ctx:a.ctx},s)}async popover(e,t,n,a,i={}){const o=await ibiz.hub.config.view.get(e),r={width:o.width,height:o.height,autoClose:!0,placement:"bottom",...i,...o.modalOption};return s(t,{context:n,params:a,viewId:o.id,ctx:i.ctx},r)}async drawer(e,t,n,a={}){const i=await ibiz.hub.config.view.get(e),o=l(i.openMode),r=JSON.parse(ibiz.config.common.drawerOption||"{}"),s={width:i.width,height:i.height,placement:o,...r,...a,...i.modalOption};return c({context:t,params:n,viewId:i.id,ctx:a.ctx},s)}async custom(e,t,n){const a=await ibiz.hub.config.view.get(e);throw ibiz.log.warn("openUserCustom",a,t,n),new Error}async popupApp(e,t,n){const a=await ibiz.hub.config.view.get(e),{path:i}=await o(a,this.router.currentRoute.value,t,n);window.open("".concat(It.routeBase).concat(i),"_blank","popup")}async verify(e,t,n,a={},i={}){return!0}}e("c7",Ki);const Qi=xe({props:{opts:{type:Object,default:()=>({})}},setup(e,t){const a=n("modal"),i=je(!1),{zIndex:o}=d(),r=o.increment(),s=Le({[a.cssVarBlockName("z-index")]:r}),{width:l,height:c}=e.opts;s.width=l?on(l)?At(l,"modal"):l:"100%",s.height=c?on(c)?At(c,"modal"):c:"100%";const u=je({footerHide:!0,modalClass:"",showClose:!1,overlay:!0});e.opts&&Object.assign(u.value,e.opts);const h=new gn({mode:bn.MODAL,viewUsage:2,dismiss:e=>{o.decrement(),t.emit("dismiss",e)}}),p=async()=>{await h.dismiss()};return{ns:a,isShow:i,options:u,modalZIndex:r,customStyle:s,modal:h,present:()=>{i.value=!0},dismiss:e=>{h.dismiss(e)},onBeforeClose:p,onDialogClose:()=>{i.value=!1,p()}}},render(){const e={default:()=>{var e,t;return null==(t=(e=this.$slots).default)?void 0:t.call(e,this.modal)}};return this.options.showClose&&(e.title=()=>Oe(De("van-button"),{class:this.ns.e("close"),plain:!0,style:{zIndex:this.modalZIndex},onClick:this.onDialogClose},{default:()=>[Oe(De("van-icon"),{name:"cross"},null)]})),Oe(De("van-dialog"),Te({show:this.isShow,lockScroll:!1,"close-on-popstate":!0,showConfirmButton:!1,class:[this.ns.b(),this.options.placement&&this.ns.m(this.options.placement),this.options.modalClass],style:this.customStyle,overlay:this.options.overlay,"close-on-click-overlay":!0,"before-close":this.onBeforeClose},this.options),function(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!Ve(e)}(e)?e:{default:()=>[e]})}});const Zi=xe({props:{opts:{type:Object,default:()=>({})}},setup(e,t){const a=n("drawer"),i=je(!1),{zIndex:o}=d(),r=o.increment(),s=new gn({mode:bn.DRAWER,viewUsage:2,dismiss:e=>{o.decrement(),t.emit("dismiss",e)}});let l="";if(e.opts.placement)switch(e.opts.placement){case"left":l="left";break;case"top":l="top";break;case"bottom":l="bottom";break;default:l="right"}const c=Le({height:"80%"});["left","right"].includes(l)&&(c.height="100%");const{width:u,height:h}=e.opts;return u&&(on(u)?c.width=At(u,"modal"):c.width=u),h&&(on(h)?c.height=At(h,"modal"):c.height=h),{ns:a,isShow:i,direction:l,drawerZIndex:r,modal:s,dismiss:e=>{s.dismiss(e)},present:()=>{i.value=!0},onBeforeClose:async e=>{await s.dismiss()&&e()},customStyle:c}},render(){return Oe(De("van-popup"),Te({show:this.isShow,"onUpdate:show":e=>this.isShow=e,"lock-scroll":!1,round:!0,"close-on-popstate":!0,"close-icon-position":"top-left",class:this.ns.b(),style:this.customStyle,position:this.direction,"z-index":this.drawerZIndex,"before-close":this.onBeforeClose},this.opts.attrs),{default:()=>{var e,t;return[null==(t=(e=this.$slots).default)?void 0:t.call(e,this.modal)]}})}});const eo=xe({props:{opts:{type:Object,default:()=>({})}},setup(e,t){const a=n("popover"),i=je(!1),o=je(),r=je(),{zIndex:s}=d(),l=s.increment(),c=Le({}),{width:u,height:h}=e.opts;c.width=u?on(u)?At(u,"modal"):u:"60%",c.height=h?on(h)?At(h,"modal"):h:"30%",c.zIndex=l;const p=new gn({mode:bn.POPOVER,viewUsage:2,dismiss:e=>{s.decrement(),t.emit("dismiss",e)}});async function f(e){await p.dismiss(e)}let v=()=>{};const m=()=>{null==p||p.dismiss()};Be(()=>{window.addEventListener("popstate",m)}),Ue(()=>{v(),window.removeEventListener("popstate",m)});return{ns:a,el:o,arrEl:r,isShow:i,modal:p,popoverZIndex:l,onMaskClick:()=>{!0===e.opts.autoClose&&f()},present:async function(t){i.value=!0,v=gi(t,o.value,()=>async function(e,t,n,a){const i=[bi(a.offsetOpts||6),yi(),wi()];a.noArrow||i.push(_i({element:n}));const o={placement:a.placement,strategy:"absolute",middleware:i};a.options&&Object.assign(o,a.options);const r=await Ei(e,t,o);{const{x:e,y:i,placement:o,middlewareData:s}=r,{style:l}=t;if(l.left="".concat(e,"px"),l.top="".concat(i,"px"),!a.noArrow){const{x:e,y:t}=s.arrow,a={top:"bottom",right:"left",bottom:"top",left:"right"}[o.split("-")[0]];Object.assign(n.style,{left:null!=e?"".concat(e,"px"):"",top:null!=t?"".concat(t,"px"):"",right:"",bottom:"",[a]:"-4px"})}}}(t,o.value,r.value,e.opts))},dismiss:f,customStyle:c}},render(){var e,t;const n=Oe("div",{class:[this.ns.b(),this.ns.is("show",this.isShow),this.opts.modalClass||""],ref:"el",style:this.customStyle,onClick:e=>{e.stopPropagation()}},[!this.opts.noArrow&&Oe("div",{class:[this.ns.e("arrow")],ref:"arrEl"},null),null==(t=(e=this.$slots).default)?void 0:t.call(e,this.modal)]);return!0===this.opts.autoClose?Oe("div",{class:[this.ns.e("overlay")],style:{zIndex:this.popoverZIndex},onClick:()=>{this.onMaskClick()}},[n]):n}});class to{popover(e,t,n,a){const i=this.createPopover(t,n,a);return i.present(e),i.onWillDismiss()}createPopover(e,t,n){return function(e,t){return new h(eo,e,t)}(rn(e)?e:()=>ze(function(e){return sn(e)?De(e):e}(e),{...t}),n)}createFloatWindow(e,t,n){throw new Error("Method not implemented.")}drawer(e,t,n){const a=this.createDrawer(e,t,n);return a.present(),a.onWillDismiss()}createDrawer(e,t,n){return function(e,t){return new u(Zi,e,t)}(rn(e)?e:()=>ze(De(e),{...t}),n)}async modal(e,t,n){const a=this.createModal(e,t,n);return a.present(),a.onWillDismiss()}createModal(e,t,n){return function(e,t){return new u(Qi,e,t)}(rn(e)?e:()=>ze(De(e),{...t}),n)}async floatWindow(e,t,n){const a=this.createFloatWindow(e,t,n);return a.present(),a.onWillDismiss()}}e("c8",to);const no=Symbol("vanLoading"),ao=e=>{const t=n("loading"),a={message:"".concat((t=>e.getAttribute("element-loading-".concat(t)))("text")||ibiz.i18n.t("util.loading"),"..."),forbidClick:!0,teleport:e,duration:0,className:t.b(),loadingType:"spinner",overlayClass:t.e("overlay")};e[no]={instance:mt(a)}},io=e("c9",{mounted(e,t){t.value&&ao(e)},updated(e,t){const n=e[no];t.oldValue!==t.value&&(t.value&&!t.oldValue?ao(e):null==n||n.instance.close())},unmounted(e){var t;null==(t=e[no])||t.instance.close()}});var oo=Object.defineProperty,ro=(e,t,n)=>(((e,t,n)=>{t in e?oo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,t+"",n),n);class so{constructor(){ro(this,"ns",new kt("confirm"))}async info(e){const{title:t,desc:n,options:a}=e;return new Promise(e=>{yt({title:t,message:n,className:"".concat(this.ns.b()," ").concat(this.ns.e("info")),...a}).then(()=>{e(!0)}).catch(()=>{e(!1)})})}async success(e){const{title:t,desc:n,options:a}=e;return new Promise(e=>{yt({title:t,message:n,className:"".concat(this.ns.b()," ").concat(this.ns.e("success")),...a}).then(()=>{e(!0)}).catch(()=>{e(!1)})})}async warning(e){const{title:t,desc:n,options:a}=e;return new Promise(e=>{yt({title:t,message:n,className:"".concat(this.ns.b()," ").concat(this.ns.e("warning")),...a}).then(()=>{e(!0)}).catch(()=>{e(!1)})})}async error(e){const{title:t,desc:n,options:a}=e;return new Promise(e=>{yt({title:t,message:n,className:"".concat(this.ns.b()," ").concat(this.ns.e("error")),...a}).then(()=>{e(!0)}).catch(()=>{e(!1)})})}}e("ca",so);var lo=Object.defineProperty,co=(e,t,n)=>(((e,t,n)=>{t in e?lo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,t+"",n),n);class uo{constructor(e){this.router=e,co(this,"viewCacheCenter",new Map)}registerEventOnNavEnd(e){this.router.afterEach((t,n)=>{e&&e(t.fullPath,n.fullPath)})}registerAutoCloseOnNavEnd(){ibiz.config.common.autoCloseModalView&&this.router&&this.router.afterEach(()=>{if(0===this.viewCacheCenter.size)return;const e=[...this.viewCacheCenter.values()].filter(e=>e&&!1===e.state.isDestroyed&&e.modal&&2===e.modal.viewUsage);0!==e.length&&setTimeout(()=>{e.forEach(e=>e&&e.closeView&&e.closeView())},0)})}async onRouteIsReady(){return this.router.isReady()}getAppContext(){return p(this.router.currentRoute.value).appContext}async login(e,t,n,a,i){const o=await yn();return await o.login({loginname:e,password:t,rememberme:n,headers:a})}async logout(e){const t=await yn();return await t.logout({router:this.router})}async changePwd(e,t,n){if(this.validatePwd(e,t,n)){return await ibiz.auth.changePwd(e,t)}return{ok:!1,result:{}}}switchOrg(e,t,n){throw new Error("Method not implemented.")}switchTheme(e,t,n){throw new Error("Method not implemented.")}switchLanguage(e,t,n){throw new Error("Method not implemented.")}validatePwd(e,t,n={}){const{surePwd:a}=n;return e?t?a?e===t?(ibiz.message.error("新密码不能与旧密码一致"),!1):t===a||(ibiz.message.error("两次密码不一致"),!1):(ibiz.message.error("确认密码不能为空"),!1):(ibiz.message.error("新密码不能为空"),!1):(ibiz.message.error("原密码不能为空"),!1)}async openAiChat(e){const{data:t,view:n,ctrl:a,params:i,context:o,appDEACModeId:r,appDataEntityId:s}=e,l=await wn(r,s,o.srfappid);if(!l)return Promise.resolve([]);const c=await ibiz.aiChatUtil.getAIChat(),u=_n(s);let h="".concat(s,"@").concat(r,"@");h+=o[u]?o[u]:"default";const p=ibiz.aiChatUtil.getChatSessionId("TOPIC",h),f="[".concat(l.logicName,"]").concat((null==t?void 0:t.srfmajortext)||""),v={...i,srfactag:l.codeName},{zIndex:m}=d(),g=m.increment(),{containerOptions:b,topicOptions:y,chatOptions:w}=await ibiz.aiChatUtil.getUIActionExAIChatParams(o,i,t,l,{chatInstance:c,view:n,ctrl:a}),_=await ibiz.aiChatUtil.getAIResourceOptions(o,i);return new Promise(e=>{c.create({mode:"TOPIC",resourceOptions:_,containerOptions:{zIndex:g,enableBackFill:!1,...b},topicOptions:{appid:ibiz.env.appId,id:h,caption:f,url:window.location.hash.substring(1),type:o.srftopicpath||"default",...y},chatOptions:{caption:l.logicName,context:{...o},params:v,appDataEntityId:s,sessionid:p,...w,closed:(t,n,a)=>{e(a)}}})})}route2routeObject(e=!1){return p(this.router.currentRoute.value,e)}routeObject2String(e){return f(e)}resolveI18nText(e){return-1!==e.indexOf("ibiz.i18n.t")?En.execScriptFn({},e,{isAsync:!1,singleRowReturn:!0}):e}}function ho(e){const t=()=>{const t=e;Array.isArray(t.state.simpleData)&&(t.state.items=ln(t.state.simpleData,t.state.size)[t.state.curPage-1]||[],t.state.rows=t.state.items.map(e=>new Pn(new Nn(e),t)))};return{onPageChange:function(n){n&&n!==e.state.curPage&&(e.state.curPage=n,e.context&&"DESIGN"===e.context.srfrunmode?t():e.load())},onPageSizeChange:function(n){n&&n!==e.state.size&&(e.state.size=n,e.context&&"DESIGN"===e.context.srfrunmode?t():1===e.state.curPage&&e.load())},onPageRefresh:function(){e.load()}}}e("cb",uo);const po=xe({name:"IBizFullscreenHeader",props:{title:{type:String}},setup:()=>({ns:n("fullscreen-header"),onClose:()=>{ibiz.fullscreenUtil.closeElementFullscreen()}}),render(){return Oe("div",{class:this.ns.b()},[Oe("span",{class:this.ns.e("title")},[this.title]),Oe("span",{class:this.ns.e("close"),onClick:this.onClose},[Oe("ion-icon",{name:"close-outline"},null)])])}});var fo=Object.defineProperty,vo=(e,t,n)=>(((e,t,n)=>{t in e?fo(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n),n);class mo{constructor(){vo(this,"fullscreenElement",null),vo(this,"FullscreenClass","full-screen")}get isFullScreen(){return!!this.fullscreenElement&&document.fullscreenElement===this.fullscreenElement}openElementFullscreen(e,t){if((null==t?void 0:t.class)&&(this.FullscreenClass=t.class),!this.isFullScreen&&e){const a=n(this.FullscreenClass);this.FullscreenClass&&e.classList.add(a.b());const i=document.createElement("div");i.classList.add(a.e("header"));Re(po,{title:null==t?void 0:t.srftitle}).mount(i),e.insertBefore(i,e.children[0]),this.fullscreenElement=e}}closeElementFullscreen(){if(!this.fullscreenElement)return;const e=n(this.FullscreenClass);this.fullscreenElement.classList.remove(e.b());const t=this.fullscreenElement.querySelector(".".concat(e.e("header")));t&&t.remove(),this.fullscreenElement=null}}function go(e){const t=e.matched[0];let n="",a=!0;return t.meta.preset&&(n=t.path,a=!1),n=v(e,t.meta.home?2:1),{key:n,isCache:a}}e("cd",mo);const bo=e("cp",Si("viewStack",()=>{let e;const t=new Mi,n=t.on.bind(t),a=t.off.bind(t),i=new Map,o=Le({cacheKeys:[],currentKey:""}),r=(e,t)=>{if(i.has(e)){i.get(e).fullPath=t.fullPath}else i.set(e,{key:e,fullPath:t.fullPath})},s=(e,n)=>{t.emit("onBeforeStackChange","push"),o.cacheKeys.push(e),r(e,n),o.currentKey=e};return{viewStack:o,init:n=>{e=n,n.afterEach((e,n,a)=>{if(Pi(a))return;const{key:l,isCache:c}=go(e);c&&(l===o.currentKey?r(l,e):o.cacheKeys.includes(l)?"/-/index/-"===l?(o.cacheKeys=[],o.currentKey="",i.clear(),s(l,e)):(()=>{if(o.cacheKeys.length<2)throw new Nt(ibiz.i18n.t("util.cacheWarningPrompt"));t.emit("onBeforeStackChange","pop");const e=o.cacheKeys.pop();i.delete(e),o.currentKey=o.cacheKeys[o.cacheKeys.length-1]})():s(l,e)),o.currentKey=l})},on:n,off:a,goBack:()=>{e.back()}}})),yo=e("ce",e=>{const t=()=>{e()};Be(()=>{window.addEventListener("popstate",t)}),Fe(()=>{window.removeEventListener("popstate",t)})});var wo=e("a","undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{});function _o(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Eo={exports:{}};!function(e){!function(t,n){e.exports=n()}(0,()=>(()=>{var e={873:(e,t)=>{var n,a,i=function(){var e=function(e,t){var n=e,a=r[t],i=null,o=0,l=null,m=[],g={},y=function(e,t){i=function(e){for(var t=new Array(e),n=0;n<e;n+=1){t[n]=new Array(e);for(var a=0;a<e;a+=1)t[n][a]=null}return t}(o=4*n+17),w(0,0),w(o-7,0),w(0,o-7),E(),_(),N(e,t),n>=7&&P(e),null==l&&(l=A(n,a,m)),I(l,t)},w=function(e,t){for(var n=-1;n<=7;n+=1)if(!(e+n<=-1||o<=e+n))for(var a=-1;a<=7;a+=1)t+a<=-1||o<=t+a||(i[e+n][t+a]=0<=n&&n<=6&&(0==a||6==a)||0<=a&&a<=6&&(0==n||6==n)||2<=n&&n<=4&&2<=a&&a<=4)},_=function(){for(var e=8;e<o-8;e+=1)null==i[e][6]&&(i[e][6]=e%2==0);for(var t=8;t<o-8;t+=1)null==i[6][t]&&(i[6][t]=t%2==0)},E=function(){for(var e=s.getPatternPosition(n),t=0;t<e.length;t+=1)for(var a=0;a<e.length;a+=1){var o=e[t],r=e[a];if(null==i[o][r])for(var l=-2;l<=2;l+=1)for(var c=-2;c<=2;c+=1)i[o+l][r+c]=-2==l||2==l||-2==c||2==c||0==l&&0==c}},P=function(e){for(var t=s.getBCHTypeNumber(n),a=0;a<18;a+=1){var r=!e&&1==(t>>a&1);i[Math.floor(a/3)][a%3+o-8-3]=r}for(a=0;a<18;a+=1)r=!e&&1==(t>>a&1),i[a%3+o-8-3][Math.floor(a/3)]=r},N=function(e,t){for(var n=a<<3|t,r=s.getBCHTypeInfo(n),l=0;l<15;l+=1){var c=!e&&1==(r>>l&1);l<6?i[l][8]=c:l<8?i[l+1][8]=c:i[o-15+l][8]=c}for(l=0;l<15;l+=1)c=!e&&1==(r>>l&1),l<8?i[8][o-l-1]=c:l<9?i[8][15-l-1+1]=c:i[8][15-l-1]=c;i[o-8][8]=!e},I=function(e,t){for(var n=-1,a=o-1,r=7,l=0,c=s.getMaskFunction(t),u=o-1;u>0;u-=2)for(6==u&&(u-=1);;){for(var d=0;d<2;d+=1)if(null==i[a][u-d]){var h=!1;l<e.length&&(h=1==(e[l]>>>r&1)),c(a,u-d)&&(h=!h),i[a][u-d]=h,-1==(r-=1)&&(l+=1,r=7)}if((a+=n)<0||o<=a){a-=n,n=-n;break}}},A=function(e,t,n){for(var a=u.getRSBlocks(e,t),i=d(),o=0;o<n.length;o+=1){var r=n[o];i.put(r.getMode(),4),i.put(r.getLength(),s.getLengthInBits(r.getMode(),e)),r.write(i)}var l=0;for(o=0;o<a.length;o+=1)l+=a[o].dataCount;if(i.getLengthInBits()>8*l)throw"code length overflow. ("+i.getLengthInBits()+">"+8*l+")";for(i.getLengthInBits()+4<=8*l&&i.put(0,4);i.getLengthInBits()%8!=0;)i.putBit(!1);for(;!(i.getLengthInBits()>=8*l||(i.put(236,8),i.getLengthInBits()>=8*l));)i.put(17,8);return function(e,t){for(var n=0,a=0,i=0,o=new Array(t.length),r=new Array(t.length),l=0;l<t.length;l+=1){var u=t[l].dataCount,d=t[l].totalCount-u;a=Math.max(a,u),i=Math.max(i,d),o[l]=new Array(u);for(var h=0;h<o[l].length;h+=1)o[l][h]=255&e.getBuffer()[h+n];n+=u;var p=s.getErrorCorrectPolynomial(d),f=c(o[l],p.getLength()-1).mod(p);for(r[l]=new Array(p.getLength()-1),h=0;h<r[l].length;h+=1){var v=h+f.getLength()-r[l].length;r[l][h]=v>=0?f.getAt(v):0}}var m=0;for(h=0;h<t.length;h+=1)m+=t[h].totalCount;var g=new Array(m),b=0;for(h=0;h<a;h+=1)for(l=0;l<t.length;l+=1)h<o[l].length&&(g[b]=o[l][h],b+=1);for(h=0;h<i;h+=1)for(l=0;l<t.length;l+=1)h<r[l].length&&(g[b]=r[l][h],b+=1);return g}(i,a)};g.addData=function(e,t){var n=null;switch(t=t||"Byte"){case"Numeric":n=h(e);break;case"Alphanumeric":n=p(e);break;case"Byte":n=f(e);break;case"Kanji":n=v(e);break;default:throw"mode:"+t}m.push(n),l=null},g.isDark=function(e,t){if(e<0||o<=e||t<0||o<=t)throw e+","+t;return i[e][t]},g.getModuleCount=function(){return o},g.make=function(){if(n<1){for(var e=1;e<40;e++){for(var t=u.getRSBlocks(e,a),i=d(),o=0;o<m.length;o++){var r=m[o];i.put(r.getMode(),4),i.put(r.getLength(),s.getLengthInBits(r.getMode(),e)),r.write(i)}var l=0;for(o=0;o<t.length;o++)l+=t[o].dataCount;if(i.getLengthInBits()<=8*l)break}n=e}y(!1,function(){for(var e=0,t=0,n=0;n<8;n+=1){y(!0,n);var a=s.getLostPoint(g);(0==n||e>a)&&(e=a,t=n)}return t}())},g.createTableTag=function(e,t){e=e||2;var n="";n+='<table style="',n+=" border-width: 0px; border-style: none;",n+=" border-collapse: collapse;",n+=" padding: 0px; margin: "+(t=void 0===t?4*e:t)+"px;",n+='">',n+="<tbody>";for(var a=0;a<g.getModuleCount();a+=1){n+="<tr>";for(var i=0;i<g.getModuleCount();i+=1)n+='<td style="',n+=" border-width: 0px; border-style: none;",n+=" border-collapse: collapse;",n+=" padding: 0px; margin: 0px;",n+=" width: "+e+"px;",n+=" height: "+e+"px;",n+=" background-color: ",n+=g.isDark(a,i)?"#000000":"#ffffff",n+=";",n+='"/>';n+="</tr>"}return(n+="</tbody>")+"</table>"},g.createSvgTag=function(e,t,n,a){var i={};"object"==typeof arguments[0]&&(e=(i=arguments[0]).cellSize,t=i.margin,n=i.alt,a=i.title),e=e||2,t=void 0===t?4*e:t,(n="string"==typeof n?{text:n}:n||{}).text=n.text||null,n.id=n.text?n.id||"qrcode-description":null,(a="string"==typeof a?{text:a}:a||{}).text=a.text||null,a.id=a.text?a.id||"qrcode-title":null;var o,r,s,l,c=g.getModuleCount()*e+2*t,u="";for(l="l"+e+",0 0,"+e+" -"+e+",0 0,-"+e+"z ",u+='<svg version="1.1" xmlns="http://www.w3.org/2000/svg"',u+=i.scalable?"":' width="'+c+'px" height="'+c+'px"',u+=' viewBox="0 0 '+c+" "+c+'" ',u+=' preserveAspectRatio="xMinYMin meet"',u+=a.text||n.text?' role="img" aria-labelledby="'+k([a.id,n.id].join(" ").trim())+'"':"",u+=">",u+=a.text?'<title id="'+k(a.id)+'">'+k(a.text)+"</title>":"",u+=n.text?'<description id="'+k(n.id)+'">'+k(n.text)+"</description>":"",u+='<rect width="100%" height="100%" fill="white" cx="0" cy="0"/>',u+='<path d="',r=0;r<g.getModuleCount();r+=1)for(s=r*e+t,o=0;o<g.getModuleCount();o+=1)g.isDark(r,o)&&(u+="M"+(o*e+t)+","+s+l);return(u+='" stroke="transparent" fill="black"/>')+"</svg>"},g.createDataURL=function(e,t){e=e||2,t=void 0===t?4*e:t;var n=g.getModuleCount()*e+2*t,a=t,i=n-t;return b(n,n,function(t,n){if(a<=t&&t<i&&a<=n&&n<i){var o=Math.floor((t-a)/e),r=Math.floor((n-a)/e);return g.isDark(r,o)?0:1}return 1})},g.createImgTag=function(e,t,n){e=e||2,t=void 0===t?4*e:t;var a=g.getModuleCount()*e+2*t,i="";return i+="<img",i+=' src="',i+=g.createDataURL(e,t),i+='"',i+=' width="',i+=a,i+='"',i+=' height="',i+=a,i+='"',n&&(i+=' alt="',i+=k(n),i+='"'),i+"/>"};var k=function(e){for(var t="",n=0;n<e.length;n+=1){var a=e.charAt(n);switch(a){case"<":t+="&lt;";break;case">":t+="&gt;";break;case"&":t+="&amp;";break;case'"':t+="&quot;";break;default:t+=a}}return t};return g.createASCII=function(e,t){if((e=e||1)<2)return function(e){e=void 0===e?2:e;var t,n,a,i,o,r=1*g.getModuleCount()+2*e,s=e,l=r-e,c={"██":"█","█ ":"▀"," █":"▄"," ":" "},u={"██":"▀","█ ":"▀"," █":" "," ":" "},d="";for(t=0;t<r;t+=2){for(a=Math.floor((t-s)/1),i=Math.floor((t+1-s)/1),n=0;n<r;n+=1)o="█",s<=n&&n<l&&s<=t&&t<l&&g.isDark(a,Math.floor((n-s)/1))&&(o=" "),s<=n&&n<l&&s<=t+1&&t+1<l&&g.isDark(i,Math.floor((n-s)/1))?o+=" ":o+="█",d+=e<1&&t+1>=l?u[o]:c[o];d+="\n"}return r%2&&e>0?d.substring(0,d.length-r-1)+Array(r+1).join("▀"):d.substring(0,d.length-1)}(t);e-=1,t=void 0===t?2*e:t;var n,a,i,o,r=g.getModuleCount()*e+2*t,s=t,l=r-t,c=Array(e+1).join("██"),u=Array(e+1).join(" "),d="",h="";for(n=0;n<r;n+=1){for(i=Math.floor((n-s)/e),h="",a=0;a<r;a+=1)o=1,s<=a&&a<l&&s<=n&&n<l&&g.isDark(i,Math.floor((a-s)/e))&&(o=0),h+=o?c:u;for(i=0;i<e;i+=1)d+=h+"\n"}return d.substring(0,d.length-1)},g.renderTo2dContext=function(e,t){t=t||2;for(var n=g.getModuleCount(),a=0;a<n;a++)for(var i=0;i<n;i++)e.fillStyle=g.isDark(a,i)?"black":"white",e.fillRect(a*t,i*t,t,t)},g};e.stringToBytes=(e.stringToBytesFuncs={default:function(e){for(var t=[],n=0;n<e.length;n+=1){var a=e.charCodeAt(n);t.push(255&a)}return t}}).default,e.createStringToBytes=function(e,t){var n=function(){for(var n=g(e),a=function(){var e=n.read();if(-1==e)throw"eof";return e},i=0,o={};;){var r=n.read();if(-1==r)break;var s=a(),l=a()<<8|a();o[String.fromCharCode(r<<8|s)]=l,i+=1}if(i!=t)throw i+" != "+t;return o}(),a="?".charCodeAt(0);return function(e){for(var t=[],i=0;i<e.length;i+=1){var o=e.charCodeAt(i);if(o<128)t.push(o);else{var r=n[e.charAt(i)];"number"==typeof r?(255&r)==r?t.push(r):(t.push(r>>>8),t.push(255&r)):t.push(a)}}return t}};var t,n,a,i,o,r={L:1,M:0,Q:3,H:2},s=(t=[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],n=1335,a=7973,o=function(e){for(var t=0;0!=e;)t+=1,e>>>=1;return t},(i={}).getBCHTypeInfo=function(e){for(var t=e<<10;o(t)-o(n)>=0;)t^=n<<o(t)-o(n);return 21522^(e<<10|t)},i.getBCHTypeNumber=function(e){for(var t=e<<12;o(t)-o(a)>=0;)t^=a<<o(t)-o(a);return e<<12|t},i.getPatternPosition=function(e){return t[e-1]},i.getMaskFunction=function(e){switch(e){case 0:return function(e,t){return(e+t)%2==0};case 1:return function(e,t){return e%2==0};case 2:return function(e,t){return t%3==0};case 3:return function(e,t){return(e+t)%3==0};case 4:return function(e,t){return(Math.floor(e/2)+Math.floor(t/3))%2==0};case 5:return function(e,t){return e*t%2+e*t%3==0};case 6:return function(e,t){return(e*t%2+e*t%3)%2==0};case 7:return function(e,t){return(e*t%3+(e+t)%2)%2==0};default:throw"bad maskPattern:"+e}},i.getErrorCorrectPolynomial=function(e){for(var t=c([1],0),n=0;n<e;n+=1)t=t.multiply(c([1,l.gexp(n)],0));return t},i.getLengthInBits=function(e,t){if(1<=t&&t<10)switch(e){case 1:return 10;case 2:return 9;case 4:case 8:return 8;default:throw"mode:"+e}else if(t<27)switch(e){case 1:return 12;case 2:return 11;case 4:return 16;case 8:return 10;default:throw"mode:"+e}else{if(!(t<41))throw"type:"+t;switch(e){case 1:return 14;case 2:return 13;case 4:return 16;case 8:return 12;default:throw"mode:"+e}}},i.getLostPoint=function(e){for(var t=e.getModuleCount(),n=0,a=0;a<t;a+=1)for(var i=0;i<t;i+=1){for(var o=0,r=e.isDark(a,i),s=-1;s<=1;s+=1)if(!(a+s<0||t<=a+s))for(var l=-1;l<=1;l+=1)i+l<0||t<=i+l||0==s&&0==l||r==e.isDark(a+s,i+l)&&(o+=1);o>5&&(n+=3+o-5)}for(a=0;a<t-1;a+=1)for(i=0;i<t-1;i+=1){var c=0;e.isDark(a,i)&&(c+=1),e.isDark(a+1,i)&&(c+=1),e.isDark(a,i+1)&&(c+=1),e.isDark(a+1,i+1)&&(c+=1),0!=c&&4!=c||(n+=3)}for(a=0;a<t;a+=1)for(i=0;i<t-6;i+=1)e.isDark(a,i)&&!e.isDark(a,i+1)&&e.isDark(a,i+2)&&e.isDark(a,i+3)&&e.isDark(a,i+4)&&!e.isDark(a,i+5)&&e.isDark(a,i+6)&&(n+=40);for(i=0;i<t;i+=1)for(a=0;a<t-6;a+=1)e.isDark(a,i)&&!e.isDark(a+1,i)&&e.isDark(a+2,i)&&e.isDark(a+3,i)&&e.isDark(a+4,i)&&!e.isDark(a+5,i)&&e.isDark(a+6,i)&&(n+=40);var u=0;for(i=0;i<t;i+=1)for(a=0;a<t;a+=1)e.isDark(a,i)&&(u+=1);return n+Math.abs(100*u/t/t-50)/5*10},i),l=function(){for(var e=new Array(256),t=new Array(256),n=0;n<8;n+=1)e[n]=1<<n;for(n=8;n<256;n+=1)e[n]=e[n-4]^e[n-5]^e[n-6]^e[n-8];for(n=0;n<255;n+=1)t[e[n]]=n;return{glog:function(e){if(e<1)throw"glog("+e+")";return t[e]},gexp:function(t){for(;t<0;)t+=255;for(;t>=256;)t-=255;return e[t]}}}();function c(e,t){if(void 0===e.length)throw e.length+"/"+t;var n=function(){for(var n=0;n<e.length&&0==e[n];)n+=1;for(var a=new Array(e.length-n+t),i=0;i<e.length-n;i+=1)a[i]=e[i+n];return a}(),a={getAt:function(e){return n[e]},getLength:function(){return n.length},multiply:function(e){for(var t=new Array(a.getLength()+e.getLength()-1),n=0;n<a.getLength();n+=1)for(var i=0;i<e.getLength();i+=1)t[n+i]^=l.gexp(l.glog(a.getAt(n))+l.glog(e.getAt(i)));return c(t,0)},mod:function(e){if(a.getLength()-e.getLength()<0)return a;for(var t=l.glog(a.getAt(0))-l.glog(e.getAt(0)),n=new Array(a.getLength()),i=0;i<a.getLength();i+=1)n[i]=a.getAt(i);for(i=0;i<e.getLength();i+=1)n[i]^=l.gexp(l.glog(e.getAt(i))+t);return c(n,0).mod(e)}};return a}var u=function(){var e=[[1,26,19],[1,26,16],[1,26,13],[1,26,9],[1,44,34],[1,44,28],[1,44,22],[1,44,16],[1,70,55],[1,70,44],[2,35,17],[2,35,13],[1,100,80],[2,50,32],[2,50,24],[4,25,9],[1,134,108],[2,67,43],[2,33,15,2,34,16],[2,33,11,2,34,12],[2,86,68],[4,43,27],[4,43,19],[4,43,15],[2,98,78],[4,49,31],[2,32,14,4,33,15],[4,39,13,1,40,14],[2,121,97],[2,60,38,2,61,39],[4,40,18,2,41,19],[4,40,14,2,41,15],[2,146,116],[3,58,36,2,59,37],[4,36,16,4,37,17],[4,36,12,4,37,13],[2,86,68,2,87,69],[4,69,43,1,70,44],[6,43,19,2,44,20],[6,43,15,2,44,16],[4,101,81],[1,80,50,4,81,51],[4,50,22,4,51,23],[3,36,12,8,37,13],[2,116,92,2,117,93],[6,58,36,2,59,37],[4,46,20,6,47,21],[7,42,14,4,43,15],[4,133,107],[8,59,37,1,60,38],[8,44,20,4,45,21],[12,33,11,4,34,12],[3,145,115,1,146,116],[4,64,40,5,65,41],[11,36,16,5,37,17],[11,36,12,5,37,13],[5,109,87,1,110,88],[5,65,41,5,66,42],[5,54,24,7,55,25],[11,36,12,7,37,13],[5,122,98,1,123,99],[7,73,45,3,74,46],[15,43,19,2,44,20],[3,45,15,13,46,16],[1,135,107,5,136,108],[10,74,46,1,75,47],[1,50,22,15,51,23],[2,42,14,17,43,15],[5,150,120,1,151,121],[9,69,43,4,70,44],[17,50,22,1,51,23],[2,42,14,19,43,15],[3,141,113,4,142,114],[3,70,44,11,71,45],[17,47,21,4,48,22],[9,39,13,16,40,14],[3,135,107,5,136,108],[3,67,41,13,68,42],[15,54,24,5,55,25],[15,43,15,10,44,16],[4,144,116,4,145,117],[17,68,42],[17,50,22,6,51,23],[19,46,16,6,47,17],[2,139,111,7,140,112],[17,74,46],[7,54,24,16,55,25],[34,37,13],[4,151,121,5,152,122],[4,75,47,14,76,48],[11,54,24,14,55,25],[16,45,15,14,46,16],[6,147,117,4,148,118],[6,73,45,14,74,46],[11,54,24,16,55,25],[30,46,16,2,47,17],[8,132,106,4,133,107],[8,75,47,13,76,48],[7,54,24,22,55,25],[22,45,15,13,46,16],[10,142,114,2,143,115],[19,74,46,4,75,47],[28,50,22,6,51,23],[33,46,16,4,47,17],[8,152,122,4,153,123],[22,73,45,3,74,46],[8,53,23,26,54,24],[12,45,15,28,46,16],[3,147,117,10,148,118],[3,73,45,23,74,46],[4,54,24,31,55,25],[11,45,15,31,46,16],[7,146,116,7,147,117],[21,73,45,7,74,46],[1,53,23,37,54,24],[19,45,15,26,46,16],[5,145,115,10,146,116],[19,75,47,10,76,48],[15,54,24,25,55,25],[23,45,15,25,46,16],[13,145,115,3,146,116],[2,74,46,29,75,47],[42,54,24,1,55,25],[23,45,15,28,46,16],[17,145,115],[10,74,46,23,75,47],[10,54,24,35,55,25],[19,45,15,35,46,16],[17,145,115,1,146,116],[14,74,46,21,75,47],[29,54,24,19,55,25],[11,45,15,46,46,16],[13,145,115,6,146,116],[14,74,46,23,75,47],[44,54,24,7,55,25],[59,46,16,1,47,17],[12,151,121,7,152,122],[12,75,47,26,76,48],[39,54,24,14,55,25],[22,45,15,41,46,16],[6,151,121,14,152,122],[6,75,47,34,76,48],[46,54,24,10,55,25],[2,45,15,64,46,16],[17,152,122,4,153,123],[29,74,46,14,75,47],[49,54,24,10,55,25],[24,45,15,46,46,16],[4,152,122,18,153,123],[13,74,46,32,75,47],[48,54,24,14,55,25],[42,45,15,32,46,16],[20,147,117,4,148,118],[40,75,47,7,76,48],[43,54,24,22,55,25],[10,45,15,67,46,16],[19,148,118,6,149,119],[18,75,47,31,76,48],[34,54,24,34,55,25],[20,45,15,61,46,16]],t=function(e,t){var n={};return n.totalCount=e,n.dataCount=t,n},n={getRSBlocks:function(n,a){var i=function(t,n){switch(n){case r.L:return e[4*(t-1)+0];case r.M:return e[4*(t-1)+1];case r.Q:return e[4*(t-1)+2];case r.H:return e[4*(t-1)+3];default:return}}(n,a);if(void 0===i)throw"bad rs block @ typeNumber:"+n+"/errorCorrectionLevel:"+a;for(var o=i.length/3,s=[],l=0;l<o;l+=1)for(var c=i[3*l+0],u=i[3*l+1],d=i[3*l+2],h=0;h<c;h+=1)s.push(t(u,d));return s}};return n}(),d=function(){var e=[],t=0,n={getBuffer:function(){return e},getAt:function(t){var n=Math.floor(t/8);return 1==(e[n]>>>7-t%8&1)},put:function(e,t){for(var a=0;a<t;a+=1)n.putBit(1==(e>>>t-a-1&1))},getLengthInBits:function(){return t},putBit:function(n){var a=Math.floor(t/8);e.length<=a&&e.push(0),n&&(e[a]|=128>>>t%8),t+=1}};return n},h=function(e){var t=e,n={getMode:function(){return 1},getLength:function(e){return t.length},write:function(e){for(var n=t,i=0;i+2<n.length;)e.put(a(n.substring(i,i+3)),10),i+=3;i<n.length&&(n.length-i==1?e.put(a(n.substring(i,i+1)),4):n.length-i==2&&e.put(a(n.substring(i,i+2)),7))}},a=function(e){for(var t=0,n=0;n<e.length;n+=1)t=10*t+i(e.charAt(n));return t},i=function(e){if("0"<=e&&e<="9")return e.charCodeAt(0)-"0".charCodeAt(0);throw"illegal char :"+e};return n},p=function(e){var t=e,n={getMode:function(){return 2},getLength:function(e){return t.length},write:function(e){for(var n=t,i=0;i+1<n.length;)e.put(45*a(n.charAt(i))+a(n.charAt(i+1)),11),i+=2;i<n.length&&e.put(a(n.charAt(i)),6)}},a=function(e){if("0"<=e&&e<="9")return e.charCodeAt(0)-"0".charCodeAt(0);if("A"<=e&&e<="Z")return e.charCodeAt(0)-"A".charCodeAt(0)+10;switch(e){case" ":return 36;case"$":return 37;case"%":return 38;case"*":return 39;case"+":return 40;case"-":return 41;case".":return 42;case"/":return 43;case":":return 44;default:throw"illegal char :"+e}};return n},f=function(t){var n=e.stringToBytes(t);return{getMode:function(){return 4},getLength:function(e){return n.length},write:function(e){for(var t=0;t<n.length;t+=1)e.put(n[t],8)}}},v=function(t){var n=e.stringToBytesFuncs.SJIS;if(!n)throw"sjis not supported.";!function(){var e=n("友");if(2!=e.length||38726!=(e[0]<<8|e[1]))throw"sjis not supported."}();var a=n(t),i={getMode:function(){return 8},getLength:function(e){return~~(a.length/2)},write:function(e){for(var t=a,n=0;n+1<t.length;){var i=(255&t[n])<<8|255&t[n+1];if(33088<=i&&i<=40956)i-=33088;else{if(!(57408<=i&&i<=60351))throw"illegal char at "+(n+1)+"/"+i;i-=49472}i=192*(i>>>8&255)+(255&i),e.put(i,13),n+=2}if(n<t.length)throw"illegal char at "+(n+1)}};return i},m=function(){var e=[],t={writeByte:function(t){e.push(255&t)},writeShort:function(e){t.writeByte(e),t.writeByte(e>>>8)},writeBytes:function(e,n,a){n=n||0,a=a||e.length;for(var i=0;i<a;i+=1)t.writeByte(e[i+n])},writeString:function(e){for(var n=0;n<e.length;n+=1)t.writeByte(e.charCodeAt(n))},toByteArray:function(){return e},toString:function(){var t="";t+="[";for(var n=0;n<e.length;n+=1)n>0&&(t+=","),t+=e[n];return t+"]"}};return t},g=function(e){var t=e,n=0,a=0,i=0,o={read:function(){for(;i<8;){if(n>=t.length){if(0==i)return-1;throw"unexpected end of file./"+i}var e=t.charAt(n);if(n+=1,"="==e)return i=0,-1;e.match(/^\s$/)||(a=a<<6|r(e.charCodeAt(0)),i+=6)}var o=a>>>i-8&255;return i-=8,o}},r=function(e){if(65<=e&&e<=90)return e-65;if(97<=e&&e<=122)return e-97+26;if(48<=e&&e<=57)return e-48+52;if(43==e)return 62;if(47==e)return 63;throw"c:"+e};return o},b=function(e,t,n){for(var a=function(e,t){var n=e,a=t,i=new Array(e*t),o={setPixel:function(e,t,a){i[t*n+e]=a},write:function(e){e.writeString("GIF87a"),e.writeShort(n),e.writeShort(a),e.writeByte(128),e.writeByte(0),e.writeByte(0),e.writeByte(0),e.writeByte(0),e.writeByte(0),e.writeByte(255),e.writeByte(255),e.writeByte(255),e.writeString(","),e.writeShort(0),e.writeShort(0),e.writeShort(n),e.writeShort(a),e.writeByte(0);var t=r(2);e.writeByte(2);for(var i=0;t.length-i>255;)e.writeByte(255),e.writeBytes(t,i,255),i+=255;e.writeByte(t.length-i),e.writeBytes(t,i,t.length-i),e.writeByte(0),e.writeString(";")}},r=function(e){for(var t=1<<e,n=1+(1<<e),a=e+1,o=s(),r=0;r<t;r+=1)o.add(String.fromCharCode(r));o.add(String.fromCharCode(t)),o.add(String.fromCharCode(n));var l,c,u,d=m(),h=(l=d,c=0,u=0,{write:function(e,t){if(e>>>t!=0)throw"length over";for(;c+t>=8;)l.writeByte(255&(e<<c|u)),t-=8-c,e>>>=8-c,u=0,c=0;u|=e<<c,c+=t},flush:function(){c>0&&l.writeByte(u)}});h.write(t,a);var p=0,f=String.fromCharCode(i[p]);for(p+=1;p<i.length;){var v=String.fromCharCode(i[p]);p+=1,o.contains(f+v)?f+=v:(h.write(o.indexOf(f),a),o.size()<4095&&(o.size()==1<<a&&(a+=1),o.add(f+v)),f=v)}return h.write(o.indexOf(f),a),h.write(n,a),h.flush(),d.toByteArray()},s=function(){var e={},t=0,n={add:function(a){if(n.contains(a))throw"dup key:"+a;e[a]=t,t+=1},size:function(){return t},indexOf:function(t){return e[t]},contains:function(t){return void 0!==e[t]}};return n};return o}(e,t),i=0;i<t;i+=1)for(var o=0;o<e;o+=1)a.setPixel(o,i,n(o,i));var r=m();a.write(r);for(var s=function(){var e=0,t=0,n=0,a="",i={},o=function(e){a+=String.fromCharCode(r(63&e))},r=function(e){if(e<0);else{if(e<26)return 65+e;if(e<52)return e-26+97;if(e<62)return e-52+48;if(62==e)return 43;if(63==e)return 47}throw"n:"+e};return i.writeByte=function(a){for(e=e<<8|255&a,t+=8,n+=1;t>=6;)o(e>>>t-6),t-=6},i.flush=function(){if(t>0&&(o(e<<6-t),e=0,t=0),n%3!=0)for(var i=3-n%3,r=0;r<i;r+=1)a+="="},i.toString=function(){return a},i}(),l=r.toByteArray(),c=0;c<l.length;c+=1)s.writeByte(l[c]);return s.flush(),"data:image/gif;base64,"+s};return e}();i.stringToBytesFuncs["UTF-8"]=function(e){return function(e){for(var t=[],n=0;n<e.length;n++){var a=e.charCodeAt(n);a<128?t.push(a):a<2048?t.push(192|a>>6,128|63&a):a<55296||a>=57344?t.push(224|a>>12,128|a>>6&63,128|63&a):(n++,a=65536+((1023&a)<<10|1023&e.charCodeAt(n)),t.push(240|a>>18,128|a>>12&63,128|a>>6&63,128|63&a))}return t}(e)},void 0===(a="function"==typeof(n=function(){return i})?n.apply(t,[]):n)||(e.exports=a)}},t={};function n(a){var i=t[a];if(void 0!==i)return i.exports;var o=t[a]={exports:{}};return e[a](o,o.exports,n),o.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var a in t)n.o(t,a)&&!n.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:t[a]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var a={};return(()=>{n.d(a,{default:()=>k});const e=e=>!!e&&"object"==typeof e&&!Array.isArray(e);function t(n){for(var a=arguments.length,i=new Array(a>1?a-1:0),o=1;o<a;o++)i[o-1]=arguments[o];if(!i.length)return n;const r=i.shift();return void 0!==r&&e(n)&&e(r)?(n=Object.assign({},n),Object.keys(r).forEach(a=>{const i=n[a],o=r[a];Array.isArray(i)&&Array.isArray(o)?n[a]=o:e(i)&&e(o)?n[a]=t(Object.assign({},i),o):n[a]=o}),t(n,...i)):n}function i(e,t){const n=document.createElement("a");n.download=t,n.href=e,document.body.appendChild(n),n.click(),document.body.removeChild(n)}const o={L:.07,M:.15,Q:.25,H:.3};class r{constructor(e){let{svg:t,type:n,window:a}=e;this._svg=t,this._type=n,this._window=a}draw(e,t,n,a){let i;switch(this._type){case"dots":i=this._drawDot;break;case"classy":i=this._drawClassy;break;case"classy-rounded":i=this._drawClassyRounded;break;case"rounded":i=this._drawRounded;break;case"extra-rounded":i=this._drawExtraRounded;break;default:i=this._drawSquare}i.call(this,{x:e,y:t,size:n,getNeighbor:a})}_rotateFigure(e){let{x:t,y:n,size:a,rotation:i=0,draw:o}=e;var r;const s=t+a/2,l=n+a/2;o(),null===(r=this._element)||void 0===r||r.setAttribute("transform","rotate(".concat(180*i/Math.PI,",").concat(s,",").concat(l,")"))}_basicDot(e){const{size:t,x:n,y:a}=e;this._rotateFigure(Object.assign(Object.assign({},e),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","circle"),this._element.setAttribute("cx",String(n+t/2)),this._element.setAttribute("cy",String(a+t/2)),this._element.setAttribute("r",String(t/2))}}))}_basicSquare(e){const{size:t,x:n,y:a}=e;this._rotateFigure(Object.assign(Object.assign({},e),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","rect"),this._element.setAttribute("x",String(n)),this._element.setAttribute("y",String(a)),this._element.setAttribute("width",String(t)),this._element.setAttribute("height",String(t))}}))}_basicSideRounded(e){const{size:t,x:n,y:a}=e;this._rotateFigure(Object.assign(Object.assign({},e),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","path"),this._element.setAttribute("d","M ".concat(n," ").concat(a,"v ").concat(t,"h ")+t/2+"a ".concat(t/2," ").concat(t/2,", 0, 0, 0, 0 ").concat(-t))}}))}_basicCornerRounded(e){const{size:t,x:n,y:a}=e;this._rotateFigure(Object.assign(Object.assign({},e),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","path"),this._element.setAttribute("d","M ".concat(n," ").concat(a,"v ").concat(t,"h ").concat(t,"v ")+-t/2+"a ".concat(t/2," ").concat(t/2,", 0, 0, 0, ").concat(-t/2," ").concat(-t/2))}}))}_basicCornerExtraRounded(e){const{size:t,x:n,y:a}=e;this._rotateFigure(Object.assign(Object.assign({},e),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","path"),this._element.setAttribute("d","M ".concat(n," ").concat(a,"v ").concat(t,"h ").concat(t,"a ").concat(t," ").concat(t,", 0, 0, 0, ").concat(-t," ").concat(-t))}}))}_basicCornersRounded(e){const{size:t,x:n,y:a}=e;this._rotateFigure(Object.assign(Object.assign({},e),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","path"),this._element.setAttribute("d","M ".concat(n," ").concat(a,"v ")+t/2+"a ".concat(t/2," ").concat(t/2,", 0, 0, 0, ").concat(t/2," ").concat(t/2,"h ")+t/2+"v "+-t/2+"a ".concat(t/2," ").concat(t/2,", 0, 0, 0, ").concat(-t/2," ").concat(-t/2))}}))}_drawDot(e){let{x:t,y:n,size:a}=e;this._basicDot({x:t,y:n,size:a,rotation:0})}_drawSquare(e){let{x:t,y:n,size:a}=e;this._basicSquare({x:t,y:n,size:a,rotation:0})}_drawRounded(e){let{x:t,y:n,size:a,getNeighbor:i}=e;const o=i?+i(-1,0):0,r=i?+i(1,0):0,s=i?+i(0,-1):0,l=i?+i(0,1):0,c=o+r+s+l;if(0!==c)if(c>2||o&&r||s&&l)this._basicSquare({x:t,y:n,size:a,rotation:0});else{if(2===c){let e=0;return o&&s?e=Math.PI/2:s&&r?e=Math.PI:r&&l&&(e=-Math.PI/2),void this._basicCornerRounded({x:t,y:n,size:a,rotation:e})}if(1===c){let e=0;return s?e=Math.PI/2:r?e=Math.PI:l&&(e=-Math.PI/2),void this._basicSideRounded({x:t,y:n,size:a,rotation:e})}}else this._basicDot({x:t,y:n,size:a,rotation:0})}_drawExtraRounded(e){let{x:t,y:n,size:a,getNeighbor:i}=e;const o=i?+i(-1,0):0,r=i?+i(1,0):0,s=i?+i(0,-1):0,l=i?+i(0,1):0,c=o+r+s+l;if(0!==c)if(c>2||o&&r||s&&l)this._basicSquare({x:t,y:n,size:a,rotation:0});else{if(2===c){let e=0;return o&&s?e=Math.PI/2:s&&r?e=Math.PI:r&&l&&(e=-Math.PI/2),void this._basicCornerExtraRounded({x:t,y:n,size:a,rotation:e})}if(1===c){let e=0;return s?e=Math.PI/2:r?e=Math.PI:l&&(e=-Math.PI/2),void this._basicSideRounded({x:t,y:n,size:a,rotation:e})}}else this._basicDot({x:t,y:n,size:a,rotation:0})}_drawClassy(e){let{x:t,y:n,size:a,getNeighbor:i}=e;const o=i?+i(-1,0):0,r=i?+i(1,0):0,s=i?+i(0,-1):0,l=i?+i(0,1):0;0!==o+r+s+l?o||s?r||l?this._basicSquare({x:t,y:n,size:a,rotation:0}):this._basicCornerRounded({x:t,y:n,size:a,rotation:Math.PI/2}):this._basicCornerRounded({x:t,y:n,size:a,rotation:-Math.PI/2}):this._basicCornersRounded({x:t,y:n,size:a,rotation:Math.PI/2})}_drawClassyRounded(e){let{x:t,y:n,size:a,getNeighbor:i}=e;const o=i?+i(-1,0):0,r=i?+i(1,0):0,s=i?+i(0,-1):0,l=i?+i(0,1):0;0!==o+r+s+l?o||s?r||l?this._basicSquare({x:t,y:n,size:a,rotation:0}):this._basicCornerExtraRounded({x:t,y:n,size:a,rotation:Math.PI/2}):this._basicCornerExtraRounded({x:t,y:n,size:a,rotation:-Math.PI/2}):this._basicCornersRounded({x:t,y:n,size:a,rotation:Math.PI/2})}}const s={dot:"dot",square:"square",extraRounded:"extra-rounded"},l=Object.values(s);class c{constructor(e){let{svg:t,type:n,window:a}=e;this._svg=t,this._type=n,this._window=a}draw(e,t,n,a){let i;switch(this._type){case s.square:i=this._drawSquare;break;case s.extraRounded:i=this._drawExtraRounded;break;default:i=this._drawDot}i.call(this,{x:e,y:t,size:n,rotation:a})}_rotateFigure(e){let{x:t,y:n,size:a,rotation:i=0,draw:o}=e;var r;const s=t+a/2,l=n+a/2;o(),null===(r=this._element)||void 0===r||r.setAttribute("transform","rotate(".concat(180*i/Math.PI,",").concat(s,",").concat(l,")"))}_basicDot(e){const{size:t,x:n,y:a}=e,i=t/7;this._rotateFigure(Object.assign(Object.assign({},e),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","path"),this._element.setAttribute("clip-rule","evenodd"),this._element.setAttribute("d","M ".concat(n+t/2," ").concat(a,"a ").concat(t/2," ").concat(t/2," 0 1 0 0.1 0zm 0 ").concat(i,"a ").concat(t/2-i," ").concat(t/2-i," 0 1 1 -0.1 0Z"))}}))}_basicSquare(e){const{size:t,x:n,y:a}=e,i=t/7;this._rotateFigure(Object.assign(Object.assign({},e),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","path"),this._element.setAttribute("clip-rule","evenodd"),this._element.setAttribute("d","M ".concat(n," ").concat(a,"v ").concat(t,"h ").concat(t,"v ")+-t+"z"+"M ".concat(n+i," ").concat(a+i,"h ")+(t-2*i)+"v "+(t-2*i)+"h "+(2*i-t)+"z")}}))}_basicExtraRounded(e){const{size:t,x:n,y:a}=e,i=t/7;this._rotateFigure(Object.assign(Object.assign({},e),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","path"),this._element.setAttribute("clip-rule","evenodd"),this._element.setAttribute("d","M ".concat(n," ").concat(a+2.5*i,"v ")+2*i+"a ".concat(2.5*i," ").concat(2.5*i,", 0, 0, 0, ").concat(2.5*i," ").concat(2.5*i,"h ")+2*i+"a ".concat(2.5*i," ").concat(2.5*i,", 0, 0, 0, ").concat(2.5*i," ").concat(2.5*-i,"v ")+-2*i+"a ".concat(2.5*i," ").concat(2.5*i,", 0, 0, 0, ").concat(2.5*-i," ").concat(2.5*-i,"h ")+-2*i+"a ".concat(2.5*i," ").concat(2.5*i,", 0, 0, 0, ").concat(2.5*-i," ").concat(2.5*i)+"M ".concat(n+2.5*i," ").concat(a+i,"h ")+2*i+"a ".concat(1.5*i," ").concat(1.5*i,", 0, 0, 1, ").concat(1.5*i," ").concat(1.5*i,"v ")+2*i+"a ".concat(1.5*i," ").concat(1.5*i,", 0, 0, 1, ").concat(1.5*-i," ").concat(1.5*i,"h ")+-2*i+"a ".concat(1.5*i," ").concat(1.5*i,", 0, 0, 1, ").concat(1.5*-i," ").concat(1.5*-i,"v ")+-2*i+"a ".concat(1.5*i," ").concat(1.5*i,", 0, 0, 1, ").concat(1.5*i," ").concat(1.5*-i))}}))}_drawDot(e){let{x:t,y:n,size:a,rotation:i}=e;this._basicDot({x:t,y:n,size:a,rotation:i})}_drawSquare(e){let{x:t,y:n,size:a,rotation:i}=e;this._basicSquare({x:t,y:n,size:a,rotation:i})}_drawExtraRounded(e){let{x:t,y:n,size:a,rotation:i}=e;this._basicExtraRounded({x:t,y:n,size:a,rotation:i})}}const u={dot:"dot",square:"square"},d=Object.values(u);class h{constructor(e){let{svg:t,type:n,window:a}=e;this._svg=t,this._type=n,this._window=a}draw(e,t,n,a){let i;i=this._type===u.square?this._drawSquare:this._drawDot,i.call(this,{x:e,y:t,size:n,rotation:a})}_rotateFigure(e){let{x:t,y:n,size:a,rotation:i=0,draw:o}=e;var r;const s=t+a/2,l=n+a/2;o(),null===(r=this._element)||void 0===r||r.setAttribute("transform","rotate(".concat(180*i/Math.PI,",").concat(s,",").concat(l,")"))}_basicDot(e){const{size:t,x:n,y:a}=e;this._rotateFigure(Object.assign(Object.assign({},e),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","circle"),this._element.setAttribute("cx",String(n+t/2)),this._element.setAttribute("cy",String(a+t/2)),this._element.setAttribute("r",String(t/2))}}))}_basicSquare(e){const{size:t,x:n,y:a}=e;this._rotateFigure(Object.assign(Object.assign({},e),{draw:()=>{this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","rect"),this._element.setAttribute("x",String(n)),this._element.setAttribute("y",String(a)),this._element.setAttribute("width",String(t)),this._element.setAttribute("height",String(t))}}))}_drawDot(e){let{x:t,y:n,size:a,rotation:i}=e;this._basicDot({x:t,y:n,size:a,rotation:i})}_drawSquare(e){let{x:t,y:n,size:a,rotation:i}=e;this._basicSquare({x:t,y:n,size:a,rotation:i})}}const p="circle",f=[[1,1,1,1,1,1,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,0,0,0,0,0,1],[1,1,1,1,1,1,1]],v=[[0,0,0,0,0,0,0],[0,0,0,0,0,0,0],[0,0,1,1,1,0,0],[0,0,1,1,1,0,0],[0,0,1,1,1,0,0],[0,0,0,0,0,0,0],[0,0,0,0,0,0,0]];class m{constructor(e,t){this._roundSize=e=>this._options.dotsOptions.roundSize?Math.floor(e):e,this._window=t,this._element=this._window.document.createElementNS("http://www.w3.org/2000/svg","svg"),this._element.setAttribute("width",String(e.width)),this._element.setAttribute("height",String(e.height)),this._element.setAttribute("xmlns:xlink","http://www.w3.org/1999/xlink"),e.dotsOptions.roundSize||this._element.setAttribute("shape-rendering","crispEdges"),this._element.setAttribute("viewBox","0 0 ".concat(e.width," ").concat(e.height)),this._defs=this._window.document.createElementNS("http://www.w3.org/2000/svg","defs"),this._element.appendChild(this._defs),this._imageUri=e.image,this._instanceId=m.instanceCount++,this._options=e}get width(){return this._options.width}get height(){return this._options.height}getElement(){return this._element}async drawQR(e){const t=e.getModuleCount(),n=Math.min(this._options.width,this._options.height)-2*this._options.margin,a=this._options.shape===p?n/Math.sqrt(2):n,i=this._roundSize(a/t);let r={hideXDots:0,hideYDots:0,width:0,height:0};if(this._qr=e,this._options.image){if(await this.loadImage(),!this._image)return;const{imageOptions:e,qrOptions:n}=this._options,a=e.imageSize*o[n.errorCorrectionLevel],s=Math.floor(a*t*t);r=function(e){let{originalHeight:t,originalWidth:n,maxHiddenDots:a,maxHiddenAxisDots:i,dotSize:o}=e;const r={x:0,y:0},s={x:0,y:0};if(t<=0||n<=0||a<=0||o<=0)return{height:0,width:0,hideYDots:0,hideXDots:0};const l=t/n;return r.x=Math.floor(Math.sqrt(a/l)),r.x<=0&&(r.x=1),i&&i<r.x&&(r.x=i),r.x%2==0&&r.x--,s.x=r.x*o,r.y=1+2*Math.ceil((r.x*l-1)/2),s.y=Math.round(s.x*l),(r.y*r.x>a||i&&i<r.y)&&(i&&i<r.y?(r.y=i,r.y%2==0&&r.x--):r.y-=2,s.y=r.y*o,r.x=1+2*Math.ceil((r.y/l-1)/2),s.x=Math.round(s.y/l)),{height:s.y,width:s.x,hideYDots:r.y,hideXDots:r.x}}({originalWidth:this._image.width,originalHeight:this._image.height,maxHiddenDots:s,maxHiddenAxisDots:t-14,dotSize:i})}this.drawBackground(),this.drawDots((e,n)=>{var a,i,o,s,l,c;return!(this._options.imageOptions.hideBackgroundDots&&e>=(t-r.hideYDots)/2&&e<(t+r.hideYDots)/2&&n>=(t-r.hideXDots)/2&&n<(t+r.hideXDots)/2||(null===(a=f[e])||void 0===a?void 0:a[n])||(null===(i=f[e-t+7])||void 0===i?void 0:i[n])||(null===(o=f[e])||void 0===o?void 0:o[n-t+7])||(null===(s=v[e])||void 0===s?void 0:s[n])||(null===(l=v[e-t+7])||void 0===l?void 0:l[n])||(null===(c=v[e])||void 0===c?void 0:c[n-t+7]))}),this.drawCorners(),this._options.image&&await this.drawImage({width:r.width,height:r.height,count:t,dotSize:i})}drawBackground(){var e,t,n;const a=this._element,i=this._options;if(a){const a=null===(e=i.backgroundOptions)||void 0===e?void 0:e.gradient,o=null===(t=i.backgroundOptions)||void 0===t?void 0:t.color;let r=i.height,s=i.width;if(a||o){const e=this._window.document.createElementNS("http://www.w3.org/2000/svg","rect");this._backgroundClipPath=this._window.document.createElementNS("http://www.w3.org/2000/svg","clipPath"),this._backgroundClipPath.setAttribute("id","clip-path-background-color-".concat(this._instanceId)),this._defs.appendChild(this._backgroundClipPath),(null===(n=i.backgroundOptions)||void 0===n?void 0:n.round)&&(r=s=Math.min(i.width,i.height),e.setAttribute("rx",String(r/2*i.backgroundOptions.round))),e.setAttribute("x",String(this._roundSize((i.width-s)/2))),e.setAttribute("y",String(this._roundSize((i.height-r)/2))),e.setAttribute("width",String(s)),e.setAttribute("height",String(r)),this._backgroundClipPath.appendChild(e),this._createColor({options:a,color:o,additionalRotation:0,x:0,y:0,height:i.height,width:i.width,name:"background-color-".concat(this._instanceId)})}}}drawDots(e){var t,n;if(!this._qr)throw"QR code is not defined";const a=this._options,i=this._qr.getModuleCount();if(i>a.width||i>a.height)throw"The canvas is too small.";const o=Math.min(a.width,a.height)-2*a.margin,s=a.shape===p?o/Math.sqrt(2):o,l=this._roundSize(s/i),c=this._roundSize((a.width-i*l)/2),u=this._roundSize((a.height-i*l)/2),d=new r({svg:this._element,type:a.dotsOptions.type,window:this._window});this._dotsClipPath=this._window.document.createElementNS("http://www.w3.org/2000/svg","clipPath"),this._dotsClipPath.setAttribute("id","clip-path-dot-color-".concat(this._instanceId)),this._defs.appendChild(this._dotsClipPath),this._createColor({options:null===(t=a.dotsOptions)||void 0===t?void 0:t.gradient,color:a.dotsOptions.color,additionalRotation:0,x:0,y:0,height:a.height,width:a.width,name:"dot-color-".concat(this._instanceId)});for(let t=0;t<i;t++)for(let a=0;a<i;a++)e&&!e(t,a)||(null===(n=this._qr)||void 0===n?void 0:n.isDark(t,a))&&(d.draw(c+a*l,u+t*l,l,(n,o)=>!(a+n<0||t+o<0||a+n>=i||t+o>=i)&&!(e&&!e(t+o,a+n))&&!!this._qr&&this._qr.isDark(t+o,a+n)),d._element&&this._dotsClipPath&&this._dotsClipPath.appendChild(d._element));if(a.shape===p){const e=this._roundSize((o/l-i)/2),t=i+2*e,n=c-e*l,a=u-e*l,r=[],s=this._roundSize(t/2);for(let n=0;n<t;n++){r[n]=[];for(let a=0;a<t;a++)n>=e-1&&n<=t-e&&a>=e-1&&a<=t-e||Math.sqrt((n-s)*(n-s)+(a-s)*(a-s))>s?r[n][a]=0:r[n][a]=this._qr.isDark(a-2*e<0?a:a>=i?a-2*e:a-e,n-2*e<0?n:n>=i?n-2*e:n-e)?1:0}for(let e=0;e<t;e++)for(let i=0;i<t;i++)r[e][i]&&(d.draw(n+i*l,a+e*l,l,(t,n)=>{var a;return!!(null===(a=r[e+n])||void 0===a?void 0:a[i+t])}),d._element&&this._dotsClipPath&&this._dotsClipPath.appendChild(d._element))}}drawCorners(){if(!this._qr)throw"QR code is not defined";const e=this._element,t=this._options;if(!e)throw"Element code is not defined";const n=this._qr.getModuleCount(),a=Math.min(t.width,t.height)-2*t.margin,i=t.shape===p?a/Math.sqrt(2):a,o=this._roundSize(i/n),s=7*o,u=3*o,m=this._roundSize((t.width-n*o)/2),g=this._roundSize((t.height-n*o)/2);[[0,0,0],[1,0,Math.PI/2],[0,1,-Math.PI/2]].forEach(e=>{let[a,i,p]=e;var b,y,w,_,E,P,N,I,A,k,C,S,M,x;const O=m+a*o*(n-7),D=g+i*o*(n-7);let T=this._dotsClipPath,j=this._dotsClipPath;if(((null===(b=t.cornersSquareOptions)||void 0===b?void 0:b.gradient)||(null===(y=t.cornersSquareOptions)||void 0===y?void 0:y.color))&&(T=this._window.document.createElementNS("http://www.w3.org/2000/svg","clipPath"),T.setAttribute("id","clip-path-corners-square-color-".concat(a,"-").concat(i,"-").concat(this._instanceId)),this._defs.appendChild(T),this._cornersSquareClipPath=this._cornersDotClipPath=j=T,this._createColor({options:null===(w=t.cornersSquareOptions)||void 0===w?void 0:w.gradient,color:null===(_=t.cornersSquareOptions)||void 0===_?void 0:_.color,additionalRotation:p,x:O,y:D,height:s,width:s,name:"corners-square-color-".concat(a,"-").concat(i,"-").concat(this._instanceId)})),(null===(E=t.cornersSquareOptions)||void 0===E?void 0:E.type)&&l.includes(t.cornersSquareOptions.type)){const e=new c({svg:this._element,type:t.cornersSquareOptions.type,window:this._window});e.draw(O,D,s,p),e._element&&T&&T.appendChild(e._element)}else{const e=new r({svg:this._element,type:(null===(P=t.cornersSquareOptions)||void 0===P?void 0:P.type)||t.dotsOptions.type,window:this._window});for(let t=0;t<f.length;t++)for(let n=0;n<f[t].length;n++)(null===(N=f[t])||void 0===N?void 0:N[n])&&(e.draw(O+n*o,D+t*o,o,(e,a)=>{var i;return!!(null===(i=f[t+a])||void 0===i?void 0:i[n+e])}),e._element&&T&&T.appendChild(e._element))}if(((null===(I=t.cornersDotOptions)||void 0===I?void 0:I.gradient)||(null===(A=t.cornersDotOptions)||void 0===A?void 0:A.color))&&(j=this._window.document.createElementNS("http://www.w3.org/2000/svg","clipPath"),j.setAttribute("id","clip-path-corners-dot-color-".concat(a,"-").concat(i,"-").concat(this._instanceId)),this._defs.appendChild(j),this._cornersDotClipPath=j,this._createColor({options:null===(k=t.cornersDotOptions)||void 0===k?void 0:k.gradient,color:null===(C=t.cornersDotOptions)||void 0===C?void 0:C.color,additionalRotation:p,x:O+2*o,y:D+2*o,height:u,width:u,name:"corners-dot-color-".concat(a,"-").concat(i,"-").concat(this._instanceId)})),(null===(S=t.cornersDotOptions)||void 0===S?void 0:S.type)&&d.includes(t.cornersDotOptions.type)){const e=new h({svg:this._element,type:t.cornersDotOptions.type,window:this._window});e.draw(O+2*o,D+2*o,u,p),e._element&&j&&j.appendChild(e._element)}else{const e=new r({svg:this._element,type:(null===(M=t.cornersDotOptions)||void 0===M?void 0:M.type)||t.dotsOptions.type,window:this._window});for(let t=0;t<v.length;t++)for(let n=0;n<v[t].length;n++)(null===(x=v[t])||void 0===x?void 0:x[n])&&(e.draw(O+n*o,D+t*o,o,(e,a)=>{var i;return!!(null===(i=v[t+a])||void 0===i?void 0:i[n+e])}),e._element&&j&&j.appendChild(e._element))}})}loadImage(){return new Promise((e,t)=>{var n;const a=this._options;if(!a.image)return t("Image is not defined");if(null===(n=a.nodeCanvas)||void 0===n?void 0:n.loadImage)a.nodeCanvas.loadImage(a.image).then(t=>{var n,i;if(this._image=t,this._options.imageOptions.saveAsBlob){const e=null===(n=a.nodeCanvas)||void 0===n?void 0:n.createCanvas(this._image.width,this._image.height);null===(i=null==e?void 0:e.getContext("2d"))||void 0===i||i.drawImage(t,0,0),this._imageUri=null==e?void 0:e.toDataURL()}e()}).catch(t);else{const t=new this._window.Image;"string"==typeof a.imageOptions.crossOrigin&&(t.crossOrigin=a.imageOptions.crossOrigin),this._image=t,t.onload=async()=>{this._options.imageOptions.saveAsBlob&&(this._imageUri=await async function(e,t){return new Promise(n=>{const a=new t.XMLHttpRequest;a.onload=function(){const e=new t.FileReader;e.onloadend=function(){n(e.result)},e.readAsDataURL(a.response)},a.open("GET",e),a.responseType="blob",a.send()})}(a.image||"",this._window)),e()},t.src=a.image}})}async drawImage(e){let{width:t,height:n,count:a,dotSize:i}=e;const o=this._options,r=this._roundSize((o.width-a*i)/2),s=this._roundSize((o.height-a*i)/2),l=r+this._roundSize(o.imageOptions.margin+(a*i-t)/2),c=s+this._roundSize(o.imageOptions.margin+(a*i-n)/2),u=t-2*o.imageOptions.margin,d=n-2*o.imageOptions.margin,h=this._window.document.createElementNS("http://www.w3.org/2000/svg","image");h.setAttribute("href",this._imageUri||""),h.setAttribute("xlink:href",this._imageUri||""),h.setAttribute("x",String(l)),h.setAttribute("y",String(c)),h.setAttribute("width","".concat(u,"px")),h.setAttribute("height","".concat(d,"px")),this._element.appendChild(h)}_createColor(e){let{options:t,color:n,additionalRotation:a,x:i,y:o,height:r,width:s,name:l}=e;const c=s>r?s:r,u=this._window.document.createElementNS("http://www.w3.org/2000/svg","rect");if(u.setAttribute("x",String(i)),u.setAttribute("y",String(o)),u.setAttribute("height",String(r)),u.setAttribute("width",String(s)),u.setAttribute("clip-path","url('#clip-path-".concat(l,"')")),t){let e;if("radial"===t.type)e=this._window.document.createElementNS("http://www.w3.org/2000/svg","radialGradient"),e.setAttribute("id",l),e.setAttribute("gradientUnits","userSpaceOnUse"),e.setAttribute("fx",String(i+s/2)),e.setAttribute("fy",String(o+r/2)),e.setAttribute("cx",String(i+s/2)),e.setAttribute("cy",String(o+r/2)),e.setAttribute("r",String(c/2));else{const n=((t.rotation||0)+a)%(2*Math.PI),c=(n+2*Math.PI)%(2*Math.PI);let u=i+s/2,d=o+r/2,h=i+s/2,p=o+r/2;c>=0&&c<=.25*Math.PI||c>1.75*Math.PI&&c<=2*Math.PI?(u-=s/2,d-=r/2*Math.tan(n),h+=s/2,p+=r/2*Math.tan(n)):c>.25*Math.PI&&c<=.75*Math.PI?(d-=r/2,u-=s/2/Math.tan(n),p+=r/2,h+=s/2/Math.tan(n)):c>.75*Math.PI&&c<=1.25*Math.PI?(u+=s/2,d+=r/2*Math.tan(n),h-=s/2,p-=r/2*Math.tan(n)):c>1.25*Math.PI&&c<=1.75*Math.PI&&(d+=r/2,u+=s/2/Math.tan(n),p-=r/2,h-=s/2/Math.tan(n)),e=this._window.document.createElementNS("http://www.w3.org/2000/svg","linearGradient"),e.setAttribute("id",l),e.setAttribute("gradientUnits","userSpaceOnUse"),e.setAttribute("x1",String(Math.round(u))),e.setAttribute("y1",String(Math.round(d))),e.setAttribute("x2",String(Math.round(h))),e.setAttribute("y2",String(Math.round(p)))}t.colorStops.forEach(t=>{let{offset:n,color:a}=t;const i=this._window.document.createElementNS("http://www.w3.org/2000/svg","stop");i.setAttribute("offset",100*n+"%"),i.setAttribute("stop-color",a),e.appendChild(i)}),u.setAttribute("fill","url('#".concat(l,"')")),this._defs.appendChild(e)}else n&&u.setAttribute("fill",n);this._element.appendChild(u)}}m.instanceCount=0;const g=m,b="canvas",y={};for(let e=0;e<=40;e++)y[e]=e;const w={type:b,shape:"square",width:300,height:300,data:"",margin:0,qrOptions:{typeNumber:y[0],mode:void 0,errorCorrectionLevel:"Q"},imageOptions:{saveAsBlob:!0,hideBackgroundDots:!0,imageSize:.4,crossOrigin:void 0,margin:0},dotsOptions:{type:"square",color:"#000",roundSize:!0},backgroundOptions:{round:0,color:"#fff"}};function _(e){const t=Object.assign({},e);if(!t.colorStops||!t.colorStops.length)throw"Field 'colorStops' is required in gradient";return t.rotation?t.rotation=Number(t.rotation):t.rotation=0,t.colorStops=t.colorStops.map(e=>Object.assign(Object.assign({},e),{offset:Number(e.offset)})),t}function E(e){const t=Object.assign({},e);return t.width=Number(t.width),t.height=Number(t.height),t.margin=Number(t.margin),t.imageOptions=Object.assign(Object.assign({},t.imageOptions),{hideBackgroundDots:Boolean(t.imageOptions.hideBackgroundDots),imageSize:Number(t.imageOptions.imageSize),margin:Number(t.imageOptions.margin)}),t.margin>Math.min(t.width,t.height)&&(t.margin=Math.min(t.width,t.height)),t.dotsOptions=Object.assign({},t.dotsOptions),t.dotsOptions.gradient&&(t.dotsOptions.gradient=_(t.dotsOptions.gradient)),t.cornersSquareOptions&&(t.cornersSquareOptions=Object.assign({},t.cornersSquareOptions),t.cornersSquareOptions.gradient&&(t.cornersSquareOptions.gradient=_(t.cornersSquareOptions.gradient))),t.cornersDotOptions&&(t.cornersDotOptions=Object.assign({},t.cornersDotOptions),t.cornersDotOptions.gradient&&(t.cornersDotOptions.gradient=_(t.cornersDotOptions.gradient))),t.backgroundOptions&&(t.backgroundOptions=Object.assign({},t.backgroundOptions),t.backgroundOptions.gradient&&(t.backgroundOptions.gradient=_(t.backgroundOptions.gradient))),t}var P=n(873),N=n.n(P);function I(e){if(!e)throw new Error("Extension must be defined");"."===e[0]&&(e=e.substring(1));const t={bmp:"image/bmp",gif:"image/gif",ico:"image/vnd.microsoft.icon",jpeg:"image/jpeg",jpg:"image/jpeg",png:"image/png",svg:"image/svg+xml",tif:"image/tiff",tiff:"image/tiff",webp:"image/webp",pdf:"application/pdf"}[e.toLowerCase()];if(!t)throw new Error('Extension "'.concat(e,'" is not supported'));return t}class A{constructor(e){(null==e?void 0:e.jsdom)?this._window=new e.jsdom("",{resources:"usable"}).window:this._window=window,this._options=e?E(t(w,e)):w,this.update()}static _clearContainer(e){e&&(e.innerHTML="")}_setupSvg(){if(!this._qr)return;const e=new g(this._options,this._window);this._svg=e.getElement(),this._svgDrawingPromise=e.drawQR(this._qr).then(()=>{var t;this._svg&&(null===(t=this._extension)||void 0===t||t.call(this,e.getElement(),this._options))})}_setupCanvas(){var e,t;this._qr&&((null===(e=this._options.nodeCanvas)||void 0===e?void 0:e.createCanvas)?(this._nodeCanvas=this._options.nodeCanvas.createCanvas(this._options.width,this._options.height),this._nodeCanvas.width=this._options.width,this._nodeCanvas.height=this._options.height):(this._domCanvas=document.createElement("canvas"),this._domCanvas.width=this._options.width,this._domCanvas.height=this._options.height),this._setupSvg(),this._canvasDrawingPromise=null===(t=this._svgDrawingPromise)||void 0===t?void 0:t.then(()=>{var e;if(!this._svg)return;const t=this._svg,n=(new this._window.XMLSerializer).serializeToString(t),a=btoa(n),i="data:".concat(I("svg"),";base64,").concat(a);if(null===(e=this._options.nodeCanvas)||void 0===e?void 0:e.loadImage)return this._options.nodeCanvas.loadImage(i).then(e=>{var t,n;e.width=this._options.width,e.height=this._options.height,null===(n=null===(t=this._nodeCanvas)||void 0===t?void 0:t.getContext("2d"))||void 0===n||n.drawImage(e,0,0)});{const e=new this._window.Image;return new Promise(t=>{e.onload=()=>{var n,a;null===(a=null===(n=this._domCanvas)||void 0===n?void 0:n.getContext("2d"))||void 0===a||a.drawImage(e,0,0),t()},e.src=i})}}))}async _getElement(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"png";if(!this._qr)throw"QR code is empty";return"svg"===e.toLowerCase()?(this._svg&&this._svgDrawingPromise||this._setupSvg(),await this._svgDrawingPromise,this._svg):((this._domCanvas||this._nodeCanvas)&&this._canvasDrawingPromise||this._setupCanvas(),await this._canvasDrawingPromise,this._domCanvas||this._nodeCanvas)}update(e){A._clearContainer(this._container),this._options=e?E(t(this._options,e)):this._options,this._options.data&&(this._qr=N()(this._options.qrOptions.typeNumber,this._options.qrOptions.errorCorrectionLevel),this._qr.addData(this._options.data,this._options.qrOptions.mode||function(e){switch(!0){case/^[0-9]*$/.test(e):return"Numeric";case/^[0-9A-Z $%*+\-./:]*$/.test(e):return"Alphanumeric";default:return"Byte"}}(this._options.data)),this._qr.make(),this._options.type===b?this._setupCanvas():this._setupSvg(),this.append(this._container))}append(e){if(e){if("function"!=typeof e.appendChild)throw"Container should be a single DOM node";this._options.type===b?this._domCanvas&&e.appendChild(this._domCanvas):this._svg&&e.appendChild(this._svg),this._container=e}}applyExtension(e){if(!e)throw"Extension function should be defined.";this._extension=e,this.update()}deleteExtension(){this._extension=void 0,this.update()}async getRawData(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"png";if(!this._qr)throw"QR code is empty";const t=await this._getElement(e),n=I(e);if(!t)return null;if("svg"===e.toLowerCase()){const e='<?xml version="1.0" standalone="no"?>\r\n'.concat((new this._window.XMLSerializer).serializeToString(t));return"undefined"==typeof Blob||this._options.jsdom?Buffer.from(e):new Blob([e],{type:n})}return new Promise(e=>{const a=t;if("toBuffer"in a)if("image/png"===n)e(a.toBuffer(n));else if("image/jpeg"===n)e(a.toBuffer(n));else{if("application/pdf"!==n)throw Error("Unsupported extension");e(a.toBuffer(n))}else"toBlob"in a&&a.toBlob(e,n,1)})}async download(e){if(!this._qr)throw"QR code is empty";if("undefined"==typeof Blob)throw"Cannot download in Node.js, call getRawData instead.";let t="png",n="qr";"string"==typeof e?(t=e,console.warn("Extension is deprecated as argument for 'download' method, please pass object { name: '...', extension: '...' } as argument")):"object"==typeof e&&null!==e&&(e.name&&(n=e.name),e.extension&&(t=e.extension));const a=await this._getElement(t);if(a)if("svg"===t.toLowerCase()){let e=(new XMLSerializer).serializeToString(a);e='<?xml version="1.0" standalone="no"?>\r\n'+e,i("data:".concat(I(t),";charset=utf-8,").concat(encodeURIComponent(e)),"".concat(n,".svg"))}else i(a.toDataURL(I(t)),"".concat(n,".").concat(t))}}const k=A})(),a.default})())}(Eo);var Po=_o(Eo.exports),No=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)},Io=(e,t,n)=>(No(e,t,"read from private field"),n?n.call(e):t.get(e));const Ao=[["aztec","Aztec"],["code_128","Code128"],["code_39","Code39"],["code_93","Code93"],["codabar","Codabar"],["databar","DataBar"],["databar_expanded","DataBarExpanded"],["data_matrix","DataMatrix"],["dx_film_edge","DXFilmEdge"],["ean_13","EAN-13"],["ean_8","EAN-8"],["itf","ITF"],["maxi_code","MaxiCode"],["micro_qr_code","MicroQRCode"],["pdf417","PDF417"],["qr_code","QRCode"],["rm_qr_code","rMQRCode"],["upc_a","UPC-A"],["upc_e","UPC-E"],["linear_codes","Linear-Codes"],["matrix_codes","Matrix-Codes"]],ko=[...Ao,["unknown"]].map(e=>e[0]),Co=new Map(Ao);function So(e){for(const[t,n]of Co)if(e===n)return t;return"unknown"}function Mo(e){try{return e instanceof HTMLImageElement}catch(e){return!1}}function xo(e){try{return e instanceof SVGImageElement}catch(e){return!1}}function Oo(e){try{return e instanceof HTMLVideoElement}catch(e){return!1}}function Do(e){try{return e instanceof HTMLCanvasElement}catch(e){return!1}}function To(e){try{return e instanceof ImageBitmap}catch(e){return!1}}function jo(e){try{return e instanceof OffscreenCanvas}catch(e){return!1}}function Lo(e){try{return e instanceof VideoFrame}catch(e){return!1}}function Vo(e){try{return e instanceof Blob}catch(e){return!1}}async function Bo(e){if(Mo(e)&&!await async function(e){try{return await e.decode(),!0}catch(e){return!1}}(e))throw new DOMException("Failed to load or decode HTMLImageElement.","InvalidStateError");if(xo(e)&&!await async function(e){var t;try{return await(null==(t=e.decode)?void 0:t.call(e)),!0}catch(e){return!1}}(e))throw new DOMException("Failed to load or decode SVGImageElement.","InvalidStateError");if(Lo(e)&&function(e){return null===e.format}(e))throw new DOMException("VideoFrame is closed.","InvalidStateError");if(Oo(e)&&(0===e.readyState||1===e.readyState))throw new DOMException("Invalid element or state.","InvalidStateError");if(To(e)&&function(e){return 0===e.width&&0===e.height}(e))throw new DOMException("The image source is detached.","InvalidStateError");const{width:t,height:n}=function(e){if(Mo(e))return{width:e.naturalWidth,height:e.naturalHeight};if(xo(e))return{width:e.width.baseVal.value,height:e.height.baseVal.value};if(Oo(e))return{width:e.videoWidth,height:e.videoHeight};if(To(e))return{width:e.width,height:e.height};if(Lo(e))return{width:e.displayWidth,height:e.displayHeight};if(Do(e))return{width:e.width,height:e.height};if(jo(e))return{width:e.width,height:e.height};throw new TypeError("The provided value is not of type '(Blob or HTMLCanvasElement or HTMLImageElement or HTMLVideoElement or ImageBitmap or ImageData or OffscreenCanvas or SVGImageElement or VideoFrame)'.")}(e);if(0===t||0===n)return null;const a=function(e,t){try{const n=new OffscreenCanvas(e,t);if(n.getContext("2d")instanceof OffscreenCanvasRenderingContext2D)return n;throw void 0}catch(n){const a=document.createElement("canvas");return a.width=e,a.height=t,a}}(t,n).getContext("2d");a.drawImage(e,0,0);try{return a.getImageData(0,0,t,n)}catch(e){throw new DOMException("Source would taint origin.","SecurityError")}}async function Uo(e){if(Vo(e))return await async function(e){let t;try{if(globalThis.createImageBitmap)t=await createImageBitmap(e);else{if(!globalThis.Image)return e;{t=new Image;let n="";try{n=URL.createObjectURL(e),t.src=n,await t.decode()}finally{URL.revokeObjectURL(n)}}}}catch(e){throw new DOMException("Failed to load or decode Blob.","InvalidStateError")}return await Bo(t)}(e);if(function(e){try{return e instanceof ImageData}catch(e){return!1}}(e)){if(function(e){return 0===e.data.buffer.byteLength}(e))throw new DOMException("The image data has been detached.","InvalidStateError");return e}return Do(e)||jo(e)?function(e){const{width:t,height:n}=e;if(0===t||0===n)return null;const a=e.getContext("2d");try{return a.getImageData(0,0,t,n)}catch(e){throw new DOMException("Source would taint origin.","SecurityError")}}(e):await Bo(e)}function zo(e,t){return e instanceof DOMException?new DOMException("".concat(t,": ").concat(e.message),e.name):e instanceof Error?new e.constructor("".concat(t,": ").concat(e.message)):new Error("".concat(t,": ").concat(e))}const Ro=["Aztec","Codabar","Code128","Code39","Code93","DataBar","DataBarExpanded","DataMatrix","DXFilmEdge","EAN-13","EAN-8","ITF","Linear-Codes","Matrix-Codes","MaxiCode","MicroQRCode","None","PDF417","QRCode","rMQRCode","UPC-A","UPC-E"];function Fo(e){return e.join("|")}function $o(e){const t=qo(e);let n=0,a=Ro.length-1;for(;n<=a;){const e=Math.floor((n+a)/2),i=Ro[e],o=qo(i);if(o===t)return i;o<t?n=e+1:a=e-1}return"None"}function qo(e){return e.toLowerCase().replace(/_-\[\]/g,"")}function Wo(e,t){return e.Binarizer[t]}function Ho(e,t){return e.CharacterSet[t]}const Go=["Text","Binary","Mixed","GS1","ISO15434","UnknownECI"];function Yo(e){return Go[e.value]}function Xo(e,t){return e.EanAddOnSymbol[t]}function Jo(e,t){return e.TextMode[t]}const Ko={formats:[],tryHarder:!0,tryRotate:!0,tryInvert:!0,tryDownscale:!0,binarizer:"LocalAverage",isPure:!1,downscaleFactor:3,downscaleThreshold:500,minLineCount:2,maxNumberOfSymbols:255,tryCode39ExtendedMode:!1,validateCode39CheckSum:!1,validateITFCheckSum:!1,returnCodabarStartEnd:!1,returnErrors:!1,eanAddOnSymbol:"Read",textMode:"Plain",characterSet:"Unknown"};function Qo(e,t){return{...t,formats:Fo(t.formats),binarizer:Wo(e,t.binarizer),eanAddOnSymbol:Xo(e,t.eanAddOnSymbol),textMode:Jo(e,t.textMode),characterSet:Ho(e,t.characterSet)}}function Zo(e){return{...e,format:$o(e.format),eccLevel:e.eccLevel,contentType:Yo(e.contentType)}}const er={locateFile:(e,t)=>{const n=e.match(/_(.+?)\.wasm$/);return n?"https://fastly.jsdelivr.net/npm/zxing-wasm@1.1.3/dist/".concat(n[1],"/").concat(e):t+e}};let tr=new WeakMap;function nr(e,t){var n;const a=tr.get(e);if(null!=a&&a.modulePromise&&void 0===t)return a.modulePromise;const i=null!=(n=null==a?void 0:a.moduleOverrides)?n:er,o=e({...i});return tr.set(e,{moduleOverrides:i,modulePromise:o}),o}var ar,ir=(()=>{var e=typeof document<"u"&&document.currentScript?document.currentScript.src:void 0;return function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};var n,a,i=t;i.ready=new Promise((e,t)=>{n=e,a=t});var o=Object.assign({},i),r="./this.program",s="object"==typeof window,l="function"==typeof importScripts;"object"==typeof process&&"object"==typeof process.versions&&process.versions.node;var c,u="";(s||l)&&(l?u=self.location.href:typeof document<"u"&&document.currentScript&&(u=document.currentScript.src),e&&(u=e),u=0!==u.indexOf("blob:")?u.substr(0,u.replace(/[?#].*/,"").lastIndexOf("/")+1):"",l&&(c=e=>{var t=new XMLHttpRequest;return t.open("GET",e,!1),t.responseType="arraybuffer",t.send(null),new Uint8Array(t.response)})),i.print||console.log.bind(console);var d,h=i.printErr||console.error.bind(console);Object.assign(i,o),o=null,i.arguments&&i.arguments,i.thisProgram&&(r=i.thisProgram),i.quit&&i.quit,i.wasmBinary&&(d=i.wasmBinary),"object"!=typeof WebAssembly&&x("no native wasm support detected");var p,f,v,m,g,b,y,w,_,E=!1;function P(){var e=p.buffer;i.HEAP8=f=new Int8Array(e),i.HEAP16=m=new Int16Array(e),i.HEAPU8=v=new Uint8Array(e),i.HEAPU16=g=new Uint16Array(e),i.HEAP32=b=new Int32Array(e),i.HEAPU32=y=new Uint32Array(e),i.HEAPF32=w=new Float32Array(e),i.HEAPF64=_=new Float64Array(e)}var N=[],I=[],A=[];function k(e){N.unshift(e)}function C(e){A.unshift(e)}var S=0,M=null;function x(e){var t;null===(t=i.onAbort)||void 0===t||t.call(i,e),h(e="Aborted("+e+")"),E=!0,e+=". Build with -sASSERTIONS for more info.";var n=new WebAssembly.RuntimeError(e);throw a(n),n}var O,D=e=>e.startsWith("data:application/octet-stream;base64,");function T(e){if(e==O&&d)return new Uint8Array(d);if(c)return c(e);throw"both async and sync fetching of the wasm failed"}function j(e,t,n){return function(e){return d||!s&&!l||"function"!=typeof fetch?Promise.resolve().then(()=>T(e)):fetch(e,{credentials:"same-origin"}).then(t=>{if(!t.ok)throw"failed to load wasm binary file at '"+e+"'";return t.arrayBuffer()}).catch(()=>T(e))}(e).then(e=>WebAssembly.instantiate(e,t)).then(e=>e).then(n,e=>{h("failed to asynchronously prepare wasm: ".concat(e)),x(e)})}D(O="zxing_reader.wasm")||(O=function(e){return i.locateFile?i.locateFile(e,u):u+e}(O));var L=e=>{for(;e.length>0;)e.shift()(i)};i.noExitRuntime;var V=[],B=0,U=0;function z(e){this.excPtr=e,this.ptr=e-24,this.set_type=function(e){y[this.ptr+4>>2]=e},this.get_type=function(){return y[this.ptr+4>>2]},this.set_destructor=function(e){y[this.ptr+8>>2]=e},this.get_destructor=function(){return y[this.ptr+8>>2]},this.set_caught=function(e){e=e?1:0,f[this.ptr+12|0]=e},this.get_caught=function(){return 0!=f[this.ptr+12|0]},this.set_rethrown=function(e){e=e?1:0,f[this.ptr+13|0]=e},this.get_rethrown=function(){return 0!=f[this.ptr+13|0]},this.init=function(e,t){this.set_adjusted_ptr(0),this.set_type(e),this.set_destructor(t)},this.set_adjusted_ptr=function(e){y[this.ptr+16>>2]=e},this.get_adjusted_ptr=function(){return y[this.ptr+16>>2]},this.get_exception_ptr=function(){if(Tt(this.get_type()))return y[this.excPtr>>2];var e=this.get_adjusted_ptr();return 0!==e?e:this.excPtr}}var R=e=>{var t=U;if(!t)return Ct(0),0;var n=new z(t);n.set_adjusted_ptr(t);var a=n.get_type();if(!a)return Ct(0),t;for(var i in e){var o=e[i];if(0===o||o===a)break;var r=n.ptr+16;if(Dt(o,a,r))return Ct(o),t}return Ct(a),t},F={},$=e=>{for(;e.length;){var t=e.pop();e.pop()(t)}};function q(e){return this.fromWireType(b[e>>2])}var W,H,G,Y={},X={},J={},K=e=>{throw new W(e)},Q=(e,t,n)=>{function a(t){var a=n(t);a.length!==e.length&&K("Mismatched type converter count");for(var i=0;i<e.length;++i)te(e[i],a[i])}e.forEach(function(e){J[e]=t});var i=new Array(t.length),o=[],r=0;t.forEach((e,t)=>{X.hasOwnProperty(e)?i[t]=X[e]:(o.push(e),Y.hasOwnProperty(e)||(Y[e]=[]),Y[e].push(()=>{i[t]=X[e],++r===o.length&&a(i)}))}),0===o.length&&a(i)},Z=e=>{for(var t="",n=e;v[n];)t+=H[v[n++]];return t},ee=e=>{throw new G(e)};function te(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!("argPackAdvance"in t))throw new TypeError("registerType registeredInstance requires argPackAdvance");return function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};var a=t.name;if(e||ee('type "'.concat(a,'" must have a positive integer typeid pointer')),X.hasOwnProperty(e)){if(n.ignoreDuplicateRegistrations)return;ee("Cannot register type '".concat(a,"' twice"))}if(X[e]=t,delete J[e],Y.hasOwnProperty(e)){var i=Y[e];delete Y[e],i.forEach(e=>e())}}(e,t,n)}var ne,ae=8,ie=e=>({count:e.count,deleteScheduled:e.deleteScheduled,preservePointerOnDelete:e.preservePointerOnDelete,ptr:e.ptr,ptrType:e.ptrType,smartPtr:e.smartPtr,smartPtrType:e.smartPtrType}),oe=e=>{ee(function(e){return e.$$.ptrType.registeredClass.name}(e)+" instance already deleted")},re=!1,se=e=>{},le=e=>{e.count.value-=1,0===e.count.value&&(e=>{e.smartPtr?e.smartPtrType.rawDestructor(e.smartPtr):e.ptrType.registeredClass.rawDestructor(e.ptr)})(e)},ce=(e,t,n)=>{if(t===n)return e;if(void 0===n.baseClass)return null;var a=ce(e,t,n.baseClass);return null===a?null:n.downcast(a)},ue={},de=()=>Object.keys(me).length,he=()=>{var e=[];for(var t in me)me.hasOwnProperty(t)&&e.push(me[t]);return e},pe=[],fe=()=>{for(;pe.length;){var e=pe.pop();e.$$.deleteScheduled=!1,e.delete()}},ve=e=>{ne=e,pe.length&&ne&&ne(fe)},me={},ge=(e,t)=>(t=((e,t)=>{for(void 0===t&&ee("ptr should not be undefined");e.baseClass;)t=e.upcast(t),e=e.baseClass;return t})(e,t),me[t]),be=(e,t)=>((!t.ptrType||!t.ptr)&&K("makeClassHandle requires ptr and ptrType"),!!t.smartPtrType!==!!t.smartPtr&&K("Both smartPtrType and smartPtr must be specified"),t.count={value:1},we(Object.create(e,{$$:{value:t,writable:!0}})));function ye(e){var t=this.getPointee(e);if(!t)return this.destructor(e),null;var n=ge(this.registeredClass,t);if(void 0!==n){if(0===n.$$.count.value)return n.$$.ptr=t,n.$$.smartPtr=e,n.clone();var a=n.clone();return this.destructor(e),a}function i(){return this.isSmartPointer?be(this.registeredClass.instancePrototype,{ptrType:this.pointeeType,ptr:t,smartPtrType:this,smartPtr:e}):be(this.registeredClass.instancePrototype,{ptrType:this,ptr:e})}var o,r=this.registeredClass.getActualType(t),s=ue[r];if(!s)return i.call(this);o=this.isConst?s.constPointerType:s.pointerType;var l=ce(t,this.registeredClass,o.registeredClass);return null===l?i.call(this):this.isSmartPointer?be(o.registeredClass.instancePrototype,{ptrType:o,ptr:l,smartPtrType:this,smartPtr:e}):be(o.registeredClass.instancePrototype,{ptrType:o,ptr:l})}var we=e=>typeof FinalizationRegistry>"u"?(we=e=>e,e):(re=new FinalizationRegistry(e=>{le(e.$$)}),we=e=>{var t=e.$$;if(!!t.smartPtr){var n={$$:t};re.register(e,n,e)}return e},se=e=>re.unregister(e),we(e));function _e(){}var Ee=(e,t)=>Object.defineProperty(t,"name",{value:e}),Pe=(e,t,n)=>{if(void 0===e[t].overloadTable){var a=e[t];e[t]=function(){return e[t].overloadTable.hasOwnProperty(arguments.length)||ee("Function '".concat(n,"' called with an invalid number of arguments (").concat(arguments.length,") - expects one of (").concat(e[t].overloadTable,")!")),e[t].overloadTable[arguments.length].apply(this,arguments)},e[t].overloadTable=[],e[t].overloadTable[a.argCount]=a}},Ne=(e,t,n)=>{i.hasOwnProperty(e)?((void 0===n||void 0!==i[e].overloadTable&&void 0!==i[e].overloadTable[n])&&ee("Cannot register public name '".concat(e,"' twice")),Pe(i,e,e),i.hasOwnProperty(n)&&ee("Cannot register multiple overloads of a function with the same number of arguments (".concat(n,")!")),i[e].overloadTable[n]=t):(i[e]=t,void 0!==n&&(i[e].numArguments=n))};function Ie(e,t,n,a,i,o,r,s){this.name=e,this.constructor=t,this.instancePrototype=n,this.rawDestructor=a,this.baseClass=i,this.getActualType=o,this.upcast=r,this.downcast=s,this.pureVirtualFunctions=[]}var Ae=(e,t,n)=>{for(;t!==n;)t.upcast||ee("Expected null or instance of ".concat(n.name,", got an instance of ").concat(t.name)),e=t.upcast(e),t=t.baseClass;return e};function ke(e,t){if(null===t)return this.isReference&&ee("null is not a valid ".concat(this.name)),0;t.$$||ee('Cannot pass "'.concat(Ke(t),'" as a ').concat(this.name)),t.$$.ptr||ee("Cannot pass deleted object as a pointer of type ".concat(this.name));var n=t.$$.ptrType.registeredClass;return Ae(t.$$.ptr,n,this.registeredClass)}function Ce(e,t){var n;if(null===t)return this.isReference&&ee("null is not a valid ".concat(this.name)),this.isSmartPointer?(n=this.rawConstructor(),null!==e&&e.push(this.rawDestructor,n),n):0;(!t||!t.$$)&&ee('Cannot pass "'.concat(Ke(t),'" as a ').concat(this.name)),t.$$.ptr||ee("Cannot pass deleted object as a pointer of type ".concat(this.name)),!this.isConst&&t.$$.ptrType.isConst&&ee("Cannot convert argument of type ".concat(t.$$.smartPtrType?t.$$.smartPtrType.name:t.$$.ptrType.name," to parameter type ").concat(this.name));var a=t.$$.ptrType.registeredClass;if(n=Ae(t.$$.ptr,a,this.registeredClass),this.isSmartPointer)switch(void 0===t.$$.smartPtr&&ee("Passing raw pointer to smart pointer is illegal"),this.sharingPolicy){case 0:t.$$.smartPtrType===this?n=t.$$.smartPtr:ee("Cannot convert argument of type ".concat(t.$$.smartPtrType?t.$$.smartPtrType.name:t.$$.ptrType.name," to parameter type ").concat(this.name));break;case 1:n=t.$$.smartPtr;break;case 2:if(t.$$.smartPtrType===this)n=t.$$.smartPtr;else{var i=t.clone();n=this.rawShare(n,Ye.toHandle(()=>i.delete())),null!==e&&e.push(this.rawDestructor,n)}break;default:ee("Unsupporting sharing policy")}return n}function Se(e,t){if(null===t)return this.isReference&&ee("null is not a valid ".concat(this.name)),0;t.$$||ee('Cannot pass "'.concat(Ke(t),'" as a ').concat(this.name)),t.$$.ptr||ee("Cannot pass deleted object as a pointer of type ".concat(this.name)),t.$$.ptrType.isConst&&ee("Cannot convert argument of type ".concat(t.$$.ptrType.name," to parameter type ").concat(this.name));var n=t.$$.ptrType.registeredClass;return Ae(t.$$.ptr,n,this.registeredClass)}function Me(e){return this.fromWireType(y[e>>2])}function xe(e,t,n,a,i,o,r,s,l,c,u){this.name=e,this.registeredClass=t,this.isReference=n,this.isConst=a,this.isSmartPointer=i,this.pointeeType=o,this.sharingPolicy=r,this.rawGetPointee=s,this.rawConstructor=l,this.rawShare=c,this.rawDestructor=u,i||void 0!==t.baseClass?this.toWireType=Ce:a?(this.toWireType=ke,this.destructorFunction=null):(this.toWireType=Se,this.destructorFunction=null)}var Oe,De,Te=(e,t,n)=>{i.hasOwnProperty(e)||K("Replacing nonexistant public symbol"),void 0!==i[e].overloadTable&&void 0!==n?i[e].overloadTable[n]=t:(i[e]=t,i[e].argCount=n)},je=[],Le=e=>{var t=je[e];return t||(e>=je.length&&(je.length=e+1),je[e]=t=Oe.get(e)),t},Ve=(e,t,n)=>e.includes("j")?((e,t,n)=>{var a=i["dynCall_"+e];return n&&n.length?a.apply(null,[t].concat(n)):a.call(null,t)})(e,t,n):Le(t).apply(null,n),Be=(e,t)=>{var n=(e=Z(e)).includes("j")?((e,t)=>{var n=[];return function(){return n.length=0,Object.assign(n,arguments),Ve(e,t,n)}})(e,t):Le(t);return"function"!=typeof n&&ee("unknown function pointer with signature ".concat(e,": ").concat(t)),n},Ue=e=>{var t=At(e),n=Z(t);return Nt(t),n},ze=(e,t)=>{var n=[],a={};throw t.forEach(function e(t){if(!a[t]&&!X[t]){if(J[t])return void J[t].forEach(e);n.push(t),a[t]=!0}}),new De("".concat(e,": ")+n.map(Ue).join([", "]))},Re=(e,t)=>{for(var n=[],a=0;a<e;a++)n.push(y[t+4*a>>2]);return n};function Fe(e,t,n,a,i,o){var r=t.length;r<2&&ee("argTypes array size mismatch! Must at least get return value and 'this' types!");var s=null!==t[1]&&null!==n,l=function(e){for(var t=1;t<e.length;++t)if(null!==e[t]&&void 0===e[t].destructorFunction)return!0;return!1}(t),c="void"!==t[0].name,u=r-2,d=new Array(u),h=[],p=[];return Ee(e,function(){var n;arguments.length!==u&&ee("function ".concat(e," called with ").concat(arguments.length," arguments, expected ").concat(u)),p.length=0,h.length=s?2:1,h[0]=i,s&&(n=t[1].toWireType(p,this),h[1]=n);for(var o=0;o<u;++o)d[o]=t[o+2].toWireType(p,arguments[o]),h.push(d[o]);return function(e){if(l)$(p);else for(var a=s?1:2;a<t.length;a++){var i=1===a?n:d[a-2];null!==t[a].destructorFunction&&t[a].destructorFunction(i)}if(c)return t[0].fromWireType(e)}(a.apply(null,h))})}var $e=e=>{const t=(e=e.trim()).indexOf("(");return-1!==t?e.substr(0,t):e};function qe(){this.allocated=[void 0],this.freelist=[]}var We=new qe,He=e=>{e>=We.reserved&&0===--We.get(e).refcount&&We.free(e)},Ge=()=>{for(var e=0,t=We.reserved;t<We.allocated.length;++t)void 0!==We.allocated[t]&&++e;return e},Ye={toValue:e=>(e||ee("Cannot use deleted val. handle = "+e),We.get(e).value),toHandle:e=>{switch(e){case void 0:return 1;case null:return 2;case!0:return 3;case!1:return 4;default:return We.allocate({refcount:1,value:e})}}},Xe=(e,t,n)=>{switch(t){case 1:return n?function(e){return this.fromWireType(f[e|0])}:function(e){return this.fromWireType(v[e|0])};case 2:return n?function(e){return this.fromWireType(m[e>>1])}:function(e){return this.fromWireType(g[e>>1])};case 4:return n?function(e){return this.fromWireType(b[e>>2])}:function(e){return this.fromWireType(y[e>>2])};default:throw new TypeError("invalid integer width (".concat(t,"): ").concat(e))}},Je=(e,t)=>{var n=X[e];return void 0===n&&ee(t+" has unknown type "+Ue(e)),n},Ke=e=>{if(null===e)return"null";var t=typeof e;return"object"===t||"array"===t||"function"===t?e.toString():""+e},Qe=(e,t)=>{switch(t){case 4:return function(e){return this.fromWireType(w[e>>2])};case 8:return function(e){return this.fromWireType(_[e>>3])};default:throw new TypeError("invalid float width (".concat(t,"): ").concat(e))}},Ze=(e,t,n)=>{switch(t){case 1:return n?e=>f[e|0]:e=>v[e|0];case 2:return n?e=>m[e>>1]:e=>g[e>>1];case 4:return n?e=>b[e>>2]:e=>y[e>>2];default:throw new TypeError("invalid integer width (".concat(t,"): ").concat(e))}},et=(e,t,n,a)=>{if(!(a>0))return 0;for(var i=n,o=n+a-1,r=0;r<e.length;++r){var s=e.charCodeAt(r);if(s>=55296&&s<=57343)s=65536+((1023&s)<<10)|1023&e.charCodeAt(++r);if(s<=127){if(n>=o)break;t[n++]=s}else if(s<=2047){if(n+1>=o)break;t[n++]=192|s>>6,t[n++]=128|63&s}else if(s<=65535){if(n+2>=o)break;t[n++]=224|s>>12,t[n++]=128|s>>6&63,t[n++]=128|63&s}else{if(n+3>=o)break;t[n++]=240|s>>18,t[n++]=128|s>>12&63,t[n++]=128|s>>6&63,t[n++]=128|63&s}}return t[n]=0,n-i},tt=e=>{for(var t=0,n=0;n<e.length;++n){var a=e.charCodeAt(n);a<=127?t++:a<=2047?t+=2:a>=55296&&a<=57343?(t+=4,++n):t+=3}return t},nt=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0,at=(e,t)=>e?((e,t,n)=>{for(var a=t+n,i=t;e[i]&&!(i>=a);)++i;if(i-t>16&&e.buffer&&nt)return nt.decode(e.subarray(t,i));for(var o="";t<i;){var r=e[t++];if(128&r){var s=63&e[t++];if(192!=(224&r)){var l=63&e[t++];if((r=224==(240&r)?(15&r)<<12|s<<6|l:(7&r)<<18|s<<12|l<<6|63&e[t++])<65536)o+=String.fromCharCode(r);else{var c=r-65536;o+=String.fromCharCode(55296|c>>10,56320|1023&c)}}else o+=String.fromCharCode((31&r)<<6|s)}else o+=String.fromCharCode(r)}return o})(v,e,t):"",it=typeof TextDecoder<"u"?new TextDecoder("utf-16le"):void 0,ot=(e,t)=>{for(var n=e,a=n>>1,i=a+t/2;!(a>=i)&&g[a];)++a;if((n=a<<1)-e>32&&it)return it.decode(v.subarray(e,n));for(var o="",r=0;!(r>=t/2);++r){var s=m[e+2*r>>1];if(0==s)break;o+=String.fromCharCode(s)}return o},rt=(e,t,n)=>{var a;if(null!==(a=n)&&void 0!==a||(n=2147483647),n<2)return 0;for(var i=t,o=(n-=2)<2*e.length?n/2:e.length,r=0;r<o;++r){var s=e.charCodeAt(r);m[t>>1]=s,t+=2}return m[t>>1]=0,t-i},st=e=>2*e.length,lt=(e,t)=>{for(var n=0,a="";!(n>=t/4);){var i=b[e+4*n>>2];if(0==i)break;if(++n,i>=65536){var o=i-65536;a+=String.fromCharCode(55296|o>>10,56320|1023&o)}else a+=String.fromCharCode(i)}return a},ct=(e,t,n)=>{var a;if(null!==(a=n)&&void 0!==a||(n=2147483647),n<4)return 0;for(var i=t,o=i+n-4,r=0;r<e.length;++r){var s=e.charCodeAt(r);if(s>=55296&&s<=57343)s=65536+((1023&s)<<10)|1023&e.charCodeAt(++r);if(b[t>>2]=s,(t+=4)+4>o)break}return b[t>>2]=0,t-i},ut=e=>{for(var t=0,n=0;n<e.length;++n){var a=e.charCodeAt(n);a>=55296&&a<=57343&&++n,t+=4}return t},dt=[],ht={},pt=()=>{if("object"==typeof globalThis)return globalThis;function e(e){e.$$$embind_global$$$=e;var t="object"==typeof $$$embind_global$$$&&e.$$$embind_global$$$==e;return t||delete e.$$$embind_global$$$,t}if("object"==typeof $$$embind_global$$$||("object"==typeof global&&e(global)?$$$embind_global$$$=global:"object"==typeof self&&e(self)&&($$$embind_global$$$=self),"object"==typeof $$$embind_global$$$))return $$$embind_global$$$;throw Error("unable to get global object.")},ft=Reflect.construct,vt=e=>{var t=(e-p.buffer.byteLength+65535)/65536;try{return p.grow(t),P(),1}catch(e){}},mt={},gt=()=>{if(!gt.strings){var e={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:("object"==typeof navigator&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8",_:r||"./this.program"};for(var t in mt)void 0===mt[t]?delete e[t]:e[t]=mt[t];var n=[];for(var t in e)n.push("".concat(t,"=").concat(e[t]));gt.strings=n}return gt.strings},bt=e=>e%4==0&&(e%100!=0||e%400==0),yt=[31,29,31,30,31,30,31,31,30,31,30,31],wt=[31,28,31,30,31,30,31,31,30,31,30,31];var _t=(e,t,n,a)=>{var i=y[a+40>>2],o={tm_sec:b[a>>2],tm_min:b[a+4>>2],tm_hour:b[a+8>>2],tm_mday:b[a+12>>2],tm_mon:b[a+16>>2],tm_year:b[a+20>>2],tm_wday:b[a+24>>2],tm_yday:b[a+28>>2],tm_isdst:b[a+32>>2],tm_gmtoff:b[a+36>>2],tm_zone:i?at(i):""},r=at(n),s={"%c":"%a %b %d %H:%M:%S %Y","%D":"%m/%d/%y","%F":"%Y-%m-%d","%h":"%b","%r":"%I:%M:%S %p","%R":"%H:%M","%T":"%H:%M:%S","%x":"%m/%d/%y","%X":"%H:%M:%S","%Ec":"%c","%EC":"%C","%Ex":"%m/%d/%y","%EX":"%H:%M:%S","%Ey":"%y","%EY":"%Y","%Od":"%d","%Oe":"%e","%OH":"%H","%OI":"%I","%Om":"%m","%OM":"%M","%OS":"%S","%Ou":"%u","%OU":"%U","%OV":"%V","%Ow":"%w","%OW":"%W","%Oy":"%y"};for(var l in s)r=r.replace(new RegExp(l,"g"),s[l]);var c=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],u=["January","February","March","April","May","June","July","August","September","October","November","December"];function d(e,t,n){for(var a="number"==typeof e?e.toString():e||"";a.length<t;)a=n[0]+a;return a}function h(e,t){return d(e,t,"0")}function p(e,t){function n(e){return e<0?-1:e>0?1:0}var a;return 0===(a=n(e.getFullYear()-t.getFullYear()))&&0===(a=n(e.getMonth()-t.getMonth()))&&(a=n(e.getDate()-t.getDate())),a}function v(e){switch(e.getDay()){case 0:return new Date(e.getFullYear()-1,11,29);case 1:return e;case 2:return new Date(e.getFullYear(),0,3);case 3:return new Date(e.getFullYear(),0,2);case 4:return new Date(e.getFullYear(),0,1);case 5:return new Date(e.getFullYear()-1,11,31);case 6:return new Date(e.getFullYear()-1,11,30)}}function m(e){var t=((e,t)=>{for(var n=new Date(e.getTime());t>0;){var a=bt(n.getFullYear()),i=n.getMonth(),o=(a?yt:wt)[i];if(!(t>o-n.getDate()))return n.setDate(n.getDate()+t),n;t-=o-n.getDate()+1,n.setDate(1),i<11?n.setMonth(i+1):(n.setMonth(0),n.setFullYear(n.getFullYear()+1))}return n})(new Date(e.tm_year+1900,0,1),e.tm_yday),n=new Date(t.getFullYear(),0,4),a=new Date(t.getFullYear()+1,0,4),i=v(n),o=v(a);return p(i,t)<=0?p(o,t)<=0?t.getFullYear()+1:t.getFullYear():t.getFullYear()-1}var g={"%a":e=>c[e.tm_wday].substring(0,3),"%A":e=>c[e.tm_wday],"%b":e=>u[e.tm_mon].substring(0,3),"%B":e=>u[e.tm_mon],"%C":e=>h((e.tm_year+1900)/100|0,2),"%d":e=>h(e.tm_mday,2),"%e":e=>d(e.tm_mday,2," "),"%g":e=>m(e).toString().substring(2),"%G":e=>m(e),"%H":e=>h(e.tm_hour,2),"%I":e=>{var t=e.tm_hour;return 0==t?t=12:t>12&&(t-=12),h(t,2)},"%j":e=>h(e.tm_mday+((e,t)=>{for(var n=0,a=0;a<=t;n+=e[a++]);return n})(bt(e.tm_year+1900)?yt:wt,e.tm_mon-1),3),"%m":e=>h(e.tm_mon+1,2),"%M":e=>h(e.tm_min,2),"%n":()=>"\n","%p":e=>e.tm_hour>=0&&e.tm_hour<12?"AM":"PM","%S":e=>h(e.tm_sec,2),"%t":()=>"\t","%u":e=>e.tm_wday||7,"%U":e=>{var t=e.tm_yday+7-e.tm_wday;return h(Math.floor(t/7),2)},"%V":e=>{var t=Math.floor((e.tm_yday+7-(e.tm_wday+6)%7)/7);if((e.tm_wday+371-e.tm_yday-2)%7<=2&&t++,t){if(53==t){var n=(e.tm_wday+371-e.tm_yday)%7;4!=n&&(3!=n||!bt(e.tm_year))&&(t=1)}}else{t=52;var a=(e.tm_wday+7-e.tm_yday-1)%7;(4==a||5==a&&bt(e.tm_year%400-1))&&t++}return h(t,2)},"%w":e=>e.tm_wday,"%W":e=>{var t=e.tm_yday+7-(e.tm_wday+6)%7;return h(Math.floor(t/7),2)},"%y":e=>(e.tm_year+1900).toString().substring(2),"%Y":e=>e.tm_year+1900,"%z":e=>{var t=e.tm_gmtoff;return(t>=0?"+":"-")+("0000"+(t=(t=Math.abs(t)/60)/60*100+t%60)).slice(-4)},"%Z":e=>e.tm_zone,"%%":()=>"%"};for(var l in r=r.replace(/%%/g,"\0\0"),g)r.includes(l)&&(r=r.replace(new RegExp(l,"g"),g[l](o)));var w=function(e){var t=tt(e)+1,n=new Array(t);return et(e,n,0,n.length),n}(r=r.replace(/\0\0/g,"%"));return w.length>t?0:(((e,t)=>{f.set(e,t)})(w,e),w.length-1)};W=i.InternalError=class extends Error{constructor(e){super(e),this.name="InternalError"}},(()=>{for(var e=new Array(256),t=0;t<256;++t)e[t]=String.fromCharCode(t);H=e})(),G=i.BindingError=class extends Error{constructor(e){super(e),this.name="BindingError"}},Object.assign(_e.prototype,{isAliasOf(e){if(!(this instanceof _e&&e instanceof _e))return!1;var t=this.$$.ptrType.registeredClass,n=this.$$.ptr;e.$$=e.$$;for(var a=e.$$.ptrType.registeredClass,i=e.$$.ptr;t.baseClass;)n=t.upcast(n),t=t.baseClass;for(;a.baseClass;)i=a.upcast(i),a=a.baseClass;return t===a&&n===i},clone(){if(this.$$.ptr||oe(this),this.$$.preservePointerOnDelete)return this.$$.count.value+=1,this;var e=we(Object.create(Object.getPrototypeOf(this),{$$:{value:ie(this.$$)}}));return e.$$.count.value+=1,e.$$.deleteScheduled=!1,e},delete(){this.$$.ptr||oe(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&ee("Object already scheduled for deletion"),se(this),le(this.$$),this.$$.preservePointerOnDelete||(this.$$.smartPtr=void 0,this.$$.ptr=void 0)},isDeleted(){return!this.$$.ptr},deleteLater(){return this.$$.ptr||oe(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&ee("Object already scheduled for deletion"),pe.push(this),1===pe.length&&ne&&ne(fe),this.$$.deleteScheduled=!0,this}}),i.getInheritedInstanceCount=de,i.getLiveInheritedInstances=he,i.flushPendingDeletes=fe,i.setDelayFunction=ve,Object.assign(xe.prototype,{getPointee(e){return this.rawGetPointee&&(e=this.rawGetPointee(e)),e},destructor(e){var t;null===(t=this.rawDestructor)||void 0===t||t.call(this,e)},argPackAdvance:ae,readValueFromPointer:Me,deleteObject(e){null!==e&&e.delete()},fromWireType:ye}),De=i.UnboundTypeError=((e,t)=>{var n=Ee(t,function(e){this.name=t,this.message=e;var n=new Error(e).stack;void 0!==n&&(this.stack=this.toString()+"\n"+n.replace(/^Error(:[^\n]*)?\n/,""))});return n.prototype=Object.create(e.prototype),n.prototype.constructor=n,n.prototype.toString=function(){return void 0===this.message?this.name:"".concat(this.name,": ").concat(this.message)},n})(Error,"UnboundTypeError"),Object.assign(qe.prototype,{get(e){return this.allocated[e]},has(e){return void 0!==this.allocated[e]},allocate(e){var t=this.freelist.pop()||this.allocated.length;return this.allocated[t]=e,t},free(e){this.allocated[e]=void 0,this.freelist.push(e)}}),We.allocated.push({value:void 0},{value:null},{value:!0},{value:!1}),We.reserved=We.allocated.length,i.count_emval_handles=Ge;var Et={s:e=>{var t=new z(e);return t.get_caught()||(t.set_caught(!0),B--),t.set_rethrown(!1),V.push(t),Ot(t.excPtr),t.get_exception_ptr()},u:()=>{kt(0,0);var e=V.pop();xt(e.excPtr),U=0},b:()=>R([]),g:e=>R([e]),q:(e,t)=>R([e,t]),J:()=>{var e=V.pop();e||x("no exception to throw");var t=e.excPtr;throw e.get_rethrown()||(V.push(e),e.set_rethrown(!0),e.set_caught(!1),B++),U=t},f:(e,t,n)=>{throw new z(e).init(t,n),B++,U=e},V:()=>B,d:e=>{throw U||(U=e),U},da:e=>{var t=F[e];delete F[e];var n=t.rawConstructor,a=t.rawDestructor,i=t.fields,o=i.map(e=>e.getterReturnType).concat(i.map(e=>e.setterArgumentType));Q([e],o,e=>{var o={};return i.forEach((t,n)=>{var a=t.fieldName,r=e[n],s=t.getter,l=t.getterContext,c=e[n+i.length],u=t.setter,d=t.setterContext;o[a]={read:e=>r.fromWireType(s(l,e)),write:(e,t)=>{var n=[];u(d,e,c.toWireType(n,t)),$(n)}}}),[{name:t.name,fromWireType:e=>{var t={};for(var n in o)t[n]=o[n].read(e);return a(e),t},toWireType:(e,t)=>{for(var i in o)if(!(i in t))throw new TypeError('Missing field: "'.concat(i,'"'));var r=n();for(i in o)o[i].write(r,t[i]);return null!==e&&e.push(a,r),r},argPackAdvance:ae,readValueFromPointer:q,destructorFunction:a}]})},Q:(e,t,n,a,i)=>{},_:(e,t,n,a)=>{te(e,{name:t=Z(t),fromWireType:function(e){return!!e},toWireType:function(e,t){return t?n:a},argPackAdvance:ae,readValueFromPointer:function(e){return this.fromWireType(v[e])},destructorFunction:null})},ca:(e,t,n,a,i,o,r,s,l,c,u,d,h)=>{u=Z(u),o=Be(i,o),s&&(s=Be(r,s)),c&&(c=Be(l,c)),h=Be(d,h);var p=(e=>{if(void 0===e)return"_unknown";var t=(e=e.replace(/[^a-zA-Z0-9_]/g,"$")).charCodeAt(0);return t>=48&&t<=57?"_".concat(e):e})(u);Ne(p,function(){ze("Cannot construct ".concat(u," due to unbound types"),[a])}),Q([e,t,n],a?[a]:[],function(t){var n,i;t=t[0],a?i=(n=t.registeredClass).instancePrototype:i=_e.prototype;var r=Ee(u,function(){if(Object.getPrototypeOf(this)!==l)throw new G("Use 'new' to construct "+u);if(void 0===v.constructor_body)throw new G(u+" has no accessible constructor");var e=v.constructor_body[arguments.length];if(void 0===e)throw new G("Tried to invoke ctor of ".concat(u," with invalid number of parameters (").concat(arguments.length,") - expected (").concat(Object.keys(v.constructor_body).toString(),") parameters instead!"));return e.apply(this,arguments)}),l=Object.create(i,{constructor:{value:r}});r.prototype=l;var d,f,v=new Ie(u,r,l,h,n,o,s,c);v.baseClass&&(null!==(f=(d=v.baseClass).__derivedClasses)&&void 0!==f||(d.__derivedClasses=[]),v.baseClass.__derivedClasses.push(v));var m=new xe(u,v,!0,!1,!1),g=new xe(u+"*",v,!1,!1,!1),b=new xe(u+" const*",v,!1,!0,!1);return ue[e]={pointerType:g,constPointerType:b},Te(p,r),[m,g,b]})},ba:(e,t,n,a,i,o)=>{var r=Re(t,n);i=Be(a,i),Q([],[e],function(e){e=e[0];var n="constructor ".concat(e.name);if(void 0===e.registeredClass.constructor_body&&(e.registeredClass.constructor_body=[]),void 0!==e.registeredClass.constructor_body[t-1])throw new G("Cannot register multiple constructors with identical number of parameters (".concat(t-1,") for class '").concat(e.name,"'! Overload resolution is currently only performed using the parameter count, not actual type info!"));return e.registeredClass.constructor_body[t-1]=()=>{ze("Cannot construct ".concat(e.name," due to unbound types"),r)},Q([],r,a=>(a.splice(1,0,null),e.registeredClass.constructor_body[t-1]=Fe(n,a,null,i,o),[])),[]})},w:(e,t,n,a,i,o,r,s,l)=>{var c=Re(n,a);t=Z(t),t=$e(t),o=Be(i,o),Q([],[e],function(e){e=e[0];var a="".concat(e.name,".").concat(t);function i(){ze("Cannot call ".concat(a," due to unbound types"),c)}t.startsWith("@@")&&(t=Symbol[t.substring(2)]),s&&e.registeredClass.pureVirtualFunctions.push(t);var l=e.registeredClass.instancePrototype,u=l[t];return void 0===u||void 0===u.overloadTable&&u.className!==e.name&&u.argCount===n-2?(i.argCount=n-2,i.className=e.name,l[t]=i):(Pe(l,t,a),l[t].overloadTable[n-2]=i),Q([],c,function(i){var s=Fe(a,i,e,o,r);return void 0===l[t].overloadTable?(s.argCount=n-2,l[t]=s):l[t].overloadTable[n-2]=s,[]}),[]})},Y:(e,t)=>{te(e,{name:t=Z(t),fromWireType:e=>{var t=Ye.toValue(e);return He(e),t},toWireType:(e,t)=>Ye.toHandle(t),argPackAdvance:ae,readValueFromPointer:q,destructorFunction:null})},x:(e,t,n,a)=>{function i(){}t=Z(t),i.values={},te(e,{name:t,constructor:i,fromWireType:function(e){return this.constructor.values[e]},toWireType:(e,t)=>t.value,argPackAdvance:ae,readValueFromPointer:Xe(t,n,a),destructorFunction:null}),Ne(t,i)},h:(e,t,n)=>{var a=Je(e,"enum");t=Z(t);var i=a.constructor,o=Object.create(a.constructor.prototype,{value:{value:n},constructor:{value:Ee("".concat(a.name,"_").concat(t),function(){})}});i.values[n]=o,i[t]=o},L:(e,t,n)=>{te(e,{name:t=Z(t),fromWireType:e=>e,toWireType:(e,t)=>t,argPackAdvance:ae,readValueFromPointer:Qe(t,n),destructorFunction:null})},M:(e,t,n,a,i,o,r)=>{var s=Re(t,n);e=Z(e),e=$e(e),i=Be(a,i),Ne(e,function(){ze("Cannot call ".concat(e," due to unbound types"),s)},t-1),Q([],s,function(n){var a=[n[0],null].concat(n.slice(1));return Te(e,Fe(e,a,null,i,o),t-1),[]})},t:(e,t,n,a,i)=>{t=Z(t);var o=e=>e;if(0===a){var r=32-8*n;o=e=>e<<r>>>r}var s,l=t.includes("unsigned");s=l?function(e,t){return this.name,t>>>0}:function(e,t){return this.name,t},te(e,{name:t,fromWireType:o,toWireType:s,argPackAdvance:ae,readValueFromPointer:Ze(t,n,0!==a),destructorFunction:null})},o:(e,t,n)=>{var a=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array][t];function i(e){var t=y[e>>2],n=y[e+4>>2];return new a(f.buffer,n,t)}te(e,{name:n=Z(n),fromWireType:i,argPackAdvance:ae,readValueFromPointer:i},{ignoreDuplicateRegistrations:!0})},K:(e,t)=>{var n="std::string"===(t=Z(t));te(e,{name:t,fromWireType(e){var t,a=y[e>>2],i=e+4;if(n)for(var o=i,r=0;r<=a;++r){var s=i+r;if(r==a||0==v[s]){var l=at(o,s-o);void 0===t?t=l:(t+="\0",t+=l),o=s+1}}else{var c=new Array(a);for(r=0;r<a;++r)c[r]=String.fromCharCode(v[i+r]);t=c.join("")}return Nt(e),t},toWireType(e,t){t instanceof ArrayBuffer&&(t=new Uint8Array(t));var a,i="string"==typeof t;i||t instanceof Uint8Array||t instanceof Uint8ClampedArray||t instanceof Int8Array||ee("Cannot pass non-string to std::string"),a=n&&i?tt(t):t.length;var o=It(4+a+1),r=o+4;if(y[o>>2]=a,n&&i)((e,t,n)=>{et(e,v,t,n)})(t,r,a+1);else if(i)for(var s=0;s<a;++s){var l=t.charCodeAt(s);l>255&&(Nt(r),ee("String has UTF-16 code units that do not fit in 8 bits")),v[r+s]=l}else for(s=0;s<a;++s)v[r+s]=t[s];return null!==e&&e.push(Nt,o),o},argPackAdvance:ae,readValueFromPointer:Me,destructorFunction(e){Nt(e)}})},C:(e,t,n)=>{var a,i,o,r,s;n=Z(n),2===t?(a=ot,i=rt,r=st,o=()=>g,s=1):4===t&&(a=lt,i=ct,r=ut,o=()=>y,s=2),te(e,{name:n,fromWireType:e=>{for(var n,i=y[e>>2],r=o(),l=e+4,c=0;c<=i;++c){var u=e+4+c*t;if(c==i||0==r[u>>s]){var d=a(l,u-l);void 0===n?n=d:(n+="\0",n+=d),l=u+t}}return Nt(e),n},toWireType:(e,a)=>{"string"!=typeof a&&ee("Cannot pass non-string to C++ string type ".concat(n));var o=r(a),l=It(4+o+t);return y[l>>2]=o>>s,i(a,l+4,o+t),null!==e&&e.push(Nt,l),l},argPackAdvance:ae,readValueFromPointer:q,destructorFunction(e){Nt(e)}})},A:(e,t,n,a,i,o)=>{F[e]={name:Z(t),rawConstructor:Be(n,a),rawDestructor:Be(i,o),fields:[]}},ea:(e,t,n,a,i,o,r,s,l,c)=>{F[e].fields.push({fieldName:Z(t),getterReturnType:n,getter:Be(a,i),getterContext:o,setterArgumentType:r,setter:Be(s,l),setterContext:c})},$:(e,t)=>{te(e,{isVoid:!0,name:t=Z(t),argPackAdvance:0,fromWireType:()=>{},toWireType:(e,t)=>{}})},R:(e,t,n,a)=>(e=dt[e])(null,t=Ye.toValue(t),n,a),ha:He,fa:e=>0===e?Ye.toHandle(pt()):(e=(e=>{var t=ht[e];return void 0===t?Z(e):t})(e),Ye.toHandle(pt()[e])),Z:(e,t,n)=>{var a=((e,t)=>{for(var n=new Array(e),a=0;a<e;++a)n[a]=Je(y[t+4*a>>2],"parameter "+a);return n})(e,t),i=a.shift();e--;var o=new Array(e),r="methodCaller<(".concat(a.map(e=>e.name).join(", "),") => ").concat(i.name,">");return(e=>{var t=dt.length;return dt.push(e),t})(Ee(r,(t,r,s,l)=>{for(var c=0,u=0;u<e;++u)o[u]=a[u].readValueFromPointer(l+c),c+=a[u].argPackAdvance;var d=1===n?ft(r,o):r.apply(t,o);for(u=0;u<e;++u){var h,p;null===(h=(p=a[u]).deleteObject)||void 0===h||h.call(p,o[u])}return((e,t,n)=>{var a=[],i=e.toWireType(a,n);return a.length&&(y[t>>2]=Ye.toHandle(a)),i})(i,s,d)}))},N:e=>{e>4&&(We.get(e).refcount+=1)},O:e=>{var t=Ye.toValue(e);$(t),He(e)},aa:(e,t)=>{var n=(e=Je(e,"_emval_take_value")).readValueFromPointer(t);return Ye.toHandle(n)},B:()=>{x("")},X:(e,t,n)=>v.copyWithin(e,t,t+n),W:e=>{var t=v.length,n=2147483648;if((e>>>=0)>n)return!1;for(var a=(e,t)=>e+(t-e%t)%t,i=1;i<=4;i*=2){var o=t*(1+.2/i);o=Math.min(o,e+100663296);var r=Math.min(n,a(Math.max(e,o),65536));if(vt(r))return!0}return!1},T:(e,t)=>{var n=0;return gt().forEach((a,i)=>{var o=t+n;y[e+4*i>>2]=o,((e,t)=>{for(var n=0;n<e.length;++n)f[0|t++]=e.charCodeAt(n);f[0|t]=0})(a,o),n+=a.length+1}),0},U:(e,t)=>{var n=gt();y[e>>2]=n.length;var a=0;return n.forEach(e=>a+=e.length+1),y[t>>2]=a,0},E:function(e,t,n,a){var i=St();try{return Le(e)(t,n,a)}catch(e){if(Mt(i),e!==e+0)throw e;kt(1,0)}},D:function(e,t,n,a,i){var o=St();try{return Le(e)(t,n,a,i)}catch(e){if(Mt(o),e!==e+0)throw e;kt(1,0)}},F:function(e,t,n,a){var i=St();try{return Le(e)(t,n,a)}catch(e){if(Mt(i),e!==e+0)throw e;kt(1,0)}},n:function(e){var t=St();try{return Le(e)()}catch(e){if(Mt(t),e!==e+0)throw e;kt(1,0)}},a:function(e,t){var n=St();try{return Le(e)(t)}catch(e){if(Mt(n),e!==e+0)throw e;kt(1,0)}},e:function(e,t,n){var a=St();try{return Le(e)(t,n)}catch(e){if(Mt(a),e!==e+0)throw e;kt(1,0)}},m:function(e,t,n,a){var i=St();try{return Le(e)(t,n,a)}catch(e){if(Mt(i),e!==e+0)throw e;kt(1,0)}},k:function(e,t,n,a,i){var o=St();try{return Le(e)(t,n,a,i)}catch(e){if(Mt(o),e!==e+0)throw e;kt(1,0)}},H:function(e,t,n,a,i,o){var r=St();try{return Le(e)(t,n,a,i,o)}catch(e){if(Mt(r),e!==e+0)throw e;kt(1,0)}},v:function(e,t,n,a,i,o,r){var s=St();try{return Le(e)(t,n,a,i,o,r)}catch(e){if(Mt(s),e!==e+0)throw e;kt(1,0)}},G:function(e,t,n,a,i,o,r,s){var l=St();try{return Le(e)(t,n,a,i,o,r,s)}catch(e){if(Mt(l),e!==e+0)throw e;kt(1,0)}},z:function(e,t,n,a,i,o,r,s,l,c,u,d){var h=St();try{return Le(e)(t,n,a,i,o,r,s,l,c,u,d)}catch(e){if(Mt(h),e!==e+0)throw e;kt(1,0)}},P:function(e,t,n,a,i){var o=St();try{return Lt(e,t,n,a,i)}catch(e){if(Mt(o),e!==e+0)throw e;kt(1,0)}},l:function(e){var t=St();try{Le(e)()}catch(e){if(Mt(t),e!==e+0)throw e;kt(1,0)}},j:function(e,t){var n=St();try{Le(e)(t)}catch(e){if(Mt(n),e!==e+0)throw e;kt(1,0)}},c:function(e,t,n){var a=St();try{Le(e)(t,n)}catch(e){if(Mt(a),e!==e+0)throw e;kt(1,0)}},p:function(e,t,n,a){var i=St();try{Le(e)(t,n,a)}catch(e){if(Mt(i),e!==e+0)throw e;kt(1,0)}},I:function(e,t,n,a,i){var o=St();try{Le(e)(t,n,a,i)}catch(e){if(Mt(o),e!==e+0)throw e;kt(1,0)}},r:function(e,t,n,a,i,o,r,s){var l=St();try{Le(e)(t,n,a,i,o,r,s)}catch(e){if(Mt(l),e!==e+0)throw e;kt(1,0)}},i:function(e,t,n,a,i,o,r,s,l,c,u){var d=St();try{Le(e)(t,n,a,i,o,r,s,l,c,u)}catch(e){if(Mt(d),e!==e+0)throw e;kt(1,0)}},y:function(e,t,n,a,i,o,r,s,l,c,u,d,h,p,f,v){var m=St();try{Le(e)(t,n,a,i,o,r,s,l,c,u,d,h,p,f,v)}catch(e){if(Mt(m),e!==e+0)throw e;kt(1,0)}},ga:e=>e,S:(e,t,n,a,i)=>_t(e,t,n,a)},Pt=function(){var e={a:Et};function t(e,t){return Pt=e.exports,p=Pt.ia,P(),Oe=Pt.ma,function(e){I.unshift(e)}(Pt.ja),function(){var e;if(S--,null===(e=i.monitorRunDependencies)||void 0===e||e.call(i,S),0==S&&M){var t=M;M=null,t()}}(),Pt}if(function(){var e;S++,null===(e=i.monitorRunDependencies)||void 0===e||e.call(i,S)}(),i.instantiateWasm)try{return i.instantiateWasm(e,t)}catch(e){h("Module.instantiateWasm callback failed with error: ".concat(e)),a(e)}return function(e,t,n,a){return e||"function"!=typeof WebAssembly.instantiateStreaming||D(t)||"function"!=typeof fetch?j(t,n,a):fetch(t,{credentials:"same-origin"}).then(e=>WebAssembly.instantiateStreaming(e,n).then(a,function(e){return h("wasm streaming compile failed: ".concat(e)),h("falling back to ArrayBuffer instantiation"),j(t,n,a)}))}(d,O,e,function(e){t(e.instance)}).catch(a),{}}(),Nt=i._free=e=>(Nt=i._free=Pt.ka)(e),It=i._malloc=e=>(It=i._malloc=Pt.la)(e),At=e=>(At=Pt.na)(e),kt=(e,t)=>(kt=Pt.oa)(e,t),Ct=e=>(Ct=Pt.pa)(e),St=()=>(St=Pt.qa)(),Mt=e=>(Mt=Pt.ra)(e),xt=e=>(xt=Pt.sa)(e),Ot=e=>(Ot=Pt.ta)(e),Dt=(e,t,n)=>(Dt=Pt.ua)(e,t,n),Tt=e=>(Tt=Pt.va)(e);i.dynCall_viijii=(e,t,n,a,o,r,s)=>(i.dynCall_viijii=Pt.wa)(e,t,n,a,o,r,s);var jt,Lt=i.dynCall_jiiii=(e,t,n,a,o)=>(Lt=i.dynCall_jiiii=Pt.xa)(e,t,n,a,o);function Vt(){function e(){jt||(jt=!0,i.calledRun=!0,!E&&(L(I),n(i),i.onRuntimeInitialized&&i.onRuntimeInitialized(),function(){if(i.postRun)for("function"==typeof i.postRun&&(i.postRun=[i.postRun]);i.postRun.length;)C(i.postRun.shift());L(A)}()))}S>0||(function(){if(i.preRun)for("function"==typeof i.preRun&&(i.preRun=[i.preRun]);i.preRun.length;)k(i.preRun.shift());L(N)}(),S>0)||(i.setStatus?(i.setStatus("Running..."),setTimeout(function(){setTimeout(function(){i.setStatus("")},1),e()},1)):e())}if(i.dynCall_iiiiij=(e,t,n,a,o,r,s)=>(i.dynCall_iiiiij=Pt.ya)(e,t,n,a,o,r,s),i.dynCall_iiiiijj=(e,t,n,a,o,r,s,l,c)=>(i.dynCall_iiiiijj=Pt.za)(e,t,n,a,o,r,s,l,c),i.dynCall_iiiiiijj=(e,t,n,a,o,r,s,l,c,u)=>(i.dynCall_iiiiiijj=Pt.Aa)(e,t,n,a,o,r,s,l,c,u),M=function e(){jt||Vt(),jt||(M=e)},i.preInit)for("function"==typeof i.preInit&&(i.preInit=[i.preInit]);i.preInit.length>0;)i.preInit.pop()();return Vt(),t.ready}})();async function or(e,t){return async function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Ko;const a={...Ko,...n},i=await nr(e),{size:o}=t,r=new Uint8Array(await t.arrayBuffer()),s=i._malloc(o);i.HEAPU8.set(r,s);const l=i.readBarcodesFromImage(s,o,Qo(i,a));i._free(s);const c=[];for(let e=0;e<l.size();++e)c.push(Zo(l.get(e)));return c}(ir,e,t)}async function rr(e,t){return async function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Ko;const a={...Ko,...n},i=await nr(e),{data:o,width:r,height:s,data:{byteLength:l}}=t,c=i._malloc(l);i.HEAPU8.set(o,c);const u=i.readBarcodesFromPixmap(c,r,s,Qo(i,a));i._free(c);const d=[];for(let e=0;e<u.size();++e)d.push(Zo(u.get(e)));return d}(ir,e,t)}let sr=class extends EventTarget{constructor(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};var t;super(),((e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)})(this,ar,void 0);try{const n=null==(t=null==e?void 0:e.formats)?void 0:t.filter(e=>"unknown"!==e);if(0===(null==n?void 0:n.length))throw new TypeError("Hint option provided, but is empty.");null==n||n.forEach(e=>{if(!Co.has(e))throw new TypeError("Failed to read the 'formats' property from 'BarcodeDetectorOptions': The provided value '".concat(e,"' is not a valid enum value of type BarcodeFormat."))}),((e,t,n)=>{No(e,t,"write to private field"),t.set(e,n)})(this,ar,null!=n?n:[]),function(e){return nr(ir,e)}().then(e=>{this.dispatchEvent(new CustomEvent("load",{detail:e}))}).catch(e=>{this.dispatchEvent(new CustomEvent("error",{detail:e}))})}catch(e){throw zo(e,"Failed to construct 'BarcodeDetector'")}}static async getSupportedFormats(){return ko.filter(e=>"unknown"!==e)}async detect(e){try{const t=await Uo(e);if(null===t)return[];let n;try{n=Vo(t)?await or(t,{tryHarder:!0,formats:Io(this,ar).map(e=>Co.get(e))}):await rr(t,{tryHarder:!0,formats:Io(this,ar).map(e=>Co.get(e))})}catch(e){throw console.error(e),new DOMException("Barcode detection service unavailable.","NotSupportedError")}return n.map(e=>{const{topLeft:{x:t,y:n},topRight:{x:a,y:i},bottomLeft:{x:o,y:r},bottomRight:{x:s,y:l}}=e.position,c=Math.min(t,a,o,s),u=Math.min(n,i,r,l),d=Math.max(t,a,o,s),h=Math.max(n,i,r,l);return{boundingBox:new DOMRectReadOnly(c,u,d-c,h-u),rawValue:e.text,format:So(e.format),cornerPoints:[{x:t,y:n},{x:a,y:i},{x:s,y:l},{x:o,y:r}]}})}catch(e){throw zo(e,"Failed to execute 'detect' on 'BarcodeDetector'")}}};ar=new WeakMap;const lr=function(e,t){let n,a,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"error";const o=new Promise((o,r)=>{n=o,a=r,e.addEventListener(t,n),e.addEventListener(i,a)});return o.finally(()=>{e.removeEventListener(t,n),e.removeEventListener(i,a)}),o},cr=e=>new Promise(t=>setTimeout(t,e));class ur extends Error{constructor(){super("this browser has no Stream API support"),this.name="StreamApiNotSupportedError"}}class dr extends Error{constructor(){super("camera access is only permitted in secure context. Use HTTPS or localhost rather than HTTP."),this.name="InsecureContextError"}}class hr extends Error{constructor(){super("Loading camera stream timed out after 6 seconds. If you are on iOS in PWA mode, this is a known issue (see https://github.com/gruhn/vue-qrcode-reader/issues/298)"),this.name="StreamLoadTimeoutError"}}let pr;async function fr(e){pr=await async function(e){if(void 0===window.BarcodeDetector)return console.debug("[vue-qrcode-reader] Native BarcodeDetector not supported. Will use polyfill."),new sr({formats:e});const t=await window.BarcodeDetector.getSupportedFormats(),n=e.filter(e=>!t.includes(e));return n.length>0?(console.debug("[vue-qrcode-reader] Native BarcodeDetector does not support formats ".concat(JSON.stringify(n),". Will use polyfill.")),new sr({formats:e})):(console.debug("[vue-qrcode-reader] Will use native BarcodeDetector."),new window.BarcodeDetector({formats:e}))}(e)}var vr={},mr={};Object.defineProperty(mr,"__esModule",{value:!0}),mr.compactObject=function e(t){return Er(t)?Object.keys(t).reduce(function(n,a){var i=Er(t[a]),o=i?e(t[a]):t[a],r=i&&!Object.keys(o).length;return void 0===o||r?n:Object.assign(n,function(e,t,n){return t=function(e){var t=function(e,t){if("object"!==br(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t);if("object"!==br(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===br(t)?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},a,o))},{}):t},mr.deprecated=function(e,t){wr&&console.warn(e+" is deprecated, please use "+t+" instead.")};var gr=mr.detectBrowser=function(e){var t={browser:null,version:null};if(typeof e>"u"||!e.navigator||!e.navigator.userAgent)return t.browser="Not a browser.",t;var n=e.navigator;if(n.mozGetUserMedia)t.browser="firefox",t.version=_r(n.userAgent,/Firefox\/(\d+)\./,1);else if(n.webkitGetUserMedia||!1===e.isSecureContext&&e.webkitRTCPeerConnection)t.browser="chrome",t.version=_r(n.userAgent,/Chrom(e|ium)\/(\d+)\./,2);else{if(!e.RTCPeerConnection||!n.userAgent.match(/AppleWebKit\/(\d+)\./))return t.browser="Not a supported browser.",t;t.browser="safari",t.version=_r(n.userAgent,/AppleWebKit\/(\d+)\./,1),t.supportsUnifiedPlan=e.RTCRtpTransceiver&&"currentDirection"in e.RTCRtpTransceiver.prototype}return t};function br(e){return br="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},br(e)}mr.disableLog=function(e){return"boolean"!=typeof e?new Error("Argument type: "+br(e)+". Please use a boolean."):(yr=e,e?"adapter.js logging disabled":"adapter.js logging enabled")},mr.disableWarnings=function(e){return"boolean"!=typeof e?new Error("Argument type: "+br(e)+". Please use a boolean."):(wr=!e,"adapter.js deprecation warnings "+(e?"disabled":"enabled"))},mr.extractVersion=_r,mr.filterStats=function(e,t,n){var a=n?"outbound-rtp":"inbound-rtp",i=new Map;if(null===t)return i;var o=[];return e.forEach(function(e){"track"===e.type&&e.trackIdentifier===t.id&&o.push(e)}),o.forEach(function(t){e.forEach(function(n){n.type===a&&n.trackId===t.id&&Pr(e,n,i)})}),i},mr.log=function(){if("object"===(typeof window>"u"?"undefined":br(window))){if(yr)return;typeof console<"u"&&"function"==typeof console.log&&console.log.apply(console,arguments)}},mr.walkStats=Pr,mr.wrapPeerConnectionEvent=function(e,t,n){if(e.RTCPeerConnection){var a=e.RTCPeerConnection.prototype,i=a.addEventListener;a.addEventListener=function(e,a){if(e!==t)return i.apply(this,arguments);var o=function(e){var t=n(e);t&&(a.handleEvent?a.handleEvent(t):a(t))};return this._eventMap=this._eventMap||{},this._eventMap[t]||(this._eventMap[t]=new Map),this._eventMap[t].set(a,o),i.apply(this,[e,o])};var o=a.removeEventListener;a.removeEventListener=function(e,n){if(e!==t||!this._eventMap||!this._eventMap[t])return o.apply(this,arguments);if(!this._eventMap[t].has(n))return o.apply(this,arguments);var a=this._eventMap[t].get(n);return this._eventMap[t].delete(n),0===this._eventMap[t].size&&delete this._eventMap[t],0===Object.keys(this._eventMap).length&&delete this._eventMap,o.apply(this,[e,a])},Object.defineProperty(a,"on"+t,{get:function(){return this["_on"+t]},set:function(e){this["_on"+t]&&(this.removeEventListener(t,this["_on"+t]),delete this["_on"+t]),e&&this.addEventListener(t,this["_on"+t]=e)},enumerable:!0,configurable:!0})}};var yr=!0,wr=!0;function _r(e,t,n){var a=e.match(t);return a&&a.length>=n&&parseInt(a[n],10)}function Er(e){return"[object Object]"===Object.prototype.toString.call(e)}function Pr(e,t,n){!t||n.has(t.id)||(n.set(t.id,t),Object.keys(t).forEach(function(a){a.endsWith("Id")?Pr(e,e.get(t[a]),n):a.endsWith("Ids")&&t[a].forEach(function(t){Pr(e,e.get(t),n)})}))}Object.defineProperty(vr,"__esModule",{value:!0});var Nr=vr.shimGetUserMedia=function(e,t){var n=e&&e.navigator;if(n.mediaDevices){var a=function(e){if("object"!==kr(e)||e.mandatory||e.optional)return e;var t={};return Object.keys(e).forEach(function(n){if("require"!==n&&"advanced"!==n&&"mediaSource"!==n){var a="object"===kr(e[n])?e[n]:{ideal:e[n]};void 0!==a.exact&&"number"==typeof a.exact&&(a.min=a.max=a.exact);var i=function(e,t){return e?e+t.charAt(0).toUpperCase()+t.slice(1):"deviceId"===t?"sourceId":t};if(void 0!==a.ideal){t.optional=t.optional||[];var o={};"number"==typeof a.ideal?(o[i("min",n)]=a.ideal,t.optional.push(o),(o={})[i("max",n)]=a.ideal,t.optional.push(o)):(o[i("",n)]=a.ideal,t.optional.push(o))}void 0!==a.exact&&"number"!=typeof a.exact?(t.mandatory=t.mandatory||{},t.mandatory[i("",n)]=a.exact):["min","max"].forEach(function(e){void 0!==a[e]&&(t.mandatory=t.mandatory||{},t.mandatory[i(e,n)]=a[e])})}}),e.advanced&&(t.optional=(t.optional||[]).concat(e.advanced)),t},i=function(e,i){if(t.version>=61)return i(e);if((e=JSON.parse(JSON.stringify(e)))&&"object"===kr(e.audio)){var o=function(e,t,n){t in e&&!(n in e)&&(e[n]=e[t],delete e[t])};o((e=JSON.parse(JSON.stringify(e))).audio,"autoGainControl","googAutoGainControl"),o(e.audio,"noiseSuppression","googNoiseSuppression"),e.audio=a(e.audio)}if(e&&"object"===kr(e.video)){var r=e.video.facingMode;r=r&&("object"===kr(r)?r:{ideal:r});var s,l=t.version<66;if(r&&("user"===r.exact||"environment"===r.exact||"user"===r.ideal||"environment"===r.ideal)&&(!n.mediaDevices.getSupportedConstraints||!n.mediaDevices.getSupportedConstraints().facingMode||l))if(delete e.video.facingMode,"environment"===r.exact||"environment"===r.ideal?s=["back","rear"]:("user"===r.exact||"user"===r.ideal)&&(s=["front"]),s)return n.mediaDevices.enumerateDevices().then(function(t){t=t.filter(function(e){return"videoinput"===e.kind});var n=t.find(function(e){return s.some(function(t){return e.label.toLowerCase().includes(t)})});return!n&&t.length&&s.includes("back")&&(n=t[t.length-1]),n&&(e.video.deviceId=r.exact?{exact:n.deviceId}:{ideal:n.deviceId}),e.video=a(e.video),Cr("chrome: "+JSON.stringify(e)),i(e)});e.video=a(e.video)}return Cr("chrome: "+JSON.stringify(e)),i(e)},o=function(e){return t.version>=64?e:{name:{PermissionDeniedError:"NotAllowedError",PermissionDismissedError:"NotAllowedError",InvalidStateError:"NotAllowedError",DevicesNotFoundError:"NotFoundError",ConstraintNotSatisfiedError:"OverconstrainedError",TrackStartError:"NotReadableError",MediaDeviceFailedDueToShutdown:"NotAllowedError",MediaDeviceKillSwitchOn:"NotAllowedError",TabCaptureError:"AbortError",ScreenCaptureError:"AbortError",DeviceCaptureError:"AbortError"}[e.name]||e.name,message:e.message,constraint:e.constraint||e.constraintName,toString:function(){return this.name+(this.message&&": ")+this.message}}};if(n.getUserMedia=function(e,t,a){i(e,function(e){n.webkitGetUserMedia(e,t,function(e){a&&a(o(e))})})}.bind(n),n.mediaDevices.getUserMedia){var r=n.mediaDevices.getUserMedia.bind(n.mediaDevices);n.mediaDevices.getUserMedia=function(e){return i(e,function(e){return r(e).then(function(t){if(e.audio&&!t.getAudioTracks().length||e.video&&!t.getVideoTracks().length)throw t.getTracks().forEach(function(e){e.stop()}),new DOMException("","NotFoundError");return t},function(e){return Promise.reject(o(e))})})}}}},Ir=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!==kr(e)&&"function"!=typeof e)return{default:e};var n=Ar(t);if(n&&n.has(e))return n.get(e);var a={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var r=i?Object.getOwnPropertyDescriptor(e,o):null;r&&(r.get||r.set)?Object.defineProperty(a,o,r):a[o]=e[o]}return a.default=e,n&&n.set(e,a),a}(mr);function Ar(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(Ar=function(e){return e?n:t})(e)}function kr(e){return kr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},kr(e)}var Cr=Ir.log;var Sr={};Object.defineProperty(Sr,"__esModule",{value:!0});var Mr=Sr.shimGetUserMedia=function(e,t){var n=e&&e.navigator,a=e&&e.MediaStreamTrack;if(n.getUserMedia=function(e,t,a){xr.deprecated("navigator.getUserMedia","navigator.mediaDevices.getUserMedia"),n.mediaDevices.getUserMedia(e).then(t,a)},!(t.version>55&&"autoGainControl"in n.mediaDevices.getSupportedConstraints())){var i=function(e,t,n){t in e&&!(n in e)&&(e[n]=e[t],delete e[t])},o=n.mediaDevices.getUserMedia.bind(n.mediaDevices);if(n.mediaDevices.getUserMedia=function(e){return"object"===Dr(e)&&"object"===Dr(e.audio)&&(e=JSON.parse(JSON.stringify(e)),i(e.audio,"autoGainControl","mozAutoGainControl"),i(e.audio,"noiseSuppression","mozNoiseSuppression")),o(e)},a&&a.prototype.getSettings){var r=a.prototype.getSettings;a.prototype.getSettings=function(){var e=r.apply(this,arguments);return i(e,"mozAutoGainControl","autoGainControl"),i(e,"mozNoiseSuppression","noiseSuppression"),e}}if(a&&a.prototype.applyConstraints){var s=a.prototype.applyConstraints;a.prototype.applyConstraints=function(e){return"audio"===this.kind&&"object"===Dr(e)&&(e=JSON.parse(JSON.stringify(e)),i(e,"autoGainControl","mozAutoGainControl"),i(e,"noiseSuppression","mozNoiseSuppression")),s.apply(this,[e])}}}},xr=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!==Dr(e)&&"function"!=typeof e)return{default:e};var n=Or(t);if(n&&n.has(e))return n.get(e);var a={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var r=i?Object.getOwnPropertyDescriptor(e,o):null;r&&(r.get||r.set)?Object.defineProperty(a,o,r):a[o]=e[o]}return a.default=e,n&&n.set(e,a),a}(mr);function Or(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(Or=function(e){return e?n:t})(e)}function Dr(e){return Dr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Dr(e)}var Tr={};Object.defineProperty(Tr,"__esModule",{value:!0}),Tr.shimAudioContext=function(e){"object"!==Br(e)||e.AudioContext||(e.AudioContext=e.webkitAudioContext)},Tr.shimCallbacksAPI=function(e){if("object"===Br(e)&&e.RTCPeerConnection){var t=e.RTCPeerConnection.prototype,n=t.createOffer,a=t.createAnswer,i=t.setLocalDescription,o=t.setRemoteDescription,r=t.addIceCandidate;t.createOffer=function(e,t){var a=arguments.length>=2?arguments[2]:arguments[0],i=n.apply(this,[a]);return t?(i.then(e,t),Promise.resolve()):i},t.createAnswer=function(e,t){var n=arguments.length>=2?arguments[2]:arguments[0],i=a.apply(this,[n]);return t?(i.then(e,t),Promise.resolve()):i};var s=function(e,t,n){var a=i.apply(this,[e]);return n?(a.then(t,n),Promise.resolve()):a};t.setLocalDescription=s,s=function(e,t,n){var a=o.apply(this,[e]);return n?(a.then(t,n),Promise.resolve()):a},t.setRemoteDescription=s,s=function(e,t,n){var a=r.apply(this,[e]);return n?(a.then(t,n),Promise.resolve()):a},t.addIceCandidate=s}},Tr.shimConstraints=Ur,Tr.shimCreateOfferLegacy=function(e){var t=e.RTCPeerConnection.prototype.createOffer;e.RTCPeerConnection.prototype.createOffer=function(e){if(e){typeof e.offerToReceiveAudio<"u"&&(e.offerToReceiveAudio=!!e.offerToReceiveAudio);var n=this.getTransceivers().find(function(e){return"audio"===e.receiver.track.kind});!1===e.offerToReceiveAudio&&n?"sendrecv"===n.direction?n.setDirection?n.setDirection("sendonly"):n.direction="sendonly":"recvonly"===n.direction&&(n.setDirection?n.setDirection("inactive"):n.direction="inactive"):!0===e.offerToReceiveAudio&&!n&&this.addTransceiver("audio",{direction:"recvonly"}),typeof e.offerToReceiveVideo<"u"&&(e.offerToReceiveVideo=!!e.offerToReceiveVideo);var a=this.getTransceivers().find(function(e){return"video"===e.receiver.track.kind});!1===e.offerToReceiveVideo&&a?"sendrecv"===a.direction?a.setDirection?a.setDirection("sendonly"):a.direction="sendonly":"recvonly"===a.direction&&(a.setDirection?a.setDirection("inactive"):a.direction="inactive"):!0===e.offerToReceiveVideo&&!a&&this.addTransceiver("video",{direction:"recvonly"})}return t.apply(this,arguments)}};var jr=Tr.shimGetUserMedia=function(e){var t=e&&e.navigator;if(t.mediaDevices&&t.mediaDevices.getUserMedia){var n=t.mediaDevices,a=n.getUserMedia.bind(n);t.mediaDevices.getUserMedia=function(e){return a(Ur(e))}}!t.getUserMedia&&t.mediaDevices&&t.mediaDevices.getUserMedia&&(t.getUserMedia=function(e,n,a){t.mediaDevices.getUserMedia(e).then(n,a)}.bind(t))};Tr.shimLocalStreamsAPI=function(e){if("object"===Br(e)&&e.RTCPeerConnection){if("getLocalStreams"in e.RTCPeerConnection.prototype||(e.RTCPeerConnection.prototype.getLocalStreams=function(){return this._localStreams||(this._localStreams=[]),this._localStreams}),!("addStream"in e.RTCPeerConnection.prototype)){var t=e.RTCPeerConnection.prototype.addTrack;e.RTCPeerConnection.prototype.addStream=function(e){var n=this;this._localStreams||(this._localStreams=[]),this._localStreams.includes(e)||this._localStreams.push(e),e.getAudioTracks().forEach(function(a){return t.call(n,a,e)}),e.getVideoTracks().forEach(function(a){return t.call(n,a,e)})},e.RTCPeerConnection.prototype.addTrack=function(e){for(var n=this,a=arguments.length,i=new Array(a>1?a-1:0),o=1;o<a;o++)i[o-1]=arguments[o];return i&&i.forEach(function(e){n._localStreams?n._localStreams.includes(e)||n._localStreams.push(e):n._localStreams=[e]}),t.apply(this,arguments)}}"removeStream"in e.RTCPeerConnection.prototype||(e.RTCPeerConnection.prototype.removeStream=function(e){var t=this;this._localStreams||(this._localStreams=[]);var n=this._localStreams.indexOf(e);if(-1!==n){this._localStreams.splice(n,1);var a=e.getTracks();this.getSenders().forEach(function(e){a.includes(e.track)&&t.removeTrack(e)})}})}},Tr.shimRTCIceServerUrls=function(e){if(e.RTCPeerConnection){var t=e.RTCPeerConnection;e.RTCPeerConnection=function(e,n){if(e&&e.iceServers){for(var a=[],i=0;i<e.iceServers.length;i++){var o=e.iceServers[i];void 0===o.urls&&o.url?(Lr.deprecated("RTCIceServer.url","RTCIceServer.urls"),(o=JSON.parse(JSON.stringify(o))).urls=o.url,delete o.url,a.push(o)):a.push(e.iceServers[i])}e.iceServers=a}return new t(e,n)},e.RTCPeerConnection.prototype=t.prototype,"generateCertificate"in t&&Object.defineProperty(e.RTCPeerConnection,"generateCertificate",{get:function(){return t.generateCertificate}})}},Tr.shimRemoteStreamsAPI=function(e){if("object"===Br(e)&&e.RTCPeerConnection&&("getRemoteStreams"in e.RTCPeerConnection.prototype||(e.RTCPeerConnection.prototype.getRemoteStreams=function(){return this._remoteStreams?this._remoteStreams:[]}),!("onaddstream"in e.RTCPeerConnection.prototype))){Object.defineProperty(e.RTCPeerConnection.prototype,"onaddstream",{get:function(){return this._onaddstream},set:function(e){var t=this;this._onaddstream&&(this.removeEventListener("addstream",this._onaddstream),this.removeEventListener("track",this._onaddstreampoly)),this.addEventListener("addstream",this._onaddstream=e),this.addEventListener("track",this._onaddstreampoly=function(e){e.streams.forEach(function(e){if(t._remoteStreams||(t._remoteStreams=[]),!t._remoteStreams.includes(e)){t._remoteStreams.push(e);var n=new Event("addstream");n.stream=e,t.dispatchEvent(n)}})})}});var t=e.RTCPeerConnection.prototype.setRemoteDescription;e.RTCPeerConnection.prototype.setRemoteDescription=function(){var e=this;return this._onaddstreampoly||this.addEventListener("track",this._onaddstreampoly=function(t){t.streams.forEach(function(t){if(e._remoteStreams||(e._remoteStreams=[]),!(e._remoteStreams.indexOf(t)>=0)){e._remoteStreams.push(t);var n=new Event("addstream");n.stream=t,e.dispatchEvent(n)}})}),t.apply(e,arguments)}}},Tr.shimTrackEventTransceiver=function(e){"object"===Br(e)&&e.RTCTrackEvent&&"receiver"in e.RTCTrackEvent.prototype&&!("transceiver"in e.RTCTrackEvent.prototype)&&Object.defineProperty(e.RTCTrackEvent.prototype,"transceiver",{get:function(){return{receiver:this.receiver}}})};var Lr=function(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!==Br(e)&&"function"!=typeof e)return{default:e};var n=Vr(t);if(n&&n.has(e))return n.get(e);var a={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if("default"!==o&&Object.prototype.hasOwnProperty.call(e,o)){var r=i?Object.getOwnPropertyDescriptor(e,o):null;r&&(r.get||r.set)?Object.defineProperty(a,o,r):a[o]=e[o]}return a.default=e,n&&n.set(e,a),a}(mr);function Vr(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(Vr=function(e){return e?n:t})(e)}function Br(e){return Br="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Br(e)}function Ur(e){return e&&void 0!==e.video?Object.assign({},e,{video:Lr.compactObject(e.video)}):e}function zr(e,t){if(!1===e)throw new Error(null!=t?t:"assertion failure")}function Rr(e){throw new Error("this code should be unreachable")}const Fr=(e=>{let t,n=!1;return function(){for(var a=arguments.length,i=new Array(a),o=0;o<a;o++)i[o]=arguments[o];return n||(t=e(i),n=!0),t}})(()=>{const e=gr(window);switch(e.browser){case"chrome":Nr(window,e);break;case"firefox":Mr(window,e);break;case"safari":jr(window,e);break;default:throw new ur}});let $r=Promise.resolve({type:"stop",data:{}});async function qr(e,t,n){var a,i,o;if(console.debug("[vue-qrcode-reader] starting camera with constraints: ",JSON.stringify(t)),!0!==window.isSecureContext)throw new dr;if(void 0===(null==(a=null==navigator?void 0:navigator.mediaDevices)?void 0:a.getUserMedia))throw new ur;Fr(),console.debug("[vue-qrcode-reader] calling getUserMedia");const r=await navigator.mediaDevices.getUserMedia({audio:!1,video:t});void 0!==e.srcObject?e.srcObject=r:void 0!==e.mozSrcObject?e.mozSrcObject=r:window.URL.createObjectURL?e.src=window.URL.createObjectURL(r):window.webkitURL?e.src=window.webkitURL.createObjectURL(r):e.src=r.id,e.play(),console.debug("[vue-qrcode-reader] waiting for video element to load"),await Promise.race([lr(e,"loadeddata"),cr(6e3).then(()=>{throw new hr})]),console.debug("[vue-qrcode-reader] video element loaded"),await cr(500);const[s]=r.getVideoTracks(),l=null!=(o=null==(i=null==s?void 0:s.getCapabilities)?void 0:i.call(s))?o:{};let c=!1;return n&&l.torch&&(await s.applyConstraints({advanced:[{torch:!0}]}),c=!0),console.debug("[vue-qrcode-reader] camera ready"),{type:"start",data:{videoEl:e,stream:r,capabilities:l,constraints:t,isTorchOn:c}}}async function Wr(e,t,n){console.debug("[vue-qrcode-reader] stopping camera"),e.src="",e.srcObject=null,e.load(),await lr(e,"error");for(const e of t.getTracks())null!=n||await e.applyConstraints({advanced:[{torch:!1}]}),t.removeTrack(e),e.stop();return{type:"stop",data:{}}}async function Hr(){if($r=$r.then(e=>{if("stop"===e.type||"failed"===e.type)return e;const{data:{videoEl:t,stream:n,isTorchOn:a}}=e;return Wr(t,n,a)}),"start"===(await $r).type)throw new Error("Something went wrong with the camera task queue (stop task).")}const Gr=xe({__name:"QrcodeStream",props:{constraints:{type:Object,default:()=>({facingMode:"environment"})},formats:{type:Array,default:()=>["qr_code"]},paused:{type:Boolean,default:!1},torch:{type:Boolean,default:!1},track:{type:Function}},emits:["detect","camera-on","camera-off","error"],setup(e,t){let{emit:n}=t;const a=e,i=n,o=je(a.constraints),r=je(a.formats);$e(()=>a.constraints,(e,t)=>{JSON.stringify(e)!==JSON.stringify(t)&&(o.value=e)},{deep:!0}),$e(()=>a.formats,(e,t)=>{JSON.stringify(e)!==JSON.stringify(t)&&(r.value=e)},{deep:!0});const s=je(),l=je(),c=je(),u=je(!1),d=je(!1);Be(()=>{d.value=!0}),Ue(()=>{Hr()});const h=qe(()=>({torch:a.torch,constraints:o.value,shouldStream:d.value&&!a.paused}));$e(h,async e=>{const t=c.value;zr(void 0!==t,"cameraSettings watcher should never be triggered when component is not mounted. Thus video element should always be defined.");const n=s.value;zr(void 0!==n,"cameraSettings watcher should never be triggered when component is not mounted. Thus canvas should always be defined.");const a=n.getContext("2d");if(zr(null!==a,"if cavnas is defined, canvas 2d context should also be non-null"),e.shouldStream){Hr(),u.value=!1;try{const n=await async function(e,t){let{constraints:n,torch:a,restart:i=!1}=t;$r=$r.then(t=>{if("start"===t.type){const{data:{videoEl:o,stream:r,constraints:s,isTorchOn:l}}=t;return i||e!==o||n!==s||a!==l?Wr(o,r,l).then(()=>qr(e,n,a)):t}if("stop"===t.type||"failed"===t.type)return qr(e,n,a);Rr()}).catch(e=>(console.debug('[vue-qrcode-reader] starting camera failed with "'.concat(e,'"')),{type:"failed",error:e}));const o=await $r;if("stop"===o.type)throw new Error("Something went wrong with the camera task queue (start task).");if("failed"===o.type)throw o.error;if("start"===o.type)return o.data.capabilities;Rr()}(t,e);d.value?(u.value=!0,i("camera-on",n)):await Hr()}catch(e){i("error",e)}}else n.width=t.videoWidth,n.height=t.videoHeight,a.drawImage(t,0,0,t.videoWidth,t.videoHeight),Hr(),u.value=!1,i("camera-off")},{deep:!0}),$e(r,async e=>{d.value&&await fr(e)});const p=qe(()=>h.value.shouldStream&&u.value);$e(p,e=>{if(e){zr(void 0!==s.value,"shouldScan watcher should only be triggered when component is mounted. Thus pause frame canvas is defined"),f(s.value),zr(void 0!==l.value,"shouldScan watcher should only be triggered when component is mounted. Thus tracking canvas is defined"),f(l.value);const e=()=>void 0===a.track?500:40;zr(void 0!==c.value,"shouldScan watcher should only be triggered when component is mounted. Thus video element is defined"),(async(e,t)=>{let{detectHandler:n,locateHandler:a,minDelay:i,formats:o}=t;console.debug("[vue-qrcode-reader] start scanning"),await fr(o);const r=t=>async o=>{if(0===e.readyState)console.debug("[vue-qrcode-reader] stop scanning: video element readyState is 0");else{const{lastScanned:s,contentBefore:l,lastScanHadContent:c}=t;if(o-s<i)window.requestAnimationFrame(r(t));else{const t=await pr.detect(e),i=t.some(e=>!l.includes(e.rawValue));i&&n(t);const s=t.length>0;s&&a(t),!s&&c&&a(t);const u={lastScanned:o,lastScanHadContent:s,contentBefore:i?t.map(e=>e.rawValue):l};window.requestAnimationFrame(r(u))}}};r({lastScanned:performance.now(),contentBefore:[],lastScanHadContent:!1})(performance.now())})(c.value,{detectHandler:e=>i("detect",e),formats:r.value,locateHandler:v,minDelay:e()})}});const f=e=>{const t=e.getContext("2d");zr(null!==t,"canvas 2d context should always be non-null"),t.clearRect(0,0,e.width,e.height)},v=e=>{const t=l.value;zr(void 0!==t,"onLocate handler should only be called when component is mounted. Thus tracking canvas is always defined.");const n=c.value;if(zr(void 0!==n,"onLocate handler should only be called when component is mounted. Thus video element is always defined."),0===e.length||void 0===a.track)f(t);else{const i=n.offsetWidth,o=n.offsetHeight,r=n.videoWidth,s=n.videoHeight,l=Math.max(i/r,o/s),c=r*l,u=s*l,d=c/r,h=u/s,p=(i-c)/2,f=(o-u)/2,v=e=>{let{x:t,y:n}=e;return{x:Math.floor(t*d),y:Math.floor(n*h)}},m=e=>{let{x:t,y:n}=e;return{x:Math.floor(t+p),y:Math.floor(n+f)}},g=e.map(e=>{const{boundingBox:t,cornerPoints:n}=e,{x:a,y:i}=m(v({x:t.x,y:t.y})),{x:o,y:r}=v({x:t.width,y:t.height});return{...e,cornerPoints:n.map(e=>m(v(e))),boundingBox:DOMRectReadOnly.fromRect({x:a,y:i,width:o,height:r})}});t.width=n.offsetWidth,t.height=n.offsetHeight;const b=t.getContext("2d");a.track(g,b)}},m={width:"100%",height:"100%",position:"relative","z-index":"0"},g={width:"100%",height:"100%",position:"absolute",top:"0",left:"0"},b={width:"100%",height:"100%","object-fit":"cover"},y=qe(()=>p.value?b:{...b,visibility:"hidden",position:"absolute"});return(e,t)=>(He(),We("div",{style:m},[Ge("video",{ref_key:"videoRef",ref:c,style:Xe(y.value),autoplay:"",muted:"",playsinline:""},null,4),Ye(Ge("canvas",{id:"qrcode-stream-pause-frame",ref_key:"pauseFrameRef",ref:s,style:b},null,512),[[Je,!p.value]]),Ge("canvas",{id:"qrcode-stream-tracking-layer",ref_key:"trackingLayerRef",ref:l,style:g},null,512),Ge("div",{style:g},[Ke(e.$slots,"default")])]))}}),Yr=xe({components:{QrcodeStream:Gr},props:{opts:{type:Object,default:()=>({})}},setup(e,{emit:t}){const a=n("scan-qrcode"),{zIndex:i}=d(),o=i.increment(),r=je({facingMode:"environment"});return{ns:a,overlayZIndex:o,constraintsConfig:r,onDetect:e=>{var n,a;e.length>0&&(a=null==(n=e[0])?void 0:n.rawValue,t("dismiss",{ok:!0,value:a}))},onError:e=>{let t="[".concat(e.name,"]: ");switch(e.name){case"NotAllowedError":t+=ibiz.i18n.t("util.scanQrcode.notAllowedError");break;case"NotFoundError":t+=ibiz.i18n.t("util.scanQrcode.notFoundError");break;case"NotSupportedError":t+=ibiz.i18n.t("util.scanQrcode.notSupportedError");break;case"NotReadableError":t+=ibiz.i18n.t("util.scanQrcode.notReadableError");break;case"OverconstrainedError":t+=ibiz.i18n.t("util.scanQrcode.overconstrainedError");break;case"StreamApiNotSupportedError":t+=ibiz.i18n.t("util.scanQrcode.streamApiNotSupportedError");break;case"InsecureContextError":t+=ibiz.i18n.t("util.scanQrcode.insecureContextError");break;default:t+=e.message}ibiz.notification.error({desc:t})},onClose:()=>{t("dismiss",{ok:!1,value:""})}}},render(){return Oe("div",{class:this.ns.b(),style:{zIndex:this.overlayZIndex}},[Oe(De("qrcode-stream"),Te({class:"qrcode-wrap",constraints:this.constraintsConfig,onError:this.onError,onDetect:this.onDetect},this.opts),{default:()=>[Oe("div",{class:this.ns.e("scanner")},[Oe("div",{class:this.ns.e("line-box")},[Oe("div",{class:this.ns.em("line-box","row")},[Oe("div",{class:this.ns.em("line-box","line")},null)])]),Oe("div",{class:this.ns.e("close"),title:ibiz.i18n.t("app.close"),onClick:this.onClose},[Oe(De("van-icon"),{name:"clear"},null)])])]})])}});class Xr{async scanQrcode(e){return new u(Yr,{},e).onWillDismiss()}createQrcode(e,t){return new Po({data:unescape(encodeURIComponent(e)),...t})}}function Jr(e){const{buttonStyle:t,actionLevel:n}=e;let a="default";return t&&(a=t.toLowerCase()),"STYLE2"===t&&(a="primary"),"STYLE3"===t&&(a="inverse"),"STYLE4"===t&&(a="danger"),250===n&&(a="danger"),200===n&&(a="primary"),50===n&&(a="inverse"),a}function Kr(e,t,n,a="horizontal",i={}){if(!t)return"horizontal"===a?"right":"bottom";const{innerWidth:o,innerHeight:r}=window,s=function(e,t={}){const n=document.createElement("div");n.classList.add(e.b()),Object.assign(n.style,{position:"absolute",left:"-9999px",width:"var(".concat(e.cssVarBlockName("width-van-button"),")"),height:"var(".concat(e.cssVarBlockName("height-van-button"),")"),...t}),document.body.appendChild(n);const a=n.getBoundingClientRect();return document.body.removeChild(n),a}(e,i),{x:l,y:c,width:u}=t.getBoundingClientRect(),d=o-u-s.width;return c>(n?r-n*s.height:r/2)?"horizontal"===a?l>d?"left-end":"right-end":l>d?"top-end":"top-start":"horizontal"===a?l>d?"left-start":"right-start":l>d?"bottom-end":"bottom-start"}function Qr(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!Ve(e)}function Zr(e,t,n,a){const{name:i,groupMode:o,emptyText:r,pagingMode:s,controlStyle:l,controls:c=[],itemLayoutPanel:u,enablePagingBar:d,emptyTextLanguageRes:h}=t.model,p=je(!1),f=je(!0===d||3===s),v=qe(()=>t.state.items.length<t.state.total&&t.state.total>t.state.size),m=je(!1);t.evt.on("onLoadSuccess",()=>{d||3===s||(f.value=t.state.items.length>=t.state.total||t.state.total<=t.state.size)}),t.evt.on("onLoadError",()=>{p.value=!0,t.state.curPage-=1});const g=()=>{e.data&&(t.state.items=e.data.map(e=>new Nn(e)),t.afterLoad({},t.state.items))};t.evt.on("onCreated",async()=>{e.isSimple&&(g(),t.state.isSimple=!0,t.state.isLoaded=!0)}),t.evt.on("onLoadSuccess",()=>{m.value=!0,window.requestAnimationFrame(()=>{m.value=!1})}),$e(()=>e.data,()=>{e.isSimple&&g()},{deep:!0});const b=e=>-1!==t.state.selectedData.findIndex(t=>t.srfkey===e.srfkey),y=e=>{const t=b(e);return[n.b("item"),n.is("active",t)]},w=e=>{const t={};return Object.assign(t,n.cssVarBlock({"color-bg":"".concat(e.bgcolor||""),"color-text":"".concat(e.fontcolor||""),"color-item-active":"".concat(e.activecolor||"")})),t},_=e=>{const t=b(e);return Oe(De("van-checkbox"),{class:n.be("item","right"),checked:t},null)},E=e=>Oe("img",{class:n.b("image"),src:e.image,alt:""},null),P=()=>{let e=null;return 3===s&&v.value&&(e=Oe(De("iBizAddMore"),{onClick:()=>t.loadMore()},null)),e},N=e=>t.enableNew?Oe(De("iBizAddBtn"),{onAddClick:n=>{t.onClickNew(n,null==e?void 0:e.key)}},null):null,I=je(!1),A=qe(()=>{let e=!(!0===d||1===s||"NONE"!==o);return 3===s&&(e=e&&!v.value),I.value&&e});return{enableLoadMore:v,renderNoData:()=>{const{isLoaded:e}=t.state;if(!e)return;const a=c.find(e=>e.name==="".concat(i,"_quicktoolbar"));return a?Oe(De("iBizToolbarControl"),{modelData:a,context:t.context,params:t.params,class:n.b("quicktoolbar")},null):e&&Oe(De("iBizNoData"),{text:r,emptyTextLanguageRes:h},null)},renderItem:i=>"simplelist"!==e.modelData.name&&u?((i,o)=>{const{context:r,params:s}=t,c=y(i),u=w(i);"SELECT"!==e.mode&&"EXTVIEW1"!==l&&c.push("van-hairline--bottom");const d=Oe(De("iBizControlShell"),{data:i,class:c,style:u,modelData:o,context:r,params:s,onClick:e=>t.onRowClick(i,e)},Qr(a)?a:{default:()=>[a]});if("SELECT"===e.mode){const e=[n.b("select-item"),n.is("active",b(i))];return"EXTVIEW1"!==l&&e.push("van-hairline--bottom"),Oe("div",{class:e},[Oe(De("van-checkbox"),{class:n.be("select-item","left"),checked:b(i),onClick:e=>t.onRowClick(i,e)},null),d])}return d})(i,u):(n=>{if(a.default)return Ke(a,"default",{row:n,controller:t});const i=y(n),o=w(n),r={};return Object.prototype.hasOwnProperty.call(n,"image")&&n.image&&Object.assign(r,{icon:E(n)}),"SELECT"===e.mode&&Object.assign(r,{icon:_(n)}),Oe(De("van-cell"),{class:i,style:o,"is-link":!0,title:n.srfmajortext||"",onClick:e=>t.onRowClick(n,e)},Qr(r)?r:{default:()=>[r]})})(i),renderLoadMore:P,renderAddItem:N,renderScrollList:e=>{if(!t.state.isLoaded)return null;const a=!0===d||2!==s||"NONE"!==o;return Oe(De("van-list"),{class:[n.e("content"),n.is("show-under-line","EXTVIEW1"!==l)],offset:50,disabled:a,finished:f.value,error:p.value,"onUpdate:error":e=>p.value=e,loading:t.state.isLoading||m.value,"finished-text":A.value?ibiz.i18n.t("control.common.loadFinish"):void 0,onScroll:()=>I.value=!0,"loading-text":ibiz.i18n.t("control.common.loadMore"),"error-text":ibiz.i18n.t("control.common.loadError"),onLoad:()=>t.loadMore()},{default:()=>[e,P()]})},renderGroup:e=>{const a=t.state.groups.length>1&&t.showGroupAnchor,i=Oe("div",{class:n.b("group")},[Oe("div",{class:n.be("group","container")},[t.state.groups.map(t=>{let i=Oe("div",{class:n.be("group","caption")},[Qe(" "),t.caption]);if(a){const e=function(){return i}();i=Oe(De("van-index-anchor"),{index:t.caption},Qr(i)?i:{default:()=>[e]})}return Oe("div",{title:t.caption},[i,Oe("div",{class:n.be("group","item"),title:t.caption},[e.children&&e.children(t.children),N(t)])])})])]);if(a){const e=t.state.groups.map(e=>e.caption);return Oe(De("van-index-bar"),{sticky:!1,class:n.e("anchor"),"index-list":e},Qr(i)?i:{default:()=>[i]})}return i}}}e("cf",Xr);const es=e("cj",e=>{const t=[];let n="",a=0;for(let i=0;i<e.length;i++){const o=e[i];if("/"===o){if(0===a){n&&(t.push(n),n="");continue}n+=o}else"("===o?a+=1:")"===o&&(a-=1),n+=o}return n&&t.push(n),t}),ts=e("ck",e=>{if(e.length<3||e.length%2==0)return!1;const t=":[^()]+\\(\\[\\^/\\]\\+=\\[\\^/\\]\\+\\|".concat(ibiz.env.routePlaceholder,"\\)");for(let n=0;n<e.length;n++){const a=e[n];if(n%2==0){if(!new RegExp("^".concat(t,"$")).test(a)&&a!==ibiz.env.routePlaceholder)return!1}else{if(!new RegExp("^".concat("[^=/]+","$")).test(a))return!1}}return!0});function ns(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!Ve(e)}const as=xe({name:"IBizAIFeedback",props:{content:{type:String},modal:{type:Object,required:!0}},setup(e){const t=n("ai-feedback"),a=Le({description:"",feedbackItems:[]}),i=[{title:ibiz.i18n.t("util.aiChartUtil.regardingIssue"),children:[ibiz.i18n.t("util.aiChartUtil.understandProblem"),ibiz.i18n.t("util.aiChartUtil.forgotContext"),ibiz.i18n.t("util.aiChartUtil.notFollowingRequire")]},{title:ibiz.i18n.t("util.aiChartUtil.regardingResponse"),children:[ibiz.i18n.t("util.aiChartUtil.incorrectAswer"),ibiz.i18n.t("util.aiChartUtil.logicalConfusion"),ibiz.i18n.t("util.aiChartUtil.poorTimeliness"),ibiz.i18n.t("util.aiChartUtil.poorReadability"),ibiz.i18n.t("util.aiChartUtil.incompleteAnswer"),ibiz.i18n.t("util.aiChartUtil.unprofessional")]},{title:ibiz.i18n.t("util.aiChartUtil.report"),children:[ibiz.i18n.t("util.aiChartUtil.pornographicVulgar"),ibiz.i18n.t("util.aiChartUtil.politicallySensitive"),ibiz.i18n.t("util.aiChartUtil.illegalCriminal"),ibiz.i18n.t("util.aiChartUtil.discriminationPrejudice"),ibiz.i18n.t("util.aiChartUtil.violationPrivacy"),ibiz.i18n.t("util.aiChartUtil.contentInfringement")]}];return Be(()=>{(()=>{if(a.feedbackItems=i.map(e=>({title:e.title,value:void 0,children:[...e.children]})),e.content){const t=e.content.split(";").filter(e=>e.trim());if(t.length>0){t.slice(0,i.length).forEach((e,t)=>{a.feedbackItems[t].value=e});const e=t.slice(i.length);a.description=e.join(";")}}})()}),{ns:t,feedback:a,onCancel:()=>{e.modal.dismiss()},onConfirm:()=>{const t=a.feedbackItems.map(e=>e.value||"").filter(e=>!!e);t.push(a.description),e.modal.dismiss({ok:!0,data:[{feedbackContent:t.join(";")}]})}}},render(){let e,t;return Oe("div",{class:this.ns.b()},[Oe("div",{class:this.ns.e("header")},[Oe("div",{class:this.ns.em("header","title")},[ibiz.i18n.t("util.aiChartUtil.feedback")]),Oe(De("van-icon"),{name:"cross",class:this.ns.em("header","close-icon"),onClick:this.onCancel,title:ibiz.i18n.t("app.close")},null)]),Oe("div",{class:this.ns.e("content")},[this.feedback.feedbackItems.map(e=>{let t;return Oe("div",{class:this.ns.e("group")},[Oe("div",{class:this.ns.em("group","title")},[e.title]),Oe(De("van-radio-group"),{class:this.ns.em("group","container"),modelValue:e.value,"onUpdate:modelValue":t=>e.value=t},ns(t=e.children.map(e=>Oe(De("van-radio"),{class:this.ns.em("group","item"),name:e},ns(e)?e:{default:()=>[e]})))?t:{default:()=>[t]})])}),Oe("div",{class:this.ns.e("description")},[Oe("div",{class:this.ns.em("description","title")},[ibiz.i18n.t("util.aiChartUtil.description")]),Oe(De("van-field"),{class:this.ns.em("description","input"),rows:3,type:"textarea",modelValue:this.feedback.description,"onUpdate:modelValue":e=>this.feedback.description=e,placeholder:ibiz.i18n.t("util.aiChartUtil.placeholder")},null)])]),Oe("div",{class:this.ns.e("footer")},[Oe(De("van-button"),{class:this.ns.em("footer","button"),onClick:this.onCancel},ns(e=ibiz.i18n.t("app.cancel"))?e:{default:()=>[e]}),Oe(De("van-button"),{class:this.ns.em("footer","button"),type:"primary",onClick:this.onConfirm},ns(t=ibiz.i18n.t("app.confirm"))?t:{default:()=>[t]})])])}});var is=Object.defineProperty,os=(e,t,n)=>(((e,t,n)=>{t in e?is(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n),n);class rs{constructor(){os(this,"TOPIC_CHAT_PREFIX","topic"),os(this,"INLINE_CHAT_SUFFIX","inline"),os(this,"TEMP_CHAT_SUFFIX","temp"),os(this,"UNKOWN_CHAT_SUFFIX","unknow"),os(this,"PRE_ERROR_MESSAGE","Expected content-type to be text/event-stream, Actual: application/json;charset=UTF-8")}async getAIChat(){const e=await t.import("@ibiz-template-plugin/ibiz-mob-ai-chat");return e.chat||e.default.chat}async getEditorExAIChatParams(e,t,n,a,i,o){var r;const s={};if(e.autoclose)try{s.autoClose=JSON.parse(e.autoclose)}catch(e){ibiz.log.error(e)}e.openmode&&(s.openMode=e.openmode),e.containerheight&&(s.containerHeight=Number(e.containerheight));const l={locale:ibiz.i18n.getLang()};e.srfaiappendcurdata&&(l.appendCurData="true"===e.srfaiappendcurdata?a:void 0),l.appendCurContent=e.srfaiappendcurcontent?Ct.fill(e.srfaiappendcurcontent,t,n,a):void 0,l.autoQuestion="false"!==e.autoquestion,l.autoFill="true"===e.autofill,l.appendCurResource=e.srfaiappendresource?Ct.fill(e.srfaiappendresource,t,n,a):void 0,e.srfmode&&(l.srfMode=e.srfmode);let c=ibiz.config.common.enableAIAgentChange;e.srfenableaiagentchange&&(c="true"===e.srfenableaiagentchange),l.enableAIAgentChange=c,e.srfaiagent&&(l.activeAIAgentID=e.srfaiagent),e.srfscope&&(l.srfScope=e.srfscope),e.srfmcpservers&&(l.srfMcpservers=e.srfmcpservers),e.srfaiknowledgebases&&(l.selectAIKnowledgeBaseId=e.srfaiknowledgebases);let u=ibiz.config.common.enableKnowledgeBaseSelect;e.srfenableknowledgebaseselect&&(u="true"===e.srfenableknowledgebaseselect),l.enableKnowledgeBaseSelect=u;let d=ibiz.config.common.enableRecallConfigSetting;e.srfenablerecallconfigsetting&&(d="true"===e.srfenablerecallconfigsetting),l.enableRecallConfigSetting=d;let h=ibiz.config.common.reRankDefaultValue;e.rerankdefaultvalue&&(h=Number(e.rerankdefaultvalue)),l.reRankDefaultValue=h;let p=ibiz.config.common.maxChunksDefaultValue;e.maxchunksdefaultvalue&&(p=Number(e.maxchunksdefaultvalue)),l.maxChunksDefaultValue=p;let f=ibiz.config.common.chunkThresholdDefaultValue;e.chunkthresholddefaultvalue&&(f=Number(e.chunkthresholddefaultvalue)),l.chunkThresholdDefaultValue=f;let v=ibiz.config.common.chunkPageIndexDefaultValue;if(Qt(e.chunkpageindexdefaultvalue)&&(v=Number(e.chunkpageindexdefaultvalue)),l.chunkPageIndexDefaultValue=v,e.summarymaxtokens?l.summaryMaxTokens=Number(e.summarymaxtokens):l.summaryMaxTokens=Number(ibiz.config.common.aiChatSummaryMaxTokens),e.srfaichunkview?l.chunkView=e.srfaichunkview:l.chunkView=ibiz.config.common.aiChunkView,e.srfaichunkentity?l.chunkEntity=e.srfaichunkentity:l.chunkEntity=ibiz.config.common.aiChunkEntity,l.fetchAgentList=a=>this.getAIAgentList(t,{...n,query:a},e),l.fetchKnowledgeBaseList=()=>this.getKnowledgeBaseList(t,n,e),i){const{contentToolbarItems:e,footerToolbarItems:t,questionToolbarItems:n,otherToolbarItems:a}=this.calcAiToolbarItemsByAc(i);l.contentToolbarItems=e,l.footerToolbarItems=t,l.questionToolbarItems=n,l.otherToolbarItems=a}const m=this.getChatSessionId("TEMP");l.sessionid=m;let g,b="",y="";const{chatInstance:w,view:_,ctrl:E}=o;l.history=async(e,t,n)=>{const a=await ibiz.hub.getApp(e.srfappid).deService.getService(e,n.appDataEntityId),i={};n.appendCurData&&Object.assign(i,{...n.appendCurData}),n.sessionid&&Object.assign(i,{sessionid:n.sessionid}),n.srfaiagent&&Object.assign(i,{srfaiagent:n.srfaiagent}),n.srfmode&&Object.assign(i,{mode:n.srfmode}),n.srfscope&&Object.assign(i,{srfscope:n.srfscope});const o=await a.aiChatHistory(e,{srfactag:t.srfactag},i);if(o.data&&Array.isArray(o.data)){let e;o.data.forEach(t=>{if("TOOL"===t.role)e&&t.content&&w.aiChat.updateRecommendPrompt(e,t.content);else{const n={messageid:xi(),state:30,type:"DEFAULT",role:t.role,content:t.content,completed:!0};e=n,w.aiChat.addMessage(n)}})}return!0},l.question=async(e,t,n,a,i,o,r,s,l,c,u,d,h)=>{b=xi(),g=new AbortController;const p=await ibiz.hub.getApp(t.srfappid).deService.getService(t,a.appDataEntityId);try{const a={messages:i,sessionid:o};r&&(a.srfaiagent=r),s&&(a.mode=s),l&&(a.srfscope=l),c&&(a.knowledgebases=c),u&&Object.assign(a,u),h&&Object.assign(a,{mcpservers:h});const f={};n&&Object.keys(n).length>0&&Object.assign(f,{...n}),d&&Object.assign(f,{...d}),f&&Object.keys(f).length>0&&Object.assign(a,{srfextparams:f}),await p.aiChatSse(t=>{if(20===t.actionstate&&t.actionresult)y=t.asyncacitonid,e.addMessage({messageid:b,state:t.actionstate,type:"DEFAULT",role:"ASSISTANT",content:t.actionresult,status:"pending"});else if(30===t.actionstate&&t.actionresult){const n=JSON.parse(t.actionresult);n.usage&&e.updateMsgUsage(b,n.usage);const a=n.choices;a&&a.length>0&&e.replaceMessage({messageid:b,state:t.actionstate,type:"DEFAULT",role:"ASSISTANT",content:a[0].content||"",realmessageid:a[0].messageid,status:"sent"})}else 40===t.actionstate&&e.replaceMessage({messageid:b,state:t.actionstate,type:"ERROR",role:"ASSISTANT",content:t.actionresult,status:"failed"})},g,t,{srfactag:n.srfactag},{...a})}catch(t){if(t&&t.message!==this.PRE_ERROR_MESSAGE)e.replaceMessage({messageid:b,state:40,type:"ERROR",role:"ASSISTANT",content:t.message||ibiz.i18n.t("app.aiError"),status:"failed"});else{const t=i[i.length-1];e.replaceMessage({...t,state:40},!1)}null==g||g.abort()}finally{return e.completeMessage(b,!0),!0}},l.abortQuestion=async(e,t,n,a)=>{if(null==g||g.abort(),y){const e=await ibiz.hub.getApp(t.srfappid).deService.getService(t,a.appDataEntityId),i={asyncacitonid:y};a.sessionid&&Object.assign(i,{sessionid:a.sessionid}),await e.aiChatCancel(t,n,i),y=""}await e.stopMessage({messageid:b,state:30,type:"DEFAULT",role:"ASSISTANT",content:"",status:"canceled"}),await e.completeMessage(b,!0)},l.recommendPrompt=async(e,t,n)=>{const a=await ibiz.hub.getApp(e.srfappid).deService.getService(e,n.appDataEntityId),i={...t};n.srfaiagent&&(i.srfaiagent=n.srfaiagent);const o=await a.aiChatRecommendPrompt(e,i,n.message);if(o.ok&&o.data){const e=o.data.choices;return e&&e.length>0?e[0]:null}return null},l.chatDigest=async(e,t,n)=>{const a=await ibiz.hub.getApp(e.srfappid).deService.getService(e,n.appDataEntityId),i={...t};n.srfaiagent&&(i.srfaiagent=n.srfaiagent);const o=await a.aiChatChatDigest(e,i,n.message);if(o.ok&&o.data){const e=o.data.choices;return e&&e.length>0?e[0]:null}return null};const P=ibiz.hub.getApp(t.srfappid),N=ibiz.env.defaultOSSCat||P.model.defaultOSSCat||(null==(r=P.model.userParam)?void 0:r.DefaultOSSCat);let I=!1;return I=e.globaldownloadprifix?"true"===e.globaldownloadprifix:ibiz.config.common.globalDownloadPrifix,l.uploader={folder:N?"".concat(N,"$"):void 0,globalDownloadPrifix:I,onUpload:async(e,a,i)=>{const{uploadUrl:o}=ibiz.util.file.calcFileUpDownUrl((null==i?void 0:i.context)||t,(null==i?void 0:i.params)||n,{},{enableNoAccess:!0,osscat:N}),r=ibiz.util.file.getUploadHeaders(),s=new FormData;s.append("file",e);return(await ibiz.net.request(o,{baseURL:"",method:"post",headers:{...r,"Content-Type":"multipart/form-data"},data:s,onUploadProgress:e=>{const t=e.loaded/e.total*100;a(t)}})).data},getDownLoadUrl:(e,a)=>{const{downloadUrl:i}=ibiz.util.file.calcFileUpDownUrl((null==a?void 0:a.context)||t,(null==a?void 0:a.params)||n,{},{enableNoAccess:!0,osscat:N,globalDownloadPrifix:I});return i.replace("%fileId%",e.fileid)},onDownLoad:async(e,a)=>{const{downloadUrl:i}=ibiz.util.file.calcFileUpDownUrl((null==a?void 0:a.context)||t,(null==a?void 0:a.params)||n,{},{enableNoAccess:!0,osscat:N,globalDownloadPrifix:I}),o=i.replace("%fileId%",e.fileid);await ibiz.util.file.fileDownload(o,e.filename,{context:(null==a?void 0:a.context)||t,params:(null==a?void 0:a.params)||n,data:{},file:{fileId:e.id,...e},extraParams:{enableNoAccess:!0,osscat:N,globalDownloadPrifix:I}},void 0,!0)}},l.extendToolbarClick=async(e,t,n,a,i)=>{var o,r,s;const{id:l,isPluginApp:c}=t;let u=t.appId;const d=St.create(n);if(c){const e=null==(o=ibiz.hub.getApp().model.subAppRefs)?void 0:o.find(e=>e.appId.endsWith("__".concat(u)));if(e){const t=e.appId;d.srfappid=t,u=t}}const h=await In.exec(l,{view:_,ctrl:E,context:d,params:a,data:[i],event:e},u);if(h.closeView)_.closeView({ok:!0});else if(h.refresh)switch(h.refreshMode){case 1:_.callUIAction(An.REFRESH);break;case 2:null==(r=_.parentView)||r.callUIAction(An.REFRESH);break;case 3:null==(s=_.getTopView())||s.callUIAction(An.REFRESH)}return h},l.openLinkView=async e=>{if(e.startsWith("view://")){const{viewId:t,context:n,params:a}=kn(e);n.srfkeepnull=!0,ibiz.commands.execute(Cn.TAG,t,St.create(n),a)}},l.utils={message:ibiz.message,notification:ibiz.notification,confirm:ibiz.confirm},{containerOptions:s,topicOptions:{},chatOptions:l}}async getUIActionExAIChatParams(e,t,n,a,i){var o;const r={};if(t.hasOwnProperty("autoclose"))try{r.autoClose=JSON.parse(t.autoclose),delete t.autoclose}catch(e){ibiz.log.error(e)}t.hasOwnProperty("openmode")&&(r.openMode=t.openmode,delete t.openmode),t.hasOwnProperty("containerheight")&&(r.containerHeight=Number(t.containerheight),delete t.containerheight);const s={};t.hasOwnProperty("topiccaptionmode")?(s.captionMode=t.topiccaptionmode,delete t.topiccaptionmode):s.captionMode=ibiz.config.common.aiChatTopicCaptionMode,s.disableStorage=!1,t.hasOwnProperty("disabletopicstorage")&&(s.disableStorage="true"===t.disabletopicstorage,delete t.disabletopicstorage),s.beforeDelete=async(...e)=>{const t=e[4];return await ibiz.confirm.warning({title:ibiz.i18n.t("util.appUtil.".concat(t?"clearTopic":"aiTitle")),desc:ibiz.i18n.t("util.appUtil.".concat(t?"clearTopicDesc":"aiDesc"))})},s.action=async(e,t,n,a,i)=>("LINK"===e&&await ibiz.openView.push(a.url),!0),s.configService=(e,t,n)=>new Sn(e,t,n);const l={locale:ibiz.i18n.getLang()};"true"===e.srfaiappendcurdata?l.appendCurData=n:t.hasOwnProperty("srfaiappendcurdata")&&(l.appendCurData="true"===t.srfaiappendcurdata?n:void 0,delete t.srfaiappendcurdata),t.hasOwnProperty("srfaiappendcurcontent")&&(l.appendCurContent=Ct.fill(t.srfaiappendcurcontent,e,t,n),delete t.srfaiappendcurcontent),t.hasOwnProperty("autoquestion")&&(l.autoQuestion="false"!==t.autoquestion,delete t.autoquestion),t.hasOwnProperty("srfaiappendresource")&&(l.appendCurResource=Ct.fill(t.srfaiappendresource,e,t,n),delete t.srfaiappendresource),t.hasOwnProperty("srfmode")&&(l.srfMode=t.srfmode,delete t.srfmode),t.hasOwnProperty("srfscope")&&(l.srfScope=t.srfscope,delete t.srfscope),t.hasOwnProperty("srfmcpservers")&&(l.srfMcpservers=t.srfmcpservers,delete t.srfmcpservers),t.hasOwnProperty("srfaiagent")&&(l.activeAIAgentID=t.srfaiagent,delete t.srfaiagent),t.hasOwnProperty("srfaiknowledgebases")&&(l.selectAIKnowledgeBaseId=t.srfaiknowledgebases,delete t.srfaiknowledgebases);let c=ibiz.config.common.enableAIAgentChange;t.hasOwnProperty("srfenableaiagentchange")&&(c="true"===t.srfenableaiagentchange,delete t.srfenableaiagentchange),l.enableAIAgentChange=c;let u=ibiz.config.common.enableKnowledgeBaseSelect;t.hasOwnProperty("srfenableknowledgebaseselect")&&(u="true"===t.srfenableknowledgebaseselect,delete t.srfenableknowledgebaseselect),l.enableKnowledgeBaseSelect=u;let d=ibiz.config.common.enableRecallConfigSetting;t.hasOwnProperty("srfenablerecallconfigsetting")&&(d="true"===t.srfenablerecallconfigsetting,delete t.srfenablerecallconfigsetting),l.enableRecallConfigSetting=d;let h=ibiz.config.common.reRankDefaultValue;t.hasOwnProperty("rerankdefaultvalue")&&(h=Number(t.rerankdefaultvalue),delete t.rerankdefaultvalue),l.reRankDefaultValue=h;let p=ibiz.config.common.maxChunksDefaultValue;t.hasOwnProperty("maxchunksdefaultvalue")&&(p=Number(t.maxchunksdefaultvalue),delete t.maxchunksdefaultvalue),l.maxChunksDefaultValue=p;let f=ibiz.config.common.chunkThresholdDefaultValue;t.hasOwnProperty("chunkthresholddefaultvalue")&&(f=Number(t.chunkthresholddefaultvalue),delete t.chunkthresholddefaultvalue),l.chunkThresholdDefaultValue=f;let v=ibiz.config.common.chunkPageIndexDefaultValue;if(Qt(t.chunkpageindexdefaultvalue)&&(v=Number(t.chunkpageindexdefaultvalue),delete t.chunkpageindexdefaultvalue),l.chunkPageIndexDefaultValue=v,t.hasOwnProperty("summarymaxtokens")?(l.summaryMaxTokens=Number(t.summarymaxtokens),delete t.summarymaxtokens):l.summaryMaxTokens=Number(ibiz.config.common.aiChatSummaryMaxTokens),t.hasOwnProperty("srfaichunkview")?(l.chunkView=t.srfaichunkview,delete t.srfaichunkview):l.chunkView=ibiz.config.common.aiChunkView,t.hasOwnProperty("srfaichunkentity")?(l.chunkEntity=t.srfaichunkentity,delete t.srfaichunkentity):l.chunkEntity=ibiz.config.common.aiChunkEntity,l.fetchAgentList=n=>this.getAIAgentList(e,{...t,query:n}),l.fetchKnowledgeBaseList=()=>this.getKnowledgeBaseList(e,t),a){const{contentToolbarItems:e,footerToolbarItems:t,questionToolbarItems:n,otherToolbarItems:i}=this.calcAiToolbarItemsByAc(a);l.contentToolbarItems=e,l.footerToolbarItems=t,l.questionToolbarItems=n,l.otherToolbarItems=i}let m,g="",b="";const{chatInstance:y,view:w,ctrl:_}=i;l.history=async(e,t,n)=>{const a=await ibiz.hub.getApp(e.srfappid).deService.getService(e,n.appDataEntityId),i={};n.appendCurData&&Object.assign(i,{...n.appendCurData}),n.sessionid&&Object.assign(i,{sessionid:n.sessionid}),n.srfaiagent&&Object.assign(i,{srfaiagent:n.srfaiagent}),n.srfmode&&Object.assign(i,{mode:n.srfmode}),n.srfscope&&Object.assign(i,{srfscope:n.srfscope});const o=await a.aiChatHistory(e,{srfactag:t.srfactag},i);if(o.data&&Array.isArray(o.data)){let e;o.data.forEach(t=>{if("TOOL"===t.role)e&&t.content&&y.aiChat.updateRecommendPrompt(e,t.content);else{const n={messageid:xi(),state:30,type:"DEFAULT",role:t.role,content:t.content,completed:!0};e=n,y.aiChat.addMessage(n)}})}return!0},l.question=async(e,t,n,a,i,o,r,s,l,c,u,d,h)=>{g=xi(),m=new AbortController;const p=await ibiz.hub.getApp(t.srfappid).deService.getService(t,a.appDataEntityId);try{const a={messages:i,sessionid:o};r&&(a.srfaiagent=r),s&&(a.mode=s),l&&(a.srfscope=l),c&&(a.knowledgebases=c),u&&Object.assign(a,u),h&&Object.assign(a,{mcpservers:h});const f={};n&&Object.keys(n).length>0&&Object.assign(f,{...n}),d&&Object.assign(f,{...d}),f&&Object.keys(f).length>0&&Object.assign(a,{srfextparams:f}),await p.aiChatSse(t=>{if(20===t.actionstate&&t.actionresult)b=t.asyncacitonid,e.addMessage({messageid:g,state:t.actionstate,type:"DEFAULT",role:"ASSISTANT",content:t.actionresult,status:"pending"});else if(30===t.actionstate&&t.actionresult){const n=JSON.parse(t.actionresult);n.usage&&e.updateMsgUsage(g,n.usage);const a=n.choices;a&&a.length>0&&e.replaceMessage({messageid:g,state:t.actionstate,type:"DEFAULT",role:"ASSISTANT",content:a[0].content||"",realmessageid:a[0].messageid,status:"sent"})}else 40===t.actionstate&&e.replaceMessage({messageid:g,state:t.actionstate,type:"ERROR",role:"ASSISTANT",content:t.actionresult,status:"failed"})},m,t,{srfactag:n.srfactag},{...a})}catch(t){if(t&&t.message!==this.PRE_ERROR_MESSAGE)e.replaceMessage({messageid:g,state:40,type:"ERROR",role:"ASSISTANT",content:t.message||ibiz.i18n.t("app.aiError"),status:"failed"});else{const t=i[i.length-1];e.replaceMessage({...t,state:40},!1)}null==m||m.abort()}finally{return e.completeMessage(g,!0),!0}},l.abortQuestion=async(e,t,n,a)=>{if(null==m||m.abort(),b){const e=await ibiz.hub.getApp(t.srfappid).deService.getService(t,a.appDataEntityId),i={asyncacitonid:b};a.sessionid&&Object.assign(i,{sessionid:a.sessionid}),await e.aiChatCancel(t,n,i),b=""}await e.stopMessage({messageid:g,state:30,type:"DEFAULT",role:"ASSISTANT",content:"",status:"canceled"}),await e.completeMessage(g,!0)},l.recommendPrompt=async(e,t,n)=>{const a=await ibiz.hub.getApp(e.srfappid).deService.getService(e,n.appDataEntityId),i={...t};n.srfaiagent&&(i.srfaiagent=n.srfaiagent);const o=await a.aiChatRecommendPrompt(e,i,n.message);if(o.ok&&o.data){const e=o.data.choices;return e&&e.length>0?e[0]:null}return null},l.chatDigest=async(e,t,n)=>{const a=await ibiz.hub.getApp(e.srfappid).deService.getService(e,n.appDataEntityId),i={...t};n.srfaiagent&&(i.srfaiagent=n.srfaiagent);const o=await a.aiChatChatDigest(e,i,n.message);if(o.ok&&o.data){const e=o.data.choices;return e&&e.length>0?e[0]:null}return null};const E=ibiz.hub.getApp(e.srfappid),P=ibiz.env.defaultOSSCat||E.model.defaultOSSCat||(null==(o=E.model.userParam)?void 0:o.DefaultOSSCat);let N=!1;return t.hasOwnProperty("globaldownloadprifix")?(N="true"===t.globaldownloadprifix,delete t.globaldownloadprifix):N=ibiz.config.common.globalDownloadPrifix,l.uploader={folder:P?"".concat(P,"$"):void 0,globalDownloadPrifix:N,onUpload:async(n,a,i)=>{const{uploadUrl:o}=ibiz.util.file.calcFileUpDownUrl((null==i?void 0:i.context)||e,(null==i?void 0:i.params)||t,{},{enableNoAccess:!0,osscat:P}),r=ibiz.util.file.getUploadHeaders(),s=new FormData;s.append("file",n);return(await ibiz.net.request(o,{baseURL:"",method:"post",headers:{...r,"Content-Type":"multipart/form-data"},data:s,onUploadProgress:e=>{const t=e.loaded/e.total*100;a(t)}})).data},getDownLoadUrl:(n,a)=>{const{downloadUrl:i}=ibiz.util.file.calcFileUpDownUrl((null==a?void 0:a.context)||e,(null==a?void 0:a.params)||t,{},{enableNoAccess:!0,osscat:P,globalDownloadPrifix:N});return i.replace("%fileId%",n.fileid)},onDownLoad:async(n,a)=>{const{downloadUrl:i}=ibiz.util.file.calcFileUpDownUrl((null==a?void 0:a.context)||e,(null==a?void 0:a.params)||t,{},{enableNoAccess:!0,osscat:P,globalDownloadPrifix:N}),o=i.replace("%fileId%",n.fileid);await ibiz.util.file.fileDownload(o,n.filename,{context:(null==a?void 0:a.context)||e,params:(null==a?void 0:a.params)||t,data:{},file:{fileId:n.id,...n},extraParams:{enableNoAccess:!0,osscat:P,globalDownloadPrifix:N}},void 0,!0)}},l.extendToolbarClick=async(e,t,n,a,i)=>{var o,r,s;const{id:l,isPluginApp:c}=t;let u=t.appId;const d=St.create(n);if(c){const e=null==(o=ibiz.hub.getApp().model.subAppRefs)?void 0:o.find(e=>e.appId.endsWith("__".concat(u)));if(e){const t=e.appId;d.srfappid=t,u=t}}const h=await In.exec(l,{view:w,ctrl:_,context:d,params:a,data:[i],event:e},u);if(h.closeView)w.closeView({ok:!0});else if(h.refresh)switch(h.refreshMode){case 1:w.callUIAction(An.REFRESH);break;case 2:null==(r=w.parentView)||r.callUIAction(An.REFRESH);break;case 3:null==(s=w.getTopView())||s.callUIAction(An.REFRESH)}return h},l.openLinkView=async e=>{if(e.startsWith("view://")){const{viewId:t,context:n,params:a}=kn(e);n.srfkeepnull=!0,ibiz.commands.execute(Cn.TAG,t,St.create(n),a)}},l.utils={message:ibiz.message,notification:ibiz.notification,confirm:ibiz.confirm},{containerOptions:r,topicOptions:s,chatOptions:l}}calcAiToolbarItemsByAc(e){var t;const n=[],a=[],i=[],o=[],r=[],s=[];return e&&e.deuiactionGroup?(null==(t=e.deuiactionGroup.uiactionGroupDetails)||t.forEach(e=>{var t,l,c,u,d,h,p,f;const v={appId:e.appId,id:e.uiactionId,label:e.showCaption?e.caption:"",title:e.tooltip,icon:{showIcon:e.showIcon,cssClass:null==(t=e.sysImage)?void 0:t.cssClass,imagePath:null==(l=e.sysImage)?void 0:l.imagePath}};e.sysImage&&e.sysImage.imagePath&&!e.sysImage.imagePath.startsWith("http")&&(v.icon.imagePath="".concat(ibiz.env.assetsUrl,"/images/").concat(e.sysImage.imagePath)),(null==(c=e.uiactionId)?void 0:c.startsWith("mob_msg_content_"))?n.push(v):(null==(u=e.uiactionId)?void 0:u.startsWith("mob_msg_footer_"))?a.push(v):(null==(d=e.uiactionId)?void 0:d.startsWith("mob_question_"))?i.push(v):(null==(h=e.uiactionId)?void 0:h.startsWith("mob_function_"))?o.push(v):(null==(p=e.uiactionId)?void 0:p.startsWith("mob_inline"))||e.refUIActionGroup&&(null==(f=e.refUIActionGroup.id)?void 0:f.startsWith("mob_inline"))?r.push(v):s.push(v)}),{contentToolbarItems:n,footerToolbarItems:a,questionToolbarItems:i,otherToolbarItems:s,functionToolbarItems:o,inlineToolbarItems:r}):{contentToolbarItems:n,footerToolbarItems:a,questionToolbarItems:i,otherToolbarItems:s,functionToolbarItems:o,inlineToolbarItems:r}}async getKnowledgeBaseList(e,t,n){let a=[];const i=ibiz.hub.getApp(e.srfappid||ibiz.env.appId),o=i.getAppUtil("DYNAMICAIGENT","CUSTOM");if(!o)return a;const{utilParams:r,utilDE2Name:s}=o;if(!s||!(null==r?void 0:r.getKnowledgeBaseId))return a;const l={...t,page:0,size:1e3};n&&n.knowledgebases&&Object.assign(l,{knowledgebases:n.knowledgebases});const c=await i.deService.exec(s,r.getKnowledgeBaseId,e,l);return c.ok&&Array.isArray(c.data)&&(a=c.data),a}async getAIAgentList(e,t,n){const a=[],i=ibiz.hub.getApp(ibiz.env.appId).getAppUtil("DYNAMICAIGENT","CUSTOM");if(!i)return a;const o=new Mn(i),r={...t,page:0,size:1e3};n&&n.srfaiagentscope&&Object.assign(r,{srfaiagentscope:n.srfaiagentscope});const s=await o.load("",e,r);return s&&0!==s.length?s:a}getChatSessionId(e,t){let n="";switch(e){case"TOPIC":n+=this.TOPIC_CHAT_PREFIX;break;case"INLINE":n+=this.INLINE_CHAT_SUFFIX;break;case"TEMP":n+=this.TEMP_CHAT_SUFFIX;break;default:n+=this.UNKOWN_CHAT_SUFFIX}return n+="@mob@".concat(t||"".concat(xi()),"@").concat((new Date).getTime()),n}async getAIResourceUtil(e){return ibiz.hub.getApp(e.srfappid||ibiz.env.appId).getAppUtil("DYNAMICAISESSION","CUSTOM")}async getAIResourceOptions(e,t){const n={};if(ibiz.config.common.aiResourceMode)return n.resourceMode=ibiz.config.common.aiResourceMode,n;const a=await this.getAIResourceUtil(e);if(n.resourceMode=a?"REMOTE":"LOCAL",!a)return n;const i=new xn(a);return n.getSessionList=async(n={})=>{const a={...t,page:0,size:1e3,...n};return await i.getSessionList(e,a)},n.updateSession=async(n,a)=>await i.updateSession(e,t,n,a),n.deleteSession=async n=>await i.deleteSession(e,t,n),n.getMessages=async(n={})=>{const a={...t,page:0,size:1e3,...n};return await i.getMessageList(e,a)},n.deleteMessage=async n=>await i.deleteMessage(e,t,n),n.likeMessage=async n=>await i.likeMessage(e,t,n),n.dislikeMessage=async(n,a)=>{var o,r;const s=ibiz.overlay.createDrawer(e=>ze(as,{modal:e,content:a}),void 0,{height:"auto",placement:"bottom",attrs:{closeable:!1}});s.present();const l=await s.onWillDismiss();if(!l.ok)return!1;const c=null==(r=null==(o=l.data)?void 0:o[0])?void 0:r.feedbackContent;return await i.dislikeMessage(e,t,n,c)},n.cancelFeedback=async n=>await i.cancelFeedback(e,t,n),n.clearAllSession=async n=>await i.clearAllSession(e,t,n),n.clearAllMessageBySessionId=async n=>await i.clearAllMessageBySessionId(e,t,n),n}}function ss(t){return e("_",ss="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e}),ss(t)}e("cl",rs);var ls=Uint8Array,cs=Uint16Array,us=Int32Array,ds=new ls([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),hs=new ls([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),ps=new ls([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),fs=function(e,t){for(var n=new cs(31),a=0;a<31;++a)n[a]=t+=1<<e[a-1];var i=new us(n[30]);for(a=1;a<30;++a)for(var o=n[a];o<n[a+1];++o)i[o]=o-n[a]<<5|a;return{b:n,r:i}},vs=fs(ds,2),ms=vs.b,gs=vs.r;ms[28]=258,gs[258]=28;for(var bs=fs(hs,0),ys=bs.b,ws=bs.r,_s=new cs(32768),Es=0;Es<32768;++Es){var Ps=(43690&Es)>>1|(21845&Es)<<1;Ps=(61680&(Ps=(52428&Ps)>>2|(13107&Ps)<<2))>>4|(3855&Ps)<<4,_s[Es]=((65280&Ps)>>8|(255&Ps)<<8)>>1}var Ns=function(e,t,n){for(var a=e.length,i=0,o=new cs(t);i<a;++i)e[i]&&++o[e[i]-1];var r,s=new cs(t);for(i=1;i<t;++i)s[i]=s[i-1]+o[i-1]<<1;if(n){r=new cs(1<<t);var l=15-t;for(i=0;i<a;++i)if(e[i])for(var c=i<<4|e[i],u=t-e[i],d=s[e[i]-1]++<<u,h=d|(1<<u)-1;d<=h;++d)r[_s[d]>>l]=c}else for(r=new cs(a),i=0;i<a;++i)e[i]&&(r[i]=_s[s[e[i]-1]++]>>15-e[i]);return r},Is=new ls(288);for(Es=0;Es<144;++Es)Is[Es]=8;for(Es=144;Es<256;++Es)Is[Es]=9;for(Es=256;Es<280;++Es)Is[Es]=7;for(Es=280;Es<288;++Es)Is[Es]=8;var As=new ls(32);for(Es=0;Es<32;++Es)As[Es]=5;var ks=Ns(Is,9,0),Cs=Ns(Is,9,1),Ss=Ns(As,5,0),Ms=Ns(As,5,1),xs=function(e){for(var t=e[0],n=1;n<e.length;++n)e[n]>t&&(t=e[n]);return t},Os=function(e,t,n){var a=t/8|0;return(e[a]|e[a+1]<<8)>>(7&t)&n},Ds=function(e,t){var n=t/8|0;return(e[n]|e[n+1]<<8|e[n+2]<<16)>>(7&t)},Ts=function(e){return(e+7)/8|0},js=function(e,t,n){return(null==n||n>e.length)&&(n=e.length),new ls(e.subarray(t,n))},Ls=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],Vs=function(e,t,n){var a=new Error(t||Ls[e]);if(a.code=e,Error.captureStackTrace&&Error.captureStackTrace(a,Vs),!n)throw a;return a},Bs=function(e,t,n){n<<=7&t;var a=t/8|0;e[a]|=n,e[a+1]|=n>>8},Us=function(e,t,n){n<<=7&t;var a=t/8|0;e[a]|=n,e[a+1]|=n>>8,e[a+2]|=n>>16},zs=function(e,t){for(var n=[],a=0;a<e.length;++a)e[a]&&n.push({s:a,f:e[a]});var i=n.length,o=n.slice();if(!i)return{t:Gs,l:0};if(1==i){var r=new ls(n[0].s+1);return r[n[0].s]=1,{t:r,l:1}}n.sort(function(e,t){return e.f-t.f}),n.push({s:-1,f:25001});var s=n[0],l=n[1],c=0,u=1,d=2;for(n[0]={s:-1,f:s.f+l.f,l:s,r:l};u!=i-1;)s=n[n[c].f<n[d].f?c++:d++],l=n[c!=u&&n[c].f<n[d].f?c++:d++],n[u++]={s:-1,f:s.f+l.f,l:s,r:l};var h=o[0].s;for(a=1;a<i;++a)o[a].s>h&&(h=o[a].s);var p=new cs(h+1),f=Rs(n[u-1],p,0);if(f>t){a=0;var v=0,m=f-t,g=1<<m;for(o.sort(function(e,t){return p[t.s]-p[e.s]||e.f-t.f});a<i;++a){var b=o[a].s;if(!(p[b]>t))break;v+=g-(1<<f-p[b]),p[b]=t}for(v>>=m;v>0;){var y=o[a].s;p[y]<t?v-=1<<t-p[y]++-1:++a}for(;a>=0&&v;--a){var w=o[a].s;p[w]==t&&(--p[w],++v)}f=t}return{t:new ls(p),l:f}},Rs=function(e,t,n){return-1==e.s?Math.max(Rs(e.l,t,n+1),Rs(e.r,t,n+1)):t[e.s]=n},Fs=function(e){for(var t=e.length;t&&!e[--t];);for(var n=new cs(++t),a=0,i=e[0],o=1,r=function(e){n[a++]=e},s=1;s<=t;++s)if(e[s]==i&&s!=t)++o;else{if(!i&&o>2){for(;o>138;o-=138)r(32754);o>2&&(r(o>10?o-11<<5|28690:o-3<<5|12305),o=0)}else if(o>3){for(r(i),--o;o>6;o-=6)r(8304);o>2&&(r(o-3<<5|8208),o=0)}for(;o--;)r(i);o=1,i=e[s]}return{c:n.subarray(0,a),n:t}},$s=function(e,t){for(var n=0,a=0;a<t.length;++a)n+=e[a]*t[a];return n},qs=function(e,t,n){var a=n.length,i=Ts(t+2);e[i]=255&a,e[i+1]=a>>8,e[i+2]=255^e[i],e[i+3]=255^e[i+1];for(var o=0;o<a;++o)e[i+o+4]=n[o];return 8*(i+4+a)},Ws=function(e,t,n,a,i,o,r,s,l,c,u){Bs(t,u++,n),++i[256];for(var d=zs(i,15),h=d.t,p=d.l,f=zs(o,15),v=f.t,m=f.l,g=Fs(h),b=g.c,y=g.n,w=Fs(v),_=w.c,E=w.n,P=new cs(19),N=0;N<b.length;++N)++P[31&b[N]];for(N=0;N<_.length;++N)++P[31&_[N]];for(var I=zs(P,7),A=I.t,k=I.l,C=19;C>4&&!A[ps[C-1]];--C);var S,M,x,O,D=c+5<<3,T=$s(i,Is)+$s(o,As)+r,j=$s(i,h)+$s(o,v)+r+14+3*C+$s(P,A)+2*P[16]+3*P[17]+7*P[18];if(l>=0&&D<=T&&D<=j)return qs(t,u,e.subarray(l,l+c));if(Bs(t,u,1+(j<T)),u+=2,j<T){S=Ns(h,p,0),M=h,x=Ns(v,m,0),O=v;var L=Ns(A,k,0);Bs(t,u,y-257),Bs(t,u+5,E-1),Bs(t,u+10,C-4),u+=14;for(N=0;N<C;++N)Bs(t,u+3*N,A[ps[N]]);u+=3*C;for(var V=[b,_],B=0;B<2;++B){var U=V[B];for(N=0;N<U.length;++N){var z=31&U[N];Bs(t,u,L[z]),u+=A[z],z>15&&(Bs(t,u,U[N]>>5&127),u+=U[N]>>12)}}}else S=ks,M=Is,x=Ss,O=As;for(N=0;N<s;++N){var R=a[N];if(R>255){Us(t,u,S[(z=R>>18&31)+257]),u+=M[z+257],z>7&&(Bs(t,u,R>>23&31),u+=ds[z]);var F=31&R;Us(t,u,x[F]),u+=O[F],F>3&&(Us(t,u,R>>5&8191),u+=hs[F])}else Us(t,u,S[R]),u+=M[R]}return Us(t,u,S[256]),u+M[256]},Hs=new us([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),Gs=new ls(0),Ys=function(){var e=1,t=0;return{p:function(n){for(var a=e,i=t,o=0|n.length,r=0;r!=o;){for(var s=Math.min(r+2655,o);r<s;++r)i+=a+=n[r];a=(65535&a)+15*(a>>16),i=(65535&i)+15*(i>>16)}e=a,t=i},d:function(){return(255&(e%=65521))<<24|(65280&e)<<8|(255&(t%=65521))<<8|t>>8}}},Xs=function(e,t,n,a,i){if(!i&&(i={l:1},t.dictionary)){var o=t.dictionary.subarray(-32768),r=new ls(o.length+e.length);r.set(o),r.set(e,o.length),e=r,i.w=o.length}return function(e,t,n,a,i,o){var r=o.z||e.length,s=new ls(a+r+5*(1+Math.ceil(r/7e3))+i),l=s.subarray(a,s.length-i),c=o.l,u=7&(o.r||0);if(t){u&&(l[0]=o.r>>3);for(var d=Hs[t-1],h=d>>13,p=8191&d,f=(1<<n)-1,v=o.p||new cs(32768),m=o.h||new cs(f+1),g=Math.ceil(n/3),b=2*g,y=function(t){return(e[t]^e[t+1]<<g^e[t+2]<<b)&f},w=new us(25e3),_=new cs(288),E=new cs(32),P=0,N=0,I=o.i||0,A=0,k=o.w||0,C=0;I+2<r;++I){var S=y(I),M=32767&I,x=m[S];if(v[M]=x,m[S]=M,k<=I){var O=r-I;if((P>7e3||A>24576)&&(O>423||!c)){u=Ws(e,l,0,w,_,E,N,A,C,I-C,u),A=P=N=0,C=I;for(var D=0;D<286;++D)_[D]=0;for(D=0;D<30;++D)E[D]=0}var T=2,j=0,L=p,V=M-x&32767;if(O>2&&S==y(I-V))for(var B=Math.min(h,O)-1,U=Math.min(32767,I),z=Math.min(258,O);V<=U&&--L&&M!=x;){if(e[I+T]==e[I+T-V]){for(var R=0;R<z&&e[I+R]==e[I+R-V];++R);if(R>T){if(T=R,j=V,R>B)break;var F=Math.min(V,R-2),$=0;for(D=0;D<F;++D){var q=I-V+D&32767,W=q-v[q]&32767;W>$&&($=W,x=q)}}}V+=(M=x)-(x=v[M])&32767}if(j){w[A++]=268435456|gs[T]<<18|ws[j];var H=31&gs[T],G=31&ws[j];N+=ds[H]+hs[G],++_[257+H],++E[G],k=I+T,++P}else w[A++]=e[I],++_[e[I]]}}for(I=Math.max(I,k);I<r;++I)w[A++]=e[I],++_[e[I]];u=Ws(e,l,c,w,_,E,N,A,C,I-C,u),c||(o.r=7&u|l[u/8|0]<<3,u-=7,o.h=m,o.p=v,o.i=I,o.w=k)}else{for(I=o.w||0;I<r+c;I+=65535){var Y=I+65535;Y>=r&&(l[u/8|0]=c,Y=r),u=qs(l,u+1,e.subarray(I,Y))}o.i=r}return js(s,0,a+Ts(u)+i)}(e,null==t.level?6:t.level,null==t.mem?i.l?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(e.length)))):20:12+t.mem,n,a,i)},Js=function(e,t,n){for(;n;++t)e[t]=n,n>>>=8};function Ks(e,t){t||(t={});var n=Ys();n.p(e);var a=Xs(e,t,t.dictionary?6:2,4);return function(e,t){var n=t.level,a=0==n?0:n<6?1:9==n?3:2;if(e[0]=120,e[1]=a<<6|(t.dictionary&&32),e[1]|=31-(e[0]<<8|e[1])%31,t.dictionary){var i=Ys();i.p(t.dictionary),Js(e,2,i.d())}}(a,t),Js(a,a.length-4,n.d()),a}function Qs(e,t){return function(e,t,n,a){var i=e.length;if(!i||t.f&&!t.l)return n||new ls(0);var o=!n,r=o||2!=t.i,s=t.i;o&&(n=new ls(3*i));var l=function(e){var t=n.length;if(e>t){var a=new ls(Math.max(2*t,e));a.set(n),n=a}},c=t.f||0,u=t.p||0,d=t.b||0,h=t.l,p=t.d,f=t.m,v=t.n,m=8*i;do{if(!h){c=Os(e,u,1);var g=Os(e,u+1,3);if(u+=3,!g){var b=e[(S=Ts(u)+4)-4]|e[S-3]<<8,y=S+b;if(y>i){s&&Vs(0);break}r&&l(d+b),n.set(e.subarray(S,y),d),t.b=d+=b,t.p=u=8*y,t.f=c;continue}if(1==g)h=Cs,p=Ms,f=9,v=5;else if(2==g){var w=Os(e,u,31)+257,_=Os(e,u+10,15)+4,E=w+Os(e,u+5,31)+1;u+=14;for(var P=new ls(E),N=new ls(19),I=0;I<_;++I)N[ps[I]]=Os(e,u+3*I,7);u+=3*_;var A=xs(N),k=(1<<A)-1,C=Ns(N,A,1);for(I=0;I<E;){var S,M=C[Os(e,u,k)];if(u+=15&M,(S=M>>4)<16)P[I++]=S;else{var x=0,O=0;for(16==S?(O=3+Os(e,u,3),u+=2,x=P[I-1]):17==S?(O=3+Os(e,u,7),u+=3):18==S&&(O=11+Os(e,u,127),u+=7);O--;)P[I++]=x}}var D=P.subarray(0,w),T=P.subarray(w);f=xs(D),v=xs(T),h=Ns(D,f,1),p=Ns(T,v,1)}else Vs(1);if(u>m){s&&Vs(0);break}}r&&l(d+131072);for(var j=(1<<f)-1,L=(1<<v)-1,V=u;;V=u){var B=(x=h[Ds(e,u)&j])>>4;if((u+=15&x)>m){s&&Vs(0);break}if(x||Vs(2),B<256)n[d++]=B;else{if(256==B){V=u,h=null;break}var U=B-254;if(B>264){var z=ds[I=B-257];U=Os(e,u,(1<<z)-1)+ms[I],u+=z}var R=p[Ds(e,u)&L],F=R>>4;if(R||Vs(3),u+=15&R,T=ys[F],F>3&&(z=hs[F],T+=Ds(e,u)&(1<<z)-1,u+=z),u>m){s&&Vs(0);break}r&&l(d+131072);var $=d+U;if(d<T){var q=0-T,W=Math.min(T,$);for(q+d<0&&Vs(3);d<W;++d)n[d]=a[q+d]}for(;d<$;++d)n[d]=n[d-T]}}t.l=h,t.p=V,t.b=d,t.f=c,h&&(c=1,t.m=f,t.d=p,t.n=v)}while(!c);return d!=n.length&&o?js(n,0,d):n.subarray(0,d)}(e.subarray(function(e){return(8!=(15&e[0])||e[0]>>4>7||(e[0]<<8|e[1])%31)&&Vs(6,"invalid zlib data"),1==(e[1]>>5&1)&&Vs(6,"invalid zlib data: "+(32&e[1]?"need":"unexpected")+" dictionary"),2+(e[1]>>3&4)}(e),-4),{i:2},t,t)}var Zs="undefined"!=typeof TextDecoder&&new TextDecoder;try{Zs.decode(Gs,{stream:!0})}catch(ET){}
2
+ /** @license
3
+ *
4
+ * jsPDF - PDF Document creation from JavaScript
5
+ * Version 2.5.2 Built on 2024-09-17T13:29:57.859Z
6
+ * CommitID 00000000
7
+ *
8
+ * Copyright (c) 2010-2021 James Hall <james@parall.ax>, https://github.com/MrRio/jsPDF
9
+ * 2015-2021 yWorks GmbH, http://www.yworks.com
10
+ * 2015-2021 Lukas Holländer <lukas.hollaender@yworks.com>, https://github.com/HackbrettXXX
11
+ * 2016-2018 Aras Abbasi <aras.abbasi@gmail.com>
12
+ * 2010 Aaron Spike, https://github.com/acspike
13
+ * 2012 Willow Systems Corporation, https://github.com/willowsystems
14
+ * 2012 Pablo Hess, https://github.com/pablohess
15
+ * 2012 Florian Jenett, https://github.com/fjenett
16
+ * 2013 Warren Weckesser, https://github.com/warrenweckesser
17
+ * 2013 Youssef Beddad, https://github.com/lifof
18
+ * 2013 Lee Driscoll, https://github.com/lsdriscoll
19
+ * 2013 Stefan Slonevskiy, https://github.com/stefslon
20
+ * 2013 Jeremy Morel, https://github.com/jmorel
21
+ * 2013 Christoph Hartmann, https://github.com/chris-rock
22
+ * 2014 Juan Pablo Gaviria, https://github.com/juanpgaviria
23
+ * 2014 James Makes, https://github.com/dollaruw
24
+ * 2014 Diego Casorran, https://github.com/diegocr
25
+ * 2014 Steven Spungin, https://github.com/Flamenco
26
+ * 2014 Kenneth Glassey, https://github.com/Gavvers
27
+ *
28
+ * Permission is hereby granted, free of charge, to any person obtaining
29
+ * a copy of this software and associated documentation files (the
30
+ * "Software"), to deal in the Software without restriction, including
31
+ * without limitation the rights to use, copy, modify, merge, publish,
32
+ * distribute, sublicense, and/or sell copies of the Software, and to
33
+ * permit persons to whom the Software is furnished to do so, subject to
34
+ * the following conditions:
35
+ *
36
+ * The above copyright notice and this permission notice shall be
37
+ * included in all copies or substantial portions of the Software.
38
+ *
39
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
40
+ * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
41
+ * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
42
+ * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
43
+ * LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
44
+ * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
45
+ * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
46
+ *
47
+ * Contributor(s):
48
+ * siefkenj, ahwolf, rickygu, Midnith, saintclair, eaparango,
49
+ * kim3er, mfo, alnorth, Flamenco
50
+ */var el=function(){return"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this}();function tl(){el.console&&"function"==typeof el.console.log&&el.console.log.apply(el.console,arguments)}var nl={log:tl,warn:function(e){el.console&&("function"==typeof el.console.warn?el.console.warn.apply(el.console,arguments):tl.call(null,arguments))},error:function(e){el.console&&("function"==typeof el.console.error?el.console.error.apply(el.console,arguments):tl(e))}};function al(e,t,n){var a=new XMLHttpRequest;a.open("GET",e),a.responseType="blob",a.onload=function(){ll(a.response,t,n)},a.onerror=function(){nl.error("could not download file")},a.send()}function il(e){var t=new XMLHttpRequest;t.open("HEAD",e,!1);try{t.send()}catch(e){}return t.status>=200&&t.status<=299}function ol(e){try{e.dispatchEvent(new MouseEvent("click"))}catch(n){var t=document.createEvent("MouseEvents");t.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(t)}}var rl,sl,ll=el.saveAs||("object"!==("undefined"==typeof window?"undefined":ss(window))||window!==el?function(){}:"undefined"!=typeof HTMLAnchorElement&&"download"in HTMLAnchorElement.prototype?function(e,t,n){var a=el.URL||el.webkitURL,i=document.createElement("a");t=t||e.name||"download",i.download=t,i.rel="noopener","string"==typeof e?(i.href=e,i.origin!==location.origin?il(i.href)?al(e,t,n):ol(i,i.target="_blank"):ol(i)):(i.href=a.createObjectURL(e),setTimeout(function(){a.revokeObjectURL(i.href)},4e4),setTimeout(function(){ol(i)},0))}:"msSaveOrOpenBlob"in navigator?function(e,t,n){if(t=t||e.name||"download","string"==typeof e)if(il(e))al(e,t,n);else{var a=document.createElement("a");a.href=e,a.target="_blank",setTimeout(function(){ol(a)})}else navigator.msSaveOrOpenBlob(function(e,t){return void 0===t?t={autoBom:!1}:"object"!==ss(t)&&(nl.warn("Deprecated: Expected third argument to be a object"),t={autoBom:!t}),t.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob([String.fromCharCode(65279),e],{type:e.type}):e}(e,n),t)}:function(e,t,n,a){if((a=a||open("","_blank"))&&(a.document.title=a.document.body.innerText="downloading..."),"string"==typeof e)return al(e,t,n);var i="application/octet-stream"===e.type,o=/constructor/i.test(el.HTMLElement)||el.safari,r=/CriOS\/[\d]+/.test(navigator.userAgent);if((r||i&&o)&&"object"===("undefined"==typeof FileReader?"undefined":ss(FileReader))){var s=new FileReader;s.onloadend=function(){var e=s.result;e=r?e:e.replace(/^data:[^;]*;/,"data:attachment/file;"),a?a.location.href=e:location=e,a=null},s.readAsDataURL(e)}else{var l=el.URL||el.webkitURL,c=l.createObjectURL(e);a?a.location=c:location.href=c,a=null,setTimeout(function(){l.revokeObjectURL(c)},4e4)}});
51
+ /**
52
+ * A class to parse color values
53
+ * @author Stoyan Stefanov <sstoo@gmail.com>
54
+ * {@link http://www.phpied.com/rgb-color-parser-in-javascript/}
55
+ * @license Use it if you like it
56
+ */function cl(e){var t;e=e||"",this.ok=!1,"#"==e.charAt(0)&&(e=e.substr(1,6)),e={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"}[e=(e=e.replace(/ /g,"")).toLowerCase()]||e;for(var n=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(e){return[parseInt(e[1]),parseInt(e[2]),parseInt(e[3])]}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:["#00ff00","336699"],process:function(e){return[parseInt(e[1],16),parseInt(e[2],16),parseInt(e[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,example:["#fb0","f0f"],process:function(e){return[parseInt(e[1]+e[1],16),parseInt(e[2]+e[2],16),parseInt(e[3]+e[3],16)]}}],a=0;a<n.length;a++){var i=n[a].re,o=n[a].process,r=i.exec(e);r&&(t=o(r),this.r=t[0],this.g=t[1],this.b=t[2],this.ok=!0)}this.r=this.r<0||isNaN(this.r)?0:this.r>255?255:this.r,this.g=this.g<0||isNaN(this.g)?0:this.g>255?255:this.g,this.b=this.b<0||isNaN(this.b)?0:this.b>255?255:this.b,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toHex=function(){var e=this.r.toString(16),t=this.g.toString(16),n=this.b.toString(16);return 1==e.length&&(e="0"+e),1==t.length&&(t="0"+t),1==n.length&&(n="0"+n),"#"+e+t+n}}
57
+ /**
58
+ * @license
59
+ * Joseph Myers does not specify a particular license for his work.
60
+ *
61
+ * Author: Joseph Myers
62
+ * Accessed from: http://www.myersdaily.org/joseph/javascript/md5.js
63
+ *
64
+ * Modified by: Owen Leong
65
+ */function ul(e,t){var n=e[0],a=e[1],i=e[2],o=e[3];n=hl(n,a,i,o,t[0],7,-680876936),o=hl(o,n,a,i,t[1],12,-389564586),i=hl(i,o,n,a,t[2],17,606105819),a=hl(a,i,o,n,t[3],22,-1044525330),n=hl(n,a,i,o,t[4],7,-176418897),o=hl(o,n,a,i,t[5],12,1200080426),i=hl(i,o,n,a,t[6],17,-1473231341),a=hl(a,i,o,n,t[7],22,-45705983),n=hl(n,a,i,o,t[8],7,1770035416),o=hl(o,n,a,i,t[9],12,-1958414417),i=hl(i,o,n,a,t[10],17,-42063),a=hl(a,i,o,n,t[11],22,-1990404162),n=hl(n,a,i,o,t[12],7,1804603682),o=hl(o,n,a,i,t[13],12,-40341101),i=hl(i,o,n,a,t[14],17,-1502002290),n=pl(n,a=hl(a,i,o,n,t[15],22,1236535329),i,o,t[1],5,-165796510),o=pl(o,n,a,i,t[6],9,-1069501632),i=pl(i,o,n,a,t[11],14,643717713),a=pl(a,i,o,n,t[0],20,-373897302),n=pl(n,a,i,o,t[5],5,-701558691),o=pl(o,n,a,i,t[10],9,38016083),i=pl(i,o,n,a,t[15],14,-660478335),a=pl(a,i,o,n,t[4],20,-405537848),n=pl(n,a,i,o,t[9],5,568446438),o=pl(o,n,a,i,t[14],9,-1019803690),i=pl(i,o,n,a,t[3],14,-187363961),a=pl(a,i,o,n,t[8],20,1163531501),n=pl(n,a,i,o,t[13],5,-1444681467),o=pl(o,n,a,i,t[2],9,-51403784),i=pl(i,o,n,a,t[7],14,1735328473),n=fl(n,a=pl(a,i,o,n,t[12],20,-1926607734),i,o,t[5],4,-378558),o=fl(o,n,a,i,t[8],11,-2022574463),i=fl(i,o,n,a,t[11],16,1839030562),a=fl(a,i,o,n,t[14],23,-35309556),n=fl(n,a,i,o,t[1],4,-1530992060),o=fl(o,n,a,i,t[4],11,1272893353),i=fl(i,o,n,a,t[7],16,-155497632),a=fl(a,i,o,n,t[10],23,-1094730640),n=fl(n,a,i,o,t[13],4,681279174),o=fl(o,n,a,i,t[0],11,-358537222),i=fl(i,o,n,a,t[3],16,-722521979),a=fl(a,i,o,n,t[6],23,76029189),n=fl(n,a,i,o,t[9],4,-640364487),o=fl(o,n,a,i,t[12],11,-421815835),i=fl(i,o,n,a,t[15],16,530742520),n=vl(n,a=fl(a,i,o,n,t[2],23,-995338651),i,o,t[0],6,-198630844),o=vl(o,n,a,i,t[7],10,1126891415),i=vl(i,o,n,a,t[14],15,-1416354905),a=vl(a,i,o,n,t[5],21,-57434055),n=vl(n,a,i,o,t[12],6,1700485571),o=vl(o,n,a,i,t[3],10,-1894986606),i=vl(i,o,n,a,t[10],15,-1051523),a=vl(a,i,o,n,t[1],21,-2054922799),n=vl(n,a,i,o,t[8],6,1873313359),o=vl(o,n,a,i,t[15],10,-30611744),i=vl(i,o,n,a,t[6],15,-1560198380),a=vl(a,i,o,n,t[13],21,1309151649),n=vl(n,a,i,o,t[4],6,-145523070),o=vl(o,n,a,i,t[11],10,-1120210379),i=vl(i,o,n,a,t[2],15,718787259),a=vl(a,i,o,n,t[9],21,-343485551),e[0]=Pl(n,e[0]),e[1]=Pl(a,e[1]),e[2]=Pl(i,e[2]),e[3]=Pl(o,e[3])}function dl(e,t,n,a,i,o){return t=Pl(Pl(t,e),Pl(a,o)),Pl(t<<i|t>>>32-i,n)}function hl(e,t,n,a,i,o,r){return dl(t&n|~t&a,e,t,i,o,r)}function pl(e,t,n,a,i,o,r){return dl(t&a|n&~a,e,t,i,o,r)}function fl(e,t,n,a,i,o,r){return dl(t^n^a,e,t,i,o,r)}function vl(e,t,n,a,i,o,r){return dl(n^(t|~a),e,t,i,o,r)}function ml(e){var t,n=e.length,a=[1732584193,-271733879,-1732584194,271733878];for(t=64;t<=e.length;t+=64)ul(a,gl(e.substring(t-64,t)));e=e.substring(t-64);var i=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(t=0;t<e.length;t++)i[t>>2]|=e.charCodeAt(t)<<(t%4<<3);if(i[t>>2]|=128<<(t%4<<3),t>55)for(ul(a,i),t=0;t<16;t++)i[t]=0;return i[14]=8*n,ul(a,i),a}function gl(e){var t,n=[];for(t=0;t<64;t+=4)n[t>>2]=e.charCodeAt(t)+(e.charCodeAt(t+1)<<8)+(e.charCodeAt(t+2)<<16)+(e.charCodeAt(t+3)<<24);return n}rl=el.atob.bind(el),sl=el.btoa.bind(el);var bl="0123456789abcdef".split("");function yl(e){for(var t="",n=0;n<4;n++)t+=bl[e>>8*n+4&15]+bl[e>>8*n&15];return t}function wl(e){return String.fromCharCode(255&e,(65280&e)>>8,(16711680&e)>>16,(4278190080&e)>>24)}function _l(e){return ml(e).map(wl).join("")}var El="5d41402abc4b2a76b9719d911017c592"!=function(e){for(var t=0;t<e.length;t++)e[t]=yl(e[t]);return e.join("")}(ml("hello"));function Pl(e,t){if(El){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}return e+t&4294967295}
66
+ /**
67
+ * @license
68
+ * FPDF is released under a permissive license: there is no usage restriction.
69
+ * You may embed it freely in your application (commercial or not), with or
70
+ * without modifications.
71
+ *
72
+ * Reference: http://www.fpdf.org/en/script/script37.php
73
+ */function Nl(e,t){var n,a,i,o;if(e!==n){for(var r=(i=e,o=1+(256/e.length|0),new Array(o+1).join(i)),s=[],l=0;l<256;l++)s[l]=l;var c=0;for(l=0;l<256;l++){var u=s[l];c=(c+u+r.charCodeAt(l))%256,s[l]=s[c],s[c]=u}n=e,a=s}else s=a;var d=t.length,h=0,p=0,f="";for(l=0;l<d;l++)p=(p+(u=s[h=(h+1)%256]))%256,s[h]=s[p],s[p]=u,r=s[(s[h]+s[p])%256],f+=String.fromCharCode(t.charCodeAt(l)^r);return f}
74
+ /**
75
+ * @license
76
+ * Licensed under the MIT License.
77
+ * http://opensource.org/licenses/mit-license
78
+ * Author: Owen Leong (@owenl131)
79
+ * Date: 15 Oct 2020
80
+ * References:
81
+ * https://www.cs.cmu.edu/~dst/Adobe/Gallery/anon21jul01-pdf-encryption.txt
82
+ * https://github.com/foliojs/pdfkit/blob/master/lib/security.js
83
+ * http://www.fpdf.org/en/script/script37.php
84
+ */var Il={print:4,modify:8,copy:16,"annot-forms":32};function Al(e,t,n,a){this.v=1,this.r=2;var i=192;e.forEach(function(e){if(void 0!==Il.perm)throw new Error("Invalid permission: "+e);i+=Il[e]}),this.padding="(¿N^NuŠAd\0NVÿú\b..\0¶Ðh>€/\f©þdSiz";var o=(t+this.padding).substr(0,32),r=(n+this.padding).substr(0,32);this.O=this.processOwnerPassword(o,r),this.P=-(1+(255^i)),this.encryptionKey=_l(o+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(a)).substr(0,5),this.U=Nl(this.encryptionKey,this.padding)}function kl(e){if(/[^\u0000-\u00ff]/.test(e))throw new Error("Invalid PDF Name Object: "+e+", Only accept ASCII characters.");for(var t="",n=e.length,a=0;a<n;a++){var i=e.charCodeAt(a);t+=i<33||35===i||37===i||40===i||41===i||47===i||60===i||62===i||91===i||93===i||123===i||125===i||i>126?"#"+("0"+i.toString(16)).slice(-2):e[a]}return t}function Cl(e){if("object"!==ss(e))throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var t={};this.subscribe=function(e,n,a){if(a=a||!1,"string"!=typeof e||"function"!=typeof n||"boolean"!=typeof a)throw new Error("Invalid arguments passed to PubSub.subscribe (jsPDF-module)");t.hasOwnProperty(e)||(t[e]={});var i=Math.random().toString(35);return t[e][i]=[n,!!a],i},this.unsubscribe=function(e){for(var n in t)if(t[n][e])return delete t[n][e],0===Object.keys(t[n]).length&&delete t[n],!0;return!1},this.publish=function(n){if(t.hasOwnProperty(n)){var a=Array.prototype.slice.call(arguments,1),i=[];for(var o in t[n]){var r=t[n][o];try{r[0].apply(e,a)}catch(n){el.console&&nl.error("jsPDF PubSub Error",n.message,n)}r[1]&&i.push(o)}i.length&&i.forEach(this.unsubscribe)}},this.getTopics=function(){return t}}function Sl(e){if(!(this instanceof Sl))return new Sl(e);var t="opacity,stroke-opacity".split(",");for(var n in e)e.hasOwnProperty(n)&&t.indexOf(n)>=0&&(this[n]=e[n]);this.id="",this.objectNumber=-1}function Ml(e,t){this.gState=e,this.matrix=t,this.id="",this.objectNumber=-1}function xl(e,t,n,a,i){if(!(this instanceof xl))return new xl(e,t,n,a,i);this.type="axial"===e?2:3,this.coords=t,this.colors=n,Ml.call(this,a,i)}function Ol(e,t,n,a,i){if(!(this instanceof Ol))return new Ol(e,t,n,a,i);this.boundingBox=e,this.xStep=t,this.yStep=n,this.stream="",this.cloneIndex=0,Ml.call(this,a,i)}function Dl(e){var t,n="string"==typeof arguments[0]?arguments[0]:"p",a=arguments[1],i=arguments[2],o=arguments[3],r=[],s=1,l=16,c="S",u=null;"object"===ss(e=e||{})&&(n=e.orientation,a=e.unit||a,i=e.format||i,o=e.compress||e.compressPdf||o,null!==(u=e.encryption||null)&&(u.userPassword=u.userPassword||"",u.ownerPassword=u.ownerPassword||"",u.userPermissions=u.userPermissions||[]),s="number"==typeof e.userUnit?Math.abs(e.userUnit):1,void 0!==e.precision&&(t=e.precision),void 0!==e.floatPrecision&&(l=e.floatPrecision),c=e.defaultPathOperation||"S"),r=e.filters||(!0===o?["FlateEncode"]:r),a=a||"mm",n=(""+(n||"P")).toLowerCase();var d=e.putOnlyUsedFonts||!1,h={},p={internal:{},__private__:{}};p.__private__.PubSub=Cl;var f="1.3",v=p.__private__.getPdfVersion=function(){return f};p.__private__.setPdfVersion=function(e){f=e};var m={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};p.__private__.getPageFormats=function(){return m};var g=p.__private__.getPageFormat=function(e){return m[e]};i=i||"a4";var b="compat",y="advanced",w=b;function _(){this.saveGraphicsState(),K(new xe(he,0,0,-he,0,cn()*he).toString()+" cm"),this.setFontSize(this.getFontSize()/he),c="n",w=y}function E(){this.restoreGraphicsState(),c="S",w=b}var P=p.__private__.combineFontStyleAndFontWeight=function(e,t){if("bold"==e&&"normal"==t||"bold"==e&&400==t||"normal"==e&&"italic"==t||"bold"==e&&"italic"==t)throw new Error("Invalid Combination of fontweight and fontstyle");return t&&(e=400==t||"normal"===t?"italic"===e?"italic":"normal":700!=t&&"bold"!==t||"normal"!==e?(700==t?"bold":t)+""+e:"bold"),e};p.advancedAPI=function(e){var t=w===b;return t&&_.call(this),"function"!=typeof e||(e(this),t&&E.call(this)),this},p.compatAPI=function(e){var t=w===y;return t&&E.call(this),"function"!=typeof e||(e(this),t&&_.call(this)),this},p.isAdvancedAPI=function(){return w===y};var N,I=function(e){if(w!==y)throw new Error(e+" is only available in 'advanced' API mode. You need to call advancedAPI() first.")},A=p.roundToPrecision=p.__private__.roundToPrecision=function(e,n){var a=t||n;if(isNaN(e)||isNaN(a))throw new Error("Invalid argument passed to jsPDF.roundToPrecision");return e.toFixed(a).replace(/0+$/,"")};N=p.hpf=p.__private__.hpf="number"==typeof l?function(e){if(isNaN(e))throw new Error("Invalid argument passed to jsPDF.hpf");return A(e,l)}:"smart"===l?function(e){if(isNaN(e))throw new Error("Invalid argument passed to jsPDF.hpf");return A(e,e>-1&&e<1?16:5)}:function(e){if(isNaN(e))throw new Error("Invalid argument passed to jsPDF.hpf");return A(e,16)};var k=p.f2=p.__private__.f2=function(e){if(isNaN(e))throw new Error("Invalid argument passed to jsPDF.f2");return A(e,2)},C=p.__private__.f3=function(e){if(isNaN(e))throw new Error("Invalid argument passed to jsPDF.f3");return A(e,3)},S=p.scale=p.__private__.scale=function(e){if(isNaN(e))throw new Error("Invalid argument passed to jsPDF.scale");return w===b?e*he:w===y?e:void 0},M=function(e){return S(function(e){return w===b?cn()-e:w===y?e:void 0}(e))};p.__private__.setPrecision=p.setPrecision=function(e){"number"==typeof parseInt(e,10)&&(t=parseInt(e,10))};var x,O="00000000000000000000000000000000",D=p.__private__.getFileId=function(){return O},T=p.__private__.setFileId=function(e){return O=void 0!==e&&/^[a-fA-F0-9]{32}$/.test(e)?e.toUpperCase():O.split("").map(function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))}).join(""),null!==u&&(bt=new Al(u.userPermissions,u.userPassword,u.ownerPassword,O)),O};p.setFileId=function(e){return T(e),this},p.getFileId=function(){return D()};var j=p.__private__.convertDateToPDFDate=function(e){var t=e.getTimezoneOffset(),n=t<0?"+":"-",a=Math.floor(Math.abs(t/60)),i=Math.abs(t%60),o=[n,z(a),"'",z(i),"'"].join("");return["D:",e.getFullYear(),z(e.getMonth()+1),z(e.getDate()),z(e.getHours()),z(e.getMinutes()),z(e.getSeconds()),o].join("")},L=p.__private__.convertPDFDateToDate=function(e){var t=parseInt(e.substr(2,4),10),n=parseInt(e.substr(6,2),10)-1,a=parseInt(e.substr(8,2),10),i=parseInt(e.substr(10,2),10),o=parseInt(e.substr(12,2),10),r=parseInt(e.substr(14,2),10);return new Date(t,n,a,i,o,r,0)},V=p.__private__.setCreationDate=function(e){var t;if(void 0===e&&(e=new Date),e instanceof Date)t=j(e);else{if(!/^D:(20[0-2][0-9]|203[0-7]|19[7-9][0-9])(0[0-9]|1[0-2])([0-2][0-9]|3[0-1])(0[0-9]|1[0-9]|2[0-3])(0[0-9]|[1-5][0-9])(0[0-9]|[1-5][0-9])(\+0[0-9]|\+1[0-4]|-0[0-9]|-1[0-1])'(0[0-9]|[1-5][0-9])'?$/.test(e))throw new Error("Invalid argument passed to jsPDF.setCreationDate");t=e}return x=t},B=p.__private__.getCreationDate=function(e){var t=x;return"jsDate"===e&&(t=L(x)),t};p.setCreationDate=function(e){return V(e),this},p.getCreationDate=function(e){return B(e)};var U,z=p.__private__.padd2=function(e){return("0"+parseInt(e)).slice(-2)},R=p.__private__.padd2Hex=function(e){return("00"+(e=e.toString())).substr(e.length)},F=0,$=[],q=[],W=0,H=[],G=[],Y=!1,X=q;p.__private__.setCustomOutputDestination=function(e){Y=!0,X=e};var J=function(e){Y||(X=e)};p.__private__.resetCustomOutputDestination=function(){Y=!1,X=q};var K=p.__private__.out=function(e){return e=e.toString(),W+=e.length+1,X.push(e),X},Q=p.__private__.write=function(e){return K(1===arguments.length?e.toString():Array.prototype.join.call(arguments," "))},Z=p.__private__.getArrayBuffer=function(e){for(var t=e.length,n=new ArrayBuffer(t),a=new Uint8Array(n);t--;)a[t]=e.charCodeAt(t);return n},ee=[["Helvetica","helvetica","normal","WinAnsiEncoding"],["Helvetica-Bold","helvetica","bold","WinAnsiEncoding"],["Helvetica-Oblique","helvetica","italic","WinAnsiEncoding"],["Helvetica-BoldOblique","helvetica","bolditalic","WinAnsiEncoding"],["Courier","courier","normal","WinAnsiEncoding"],["Courier-Bold","courier","bold","WinAnsiEncoding"],["Courier-Oblique","courier","italic","WinAnsiEncoding"],["Courier-BoldOblique","courier","bolditalic","WinAnsiEncoding"],["Times-Roman","times","normal","WinAnsiEncoding"],["Times-Bold","times","bold","WinAnsiEncoding"],["Times-Italic","times","italic","WinAnsiEncoding"],["Times-BoldItalic","times","bolditalic","WinAnsiEncoding"],["ZapfDingbats","zapfdingbats","normal",null],["Symbol","symbol","normal",null]];p.__private__.getStandardFonts=function(){return ee};var te=e.fontSize||16;p.__private__.setFontSize=p.setFontSize=function(e){return te=w===y?e/he:e,this};var ne,ae=p.__private__.getFontSize=p.getFontSize=function(){return w===b?te:te*he},ie=e.R2L||!1;p.__private__.setR2L=p.setR2L=function(e){return ie=e,this},p.__private__.getR2L=p.getR2L=function(){return ie};var oe,re=p.__private__.setZoomMode=function(e){if(/^(?:\d+\.\d*|\d*\.\d+|\d+)%$/.test(e))ne=e;else if(isNaN(e)){if(-1===[void 0,null,"fullwidth","fullheight","fullpage","original"].indexOf(e))throw new Error('zoom must be Integer (e.g. 2), a percentage Value (e.g. 300%) or fullwidth, fullheight, fullpage, original. "'+e+'" is not recognized.');ne=e}else ne=parseInt(e,10)};p.__private__.getZoomMode=function(){return ne};var se,le=p.__private__.setPageMode=function(e){if(-1==[void 0,null,"UseNone","UseOutlines","UseThumbs","FullScreen"].indexOf(e))throw new Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "'+e+'" is not recognized.');oe=e};p.__private__.getPageMode=function(){return oe};var ce=p.__private__.setLayoutMode=function(e){if(-1==[void 0,null,"continuous","single","twoleft","tworight","two"].indexOf(e))throw new Error('Layout mode must be one of continuous, single, twoleft, tworight. "'+e+'" is not recognized.');se=e};p.__private__.getLayoutMode=function(){return se},p.__private__.setDisplayMode=p.setDisplayMode=function(e,t,n){return re(e),ce(t),le(n),this};var ue={title:"",subject:"",author:"",keywords:"",creator:""};p.__private__.getDocumentProperty=function(e){if(-1===Object.keys(ue).indexOf(e))throw new Error("Invalid argument passed to jsPDF.getDocumentProperty");return ue[e]},p.__private__.getDocumentProperties=function(){return ue},p.__private__.setDocumentProperties=p.setProperties=p.setDocumentProperties=function(e){for(var t in ue)ue.hasOwnProperty(t)&&e[t]&&(ue[t]=e[t]);return this},p.__private__.setDocumentProperty=function(e,t){if(-1===Object.keys(ue).indexOf(e))throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");return ue[e]=t};var de,he,pe,fe,ve,me={},ge={},be=[],ye={},we={},_e={},Ee={},Pe=null,Ne=0,Ie=[],Ae=new Cl(p),ke=e.hotfixes||[],Ce={},Se={},Me=[],xe=function e(t,n,a,i,o,r){if(!(this instanceof e))return new e(t,n,a,i,o,r);isNaN(t)&&(t=1),isNaN(n)&&(n=0),isNaN(a)&&(a=0),isNaN(i)&&(i=1),isNaN(o)&&(o=0),isNaN(r)&&(r=0),this._matrix=[t,n,a,i,o,r]};Object.defineProperty(xe.prototype,"sx",{get:function(){return this._matrix[0]},set:function(e){this._matrix[0]=e}}),Object.defineProperty(xe.prototype,"shy",{get:function(){return this._matrix[1]},set:function(e){this._matrix[1]=e}}),Object.defineProperty(xe.prototype,"shx",{get:function(){return this._matrix[2]},set:function(e){this._matrix[2]=e}}),Object.defineProperty(xe.prototype,"sy",{get:function(){return this._matrix[3]},set:function(e){this._matrix[3]=e}}),Object.defineProperty(xe.prototype,"tx",{get:function(){return this._matrix[4]},set:function(e){this._matrix[4]=e}}),Object.defineProperty(xe.prototype,"ty",{get:function(){return this._matrix[5]},set:function(e){this._matrix[5]=e}}),Object.defineProperty(xe.prototype,"a",{get:function(){return this._matrix[0]},set:function(e){this._matrix[0]=e}}),Object.defineProperty(xe.prototype,"b",{get:function(){return this._matrix[1]},set:function(e){this._matrix[1]=e}}),Object.defineProperty(xe.prototype,"c",{get:function(){return this._matrix[2]},set:function(e){this._matrix[2]=e}}),Object.defineProperty(xe.prototype,"d",{get:function(){return this._matrix[3]},set:function(e){this._matrix[3]=e}}),Object.defineProperty(xe.prototype,"e",{get:function(){return this._matrix[4]},set:function(e){this._matrix[4]=e}}),Object.defineProperty(xe.prototype,"f",{get:function(){return this._matrix[5]},set:function(e){this._matrix[5]=e}}),Object.defineProperty(xe.prototype,"rotation",{get:function(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty(xe.prototype,"scaleX",{get:function(){return this.decompose().scale.sx}}),Object.defineProperty(xe.prototype,"scaleY",{get:function(){return this.decompose().scale.sy}}),Object.defineProperty(xe.prototype,"isIdentity",{get:function(){return 1===this.sx&&0===this.shy&&0===this.shx&&1===this.sy&&0===this.tx&&0===this.ty}}),xe.prototype.join=function(e){return[this.sx,this.shy,this.shx,this.sy,this.tx,this.ty].map(N).join(e)},xe.prototype.multiply=function(e){var t=e.sx*this.sx+e.shy*this.shx,n=e.sx*this.shy+e.shy*this.sy,a=e.shx*this.sx+e.sy*this.shx,i=e.shx*this.shy+e.sy*this.sy,o=e.tx*this.sx+e.ty*this.shx+this.tx,r=e.tx*this.shy+e.ty*this.sy+this.ty;return new xe(t,n,a,i,o,r)},xe.prototype.decompose=function(){var e=this.sx,t=this.shy,n=this.shx,a=this.sy,i=this.tx,o=this.ty,r=Math.sqrt(e*e+t*t),s=(e/=r)*n+(t/=r)*a;n-=e*s,a-=t*s;var l=Math.sqrt(n*n+a*a);return s/=l,e*(a/=l)<t*(n/=l)&&(e=-e,t=-t,s=-s,r=-r),{scale:new xe(r,0,0,l,0,0),translate:new xe(1,0,0,1,i,o),rotate:new xe(e,t,-t,e,0,0),skew:new xe(1,0,s,1,0,0)}},xe.prototype.toString=function(e){return this.join(" ")},xe.prototype.inversed=function(){var e=this.sx,t=this.shy,n=this.shx,a=this.sy,i=this.tx,o=this.ty,r=1/(e*a-t*n),s=a*r,l=-t*r,c=-n*r,u=e*r;return new xe(s,l,c,u,-s*i-c*o,-l*i-u*o)},xe.prototype.applyToPoint=function(e){var t=e.x*this.sx+e.y*this.shx+this.tx,n=e.x*this.shy+e.y*this.sy+this.ty;return new tn(t,n)},xe.prototype.applyToRectangle=function(e){var t=this.applyToPoint(e),n=this.applyToPoint(new tn(e.x+e.w,e.y+e.h));return new nn(t.x,t.y,n.x-t.x,n.y-t.y)},xe.prototype.clone=function(){var e=this.sx,t=this.shy,n=this.shx,a=this.sy,i=this.tx,o=this.ty;return new xe(e,t,n,a,i,o)},p.Matrix=xe;var Oe=p.matrixMult=function(e,t){return t.multiply(e)},De=new xe(1,0,0,1,0,0);p.unitMatrix=p.identityMatrix=De;var Te=function(e,t){if(!we[e]){var n=(t instanceof xl?"Sh":"P")+(Object.keys(ye).length+1).toString(10);t.id=n,we[e]=n,ye[n]=t,Ae.publish("addPattern",t)}};p.ShadingPattern=xl,p.TilingPattern=Ol,p.addShadingPattern=function(e,t){return I("addShadingPattern()"),Te(e,t),this},p.beginTilingPattern=function(e){I("beginTilingPattern()"),on(e.boundingBox[0],e.boundingBox[1],e.boundingBox[2]-e.boundingBox[0],e.boundingBox[3]-e.boundingBox[1],e.matrix)},p.endTilingPattern=function(e,t){I("endTilingPattern()"),t.stream=G[U].join("\n"),Te(e,t),Ae.publish("endTilingPattern",t),Me.pop().restore()};var je=p.__private__.newObject=function(){var e=Le();return Ve(e,!0),e},Le=p.__private__.newObjectDeferred=function(){return F++,$[F]=function(){return W},F},Ve=function(e,t){return t="boolean"==typeof t&&t,$[e]=W,t&&K(e+" 0 obj"),e},Be=p.__private__.newAdditionalObject=function(){var e={objId:Le(),content:""};return H.push(e),e},Ue=Le(),ze=Le(),Re=p.__private__.decodeColorString=function(e){var t=e.split(" ");if(2!==t.length||"g"!==t[1]&&"G"!==t[1])5!==t.length||"k"!==t[4]&&"K"!==t[4]||(t=[(1-t[0])*(1-t[3]),(1-t[1])*(1-t[3]),(1-t[2])*(1-t[3]),"r"]);else{var n=parseFloat(t[0]);t=[n,n,n,"r"]}for(var a="#",i=0;i<3;i++)a+=("0"+Math.floor(255*parseFloat(t[i])).toString(16)).slice(-2);return a},Fe=p.__private__.encodeColorString=function(e){var t;"string"==typeof e&&(e={ch1:e});var n=e.ch1,a=e.ch2,i=e.ch3,o=e.ch4,r="draw"===e.pdfColorType?["G","RG","K"]:["g","rg","k"];if("string"==typeof n&&"#"!==n.charAt(0)){var s=new cl(n);if(s.ok)n=s.toHex();else if(!/^\d*\.?\d*$/.test(n))throw new Error('Invalid color "'+n+'" passed to jsPDF.encodeColorString.')}if("string"==typeof n&&/^#[0-9A-Fa-f]{3}$/.test(n)&&(n="#"+n[1]+n[1]+n[2]+n[2]+n[3]+n[3]),"string"==typeof n&&/^#[0-9A-Fa-f]{6}$/.test(n)){var l=parseInt(n.substr(1),16);n=l>>16&255,a=l>>8&255,i=255&l}if(void 0===a||void 0===o&&n===a&&a===i)if("string"==typeof n)t=n+" "+r[0];else if(2===e.precision)t=k(n/255)+" "+r[0];else t=C(n/255)+" "+r[0];else if(void 0===o||"object"===ss(o)){if(o&&!isNaN(o.a)&&0===o.a)return["1.","1.","1.",r[1]].join(" ");if("string"==typeof n)t=[n,a,i,r[1]].join(" ");else if(2===e.precision)t=[k(n/255),k(a/255),k(i/255),r[1]].join(" ");else t=[C(n/255),C(a/255),C(i/255),r[1]].join(" ")}else if("string"==typeof n)t=[n,a,i,o,r[2]].join(" ");else if(2===e.precision)t=[k(n),k(a),k(i),k(o),r[2]].join(" ");else t=[C(n),C(a),C(i),C(o),r[2]].join(" ");return t},$e=p.__private__.getFilters=function(){return r},qe=p.__private__.putStream=function(e){var t=(e=e||{}).data||"",n=e.filters||$e(),a=e.alreadyAppliedFilters||[],i=e.addLength1||!1,o=t.length,r=e.objectId,s=function(e){return e};if(null!==u&&void 0===r)throw new Error("ObjectId must be passed to putStream for file encryption");null!==u&&(s=bt.encryptor(r,0));var l={};!0===n&&(n=["FlateEncode"]);var c=e.additionalKeyValues||[],d=(l=void 0!==Dl.API.processDataByFilters?Dl.API.processDataByFilters(t,n):{data:t,reverseChain:[]}).reverseChain+(Array.isArray(a)?a.join(" "):a.toString());if(0!==l.data.length&&(c.push({key:"Length",value:l.data.length}),!0===i&&c.push({key:"Length1",value:o})),0!=d.length)if(d.split("/").length-1==1)c.push({key:"Filter",value:d});else{c.push({key:"Filter",value:"["+d+"]"});for(var h=0;h<c.length;h+=1)if("DecodeParms"===c[h].key){for(var p=[],f=0;f<l.reverseChain.split("/").length-1;f+=1)p.push("null");p.push(c[h].value),c[h].value="["+p.join(" ")+"]"}}K("<<");for(var v=0;v<c.length;v++)K("/"+c[v].key+" "+c[v].value);K(">>"),0!==l.data.length&&(K("stream"),K(s(l.data)),K("endstream"))},We=p.__private__.putPage=function(e){var t=e.number,n=e.data,a=e.objId,i=e.contentsObjId;Ve(a,!0),K("<</Type /Page"),K("/Parent "+e.rootDictionaryObjId+" 0 R"),K("/Resources "+e.resourceDictionaryObjId+" 0 R"),K("/MediaBox ["+parseFloat(N(e.mediaBox.bottomLeftX))+" "+parseFloat(N(e.mediaBox.bottomLeftY))+" "+N(e.mediaBox.topRightX)+" "+N(e.mediaBox.topRightY)+"]"),null!==e.cropBox&&K("/CropBox ["+N(e.cropBox.bottomLeftX)+" "+N(e.cropBox.bottomLeftY)+" "+N(e.cropBox.topRightX)+" "+N(e.cropBox.topRightY)+"]"),null!==e.bleedBox&&K("/BleedBox ["+N(e.bleedBox.bottomLeftX)+" "+N(e.bleedBox.bottomLeftY)+" "+N(e.bleedBox.topRightX)+" "+N(e.bleedBox.topRightY)+"]"),null!==e.trimBox&&K("/TrimBox ["+N(e.trimBox.bottomLeftX)+" "+N(e.trimBox.bottomLeftY)+" "+N(e.trimBox.topRightX)+" "+N(e.trimBox.topRightY)+"]"),null!==e.artBox&&K("/ArtBox ["+N(e.artBox.bottomLeftX)+" "+N(e.artBox.bottomLeftY)+" "+N(e.artBox.topRightX)+" "+N(e.artBox.topRightY)+"]"),"number"==typeof e.userUnit&&1!==e.userUnit&&K("/UserUnit "+e.userUnit),Ae.publish("putPage",{objId:a,pageContext:Ie[t],pageNumber:t,page:n}),K("/Contents "+i+" 0 R"),K(">>"),K("endobj");var o=n.join("\n");return w===y&&(o+="\nQ"),Ve(i,!0),qe({data:o,filters:$e(),objectId:i}),K("endobj"),a},He=p.__private__.putPages=function(){var e,t,n=[];for(e=1;e<=Ne;e++)Ie[e].objId=Le(),Ie[e].contentsObjId=Le();for(e=1;e<=Ne;e++)n.push(We({number:e,data:G[e],objId:Ie[e].objId,contentsObjId:Ie[e].contentsObjId,mediaBox:Ie[e].mediaBox,cropBox:Ie[e].cropBox,bleedBox:Ie[e].bleedBox,trimBox:Ie[e].trimBox,artBox:Ie[e].artBox,userUnit:Ie[e].userUnit,rootDictionaryObjId:Ue,resourceDictionaryObjId:ze}));Ve(Ue,!0),K("<</Type /Pages");var a="/Kids [";for(t=0;t<Ne;t++)a+=n[t]+" 0 R ";K(a+"]"),K("/Count "+Ne),K(">>"),K("endobj"),Ae.publish("postPutPages")},Ge=function(e){Ae.publish("putFont",{font:e,out:K,newObject:je,putStream:qe}),!0!==e.isAlreadyPutted&&(e.objectNumber=je(),K("<<"),K("/Type /Font"),K("/BaseFont /"+kl(e.postScriptName)),K("/Subtype /Type1"),"string"==typeof e.encoding&&K("/Encoding /"+e.encoding),K("/FirstChar 32"),K("/LastChar 255"),K(">>"),K("endobj"))},Ye=function(e){e.objectNumber=je();var t=[];t.push({key:"Type",value:"/XObject"}),t.push({key:"Subtype",value:"/Form"}),t.push({key:"BBox",value:"["+[N(e.x),N(e.y),N(e.x+e.width),N(e.y+e.height)].join(" ")+"]"}),t.push({key:"Matrix",value:"["+e.matrix.toString()+"]"});var n=e.pages[1].join("\n");qe({data:n,additionalKeyValues:t,objectId:e.objectNumber}),K("endobj")},Xe=function(e,t){t||(t=21);var n=je(),a=function(e,t){var n,a=[],i=1/(t-1);for(n=0;n<1;n+=i)a.push(n);if(a.push(1),0!=e[0].offset){var o={offset:0,color:e[0].color};e.unshift(o)}if(1!=e[e.length-1].offset){var r={offset:1,color:e[e.length-1].color};e.push(r)}for(var s="",l=0,c=0;c<a.length;c++){for(n=a[c];n>e[l+1].offset;)l++;var u=e[l].offset,d=(n-u)/(e[l+1].offset-u),h=e[l].color,p=e[l+1].color;s+=R(Math.round((1-d)*h[0]+d*p[0]).toString(16))+R(Math.round((1-d)*h[1]+d*p[1]).toString(16))+R(Math.round((1-d)*h[2]+d*p[2]).toString(16))}return s.trim()}(e.colors,t),i=[];i.push({key:"FunctionType",value:"0"}),i.push({key:"Domain",value:"[0.0 1.0]"}),i.push({key:"Size",value:"["+t+"]"}),i.push({key:"BitsPerSample",value:"8"}),i.push({key:"Range",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),i.push({key:"Decode",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),qe({data:a,additionalKeyValues:i,alreadyAppliedFilters:["/ASCIIHexDecode"],objectId:n}),K("endobj"),e.objectNumber=je(),K("<< /ShadingType "+e.type),K("/ColorSpace /DeviceRGB");var o="/Coords ["+N(parseFloat(e.coords[0]))+" "+N(parseFloat(e.coords[1]))+" ";2===e.type?o+=N(parseFloat(e.coords[2]))+" "+N(parseFloat(e.coords[3])):o+=N(parseFloat(e.coords[2]))+" "+N(parseFloat(e.coords[3]))+" "+N(parseFloat(e.coords[4]))+" "+N(parseFloat(e.coords[5])),K(o+="]"),e.matrix&&K("/Matrix ["+e.matrix.toString()+"]"),K("/Function "+n+" 0 R"),K("/Extend [true true]"),K(">>"),K("endobj")},Je=function(e,t){var n=Le(),a=je();t.push({resourcesOid:n,objectOid:a}),e.objectNumber=a;var i=[];i.push({key:"Type",value:"/Pattern"}),i.push({key:"PatternType",value:"1"}),i.push({key:"PaintType",value:"1"}),i.push({key:"TilingType",value:"1"}),i.push({key:"BBox",value:"["+e.boundingBox.map(N).join(" ")+"]"}),i.push({key:"XStep",value:N(e.xStep)}),i.push({key:"YStep",value:N(e.yStep)}),i.push({key:"Resources",value:n+" 0 R"}),e.matrix&&i.push({key:"Matrix",value:"["+e.matrix.toString()+"]"}),qe({data:e.stream,additionalKeyValues:i,objectId:e.objectNumber}),K("endobj")},Ke=function(e){for(var t in e.objectNumber=je(),K("<<"),e)switch(t){case"opacity":K("/ca "+k(e[t]));break;case"stroke-opacity":K("/CA "+k(e[t]))}K(">>"),K("endobj")},Qe=function(e){Ve(e.resourcesOid,!0),K("<<"),K("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),function(){for(var e in K("/Font <<"),me)me.hasOwnProperty(e)&&(!1===d||!0===d&&h.hasOwnProperty(e))&&K("/"+e+" "+me[e].objectNumber+" 0 R");K(">>")}(),function(){if(Object.keys(ye).length>0){for(var e in K("/Shading <<"),ye)ye.hasOwnProperty(e)&&ye[e]instanceof xl&&ye[e].objectNumber>=0&&K("/"+e+" "+ye[e].objectNumber+" 0 R");Ae.publish("putShadingPatternDict"),K(">>")}}(),function(e){if(Object.keys(ye).length>0){for(var t in K("/Pattern <<"),ye)ye.hasOwnProperty(t)&&ye[t]instanceof p.TilingPattern&&ye[t].objectNumber>=0&&ye[t].objectNumber<e&&K("/"+t+" "+ye[t].objectNumber+" 0 R");Ae.publish("putTilingPatternDict"),K(">>")}}(e.objectOid),function(){if(Object.keys(_e).length>0){var e;for(e in K("/ExtGState <<"),_e)_e.hasOwnProperty(e)&&_e[e].objectNumber>=0&&K("/"+e+" "+_e[e].objectNumber+" 0 R");Ae.publish("putGStateDict"),K(">>")}}(),function(){for(var e in K("/XObject <<"),Ce)Ce.hasOwnProperty(e)&&Ce[e].objectNumber>=0&&K("/"+e+" "+Ce[e].objectNumber+" 0 R");Ae.publish("putXobjectDict"),K(">>")}(),K(">>"),K("endobj")},Ze=function(){var e=[];(function(){for(var e in me)me.hasOwnProperty(e)&&(!1===d||!0===d&&h.hasOwnProperty(e))&&Ge(me[e])})(),function(){var e;for(e in _e)_e.hasOwnProperty(e)&&Ke(_e[e])}(),function(){for(var e in Ce)Ce.hasOwnProperty(e)&&Ye(Ce[e])}(),function(e){var t;for(t in ye)ye.hasOwnProperty(t)&&(ye[t]instanceof xl?Xe(ye[t]):ye[t]instanceof Ol&&Je(ye[t],e))}(e),Ae.publish("putResources"),e.forEach(Qe),Qe({resourcesOid:ze,objectOid:Number.MAX_SAFE_INTEGER}),Ae.publish("postPutResources")},et=function(e){ge[e.fontName]=ge[e.fontName]||{},ge[e.fontName][e.fontStyle]=e.id},tt=function(e,t,n,a,i){var o={id:"F"+(Object.keys(me).length+1).toString(10),postScriptName:e,fontName:t,fontStyle:n,encoding:a,isStandardFont:i||!1,metadata:{}};return Ae.publish("addFont",{font:o,instance:this}),me[o.id]=o,et(o),o.id},nt=p.__private__.pdfEscape=p.pdfEscape=function(e,t){return function(e,t){var n,a,i,o,r,s,l,c,u;if(i=(t=t||{}).sourceEncoding||"Unicode",r=t.outputEncoding,(t.autoencode||r)&&me[de].metadata&&me[de].metadata[i]&&me[de].metadata[i].encoding&&(o=me[de].metadata[i].encoding,!r&&me[de].encoding&&(r=me[de].encoding),!r&&o.codePages&&(r=o.codePages[0]),"string"==typeof r&&(r=o[r]),r)){for(l=!1,s=[],n=0,a=e.length;n<a;n++)(c=r[e.charCodeAt(n)])?s.push(String.fromCharCode(c)):s.push(e[n]),s[n].charCodeAt(0)>>8&&(l=!0);e=s.join("")}for(n=e.length;void 0===l&&0!==n;)e.charCodeAt(n-1)>>8&&(l=!0),n--;if(!l)return e;for(s=t.noBOM?[]:[254,255],n=0,a=e.length;n<a;n++){if((u=(c=e.charCodeAt(n))>>8)>>8)throw new Error("Character at position "+n+" of string '"+e+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");s.push(u),s.push(c-(u<<8))}return String.fromCharCode.apply(void 0,s)}(e,t).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},at=p.__private__.beginPage=function(e){G[++Ne]=[],Ie[Ne]={objId:0,contentsObjId:0,userUnit:Number(s),artBox:null,bleedBox:null,cropBox:null,trimBox:null,mediaBox:{bottomLeftX:0,bottomLeftY:0,topRightX:Number(e[0]),topRightY:Number(e[1])}},rt(Ne),J(G[U])},it=function(e,t){var a,o,r;switch(n=t||n,"string"==typeof e&&(a=g(e.toLowerCase()),Array.isArray(a)&&(o=a[0],r=a[1])),Array.isArray(e)&&(o=e[0]*he,r=e[1]*he),isNaN(o)&&(o=i[0],r=i[1]),(o>14400||r>14400)&&(nl.warn("A page in a PDF can not be wider or taller than 14400 userUnit. jsPDF limits the width/height to 14400"),o=Math.min(14400,o),r=Math.min(14400,r)),i=[o,r],n.substr(0,1)){case"l":r>o&&(i=[r,o]);break;case"p":o>r&&(i=[r,o])}at(i),Bt(Lt),K(Ht),0!==Qt&&K(Qt+" J"),0!==Zt&&K(Zt+" j"),Ae.publish("addPage",{pageNumber:Ne})},ot=function(e){e>0&&e<=Ne&&(G.splice(e,1),Ie.splice(e,1),Ne--,U>Ne&&(U=Ne),this.setPage(U))},rt=function(e){e>0&&e<=Ne&&(U=e)},st=p.__private__.getNumberOfPages=p.getNumberOfPages=function(){return G.length-1},lt=function(e,t,n){var a,i=void 0;return n=n||{},e=void 0!==e?e:me[de].fontName,t=void 0!==t?t:me[de].fontStyle,a=e.toLowerCase(),void 0!==ge[a]&&void 0!==ge[a][t]?i=ge[a][t]:void 0!==ge[e]&&void 0!==ge[e][t]?i=ge[e][t]:!1===n.disableWarning&&nl.warn("Unable to look up font label for font '"+e+"', '"+t+"'. Refer to getFontList() for available fonts."),i||n.noFallback||null==(i=ge.times[t])&&(i=ge.times.normal),i},ct=p.__private__.putInfo=function(){var e=je(),t=function(e){return e};for(var n in null!==u&&(t=bt.encryptor(e,0)),K("<<"),K("/Producer ("+nt(t("jsPDF "+Dl.version))+")"),ue)ue.hasOwnProperty(n)&&ue[n]&&K("/"+n.substr(0,1).toUpperCase()+n.substr(1)+" ("+nt(t(ue[n]))+")");K("/CreationDate ("+nt(t(x))+")"),K(">>"),K("endobj")},ut=p.__private__.putCatalog=function(e){var t=(e=e||{}).rootDictionaryObjId||Ue;switch(je(),K("<<"),K("/Type /Catalog"),K("/Pages "+t+" 0 R"),ne||(ne="fullwidth"),ne){case"fullwidth":K("/OpenAction [3 0 R /FitH null]");break;case"fullheight":K("/OpenAction [3 0 R /FitV null]");break;case"fullpage":K("/OpenAction [3 0 R /Fit]");break;case"original":K("/OpenAction [3 0 R /XYZ null null 1]");break;default:var n=""+ne;"%"===n.substr(n.length-1)&&(ne=parseInt(ne)/100),"number"==typeof ne&&K("/OpenAction [3 0 R /XYZ null null "+k(ne)+"]")}switch(se||(se="continuous"),se){case"continuous":K("/PageLayout /OneColumn");break;case"single":K("/PageLayout /SinglePage");break;case"two":case"twoleft":K("/PageLayout /TwoColumnLeft");break;case"tworight":K("/PageLayout /TwoColumnRight")}oe&&K("/PageMode /"+oe),Ae.publish("putCatalog"),K(">>"),K("endobj")},dt=p.__private__.putTrailer=function(){K("trailer"),K("<<"),K("/Size "+(F+1)),K("/Root "+F+" 0 R"),K("/Info "+(F-1)+" 0 R"),null!==u&&K("/Encrypt "+bt.oid+" 0 R"),K("/ID [ <"+O+"> <"+O+"> ]"),K(">>")},ht=p.__private__.putHeader=function(){K("%PDF-"+f),K("%ºß¬à")},pt=p.__private__.putXRef=function(){var e="0000000000";K("xref"),K("0 "+(F+1)),K("0000000000 65535 f ");for(var t=1;t<=F;t++)"function"==typeof $[t]?K((e+$[t]()).slice(-10)+" 00000 n "):void 0!==$[t]?K((e+$[t]).slice(-10)+" 00000 n "):K("0000000000 00000 n ")},ft=p.__private__.buildDocument=function(){F=0,W=0,q=[],$=[],H=[],Ue=Le(),ze=Le(),J(q),Ae.publish("buildDocument"),ht(),He(),function(){Ae.publish("putAdditionalObjects");for(var e=0;e<H.length;e++){var t=H[e];Ve(t.objId,!0),K(t.content),K("endobj")}Ae.publish("postPutAdditionalObjects")}(),Ze(),null!==u&&(bt.oid=je(),K("<<"),K("/Filter /Standard"),K("/V "+bt.v),K("/R "+bt.r),K("/U <"+bt.toHexString(bt.U)+">"),K("/O <"+bt.toHexString(bt.O)+">"),K("/P "+bt.P),K(">>"),K("endobj")),ct(),ut();var e=W;return pt(),dt(),K("startxref"),K(""+e),K("%%EOF"),J(G[U]),q.join("\n")},vt=p.__private__.getBlob=function(e){return new Blob([Z(e)],{type:"application/pdf"})},mt=p.output=p.__private__.output=function(e){return e.foo=function(){try{return e.apply(this,arguments)}catch(e){var t=e.stack||"";~t.indexOf(" at ")&&(t=t.split(" at ")[1]);var n="Error in function "+t.split("\n")[0].split("<")[0]+": "+e.message;if(!el.console)throw new Error(n);el.console.error(n,e),el.alert&&alert(n)}},e.foo.bar=e,e.foo}(function(e,t){switch("string"==typeof(t=t||{})?t={filename:t}:t.filename=t.filename||"generated.pdf",e){case void 0:return ft();case"save":p.save(t.filename);break;case"arraybuffer":return Z(ft());case"blob":return vt(ft());case"bloburi":case"bloburl":if(void 0!==el.URL&&"function"==typeof el.URL.createObjectURL)return el.URL&&el.URL.createObjectURL(vt(ft()))||void 0;nl.warn("bloburl is not supported by your system, because URL.createObjectURL is not supported by your browser.");break;case"datauristring":case"dataurlstring":var n="",a=ft();try{n=sl(a)}catch(e){n=sl(unescape(encodeURIComponent(a)))}return"data:application/pdf;filename="+t.filename+";base64,"+n;case"pdfobjectnewwindow":if("[object Window]"===Object.prototype.toString.call(el)){var i="https://cdnjs.cloudflare.com/ajax/libs/pdfobject/2.1.1/pdfobject.min.js",o=' integrity="sha512-4ze/a9/4jqu+tX9dfOqJYSvyYd5M6qum/3HpCLr+/Jqf0whc37VUbkpNGHR7/8pSnCFw47T1fmIpwBV7UySh3g==" crossorigin="anonymous"';t.pdfObjectUrl&&(i=t.pdfObjectUrl,o="");var r='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><script src="'+i+'"'+o+'><\/script><script >PDFObject.embed("'+this.output("dataurlstring")+'", '+JSON.stringify(t)+");<\/script></body></html>",s=el.open();return null!==s&&s.document.write(r),s}throw new Error("The option pdfobjectnewwindow just works in a browser-environment.");case"pdfjsnewwindow":if("[object Window]"===Object.prototype.toString.call(el)){var l='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><iframe id="pdfViewer" src="'+(t.pdfJsUrl||"examples/PDF.js/web/viewer.html")+"?file=&downloadName="+t.filename+'" width="500px" height="400px" /></body></html>',c=el.open();if(null!==c){c.document.write(l);var u=this;c.document.documentElement.querySelector("#pdfViewer").onload=function(){c.document.title=t.filename,c.document.documentElement.querySelector("#pdfViewer").contentWindow.PDFViewerApplication.open(u.output("bloburl"))}}return c}throw new Error("The option pdfjsnewwindow just works in a browser-environment.");case"dataurlnewwindow":if("[object Window]"!==Object.prototype.toString.call(el))throw new Error("The option dataurlnewwindow just works in a browser-environment.");var d='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><iframe src="'+this.output("datauristring",t)+'"></iframe></body></html>',h=el.open();if(null!==h&&(h.document.write(d),h.document.title=t.filename),h||"undefined"==typeof safari)return h;break;case"datauri":case"dataurl":return el.document.location.href=this.output("datauristring",t);default:return null}}),gt=function(e){return!0===Array.isArray(ke)&&ke.indexOf(e)>-1};switch(a){case"pt":he=1;break;case"mm":he=72/25.4;break;case"cm":he=72/2.54;break;case"in":he=72;break;case"px":he=1==gt("px_scaling")?.75:96/72;break;case"pc":case"em":he=12;break;case"ex":he=6;break;default:if("number"!=typeof a)throw new Error("Invalid unit: "+a);he=a}var bt=null;V(),T();var yt=p.__private__.getPageInfo=p.getPageInfo=function(e){if(isNaN(e)||e%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfo");return{objId:Ie[e].objId,pageNumber:e,pageContext:Ie[e]}},wt=p.__private__.getPageInfoByObjId=function(e){if(isNaN(e)||e%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfoByObjId");for(var t in Ie)if(Ie[t].objId===e)break;return yt(t)},_t=p.__private__.getCurrentPageInfo=p.getCurrentPageInfo=function(){return{objId:Ie[U].objId,pageNumber:U,pageContext:Ie[U]}};p.addPage=function(){return it.apply(this,arguments),this},p.setPage=function(){return rt.apply(this,arguments),J.call(this,G[U]),this},p.insertPage=function(e){return this.addPage(),this.movePage(U,e),this},p.movePage=function(e,t){var n,a;if(e>t){n=G[e],a=Ie[e];for(var i=e;i>t;i--)G[i]=G[i-1],Ie[i]=Ie[i-1];G[t]=n,Ie[t]=a,this.setPage(t)}else if(e<t){n=G[e],a=Ie[e];for(var o=e;o<t;o++)G[o]=G[o+1],Ie[o]=Ie[o+1];G[t]=n,Ie[t]=a,this.setPage(t)}return this},p.deletePage=function(){return ot.apply(this,arguments),this},p.__private__.text=p.text=function(e,t,n,a,i){var o,r,s,l,c,u,d,p,f,v=(a=a||{}).scope||this;if("number"==typeof e&&"number"==typeof t&&("string"==typeof n||Array.isArray(n))){var m=n;n=t,t=e,e=m}if(arguments[3]instanceof xe==0?(s=arguments[4],l=arguments[5],"object"===ss(d=arguments[3])&&null!==d||("string"==typeof s&&(l=s,s=null),"string"==typeof d&&(l=d,d=null),"number"==typeof d&&(s=d,d=null),a={flags:d,angle:s,align:l})):(I("The transform parameter of text() with a Matrix value"),f=i),isNaN(t)||isNaN(n)||null==e)throw new Error("Invalid arguments passed to jsPDF.text");if(0===e.length)return v;var g,b="",_="number"==typeof a.lineHeightFactor?a.lineHeightFactor:jt,E=v.internal.scaleFactor;function P(e){return e=e.split("\t").join(Array(a.TabLen||9).join(" ")),nt(e,d)}function A(e){for(var t,n=e.concat(),a=[],i=n.length;i--;)"string"==typeof(t=n.shift())?a.push(t):Array.isArray(e)&&(1===t.length||void 0===t[1]&&void 0===t[2])?a.push(t[0]):a.push([t[0],t[1],t[2]]);return a}function k(e,t){var n;if("string"==typeof e)n=t(e)[0];else if(Array.isArray(e)){for(var a,i,o=e.concat(),r=[],s=o.length;s--;)"string"==typeof(a=o.shift())?r.push(t(a)[0]):Array.isArray(a)&&"string"==typeof a[0]&&(i=t(a[0],a[1],a[2]),r.push([i[0],i[1],i[2]]));n=r}return n}var C=!1,M=!0;if("string"==typeof e)C=!0;else if(Array.isArray(e)){var x=e.concat();r=[];for(var O,D=x.length;D--;)("string"!=typeof(O=x.shift())||Array.isArray(O)&&"string"!=typeof O[0])&&(M=!1);C=M}if(!1===C)throw new Error('Type of text must be string or Array. "'+e+'" is not recognized.');"string"==typeof e&&(e=e.match(/[\r?\n]/)?e.split(/\r\n|\r|\n/g):[e]);var T=te/v.internal.scaleFactor,j=T*(_-1);switch(a.baseline){case"bottom":n-=j;break;case"top":n+=T-j;break;case"hanging":n+=T-2*j;break;case"middle":n+=T/2-j}if((u=a.maxWidth||0)>0&&("string"==typeof e?e=v.splitTextToSize(e,u):"[object Array]"===Object.prototype.toString.call(e)&&(e=e.reduce(function(e,t){return e.concat(v.splitTextToSize(t,u))},[]))),o={text:e,x:t,y:n,options:a,mutex:{pdfEscape:nt,activeFontKey:de,fonts:me,activeFontSize:te}},Ae.publish("preProcessText",o),e=o.text,s=(a=o.options).angle,f instanceof xe==0&&s&&"number"==typeof s){s*=Math.PI/180,0===a.rotationDirection&&(s=-s),w===y&&(s=-s);var L=Math.cos(s),V=Math.sin(s);f=new xe(L,V,-V,L,0,0)}else s&&s instanceof xe&&(f=s);w!==y||f||(f=De),void 0!==(c=a.charSpace||Jt)&&(b+=N(S(c))+" Tc\n",this.setCharSpace(this.getCharSpace()||0)),void 0!==(p=a.horizontalScale)&&(b+=N(100*p)+" Tz\n"),a.lang;var B=-1,U=void 0!==a.renderingMode?a.renderingMode:a.stroke,z=v.internal.getCurrentPageInfo().pageContext;switch(U){case 0:case!1:case"fill":B=0;break;case 1:case!0:case"stroke":B=1;break;case 2:case"fillThenStroke":B=2;break;case 3:case"invisible":B=3;break;case 4:case"fillAndAddForClipping":B=4;break;case 5:case"strokeAndAddPathForClipping":B=5;break;case 6:case"fillThenStrokeAndAddToPathForClipping":B=6;break;case 7:case"addToPathForClipping":B=7}var R=void 0!==z.usedRenderingMode?z.usedRenderingMode:-1;-1!==B?b+=B+" Tr\n":-1!==R&&(b+="0 Tr\n"),-1!==B&&(z.usedRenderingMode=B),l=a.align||"left";var F,$=te*_,q=v.internal.pageSize.getWidth(),W=me[de];c=a.charSpace||Jt,u=a.maxWidth||0,d=Object.assign({autoencode:!0,noBOM:!0},a.flags);var H=[],G=function(e){return v.getStringUnitWidth(e,{font:W,charSpace:c,fontSize:te,doKerning:!1})*te/E};if("[object Array]"===Object.prototype.toString.call(e)){var Y;r=A(e),"left"!==l&&(F=r.map(G));var X,J=0;if("right"===l){t-=F[0],e=[],D=r.length;for(var Q=0;Q<D;Q++)0===Q?(X=Ft(t),Y=$t(n)):(X=S(J-F[Q]),Y=-$),e.push([r[Q],X,Y]),J=F[Q]}else if("center"===l){t-=F[0]/2,e=[],D=r.length;for(var Z=0;Z<D;Z++)0===Z?(X=Ft(t),Y=$t(n)):(X=S((J-F[Z])/2),Y=-$),e.push([r[Z],X,Y]),J=F[Z]}else if("left"===l){e=[],D=r.length;for(var ee=0;ee<D;ee++)e.push(r[ee])}else if("justify"===l&&"Identity-H"===W.encoding){e=[],D=r.length,u=0!==u?u:q;for(var ne=0,ae=0;ae<D;ae++)if(Y=0===ae?$t(n):-$,X=0===ae?Ft(t):ne,ae<D-1){var oe=S((u-F[ae])/(r[ae].split(" ").length-1)),re=r[ae].split(" ");e.push([re[0]+" ",X,Y]),ne=0;for(var se=1;se<re.length;se++){var le=(G(re[se-1]+" "+re[se])-G(re[se]))*E+oe;se==re.length-1?e.push([re[se],le,0]):e.push([re[se]+" ",le,0]),ne-=le}}else e.push([r[ae],X,Y]);e.push(["",ne,0])}else{if("justify"!==l)throw new Error('Unrecognized alignment option, use "left", "center", "right" or "justify".');for(e=[],D=r.length,u=0!==u?u:q,ae=0;ae<D;ae++)Y=0===ae?$t(n):-$,X=0===ae?Ft(t):0,ae<D-1?H.push(N(S((u-F[ae])/(r[ae].split(" ").length-1)))):H.push(0),e.push([r[ae],X,Y])}}!0===("boolean"==typeof a.R2L?a.R2L:ie)&&(e=k(e,function(e,t,n){return[e.split("").reverse().join(""),t,n]})),o={text:e,x:t,y:n,options:a,mutex:{pdfEscape:nt,activeFontKey:de,fonts:me,activeFontSize:te}},Ae.publish("postProcessText",o),e=o.text,g=o.mutex.isHex||!1;var ce=me[de].encoding;"WinAnsiEncoding"!==ce&&"StandardEncoding"!==ce||(e=k(e,function(e,t,n){return[P(e),t,n]})),r=A(e),e=[];for(var ue,he,pe,fe=Array.isArray(r[0])?1:0,ve="",ge=function(e,t,n){var i="";return n instanceof xe?(n="number"==typeof a.angle?Oe(n,new xe(1,0,0,1,e,t)):Oe(new xe(1,0,0,1,e,t),n),w===y&&(n=Oe(new xe(1,0,0,-1,0,0),n)),i=n.join(" ")+" Tm\n"):i=N(e)+" "+N(t)+" Td\n",i},be=0;be<r.length;be++){switch(ve="",fe){case 1:pe=(g?"<":"(")+r[be][0]+(g?">":")"),ue=parseFloat(r[be][1]),he=parseFloat(r[be][2]);break;case 0:pe=(g?"<":"(")+r[be]+(g?">":")"),ue=Ft(t),he=$t(n)}void 0!==H&&void 0!==H[be]&&(ve=H[be]+" Tw\n"),0===be?e.push(ve+ge(ue,he,f)+pe):0===fe?e.push(ve+pe):1===fe&&e.push(ve+ge(ue,he,f)+pe)}e=0===fe?e.join(" Tj\nT* "):e.join(" Tj\n"),e+=" Tj\n";var ye="BT\n/";return ye+=de+" "+te+" Tf\n",ye+=N(te*_)+" TL\n",ye+=Yt+"\n",ye+=b,ye+=e,K(ye+="ET"),h[de]=!0,v};var Et=p.__private__.clip=p.clip=function(e){return K("evenodd"===e?"W*":"W"),this};p.clipEvenOdd=function(){return Et("evenodd")},p.__private__.discardPath=p.discardPath=function(){return K("n"),this};var Pt=p.__private__.isValidStyle=function(e){var t=!1;return-1!==[void 0,null,"S","D","F","DF","FD","f","f*","B","B*","n"].indexOf(e)&&(t=!0),t};p.__private__.setDefaultPathOperation=p.setDefaultPathOperation=function(e){return Pt(e)&&(c=e),this};var Nt=p.__private__.getStyle=p.getStyle=function(e){var t=c;switch(e){case"D":case"S":t="S";break;case"F":t="f";break;case"FD":case"DF":t="B";break;case"f":case"f*":case"B":case"B*":t=e}return t},It=p.close=function(){return K("h"),this};p.stroke=function(){return K("S"),this},p.fill=function(e){return At("f",e),this},p.fillEvenOdd=function(e){return At("f*",e),this},p.fillStroke=function(e){return At("B",e),this},p.fillStrokeEvenOdd=function(e){return At("B*",e),this};var At=function(e,t){"object"===ss(t)?St(t,e):K(e)},kt=function(e){null===e||w===y&&void 0===e||(e=Nt(e),K(e))};function Ct(e,t,n,a,i){var o=new Ol(t||this.boundingBox,n||this.xStep,a||this.yStep,this.gState,i||this.matrix);o.stream=this.stream;var r=e+"$$"+this.cloneIndex+++"$$";return Te(r,o),o}var St=function(e,t){var n=we[e.key],a=ye[n];if(a instanceof xl)K("q"),K(Mt(t)),a.gState&&p.setGState(a.gState),K(e.matrix.toString()+" cm"),K("/"+n+" sh"),K("Q");else if(a instanceof Ol){var i=new xe(1,0,0,-1,0,cn());e.matrix&&(i=i.multiply(e.matrix||De),n=Ct.call(a,e.key,e.boundingBox,e.xStep,e.yStep,i).id),K("q"),K("/Pattern cs"),K("/"+n+" scn"),a.gState&&p.setGState(a.gState),K(t),K("Q")}},Mt=function(e){switch(e){case"f":case"F":case"n":return"W n";case"f*":return"W* n";case"B":case"S":return"W S";case"B*":return"W* S"}},xt=p.moveTo=function(e,t){return K(N(S(e))+" "+N(M(t))+" m"),this},Ot=p.lineTo=function(e,t){return K(N(S(e))+" "+N(M(t))+" l"),this},Dt=p.curveTo=function(e,t,n,a,i,o){return K([N(S(e)),N(M(t)),N(S(n)),N(M(a)),N(S(i)),N(M(o)),"c"].join(" ")),this};p.__private__.line=p.line=function(e,t,n,a,i){if(isNaN(e)||isNaN(t)||isNaN(n)||isNaN(a)||!Pt(i))throw new Error("Invalid arguments passed to jsPDF.line");return w===b?this.lines([[n-e,a-t]],e,t,[1,1],i||"S"):this.lines([[n-e,a-t]],e,t,[1,1]).stroke()},p.__private__.lines=p.lines=function(e,t,n,a,i,o){var r,s,l,c,u,d,h,p,f,v,m,g;if("number"==typeof e&&(g=n,n=t,t=e,e=g),a=a||[1,1],o=o||!1,isNaN(t)||isNaN(n)||!Array.isArray(e)||!Array.isArray(a)||!Pt(i)||"boolean"!=typeof o)throw new Error("Invalid arguments passed to jsPDF.lines");for(xt(t,n),r=a[0],s=a[1],c=e.length,v=t,m=n,l=0;l<c;l++)2===(u=e[l]).length?(v=u[0]*r+v,m=u[1]*s+m,Ot(v,m)):(d=u[0]*r+v,h=u[1]*s+m,p=u[2]*r+v,f=u[3]*s+m,v=u[4]*r+v,m=u[5]*s+m,Dt(d,h,p,f,v,m));return o&&It(),kt(i),this},p.path=function(e){for(var t=0;t<e.length;t++){var n=e[t],a=n.c;switch(n.op){case"m":xt(a[0],a[1]);break;case"l":Ot(a[0],a[1]);break;case"c":Dt.apply(this,a);break;case"h":It()}}return this},p.__private__.rect=p.rect=function(e,t,n,a,i){if(isNaN(e)||isNaN(t)||isNaN(n)||isNaN(a)||!Pt(i))throw new Error("Invalid arguments passed to jsPDF.rect");return w===b&&(a=-a),K([N(S(e)),N(M(t)),N(S(n)),N(S(a)),"re"].join(" ")),kt(i),this},p.__private__.triangle=p.triangle=function(e,t,n,a,i,o,r){if(isNaN(e)||isNaN(t)||isNaN(n)||isNaN(a)||isNaN(i)||isNaN(o)||!Pt(r))throw new Error("Invalid arguments passed to jsPDF.triangle");return this.lines([[n-e,a-t],[i-n,o-a],[e-i,t-o]],e,t,[1,1],r,!0),this},p.__private__.roundedRect=p.roundedRect=function(e,t,n,a,i,o,r){if(isNaN(e)||isNaN(t)||isNaN(n)||isNaN(a)||isNaN(i)||isNaN(o)||!Pt(r))throw new Error("Invalid arguments passed to jsPDF.roundedRect");var s=4/3*(Math.SQRT2-1);return i=Math.min(i,.5*n),o=Math.min(o,.5*a),this.lines([[n-2*i,0],[i*s,0,i,o-o*s,i,o],[0,a-2*o],[0,o*s,-i*s,o,-i,o],[2*i-n,0],[-i*s,0,-i,-o*s,-i,-o],[0,2*o-a],[0,-o*s,i*s,-o,i,-o]],e+i,t,[1,1],r,!0),this},p.__private__.ellipse=p.ellipse=function(e,t,n,a,i){if(isNaN(e)||isNaN(t)||isNaN(n)||isNaN(a)||!Pt(i))throw new Error("Invalid arguments passed to jsPDF.ellipse");var o=4/3*(Math.SQRT2-1)*n,r=4/3*(Math.SQRT2-1)*a;return xt(e+n,t),Dt(e+n,t-r,e+o,t-a,e,t-a),Dt(e-o,t-a,e-n,t-r,e-n,t),Dt(e-n,t+r,e-o,t+a,e,t+a),Dt(e+o,t+a,e+n,t+r,e+n,t),kt(i),this},p.__private__.circle=p.circle=function(e,t,n,a){if(isNaN(e)||isNaN(t)||isNaN(n)||!Pt(a))throw new Error("Invalid arguments passed to jsPDF.circle");return this.ellipse(e,t,n,n,a)},p.setFont=function(e,t,n){return n&&(t=P(t,n)),de=lt(e,t,{disableWarning:!1}),this};var Tt=p.__private__.getFont=p.getFont=function(){return me[lt.apply(p,arguments)]};p.__private__.getFontList=p.getFontList=function(){var e,t,n={};for(e in ge)if(ge.hasOwnProperty(e))for(t in n[e]=[],ge[e])ge[e].hasOwnProperty(t)&&n[e].push(t);return n},p.addFont=function(e,t,n,a,i){var o=["StandardEncoding","MacRomanEncoding","Identity-H","WinAnsiEncoding"];return arguments[3]&&-1!==o.indexOf(arguments[3])?i=arguments[3]:arguments[3]&&-1==o.indexOf(arguments[3])&&(n=P(n,a)),tt.call(this,e,t,n,i=i||"Identity-H")};var jt,Lt=e.lineWidth||.200025,Vt=p.__private__.getLineWidth=p.getLineWidth=function(){return Lt},Bt=p.__private__.setLineWidth=p.setLineWidth=function(e){return Lt=e,K(N(S(e))+" w"),this};p.__private__.setLineDash=Dl.API.setLineDash=Dl.API.setLineDashPattern=function(e,t){if(e=e||[],t=t||0,isNaN(t)||!Array.isArray(e))throw new Error("Invalid arguments passed to jsPDF.setLineDash");return e=e.map(function(e){return N(S(e))}).join(" "),t=N(S(t)),K("["+e+"] "+t+" d"),this};var Ut=p.__private__.getLineHeight=p.getLineHeight=function(){return te*jt};p.__private__.getLineHeight=p.getLineHeight=function(){return te*jt};var zt=p.__private__.setLineHeightFactor=p.setLineHeightFactor=function(e){return"number"==typeof(e=e||1.15)&&(jt=e),this},Rt=p.__private__.getLineHeightFactor=p.getLineHeightFactor=function(){return jt};zt(e.lineHeight);var Ft=p.__private__.getHorizontalCoordinate=function(e){return S(e)},$t=p.__private__.getVerticalCoordinate=function(e){return w===y?e:Ie[U].mediaBox.topRightY-Ie[U].mediaBox.bottomLeftY-S(e)},qt=p.__private__.getHorizontalCoordinateString=p.getHorizontalCoordinateString=function(e){return N(Ft(e))},Wt=p.__private__.getVerticalCoordinateString=p.getVerticalCoordinateString=function(e){return N($t(e))},Ht=e.strokeColor||"0 G";p.__private__.getStrokeColor=p.getDrawColor=function(){return Re(Ht)},p.__private__.setStrokeColor=p.setDrawColor=function(e,t,n,a){return Ht=Fe({ch1:e,ch2:t,ch3:n,ch4:a,pdfColorType:"draw",precision:2}),K(Ht),this};var Gt=e.fillColor||"0 g";p.__private__.getFillColor=p.getFillColor=function(){return Re(Gt)},p.__private__.setFillColor=p.setFillColor=function(e,t,n,a){return Gt=Fe({ch1:e,ch2:t,ch3:n,ch4:a,pdfColorType:"fill",precision:2}),K(Gt),this};var Yt=e.textColor||"0 g",Xt=p.__private__.getTextColor=p.getTextColor=function(){return Re(Yt)};p.__private__.setTextColor=p.setTextColor=function(e,t,n,a){return Yt=Fe({ch1:e,ch2:t,ch3:n,ch4:a,pdfColorType:"text",precision:3}),this};var Jt=e.charSpace,Kt=p.__private__.getCharSpace=p.getCharSpace=function(){return parseFloat(Jt||0)};p.__private__.setCharSpace=p.setCharSpace=function(e){if(isNaN(e))throw new Error("Invalid argument passed to jsPDF.setCharSpace");return Jt=e,this};var Qt=0;p.CapJoinStyles={0:0,butt:0,but:0,miter:0,1:1,round:1,rounded:1,circle:1,2:2,projecting:2,project:2,square:2,bevel:2},p.__private__.setLineCap=p.setLineCap=function(e){var t=p.CapJoinStyles[e];if(void 0===t)throw new Error("Line cap style of '"+e+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return Qt=t,K(t+" J"),this};var Zt=0;p.__private__.setLineJoin=p.setLineJoin=function(e){var t=p.CapJoinStyles[e];if(void 0===t)throw new Error("Line join style of '"+e+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return Zt=t,K(t+" j"),this},p.__private__.setLineMiterLimit=p.__private__.setMiterLimit=p.setLineMiterLimit=p.setMiterLimit=function(e){if(e=e||0,isNaN(e))throw new Error("Invalid argument passed to jsPDF.setLineMiterLimit");return K(N(S(e))+" M"),this},p.GState=Sl,p.setGState=function(e){(e="string"==typeof e?_e[Ee[e]]:en(null,e)).equals(Pe)||(K("/"+e.id+" gs"),Pe=e)};var en=function(e,t){if(!e||!Ee[e]){var n=!1;for(var a in _e)if(_e.hasOwnProperty(a)&&_e[a].equals(t)){n=!0;break}if(n)t=_e[a];else{var i="GS"+(Object.keys(_e).length+1).toString(10);_e[i]=t,t.id=i}return e&&(Ee[e]=t.id),Ae.publish("addGState",t),t}};p.addGState=function(e,t){return en(e,t),this},p.saveGraphicsState=function(){return K("q"),be.push({key:de,size:te,color:Yt}),this},p.restoreGraphicsState=function(){K("Q");var e=be.pop();return de=e.key,te=e.size,Yt=e.color,Pe=null,this},p.setCurrentTransformationMatrix=function(e){return K(e.toString()+" cm"),this},p.comment=function(e){return K("#"+e),this};var tn=function(e,t){var n=e||0;Object.defineProperty(this,"x",{enumerable:!0,get:function(){return n},set:function(e){isNaN(e)||(n=parseFloat(e))}});var a=t||0;Object.defineProperty(this,"y",{enumerable:!0,get:function(){return a},set:function(e){isNaN(e)||(a=parseFloat(e))}});var i="pt";return Object.defineProperty(this,"type",{enumerable:!0,get:function(){return i},set:function(e){i=e.toString()}}),this},nn=function(e,t,n,a){tn.call(this,e,t),this.type="rect";var i=n||0;Object.defineProperty(this,"w",{enumerable:!0,get:function(){return i},set:function(e){isNaN(e)||(i=parseFloat(e))}});var o=a||0;return Object.defineProperty(this,"h",{enumerable:!0,get:function(){return o},set:function(e){isNaN(e)||(o=parseFloat(e))}}),this},an=function(){this.page=Ne,this.currentPage=U,this.pages=G.slice(0),this.pagesContext=Ie.slice(0),this.x=pe,this.y=fe,this.matrix=ve,this.width=sn(U),this.height=cn(U),this.outputDestination=X,this.id="",this.objectNumber=-1};an.prototype.restore=function(){Ne=this.page,U=this.currentPage,Ie=this.pagesContext,G=this.pages,pe=this.x,fe=this.y,ve=this.matrix,ln(U,this.width),un(U,this.height),X=this.outputDestination};var on=function(e,t,n,a,i){Me.push(new an),Ne=U=0,G=[],pe=e,fe=t,ve=i,at([n,a])};for(var rn in p.beginFormObject=function(e,t,n,a,i){return on(e,t,n,a,i),this},p.endFormObject=function(e){return function(e){if(Se[e])Me.pop().restore();else{var t=new an,n="Xo"+(Object.keys(Ce).length+1).toString(10);t.id=n,Se[e]=n,Ce[n]=t,Ae.publish("addFormObject",t),Me.pop().restore()}}(e),this},p.doFormObject=function(e,t){var n=Ce[Se[e]];return K("q"),K(t.toString()+" cm"),K("/"+n.id+" Do"),K("Q"),this},p.getFormObject=function(e){var t=Ce[Se[e]];return{x:t.x,y:t.y,width:t.width,height:t.height,matrix:t.matrix}},p.save=function(e,t){return e=e||"generated.pdf",(t=t||{}).returnPromise=t.returnPromise||!1,!1===t.returnPromise?(ll(vt(ft()),e),"function"==typeof ll.unload&&el.setTimeout&&setTimeout(ll.unload,911),this):new Promise(function(t,n){try{var a=ll(vt(ft()),e);"function"==typeof ll.unload&&el.setTimeout&&setTimeout(ll.unload,911),t(a)}catch(e){n(e.message)}})},Dl.API)Dl.API.hasOwnProperty(rn)&&("events"===rn&&Dl.API.events.length?function(e,t){var n,a,i;for(i=t.length-1;-1!==i;i--)n=t[i][0],a=t[i][1],e.subscribe.apply(e,[n].concat("function"==typeof a?[a]:a))}(Ae,Dl.API.events):p[rn]=Dl.API[rn]);var sn=p.getPageWidth=function(e){return(Ie[e=e||U].mediaBox.topRightX-Ie[e].mediaBox.bottomLeftX)/he},ln=p.setPageWidth=function(e,t){Ie[e].mediaBox.topRightX=t*he+Ie[e].mediaBox.bottomLeftX},cn=p.getPageHeight=function(e){return(Ie[e=e||U].mediaBox.topRightY-Ie[e].mediaBox.bottomLeftY)/he},un=p.setPageHeight=function(e,t){Ie[e].mediaBox.topRightY=t*he+Ie[e].mediaBox.bottomLeftY};return p.internal={pdfEscape:nt,getStyle:Nt,getFont:Tt,getFontSize:ae,getCharSpace:Kt,getTextColor:Xt,getLineHeight:Ut,getLineHeightFactor:Rt,getLineWidth:Vt,write:Q,getHorizontalCoordinate:Ft,getVerticalCoordinate:$t,getCoordinateString:qt,getVerticalCoordinateString:Wt,collections:{},newObject:je,newAdditionalObject:Be,newObjectDeferred:Le,newObjectDeferredBegin:Ve,getFilters:$e,putStream:qe,events:Ae,scaleFactor:he,pageSize:{getWidth:function(){return sn(U)},setWidth:function(e){ln(U,e)},getHeight:function(){return cn(U)},setHeight:function(e){un(U,e)}},encryptionOptions:u,encryption:bt,getEncryptor:function(e){return null!==u?bt.encryptor(e,0):function(e){return e}},output:mt,getNumberOfPages:st,pages:G,out:K,f2:k,f3:C,getPageInfo:yt,getPageInfoByObjId:wt,getCurrentPageInfo:_t,getPDFVersion:v,Point:tn,Rectangle:nn,Matrix:xe,hasHotfix:gt},Object.defineProperty(p.internal.pageSize,"width",{get:function(){return sn(U)},set:function(e){ln(U,e)},enumerable:!0,configurable:!0}),Object.defineProperty(p.internal.pageSize,"height",{get:function(){return cn(U)},set:function(e){un(U,e)},enumerable:!0,configurable:!0}),function(e){for(var t=0,n=ee.length;t<n;t++){var a=tt.call(this,e[t][0],e[t][1],e[t][2],ee[t][3],!0);!1===d&&(h[a]=!0);var i=e[t][0].split("-");et({id:a,fontName:i[0],fontStyle:i[1]||""})}Ae.publish("addFonts",{fonts:me,dictionary:ge})}.call(p,ee),de="F1",it(i,n),Ae.publish("initialized"),p}Al.prototype.lsbFirstWord=function(e){return String.fromCharCode(255&e,e>>8&255,e>>16&255,e>>24&255)},Al.prototype.toHexString=function(e){return e.split("").map(function(e){return("0"+(255&e.charCodeAt(0)).toString(16)).slice(-2)}).join("")},Al.prototype.hexToBytes=function(e){for(var t=[],n=0;n<e.length;n+=2)t.push(String.fromCharCode(parseInt(e.substr(n,2),16)));return t.join("")},Al.prototype.processOwnerPassword=function(e,t){return Nl(_l(t).substr(0,5),e)},Al.prototype.encryptor=function(e,t){var n=_l(this.encryptionKey+String.fromCharCode(255&e,e>>8&255,e>>16&255,255&t,t>>8&255)).substr(0,10);return function(e){return Nl(n,e)}},Sl.prototype.equals=function(e){var t,n="id,objectNumber,equals";if(!e||ss(e)!==ss(this))return!1;var a=0;for(t in this)if(!(n.indexOf(t)>=0)){if(this.hasOwnProperty(t)&&!e.hasOwnProperty(t))return!1;if(this[t]!==e[t])return!1;a++}for(t in e)e.hasOwnProperty(t)&&n.indexOf(t)<0&&a--;return 0===a},Dl.API={events:[]},Dl.version="2.5.2";var Tl=Dl.API,jl=1,Ll=function(e){return e.replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},Vl=function(e){return e.replace(/\\\\/g,"\\").replace(/\\\(/g,"(").replace(/\\\)/g,")")},Bl=function(e){return e.toFixed(2)},Ul=function(e){return e.toFixed(5)};Tl.__acroform__={};var zl=function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e},Rl=function(e){return e*jl},Fl=function(e){var t=new oc,n=yc.internal.getHeight(e)||0,a=yc.internal.getWidth(e)||0;return t.BBox=[0,0,Number(Bl(a)),Number(Bl(n))],t},$l=Tl.__acroform__.setBit=function(e,t){if(e=e||0,t=t||0,isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBit");return e|1<<t},ql=Tl.__acroform__.clearBit=function(e,t){if(e=e||0,t=t||0,isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBit");return e&~(1<<t)},Wl=Tl.__acroform__.getBit=function(e,t){if(isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBit");return e&1<<t?1:0},Hl=Tl.__acroform__.getBitForPdf=function(e,t){if(isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBitForPdf");return Wl(e,t-1)},Gl=Tl.__acroform__.setBitForPdf=function(e,t){if(isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBitForPdf");return $l(e,t-1)},Yl=Tl.__acroform__.clearBitForPdf=function(e,t){if(isNaN(e)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBitForPdf");return ql(e,t-1)},Xl=Tl.__acroform__.calculateCoordinates=function(e,t){var n=t.internal.getHorizontalCoordinate,a=t.internal.getVerticalCoordinate,i=e[0],o=e[1],r=e[2],s=e[3],l={};return l.lowerLeft_X=n(i)||0,l.lowerLeft_Y=a(o+s)||0,l.upperRight_X=n(i+r)||0,l.upperRight_Y=a(o)||0,[Number(Bl(l.lowerLeft_X)),Number(Bl(l.lowerLeft_Y)),Number(Bl(l.upperRight_X)),Number(Bl(l.upperRight_Y))]},Jl=function(e){if(e.appearanceStreamContent)return e.appearanceStreamContent;if(e.V||e.DV){var t=[],n=e._V||e.DV,a=Kl(e,n),i=e.scope.internal.getFont(e.fontName,e.fontStyle).id;t.push("/Tx BMC"),t.push("q"),t.push("BT"),t.push(e.scope.__private__.encodeColorString(e.color)),t.push("/"+i+" "+Bl(a.fontSize)+" Tf"),t.push("1 0 0 1 0 0 Tm"),t.push(a.text),t.push("ET"),t.push("Q"),t.push("EMC");var o=Fl(e);return o.scope=e.scope,o.stream=t.join("\n"),o}},Kl=function(e,t){var n=0===e.fontSize?e.maxFontSize:e.fontSize,a={text:"",fontSize:""},i=(t=")"==(t="("==t.substr(0,1)?t.substr(1):t).substr(t.length-1)?t.substr(0,t.length-1):t).split(" ");i=e.multiline?i.map(function(e){return e.split("\n")}):i.map(function(e){return[e]});var o=n,r=yc.internal.getHeight(e)||0;r=r<0?-r:r;var s=yc.internal.getWidth(e)||0;s=s<0?-s:s;var l=function(t,n,a){if(t+1<i.length){var o=n+" "+i[t+1][0];return Ql(o,e,a).width<=s-4}return!1};o++;e:for(;o>0;){t="",o--;var c,u,d=Ql("3",e,o).height,h=e.multiline?r-o:(r-d)/2,p=h+=2,f=0,v=0,m=0;if(o<=0){t="(...) Tj\n",t+="% Width of Text: "+Ql(t,e,o=12).width+", FieldWidth:"+s+"\n";break}for(var g="",b=0,y=0;y<i.length;y++)if(i.hasOwnProperty(y)){var w=!1;if(1!==i[y].length&&m!==i[y].length-1){if((d+2)*(b+2)+2>r)continue e;g+=i[y][m],w=!0,v=y,y--}else{g=" "==(g+=i[y][m]+" ").substr(g.length-1)?g.substr(0,g.length-1):g;var _=parseInt(y),E=l(_,g,o),P=y>=i.length-1;if(E&&!P){g+=" ",m=0;continue}if(E||P){if(P)v=_;else if(e.multiline&&(d+2)*(b+2)+2>r)continue e}else{if(!e.multiline)continue e;if((d+2)*(b+2)+2>r)continue e;v=_}}for(var N="",I=f;I<=v;I++){var A=i[I];if(e.multiline){if(I===v){N+=A[m]+" ",m=(m+1)%A.length;continue}if(I===f){N+=A[A.length-1]+" ";continue}}N+=A[0]+" "}switch(N=" "==N.substr(N.length-1)?N.substr(0,N.length-1):N,u=Ql(N,e,o).width,e.textAlign){case"right":c=s-u-2;break;case"center":c=(s-u)/2;break;default:c=2}t+=Bl(c)+" "+Bl(p)+" Td\n",t+="("+Ll(N)+") Tj\n",t+=-Bl(c)+" 0 Td\n",p=-(o+2),u=0,f=w?v:v+1,b++,g=""}break}return a.text=t,a.fontSize=o,a},Ql=function(e,t,n){var a=t.scope.internal.getFont(t.fontName,t.fontStyle),i=t.scope.getStringUnitWidth(e,{font:a,fontSize:parseFloat(n),charSpace:0})*parseFloat(n);return{height:t.scope.getStringUnitWidth("3",{font:a,fontSize:parseFloat(n),charSpace:0})*parseFloat(n)*1.5,width:i}},Zl={fields:[],xForms:[],acroFormDictionaryRoot:null,printedOut:!1,internal:null,isInitialized:!1},ec=function(e,t){var n={type:"reference",object:e};void 0===t.internal.getPageInfo(e.page).pageContext.annotations.find(function(e){return e.type===n.type&&e.object===n.object})&&t.internal.getPageInfo(e.page).pageContext.annotations.push(n)},tc=function(e,t){if(t.scope=e,void 0!==e.internal&&(void 0===e.internal.acroformPlugin||!1===e.internal.acroformPlugin.isInitialized)){if(sc.FieldNum=0,e.internal.acroformPlugin=JSON.parse(JSON.stringify(Zl)),e.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("Exception while creating AcroformDictionary");jl=e.internal.scaleFactor,e.internal.acroformPlugin.acroFormDictionaryRoot=new rc,e.internal.acroformPlugin.acroFormDictionaryRoot.scope=e,e.internal.acroformPlugin.acroFormDictionaryRoot._eventID=e.internal.events.subscribe("postPutResources",function(){!function(e){e.internal.events.unsubscribe(e.internal.acroformPlugin.acroFormDictionaryRoot._eventID),delete e.internal.acroformPlugin.acroFormDictionaryRoot._eventID,e.internal.acroformPlugin.printedOut=!0}(e)}),e.internal.events.subscribe("buildDocument",function(){!function(e){e.internal.acroformPlugin.acroFormDictionaryRoot.objId=void 0;var t=e.internal.acroformPlugin.acroFormDictionaryRoot.Fields;for(var n in t)if(t.hasOwnProperty(n)){var a=t[n];a.objId=void 0,a.hasAnnotation&&ec(a,e)}}(e)}),e.internal.events.subscribe("putCatalog",function(){!function(e){if(void 0===e.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("putCatalogCallback: Root missing.");e.internal.write("/AcroForm "+e.internal.acroformPlugin.acroFormDictionaryRoot.objId+" 0 R")}(e)}),e.internal.events.subscribe("postPutPages",function(t){!function(e,t){var n=!e;for(var a in e||(t.internal.newObjectDeferredBegin(t.internal.acroformPlugin.acroFormDictionaryRoot.objId,!0),t.internal.acroformPlugin.acroFormDictionaryRoot.putStream()),e=e||t.internal.acroformPlugin.acroFormDictionaryRoot.Kids)if(e.hasOwnProperty(a)){var i=e[a],o=[],r=i.Rect;if(i.Rect&&(i.Rect=Xl(i.Rect,t)),t.internal.newObjectDeferredBegin(i.objId,!0),i.DA=yc.createDefaultAppearanceStream(i),"object"===ss(i)&&"function"==typeof i.getKeyValueListForStream&&(o=i.getKeyValueListForStream()),i.Rect=r,i.hasAppearanceStream&&!i.appearanceStreamContent){var s=Jl(i);o.push({key:"AP",value:"<</N "+s+">>"}),t.internal.acroformPlugin.xForms.push(s)}if(i.appearanceStreamContent){var l="";for(var c in i.appearanceStreamContent)if(i.appearanceStreamContent.hasOwnProperty(c)){var u=i.appearanceStreamContent[c];if(l+="/"+c+" ",l+="<<",Object.keys(u).length>=1||Array.isArray(u)){for(var a in u)if(u.hasOwnProperty(a)){var d=u[a];"function"==typeof d&&(d=d.call(t,i)),l+="/"+a+" "+d+" ",t.internal.acroformPlugin.xForms.indexOf(d)>=0||t.internal.acroformPlugin.xForms.push(d)}}else"function"==typeof(d=u)&&(d=d.call(t,i)),l+="/"+a+" "+d,t.internal.acroformPlugin.xForms.indexOf(d)>=0||t.internal.acroformPlugin.xForms.push(d);l+=">>"}o.push({key:"AP",value:"<<\n"+l+">>"})}t.internal.putStream({additionalKeyValues:o,objectId:i.objId}),t.internal.out("endobj")}n&&function(e,t){for(var n in e)if(e.hasOwnProperty(n)){var a=n,i=e[n];t.internal.newObjectDeferredBegin(i.objId,!0),"object"===ss(i)&&"function"==typeof i.putStream&&i.putStream(),delete e[a]}}(t.internal.acroformPlugin.xForms,t)}(t,e)}),e.internal.acroformPlugin.isInitialized=!0}},nc=Tl.__acroform__.arrayToPdfArray=function(e,t,n){var a=function(e){return e};if(Array.isArray(e)){for(var i="[",o=0;o<e.length;o++)switch(0!==o&&(i+=" "),ss(e[o])){case"boolean":case"number":case"object":i+=e[o].toString();break;case"string":"/"!==e[o].substr(0,1)?(void 0!==t&&n&&(a=n.internal.getEncryptor(t)),i+="("+Ll(a(e[o].toString()))+")"):i+=e[o].toString()}return i+"]"}throw new Error("Invalid argument passed to jsPDF.__acroform__.arrayToPdfArray")},ac=function(e,t,n){var a=function(e){return e};return void 0!==t&&n&&(a=n.internal.getEncryptor(t)),(e=e||"").toString(),"("+Ll(a(e))+")"},ic=function(){this._objId=void 0,this._scope=void 0,Object.defineProperty(this,"objId",{get:function(){if(void 0===this._objId){if(void 0===this.scope)return;this._objId=this.scope.internal.newObjectDeferred()}return this._objId},set:function(e){this._objId=e}}),Object.defineProperty(this,"scope",{value:this._scope,writable:!0})};ic.prototype.toString=function(){return this.objId+" 0 R"},ic.prototype.putStream=function(){var e=this.getKeyValueListForStream();this.scope.internal.putStream({data:this.stream,additionalKeyValues:e,objectId:this.objId}),this.scope.internal.out("endobj")},ic.prototype.getKeyValueListForStream=function(){var e=[],t=Object.getOwnPropertyNames(this).filter(function(e){return"content"!=e&&"appearanceStreamContent"!=e&&"scope"!=e&&"objId"!=e&&"_"!=e.substring(0,1)});for(var n in t)if(!1===Object.getOwnPropertyDescriptor(this,t[n]).configurable){var a=t[n],i=this[a];i&&(Array.isArray(i)?e.push({key:a,value:nc(i,this.objId,this.scope)}):i instanceof ic?(i.scope=this.scope,e.push({key:a,value:i.objId+" 0 R"})):"function"!=typeof i&&e.push({key:a,value:i}))}return e};var oc=function(){ic.call(this),Object.defineProperty(this,"Type",{value:"/XObject",configurable:!1,writable:!0}),Object.defineProperty(this,"Subtype",{value:"/Form",configurable:!1,writable:!0}),Object.defineProperty(this,"FormType",{value:1,configurable:!1,writable:!0});var e,t=[];Object.defineProperty(this,"BBox",{configurable:!1,get:function(){return t},set:function(e){t=e}}),Object.defineProperty(this,"Resources",{value:"2 0 R",configurable:!1,writable:!0}),Object.defineProperty(this,"stream",{enumerable:!1,configurable:!0,set:function(t){e=t.trim()},get:function(){return e||null}})};zl(oc,ic);var rc=function(){ic.call(this);var e,t=[];Object.defineProperty(this,"Kids",{enumerable:!1,configurable:!0,get:function(){return t.length>0?t:void 0}}),Object.defineProperty(this,"Fields",{enumerable:!1,configurable:!1,get:function(){return t}}),Object.defineProperty(this,"DA",{enumerable:!1,configurable:!1,get:function(){if(e){var t=function(e){return e};return this.scope&&(t=this.scope.internal.getEncryptor(this.objId)),"("+Ll(t(e))+")"}},set:function(t){e=t}})};zl(rc,ic);var sc=function e(){ic.call(this);var t=4;Object.defineProperty(this,"F",{enumerable:!1,configurable:!1,get:function(){return t},set:function(e){if(isNaN(e))throw new Error('Invalid value "'+e+'" for attribute F supplied.');t=e}}),Object.defineProperty(this,"showWhenPrinted",{enumerable:!0,configurable:!0,get:function(){return Boolean(Hl(t,3))},set:function(e){!0===Boolean(e)?this.F=Gl(t,3):this.F=Yl(t,3)}});var n=0;Object.defineProperty(this,"Ff",{enumerable:!1,configurable:!1,get:function(){return n},set:function(e){if(isNaN(e))throw new Error('Invalid value "'+e+'" for attribute Ff supplied.');n=e}});var a=[];Object.defineProperty(this,"Rect",{enumerable:!1,configurable:!1,get:function(){if(0!==a.length)return a},set:function(e){a=void 0!==e?e:[]}}),Object.defineProperty(this,"x",{enumerable:!0,configurable:!0,get:function(){return!a||isNaN(a[0])?0:a[0]},set:function(e){a[0]=e}}),Object.defineProperty(this,"y",{enumerable:!0,configurable:!0,get:function(){return!a||isNaN(a[1])?0:a[1]},set:function(e){a[1]=e}}),Object.defineProperty(this,"width",{enumerable:!0,configurable:!0,get:function(){return!a||isNaN(a[2])?0:a[2]},set:function(e){a[2]=e}}),Object.defineProperty(this,"height",{enumerable:!0,configurable:!0,get:function(){return!a||isNaN(a[3])?0:a[3]},set:function(e){a[3]=e}});var i="";Object.defineProperty(this,"FT",{enumerable:!0,configurable:!1,get:function(){return i},set:function(e){switch(e){case"/Btn":case"/Tx":case"/Ch":case"/Sig":i=e;break;default:throw new Error('Invalid value "'+e+'" for attribute FT supplied.')}}});var o=null;Object.defineProperty(this,"T",{enumerable:!0,configurable:!1,get:function(){if(!o||o.length<1){if(this instanceof vc)return;o="FieldObject"+e.FieldNum++}var t=function(e){return e};return this.scope&&(t=this.scope.internal.getEncryptor(this.objId)),"("+Ll(t(o))+")"},set:function(e){o=e.toString()}}),Object.defineProperty(this,"fieldName",{configurable:!0,enumerable:!0,get:function(){return o},set:function(e){o=e}});var r="helvetica";Object.defineProperty(this,"fontName",{enumerable:!0,configurable:!0,get:function(){return r},set:function(e){r=e}});var s="normal";Object.defineProperty(this,"fontStyle",{enumerable:!0,configurable:!0,get:function(){return s},set:function(e){s=e}});var l=0;Object.defineProperty(this,"fontSize",{enumerable:!0,configurable:!0,get:function(){return l},set:function(e){l=e}});var c=void 0;Object.defineProperty(this,"maxFontSize",{enumerable:!0,configurable:!0,get:function(){return void 0===c?50/jl:c},set:function(e){c=e}});var u="black";Object.defineProperty(this,"color",{enumerable:!0,configurable:!0,get:function(){return u},set:function(e){u=e}});var d="/F1 0 Tf 0 g";Object.defineProperty(this,"DA",{enumerable:!0,configurable:!1,get:function(){if(!(!d||this instanceof vc||this instanceof gc))return ac(d,this.objId,this.scope)},set:function(e){e=e.toString(),d=e}});var h=null;Object.defineProperty(this,"DV",{enumerable:!1,configurable:!1,get:function(){if(h)return this instanceof hc==0?ac(h,this.objId,this.scope):h},set:function(e){e=e.toString(),h=this instanceof hc==0?"("===e.substr(0,1)?Vl(e.substr(1,e.length-2)):Vl(e):e}}),Object.defineProperty(this,"defaultValue",{enumerable:!0,configurable:!0,get:function(){return this instanceof hc==1?Vl(h.substr(1,h.length-1)):h},set:function(e){e=e.toString(),h=this instanceof hc==1?"/"+e:e}});var p=null;Object.defineProperty(this,"_V",{enumerable:!1,configurable:!1,get:function(){if(p)return p},set:function(e){this.V=e}}),Object.defineProperty(this,"V",{enumerable:!1,configurable:!1,get:function(){if(p)return this instanceof hc==0?ac(p,this.objId,this.scope):p},set:function(e){e=e.toString(),p=this instanceof hc==0?"("===e.substr(0,1)?Vl(e.substr(1,e.length-2)):Vl(e):e}}),Object.defineProperty(this,"value",{enumerable:!0,configurable:!0,get:function(){return this instanceof hc==1?Vl(p.substr(1,p.length-1)):p},set:function(e){e=e.toString(),p=this instanceof hc==1?"/"+e:e}}),Object.defineProperty(this,"hasAnnotation",{enumerable:!0,configurable:!0,get:function(){return this.Rect}}),Object.defineProperty(this,"Type",{enumerable:!0,configurable:!1,get:function(){return this.hasAnnotation?"/Annot":null}}),Object.defineProperty(this,"Subtype",{enumerable:!0,configurable:!1,get:function(){return this.hasAnnotation?"/Widget":null}});var f,v=!1;Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return v},set:function(e){e=Boolean(e),v=e}}),Object.defineProperty(this,"page",{enumerable:!0,configurable:!0,get:function(){if(f)return f},set:function(e){f=e}}),Object.defineProperty(this,"readOnly",{enumerable:!0,configurable:!0,get:function(){return Boolean(Hl(this.Ff,1))},set:function(e){!0===Boolean(e)?this.Ff=Gl(this.Ff,1):this.Ff=Yl(this.Ff,1)}}),Object.defineProperty(this,"required",{enumerable:!0,configurable:!0,get:function(){return Boolean(Hl(this.Ff,2))},set:function(e){!0===Boolean(e)?this.Ff=Gl(this.Ff,2):this.Ff=Yl(this.Ff,2)}}),Object.defineProperty(this,"noExport",{enumerable:!0,configurable:!0,get:function(){return Boolean(Hl(this.Ff,3))},set:function(e){!0===Boolean(e)?this.Ff=Gl(this.Ff,3):this.Ff=Yl(this.Ff,3)}});var m=null;Object.defineProperty(this,"Q",{enumerable:!0,configurable:!1,get:function(){if(null!==m)return m},set:function(e){if(-1===[0,1,2].indexOf(e))throw new Error('Invalid value "'+e+'" for attribute Q supplied.');m=e}}),Object.defineProperty(this,"textAlign",{get:function(){var e;switch(m){case 0:default:e="left";break;case 1:e="center";break;case 2:e="right"}return e},configurable:!0,enumerable:!0,set:function(e){switch(e){case"right":case 2:m=2;break;case"center":case 1:m=1;break;default:m=0}}})};zl(sc,ic);var lc=function(){sc.call(this),this.FT="/Ch",this.V="()",this.fontName="zapfdingbats";var e=0;Object.defineProperty(this,"TI",{enumerable:!0,configurable:!1,get:function(){return e},set:function(t){e=t}}),Object.defineProperty(this,"topIndex",{enumerable:!0,configurable:!0,get:function(){return e},set:function(t){e=t}});var t=[];Object.defineProperty(this,"Opt",{enumerable:!0,configurable:!1,get:function(){return nc(t,this.objId,this.scope)},set:function(e){var n,a;a=[],"string"==typeof(n=e)&&(a=function(e,t,n){n||(n=1);for(var a,i=[];a=t.exec(e);)i.push(a[n]);return i}(n,/\((.*?)\)/g)),t=a}}),this.getOptions=function(){return t},this.setOptions=function(e){t=e,this.sort&&t.sort()},this.addOption=function(e){e=(e=e||"").toString(),t.push(e),this.sort&&t.sort()},this.removeOption=function(e,n){for(n=n||!1,e=(e=e||"").toString();-1!==t.indexOf(e)&&(t.splice(t.indexOf(e),1),!1!==n););},Object.defineProperty(this,"combo",{enumerable:!0,configurable:!0,get:function(){return Boolean(Hl(this.Ff,18))},set:function(e){!0===Boolean(e)?this.Ff=Gl(this.Ff,18):this.Ff=Yl(this.Ff,18)}}),Object.defineProperty(this,"edit",{enumerable:!0,configurable:!0,get:function(){return Boolean(Hl(this.Ff,19))},set:function(e){!0===this.combo&&(!0===Boolean(e)?this.Ff=Gl(this.Ff,19):this.Ff=Yl(this.Ff,19))}}),Object.defineProperty(this,"sort",{enumerable:!0,configurable:!0,get:function(){return Boolean(Hl(this.Ff,20))},set:function(e){!0===Boolean(e)?(this.Ff=Gl(this.Ff,20),t.sort()):this.Ff=Yl(this.Ff,20)}}),Object.defineProperty(this,"multiSelect",{enumerable:!0,configurable:!0,get:function(){return Boolean(Hl(this.Ff,22))},set:function(e){!0===Boolean(e)?this.Ff=Gl(this.Ff,22):this.Ff=Yl(this.Ff,22)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return Boolean(Hl(this.Ff,23))},set:function(e){!0===Boolean(e)?this.Ff=Gl(this.Ff,23):this.Ff=Yl(this.Ff,23)}}),Object.defineProperty(this,"commitOnSelChange",{enumerable:!0,configurable:!0,get:function(){return Boolean(Hl(this.Ff,27))},set:function(e){!0===Boolean(e)?this.Ff=Gl(this.Ff,27):this.Ff=Yl(this.Ff,27)}}),this.hasAppearanceStream=!1};zl(lc,sc);var cc=function(){lc.call(this),this.fontName="helvetica",this.combo=!1};zl(cc,lc);var uc=function(){cc.call(this),this.combo=!0};zl(uc,cc);var dc=function(){uc.call(this),this.edit=!0};zl(dc,uc);var hc=function(){sc.call(this),this.FT="/Btn",Object.defineProperty(this,"noToggleToOff",{enumerable:!0,configurable:!0,get:function(){return Boolean(Hl(this.Ff,15))},set:function(e){!0===Boolean(e)?this.Ff=Gl(this.Ff,15):this.Ff=Yl(this.Ff,15)}}),Object.defineProperty(this,"radio",{enumerable:!0,configurable:!0,get:function(){return Boolean(Hl(this.Ff,16))},set:function(e){!0===Boolean(e)?this.Ff=Gl(this.Ff,16):this.Ff=Yl(this.Ff,16)}}),Object.defineProperty(this,"pushButton",{enumerable:!0,configurable:!0,get:function(){return Boolean(Hl(this.Ff,17))},set:function(e){!0===Boolean(e)?this.Ff=Gl(this.Ff,17):this.Ff=Yl(this.Ff,17)}}),Object.defineProperty(this,"radioIsUnison",{enumerable:!0,configurable:!0,get:function(){return Boolean(Hl(this.Ff,26))},set:function(e){!0===Boolean(e)?this.Ff=Gl(this.Ff,26):this.Ff=Yl(this.Ff,26)}});var e,t={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var e=function(e){return e};if(this.scope&&(e=this.scope.internal.getEncryptor(this.objId)),0!==Object.keys(t).length){var n,a=[];for(n in a.push("<<"),t)a.push("/"+n+" ("+Ll(e(t[n]))+")");return a.push(">>"),a.join("\n")}},set:function(e){"object"===ss(e)&&(t=e)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return t.CA||""},set:function(e){"string"==typeof e&&(t.CA=e)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return e},set:function(t){e=t}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return e.substr(1,e.length-1)},set:function(t){e="/"+t}})};zl(hc,sc);var pc=function(){hc.call(this),this.pushButton=!0};zl(pc,hc);var fc=function(){hc.call(this),this.radio=!0,this.pushButton=!1;var e=[];Object.defineProperty(this,"Kids",{enumerable:!0,configurable:!1,get:function(){return e},set:function(t){e=void 0!==t?t:[]}})};zl(fc,hc);var vc=function(){var e,t;sc.call(this),Object.defineProperty(this,"Parent",{enumerable:!1,configurable:!1,get:function(){return e},set:function(t){e=t}}),Object.defineProperty(this,"optionName",{enumerable:!1,configurable:!0,get:function(){return t},set:function(e){t=e}});var n,a={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var e=function(e){return e};this.scope&&(e=this.scope.internal.getEncryptor(this.objId));var t,n=[];for(t in n.push("<<"),a)n.push("/"+t+" ("+Ll(e(a[t]))+")");return n.push(">>"),n.join("\n")},set:function(e){"object"===ss(e)&&(a=e)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return a.CA||""},set:function(e){"string"==typeof e&&(a.CA=e)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return n},set:function(e){n=e}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return n.substr(1,n.length-1)},set:function(e){n="/"+e}}),this.caption="l",this.appearanceState="Off",this._AppearanceType=yc.RadioButton.Circle,this.appearanceStreamContent=this._AppearanceType.createAppearanceStream(this.optionName)};zl(vc,sc),fc.prototype.setAppearance=function(e){if(!("createAppearanceStream"in e)||!("getCA"in e))throw new Error("Couldn't assign Appearance to RadioButton. Appearance was Invalid!");for(var t in this.Kids)if(this.Kids.hasOwnProperty(t)){var n=this.Kids[t];n.appearanceStreamContent=e.createAppearanceStream(n.optionName),n.caption=e.getCA()}},fc.prototype.createOption=function(e){var t=new vc;return t.Parent=this,t.optionName=e,this.Kids.push(t),wc.call(this.scope,t),t};var mc=function(){hc.call(this),this.fontName="zapfdingbats",this.caption="3",this.appearanceState="On",this.value="On",this.textAlign="center",this.appearanceStreamContent=yc.CheckBox.createAppearanceStream()};zl(mc,hc);var gc=function(){sc.call(this),this.FT="/Tx",Object.defineProperty(this,"multiline",{enumerable:!0,configurable:!0,get:function(){return Boolean(Hl(this.Ff,13))},set:function(e){!0===Boolean(e)?this.Ff=Gl(this.Ff,13):this.Ff=Yl(this.Ff,13)}}),Object.defineProperty(this,"fileSelect",{enumerable:!0,configurable:!0,get:function(){return Boolean(Hl(this.Ff,21))},set:function(e){!0===Boolean(e)?this.Ff=Gl(this.Ff,21):this.Ff=Yl(this.Ff,21)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return Boolean(Hl(this.Ff,23))},set:function(e){!0===Boolean(e)?this.Ff=Gl(this.Ff,23):this.Ff=Yl(this.Ff,23)}}),Object.defineProperty(this,"doNotScroll",{enumerable:!0,configurable:!0,get:function(){return Boolean(Hl(this.Ff,24))},set:function(e){!0===Boolean(e)?this.Ff=Gl(this.Ff,24):this.Ff=Yl(this.Ff,24)}}),Object.defineProperty(this,"comb",{enumerable:!0,configurable:!0,get:function(){return Boolean(Hl(this.Ff,25))},set:function(e){!0===Boolean(e)?this.Ff=Gl(this.Ff,25):this.Ff=Yl(this.Ff,25)}}),Object.defineProperty(this,"richText",{enumerable:!0,configurable:!0,get:function(){return Boolean(Hl(this.Ff,26))},set:function(e){!0===Boolean(e)?this.Ff=Gl(this.Ff,26):this.Ff=Yl(this.Ff,26)}});var e=null;Object.defineProperty(this,"MaxLen",{enumerable:!0,configurable:!1,get:function(){return e},set:function(t){e=t}}),Object.defineProperty(this,"maxLength",{enumerable:!0,configurable:!0,get:function(){return e},set:function(t){Number.isInteger(t)&&(e=t)}}),Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return this.V||this.DV}})};zl(gc,sc);var bc=function(){gc.call(this),Object.defineProperty(this,"password",{enumerable:!0,configurable:!0,get:function(){return Boolean(Hl(this.Ff,14))},set:function(e){!0===Boolean(e)?this.Ff=Gl(this.Ff,14):this.Ff=Yl(this.Ff,14)}}),this.password=!0};zl(bc,gc);var yc={CheckBox:{createAppearanceStream:function(){return{N:{On:yc.CheckBox.YesNormal},D:{On:yc.CheckBox.YesPushDown,Off:yc.CheckBox.OffPushDown}}},YesPushDown:function(e){var t=Fl(e);t.scope=e.scope;var n=[],a=e.scope.internal.getFont(e.fontName,e.fontStyle).id,i=e.scope.__private__.encodeColorString(e.color),o=Kl(e,e.caption);return n.push("0.749023 g"),n.push("0 0 "+Bl(yc.internal.getWidth(e))+" "+Bl(yc.internal.getHeight(e))+" re"),n.push("f"),n.push("BMC"),n.push("q"),n.push("0 0 1 rg"),n.push("/"+a+" "+Bl(o.fontSize)+" Tf "+i),n.push("BT"),n.push(o.text),n.push("ET"),n.push("Q"),n.push("EMC"),t.stream=n.join("\n"),t},YesNormal:function(e){var t=Fl(e);t.scope=e.scope;var n=e.scope.internal.getFont(e.fontName,e.fontStyle).id,a=e.scope.__private__.encodeColorString(e.color),i=[],o=yc.internal.getHeight(e),r=yc.internal.getWidth(e),s=Kl(e,e.caption);return i.push("1 g"),i.push("0 0 "+Bl(r)+" "+Bl(o)+" re"),i.push("f"),i.push("q"),i.push("0 0 1 rg"),i.push("0 0 "+Bl(r-1)+" "+Bl(o-1)+" re"),i.push("W"),i.push("n"),i.push("0 g"),i.push("BT"),i.push("/"+n+" "+Bl(s.fontSize)+" Tf "+a),i.push(s.text),i.push("ET"),i.push("Q"),t.stream=i.join("\n"),t},OffPushDown:function(e){var t=Fl(e);t.scope=e.scope;var n=[];return n.push("0.749023 g"),n.push("0 0 "+Bl(yc.internal.getWidth(e))+" "+Bl(yc.internal.getHeight(e))+" re"),n.push("f"),t.stream=n.join("\n"),t}},RadioButton:{Circle:{createAppearanceStream:function(e){var t={D:{Off:yc.RadioButton.Circle.OffPushDown},N:{}};return t.N[e]=yc.RadioButton.Circle.YesNormal,t.D[e]=yc.RadioButton.Circle.YesPushDown,t},getCA:function(){return"l"},YesNormal:function(e){var t=Fl(e);t.scope=e.scope;var n=[],a=yc.internal.getWidth(e)<=yc.internal.getHeight(e)?yc.internal.getWidth(e)/4:yc.internal.getHeight(e)/4;a=Number((.9*a).toFixed(5));var i=yc.internal.Bezier_C,o=Number((a*i).toFixed(5));return n.push("q"),n.push("1 0 0 1 "+Ul(yc.internal.getWidth(e)/2)+" "+Ul(yc.internal.getHeight(e)/2)+" cm"),n.push(a+" 0 m"),n.push(a+" "+o+" "+o+" "+a+" 0 "+a+" c"),n.push("-"+o+" "+a+" -"+a+" "+o+" -"+a+" 0 c"),n.push("-"+a+" -"+o+" -"+o+" -"+a+" 0 -"+a+" c"),n.push(o+" -"+a+" "+a+" -"+o+" "+a+" 0 c"),n.push("f"),n.push("Q"),t.stream=n.join("\n"),t},YesPushDown:function(e){var t=Fl(e);t.scope=e.scope;var n=[],a=yc.internal.getWidth(e)<=yc.internal.getHeight(e)?yc.internal.getWidth(e)/4:yc.internal.getHeight(e)/4;a=Number((.9*a).toFixed(5));var i=Number((2*a).toFixed(5)),o=Number((i*yc.internal.Bezier_C).toFixed(5)),r=Number((a*yc.internal.Bezier_C).toFixed(5));return n.push("0.749023 g"),n.push("q"),n.push("1 0 0 1 "+Ul(yc.internal.getWidth(e)/2)+" "+Ul(yc.internal.getHeight(e)/2)+" cm"),n.push(i+" 0 m"),n.push(i+" "+o+" "+o+" "+i+" 0 "+i+" c"),n.push("-"+o+" "+i+" -"+i+" "+o+" -"+i+" 0 c"),n.push("-"+i+" -"+o+" -"+o+" -"+i+" 0 -"+i+" c"),n.push(o+" -"+i+" "+i+" -"+o+" "+i+" 0 c"),n.push("f"),n.push("Q"),n.push("0 g"),n.push("q"),n.push("1 0 0 1 "+Ul(yc.internal.getWidth(e)/2)+" "+Ul(yc.internal.getHeight(e)/2)+" cm"),n.push(a+" 0 m"),n.push(a+" "+r+" "+r+" "+a+" 0 "+a+" c"),n.push("-"+r+" "+a+" -"+a+" "+r+" -"+a+" 0 c"),n.push("-"+a+" -"+r+" -"+r+" -"+a+" 0 -"+a+" c"),n.push(r+" -"+a+" "+a+" -"+r+" "+a+" 0 c"),n.push("f"),n.push("Q"),t.stream=n.join("\n"),t},OffPushDown:function(e){var t=Fl(e);t.scope=e.scope;var n=[],a=yc.internal.getWidth(e)<=yc.internal.getHeight(e)?yc.internal.getWidth(e)/4:yc.internal.getHeight(e)/4;a=Number((.9*a).toFixed(5));var i=Number((2*a).toFixed(5)),o=Number((i*yc.internal.Bezier_C).toFixed(5));return n.push("0.749023 g"),n.push("q"),n.push("1 0 0 1 "+Ul(yc.internal.getWidth(e)/2)+" "+Ul(yc.internal.getHeight(e)/2)+" cm"),n.push(i+" 0 m"),n.push(i+" "+o+" "+o+" "+i+" 0 "+i+" c"),n.push("-"+o+" "+i+" -"+i+" "+o+" -"+i+" 0 c"),n.push("-"+i+" -"+o+" -"+o+" -"+i+" 0 -"+i+" c"),n.push(o+" -"+i+" "+i+" -"+o+" "+i+" 0 c"),n.push("f"),n.push("Q"),t.stream=n.join("\n"),t}},Cross:{createAppearanceStream:function(e){var t={D:{Off:yc.RadioButton.Cross.OffPushDown},N:{}};return t.N[e]=yc.RadioButton.Cross.YesNormal,t.D[e]=yc.RadioButton.Cross.YesPushDown,t},getCA:function(){return"8"},YesNormal:function(e){var t=Fl(e);t.scope=e.scope;var n=[],a=yc.internal.calculateCross(e);return n.push("q"),n.push("1 1 "+Bl(yc.internal.getWidth(e)-2)+" "+Bl(yc.internal.getHeight(e)-2)+" re"),n.push("W"),n.push("n"),n.push(Bl(a.x1.x)+" "+Bl(a.x1.y)+" m"),n.push(Bl(a.x2.x)+" "+Bl(a.x2.y)+" l"),n.push(Bl(a.x4.x)+" "+Bl(a.x4.y)+" m"),n.push(Bl(a.x3.x)+" "+Bl(a.x3.y)+" l"),n.push("s"),n.push("Q"),t.stream=n.join("\n"),t},YesPushDown:function(e){var t=Fl(e);t.scope=e.scope;var n=yc.internal.calculateCross(e),a=[];return a.push("0.749023 g"),a.push("0 0 "+Bl(yc.internal.getWidth(e))+" "+Bl(yc.internal.getHeight(e))+" re"),a.push("f"),a.push("q"),a.push("1 1 "+Bl(yc.internal.getWidth(e)-2)+" "+Bl(yc.internal.getHeight(e)-2)+" re"),a.push("W"),a.push("n"),a.push(Bl(n.x1.x)+" "+Bl(n.x1.y)+" m"),a.push(Bl(n.x2.x)+" "+Bl(n.x2.y)+" l"),a.push(Bl(n.x4.x)+" "+Bl(n.x4.y)+" m"),a.push(Bl(n.x3.x)+" "+Bl(n.x3.y)+" l"),a.push("s"),a.push("Q"),t.stream=a.join("\n"),t},OffPushDown:function(e){var t=Fl(e);t.scope=e.scope;var n=[];return n.push("0.749023 g"),n.push("0 0 "+Bl(yc.internal.getWidth(e))+" "+Bl(yc.internal.getHeight(e))+" re"),n.push("f"),t.stream=n.join("\n"),t}}},createDefaultAppearanceStream:function(e){var t=e.scope.internal.getFont(e.fontName,e.fontStyle).id,n=e.scope.__private__.encodeColorString(e.color);return"/"+t+" "+e.fontSize+" Tf "+n}};yc.internal={Bezier_C:.551915024494,calculateCross:function(e){var t=yc.internal.getWidth(e),n=yc.internal.getHeight(e),a=Math.min(t,n);return{x1:{x:(t-a)/2,y:(n-a)/2+a},x2:{x:(t-a)/2+a,y:(n-a)/2},x3:{x:(t-a)/2,y:(n-a)/2},x4:{x:(t-a)/2+a,y:(n-a)/2+a}}}},yc.internal.getWidth=function(e){var t=0;return"object"===ss(e)&&(t=Rl(e.Rect[2])),t},yc.internal.getHeight=function(e){var t=0;return"object"===ss(e)&&(t=Rl(e.Rect[3])),t};var wc=Tl.addField=function(e){if(tc(this,e),!(e instanceof sc))throw new Error("Invalid argument passed to jsPDF.addField.");var t;return(t=e).scope.internal.acroformPlugin.printedOut&&(t.scope.internal.acroformPlugin.printedOut=!1,t.scope.internal.acroformPlugin.acroFormDictionaryRoot=null),t.scope.internal.acroformPlugin.acroFormDictionaryRoot.Fields.push(t),e.page=e.scope.internal.getCurrentPageInfo().pageNumber,this};function _c(e){return e.reduce(function(e,t,n){return e[t]=n,e},{})}Tl.AcroFormChoiceField=lc,Tl.AcroFormListBox=cc,Tl.AcroFormComboBox=uc,Tl.AcroFormEditBox=dc,Tl.AcroFormButton=hc,Tl.AcroFormPushButton=pc,Tl.AcroFormRadioButton=fc,Tl.AcroFormCheckBox=mc,Tl.AcroFormTextField=gc,Tl.AcroFormPasswordField=bc,Tl.AcroFormAppearance=yc,Tl.AcroForm={ChoiceField:lc,ListBox:cc,ComboBox:uc,EditBox:dc,Button:hc,PushButton:pc,RadioButton:fc,CheckBox:mc,TextField:gc,PasswordField:bc,Appearance:yc},Dl.AcroForm={ChoiceField:lc,ListBox:cc,ComboBox:uc,EditBox:dc,Button:hc,PushButton:pc,RadioButton:fc,CheckBox:mc,TextField:gc,PasswordField:bc,Appearance:yc},Dl.AcroForm,function(e){e.__addimage__={};var t="UNKNOWN",n={PNG:[[137,80,78,71]],TIFF:[[77,77,0,42],[73,73,42,0]],JPEG:[[255,216,255,224,void 0,void 0,74,70,73,70,0],[255,216,255,225,void 0,void 0,69,120,105,102,0,0],[255,216,255,219],[255,216,255,238]],JPEG2000:[[0,0,0,12,106,80,32,32]],GIF87a:[[71,73,70,56,55,97]],GIF89a:[[71,73,70,56,57,97]],WEBP:[[82,73,70,70,void 0,void 0,void 0,void 0,87,69,66,80]],BMP:[[66,77],[66,65],[67,73],[67,80],[73,67],[80,84]]},a=e.__addimage__.getImageFileTypeByImageData=function(e,a){var i,o,r,s,l,c=t;if("RGBA"===(a=a||t)||void 0!==e.data&&e.data instanceof Uint8ClampedArray&&"height"in e&&"width"in e)return"RGBA";if(E(e))for(l in n)for(r=n[l],i=0;i<r.length;i+=1){for(s=!0,o=0;o<r[i].length;o+=1)if(void 0!==r[i][o]&&r[i][o]!==e[o]){s=!1;break}if(!0===s){c=l;break}}else for(l in n)for(r=n[l],i=0;i<r.length;i+=1){for(s=!0,o=0;o<r[i].length;o+=1)if(void 0!==r[i][o]&&r[i][o]!==e.charCodeAt(o)){s=!1;break}if(!0===s){c=l;break}}return c===t&&a!==t&&(c=a),c},i=function e(t){for(var n=this.internal.write,a=this.internal.putStream,i=(0,this.internal.getFilters)();-1!==i.indexOf("FlateEncode");)i.splice(i.indexOf("FlateEncode"),1);t.objectId=this.internal.newObject();var o=[];if(o.push({key:"Type",value:"/XObject"}),o.push({key:"Subtype",value:"/Image"}),o.push({key:"Width",value:t.width}),o.push({key:"Height",value:t.height}),t.colorSpace===m.INDEXED?o.push({key:"ColorSpace",value:"[/Indexed /DeviceRGB "+(t.palette.length/3-1)+" "+("sMask"in t&&void 0!==t.sMask?t.objectId+2:t.objectId+1)+" 0 R]"}):(o.push({key:"ColorSpace",value:"/"+t.colorSpace}),t.colorSpace===m.DEVICE_CMYK&&o.push({key:"Decode",value:"[1 0 1 0 1 0 1 0]"})),o.push({key:"BitsPerComponent",value:t.bitsPerComponent}),"decodeParameters"in t&&void 0!==t.decodeParameters&&o.push({key:"DecodeParms",value:"<<"+t.decodeParameters+">>"}),"transparency"in t&&Array.isArray(t.transparency)){for(var r="",s=0,l=t.transparency.length;s<l;s++)r+=t.transparency[s]+" "+t.transparency[s]+" ";o.push({key:"Mask",value:"["+r+"]"})}void 0!==t.sMask&&o.push({key:"SMask",value:t.objectId+1+" 0 R"});var c=void 0!==t.filter?["/"+t.filter]:void 0;if(a({data:t.data,additionalKeyValues:o,alreadyAppliedFilters:c,objectId:t.objectId}),n("endobj"),"sMask"in t&&void 0!==t.sMask){var u="/Predictor "+t.predictor+" /Colors 1 /BitsPerComponent "+t.bitsPerComponent+" /Columns "+t.width,d={width:t.width,height:t.height,colorSpace:"DeviceGray",bitsPerComponent:t.bitsPerComponent,decodeParameters:u,data:t.sMask};"filter"in t&&(d.filter=t.filter),e.call(this,d)}if(t.colorSpace===m.INDEXED){var h=this.internal.newObject();a({data:N(new Uint8Array(t.palette)),objectId:h}),n("endobj")}},o=function(){var e=this.internal.collections.addImage_images;for(var t in e)i.call(this,e[t])},r=function(){var e,t=this.internal.collections.addImage_images,n=this.internal.write;for(var a in t)n("/I"+(e=t[a]).index,e.objectId,"0","R")},s=function(){this.internal.collections.addImage_images||(this.internal.collections.addImage_images={},this.internal.events.subscribe("putResources",o),this.internal.events.subscribe("putXobjectDict",r))},l=function(){var e=this.internal.collections.addImage_images;return s.call(this),e},c=function(){return Object.keys(this.internal.collections.addImage_images).length},u=function(t){return"function"==typeof e["process"+t.toUpperCase()]},d=function(e){return"object"===ss(e)&&1===e.nodeType},h=function(t,n){if("IMG"===t.nodeName&&t.hasAttribute("src")){var a=""+t.getAttribute("src");if(0===a.indexOf("data:image/"))return rl(unescape(a).split("base64,").pop());var i=e.loadFile(a,!0);if(void 0!==i)return i}if("CANVAS"===t.nodeName){if(0===t.width||0===t.height)throw new Error("Given canvas must have data. Canvas width: "+t.width+", height: "+t.height);var o;switch(n){case"PNG":o="image/png";break;case"WEBP":o="image/webp";break;default:o="image/jpeg"}return rl(t.toDataURL(o,1).split("base64,").pop())}},p=function(e){var t=this.internal.collections.addImage_images;if(t)for(var n in t)if(e===t[n].alias)return t[n]},f=function(e,t,n){return e||t||(e=-96,t=-96),e<0&&(e=-1*n.width*72/e/this.internal.scaleFactor),t<0&&(t=-1*n.height*72/t/this.internal.scaleFactor),0===e&&(e=t*n.width/n.height),0===t&&(t=e*n.height/n.width),[e,t]},v=function(e,t,n,a,i,o){var r=f.call(this,n,a,i),s=this.internal.getCoordinateString,c=this.internal.getVerticalCoordinateString,u=l.call(this);if(n=r[0],a=r[1],u[i.index]=i,o){o*=Math.PI/180;var d=Math.cos(o),h=Math.sin(o),p=function(e){return e.toFixed(4)},v=[p(d),p(h),p(-1*h),p(d),0,0,"cm"]}this.internal.write("q"),o?(this.internal.write([1,"0","0",1,s(e),c(t+a),"cm"].join(" ")),this.internal.write(v.join(" ")),this.internal.write([s(n),"0","0",s(a),"0","0","cm"].join(" "))):this.internal.write([s(n),"0","0",s(a),s(e),c(t+a),"cm"].join(" ")),this.isAdvancedAPI()&&this.internal.write([1,0,0,-1,0,0,"cm"].join(" ")),this.internal.write("/I"+i.index+" Do"),this.internal.write("Q")},m=e.color_spaces={DEVICE_RGB:"DeviceRGB",DEVICE_GRAY:"DeviceGray",DEVICE_CMYK:"DeviceCMYK",CAL_GREY:"CalGray",CAL_RGB:"CalRGB",LAB:"Lab",ICC_BASED:"ICCBased",INDEXED:"Indexed",PATTERN:"Pattern",SEPARATION:"Separation",DEVICE_N:"DeviceN"};e.decode={DCT_DECODE:"DCTDecode",FLATE_DECODE:"FlateDecode",LZW_DECODE:"LZWDecode",JPX_DECODE:"JPXDecode",JBIG2_DECODE:"JBIG2Decode",ASCII85_DECODE:"ASCII85Decode",ASCII_HEX_DECODE:"ASCIIHexDecode",RUN_LENGTH_DECODE:"RunLengthDecode",CCITT_FAX_DECODE:"CCITTFaxDecode"};var g=e.image_compression={NONE:"NONE",FAST:"FAST",MEDIUM:"MEDIUM",SLOW:"SLOW"},b=e.__addimage__.sHashCode=function(e){var t,n,a=0;if("string"==typeof e)for(n=e.length,t=0;t<n;t++)a=(a<<5)-a+e.charCodeAt(t),a|=0;else if(E(e))for(n=e.byteLength/2,t=0;t<n;t++)a=(a<<5)-a+e[t],a|=0;return a},y=e.__addimage__.validateStringAsBase64=function(e){(e=e||"").toString().trim();var t=!0;return 0===e.length&&(t=!1),e.length%4!=0&&(t=!1),!1===/^[A-Za-z0-9+/]+$/.test(e.substr(0,e.length-2))&&(t=!1),!1===/^[A-Za-z0-9/][A-Za-z0-9+/]|[A-Za-z0-9+/]=|==$/.test(e.substr(-2))&&(t=!1),t},w=e.__addimage__.extractImageFromDataUrl=function(e){var t=(e=e||"").split("base64,"),n=null;if(2===t.length){var a=/^data:(\w*\/\w*);*(charset=(?!charset=)[\w=-]*)*;*$/.exec(t[0]);Array.isArray(a)&&(n={mimeType:a[1],charset:a[2],data:t[1]})}return n},_=e.__addimage__.supportsArrayBuffer=function(){return"undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array};e.__addimage__.isArrayBuffer=function(e){return _()&&e instanceof ArrayBuffer};var E=e.__addimage__.isArrayBufferView=function(e){return _()&&"undefined"!=typeof Uint32Array&&(e instanceof Int8Array||e instanceof Uint8Array||"undefined"!=typeof Uint8ClampedArray&&e instanceof Uint8ClampedArray||e instanceof Int16Array||e instanceof Uint16Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Float32Array||e instanceof Float64Array)},P=e.__addimage__.binaryStringToUint8Array=function(e){for(var t=e.length,n=new Uint8Array(t),a=0;a<t;a++)n[a]=e.charCodeAt(a);return n},N=e.__addimage__.arrayBufferToBinaryString=function(e){for(var t="",n=E(e)?e:new Uint8Array(e),a=0;a<n.length;a+=8192)t+=String.fromCharCode.apply(null,n.subarray(a,a+8192));return t};e.addImage=function(){var e,n,a,i,o,r,l,c,u;if("number"==typeof arguments[1]?(n=t,a=arguments[1],i=arguments[2],o=arguments[3],r=arguments[4],l=arguments[5],c=arguments[6],u=arguments[7]):(n=arguments[1],a=arguments[2],i=arguments[3],o=arguments[4],r=arguments[5],l=arguments[6],c=arguments[7],u=arguments[8]),"object"===ss(e=arguments[0])&&!d(e)&&"imageData"in e){var h=e;e=h.imageData,n=h.format||n||t,a=h.x||a||0,i=h.y||i||0,o=h.w||h.width||o,r=h.h||h.height||r,l=h.alias||l,c=h.compression||c,u=h.rotation||h.angle||u}var p=this.internal.getFilters();if(void 0===c&&-1!==p.indexOf("FlateEncode")&&(c="SLOW"),isNaN(a)||isNaN(i))throw new Error("Invalid coordinates passed to jsPDF.addImage");s.call(this);var f=I.call(this,e,n,l,c);return v.call(this,a,i,o,r,f,u),this};var I=function(n,i,o,r){var s,l,f;if("string"==typeof n&&a(n)===t){n=unescape(n);var v=A(n,!1);(""!==v||void 0!==(v=e.loadFile(n,!0)))&&(n=v)}if(d(n)&&(n=h(n,i)),i=a(n,i),!u(i))throw new Error("addImage does not support files of type '"+i+"', please ensure that a plugin for '"+i+"' support is added.");if((null==(f=o)||0===f.length)&&(o=function(e){return"string"==typeof e||E(e)?b(e):E(e.data)?b(e.data):null}(n)),(s=p.call(this,o))||(_()&&(n instanceof Uint8Array||"RGBA"===i||(l=n,n=P(n))),s=this["process"+i.toUpperCase()](n,c.call(this),o,function(t){return t&&"string"==typeof t&&(t=t.toUpperCase()),t in e.image_compression?t:g.NONE}(r),l)),!s)throw new Error("An unknown error occurred whilst processing the image.");return s},A=e.__addimage__.convertBase64ToBinaryString=function(e,t){var n;t="boolean"!=typeof t||t;var a,i="";if("string"==typeof e){a=null!==(n=w(e))?n.data:e;try{i=rl(a)}catch(e){if(t)throw y(a)?new Error("atob-Error in jsPDF.convertBase64ToBinaryString "+e.message):new Error("Supplied Data is not a valid base64-String jsPDF.convertBase64ToBinaryString ")}}return i};e.getImageProperties=function(n){var i,o,r="";if(d(n)&&(n=h(n)),"string"==typeof n&&a(n)===t&&(""===(r=A(n,!1))&&(r=e.loadFile(n)||""),n=r),o=a(n),!u(o))throw new Error("addImage does not support files of type '"+o+"', please ensure that a plugin for '"+o+"' support is added.");if(!_()||n instanceof Uint8Array||(n=P(n)),!(i=this["process"+o.toUpperCase()](n)))throw new Error("An unknown error occurred whilst processing the image");return i.fileType=o,i}}(Dl.API),
85
+ /**
86
+ * @license
87
+ * Copyright (c) 2014 Steven Spungin (TwelveTone LLC) steven@twelvetone.tv
88
+ *
89
+ * Licensed under the MIT License.
90
+ * http://opensource.org/licenses/mit-license
91
+ */
92
+ function(e){var t=function(e){if(void 0!==e&&""!=e)return!0};Dl.API.events.push(["addPage",function(e){this.internal.getPageInfo(e.pageNumber).pageContext.annotations=[]}]),e.events.push(["putPage",function(e){for(var n,a,i,o=this.internal.getCoordinateString,r=this.internal.getVerticalCoordinateString,s=this.internal.getPageInfoByObjId(e.objId),l=e.pageContext.annotations,c=!1,u=0;u<l.length&&!c;u++)switch((n=l[u]).type){case"link":(t(n.options.url)||t(n.options.pageNumber))&&(c=!0);break;case"reference":case"text":case"freetext":c=!0}if(0!=c){this.internal.write("/Annots [");for(var d=0;d<l.length;d++){n=l[d];var h=this.internal.pdfEscape,p=this.internal.getEncryptor(e.objId);switch(n.type){case"reference":this.internal.write(" "+n.object.objId+" 0 R ");break;case"text":var f=this.internal.newAdditionalObject(),v=this.internal.newAdditionalObject(),m=this.internal.getEncryptor(f.objId),g=n.title||"Note";i="<</Type /Annot /Subtype /Text "+(a="/Rect ["+o(n.bounds.x)+" "+r(n.bounds.y+n.bounds.h)+" "+o(n.bounds.x+n.bounds.w)+" "+r(n.bounds.y)+"] ")+"/Contents ("+h(m(n.contents))+")",i+=" /Popup "+v.objId+" 0 R",i+=" /P "+s.objId+" 0 R",i+=" /T ("+h(m(g))+") >>",f.content=i;var b=f.objId+" 0 R";i="<</Type /Annot /Subtype /Popup "+(a="/Rect ["+o(n.bounds.x+30)+" "+r(n.bounds.y+n.bounds.h)+" "+o(n.bounds.x+n.bounds.w+30)+" "+r(n.bounds.y)+"] ")+" /Parent "+b,n.open&&(i+=" /Open true"),i+=" >>",v.content=i,this.internal.write(f.objId,"0 R",v.objId,"0 R");break;case"freetext":a="/Rect ["+o(n.bounds.x)+" "+r(n.bounds.y)+" "+o(n.bounds.x+n.bounds.w)+" "+r(n.bounds.y+n.bounds.h)+"] ";var y=n.color||"#000000";i="<</Type /Annot /Subtype /FreeText "+a+"/Contents ("+h(p(n.contents))+")",i+=" /DS(font: Helvetica,sans-serif 12.0pt; text-align:left; color:#"+y+")",i+=" /Border [0 0 0]",i+=" >>",this.internal.write(i);break;case"link":if(n.options.name){var w=this.annotations._nameMap[n.options.name];n.options.pageNumber=w.page,n.options.top=w.y}else n.options.top||(n.options.top=0);if(a="/Rect ["+n.finalBounds.x+" "+n.finalBounds.y+" "+n.finalBounds.w+" "+n.finalBounds.h+"] ",i="",n.options.url)i="<</Type /Annot /Subtype /Link "+a+"/Border [0 0 0] /A <</S /URI /URI ("+h(p(n.options.url))+") >>";else if(n.options.pageNumber)switch(i="<</Type /Annot /Subtype /Link "+a+"/Border [0 0 0] /Dest ["+this.internal.getPageInfo(n.options.pageNumber).objId+" 0 R",n.options.magFactor=n.options.magFactor||"XYZ",n.options.magFactor){case"Fit":i+=" /Fit]";break;case"FitH":i+=" /FitH "+n.options.top+"]";break;case"FitV":n.options.left=n.options.left||0,i+=" /FitV "+n.options.left+"]";break;default:var _=r(n.options.top);n.options.left=n.options.left||0,void 0===n.options.zoom&&(n.options.zoom=0),i+=" /XYZ "+n.options.left+" "+_+" "+n.options.zoom+"]"}""!=i&&(i+=" >>",this.internal.write(i))}}this.internal.write("]")}}]),e.createAnnotation=function(e){var t=this.internal.getCurrentPageInfo();switch(e.type){case"link":this.link(e.bounds.x,e.bounds.y,e.bounds.w,e.bounds.h,e);break;case"text":case"freetext":t.pageContext.annotations.push(e)}},e.link=function(e,t,n,a,i){var o=this.internal.getCurrentPageInfo(),r=this.internal.getCoordinateString,s=this.internal.getVerticalCoordinateString;o.pageContext.annotations.push({finalBounds:{x:r(e),y:s(t),w:r(e+n),h:s(t+a)},options:i,type:"link"})},e.textWithLink=function(e,t,n,a){var i,o,r=this.getTextWidth(e),s=this.internal.getLineHeight()/this.internal.scaleFactor;if(void 0!==a.maxWidth){o=a.maxWidth;var l=this.splitTextToSize(e,o).length;i=Math.ceil(s*l)}else o=r,i=s;return this.text(e,t,n,a),n+=.2*s,"center"===a.align&&(t-=r/2),"right"===a.align&&(t-=r),this.link(t,n-s,o,i,a),r},e.getTextWidth=function(e){var t=this.internal.getFontSize();return this.getStringUnitWidth(e)*t/this.internal.scaleFactor}}(Dl.API),
93
+ /**
94
+ * @license
95
+ * Copyright (c) 2017 Aras Abbasi
96
+ *
97
+ * Licensed under the MIT License.
98
+ * http://opensource.org/licenses/mit-license
99
+ */
100
+ function(e){var t={1569:[65152],1570:[65153,65154],1571:[65155,65156],1572:[65157,65158],1573:[65159,65160],1574:[65161,65162,65163,65164],1575:[65165,65166],1576:[65167,65168,65169,65170],1577:[65171,65172],1578:[65173,65174,65175,65176],1579:[65177,65178,65179,65180],1580:[65181,65182,65183,65184],1581:[65185,65186,65187,65188],1582:[65189,65190,65191,65192],1583:[65193,65194],1584:[65195,65196],1585:[65197,65198],1586:[65199,65200],1587:[65201,65202,65203,65204],1588:[65205,65206,65207,65208],1589:[65209,65210,65211,65212],1590:[65213,65214,65215,65216],1591:[65217,65218,65219,65220],1592:[65221,65222,65223,65224],1593:[65225,65226,65227,65228],1594:[65229,65230,65231,65232],1601:[65233,65234,65235,65236],1602:[65237,65238,65239,65240],1603:[65241,65242,65243,65244],1604:[65245,65246,65247,65248],1605:[65249,65250,65251,65252],1606:[65253,65254,65255,65256],1607:[65257,65258,65259,65260],1608:[65261,65262],1609:[65263,65264,64488,64489],1610:[65265,65266,65267,65268],1649:[64336,64337],1655:[64477],1657:[64358,64359,64360,64361],1658:[64350,64351,64352,64353],1659:[64338,64339,64340,64341],1662:[64342,64343,64344,64345],1663:[64354,64355,64356,64357],1664:[64346,64347,64348,64349],1667:[64374,64375,64376,64377],1668:[64370,64371,64372,64373],1670:[64378,64379,64380,64381],1671:[64382,64383,64384,64385],1672:[64392,64393],1676:[64388,64389],1677:[64386,64387],1678:[64390,64391],1681:[64396,64397],1688:[64394,64395],1700:[64362,64363,64364,64365],1702:[64366,64367,64368,64369],1705:[64398,64399,64400,64401],1709:[64467,64468,64469,64470],1711:[64402,64403,64404,64405],1713:[64410,64411,64412,64413],1715:[64406,64407,64408,64409],1722:[64414,64415],1723:[64416,64417,64418,64419],1726:[64426,64427,64428,64429],1728:[64420,64421],1729:[64422,64423,64424,64425],1733:[64480,64481],1734:[64473,64474],1735:[64471,64472],1736:[64475,64476],1737:[64482,64483],1739:[64478,64479],1740:[64508,64509,64510,64511],1744:[64484,64485,64486,64487],1746:[64430,64431],1747:[64432,64433]},n={65247:{65154:65269,65156:65271,65160:65273,65166:65275},65248:{65154:65270,65156:65272,65160:65274,65166:65276},65165:{65247:{65248:{65258:65010}}},1617:{1612:64606,1613:64607,1614:64608,1615:64609,1616:64610}},a={1612:64606,1613:64607,1614:64608,1615:64609,1616:64610},i=[1570,1571,1573,1575];e.__arabicParser__={};var o=e.__arabicParser__.isInArabicSubstitutionA=function(e){return void 0!==t[e.charCodeAt(0)]},r=e.__arabicParser__.isArabicLetter=function(e){return"string"==typeof e&&/^[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\uFB50-\uFDFF\uFE70-\uFEFF]+$/.test(e)},s=e.__arabicParser__.isArabicEndLetter=function(e){return r(e)&&o(e)&&t[e.charCodeAt(0)].length<=2},l=e.__arabicParser__.isArabicAlfLetter=function(e){return r(e)&&i.indexOf(e.charCodeAt(0))>=0};e.__arabicParser__.arabicLetterHasIsolatedForm=function(e){return r(e)&&o(e)&&t[e.charCodeAt(0)].length>=1};var c=e.__arabicParser__.arabicLetterHasFinalForm=function(e){return r(e)&&o(e)&&t[e.charCodeAt(0)].length>=2};e.__arabicParser__.arabicLetterHasInitialForm=function(e){return r(e)&&o(e)&&t[e.charCodeAt(0)].length>=3};var u=e.__arabicParser__.arabicLetterHasMedialForm=function(e){return r(e)&&o(e)&&4==t[e.charCodeAt(0)].length},d=e.__arabicParser__.resolveLigatures=function(e){var t=0,a=n,i="",o=0;for(t=0;t<e.length;t+=1)void 0!==a[e.charCodeAt(t)]?(o++,"number"==typeof(a=a[e.charCodeAt(t)])&&(i+=String.fromCharCode(a),a=n,o=0),t===e.length-1&&(a=n,i+=e.charAt(t-(o-1)),t-=o-1,o=0)):(a=n,i+=e.charAt(t-o),t-=o,o=0);return i};e.__arabicParser__.isArabicDiacritic=function(e){return void 0!==e&&void 0!==a[e.charCodeAt(0)]};var h=e.__arabicParser__.getCorrectForm=function(e,t,n){return r(e)?!1===o(e)?-1:!c(e)||!r(t)&&!r(n)||!r(n)&&s(t)||s(e)&&!r(t)||s(e)&&l(t)||s(e)&&s(t)?0:u(e)&&r(t)&&!s(t)&&r(n)&&c(n)?3:s(e)||!r(n)?1:2:-1},p=function(e){var n=0,a=0,i=0,o="",s="",l="",c=(e=e||"").split("\\s+"),u=[];for(n=0;n<c.length;n+=1){for(u.push(""),a=0;a<c[n].length;a+=1)o=c[n][a],s=c[n][a-1],l=c[n][a+1],r(o)?(i=h(o,s,l),u[n]+=-1!==i?String.fromCharCode(t[o.charCodeAt(0)][i]):o):u[n]+=o;u[n]=d(u[n])}return u.join(" ")},f=e.__arabicParser__.processArabic=e.processArabic=function(){var e,t="string"==typeof arguments[0]?arguments[0]:arguments[0].text,n=[];if(Array.isArray(t)){var a=0;for(n=[],a=0;a<t.length;a+=1)Array.isArray(t[a])?n.push([p(t[a][0]),t[a][1],t[a][2]]):n.push([p(t[a])]);e=n}else e=p(t);return"string"==typeof arguments[0]?e:(arguments[0].text=e,arguments[0])};e.events.push(["preProcessText",f])}(Dl.API),Dl.API.autoPrint=function(e){var t;if("javascript"===((e=e||{}).variant=e.variant||"non-conform",e.variant))this.addJS("print({});");else this.internal.events.subscribe("postPutResources",function(){t=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /Named"),this.internal.out("/Type /Action"),this.internal.out("/N /Print"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){this.internal.out("/OpenAction "+t+" 0 R")});return this},
101
+ /**
102
+ * @license
103
+ * Copyright (c) 2014 Steven Spungin (TwelveTone LLC) steven@twelvetone.tv
104
+ *
105
+ * Licensed under the MIT License.
106
+ * http://opensource.org/licenses/mit-license
107
+ */
108
+ function(e){var t=function(){var e=void 0;Object.defineProperty(this,"pdf",{get:function(){return e},set:function(t){e=t}});var t=150;Object.defineProperty(this,"width",{get:function(){return t},set:function(e){t=isNaN(e)||!1===Number.isInteger(e)||e<0?150:e,this.getContext("2d").pageWrapXEnabled&&(this.getContext("2d").pageWrapX=t+1)}});var n=300;Object.defineProperty(this,"height",{get:function(){return n},set:function(e){n=isNaN(e)||!1===Number.isInteger(e)||e<0?300:e,this.getContext("2d").pageWrapYEnabled&&(this.getContext("2d").pageWrapY=n+1)}});var a=[];Object.defineProperty(this,"childNodes",{get:function(){return a},set:function(e){a=e}});var i={};Object.defineProperty(this,"style",{get:function(){return i},set:function(e){i=e}}),Object.defineProperty(this,"parentNode",{})};t.prototype.getContext=function(e,t){var n;if("2d"!==(e=e||"2d"))return null;for(n in t)this.pdf.context2d.hasOwnProperty(n)&&(this.pdf.context2d[n]=t[n]);return this.pdf.context2d._canvas=this,this.pdf.context2d},t.prototype.toDataURL=function(){throw new Error("toDataURL is not implemented.")},e.events.push(["initialized",function(){this.canvas=new t,this.canvas.pdf=this}])}(Dl.API),function(e){var t={left:0,top:0,bottom:0,right:0},n=!1,a=function(){void 0===this.internal.__cell__&&(this.internal.__cell__={},this.internal.__cell__.padding=3,this.internal.__cell__.headerFunction=void 0,this.internal.__cell__.margins=Object.assign({},t),this.internal.__cell__.margins.width=this.getPageWidth(),i.call(this))},i=function(){this.internal.__cell__.lastCell=new o,this.internal.__cell__.pages=1},o=function(){var e=arguments[0];Object.defineProperty(this,"x",{enumerable:!0,get:function(){return e},set:function(t){e=t}});var t=arguments[1];Object.defineProperty(this,"y",{enumerable:!0,get:function(){return t},set:function(e){t=e}});var n=arguments[2];Object.defineProperty(this,"width",{enumerable:!0,get:function(){return n},set:function(e){n=e}});var a=arguments[3];Object.defineProperty(this,"height",{enumerable:!0,get:function(){return a},set:function(e){a=e}});var i=arguments[4];Object.defineProperty(this,"text",{enumerable:!0,get:function(){return i},set:function(e){i=e}});var o=arguments[5];Object.defineProperty(this,"lineNumber",{enumerable:!0,get:function(){return o},set:function(e){o=e}});var r=arguments[6];return Object.defineProperty(this,"align",{enumerable:!0,get:function(){return r},set:function(e){r=e}}),this};o.prototype.clone=function(){return new o(this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align)},o.prototype.toArray=function(){return[this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align]},e.setHeaderFunction=function(e){return a.call(this),this.internal.__cell__.headerFunction="function"==typeof e?e:void 0,this},e.getTextDimensions=function(e,t){a.call(this);var n=(t=t||{}).fontSize||this.getFontSize(),i=t.font||this.getFont(),o=t.scaleFactor||this.internal.scaleFactor,r=0,s=0,l=0,c=this;if(!Array.isArray(e)&&"string"!=typeof e){if("number"!=typeof e)throw new Error("getTextDimensions expects text-parameter to be of type String or type Number or an Array of Strings.");e=String(e)}var u=t.maxWidth;u>0?"string"==typeof e?e=this.splitTextToSize(e,u):"[object Array]"===Object.prototype.toString.call(e)&&(e=e.reduce(function(e,t){return e.concat(c.splitTextToSize(t,u))},[])):e=Array.isArray(e)?e:[e];for(var d=0;d<e.length;d++)r<(l=this.getStringUnitWidth(e[d],{font:i})*n)&&(r=l);return 0!==r&&(s=e.length),{w:r/=o,h:Math.max((s*n*this.getLineHeightFactor()-n*(this.getLineHeightFactor()-1))/o,0)}},e.cellAddPage=function(){a.call(this),this.addPage();var e=this.internal.__cell__.margins||t;return this.internal.__cell__.lastCell=new o(e.left,e.top,void 0,void 0),this.internal.__cell__.pages+=1,this};var r=e.cell=function(){var e;e=arguments[0]instanceof o?arguments[0]:new o(arguments[0],arguments[1],arguments[2],arguments[3],arguments[4],arguments[5]),a.call(this);var i=this.internal.__cell__.lastCell,r=this.internal.__cell__.padding,s=this.internal.__cell__.margins||t,l=this.internal.__cell__.tableHeaderRow,c=this.internal.__cell__.printHeaders;return void 0!==i.lineNumber&&(i.lineNumber===e.lineNumber?(e.x=(i.x||0)+(i.width||0),e.y=i.y||0):i.y+i.height+e.height+s.bottom>this.getPageHeight()?(this.cellAddPage(),e.y=s.top,c&&l&&(this.printHeaderRow(e.lineNumber,!0),e.y+=l[0].height)):e.y=i.y+i.height||e.y),void 0!==e.text[0]&&(this.rect(e.x,e.y,e.width,e.height,!0===n?"FD":void 0),"right"===e.align?this.text(e.text,e.x+e.width-r,e.y+r,{align:"right",baseline:"top"}):"center"===e.align?this.text(e.text,e.x+e.width/2,e.y+r,{align:"center",baseline:"top",maxWidth:e.width-r-r}):this.text(e.text,e.x+r,e.y+r,{align:"left",baseline:"top",maxWidth:e.width-r-r})),this.internal.__cell__.lastCell=e,this};e.table=function(e,n,l,c,u){if(a.call(this),!l)throw new Error("No data for PDF table.");var d,h,p,f,v=[],m=[],g=[],b={},y={},w=[],_=[],E=(u=u||{}).autoSize||!1,P=!1!==u.printHeaders,N=u.css&&void 0!==u.css["font-size"]?16*u.css["font-size"]:u.fontSize||12,I=u.margins||Object.assign({width:this.getPageWidth()},t),A="number"==typeof u.padding?u.padding:3,k=u.headerBackgroundColor||"#c8c8c8",C=u.headerTextColor||"#000";if(i.call(this),this.internal.__cell__.printHeaders=P,this.internal.__cell__.margins=I,this.internal.__cell__.table_font_size=N,this.internal.__cell__.padding=A,this.internal.__cell__.headerBackgroundColor=k,this.internal.__cell__.headerTextColor=C,this.setFontSize(N),null==c)m=v=Object.keys(l[0]),g=v.map(function(){return"left"});else if(Array.isArray(c)&&"object"===ss(c[0]))for(v=c.map(function(e){return e.name}),m=c.map(function(e){return e.prompt||e.name||""}),g=c.map(function(e){return e.align||"left"}),d=0;d<c.length;d+=1)y[c[d].name]=c[d].width*(19.049976/25.4);else Array.isArray(c)&&"string"==typeof c[0]&&(m=v=c,g=v.map(function(){return"left"}));if(E||Array.isArray(c)&&"string"==typeof c[0])for(d=0;d<v.length;d+=1){for(b[f=v[d]]=l.map(function(e){return e[f]}),this.setFont(void 0,"bold"),w.push(this.getTextDimensions(m[d],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w),h=b[f],this.setFont(void 0,"normal"),p=0;p<h.length;p+=1)w.push(this.getTextDimensions(h[p],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w);y[f]=Math.max.apply(null,w)+A+A,w=[]}if(P){var S={};for(d=0;d<v.length;d+=1)S[v[d]]={},S[v[d]].text=m[d],S[v[d]].align=g[d];var M=s.call(this,S,y);_=v.map(function(t){return new o(e,n,y[t],M,S[t].text,void 0,S[t].align)}),this.setTableHeaderRow(_),this.printHeaderRow(1,!1)}var x=c.reduce(function(e,t){return e[t.name]=t.align,e},{});for(d=0;d<l.length;d+=1){"rowStart"in u&&u.rowStart instanceof Function&&u.rowStart({row:d,data:l[d]},this);var O=s.call(this,l[d],y);for(p=0;p<v.length;p+=1){var D=l[d][v[p]];"cellStart"in u&&u.cellStart instanceof Function&&u.cellStart({row:d,col:p,data:D},this),r.call(this,new o(e,n,y[v[p]],O,D,d+2,x[v[p]]))}}return this.internal.__cell__.table_x=e,this.internal.__cell__.table_y=n,this};var s=function(e,t){var n=this.internal.__cell__.padding,a=this.internal.__cell__.table_font_size,i=this.internal.scaleFactor;return Object.keys(e).map(function(a){var i=e[a];return this.splitTextToSize(i.hasOwnProperty("text")?i.text:i,t[a]-n-n)},this).map(function(e){return this.getLineHeightFactor()*e.length*a/i+n+n},this).reduce(function(e,t){return Math.max(e,t)},0)};e.setTableHeaderRow=function(e){a.call(this),this.internal.__cell__.tableHeaderRow=e},e.printHeaderRow=function(e,t){if(a.call(this),!this.internal.__cell__.tableHeaderRow)throw new Error("Property tableHeaderRow does not exist.");var i;if(n=!0,"function"==typeof this.internal.__cell__.headerFunction){var s=this.internal.__cell__.headerFunction(this,this.internal.__cell__.pages);this.internal.__cell__.lastCell=new o(s[0],s[1],s[2],s[3],void 0,-1)}this.setFont(void 0,"bold");for(var l=[],c=0;c<this.internal.__cell__.tableHeaderRow.length;c+=1){i=this.internal.__cell__.tableHeaderRow[c].clone(),t&&(i.y=this.internal.__cell__.margins.top||0,l.push(i)),i.lineNumber=e;var u=this.getTextColor();this.setTextColor(this.internal.__cell__.headerTextColor),this.setFillColor(this.internal.__cell__.headerBackgroundColor),r.call(this,i),this.setTextColor(u)}l.length>0&&this.setTableHeaderRow(l),this.setFont(void 0,"normal"),n=!1}}(Dl.API);var Ec={italic:["italic","oblique","normal"],oblique:["oblique","italic","normal"],normal:["normal","oblique","italic"]},Pc=["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded"],Nc=_c(Pc),Ic=[100,200,300,400,500,600,700,800,900],Ac=_c(Ic);function kc(e){var t=e.family.replace(/"|'/g,"").toLowerCase(),n=function(e){return Ec[e=e||"normal"]?e:"normal"}(e.style),a=function(e){return e?"number"==typeof e?e>=100&&e<=900&&e%100==0?e:400:/^\d00$/.test(e)?parseInt(e):"bold"===e?700:400:400}(e.weight),i=function(e){return"number"==typeof Nc[e=e||"normal"]?e:"normal"}(e.stretch);return{family:t,style:n,weight:a,stretch:i,src:e.src||[],ref:e.ref||{name:t,style:[i,n,a].join(" ")}}}function Cc(e,t,n,a){var i;for(i=n;i>=0&&i<t.length;i+=a)if(e[t[i]])return e[t[i]];for(i=n;i>=0&&i<t.length;i-=a)if(e[t[i]])return e[t[i]]}var Sc={"sans-serif":"helvetica",fixed:"courier",monospace:"courier",terminal:"courier",cursive:"times",fantasy:"times",serif:"times"},Mc={caption:"times",icon:"times",menu:"times","message-box":"times","small-caption":"times","status-bar":"times"};function xc(e){return[e.stretch,e.style,e.weight,e.family].join(" ")}function Oc(e){return e.trimLeft()}function Dc(e,t){for(var n=0;n<e.length;){if(e.charAt(n)===t)return[e.substring(0,n),e.substring(n+1)];n+=1}return null}function Tc(e){var t=e.match(/^(-[a-z_]|[a-z_])[a-z0-9_-]*/i);return null===t?null:[t[0],e.substring(t[0].length)]}var jc,Lc,Vc,Bc=["times"];!function(e){var t,n,a,i,o,r,s,l,c,u=function(e){return e=e||{},this.isStrokeTransparent=e.isStrokeTransparent||!1,this.strokeOpacity=e.strokeOpacity||1,this.strokeStyle=e.strokeStyle||"#000000",this.fillStyle=e.fillStyle||"#000000",this.isFillTransparent=e.isFillTransparent||!1,this.fillOpacity=e.fillOpacity||1,this.font=e.font||"10px sans-serif",this.textBaseline=e.textBaseline||"alphabetic",this.textAlign=e.textAlign||"left",this.lineWidth=e.lineWidth||1,this.lineJoin=e.lineJoin||"miter",this.lineCap=e.lineCap||"butt",this.path=e.path||[],this.transform=void 0!==e.transform?e.transform.clone():new l,this.globalCompositeOperation=e.globalCompositeOperation||"normal",this.globalAlpha=e.globalAlpha||1,this.clip_path=e.clip_path||[],this.currentPoint=e.currentPoint||new r,this.miterLimit=e.miterLimit||10,this.lastPoint=e.lastPoint||new r,this.lineDashOffset=e.lineDashOffset||0,this.lineDash=e.lineDash||[],this.margin=e.margin||[0,0,0,0],this.prevPageLastElemOffset=e.prevPageLastElemOffset||0,this.ignoreClearRect="boolean"!=typeof e.ignoreClearRect||e.ignoreClearRect,this};e.events.push(["initialized",function(){this.context2d=new d(this),t=this.internal.f2,n=this.internal.getCoordinateString,a=this.internal.getVerticalCoordinateString,i=this.internal.getHorizontalCoordinate,o=this.internal.getVerticalCoordinate,r=this.internal.Point,s=this.internal.Rectangle,l=this.internal.Matrix,c=new u}]);var d=function(e){Object.defineProperty(this,"canvas",{get:function(){return{parentNode:!1,style:!1}}});var t=e;Object.defineProperty(this,"pdf",{get:function(){return t}});var n=!1;Object.defineProperty(this,"pageWrapXEnabled",{get:function(){return n},set:function(e){n=Boolean(e)}});var a=!1;Object.defineProperty(this,"pageWrapYEnabled",{get:function(){return a},set:function(e){a=Boolean(e)}});var i=0;Object.defineProperty(this,"posX",{get:function(){return i},set:function(e){isNaN(e)||(i=e)}});var o=0;Object.defineProperty(this,"posY",{get:function(){return o},set:function(e){isNaN(e)||(o=e)}}),Object.defineProperty(this,"margin",{get:function(){return c.margin},set:function(e){var t;"number"==typeof e?t=[e,e,e,e]:((t=new Array(4))[0]=e[0],t[1]=e.length>=2?e[1]:t[0],t[2]=e.length>=3?e[2]:t[0],t[3]=e.length>=4?e[3]:t[1]),c.margin=t}});var r=!1;Object.defineProperty(this,"autoPaging",{get:function(){return r},set:function(e){r=e}});var s=0;Object.defineProperty(this,"lastBreak",{get:function(){return s},set:function(e){s=e}});var l=[];Object.defineProperty(this,"pageBreaks",{get:function(){return l},set:function(e){l=e}}),Object.defineProperty(this,"ctx",{get:function(){return c},set:function(e){e instanceof u&&(c=e)}}),Object.defineProperty(this,"path",{get:function(){return c.path},set:function(e){c.path=e}});var d=[];Object.defineProperty(this,"ctxStack",{get:function(){return d},set:function(e){d=e}}),Object.defineProperty(this,"fillStyle",{get:function(){return this.ctx.fillStyle},set:function(e){var t;t=h(e),this.ctx.fillStyle=t.style,this.ctx.isFillTransparent=0===t.a,this.ctx.fillOpacity=t.a,this.pdf.setFillColor(t.r,t.g,t.b,{a:t.a}),this.pdf.setTextColor(t.r,t.g,t.b,{a:t.a})}}),Object.defineProperty(this,"strokeStyle",{get:function(){return this.ctx.strokeStyle},set:function(e){var t=h(e);this.ctx.strokeStyle=t.style,this.ctx.isStrokeTransparent=0===t.a,this.ctx.strokeOpacity=t.a,0===t.a?this.pdf.setDrawColor(255,255,255):(t.a,this.pdf.setDrawColor(t.r,t.g,t.b))}}),Object.defineProperty(this,"lineCap",{get:function(){return this.ctx.lineCap},set:function(e){-1!==["butt","round","square"].indexOf(e)&&(this.ctx.lineCap=e,this.pdf.setLineCap(e))}}),Object.defineProperty(this,"lineWidth",{get:function(){return this.ctx.lineWidth},set:function(e){isNaN(e)||(this.ctx.lineWidth=e,this.pdf.setLineWidth(e))}}),Object.defineProperty(this,"lineJoin",{get:function(){return this.ctx.lineJoin},set:function(e){-1!==["bevel","round","miter"].indexOf(e)&&(this.ctx.lineJoin=e,this.pdf.setLineJoin(e))}}),Object.defineProperty(this,"miterLimit",{get:function(){return this.ctx.miterLimit},set:function(e){isNaN(e)||(this.ctx.miterLimit=e,this.pdf.setMiterLimit(e))}}),Object.defineProperty(this,"textBaseline",{get:function(){return this.ctx.textBaseline},set:function(e){this.ctx.textBaseline=e}}),Object.defineProperty(this,"textAlign",{get:function(){return this.ctx.textAlign},set:function(e){-1!==["right","end","center","left","start"].indexOf(e)&&(this.ctx.textAlign=e)}});var p=null;function f(e,t){if(null===p){var n=function(e){var t=[];return Object.keys(e).forEach(function(n){e[n].forEach(function(e){var a=null;switch(e){case"bold":a={family:n,weight:"bold"};break;case"italic":a={family:n,style:"italic"};break;case"bolditalic":a={family:n,weight:"bold",style:"italic"};break;case"":case"normal":a={family:n}}null!==a&&(a.ref={name:n,style:e},t.push(a))})}),t}(e.getFontList());p=function(e){for(var t={},n=0;n<e.length;++n){var a=kc(e[n]),i=a.family,o=a.stretch,r=a.style,s=a.weight;t[i]=t[i]||{},t[i][o]=t[i][o]||{},t[i][o][r]=t[i][o][r]||{},t[i][o][r][s]=a}return t}(n.concat(t))}return p}var v=null;Object.defineProperty(this,"fontFaces",{get:function(){return v},set:function(e){p=null,v=e}}),Object.defineProperty(this,"font",{get:function(){return this.ctx.font},set:function(e){var t;if(this.ctx.font=e,null!==(t=/^\s*(?=(?:(?:[-a-z]+\s*){0,2}(italic|oblique))?)(?=(?:(?:[-a-z]+\s*){0,2}(small-caps))?)(?=(?:(?:[-a-z]+\s*){0,2}(bold(?:er)?|lighter|[1-9]00))?)(?:(?:normal|\1|\2|\3)\s*){0,3}((?:xx?-)?(?:small|large)|medium|smaller|larger|[.\d]+(?:\%|in|[cem]m|ex|p[ctx]))(?:\s*\/\s*(normal|[.\d]+(?:\%|in|[cem]m|ex|p[ctx])))?\s*([-_,\"\'\sa-z]+?)\s*$/i.exec(e))){var n=t[1],a=(t[2],t[3]),i=t[4],o=(t[5],t[6]),r=/^([.\d]+)((?:%|in|[cem]m|ex|p[ctx]))$/i.exec(i)[2];i="px"===r?Math.floor(parseFloat(i)*this.pdf.internal.scaleFactor):"em"===r?Math.floor(parseFloat(i)*this.pdf.getFontSize()):Math.floor(parseFloat(i)*this.pdf.internal.scaleFactor),this.pdf.setFontSize(i);var s=function(e){var t,n,a=[],i=e.trim();if(""===i)return Bc;if(i in Mc)return[Mc[i]];for(;""!==i;){switch(n=null,t=(i=Oc(i)).charAt(0)){case'"':case"'":n=Dc(i.substring(1),t);break;default:n=Tc(i)}if(null===n)return Bc;if(a.push(n[0]),""!==(i=Oc(n[1]))&&","!==i.charAt(0))return Bc;i=i.replace(/^,/,"")}return a}(o);if(this.fontFaces){var l=function(e,t,n){for(var a=(n=n||{}).defaultFontFamily||"times",i=Object.assign({},Sc,n.genericFontFamilies||{}),o=null,r=null,s=0;s<t.length;++s)if(i[(o=kc(t[s])).family]&&(o.family=i[o.family]),e.hasOwnProperty(o.family)){r=e[o.family];break}if(!(r=r||e[a]))throw new Error("Could not find a font-family for the rule '"+xc(o)+"' and default family '"+a+"'.");if(r=function(e,t){if(t[e])return t[e];var n=Nc[e],a=n<=Nc.normal?-1:1,i=Cc(t,Pc,n,a);if(!i)throw new Error("Could not find a matching font-stretch value for "+e);return i}(o.stretch,r),r=function(e,t){if(t[e])return t[e];for(var n=Ec[e],a=0;a<n.length;++a)if(t[n[a]])return t[n[a]];throw new Error("Could not find a matching font-style for "+e)}(o.style,r),!(r=function(e,t){if(t[e])return t[e];if(400===e&&t[500])return t[500];if(500===e&&t[400])return t[400];var n=Ac[e],a=Cc(t,Ic,n,e<400?-1:1);if(!a)throw new Error("Could not find a matching font-weight for value "+e);return a}(o.weight,r)))throw new Error("Failed to resolve a font for the rule '"+xc(o)+"'.");return r}(f(this.pdf,this.fontFaces),s.map(function(e){return{family:e,stretch:"normal",weight:a,style:n}}));this.pdf.setFont(l.ref.name,l.ref.style)}else{var c="";("bold"===a||parseInt(a,10)>=700||"bold"===n)&&(c="bold"),"italic"===n&&(c+="italic"),0===c.length&&(c="normal");for(var u="",d={arial:"Helvetica",Arial:"Helvetica",verdana:"Helvetica",Verdana:"Helvetica",helvetica:"Helvetica",Helvetica:"Helvetica","sans-serif":"Helvetica",fixed:"Courier",monospace:"Courier",terminal:"Courier",cursive:"Times",fantasy:"Times",serif:"Times"},h=0;h<s.length;h++){if(void 0!==this.pdf.internal.getFont(s[h],c,{noFallback:!0,disableWarning:!0})){u=s[h];break}if("bolditalic"===c&&void 0!==this.pdf.internal.getFont(s[h],"bold",{noFallback:!0,disableWarning:!0}))u=s[h],c="bold";else if(void 0!==this.pdf.internal.getFont(s[h],"normal",{noFallback:!0,disableWarning:!0})){u=s[h],c="normal";break}}if(""===u)for(var p=0;p<s.length;p++)if(d[s[p]]){u=d[s[p]];break}u=""===u?"Times":u,this.pdf.setFont(u,c)}}}}),Object.defineProperty(this,"globalCompositeOperation",{get:function(){return this.ctx.globalCompositeOperation},set:function(e){this.ctx.globalCompositeOperation=e}}),Object.defineProperty(this,"globalAlpha",{get:function(){return this.ctx.globalAlpha},set:function(e){this.ctx.globalAlpha=e}}),Object.defineProperty(this,"lineDashOffset",{get:function(){return this.ctx.lineDashOffset},set:function(e){this.ctx.lineDashOffset=e,V.call(this)}}),Object.defineProperty(this,"lineDash",{get:function(){return this.ctx.lineDash},set:function(e){this.ctx.lineDash=e,V.call(this)}}),Object.defineProperty(this,"ignoreClearRect",{get:function(){return this.ctx.ignoreClearRect},set:function(e){this.ctx.ignoreClearRect=Boolean(e)}})};d.prototype.setLineDash=function(e){this.lineDash=e},d.prototype.getLineDash=function(){return this.lineDash.length%2?this.lineDash.concat(this.lineDash):this.lineDash.slice()},d.prototype.fill=function(){w.call(this,"fill",!1)},d.prototype.stroke=function(){w.call(this,"stroke",!1)},d.prototype.beginPath=function(){this.path=[{type:"begin"}]},d.prototype.moveTo=function(e,t){if(isNaN(e)||isNaN(t))throw nl.error("jsPDF.context2d.moveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.moveTo");var n=this.ctx.transform.applyToPoint(new r(e,t));this.path.push({type:"mt",x:n.x,y:n.y}),this.ctx.lastPoint=new r(e,t)},d.prototype.closePath=function(){var e=new r(0,0),t=0;for(t=this.path.length-1;-1!==t;t--)if("begin"===this.path[t].type&&"object"===ss(this.path[t+1])&&"number"==typeof this.path[t+1].x){e=new r(this.path[t+1].x,this.path[t+1].y);break}this.path.push({type:"close"}),this.ctx.lastPoint=new r(e.x,e.y)},d.prototype.lineTo=function(e,t){if(isNaN(e)||isNaN(t))throw nl.error("jsPDF.context2d.lineTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.lineTo");var n=this.ctx.transform.applyToPoint(new r(e,t));this.path.push({type:"lt",x:n.x,y:n.y}),this.ctx.lastPoint=new r(n.x,n.y)},d.prototype.clip=function(){this.ctx.clip_path=JSON.parse(JSON.stringify(this.path)),w.call(this,null,!0)},d.prototype.quadraticCurveTo=function(e,t,n,a){if(isNaN(n)||isNaN(a)||isNaN(e)||isNaN(t))throw nl.error("jsPDF.context2d.quadraticCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.quadraticCurveTo");var i=this.ctx.transform.applyToPoint(new r(n,a)),o=this.ctx.transform.applyToPoint(new r(e,t));this.path.push({type:"qct",x1:o.x,y1:o.y,x:i.x,y:i.y}),this.ctx.lastPoint=new r(i.x,i.y)},d.prototype.bezierCurveTo=function(e,t,n,a,i,o){if(isNaN(i)||isNaN(o)||isNaN(e)||isNaN(t)||isNaN(n)||isNaN(a))throw nl.error("jsPDF.context2d.bezierCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.bezierCurveTo");var s=this.ctx.transform.applyToPoint(new r(i,o)),l=this.ctx.transform.applyToPoint(new r(e,t)),c=this.ctx.transform.applyToPoint(new r(n,a));this.path.push({type:"bct",x1:l.x,y1:l.y,x2:c.x,y2:c.y,x:s.x,y:s.y}),this.ctx.lastPoint=new r(s.x,s.y)},d.prototype.arc=function(e,t,n,a,i,o){if(isNaN(e)||isNaN(t)||isNaN(n)||isNaN(a)||isNaN(i))throw nl.error("jsPDF.context2d.arc: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.arc");if(o=Boolean(o),!this.ctx.transform.isIdentity){var s=this.ctx.transform.applyToPoint(new r(e,t));e=s.x,t=s.y;var l=this.ctx.transform.applyToPoint(new r(0,n)),c=this.ctx.transform.applyToPoint(new r(0,0));n=Math.sqrt(Math.pow(l.x-c.x,2)+Math.pow(l.y-c.y,2))}Math.abs(i-a)>=2*Math.PI&&(a=0,i=2*Math.PI),this.path.push({type:"arc",x:e,y:t,radius:n,startAngle:a,endAngle:i,counterclockwise:o})},d.prototype.arcTo=function(e,t,n,a,i){throw new Error("arcTo not implemented.")},d.prototype.rect=function(e,t,n,a){if(isNaN(e)||isNaN(t)||isNaN(n)||isNaN(a))throw nl.error("jsPDF.context2d.rect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rect");this.moveTo(e,t),this.lineTo(e+n,t),this.lineTo(e+n,t+a),this.lineTo(e,t+a),this.lineTo(e,t),this.lineTo(e+n,t),this.lineTo(e,t)},d.prototype.fillRect=function(e,t,n,a){if(isNaN(e)||isNaN(t)||isNaN(n)||isNaN(a))throw nl.error("jsPDF.context2d.fillRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillRect");if(!p.call(this)){var i={};"butt"!==this.lineCap&&(i.lineCap=this.lineCap,this.lineCap="butt"),"miter"!==this.lineJoin&&(i.lineJoin=this.lineJoin,this.lineJoin="miter"),this.beginPath(),this.rect(e,t,n,a),this.fill(),i.hasOwnProperty("lineCap")&&(this.lineCap=i.lineCap),i.hasOwnProperty("lineJoin")&&(this.lineJoin=i.lineJoin)}},d.prototype.strokeRect=function(e,t,n,a){if(isNaN(e)||isNaN(t)||isNaN(n)||isNaN(a))throw nl.error("jsPDF.context2d.strokeRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeRect");f.call(this)||(this.beginPath(),this.rect(e,t,n,a),this.stroke())},d.prototype.clearRect=function(e,t,n,a){if(isNaN(e)||isNaN(t)||isNaN(n)||isNaN(a))throw nl.error("jsPDF.context2d.clearRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.clearRect");this.ignoreClearRect||(this.fillStyle="#ffffff",this.fillRect(e,t,n,a))},d.prototype.save=function(e){e="boolean"!=typeof e||e;for(var t=this.pdf.internal.getCurrentPageInfo().pageNumber,n=0;n<this.pdf.internal.getNumberOfPages();n++)this.pdf.setPage(n+1),this.pdf.internal.out("q");if(this.pdf.setPage(t),e){this.ctx.fontSize=this.pdf.internal.getFontSize();var a=new u(this.ctx);this.ctxStack.push(this.ctx),this.ctx=a}},d.prototype.restore=function(e){e="boolean"!=typeof e||e;for(var t=this.pdf.internal.getCurrentPageInfo().pageNumber,n=0;n<this.pdf.internal.getNumberOfPages();n++)this.pdf.setPage(n+1),this.pdf.internal.out("Q");this.pdf.setPage(t),e&&0!==this.ctxStack.length&&(this.ctx=this.ctxStack.pop(),this.fillStyle=this.ctx.fillStyle,this.strokeStyle=this.ctx.strokeStyle,this.font=this.ctx.font,this.lineCap=this.ctx.lineCap,this.lineWidth=this.ctx.lineWidth,this.lineJoin=this.ctx.lineJoin,this.lineDash=this.ctx.lineDash,this.lineDashOffset=this.ctx.lineDashOffset)},d.prototype.toDataURL=function(){throw new Error("toDataUrl not implemented.")};var h=function(e){var t,n,a,i;if(!0===e.isCanvasGradient&&(e=e.getColor()),!e)return{r:0,g:0,b:0,a:0,style:e};if(/transparent|rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*0+\s*\)/.test(e))t=0,n=0,a=0,i=0;else{var o=/rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/.exec(e);if(null!==o)t=parseInt(o[1]),n=parseInt(o[2]),a=parseInt(o[3]),i=1;else if(null!==(o=/rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d.]+)\s*\)/.exec(e)))t=parseInt(o[1]),n=parseInt(o[2]),a=parseInt(o[3]),i=parseFloat(o[4]);else{if(i=1,"string"==typeof e&&"#"!==e.charAt(0)){var r=new cl(e);e=r.ok?r.toHex():"#000000"}4===e.length?(t=e.substring(1,2),t+=t,n=e.substring(2,3),n+=n,a=e.substring(3,4),a+=a):(t=e.substring(1,3),n=e.substring(3,5),a=e.substring(5,7)),t=parseInt(t,16),n=parseInt(n,16),a=parseInt(a,16)}}return{r:t,g:n,b:a,a:i,style:e}},p=function(){return this.ctx.isFillTransparent||0==this.globalAlpha},f=function(){return Boolean(this.ctx.isStrokeTransparent||0==this.globalAlpha)};d.prototype.fillText=function(e,t,n,a){if(isNaN(t)||isNaN(n)||"string"!=typeof e)throw nl.error("jsPDF.context2d.fillText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillText");if(a=isNaN(a)?void 0:a,!p.call(this)){var i=T(this.ctx.transform.rotation),o=this.ctx.transform.scaleX;C.call(this,{text:e,x:t,y:n,scale:o,angle:i,align:this.textAlign,maxWidth:a})}},d.prototype.strokeText=function(e,t,n,a){if(isNaN(t)||isNaN(n)||"string"!=typeof e)throw nl.error("jsPDF.context2d.strokeText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeText");if(!f.call(this)){a=isNaN(a)?void 0:a;var i=T(this.ctx.transform.rotation),o=this.ctx.transform.scaleX;C.call(this,{text:e,x:t,y:n,scale:o,renderingMode:"stroke",angle:i,align:this.textAlign,maxWidth:a})}},d.prototype.measureText=function(e){if("string"!=typeof e)throw nl.error("jsPDF.context2d.measureText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.measureText");var t=this.pdf,n=this.pdf.internal.scaleFactor,a=t.internal.getFontSize(),i=t.getStringUnitWidth(e)*a/t.internal.scaleFactor;return new function(e){var t=(e=e||{}).width||0;return Object.defineProperty(this,"width",{get:function(){return t}}),this}({width:i*=Math.round(96*n/72*1e4)/1e4})},d.prototype.scale=function(e,t){if(isNaN(e)||isNaN(t))throw nl.error("jsPDF.context2d.scale: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.scale");var n=new l(e,0,0,t,0,0);this.ctx.transform=this.ctx.transform.multiply(n)},d.prototype.rotate=function(e){if(isNaN(e))throw nl.error("jsPDF.context2d.rotate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rotate");var t=new l(Math.cos(e),Math.sin(e),-Math.sin(e),Math.cos(e),0,0);this.ctx.transform=this.ctx.transform.multiply(t)},d.prototype.translate=function(e,t){if(isNaN(e)||isNaN(t))throw nl.error("jsPDF.context2d.translate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.translate");var n=new l(1,0,0,1,e,t);this.ctx.transform=this.ctx.transform.multiply(n)},d.prototype.transform=function(e,t,n,a,i,o){if(isNaN(e)||isNaN(t)||isNaN(n)||isNaN(a)||isNaN(i)||isNaN(o))throw nl.error("jsPDF.context2d.transform: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.transform");var r=new l(e,t,n,a,i,o);this.ctx.transform=this.ctx.transform.multiply(r)},d.prototype.setTransform=function(e,t,n,a,i,o){e=isNaN(e)?1:e,t=isNaN(t)?0:t,n=isNaN(n)?0:n,a=isNaN(a)?1:a,i=isNaN(i)?0:i,o=isNaN(o)?0:o,this.ctx.transform=new l(e,t,n,a,i,o)};var v=function(){return this.margin[0]>0||this.margin[1]>0||this.margin[2]>0||this.margin[3]>0};d.prototype.drawImage=function(e,t,n,a,i,o,r,c,u){var d=this.pdf.getImageProperties(e),h=1,p=1,f=1,g=1;void 0!==a&&void 0!==c&&(f=c/a,g=u/i,h=d.width/a*c/a,p=d.height/i*u/i),void 0===o&&(o=t,r=n,t=0,n=0),void 0!==a&&void 0===c&&(c=a,u=i),void 0===a&&void 0===c&&(c=d.width,u=d.height);for(var w,E=this.ctx.transform.decompose(),P=T(E.rotate.shx),N=new l,I=(N=(N=(N=N.multiply(E.translate)).multiply(E.skew)).multiply(E.scale)).applyToRectangle(new s(o-t*f,r-n*g,a*h,i*p)),A=m.call(this,I),k=[],C=0;C<A.length;C+=1)-1===k.indexOf(A[C])&&k.push(A[C]);if(y(k),this.autoPaging)for(var S=k[0],M=k[k.length-1],x=S;x<M+1;x++){this.pdf.setPage(x);var O=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],D=1===x?this.posY+this.margin[0]:this.margin[0],j=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],L=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],V=1===x?0:j+(x-2)*L;if(0!==this.ctx.clip_path.length){var B=this.path;w=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=b(w,this.posX+this.margin[3],-V+D+this.ctx.prevPageLastElemOffset),_.call(this,"fill",!0),this.path=B}var U=JSON.parse(JSON.stringify(I));U=b([U],this.posX+this.margin[3],-V+D+this.ctx.prevPageLastElemOffset)[0];var z=(x>S||x<M)&&v.call(this);z&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],O,L,null).clip().discardPath()),this.pdf.addImage(e,"JPEG",U.x,U.y,U.w,U.h,null,null,P),z&&this.pdf.restoreGraphicsState()}else this.pdf.addImage(e,"JPEG",I.x,I.y,I.w,I.h,null,null,P)};var m=function(e,t,n){var a=[];t=t||this.pdf.internal.pageSize.width,n=n||this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2];var i=this.posY+this.ctx.prevPageLastElemOffset;switch(e.type){default:case"mt":case"lt":a.push(Math.floor((e.y+i)/n)+1);break;case"arc":a.push(Math.floor((e.y+i-e.radius)/n)+1),a.push(Math.floor((e.y+i+e.radius)/n)+1);break;case"qct":var o=j(this.ctx.lastPoint.x,this.ctx.lastPoint.y,e.x1,e.y1,e.x,e.y);a.push(Math.floor((o.y+i)/n)+1),a.push(Math.floor((o.y+o.h+i)/n)+1);break;case"bct":var r=L(this.ctx.lastPoint.x,this.ctx.lastPoint.y,e.x1,e.y1,e.x2,e.y2,e.x,e.y);a.push(Math.floor((r.y+i)/n)+1),a.push(Math.floor((r.y+r.h+i)/n)+1);break;case"rect":a.push(Math.floor((e.y+i)/n)+1),a.push(Math.floor((e.y+e.h+i)/n)+1)}for(var s=0;s<a.length;s+=1)for(;this.pdf.internal.getNumberOfPages()<a[s];)g.call(this);return a},g=function(){var e=this.fillStyle,t=this.strokeStyle,n=this.font,a=this.lineCap,i=this.lineWidth,o=this.lineJoin;this.pdf.addPage(),this.fillStyle=e,this.strokeStyle=t,this.font=n,this.lineCap=a,this.lineWidth=i,this.lineJoin=o},b=function(e,t,n){for(var a=0;a<e.length;a++)switch(e[a].type){case"bct":e[a].x2+=t,e[a].y2+=n;case"qct":e[a].x1+=t,e[a].y1+=n;default:e[a].x+=t,e[a].y+=n}return e},y=function(e){return e.sort(function(e,t){return e-t})},w=function(e,t){for(var n,a,i=this.fillStyle,o=this.strokeStyle,r=this.lineCap,s=this.lineWidth,l=Math.abs(s*this.ctx.transform.scaleX),c=this.lineJoin,u=JSON.parse(JSON.stringify(this.path)),d=JSON.parse(JSON.stringify(this.path)),h=[],p=0;p<d.length;p++)if(void 0!==d[p].x)for(var f=m.call(this,d[p]),w=0;w<f.length;w+=1)-1===h.indexOf(f[w])&&h.push(f[w]);for(var E=0;E<h.length;E++)for(;this.pdf.internal.getNumberOfPages()<h[E];)g.call(this);if(y(h),this.autoPaging)for(var P=h[0],N=h[h.length-1],I=P;I<N+1;I++){this.pdf.setPage(I),this.fillStyle=i,this.strokeStyle=o,this.lineCap=r,this.lineWidth=l,this.lineJoin=c;var A=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],k=1===I?this.posY+this.margin[0]:this.margin[0],C=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],S=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],M=1===I?0:C+(I-2)*S;if(0!==this.ctx.clip_path.length){var x=this.path;n=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=b(n,this.posX+this.margin[3],-M+k+this.ctx.prevPageLastElemOffset),_.call(this,e,!0),this.path=x}if(a=JSON.parse(JSON.stringify(u)),this.path=b(a,this.posX+this.margin[3],-M+k+this.ctx.prevPageLastElemOffset),!1===t||0===I){var O=(I>P||I<N)&&v.call(this);O&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],A,S,null).clip().discardPath()),_.call(this,e,t),O&&this.pdf.restoreGraphicsState()}this.lineWidth=s}else this.lineWidth=l,_.call(this,e,t),this.lineWidth=s;this.path=u},_=function(e,t){if(("stroke"!==e||t||!f.call(this))&&("stroke"===e||t||!p.call(this))){for(var n,a,i=[],o=this.path,r=0;r<o.length;r++){var s=o[r];switch(s.type){case"begin":i.push({begin:!0});break;case"close":i.push({close:!0});break;case"mt":i.push({start:s,deltas:[],abs:[]});break;case"lt":var l=i.length;if(o[r-1]&&!isNaN(o[r-1].x)&&(n=[s.x-o[r-1].x,s.y-o[r-1].y],l>0))for(;l>=0;l--)if(!0!==i[l-1].close&&!0!==i[l-1].begin){i[l-1].deltas.push(n),i[l-1].abs.push(s);break}break;case"bct":n=[s.x1-o[r-1].x,s.y1-o[r-1].y,s.x2-o[r-1].x,s.y2-o[r-1].y,s.x-o[r-1].x,s.y-o[r-1].y],i[i.length-1].deltas.push(n);break;case"qct":var c=o[r-1].x+2/3*(s.x1-o[r-1].x),u=o[r-1].y+2/3*(s.y1-o[r-1].y),d=s.x+2/3*(s.x1-s.x),h=s.y+2/3*(s.y1-s.y),v=s.x,m=s.y;n=[c-o[r-1].x,u-o[r-1].y,d-o[r-1].x,h-o[r-1].y,v-o[r-1].x,m-o[r-1].y],i[i.length-1].deltas.push(n);break;case"arc":i.push({deltas:[],abs:[],arc:!0}),Array.isArray(i[i.length-1].abs)&&i[i.length-1].abs.push(s)}}a=t?null:"stroke"===e?"stroke":"fill";for(var g=!1,b=0;b<i.length;b++)if(i[b].arc)for(var y=i[b].abs,w=0;w<y.length;w++){var _=y[w];"arc"===_.type?N.call(this,_.x,_.y,_.radius,_.startAngle,_.endAngle,_.counterclockwise,void 0,t,!g):S.call(this,_.x,_.y),g=!0}else if(!0===i[b].close)this.pdf.internal.out("h"),g=!1;else if(!0!==i[b].begin){var E=i[b].start.x,P=i[b].start.y;M.call(this,i[b].deltas,E,P),g=!0}a&&I.call(this,a),t&&A.call(this)}},E=function(e){var t=this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor,n=t*(this.pdf.internal.getLineHeightFactor()-1);switch(this.ctx.textBaseline){case"bottom":return e-n;case"top":return e+t-n;case"hanging":return e+t-2*n;case"middle":return e+t/2-n;default:return e}},P=function(e){return e+this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor*(this.pdf.internal.getLineHeightFactor()-1)};d.prototype.createLinearGradient=function(){var e=function(){};return e.colorStops=[],e.addColorStop=function(e,t){this.colorStops.push([e,t])},e.getColor=function(){return 0===this.colorStops.length?"#000000":this.colorStops[0][1]},e.isCanvasGradient=!0,e},d.prototype.createPattern=function(){return this.createLinearGradient()},d.prototype.createRadialGradient=function(){return this.createLinearGradient()};var N=function(e,t,n,a,i,o,r,s,l){for(var c=O.call(this,n,a,i,o),u=0;u<c.length;u++){var d=c[u];0===u&&(l?k.call(this,d.x1+e,d.y1+t):S.call(this,d.x1+e,d.y1+t)),x.call(this,e,t,d.x2,d.y2,d.x3,d.y3,d.x4,d.y4)}s?A.call(this):I.call(this,r)},I=function(e){switch(e){case"stroke":this.pdf.internal.out("S");break;case"fill":this.pdf.internal.out("f")}},A=function(){this.pdf.clip(),this.pdf.discardPath()},k=function(e,t){this.pdf.internal.out(n(e)+" "+a(t)+" m")},C=function(e){var t;switch(e.align){case"right":case"end":t="right";break;case"center":t="center";break;default:t="left"}var n=this.pdf.getTextDimensions(e.text),a=E.call(this,e.y),i=P.call(this,a)-n.h,o=this.ctx.transform.applyToPoint(new r(e.x,a)),c=this.ctx.transform.decompose(),u=new l;u=(u=(u=u.multiply(c.translate)).multiply(c.skew)).multiply(c.scale);for(var d,h,p,f=this.ctx.transform.applyToRectangle(new s(e.x,a,n.w,n.h)),g=u.applyToRectangle(new s(e.x,i,n.w,n.h)),w=m.call(this,g),N=[],I=0;I<w.length;I+=1)-1===N.indexOf(w[I])&&N.push(w[I]);if(y(N),this.autoPaging)for(var A=N[0],k=N[N.length-1],C=A;C<k+1;C++){this.pdf.setPage(C);var S=1===C?this.posY+this.margin[0]:this.margin[0],M=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],x=this.pdf.internal.pageSize.height-this.margin[2],O=x-this.margin[0],D=this.pdf.internal.pageSize.width-this.margin[1],T=D-this.margin[3],j=1===C?0:M+(C-2)*O;if(0!==this.ctx.clip_path.length){var L=this.path;d=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=b(d,this.posX+this.margin[3],-1*j+S),_.call(this,"fill",!0),this.path=L}var V=b([JSON.parse(JSON.stringify(g))],this.posX+this.margin[3],-j+S+this.ctx.prevPageLastElemOffset)[0];e.scale>=.01&&(h=this.pdf.internal.getFontSize(),this.pdf.setFontSize(h*e.scale),p=this.lineWidth,this.lineWidth=p*e.scale);var B="text"!==this.autoPaging;if(B||V.y+V.h<=x){if(B||V.y>=S&&V.x<=D){var U=B?e.text:this.pdf.splitTextToSize(e.text,e.maxWidth||D-V.x)[0],z=b([JSON.parse(JSON.stringify(f))],this.posX+this.margin[3],-j+S+this.ctx.prevPageLastElemOffset)[0],R=B&&(C>A||C<k)&&v.call(this);R&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],T,O,null).clip().discardPath()),this.pdf.text(U,z.x,z.y,{angle:e.angle,align:t,renderingMode:e.renderingMode}),R&&this.pdf.restoreGraphicsState()}}else V.y<x&&(this.ctx.prevPageLastElemOffset+=x-V.y);e.scale>=.01&&(this.pdf.setFontSize(h),this.lineWidth=p)}else e.scale>=.01&&(h=this.pdf.internal.getFontSize(),this.pdf.setFontSize(h*e.scale),p=this.lineWidth,this.lineWidth=p*e.scale),this.pdf.text(e.text,o.x+this.posX,o.y+this.posY,{angle:e.angle,align:t,renderingMode:e.renderingMode,maxWidth:e.maxWidth}),e.scale>=.01&&(this.pdf.setFontSize(h),this.lineWidth=p)},S=function(e,t,i,o){i=i||0,o=o||0,this.pdf.internal.out(n(e+i)+" "+a(t+o)+" l")},M=function(e,t,n){return this.pdf.lines(e,t,n,null,null)},x=function(e,n,a,r,s,l,c,u){this.pdf.internal.out([t(i(a+e)),t(o(r+n)),t(i(s+e)),t(o(l+n)),t(i(c+e)),t(o(u+n)),"c"].join(" "))},O=function(e,t,n,a){for(var i=2*Math.PI,o=Math.PI/2;t>n;)t-=i;var r=Math.abs(n-t);r<i&&a&&(r=i-r);for(var s=[],l=a?-1:1,c=t;r>1e-5;){var u=c+l*Math.min(r,o);s.push(D.call(this,e,c,u)),r-=Math.abs(u-c),c=u}return s},D=function(e,t,n){var a=(n-t)/2,i=e*Math.cos(a),o=e*Math.sin(a),r=i,s=-o,l=r*r+s*s,c=l+r*i+s*o,u=4/3*(Math.sqrt(2*l*c)-c)/(r*o-s*i),d=r-u*s,h=s+u*r,p=d,f=-h,v=a+t,m=Math.cos(v),g=Math.sin(v);return{x1:e*Math.cos(t),y1:e*Math.sin(t),x2:d*m-h*g,y2:d*g+h*m,x3:p*m-f*g,y3:p*g+f*m,x4:e*Math.cos(n),y4:e*Math.sin(n)}},T=function(e){return 180*e/Math.PI},j=function(e,t,n,a,i,o){var r=e+.5*(n-e),l=t+.5*(a-t),c=i+.5*(n-i),u=o+.5*(a-o),d=Math.min(e,i,r,c),h=Math.max(e,i,r,c),p=Math.min(t,o,l,u),f=Math.max(t,o,l,u);return new s(d,p,h-d,f-p)},L=function(e,t,n,a,i,o,r,l){var c,u,d,h,p,f,v,m,g,b,y,w,_,E,P=n-e,N=a-t,I=i-n,A=o-a,k=r-i,C=l-o;for(u=0;u<41;u++)g=(v=(d=e+(c=u/40)*P)+c*((p=n+c*I)-d))+c*(p+c*(i+c*k-p)-v),b=(m=(h=t+c*N)+c*((f=a+c*A)-h))+c*(f+c*(o+c*C-f)-m),0==u?(y=g,w=b,_=g,E=b):(y=Math.min(y,g),w=Math.min(w,b),_=Math.max(_,g),E=Math.max(E,b));return new s(Math.round(y),Math.round(w),Math.round(_-y),Math.round(E-w))},V=function(){if(this.prevLineDash||this.ctx.lineDash.length||this.ctx.lineDashOffset){var e,t,n=(e=this.ctx.lineDash,t=this.ctx.lineDashOffset,JSON.stringify({lineDash:e,lineDashOffset:t}));this.prevLineDash!==n&&(this.pdf.setLineDash(this.ctx.lineDash,this.ctx.lineDashOffset),this.prevLineDash=n)}}}(Dl.API),
109
+ /**
110
+ * @license
111
+ * jsPDF filters PlugIn
112
+ * Copyright (c) 2014 Aras Abbasi
113
+ *
114
+ * Licensed under the MIT License.
115
+ * http://opensource.org/licenses/mit-license
116
+ */
117
+ function(e){var t=function(e){var t,n,a,i,o,r,s,l,c,u;for(n=[],a=0,i=(e+=t="\0\0\0\0".slice(e.length%4||4)).length;i>a;a+=4)0!==(o=(e.charCodeAt(a)<<24)+(e.charCodeAt(a+1)<<16)+(e.charCodeAt(a+2)<<8)+e.charCodeAt(a+3))?(r=(o=((o=((o=((o=(o-(u=o%85))/85)-(c=o%85))/85)-(l=o%85))/85)-(s=o%85))/85)%85,n.push(r+33,s+33,l+33,c+33,u+33)):n.push(122);return function(e,t){for(var n=t;n>0;n--)e.pop()}(n,t.length),String.fromCharCode.apply(String,n)+"~>"},n=function(e){var t,n,a,i,o,r=String,s="length",l=255,c="charCodeAt",u="slice",d="replace";for(e[u](-2),e=e[u](0,-2)[d](/\s/g,"")[d]("z","!!!!!"),a=[],i=0,o=(e+=t="uuuuu"[u](e[s]%5||5))[s];o>i;i+=5)n=52200625*(e[c](i)-33)+614125*(e[c](i+1)-33)+7225*(e[c](i+2)-33)+85*(e[c](i+3)-33)+(e[c](i+4)-33),a.push(l&n>>24,l&n>>16,l&n>>8,l&n);return function(e,t){for(var n=t;n>0;n--)e.pop()}(a,t[s]),r.fromCharCode.apply(r,a)},a=function(e){var t=new RegExp(/^([0-9A-Fa-f]{2})+$/);if(-1!==(e=e.replace(/\s/g,"")).indexOf(">")&&(e=e.substr(0,e.indexOf(">"))),e.length%2&&(e+="0"),!1===t.test(e))return"";for(var n="",a=0;a<e.length;a+=2)n+=String.fromCharCode("0x"+(e[a]+e[a+1]));return n},i=function(e){for(var t=new Uint8Array(e.length),n=e.length;n--;)t[n]=e.charCodeAt(n);return(t=Ks(t)).reduce(function(e,t){return e+String.fromCharCode(t)},"")};e.processDataByFilters=function(e,o){var r=0,s=e||"",l=[];for("string"==typeof(o=o||[])&&(o=[o]),r=0;r<o.length;r+=1)switch(o[r]){case"ASCII85Decode":case"/ASCII85Decode":s=n(s),l.push("/ASCII85Encode");break;case"ASCII85Encode":case"/ASCII85Encode":s=t(s),l.push("/ASCII85Decode");break;case"ASCIIHexDecode":case"/ASCIIHexDecode":s=a(s),l.push("/ASCIIHexEncode");break;case"ASCIIHexEncode":case"/ASCIIHexEncode":s=s.split("").map(function(e){return("0"+e.charCodeAt().toString(16)).slice(-2)}).join("")+">",l.push("/ASCIIHexDecode");break;case"FlateEncode":case"/FlateEncode":s=i(s),l.push("/FlateDecode");break;default:throw new Error('The filter: "'+o[r]+'" is not implemented')}return{data:s,reverseChain:l.reverse().join(" ")}}}(Dl.API),
118
+ /**
119
+ * @license
120
+ * jsPDF fileloading PlugIn
121
+ * Copyright (c) 2018 Aras Abbasi (aras.abbasi@gmail.com)
122
+ *
123
+ * Licensed under the MIT License.
124
+ * http://opensource.org/licenses/mit-license
125
+ */
126
+ function(e){e.loadFile=function(e,t,n){return function(e,t,n){t=!1!==t,n="function"==typeof n?n:function(){};var a=void 0;try{a=function(e,t,n){var a=new XMLHttpRequest,i=0,o=function(e){var t=e.length,n=[],a=String.fromCharCode;for(i=0;i<t;i+=1)n.push(a(255&e.charCodeAt(i)));return n.join("")};if(a.open("GET",e,!t),a.overrideMimeType("text/plain; charset=x-user-defined"),!1===t&&(a.onload=function(){200===a.status?n(o(this.responseText)):n(void 0)}),a.send(null),t&&200===a.status)return o(a.responseText)}(e,t,n)}catch(e){}return a}(e,t,n)},e.loadImageFile=e.loadFile}(Dl.API),function(e){function n(){return(el.html2canvas?Promise.resolve(el.html2canvas):t.import("./html2canvas.esm-ktJ_fyY7.js")).catch(function(e){return Promise.reject(new Error("Could not load html2canvas: "+e))}).then(function(e){return e.default?e.default:e})}function a(){return(el.DOMPurify?Promise.resolve(el.DOMPurify):t.import("./purify.es-BjJyJ1rO.js")).catch(function(e){return Promise.reject(new Error("Could not load dompurify: "+e))}).then(function(e){return e.default?e.default:e})}var i=function(e){var t=ss(e);return"undefined"===t?"undefined":"string"===t||e instanceof String?"string":"number"===t||e instanceof Number?"number":"function"===t||e instanceof Function?"function":e&&e.constructor===Array?"array":e&&1===e.nodeType?"element":"object"===t?"object":"unknown"},o=function(e,t){var n=document.createElement(e);for(var a in t.className&&(n.className=t.className),t.innerHTML&&t.dompurify&&(n.innerHTML=t.dompurify.sanitize(t.innerHTML)),t.style)n.style[a]=t.style[a];return n},r=function e(t){var n=Object.assign(e.convert(Promise.resolve()),JSON.parse(JSON.stringify(e.template))),a=e.convert(Promise.resolve(),n);return(a=a.setProgress(1,e,1,[e])).set(t)};(r.prototype=Object.create(Promise.prototype)).constructor=r,r.convert=function(e,t){return e.__proto__=t||r.prototype,e},r.template={prop:{src:null,container:null,overlay:null,canvas:null,img:null,pdf:null,pageSize:null,callback:function(){}},progress:{val:0,state:null,n:0,stack:[]},opt:{filename:"file.pdf",margin:[0,0,0,0],enableLinks:!0,x:0,y:0,html2canvas:{},jsPDF:{},backgroundColor:"transparent"}},r.prototype.from=function(e,t){return this.then(function(){switch(t=t||function(e){switch(i(e)){case"string":return"string";case"element":return"canvas"===e.nodeName.toLowerCase()?"canvas":"element";default:return"unknown"}}(e)){case"string":return this.then(a).then(function(t){return this.set({src:o("div",{innerHTML:e,dompurify:t})})});case"element":return this.set({src:e});case"canvas":return this.set({canvas:e});case"img":return this.set({img:e});default:return this.error("Unknown source type.")}})},r.prototype.to=function(e){switch(e){case"container":return this.toContainer();case"canvas":return this.toCanvas();case"img":return this.toImg();case"pdf":return this.toPdf();default:return this.error("Invalid target.")}},r.prototype.toContainer=function(){return this.thenList([function(){return this.prop.src||this.error("Cannot duplicate - no source HTML.")},function(){return this.prop.pageSize||this.setPageSize()}]).then(function(){var e={position:"relative",display:"inline-block",width:("number"!=typeof this.opt.width||isNaN(this.opt.width)||"number"!=typeof this.opt.windowWidth||isNaN(this.opt.windowWidth)?Math.max(this.prop.src.clientWidth,this.prop.src.scrollWidth,this.prop.src.offsetWidth):this.opt.windowWidth)+"px",left:0,right:0,top:0,margin:"auto",backgroundColor:this.opt.backgroundColor},t=function e(t,n){for(var a=3===t.nodeType?document.createTextNode(t.nodeValue):t.cloneNode(!1),i=t.firstChild;i;i=i.nextSibling)!0!==n&&1===i.nodeType&&"SCRIPT"===i.nodeName||a.appendChild(e(i,n));return 1===t.nodeType&&("CANVAS"===t.nodeName?(a.width=t.width,a.height=t.height,a.getContext("2d").drawImage(t,0,0)):"TEXTAREA"!==t.nodeName&&"SELECT"!==t.nodeName||(a.value=t.value),a.addEventListener("load",function(){a.scrollTop=t.scrollTop,a.scrollLeft=t.scrollLeft},!0)),a}(this.prop.src,this.opt.html2canvas.javascriptEnabled);"BODY"===t.tagName&&(e.height=Math.max(document.body.scrollHeight,document.body.offsetHeight,document.documentElement.clientHeight,document.documentElement.scrollHeight,document.documentElement.offsetHeight)+"px"),this.prop.overlay=o("div",{className:"html2pdf__overlay",style:{position:"fixed",overflow:"hidden",zIndex:1e3,left:"-100000px",right:0,bottom:0,top:0}}),this.prop.container=o("div",{className:"html2pdf__container",style:e}),this.prop.container.appendChild(t),this.prop.container.firstChild.appendChild(o("div",{style:{clear:"both",border:"0 none transparent",margin:0,padding:0,height:0}})),this.prop.container.style.float="none",this.prop.overlay.appendChild(this.prop.container),document.body.appendChild(this.prop.overlay),this.prop.container.firstChild.style.position="relative",this.prop.container.height=Math.max(this.prop.container.firstChild.clientHeight,this.prop.container.firstChild.scrollHeight,this.prop.container.firstChild.offsetHeight)+"px"})},r.prototype.toCanvas=function(){var e=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(e).then(n).then(function(e){var t=Object.assign({},this.opt.html2canvas);return delete t.onrendered,e(this.prop.container,t)}).then(function(e){(this.opt.html2canvas.onrendered||function(){})(e),this.prop.canvas=e,document.body.removeChild(this.prop.overlay)})},r.prototype.toContext2d=function(){var e=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(e).then(n).then(function(e){var t=this.opt.jsPDF,n=this.opt.fontFaces,a="number"!=typeof this.opt.width||isNaN(this.opt.width)||"number"!=typeof this.opt.windowWidth||isNaN(this.opt.windowWidth)?1:this.opt.width/this.opt.windowWidth,i=Object.assign({async:!0,allowTaint:!0,scale:a,scrollX:this.opt.scrollX||0,scrollY:this.opt.scrollY||0,backgroundColor:"#ffffff",imageTimeout:15e3,logging:!0,proxy:null,removeContainer:!0,foreignObjectRendering:!1,useCORS:!1},this.opt.html2canvas);if(delete i.onrendered,t.context2d.autoPaging=void 0===this.opt.autoPaging||this.opt.autoPaging,t.context2d.posX=this.opt.x,t.context2d.posY=this.opt.y,t.context2d.margin=this.opt.margin,t.context2d.fontFaces=n,n)for(var o=0;o<n.length;++o){var r=n[o],s=r.src.find(function(e){return"truetype"===e.format});s&&t.addFont(s.url,r.ref.name,r.ref.style)}return i.windowHeight=i.windowHeight||0,i.windowHeight=0==i.windowHeight?Math.max(this.prop.container.clientHeight,this.prop.container.scrollHeight,this.prop.container.offsetHeight):i.windowHeight,t.context2d.save(!0),e(this.prop.container,i)}).then(function(e){this.opt.jsPDF.context2d.restore(!0),(this.opt.html2canvas.onrendered||function(){})(e),this.prop.canvas=e,document.body.removeChild(this.prop.overlay)})},r.prototype.toImg=function(){return this.thenList([function(){return this.prop.canvas||this.toCanvas()}]).then(function(){var e=this.prop.canvas.toDataURL("image/"+this.opt.image.type,this.opt.image.quality);this.prop.img=document.createElement("img"),this.prop.img.src=e})},r.prototype.toPdf=function(){return this.thenList([function(){return this.toContext2d()}]).then(function(){this.prop.pdf=this.prop.pdf||this.opt.jsPDF})},r.prototype.output=function(e,t,n){return"img"===(n=n||"pdf").toLowerCase()||"image"===n.toLowerCase()?this.outputImg(e,t):this.outputPdf(e,t)},r.prototype.outputPdf=function(e,t){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){return this.prop.pdf.output(e,t)})},r.prototype.outputImg=function(e){return this.thenList([function(){return this.prop.img||this.toImg()}]).then(function(){switch(e){case void 0:case"img":return this.prop.img;case"datauristring":case"dataurlstring":return this.prop.img.src;case"datauri":case"dataurl":return document.location.href=this.prop.img.src;default:throw'Image output type "'+e+'" is not supported.'}})},r.prototype.save=function(e){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).set(e?{filename:e}:null).then(function(){this.prop.pdf.save(this.opt.filename)})},r.prototype.doCallback=function(){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){this.prop.callback(this.prop.pdf)})},r.prototype.set=function(e){if("object"!==i(e))return this;var t=Object.keys(e||{}).map(function(t){if(t in r.template.prop)return function(){this.prop[t]=e[t]};switch(t){case"margin":return this.setMargin.bind(this,e.margin);case"jsPDF":return function(){return this.opt.jsPDF=e.jsPDF,this.setPageSize()};case"pageSize":return this.setPageSize.bind(this,e.pageSize);default:return function(){this.opt[t]=e[t]}}},this);return this.then(function(){return this.thenList(t)})},r.prototype.get=function(e,t){return this.then(function(){var n=e in r.template.prop?this.prop[e]:this.opt[e];return t?t(n):n})},r.prototype.setMargin=function(e){return this.then(function(){switch(i(e)){case"number":e=[e,e,e,e];case"array":if(2===e.length&&(e=[e[0],e[1],e[0],e[1]]),4===e.length)break;default:return this.error("Invalid margin array.")}this.opt.margin=e}).then(this.setPageSize)},r.prototype.setPageSize=function(e){function t(e,t){return Math.floor(e*t/72*96)}return this.then(function(){(e=e||Dl.getPageSize(this.opt.jsPDF)).hasOwnProperty("inner")||(e.inner={width:e.width-this.opt.margin[1]-this.opt.margin[3],height:e.height-this.opt.margin[0]-this.opt.margin[2]},e.inner.px={width:t(e.inner.width,e.k),height:t(e.inner.height,e.k)},e.inner.ratio=e.inner.height/e.inner.width),this.prop.pageSize=e})},r.prototype.setProgress=function(e,t,n,a){return null!=e&&(this.progress.val=e),null!=t&&(this.progress.state=t),null!=n&&(this.progress.n=n),null!=a&&(this.progress.stack=a),this.progress.ratio=this.progress.val/this.progress.state,this},r.prototype.updateProgress=function(e,t,n,a){return this.setProgress(e?this.progress.val+e:null,t||null,n?this.progress.n+n:null,a?this.progress.stack.concat(a):null)},r.prototype.then=function(e,t){var n=this;return this.thenCore(e,t,function(e,t){return n.updateProgress(null,null,1,[e]),Promise.prototype.then.call(this,function(t){return n.updateProgress(null,e),t}).then(e,t).then(function(e){return n.updateProgress(1),e})})},r.prototype.thenCore=function(e,t,n){n=n||Promise.prototype.then,e&&(e=e.bind(this)),t&&(t=t.bind(this));var a=-1!==Promise.toString().indexOf("[native code]")&&"Promise"===Promise.name?this:r.convert(Object.assign({},this),Promise.prototype),i=n.call(a,e,t);return r.convert(i,this.__proto__)},r.prototype.thenExternal=function(e,t){return Promise.prototype.then.call(this,e,t)},r.prototype.thenList=function(e){var t=this;return e.forEach(function(e){t=t.thenCore(e)}),t},r.prototype.catch=function(e){e&&(e=e.bind(this));var t=Promise.prototype.catch.call(this,e);return r.convert(t,this)},r.prototype.catchExternal=function(e){return Promise.prototype.catch.call(this,e)},r.prototype.error=function(e){return this.then(function(){throw new Error(e)})},r.prototype.using=r.prototype.set,r.prototype.saveAs=r.prototype.save,r.prototype.export=r.prototype.output,r.prototype.run=r.prototype.then,Dl.getPageSize=function(e,t,n){if("object"===ss(e)){var a=e;e=a.orientation,t=a.unit||t,n=a.format||n}t=t||"mm",n=n||"a4",e=(""+(e||"P")).toLowerCase();var i,o=(""+n).toLowerCase(),r={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};switch(t){case"pt":i=1;break;case"mm":i=72/25.4;break;case"cm":i=72/2.54;break;case"in":i=72;break;case"px":i=.75;break;case"pc":case"em":i=12;break;case"ex":i=6;break;default:throw"Invalid unit: "+t}var s,l=0,c=0;if(r.hasOwnProperty(o))l=r[o][1]/i,c=r[o][0]/i;else try{l=n[1],c=n[0]}catch(e){throw new Error("Invalid format: "+n)}if("p"===e||"portrait"===e)e="p",c>l&&(s=c,c=l,l=s);else{if("l"!==e&&"landscape"!==e)throw"Invalid orientation: "+e;e="l",l>c&&(s=c,c=l,l=s)}return{width:c,height:l,unit:t,k:i,orientation:e}},e.html=function(e,t){(t=t||{}).callback=t.callback||function(){},t.html2canvas=t.html2canvas||{},t.html2canvas.canvas=t.html2canvas.canvas||this.canvas,t.jsPDF=t.jsPDF||this,t.fontFaces=t.fontFaces?t.fontFaces.map(kc):null;var n=new r(t);return t.worker?n:n.from(e).doCallback()}}(Dl.API),Dl.API.addJS=function(e){return Vc=e,this.internal.events.subscribe("postPutResources",function(){jc=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/Names [(EmbeddedJS) "+(jc+1)+" 0 R]"),this.internal.out(">>"),this.internal.out("endobj"),Lc=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /JavaScript"),this.internal.out("/JS ("+Vc+")"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){void 0!==jc&&void 0!==Lc&&this.internal.out("/Names <</JavaScript "+jc+" 0 R>>")}),this},
127
+ /**
128
+ * @license
129
+ * Copyright (c) 2014 Steven Spungin (TwelveTone LLC) steven@twelvetone.tv
130
+ *
131
+ * Licensed under the MIT License.
132
+ * http://opensource.org/licenses/mit-license
133
+ */
134
+ function(e){var t;e.events.push(["postPutResources",function(){var e=this,n=/^(\d+) 0 obj$/;if(this.outline.root.children.length>0)for(var a=e.outline.render().split(/\r\n/),i=0;i<a.length;i++){var o=a[i],r=n.exec(o);if(null!=r){var s=r[1];e.internal.newObjectDeferredBegin(s,!1)}e.internal.write(o)}if(this.outline.createNamedDestinations){var l=this.internal.pages.length,c=[];for(i=0;i<l;i++){var u=e.internal.newObject();c.push(u);var d=e.internal.getPageInfo(i+1);e.internal.write("<< /D["+d.objId+" 0 R /XYZ null null null]>> endobj")}var h=e.internal.newObject();for(e.internal.write("<< /Names [ "),i=0;i<c.length;i++)e.internal.write("(page_"+(i+1)+")"+c[i]+" 0 R");e.internal.write(" ] >>","endobj"),t=e.internal.newObject(),e.internal.write("<< /Dests "+h+" 0 R"),e.internal.write(">>","endobj")}}]),e.events.push(["putCatalog",function(){this.outline.root.children.length>0&&(this.internal.write("/Outlines",this.outline.makeRef(this.outline.root)),this.outline.createNamedDestinations&&this.internal.write("/Names "+t+" 0 R"))}]),e.events.push(["initialized",function(){var e=this;e.outline={createNamedDestinations:!1,root:{children:[]}},e.outline.add=function(e,t,n){var a={title:t,options:n,children:[]};return null==e&&(e=this.root),e.children.push(a),a},e.outline.render=function(){return this.ctx={},this.ctx.val="",this.ctx.pdf=e,this.genIds_r(this.root),this.renderRoot(this.root),this.renderItems(this.root),this.ctx.val},e.outline.genIds_r=function(t){t.id=e.internal.newObjectDeferred();for(var n=0;n<t.children.length;n++)this.genIds_r(t.children[n])},e.outline.renderRoot=function(e){this.objStart(e),this.line("/Type /Outlines"),e.children.length>0&&(this.line("/First "+this.makeRef(e.children[0])),this.line("/Last "+this.makeRef(e.children[e.children.length-1]))),this.line("/Count "+this.count_r({count:0},e)),this.objEnd()},e.outline.renderItems=function(t){for(var n=this.ctx.pdf.internal.getVerticalCoordinateString,a=0;a<t.children.length;a++){var i=t.children[a];this.objStart(i),this.line("/Title "+this.makeString(i.title)),this.line("/Parent "+this.makeRef(t)),a>0&&this.line("/Prev "+this.makeRef(t.children[a-1])),a<t.children.length-1&&this.line("/Next "+this.makeRef(t.children[a+1])),i.children.length>0&&(this.line("/First "+this.makeRef(i.children[0])),this.line("/Last "+this.makeRef(i.children[i.children.length-1])));var o=this.count=this.count_r({count:0},i);if(o>0&&this.line("/Count "+o),i.options&&i.options.pageNumber){var r=e.internal.getPageInfo(i.options.pageNumber);this.line("/Dest ["+r.objId+" 0 R /XYZ 0 "+n(0)+" 0]")}this.objEnd()}for(var s=0;s<t.children.length;s++)this.renderItems(t.children[s])},e.outline.line=function(e){this.ctx.val+=e+"\r\n"},e.outline.makeRef=function(e){return e.id+" 0 R"},e.outline.makeString=function(t){return"("+e.internal.pdfEscape(t)+")"},e.outline.objStart=function(e){this.ctx.val+="\r\n"+e.id+" 0 obj\r\n<<\r\n"},e.outline.objEnd=function(){this.ctx.val+=">> \r\nendobj\r\n"},e.outline.count_r=function(e,t){for(var n=0;n<t.children.length;n++)e.count++,this.count_r(e,t.children[n]);return e.count}}])}(Dl.API),
135
+ /**
136
+ * @license
137
+ *
138
+ * Licensed under the MIT License.
139
+ * http://opensource.org/licenses/mit-license
140
+ */
141
+ function(e){var t=[192,193,194,195,196,197,198,199];e.processJPEG=function(e,n,a,i,o,r){var s,l=this.decode.DCT_DECODE,c=null;if("string"==typeof e||this.__addimage__.isArrayBuffer(e)||this.__addimage__.isArrayBufferView(e)){switch(e=o||e,e=this.__addimage__.isArrayBuffer(e)?new Uint8Array(e):e,(s=function(e){for(var n,a=256*e.charCodeAt(4)+e.charCodeAt(5),i=e.length,o={width:0,height:0,numcomponents:1},r=4;r<i;r+=2){if(r+=a,-1!==t.indexOf(e.charCodeAt(r+1))){n=256*e.charCodeAt(r+5)+e.charCodeAt(r+6),o={width:256*e.charCodeAt(r+7)+e.charCodeAt(r+8),height:n,numcomponents:e.charCodeAt(r+9)};break}a=256*e.charCodeAt(r+2)+e.charCodeAt(r+3)}return o}(e=this.__addimage__.isArrayBufferView(e)?this.__addimage__.arrayBufferToBinaryString(e):e)).numcomponents){case 1:r=this.color_spaces.DEVICE_GRAY;break;case 4:r=this.color_spaces.DEVICE_CMYK;break;case 3:r=this.color_spaces.DEVICE_RGB}c={data:e,width:s.width,height:s.height,colorSpace:r,bitsPerComponent:8,filter:l,index:n,alias:a}}return c}}(Dl.API);var Uc,zc,Rc,Fc,$c,qc=function(){var e,t,n;function a(e){var t,n,a,i,o,r,s,l,c,u,d,h,p,f;for(this.data=e,this.pos=8,this.palette=[],this.imgData=[],this.transparency={},this.animation=null,this.text={},r=null;;){switch(t=this.readUInt32(),c=function(){var e,t;for(t=[],e=0;e<4;++e)t.push(String.fromCharCode(this.data[this.pos++]));return t}.call(this).join("")){case"IHDR":this.width=this.readUInt32(),this.height=this.readUInt32(),this.bits=this.data[this.pos++],this.colorType=this.data[this.pos++],this.compressionMethod=this.data[this.pos++],this.filterMethod=this.data[this.pos++],this.interlaceMethod=this.data[this.pos++];break;case"acTL":this.animation={numFrames:this.readUInt32(),numPlays:this.readUInt32()||1/0,frames:[]};break;case"PLTE":this.palette=this.read(t);break;case"fcTL":r&&this.animation.frames.push(r),this.pos+=4,r={width:this.readUInt32(),height:this.readUInt32(),xOffset:this.readUInt32(),yOffset:this.readUInt32()},o=this.readUInt16(),i=this.readUInt16()||100,r.delay=1e3*o/i,r.disposeOp=this.data[this.pos++],r.blendOp=this.data[this.pos++],r.data=[];break;case"IDAT":case"fdAT":for("fdAT"===c&&(this.pos+=4,t-=4),e=(null!=r?r.data:void 0)||this.imgData,h=0;0<=t?h<t:h>t;0<=t?++h:--h)e.push(this.data[this.pos++]);break;case"tRNS":switch(this.transparency={},this.colorType){case 3:if(a=this.palette.length/3,this.transparency.indexed=this.read(t),this.transparency.indexed.length>a)throw new Error("More transparent colors than palette size");if((u=a-this.transparency.indexed.length)>0)for(p=0;0<=u?p<u:p>u;0<=u?++p:--p)this.transparency.indexed.push(255);break;case 0:this.transparency.grayscale=this.read(t)[0];break;case 2:this.transparency.rgb=this.read(t)}break;case"tEXt":s=(d=this.read(t)).indexOf(0),l=String.fromCharCode.apply(String,d.slice(0,s)),this.text[l]=String.fromCharCode.apply(String,d.slice(s+1));break;case"IEND":return r&&this.animation.frames.push(r),this.colors=function(){switch(this.colorType){case 0:case 3:case 4:return 1;case 2:case 6:return 3}}.call(this),this.hasAlphaChannel=4===(f=this.colorType)||6===f,n=this.colors+(this.hasAlphaChannel?1:0),this.pixelBitlength=this.bits*n,this.colorSpace=function(){switch(this.colors){case 1:return"DeviceGray";case 3:return"DeviceRGB"}}.call(this),void(this.imgData=new Uint8Array(this.imgData));default:this.pos+=t}if(this.pos+=4,this.pos>this.data.length)throw new Error("Incomplete or corrupt PNG file")}}a.prototype.read=function(e){var t,n;for(n=[],t=0;0<=e?t<e:t>e;0<=e?++t:--t)n.push(this.data[this.pos++]);return n},a.prototype.readUInt32=function(){return this.data[this.pos++]<<24|this.data[this.pos++]<<16|this.data[this.pos++]<<8|this.data[this.pos++]},a.prototype.readUInt16=function(){return this.data[this.pos++]<<8|this.data[this.pos++]},a.prototype.decodePixels=function(e){var t=this.pixelBitlength/8,n=new Uint8Array(this.width*this.height*t),a=0,i=this;if(null==e&&(e=this.imgData),0===e.length)return new Uint8Array(0);function o(o,r,s,l){var c,u,d,h,p,f,v,m,g,b,y,w,_,E,P,N,I,A,k,C,S,M=Math.ceil((i.width-o)/s),x=Math.ceil((i.height-r)/l),O=i.width==M&&i.height==x;for(E=t*M,w=O?n:new Uint8Array(E*x),f=e.length,_=0,u=0;_<x&&a<f;){switch(e[a++]){case 0:for(h=I=0;I<E;h=I+=1)w[u++]=e[a++];break;case 1:for(h=A=0;A<E;h=A+=1)c=e[a++],p=h<t?0:w[u-t],w[u++]=(c+p)%256;break;case 2:for(h=k=0;k<E;h=k+=1)c=e[a++],d=(h-h%t)/t,P=_&&w[(_-1)*E+d*t+h%t],w[u++]=(P+c)%256;break;case 3:for(h=C=0;C<E;h=C+=1)c=e[a++],d=(h-h%t)/t,p=h<t?0:w[u-t],P=_&&w[(_-1)*E+d*t+h%t],w[u++]=(c+Math.floor((p+P)/2))%256;break;case 4:for(h=S=0;S<E;h=S+=1)c=e[a++],d=(h-h%t)/t,p=h<t?0:w[u-t],0===_?P=N=0:(P=w[(_-1)*E+d*t+h%t],N=d&&w[(_-1)*E+(d-1)*t+h%t]),v=p+P-N,m=Math.abs(v-p),b=Math.abs(v-P),y=Math.abs(v-N),g=m<=b&&m<=y?p:b<=y?P:N,w[u++]=(c+g)%256;break;default:throw new Error("Invalid filter algorithm: "+e[a-1])}if(!O){var D=((r+_*l)*i.width+o)*t,T=_*E;for(h=0;h<M;h+=1){for(var j=0;j<t;j+=1)n[D++]=w[T++];D+=(s-1)*t}}_++}}return e=Qs(e),1==i.interlaceMethod?(o(0,0,8,8),o(4,0,8,8),o(0,4,4,8),o(2,0,4,4),o(0,2,2,4),o(1,0,2,2),o(0,1,1,2)):o(0,0,1,1),n},a.prototype.decodePalette=function(){var e,t,n,a,i,o,r,s,l;for(n=this.palette,o=this.transparency.indexed||[],i=new Uint8Array((o.length||0)+n.length),a=0,e=0,t=r=0,s=n.length;r<s;t=r+=3)i[a++]=n[t],i[a++]=n[t+1],i[a++]=n[t+2],i[a++]=null!=(l=o[e++])?l:255;return i},a.prototype.copyToImageData=function(e,t){var n,a,i,o,r,s,l,c,u,d,h;if(a=this.colors,u=null,n=this.hasAlphaChannel,this.palette.length&&(u=null!=(h=this._decodedPalette)?h:this._decodedPalette=this.decodePalette(),a=4,n=!0),c=(i=e.data||e).length,r=u||t,o=s=0,1===a)for(;o<c;)l=u?4*t[o/4]:s,d=r[l++],i[o++]=d,i[o++]=d,i[o++]=d,i[o++]=n?r[l++]:255,s=l;else for(;o<c;)l=u?4*t[o/4]:s,i[o++]=r[l++],i[o++]=r[l++],i[o++]=r[l++],i[o++]=n?r[l++]:255,s=l},a.prototype.decode=function(){var e;return e=new Uint8Array(this.width*this.height*4),this.copyToImageData(e,this.decodePixels()),e};var i=function(){if("[object Window]"===Object.prototype.toString.call(el)){try{t=el.document.createElement("canvas"),n=t.getContext("2d")}catch(e){return!1}return!0}return!1};return i(),e=function(e){var a;if(!0===i())return n.width=e.width,n.height=e.height,n.clearRect(0,0,e.width,e.height),n.putImageData(e,0,0),(a=new Image).src=t.toDataURL(),a;throw new Error("This method requires a Browser with Canvas-capability.")},a.prototype.decodeFrames=function(t){var n,a,i,o,r,s,l,c;if(this.animation){for(c=[],a=r=0,s=(l=this.animation.frames).length;r<s;a=++r)n=l[a],i=t.createImageData(n.width,n.height),o=this.decodePixels(new Uint8Array(n.data)),this.copyToImageData(i,o),n.imageData=i,c.push(n.image=e(i));return c}},a.prototype.renderFrame=function(e,t){var n,a,i;return n=(a=this.animation.frames)[t],i=a[t-1],0===t&&e.clearRect(0,0,this.width,this.height),1===(null!=i?i.disposeOp:void 0)?e.clearRect(i.xOffset,i.yOffset,i.width,i.height):2===(null!=i?i.disposeOp:void 0)&&e.putImageData(i.imageData,i.xOffset,i.yOffset),0===n.blendOp&&e.clearRect(n.xOffset,n.yOffset,n.width,n.height),e.drawImage(n.image,n.xOffset,n.yOffset)},a.prototype.animate=function(e){var t,n,a,i,o,r,s=this;return n=0,r=this.animation,i=r.numFrames,a=r.frames,o=r.numPlays,(t=function(){var r,l;if(r=n++%i,l=a[r],s.renderFrame(e,r),i>1&&n/i<o)return s.animation._timeout=setTimeout(t,l.delay)})()},a.prototype.stopAnimation=function(){var e;return clearTimeout(null!=(e=this.animation)?e._timeout:void 0)},a.prototype.render=function(e){var t,n;return e._png&&e._png.stopAnimation(),e._png=this,e.width=this.width,e.height=this.height,t=e.getContext("2d"),this.animation?(this.decodeFrames(t),this.animate(t)):(n=t.createImageData(this.width,this.height),this.copyToImageData(n,this.decodePixels()),t.putImageData(n,0,0))},a}();
142
+ /**
143
+ * @license
144
+ *
145
+ * Copyright (c) 2014 James Robb, https://github.com/jamesbrobb
146
+ *
147
+ * Permission is hereby granted, free of charge, to any person obtaining
148
+ * a copy of this software and associated documentation files (the
149
+ * "Software"), to deal in the Software without restriction, including
150
+ * without limitation the rights to use, copy, modify, merge, publish,
151
+ * distribute, sublicense, and/or sell copies of the Software, and to
152
+ * permit persons to whom the Software is furnished to do so, subject to
153
+ * the following conditions:
154
+ *
155
+ * The above copyright notice and this permission notice shall be
156
+ * included in all copies or substantial portions of the Software.
157
+ *
158
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
159
+ * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
160
+ * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
161
+ * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
162
+ * LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
163
+ * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
164
+ * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
165
+ * ====================================================================
166
+ */
167
+ /**
168
+ * @license
169
+ * (c) Dean McNamee <dean@gmail.com>, 2013.
170
+ *
171
+ * https://github.com/deanm/omggif
172
+ *
173
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
174
+ * of this software and associated documentation files (the "Software"), to
175
+ * deal in the Software without restriction, including without limitation the
176
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
177
+ * sell copies of the Software, and to permit persons to whom the Software is
178
+ * furnished to do so, subject to the following conditions:
179
+ *
180
+ * The above copyright notice and this permission notice shall be included in
181
+ * all copies or substantial portions of the Software.
182
+ *
183
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
184
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
185
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
186
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
187
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
188
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
189
+ * IN THE SOFTWARE.
190
+ *
191
+ * omggif is a JavaScript implementation of a GIF 89a encoder and decoder,
192
+ * including animation and compression. It does not rely on any specific
193
+ * underlying system, so should run in the browser, Node, or Plask.
194
+ */function Wc(e){var t=0;if(71!==e[t++]||73!==e[t++]||70!==e[t++]||56!==e[t++]||56!=(e[t++]+1&253)||97!==e[t++])throw new Error("Invalid GIF 87a/89a header.");var n=e[t++]|e[t++]<<8,a=e[t++]|e[t++]<<8,i=e[t++],o=i>>7,r=1<<1+(7&i);e[t++],e[t++];var s=null,l=null;o&&(s=t,l=r,t+=3*r);var c=!0,u=[],d=0,h=null,p=0,f=null;for(this.width=n,this.height=a;c&&t<e.length;)switch(e[t++]){case 33:switch(e[t++]){case 255:if(11!==e[t]||78==e[t+1]&&69==e[t+2]&&84==e[t+3]&&83==e[t+4]&&67==e[t+5]&&65==e[t+6]&&80==e[t+7]&&69==e[t+8]&&50==e[t+9]&&46==e[t+10]&&48==e[t+11]&&3==e[t+12]&&1==e[t+13]&&0==e[t+16])t+=14,f=e[t++]|e[t++]<<8,t++;else for(t+=12;;){if(!((k=e[t++])>=0))throw Error("Invalid block size");if(0===k)break;t+=k}break;case 249:if(4!==e[t++]||0!==e[t+4])throw new Error("Invalid graphics extension block.");var v=e[t++];d=e[t++]|e[t++]<<8,h=e[t++],!(1&v)&&(h=null),p=v>>2&7,t++;break;case 254:for(;;){if(!((k=e[t++])>=0))throw Error("Invalid block size");if(0===k)break;t+=k}break;default:throw new Error("Unknown graphic control label: 0x"+e[t-1].toString(16))}break;case 44:var m=e[t++]|e[t++]<<8,g=e[t++]|e[t++]<<8,b=e[t++]|e[t++]<<8,y=e[t++]|e[t++]<<8,w=e[t++],_=w>>6&1,E=1<<1+(7&w),P=s,N=l,I=!1;w>>7&&(I=!0,P=t,N=E,t+=3*E);var A=t;for(t++;;){var k;if(!((k=e[t++])>=0))throw Error("Invalid block size");if(0===k)break;t+=k}u.push({x:m,y:g,width:b,height:y,has_local_palette:I,palette_offset:P,palette_size:N,data_offset:A,data_length:t-A,transparent_index:h,interlaced:!!_,delay:d,disposal:p});break;case 59:c=!1;break;default:throw new Error("Unknown gif block: 0x"+e[t-1].toString(16))}this.numFrames=function(){return u.length},this.loopCount=function(){return f},this.frameInfo=function(e){if(e<0||e>=u.length)throw new Error("Frame index out of range.");return u[e]},this.decodeAndBlitFrameBGRA=function(t,a){var i=this.frameInfo(t),o=i.width*i.height,r=new Uint8Array(o);Hc(e,i.data_offset,r,o);var s=i.palette_offset,l=i.transparent_index;null===l&&(l=256);var c=i.width,u=n-c,d=c,h=4*(i.y*n+i.x),p=4*((i.y+i.height)*n+i.x),f=h,v=4*u;!0===i.interlaced&&(v+=4*n*7);for(var m=8,g=0,b=r.length;g<b;++g){var y=r[g];if(0===d&&(d=c,(f+=v)>=p&&(v=4*u+4*n*(m-1),f=h+(c+u)*(m<<1),m>>=1)),y===l)f+=4;else{var w=e[s+3*y],_=e[s+3*y+1],E=e[s+3*y+2];a[f++]=E,a[f++]=_,a[f++]=w,a[f++]=255}--d}},this.decodeAndBlitFrameRGBA=function(t,a){var i=this.frameInfo(t),o=i.width*i.height,r=new Uint8Array(o);Hc(e,i.data_offset,r,o);var s=i.palette_offset,l=i.transparent_index;null===l&&(l=256);var c=i.width,u=n-c,d=c,h=4*(i.y*n+i.x),p=4*((i.y+i.height)*n+i.x),f=h,v=4*u;!0===i.interlaced&&(v+=4*n*7);for(var m=8,g=0,b=r.length;g<b;++g){var y=r[g];if(0===d&&(d=c,(f+=v)>=p&&(v=4*u+4*n*(m-1),f=h+(c+u)*(m<<1),m>>=1)),y===l)f+=4;else{var w=e[s+3*y],_=e[s+3*y+1],E=e[s+3*y+2];a[f++]=w,a[f++]=_,a[f++]=E,a[f++]=255}--d}}}function Hc(e,t,n,a){for(var i=e[t++],o=1<<i,r=o+1,s=r+1,l=i+1,c=(1<<l)-1,u=0,d=0,h=0,p=e[t++],f=new Int32Array(4096),v=null;;){for(;u<16&&0!==p;)d|=e[t++]<<u,u+=8,1===p?p=e[t++]:--p;if(u<l)break;var m=d&c;if(d>>=l,u-=l,m!==o){if(m===r)break;for(var g=m<s?m:v,b=0,y=g;y>o;)y=f[y]>>8,++b;var w=y;if(h+b+(g!==m?1:0)>a)return void nl.log("Warning, gif stream longer than expected.");n[h++]=w;var _=h+=b;for(g!==m&&(n[h++]=w),y=g;b--;)y=f[y],n[--_]=255&y,y>>=8;null!==v&&s<4096&&(f[s++]=v<<8|w,s>=c+1&&l<12&&(++l,c=c<<1|1)),v=m}else s=r+1,c=(1<<(l=i+1))-1,v=null}return h!==a&&nl.log("Warning, gif stream shorter than expected."),n
195
+ /**
196
+ * @license
197
+ Copyright (c) 2008, Adobe Systems Incorporated
198
+ All rights reserved.
199
+
200
+ Redistribution and use in source and binary forms, with or without
201
+ modification, are permitted provided that the following conditions are
202
+ met:
203
+
204
+ * Redistributions of source code must retain the above copyright notice,
205
+ this list of conditions and the following disclaimer.
206
+
207
+ * Redistributions in binary form must reproduce the above copyright
208
+ notice, this list of conditions and the following disclaimer in the
209
+ documentation and/or other materials provided with the distribution.
210
+
211
+ * Neither the name of Adobe Systems Incorporated nor the names of its
212
+ contributors may be used to endorse or promote products derived from
213
+ this software without specific prior written permission.
214
+
215
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
216
+ IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
217
+ THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
218
+ PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
219
+ CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
220
+ EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
221
+ PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
222
+ PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
223
+ LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
224
+ NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
225
+ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
226
+ */}function Gc(e){var t,n,a,i,o,r=Math.floor,s=new Array(64),l=new Array(64),c=new Array(64),u=new Array(64),d=new Array(65535),h=new Array(65535),p=new Array(64),f=new Array(64),v=[],m=0,g=7,b=new Array(64),y=new Array(64),w=new Array(64),_=new Array(256),E=new Array(2048),P=[0,1,5,6,14,15,27,28,2,4,7,13,16,26,29,42,3,8,12,17,25,30,41,43,9,11,18,24,31,40,44,53,10,19,23,32,39,45,52,54,20,22,33,38,46,51,55,60,21,34,37,47,50,56,59,61,35,36,48,49,57,58,62,63],N=[0,0,1,5,1,1,1,1,1,1,0,0,0,0,0,0,0],I=[0,1,2,3,4,5,6,7,8,9,10,11],A=[0,0,2,1,3,3,2,4,3,5,5,4,4,0,0,1,125],k=[1,2,3,0,4,17,5,18,33,49,65,6,19,81,97,7,34,113,20,50,129,145,161,8,35,66,177,193,21,82,209,240,36,51,98,114,130,9,10,22,23,24,25,26,37,38,39,40,41,42,52,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,225,226,227,228,229,230,231,232,233,234,241,242,243,244,245,246,247,248,249,250],C=[0,0,3,1,1,1,1,1,1,1,1,1,0,0,0,0,0],S=[0,1,2,3,4,5,6,7,8,9,10,11],M=[0,0,2,1,2,4,4,3,4,7,5,4,4,0,1,2,119],x=[0,1,2,3,17,4,5,33,49,6,18,65,81,7,97,113,19,34,50,129,8,20,66,145,161,177,193,9,35,51,82,240,21,98,114,209,10,22,36,52,225,37,241,23,24,25,26,38,39,40,41,42,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,130,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,226,227,228,229,230,231,232,233,234,242,243,244,245,246,247,248,249,250];function O(e,t){for(var n=0,a=0,i=new Array,o=1;o<=16;o++){for(var r=1;r<=e[o];r++)i[t[a]]=[],i[t[a]][0]=n,i[t[a]][1]=o,a++,n++;n*=2}return i}function D(e){for(var t=e[0],n=e[1]-1;n>=0;)t&1<<n&&(m|=1<<g),n--,--g<0&&(255==m?(T(255),T(0)):T(m),g=7,m=0)}function T(e){v.push(e)}function j(e){T(e>>8&255),T(255&e)}function L(e,t,n,a,i){for(var o,r=i[0],s=i[240],l=function(e,t){var n,a,i,o,r,s,l,c,u,d,h=0;for(u=0;u<8;++u){n=e[h],a=e[h+1],i=e[h+2],o=e[h+3],r=e[h+4],s=e[h+5],l=e[h+6];var f=n+(c=e[h+7]),v=n-c,m=a+l,g=a-l,b=i+s,y=i-s,w=o+r,_=o-r,E=f+w,P=f-w,N=m+b,I=m-b;e[h]=E+N,e[h+4]=E-N;var A=.707106781*(I+P);e[h+2]=P+A,e[h+6]=P-A;var k=.382683433*((E=_+y)-(I=g+v)),C=.5411961*E+k,S=1.306562965*I+k,M=.707106781*(N=y+g),x=v+M,O=v-M;e[h+5]=O+C,e[h+3]=O-C,e[h+1]=x+S,e[h+7]=x-S,h+=8}for(h=0,u=0;u<8;++u){n=e[h],a=e[h+8],i=e[h+16],o=e[h+24],r=e[h+32],s=e[h+40],l=e[h+48];var D=n+(c=e[h+56]),T=n-c,j=a+l,L=a-l,V=i+s,B=i-s,U=o+r,z=o-r,R=D+U,F=D-U,$=j+V,q=j-V;e[h]=R+$,e[h+32]=R-$;var W=.707106781*(q+F);e[h+16]=F+W,e[h+48]=F-W;var H=.382683433*((R=z+B)-(q=L+T)),G=.5411961*R+H,Y=1.306562965*q+H,X=.707106781*($=B+L),J=T+X,K=T-X;e[h+40]=K+G,e[h+24]=K-G,e[h+8]=J+Y,e[h+56]=J-Y,h++}for(u=0;u<64;++u)d=e[u]*t[u],p[u]=d>0?d+.5|0:d-.5|0;return p}(e,t),c=0;c<64;++c)f[P[c]]=l[c];var u=f[0]-n;n=f[0],0==u?D(a[0]):(D(a[h[o=32767+u]]),D(d[o]));for(var v=63;v>0&&0==f[v];)v--;if(0==v)return D(r),n;for(var m,g=1;g<=v;){for(var b=g;0==f[g]&&g<=v;)++g;var y=g-b;if(y>=16){m=y>>4;for(var w=1;w<=m;++w)D(s);y&=15}o=32767+f[g],D(i[(y<<4)+h[o]]),D(d[o]),g++}return 63!=v&&D(r),n}function V(e){e=Math.min(Math.max(e,1),100),o!=e&&(function(e){for(var t=[16,11,10,16,24,40,51,61,12,12,14,19,26,58,60,55,14,13,16,24,40,57,69,56,14,17,22,29,51,87,80,62,18,22,37,56,68,109,103,77,24,35,55,64,81,104,113,92,49,64,78,87,103,121,120,101,72,92,95,98,112,100,103,99],n=0;n<64;n++){var a=r((t[n]*e+50)/100);a=Math.min(Math.max(a,1),255),s[P[n]]=a}for(var i=[17,18,24,47,99,99,99,99,18,21,26,66,99,99,99,99,24,26,56,99,99,99,99,99,47,66,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99],o=0;o<64;o++){var d=r((i[o]*e+50)/100);d=Math.min(Math.max(d,1),255),l[P[o]]=d}for(var h=[1,1.387039845,1.306562965,1.175875602,1,.785694958,.5411961,.275899379],p=0,f=0;f<8;f++)for(var v=0;v<8;v++)c[p]=1/(s[P[p]]*h[f]*h[v]*8),u[p]=1/(l[P[p]]*h[f]*h[v]*8),p++}(e<50?Math.floor(5e3/e):Math.floor(200-2*e)),o=e)}this.encode=function(e,o){o&&V(o),v=new Array,m=0,g=7,j(65496),j(65504),j(16),T(74),T(70),T(73),T(70),T(0),T(1),T(1),T(0),j(1),j(1),T(0),T(0),function(){j(65499),j(132),T(0);for(var e=0;e<64;e++)T(s[e]);T(1);for(var t=0;t<64;t++)T(l[t])}(),function(e,t){j(65472),j(17),T(8),j(t),j(e),T(3),T(1),T(17),T(0),T(2),T(17),T(1),T(3),T(17),T(1)}(e.width,e.height),function(){j(65476),j(418),T(0);for(var e=0;e<16;e++)T(N[e+1]);for(var t=0;t<=11;t++)T(I[t]);T(16);for(var n=0;n<16;n++)T(A[n+1]);for(var a=0;a<=161;a++)T(k[a]);T(1);for(var i=0;i<16;i++)T(C[i+1]);for(var o=0;o<=11;o++)T(S[o]);T(17);for(var r=0;r<16;r++)T(M[r+1]);for(var s=0;s<=161;s++)T(x[s])}(),j(65498),j(12),T(3),T(1),T(0),T(2),T(17),T(3),T(17),T(0),T(63),T(0);var r=0,d=0,h=0;m=0,g=7,this.encode.displayName="_encode_";for(var p,f,_,P,O,B,U,z,R,F=e.data,$=e.width,q=e.height,W=4*$,H=0;H<q;){for(p=0;p<W;){for(O=W*H+p,U=-1,z=0,R=0;R<64;R++)B=O+(z=R>>3)*W+(U=4*(7&R)),H+z>=q&&(B-=W*(H+1+z-q)),p+U>=W&&(B-=p+U-W+4),f=F[B++],_=F[B++],P=F[B++],b[R]=(E[f]+E[_+256|0]+E[P+512|0]>>16)-128,y[R]=(E[f+768|0]+E[_+1024|0]+E[P+1280|0]>>16)-128,w[R]=(E[f+1280|0]+E[_+1536|0]+E[P+1792|0]>>16)-128;r=L(b,c,r,t,a),d=L(y,u,d,n,i),h=L(w,u,h,n,i),p+=32}H+=8}if(g>=0){var G=[];G[1]=g+1,G[0]=(1<<g+1)-1,D(G)}return j(65497),new Uint8Array(v)},e=e||50,function(){for(var e=String.fromCharCode,t=0;t<256;t++)_[t]=e(t)}(),t=O(N,I),n=O(C,S),a=O(A,k),i=O(M,x),function(){for(var e=1,t=2,n=1;n<=15;n++){for(var a=e;a<t;a++)h[32767+a]=n,d[32767+a]=[],d[32767+a][1]=n,d[32767+a][0]=a;for(var i=-(t-1);i<=-e;i++)h[32767+i]=n,d[32767+i]=[],d[32767+i][1]=n,d[32767+i][0]=t-1+i;e<<=1,t<<=1}}(),function(){for(var e=0;e<256;e++)E[e]=19595*e,E[e+256|0]=38470*e,E[e+512|0]=7471*e+32768,E[e+768|0]=-11059*e,E[e+1024|0]=-21709*e,E[e+1280|0]=32768*e+8421375,E[e+1536|0]=-27439*e,E[e+1792|0]=-5329*e}(),V(e)}
227
+ /**
228
+ * @license
229
+ * Copyright (c) 2017 Aras Abbasi
230
+ *
231
+ * Licensed under the MIT License.
232
+ * http://opensource.org/licenses/mit-license
233
+ */function Yc(e,t){if(this.pos=0,this.buffer=e,this.datav=new DataView(e.buffer),this.is_with_alpha=!!t,this.bottom_up=!0,this.flag=String.fromCharCode(this.buffer[0])+String.fromCharCode(this.buffer[1]),this.pos+=2,-1===["BM","BA","CI","CP","IC","PT"].indexOf(this.flag))throw new Error("Invalid BMP File");this.parseHeader(),this.parseBGR()}function Xc(e){function t(e){if(!e)throw Error("assert :P")}function n(e,t,n){for(var a=0;4>a;a++)if(e[t+a]!=n.charCodeAt(a))return!0;return!1}function a(e,t,n,a,i){for(var o=0;o<i;o++)e[t+o]=n[a+o]}function i(e,t,n,a){for(var i=0;i<a;i++)e[t+i]=n}function o(e){return new Int32Array(e)}function r(e,t){for(var n=[],a=0;a<e;a++)n.push(new t);return n}function s(e,t){var n=[];return function e(n,a,i){for(var o=i[a],r=0;r<o&&(n.push(i.length>a+1?[]:new t),!(i.length<a+1));r++)e(n[r],a+1,i)}(n,0,e),n}var l=function(){var e=this;function l(e,t){for(var n=1<<t-1>>>0;e&n;)n>>>=1;return n?(e&n-1)+n:e}function c(e,n,a,i,o){t(!(i%a));do{e[n+(i-=a)]=o}while(0<i)}function u(e,n,a,i,r){if(t(2328>=r),512>=r)var s=o(512);else if(null==(s=o(r)))return 0;return function(e,n,a,i,r,s){var u,h,p=n,f=1<<a,v=o(16),m=o(16);for(t(0!=r),t(null!=i),t(null!=e),t(0<a),h=0;h<r;++h){if(15<i[h])return 0;++v[i[h]]}if(v[0]==r)return 0;for(m[1]=0,u=1;15>u;++u){if(v[u]>1<<u)return 0;m[u+1]=m[u]+v[u]}for(h=0;h<r;++h)u=i[h],0<i[h]&&(s[m[u]++]=h);if(1==m[15])return(i=new d).g=0,i.value=s[0],c(e,p,1,f,i),f;var g,b=-1,y=f-1,w=0,_=1,E=1,P=1<<a;for(h=0,u=1,r=2;u<=a;++u,r<<=1){if(_+=E<<=1,0>(E-=v[u]))return 0;for(;0<v[u];--v[u])(i=new d).g=u,i.value=s[h++],c(e,p+w,r,P,i),w=l(w,u)}for(u=a+1,r=2;15>=u;++u,r<<=1){if(_+=E<<=1,0>(E-=v[u]))return 0;for(;0<v[u];--v[u]){if(i=new d,(w&y)!=b){for(p+=P,g=1<<(b=u)-a;15>b&&!(0>=(g-=v[b]));)++b,g<<=1;f+=P=1<<(g=b-a),e[n+(b=w&y)].g=g+a,e[n+b].value=p-n-b}i.g=u-a,i.value=s[h++],c(e,p+(w>>a),r,P,i),w=l(w,u)}}return _!=2*m[15]-1?0:f}(e,n,a,i,r,s)}function d(){this.value=this.g=0}function h(){this.value=this.g=0}function p(){this.G=r(5,d),this.H=o(5),this.jc=this.Qb=this.qb=this.nd=0,this.pd=r(Un,h)}function f(e,n,a,i){t(null!=e),t(null!=n),t(2147483648>i),e.Ca=254,e.I=0,e.b=-8,e.Ka=0,e.oa=n,e.pa=a,e.Jd=n,e.Yc=a+i,e.Zc=4<=i?a+i-4+1:a,A(e)}function v(e,t){for(var n=0;0<t--;)n|=C(e,128)<<t;return n}function m(e,t){var n=v(e,t);return k(e)?-n:n}function g(e,n,a,i){var o,r=0;for(t(null!=e),t(null!=n),t(4294967288>i),e.Sb=i,e.Ra=0,e.u=0,e.h=0,4<i&&(i=4),o=0;o<i;++o)r+=n[a+o]<<8*o;e.Ra=r,e.bb=i,e.oa=n,e.pa=a}function b(e){for(;8<=e.u&&e.bb<e.Sb;)e.Ra>>>=8,e.Ra+=e.oa[e.pa+e.bb]<<Fn-8>>>0,++e.bb,e.u-=8;P(e)&&(e.h=1,e.u=0)}function y(e,n){if(t(0<=n),!e.h&&n<=Rn){var a=E(e)&zn[n];return e.u+=n,b(e),a}return e.h=1,e.u=0}function w(){this.b=this.Ca=this.I=0,this.oa=[],this.pa=0,this.Jd=[],this.Yc=0,this.Zc=[],this.Ka=0}function _(){this.Ra=0,this.oa=[],this.h=this.u=this.bb=this.Sb=this.pa=0}function E(e){return e.Ra>>>(e.u&Fn-1)>>>0}function P(e){return t(e.bb<=e.Sb),e.h||e.bb==e.Sb&&e.u>Fn}function N(e,t){e.u=t,e.h=P(e)}function I(e){e.u>=$n&&(t(e.u>=$n),b(e))}function A(e){t(null!=e&&null!=e.oa),e.pa<e.Zc?(e.I=(e.oa[e.pa++]|e.I<<8)>>>0,e.b+=8):(t(null!=e&&null!=e.oa),e.pa<e.Yc?(e.b+=8,e.I=e.oa[e.pa++]|e.I<<8):e.Ka?e.b=0:(e.I<<=8,e.b+=8,e.Ka=1))}function k(e){return v(e,1)}function C(e,t){var n=e.Ca;0>e.b&&A(e);var a=e.b,i=n*t>>>8,o=(e.I>>>a>i)+0;for(o?(n-=i,e.I-=i+1<<a>>>0):n=i+1,a=n,i=0;256<=a;)i+=8,a>>=8;return a=7^i+qn[a],e.b-=a,e.Ca=(n<<a)-1,o}function S(e,t,n){e[t+0]=n>>24&255,e[t+1]=n>>16&255,e[t+2]=n>>8&255,e[t+3]=255&n}function M(e,t){return e[t+0]|e[t+1]<<8}function x(e,t){return M(e,t)|e[t+2]<<16}function O(e,t){return M(e,t)|M(e,t+2)<<16}function D(e,n){var a=1<<n;return t(null!=e),t(0<n),e.X=o(a),null==e.X?0:(e.Mb=32-n,e.Xa=n,1)}function T(e,n){t(null!=e),t(null!=n),t(e.Xa==n.Xa),a(n.X,0,e.X,0,1<<n.Xa)}function j(){this.X=[],this.Xa=this.Mb=0}function L(e,n,a,i){t(null!=a),t(null!=i);var o=a[0],r=i[0];return 0==o&&(o=(e*r+n/2)/n),0==r&&(r=(n*o+e/2)/e),0>=o||0>=r?0:(a[0]=o,i[0]=r,1)}function V(e,t){return e+(1<<t)-1>>>t}function B(e,t){return((4278255360&e)+(4278255360&t)>>>0&4278255360)+((16711935&e)+(16711935&t)>>>0&16711935)>>>0}function U(t,n){e[n]=function(n,a,i,o,r,s,l){var c;for(c=0;c<r;++c){var u=e[t](s[l+c-1],i,o+c);s[l+c]=B(n[a+c],u)}}}function z(){this.ud=this.hd=this.jd=0}function R(e,t){return((4278124286&(e^t))>>>1)+(e&t)>>>0}function F(e){return 0<=e&&256>e?e:0>e?0:255<e?255:void 0}function $(e,t){return F(e+(e-t+.5>>1))}function q(e,t,n){return Math.abs(t-n)-Math.abs(e-n)}function W(e,t,n,a,i,o,r){for(a=o[r-1],n=0;n<i;++n)o[r+n]=a=B(e[t+n],a)}function H(e,t,n,a,i){var o;for(o=0;o<n;++o){var r=e[t+o],s=r>>8&255,l=16711935&(l=(l=16711935&r)+((s<<16)+s));a[i+o]=(4278255360&r)+l>>>0}}function G(e,t){t.jd=255&e,t.hd=e>>8&255,t.ud=e>>16&255}function Y(e,t,n,a,i,o){var r;for(r=0;r<a;++r){var s=t[n+r],l=s>>>8,c=s,u=255&(u=(u=s>>>16)+((e.jd<<24>>24)*(l<<24>>24)>>>5));c=255&(c=(c+=(e.hd<<24>>24)*(l<<24>>24)>>>5)+((e.ud<<24>>24)*(u<<24>>24)>>>5)),i[o+r]=(4278255360&s)+(u<<16)+c}}function X(t,n,a,i,o){e[n]=function(e,t,n,a,r,s,l,c,u){for(a=l;a<c;++a)for(l=0;l<u;++l)r[s++]=o(n[i(e[t++])])},e[t]=function(t,n,r,s,l,c,u){var d=8>>t.b,h=t.Ea,p=t.K[0],f=t.w;if(8>d)for(t=(1<<t.b)-1,f=(1<<d)-1;n<r;++n){var v,m=0;for(v=0;v<h;++v)v&t||(m=i(s[l++])),c[u++]=o(p[m&f]),m>>=d}else e["VP8LMapColor"+a](s,l,p,f,c,u,n,r,h)}}function J(e,t,n,a,i){for(n=t+n;t<n;){var o=e[t++];a[i++]=o>>16&255,a[i++]=o>>8&255,a[i++]=255&o}}function K(e,t,n,a,i){for(n=t+n;t<n;){var o=e[t++];a[i++]=o>>16&255,a[i++]=o>>8&255,a[i++]=255&o,a[i++]=o>>24&255}}function Q(e,t,n,a,i){for(n=t+n;t<n;){var o=(r=e[t++])>>16&240|r>>12&15,r=240&r|r>>28&15;a[i++]=o,a[i++]=r}}function Z(e,t,n,a,i){for(n=t+n;t<n;){var o=(r=e[t++])>>16&248|r>>13&7,r=r>>5&224|r>>3&31;a[i++]=o,a[i++]=r}}function ee(e,t,n,a,i){for(n=t+n;t<n;){var o=e[t++];a[i++]=255&o,a[i++]=o>>8&255,a[i++]=o>>16&255}}function te(e,t,n,i,o,r){if(0==r)for(n=t+n;t<n;)S(i,((r=e[t++])[0]>>24|r[1]>>8&65280|r[2]<<8&16711680|r[3]<<24)>>>0),o+=32;else a(i,o,e,t,n)}function ne(t,n){e[n][0]=e[t+"0"],e[n][1]=e[t+"1"],e[n][2]=e[t+"2"],e[n][3]=e[t+"3"],e[n][4]=e[t+"4"],e[n][5]=e[t+"5"],e[n][6]=e[t+"6"],e[n][7]=e[t+"7"],e[n][8]=e[t+"8"],e[n][9]=e[t+"9"],e[n][10]=e[t+"10"],e[n][11]=e[t+"11"],e[n][12]=e[t+"12"],e[n][13]=e[t+"13"],e[n][14]=e[t+"0"],e[n][15]=e[t+"0"]}function ae(e){return e==$a||e==qa||e==Wa||e==Ha}function ie(){this.eb=[],this.size=this.A=this.fb=0}function oe(){this.y=[],this.f=[],this.ea=[],this.F=[],this.Tc=this.Ed=this.Cd=this.Fd=this.lb=this.Db=this.Ab=this.fa=this.J=this.W=this.N=this.O=0}function re(){this.Rd=this.height=this.width=this.S=0,this.f={},this.f.RGBA=new ie,this.f.kb=new oe,this.sd=null}function se(){this.width=[0],this.height=[0],this.Pd=[0],this.Qd=[0],this.format=[0]}function le(){this.Id=this.fd=this.Md=this.hb=this.ib=this.da=this.bd=this.cd=this.j=this.v=this.Da=this.Sd=this.ob=0}function ce(e){return alert("todo:WebPSamplerProcessPlane"),e.T}function ue(e,t){var n=e.T,i=t.ba.f.RGBA,o=i.eb,r=i.fb+e.ka*i.A,s=gi[t.ba.S],l=e.y,c=e.O,u=e.f,d=e.N,h=e.ea,p=e.W,f=t.cc,v=t.dc,m=t.Mc,g=t.Nc,b=e.ka,y=e.ka+e.T,w=e.U,_=w+1>>1;for(0==b?s(l,c,null,null,u,d,h,p,u,d,h,p,o,r,null,null,w):(s(t.ec,t.fc,l,c,f,v,m,g,u,d,h,p,o,r-i.A,o,r,w),++n);b+2<y;b+=2)f=u,v=d,m=h,g=p,d+=e.Rc,p+=e.Rc,r+=2*i.A,s(l,(c+=2*e.fa)-e.fa,l,c,f,v,m,g,u,d,h,p,o,r-i.A,o,r,w);return c+=e.fa,e.j+y<e.o?(a(t.ec,t.fc,l,c,w),a(t.cc,t.dc,u,d,_),a(t.Mc,t.Nc,h,p,_),n--):1&y||s(l,c,null,null,u,d,h,p,u,d,h,p,o,r+i.A,null,null,w),n}function de(e,n,a){var i=e.F,o=[e.J];if(null!=i){var r=e.U,s=n.ba.S,l=s==za||s==Wa;n=n.ba.f.RGBA;var c=[0],u=e.ka;c[0]=e.T,e.Kb&&(0==u?--c[0]:(--u,o[0]-=e.width),e.j+e.ka+e.T==e.o&&(c[0]=e.o-e.j-u));var d=n.eb;u=n.fb+u*n.A,e=Ia(i,o[0],e.width,r,c,d,u+(l?0:3),n.A),t(a==c),e&&ae(s)&&Pa(d,u,l,r,c,n.A)}return 0}function he(e){var t=e.ma,n=t.ba.S,a=11>n,i=n==Va||n==Ua||n==za||n==Ra||12==n||ae(n);if(t.memory=null,t.Ib=null,t.Jb=null,t.Nd=null,!Ln(t.Oa,e,i?11:12))return 0;if(i&&ae(n)&&yn(),e.da)alert("todo:use_scaling");else{if(a){if(t.Ib=ce,e.Kb){if(n=e.U+1>>1,t.memory=o(e.U+2*n),null==t.memory)return 0;t.ec=t.memory,t.fc=0,t.cc=t.ec,t.dc=t.fc+e.U,t.Mc=t.cc,t.Nc=t.dc+n,t.Ib=ue,yn()}}else alert("todo:EmitYUV");i&&(t.Jb=de,a&&gn())}if(a&&!Mi){for(e=0;256>e;++e)xi[e]=89858*(e-128)+Ai>>Ii,Ti[e]=-22014*(e-128)+Ai,Di[e]=-45773*(e-128),Oi[e]=113618*(e-128)+Ai>>Ii;for(e=ki;e<Ci;++e)t=76283*(e-16)+Ai>>Ii,ji[e-ki]=We(t,255),Li[e-ki]=We(t+8>>4,15);Mi=1}return 1}function pe(e){var n=e.ma,a=e.U,i=e.T;return t(!(1&e.ka)),0>=a||0>=i?0:(a=n.Ib(e,n),null!=n.Jb&&n.Jb(e,n,a),n.Dc+=a,1)}function fe(e){e.ma.memory=null}function ve(e,t,n,a){return 47!=y(e,8)?0:(t[0]=y(e,14)+1,n[0]=y(e,14)+1,a[0]=y(e,1),0!=y(e,3)?0:!e.h)}function me(e,t){if(4>e)return e+1;var n=e-2>>1;return(2+(1&e)<<n)+y(t,n)+1}function ge(e,t){return 120<t?t-120:1<=(n=((n=Qa[t-1])>>4)*e+(8-(15&n)))?n:1;var n}function be(e,t,n){var a=E(n),i=e[t+=255&a].g-8;return 0<i&&(N(n,n.u+8),a=E(n),t+=e[t].value,t+=a&(1<<i)-1),N(n,n.u+e[t].g),e[t].value}function ye(e,n,a){return a.g+=e.g,a.value+=e.value<<n>>>0,t(8>=a.g),e.g}function we(e,n,a){var i=e.xc;return t((n=0==i?0:e.vc[e.md*(a>>i)+(n>>i)])<e.Wb),e.Ya[n]}function _e(e,n,i,o){var r=e.ab,s=e.c*n,l=e.C;n=l+n;var c=i,u=o;for(o=e.Ta,i=e.Ua;0<r--;){var d=e.gc[r],h=l,p=n,f=c,v=u,m=(u=o,c=i,d.Ea);switch(t(h<p),t(p<=d.nc),d.hc){case 2:Gn(f,v,(p-h)*m,u,c);break;case 0:var g=h,b=p,y=u,w=c,_=(A=d).Ea;0==g&&(Wn(f,v,null,null,1,y,w),W(f,v+1,0,0,_-1,y,w+1),v+=_,w+=_,++g);for(var E=1<<A.b,P=E-1,N=V(_,A.b),I=A.K,A=A.w+(g>>A.b)*N;g<b;){var k=I,C=A,S=1;for(Hn(f,v,y,w-_,1,y,w);S<_;){var M=(S&~P)+E;M>_&&(M=_),(0,Qn[k[C++]>>8&15])(f,v+ +S,y,w+S-_,M-S,y,w+S),S=M}v+=_,w+=_,++g&P||(A+=N)}p!=d.nc&&a(u,c-m,u,c+(p-h-1)*m,m);break;case 1:for(m=f,b=v,_=(f=d.Ea)-(w=f&~(y=(v=1<<d.b)-1)),g=V(f,d.b),E=d.K,d=d.w+(h>>d.b)*g;h<p;){for(P=E,N=d,I=new z,A=b+w,k=b+f;b<A;)G(P[N++],I),Zn(I,m,b,v,u,c),b+=v,c+=v;b<k&&(G(P[N++],I),Zn(I,m,b,_,u,c),b+=_,c+=_),++h&y||(d+=g)}break;case 3:if(f==u&&v==c&&0<d.b){for(b=u,f=m=c+(p-h)*m-(w=(p-h)*V(d.Ea,d.b)),v=u,y=c,g=[],w=(_=w)-1;0<=w;--w)g[w]=v[y+w];for(w=_-1;0<=w;--w)b[f+w]=g[w];Yn(d,h,p,u,m,u,c)}else Yn(d,h,p,f,v,u,c)}c=o,u=i}u!=i&&a(o,i,c,u,s)}function Ee(e,n){var a=e.V,i=e.Ba+e.c*e.C,o=n-e.C;if(t(n<=e.l.o),t(16>=o),0<o){var r=e.l,s=e.Ta,l=e.Ua,c=r.width;if(_e(e,o,a,i),o=l=[l],t((a=e.C)<(i=n)),t(r.v<r.va),i>r.o&&(i=r.o),a<r.j){var u=r.j-a;a=r.j,o[0]+=u*c}if(a>=i?a=0:(o[0]+=4*r.v,r.ka=a-r.j,r.U=r.va-r.v,r.T=i-a,a=1),a){if(l=l[0],11>(a=e.ca).S){var d=a.f.RGBA,h=(i=a.S,o=r.U,r=r.T,u=d.eb,d.A),p=r;for(d=d.fb+e.Ma*d.A;0<p--;){var f=s,v=l,m=o,g=u,b=d;switch(i){case La:ea(f,v,m,g,b);break;case Va:ta(f,v,m,g,b);break;case $a:ta(f,v,m,g,b),Pa(g,b,0,m,1,0);break;case Ba:ia(f,v,m,g,b);break;case Ua:te(f,v,m,g,b,1);break;case qa:te(f,v,m,g,b,1),Pa(g,b,0,m,1,0);break;case za:te(f,v,m,g,b,0);break;case Wa:te(f,v,m,g,b,0),Pa(g,b,1,m,1,0);break;case Ra:na(f,v,m,g,b);break;case Ha:na(f,v,m,g,b),Na(g,b,m,1,0);break;case Fa:aa(f,v,m,g,b);break;default:t(0)}l+=c,d+=h}e.Ma+=r}else alert("todo:EmitRescaledRowsYUVA");t(e.Ma<=a.height)}}e.C=n,t(e.C<=e.i)}function Pe(e){var t;if(0<e.ua)return 0;for(t=0;t<e.Wb;++t){var n=e.Ya[t].G,a=e.Ya[t].H;if(0<n[1][a[1]+0].g||0<n[2][a[2]+0].g||0<n[3][a[3]+0].g)return 0}return 1}function Ne(e,n,a,i,o,r){if(0!=e.Z){var s=e.qd,l=e.rd;for(t(null!=mi[e.Z]);n<a;++n)mi[e.Z](s,l,i,o,i,o,r),s=i,l=o,o+=r;e.qd=s,e.rd=l}}function Ie(e,n){var a=e.l.ma,i=0==a.Z||1==a.Z?e.l.j:e.C;if(i=e.C<i?i:e.C,t(n<=e.l.o),n>i){var o=e.l.width,r=a.ca,s=a.tb+o*i,l=e.V,c=e.Ba+e.c*i,u=e.gc;t(1==e.ab),t(3==u[0].hc),Jn(u[0],i,n,l,c,r,s),Ne(a,i,n,r,s,o)}e.C=e.Ma=n}function Ae(e,n,a,i,o,r,s){var l=e.$/i,c=e.$%i,u=e.m,d=e.s,h=a+e.$,p=h;o=a+i*o;var f=a+i*r,v=280+d.ua,m=e.Pb?l:16777216,g=0<d.ua?d.Wa:null,b=d.wc,y=h<f?we(d,c,l):null;t(e.C<r),t(f<=o);var w=!1;e:for(;;){for(;w||h<f;){var _=0;if(l>=m){var A=h-a;t((m=e).Pb),m.wd=m.m,m.xd=A,0<m.s.ua&&T(m.s.Wa,m.s.vb),m=l+ei}if(c&b||(y=we(d,c,l)),t(null!=y),y.Qb&&(n[h]=y.qb,w=!0),!w)if(I(u),y.jc){_=u,A=n;var k=h,C=y.pd[E(_)&Un-1];t(y.jc),256>C.g?(N(_,_.u+C.g),A[k]=C.value,_=0):(N(_,_.u+C.g-256),t(256<=C.value),_=C.value),0==_&&(w=!0)}else _=be(y.G[0],y.H[0],u);if(u.h)break;if(w||256>_){if(!w)if(y.nd)n[h]=(y.qb|_<<8)>>>0;else{if(I(u),w=be(y.G[1],y.H[1],u),I(u),A=be(y.G[2],y.H[2],u),k=be(y.G[3],y.H[3],u),u.h)break;n[h]=(k<<24|w<<16|_<<8|A)>>>0}if(w=!1,++h,++c>=i&&(c=0,++l,null!=s&&l<=r&&!(l%16)&&s(e,l),null!=g))for(;p<h;)_=n[p++],g.X[(506832829*_&4294967295)>>>g.Mb]=_}else if(280>_){if(_=me(_-256,u),A=be(y.G[4],y.H[4],u),I(u),A=ge(i,A=me(A,u)),u.h)break;if(h-a<A||o-h<_)break e;for(k=0;k<_;++k)n[h+k]=n[h+k-A];for(h+=_,c+=_;c>=i;)c-=i,++l,null!=s&&l<=r&&!(l%16)&&s(e,l);if(t(h<=o),c&b&&(y=we(d,c,l)),null!=g)for(;p<h;)_=n[p++],g.X[(506832829*_&4294967295)>>>g.Mb]=_}else{if(!(_<v))break e;for(w=_-280,t(null!=g);p<h;)_=n[p++],g.X[(506832829*_&4294967295)>>>g.Mb]=_;_=h,t(!(w>>>(A=g).Xa)),n[_]=A.X[w],w=!0}w||t(u.h==P(u))}if(e.Pb&&u.h&&h<o)t(e.m.h),e.a=5,e.m=e.wd,e.$=e.xd,0<e.s.ua&&T(e.s.vb,e.s.Wa);else{if(u.h)break e;null!=s&&s(e,l>r?r:l),e.a=0,e.$=h-a}return 1}return e.a=3,0}function ke(e){t(null!=e),e.vc=null,e.yc=null,e.Ya=null;var n=e.Wa;null!=n&&(n.X=null),e.vb=null,t(null!=e)}function Ce(){var t=new sn;return null==t?null:(t.a=0,t.xb=vi,ne("Predictor","VP8LPredictors"),ne("Predictor","VP8LPredictors_C"),ne("PredictorAdd","VP8LPredictorsAdd"),ne("PredictorAdd","VP8LPredictorsAdd_C"),Gn=H,Zn=Y,ea=J,ta=K,na=Q,aa=Z,ia=ee,e.VP8LMapColor32b=Xn,e.VP8LMapColor8b=Kn,t)}function Se(e,n,a,s,l){var c=1,h=[e],f=[n],v=s.m,m=s.s,g=null,b=0;e:for(;;){if(a)for(;c&&y(v,1);){var w=h,_=f,P=s,A=1,k=P.m,C=P.gc[P.ab],S=y(k,2);if(P.Oc&1<<S)c=0;else{switch(P.Oc|=1<<S,C.hc=S,C.Ea=w[0],C.nc=_[0],C.K=[null],++P.ab,t(4>=P.ab),S){case 0:case 1:C.b=y(k,3)+2,A=Se(V(C.Ea,C.b),V(C.nc,C.b),0,P,C.K),C.K=C.K[0];break;case 3:var M,x=y(k,8)+1,O=16<x?0:4<x?1:2<x?2:3;if(w[0]=V(C.Ea,O),C.b=O,M=A=Se(x,1,0,P,C.K)){var T,j=x,L=C,U=1<<(8>>L.b),z=o(U);if(null==z)M=0;else{var R=L.K[0],F=L.w;for(z[0]=L.K[0][0],T=1;T<1*j;++T)z[T]=B(R[F+T],z[T-1]);for(;T<4*U;++T)z[T]=0;L.K[0]=null,L.K[0]=z,M=1}}A=M;break;case 2:break;default:t(0)}c=A}}if(h=h[0],f=f[0],c&&y(v,1)&&!(c=1<=(b=y(v,4))&&11>=b)){s.a=3;break e}var $;if($=c)t:{var q,W,H,G=s,Y=h,X=f,J=b,K=a,Q=G.m,Z=G.s,ee=[null],te=1,ne=0,ae=Za[J];n:for(;;){if(K&&y(Q,1)){var ie=y(Q,3)+2,oe=V(Y,ie),re=V(X,ie),se=oe*re;if(!Se(oe,re,0,G,ee))break n;for(ee=ee[0],Z.xc=ie,q=0;q<se;++q){var le=ee[q]>>8&65535;ee[q]=le,le>=te&&(te=le+1)}}if(Q.h)break n;for(W=0;5>W;++W){var ce=Xa[W];!W&&0<J&&(ce+=1<<J),ne<ce&&(ne=ce)}var ue=r(te*ae,d),de=te,he=r(de,p);if(null==he)var pe=null;else t(65536>=de),pe=he;var fe=o(ne);if(null==pe||null==fe||null==ue){G.a=1;break n}var ve=ue;for(q=H=0;q<te;++q){var me=pe[q],ge=me.G,be=me.H,we=0,_e=1,Ee=0;for(W=0;5>W;++W){ce=Xa[W],ge[W]=ve,be[W]=H,!W&&0<J&&(ce+=1<<J);a:{var Pe,Ne=ce,Ie=G,Ce=fe,Me=ve,xe=H,Oe=0,De=Ie.m,Te=y(De,1);if(i(Ce,0,0,Ne),Te){var je=y(De,1)+1,Le=y(De,1),Ve=y(De,0==Le?1:8);Ce[Ve]=1,2==je&&(Ce[Ve=y(De,8)]=1);var Be=1}else{var Ue=o(19),ze=y(De,4)+4;if(19<ze){Ie.a=3;var Re=0;break a}for(Pe=0;Pe<ze;++Pe)Ue[Ka[Pe]]=y(De,3);var Fe=void 0,$e=void 0,qe=Ie,We=Ue,He=Ne,Ge=Ce,Ye=0,Xe=qe.m,Je=8,Ke=r(128,d);i:for(;u(Ke,0,7,We,19);){if(y(Xe,1)){var Qe=2+2*y(Xe,3);if((Fe=2+y(Xe,Qe))>He)break i}else Fe=He;for($e=0;$e<He&&Fe--;){I(Xe);var Ze=Ke[0+(127&E(Xe))];N(Xe,Xe.u+Ze.g);var et=Ze.value;if(16>et)Ge[$e++]=et,0!=et&&(Je=et);else{var tt=16==et,nt=et-16,at=Ya[nt],it=y(Xe,Ga[nt])+at;if($e+it>He)break i;for(var ot=tt?Je:0;0<it--;)Ge[$e++]=ot}}Ye=1;break i}Ye||(qe.a=3),Be=Ye}(Be=Be&&!De.h)&&(Oe=u(Me,xe,8,Ce,Ne)),Be&&0!=Oe?Re=Oe:(Ie.a=3,Re=0)}if(0==Re)break n;if(_e&&1==Ja[W]&&(_e=0==ve[H].g),we+=ve[H].g,H+=Re,3>=W){var rt,st=fe[0];for(rt=1;rt<ce;++rt)fe[rt]>st&&(st=fe[rt]);Ee+=st}}if(me.nd=_e,me.Qb=0,_e&&(me.qb=(ge[3][be[3]+0].value<<24|ge[1][be[1]+0].value<<16|ge[2][be[2]+0].value)>>>0,0==we&&256>ge[0][be[0]+0].value&&(me.Qb=1,me.qb+=ge[0][be[0]+0].value<<8)),me.jc=!me.Qb&&6>Ee,me.jc){var lt,ct=me;for(lt=0;lt<Un;++lt){var ut=lt,dt=ct.pd[ut],ht=ct.G[0][ct.H[0]+ut];256<=ht.value?(dt.g=ht.g+256,dt.value=ht.value):(dt.g=0,dt.value=0,ut>>=ye(ht,8,dt),ut>>=ye(ct.G[1][ct.H[1]+ut],16,dt),ut>>=ye(ct.G[2][ct.H[2]+ut],0,dt),ye(ct.G[3][ct.H[3]+ut],24,dt))}}}Z.vc=ee,Z.Wb=te,Z.Ya=pe,Z.yc=ue,$=1;break t}$=0}if(!(c=$)){s.a=3;break e}if(0<b){if(m.ua=1<<b,!D(m.Wa,b)){s.a=1,c=0;break e}}else m.ua=0;var pt=s,ft=h,vt=f,mt=pt.s,gt=mt.xc;if(pt.c=ft,pt.i=vt,mt.md=V(ft,gt),mt.wc=0==gt?-1:(1<<gt)-1,a){s.xb=fi;break e}if(null==(g=o(h*f))){s.a=1,c=0;break e}c=(c=Ae(s,g,0,h,f,f,null))&&!v.h;break e}return c?(null!=l?l[0]=g:(t(null==g),t(a)),s.$=0,a||ke(m)):ke(m),c}function Me(e,n){var a=e.c*e.i,i=a+n+16*n;return t(e.c<=n),e.V=o(i),null==e.V?(e.Ta=null,e.Ua=0,e.a=1,0):(e.Ta=e.V,e.Ua=e.Ba+a+n,1)}function xe(e,n){var a=e.C,i=n-a,o=e.V,r=e.Ba+e.c*a;for(t(n<=e.l.o);0<i;){var s=16<i?16:i,l=e.l.ma,c=e.l.width,u=c*s,d=l.ca,h=l.tb+c*a,p=e.Ta,f=e.Ua;_e(e,s,o,r),Aa(p,f,d,h,u),Ne(l,a,a+s,d,h,c),i-=s,o+=s*e.c,a+=s}t(a==n),e.C=e.Ma=n}function Oe(){this.ub=this.yd=this.td=this.Rb=0}function De(){this.Kd=this.Ld=this.Ud=this.Td=this.i=this.c=0}function Te(){this.Fb=this.Bb=this.Cb=0,this.Zb=o(4),this.Lb=o(4)}function je(){this.Yb=function(){var e=[];return function e(t,n,a){for(var i=a[n],o=0;o<i&&(t.push(a.length>n+1?[]:0),!(a.length<n+1));o++)e(t[o],n+1,a)}(e,0,[3,11]),e}()}function Le(){this.jb=o(3),this.Wc=s([4,8],je),this.Xc=s([4,17],je)}function Ve(){this.Pc=this.wb=this.Tb=this.zd=0,this.vd=new o(4),this.od=new o(4)}function Be(){this.ld=this.La=this.dd=this.tc=0}function Ue(){this.Na=this.la=0}function ze(){this.Sc=[0,0],this.Eb=[0,0],this.Qc=[0,0],this.ia=this.lc=0}function Re(){this.ad=o(384),this.Za=0,this.Ob=o(16),this.$b=this.Ad=this.ia=this.Gc=this.Hc=this.Dd=0}function Fe(){this.uc=this.M=this.Nb=0,this.wa=Array(new Be),this.Y=0,this.ya=Array(new Re),this.aa=0,this.l=new He}function $e(){this.y=o(16),this.f=o(8),this.ea=o(8)}function qe(){this.cb=this.a=0,this.sc="",this.m=new w,this.Od=new Oe,this.Kc=new De,this.ed=new Ve,this.Qa=new Te,this.Ic=this.$c=this.Aa=0,this.D=new Fe,this.Xb=this.Va=this.Hb=this.zb=this.yb=this.Ub=this.za=0,this.Jc=r(8,w),this.ia=0,this.pb=r(4,ze),this.Pa=new Le,this.Bd=this.kc=0,this.Ac=[],this.Bc=0,this.zc=[0,0,0,0],this.Gd=Array(new $e),this.Hd=0,this.rb=Array(new Ue),this.sb=0,this.wa=Array(new Be),this.Y=0,this.oc=[],this.pc=0,this.sa=[],this.ta=0,this.qa=[],this.ra=0,this.Ha=[],this.B=this.R=this.Ia=0,this.Ec=[],this.M=this.ja=this.Vb=this.Fc=0,this.ya=Array(new Re),this.L=this.aa=0,this.gd=s([4,2],Be),this.ga=null,this.Fa=[],this.Cc=this.qc=this.P=0,this.Gb=[],this.Uc=0,this.mb=[],this.nb=0,this.rc=[],this.Ga=this.Vc=0}function We(e,t){return 0>e?0:e>t?t:e}function He(){this.T=this.U=this.ka=this.height=this.width=0,this.y=[],this.f=[],this.ea=[],this.Rc=this.fa=this.W=this.N=this.O=0,this.ma="void",this.put="VP8IoPutHook",this.ac="VP8IoSetupHook",this.bc="VP8IoTeardownHook",this.ha=this.Kb=0,this.data=[],this.hb=this.ib=this.da=this.o=this.j=this.va=this.v=this.Da=this.ob=this.w=0,this.F=[],this.J=0}function Ge(){var e=new qe;return null!=e&&(e.a=0,e.sc="OK",e.cb=0,e.Xb=0,ai||(ai=Ke)),e}function Ye(e,t,n){return 0==e.a&&(e.a=t,e.sc=n,e.cb=0),0}function Xe(e,t,n){return 3<=n&&157==e[t+0]&&1==e[t+1]&&42==e[t+2]}function Je(e,n){if(null==e)return 0;if(e.a=0,e.sc="OK",null==n)return Ye(e,2,"null VP8Io passed to VP8GetHeaders()");var a=n.data,o=n.w,r=n.ha;if(4>r)return Ye(e,7,"Truncated header.");var s=a[o+0]|a[o+1]<<8|a[o+2]<<16,l=e.Od;if(l.Rb=!(1&s),l.td=s>>1&7,l.yd=s>>4&1,l.ub=s>>5,3<l.td)return Ye(e,3,"Incorrect keyframe parameters.");if(!l.yd)return Ye(e,4,"Frame not displayable.");o+=3,r-=3;var c=e.Kc;if(l.Rb){if(7>r)return Ye(e,7,"cannot parse picture header");if(!Xe(a,o,r))return Ye(e,3,"Bad code word");c.c=16383&(a[o+4]<<8|a[o+3]),c.Td=a[o+4]>>6,c.i=16383&(a[o+6]<<8|a[o+5]),c.Ud=a[o+6]>>6,o+=7,r-=7,e.za=c.c+15>>4,e.Ub=c.i+15>>4,n.width=c.c,n.height=c.i,n.Da=0,n.j=0,n.v=0,n.va=n.width,n.o=n.height,n.da=0,n.ib=n.width,n.hb=n.height,n.U=n.width,n.T=n.height,i((s=e.Pa).jb,0,255,s.jb.length),t(null!=(s=e.Qa)),s.Cb=0,s.Bb=0,s.Fb=1,i(s.Zb,0,0,s.Zb.length),i(s.Lb,0,0,s.Lb)}if(l.ub>r)return Ye(e,7,"bad partition length");f(s=e.m,a,o,l.ub),o+=l.ub,r-=l.ub,l.Rb&&(c.Ld=k(s),c.Kd=k(s)),c=e.Qa;var u,d=e.Pa;if(t(null!=s),t(null!=c),c.Cb=k(s),c.Cb){if(c.Bb=k(s),k(s)){for(c.Fb=k(s),u=0;4>u;++u)c.Zb[u]=k(s)?m(s,7):0;for(u=0;4>u;++u)c.Lb[u]=k(s)?m(s,6):0}if(c.Bb)for(u=0;3>u;++u)d.jb[u]=k(s)?v(s,8):255}else c.Bb=0;if(s.Ka)return Ye(e,3,"cannot parse segment header");if((c=e.ed).zd=k(s),c.Tb=v(s,6),c.wb=v(s,3),c.Pc=k(s),c.Pc&&k(s)){for(d=0;4>d;++d)k(s)&&(c.vd[d]=m(s,6));for(d=0;4>d;++d)k(s)&&(c.od[d]=m(s,6))}if(e.L=0==c.Tb?0:c.zd?1:2,s.Ka)return Ye(e,3,"cannot parse filter header");var h=r;if(r=u=o,o=u+h,c=h,e.Xb=(1<<v(e.m,2))-1,h<3*(d=e.Xb))a=7;else{for(u+=3*d,c-=3*d,h=0;h<d;++h){var p=a[r+0]|a[r+1]<<8|a[r+2]<<16;p>c&&(p=c),f(e.Jc[+h],a,u,p),u+=p,c-=p,r+=3}f(e.Jc[+d],a,u,c),a=u<o?0:5}if(0!=a)return Ye(e,a,"cannot parse partitions");for(a=v(u=e.m,7),r=k(u)?m(u,4):0,o=k(u)?m(u,4):0,c=k(u)?m(u,4):0,d=k(u)?m(u,4):0,u=k(u)?m(u,4):0,h=e.Qa,p=0;4>p;++p){if(h.Cb){var g=h.Zb[p];h.Fb||(g+=a)}else{if(0<p){e.pb[p]=e.pb[0];continue}g=a}var b=e.pb[p];b.Sc[0]=ti[We(g+r,127)],b.Sc[1]=ni[We(g+0,127)],b.Eb[0]=2*ti[We(g+o,127)],b.Eb[1]=101581*ni[We(g+c,127)]>>16,8>b.Eb[1]&&(b.Eb[1]=8),b.Qc[0]=ti[We(g+d,117)],b.Qc[1]=ni[We(g+u,127)],b.lc=g+u}if(!l.Rb)return Ye(e,4,"Not a key frame.");for(k(s),l=e.Pa,a=0;4>a;++a){for(r=0;8>r;++r)for(o=0;3>o;++o)for(c=0;11>c;++c)d=C(s,ci[a][r][o][c])?v(s,8):si[a][r][o][c],l.Wc[a][r].Yb[o][c]=d;for(r=0;17>r;++r)l.Xc[a][r]=l.Wc[a][ui[r]]}return e.kc=k(s),e.kc&&(e.Bd=v(s,8)),e.cb=1}function Ke(e,t,n,a,i,o,r){var s=t[i].Yb[n];for(n=0;16>i;++i){if(!C(e,s[n+0]))return i;for(;!C(e,s[n+1]);)if(s=t[++i].Yb[0],n=0,16==i)return 16;var l=t[i+1].Yb;if(C(e,s[n+2])){var c=e,u=0;if(C(c,(h=s)[(d=n)+3]))if(C(c,h[d+6])){for(s=0,d=2*(u=C(c,h[d+8]))+(h=C(c,h[d+9+u])),u=0,h=ii[d];h[s];++s)u+=u+C(c,h[s]);u+=3+(8<<d)}else C(c,h[d+7])?(u=7+2*C(c,165),u+=C(c,145)):u=5+C(c,159);else u=C(c,h[d+4])?3+C(c,h[d+5]):2;s=l[2]}else u=1,s=l[1];l=r+oi[i],0>(c=e).b&&A(c);var d,h=c.b,p=(d=c.Ca>>1)-(c.I>>h)>>31;--c.b,c.Ca+=p,c.Ca|=1,c.I-=(d+1&p)<<h,o[l]=((u^p)-p)*a[(0<i)+0]}return 16}function Qe(e){var t=e.rb[e.sb-1];t.la=0,t.Na=0,i(e.zc,0,0,e.zc.length),e.ja=0}function Ze(e,n){if(null==e)return 0;if(null==n)return Ye(e,2,"NULL VP8Io parameter in VP8Decode().");if(!e.cb&&!Je(e,n))return 0;if(t(e.cb),null==n.ac||n.ac(n)){n.ob&&(e.L=0);var s=Bi[e.L];if(2==e.L?(e.yb=0,e.zb=0):(e.yb=n.v-s>>4,e.zb=n.j-s>>4,0>e.yb&&(e.yb=0),0>e.zb&&(e.zb=0)),e.Va=n.o+15+s>>4,e.Hb=n.va+15+s>>4,e.Hb>e.za&&(e.Hb=e.za),e.Va>e.Ub&&(e.Va=e.Ub),0<e.L){var l=e.ed;for(s=0;4>s;++s){var c;if(e.Qa.Cb){var u=e.Qa.Lb[s];e.Qa.Fb||(u+=l.Tb)}else u=l.Tb;for(c=0;1>=c;++c){var d=e.gd[s][c],h=u;if(l.Pc&&(h+=l.vd[0],c&&(h+=l.od[0])),0<(h=0>h?0:63<h?63:h)){var p=h;0<l.wb&&(p=4<l.wb?p>>2:p>>1)>9-l.wb&&(p=9-l.wb),1>p&&(p=1),d.dd=p,d.tc=2*h+p,d.ld=40<=h?2:15<=h?1:0}else d.tc=0;d.La=c}}}s=0}else Ye(e,6,"Frame setup failed"),s=e.a;if(s=0==s){if(s){e.$c=0,0<e.Aa||(e.Ic=zi);e:{s=e.Ic,l=4*(p=e.za);var f=32*p,v=p+1,m=0<e.L?p*(0<e.Aa?2:1):0,g=(2==e.Aa?2:1)*p;if((d=l+832+(c=3*(16*s+Bi[e.L])/2*f)+(u=null!=e.Fa&&0<e.Fa.length?e.Kc.c*e.Kc.i:0))!=d)s=0;else{if(d>e.Vb){if(e.Vb=0,e.Ec=o(d),e.Fc=0,null==e.Ec){s=Ye(e,1,"no memory during frame initialization.");break e}e.Vb=d}d=e.Ec,h=e.Fc,e.Ac=d,e.Bc=h,h+=l,e.Gd=r(f,$e),e.Hd=0,e.rb=r(v+1,Ue),e.sb=1,e.wa=m?r(m,Be):null,e.Y=0,e.D.Nb=0,e.D.wa=e.wa,e.D.Y=e.Y,0<e.Aa&&(e.D.Y+=p),t(!0),e.oc=d,e.pc=h,h+=832,e.ya=r(g,Re),e.aa=0,e.D.ya=e.ya,e.D.aa=e.aa,2==e.Aa&&(e.D.aa+=p),e.R=16*p,e.B=8*p,p=(f=Bi[e.L])*e.R,f=f/2*e.B,e.sa=d,e.ta=h+p,e.qa=e.sa,e.ra=e.ta+16*s*e.R+f,e.Ha=e.qa,e.Ia=e.ra+8*s*e.B+f,e.$c=0,h+=c,e.mb=u?d:null,e.nb=u?h:null,t(h+u<=e.Fc+e.Vb),Qe(e),i(e.Ac,e.Bc,0,l),s=1}}if(s){if(n.ka=0,n.y=e.sa,n.O=e.ta,n.f=e.qa,n.N=e.ra,n.ea=e.Ha,n.Vd=e.Ia,n.fa=e.R,n.Rc=e.B,n.F=null,n.J=0,!xa){for(s=-255;255>=s;++s)ka[255+s]=0>s?-s:s;for(s=-1020;1020>=s;++s)Ca[1020+s]=-128>s?-128:127<s?127:s;for(s=-112;112>=s;++s)Sa[112+s]=-16>s?-16:15<s?15:s;for(s=-255;510>=s;++s)Ma[255+s]=0>s?0:255<s?255:s;xa=1}oa=ct,ra=ot,la=rt,ca=st,ua=lt,sa=it,da=Yt,ha=Xt,pa=Qt,fa=Zt,va=Jt,ma=Kt,ga=en,ba=tn,ya=Ft,wa=$t,_a=qt,Ea=Wt,hi[0]=Nt,hi[1]=dt,hi[2]=Et,hi[3]=Pt,hi[4]=It,hi[5]=kt,hi[6]=At,hi[7]=Ct,hi[8]=Mt,hi[9]=St,di[0]=gt,di[1]=pt,di[2]=ft,di[3]=vt,di[4]=bt,di[5]=yt,di[6]=wt,pi[0]=Tt,pi[1]=ht,pi[2]=xt,pi[3]=Ot,pi[4]=Lt,pi[5]=jt,pi[6]=Vt,s=1}else s=0}s&&(s=function(e,n){for(e.M=0;e.M<e.Va;++e.M){var r,s=e.Jc[e.M&e.Xb],l=e.m,c=e;for(r=0;r<c.za;++r){var u=l,d=c,h=d.Ac,p=d.Bc+4*r,f=d.zc,v=d.ya[d.aa+r];if(d.Qa.Bb?v.$b=C(u,d.Pa.jb[0])?2+C(u,d.Pa.jb[2]):C(u,d.Pa.jb[1]):v.$b=0,d.kc&&(v.Ad=C(u,d.Bd)),v.Za=!C(u,145)+0,v.Za){var m=v.Ob,g=0;for(d=0;4>d;++d){var b,y=f[0+d];for(b=0;4>b;++b){y=li[h[p+b]][y];for(var w=ri[C(u,y[0])];0<w;)w=ri[2*w+C(u,y[w])];y=-w,h[p+b]=y}a(m,g,h,p,4),g+=4,f[0+d]=y}}else y=C(u,156)?C(u,128)?1:3:C(u,163)?2:0,v.Ob[0]=y,i(h,p,y,4),i(f,0,y,4);v.Dd=C(u,142)?C(u,114)?C(u,183)?1:3:2:0}if(c.m.Ka)return Ye(e,7,"Premature end-of-partition0 encountered.");for(;e.ja<e.za;++e.ja){if(c=s,u=(l=e).rb[l.sb-1],h=l.rb[l.sb+l.ja],r=l.ya[l.aa+l.ja],p=l.kc?r.Ad:0)u.la=h.la=0,r.Za||(u.Na=h.Na=0),r.Hc=0,r.Gc=0,r.ia=0;else{var _,E;if(u=h,h=c,p=l.Pa.Xc,f=l.ya[l.aa+l.ja],v=l.pb[f.$b],d=f.ad,m=0,g=l.rb[l.sb-1],y=b=0,i(d,m,0,384),f.Za)var P=0,N=p[3];else{w=o(16);var I=u.Na+g.Na;if(I=ai(h,p[1],I,v.Eb,0,w,0),u.Na=g.Na=(0<I)+0,1<I)oa(w,0,d,m);else{var A=w[0]+3>>3;for(w=0;256>w;w+=16)d[m+w]=A}P=1,N=p[0]}var k=15&u.la,S=15&g.la;for(w=0;4>w;++w){var M=1&S;for(A=E=0;4>A;++A)k=k>>1|(M=(I=ai(h,N,I=M+(1&k),v.Sc,P,d,m))>P)<<7,E=E<<2|(3<I?3:1<I?2:0!=d[m+0]),m+=16;k>>=4,S=S>>1|M<<7,b=(b<<8|E)>>>0}for(N=k,P=S>>4,_=0;4>_;_+=2){for(E=0,k=u.la>>4+_,S=g.la>>4+_,w=0;2>w;++w){for(M=1&S,A=0;2>A;++A)I=M+(1&k),k=k>>1|(M=0<(I=ai(h,p[2],I,v.Qc,0,d,m)))<<3,E=E<<2|(3<I?3:1<I?2:0!=d[m+0]),m+=16;k>>=2,S=S>>1|M<<5}y|=E<<4*_,N|=k<<4<<_,P|=(240&S)<<_}u.la=N,g.la=P,f.Hc=b,f.Gc=y,f.ia=43690&y?0:v.ia,p=!(b|y)}if(0<l.L&&(l.wa[l.Y+l.ja]=l.gd[r.$b][r.Za],l.wa[l.Y+l.ja].La|=!p),c.Ka)return Ye(e,7,"Premature end-of-file encountered.")}if(Qe(e),l=n,c=1,r=(s=e).D,u=0<s.L&&s.M>=s.zb&&s.M<=s.Va,0==s.Aa)e:{if(r.M=s.M,r.uc=u,Tn(s,r),c=1,r=(E=s.D).Nb,u=(y=Bi[s.L])*s.R,h=y/2*s.B,w=16*r*s.R,A=8*r*s.B,p=s.sa,f=s.ta-u+w,v=s.qa,d=s.ra-h+A,m=s.Ha,g=s.Ia-h+A,S=0==(k=E.M),b=k>=s.Va-1,2==s.Aa&&Tn(s,E),E.uc)for(M=(I=s).D.M,t(I.D.uc),E=I.yb;E<I.Hb;++E){P=E,N=M;var x=(O=(R=I).D).Nb;_=R.R;var O=O.wa[O.Y+P],D=R.sa,T=R.ta+16*x*_+16*P,j=O.dd,L=O.tc;if(0!=L)if(t(3<=L),1==R.L)0<P&&wa(D,T,_,L+4),O.La&&Ea(D,T,_,L),0<N&&ya(D,T,_,L+4),O.La&&_a(D,T,_,L);else{var V=R.B,B=R.qa,U=R.ra+8*x*V+8*P,z=R.Ha,R=R.Ia+8*x*V+8*P;x=O.ld,0<P&&(ha(D,T,_,L+4,j,x),fa(B,U,z,R,V,L+4,j,x)),O.La&&(ma(D,T,_,L,j,x),ba(B,U,z,R,V,L,j,x)),0<N&&(da(D,T,_,L+4,j,x),pa(B,U,z,R,V,L+4,j,x)),O.La&&(va(D,T,_,L,j,x),ga(B,U,z,R,V,L,j,x))}}if(s.ia&&alert("todo:DitherRow"),null!=l.put){if(E=16*k,k=16*(k+1),S?(l.y=s.sa,l.O=s.ta+w,l.f=s.qa,l.N=s.ra+A,l.ea=s.Ha,l.W=s.Ia+A):(E-=y,l.y=p,l.O=f,l.f=v,l.N=d,l.ea=m,l.W=g),b||(k-=y),k>l.o&&(k=l.o),l.F=null,l.J=null,null!=s.Fa&&0<s.Fa.length&&E<k&&(l.J=hn(s,l,E,k-E),l.F=s.mb,null==l.F&&0==l.F.length)){c=Ye(s,3,"Could not decode alpha data.");break e}E<l.j&&(y=l.j-E,E=l.j,t(!(1&y)),l.O+=s.R*y,l.N+=s.B*(y>>1),l.W+=s.B*(y>>1),null!=l.F&&(l.J+=l.width*y)),E<k&&(l.O+=l.v,l.N+=l.v>>1,l.W+=l.v>>1,null!=l.F&&(l.J+=l.v),l.ka=E-l.j,l.U=l.va-l.v,l.T=k-E,c=l.put(l))}r+1!=s.Ic||b||(a(s.sa,s.ta-u,p,f+16*s.R,u),a(s.qa,s.ra-h,v,d+8*s.B,h),a(s.Ha,s.Ia-h,m,g+8*s.B,h))}if(!c)return Ye(e,6,"Output aborted.")}return 1}(e,n)),null!=n.bc&&n.bc(n),s&=1}return s?(e.cb=0,s):0}function et(e,t,n,a,i){i=e[t+n+32*a]+(i>>3),e[t+n+32*a]=-256&i?0>i?0:255:i}function tt(e,t,n,a,i,o){et(e,t,0,n,a+i),et(e,t,1,n,a+o),et(e,t,2,n,a-o),et(e,t,3,n,a-i)}function nt(e){return(20091*e>>16)+e}function at(e,t,n,a){var i,r=0,s=o(16);for(i=0;4>i;++i){var l=e[t+0]+e[t+8],c=e[t+0]-e[t+8],u=(35468*e[t+4]>>16)-nt(e[t+12]),d=nt(e[t+4])+(35468*e[t+12]>>16);s[r+0]=l+d,s[r+1]=c+u,s[r+2]=c-u,s[r+3]=l-d,r+=4,t++}for(i=r=0;4>i;++i)l=(e=s[r+0]+4)+s[r+8],c=e-s[r+8],u=(35468*s[r+4]>>16)-nt(s[r+12]),et(n,a,0,0,l+(d=nt(s[r+4])+(35468*s[r+12]>>16))),et(n,a,1,0,c+u),et(n,a,2,0,c-u),et(n,a,3,0,l-d),r++,a+=32}function it(e,t,n,a){var i=e[t+0]+4,o=35468*e[t+4]>>16,r=nt(e[t+4]),s=35468*e[t+1]>>16;tt(n,a,0,i+r,e=nt(e[t+1]),s),tt(n,a,1,i+o,e,s),tt(n,a,2,i-o,e,s),tt(n,a,3,i-r,e,s)}function ot(e,t,n,a,i){at(e,t,n,a),i&&at(e,t+16,n,a+4)}function rt(e,t,n,a){ra(e,t+0,n,a,1),ra(e,t+32,n,a+128,1)}function st(e,t,n,a){var i;for(e=e[t+0]+4,i=0;4>i;++i)for(t=0;4>t;++t)et(n,a,t,i,e)}function lt(e,t,n,a){e[t+0]&&ca(e,t+0,n,a),e[t+16]&&ca(e,t+16,n,a+4),e[t+32]&&ca(e,t+32,n,a+128),e[t+48]&&ca(e,t+48,n,a+128+4)}function ct(e,t,n,a){var i,r=o(16);for(i=0;4>i;++i){var s=e[t+0+i]+e[t+12+i],l=e[t+4+i]+e[t+8+i],c=e[t+4+i]-e[t+8+i],u=e[t+0+i]-e[t+12+i];r[0+i]=s+l,r[8+i]=s-l,r[4+i]=u+c,r[12+i]=u-c}for(i=0;4>i;++i)s=(e=r[0+4*i]+3)+r[3+4*i],l=r[1+4*i]+r[2+4*i],c=r[1+4*i]-r[2+4*i],u=e-r[3+4*i],n[a+0]=s+l>>3,n[a+16]=u+c>>3,n[a+32]=s-l>>3,n[a+48]=u-c>>3,a+=64}function ut(e,t,n){var a,i=t-32,o=Ta,r=255-e[i-1];for(a=0;a<n;++a){var s,l=o,c=r+e[t-1];for(s=0;s<n;++s)e[t+s]=l[c+e[i+s]];t+=32}}function dt(e,t){ut(e,t,4)}function ht(e,t){ut(e,t,8)}function pt(e,t){ut(e,t,16)}function ft(e,t){var n;for(n=0;16>n;++n)a(e,t+32*n,e,t-32,16)}function vt(e,t){var n;for(n=16;0<n;--n)i(e,t,e[t-1],16),t+=32}function mt(e,t,n){var a;for(a=0;16>a;++a)i(t,n+32*a,e,16)}function gt(e,t){var n,a=16;for(n=0;16>n;++n)a+=e[t-1+32*n]+e[t+n-32];mt(a>>5,e,t)}function bt(e,t){var n,a=8;for(n=0;16>n;++n)a+=e[t-1+32*n];mt(a>>4,e,t)}function yt(e,t){var n,a=8;for(n=0;16>n;++n)a+=e[t+n-32];mt(a>>4,e,t)}function wt(e,t){mt(128,e,t)}function _t(e,t,n){return e+2*t+n+2>>2}function Et(e,t){var n,i=t-32;for(i=new Uint8Array([_t(e[i-1],e[i+0],e[i+1]),_t(e[i+0],e[i+1],e[i+2]),_t(e[i+1],e[i+2],e[i+3]),_t(e[i+2],e[i+3],e[i+4])]),n=0;4>n;++n)a(e,t+32*n,i,0,i.length)}function Pt(e,t){var n=e[t-1],a=e[t-1+32],i=e[t-1+64],o=e[t-1+96];S(e,t+0,16843009*_t(e[t-1-32],n,a)),S(e,t+32,16843009*_t(n,a,i)),S(e,t+64,16843009*_t(a,i,o)),S(e,t+96,16843009*_t(i,o,o))}function Nt(e,t){var n,a=4;for(n=0;4>n;++n)a+=e[t+n-32]+e[t-1+32*n];for(a>>=3,n=0;4>n;++n)i(e,t+32*n,a,4)}function It(e,t){var n=e[t-1+0],a=e[t-1+32],i=e[t-1+64],o=e[t-1-32],r=e[t+0-32],s=e[t+1-32],l=e[t+2-32],c=e[t+3-32];e[t+0+96]=_t(a,i,e[t-1+96]),e[t+1+96]=e[t+0+64]=_t(n,a,i),e[t+2+96]=e[t+1+64]=e[t+0+32]=_t(o,n,a),e[t+3+96]=e[t+2+64]=e[t+1+32]=e[t+0+0]=_t(r,o,n),e[t+3+64]=e[t+2+32]=e[t+1+0]=_t(s,r,o),e[t+3+32]=e[t+2+0]=_t(l,s,r),e[t+3+0]=_t(c,l,s)}function At(e,t){var n=e[t+1-32],a=e[t+2-32],i=e[t+3-32],o=e[t+4-32],r=e[t+5-32],s=e[t+6-32],l=e[t+7-32];e[t+0+0]=_t(e[t+0-32],n,a),e[t+1+0]=e[t+0+32]=_t(n,a,i),e[t+2+0]=e[t+1+32]=e[t+0+64]=_t(a,i,o),e[t+3+0]=e[t+2+32]=e[t+1+64]=e[t+0+96]=_t(i,o,r),e[t+3+32]=e[t+2+64]=e[t+1+96]=_t(o,r,s),e[t+3+64]=e[t+2+96]=_t(r,s,l),e[t+3+96]=_t(s,l,l)}function kt(e,t){var n=e[t-1+0],a=e[t-1+32],i=e[t-1+64],o=e[t-1-32],r=e[t+0-32],s=e[t+1-32],l=e[t+2-32],c=e[t+3-32];e[t+0+0]=e[t+1+64]=o+r+1>>1,e[t+1+0]=e[t+2+64]=r+s+1>>1,e[t+2+0]=e[t+3+64]=s+l+1>>1,e[t+3+0]=l+c+1>>1,e[t+0+96]=_t(i,a,n),e[t+0+64]=_t(a,n,o),e[t+0+32]=e[t+1+96]=_t(n,o,r),e[t+1+32]=e[t+2+96]=_t(o,r,s),e[t+2+32]=e[t+3+96]=_t(r,s,l),e[t+3+32]=_t(s,l,c)}function Ct(e,t){var n=e[t+0-32],a=e[t+1-32],i=e[t+2-32],o=e[t+3-32],r=e[t+4-32],s=e[t+5-32],l=e[t+6-32],c=e[t+7-32];e[t+0+0]=n+a+1>>1,e[t+1+0]=e[t+0+64]=a+i+1>>1,e[t+2+0]=e[t+1+64]=i+o+1>>1,e[t+3+0]=e[t+2+64]=o+r+1>>1,e[t+0+32]=_t(n,a,i),e[t+1+32]=e[t+0+96]=_t(a,i,o),e[t+2+32]=e[t+1+96]=_t(i,o,r),e[t+3+32]=e[t+2+96]=_t(o,r,s),e[t+3+64]=_t(r,s,l),e[t+3+96]=_t(s,l,c)}function St(e,t){var n=e[t-1+0],a=e[t-1+32],i=e[t-1+64],o=e[t-1+96];e[t+0+0]=n+a+1>>1,e[t+2+0]=e[t+0+32]=a+i+1>>1,e[t+2+32]=e[t+0+64]=i+o+1>>1,e[t+1+0]=_t(n,a,i),e[t+3+0]=e[t+1+32]=_t(a,i,o),e[t+3+32]=e[t+1+64]=_t(i,o,o),e[t+3+64]=e[t+2+64]=e[t+0+96]=e[t+1+96]=e[t+2+96]=e[t+3+96]=o}function Mt(e,t){var n=e[t-1+0],a=e[t-1+32],i=e[t-1+64],o=e[t-1+96],r=e[t-1-32],s=e[t+0-32],l=e[t+1-32],c=e[t+2-32];e[t+0+0]=e[t+2+32]=n+r+1>>1,e[t+0+32]=e[t+2+64]=a+n+1>>1,e[t+0+64]=e[t+2+96]=i+a+1>>1,e[t+0+96]=o+i+1>>1,e[t+3+0]=_t(s,l,c),e[t+2+0]=_t(r,s,l),e[t+1+0]=e[t+3+32]=_t(n,r,s),e[t+1+32]=e[t+3+64]=_t(a,n,r),e[t+1+64]=e[t+3+96]=_t(i,a,n),e[t+1+96]=_t(o,i,a)}function xt(e,t){var n;for(n=0;8>n;++n)a(e,t+32*n,e,t-32,8)}function Ot(e,t){var n;for(n=0;8>n;++n)i(e,t,e[t-1],8),t+=32}function Dt(e,t,n){var a;for(a=0;8>a;++a)i(t,n+32*a,e,8)}function Tt(e,t){var n,a=8;for(n=0;8>n;++n)a+=e[t+n-32]+e[t-1+32*n];Dt(a>>4,e,t)}function jt(e,t){var n,a=4;for(n=0;8>n;++n)a+=e[t+n-32];Dt(a>>3,e,t)}function Lt(e,t){var n,a=4;for(n=0;8>n;++n)a+=e[t-1+32*n];Dt(a>>3,e,t)}function Vt(e,t){Dt(128,e,t)}function Bt(e,t,n){var a=e[t-n],i=e[t+0],o=3*(i-a)+Oa[1020+e[t-2*n]-e[t+n]],r=Da[112+(o+4>>3)];e[t-n]=Ta[255+a+Da[112+(o+3>>3)]],e[t+0]=Ta[255+i-r]}function Ut(e,t,n,a){var i=e[t+0],o=e[t+n];return ja[255+e[t-2*n]-e[t-n]]>a||ja[255+o-i]>a}function zt(e,t,n,a){return 4*ja[255+e[t-n]-e[t+0]]+ja[255+e[t-2*n]-e[t+n]]<=a}function Rt(e,t,n,a,i){var o=e[t-3*n],r=e[t-2*n],s=e[t-n],l=e[t+0],c=e[t+n],u=e[t+2*n],d=e[t+3*n];return 4*ja[255+s-l]+ja[255+r-c]>a?0:ja[255+e[t-4*n]-o]<=i&&ja[255+o-r]<=i&&ja[255+r-s]<=i&&ja[255+d-u]<=i&&ja[255+u-c]<=i&&ja[255+c-l]<=i}function Ft(e,t,n,a){var i=2*a+1;for(a=0;16>a;++a)zt(e,t+a,n,i)&&Bt(e,t+a,n)}function $t(e,t,n,a){var i=2*a+1;for(a=0;16>a;++a)zt(e,t+a*n,1,i)&&Bt(e,t+a*n,1)}function qt(e,t,n,a){var i;for(i=3;0<i;--i)Ft(e,t+=4*n,n,a)}function Wt(e,t,n,a){var i;for(i=3;0<i;--i)$t(e,t+=4,n,a)}function Ht(e,t,n,a,i,o,r,s){for(o=2*o+1;0<i--;){if(Rt(e,t,n,o,r))if(Ut(e,t,n,s))Bt(e,t,n);else{var l=e,c=t,u=n,d=l[c-2*u],h=l[c-u],p=l[c+0],f=l[c+u],v=l[c+2*u],m=27*(b=Oa[1020+3*(p-h)+Oa[1020+d-f]])+63>>7,g=18*b+63>>7,b=9*b+63>>7;l[c-3*u]=Ta[255+l[c-3*u]+b],l[c-2*u]=Ta[255+d+g],l[c-u]=Ta[255+h+m],l[c+0]=Ta[255+p-m],l[c+u]=Ta[255+f-g],l[c+2*u]=Ta[255+v-b]}t+=a}}function Gt(e,t,n,a,i,o,r,s){for(o=2*o+1;0<i--;){if(Rt(e,t,n,o,r))if(Ut(e,t,n,s))Bt(e,t,n);else{var l=e,c=t,u=n,d=l[c-u],h=l[c+0],p=l[c+u],f=Da[112+(4+(v=3*(h-d))>>3)],v=Da[112+(v+3>>3)],m=f+1>>1;l[c-2*u]=Ta[255+l[c-2*u]+m],l[c-u]=Ta[255+d+v],l[c+0]=Ta[255+h-f],l[c+u]=Ta[255+p-m]}t+=a}}function Yt(e,t,n,a,i,o){Ht(e,t,n,1,16,a,i,o)}function Xt(e,t,n,a,i,o){Ht(e,t,1,n,16,a,i,o)}function Jt(e,t,n,a,i,o){var r;for(r=3;0<r;--r)Gt(e,t+=4*n,n,1,16,a,i,o)}function Kt(e,t,n,a,i,o){var r;for(r=3;0<r;--r)Gt(e,t+=4,1,n,16,a,i,o)}function Qt(e,t,n,a,i,o,r,s){Ht(e,t,i,1,8,o,r,s),Ht(n,a,i,1,8,o,r,s)}function Zt(e,t,n,a,i,o,r,s){Ht(e,t,1,i,8,o,r,s),Ht(n,a,1,i,8,o,r,s)}function en(e,t,n,a,i,o,r,s){Gt(e,t+4*i,i,1,8,o,r,s),Gt(n,a+4*i,i,1,8,o,r,s)}function tn(e,t,n,a,i,o,r,s){Gt(e,t+4,1,i,8,o,r,s),Gt(n,a+4,1,i,8,o,r,s)}function nn(){this.ba=new re,this.ec=[],this.cc=[],this.Mc=[],this.Dc=this.Nc=this.dc=this.fc=0,this.Oa=new le,this.memory=0,this.Ib="OutputFunc",this.Jb="OutputAlphaFunc",this.Nd="OutputRowFunc"}function an(){this.data=[],this.offset=this.kd=this.ha=this.w=0,this.na=[],this.xa=this.gb=this.Ja=this.Sa=this.P=0}function on(){this.nc=this.Ea=this.b=this.hc=0,this.K=[],this.w=0}function rn(){this.ua=0,this.Wa=new j,this.vb=new j,this.md=this.xc=this.wc=0,this.vc=[],this.Wb=0,this.Ya=new p,this.yc=new d}function sn(){this.xb=this.a=0,this.l=new He,this.ca=new re,this.V=[],this.Ba=0,this.Ta=[],this.Ua=0,this.m=new _,this.Pb=0,this.wd=new _,this.Ma=this.$=this.C=this.i=this.c=this.xd=0,this.s=new rn,this.ab=0,this.gc=r(4,on),this.Oc=0}function ln(){this.Lc=this.Z=this.$a=this.i=this.c=0,this.l=new He,this.ic=0,this.ca=[],this.tb=0,this.qd=null,this.rd=0}function cn(e,t,n,a,i,o,r){for(e=null==e?0:e[t+0],t=0;t<r;++t)i[o+t]=e+n[a+t]&255,e=i[o+t]}function un(e,t,n,a,i,o,r){var s;if(null==e)cn(null,null,n,a,i,o,r);else for(s=0;s<r;++s)i[o+s]=e[t+s]+n[a+s]&255}function dn(e,t,n,a,i,o,r){if(null==e)cn(null,null,n,a,i,o,r);else{var s,l=e[t+0],c=l,u=l;for(s=0;s<r;++s)c=u+(l=e[t+s])-c,u=n[a+s]+(-256&c?0>c?0:255:c)&255,c=l,i[o+s]=u}}function hn(e,n,i,r){var s=n.width,l=n.o;if(t(null!=e&&null!=n),0>i||0>=r||i+r>l)return null;if(!e.Cc){if(null==e.ga){var c;if(e.ga=new ln,(c=null==e.ga)||(c=n.width*n.o,t(0==e.Gb.length),e.Gb=o(c),e.Uc=0,null==e.Gb?c=0:(e.mb=e.Gb,e.nb=e.Uc,e.rc=null,c=1),c=!c),!c){c=e.ga;var u=e.Fa,d=e.P,h=e.qc,p=e.mb,f=e.nb,v=d+1,m=h-1,b=c.l;if(t(null!=u&&null!=p&&null!=n),mi[0]=null,mi[1]=cn,mi[2]=un,mi[3]=dn,c.ca=p,c.tb=f,c.c=n.width,c.i=n.height,t(0<c.c&&0<c.i),1>=h)n=0;else if(c.$a=3&u[d+0],c.Z=u[d+0]>>2&3,c.Lc=u[d+0]>>4&3,d=u[d+0]>>6&3,0>c.$a||1<c.$a||4<=c.Z||1<c.Lc||d)n=0;else if(b.put=pe,b.ac=he,b.bc=fe,b.ma=c,b.width=n.width,b.height=n.height,b.Da=n.Da,b.v=n.v,b.va=n.va,b.j=n.j,b.o=n.o,c.$a)e:{t(1==c.$a),n=Ce();t:for(;;){if(null==n){n=0;break e}if(t(null!=c),c.mc=n,n.c=c.c,n.i=c.i,n.l=c.l,n.l.ma=c,n.l.width=c.c,n.l.height=c.i,n.a=0,g(n.m,u,v,m),!Se(c.c,c.i,1,n,null))break t;if(1==n.ab&&3==n.gc[0].hc&&Pe(n.s)?(c.ic=1,u=n.c*n.i,n.Ta=null,n.Ua=0,n.V=o(u),n.Ba=0,null==n.V?(n.a=1,n=0):n=1):(c.ic=0,n=Me(n,c.c)),!n)break t;n=1;break e}c.mc=null,n=0}else n=m>=c.c*c.i;c=!n}if(c)return null;1!=e.ga.Lc?e.Ga=0:r=l-i}t(null!=e.ga),t(i+r<=l);e:{if(n=(u=e.ga).c,l=u.l.o,0==u.$a){if(v=e.rc,m=e.Vc,b=e.Fa,d=e.P+1+i*n,h=e.mb,p=e.nb+i*n,t(d<=e.P+e.qc),0!=u.Z)for(t(null!=mi[u.Z]),c=0;c<r;++c)mi[u.Z](v,m,b,d,h,p,n),v=h,m=p,p+=n,d+=n;else for(c=0;c<r;++c)a(h,p,b,d,n),v=h,m=p,p+=n,d+=n;e.rc=v,e.Vc=m}else{if(t(null!=u.mc),n=i+r,t(null!=(c=u.mc)),t(n<=c.i),c.C>=n)n=1;else if(u.ic||gn(),u.ic){u=c.V,v=c.Ba,m=c.c;var y=c.i,w=(b=1,d=c.$/m,h=c.$%m,p=c.m,f=c.s,c.$),_=m*y,E=m*n,N=f.wc,A=w<E?we(f,h,d):null;t(w<=_),t(n<=y),t(Pe(f));t:for(;;){for(;!p.h&&w<E;){if(h&N||(A=we(f,h,d)),t(null!=A),I(p),256>(y=be(A.G[0],A.H[0],p)))u[v+w]=y,++w,++h>=m&&(h=0,++d<=n&&!(d%16)&&Ie(c,d));else{if(!(280>y)){b=0;break t}y=me(y-256,p);var k,C=be(A.G[4],A.H[4],p);if(I(p),!(w>=(C=ge(m,C=me(C,p)))&&_-w>=y)){b=0;break t}for(k=0;k<y;++k)u[v+w+k]=u[v+w+k-C];for(w+=y,h+=y;h>=m;)h-=m,++d<=n&&!(d%16)&&Ie(c,d);w<E&&h&N&&(A=we(f,h,d))}t(p.h==P(p))}Ie(c,d>n?n:d);break t}!b||p.h&&w<_?(b=0,c.a=p.h?5:3):c.$=w,n=b}else n=Ae(c,c.V,c.Ba,c.c,c.i,n,xe);if(!n){r=0;break e}}i+r>=l&&(e.Cc=1),r=1}if(!r)return null;if(e.Cc&&(null!=(r=e.ga)&&(r.mc=null),e.ga=null,0<e.Ga))return alert("todo:WebPDequantizeLevels"),null}return e.nb+i*s}function pn(e,t,n,a,i,o){for(;0<i--;){var r,s=e,l=t+(n?1:0),c=e,u=t+(n?0:3);for(r=0;r<a;++r){var d=c[u+4*r];255!=d&&(d*=32897,s[l+4*r+0]=s[l+4*r+0]*d>>23,s[l+4*r+1]=s[l+4*r+1]*d>>23,s[l+4*r+2]=s[l+4*r+2]*d>>23)}t+=o}}function fn(e,t,n,a,i){for(;0<a--;){var o;for(o=0;o<n;++o){var r=e[t+2*o+0],s=15&(c=e[t+2*o+1]),l=4369*s,c=(240&c|c>>4)*l>>16;e[t+2*o+0]=(240&r|r>>4)*l>>16&240|(15&r|r<<4)*l>>16>>4&15,e[t+2*o+1]=240&c|s}t+=i}}function vn(e,t,n,a,i,o,r,s){var l,c,u=255;for(c=0;c<i;++c){for(l=0;l<a;++l){var d=e[t+l];o[r+4*l]=d,u&=d}t+=n,r+=s}return 255!=u}function mn(e,t,n,a,i){var o;for(o=0;o<i;++o)n[a+o]=e[t+o]>>8}function gn(){Pa=pn,Na=fn,Ia=vn,Aa=mn}function bn(n,a,i){e[n]=function(e,n,o,r,s,l,c,u,d,h,p,f,v,m,g,b,y){var w,_=y-1>>1,E=s[l+0]|c[u+0]<<16,P=d[h+0]|p[f+0]<<16;t(null!=e);var N=3*E+P+131074>>2;for(a(e[n+0],255&N,N>>16,v,m),null!=o&&(N=3*P+E+131074>>2,a(o[r+0],255&N,N>>16,g,b)),w=1;w<=_;++w){var I=s[l+w]|c[u+w]<<16,A=d[h+w]|p[f+w]<<16,k=E+I+P+A+524296,C=k+2*(I+P)>>3;N=C+E>>1,E=(k=k+2*(E+A)>>3)+I>>1,a(e[n+2*w-1],255&N,N>>16,v,m+(2*w-1)*i),a(e[n+2*w-0],255&E,E>>16,v,m+(2*w-0)*i),null!=o&&(N=k+P>>1,E=C+A>>1,a(o[r+2*w-1],255&N,N>>16,g,b+(2*w-1)*i),a(o[r+2*w+0],255&E,E>>16,g,b+(2*w+0)*i)),E=I,P=A}1&y||(N=3*E+P+131074>>2,a(e[n+y-1],255&N,N>>16,v,m+(y-1)*i),null!=o&&(N=3*P+E+131074>>2,a(o[r+y-1],255&N,N>>16,g,b+(y-1)*i)))}}function yn(){gi[La]=bi,gi[Va]=wi,gi[Ba]=yi,gi[Ua]=_i,gi[za]=Ei,gi[Ra]=Pi,gi[Fa]=Ni,gi[$a]=wi,gi[qa]=_i,gi[Wa]=Ei,gi[Ha]=Pi}function wn(e){return-16384&e?0>e?0:255:e>>Si}function _n(e,t){return wn((19077*e>>8)+(26149*t>>8)-14234)}function En(e,t,n){return wn((19077*e>>8)-(6419*t>>8)-(13320*n>>8)+8708)}function Pn(e,t){return wn((19077*e>>8)+(33050*t>>8)-17685)}function Nn(e,t,n,a,i){a[i+0]=_n(e,n),a[i+1]=En(e,t,n),a[i+2]=Pn(e,t)}function In(e,t,n,a,i){a[i+0]=Pn(e,t),a[i+1]=En(e,t,n),a[i+2]=_n(e,n)}function An(e,t,n,a,i){var o=En(e,t,n);t=o<<3&224|Pn(e,t)>>3,a[i+0]=248&_n(e,n)|o>>5,a[i+1]=t}function kn(e,t,n,a,i){var o=240&Pn(e,t)|15;a[i+0]=240&_n(e,n)|En(e,t,n)>>4,a[i+1]=o}function Cn(e,t,n,a,i){a[i+0]=255,Nn(e,t,n,a,i+1)}function Sn(e,t,n,a,i){In(e,t,n,a,i),a[i+3]=255}function Mn(e,t,n,a,i){Nn(e,t,n,a,i),a[i+3]=255}function We(e,t){return 0>e?0:e>t?t:e}function xn(t,n,a){e[t]=function(e,t,i,o,r,s,l,c,u){for(var d=c+(-2&u)*a;c!=d;)n(e[t+0],i[o+0],r[s+0],l,c),n(e[t+1],i[o+0],r[s+0],l,c+a),t+=2,++o,++s,c+=2*a;1&u&&n(e[t+0],i[o+0],r[s+0],l,c)}}function On(e,t,n){return 0==n?0==e?0==t?6:5:0==t?4:0:n}function Dn(e,t,n,a,i){switch(e>>>30){case 3:ra(t,n,a,i,0);break;case 2:sa(t,n,a,i);break;case 1:ca(t,n,a,i)}}function Tn(e,t){var n,o,r=t.M,s=t.Nb,l=e.oc,c=e.pc+40,u=e.oc,d=e.pc+584,h=e.oc,p=e.pc+600;for(n=0;16>n;++n)l[c+32*n-1]=129;for(n=0;8>n;++n)u[d+32*n-1]=129,h[p+32*n-1]=129;for(0<r?l[c-1-32]=u[d-1-32]=h[p-1-32]=129:(i(l,c-32-1,127,21),i(u,d-32-1,127,9),i(h,p-32-1,127,9)),o=0;o<e.za;++o){var f=t.ya[t.aa+o];if(0<o){for(n=-1;16>n;++n)a(l,c+32*n-4,l,c+32*n+12,4);for(n=-1;8>n;++n)a(u,d+32*n-4,u,d+32*n+4,4),a(h,p+32*n-4,h,p+32*n+4,4)}var v=e.Gd,m=e.Hd+o,g=f.ad,b=f.Hc;if(0<r&&(a(l,c-32,v[m].y,0,16),a(u,d-32,v[m].f,0,8),a(h,p-32,v[m].ea,0,8)),f.Za){var y=l,w=c-32+16;for(0<r&&(o>=e.za-1?i(y,w,v[m].y[15],4):a(y,w,v[m+1].y,0,4)),n=0;4>n;n++)y[w+128+n]=y[w+256+n]=y[w+384+n]=y[w+0+n];for(n=0;16>n;++n,b<<=2)y=l,w=c+Vi[n],hi[f.Ob[n]](y,w),Dn(b,g,16*+n,y,w)}else if(y=On(o,r,f.Ob[0]),di[y](l,c),0!=b)for(n=0;16>n;++n,b<<=2)Dn(b,g,16*+n,l,c+Vi[n]);for(n=f.Gc,y=On(o,r,f.Dd),pi[y](u,d),pi[y](h,p),b=g,y=u,w=d,255&(f=n|0)&&(170&f?la(b,256,y,w):ua(b,256,y,w)),f=h,b=p,255&(n>>=8)&&(170&n?la(g,320,f,b):ua(g,320,f,b)),r<e.Ub-1&&(a(v[m].y,0,l,c+480,16),a(v[m].f,0,u,d+224,8),a(v[m].ea,0,h,p+224,8)),n=8*s*e.B,v=e.sa,m=e.ta+16*o+16*s*e.R,g=e.qa,f=e.ra+8*o+n,b=e.Ha,y=e.Ia+8*o+n,n=0;16>n;++n)a(v,m+n*e.R,l,c+32*n,16);for(n=0;8>n;++n)a(g,f+n*e.B,u,d+32*n,8),a(b,y+n*e.B,h,p+32*n,8)}}function jn(e,a,i,o,r,s,l,c,u){var d=[0],h=[0],p=0,f=null!=u?u.kd:0,v=null!=u?u:new an;if(null==e||12>i)return 7;v.data=e,v.w=a,v.ha=i,a=[a],i=[i],v.gb=[v.gb];e:{var m=a,b=i,y=v.gb;if(t(null!=e),t(null!=b),t(null!=y),y[0]=0,12<=b[0]&&!n(e,m[0],"RIFF")){if(n(e,m[0]+8,"WEBP")){y=3;break e}var w=O(e,m[0]+4);if(12>w||4294967286<w){y=3;break e}if(f&&w>b[0]-8){y=7;break e}y[0]=w,m[0]+=12,b[0]-=12}y=0}if(0!=y)return y;for(w=0<v.gb[0],i=i[0];;){e:{var E=e;b=a,y=i;var P=d,N=h,I=m=[0];if((C=p=[p])[0]=0,8>y[0])y=7;else{if(!n(E,b[0],"VP8X")){if(10!=O(E,b[0]+4)){y=3;break e}if(18>y[0]){y=7;break e}var A=O(E,b[0]+8),k=1+x(E,b[0]+12);if(2147483648<=k*(E=1+x(E,b[0]+15))){y=3;break e}null!=I&&(I[0]=A),null!=P&&(P[0]=k),null!=N&&(N[0]=E),b[0]+=18,y[0]-=18,C[0]=1}y=0}}if(p=p[0],m=m[0],0!=y)return y;if(b=!!(2&m),!w&&p)return 3;if(null!=s&&(s[0]=!!(16&m)),null!=l&&(l[0]=b),null!=c&&(c[0]=0),l=d[0],m=h[0],p&&b&&null==u){y=0;break}if(4>i){y=7;break}if(w&&p||!w&&!p&&!n(e,a[0],"ALPH")){i=[i],v.na=[v.na],v.P=[v.P],v.Sa=[v.Sa];e:{A=e,y=a,w=i;var C=v.gb;P=v.na,N=v.P,I=v.Sa,k=22,t(null!=A),t(null!=w),E=y[0];var S=w[0];for(t(null!=P),t(null!=I),P[0]=null,N[0]=null,I[0]=0;;){if(y[0]=E,w[0]=S,8>S){y=7;break e}var M=O(A,E+4);if(4294967286<M){y=3;break e}var D=8+M+1&-2;if(k+=D,0<C&&k>C){y=3;break e}if(!n(A,E,"VP8 ")||!n(A,E,"VP8L")){y=0;break e}if(S[0]<D){y=7;break e}n(A,E,"ALPH")||(P[0]=A,N[0]=E+8,I[0]=M),E+=D,S-=D}}if(i=i[0],v.na=v.na[0],v.P=v.P[0],v.Sa=v.Sa[0],0!=y)break}i=[i],v.Ja=[v.Ja],v.xa=[v.xa];e:if(C=e,y=a,w=i,P=v.gb[0],N=v.Ja,I=v.xa,A=y[0],E=!n(C,A,"VP8 "),k=!n(C,A,"VP8L"),t(null!=C),t(null!=w),t(null!=N),t(null!=I),8>w[0])y=7;else{if(E||k){if(C=O(C,A+4),12<=P&&C>P-12){y=3;break e}if(f&&C>w[0]-8){y=7;break e}N[0]=C,y[0]+=8,w[0]-=8,I[0]=k}else I[0]=5<=w[0]&&47==C[A+0]&&!(C[A+4]>>5),N[0]=w[0];y=0}if(i=i[0],v.Ja=v.Ja[0],v.xa=v.xa[0],a=a[0],0!=y)break;if(4294967286<v.Ja)return 3;if(null==c||b||(c[0]=v.xa?2:1),l=[l],m=[m],v.xa){if(5>i){y=7;break}c=l,f=m,b=s,null==e||5>i?e=0:5<=i&&47==e[a+0]&&!(e[a+4]>>5)?(w=[0],C=[0],P=[0],g(N=new _,e,a,i),ve(N,w,C,P)?(null!=c&&(c[0]=w[0]),null!=f&&(f[0]=C[0]),null!=b&&(b[0]=P[0]),e=1):e=0):e=0}else{if(10>i){y=7;break}c=m,null==e||10>i||!Xe(e,a+3,i-3)?e=0:(f=e[a+0]|e[a+1]<<8|e[a+2]<<16,b=16383&(e[a+7]<<8|e[a+6]),e=16383&(e[a+9]<<8|e[a+8]),1&f||3<(f>>1&7)||!(f>>4&1)||f>>5>=v.Ja||!b||!e?e=0:(l&&(l[0]=b),c&&(c[0]=e),e=1))}if(!e)return 3;if(l=l[0],m=m[0],p&&(d[0]!=l||h[0]!=m))return 3;null!=u&&(u[0]=v,u.offset=a-u.w,t(4294967286>a-u.w),t(u.offset==u.ha-i));break}return 0==y||7==y&&p&&null==u?(null!=s&&(s[0]|=null!=v.na&&0<v.na.length),null!=o&&(o[0]=l),null!=r&&(r[0]=m),0):y}function Ln(e,t,n){var a=t.width,i=t.height,o=0,r=0,s=a,l=i;if(t.Da=null!=e&&0<e.Da,t.Da&&(s=e.cd,l=e.bd,o=e.v,r=e.j,11>n||(o&=-2,r&=-2),0>o||0>r||0>=s||0>=l||o+s>a||r+l>i))return 0;if(t.v=o,t.j=r,t.va=o+s,t.o=r+l,t.U=s,t.T=l,t.da=null!=e&&0<e.da,t.da){if(!L(s,l,n=[e.ib],o=[e.hb]))return 0;t.ib=n[0],t.hb=o[0]}return t.ob=null!=e&&e.ob,t.Kb=null==e||!e.Sd,t.da&&(t.ob=t.ib<3*a/4&&t.hb<3*i/4,t.Kb=0),1}function Vn(e){if(null==e)return 2;if(11>e.S){var t=e.f.RGBA;t.fb+=(e.height-1)*t.A,t.A=-t.A}else t=e.f.kb,e=e.height,t.O+=(e-1)*t.fa,t.fa=-t.fa,t.N+=(e-1>>1)*t.Ab,t.Ab=-t.Ab,t.W+=(e-1>>1)*t.Db,t.Db=-t.Db,null!=t.F&&(t.J+=(e-1)*t.lb,t.lb=-t.lb);return 0}function Bn(e,t,n,a){if(null==a||0>=e||0>=t)return 2;if(null!=n){if(n.Da){var i=n.cd,r=n.bd,s=-2&n.v,l=-2&n.j;if(0>s||0>l||0>=i||0>=r||s+i>e||l+r>t)return 2;e=i,t=r}if(n.da){if(!L(e,t,i=[n.ib],r=[n.hb]))return 2;e=i[0],t=r[0]}}a.width=e,a.height=t;e:{var c=a.width,u=a.height;if(e=a.S,0>=c||0>=u||!(e>=La&&13>e))e=2;else{if(0>=a.Rd&&null==a.sd){s=r=i=t=0;var d=(l=c*Ri[e])*u;if(11>e||(r=(u+1)/2*(t=(c+1)/2),12==e&&(s=(i=c)*u)),null==(u=o(d+2*r+s))){e=1;break e}a.sd=u,11>e?((c=a.f.RGBA).eb=u,c.fb=0,c.A=l,c.size=d):((c=a.f.kb).y=u,c.O=0,c.fa=l,c.Fd=d,c.f=u,c.N=0+d,c.Ab=t,c.Cd=r,c.ea=u,c.W=0+d+r,c.Db=t,c.Ed=r,12==e&&(c.F=u,c.J=0+d+2*r),c.Tc=s,c.lb=i)}if(t=1,i=a.S,r=a.width,s=a.height,i>=La&&13>i)if(11>i)e=a.f.RGBA,t&=(l=Math.abs(e.A))*(s-1)+r<=e.size,t&=l>=r*Ri[i],t&=null!=e.eb;else{e=a.f.kb,l=(r+1)/2,d=(s+1)/2,c=Math.abs(e.fa),u=Math.abs(e.Ab);var h=Math.abs(e.Db),p=Math.abs(e.lb),f=p*(s-1)+r;t&=c*(s-1)+r<=e.Fd,t&=u*(d-1)+l<=e.Cd,t=(t&=h*(d-1)+l<=e.Ed)&c>=r&u>=l&h>=l,t&=null!=e.y,t&=null!=e.f,t&=null!=e.ea,12==i&&(t&=p>=r,t&=f<=e.Tc,t&=null!=e.F)}else t=0;e=t?0:2}}return 0!=e||null!=n&&n.fd&&(e=Vn(a)),e}var Un=64,zn=[0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535,131071,262143,524287,1048575,2097151,4194303,8388607,16777215],Rn=24,Fn=32,$n=8,qn=[0,0,1,1,2,2,2,2,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7];U("Predictor0","PredictorAdd0"),e.Predictor0=function(){return 4278190080},e.Predictor1=function(e){return e},e.Predictor2=function(e,t,n){return t[n+0]},e.Predictor3=function(e,t,n){return t[n+1]},e.Predictor4=function(e,t,n){return t[n-1]},e.Predictor5=function(e,t,n){return R(R(e,t[n+1]),t[n+0])},e.Predictor6=function(e,t,n){return R(e,t[n-1])},e.Predictor7=function(e,t,n){return R(e,t[n+0])},e.Predictor8=function(e,t,n){return R(t[n-1],t[n+0])},e.Predictor9=function(e,t,n){return R(t[n+0],t[n+1])},e.Predictor10=function(e,t,n){return R(R(e,t[n-1]),R(t[n+0],t[n+1]))},e.Predictor11=function(e,t,n){var a=t[n+0];return 0>=q(a>>24&255,e>>24&255,(t=t[n-1])>>24&255)+q(a>>16&255,e>>16&255,t>>16&255)+q(a>>8&255,e>>8&255,t>>8&255)+q(255&a,255&e,255&t)?a:e},e.Predictor12=function(e,t,n){var a=t[n+0];return(F((e>>24&255)+(a>>24&255)-((t=t[n-1])>>24&255))<<24|F((e>>16&255)+(a>>16&255)-(t>>16&255))<<16|F((e>>8&255)+(a>>8&255)-(t>>8&255))<<8|F((255&e)+(255&a)-(255&t)))>>>0},e.Predictor13=function(e,t,n){var a=t[n-1];return($((e=R(e,t[n+0]))>>24&255,a>>24&255)<<24|$(e>>16&255,a>>16&255)<<16|$(e>>8&255,a>>8&255)<<8|$(255&e,255&a))>>>0};var Wn=e.PredictorAdd0;e.PredictorAdd1=W,U("Predictor2","PredictorAdd2"),U("Predictor3","PredictorAdd3"),U("Predictor4","PredictorAdd4"),U("Predictor5","PredictorAdd5"),U("Predictor6","PredictorAdd6"),U("Predictor7","PredictorAdd7"),U("Predictor8","PredictorAdd8"),U("Predictor9","PredictorAdd9"),U("Predictor10","PredictorAdd10"),U("Predictor11","PredictorAdd11"),U("Predictor12","PredictorAdd12"),U("Predictor13","PredictorAdd13");var Hn=e.PredictorAdd2;X("ColorIndexInverseTransform","MapARGB","32b",function(e){return e>>8&255},function(e){return e}),X("VP8LColorIndexInverseTransformAlpha","MapAlpha","8b",function(e){return e},function(e){return e>>8&255});var Gn,Yn=e.ColorIndexInverseTransform,Xn=e.MapARGB,Jn=e.VP8LColorIndexInverseTransformAlpha,Kn=e.MapAlpha,Qn=e.VP8LPredictorsAdd=[];Qn.length=16,(e.VP8LPredictors=[]).length=16,(e.VP8LPredictorsAdd_C=[]).length=16,(e.VP8LPredictors_C=[]).length=16;var Zn,ea,ta,na,aa,ia,oa,ra,sa,la,ca,ua,da,ha,pa,fa,va,ma,ga,ba,ya,wa,_a,Ea,Pa,Na,Ia,Aa,ka=o(511),Ca=o(2041),Sa=o(225),Ma=o(767),xa=0,Oa=Ca,Da=Sa,Ta=Ma,ja=ka,La=0,Va=1,Ba=2,Ua=3,za=4,Ra=5,Fa=6,$a=7,qa=8,Wa=9,Ha=10,Ga=[2,3,7],Ya=[3,3,11],Xa=[280,256,256,256,40],Ja=[0,1,1,1,0],Ka=[17,18,0,1,2,3,4,5,16,6,7,8,9,10,11,12,13,14,15],Qa=[24,7,23,25,40,6,39,41,22,26,38,42,56,5,55,57,21,27,54,58,37,43,72,4,71,73,20,28,53,59,70,74,36,44,88,69,75,52,60,3,87,89,19,29,86,90,35,45,68,76,85,91,51,61,104,2,103,105,18,30,102,106,34,46,84,92,67,77,101,107,50,62,120,1,119,121,83,93,17,31,100,108,66,78,118,122,33,47,117,123,49,63,99,109,82,94,0,116,124,65,79,16,32,98,110,48,115,125,81,95,64,114,126,97,111,80,113,127,96,112],Za=[2954,2956,2958,2962,2970,2986,3018,3082,3212,3468,3980,5004],ei=8,ti=[4,5,6,7,8,9,10,10,11,12,13,14,15,16,17,17,18,19,20,20,21,21,22,22,23,23,24,25,25,26,27,28,29,30,31,32,33,34,35,36,37,37,38,39,40,41,42,43,44,45,46,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,76,77,78,79,80,81,82,83,84,85,86,87,88,89,91,93,95,96,98,100,101,102,104,106,108,110,112,114,116,118,122,124,126,128,130,132,134,136,138,140,143,145,148,151,154,157],ni=[4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,60,62,64,66,68,70,72,74,76,78,80,82,84,86,88,90,92,94,96,98,100,102,104,106,108,110,112,114,116,119,122,125,128,131,134,137,140,143,146,149,152,155,158,161,164,167,170,173,177,181,185,189,193,197,201,205,209,213,217,221,225,229,234,239,245,249,254,259,264,269,274,279,284],ai=null,ii=[[173,148,140,0],[176,155,140,135,0],[180,157,141,134,130,0],[254,254,243,230,196,177,153,140,133,130,129,0]],oi=[0,1,4,8,5,2,3,6,9,12,13,10,7,11,14,15],ri=[-0,1,-1,2,-2,3,4,6,-3,5,-4,-5,-6,7,-7,8,-8,-9],si=[[[[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128]],[[253,136,254,255,228,219,128,128,128,128,128],[189,129,242,255,227,213,255,219,128,128,128],[106,126,227,252,214,209,255,255,128,128,128]],[[1,98,248,255,236,226,255,255,128,128,128],[181,133,238,254,221,234,255,154,128,128,128],[78,134,202,247,198,180,255,219,128,128,128]],[[1,185,249,255,243,255,128,128,128,128,128],[184,150,247,255,236,224,128,128,128,128,128],[77,110,216,255,236,230,128,128,128,128,128]],[[1,101,251,255,241,255,128,128,128,128,128],[170,139,241,252,236,209,255,255,128,128,128],[37,116,196,243,228,255,255,255,128,128,128]],[[1,204,254,255,245,255,128,128,128,128,128],[207,160,250,255,238,128,128,128,128,128,128],[102,103,231,255,211,171,128,128,128,128,128]],[[1,152,252,255,240,255,128,128,128,128,128],[177,135,243,255,234,225,128,128,128,128,128],[80,129,211,255,194,224,128,128,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[246,1,255,128,128,128,128,128,128,128,128],[255,128,128,128,128,128,128,128,128,128,128]]],[[[198,35,237,223,193,187,162,160,145,155,62],[131,45,198,221,172,176,220,157,252,221,1],[68,47,146,208,149,167,221,162,255,223,128]],[[1,149,241,255,221,224,255,255,128,128,128],[184,141,234,253,222,220,255,199,128,128,128],[81,99,181,242,176,190,249,202,255,255,128]],[[1,129,232,253,214,197,242,196,255,255,128],[99,121,210,250,201,198,255,202,128,128,128],[23,91,163,242,170,187,247,210,255,255,128]],[[1,200,246,255,234,255,128,128,128,128,128],[109,178,241,255,231,245,255,255,128,128,128],[44,130,201,253,205,192,255,255,128,128,128]],[[1,132,239,251,219,209,255,165,128,128,128],[94,136,225,251,218,190,255,255,128,128,128],[22,100,174,245,186,161,255,199,128,128,128]],[[1,182,249,255,232,235,128,128,128,128,128],[124,143,241,255,227,234,128,128,128,128,128],[35,77,181,251,193,211,255,205,128,128,128]],[[1,157,247,255,236,231,255,255,128,128,128],[121,141,235,255,225,227,255,255,128,128,128],[45,99,188,251,195,217,255,224,128,128,128]],[[1,1,251,255,213,255,128,128,128,128,128],[203,1,248,255,255,128,128,128,128,128,128],[137,1,177,255,224,255,128,128,128,128,128]]],[[[253,9,248,251,207,208,255,192,128,128,128],[175,13,224,243,193,185,249,198,255,255,128],[73,17,171,221,161,179,236,167,255,234,128]],[[1,95,247,253,212,183,255,255,128,128,128],[239,90,244,250,211,209,255,255,128,128,128],[155,77,195,248,188,195,255,255,128,128,128]],[[1,24,239,251,218,219,255,205,128,128,128],[201,51,219,255,196,186,128,128,128,128,128],[69,46,190,239,201,218,255,228,128,128,128]],[[1,191,251,255,255,128,128,128,128,128,128],[223,165,249,255,213,255,128,128,128,128,128],[141,124,248,255,255,128,128,128,128,128,128]],[[1,16,248,255,255,128,128,128,128,128,128],[190,36,230,255,236,255,128,128,128,128,128],[149,1,255,128,128,128,128,128,128,128,128]],[[1,226,255,128,128,128,128,128,128,128,128],[247,192,255,128,128,128,128,128,128,128,128],[240,128,255,128,128,128,128,128,128,128,128]],[[1,134,252,255,255,128,128,128,128,128,128],[213,62,250,255,255,128,128,128,128,128,128],[55,93,255,128,128,128,128,128,128,128,128]],[[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128]]],[[[202,24,213,235,186,191,220,160,240,175,255],[126,38,182,232,169,184,228,174,255,187,128],[61,46,138,219,151,178,240,170,255,216,128]],[[1,112,230,250,199,191,247,159,255,255,128],[166,109,228,252,211,215,255,174,128,128,128],[39,77,162,232,172,180,245,178,255,255,128]],[[1,52,220,246,198,199,249,220,255,255,128],[124,74,191,243,183,193,250,221,255,255,128],[24,71,130,219,154,170,243,182,255,255,128]],[[1,182,225,249,219,240,255,224,128,128,128],[149,150,226,252,216,205,255,171,128,128,128],[28,108,170,242,183,194,254,223,255,255,128]],[[1,81,230,252,204,203,255,192,128,128,128],[123,102,209,247,188,196,255,233,128,128,128],[20,95,153,243,164,173,255,203,128,128,128]],[[1,222,248,255,216,213,128,128,128,128,128],[168,175,246,252,235,205,255,255,128,128,128],[47,116,215,255,211,212,255,255,128,128,128]],[[1,121,236,253,212,214,255,255,128,128,128],[141,84,213,252,201,202,255,219,128,128,128],[42,80,160,240,162,185,255,205,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[244,1,255,128,128,128,128,128,128,128,128],[238,1,255,128,128,128,128,128,128,128,128]]]],li=[[[231,120,48,89,115,113,120,152,112],[152,179,64,126,170,118,46,70,95],[175,69,143,80,85,82,72,155,103],[56,58,10,171,218,189,17,13,152],[114,26,17,163,44,195,21,10,173],[121,24,80,195,26,62,44,64,85],[144,71,10,38,171,213,144,34,26],[170,46,55,19,136,160,33,206,71],[63,20,8,114,114,208,12,9,226],[81,40,11,96,182,84,29,16,36]],[[134,183,89,137,98,101,106,165,148],[72,187,100,130,157,111,32,75,80],[66,102,167,99,74,62,40,234,128],[41,53,9,178,241,141,26,8,107],[74,43,26,146,73,166,49,23,157],[65,38,105,160,51,52,31,115,128],[104,79,12,27,217,255,87,17,7],[87,68,71,44,114,51,15,186,23],[47,41,14,110,182,183,21,17,194],[66,45,25,102,197,189,23,18,22]],[[88,88,147,150,42,46,45,196,205],[43,97,183,117,85,38,35,179,61],[39,53,200,87,26,21,43,232,171],[56,34,51,104,114,102,29,93,77],[39,28,85,171,58,165,90,98,64],[34,22,116,206,23,34,43,166,73],[107,54,32,26,51,1,81,43,31],[68,25,106,22,64,171,36,225,114],[34,19,21,102,132,188,16,76,124],[62,18,78,95,85,57,50,48,51]],[[193,101,35,159,215,111,89,46,111],[60,148,31,172,219,228,21,18,111],[112,113,77,85,179,255,38,120,114],[40,42,1,196,245,209,10,25,109],[88,43,29,140,166,213,37,43,154],[61,63,30,155,67,45,68,1,209],[100,80,8,43,154,1,51,26,71],[142,78,78,16,255,128,34,197,171],[41,40,5,102,211,183,4,1,221],[51,50,17,168,209,192,23,25,82]],[[138,31,36,171,27,166,38,44,229],[67,87,58,169,82,115,26,59,179],[63,59,90,180,59,166,93,73,154],[40,40,21,116,143,209,34,39,175],[47,15,16,183,34,223,49,45,183],[46,17,33,183,6,98,15,32,183],[57,46,22,24,128,1,54,17,37],[65,32,73,115,28,128,23,128,205],[40,3,9,115,51,192,18,6,223],[87,37,9,115,59,77,64,21,47]],[[104,55,44,218,9,54,53,130,226],[64,90,70,205,40,41,23,26,57],[54,57,112,184,5,41,38,166,213],[30,34,26,133,152,116,10,32,134],[39,19,53,221,26,114,32,73,255],[31,9,65,234,2,15,1,118,73],[75,32,12,51,192,255,160,43,51],[88,31,35,67,102,85,55,186,85],[56,21,23,111,59,205,45,37,192],[55,38,70,124,73,102,1,34,98]],[[125,98,42,88,104,85,117,175,82],[95,84,53,89,128,100,113,101,45],[75,79,123,47,51,128,81,171,1],[57,17,5,71,102,57,53,41,49],[38,33,13,121,57,73,26,1,85],[41,10,67,138,77,110,90,47,114],[115,21,2,10,102,255,166,23,6],[101,29,16,10,85,128,101,196,26],[57,18,10,102,102,213,34,20,43],[117,20,15,36,163,128,68,1,26]],[[102,61,71,37,34,53,31,243,192],[69,60,71,38,73,119,28,222,37],[68,45,128,34,1,47,11,245,171],[62,17,19,70,146,85,55,62,70],[37,43,37,154,100,163,85,160,1],[63,9,92,136,28,64,32,201,85],[75,15,9,9,64,255,184,119,16],[86,6,28,5,64,255,25,248,1],[56,8,17,132,137,255,55,116,128],[58,15,20,82,135,57,26,121,40]],[[164,50,31,137,154,133,25,35,218],[51,103,44,131,131,123,31,6,158],[86,40,64,135,148,224,45,183,128],[22,26,17,131,240,154,14,1,209],[45,16,21,91,64,222,7,1,197],[56,21,39,155,60,138,23,102,213],[83,12,13,54,192,255,68,47,28],[85,26,85,85,128,128,32,146,171],[18,11,7,63,144,171,4,4,246],[35,27,10,146,174,171,12,26,128]],[[190,80,35,99,180,80,126,54,45],[85,126,47,87,176,51,41,20,32],[101,75,128,139,118,146,116,128,85],[56,41,15,176,236,85,37,9,62],[71,30,17,119,118,255,17,18,138],[101,38,60,138,55,70,43,26,142],[146,36,19,30,171,255,97,27,20],[138,45,61,62,219,1,81,188,64],[32,41,20,117,151,142,20,21,163],[112,19,12,61,195,128,48,4,24]]],ci=[[[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[176,246,255,255,255,255,255,255,255,255,255],[223,241,252,255,255,255,255,255,255,255,255],[249,253,253,255,255,255,255,255,255,255,255]],[[255,244,252,255,255,255,255,255,255,255,255],[234,254,254,255,255,255,255,255,255,255,255],[253,255,255,255,255,255,255,255,255,255,255]],[[255,246,254,255,255,255,255,255,255,255,255],[239,253,254,255,255,255,255,255,255,255,255],[254,255,254,255,255,255,255,255,255,255,255]],[[255,248,254,255,255,255,255,255,255,255,255],[251,255,254,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[251,254,254,255,255,255,255,255,255,255,255],[254,255,254,255,255,255,255,255,255,255,255]],[[255,254,253,255,254,255,255,255,255,255,255],[250,255,254,255,254,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[217,255,255,255,255,255,255,255,255,255,255],[225,252,241,253,255,255,254,255,255,255,255],[234,250,241,250,253,255,253,254,255,255,255]],[[255,254,255,255,255,255,255,255,255,255,255],[223,254,254,255,255,255,255,255,255,255,255],[238,253,254,254,255,255,255,255,255,255,255]],[[255,248,254,255,255,255,255,255,255,255,255],[249,254,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,255,255,255,255,255,255,255,255,255],[247,254,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[252,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,254,255,255,255,255,255,255,255,255],[253,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,253,255,255,255,255,255,255,255,255],[250,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[186,251,250,255,255,255,255,255,255,255,255],[234,251,244,254,255,255,255,255,255,255,255],[251,251,243,253,254,255,254,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[236,253,254,255,255,255,255,255,255,255,255],[251,253,253,254,254,255,255,255,255,255,255]],[[255,254,254,255,255,255,255,255,255,255,255],[254,254,254,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,255,255,255,255,255,255,255,255,255],[254,254,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[248,255,255,255,255,255,255,255,255,255,255],[250,254,252,254,255,255,255,255,255,255,255],[248,254,249,253,255,255,255,255,255,255,255]],[[255,253,253,255,255,255,255,255,255,255,255],[246,253,253,255,255,255,255,255,255,255,255],[252,254,251,254,254,255,255,255,255,255,255]],[[255,254,252,255,255,255,255,255,255,255,255],[248,254,253,255,255,255,255,255,255,255,255],[253,255,254,254,255,255,255,255,255,255,255]],[[255,251,254,255,255,255,255,255,255,255,255],[245,251,254,255,255,255,255,255,255,255,255],[253,253,254,255,255,255,255,255,255,255,255]],[[255,251,253,255,255,255,255,255,255,255,255],[252,253,254,255,255,255,255,255,255,255,255],[255,254,255,255,255,255,255,255,255,255,255]],[[255,252,255,255,255,255,255,255,255,255,255],[249,255,254,255,255,255,255,255,255,255,255],[255,255,254,255,255,255,255,255,255,255,255]],[[255,255,253,255,255,255,255,255,255,255,255],[250,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]]],ui=[0,1,2,3,6,4,5,6,6,6,6,6,6,6,6,7,0],di=[],hi=[],pi=[],fi=1,vi=2,mi=[],gi=[];bn("UpsampleRgbLinePair",Nn,3),bn("UpsampleBgrLinePair",In,3),bn("UpsampleRgbaLinePair",Mn,4),bn("UpsampleBgraLinePair",Sn,4),bn("UpsampleArgbLinePair",Cn,4),bn("UpsampleRgba4444LinePair",kn,2),bn("UpsampleRgb565LinePair",An,2);var bi=e.UpsampleRgbLinePair,yi=e.UpsampleBgrLinePair,wi=e.UpsampleRgbaLinePair,_i=e.UpsampleBgraLinePair,Ei=e.UpsampleArgbLinePair,Pi=e.UpsampleRgba4444LinePair,Ni=e.UpsampleRgb565LinePair,Ii=16,Ai=1<<Ii-1,ki=-227,Ci=482,Si=6,Mi=0,xi=o(256),Oi=o(256),Di=o(256),Ti=o(256),ji=o(Ci-ki),Li=o(Ci-ki);xn("YuvToRgbRow",Nn,3),xn("YuvToBgrRow",In,3),xn("YuvToRgbaRow",Mn,4),xn("YuvToBgraRow",Sn,4),xn("YuvToArgbRow",Cn,4),xn("YuvToRgba4444Row",kn,2),xn("YuvToRgb565Row",An,2);var Vi=[0,4,8,12,128,132,136,140,256,260,264,268,384,388,392,396],Bi=[0,2,8],Ui=[8,7,6,4,4,2,2,2,1,1,1,1],zi=1;this.WebPDecodeRGBA=function(e,n,a,i,o){var r=Va,s=new nn,l=new re;s.ba=l,l.S=r,l.width=[l.width],l.height=[l.height];var c=l.width,u=l.height,d=new se;if(null==d||null==e)var h=2;else t(null!=d),h=jn(e,n,a,d.width,d.height,d.Pd,d.Qd,d.format,null);if(0!=h?c=0:(null!=c&&(c[0]=d.width[0]),null!=u&&(u[0]=d.height[0]),c=1),c){l.width=l.width[0],l.height=l.height[0],null!=i&&(i[0]=l.width),null!=o&&(o[0]=l.height);e:{if(i=new He,(o=new an).data=e,o.w=n,o.ha=a,o.kd=1,n=[0],t(null!=o),(0==(e=jn(o.data,o.w,o.ha,null,null,null,n,null,o))||7==e)&&n[0]&&(e=4),0==(n=e)){if(t(null!=s),i.data=o.data,i.w=o.w+o.offset,i.ha=o.ha-o.offset,i.put=pe,i.ac=he,i.bc=fe,i.ma=s,o.xa){if(null==(e=Ce())){s=1;break e}if(function(e,n){var a=[0],i=[0],o=[0];t:for(;;){if(null==e)return 0;if(null==n)return e.a=2,0;if(e.l=n,e.a=0,g(e.m,n.data,n.w,n.ha),!ve(e.m,a,i,o)){e.a=3;break t}if(e.xb=vi,n.width=a[0],n.height=i[0],!Se(a[0],i[0],1,e,null))break t;return 1}return t(0!=e.a),0}(e,i)){if(i=0==(n=Bn(i.width,i.height,s.Oa,s.ba))){t:{i=e;n:for(;;){if(null==i){i=0;break t}if(t(null!=i.s.yc),t(null!=i.s.Ya),t(0<i.s.Wb),t(null!=(a=i.l)),t(null!=(o=a.ma)),0!=i.xb){if(i.ca=o.ba,i.tb=o.tb,t(null!=i.ca),!Ln(o.Oa,a,Ua)){i.a=2;break n}if(!Me(i,a.width))break n;if(a.da)break n;if((a.da||ae(i.ca.S))&&gn(),11>i.ca.S||(alert("todo:WebPInitConvertARGBToYUV"),null!=i.ca.f.kb.F&&gn()),i.Pb&&0<i.s.ua&&null==i.s.vb.X&&!D(i.s.vb,i.s.Wa.Xa)){i.a=1;break n}i.xb=0}if(!Ae(i,i.V,i.Ba,i.c,i.i,a.o,Ee))break n;o.Dc=i.Ma,i=1;break t}t(0!=i.a),i=0}i=!i}i&&(n=e.a)}else n=e.a}else{if(null==(e=new Ge)){s=1;break e}if(e.Fa=o.na,e.P=o.P,e.qc=o.Sa,Je(e,i)){if(0==(n=Bn(i.width,i.height,s.Oa,s.ba))){if(e.Aa=0,a=s.Oa,t(null!=(o=e)),null!=a){if(0<(c=0>(c=a.Md)?0:100<c?255:255*c/100)){for(u=d=0;4>u;++u)12>(h=o.pb[u]).lc&&(h.ia=c*Ui[0>h.lc?0:h.lc]>>3),d|=h.ia;d&&(alert("todo:VP8InitRandom"),o.ia=1)}o.Ga=a.Id,100<o.Ga?o.Ga=100:0>o.Ga&&(o.Ga=0)}Ze(e,i)||(n=e.a)}}else n=e.a}0==n&&null!=s.Oa&&s.Oa.fd&&(n=Vn(s.ba))}s=n}r=0!=s?null:11>r?l.f.RGBA.eb:l.f.kb.y}else r=null;return r};var Ri=[3,4,3,4,4,2,2,4,4,4,2,1,1]};function c(e,t){for(var n="",a=0;a<4;a++)n+=String.fromCharCode(e[t++]);return n}function u(e,t){return(e[t+0]|e[t+1]<<8|e[t+2]<<16)>>>0}function d(e,t){return(e[t+0]|e[t+1]<<8|e[t+2]<<16|e[t+3]<<24)>>>0}new l;var h=[0],p=[0],f=[],v=new l,m=e,g=function(e,t){var n={},a=0,i=!1,o=0,r=0;if(n.frames=[],!
234
+ /** @license
235
+ * Copyright (c) 2017 Dominik Homberger
236
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
237
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
238
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
239
+ https://webpjs.appspot.com
240
+ WebPRiffParser dominikhlbg@gmail.com
241
+ */
242
+ function(e,t){for(var n=0;n<4;n++)if(e[t+n]!="RIFF".charCodeAt(n))return!0;return!1}(e,t)){var s,l;for(d(e,t+=4),t+=8;t<e.length;){var h=c(e,t),p=d(e,t+=4);t+=4;var f=p+(1&p);switch(h){case"VP8 ":case"VP8L":void 0===n.frames[a]&&(n.frames[a]={}),(g=n.frames[a]).src_off=i?r:t-8,g.src_size=o+p+8,a++,i&&(i=!1,o=0,r=0);break;case"VP8X":(g=n.header={}).feature_flags=e[t];var v=t+4;g.canvas_width=1+u(e,v),v+=3,g.canvas_height=1+u(e,v),v+=3;break;case"ALPH":i=!0,o=f+8,r=t-8;break;case"ANIM":(g=n.header).bgcolor=d(e,t),v=t+4,g.loop_count=(s=e)[(l=v)+0]|s[l+1]<<8,v+=2;break;case"ANMF":var m,g;(g=n.frames[a]={}).offset_x=2*u(e,t),t+=3,g.offset_y=2*u(e,t),t+=3,g.width=1+u(e,t),t+=3,g.height=1+u(e,t),t+=3,g.duration=u(e,t),t+=3,m=e[t++],g.dispose=1&m,g.blend=m>>1&1}"ANMF"!=h&&(t+=f)}return n}}(m,0);g.response=m,g.rgbaoutput=!0,g.dataurl=!1;var b=g.header?g.header:null,y=g.frames?g.frames:null;if(b){b.loop_counter=b.loop_count,h=[b.canvas_height],p=[b.canvas_width];for(var w=0;w<y.length&&0!=y[w].blend;w++);}var _=y[0],E=v.WebPDecodeRGBA(m,_.src_off,_.src_size,p,h);_.rgba=E,_.imgwidth=p[0],_.imgheight=h[0];for(var P=0;P<p[0]*h[0]*4;P++)f[P]=E[P];return this.width=p,this.height=h,this.data=f,this}!function(e){var t=function(t,a,l,c){var u=4,d=o;switch(c){case e.image_compression.FAST:u=1,d=i;break;case e.image_compression.MEDIUM:u=6,d=r;break;case e.image_compression.SLOW:u=9,d=s}var h=Ks(t=n(t,a,l,d),{level:u});return e.__addimage__.arrayBufferToBinaryString(h)},n=function(e,t,n,a){for(var i,o,r,s=e.length/t,l=new Uint8Array(e.length+s),d=c(),h=0;h<s;h+=1){if(r=h*t,i=e.subarray(r,r+t),a)l.set(a(i,n,o),r+h);else{for(var p,f=d.length,v=[];p<f;p+=1)v[p]=d[p](i,n,o);var m=u(v.concat());l.set(v[m],r+h)}o=i}return l},a=function(e){var t=Array.apply([],e);return t.unshift(0),t},i=function(e,t){var n,a=[],i=e.length;a[0]=1;for(var o=0;o<i;o+=1)n=e[o-t]||0,a[o+1]=e[o]-n+256&255;return a},o=function(e,t,n){var a,i=[],o=e.length;i[0]=2;for(var r=0;r<o;r+=1)a=n&&n[r]||0,i[r+1]=e[r]-a+256&255;return i},r=function(e,t,n){var a,i,o=[],r=e.length;o[0]=3;for(var s=0;s<r;s+=1)a=e[s-t]||0,i=n&&n[s]||0,o[s+1]=e[s]+256-(a+i>>>1)&255;return o},s=function(e,t,n){var a,i,o,r,s=[],c=e.length;s[0]=4;for(var u=0;u<c;u+=1)a=e[u-t]||0,i=n&&n[u]||0,o=n&&n[u-t]||0,r=l(a,i,o),s[u+1]=e[u]-r+256&255;return s},l=function(e,t,n){if(e===t&&t===n)return e;var a=Math.abs(t-n),i=Math.abs(e-n),o=Math.abs(e+t-n-n);return a<=i&&a<=o?e:i<=o?t:n},c=function(){return[a,i,o,r,s]},u=function(e){var t=e.map(function(e){return e.reduce(function(e,t){return e+Math.abs(t)},0)});return t.indexOf(Math.min.apply(null,t))};e.processPNG=function(n,a,i,o){var r,s,l,c,u,d,h,p,f,v,m,g,b,y,w,_=this.decode.FLATE_DECODE,E="";if(this.__addimage__.isArrayBuffer(n)&&(n=new Uint8Array(n)),this.__addimage__.isArrayBufferView(n)){if(n=(l=new qc(n)).imgData,s=l.bits,r=l.colorSpace,u=l.colors,-1!==[4,6].indexOf(l.colorType)){if(8===l.bits){f=(p=32==l.pixelBitlength?new Uint32Array(l.decodePixels().buffer):16==l.pixelBitlength?new Uint16Array(l.decodePixels().buffer):new Uint8Array(l.decodePixels().buffer)).length,m=new Uint8Array(f*l.colors),v=new Uint8Array(f);var P,N=l.pixelBitlength-l.bits;for(y=0,w=0;y<f;y++){for(b=p[y],P=0;P<N;)m[w++]=b>>>P&255,P+=l.bits;v[y]=b>>>P&255}}if(16===l.bits){f=(p=new Uint32Array(l.decodePixels().buffer)).length,m=new Uint8Array(f*(32/l.pixelBitlength)*l.colors),v=new Uint8Array(f*(32/l.pixelBitlength)),g=l.colors>1,y=0,w=0;for(var I=0;y<f;)b=p[y++],m[w++]=b>>>0&255,g&&(m[w++]=b>>>16&255,b=p[y++],m[w++]=b>>>0&255),v[I++]=b>>>16&255;s=8}o!==e.image_compression.NONE?(n=t(m,l.width*l.colors,l.colors,o),h=t(v,l.width,1,o)):(n=m,h=v,_=void 0)}if(3===l.colorType&&(r=this.color_spaces.INDEXED,d=l.palette,l.transparency.indexed)){var A=l.transparency.indexed,k=0;for(y=0,f=A.length;y<f;++y)k+=A[y];if((k/=255)==f-1&&-1!==A.indexOf(0))c=[A.indexOf(0)];else if(k!==f){for(p=l.decodePixels(),v=new Uint8Array(p.length),y=0,f=p.length;y<f;y++)v[y]=A[p[y]];h=t(v,l.width,1)}}var C=function(t){var n;switch(t){case e.image_compression.FAST:n=11;break;case e.image_compression.MEDIUM:n=13;break;case e.image_compression.SLOW:n=14;break;default:n=12}return n}(o);return _===this.decode.FLATE_DECODE&&(E="/Predictor "+C+" "),E+="/Colors "+u+" /BitsPerComponent "+s+" /Columns "+l.width,(this.__addimage__.isArrayBuffer(n)||this.__addimage__.isArrayBufferView(n))&&(n=this.__addimage__.arrayBufferToBinaryString(n)),(h&&this.__addimage__.isArrayBuffer(h)||this.__addimage__.isArrayBufferView(h))&&(h=this.__addimage__.arrayBufferToBinaryString(h)),{alias:i,data:n,index:a,filter:_,decodeParameters:E,transparency:c,palette:d,sMask:h,predictor:C,width:l.width,height:l.height,bitsPerComponent:s,colorSpace:r}}}}(Dl.API),function(e){e.processGIF89A=function(t,n,a,i){var o=new Wc(t),r=o.width,s=o.height,l=[];o.decodeAndBlitFrameRGBA(0,l);var c={data:l,width:r,height:s},u=new Gc(100).encode(c,100);return e.processJPEG.call(this,u,n,a,i)},e.processGIF87A=e.processGIF89A}(Dl.API),Yc.prototype.parseHeader=function(){if(this.fileSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.reserved=this.datav.getUint32(this.pos,!0),this.pos+=4,this.offset=this.datav.getUint32(this.pos,!0),this.pos+=4,this.headerSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.width=this.datav.getUint32(this.pos,!0),this.pos+=4,this.height=this.datav.getInt32(this.pos,!0),this.pos+=4,this.planes=this.datav.getUint16(this.pos,!0),this.pos+=2,this.bitPP=this.datav.getUint16(this.pos,!0),this.pos+=2,this.compress=this.datav.getUint32(this.pos,!0),this.pos+=4,this.rawSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.hr=this.datav.getUint32(this.pos,!0),this.pos+=4,this.vr=this.datav.getUint32(this.pos,!0),this.pos+=4,this.colors=this.datav.getUint32(this.pos,!0),this.pos+=4,this.importantColors=this.datav.getUint32(this.pos,!0),this.pos+=4,16===this.bitPP&&this.is_with_alpha&&(this.bitPP=15),this.bitPP<15){var e=0===this.colors?1<<this.bitPP:this.colors;this.palette=new Array(e);for(var t=0;t<e;t++){var n=this.datav.getUint8(this.pos++,!0),a=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),o=this.datav.getUint8(this.pos++,!0);this.palette[t]={red:i,green:a,blue:n,quad:o}}}this.height<0&&(this.height*=-1,this.bottom_up=!1)},Yc.prototype.parseBGR=function(){this.pos=this.offset;try{var e="bit"+this.bitPP,t=this.width*this.height*4;this.data=new Uint8Array(t),this[e]()}catch(e){nl.log("bit decode error:"+e)}},Yc.prototype.bit1=function(){var e,t=Math.ceil(this.width/8),n=t%4;for(e=this.height-1;e>=0;e--){for(var a=this.bottom_up?e:this.height-1-e,i=0;i<t;i++)for(var o=this.datav.getUint8(this.pos++,!0),r=a*this.width*4+8*i*4,s=0;s<8&&8*i+s<this.width;s++){var l=this.palette[o>>7-s&1];this.data[r+4*s]=l.blue,this.data[r+4*s+1]=l.green,this.data[r+4*s+2]=l.red,this.data[r+4*s+3]=255}0!==n&&(this.pos+=4-n)}},Yc.prototype.bit4=function(){for(var e=Math.ceil(this.width/2),t=e%4,n=this.height-1;n>=0;n--){for(var a=this.bottom_up?n:this.height-1-n,i=0;i<e;i++){var o=this.datav.getUint8(this.pos++,!0),r=a*this.width*4+2*i*4,s=o>>4,l=15&o,c=this.palette[s];if(this.data[r]=c.blue,this.data[r+1]=c.green,this.data[r+2]=c.red,this.data[r+3]=255,2*i+1>=this.width)break;c=this.palette[l],this.data[r+4]=c.blue,this.data[r+4+1]=c.green,this.data[r+4+2]=c.red,this.data[r+4+3]=255}0!==t&&(this.pos+=4-t)}},Yc.prototype.bit8=function(){for(var e=this.width%4,t=this.height-1;t>=0;t--){for(var n=this.bottom_up?t:this.height-1-t,a=0;a<this.width;a++){var i=this.datav.getUint8(this.pos++,!0),o=n*this.width*4+4*a;if(i<this.palette.length){var r=this.palette[i];this.data[o]=r.red,this.data[o+1]=r.green,this.data[o+2]=r.blue,this.data[o+3]=255}else this.data[o]=255,this.data[o+1]=255,this.data[o+2]=255,this.data[o+3]=255}0!==e&&(this.pos+=4-e)}},Yc.prototype.bit15=function(){for(var e=this.width%3,t=parseInt("11111",2),n=this.height-1;n>=0;n--){for(var a=this.bottom_up?n:this.height-1-n,i=0;i<this.width;i++){var o=this.datav.getUint16(this.pos,!0);this.pos+=2;var r=(o&t)/t*255|0,s=(o>>5&t)/t*255|0,l=(o>>10&t)/t*255|0,c=o>>15?255:0,u=a*this.width*4+4*i;this.data[u]=l,this.data[u+1]=s,this.data[u+2]=r,this.data[u+3]=c}this.pos+=e}},Yc.prototype.bit16=function(){for(var e=this.width%3,t=parseInt("11111",2),n=parseInt("111111",2),a=this.height-1;a>=0;a--){for(var i=this.bottom_up?a:this.height-1-a,o=0;o<this.width;o++){var r=this.datav.getUint16(this.pos,!0);this.pos+=2;var s=(r&t)/t*255|0,l=(r>>5&n)/n*255|0,c=(r>>11)/t*255|0,u=i*this.width*4+4*o;this.data[u]=c,this.data[u+1]=l,this.data[u+2]=s,this.data[u+3]=255}this.pos+=e}},Yc.prototype.bit24=function(){for(var e=this.height-1;e>=0;e--){for(var t=this.bottom_up?e:this.height-1-e,n=0;n<this.width;n++){var a=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),o=this.datav.getUint8(this.pos++,!0),r=t*this.width*4+4*n;this.data[r]=o,this.data[r+1]=i,this.data[r+2]=a,this.data[r+3]=255}this.pos+=this.width%4}},Yc.prototype.bit32=function(){for(var e=this.height-1;e>=0;e--)for(var t=this.bottom_up?e:this.height-1-e,n=0;n<this.width;n++){var a=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),o=this.datav.getUint8(this.pos++,!0),r=this.datav.getUint8(this.pos++,!0),s=t*this.width*4+4*n;this.data[s]=o,this.data[s+1]=i,this.data[s+2]=a,this.data[s+3]=r}},Yc.prototype.getData=function(){return this.data},
243
+ /**
244
+ * @license
245
+ * Copyright (c) 2018 Aras Abbasi
246
+ *
247
+ * Licensed under the MIT License.
248
+ * http://opensource.org/licenses/mit-license
249
+ */
250
+ function(e){e.processBMP=function(t,n,a,i){var o=new Yc(t,!1),r=o.width,s=o.height,l={data:o.getData(),width:r,height:s},c=new Gc(100).encode(l,100);return e.processJPEG.call(this,c,n,a,i)}}(Dl.API),Xc.prototype.getData=function(){return this.data},
251
+ /**
252
+ * @license
253
+ * Copyright (c) 2019 Aras Abbasi
254
+ *
255
+ * Licensed under the MIT License.
256
+ * http://opensource.org/licenses/mit-license
257
+ */
258
+ function(e){e.processWEBP=function(t,n,a,i){var o=new Xc(t),r=o.width,s=o.height,l={data:o.getData(),width:r,height:s},c=new Gc(100).encode(l,100);return e.processJPEG.call(this,c,n,a,i)}}(Dl.API),Dl.API.processRGBA=function(e,t,n){for(var a=e.data,i=a.length,o=new Uint8Array(i/4*3),r=new Uint8Array(i/4),s=0,l=0,c=0;c<i;c+=4){var u=a[c],d=a[c+1],h=a[c+2],p=a[c+3];o[s++]=u,o[s++]=d,o[s++]=h,r[l++]=p}var f=this.__addimage__.arrayBufferToBinaryString(o);return{alpha:this.__addimage__.arrayBufferToBinaryString(r),data:f,index:t,alias:n,colorSpace:"DeviceRGB",bitsPerComponent:8,width:e.width,height:e.height}},Dl.API.setLanguage=function(e){return void 0===this.internal.languageSettings&&(this.internal.languageSettings={},this.internal.languageSettings.isSubscribed=!1),void 0!=={af:"Afrikaans",sq:"Albanian",ar:"Arabic (Standard)","ar-DZ":"Arabic (Algeria)","ar-BH":"Arabic (Bahrain)","ar-EG":"Arabic (Egypt)","ar-IQ":"Arabic (Iraq)","ar-JO":"Arabic (Jordan)","ar-KW":"Arabic (Kuwait)","ar-LB":"Arabic (Lebanon)","ar-LY":"Arabic (Libya)","ar-MA":"Arabic (Morocco)","ar-OM":"Arabic (Oman)","ar-QA":"Arabic (Qatar)","ar-SA":"Arabic (Saudi Arabia)","ar-SY":"Arabic (Syria)","ar-TN":"Arabic (Tunisia)","ar-AE":"Arabic (U.A.E.)","ar-YE":"Arabic (Yemen)",an:"Aragonese",hy:"Armenian",as:"Assamese",ast:"Asturian",az:"Azerbaijani",eu:"Basque",be:"Belarusian",bn:"Bengali",bs:"Bosnian",br:"Breton",bg:"Bulgarian",my:"Burmese",ca:"Catalan",ch:"Chamorro",ce:"Chechen",zh:"Chinese","zh-HK":"Chinese (Hong Kong)","zh-CN":"Chinese (PRC)","zh-SG":"Chinese (Singapore)","zh-TW":"Chinese (Taiwan)",cv:"Chuvash",co:"Corsican",cr:"Cree",hr:"Croatian",cs:"Czech",da:"Danish",nl:"Dutch (Standard)","nl-BE":"Dutch (Belgian)",en:"English","en-AU":"English (Australia)","en-BZ":"English (Belize)","en-CA":"English (Canada)","en-IE":"English (Ireland)","en-JM":"English (Jamaica)","en-NZ":"English (New Zealand)","en-PH":"English (Philippines)","en-ZA":"English (South Africa)","en-TT":"English (Trinidad & Tobago)","en-GB":"English (United Kingdom)","en-US":"English (United States)","en-ZW":"English (Zimbabwe)",eo:"Esperanto",et:"Estonian",fo:"Faeroese",fj:"Fijian",fi:"Finnish",fr:"French (Standard)","fr-BE":"French (Belgium)","fr-CA":"French (Canada)","fr-FR":"French (France)","fr-LU":"French (Luxembourg)","fr-MC":"French (Monaco)","fr-CH":"French (Switzerland)",fy:"Frisian",fur:"Friulian",gd:"Gaelic (Scots)","gd-IE":"Gaelic (Irish)",gl:"Galacian",ka:"Georgian",de:"German (Standard)","de-AT":"German (Austria)","de-DE":"German (Germany)","de-LI":"German (Liechtenstein)","de-LU":"German (Luxembourg)","de-CH":"German (Switzerland)",el:"Greek",gu:"Gujurati",ht:"Haitian",he:"Hebrew",hi:"Hindi",hu:"Hungarian",is:"Icelandic",id:"Indonesian",iu:"Inuktitut",ga:"Irish",it:"Italian (Standard)","it-CH":"Italian (Switzerland)",ja:"Japanese",kn:"Kannada",ks:"Kashmiri",kk:"Kazakh",km:"Khmer",ky:"Kirghiz",tlh:"Klingon",ko:"Korean","ko-KP":"Korean (North Korea)","ko-KR":"Korean (South Korea)",la:"Latin",lv:"Latvian",lt:"Lithuanian",lb:"Luxembourgish",mk:"North Macedonia",ms:"Malay",ml:"Malayalam",mt:"Maltese",mi:"Maori",mr:"Marathi",mo:"Moldavian",nv:"Navajo",ng:"Ndonga",ne:"Nepali",no:"Norwegian",nb:"Norwegian (Bokmal)",nn:"Norwegian (Nynorsk)",oc:"Occitan",or:"Oriya",om:"Oromo",fa:"Persian","fa-IR":"Persian/Iran",pl:"Polish",pt:"Portuguese","pt-BR":"Portuguese (Brazil)",pa:"Punjabi","pa-IN":"Punjabi (India)","pa-PK":"Punjabi (Pakistan)",qu:"Quechua",rm:"Rhaeto-Romanic",ro:"Romanian","ro-MO":"Romanian (Moldavia)",ru:"Russian","ru-MO":"Russian (Moldavia)",sz:"Sami (Lappish)",sg:"Sango",sa:"Sanskrit",sc:"Sardinian",sd:"Sindhi",si:"Singhalese",sr:"Serbian",sk:"Slovak",sl:"Slovenian",so:"Somani",sb:"Sorbian",es:"Spanish","es-AR":"Spanish (Argentina)","es-BO":"Spanish (Bolivia)","es-CL":"Spanish (Chile)","es-CO":"Spanish (Colombia)","es-CR":"Spanish (Costa Rica)","es-DO":"Spanish (Dominican Republic)","es-EC":"Spanish (Ecuador)","es-SV":"Spanish (El Salvador)","es-GT":"Spanish (Guatemala)","es-HN":"Spanish (Honduras)","es-MX":"Spanish (Mexico)","es-NI":"Spanish (Nicaragua)","es-PA":"Spanish (Panama)","es-PY":"Spanish (Paraguay)","es-PE":"Spanish (Peru)","es-PR":"Spanish (Puerto Rico)","es-ES":"Spanish (Spain)","es-UY":"Spanish (Uruguay)","es-VE":"Spanish (Venezuela)",sx:"Sutu",sw:"Swahili",sv:"Swedish","sv-FI":"Swedish (Finland)","sv-SV":"Swedish (Sweden)",ta:"Tamil",tt:"Tatar",te:"Teluga",th:"Thai",tig:"Tigre",ts:"Tsonga",tn:"Tswana",tr:"Turkish",tk:"Turkmen",uk:"Ukrainian",hsb:"Upper Sorbian",ur:"Urdu",ve:"Venda",vi:"Vietnamese",vo:"Volapuk",wa:"Walloon",cy:"Welsh",xh:"Xhosa",ji:"Yiddish",zu:"Zulu"}[e]&&(this.internal.languageSettings.languageCode=e,!1===this.internal.languageSettings.isSubscribed&&(this.internal.events.subscribe("putCatalog",function(){this.internal.write("/Lang ("+this.internal.languageSettings.languageCode+")")}),this.internal.languageSettings.isSubscribed=!0)),this},Uc=Dl.API,zc=Uc.getCharWidthsArray=function(e,t){var n,a,i=(t=t||{}).font||this.internal.getFont(),o=t.fontSize||this.internal.getFontSize(),r=t.charSpace||this.internal.getCharSpace(),s=t.widths?t.widths:i.metadata.Unicode.widths,l=s.fof?s.fof:1,c=t.kerning?t.kerning:i.metadata.Unicode.kerning,u=c.fof?c.fof:1,d=!1!==t.doKerning,h=0,p=e.length,f=0,v=s[0]||l,m=[];for(n=0;n<p;n++)a=e.charCodeAt(n),"function"==typeof i.metadata.widthOfString?m.push((i.metadata.widthOfGlyph(i.metadata.characterToGlyph(a))+r*(1e3/o)||0)/1e3):(h=d&&"object"===ss(c[a])&&!isNaN(parseInt(c[a][f],10))?c[a][f]/u:0,m.push((s[a]||v)/l+h)),f=a;return m},Rc=Uc.getStringUnitWidth=function(e,t){var n=(t=t||{}).fontSize||this.internal.getFontSize(),a=t.font||this.internal.getFont(),i=t.charSpace||this.internal.getCharSpace();return Uc.processArabic&&(e=Uc.processArabic(e)),"function"==typeof a.metadata.widthOfString?a.metadata.widthOfString(e,n,i)/n:zc.apply(this,arguments).reduce(function(e,t){return e+t},0)},Fc=function(e,t,n,a){for(var i=[],o=0,r=e.length,s=0;o!==r&&s+t[o]<n;)s+=t[o],o++;i.push(e.slice(0,o));var l=o;for(s=0;o!==r;)s+t[o]>a&&(i.push(e.slice(l,o)),s=0,l=o),s+=t[o],o++;return l!==o&&i.push(e.slice(l,o)),i},$c=function(e,t,n){n||(n={});var a,i,o,r,s,l,c,u=[],d=[u],h=n.textIndent||0,p=0,f=0,v=e.split(" "),m=zc.apply(this,[" ",n])[0];if(l=-1===n.lineIndent?v[0].length+2:n.lineIndent||0){var g=Array(l).join(" "),b=[];v.map(function(e){(e=e.split(/\s*\n/)).length>1?b=b.concat(e.map(function(e,t){return(t&&e.length?"\n":"")+e})):b.push(e[0])}),v=b,l=Rc.apply(this,[g,n])}for(o=0,r=v.length;o<r;o++){var y=0;if(a=v[o],l&&"\n"==a[0]&&(a=a.substr(1),y=1),h+p+(f=(i=zc.apply(this,[a,n])).reduce(function(e,t){return e+t},0))>t||y){if(f>t){for(s=Fc.apply(this,[a,i,t-(h+p),t]),u.push(s.shift()),u=[s.pop()];s.length;)d.push([s.shift()]);f=i.slice(a.length-(u[0]?u[0].length:0)).reduce(function(e,t){return e+t},0)}else u=[a];d.push(u),h=f+l,p=m}else u.push(a),h+=p+f,p=m}return c=l?function(e,t){return(t?g:"")+e.join(" ")}:function(e){return e.join(" ")},d.map(c)},Uc.splitTextToSize=function(e,t,n){var a,i=(n=n||{}).fontSize||this.internal.getFontSize(),o=function(e){if(e.widths&&e.kerning)return{widths:e.widths,kerning:e.kerning};var t=this.internal.getFont(e.fontName,e.fontStyle);return t.metadata.Unicode?{widths:t.metadata.Unicode.widths||{0:1},kerning:t.metadata.Unicode.kerning||{}}:{font:t.metadata,fontSize:this.internal.getFontSize(),charSpace:this.internal.getCharSpace()}}.call(this,n);a=Array.isArray(e)?e:String(e).split(/\r?\n/);var r=1*this.internal.scaleFactor*t/i;o.textIndent=n.textIndent?1*n.textIndent*this.internal.scaleFactor/i:0,o.lineIndent=n.lineIndent;var s,l,c=[];for(s=0,l=a.length;s<l;s++)c=c.concat($c.apply(this,[a[s],r,o]));return c},function(e){e.__fontmetrics__=e.__fontmetrics__||{};for(var t="klmnopqrstuvwxyz",n={},a={},i=0;i<16;i++)n[t[i]]="0123456789abcdef"[i],a["0123456789abcdef"[i]]=t[i];var o=function(e){return"0x"+parseInt(e,10).toString(16)},r=e.__fontmetrics__.compress=function(e){var t,n,i,s,l=["{"];for(var c in e){if(t=e[c],isNaN(parseInt(c,10))?n="'"+c+"'":(c=parseInt(c,10),n=(n=o(c).slice(2)).slice(0,-1)+a[n.slice(-1)]),"number"==typeof t)t<0?(i=o(t).slice(3),s="-"):(i=o(t).slice(2),s=""),i=s+i.slice(0,-1)+a[i.slice(-1)];else{if("object"!==ss(t))throw new Error("Don't know what to do with value type "+ss(t)+".");i=r(t)}l.push(n+i)}return l.push("}"),l.join("")},s=e.__fontmetrics__.uncompress=function(e){if("string"!=typeof e)throw new Error("Invalid argument passed to uncompress.");for(var t,a,i,o,r={},s=1,l=r,c=[],u="",d="",h=e.length-1,p=1;p<h;p+=1)"'"==(o=e[p])?t?(i=t.join(""),t=void 0):t=[]:t?t.push(o):"{"==o?(c.push([l,i]),l={},i=void 0):"}"==o?((a=c.pop())[0][a[1]]=l,i=void 0,l=a[0]):"-"==o?s=-1:void 0===i?n.hasOwnProperty(o)?(u+=n[o],i=parseInt(u,16)*s,s=1,u=""):u+=o:n.hasOwnProperty(o)?(d+=n[o],l[i]=parseInt(d,16)*s,s=1,i=void 0,d=""):d+=o;return r},l={codePages:["WinAnsiEncoding"],WinAnsiEncoding:s("{19m8n201n9q201o9r201s9l201t9m201u8m201w9n201x9o201y8o202k8q202l8r202m9p202q8p20aw8k203k8t203t8v203u9v2cq8s212m9t15m8w15n9w2dw9s16k8u16l9u17s9z17x8y17y9y}")},c={Unicode:{Courier:l,"Courier-Bold":l,"Courier-BoldOblique":l,"Courier-Oblique":l,Helvetica:l,"Helvetica-Bold":l,"Helvetica-BoldOblique":l,"Helvetica-Oblique":l,"Times-Roman":l,"Times-Bold":l,"Times-BoldItalic":l,"Times-Italic":l}},u={Unicode:{"Courier-Oblique":s("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-BoldItalic":s("{'widths'{k3o2q4ycx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2r202m2n2n3m2o3m2p5n202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5n4l4m4m4m4n4m4o4s4p4m4q4m4r4s4s4y4t2r4u3m4v4m4w3x4x5t4y4s4z4s5k3x5l4s5m4m5n3r5o3x5p4s5q4m5r5t5s4m5t3x5u3x5v2l5w1w5x2l5y3t5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q2l6r3m6s3r6t1w6u1w6v3m6w1w6x4y6y3r6z3m7k3m7l3m7m2r7n2r7o1w7p3r7q2w7r4m7s3m7t2w7u2r7v2n7w1q7x2n7y3t202l3mcl4mal2ram3man3mao3map3mar3mas2lat4uau1uav3maw3way4uaz2lbk2sbl3t'fof'6obo2lbp3tbq3mbr1tbs2lbu1ybv3mbz3mck4m202k3mcm4mcn4mco4mcp4mcq5ycr4mcs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz2w203k6o212m6o2dw2l2cq2l3t3m3u2l17s3x19m3m}'kerning'{cl{4qu5kt5qt5rs17ss5ts}201s{201ss}201t{cks4lscmscnscoscpscls2wu2yu201ts}201x{2wu2yu}2k{201ts}2w{4qx5kx5ou5qx5rs17su5tu}2x{17su5tu5ou}2y{4qx5kx5ou5qx5rs17ss5ts}'fof'-6ofn{17sw5tw5ou5qw5rs}7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qs}3v{17su5tu5os5qs}7p{17su5tu}ck{4qu5kt5qt5rs17ss5ts}4l{4qu5kt5qt5rs17ss5ts}cm{4qu5kt5qt5rs17ss5ts}cn{4qu5kt5qt5rs17ss5ts}co{4qu5kt5qt5rs17ss5ts}cp{4qu5kt5qt5rs17ss5ts}6l{4qu5ou5qw5rt17su5tu}5q{ckuclucmucnucoucpu4lu}5r{ckuclucmucnucoucpu4lu}7q{cksclscmscnscoscps4ls}6p{4qu5ou5qw5rt17sw5tw}ek{4qu5ou5qw5rt17su5tu}el{4qu5ou5qw5rt17su5tu}em{4qu5ou5qw5rt17su5tu}en{4qu5ou5qw5rt17su5tu}eo{4qu5ou5qw5rt17su5tu}ep{4qu5ou5qw5rt17su5tu}es{17ss5ts5qs4qu}et{4qu5ou5qw5rt17sw5tw}eu{4qu5ou5qw5rt17ss5ts}ev{17ss5ts5qs4qu}6z{17sw5tw5ou5qw5rs}fm{17sw5tw5ou5qw5rs}7n{201ts}fo{17sw5tw5ou5qw5rs}fp{17sw5tw5ou5qw5rs}fq{17sw5tw5ou5qw5rs}7r{cksclscmscnscoscps4ls}fs{17sw5tw5ou5qw5rs}ft{17su5tu}fu{17su5tu}fv{17su5tu}fw{17su5tu}fz{cksclscmscnscoscps4ls}}}"),"Helvetica-Bold":s("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),Courier:s("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-BoldOblique":s("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Bold":s("{'widths'{k3q2q5ncx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2l202m2n2n3m2o3m2p6o202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5x4l4s4m4m4n4s4o4s4p4m4q3x4r4y4s4y4t2r4u3m4v4y4w4m4x5y4y4s4z4y5k3x5l4y5m4s5n3r5o4m5p4s5q4s5r6o5s4s5t4s5u4m5v2l5w1w5x2l5y3u5z3m6k2l6l3m6m3r6n2w6o3r6p2w6q2l6r3m6s3r6t1w6u2l6v3r6w1w6x5n6y3r6z3m7k3r7l3r7m2w7n2r7o2l7p3r7q3m7r4s7s3m7t3m7u2w7v2r7w1q7x2r7y3o202l3mcl4sal2lam3man3mao3map3mar3mas2lat4uau1yav3maw3tay4uaz2lbk2sbl3t'fof'6obo2lbp3rbr1tbs2lbu2lbv3mbz3mck4s202k3mcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3rek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3m3u2l17s4s19m3m}'kerning'{cl{4qt5ks5ot5qy5rw17sv5tv}201t{cks4lscmscnscoscpscls4wv}2k{201ts}2w{4qu5ku7mu5os5qx5ru17su5tu}2x{17su5tu5ou5qs}2y{4qv5kv7mu5ot5qz5ru17su5tu}'fof'-6o7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qu}3v{17su5tu5os5qu}fu{17su5tu5ou5qu}7p{17su5tu5ou5qu}ck{4qt5ks5ot5qy5rw17sv5tv}4l{4qt5ks5ot5qy5rw17sv5tv}cm{4qt5ks5ot5qy5rw17sv5tv}cn{4qt5ks5ot5qy5rw17sv5tv}co{4qt5ks5ot5qy5rw17sv5tv}cp{4qt5ks5ot5qy5rw17sv5tv}6l{17st5tt5ou5qu}17s{ckuclucmucnucoucpu4lu4wu}5o{ckuclucmucnucoucpu4lu4wu}5q{ckzclzcmzcnzcozcpz4lz4wu}5r{ckxclxcmxcnxcoxcpx4lx4wu}5t{ckuclucmucnucoucpu4lu4wu}7q{ckuclucmucnucoucpu4lu}6p{17sw5tw5ou5qu}ek{17st5tt5qu}el{17st5tt5ou5qu}em{17st5tt5qu}en{17st5tt5qu}eo{17st5tt5qu}ep{17st5tt5ou5qu}es{17ss5ts5qu}et{17sw5tw5ou5qu}eu{17sw5tw5ou5qu}ev{17ss5ts5qu}6z{17sw5tw5ou5qu5rs}fm{17sw5tw5ou5qu5rs}fn{17sw5tw5ou5qu5rs}fo{17sw5tw5ou5qu5rs}fp{17sw5tw5ou5qu5rs}fq{17sw5tw5ou5qu5rs}7r{cktcltcmtcntcotcpt4lt5os}fs{17sw5tw5ou5qu5rs}ft{17su5tu5ou5qu}7m{5os}fv{17su5tu5ou5qu}fw{17su5tu5ou5qu}fz{cksclscmscnscoscps4ls}}}"),Symbol:s("{'widths'{k3uaw4r19m3m2k1t2l2l202m2y2n3m2p5n202q6o3k3m2s2l2t2l2v3r2w1t3m3m2y1t2z1wbk2sbl3r'fof'6o3n3m3o3m3p3m3q3m3r3m3s3m3t3m3u1w3v1w3w3r3x3r3y3r3z2wbp3t3l3m5v2l5x2l5z3m2q4yfr3r7v3k7w1o7x3k}'kerning'{'fof'-6o}}"),Helvetica:s("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}"),"Helvetica-BoldOblique":s("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),ZapfDingbats:s("{'widths'{k4u2k1w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-Bold":s("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Italic":s("{'widths'{k3n2q4ycx2l201n3m201o5t201s2l201t2l201u2l201w3r201x3r201y3r2k1t2l2l202m2n2n3m2o3m2p5n202q5t2r1p2s2l2t2l2u3m2v4n2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w4n3x4n3y4n3z3m4k5w4l3x4m3x4n4m4o4s4p3x4q3x4r4s4s4s4t2l4u2w4v4m4w3r4x5n4y4m4z4s5k3x5l4s5m3x5n3m5o3r5p4s5q3x5r5n5s3x5t3r5u3r5v2r5w1w5x2r5y2u5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q1w6r3m6s3m6t1w6u1w6v2w6w1w6x4s6y3m6z3m7k3m7l3m7m2r7n2r7o1w7p3m7q2w7r4m7s2w7t2w7u2r7v2s7w1v7x2s7y3q202l3mcl3xal2ram3man3mao3map3mar3mas2lat4wau1vav3maw4nay4waz2lbk2sbl4n'fof'6obo2lbp3mbq3obr1tbs2lbu1zbv3mbz3mck3x202k3mcm3xcn3xco3xcp3xcq5tcr4mcs3xct3xcu3xcv3xcw2l2m2ucy2lcz2ldl4mdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr4nfs3mft3mfu3mfv3mfw3mfz2w203k6o212m6m2dw2l2cq2l3t3m3u2l17s3r19m3m}'kerning'{cl{5kt4qw}201s{201sw}201t{201tw2wy2yy6q-t}201x{2wy2yy}2k{201tw}2w{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}2x{17ss5ts5os}2y{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}'fof'-6o6t{17ss5ts5qs}7t{5os}3v{5qs}7p{17su5tu5qs}ck{5kt4qw}4l{5kt4qw}cm{5kt4qw}cn{5kt4qw}co{5kt4qw}cp{5kt4qw}6l{4qs5ks5ou5qw5ru17su5tu}17s{2ks}5q{ckvclvcmvcnvcovcpv4lv}5r{ckuclucmucnucoucpu4lu}5t{2ks}6p{4qs5ks5ou5qw5ru17su5tu}ek{4qs5ks5ou5qw5ru17su5tu}el{4qs5ks5ou5qw5ru17su5tu}em{4qs5ks5ou5qw5ru17su5tu}en{4qs5ks5ou5qw5ru17su5tu}eo{4qs5ks5ou5qw5ru17su5tu}ep{4qs5ks5ou5qw5ru17su5tu}es{5ks5qs4qs}et{4qs5ks5ou5qw5ru17su5tu}eu{4qs5ks5qw5ru17su5tu}ev{5ks5qs4qs}ex{17ss5ts5qs}6z{4qv5ks5ou5qw5ru17su5tu}fm{4qv5ks5ou5qw5ru17su5tu}fn{4qv5ks5ou5qw5ru17su5tu}fo{4qv5ks5ou5qw5ru17su5tu}fp{4qv5ks5ou5qw5ru17su5tu}fq{4qv5ks5ou5qw5ru17su5tu}7r{5os}fs{4qv5ks5ou5qw5ru17su5tu}ft{17su5tu5qs}fu{17su5tu5qs}fv{17su5tu5qs}fw{17su5tu5qs}}}"),"Times-Roman":s("{'widths'{k3n2q4ycx2l201n3m201o6o201s2l201t2l201u2l201w2w201x2w201y2w2k1t2l2l202m2n2n3m2o3m2p5n202q6o2r1m2s2l2t2l2u3m2v3s2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v1w3w3s3x3s3y3s3z2w4k5w4l4s4m4m4n4m4o4s4p3x4q3r4r4s4s4s4t2l4u2r4v4s4w3x4x5t4y4s4z4s5k3r5l4s5m4m5n3r5o3x5p4s5q4s5r5y5s4s5t4s5u3x5v2l5w1w5x2l5y2z5z3m6k2l6l2w6m3m6n2w6o3m6p2w6q2l6r3m6s3m6t1w6u1w6v3m6w1w6x4y6y3m6z3m7k3m7l3m7m2l7n2r7o1w7p3m7q3m7r4s7s3m7t3m7u2w7v3k7w1o7x3k7y3q202l3mcl4sal2lam3man3mao3map3mar3mas2lat4wau1vav3maw3say4waz2lbk2sbl3s'fof'6obo2lbp3mbq2xbr1tbs2lbu1zbv3mbz2wck4s202k3mcm4scn4sco4scp4scq5tcr4mcs3xct3xcu3xcv3xcw2l2m2tcy2lcz2ldl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek2wel2wem2wen2weo2wep2weq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr3sfs3mft3mfu3mfv3mfw3mfz3m203k6o212m6m2dw2l2cq2l3t3m3u1w17s4s19m3m}'kerning'{cl{4qs5ku17sw5ou5qy5rw201ss5tw201ws}201s{201ss}201t{ckw4lwcmwcnwcowcpwclw4wu201ts}2k{201ts}2w{4qs5kw5os5qx5ru17sx5tx}2x{17sw5tw5ou5qu}2y{4qs5kw5os5qx5ru17sx5tx}'fof'-6o7t{ckuclucmucnucoucpu4lu5os5rs}3u{17su5tu5qs}3v{17su5tu5qs}7p{17sw5tw5qs}ck{4qs5ku17sw5ou5qy5rw201ss5tw201ws}4l{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cm{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cn{4qs5ku17sw5ou5qy5rw201ss5tw201ws}co{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cp{4qs5ku17sw5ou5qy5rw201ss5tw201ws}6l{17su5tu5os5qw5rs}17s{2ktclvcmvcnvcovcpv4lv4wuckv}5o{ckwclwcmwcnwcowcpw4lw4wu}5q{ckyclycmycnycoycpy4ly4wu5ms}5r{cktcltcmtcntcotcpt4lt4ws}5t{2ktclvcmvcnvcovcpv4lv4wuckv}7q{cksclscmscnscoscps4ls}6p{17su5tu5qw5rs}ek{5qs5rs}el{17su5tu5os5qw5rs}em{17su5tu5os5qs5rs}en{17su5qs5rs}eo{5qs5rs}ep{17su5tu5os5qw5rs}es{5qs}et{17su5tu5qw5rs}eu{17su5tu5qs5rs}ev{5qs}6z{17sv5tv5os5qx5rs}fm{5os5qt5rs}fn{17sv5tv5os5qx5rs}fo{17sv5tv5os5qx5rs}fp{5os5qt5rs}fq{5os5qt5rs}7r{ckuclucmucnucoucpu4lu5os}fs{17sv5tv5os5qx5rs}ft{17ss5ts5qs}fu{17sw5tw5qs}fv{17sw5tw5qs}fw{17ss5ts5qs}fz{ckuclucmucnucoucpu4lu5os5rs}}}"),"Helvetica-Oblique":s("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}")}};e.events.push(["addFont",function(e){var t=e.font,n=u.Unicode[t.postScriptName];n&&(t.metadata.Unicode={},t.metadata.Unicode.widths=n.widths,t.metadata.Unicode.kerning=n.kerning);var a=c.Unicode[t.postScriptName];a&&(t.metadata.Unicode.encoding=a,t.encoding=a.codePages[0])}])}(Dl.API),
259
+ /**
260
+ * @license
261
+ * Licensed under the MIT License.
262
+ * http://opensource.org/licenses/mit-license
263
+ */
264
+ function(e){var t=function(e){for(var t=e.length,n=new Uint8Array(t),a=0;a<t;a++)n[a]=e.charCodeAt(a);return n};e.API.events.push(["addFont",function(n){var a=void 0,i=n.font,o=n.instance;if(!i.isStandardFont){if(void 0===o)throw new Error("Font does not exist in vFS, import fonts or remove declaration doc.addFont('"+i.postScriptName+"').");if("string"!=typeof(a=!1===o.existsFileInVFS(i.postScriptName)?o.loadFile(i.postScriptName):o.getFileFromVFS(i.postScriptName)))throw new Error("Font is not stored as string-data in vFS, import fonts or remove declaration doc.addFont('"+i.postScriptName+"').");!function(n,a){a=/^\x00\x01\x00\x00/.test(a)?t(a):t(rl(a)),n.metadata=e.API.TTFFont.open(a),n.metadata.Unicode=n.metadata.Unicode||{encoding:{},kerning:{},widths:[]},n.metadata.glyIdsUsed=[0]}(i,a)}}])}(Dl),Dl.API.addSvgAsImage=function(e,n,a,i,o,r,s,l){if(isNaN(n)||isNaN(a))throw nl.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN(i)||isNaN(o))throw nl.error("jsPDF.addSvgAsImage: Invalid measurements",arguments),new Error("Invalid measurements (width and/or height) passed to jsPDF.addSvgAsImage");var c=document.createElement("canvas");c.width=i,c.height=o;var u=c.getContext("2d");u.fillStyle="#fff",u.fillRect(0,0,c.width,c.height);var d={ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0},h=this;return(el.canvg?Promise.resolve(el.canvg):t.import("./index.es-_6ywDrFd.js")).catch(function(e){return Promise.reject(new Error("Could not load canvg: "+e))}).then(function(e){return e.default?e.default:e}).then(function(t){return t.fromString(u,e,d)},function(){return Promise.reject(new Error("Could not load canvg."))}).then(function(e){return e.render(d)}).then(function(){h.addImage(c.toDataURL("image/jpeg",1),n,a,i,o,s,l)})},Dl.API.putTotalPages=function(e){var t,n=0;parseInt(this.internal.getFont().id.substr(1),10)<15?(t=new RegExp(e,"g"),n=this.internal.getNumberOfPages()):(t=new RegExp(this.pdfEscape16(e,this.internal.getFont()),"g"),n=this.pdfEscape16(this.internal.getNumberOfPages()+"",this.internal.getFont()));for(var a=1;a<=this.internal.getNumberOfPages();a++)for(var i=0;i<this.internal.pages[a].length;i++)this.internal.pages[a][i]=this.internal.pages[a][i].replace(t,n);return this},Dl.API.viewerPreferences=function(e,t){var n;e=e||{},t=t||!1;var a,i,o,r={HideToolbar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideMenubar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideWindowUI:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},FitWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},CenterWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},DisplayDocTitle:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.4},NonFullScreenPageMode:{defaultValue:"UseNone",value:"UseNone",type:"name",explicitSet:!1,valueSet:["UseNone","UseOutlines","UseThumbs","UseOC"],pdfVersion:1.3},Direction:{defaultValue:"L2R",value:"L2R",type:"name",explicitSet:!1,valueSet:["L2R","R2L"],pdfVersion:1.3},ViewArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},ViewClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintScaling:{defaultValue:"AppDefault",value:"AppDefault",type:"name",explicitSet:!1,valueSet:["AppDefault","None"],pdfVersion:1.6},Duplex:{defaultValue:"",value:"none",type:"name",explicitSet:!1,valueSet:["Simplex","DuplexFlipShortEdge","DuplexFlipLongEdge","none"],pdfVersion:1.7},PickTrayByPDFSize:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.7},PrintPageRange:{defaultValue:"",value:"",type:"array",explicitSet:!1,valueSet:null,pdfVersion:1.7},NumCopies:{defaultValue:1,value:1,type:"integer",explicitSet:!1,valueSet:null,pdfVersion:1.7}},s=Object.keys(r),l=[],c=0,u=0,d=0;function h(e,t){var n,a=!1;for(n=0;n<e.length;n+=1)e[n]===t&&(a=!0);return a}if(void 0===this.internal.viewerpreferences&&(this.internal.viewerpreferences={},this.internal.viewerpreferences.configuration=JSON.parse(JSON.stringify(r)),this.internal.viewerpreferences.isSubscribed=!1),n=this.internal.viewerpreferences.configuration,"reset"===e||!0===t){var p=s.length;for(d=0;d<p;d+=1)n[s[d]].value=n[s[d]].defaultValue,n[s[d]].explicitSet=!1}if("object"===ss(e))for(i in e)if(o=e[i],h(s,i)&&void 0!==o){if("boolean"===n[i].type&&"boolean"==typeof o)n[i].value=o;else if("name"===n[i].type&&h(n[i].valueSet,o))n[i].value=o;else if("integer"===n[i].type&&Number.isInteger(o))n[i].value=o;else if("array"===n[i].type){for(c=0;c<o.length;c+=1)if(a=!0,1===o[c].length&&"number"==typeof o[c][0])l.push(String(o[c]-1));else if(o[c].length>1){for(u=0;u<o[c].length;u+=1)"number"!=typeof o[c][u]&&(a=!1);!0===a&&l.push([o[c][0]-1,o[c][1]-1].join(" "))}n[i].value="["+l.join(" ")+"]"}else n[i].value=n[i].defaultValue;n[i].explicitSet=!0}return!1===this.internal.viewerpreferences.isSubscribed&&(this.internal.events.subscribe("putCatalog",function(){var e,t=[];for(e in n)!0===n[e].explicitSet&&("name"===n[e].type?t.push("/"+e+" /"+n[e].value):t.push("/"+e+" "+n[e].value));0!==t.length&&this.internal.write("/ViewerPreferences\n<<\n"+t.join("\n")+"\n>>")}),this.internal.viewerpreferences.isSubscribed=!0),this.internal.viewerpreferences.configuration=n,this},
265
+ /** ====================================================================
266
+ * @license
267
+ * jsPDF XMP metadata plugin
268
+ * Copyright (c) 2016 Jussi Utunen, u-jussi@suomi24.fi
269
+ *
270
+ * Permission is hereby granted, free of charge, to any person obtaining
271
+ * a copy of this software and associated documentation files (the
272
+ * "Software"), to deal in the Software without restriction, including
273
+ * without limitation the rights to use, copy, modify, merge, publish,
274
+ * distribute, sublicense, and/or sell copies of the Software, and to
275
+ * permit persons to whom the Software is furnished to do so, subject to
276
+ * the following conditions:
277
+ *
278
+ * The above copyright notice and this permission notice shall be
279
+ * included in all copies or substantial portions of the Software.
280
+ *
281
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
282
+ * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
283
+ * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
284
+ * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
285
+ * LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
286
+ * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
287
+ * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
288
+ * ====================================================================
289
+ */
290
+ function(e){var t=function(){var e='<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"><rdf:Description rdf:about="" xmlns:jspdf="'+this.internal.__metadata__.namespaceuri+'"><jspdf:metadata>',t=unescape(encodeURIComponent('<x:xmpmeta xmlns:x="adobe:ns:meta/">')),n=unescape(encodeURIComponent(e)),a=unescape(encodeURIComponent(this.internal.__metadata__.metadata)),i=unescape(encodeURIComponent("</jspdf:metadata></rdf:Description></rdf:RDF>")),o=unescape(encodeURIComponent("</x:xmpmeta>")),r=n.length+a.length+i.length+t.length+o.length;this.internal.__metadata__.metadata_object_number=this.internal.newObject(),this.internal.write("<< /Type /Metadata /Subtype /XML /Length "+r+" >>"),this.internal.write("stream"),this.internal.write(t+n+a+i+o),this.internal.write("endstream"),this.internal.write("endobj")},n=function(){this.internal.__metadata__.metadata_object_number&&this.internal.write("/Metadata "+this.internal.__metadata__.metadata_object_number+" 0 R")};e.addMetadata=function(e,a){return void 0===this.internal.__metadata__&&(this.internal.__metadata__={metadata:e,namespaceuri:a||"http://jspdf.default.namespaceuri/"},this.internal.events.subscribe("putCatalog",n),this.internal.events.subscribe("postPutResources",t)),this}}(Dl.API),function(e){var t=e.API,n=t.pdfEscape16=function(e,t){for(var n,a=t.metadata.Unicode.widths,i=["","0","00","000","0000"],o=[""],r=0,s=e.length;r<s;++r){if(n=t.metadata.characterToGlyph(e.charCodeAt(r)),t.metadata.glyIdsUsed.push(n),t.metadata.toUnicode[n]=e.charCodeAt(r),-1==a.indexOf(n)&&(a.push(n),a.push([parseInt(t.metadata.widthOfGlyph(n),10)])),"0"==n)return o.join("");n=n.toString(16),o.push(i[4-n.length],n)}return o.join("")},a=function(e){var t,n,a,i,o,r,s;for(o="/CIDInit /ProcSet findresource begin\n12 dict begin\nbegincmap\n/CIDSystemInfo <<\n /Registry (Adobe)\n /Ordering (UCS)\n /Supplement 0\n>> def\n/CMapName /Adobe-Identity-UCS def\n/CMapType 2 def\n1 begincodespacerange\n<0000><ffff>\nendcodespacerange",a=[],r=0,s=(n=Object.keys(e).sort(function(e,t){return e-t})).length;r<s;r++)t=n[r],a.length>=100&&(o+="\n"+a.length+" beginbfchar\n"+a.join("\n")+"\nendbfchar",a=[]),void 0!==e[t]&&null!==e[t]&&"function"==typeof e[t].toString&&(i=("0000"+e[t].toString(16)).slice(-4),t=("0000"+(+t).toString(16)).slice(-4),a.push("<"+t+"><"+i+">"));return a.length&&(o+="\n"+a.length+" beginbfchar\n"+a.join("\n")+"\nendbfchar\n"),o+"endcmap\nCMapName currentdict /CMap defineresource pop\nend\nend"};t.events.push(["putFont",function(t){!function(t){var n=t.font,i=t.out,o=t.newObject,r=t.putStream;if(n.metadata instanceof e.API.TTFFont&&"Identity-H"===n.encoding){for(var s=n.metadata.Unicode.widths,l=n.metadata.subset.encode(n.metadata.glyIdsUsed,1),c="",u=0;u<l.length;u++)c+=String.fromCharCode(l[u]);var d=o();r({data:c,addLength1:!0,objectId:d}),i("endobj");var h=o();r({data:a(n.metadata.toUnicode),addLength1:!0,objectId:h}),i("endobj");var p=o();i("<<"),i("/Type /FontDescriptor"),i("/FontName /"+kl(n.fontName)),i("/FontFile2 "+d+" 0 R"),i("/FontBBox "+e.API.PDFObject.convert(n.metadata.bbox)),i("/Flags "+n.metadata.flags),i("/StemV "+n.metadata.stemV),i("/ItalicAngle "+n.metadata.italicAngle),i("/Ascent "+n.metadata.ascender),i("/Descent "+n.metadata.decender),i("/CapHeight "+n.metadata.capHeight),i(">>"),i("endobj");var f=o();i("<<"),i("/Type /Font"),i("/BaseFont /"+kl(n.fontName)),i("/FontDescriptor "+p+" 0 R"),i("/W "+e.API.PDFObject.convert(s)),i("/CIDToGIDMap /Identity"),i("/DW 1000"),i("/Subtype /CIDFontType2"),i("/CIDSystemInfo"),i("<<"),i("/Supplement 0"),i("/Registry (Adobe)"),i("/Ordering ("+n.encoding+")"),i(">>"),i(">>"),i("endobj"),n.objectNumber=o(),i("<<"),i("/Type /Font"),i("/Subtype /Type0"),i("/ToUnicode "+h+" 0 R"),i("/BaseFont /"+kl(n.fontName)),i("/Encoding /"+n.encoding),i("/DescendantFonts ["+f+" 0 R]"),i(">>"),i("endobj"),n.isAlreadyPutted=!0}}(t)}]),t.events.push(["putFont",function(t){!function(t){var n=t.font,i=t.out,o=t.newObject,r=t.putStream;if(n.metadata instanceof e.API.TTFFont&&"WinAnsiEncoding"===n.encoding){for(var s=n.metadata.rawData,l="",c=0;c<s.length;c++)l+=String.fromCharCode(s[c]);var u=o();r({data:l,addLength1:!0,objectId:u}),i("endobj");var d=o();r({data:a(n.metadata.toUnicode),addLength1:!0,objectId:d}),i("endobj");var h=o();i("<<"),i("/Descent "+n.metadata.decender),i("/CapHeight "+n.metadata.capHeight),i("/StemV "+n.metadata.stemV),i("/Type /FontDescriptor"),i("/FontFile2 "+u+" 0 R"),i("/Flags 96"),i("/FontBBox "+e.API.PDFObject.convert(n.metadata.bbox)),i("/FontName /"+kl(n.fontName)),i("/ItalicAngle "+n.metadata.italicAngle),i("/Ascent "+n.metadata.ascender),i(">>"),i("endobj"),n.objectNumber=o();for(var p=0;p<n.metadata.hmtx.widths.length;p++)n.metadata.hmtx.widths[p]=parseInt(n.metadata.hmtx.widths[p]*(1e3/n.metadata.head.unitsPerEm));i("<</Subtype/TrueType/Type/Font/ToUnicode "+d+" 0 R/BaseFont/"+kl(n.fontName)+"/FontDescriptor "+h+" 0 R/Encoding/"+n.encoding+" /FirstChar 29 /LastChar 255 /Widths "+e.API.PDFObject.convert(n.metadata.hmtx.widths)+">>"),i("endobj"),n.isAlreadyPutted=!0}}(t)}]);var i=function(e){var t,a=e.text||"",i=e.x,o=e.y,r=e.options||{},s=e.mutex||{},l=s.pdfEscape,c=s.activeFontKey,u=s.fonts,d=c,h="",p=0,f="",v=u[d].encoding;if("Identity-H"!==u[d].encoding)return{text:a,x:i,y:o,options:r,mutex:s};for(f=a,d=c,Array.isArray(a)&&(f=a[0]),p=0;p<f.length;p+=1)u[d].metadata.hasOwnProperty("cmap")&&(t=u[d].metadata.cmap.unicode.codeMap[f[p].charCodeAt(0)]),t||f[p].charCodeAt(0)<256&&u[d].metadata.hasOwnProperty("Unicode")?h+=f[p]:h+="";var m="";return parseInt(d.slice(1))<14||"WinAnsiEncoding"===v?m=l(h,d).split("").map(function(e){return e.charCodeAt(0).toString(16)}).join(""):"Identity-H"===v&&(m=n(h,u[d])),s.isHex=!0,{text:m,x:i,y:o,options:r,mutex:s}};t.events.push(["postProcessText",function(e){var t=e.text||"",n=[],a={text:t,x:e.x,y:e.y,options:e.options,mutex:e.mutex};if(Array.isArray(t)){var o=0;for(o=0;o<t.length;o+=1)Array.isArray(t[o])&&3===t[o].length?n.push([i(Object.assign({},a,{text:t[o][0]})).text,t[o][1],t[o][2]]):n.push(i(Object.assign({},a,{text:t[o]})).text);e.text=n}else e.text=i(Object.assign({},a,{text:t})).text}])}(Dl),
291
+ /**
292
+ * @license
293
+ * jsPDF virtual FileSystem functionality
294
+ *
295
+ * Licensed under the MIT License.
296
+ * http://opensource.org/licenses/mit-license
297
+ */
298
+ function(e){var t=function(){return void 0===this.internal.vFS&&(this.internal.vFS={}),!0};e.existsFileInVFS=function(e){return t.call(this),void 0!==this.internal.vFS[e]},e.addFileToVFS=function(e,n){return t.call(this),this.internal.vFS[e]=n,this},e.getFileFromVFS=function(e){return t.call(this),void 0!==this.internal.vFS[e]?this.internal.vFS[e]:null}}(Dl.API),
299
+ /**
300
+ * @license
301
+ * Unicode Bidi Engine based on the work of Alex Shensis (@asthensis)
302
+ * MIT License
303
+ */
304
+ function(e){e.__bidiEngine__=e.prototype.__bidiEngine__=function(e){var n,a,i,o,r,s,l,c=t,u=[[0,3,0,1,0,0,0],[0,3,0,1,2,2,0],[0,3,0,17,2,0,1],[0,3,5,5,4,1,0],[0,3,21,21,4,0,1],[0,3,5,5,4,2,0]],d=[[2,0,1,1,0,1,0],[2,0,1,1,0,2,0],[2,0,2,1,3,2,0],[2,0,2,33,3,1,1]],h={L:0,R:1,EN:2,AN:3,N:4,B:5,S:6},p={0:0,5:1,6:2,7:3,32:4,251:5,254:6,255:7},f=["(",")","(","<",">","<","[","]","[","{","}","{","«","»","«","‹","›","‹","⁅","⁆","⁅","⁽","⁾","⁽","₍","₎","₍","≤","≥","≤","〈","〉","〈","﹙","﹚","﹙","﹛","﹜","﹛","﹝","﹞","﹝","﹤","﹥","﹤"],v=new RegExp(/^([1-4|9]|1[0-9]|2[0-9]|3[0168]|4[04589]|5[012]|7[78]|159|16[0-9]|17[0-2]|21[569]|22[03489]|250)$/),m=!1,g=0;this.__bidiEngine__={};var b=function(e){var t=e.charCodeAt(),n=t>>8,a=p[n];return void 0!==a?c[256*a+(255&t)]:252===n||253===n?"AL":v.test(n)?"L":8===n?"R":"N"},y=function(e){for(var t,n=0;n<e.length;n++){if("L"===(t=b(e.charAt(n))))return!1;if("R"===t)return!0}return!1},w=function(e,t,r,s){var l,c,u,d,h=t[s];switch(h){case"L":case"R":case"LRE":case"RLE":case"LRO":case"RLO":case"PDF":m=!1;break;case"N":case"AN":break;case"EN":m&&(h="AN");break;case"AL":m=!0,h="R";break;case"WS":case"BN":h="N";break;case"CS":s<1||s+1>=t.length||"EN"!==(l=r[s-1])&&"AN"!==l||"EN"!==(c=t[s+1])&&"AN"!==c?h="N":m&&(c="AN"),h=c===l?c:"N";break;case"ES":h="EN"===(l=s>0?r[s-1]:"B")&&s+1<t.length&&"EN"===t[s+1]?"EN":"N";break;case"ET":if(s>0&&"EN"===r[s-1]){h="EN";break}if(m){h="N";break}for(u=s+1,d=t.length;u<d&&"ET"===t[u];)u++;h=u<d&&"EN"===t[u]?"EN":"N";break;case"NSM":if(i&&!o){for(d=t.length,u=s+1;u<d&&"NSM"===t[u];)u++;if(u<d){var p=e[s],f=p>=1425&&p<=2303||64286===p;if(l=t[u],f&&("R"===l||"AL"===l)){h="R";break}}}h=s<1||"B"===(l=t[s-1])?"N":r[s-1];break;case"B":m=!1,n=!0,h=g;break;case"S":a=!0,h="N"}return h},_=function(e,t,n){var a=e.split("");return n&&E(a,n,{hiLevel:g}),a.reverse(),t&&t.reverse(),a.join("")},E=function(e,t,i){var o,r,s,l,c,p=-1,f=e.length,v=0,y=[],_=g?d:u,E=[];for(m=!1,n=!1,a=!1,r=0;r<f;r++)E[r]=b(e[r]);for(s=0;s<f;s++){if(c=v,y[s]=w(e,E,y,s),o=240&(v=_[c][h[y[s]]]),v&=15,t[s]=l=_[v][5],o>0)if(16===o){for(r=p;r<s;r++)t[r]=1;p=-1}else p=-1;if(_[v][6])-1===p&&(p=s);else if(p>-1){for(r=p;r<s;r++)t[r]=l;p=-1}"B"===E[s]&&(t[s]=0),i.hiLevel|=l}a&&function(e,t,n){for(var a=0;a<n;a++)if("S"===e[a]){t[a]=g;for(var i=a-1;i>=0&&"WS"===e[i];i--)t[i]=g}}(E,t,f)},P=function(e,t,a,i,o){if(!(o.hiLevel<e)){if(1===e&&1===g&&!n)return t.reverse(),void(a&&a.reverse());for(var r,s,l,c,u=t.length,d=0;d<u;){if(i[d]>=e){for(l=d+1;l<u&&i[l]>=e;)l++;for(c=d,s=l-1;c<s;c++,s--)r=t[c],t[c]=t[s],t[s]=r,a&&(r=a[c],a[c]=a[s],a[s]=r);d=l}d++}}},N=function(e,t,n){var a=e.split(""),i={hiLevel:g};return n||(n=[]),E(a,n,i),function(e,t,n){if(0!==n.hiLevel&&l)for(var a,i=0;i<e.length;i++)1===t[i]&&(a=f.indexOf(e[i]))>=0&&(e[i]=f[a+1])}(a,n,i),P(2,a,t,n,i),P(1,a,t,n,i),a.join("")};return this.__bidiEngine__.doBidiReorder=function(e,t,n){if(function(e,t){if(t)for(var n=0;n<e.length;n++)t[n]=n;void 0===o&&(o=y(e)),void 0===s&&(s=y(e))}(e,t),i||!r||s)if(i&&r&&o^s)g=o?1:0,e=_(e,t,n);else if(!i&&r&&s)g=o?1:0,e=N(e,t,n),e=_(e,t);else if(!i||o||r||s){if(i&&!r&&o^s)e=_(e,t),o?(g=0,e=N(e,t,n)):(g=1,e=N(e,t,n),e=_(e,t));else if(i&&o&&!r&&s)g=1,e=N(e,t,n),e=_(e,t);else if(!i&&!r&&o^s){var a=l;o?(g=1,e=N(e,t,n),g=0,l=!1,e=N(e,t,n),l=a):(g=0,e=N(e,t,n),e=_(e,t),g=1,l=!1,e=N(e,t,n),l=a,e=_(e,t))}}else g=0,e=N(e,t,n);else g=o?1:0,e=N(e,t,n);return e},this.__bidiEngine__.setOptions=function(e){e&&(i=e.isInputVisual,r=e.isOutputVisual,o=e.isInputRtl,s=e.isOutputRtl,l=e.isSymmetricSwapping)},this.__bidiEngine__.setOptions(e),this.__bidiEngine__};var t=["BN","BN","BN","BN","BN","BN","BN","BN","BN","S","B","S","WS","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","B","B","B","S","WS","N","N","ET","ET","ET","N","N","N","N","N","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","BN","BN","BN","BN","BN","BN","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","CS","N","ET","ET","ET","ET","N","N","N","N","L","N","N","BN","N","N","ET","ET","EN","EN","N","L","N","N","N","EN","L","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","N","N","N","N","N","ET","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","R","NSM","R","NSM","NSM","R","NSM","NSM","R","NSM","N","N","N","N","N","N","N","N","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","N","N","N","N","N","R","R","R","R","R","N","N","N","N","N","N","N","N","N","N","N","AN","AN","AN","AN","AN","AN","N","N","AL","ET","ET","AL","CS","AL","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","AN","AN","AN","AN","AN","AN","AN","AN","AN","ET","AN","AN","AL","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","N","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","NSM","NSM","N","NSM","NSM","NSM","NSM","AL","AL","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","N","N","N","N","N","N","N","N","N","N","N","N","N","N","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","R","R","N","N","N","N","R","N","N","N","N","N","WS","WS","WS","WS","WS","WS","WS","WS","WS","WS","WS","BN","BN","BN","L","R","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","WS","B","LRE","RLE","PDF","LRO","RLO","CS","ET","ET","ET","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","CS","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","WS","BN","BN","BN","BN","BN","N","LRI","RLI","FSI","PDI","BN","BN","BN","BN","BN","BN","EN","L","N","N","EN","EN","EN","EN","EN","EN","ES","ES","N","N","N","L","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","ES","ES","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","L","L","N","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","N","N","N","N","N","R","NSM","R","R","R","R","R","R","R","R","R","R","ES","R","R","R","R","R","R","R","R","R","R","R","R","R","N","R","R","R","R","R","N","R","N","R","R","N","R","R","N","R","R","R","R","R","R","R","R","R","R","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","CS","N","CS","N","N","CS","N","N","N","N","N","N","N","N","N","ET","N","N","ES","ES","N","N","N","N","N","ET","ET","N","N","N","N","N","AL","AL","AL","AL","AL","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","N","BN","N","N","N","ET","ET","ET","N","N","N","N","N","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","L","L","L","L","L","L","N","N","L","L","L","L","L","L","N","N","L","L","L","L","L","L","N","N","L","L","L","N","N","N","ET","ET","N","N","N","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N"],n=new e.__bidiEngine__({isInputVisual:!0});e.API.events.push(["postProcessText",function(e){var t=e.text,a=(e.x,e.y,e.options||{}),i=(e.mutex,a.lang,[]);if(a.isInputVisual="boolean"!=typeof a.isInputVisual||a.isInputVisual,n.setOptions(a),"[object Array]"===Object.prototype.toString.call(t)){var o=0;for(i=[],o=0;o<t.length;o+=1)"[object Array]"===Object.prototype.toString.call(t[o])?i.push([n.doBidiReorder(t[o][0]),t[o][1],t[o][2]]):i.push([n.doBidiReorder(t[o])]);e.text=i}else e.text=n.doBidiReorder(t);n.setOptions({isInputVisual:!0})}])}(Dl),Dl.API.TTFFont=function(){function e(e){var t;if(this.rawData=e,t=this.contents=new Kc(e),this.contents.pos=4,"ttcf"===t.readString(4))throw new Error("TTCF not supported.");t.pos=0,this.parse(),this.subset=new mu(this),this.registerTTF()}return e.open=function(t){return new e(t)},e.prototype.parse=function(){return this.directory=new Qc(this.contents),this.head=new tu(this),this.name=new lu(this),this.cmap=new au(this),this.toUnicode={},this.hhea=new iu(this),this.maxp=new cu(this),this.hmtx=new uu(this),this.post=new ru(this),this.os2=new ou(this),this.loca=new vu(this),this.glyf=new hu(this),this.ascender=this.os2.exists&&this.os2.ascender||this.hhea.ascender,this.decender=this.os2.exists&&this.os2.decender||this.hhea.decender,this.lineGap=this.os2.exists&&this.os2.lineGap||this.hhea.lineGap,this.bbox=[this.head.xMin,this.head.yMin,this.head.xMax,this.head.yMax]},e.prototype.registerTTF=function(){var e,t,n,a,i;if(this.scaleFactor=1e3/this.head.unitsPerEm,this.bbox=function(){var t,n,a,i;for(i=[],t=0,n=(a=this.bbox).length;t<n;t++)e=a[t],i.push(Math.round(e*this.scaleFactor));return i}.call(this),this.stemV=0,this.post.exists?(n=255&(a=this.post.italic_angle),!!(32768&(t=a>>16))&&(t=-(1+(65535^t))),this.italicAngle=+(t+"."+n)):this.italicAngle=0,this.ascender=Math.round(this.ascender*this.scaleFactor),this.decender=Math.round(this.decender*this.scaleFactor),this.lineGap=Math.round(this.lineGap*this.scaleFactor),this.capHeight=this.os2.exists&&this.os2.capHeight||this.ascender,this.xHeight=this.os2.exists&&this.os2.xHeight||0,this.familyClass=(this.os2.exists&&this.os2.familyClass||0)>>8,this.isSerif=1===(i=this.familyClass)||2===i||3===i||4===i||5===i||7===i,this.isScript=10===this.familyClass,this.flags=0,this.post.isFixedPitch&&(this.flags|=1),this.isSerif&&(this.flags|=2),this.isScript&&(this.flags|=8),0!==this.italicAngle&&(this.flags|=64),this.flags|=32,!this.cmap.unicode)throw new Error("No unicode cmap for font")},e.prototype.characterToGlyph=function(e){var t;return(null!=(t=this.cmap.unicode)?t.codeMap[e]:void 0)||0},e.prototype.widthOfGlyph=function(e){var t;return t=1e3/this.head.unitsPerEm,this.hmtx.forGlyph(e).advance*t},e.prototype.widthOfString=function(e,t,n){var a,i,o,r;for(o=0,i=0,r=(e=""+e).length;0<=r?i<r:i>r;i=0<=r?++i:--i)a=e.charCodeAt(i),o+=this.widthOfGlyph(this.characterToGlyph(a))+n*(1e3/t)||0;return o*(t/1e3)},e.prototype.lineHeight=function(e,t){var n;return null==t&&(t=!1),n=t?this.lineGap:0,(this.ascender+n-this.decender)/1e3*e},e}();var Jc,Kc=function(){function e(e){this.data=null!=e?e:[],this.pos=0,this.length=this.data.length}return e.prototype.readByte=function(){return this.data[this.pos++]},e.prototype.writeByte=function(e){return this.data[this.pos++]=e},e.prototype.readUInt32=function(){return 16777216*this.readByte()+(this.readByte()<<16)+(this.readByte()<<8)+this.readByte()},e.prototype.writeUInt32=function(e){return this.writeByte(e>>>24&255),this.writeByte(e>>16&255),this.writeByte(e>>8&255),this.writeByte(255&e)},e.prototype.readInt32=function(){var e;return(e=this.readUInt32())>=2147483648?e-4294967296:e},e.prototype.writeInt32=function(e){return e<0&&(e+=4294967296),this.writeUInt32(e)},e.prototype.readUInt16=function(){return this.readByte()<<8|this.readByte()},e.prototype.writeUInt16=function(e){return this.writeByte(e>>8&255),this.writeByte(255&e)},e.prototype.readInt16=function(){var e;return(e=this.readUInt16())>=32768?e-65536:e},e.prototype.writeInt16=function(e){return e<0&&(e+=65536),this.writeUInt16(e)},e.prototype.readString=function(e){var t,n;for(n=[],t=0;0<=e?t<e:t>e;t=0<=e?++t:--t)n[t]=String.fromCharCode(this.readByte());return n.join("")},e.prototype.writeString=function(e){var t,n,a;for(a=[],t=0,n=e.length;0<=n?t<n:t>n;t=0<=n?++t:--t)a.push(this.writeByte(e.charCodeAt(t)));return a},e.prototype.readShort=function(){return this.readInt16()},e.prototype.writeShort=function(e){return this.writeInt16(e)},e.prototype.readLongLong=function(){var e,t,n,a,i,o,r,s;return e=this.readByte(),t=this.readByte(),n=this.readByte(),a=this.readByte(),i=this.readByte(),o=this.readByte(),r=this.readByte(),s=this.readByte(),128&e?-1*(72057594037927940*(255^e)+281474976710656*(255^t)+1099511627776*(255^n)+4294967296*(255^a)+16777216*(255^i)+65536*(255^o)+256*(255^r)+(255^s)+1):72057594037927940*e+281474976710656*t+1099511627776*n+4294967296*a+16777216*i+65536*o+256*r+s},e.prototype.writeLongLong=function(e){var t,n;return t=Math.floor(e/4294967296),n=4294967295&e,this.writeByte(t>>24&255),this.writeByte(t>>16&255),this.writeByte(t>>8&255),this.writeByte(255&t),this.writeByte(n>>24&255),this.writeByte(n>>16&255),this.writeByte(n>>8&255),this.writeByte(255&n)},e.prototype.readInt=function(){return this.readInt32()},e.prototype.writeInt=function(e){return this.writeInt32(e)},e.prototype.read=function(e){var t,n;for(t=[],n=0;0<=e?n<e:n>e;n=0<=e?++n:--n)t.push(this.readByte());return t},e.prototype.write=function(e){var t,n,a,i;for(i=[],n=0,a=e.length;n<a;n++)t=e[n],i.push(this.writeByte(t));return i},e}(),Qc=function(){var e;function t(e){var t,n,a;for(this.scalarType=e.readInt(),this.tableCount=e.readShort(),this.searchRange=e.readShort(),this.entrySelector=e.readShort(),this.rangeShift=e.readShort(),this.tables={},n=0,a=this.tableCount;0<=a?n<a:n>a;n=0<=a?++n:--n)t={tag:e.readString(4),checksum:e.readInt(),offset:e.readInt(),length:e.readInt()},this.tables[t.tag]=t}return t.prototype.encode=function(t){var n,a,i,o,r,s,l,c,u,d,h,p,f;for(f in h=Object.keys(t).length,s=Math.log(2),u=16*Math.floor(Math.log(h)/s),o=Math.floor(u/s),c=16*h-u,(a=new Kc).writeInt(this.scalarType),a.writeShort(h),a.writeShort(u),a.writeShort(o),a.writeShort(c),i=16*h,l=a.pos+i,r=null,p=[],t)for(d=t[f],a.writeString(f),a.writeInt(e(d)),a.writeInt(l),a.writeInt(d.length),p=p.concat(d),"head"===f&&(r=l),l+=d.length;l%4;)p.push(0),l++;return a.write(p),n=2981146554-e(a.data),a.pos=r+8,a.writeUInt32(n),a.data},e=function(e){var t,n,a,i;for(e=du.call(e);e.length%4;)e.push(0);for(a=new Kc(e),n=0,t=0,i=e.length;t<i;t=t+=4)n+=a.readUInt32();return 4294967295&n},t}(),Zc={}.hasOwnProperty,eu=function(e,t){for(var n in t)Zc.call(t,n)&&(e[n]=t[n]);function a(){this.constructor=e}return a.prototype=t.prototype,e.prototype=new a,e.__super__=t.prototype,e};Jc=function(){function e(e){var t;this.file=e,t=this.file.directory.tables[this.tag],this.exists=!!t,t&&(this.offset=t.offset,this.length=t.length,this.parse(this.file.contents))}return e.prototype.parse=function(){},e.prototype.encode=function(){},e.prototype.raw=function(){return this.exists?(this.file.contents.pos=this.offset,this.file.contents.read(this.length)):null},e}();var tu=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return eu(e,Jc),e.prototype.tag="head",e.prototype.parse=function(e){return e.pos=this.offset,this.version=e.readInt(),this.revision=e.readInt(),this.checkSumAdjustment=e.readInt(),this.magicNumber=e.readInt(),this.flags=e.readShort(),this.unitsPerEm=e.readShort(),this.created=e.readLongLong(),this.modified=e.readLongLong(),this.xMin=e.readShort(),this.yMin=e.readShort(),this.xMax=e.readShort(),this.yMax=e.readShort(),this.macStyle=e.readShort(),this.lowestRecPPEM=e.readShort(),this.fontDirectionHint=e.readShort(),this.indexToLocFormat=e.readShort(),this.glyphDataFormat=e.readShort()},e.prototype.encode=function(e){var t;return(t=new Kc).writeInt(this.version),t.writeInt(this.revision),t.writeInt(this.checkSumAdjustment),t.writeInt(this.magicNumber),t.writeShort(this.flags),t.writeShort(this.unitsPerEm),t.writeLongLong(this.created),t.writeLongLong(this.modified),t.writeShort(this.xMin),t.writeShort(this.yMin),t.writeShort(this.xMax),t.writeShort(this.yMax),t.writeShort(this.macStyle),t.writeShort(this.lowestRecPPEM),t.writeShort(this.fontDirectionHint),t.writeShort(e),t.writeShort(this.glyphDataFormat),t.data},e}(),nu=function(){function e(e,t){var n,a,i,o,r,s,l,c,u,d,h,p,f,v,m,g,b;switch(this.platformID=e.readUInt16(),this.encodingID=e.readShort(),this.offset=t+e.readInt(),u=e.pos,e.pos=this.offset,this.format=e.readUInt16(),this.length=e.readUInt16(),this.language=e.readUInt16(),this.isUnicode=3===this.platformID&&1===this.encodingID&&4===this.format||0===this.platformID&&4===this.format,this.codeMap={},this.format){case 0:for(s=0;s<256;++s)this.codeMap[s]=e.readByte();break;case 4:for(h=e.readUInt16(),d=h/2,e.pos+=6,i=function(){var t,n;for(n=[],s=t=0;0<=d?t<d:t>d;s=0<=d?++t:--t)n.push(e.readUInt16());return n}(),e.pos+=2,f=function(){var t,n;for(n=[],s=t=0;0<=d?t<d:t>d;s=0<=d?++t:--t)n.push(e.readUInt16());return n}(),l=function(){var t,n;for(n=[],s=t=0;0<=d?t<d:t>d;s=0<=d?++t:--t)n.push(e.readUInt16());return n}(),c=function(){var t,n;for(n=[],s=t=0;0<=d?t<d:t>d;s=0<=d?++t:--t)n.push(e.readUInt16());return n}(),a=(this.length-e.pos+this.offset)/2,r=function(){var t,n;for(n=[],s=t=0;0<=a?t<a:t>a;s=0<=a?++t:--t)n.push(e.readUInt16());return n}(),s=m=0,b=i.length;m<b;s=++m)for(v=i[s],n=g=p=f[s];p<=v?g<=v:g>=v;n=p<=v?++g:--g)0===c[s]?o=n+l[s]:0!==(o=r[c[s]/2+(n-p)-(d-s)]||0)&&(o+=l[s]),this.codeMap[n]=65535&o}e.pos=u}return e.encode=function(e,t){var n,a,i,o,r,s,l,c,u,d,h,p,f,v,m,g,b,y,w,_,E,P,N,I,A,k,C,S,M,x,O,D,T,j,L,V,B,U,z,R,F,$,q,W,H,G;switch(S=new Kc,o=Object.keys(e).sort(function(e,t){return e-t}),t){case"macroman":for(f=0,v=function(){var e=[];for(p=0;p<256;++p)e.push(0);return e}(),g={0:0},i={},M=0,T=o.length;M<T;M++)null==g[q=e[a=o[M]]]&&(g[q]=++f),i[a]={old:e[a],new:g[e[a]]},v[a]=g[e[a]];return S.writeUInt16(1),S.writeUInt16(0),S.writeUInt32(12),S.writeUInt16(0),S.writeUInt16(262),S.writeUInt16(0),S.write(v),{charMap:i,subtable:S.data,maxGlyphID:f+1};case"unicode":for(k=[],u=[],b=0,g={},n={},m=l=null,x=0,j=o.length;x<j;x++)null==g[w=e[a=o[x]]]&&(g[w]=++b),n[a]={old:w,new:g[w]},r=g[w]-a,null!=m&&r===l||(m&&u.push(m),k.push(a),l=r),m=a;for(m&&u.push(m),u.push(65535),k.push(65535),I=2*(N=k.length),P=2*Math.pow(Math.log(N)/Math.LN2,2),d=Math.log(P/2)/Math.LN2,E=2*N-P,s=[],_=[],h=[],p=O=0,L=k.length;O<L;p=++O){if(A=k[p],c=u[p],65535===A){s.push(0),_.push(0);break}if(A-(C=n[A].new)>=32768)for(s.push(0),_.push(2*(h.length+N-p)),a=D=A;A<=c?D<=c:D>=c;a=A<=c?++D:--D)h.push(n[a].new);else s.push(C-A),_.push(0)}for(S.writeUInt16(3),S.writeUInt16(1),S.writeUInt32(12),S.writeUInt16(4),S.writeUInt16(16+8*N+2*h.length),S.writeUInt16(0),S.writeUInt16(I),S.writeUInt16(P),S.writeUInt16(d),S.writeUInt16(E),F=0,V=u.length;F<V;F++)a=u[F],S.writeUInt16(a);for(S.writeUInt16(0),$=0,B=k.length;$<B;$++)a=k[$],S.writeUInt16(a);for(W=0,U=s.length;W<U;W++)r=s[W],S.writeUInt16(r);for(H=0,z=_.length;H<z;H++)y=_[H],S.writeUInt16(y);for(G=0,R=h.length;G<R;G++)f=h[G],S.writeUInt16(f);return{charMap:n,subtable:S.data,maxGlyphID:b+1}}},e}(),au=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return eu(e,Jc),e.prototype.tag="cmap",e.prototype.parse=function(e){var t,n,a;for(e.pos=this.offset,this.version=e.readUInt16(),a=e.readUInt16(),this.tables=[],this.unicode=null,n=0;0<=a?n<a:n>a;n=0<=a?++n:--n)t=new nu(e,this.offset),this.tables.push(t),t.isUnicode&&null==this.unicode&&(this.unicode=t);return!0},e.encode=function(e,t){var n,a;return null==t&&(t="macroman"),n=nu.encode(e,t),(a=new Kc).writeUInt16(0),a.writeUInt16(1),n.table=a.data.concat(n.subtable),n},e}(),iu=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return eu(e,Jc),e.prototype.tag="hhea",e.prototype.parse=function(e){return e.pos=this.offset,this.version=e.readInt(),this.ascender=e.readShort(),this.decender=e.readShort(),this.lineGap=e.readShort(),this.advanceWidthMax=e.readShort(),this.minLeftSideBearing=e.readShort(),this.minRightSideBearing=e.readShort(),this.xMaxExtent=e.readShort(),this.caretSlopeRise=e.readShort(),this.caretSlopeRun=e.readShort(),this.caretOffset=e.readShort(),e.pos+=8,this.metricDataFormat=e.readShort(),this.numberOfMetrics=e.readUInt16()},e}(),ou=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return eu(e,Jc),e.prototype.tag="OS/2",e.prototype.parse=function(e){if(e.pos=this.offset,this.version=e.readUInt16(),this.averageCharWidth=e.readShort(),this.weightClass=e.readUInt16(),this.widthClass=e.readUInt16(),this.type=e.readShort(),this.ySubscriptXSize=e.readShort(),this.ySubscriptYSize=e.readShort(),this.ySubscriptXOffset=e.readShort(),this.ySubscriptYOffset=e.readShort(),this.ySuperscriptXSize=e.readShort(),this.ySuperscriptYSize=e.readShort(),this.ySuperscriptXOffset=e.readShort(),this.ySuperscriptYOffset=e.readShort(),this.yStrikeoutSize=e.readShort(),this.yStrikeoutPosition=e.readShort(),this.familyClass=e.readShort(),this.panose=function(){var t,n;for(n=[],t=0;t<10;++t)n.push(e.readByte());return n}(),this.charRange=function(){var t,n;for(n=[],t=0;t<4;++t)n.push(e.readInt());return n}(),this.vendorID=e.readString(4),this.selection=e.readShort(),this.firstCharIndex=e.readShort(),this.lastCharIndex=e.readShort(),this.version>0&&(this.ascent=e.readShort(),this.descent=e.readShort(),this.lineGap=e.readShort(),this.winAscent=e.readShort(),this.winDescent=e.readShort(),this.codePageRange=function(){var t,n;for(n=[],t=0;t<2;t=++t)n.push(e.readInt());return n}(),this.version>1))return this.xHeight=e.readShort(),this.capHeight=e.readShort(),this.defaultChar=e.readShort(),this.breakChar=e.readShort(),this.maxContext=e.readShort()},e}(),ru=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return eu(e,Jc),e.prototype.tag="post",e.prototype.parse=function(e){var t,n,a;switch(e.pos=this.offset,this.format=e.readInt(),this.italicAngle=e.readInt(),this.underlinePosition=e.readShort(),this.underlineThickness=e.readShort(),this.isFixedPitch=e.readInt(),this.minMemType42=e.readInt(),this.maxMemType42=e.readInt(),this.minMemType1=e.readInt(),this.maxMemType1=e.readInt(),this.format){case 65536:case 196608:break;case 131072:var i;for(n=e.readUInt16(),this.glyphNameIndex=[],i=0;0<=n?i<n:i>n;i=0<=n?++i:--i)this.glyphNameIndex.push(e.readUInt16());for(this.names=[],a=[];e.pos<this.offset+this.length;)t=e.readByte(),a.push(this.names.push(e.readString(t)));return a;case 151552:return n=e.readUInt16(),this.offsets=e.read(n);case 262144:return this.map=function(){var t,n,a;for(a=[],i=t=0,n=this.file.maxp.numGlyphs;0<=n?t<n:t>n;i=0<=n?++t:--t)a.push(e.readUInt32());return a}.call(this)}},e}(),su=function(e,t){this.raw=e,this.length=e.length,this.platformID=t.platformID,this.encodingID=t.encodingID,this.languageID=t.languageID},lu=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return eu(e,Jc),e.prototype.tag="name",e.prototype.parse=function(e){var t,n,a,i,o,r,s,l,c,u,d;for(e.pos=this.offset,e.readShort(),t=e.readShort(),r=e.readShort(),n=[],i=0;0<=t?i<t:i>t;i=0<=t?++i:--i)n.push({platformID:e.readShort(),encodingID:e.readShort(),languageID:e.readShort(),nameID:e.readShort(),length:e.readShort(),offset:this.offset+r+e.readShort()});for(s={},i=c=0,u=n.length;c<u;i=++c)a=n[i],e.pos=a.offset,l=e.readString(a.length),o=new su(l,a),null==s[d=a.nameID]&&(s[d]=[]),s[a.nameID].push(o);this.strings=s,this.copyright=s[0],this.fontFamily=s[1],this.fontSubfamily=s[2],this.uniqueSubfamily=s[3],this.fontName=s[4],this.version=s[5];try{this.postscriptName=s[6][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}catch(e){this.postscriptName=s[4][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}return this.trademark=s[7],this.manufacturer=s[8],this.designer=s[9],this.description=s[10],this.vendorUrl=s[11],this.designerUrl=s[12],this.license=s[13],this.licenseUrl=s[14],this.preferredFamily=s[15],this.preferredSubfamily=s[17],this.compatibleFull=s[18],this.sampleText=s[19]},e}(),cu=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return eu(e,Jc),e.prototype.tag="maxp",e.prototype.parse=function(e){return e.pos=this.offset,this.version=e.readInt(),this.numGlyphs=e.readUInt16(),this.maxPoints=e.readUInt16(),this.maxContours=e.readUInt16(),this.maxCompositePoints=e.readUInt16(),this.maxComponentContours=e.readUInt16(),this.maxZones=e.readUInt16(),this.maxTwilightPoints=e.readUInt16(),this.maxStorage=e.readUInt16(),this.maxFunctionDefs=e.readUInt16(),this.maxInstructionDefs=e.readUInt16(),this.maxStackElements=e.readUInt16(),this.maxSizeOfInstructions=e.readUInt16(),this.maxComponentElements=e.readUInt16(),this.maxComponentDepth=e.readUInt16()},e}(),uu=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return eu(e,Jc),e.prototype.tag="hmtx",e.prototype.parse=function(e){var t,n,a,i,o,r,s;for(e.pos=this.offset,this.metrics=[],t=0,r=this.file.hhea.numberOfMetrics;0<=r?t<r:t>r;t=0<=r?++t:--t)this.metrics.push({advance:e.readUInt16(),lsb:e.readInt16()});for(a=this.file.maxp.numGlyphs-this.file.hhea.numberOfMetrics,this.leftSideBearings=function(){var n,i;for(i=[],t=n=0;0<=a?n<a:n>a;t=0<=a?++n:--n)i.push(e.readInt16());return i}(),this.widths=function(){var e,t,n,a;for(a=[],e=0,t=(n=this.metrics).length;e<t;e++)i=n[e],a.push(i.advance);return a}.call(this),n=this.widths[this.widths.length-1],s=[],t=o=0;0<=a?o<a:o>a;t=0<=a?++o:--o)s.push(this.widths.push(n));return s},e.prototype.forGlyph=function(e){return e in this.metrics?this.metrics[e]:{advance:this.metrics[this.metrics.length-1].advance,lsb:this.leftSideBearings[e-this.metrics.length]}},e}(),du=[].slice,hu=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return eu(e,Jc),e.prototype.tag="glyf",e.prototype.parse=function(){return this.cache={}},e.prototype.glyphFor=function(e){var t,n,a,i,o,r,s,l,c,u;return e in this.cache?this.cache[e]:(i=this.file.loca,t=this.file.contents,n=i.indexOf(e),0===(a=i.lengthOf(e))?this.cache[e]=null:(t.pos=this.offset+n,o=(r=new Kc(t.read(a))).readShort(),l=r.readShort(),u=r.readShort(),s=r.readShort(),c=r.readShort(),this.cache[e]=-1===o?new fu(r,l,u,s,c):new pu(r,o,l,u,s,c),this.cache[e]))},e.prototype.encode=function(e,t,n){var a,i,o,r,s;for(o=[],i=[],r=0,s=t.length;r<s;r++)a=e[t[r]],i.push(o.length),a&&(o=o.concat(a.encode(n)));return i.push(o.length),{table:o,offsets:i}},e}(),pu=function(){function e(e,t,n,a,i,o){this.raw=e,this.numberOfContours=t,this.xMin=n,this.yMin=a,this.xMax=i,this.yMax=o,this.compound=!1}return e.prototype.encode=function(){return this.raw.data},e}(),fu=function(){function e(e,t,n,a,i){var o,r;for(this.raw=e,this.xMin=t,this.yMin=n,this.xMax=a,this.yMax=i,this.compound=!0,this.glyphIDs=[],this.glyphOffsets=[],o=this.raw;r=o.readShort(),this.glyphOffsets.push(o.pos),this.glyphIDs.push(o.readUInt16()),32&r;)o.pos+=1&r?4:2,128&r?o.pos+=8:64&r?o.pos+=4:8&r&&(o.pos+=2)}return e.prototype.encode=function(){var e,t,n;for(t=new Kc(du.call(this.raw.data)),e=0,n=this.glyphIDs.length;e<n;++e)t.pos=this.glyphOffsets[e];return t.data},e}(),vu=function(){function e(){return e.__super__.constructor.apply(this,arguments)}return eu(e,Jc),e.prototype.tag="loca",e.prototype.parse=function(e){var t,n;return e.pos=this.offset,t=this.file.head.indexToLocFormat,this.offsets=0===t?function(){var t,a;for(a=[],n=0,t=this.length;n<t;n+=2)a.push(2*e.readUInt16());return a}.call(this):function(){var t,a;for(a=[],n=0,t=this.length;n<t;n+=4)a.push(e.readUInt32());return a}.call(this)},e.prototype.indexOf=function(e){return this.offsets[e]},e.prototype.lengthOf=function(e){return this.offsets[e+1]-this.offsets[e]},e.prototype.encode=function(e,t){for(var n=new Uint32Array(this.offsets.length),a=0,i=0,o=0;o<n.length;++o)if(n[o]=a,i<t.length&&t[i]==o){++i,n[o]=a;var r=this.offsets[o],s=this.offsets[o+1]-r;s>0&&(a+=s)}for(var l=new Array(4*n.length),c=0;c<n.length;++c)l[4*c+3]=255&n[c],l[4*c+2]=(65280&n[c])>>8,l[4*c+1]=(16711680&n[c])>>16,l[4*c]=(4278190080&n[c])>>24;return l},e}(),mu=function(){function e(e){this.font=e,this.subset={},this.unicodes={},this.next=33}return e.prototype.generateCmap=function(){var e,t,n,a,i;for(t in a=this.font.cmap.tables[0].codeMap,e={},i=this.subset)n=i[t],e[t]=a[n];return e},e.prototype.glyphsFor=function(e){var t,n,a,i,o,r,s;for(a={},o=0,r=e.length;o<r;o++)a[i=e[o]]=this.font.glyf.glyphFor(i);for(i in t=[],a)(null!=(n=a[i])?n.compound:void 0)&&t.push.apply(t,n.glyphIDs);if(t.length>0)for(i in s=this.glyphsFor(t))n=s[i],a[i]=n;return a},e.prototype.encode=function(e,t){var n,a,i,o,r,s,l,c,u,d,h,p,f,v,m;for(a in n=au.encode(this.generateCmap(),"unicode"),o=this.glyphsFor(e),h={0:0},m=n.charMap)h[(s=m[a]).old]=s.new;for(p in d=n.maxGlyphID,o)p in h||(h[p]=d++);return c=function(e){var t,n;for(t in n={},e)n[e[t]]=t;return n}(h),u=Object.keys(c).sort(function(e,t){return e-t}),f=function(){var e,t,n;for(n=[],e=0,t=u.length;e<t;e++)r=u[e],n.push(c[r]);return n}(),i=this.font.glyf.encode(o,f,h),l=this.font.loca.encode(i.offsets,f),v={cmap:this.font.cmap.raw(),glyf:i.table,loca:l,hmtx:this.font.hmtx.raw(),hhea:this.font.hhea.raw(),maxp:this.font.maxp.raw(),post:this.font.post.raw(),name:this.font.name.raw(),head:this.font.head.encode(t)},this.font.os2.exists&&(v["OS/2"]=this.font.os2.raw()),this.font.directory.encode(v)},e}();Dl.API.PDFObject=function(){var e;function t(){}return e=function(e,t){return(Array(t+1).join("0")+e).slice(-t)},t.convert=function(n){var a,i,o,r;if(Array.isArray(n))return"["+function(){var e,i,o;for(o=[],e=0,i=n.length;e<i;e++)a=n[e],o.push(t.convert(a));return o}().join(" ")+"]";if("string"==typeof n)return"/"+n;if(null!=n?n.isString:void 0)return"("+n+")";if(n instanceof Date)return"(D:"+e(n.getUTCFullYear(),4)+e(n.getUTCMonth(),2)+e(n.getUTCDate(),2)+e(n.getUTCHours(),2)+e(n.getUTCMinutes(),2)+e(n.getUTCSeconds(),2)+"Z)";if("[object Object]"==={}.toString.call(n)){for(i in o=["<<"],n)r=n[i],o.push("/"+i+" "+t.convert(r));return o.push(">>"),o.join("\n")}return""+n},t}();const gu=()=>Oe("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},[Oe("path",{d:"M843.904 783.573333 783.573333 843.904 512.042667 572.373333 240.512 843.904 180.181333 783.573333 451.712 512.042667 180.181333 240.512 240.512 180.181333 512.042667 451.712 783.573333 180.181333 843.904 240.512 572.373333 512.042667 843.904 783.573333Z"},null)]),bu=xe({name:"PrintPreviewMarkdown",props:{modal:{type:Object,required:!0},value:{type:String,default:""}},setup(e){const t=n("print-preview-markdown"),a=je(),i=()=>{e.modal.dismiss()};return{ns:t,printPreview:a,renderHeader:()=>Oe("div",{class:t.e("header")},[Oe("div",{class:t.em("header","caption")},[ibiz.i18n.t("util.printPreviewUtil.title")]),Oe("div",{class:t.em("header","action")},[Oe("div",{class:t.em("header","close"),title:ibiz.i18n.t("app.close"),onClick:i},[Oe(gu,null,null)])])]),renderContent:()=>{const n=De("IBizMarkDown");return Oe("div",{class:t.e("content")},[ze(n,{value:e.value,readonly:!0})])}}},render(){return Oe("div",{class:this.ns.b(),ref:"printPreview"},[this.renderHeader(),this.renderContent()])}}),yu=xe({name:"PrintHtml",props:{modal:{type:Object,required:!0},content:{type:String,default:""},filename:{type:String,default:""}},setup:()=>({ns:n("print-html")}),render(){return Oe("div",{class:this.ns.b()},[Oe("div",{class:this.ns.e("header")},[this.filename]),Oe("div",{class:this.ns.e("content"),innerHTML:this.content},null)])}}),wu=xe({name:"PrintPdf",props:{modal:{type:Object,required:!0},filename:{type:String,default:""},images:{type:Array,default:()=>[]}},setup:()=>({ns:n("print-pdf")}),render(){return Oe("div",{class:this.ns.b()},[Oe("div",{class:this.ns.e("header")},[this.filename]),Oe("div",{class:this.ns.e("content")},[this.images.map(e=>Oe("div",{class:this.ns.e("item")},[Oe("img",{src:e.base64},null),e.base642?Oe("img",{src:e.base642},null):null]))])])}}),_u={a4:{width:210,height:297},a3:{width:297,height:420},letter:{width:215.9,height:279.4}},Eu={orientation:"portrait",pageSize:"a4",fontSize:12,margins:{top:20,right:20,bottom:20,left:20},lineHeight:1.6,textAlign:"left",textColor:"#000000",backgroundColor:"#ffffff",isHtml:!1,segmentHeight:8e3};function Pu(e,t,n,a,i){const o=document.createElement("canvas");o.width=a,o.height=n;const r=o.getContext("2d");return r&&(r.fillStyle=i,r.fillRect(0,0,o.width,o.height),r.drawImage(e,0,t,e.width,o.height,0,0,e.width,o.height)),o.toDataURL("image/png")}function Nu(e,t){const{innerWidth:n,innerHeight:a,pageHeight:i,pageWidth:o,backgroundColor:r}=t,s=[];let l=0,c=0;return e.forEach(e=>{let t=e.height;for(;t>0;)if(c<0){const a=-c;s[l].base642=Pu(e,0,a,o,r),c=a,s[l].height2=a*n/e.width,t-=a}else if(e.height-c>i)s.push({page:l,width:n,height:a,base64:Pu(e,c,i,o,r)}),c+=i,t-=i,l++;else{const a=e.height-c,u=a*n/e.width;s.push({page:l,width:n,height:u,base64:Pu(e,c,a,o,r)}),c=a-i,t=0}}),s}function Iu(e,t,n){const{filename:a,mergedOptions:i,showModel:o}=n;if(!o&&!On()&&!Dn()){t.forEach((t,n)=>{n>0&&e.addPage(),e.addImage(t.base64,"PNG",i.margins.left,i.margins.top,t.width,t.height),t.base642&&e.addImage(t.base642,"PNG",i.margins.left,i.margins.top,t.width,t.height2)});const n=e.output("blob"),a=URL.createObjectURL(n);return void(location.href=a)}const r=ibiz.overlay.createModal(e=>ze(wu,{modal:e,filename:a,images:t}),void 0,{width:"100%",height:"100%",showClose:!0});r.present()}class Au{async execPrint(e,t,n){const a=t.srfcontenttype;return"MARKDOWN"===a?this.printMarkDown(n,t):"HTML"===a&&this.printHtml(n,t)}async printMarkDown(e,t){const n=await e.text(),a=ibiz.overlay.createModal(e=>ze(bu,{value:n,modal:e}),void 0,{width:t.srfprintwidth||"80%",height:t.srfprintheight||"80%"});return a.present(),await a.onWillDismiss(),!0}async printHtml(e,t){if(!Dn()||On()){const n=await e.text(),a=ibiz.overlay.createModal(e=>ze(yu,{filename:t.srfprinttitle||"HTML",content:n,modal:e}),void 0,{width:t.srfprintwidth||"80%",height:t.srfprintheight||"80%",showClose:!0});return a.present(),await a.onWillDismiss(),!0}const n=window.URL.createObjectURL(e);return location.href=n,!0}async printHtml2(e,t,n={}){const a=ibiz.overlay.createModal(a=>ze(yu,{filename:e,content:t,modal:a,style:n}),void 0,{width:n.width||"80%",height:n.height||"80%",showClose:!0});return a.present(),await a.onWillDismiss(),!0}async printPdf(e,t,a={}){const i={content:t,filename:e,...a},o=function(e){return e.content&&"string"==typeof e.content?0===e.content.trim().length?(ibiz.message.error(ibiz.i18n.t("util.printPreviewUtil.pdfEmpty")),!1):!e.fontSize||!(e.fontSize<8||e.fontSize>72)||(ibiz.message.error(ibiz.i18n.t("util.printPreviewUtil.pdfFontSize")),!1):(ibiz.message.error(ibiz.i18n.t("util.printPreviewUtil.pdfValid")),!1)}(i);if(!o)return!1;let r=null;try{const t={...Eu,...i,margins:{...Eu.margins,...i.margins||{}}};r=function(e,t){const a=document.createElement("div"),i=n("print-pdf"),o="\n position: absolute;\n left: -9999px;\n top: 0;\n width: ".concat(_u[t.pageSize].width-t.margins.left-t.margins.right,"mm;\n padding: 0;\n font-size: ").concat(t.fontSize,"px;\n line-height: ").concat(t.lineHeight,";\n text-align: ").concat(t.textAlign,";\n color: ").concat(t.textColor,";\n background-color: ").concat(t.backgroundColor,";\n font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans SC', sans-serif;\n word-wrap: break-word;\n box-sizing: border-box;\n ");if(a.style.cssText=o,a.classList.add(i.b()),t.isHtml){const t=document.createElement("style");t.textContent=".".concat(i.b()," {").concat("\n h1 { font-size: 2em; font-weight: bold; margin: 0.67em 0; line-height: 1.2; }\n h2 { font-size: 1.5em; font-weight: bold; margin: 0.75em 0; line-height: 1.3; }\n h3 { font-size: 1.17em; font-weight: bold; margin: 0.83em 0; line-height: 1.4; }\n h4 { font-size: 1em; font-weight: bold; margin: 1em 0; }\n h5 { font-size: 0.83em; font-weight: bold; margin: 1.17em 0; }\n h6 { font-size: 0.67em; font-weight: bold; margin: 1.33em 0; }\n p { margin: 1em 0; }\n ul, ol { margin: 1em 0; padding-left: 2em; }\n li { margin: 0.5em 0; }\n table { border-collapse: collapse; width: 100%; margin: 1em 0; }\n th, td { border: 1px solid #333; padding: 0.5em; text-align: left; }\n th { background-color: #f5f5f5; font-weight: bold; }\n blockquote { margin: 1em 0; padding-left: 1em; border-left: 3px solid #ccc; color: #666; }\n hr { border: none; border-top: 1px solid #ccc; margin: 1em 0; }\n strong, b { font-weight: bold; }\n em, i { font-style: italic; }\n code { font-family: monospace; background-color: #f5f5f5; padding: 0.2em 0.4em; }\n pre { background-color: #f5f5f5; padding: 1em; overflow-x: auto; white-space: pre-wrap; }\n a { color: #0066cc; text-decoration: underline; }\n img { max-width: 100%; height: auto; }\n div { margin: 0; padding: 0; }\n br { display: block; margin: 0.5em 0; }\n"),a.appendChild(t);const n=document.createElement("div");n.innerHTML=e,a.appendChild(n)}else a.style.whiteSpace="pre-wrap",a.textContent=e;return document.body.appendChild(a),a}(i.content,t);const a=function(e,t){const n=_u[e],a=3.7795275591;let i=n.width,o=n.height;return"landscape"===t&&([i,o]=[o,i]),{width:Math.round(i*a),height:Math.round(o*a)}}(t.pageSize,t.orientation),o=new Dl({orientation:"portrait"===t.orientation?"p":"l",unit:"mm",format:t.pageSize}),s=a.width-3.7795275591*(t.margins.left+t.margins.right),l=o.internal.pageSize.getWidth(),c=o.internal.pageSize.getHeight(),u=l-t.margins.left-t.margins.right,d=c-t.margins.top-t.margins.bottom;if(r.scrollHeight>t.segmentHeight){const n=a.width,i=t.segmentHeight;Object.assign(t,{width:s,windowWidth:n,segmentHeight:i,innerWidth:u,innerHeight:d});const l=await async function(e,t){const{innerHeight:n,innerWidth:a,segmentHeight:i}=t,o=e.scrollHeight,r=[];for(let n=0;n<o;n+=i){const a=Math.min(i,o-n),s=await ibiz.util.html2canvas.getCanvas(e,{scale:1,useCORS:!0,logging:!1,backgroundColor:t.backgroundColor,y:n,height:a,width:t.width,windowWidth:t.windowWidth});r.push(s)}return Nu(r,{pageHeight:n/a*t.width,pageWidth:t.width,innerHeight:n,innerWidth:a})}(r,t);Iu(o,l,{innerWidth:u,innerHeight:d,mergedOptions:t,filename:e,showModel:!0})}else{const n=await ibiz.util.html2canvas.getCanvas(r,{scale:2,useCORS:!0,logging:!1,backgroundColor:t.backgroundColor,width:s,windowWidth:a.width,scrollY:0,scrollX:0});Iu(o,Nu([n],{pageHeight:d/u*s*2,pageWidth:2*s,innerHeight:d,innerWidth:u,backgroundColor:t.backgroundColor}),{innerWidth:u,innerHeight:d,mergedOptions:t,filename:e,showModel:!1})}return!0}catch(e){const t=e instanceof Error?e.message:ibiz.i18n.t("util.printPreviewUtil.exportPdfFailed");return ibiz.message.error(t),!1}finally{!function(e){e&&e.parentNode&&e.parentNode.removeChild(e)}(r)}}}function ku(){return[{valueOP:Tn.EQ,label:ibiz.i18n.t("control.searchBar.conditions.eq")},{valueOP:Tn.NOT_EQ,label:ibiz.i18n.t("control.searchBar.conditions.not_eq")},{valueOP:Tn.GT,label:ibiz.i18n.t("control.searchBar.conditions.gt")},{valueOP:Tn.GT_AND_EQ,label:ibiz.i18n.t("control.searchBar.conditions.gt_and_eq")},{valueOP:Tn.LT,label:ibiz.i18n.t("control.searchBar.conditions.lt")},{valueOP:Tn.LT_AND_EQ,label:ibiz.i18n.t("control.searchBar.conditions.lt_and_eq")},{valueOP:Tn.IS_NULL,label:ibiz.i18n.t("control.searchBar.conditions.is_null")},{valueOP:Tn.IS_NOT_NULL,label:ibiz.i18n.t("control.searchBar.conditions.is_not_null")},{valueOP:Tn.IN,label:ibiz.i18n.t("control.searchBar.conditions.in")},{valueOP:Tn.NOT_IN,label:ibiz.i18n.t("control.searchBar.conditions.not_in")},{valueOP:Tn.LIKE,label:ibiz.i18n.t("control.searchBar.conditions.like")},{valueOP:Tn.LIFT_LIKE,label:ibiz.i18n.t("control.searchBar.conditions.lift_like")},{valueOP:Tn.RIGHT_LIKE,label:ibiz.i18n.t("control.searchBar.conditions.right_like")},{valueOP:Tn.EXISTS,label:ibiz.i18n.t("control.searchBar.conditions.exists")},{valueOP:Tn.NOT_EXISTS,label:ibiz.i18n.t("control.searchBar.conditions.not_exists")}]}function Cu(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!Ve(e)}e("cm",Au);const Su=xe({name:"IBizActionToolbar",props:{actionDetails:{type:Array,required:!0},actionsState:{type:Object,required:!0},caption:String,mode:{type:String,default:"buttons"}},setup(e,{emit:t}){const a=n("action-toolbar");return{ns:a,handleClick:async(e,n)=>{n.stopPropagation(),t("action-click",e,n)},renderSeparator:()=>Oe("div",{class:a.e("separator")},null)}},render(){const e=this.actionDetails||[];return"buttons"===this.mode?Oe("div",{class:[this.ns.b(),this.ns.m("buttons")]},[e.length>0&&e.map(e=>{var t,n,a;if("DEUIACTIONGROUP"===e.detailType)return[e.addSeparator&&this.renderSeparator(),Oe(De("iBizActionGroup"),{direction:"vertical",actionDetail:e,actionsState:this.actionsState,onActionClick:this.handleClick,popoverClassName:this.ns.b("action-group")},null)];if(null==(n=null==(t=this.actionsState)?void 0:t[e.id])?void 0:n.visible){const t={};return e.showIcon&&e.sysImage&&Object.assign(t,{icon:()=>Oe(De("iBizIcon"),{icon:e.sysImage},null)}),[e.addSeparator&&this.renderSeparator(),Oe(De("van-button"),{size:"small",text:e.showCaption?e.caption:"",type:Jr(e),onClick:t=>this.handleClick(e,t),disabled:this.actionsState[e.id].disabled,class:[this.ns.e("item"),this.ns.is("disabled",!1),null==(a=e.sysCss)?void 0:a.codeName]},Cu(t)?t:{default:()=>[t]})]}return null})]):Oe("div",null,[ibiz.i18n.t("component.actionToolbar.noSupportDropDown")])}}),Mu=xe({name:"IBizCarousel",props:{autoplay:{type:Number,default:3e3},duration:{type:Number,default:500},showIndicators:{type:Boolean,default:!0},touchable:{type:Boolean,default:!0},images:{type:Object},attrs:{type:Object,required:!1}},setup:()=>({ns:n("carousel")}),render(){return this.images&&0===this.images.length?null:Oe("div",{class:[this.ns.b()]},[Oe(De("van-swipe"),Te({autoplay:this.autoplay,duration:this.duration,"lazy-render":!0,"show-indicators":this.showIndicators,touchable:this.touchable},m(this.$attrs)),{default:()=>[this.images&&this.images.map(e=>Oe(De("van-swipe-item"),{key:e},{default:()=>[Oe(De("iBizIcon"),{icon:e},null)]}))]})])}}),xu=e("d",xe({name:"IBizCol",props:{layoutPos:{type:Object,required:!0},state:{type:Object,required:!0}},setup(e){const t=n("col"),a=qe(()=>{const t=n("spacing"),a=[],i={top:e.layoutPos.spacingTop,bottom:e.layoutPos.spacingBottom,left:e.layoutPos.spacingLeft,right:e.layoutPos.spacingRight};return Object.keys(i).forEach(e=>{const n=i[e];n&&a.push(t.bm(e,n.toLowerCase()))}),a}),i=qe(()=>{const t=e.layoutPos;if("FLEX"===t.layout)return{};const{md:n}=jn(t);return{span:n.span,offset:n.offset}}),o=qe(()=>{const t=e.state.layout,n={width:t.width,height:t.height};return Object.assign(n,t.extraStyle),n}),r=qe(()=>{var n;return[t.b(),"FLEX"===(null==(n=e.layoutPos)?void 0:n.layout)?t.m("flex"):t.m("grid"),t.is("hidden",!e.state.visible),...a.value,e.state.layout.extraClass]});return{ns:t,colClass:r,gridAttrs:i,cssVars:o}},render(){var e,t,n;if(!this.state.visible&&!this.state.keepAlive)return null;const a=null==(t=(e=this.$slots).default)?void 0:t.call(e);if("FLEX"===(null==(n=this.layoutPos)?void 0:n.layout)){const e=this.layoutPos;return Oe("div",{class:this.colClass,style:{flexGrow:e.grow,flexShrink:1===e.shrink?void 0:e.shrink,flexBasis:"".concat(e.basis,"px}"),...this.cssVars}},[a])}return ze(De("van-col"),{class:this.colClass,style:this.cssVars,...this.gridAttrs},{default:()=>a})}}));let Ou=!1,Du=!1;const Tu=[];let ju=0;const Lu=[];let Vu=null,Bu=0;const Uu=Promise.resolve();const zu=e=>null==e.id?1/0:e.id,Ru=(e,t)=>{const n=zu(e)-zu(t);if(0===n){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function Fu(e){Du=!1,Ou=!0,e=e||new Map,Tu.sort(Ru);const t=t=>qu(e,t);try{for(ju=0;ju<Tu.length;ju++){const e=Tu[ju];if(e&&!1!==e.active){if(t(e))continue;Ze(e,null,14)}}}finally{ju=0,Tu.length=0,function(e){if(Lu.length){const t=[...new Set(Lu)];if(Lu.length=0,Vu)return void Vu.push(...t);for(Vu=t,e=e||new Map,Vu.sort((e,t)=>zu(e)-zu(t)),Bu=0;Bu<Vu.length;Bu++)qu(e,Vu[Bu])||Vu[Bu]();Vu=null,Bu=0}}(e),Ou=!1,(Tu.length||Lu.length)&&Fu(e)}}const $u=(e,t=!0)=>"function"==typeof e?e.displayName||e.name:e.name||t&&e.__name;function qu(e,t){if(e.has(t)){const n=e.get(t);if(n>100){const e=t.ownerInstance,n=e&&$u(e.type);return console.warn("Maximum recursive updates exceeded".concat(n?" in component <".concat(n,">"):"",". ")+"This means you have a reactive effect that is mutating its own dependencies and thus recursively triggering itself. Possible sources include component template, render function, updated hook or watcher source function."),!0}e.set(t,n+1)}else e.set(t,1)}var Wu=e("S",(e=>(e[e.ELEMENT=1]="ELEMENT",e[e.FUNCTIONAL_COMPONENT=2]="FUNCTIONAL_COMPONENT",e[e.STATEFUL_COMPONENT=4]="STATEFUL_COMPONENT",e[e.TEXT_CHILDREN=8]="TEXT_CHILDREN",e[e.ARRAY_CHILDREN=16]="ARRAY_CHILDREN",e[e.SLOTS_CHILDREN=32]="SLOTS_CHILDREN",e[e.TELEPORT=64]="TELEPORT",e[e.SUSPENSE=128]="SUSPENSE",e[e.COMPONENT_SHOULD_KEEP_ALIVE=256]="COMPONENT_SHOULD_KEEP_ALIVE",e[e.COMPONENT_KEPT_ALIVE=512]="COMPONENT_KEPT_ALIVE",e[e.COMPONENT=6]="COMPONENT",e))(Wu||{})),Hu=e("M",(e=>(e[e.ENTER=0]="ENTER",e[e.LEAVE=1]="LEAVE",e[e.REORDER=2]="REORDER",e))(Hu||{}));e("f",e=>e.type.__isKeepAlive);const Gu={name:"IBizKeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number],keyList:[Array]},setup(e,{slots:t}){const n=et(),a=n.ctx,i=new Map,o=new Set;let r=null;n.__v_cache=i;const s=n.suspense,{renderer:{p:l,m:c,um:u,o:{createElement:d}}}=a,h=d("div");function p(e){i.forEach((t,n)=>{const a=$u(t.type);!a||e&&e(a)||f(n)})}function f(e){const t=i.get(e);var a;r&&t.type===r.type?r&&Ju(r):(Ju(a=t),u(a,n,s,!0)),i.delete(e),o.delete(e)}a.activate=(e,t,n,a,i)=>{const o=e.component;c(e,t,n,0,s),l(o.vnode,e,t,n,o,s,a,e.slotScopeIds,i),td(()=>{o.isDeactivated=!1,o.a&&ed(o.a);const t=e.props&&e.props.onVnodeMounted;t&&nd(t,o.parent,e)}),ad(o)},a.deactivate=e=>{const t=e.component;c(e,h,null,1,s),td(()=>{t.da&&ed(t.da);const n=e.props&&e.props.onVnodeUnmounted;n&&nd(n,t.parent,e),t.isDeactivated=!0}),ad(t)},$e(()=>[e.include,e.exclude,e.keyList],([e,t,n])=>{var a;e&&p(t=>Xu(e,t)),t&&p(e=>!Xu(t,e)),n&&(a=e=>!Xu(n,e),i.forEach((e,t)=>{const n=e.key;n&&a&&a(n)&&f(t)}))},{flush:"post",deep:!0});let v=null;const m=()=>{null!=v&&i.set(v,Ku(n.subTree))};return Be(m),tt(m),Fe(()=>{for(const e in i)f(e)}),()=>{if(v=null,!t.default)return null;const n=t.default(),a=n[0];if(n.length>1)return console.log("KeepAlive should contain exactly one component child."),r=null,n;if(!(Ve(a)&&(4&a.shapeFlag||128&a.shapeFlag)))return r=null,a;let s=Ku(a);const l=s.type,c=$u(Qu(s)?s.type.__asyncResolved||{}:l),{include:u,exclude:d,max:h,keyList:p}=e,m=s.key;if(u&&(!c||!Xu(u,c))||d&&c&&Xu(d,c)||p&&!m&&!Xu(p,m))return r=s,a;const g=null==s.key?l:s.key,b=i.get(g);return s.el&&(s=nt(s),128&a.shapeFlag&&(a.ssContent=s)),v=g,b?(s.el=b.el,s.component=b.component,s.transition&&Zu(s,s.transition),s.shapeFlag|=512,o.delete(g),o.add(g)):(o.add(g),h&&o.size>parseInt(h,10)&&f(o.values().next().value)),s.shapeFlag|=256,r=s,s.keepAlive=!0,s.curPath=m,s}}},Yu=e("h",Gu);function Xu(e,t){return Array.isArray(e)?e.indexOf(t)>-1:"string"==typeof e?e.split(",").includes(t):!!function(e){return"[object RegExp]"===Object.prototype.toString.call(e)}(e)&&e.test(t)}function Ju(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function Ku(e){return 128&e.shapeFlag?e.ssContent:e}const Qu=e("j",e=>!!e.type.__asyncLoader);function Zu(e,t){6&e.shapeFlag&&e.component?Zu(e.component.subTree,t):e.transition=t}const ed=e("k",(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)}),td=e("q",function(e){Array.isArray(e)?Lu.push(...e):Vu&&Vu.includes(e,e.allowRecurse?Bu+1:Bu)||Lu.push(e),Ou||Du||(Du=!0,Uu.then(Fu))});function nd(e,t,n,a=null){at(e,t,7,[n,a])}const ad=e("m",id("component:added"));function id(e){return t=>{!function(e,...t){window.__VUE_DEVTOOLS_GLOBAL_HOOK__&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__.emit(e,...t)}(e,t.appContext.app,t.uid,t.parent?t.parent.uid:void 0,t)}}const od=xe({name:"IBizNoData",props:{text:{type:String,default:()=>ibiz.i18n.t("app.noData")}},setup:()=>({ns:n("no-data")}),render(){return Oe(De("van-empty"),{class:this.ns.b(),description:this.text},{default:()=>{var e,t;return[null==(t=(e=this.$slots).default)?void 0:t.call(e)]}})}});function rd(e){const t=/<span\sdata-w-e-type="emoji"\sclass=['"]emoji['"]>(.+?)<\/span>/g;let n,a=e;for(;null!==(n=t.exec(e));){const e=n[1],t=decodeURIComponent(atob(e));a=a.replace(n[0],"<span data-w-e-type=\"emoji\" class='emoji'>".concat(t,"</span>"))}return a}const sd=xe({name:"IBizRawItem",props:{type:{type:String,required:!1},content:{type:[String,Object,Number]},rawItem:{type:Object,required:!1},chunkView:{type:String,required:!1},chunkEntity:{type:String,required:!1},ctrl:{type:Object,required:!1},view:{type:Object,required:!1},data:{type:Object,required:!1},context:{type:Object,required:!1}},setup(e){const t=n("rawitem");let a=null,i="";e.rawItem&&(a=e.rawItem.rawItem,i=a.contentType);const o=je(e.type||i||""),r=je("");let s=null;"IMAGE"===i&&(s=a.sysImage),"RAW"===i||"HTML"===i?"RAW"===i?(o.value="TEXT",r.value=a.caption):r.value=a.content:["VIDEO","DIVIDER","INFO","WARNING","ERROR"].includes(i)?r.value=e.content||(null==a?void 0:a.rawContent)||(null==a?void 0:a.rawItemParams):"IMAGE"===i&&s&&(r.value=s);const l=je({id:xi(),path:"",mute:!0,autoplay:!0,replay:!1,showcontrols:!0}),c=je({contentPosition:"center",html:""}),u={WARNING:"warning-o",ERROR:"close",INFO:"info-o"},d=je({title:"",closeabled:!1,showIcon:!0,class:"",wrapable:!0,"left-icon":""}),h=je(""),p=e=>{let t;const n=null==a?void 0:a.rawItemParams;if(n)return n.forEach(n=>{n.key===e&&(t=n.value)}),t;ibiz.log.error("未配置视频播放参数:".concat(e,"}"))},f=()=>{var t;if("IMAGE"===o.value&&"string"==typeof e.content&&(t=e.content,/^https?:|^http?:|(\.png|\.svg|\.jpg|\.png|\.gif|\.psd|\.tif|\.bmp|\.jpeg)/.test(t)?r.value={imagePath:e.content}:r.value={cssClass:e.content}),["TEXT","HEADING1","HEADING2","HEADING3","HEADING4","HEADING5","HEADING6","PARAGRAPH","HTML","RAW"].includes(o.value)&&(h.value=r.value,"string"==typeof h.value&&(h.value=h.value.replaceAll("&lt;","<"),h.value=h.value.replaceAll("&gt;",">"),h.value=h.value.replaceAll("&amp;nbsp;"," "),h.value=h.value.replaceAll("&nbsp;"," "))),"HTML"===o.value&&(h.value=rd(h.value)),["VIDEO","DIVIDER","INFO","WARNING","ERROR"].includes(o.value)&&r.value){let e={};try{if("string"==typeof r.value){["INFO","WARNING","ERROR"].includes(o.value)&&(d.value.class=o.value.toLocaleLowerCase(),d.value.title=r.value,d.value["left-icon"]=u[o.value]);switch(e=new Function("return (".concat(r.value,");"))(),o.value){case"VIDEO":if(Object.assign(l.value,e),null==a?void 0:a.rawItemParams){const e={path:p("path"),autoplay:p("autoplay"),mute:p("mute"),replay:p("replay"),showcontrols:p("showcontrols")};Object.keys(e).forEach(t=>{void 0!==e[t]&&Object.assign(l.value,{[t]:e[t]})})}break;case"DIVIDER":Object.assign(c.value,e);break;case"INFO":case"WARNING":case"ERROR":Object.assign(d.value,e)}}else"VIDEO"===o.value&&Object.assign(l.value,{path:p("path"),autoplay:p("autoplay"),mute:p("mute"),replay:p("replay"),showcontrols:p("showcontrols")})}catch(e){ibiz.log.error(ibiz.i18n.t("component.rawItem.errorConfig",{type:o.value}))}}};return f(),$e(()=>e.content,(e,t)=>{e!==t&&(r.value=e,f())},{immediate:!0}),{ns:t,rawItemText:h,playerParams:l,dividerParams:c,alertParams:d,rawItemType:o,rawItemContent:r}},render(){var e;return Oe("div",{class:[this.ns.b(),this.ns.m(null==(e=this.rawItemType)?void 0:e.toLocaleLowerCase())]},[(()=>"IMAGE"===this.rawItemType?Oe(De("i-biz-icon"),{class:[this.ns.e("image")],icon:this.rawItemContent},null):"TEXT"===this.rawItemType||"RAW"===this.rawItemType?Oe("span",{class:this.ns.e("text")},[this.rawItemText]):"HEADING1"===this.rawItemType?Oe("h1",{class:this.ns.e("h1")},[this.rawItemText]):"HEADING2"===this.rawItemType?Oe("h2",{class:this.ns.e("h2")},[this.rawItemText]):"HEADING3"===this.rawItemType?Oe("h3",{class:this.ns.e("h3")},[this.rawItemText]):"HEADING4"===this.rawItemType?Oe("h4",{class:this.ns.e("h4")},[this.rawItemText]):"HEADING5"===this.rawItemType?Oe("h5",{class:this.ns.e("h5")},[this.rawItemText]):"HEADING6"===this.rawItemType?Oe("h6",{class:this.ns.e("h6")},[this.rawItemText]):"PARAGRAPH"===this.rawItemType?Oe("p",{class:this.ns.e("paragraph")},[this.rawItemText]):"HTML"===this.rawItemType?Oe("div",{class:[this.ns.e("paragraph"),this.ns.e("html")],innerHTML:this.rawItemText},null):"VIDEO"===this.rawItemType?Oe("div",{class:this.ns.e("video")},[Oe("video",{id:this.playerParams.id,src:this.playerParams.path,autoplay:this.playerParams.autoplay,controls:this.playerParams.showcontrols,loop:this.playerParams.replay,muted:this.playerParams.mute},[Oe("source",{src:this.playerParams.path,type:"video/mp4"},null),Oe("source",{src:this.playerParams.path,type:"video/ogg"},null),Oe("source",{src:this.playerParams.path,type:"video/webm"},null),ibiz.i18n.t("component.rawItem.noSupportVideo")])]):"DIVIDER"===this.rawItemType?this.dividerParams.html?Oe(De("van-divider"),{"content-position":this.dividerParams.contentPosition},{default:()=>[Oe("span",{innerHTML:this.dividerParams.html},null)]}):Oe(De("van-divider"),{"content-position":this.dividerParams.contentPosition},null):"INFO"===this.rawItemType||"WARNING"===this.rawItemType||"ERROR"===this.rawItemType?Oe(De("van-notice-bar"),{text:this.alertParams.title,"show-icon":this.alertParams.showIcon,class:this.alertParams.class,type:this.rawItemType.toLowerCase(),wrapable:this.alertParams.wrapable,"left-icon":this.alertParams.showIcon?this.alertParams["left-icon"]:"",mode:this.alertParams.closeabled?"closeable":""},{default:()=>[this.alertParams.title]}):"MARKDOWN"===this.rawItemType?Oe(De("iBizMarkDown"),{disabled:!0,ctrl:this.ctrl,view:this.view,data:this.data,value:this.content,context:this.context,chunkView:this.chunkView,chunkEntity:this.chunkEntity},null):(["PLACEHOLDER"].includes(this.rawItemType),null))()])}});const ld=e("e",xe({name:"IBizRow",props:{layout:Object},setup:()=>({ns:n("row")}),render(){var e,t,n;const a=null==(t=(e=this.$slots).default)?void 0:t.call(e);if("FLEX"===(null==(n=this.layout)?void 0:n.layout)){const{dir:e,align:t,valign:n}=this.layout,i=e||"column";return Oe("div",{class:[this.ns.b(),this.ns.m("flex")],style:"display:flex;flex-direction: ".concat(i,";justify-content: ").concat(t,";align-items: ").concat(n,";")},[a])}return Oe(De("van-row"),{class:[this.ns.b(),this.ns.m("grid")]},function(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!Ve(e)}(a)?a:{default:()=>[a]})}})),cd=xe({name:"IBizPresetViewBack",props:{view:{type:Object,required:!0}},setup(e){const t=n("preset-view-back"),a=Ni(),{viewStack:i}=bo(),o=je(!1);Object.prototype.hasOwnProperty.call(e.view.params,"srfmobshowpresetback")?"true"!==e.view.params.srfmobshowpresetback&&!0!==e.view.params.srfmobshowpresetback||(o.value=!0):ibiz.platform.getShowPresetBack()&&1===e.view.modal.viewUsage&&i.cacheKeys.length>1&&a.meta.home&&(o.value=!0);return{ns:t,backButtonVisible:o,goBack:()=>{e.view.modal.dismiss()}}},render(){return this.backButtonVisible&&Oe("div",{class:this.ns.b(),onClick:this.goBack},[Oe("ion-icon",{name:"chevron-back-outline"},null)])}}),ud=xe({name:"IBizPresetViewHeader",props:{modelData:{type:Object,required:!0}},setup(){const e=n("preset-view-header"),t=n("view-header"),a=g(),i=a.view,o=a.view.context,r=i.model.controls.find(e=>"CAPTIONBAR"===e.controlType);return{ns:e,ns2:t,view:i,captionBar:r,context:o}},render(){if(ibiz.platform.getShowViewHeader())return this.view.model.showCaptionBar&&Oe("div",{class:[this.ns.b(),this.ns2.b()]},[Oe("div",{class:this.ns.b("left")},[Oe(De("iBizPresetViewBack"),{view:this.view},null)]),Oe("div",{class:this.ns.b("center")},[this.captionBar&&this.view.model.showCaptionBar&&Oe(De("iBizCaptionBarControl"),{modelData:this.captionBar,context:this.context},null)]),Oe("div",{class:this.ns.b("right")},null)])}}),hd=xe({name:"IBizButtonList",props:{model:{type:Object,required:!0},buttonsState:{type:Object,required:!0},disabled:{type:Boolean,default:!1}},emits:{click:(e,t)=>!0},setup(e,{emit:t}){const a=n("button-list"),{zIndex:i}=d(),o=i.zIndex+1,r=je(!1),s=je(),l=je(!1),c=qe(()=>{const{buttonListType:t,uiactionGroup:n}=e.model;return"UIACTIONGROUP"===t?(null==n?void 0:n.uiactionGroupDetails)||[]:e.model.panelButtons||e.model.deformButtons||[]}),u=qe(()=>{const t=c.value.findIndex(t=>{var n;return!1!==(null==(n=e.buttonsState[t.id])?void 0:n.visible)});return void 0===t?-1:t}),h=je("bottom"),p=qe(()=>{const{itemStyle:t,detailStyle:n,userTag:a}=e.model;return a||t||n||"DEFAULT"}),f=(e,n)=>{null==n||n.stopPropagation(),t("click",e.id,n)},v=e=>{e.stopPropagation(),h.value=Kr(a,s.value.$el,c.value.length,"vertical"),r.value=!r.value},m=e=>{if(e)return Oe("div",{class:a.e("separator")},null)},g=(t,n)=>{var i,o,r,s;const c="vertical"===n;return"DEUIACTIONGROUP"===t.detailType?[m(t.addSeparator&&c),Oe(De("iBizActionGroup"),{actionDetail:t,onActionClick:f,actionsState:e.buttonsState,popoverClassName:a.b("action-group"),onPopoverVisibleChange:e=>l.value=e,direction:"horizontal"===n?"vertical":"horizontal"},null)]:(null==(i=e.buttonsState[t.id])?void 0:i.visible)?[m(t.addSeparator&&c),Oe(De("van-button"),{size:"small",class:[a.e("item"),a.em("item","".concat(null==(o=t.id)?void 0:o.toLowerCase())),null==(r=t.sysCss)?void 0:r.cssName],type:Jr(t),disabled:(null==(s=e.buttonsState[t.id])?void 0:s.disabled)||e.disabled,onClick:e=>f(t,e)},{default:()=>[!1!==t.showIcon&&Oe(De("iBizIcon"),{icon:t.sysImage,class:a.em("item","icon")},null),t.showCaption&&Oe("span",{class:a.em("item","caption")},[t.caption])]})]:null},b=e=>c.value.map(t=>g(t,e));return{ns:a,buttonRef:s,renderDropdown:()=>{if("ITEMX"===e.model.actionGroupExtractMode){const t=c.value[u.value];return Oe("div",{class:[a.e("group-itemx")]},[g(t,"horizontal"),Oe(De("van-popover"),{class:a.e("popover"),placement:h.value,show:r.value,"onUpdate:show":e=>r.value=e,"close-on-click-outside":!l.value,style:{zIndex:o}},{reference:()=>Oe(De("van-button"),{size:"small",type:Jr(t),icon:"arrow-down"},null),default:()=>c.value.map((t,n)=>{var a;return!1!==(null==(a=e.buttonsState[t.id])?void 0:a.visible)&&n!==u.value?g(t,"vertical"):null})})])}return Oe(De("van-popover"),{class:a.e("popover"),placement:h.value,show:r.value,"onUpdate:show":e=>r.value=e,"close-on-click-outside":!l.value,style:{zIndex:o}},{reference:()=>{const{caption:t,sysImage:n}=e.model;return Oe(De("van-button"),{size:"small",ref:"buttonRef",class:a.e("button"),disabled:e.disabled,onClick:v,type:p.value.toLowerCase()},{default:()=>[n&&Oe(De("iBizIcon"),{class:a.em("button","icon"),icon:n},null),t&&Oe("span",{class:a.em("button","caption")},[t,Oe("ion-icon",{name:"chevron-down-outline",class:a.em("button","more")},null)])]})},default:()=>b("vertical")})},renderActions:b}},render(){var e;return Oe("div",{class:[this.ns.b(),this.ns.m(this.model.id),this.ns.m(null==(e=this.model.actionGroupExtractMode)?void 0:e.toLowerCase())],style:this.model.cssStyle},["ITEM"===this.model.actionGroupExtractMode||"BUTTONS"===this.model.buttonListType?Oe("div",{class:this.ns.e("content")},[this.renderActions("horizontal")]):this.renderDropdown()])}});var pd=Object.defineProperty,fd=(e,t,n)=>(((e,t,n)=>{t in e?pd(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n),n);class vd{constructor(e,t,n){fd(this,"name"),fd(this,"icon"),fd(this,"text"),this.name=e,this.icon=t,this.text=n}get label(){return this.name}}var md=Object.defineProperty,gd=(e,t,n)=>(((e,t,n)=>{t in e?md(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n),n);class bd{constructor(e,t,n){gd(this,"data"),gd(this,"category"),gd(this,"aliases"),this.data=e,this.category=t,this.aliases=n}}const yd=[new bd("😀","peoples",["grinning"]),new bd("😃","peoples",["smiley"]),new bd("😄","peoples",["smile"]),new bd("😁","peoples",["grin"]),new bd("😆","peoples",["laughing","satisfied"]),new bd("😅","peoples",["sweat_smile"]),new bd("😂","peoples",["joy"]),new bd("🤣","peoples",["rofl"]),new bd("😌","peoples",["relaxed"]),new bd("😊","peoples",["blush"]),new bd("😇","peoples",["innocent"]),new bd("🙂","peoples",["slightly_smiling_face"]),new bd("🙃","peoples",["upside_down_face"]),new bd("😉","peoples",["wink"]),new bd("😌","peoples",["relieved"]),new bd("😍","peoples",["heart_eyes"]),new bd("😘","peoples",["kissing_heart"]),new bd("😗","peoples",["kissing"]),new bd("😙","peoples",["kissing_smiling_eyes"]),new bd("😚","peoples",["kissing_closed_eyes"]),new bd("😋","peoples",["yum"]),new bd("😜","peoples",["stuck_out_tongue_winking_eye"]),new bd("😝","peoples",["stuck_out_tongue_closed_eyes"]),new bd("😛","peoples",["stuck_out_tongue"]),new bd("🤑","peoples",["money_mouth_face"]),new bd("🤗","peoples",["hugs"]),new bd("🤓","peoples",["nerd_face"]),new bd("😎","peoples",["sunglasses"]),new bd("🤡","peoples",["clown_face"]),new bd("🤠","peoples",["cowboy_hat_face"]),new bd("😏","peoples",["smirk"]),new bd("😒","peoples",["unamused"]),new bd("😞","peoples",["disappointed"]),new bd("😔","peoples",["pensive"]),new bd("😟","peoples",["worried"]),new bd("😕","peoples",["confused"]),new bd("🙁","peoples",["slightly_frowning_face"]),new bd("☹️","peoples",["frowning_face"]),new bd("😣","peoples",["persevere"]),new bd("😖","peoples",["confounded"]),new bd("😫","peoples",["tired_face"]),new bd("😩","peoples",["weary"]),new bd("😤","peoples",["triumph"]),new bd("😠","peoples",["angry"]),new bd("😡","peoples",["rage","pout"]),new bd("😶","peoples",["no_mouth"]),new bd("😐","peoples",["neutral_face"]),new bd("😑","peoples",["expressionless"]),new bd("😯","peoples",["hushed"]),new bd("😦","peoples",["frowning"]),new bd("😧","peoples",["anguished"]),new bd("😮","peoples",["open_mouth"]),new bd("😲","peoples",["astonished"]),new bd("😵","peoples",["dizzy_face"]),new bd("😳","peoples",["flushed"]),new bd("😱","peoples",["scream"]),new bd("😨","peoples",["fearful"]),new bd("😰","peoples",["cold_sweat"]),new bd("😢","peoples",["cry"]),new bd("😥","peoples",["disappointed_relieved"]),new bd("🤤","peoples",["drooling_face"]),new bd("😭","peoples",["sob"]),new bd("😓","peoples",["sweat"]),new bd("😪","peoples",["sleepy"]),new bd("😴","peoples",["sleeping"]),new bd("🙄","peoples",["roll_eyes"]),new bd("🤔","peoples",["thinking"]),new bd("🤥","peoples",["lying_face"]),new bd("😬","peoples",["grimacing"]),new bd("🤐","peoples",["zipper_mouth_face"]),new bd("🤢","peoples",["nauseated_face"]),new bd("🤧","peoples",["sneezing_face"]),new bd("😷","peoples",["mask"]),new bd("🤒","peoples",["face_with_thermometer"]),new bd("🤕","peoples",["face_with_head_bandage"]),new bd("😈","peoples",["smiling_imp"]),new bd("👿","peoples",["imp"]),new bd("👹","peoples",["japanese_ogre"]),new bd("👺","peoples",["japanese_goblin"]),new bd("💩","peoples",["hankey","poop","shit"]),new bd("👻","peoples",["ghost"]),new bd("💀","peoples",["skull"]),new bd("☠️","peoples",["skull_and_crossbones"]),new bd("👽","peoples",["alien"]),new bd("👾","peoples",["space_invader"]),new bd("🤖","peoples",["robot"]),new bd("🎃","peoples",["jack_o_lantern"]),new bd("😺","peoples",["smiley_cat"]),new bd("😸","peoples",["smile_cat"]),new bd("😹","peoples",["joy_cat"]),new bd("😻","peoples",["heart_eyes_cat"]),new bd("😼","peoples",["smirk_cat"]),new bd("😽","peoples",["kissing_cat"]),new bd("🙀","peoples",["scream_cat"]),new bd("😿","peoples",["crying_cat_face"]),new bd("😾","peoples",["pouting_cat"]),new bd("👐","peoples",["open_hands"]),new bd("🙌","peoples",["raised_hands"]),new bd("👏","peoples",["clap"]),new bd("🙏","peoples",["pray"]),new bd("🤝","peoples",["handshake"]),new bd("👍","peoples",["+1","thumbsup"]),new bd("👎","peoples",["-1","thumbsdown"]),new bd("👊","peoples",["fist_oncoming","facepunch","punch"]),new bd("✊","peoples",["fist_raised","fist"]),new bd("🤛","peoples",["fist_left"]),new bd("🤜","peoples",["fist_right"]),new bd("🤞","peoples",["crossed_fingers"]),new bd("✌️","peoples",["v"]),new bd("🤘","peoples",["metal"]),new bd("👌","peoples",["ok_hand"]),new bd("👈","peoples",["point_left"]),new bd("👉","peoples",["point_right"]),new bd("👆","peoples",["point_up_2"]),new bd("👇","peoples",["point_down"]),new bd("☝️","peoples",["point_up"]),new bd("✋","peoples",["hand","raised_hand"]),new bd("🤚","peoples",["raised_back_of_hand"]),new bd("🖐","peoples",["raised_hand_with_fingers_splayed"]),new bd("🖖","peoples",["vulcan_salute"]),new bd("👋","peoples",["wave"]),new bd("🤙","peoples",["call_me_hand"]),new bd("💪","peoples",["muscle"]),new bd("🖕","peoples",["middle_finger","fu"]),new bd("✍️","peoples",["writing_hand"]),new bd("🤳","peoples",["selfie"]),new bd("💅","peoples",["nail_care"]),new bd("💍","peoples",["ring"]),new bd("💄","peoples",["lipstick"]),new bd("💋","peoples",["kiss"]),new bd("👄","peoples",["lips"]),new bd("👅","peoples",["tongue"]),new bd("👂","peoples",["ear"]),new bd("👃","peoples",["nose"]),new bd("👣","peoples",["footprints"]),new bd("👁","peoples",["eye"]),new bd("👀","peoples",["eyes"]),new bd("🗣","peoples",["speaking_head"]),new bd("👤","peoples",["bust_in_silhouette"]),new bd("👥","peoples",["busts_in_silhouette"]),new bd("👶","peoples",["baby"]),new bd("👦","peoples",["boy"]),new bd("👧","peoples",["girl"]),new bd("👨","peoples",["man"]),new bd("👩","peoples",["woman"]),new bd("👱‍♀","peoples",["blonde_woman"]),new bd("👱","peoples",["blonde_man","person_with_blond_hair"]),new bd("👴","peoples",["older_man"]),new bd("👵","peoples",["older_woman"]),new bd("👲","peoples",["man_with_gua_pi_mao"]),new bd("👳‍♀","peoples",["woman_with_turban"]),new bd("👳","peoples",["man_with_turban"]),new bd("👮‍♀","peoples",["policewoman"]),new bd("👮","peoples",["policeman","cop"]),new bd("👷‍♀","peoples",["construction_worker_woman"]),new bd("👷","peoples",["construction_worker_man","construction_worker"]),new bd("💂‍♀","peoples",["guardswoman"]),new bd("💂","peoples",["guardsman"]),new bd("👩‍⚕","peoples",["woman_health_worker"]),new bd("👨‍⚕","peoples",["man_health_worker"]),new bd("👩‍🌾","peoples",["woman_farmer"]),new bd("👨‍🌾","peoples",["man_farmer"]),new bd("👩‍🍳","peoples",["woman_cook"]),new bd("👨‍🍳","peoples",["man_cook"]),new bd("👩‍🎓","peoples",["woman_student"]),new bd("👨‍🎓","peoples",["man_student"]),new bd("👩‍🎤","peoples",["woman_singer"]),new bd("👨‍🎤","peoples",["man_singer"]),new bd("👩‍🏫","peoples",["woman_teacher"]),new bd("👨‍🏫","peoples",["man_teacher"]),new bd("👩‍🏭","peoples",["woman_factory_worker"]),new bd("👨‍🏭","peoples",["man_factory_worker"]),new bd("👩‍💻","peoples",["woman_technologist"]),new bd("👨‍💻","peoples",["man_technologist"]),new bd("👩‍💼","peoples",["woman_office_worker"]),new bd("👨‍💼","peoples",["man_office_worker"]),new bd("👩‍🔧","peoples",["woman_mechanic"]),new bd("👨‍🔧","peoples",["man_mechanic"]),new bd("👩‍🔬","peoples",["woman_scientist"]),new bd("👨‍🔬","peoples",["man_scientist"]),new bd("👩‍🎨","peoples",["woman_artist"]),new bd("👨‍🎨","peoples",["man_artist"]),new bd("👩‍🚒","peoples",["woman_firefighter"]),new bd("👨‍🚒","peoples",["man_firefighter"]),new bd("👩‍🚀","peoples",["woman_astronaut"]),new bd("👨‍🚀","peoples",["man_astronaut"]),new bd("🤶","peoples",["mrs_claus"]),new bd("🎅","peoples",["santa"]),new bd("👸","peoples",["princess"]),new bd("🤴","peoples",["prince"]),new bd("👰","peoples",["bride_with_veil"]),new bd("🤵","peoples",["man_in_tuxedo"]),new bd("👼","peoples",["angel"]),new bd("🤰","peoples",["pregnant_woman"]),new bd("🙇‍♀","peoples",["bowing_woman"]),new bd("🙇","peoples",["bowing_man","bow"]),new bd("💁","peoples",["tipping_hand_woman","information_desk_person","sassy_woman"]),new bd("💁‍♂","peoples",["tipping_hand_man","sassy_man"]),new bd("🙅","peoples",["no_good_woman","no_good","ng_woman"]),new bd("🙅‍♂","peoples",["no_good_man","ng_man"]),new bd("🙆","peoples",["ok_woman"]),new bd("🙆‍♂","peoples",["ok_man"]),new bd("🙋","peoples",["raising_hand_woman","raising_hand"]),new bd("🙋‍♂","peoples",["raising_hand_man"]),new bd("🤦‍♀","peoples",["woman_facepalming"]),new bd("🤦‍♂","peoples",["man_facepalming"]),new bd("🤷‍♀","peoples",["woman_shrugging"]),new bd("🤷‍♂","peoples",["man_shrugging"]),new bd("🙎","peoples",["pouting_woman","person_with_pouting_face"]),new bd("🙎‍♂","peoples",["pouting_man"]),new bd("🙍","peoples",["frowning_woman","person_frowning"]),new bd("🙍‍♂","peoples",["frowning_man"]),new bd("💇","peoples",["haircut_woman","haircut"]),new bd("💇‍♂","peoples",["haircut_man"]),new bd("💆","peoples",["massage_woman","massage"]),new bd("💆‍♂","peoples",["massage_man"]),new bd("🕴","peoples",["business_suit_levitating"]),new bd("💃","peoples",["dancer"]),new bd("🕺","peoples",["man_dancing"]),new bd("👯","peoples",["dancing_women","dancers"]),new bd("👯‍♂","peoples",["dancing_men"]),new bd("🚶‍♀","peoples",["walking_woman"]),new bd("🚶","peoples",["walking_man","walking"]),new bd("🏃‍♀","peoples",["running_woman"]),new bd("🏃","peoples",["running_man","runner","running"]),new bd("👫","peoples",["couple"]),new bd("👭","peoples",["two_women_holding_hands"]),new bd("👬","peoples",["two_men_holding_hands"]),new bd("💑","peoples",["couple_with_heart_woman_man","couple_with_heart"]),new bd("👩‍❤️‍👩","peoples",["couple_with_heart_woman_woman"]),new bd("👨‍❤️‍👨","peoples",["couple_with_heart_man_man"]),new bd("💏","peoples",["couplekiss_man_woman"]),new bd("👩‍❤️‍💋‍👩","peoples",["couplekiss_woman_woman"]),new bd("👨‍❤️‍💋‍👨","peoples",["couplekiss_man_man"]),new bd("👪","peoples",["family_man_woman_boy","family"]),new bd("👨‍👩‍👧","peoples",["family_man_woman_girl"]),new bd("👨‍👩‍👧‍👦","peoples",["family_man_woman_girl_boy"]),new bd("👨‍👩‍👦‍👦","peoples",["family_man_woman_boy_boy"]),new bd("👨‍👩‍👧‍👧","peoples",["family_man_woman_girl_girl"]),new bd("👩‍👩‍👦","peoples",["family_woman_woman_boy"]),new bd("👩‍👩‍👧","peoples",["family_woman_woman_girl"]),new bd("👩‍👩‍👧‍👦","peoples",["family_woman_woman_girl_boy"]),new bd("👩‍👩‍👦‍👦","peoples",["family_woman_woman_boy_boy"]),new bd("👩‍👩‍👧‍👧","peoples",["family_woman_woman_girl_girl"]),new bd("👨‍👨‍👦","peoples",["family_man_man_boy"]),new bd("👨‍👨‍👧","peoples",["family_man_man_girl"]),new bd("👨‍👨‍👧‍👦","peoples",["family_man_man_girl_boy"]),new bd("👨‍👨‍👦‍👦","peoples",["family_man_man_boy_boy"]),new bd("👨‍👨‍👧‍👧","peoples",["family_man_man_girl_girl"]),new bd("👩‍👦","peoples",["family_woman_boy"]),new bd("👩‍👧","peoples",["family_woman_girl"]),new bd("👩‍👧‍👦","peoples",["family_woman_girl_boy"]),new bd("👩‍👦‍👦","peoples",["family_woman_boy_boy"]),new bd("👩‍👧‍👧","peoples",["family_woman_girl_girl"]),new bd("👨‍👦","peoples",["family_man_boy"]),new bd("👨‍👧","peoples",["family_man_girl"]),new bd("👨‍👧‍👦","peoples",["family_man_girl_boy"]),new bd("👨‍👦‍👦","peoples",["family_man_boy_boy"]),new bd("👨‍👧‍👧","peoples",["family_man_girl_girl"]),new bd("👚","peoples",["womans_clothes"]),new bd("👕","peoples",["shirt","tshirt"]),new bd("👖","peoples",["jeans"]),new bd("👔","peoples",["necktie"]),new bd("👗","peoples",["dress"]),new bd("👙","peoples",["bikini"]),new bd("👘","peoples",["kimono"]),new bd("👠","peoples",["high_heel"]),new bd("👡","peoples",["sandal"]),new bd("👢","peoples",["boot"]),new bd("👞","peoples",["mans_shoe","shoe"]),new bd("👟","peoples",["athletic_shoe"]),new bd("👒","peoples",["womans_hat"]),new bd("🎩","peoples",["tophat"]),new bd("🎓","peoples",["mortar_board"]),new bd("👑","peoples",["crown"]),new bd("⛑","peoples",["rescue_worker_helmet"]),new bd("🎒","peoples",["school_satchel"]),new bd("👝","peoples",["pouch"]),new bd("👛","peoples",["purse"]),new bd("👜","peoples",["handbag"]),new bd("💼","peoples",["briefcase"]),new bd("👓","peoples",["eyeglasses"]),new bd("🕶","peoples",["dark_sunglasses"]),new bd("🌂","peoples",["closed_umbrella"]),new bd("☂️","peoples",["open_umbrella"]),new bd("🐶","nature",["dog"]),new bd("🐱","nature",["cat"]),new bd("🐭","nature",["mouse"]),new bd("🐹","nature",["hamster"]),new bd("🐰","nature",["rabbit"]),new bd("🦊","nature",["fox_face"]),new bd("🐻","nature",["bear"]),new bd("🐼","nature",["panda_face"]),new bd("🐨","nature",["koala"]),new bd("🐯","nature",["tiger"]),new bd("🦁","nature",["lion"]),new bd("🐮","nature",["cow"]),new bd("🐷","nature",["pig"]),new bd("🐽","nature",["pig_nose"]),new bd("🐸","nature",["frog"]),new bd("🐵","nature",["monkey_face"]),new bd("🙈","nature",["see_no_evil"]),new bd("🙉","nature",["hear_no_evil"]),new bd("🙊","nature",["speak_no_evil"]),new bd("🐒","nature",["monkey"]),new bd("🐔","nature",["chicken"]),new bd("🐧","nature",["penguin"]),new bd("🐦","nature",["bird"]),new bd("🐤","nature",["baby_chick"]),new bd("🐣","nature",["hatching_chick"]),new bd("🐥","nature",["hatched_chick"]),new bd("🦆","nature",["duck"]),new bd("🦅","nature",["eagle"]),new bd("🦉","nature",["owl"]),new bd("🦇","nature",["bat"]),new bd("🐺","nature",["wolf"]),new bd("🐗","nature",["boar"]),new bd("🐴","nature",["horse"]),new bd("🦄","nature",["unicorn"]),new bd("🐝","nature",["bee","honeybee"]),new bd("🐛","nature",["bug"]),new bd("🦋","nature",["butterfly"]),new bd("🐌","nature",["snail"]),new bd("🐚","nature",["shell"]),new bd("🐞","nature",["beetle"]),new bd("🐜","nature",["ant"]),new bd("🕷","nature",["spider"]),new bd("🕸","nature",["spider_web"]),new bd("🐢","nature",["turtle"]),new bd("🐍","nature",["snake"]),new bd("🦎","nature",["lizard"]),new bd("🦂","nature",["scorpion"]),new bd("🦀","nature",["crab"]),new bd("🦑","nature",["squid"]),new bd("🐙","nature",["octopus"]),new bd("🦐","nature",["shrimp"]),new bd("🐠","nature",["tropical_fish"]),new bd("🐟","nature",["fish"]),new bd("🐡","nature",["blowfish"]),new bd("🐬","nature",["dolphin","flipper"]),new bd("🦈","nature",["shark"]),new bd("🐳","nature",["whale"]),new bd("🐋","nature",["whale2"]),new bd("🐊","nature",["crocodile"]),new bd("🐆","nature",["leopard"]),new bd("🐅","nature",["tiger2"]),new bd("🐃","nature",["water_buffalo"]),new bd("🐂","nature",["ox"]),new bd("🐄","nature",["cow2"]),new bd("🦌","nature",["deer"]),new bd("🐪","nature",["dromedary_camel"]),new bd("🐫","nature",["camel"]),new bd("🐘","nature",["elephant"]),new bd("🦏","nature",["rhinoceros"]),new bd("🦍","nature",["gorilla"]),new bd("🐎","nature",["racehorse"]),new bd("🐖","nature",["pig2"]),new bd("🐐","nature",["goat"]),new bd("🐏","nature",["ram"]),new bd("🐑","nature",["sheep"]),new bd("🐕","nature",["dog2"]),new bd("🐩","nature",["poodle"]),new bd("🐈","nature",["cat2"]),new bd("🐓","nature",["rooster"]),new bd("🦃","nature",["turkey"]),new bd("🕊","nature",["dove"]),new bd("🐇","nature",["rabbit2"]),new bd("🐁","nature",["mouse2"]),new bd("🐀","nature",["rat"]),new bd("🐿","nature",["chipmunk"]),new bd("🐾","nature",["feet","paw_prints"]),new bd("🐉","nature",["dragon"]),new bd("🐲","nature",["dragon_face"]),new bd("🌵","nature",["cactus"]),new bd("🎄","nature",["christmas_tree"]),new bd("🌲","nature",["evergreen_tree"]),new bd("🌳","nature",["deciduous_tree"]),new bd("🌴","nature",["palm_tree"]),new bd("🌱","nature",["seedling"]),new bd("🌿","nature",["herb"]),new bd("☘️","nature",["shamrock"]),new bd("🍀","nature",["four_leaf_clover"]),new bd("🎍","nature",["bamboo"]),new bd("🎋","nature",["tanabata_tree"]),new bd("🍃","nature",["leaves"]),new bd("🍂","nature",["fallen_leaf"]),new bd("🍁","nature",["maple_leaf"]),new bd("🍄","nature",["mushroom"]),new bd("🌾","nature",["ear_of_rice"]),new bd("💐","nature",["bouquet"]),new bd("🌷","nature",["tulip"]),new bd("🌹","nature",["rose"]),new bd("🥀","nature",["wilted_flower"]),new bd("🌻","nature",["sunflower"]),new bd("🌼","nature",["blossom"]),new bd("🌸","nature",["cherry_blossom"]),new bd("🌺","nature",["hibiscus"]),new bd("🌎","nature",["earth_americas"]),new bd("🌍","nature",["earth_africa"]),new bd("🌏","nature",["earth_asia"]),new bd("🌕","nature",["full_moon"]),new bd("🌖","nature",["waning_gibbous_moon"]),new bd("🌗","nature",["last_quarter_moon"]),new bd("🌘","nature",["waning_crescent_moon"]),new bd("🌑","nature",["new_moon"]),new bd("🌒","nature",["waxing_crescent_moon"]),new bd("🌓","nature",["first_quarter_moon"]),new bd("🌔","nature",["moon","waxing_gibbous_moon"]),new bd("🌚","nature",["new_moon_with_face"]),new bd("🌝","nature",["full_moon_with_face"]),new bd("🌞","nature",["sun_with_face"]),new bd("🌛","nature",["first_quarter_moon_with_face"]),new bd("🌜","nature",["last_quarter_moon_with_face"]),new bd("🌙","nature",["crescent_moon"]),new bd("💫","nature",["dizzy"]),new bd("⭐️","nature",["star"]),new bd("🌟","nature",["star2"]),new bd("✨","nature",["sparkles"]),new bd("⚡️","nature",["zap"]),new bd("🔥","nature",["fire"]),new bd("💥","nature",["boom","collision"]),new bd("☄","nature",["comet"]),new bd("☀️","nature",["sunny"]),new bd("🌤","nature",["sun_behind_small_cloud"]),new bd("⛅️","nature",["partly_sunny"]),new bd("🌥","nature",["sun_behind_large_cloud"]),new bd("🌦","nature",["sun_behind_rain_cloud"]),new bd("🌈","nature",["rainbow"]),new bd("☁️","nature",["cloud"]),new bd("🌧","nature",["cloud_with_rain"]),new bd("⛈","nature",["cloud_with_lightning_and_rain"]),new bd("🌩","nature",["cloud_with_lightning"]),new bd("🌨","nature",["cloud_with_snow"]),new bd("☃️","nature",["snowman_with_snow"]),new bd("⛄️","nature",["snowman"]),new bd("❄️","nature",["snowflake"]),new bd("🌬","nature",["wind_face"]),new bd("💨","nature",["dash"]),new bd("🌪","nature",["tornado"]),new bd("🌫","nature",["fog"]),new bd("🌊","nature",["ocean"]),new bd("💧","nature",["droplet"]),new bd("💦","nature",["sweat_drops"]),new bd("☔️","nature",["umbrella"]),new bd("🍏","foods",["green_apple"]),new bd("🍎","foods",["apple"]),new bd("🍐","foods",["pear"]),new bd("🍊","foods",["tangerine","orange","mandarin"]),new bd("🍋","foods",["lemon"]),new bd("🍌","foods",["banana"]),new bd("🍉","foods",["watermelon"]),new bd("🍇","foods",["grapes"]),new bd("🍓","foods",["strawberry"]),new bd("🍈","foods",["melon"]),new bd("🍒","foods",["cherries"]),new bd("🍑","foods",["peach"]),new bd("🍍","foods",["pineapple"]),new bd("🥝","foods",["kiwi_fruit"]),new bd("🥑","foods",["avocado"]),new bd("🍅","foods",["tomato"]),new bd("🍆","foods",["eggplant"]),new bd("🥒","foods",["cucumber"]),new bd("🥕","foods",["carrot"]),new bd("🌽","foods",["corn"]),new bd("🌶","foods",["hot_pepper"]),new bd("🥔","foods",["potato"]),new bd("🍠","foods",["sweet_potato"]),new bd("🌰","foods",["chestnut"]),new bd("🥜","foods",["peanuts"]),new bd("🍯","foods",["honey_pot"]),new bd("🥐","foods",["croissant"]),new bd("🍞","foods",["bread"]),new bd("🥖","foods",["baguette_bread"]),new bd("🧀","foods",["cheese"]),new bd("🥚","foods",["egg"]),new bd("🍳","foods",["fried_egg"]),new bd("🥓","foods",["bacon"]),new bd("🥞","foods",["pancakes"]),new bd("🍤","foods",["fried_shrimp"]),new bd("🍗","foods",["poultry_leg"]),new bd("🍖","foods",["meat_on_bone"]),new bd("🍕","foods",["pizza"]),new bd("🌭","foods",["hotdog"]),new bd("🍔","foods",["hamburger"]),new bd("🍟","foods",["fries"]),new bd("🥙","foods",["stuffed_flatbread"]),new bd("🌮","foods",["taco"]),new bd("🌯","foods",["burrito"]),new bd("🥗","foods",["green_salad"]),new bd("🥘","foods",["shallow_pan_of_food"]),new bd("🍝","foods",["spaghetti"]),new bd("🍜","foods",["ramen"]),new bd("🍲","foods",["stew"]),new bd("🍥","foods",["fish_cake"]),new bd("🍣","foods",["sushi"]),new bd("🍱","foods",["bento"]),new bd("🍛","foods",["curry"]),new bd("🍚","foods",["rice"]),new bd("🍙","foods",["rice_ball"]),new bd("🍘","foods",["rice_cracker"]),new bd("🍢","foods",["oden"]),new bd("🍡","foods",["dango"]),new bd("🍧","foods",["shaved_ice"]),new bd("🍨","foods",["ice_cream"]),new bd("🍦","foods",["icecream"]),new bd("🍰","foods",["cake"]),new bd("🎂","foods",["birthday"]),new bd("🍮","foods",["custard"]),new bd("🍭","foods",["lollipop"]),new bd("🍬","foods",["candy"]),new bd("🍫","foods",["chocolate_bar"]),new bd("🍿","foods",["popcorn"]),new bd("🍩","foods",["doughnut"]),new bd("🍪","foods",["cookie"]),new bd("🥛","foods",["milk_glass"]),new bd("🍼","foods",["baby_bottle"]),new bd("☕️","foods",["coffee"]),new bd("🍵","foods",["tea"]),new bd("🍶","foods",["sake"]),new bd("🍺","foods",["beer"]),new bd("🍻","foods",["beers"]),new bd("🥂","foods",["clinking_glasses"]),new bd("🍷","foods",["wine_glass"]),new bd("🥃","foods",["tumbler_glass"]),new bd("🍸","foods",["cocktail"]),new bd("🍹","foods",["tropical_drink"]),new bd("🍾","foods",["champagne"]),new bd("🥄","foods",["spoon"]),new bd("🍴","foods",["fork_and_knife"]),new bd("🍽","foods",["plate_with_cutlery"]),new bd("⚽️","activity",["soccer"]),new bd("🏀","activity",["basketball"]),new bd("🏈","activity",["football"]),new bd("⚾️","activity",["baseball"]),new bd("🎾","activity",["tennis"]),new bd("🏐","activity",["volleyball"]),new bd("🏉","activity",["rugby_football"]),new bd("🎱","activity",["8ball"]),new bd("🏓","activity",["ping_pong"]),new bd("🏸","activity",["badminton"]),new bd("🥅","activity",["goal_net"]),new bd("🏒","activity",["ice_hockey"]),new bd("🏑","activity",["field_hockey"]),new bd("🏏","activity",["cricket"]),new bd("⛳️","activity",["golf"]),new bd("🏹","activity",["bow_and_arrow"]),new bd("🎣","activity",["fishing_pole_and_fish"]),new bd("🥊","activity",["boxing_glove"]),new bd("🥋","activity",["martial_arts_uniform"]),new bd("⛸","activity",["ice_skate"]),new bd("🎿","activity",["ski"]),new bd("⛷","activity",["skier"]),new bd("🏂","activity",["snowboarder"]),new bd("🏋️‍♀️","activity",["weight_lifting_woman"]),new bd("🏋","activity",["weight_lifting_man"]),new bd("🤺","activity",["person_fencing"]),new bd("🤼‍♀","activity",["women_wrestling"]),new bd("🤼‍♂","activity",["men_wrestling"]),new bd("🤸‍♀","activity",["woman_cartwheeling"]),new bd("🤸‍♂","activity",["man_cartwheeling"]),new bd("⛹️‍♀️","activity",["basketball_woman"]),new bd("⛹","activity",["basketball_man"]),new bd("🤾‍♀","activity",["woman_playing_handball"]),new bd("🤾‍♂","activity",["man_playing_handball"]),new bd("🏌️‍♀️","activity",["golfing_woman"]),new bd("🏌","activity",["golfing_man"]),new bd("🏄‍♀","activity",["surfing_woman"]),new bd("🏄","activity",["surfing_man","surfer"]),new bd("🏊‍♀","activity",["swimming_woman"]),new bd("🏊","activity",["swimming_man","swimmer"]),new bd("🤽‍♀","activity",["woman_playing_water_polo"]),new bd("🤽‍♂","activity",["man_playing_water_polo"]),new bd("🚣‍♀","activity",["rowing_woman"]),new bd("🚣","activity",["rowing_man","rowboat"]),new bd("🏇","activity",["horse_racing"]),new bd("🚴‍♀","activity",["biking_woman"]),new bd("🚴","activity",["biking_man","bicyclist"]),new bd("🚵‍♀","activity",["mountain_biking_woman"]),new bd("🚵","activity",["mountain_biking_man","mountain_bicyclist"]),new bd("🎽","activity",["running_shirt_with_sash"]),new bd("🏅","activity",["medal_sports"]),new bd("🎖","activity",["medal_military"]),new bd("🥇","activity",["1st_place_medal"]),new bd("🥈","activity",["2nd_place_medal"]),new bd("🥉","activity",["3rd_place_medal"]),new bd("🏆","activity",["trophy"]),new bd("🏵","activity",["rosette"]),new bd("🎗","activity",["reminder_ribbon"]),new bd("🎫","activity",["ticket"]),new bd("🎟","activity",["tickets"]),new bd("🎪","activity",["circus_tent"]),new bd("🤹‍♀","activity",["woman_juggling"]),new bd("🤹‍♂","activity",["man_juggling"]),new bd("🎭","activity",["performing_arts"]),new bd("🎨","activity",["art"]),new bd("🎬","activity",["clapper"]),new bd("🎤","activity",["microphone"]),new bd("🎧","activity",["headphones"]),new bd("🎼","activity",["musical_score"]),new bd("🎹","activity",["musical_keyboard"]),new bd("🥁","activity",["drum"]),new bd("🎷","activity",["saxophone"]),new bd("🎺","activity",["trumpet"]),new bd("🎸","activity",["guitar"]),new bd("🎻","activity",["violin"]),new bd("🎲","activity",["game_die"]),new bd("🎯","activity",["dart"]),new bd("🎳","activity",["bowling"]),new bd("🎮","activity",["video_game"]),new bd("🎰","activity",["slot_machine"]),new bd("🚗","places",["car","red_car"]),new bd("🚕","places",["taxi"]),new bd("🚙","places",["blue_car"]),new bd("🚌","places",["bus"]),new bd("🚎","places",["trolleybus"]),new bd("🏎","places",["racing_car"]),new bd("🚓","places",["police_car"]),new bd("🚑","places",["ambulance"]),new bd("🚒","places",["fire_engine"]),new bd("🚐","places",["minibus"]),new bd("🚚","places",["truck"]),new bd("🚛","places",["articulated_lorry"]),new bd("🚜","places",["tractor"]),new bd("🛴","places",["kick_scooter"]),new bd("🚲","places",["bike"]),new bd("🛵","places",["motor_scooter"]),new bd("🏍","places",["motorcycle"]),new bd("🚨","places",["rotating_light"]),new bd("🚔","places",["oncoming_police_car"]),new bd("🚍","places",["oncoming_bus"]),new bd("🚘","places",["oncoming_automobile"]),new bd("🚖","places",["oncoming_taxi"]),new bd("🚡","places",["aerial_tramway"]),new bd("🚠","places",["mountain_cableway"]),new bd("🚟","places",["suspension_railway"]),new bd("🚃","places",["railway_car"]),new bd("🚋","places",["train"]),new bd("🚞","places",["mountain_railway"]),new bd("🚝","places",["monorail"]),new bd("🚄","places",["bullettrain_side"]),new bd("🚅","places",["bullettrain_front"]),new bd("🚈","places",["light_rail"]),new bd("🚂","places",["steam_locomotive"]),new bd("🚆","places",["train2"]),new bd("🚇","places",["metro"]),new bd("🚊","places",["tram"]),new bd("🚉","places",["station"]),new bd("🚁","places",["helicopter"]),new bd("🛩","places",["small_airplane"]),new bd("✈️","places",["airplane"]),new bd("🛫","places",["flight_departure"]),new bd("🛬","places",["flight_arrival"]),new bd("🚀","places",["rocket"]),new bd("🛰","places",["artificial_satellite"]),new bd("💺","places",["seat"]),new bd("🛶","places",["canoe"]),new bd("⛵️","places",["boat","sailboat"]),new bd("🛥","places",["motor_boat"]),new bd("🚤","places",["speedboat"]),new bd("🛳","places",["passenger_ship"]),new bd("⛴","places",["ferry"]),new bd("🚢","places",["ship"]),new bd("⚓️","places",["anchor"]),new bd("🚧","places",["construction"]),new bd("⛽️","places",["fuelpump"]),new bd("🚏","places",["busstop"]),new bd("🚦","places",["vertical_traffic_light"]),new bd("🚥","places",["traffic_light"]),new bd("🗺","places",["world_map"]),new bd("🗿","places",["moyai"]),new bd("🗽","places",["statue_of_liberty"]),new bd("⛲️","places",["fountain"]),new bd("🗼","places",["tokyo_tower"]),new bd("🏰","places",["european_castle"]),new bd("🏯","places",["japanese_castle"]),new bd("🏟","places",["stadium"]),new bd("🎡","places",["ferris_wheel"]),new bd("🎢","places",["roller_coaster"]),new bd("🎠","places",["carousel_horse"]),new bd("⛱","places",["parasol_on_ground"]),new bd("🏖","places",["beach_umbrella"]),new bd("🏝","places",["desert_island"]),new bd("⛰","places",["mountain"]),new bd("🏔","places",["mountain_snow"]),new bd("🗻","places",["mount_fuji"]),new bd("🌋","places",["volcano"]),new bd("🏜","places",["desert"]),new bd("🏕","places",["camping"]),new bd("⛺️","places",["tent"]),new bd("🛤","places",["railway_track"]),new bd("🛣","places",["motorway"]),new bd("🏗","places",["building_construction"]),new bd("🏭","places",["factory"]),new bd("🏠","places",["house"]),new bd("🏡","places",["house_with_garden"]),new bd("🏘","places",["houses"]),new bd("🏚","places",["derelict_house"]),new bd("🏢","places",["office"]),new bd("🏬","places",["department_store"]),new bd("🏣","places",["post_office"]),new bd("🏤","places",["european_post_office"]),new bd("🏥","places",["hospital"]),new bd("🏦","places",["bank"]),new bd("🏨","places",["hotel"]),new bd("🏪","places",["convenience_store"]),new bd("🏫","places",["school"]),new bd("🏩","places",["love_hotel"]),new bd("💒","places",["wedding"]),new bd("🏛","places",["classical_building"]),new bd("⛪️","places",["church"]),new bd("🕌","places",["mosque"]),new bd("🕍","places",["synagogue"]),new bd("🕋","places",["kaaba"]),new bd("⛩","places",["shinto_shrine"]),new bd("🗾","places",["japan"]),new bd("🎑","places",["rice_scene"]),new bd("🏞","places",["national_park"]),new bd("🌅","places",["sunrise"]),new bd("🌄","places",["sunrise_over_mountains"]),new bd("🌠","places",["stars"]),new bd("🎇","places",["sparkler"]),new bd("🎆","places",["fireworks"]),new bd("🌇","places",["city_sunrise"]),new bd("🌆","places",["city_sunset"]),new bd("🏙","places",["cityscape"]),new bd("🌃","places",["night_with_stars"]),new bd("🌌","places",["milky_way"]),new bd("🌉","places",["bridge_at_night"]),new bd("🌁","places",["foggy"]),new bd("⌚️","objects",["watch"]),new bd("📱","objects",["iphone"]),new bd("📲","objects",["calling"]),new bd("💻","objects",["computer"]),new bd("⌨️","objects",["keyboard"]),new bd("🖥","objects",["desktop_computer"]),new bd("🖨","objects",["printer"]),new bd("🖱","objects",["computer_mouse"]),new bd("🖲","objects",["trackball"]),new bd("🕹","objects",["joystick"]),new bd("🗜","objects",["clamp"]),new bd("💽","objects",["minidisc"]),new bd("💾","objects",["floppy_disk"]),new bd("💿","objects",["cd"]),new bd("📀","objects",["dvd"]),new bd("📼","objects",["vhs"]),new bd("📷","objects",["camera"]),new bd("📸","objects",["camera_flash"]),new bd("📹","objects",["video_camera"]),new bd("🎥","objects",["movie_camera"]),new bd("📽","objects",["film_projector"]),new bd("🎞","objects",["film_strip"]),new bd("📞","objects",["telephone_receiver"]),new bd("☎️","objects",["phone","telephone"]),new bd("📟","objects",["pager"]),new bd("📠","objects",["fax"]),new bd("📺","objects",["tv"]),new bd("📻","objects",["radio"]),new bd("🎙","objects",["studio_microphone"]),new bd("🎚","objects",["level_slider"]),new bd("🎛","objects",["control_knobs"]),new bd("⏱","objects",["stopwatch"]),new bd("⏲","objects",["timer_clock"]),new bd("⏰","objects",["alarm_clock"]),new bd("🕰","objects",["mantelpiece_clock"]),new bd("⌛️","objects",["hourglass"]),new bd("⏳","objects",["hourglass_flowing_sand"]),new bd("📡","objects",["satellite"]),new bd("🔋","objects",["battery"]),new bd("🔌","objects",["electric_plug"]),new bd("💡","objects",["bulb"]),new bd("🔦","objects",["flashlight"]),new bd("🕯","objects",["candle"]),new bd("🗑","objects",["wastebasket"]),new bd("🛢","objects",["oil_drum"]),new bd("💸","objects",["money_with_wings"]),new bd("💵","objects",["dollar"]),new bd("💴","objects",["yen"]),new bd("💶","objects",["euro"]),new bd("💷","objects",["pound"]),new bd("💰","objects",["moneybag"]),new bd("💳","objects",["credit_card"]),new bd("💎","objects",["gem"]),new bd("⚖️","objects",["balance_scale"]),new bd("🔧","objects",["wrench"]),new bd("🔨","objects",["hammer"]),new bd("⚒","objects",["hammer_and_pick"]),new bd("🛠","objects",["hammer_and_wrench"]),new bd("⛏","objects",["pick"]),new bd("🔩","objects",["nut_and_bolt"]),new bd("⚙️","objects",["gear"]),new bd("⛓","objects",["chains"]),new bd("🔫","objects",["gun"]),new bd("💣","objects",["bomb"]),new bd("🔪","objects",["hocho","knife"]),new bd("🗡","objects",["dagger"]),new bd("⚔️","objects",["crossed_swords"]),new bd("🛡","objects",["shield"]),new bd("🚬","objects",["smoking"]),new bd("⚰️","objects",["coffin"]),new bd("⚱️","objects",["funeral_urn"]),new bd("🏺","objects",["amphora"]),new bd("🔮","objects",["crystal_ball"]),new bd("📿","objects",["prayer_beads"]),new bd("💈","objects",["barber"]),new bd("⚗️","objects",["alembic"]),new bd("🔭","objects",["telescope"]),new bd("🔬","objects",["microscope"]),new bd("🕳","objects",["hole"]),new bd("💊","objects",["pill"]),new bd("💉","objects",["syringe"]),new bd("🌡","objects",["thermometer"]),new bd("🚽","objects",["toilet"]),new bd("🚰","objects",["potable_water"]),new bd("🚿","objects",["shower"]),new bd("🛁","objects",["bathtub"]),new bd("🛀","objects",["bath"]),new bd("🛎","objects",["bellhop_bell"]),new bd("🔑","objects",["key"]),new bd("🗝","objects",["old_key"]),new bd("🚪","objects",["door"]),new bd("🛋","objects",["couch_and_lamp"]),new bd("🛏","objects",["bed"]),new bd("🛌","objects",["sleeping_bed"]),new bd("🖼","objects",["framed_picture"]),new bd("🛍","objects",["shopping"]),new bd("🛒","objects",["shopping_cart"]),new bd("🎁","objects",["gift"]),new bd("🎈","objects",["balloon"]),new bd("🎏","objects",["flags"]),new bd("🎀","objects",["ribbon"]),new bd("🎊","objects",["confetti_ball"]),new bd("🎉","objects",["tada"]),new bd("🎎","objects",["dolls"]),new bd("🏮","objects",["izakaya_lantern","lantern"]),new bd("🎐","objects",["wind_chime"]),new bd("✉️","objects",["email","envelope"]),new bd("📩","objects",["envelope_with_arrow"]),new bd("📨","objects",["incoming_envelope"]),new bd("📧","objects",["e-mail"]),new bd("💌","objects",["love_letter"]),new bd("📥","objects",["inbox_tray"]),new bd("📤","objects",["outbox_tray"]),new bd("📦","objects",["package"]),new bd("🏷","objects",["label"]),new bd("📪","objects",["mailbox_closed"]),new bd("📫","objects",["mailbox"]),new bd("📬","objects",["mailbox_with_mail"]),new bd("📭","objects",["mailbox_with_no_mail"]),new bd("📮","objects",["postbox"]),new bd("📯","objects",["postal_horn"]),new bd("📜","objects",["scroll"]),new bd("📃","objects",["page_with_curl"]),new bd("📄","objects",["page_facing_up"]),new bd("📑","objects",["bookmark_tabs"]),new bd("📊","objects",["bar_chart"]),new bd("📈","objects",["chart_with_upwards_trend"]),new bd("📉","objects",["chart_with_downwards_trend"]),new bd("🗒","objects",["spiral_notepad"]),new bd("🗓","objects",["spiral_calendar"]),new bd("📆","objects",["calendar"]),new bd("📅","objects",["date"]),new bd("📇","objects",["card_index"]),new bd("🗃","objects",["card_file_box"]),new bd("🗳","objects",["ballot_box"]),new bd("🗄","objects",["file_cabinet"]),new bd("📋","objects",["clipboard"]),new bd("📁","objects",["file_folder"]),new bd("📂","objects",["open_file_folder"]),new bd("🗂","objects",["card_index_dividers"]),new bd("🗞","objects",["newspaper_roll"]),new bd("📰","objects",["newspaper"]),new bd("📓","objects",["notebook"]),new bd("📔","objects",["notebook_with_decorative_cover"]),new bd("📒","objects",["ledger"]),new bd("📕","objects",["closed_book"]),new bd("📗","objects",["green_book"]),new bd("📘","objects",["blue_book"]),new bd("📙","objects",["orange_book"]),new bd("📚","objects",["books"]),new bd("📖","objects",["book","open_book"]),new bd("🔖","objects",["bookmark"]),new bd("🔗","objects",["link"]),new bd("📎","objects",["paperclip"]),new bd("🖇","objects",["paperclips"]),new bd("📐","objects",["triangular_ruler"]),new bd("📏","objects",["straight_ruler"]),new bd("📌","objects",["pushpin"]),new bd("📍","objects",["round_pushpin"]),new bd("✂️","objects",["scissors"]),new bd("🖊","objects",["pen"]),new bd("🖋","objects",["fountain_pen"]),new bd("✒️","objects",["black_nib"]),new bd("🖌","objects",["paintbrush"]),new bd("🖍","objects",["crayon"]),new bd("📝","objects",["memo","pencil"]),new bd("✏️","objects",["pencil2"]),new bd("🔍","objects",["mag"]),new bd("🔎","objects",["mag_right"]),new bd("🔏","objects",["lock_with_ink_pen"]),new bd("🔐","objects",["closed_lock_with_key"]),new bd("🔒","objects",["lock"]),new bd("🔓","objects",["unlock"]),new bd("❤️","symbols",["heart"]),new bd("💛","symbols",["yellow_heart"]),new bd("💚","symbols",["green_heart"]),new bd("💙","symbols",["blue_heart"]),new bd("💜","symbols",["purple_heart"]),new bd("🖤","symbols",["black_heart"]),new bd("💔","symbols",["broken_heart"]),new bd("❣️","symbols",["heavy_heart_exclamation"]),new bd("💕","symbols",["two_hearts"]),new bd("💞","symbols",["revolving_hearts"]),new bd("💓","symbols",["heartbeat"]),new bd("💗","symbols",["heartpulse"]),new bd("💖","symbols",["sparkling_heart"]),new bd("💘","symbols",["cupid"]),new bd("💝","symbols",["gift_heart"]),new bd("💟","symbols",["heart_decoration"]),new bd("☮️","symbols",["peace_symbol"]),new bd("✝️","symbols",["latin_cross"]),new bd("☪️","symbols",["star_and_crescent"]),new bd("🕉","symbols",["om"]),new bd("☸️","symbols",["wheel_of_dharma"]),new bd("✡️","symbols",["star_of_david"]),new bd("🔯","symbols",["six_pointed_star"]),new bd("🕎","symbols",["menorah"]),new bd("☯️","symbols",["yin_yang"]),new bd("☦️","symbols",["orthodox_cross"]),new bd("🛐","symbols",["place_of_worship"]),new bd("⛎","symbols",["ophiuchus"]),new bd("♈️","symbols",["aries"]),new bd("♉️","symbols",["taurus"]),new bd("♊️","symbols",["gemini"]),new bd("♋️","symbols",["cancer"]),new bd("♌️","symbols",["leo"]),new bd("♍️","symbols",["virgo"]),new bd("♎️","symbols",["libra"]),new bd("♏️","symbols",["scorpius"]),new bd("♐️","symbols",["sagittarius"]),new bd("♑️","symbols",["capricorn"]),new bd("♒️","symbols",["aquarius"]),new bd("♓️","symbols",["pisces"]),new bd("🆔","symbols",["id"]),new bd("⚛️","symbols",["atom_symbol"]),new bd("🉑","symbols",["accept"]),new bd("☢️","symbols",["radioactive"]),new bd("☣️","symbols",["biohazard"]),new bd("📴","symbols",["mobile_phone_off"]),new bd("📳","symbols",["vibration_mode"]),new bd("🈶","symbols",["u6709"]),new bd("🈚️","symbols",["u7121"]),new bd("🈸","symbols",["u7533"]),new bd("🈺","symbols",["u55b6"]),new bd("🈷️","symbols",["u6708"]),new bd("✴️","symbols",["eight_pointed_black_star"]),new bd("🆚","symbols",["vs"]),new bd("💮","symbols",["white_flower"]),new bd("🉐","symbols",["ideograph_advantage"]),new bd("㊙️","symbols",["secret"]),new bd("㊗️","symbols",["congratulations"]),new bd("🈴","symbols",["u5408"]),new bd("🈵","symbols",["u6e80"]),new bd("🈹","symbols",["u5272"]),new bd("🈲","symbols",["u7981"]),new bd("🅰️","symbols",["a"]),new bd("🅱️","symbols",["b"]),new bd("🆎","symbols",["ab"]),new bd("🆑","symbols",["cl"]),new bd("🅾️","symbols",["o2"]),new bd("🆘","symbols",["sos"]),new bd("❌","symbols",["x"]),new bd("⭕️","symbols",["o"]),new bd("🛑","symbols",["stop_sign"]),new bd("⛔️","symbols",["no_entry"]),new bd("📛","symbols",["name_badge"]),new bd("🚫","symbols",["no_entry_sign"]),new bd("💯","symbols",["100"]),new bd("💢","symbols",["anger"]),new bd("♨️","symbols",["hotsprings"]),new bd("🚷","symbols",["no_pedestrians"]),new bd("🚯","symbols",["do_not_litter"]),new bd("🚳","symbols",["no_bicycles"]),new bd("🚱","symbols",["non-potable_water"]),new bd("🔞","symbols",["underage"]),new bd("📵","symbols",["no_mobile_phones"]),new bd("🚭","symbols",["no_smoking"]),new bd("❗️","symbols",["exclamation","heavy_exclamation_mark"]),new bd("❕","symbols",["grey_exclamation"]),new bd("❓","symbols",["question"]),new bd("❔","symbols",["grey_question"]),new bd("‼️","symbols",["bangbang"]),new bd("⁉️","symbols",["interrobang"]),new bd("🔅","symbols",["low_brightness"]),new bd("🔆","symbols",["high_brightness"]),new bd("〽️","symbols",["part_alternation_mark"]),new bd("⚠️","symbols",["warning"]),new bd("🚸","symbols",["children_crossing"]),new bd("🔱","symbols",["trident"]),new bd("⚜️","symbols",["fleur_de_lis"]),new bd("🔰","symbols",["beginner"]),new bd("♻️","symbols",["recycle"]),new bd("✅","symbols",["white_check_mark"]),new bd("🈯️","symbols",["u6307"]),new bd("💹","symbols",["chart"]),new bd("❇️","symbols",["sparkle"]),new bd("✳️","symbols",["eight_spoked_asterisk"]),new bd("❎","symbols",["negative_squared_cross_mark"]),new bd("🌐","symbols",["globe_with_meridians"]),new bd("💠","symbols",["diamond_shape_with_a_dot_inside"]),new bd("Ⓜ️","symbols",["m"]),new bd("🌀","symbols",["cyclone"]),new bd("💤","symbols",["zzz"]),new bd("🏧","symbols",["atm"]),new bd("🚾","symbols",["wc"]),new bd("♿️","symbols",["wheelchair"]),new bd("🅿️","symbols",["parking"]),new bd("🈳","symbols",["u7a7a"]),new bd("🈂️","symbols",["sa"]),new bd("🛂","symbols",["passport_control"]),new bd("🛃","symbols",["customs"]),new bd("🛄","symbols",["baggage_claim"]),new bd("🛅","symbols",["left_luggage"]),new bd("🚹","symbols",["mens"]),new bd("🚺","symbols",["womens"]),new bd("🚼","symbols",["baby_symbol"]),new bd("🚻","symbols",["restroom"]),new bd("🚮","symbols",["put_litter_in_its_place"]),new bd("🎦","symbols",["cinema"]),new bd("📶","symbols",["signal_strength"]),new bd("🈁","symbols",["koko"]),new bd("🔣","symbols",["symbols"]),new bd("ℹ️","symbols",["information_source"]),new bd("🔤","symbols",["abc"]),new bd("🔡","symbols",["abcd"]),new bd("🔠","symbols",["capital_abcd"]),new bd("🆖","symbols",["ng"]),new bd("🆗","symbols",["ok"]),new bd("🆙","symbols",["up"]),new bd("🆒","symbols",["cool"]),new bd("🆕","symbols",["new"]),new bd("🆓","symbols",["free"]),new bd("0️⃣","symbols",["zero"]),new bd("1️⃣","symbols",["one"]),new bd("2️⃣","symbols",["two"]),new bd("3️⃣","symbols",["three"]),new bd("4️⃣","symbols",["four"]),new bd("5️⃣","symbols",["five"]),new bd("6️⃣","symbols",["six"]),new bd("7️⃣","symbols",["seven"]),new bd("8️⃣","symbols",["eight"]),new bd("9️⃣","symbols",["nine"]),new bd("🔟","symbols",["keycap_ten"]),new bd("🔢","symbols",["1234"]),new bd("#️⃣","symbols",["hash"]),new bd("*️⃣","symbols",["asterisk"]),new bd("▶️","symbols",["arrow_forward"]),new bd("⏸","symbols",["pause_button"]),new bd("⏯","symbols",["play_or_pause_button"]),new bd("⏹","symbols",["stop_button"]),new bd("⏺","symbols",["record_button"]),new bd("⏭","symbols",["next_track_button"]),new bd("⏮","symbols",["previous_track_button"]),new bd("⏩","symbols",["fast_forward"]),new bd("⏪","symbols",["rewind"]),new bd("⏫","symbols",["arrow_double_up"]),new bd("⏬","symbols",["arrow_double_down"]),new bd("◀️","symbols",["arrow_backward"]),new bd("🔼","symbols",["arrow_up_small"]),new bd("🔽","symbols",["arrow_down_small"]),new bd("➡️","symbols",["arrow_right"]),new bd("⬅️","symbols",["arrow_left"]),new bd("⬆️","symbols",["arrow_up"]),new bd("⬇️","symbols",["arrow_down"]),new bd("↗️","symbols",["arrow_upper_right"]),new bd("↘️","symbols",["arrow_lower_right"]),new bd("↙️","symbols",["arrow_lower_left"]),new bd("↖️","symbols",["arrow_upper_left"]),new bd("↕️","symbols",["arrow_up_down"]),new bd("↔️","symbols",["left_right_arrow"]),new bd("↪️","symbols",["arrow_right_hook"]),new bd("↩️","symbols",["leftwards_arrow_with_hook"]),new bd("⤴️","symbols",["arrow_heading_up"]),new bd("⤵️","symbols",["arrow_heading_down"]),new bd("🔀","symbols",["twisted_rightwards_arrows"]),new bd("🔁","symbols",["repeat"]),new bd("🔂","symbols",["repeat_one"]),new bd("🔄","symbols",["arrows_counterclockwise"]),new bd("🔃","symbols",["arrows_clockwise"]),new bd("🎵","symbols",["musical_note"]),new bd("🎶","symbols",["notes"]),new bd("➕","symbols",["heavy_plus_sign"]),new bd("➖","symbols",["heavy_minus_sign"]),new bd("➗","symbols",["heavy_division_sign"]),new bd("✖️","symbols",["heavy_multiplication_x"]),new bd("💲","symbols",["heavy_dollar_sign"]),new bd("💱","symbols",["currency_exchange"]),new bd("™️","symbols",["tm"]),new bd("©️","symbols",["copyright"]),new bd("®️","symbols",["registered"]),new bd("〰️","symbols",["wavy_dash"]),new bd("➰","symbols",["curly_loop"]),new bd("➿","symbols",["loop"]),new bd("🔚","symbols",["end"]),new bd("🔙","symbols",["back"]),new bd("🔛","symbols",["on"]),new bd("🔝","symbols",["top"]),new bd("🔜","symbols",["soon"]),new bd("✔️","symbols",["heavy_check_mark"]),new bd("☑️","symbols",["ballot_box_with_check"]),new bd("🔘","symbols",["radio_button"]),new bd("⚪️","symbols",["white_circle"]),new bd("⚫️","symbols",["black_circle"]),new bd("🔴","symbols",["red_circle"]),new bd("🔵","symbols",["large_blue_circle"]),new bd("🔺","symbols",["small_red_triangle"]),new bd("🔻","symbols",["small_red_triangle_down"]),new bd("🔸","symbols",["small_orange_diamond"]),new bd("🔹","symbols",["small_blue_diamond"]),new bd("🔶","symbols",["large_orange_diamond"]),new bd("🔷","symbols",["large_blue_diamond"]),new bd("🔳","symbols",["white_square_button"]),new bd("🔲","symbols",["black_square_button"]),new bd("▪️","symbols",["black_small_square"]),new bd("▫️","symbols",["white_small_square"]),new bd("◾️","symbols",["black_medium_small_square"]),new bd("◽️","symbols",["white_medium_small_square"]),new bd("◼️","symbols",["black_medium_square"]),new bd("◻️","symbols",["white_medium_square"]),new bd("⬛️","symbols",["black_large_square"]),new bd("⬜️","symbols",["white_large_square"]),new bd("🔈","symbols",["speaker"]),new bd("🔇","symbols",["mute"]),new bd("🔉","symbols",["sound"]),new bd("🔊","symbols",["loud_sound"]),new bd("🔔","symbols",["bell"]),new bd("🔕","symbols",["no_bell"]),new bd("📣","symbols",["mega"]),new bd("📢","symbols",["loudspeaker"]),new bd("👁‍🗨","symbols",["eye_speech_bubble"]),new bd("💬","symbols",["speech_balloon"]),new bd("💭","symbols",["thought_balloon"]),new bd("🗯","symbols",["right_anger_bubble"]),new bd("♠️","symbols",["spades"]),new bd("♣️","symbols",["clubs"]),new bd("♥️","symbols",["hearts"]),new bd("♦️","symbols",["diamonds"]),new bd("🃏","symbols",["black_joker"]),new bd("🎴","symbols",["flower_playing_cards"]),new bd("🀄️","symbols",["mahjong"]),new bd("🕐","symbols",["clock1"]),new bd("🕑","symbols",["clock2"]),new bd("🕒","symbols",["clock3"]),new bd("🕓","symbols",["clock4"]),new bd("🕔","symbols",["clock5"]),new bd("🕕","symbols",["clock6"]),new bd("🕖","symbols",["clock7"]),new bd("🕗","symbols",["clock8"]),new bd("🕘","symbols",["clock9"]),new bd("🕙","symbols",["clock10"]),new bd("🕚","symbols",["clock11"]),new bd("🕛","symbols",["clock12"]),new bd("🕜","symbols",["clock130"]),new bd("🕝","symbols",["clock230"]),new bd("🕞","symbols",["clock330"]),new bd("🕟","symbols",["clock430"]),new bd("🕠","symbols",["clock530"]),new bd("🕡","symbols",["clock630"]),new bd("🕢","symbols",["clock730"]),new bd("🕣","symbols",["clock830"]),new bd("🕤","symbols",["clock930"]),new bd("🕥","symbols",["clock1030"]),new bd("🕦","symbols",["clock1130"]),new bd("🕧","symbols",["clock1230"]),new bd("🏳️","flags",["white_flag"]),new bd("🏴","flags",["black_flag"]),new bd("🏁","flags",["checkered_flag"]),new bd("🚩","flags",["triangular_flag_on_post"]),new bd("🏳️‍🌈","flags",["rainbow_flag"]),new bd("🇦🇫","flags",["afghanistan"]),new bd("🇦🇽","flags",["aland_islands"]),new bd("🇦🇱","flags",["albania"]),new bd("🇩🇿","flags",["algeria"]),new bd("🇦🇸","flags",["american_samoa"]),new bd("🇦🇩","flags",["andorra"]),new bd("🇦🇴","flags",["angola"]),new bd("🇦🇮","flags",["anguilla"]),new bd("🇦🇶","flags",["antarctica"]),new bd("🇦🇬","flags",["antigua_barbuda"]),new bd("🇦🇷","flags",["argentina"]),new bd("🇦🇲","flags",["armenia"]),new bd("🇦🇼","flags",["aruba"]),new bd("🇦🇺","flags",["australia"]),new bd("🇦🇹","flags",["austria"]),new bd("🇦🇿","flags",["azerbaijan"]),new bd("🇧🇸","flags",["bahamas"]),new bd("🇧🇭","flags",["bahrain"]),new bd("🇧🇩","flags",["bangladesh"]),new bd("🇧🇧","flags",["barbados"]),new bd("🇧🇾","flags",["belarus"]),new bd("🇧🇪","flags",["belgium"]),new bd("🇧🇿","flags",["belize"]),new bd("🇧🇯","flags",["benin"]),new bd("🇧🇲","flags",["bermuda"]),new bd("🇧🇹","flags",["bhutan"]),new bd("🇧🇴","flags",["bolivia"]),new bd("🇧🇶","flags",["caribbean_netherlands"]),new bd("🇧🇦","flags",["bosnia_herzegovina"]),new bd("🇧🇼","flags",["botswana"]),new bd("🇧🇷","flags",["brazil"]),new bd("🇮🇴","flags",["british_indian_ocean_territory"]),new bd("🇻🇬","flags",["british_virgin_islands"]),new bd("🇧🇳","flags",["brunei"]),new bd("🇧🇬","flags",["bulgaria"]),new bd("🇧🇫","flags",["burkina_faso"]),new bd("🇧🇮","flags",["burundi"]),new bd("🇨🇻","flags",["cape_verde"]),new bd("🇰🇭","flags",["cambodia"]),new bd("🇨🇲","flags",["cameroon"]),new bd("🇨🇦","flags",["canada"]),new bd("🇮🇨","flags",["canary_islands"]),new bd("🇰🇾","flags",["cayman_islands"]),new bd("🇨🇫","flags",["central_african_republic"]),new bd("🇹🇩","flags",["chad"]),new bd("🇨🇱","flags",["chile"]),new bd("🇨🇳","flags",["cn"]),new bd("🇨🇽","flags",["christmas_island"]),new bd("🇨🇨","flags",["cocos_islands"]),new bd("🇨🇴","flags",["colombia"]),new bd("🇰🇲","flags",["comoros"]),new bd("🇨🇬","flags",["congo_brazzaville"]),new bd("🇨🇩","flags",["congo_kinshasa"]),new bd("🇨🇰","flags",["cook_islands"]),new bd("🇨🇷","flags",["costa_rica"]),new bd("🇨🇮","flags",["cote_divoire"]),new bd("🇭🇷","flags",["croatia"]),new bd("🇨🇺","flags",["cuba"]),new bd("🇨🇼","flags",["curacao"]),new bd("🇨🇾","flags",["cyprus"]),new bd("🇨🇿","flags",["czech_republic"]),new bd("🇩🇰","flags",["denmark"]),new bd("🇩🇯","flags",["djibouti"]),new bd("🇩🇲","flags",["dominica"]),new bd("🇩🇴","flags",["dominican_republic"]),new bd("🇪🇨","flags",["ecuador"]),new bd("🇪🇬","flags",["egypt"]),new bd("🇸🇻","flags",["el_salvador"]),new bd("🇬🇶","flags",["equatorial_guinea"]),new bd("🇪🇷","flags",["eritrea"]),new bd("🇪🇪","flags",["estonia"]),new bd("🇪🇹","flags",["ethiopia"]),new bd("🇪🇺","flags",["eu","european_union"]),new bd("🇫🇰","flags",["falkland_islands"]),new bd("🇫🇴","flags",["faroe_islands"]),new bd("🇫🇯","flags",["fiji"]),new bd("🇫🇮","flags",["finland"]),new bd("🇫🇷","flags",["fr"]),new bd("🇬🇫","flags",["french_guiana"]),new bd("🇵🇫","flags",["french_polynesia"]),new bd("🇹🇫","flags",["french_southern_territories"]),new bd("🇬🇦","flags",["gabon"]),new bd("🇬🇲","flags",["gambia"]),new bd("🇬🇪","flags",["georgia"]),new bd("🇩🇪","flags",["de"]),new bd("🇬🇭","flags",["ghana"]),new bd("🇬🇮","flags",["gibraltar"]),new bd("🇬🇷","flags",["greece"]),new bd("🇬🇱","flags",["greenland"]),new bd("🇬🇩","flags",["grenada"]),new bd("🇬🇵","flags",["guadeloupe"]),new bd("🇬🇺","flags",["guam"]),new bd("🇬🇹","flags",["guatemala"]),new bd("🇬🇬","flags",["guernsey"]),new bd("🇬🇳","flags",["guinea"]),new bd("🇬🇼","flags",["guinea_bissau"]),new bd("🇬🇾","flags",["guyana"]),new bd("🇭🇹","flags",["haiti"]),new bd("🇭🇳","flags",["honduras"]),new bd("🇭🇰","flags",["hong_kong"]),new bd("🇭🇺","flags",["hungary"]),new bd("🇮🇸","flags",["iceland"]),new bd("🇮🇳","flags",["india"]),new bd("🇮🇩","flags",["indonesia"]),new bd("🇮🇷","flags",["iran"]),new bd("🇮🇶","flags",["iraq"]),new bd("🇮🇪","flags",["ireland"]),new bd("🇮🇲","flags",["isle_of_man"]),new bd("🇮🇱","flags",["israel"]),new bd("🇮🇹","flags",["it"]),new bd("🇯🇲","flags",["jamaica"]),new bd("🇯🇵","flags",["jp"]),new bd("🎌","flags",["crossed_flags"]),new bd("🇯🇪","flags",["jersey"]),new bd("🇯🇴","flags",["jordan"]),new bd("🇰🇿","flags",["kazakhstan"]),new bd("🇰🇪","flags",["kenya"]),new bd("🇰🇮","flags",["kiribati"]),new bd("🇽🇰","flags",["kosovo"]),new bd("🇰🇼","flags",["kuwait"]),new bd("🇰🇬","flags",["kyrgyzstan"]),new bd("🇱🇦","flags",["laos"]),new bd("🇱🇻","flags",["latvia"]),new bd("🇱🇧","flags",["lebanon"]),new bd("🇱🇸","flags",["lesotho"]),new bd("🇱🇷","flags",["liberia"]),new bd("🇱🇾","flags",["libya"]),new bd("🇱🇮","flags",["liechtenstein"]),new bd("🇱🇹","flags",["lithuania"]),new bd("🇱🇺","flags",["luxembourg"]),new bd("🇲🇴","flags",["macau"]),new bd("🇲🇰","flags",["macedonia"]),new bd("🇲🇬","flags",["madagascar"]),new bd("🇲🇼","flags",["malawi"]),new bd("🇲🇾","flags",["malaysia"]),new bd("🇲🇻","flags",["maldives"]),new bd("🇲🇱","flags",["mali"]),new bd("🇲🇹","flags",["malta"]),new bd("🇲🇭","flags",["marshall_islands"]),new bd("🇲🇶","flags",["martinique"]),new bd("🇲🇷","flags",["mauritania"]),new bd("🇲🇺","flags",["mauritius"]),new bd("🇾🇹","flags",["mayotte"]),new bd("🇲🇽","flags",["mexico"]),new bd("🇫🇲","flags",["micronesia"]),new bd("🇲🇩","flags",["moldova"]),new bd("🇲🇨","flags",["monaco"]),new bd("🇲🇳","flags",["mongolia"]),new bd("🇲🇪","flags",["montenegro"]),new bd("🇲🇸","flags",["montserrat"]),new bd("🇲🇦","flags",["morocco"]),new bd("🇲🇿","flags",["mozambique"]),new bd("🇲🇲","flags",["myanmar"]),new bd("🇳🇦","flags",["namibia"]),new bd("🇳🇷","flags",["nauru"]),new bd("🇳🇵","flags",["nepal"]),new bd("🇳🇱","flags",["netherlands"]),new bd("🇳🇨","flags",["new_caledonia"]),new bd("🇳🇿","flags",["new_zealand"]),new bd("🇳🇮","flags",["nicaragua"]),new bd("🇳🇪","flags",["niger"]),new bd("🇳🇬","flags",["nigeria"]),new bd("🇳🇺","flags",["niue"]),new bd("🇳🇫","flags",["norfolk_island"]),new bd("🇲🇵","flags",["northern_mariana_islands"]),new bd("🇰🇵","flags",["north_korea"]),new bd("🇳🇴","flags",["norway"]),new bd("🇴🇲","flags",["oman"]),new bd("🇵🇰","flags",["pakistan"]),new bd("🇵🇼","flags",["palau"]),new bd("🇵🇸","flags",["palestinian_territories"]),new bd("🇵🇦","flags",["panama"]),new bd("🇵🇬","flags",["papua_new_guinea"]),new bd("🇵🇾","flags",["paraguay"]),new bd("🇵🇪","flags",["peru"]),new bd("🇵🇭","flags",["philippines"]),new bd("🇵🇳","flags",["pitcairn_islands"]),new bd("🇵🇱","flags",["poland"]),new bd("🇵🇹","flags",["portugal"]),new bd("🇵🇷","flags",["puerto_rico"]),new bd("🇶🇦","flags",["qatar"]),new bd("🇷🇪","flags",["reunion"]),new bd("🇷🇴","flags",["romania"]),new bd("🇷🇺","flags",["ru"]),new bd("🇷🇼","flags",["rwanda"]),new bd("🇧🇱","flags",["st_barthelemy"]),new bd("🇸🇭","flags",["st_helena"]),new bd("🇰🇳","flags",["st_kitts_nevis"]),new bd("🇱🇨","flags",["st_lucia"]),new bd("🇵🇲","flags",["st_pierre_miquelon"]),new bd("🇻🇨","flags",["st_vincent_grenadines"]),new bd("🇼🇸","flags",["samoa"]),new bd("🇸🇲","flags",["san_marino"]),new bd("🇸🇹","flags",["sao_tome_principe"]),new bd("🇸🇦","flags",["saudi_arabia"]),new bd("🇸🇳","flags",["senegal"]),new bd("🇷🇸","flags",["serbia"]),new bd("🇸🇨","flags",["seychelles"]),new bd("🇸🇱","flags",["sierra_leone"]),new bd("🇸🇬","flags",["singapore"]),new bd("🇸🇽","flags",["sint_maarten"]),new bd("🇸🇰","flags",["slovakia"]),new bd("🇸🇮","flags",["slovenia"]),new bd("🇸🇧","flags",["solomon_islands"]),new bd("🇸🇴","flags",["somalia"]),new bd("🇿🇦","flags",["south_africa"]),new bd("🇬🇸","flags",["south_georgia_south_sandwich_islands"]),new bd("🇰🇷","flags",["kr"]),new bd("🇸🇸","flags",["south_sudan"]),new bd("🇪🇸","flags",["es"]),new bd("🇱🇰","flags",["sri_lanka"]),new bd("🇸🇩","flags",["sudan"]),new bd("🇸🇷","flags",["suriname"]),new bd("🇸🇿","flags",["swaziland"]),new bd("🇸🇪","flags",["sweden"]),new bd("🇨🇭","flags",["switzerland"]),new bd("🇸🇾","flags",["syria"]),new bd("🇹🇼","flags",["taiwan"]),new bd("🇹🇯","flags",["tajikistan"]),new bd("🇹🇿","flags",["tanzania"]),new bd("🇹🇭","flags",["thailand"]),new bd("🇹🇱","flags",["timor_leste"]),new bd("🇹🇬","flags",["togo"]),new bd("🇹🇰","flags",["tokelau"]),new bd("🇹🇴","flags",["tonga"]),new bd("🇹🇹","flags",["trinidad_tobago"]),new bd("🇹🇳","flags",["tunisia"]),new bd("🇹🇷","flags",["tr"]),new bd("🇹🇲","flags",["turkmenistan"]),new bd("🇹🇨","flags",["turks_caicos_islands"]),new bd("🇹🇻","flags",["tuvalu"]),new bd("🇺🇬","flags",["uganda"]),new bd("🇺🇦","flags",["ukraine"]),new bd("🇦🇪","flags",["united_arab_emirates"]),new bd("🇬🇧","flags",["gb","uk"]),new bd("🇺🇸","flags",["us"]),new bd("🇻🇮","flags",["us_virgin_islands"]),new bd("🇺🇾","flags",["uruguay"]),new bd("🇺🇿","flags",["uzbekistan"]),new bd("🇻🇺","flags",["vanuatu"]),new bd("🇻🇦","flags",["vatican_city"]),new bd("🇻🇪","flags",["venezuela"]),new bd("🇻🇳","flags",["vietnam"]),new bd("🇼🇫","flags",["wallis_futuna"]),new bd("🇪🇭","flags",["western_sahara"]),new bd("🇾🇪","flags",["yemen"]),new bd("🇿🇲","flags",["zambia"]),new bd("🇿🇼","flags",["zimbabwe"])],wd='\n <svg width="1em" height="1em"\n xmlns="http://www.w3.org/2000/svg" viewBox="0 0 303.6 303.6">\n <path d="M291.503 11.6c-10.4-10.4-37.2-11.6-48.4-11.6-50.4 0-122.4 18.4-173.6 69.6-77.2 76.8-78.4 201.6-58.4 222 10.8 10.4 35.6 12 49.2 12 49.6 0 121.2-18.4 173.2-70 76.4-76.4 80.4-199.6 58-222zm-231.2 277.2c-24.4 0-36-4.8-38.8-7.6-5.2-5.2-8.4-24.4-6.8-49.6l57.2 56.8c-4 .4-8 .4-11.6.4zm162.8-66c-38.8 38.8-90.4 57.2-132.4 63.6l-74-73.6c6-42 24-94 63.2-133.2 38-38 88-56.4 130.8-62.8l75.6 75.6c-6 40.8-24.4 91.6-63.2 130.4zm65.2-148.8l-58.8-59.2c4.8-.4 9.2-.4 13.6-.4 24.4 0 35.6 4.8 38 7.2 5.6 5.6 9.2 25.6 7.2 52.4z"/>\n <path d="M215.103 139.6l-20.8-20.8 13.2-13.2c2.8-2.8 2.8-7.6 0-10.4s-7.6-2.8-10.4 0l-13.2 13.6-20.8-20.8c-2.8-2.8-7.6-2.8-10.4 0-2.8 2.8-2.8 7.6 0 10.4l20.8 20.8-22 22-20.8-20.8c-2.8-2.8-7.6-2.8-10.4 0s-2.8 7.6 0 10.4l20.8 20.8-22 22-20.8-20.8c-2.8-2.8-7.6-2.8-10.4 0s-2.8 7.6 0 10.4l20.8 20.8-13.2 13.2c-2.8 2.8-2.8 7.6 0 10.4 1.6 1.6 3.2 2 5.2 2s3.6-.8 5.2-2l13.2-13.2 20.8 20.8c1.6 1.6 3.2 2 5.2 2s3.6-.8 5.2-2c2.8-2.8 2.8-7.6 0-10.4l-20.8-21.2 22-22 20.8 20.8c1.6 1.6 3.2 2 5.2 2s3.6-.8 5.2-2c2.8-2.8 2.8-7.6 0-10.4l-20.8-20.8 22-22 20.8 20.8c1.6 1.6 3.2 2 5.2 2s3.6-.8 5.2-2c2.8-2.8 2.8-7.6 0-10.4zM169.103 47.6c-1.2-4-5.2-6-9.2-4.8-3.2 1.2-80.8 25.6-110.4 98-1.6 4 0 8.4 4 9.6.8.4 2 .4 2.8.4 2.8 0 5.6-1.6 6.8-4.4 27.2-66 100.4-89.6 101.2-89.6 4-1.2 6-5.2 4.8-9.2z"/>\n </svg>\n ',_d='\n <svg width="1em" height="1em"\n xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512">\n <path d="M472.928 34.72c-4.384-2.944-9.984-3.52-14.912-1.568-1.088.448-106.528 42.176-195.168.384C186.752-2.4 102.944 14.4 64 25.76V16c0-8.832-7.168-16-16-16S32 7.168 32 16v480c0 8.832 7.168 16 16 16s16-7.168 16-16V315.296c28.352-9.248 112.384-31.232 185.184 3.168 34.592 16.352 70.784 21.792 103.648 21.792 63.2 0 114.016-20.128 117.184-21.408 6.016-2.464 9.984-8.32 9.984-14.848V48c0-5.312-2.656-10.272-7.072-13.28zM448 292.672c-28.512 9.248-112.512 31.136-185.184-3.168C186.752 253.6 102.944 270.4 64 281.76V59.328c28.352-9.248 112.384-31.232 185.184 3.168 76 35.872 159.872 19.104 198.816 7.712v222.464z"/>\n </svg>\n ',Ed='\n <svg width="1em" height="1em"\n xmlns="http://www.w3.org/2000/svg" viewBox="0 0 511.999 511.999">\n <path d="M413.949 155.583a10.153 10.153 0 0 0-3.24-2.16c-.61-.25-1.24-.44-1.87-.57-3.25-.66-6.701.41-9.03 2.73a10.093 10.093 0 0 0-2.93 7.07 10.098 10.098 0 0 0 1.69 5.56c.36.54.779 1.05 1.24 1.52 1.86 1.86 4.44 2.93 7.07 2.93.65 0 1.31-.07 1.96-.2.63-.13 1.26-.32 1.87-.57a10.146 10.146 0 0 0 3.24-2.16c.47-.47.88-.98 1.25-1.52a10.098 10.098 0 0 0 1.49-3.6 10.038 10.038 0 0 0-2.74-9.03zM115.289 385.873c-.12-.64-.32-1.27-.57-1.87-.25-.6-.55-1.18-.91-1.73-.37-.54-.79-1.06-1.25-1.52a9.57 9.57 0 0 0-1.52-1.24c-.54-.36-1.12-.67-1.72-.92-.61-.25-1.24-.44-1.88-.57a9.847 9.847 0 0 0-3.9 0c-.64.13-1.27.32-1.87.57-.61.25-1.19.56-1.73.92-.55.36-1.06.78-1.52 1.24-.46.46-.88.98-1.24 1.52-.36.55-.67 1.13-.92 1.73-.25.6-.45 1.23-.57 1.87-.13.651-.2 1.3-.2 1.96 0 .65.07 1.3.2 1.95.12.64.32 1.27.57 1.87.25.6.56 1.18.92 1.73.36.54.78 1.06 1.24 1.52.46.46.97.88 1.52 1.24.54.36 1.12.67 1.73.92.6.25 1.23.44 1.87.57s1.3.2 1.95.2c.65 0 1.31-.07 1.95-.2.64-.13 1.27-.32 1.88-.57.6-.25 1.18-.56 1.72-.92.55-.36 1.059-.78 1.52-1.24.46-.46.88-.98 1.25-1.52.36-.55.66-1.13.91-1.73.25-.6.45-1.23.57-1.87.13-.65.2-1.3.2-1.95 0-.66-.07-1.31-.2-1.96z"/>\n <path d="M511.999 222.726c0-14.215-9.228-26.315-22.007-30.624-1.628-74.155-62.456-133.978-136.994-133.978H159.002c-74.538 0-135.366 59.823-136.994 133.978C9.228 196.411 0 208.51 0 222.726a32.076 32.076 0 0 0 3.847 15.203 44.931 44.931 0 0 0-.795 8.427v.708c0 14.06 6.519 26.625 16.693 34.833-10.178 8.275-16.693 20.891-16.693 35.001 0 15.114 7.475 28.515 18.921 36.702v26.668c0 40.588 33.021 73.608 73.608 73.608h320.836c40.588 0 73.608-33.021 73.608-73.608V353.6c11.446-8.186 18.921-21.587 18.921-36.702 0-13.852-6.354-26.385-16.361-34.702 9.983-8.212 16.361-20.656 16.361-34.562v-.708c0-2.985-.294-5.944-.877-8.845a32.082 32.082 0 0 0 3.93-15.355zM44.033 173.229h322.441c5.523 0 10-4.477 10-10s-4.477-10-10-10H49.737c16.896-43.883 59.503-75.106 109.265-75.106h193.996c62.942 0 114.438 49.953 116.934 112.295H42.068c.234-5.848.9-11.588 1.965-17.189zM23.052 316.896c0-13.837 11.257-25.094 25.094-25.094h117.298l55.346 50.188H48.146c-13.837 0-25.094-11.256-25.094-25.094zm.976-62.945c.422.111.847.215 1.275.309 7.421 1.634 14.68 8.002 22.365 14.744a576.29 576.29 0 0 0 3.206 2.799h-3.081c-11.253-.001-20.774-7.551-23.765-17.852zm308.727 89.752l57.233-51.899 49.904.57-81.871 74.24-25.266-22.911zm7.861 34.126H295.12l17.467-15.839h10.563l17.466 15.839zm19.599-86.027l-82.499 74.811-82.499-74.811h164.998zm-59.529-20c.849-.842 1.677-1.675 2.49-2.493 9.531-9.587 17.059-17.16 32.89-17.16 15.832 0 23.359 7.573 32.89 17.162.812.817 1.64 1.65 2.489 2.491h-70.759zm-160.13 0a485.82 485.82 0 0 0 2.489-2.492c9.531-9.588 17.059-17.161 32.89-17.161 15.83 0 23.358 7.573 32.888 17.16.813.818 1.641 1.651 2.49 2.493h-70.757zm275.862 162.073H95.582c-29.56 0-53.608-24.049-53.608-53.608v-18.275h200.872l17.467 15.839H145.897c-5.523 0-10 4.477-10 10s4.477 10 10 10H467.07c-7.288 20.958-27.242 36.044-50.652 36.044zm53.608-56.046h-94.6l17.467-15.839h77.133v15.839zm-6.174-35.837h-48.906l54.624-49.533c11.135 2.604 19.376 12.665 19.376 24.439 0 13.836-11.257 25.094-25.094 25.094zm-2.728-70.19l.262-.227.101-.087.342-.298c.848-.738 1.682-1.469 2.501-2.187 4.105-3.601 8.089-7.095 12.04-9.819 3.446-2.375 6.868-4.164 10.326-4.925l.359-.081.04-.01.317-.076.065-.016a22.897 22.897 0 0 0 .42-.107l.196-.052a.374.374 0 0 0 .048-.012c-2.433 9.276-10.129 16.443-19.691 18.102a9.984 9.984 0 0 0-2.016-.205h-5.31zm21.271-37.073a40.746 40.746 0 0 0-4.536 1.281c-10.109 3.489-18.327 10.602-26.283 17.58l-.434.381c-9.178 8.052-17.923 15.723-29.033 17.834h-13.146c-11.249-1.93-17.833-8.552-25.823-16.591-10.213-10.275-22.923-23.062-47.074-23.062-24.15 0-36.86 12.786-47.074 23.06-7.992 8.04-14.576 14.663-25.829 16.593h-14.327c-11.253-1.93-17.837-8.553-25.829-16.593-10.213-10.274-22.923-23.06-47.072-23.06-24.151 0-36.861 12.787-47.074 23.062-7.991 8.039-14.574 14.661-25.824 16.591h-7.065c-14.134 0-24.325-8.939-35.113-18.404-9.248-8.112-18.81-16.501-31.252-19.241a12.237 12.237 0 0 1-7.025-4.453 10.027 10.027 0 0 0-1.153-1.252 12.234 12.234 0 0 1-1.428-5.727c-.001-6.788 5.52-12.309 12.307-12.309h447.384c6.787 0 12.308 5.521 12.308 12.308 0 5.729-4.039 10.776-9.605 12.002z"/>\n </svg>\n ',Pd='\n <svg\n xmlns="http://www.w3.org/2000/svg" viewBox="0 0 219.15 219.15" width="1em" height="1em">\n <path d="M109.575 0C49.156 0 .001 49.155.001 109.574c0 60.42 49.154 109.576 109.573 109.576 60.42 0 109.574-49.156 109.574-109.576C219.149 49.155 169.995 0 109.575 0zm0 204.15c-52.148 0-94.573-42.427-94.573-94.576C15.001 57.426 57.427 15 109.575 15c52.148 0 94.574 42.426 94.574 94.574 0 52.15-42.426 94.576-94.574 94.576z"/>\n <path d="M166.112 108.111h-52.051V51.249a7.5 7.5 0 0 0-15 0v64.362a7.5 7.5 0 0 0 7.5 7.5h59.551a7.5 7.5 0 0 0 0-15z"/>\n </svg>\n ',Nd='\n <svg\n xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" width="1em" height="1em">\n <path d="M490.815 3.784C480.082 5.7 227.049 51.632 148.477 130.203c-39.153 39.153-64.259 87.884-70.694 137.218-5.881 45.081 4.347 85.929 28.878 116.708L.001 490.789 21.212 512l106.657-106.657c33.094 26.378 75.092 34.302 116.711 28.874 49.334-6.435 98.065-31.541 137.218-70.695C460.368 284.951 506.3 31.918 508.216 21.185L511.999 0l-21.184 3.784zm-43.303 39.493L309.407 181.383l-7.544-98.076c46.386-15.873 97.819-29.415 145.649-40.03zm-174.919 50.64l8.877 115.402-78.119 78.119-11.816-153.606c19.947-13.468 47.183-26.875 81.058-39.915zm-109.281 64.119l12.103 157.338-47.36 47.36c-39.246-52.892-24.821-139.885 35.257-204.698zm57.113 247.849c-26.548-.001-51.267-7.176-71.161-21.938l47.363-47.363 157.32 12.102c-40.432 37.475-89.488 57.201-133.522 57.199zm157.743-85.421l-153.605-11.816 78.118-78.118 115.403 8.877c-13.04 33.876-26.448 61.111-39.916 81.057zm50.526-110.326l-98.076-7.544L468.725 64.485c-10.589 47.717-24.147 99.232-40.031 145.653z"/>\n </svg>\n ',Id='\n <svg\n xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 792 792">\n <path d="M425.512 741.214H365.58c-14.183 0-25.164 11.439-25.164 25.622S351.397 792 365.58 792h59.932c15.101 0 26.54-10.981 26.54-25.164s-11.44-25.622-26.54-25.622zM472.638 671.209H319.821c-14.183 0-26.081 10.98-26.081 25.163s11.898 25.164 26.081 25.164h152.817c14.183 0 25.164-10.981 25.164-25.164s-10.982-25.163-25.164-25.163zM639.188 138.634c-25.164-42.548-59.181-76.135-102.49-101.113C493.526 12.621 446.566 0 395.771 0 320.28 0 247.19 31.684 197.205 81.445c-49.761 49.527-81.904 121.24-81.904 196.282 0 33.861 7.779 68.629 22.879 103.866 15.1 35.228 38.565 78.614 70.005 130.396 7.448 12.269 15.764 31.205 25.623 56.271 12.104 30.757 22.87 51.713 31.566 63.602 5.027 6.872 11.899 10.063 20.596 10.063h228.766c9.605 0 16.359-4.188 21.504-11.898 6.754-10.132 13.987-27.516 22.42-51.693 8.951-25.691 16.838-43.982 23.329-55.364 30.571-53.587 54.446-99.747 70.464-137.717 16.018-37.979 24.246-74.124 24.246-107.526 0-49.878-12.347-96.545-37.511-139.093zm-35.696 232.437c-15.012 34.348-36.398 76.974-65.427 126.736-9.41 16.125-18.458 37.003-26.989 63.592-3.367 10.474-7.32 20.596-11.439 30.2H300.153c-6.862-11.439-12.26-25.837-18.761-42.089-12.718-31.801-23.338-52.621-30.2-64.061-28.824-48.043-49.868-87.39-64.051-118.957s-20.537-60.859-21.044-88.766c-2.235-121.718 106.13-228.991 229.674-226.941 41.631.693 80.527 10.063 115.765 30.659 35.227 20.586 63.134 48.043 83.729 82.812 20.586 34.768 31.108 72.748 31.108 113.47-.001 27.449-7.692 58.596-22.881 93.345z"/>\n </svg>\n ',Ad='\n <svg\n xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 106.059 106.059">\n <path d="M90.544 90.542c20.687-20.684 20.685-54.341.002-75.024-20.688-20.689-54.347-20.689-75.031-.006-20.688 20.687-20.686 54.346.002 75.034 20.682 20.684 54.341 20.684 75.027-.004zM21.302 21.3c17.494-17.493 45.959-17.495 63.457.002 17.494 17.494 17.492 45.963-.002 63.455-17.494 17.494-45.96 17.496-63.455.003-17.498-17.498-17.496-45.966 0-63.46zM27 69.865s-2.958-11.438 6.705-8.874c0 0 17.144 9.295 38.651 0 9.662-2.563 6.705 8.874 6.705 8.874C73.539 86.824 53.03 85.444 53.03 85.444S32.521 86.824 27 69.865zm6.24-31.194a6.202 6.202 0 1 1 12.399.001 6.202 6.202 0 0 1-12.399-.001zm28.117 0a6.202 6.202 0 1 1 12.403.001 6.202 6.202 0 0 1-12.403-.001z"/>\n </svg>\n ',kd='\n <svg\n xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 611.999 611.998">\n <path d="M596.583 15.454C586.226 5.224 573.354.523 558.423.523c-15.597 0-31.901 4.906-49.452 14.599-17.296 9.551-32.851 20.574-46.458 32.524h-.665c-2.655 2.322-10.953 10.287-25.219 24.553-14.272 14.272-26.217 26.223-35.845 36.51L112.401 26.406c-6.896-1.968-12.928.014-17.593 4.645L46.687 78.839c-4.326 4.297-5.805 9.268-4.977 15.597.829 6.287 3.979 10.627 9.629 13.607L280.32 228.839 161.514 347.978l-95.91 3.32c-4.645.164-8.637 1.643-12.276 5.311L5.872 404.397c-4.312 4.34-6.641 9.289-5.643 16.262 1.657 6.967 5.31 11.611 11.618 13.602l117.142 48.787 48.787 117.148c2.421 5.812 6.634 9.621 13.607 11.279h3.313c4.977 0 9.296-1.658 12.942-5.311l47.456-47.457c3.653-3.645 5.494-7.965 5.643-12.275l3.32-95.91 118.807-118.807 121.128 228.99c2.988 5.643 7.32 8.793 13.607 9.621 6.329.836 11.271-1.316 15.597-5.643l47.456-47.457c4.978-4.977 6.945-10.697 4.978-17.586l-82.296-288.389 59.732-59.739c10.287-10.287 21.699-24.149 33.183-45.134 5.777-10.542 10.032-20.886 12.942-31.194 5.722-20.218 3.258-44.07-12.608-59.73zm-59.4 110.176l-67.039 67.372c-5.628 5.657-6.811 11.122-4.977 17.586l81.637 288.388-22.563 22.238L403.438 292.89c-2.98-5.643-7.299-8.963-12.941-9.621-6.301-1.331-11.611.325-16.263 4.977l-141.37 141.37c-2.987 2.986-4.644 6.973-5.643 11.949l-3.32 95.904-22.896 23.236-41.48-98.566c-1.331-4.645-4.553-8.184-9.629-10.287L51.338 411.03l23.229-22.895 95.578-3.654c5.643-.99 9.622-2.654 12.276-5.309l141.37-141.371c4.651-4.645 6.308-9.954 4.984-16.262-.666-5.643-3.986-9.954-9.629-12.942L90.829 87.47l22.231-22.238 288.389 81.637c6.464 1.833 11.951.666 17.587-4.977l28.545-28.539 26.217-25.884 11.278-11.285 1.331-.666c27.873-23.895 55.088-38.16 72.016-38.16 5.969 0 9.954 1.324 11.611 3.979 18.917 18.585-21.099 72.484-32.851 84.293z"/>\n </svg>\n ',Cd='\n <svg\n xmlns="http://www.w3.org/2000/svg" width="1em" height="1em" viewBox="0 0 511.626 511.626">\n <path d="M475.366 71.949c-24.175-23.606-57.575-35.404-100.215-35.404-11.8 0-23.843 2.046-36.117 6.136-12.279 4.093-23.702 9.615-34.256 16.562-10.568 6.945-19.65 13.467-27.269 19.556a263.828 263.828 0 0 0-21.696 19.414 264.184 264.184 0 0 0-21.698-19.414c-7.616-6.089-16.702-12.607-27.268-19.556-10.564-6.95-21.985-12.468-34.261-16.562-12.275-4.089-24.316-6.136-36.116-6.136-42.637 0-76.039 11.801-100.211 35.404C12.087 95.55 0 128.286 0 170.16c0 12.753 2.24 25.891 6.711 39.398 4.471 13.514 9.566 25.031 15.275 34.546 5.708 9.514 12.181 18.792 19.414 27.834 7.233 9.041 12.519 15.272 15.846 18.698 3.33 3.426 5.948 5.903 7.851 7.427L243.25 469.938c3.427 3.426 7.614 5.144 12.562 5.144s9.138-1.718 12.563-5.144l177.87-171.31c43.588-43.58 65.38-86.406 65.38-128.472.001-41.877-12.085-74.61-36.259-98.207zm-53.961 199.846L255.813 431.391 89.938 271.507C54.344 235.922 36.55 202.133 36.55 170.156c0-15.415 2.046-29.026 6.136-40.824 4.093-11.8 9.327-21.177 15.703-28.124 6.377-6.949 14.132-12.607 23.268-16.988 9.141-4.377 18.086-7.328 26.84-8.85 8.754-1.52 18.079-2.281 27.978-2.281 9.896 0 20.557 2.424 31.977 7.279 11.418 4.853 21.934 10.944 31.545 18.271 9.613 7.332 17.845 14.183 24.7 20.557 6.851 6.38 12.559 12.229 17.128 17.559 3.424 4.189 8.091 6.283 13.989 6.283 5.9 0 10.562-2.094 13.99-6.283 4.568-5.33 10.28-11.182 17.131-17.559 6.852-6.374 15.085-13.222 24.694-20.557 9.613-7.327 20.129-13.418 31.553-18.271 11.416-4.854 22.08-7.279 31.977-7.279s19.219.761 27.977 2.281c8.757 1.521 17.702 4.473 26.84 8.85 9.137 4.38 16.892 10.042 23.267 16.988 6.376 6.947 11.612 16.324 15.705 28.124 4.086 11.798 6.132 25.409 6.132 40.824-.002 31.977-17.89 65.86-53.675 101.639z"/>\n </svg>\n ',Sd=xe({name:"IBizCategories",props:{categories:{type:Array,required:!0,default:()=>[]},current:{type:String,required:!0}},emits:["select"],setup:(e,{emit:t})=>({ns:n("emoji-categories"),onSelect:e=>{t("select",e)}}),render(){return Oe("div",{class:this.ns.b()},[this.categories.map(e=>Oe("div",{class:[this.ns.e("category"),this.ns.is("active",e.name===this.current)],onClick:()=>this.onSelect(e)},[Oe("span",{class:this.ns.em("category","svg"),title:Mt(e.label),innerHTML:e.icon},null)]))])}}),Md=xe({name:"IBizCategoryLabel",props:{name:{type:String,default:""}},emits:["select"],setup:()=>({ns:n("emoji-category-label")}),render(){return Oe("div",{class:this.ns.b()},[this.name])}}),xd=xe({name:"IBizEmojiItem",props:{emoji:{type:Object,required:!0,default:()=>{}},size:{type:Number,required:!0},withBorder:{type:Boolean,required:!0}},emits:["click"],setup:(e,{emit:t})=>({ns:n("emoji-item"),styleSize:qe(()=>({fontSize:"".concat(e.size-5,"px"),lineHeight:"".concat(e.size,"px"),height:"".concat(e.size,"px"),width:"".concat(e.size,"px")})),onClick:()=>{t("click",e.emoji)}}),render(){return Oe("span",{class:[this.ns.b(),this.ns.is("border",this.withBorder)],style:this.styleSize,onClick:this.onClick,innerHTML:this.emoji.data},null)}}),Od=(e,t)=>t.aliases.some(t=>(t=>t.toLowerCase().includes(e))(t)),Dd=xe({name:"IBizEmojiList",props:{data:{type:Object,required:!0},emojisByRow:{type:Number,required:!0},emojiWithBorder:{type:Boolean},emojiSize:{type:Number},filter:{type:String,default:""},continuousList:{type:Boolean},category:{type:String,default:""},categories:{type:Object,required:!0,default:()=>{}},hasSearch:{type:Boolean}},emits:["select","data"],setup(e,{emit:t}){const a=n("emoji-list"),i=je({}),o=je({}),r=qe(()=>{let t=e.data[e.category];const n=e.filter.trim().toLowerCase();return n&&(t=t.filter(e=>Od(n,e))),t}),s=qe(()=>Object.keys(e.data)),l=qe(()=>{const t=100/e.emojisByRow;return{gridTemplateColumns:"repeat(".concat(e.emojisByRow,", ").concat(t,"%)")}}),c=qe(()=>{const t={};Object.assign(t,e.data);const n=e.filter.trim().toLowerCase();return n&&s.value.forEach(a=>{t[a]=e.data[a].filter(e=>Od(n,e))}),t}),u=e=>{t("select",e)};$e(()=>e.data,()=>{i.value.$el.scrollTop=0}),$e(()=>e.category,t=>{if(e.continuousList){const n=o.value[t].$el;i.value.scrollTop=n.offsetTop-(e.hasSearch?88:8)}});return{ns:a,emojisRef:i,gridDynamic:l,dataFiltered:r,dataFilteredByCategory:c,onSelect:u,setCategoryRef:(e,t)=>{t&&(o.value[e]=t)},renderGridEmojis:e=>{const{emojis:t,style:n,size:i,withBorder:o}=e;return t&&t.length>0?Oe("div",{class:[a.m("grid-emojis")],style:n},[t.map(e=>Oe(xd,{emoji:e,size:i,withBorder:o,onClick:()=>u(e)},null))]):""}}},render(){return Oe("div",{class:[this.ns.b()]},[Oe("div",{ref:"emojisRef",class:[this.ns.e("container")]},[this.continuousList?Object.keys(this.dataFilteredByCategory).map(e=>{const t=this.dataFilteredByCategory[e],n=this.categories[e],a=n?n.text:e;return Oe("div",null,[t.length?Oe(Md,{name:a,ref:t=>this.setCategoryRef(e,t)},null):"",this.renderGridEmojis({emojis:t,style:this.gridDynamic,size:this.emojiSize,withBorder:this.emojiWithBorder})])}):this.renderGridEmojis({emojis:this.dataFiltered||[],style:this.gridDynamic,size:this.emojiSize,withBorder:this.emojiWithBorder})])])}}),Td=xe({name:"IBizEmojiSelect",props:{customEmojis:{type:Array,required:!0,default:()=>yd},customCategories:{type:Array,required:!0,default:()=>[]},limitFrequently:{type:Number,default:15},emojisByRow:{type:Number,default:8},continuousList:{type:Boolean,default:!1},emojiSize:{type:Number,default:27},emojiWithBorder:{type:Boolean,default:!0},showSearch:{type:Boolean,default:!0},showCategories:{type:Boolean,default:!0},dark:{type:Boolean,default:!1},initialCategory:{type:String,default:"peoples"},exceptCategories:{type:Array,default:()=>[]},exceptEmojis:{type:Array,default:()=>[]}},emits:["select","changeCategory","customEmojis"],setup(e,{emit:t}){const a=n("emoji-select"),i=je([]),o=je([]),r=je("peoples"),s=je([]),l=je([]),c=je([]),u=je({}),d=je({}),h=je("");h.value=r.value;const p=je(""),f=o.value.map(e=>e.name);f.includes(r.value)||(r.value=f[0]);const v=qe(()=>o.value.filter(e=>!s.value.includes(e))),m=e=>{Object.assign(d.value,{frequently:[]}),e.filter(e=>!l.value.includes(e)).forEach(e=>{const t=e.category;d.value[t]||Object.assign(d.value,{[t]:[]}),d.value[t].push(e)})},g=async t=>{const n=d.value.frequently,a=[...new Set([t,...n])];d.value.frequently=a.slice(0,e.limitFrequently),(e=>{const t=e.map(e=>i.value.indexOf(e));c.value=t})(a)};return $e(()=>e.customEmojis,t=>{i.value=e.customEmojis,t&&t.length&&(d.value={},m(t))},{immediate:!0,deep:!0}),$e(()=>e.customCategories,e=>{e&&e.length>0?o.value=e:o.value=[new vd("frequently",Pd,ibiz.i18n.t("component.emojiSelect.frequently")),new vd("peoples",Ad,ibiz.i18n.t("component.emojiSelect.peoples")),new vd("nature",Nd,ibiz.i18n.t("component.emojiSelect.nature")),new vd("foods",Ed,ibiz.i18n.t("component.emojiSelect.foods")),new vd("activity",wd,ibiz.i18n.t("component.emojiSelect.activity")),new vd("objects",Id,ibiz.i18n.t("component.emojiSelect.objects")),new vd("places",kd,ibiz.i18n.t("component.emojiSelect.places")),new vd("symbols",Cd,ibiz.i18n.t("component.emojiSelect.symbols")),new vd("flags",_d,ibiz.i18n.t("component.emojiSelect.flags"))],o.value.forEach(e=>{Object.assign(u.value,{[e.name]:e})})},{immediate:!0,deep:!0}),$e(()=>e.initialCategory,()=>{r.value=e.initialCategory}),$e(()=>e.exceptCategories,()=>{s.value=e.exceptCategories}),$e(()=>e.exceptEmojis,()=>{l.value=e.exceptEmojis}),Be(()=>{m(i.value),(async()=>{const e=c.value||[];Object.assign(d.value,{frequently:e.map(e=>i.value[e])})})()}),Ue(()=>{d.value={},c.value=[]}),{ns:a,mapEmojis:d,filterEmoji:p,mapCategories:u,currentCategory:h,categoriesFiltered:v,onSearch:async e=>{p.value=e},onSelectEmoji:async e=>{await g(e),t("select",e)},changeCategory:async e=>{const n=d.value[e.name].length;h.value=e.name,n&&t("changeCategory",e)}}},render(){return Oe("div",{class:[this.ns.b(),this.ns.is("dark",this.dark)]},[Oe(Dd,{data:this.mapEmojis,category:this.currentCategory,filter:this.filterEmoji,categories:this.mapCategories,emojiWithBorder:this.emojiWithBorder,emojiSize:this.emojiSize,emojisByRow:this.emojisByRow,continuousList:this.continuousList,hasSearch:this.showSearch,onSelect:this.onSelectEmoji},null),this.showCategories&&Oe(Sd,{categories:this.categoriesFiltered,current:this.currentCategory,onSelect:this.changeCategory},null)])}}),jd=xe({name:"IBizPreviewImage",props:{url:{type:String,required:!0}},emits:{closed:()=>!0},setup(){const e=n("preview-image"),t=je();let a=xt,i=xt,o=xt,r={x:0,y:0},s=!1,l={left:0,top:0},c=0,u=1,d=1,h="center",p={x:0,y:0};const f=(e,t)=>Math.hypot(t.pageX-e.pageX,t.pageY-e.pageY),v=(e,t)=>{const n=e.style.cssText.split(";");n.pop(),e.style.cssText="".concat(n.concat(t).join(";"),";")};return Ue(()=>{a!==xt&&a(),i!==xt&&i(),o!==xt&&o()}),{ns:e,imageRef:t,onClosed:()=>{var e;r={x:0,y:0},s=!1,l={left:0,top:0},c=0,u=1,d=1,h="center",p={x:0,y:0};const n=null==(e=t.value)?void 0:e.$el;n&&v(n,["transition: all 0s","transform: translate(".concat("".concat(l.left,"px"),", ").concat("".concat(l.top,"px"),") scale(").concat(d,")"),"transform-origin: ".concat(h)])},onOpened:()=>{if(!t.value||a!==xt||i!==xt||o!==xt)return;const e=t.value.$el;a=Ot(e,"touchstart",e=>{e.preventDefault(),s=!0;const t=e.touches;2===t.length?(c=f(t[0],t[1]),u=d):1===t.length&&(r={x:t[0].clientX,y:t[0].clientY})}),i=Ot(e,"touchmove",t=>{if(!s)return;const n=t.touches;if(2===n.length){const t=f(n[0],n[1])/c;d=t*u,l=((e,t)=>{const n=(e.pageX+t.pageX)/2,a=(e.pageY+t.pageY)/2;h="".concat(n,"px ").concat(a,"px");const i=(d-1)*(n-p.x)+l.left,o=(d-1)*(a-p.y)+l.top;return p={x:n,y:a},{left:i,top:o}})(n[0],n[1]),v(e,["transition: all 0s","transform: translate(".concat("".concat(l.left,"px"),", ").concat("".concat(l.top,"px"),") scale(").concat(d,")"),"transform-origin: ".concat(h)])}else 1===n.length&&(l={left:l.left+(n[0].clientX-r.x),top:l.top+(n[0].clientY-r.y)},v(e,["transition: all 0s","transform: translate(".concat("".concat(l.left,"px"),", ").concat("".concat(l.top,"px"),") scale(").concat(d,")"),"transform-origin: ".concat(h)]),r={x:n[0].clientX,y:n[0].clientY})}),o=Ot(e,"touchend",()=>{s=!1})}}},render(){return Oe(De("van-popup"),{show:!!this.url,class:this.ns.b(),onClosed:this.onClosed,onOpened:this.onOpened,"close-on-popstate":!0,onClickOverlay:()=>this.$emit("closed")},{default:()=>[Oe("div",{class:this.ns.e("preview"),onClick:()=>this.$emit("closed")},[Oe(De("van-image"),{ref:"imageRef",src:this.url,onClick:e=>e.stopPropagation()},null)])]})}});function Ld(e){if(!/^\d{4}\/\d{1,2}\/\d{1,2}$/.test(e))return!1;const[t,n,a]=e.split("/").map(Number);if(n<1||n>12)return!1;let i;return i=2===n?t%4==0&&t%100!=0||t%400==0?29:28:[4,6,9,11].includes(n)?30:31,a>=1&&a<=i}function Vd(e,t=10){const n=new Date(e).getFullYear(),a=(new Date).getFullYear();return!(n<a-t||n>a+t)}const Bd=xe({name:"RangePicker",props:{value:{type:Array,default:null},format:{type:String,default:"YYYY-MM-DD"},range:{type:Number,default:10}},emits:["change"],setup(e,{emit:t}){const a=n("range-picker"),i=je([]),o=ibiz.i18n.t("component.dateRangePicker.year"),r=ibiz.i18n.t("component.dateRangePicker.month"),s=ibiz.i18n.t("component.dateRangePicker.day"),l=je({editorRef:null,date:"",showErrorInfo:!1,isFocus:!1,errorMsg:"",isRangeError:!1}),c=je({editorRef:null,date:"",showErrorInfo:!1,isFocus:!1,errorMsg:"",isRangeError:!1});$e(()=>e.value,()=>{e.value&&Array.isArray(e.value)&&0!==e.value.length&&""!==e.value[0]&&""!==e.value[1]?(i.value=e.value,l.value.date=Li(i.value[0]).format("YYYY/M/D"),c.value.date=Li(i.value[1]).format("YYYY/M/D")):(i.value=[],l.value.date="",c.value.date="")},{immediate:!0,deep:!0});const u=Dt((...n)=>{const[a,u]=n,d=Ld(String(u)),h="START"===a?l.value:c.value;if(u)if(d)if(Vd(String(u),e.range)){h.showErrorInfo=!1;const n=(()=>{if(l.value.date&&c.value.date){const e=Ld(String(l.value.date)),t=Ld(String(c.value.date));if(e&&t&&new Date(l.value.date).getTime()>new Date(c.value.date).getTime())return!1}return!0})();if(n){(function(e,t=10){return e.every(e=>{if(!e)return!1;const n=Ld(e),a=Vd(e,t);return!(!n||!a)})})([l.value.date,c.value.date],e.range)&&(i.value=[l.value.date,c.value.date].map(t=>Li(t).format(e.format)),t("change",i.value))}else l.value.isRangeError=!0,l.value.errorMsg=ibiz.i18n.t("component.dateRangePicker.scopeIsInvalid"),c.value.isRangeError=!0}else h.errorMsg="".concat(ibiz.i18n.t("component.dateRangePicker.overLimit"),": ").concat(Li(String(u)).format("YYYY".concat(o,"MM").concat(r,"DD").concat(s))),h.showErrorInfo=!0;else h.showErrorInfo=!0,h.errorMsg="".concat(ibiz.i18n.t("component.dateRangePicker.formatIsInvalid"),"。\n ").concat(ibiz.i18n.t("component.dateRangePicker.use")," yyyy/m/d \n ").concat(ibiz.i18n.t("component.dateRangePicker.example"),": ").concat(Li(new Date).format("YYYY/MM/DD"));else h.showErrorInfo=!1},500);return{ns:a,startDate:l,endDate:c,onInput:(e,t)=>{"START"===e?l.value.showErrorInfo=!1:c.value.showErrorInfo=!1,l.value.isRangeError=!1,c.value.isRangeError=!1,u(e,t)},onfocus:e=>{"START"===e?l.value.isFocus=!0:c.value.isFocus=!0},onBlur:e=>{"START"===e?l.value.isFocus=!1:c.value.isFocus=!1},onClick:e=>{"START"===e?l.value.editorRef&&l.value.editorRef.focus():c.value.editorRef&&c.value.editorRef.focus()},renderErrorInfo:e=>Oe("div",{class:a.be("calendar-input","error")},["START"===e?l.value.errorMsg:c.value.errorMsg])}},render(){return Oe("div",{class:this.ns.b()},[Oe("div",{class:this.ns.b("calendar-input")},[Oe("div",{class:[this.ns.be("calendar-input","start"),this.ns.is("focus",this.startDate.isFocus),this.ns.is("error",this.startDate.showErrorInfo||this.startDate.isRangeError),this.ns.is("show-input",!!this.startDate.date||this.startDate.isFocus)],onClick:()=>this.onClick("START")},[Oe("div",{class:this.ns.bem("calendar-input","start","label")},[ibiz.i18n.t("component.dateRangePicker.startDate")]),Oe(De("van-field"),{ref:e=>{this.startDate.editorRef=e},class:this.ns.bem("calendar-input","start","input"),modelValue:this.startDate.date,"onUpdate:modelValue":e=>this.startDate.date=e,placeholder:"yyyy/m/d",onInput:()=>this.onInput("START",this.startDate.date),onFocus:()=>this.onfocus("START"),onBlur:()=>this.onBlur("START")},null),(this.startDate.showErrorInfo||this.startDate.isRangeError)&&this.renderErrorInfo("START")]),Oe("div",{class:[this.ns.be("calendar-input","end"),this.ns.is("focus",this.endDate.isFocus),this.ns.is("error",this.endDate.showErrorInfo||this.endDate.isRangeError),this.ns.is("show-input",!!this.endDate.date||this.endDate.isFocus)],onClick:()=>this.onClick("END")},[Oe("div",{class:this.ns.bem("calendar-input","end","label")},[ibiz.i18n.t("component.dateRangePicker.endDate")]),Oe(De("van-field"),{ref:e=>{this.endDate.editorRef=e},class:this.ns.bem("calendar-input","end","input"),modelValue:this.endDate.date,"onUpdate:modelValue":e=>this.endDate.date=e,placeholder:"yyyy/m/d",onInput:()=>this.onInput("END",this.endDate.date),onFocus:()=>this.onfocus("END"),onBlur:()=>this.onBlur("END")},null),this.endDate.showErrorInfo&&this.renderErrorInfo("END")])])])}}),Ud=xe({name:"SinglePicker",props:{value:{type:Array,default:null},format:{type:String,default:"YYYY-MM-DD"},range:{type:Number,default:10}},emits:["change"],setup(e,{emit:t}){const a=n("single-picker"),i=je(""),o=je(),r=je(""),s=je(!1),l=ibiz.i18n.t("component.dateRangePicker.year"),c=ibiz.i18n.t("component.dateRangePicker.month"),u=ibiz.i18n.t("component.dateRangePicker.day"),d=Dt((...n)=>{const[a]=n,o=Ld(String(a));a?o?Vd(String(a),e.range)?(r.value="",t("change",[Li(i.value).format(e.format)])):r.value="".concat(ibiz.i18n.t("component.dateRangePicker.overLimit"),": ").concat(Li(String(a)).format("YYYY".concat(l,"MM").concat(c,"DD").concat(u))):r.value="".concat(ibiz.i18n.t("component.dateRangePicker.formatIsInvalid"),"。\n ").concat(ibiz.i18n.t("component.dateRangePicker.use")," yyyy/m/d \n ").concat(ibiz.i18n.t("component.dateRangePicker.example"),": ").concat(Li(new Date).format("YYYY/MM/DD")):r.value=""},500);return $e(()=>e.value,()=>{e.value&&e.value[0]?i.value=Li(e.value[0]).format("YYYY/M/D"):i.value=""},{immediate:!0,deep:!0}),{ns:a,curDate:i,editorRef:o,isFoucs:s,errorMsg:r,onInput:()=>{r.value="",d(i.value)},onfocus:()=>{s.value=!0},onBlur:()=>{s.value=!1},onClick:()=>{var e;null==(e=o.value)||e.focus(),s.value=!0}}},render(){return Oe("div",{class:this.ns.b()},[Oe("div",{class:[this.ns.e("container"),this.ns.is("show-input",this.isFoucs||!!this.curDate),this.ns.is("error",!!this.errorMsg)],onClick:this.onClick},[Oe("div",{class:this.ns.e("label")},[ibiz.i18n.t("component.dateRangePicker.startDate")]),Oe(De("van-field"),{ref:"editorRef",class:this.ns.e("input"),modelValue:this.curDate,"onUpdate:modelValue":e=>this.curDate=e,placeholder:"yyyy/m/d",onInput:this.onInput,onFocus:this.onfocus,onBlur:this.onBlur},null),Oe("div",{class:this.ns.e("error")},[this.errorMsg])])])}}),zd=xe({name:"IBizDateRangeCalendar",components:{RangePicker:Bd,SinglePicker:Ud},props:{type:{type:String,default:"range"},value:{type:Array,default:null},format:{type:String,default:"YYYY-MM-DD"},range:{type:Number,default:10},enableEdit:{type:Boolean,default:!0}},emits:["cancel","save"],setup(e,{emit:t}){const a=n("calendar-date-range-picker"),i=new Date("".concat((new Date).getFullYear()+e.range)),o=new Date("".concat((new Date).getFullYear()-e.range)),r=je([]),s=je(!1),l=je(),c=je(!1),u=()=>{s.value&&t("save",r.value)};$e(()=>e.value,()=>{e.value&&Array.isArray(e.value)&&0!==e.value.length?(r.value=e.value,s.value=!0):(s.value=!1,r.value=[])},{immediate:!0,deep:!0});const d=qe(()=>"range"===e.type?r.value&&Array.isArray(r.value)&&0!==r.value.length&&""!==r.value[0]&&""!==r.value[1]?r.value.map(e=>new Date(Li(e).format("YYYY/M/D"))):null:r.value&&r.value[0]?new Date(Li(r.value[0]).format("YYYY/M/D")):null),h=()=>r.value[0]?Li(r.value[0]).format(e.format):ibiz.i18n.t("component.dateRangePicker.startDate"),p=()=>r.value[1]?Li(r.value[1]).format(e.format):ibiz.i18n.t("component.dateRangePicker.endDate"),f=()=>{c.value=!c.value,c.value||it(()=>{l.value&&(r.value[0]?l.value.scrollToDate(new Date(Li(r.value[0]).format("YYYY/M/D"))):l.value.scrollToDate(new Date))})},v=e=>{r.value=e};Be(()=>{it(()=>{var e,t;l.value&&(r.value[0]?null==(t=(e=l.value).scrollToDate)||t.call(e,new Date(Li(r.value[0]).format("YYYY/M/D"))):l.value.scrollToDate(new Date))})});const m=()=>{"range"===e.type?r.value=["",""]:r.value=[]};return{ns:a,calendarRef:l,maxDate:i,minDate:o,allowSave:s,isEditable:c,formatter:e=>{const t=e.date.getFullYear(),n=e.date.getMonth()+1,i=e.date.getDate(),o=new Date,r=o.getFullYear(),s=o.getMonth()+1,l=o.getDate();return t===r&&n===s&&i===l&&(e.text=Oe("div",{class:a.be("calendar","today")},[Oe("span",{class:a.bem("calendar","today","date")},[l]),Oe("div",{class:a.bem("calendar","today","bottom-info")},[ibiz.i18n.t("component.dateRangePicker.today")])])),e},onCancel:()=>{t("cancel")},calcDefaultSelect:d,onSave:u,onSelect:t=>{"range"===e.type?(s.value=!1,r.value=[]):(s.value=!0,r.value=[Li(t).format(e.format)])},onConfirm:t=>{s.value=!0,Array.isArray(t)&&(r.value=t.map(t=>Li(t).format(e.format))),e.enableEdit||u()},formatStartDate:h,formatEndDate:p,switchEdit:f,onClear:m,renderCalendarInput:()=>"range"===e.type?Oe(Bd,{value:r.value,range:e.range,format:e.format,onChange:v},null):Oe(Ud,{value:r.value,range:e.range,format:e.format,onChange:v},null),renderSelectRange:()=>"range"===e.type?Oe("div",{class:a.e("select")},[Oe("span",{class:a.em("select","placeholder")},[ibiz.i18n.t("component.dateRangePicker.headerPlaceholder")]),Oe("div",{class:a.em("select","range")},[Oe("div",{class:a.em("select","range-date")},[Oe("span",null,[h()]),Oe("span",null,[Qe("~")]),Oe("span",null,[p()])]),Oe("div",{class:a.em("select","icons")},[Oe("span",{onClick:m},[Oe(De("van-icon"),{name:"close"},null)]),Oe("span",{onClick:f},[c.value?Oe(De("van-icon"),{name:"calendar-o"},null):Oe(De("van-icon"),{name:"edit"},null)])])])]):Oe("div",{class:a.e("single-text")},[Oe("span",{class:a.em("single-text","placeholder")},[ibiz.i18n.t("component.dateRangePicker.selectDate")]),Oe("div",{class:a.em("single-text","date")},[Oe("div",{class:a.em("single-text","date-text")},[Oe("span",null,[r.value[0]?Li(r.value[0]).format(e.format):ibiz.i18n.t("component.dateRangePicker.noSelect")])]),Oe("div",{class:a.em("single-text","icons")},[Oe("span",{onClick:m},[Oe(De("van-icon"),{name:"close"},null)]),Oe("span",{onClick:f},[c.value?Oe(De("van-icon"),{name:"calendar-o"},null):Oe(De("van-icon"),{name:"edit"},null)])])])])}},render(){return Oe("div",{class:this.ns.b()},[this.enableEdit&&Oe("div",{class:this.ns.e("header")},[Oe("div",{class:this.ns.e("actions")},[Oe("div",{class:this.ns.em("actions","close")},[Oe(De("van-icon"),{name:"cross",onClick:this.onCancel},null)]),Oe("div",{class:[this.ns.em("actions","save"),this.ns.is("select",this.allowSave)]},[Oe("span",{onClick:this.onSave},[ibiz.i18n.t("component.dateRangePicker.confirm")])])]),this.renderSelectRange()]),this.isEditable?this.renderCalendarInput():Oe("div",{class:this.ns.e("calendar-container")},[Oe(De("van-calendar"),Te({ref:"calendarRef",class:this.ns.b("calendar"),poppable:!1,formatter:this.formatter,type:this.type,"show-title":!this.enableEdit,"show-confirm":!this.enableEdit,"show-subtitle":!1,"first-day-of-week":1,"default-date":this.calcDefaultSelect,"min-date":this.minDate,"max-date":this.maxDate,onSelect:this.onSelect,onConfirm:this.onConfirm},m(this.$attrs)),{title:()=>Oe("div",{class:this.ns.e("custom-header")},[Oe("div",{class:this.ns.em("custom-header","title")},[ibiz.i18n.t("component.dateRangePicker.selectDate")]),Oe("div",{class:this.ns.em("custom-header","close"),onClick:this.onCancel},[Oe(De("van-icon"),{name:"cross",onClick:this.onCancel},null)])])})])])}}),Rd=xe({name:"IBizCropping",props:{img:{type:Object},url:{type:String},cropareaWidth:{type:Number,default:300},cropareaHeight:{type:Number,default:200},show:{type:Boolean,default:!1}},emits:["change"],setup(e,{emit:t}){const a=n("cropping"),i=je(!1),o=je(!1),r=je(1),s=je(!1),l=je(),c=je({x:0,y:0,tx:0,ty:0});let u=0;const d=je(),h=xi(),p=qe(()=>{var t;return(null==(t=e.img)?void 0:t.raw)?URL.createObjectURL(e.img.raw):e.url?e.url:""}),f=()=>{c.value={x:0,y:0,tx:0,ty:0},r.value=1,i.value=!1,u=0},v=()=>{r.value>1&&(r.value=(10*r.value-1)/10)},m=()=>{r.value<3&&(r.value=(10*r.value+1)/10)},g=(e,t)=>Math.hypot(t.pageX-e.pageX,t.pageY-e.pageY),b=qe(()=>({maxWidth:"".concat(e.cropareaWidth,"px"),maxHeight:"".concat(e.cropareaHeight,"px"),objectFit:"contain",transform:"translate(calc(".concat(c.value.tx,"px - 50%),calc(").concat(c.value.ty,"px - 50%)) scale(").concat(r.value,")")}));$e(()=>e.show,()=>{e.show&&f()},{immediate:!0});return{ns:a,style:b,uuid:h,imgRef:l,isLoading:o,cropImgUrl:p,scaleNumber:r,imgMovePosition:c,cropContainerRef:d,onAdd:m,onReduce:v,onCancel:()=>{f(),t("change","")},onConfirm:async()=>{if(i.value)return;i.value=!0,o.value=!0;let n="";const a=document.getElementById(h);if(a&&l.value){const{left:t,top:i}=a.getBoundingClientRect(),{left:o,top:r}=l.value.getBoundingClientRect(),s=o-t,c=r-i;n=(await ibiz.util.html2canvas.getCanvas(l.value,{x:-s,y:-c,width:e.cropareaWidth,height:e.cropareaHeight})).toDataURL("image/png")}t("change",n),o.value=!1},onTouchEnd:e=>{s.value=!1},onTouchMove:e=>{if(!s.value||!l.value)return;const t=e.touches;if(2===t.length){const e=g(t[0],t[1]);return void(e>u+10?(u=e,m()):e<u-10&&(u=e,v()))}const n=e.touches[0],a=n.pageX,i=n.pageY,o=a-c.value.x+c.value.tx,r=i-c.value.y+c.value.ty;c.value.tx=o,c.value.ty=r,c.value.x=a,c.value.y=i},onTouchStart:e=>{e.preventDefault();const t=e.touches;if(2===t.length)u=g(t[0],t[1]);else if(1===t.length){const t=e.touches[0],n=t.pageX,a=t.pageY;c.value.x=n,c.value.y=a,s.value=!0}}}},render(){return Ye(Oe("div",{class:this.ns.b()},[Oe("div",{class:this.ns.e("content")},[Oe("div",{class:this.ns.em("content","crop"),ref:"cropContainerRef"},[Oe("div",{id:this.uuid,class:this.ns.em("content","croparea"),style:{height:"".concat(this.cropareaHeight,"px"),width:"".concat(this.cropareaWidth,"px")},onTouchstart:this.onTouchStart,onTouchmove:this.onTouchMove,onTouchend:this.onTouchEnd},null),Oe("img",{style:this.style,ref:"imgRef",class:this.ns.em("content","img"),src:this.cropImgUrl,alt:""},null)])]),Oe("div",{class:this.ns.e("footer")},[Oe("div",{class:this.ns.em("footer","cancel"),onClick:this.onCancel},[ibiz.i18n.t("editor.common.cancel")]),Oe("div",{class:this.ns.em("footer","confirm"),onClick:this.onConfirm},[ibiz.i18n.t("editor.common.confirm")])])]),[[ot("loading"),this.isLoading]])}});function Fd(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!Ve(e)}const $d=xe({name:"IBizActionGroup",props:{actionDetail:{type:Object,required:!0},actionsState:{type:Object,required:!0},popoverClassName:{type:String},direction:{type:String,default:"horizontal"}},emits:{actionClick:(e,t)=>!0,popoverVisibleChange:e=>!0},setup(e,{emit:t}){const a=n("action-group"),i=je(!1),o=je(),r=je(!1),s=qe(()=>"DEUIACTIONGROUP"===e.actionDetail.detailType&&e.actionDetail.refUIActionGroup&&e.actionDetail.refUIActionGroup.uiactionGroupDetails||[]),l=qe(()=>{const t=s.value.some(t=>{var n,a;return null==(a=null==(n=e.actionsState)?void 0:n[t.id])?void 0:a.visible});return t}),c=qe(()=>{var t,n;return(null==(t=e.actionDetail.refUIActionGroup)?void 0:t.name)||(null==(n=e.actionDetail.refUIActionGroup)?void 0:n.id)}),u=je("horizontal"===e.direction?"right":"bottom"),d=async(e,n,a=!1)=>{a&&(i.value=!1),t("actionClick",e,n)},h=e=>{if(e)return Oe("div",{class:a.e("separator")},null)};return{ns:a,visible:l,caption:c,buttonRef:o,placement:u,showPopover:i,childPopover:r,renderActions:()=>{var t;return null==(t=s.value)?void 0:t.map(t=>{var n,i,o;if("DEUIACTIONGROUP"===t.detailType)return[h(t.addSeparator),Oe(De("iBizActionGroup"),{actionDetail:t,onActionClick:d,actionsState:e.actionsState,popoverClassName:e.popoverClassName,onPopoverVisibleChange:e=>r.value=e},null)];const s={};return t.showIcon&&t.sysImage&&Object.assign(s,{icon:()=>Oe(De("iBizIcon"),{icon:t.sysImage},null)}),(null==(i=null==(n=e.actionsState)?void 0:n[t.id])?void 0:i.visible)?[h(t.addSeparator),Oe(De("van-button"),{size:"small",type:Jr(t),text:t.showCaption?t.caption:"",onClick:e=>d(t,e,!0),disabled:e.actionsState[t.id].disabled,class:[a.e("item"),null==(o=t.sysCss)?void 0:o.codeName]},Fd(s)?s:{default:()=>[s]})]:null})},onPopoverVisibleChange:e=>{t("popoverVisibleChange",e)},onChangePopover:t=>{t.stopPropagation(),u.value=Kr(a,o.value.$el,s.value.length,e.direction),i.value=!i.value}}},render(){if(this.visible)return Oe(De("van-popover"),{placement:this.placement,show:this.showPopover,"onUpdate:show":e=>this.showPopover=e,"close-on-click-outside":!this.childPopover,class:[this.ns.b(),this.popoverClassName],onOpen:()=>this.onPopoverVisibleChange(!0),onClose:()=>this.onPopoverVisibleChange(!1)},{reference:()=>{const e={default:()=>[Oe("div",{class:this.ns.em("button","text")},[this.actionDetail.showCaption?this.caption:""]),Oe("ion-icon",{class:this.ns.em("button","icon"),name:"horizontal"===this.direction?"chevron-forward-outline":"chevron-down-outline"},null)]};return this.actionDetail.showIcon&&this.actionDetail.sysImage&&Object.assign(e,{icon:()=>Oe(De("iBizIcon"),{icon:this.actionDetail.sysImage},null)}),Oe(De("van-button"),{size:"small",ref:"buttonRef",class:this.ns.e("button"),type:Jr(this.actionDetail),onClick:this.onChangePopover},Fd(e)?e:{default:()=>[e]})},default:()=>this.renderActions()})}}),qd=xe({name:"ViewMessage",props:{messages:{type:Array},scroll:{type:Boolean,default:!1},context:{type:Object,required:!1},params:{type:Object,required:!1},controller:{type:Object}},setup(e){const t=n("view-message"),a=je([]),i=je(0),o=je(""),r=je(!1);$e(()=>e.messages,()=>{i.value=0,o.value=xi(),Array.isArray(e.messages)?(a.value=e.messages.filter(e=>e.title||e.message||e.layoutPanel&&e.data).map(e=>({...e})),r.value=!1):(a.value=[],r.value=!0)},{immediate:!0});const s=je(null),l=je("");return{ns:t,getTypeIcon:e=>{switch(e){case"WARN":return"warning-o";case"ERROR":return"close";default:return"info-o"}},items:a,container:s,carouselHeight:l,initialIndex:i,uuid:o,isHiddenContainer:r,handleAlertClose:t=>{var n;a.value[t].hidden=!0;a.value.every(e=>e.hidden)&&(r.value=!0),o.value=xi();const i=a.value[t];null==(n=e.controller)||n.setMsgRemoveModeStorage(i)},handleChange:e=>{i.value=e}}},render(){const e=e=>Oe(De("iBizControlShell"),{data:e.data,modelData:e.layoutPanel,context:this.context,params:this.params},null);if(this.items.length)return(()=>Oe("div",{class:[this.ns.b(),this.isHiddenContainer&&this.ns.m("hidden")]},[this.items.map((t,n)=>{var a,i;return Oe(De("van-notice-bar"),{class:[this.ns.b("item"),null==(a=t.sysCss)?void 0:a.cssName],type:null==(i=t.messageType)?void 0:i.toLowerCase(),wrapable:!this.scroll,scrollable:this.scroll,mode:0!==t.removeMode?"closeable":"","left-icon":this.getTypeIcon(t.messageType),onClose:()=>{this.handleAlertClose(n)},onChange:this.handleChange},{default:()=>[t.layoutPanel&&t.data?e(t):Oe("div",{class:this.ns.be("alert","message"),innerHTML:t.message||""},null)]})})]))()}});function Wd(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!Ve(e)}const Hd=e("n",xe({name:"IBizMdSortSetting",props:{listItems:{type:Array,default:()=>[]},customClass:{type:String,default:""},sort:{type:Object},modal:{type:Object}},setup(e){const t=n("md-sort-setting"),a=[{text:ibiz.i18n.t("component.mdSortSetting.asc"),order:"asc"},{text:ibiz.i18n.t("component.mdSortSetting.desc"),order:"desc"}],i=je("asc"),o=je("");(()=>{if(e.sort){const{key:t,order:n}=e.sort;return o.value=t,void(i.value=n)}o.value="",i.value="asc"})();Ue(()=>{o.value="",i.value="asc"});const r=e=>{const n=o.value===e.value;return Oe("div",{class:[t.e("list-item"),t.is("check",n)],onClick:()=>(e=>{const t=o.value===e.value;let n=e.value||"";t&&(n=""),o.value=n})(e)},[Oe("span",{class:t.em("list-item","text")},[e.label]),n&&Oe("span",{class:t.em("list-item","icon")},[Oe("svg",{viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",height:"1em",width:"1em"},[Oe("g",{"stroke-width":"1","fill-rule":"evenodd"},[Oe("path",{d:"M6.012 11.201L1.313 6.832l-.817.879 5.54 5.15 9.304-9.163-.842-.855z"},null)])])])])};return{ns:t,currentPage:i,sortData:a,onClose:()=>{var t;null==(t=e.modal)||t.dismiss()},onTabChange:e=>{i.value=e},renderList:e=>Oe(De("van-list"),null,{default:()=>e.map(e=>Oe(De("van-cell"),null,{default:()=>r(e)}))}),onConfirm:()=>{var t;null==(t=e.modal)||t.dismiss({ok:!0,data:[{key:o.value||"",order:i.value}]})}}},render(){let e;return Oe("div",{class:this.ns.e("content")},[Oe("div",{class:this.ns.em("content","header")},[Oe("div",{class:this.ns.em("content","title")},[ibiz.i18n.t("component.mdSortSetting.sort")]),Oe(De("van-icon"),{name:"cross",class:this.ns.em("content","icon"),onClick:this.onClose,title:ibiz.i18n.t("app.close")},null)]),Oe(De("van-tabs"),{class:this.ns.em("content","tabs"),active:this.currentPage,onChange:this.onTabChange},{default:()=>this.sortData.map(e=>Oe(De("van-tab"),{class:this.ns.em("content","tab-item"),name:e.order},{default:()=>this.renderList(this.listItems),title:()=>Oe("div",null,[e.text])}))}),Oe("div",{class:this.ns.em("content","bottom")},[Oe(De("van-button"),{type:"primary",block:!0,onClick:this.onConfirm},Wd(e=ibiz.i18n.t("component.mdSortSetting.confirm"))?e:{default:()=>[e]})])])}})),Gd=xe({name:"IBizSplit",props:{modelValue:{type:[Number,String],default:.5},mode:{validator:e=>["horizontal","vertical"].includes(e),default:"horizontal"},min:{type:[Number,String],default:"30px"},max:{type:[Number,String],default:"30px"}},emits:["update:modelValue","on-move-start","on-moving","on-move-end"],setup(e,{emit:t}){const a=n("split"),i=je(null),o=je(0),r=je(0),s=je(!1),l=je(0),c=je(0),u=je(.5),d=je(0),h=qe(()=>[a.b("wrapper"),a.is("no-select",s.value)]),p=qe(()=>[a.b("pane"),s.value?a.bm("pane","moving"):""]),f=qe(()=>"horizontal"===e.mode),v=qe(()=>100-o.value),m=qe(()=>"string"==typeof e.modelValue),g=qe(()=>f.value?"offsetWidth":"offsetHeight"),b=(e,t)=>parseFloat(e)/parseFloat(t),y=t=>{const n=i.value[g.value];return m.value?"string"==typeof e[t]?e[t]:n*e[t]:"string"==typeof e[t]?b(e[t],n):e[t]},w=(e,t)=>m.value?"".concat(Math.max(parseFloat(e),parseFloat(t)),"px"):Math.max(e,t),_=e=>{let t=0;return t=m.value?"".concat(i.value[g.value]-parseFloat(e),"px"):1-e,t},E=e=>{if(!s.value)return!1;const n=(f.value?e.pageX:e.pageY)-d.value,a=i.value[g.value];let o=m.value?"".concat(parseFloat(r.value)+n,"px"):b(a*r.value+n,a);const u=_(o);parseFloat(o)<=parseFloat(l.value)&&(o=w(o,l.value)),parseFloat(u)<=parseFloat(c.value)&&(o=_(w(u,c.value))),t("update:modelValue",o),t("on-moving",e)},P=()=>{s.value=!1,t("on-move-end")},N=()=>{it(()=>{l.value=y("min"),c.value=y("max"),o.value=1e4*(m.value?b(e.modelValue,i.value[g.value]):e.modelValue)/100})};return $e(()=>e.modelValue,e=>{e!==u.value&&(u.value=e,N())}),Be(()=>{it(()=>{N()}),document.addEventListener("pointermove",E),document.addEventListener("pointerup",P),document.addEventListener("pointercancel",P),window.addEventListener("resize",N)}),Fe(()=>{window.removeEventListener("resize",N),document.removeEventListener("pointermove",E),document.removeEventListener("pointerup",P),document.removeEventListener("pointercancel",P)}),{ns:a,outerWrapper:i,offset:o,wrapperClasses:h,paneClasses:p,isHorizontal:f,anotherOffset:v,handleMousedown:n=>{d.value=f.value?n.pageX:n.pageY,r.value=e.modelValue,s.value=!0,t("on-move-start")}}},render(){var e,t,n,a,i,o,r,s,l,c,u,d;return Oe("div",{class:this.wrapperClasses,ref:"outerWrapper"},[this.isHorizontal?Oe("div",{class:this.ns.m("horizontal")},[Oe("div",{style:{width:"".concat(this.offset,"%")},class:[this.paneClasses,this.ns.bm("pane","left")]},[null==(t=(e=this.$slots).left)?void 0:t.call(e)]),Oe("div",{style:{left:"".concat(this.offset,"%")},class:this.ns.b("trigger-con"),tabindex:0,onPointerdown:e=>this.handleMousedown(e)},[(null==(a=(n=this.$slots).trigger)?void 0:a.call(n))||Oe(De("iBizSplitTrigger"),{mode:"vertical"},null)]),Oe("div",{style:{width:"".concat(this.anotherOffset,"%")},class:[this.paneClasses,this.ns.bm("pane","right")]},[null==(o=(i=this.$slots).right)?void 0:o.call(i)])]):Oe("div",{class:this.ns.m("vertical")},[Oe("div",{style:{bottom:"".concat(this.anotherOffset,"%")},class:[this.paneClasses,this.ns.bm("pane","top")]},[null==(s=(r=this.$slots).top)?void 0:s.call(r)]),Oe("div",{style:{top:"".concat(this.offset,"%")},class:this.ns.b("trigger-con"),tabindex:0,onPointerdown:e=>this.handleMousedown(e)},[(null==(c=(l=this.$slots).trigger)?void 0:c.call(l))||Oe(De("iBizSplitTrigger"),{mode:"horizontal"},null)]),Oe("div",{style:{top:"".concat(this.offset,"%")},class:[this.paneClasses,this.ns.bm("pane","bottom")]},[null==(d=(u=this.$slots).bottom)?void 0:d.call(u)])])])}}),Yd=xe({name:"IBizSplitTrigger",props:{mode:String},setup(e){const t=n("split-trigger"),a=qe(()=>"vertical"===e.mode),i=qe(()=>[t.b(),a.value?t.m("vertical"):t.m("horizontal")]),o=qe(()=>[t.b("bar-con"),a.value?t.bm("bar-con","vertical"):t.bm("bar-con","horizontal")]),r=Array(8).fill(0);return{ns:t,classes:i,barConClasses:o,items:r}},render(){return Oe("div",{class:this.classes},[Oe("div",{class:this.barConClasses},[this.items.map((e,t)=>Oe("i",{class:this.ns.b("bar"),key:"trigger-".concat(t)},null))])])}});function Xd(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!Ve(e)}const Jd=e("o",xe({name:"IBizMdAdvanedSearchfrom",props:{modal:{type:Object},modelData:{type:Object,required:!0},provider:{type:Object},context:{type:Object,required:!0},params:{type:Object,default:()=>({})},controller:{type:Object}},setup(e){const t=n("md-advaned-searchform"),a=e.controller;a.evt.on("onCreated",()=>{Object.keys(a.details).forEach(e=>{const t=a.details[e];t.state=Le(t.state)})});return{c:a,ns:t,onCancel:()=>{a.reset(),e.modal.dismiss()},onConfirm:()=>{a.onSearchButtonClick(),e.modal.dismiss()}}},render(){let e,t;return Oe("div",{class:this.ns.b()},[Oe(De("iBizFormControl"),{class:this.ns.e("searchform"),controller:this.c},null),Oe("div",{class:this.ns.e("footer")},[Oe(De("van-button"),{onClick:this.onCancel},Xd(e=ibiz.i18n.t("control.form.searchForm.reset"))?e:{default:()=>[e]}),Oe(De("van-button"),{type:"primary",class:this.ns.e("confirm"),onClick:this.onConfirm},Xd(t=ibiz.i18n.t("control.form.searchForm.search"))?t:{default:()=>[t]})])])}})),Kd=e("p",xe({name:"IBizAddBtn",props:{addCaption:{type:String,default:()=>ibiz.i18n.t("control.common.addbtn")}},emits:{addClick:e=>!0},setup:(e,{emit:t})=>({ns:n("add-btn"),onAddClick:e=>{t("addClick",e)}}),render(){return Oe(De("van-button"),{class:this.ns.b(),icon:"plus",onClick:e=>this.onAddClick(e)},{default:()=>[this.addCaption]})}}));function Qd(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!Ve(e)}const Zd=e("r",xe({name:"IBizAddMore",setup:()=>({ns:n("add-more")}),render(){let e;return Oe("div",{class:this.ns.b()},[Oe(De("van-button"),{class:this.ns.e("button")},Qd(e=ibiz.i18n.t("control.common.loadMore"))?e:{default:()=>[e]})])}})),eh=xe({name:"IBizFloatButton",props:{enabledAlign:{type:Boolean,default:!0},align:{type:String,default:"RIGHTEND"},renderMode:{type:String,default:"BUTTON"}},emits:{click:(e,t)=>!0},setup(e,{emit:t}){const a=n("float-button"),{zIndex:i}=d(),o=i.zIndex+1,r=je();return{ns:a,popoverZIndex:o,buttonRef:r,handleClick:e=>{t("click",e,r.value)}}},render(){var e,t,n,a,i,o,r;const s=this.align.toLocaleLowerCase(),l=null==(t=(e=this.$slots).default)?void 0:t.call(e),c=null==(a=(n=this.$slots).icon)?void 0:a.call(n),u=null==(o=(i=this.$slots).text)?void 0:o.call(i),d=null==(r=this.renderMode)?void 0:r.toLocaleLowerCase();return ze(d,{ref:"buttonRef",class:[this.ns.b(),this.ns.m(d),this.ns.is(s,!!s),s?this.ns.bm("customized",s):""],style:{[this.ns.cssVarBlockName("z-index")]:this.popoverZIndex},onClick:this.handleClick},[l||[Oe("div",{class:this.ns.e("icon")},[c||Oe(De("van-icon"),{name:"setting-o"},null)]),Oe("div",{class:this.ns.e("text")},[u])]])}}),th=xe({name:"IBizInfoItem",props:{label:{type:String},badge:{type:Number},icon:{type:Object},layoutMode:{type:String,default:"horizontal"},badgeFloat:{type:Boolean,default:!0}},setup(e){const t=n("info-item"),a=()=>Kt(e.badge)?null:Oe(De("iBizBadge"),{class:t.e("badge"),value:e.badge},null),i=()=>Kt(e.icon)?null:Oe(De("iBizIcon"),{class:t.e("icon"),icon:e.icon},null);return{ns:t,renderBadge:a,renderIcon:i,renderLabel:()=>Kt(e.label)?null:Oe("span",{class:t.e("label")},[e.label]),renderIconWrapper:()=>Oe("div",{class:t.e("icon-wrapper")},[i(),a()])}},render(){let e=[this.renderIcon(),this.renderLabel(),this.renderBadge()];return"vertical"===this.layoutMode&&(e=[this.renderIconWrapper(),this.renderLabel()]),Oe("div",{class:[this.ns.b(),this.ns.is("badge-float",this.badgeFloat),this.ns.is(this.layoutMode,!!this.layoutMode)]},[e])}}),nh={tabPages:{type:Array,default:()=>[]},activeName:{type:String,default:""},layoutMode:{type:String,default:"top"}},ah={tabChange:e=>!0};function ih(e){return{onTabChange:t=>{e("tabChange",t)}}}const oh=xe({name:"IBizTabFlowLayout",props:nh,emits:ah,setup:(e,{emit:t})=>({ns:n("tab-flow-layout")}),render(){let e;const t=this.tabPages.map(e=>e.text);return Oe(De("van-index-bar"),{class:[this.ns.b(),this.ns.is(this.layoutMode,!!this.layoutMode)],sticky:!1,"index-list":t},function(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!Ve(e)}(e=this.tabPages.map(e=>{var t,n;return Oe("div",{class:this.ns.e("group")},[Oe(De("van-index-anchor"),{index:e.text},{default:()=>["flow_noheader"===this.layoutMode?Oe("div",{class:this.ns.e("group-header-ph")},null):Oe("div",{class:this.ns.e("group-header")},[Oe(De("iBizInfoItem"),{class:this.ns.em("group-header","content"),label:e.text,icon:e.icon,badgeFloat:!1,badge:e.counter},null)])]}),Oe("div",{class:this.ns.e("group-content")},[null==(n=(t=this.$slots).groupContent)?void 0:n.call(t,e)])])}))?e:{default:()=>[e]})}});const rh=xe({name:"IBizTabSidebarLayout",props:nh,emits:ah,setup(e,{emit:t}){const a=n("tab-sidebar-layout"),i=je(0),{onTabChange:o}=ih(t);return{ns:a,activeIndex:i,onTabChange:o,onSidebarChange:t=>{var n;i.value=t;const a=null==(n=e.tabPages[t])?void 0:n.id;o(a)}}},render(){let e;return Oe(De("van-sidebar"),{class:[this.ns.b(),this.ns.is(this.layoutMode,!!this.layoutMode)],modelValue:this.activeIndex,"onUpdate:modelValue":e=>this.activeIndex=e,onChange:this.onSidebarChange},function(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!Ve(e)}(e=this.tabPages.map(e=>{const t=e.text&&e.text.length>3;return Oe(De("van-sidebar-item"),null,{title:()=>Oe("div",{class:[this.ns.e("tab-item"),this.ns.is("long-label",!!t)]},[Oe(De("iBizInfoItem"),{label:e.text,icon:e.icon,badge:e.counter},null)])})}))?e:{default:()=>[e]})}});function sh(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!Ve(e)}const lh=xe({name:"IBizTabDefaultLayout",props:nh,emits:ah,setup(e,{emit:t}){const a=n("tab-default-layout"),{onTabChange:i}=ih(t);return{ns:a,onTabChange:i}},render(){let e,t=Oe(De("van-tabs"),{active:this.activeName,ellipsis:!1,onChange:this.onTabChange},sh(e=this.tabPages.map(e=>{if(!e.isHidden)return Oe(De("van-tab"),{name:e.id},{title:()=>Oe(De("iBizInfoItem"),{class:this.ns.e("tab-item"),label:e.text,icon:e.icon,badge:e.counter},null)})}))?e:{default:()=>[e]});if("bottom"===this.layoutMode){let e;t=Oe(De("van-tabbar"),{fixed:!1,modelValue:this.activeName,onChange:this.onTabChange},sh(e=this.tabPages.map(e=>{if(!e.isHidden)return Oe(De("van-tabbar-item"),{name:e.id},{default:()=>Oe(De("iBizInfoItem"),{class:this.ns.e("tab-item"),label:e.text,icon:e.icon,badge:e.counter,layoutMode:"vertical"},null)})}))?e:{default:()=>[e]})}return Oe("div",{class:[this.ns.b(),this.ns.is(this.layoutMode,!!this.layoutMode)]},[t])}}),ch=xe({name:"IBizTabDropdownListContent",props:{modal:{type:Object},...nh},setup:e=>({ns:n("tab-dropdown-list-content"),handleClick:e=>{e.stopPropagation(),e.preventDefault()},handleClose:()=>{var t;null==(t=e.modal)||t.dismiss()},handleItemClick:t=>{var n;null==(n=e.modal)||n.dismiss({ok:!0,data:[{activeName:t}]})}}),render(){return Oe("div",{class:[this.ns.b()],onClick:this.handleClick},[Oe("div",{class:this.ns.e("modal"),onClick:this.handleClose},null),Oe("div",{class:this.ns.e("wrapper")},[this.tabPages.map(e=>{if(!e.isHidden)return Oe("div",{class:[this.ns.e("item"),this.ns.is("active",e.id===this.activeName)],onClick:()=>this.handleItemClick(e.id)},[Oe(De("iBizInfoItem"),{label:e.text,icon:e.icon},null)])})])])}}),uh=xe({name:"IBizTabDropdown",props:nh,emits:ah,setup(e,{emit:t}){const a=n("tab-dropdown"),i=je(),o=qe(()=>e.tabPages.find(t=>t.id===e.activeName)),{onTabChange:r}=ih(t);let s;return{ns:a,tabDropdownRef:i,activeTab:o,onFloatBtnClick:async(t,n)=>{var o,l;if(s)return s.dismiss(),void(s=void 0);s=ibiz.overlay.createPopover(t=>ze(ch,{modal:t,tabPages:e.tabPages,activeName:e.activeName,layoutMode:e.layoutMode}),{},{width:"auto",height:"auto",noArrow:!0,autoClose:!0,placement:"bottom-end",modalClass:"".concat(a.e("list-modal")),appendTo:null==(o=i.value)?void 0:o.$el}),s.present(n);const c=await s.onWillDismiss(),u=null==(l=null==c?void 0:c.data[0])?void 0:l.activeName;u&&r(u),s=void 0}}},render(){return Oe(De("iBizFloatButton"),{ref:"tabDropdownRef",class:this.ns.b(),align:"RIGHTSTART",onClick:this.onFloatBtnClick},{default:()=>{var e,t;return[Oe(De("iBizInfoItem"),{label:null==(e=this.activeTab)?void 0:e.text,icon:null==(t=this.activeTab)?void 0:t.icon},null)]}})}});const dh=xe({name:"IBizTabLayout",props:nh,emits:ah,setup(e,{emit:t}){const a=n("tab-layout"),{onTabChange:i}=ih(t);return{ns:a,onTabChange:i}},render(){const e={tabPages:this.tabPages,activeName:this.activeName,layoutMode:this.layoutMode,onTabChange:this.onTabChange};let t=Oe(lh,e,null);if("flow"===this.layoutMode||"flow_noheader"===this.layoutMode){const n={};this.$slots.groupContent&&Object.assign(n,{groupContent:this.$slots.groupContent}),t=Oe(oh,e,function(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!Ve(e)}(n)?n:{default:()=>[n]})}return["left","right"].includes(this.layoutMode)&&(t=Oe(rh,e,null)),["top_dropdownlist"].includes(this.layoutMode)&&(t=Oe(uh,e,null)),Oe("div",{class:this.ns.b()},[t])}}),hh=xe({name:"IBizAIButton",setup(){const e=n("ai-button"),{zIndex:t}=d(),a=ibiz.util.getGlobalParam(),i=qe(()=>a.AIAssistantState),o=je({zIndex:t.increment()}),r=je(!0);Ue(()=>{t.decrement()});return{ns:e,state:i,style:o,isAdsorption:r,handleButtonClick:async e=>{var t,n;if(r.value)r.value=!1,setTimeout(()=>{r.value=!0},3e3);else{const a=await ibiz.aiChatUtil.getAIChat();if(a.container)return void(null==(t=a.close)||t.call(a));const{uiActionId:o,appId:r}=i.value;await In.execAndResolved(o,{event:e,data:[],params:{},view:void 0,ctrl:void 0,context:St.create((null==(n=ibiz.appData)?void 0:n.context)||{})},r)}}}},render(){var e;if(null==(e=this.state)?void 0:e.visible)return Oe("div",{class:[this.ns.b(),this.ns.is(this.state.placement,!0),this.ns.is("adsorption",this.isAdsorption)],style:this.style,onClick:this.handleButtonClick},[Oe("div",{class:this.ns.e("content")},[this.state.sysImage?Oe(De("iBizIcon"),{icon:this.state.sysImage,class:this.ns.em("content","icon")},null):Oe("svg",{viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},[Oe("path",{d:"M481.0752 263.3728l50.9952 1.024 1.8432-105.8816-50.9952-0.8192z"},null),Oe("path",{d:"M486.441426 180.895362a66.56 66.56 0 1 0 42.091944-126.290153 66.56 66.56 0 1 0-42.091944 126.290153Z"},null),Oe("path",{d:"M138.8544 664.3712c-52.8384 0-95.8464-43.008-95.8464-95.8464s43.008-95.8464 95.8464-95.8464M880.0256 472.6784c52.8384 0 95.8464 43.008 95.8464 95.8464s-43.008 95.8464-95.8464 95.8464"},null),Oe("path",{d:"M507.4944 220.5696c-220.16 0-398.7456 162.816-398.7456 363.7248s178.5856 363.7248 398.7456 363.7248 398.7456-162.816 398.7456-363.7248-178.5856-363.7248-398.7456-363.7248z m0 559.9232c-166.2976 0-301.2608-100.5568-301.2608-224.4608s134.9632-224.4608 301.2608-224.4608S808.7552 432.128 808.7552 556.032 673.792 780.4928 507.4944 780.4928z"},null),Oe("path",{d:"M319.6928 556.032a47.9232 38.912 90 1 0 77.824 0 47.9232 38.912 90 1 0-77.824 0Z"},null),Oe("path",{d:"M617.472 556.032a47.9232 38.912 90 1 0 77.824 0 47.9232 38.912 90 1 0-77.824 0Z"},null)])])])}}),ph=e("b",{install:e=>{e.component(Kd.name,Kd),e.component(eh.name,eh),e.component(th.name,th),e.component(Zd.name,Zd),e.component(Jd.name,Jd),e.component(Gd.name,Gd),e.component(Yd.name,Yd),e.component($d.name,$d),e.component(zd.name,zd),e.component(b.name,b),e.component(ld.name,ld),e.component(xu.name,xu),e.component(y.name,y),e.component(w.name,w),e.component(Yu.name,Yu),e.component(_.name,_),e.component(Su.name,Su),e.component(od.name,od),e.component(E.name,E),e.component(sd.name,sd),e.component(Mu.name,Mu),e.component(cd.name,cd),e.component(ud.name,ud),e.component(P.name,P),e.component(po.name,po),e.component(hd.name,hd),e.component(Td.name,Td),e.component(N.name,N),e.component(jd.name,jd),e.component(Rd.name,Rd),e.component(I.name,I),e.component(qd.name,qd),e.component(Hd.name,Hd),e.component(dh.name,dh),e.component(hh.name,hh)}}),fh=xe({name:"IBizMDCtrlControl",props:{modelData:{type:Object,required:!0},context:{type:Object,required:!0},params:{type:Object,default:()=>({})},provider:{type:Object},mdctrlActiveMode:{type:Number,default:1},singleSelect:{type:Boolean,default:!0},selectedData:{type:Object,required:!1},mode:{type:String,default:"LIST"},loadDefault:{type:Boolean,default:!0},isSimple:{type:Boolean,required:!1},data:{type:Array,required:!1}},setup(e,{slots:t}){const a=A((...e)=>new Ln(...e)),i=n("control-".concat(a.model.controlType.toLowerCase())),{enableLoadMore:o,renderItem:r,renderNoData:s,renderAddItem:l,renderScrollList:c,renderGroup:u}=Zr(e,a,i,t),{onPageChange:d}=ho(a),h=je(),p=je();a.evt.on("onCreated",()=>{h.value=a.model.deuiactionGroup,p.value=a.model.deuiactionGroup2});const f=(e,t)=>{const n=Vn(e.uiactionGroupDetails);if(!n||0===n.length)return null;const i=a.state.rows.find(e=>t.srfkey===e.data.srfkey),o=i.uaColStates[e.id];return n.map(e=>{if(!e.uiactionId)return null;const t=null==o?void 0:o[e.id],n=(e=>{const t=Jr(e);return"default"===t?"primary":t})(e);return(null==t?void 0:t.visible)?Oe(De("van-button"),{square:!0,type:n,disabled:t.disabled||t.loading,onClick:t=>a.onActionClick(e,i,t)},{default:()=>[Oe(De("iBizInfoItem"),{icon:e.showIcon&&e.sysImage?e.sysImage:null,label:e.showCaption?e.caption:null},null)]}):null})},v=e=>!(!h.value&&!p.value)?Oe(De("van-swipe-cell"),{key:e.srfkey,class:i.b("slider-item")},{left:p.value?()=>f(p.value,e):null,right:h.value?()=>f(h.value,e):null,default:()=>r(e)}):r(e),m=e=>e.map(e=>v(e.data)),g=()=>Oe("div",{class:i.b("skeleton-item")},[Oe(De("van-skeleton"),{animated:!0,row:1},{template:()=>Oe(De("van-skeleton-paragraph"),null,null)})]);return{c:a,ns:i,enableLoadMore:o,renderMDContent:()=>{const e=a.enableGroup?u({children:m}):(()=>{const e=[];return e.push(...a.state.items.map(e=>v(e))),a.enableNew&&e.push(l()),e})();return c(e)},renderNoData:s,onPageChange:d,renderSkeleton:()=>{if(a.state.enableGroup&&!a.state.isSimple)return Oe("div",{class:i.b("skeleton")},[Array.from({length:3},()=>Oe("div",{class:i.b("skeleton-group")},[Oe("div",{class:i.be("skeleton-group","header")},[Oe(De("van-skeleton"),{title:!0,animated:!0,rows:1,"title-width":"20%"},null)]),Oe("div",{class:[i.be("skeleton","content"),i.be("skeleton-group","content")]},[Array.from({length:3},()=>g())])]))]);const e=a.state.size||6;return Oe("div",{class:i.b("skeleton")},[Oe("div",{class:i.be("skeleton","content")},[Array.from({length:Math.min(e,20)},()=>g())])])}}},render(){const e=this.c.model.enablePagingBar;return this.c.state.isLoaded?Oe(De("iBizControlBase"),{controller:this.c,class:[this.ns.is("scroll",e),this.ns.is("enable-page",e||3===this.c.model.pagingMode)]},{default:()=>[this.c.state.isCreated&&(this.c.state.rows.length>0?this.renderMDContent():this.renderNoData()),e?Oe(De("van-pagination"),{class:this.ns.e("pagination"),"total-items":this.c.state.total,"model-value":this.c.state.curPage,"items-per-page":this.c.state.size,"page-count":this.c.state.totalPages,"force-ellipses":!0,onChange:this.onPageChange},null):null]}):this.renderSkeleton()}});var vh=Object.defineProperty,mh=(e,t,n)=>(((e,t,n)=>{t in e?vh(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,t+"",n),n);class gh{constructor(){mh(this,"component","IBizMDCtrlControl")}}e("u",gh);const bh=e("t",k(fh,function(e){e.component(fh.name,fh),Bn(Un.MOB_MDCTRL,()=>new gh)})),yh=xe({name:"IBizMenuDesignList",components:{draggable:Vi},props:{curVisibleMenuItems:{type:Array,required:!0},allVisibleMenuItems:{type:Array,required:!0}},emits:{storageItemsChange:e=>!0},setup(e,{emit:t}){const a=n("menu-design-list"),i=je([]),o=je([]);i.value=[...e.curVisibleMenuItems],o.value=e.allVisibleMenuItems.filter(t=>!e.curVisibleMenuItems.find(e=>t.id===e.id));const r=(e,t=!1)=>e.map((e,n)=>({id:e.id,order:n,hidden:t})),s=()=>{t("storageItemsChange",[...r(i.value),...r(o.value,!0)])},l=(e,t)=>Oe(Vi,{itemKey:"id",group:"menu-design",handle:".draggable-icon",list:t,class:a.e("draggable"),onEnd:s},{item:({element:t,index:n})=>{return Oe("div",{class:a.em("draggable","item")},[Oe("ion-icon",{name:"nav"===e?"remove-circle":"add-circle",class:[a.em("draggable","icon"),a.em("draggable","nav"===e?"remove-icon":"add-icon"),a.em("draggable","prefix-icon")],onClick:()=>((e,t)=>{if("nav"===e){const e=i.value[t];i.value.splice(t,1),o.value.push(e)}else{const e=o.value[t];o.value.splice(t,1),i.value.push(e)}s()})(e,n)},null),Oe("div",{class:a.em("draggable","item-content")},[Oe("div",{class:a.em("draggable","item-caption")},[Oe(De("iBizIcon"),{icon:(r=t,r.sysImage||{cssClass:"fa fa-th-large"}),class:a.em("draggable","item-icon")},null),Oe("div",null,[t.caption])]),Oe("ion-icon",{name:"menu-outline",class:["draggable-icon",a.em("draggable","icon"),a.em("draggable","suffix-icon")]},null)])]);var r}});return{ns:a,renderMenuList:e=>{const t="nav"===e?i.value:o.value;return Oe("div",{class:[a.e("group"),a.is("no-data",!t.length)]},[Oe("div",{class:a.em("group","caption")},["nav"===e?ibiz.i18n.t("control.appmenu.bottomNav"):ibiz.i18n.t("control.appmenu.more")]),Oe("div",{class:a.em("group","content")},[l(e,t),t.length?null:Oe(De("iBizNoData"),{class:a.e("no-data")},null)])])}}},render(){return Oe("div",{class:this.ns.b()},[Oe("div",{class:this.ns.e("wrapper")},[[this.renderMenuList("nav"),this.renderMenuList("more")]])])}}),wh=xe({name:"IBizMenuDesignTree",props:{curVisibleMenuItems:{type:Array,required:!0},allVisibleMenuItems:{type:Array,required:!0},appMenuStyle:{type:String}},emits:{storageItemsChange:e=>!0},setup(e,{emit:t}){const a=n("menu-design-tree"),i=je(new Map),o=new Map;Tt({appMenuItems:e.curVisibleMenuItems},e=>{e.id&&i.value.set(e.id,e)},{childrenFields:["appMenuItems"]}),Tt({appMenuItems:e.allVisibleMenuItems},e=>{e.id&&o.set(e.id,e)},{childrenFields:["appMenuItems"]});const r=(e,t)=>{const n=[];return e.forEach((e,a)=>{var i;if(null==(i=e.appMenuItems)?void 0:i.length){const a=r(e.appMenuItems,t);n.push(...a)}n.push({id:e.id,order:a,hidden:!t.has(e.id)})}),n};Ue(()=>{i.value.clear(),o.clear()});const s=(t,n)=>{if(t.sysImage)return t.sysImage;switch(e.appMenuStyle){case"ICONVIEW":return n?void 0:{cssClass:"fa fa-th-large"};case"LISTVIEW":return;default:return{cssClass:"fa fa-th-large"}}},l=(n,o,l)=>{const c="calc(".concat(o," * var(").concat(a.cssVarBlockName("spacing-node-item-margin-left"),"))");let u=i.value.has(n.id||"");return Oe("div",{class:[a.e("item"),a.is("group-item",!!l)],style:{marginLeft:c},onClick:()=>((n,a)=>{n.id&&(a?i.value.delete(n.id):i.value.set(n.id,n),t("storageItemsChange",r(e.allVisibleMenuItems,i.value)))})(n,u)},[Oe(De("iBizIcon"),{class:a.em("item","icon"),icon:s(n,l)},null),Oe("div",{class:a.em("item","caption")},[n.caption]),Oe(De("van-checkbox"),{modelValue:u,"onUpdate:modelValue":e=>u=e,class:a.em("item","checkbox")},null)])},c=(e,t)=>{var n;return e.appMenuItems&&e.appMenuItems.length>0?[l(e,t,!0),...null==(n=e.appMenuItems)?void 0:n.map(e=>c(e,t+1))]:l(e,t)};return{ns:a,renderNode:c}},render(){return Oe("div",{class:this.ns.b()},[Oe("div",{class:this.ns.e("wrapper")},[this.allVisibleMenuItems.length?this.allVisibleMenuItems.map(e=>this.renderNode(e,0)):Oe(De("iBizNoData"),{class:this.ns.e("no-data")},null)])])}}),_h=xe({name:"IBizMenuDesign",props:{controller:{type:Object,required:!0},modal:{type:Object},showMode:{type:String,default:"DEFALUT"}},emits:{close:()=>!0},setup(e,{emit:t}){const a=n("menu-design"),i=e.controller;let o=[];const r=()=>{var n;t("close"),null==(n=e.modal)||n.dismiss()},s=e=>{o=e};return{c:i,ns:a,onSave:async()=>{o.length&&i.saveMobCustomMenusModel(o),r()},onClose:r,renderContent:()=>"LIST"===e.showMode?Oe(yh,{curVisibleMenuItems:i.state.mobMenuItems,allVisibleMenuItems:i.state.mobAuthedMenuItems,onStorageItemsChange:s},null):Oe(wh,{curVisibleMenuItems:i.state.mobMenuItems,allVisibleMenuItems:i.state.mobAuthedMenuItems,appMenuStyle:i.model.appMenuStyle,onStorageItemsChange:s},null)}},render(){return Oe("div",{class:[this.ns.b(),this.ns.is(this.showMode.toLocaleLowerCase(),!0)]},[Oe("div",{class:this.ns.e("header")},[Oe("ion-icon",{name:"close-outline",onClick:this.onClose,class:this.ns.em("header","close-icon")},null),Oe("div",{class:this.ns.em("header","caption")},[ibiz.i18n.t("control.appmenu.customNav")]),Oe("div",{class:this.ns.em("header","save"),onClick:this.onSave},[ibiz.i18n.t("control.appmenu.save")])]),Oe("div",{class:this.ns.e("content")},[this.renderContent()])])}});function Eh(e){const t=!e.model.appMenuStyle?"LIST":"TREE";return{onCustomizedClick:async()=>{await ibiz.overlay.drawer(n=>ze(_h,{modal:n,controller:e,showMode:t}),{},{width:100,height:80,attrs:{position:"bottom",closeable:!1,round:!0}})}}}const Ph=xe({name:"IBizAppMenuControl",props:{modelData:{type:Object,required:!0},context:{type:Object,required:!0},params:{type:Object,default:()=>({})},provider:{type:Object}},setup(){const e=A((...e)=>new zn(...e)),t=n("control-".concat(e.model.controlType.toLowerCase())),a=je(),{onCustomizedClick:i}=Eh(e),o=Ni(),r=()=>{const t=e.getAllItems(),n=ibiz.hub.getApp(e.context.srfappid);return t.find(e=>{var t,a;if("MENUITEM"===e.itemType&&e.appFuncId){const i=n.getAppFunc(e.appFuncId);return(null==(a=null==(t=null==i?void 0:i.appViewId)?void 0:t.split("."))?void 0:a[1])===o.params.view2}return!1})},s=async(t,n,o={})=>{if("customized"===t)return i();a.value=t,await e.onClickMenuItem(t,n,!0,o)};return e.evt.on("onCreated",async()=>{const t=e.getAllItems().find(t=>t.openDefault&&e.isMobMenuItemValid(t));if(!t||o.params.view2||o.fullPath.includes("404")){if(ibiz.config.appMenu.enableEcho){const e=r();a.value=e?e.id:""}}else s(t.id,void 0,{replace:!0})}),$e(()=>o.params.view2,(e,t)=>{if(e!==t&&ibiz.config.appMenu.enableEcho){const e=r();a.value=e?e.id:""}}),{c:e,ns:t,activeName:a,onTabChange:s}},render(){const{model:e,state:t}=this.c;if(t.isCreated)return Oe("div",{class:[this.ns.b(),this.ns.m(this.modelData.id),this.ns.m(e.controlStyle||"default")]},[Oe(De("van-tabbar"),{modelValue:this.activeName,fixed:!1,onChange:this.onTabChange},{default:()=>[t.mobMenuItems.map(e=>{const t=e.counterId?this.c.state.counterData[e.counterId]:null;return Oe(De("van-tabbar-item"),{name:e.id},{icon:()=>Oe("div",{class:this.ns.e("item-icon")},[Oe(De("iBizIcon"),{slot:"icon",icon:e.sysImage||{cssClass:"fa fa-th-large"}},null),!Kt(t)&&Oe(De("iBizBadge"),{class:this.ns.e("counter"),value:t},null)]),default:()=>Oe("span",{class:this.ns.e("item-caption")},[e.caption])})}),e.enableCustomized&&Oe(De("van-tabbar-item"),{name:"customized"},{icon:()=>Oe("div",{class:this.ns.e("item-icon-container")},[Oe("ion-icon",{name:"ellipsis-horizontal"},null)]),default:()=>Oe("span",null,[ibiz.i18n.t("control.appmenu.more")])})]})])}});var Nh=Object.defineProperty,Ih=(e,t,n)=>(((e,t,n)=>{t in e?Nh(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,t+"",n),n);class Ah{constructor(){Ih(this,"component","IBizAppMenuControl")}}e("A",Ah);const kh=e("v",k(Ph,function(e){e.component(Ph.name,Ph),Bn(Un.APP_MENU,()=>new Ah)}));var Ch=Object.defineProperty,Sh=(e,t,n)=>(((e,t,n)=>{t in e?Ch(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,t+"",n),n);class Mh{constructor(){Sh(this,"component","IBizAppMenuIconViewControl")}}function xh(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!Ve(e)}const Oh=xe({name:"IBizAppMenuIconViewControl",props:{modelData:{type:Object,required:!0},context:{type:Object,required:!0},params:{type:Object,default:()=>({})},provider:{type:Object}},setup(){var e;const t=A((...e)=>new zn(...e)),a=n("control-".concat(t.model.controlType.toLowerCase(),"-").concat(null==(e=t.model.controlStyle)?void 0:e.toLowerCase())),{onCustomizedClick:i}=Eh(t),o=e=>{if(!0===e.hidden)return null;const n=e.counterId?t.state.counterData[e.counterId]:null;let i=null;if("MENUITEM"===e.itemType)i=cn(e.appMenuItems)?Oe(De("van-grid-item"),{class:a.e("group-item"),text:e.caption},{default:()=>Oe("div",{class:a.em("group-item","container")},[Oe("div",{class:a.em("group-item","header")},[[e.sysImage?Oe(De("iBizIcon"),{icon:e.sysImage},null):null,Oe("span",{class:a.em("group-item","caption")},[e.caption]),!Kt(n)&&Oe(De("iBizBadge"),{class:a.em("group-item","counter"),value:n},null)]]),Oe(De("van-grid"),{clickable:!0,"column-num":t.columnNum,border:!1,class:a.em("group-item","content")},{default:()=>{var t,n;return[(null==(t=e.appMenuItems)?void 0:t.length)?null==(n=e.appMenuItems)?void 0:n.map(e=>o(e)):Oe("div",{class:[a.b("no-data")]},[ibiz.i18n.t("control.appmenu.noData")])]}})])}):Oe(De("van-grid-item"),{class:a.e("item"),onClick:n=>t.onClickMenuItem(e.id,n,!1)},{default:()=>{const t=[Oe("div",{class:a.em("item","icon")},[Oe(De("iBizIcon"),{icon:e.sysImage||{cssClass:"fa fa-th-large"}},null),!Kt(n)&&Oe(De("iBizBadge"),{class:a.em("item","counter"),value:n},null)]),Oe("span",{class:a.em("item","caption")},[e.caption])];return Oe("div",{class:a.em("item","content")},[t])}});return i};return{c:t,ns:a,renderMenuItem:o,onCustomizedClick:i}},render(){var e;let t;const{model:n,state:a}=this.c;if(a.isCreated)return Oe("div",{class:[this.ns.b(),this.ns.m(null==(e=this.modelData.id)?void 0:e.toLocaleLowerCase())]},[Oe(De("van-grid"),{clickable:!0,"column-num":this.c.columnNum,border:!1},xh(t=a.mobMenuItems.map(e=>this.renderMenuItem(e)))?t:{default:()=>[t]}),n.enableCustomized&&Oe(De("iBizFloatButton"),{class:this.ns.e("icon-container"),align:this.c.customizedAlign,onClick:this.onCustomizedClick},null)])}}),Dh=e("w",k(Oh,function(e){e.component(Oh.name,Oh),Bn("".concat(Un.APP_MENU,"_ICONVIEW"),()=>new Mh)}));var Th=Object.defineProperty,jh=(e,t,n)=>(((e,t,n)=>{t in e?Th(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,t+"",n),n);class Lh{constructor(){jh(this,"component","IBizAppMenuListViewControl")}}function Vh(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!Ve(e)}const Bh=xe({name:"IBizAppMenuListViewControl",props:{modelData:{type:Object,required:!0},context:{type:Object,required:!0},params:{type:Object,default:()=>({})},provider:{type:Object}},setup(){var e;const t=A((...e)=>new zn(...e)),a=n("control-".concat(t.model.controlType.toLowerCase(),"-").concat(null==(e=t.model.controlStyle)?void 0:e.toLowerCase())),{onCustomizedClick:i}=Eh(t),o=e=>{if(!0===e.hidden)return null;const n=e.counterId?t.state.counterData[e.counterId]:null;let i=null;switch(e.itemType){case"MENUITEM":i=cn(e.appMenuItems)?Oe(De("van-cell-group"),{class:a.e("group"),title:e.caption},{default:()=>{var t,n;return(null==(t=e.appMenuItems)?void 0:t.length)?null==(n=e.appMenuItems)?void 0:n.map(e=>o(e)):Oe("div",{class:[a.b("no-data")]},[ibiz.i18n.t("control.appmenu.noData")])},title:()=>Oe("div",{class:a.e("group-title")},[e.sysImage?Oe(De("iBizIcon"),{icon:e.sysImage},null):null,Oe("span",{class:a.em("group-title","caption")},[e.caption]),!Kt(n)&&Oe(De("iBizBadge"),{class:a.em("group-title","counter"),value:n},null)])}):Oe(De("van-cell"),{class:[a.e("item")],"is-link":!0,center:!0,clickable:!0,title:e.caption,onClick:async n=>{await t.onClickMenuItem(e.id,n,!1)}},{icon:()=>e.sysImage&&Oe("div",{class:a.em("item","icon")},[Oe(De("iBizIcon"),{icon:e.sysImage},null)]),value:()=>Oe("div",{class:a.em("item","value")},[!Kt(n)&&Oe(De("iBizBadge"),{class:a.em("item","counter"),value:n},null)])});break;case"SEPERATOR":i=Oe(De("van-divider"),null,null)}return i};return{c:t,ns:a,renderMenuItem:o,onCustomizedClick:i}},render(){var e;let t;const{model:n,state:a}=this.c;if(a.isCreated)return Oe("div",{class:[this.ns.b(),this.ns.m(null==(e=this.modelData.id)?void 0:e.toLocaleLowerCase())]},[Oe(De("van-list"),null,Vh(t=a.mobMenuItems.map(e=>this.renderMenuItem(e)))?t:{default:()=>[t]}),n.enableCustomized&&Oe(De("iBizFloatButton"),{class:this.ns.e("icon-container"),align:this.c.customizedAlign,onClick:this.onCustomizedClick},null)])}}),Uh=e("x",k(Bh,function(e){e.component(Bh.name,Bh),Bn("".concat(Un.APP_MENU,"_LISTVIEW"),()=>new Lh)}));function zh(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!Ve(e)}const Rh=xe({name:"IBizSearchFormControl",props:{modelData:{type:Object,required:!0},provider:{type:Object},context:{type:Object,required:!0},params:{type:Object,default:()=>({})}},setup(){const e=A((...e)=>new Rn(...e)),t=n("control-".concat(e.model.controlType.toLowerCase()));e.evt.on("onCreated",()=>{Object.keys(e.details).forEach(t=>{const n=e.details[t];n.state=Le(n.state)})});const a=()=>{let n;return Oe(De("van-button"),{class:t.e("search"),type:"primary",size:"small",onClick:()=>e.onSearchButtonClick()},zh(n=ibiz.i18n.t("control.form.searchForm.search"))?n:{default:()=>[n]})},i=()=>{let n;return Oe(De("van-button"),{class:t.e("reset"),onClick:()=>e.reset(),size:"small"},zh(n=ibiz.i18n.t("control.form.searchForm.reset"))?n:{default:()=>[n]})};return{c:e,ns:t,renderSearch:a,renderAllBtns:()=>[a(),i()]}},render(){var e;const{state:t}=this.c;if(t.isCreated)return Oe(De("iBizFormControl"),{class:[this.ns.b(),this.ns.e(null==(e=this.c.model.searchButtonPos)?void 0:e.toLowerCase())],controller:this.c,nativeOnkeyup:e=>this.c.onKeyUp(e)},{...this.$slots,searchFooter:()=>"NONE"===this.c.model.searchButtonStyle?null:Oe("div",{class:this.ns.e("buttons")},["SEARCHONLY"===this.c.model.searchButtonStyle?this.renderSearch():this.renderAllBtns()])})}});var Fh=Object.defineProperty,$h=(e,t,n)=>(((e,t,n)=>{t in e?Fh(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,t+"",n),n);class qh{constructor(){$h(this,"component","IBizSearchFormControl")}}e("z",qh);const Wh=e("y",k(Rh,function(e){e.component(Rh.name,Rh),Bn(Un.SEARCHFORM,()=>new qh)}));function Hh(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!Ve(e)}const Gh=xe({name:"IBizFormGroupPanel",props:{modelData:{type:Object,required:!0},controller:{type:Fn,required:!0}},setup(e){const t=n("form-group"),a=je(!e.controller.defaultExpansion),i=qe(()=>{const{captionItemName:t}=e.modelData;return t?e.controller.data[t]:e.modelData.caption});return{ns:t,isCollapse:a,captionText:i,changeCollapse:()=>{e.controller.disableClose||(a.value=!a.value)},onActionClick:async(t,n)=>{await e.controller.onActionClick(t,n)}}},render(){var e,t;let n;const{state:a}=this.controller,{enableAnchor:i}=this.modelData,o=(null==(t=(e=this.$slots).default)?void 0:t.call(e))||[],r=Oe(De("iBizRow"),{slot:"content",layout:this.modelData.layout},Hh(n=o.map(e=>{const t=e.props;return t&&t.controller?Oe(De("iBizCol"),{layoutPos:t.modelData.layoutPos,state:t.controller.state},Hh(e)?e:{default:()=>[e]}):e}))?n:{default:()=>[n]}),{detailStyle:s="DEFAULT"}=this.modelData,l=[this.ns.b(),this.ns.m(this.modelData.codeName),this.ns.m(s.toLowerCase()),...this.controller.containerClass];!0===this.modelData.showCaption&&(l.push(this.ns.m("show-header")),l.push(this.ns.b("collapse")),l.push(this.ns.is("collapse",this.isCollapse)),this.controller.disableClose&&l.push(this.ns.bm("collapse","disable-close")),2===this.modelData.showMoreMode&&l.push(this.ns.m("show-more")));let c=null;this.modelData.showCaption&&(c=Oe("div",{class:[this.ns.b("header")],onClick:this.changeCollapse},[Oe("div",{class:[this.ns.be("header","left")]},[Oe("div",{class:[this.ns.e("caption"),...this.controller.labelClass]},[this.modelData.sysImage&&Oe(De("iBizIcon"),{class:this.ns.em("caption","icon"),icon:this.modelData.sysImage},null),this.captionText])]),this.modelData.uiactionGroup&&Oe("div",{class:[this.ns.be("header","right")]},[Oe(De("iBizActionToolbar"),{class:this.ns.e("toolbar"),"action-details":this.modelData.uiactionGroup.uiactionGroupDetails,"actions-state":a.actionGroupState,onActionClick:this.onActionClick,caption:this.modelData.uiactionGroup.name,mode:"ITEMS"===this.modelData.actionGroupExtractMode?"dropdown":"buttons"},null)])]));let u=null;return 2===this.modelData.showMoreMode&&(u=Oe("div",{class:[this.ns.b("footer")]},[Oe("div",{class:this.ns.be("footer","show-more-button"),onClick:()=>{a.isShowMore=!a.isShowMore}},[a.isShowMore?ibiz.i18n.t("app.retract"):ibiz.i18n.t("control.form.formGroupPanel.showMore")])])),Oe("div",{class:[l,this.ns.is("loading",this.controller.state.loading)],onClick:e=>this.controller.onClick(e)},[i?Oe(De("van-index-anchor"),{index:this.captionText},Hh(c)?c:{default:()=>[c]}):c,Oe("div",{class:[this.ns.e("content")]},[r]),u,this.controller.state.loading?Oe(De("van-loading"),{class:this.ns.e("loading"),type:"spinner",vertical:!0},{default:()=>["".concat(this.controller.state.loadingText||ibiz.i18n.t("util.loading"),"...")]}):null])}});var Yh=Object.defineProperty,Xh=(e,t,n)=>(((e,t,n)=>{t in e?Yh(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,t+"",n),n);class Jh{constructor(){Xh(this,"component","IBizFormGroupPanel")}async createController(e,t,n){const a=new Fn(e,t,n);return await a.init(),a}}e("F",Jh);const Kh=e("B",k(Gh,function(e){e.component(Gh.name,Gh),$n("GROUPPANEL",()=>new Jh)}));const Qh=xe({name:"IBizFormItem",props:{modelData:{type:Object,required:!0},controller:{type:qn,required:!0},attrs:{type:Object,required:!1}},setup:e=>({ns:n("form-item"),c:e.controller,onValueChange:(t,n)=>{e.controller.setDataValue(t,n)}}),render(){var e,t,n,a;if(!this.c.state.visible)return null;let i=null;const o=null==(n=null==(t=null==(e=this.controller.editor)?void 0:e.model)?void 0:t.editorParams)?void 0:n.editMode,r={style:null==(a=this.controller.editor)?void 0:a.style,value:this.controller.value,data:this.controller.data,controller:this.controller.editor,disabled:this.controller.state.disabled,readonly:this.controller.state.readonly,onChange:this.onValueChange,controlParams:o?{...this.controller.form.controlParams,editmode:o}:this.controller.form.controlParams,onFocus:e=>this.c.onFocus(e),onBlur:e=>this.c.onBlur(e),onEnter:e=>this.controller.onEnter(e),onClick:(e,t)=>this.controller.onClick(e,t),onCustomAction:e=>this.c.onCustomAction(e),...this.attrs};if(this.c.form.state.isLoaded)if(this.$slots.default)i=this.$slots.default(r);else if(this.controller.editorProvider){const e=De(this.controller.editorProvider.formEditor);i=ze(e,{...r})}else i=Oe(De("notSupportedEditor"),{modelData:this.modelData.editor},null);return Oe(De("iBizFormItemContainer"),{class:[this.ns.b(),this.ns.m(this.modelData.id),{[this.ns.m("disabled")]:this.c.state.disabled},{[this.ns.m("readonly")]:this.controller.model.editor.readOnly},...this.controller.containerClass],controller:this.c,onClick:e=>this.c.onClick(e)},function(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!Ve(e)}(i)?i:{default:()=>[i]})}}),Zh=e("E",xe({name:"IBizFormItemContainer",props:{controller:{type:Object,required:!0}},setup(e){var t,a;const i=n("form-item-container"),o=n("editor");let r="left",s="right";const l=e.controller,{labelPos:c,labelWidth:u,enableInputTip:d,sysImage:h}=l.model,{mobformitemalignmode:p,mobshowunderline:f,mobshoweditorborder:v,mobhideclear:m}=l.form.controlParams,g=p||ibiz.config.form.mobFormItemAlignMode;let b=ibiz.config.form.mobShowUnderLine,y=ibiz.config.form.mobShowEditorBorder,w=!1;f&&(b=Object.is(f,"true")),v&&(y=Object.is(v,"true")),m&&(w=Object.is(m,"true"));const _=(null==(a=null==(t=l.editor)?void 0:t.model)?void 0:a.editorParams)||{},{MOBSHOWEDITORBORDER:E,MOBSHOWUNDERLINE:P,MOBHIDECLEAR:N}=_;P&&(b=Object.is(P,"true")),E&&(y=Object.is(E,"true")),N&&(w=Object.is(N,"true"));const I=qe(()=>{switch(c){case"LEFT":r="left",s="right";break;case"RIGHT":r="right",s="left";break;case"BOTTOM":case"TOP":r="left",s="left"}g&&(s=g);const e={"font-textAlign":r};return u&&130!==u&&Object.assign(e,{"width-label":"".concat(u/16,"rem")}),{...i.cssVarBlock(e),...o.cssVarBlock({"default-text-align":s,"default-flex-justify-content":"right"===s?"flex-end":"flex-start","default-required-style":w?"none":"initial"})}}),A=e=>{d?l.loadInputTip():e.stopPropagation()};return{ns:i,cssVars:I,showUnderLine:b,showEditorBorder:y,renderLabel:()=>{const{enableAnchor:e}=l.model;return Oe(De("van-popover"),{class:i.e("popover"),placement:"RIGHT"===c?"bottom-end":"bottom-start"},{default:()=>Oe("div",{class:i.em("popover","content")},[Oe("div",{class:i.em("popover","tooltip"),innerHTML:l.state.inputTip},null),l.state.inputTipUrl&&Oe("a",{target:"_blank",href:l.state.inputTipUrl,title:ibiz.i18n.t("component.formItemContainer.more")},[ibiz.i18n.t("component.formItemContainer.more")])]),reference:()=>Oe("div",{class:[i.e("label"),...l.labelClass||[]],onClick:A},[d&&Oe("ion-icon",{name:"bulb-outline",class:i.em("label","icon")},null),h&&Oe(De("iBizIcon"),{class:i.em("label","icon"),icon:h},null),e?Oe(De("van-index-anchor"),{index:l.labelCaption},{default:()=>[l.labelCaption]}):Oe("span",null,[l.labelCaption])])})}}},render(){var e,t;const{labelPos:n}=this.controller.model;return Oe("div",{class:[this.ns.b(),this.ns.m(null==n?void 0:n.toLowerCase()),this.ns.is("required",this.controller.state.required),this.ns.is("error",!!this.controller.state.error),this.ns.is("hidden-label","NONE"===n),this.ns.is("show-underLine",this.showUnderLine),this.ns.is("show-border",this.showEditorBorder)],style:this.cssVars},[Oe("div",{class:[this.ns.b("content")]},[n&&["LEFT","TOP"].includes(n)&&this.renderLabel(),Oe("div",{class:[this.ns.e("editor")]},[null==(t=(e=this.$slots).default)?void 0:t.call(e)]),n&&["RIGHT","BOTTOM"].includes(n)&&this.renderLabel()]),this.controller.state.error?Oe("div",{class:[this.ns.b("error")]},[this.controller.state.error]):null])}}));var ep=Object.defineProperty,tp=(e,t,n)=>(((e,t,n)=>{t in e?ep(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,t+"",n),n);class np{constructor(){tp(this,"component","IBizFormItem")}async createController(e,t,n){const a=new qn(e,t,n);return await a.init(),a}}e("D",np);const ap=e("C",k(Qh,function(e){e.component(Qh.name,Qh),e.component(Zh.name,Zh),$n("FORMITEM",()=>new np)}));const ip=xe({name:"IBizFormPage",props:{modelData:{type:Object,required:!0},controller:{type:Object,required:!0}},setup(e){const t=n("form-page"),a=je(e.modelData.deformPages[0].id),i=Le([a.value]);return{ns:t,currentPage:a,lazyKeys:i,onTabChange:e=>{a.value=e,i.includes(a.value)||i.push(a.value)}}},render(){var e,t,n;let a;const{noTabHeader:i}=this.modelData,o=(null==(n=null==(t=(e=this.$slots).default)?void 0:t.call(e)[0])?void 0:n.children)||[];return 1===o.length||i?Oe("div",{class:[this.ns.b(),this.ns.m("no-tab-header")]},[o]):Oe(De("van-tabs"),{onChange:this.onTabChange,class:[this.ns.b("header")],active:this.currentPage},function(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!Ve(e)}(a=o.map(e=>{const t=e.props;if(!t||!t.controller)return e;const n=t.controller;return n.state.visible||n.state.keepAlive?Oe(De("van-tab"),{class:this.ns.b("tab-item"),name:n.model.id},{default:()=>e,title:()=>Oe("span",{class:n.labelClass},[n.model.sysImage?Oe(De("iBizIcon"),{icon:n.model.sysImage},null):null,n.model.caption])}):null}))?a:{default:()=>[a]})}});function op(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!Ve(e)}const rp=e("H",xe({name:"IBizFormPageItem",props:{modelData:{type:Object,required:!0},controller:{type:Wn,required:!0}},setup:()=>({ns:n("form-page-item")}),render(){var e,t;let n;const a=(null==(t=(e=this.$slots).default)?void 0:t.call(e))||[];return a.forEach(e=>{var t;const n=null==(t=e.component)?void 0:t.data;n&&(n.class={[this.ns.b("child")]:!0})}),Oe(De("iBizRow"),{class:[this.ns.b(),this.ns.m(this.modelData.id),...this.controller.containerClass],layout:this.modelData.layout},op(n=a.map(e=>{const t=e.props;return t&&t.controller?Oe(De("iBizCol"),{layoutPos:t.modelData.layoutPos,state:t.controller.state},op(e)?e:{default:()=>[e]}):e}))?n:{default:()=>[n]})}}));var sp=Object.defineProperty,lp=(e,t,n)=>(((e,t,n)=>{t in e?sp(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,t+"",n),n);class cp{constructor(){lp(this,"component","IBizFormPageItem")}async createController(e,t,n){const a=new Wn(e,t);return await a.init(),a}}e("J",cp);const up=e("G",k(ip,function(e){e.component(ip.name,ip),e.component(rp.name,rp),$n("FORMPAGE",()=>new cp)})),dp=xe({name:"IBizFormButton",props:{modelData:{type:Object,required:!0},controller:{type:Hn,required:!0}},setup:e=>({ns:n("form-button"),captionText:qe(()=>{const{caption:t,captionItemName:n,capLanguageRes:a}=e.modelData;if(n&&e.controller.data[n])return e.controller.data[n];let i=t;return a&&(i=ibiz.i18n.t(a.lanResTag,t)),i})}),render(){return this.controller.state.visible?Oe("div",{class:[this.ns.b(),this.ns.m(this.modelData.codeName),this.ns.is("loading",this.controller.state.loading),this.ns.is("readonly",this.controller.state.readonly),...this.controller.containerClass]},[Oe(De("van-button"),{size:"small",type:Jr(this.modelData),onClick:this.controller.onClick.bind(this.controller),loading:this.controller.state.loading,disabled:this.controller.state.disabled},{default:()=>[Oe("div",{class:this.ns.b("content")},[this.modelData.sysImage?Oe(De("iBizIcon"),{class:this.ns.bm("content","icon"),icon:this.modelData.sysImage},null):null,this.modelData.showCaption?Oe("span",{class:this.ns.bm("content","caption")},[this.captionText]):null])]})]):null}});var hp=Object.defineProperty,pp=(e,t,n)=>(((e,t,n)=>{t in e?hp(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,t+"",n),n);class fp{constructor(){pp(this,"component","IBizFormButton")}async createController(e,t,n){const a=new Hn(e,t,n);return await a.init(),a}}e("L",fp);const vp=e("K",k(dp,function(e){e.component(dp.name,dp),$n("BUTTON",()=>new fp)})),mp=xe({name:"IBizFormDRUIPart",props:{modelData:{type:Object,required:!0},controller:{type:Gn,required:!0}},setup(e){const t=n("form-druipart");C(e.controller);return{ns:t,captionText:qe(()=>{const{caption:t,capLanguageRes:n}=e.modelData;let a=t;return n&&(a=ibiz.i18n.t(n.lanResTag,t)),a}),onCreated:t=>{e.controller.setEmbedView(t.view)}}},render(){if(!this.controller.state.visible||!this.controller.state.viewComponentKey)return null;let e=null;this.modelData.showCaption&&this.captionText&&(e=Oe("div",{class:[this.ns.b("header")]},[Oe("div",{class:[this.ns.e("caption")]},[this.captionText])]));const t=De("IBizViewShell");return Oe("div",{class:[this.ns.b(),this.ns.m(this.modelData.codeName)],onClick:e=>this.controller.onClick(e)},[e,Oe("div",{class:this.ns.b("content")},[ze(t,{context:this.controller.navContext,params:this.controller.navParams,key:this.controller.state.viewComponentKey,viewId:this.controller.model.appViewId,state:{noLoadDefault:!0},onCreated:this.onCreated})])])}});var gp=Object.defineProperty,bp=(e,t,n)=>(((e,t,n)=>{t in e?gp(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,t+"",n),n);class yp{constructor(){bp(this,"component","IBizFormDRUIPart")}async createController(e,t,n){const a=new Gn(e,t,n);return await a.init(),a}}e("O",yp);const wp=e("N",k(mp,function(e){e.component(mp.name,mp),$n("DRUIPART",()=>new yp)})),_p=xe({name:"IBizFormRawItem",props:{modelData:{type:Object,required:!0},controller:{type:Yn,required:!0}},setup:()=>({ns:n("form-raw-item")}),render(){if(!this.controller.state.visible)return null;const{rawItem:e,sysImage:t}=this.modelData,{contentType:n}=e;let a=null,i=n;return"RAW"===n||"HTML"===n?"RAW"===n?(i="TEXT",a=e.caption):a=e.content:["VIDEO","DIVIDER","INFO","WARNING","ERROR"].includes(n)?a=e.rawContent:"IMAGE"===n&&t&&(a=t),Oe(De("iBizRawItem"),{class:[this.ns.b(),...this.controller.containerClass],content:a,type:i,rawItem:this.modelData,onClick:e=>this.controller.onClick(e)},null)}});var Ep=Object.defineProperty,Pp=(e,t,n)=>(((e,t,n)=>{t in e?Ep(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,t+"",n),n);class Np{constructor(){Pp(this,"component","IBizFormRawItem")}async createController(e,t,n){const a=new Yn(e,t,n);return await a.init(),a}}e("Q",Np);const Ip=e("P",k(_p,function(e){e.component(_p.name,_p),$n("RAWITEM",()=>new Np)}));const Ap=xe({name:"IBizFormTabPanel",props:{modelData:{type:Object,required:!0},controller:{type:Xn,required:!0}},setup(e){const t=n("form-tab-panel");C(e.controller);return{ns:t,onTabClick:t=>{const{name:n,event:a}=t;e.controller.onTabChange(n);const i=e.controller.form.details[n];i&&i.onClick(a)}}},render(){var e,t;let n;const a=(null==(t=(e=this.$slots).default)?void 0:t.call(e))||[];return Oe(De("van-tabs"),{class:[this.ns.b(),this.ns.m(this.modelData.codeName),...this.controller.containerClass],"model-value":this.controller.state.activeTab,onClickTab:this.onTabClick},function(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!Ve(e)}(n=a.map(e=>{const t=e.props;if(!t||!t.controller)return e;const n=t.controller;return n.state.visible||n.state.keepAlive?Oe(De("van-tab"),{class:this.ns.b("tab-item"),title:n.model.caption,name:n.model.id,"title-class":n.labelClass,lazy:!0},{default:()=>e,title:()=>Oe("span",{class:this.ns.e("caption")},[n.model.sysImage&&Oe(De("iBizIcon"),{icon:n.model.sysImage},null),n.model.showCaption&&n.model.caption])}):null}))?n:{default:()=>[n]})}});var kp=Object.defineProperty,Cp=(e,t,n)=>(((e,t,n)=>{t in e?kp(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,t+"",n),n);class Sp{constructor(){Cp(this,"component","IBizFormTabPanel")}async createController(e,t,n){const a=new Xn(e,t,n);return await a.init(),a}}e("T",Sp);const Mp=e("R",k(Ap,function(e){e.component(Ap.name,Ap),$n("TABPANEL",()=>new Sp)}));function xp(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!Ve(e)}const Op=xe({name:"IBizFormTabPage",props:{modelData:{type:Object,required:!0},controller:{type:Jn,required:!0}},setup(e){const t=n("form-tab-page");return C(e.controller),{ns:t}},render(){var e,t;let n;const a=(null==(t=(e=this.$slots).default)?void 0:t.call(e))||[];return Oe(De("iBizRow"),{class:[this.ns.b(),this.ns.m(this.modelData.codeName),...this.controller.containerClass],layout:this.modelData.layout,onClick:e=>this.controller.onClick(e)},xp(n=a.map(e=>{const t=e.props;if(!t||!t.controller)return e;const n=t.controller;return Oe(De("iBizCol"),{layoutPos:n.model.layoutPos,state:n.state},xp(e)?e:{default:()=>[e]})}))?n:{default:()=>[n]})}});var Dp=Object.defineProperty,Tp=(e,t,n)=>(((e,t,n)=>{t in e?Dp(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,t+"",n),n);class jp{constructor(){Tp(this,"component","IBizFormTabPage")}async createController(e,t,n){const a=new Jn(e,t,n);return await a.init(),a}}e("V",jp);const Lp=e("U",k(Op,function(e){e.component(Op.name,Op),$n("TABPAGE",()=>new jp)})),Vp=e("a1",xe({name:"IBizFormMDCtrl",props:{modelData:{type:Object,required:!0},controller:{type:Kn,required:!0}},setup(e){const t=n("form-mdctrl");C(e.controller);const a=e.controller,i=a.model.showCaption&&!!a.model.caption,o=qe(()=>a.value&&a.value.length>0||a.state.items&&a.state.items.length>0);return{c:a,ns:t,hasCaption:i,hasValue:o}},render(){const{model:e}=this.c;let t;switch(e.contentType){case"GRID":case"LIST":case"DATAVIEW":t=Oe(De("iBizFormMDCtrlMD"),{controller:this.c},null);break;case"FORM":t=Oe(De("iBizFormMDCtrlForm"),{controller:this.c},null);break;case"REPEATER":t=Oe(De("iBizFormMDCtrlRepeater"),{controller:this.c},null);break;default:Oe("div",null,[e.contentType,ibiz.i18n.t("app.noSupport")])}return Oe("div",{class:[this.ns.b(),this.ns.m(this.modelData.codeName),...this.controller.containerClass,this.hasCaption?this.ns.m("show-caption"):"",this.hasValue?this.ns.m("has-value"):""]},[this.hasCaption&&Oe("div",{class:this.ns.b("header")},[Oe("span",{class:this.ns.e("title")},[this.c.model.caption])]),t])}})),Bp=e("a0",xe({name:"IBizFormMDCtrlForm",props:{controller:{type:Qn,required:!0}},setup:e=>({ns:n("form-mdctrl-form"),onCreated:(t,n)=>{e.controller.setFormController(t,n.ctrl)}}),render(){const{state:e,formProvider:t,model:n}=this.controller;return Oe(De("iBizMDCtrlContainer"),{class:this.ns.b(),items:e.items||[],caption:this.controller.model.caption,enableCreate:this.controller.enableCreate,enableDelete:this.controller.enableDelete,onAddClick:e=>this.controller.create(e),onRemoveClick:e=>this.controller.remove(e.id)},{item:({data:e,index:a})=>{if(!t)return Oe("div",null,[ibiz.i18n.t("control.form.formMDctrlForm.noFindProvider")]);return ze(De(t.component),{class:this.ns.be("item","form"),modelData:n.contentControl,context:e.context,key:e.id,params:e.params,mdCtrlFormIndex:a,onCreated:t=>{this.onCreated(e.id,t)}})}})}}));function Up(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!Ve(e)}const zp=e("$",xe({name:"IBizFormMDCtrlMD",props:{controller:{type:Zn,required:!0}},setup(e){const t=n("form-mdctrl-md"),a=qe(()=>e.controller.enableCreate||e.controller.enableDelete),i=je(!1);return{ns:t,showActions:a,isSelected:i,onCreated:t=>{e.controller.setMDControl(t.ctrl)},onSelectionChange:e=>{i.value=e.data.length>0}}},render(){let e,t;const{mdProvider:n,model:a}=this.controller;let i=null;if(this.controller.form.state.isLoaded){const e={class:this.ns.b("content"),modelData:a.contentControl,context:this.controller.form.context,params:this.controller.form.params,onCreated:this.onCreated,onSelectionChange:this.onSelectionChange};"GRID"===a.contentType&&(e.rowEditOpen=!0),i=ze(De(n.component),e)}return Oe("div",{class:this.ns.b()},[this.showActions&&Oe("div",{class:this.ns.b("actions")},[this.controller.enableCreate&&Oe(De("van-button"),{class:[this.ns.be("actions","create"),this.ns.be("actions","btn")],size:"small",type:"primary",onClick:()=>this.controller.create()},Up(e=ibiz.i18n.t("app.add"))?e:{default:()=>[e]}),this.controller.enableDelete&&Oe(De("van-button"),{type:"danger",size:"small",disabled:!this.isSelected,class:[this.ns.be("actions","remove"),this.ns.be("actions","btn")],onClick:()=>this.controller.remove()},Up(t=ibiz.i18n.t("app.delete"))?t:{default:()=>[t]})]),i])}})),Rp=xe({name:"IBizRepeaterSingleForm",props:{data:{type:Object,required:!0},controller:{type:ea,required:!0},simpleDataIndex:{type:Number}},emits:{change:e=>!0},setup(e,{emit:t}){const a=n("repeater-single-form");return{ns:a,onFormDataChange:e=>{const n=(e=>{const t={};return e.$dataUIMap.forEach(n=>{void 0!==e[n.dataKey]&&(t[n.dataKey]=e[n.dataKey])}),t})(e.data[0]);t("change",n)}}},render(){if(!this.controller.repeatedForm)throw new Nt(ibiz.i18n.t("control.form.repeaterSingleForm.errorMessage"));return Oe(De("iBizControlShell"),{class:this.ns.b(),context:this.controller.context,params:this.controller.params,modelData:this.controller.repeatedForm,simpleDataIndex:this.simpleDataIndex,isSimple:!0,data:this.data,onFormDataChange:this.onFormDataChange},null)}}),Fp=xe({name:"IBizRepeaterMultiForm",props:{controller:{type:ea,required:!0}},emits:{change:e=>!0},setup:(e,{emit:t})=>({ns:n("repeater-multi-form"),onValueChange:(n,a)=>{const i=[...e.controller.value];i[a]=n,t("change",i)},removeClick:async t=>{await ibiz.modal.confirm({title:ibiz.i18n.t("control.form.repeaterMultiForm.confirmTitle"),desc:ibiz.i18n.t("control.form.repeaterMultiForm.confirmDesc")})&&e.controller.remove(t)}}),render(){const e=this.controller.value||[];return Oe(De("iBizMDCtrlContainer"),{class:this.ns.b(),items:e,caption:this.controller.model.caption,enableCreate:this.controller.enableCreate,enableDelete:this.controller.enableDelete,onAddClick:e=>this.controller.create(e),onRemoveClick:(e,t)=>{this.removeClick(t)}},{item:({data:e,index:t})=>Oe(Rp,{key:t,data:e,simpleDataIndex:t,controller:this.controller,onChange:e=>{this.onValueChange(e,t)}},null)})}}),$p=xe({name:"IBizRepeaterGrid",props:{controller:{type:ea,required:!0}},emits:{change:e=>!0},setup(e,{emit:t}){const a=n("repeater-grid"),i=[],o=je([]),r=g(),s=Le([]),l=je(),c=je(),u=je(),d=je(0),h=je("");let p;Tt(e.controller.repeatedForm,e=>{var t;"FORMITEM"===e.detailType&&"HIDDEN"!==(null==(t=e.editor)?void 0:t.editorType)&&i.push(e)},{childrenFields:["deformPages","deformTabPages","deformDetails"]});const f=async(n={})=>{const a=new ta(e.controller.repeatedForm,e.controller.context,e.controller.params,r);a.state.isSimple=!0,await a.created(),a.setSimpleData(n),s.push(a),e.controller.setRepeaterController("".concat(s.length-1),a),a.evt.on("onFormDataChange",n=>{const i=n.data[0];((n,a)=>{const i=[...e.controller.value||[]];i[a]=n,t("change",i)})(i instanceof Nn?i.clone():{...i},s.indexOf(a))})};return $e(()=>e.controller.value,e=>{Array.isArray(e)?(e.forEach((e,t)=>{const n=s[t];if(n){const t=e||{};Object.keys(n.data).find(e=>t[e]!==n.data[e])&&n.setSimpleData(t)}else f(e)}),o.value=e):o.value=[]},{immediate:!0,deep:!0}),Be(()=>{l.value&&c.value&&u.value&&(p=new ResizeObserver(()=>{if(!l.value||!c.value||!u.value)return;const e=l.value.offsetWidth,t=u.value.children[0];if(!t)return;const n=Array.from(t.children);if(0===n.length)return;let a=0;const i=[];n.forEach(e=>{if("true"===e.dataset.flex)i.push(e);else{const t=e.style.width?parseFloat(e.style.width):e.offsetWidth;a+=t}});const o=e-a-1,r=i.length;r>0&&o>0?(d.value=o/r,h.value="".concat(e,"px")):(d.value=0,h.value="".concat(a,"px"))}),p.observe(l.value))}),Ue(()=>{p&&p.disconnect()}),{ns:a,formItems:i,formControllers:s,items:o,container:l,table:c,thead:u,flexWidth:d,gridWidth:h}},render(){const e=!this.items.length,t=[Oe("th",{class:this.ns.b("index-cell"),style:{width:"66px"}},[ibiz.i18n.t("control.form.repeaterGrid.index")]),this.formItems.map(e=>Oe("th",{class:this.ns.bm("cell",e.id),"data-flex":1===e.labelWidth,style:{width:"".concat(1===e.labelWidth?"".concat(this.flexWidth,"px"):"".concat(e.labelWidth,"px"))}},[e.caption])),(this.controller.enableCreate||this.controller.enableDelete)&&Oe("th",{class:this.ns.b("action-cell"),style:{width:"80px"}},null)],n=(e&&this.controller.enableCreate?[{}]:this.items).map((t,n)=>Oe("tr",null,[Oe("td",{class:this.ns.b("index-cell")},[e?"":n+1]),this.formItems.map(t=>{if(e)return Oe("td",{class:this.ns.bm("cell",t.id)},null);const a=rt(this.formControllers[n]);if(!a||!a.state.isLoaded)return Oe("td",null,[ibiz.i18n.t("control.form.repeaterGrid.absentOrLoad")]);const i=a.formItems.find(e=>e.name===t.id);let o=null;if(i.editorProvider){const e=De(i.editorProvider.formEditor);o=ze(e,{value:i.value,data:i.data,controller:i.editor,disabled:i.state.disabled,readonly:i.state.readonly,onChange:(e,t)=>{i.setDataValue(e,t)}})}else o=Oe(De("not-supported-editor"),{modelData:t.editor},null);return Oe("td",{class:this.ns.bm("cell",t.id)},[o])}),(this.controller.enableCreate||this.controller.enableDelete)&&Oe("td",{class:this.ns.b("action-cell")},[Oe("div",{class:this.ns.b("action-group")},[this.controller.enableCreate&&Oe("ion-icon",{name:"add-outline",title:ibiz.i18n.t("app.add"),class:this.ns.b("add-btn"),onClick:()=>{this.controller.create(e?0:n+1)}},null),this.controller.enableDelete&&!e&&Oe("ion-icon",{name:"remove-outline",title:ibiz.i18n.t("app.delete"),class:this.ns.b("remove-btn"),onClick:()=>{this.controller.remove(n),this.formControllers.splice(n,1)}},null)])])]));return Oe("div",{class:this.ns.b(),ref:"container"},[Oe("table",{class:this.ns.b("table"),ref:"table",style:{width:this.gridWidth}},[Oe("thead",{ref:"thead"},[Oe("tr",null,[t])]),Oe("tbody",null,[n]),e&&!this.controller.enableCreate&&Oe("tbody",{class:this.ns.b("empty-content")},[Oe("td",{colspan:this.formItems.length+1},[ibiz.i18n.t("control.form.repeaterGrid.noData")])])])])}}),qp=e("Z",xe({name:"IBizFormMDCtrlRepeater",props:{controller:{type:ea,required:!0}},setup:e=>({ns:n("form-mdctrl-repeater"),onDataChange:t=>{e.controller.setValue(t)}}),render(){const e=[this.ns.b()];switch(this.controller.repeaterStyle){case"MultiForm":return Oe(Fp,{class:e,onChange:this.onDataChange,controller:this.controller},null);case"SingleForm":return Oe(Rp,{class:e,data:this.controller.value,controller:this.controller,onChange:this.onDataChange},null);case"Grid":return Oe($p,{class:e,controller:this.controller,onChange:this.onDataChange},null);default:return Oe("div",{class:e},[ibiz.i18n.t("control.form.formMDctrlRepeater.noSupportStyle",{repeaterStyle:this.controller.repeaterStyle})])}}}));var Wp=Object.defineProperty,Hp=(e,t,n)=>(((e,t,n)=>{t in e?Wp(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,t+"",n),n);class Gp{constructor(){Hp(this,"component","IBizFormMDCtrl")}async createController(e,t,n){let a;switch(e.contentType){case"LIST":case"GRID":case"DATAVIEW":a=new Zn(e,t,n);break;case"FORM":a=new Qn(e,t,n);break;case"REPEATER":a=new ea(e,t,n);break;default:throw new jt(e,"".concat(ibiz.i18n.t("control.form.formMDctrl.errorMessage",{contentType:e.contentType})))}return await a.init(),a}}e("Y",Gp);const Yp=e("X",xe({name:"IBizMDCtrlContainer",props:{enableCreate:{type:Boolean,required:!0},enableDelete:{type:Boolean,required:!0},items:{type:Object,required:!0},caption:{type:String,required:!1}},emits:{addClick:e=>!0,removeClick:(e,t)=>!0},setup(e,{emit:t}){const a=n("mdctrl-container");return{ns:a,renderAddBtn:(n,i=!0)=>e.enableCreate?Oe(De("van-button"),{class:[a.e("create"),a.e("btn")],size:"small",onClick:()=>t("addClick",void 0===n?void 0:n+1)},{default:()=>[i&&Oe(De("van-icon"),{name:"plus"},null),ibiz.i18n.t("app.add")]}):null}},render(){return Oe("div",{class:this.ns.b()},[this.items.map((e,t)=>{const n=this.$slots.item?this.$slots.item({data:e,index:t}):Oe("div",null,[ibiz.i18n.t("control.form.mdCtrlContainer.noSlot")]);return Oe("div",{class:this.ns.b("item"),key:e.id},[Oe("div",{class:this.ns.b("item-header")},[Oe("div",{class:this.ns.be("item-header","caption")},[this.caption||""])]),Oe("div",{class:this.ns.b("item-content")},[Oe(De("van-swipe-cell"),null,{default:()=>n,right:()=>{if(this.enableDelete)return Oe(De("van-button"),{class:this.ns.be("item-content","remove-btn"),type:"danger",text:ibiz.i18n.t("app.delete"),square:!0,onClick:()=>{this.$emit("removeClick",e,t)}},null)}})])])}),this.enableCreate&&Oe("div",{class:this.ns.b("footer")},[this.renderAddBtn()])])}})),Xp=e("W",k(Vp,function(e){e.component(Vp.name,Vp),e.component(Bp.name,Bp),e.component(zp.name,zp),e.component(qp.name,qp),e.component(Yp.name,Yp),$n("MDCTRL",()=>new Gp)}));var Jp=Object.defineProperty,Kp=(e,t,n)=>(((e,t,n)=>{t in e?Jp(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,t+"",n),n);class Qp{constructor(){Kp(this,"component","IBizFormButtonList")}async createController(e,t,n){const a=new na(e,t,n);return await a.init(),a}}const Zp=xe({name:"IBizFormButtonList",props:{modelData:{type:Object,required:!0},controller:{type:na,required:!0}},setup(e){const t=n("form-button-list"),a=e.controller;return{ns:t,handleClick:async(e,t)=>{null==t||t.stopPropagation(),a.handleClick(e,t)}}},render(){const{state:e}=this.controller;return e.visible?Oe(De("iBizButtonList"),{class:[this.ns.b(),...this.controller.containerClass],model:this.modelData,disabled:e.disabled,buttonsState:e.buttonsState,onClick:this.handleClick},null):null}}),ef=e("a2",k(Zp,function(e){e.component(Zp.name,Zp),$n("BUTTONLIST",()=>new Qp)}));var tf=Object.defineProperty,nf=(e,t,n)=>(((e,t,n)=>{t in e?tf(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,t+"",n),n);class af{constructor(){nf(this,"component","IBizEditFormControl")}}const of=xe({name:"IBizEditFormControl",props:{modelData:{type:Object,required:!0},context:{type:Object,required:!0},params:{type:Object,default:()=>({})},provider:{type:Object},isSimple:{type:Boolean,required:!1},data:{type:Object,required:!1},loadDefault:{type:Boolean,default:!0},simpleDataIndex:{type:Number,required:!1},mdCtrlFormIndex:{type:Number,required:!1}},setup(e){const t=A((...e)=>new ta(...e),{excludePropsKeys:["data"]}),a=n("control-edit-form"),i=je(void 0),o=je([]);e.isSimple&&((e.simpleDataIndex||0===e.simpleDataIndex)&&t.setSimpleDataIndex(e.simpleDataIndex),t.evt.on("onMounted",()=>{t.setSimpleData(e.data||{})}),$e(()=>e.data,e=>{const n=e||{};Object.keys(t.data).find(e=>n[e]!==t.data[e])&&t.setSimpleData(n)},{deep:!0})),(e.mdCtrlFormIndex||0===e.mdCtrlFormIndex)&&t.setMdCtrlFormIndex(e.mdCtrlFormIndex),t.evt.on("onCreated",()=>{Object.keys(t.details).forEach(e=>{const n=t.details[e];n.state=Le(n.state)}),o.value=t.anchorData});const r=un(e=>{i.value=e,t.filterDetail(e)},300,{leading:!0});return{c:t,ns:a,filter:i,handleInput:r,anchorList:o}},render(){const{enableItemFilter:e,showFormNavBar:t}=this.c.model,n=Oe("div",{class:[this.ns.b(),this.ns.is("item-filter",e)]},[e&&Oe(De("van-search"),{modelValue:this.filter,class:this.ns.b("quick-search"),placeholder:ibiz.i18n.t("app.search"),"onUpdate:model-value":this.handleInput},null),Oe(De("iBizFormControl"),{controller:this.c},{...this.$slots})]);if(t){const{navBarSysCss:e,navBarPos:t}=this.c.model,a=this.anchorList.filter(e=>e.pageId===this.c.state.activeTab);return Oe(De("van-index-bar"),{"index-list":a.map(e=>e.title),sticky:!1,class:[this.ns.e("anchor"),e,this.ns.em("anchor",null==t?void 0:t.toLowerCase())]},function(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!Ve(e)}(n)?n:{default:()=>[n]})}return n}}),rf=e("a3",k(of,function(e){e.component(of.name,of),Bn(Un.FORM,()=>new af)}));const sf=xe({name:"IBizFormControl",props:{controller:{type:Object,required:!0}},setup(e,{slots:t}){const a=n("control-form"),i=e.controller,o={form:i},r=t=>{var n;const a={};return null==(n=t.controlAttributes)||n.forEach(t=>{t.attrName&&t.attrValue&&(a[t.attrName]=En.execSingleLine(t.attrValue,{...e.controller.getEventArgs(),data:e.controller.data}))}),a},s=e=>{if(e.hidden)return;const n=e.id,a={modelData:e,controller:i.details[n],key:e.id};if(t[n])return Ke(t,n,{...o,...a});const l={};"FORMITEM"===e.detailType&&t["".concat(n,"_editor")]&&(l.default=(...e)=>t["".concat(n,"_editor")](...e));const c=aa(e);c.length&&(l.default=()=>c.map(e=>s(e)));const u=i.providers[n];if(!u)return Oe("div",null,[ibiz.i18n.t("control.form.noSupportDetailType",{detailType:e.detailType})]);const d=De(u.component);return ze(d,{...a,attrs:r(e)},l)},l=e=>{const{modelData:t}=e;return(t instanceof Array?t:[t]).map(e=>s(e))};return l.props=["modelData"],o.FormDetail=l,{ns:a,c:i,FormDetail:l,slotProps:o,renderByDetailType:s}},render(){const{state:e,model:t,controlPanel:n}=this.c,{isCreated:a}=e,i={};if(a)if(this.$slots.default)i.default=()=>this.$slots.default({...this.slotProps});else{const e=n?t.name:"default";i[e]=()=>{const e=[],t=Oe(De("iBizFormPage"),{modelData:this.c.model,controller:this.c},{default:()=>{var e;return[null==(e=this.c.model.deformPages)?void 0:e.map(e=>this.renderByDetailType(e))]}});return e.push(t),this.$slots.searchFooter&&e.push(this.$slots.searchFooter()),e}}return Oe(De("iBizControlBase"),{class:[this.ns.b()],controller:this.c},function(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!Ve(e)}(i)?i:{default:()=>[i]})}}),lf=e("a4",k(sf,function(e){e.component(sf.name,sf),e.use(up),e.use(ap),e.use(Kh),e.use(vp),e.use(wp),e.use(Ip),e.use(Mp),e.use(Lp),e.use(Xp),e.use(ef)})),cf=xe({name:"IBizPickupViewPanelControl",props:{modelData:{type:Object,required:!0},context:{type:Object,required:!0},params:{type:Object,default:()=>({})},singleSelect:{type:Boolean,default:!0},provider:{type:Object},selectedData:{type:Object,required:!1}},setup(){const e=A((...e)=>new ia(...e)),t=n("control-".concat(e.model.controlType.toLowerCase()));return{c:e,ns:t,onCreated:t=>{e.setEmbedView(t.view)}}},render(){return Oe(De("iBizControlBase"),{controller:this.c},{default:()=>[this.c.state.isCreated&&(this.$slots.default?this.$slots.default({context:this.c.state.context,params:this.c.state.params,state:{singleSelect:this.c.state.singleSelect,selectedData:this.selectedData},onCreated:this.onCreated}):ze(De("IBizViewShell"),{context:this.c.state.context,params:this.c.state.params,viewId:this.c.model.embeddedAppDEViewId,state:{singleSelect:this.c.state.singleSelect,selectedData:this.selectedData},onCreated:this.onCreated}))]})}});var uf=Object.defineProperty,df=(e,t,n)=>(((e,t,n)=>{t in e?uf(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,t+"",n),n);class hf{constructor(){df(this,"component","IBizPickupViewPanelControl")}}e("a6",hf);var pf=Object.defineProperty,ff=(e,t,n)=>(((e,t,n)=>{t in e?pf(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,t+"",n),n);e("a7",class extends oa{constructor(){super(...arguments),ff(this,"embedView")}setSelectedData(e){throw new Error("Method not implemented.")}async onCreated(){await super.onCreated(),this.initNavParam()}initNavParam(){const{navigateContexts:e,navigateParams:t}=this.model,n=this.context.clone(),a={...this.params};e&&Object.assign(n,ra(e,this.context,this.params)),t&&Object.assign(a,ra(t,this.context,this.params)),this.state.context=n,this.state.params=a}setEmbedView(e){this.embedView=e,this.embedView.evt.on("onSelectionChange",e=>{this.evt.emit("onSelectionChange",e)}),this.embedView.evt.on("onDataActive",e=>{this.evt.emit("onDataActive",{data:e.data})})}async getSelectedData(){return await this.embedView.call("GetData")}async getAllData(){return await this.embedView.call("GetAllData")}});const vf=e("a5",k(cf,function(e){e.component(cf.name,cf),Bn(Un.PICKUP_VIEW_PANEL,()=>new hf)})),mf=xe({name:"IBizListControl",props:{modelData:{type:Object,required:!0},context:{type:Object,required:!0},params:{type:Object,default:()=>({})},provider:{type:Object},mdctrlActiveMode:{type:Number,default:1},singleSelect:{type:Boolean,default:!0},rowsCount:{type:Number,default:2},columnsCount:{type:Number,default:5},loadDefault:{type:Boolean,default:!0},mode:{type:String,default:"LIST"}},setup(e,{slots:t}){const a=A((...e)=>new sa(...e)),i=n("control-mobmdctrl"),{renderItem:o,renderNoData:r,renderAddItem:s,renderScrollList:l}=Zr(e,a,i,t),c=()=>Oe("div",{class:i.b("skeleton-item")},[Oe(De("van-skeleton"),{animated:!0,row:1},{template:()=>Oe(De("van-skeleton-paragraph"),null,null)})]);return{c:a,ns:i,renderMDContent:()=>{const e=(()=>{const e=[];return e.push(...a.state.items.map(e=>o(e))),a.enableNew&&e.push(s()),e})();return l(e)},renderNoData:r,renderSkeleton:()=>{if(a.state.enableGroup&&!a.state.isSimple)return Oe("div",{class:i.b("skeleton")},[Array.from({length:3},()=>Oe("div",{class:i.b("skeleton-group")},[Oe("div",{class:i.be("skeleton-group","header")},[Oe(De("van-skeleton"),{title:!0,animated:!0,rows:1,"title-width":"20%"},null)]),Oe("div",{class:[i.be("skeleton","content"),i.be("skeleton-group","content")]},[Array.from({length:3},()=>c())])]))]);const e=a.state.size||6;return Oe("div",{class:i.b("skeleton")},[Oe("div",{class:i.be("skeleton","content")},[Array.from({length:Math.min(e,20)},()=>c())])])}}},render(){return this.c.state.isLoaded?Oe(De("iBizControlBase"),{controller:this.c,class:this.ns.b()},{default:()=>[this.c.state.isCreated&&(this.c.state.items.length>0?this.renderMDContent():this.renderNoData())]}):this.renderSkeleton()}});var gf=Object.defineProperty,bf=(e,t,n)=>(((e,t,n)=>{t in e?gf(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,t+"",n),n);class yf{constructor(){bf(this,"component","IBizListControl")}}e("a9",yf);const wf=e("a8",k(mf,function(e){e.component(mf.name,mf),Bn(Un.LIST,()=>new yf)}));const _f=xe({name:"IBizTabExpPanelControl",props:{modelData:{type:Object,required:!0},context:{type:Object,required:!0},params:{type:Object,default:()=>({})},provider:{type:Object},defaultTabName:{type:String,required:!1}},setup(){var e,t;const a=A((...e)=>new la(...e)),i=n("control-".concat(a.model.controlType.toLowerCase())),o=null==(e=a.view)?void 0:e.model,r=(null==(t=null==o?void 0:o.tabLayout)?void 0:t.toLowerCase())||"top",s=qe(()=>a.state.tabPages.map(e=>({id:e.tabTag,text:e.caption,icon:e.sysImage,counter:e.counterId?a.state.counterData[e.counterId]:null})));return{c:a,ns:i,tabPages:s,layoutMode:r,onTabChange:e=>{a.state.activeName=e,a.handleTabChange()}}},render(){const{isCreated:e,activeName:t}=this.c.state;if(!e)return;let n={};return"flow"!==this.layoutMode&&"flow_noheader"!==this.layoutMode||(n={groupContent:e=>{var t;const n=null==(t=this.c.model.controls)?void 0:t.find(t=>t.id===e.id);return ze(De("IBizViewShell"),{context:this.context,params:this.params,viewId:null==n?void 0:n.embeddedAppDEViewId})}}),Oe(De("iBizTabLayout"),{class:this.ns.b(),tabPages:this.tabPages,layoutMode:this.layoutMode,activeName:t,onTabChange:this.onTabChange},function(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!Ve(e)}(n)?n:{default:()=>[n]})}});var Ef=Object.defineProperty,Pf=(e,t,n)=>(((e,t,n)=>{t in e?Ef(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,t+"",n),n);class Nf{constructor(){Pf(this,"component","IBizTabExpPanelControl")}}e("ab",Nf);const If=e("aa",k(_f,function(e){e.component(_f.name,_f),Bn(Un.TAB_EXP_PANEL,()=>new Nf)})),Af=xe({name:"IBizToolbarGroupList",props:{modal:{type:Object},groupItems:{type:Array,required:!0},buttonsState:{type:Object,required:!0},groupShowMode:{type:String,required:!0},counterData:{type:Object},isGroupExtractMode:{type:Boolean,default:!1}},setup(e){const t=n("toolbar-group-list"),{handleModalClose:a,renderToolbarItem:i}=Df(t,{modal:e.modal,counterData:e.counterData,buttonsState:e.buttonsState,groupShowMode:e.groupShowMode,direction:"horizontal"});return{ns:t,handleModalClose:a,renderToolbarItem:i}},render(){var e,t;return Oe("div",{class:[this.ns.b(),this.ns.is(null==(e=this.groupShowMode)?void 0:e.toLocaleLowerCase(),!0)]},["DEFAULT"===this.groupShowMode?Oe("div",{class:this.ns.e("modal"),onClick:this.handleModalClose},null):null,Oe("div",{class:this.ns.e("wrapper")},[null==(t=this.groupItems)?void 0:t.map(e=>this.renderToolbarItem(e))])])}}),kf=xe({name:"IBizFloatToolbar",props:{modal:{type:Object},modelData:{type:Object,required:!0},buttonsState:{type:Object,required:!0},groupShowMode:{type:String,required:!0},counterData:{type:Object},placement:{type:String,default:"RIGHTEND"},direction:{type:String,default:"HORIZONTAL"},immediateFloat:{type:Boolean,default:!1}},setup(e){const t=n("float-toolbar"),a=je(),{renderToolbarItem:i}=Df(t,{modal:e.modal,counterData:e.counterData,buttonsState:e.buttonsState,groupShowMode:e.groupShowMode,isFloatToolbar:!0,direction:"HORIZONTAL"===e.direction?"vertical":"horizontal"});return{ns:t,contentRef:a,handleFloatToolbarClose:()=>{var t;null==(t=e.modal)||t.dismiss()},renderToolbarItem:i}},render(){var e,t,n;return this.buttonsState.visible?Oe("div",{class:[this.ns.b(),this.ns.is(null==(e=this.placement)?void 0:e.toLocaleLowerCase(),!!this.placement),this.ns.is(null==(t=this.direction)?void 0:t.toLocaleLowerCase(),!!this.direction),this.ns.is("immediate-float",!!this.immediateFloat)]},[Oe("div",{class:this.ns.e("wrapper")},[null==(n=this.modelData.detoolbarItems)?void 0:n.map(e=>this.renderToolbarItem(e))]),this.immediateFloat?null:Oe("div",{class:this.ns.e("modal"),onClick:this.handleFloatToolbarClose},null)]):null}});function Cf(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!Ve(e)}function Sf(e){return!("DEUIACTIONGROUP"!==e.detailType||!e.refUIActionGroup)}function Mf(e,t,n){if(n>=e.length)return-1;const a=e[n];return a?Sf(a)||t[a.id].visible?n:Mf(e,t,n+1):-1}function xf(e,t){const n=e=>Jr(e);return{getToolbarItemRenderProps:(e,t)=>{var a;return{itemModel:e,key:e.id,cssName:null==(a=null==e?void 0:e.sysCss)?void 0:a.cssName,title:e.tooltip||e.caption,type:n(e),isGroupExtractMode:t}},btnType:n,renderToolbarItemContent:n=>{var a,i;const o=n,r=(null==(a=o.refUIActionGroup)?void 0:a.name)||(null==(i=o.refUIActionGroup)?void 0:i.id)||n.caption,s=t.counterData&&o.counterId?t.counterData[o.counterId]:null,l=o.showIcon&&o.sysImage?o.sysImage:null,c=(o.showCaption||"extra"===n.buttonType)&&r?r:null;return Oe(De("iBizInfoItem"),{class:e.b("item"),icon:l,label:c,badge:s,badgeFloat:!1},null)}}}function Of(e){const t=n("toolbar-group-modal"),{buttonsState:a,modal:i,counterData:o,groupShowMode:r,direction:s="vertical",modalCloseCallback:l}=e;let c;const u=()=>{null==c||c.dismiss()},d=()=>{u(),null==i||i.dismiss({ok:!1,params:{isModalAllClose:!0}})},h=(e,t,n)=>{u(),null==i||i.dismiss({ok:!0,data:[{event:t,action:e,isGroupExtractMode:n}]})},p=async(e,n,i=!1)=>{var p,f;u();const v=((e,t)=>{let n=e.detoolbarItems;if(t){const{uiactionGroup:t,refUIActionGroup:i,groupExtractMode:o}=e;if(n=(null==t?void 0:t.uiactionGroupDetails)||(null==i?void 0:i.uiactionGroupDetails),"ITEMX"===o){if(!(null==n?void 0:n.length))return[];const e=Mf(n,a,0);n=n.slice(e+1).filter(e=>!!a[e.id].visible)}}return n||[]})(e,i);if(!v.length)return;c="ACTIONSHEET"===r?((e,n)=>{const i=ibiz.overlay.createDrawer(t=>ze(Af,{modal:t,groupItems:e,counterData:o,buttonsState:a,groupShowMode:r,isGroupExtractMode:n}),{},{width:100,height:"auto",attrs:{position:"bottom",overlayClass:"".concat(t.b("drawer")),closeable:!1,round:!0}});return i.present(),i})(v,i):((e,n,i)=>{const l=Kr(t,e.currentTarget,n.length,s,{width:"8rem",height:"3rem"}),c=ibiz.overlay.createPopover(e=>ze(Af,{modal:e,groupItems:n,counterData:o,buttonsState:a,groupShowMode:r,isGroupExtractMode:i}),{},{width:"auto",height:"auto",modalClass:"".concat(t.b("popover")),placement:l});return c.present(e.currentTarget),c})(n,v,i);const m=await c.onWillDismiss();if(null==(p=null==m?void 0:m.params)?void 0:p.isModalAllClose)return void d();const g=null==(f=null==m?void 0:m.data)?void 0:f[0];if(g){const{action:e,event:t,isGroupExtractMode:n}=g;h(e,t,n),null==l||l(e,t,n)}};return Fe(()=>{u()}),{handleItemClick:async(e,t,n)=>{const a=e,i=e.itemType||a.detailType;"ITEMS"===i||Sf(e)?p(e,t):("DEUIACTION"===i||n)&&h(e,t,n)},handleGroupItemClick:p,handleModalClose:d}}function Df(e,t){const{buttonsState:n,modal:a,counterData:i,groupShowMode:o,isFloatToolbar:r,direction:s}=t,{getToolbarItemRenderProps:l,renderToolbarItemContent:c}=xf(e,{counterData:i}),{handleItemClick:u,handleModalClose:d,handleGroupItemClick:h}=Of({modal:a,counterData:i,buttonsState:n,groupShowMode:o,direction:s}),p=()=>Oe("div",{class:e.e("item-arrow")},[Oe(De("van-icon"),{name:"arrow"},null)]),f=t=>{const{itemModel:n,key:a,isGroupExtractMode:i}=t;return Oe("div",{key:a,class:[e.e("group-item")],onClick:e=>h(n,e,i)},[Oe("div",{class:e.em("group-item","wrapper")},[c(n),r?null:p()])])},v=t=>{var a;const{itemModel:i,isGroupExtractMode:o}=t;if(Sf(i))return f(t);const r=i.id,s=null==(a=n[r])?void 0:a.visible;let l=n[r].disabled;if(!s)return null;return"ITEMS"===i.itemType&&(l=!1),Oe("div",{class:[e.e("item"),e.is("disabled",l)],onClick:e=>!l&&u(i,e,o)},[Oe("div",{class:e.em("item","wrapper")},[c(i)])])},m=e=>{const{uiactionGroup:t}=e;return t&&t.uiactionGroupDetails?f(l(e,!0)):null},g=e=>{const{uiactionGroup:t}=e;if(t&&t.uiactionGroupDetails){const{uiactionGroupDetails:e}=t;return e.map(e=>v(l(e,!0)))}return null},b=t=>{const{groupExtractMode:a}=t;if(r)switch(a){case"ITEMS":case"ITEMX":return m(t);default:return g(t)}switch(a){case"ITEMS":return m(t);case"ITEMX":return(t=>{const{uiactionGroup:a}=t;if(a&&a.uiactionGroupDetails){const{uiactionGroupDetails:i}=a,o=Mf(i,n,0);if(-1!==o){const n=i[o];return Oe("div",{key:t.id,class:[e.e("group-itemx")]},[Oe("div",{class:e.em("group-itemx","wrapper")},[v(l(n,!0)),Oe("div",{onClick:e=>h(t,e,!0)},[p()])])])}}return null})(t);default:return g(t)}};return{handleModalClose:d,renderToolbarItem:e=>{var t;const a=e.id;if(!(null==(t=n[a])?void 0:t.visible))return null;const i=e,o=e.itemType||i.detailType;if("ITEMS"===o||Sf(e)){const t=e;return t.groupExtractMode&&t.uiactionGroup?b(e):f(l(e,Sf(e)))}return"DEUIACTION"===o?v(l(e,!!i.detailType)):null}}}function Tf(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!Ve(e)}const jf=xe({name:"IBizToolbarControl",props:{modelData:{type:Object,required:!0},provider:{type:Object},context:{type:Object,required:!0},params:{type:Object,default:()=>({})}},setup(e){const t=A((...e)=>new ca(...e)),a=n("control-".concat(t.model.controlType.toLowerCase()));let i="";switch(e.modelData.toolbarStyle){case"MOBNAVRIGHTMENU":i="right";break;case"MOBNAVLEFTMENU":i="left";break;case"MOBBOTTOMMENU":i="bottom";break;case"USER":i="popper"}const o=qe(()=>"bottom"===i?"normal":"small"),r=async(e,n,a)=>{const i={...e};a&&Object.assign(i,{...e,itemType:e.detailType}),await t.onItemClick(i,n)},{btnType:s,getToolbarItemRenderProps:l,renderToolbarItemContent:c}=xf(a,t.state),{handleGroupItemClick:u}=Of({buttonsState:t.state.buttonsState,counterData:t.state.counterData,groupShowMode:t.groupShowMode,modalCloseCallback:r.bind(this)}),{renderFloatButton:d}=function(e,t,n,a){const i=je(),o=qe(()=>{let e="";switch(n.placement){case"LEFTSTART":case"LEFT":case"LEFTEND":e="right";break;default:e="left"}if("VERTICAL"===n.direction)switch(n.placement){case"LEFTSTART":case"LEFT":e="right-start";break;case"LEFTEND":e="right-end";break;case"RIGHTEND":e="left-end";break;default:e="left-start"}return e}),r=(e,a=!0)=>ze(kf,{modal:e,modelData:t.modelData,state:n.state,buttonsState:n.state.buttonsState,counterData:n.state.counterData,placement:n.placement,direction:n.direction,groupShowMode:n.groupShowMode,immediateFloat:a}),s=async e=>{var t;const n=null==(t=null==e?void 0:e.data)?void 0:t[0];if(n){const{action:e,event:t}=n;a(e,t)}return!1},l=async(t,n)=>{if(i.value)return void await i.value.dismiss();i.value=ibiz.overlay.createPopover(e=>r(e,!1),{},{width:"auto",height:"auto",noArrow:!0,placement:o.value,modalClass:"".concat(e.b("float-toolbar-modal"))}),i.value.present(n);const a=await i.value.onWillDismiss();s(a),i.value=void 0};return Fe(()=>{i.value=void 0}),{renderFloatButton:()=>{let e;if("COLLAPSIBLE"===n.showMode){const e={};return i.value&&Object.assign(e,{icon:()=>Oe(De("van-icon"),{name:"cross"},null)}),Oe(De("iBizFloatButton"),{align:n.placement,onClick:l},Cf(e)?e:{default:()=>[e]})}return Oe(De("iBizFloatButton"),{align:n.placement,renderMode:"DIV"},Cf(e=r({dismiss:s}))?e:{default:()=>[e]})}}}(a,e,t,r.bind(this)),h=e=>{let t;const{itemModel:n,key:i,type:r,isGroupExtractMode:s,cssName:l}=e;return Oe("div",{key:i,class:[a.e("group"),l]},[Oe(De("van-button"),{size:o.value,type:r,onClick:e=>u(n,e,s)},Tf(t=c(n))?t:{default:()=>[t]})])},p=e=>{let n;const{itemModel:i,key:s,cssName:l,title:u,type:d,isGroupExtractMode:p}=e;return Sf(i)?h(e):Oe("div",{key:s,class:[a.e("item"),l]},[Oe(De("van-button"),{title:u,size:o.value,type:d,loading:t.state.buttonsState[s].loading,disabled:t.state.buttonsState[s].disabled,onClick:e=>r(i,e,p)},Tf(n=c(i))?n:{default:()=>[n]})])},f=e=>{const{groupExtractMode:n}=e;switch(n){case"ITEMS":return(e=>{const{uiactionGroup:t}=e;return t&&t.uiactionGroupDetails?h(l(e,!0)):null})(e);case"ITEMX":return(e=>{const{uiactionGroup:n}=e;if(n&&n.uiactionGroupDetails){const{uiactionGroupDetails:i}=n,r=Mf(i,t.state.buttonsState,0);if(-1!==r){const t=i[r];return Oe("div",{key:e.id,class:[a.e("group-itemx")]},[p(l(t,!0)),Oe(De("van-button"),{size:o.value,type:s(e),icon:"arrow-down",onClick:t=>u(e,t,!0)},null)])}}return null})(e);default:return(e=>{const{uiactionGroup:t}=e;if(t&&t.uiactionGroupDetails){const{uiactionGroupDetails:e}=t;return e.map(e=>p(l(e,!0)))}return null})(e)}};return{c:t,ns:a,btnSize:o,position:i,handleClick:r,renderFloatButton:d,renderToolbarItemContent:c,renderExtraButtons:e=>e.map(e=>{let t;return Oe("div",{key:e.id,class:[a.e("item"),a.e("item-extra")]},[Oe(De("van-button"),{title:e.tooltip,size:o.value,onClick:t=>r(e,t)},Tf(t=c(e))?t:{default:()=>[t]})])}),renderToolbarItem:e=>{var n;const a=e.id,i=null==(n=t.state.buttonsState[a])?void 0:n.visible;if(["SEPERATOR","RAWITEM"].includes(e.itemType))return ibiz.log.error(ibiz.i18n.t("control.toolbar.noSupportType",{itemType:e.itemType})),null;if("ITEMS"===e.itemType&&i){const t=e;return t.groupExtractMode&&t.uiactionGroup?f(e):h(l(e))}return"DEUIACTION"===e.itemType&&i?p(l(e)):null}}},render(){const{state:e}=this.c;if(!e.isCreated)return null;if("popper"===this.position){let e;return Oe(De("iBizControlBase"),{ref:"contentRef",controller:this.c,class:[this.ns.b(),this.ns.b(this.position)]},Tf(e=this.renderFloatButton())?e:{default:()=>[e]})}return Oe(De("iBizControlBase"),{controller:this.c,class:[this.ns.m(e.viewMode.toLowerCase()),this.ns.b(this.position)]},{default:()=>{var t,n,a;return[(null==(t=e.extraButtons.before)?void 0:t.length)>0&&this.renderExtraButtons(e.extraButtons.before),null==(n=this.modelData.detoolbarItems)?void 0:n.map((t,n)=>{var a;const i=this.renderToolbarItem(t);return(null==(a=e.extraButtons[n])?void 0:a.length)?[i,this.renderExtraButtons(e.extraButtons[n])]:i}),(null==(a=e.extraButtons.after)?void 0:a.length)>0&&this.renderExtraButtons(e.extraButtons.after)]}})}});var Lf=Object.defineProperty,Vf=(e,t,n)=>(((e,t,n)=>{t in e?Lf(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,t+"",n),n);class Bf{constructor(){Vf(this,"component","IBizToolbarControl")}}const Uf=e("ac",k(jf,function(e){e.component(jf.name,jf),Bn(Un.TOOLBAR,()=>new Bf)})),zf=xe({name:"IBizCaptionBarControl",props:{modelData:{type:Object,required:!0},context:{type:Object,required:!0},params:{type:Object,default:()=>({})},provider:{type:Object}},setup(){const e=A((...e)=>new ua(...e)),t=n("control-".concat(e.model.controlType.toLowerCase()));return e.setBrowserTabTitle(),st(()=>{e.setBrowserTabTitle()}),{c:e,ns:t}},render(){return Oe(De("iBizControlBase"),{controller:this.c,class:[this.ns.b(),this.ns.is("hasSub",Boolean(this.modelData.subCaption)),this.ns.is("show-icon",!!this.c.model.sysImage)]},{default:()=>[Oe("div",{class:this.ns.b("caption")},[this.c.model.sysImage&&Oe(De("iBizIcon"),{class:[this.ns.be("caption","icon")],icon:this.c.model.sysImage},null),Oe("span",null,[this.c.state.caption])]),this.modelData.subCaption&&Oe("div",{class:this.ns.b("sub-caption")},[this.modelData.subCaption])]})}});var Rf=Object.defineProperty,Ff=(e,t,n)=>(((e,t,n)=>{t in e?Rf(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,t+"",n),n);class $f{constructor(){Ff(this,"component","IBizCaptionBarControl")}}e("ae",$f);const qf=e("ad",k(zf,function(e){e.component(zf.name,zf),Bn(Un.CAPTIONBAR,()=>new $f)})),Wf=xe({name:"IBizSearchBarControl",props:{modelData:{type:Object,required:!0},provider:{type:Object},context:{type:Object,required:!0},params:{type:Object,default:()=>({})}},setup(e){const t=A((...e)=>new da(...e)),a=n("control-".concat(t.model.controlType.toLowerCase())),i=je(),o=je(0),r=je(),s=je(!1),l=je([]),c=je(!0),u=je(!1),d=je(),h="searchbar-".concat(e.context.srfuserid,"-").concat(e.context.srfappid,"-").concat(t.view.model.id,"-").concat(t.model.id);let p;const f=je(!1);let v=null;const m=je(!1),g=qe(()=>Object.hasOwnProperty.call(t.controlParams,"enablestoredquery")?"true"===t.controlParams.enablestoredquery||!0===t.controlParams.enablestoredquery:ibiz.config.mob.mobEnableStoredQuery),b=qe(()=>t.model.searchBarGroups&&t.model.searchBarGroups.length>0),y=qe(()=>g.value),w=je({}),_=e=>{w.value=e};t.evt.on("onCreated",()=>{t.counter&&t.counter.onChange(_,!0)});const E=()=>{if(t.onSearch(),g.value&&t.state.query){-1===l.value.indexOf(t.state.query)&&(l.value.unshift(t.state.query),localStorage.setItem(h,JSON.stringify(l.value)))}},P=un(()=>{E&&E()},500),N=qe(()=>t.model.quickSearchWidth?a.cssVarBlock({"quick-search-width":"".concat(t.model.quickSearchWidth,"px")}):{}),I=je();let k;const C=qe(()=>({display:s.value?"flex":"none",top:"".concat(o.value,"px"),maxHeight:"calc(100vh - ".concat(o.value,"px - 10px)")})),M=qe(()=>({maxHeight:c.value?"150px":"100%"})),x=()=>{d.value=setTimeout(()=>{u.value=!0},1e3)},O=()=>{clearTimeout(d.value)},D=()=>{clearTimeout(d.value)},T=()=>l.value.filter(e=>e.includes(t.state.query)).map(e=>Oe("div",{onClick:()=>(e=>{t.handleInput(e),E(),s.value=!1})(e),onPointerdown:x,onPointerup:O,onPointercancel:D,tabindex:0,class:a.bem("history","content","item")},[Oe("div",{class:a.bem("history","content","item-text")},[Oe("span",null,[e]),u.value&&Oe("ion-icon",{onClick:t=>{((e,t)=>{t.stopPropagation(),t.preventDefault();const n=l.value.indexOf(e);l.value.splice(n,1),localStorage.setItem(h,JSON.stringify(l.value))})(e,t)},class:a.bem("history","content","item-remove"),name:"close-circle-outline"},null)])])),j=()=>{l.value=[],localStorage.removeItem(h),s.value=!1},L=e=>{var n;t.state.filterNodes=ha(),t.state.customCond="",(null==(n=t.state.selectedGroupItem)?void 0:n.id)!==(null==e?void 0:e.id)?(t.state.selectedGroupItem=e,t.evt.emit("onTabChange",{data:[e]})):(t.state.selectedGroupItem=null,t.evt.emit("onTabChange",{data:null})),E()},V=()=>{c.value=!c.value},B=()=>{u.value=!1},U=()=>{f.value=!0};return Be(()=>{var e;if(y.value&&r.value){if(g.value){const e=localStorage.getItem(h);e&&(l.value=JSON.parse(e))}p=S(r,async()=>{s.value=!1,g.value&&localStorage.setItem(h,JSON.stringify(l.value))},{ignore:[null==(e=i.value)?void 0:e.$el]}),v=new ResizeObserver(e=>{const t=e[0].target.clientHeight;m.value=t>200}),v.observe(r.value)}}),Ue(()=>{p&&p.stop&&p.stop(),v&&r.value&&v.unobserve(r.value)}),{c:t,ns:a,style:C,cssVars:N,searchRef:i,dropdownRef:r,contentStyle:M,enableDropDown:y,filterButtonRef:I,enableStoredQuery:g,onInput:e=>{t.handleInput(e),P()},onSearch:E,onFocus:e=>{var t;if(y.value){if(i.value){if(g.value){const e=localStorage.getItem(h);e&&(l.value=JSON.parse(e))}const e=i.value.$el.getBoundingClientRect(),{height:t,top:n}=e;o.value=n+t+8}(null==(t=l.value)?void 0:t.length)>0&&(s.value=!0)}},onClear:e=>{y.value&&(e.preventDefault(),e.stopPropagation(),s.value=!0)},triggerFilter:()=>{k?k.dismiss():(async()=>{k=ibiz.overlay.createDrawer(()=>Oe(De("iBizFilterTreeControl"),{filterControllers:t.filterControllers,filterNodes:t.state.filterNodes,parent:"search-bar",filterMode:t.state.filterMode,customCond:t.state.customCond,context:t.context,params:t.params,schemaEntityMap:t.schemaEntityMap,onCustomCondChange:e=>{t.state.customCond=e},onConfirm:(e,n)=>{t.state.filterMode=e,t.state.selectedGroupItem=null,t.state.customCond=n,t.onSearch(),k&&k.dismiss()},onCancel:()=>{t.resetFilter(),t.state.customCond="",k&&k.dismiss()}},null),void 0,{placement:"bottom",height:80,attrs:{closeable:!0}}),k.present(I.value.$el),await k.onWillDismiss(),k=void 0})()},renderHistory:()=>g.value?Oe("div",{class:a.b("history")},[Oe("div",{class:a.be("history","header")},[Oe("div",{class:a.bem("history","header","title")},[ibiz.i18n.t("control.searchBar.history")]),u.value?Oe("span",{onClick:B},[ibiz.i18n.t("control.searchBar.cancel")]):Oe("div",{class:a.bem("history","header","clear"),onClick:j},[Oe("ion-icon",{name:"trash-outline"},null),Oe("span",null,[ibiz.i18n.t("control.searchBar.clear")])])]),Oe("div",{class:a.be("history","content"),style:M.value},[T()]),m.value&&Oe("div",{class:a.be("history","footer"),onClick:V},[Oe(De("van-divider"),null,{default:()=>[c.value?ibiz.i18n.t("control.searchBar.expand"):ibiz.i18n.t("control.searchBar.collapse"),c.value?Oe("ion-icon",{name:"caret-down-outline"},null):Oe("ion-icon",{name:"caret-up-outline"},null)]})])]):null,renderAllGroups:()=>{var e,n;const i=t.model.quickGroupCount||(null==(e=t.model.searchBarGroups)?void 0:e.length),o=null==(n=t.model.searchBarGroups)?void 0:n.slice(i).map(e=>{var n;return{name:e.caption,className:[a.em("action-sheet","item"),a.is("selected",e.id===(null==(n=t.state.selectedGroupItem)?void 0:n.id))],...e}});return Oe(De("van-action-sheet"),{class:a.e("action-sheet"),show:f.value,"onUpdate:show":e=>f.value=e,actions:o,"close-on-click-action":!0,onSelect:e=>(e=>{f.value=!1,L(e)})(e)},null)},renderQuickGroup:()=>{var e,n,i,o,r,s,l;if(!b.value)return null;const c=t.model.quickGroupCount||(null==(e=t.model.searchBarGroups)?void 0:e.length);return Oe("div",{class:a.b("quick-group")},[null==(i=null==(n=t.model.searchBarGroups)?void 0:n.slice(0,c))?void 0:i.map(e=>{var n;return t.calcCountVisible(e)?Oe("span",{class:[a.be("quick-group","item"),a.is("selected",(null==(n=t.state.selectedGroupItem)?void 0:n.id)===e.id)],onClick:()=>L(e)},[e.caption,e.counterId&&Oe(De("iBizBadge"),{class:a.e("counter"),value:w.value[e.counterId],counterMode:e.counterMode},null)]):null}),c&&c>0&&c<(null!=(r=null==(o=t.model.searchBarGroups)?void 0:o.length)?r:0)?Oe("div",{class:[a.be("quick-group","item"),a.be("quick-group","more"),a.is("selected",!(!(null==(s=t.state.selectedGroupItem)?void 0:s.id)||(null==(l=t.model.searchBarGroups)?void 0:l.slice(0,c).some(e=>{var n;return e.id===(null==(n=t.state.selectedGroupItem)?void 0:n.id)}))))],onClick:U},[Oe("ion-icon",{name:"grid-outline"},null),Oe("div",{class:a.be("quick-group","more-text")},[t.model.groupMoreText||ibiz.i18n.t("control.searchBar.more")])]):null])}}},render(){return Oe(De("iBizControlBase"),{controller:this.c,style:this.cssVars,class:this.ns.b("container")},{default:()=>[Oe("div",{class:[this.ns.b(),this.ns.is("enable-filter",this.c.enableFilter)]},[this.c.model.enableQuickSearch&&Oe(De("van-search"),{ref:"searchRef",modelValue:this.c.state.query,class:this.ns.b("quick-search"),autocomplete:this.enableDropDown?"off":"on",placeholder:this.c.state.quickSearchPlaceHolder,"onUpdate:model-value":this.onInput,onFocus:this.onFocus,onClear:this.onClear},null),this.c.enableFilter&&Oe(De("van-button"),{ref:"filterButtonRef",title:Mt(ibiz.i18n.t("control.searchBar.filter")),class:this.ns.e("filter"),onClick:()=>this.triggerFilter()},{default:()=>[Oe(De("iBizIcon"),{icon:{cssClass:"funnel-outline"}},null)]})]),this.renderQuickGroup(),Oe(lt,{to:"body"},{default:()=>[Oe("div",{ref:"dropdownRef",style:this.style,class:this.ns.b("dropdown")},[this.renderHistory()])]}),this.renderAllGroups()]})}});function Hf(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!Ve(e)}const Gf=[{value:"AND",text:"AND"},{value:"OR",text:"OR"}],Yf=[Tn.IS_NULL,Tn.IS_NOT_NULL,Tn.EXISTS,Tn.NOT_EXISTS],Xf=xe({name:"IBizFilterTreeControl",props:{filterControllers:{type:Array,required:!0},filterNodes:{type:Array,required:!0},parent:{type:String,required:!0},filterMode:{type:String,default:"default"},customCond:{type:String,default:""},context:{type:Object},params:{type:Object},schemaEntityMap:{type:Object,default:()=>new Map}},emits:["confirm","cancel","change","customCondChange"],setup(e,{emit:t}){const a=n("filter-tree"),i=je(!1),o=je(null),r=je(null);let s;const l=je(null),c=ku(),u=qe(()=>e.filterNodes),d=t=>{const{field:n,valueOP:a}=t;return e.filterControllers.find(e=>e.key===n&&(!e.valueOP||e.valueOP===a))},h=[];e.filterControllers.forEach(e=>{let t=h.find(t=>t.name===e.key);e.hidden||(void 0===t&&(t={name:e.key,fieldName:e.fieldName,label:e.label,valueOPs:[]},"SIMPLE_ITEMS"===e.type&&(t.simpleFilterC=e),h.push(t)),e.valueOP?t.valueOPs.push(e.valueOP):t.valueOPs=c.map(e=>e.valueOP))});const p=je([]);h.forEach(async t=>{var n,a;const i=e.filterControllers.find(e=>e.key===t.name);i&&p.value.push({appDEFieldId:t.fieldName,caption:t.label,valueOPs:t.valueOPs,appDataEntityId:e.schemaEntityMap.get(t.fieldName),appDataEntityFullTag:null==(n=i.appDataEntity)?void 0:n.defullTag,appCodeListId:null==(a=i.model.editor)?void 0:a.appCodeListId})});const f=je(e.filterMode||"default"),v=je("");$e(()=>e.customCond,()=>{v.value=e.customCond},{immediate:!0});const m=()=>{o.value=null,r.value=null,l.value=null,i.value=!1},g=()=>{l.value&&!Kt(l.value.value)&&Object.assign(r.value,l.value),m()},b=()=>{if(!u.value.length)return;const e=u.value[0].children;e.splice(s,1),e.length>0&&"GROUP"===e[0].nodeType&&e[0].children.length&&(e[0]=e[0].children[0]),m()},y=()=>{if(!u.value.length||!o.value||Kt(o.value.value))return;const e=u.value[0].children;if(e[0]&&!e[0].field)return Object.assign(e[0],o.value),void m();e.push({nodeType:"GROUP",logicType:"AND",children:[o.value]}),m()},w=(e,t,n=!1)=>{if(t.noEditor||e.valueOP&&Yf.includes(e.valueOP))return null;let a=null;if(t.editorProvider){const{data:i,value:o}=t.calcEditorProps(e),r=De(t.editorProvider.formEditor);a=ze(r,{key:t.editor.model.id,value:o,controller:t.editor,disabled:e.disabled,readonly:n,data:i,onChange:(n,a)=>{t.onEditorChange(e,n,a)}})}else a=Oe(De("not-supported-editor"),{modelData:t.model.editor},null);return a},_=(e,t,n)=>{if(e.hidden)return;const o=h;let u=null;if(e.field&&e.valueOP){const t=d(e);t&&!["EXISTS","NOTEXISTS"].includes(t.valueOP)&&(u=w(e,t,!0))}const p=o.find(t=>t.name===e.field);if(!p)return;const f=c.find(t=>t.valueOP===e.valueOP);return Oe("div",{class:a.e("item"),onClick:a=>{((e,t,n,a)=>{e.stopPropagation(),r.value=t,l.value={...t},s=a?0:n+1,i.value=!0})(a,e,t,n)}},[Oe("div",{class:a.e("item-header")},[Oe("div",{class:a.e("field")},[p.label]),Oe("div",{class:a.e("condop")},[null==f?void 0:f.label])]),Oe("div",{class:a.e("value")},[u])])},E=e=>Oe(De("van-dropdown-menu"),{overlay:!1,"close-on-click-outside":!0},{default:()=>[Oe(De("van-dropdown-item"),{modelValue:e.logicType,"onUpdate:modelValue":t=>e.logicType=t,options:Gf,onChange:t=>((e,t)=>{e.logicType=t})(e,t)},null)]}),P=(e,t=!1)=>{if(e.hidden)return;return(()=>{if(!u.value.length)return!1;const e=u.value[0];return!(1===e.children.length&&!e.children[0].field)})()?Oe("div",{class:a.e("group")},[Oe("div",{class:[a.e("type"),a.is("readonly",t)]},[t?ibiz.i18n.t("control.searchBar.when"):E(e)]),e.children.map((e,n)=>"FIELD"===e.nodeType?_(e,n,t):"GROUP"===e.nodeType?P(e):void 0)]):void 0};return{ns:a,showPopup:i,UiFilterNodes:u,onReset:()=>{t("cancel")},addItem:()=>{if(o.value={nodeType:"FIELD",field:null,valueOP:null,value:null},h.length){const e=h[0];o.value.field=e.name,e.valueOPs.length&&Object.assign(o.value,{valueOP:e.valueOPs[0]})}i.value=!0},onConfirm:()=>{t("confirm",f.value,v.value)},renderPopupItem:()=>{let e;const t=!!r.value,n=t?l.value:o.value;if(!n)return;const i=h,s=((e,t=h)=>{if(!e)return[];const n=t.find(t=>t.name===e);return n?n.valueOPs:[]})(n.field,i);let c=null;if(n.field&&n.valueOP){const e=d(n);e&&!["EXISTS","NOTEXISTS"].includes(e.valueOP)&&(c=w(n,e))}let u=Oe("div",{class:a.e("item-footer")},[Oe(De("van-button"),{type:"primary",onClick:y},Hf(e=ibiz.i18n.t("control.searchBar.add"))?e:{default:()=>[e]})]);if(t){let e,t;u=Oe("div",{class:a.e("item-footer")},[Oe(De("van-button"),{type:"danger",onClick:b},Hf(e=ibiz.i18n.t("control.searchBar.remove"))?e:{default:()=>[e]}),Oe(De("van-button"),{type:"primary",onClick:g},Hf(t=ibiz.i18n.t("control.searchBar.confirm"))?t:{default:()=>[t]})])}return Oe("div",{class:a.e("popup-content")},[Oe("div",{class:a.e("popup-caption")},[ibiz.i18n.t("control.searchBar.addCond")]),Oe(De("iBizFilterFieldSelect"),{disabled:n.disabled,value:n.field,modes:i,onChange:e=>{((e,t,n=h)=>{const a=n.find(e=>e.name===t);a?(Oi(e),a.simpleFilterC?Object.assign(e,{nodeType:"FIELD",field:a.name,valueOP:a.simpleFilterC.subValueOP,value:null}):(e.nodeType="FIELD",e.field=a.fieldName,a.valueOPs.length&&Object.assign(e,{valueOP:a.valueOPs[0]}))):ibiz.log.error("allFields找不到属性标识为".concat(t,"的"))})(n,e,i)}},null),Oe(De("iBizFilterModeSelect"),{disabled:n.disabled,value:n.valueOP,modes:s,onChange:e=>{((e,t)=>{e.valueOP=t,e.value=null})(n,e)}},null),Oe("div",{class:a.e("editor")},[Oe("div",{class:a.e("editor-caption")},[ibiz.i18n.t("control.searchBar.value")]),c]),u])},renderFilterGroup:P}},render(){let e,t,n;return Oe("div",{class:this.ns.b()},[Oe("div",{class:this.ns.e("header")},[Oe("div",{class:this.ns.e("title")},[ibiz.i18n.t("control.searchBar.filter")]),Oe("div",{class:this.ns.e("toolbar")},[Oe("ion-icon",{name:"add-outline",onClick:this.addItem},null)])]),Oe("div",{class:this.ns.e("content")},[this.UiFilterNodes.length>0&&this.UiFilterNodes.map(e=>this.renderFilterGroup(e,!0))]),Oe("div",{class:this.ns.e("footer")},[Oe(De("van-button"),{onClick:this.onReset},Hf(e=ibiz.i18n.t("control.searchBar.reset"))?e:{default:()=>[e]}),Oe(De("van-button"),{type:"primary",class:this.ns.e("confirm"),onClick:this.onConfirm},Hf(t=ibiz.i18n.t("control.searchBar.confirm"))?t:{default:()=>[t]})]),Oe(De("van-popup"),{class:this.ns.e("popup"),show:this.showPopup,"onUpdate:show":e=>this.showPopup=e,teleport:"body",position:"bottom"},Hf(n=this.renderPopupItem())?n:{default:()=>[n]})])}});var Jf=Object.defineProperty,Kf=(e,t,n)=>(((e,t,n)=>{t in e?Jf(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,t+"",n),n);class Qf{constructor(){Kf(this,"component","IBizSearchBarControl")}}e("ag",Qf);const Zf=xe({name:"IBizFilterModeSelect",props:{value:String,modes:Array,disabled:Boolean},emits:{change:e=>!0},setup(e,{emit:t}){const a=je(!1),i=ku(),o=n("filter-mode-select"),r=qe(()=>{var t;return(null==(t=e.modes)?void 0:t.length)?i.filter(t=>e.modes.includes(t.valueOP)).map(e=>({text:e.label,value:e.valueOP})):i.map(e=>({text:e.label,value:e.valueOP}))}),s=je("");$e(()=>e.value,t=>{if(t||null===t){const n=i.findIndex(t=>t.valueOP===e.value);-1!==n&&(s.value=i[n].label),null===t&&(s.value="")}},{immediate:!0,deep:!0});return{ns:o,availableModes:r,showPicker:a,valueText:s,onChange:({selectedOptions:e})=>{a.value=!1,Array.isArray(e)&&t("change",e[0].value)},openPopup:()=>{e.disabled||(a.value=!0)}}},render(){return Oe("div",{class:this.ns.b()},[Oe(De("van-field"),{modelValue:this.valueText,"onUpdate:modelValue":e=>this.valueText=e,"is-link":!0,readonly:!0,label:ibiz.i18n.t("control.searchBar.operate"),onClick:this.openPopup},null),Oe(De("van-popup"),{round:!0,teleport:"body",position:"bottom",show:this.showPicker,"onUpdate:show":e=>this.showPicker=e},{default:()=>[Oe(De("van-picker"),{columns:this.availableModes,onCancel:()=>{this.showPicker=!1},onConfirm:this.onChange},null)]})])}}),ev=xe({name:"IBizFilterFieldSelect",props:{value:String,modes:{type:Array,default:()=>[]},disabled:Boolean},emits:{change:e=>!0},setup(e,{emit:t}){const a=je(!1),i=n("filter-field-select"),o=qe(()=>e.modes.map(e=>({text:e.label,value:e.name}))),r=je("");$e(()=>e.value,e=>{if(e||null===e){const t=o.value.findIndex(t=>t.value===e);-1!==t&&(r.value=o.value[t].text),null===e&&(r.value="")}},{immediate:!0,deep:!0});return{ns:i,showPicker:a,valueText:r,items:o,onChange:({selectedOptions:e})=>{a.value=!1,Array.isArray(e)&&t("change",e[0].value)},openPopup:()=>{e.disabled||(a.value=!0)}}},render(){return Oe("div",{class:this.ns.b()},[Oe(De("van-field"),{modelValue:this.valueText,"onUpdate:modelValue":e=>this.valueText=e,"is-link":!0,readonly:!0,disabled:this.disabled,label:ibiz.i18n.t("control.searchBar.property"),onClick:this.openPopup},null),Oe(De("van-popup"),{round:!0,teleport:"body",position:"bottom",show:this.showPicker,"onUpdate:show":e=>this.showPicker=e},{default:()=>[Oe(De("van-picker"),{columns:this.items,onCancel:()=>{this.showPicker=!1},onConfirm:this.onChange},null)]})])}}),tv=e("af",k(Wf,function(e){e.component(Wf.name,Wf),e.component(Xf.name,Xf),e.component(Zf.name,Zf),e.component(ev.name,ev),Bn(Un.SEARCHBAR,()=>new Qf)}));var nv=Object.defineProperty,av=(e,t,n)=>(((e,t,n)=>{t in e?nv(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n),n);class iv extends oa{constructor(){super(...arguments),av(this,"counter"),av(this,"router")}setActive(e){this.state.activeName=e,this.handleTabChange()}get navPos(){var e;return null==(e=this.view.layoutPanel)?void 0:e.panelItems.nav_pos}get form(){var e;return null==(e=this.view)?void 0:e.getController("form")}get routeDepth(){return this.view.modal.routeDepth}setRouter(e){this.router=e}getData(){var e;return(null==(e=this.form)?void 0:e.getData())||[{}]}initState(){super.initState(),this.state.drTabPages=[],this.state.hideEditItem=!!this.model.hideEditItem}async onCreated(){await super.onCreated(),await this.initCounter()}async initCounter(){if(this.state.isCounterDisabled)return;const{appCounterRefs:e}=this.model,t=null==e?void 0:e[0];t&&(this.counter=await pa.getCounterByRef(t,this.context,{...this.params}),this.calcItemStateByCounter=this.calcItemStateByCounter.bind(this),this.counter.onChange(this.calcItemStateByCounter))}async onMounted(){await super.onMounted(),this.form&&(this.form.evt.on("onLoadSuccess",async e=>{const t=e.data[0];this.view.state.srfactiveviewdata=t,Object.prototype.hasOwnProperty.call(t,"srfreadonly")&&(this.view.context.srfreadonly=t.srfreadonly),await this.calcDrTabPagesState(),this.handleFormChange(),this.doDefaultSelect()}),this.form.evt.on("onLoadDraftSuccess",()=>{this.handleFormChange()}),this.form.evt.on("onSaveSuccess",()=>{this.handleFormChange()})),this.initDRTabPages(),this.form||await this.calcDrTabPagesState(),this.form&&this.form.state.isLoaded&&this.doDefaultSelect()}getActiveItem(){var e;return null==(e=this.model.dedrtabPages)?void 0:e.find(e=>e.id===this.state.activeName)}refresh(){const e=this.getActiveItem();e&&(this.setVisible("navPos"),this.openNavPosView(e,false,{key:"".concat(e.id,"-").concat(xi())}))}doDefaultSelect(){var e;const t=null==(e=this.view.layoutPanel)?void 0:e.panelItems.view_form;t&&(t.state.visible=!1,t.state.keepAlive=!1),this.state.hideEditItem||this.state.activeName!==this.model.uniqueTag||this.setVisible("form")}async calcPermitted(e){var t;let n=!0;const a=(null==(t=this.getData())?void 0:t.length)?this.getData()[0]:void 0,i=await fa(e,this.context,this.params,this.model.appDataEntityId,this.model.appId,a);void 0!==i&&(n=i),e.hidden=!n}async calcDrTabPagesState(){await Promise.all(this.state.drTabPages.map(async e=>{await this.calcPermitted(e)})),this.calcItemStateByCounter(),this.state.isCalculatedPermission=!0}handleFormChange(){const e=this.getData()[0].srfuf!==va.UPDATE;this.setDRTabPagesState(this.state.drTabPages,e)}setDRTabPagesState(e,t){e.forEach(e=>{e.tag!==this.model.uniqueTag&&(e.disabled=t)})}initDRTabPages(){const{editItemCaption:e,editItemCapLanguageRes:t,editItemSysImage:n,uniqueTag:a,dedrtabPages:i}=this.model,o=[];let r=e;t&&(r=ibiz.i18n.t(t.lanResTag,e)),this.state.hideEditItem||o.push({tag:a,caption:r,hidden:!!this.state.hideEditItem,disabled:!1,sysImage:n,fullPath:this.routeDepth?v(this.router.currentRoute.value,this.routeDepth):""}),null==i||i.forEach(e=>{let t=e.caption;e.capLanguageRes&&(t=ibiz.i18n.t(e.capLanguageRes.lanResTag,e.caption));const{enableMode:n,dataAccessAction:a,testAppDELogicId:i,testScriptCode:r,counterMode:s}=e;o.push({tag:e.id,caption:t,sysImage:e.sysImage,hidden:!1,disabled:!1,counterId:e.counterId,dataAccessAction:a,enableMode:n,testAppDELogicId:i,testScriptCode:r,counterMode:s})}),this.state.drTabPages=o,this.state.defaultName=o[0].tag,this.view.state.srfnav?this.state.activeName=this.view.state.srfnav:this.state.activeName=o[0].tag;const s=!!this.routeDepth&&ma(this.routeDepth);this.handleTabChange(s)}handleTabChange(e=!1){var t;const{activeName:n}=this.state,a=null==(t=this.model.dedrtabPages)?void 0:t.find(e=>e.id===n);a?(this.setVisible("navPos"),this.openNavPosView(a,e),this.evt.emit("onTabChange",{tab:a})):(this.setVisible("form"),this.routeDepth&&this.state.drTabPages[0]&&this.router.replace(this.state.drTabPages[0].fullPath))}setVisible(e){var t;if(this.state.hideEditItem)return;const n=null==(t=this.view.layoutPanel)?void 0:t.panelItems.view_form;"form"===e?(n&&(n.state.visible=!0,n.state.keepAlive=!0),this.navPos&&(this.navPos.state.visible=!1,this.navPos.state.keepAlive=!0)):(n&&(n.state.visible=!1,n.state.keepAlive=!0),this.navPos&&(this.navPos.state.visible=!0,this.navPos.state.keepAlive=!0))}prepareParams(e){const{navigateContexts:t,navigateParams:n}=e,a={navContexts:t,navParams:n},i={context:this.context,params:this.params,data:this.getData()[0]},{resultContext:o,resultParams:r}=ga(a,i);return{context:Object.assign(this.context.clone(),o,{currentSrfNav:e.id}),params:{...this.params,...r}}}async openNavPosView(e,t=!1,n={}){var a;const{context:i,params:o}=this.prepareParams(e);null==(a=this.navPos)||a.openView({key:e.id,context:i,params:o,viewId:e.appViewId,isRoutePushed:t,modalOptions:{replace:!0},...n})}getItemVisibleState(e){let t,n=!0;return this.state.drTabPages.forEach(a=>{t||a.hidden||(t=a),a.tag===e&&(n=!a.hidden)}),{visible:n,defaultVisibleItem:t}}calcItemStateByCounter(){if(this.state.drTabPages.forEach(e=>{const t=ba(e,this.counter);void 0!==t&&(e.hidden=!t)}),this.state.activeName){const{visible:e,defaultVisibleItem:t}=this.getItemVisibleState(this.state.activeName);!e&&t&&(this.state.activeName=t.tag,this.handleTabChange())}}async onDestroyed(){await super.onDestroyed(),this.counter&&(this.counter.offChange(this.calcItemStateByCounter),this.counter.destroy())}}e("aj",iv);const ov=xe({name:"IBizDrTabControl",props:{modelData:{type:Object,required:!0},context:{type:Object,required:!0},params:{type:Object,default:()=>({})},provider:{type:Object},hideEditItem:{type:Boolean,default:void 0}},setup(){var e;const t=A((...e)=>new iv(...e)),a=n("control-".concat(t.model.controlType.toLowerCase())),i=Ii();t.setRouter(i);const o=je({}),r=je(!1),s=(null==(e=t.view.model.tabLayout)?void 0:e.toLowerCase())||"top",l=e=>{o.value=e};t.evt.on("onCreated",()=>{t.counter&&t.counter.onChange(l,!0)});const c=qe(()=>t.state.drTabPages.map(e=>({id:e.tag,text:e.caption,icon:e.sysImage,counter:e.counterId?o.value[e.counterId]:null,isHidden:e.hidden})));return{c:t,ns:a,tabPages:c,layoutMode:s,onTabChange:e=>{t.state.activeName=e,r.value=!1,t.handleTabChange()}}},render(){const{isCreated:e,activeName:t,isCalculatedPermission:n}=this.c.state;return Oe(De("iBizControlBase"),{controller:this.c,class:[this.ns.b(),this.ns.m(this.layoutMode)]},{default:()=>[e&&n&&Oe(De("iBizTabLayout"),{tabPages:this.tabPages,layoutMode:this.layoutMode,activeName:t,onTabChange:this.onTabChange},null)]})}});var rv=Object.defineProperty,sv=(e,t,n)=>(((e,t,n)=>{t in e?rv(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,t+"",n),n);class lv{constructor(){sv(this,"component","IBizDrTabControl")}}e("ai",lv);const cv=e("ah",k(ov,function(e){e.component(ov.name,ov),Bn(Un.DRTAB,()=>new lv)}));var uv=Object.defineProperty,dv=(e,t,n)=>(((e,t,n)=>{t in e?uv(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,t+"",n),n);class hv{constructor(){dv(this,"component","IBizTreeControl")}}e("al",hv);const pv=e("ak",{install:e=>{e.component("IBizTreeControl",ct({loader:()=>t.import("./tree-CeHNT0xx.js"),loadingComponent:M,delay:0})),Bn(Un.TREEVIEW,()=>new hv)}});function fv(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!Ve(e)}const vv=xe({name:"IBizDataViewControl",props:{modelData:{type:Object,required:!0},context:{type:Object,required:!0},params:{type:Object,default:()=>({})},provider:{type:Object},singleSelect:{type:Boolean,default:!0},loadDefault:{type:Boolean,default:!0},isSimple:{type:Boolean,required:!1},data:{type:Array,required:!1}},setup(e,{slots:t}){const a=A((...e)=>new ya(...e)),i=n("control-".concat(a.model.controlType.toLowerCase())),{enableLoadMore:o,renderNoData:r,renderAddItem:s,renderScrollList:l,renderGroup:c}=Zr(e,a,i,t),{onPageChange:u}=ho(a),d=(e,n)=>{const{context:i,params:o}=a;return Oe(De("iBizControlShell"),{data:e,modelData:n,context:i,params:o},fv(t)?t:{default:()=>[t]})},h=e=>Oe(De("iBizActionToolbar"),{class:i.bem("item-content","bottom","actions"),"action-details":a.getOptItemModel(),"actions-state":a.state.uaState[e.srfkey],onActionClick:(t,n)=>a.onActionClick(t,e,n)},null),p=e=>t.default?Ke(t,"default",{item:e,controller:a}):Oe(De("van-card"),{title:e.srfmajortext,desc:e.content},{footer:()=>(e=>Oe("div",{class:i.b("item-content")},[a.getOptItemModel()?Oe("div",{class:i.be("item-content","bottom")},[h(e)]):null]))(e)}),f=t=>{var n;const o=a.model,r=a.state.selectedData.findIndex(e=>e.srfkey===t.srfkey),s=e.modelData.itemLayoutPanel,l=(null==(n=o.itemSysCss)?void 0:n.cssName)||"",c=[i.b("item"),i.is("active",-1!==r),l],u={};return o.cardWidth&&Object.assign(u,{width:"".concat(o.cardWidth,"px")}),o.cardHeight&&Object.assign(u,{height:"".concat(o.cardHeight,"px")}),Object.assign(u,i.cssVarBlock({"color-bg":"".concat(t.bgcolor||""),"color-text":"".concat(t.fontcolor||""),"color-item-active":"".concat(t.activecolor||"")})),Oe("div",{class:c,style:u,onClick:()=>a.onRowClick(t)},[s?d(t,s):p(t)])},v=e=>{const{cardColMD:t}=a.model;if(t){let n;return Oe(De("van-row"),{class:[i.e("row")]},fv(n=e.map(e=>{let n;return Oe(De("van-col"),{span:t,class:[i.e("item-col")]},fv(n=f(e))?n:{default:()=>[n]})}))?n:{default:()=>[n]})}return[...e.map(e=>f(e))]},m=()=>Oe("div",{class:i.b("skeleton-item")},[Oe(De("van-skeleton"),{animated:!0,row:3},null)]);return{c:a,ns:i,enableLoadMore:o,onPageChange:u,renderNoData:r,renderMDContent:()=>{const e=a.enableGroup?c({children:v}):(()=>{const e=[];return e.push(v(a.state.items)),a.enableNew&&e.push(s()),e})();return l(e)},renderSkeleton:()=>{if(a.state.enableGroup&&!a.state.isSimple)return Oe("div",{class:i.b("skeleton")},[Array.from({length:3},()=>Oe("div",{class:i.b("skeleton-group")},[Oe("div",{class:i.be("skeleton-group","header")},[Oe(De("van-skeleton"),{title:!0,animated:!0,rows:1,"title-width":"20%"},null)]),Oe("div",{class:[i.be("skeleton","content"),i.be("skeleton-group","content")]},[Array.from({length:3},()=>m())])]))]);const e=a.state.size||6;return Oe("div",{class:i.b("skeleton")},[Oe("div",{class:i.be("skeleton","content")},[Array.from({length:Math.min(e,20)},()=>m())])])}}},render(){if(!this.c.state.isLoaded)return this.renderSkeleton();const e=this.c.state.enablePagingBar&&1===this.c.model.pagingMode;return Oe(De("iBizControlBase"),{class:[this.ns.is("scroll",e),this.ns.is("enable-pagination",e),this.ns.is("enable-group",this.c.enableGroup)],controller:this.c},{default:()=>[Oe("div",{class:this.ns.e("content-container")},[this.c.state.isCreated&&(this.c.state.items.length>0?this.renderMDContent():this.renderNoData())]),e?Oe(De("van-pagination"),{class:this.ns.e("pagination"),"total-items":this.c.state.total,"model-value":this.c.state.curPage,"items-per-page":this.c.state.size,"page-count":this.c.state.totalPages,"force-ellipses":!0,onChange:this.onPageChange},null):null]})}});var mv=Object.defineProperty,gv=(e,t,n)=>(((e,t,n)=>{t in e?mv(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,t+"",n),n);class bv{constructor(){gv(this,"component","IBizDataViewControl")}}e("an",bv);const yv=e("am",k(vv,function(e){e.component(vv.name,vv),Bn(Un.DATAVIEW,()=>new bv)})),wv=xe({name:"IBizCustomDashboardDesign",props:{controller:{type:Object,required:!0},modal:{type:Object,required:!0}},setup(e){const t=n("custom-dashboard-design"),a=e.controller.getMobCustomDashboard(),i=Object.values(e.controller.portlets).filter(e=>!a.ignoreType.includes(e.model.portletType)),o=je(i.map(e=>{const t=e.model.id,n=!Array.isArray(a.portlets)||a.portlets.includes(t);return{id:t,title:e.model.title,visible:n}})),r=()=>{e.modal.dismiss()};return{ns:t,items:o,handleClose:r,handleSave:async()=>{await a.save(o.value.filter(e=>e.visible).map(e=>e.id)),r()},handleItemClick:e=>{e.visible=!e.visible}}},render(){return Oe("div",{class:this.ns.b()},[Oe("div",{class:this.ns.b("header")},[Oe("ion-icon",{class:this.ns.be("header","close-btn"),name:"close-outline",onClick:this.handleClose},null),Oe("div",{class:this.ns.be("header","title")},[ibiz.i18n.t("control.dashboard.customLayout")]),Oe("div",{class:this.ns.be("header","save-btn"),onClick:this.handleSave},[ibiz.i18n.t("control.dashboard.save")])]),Oe("div",{class:this.ns.b("content")},[this.items.map(e=>{let t=e.visible;return Oe("div",{class:this.ns.b("item"),onClick:()=>this.handleItemClick(e)},[Oe(De("iBizIcon"),{class:this.ns.be("item","icon"),icon:{cssClass:"fa fa-th-large"}},null),Oe("div",{class:this.ns.be("item","text")},[e.title||e.id]),Oe(De("van-checkbox"),{class:this.ns.be("item","checkbox"),modelValue:t,"onUpdate:modelValue":e=>t=e},null)])}),0===this.items.length?Oe(De("iBizNoData"),null,null):null])])}});function _v(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!Ve(e)}function Ev(e,t,n){const a=t.providers[e.id],i=t.portlets[e.id],o={modelData:e,controller:i};if(!i.state.visible)return null;if(!a)return Oe("div",null,[ibiz.i18n.t("app.noSupport"),e.portletType]);const r=De(a.component);if("CONTAINER"===e.portletType){const n=e;return ze(r,{...o,key:e.id},{default:()=>{var e;return null==(e=n.controls)?void 0:e.map(e=>Ev(e,t))}})}return ze(r,{...o,key:e.id})}const Pv=xe({name:"IBizDashboardControl",props:{modelData:{type:Object,required:!0},context:{type:Object,required:!0},params:{type:Object,default:()=>({})},provider:{type:Object}},setup(){const e=A((...e)=>new wa(...e)),t=n("control-".concat(e.model.controlType.toLowerCase()));e.evt.on("onInitPortlets",()=>{Object.values(e.portlets).forEach(e=>{ut(e.state)||(e.state=Le(e.state))})});const a=je(!1),i=je(!!e.model.enableCustomized);(async()=>{try{if(e.model.enableCustomized){const t=new _a(e.model,e);e.setMobCustomDashboard(t),await t.load()}}finally{a.value=!0}})();return{c:e,ns:t,initialized:a,isShowFloatingButton:i,handleFloatingButtonClick:async()=>{await ibiz.overlay.drawer(t=>ze(wv,{modal:t,controller:e}),{},{width:100,height:80,attrs:{position:"bottom",closeable:!1}})}}},render(){var e;const{state:t,model:n}=this.c;let a=Oe(De("iBizRow"),{class:[this.ns.b("row")],layout:n.layout},{default:()=>{var e;return[null==(e=n.controls)?void 0:e.map(e=>{let t;return Oe(De("iBizCol"),{layoutPos:e.layoutPos,state:this.c.portlets[e.id].state},_v(t=Ev(e,this.c))?t:{default:()=>[t]})})]}});if(n.showDashboardNavBar){const t=this.c.enableAnchorCtrls.filter(e=>this.c.portlets[e.id].state.visible).map(e=>e.title||e.id),i=function(){return a}();a=Oe(De("van-index-bar"),{"index-list":t,sticky:!1,class:[this.ns.e("nav-bar"),this.ns.em("nav-bar",(null==(e=n.navBarPos)?void 0:e.toLowerCase())||"middleright")]},_v(a)?a:{default:()=>[i]})}return Oe(De("iBizControlBase"),{controller:this.c,class:[this.ns.b()]},{default:()=>[t.isCreated&&this.initialized&&a,t.isCreated&&this.initialized&&this.isShowFloatingButton&&Oe(De("iBizFloatButton"),{onClick:this.handleFloatingButtonClick},null)]})}});var Nv=Object.defineProperty,Iv=(e,t,n)=>(((e,t,n)=>{t in e?Nv(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,t+"",n),n);class Av{constructor(){Iv(this,"component","IBizDashboardControl")}}function kv(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!Ve(e)}e("ap",Av);const Cv=e("as",xe({name:"IBizContainerPortlet",props:{modelData:{type:Object,required:!0},controller:{type:Ea,required:!0}},setup(e){var t;return{ns:n("portlet-".concat(null==(t=e.modelData.portletType)?void 0:t.toLowerCase()))}},render(){var e,t;let n;const a=(null==(t=(e=this.$slots).default)?void 0:t.call(e))||[],i=Oe(De("iBizRow"),{layout:this.modelData.layout},kv(n=a.map(e=>{const t=e.props;return t&&t.controller?Oe(De("iBizCol"),{layoutPos:t.modelData.layoutPos,state:t.controller.state},kv(e)?e:{default:()=>[e]}):e}))?n:{default:()=>[n]}),o=[this.ns.b(),this.ns.m(this.modelData.codeName)];return Oe(De("iBizPortletLayout"),{controller:this.controller,class:o},kv(i)?i:{default:()=>[i]})}}));var Sv=Object.defineProperty,Mv=(e,t,n)=>(((e,t,n)=>{t in e?Sv(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,t+"",n),n);class xv{constructor(){Mv(this,"component","IBizContainerPortlet")}async createController(e,t,n){const a=new Ea(e,t,n);return await a.init(),a}}e("ar",xv);const Ov=e("aq",k(Cv,function(e){e.component(Cv.name,Cv),Pa("CONTAINER",()=>new xv)}));const Dv=e("at",xe({name:"IBizPortletLayout",props:{controller:{type:Na,required:!0}},setup(e){const t=n("portlet-layout"),a=e.controller,i=qe(()=>"RAWITEM"!==a.model.portletType&&(a.model.showTitleBar&&(a.model.title||a.model.sysImage)||a.model.uiactionGroup)),o=a.dashboard.model.controlRenders,r=null==o?void 0:o.find(e=>"dashboard_".concat(e.id)==="".concat(a.model.name,"_mob_header")),s=null==o?void 0:o.find(e=>"dashboard_".concat(e.id)==="".concat(a.model.name,"_mob_header_caption")),l=null==o?void 0:o.find(e=>"dashboard_".concat(e.id)==="".concat(a.model.name,"_mob_header_bg")),c=null==o?void 0:o.find(e=>"dashboard_".concat(e.id)==="".concat(a.model.name,"_mob_header_action"));return{ns:t,isShowHeader:i,header:r,headerCaption:s,headerBg:l,headerAction:c,renderContent:e=>{if("LAYOUTPANEL_MODEL"===e.renderType&&e.layoutPanelModel){const n=En.execScriptFn({params:a.params,context:a.context},e.layoutPanelModel,{isAsync:!1});return Oe("div",{class:t.b("header-render"),innerHTML:n},null)}if("LAYOUTPANEL"===e.renderType&&e.layoutPanel)return Oe(De("iBizControlShell"),{class:t.b("header-render"),params:a.params,context:a.context,modelData:e.layoutPanel},null)},onActionClick:async(t,n)=>{await e.controller.onActionClick(t,n)}}},render(){var e,t;const{model:n,state:a}=this.$props.controller,i=!!(this.header||this.headerCaption||this.headerBg||this.headerAction);let o=null;if(this.isShowHeader&&(o=this.header?Oe("div",{key:"header",class:[this.ns.b("header"),this.ns.is("custom",i)]},[this.renderContent(this.header)]):Oe("div",{key:"header",class:[this.ns.b("header"),this.ns.is("custom",i)]},[this.headerBg&&Oe("div",{class:this.ns.be("header","bg")},[this.renderContent(this.headerBg)]),Oe("div",{class:this.ns.be("header","left")},[n.showTitleBar&&(this.headerCaption?this.renderContent(this.headerCaption):Oe("div",{class:this.ns.e("caption")},[Oe(De("iBizIcon"),{class:this.ns.e("caption-icon"),icon:n.sysImage},null),Oe("div",{class:this.ns.e("caption-text"),title:n.title},[n.title])]))]),Oe("div",{class:this.ns.be("header","right")},["ACTIONBAR"===this.controller.model.portletType?null:this.headerAction?this.renderContent(this.headerAction):n.uiactionGroup&&Oe(De("iBizActionToolbar"),{class:this.ns.e("toolbar"),"action-details":n.uiactionGroup.uiactionGroupDetails,"actions-state":a.actionGroupState,onActionClick:this.onActionClick},null)])])),n.enableAnchor&&this.controller.dashboard.model.showDashboardNavBar){const e=function(){return o}();o=Oe(De("van-index-anchor"),{index:n.title||n.id},function(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!Ve(e)}(o)?o:{default:()=>[e]})}return Oe("div",{class:[this.ns.b(),this.ns.is("no-header",!this.isShowHeader)]},[o,Oe("div",{key:"content",class:this.ns.b("content")},[null==(t=(e=this.$slots).default)?void 0:t.call(e)])])}})),Tv=e("aw",xe({name:"IBizMenuPortlet",props:{modelData:{type:Object,required:!0},controller:{type:Ia,required:!0}},setup(e){var t,a;return{ns:n("portlet-".concat(null==(t=e.modelData.portletType)?void 0:t.toLowerCase())),menu:null==(a=e.modelData.controls)?void 0:a.find(e=>"APPMENU"===e.controlType)}},render(){const e=[this.ns.b(),this.ns.m(this.modelData.codeName)],{context:t}=this.controller;return Oe(De("iBizPortletLayout"),{controller:this.controller,class:e},{default:()=>[this.menu&&Oe(De("iBizControlShell"),{modelData:this.menu,context:t,params:{}},null)]})}}));var jv=Object.defineProperty,Lv=(e,t,n)=>(((e,t,n)=>{t in e?jv(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,t+"",n),n);class Vv{constructor(){Lv(this,"component","IBizMenuPortlet")}async createController(e,t,n){const a=new Ia(e,t,n);return await a.init(),a}}e("av",Vv);const Bv=e("au",k(Tv,function(e){e.component(Tv.name,Tv),Pa("APPMENU",()=>new Vv)}));const Uv=e("ay",xe({name:"IBizViewPortlet",props:{modelData:{type:Object,required:!0},controller:{type:Aa,required:!0}},setup(e){var t;return{ns:n("portlet-".concat(null==(t=e.modelData.portletType)?void 0:t.toLowerCase())),view:e.modelData.portletAppView}},render(){let e;const t=[this.ns.b(),this.ns.m(this.modelData.codeName),...this.controller.containerClass],{context:n,params:a}=this.controller;return Oe(De("iBizPortletLayout"),{controller:this.controller,class:t},function(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!Ve(e)}(e=ze(De("IBizViewShell"),{context:n,params:a,modelData:this.view}))?e:{default:()=>[e]})}}));var zv=Object.defineProperty,Rv=(e,t,n)=>(((e,t,n)=>{t in e?zv(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,t+"",n),n);class Fv{constructor(){Rv(this,"component","IBizViewPortlet")}async createController(e,t,n){const a=new Aa(e,t,n);return await a.init(),a}}const $v=e("ax",k(Uv,function(e){e.component(Uv.name,Uv),Pa("VIEW",()=>new Fv)}));const qv=e("aA",xe({name:"IBizListPortlet",props:{modelData:{type:Object,required:!0},controller:{type:ka,required:!0}},setup(e){var t,a;const i=n("portlet-".concat(null==(t=e.modelData.portletType)?void 0:t.toLowerCase())),o=null==(a=e.modelData.controls)?void 0:a.find(e=>e.controlType===Un.LIST);let r;return Be(()=>{const t=e.controller.model.timer;t&&t>0&&(r=setInterval(()=>{e.controller.refresh()},t))}),Fe(()=>{clearInterval(r)}),{ns:i,list:o}},render(){let e;const t=[this.ns.b(),this.ns.m(this.modelData.codeName),...this.controller.containerClass],{context:n,params:a}=this.controller;return Oe(De("iBizPortletLayout"),{controller:this.controller,class:t},function(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!Ve(e)}(e=ze(De("IBizControlShell"),{context:n,params:a,modelData:this.list}))?e:{default:()=>[e]})}}));var Wv=Object.defineProperty,Hv=(e,t,n)=>(((e,t,n)=>{t in e?Wv(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,t+"",n),n);class Gv{constructor(){Hv(this,"component","IBizListPortlet")}async createController(e,t,n){const a=new ka(e,t,n);return await a.init(),a}}const Yv=e("az",k(qv,function(e){e.component(qv.name,qv),Pa("LIST",()=>new Gv)}));const Xv=e("aC",xe({name:"IBizRawItemPortlet",props:{modelData:{type:Object,required:!0},controller:{type:Ca,required:!0}},setup(e){var t;return{ns:n("portlet-".concat(null==(t=e.modelData.portletType)?void 0:t.toLowerCase())),rawItem:e.modelData}},render(){let e;const t=[this.ns.b(),this.ns.m(this.modelData.codeName),...this.controller.containerClass];return Oe(De("iBizPortletLayout"),{controller:this.controller,class:t},function(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!Ve(e)}(e=ze(De("iBizRawItem"),{rawItem:this.rawItem}))?e:{default:()=>[e]})}}));var Jv=Object.defineProperty,Kv=(e,t,n)=>(((e,t,n)=>{t in e?Jv(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,t+"",n),n);class Qv{constructor(){Kv(this,"component","IBizRawItemPortlet")}async createController(e,t,n){const a=new Ca(e,t,n);return await a.init(),a}}const Zv=e("aB",k(Xv,function(e){e.component(Xv.name,Xv),Pa("RAWITEM",()=>new Qv)}));const em=e("aE",xe({name:"IBizChartPortlet",props:{modelData:{type:Object,required:!0},controller:{type:Sa,required:!0}},setup(e){var t,a;const i=n("portlet-".concat(null==(t=e.modelData.portletType)?void 0:t.toLowerCase())),o=null==(a=e.modelData.controls)?void 0:a.find(e=>e.controlType===Un.CHART);let r;return Be(()=>{const t=e.controller.model.timer;t&&t>0&&(r=setInterval(()=>{e.controller.refresh()},t))}),Fe(()=>{clearInterval(r)}),{ns:i,chart:o}},render(){let e;const t=[this.ns.b(),this.ns.m(this.modelData.codeName),...this.controller.containerClass],{context:n,params:a}=this.controller;return Oe(De("iBizPortletLayout"),{controller:this.controller,class:t},function(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!Ve(e)}(e=ze(De("IBizControlShell"),{context:n,params:a,modelData:this.chart}))?e:{default:()=>[e]})}}));var tm=Object.defineProperty,nm=(e,t,n)=>(((e,t,n)=>{t in e?tm(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,t+"",n),n);class am{constructor(){nm(this,"component","IBizChartPortlet")}async createController(e,t,n){const a=new Sa(e,t,n);return await a.init(),a}}const im=e("aD",k(em,function(e){e.component(em.name,em),Pa("CHART",()=>new am)})),om=e("aG",xe({name:"IBizHtmlPortlet",props:{modelData:{type:Object,required:!0},controller:{type:Ma,required:!0}},setup(e){var t;return{ns:n("portlet-".concat(null==(t=e.modelData.portletType)?void 0:t.toLowerCase()))}},render(){const e=[this.ns.b(),this.ns.m(this.modelData.codeName),...this.controller.containerClass];return Oe(De("iBizPortletLayout"),{controller:this.controller,class:e},{default:()=>[Oe("iframe",{src:this.modelData.pageUrl},null)]})}}));var rm=Object.defineProperty,sm=(e,t,n)=>(((e,t,n)=>{t in e?rm(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,t+"",n),n);class lm{constructor(){sm(this,"component","IBizHtmlPortlet")}async createController(e,t,n){const a=new Ma(e,t,n);return await a.init(),a}}const cm=e("aF",k(om,function(e){e.component(om.name,om),Pa("HTML",()=>new lm)})),um=e("aI",xe({name:"IBizActionBarPortlet",props:{modelData:{type:Object,required:!0},controller:{type:xa,required:!0}},setup(e){var t;return{ns:n("portlet-".concat(null==(t=e.modelData.portletType)?void 0:t.toLowerCase())),zIndex:e.controller.dashboard.state.zIndex,onActionClick:async(t,n)=>{await e.controller.onActionClick(t,n)}}},render(){const e=[this.ns.b(),this.ns.m(this.modelData.codeName),...this.controller.containerClass];return Oe(De("iBizPortletLayout"),{controller:this.controller,class:e},{default:()=>[this.modelData.uiactionGroup&&Oe(De("iBizActionToolbar"),{zIndex:this.zIndex,"action-details":this.modelData.uiactionGroup.uiactionGroupDetails,"actions-state":this.controller.state.actionGroupState,onActionClick:this.onActionClick},null)]})}}));var dm=Object.defineProperty,hm=(e,t,n)=>(((e,t,n)=>{t in e?dm(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,t+"",n),n);class pm{constructor(){hm(this,"component","IBizActionBarPortlet")}async createController(e,t,n){const a=new xa(e,t,n);return await a.init(),a}}const fm=e("aH",k(um,function(e){e.component(um.name,um),Pa("ACTIONBAR",()=>new pm)})),vm=e("ao",k(Pv,function(e){e.component(Pv.name,Pv),Bn(Un.DASHBOARD,()=>new Av),e.component(Dv.name,Dv),e.use(Ov),e.use(Bv),e.use(Yv),e.use($v),e.use(Zv),e.use(im),e.use(cm),e.use(fm)}));var mm=Object.defineProperty,gm=(e,t,n)=>(((e,t,n)=>{t in e?mm(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,t+"",n),n);class bm{constructor(){gm(this,"component","IBizChartControl")}}const ym=e("aJ",{install(e){e.component("IBizChartControl",ct({loader:()=>t.import("./chart-C7WiJ2Xo.js"),loadingComponent:M,delay:0})),Bn(Un.CHART,()=>new bm)}});var wm={exports:{}};!function(e){e.exports=function(e,t,n){t.prototype.isBetween=function(e,t,a,i){var o=n(e),r=n(t),s="("===(i=i||"()")[0],l=")"===i[1];return(s?this.isAfter(o,a):!this.isBefore(o,a))&&(l?this.isBefore(r,a):!this.isAfter(r,a))||(s?this.isBefore(o,a):!this.isAfter(o,a))&&(l?this.isAfter(r,a):!this.isBefore(r,a))}}}(wm);var _m=_o(wm.exports);const Em={type:Boolean,default:!0},Pm=()=>({type:Array,default:()=>[]}),Nm=e=>({type:Number,default:e}),Im=e=>({type:String,default:e}),Am=e=>({type:Date,validator:Qm,default:e});var km={CN:{CONFIRM:"确定",TODAY:"今天",WEEK:["日","一","二","三","四","五","六"],MONTH:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],DEFAULT_DATE_FORMAT:"YY年MM月DD日",DEFAULT_YEAR_MONTH_FORMAT:"YY年MM月",DEFAULT_TIME_FORMAT:"hh:mm"},EN:{CONFIRM:"CONFIRM",TODAY:"TODAY",WEEK:["SUN","MON","TUE","WED","THU","FRI","SAT"],MONTH:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sept","Oct","Nov","Dec"],DEFAULT_DATE_FORMAT:"MM DD,YY",DEFAULT_YEAR_MONTH_FORMAT:"DD,YY",DEFAULT_TIME_FORMAT:"at hh:mm F"}},Cm=Object.defineProperty,Sm=Object.defineProperties,Mm=Object.getOwnPropertyDescriptors,xm=Object.getOwnPropertySymbols,Om=Object.prototype.hasOwnProperty,Dm=Object.prototype.propertyIsEnumerable,Tm=(e,t,n)=>t in e?Cm(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,jm=(e,t)=>{for(var n in t||(t={}))Om.call(t,n)&&Tm(e,n,t[n]);if(xm)for(var n of xm(t))Dm.call(t,n)&&Tm(e,n,t[n]);return e},Lm=(e,t)=>Sm(e,Mm(t));const Vm=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"CN";const a=km[n]||{};t=t||"".concat(a.DEFAULT_DATE_FORMAT," ").concat(a.DEFAULT_TIME_FORMAT);const i=e?new Date(e):new Date,o=i.getFullYear(),r=i.getMonth()+1,s=i.getDate(),l=i.getHours(),c=i.getMinutes(),u=i.getSeconds(),d=Array.apply(null,Array(10)).map((e,t)=>"0"+t);return t.replace(/YY/g,o+"").replace(/F/g,l>=12?"pm":"am").replace(/ss/g,d[u]||u+"").replace(/mm/g,d[c]||c+"").replace(/hh/g,l>12&&t.includes("F")?l-12+"":t.includes("F")?l+"":d[l]||l+"").replace(/DD/g,d[s]||s+"").replace(/MM/g,"EN"===n?a.MONTH[r-1]:d[r]||r+"")},Bm=e=>e>9?e:"0"+e,Um=e=>[31,28+Zm(e),31,30,31,30,31,31,30,31,30,31];function zm(e,t,n){return t.reduce((t,n)=>(t[n]=e[n],t),{})}const Rm=e=>e?{year:e.getFullYear(),month:e.getMonth(),day:e.getDate()}:e,Fm=e=>e?{year:e.getFullYear(),month:e.getMonth(),day:e.getDate(),hours:e.getHours(),minutes:e.getMinutes()}:e,$m=e=>{const{year:t,month:n,day:a}=e;return new Date(t,n,a,0,0,0,0)},qm=e=>{const{year:t,month:n,day:a,minutes:i,hours:o}=e;return new Date($m({year:t,month:n,day:a}).setHours(o,i,0,0))},Wm=e=>e&&new Date(e.setHours(0,0,0,0)).getTime()-864e5,Hm=e=>e&&new Date(e.setHours(0,0,0,0)).getTime()+864e5;function Gm(e,t){const n=function(e,t){const n=e.year,a=t.year;if(n===a){const n=e.month,a=t.month;return n===a?0:n>a?1:-1}return n>a?1:-1}(e,t);if(0===n){const n=e.day,a=t.day;return n===a?0:n>a?1:-1}return n}function Ym(e,t){const n=(e=>new Date(e))(e);return n.setDate(n.getDate()+t),n}const Xm=e=>{if(!e)return e;return Ym($m(e),1)};function Jm(e){const[t,n]=e.map(e=>$m(e)),a=function(e){const t=e[0].getTime();return(e[1].getTime()-t)/864e5+1}([t,n]);if(a>2){let t=Lm(jm({},e[0]),{type:"start"});const n=[];for(;-1===Gm(t,e[1]);)n.push(t),t=Lm(jm({},Rm(Xm(t))),{type:"middle"});return[...n,Lm(jm({},e[1]),{type:"end"})]}return e}const Km=(e,t,n)=>{const a=Wm(t),i=Hm(n),o=new Date(e.setHours(0,0,0,0)).getTime();return a&&i?o>a&&o<i:a?o>a:!i||o<i},Qm=e=>"[object Date]"===Object.prototype.toString.call(e)&&!Number.isNaN(e.getTime()),Zm=e=>e%4==0&&(e%100!=0||e%400==0)?1:0;function eg(e){const t=et();t&&Object.assign(t.proxy,e)}const tg=e=>{let t;Be(()=>{e(),it(()=>{t=!0})}),st(()=>{t&&e()})},ng=(e,t)=>({top:0,left:0,right:e,bottom:t,width:e,height:t}),ag=e=>{const t=dt(e);if(t===window){const e=t.innerWidth,n=t.innerHeight;return ng(e,n)}return(null==t?void 0:t.getBoundingClientRect)?t.getBoundingClientRect():ng(0,0)};var ig=Object.defineProperty,og=Object.defineProperties,rg=Object.getOwnPropertyDescriptors,sg=Object.getOwnPropertySymbols,lg=Object.prototype.hasOwnProperty,cg=Object.prototype.propertyIsEnumerable,ug=(e,t,n)=>t in e?ig(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,dg=(e,t)=>{for(var n in t||(t={}))lg.call(t,n)&&ug(e,n,t[n]);if(sg)for(var n of sg(t))cg.call(t,n)&&ug(e,n,t[n]);return e},hg=(e,t)=>og(e,rg(t));const pg={showWeekView:Boolean,show:Boolean,disabledWeekView:Boolean,selectType:Im("single"),allowSameDay:Boolean,defaultDate:[Date,Array],defaultYearMonth:{type:Object,default:{}},minDate:Am(null),maxDate:Am(null),maxRange:Nm(0),markType:Im("dot"),markDate:Pm(),disabledDate:{type:Function,default:()=>!1},lang:Im("CN"),scrollChangeDate:Em,weekStart:Im("Sunday"),disabledScroll:{type:[Boolean,String],default:()=>!1},showNotCurrentMonthDay:Em,firstDayOfMonthClassName:Im(""),todayClassName:Im(""),checkedDayClassName:Im(""),notCurrentMonthDayClassName:Im(""),disabledClassName:Im("")};var fg=xe({name:"CalendarDate",props:pg,emits:["height","update:showWeekView","click","change","overRange","yearMonthChange","slidechange","touchstart","touchmove","touchend"],setup(e,t){let{emit:n,slots:a}=t;const i=je(null),o=je(null),r=Le([]),s=je((new Date).getFullYear()),l=je((new Date).getMonth()),c=je((new Date).getDate()),u=je(["日","一","二","三","四","五","六"]),d=je([]),h=je([]),p=je(42),f=je(0),v=je(0),m=je(0),g=je(0),b=je([]),y=je(0),w=je(0),_=je(.3),E=je({x:0,y:0}),P=je(!1),N=je(0),I=je(0),A=je(0),k=je(0),C=je(0),S=je(0),M=je(0),x=je([]),O=je([]),D=je(!1),T=je(!1),j=je({}),L=je({}),V=je({year:(new Date).getFullYear(),month:(new Date).getMonth()});u.value=km[e.lang].WEEK,y.value=["sunday","monday","tuesday","wednesday","thursday","friday","saturday"].indexOf(e.weekStart.toLowerCase()),u.value=[...u.value.slice(y.value,u.value.length),...u.value.slice(0,y.value)];const B=qe({get:()=>e.showWeekView,set(e){n("update:showWeekView",e)}}),U=e=>{e||(e=b.value[0]);const{month:t,day:n}=e,a=[];d.value[1].forEach(e=>{a.push(e.day)});let i=a.indexOf(n);n>15&&(i=a.lastIndexOf(n));const o=Math.ceil((i+1)/7)-1;S.value=-A.value*o,B.value=!0,N.value=A.value;let r=[];const s=7*o,l=s+7;D.value=!1,r=d.value[1].slice(s,l),r.forEach((e,t)=>{e.day===n&&(M.value=t)});const c=r[0],u=r[6];c.month!==t||1===c.day?d.value[0].slice(28,35)[6].month!==t?x.value=d.value[0].slice(28,35):x.value=d.value[0].slice(21,28):(x.value=d.value[1].slice(s-7,l-7),x.value[M.value]&&x.value[M.value].month===t&&(D.value=!0)),T.value=!1,u.day<c.day&&u.month!==t?O.value=d.value[2].slice(7,14):u.day===Um(u.year)[u.month]?O.value=d.value[2].slice(0,7):(O.value=d.value[1].slice(s+7,l+7),O.value[M.value].month===t&&(T.value=!0)),h.value[0].splice(s,7,...x.value),h.value[2].splice(s,7,...O.value)},z=(e,t)=>{const n=d.value[t][15];return e.year!==n.year||e.month!==n.month},R=(e,t)=>1===e.day&&!z(e,t),F=t=>{if(!t.day)return;const n=new Date("".concat(t.year,"/").concat(t.month+1,"/").concat(t.day));return e.disabledDate(n)||!Km(n,e.minDate,e.maxDate)},$=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:(new Date).getFullYear(),n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(new Date).getMonth();const a=[],i=0===n?t-1:t,o=0===n?11:n-1,r=11===n?t+1:t,s=11===n?0:n+1;let l=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:(new Date).getFullYear(),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(new Date).getMonth();return new Date(e,t,arguments.length>2&&void 0!==arguments[2]?arguments[2]:1).getDay()}(t,n);const c=Um(t)[o];l<y.value?l=7-y.value+l:l-=y.value;for(let t=0;t<l;t++)a.push({year:i,month:o,day:e.showNotCurrentMonthDay?c-(l-1-t):0});for(let e=0;e<Um(t)[n];e++)a.push({year:t,month:n,day:e+1});const u=p.value-a.length;for(let t=0;t<u;t++)a.push({year:r,month:s,day:e.showNotCurrentMonthDay?t+1:0});return a},q=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:V.value.year,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:V.value.month;f.value=0===n?t-1:t,v.value=0===n?11:n-1,m.value=11===n?t+1:t,g.value=11===n?0:n+1;const a=$(f.value,v.value),i=$(t,n),o=$(m.value,g.value);if(d.value=[],d.value.push(a,i,o),h.value=JSON.parse(JSON.stringify(d.value)),e.scrollChangeDate&&"single"===e.selectType){let e={},{day:a}=b.value[0];if((a>30||a>28&&1===n)&&(a=Um(t)[n]),e={day:a,year:t,month:n},F(e))return;const{year:i,month:o,day:r}=b.value[0];i===t&&o===n&&r===a||(b.value=[{day:e.day,year:t,month:n}])}},W=()=>{S.value=0,B.value=!1,N.value=6*A.value,D.value=!1,T.value=!1,q()},H=()=>{if("single"===e.selectType){const{year:e,month:t}=b.value[0];V.value={year:e,month:t}}it(()=>{A.value=ag(r[0]).height,I.value=ag(i).height;(r||[]).forEach(e=>{e&&(e.style.height="".concat(A.value,"px"))}),B.value?(U(),N.value=A.value):(W(),N.value=6*A.value)})},G=()=>{w.value+=1,D.value||(V.value={year:f.value,month:v.value}),q()},Y=()=>{w.value-=1,T.value||(V.value={year:m.value,month:g.value}),q()},X=t=>{t.day&&(F(t)||((t=>{const{selectType:a,maxRange:i}=e,{year:o,month:r,day:s}=t,l=b.value;if("single"===a)b.value=[{year:o,month:r,day:s}];else if("multiple"===a){const e=l.findIndex(e=>0===Gm(e,t));if(e>-1)b.value.splice(e,1);else{if(i&&l.length>=i)return void n("overRange");b.value=[...l,t]}}else if("range"===a){if(t=hg(dg({},t),{type:"start"}),!l||!l.length)return void(b.value=[t]);const[a,o]=(e=>{const[t,n]=e;return e.length<=2?[t,n]:[t,e[e.length-1]]})(l);if(a&&!o){const o=Gm(t,a);if(1===o){const e=Jm([l[0],hg(dg({},t),{type:"end"})]);if(i&&e.length>i)return void n("overRange");b.value=e}else-1===o?b.value=[t]:e.allowSameDay&&(t=hg(dg({},t),{type:"start-end"}),b.value=[t,t])}else b.value=[t]}})(t),t.month===v.value&&t.year===f.value&&G(),t.month===g.value&&t.year===m.value&&Y(),B.value&&U(),n("click",t)))},J=e=>s.value===e.year&&l.value===e.month&&c.value===e.day,K=e=>{if(F(e))return!1;const{year:t,month:n,day:a}=e;return b.value.some(e=>e.year===t&&e.month===n&&e.day===a)},Q=t=>!{up:[!0,"up","vertical"],down:[!0,"down","vertical"],left:[!0,"left","horizontal"],right:[!0,"right","horizontal"]}[t].some(t=>t===e.disabledScroll),Z=t=>{let{isNext:n}=t;setTimeout(()=>{P.value=!0,n?(()=>{const t=O.value[M.value];U(t),F(t)||e.scrollChangeDate&&(b.value=[t])})():(()=>{const t=x.value[M.value];U(t),F(t)||e.scrollChangeDate&&(b.value=[t])})()},1e3*_.value)},ee=e=>{n("touchstart",e),k.value=e.touches[0].clientX,C.value=e.touches[0].clientY,E.value={x:0,y:0},P.value=!0},te=t=>{n("touchmove",t),e.disabledWeekView||(t.stopPropagation(),t.cancelable&&t.preventDefault());const a=t.touches[0].clientX-k.value,i=t.touches[0].clientY-C.value;if(Math.abs(a)>Math.abs(i)){if((t=>{const n=Wm(e.minDate),a=Hm(e.maxDate);if(B.value){const e=new Date("".concat(x.value[6].year,"/").concat(x.value[6].month+1,"/").concat(x.value[6].day)).getTime(),i=new Date("".concat(O.value[0].year,"/").concat(O.value[0].month+1,"/").concat(O.value[0].day)).getTime();if("left"===t&&a)return i>=a;if("right"===t&&n)return e<=n}else{const e=new Date("".concat(f.value,"/").concat(v.value+1,"/").concat(Um(f.value)[v.value])).getTime(),i=new Date("".concat(m.value,"/").concat(g.value+1,"/1")).getTime();if("left"===t&&a)return i>=a;if("right"===t&&n)return e<=n}return!1})(a<0?"left":"right"))return;E.value={x:a/ag(o).width,y:0}}else{if(e.disabledWeekView)return;E.value={x:0,y:i/ag(o).height}}E.value.x<0&&!Q("left")&&(E.value.x=0),E.value.x>0&&!Q("right")&&(E.value.x=0),E.value.y<0&&!Q("up")&&(E.value.y=0),E.value.y>0&&!Q("down")&&(E.value.y=0)},ne=e=>{n("touchend",e),P.value=!1,Math.abs(E.value.x)>Math.abs(E.value.y)&&Math.abs(E.value.x)>.2&&(E.value.x>0?(n("slidechange","right"),G(),B.value&&Z({isNext:!1})):E.value.x<0&&(n("slidechange","left"),Y(),B.value&&Z({isNext:!0}))),Math.abs(E.value.y)>Math.abs(E.value.x)&&Math.abs(E.value.y*ag(o).height)>50?E.value.y>0&&B.value?(n("slidechange","down"),W()):E.value.y<0&&!B.value&&(n("slidechange","up"),U()):E.value={x:0,y:0}},ae=(e,t)=>{const n="".concat(e.year,"/").concat(Bm(e.month+1),"/").concat(Bm(e.day));if(-1!==(L.value[n]||"").indexOf(t))return j.value[n]};tg(H),$e(()=>e.markDate,t=>{const n=[];t.forEach(t=>{const a={date:[],color:"#1c71fb",type:e.markType};var i;"string"==typeof t||"number"==typeof t?a.date=[t]:(a.color=t.color||"#1c71fb",a.type=t.type||e.markType,a.date=((i=t.date||[]).forEach((e,t)=>{i[t]=Vm(e,"YY/MM/DD")}),i)),n.push(a)}),j.value={},L.value={},n.forEach(e=>{e.date.forEach(t=>{j.value[t]=e.color,L.value[t]=e.type})})},{deep:!0,immediate:!0}),$e(y,()=>{q()}),$e(()=>e.defaultDate,t=>{if("single"===e.selectType&&t instanceof Date){const e=t.getFullYear(),n=t.getMonth();V.value={year:e,month:n},b.value=[Rm(t)]}else if(Array.isArray(t)){const n=t.map(e=>Rm(e));"range"===e.selectType?b.value=Jm([hg(dg({},n[0]),{type:"start"}),hg(dg({},n[1]),{type:"end"})]):b.value=n}q(),B.value&&U()},{immediate:!0}),$e(b,e=>{n("change",e)},{deep:!0,immediate:!0}),$e(()=>e.show,e=>{e&&(q(),H())},{immediate:!0}),$e(V,()=>n("yearMonthChange",V.value)),$e(B,e=>{it(e?()=>{U()}:()=>{W()})}),$e(()=>e.defaultYearMonth,e=>{e&&(V.value=e)},{immediate:!0}),$e(N,e=>{n("height",e+I.value)}),eg({today:()=>{const{year:t,month:n,day:a}=Rm(new Date);"single"===e.selectType&&(b.value=[{year:t,month:n,day:a}]),V.value={year:t,month:n},q(),B.value&&setTimeout(()=>{if(P.value=!0,"single"===e.selectType){const e=b.value[0];b.value=[hg(dg({},e),{year:t,month:n})]}U()},1e3*_.value)},getLastMonth:G,getNextMonth:Y,changeWeekView:Z});const ie=t=>{if("range"!==e.selectType)return"";const n=b.value.find(e=>0===Gm(e,t));if(!n)return"";const{type:a}=n;return"start"===a?" calendar_range_checked calendar_range_start":"middle"===a?" calendar_range_checked calendar_range_middle":"end"===a?" calendar_range_checked calendar_range_end":"start-end"===a?" calendar_range_checked calendar_range_start-end":""},oe=(t,n)=>{let i=R(t,n)?km[e.lang].MONTH[t.month]:0===t.day?"":t.day;return a.day&&(i=a.day({date:t,extendAttr:{isMarked:!(!ae(t,"circle")&&!ae(t,"dot")),isDisabledDate:F(t),isToday:J(t),isChecked:K(t),isCurrentMonthDay:!z(t,n),isFirstDayOfMonth:R(t,n)}})),Oe("div",{class:"calendar_day ".concat(R(t,n)?e.firstDayOfMonthClassName||"calendar_first_today":""," ").concat(J(t)?e.todayClassName||"calendar_day_today":""," ").concat(K(t)?e.checkedDayClassName||"calendar_day_checked":""," ").concat(z(t,n)&&e.showNotCurrentMonthDay?e.notCurrentMonthDayClassName||"calendar_day_not":""," ").concat(ae(t,"circle")?"calendar_mark_circle":""),style:{"border-color":ae(t,"circle")}},[i])};return()=>Oe("div",{class:"calendar_body",style:{display:e.show?"block":"none"}},[Oe("div",{class:"calendar_week",ref:i},[u.value.map(e=>Oe("div",{class:"calendar_item",key:e},[Oe("p",{class:"calendar_day"},[a.week?a.week({week:e}):e])]))]),Oe("div",{class:"calendar_group",style:{height:"".concat(N.value,"px")},ref:o,onTouchstart:ee,onTouchmove:te,onTouchend:ne},[Oe("ul",{style:{transform:"translate3d(".concat(100*-w.value,"%, 0, 0)")}},[h.value.map((t,n)=>Oe("li",{class:"calendar_group_li",key:n,style:{transform:"translate3d(".concat(100*(n-1+w.value+(P.value?E.value.x:0)),"%, ").concat(S.value,"px, 0)"),transitionDuration:"".concat(P.value?0:_.value,"s")}},[t.map((t,a)=>Oe("div",{class:"calendar_item ".concat(F(t)?e.disabledClassName||"calendar_item_disable":"").concat(ie(t)),ref:e=>{r.length=0,r.push(e)},key:n+a,onClick:()=>X(t)},[oe(t,n),Oe("div",{style:{background:ae(t,"dot")},class:"calendar_dot"},null)]))]))])])])}});const vg={show:Boolean,defaultTime:Am(new Date),disabledTime:{type:Function,default:()=>!1},minuteStep:Nm(1),calendarDate:{type:Object,default:()=>({})}};var mg=xe({name:"CalendarTime",props:vg,emits:["change"],setup(e,t){let{emit:n}=t;const a=Le([]),i=Le([]),o=je({hours:(new Date).getHours(),minutes:(new Date).getMinutes()}),r=je(0),s=je([]),l=je(0),c=je(0),u=(t,n)=>{const a=0===n?t:o.value.hours,i=1===n?t:o.value.minutes,r="".concat(e.calendarDate.year,"/").concat(e.calendarDate.month+1,"/").concat(e.calendarDate.day," ").concat(a,":").concat(i),s=new Date(r);return e.disabledTime(s)},d=e=>{e.cancelable&&e.preventDefault(),l.value=e.changedTouches[0].pageY;const{transform:t}=e.currentTarget.style;t&&(c.value=parseFloat(t.split(" ")[1].split("px")[0]))},h=(t,n)=>{const{transform:a}=t.currentTarget.style;let i=c.value;a&&(i=parseFloat(t.currentTarget.style.transform.split(" ")[1].split("px")[0]));const l=Math.abs(i-c.value),d=Math.floor(l/r.value)||1,h=r.value/2;let p=c.value;if(i<=c.value?l<=h?p=c.value:(p=c.value-r.value*d,p<-(s.value[n].length-3)*r.value&&(p=-(s.value[n].length-3)*r.value)):l<=h?p=c.value:(p=c.value+r.value*d,p>2*r.value&&(p=2*r.value)),0===n){const e=2-Math.round(p/r.value);u(e,n)?p=c.value:o.value.hours=e}else{const t=2-Math.round(p/r.value);u(t,n)?p=c.value:o.value.minutes=t*e.minuteStep}t.currentTarget.style.webkitTransition="transform 300ms",t.currentTarget.style.transform="translate3d(0px,"+p+"px,0px)"},p=(e,t)=>{const n=e.changedTouches[0].pageY-l.value;if(e.currentTarget.style.transform="translate3d(0px,"+(n+c.value)+"px,0px)","2"===(/android/i.test(navigator.userAgent)?"1":/(iPhone|iPad|iPod|iOS)/i.test(navigator.userAgent)?"2":void 0))return h(e,t),!1},f=(e,t)=>0===t&&e===o.value.hours||1===t&&e===o.value.minutes;$e(()=>e.defaultTime,e=>{if(!(e instanceof Date))throw new Error("The calendar component's defaultTime must be date type!");o.value.hours=e.getHours(),o.value.minutes=e.getMinutes()},{immediate:!0}),$e(o,e=>{n("change",e)},{deep:!0,immediate:!0}),$e(()=>e.show,t=>{t&&setTimeout(()=>{(()=>{const t=[];s.value=[];for(let e=0;e<24;e++)t.push(e);const n=[];for(let t=0;t<60;t++)t%e.minuteStep===0&&n.push(t);s.value.push(t,n),it(()=>{const t=o.value.hours,n=o.value.minutes;r.value=ag(i[0]).height;const[s,l]=a,c=(2-t)*r.value;s&&(s.style.transform="translate3d(0px,"+c+"px,0px)");const u=(2-n/e.minuteStep)*r.value;l&&(l.style.transform="translate3d(0px,"+u+"px,0px)")})})()},100)},{immediate:!0}),$e(()=>e.minuteStep,e=>{if(e<=0||e>=60)throw new Error("The minutes-step can't be: ".concat(e,"!"));if(60%e!=0)throw new Error("The minutes-step must be divided by 60!")},{immediate:!0});const v=(e,t)=>e.map((e,n)=>Oe("div",{ref:e=>{i.length=0,i.push(e)},class:"time_item ".concat(f(e,t)?"time_item_show":""," ").concat(u(e,t)?"time-disabled":""),key:t+n},[Bm(e)]));return()=>Oe("div",{class:"time_body",style:{display:e.show?"flex":"none"}},[Oe("div",{class:"time_group"},[s.value.map((e,t)=>Oe("div",{class:"time_content",ref:e=>{a.push(e)},key:t,onTouchstart:d,onTouchmove:e=>p(e,t),onTouchend:e=>h(e,t)},[v(e,t)]))])])}});const gg={disabledScroll:{type:[Boolean,String],default:()=>!1},calendarData:Pm()};var bg=xe({name:"CalendarScrollContainer",props:gg,emits:["slidechange","touchstart","touchmove","touchend"],setup(e,t){let{emit:n,slots:a}=t;const i=je(),o=je(0),r=je(.3),s=je({x:0,y:0}),l=je(!1),c=je(0),u=je(0),d=je(0),h=t=>!{up:[!0,"up","vertical"],down:[!0,"down","vertical"],left:[!0,"left","horizontal"],right:[!0,"right","horizontal"]}[t].some(t=>t===e.disabledScroll),p=e=>{n("touchstart",e),c.value=e.touches[0].clientX,u.value=e.touches[0].clientY,s.value={x:0,y:0},l.value=!0},f=e=>{n("touchmove",e),e.cancelable&&e.preventDefault(),e.stopPropagation();const t=e.touches[0].clientX-c.value,a=e.touches[0].clientY-u.value;Math.abs(t)>Math.abs(a)?s.value={x:t/ag(i).width,y:0}:s.value={x:0,y:a/ag(i).height},s.value.x<0&&!h("left")&&(s.value.x=0),s.value.x>0&&!h("right")&&(s.value.x=0),s.value.y<0&&!h("up")&&(s.value.y=0),s.value.y>0&&!h("down")&&(s.value.y=0)},v=e=>{n("touchend",e),l.value=!1,Math.abs(s.value.x)>Math.abs(s.value.y)&&Math.abs(s.value.x)>.2&&(s.value.x>0?(n("slidechange","right"),o.value+=1):s.value.x<0&&(n("slidechange","left"),o.value-=1)),Math.abs(s.value.y)>Math.abs(s.value.x)&&Math.abs(s.value.y*ag(i).height)>50?s.value.y>0?n("slidechange","down"):s.value.y<0&&n("slidechange","up"):s.value={x:0,y:0}};return()=>Oe("ul",{class:"calendar_group_ul",ref:"containerRef",style:{transform:"translate3d(".concat(100*-o.value,"%, 0, 0)")},onTouchstart:p,onTouchmove:f,onTouchend:v},[e.calendarData.map((e,t)=>{var n;return Oe("li",{class:"calendar_group_li",key:t,style:{transform:"translate3d(".concat(100*(t-1+o.value+(l.value?s.value.x:0)),"%, ").concat(d.value,"px, 0)"),transitionDuration:"".concat(l.value?0:r.value,"s")}},[null==(n=a.default)?void 0:n.call(a,e)])})])}}),yg=Object.defineProperty,wg=Object.defineProperties,_g=Object.getOwnPropertyDescriptors,Eg=Object.getOwnPropertySymbols,Pg=Object.prototype.hasOwnProperty,Ng=Object.prototype.propertyIsEnumerable,Ig=(e,t,n)=>t in e?yg(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ag=(e,t)=>{for(var n in t||(t={}))Pg.call(t,n)&&Ig(e,n,t[n]);if(Eg)for(var n of Eg(t))Ng.call(t,n)&&Ig(e,n,t[n]);return e},kg=(e,t)=>wg(e,_g(t));const Cg={minDate:Am(null),maxDate:Am(null),disabledDate:{type:Function,default:()=>!1},checkedDayClassName:Im(""),notCurrentMonthDayClassName:Im(""),disabledClassName:Im(""),type:Im("date"),calendarContentHeight:Nm(0),disabledScroll:{type:[Boolean,String],default:()=>!1},currentYearMonth:{type:Object,default:()=>({})},lang:Im("CN")};var Sg=xe({name:"CalendarYearMonth",props:Cg,emits:["click","slidechange","touchstart","touchmove","touchend"],setup(e,t){let{emit:n}=t;const a=je({}),i=je(10),o=je(!1),r=je([]),s=e.lang.toUpperCase();a.value=km[s];const l=qe(()=>e.calendarContentHeight/4),c=t=>{const n=[],a="".concat(t||e.currentYearMonth.year),o=parseInt(a.substring(0,3)+"0",10);for(let e=0;e<=i.value;e++)n.push(o+e);return n.unshift(o-1),n},u=t=>{const n=[],a="".concat(t||e.currentYearMonth.year),o=parseInt(a.substring(0,2)+"00",10);for(let e=0;e<=i.value;e++)n.push({s:o+10*e,e:o+10*e+9});return n.unshift({s:o-10,e:o-1}),n},d=function(){const t=((arguments.length>0&&void 0!==arguments[0]?arguments[0]:e.currentYearMonth.year)+"").substring(0,3),n=parseInt(parseInt(t,10)-1+"0",10),a=parseInt(t+"0",10),i=parseInt(parseInt(t,10)+1+"0",10);return[c(n),c(a),c(i)]},h=function(){const t=((arguments.length>0&&void 0!==arguments[0]?arguments[0]:e.currentYearMonth.year)+"").substring(0,2),n=parseInt(parseInt(t,10)-1+"00",10),a=parseInt(t+"00",10),i=parseInt(parseInt(t,10)+1+"00",10);return[u(n),u(a),u(i)]},p=t=>{"left"===t?(()=>{if("year"===e.type){const e=r.value[2][1];r.value=d(e)}else if("yearRange"===e.type){const e=r.value[2][1].s;r.value=h(e)}})():"right"===t&&(()=>{if("year"===e.type){const e=r.value[0][1];r.value=d(e)}else if("yearRange"===e.type){const e=r.value[0][1].s;r.value=h(e)}})(),n("slidechange",t)},f=e=>{const t=e.s,n=e.e,a=[];for(let e=t;e<=n;e++)a.push(e);return a},v=(t,n)=>{let a=new Date;if("month"===e.type)a=new Date("".concat(e.currentYearMonth.year,"/").concat(n+1,"/01"));else if("year"===e.type)a=new Date("".concat(t,"/").concat(e.currentYearMonth.month+1,"/01"));else if("yearRange"===e.type){return f(t).every(t=>(a=new Date("".concat(t,"/").concat(e.currentYearMonth.month+1,"/01")),e.disabledDate(a)||!Km(a,e.minDate,e.maxDate)))}return e.disabledDate(a)||!Km(a,e.minDate,e.maxDate)},m=(t,n)=>"month"===e.type?n===e.currentYearMonth.month:"year"===e.type?t===e.currentYearMonth.year:"yearRange"===e.type?t.s<=e.currentYearMonth.year&&t.e>=e.currentYearMonth.year:void 0,g=t=>!(0!==t&&11!==t||"year"!==e.type&&"yearRange"!==e.type),b=e=>{n("touchstart",e)},y=e=>{n("touchmove",e)},w=e=>{n("touchend",e)};$e(()=>e.type,t=>{o.value=e.disabledScroll,"month"===t||"date"===t?(o.value=!0,r.value=[a.value.MONTH,a.value.MONTH,a.value.MONTH]):"year"===t?r.value=d():"yearRange"===t&&(r.value=h())});const _=t=>t.map((t,i)=>Oe("div",{class:"year-body-item ".concat(v(t,i)?e.disabledClassName||"is_disabled":""),style:{height:l.value+"px"},key:i,onClick:()=>((t,a)=>{if(!t)return;if(v(t,a))return;let i=Ag({},e.currentYearMonth);if("month"===e.type&&(i=kg(Ag({},i),{month:a})),"year"===e.type&&(i=kg(Ag({},i),{year:t})),"yearRange"===e.type){const e=f(t);i=kg(Ag({},i),{year:e.includes(i.year)?i.year:t.s})}n("click",i,e.type)})(t,i)},[Oe("p",{class:"year-body-item-content ".concat(m(t,i)?e.checkedDayClassName||"is_checked":""," ").concat(g(i)?e.notCurrentMonthDayClassName||"is_not_current":""),style:{width:"yearRange"===e.type?"92px":"60px"}},["yearRange"===e.type?"".concat(t.s,"-").concat(t.e):"month"===e.type?a.value.MONTH[i]:t])]));return()=>Oe("div",{class:"year-body",style:{height:4*l.value+"px",display:["year","yearRange","month"].includes(e.type)?"block":"none"}},[Oe(bg,{calendarData:r.value,disabledScroll:o.value,onTouchstart:b,onTouchmove:y,onTouchend:w,onSlidechange:p},e=>_(e))])}}),Mg=Object.defineProperty,xg=Object.defineProperties,Og=Object.getOwnPropertyDescriptors,Dg=Object.getOwnPropertySymbols,Tg=Object.prototype.hasOwnProperty,jg=Object.prototype.propertyIsEnumerable,Lg=(e,t,n)=>t in e?Mg(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Vg=(e,t)=>{for(var n in t||(t={}))Tg.call(t,n)&&Lg(e,n,t[n]);if(Dg)for(var n of Dg(t))jg.call(t,n)&&Lg(e,n,t[n]);return e},Bg=(e,t)=>xg(e,Og(t));const Ug={themeColor:{type:Object,default:()=>({})},changeYearFast:Boolean,showArrow:Boolean,showWeekView:Boolean,visible:Boolean,disabledWeekView:Boolean,showAction:Em,pickerType:Im("datetime"),selectType:Im("single"),defaultYearMonth:{type:Object,default:{}},allowSameDay:Boolean,showTodayButton:Em,defaultDatetime:[Date,Array],minDate:Am(null),maxDate:Am(null),maxRange:Nm(0),format:Im(""),model:Im("inline"),markType:Im("dot"),markDate:Pm(),disabledDate:{type:Function,default:()=>!1},disabledTime:{type:Function,default:()=>!1},lang:Im("CN"),scrollChangeDate:Em,minuteStep:Nm(1),weekStart:Im("Sunday"),disabledScroll:{type:[Boolean,String],default:()=>!1},showNotCurrentMonthDay:Em,firstDayOfMonthClassName:Im(""),todayClassName:Im(""),checkedDayClassName:Im(""),notCurrentMonthDayClassName:Im(""),disabledClassName:Im("")};var zg=xe({name:"VueHashCalendar",props:Ug,emits:["update:visible","update:showWeekView","calendarTypeChange","click","confirm","change","overRange","slidechange","touchstart","touchmove","touchend"],setup(e,t){let{emit:n,slots:a}=t;const i=je(),o=je(!0),r=je(e.showWeekView),s=je(0),l=je(!0),c=je({year:(new Date).getFullYear(),month:(new Date).getMonth()}),u=function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.minDate,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.maxDate;return n&&-1===Gm(Rm(t),Rm(n))?n:a&&1===Gm(Rm(t),Rm(a))?a:t},d=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:e.defaultDatetime;const{selectType:n,minDate:a,maxDate:i,allowSameDay:o}=e;if(null===t)return t;const r=(()=>{const e=new Date;return e.setHours(0,0,0,0),e})(),s=new Date;if("range"===n){Array.isArray(t)||(t=[]);return[u(t[0]||r,a,o?i:(l=Rm(i))?Ym($m(l),-1):l),u(t[1]||r,o?a:Xm(Rm(a)))]}var l;return"multiple"===n?Array.isArray(t)?t.map(e=>u(e)):[u(r)]:(t&&!Array.isArray(t)||(t=s),u(t))},h=je(d()),p=je([Fm(new Date)]),f=je("date"),v=qe({get:()=>"inline"===e.model||e.visible,set(e){n("update:visible",e)}}),m=qe(()=>e.showArrow&&"inline"===e.model),g=qe(()=>"time"===e.pickerType?245:s.value),b=e=>{n("slidechange",e)},y=()=>{r.value=!r.value,r.value?b("up"):b("down")},w=()=>{var t;e.disabledDate(new Date)||null==(t=i.value)||t.today()},_=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:d();h.value=e},E=t=>{"single"===e.selectType?p.value=[Vg(Vg({},p.value[0]),t[0])]:p.value=t},P=t=>{if(!t.day)return;let a;if("single"===e.selectType){const e=p.value[0];t.minutes=e.minutes,t.hours=e.hours,a=qm(t)}else a=$m(t);h.value=new Date(a),e.format&&(a=Vm(a,e.format,e.lang)),n("click",a)},N=(t,a)=>{if(a){switch(a){case"yearRange":f.value="year";break;case"year":f.value="month";break;case"month":f.value="date"}n("calendarTypeChange",f.value)}if(c.value={year:t.year,month:t.month},P(t),"single"===e.selectType){const{day:t,hours:a,minutes:i}=p.value[0];let o=qm(Bg(Vg({},c.value),{day:t,hours:a,minutes:i}));e.format&&(o=Vm(o,e.format,e.lang)),n("change",o)}},I=e=>{const{minutes:t,hours:n}=e,a=p.value[0];p.value=[Bg(Vg({},a),{minutes:t,hours:n})]},A=()=>{v.value=!1},k=()=>{const t=p.value.map(t=>{let n=$m(t);return"single"===e.selectType&&(n=qm(t)),e.format?Vm(n,e.format,e.lang):n});return"single"===e.selectType?t[0]:t},C=()=>{n("confirm",k()),"dialog"===e.model&&A()},S=(t,n)=>Vm(t,n,e.lang),M=()=>{o.value?e.changeYearFast&&("date"===f.value?f.value="month":"month"===f.value?f.value="year":"year"===f.value?f.value="yearRange":f.value="date",n("calendarTypeChange",f.value)):n("calendarTypeChange","date"),o.value=!0},x=()=>{o.value=!1,n("calendarTypeChange","time"),f.value="date"},O=t=>{(l.value||"dialog"!==e.model)&&(s.value=t,l.value=!1)},D=()=>{const t={};if(e.themeColor){const n=Object.keys(e.themeColor||{});n.length&&n.forEach(n=>{t["--hash-calendar-".concat(n)]=e.themeColor[n]})}return t},T=e=>{n("touchstart",e)},j=e=>{n("touchmove",e)},L=e=>{n("touchend",e)};$e(p,()=>{const t=k();"range"===e.selectType&&Array.isArray(t)&&1===t.length||n("change",t)},{deep:!0}),$e(()=>e.showWeekView,e=>{r.value=e}),$e(()=>[e.selectType,e.minDate,e.maxDate],()=>{"single"===e.selectType?_(d()):_(d(h.value))}),eg({today:w,reset:_,lastMonth:()=>{var e;null==(e=i.value)||e.getLastMonth()},nextMonth:()=>{var e;null==(e=i.value)||e.getNextMonth()},lastWeek:()=>{var e,t;null==(e=i.value)||e.getLastMonth(),null==(t=i.value)||t.changeWeekView({isNext:!1})},nextWeek:()=>{var e,t;null==(e=i.value)||e.getNextMonth(),null==(t=i.value)||t.changeWeekView({isNext:!0})}});tg(()=>{const t=h.value;if(t){if(t instanceof Date)c.value={year:t.getFullYear(),month:t.getMonth()},p.value=[Fm(t)];else if(Array.isArray(t))if("range"===e.selectType){const e=Jm([Bg(Vg({},Fm(t[0])),{type:"start"}),Bg(Vg({},Fm(t[1])),{type:"end"})]);p.value=e.map(e=>Fm($m(e)))}else p.value=t.map(e=>Fm(e))}else p.value=[];"time"===e.pickerType?x():o.value=!0});const V=()=>{let t=km[e.lang].TODAY;if(a.today&&(t=a.today()),e.showTodayButton)return Oe("div",{class:"calendar_confirm ".concat(e.disabledDate(new Date)?"today_disable":""),onClick:w},[t])},B=()=>{let t=km[e.lang].CONFIRM;if(a.confirm&&(t=a.confirm()),"dialog"===e.model)return Oe("div",{class:"calendar_confirm",onClick:C},[t])},U=()=>{let t="";const{year:n,month:i}=c.value;let r=S("".concat(n,"/").concat(i+1),km[e.lang].DEFAULT_YEAR_MONTH_FORMAT);if("single"===e.selectType){const{day:a,hours:o,minutes:s}=p.value[0];t=S("".concat(n,"/").concat(i+1,"/").concat(a," ").concat(Bm(o),":").concat(Bm(s)),km[e.lang].DEFAULT_TIME_FORMAT),r=S("".concat(n,"/").concat(i+1,"/").concat(a),km[e.lang].DEFAULT_DATE_FORMAT)}return e.showAction?Oe("div",{class:"calendar_title",onClick:e=>{e.cancelable&&e.preventDefault(),e.stopPropagation()},style:{bottom:"dialog"===e.model?"".concat(g.value,"px"):"unset"}},[a.action?a.action():Oe(ht,null,[Oe("div",{class:"calendar_title_date"},["time"!==e.pickerType?Oe("span",{class:"calendar_title_date_year ".concat(o.value?"calendar_title_date_active":""),onClick:M},[r]):null,"date"!==e.pickerType&&"single"===e.selectType?Oe("span",{class:"calendar_title_date_time ".concat(o.value?"":"calendar_title_date_active"),onClick:x},[t]):null]),V(),B()])]):null},z=e=>{r.value!==e&&(n("calendarTypeChange",e?"week":"date"),r.value=e)},R=e=>{c.value=e},F=()=>{if("datetime"===e.pickerType||"time"===e.pickerType)return Oe(mg,Te({show:!o.value,defaultTime:h.value,calendarDate:p.value[0],onChange:I},zm(e,["minuteStep","disabledTime"])),null)},$=()=>{let t=Oe("img",{src:r.value?"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAAOB0lEQVR4Xu2de4xcdRXHz5nZbgaLrekK/UNBi6I2K87OvVdDfP5LIqgQUwIFbMD4IEoFpJQQeUMhkfIUNTyCDxAlis+k/qEJGjHRe2e73a7VtNpoUEFstYuw0+3sHPODWamw273zm3Mf8/t959/9nfP7nc+5n/z2zn0MEz4gAAKLEmCwAQEQWJwABMHRAQJHIABBcHiAAATBMQACdgSwg9hxQ5QnBCCIJ41GmXYEIIgdN0R5QgCCeNJolGlHAILYcUOUJwQgiCeNRpl2BCCIHTdEeUIAgnjSaJRpRwCC2HFDlCcEIIgnjUaZdgQgiB03RHlCAIJ40miUaUcAgthxQ5QnBCCIJ41GmXYEIIgdN0R5QgCCeNJolGlHAILYcUOUJwQgiCeNRpl2BCCIHTdEeUIAgnjSaJRpRwCC2HFDlCcEIIgnjUaZdgQgiB03RHlCAIJ40miUaUcAgthxQ5QnBCCIJ41GmXYEIIgdN0R5QgCCeNJolGlHAILYcUOUJwQgiCeNRpl2BCCIHTdEeUIAgnjSaJRpRwCC2HFDlCcEIIgnjUaZdgQgiB03RHlCAIJ40miUaUcAgthxQ5QnBCCIJ41GmXYEIIgdN0R5QgCCeNJolGlHAILYcUOUJwQgiCeNRpl2BCCIHTdEeUIAgnjSaJRpRwCC2HFDlCcEIIgnjUaZdgQgiB03RHlCAIJ40miUaUcAgthxQ5QnBCCIJ41GmXYEIIgdN0R5QgCCeNJolGlHAILYcUOUJwQgiCeNRpl2BCCIHTdEeUIAgnjSaJRpRwCC2HFDlCcEIIgnjUaZdgQgiB03RHlCAIJ40miUaUcAgthxQ5QnBCCIJ41GmXYEIIgdN0R5QgCCeNJolGlHAILYcUOUJwQgiCeNRpl2BCCIHTdEeUIAgnjSaJRpRwCC2HFDlCcEIIgnjUaZdgQgiB03RHlCAIJ40miUaUcAgthxQ1ROBMbHx99DRMuY+fl2u/1UFEV/yWnqF6YpjSBxHL+KmdeJSIOZVxPRMURUJaInmfmxarW6rV6vP5cnHMxVDIEkSc4QkY8y84eIaPkCq9jGzPcFQfDdrFdYuCBTU1OrWq3WzUR09iIwDmfwSLVavWFsbGwqazDInz+B8fHxN3Y6na8T0fvSzC4iO5n59DAM96QZbzOmUEGSJDlZRB5l5tf3sngR2ToyMnLlmjVrWr3EYWx5CTSbzQs6nc5tzPzqXlYpIs9Wq9VzG43GD3qJSzu2MEGSJDmTiB5Ju9AFxu2pVCobGo3Gr/rIgdCCCUxMTBzbbrfvI6LT+lmKiKyLoujRfnIsFFuIIHEcf5CZf6xRDHYTDYrF5EiS5FQieqB7vtn3IkTk1CiKftJ3osMS5C6I+T9zbm5uFzPXFAvBbqIIM+tUU1NTR7darTuI6HzNuUTk7yMjIydo/uuduyBJknyTiNZrgpnPhd0kC6q6OZMkMSfg3yCiN+hmfjEbM28OguAWrdy5CjI5OXnc7Oxs1t9jYzfROjqU88RxfCszX6Kc9uXpdoRhWNeaI1dBkiT5JBF9RWvxR8jTIaI7V61adYXmdpvDup2cYmJi4u3tdvs7RLQ2jwKZ+dggCJ7RmCtvQcy3Vubbq1w+IvLHarX6MXzTlQvuBSeJ43gzM2/JeQWnhGH4U4058xbk10R0ssbCe8iB3aQHWFpD4zg+npm/RUTv1srZQ55zwzA057p9f3IVJI7jPcz8pr5XbZfAzH1eEARGUnwyJGAu+onI7UR0dIbTLJqamS8IgsB8fdz3J29Bmszc6HvV9gmwm9izWzKy2WweIyLmVpFTlhyc7YDB/BcrjuPvM/OHs2WTKjt2k1SY0g+K4/gjRHQvM782fVQ2I4eGho6r1+tPamTPdQdJkmQTEal9R90nAOwmfQI04d2LfncR0QaFdBopfheG4ahGIpMjb0HeQUQTWovXyINvuuwpNpvND5i7b5n5ePssupEicn0URVdpZc1VELPoJEkeJ6L3axWglAe7SQ8gp6amhmdmZm5i5ouJqNJDaKZDReSfRx111JrR0dH/aE2UuyDNZrMuItu1ClDOg3OTJYCa/nU6nYeYWe3fGK0emvPbIAh+qJUv93+x5hfebDY/KyJ3ahaimAu7yQIwRaSSJMnlzHwNEQ0r8tZKdW0YhmZtqp/cd5D51cdxfA8zf1q1GsVkODd5CeaOHTtOOHTokLnBsIiLfkt2VUTuj6Lo40sOtBhQmCBmrXEcX8jMX7JYd24hvt8hXPRFvxSNvjcMw0+kGGc1pFBBupIERPQwM7/VqoJ8gvZUq9X1Y2Njv8lnuuJnKdFFvwVhiMgBZv6M1i0lixEvXBCzMPOtSKvVulpEzP+45k0mZfx4c25invQTkQeZeaSMjSCiXzDzWUEQ/C3r9ZVCkMPOS7CbZN3xI+TfvXv3igMHDtxl7lkrcBmLTi0iM0S0OQxDs0bJY42lEmR+Nzl48OA1nU5nE3aTPA6BF+foPuln7r59XX6zpp9JRMbNe9OyfMXPQqspnSDYTdIfNBojuxf9tnQv+pXueBCRNjPfGATBDczc1qi5lxylA3L44k3zsJv00s7exub9pF9vq3th9O5KpbKu0WgUdmG51IJgN7E4pFKEiEi12WxeLiLXMPOyFCF5DxERuXtkZGRT0Y9MD4Qg8+cmMzMz1xLRZTg3sT9eJyYm1rTb7W8T0Tvts2Qa+VciOi8Mw59nOkvK5AMjCHaTlB09wrAkScwFta0p3oHc/2R2GR5asWLFhSeeeOK0Xbh+1MAJgt2k94Og7Bf9iOjf5iVyYRg+1nt12UYMpCDYTdIfFEmSnC4i5km/sl702zY8PLzhpJNOejp9VfmNHGhBDttNriOiz+Pc5KUDx1z0m56evpuIzs3vcOppJvNbL5eGYfjVnqJyHjzwgmA3eeURU/aLfkT0xNDQ0Dn1en1vzsd7z9M5Iwh2k//d02ae+d+Y9+PUKY+8WfPVchiGtzCzubet9B+nBPF5NxkfHx/rdDoP5/V6T4sje9fQ0NC6er2+0yK2sBAnBZnfTVqt1vUicqnL5ybdi36bReTqkl70MzvF1lqtduXo6OhsYUe65cTOCuLDbjIAF/3+3L0tfWDfZum8IK7uJs1m81Mi8sUSX/R7oFarbdR8w4jlJtBXmBeCuLSbTE5Orp6dnX2wBK/3XOzA+wcRXRCGocpP7PV1dCsEeyXIYbvJDSJyyaCdm5iLft3f9HuNQu+zSPGjWq22YXR0dH8WyYvI6Z0g85CTJAlFxLzfqdTPwovIOStXrtw1PT1tXm5xThEHyVJzisg0M28Mw9DsbE59vBVkvovNZvMmEbmizF0VkaeZeXVJ1/i4iJwXRVHWP61XSPneC2Kob9++/V1zc3MPEdGbC+nCAE4qIq1KpXJlo9G4La/nw4vABEG61Pfu3Vvbv3//9URkfmSyNO+bLeKgWGpO83w4EZ0dRdHvlxo76H+HIC/rIHaTxQ9pEZlj5puDIDBPIub+fHgRskGQBahjN3klFBH5U6VSOTMIgriIA7WoOSHIEchjN3kRjoh82TxOEEXR80UdqEXNC0GWIG92k3379plXzpTqtzDyOGBE5ClmXl+W58PzqPnlc0CQlNQ93E2+JyLnR1F0ICUiJ4dBkB7a6slu8i9mvjAIgkd6QOPsUAhi0VqHd5OfDQ8Pry/r8+EWreo7BIJYInRpNxERc/J9WRRF91jicDYMgvTZWgd2k98ODQ2dOQjPh/fZKqtwCGKF7f+DurvJjcz8uUG5Ci8ihyqVynWNRsO8uHpOAYOTKSCIYlsHaDfZValUzi7ypdCK2DNNBUGU8ZZ8NzE/OnN7rVbbPIjPhyu3KlU6CJIKU++DSribmJdCnxWG4S97r8bfCAiSYe+793Td1H1PVWF3CIvI11auXHlRmV4KnSF21dQQRBXnwsmK2k1EZB8zb3Dl+fAcWvWKKSBITtQL2E22mR/jDILgmZxKdHIaCJJzW7PeTUTk2UqlcnEQBPfnXJqT00GQAtra3U22ENFFytdNnhCRs1x9PryAVhEEKYJ6d07F3eQgEX0hCIJbB+Wl0AVi72lqCNITLv3B/e4mIjJJROt8eD5cn/7SGSHI0oxyGRHH8XuJ6C5mHks54XMisjWKoqtSjscwCwIQxAJaliFJkpxGRFcTUbjQPOYlbUR0x/Lly+9Yu3btvizXgtyEc5CyHgTdd/C+hYjexsyrOp3OzmXLlu2p1+t/KOuaXVwXdhAXu4qa1AhAEDWUSOQiAQjiYldRkxoBCKKGEolcJABBXOwqalIjAEHUUCKRiwQgiItdRU1qBCCIGkokcpEABHGxq6hJjQAEUUOJRC4SgCAudhU1qRGAIGookchFAhDExa6iJjUCEEQNJRK5SACCuNhV1KRGAIKooUQiFwlAEBe7iprUCEAQNZRI5CIBCOJiV1GTGgEIooYSiVwkAEFc7CpqUiMAQdRQIpGLBCCIi11FTWoEIIgaSiRykQAEcbGrqEmNAARRQ4lELhKAIC52FTWpEYAgaiiRyEUCEMTFrqImNQIQRA0lErlIAIK42FXUpEYAgqihRCIXCUAQF7uKmtQIQBA1lEjkIgEI4mJXUZMaAQiihhKJXCQAQVzsKmpSIwBB1FAikYsEIIiLXUVNagQgiBpKJHKRAARxsauoSY0ABFFDiUQuEoAgLnYVNakRgCBqKJHIRQIQxMWuoiY1AhBEDSUSuUgAgrjYVdSkRgCCqKFEIhcJQBAXu4qa1AhAEDWUSOQiAQjiYldRkxoBCKKGEolcJABBXOwqalIjAEHUUCKRiwT+CzbFHAVhdf5fAAAAAElFTkSuQmCC":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAANp0lEQVR4Xu2dbYwdZRXHz7m7l94LSsluKr6kwRqINQtsd2Y0kagxEqsfNFFJipSKTTUajRWKEcSWlhIltFhE40uCWAotGDDRDxg1kcQPSk3MzNysa1HTagMYI5WtvNTQ7C5zzFOngLAv954789y59/zna+c8z5zfmV/PnX3uM5cJBwiAwIIEGGxAAAQWJgBBcHeAwCIEIAhuDxCAILgHQEBHAB1Exw1RRghAECOFRpo6AhBExw1RRghAECOFRpo6AhBExw1RRghAECOFRpo6AhBExw1RRghAECOFRpo6AhBExw1RRghAECOFRpo6AhBExw1RRghAECOFRpo6AhBExw1RRghAECOFRpo6AhBExw1RRghAECOFRpo6AhBExw1RRghAECOFRpo6AhBExw1RRghAECOFRpo6AhBExw1RRghAECOFRpo6AhBExw1RRghAECOFRpo6AhBExw1RRghAECOFRpo6AhBExw1RRghAECOFRpo6AhBExw1RRghAECOFRpo6AhBExw1RRghAECOFRpo6AhBExw1RRghAECOFRpo6AhBExw1RRghAECOFRpo6AhBExw1RRghAECOFRpo6AhBExw1RRghAECOFRpo6AhBExw1RRghAECOFRpo6AhBExw1RRghAECOFRpo6AhBExw1RRghAECOFRpo6AhBExw1RRghAECOFRpo6AhBExw1RRghAEI+FfuKJJ5pPPfXU2izLJk5PKyLP1Wq1XwRB8KjHS8FUbRKAIG2C6ua0NE3fmWXZ9US0lpmbC4x1hIgOjIyM7Fq1atXJbuZDbHEEIEhxLOcdKUmS3UT05XanEZG/Dg0NXTUxMXGw3RicVx4BCFIS28nJyQvn5uYeJKK3KabIROSO0dHRregmCnoFhkCQAmG6oUSkliTJdcy8k4jO6HL4I0NDQ1euWbPm912Og3AlAQiiBDdf2OTk5Kq5ubkDRHRJgcOimxQIs9OhIEinxBY4P0mSzxDRHiJ6TUFDvnIYdJOSwC42LATpEnqapitE5F4i+mCXQ7UT7rrJN0dHR7fh2aQdXN2fA0G6YJgkyUdF5AfMPNrFMJpQdBMNNUUMBFFAO3z48NnPPvvsd4logyK8qBB0k6JILjIOBOkQcpIk7yMi95HqTR2GlnU6uklZZIkIgrQJ9+jRo43p6eldzLy5gtwyIrp9ZGTkRjybtFnQNk+DIG2AarVaa7Isc4t+F7Rxei9PQTcpmD4EWQSoiAynabpVRLYx83DB7MsaDt2kQLIQZAGYSZKcLyIPMvOL37wtkLuPodBNCqAMQeaBmKbp5izL3PPGQt+8LQC9lyFcN9kzMjKyHc8mOt4Q5GXc0jR9Y77od6kOZ2WjjojI5VEUpZW9wopeGATJC5MkyZVE9B0iOqeiterqskTkBWa+vdFobBsbG5vpajBDweYFieN4OTPvJaKPWai7iPyFiNajm7RXbdOCJEnyARHZx8yvbw/XYJyVd5M9jUbjRnSTxWtqUpA4js90HzeI6LODccvrskA3WZqbOUHy/eEHmPktS+MZ/DPQTdBBThGI47heq9V2ZlnmdvsNDf6t31mG6Cbz8zLRQeI4Xk1EbtHvos5uG1tnu25CRN9oNpvb8Wzyv9oPtCD5/vBrmflrRLTM1u2uzxbd5CV2AytImqbnich+Inq3/lYpNfIYEb2u1Bm6HFxEdkVR9JUuh+nr8IEUJE3TTVmW3cHMr61iddxq/fLlyzefOHHiwizL7iOiN1fxOt01We8mAyVIvj/8h0T04SrecCIyzcwbwzD82enrc68jffLJJ2+t6D6TU5eZP5vc1mw2d1h7NhkYQZIk+VC+6Od7f3i7Lv6Sma8KguBf8wW0Wq1L0E3aRenvvL4XxO0Pf+aZZ77NzJ/0h62jmU4Q0ZfCMLxzqSh0k6UI+f/3vhYkSRL3AP6jCu0Pf2UFDw4PD28YHx8/2klp0U06oVXuuX0pyKFDh844efLkrUR0TRX/VC0is0S0IwxDt6fE7cno+OiXblKr1XYvW7bspkF9Nuk7QfL94fcrXwrd8Y2qCPjT8PDwuvHx8T8qYl8Vgm5SBEX9GH0jiIgMtVqtG7Is287MdX3KpUWKiNzebDa/WvT/pugmpdVsyYH7QpD8pdAPENHbl8yoNyc8RkSfCMPwN2VOj25SJt35x668IHEcf56IbmPmM/3jWXpGEbmn2Wx+YWxszP21qvQD3aR0xP83QWUFmZqaOndmZsatMldyf/h8i34+S4du4od2JQVxL4UmIrcNtqr7wxdd9PNTOqI+6SZzzLy70WjsLPrZzAfnSgnSarXOybLs+0T0cR/JK+Y4ISJboii6SxFbWki/dBNmXheG4R9KA1HCwJURxL0UWkTuq/D+8IMickUURY+XUIeuh+ynbiIiN0VR5NaKKn/0XJB8f/htROQexqt4zIiIW/TbrV3085lUn3STQ8y8vh+6SU8FSdM0yrLsgQrvDy900c+XKH3UTXaJyM4qd5OeCOJeCp0kyQ4iuqGi+8NPvQC60Whs7ccHy9Miopt0/1+Sd0Hy/eH3V/il0I8x8xVBEPyue7y9HwHdpLsaeBNERDhN02tE5BZmbnR32aVF72s0Gpt9LfqVlsU8A6Ob6Gh7ESR/KbT7Wvp7dJdZblSvF/3Kze6l0fulmxCR+6b2zVV4NildkDiO3UYmt6HpbF83QofzVGLRr8Nr7up0dJP28ZUmiPtNv+PHj+8josvbvxyvZ/6Hma8OgsDtYTd3uG5y7NixW/I9NZXNn5k/3csalSJI/vKEnxNRVEXyIvLbWq22IQgC9y1c04fblZnv5a/sq1jdOlQURTf3olCFC5L/CfcRZn5HLxJaYs4ZZt4+MTHhvh2s2ulXwZy6vqR+eDZxC4tBELjnWK9H4YLEcfwtZv6i1yzamExE/kxE66IommrjdJOnxHH8LmY+QETnVQ2AiJys1+sXjI+P/93ntRUqiNvYNDs7e7hii3+nfqcPv6zU3m1V8W5yZxiGXn+yolBB4ji+i5k/1V4pyj9LRB4fGhpaPzEx8Uj5sw3WDFXtJvV6feTiiy/+ty/ahQmSvyj66Qq97nNvo9G4ehAX/XzdHFXsJu79Z0EQ3OuLQWGCtFqt92ZZ9mtfF77QPCJyPH+950O9vpZBmb9i3eTuMAw3+WJbmCDuhdEi0us1hYfcR7yFXu/pC+ogzlOVbiIiv4qiaK0vxoUJkiTJViJyv8Ph/RCR52q12pZeLih5T7pHE1Zg3SQJw9Db+lqRgmxxXxHvQd0qvdOvBzxKn7LH3eThMAzfX3qS+QRFCrKOiNy7q3we14Vh6HYj4ugBAfdsQkT3eN7wtj8Mw6t8pVuYIFNTUytnZma87NcWkal6vb6+qNd7+oI9iPP0oJtsCsPwbl8sCxPEXXCSJI96eGfu7jAMr/cFCPO0R8BXN+nbdRCHMU3Ta0VkT3tIOz5roHb6dZx9HwR46Cb9vZLuvuI+PT39N2Z+Q8H13HvWWWdds3r16ucKHhfDlUCgjG4iIs/XarXzgyD4RwmXvOCQhX7EcrPEcfwRZv5pQUm4nytznzlf/E2/gsbFMCUTKGG/yWVhGP6k5Mt+1fCFC5I/i7g3ltzUZTIPNRqNjWNjY8e7HAfhPSRQ0O7FbWEYfr0XaZQiSN5JvsfMn1MkZXqnn4JX5UPyZxP3a1ubO7zYp4noWp9/tXrl9ZUmSP7Qfmn+9ZO29he4nxKo1Wo7sNOvw9uoT06P4/giZnafLi5b4pLdO5D35/fCvL8K7CvlUgU5nUSSJBuIaOMCP2VwREQertfruzv9sUtfkDBPsQQmJyffOjs7u5GZ1xBRk4heICInwj+ZOV2xYsWPV65c+Xyxs+pG8yLIyy8tTdPzarXauVmWnQiCwK2b4ACByhLwLkhlSeDCQGAeAhAEtwUILEIAguD2AAEIgnsABHQE0EF03BBlhAAEMVJopKkjAEF03BBlhAAEMVJopKkjAEF03BBlhAAEMVJopKkjAEF03BBlhAAEMVJopKkjAEF03BBlhAAEMVJopKkjAEF03BBlhAAEMVJopKkjAEF03BBlhAAEMVJopKkjAEF03BBlhAAEMVJopKkjAEF03BBlhAAEMVJopKkjAEF03BBlhAAEMVJopKkjAEF03BBlhAAEMVJopKkjAEF03BBlhAAEMVJopKkjAEF03BBlhAAEMVJopKkjAEF03BBlhAAEMVJopKkjAEF03BBlhAAEMVJopKkjAEF03BBlhAAEMVJopKkjAEF03BBlhAAEMVJopKkjAEF03BBlhAAEMVJopKkjAEF03BBlhAAEMVJopKkjAEF03BBlhAAEMVJopKkjAEF03BBlhAAEMVJopKkjAEF03BBlhAAEMVJopKkjAEF03BBlhAAEMVJopKkjAEF03BBlhAAEMVJopKkjAEF03BBlhAAEMVJopKkjAEF03BBlhAAEMVJopKkjAEF03BBlhAAEMVJopKkjAEF03BBlhAAEMVJopKkjAEF03BBlhAAEMVJopKkjAEF03BBlhAAEMVJopKkjAEF03BBlhAAEMVJopKkjAEF03BBlhAAEMVJopKkjAEF03BBlhAAEMVJopKkjAEF03BBlhAAEMVJopKkjAEF03BBlhAAEMVJopKkjAEF03BBlhAAEMVJopKkjAEF03BBlhMB/AVyuZwXGIJM/AAAAAElFTkSuQmCC"},null);if(a.arrow&&(t=a.arrow({isShowWeek:r.value})),m.value)return Oe("div",{class:"ctrl-img",onClick:y,style:{"margin-top":"dialog"===e.model?"".concat(g.value,"px"):"unset"}},[t])};return()=>(()=>{if(v.value||"inline"===e.model)return Oe("div",{class:"hash-calendar ".concat("inline"===e.model?"calendar_inline":""),style:Vg({},D()),onClick:A},[U(),Oe("div",{class:"calendar_content",style:{height:"".concat(g.value,"px")},onClick:e=>{e.cancelable&&e.preventDefault(),e.stopImmediatePropagation()}},["time"!==e.pickerType?Oe(fg,Te({ref:i,show:o.value,onHeight:O,defaultDate:h.value,onTouchstart:T,onTouchmove:j,onTouchend:L,onSlidechange:b,onYearMonthChange:R,onChange:E,onOverRange:()=>n("overRange"),onClick:P,showWeekView:r.value,"onUpdate:showWeekView":z},zm(e,["minDate","maxDate","maxRange","disabledWeekView","markType","selectType","allowSameDay","defaultYearMonth","markDate","disabledDate","lang","weekStart","disabledScroll","scrollChangeDate","showNotCurrentMonthDay","firstDayOfMonthClassName","todayClassName","checkedDayClassName","notCurrentMonthDayClassName","disabledClassName"])),zm(a,["week","day"])):"","single"===e.selectType&&F(),e.changeYearFast?Oe(Sg,Te({calendarContentHeight:g.value,currentYearMonth:c.value,type:f.value,onTouchstart:T,onTouchmove:j,onTouchend:L,onSlidechange:b,onClick:N},zm(e,["minDate","maxDate","disabledDate","lang","disabledScroll","checkedDayClassName","notCurrentMonthDayClassName","disabledClassName"])),null):""]),$()])})()}});var Rg,Fg=((Rg=zg).install=e=>{const{name:t}=Rg;t&&e.component(t,Rg)},Rg);function $g(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!Ve(e)}Li.extend(_m);const qg=xe({name:"IBizCalendarControl",components:{VueHashCalendar:Fg},props:{modelData:{type:Object,required:!0},context:{type:Object,required:!0},params:{type:Object,default:()=>({})},provider:{type:Object},mdctrlActiveMode:{type:Number,default:void 0},loadDefault:{type:Boolean,default:!1}},setup(){const e=A((...e)=>new Oa(...e)),t=n("control-".concat(e.model.controlType.toLowerCase())),a=je([]),i=je(e.model.calendarStyle),o=je(),r=qe(()=>{if("TIMELINE"!==e.model.calendarStyle||e.state.isLoading)return!0;return!Object.values(e.loadMoreItems).some(e=>e.curPage<e.totalPage)}),s=je(!1),l=je(),c=je(),u=je({}),d=je([]),h=async t=>{const n=function(e){const t=new Date(e.getFullYear(),e.getMonth(),1),n=new Date(e.getFullYear(),e.getMonth()+1,1);return{srfstartdate:Li(t).format("YYYY-MM-DD HH:mm:ss"),srfenddate:Li(n).format("YYYY-MM-DD HH:mm:ss")}}(t);d.value=await e.load({viewParam:n}),(t=>{const n=new Date(t);if(u.value[Li(n).format("YYYY-MM")]){const t=(e,t)=>{const n=e.concat(t),a=new Set;return n.filter(e=>{const t=e.id+e.itemType;return!a.has(t)&&(a.add(t),!0)})};u.value[Li(n).format("YYYY-MM")]=t(u.value[Li(n).format("YYYY-MM")],e.state.items)}else u.value[Li(n).format("YYYY-MM")]=[...d.value]})(e.state.selectedDate)},p=async t=>{const n=function(e){const t=new Date(e);t.setHours(0,0,0,0);const n=new Date(e);return n.setDate(n.getDate()+1),n.setHours(0,0,0,0),{srfstartdate:Li(t).format("YYYY-MM-DD HH:mm:ss"),srfenddate:Li(n).format("YYYY-MM-DD HH:mm:ss")}}(t);a.value=await e.load({viewParam:n})};$e(()=>e.state.selectedDate,(t,n)=>{var a;t&&Li(t).format("YYYY-MM-DD")!==Li(n).format("YYYY-MM-DD")&&(null==(a=l.value)||a.reset(e.state.selectedDate))},{deep:!0,immediate:!0});const f=()=>{s.value=!1};yo(f);return{c:e,ns:t,visible:s,calendar:l,loadItems:a,currentDate:c,infiniteScroll:o,disabledLodeMore:r,currentType:i,toDay:()=>{l.value.today()},onCustom:()=>{const t=Li(e.state.selectedDate).format("YYYY-MM-DD").split("-");c.value=t,s.value=!0},onConfirm:()=>{const e=c.value.join("-"),t=new Date(e);l.value.reset(t),s.value=!1},dateChange:async t=>{e.state.selectedDate=t,await p(e.state.selectedDate);u.value[Li(t).format("YYYY-MM")]||await h(e.state.selectedDate)},closeDrawer:f,calcItemStyle:e=>({color:e.color,backgroundColor:e.bkColor}),handleScrollLoad:async()=>{if(!o.value||r.value)return;const t=o.value.scrollTop;o.value.scrollHeight-t-o.value.clientHeight<10&&await e.load({isLoadMore:!0})},calcMarkerByDate:e=>{const t=Li().set("year",e.year).set("month",e.month).set("date",e.day),n=Object.values(u.value).flat().filter(e=>t.isBetween(e.beginTime,e.endTime,"D","[]")),a=new Map;return n.forEach(e=>{a.has(e.itemType)||a.set(e.itemType,e)}),Array.from(a.values())},handleSlidechange:t=>{if("WEEK"===i.value){if("left"===t){const t=Li(e.state.selectedDate).add(7,"day");setTimeout(()=>{l.value.reset(t.toDate())},500)}if("right"===t){const t=Li(e.state.selectedDate).subtract(7,"day");setTimeout(()=>{l.value.reset(t.toDate())},500)}}},onCalendarTypeChange:e=>{i.value=e.toUpperCase()}}},render(){const e=e=>this.calcMarkerByDate(e).map(e=>{const t=this.calcItemStyle(e);return Oe("div",{style:t,class:[this.ns.em("mark","item"),this.ns.em("mark",e.itemType)]},null)}),t=(e,t)=>{const{context:n,params:a}=this.c,i=this.c.state.selectedData.findIndex(t=>t.deData.srfkey===e.deData.srfkey),o=[this.ns.b("item"),this.ns.bm("item","panel"),this.ns.is("active",-1!==i)];return Oe(De("iBizControlShell"),{class:o,data:e.deData,modelData:t,context:n,params:a,onClick:t=>(t.stopPropagation(),this.c.onRowClick(e)),onDblclick:t=>(t.stopPropagation(),this.c.onDbRowClick(e))},null)},n=(e,t=!0)=>{const n=this.c.state.selectedData.findIndex(t=>t.deData.srfkey===e.deData.srfkey),a=[this.ns.b("item"),this.ns.bm("item","default"),this.ns.is("active",-1!==n)];return Oe(De("van-cell"),{class:a,key:e.deData.srfkey,"is-link":t,title:e.text||"",onClick:()=>this.c.onRowClick(e)},null)},a=()=>{const{isLoaded:e}=this.c.state;if(e)return e&&Oe(De("iBizNoData"),{text:this.c.model.emptyText,emptyTextLanguageRes:this.c.model.emptyTextLanguageRes},null)},i=e=>0===e.length?a():e.map(e=>{var a;const i=(null==(a=this.c.model.sysCalendarItems)?void 0:a.find(t=>e.itemType===t.itemType)).layoutPanel;return i?t(e,i):n(e)}),o=e=>{const t=this.loadItems.filter(t=>t.itemType===e);return i(t)},r=()=>Oe("div",{class:this.ns.b("header-toolbar"),onClick:e=>e.stopPropagation()},[Oe("div",{class:this.ns.be("header-toolbar","select-day")},[Li(this.c.state.selectedDate).format("YYYY-MM-DD")]),Oe("div",{class:this.ns.be("header-toolbar","switch-toolbar")},[Oe("div",{class:this.ns.bem("header-toolbar","switch-toolbar","item"),onClick:this.onCustom},[ibiz.i18n.t("control.calendar.customPicker")]),Oe("div",{class:this.ns.bem("header-toolbar","switch-toolbar","item"),onClick:this.toDay},[ibiz.i18n.t("control.calendar.today")])])]),s=()=>[Oe("div",{class:this.ns.b("content")},[Oe(Fg,{ref:"calendar",pickerType:"date",onChange:e=>this.dateChange(e),"default-datetime":this.c.state.selectedDate,"scroll-change-date":"WEEK"!==this.currentType,"show-week-view":"WEEK"===this.c.model.calendarStyle,onSlidechange:this.handleSlidechange,onCalendarTypeChange:this.onCalendarTypeChange},{day:({date:t})=>Oe("div",{class:this.ns.e("day")},[Oe("span",null,[null==t?void 0:t.day]),Oe("div",{class:this.ns.e("mark")},[e(t)])]),action:()=>r()})]),Oe("div",{class:this.ns.b("footer")},[Oe(De("van-tabs"),null,{default:()=>{var e;return[null==(e=this.c.model.sysCalendarItems)?void 0:e.map(e=>{let t,n=e.name;return e.nameLanguageRes&&(n=ibiz.i18n.t(e.nameLanguageRes.lanResTag,e.name)),Oe(De("van-tab"),{title:n,"title-class":this.ns.be("footer","tab-item"),"title-style":{["--".concat(this.ns.b(),"-tab-bg")]:e.bkcolor}},{default:()=>[Oe(De("van-list"),null,$g(t=o(e.itemType))?t:{default:()=>[t]})]})})]}})]),Oe(De("van-popup"),{"close-on-popstate":!0,show:this.visible,"onUpdate:show":e=>this.visible=e,style:{height:"auto"},teleport:"body",position:"bottom"},{default:()=>[Oe(De("van-date-picker"),{modelValue:this.currentDate,"onUpdate:modelValue":e=>this.currentDate=e,onConfirm:this.onConfirm,onCancel:this.closeDrawer,title:ibiz.i18n.t("control.calendar.pickerDate")},null)]})],l=()=>{if(0===this.c.state.items.length)return a();const e=new Map,i=[];return this.c.state.items.forEach(t=>{const n=t[this.c.groupTimeField];n&&(e.has(n)||e.set(n,[]),e.get(n).push(t))}),e.forEach((e,t)=>{i.push({key:"".concat(t),caption:t?Li(t).format(this.c.timelineCaptionFormat):"".concat(t),children:e})}),Oe("div",{ref:"infiniteScroll",class:this.ns.b("timeline"),onScroll:un(this.handleScrollLoad,300)},[i.map(e=>Oe("div",{class:this.ns.be("timeline","item")},[Oe("div",{class:this.ns.bem("timeline","item","timespan")},[e.caption]),e.children.map(e=>{var a;const i=null==(a=this.c.model.sysCalendarItems)?void 0:a.find(t=>e.itemType===t.itemType),o={};return(null==i?void 0:i.bkcolor)&&Object.assign(o,{["--".concat(this.ns.b(),"-timeline-item-bg-color")]:i.bkcolor}),Oe("div",{class:this.ns.bem("timeline","item","content"),style:o},[(null==i?void 0:i.layoutPanel)?t(e,i.layoutPanel):n(e,!1)])})]))])};return this.c.state.isCreated&&Oe(De("iBizControlBase"),{controller:this.c},{default:()=>["TIMELINE"===this.c.model.calendarStyle?l():s()]})}});var Wg=Object.defineProperty,Hg=(e,t,n)=>(((e,t,n)=>{t in e?Wg(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,t+"",n),n);class Gg{constructor(){Hg(this,"component","IBizCalendarControl")}}e("aL",Gg);const Yg=e("aK",k(qg,function(e){e.component(qg.name,qg),Bn(Un.CALENDAR,()=>new Gg)}));function Xg(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!Ve(e)}const Jg=xe({name:"IBizWizardPanelControl",props:{modelData:{type:Object,required:!0},context:{type:Object,required:!0},params:{type:Object,default:()=>({})},provider:{type:Object}},setup(){const e=A((...e)=>new Da(...e)),t=n("control-".concat(e.model.controlType.toLowerCase()));return{c:e,ns:t}},render(){var e,t,n,a,i;const{activeFormTag:o,buttonsState:r}=this.c.state;let s=null,l=null,c=null;if(o&&this.c.activeWizardForm){if(this.c.providers[o]){const t=De(this.c.providers[o].component),n=null==(e=this.c.model.deeditForms)?void 0:e.find(e=>{var t;return o===(null==(t=e.dewizardForm)?void 0:t.formTag)});l=ze(t,{class:this.ns.e("form"),modelData:n,context:this.c.context,params:this.c.params,key:o,onMounted:e=>this.c.onFormMounted(o,e),onSaveSuccess:e=>this.c.onFormSaved(e)})}const{dewizard:u}=this.c.model;c=u&&Oe("div",{key:"".concat(o,"footer"),class:this.ns.b("footer")},[(null==(t=r["".concat(o,"@PREV")])?void 0:t.visible)&&Oe(De("van-button"),{class:this.ns.be("footer","prev"),onClick:()=>{this.c.onPrevClick()}},{default:()=>[u.prevCaption?u.prevCaption:ibiz.i18n.t("control.wizardPanel.prev")]}),(null==(n=r["".concat(o,"@NEXT")])?void 0:n.visible)&&Oe(De("van-button"),{type:"primary",class:this.ns.be("footer","next"),onClick:()=>{this.c.onNextClick()}},{default:()=>[u.nextCaption?u.nextCaption:ibiz.i18n.t("control.wizardPanel.next")]}),(null==(a=r["".concat(o,"@FINISH")])?void 0:a.visible)&&Oe(De("van-button"),{type:"primary",class:this.ns.be("footer","finish"),onClick:()=>{this.c.onFinishClick()}},{default:()=>[u.finishCaption?u.finishCaption:ibiz.i18n.t("control.wizardPanel.finish")]})]);const{dewizardSteps:d}=u;if(this.c.model.showStepBar&&d&&d.length>0){let e;const t=this.c.steps.indexOf(this.c.stepTags["".concat(this.c.model.name,"_form_").concat(null==(i=this.c.state.activeFormTag)?void 0:i.toLowerCase())]);s=Oe(De("van-steps"),{active:t},Xg(e=d.map(e=>{const t={default:()=>{var t;return Oe("span",{class:[this.ns.bm("header","title"),null==(t=e.titleSysCss)?void 0:t.cssName]},[Mt(e.title)])}};if(e.sysImage){const n=Oe(De("iBizIcon"),{class:this.ns.bm("header","step-icon"),icon:e.sysImage},null);Object.assign(t,{"active-icon":n,"finish-icon":n,"inactive-icon":n})}return Oe(De("van-step"),null,Xg(t)?t:{default:()=>[t]})}))?e:{default:()=>[e]})}}return Oe(De("iBizControlBase"),{controller:this.c,class:[this.ns.b(),this.ns.is("header",this.c.model.showStepBar)]},{default:()=>[s,l,c]})}});var Kg=Object.defineProperty,Qg=(e,t,n)=>(((e,t,n)=>{t in e?Kg(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,t+"",n),n);class Zg{constructor(){Qg(this,"component","IBizWizardPanelControl")}}const eb=e("aM",k(Jg,function(e){e.component(Jg.name,Jg),Bn(Un.WIZARD_PANEL,()=>new Zg)}));const tb=xe({name:"IBizTreeExpBarControl",props:{modelData:{type:Object,required:!0},context:{type:Object,required:!0},params:{type:Object,default:()=>({})},provider:{type:Object},srfnav:{type:String,required:!1},noNeedNavView:{type:Boolean,required:!1},loadDefault:{type:Boolean,default:!0}},setup(){const e=A((...e)=>new Ta(...e)),t=n("control-".concat(e.model.controlType.toLowerCase())),{renderTitle:a,renderSearchBar:i}=function(e,t){const a=n("exp-bar"),i=un(()=>{e.load()},500),o=t=>{var n;e.state.query=null==(n=t.target)?void 0:n.value,i()};return{renderTitle:()=>{const{model:n}=e;if(!n.showTitleBar)return null;let i=n.title;return n.titleLanguageRes&&(i=ibiz.i18n.t(n.titleLanguageRes.lanResTag,n.title)),Oe("div",{class:[t.b("caption"),a.b("caption")]},[n.sysImage&&Oe(De("iBizIcon"),{class:[a.be("caption","icon")],icon:n.sysImage},null),i&&Oe("span",{class:[t.be("caption","text")]},[i])])},renderSearchBar:()=>{var n,i;const{model:r}=e;if(!r.enableSearch)return null;const s=null==(i=null==(n=e.view.model.viewLayoutPanel)?void 0:n.controls)?void 0:i.find(e=>"searchbar"===e.id);if(s){const t={context:e.context,params:e.params},n=De("IBizControlShell");return ze(n,{modelData:s,...t})}return Oe(De("van-field"),{"model-value":e.state.query,class:[t.b("quick-search"),a.b("quick-search")],placeholder:e.state.placeHolder,onInput:o},{prefix:()=>Oe("ion-icon",{class:t.e("search-icon"),name:"search"},null)})}}}(e,t);!function(e){const t=e.view.modal.routeDepth;if(t){const n=Ni();let a;x(({currentKey:i,fullPath:o})=>{if(a){if(a===i){const a=p(n),{srfnav:i}=a.pathNodes[t-1];e.onRouterChange({srfnav:i||"",path:o})}}else a=i},t)}}(e);const o=qe(()=>e.view.model.viewType&&!["DEMOBMPICKUPVIEW","DEMOBPICKUPVIEW"].includes(e.view.model.viewType));return{c:e,ns:t,navigational:o,renderTitle:a,renderSearchBar:i}},render(){const{state:e,XDataModel:t}=this.c,{isCreated:n}=e,a={captionbar:this.renderTitle,searchbar:this.renderSearchBar};if(n&&t){const e=this.c.controlPanel?t.name:"default";a[e]=()=>Oe(De("iBizControlShell"),{context:this.c.context,params:this.c.params,modelData:t,singleSelect:!0,navigational:this.navigational,mdctrlActiveMode:1,loadDefault:!1,"default-expanded-keys":this.c.defaultExpandedKeys},null)}return Oe(De("iBizControlBase"),{controller:this.c},function(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!Ve(e)}(a)?a:{default:()=>[a]})}});var nb=Object.defineProperty,ab=(e,t,n)=>(((e,t,n)=>{t in e?nb(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,t+"",n),n);class ib{constructor(){ab(this,"component","IBizTreeExpBarControl")}}const ob=e("aN",k(tb,function(e){e.component(tb.name,tb),Bn(Un.TREE_EXP_BAR,()=>new ib)}));var rb=Object.defineProperty,sb=(e,t,n)=>(((e,t,n)=>{t in e?rb(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n),n);class lb extends oa{constructor(){super(...arguments),sb(this,"counter"),sb(this,"router")}setActive(e){throw new Error("Method not implemented.")}get navPos(){var e;return null==(e=this.view.layoutPanel)?void 0:e.panelItems.nav_pos}get viewNavPos(){var e;return null==(e=this.view.layoutPanel)?void 0:e.panelItems.view_nav_pos}get form(){return this.view.getController("form")}get isCreate(){return this.getData()[0].srfuf!==va.UPDATE}getData(){var e;return(null==(e=this.form)?void 0:e.getData())||[{}]}setRouter(e){this.router=e}get routeDepth(){return this.view.modal.routeDepth}initState(){super.initState(),this.state.drBarItems=[],this.state.srfnav="",this.state.isCalculatedPermission=!1,this.state.hideEditItem=!!this.model.hideEditItem}async onCreated(){await super.onCreated(),await this.initCounter()}calcItemStateByCounter(){if(this.state.drBarItems.forEach(e=>{var t;if(null==(t=e.children)?void 0:t.length)e.children.forEach(e=>{const t=ba(e,this.counter);void 0!==t&&(e.visible=t)}),e.visible=e.children.some(e=>e.visible);else{const t=ba(e,this.counter);void 0!==t&&(e.visible=t)}}),this.state.selectedItem){const{visible:e,defaultVisibleItem:t}=this.getItemVisibleState(this.state.selectedItem);!e&&t&&this.handleSelectChange(t.tag)}}getItemVisibleState(e){let t,n=!0;return this.state.drBarItems.forEach(a=>{if(a.children){t||(t=a.children.find(e=>e.visible));const i=a.children.find(t=>t.tag===e);i&&(n=!!i.visible)}else!t&&a.visible&&(t=a),a.tag===e&&(n=!!a.visible)}),{visible:n,defaultVisibleItem:t}}async calcPermitted(e){var t;let n=!0;const a=(null==(t=this.getData())?void 0:t.length)?this.getData()[0]:void 0,i=await fa(e,this.context,this.params,this.model.appDataEntityId,this.model.appId,a);void 0!==i&&(n=i),e.visible=n}async calcDrBarItemsState(){await Promise.all(this.state.drBarItems.map(async e=>{var t;(null==(t=e.children)?void 0:t.length)?(await Promise.all(e.children.map(async e=>{await this.calcPermitted(e)})),e.visible=e.children.some(e=>e.visible)):await this.calcPermitted(e)})),this.calcItemStateByCounter(),this.state.isCalculatedPermission=!0}async onMounted(){await super.onMounted(),this.form&&(this.form.evt.on("onLoadSuccess",async e=>{const t=e.data[0];this.view.state.srfactiveviewdata=t,Object.prototype.hasOwnProperty.call(t,"srfreadonly")&&(this.view.context.srfreadonly=t.srfreadonly),await this.calcDrBarItemsState(),this.handleFormChange()}),this.form.evt.on("onLoadDraftSuccess",()=>{this.handleFormChange()}),this.form.evt.on("onSaveSuccess",()=>{this.handleFormChange()})),this.initDRBarItems(),this.form||await this.calcDrBarItemsState(),this.form&&this.form.state.isLoaded&&this.doDefaultSelect()}doDefaultSelect(){var e;const t=null==(e=this.view.layoutPanel)?void 0:e.panelItems.view_form;t&&(t.state.visible=!1,t.state.keepAlive=!1),this.state.hideEditItem||this.state.srfnav?this.isCreate&&(this.state.defaultItem=this.model.uniqueTag):this.setVisible("form")}handleFormChange(){const e=this.isCreate;this.setDRBarItemsState(this.state.drBarItems,e)}setDRBarItemsState(e,t){e.forEach(e=>{e.tag!==this.model.uniqueTag&&(e.disabled=t),e.children&&this.setDRBarItemsState(e.children,t)})}initDRBarItems(){const{dedrctrlItems:e,dedrbarGroups:t}=this.model,n=[];if(!this.state.hideEditItem){const{editItemCaption:e,editItemCapLanguageRes:t,editItemSysImage:a,uniqueTag:i}=this.model;let o=e;t&&(o=ibiz.i18n.t(t.lanResTag,e)),n.push({tag:i,caption:o,disabled:!1,visible:!this.state.hideEditItem,sysImage:a,fullPath:this.router.currentRoute.value.fullPath}),this.state.defaultItem=i}t&&e&&t.forEach(t=>{const a=e.filter(e=>e.dedrbarGroupId===t.id);let i=t.caption;t.capLanguageRes&&(i=ibiz.i18n.t(t.capLanguageRes.lanResTag,t.caption)),n.push({tag:t.id,visible:!1,caption:i,sysImage:t.sysImage,children:a.map(e=>{let t=e.caption;e.capLanguageRes&&(t=ibiz.i18n.t(e.capLanguageRes.lanResTag,e.caption));const{sysImage:n,counterId:a,enableMode:i,counterMode:o,testScriptCode:r,dataAccessAction:s,testAppDELogicId:l}=e;return{tag:e.id,caption:t,sysImage:n,visible:!1,disabled:!1,counterId:a,dataAccessAction:s,enableMode:i,testAppDELogicId:l,testScriptCode:r,counterMode:o}})})}),this.state.drBarItems=n;const a=!!this.routeDepth&&ma(this.routeDepth),i=this.view.state.srfnav?this.view.state.srfnav:n[0].children[0].tag;this.handleSelectChange(i,a)}handleSelectChange(e,t=!1){var n;const{selectedItem:a}=this.state;if(e!==a){this.state.selectedItem=e;const a=null==(n=this.model.dedrctrlItems)?void 0:n.find(t=>t.id===e);a?(this.setVisible("navPos"),this.openNavPosView(a,t)):(this.setVisible("form"),this.routeDepth&&this.router.push(this.state.drBarItems[0].fullPath))}}setVisible(e){var t;if(this.state.hideEditItem)return;const n=null==(t=this.view.layoutPanel)?void 0:t.panelItems.view_form;"form"===e?(n&&(n.state.visible=!0,n.state.keepAlive=!0),this.viewNavPos&&(this.viewNavPos.state.visible=!1,this.viewNavPos.state.keepAlive=!0)):(n&&(n.state.visible=!1,n.state.keepAlive=!0),this.viewNavPos&&(this.viewNavPos.state.visible=!0,this.viewNavPos.state.keepAlive=!0))}prepareParams(e){const{navigateContexts:t,navigateParams:n}=e,a={navContexts:t,navParams:n},i={context:this.context,params:this.params,data:this.getData()[0]},{resultContext:o,resultParams:r}=ga(a,i);return{context:Object.assign(this.context.clone(),o),params:{...this.params,...r}}}async openNavPosView(e,t=!1){var n;const{context:a,params:i}=this.prepareParams(e);a.currentSrfNav=e.id,this.state.srfnav=e.id,null==(n=this.navPos)||n.openView({key:e.id,context:a,params:i,viewId:e.appViewId,isRoutePushed:t,modalOptions:{replace:!0}})}async initCounter(){const{appCounterRefs:e}=this.model,t=null==e?void 0:e[0];t&&(this.counter=await pa.getCounterByRef(t,this.context,{...this.params}),this.calcItemStateByCounter=this.calcItemStateByCounter.bind(this),this.counter.onChange(this.calcItemStateByCounter))}async onDestroyed(){await super.onDestroyed(),this.counter&&(this.counter.offChange(this.calcItemStateByCounter),this.counter.destroy())}}const cb=xe({name:"IBizDrBarControl",props:{modelData:{type:Object,required:!0},context:{type:Object,required:!0},params:{type:Object,default:()=>({})},provider:{type:Object},srfnav:{type:String,required:!1},hideEditItem:{type:Boolean,default:void 0}},setup(){var e;const t=A((...e)=>new lb(...e)),a=n("control-".concat(t.model.controlType.toLowerCase())),i=Ii();t.setRouter(i);const o=Le({}),r=je(!1),s=(null==(e=t.view.model.tabLayout)?void 0:e.toLowerCase())||"top",l=qe(()=>{const e=[];return t.state.drBarItems.forEach(t=>{t.children&&e.push(...t.children)}),e}),c=qe(()=>l.value.find(e=>e.tag===t.state.selectedItem)),u=je(),d=qe({get:()=>void 0===u.value?l.value.findIndex(e=>e.tag===t.state.selectedItem):u.value,set:e=>{u.value=e}}),h=e=>{Object.assign(o,e)};t.evt.on("onCreated",()=>{t.counter&&t.counter.onChange(h,!0)});const p=e=>{r.value=!1,t.handleSelectChange(e)},f=e=>{e.stopPropagation(),r.value=!r.value};Ue(()=>{var e;null==(e=t.counter)||e.offChange(h)});return{c:t,ns:a,tabPosition:s,renderDefault:()=>{let e;return Oe(De("van-sidebar"),{modelValue:d.value,"onUpdate:modelValue":e=>d.value=e,class:a.e("default")},function(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!Ve(e)}(e=t.state.drBarItems.map(e=>{var t;return e.visible?[Oe("div",{class:a.em("default","group")},[Oe("div",{class:a.em("default","group-title")},[e.sysImage&&Oe(De("iBizIcon"),{icon:e.sysImage},null),Oe("div",{class:"caption"},[e.caption])])]),null==(t=e.children)?void 0:t.map(e=>e.visible?Oe(De("van-sidebar-item"),{disabled:e.disabled,class:a.em("default","item"),badge:e.counterId?o[e.counterId]:null},{title:()=>Oe("div",{class:a.em("default","item-title"),onClick:()=>p(e.tag)},[e.sysImage&&Oe(De("iBizIcon"),{icon:e.sysImage},null),Oe("div",{class:"caption"},[e.caption])])}):null)]:null}))?e:{default:()=>[e]})},renderDropdownList:()=>Oe(De("van-popover"),{class:a.e("dropdown-list"),placement:"bottom-start",show:r.value,"onUpdate:show":e=>r.value=e},{default:()=>Oe("div",{class:a.e("popover")},[t.state.drBarItems.map(e=>{var n;return e.visible?[Oe("div",{class:[a.em("popover","group")]},[e.sysImage&&Oe(De("iBizIcon"),{icon:e.sysImage},null),Oe("div",{class:"caption"},[Oe("span",{class:"text"},[e.caption])])]),null==(n=e.children)?void 0:n.map(e=>e.visible?Oe("div",{class:[a.em("popover","item"),a.is("disabled",e.disabled)],onClick:()=>p(e.tag)},[e.sysImage&&Oe(De("iBizIcon"),{icon:e.sysImage},null),Oe("div",{class:"caption"},[Oe("span",{class:"text"},[e.caption]),e.counterId&&Oe(De("iBizBadge"),{value:o[e.counterId],counterMode:e.counterMode},null)]),e.tag===t.state.selectedItem&&Oe("ion-icon",{name:"checkmark-outline"},null)]):null)]:null})]),reference:()=>Oe(De("van-button"),{onClick:f},{default:()=>{var e,t,n;return[(null==(e=c.value)?void 0:e.sysImage)&&Oe(De("iBizIcon"),{class:a.em("dropdown-list","icon"),icon:c.value.sysImage},null),Oe("span",{class:a.em("dropdown-list","caption")},[null==(t=c.value)?void 0:t.caption,(null==(n=c.value)?void 0:n.counterId)&&Oe(De("iBizBadge"),{value:o[c.value.counterId],counterMode:c.value.counterMode},null)]),Oe("ion-icon",{name:"chevron-down-outline"},null)]}})})}},render(){const{isCreated:e,isCalculatedPermission:t}=this.c.state;return Oe(De("iBizControlBase"),{controller:this.c,class:this.ns.b()},{default:()=>[e&&t&&"top_dropdownlist"===this.tabPosition?this.renderDropdownList():this.renderDefault()]})}});var ub=Object.defineProperty,db=(e,t,n)=>(((e,t,n)=>{t in e?ub(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,t+"",n),n);class hb{constructor(){db(this,"component","IBizDrBarControl")}}const pb=e("aO",k(cb,function(e){e.component(cb.name,cb),Bn(Un.DRBAR,()=>new hb)}));function fb(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!Ve(e)}const vb=xe({name:"IBizViewContentPanelContainer",props:{modelData:{type:Object,required:!0},controller:{type:O,required:!0}},setup(e){var t,a;const i=n("view-content"),o=je(!1),r=je(!1),s=D(),{view:l}=s,c=l.model,u=Ni(),d=je();let h=!1;4===l.modal.viewUsage?h=!1:1===l.modal.viewUsage?(1===l.modal.routeDepth&&"APPINDEXVIEW"!==l.model.viewType||2===l.modal.routeDepth&&("APPINDEXVIEW"===(null==(a=null==(t=l.parentView)?void 0:t.model)?void 0:a.viewType)||u.meta.home))&&(h=!0):2===l.modal.viewUsage&&(h=!0);const p=je(),f=qe(()=>{var t,n;const{appViewParams:a}=(null==(t=e.controller)?void 0:t.panel.view.model)||{},i=null==(n=null==a?void 0:a.find(e=>"srfshowbacktop"===e.id.toLowerCase()))?void 0:n.value;return i?"true"===i:!!ibiz.config.mob.mobShowBackTop&&h}),{id:v}=e.modelData,m=qe(()=>{let t=[i.b(),i.m(v)];return t=[...t,...e.controller.containerClass,i.is("back-top",f.value),i.is("embed",4===l.modal.viewUsage),i.is("hidden",!e.controller.state.visible),i.is("refresh",!0===c.enablePullDownRefresh)],t}),g=e=>{d.value=e.target,r.value=d.value.scrollTop>0};return Be(()=>{it(()=>{var e;null==(e=p.value)||e.$el.addEventListener("scroll",g,!0)})}),Fe(()=>{var e;null==(e=p.value)||e.$el.removeEventListener("scroll",g,!0)}),{ns:i,classArr:m,viewModel:c,contentRef:p,showBackTop:f,isRefreshing:o,isScrollable:h,scrollTarget:d,refreshDisabled:r,refresh:async()=>{try{o.value=!0,await l.call(An.REFRESH)}finally{o.value=!1}}}},render(){var e,t;const n=(null==(t=(e=this.$slots).default)?void 0:t.call(e))||[],a=Oe(De("iBizRow"),{ref:"contentRef",class:this.classArr,layout:this.modelData.layout},{default:()=>[this.showBackTop&&Oe(De("van-back-top"),{target:this.scrollTarget},null),n.map(e=>{const t=e.props;if(!t||!t.controller)return e;const{layoutPos:n}=t.modelData;return Oe(De("iBizCol"),{layoutPos:n,state:t.controller.state},fb(e)?e:{default:()=>[e]})})]});return!0===this.viewModel.enablePullDownRefresh?Oe(De("van-pull-refresh"),{class:this.ns.b("refresh"),modelValue:this.isRefreshing,"onUpdate:modelValue":e=>this.isRefreshing=e,disabled:this.refreshDisabled,onRefresh:this.refresh},fb(a)?a:{default:()=>[a]}):a}});var mb=Object.defineProperty,gb=(e,t,n)=>(((e,t,n)=>{t in e?mb(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,t+"",n),n);class bb{constructor(){gb(this,"component","IBizViewContentPanelContainer")}async createController(e,t,n){const a=new O(e,t,n);return await a.init(),a}}const yb=k(vb,function(e){e.component(vb.name,vb),ja("CONTAINER_CONTENT",()=>new bb)});const wb=xe({name:"IBizViewHeaderPanelContainer",props:{modelData:{type:Object,required:!0},controller:{type:O,required:!0}},setup(e){const t=n("view-header"),a=Ni(),{viewStack:i}=bo(),o=je(!1);ibiz.platform.getShowPresetBack()&&(1===e.controller.panel.view.modal.viewUsage&&i.cacheKeys.length>1&&a.meta.home||2===e.controller.panel.view.modal.viewUsage)&&(o.value=!0);const r=e.controller.panel.view,{id:s}=e.modelData,l=qe(()=>{let n=[t.b(),t.m(s)];return n=[...n,...e.controller.containerClass,t.is("hidden",!e.controller.state.visible)],n}),c=qe(()=>{var e;const{appViewParams:t}=r.model,n=null==(e=null==t?void 0:t.find(e=>"mobshowviewheader"===e.id.toLowerCase()))?void 0:e.value;return n?Object.is(n,"true"):ibiz.platform.getShowViewHeader()});return{ns:t,classArr:l,backButtonVisible:o,view:r,showHeader:c}},render(){var e,t;if(!1===this.controller.state.visible)return;const n=(null==(t=(e=this.$slots).default)?void 0:t.call(e))||[],a={};return this.showHeader||(a.display="none"),Oe(De("iBizRow"),{class:this.classArr,style:a,layout:this.modelData.layout},{default:()=>[Oe(De("iBizPresetViewBack"),{view:this.view},null),n.map((e,t)=>{const n=e.props;return n&&n.controller?Oe(De("iBizCol"),{class:{[this.ns.m("precut-back")]:0===t&&this.backButtonVisible},layoutPos:n.modelData.layoutPos,state:n.controller.state},function(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!Ve(e)}(e)?e:{default:()=>[e]}):e})]})}});var _b=Object.defineProperty,Eb=(e,t,n)=>(((e,t,n)=>{t in e?_b(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,t+"",n),n);class Pb{constructor(){Eb(this,"component","IBizViewHeaderPanelContainer")}async createController(e,t,n){const a=new O(e,t,n);return await a.init(),a}}const Nb=k(wb,function(e){e.component(wb.name,wb),ja("CONTAINER_HEADER",()=>new Pb)});function Ib(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!Ve(e)}const Ab=xe({name:"IBizViewFooterPanelContainer",props:{modelData:{type:Object,required:!0},controller:{type:O,required:!0}},setup(e){const t=n("view-footer"),{id:a}=e.modelData,i=qe(()=>{let n=[t.b(),t.m(a)];return n=[...n,...e.controller.containerClass,t.is("hidden",!e.controller.state.visible)],n});return{ns:t,classArr:i}},render(){var e,t;let n;if(!1===this.controller.state.visible)return;const a=(null==(t=(e=this.$slots).default)?void 0:t.call(e))||[];return Oe(De("iBizRow"),{class:this.classArr,layout:this.modelData.layout},Ib(n=a.map(e=>{const t=e.props;return t&&t.controller?Oe(De("iBizCol"),{layoutPos:t.modelData.layoutPos,state:t.controller.state},Ib(e)?e:{default:()=>[e]}):e}))?n:{default:()=>[n]})}});var kb=Object.defineProperty,Cb=(e,t,n)=>(((e,t,n)=>{t in e?kb(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,t+"",n),n);class Sb{constructor(){Cb(this,"component","IBizViewFooterPanelContainer")}async createController(e,t,n){const a=new O(e,t,n);return await a.init(),a}}const Mb=k(Ab,function(e){e.component(Ab.name,Ab),ja("CONTAINER_FOOTER",()=>new Sb)});var xb=Object.defineProperty,Ob=(e,t,n)=>(((e,t,n)=>{t in e?xb(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n),n);class Db extends La{constructor(){super(...arguments),Ob(this,"loading",!1),Ob(this,"uiActionState"),Ob(this,"isGlobalAIAssistant",!1)}}var Tb=Object.defineProperty,jb=(e,t,n)=>(((e,t,n)=>{t in e?Tb(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,t+"",n),n);class Lb extends Va{constructor(e,t,n){super(e,t,n),jb(this,"placement","right-end"),this.state.uiActionState=this.createUIActionState()}createState(){var e;return new Db(null==(e=this.parent)?void 0:e.state)}get data(){return this.dataParent.data}async onInit(){await super.onInit();const{appId:e,uiactionId:t}=this.model;if(t){const n=await Ba(t,e);this.state.isGlobalAIAssistant="global_ai_assistant"===(null==n?void 0:n.codeName)}this.updateButtonState()}createUIActionState(){const{uiactionId:e,name:t}=this.model;return new Ua(t,this.panel.context.srfappid,e)}async dataChangeNotify(e){await this.updateButtonState(),super.dataChangeNotify(e)}async panelStateNotify(e){await this.updateButtonState(),super.panelStateNotify(e)}async updateButtonState(){await this.state.uiActionState.update(this.panel.context,this.data),this.updateGlobalAIState()}async onActionClick(e){e.stopPropagation(),e.preventDefault();const{uiactionId:t}=this.model;await In.execAndResolved(t,{context:this.panel.context,params:this.panel.params,data:[this.data],view:this.panel.view,event:e,noWaitRoute:!0},this.model.appId)}calcItemVisible(e){!1!==this.state.uiActionState.visible?super.calcItemVisible(e):this.state.visible=!1}calcItemDisabled(e){!0!==this.state.uiActionState.disabled?super.calcItemDisabled(e):this.state.disabled=!0}updateGlobalAIState(){if(!this.state.isGlobalAIAssistant)return;const{appId:e,uiactionId:t,actionType:n,sysImage:a}=this.model;ibiz.util.getGlobalParam().AIAssistantState={appId:e,sysImage:a,actionType:n,uiActionId:t,placement:this.placement,visible:this.state.uiActionState.visible}}}const Vb=xe({name:"IBizPanelButton",props:{modelData:{type:Object,required:!0},controller:{type:Lb,required:!0}},setup(e){const t=n("panel-button"),{caption:a,captionItemName:i,renderMode:o,showCaption:r,sysImage:s,codeName:l}=e.modelData,{panel:c,state:u}=e.controller,{id:d}=e.modelData,h=qe(()=>i&&c.data?c.data[i]:a),p=qe(()=>Object.is(o,"LINK")?"link":Jr(e.modelData)),f=qe(()=>{var n;let a=[t.b(),t.m(d)];return a=[...a,...e.controller.containerClass,t.is("hidden",!e.controller.state.visible),t.is("login-btn","AUTH_LOGINBUTTON"===(null==(n=e.modelData.id)?void 0:n.toUpperCase()))],a});return{ns:t,state:u,sysImage:s,codeName:l,classArr:f,buttonType:p,captionText:h,showCaption:r,handleButtonClick:t=>{e.controller.onActionClick(t)}}},render(){if(this.state.visible)return this.state.isGlobalAIAssistant?Oe(De("iBizAIButton"),null,null):Oe(De("van-button"),{type:this.buttonType,class:this.classArr,disabled:this.state.disabled,onClick:this.handleButtonClick},{default:()=>[Oe("div",{class:this.ns.b("content")},[this.sysImage?Oe(De("iBizIcon"),{class:this.ns.bm("content","icon"),icon:this.sysImage},null):null,this.showCaption?Oe("span",{class:this.ns.bm("content","caption")},[this.captionText]):null])]})}});var Bb=Object.defineProperty,Ub=(e,t,n)=>(((e,t,n)=>{t in e?Bb(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,t+"",n),n);class zb{constructor(){Ub(this,"component","IBizPanelButton")}async createController(e,t,n){const a=new Lb(e,t,n);return await a.init(),a}}const Rb=k(Vb,function(e){e.component(Vb.name,Vb),ja("BUTTON",()=>new zb)});var Fb=Object.defineProperty,$b=(e,t,n)=>(((e,t,n)=>{t in e?Fb(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,t+"",n),n);class qb extends La{constructor(){super(...arguments),$b(this,"wfButtons",[])}}class Wb extends Va{createState(){var e;return new qb(null==(e=this.parent)?void 0:e.state)}get wfButtons(){return this.state.wfButtons}initWFButtons(e){this.state.wfButtons=e}}const Hb=xe({name:"IBizWFActionButton",props:{modelData:{type:Object,required:!0},controller:{type:Wb,required:!0}},setup(e){const t=n("wf-action-button"),{caption:a,showCaption:i,sysImage:o,codeName:r}=e.modelData,{state:s}=e.controller,{id:l}=e.modelData,c=qe(()=>{let n=[t.b(),t.m(l)];return n=[...n,...e.controller.containerClass,t.is("hidden",!e.controller.state.visible)],n}),u=qe(()=>e.controller.state.wfButtons.length>2?"sheet":"default"),d=je(!1);return{ns:t,showCaption:i,sysImage:o,caption:a,codeName:r,classArr:c,state:s,show:d,renderMode:u,handleButtonClick:t=>{e.controller.panel.view.call("WFAction",t)}}},render(){const{wfButtons:e}=this.controller.state,t=()=>e.map(e=>Oe(De("van-button"),{type:"primary",disabled:this.state.disabled,onClick:()=>{this.handleButtonClick(e)}},{default:()=>[e.caption]})),n=()=>[Oe(De("van-button"),{type:"primary",disabled:this.state.disabled,onClick:()=>{this.show=!0}},{default:()=>[this.caption]}),Oe(De("van-action-sheet"),{show:this.show,"onUpdate:show":e=>this.show=e,actions:e,"close-on-click-overlay":!0,"cancel-text":ibiz.i18n.t("app.cancel"),"close-on-click-action":!0,onSelect:this.handleButtonClick},null)];return this.state.visible?Oe("div",{class:this.classArr},["default"===this.renderMode?t():n()]):null}});var Gb=Object.defineProperty,Yb=(e,t,n)=>(((e,t,n)=>{t in e?Gb(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,t+"",n),n);class Xb{constructor(){Yb(this,"component","IBizWFActionButton")}async createController(e,t,n){const a=new Wb(e,t,n);return await a.init(),a}}const Jb=k(Hb,function(e){e.component(Hb.name,Hb),ja("RAWITEM_WF_ACTION_BUTTON",()=>new Xb)});class Kb extends Va{setData(e){if(!e)return;const t=(e,t)=>Date.parse(t.time)-Date.parse(e.time),n=[];let a=Zt(e).usertasks;a&&a.length>0&&(a=a.reverse(),a.forEach(e=>{if(e.identitylinks.length>0){const t=this.acceptingOfficerNoDup("displayname",e.identitylinks);n.push({authorName:t.join("、"),taskName:e.userTaskName,isLink:!0})}e.comments.length>0&&(e.comments.forEach(t=>{Object.assign(t,{taskName:e.userTaskName})}),e.comments.sort(t),n.push(...e.comments))}),this.state.data=n)}acceptingOfficerNoDup(e,t){const n=[];(null==t?void 0:t.length)>0&&e&&t.forEach(t=>{n.push(t[e])});return[...new Set(n)]}getData(){return this.state.data}}function Qb(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!Ve(e)}const Zb=xe({name:"IBizWFStepTrace",props:{controller:{type:Kb,required:!0}},setup:e=>({ns:n("wf-step-trace"),data:qe(()=>e.controller.getData())}),render(){let e;return Oe("div",{class:this.ns.b()},[this.data&&Oe(De("van-steps"),{direction:"vertical"},Qb(e=this.data.map(e=>Oe(De("van-step"),null,{default:()=>[Oe("div",{class:[this.ns.b("task")]},[Oe("div",{class:this.ns.b("task-item")},[Oe(De("van-field"),{readonly:!0,modelValue:e.time,"onUpdate:modelValue":t=>e.time=t,label:ibiz.i18n.t("panelComponent.wfStepTrace.processingComplete")},null)]),Oe("div",{class:this.ns.b("task-item")},[Oe(De("van-field"),{readonly:!0,modelValue:e.taskName,"onUpdate:modelValue":t=>e.taskName=t,label:ibiz.i18n.t("panelComponent.wfStepTrace.processingSteps")},null)]),Oe("div",{class:this.ns.b("task-item")},[Oe(De("van-field"),{readonly:!0,modelValue:e.authorName,"onUpdate:modelValue":t=>e.authorName=t,label:ibiz.i18n.t("panelComponent.wfStepTrace.processingPersonnel")},null)]),Oe("div",{class:this.ns.b("task-item")},[Oe(De("van-field"),{modelValue:e.type,"onUpdate:modelValue":t=>e.type=t,readonly:!0,label:ibiz.i18n.t("panelComponent.wfStepTrace.submissionPath")},null)]),e.fullmessage&&Oe("div",{class:this.ns.b("task-item")},[Oe(De("van-field"),{modelValue:e.fullmessage,"onUpdate:modelValue":t=>e.fullmessage=t,readonly:!0,label:ibiz.i18n.t("panelComponent.wfStepTrace.processInformation")},null)])])]})))?e:{default:()=>[e]})])}});var ey=Object.defineProperty,ty=(e,t,n)=>(((e,t,n)=>{t in e?ey(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,t+"",n),n);class ny{constructor(){ty(this,"component","IBizWFStepTrace")}async createController(e,t,n){const a=new Kb(e,t,n);return await a.init(),a}}const ay=k(Zb,function(e){e.component(Zb.name,Zb),ja("RAWITEM_WF_WFStepTrace",()=>new ny)});var iy=Object.defineProperty,oy=(e,t,n)=>(((e,t,n)=>{t in e?iy(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n),n);class ry extends La{constructor(){super(...arguments),oy(this,"currentKey",""),oy(this,"cacheKeys",["RouterShell"]),oy(this,"navViewMsgs",{}),oy(this,"operateSort",[])}}var sy=Object.defineProperty,ly=(e,t,n)=>(((e,t,n)=>{t in e?sy(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n),n);class cy extends Va{constructor(){super(...arguments),ly(this,"viewModals",{}),ly(this,"router"),ly(this,"autoGoLast",!0),ly(this,"rawItemParams",{}),ly(this,"noCache",!1)}createState(){var e;return new ry(null==(e=this.parent)?void 0:e.state)}async onInit(){await super.onInit(),this.handleRawItemParams(),this.noCache="NO_CACHE"===this.rawItemParams.expcache}setRouter(e){this.router=e}get routeDepth(){return this.panel.view.modal.routeDepth}get appmenu(){return this.panel.getController("appmenu")}changeView(e){var t;const n=this.state.navViewMsgs[e];(null==n?void 0:n.fullPath)&&(null==(t=this.router)||t.push(n.fullPath))}onRouteChange({currentKey:e,fullPath:t}){var n;if(this.state.currentKey!==e&&(this.state.currentKey=e,this.state.cacheKeys.includes(e))){const t=this.state.navViewMsgs[e].fullPath;null==(n=this.router)||n.push({path:t})}if(""===e)return;const a=this.state.operateSort.indexOf(e);-1!==a&&this.state.operateSort.splice(a,1),this.state.operateSort.push(e),this.state.cacheKeys.includes(e)||(this.state.cacheKeys.push(e),this.routeDepth&&(this.viewModals[e]=new gn({mode:bn.ROUTE,viewUsage:1,routeDepth:this.routeDepth+1,dismiss:t=>{this.dismiss(e,t)}}))),this.state.navViewMsgs[e]?this.state.navViewMsgs[e].fullPath=t:(ibiz.log.debug("维护导航视图信息",e,t),this.state.navViewMsgs[e]={key:e,fullPath:t},i.active(e))}removeCache(e){const t=this.state.cacheKeys.indexOf(e);if(-1!==t){this.state.cacheKeys.splice(t,1),delete this.viewModals[e],delete this.state.navViewMsgs[e];const n=this.state.operateSort.indexOf(e);-1!==n&&this.state.operateSort.splice(n,1)}}clearCache(){this.state.cacheKeys=[],this.viewModals={}}async closeViewByKeys(e){this.autoGoLast=!1;for(let t=0;t<e.length;t++){const n=e[t],a=this.viewModals[n];await a.dismiss()}this.goLast(),this.autoGoLast=!0}dismiss(e,t){i.close(e,t),this.removeCache(e),this.autoGoLast&&ibiz.platform.back()}goLast(){const e=this.state.operateSort.pop();if(e){if(this.state.currentKey===e)return void this.state.operateSort.push(e);const t=this.state.navViewMsgs[e].fullPath;this.router.push(t)}else{const e=this.router.currentRoute.value,{appContext:t}=e.params;let n="/".concat(t);for(let t=1;t<=this.routeDepth;t++)n+="/".concat(e.params["view".concat(t)],"/").concat(ibiz.env.routePlaceholder);this.router.push(n),ibiz.util.setBrowserTitle("")}}handleRawItemParams(){var e;let t={};const n=null==(e=this.model.rawItem)?void 0:e.rawItemParams;Di(n)&&(t=n.reduce((e,t)=>(e[t.key.toLowerCase()]=t.value,e),{})),Object.assign(this.rawItemParams,t)}}const uy=xe({name:"IBizNavPosIndex",props:{modelData:{type:Object,required:!0},controller:{type:cy,required:!0}},setup(e){var t;const a=e.controller,i=n("nav-pos-index"),o=Ii();a.setRouter(o);const r=je(!0);if(a.routeDepth&&(x(e=>{a.onRouteChange(e)},a.routeDepth+1),"APPINDEXVIEW"===a.panel.view.model.viewType)){const e=Ni();let n="";null==(t=a.appmenu)||t.evt.on("onClick",()=>{n=e.fullPath}),o.beforeEach((e,t,i)=>{t.fullPath===n&&a.clearCache(),i()})}return st(()=>{r.value=!0}),pt(()=>{r.value=!1}),{ns:i,c:a,isActivated:r}},render(){const{state:e,viewModals:t}=this.c,{currentKey:n,cacheKeys:a}=e;if(this.isActivated)return Oe("div",{class:[this.ns.b(),this.ns.m(this.modelData.id),...this.controller.containerClass]},[this.c.routeDepth?Oe(De("iBizRouterView"),{manualKey:n,modal:t[n]},{default:({Component:e})=>this.c.noCache?e?Oe(e,null,null):null:Oe(De("keepAlive"),{include:a,max:30,isKey:!0},{default:()=>[e&&Oe(e,null,null)]})}):Oe("div",null,[ibiz.i18n.t("panelComponent.navPosIndex.noSupportPrompt")])])}});var dy=Object.defineProperty,hy=(e,t,n)=>(((e,t,n)=>{t in e?dy(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,t+"",n),n);class py{constructor(){hy(this,"component","IBizNavPosIndex")}async createController(e,t,n){const a=new cy(e,t,n);return await a.init(),a}}const fy=k(uy,function(e){e.component(uy.name,uy),ja("RAWITEM_NAV_POS_INDEX",()=>new py)});var vy=Object.defineProperty,gy=(e,t,n)=>(((e,t,n)=>{t in e?vy(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,t+"",n),n);class by extends La{constructor(){super(...arguments),gy(this,"activeTab","")}}class yy extends Va{createState(){var e;return new by(null==(e=this.parent)?void 0:e.state)}async onInit(){var e;await super.onInit(),this.state.activeTab=(null==(e=this.model.panelTabPages)?void 0:e[0].id)||""}onTabChange(e){this.state.activeTab=e}}function wy(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!Ve(e)}const _y=xe({name:"IBizPanelTabPanel",props:{modelData:{type:Object,required:!0},controller:{type:yy,required:!0}},setup(e){const t=n("panel-tab-panel"),a=qe(()=>{const{id:n}=e.modelData,a=[t.b(),t.m(n)];return a.push(...e.controller.containerClass),a});return{ns:t,classArr:a,onTabClick:t=>{const{name:n}=t;e.controller.onTabChange(n)}}},render(){var e,t;let n;if(!this.controller.state.visible)return;const a=(null==(t=(e=this.$slots).default)?void 0:t.call(e))||[];return Oe(De("van-tabs"),{class:[this.ns.b(),this.ns.m(this.modelData.codeName),...this.controller.containerClass],"lazy-render":!0,"model-value":this.controller.state.activeTab,onClickTab:this.onTabClick},wy(n=a.map(e=>{const t=e.props;if(!t||!t.controller)return e;const n=t.controller;return n.state.visible||n.state.keepAlive?Oe(De("van-tab"),{class:this.ns.b("tab-item"),title:n.model.caption,name:n.model.id},wy(e)?e:{default:()=>[e]}):null}))?n:{default:()=>[n]})}});var Ey=Object.defineProperty,Py=(e,t,n)=>(((e,t,n)=>{t in e?Ey(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,t+"",n),n);class Ny{constructor(){Py(this,"component","IBizPanelTabPanel")}async createController(e,t,n){const a=new yy(e,t,n);return await a.init(),a}}const Iy=k(_y,function(e){e.component(_y.name,_y),ja("TABPANEL",()=>new Ny)});var Ay=Object.defineProperty,ky=(e,t,n)=>(((e,t,n)=>{t in e?Ay(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,t+"",n),n);class Cy extends Va{constructor(){super(...arguments),ky(this,"images",[])}async onInit(){super.onInit(),this.initCarouselImages()}initCarouselImages(){const e=this.model.rawItem.rawItemParams;e?this.images=e.filter(e=>"img"===e.key).map(e=>e.sysImage):ibiz.log.error("未配置轮播图资源")}getParamsValue(e){let t;const n=this.model.rawItem.rawItemParams;if(n)return n.forEach(n=>{n.key===e&&(t=n.value)}),t;ibiz.log.error("未配置轮播图参数:".concat(e,"}"))}}const Sy=xe({name:"IBizPanelCarousel",props:{controller:{type:Cy,required:!0},attrs:{type:Object,required:!1}},setup:e=>({ns:n("panel-carousel"),autoplay:"1"===e.controller.getParamsValue("autoplay")?e.controller.getParamsValue("timespan"):void 0,duration:e.controller.getParamsValue("duration"),showIndicators:e.controller.getParamsValue("showIndicators"),touchable:e.controller.getParamsValue("touchable")}),render(){return Oe("div",{class:this.ns.b()},[Oe(De("iBizCarousel"),{images:this.controller.images,autoplay:this.autoplay,duration:this.duration,showIndicators:this.showIndicators,touchable:this.touchable,attrs:this.attrs},null)])}});var My=Object.defineProperty,xy=(e,t,n)=>(((e,t,n)=>{t in e?My(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,t+"",n),n);class Oy{constructor(){xy(this,"component","IBizPanelCarousel")}async createController(e,t,n){const a=new Cy(e,t,n);return await a.init(),a}}const Dy=k(Sy,function(e){e.component(Sy.name,Sy),ja("RAWITEM_STATIC_CAROUSEL",()=>new Oy)});var Ty=Object.defineProperty,jy=(e,t,n)=>(((e,t,n)=>{t in e?Ty(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,t+"",n),n);class Ly extends Va{constructor(){super(...arguments),jy(this,"rawItemParams",{})}async onInit(){super.onInit(),this.initRawItemParams()}getParamsValue(e){let t;const n=this.model.rawItem.rawItemParams;if(n)return n.forEach(n=>{n.key===e&&(t=n.value)}),t;ibiz.log.error("未配置视频播放参数:".concat(e,"}"))}initRawItemParams(){const e=this.model.rawItem.rawItemParams;if(!e)return void ibiz.log.error("未配置视频播放参数");const t={};for(let n=0;n<e.length;n++){const a=e[n];t[a.key]=a.value}this.rawItemParams=t}}const Vy=xe({name:"IBizPanelVideoPlayer",props:{controller:{type:Ly,required:!0}},setup:e=>({ns:n("panel-video-player"),id:xi(),path:e.controller.getParamsValue("path"),autoplay:"1"===e.controller.getParamsValue("autoplay"),showcontrols:"1"===e.controller.getParamsValue("showcontrols"),replay:"1"===e.controller.getParamsValue("replay"),mute:"1"===e.controller.getParamsValue("mute")}),render(){return Oe("div",{class:this.ns.b()},[Oe("div",{class:this.ns.e("video")},[Oe("video",Te(this.controller.rawItemParams,{id:this.id,src:this.path,autoplay:this.autoplay,controls:this.showcontrols,loop:this.replay,muted:this.mute}),[Oe("source",{src:this.path,type:"video/mp4"},null),Oe("source",{src:this.path,type:"video/ogg"},null),Oe("source",{src:this.path,type:"video/webm"},null),ibiz.i18n.t("panelComponent.panelVideoPlayer.noSupportPrompt")])])])}});var By=Object.defineProperty,Uy=(e,t,n)=>(((e,t,n)=>{t in e?By(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,t+"",n),n);class zy{constructor(){Uy(this,"component","IBizPanelVideoPlayer")}async createController(e,t,n){const a=new Ly(e,t,n);return await a.init(),a}}const Ry=k(Vy,function(e){e.component(Vy.name,Vy),ja("RAWITEM_STATIC_VIDEOPLAYER",()=>new zy)}),Fy=xe({name:"IBizAuthUserinfo",props:{modelData:{type:Object,required:!0},controller:{type:Va,required:!0}},setup(e){var t;const a=n("user-info"),i=e.controller,{srfusername:o=ibiz.i18n.t("panelComponent.authUserinfo.visitor"),srfpersonname:r,srforgname:s}=(null==(t=ibiz.appData)?void 0:t.context)||{};return{ns:a,c:i,srfusername:o,srfpersonname:r,srforgname:s}},render(){return Oe("div",{class:[this.ns.b(),this.ns.m(this.modelData.id),...this.controller.containerClass]},[Oe("div",{class:this.ns.b("left")},[Oe(De("van-image"),null,{error:()=>Oe(De("van-icon"),{name:"contact-o"},null),loading:()=>Oe(De("van-icon"),{name:"contact-o"},null)})]),Oe("div",{class:this.ns.b("center")},[Oe("div",{class:this.ns.e("username")},[this.srfusername||this.srfpersonname]),Oe("div",{class:this.ns.e("org")},[this.srforgname])]),Oe("div",{class:this.ns.b("right")},[Oe(De("van-icon"),{name:"arrow"},null)])])}});var $y=Object.defineProperty,qy=(e,t,n)=>(((e,t,n)=>{t in e?$y(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,t+"",n),n);class Wy{constructor(){qy(this,"component","IBizAuthUserinfo")}async createController(e,t,n){const a=new Va(e,t,n);return await a.init(),a}}const Hy=k(Fy,function(e){e.component(Fy.name,Fy),ja("RAWITEM_AUTH_USERINFO",()=>new Wy)});class Gy extends Va{async onInit(){await super.onInit()}}var Yy=Object.defineProperty,Xy=(e,t,n)=>(((e,t,n)=>{t in e?Yy(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,t+"",n),n);class Jy{constructor(){Xy(this,"component","MobUserMessage")}async createController(e,t,n){const a=new Gy(e,t,n);return await a.init(),a}}const Ky=xe({name:"IBizInternalMessageContainer",props:{message:{type:Object,required:!0},provider:{type:Object,required:!0},clickable:{type:Boolean,default:void 0},toolbarItems:{type:Array,default:()=>[]}},emits:{toolbarClick:e=>!0,close:()=>!0},setup(e,{emit:t}){const a=n("internal-message-container"),i=qe(()=>"RECEIVED"===e.message.status),o=qe(()=>{const t=[...e.toolbarItems];return i.value&&t.push({key:"read",icon:"checkmark-done-outline",tooltip:ibiz.i18n.t("panelComponent.userMessage.internalMessageContainer.markAsRead")}),t}),r=qe(()=>void 0===e.clickable?ibiz.env.isMob?!!e.message.mobile_url:!!e.message.url:e.clickable);return{ns:a,isUnread:i,isClickable:r,finalToolbarItems:o,onToolbarClick:(n,a)=>{n.stopPropagation(),"read"===a?ibiz.hub.notice.internalMessage.markRead(e.message):t("toolbarClick",a)},onClick:async n=>{if(r.value&&e.provider.onClick){await e.provider.onClick(e.message,n)&&t("close")}}}},render(){var e,t;return Oe("div",{class:[this.ns.b(),this.isClickable?this.ns.m("clickable"):"",this.isUnread?this.ns.m("unread"):""],onClick:this.onClick},[null==(t=(e=this.$slots).default)?void 0:t.call(e),Oe("div",{class:this.ns.b("toolbar")},[this.finalToolbarItems.map(e=>Oe(De("iBizIcon"),{class:this.ns.be("toolbar","button"),icon:{imagePath:"svg/read.svg"},baseDir:"iconfont",title:Mt(e.tooltip),onClick:t=>this.onToolbarClick(t,e.key)},null))]),Oe("div",{class:this.ns.e("unread-tag")},null),this.isClickable&&Oe("ion-icon",{class:this.ns.e("click-tag"),name:"chevron-forward-outline"},null)])}}),Qy={READ:"已阅读",SENT:"已发送",RECEIVED:"已接收",REPLIED:"已回复",SEND_FAILED:"发送失败",NOT_SENT:"未发送",DELETED:"已删除"},Zy={READ:"",SENT:"success",RECEIVED:"success",REPLIED:"warning",SEND_FAILED:"danger",NOT_SENT:"info",DELETED:"info"},ew=xe({name:"IBizInternalMessageDefault",props:{message:{type:Object,required:!0},provider:{type:Object,required:!0}},emits:{close:()=>!0},setup:()=>({ns:n("internal-message")}),render(){const{title:e,create_time:t,content:n,status:a}=this.message,i=Oe("div",{class:this.ns.e("short-content")},[n]);return Oe(De("iBizInternalMessageContainer"),{class:[this.ns.b()],message:this.message,provider:this.provider,onClose:()=>this.$emit("close")},{default:()=>[Oe("div",{class:this.ns.b("left")},[Oe("ion-icon",{name:"list-outline"},null)]),Oe("div",{class:this.ns.b("center")},[Oe("div",{class:this.ns.e("caption")},[Oe(De("el-tag"),{class:this.ns.e("status"),type:Zy[a]},{default:()=>[Qy[a]]}),e]),i,Oe("div",{class:this.ns.e("create-time")},[t])])]})}});var tw=Object.defineProperty,nw=(e,t,n)=>(((e,t,n)=>{t in e?tw(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n),n);class aw{constructor(){nw(this,"component",ew),nw(this,"router",Ii())}render(e){return ze(this.component,{provider:this,...e})}async onClick(e,t){await ibiz.hub.notice.internalMessage.markRead(e);const n=ibiz.env.isMob?e.mobile_url:e.url;return this.openViewByUrl(n)}async openRedirectView(e,t){await ibiz.hub.notice.internalMessage.markRead(e),this.openViewByUrl(t)}openViewByUrl(e){if(e){if(e.startsWith("view://")){const{viewId:t,context:n,params:a}=kn(e);ibiz.commands.execute(Cn.TAG,t,St.create(n),a)}else if(e.startsWith("route://")){const t="/".concat(e.split("route://")[1]);this.router.push(t)}return!0}return!1}}const iw=xe({name:"MobUserMessage",props:T(),setup(){var e;const t=n("user-message"),a=ibiz.hub.notice;a.internalMessage.ns=t,a.internalMessage.provider=new aw;const i=a.internalMessage,o=je(""),r="".concat(null==(e=ibiz.appData)?void 0:e.context.srfsystemid,"-unreadOnly"),s=je(!0),l=je(!1),c=()=>{s.value&&l.value&&(i.load(),i.refreshUnreadCount(),l.value=!1)};ibiz.mc.command.internalMessage.on(async e=>{ibiz.log.debug("mqtt internalMessage: ",e),"INTERNALMESSAGE"===e.subtype&&(l.value=!0,c())}),$e(()=>s.value,()=>{c()});const u=je([]),d=Le({total:0,pageSize:0,unreadOnly:i.unreadOnly}),h=()=>{u.value=Lt(i.messages),d.total=i.total,d.pageSize=i.size};h();const p=e=>{d.unreadOnly=e};i.evt.on("dataChange",h),i.evt.on("unreadOnlyChange",p),Ue(()=>{s.value=!1,i.evt.off("dataChange",h),i.evt.off("unreadOnlyChange",p)});st(()=>{s.value=!0}),pt(()=>{s.value=!1}),Be(()=>{(()=>{const e=localStorage.getItem(r);e&&("true"===e?(d.unreadOnly=!0,i.unreadOnly=!0):(d.unreadOnly=!1,i.unreadOnly=!1))})(),s.value=!0,i.load()});return{ns:t,allItems:u,state:d,activeTab:o,showMore:()=>{i.loadMore()},renderItems:()=>0===u.value.length?Oe(De("iBizNoData"),{class:t.e("nodata"),text:ibiz.i18n.t("panelComponent.userMessage.internalMessageTab.notificationYet")},null):u.value.map(e=>{let n;try{n=za(e)}catch(e){ibiz.log.error(e)}return n?n.render({class:[t.e("item")],message:e}):Oe("div",{class:t.e("item")},[ibiz.i18n.t("panelComponent.userMessage.internalMessageTab.noSupportType",{type:e.content_type})])}),switchChange:e=>{const t="unread"===e;i.toggleUnReadOnly(t),localStorage.setItem(r,i.unreadOnly.toString())},onBatchReadClick:()=>{i.batchMarkRead()}}},render(){const e=this.state.total-this.allItems.length,t=e>0?Oe("div",{class:this.ns.e("load-more"),onClick:this.showMore},[ibiz.i18n.t("panelComponent.userMessage.internalMessageTab.loadMore",{length:e})]):null;return Oe("div",{class:[this.ns.b()]},[Oe(De("iBizIcon"),{class:this.ns.e("icons-read"),icon:{imagePath:"svg/read.svg"},baseDir:"iconfont",title:Mt(ibiz.i18n.t("panelComponent.userMessage.allRead")),onClick:this.onBatchReadClick},null),Oe(De("van-tabs"),{active:this.activeTab,"onUpdate:active":e=>this.activeTab=e,onChange:this.switchChange},{default:()=>[Oe(De("van-tab"),{title:ibiz.i18n.t("panelComponent.userMessage.all"),name:"all"},{default:()=>Oe("div",{class:this.ns.e("content")},[this.renderItems(),t])}),Oe(De("van-tab"),{title:ibiz.i18n.t("panelComponent.userMessage.unread"),name:"unread"},{default:()=>Oe("div",{class:this.ns.e("content")},[this.renderItems(),t])})]})])}});const ow=xe({name:"IBizInternalMessageJSON",props:{message:{type:Object,required:!0},provider:{type:Object,required:!0}},emits:{close:()=>!0},setup(e,{emit:t}){const a=n("internal-message-json"),i=qe(()=>e.message.content&&"JSON"===e.message.content_type?JSON.parse(e.message.content):null),o=qe(()=>{var t;return(ibiz.env.isMob?e.message.mobile_url:e.message.url)||(null==(t=i.value)?void 0:t.redirecturl)}),r=qe(()=>{if(o.value)return[{icon:"link-outline",key:"openRedirectView",tooltip:ibiz.i18n.t("panelComponent.userMessage.internalMessageJson.jumpToView")}]});return{ns:a,jsonContent:i,toolbarItems:r,redirectUrl:o,onToolbarClick:n=>{"openRedirectView"===n&&(e.provider.openRedirectView(e.message,o.value),t("close"))}}},render(){var e,t;let n=null;return n=(null==(e=this.jsonContent)?void 0:e.html)?Oe("div",{class:this.ns.e("content"),innerHTML:this.jsonContent.html},null):(null==(t=this.jsonContent)?void 0:t.todoid)?Oe("div",{class:this.ns.e("content")},[Oe("div",{class:this.ns.e("card")},[Oe("div",{class:this.ns.em("card","avatar")},[this.jsonContent.createmanname.substring(0,2)]),Oe("div",{class:this.ns.em("card","content")},[Oe("div",{class:[this.ns.e("todo"),this.ns.em("todo","header")]},[Oe("span",{class:this.ns.em("todo","person")},[this.jsonContent.createmanname]),Oe("span",{class:this.ns.em("todo","action")},["ACTIVE"===this.jsonContent.todostate?ibiz.i18n.t("panelComponent.userMessage.internalMessageJson.todo"):ibiz.i18n.t("panelComponent.userMessage.internalMessageJson.done")])]),Oe("div",{class:[this.ns.e("todo"),this.ns.em("todo","content")]},[Oe("span",{class:this.ns.em("todo","title")},[this.jsonContent.title]),Oe("span",{class:this.ns.em("todo","step")},[this.jsonContent.param05]),Oe(De("van-tag"),{type:"primary",class:this.ns.em("todo","state")},{default:()=>[this.jsonContent.todostatetext]})]),Oe("div",{class:[this.ns.e("todo"),this.ns.em("todo","footer")]},[Oe("span",{class:this.ns.em("todo","date")},["ACTIVE"===this.jsonContent.todostate?this.jsonContent.createdate:this.jsonContent.processdate]),Oe("span",{class:this.ns.em("todo","separate")},[Qe("·")]),Oe("span",{class:this.ns.em("todo","name")},[this.jsonContent.param04])])])])]):Oe("div",{class:this.ns.e("content")},[ibiz.i18n.t("panelComponent.userMessage.internalMessageJson.missingHtml")]),Oe(De("iBizInternalMessageContainer"),{class:[this.ns.b()],message:this.message,provider:this.provider,clickable:!!this.redirectUrl,toolbarItems:this.toolbarItems,onToolbarClick:this.onToolbarClick,onClose:()=>this.$emit("close")},function(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!Ve(e)}(n)?n:{default:()=>[n]})}}),rw=xe({name:"IBizInternalMessageHTML",props:{message:{type:Object,required:!0},provider:{type:Object,required:!0}},emits:{close:()=>!0},setup:e=>({ns:n("internal-message-html"),msgContent:qe(()=>rd(e.message.content))}),render(){return Oe(De("iBizInternalMessageContainer"),{class:[this.ns.b()],message:this.message,provider:this.provider,onClose:()=>this.$emit("close")},{default:()=>[Oe("div",{class:this.ns.e("content"),innerHTML:this.msgContent},null)]})}}),sw=xe({name:"IBizInternalMessageText",props:{message:{type:Object,required:!0},provider:{type:Object,required:!0}},emits:{close:()=>!0},setup:()=>({ns:n("internal-message-text")}),render(){const{title:e,create_time:t,content:n}=this.message;return Oe(De("iBizInternalMessageContainer"),{class:[this.ns.b()],message:this.message,provider:this.provider,onClose:()=>this.$emit("close")},{default:()=>[Oe("div",{class:this.ns.e("caption")},[e]),!!n&&Oe("div",{class:this.ns.e("content")},[n]),Oe("div",{class:this.ns.e("create-time")},[t])]})}});var lw=Object.defineProperty,cw=(e,t,n)=>(((e,t,n)=>{t in e?lw(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,t+"",n),n);class uw extends aw{constructor(){super(...arguments),cw(this,"component",ow)}async onClick(e,t){if(!await super.onClick(e,t)&&"JSON"===e.content_type&&e.content){const t=JSON.parse(e.content);if(t.redirecturl)return this.openRedirectView(e,t.redirecturl),!0}return!0}}var dw=Object.defineProperty,hw=(e,t,n)=>(((e,t,n)=>{t in e?dw(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,t+"",n),n);class pw extends aw{constructor(){super(...arguments),hw(this,"component",rw)}async onClick(e,t){if(!await super.onClick(e,t)&&"JSON"===e.content_type&&e.content){const t=JSON.parse(e.content);if(t.redirecturl)return this.openRedirectView(e,t.redirecturl),!0}return!0}}var fw=Object.defineProperty,vw=(e,t,n)=>(((e,t,n)=>{t in e?fw(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,t+"",n),n);class mw extends aw{constructor(){super(...arguments),vw(this,"component",sw)}}const gw=k(iw,function(e){e.component(iw.name,iw),ja("RAWITEM_USERMESSAGE",()=>new Jy),e.component(Ky.name,Ky),e.component(ew.name,ew),e.component(ow.name,ow),e.component(rw.name,rw),e.component(sw.name,sw),Ra("DEFAULT",()=>new aw),Ra("JSON",()=>new uw),Ra("HTML",()=>new pw),Ra("TEXT",()=>new mw)});class bw extends Va{async onInit(){await super.onInit()}}var yw=Object.defineProperty,ww=(e,t,n)=>(((e,t,n)=>{t in e?yw(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,t+"",n),n);class _w{constructor(){ww(this,"component","MobAsyncAction")}async createController(e,t,n){const a=new bw(e,t,n);return await a.init(),a}}const Ew=xe({name:"IBizAsyncActionTab",props:{controller:{type:Object,required:!0}},setup(e){const t=n("async-action-tab"),a=e.controller,i=je([]),o=()=>{i.value=Lt(a.actions)};o(),a.evt.on("dataChange",o);return{ns:t,allItems:i,hiddenPopover:()=>{}}},render(){return Oe("div",{class:[this.ns.b()]},[this.allItems.length>0&&this.allItems.map(e=>{let t;try{t=Fa(e)}catch(e){ibiz.log.error(e)}return t?t.render({class:this.ns.e("item"),action:e,onClose:this.hiddenPopover}):Oe("div",{class:this.ns.e("item")},[ibiz.i18n.t("panelComponent.userMessage.asyncActionTab.noSupportType",{type:e.actiontype})])}),0===this.allItems.length&&Oe("div",{class:this.ns.e("nodata")},[ibiz.i18n.t("panelComponent.userMessage.asyncActionTab.noAsyncAction")])])}}),Pw=xe({name:"MobAsyncAction",props:T(),setup:()=>({ns:n("mob-async-action"),noticeController:ibiz.hub.notice}),render(){return Oe("div",{class:[this.ns.b()]},[Oe(Ew,{controller:this.noticeController.asyncAction},null)])}}),Nw={10:"未开始",20:"执行中",30:"已执行",40:"执行失败"},Iw={10:"info",20:"",30:"success",40:"danger"},Aw=xe({name:"IBizAsyncAction",props:{action:{type:Object,required:!0},provider:{type:Object,required:!0}},emits:{close:()=>!0},setup(e,{emit:t}){const a=n("async-action"),i=qe(()=>dn(e.action.actionresult)),o=qe(()=>!e.action.actiontype||i.value);return{ns:a,showErrorInfo:qe(()=>e.action.actiontype&&sn(e.action.actionresult)),clickable:o,actionstate:qe(()=>{if(i.value){const t=e.action.actionresult;return t.total-t.success>0?40:30}return e.action.actionstate}),progressText:qe(()=>e.action.completionrate?"(".concat(e.action.completionrate,"%)"):""),onClick:async n=>{if(e.provider.onClick){await e.provider.onClick(e.action,n)&&t("close")}}}},render(){const{asyncacitonname:e,begintime:t,stepinfo:n="进行中"}=this.action;return Oe("div",{class:[this.ns.b(),this.clickable?this.ns.m("clickable"):""],onClick:this.onClick},[Oe("div",{class:this.ns.b("left")},[Oe("ion-icon",{name:"list-outline"},null)]),Oe("div",{class:this.ns.b("center")},[Oe("div",{class:this.ns.e("caption")},[e]),this.showErrorInfo&&Oe("div",{title:Mt(this.action.actionresult),class:this.ns.e("error-info")},[this.action.actionresult]),20===this.actionstate?Oe("div",{class:this.ns.e("progress")},[n,this.progressText]):Oe("div",{class:this.ns.e("begin-time")},[t])]),Oe("div",{class:this.ns.b("right")},[Oe(De("van-tag"),{type:Iw[this.actionstate]},{default:()=>[Nw[this.actionstate]]})]),20===this.actionstate&&!!this.action.completionrate&&Oe("div",{class:this.ns.b("loading-warp")},[Oe("div",{class:this.ns.be("loading-warp","inner"),style:"width:".concat(this.action.completionrate,"%;")},null)])])}});function kw(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!Ve(e)}const Cw=xe({name:"IBizAsyncActionPreview",props:{asyncAction:{type:Object,required:!0},modal:{type:Object,required:!0}},setup(e){const t=n("async-action-preview"),a=Le({title:"",beginTime:"",endTime:"",total:0,success:0,error:0,errorDetails:[{row:0,reason:""}],errorFileUrl:""});if(a.title=ibiz.i18n.t("panelComponent.userMessage.asyncActionPreview.importDetailPrompt",{name:e.asyncAction.asyncacitonname}),a.beginTime=e.asyncAction.begintime,a.endTime=e.asyncAction.endtime,e.asyncAction.actionresult){let t=e.asyncAction.actionresult;if("string"==typeof t)try{t=JSON.parse(t)}catch(e){throw new Nt(ibiz.i18n.t("panelComponent.userMessage.asyncActionPreview.parseImportInfoErr"))}a.total=t.total||0,a.success=t.success||0,a.error=a.total-a.success,t.errorinfo?a.errorDetails=Object.keys(t.errorinfo).map(e=>({row:Number(e),reason:t.errorinfo[e].errorInfo})):a.errorDetails=[],t.errorfile&&(a.errorFileUrl="".concat(ibiz.env.baseUrl,"/").concat(ibiz.env.appId).concat(ibiz.env.downloadFileUrl,"/").concat(t.errorfile.folder,"/").concat(t.errorfile.fileid).replace("/{cat}",""))}return{ns:t,info:a,onClose:()=>{e.modal.dismiss()},onDownLoad:()=>{var e;e={url:a.errorFileUrl,name:a.title},ibiz.net.request(e.url,{method:"get",responseType:"blob",baseURL:""}).then(t=>{let n=Bi.parse(t.headers["content-disposition"],{delimiter:";"}).filename;if(n&&(n.startsWith('"')&&n.endsWith('"')&&(n=n.substring(1,n.length-1)),e.name+=".".concat(n.split(".")[1])),200!==t.status)throw new Nt(ibiz.i18n.t("panelComponent.userMessage.asyncActionPreview.downloadFailedErr"));if(!t.data)throw new Nt(ibiz.i18n.t("panelComponent.userMessage.asyncActionPreview.noExistentErr"));{const n=e.name;Vt(t.data,n)}})}}},render(){let e;return Oe("div",{class:[this.ns.b()]},[Oe("div",{class:this.ns.b("header")},[Oe("div",{class:this.ns.e("title")},[this.info.title]),Oe("div",{class:this.ns.b("toolbar")},[this.info.errorFileUrl&&Oe(De("van-button"),{class:this.ns.e("button"),onClick:this.onDownLoad},kw(e=ibiz.i18n.t("panelComponent.userMessage.asyncActionPreview.downloadErrFile"))?e:{default:()=>[e]}),Oe("ion-icon",{name:"close-outline",class:this.ns.e("button"),onClick:this.onClose},null)])]),Oe("div",{class:this.ns.b("time")},[Oe(De("van-field"),{"model-value":"".concat(this.info.beginTime," ~ ").concat(this.info.endTime),label:ibiz.i18n.t("panelComponent.userMessage.asyncActionPreview.importTime"),readonly:!0,"label-align":"top"},null)]),Oe(De("van-row"),{class:this.ns.b("count")},{default:()=>[Oe(De("van-col"),{span:8},{default:()=>[Oe(De("van-field"),{"model-value":this.info.total,label:ibiz.i18n.t("panelComponent.userMessage.asyncActionPreview.importTotal"),readonly:!0},null)]}),Oe(De("van-col"),{span:8},{default:()=>[Oe(De("van-field"),{"model-value":this.info.success,label:ibiz.i18n.t("panelComponent.userMessage.asyncActionPreview.successImport"),readonly:!0},null)]}),Oe(De("van-col"),{span:8},{default:()=>[Oe(De("van-field"),{"model-value":this.info.error,label:ibiz.i18n.t("panelComponent.userMessage.asyncActionPreview.ImportFailed"),readonly:!0},null)]})]}),this.info.errorDetails.length>0&&Oe("div",{class:this.ns.b("detail")},[this.info.errorDetails.map(e=>Oe("div",{class:this.ns.b("detail-item")},[Oe("div",{class:this.ns.be("detail-item","index")},[e.row]),Oe("div",{class:this.ns.be("detail-item","error")},[Oe("div",{class:this.ns.be("detail-item","error-title")},[ibiz.i18n.t("app.error")]),Oe("div",{class:this.ns.be("detail-item","error-reason")},[e.reason])])]))])])}}),Sw=xe({name:"IBizAsyncActionResult",props:{asyncAction:{type:Object,required:!0},modal:{type:Object,required:!0}},setup:e=>({ns:n("async-action-preview"),message:qe(()=>dn(e.asyncAction.actionresult)?JSON.stringify(e.asyncAction.actionresult):"".concat(e.asyncAction.actionresult))}),render(){return Oe("div",{class:[this.ns.b()]},[this.message])}});var Mw=Object.defineProperty,xw=(e,t,n)=>(((e,t,n)=>{t in e?Mw(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,t+"",n),n);class Ow{constructor(){xw(this,"component",Aw)}render(e){return ze(this.component,{provider:this,...e})}async onClick(e,t){return hn(e.actiontype)?(ibiz.overlay.modal(t=>ze(Sw,{asyncAction:e,modal:t}),{},{width:"100%",height:"100%"}),!0):!!dn(e.actionresult)&&(ibiz.overlay.modal(t=>ze(Cw,{asyncAction:e,modal:t}),{},{width:"100%",height:"100%"}),!0)}}const Dw=k(Pw,function(e){e.component(Pw.name,Pw),ja("RAWITEM_ASYNCACTION",()=>new _w),e.component(Aw.name,Aw),e.component(Ew.name,Ew),$a("DEIMPORTDATA2",()=>new Ow),$a("DEFAULT",()=>new Ow)});var Tw=Object.defineProperty,jw=(e,t,n)=>(((e,t,n)=>{t in e?Tw(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,t+"",n),n);class Lw extends La{constructor(){super(...arguments),jw(this,"buttonsState")}}class Vw extends Va{createState(){var e;return new Lw(null==(e=this.parent)?void 0:e.state)}get data(){return this.dataParent.data}constructor(e,t,n){super(e,t,n),this.state.buttonsState=new qa}async onInit(){await super.onInit(),await this.initUIActions(),await this.initButtonsState()}async initUIActions(){const{buttonListType:e,uiactionGroup:t}=this.model;"UIACTIONGROUP"===e&&t&&await Wa(t,this.panel.context,this.panel.params)}async initButtonsState(){const{buttonListType:e,uiactionGroup:t,panelButtons:n}=this.model;if("UIACTIONGROUP"===e){if(null==t?void 0:t.uiactionGroupDetails){Vn(t.uiactionGroupDetails).forEach(e=>{if(e.uiactionId){const t=new Ua(e.id,e.appId,e.uiactionId,e);this.state.buttonsState.addState(e.id,t)}})}}else null==n||n.forEach(e=>{if(e.uiactionId){const t=new Ua(e.id,this.model.appId,e.uiactionId);this.state.buttonsState.addState(e.id,t)}});await this.state.buttonsState.init()}async dataChangeNotify(e){await this.state.buttonsState.update(this.panel.context,this.data,this.panel.model.appDataEntityId),super.dataChangeNotify(e)}async panelStateNotify(e){await this.state.buttonsState.update(this.panel.context,this.data,this.panel.model.appDataEntityId),super.panelStateNotify(e)}getModelById(e){const{buttonListType:t,uiactionGroup:n,panelButtons:a}=this.model;if("UIACTIONGROUP"===t){return Vn(null==n?void 0:n.uiactionGroupDetails).find(t=>t.id===e)}return null==a?void 0:a.find(t=>t.id===e)}async handleClick(e,t){const n=this.getModelById(e);(null==n?void 0:n.uiactionId)&&await In.execAndResolved(n.uiactionId,{context:this.panel.context,params:{panelDataParent:this.dataParent.model.id,...this.panel.params},event:t,data:[this.data],view:this.panel.view,ctrl:this.panel,noWaitRoute:!0},n.appId||this.model.appId)}calcItemVisible(e){this.state.buttonsState.visible?super.calcItemVisible(e):this.state.visible=!1}calcItemDisabled(e){this.state.buttonsState.disabled?this.state.disabled=!0:super.calcItemDisabled(e)}}const Bw=xe({name:"IBizPanelButtonList",props:{modelData:{type:Object,required:!0},controller:{type:Vw,required:!0}},setup(e){const t=n("panel-button-list"),a=e.controller;return{ns:t,handleClick:async(e,t)=>{null==t||t.stopPropagation(),a.handleClick(e,t)}}},render(){const{state:e}=this.controller;return e.visible?Oe(De("iBizButtonList"),{class:[this.ns.b(),...this.controller.containerClass],model:this.modelData,disabled:e.disabled,buttonsState:e.buttonsState,onClick:this.handleClick},null):null}});var Uw=Object.defineProperty,zw=(e,t,n)=>(((e,t,n)=>{t in e?Uw(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,t+"",n),n);class Rw{constructor(){zw(this,"component","IBizPanelButtonList")}async createController(e,t,n){const a=new Vw(e,t,n);return await a.init(),a}}const Fw=k(Bw,function(e){e.component(Bw.name,Bw),ja("BUTTONLIST",()=>new Rw)}),$w=xe({name:"IBizAuthSsO",props:{modelData:{type:Object,required:!0},controller:{type:Va,required:!0}},setup(e){var t;const a=n("auth-sso"),i=null==(t=e.controller.model.rawItem)?void 0:t.rawItemParams,o=null==i?void 0:i.map(e=>{const t=e.value?JSON.parse(e.value):{};return{key:e.key,sysImage:e.sysImage,title:t.title,params:t}});return{ns:a,items:o,handleThridLogin:(e,t)=>{if(e)switch(e){case"DINGDING":(async()=>{ibiz.thirdAuth.auth("DINGTALK","THIRD")})();break;case"WXWORK":(async()=>{ibiz.thirdAuth.auth("WXWORK","THIRD")})();break;default:(async e=>{ibiz.thirdAuth.auth("OAUTH","THIRD",e)})(t)}}}},render(){return this.items&&this.items.length?Oe("div",{class:this.ns.b()},[this.items.map(e=>{var t;let n;return e.sysImage?n=Oe(De("iBizIcon"),{icon:e.sysImage},null):"DINGDING"===e.key?n=Oe("svg",{class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"651",width:"48",height:"48"},[Oe("defs",null,[Oe("style",{type:"text/css"},null)]),Oe("path",{d:"M512 2C230.2 2 2 230.2 2 512s228.2 510 510 510 510-228.2 510-510S793.3 2 512 2z m235.9 442c-1 4.6-3.6 10.8-7.2 19.1l-0.5 0.5c-21.6 45.8-77.3 135.5-77.3 135.5l-0.5-0.5-16.5 28.3h78.8L574.3 826.8l34-136h-61.8l21.6-90.2c-17.5 4.1-38.1 9.8-62.3 18 0 0-33 19.1-94.8-37.1 0 0-41.7-37.1-17.5-45.8 10.3-4.1 50-8.8 81.4-12.9 42.2-5.7 68.5-8.8 68.5-8.8s-130.3 2.1-161.2-3.1c-30.9-4.6-70.1-56.7-78.3-102 0 0-12.9-24.7 27.8-12.9 40.2 11.8 209.2 45.8 209.2 45.8S321.4 375 307 358.5c-14.4-16.5-42.8-89.6-39.2-134.5 0 0 1.5-11.3 12.9-8.2 0 0 161.8 74.2 272.5 114.4C664.5 371.4 760.8 392 747.9 444z",fill:"#3296FA","p-id":"652"},null)]):"WXWORK"===e.key&&(n=Oe("svg",{class:"icon",width:"200px",height:"200.00px",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},[Oe("path",{fill:"#36ab60",d:"M352.814545 385.396364m-33.512727 0a33.512727 33.512727 0 1 0 67.025455 0 33.512727 33.512727 0 1 0-67.025455 0Z"},null),Oe("path",{fill:"#36ab60",d:"M502.690909 384.465455m-33.512727 0a33.512727 33.512727 0 1 0 67.025454 0 33.512727 33.512727 0 1 0-67.025454 0Z"},null),Oe("path",{fill:"#36ab60",d:"M576.232727 534.341818m-23.272727 0a23.272727 23.272727 0 1 0 46.545455 0 23.272727 23.272727 0 1 0-46.545455 0Z"},null),Oe("path",{fill:"#36ab60",d:"M694.458182 536.203636m-23.272727 0a23.272727 23.272727 0 1 0 46.545454 0 23.272727 23.272727 0 1 0-46.545454 0Z"},null),Oe("path",{fill:"#36ab60",d:"M512 0C229.003636 0 0 229.003636 0 512s229.003636 512 512 512 512-229.003636 512-512S794.996364 0 512 0z m-87.505455 630.225455c-26.996364 0-48.407273-5.585455-75.403636-11.17091l-75.403636 37.236364 21.410909-64.232727c-53.992727-37.236364-85.643636-85.643636-85.643637-145.221818 0-102.4 96.814545-182.458182 215.04-182.458182 105.192727 0 198.283636 64.232727 216.901819 150.807273-6.516364-0.930909-13.963636-0.930909-20.48-0.93091-102.4 0-182.458182 76.334545-182.458182 170.356364 0 15.825455 2.792727 30.72 6.516363 44.683636-7.447273 0-13.963636 0.930909-20.48 0.93091z m314.647273 75.403636l15.825455 53.992727-58.647273-32.581818c-21.410909 5.585455-42.821818 11.170909-64.232727 11.170909-102.4 0-182.458182-69.818182-182.458182-155.461818s80.058182-155.461818 182.458182-155.461818c96.814545 0 182.458182 69.818182 182.458182 155.461818 0 47.476364-31.650909 90.298182-75.403637 122.88z"},null)])),Oe("div",{class:[this.ns.e("sign-btn"),this.ns.m("WXWORK"===e.key?"wx":null==(t=e.key)?void 0:t.toLowerCase())],title:e.title,onClick:()=>this.handleThridLogin(e.key,e.params)},[n])})]):Oe("div",{class:this.ns.b()},[Oe("div",{class:[this.ns.e("sign-btn"),this.ns.m("dingding")],onClick:()=>this.handleThridLogin("DINGDING"),title:ibiz.i18n.t("panelComponent.authSsO.dingLogin")},[Oe("svg",{class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"651",width:"48",height:"48"},[Oe("defs",null,[Oe("style",{type:"text/css"},null)]),Oe("path",{d:"M512 2C230.2 2 2 230.2 2 512s228.2 510 510 510 510-228.2 510-510S793.3 2 512 2z m235.9 442c-1 4.6-3.6 10.8-7.2 19.1l-0.5 0.5c-21.6 45.8-77.3 135.5-77.3 135.5l-0.5-0.5-16.5 28.3h78.8L574.3 826.8l34-136h-61.8l21.6-90.2c-17.5 4.1-38.1 9.8-62.3 18 0 0-33 19.1-94.8-37.1 0 0-41.7-37.1-17.5-45.8 10.3-4.1 50-8.8 81.4-12.9 42.2-5.7 68.5-8.8 68.5-8.8s-130.3 2.1-161.2-3.1c-30.9-4.6-70.1-56.7-78.3-102 0 0-12.9-24.7 27.8-12.9 40.2 11.8 209.2 45.8 209.2 45.8S321.4 375 307 358.5c-14.4-16.5-42.8-89.6-39.2-134.5 0 0 1.5-11.3 12.9-8.2 0 0 161.8 74.2 272.5 114.4C664.5 371.4 760.8 392 747.9 444z",fill:"#3296FA","p-id":"652"},null)])]),Oe("div",{class:[this.ns.e("sign-btn"),this.ns.m("wx")],onClick:()=>this.handleThridLogin("WXWORK"),title:ibiz.i18n.t("panelComponent.authSsO.wechatLogin")},[Oe("svg",{class:"icon",width:"200px",height:"200.00px",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},[Oe("path",{fill:"#36ab60",d:"M352.814545 385.396364m-33.512727 0a33.512727 33.512727 0 1 0 67.025455 0 33.512727 33.512727 0 1 0-67.025455 0Z"},null),Oe("path",{fill:"#36ab60",d:"M502.690909 384.465455m-33.512727 0a33.512727 33.512727 0 1 0 67.025454 0 33.512727 33.512727 0 1 0-67.025454 0Z"},null),Oe("path",{fill:"#36ab60",d:"M576.232727 534.341818m-23.272727 0a23.272727 23.272727 0 1 0 46.545455 0 23.272727 23.272727 0 1 0-46.545455 0Z"},null),Oe("path",{fill:"#36ab60",d:"M694.458182 536.203636m-23.272727 0a23.272727 23.272727 0 1 0 46.545454 0 23.272727 23.272727 0 1 0-46.545454 0Z"},null),Oe("path",{fill:"#36ab60",d:"M512 0C229.003636 0 0 229.003636 0 512s229.003636 512 512 512 512-229.003636 512-512S794.996364 0 512 0z m-87.505455 630.225455c-26.996364 0-48.407273-5.585455-75.403636-11.17091l-75.403636 37.236364 21.410909-64.232727c-53.992727-37.236364-85.643636-85.643636-85.643637-145.221818 0-102.4 96.814545-182.458182 215.04-182.458182 105.192727 0 198.283636 64.232727 216.901819 150.807273-6.516364-0.930909-13.963636-0.930909-20.48-0.93091-102.4 0-182.458182 76.334545-182.458182 170.356364 0 15.825455 2.792727 30.72 6.516363 44.683636-7.447273 0-13.963636 0.930909-20.48 0.93091z m314.647273 75.403636l15.825455 53.992727-58.647273-32.581818c-21.410909 5.585455-42.821818 11.170909-64.232727 11.170909-102.4 0-182.458182-69.818182-182.458182-155.461818s80.058182-155.461818 182.458182-155.461818c96.814545 0 182.458182 69.818182 182.458182 155.461818 0 47.476364-31.650909 90.298182-75.403637 122.88z"},null)])])])}});var qw=Object.defineProperty,Ww=(e,t,n)=>(((e,t,n)=>{t in e?qw(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,t+"",n),n);class Hw{constructor(){Ww(this,"component","IBizAuthSsO")}async createController(e,t,n){const a=new Va(e,t,n);return await a.init(),a}}const Gw=k($w,function(e){e.component($w.name,$w),ja("RAWITEM_AUTH_SSO",()=>new Hw)});var Yw=Object.defineProperty,Xw=(e,t,n)=>(((e,t,n)=>{t in e?Yw(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n),n);class Jw extends La{constructor(){super(...arguments),Xw(this,"caption",""),Xw(this,"caption2",""),Xw(this,"subCaption",""),Xw(this,"subCaption2",""),Xw(this,"icon",""),Xw(this,"icon2",""),Xw(this,"isSvg",!1)}}var Kw=Object.defineProperty,Qw=(e,t,n)=>(((e,t,n)=>{t in e?Kw(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,t+"",n),n);class Zw extends Va{constructor(){super(...arguments),Qw(this,"rawItemParams",{})}createState(){var e;return new Jw(null==(e=this.parent)?void 0:e.state)}async onInit(){await super.onInit(),this.handleRawItemParams();const e=this.panel.view.model,t=ibiz.hub.getApp(e.appId);this.state.caption=ibiz.env.AppTitle||t.model.caption||"",e.title&&!document.title&&(document.title=e.title),this.model.sysImage&&this.model.sysImage.rawContent&&(this.state.icon=this.model.sysImage.rawContent),(this.state.icon.endsWith(".svg")||this.state.icon2.endsWith(".svg"))&&(this.state.isSvg=!0)}handleRawItemParams(){var e;const t=null==(e=this.model.rawItem)?void 0:e.rawItemParams;Array.isArray(t)&&t.forEach(e=>{const t=e.key,n=e.value;t&&n&&(this.rawItemParams[t.toLowerCase()]=n)})}}const e_=xe({name:"IBizPanelAppTitle",props:{modelData:{type:Object,required:!0},controller:{type:Zw,required:!0}},setup(e){const t=n("panel-app-title"),a=e.controller,i=Ni(),o=Ii(),r=ft("ctx",void 0),s=qe(()=>(null==r?void 0:r.view)&&r.view.model.mainMenuAlign||"LEFT"),l=qe(()=>"LEFT"===s.value),c=qe(()=>a.panel.view.state.isCollapse);return{ns:t,c:a,menuAlign:s,showImgOnly:l,handleClick:async()=>{if("APPLOGINVIEW"!==a.panel.view.model.viewType){if(null==r?void 0:r.view){const e=p(i);e.pathNodes=e.pathNodes.slice(0,1);const t=f(e);o.push({path:t}),setTimeout(()=>{window.location.reload()})}e.controller.onClick()}},isCollapse:c}},render(){const{icon:e,isSvg:t,caption:n,caption2:a,subCaption:i,subCaption2:o}=this.c.state;let r=null,s=null;const l=Oe("span",{class:this.ns.e("title")},[n]);if("APPINDEXVIEW"!==this.c.panel.view.model.viewType)s=l;else{if("LEFT"===this.menuAlign)if(this.isCollapse)if(e){let n=null;n=t?Oe("ion-icon",{class:this.ns.e("logo"),icon:e},null):Oe("span",{class:this.ns.e("logo")},[Oe("img",{src:e},null)]),r=Oe("div",{class:this.ns.e("collpase-icon")},[n])}else r=Oe("div",{class:this.ns.e("collapse-title")},[Oe("div",{class:this.ns.e("caption2")},[a]),Oe("div",{class:this.ns.e("subCaption2")},[o])]);else if("true"===this.c.rawItemParams.showexpandicon&&e){let a=null;a=t?Oe("ion-icon",{class:this.ns.em("logo","expand"),icon:e},null):Oe("span",{class:this.ns.em("logo","expand")},[Oe("img",{src:e},null)]),r=Oe("span",{class:this.ns.e("logo")},[a,Oe("svg",{width:"166px",height:"80px",viewBox:"0 0 166 90",version:"1.1"},[Oe("g",{id:"app-caption-panel",stroke:"none","stroke-width":"1","fill-rule":"evenodd"},[Oe("text",{id:"app-caption","font-family":"Poppins-Bold, Poppins","font-size":"22","font-weight":"bold"},[Oe("tspan",{x:"8",y:"39"},[n])]),Oe("text",{id:"app-subcaption","font-family":"PingFangSC-Semibold, PingFang SC","font-size":"14","font-weight":"bold"},[Oe("tspan",{x:"8",y:"66"},[i])])])])])}else r=Oe("span",{class:this.ns.e("logo")},[Oe("svg",{width:"256px",height:"80px",viewBox:"0 0 256 80",version:"1.1"},[Oe("g",{id:"app-caption-panel",stroke:"none","stroke-width":"1","fill-rule":"evenodd"},[Oe("text",{id:"app-caption","font-family":"Poppins-Bold, Poppins","font-size":"22","font-weight":"bold"},[Oe("tspan",{x:"20.961",y:"40"},[n])]),Oe("text",{id:"app-subcaption","font-family":"PingFangSC-Semibold, PingFang SC","font-size":"18","font-weight":"bold"},[Oe("tspan",{x:"96",y:"69"},[i])])])])]);else"TOP"===this.menuAlign&&e&&(r=t?Oe("ion-icon",{class:this.ns.e("logo"),icon:e},null):Oe("span",{class:this.ns.e("logo")},[Oe("img",{src:e},null)]));s="LEFT"===this.menuAlign?r:[r,l]}return Oe("div",{class:[this.ns.b(),this.ns.is("only-img",this.showImgOnly),this.ns.is("collapse",this.isCollapse),this.ns.is("only-title","APPINDEXVIEW"!==this.c.panel.view.model.viewType),...this.controller.containerClass],onClick:this.handleClick},[s])}});var t_=Object.defineProperty,n_=(e,t,n)=>(((e,t,n)=>{t in e?t_(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,t+"",n),n);class a_{constructor(){n_(this,"component","IBizPanelAppTitle")}async createController(e,t,n){const a=new Zw(e,t,n);return await a.init(),a}}const i_=k(e_,function(e){e.component(e_.name,e_),ja("RAWITEM_APP_APPTITLE",()=>new a_),ja("CTRLPOS_APP_APPTITLE",()=>new a_)});function o_(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!Ve(e)}const r_=xe({name:"IBizIndexBlankPlaceholder",props:{modelData:{type:Object,required:!0},controller:{type:Object,required:!0}},setup(e){const t=e.controller,a=n("index-blank-placeholder"),{id:i}=e.modelData,o=qe(()=>{let t=[a.b(),a.m(i)];return t=[...t,...e.controller.containerClass,a.is("hidden",!e.controller.state.visible)],t});return t.routeDepth&&x(e=>{t.setVisible(!e.currentKey)},t.routeDepth+1),{ns:a,classArr:o}},render(){var e,t;let n;const a=(null==(t=(e=this.$slots).default)?void 0:t.call(e))||[],i=Oe(De("iBizRow"),{slot:"content",layout:this.modelData.layout},o_(n=a.map(e=>{const t=e.props;return t&&t.controller?Oe(De("iBizCol"),{layoutPos:t.modelData.layoutPos,state:t.controller.state},o_(e)?e:{default:()=>[e]}):e}))?n:{default:()=>[n]});return Oe("div",{class:this.classArr,onClick:()=>{this.controller.onClick()}},[this.controller.model.cssStyle?Oe("style",{type:"text/css"},[this.controller.model.cssStyle]):null,i])}});class s_ extends La{}class l_ extends Va{createState(){var e;return new s_(null==(e=this.parent)?void 0:e.state)}get routeDepth(){return this.panel.view.modal.routeDepth}get appmenu(){return this.panel.getController("appmenu")}get navPos(){return this.panel.panelItems.nav_pos_index}async onInit(){await super.onInit(),this.state.keepAlive=!0,this.state.visible=!1,this.panel.evt.on("onMounted",async()=>{var e;this.navPos&&(this.navPos.state.keepAlive=!0);const t=null==(e=this.appmenu)?void 0:e.getDefaultOpenView();if(t){const e=await ibiz.hub.config.view.get(t),{openMode:n="INDEXVIEWTAB"}=e;this.state.visible=!n.startsWith("INDEXVIEWTAB")}})}setVisible(e){this.state.visible=e,this.navPos&&(this.navPos.state.visible=!e)}}var c_=Object.defineProperty,u_=(e,t,n)=>(((e,t,n)=>{t in e?c_(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,t+"",n),n);class d_{constructor(){u_(this,"component","IBizIndexBlankPlaceholder")}async createController(e,t,n){const a=new l_(e,t,n);return await a.init(),a}}const h_=k(r_,function(e){e.component(r_.name,r_),ja("CONTAINER_INDEX_BLANK_PLACEHOLDER",()=>new d_)}),p_=xe({name:"IBizViewMessage",props:{modelData:{type:Object,required:!0},controller:{type:Va,required:!0}},setup(e){const t=n("view-message"),a=e.controller,i=g(),{view:o}=i;return{ns:t,c:a,view:o}},render(){const e=this.view;if(e.state.isCreated){const t=e.state.viewMessages.BODY;if(null==t?void 0:t.length)return Oe(De("view-message"),{class:[this.ns.e("body-message")],messages:t},null)}return null}});var f_=Object.defineProperty,v_=(e,t,n)=>(((e,t,n)=>{t in e?f_(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,t+"",n),n);class m_{constructor(){v_(this,"component","IBizViewMessage")}async createController(e,t,n){const a=new Va(e,t,n);return await a.init(),a}}const g_=k(p_,function(e){e.component(p_.name,p_),ja("RAWITEM_VIEW_MESSAGE",()=>new m_)});var b_=Object.defineProperty,y_=(e,t,n)=>(((e,t,n)=>{t in e?b_(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,t+"",n),n);class w_ extends Va{constructor(){super(...arguments),y_(this,"rawItemParams",{})}async onInit(){await super.onInit(),this.handleRawItemParams()}handleRawItemParams(){var e;const t=null==(e=this.model.rawItem)?void 0:e.rawItemParams;Array.isArray(t)&&t.forEach(e=>{const t=e.key,n=e.value;t&&n&&(this.rawItemParams[t.toLowerCase()]=n)})}}const __=xe({name:"IBizViewMsgPos",props:{modelData:{type:Object,required:!0},controller:{type:w_,required:!0}},setup:()=>({ns:n("view-msg-pos"),view:g().view}),render(){const e=this.controller;if(!this.view.state.isCreated)return;const t=e.rawItemParams.position||"BODY",n="true"===e.rawItemParams.scroll,a=this.view.state.viewMessages[t];return(null==a?void 0:a.length)?Oe("div",{class:this.ns.b()},[Oe(De("view-message"),{messages:a,scroll:n,context:e.panel.context,params:e.panel.params,controller:e.panel.view.viewMsgController},null)]):null}});var E_=Object.defineProperty,P_=(e,t,n)=>(((e,t,n)=>{t in e?E_(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,t+"",n),n);class N_{constructor(){P_(this,"component","IBizViewMsgPos")}async createController(e,t,n){const a=new w_(e,t,n);return await a.init(),a}}const I_=k(__,function(e){e.component(__.name,__),ja("RAWITEM_VIEWMSG_POS",()=>new N_)});class A_ extends Ha{get mdctrl(){const{view:e}=this.panel;return e.getController("mdctrl")||e.getController("dataview")}get isMDSortButton(){var e;return!!((null==(e=this.mdctrl)?void 0:e.state.sortDelistItems.length)>0)}get searchbar(){return this.panel.view.getController("searchbar")}get visible(){return!(!this.searchbar||!this.searchbar.model.enableQuickSearch)&&(this.isMDSortButton||!!this.searchform&&!this.panel.view.model.expandSearchForm)}get searchform(){return this.panel.view.getController("searchform")}get isMDSearchformBtn(){return!!this.searchform&&!this.panel.view.model.expandSearchForm}}const k_=xe({name:"IBizSettingContainer",props:{modelData:{type:Object,required:!0},controller:{type:A_,required:!0}},setup(e){const t=n("setting-container"),a=e.controller;return{c:a,ns:t,handleClick:async e=>{var t,n;const{sortDelistItems:i,sortQuery:o}=a.mdctrl.state;let r;if(o){const[e,t]=o.split(",");r={key:e,order:t}}const s=await ibiz.overlay.drawer(e=>ze(Hd,{modal:e,listItems:i,sort:r}),{},{attrs:{position:"bottom",closeable:!1}});if((null==s?void 0:s.data)&&s.data.length>0){const e=s.data[0];null==(t=a.mdctrl)||t.setSort(e.key,e.order),null==(n=a.mdctrl)||n.load({isInitialLoad:!0})}},handleAdvanedClick:async()=>{const e=a.panel.view.providers.searchform;await ibiz.overlay.drawer(t=>ze(Jd,{modal:t,modelData:a.searchform.model,context:a.searchform.context,params:a.searchform.params,provider:e,controller:a.searchform}),{},{attrs:{position:"bottom",closeable:!1}})}}},render(){if(this.c.visible)return Oe("div",{class:this.ns.b()},[Oe("div",{class:this.ns.e("content")},[this.c.isMDSortButton&&Oe(De("van-button"),{class:this.ns.e("md-sort"),onClick:this.handleClick},{default:()=>[Oe("svg",{class:this.ns.em("md-sort","icon"),viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"10950",height:"1em",width:"1em"},[Oe("path",{d:"M83.6 263.2H590c20.8 0 37.6-16.9 37.6-37.6S610.7 188 590 188H83.6C62.8 188 46 204.9 46 225.6s16.9 37.6 37.6 37.6zM538.3 513.5c0-20.8-16.9-37.6-37.6-37.6h-417c-20.8 0-37.6 16.9-37.6 37.6s16.9 37.6 37.6 37.6h417c20.8 0.1 37.6-16.8 37.6-37.6zM381.5 729.1H83.6C62.8 729.1 46 746 46 766.7s16.9 37.6 37.6 37.6h297.9c20.8 0 37.6-16.9 37.6-37.6s-16.8-37.6-37.6-37.6zM967 582.7c-14.7-14.7-38.5-14.7-53.2 0L782.3 714.1V205.7c0-20.8-16.9-37.6-37.6-37.6S707 184.9 707 205.7v503.8L580.3 582.7c-14.7-14.7-38.5-14.7-53.2 0s-14.7 38.5 0 53.2l220 220 220-220c14.6-14.6 14.6-38.5-0.1-53.2z","p-id":"10951"},null)])]}),this.c.isMDSearchformBtn&&Oe(De("van-button"),{class:this.ns.e("md-advaned-searchform"),onClick:this.handleAdvanedClick},{default:()=>[Oe("svg",{class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"6901",height:"1em",width:"1em",fill:"currentColor"},[Oe("path",{d:"M777.6 243.2c12.8-22.4 12.8-48 0-70.4-12.8-19.2-32-32-54.4-32H204.8c-22.4 0-41.6 12.8-54.4 32-12.8 22.4-12.8 48 0 70.4l192 320v252.8c0 25.6 12.8 44.8 32 57.6 9.6 6.4 19.2 9.6 32 9.6 9.6 0 19.2-3.2 28.8-6.4l115.2-64c22.4-12.8 35.2-35.2 35.2-57.6v-188.8l192-323.2z m-252.8 284.8c-6.4 9.6-9.6 22.4-9.6 35.2v188.8L416 806.4v-246.4c0-12.8-3.2-25.6-9.6-35.2l-192-316.8h502.4l-192 320zM662.4 761.6l80 105.6c12.8 16 38.4 16 51.2 0l80-105.6c9.6-12.8 6.4-35.2-6.4-44.8s-35.2-6.4-44.8 6.4l-22.4 28.8v-192c0-19.2-12.8-32-32-32s-32 12.8-32 32v192l-22.4-28.8c-6.4-9.6-16-12.8-25.6-12.8-6.4 0-12.8 3.2-19.2 6.4-12.8 9.6-16 32-6.4 44.8z","p-id":"6902","data-spm-anchor-id":"a313x.search_index.0.i1.7df83a812sJGKb",class:"selected",fill:"currentColor"},null)])]})])])}});var C_=Object.defineProperty,S_=(e,t,n)=>(((e,t,n)=>{t in e?C_(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,t+"",n),n);class M_{constructor(){S_(this,"component","IBizSettingContainer")}async createController(e,t,n){const a=new A_(e,t,n);return await a.init(),a}}const x_=k(k_,function(e){e.component(k_.name,k_),ja("CONTAINER_SETTING_CONTAINER",()=>new M_)});var O_=Object.defineProperty,D_=(e,t,n)=>(((e,t,n)=>{t in e?O_(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n),n);class T_ extends Ha{constructor(){super(...arguments),D_(this,"splitMode","horizontal"),D_(this,"splitValue",.5),D_(this,"lastSplitValue",null)}initSplitValue(e,t){"PX"===t&&(this.splitValue="".concat(e,"px")),"PERCENTAGE"===t&&(this.splitValue=e/100),this.state.splitValue=this.splitValue}async onInit(){await super.onInit();const{predefinedType:e,panelItems:t}=this.model;if(this.splitMode="CONTAINER_V_SPLIT"===e?"vertical":"horizontal",Array.isArray(t)&&t.length){const e=t[0].layoutPos;if(e){if("horizontal"===this.splitMode){const{width:t,widthMode:n}=e;null!=t&&null!=n&&this.initSplitValue(t,n)}if("vertical"===this.splitMode){const{height:t,heightMode:n}=e;null!=t&&null!=n&&this.initSplitValue(t,n)}}}}hiddenPanel(e){this.state.isHiddenTrigger||(this.lastSplitValue=this.state.splitValue),"left"!==e&&"top"!==e||(this.state.splitValue=0),"right"!==e&&"bottom"!==e||(this.state.splitValue=1),this.state.isHiddenTrigger=!0}showPanel(){null!=this.lastSplitValue&&(this.state.splitValue=this.lastSplitValue,this.state.isHiddenTrigger=!1,this.lastSplitValue=null)}}const j_=xe({name:"IBizSplitContainer",props:{modelData:{type:Object,required:!0},controller:{type:T_,required:!0}},setup(e){const t=n("split-container"),{id:a}=e.modelData,i=qe(()=>{let n=[t.b(),t.m(a)];return n=[...n,...e.controller.containerClass,t.is("hidden",!e.controller.state.visible),t.is("hidden-trigger",e.controller.state.isHiddenTrigger)],n});return{ns:t,classArr:i}},render(){var e,t;const n=(null==(t=(e=this.$slots).default)?void 0:t.call(e))||[];return Ye(Oe("div",{class:this.classArr,"element-loading-text":this.controller.state.loadingText},[Oe(De("iBizSplit"),{modelValue:this.controller.state.splitValue,"onUpdate:modelValue":e=>this.controller.state.splitValue=e,mode:this.controller.splitMode},{left:()=>n[0],right:()=>n[1],top:()=>n[0],bottom:()=>n[1]})]),[[ot("loading"),this.controller.state.loading]])}});var L_=Object.defineProperty,V_=(e,t,n)=>(((e,t,n)=>{t in e?L_(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,t+"",n),n);class B_{constructor(){V_(this,"component","IBizSplitContainer")}async createController(e,t,n){const a=new T_(e,t,n);return await a.init(),a}}const U_=k(j_,function(e){e.component(j_.name,j_),ja("CONTAINER_CONTAINER_H_SPLIT",()=>new B_),ja("CONTAINER_CONTAINER_V_SPLIT",()=>new B_)});const z_=xe({name:"IBizThemeToggling",props:{modelData:{type:Object,required:!0},controller:{type:Object,required:!0}},setup(e){const t=e.controller;return{ns:n("theme-toggling"),c:t,themeList:[{title:ibiz.i18n.t("panelComponent.themeToggling.auto"),value:"auto"},{title:ibiz.i18n.t("panelComponent.themeToggling.light"),value:"light"},{title:ibiz.i18n.t("panelComponent.themeToggling.dark"),value:"dark"}]}},render(){let e;return Oe(De("van-cell-group"),{inset:!0,class:[this.ns.b(),this.ns.m(this.modelData.id),...this.controller.containerClass]},function(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!Ve(e)}(e=this.themeList.map(e=>Oe(De("van-cell"),{center:!0,clickable:!0,title:e.title,class:this.ns.e("item"),onClick:()=>this.c.switchTheme(e.value)},{"right-icon":()=>this.c.state.theme===e.value?Oe(De("van-icon"),{class:this.ns.e("icon"),name:"success"},null):null})))?e:{default:()=>[e]})}});var R_=Object.defineProperty,F_=(e,t,n)=>(((e,t,n)=>{t in e?R_(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,t+"",n),n);class $_ extends La{constructor(){super(...arguments),F_(this,"theme","")}}var q_=Object.defineProperty,W_=(e,t,n)=>(((e,t,n)=>{t in e?q_(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,t+"",n),n);class H_ extends Va{constructor(){super(...arguments),W_(this,"mediaQuery")}createState(){var e;return new $_(null==(e=this.parent)?void 0:e.state)}async onInit(){await super.onInit(),this.state.theme=ibiz.util.theme.getTheme(),this.handleSystemThemeChange=this.handleSystemThemeChange.bind(this),this.mediaQuery=window.matchMedia("(prefers-color-scheme: dark)"),this.mediaQuery.addEventListener("change",this.handleSystemThemeChange)}getSystemTheme(){return this.mediaQuery.matches?"dark":"light"}handleSystemThemeChange(e){const t=e.matches?"dark":"light";"auto"===this.state.theme&&ibiz.util.theme.setTheme(t)}switchTheme(e){if(e===this.state.theme)return;this.state.theme=e;const t="auto"===e?this.getSystemTheme():e;ibiz.util.theme.setTheme(t)}destroy(){super.destroy(),this.mediaQuery.removeEventListener("change",this.handleSystemThemeChange)}}var G_=Object.defineProperty,Y_=(e,t,n)=>(((e,t,n)=>{t in e?G_(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,t+"",n),n);class X_{constructor(){Y_(this,"component","IBizThemeToggling")}async createController(e,t,n){const a=new H_(e,t,n);return await a.init(),a}}const J_=k(z_,function(e){e.component(z_.name,z_),ja("RAWITEM_THEME_TOGGLING",()=>new X_)});var K_=Object.defineProperty,Q_=(e,t,n)=>(((e,t,n)=>{t in e?K_(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,t+"",n),n);class Z_ extends Ga{constructor(){super(...arguments),Q_(this,"actionGroupState",null)}}class eE extends Ha{createState(){var e;return new Z_(null==(e=this.parent)?void 0:e.state)}get disableClose(){const{titleBarCloseMode:e}=this.model;return 0===e||void 0===e}get defaultExpansion(){const{titleBarCloseMode:e}=this.model;return this.disableClose||1===e}async onInit(){await super.onInit(),this.model.uiactionGroup&&await Wa(this.model.uiactionGroup,this.panel.context,this.panel.params),await this.initActionStates()}async initActionStates(){var e;const{uiactionGroup:t}=this.model;if(!(null==(e=null==t?void 0:t.uiactionGroupDetails)?void 0:e.length))return;const n=new qa;Vn(t.uiactionGroupDetails).forEach(e=>{const t=e.uiactionId;if(t){const a=new Ua(e.id,this.panel.context.srfappid,t,e);n.addState(e.id,a)}}),await n.update(this.panel.context,this.data),this.state.actionGroupState=n}async onActionClick(e,t,n){const a=e.uiactionId,i=Zt(this.panel.params);n&&Object.assign(i,n),await In.execAndResolved(a,{context:this.panel.context,params:i,data:[this.data],view:this.panel.view,ctrl:this.panel,event:t},e.appId)}}var tE=Object.defineProperty,nE=(e,t,n)=>(((e,t,n)=>{t in e?tE(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,t+"",n),n);class aE{constructor(){nE(this,"component","IBizPanelContainerGroup")}async createController(e,t,n){const a=new eE(e,t,n);return await a.init(),a}}function iE(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!Ve(e)}const oE=xe({name:"IBizPanelContainerGroup",props:{modelData:{type:Object,required:!0},controller:{type:eE,required:!0}},setup(e){const t=n("panel-container-group"),a=je(!e.controller.defaultExpansion),{zIndex:i}=d();return{ns:t,captionText:qe(()=>{const{captionItemName:t,caption:n,capLanguageRes:a}=e.modelData;if(t)return e.controller.data[t];let i=n;return a&&(i=ibiz.i18n.t(a.lanResTag,n)),i}),isCollapse:a,zIndex:i,changeCollapse:()=>{e.controller.disableClose||(a.value=!a.value)},onActionClick:async(t,n)=>{const a={srfgroupid:e.modelData.codeName};await e.controller.onActionClick(t,n,a)}}},render(){var e,t;let n;const{state:a}=this.controller,i=[this.ns.b(),this.ns.m(this.modelData.id),...this.controller.containerClass,this.ns.is("hidden",!this.controller.state.visible),this.ns.is("mob",ibiz.env.isMob)];!0===this.modelData.showCaption&&(i.push(this.ns.m("show-header")),i.push(this.ns.b("collapse")),i.push(this.ns.is("collapse",this.isCollapse)),this.controller.disableClose&&i.push(this.ns.bm("collapse","disable-close")));const o=(null==(t=(e=this.$slots).default)?void 0:t.call(e))||[],r=Oe(De("iBizRow"),{slot:"content",layout:this.modelData.layout},iE(n=o.map(e=>{const t=e.props;return t&&t.controller?Oe(De("iBizCol"),{layoutPos:t.modelData.layoutPos,state:t.controller.state},iE(e)?e:{default:()=>[e]}):e}))?n:{default:()=>[n]});let s=null;return this.modelData.showCaption&&(s=Oe("div",{class:[this.ns.b("header"),this.ns.is("is-mob",ibiz.env.isMob)],onClick:this.changeCollapse},[Oe("div",{class:[this.ns.be("header","left")]},[Oe("div",{class:[this.ns.e("caption"),...this.controller.labelClass]},[this.modelData.sysImage&&Oe(y,{class:this.ns.em("caption","icon"),icon:this.modelData.sysImage},null),this.captionText,this.modelData.counterId&&Oe("span",{class:this.ns.e("counter")},[Qe("("),this.controller.state.counterData[this.modelData.counterId],Qe(")")])])]),Oe("div",{class:[this.ns.be("header","right")]},[this.modelData.uiactionGroup&&Oe(De("iBizActionToolbar"),{zIndex:this.zIndex.zIndex,class:this.ns.e("toolbar"),"action-details":this.modelData.uiactionGroup.uiactionGroupDetails,"actions-state":a.actionGroupState,onActionClick:this.onActionClick,caption:this.modelData.uiactionGroup.name,mode:"ITEMS"===this.modelData.actionGroupExtractMode?"dropdown":"buttons"},null),void 0!==this.modelData.titleBarCloseMode&&0!==this.modelData.titleBarCloseMode&&(this.isCollapse?Oe("ion-icon",{name:"caret-forward-sharp"},null):Oe("ion-icon",{name:"caret-down-sharp"},null))])])),Ye(Oe("div",{class:i,"element-loading-text":this.controller.state.loadingText},[s,Oe("div",{class:[this.ns.b("content")]},[r])]),[[ot("loading"),this.controller.state.loading]])}}),rE=k(oE,function(e){e.component(oE.name,oE),ja("CONTAINER_CONTAINER_GROUP",()=>new aE)}),sE=e("aP",{install:e=>{e.use(J_),e.use(U_),e.use(j),e.use(L),e.use(V),e.use(fy),e.use(yb),e.use(Nb),e.use(Mb),e.use(Rb),e.use(B),e.use(U),e.use(ay),e.use(z),e.use(R),e.use(Jb),e.use(F),e.use($),e.use(q),e.use(W),e.use(Iy),e.use(rE),e.use(H),e.use(G),e.use(Dy),e.use(Ry),e.use(Hy),e.use(Y),e.use(gw),e.use(Dw),e.use(Fw),e.use(Gw),e.use(X),e.use(J),e.use(i_),e.use(h_),e.use(g_),e.use(I_),e.use(x_)}});class lE extends Ya{back(){const{goBack:e}=bo();e()}getShowViewHeader(){return ibiz.config.view.mobShowViewHeader}getShowPresetBack(){return ibiz.config.view.mobShowPresetBack}}e("aR",lE);var cE={exports:{}},uE={},dE={},hE={},pE={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.LogLevel=e.APP_TYPE=e.ENV_ENUM_SUB=e.ENV_ENUM=e.ERROR_CODE=e.compareVersion=e.isFunction=void 0,e.isFunction=function(e){return"function"==typeof e},e.compareVersion=function(e,t){function n(e){return parseInt(e,10)||0}for(var a=e.split(".").map(n),i=t.split(".").map(n),o=0;o<a.length;o++){if(void 0===i[o])return!1;if(a[o]<i[o])return!1;if(a[o]>i[o])return!0}return!0},function(e){e.cancel="-1",e.not_exist="1",e.no_permission="7"}(e.ERROR_CODE||(e.ERROR_CODE={})),function(e){e.pc="pc",e.android="android",e.ios="ios",e.gdtPc="gdtPc",e.gdtAndroid="gdtAndroid",e.gdtIos="gdtIos",e.gdtStandardAndroid="gdtStandardAndroid",e.gdtStandardIos="gdtStandardIos",e.notInDingTalk="notInDingTalk",e.windows="windows",e.mac="mac",e.harmony="harmony"}(e.ENV_ENUM||(e.ENV_ENUM={})),function(e){e.mac="mac",e.win="win",e.noSub="noSub"}(e.ENV_ENUM_SUB||(e.ENV_ENUM_SUB={})),function(e){e.WEB="WEB",e.MINI_APP="MINI_APP",e.WEEX="WEEX",e.WEBVIEW_IN_MINIAPP="WEBVIEW_IN_MINIAPP",e.WEEX_WIDGET="WEEX_WIDGET"}(e.APP_TYPE||(e.APP_TYPE={})),function(e){e[e.INFO=1]="INFO",e[e.WARNING=2]="WARNING",e[e.ERROR=3]="ERROR"}(e.LogLevel||(e.LogLevel={}))}(pE);var fE,vE,mE,gE={},bE={};fE=bE,vE=wo&&wo.__awaiter||function(e,t,n,a){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||(n=Promise))(function(n,o){function r(e){try{l(a.next(e))}catch(e){o(e)}}function s(e){try{l(a.throw(e))}catch(e){o(e)}}function l(e){e.done?n(e.value):i(e.value).then(r,s)}l((a=a.apply(e,t||[])).next())})},mE=wo&&wo.__generator||function(e,t){function n(e){return function(t){return a([e,t])}}function a(n){if(i)throw new TypeError("Generator is already executing.");for(;l;)try{if(i=1,o&&(r=2&n[0]?o.return:n[0]?o.throw||((r=o.return)&&r.call(o),0):o.next)&&!(r=r.call(o,n[1])).done)return r;switch(o=0,r&&(n=[2&n[0],r.value]),n[0]){case 0:case 1:r=n;break;case 4:return l.label++,{value:n[1],done:!1};case 5:l.label++,o=n[1],n=[0];continue;case 7:n=l.ops.pop(),l.trys.pop();continue;default:if(!(r=(r=l.trys).length>0&&r[r.length-1])&&(6===n[0]||2===n[0])){l=0;continue}if(3===n[0]&&(!r||n[1]>r[0]&&n[1]<r[3])){l.label=n[1];break}if(6===n[0]&&l.label<r[1]){l.label=r[1],r=n;break}if(r&&l.label<r[2]){l.label=r[2],l.ops.push(n);break}r[2]&&l.ops.pop(),l.trys.pop();continue}n=t.call(e,l)}catch(e){n=[6,e],o=0}finally{i=r=0}if(5&n[0])throw n[1];return{value:n[0]?n[1]:void 0,done:!0}}var i,o,r,s,l={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return s={next:n(0),throw:n(1),return:n(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s},Object.defineProperty(fE,"__esModule",{value:!0}),fE.bridge=void 0,fE.bridge=function(e){return vE(this,void 0,void 0,function(){var t,n,a,i;return mE(this,function(o){return t=e.invokeName,n=e.method,a=e.callParams,(i=e.JSBridge)?[2,i(t||n,a)]:[2,this.bridgeInitFn().then(function(e){return e(t||n,a)})]})})};var yE,wE={};var _E={};!function(e){var t=wo&&wo.__awaiter||function(e,t,n,a){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||(n=Promise))(function(n,o){function r(e){try{l(a.next(e))}catch(e){o(e)}}function s(e){try{l(a.throw(e))}catch(e){o(e)}}function l(e){e.done?n(e.value):i(e.value).then(r,s)}l((a=a.apply(e,t||[])).next())})},n=wo&&wo.__generator||function(e,t){function n(e){return function(t){return a([e,t])}}function a(n){if(i)throw new TypeError("Generator is already executing.");for(;l;)try{if(i=1,o&&(r=2&n[0]?o.return:n[0]?o.throw||((r=o.return)&&r.call(o),0):o.next)&&!(r=r.call(o,n[1])).done)return r;switch(o=0,r&&(n=[2&n[0],r.value]),n[0]){case 0:case 1:r=n;break;case 4:return l.label++,{value:n[1],done:!1};case 5:l.label++,o=n[1],n=[0];continue;case 7:n=l.ops.pop(),l.trys.pop();continue;default:if(!(r=(r=l.trys).length>0&&r[r.length-1])&&(6===n[0]||2===n[0])){l=0;continue}if(3===n[0]&&(!r||n[1]>r[0]&&n[1]<r[3])){l.label=n[1];break}if(6===n[0]&&l.label<r[1]){l.label=r[1],r=n;break}if(r&&l.label<r[2]){l.label=r[2],l.ops.push(n);break}r[2]&&l.ops.pop(),l.trys.pop();continue}n=t.call(e,l)}catch(e){n=[6,e],o=0}finally{i=r=0}if(5&n[0])throw n[1];return{value:n[0]?n[1]:void 0,done:!0}}var i,o,r,s,l={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return s={next:n(0),throw:n(1),return:n(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s};Object.defineProperty(e,"__esModule",{value:!0}),e.dealParamsAndResult=void 0;var a=pE;e.dealParamsAndResult=function(e,i){return t(this,void 0,void 0,function(){var o,r,s,l,c,u,d,h,p,f=this;return n(this,function(v){switch(v.label){case 0:return o=e.method,r=e.params,s=e.apiConfig,l=this.devConfig.forceEnableDealApiFnMap&&this.devConfig.forceEnableDealApiFnMap[o]&&!0===this.devConfig.forceEnableDealApiFnMap[o](r),c=!l&&(!0===this.devConfig.isDisableDeal||this.devConfig.disbaleDealApiWhiteList&&-1!==this.devConfig.disbaleDealApiWhiteList.indexOf(o)),u={},!c&&s&&s.paramsDeal&&a.isFunction(s.paramsDeal)?[4,s.paramsDeal(r)]:[3,2];case 1:return u=v.sent(),[3,3];case 2:u=Object.assign({},r),v.label=3;case 3:return d=function(e){return t(f,void 0,void 0,function(){return n(this,function(t){return!c&&s&&s.resultDeal&&a.isFunction(s.resultDeal)?[2,s.resultDeal(e)]:[2,e]})})},a.isFunction(u.onSuccess)&&(h=u.onSuccess,u.onSuccess=function(e){return t(f,void 0,void 0,function(){var t;return n(this,function(n){switch(n.label){case 0:return t=h,[4,d(e)];case 1:return t.apply(void 0,[n.sent()]),[2]}})})}),a.isFunction(u.success)&&(p=u.success,u.success=function(e){return t(f,void 0,void 0,function(){var t;return n(this,function(n){switch(n.label){case 0:return t=p,[4,d(e)];case 1:return t.apply(void 0,[n.sent()]),[2]}})})}),Object.assign(e,{callParams:u,invokeName:null==s?void 0:s.invokeName}),[2,i().then(d)]}})})}}(_E);var EE={},PE={};!function(e){var t;Object.defineProperty(e,"__esModule",{value:!0}),e.formatLog=e.diagnosticMessageMap=e.LogLevel=void 0,function(e){e.INFO="INFO",e.WARN="WARN",e.ERROR="ERROR"}(t=e.LogLevel||(e.LogLevel={}));var n=function(e,t,n,a){return void 0===a&&(a=void 0),{code:e,category:t,message:n,solution:a}};e.diagnosticMessageMap={config_debug_deprecated:n(1010,t.WARN,"This is a deprecated feature (dd.debug - debug:true), recommend use dd.devConfig"),dd_config_wrap_deprecated:n(1020,t.WARN,"You don 't use a dd.config, so you don't need to wrap dd.ready, recommend remove dd.ready"),not_support_event_on:n(1030,t.WARN,"\"event.on\" do not support the current platform ('{0}')"),not_support_event_off:n(1040,t.WARN,"\"event.off\" do not support the current platform ('{0}')"),repeat_config:n(1040,t.WARN,"dd.config has been executed, please don't repeat config"),JsBridge_init_fail:n(5010,t.ERROR,"JsBridge initialization fails, jsapi will not work"),auto_bridge_init_error:n(5020,t.ERROR,"auto bridgeInit error"),JsBridge_init_fail_dd_config:n(5010,t.ERROR,'JsBridge initialization failed and "dd.config" failed to call'),not_support_env:n(4040,t.ERROR,"Do not support the current environment:'{0}'"),call_api_support_platform_error:n(4050,t.ERROR,"'{0}' do not support the current platform ('{1}')"),call_api_config_platform_error:n(4060,t.ERROR,"This API method is not configured for the platform ('{0}')"),call_api_on_before_error:n(4060,t.ERROR,"Call Hook:onBeforeInvokeAPI failed , reason: '{0}'"),call_api_on_after_error:n(4060,t.ERROR,"Call Hook:onAfterInvokeAPI failed , reason: '{0}'")},e.formatLog=function(e){for(var t,n=[],a=1;a<arguments.length;a++)n[a-1]=arguments[a];var i="[DINGTALK-JSAPI] "+e.category+" "+e.code+": "+e.message.replace(/{(\d)}/g,function(e,t){return n[t]||e});return"object"==typeof process&&"production"!==(null===(t=null===process||void 0===process?void 0:process.env)||void 0===t?void 0:t.NODE_ENV)&&console.warn(i),i}}(PE),function(e){var t=wo&&wo.__awaiter||function(e,t,n,a){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||(n=Promise))(function(n,o){function r(e){try{l(a.next(e))}catch(e){o(e)}}function s(e){try{l(a.throw(e))}catch(e){o(e)}}function l(e){e.done?n(e.value):i(e.value).then(r,s)}l((a=a.apply(e,t||[])).next())})},n=wo&&wo.__generator||function(e,t){function n(e){return function(t){return a([e,t])}}function a(n){if(i)throw new TypeError("Generator is already executing.");for(;l;)try{if(i=1,o&&(r=2&n[0]?o.return:n[0]?o.throw||((r=o.return)&&r.call(o),0):o.next)&&!(r=r.call(o,n[1])).done)return r;switch(o=0,r&&(n=[2&n[0],r.value]),n[0]){case 0:case 1:r=n;break;case 4:return l.label++,{value:n[1],done:!1};case 5:l.label++,o=n[1],n=[0];continue;case 7:n=l.ops.pop(),l.trys.pop();continue;default:if(!(r=(r=l.trys).length>0&&r[r.length-1])&&(6===n[0]||2===n[0])){l=0;continue}if(3===n[0]&&(!r||n[1]>r[0]&&n[1]<r[3])){l.label=n[1];break}if(6===n[0]&&l.label<r[1]){l.label=r[1],r=n;break}if(r&&l.label<r[2]){l.label=r[2],l.ops.push(n);break}r[2]&&l.ops.pop(),l.trys.pop();continue}n=t.call(e,l)}catch(e){n=[6,e],o=0}finally{i=r=0}if(5&n[0])throw n[1];return{value:n[0]?n[1]:void 0,done:!0}}var i,o,r,s,l={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return s={next:n(0),throw:n(1),return:n(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s};Object.defineProperty(e,"__esModule",{value:!0}),e.checkConfig=void 0;var a=PE;e.checkConfig=function(e,i){return t(this,void 0,void 0,function(){var t,o,r,s,l;return n(this,function(n){return!1===this.devConfig.isAuthApi&&(e.isAuthApi=!1),t=e.isAuthApi,o=e.method,(r=this.invokeAPIConfigMapByMethod[o])||!t?(s=void 0,r&&(s=r[this.env.platform]),e.apiConfig=s,s||!t?[2,i()]:(l=a.formatLog(a.diagnosticMessageMap.call_api_support_platform_error,o,this.env.platform),[2,Promise.reject({errorCode:a.diagnosticMessageMap.call_api_support_platform_error.code,errorMessage:l})])):(l=a.formatLog(a.diagnosticMessageMap.call_api_config_platform_error,this.env.platform),[2,Promise.reject({errorCode:a.diagnosticMessageMap.call_api_config_platform_error.code,errorMessage:l})])})})}}(EE);var NE={};!function(e){var t=wo&&wo.__awaiter||function(e,t,n,a){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||(n=Promise))(function(n,o){function r(e){try{l(a.next(e))}catch(e){o(e)}}function s(e){try{l(a.throw(e))}catch(e){o(e)}}function l(e){e.done?n(e.value):i(e.value).then(r,s)}l((a=a.apply(e,t||[])).next())})},n=wo&&wo.__generator||function(e,t){function n(e){return function(t){return a([e,t])}}function a(n){if(i)throw new TypeError("Generator is already executing.");for(;l;)try{if(i=1,o&&(r=2&n[0]?o.return:n[0]?o.throw||((r=o.return)&&r.call(o),0):o.next)&&!(r=r.call(o,n[1])).done)return r;switch(o=0,r&&(n=[2&n[0],r.value]),n[0]){case 0:case 1:r=n;break;case 4:return l.label++,{value:n[1],done:!1};case 5:l.label++,o=n[1],n=[0];continue;case 7:n=l.ops.pop(),l.trys.pop();continue;default:if(!(r=(r=l.trys).length>0&&r[r.length-1])&&(6===n[0]||2===n[0])){l=0;continue}if(3===n[0]&&(!r||n[1]>r[0]&&n[1]<r[3])){l.label=n[1];break}if(6===n[0]&&l.label<r[1]){l.label=r[1],r=n;break}if(r&&l.label<r[2]){l.label=r[2],l.ops.push(n);break}r[2]&&l.ops.pop(),l.trys.pop();continue}n=t.call(e,l)}catch(e){n=[6,e],o=0}finally{i=r=0}if(5&n[0])throw n[1];return{value:n[0]?n[1]:void 0,done:!0}}var i,o,r,s,l={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return s={next:n(0),throw:n(1),return:n(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s};Object.defineProperty(e,"__esModule",{value:!0}),e.initBridge=void 0,e.initBridge=function(e,a){return t(this,void 0,void 0,function(){return n(this,function(t){return[2,this.bridgeInitFn().then(function(t){return e.JSBridge=t,a()})]})})}}(NE);var IE={};!function(e){var t=wo&&wo.__awaiter||function(e,t,n,a){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||(n=Promise))(function(n,o){function r(e){try{l(a.next(e))}catch(e){o(e)}}function s(e){try{l(a.throw(e))}catch(e){o(e)}}function l(e){e.done?n(e.value):i(e.value).then(r,s)}l((a=a.apply(e,t||[])).next())})},n=wo&&wo.__generator||function(e,t){function n(e){return function(t){return a([e,t])}}function a(n){if(i)throw new TypeError("Generator is already executing.");for(;l;)try{if(i=1,o&&(r=2&n[0]?o.return:n[0]?o.throw||((r=o.return)&&r.call(o),0):o.next)&&!(r=r.call(o,n[1])).done)return r;switch(o=0,r&&(n=[2&n[0],r.value]),n[0]){case 0:case 1:r=n;break;case 4:return l.label++,{value:n[1],done:!1};case 5:l.label++,o=n[1],n=[0];continue;case 7:n=l.ops.pop(),l.trys.pop();continue;default:if(!(r=(r=l.trys).length>0&&r[r.length-1])&&(6===n[0]||2===n[0])){l=0;continue}if(3===n[0]&&(!r||n[1]>r[0]&&n[1]<r[3])){l.label=n[1];break}if(6===n[0]&&l.label<r[1]){l.label=r[1],r=n;break}if(r&&l.label<r[2]){l.label=r[2],l.ops.push(n);break}r[2]&&l.ops.pop(),l.trys.pop();continue}n=t.call(e,l)}catch(e){n=[6,e],o=0}finally{i=r=0}if(5&n[0])throw n[1];return{value:n[0]?n[1]:void 0,done:!0}}var i,o,r,s,l={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return s={next:n(0),throw:n(1),return:n(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s};Object.defineProperty(e,"__esModule",{value:!0}),e.hookBeforeAndAfter=void 0;var a=PE;e.hookBeforeAndAfter=function(e,i){return t(this,void 0,void 0,function(){var t,o,r,s,l,c,u,d,h;return n(this,function(n){switch(n.label){case 0:if(t=e.method,o=e.params,r=+new Date,s=r+"_"+Math.floor(1e3*Math.random()),this.devConfig.onBeforeInvokeAPI)try{this.devConfig.onBeforeInvokeAPI({invokeId:s,method:t,params:o,startTime:r})}catch(e){a.formatLog(a.diagnosticMessageMap.call_api_on_before_error,e.toString())}u=!0,n.label=1;case 1:return n.trys.push([1,3,,4]),[4,i()];case 2:return l=n.sent(),[3,4];case 3:return d=n.sent(),c=d,u=!1,[3,4];case 4:if(h=u?l:c,this.devConfig.onAfterInvokeAPI)try{this.devConfig.onAfterInvokeAPI({invokeId:s,method:t,params:o,payload:h,startTime:r,duration:+new Date-r,isSuccess:u})}catch(e){a.formatLog(a.diagnosticMessageMap.call_api_on_after_error,e.toString())}return[2,u?Promise.resolve(h):Promise.reject(h)]}})})}}(IE);var AE,kE,CE={};function SE(){return kE||(kE=1,function(e){var t=wo&&wo.__createBinding||(Object.create?function(e,t,n,a){void 0===a&&(a=n),Object.defineProperty(e,a,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,a){void 0===a&&(a=n),e[a]=t[n]}),n=wo&&wo.__exportStar||function(e,n){for(var a in e)"default"===a||n.hasOwnProperty(a)||t(n,e,a)};Object.defineProperty(e,"__esModule",{value:!0}),e.ApiHandler=void 0;var a=function(){var e=this;this.middlewares=[],this.use=function(t){e.middlewares.push(t)},this.start=function(t){var n=e.middlewares.slice().reverse(),a=function(e){return e<n.length?function(){return n[e](t,a(e+1))}:function(){}};return a(0)()}};e.ApiHandler=a,n(bE,e),n((yE||(yE=1,function(e){var t=wo&&wo.__awaiter||function(e,t,n,a){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||(n=Promise))(function(n,o){function r(e){try{l(a.next(e))}catch(e){o(e)}}function s(e){try{l(a.throw(e))}catch(e){o(e)}}function l(e){e.done?n(e.value):i(e.value).then(r,s)}l((a=a.apply(e,t||[])).next())})},n=wo&&wo.__generator||function(e,t){function n(e){return function(t){return a([e,t])}}function a(n){if(i)throw new TypeError("Generator is already executing.");for(;l;)try{if(i=1,o&&(r=2&n[0]?o.return:n[0]?o.throw||((r=o.return)&&r.call(o),0):o.next)&&!(r=r.call(o,n[1])).done)return r;switch(o=0,r&&(n=[2&n[0],r.value]),n[0]){case 0:case 1:r=n;break;case 4:return l.label++,{value:n[1],done:!1};case 5:l.label++,o=n[1],n=[0];continue;case 7:n=l.ops.pop(),l.trys.pop();continue;default:if(!(r=(r=l.trys).length>0&&r[r.length-1])&&(6===n[0]||2===n[0])){l=0;continue}if(3===n[0]&&(!r||n[1]>r[0]&&n[1]<r[3])){l.label=n[1];break}if(6===n[0]&&l.label<r[1]){l.label=r[1],r=n;break}if(r&&l.label<r[2]){l.label=r[2],l.ops.push(n);break}r[2]&&l.ops.pop(),l.trys.pop();continue}n=t.call(e,l)}catch(e){n=[6,e],o=0}finally{i=r=0}if(5&n[0])throw n[1];return{value:n[0]?n[1]:void 0,done:!0}}var i,o,r,s,l={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return s={next:n(0),throw:n(1),return:n(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s};Object.defineProperty(e,"__esModule",{value:!0}),e.retry=void 0;var a=OE(),i=pE;e.retry=function(e,o){return t(this,void 0,void 0,function(){var t,r,s,l,c,u,d,h,p,f,v;return n(this,function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,o()];case 1:return[2,n.sent()];case 2:return t=n.sent(),r=e.method,s=e.isAuthApi,l=e.apiConfig,c=this.hadConfig&&void 0===this.isReady&&-1!==this.configJsApiList.indexOf(r),u="object"==typeof t&&"string"==typeof t.errorCode&&t.errorCode===i.ERROR_CODE.no_permission,d="object"==typeof t&&"string"==typeof t.errorCode&&t.errorCode===i.ERROR_CODE.cancel,h=a.getTargetApiConfigVS(l,this.env),p=h&&this.env.version&&i.compareVersion(this.env.version,h),f=(this.env.platform===i.ENV_ENUM.ios||this.env.platform===i.ENV_ENUM.android)&&c&&u,v=this.env.platform===i.ENV_ENUM.pc&&c&&(p&&!d&&s||u),f||v?[2,this.config$.then(function(){return o()})]:[2,Promise.reject(t)];case 3:return[2]}})})}}(wE)),wE),e),n(_E,e),n(EE,e),n(NE,e),n(IE,e),n((AE||(AE=1,function(e){var t=wo&&wo.__awaiter||function(e,t,n,a){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||(n=Promise))(function(n,o){function r(e){try{l(a.next(e))}catch(e){o(e)}}function s(e){try{l(a.throw(e))}catch(e){o(e)}}function l(e){e.done?n(e.value):i(e.value).then(r,s)}l((a=a.apply(e,t||[])).next())})},n=wo&&wo.__generator||function(e,t){function n(e){return function(t){return a([e,t])}}function a(n){if(i)throw new TypeError("Generator is already executing.");for(;l;)try{if(i=1,o&&(r=2&n[0]?o.return:n[0]?o.throw||((r=o.return)&&r.call(o),0):o.next)&&!(r=r.call(o,n[1])).done)return r;switch(o=0,r&&(n=[2&n[0],r.value]),n[0]){case 0:case 1:r=n;break;case 4:return l.label++,{value:n[1],done:!1};case 5:l.label++,o=n[1],n=[0];continue;case 7:n=l.ops.pop(),l.trys.pop();continue;default:if(!(r=(r=l.trys).length>0&&r[r.length-1])&&(6===n[0]||2===n[0])){l=0;continue}if(3===n[0]&&(!r||n[1]>r[0]&&n[1]<r[3])){l.label=n[1];break}if(6===n[0]&&l.label<r[1]){l.label=r[1],r=n;break}if(r&&l.label<r[2]){l.label=r[2],l.ops.push(n);break}r[2]&&l.ops.pop(),l.trys.pop();continue}n=t.call(e,l)}catch(e){n=[6,e],o=0}finally{i=r=0}if(5&n[0])throw n[1];return{value:n[0]?n[1]:void 0,done:!0}}var i,o,r,s,l={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return s={next:n(0),throw:n(1),return:n(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s};Object.defineProperty(e,"__esModule",{value:!0}),e.simpleLogger=void 0;var a=OE();e.simpleLogger=function(e,i){return t(this,void 0,void 0,function(){var t,o,r,s,l;return n(this,function(n){switch(n.label){case 0:e.method,e.params,r=!0,n.label=1;case 1:return n.trys.push([1,3,,4]),[4,i()];case 2:return t=n.sent(),[3,4];case 3:return s=n.sent(),o=s,r=!1,[3,4];case 4:return l=r?t:o,r?a.LogLevel.INFO:a.LogLevel.WARNING,[2,r?Promise.resolve(l):Promise.reject(l)]}})})}}(CE)),CE),e)}(gE)),gE}var ME,xE={};function OE(){return ME||(ME=1,function(e){function t(e,t){var n=e&&e.vs;return"object"==typeof n&&t.platformSub?n[t.platformSub]:"string"==typeof n?n:void 0}var n=wo&&wo.__assign||function(){return n=Object.assign||function(e){for(var t,n=1,a=arguments.length;n<a;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},n.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.Sdk=e.getTargetApiConfigVS=e.LogLevel=e.APP_TYPE=e.isFunction=e.compareVersion=e.ENV_ENUM_SUB=e.ENV_ENUM=void 0;var a=pE;Object.defineProperty(e,"APP_TYPE",{enumerable:!0,get:function(){return a.APP_TYPE}}),Object.defineProperty(e,"LogLevel",{enumerable:!0,get:function(){return a.LogLevel}}),Object.defineProperty(e,"isFunction",{enumerable:!0,get:function(){return a.isFunction}}),Object.defineProperty(e,"compareVersion",{enumerable:!0,get:function(){return a.compareVersion}}),Object.defineProperty(e,"ENV_ENUM",{enumerable:!0,get:function(){return a.ENV_ENUM}}),Object.defineProperty(e,"ENV_ENUM_SUB",{enumerable:!0,get:function(){return a.ENV_ENUM_SUB}});var i=SE(),o=PE,r=xE;e.getTargetApiConfigVS=t;var s=function(){function e(e){var s=this;this.configJsApiList=[],this.hadConfig=!1,this.devConfig={debug:!1},this.invokeAPIConfigMapByMethod={},this.p={},this.config$=new Promise(function(e,t){s.p.reject=t,s.p.resolve=e}),this.apiHandler=new i.ApiHandler,this.platformConfigMap={},this.isBridgeDrity=!0,this.getExportSdk=function(){return s.exportSdk},this.setAPI=function(e,t){s.invokeAPIConfigMapByMethod[e]=Object.assign(s.invokeAPIConfigMapByMethod[e]||{},t)},this.setPlatform=function(e){s.isBridgeDrity=!0,s.platformConfigMap[e.platform]=s.withDefaultEvent(e),e.platform===s.env.platform&&e.bridgeInit().catch(function(e){o.formatLog(o.diagnosticMessageMap.auto_bridge_init_error,null==e?void 0:e.toString())})},this.getPlatformConfigMap=function(){return s.platformConfigMap},this.deleteApiConfig=function(e,t){var n=s.invokeAPIConfigMapByMethod[e];n&&delete n[t]},this.invokeAPI=function(e,t,n){return void 0===t&&(t={}),void 0===n&&(n=!0),s.apiHandler.start({method:e,params:t,isAuthApi:n})},this.withDefaultEvent=function(e){var t=Object.assign({on:function(){return o.formatLog(o.diagnosticMessageMap.not_support_event_on)},off:function(){return o.formatLog(o.diagnosticMessageMap.not_support_event_off)}},e.event);return n(n({},e),{event:t})},this.env=e,this.bridgeInitFn=function(){if(s.bridgeInitFnPromise&&!s.isBridgeDrity)return s.bridgeInitFnPromise;s.isBridgeDrity=!1;var t=s.platformConfigMap[e.platform];if(t)s.bridgeInitFnPromise=t.bridgeInit().catch(function(e){return o.formatLog(o.diagnosticMessageMap.JsBridge_init_fail),Promise.reject(e)});else{var n=o.formatLog(o.diagnosticMessageMap.not_support_env,e.platform);s.bridgeInitFnPromise=Promise.reject(new Error(n))}return s.bridgeInitFnPromise};var l=function(e){void 0===e&&(e={}),s.devConfig=Object.assign(s.devConfig,e),e.extraPlatform&&s.setPlatform(e.extraPlatform)};this.exportSdk={config:function(t){void 0===t&&(t={});var n=!0;Object.keys(t).forEach(function(e){-1===["debug","usePromise"].indexOf(e)&&(n=!1)}),n?(o.formatLog(o.diagnosticMessageMap.config_debug_deprecated),l(t)):s.hadConfig?o.formatLog(o.diagnosticMessageMap.repeat_config):(t.jsApiList&&(s.configJsApiList=t.jsApiList.map(function(e){return r.default[e]?r.default[e]:e})),s.hadConfig=!0,s.bridgeInitFn().then(function(n){var a=s.platformConfigMap[e.platform],i=t;a.authParamsDeal&&(i=a.authParamsDeal(i)),n(a.authMethod,i).then(function(e){s.isReady=!0,s.p.resolve(e)}).catch(function(e){s.isReady=!1,s.p.reject(e)})},function(e){o.formatLog(o.diagnosticMessageMap.JsBridge_init_fail_dd_config),s.p.reject(e)}))},devConfig:l,ready:function(e){!1===s.hadConfig?(o.formatLog(o.diagnosticMessageMap.dd_config_wrap_deprecated),s.bridgeInitFn().then(function(){e()})):s.config$.then(function(t){e()})},error:function(e){s.config$.catch(function(t){e(t)})},on:function(t,n){s.bridgeInitFn().then(function(){var a;null===(a=s.platformConfigMap[e.platform].event)||void 0===a||a.on(t,n)})},off:function(t,n){s.bridgeInitFn().then(function(){var a;null===(a=s.platformConfigMap[e.platform].event)||void 0===a||a.off(t,n)})},env:e,checkJsApi:function(n){void 0===n&&(n={});var i={};return n.jsApiList&&n.jsApiList.forEach(function(n){var o=r.default[n]||n,l=s.invokeAPIConfigMapByMethod[o];if(l){var c=t(l[e.platform],e);c&&e.version&&a.compareVersion(e.version,c)&&(i[n]=!0)}i[n]||(i[n]=!1)}),Promise.resolve(i)},_invoke:function(e,t){return void 0===t&&(t={}),s.invokeAPI(e,t,!1)}},this.initApiMiddleware()}return e.prototype.useApiMiddleware=function(e){if(!a.isFunction(e))throw TypeError("middleware must be a function");this.apiHandler.use(e)},e.prototype.initApiMiddleware=function(){this.apiHandler.use(i.bridge.bind(this)),this.apiHandler.use(i.retry.bind(this)),this.apiHandler.use(i.dealParamsAndResult.bind(this)),this.apiHandler.use(i.checkConfig.bind(this)),this.apiHandler.use(i.initBridge.bind(this)),this.apiHandler.use(i.hookBeforeAndAfter.bind(this))},e}();e.Sdk=s}(hE)),hE}!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default={datePicker:"biz.util.datetimepicker",chooseOneDayInCalendar:"biz.calendar.chooseOneDay",disableWebViewBounce:"ui.webViewBounce.disable",openPageInSlidePanelForPC:"biz.util.openSlidePanel",disablePullDownRefresh:"ui.pullToRefresh.disable",compressImage:"biz.util.compressImage",openPageInWorkBenchForPC:"biz.util.invokeWorkbench",chooseHalfDayInCalendar:"biz.calendar.chooseHalfDay",dateRangePicker:"biz.calendar.chooseInterval",stopPullDownRefresh:"ui.pullToRefresh.stop",chooseDateRangeInCalendar:"biz.calendar.chooseInterval",stopRecord:"device.audio.stopRecord",navigateToPage:"biz.navigation.navigateToPage",chooseDateTime:"biz.calendar.chooseDateTime",enablePullDownRefresh:"ui.pullToRefresh.enable",downloadAudio:"device.audio.download",openLink:"biz.util.openLink",openMicroApp:"biz.microApp.openApp",timePicker:"biz.util.timepicker",openPageInMicroApp:"biz.util.open",previewImage:"biz.util.previewImage",openPageInModalForPC:"biz.util.openModal",enableWebViewBounce:"ui.webViewBounce.enable",generateImageFromCode:"biz.util.generateImageFromCode",navigateBackPage:"biz.navigation.navigateBackPage",openLocation:"biz.map.view",playAudio:"device.audio.play",chooseImage:"biz.util.chooseImage",onRecordEnd:"device.audio.onRecordEnd",stopAudio:"device.audio.stop",vibrate:"device.notification.vibrate",onPlayAudioEnd:"device.audio.onPlayEnd",getStorage:"util.domainStorage.getItem",searchMap:"biz.map.search",stopLocating:"device.geolocation.stop",resumeAudio:"device.audio.resume",getLocatingStatus:"device.geolocation.status",startLocating:"device.geolocation.start",startRecord:"device.audio.startRecord",setStorage:"util.domainStorage.setItem",openLocalFile:"biz.util.openLocalFile",share:"biz.util.share",writeNFC:"device.nfc.nfcWrite",choosePhonebook:"biz.contact.chooseMobileContacts",pauseAudio:"device.audio.pause",getDeviceUUID:"device.base.getUUID",getSystemSettings:"device.base.openSystemSetting",customChooseUsers:"biz.customContact.multipleChoose",removeStorage:"util.domainStorage.removeItem",setClipboard:"biz.clipboardData.setData",scan:"biz.util.scan",decrypt:"biz.util.decrypt",getWifiHotspotStatus:"device.base.getInterface",readNFC:"device.nfc.nfcRead",showCallMenu:"biz.telephone.showCallMenu",getLocation:"device.geolocation.get",locateInMap:"biz.map.locate",clearShake:"device.accelerometer.clearShake",chooseStaffForPC:"biz.contact.choose",uploadAttachmentToDingTalk:"biz.util.uploadAttachment",rotateScreenView:"device.screen.rotateView",isLocalFileExist:"biz.util.isLocalFileExist",openChatByChatId:"biz.chat.toConversation",createGroupChat:"biz.contact.createGroup",watchShake:"device.accelerometer.watchShake",scanCard:"biz.util.scanCard",createDing:"biz.ding.create",openChatByUserId:"biz.chat.openSingleChat",chooseUserFromList:"biz.customContact.choose",exclusiveLiveCheck:"biz.ATMBle.exclusiveLiveCheck",chooseExternalUsers:"biz.contact.externalComplexPicker",saveFileToDingTalk:"biz.cspace.saveFile",resetScreenView:"device.screen.resetView",getCloudCallList:"biz.conference.getCloudCallList",translateVoice:"device.audio.translateVoice",complexChoose:"biz.contact.complexPicker",editExternalUser:"biz.contact.externalEditForm",checkBizCall:"biz.telephone.checkBizCall",getWifiStatus:"device.base.getWifiStatus",chooseDepartments:"biz.contact.departmentsPicker",getSystemInfo:"device.base.getPhoneInfo",getNetworkType:"device.connection.getNetworkType",makeVideoConfCall:"biz.conference.videoConfCall",createDingForPC:"biz.ding.post",encrypt:"biz.util.encrypt",quickCallList:"biz.telephone.quickCallList",getUserExclusiveInfo:"biz.realm.getUserExclusiveInfo",getAuthCode:"runtime.permission.requestAuthCode",previewImagesInDingTalkBatch:"biz.cspace.previewDentryImages",chooseChat:"biz.chat.chooseConversationByCorpId",getCloudCallInfo:"biz.conference.getCloudCallInfo",previewFileInDingTalk:"biz.cspace.preview",openChatByConversationId:"biz.chat.toConversationByOpenConversationId",chooseDingTalkDir:"biz.cspace.chooseSpaceDir",getOperateAuthCode:"runtime.permission.requestOperateAuthCode",isInTabWindow:"biz.tabwindow.isTab",createLiveClassRoom:"biz.live.startClassRoom",callUsers:"biz.telephone.call",makeCloudCall:"biz.conference.createCloudCall",ExternalChannelPublish:"biz.channel.externalChannelPublish",nfcReadCardNumber:"device.nfc.nfcReadCardNumber",liveChooseConversationAndUser:"biz.live.chooseConversationAndUser",getAuthCodeV2:"runtime.permission.requestAuthCodeV2",queryUserProfile:"biz.conference.queryUserProfile",requestMoneySubmmitOrder:"biz.requestMoney.startSubmittingOrder",requestAuthCode:"runtime.permission.requestAuthCodeV2",liveShare:"biz.live.share",chooseFile:"biz.file.chooseFile",setColorScheme:"internal.theme.setColorScheme",chooseConversation:"biz.chat.chooseConversation",saveVideoToPhotosAlbum:"biz.util.saveVideoToPhotosAlbum",setLanguage:"internal.setting.setLanguage",changeAppIcon:"internal.setting.changeAppIcon",editPicture:"biz.util.editPicture","biz.resource.getInfo":"biz.resource.getInfo","biz.resource.reportPerf":"biz.resource.reportPerf",openDocument:"biz.util.openDocument",getImageInfo:"biz.util.getImageInfo",previewMedia:"biz.util.previewMedia",popGesture:"biz.navigation.popGesture",startAdvertising:"biz.realm.startAdvertising",stopAdvertising:"biz.realm.stopAdvertising",getAdvertisingStatus:"biz.realm.getAdvertisingStatus",chooseMedia:"biz.util.chooseMedia",cropImage:"biz.util.cropImage",saveImageToPhotosAlbum:"biz.util.saveImageToPhotosAlbum",setGestures:"biz.navigation.gestures",getAuthInfo:"runtime.permission.getAuthInfo",getBackgroundFetchData:"biz.resource.getBackgroundFetchData",getBackgroundFetchDataWithID:"biz.resource.getBackgroundFetchDataWithID",getThirdAppConfCustomData:"biz.conference.getThirdAppConfCustomData",getThirdAppUserCustomData:"biz.conference.getThirdAppUserCustomData",getDeviceId:"device.base.getDeviceId",onBLEPeripheralCharacteristicReadRequest:"biz.realm.onBLEPeripheralCharacteristicReadRequest",onBLEPeripheralCharacteristicWriteRequest:"biz.realm.onBLEPeripheralCharacteristicWriteRequest",createBLEPeripheralServer:"biz.realm.createBLEPeripheralServer",writeBLEPeripheralCharacteristicValue:"biz.realm.writeBLEPeripheralCharacteristicValue",onBLEPeripheralConnectionStateChanged:"biz.realm.onBLEPeripheralConnectionStateChanged",translate:"biz.i18n.translate",subscribe:"biz.notify.subscribe",getTranslateStatus:"biz.i18n.getTranslateStatus",notifyTranslateEvent:"biz.i18n.notifyTranslateEvent",minutesCreateFromVideo:"biz.minutes.createFromVideo",minutesUploadVideo:"biz.minutes.uploadVideo",minutesStart:"biz.minutes.startMinutes",minutesViewDetail:"biz.minutes.viewDetail",showNavigatorEditView:"biz.live.showNavigatorEditView",liveH5IsPresentOnNavigator:"biz.live.liveH5IsPresentOnNavigator",getCurrentCorpId:"biz.minutes.getCurrentCorpId",getAccountType:"biz.i18n.getAccountType",createPayOrder:"biz.enterprise.createPayOrder",chooseOrg:"biz.contact.chooseOrg"}}(xE);var DE={},TE={};function jE(e,t){for(var n=e.length,a=0,i=!0;a<n;a++)try{if(!(e[a]in t)){i=!1;break}}catch(e){i=!1;break}return i}Object.defineProperty(TE,"__esModule",{value:!0});var LE="undefined"!=typeof window,VE="undefined"!=typeof weex,BE="undefined"!=typeof callNative,UE=["__weex_config__","__weex_options__","__weex_require__"],zE=["localStorage","location","navigator","XMLHttpRequest"],RE=["config","requireModule","document"];TE.default=function(){return LE&&VE?jE(RE,weex)?"Web.Vue":"Web.Unknown":!LE&&VE?jE(RE,weex)?"Weex.Vue":"Weex.Unknown":LE&&BE&&!VE?jE(UE,window)?"Weex.Rax":"Weex.Unknown":LE&&jE(zE,window)?"Web.Unknown":"Unknown.Unknown"};var FE={},$E={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.FRAMEWORK=e.PLATFORM=e.RUNTIME=void 0,e.RUNTIME={WEB:"Web",WEEX:"Weex",UNKNOWN:"Unknown"},e.PLATFORM={MAC:"Mac",WINDOWS:"Windows",IOS:"iOS",ANDROID:"Android",IPAD:"iPad",BROWSER:"Browser",UNKNOWN:"Unknown"},e.FRAMEWORK={VUE:"Vue",RAX:"Rax",UNKNOWN:"Unknown"}}($E),Object.defineProperty(FE,"__esModule",{value:!0});var qE=$E;FE.default=function(e,t,n){var a="Web"===n.platform,i="iOS"===n.platform,o="android"===n.platform,r=o||i,s=a?window.navigator.userAgent.toLowerCase():"",l=function(){var e={};if(a){var t=window.name;try{var n=JSON.parse(t);e.containerId=n.containerId,e.version=n.hostVersion,e.language=n.language||"*"}catch(e){}}return e}(),c=r?"DingTalk"===n.appName||"com.alibaba.android.rimet"===n.appName:s.indexOf("dingtalk")>-1||!!l.containerId,u=function(){if(a){if(l.version)return l.version;var e=s.match(/aliapp\(\w+\/([a-zA-Z0-9.-]+)\)/);return null===e&&(e=s.match(/dingtalk\/([a-zA-Z0-9.-]+)/)),e&&e[1]||"Unknown"}return n.appVersion}(),d=!!l.containerId,h=/iphone|ipod|ios/.test(s),p=/ipad/.test(s),f=s.indexOf("android")>-1,v=s.indexOf("mac")>-1&&d,m=s.indexOf("win")>-1&&d,g=!v&&!m&&d;return{isDingTalk:c,isWebiOS:h,isWebAndroid:f,isWeexiOS:i,isWeexAndroid:o,isDingTalkPCMac:v,isDingTalkPCWeb:g,isDingTalkPCWindows:m,isDingTalkPC:d,runtime:e,framework:t,platform:c?h||i?qE.PLATFORM.IOS:f||o?qE.PLATFORM.ANDROID:p?qE.PLATFORM.IPAD:v?qE.PLATFORM.MAC:m?qE.PLATFORM.WINDOWS:g?qE.PLATFORM.BROWSER:qE.PLATFORM.UNKNOWN:qE.PLATFORM.UNKNOWN,version:u,isWeex:r}},Object.defineProperty(DE,"__esModule",{value:!0});var WE=FE,HE=$E,GE=TE.default().split("."),YE=GE[0],XE=GE[1],JE=function(){var e={};switch(XE){case HE.FRAMEWORK.VUE:var t=weex.config.env;e.platform=t.platform,HE.RUNTIME.WEEX===YE&&(e.appVersion=t.appVersion,e.appName=t.appName);break;case HE.FRAMEWORK.RAX:HE.RUNTIME.WEEX===YE&&(e.platform=navigator.platform,e.appName=navigator.appName,e.appVersion=navigator.appVersion);break;case HE.FRAMEWORK.UNKNOWN:HE.RUNTIME.WEB===YE&&(e.platform=HE.RUNTIME.WEB),HE.RUNTIME.UNKNOWN===YE&&(e.platform=HE.RUNTIME.UNKNOWN)}return e}(),KE=WE.default(YE,XE,JE);DE.default=KE;var QE={};!function(e){var t=wo&&wo.__assign||function(){return t=Object.assign||function(e){for(var t,n=1,a=arguments.length;n<a;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},t.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.getGlobalSelf=e.getNetWorkTypeResultDeal=e.scanParamsDeal=e.removeStorageParamsDeal=e.getStorageParamsDeal=e.setStorageParamsDeal=e.genBizStoreParamsDealFn=e.genBoolResultDealFn=e.forceChangeParamsDealFn=e.genDefaultParamsDealFn=e.addDefaultCorpIdParamsDeal=e.addWatchParamsDeal=void 0,e.addWatchParamsDeal=function(e){var t=Object.assign({},e);return t.watch=!0,t},e.addDefaultCorpIdParamsDeal=function(e){var t=Object.assign({},e);return t.corpId="corpId",t},e.genDefaultParamsDealFn=function(e){var t=Object.assign({},e);return function(e){return Object.assign({},t,e)}},e.forceChangeParamsDealFn=function(e){var t=Object.assign({},e);return function(e){return Object.assign(e,t)}},e.genBoolResultDealFn=function(e){return function(t){var n=Object.assign({},t);return e.forEach(function(e){void 0!==n[e]&&(n[e]=!!n[e])}),n}},e.genBizStoreParamsDealFn=function(e){var t=Object.assign({},e);return"string"!=typeof t.params?(t.params=JSON.stringify(t),t):t},e.setStorageParamsDeal=function(e){return{name:e.key,value:e.data}},e.getStorageParamsDeal=function(e){return{name:e.key}},e.removeStorageParamsDeal=function(e){return{name:e.key}},e.scanParamsDeal=function(e){return"qr"===e.type?t(t({},e),{type:"qrCode"}):"bar"===e.type?t(t({},e),{type:"barCode"}):t(t({},e),{type:"all"})},e.getNetWorkTypeResultDeal=function(e){return"none"!==e.result&&"unknown"!==e.result?{netWorkAvailable:!0,netWorkType:e.result}:{newWorkAvailable:!1}},e.getGlobalSelf=function(){return"undefined"!=typeof window?window:"undefined"!=typeof dd?dd:self}}(QE),function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.getENV=e.getUA=void 0;var t=OE(),n=OE();Object.defineProperty(e,"ENV_ENUM",{enumerable:!0,get:function(){return n.ENV_ENUM}}),Object.defineProperty(e,"APP_TYPE",{enumerable:!0,get:function(){return n.APP_TYPE}}),Object.defineProperty(e,"ENV_ENUM_SUB",{enumerable:!0,get:function(){return n.ENV_ENUM_SUB}});var a,i=DE,o=QE;!function(e){e.singlePage="singlePage",e.miniApp="miniApp",e.miniWidget="miniWidget"}(a||(a={})),e.getUA=function(){var e="";try{"undefined"!=typeof navigator&&(e=navigator&&(navigator.userAgent||navigator.swuserAgent)||"")}catch(t){e=""}return e},e.getENV=function(){var n,r,s=e.getUA(),l=/iPhone|iPad|iPod|iOS/i.test(s),c=/Android/i.test(s),u=/OpenHarmony/i.test(s)&&/ArkWeb/i.test(s),d=/DingTalk/i.test(s),h=/dd-web/i.test(s),p="object"==typeof nuva,f="object"==typeof dd&&"function"==typeof dd.dtBridge,v=/TaurusApp/.test(s),m=v&&!d,g=v&&d,b=m&&"undefined"!=typeof my&&null!==my&&void 0!==my.alert,y=v&&/dingtalk-win/.test(s),w=!y&&m&&l,_=!y&&m&&c,E=!y&&g&&l,P=!y&&g&&c,N=f&&l||p&&l,I=d||i.default.isDingTalk,A=l&&I||i.default.isWeexiOS||N,k=c&&I||i.default.isWeexAndroid,C=f,S=h,M=u&&I,x=t.APP_TYPE.WEB;if(b)x=t.APP_TYPE.MINI_APP;else if(S)x=t.APP_TYPE.WEBVIEW_IN_MINIAPP;else if(C)x=t.APP_TYPE.MINI_APP;else if(i.default.isWeexiOS||i.default.isWeexAndroid)try{x=weex.config.ddWeexEnv===a.miniWidget?t.APP_TYPE.WEEX_WIDGET:t.APP_TYPE.WEEX}catch(n){x=t.APP_TYPE.WEEX}var O,D,T="*",j=s.match(/AliApp\(\w+\/([a-zA-Z0-9.-]+)\)/);null===j&&(j=s.match(/DingTalk\/([a-zA-Z0-9.-]+)/)),j&&j[1]&&(D=j[1]);var L="";"undefined"!=typeof name&&(L=name);var V=function(){try{if("undefined"!=typeof window&&void 0!==window.top)return window.top.__dingtalk_jsapi_top_platfrom_config__}catch(e){return}}();try{V&&"undefined"!=typeof window&&void 0!==window.top&&window.top!==window&&(L=top.name)}catch(n){}if(L)try{var B=JSON.parse(L);B.hostVersion&&(D=B.hostVersion),T=B.language||navigator.language||"*",O=B.containerId}catch(n){}var U=!!O||"undefined"!=typeof window&&(null===(r=null===(n=null===window||void 0===window?void 0:window.dingtalk)||void 0===n?void 0:n.platform)||void 0===r?void 0:r.invokeAPI);U&&!D&&(j=s.match(/DingTalk\(([a-zA-Z0-9\.-]+)\)/))&&j[1]&&(D=j[1]);var z,R=t.ENV_ENUM_SUB.noSub;y?(z=t.ENV_ENUM.gdtPc,R=t.ENV_ENUM_SUB.win):z=w?t.ENV_ENUM.gdtIos:_?t.ENV_ENUM.gdtAndroid:E?t.ENV_ENUM.gdtStandardIos:P?t.ENV_ENUM.gdtStandardAndroid:A?t.ENV_ENUM.ios:k&&!M?t.ENV_ENUM.android:M?t.ENV_ENUM.harmony:U?t.ENV_ENUM.pc:V&&V.platform?V.platform:t.ENV_ENUM.notInDingTalk,z===t.ENV_ENUM.pc&&(R=s.indexOf("Macintosh; Intel Mac OS")>-1?t.ENV_ENUM_SUB.mac:t.ENV_ENUM_SUB.win);var F=o.getGlobalSelf();return F.__ddSDK&&F.__ddSDK.getEnv?F.__ddSDK.getEnv():{platform:z,platformSub:R,version:D,appType:x,language:T}}}(dE);var ZE;"function"!=typeof Promise&&(ZE||(ZE=1,function(){var e=setTimeout;function t(){}function n(e,t){return function(){e.apply(t,arguments)}}function a(e){if(!(this instanceof a))throw new TypeError("Promises must be constructed via new");if("function"!=typeof e)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],c(e,this)}function i(e,t){for(;3===e._state;)e=e._value;0!==e._state?(e._handled=!0,a._immediateFn(function(){var n=1===e._state?t.onFulfilled:t.onRejected;if(null!==n){var a;try{a=n(e._value)}catch(e){return void r(t.promise,e)}o(t.promise,a)}else(1===e._state?o:r)(t.promise,e._value)})):e._deferreds.push(t)}function o(e,t){try{if(t===e)throw new TypeError("A promise cannot be resolved with itself.");if(t&&("object"==typeof t||"function"==typeof t)){var i=t.then;if(t instanceof a)return e._state=3,e._value=t,void s(e);if("function"==typeof i)return void c(n(i,t),e)}e._state=1,e._value=t,s(e)}catch(t){r(e,t)}}function r(e,t){e._state=2,e._value=t,s(e)}function s(e){2===e._state&&0===e._deferreds.length&&a._immediateFn(function(){e._handled||a._unhandledRejectionFn(e._value)});for(var t=0,n=e._deferreds.length;t<n;t++)i(e,e._deferreds[t]);e._deferreds=null}function l(e,t,n){this.onFulfilled="function"==typeof e?e:null,this.onRejected="function"==typeof t?t:null,this.promise=n}function c(e,t){var n=!1;try{e(function(e){n||(n=!0,o(t,e))},function(e){n||(n=!0,r(t,e))})}catch(e){if(n)return;n=!0,r(t,e)}}a.prototype.catch=function(e){return this.then(null,e)},a.prototype.then=function(e,n){var a=new this.constructor(t);return i(this,new l(e,n,a)),a},a.prototype.finally=function(e){var t=this.constructor;return this.then(function(n){return t.resolve(e()).then(function(){return n})},function(n){return t.resolve(e()).then(function(){return t.reject(n)})})},a.all=function(e){return new a(function(t,n){if(!e||void 0===e.length)throw new TypeError("Promise.all accepts an array");var a=Array.prototype.slice.call(e);if(0===a.length)return t([]);var i=a.length;function o(e,r){try{if(r&&("object"==typeof r||"function"==typeof r)){var s=r.then;if("function"==typeof s)return void s.call(r,function(t){o(e,t)},n)}a[e]=r,0===--i&&t(a)}catch(e){n(e)}}for(var r=0;r<a.length;r++)o(r,a[r])})},a.resolve=function(e){return e&&"object"==typeof e&&e.constructor===a?e:new a(function(t){t(e)})},a.reject=function(e){return new a(function(t,n){n(e)})},a.race=function(e){return new a(function(t,n){for(var a=0,i=e.length;a<i;a++)e[a].then(t,n)})},a._immediateFn="function"==typeof setImmediate&&function(e){setImmediate(e)}||function(t){e(t,0)},a._unhandledRejectionFn=function(e){"undefined"!=typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",e)};var u=function(){if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==wo)return wo;throw new Error("unable to locate global object")}();u.Promise||(u.Promise=a)}())),"function"!=typeof Object.assign&&Object.defineProperty(Object,"assign",{value:function(e,t){if(null==e)throw new TypeError("Cannot convert undefined or null to object");for(var n=Object(e),a=1;a<arguments.length;a++){var i=arguments[a];if(null!=i)for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(n[o]=i[o])}return n},writable:!0,configurable:!0}),Object.keys||(Object.keys=function(e){if(e!==Object(e))throw new TypeError("Object.keys called on a non-object");var t,n=[];for(t in e)Object.prototype.hasOwnProperty.call(e,t)&&n.push(t);return n}),function(e){Object.defineProperty(e,"__esModule",{value:!0})}({}),function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ddSdk=void 0;var t=dE,n=dE;Object.defineProperty(e,"ENV_ENUM",{enumerable:!0,get:function(){return n.ENV_ENUM}}),Object.defineProperty(e,"ENV_ENUM_SUB",{enumerable:!0,get:function(){return n.ENV_ENUM_SUB}});var a=OE(),i=QE.getGlobalSelf();e.ddSdk=i.__useNativeSDK?i.__ddSDK:new a.Sdk(t.getENV())}(uE);var eP={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.version=e.language=e.compareVersion=e.other=e.harmony=e.pc=e.android=e.ios=void 0;var t=dE,n=t.getENV();e.ios=n.platform===t.ENV_ENUM.ios,e.android=n.platform===t.ENV_ENUM.android,e.pc=n.platform===t.ENV_ENUM.pc,e.harmony=n.platform===t.ENV_ENUM.harmony,e.other=n.platform===t.ENV_ENUM.notInDingTalk,e.compareVersion=function(e,t,n){function a(e){return parseInt(e,10)||0}if("string"!=typeof e||"string"!=typeof t)return!1;for(var i,o,r=e.split("-")[0].split(".").map(a),s=t.split("-")[0].split(".").map(a);i===o&&s.length>0;)i=r.shift(),o=s.shift();return n?(o||0)>=(i||0):(o||0)>(i||0)},e.language=n.language,e.version=n.version}(eP);var tP,nP=uE,aP=eP,iP=Object.assign({},aP,nP.ddSdk.getExportSdk()),oP={},rP={exports:{}};function sP(){return tP||(tP=1,function(e){e.exports=function(e){function t(a){if(n[a])return n[a].exports;var i=n[a]={i:a,l:!1,exports:{}};return e[a].call(i.exports,i,i.exports,t),i.l=!0,i.exports}var n={};return t.m=e,t.c=n,t.i=function(e){return e},t.d=function(e,n,a){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:a})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=5)}([function(e,t,n){var a=n(2),i=n(3),o=n(1),r=n(4),s=new o,l=!1,c="",u=null,d=[".dingtalk.com","7ding.ai"],h={},p=/{.*}/;try{if(window.dd_bridge_config)var f=window.dd_bridge_config.match(p);else f=window.name.match(p);f&&f[0]&&(h=JSON.parse(f[0]))}catch(e){h={}}if(h.hostOrigin){var v=h.hostOrigin.split(":")[1];d.forEach(function(e){v.slice(0-e.length)===e&&h.containerId&&(l=!0,c=h.hostOrigin,u=h.containerId)})}var m={},g=new Promise(function(e,t){m._resolve=e,m._reject=t}),b={},y=null;window.top!==window?(y=h.corsIframe?window:window.top,m._resolve()):"object"==typeof dingtalk&&"object"==typeof dingtalk.platform&&"function"==typeof dingtalk.platform.invokeAPI&&(y=window,m._resolve()),b[r.SYS_INIT]=function(e){y=e.frameWindow,m._resolve(),e.respond({})},window.addEventListener("message",function(e){var t=e.data,n=e.origin;if(n===c)if("response"===t.type&&t.msgId){var a=t.msgId;(o=s.getMsyById(a))&&o.methodName!==r.SYS_EVENT&&o.receiveResponse(t.body,!t.success)}else if("event"===t.type&&t.msgId)a=t.msgId,(o=s.getMsyById(a))&&o.receiveEvent(t.eventName,t.body);else if("request"===t.type&&t.msgId){var o=new i(e.source,n,t);b[o.methodName]&&b[o.methodName](o)}}),t.invokeAPI=function(e,t){var n=new a(u,e,t);return l&&g.then(function(){y&&y.postMessage(n.getPayload(),c),s.addPending(n)}),n};var w=null;t.addEventListener=function(e,n){w||(w=t.invokeAPI(r.SYS_EVENT,{})),w.addEventListener(e,n)},t.removeEventListener=function(e,t){w&&w.removeEventListener(e,t)}},function(e,t,n){var a=function(){this.pendingMsgs={}};a.prototype.addPending=function(e){this.pendingMsgs[e.id]=e;var t=function(){delete this.pendingMsgs[e.id],e.removeEventListener("_finish",t)}.bind(this);e.addEventListener("_finish",t)},a.prototype.getMsyById=function(e){return this.pendingMsgs[e]},e.exports=a},function(e,t,n){var a=n(8),i=n(7),o=0,r=Math.floor(1e3*Math.random()),s=function(){return 1e3*(1e3*r+Math.floor(1e3*Math.random()))+ ++o%1e3},l={code:408,reason:"timeout"},c={TIMEOUT:"_timeout",FINISH:"_finish"},u={timeout:-1},d=function(e,t,n,a){this.id=s(),this.methodName=t,this.containerId=e,this.option=i({},u,a),n=n||{},this._p={},this.result=new Promise(function(e,t){this._p._resolve=e,this._p._reject=t}.bind(this)),this.callbacks={},this.plainMsg=this._handleMsg(n),this._eventsHandle={},this._timeoutTimer=null,this._initTimeout(),this.isFinish=!1};d.prototype._initTimeout=function(){this._clearTimeout(),this.option.timeout>0&&(this._timeoutTimer=setTimeout(function(){this.receiveEvent(c.TIMEOUT),this.receiveResponse(l,!0)}.bind(this),this.option.timeout))},d.prototype._clearTimeout=function(){clearTimeout(this._timeoutTimer)},d.prototype._handleMsg=function(e){var t={};return Object.keys(e).forEach(function(n){var i=e[n];"function"==typeof i&&"on"===n.slice(0,2)?this.callbacks[n]=i:t[n]=a(i)}.bind(this)),t},d.prototype.getPayload=function(){return{msgId:this.id,containerId:this.containerId,methodName:this.methodName,body:this.plainMsg,type:"request"}},d.prototype.receiveEvent=function(e,t){if(this.isFinish&&e!==c.FINISH)return!1;e!==c.FINISH&&e!==c.TIMEOUT&&this._initTimeout(),Array.isArray(this._eventsHandle[e])&&this._eventsHandle[e].forEach(function(e){try{e(t)}catch(e){console.error(t)}});var n="on"+e.charAt(0).toUpperCase()+e.slice(1);return this.callbacks[n]&&this.callbacks[n](t),!0},d.prototype.addEventListener=function(e,t){if(!e||"function"!=typeof t)throw"eventName is null or handle is not a function, addEventListener fail";Array.isArray(this._eventsHandle[e])||(this._eventsHandle[e]=[]),this._eventsHandle[e].push(t)},d.prototype.removeEventListener=function(e,t){if(!e||!t)throw"eventName is null or handle is null, invoke removeEventListener fail";if(Array.isArray(this._eventsHandle[e])){var n=this._eventsHandle[e].indexOf(t);-1!==n&&this._eventsHandle[e].splice(n,1)}},d.prototype.receiveResponse=function(e,t){return!0!==this.isFinish&&(this._clearTimeout(),(t=!!t)?this._p._reject(e):this._p._resolve(e),setTimeout(function(){this.receiveEvent(c.FINISH)}.bind(this),0),this.isFinish=!0,!0)},e.exports=d},function(e,t,n){var a=function(e,t,n){if(this._msgId=n.msgId,this.frameWindow=e,this.methodName=n.methodName,this.clientOrigin=t,this.containerId=n.containerId,this.params=n.body,!this._msgId)throw"msgId not exist";if(!this.frameWindow)throw"frameWindow not exist";if(!this.methodName)throw"methodName not exits";if(!this.clientOrigin)throw"clientOrigin not exist";this.hasResponded=!1};a.prototype.respond=function(e,t){if(t=!!t,!0!==this.hasResponded){var n={type:"response",success:!t,body:e,msgId:this._msgId};this.frameWindow.postMessage(n,this.clientOrigin),this.hasResponded=!0}},a.prototype.emit=function(e,t){var n={type:"event",eventName:e,body:t,msgId:this._msgId};this.frameWindow.postMessage(n,this.clientOrigin)},e.exports=a},function(e,t,n){e.exports={SYS_EVENT:"SYS_openAPIContainerInitEvent",SYS_INIT:"SYS_openAPIContainerInit"}},function(e,t,n){var a=n(0);e.exports=a},function(e,t,n){(function(e,n){function a(e,t){return e.set(t[0],t[1]),e}function i(e,t){return e.add(t),e}function o(e,t){for(var n=-1,a=e.length;++n<a&&!1!==t(e[n],n,e););return e}function r(e,t){for(var n=-1,a=t.length,i=e.length;++n<a;)e[i+n]=t[n];return e}function s(e,t,n,a){for(var i=-1,o=e.length;++i<o;)n=t(n,e[i],i,e);return n}function l(e,t){for(var n=-1,a=Array(e);++n<e;)a[n]=t(n);return a}function c(e){return e&&e.Object===Object?e:null}function u(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}function d(e){var t=-1,n=Array(e.size);return e.forEach(function(e,a){n[++t]=[a,e]}),n}function h(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}function p(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var a=e[t];this.set(a[0],a[1])}}function f(){this.__data__=Dt?Dt(null):{}}function v(e){return this.has(e)&&delete this.__data__[e]}function m(e){var t=this.__data__;if(Dt){var n=t[e];return n===Ce?void 0:n}return mt.call(t,e)?t[e]:void 0}function g(e){var t=this.__data__;return Dt?void 0!==t[e]:mt.call(t,e)}function b(e,t){return this.__data__[e]=Dt&&void 0===t?Ce:t,this}function y(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var a=e[t];this.set(a[0],a[1])}}function w(){this.__data__=[]}function _(e){var t=this.__data__,n=B(t,e);return!(n<0||(n==t.length-1?t.pop():It.call(t,n,1),0))}function E(e){var t=this.__data__,n=B(t,e);return n<0?void 0:t[n][1]}function P(e){return B(this.__data__,e)>-1}function N(e,t){var n=this.__data__,a=B(n,e);return a<0?n.push([e,t]):n[a][1]=t,this}function I(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var a=e[t];this.set(a[0],a[1])}}function A(){this.__data__={hash:new p,map:new(St||y),string:new p}}function k(e){return ae(this,e).delete(e)}function C(e){return ae(this,e).get(e)}function S(e){return ae(this,e).has(e)}function M(e,t){return ae(this,e).set(e,t),this}function x(e){this.__data__=new y(e)}function O(){this.__data__=new y}function D(e){return this.__data__.delete(e)}function T(e){return this.__data__.get(e)}function j(e){return this.__data__.has(e)}function L(e,t){var n=this.__data__;return n instanceof y&&n.__data__.length==ke&&(n=this.__data__=new I(n.__data__)),n.set(e,t),this}function V(e,t,n){var a=e[t];mt.call(e,t)&&me(a,n)&&(void 0!==n||t in e)||(e[t]=n)}function B(e,t){for(var n=e.length;n--;)if(me(e[n][0],t))return n;return-1}function U(e,t){return e&&ee(t,Ae(t),e)}function z(e,t,n,a,i,r,s){var l;if(a&&(l=r?a(e,i,r,s):a(e)),void 0!==l)return l;if(!Ee(e))return e;var c=Ft(e);if(c){if(l=le(e),!t)return Z(e,l)}else{var d=se(e),h=d==De||d==Te;if($t(e))return W(e,t);if(d==Ve||d==Me||h&&!r){if(u(e))return r?e:{};if(l=ce(h?{}:e),!t)return te(e,U(l,e))}else{if(!at[d])return r?e:{};l=ue(e,d,z,t)}}s||(s=new x);var p=s.get(e);if(p)return p;if(s.set(e,l),!c)var f=n?ne(e):Ae(e);return o(f||e,function(i,o){f&&(i=e[o=i]),V(l,o,z(i,t,n,a,o,e,s))}),l}function R(e){return Ee(e)?Pt(e):{}}function F(e,t,n){var a=t(e);return Ft(e)?a:r(a,n(e))}function $(e,t){return mt.call(e,t)||"object"==typeof e&&t in e&&null===oe(e)}function q(e){return kt(Object(e))}function W(e,t){if(t)return e.slice();var n=new e.constructor(e.length);return e.copy(n),n}function H(e){var t=new e.constructor(e.byteLength);return new _t(t).set(new _t(e)),t}function G(e,t){var n=t?H(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}function Y(e,t,n){return s(t?n(d(e),!0):d(e),a,new e.constructor)}function X(e){var t=new e.constructor(e.source,et.exec(e));return t.lastIndex=e.lastIndex,t}function J(e,t,n){return s(t?n(h(e),!0):h(e),i,new e.constructor)}function K(e){return zt?Object(zt.call(e)):{}}function Q(e,t){var n=t?H(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function Z(e,t){var n=-1,a=e.length;for(t||(t=Array(a));++n<a;)t[n]=e[n];return t}function ee(e,t,n,a){n||(n={});for(var i=-1,o=t.length;++i<o;){var r=t[i];V(n,r,e[r])}return n}function te(e,t){return ee(e,re(e),t)}function ne(e){return F(e,Ae,re)}function ae(e,t){var n=e.__data__;return pe(t)?n["string"==typeof t?"string":"hash"]:n.map}function ie(e,t){var n=e[t];return Ne(n)?n:void 0}function oe(e){return At(Object(e))}function re(e){return Et(Object(e))}function se(e){return gt.call(e)}function le(e){var t=e.length,n=e.constructor(t);return t&&"string"==typeof e[0]&&mt.call(e,"index")&&(n.index=e.index,n.input=e.input),n}function ce(e){return"function"!=typeof e.constructor||fe(e)?{}:R(oe(e))}function ue(e,t,n,a){var i=e.constructor;switch(t){case Fe:return H(e);case xe:case Oe:return new i(+e);case $e:return G(e,a);case qe:case We:case He:case Ge:case Ye:case Xe:case Je:case Ke:case Qe:return Q(e,a);case je:return Y(e,a,n);case Le:case ze:return new i(e);case Be:return X(e);case Ue:return J(e,a,n);case Re:return K(e)}}function de(e){var t=e?e.length:void 0;return _e(t)&&(Ft(e)||Ie(e)||ge(e))?l(t,String):null}function he(e,t){return!!(t=null==t?Se:t)&&("number"==typeof e||nt.test(e))&&e>-1&&e%1==0&&e<t}function pe(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}function fe(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||ft)}function ve(e){if(null!=e){try{return vt.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function me(e,t){return e===t||e!=e&&t!=t}function ge(e){return ye(e)&&mt.call(e,"callee")&&(!Nt.call(e,"callee")||gt.call(e)==Me)}function be(e){return null!=e&&_e(Rt(e))&&!we(e)}function ye(e){return Pe(e)&&be(e)}function we(e){var t=Ee(e)?gt.call(e):"";return t==De||t==Te}function _e(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=Se}function Ee(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function Pe(e){return!!e&&"object"==typeof e}function Ne(e){return!!Ee(e)&&(we(e)||u(e)?bt:tt).test(ve(e))}function Ie(e){return"string"==typeof e||!Ft(e)&&Pe(e)&&gt.call(e)==ze}function Ae(e){var t=fe(e);if(!t&&!be(e))return q(e);var n=de(e),a=!!n,i=n||[],o=i.length;for(var r in e)!$(e,r)||a&&("length"==r||he(r,o))||t&&"constructor"==r||i.push(r);return i}var ke=200,Ce="__lodash_hash_undefined__",Se=9007199254740991,Me="[object Arguments]",xe="[object Boolean]",Oe="[object Date]",De="[object Function]",Te="[object GeneratorFunction]",je="[object Map]",Le="[object Number]",Ve="[object Object]",Be="[object RegExp]",Ue="[object Set]",ze="[object String]",Re="[object Symbol]",Fe="[object ArrayBuffer]",$e="[object DataView]",qe="[object Float32Array]",We="[object Float64Array]",He="[object Int8Array]",Ge="[object Int16Array]",Ye="[object Int32Array]",Xe="[object Uint8Array]",Je="[object Uint8ClampedArray]",Ke="[object Uint16Array]",Qe="[object Uint32Array]",Ze=/[\\^$.*+?()[\]{}|]/g,et=/\w*$/,tt=/^\[object .+?Constructor\]$/,nt=/^(?:0|[1-9]\d*)$/,at={};at[Me]=at["[object Array]"]=at[Fe]=at[$e]=at[xe]=at[Oe]=at[qe]=at[We]=at[He]=at[Ge]=at[Ye]=at[je]=at[Le]=at[Ve]=at[Be]=at[Ue]=at[ze]=at[Re]=at[Xe]=at[Je]=at[Ke]=at[Qe]=!0,at["[object Error]"]=at[De]=at["[object WeakMap]"]=!1;var it={function:!0,object:!0},ot=it[typeof t]&&t&&!t.nodeType?t:void 0,rt=it[typeof e]&&e&&!e.nodeType?e:void 0,st=rt&&rt.exports===ot?ot:void 0,lt=c(ot&&rt&&"object"==typeof n&&n),ct=c(it[typeof self]&&self),ut=c(it[typeof window]&&window),dt=c(it[typeof this]&&this),ht=lt||ut!==(dt&&dt.window)&&ut||ct||dt||Function("return this")(),pt=Array.prototype,ft=Object.prototype,vt=Function.prototype.toString,mt=ft.hasOwnProperty,gt=ft.toString,bt=RegExp("^"+vt.call(mt).replace(Ze,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),yt=st?ht.Buffer:void 0,wt=ht.Symbol,_t=ht.Uint8Array,Et=Object.getOwnPropertySymbols,Pt=Object.create,Nt=ft.propertyIsEnumerable,It=pt.splice,At=Object.getPrototypeOf,kt=Object.keys,Ct=ie(ht,"DataView"),St=ie(ht,"Map"),Mt=ie(ht,"Promise"),xt=ie(ht,"Set"),Ot=ie(ht,"WeakMap"),Dt=ie(Object,"create"),Tt=ve(Ct),jt=ve(St),Lt=ve(Mt),Vt=ve(xt),Bt=ve(Ot),Ut=wt?wt.prototype:void 0,zt=Ut?Ut.valueOf:void 0;p.prototype.clear=f,p.prototype.delete=v,p.prototype.get=m,p.prototype.has=g,p.prototype.set=b,y.prototype.clear=w,y.prototype.delete=_,y.prototype.get=E,y.prototype.has=P,y.prototype.set=N,I.prototype.clear=A,I.prototype.delete=k,I.prototype.get=C,I.prototype.has=S,I.prototype.set=M,x.prototype.clear=O,x.prototype.delete=D,x.prototype.get=T,x.prototype.has=j,x.prototype.set=L;var Rt=function(e){return null==e?void 0:e.length};Et||(re=function(){return[]}),(Ct&&se(new Ct(new ArrayBuffer(1)))!=$e||St&&se(new St)!=je||Mt&&"[object Promise]"!=se(Mt.resolve())||xt&&se(new xt)!=Ue||Ot&&"[object WeakMap]"!=se(new Ot))&&(se=function(e){var t=gt.call(e),n=t==Ve?e.constructor:void 0,a=n?ve(n):void 0;if(a)switch(a){case Tt:return $e;case jt:return je;case Lt:return"[object Promise]";case Vt:return Ue;case Bt:return"[object WeakMap]"}return t});var Ft=Array.isArray,$t=yt?function(e){return e instanceof yt}:function(){return!1};e.exports=z}).call(t,n(12)(e),n(11))},function(e,t,n){function a(e,t,n){var a=e[t];w.call(e,t)&&l(a,n)&&(void 0!==n||t in e)||(e[t]=n)}function i(e,t,n,i){n||(n={});for(var o=-1,r=t.length;++o<r;){var s=t[o];a(n,s,e[s])}return n}function o(e,t){return!!(t=null==t?v:t)&&("number"==typeof e||b.test(e))&&e>-1&&e%1==0&&e<t}function r(e,t,n){if(!h(n))return!1;var a=typeof t;return!!("number"==a?c(n)&&o(t,n.length):"string"==a&&t in n)&&l(n[t],e)}function s(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||y)}function l(e,t){return e===t||e!=e&&t!=t}function c(e){return null!=e&&d(P(e))&&!u(e)}function u(e){var t=h(e)?_.call(e):"";return t==m||t==g}function d(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=v}function h(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}var p=n(9),f=n(10),v=9007199254740991,m="[object Function]",g="[object GeneratorFunction]",b=/^(?:0|[1-9]\d*)$/,y=Object.prototype,w=y.hasOwnProperty,_=y.toString,E=!y.propertyIsEnumerable.call({valueOf:1},"valueOf"),P=function(e){return null==e?void 0:e.length},N=function(e){return f(function(t,n){var a=-1,i=n.length,o=i>1?n[i-1]:void 0,s=i>2?n[2]:void 0;for(o=e.length>3&&"function"==typeof o?(i--,o):void 0,s&&r(n[0],n[1],s)&&(o=i<3?void 0:o,i=1),t=Object(t);++a<i;){var l=n[a];l&&e(t,l)}return t})}(function(e,t){if(E||s(t)||c(t))i(t,p(t),e);else for(var n in t)w.call(t,n)&&a(e,n,t[n])});e.exports=N},function(e,t,n){function a(e){return i(e,!0,!0)}var i=n(6);e.exports=a},function(e,t){function n(e,t){for(var n=-1,a=Array(e);++n<e;)a[n]=t(n);return a}function a(e,t){var a=I(e)||s(e)?n(e.length,String):[],i=a.length,r=!!i;for(var l in e)!_.call(e,l)||r&&("length"==l||o(l,i))||a.push(l);return a}function i(e){if(!r(e))return N(e);var t=[];for(var n in Object(e))_.call(e,n)&&"constructor"!=n&&t.push(n);return t}function o(e,t){return!!(t=null==t?v:t)&&("number"==typeof e||y.test(e))&&e>-1&&e%1==0&&e<t}function r(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||w)}function s(e){return c(e)&&_.call(e,"callee")&&(!P.call(e,"callee")||E.call(e)==m)}function l(e){return null!=e&&d(e.length)&&!u(e)}function c(e){return p(e)&&l(e)}function u(e){var t=h(e)?E.call(e):"";return t==g||t==b}function d(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=v}function h(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function p(e){return!!e&&"object"==typeof e}function f(e){return l(e)?a(e):i(e)}var v=9007199254740991,m="[object Arguments]",g="[object Function]",b="[object GeneratorFunction]",y=/^(?:0|[1-9]\d*)$/,w=Object.prototype,_=w.hasOwnProperty,E=w.toString,P=w.propertyIsEnumerable,N=function(e,t){return function(n){return e(t(n))}}(Object.keys,Object),I=Array.isArray;e.exports=f},function(e,t){function n(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function a(e,t){return t=E(void 0===t?e.length-1:t,0),function(){for(var a=arguments,i=-1,o=E(a.length-t,0),r=Array(o);++i<o;)r[i]=a[t+i];i=-1;for(var s=Array(t+1);++i<t;)s[i]=a[i];return s[t]=r,n(e,this,s)}}function i(e,t){if("function"!=typeof e)throw new TypeError(d);return a(e,t=void 0===t?t:c(t))}function o(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function r(e){return!!e&&"object"==typeof e}function s(e){return"symbol"==typeof e||r(e)&&_.call(e)==v}function l(e){return e?(e=u(e))===h||e===-h?(e<0?-1:1)*p:e==e?e:0:0===e?e:0}function c(e){var t=l(e),n=t%1;return t==t?n?t-n:t:0}function u(e){if("number"==typeof e)return e;if(s(e))return f;if(o(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=o(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(m,"");var n=b.test(e);return n||y.test(e)?w(e.slice(2),n?2:8):g.test(e)?f:+e}var d="Expected a function",h=1/0,p=17976931348623157e292,f=NaN,v="[object Symbol]",m=/^\s+|\s+$/g,g=/^[-+]0x[0-9a-f]+$/i,b=/^0b[01]+$/i,y=/^0o[0-7]+$/i,w=parseInt,_=Object.prototype.toString,E=Math.max;e.exports=i},function(e,t){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}}])}(rP)),rP.exports}!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.h5PcBridgeInit=void 0,e.h5PcBridgeInit=function(){return Promise.resolve(sP())};e.default=function(e,t){return new Promise(function(n,a){return sP().invokeAPI(e,t).result.then(function(e){return"function"==typeof t.success?t.success.call(null,e):"function"==typeof t.onSuccess&&t.onSuccess.call(null,e),n(e)},function(e){return"function"==typeof t.fail?t.fail.call(null,e):"function"==typeof t.onFail&&t.onFail.call(null,e),a(e)})})}}(oP);var lP={};Object.defineProperty(lP,"__esModule",{value:!0});lP.default=function(e,t){return new Promise(function(n,a){dd.dtBridge({m:e,args:t,onSuccess:function(e){"function"==typeof t.success?t.success(e):"function"==typeof t.onSuccess&&t.onSuccess(e),n(e)},onFail:function(e){"function"==typeof t.fail?t.fail(e):"function"==typeof t.onFail&&t.onFail(e),a(e)}})})};var cP={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.off=e.on=void 0,e.on=function(e,t){sP().addEventListener(e,t)},e.off=function(e,t){sP().removeEventListener(e,t)}}(cP);var uP=uE,dP=dE,hP=oP,pP=lP,fP=OE(),vP=cP,mP=xE;uP.ddSdk.setPlatform({platform:dP.ENV_ENUM.pc,bridgeInit:function(){return dP.getENV().appType===fP.APP_TYPE.MINI_APP?Promise.resolve(pP.default):hP.h5PcBridgeInit().then(function(){return hP.default})},authMethod:"config",authParamsDeal:function(e){var t=Object.assign({},e);return e.jsApiList&&(t.jsApiList=e.jsApiList.map(function(e){return mP.default[e]?mP.default[e]:e})),t.url=window.location.href.split("#")[0],t},event:{on:function(e,t){if(dP.getENV().appType===fP.APP_TYPE.WEB)return vP.on(e,t)},off:function(e,t){if(dP.getENV().appType===fP.APP_TYPE.WEB)return vP.off(e,t)}}});var gP={};Object.defineProperty(gP,"__esModule",{value:!0});var bP,yP=function(){};gP.default=function(e,t){return(bP||(bP=new Promise(function(e,t){window.AlipayJSBridge?e():document.addEventListener("AlipayJSBridgeReady",function(){e()},!1)})),bP).then(function(){return new Promise(function(n,a){var i=t.onSuccess||yP,o=t.onFail||yP;if(delete t.onSuccess,delete t.onFail,AlipayJSBridge){var r=e.split("."),s=r.pop()||"",l=r.join(".");AlipayJSBridge.call.apply(null,["webDdExec",{serviceName:l,actionName:s,args:t},function(e){var t={},r=e.content;if(r)try{t=JSON.parse(r)}catch(e){console.error("parse dt api result error",r,e)}e.success?(i.apply(null,[t]),n(t)):(o.apply(null,[t]),a(t))}])}else{var c=new Error("Fatal error, cannot find bridge ,current env is WebView in MiniApp");o(c),a(c)}})})};var wP={};!function(e){var t;Object.defineProperty(e,"__esModule",{value:!0}),e.h5AndroidbridgeInit=void 0,e.h5AndroidbridgeInit=function(){return t||(t=new Promise(function(e,t){var n=function(){try{window.WebViewJavascriptBridgeAndroid=window.nuva&&window.nuva.require(),e({})}catch(e){t(e)}};window.nuva&&(void 0===window.nuva.isReady||window.nuva.isReady)?n():(document.addEventListener("runtimeready",function(){n()},!1),document.addEventListener("runtimefailed",function(e){var n=e&&e.detail||{errorCode:"2",errorMessage:"unknown nuvajs bootstrap error"};t(n)},!1))})),t};e.default=function(n,a){return t||(t=e.h5AndroidbridgeInit()),t.then(function(){return new Promise(function(e,t){var i=n.split("."),o=i.pop()||"",r=i.join(".");"function"==typeof window.WebViewJavascriptBridgeAndroid&&window.WebViewJavascriptBridgeAndroid(function(t){"function"==typeof a.success?a.success(t):"function"==typeof a.onSuccess&&a.onSuccess(t),e(t)},function(e){"function"==typeof a.fail?a.fail(e):"function"==typeof a.onFail&&a.onFail(e),t(e)},r,o,a)})})}}(wP);var _P={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.androidWeexBridge=e.iosWeexBridge=e.requireModule=void 0;e.requireModule=function(e){return"undefined"!=typeof __weex_require__?__weex_require__("@weex-module/"+e):"undefined"!=typeof weex?weex.requireModule(e):void 0},e.iosWeexBridge=function(){return Promise.resolve(function(t,n){return new Promise(function(a,i){var o=e.requireModule("nuvajs-exec"),r=t.split("."),s=r.pop(),l=r.join(".");o.exec({plugin:l,action:s,args:n},function(e){e&&"0"===e.errorCode?("function"==typeof n.success?n.success(e.result):"function"==typeof n.onSuccess&&n.onSuccess(e.result),a(e.result)):("function"==typeof n.fail?n.fail(e.result):"function"==typeof n.onFail&&n.onFail(e.result),i(e.result))})})})},e.androidWeexBridge=function(){return Promise.resolve(function(t,n){return new Promise(function(a,i){var o=e.requireModule("nuvajs-exec"),r=t.split("."),s=r.pop(),l=r.join(".");o.exec({plugin:l,action:s,args:n},function(e){var t={};try{if(e&&e.__message__)if("object"==typeof e.__message__)t=e.__message__;else try{t=JSON.parse(e.__message__)}catch(n){"string"==typeof e.__message__&&(t=e.__message__)}}catch(e){}e&&1===parseInt(e.__status__+"",10)?("function"==typeof n.onSuccess&&n.onSuccess(t),a(t)):("function"==typeof n.onFail&&n.onFail(t),i(t))})})})}}(_P);var EP={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.off=e.on=void 0;var t=["resume","pause","online","offline","backbutton","goBack","pullToRefresh","message","recycle","restore","drawer","tab","navHelpIcon","navRightButton","navMenu","navTitle","appLinkResponse","internalPageLinkResponse","networkEvent","hostTaskEvent","deviceOrientationChanged","autoCheckIn","deviceFound","hostCheckIn","screenshot","becomeActive","keepAlive","navTitleClick","sharePage","wxNotify","editNoteCommand","updateStyle","qrscanCommonNotify","__message__","dtChannelEvent","livePlayerEventPlay","livePlayerEventPause","livePlayerEventEnded","livePlayerEventError","navActions","attendEvents"],n="dtBizBridgeEvent",a="__eventTypeList__",i="undefined"==typeof WeakMap?void 0:new WeakMap;e.on=function(e,o){if(-1!==t.indexOf(e))document.addEventListener(e,o);else{var r=function(e,t){if(i){var n=i.get(t);return void 0===n?(n=function(e){var i=e.detail;if(i.namespace&&i.eventName){var o=i.namespace+"."+i.eventName;n&&-1!==n[a].indexOf(o)&&t(i.data)}},n[a]=[e],i.set(t,n)):-1===n[a].indexOf(e)&&n[a].push(e),n}}(e,o);r?document.addEventListener(n,r):console.log("bind event : "+e+" need WeakMap support , current environment doesnot")}},e.off=function(e,o){if(-1!==t.indexOf(e))document.removeEventListener(e,o);else{var r=function(e,t){if(i){var n=i.get(t);return n&&-1!==n[a].indexOf(e)&&n[a].splice(n[a].indexOf(e),1),n&&n[a].length<=1?n:void 0}}(e,o);r&&document.removeEventListener(n,r)}}}(EP);var PP={};!function(e){var t=wo;Object.defineProperty(e,"__esModule",{value:!0}),e.off=e.on=void 0;var n=_P;e.on=function(e,a){n.requireModule("globalEvent").addEventListener(e,function(e){var n={preventDefault:function(){throw new Error("does not support preventDefault")},detail:e};a.call(t,n)})},e.off=function(e,t){n.requireModule("globalEvent").removeEventListener(e,t)}}(PP),function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.platformConfig=void 0;var t=uE,n=dE,a=OE(),i=lP,o=gP,r=wP,s=_P,l=EP,c=PP,u=xE;e.platformConfig={platform:n.ENV_ENUM.android,bridgeInit:function(){var e=n.getENV();return e.appType===a.APP_TYPE.MINI_APP?Promise.resolve(i.default):e.appType===a.APP_TYPE.WEBVIEW_IN_MINIAPP?Promise.resolve(o.default):e.appType===a.APP_TYPE.WEEX?s.androidWeexBridge():r.h5AndroidbridgeInit().then(function(){return r.default})},authMethod:"runtime.permission.requestJsApis",authParamsDeal:function(e){var t=Object.assign({},e);return e.jsApiList&&(t.jsApiList=e.jsApiList.map(function(e){return u.default[e]?u.default[e]:e})),t},event:{on:function(e,t){var i=n.getENV();switch(i.appType){case a.APP_TYPE.WEB:case a.APP_TYPE.WEBVIEW_IN_MINIAPP:l.on(e,t);break;case a.APP_TYPE.WEEX:c.on(e,t);break;default:throw new Error("Not support global event in the platfrom: "+i.appType)}},off:function(e,t){var i=n.getENV();switch(i.appType){case a.APP_TYPE.WEB:case a.APP_TYPE.WEBVIEW_IN_MINIAPP:l.off(e,t);break;case a.APP_TYPE.WEEX:c.off(e,t);break;default:throw new Error("Not support global event in the platfrom: "+i.appType)}}}},t.ddSdk.setPlatform(e.platformConfig)}({});var NP={};!function(e){var t;Object.defineProperty(e,"__esModule",{value:!0}),e.h5IosBridgeInit=void 0,e.h5IosBridgeInit=function(){return t||(t=new Promise(function(e,t){if("undefined"!=typeof WebViewJavascriptBridge){try{WebViewJavascriptBridge.init(function(e,t){})}catch(e){return t()}return e({})}document.addEventListener("WebViewJavascriptBridgeReady",function(){if("undefined"==typeof WebViewJavascriptBridge)return t();try{WebViewJavascriptBridge.init(function(e,t){})}catch(e){return t()}return e({})},!1)})),t};e.default=function(n,a){return t||(t=e.h5IosBridgeInit()),t.then(function(){var e=Object.assign({},a);return new Promise(function(t,a){if(!0===e.watch){var i=e.onSuccess;delete e.onSuccess,"function"==typeof e.success&&(i=e.success,delete e.success),"undefined"!=typeof WebViewJavascriptBridge&&WebViewJavascriptBridge.registerHandler(n,function(e,t){"function"==typeof i&&i.call(null,e),t&&t({errorCode:"0",errorMessage:"success"})})}void 0!==window.WebViewJavascriptBridge&&window.WebViewJavascriptBridge.callHandler(n,Object.assign({},e),function(n){var i=n||{};"0"===i.errorCode?("function"==typeof e.success?e.success.call(null,i.result):"function"==typeof e.onSuccess&&e.onSuccess.call(null,i.result),t(i.result)):("-1"===i.errorCode?"function"==typeof e.cancel?e.cancel.call(null,i,i.errorCode):"function"==typeof e.onCancel&&e.onCancel.call(null,i,i.errorCode):"function"==typeof e.fail?e.fail.call(null,i,i.errorCode):"function"==typeof e.onFail&&e.onFail.call(null,i,i.errorCode),a(i))})})})}}(NP),function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.platformConfig=void 0;var t=uE,n=dE,a=OE(),i=lP,o=gP,r=NP,s=_P,l=EP,c=xE,u=PP;e.platformConfig={platform:n.ENV_ENUM.ios,bridgeInit:function(){var e=n.getENV();return e.appType===a.APP_TYPE.MINI_APP?Promise.resolve(i.default):e.appType===a.APP_TYPE.WEBVIEW_IN_MINIAPP?Promise.resolve(o.default):e.appType===a.APP_TYPE.WEEX?s.iosWeexBridge():r.h5IosBridgeInit().then(function(){return r.default})},authMethod:"runtime.permission.requestJsApis",authParamsDeal:function(e){var t=Object.assign({},e);return e.jsApiList&&(t.jsApiList=e.jsApiList.map(function(e){return c.default[e]?c.default[e]:e})),t},event:{on:function(e,t){var i=n.getENV();switch(i.appType){case a.APP_TYPE.WEB:case a.APP_TYPE.WEBVIEW_IN_MINIAPP:l.on(e,t);break;case a.APP_TYPE.WEEX:u.on(e,t);break;default:throw new Error("Not support global event in the platfrom: "+i.appType)}},off:function(e,t){var i=n.getENV();switch(i.appType){case a.APP_TYPE.WEB:case a.APP_TYPE.WEBVIEW_IN_MINIAPP:l.off(e,t);break;case a.APP_TYPE.WEEX:u.off(e,t);break;default:throw new Error("Not support global event in the platfrom: "+i.appType)}}}},t.ddSdk.setPlatform(e.platformConfig)}({});var IP={};!function(e){var t;Object.defineProperty(e,"__esModule",{value:!0}),e.h5HarmonyBridgeInit=void 0,e.h5HarmonyBridgeInit=function(){return t||(t=new Promise(function(e,t){if("undefined"!=typeof DingTalkJSBridge){try{DingTalkJSBridge.init(function(e,t){})}catch(e){return t()}return e({})}document.addEventListener("DingTalkJSBridgeReady",function(){if("undefined"==typeof DingTalkJSBridge)return t();try{DingTalkJSBridge.init(function(e,t){})}catch(e){return t()}return e({})},!1)})),t};e.default=function(n,a){return t||(t=e.h5HarmonyBridgeInit()),t.then(function(){return new Promise(function(e,t){"function"==typeof window.DingTalkJSBridge.call&&window.DingTalkJSBridge.call(n,a,function(n){n.success?(function(e){"function"==typeof a.success?a.success(e):"function"==typeof a.onSuccess&&a.onSuccess(e)}(n.body),e(n.body)):(function(e){"function"==typeof a.fail?a.fail(e):"function"==typeof a.onFail&&a.onFail(e)}(n.body),t(n.body))})})})}}(IP),function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.platformConfig=void 0;var t=uE,n=dE,a=OE(),i=lP,o=gP,r=IP,s=EP,l=PP,c=xE;e.platformConfig={platform:n.ENV_ENUM.harmony,bridgeInit:function(){var e=n.getENV();return e.appType===a.APP_TYPE.MINI_APP?Promise.resolve(i.default):e.appType===a.APP_TYPE.WEBVIEW_IN_MINIAPP?Promise.resolve(o.default):r.h5HarmonyBridgeInit().then(function(){return r.default})},authMethod:"runtime.permission.requestJsApis",authParamsDeal:function(e){var t=Object.assign({},e);return e.jsApiList&&(t.jsApiList=e.jsApiList.map(function(e){return c.default[e]?c.default[e]:e})),t},event:{on:function(e,t){var i=n.getENV();switch(i.appType){case a.APP_TYPE.WEB:case a.APP_TYPE.WEBVIEW_IN_MINIAPP:s.on(e,t);break;case a.APP_TYPE.WEEX:l.on(e,t);break;default:throw new Error("Not support global event in the platfrom: "+i.appType)}},off:function(e,t){var i=n.getENV();switch(i.appType){case a.APP_TYPE.WEB:case a.APP_TYPE.WEBVIEW_IN_MINIAPP:s.off(e,t);break;case a.APP_TYPE.WEEX:l.off(e,t);break;default:throw new Error("Not support global event in the platfrom: "+i.appType)}}}},t.ddSdk.setPlatform(e.platformConfig)}({}),function(e){Object.defineProperty(e,"__esModule",{value:!0})}({});var AP=iP;cE.exports=AP;var kP=cE.exports,CP={},SP={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.beaconPicker$=void 0;var a=uE,i="biz.ATMBle.beaconPicker";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"5.0.7"},n[a.ENV_ENUM.android]={vs:"5.0.7"},n)),e.beaconPicker$=t,e.default=t}(SP);var MP={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.detectFace$=void 0;var a=uE,i="biz.ATMBle.detectFace";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"5.1.18"},n[a.ENV_ENUM.android]={vs:"5.1.18"},n)),e.detectFace$=t,e.default=t}(MP);var xP={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.detectFaceFullScreen$=void 0;var a=uE,i="biz.ATMBle.detectFaceFullScreen";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"5.1.18"},n[a.ENV_ENUM.android]={vs:"5.1.18"},n)),e.detectFaceFullScreen$=t,e.default=t}(xP);var OP={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.exclusiveLiveCheck$=void 0;var a=uE,i="biz.ATMBle.exclusiveLiveCheck";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"6.5.40"},n[a.ENV_ENUM.android]={vs:"6.5.40"},n)),e.exclusiveLiveCheck$=t,e.default=t}(OP);var DP={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.faceManager$=void 0;var a=uE,i="biz.ATMBle.faceManager";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"5.0.7"},n[a.ENV_ENUM.android]={vs:"5.0.7"},n)),e.faceManager$=t,e.default=t}(DP);var TP={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.punchModePicker$=void 0;var a=uE,i="biz.ATMBle.punchModePicker";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"5.0.7"},n[a.ENV_ENUM.android]={vs:"5.0.7"},n)),e.punchModePicker$=t,e.default=t}(TP);var jP={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.bindAlipay$=void 0;var a=uE,i="biz.alipay.bindAlipay";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"6.3.15"},n[a.ENV_ENUM.android]={vs:"6.3.15"},n)),e.bindAlipay$=t,e.default=t}(jP);var LP={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.openAuth$=void 0;var a=uE,i="biz.alipay.openAuth";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"5.1.8"},n[a.ENV_ENUM.android]={vs:"5.1.8"},n)),e.openAuth$=t,e.default=t}(LP);var VP={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.pay$=void 0;var a=uE,i="biz.alipay.pay";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"2.8.0"},n[a.ENV_ENUM.android]={vs:"2.8.0"},n)),e.pay$=t,e.default=t}(VP);var BP={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.getLBSWua$=void 0;var a=uE,i="biz.attend.getLBSWua";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"7.0.35"},n[a.ENV_ENUM.android]={vs:"7.0.35"},n)),e.getLBSWua$=t,e.default=t}(BP);var UP={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.openAccountPwdLoginPage$=void 0;var a=uE,i="biz.auth.openAccountPwdLoginPage";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"6.3.0"},n[a.ENV_ENUM.android]={vs:"6.3.0"},n)),e.openAccountPwdLoginPage$=t,e.default=t}(UP);var zP={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.requestAuthInfo$=void 0;var a=uE,i="biz.auth.requestAuthInfo";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"5.1.19"},n[a.ENV_ENUM.android]={vs:"5.1.19"},n)),e.requestAuthInfo$=t,e.default=t}(zP);var RP={};!function(e){function t(e){return a.ddSdk.invokeAPI(o,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.chooseDateTime$=void 0;var a=uE,i=QE,o="biz.calendar.chooseDateTime";a.ddSdk.setAPI(o,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0",paramsDeal:i.addDefaultCorpIdParamsDeal},n[a.ENV_ENUM.ios]={vs:"3.5.0",paramsDeal:i.addDefaultCorpIdParamsDeal},n[a.ENV_ENUM.android]={vs:"3.5.0",paramsDeal:i.addDefaultCorpIdParamsDeal},n)),e.chooseDateTime$=t,e.default=t}(RP);var FP={};!function(e){function t(e){return a.ddSdk.invokeAPI(o,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.chooseHalfDay$=void 0;var a=uE,i=QE,o="biz.calendar.chooseHalfDay";a.ddSdk.setAPI(o,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"3.5.0",paramsDeal:i.addDefaultCorpIdParamsDeal},n[a.ENV_ENUM.android]={vs:"3.5.0",paramsDeal:i.addDefaultCorpIdParamsDeal},n)),e.chooseHalfDay$=t,e.default=t}(FP);var $P={};!function(e){function t(e){return a.ddSdk.invokeAPI(o,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.chooseInterval$=void 0;var a=uE,i=QE,o="biz.calendar.chooseInterval";a.ddSdk.setAPI(o,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"3.5.0",paramsDeal:i.addDefaultCorpIdParamsDeal},n[a.ENV_ENUM.android]={vs:"3.5.0",paramsDeal:i.addDefaultCorpIdParamsDeal},n)),e.chooseInterval$=t,e.default=t}($P);var qP={};!function(e){function t(e){return a.ddSdk.invokeAPI(o,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.chooseOneDay$=void 0;var a=uE,i=QE,o="biz.calendar.chooseOneDay";a.ddSdk.setAPI(o,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"3.5.0",paramsDeal:i.addDefaultCorpIdParamsDeal},n[a.ENV_ENUM.android]={vs:"3.5.0",paramsDeal:i.addDefaultCorpIdParamsDeal},n)),e.chooseOneDay$=t,e.default=t}(qP);var WP={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.chooseConversationByCorpId$=void 0;var a=uE,i="biz.chat.chooseConversationByCorpId",o=QE.genDefaultParamsDealFn({max:50});a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0",paramsDeal:o},n[a.ENV_ENUM.ios]={vs:"2.6.0",paramsDeal:o},n[a.ENV_ENUM.android]={vs:"2.6.0",paramsDeal:o},n[a.ENV_ENUM.pc]={vs:"4.7.11",paramsDeal:o},n)),e.chooseConversationByCorpId$=t,e.default=t}(WP);var HP={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.collectSticker$=void 0;var a=uE,i="biz.chat.collectSticker";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"4.6.25"},n[a.ENV_ENUM.android]={vs:"4.6.25"},n)),e.collectSticker$=t,e.default=t}(HP);var GP={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.createSceneGroup$=void 0;var a=uE,i="biz.chat.createSceneGroup";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"4.7.17"},n[a.ENV_ENUM.android]={vs:"4.7.17"},n[a.ENV_ENUM.pc]={vs:"4.7.17"},n)),e.createSceneGroup$=t,e.default=t}(GP);var YP={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.getRealmCid$=void 0;var a=uE,i="biz.chat.getRealmCid";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"4.7.12"},n[a.ENV_ENUM.android]={vs:"4.7.12"},n[a.ENV_ENUM.pc]={vs:"4.7.12"},n)),e.getRealmCid$=t,e.default=t}(YP);var XP={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.locationChatMessage$=void 0;var a=uE,i="biz.chat.locationChatMessage";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"2.7.6"},n[a.ENV_ENUM.android]={vs:"2.7.6"},n)),e.locationChatMessage$=t,e.default=t}(XP);var JP={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.openSingleChat$=void 0;var a=uE,i="biz.chat.openSingleChat";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"3.4.10"},n[a.ENV_ENUM.android]={vs:"3.4.10"},n)),e.openSingleChat$=t,e.default=t}(JP);var KP={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.pickConversation$=void 0;var a=uE,i="biz.chat.pickConversation";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"2.4.2"},n[a.ENV_ENUM.android]={vs:"2.4.2"},n[a.ENV_ENUM.pc]={vs:"4.7.9"},n)),e.pickConversation$=t,e.default=t}(KP);var QP={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.sendEmotion$=void 0;var a=uE,i="biz.chat.sendEmotion";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"4.6.12"},n[a.ENV_ENUM.android]={vs:"4.6.12"},n)),e.sendEmotion$=t,e.default=t}(QP);var ZP={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.toConversation$=void 0;var a=uE,i="biz.chat.toConversation";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"2.6.0"},n[a.ENV_ENUM.android]={vs:"2.6.0"},n)),e.toConversation$=t,e.default=t}(ZP);var eN={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.toConversationByOpenConversationId$=void 0;var a=uE,i="biz.chat.toConversationByOpenConversationId";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"5.1.30"},n[a.ENV_ENUM.android]={vs:"5.1.30"},n[a.ENV_ENUM.pc]={vs:"5.1.33"},n)),e.toConversationByOpenConversationId$=t,e.default=t}(eN);var tN={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.setData$=void 0;var a=uE,i="biz.clipboardData.setData";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"2.7.0"},n[a.ENV_ENUM.android]={vs:"2.7.0"},n[a.ENV_ENUM.pc]={vs:"4.6.1"},n)),e.setData$=t,e.default=t}(tN);var nN={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.createCloudCall$=void 0;var a=uE,i="biz.conference.createCloudCall";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"6.0.0"},n[a.ENV_ENUM.android]={vs:"6.0.0"},n[a.ENV_ENUM.pc]={vs:"6.0.9"},n)),e.createCloudCall$=t,e.default=t}(nN);var aN={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.getCloudCallInfo$=void 0;var a=uE,i="biz.conference.getCloudCallInfo";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"6.0.0"},n[a.ENV_ENUM.android]={vs:"6.0.0"},n[a.ENV_ENUM.pc]={vs:"6.0.9"},n)),e.getCloudCallInfo$=t,e.default=t}(aN);var iN={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.getCloudCallList$=void 0;var a=uE,i="biz.conference.getCloudCallList";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"6.0.0"},n[a.ENV_ENUM.android]={vs:"6.0.0"},n[a.ENV_ENUM.pc]={vs:"6.0.9"},n)),e.getCloudCallList$=t,e.default=t}(iN);var oN={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.videoConfCall$=void 0;var a=uE,i="biz.conference.videoConfCall";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"5.0.8"},n[a.ENV_ENUM.android]={vs:"5.0.8"},n[a.ENV_ENUM.pc]={vs:"5.1.28"},n)),e.videoConfCall$=t,e.default=t}(oN);var rN={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.choose$=void 0;var a=uE,i="biz.contact.choose",o=QE.genDefaultParamsDealFn({multiple:!0,startWithDepartmentId:0,users:[]});a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.pc]={vs:"2.5.0"},n[a.ENV_ENUM.ios]={vs:"2.4.0",paramsDeal:o},n[a.ENV_ENUM.android]={vs:"2.4.0",paramsDeal:o},n)),e.choose$=t,e.default=t}(rN);var sN={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.chooseMobileContacts$=void 0;var a=uE,i="biz.contact.chooseMobileContacts";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"3.1"},n[a.ENV_ENUM.android]={vs:"3.1"},n)),e.chooseMobileContacts$=t,e.default=t}(sN);var lN={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.complexPicker$=void 0;var a=uE,i="biz.contact.complexPicker";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"2.9.0"},n[a.ENV_ENUM.android]={vs:"2.9.0"},n[a.ENV_ENUM.pc]={vs:"4.3.5"},n)),e.complexPicker$=t,e.default=t}(lN);var cN={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.createGroup$=void 0;var a=uE,i="biz.contact.createGroup";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"2.4.0"},n[a.ENV_ENUM.android]={vs:"2.4.0"},n[a.ENV_ENUM.pc]={vs:"4.6.1"},n)),e.createGroup$=t,e.default=t}(cN);var uN={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.departmentsPicker$=void 0;var a=uE,i="biz.contact.departmentsPicker";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.pc]={vs:"4.2.5"},n[a.ENV_ENUM.ios]={vs:"3.0"},n[a.ENV_ENUM.android]={vs:"3.0"},n)),e.departmentsPicker$=t,e.default=t}(uN);var dN={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.externalComplexPicker$=void 0;var a=uE,i="biz.contact.externalComplexPicker";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.pc]={vs:"3.0.0"},n[a.ENV_ENUM.ios]={vs:"3.0"},n[a.ENV_ENUM.android]={vs:"3.0"},n)),e.externalComplexPicker$=t,e.default=t}(dN);var hN={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.externalEditForm$=void 0;var a=uE,i="biz.contact.externalEditForm";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"3.0"},n[a.ENV_ENUM.android]={vs:"3.0"},n)),e.externalEditForm$=t,e.default=t}(hN);var pN={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.rolesPicker$=void 0;var a=uE,i="biz.contact.rolesPicker";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"6.3.16"},n[a.ENV_ENUM.android]={vs:"6.3.16"},n)),e.rolesPicker$=t,e.default=t}(pN);var fN={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.setRule$=void 0;var a=uE,i="biz.contact.setRule";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"2.15"},n[a.ENV_ENUM.android]={vs:"2.15"},n)),e.setRule$=t,e.default=t}(fN);var vN={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.chooseSpaceDir$=void 0;var a=uE,i="biz.cspace.chooseSpaceDir";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"3.5.6"},n[a.ENV_ENUM.android]={vs:"3.5.6"},n[a.ENV_ENUM.pc]={vs:"5.1.27"},n)),e.chooseSpaceDir$=t,e.default=t}(vN);var mN={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.delete$=void 0;var a=uE,i="biz.cspace.delete";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"4.5.21"},n[a.ENV_ENUM.android]={vs:"4.5.21"},n[a.ENV_ENUM.pc]={vs:"4.5.21"},n)),e.delete$=t,e.default=t}(mN);var gN={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.preview$=void 0;var a=uE,i="biz.cspace.preview";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.pc]={vs:"3.0.0"},n[a.ENV_ENUM.ios]={vs:"2.7.0"},n[a.ENV_ENUM.android]={vs:"2.7.0"},n)),e.preview$=t,e.default=t}(gN);var bN={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.previewDentryImages$=void 0;var a=uE,i="biz.cspace.previewDentryImages";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"6.3.30"},n[a.ENV_ENUM.android]={vs:"6.3.30"},n)),e.previewDentryImages$=t,e.default=t}(bN);var yN={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.saveFile$=void 0;var a=uE,i="biz.cspace.saveFile";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"2.7.6"},n[a.ENV_ENUM.android]={vs:"2.7.6"},n)),e.saveFile$=t,e.default=t}(yN);var wN={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.choose$=void 0;var a=uE,i="biz.customContact.choose",o=QE.genDefaultParamsDealFn({isShowCompanyName:!1,max:50});a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.pc]={vs:"3.0.0"},n[a.ENV_ENUM.ios]={vs:"2.5.2",paramsDeal:o},n[a.ENV_ENUM.android]={vs:"2.5.2",paramsDeal:o},n)),e.choose$=t,e.default=t}(wN);var _N={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.multipleChoose$=void 0;var a=uE,i="biz.customContact.multipleChoose",o=QE.genDefaultParamsDealFn({isShowCompanyName:!1,max:50});a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0",paramsDeal:o},n[a.ENV_ENUM.pc]={vs:"3.0.0"},n[a.ENV_ENUM.ios]={vs:"2.4.0",paramsDeal:o},n[a.ENV_ENUM.android]={vs:"2.4.0",paramsDeal:o},n)),e.multipleChoose$=t,e.default=t}(_N);var EN={};!function(e){function t(e){return n.ddSdk.invokeAPI(a,e)}Object.defineProperty(e,"__esModule",{value:!0}),e.rsa$=void 0;var n=uE,a="biz.data.rsa";n.ddSdk.setAPI(a,{}),e.rsa$=t,e.default=t}(EN);var PN={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.create$=void 0;var a=uE,i="biz.ding.create";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"3.5.1",resultDeal:function(e){return""===e?e={dingCreateResult:!1}:"object"==typeof e&&(e.dingCreateResult=!!e.dingCreateResult),e}},n[a.ENV_ENUM.android]={vs:"3.5.1"},n[a.ENV_ENUM.pc]={vs:"4.5.9"},n)),e.create$=t,e.default=t}(PN);var NN={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.post$=void 0;var a=uE,i="biz.ding.post";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.pc]={vs:"3.0.0"},n[a.ENV_ENUM.ios]={vs:"2.4.0"},n[a.ENV_ENUM.android]={vs:"2.4.0"},n)),e.post$=t,e.default=t}(NN);var IN={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.finishMiniCourseByRecordId$=void 0;var a=uE,i="biz.edu.finishMiniCourseByRecordId";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"6.0.15"},n[a.ENV_ENUM.android]={vs:"6.0.15"},n)),e.finishMiniCourseByRecordId$=t,e.default=t}(IN);var AN={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.getMiniCourseDraftList$=void 0;var a=uE,i="biz.edu.getMiniCourseDraftList";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"6.0.15"},n[a.ENV_ENUM.android]={vs:"6.0.15"},n)),e.getMiniCourseDraftList$=t,e.default=t}(AN);var kN={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.joinClassroom$=void 0;var a=uE,i="biz.edu.joinClassroom";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"6.0.15"},n[a.ENV_ENUM.android]={vs:"6.0.15"},n[a.ENV_ENUM.pc]={vs:"6.0.15"},n)),e.joinClassroom$=t,e.default=t}(kN);var CN={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.makeMiniCourse$=void 0;var a=uE,i="biz.edu.makeMiniCourse";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"6.0.15"},n[a.ENV_ENUM.android]={vs:"6.0.15"},n)),e.makeMiniCourse$=t,e.default=t}(CN);var SN={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.newMsgNotificationStatus$=void 0;var a=uE,i="biz.edu.newMsgNotificationStatus";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"6.3.20"},n[a.ENV_ENUM.android]={vs:"6.3.20"},n)),e.newMsgNotificationStatus$=t,e.default=t}(SN);var MN={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.startAuth$=void 0;var a=uE,i="biz.edu.startAuth";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"6.3.20"},n[a.ENV_ENUM.android]={vs:"6.3.20"},n)),e.startAuth$=t,e.default=t}(MN);var xN={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.tokenFaceImg$=void 0;var a=uE,i="biz.edu.tokenFaceImg";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"6.3.20"},n[a.ENV_ENUM.android]={vs:"6.3.20"},n)),e.tokenFaceImg$=t,e.default=t}(xN);var ON={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.notifyWeex$=void 0;var a=uE,i="biz.event.notifyWeex";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.ios]={vs:"4.5.0"},n)),e.notifyWeex$=t,e.default=t}(ON);var DN={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.downloadFile$=void 0;var a=uE,i="biz.file.downloadFile";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"7.0.15"},n[a.ENV_ENUM.android]={vs:"7.0.15"},n[a.ENV_ENUM.pc]={vs:"7.0.15"},n)),e.downloadFile$=t,e.default=t}(DN);var TN={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.fetchData$=void 0;var a=uE,i="biz.intent.fetchData";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"2.7.6"},n[a.ENV_ENUM.android]={vs:"2.7.6"},n)),e.fetchData$=t,e.default=t}(TN);var jN={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.bind$=void 0;var a=uE,i="biz.iot.bind";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"4.6.34"},n[a.ENV_ENUM.android]={vs:"4.6.34"},n)),e.bind$=t,e.default=t}(jN);var LN={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.bindMeetingRoom$=void 0;var a=uE,i="biz.iot.bindMeetingRoom";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"4.6.34"},n[a.ENV_ENUM.android]={vs:"4.6.34"},n)),e.bindMeetingRoom$=t,e.default=t}(LN);var VN={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.getDeviceProperties$=void 0;var a=uE,i="biz.iot.getDeviceProperties";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"4.6.42"},n[a.ENV_ENUM.android]={vs:"4.6.42"},n)),e.getDeviceProperties$=t,e.default=t}(VN);var BN={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.invokeThingService$=void 0;var a=uE,i="biz.iot.invokeThingService";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"4.6.42"},n[a.ENV_ENUM.android]={vs:"4.6.42"},n)),e.invokeThingService$=t,e.default=t}(BN);var UN={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.queryMeetingRoomList$=void 0;var a=uE,i="biz.iot.queryMeetingRoomList";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"4.6.34"},n[a.ENV_ENUM.android]={vs:"4.6.34"},n)),e.queryMeetingRoomList$=t,e.default=t}(UN);var zN={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.setDeviceProperties$=void 0;var a=uE,i="biz.iot.setDeviceProperties";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"4.6.42"},n[a.ENV_ENUM.android]={vs:"4.6.42"},n)),e.setDeviceProperties$=t,e.default=t}(zN);var RN={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.unbind$=void 0;var a=uE,i="biz.iot.unbind";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"4.6.34"},n[a.ENV_ENUM.android]={vs:"4.6.34"},n)),e.unbind$=t,e.default=t}(RN);var FN={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.startClassRoom$=void 0;var a=uE,i="biz.live.startClassRoom";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.pc]={vs:"5.1.19"},n)),e.startClassRoom$=t,e.default=t}(FN);var $N={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.startUnifiedLive$=void 0;var a=uE,i="biz.live.startUnifiedLive";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.pc]={vs:"5.1.18"},n)),e.startUnifiedLive$=t,e.default=t}($N);var qN={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.locate$=void 0;var a=uE,i="biz.map.locate";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"2.4.0"},n[a.ENV_ENUM.android]={vs:"2.4.0"},n)),e.locate$=t,e.default=t}(qN);var WN={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.search$=void 0;var a=uE,i="biz.map.search",o=QE.genDefaultParamsDealFn({scope:500});a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0",paramsDeal:o},n[a.ENV_ENUM.ios]={vs:"2.4.0",paramsDeal:o},n[a.ENV_ENUM.android]={vs:"2.4.0",paramsDeal:o},n)),e.search$=t,e.default=t}(WN);var HN={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.view$=void 0;var a=uE,i="biz.map.view";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"2.8.0"},n[a.ENV_ENUM.android]={vs:"2.8.0"},n)),e.view$=t,e.default=t}(HN);var GN={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.compressVideo$=void 0;var a=uE,i="biz.media.compressVideo";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"4.6.37"},n[a.ENV_ENUM.android]={vs:"4.6.37"},n)),e.compressVideo$=t,e.default=t}(GN);var YN={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.openApp$=void 0;var a=uE,i="biz.microApp.openApp";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"4.5.6"},n[a.ENV_ENUM.android]={vs:"4.5.6"},n)),e.openApp$=t,e.default=t}(YN);var XN={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.close$=void 0;var a=uE,i="biz.navigation.close";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.ios]={vs:"2.4.0"},n[a.ENV_ENUM.android]={vs:"2.4.0"},n[a.ENV_ENUM.pc]={vs:"4.3.5"},n[a.ENV_ENUM.harmony]={vs:"7.0.0"},n)),e.close$=t,e.default=t}(XN);var JN={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.goBack$=void 0;var a=uE,i="biz.navigation.goBack";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"2.6.0"},n[a.ENV_ENUM.android]={vs:"2.6.0"},n)),e.goBack$=t,e.default=t}(JN);var KN={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.hideBar$=void 0;var a=uE,i="biz.navigation.hideBar";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"3.5.6"},n[a.ENV_ENUM.android]={vs:"3.5.6"},n)),e.hideBar$=t,e.default=t}(KN);var QN={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.navigateBackPage$=void 0;var a=uE,i="biz.navigation.navigateBackPage";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"6.5.31"},n[a.ENV_ENUM.android]={vs:"6.5.31"},n)),e.navigateBackPage$=t,e.default=t}(QN);var ZN={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.navigateToMiniProgram$=void 0;var a=uE,i="biz.navigation.navigateToMiniProgram";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"5.1.31"},n[a.ENV_ENUM.android]={vs:"5.1.31"},n)),e.navigateToMiniProgram$=t,e.default=t}(ZN);var eI={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.navigateToPage$=void 0;var a=uE,i="biz.navigation.navigateToPage";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"6.5.31"},n[a.ENV_ENUM.android]={vs:"6.5.31"},n)),e.navigateToPage$=t,e.default=t}(eI);var tI={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.quit$=void 0;var a=uE,i="biz.navigation.quit";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.pc]={vs:"2.5.0"},n)),e.quit$=t,e.default=t}(tI);var nI={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.replace$=void 0;var a=uE,i="biz.navigation.replace";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"3.4.6"},n[a.ENV_ENUM.android]={vs:"3.4.6"},n)),e.replace$=t,e.default=t}(nI);var aI={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.setIcon$=void 0;var a=uE,i="biz.navigation.setIcon",o=QE.genDefaultParamsDealFn({watch:!0,showIcon:!0,iconIndex:1});a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0",paramsDeal:o},n[a.ENV_ENUM.ios]={vs:"2.4.0",paramsDeal:o},n[a.ENV_ENUM.android]={vs:"2.4.0",paramsDeal:o},n)),e.setIcon$=t,e.default=t}(aI);var iI={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.setLeft$=void 0;var a=uE,i="biz.navigation.setLeft",o=QE.genDefaultParamsDealFn({watch:!0,show:!0,control:!1,showIcon:!0,text:""});a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.pc]={vs:"2.5.0"},n[a.ENV_ENUM.ios]={vs:"2.4.0",paramsDeal:o},n[a.ENV_ENUM.android]={vs:"2.4.0",paramsDeal:o},n)),e.setLeft$=t,e.default=t}(iI);var oI={};!function(e){function t(e){return a.ddSdk.invokeAPI(o,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.setMenu$=void 0;var a=uE,i=QE,o="biz.navigation.setMenu";a.ddSdk.setAPI(o,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"2.6.0",paramsDeal:i.addWatchParamsDeal},n[a.ENV_ENUM.android]={vs:"2.6.0",paramsDeal:i.addWatchParamsDeal},n)),e.setMenu$=t,e.default=t}(oI);var rI={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.setRight$=void 0;var a=uE,i="biz.navigation.setRight",o=QE.genDefaultParamsDealFn({watch:!0,show:!0,control:!1,showIcon:!0,text:""});a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"2.4.0",paramsDeal:o},n[a.ENV_ENUM.android]={vs:"2.4.0",paramsDeal:o},n)),e.setRight$=t,e.default=t}(rI);var sI={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.setTitle$=void 0;var a=uE,i="biz.navigation.setTitle";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.pc]={vs:"2.5.0"},n[a.ENV_ENUM.ios]={vs:"2.4.0"},n[a.ENV_ENUM.android]={vs:"2.4.0"},n[a.ENV_ENUM.harmony]={vs:"7.0.0"},n)),e.setTitle$=t,e.default=t}(sI);var lI={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.componentPunchFromPartner$=void 0;var a=uE,i="biz.pbp.componentPunchFromPartner";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"5.1.10"},n[a.ENV_ENUM.android]={vs:"5.1.10"},n)),e.componentPunchFromPartner$=t,e.default=t}(lI);var cI={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.startMatchRuleFromPartner$=void 0;var a=uE,i="biz.pbp.startMatchRuleFromPartner";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"5.1.10"},n[a.ENV_ENUM.android]={vs:"5.1.10"},n)),e.startMatchRuleFromPartner$=t,e.default=t}(cI);var uI={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.stopMatchRuleFromPartner$=void 0;var a=uE,i="biz.pbp.stopMatchRuleFromPartner";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"5.1.10"},n[a.ENV_ENUM.android]={vs:"5.1.10"},n)),e.stopMatchRuleFromPartner$=t,e.default=t}(uI);var dI={};!function(e){function t(e){return n.ddSdk.invokeAPI(a,e)}Object.defineProperty(e,"__esModule",{value:!0}),e.add$=void 0;var n=uE,a="biz.phoneContact.add";n.ddSdk.setAPI(a,{}),e.add$=t,e.default=t}(dI);var hI={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.getRealtimeTracingStatus$=void 0;var a=uE,i="biz.realm.getRealtimeTracingStatus";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.android]={vs:"6.0.13"},n)),e.getRealtimeTracingStatus$=t,e.default=t}(hI);var pI={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.getUserExclusiveInfo$=void 0;var a=uE,i="biz.realm.getUserExclusiveInfo";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"6.0.14"},n[a.ENV_ENUM.android]={vs:"6.0.14"},n[a.ENV_ENUM.pc]={vs:"6.0.17"},n)),e.getUserExclusiveInfo$=t,e.default=t}(pI);var fI={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.startRealtimeTracing$=void 0;var a=uE,i="biz.realm.startRealtimeTracing";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.android]={vs:"6.0.13"},n)),e.startRealtimeTracing$=t,e.default=t}(fI);var vI={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.stopRealtimeTracing$=void 0;var a=uE,i="biz.realm.stopRealtimeTracing";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.android]={vs:"6.0.13"},n)),e.stopRealtimeTracing$=t,e.default=t}(vI);var mI={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.subscribe$=void 0;var a=uE,i="biz.realm.subscribe";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"4.7.18"},n[a.ENV_ENUM.android]={vs:"4.7.18"},n)),e.subscribe$=t,e.default=t}(mI);var gI={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.unsubscribe$=void 0;var a=uE,i="biz.realm.unsubscribe";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"4.7.18"},n[a.ENV_ENUM.android]={vs:"4.7.18"},n)),e.unsubscribe$=t,e.default=t}(gI);var bI={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.getInfo$=void 0;var a=uE,i="biz.resource.getInfo";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"6.5.10"},n[a.ENV_ENUM.android]={vs:"6.5.10"},n)),e.getInfo$=t,e.default=t}(bI);var yI={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.reportDebugMessage$=void 0;var a=uE,i="biz.resource.reportDebugMessage";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"6.5.20"},n[a.ENV_ENUM.android]={vs:"6.5.20"},n)),e.reportDebugMessage$=t,e.default=t}(yI);var wI={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.addShortCut$=void 0;var a=uE,i="biz.shortCut.addShortCut";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.android]={vs:"4.7.32"},n)),e.addShortCut$=t,e.default=t}(wI);var _I={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.getHealthAuthorizationStatus$=void 0;var a=uE,i="biz.sports.getHealthAuthorizationStatus";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"7.0.11"},n)),e.getHealthAuthorizationStatus$=t,e.default=t}(_I);var EI={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.getHealthData$=void 0;var a=uE,i="biz.sports.getHealthData";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.ios]={vs:"7.0.10"},n)),e.getHealthData$=t,e.default=t}(EI);var PI={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.getHealthDeviceData$=void 0;var a=uE,i="biz.sports.getHealthDeviceData";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.ios]={vs:"7.0.10"},n)),e.getHealthDeviceData$=t,e.default=t}(PI);var NI={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.requestHealthAuthorization$=void 0;var a=uE,i="biz.sports.requestHealthAuthorization";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.ios]={vs:"7.0.10"},n)),e.requestHealthAuthorization$=t,e.default=t}(NI);var II={};!function(e){function t(e){return a.ddSdk.invokeAPI(o,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.closeUnpayOrder$=void 0;var a=uE,i=QE,o="biz.store.closeUnpayOrder";a.ddSdk.setAPI(o,((n={})[a.ENV_ENUM.ios]={vs:"4.3.7",paramsDeal:i.genBizStoreParamsDealFn},n[a.ENV_ENUM.android]={vs:"4.3.7",paramsDeal:i.genBizStoreParamsDealFn},n[a.ENV_ENUM.pc]={vs:"4.5.3",paramsDeal:i.genBizStoreParamsDealFn},n)),e.closeUnpayOrder$=t,e.default=t}(II);var AI={};!function(e){function t(e){return a.ddSdk.invokeAPI(o,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.createOrder$=void 0;var a=uE,i=QE,o="biz.store.createOrder";a.ddSdk.setAPI(o,((n={})[a.ENV_ENUM.ios]={vs:"4.3.7",paramsDeal:i.genBizStoreParamsDealFn},n[a.ENV_ENUM.android]={vs:"4.3.7",paramsDeal:i.genBizStoreParamsDealFn},n[a.ENV_ENUM.pc]={vs:"4.5.3",paramsDeal:i.genBizStoreParamsDealFn},n)),e.createOrder$=t,e.default=t}(AI);var kI={};!function(e){function t(e){return a.ddSdk.invokeAPI(o,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.getPayUrl$=void 0;var a=uE,i=QE,o="biz.store.getPayUrl";a.ddSdk.setAPI(o,((n={})[a.ENV_ENUM.ios]={vs:"4.3.7",paramsDeal:i.genBizStoreParamsDealFn},n[a.ENV_ENUM.android]={vs:"4.3.7",paramsDeal:i.genBizStoreParamsDealFn},n[a.ENV_ENUM.pc]={vs:"4.5.3",paramsDeal:i.genBizStoreParamsDealFn},n)),e.getPayUrl$=t,e.default=t}(kI);var CI={};!function(e){function t(e){return a.ddSdk.invokeAPI(o,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.inquiry$=void 0;var a=uE,i=QE,o="biz.store.inquiry";a.ddSdk.setAPI(o,((n={})[a.ENV_ENUM.ios]={vs:"4.3.7",paramsDeal:i.genBizStoreParamsDealFn},n[a.ENV_ENUM.android]={vs:"4.3.7",paramsDeal:i.genBizStoreParamsDealFn},n[a.ENV_ENUM.pc]={vs:"4.5.3",paramsDeal:i.genBizStoreParamsDealFn},n)),e.inquiry$=t,e.default=t}(CI);var SI={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.isTab$=void 0;var a=uE,i="biz.tabwindow.isTab";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.pc]={vs:"6.5.10"},n)),e.isTab$=t,e.default=t}(SI);var MI={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.call$=void 0;var a=uE,i="biz.telephone.call";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"2.4.0"},n[a.ENV_ENUM.android]={vs:"2.4.0"},n)),e.call$=t,e.default=t}(MI);var xI={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.checkBizCall$=void 0;var a=uE,i="biz.telephone.checkBizCall";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.pc]={vs:"4.0.0"},n[a.ENV_ENUM.ios]={vs:"3.5.6"},n[a.ENV_ENUM.android]={vs:"3.5.6"},n)),e.checkBizCall$=t,e.default=t}(xI);var OI={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.quickCallList$=void 0;var a=uE,i="biz.telephone.quickCallList";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.pc]={vs:"3.5.6"},n[a.ENV_ENUM.ios]={vs:"3.5.6"},n[a.ENV_ENUM.android]={vs:"3.5.6"},n)),e.quickCallList$=t,e.default=t}(OI);var DI={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.showCallMenu$=void 0;var a=uE,i="biz.telephone.showCallMenu";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"2.8.0"},n[a.ENV_ENUM.android]={vs:"2.8.0"},n)),e.showCallMenu$=t,e.default=t}(DI);var TI={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.checkPassword$=void 0;var a=uE,i="biz.user.checkPassword";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"4.5.8"},n[a.ENV_ENUM.android]={vs:"4.5.8"},n)),e.checkPassword$=t,e.default=t}(TI);var jI={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.get$=void 0;var a=uE,i="biz.user.get";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.pc]={vs:"3.0.0"},n[a.ENV_ENUM.ios]={vs:"2.4.0"},n[a.ENV_ENUM.android]={vs:"2.4.0"},n)),e.get$=t,e.default=t}(jI);var LI={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.callComponent$=void 0;var a=uE,i="biz.util.callComponent";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"6.3.35"},n[a.ENV_ENUM.android]={vs:"6.3.35"},n[a.ENV_ENUM.pc]={vs:"6.3.35"},n)),e.callComponent$=t,e.default=t}(LI);var VI={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.checkAuth$=void 0;var a=uE,i="biz.util.checkAuth";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"7.0.0"},n[a.ENV_ENUM.android]={vs:"7.0.0"},n)),e.checkAuth$=t,e.default=t}(VI);var BI={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.chooseImage$=void 0;var a=uE,i="biz.util.chooseImage";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"5.1.1"},n[a.ENV_ENUM.android]={vs:"5.1.1"},n)),e.chooseImage$=t,e.default=t}(BI);var UI={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.chooseRegion$=void 0;var a=uE,i="biz.util.chooseRegion";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"7.0.10"},n[a.ENV_ENUM.android]={vs:"7.0.10"},n)),e.chooseRegion$=t,e.default=t}(UI);var zI={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.chosen$=void 0;var a=uE,i="biz.util.chosen";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"2.4.0"},n[a.ENV_ENUM.android]={vs:"2.4.0"},n)),e.chosen$=t,e.default=t}(zI);var RI={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.clearWebStoreCache$=void 0;var a=uE,i="biz.util.clearWebStoreCache";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.pc]={vs:"6.0.22"},n)),e.clearWebStoreCache$=t,e.default=t}(RI);var FI={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.closePreviewImage$=void 0;var a=uE,i="biz.util.closePreviewImage";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"6.0.19"},n[a.ENV_ENUM.android]={vs:"6.0.17"},n)),e.closePreviewImage$=t,e.default=t}(FI);var $I={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.compressImage$=void 0;var a=uE,i="biz.util.compressImage";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"5.1.1"},n[a.ENV_ENUM.android]={vs:"5.1.1"},n)),e.compressImage$=t,e.default=t}($I);var qI={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.datepicker$=void 0;var a=uE,i="biz.util.datepicker";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"2.4.0"},n[a.ENV_ENUM.android]={vs:"2.4.0"},n)),e.datepicker$=t,e.default=t}(qI);var WI={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.datetimepicker$=void 0;var a=uE,i="biz.util.datetimepicker";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"2.4.0"},n[a.ENV_ENUM.android]={vs:"2.4.0"},n)),e.datetimepicker$=t,e.default=t}(WI);var HI={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.decrypt$=void 0;var a=uE,i="biz.util.decrypt";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.pc]={vs:"3.0.0"},n[a.ENV_ENUM.ios]={vs:"2.9.1"},n[a.ENV_ENUM.android]={vs:"2.9.1"},n)),e.decrypt$=t,e.default=t}(HI);var GI={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.downloadFile$=void 0;var a=uE,i="biz.util.downloadFile";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.pc]={vs:"2.5.0"},n)),e.downloadFile$=t,e.default=t}(GI);var YI={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.encrypt$=void 0;var a=uE,i="biz.util.encrypt";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.pc]={vs:"3.0.0"},n[a.ENV_ENUM.ios]={vs:"2.9.1"},n[a.ENV_ENUM.android]={vs:"2.9.1"},n)),e.encrypt$=t,e.default=t}(YI);var XI={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.getPerfInfo$=void 0;var a=uE,i="biz.util.getPerfInfo";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"5.1.14"},n[a.ENV_ENUM.android]={vs:"5.1.14"},n)),e.getPerfInfo$=t,e.default=t}(XI);var JI={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.invokeWorkbench$=void 0;var a=uE,i="biz.util.invokeWorkbench";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.pc]={vs:"6.0.8"},n)),e.invokeWorkbench$=t,e.default=t}(JI);var KI={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.isEnableGPUAcceleration$=void 0;var a=uE,i="biz.util.isEnableGPUAcceleration";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.pc]={vs:"6.0.22"},n)),e.isEnableGPUAcceleration$=t,e.default=t}(KI);var QI={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.isLocalFileExist$=void 0;var a=uE,i="biz.util.isLocalFileExist";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.pc]={vs:"2.5.0"},n)),e.isLocalFileExist$=t,e.default=t}(QI);var ZI={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.multiSelect$=void 0;var a=uE,i="biz.util.multiSelect";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"3.0.0"},n[a.ENV_ENUM.android]={vs:"3.0.0"},n)),e.multiSelect$=t,e.default=t}(ZI);var eA={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.open$=void 0;var a=uE,i="biz.util.open";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.pc]={vs:"2.7.0"},n[a.ENV_ENUM.ios]={vs:"2.4.0"},n[a.ENV_ENUM.android]={vs:"2.4.0"},n)),e.open$=t,e.default=t}(eA);var tA={};!function(e){function t(e){return n.ddSdk.invokeAPI(a,e)}Object.defineProperty(e,"__esModule",{value:!0}),e.openBrowser$=void 0;var n=uE,a="biz.util.openBrowser";n.ddSdk.setAPI(a,{}),e.openBrowser$=t,e.default=t}(tA);var nA={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.openDocument$=void 0;var a=uE,i="biz.util.openDocument";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"7.0.10"},n[a.ENV_ENUM.android]={vs:"7.0.10"},n[a.ENV_ENUM.pc]={vs:"7.0.10"},n)),e.openDocument$=t,e.default=t}(nA);var aA={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.openLink$=void 0;var a=uE,i="biz.util.openLink",o=QE.genDefaultParamsDealFn({credible:!0,showMenuBar:!0});a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.pc]={vs:"2.7.0"},n[a.ENV_ENUM.ios]={vs:"2.4.0",paramsDeal:o},n[a.ENV_ENUM.android]={vs:"2.4.0",paramsDeal:o},n[a.ENV_ENUM.harmony]={vs:"7.0.0"},n)),e.openLink$=t,e.default=t}(aA);var iA={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.openLocalFile$=void 0;var a=uE,i="biz.util.openLocalFile";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.pc]={vs:"2.5.0"},n)),e.openLocalFile$=t,e.default=t}(iA);var oA={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.openModal$=void 0;var a=uE,i="biz.util.openModal";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.pc]={vs:"2.5.0"},n)),e.openModal$=t,e.default=t}(oA);var rA={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.openSlidePanel$=void 0;var a=uE,i="biz.util.openSlidePanel";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.pc]={vs:"2.5.0"},n)),e.openSlidePanel$=t,e.default=t}(rA);var sA={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.presentWindow$=void 0;var a=uE,i="biz.util.presentWindow";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"2.8.0"},n[a.ENV_ENUM.android]={vs:"2.8.0"},n)),e.presentWindow$=t,e.default=t}(sA);var lA={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.previewImage$=void 0;var a=uE,i="biz.util.previewImage";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.pc]={vs:"2.7.0"},n[a.ENV_ENUM.ios]={vs:"2.4.0"},n[a.ENV_ENUM.android]={vs:"2.4.0"},n)),e.previewImage$=t,e.default=t}(lA);var cA={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.previewVideo$=void 0;var a=uE,i="biz.util.previewVideo";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"4.3.7"},n[a.ENV_ENUM.android]={vs:"4.3.7"},n[a.ENV_ENUM.pc]={vs:"4.6.33"},n)),e.previewVideo$=t,e.default=t}(cA);var uA={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.saveImage$=void 0;var a=uE,i="biz.util.saveImage";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.ios]={vs:"4.1"},n[a.ENV_ENUM.android]={vs:"4.1"},n[a.ENV_ENUM.harmony]={vs:"7.0.0"},n)),e.saveImage$=t,e.default=t}(uA);var dA={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.saveImageToPhotosAlbum$=void 0;var a=uE,i="biz.util.saveImageToPhotosAlbum";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"7.0.0"},n[a.ENV_ENUM.android]={vs:"7.0.0"},n)),e.saveImageToPhotosAlbum$=t,e.default=t}(dA);var hA={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.scan$=void 0;var a=uE,i="biz.util.scan",o=QE.genDefaultParamsDealFn({type:"qrCode"});a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"2.4.0",paramsDeal:o},n[a.ENV_ENUM.android]={vs:"2.4.0",paramsDeal:o},n)),e.scan$=t,e.default=t}(hA);var pA={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.scanCard$=void 0;var a=uE,i="biz.util.scanCard";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"2.8.0"},n[a.ENV_ENUM.android]={vs:"2.8.0"},n)),e.scanCard$=t,e.default=t}(pA);var fA={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.setGPUAcceleration$=void 0;var a=uE,i="biz.util.setGPUAcceleration";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.pc]={vs:"6.0.22"},n)),e.setGPUAcceleration$=t,e.default=t}(fA);var vA={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.setScreenBrightnessAndKeepOn$=void 0;var a=uE,i="biz.util.setScreenBrightnessAndKeepOn";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"4.6.37"},n[a.ENV_ENUM.android]={vs:"4.3.3"},n)),e.setScreenBrightnessAndKeepOn$=t,e.default=t}(vA);var mA={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.setScreenKeepOn$=void 0;var a=uE,i="biz.util.setScreenKeepOn";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"5.1.26"},n[a.ENV_ENUM.android]={vs:"5.1.26"},n)),e.setScreenKeepOn$=t,e.default=t}(mA);var gA={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.share$=void 0;var a=uE,i="biz.util.share",o=QE.genDefaultParamsDealFn({title:"",buttonName:"确定"});a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0",paramsDeal:o},n[a.ENV_ENUM.ios]={vs:"2.4.0",paramsDeal:o},n[a.ENV_ENUM.android]={vs:"2.4.0",paramsDeal:o},n[a.ENV_ENUM.pc]={vs:"4.6.37",paramsDeal:o},n)),e.share$=t,e.default=t}(gA);var bA={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.shareImage$=void 0;var a=uE,i="biz.util.shareImage";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"4.1"},n[a.ENV_ENUM.android]={vs:"4.1"},n)),e.shareImage$=t,e.default=t}(bA);var yA={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.showAuthGuide$=void 0;var a=uE,i="biz.util.showAuthGuide";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"7.0.10"},n[a.ENV_ENUM.android]={vs:"7.0.10"},n)),e.showAuthGuide$=t,e.default=t}(yA);var wA={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.showSharePanel$=void 0;var a=uE,i="biz.util.showSharePanel";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"7.0.10"},n[a.ENV_ENUM.android]={vs:"7.0.10"},n)),e.showSharePanel$=t,e.default=t}(wA);var _A={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.startDocSign$=void 0;var a=uE,i="biz.util.startDocSign";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.android]={vs:"4.6.33"},n)),e.startDocSign$=t,e.default=t}(_A);var EA={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.systemShare$=void 0;var a=uE,i="biz.util.systemShare";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"4.5.11"},n[a.ENV_ENUM.android]={vs:"4.5.11"},n)),e.systemShare$=t,e.default=t}(EA);var PA={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.timepicker$=void 0;var a=uE,i="biz.util.timepicker";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"2.4.0"},n[a.ENV_ENUM.android]={vs:"2.4.0"},n)),e.timepicker$=t,e.default=t}(PA);var NA={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.uploadAttachment$=void 0;var a=uE,i="biz.util.uploadAttachment";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.pc]={vs:"3.0.0"},n[a.ENV_ENUM.ios]={vs:"2.7.0"},n[a.ENV_ENUM.android]={vs:"2.7.0"},n)),e.uploadAttachment$=t,e.default=t}(NA);var IA={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.uploadFile$=void 0;var a=uE,i="biz.util.uploadFile";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"6.5.28"},n[a.ENV_ENUM.android]={vs:"6.5.27"},n)),e.uploadFile$=t,e.default=t}(IA);var AA={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.uploadImage$=void 0;var a=uE,i="biz.util.uploadImage",o=QE.genDefaultParamsDealFn({multiple:!1});a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.pc]={vs:"2.5.0"},n[a.ENV_ENUM.ios]={vs:"2.4.0",paramsDeal:o},n[a.ENV_ENUM.android]={vs:"2.4.0",paramsDeal:o},n)),e.uploadImage$=t,e.default=t}(AA);var kA={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.uploadImageFromCamera$=void 0;var a=uE,i="biz.util.uploadImageFromCamera";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"2.4.0"},n[a.ENV_ENUM.android]={vs:"2.4.0"},n)),e.uploadImageFromCamera$=t,e.default=t}(kA);var CA={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.ut$=void 0;var a=uE,i="biz.util.ut",o=function(e){var t=Object.assign({},e),n=t.value,a=[];if(n&&"object"==typeof n){for(var i in n)void 0!==n[i]&&a.push(i+"="+n[i]);n=a.join(",")}return t.value=n||"",t};a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.pc]={vs:"3.5.0",paramsDeal:o},n[a.ENV_ENUM.ios]={vs:"2.4.0",paramsDeal:function(e){var t=Object.assign({},e),n=t.value;return n&&"object"==typeof n&&(n=JSON.stringify(n)),t.value=n,t}},n[a.ENV_ENUM.android]={vs:"2.4.0",paramsDeal:o},n[a.ENV_ENUM.harmony]={vs:"7.0.0",paramsDeal:o},n)),e.ut$=t,e.default=t}(CA);var SA={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.openBindIDCard$=void 0;var a=uE,i="biz.verify.openBindIDCard";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"4.5.21"},n[a.ENV_ENUM.android]={vs:"4.5.21"},n)),e.openBindIDCard$=t,e.default=t}(SA);var MA={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.startAuth$=void 0;var a=uE,i="biz.verify.startAuth";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"4.5.21"},n[a.ENV_ENUM.android]={vs:"4.5.21"},n)),e.startAuth$=t,e.default=t}(MA);var xA={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.makeCall$=void 0;var a=uE,i="biz.voice.makeCall";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"7.0.40"},n[a.ENV_ENUM.android]={vs:"7.0.40"},n[a.ENV_ENUM.pc]={vs:"7.0.40"},n)),e.makeCall$=t,e.default=t}(xA);var OA={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.getWatermarkInfo$=void 0;var a=uE,i="biz.watermarkCamera.getWatermarkInfo";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"6.5.25"},n[a.ENV_ENUM.android]={vs:"6.5.25"},n)),e.getWatermarkInfo$=t,e.default=t}(OA);var DA={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.setWatermarkInfo$=void 0;var a=uE,i="biz.watermarkCamera.setWatermarkInfo";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"6.5.25"},n[a.ENV_ENUM.android]={vs:"6.5.25"},n)),e.setWatermarkInfo$=t,e.default=t}(DA);var TA={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.requestAuthCode$=void 0;var a=uE,i="channel.permission.requestAuthCode";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"3.0.0"},n[a.ENV_ENUM.android]={vs:"3.0.0"},n)),e.requestAuthCode$=t,e.default=t}(TA);var jA={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.clearShake$=void 0;var a=uE,i="device.accelerometer.clearShake";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"2.4.0"},n[a.ENV_ENUM.android]={vs:"2.4.0"},n)),e.clearShake$=t,e.default=t}(jA);var LA={};!function(e){function t(e){return a.ddSdk.invokeAPI(o,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.watchShake$=void 0;var a=uE,i=QE,o="device.accelerometer.watchShake";a.ddSdk.setAPI(o,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"2.4.0",paramsDeal:function(e){return i.forceChangeParamsDealFn({sensitivity:3.2})(i.addWatchParamsDeal(e))}},n[a.ENV_ENUM.android]={vs:"2.4.0",paramsDeal:i.addWatchParamsDeal},n)),e.watchShake$=t,e.default=t}(LA);var VA={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.download$=void 0;var a=uE,i="device.audio.download";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"2.8.0"},n[a.ENV_ENUM.android]={vs:"2.8.0"},n)),e.download$=t,e.default=t}(VA);var BA={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.onPlayEnd$=void 0;var a=uE,i="device.audio.onPlayEnd";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"2.8.0"},n[a.ENV_ENUM.android]={vs:"2.8.0"},n)),e.onPlayEnd$=t,e.default=t}(BA);var UA={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.onRecordEnd$=void 0;var a=uE,i="device.audio.onRecordEnd";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"2.8.0"},n[a.ENV_ENUM.android]={vs:"2.8.0"},n)),e.onRecordEnd$=t,e.default=t}(UA);var zA={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.pause$=void 0;var a=uE,i="device.audio.pause";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"2.8.0"},n[a.ENV_ENUM.android]={vs:"2.8.0"},n)),e.pause$=t,e.default=t}(zA);var RA={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.play$=void 0;var a=uE,i="device.audio.play";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"2.8.0"},n[a.ENV_ENUM.android]={vs:"2.8.0"},n)),e.play$=t,e.default=t}(RA);var FA={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.resume$=void 0;var a=uE,i="device.audio.resume";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"2.8.0"},n[a.ENV_ENUM.android]={vs:"2.8.0"},n)),e.resume$=t,e.default=t}(FA);var $A={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.startRecord$=void 0;var a=uE,i="device.audio.startRecord";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"2.8.0"},n[a.ENV_ENUM.android]={vs:"2.8.0"},n[a.ENV_ENUM.pc]={vs:"7.0.30"},n)),e.startRecord$=t,e.default=t}($A);var qA={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.stop$=void 0;var a=uE,i="device.audio.stop";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"2.8.0"},n[a.ENV_ENUM.android]={vs:"2.8.0"},n)),e.stop$=t,e.default=t}(qA);var WA={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.stopRecord$=void 0;var a=uE,i="device.audio.stopRecord";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"2.8.0"},n[a.ENV_ENUM.android]={vs:"2.8.0"},n[a.ENV_ENUM.pc]={vs:"7.0.30"},n)),e.stopRecord$=t,e.default=t}(WA);var HA={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.translateVoice$=void 0;var a=uE,i="device.audio.translateVoice";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"2.8.0"},n[a.ENV_ENUM.android]={vs:"2.8.0"},n)),e.translateVoice$=t,e.default=t}(HA);var GA={};!function(e){function t(e){return n.ddSdk.invokeAPI(a,e)}Object.defineProperty(e,"__esModule",{value:!0}),e.getBatteryInfo$=void 0;var n=uE,a="device.base.getBatteryInfo";n.ddSdk.setAPI(a,{}),e.getBatteryInfo$=t,e.default=t}(GA);var YA={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.getInterface$=void 0;var a=uE,i="device.base.getInterface";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"2.4.0"},n[a.ENV_ENUM.android]={vs:"2.4.0"},n)),e.getInterface$=t,e.default=t}(YA);var XA={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.getPhoneInfo$=void 0;var a=uE,i="device.base.getPhoneInfo";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"3.5.0"},n[a.ENV_ENUM.android]={vs:"3.5.0"},n)),e.getPhoneInfo$=t,e.default=t}(XA);var JA={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.getScanWifiListAsync$=void 0;var a=uE,i="device.base.getScanWifiListAsync";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"4.6.41"},n[a.ENV_ENUM.android]={vs:"3.3.0"},n)),e.getScanWifiListAsync$=t,e.default=t}(JA);var KA={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.getUUID$=void 0;var a=uE,i="device.base.getUUID";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"2.4.0"},n[a.ENV_ENUM.android]={vs:"2.4.0"},n[a.ENV_ENUM.pc]={vs:"4.7.6"},n)),e.getUUID$=t,e.default=t}(KA);var QA={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.getWifiStatus$=void 0;var a=uE,i="device.base.getWifiStatus";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"2.11.0"},n[a.ENV_ENUM.android]={vs:"2.11.0"},n)),e.getWifiStatus$=t,e.default=t}(QA);var ZA={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.openSystemSetting$=void 0;var a=uE,i="device.base.openSystemSetting";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.android]={vs:"6.0.27"},n[a.ENV_ENUM.ios]={vs:"6.3.15"},n)),e.openSystemSetting$=t,e.default=t}(ZA);var ek={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.getNetworkType$=void 0;var a=uE,i="device.connection.getNetworkType";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.ios]={vs:"2.4.0"},n[a.ENV_ENUM.android]={vs:"2.4.0"},n[a.ENV_ENUM.harmony]={vs:"7.0.0"},n)),e.getNetworkType$=t,e.default=t}(ek);var tk={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.checkPermission$=void 0;var a=uE,i="device.geolocation.checkPermission";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.android]={vs:"4.5.0"},n)),e.checkPermission$=t,e.default=t}(tk);var nk={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.get$=void 0;var a=uE,i="device.geolocation.get";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"2.4.0"},n[a.ENV_ENUM.android]={vs:"2.4.0"},n)),e.get$=t,e.default=t}(nk);var ak={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.start$=void 0;var a=uE,i="device.geolocation.start";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"3.4.7"},n[a.ENV_ENUM.android]={vs:"3.4.7"},n)),e.start$=t,e.default=t}(ak);var ik={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.status$=void 0;var a=uE,i="device.geolocation.status";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"3.4.8"},n[a.ENV_ENUM.android]={vs:"3.4.8"},n)),e.status$=t,e.default=t}(ik);var ok={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.stop$=void 0;var a=uE,i="device.geolocation.stop";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"3.4.7"},n[a.ENV_ENUM.android]={vs:"3.4.7"},n)),e.stop$=t,e.default=t}(ok);var rk={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.checkInstalledApps$=void 0;var a=uE,i="device.launcher.checkInstalledApps";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"2.4.0"},n[a.ENV_ENUM.android]={vs:"2.4.0"},n)),e.checkInstalledApps$=t,e.default=t}(rk);var sk={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.launchApp$=void 0;var a=uE,i="device.launcher.launchApp";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"2.4.0"},n[a.ENV_ENUM.android]={vs:"2.4.0"},n)),e.launchApp$=t,e.default=t}(sk);var lk={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.nfcRead$=void 0;var a=uE,i="device.nfc.nfcRead";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"2.11.0"},n[a.ENV_ENUM.android]={vs:"2.11.0"},n)),e.nfcRead$=t,e.default=t}(lk);var ck={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.nfcStop$=void 0;var a=uE,i="device.nfc.nfcStop";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"4.3.9"},n[a.ENV_ENUM.android]={vs:"4.3.9"},n)),e.nfcStop$=t,e.default=t}(ck);var uk={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.nfcWrite$=void 0;var a=uE,i="device.nfc.nfcWrite";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"2.11.0"},n[a.ENV_ENUM.android]={vs:"2.11.0"},n)),e.nfcWrite$=t,e.default=t}(uk);var dk={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.actionSheet$=void 0;var a=uE,i="device.notification.actionSheet";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.pc]={vs:"3.0.0"},n[a.ENV_ENUM.ios]={vs:"2.4.0"},n[a.ENV_ENUM.android]={vs:"2.4.0"},n)),e.actionSheet$=t,e.default=t}(dk);var hk={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.alert$=void 0;var a=uE,i="device.notification.alert",o=QE.genDefaultParamsDealFn({title:"",buttonName:"确定"});a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.pc]={vs:"2.5.0"},n[a.ENV_ENUM.ios]={vs:"2.4.0",paramsDeal:o},n[a.ENV_ENUM.android]={vs:"2.4.0",paramsDeal:o},n)),e.alert$=t,e.default=t}(hk);var pk={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.confirm$=void 0;var a=uE,i="device.notification.confirm",o=QE.genDefaultParamsDealFn({title:"",buttonLabels:["确定","取消"]});a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0",paramsDeal:o},n[a.ENV_ENUM.pc]={vs:"2.5.0"},n[a.ENV_ENUM.ios]={vs:"2.4.0",paramsDeal:o},n[a.ENV_ENUM.android]={vs:"2.4.0",paramsDeal:o},n)),e.confirm$=t,e.default=t}(pk);var fk={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.extendModal$=void 0;var a=uE,i="device.notification.extendModal";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"2.5.0"},n[a.ENV_ENUM.android]={vs:"2.5.0"},n)),e.extendModal$=t,e.default=t}(fk);var vk={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.hidePreloader$=void 0;var a=uE,i="device.notification.hidePreloader";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"2.4.0"},n[a.ENV_ENUM.android]={vs:"2.4.0"},n)),e.hidePreloader$=t,e.default=t}(vk);var mk={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.modal$=void 0;var a=uE,i="device.notification.modal";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.pc]={vs:"4.2.5"},n[a.ENV_ENUM.ios]={vs:"2.4.0"},n[a.ENV_ENUM.android]={vs:"2.4.0"},n)),e.modal$=t,e.default=t}(mk);var gk={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.prompt$=void 0;var a=uE,i="device.notification.prompt",o=QE.genDefaultParamsDealFn({title:"",buttonLabels:["确定","取消"]});a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.pc]={vs:"2.7.0"},n[a.ENV_ENUM.ios]={vs:"2.4.0",paramsDeal:o},n[a.ENV_ENUM.android]={vs:"2.4.0",paramsDeal:o},n)),e.prompt$=t,e.default=t}(gk);var bk={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.showPreloader$=void 0;var a=uE,i="device.notification.showPreloader",o=QE.genDefaultParamsDealFn({text:"加载中...",showIcon:!0});a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0",paramsDeal:o},n[a.ENV_ENUM.ios]={vs:"2.4.0",paramsDeal:o},n[a.ENV_ENUM.android]={vs:"2.4.0",paramsDeal:o},n)),e.showPreloader$=t,e.default=t}(bk);var yk={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.toast$=void 0;var a=uE,i="device.notification.toast",o=QE.genDefaultParamsDealFn({text:"toast",duration:3,delay:0});a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.pc]={vs:"2.5.0",paramsDeal:function(e){return e.icon&&!e.type&&("success"===e.icon?e.type="success":"error"===e.icon&&(e.type="error")),e}},n[a.ENV_ENUM.ios]={vs:"2.4.0",paramsDeal:o},n[a.ENV_ENUM.android]={vs:"2.4.0",paramsDeal:o},n)),e.toast$=t,e.default=t}(yk);var wk={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.vibrate$=void 0;var a=uE,i="device.notification.vibrate",o=QE.genDefaultParamsDealFn({duration:300});a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0",paramsDeal:o},n[a.ENV_ENUM.ios]={vs:"2.4.0",paramsDeal:o},n[a.ENV_ENUM.android]={vs:"2.4.0",paramsDeal:o},n)),e.vibrate$=t,e.default=t}(wk);var _k={};!function(e){function t(e){return n.ddSdk.invokeAPI(a,e)}Object.defineProperty(e,"__esModule",{value:!0}),e.getScreenBrightness$=void 0;var n=uE,a="device.screen.getScreenBrightness";n.ddSdk.setAPI(a,{}),e.getScreenBrightness$=t,e.default=t}(_k);var Ek={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.insetAdjust$=void 0;var a=uE,i="device.screen.insetAdjust";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.ios]={vs:"4.6.18"},n)),e.insetAdjust$=t,e.default=t}(Ek);var Pk={};!function(e){function t(e){return n.ddSdk.invokeAPI(a,e)}Object.defineProperty(e,"__esModule",{value:!0}),e.isScreenReaderEnabled$=void 0;var n=uE,a="device.screen.isScreenReaderEnabled";n.ddSdk.setAPI(a,{}),e.isScreenReaderEnabled$=t,e.default=t}(Pk);var Nk={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.resetView$=void 0;var a=uE,i="device.screen.resetView";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.android]={vs:"4.0.0"},n[a.ENV_ENUM.ios]={vs:"4.0.0"},n)),e.resetView$=t,e.default=t}(Nk);var Ik={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.rotateView$=void 0;var a=uE,i="device.screen.rotateView";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.android]={vs:"4.0.0"},n[a.ENV_ENUM.ios]={vs:"4.0.0"},n)),e.rotateView$=t,e.default=t}(Ik);var Ak={};!function(e){function t(e){return n.ddSdk.invokeAPI(a,e)}Object.defineProperty(e,"__esModule",{value:!0}),e.setScreenBrightness$=void 0;var n=uE,a="device.screen.setScreenBrightness";n.ddSdk.setAPI(a,{}),e.setScreenBrightness$=t,e.default=t}(Ak);var kk={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.keepAlive$=void 0;var a=uE,i="media.voiceRecorder.keepAlive";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"5.1.12"},n[a.ENV_ENUM.android]={vs:"5.1.12"},n[a.ENV_ENUM.pc]={vs:"5.1.12"},n)),e.keepAlive$=t,e.default=t}(kk);var Ck={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.pause$=void 0;var a=uE,i="media.voiceRecorder.pause";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"5.1.12"},n[a.ENV_ENUM.android]={vs:"5.1.12"},n[a.ENV_ENUM.pc]={vs:"5.1.12"},n)),e.pause$=t,e.default=t}(Ck);var Sk={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.resume$=void 0;var a=uE,i="media.voiceRecorder.resume";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"5.1.12"},n[a.ENV_ENUM.android]={vs:"5.1.12"},n[a.ENV_ENUM.pc]={vs:"5.1.12"},n)),e.resume$=t,e.default=t}(Sk);var Mk={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.start$=void 0;var a=uE,i="media.voiceRecorder.start";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"5.1.12"},n[a.ENV_ENUM.android]={vs:"5.1.12"},n[a.ENV_ENUM.pc]={vs:"5.1.12"},n)),e.start$=t,e.default=t}(Mk);var xk={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.stop$=void 0;var a=uE,i="media.voiceRecorder.stop";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"5.1.12"},n[a.ENV_ENUM.android]={vs:"5.1.12"},n[a.ENV_ENUM.pc]={vs:"5.1.12"},n)),e.stop$=t,e.default=t}(xk);var Ok={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.loginGovNet$=void 0;var a=uE,i="net.bjGovApn.loginGovNet";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.android]={vs:"4.5.16"},n)),e.loginGovNet$=t,e.default=t}(Ok);var Dk={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.exec$=void 0;var a=uE,i="runtime.h5nuvabridge.exec";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"7.0.0"},n[a.ENV_ENUM.android]={vs:"7.0.0"},n)),e.exec$=t,e.default=t}(Dk);var Tk={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.fetch$=void 0;var a=uE,i="runtime.message.fetch";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"2.6.0"},n[a.ENV_ENUM.android]={vs:"2.6.0"},n)),e.fetch$=t,e.default=t}(Tk);var jk={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.post$=void 0;var a=uE,i="runtime.message.post";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"2.6.0"},n[a.ENV_ENUM.android]={vs:"2.6.0"},n)),e.post$=t,e.default=t}(jk);var Lk={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.getLoadTime$=void 0;var a=uE,i="runtime.monitor.getLoadTime";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"6.0.10"},n[a.ENV_ENUM.android]={vs:"6.0.10"},n)),e.getLoadTime$=t,e.default=t}(Lk);var Vk={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.requestAuthCode$=void 0;var a=uE,i="runtime.permission.requestAuthCode";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.pc]={vs:"3.0.0",paramsDeal:function(e){return Object.assign(e,{url:location.href.split("#")[0]})}},n[a.ENV_ENUM.ios]={vs:"2.4.0"},n[a.ENV_ENUM.android]={vs:"2.4.0"},n)),e.requestAuthCode$=t,e.default=t}(Vk);var Bk={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.requestOperateAuthCode$=void 0;var a=uE,i="runtime.permission.requestOperateAuthCode";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.pc]={vs:"3.3.0",paramsDeal:function(e){return Object.assign(e,{url:location.href.split("#")[0]})}},n[a.ENV_ENUM.ios]={vs:"3.3.0"},n[a.ENV_ENUM.android]={vs:"3.3.0"},n)),e.requestOperateAuthCode$=t,e.default=t}(Bk);var Uk={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.plain$=void 0;var a=uE,i="ui.input.plain";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"2.4.0"},n[a.ENV_ENUM.android]={vs:"2.4.0"},n)),e.plain$=t,e.default=t}(Uk);var zk={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.addToFloat$=void 0;var a=uE,i="ui.multitask.addToFloat";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"6.5.0"},n[a.ENV_ENUM.android]={vs:"6.5.0"},n)),e.addToFloat$=t,e.default=t}(zk);var Rk={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.removeFromFloat$=void 0;var a=uE,i="ui.multitask.removeFromFloat";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"6.5.0"},n[a.ENV_ENUM.android]={vs:"6.5.0"},n)),e.removeFromFloat$=t,e.default=t}(Rk);var Fk={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.close$=void 0;var a=uE,i="ui.nav.close";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"2.6.0"},n[a.ENV_ENUM.android]={vs:"2.6.0"},n)),e.close$=t,e.default=t}(Fk);var $k={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.getCurrentId$=void 0;var a=uE,i="ui.nav.getCurrentId";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"2.6.0"},n[a.ENV_ENUM.android]={vs:"2.6.0"},n)),e.getCurrentId$=t,e.default=t}($k);var qk={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.go$=void 0;var a=uE,i="ui.nav.go";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"2.6.0"},n[a.ENV_ENUM.android]={vs:"2.6.0"},n)),e.go$=t,e.default=t}(qk);var Wk={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.preload$=void 0;var a=uE,i="ui.nav.preload";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"2.6.0"},n[a.ENV_ENUM.android]={vs:"2.6.0"},n)),e.preload$=t,e.default=t}(Wk);var Hk={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.recycle$=void 0;var a=uE,i="ui.nav.recycle";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"2.6.0"},n[a.ENV_ENUM.android]={vs:"2.6.0"},n)),e.recycle$=t,e.default=t}(Hk);var Gk={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.setColors$=void 0;var a=uE,i="ui.progressBar.setColors";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"2.4.0"},n[a.ENV_ENUM.android]={vs:"2.4.0"},n)),e.setColors$=t,e.default=t}(Gk);var Yk={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.disable$=void 0;var a=uE,i="ui.pullToRefresh.disable";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"2.4.0"},n[a.ENV_ENUM.android]={vs:"2.4.0"},n)),e.disable$=t,e.default=t}(Yk);var Xk={};!function(e){function t(e){return a.ddSdk.invokeAPI(o,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.enable$=void 0;var a=uE,i=QE,o="ui.pullToRefresh.enable";a.ddSdk.setAPI(o,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"2.4.0",paramsDeal:i.addWatchParamsDeal},n[a.ENV_ENUM.android]={vs:"2.4.0",paramsDeal:i.addWatchParamsDeal},n)),e.enable$=t,e.default=t}(Xk);var Jk={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.stop$=void 0;var a=uE,i="ui.pullToRefresh.stop";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"2.4.0"},n[a.ENV_ENUM.android]={vs:"2.4.0"},n)),e.stop$=t,e.default=t}(Jk);var Kk={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.disable$=void 0;var a=uE,i="ui.webViewBounce.disable";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.ios]={vs:"2.4.0"},n[a.ENV_ENUM.android]={vs:"2.4.0"},n[a.ENV_ENUM.harmony]={vs:"7.0.0"},n)),e.disable$=t,e.default=t}(Kk);var Qk={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.enable$=void 0;var a=uE,i="ui.webViewBounce.enable";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"2.4.0"},n[a.ENV_ENUM.android]={vs:"2.4.0"},n)),e.enable$=t,e.default=t}(Qk);var Zk={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.ExternalChannelPublish$=void 0;var a=uE,i="biz.channel.externalChannelPublish";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.pc]={vs:"7.0.50"},n)),e.ExternalChannelPublish$=t,e.default=t}(Zk);var eC={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.addPhoneContact$=void 0;var a=uE,i="biz.phoneContact.add";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"7.0.0"},n[a.ENV_ENUM.android]={vs:"7.0.0"},n)),e.addPhoneContact$=t,e.default=t}(eC);var tC={};!function(e){function t(e){return i.ddSdk.invokeAPI(o,{message:e.content,title:null==e?void 0:e.title,buttonName:e.buttonText,success:e.success,fail:e.fail,complete:e.complete})}var n,a=wo&&wo.__assign||function(){return a=Object.assign||function(e){for(var t,n=1,a=arguments.length;n<a;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},a.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.alert$=void 0;var i=uE,o="device.notification.alert",r=function(e){return a({message:e.content,title:e.title||"",buttonName:e.buttonText||"确定"},e)};i.ddSdk.setAPI(o,((n={})[i.ENV_ENUM.pc]={vs:"2.5.0"},n[i.ENV_ENUM.ios]={vs:"2.4.0",paramsDeal:r},n[i.ENV_ENUM.android]={vs:"2.4.0",paramsDeal:r},n[i.ENV_ENUM.harmony]={vs:"7.0.0",paramsDeal:r},n)),e.alert$=t,e.default=t}(tC);var nC={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.callUsers$=void 0;var a=uE,i="biz.telephone.call";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"6.0.0"},n[a.ENV_ENUM.android]={vs:"6.0.0"},n)),e.callUsers$=t,e.default=t}(nC);var aC={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.checkAuth$=void 0;var a=uE,i="biz.util.checkAuth";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"7.0.0"},n[a.ENV_ENUM.android]={vs:"7.0.0"},n)),e.checkAuth$=t,e.default=t}(aC);var iC={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.checkBizCall$=void 0;var a=uE,i="biz.telephone.checkBizCall";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"6.0.0",resultDeal:function(e){return e?{isSupport:!0}:{isSupport:!1}}},n[a.ENV_ENUM.android]={vs:"6.0.0"},n[a.ENV_ENUM.pc]={vs:"6.0.0"},n)),e.checkBizCall$=t,e.default=t}(iC);var oC={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.chooseChat$=void 0;var a=uE,i="biz.chat.chooseConversationByCorpId";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"6.0.0"},n[a.ENV_ENUM.android]={vs:"6.0.0"},n)),e.chooseChat$=t,e.default=t}(oC);var rC={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.chooseConversation$=void 0;var a=uE,i="biz.chat.chooseConversation";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"7.0.0"},n[a.ENV_ENUM.android]={vs:"7.0.0"},n)),e.chooseConversation$=t,e.default=t}(rC);var sC={};!function(e){function t(e){return a.ddSdk.invokeAPI(o,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.chooseDateRangeInCalendar$=void 0;var a=uE,i=QE,o="biz.calendar.chooseInterval";a.ddSdk.setAPI(o,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"6.0.0",paramsDeal:i.addDefaultCorpIdParamsDeal},n[a.ENV_ENUM.android]={vs:"6.0.0",paramsDeal:i.addDefaultCorpIdParamsDeal},n)),e.chooseDateRangeInCalendar$=t,e.default=t}(sC);var lC={};!function(e){function t(e){return a.ddSdk.invokeAPI(o,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.chooseDateTime$=void 0;var a=uE,i=QE,o="biz.calendar.chooseDateTime";a.ddSdk.setAPI(o,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0",paramsDeal:i.addDefaultCorpIdParamsDeal},n[a.ENV_ENUM.ios]={vs:"6.0.0",paramsDeal:i.addDefaultCorpIdParamsDeal},n[a.ENV_ENUM.android]={vs:"6.0.0",paramsDeal:i.addDefaultCorpIdParamsDeal},n)),e.chooseDateTime$=t,e.default=t}(lC);var cC={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.chooseDepartments$=void 0;var a=uE,i="biz.contact.departmentsPicker";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"6.0.0"},n[a.ENV_ENUM.android]={vs:"6.0.0"},n[a.ENV_ENUM.pc]={vs:"6.0.0"},n)),e.chooseDepartments$=t,e.default=t}(cC);var uC={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.chooseDingTalkDir$=void 0;var a=uE,i="biz.cspace.chooseSpaceDir";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"6.0.0"},n[a.ENV_ENUM.android]={vs:"6.0.0"},n[a.ENV_ENUM.pc]={vs:"6.0.0"},n)),e.chooseDingTalkDir$=t,e.default=t}(uC);var dC={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.chooseDistrict$=void 0;var a=uE,i="biz.util.chooseRegion";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"7.0.10"},n[a.ENV_ENUM.android]={vs:"7.0.10"},n)),e.chooseDistrict$=t,e.default=t}(dC);var hC={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.chooseExternalUsers$=void 0;var a=uE,i="biz.contact.externalComplexPicker";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"6.0.0"},n[a.ENV_ENUM.android]={vs:"6.0.0"},n)),e.chooseExternalUsers$=t,e.default=t}(hC);var pC={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.chooseFile$=void 0;var a=uE,i="biz.file.chooseFile";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"7.1.5"},n[a.ENV_ENUM.android]={vs:"7.1.5"},n[a.ENV_ENUM.pc]={vs:"7.1.10"},n)),e.chooseFile$=t,e.default=t}(pC);var fC={};!function(e){function t(e){return a.ddSdk.invokeAPI(o,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.chooseHalfDayInCalendar$=void 0;var a=uE,i=QE,o="biz.calendar.chooseHalfDay";a.ddSdk.setAPI(o,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"6.0.0",paramsDeal:i.addDefaultCorpIdParamsDeal},n[a.ENV_ENUM.android]={vs:"6.0.0",paramsDeal:i.addDefaultCorpIdParamsDeal},n)),e.chooseHalfDayInCalendar$=t,e.default=t}(fC);var vC={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.chooseImage$=void 0;var a=uE,i="biz.util.chooseImage";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"6.0.0"},n[a.ENV_ENUM.android]={vs:"6.0.0"},n)),e.chooseImage$=t,e.default=t}(vC);var mC={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.chooseMedia$=void 0;var a=uE,i="biz.util.chooseMedia";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"7.5.2"},n[a.ENV_ENUM.android]={vs:"7.5.2"},n)),e.chooseMedia$=t,e.default=t}(mC);var gC={};!function(e){function t(e){return a.ddSdk.invokeAPI(o,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.chooseOneDayInCalendar$=void 0;var a=uE,i=QE,o="biz.calendar.chooseOneDay";a.ddSdk.setAPI(o,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"6.0.0",paramsDeal:i.addDefaultCorpIdParamsDeal},n[a.ENV_ENUM.android]={vs:"6.0.0",paramsDeal:i.addDefaultCorpIdParamsDeal},n)),e.chooseOneDayInCalendar$=t,e.default=t}(gC);var bC={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.chooseOrg$=void 0;var a=uE,i="biz.contact.chooseOrg";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.ios]={vs:"6.5.45"},n[a.ENV_ENUM.android]={vs:"6.5.45"},n[a.ENV_ENUM.harmony]={vs:"7.0.0"},n)),e.chooseOrg$=t,e.default=t}(bC);var yC={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.choosePhonebook$=void 0;var a=uE,i="biz.contact.chooseMobileContacts";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"6.0.0"},n[a.ENV_ENUM.android]={vs:"6.0.0"},n)),e.choosePhonebook$=t,e.default=t}(yC);var wC={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.chooseStaffForPC$=void 0;var a=uE,i="biz.contact.choose";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.pc]={vs:"6.0.0"},n)),e.chooseStaffForPC$=t,e.default=t}(wC);var _C={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.chooseUserFromList$=void 0;var a=uE,i="biz.customContact.choose";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"6.0.0"},n[a.ENV_ENUM.android]={vs:"6.0.0"},n)),e.chooseUserFromList$=t,e.default=t}(_C);var EC={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.clearShake$=void 0;var a=uE,i="device.accelerometer.clearShake";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"6.0.0"},n[a.ENV_ENUM.android]={vs:"6.0.0"},n)),e.clearShake$=t,e.default=t}(EC);var PC={};!function(e){function t(e){return i.ddSdk.invokeAPI("runtime.h5nuvabridge.exec",a({_action:o},e))}var n,a=wo&&wo.__assign||function(){return a=Object.assign||function(e){for(var t,n=1,a=arguments.length;n<a;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},a.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.closeBluetoothAdapter$=void 0;var i=uE,o="closeBluetoothAdapter";i.ddSdk.setAPI("runtime.h5nuvabridge.exec",((n={})[i.ENV_ENUM.harmony]={vs:"7.0.0"},n[i.ENV_ENUM.ios]={vs:"4.6.38"},n[i.ENV_ENUM.android]={vs:"4.6.38"},n)),e.closeBluetoothAdapter$=t,e.default=t}(PC);var NC={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.closePage$=void 0;var a=uE,i="biz.navigation.close";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.ios]={vs:"6.0.0"},n[a.ENV_ENUM.android]={vs:"6.0.0"},n[a.ENV_ENUM.harmony]={vs:"7.0.0"},n)),e.closePage$=t,e.default=t}(NC);var IC={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.complexChoose$=void 0;var a=uE,i="biz.contact.complexPicker";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"6.0.0"},n[a.ENV_ENUM.android]={vs:"6.0.0"},n[a.ENV_ENUM.pc]={vs:"6.0.0"},n)),e.complexChoose$=t,e.default=t}(IC);var AC={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.compressImage$=void 0;var a=uE,i="biz.util.compressImage";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"6.0.0"},n[a.ENV_ENUM.android]={vs:"6.0.0"},n)),e.compressImage$=t,e.default=t}(AC);var kC={};!function(e){function t(e){return i.ddSdk.invokeAPI(o,e)}var n,a=wo&&wo.__assign||function(){return a=Object.assign||function(e){for(var t,n=1,a=arguments.length;n<a;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},a.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.confirm$=void 0;var i=uE,o="device.notification.confirm",r=function(e){var t={title:e.title||"",message:e.content,buttonLabels:[e.cancelButtonText||"取消",e.confirmButtonText||"确定"]};return a(a({},t),e)};i.ddSdk.setAPI(o,((n={})[i.ENV_ENUM.harmony]={vs:"7.0.0",paramsDeal:r},n[i.ENV_ENUM.pc]={vs:"2.5.0"},n[i.ENV_ENUM.ios]={vs:"2.4.0",paramsDeal:r},n[i.ENV_ENUM.android]={vs:"2.4.0",paramsDeal:r},n)),e.confirm$=t,e.default=t}(kC);var CC={};!function(e){function t(e){return i.ddSdk.invokeAPI("runtime.h5nuvabridge.exec",a({_action:o},e))}var n,a=wo&&wo.__assign||function(){return a=Object.assign||function(e){for(var t,n=1,a=arguments.length;n<a;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},a.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.connectBLEDevice$=void 0;var i=uE,o="connectBLEDevice";i.ddSdk.setAPI("runtime.h5nuvabridge.exec",((n={})[i.ENV_ENUM.harmony]={vs:"7.0.0"},n[i.ENV_ENUM.ios]={vs:"4.6.38"},n[i.ENV_ENUM.android]={vs:"4.6.38"},n)),e.connectBLEDevice$=t,e.default=t}(CC);var SC={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.createBLEPeripheralServer$=void 0;var a=uE,i="biz.realm.createBLEPeripheralServer";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"7.6.10"},n[a.ENV_ENUM.android]={vs:"7.6.10"},n)),e.createBLEPeripheralServer$=t,e.default=t}(SC);var MC={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.createDing$=void 0;var a=uE,i="biz.ding.create";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"6.0.0"},n[a.ENV_ENUM.android]={vs:"6.0.0"},n)),e.createDing$=t,e.default=t}(MC);var xC={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.createDingForPC$=void 0;var a=uE,i="biz.ding.post";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.pc]={vs:"6.0.0"},n)),e.createDingForPC$=t,e.default=t}(xC);var OC={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.createGroupChat$=void 0;var a=uE,i="biz.contact.createGroup";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"6.0.0"},n[a.ENV_ENUM.android]={vs:"6.0.0"},n)),e.createGroupChat$=t,e.default=t}(OC);var DC={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.createLiveClassRoom$=void 0;var a=uE,i="biz.live.startClassRoom";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"6.0.0"},n[a.ENV_ENUM.android]={vs:"6.0.0"},n)),e.createLiveClassRoom$=t,e.default=t}(DC);var TC={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.createPayOrder$=void 0;var a=uE,i="biz.enterprise.createPayOrder";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.ios]={vs:"8.0.0"},n[a.ENV_ENUM.android]={vs:"8.0.0"},n)),e.createPayOrder$=t,e.default=t}(TC);var jC={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.cropImage$=void 0;var a=uE,i="biz.util.cropImage";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"7.5.2"},n[a.ENV_ENUM.android]={vs:"7.5.2"},n)),e.cropImage$=t,e.default=t}(jC);var LC={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.customChooseUsers$=void 0;var a=uE,i="biz.customContact.multipleChoose",o=QE.genDefaultParamsDealFn({isShowCompanyName:!1,max:50});a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0",paramsDeal:o},n[a.ENV_ENUM.ios]={vs:"6.0.0",paramsDeal:o},n[a.ENV_ENUM.android]={vs:"6.0.0",paramsDeal:o},n)),e.customChooseUsers$=t,e.default=t}(LC);var VC={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.datePicker$=void 0;var a=uE,i="biz.util.datetimepicker";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"6.0.0"},n[a.ENV_ENUM.android]={vs:"6.0.0"},n[a.ENV_ENUM.pc]={vs:"6.0.0"},n)),e.datePicker$=t,e.default=t}(VC);var BC={};!function(e){function t(e){return a.ddSdk.invokeAPI(o,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.dateRangePicker$=void 0;var a=uE,i=QE,o="biz.calendar.chooseInterval";a.ddSdk.setAPI(o,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"6.0.0",paramsDeal:i.addDefaultCorpIdParamsDeal},n[a.ENV_ENUM.android]={vs:"6.0.0",paramsDeal:i.addDefaultCorpIdParamsDeal},n)),e.dateRangePicker$=t,e.default=t}(BC);var UC={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.decrypt$=void 0;var a=uE,i="biz.util.decrypt";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"6.0.0"},n[a.ENV_ENUM.android]={vs:"6.0.0"},n)),e.decrypt$=t,e.default=t}(UC);var zC={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.disablePullDownRefresh$=void 0;var a=uE,i="ui.pullToRefresh.disable";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.android]={vs:"6.0.0"},n)),e.disablePullDownRefresh$=t,e.default=t}(zC);var RC={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.disableWebViewBounce$=void 0;var a=uE,i="ui.webViewBounce.disable";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.ios]={vs:"6.0.0"},n[a.ENV_ENUM.android]={vs:"6.0.0"},n[a.ENV_ENUM.harmony]={vs:"7.0.0"},n)),e.disableWebViewBounce$=t,e.default=t}(RC);var FC={};!function(e){function t(e){return i.ddSdk.invokeAPI("runtime.h5nuvabridge.exec",a({_action:o},e))}var n,a=wo&&wo.__assign||function(){return a=Object.assign||function(e){for(var t,n=1,a=arguments.length;n<a;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},a.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.disconnectBLEDevice$=void 0;var i=uE,o="disconnectBLEDevice";i.ddSdk.setAPI("runtime.h5nuvabridge.exec",((n={})[i.ENV_ENUM.harmony]={vs:"7.0.0"},n[i.ENV_ENUM.ios]={vs:"4.6.38"},n[i.ENV_ENUM.android]={vs:"4.6.38"},n)),e.disconnectBLEDevice$=t,e.default=t}(FC);var $C={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.downloadAudio$=void 0;var a=uE,i="device.audio.download";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"6.0.0"},n[a.ENV_ENUM.android]={vs:"6.0.0"},n)),e.downloadAudio$=t,e.default=t}($C);var qC={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.downloadFile$=void 0;var a=uE,i="biz.file.downloadFile";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"7.0.10"},n[a.ENV_ENUM.android]={vs:"7.0.10"},n)),e.downloadFile$=t,e.default=t}(qC);var WC={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.editExternalUser$=void 0;var a=uE,i="biz.contact.externalEditForm";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"6.0.0"},n[a.ENV_ENUM.android]={vs:"6.0.0"},n)),e.editExternalUser$=t,e.default=t}(WC);var HC={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.editPicture$=void 0;var a=uE,i="biz.util.editPicture";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"7.1.21"},n[a.ENV_ENUM.android]={vs:"7.1.21"},n)),e.editPicture$=t,e.default=t}(HC);var GC={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.enablePullDownRefresh$=void 0;var a=uE,i="ui.pullToRefresh.enable";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"6.0.0"},n[a.ENV_ENUM.android]={vs:"6.0.0"},n)),e.enablePullDownRefresh$=t,e.default=t}(GC);var YC={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.enableWebViewBounce$=void 0;var a=uE,i="ui.webViewBounce.enable";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"6.0.0"},n[a.ENV_ENUM.android]={vs:"6.0.0"},n)),e.enableWebViewBounce$=t,e.default=t}(YC);var XC={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.encrypt$=void 0;var a=uE,i="biz.util.encrypt";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"6.0.0"},n[a.ENV_ENUM.android]={vs:"6.0.0"},n)),e.encrypt$=t,e.default=t}(XC);var JC={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.exclusiveLiveCheck$=void 0;var a=uE,i="biz.ATMBle.exclusiveLiveCheck";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.android]={vs:"6.5.40"},n)),e.exclusiveLiveCheck$=t,e.default=t}(JC);var KC={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.generateImageFromCode$=void 0;var a=uE,i="biz.util.generateImageFromCode";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"7.0.0"},n[a.ENV_ENUM.android]={vs:"7.0.0"},n)),e.generateImageFromCode$=t,e.default=t}(KC);var QC={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.getAccountType$=void 0;var a=uE,i="biz.i18n.getAccountType";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.ios]={vs:"7.8.5"},n[a.ENV_ENUM.android]={vs:"7.8.5"},n[a.ENV_ENUM.pc]={vs:"7.8.5"},n)),e.getAccountType$=t,e.default=t}(QC);var ZC={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.getAdvertisingStatus$=void 0;var a=uE,i="biz.realm.getAdvertisingStatus";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"7.5.0"},n[a.ENV_ENUM.android]={vs:"7.5.0"},n)),e.getAdvertisingStatus$=t,e.default=t}(ZC);var eS={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.getAuthCode$=void 0;var a=uE,i="runtime.permission.requestAuthCode";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"6.0.0"},n[a.ENV_ENUM.android]={vs:"6.0.0"},n[a.ENV_ENUM.pc]={vs:"6.0.0"},n)),e.getAuthCode$=t,e.default=t}(eS);var tS={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.getAuthCodeV2$=void 0;var a=uE,i="runtime.permission.requestAuthCodeV2";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"7.0.45"},n[a.ENV_ENUM.android]={vs:"7.0.45"},n[a.ENV_ENUM.pc]={vs:"7.0.50"},n)),e.getAuthCodeV2$=t,e.default=t}(tS);var nS={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.getAuthInfo$=void 0;var a=uE,i="runtime.permission.getAuthInfo";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"7.5.26"},n[a.ENV_ENUM.android]={vs:"7.5.26"},n[a.ENV_ENUM.pc]={vs:"7.5.26"},n)),e.getAuthInfo$=t,e.default=t}(nS);var aS={};!function(e){function t(e){return i.ddSdk.invokeAPI("runtime.h5nuvabridge.exec",a({_action:o},e))}var n,a=wo&&wo.__assign||function(){return a=Object.assign||function(e){for(var t,n=1,a=arguments.length;n<a;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},a.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.getBLEDeviceCharacteristics$=void 0;var i=uE,o="getBLEDeviceCharacteristics";i.ddSdk.setAPI("runtime.h5nuvabridge.exec",((n={})[i.ENV_ENUM.harmony]={vs:"7.0.0"},n[i.ENV_ENUM.ios]={vs:"4.6.38"},n[i.ENV_ENUM.android]={vs:"4.6.38"},n)),e.getBLEDeviceCharacteristics$=t,e.default=t}(aS);var iS={};!function(e){function t(e){return i.ddSdk.invokeAPI("runtime.h5nuvabridge.exec",a({_action:o},e))}var n,a=wo&&wo.__assign||function(){return a=Object.assign||function(e){for(var t,n=1,a=arguments.length;n<a;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},a.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.getBLEDeviceServices$=void 0;var i=uE,o="getBLEDeviceServices";i.ddSdk.setAPI("runtime.h5nuvabridge.exec",((n={})[i.ENV_ENUM.harmony]={vs:"7.0.0"},n[i.ENV_ENUM.ios]={vs:"4.6.38"},n[i.ENV_ENUM.android]={vs:"4.6.38"},n)),e.getBLEDeviceServices$=t,e.default=t}(iS);var oS={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.getBatteryInfo$=void 0;var a=uE,i="device.base.getBatteryInfo";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"6.5.60"},n[a.ENV_ENUM.android]={vs:"6.5.60"},n)),e.getBatteryInfo$=t,e.default=t}(oS);var rS={};!function(e){function t(e){return i.ddSdk.invokeAPI("runtime.h5nuvabridge.exec",a({_action:o},e))}var n,a=wo&&wo.__assign||function(){return a=Object.assign||function(e){for(var t,n=1,a=arguments.length;n<a;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},a.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.getBeacons$=void 0;var i=uE,o="getBeacons";i.ddSdk.setAPI("runtime.h5nuvabridge.exec",((n={})[i.ENV_ENUM.harmony]={vs:"7.0.0"},n[i.ENV_ENUM.ios]={vs:"4.6.38"},n[i.ENV_ENUM.android]={vs:"4.6.38"},n)),e.getBeacons$=t,e.default=t}(rS);var sS={};!function(e){function t(e){return i.ddSdk.invokeAPI("runtime.h5nuvabridge.exec",a({_action:o},e))}var n,a=wo&&wo.__assign||function(){return a=Object.assign||function(e){for(var t,n=1,a=arguments.length;n<a;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},a.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.getBluetoothAdapterState$=void 0;var i=uE,o="getBluetoothAdapterState";i.ddSdk.setAPI("runtime.h5nuvabridge.exec",((n={})[i.ENV_ENUM.harmony]={vs:"7.0.0"},n[i.ENV_ENUM.ios]={vs:"4.6.38"},n[i.ENV_ENUM.android]={vs:"4.6.38"},n)),e.getBluetoothAdapterState$=t,e.default=t}(sS);var lS={};!function(e){function t(e){return i.ddSdk.invokeAPI("runtime.h5nuvabridge.exec",a({_action:o},e))}var n,a=wo&&wo.__assign||function(){return a=Object.assign||function(e){for(var t,n=1,a=arguments.length;n<a;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},a.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.getBluetoothDevices$=void 0;var i=uE,o="getBluetoothDevices";i.ddSdk.setAPI("runtime.h5nuvabridge.exec",((n={})[i.ENV_ENUM.harmony]={vs:"7.0.0"},n[i.ENV_ENUM.ios]={vs:"4.6.38"},n[i.ENV_ENUM.android]={vs:"4.6.38"},n)),e.getBluetoothDevices$=t,e.default=t}(lS);var cS={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.getCloudCallInfo$=void 0;var a=uE,i="biz.conference.getCloudCallInfo";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"6.0.0"},n[a.ENV_ENUM.android]={vs:"6.0.0"},n[a.ENV_ENUM.pc]={vs:"6.0.0"},n)),e.getCloudCallInfo$=t,e.default=t}(cS);var uS={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.getCloudCallList$=void 0;var a=uE,i="biz.conference.getCloudCallList";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"6.0.0"},n[a.ENV_ENUM.android]={vs:"6.0.0"},n[a.ENV_ENUM.pc]={vs:"6.0.9"},n)),e.getCloudCallList$=t,e.default=t}(uS);var dS={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.getCurrentCorpId$=void 0;var a=uE,i="biz.minutes.getCurrentCorpId";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.ios]={vs:"7.8.0"},n[a.ENV_ENUM.android]={vs:"7.8.0"},n)),e.getCurrentCorpId$=t,e.default=t}(dS);var hS={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.getDeviceId$=void 0;var a=uE,i="device.base.getDeviceId";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.android]={vs:"7.5.30"},n)),e.getDeviceId$=t,e.default=t}(hS);var pS={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.getDeviceUUID$=void 0;var a=uE,i="device.base.getUUID";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.android]={vs:"6.0.0"},n)),e.getDeviceUUID$=t,e.default=t}(pS);var fS={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.getImageInfo$=void 0;var a=uE,i="biz.util.getImageInfo";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"7.5.2"},n[a.ENV_ENUM.android]={vs:"7.5.2"},n)),e.getImageInfo$=t,e.default=t}(fS);var vS={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.getLocatingStatus$=void 0;var a=uE,i="device.geolocation.status";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.android]={vs:"6.0.0"},n)),e.getLocatingStatus$=t,e.default=t}(vS);var mS={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.getLocation$=void 0;var a=uE,i="device.geolocation.get";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"6.0.0"},n[a.ENV_ENUM.android]={vs:"6.0.0"},n)),e.getLocation$=t,e.default=t}(mS);var gS={};!function(e){function t(e){return i.ddSdk.invokeAPI(o,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.getNetworkType$=void 0;var a=QE,i=uE,o="device.connection.getNetworkType";i.ddSdk.setAPI(o,((n={})[i.ENV_ENUM.ios]={vs:"6.0.0",resultDeal:a.getNetWorkTypeResultDeal},n[i.ENV_ENUM.android]={vs:"6.0.0",resultDeal:a.getNetWorkTypeResultDeal},n[i.ENV_ENUM.pc]={vs:"6.5.60",resultDeal:function(e){return"none"!==e.result&&"unknown"!==e.result?{netWorkAvailable:!0}:{netWorkAvailable:!1}}},n[i.ENV_ENUM.harmony]={vs:"7.0.0",resultDeal:a.getNetWorkTypeResultDeal},n)),e.getNetworkType$=t,e.default=t}(gS);var bS={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.getOperateAuthCode$=void 0;var a=uE,i="runtime.permission.requestOperateAuthCode";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"6.0.0"},n[a.ENV_ENUM.android]={vs:"6.0.0"},n[a.ENV_ENUM.pc]={vs:"6.0.0",paramsDeal:function(e){return Object.assign(e,{url:location.href.split("#")[0]})}},n)),e.getOperateAuthCode$=t,e.default=t}(bS);var yS={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.getScreenBrightness$=void 0;var a=uE,i="device.screen.getScreenBrightness";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"7.0.0"},n[a.ENV_ENUM.android]={vs:"7.0.0"},n)),e.getScreenBrightness$=t,e.default=t}(yS);var wS={};!function(e){function t(e){return i.ddSdk.invokeAPI(o,e)}var n,a=wo&&wo.__assign||function(){return a=Object.assign||function(e){for(var t,n=1,a=arguments.length;n<a;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},a.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.getStorage$=void 0;var i=uE,o="util.domainStorage.getItem",r=function(e){var t={name:e.key};return a(a({},t),e)};i.ddSdk.setAPI(o,((n={})[i.ENV_ENUM.ios]={vs:"6.0.0",paramsDeal:r},n[i.ENV_ENUM.android]={vs:"6.0.0",paramsDeal:r},n[i.ENV_ENUM.pc]={vs:"6.0.0",paramsDeal:r},n[i.ENV_ENUM.harmony]={vs:"7.0.0",paramsDeal:r},n)),e.getStorage$=t,e.default=t}(wS);var _S={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.getSystemInfo$=void 0;var a=uE,i="device.base.getPhoneInfo";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"6.0.0"},n[a.ENV_ENUM.android]={vs:"6.0.0"},n)),e.getSystemInfo$=t,e.default=t}(_S);var ES={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.getSystemSettings$=void 0;var a=uE,i="device.base.openSystemSetting";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"6.3.15"},n[a.ENV_ENUM.android]={vs:"4.6.36"},n)),e.getSystemSettings$=t,e.default=t}(ES);var PS={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.getThirdAppConfCustomData$=void 0;var a=uE,i="biz.conference.getThirdAppConfCustomData";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"7.5.35"},n[a.ENV_ENUM.android]={vs:"7.5.35"},n[a.ENV_ENUM.pc]={vs:"7.6.0"},n)),e.getThirdAppConfCustomData$=t,e.default=t}(PS);var NS={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.getThirdAppUserCustomData$=void 0;var a=uE,i="biz.conference.getThirdAppUserCustomData";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"7.5.35"},n[a.ENV_ENUM.android]={vs:"7.5.35"},n[a.ENV_ENUM.pc]={vs:"7.6.0"},n)),e.getThirdAppUserCustomData$=t,e.default=t}(NS);var IS={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.getTranslateStatus$=void 0;var a=uE,i="biz.i18n.getTranslateStatus";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"7.5.35"},n[a.ENV_ENUM.android]={vs:"7.5.35"},n[a.ENV_ENUM.pc]={vs:"7.5.35"},n)),e.getTranslateStatus$=t,e.default=t}(IS);var AS={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.getUserExclusiveInfo$=void 0;var a=uE,i="biz.realm.getUserExclusiveInfo";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"6.0.15"},n[a.ENV_ENUM.android]={vs:"6.0.15"},n[a.ENV_ENUM.pc]={vs:"6.0.17"},n)),e.getUserExclusiveInfo$=t,e.default=t}(AS);var kS={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.getWifiHotspotStatus$=void 0;var a=uE,i="device.base.getInterface";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"6.0.0"},n[a.ENV_ENUM.android]={vs:"6.0.0"},n)),e.getWifiHotspotStatus$=t,e.default=t}(kS);var CS={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.getWifiStatus$=void 0;var a=uE,i="device.base.getWifiStatus";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"6.0.0"},n[a.ENV_ENUM.android]={vs:"6.0.0"},n)),e.getWifiStatus$=t,e.default=t}(CS);var SS={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.goBackPage$=void 0;var a=uE,i="biz.navigation.goBack";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"6.0.0"},n[a.ENV_ENUM.android]={vs:"6.0.0"},n[a.ENV_ENUM.pc]={vs:"6.0.0"},n)),e.goBackPage$=t,e.default=t}(SS);var MS={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.hideLoading$=void 0;var a=uE,i="device.notification.hidePreloader";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"7.0.10"},n[a.ENV_ENUM.android]={vs:"7.0.10"},n[a.ENV_ENUM.pc]={vs:"7.0.10"},n)),e.hideLoading$=t,e.default=t}(MS);var xS={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.hideToast$=void 0;var a=uE,i="device.notification.hideToast";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"7.0.10"},n[a.ENV_ENUM.android]={vs:"7.0.10"},n[a.ENV_ENUM.pc]={vs:"7.0.10"},n)),e.hideToast$=t,e.default=t}(xS);var OS={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.isInTabWindow$=void 0;var a=uE,i="biz.tabwindow.isTab";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.pc]={vs:"6.5.10"},n)),e.isInTabWindow$=t,e.default=t}(OS);var DS={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.isLocalFileExist$=void 0;var a=uE,i="biz.util.isLocalFileExist";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.pc]={vs:"6.0.0"},n)),e.isLocalFileExist$=t,e.default=t}(DS);var TS={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.isScreenReaderEnabled$=void 0;var a=uE,i="device.screen.isScreenReaderEnabled";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"6.5.60"},n[a.ENV_ENUM.android]={vs:"6.5.60"},n)),e.isScreenReaderEnabled$=t,e.default=t}(TS);var jS={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.locateInMap$=void 0;var a=uE,i="biz.map.locate";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"6.0.0"},n[a.ENV_ENUM.android]={vs:"6.0.0"},n)),e.locateInMap$=t,e.default=t}(jS);var LS={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.makeCloudCall$=void 0;var a=uE,i="biz.conference.createCloudCall";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"6.0.0"},n[a.ENV_ENUM.android]={vs:"6.0.0"},n[a.ENV_ENUM.pc]={vs:"6.0.9"},n)),e.makeCloudCall$=t,e.default=t}(LS);var VS={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.makeVideoConfCall$=void 0;var a=uE,i="biz.conference.videoConfCall";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"6.0.0"},n[a.ENV_ENUM.android]={vs:"6.0.0"},n[a.ENV_ENUM.pc]={vs:"6.0.0"},n)),e.makeVideoConfCall$=t,e.default=t}(VS);var BS={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.minutesCreateFromVideo$=void 0;var a=uE,i="biz.minutes.createFromVideo";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.ios]={vs:"7.6.40"},n[a.ENV_ENUM.android]={vs:"7.6.40"},n)),e.minutesCreateFromVideo$=t,e.default=t}(BS);var US={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.minutesStart$=void 0;var a=uE,i="biz.minutes.startMinutes";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.ios]={vs:"7.6.40"},n[a.ENV_ENUM.android]={vs:"7.6.40"},n)),e.minutesStart$=t,e.default=t}(US);var zS={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.minutesUploadVideo$=void 0;var a=uE,i="biz.minutes.uploadVideo";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.ios]={vs:"7.6.40"},n[a.ENV_ENUM.android]={vs:"7.6.40"},n)),e.minutesUploadVideo$=t,e.default=t}(zS);var RS={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.minutesViewDetail$=void 0;var a=uE,i="biz.minutes.viewDetail";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.ios]={vs:"7.6.40"},n[a.ENV_ENUM.android]={vs:"7.6.40"},n)),e.minutesViewDetail$=t,e.default=t}(RS);var FS={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.multiSelect$=void 0;var a=uE,i="biz.util.multiSelect";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"6.0.0"},n[a.ENV_ENUM.android]={vs:"6.0.0"},n)),e.multiSelect$=t,e.default=t}(FS);var $S={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.navigateBackPage$=void 0;var a=uE,i="biz.navigation.navigateBackPage";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"6.5.45"},n[a.ENV_ENUM.android]={vs:"6.5.45"},n[a.ENV_ENUM.pc]={vs:"6.0.0"},n)),e.navigateBackPage$=t,e.default=t}($S);var qS={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.navigateToPage$=void 0;var a=uE,i="biz.navigation.navigateToPage";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"6.5.45"},n[a.ENV_ENUM.android]={vs:"6.5.45"},n[a.ENV_ENUM.pc]={vs:"7.0.0"},n)),e.navigateToPage$=t,e.default=t}(qS);var WS={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.nfcReadCardNumber$=void 0;var a=uE,i="device.nfc.nfcReadCardNumber";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.android]={vs:"7.0.60"},n)),e.nfcReadCardNumber$=t,e.default=t}(WS);var HS={};!function(e){function t(e){return i.ddSdk.invokeAPI("runtime.h5nuvabridge.exec",a({_action:o},e))}var n,a=wo&&wo.__assign||function(){return a=Object.assign||function(e){for(var t,n=1,a=arguments.length;n<a;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},a.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.notifyBLECharacteristicValueChange$=void 0;var i=uE,o="notifyBLECharacteristicValueChange";i.ddSdk.setAPI("runtime.h5nuvabridge.exec",((n={})[i.ENV_ENUM.harmony]={vs:"7.0.0"},n[i.ENV_ENUM.ios]={vs:"4.6.38"},n[i.ENV_ENUM.android]={vs:"4.6.38"},n)),e.notifyBLECharacteristicValueChange$=t,e.default=t}(HS);var GS={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.notifyTranslateEvent$=void 0;var a=uE,i="biz.i18n.notifyTranslateEvent";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"7.5.35"},n[a.ENV_ENUM.android]={vs:"7.5.35"},n[a.ENV_ENUM.pc]={vs:"7.5.35"},n)),e.notifyTranslateEvent$=t,e.default=t}(GS);var YS={};!function(e){function t(e){a.ddSdk.getExportSdk().off("bizEvent."+i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.offBLECharacteristicValueChange$=void 0;var a=uE,i="BLECharacteristicValueChange";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"7.5.10"},n[a.ENV_ENUM.android]={vs:"7.5.10"},n)),e.offBLECharacteristicValueChange$=t,e.default=t}(YS);var XS={};!function(e){function t(e){a.ddSdk.getExportSdk().off("bizEvent."+i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.offBLEConnectionStateChanged$=void 0;var a=uE,i="BLEConnectionStateChanged";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"7.5.10"},n[a.ENV_ENUM.android]={vs:"7.5.10"},n)),e.offBLEConnectionStateChanged$=t,e.default=t}(XS);var JS={};!function(e){function t(e){a.ddSdk.getExportSdk().off("bizEvent."+i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.offBluetoothAdapterStateChange$=void 0;var a=uE,i="bluetoothAdapterStateChange";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"7.5.10"},n[a.ENV_ENUM.android]={vs:"7.5.10"},n)),e.offBluetoothAdapterStateChange$=t,e.default=t}(JS);var KS={};!function(e){function t(e){a.ddSdk.getExportSdk().off("bizEvent."+i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.offBluetoothDeviceFound$=void 0;var a=uE,i="bluetoothDeviceFound";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"7.5.10"},n[a.ENV_ENUM.android]={vs:"7.5.10"},n)),e.offBluetoothDeviceFound$=t,e.default=t}(KS);var QS={};!function(e){function t(e){a.ddSdk.getExportSdk().on("bizEvent."+i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.onBLECharacteristicValueChange$=void 0;var a=uE,i="BLECharacteristicValueChange";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"7.5.10"},n[a.ENV_ENUM.android]={vs:"7.5.10"},n)),e.onBLECharacteristicValueChange$=t,e.default=t}(QS);var ZS={};!function(e){function t(e){a.ddSdk.getExportSdk().on("bizEvent."+i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.onBLEConnectionStateChanged$=void 0;var a=uE,i="BLEConnectionStateChanged";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"7.5.10"},n[a.ENV_ENUM.android]={vs:"7.5.10"},n)),e.onBLEConnectionStateChanged$=t,e.default=t}(ZS);var eM={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.onBLEPeripheralCharacteristicReadRequest$=void 0;var a=uE,i="biz.realm.onBLEPeripheralCharacteristicReadRequest";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"7.6.10"},n[a.ENV_ENUM.android]={vs:"7.6.10"},n)),e.onBLEPeripheralCharacteristicReadRequest$=t,e.default=t}(eM);var tM={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.onBLEPeripheralCharacteristicWriteRequest$=void 0;var a=uE,i="biz.realm.onBLEPeripheralCharacteristicWriteRequest";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"7.6.10"},n[a.ENV_ENUM.android]={vs:"7.6.10"},n)),e.onBLEPeripheralCharacteristicWriteRequest$=t,e.default=t}(tM);var nM={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.onBLEPeripheralConnectionStateChanged$=void 0;var a=uE,i="biz.realm.onBLEPeripheralConnectionStateChanged";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.android]={vs:"7.6.10"},n)),e.onBLEPeripheralConnectionStateChanged$=t,e.default=t}(nM);var aM={};!function(e){function t(e){a.ddSdk.getExportSdk().on("bizEvent."+i,function(t){"function"==typeof e.success?e.success(t):"function"==typeof e.onSuccess&&e.onSuccess(t)})}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.onBeaconServiceChange$=void 0;var a=uE,i="beaconServiceChange";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"4.6.38"},n[a.ENV_ENUM.android]={vs:"4.6.38"},n)),e.onBeaconServiceChange$=t,e.default=t}(aM);var iM={};!function(e){function t(e){a.ddSdk.getExportSdk().on("bizEvent."+i,function(t){"function"==typeof e.success?e.success(t):"function"==typeof e.onSuccess&&e.onSuccess(t)})}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.onBeaconUpdate$=void 0;var a=uE,i="beaconUpdate";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"4.6.38"},n[a.ENV_ENUM.android]={vs:"4.6.38"},n)),e.onBeaconUpdate$=t,e.default=t}(iM);var oM={};!function(e){function t(e){a.ddSdk.getExportSdk().on("bizEvent."+i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.onBluetoothAdapterStateChange$=void 0;var a=uE,i="bluetoothAdapterStateChange";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"7.5.10"},n[a.ENV_ENUM.android]={vs:"7.5.10"},n)),e.onBluetoothAdapterStateChange$=t,e.default=t}(oM);var rM={};!function(e){function t(e){a.ddSdk.getExportSdk().on("bizEvent."+i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.onBluetoothDeviceFound$=void 0;var a=uE,i="bluetoothDeviceFound";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"7.5.10"},n[a.ENV_ENUM.android]={vs:"7.5.10"},n)),e.onBluetoothDeviceFound$=t,e.default=t}(rM);var sM={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.onPlayAudioEnd$=void 0;var a=uE,i="device.audio.onPlayEnd";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"6.0.0"},n[a.ENV_ENUM.android]={vs:"6.0.0"},n)),e.onPlayAudioEnd$=t,e.default=t}(sM);var lM={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.onRecordEnd$=void 0;var a=uE,i="device.audio.onRecordEnd";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"6.0.0"},n[a.ENV_ENUM.android]={vs:"6.0.0"},n)),e.onRecordEnd$=t,e.default=t}(lM);var cM={};!function(e){function t(e){return i.ddSdk.invokeAPI("runtime.h5nuvabridge.exec",a({_action:o},e))}var n,a=wo&&wo.__assign||function(){return a=Object.assign||function(e){for(var t,n=1,a=arguments.length;n<a;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},a.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.openBluetoothAdapter$=void 0;var i=uE,o="openBluetoothAdapter";i.ddSdk.setAPI("runtime.h5nuvabridge.exec",((n={})[i.ENV_ENUM.harmony]={vs:"7.0.0"},n[i.ENV_ENUM.ios]={vs:"4.6.38"},n[i.ENV_ENUM.android]={vs:"4.6.38"},n)),e.openBluetoothAdapter$=t,e.default=t}(cM);var uM={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.openChatByChatId$=void 0;var a=uE,i="biz.chat.toConversation";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"6.0.0"},n[a.ENV_ENUM.android]={vs:"6.0.0"},n)),e.openChatByChatId$=t,e.default=t}(uM);var dM={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.openChatByConversationId$=void 0;var a=uE,i="biz.chat.toConversationByOpenConversationId";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"6.0.0"},n[a.ENV_ENUM.android]={vs:"6.0.0"},n[a.ENV_ENUM.pc]={vs:"6.0.0"},n)),e.openChatByConversationId$=t,e.default=t}(dM);var hM={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.openChatByUserId$=void 0;var a=uE,i="biz.chat.openSingleChat";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"6.0.0"},n[a.ENV_ENUM.android]={vs:"6.0.0"},n)),e.openChatByUserId$=t,e.default=t}(hM);var pM={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.openDocument$=void 0;var a=uE,i="biz.util.openDocument";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"7.0.10"},n[a.ENV_ENUM.android]={vs:"7.0.10"},n[a.ENV_ENUM.pc]={vs:"7.0.10"},n)),e.openDocument$=t,e.default=t}(pM);var fM={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.openLink$=void 0;var a=uE,i="biz.util.openLink";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"6.0.0"},n[a.ENV_ENUM.android]={vs:"6.0.0"},n[a.ENV_ENUM.pc]={vs:"6.0.0"},n)),e.openLink$=t,e.default=t}(fM);var vM={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.openLocalFile$=void 0;var a=uE,i="biz.util.openLocalFile";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.pc]={vs:"6.0.0"},n)),e.openLocalFile$=t,e.default=t}(vM);var mM={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.openLocation$=void 0;var a=uE,i="biz.map.view";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"6.0.0"},n[a.ENV_ENUM.android]={vs:"6.0.0"},n)),e.openLocation$=t,e.default=t}(mM);var gM={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.openMicroApp$=void 0;var a=uE,i="biz.microApp.openApp";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"6.0.0"},n[a.ENV_ENUM.android]={vs:"6.0.0"},n)),e.openMicroApp$=t,e.default=t}(gM);var bM={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.openPageInMicroApp$=void 0;var a=uE,i="biz.util.open";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"6.0.0"},n[a.ENV_ENUM.android]={vs:"6.0.0"},n[a.ENV_ENUM.pc]={vs:"6.0.0"},n)),e.openPageInMicroApp$=t,e.default=t}(bM);var yM={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.openPageInModalForPC$=void 0;var a=uE,i="biz.util.openModal";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.pc]={vs:"6.0.0"},n)),e.openPageInModalForPC$=t,e.default=t}(yM);var wM={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.openPageInSlidePanelForPC$=void 0;var a=uE,i="biz.util.openSlidePanel";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.pc]={vs:"6.0.0"},n)),e.openPageInSlidePanelForPC$=t,e.default=t}(wM);var _M={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.openPageInWorkBenchForPC$=void 0;var a=uE,i="biz.util.invokeWorkbench";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.pc]={vs:"6.0.8"},n)),e.openPageInWorkBenchForPC$=t,e.default=t}(_M);var EM={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.pauseAudio$=void 0;var a=uE,i="device.audio.pause";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"6.0.0"},n[a.ENV_ENUM.android]={vs:"6.0.0"},n)),e.pauseAudio$=t,e.default=t}(EM);var PM={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.playAudio$=void 0;var a=uE,i="device.audio.play";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"6.0.0"},n[a.ENV_ENUM.android]={vs:"6.0.0"},n)),e.playAudio$=t,e.default=t}(PM);var NM={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.popGesture$=void 0;var a=uE,i="biz.navigation.popGesture";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.ios]={vs:"7.0.0"},n)),e.popGesture$=t,e.default=t}(NM);var IM={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.previewFileInDingTalk$=void 0;var a=uE,i="biz.cspace.preview";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"6.0.0"},n[a.ENV_ENUM.android]={vs:"6.0.0"},n)),e.previewFileInDingTalk$=t,e.default=t}(IM);var AM={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.previewImage$=void 0;var a=uE,i="biz.util.previewImage";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"6.0.0"},n[a.ENV_ENUM.android]={vs:"6.0.0"},n[a.ENV_ENUM.pc]={vs:"6.0.0",paramsDeal:function(e){return{urls:e.urls,current:"number"==typeof(null==e?void 0:e.current)?e.urls[e.current]:e.current}}},n)),e.previewImage$=t,e.default=t}(AM);var kM={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.previewImagesInDingTalkBatch$=void 0;var a=uE,i="biz.cspace.previewDentryImages";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"6.3.30"},n[a.ENV_ENUM.android]={vs:"6.3.30"},n)),e.previewImagesInDingTalkBatch$=t,e.default=t}(kM);var CM={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.previewMedia$=void 0;var a=uE,i="biz.util.previewMedia";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"7.1.21"},n[a.ENV_ENUM.android]={vs:"7.1.21"},n)),e.previewMedia$=t,e.default=t}(CM);var SM={};!function(e){function t(e){return i.ddSdk.invokeAPI(o,{message:e.message,title:e.title,defaultText:e.placeholder,buttonLabels:[e.cancelButtonText,e.okButtonText],success:e.success,fail:e.fail,complete:e.complete})}var n,a=wo&&wo.__assign||function(){return a=Object.assign||function(e){for(var t,n=1,a=arguments.length;n<a;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},a.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.prompt$=void 0;var i=uE,o="device.notification.prompt",r=function(e){var t={title:e.title||"",message:e.message,defaultText:e.placeholder,buttonLabels:[e.cancelButtonText||"取消",e.okButtonText||"确定"]};return a(a({},t),e)};i.ddSdk.setAPI(o,((n={})[i.ENV_ENUM.harmony]={vs:"7.0.0"},n[i.ENV_ENUM.ios]={vs:"6.0.0",paramsDeal:r},n[i.ENV_ENUM.android]={vs:"6.0.0",paramsDeal:r},n)),e.prompt$=t,e.default=t}(SM);var MM={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.quickCallList$=void 0;var a=uE,i="biz.telephone.quickCallList";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.android]={vs:"6.0.0"},n[a.ENV_ENUM.pc]={vs:"6.0.0"},n)),e.quickCallList$=t,e.default=t}(MM);var xM={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.quitPage$=void 0;var a=uE,i="biz.navigation.quit";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.pc]={vs:"6.0.0"},n)),e.quitPage$=t,e.default=t}(xM);var OM={};!function(e){function t(e){return i.ddSdk.invokeAPI("runtime.h5nuvabridge.exec",a({_action:o},e))}var n,a=wo&&wo.__assign||function(){return a=Object.assign||function(e){for(var t,n=1,a=arguments.length;n<a;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},a.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.readBLECharacteristicValue$=void 0;var i=uE,o="readBLECharacteristicValue";i.ddSdk.setAPI("runtime.h5nuvabridge.exec",((n={})[i.ENV_ENUM.harmony]={vs:"7.0.0"},n[i.ENV_ENUM.ios]={vs:"4.6.38"},n[i.ENV_ENUM.android]={vs:"4.6.38"},n)),e.readBLECharacteristicValue$=t,e.default=t}(OM);var DM={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.readNFC$=void 0;var a=uE,i="device.nfc.nfcRead";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.android]={vs:"6.0.0"},n)),e.readNFC$=t,e.default=t}(DM);var TM={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,{name:e.key})}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.removeStorage$=void 0;var a=uE,i="util.domainStorage.removeItem";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"6.0.0"},n[a.ENV_ENUM.android]={vs:"6.0.0"},n[a.ENV_ENUM.pc]={vs:"6.0.0"},n)),e.removeStorage$=t,e.default=t}(TM);var jM={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.replacePage$=void 0;var a=uE,i="biz.navigation.replace";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"6.0.0"},n[a.ENV_ENUM.android]={vs:"6.0.0"},n[a.ENV_ENUM.pc]={vs:"6.0.0"},n)),e.replacePage$=t,e.default=t}(jM);var LM={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.requestAuthCode$=void 0;var a=uE,i="runtime.permission.requestAuthCodeV2";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"7.0.45"},n[a.ENV_ENUM.android]={vs:"7.0.45"},n[a.ENV_ENUM.pc]={vs:"7.0.50"},n)),e.requestAuthCode$=t,e.default=t}(LM);var VM={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.requestMoneySubmmitOrder$=void 0;var a=uE,i="biz.requestMoney.startSubmittingOrder";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"7.1.5"},n[a.ENV_ENUM.android]={vs:"7.1.5"},n)),e.requestMoneySubmmitOrder$=t,e.default=t}(VM);var BM={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.resetScreenView$=void 0;var a=uE,i="device.screen.resetView";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"6.0.0"},n[a.ENV_ENUM.android]={vs:"6.0.0"},n)),e.resetScreenView$=t,e.default=t}(BM);var UM={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.resumeAudio$=void 0;var a=uE,i="device.audio.resume";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"6.0.0"},n[a.ENV_ENUM.android]={vs:"6.0.0"},n)),e.resumeAudio$=t,e.default=t}(UM);var zM={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.rotateScreenView$=void 0;var a=uE,i="device.screen.rotateView";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"6.0.0"},n[a.ENV_ENUM.android]={vs:"6.0.0"},n)),e.rotateScreenView$=t,e.default=t}(zM);var RM={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.rsa$=void 0;var a=uE,i="biz.data.rsa";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"7.0.0"},n[a.ENV_ENUM.android]={vs:"7.0.0"},n)),e.rsa$=t,e.default=t}(RM);var FM={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.saveFileToDingTalk$=void 0;var a=uE,i="biz.cspace.saveFile";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"6.0.0"},n[a.ENV_ENUM.android]={vs:"6.0.0"},n)),e.saveFileToDingTalk$=t,e.default=t}(FM);var $M={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.saveImageToPhotosAlbum$=void 0;var a=uE,i="biz.util.saveImageToPhotosAlbum";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"7.0.0"},n[a.ENV_ENUM.android]={vs:"7.0.0"},n)),e.saveImageToPhotosAlbum$=t,e.default=t}($M);var qM={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.saveVideoToPhotosAlbum$=void 0;var a=uE,i="biz.util.saveVideoToPhotosAlbum";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"7.1.20"},n[a.ENV_ENUM.android]={vs:"7.1.20"},n)),e.saveVideoToPhotosAlbum$=t,e.default=t}(qM);var WM={};!function(e){function t(e){return i.ddSdk.invokeAPI(o,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.scan$=void 0;var a=QE,i=uE,o="biz.util.scan";i.ddSdk.setAPI(o,((n={})[i.ENV_ENUM.harmony]={vs:"7.0.0"},n[i.ENV_ENUM.ios]={vs:"6.0.0",paramsDeal:a.scanParamsDeal},n[i.ENV_ENUM.android]={vs:"6.0.0",paramsDeal:a.scanParamsDeal},n)),e.scan$=t,e.default=t}(WM);var HM={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.scanCard$=void 0;var a=uE,i="biz.util.scanCard";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.android]={vs:"6.0.0"},n)),e.scanCard$=t,e.default=t}(HM);var GM={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.searchMap$=void 0;var a=uE,i="biz.map.search";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"6.0.0"},n[a.ENV_ENUM.android]={vs:"6.0.0"},n)),e.searchMap$=t,e.default=t}(GM);var YM={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.setClipboard$=void 0;var a=uE,i="biz.clipboardData.setData";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"6.0.0"},n[a.ENV_ENUM.android]={vs:"6.0.0"},n[a.ENV_ENUM.pc]={vs:"6.5.60"},n)),e.setClipboard$=t,e.default=t}(YM);var XM={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.setGestures$=void 0;var a=uE,i="biz.navigation.gestures";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.ios]={vs:"7.5.15"},n)),e.setGestures$=t,e.default=t}(XM);var JM={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.setKeepScreenOn$=void 0;var a=uE,i="biz.util.setScreenKeepOn";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"5.1.26"},n[a.ENV_ENUM.android]={vs:"5.1.26"},n)),e.setKeepScreenOn$=t,e.default=t}(JM);var KM={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.setNavigationIcon$=void 0;var a=uE,i="biz.navigation.setIcon",o=QE.genDefaultParamsDealFn({watch:!0,showIcon:!0,iconIndex:1});a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0",paramsDeal:o},n[a.ENV_ENUM.ios]={vs:"6.0.0",paramsDeal:o},n[a.ENV_ENUM.android]={vs:"6.0.0",paramsDeal:o},n[a.ENV_ENUM.pc]={vs:"6.0.0"},n)),e.setNavigationIcon$=t,e.default=t}(KM);var QM={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.setNavigationLeft$=void 0;var a=uE,i="biz.navigation.setLeft",o=QE.genDefaultParamsDealFn({watch:!0,show:!0,control:!1,showIcon:!0,text:""});a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"6.0.0",paramsDeal:o},n[a.ENV_ENUM.android]={vs:"6.0.0",paramsDeal:o},n[a.ENV_ENUM.pc]={vs:"6.0.0"},n)),e.setNavigationLeft$=t,e.default=t}(QM);var ZM={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.setNavigationTitle$=void 0;var a=uE,i="biz.navigation.setTitle";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.ios]={vs:"6.0.0"},n[a.ENV_ENUM.android]={vs:"6.0.0"},n[a.ENV_ENUM.pc]={vs:"6.0.0"},n[a.ENV_ENUM.harmony]={vs:"7.0.0"},n)),e.setNavigationTitle$=t,e.default=t}(ZM);var ex={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.setScreenBrightness$=void 0;var a=uE,i="device.screen.setScreenBrightness";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"6.0.0"},n[a.ENV_ENUM.android]={vs:"6.0.0"},n)),e.setScreenBrightness$=t,e.default=t}(ex);var tx={};!function(e){function t(e){return i.ddSdk.invokeAPI(o,e)}var n,a=wo&&wo.__assign||function(){return a=Object.assign||function(e){for(var t,n=1,a=arguments.length;n<a;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},a.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.setStorage$=void 0;var i=uE,o="util.domainStorage.setItem",r=function(e){var t={name:e.key,value:e.data};return a(a({},t),e)};i.ddSdk.setAPI(o,((n={})[i.ENV_ENUM.ios]={vs:"6.0.0",paramsDeal:r},n[i.ENV_ENUM.android]={vs:"6.0.0",paramsDeal:r},n[i.ENV_ENUM.pc]={vs:"6.0.0",paramsDeal:r},n[i.ENV_ENUM.harmony]={vs:"7.0.0",paramsDeal:r},n)),e.setStorage$=t,e.default=t}(tx);var nx={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.share$=void 0;var a=uE,i="biz.util.share";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"6.0.0"},n[a.ENV_ENUM.android]={vs:"6.0.0"},n)),e.share$=t,e.default=t}(nx);var ax={};!function(e){function t(e){return i.ddSdk.invokeAPI(o,{title:e.title,cancelButton:e.cancelButtonText,otherButtons:e.items,success:e.success,fail:e.fail,complete:e.complete})}var n,a=wo&&wo.__assign||function(){return a=Object.assign||function(e){for(var t,n=1,a=arguments.length;n<a;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},a.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.showActionSheet$=void 0;var i=uE,o="device.notification.actionSheet",r=function(e){var t={title:e.title,cancelButton:e.cancelButtonText,otherButtons:e.items};return a(a({},t),e)};i.ddSdk.setAPI(o,((n={})[i.ENV_ENUM.harmony]={vs:"7.0.0",paramsDeal:r,resultDeal:function(e){return a(a({},e),{index:e.buttonIndex})}},n[i.ENV_ENUM.ios]={vs:"7.0.10",paramsDeal:r,resultDeal:function(e){return a(a({},e),{index:e.buttonIndex})}},n[i.ENV_ENUM.android]={vs:"7.0.10",paramsDeal:r,resultDeal:function(e){return a(a({},e),{index:e.buttonIndex})}},n[i.ENV_ENUM.pc]={vs:"7.0.10",paramsDeal:r,resultDeal:function(e){return a(a({},e),{index:e.buttonIndex})}},n)),e.showActionSheet$=t,e.default=t}(ax);var ix={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.showAuthGuide$=void 0;var a=uE,i="biz.util.showAuthGuide";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"7.0.10"},n[a.ENV_ENUM.android]={vs:"7.0.10"},n)),e.showAuthGuide$=t,e.default=t}(ix);var ox={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.showCallMenu$=void 0;var a=uE,i="biz.telephone.showCallMenu";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"6.0.0"},n[a.ENV_ENUM.android]={vs:"6.0.0"},n)),e.showCallMenu$=t,e.default=t}(ox);var rx={};!function(e){function t(e){return i.ddSdk.invokeAPI(o,{text:e.content,showIcon:!0,success:e.success,fail:e.fail,complete:e.complete})}var n,a=wo&&wo.__assign||function(){return a=Object.assign||function(e){for(var t,n=1,a=arguments.length;n<a;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},a.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.showLoading$=void 0;var i=uE,o="device.notification.showPreloader",r=function(e){return a({text:e.content,showIcon:!0},e)};i.ddSdk.setAPI(o,((n={})[i.ENV_ENUM.harmony]={vs:"7.0.0",paramsDeal:r},n[i.ENV_ENUM.ios]={vs:"7.0.10",paramsDeal:r},n[i.ENV_ENUM.android]={vs:"7.0.10",paramsDeal:r},n[i.ENV_ENUM.pc]={vs:"7.0.10"},n)),e.showLoading$=t,e.default=t}(rx);var sx={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.showModal$=void 0;var a=uE,i="device.notification.extendModal";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"6.0.0"},n[a.ENV_ENUM.android]={vs:"6.0.0"},n)),e.showModal$=t,e.default=t}(sx);var lx={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.showSharePanel$=void 0;var a=uE,i="biz.util.showSharePanel";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"7.0.10"},n[a.ENV_ENUM.android]={vs:"7.0.10"},n[a.ENV_ENUM.pc]={vs:"7.0.10"},n)),e.showSharePanel$=t,e.default=t}(lx);var cx={};!function(e){function t(e){return i.ddSdk.invokeAPI(o,{icon:e.type,duration:e.duration?e.duration/1e3:3,text:e.content,success:e.success,fail:e.fail,complete:e.complete})}var n,a=wo&&wo.__assign||function(){return a=Object.assign||function(e){for(var t,n=1,a=arguments.length;n<a;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},a.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.showToast$=void 0;var i=uE,o="device.notification.toast",r=function(e){return a({icon:e.type,duration:e.duration?e.duration/1e3:3,text:e.content||"toast",delay:0},e)};i.ddSdk.setAPI(o,((n={})[i.ENV_ENUM.harmony]={vs:"7.0.0"},n[i.ENV_ENUM.ios]={vs:"7.0.10",paramsDeal:r},n[i.ENV_ENUM.android]={vs:"7.0.10",paramsDeal:r},n[i.ENV_ENUM.pc]={vs:"7.0.10",paramsDeal:function(e){return e.icon&&!e.type&&("success"===e.icon?e.type="success":"error"===e.icon&&(e.type="error")),e}},n)),e.showToast$=t,e.default=t}(cx);var ux={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.singleSelect$=void 0;var a=uE,i="biz.util.chosen";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"6.0.0"},n[a.ENV_ENUM.android]={vs:"6.0.0"},n)),e.singleSelect$=t,e.default=t}(ux);var dx={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.startAdvertising$=void 0;var a=uE,i="biz.realm.startAdvertising";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"7.5.0"},n[a.ENV_ENUM.android]={vs:"7.5.0"},n)),e.startAdvertising$=t,e.default=t}(dx);var hx={};!function(e){function t(e){return i.ddSdk.invokeAPI("runtime.h5nuvabridge.exec",a({_action:o},e))}var n,a=wo&&wo.__assign||function(){return a=Object.assign||function(e){for(var t,n=1,a=arguments.length;n<a;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},a.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.startBeaconDiscovery$=void 0;var i=uE,o="startBeaconDiscovery";i.ddSdk.setAPI("runtime.h5nuvabridge.exec",((n={})[i.ENV_ENUM.harmony]={vs:"7.0.0"},n[i.ENV_ENUM.ios]={vs:"4.6.38"},n[i.ENV_ENUM.android]={vs:"4.6.38"},n)),e.startBeaconDiscovery$=t,e.default=t}(hx);var px={};!function(e){function t(e){return i.ddSdk.invokeAPI("runtime.h5nuvabridge.exec",a({_action:o},e))}var n,a=wo&&wo.__assign||function(){return a=Object.assign||function(e){for(var t,n=1,a=arguments.length;n<a;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},a.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.startBluetoothDevicesDiscovery$=void 0;var i=uE,o="startBluetoothDevicesDiscovery";i.ddSdk.setAPI("runtime.h5nuvabridge.exec",((n={})[i.ENV_ENUM.harmony]={vs:"7.0.0"},n[i.ENV_ENUM.ios]={vs:"4.6.38"},n[i.ENV_ENUM.android]={vs:"4.6.38"},n)),e.startBluetoothDevicesDiscovery$=t,e.default=t}(px);var fx={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.startLocating$=void 0;var a=uE,i="device.geolocation.start";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"6.0.0"},n[a.ENV_ENUM.android]={vs:"6.0.0"},n)),e.startLocating$=t,e.default=t}(fx);var vx={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.startRecord$=void 0;var a=uE,i="device.audio.startRecord";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"6.0.0"},n[a.ENV_ENUM.android]={vs:"6.0.0"},n[a.ENV_ENUM.pc]={vs:"7.0.30"},n)),e.startRecord$=t,e.default=t}(vx);var mx={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.stopAdvertising$=void 0;var a=uE,i="biz.realm.stopAdvertising";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"7.5.0"},n[a.ENV_ENUM.android]={vs:"7.5.0"},n)),e.stopAdvertising$=t,e.default=t}(mx);var gx={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.stopAudio$=void 0;var a=uE,i="device.audio.stop";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"6.0.0"},n[a.ENV_ENUM.android]={vs:"6.0.0"},n)),e.stopAudio$=t,e.default=t}(gx);var bx={};!function(e){function t(e){return i.ddSdk.invokeAPI("runtime.h5nuvabridge.exec",a({_action:o},e))}var n,a=wo&&wo.__assign||function(){return a=Object.assign||function(e){for(var t,n=1,a=arguments.length;n<a;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},a.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.stopBeaconDiscovery$=void 0;var i=uE,o="stopBeaconDiscovery";i.ddSdk.setAPI("runtime.h5nuvabridge.exec",((n={})[i.ENV_ENUM.harmony]={vs:"7.0.0"},n[i.ENV_ENUM.ios]={vs:"4.6.38"},n[i.ENV_ENUM.android]={vs:"4.6.38"},n)),e.stopBeaconDiscovery$=t,e.default=t}(bx);var yx={};!function(e){function t(e){return i.ddSdk.invokeAPI("runtime.h5nuvabridge.exec",a({_action:o},e))}var n,a=wo&&wo.__assign||function(){return a=Object.assign||function(e){for(var t,n=1,a=arguments.length;n<a;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},a.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.stopBluetoothDevicesDiscovery$=void 0;var i=uE,o="stopBluetoothDevicesDiscovery";i.ddSdk.setAPI("runtime.h5nuvabridge.exec",((n={})[i.ENV_ENUM.harmony]={vs:"7.0.0"},n[i.ENV_ENUM.ios]={vs:"4.6.38"},n[i.ENV_ENUM.android]={vs:"4.6.38"},n)),e.stopBluetoothDevicesDiscovery$=t,e.default=t}(yx);var wx={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.stopLocating$=void 0;var a=uE,i="device.geolocation.stop";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.android]={vs:"6.0.0"},n)),e.stopLocating$=t,e.default=t}(wx);var _x={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.stopPullDownRefresh$=void 0;var a=uE,i="ui.pullToRefresh.stop";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"6.0.0"},n[a.ENV_ENUM.android]={vs:"6.0.0"},n)),e.stopPullDownRefresh$=t,e.default=t}(_x);var Ex={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.stopRecord$=void 0;var a=uE,i="device.audio.stopRecord";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"6.0.0"},n[a.ENV_ENUM.android]={vs:"6.0.0"},n[a.ENV_ENUM.pc]={vs:"7.0.30"},n)),e.stopRecord$=t,e.default=t}(Ex);var Px={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.subscribe$=void 0;var a=uE,i="biz.notify.subscribe";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"7.5.35"},n[a.ENV_ENUM.android]={vs:"7.5.35"},n[a.ENV_ENUM.pc]={vs:"7.5.35"},n)),e.subscribe$=t,e.default=t}(Px);var Nx={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.timePicker$=void 0;var a=uE,i="biz.util.timepicker";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"6.0.0"},n[a.ENV_ENUM.android]={vs:"6.0.0"},n)),e.timePicker$=t,e.default=t}(Nx);var Ix={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.translate$=void 0;var a=uE,i="biz.i18n.translate";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"7.5.35"},n[a.ENV_ENUM.android]={vs:"7.5.35"},n[a.ENV_ENUM.pc]={vs:"7.5.35"},n)),e.translate$=t,e.default=t}(Ix);var Ax={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.translateVoice$=void 0;var a=uE,i="device.audio.translateVoice";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"6.0.0"},n[a.ENV_ENUM.android]={vs:"6.0.0"},n)),e.translateVoice$=t,e.default=t}(Ax);var kx={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.uploadAttachmentToDingTalk$=void 0;var a=uE,i="biz.util.uploadAttachment";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"6.0.0"},n[a.ENV_ENUM.android]={vs:"6.0.0"},n)),e.uploadAttachmentToDingTalk$=t,e.default=t}(kx);var Cx={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.uploadFile$=void 0;var a=uE,i="biz.util.uploadFile";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"7.0.10"},n[a.ENV_ENUM.android]={vs:"7.0.10"},n[a.ENV_ENUM.pc]={vs:"7.0.10"},n)),e.uploadFile$=t,e.default=t}(Cx);var Sx={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.vibrate$=void 0;var a=uE,i="device.notification.vibrate",o=QE.genDefaultParamsDealFn({duration:300});a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0",paramsDeal:o},n[a.ENV_ENUM.ios]={vs:"6.0.0",paramsDeal:o},n[a.ENV_ENUM.android]={vs:"6.0.0",paramsDeal:o},n)),e.vibrate$=t,e.default=t}(Sx);var Mx={};!function(e){function t(e){return a.ddSdk.invokeAPI(o,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.watchShake$=void 0;var a=uE,i=QE,o="device.accelerometer.watchShake";a.ddSdk.setAPI(o,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"6.0.0",paramsDeal:function(e){return i.forceChangeParamsDealFn({sensitivity:3.2})(i.addWatchParamsDeal(e))}},n[a.ENV_ENUM.android]={vs:"6.0.0",paramsDeal:i.addWatchParamsDeal},n)),e.watchShake$=t,e.default=t}(Mx);var xx={};!function(e){function t(e){return i.ddSdk.invokeAPI("runtime.h5nuvabridge.exec",a({_action:o},e))}var n,a=wo&&wo.__assign||function(){return a=Object.assign||function(e){for(var t,n=1,a=arguments.length;n<a;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},a.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.writeBLECharacteristicValue$=void 0;var i=uE,o="writeBLECharacteristicValue";i.ddSdk.setAPI("runtime.h5nuvabridge.exec",((n={})[i.ENV_ENUM.harmony]={vs:"7.0.0"},n[i.ENV_ENUM.ios]={vs:"4.6.38"},n[i.ENV_ENUM.android]={vs:"4.6.38"},n)),e.writeBLECharacteristicValue$=t,e.default=t}(xx);var Ox={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.writeBLEPeripheralCharacteristicValue$=void 0;var a=uE,i="biz.realm.writeBLEPeripheralCharacteristicValue";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"7.6.10"},n[a.ENV_ENUM.android]={vs:"7.6.10"},n)),e.writeBLEPeripheralCharacteristicValue$=t,e.default=t}(Ox);var Dx={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.writeNFC$=void 0;var a=uE,i="device.nfc.nfcWrite";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.android]={vs:"6.0.0"},n)),e.writeNFC$=t,e.default=t}(Dx);var Tx={};!function(e){function t(e){return i.ddSdk.invokeAPI(o,e)}var n,a=wo&&wo.__assign||function(){return a=Object.assign||function(e){for(var t,n=1,a=arguments.length;n<a;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},a.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.getItem$=void 0;var i=uE,o="util.domainStorage.getItem",r=function(e){var t={name:e.key};return a(a({},t),e)};i.ddSdk.setAPI(o,((n={})[i.ENV_ENUM.ios]={vs:"2.9.0",paramsDeal:r},n[i.ENV_ENUM.android]={vs:"2.9.0",paramsDeal:r},n[i.ENV_ENUM.pc]={vs:"4.6.29",paramsDeal:r},n[i.ENV_ENUM.harmony]={vs:"7.0.0",paramsDeal:r},n)),e.getItem$=t,e.default=t}(Tx);var jx={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.getStorageInfo$=void 0;var a=uE,i="util.domainStorage.getStorageInfo";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"6.5.30"},n[a.ENV_ENUM.android]={vs:"6.5.30"},n)),e.getStorageInfo$=t,e.default=t}(jx);var Lx={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.removeItem$=void 0;var a=uE,i="util.domainStorage.removeItem";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"2.9.0"},n[a.ENV_ENUM.android]={vs:"2.9.0"},n[a.ENV_ENUM.pc]={vs:"4.6.29"},n)),e.removeItem$=t,e.default=t}(Lx);var Vx={};!function(e){function t(e){return i.ddSdk.invokeAPI(o,e)}var n,a=wo&&wo.__assign||function(){return a=Object.assign||function(e){for(var t,n=1,a=arguments.length;n<a;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},a.apply(this,arguments)};Object.defineProperty(e,"__esModule",{value:!0}),e.setItem$=void 0;var i=uE,o="util.domainStorage.setItem",r=function(e){var t={name:e.key,value:e.data};return a(a({},t),e)};i.ddSdk.setAPI(o,((n={})[i.ENV_ENUM.ios]={vs:"2.9.0",paramsDeal:r},n[i.ENV_ENUM.android]={vs:"2.9.0",paramsDeal:r},n[i.ENV_ENUM.pc]={vs:"4.6.9",paramsDeal:r},n[i.ENV_ENUM.harmony]={vs:"7.0.0",paramsDeal:r},n)),e.setItem$=t,e.default=t}(Vx);var Bx={};!function(e){function t(e){return a.ddSdk.invokeAPI(i,e)}var n;Object.defineProperty(e,"__esModule",{value:!0}),e.getData$=void 0;var a=uE,i="util.openTemporary.getData";a.ddSdk.setAPI(i,((n={})[a.ENV_ENUM.harmony]={vs:"7.0.0"},n[a.ENV_ENUM.ios]={vs:"6.3.20"},n[a.ENV_ENUM.android]={vs:"6.3.20"},n[a.ENV_ENUM.pc]={vs:"6.3.30"},n)),e.getData$=t,e.default=t}(Bx),function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.apiObj=void 0;var t=SP,n=MP,a=xP,i=OP,o=DP,r=TP,s=jP,l=LP,c=VP,u=BP,d=UP,h=zP,p=RP,f=FP,v=$P,m=qP,g=WP,b=HP,y=GP,w=YP,_=XP,E=JP,P=KP,N=QP,I=ZP,A=eN,k=tN,C=nN,S=aN,M=iN,x=oN,O=rN,D=sN,T=lN,j=cN,L=uN,V=dN,B=hN,U=pN,z=fN,R=vN,F=mN,$=gN,q=bN,W=yN,H=wN,G=_N,Y=EN,X=PN,J=NN,K=IN,Q=AN,Z=kN,ee=CN,te=SN,ne=MN,ae=xN,ie=ON,oe=DN,re=TN,se=jN,le=LN,ce=VN,ue=BN,de=UN,he=zN,pe=RN,fe=FN,ve=$N,me=qN,ge=WN,be=HN,ye=GN,we=YN,_e=XN,Ee=JN,Pe=KN,Ne=QN,Ie=ZN,Ae=eI,ke=tI,Ce=nI,Se=aI,Me=iI,xe=oI,Oe=rI,De=sI,Te=lI,je=cI,Le=uI,Ve=dI,Be=hI,Ue=pI,ze=fI,Re=vI,Fe=mI,$e=gI,qe=bI,We=yI,He=wI,Ge=_I,Ye=EI,Xe=PI,Je=NI,Ke=II,Qe=AI,Ze=kI,et=CI,tt=SI,nt=MI,at=xI,it=OI,ot=DI,rt=TI,st=jI,lt=LI,ct=VI,ut=BI,dt=UI,ht=zI,pt=RI,ft=FI,vt=$I,mt=qI,gt=WI,bt=HI,yt=GI,wt=YI,_t=XI,Et=JI,Pt=KI,Nt=QI,It=ZI,At=eA,kt=tA,Ct=nA,St=aA,Mt=iA,xt=oA,Ot=rA,Dt=sA,Tt=lA,jt=cA,Lt=uA,Vt=dA,Bt=hA,Ut=pA,zt=fA,Rt=vA,Ft=mA,$t=gA,qt=bA,Wt=yA,Ht=wA,Gt=_A,Yt=EA,Xt=PA,Jt=NA,Kt=IA,Qt=AA,Zt=kA,en=CA,tn=SA,nn=MA,an=xA,on=OA,rn=DA,sn=TA,ln=jA,cn=LA,un=VA,dn=BA,hn=UA,pn=zA,fn=RA,vn=FA,mn=$A,gn=qA,bn=WA,yn=HA,wn=GA,_n=YA,En=XA,Pn=JA,Nn=KA,In=QA,An=ZA,kn=ek,Cn=tk,Sn=nk,Mn=ak,xn=ik,On=ok,Dn=rk,Tn=sk,jn=lk,Ln=ck,Vn=uk,Bn=dk,Un=hk,zn=pk,Rn=fk,Fn=vk,$n=mk,qn=gk,Wn=bk,Hn=yk,Gn=wk,Yn=_k,Xn=Ek,Jn=Pk,Kn=Nk,Qn=Ik,Zn=Ak,ea=kk,ta=Ck,na=Sk,aa=Mk,ia=xk,oa=Ok,ra=Dk,sa=Tk,la=jk,ca=Lk,ua=Vk,da=Bk,ha=Uk,pa=zk,fa=Rk,va=Fk,ma=$k,ga=qk,ba=Wk,ya=Hk,wa=Gk,_a=Yk,Ea=Xk,Pa=Jk,Na=Kk,Ia=Qk,Aa=Zk,ka=Zk;Object.defineProperty(e,"ExternalChannelPublish",{enumerable:!0,get:function(){return ka.ExternalChannelPublish$}});var Ca=eC,Sa=eC;Object.defineProperty(e,"addPhoneContact",{enumerable:!0,get:function(){return Sa.addPhoneContact$}});var Ma=tC,xa=tC;Object.defineProperty(e,"alert",{enumerable:!0,get:function(){return xa.alert$}});var Oa=nC,Da=nC;Object.defineProperty(e,"callUsers",{enumerable:!0,get:function(){return Da.callUsers$}});var Ta=aC,ja=aC;Object.defineProperty(e,"checkAuth",{enumerable:!0,get:function(){return ja.checkAuth$}});var La=iC,Va=iC;Object.defineProperty(e,"checkBizCall",{enumerable:!0,get:function(){return Va.checkBizCall$}});var Ba=oC,Ua=oC;Object.defineProperty(e,"chooseChat",{enumerable:!0,get:function(){return Ua.chooseChat$}});var za=rC,Ra=rC;Object.defineProperty(e,"chooseConversation",{enumerable:!0,get:function(){return Ra.chooseConversation$}});var Fa=sC,$a=sC;Object.defineProperty(e,"chooseDateRangeInCalendar",{enumerable:!0,get:function(){return $a.chooseDateRangeInCalendar$}});var qa=lC,Wa=lC;Object.defineProperty(e,"chooseDateTime",{enumerable:!0,get:function(){return Wa.chooseDateTime$}});var Ha=cC,Ga=cC;Object.defineProperty(e,"chooseDepartments",{enumerable:!0,get:function(){return Ga.chooseDepartments$}});var Ya=uC,Xa=uC;Object.defineProperty(e,"chooseDingTalkDir",{enumerable:!0,get:function(){return Xa.chooseDingTalkDir$}});var Ja=dC,Ka=dC;Object.defineProperty(e,"chooseDistrict",{enumerable:!0,get:function(){return Ka.chooseDistrict$}});var Qa=hC,Za=hC;Object.defineProperty(e,"chooseExternalUsers",{enumerable:!0,get:function(){return Za.chooseExternalUsers$}});var ei=pC,ti=pC;Object.defineProperty(e,"chooseFile",{enumerable:!0,get:function(){return ti.chooseFile$}});var ni=fC,ai=fC;Object.defineProperty(e,"chooseHalfDayInCalendar",{enumerable:!0,get:function(){return ai.chooseHalfDayInCalendar$}});var ii=vC,oi=vC;Object.defineProperty(e,"chooseImage",{enumerable:!0,get:function(){return oi.chooseImage$}});var ri=mC,si=mC;Object.defineProperty(e,"chooseMedia",{enumerable:!0,get:function(){return si.chooseMedia$}});var li=gC,ci=gC;Object.defineProperty(e,"chooseOneDayInCalendar",{enumerable:!0,get:function(){return ci.chooseOneDayInCalendar$}});var ui=bC,di=bC;Object.defineProperty(e,"chooseOrg",{enumerable:!0,get:function(){return di.chooseOrg$}});var hi=yC,pi=yC;Object.defineProperty(e,"choosePhonebook",{enumerable:!0,get:function(){return pi.choosePhonebook$}});var fi=wC,vi=wC;Object.defineProperty(e,"chooseStaffForPC",{enumerable:!0,get:function(){return vi.chooseStaffForPC$}});var mi=_C,gi=_C;Object.defineProperty(e,"chooseUserFromList",{enumerable:!0,get:function(){return gi.chooseUserFromList$}});var bi=EC,yi=EC;Object.defineProperty(e,"clearShake",{enumerable:!0,get:function(){return yi.clearShake$}});var wi=PC,_i=PC;Object.defineProperty(e,"closeBluetoothAdapter",{enumerable:!0,get:function(){return _i.closeBluetoothAdapter$}});var Ei=NC,Pi=NC;Object.defineProperty(e,"closePage",{enumerable:!0,get:function(){return Pi.closePage$}});var Ni=IC,Ii=IC;Object.defineProperty(e,"complexChoose",{enumerable:!0,get:function(){return Ii.complexChoose$}});var Ai=AC,ki=AC;Object.defineProperty(e,"compressImage",{enumerable:!0,get:function(){return ki.compressImage$}});var Ci=kC,Si=kC;Object.defineProperty(e,"confirm",{enumerable:!0,get:function(){return Si.confirm$}});var Mi=CC,xi=CC;Object.defineProperty(e,"connectBLEDevice",{enumerable:!0,get:function(){return xi.connectBLEDevice$}});var Oi=SC,Di=SC;Object.defineProperty(e,"createBLEPeripheralServer",{enumerable:!0,get:function(){return Di.createBLEPeripheralServer$}});var Ti=MC,ji=MC;Object.defineProperty(e,"createDing",{enumerable:!0,get:function(){return ji.createDing$}});var Li=xC,Vi=xC;Object.defineProperty(e,"createDingForPC",{enumerable:!0,get:function(){return Vi.createDingForPC$}});var Bi=OC,Ui=OC;Object.defineProperty(e,"createGroupChat",{enumerable:!0,get:function(){return Ui.createGroupChat$}});var zi=DC,Ri=DC;Object.defineProperty(e,"createLiveClassRoom",{enumerable:!0,get:function(){return Ri.createLiveClassRoom$}});var Fi=TC,$i=TC;Object.defineProperty(e,"createPayOrder",{enumerable:!0,get:function(){return $i.createPayOrder$}});var qi=jC,Wi=jC;Object.defineProperty(e,"cropImage",{enumerable:!0,get:function(){return Wi.cropImage$}});var Hi=LC,Gi=LC;Object.defineProperty(e,"customChooseUsers",{enumerable:!0,get:function(){return Gi.customChooseUsers$}});var Yi=VC,Xi=VC;Object.defineProperty(e,"datePicker",{enumerable:!0,get:function(){return Xi.datePicker$}});var Ji=BC,Ki=BC;Object.defineProperty(e,"dateRangePicker",{enumerable:!0,get:function(){return Ki.dateRangePicker$}});var Qi=UC,Zi=UC;Object.defineProperty(e,"decrypt",{enumerable:!0,get:function(){return Zi.decrypt$}});var eo=zC,to=zC;Object.defineProperty(e,"disablePullDownRefresh",{enumerable:!0,get:function(){return to.disablePullDownRefresh$}});var no=RC,ao=RC;Object.defineProperty(e,"disableWebViewBounce",{enumerable:!0,get:function(){return ao.disableWebViewBounce$}});var io=FC,oo=FC;Object.defineProperty(e,"disconnectBLEDevice",{enumerable:!0,get:function(){return oo.disconnectBLEDevice$}});var ro=$C,so=$C;Object.defineProperty(e,"downloadAudio",{enumerable:!0,get:function(){return so.downloadAudio$}});var lo=qC,co=qC;Object.defineProperty(e,"downloadFile",{enumerable:!0,get:function(){return co.downloadFile$}});var uo=WC,ho=WC;Object.defineProperty(e,"editExternalUser",{enumerable:!0,get:function(){return ho.editExternalUser$}});var po=HC,fo=HC;Object.defineProperty(e,"editPicture",{enumerable:!0,get:function(){return fo.editPicture$}});var vo=GC,mo=GC;Object.defineProperty(e,"enablePullDownRefresh",{enumerable:!0,get:function(){return mo.enablePullDownRefresh$}});var go=YC,bo=YC;Object.defineProperty(e,"enableWebViewBounce",{enumerable:!0,get:function(){return bo.enableWebViewBounce$}});var yo=XC,wo=XC;Object.defineProperty(e,"encrypt",{enumerable:!0,get:function(){return wo.encrypt$}});var _o=JC,Eo=JC;Object.defineProperty(e,"exclusiveLiveCheck",{enumerable:!0,get:function(){return Eo.exclusiveLiveCheck$}});var Po=KC,No=KC;Object.defineProperty(e,"generateImageFromCode",{enumerable:!0,get:function(){return No.generateImageFromCode$}});var Io=QC,Ao=QC;Object.defineProperty(e,"getAccountType",{enumerable:!0,get:function(){return Ao.getAccountType$}});var ko=ZC,Co=ZC;Object.defineProperty(e,"getAdvertisingStatus",{enumerable:!0,get:function(){return Co.getAdvertisingStatus$}});var So=eS,Mo=eS;Object.defineProperty(e,"getAuthCode",{enumerable:!0,get:function(){return Mo.getAuthCode$}});var xo=tS,Oo=tS;Object.defineProperty(e,"getAuthCodeV2",{enumerable:!0,get:function(){return Oo.getAuthCodeV2$}});var Do=nS,To=nS;Object.defineProperty(e,"getAuthInfo",{enumerable:!0,get:function(){return To.getAuthInfo$}});var jo=aS,Lo=aS;Object.defineProperty(e,"getBLEDeviceCharacteristics",{enumerable:!0,get:function(){return Lo.getBLEDeviceCharacteristics$}});var Vo=iS,Bo=iS;Object.defineProperty(e,"getBLEDeviceServices",{enumerable:!0,get:function(){return Bo.getBLEDeviceServices$}});var Uo=oS,zo=oS;Object.defineProperty(e,"getBatteryInfo",{enumerable:!0,get:function(){return zo.getBatteryInfo$}});var Ro=rS,Fo=rS;Object.defineProperty(e,"getBeacons",{enumerable:!0,get:function(){return Fo.getBeacons$}});var $o=sS,qo=sS;Object.defineProperty(e,"getBluetoothAdapterState",{enumerable:!0,get:function(){return qo.getBluetoothAdapterState$}});var Wo=lS,Ho=lS;Object.defineProperty(e,"getBluetoothDevices",{enumerable:!0,get:function(){return Ho.getBluetoothDevices$}});var Go=cS,Yo=cS;Object.defineProperty(e,"getCloudCallInfo",{enumerable:!0,get:function(){return Yo.getCloudCallInfo$}});var Xo=uS,Jo=uS;Object.defineProperty(e,"getCloudCallList",{enumerable:!0,get:function(){return Jo.getCloudCallList$}});var Ko=dS,Qo=dS;Object.defineProperty(e,"getCurrentCorpId",{enumerable:!0,get:function(){return Qo.getCurrentCorpId$}});var Zo=hS,er=hS;Object.defineProperty(e,"getDeviceId",{enumerable:!0,get:function(){return er.getDeviceId$}});var tr=pS,nr=pS;Object.defineProperty(e,"getDeviceUUID",{enumerable:!0,get:function(){return nr.getDeviceUUID$}});var ar=fS,ir=fS;Object.defineProperty(e,"getImageInfo",{enumerable:!0,get:function(){return ir.getImageInfo$}});var or=vS,rr=vS;Object.defineProperty(e,"getLocatingStatus",{enumerable:!0,get:function(){return rr.getLocatingStatus$}});var sr=mS,lr=mS;Object.defineProperty(e,"getLocation",{enumerable:!0,get:function(){return lr.getLocation$}});var cr=gS,ur=gS;Object.defineProperty(e,"getNetworkType",{enumerable:!0,get:function(){return ur.getNetworkType$}});var dr=bS,hr=bS;Object.defineProperty(e,"getOperateAuthCode",{enumerable:!0,get:function(){return hr.getOperateAuthCode$}});var pr=yS,fr=yS;Object.defineProperty(e,"getScreenBrightness",{enumerable:!0,get:function(){return fr.getScreenBrightness$}});var vr=wS,mr=wS;Object.defineProperty(e,"getStorage",{enumerable:!0,get:function(){return mr.getStorage$}});var gr=_S,br=_S;Object.defineProperty(e,"getSystemInfo",{enumerable:!0,get:function(){return br.getSystemInfo$}});var yr=ES,wr=ES;Object.defineProperty(e,"getSystemSettings",{enumerable:!0,get:function(){return wr.getSystemSettings$}});var _r=PS,Er=PS;Object.defineProperty(e,"getThirdAppConfCustomData",{enumerable:!0,get:function(){return Er.getThirdAppConfCustomData$}});var Pr=NS,Nr=NS;Object.defineProperty(e,"getThirdAppUserCustomData",{enumerable:!0,get:function(){return Nr.getThirdAppUserCustomData$}});var Ir=IS,Ar=IS;Object.defineProperty(e,"getTranslateStatus",{enumerable:!0,get:function(){return Ar.getTranslateStatus$}});var kr=AS,Cr=AS;Object.defineProperty(e,"getUserExclusiveInfo",{enumerable:!0,get:function(){return Cr.getUserExclusiveInfo$}});var Sr=kS,Mr=kS;Object.defineProperty(e,"getWifiHotspotStatus",{enumerable:!0,get:function(){return Mr.getWifiHotspotStatus$}});var xr=CS,Or=CS;Object.defineProperty(e,"getWifiStatus",{enumerable:!0,get:function(){return Or.getWifiStatus$}});var Dr=SS,Tr=SS;Object.defineProperty(e,"goBackPage",{enumerable:!0,get:function(){return Tr.goBackPage$}});var jr=MS,Lr=MS;Object.defineProperty(e,"hideLoading",{enumerable:!0,get:function(){return Lr.hideLoading$}});var Vr=xS,Br=xS;Object.defineProperty(e,"hideToast",{enumerable:!0,get:function(){return Br.hideToast$}});var Ur=OS,zr=OS;Object.defineProperty(e,"isInTabWindow",{enumerable:!0,get:function(){return zr.isInTabWindow$}});var Rr=DS,Fr=DS;Object.defineProperty(e,"isLocalFileExist",{enumerable:!0,get:function(){return Fr.isLocalFileExist$}});var $r=TS,qr=TS;Object.defineProperty(e,"isScreenReaderEnabled",{enumerable:!0,get:function(){return qr.isScreenReaderEnabled$}});var Wr=jS,Hr=jS;Object.defineProperty(e,"locateInMap",{enumerable:!0,get:function(){return Hr.locateInMap$}});var Gr=LS,Yr=LS;Object.defineProperty(e,"makeCloudCall",{enumerable:!0,get:function(){return Yr.makeCloudCall$}});var Xr=VS,Jr=VS;Object.defineProperty(e,"makeVideoConfCall",{enumerable:!0,get:function(){return Jr.makeVideoConfCall$}});var Kr=BS,Qr=BS;Object.defineProperty(e,"minutesCreateFromVideo",{enumerable:!0,get:function(){return Qr.minutesCreateFromVideo$}});var Zr=US,es=US;Object.defineProperty(e,"minutesStart",{enumerable:!0,get:function(){return es.minutesStart$}});var ts=zS,ns=zS;Object.defineProperty(e,"minutesUploadVideo",{enumerable:!0,get:function(){return ns.minutesUploadVideo$}});var as=RS,is=RS;Object.defineProperty(e,"minutesViewDetail",{enumerable:!0,get:function(){return is.minutesViewDetail$}});var os=FS,rs=FS;Object.defineProperty(e,"multiSelect",{enumerable:!0,get:function(){return rs.multiSelect$}});var ss=$S,ls=$S;Object.defineProperty(e,"navigateBackPage",{enumerable:!0,get:function(){return ls.navigateBackPage$}});var cs=qS,us=qS;Object.defineProperty(e,"navigateToPage",{enumerable:!0,get:function(){return us.navigateToPage$}});var ds=WS,hs=WS;Object.defineProperty(e,"nfcReadCardNumber",{enumerable:!0,get:function(){return hs.nfcReadCardNumber$}});var ps=HS,fs=HS;Object.defineProperty(e,"notifyBLECharacteristicValueChange",{enumerable:!0,get:function(){return fs.notifyBLECharacteristicValueChange$}});var vs=GS,ms=GS;Object.defineProperty(e,"notifyTranslateEvent",{enumerable:!0,get:function(){return ms.notifyTranslateEvent$}});var gs=YS,bs=YS;Object.defineProperty(e,"offBLECharacteristicValueChange",{enumerable:!0,get:function(){return bs.offBLECharacteristicValueChange$}});var ys=XS,ws=XS;Object.defineProperty(e,"offBLEConnectionStateChanged",{enumerable:!0,get:function(){return ws.offBLEConnectionStateChanged$}});var _s=JS,Es=JS;Object.defineProperty(e,"offBluetoothAdapterStateChange",{enumerable:!0,get:function(){return Es.offBluetoothAdapterStateChange$}});var Ps=KS,Ns=KS;Object.defineProperty(e,"offBluetoothDeviceFound",{enumerable:!0,get:function(){return Ns.offBluetoothDeviceFound$}});var Is=QS,As=QS;Object.defineProperty(e,"onBLECharacteristicValueChange",{enumerable:!0,get:function(){return As.onBLECharacteristicValueChange$}});var ks=ZS,Cs=ZS;Object.defineProperty(e,"onBLEConnectionStateChanged",{enumerable:!0,get:function(){return Cs.onBLEConnectionStateChanged$}});var Ss=eM,Ms=eM;Object.defineProperty(e,"onBLEPeripheralCharacteristicReadRequest",{enumerable:!0,get:function(){return Ms.onBLEPeripheralCharacteristicReadRequest$}});var xs=tM,Os=tM;Object.defineProperty(e,"onBLEPeripheralCharacteristicWriteRequest",{enumerable:!0,get:function(){return Os.onBLEPeripheralCharacteristicWriteRequest$}});var Ds=nM,Ts=nM;Object.defineProperty(e,"onBLEPeripheralConnectionStateChanged",{enumerable:!0,get:function(){return Ts.onBLEPeripheralConnectionStateChanged$}});var js=aM,Ls=aM;Object.defineProperty(e,"onBeaconServiceChange",{enumerable:!0,get:function(){return Ls.onBeaconServiceChange$}});var Vs=iM,Bs=iM;Object.defineProperty(e,"onBeaconUpdate",{enumerable:!0,get:function(){return Bs.onBeaconUpdate$}});var Us=oM,zs=oM;Object.defineProperty(e,"onBluetoothAdapterStateChange",{enumerable:!0,get:function(){return zs.onBluetoothAdapterStateChange$}});var Rs=rM,Fs=rM;Object.defineProperty(e,"onBluetoothDeviceFound",{enumerable:!0,get:function(){return Fs.onBluetoothDeviceFound$}});var $s=sM,qs=sM;Object.defineProperty(e,"onPlayAudioEnd",{enumerable:!0,get:function(){return qs.onPlayAudioEnd$}});var Ws=lM,Hs=lM;Object.defineProperty(e,"onRecordEnd",{enumerable:!0,get:function(){return Hs.onRecordEnd$}});var Gs=cM,Ys=cM;Object.defineProperty(e,"openBluetoothAdapter",{enumerable:!0,get:function(){return Ys.openBluetoothAdapter$}});var Xs=uM,Js=uM;Object.defineProperty(e,"openChatByChatId",{enumerable:!0,get:function(){return Js.openChatByChatId$}});var Ks=dM,Qs=dM;Object.defineProperty(e,"openChatByConversationId",{enumerable:!0,get:function(){return Qs.openChatByConversationId$}});var Zs=hM,el=hM;Object.defineProperty(e,"openChatByUserId",{enumerable:!0,get:function(){return el.openChatByUserId$}});var tl=pM,nl=pM;Object.defineProperty(e,"openDocument",{enumerable:!0,get:function(){return nl.openDocument$}});var al=fM,il=fM;Object.defineProperty(e,"openLink",{enumerable:!0,get:function(){return il.openLink$}});var ol=vM,rl=vM;Object.defineProperty(e,"openLocalFile",{enumerable:!0,get:function(){return rl.openLocalFile$}});var sl=mM,ll=mM;Object.defineProperty(e,"openLocation",{enumerable:!0,get:function(){return ll.openLocation$}});var cl=gM,ul=gM;Object.defineProperty(e,"openMicroApp",{enumerable:!0,get:function(){return ul.openMicroApp$}});var dl=bM,hl=bM;Object.defineProperty(e,"openPageInMicroApp",{enumerable:!0,get:function(){return hl.openPageInMicroApp$}});var pl=yM,fl=yM;Object.defineProperty(e,"openPageInModalForPC",{enumerable:!0,get:function(){return fl.openPageInModalForPC$}});var vl=wM,ml=wM;Object.defineProperty(e,"openPageInSlidePanelForPC",{enumerable:!0,get:function(){return ml.openPageInSlidePanelForPC$}});var gl=_M,bl=_M;Object.defineProperty(e,"openPageInWorkBenchForPC",{enumerable:!0,get:function(){return bl.openPageInWorkBenchForPC$}});var yl=EM,wl=EM;Object.defineProperty(e,"pauseAudio",{enumerable:!0,get:function(){return wl.pauseAudio$}});var _l=PM,El=PM;Object.defineProperty(e,"playAudio",{enumerable:!0,get:function(){return El.playAudio$}});var Pl=NM,Nl=NM;Object.defineProperty(e,"popGesture",{enumerable:!0,get:function(){return Nl.popGesture$}});var Il=IM,Al=IM;Object.defineProperty(e,"previewFileInDingTalk",{enumerable:!0,get:function(){return Al.previewFileInDingTalk$}});var kl=AM,Cl=AM;Object.defineProperty(e,"previewImage",{enumerable:!0,get:function(){return Cl.previewImage$}});var Sl=kM,Ml=kM;Object.defineProperty(e,"previewImagesInDingTalkBatch",{enumerable:!0,get:function(){return Ml.previewImagesInDingTalkBatch$}});var xl=CM,Ol=CM;Object.defineProperty(e,"previewMedia",{enumerable:!0,get:function(){return Ol.previewMedia$}});var Dl=SM,Tl=SM;Object.defineProperty(e,"prompt",{enumerable:!0,get:function(){return Tl.prompt$}});var jl=MM,Ll=MM;Object.defineProperty(e,"quickCallList",{enumerable:!0,get:function(){return Ll.quickCallList$}});var Vl=xM,Bl=xM;Object.defineProperty(e,"quitPage",{enumerable:!0,get:function(){return Bl.quitPage$}});var Ul=OM,zl=OM;Object.defineProperty(e,"readBLECharacteristicValue",{enumerable:!0,get:function(){return zl.readBLECharacteristicValue$}});var Rl=DM,Fl=DM;Object.defineProperty(e,"readNFC",{enumerable:!0,get:function(){return Fl.readNFC$}});var $l=TM,ql=TM;Object.defineProperty(e,"removeStorage",{enumerable:!0,get:function(){return ql.removeStorage$}});var Wl=jM,Hl=jM;Object.defineProperty(e,"replacePage",{enumerable:!0,get:function(){return Hl.replacePage$}});var Gl=LM,Yl=LM;Object.defineProperty(e,"requestAuthCode",{enumerable:!0,get:function(){return Yl.requestAuthCode$}});var Xl=VM,Jl=VM;Object.defineProperty(e,"requestMoneySubmmitOrder",{enumerable:!0,get:function(){return Jl.requestMoneySubmmitOrder$}});var Kl=BM,Ql=BM;Object.defineProperty(e,"resetScreenView",{enumerable:!0,get:function(){return Ql.resetScreenView$}});var Zl=UM,ec=UM;Object.defineProperty(e,"resumeAudio",{enumerable:!0,get:function(){return ec.resumeAudio$}});var tc=zM,nc=zM;Object.defineProperty(e,"rotateScreenView",{enumerable:!0,get:function(){return nc.rotateScreenView$}});var ac=RM,ic=RM;Object.defineProperty(e,"rsa",{enumerable:!0,get:function(){return ic.rsa$}});var oc=FM,rc=FM;Object.defineProperty(e,"saveFileToDingTalk",{enumerable:!0,get:function(){return rc.saveFileToDingTalk$}});var sc=$M,lc=$M;Object.defineProperty(e,"saveImageToPhotosAlbum",{enumerable:!0,get:function(){return lc.saveImageToPhotosAlbum$}});var cc=qM,uc=qM;Object.defineProperty(e,"saveVideoToPhotosAlbum",{enumerable:!0,get:function(){return uc.saveVideoToPhotosAlbum$}});var dc=WM,hc=WM;Object.defineProperty(e,"scan",{enumerable:!0,get:function(){return hc.scan$}});var pc=HM,fc=HM;Object.defineProperty(e,"scanCard",{enumerable:!0,get:function(){return fc.scanCard$}});var vc=GM,mc=GM;Object.defineProperty(e,"searchMap",{enumerable:!0,get:function(){return mc.searchMap$}});var gc=YM,bc=YM;Object.defineProperty(e,"setClipboard",{enumerable:!0,get:function(){return bc.setClipboard$}});var yc=XM,wc=XM;Object.defineProperty(e,"setGestures",{enumerable:!0,get:function(){return wc.setGestures$}});var _c=JM,Ec=JM;Object.defineProperty(e,"setKeepScreenOn",{enumerable:!0,get:function(){return Ec.setKeepScreenOn$}});var Pc=KM,Nc=KM;Object.defineProperty(e,"setNavigationIcon",{enumerable:!0,get:function(){return Nc.setNavigationIcon$}});var Ic=QM,Ac=QM;Object.defineProperty(e,"setNavigationLeft",{enumerable:!0,get:function(){return Ac.setNavigationLeft$}});var kc=ZM,Cc=ZM;Object.defineProperty(e,"setNavigationTitle",{enumerable:!0,get:function(){return Cc.setNavigationTitle$}});var Sc=ex,Mc=ex;Object.defineProperty(e,"setScreenBrightness",{enumerable:!0,get:function(){return Mc.setScreenBrightness$}});var xc=tx,Oc=tx;Object.defineProperty(e,"setStorage",{enumerable:!0,get:function(){return Oc.setStorage$}});var Dc=nx,Tc=nx;Object.defineProperty(e,"share",{enumerable:!0,get:function(){return Tc.share$}});var jc=ax,Lc=ax;Object.defineProperty(e,"showActionSheet",{enumerable:!0,get:function(){return Lc.showActionSheet$}});var Vc=ix,Bc=ix;Object.defineProperty(e,"showAuthGuide",{enumerable:!0,get:function(){return Bc.showAuthGuide$}});var Uc=ox,zc=ox;Object.defineProperty(e,"showCallMenu",{enumerable:!0,get:function(){return zc.showCallMenu$}});var Rc=rx,Fc=rx;Object.defineProperty(e,"showLoading",{enumerable:!0,get:function(){return Fc.showLoading$}});var $c=sx,qc=sx;Object.defineProperty(e,"showModal",{enumerable:!0,get:function(){return qc.showModal$}});var Wc=lx,Hc=lx;Object.defineProperty(e,"showSharePanel",{enumerable:!0,get:function(){return Hc.showSharePanel$}});var Gc=cx,Yc=cx;Object.defineProperty(e,"showToast",{enumerable:!0,get:function(){return Yc.showToast$}});var Xc=ux,Jc=ux;Object.defineProperty(e,"singleSelect",{enumerable:!0,get:function(){return Jc.singleSelect$}});var Kc=dx,Qc=dx;Object.defineProperty(e,"startAdvertising",{enumerable:!0,get:function(){return Qc.startAdvertising$}});var Zc=hx,eu=hx;Object.defineProperty(e,"startBeaconDiscovery",{enumerable:!0,get:function(){return eu.startBeaconDiscovery$}});var tu=px,nu=px;Object.defineProperty(e,"startBluetoothDevicesDiscovery",{enumerable:!0,get:function(){return nu.startBluetoothDevicesDiscovery$}});var au=fx,iu=fx;Object.defineProperty(e,"startLocating",{enumerable:!0,get:function(){return iu.startLocating$}});var ou=vx,ru=vx;Object.defineProperty(e,"startRecord",{enumerable:!0,get:function(){return ru.startRecord$}});var su=mx,lu=mx;Object.defineProperty(e,"stopAdvertising",{enumerable:!0,get:function(){return lu.stopAdvertising$}});var cu=gx,uu=gx;Object.defineProperty(e,"stopAudio",{enumerable:!0,get:function(){return uu.stopAudio$}});var du=bx,hu=bx;Object.defineProperty(e,"stopBeaconDiscovery",{enumerable:!0,get:function(){return hu.stopBeaconDiscovery$}});var pu=yx,fu=yx;Object.defineProperty(e,"stopBluetoothDevicesDiscovery",{enumerable:!0,get:function(){return fu.stopBluetoothDevicesDiscovery$}});var vu=wx,mu=wx;Object.defineProperty(e,"stopLocating",{enumerable:!0,get:function(){return mu.stopLocating$}});var gu=_x,bu=_x;Object.defineProperty(e,"stopPullDownRefresh",{enumerable:!0,get:function(){return bu.stopPullDownRefresh$}});var yu=Ex,wu=Ex;Object.defineProperty(e,"stopRecord",{enumerable:!0,get:function(){return wu.stopRecord$}});var _u=Px,Eu=Px;Object.defineProperty(e,"subscribe",{enumerable:!0,get:function(){return Eu.subscribe$}});var Pu=Nx,Nu=Nx;Object.defineProperty(e,"timePicker",{enumerable:!0,get:function(){return Nu.timePicker$}});var Iu=Ix,Au=Ix;Object.defineProperty(e,"translate",{enumerable:!0,get:function(){return Au.translate$}});var ku=Ax,Cu=Ax;Object.defineProperty(e,"translateVoice",{enumerable:!0,get:function(){return Cu.translateVoice$}});var Su=kx,Mu=kx;Object.defineProperty(e,"uploadAttachmentToDingTalk",{enumerable:!0,get:function(){return Mu.uploadAttachmentToDingTalk$}});var xu=Cx,Ou=Cx;Object.defineProperty(e,"uploadFile",{enumerable:!0,get:function(){return Ou.uploadFile$}});var Du=Sx,Tu=Sx;Object.defineProperty(e,"vibrate",{enumerable:!0,get:function(){return Tu.vibrate$}});var ju=Mx,Lu=Mx;Object.defineProperty(e,"watchShake",{enumerable:!0,get:function(){return Lu.watchShake$}});var Vu=xx,Bu=xx;Object.defineProperty(e,"writeBLECharacteristicValue",{enumerable:!0,get:function(){return Bu.writeBLECharacteristicValue$}});var Uu=Ox,zu=Ox;Object.defineProperty(e,"writeBLEPeripheralCharacteristicValue",{enumerable:!0,get:function(){return zu.writeBLEPeripheralCharacteristicValue$}});var Ru=Dx,Fu=Dx;Object.defineProperty(e,"writeNFC",{enumerable:!0,get:function(){return Fu.writeNFC$}});var $u=Tx,qu=jx,Wu=Lx,Hu=Vx,Gu=Bx;e.apiObj={biz:{ATMBle:{beaconPicker:t.beaconPicker$,detectFace:n.detectFace$,detectFaceFullScreen:a.detectFaceFullScreen$,exclusiveLiveCheck:i.exclusiveLiveCheck$,faceManager:o.faceManager$,punchModePicker:r.punchModePicker$},alipay:{bindAlipay:s.bindAlipay$,openAuth:l.openAuth$,pay:c.pay$},attend:{getLBSWua:u.getLBSWua$},auth:{openAccountPwdLoginPage:d.openAccountPwdLoginPage$,requestAuthInfo:h.requestAuthInfo$},calendar:{chooseDateTime:p.chooseDateTime$,chooseHalfDay:f.chooseHalfDay$,chooseInterval:v.chooseInterval$,chooseOneDay:m.chooseOneDay$},chat:{chooseConversationByCorpId:g.chooseConversationByCorpId$,collectSticker:b.collectSticker$,createSceneGroup:y.createSceneGroup$,getRealmCid:w.getRealmCid$,locationChatMessage:_.locationChatMessage$,openSingleChat:E.openSingleChat$,pickConversation:P.pickConversation$,sendEmotion:N.sendEmotion$,toConversation:I.toConversation$,toConversationByOpenConversationId:A.toConversationByOpenConversationId$},clipboardData:{setData:k.setData$},conference:{createCloudCall:C.createCloudCall$,getCloudCallInfo:S.getCloudCallInfo$,getCloudCallList:M.getCloudCallList$,videoConfCall:x.videoConfCall$},contact:{choose:O.choose$,chooseMobileContacts:D.chooseMobileContacts$,complexPicker:T.complexPicker$,createGroup:j.createGroup$,departmentsPicker:L.departmentsPicker$,externalComplexPicker:V.externalComplexPicker$,externalEditForm:B.externalEditForm$,rolesPicker:U.rolesPicker$,setRule:z.setRule$},cspace:{chooseSpaceDir:R.chooseSpaceDir$,delete:F.delete$,preview:$.preview$,previewDentryImages:q.previewDentryImages$,saveFile:W.saveFile$},customContact:{choose:H.choose$,multipleChoose:G.multipleChoose$},data:{rsa:Y.rsa$},ding:{create:X.create$,post:J.post$},edu:{finishMiniCourseByRecordId:K.finishMiniCourseByRecordId$,getMiniCourseDraftList:Q.getMiniCourseDraftList$,joinClassroom:Z.joinClassroom$,makeMiniCourse:ee.makeMiniCourse$,newMsgNotificationStatus:te.newMsgNotificationStatus$,startAuth:ne.startAuth$,tokenFaceImg:ae.tokenFaceImg$},event:{notifyWeex:ie.notifyWeex$},file:{downloadFile:oe.downloadFile$},intent:{fetchData:re.fetchData$},iot:{bind:se.bind$,bindMeetingRoom:le.bindMeetingRoom$,getDeviceProperties:ce.getDeviceProperties$,invokeThingService:ue.invokeThingService$,queryMeetingRoomList:de.queryMeetingRoomList$,setDeviceProperties:he.setDeviceProperties$,unbind:pe.unbind$},live:{startClassRoom:fe.startClassRoom$,startUnifiedLive:ve.startUnifiedLive$},map:{locate:me.locate$,search:ge.search$,view:be.view$},media:{compressVideo:ye.compressVideo$},microApp:{openApp:we.openApp$},navigation:{close:_e.close$,goBack:Ee.goBack$,hideBar:Pe.hideBar$,navigateBackPage:Ne.navigateBackPage$,navigateToMiniProgram:Ie.navigateToMiniProgram$,navigateToPage:Ae.navigateToPage$,quit:ke.quit$,replace:Ce.replace$,setIcon:Se.setIcon$,setLeft:Me.setLeft$,setMenu:xe.setMenu$,setRight:Oe.setRight$,setTitle:De.setTitle$},pbp:{componentPunchFromPartner:Te.componentPunchFromPartner$,startMatchRuleFromPartner:je.startMatchRuleFromPartner$,stopMatchRuleFromPartner:Le.stopMatchRuleFromPartner$},phoneContact:{add:Ve.add$},realm:{getRealtimeTracingStatus:Be.getRealtimeTracingStatus$,getUserExclusiveInfo:Ue.getUserExclusiveInfo$,startRealtimeTracing:ze.startRealtimeTracing$,stopRealtimeTracing:Re.stopRealtimeTracing$,subscribe:Fe.subscribe$,unsubscribe:$e.unsubscribe$},resource:{getInfo:qe.getInfo$,reportDebugMessage:We.reportDebugMessage$},shortCut:{addShortCut:He.addShortCut$},sports:{getHealthAuthorizationStatus:Ge.getHealthAuthorizationStatus$,getHealthData:Ye.getHealthData$,getHealthDeviceData:Xe.getHealthDeviceData$,requestHealthAuthorization:Je.requestHealthAuthorization$},store:{closeUnpayOrder:Ke.closeUnpayOrder$,createOrder:Qe.createOrder$,getPayUrl:Ze.getPayUrl$,inquiry:et.inquiry$},tabwindow:{isTab:tt.isTab$},telephone:{call:nt.call$,checkBizCall:at.checkBizCall$,quickCallList:it.quickCallList$,showCallMenu:ot.showCallMenu$},user:{checkPassword:rt.checkPassword$,get:st.get$},util:{callComponent:lt.callComponent$,checkAuth:ct.checkAuth$,chooseImage:ut.chooseImage$,chooseRegion:dt.chooseRegion$,chosen:ht.chosen$,clearWebStoreCache:pt.clearWebStoreCache$,closePreviewImage:ft.closePreviewImage$,compressImage:vt.compressImage$,datepicker:mt.datepicker$,datetimepicker:gt.datetimepicker$,decrypt:bt.decrypt$,downloadFile:yt.downloadFile$,encrypt:wt.encrypt$,getPerfInfo:_t.getPerfInfo$,invokeWorkbench:Et.invokeWorkbench$,isEnableGPUAcceleration:Pt.isEnableGPUAcceleration$,isLocalFileExist:Nt.isLocalFileExist$,multiSelect:It.multiSelect$,open:At.open$,openBrowser:kt.openBrowser$,openDocument:Ct.openDocument$,openLink:St.openLink$,openLocalFile:Mt.openLocalFile$,openModal:xt.openModal$,openSlidePanel:Ot.openSlidePanel$,presentWindow:Dt.presentWindow$,previewImage:Tt.previewImage$,previewVideo:jt.previewVideo$,saveImage:Lt.saveImage$,saveImageToPhotosAlbum:Vt.saveImageToPhotosAlbum$,scan:Bt.scan$,scanCard:Ut.scanCard$,setGPUAcceleration:zt.setGPUAcceleration$,setScreenBrightnessAndKeepOn:Rt.setScreenBrightnessAndKeepOn$,setScreenKeepOn:Ft.setScreenKeepOn$,share:$t.share$,shareImage:qt.shareImage$,showAuthGuide:Wt.showAuthGuide$,showSharePanel:Ht.showSharePanel$,startDocSign:Gt.startDocSign$,systemShare:Yt.systemShare$,timepicker:Xt.timepicker$,uploadAttachment:Jt.uploadAttachment$,uploadFile:Kt.uploadFile$,uploadImage:Qt.uploadImage$,uploadImageFromCamera:Zt.uploadImageFromCamera$,ut:en.ut$},verify:{openBindIDCard:tn.openBindIDCard$,startAuth:nn.startAuth$},voice:{makeCall:an.makeCall$},watermarkCamera:{getWatermarkInfo:on.getWatermarkInfo$,setWatermarkInfo:rn.setWatermarkInfo$}},channel:{permission:{requestAuthCode:sn.requestAuthCode$}},device:{accelerometer:{clearShake:ln.clearShake$,watchShake:cn.watchShake$},audio:{download:un.download$,onPlayEnd:dn.onPlayEnd$,onRecordEnd:hn.onRecordEnd$,pause:pn.pause$,play:fn.play$,resume:vn.resume$,startRecord:mn.startRecord$,stop:gn.stop$,stopRecord:bn.stopRecord$,translateVoice:yn.translateVoice$},base:{getBatteryInfo:wn.getBatteryInfo$,getInterface:_n.getInterface$,getPhoneInfo:En.getPhoneInfo$,getScanWifiListAsync:Pn.getScanWifiListAsync$,getUUID:Nn.getUUID$,getWifiStatus:In.getWifiStatus$,openSystemSetting:An.openSystemSetting$},connection:{getNetworkType:kn.getNetworkType$},geolocation:{checkPermission:Cn.checkPermission$,get:Sn.get$,start:Mn.start$,status:xn.status$,stop:On.stop$},launcher:{checkInstalledApps:Dn.checkInstalledApps$,launchApp:Tn.launchApp$},nfc:{nfcRead:jn.nfcRead$,nfcStop:Ln.nfcStop$,nfcWrite:Vn.nfcWrite$},notification:{actionSheet:Bn.actionSheet$,alert:Un.alert$,confirm:zn.confirm$,extendModal:Rn.extendModal$,hidePreloader:Fn.hidePreloader$,modal:$n.modal$,prompt:qn.prompt$,showPreloader:Wn.showPreloader$,toast:Hn.toast$,vibrate:Gn.vibrate$},screen:{getScreenBrightness:Yn.getScreenBrightness$,insetAdjust:Xn.insetAdjust$,isScreenReaderEnabled:Jn.isScreenReaderEnabled$,resetView:Kn.resetView$,rotateView:Qn.rotateView$,setScreenBrightness:Zn.setScreenBrightness$}},media:{voiceRecorder:{keepAlive:ea.keepAlive$,pause:ta.pause$,resume:na.resume$,start:aa.start$,stop:ia.stop$}},net:{bjGovApn:{loginGovNet:oa.loginGovNet$}},runtime:{h5nuvabridge:{exec:ra.exec$},message:{fetch:sa.fetch$,post:la.post$},monitor:{getLoadTime:ca.getLoadTime$},permission:{requestAuthCode:ua.requestAuthCode$,requestOperateAuthCode:da.requestOperateAuthCode$}},ui:{input:{plain:ha.plain$},multitask:{addToFloat:pa.addToFloat$,removeFromFloat:fa.removeFromFloat$},nav:{close:va.close$,getCurrentId:ma.getCurrentId$,go:ga.go$,preload:ba.preload$,recycle:ya.recycle$},progressBar:{setColors:wa.setColors$},pullToRefresh:{disable:_a.disable$,enable:Ea.enable$,stop:Pa.stop$},webViewBounce:{disable:Na.disable$,enable:Ia.enable$}},ExternalChannelPublish:Aa.ExternalChannelPublish$,addPhoneContact:Ca.addPhoneContact$,alert:Ma.alert$,callUsers:Oa.callUsers$,checkAuth:Ta.checkAuth$,checkBizCall:La.checkBizCall$,chooseChat:Ba.chooseChat$,chooseConversation:za.chooseConversation$,chooseDateRangeInCalendar:Fa.chooseDateRangeInCalendar$,chooseDateTime:qa.chooseDateTime$,chooseDepartments:Ha.chooseDepartments$,chooseDingTalkDir:Ya.chooseDingTalkDir$,chooseDistrict:Ja.chooseDistrict$,chooseExternalUsers:Qa.chooseExternalUsers$,chooseFile:ei.chooseFile$,chooseHalfDayInCalendar:ni.chooseHalfDayInCalendar$,chooseImage:ii.chooseImage$,chooseMedia:ri.chooseMedia$,chooseOneDayInCalendar:li.chooseOneDayInCalendar$,chooseOrg:ui.chooseOrg$,choosePhonebook:hi.choosePhonebook$,chooseStaffForPC:fi.chooseStaffForPC$,chooseUserFromList:mi.chooseUserFromList$,clearShake:bi.clearShake$,closeBluetoothAdapter:wi.closeBluetoothAdapter$,closePage:Ei.closePage$,complexChoose:Ni.complexChoose$,compressImage:Ai.compressImage$,confirm:Ci.confirm$,connectBLEDevice:Mi.connectBLEDevice$,createBLEPeripheralServer:Oi.createBLEPeripheralServer$,createDing:Ti.createDing$,createDingForPC:Li.createDingForPC$,createGroupChat:Bi.createGroupChat$,createLiveClassRoom:zi.createLiveClassRoom$,createPayOrder:Fi.createPayOrder$,cropImage:qi.cropImage$,customChooseUsers:Hi.customChooseUsers$,datePicker:Yi.datePicker$,dateRangePicker:Ji.dateRangePicker$,decrypt:Qi.decrypt$,disablePullDownRefresh:eo.disablePullDownRefresh$,disableWebViewBounce:no.disableWebViewBounce$,disconnectBLEDevice:io.disconnectBLEDevice$,downloadAudio:ro.downloadAudio$,downloadFile:lo.downloadFile$,editExternalUser:uo.editExternalUser$,editPicture:po.editPicture$,enablePullDownRefresh:vo.enablePullDownRefresh$,enableWebViewBounce:go.enableWebViewBounce$,encrypt:yo.encrypt$,exclusiveLiveCheck:_o.exclusiveLiveCheck$,generateImageFromCode:Po.generateImageFromCode$,getAccountType:Io.getAccountType$,getAdvertisingStatus:ko.getAdvertisingStatus$,getAuthCode:So.getAuthCode$,getAuthCodeV2:xo.getAuthCodeV2$,getAuthInfo:Do.getAuthInfo$,getBLEDeviceCharacteristics:jo.getBLEDeviceCharacteristics$,getBLEDeviceServices:Vo.getBLEDeviceServices$,getBatteryInfo:Uo.getBatteryInfo$,getBeacons:Ro.getBeacons$,getBluetoothAdapterState:$o.getBluetoothAdapterState$,getBluetoothDevices:Wo.getBluetoothDevices$,getCloudCallInfo:Go.getCloudCallInfo$,getCloudCallList:Xo.getCloudCallList$,getCurrentCorpId:Ko.getCurrentCorpId$,getDeviceId:Zo.getDeviceId$,getDeviceUUID:tr.getDeviceUUID$,getImageInfo:ar.getImageInfo$,getLocatingStatus:or.getLocatingStatus$,getLocation:sr.getLocation$,getNetworkType:cr.getNetworkType$,getOperateAuthCode:dr.getOperateAuthCode$,getScreenBrightness:pr.getScreenBrightness$,getStorage:vr.getStorage$,getSystemInfo:gr.getSystemInfo$,getSystemSettings:yr.getSystemSettings$,getThirdAppConfCustomData:_r.getThirdAppConfCustomData$,getThirdAppUserCustomData:Pr.getThirdAppUserCustomData$,getTranslateStatus:Ir.getTranslateStatus$,getUserExclusiveInfo:kr.getUserExclusiveInfo$,getWifiHotspotStatus:Sr.getWifiHotspotStatus$,getWifiStatus:xr.getWifiStatus$,goBackPage:Dr.goBackPage$,hideLoading:jr.hideLoading$,hideToast:Vr.hideToast$,isInTabWindow:Ur.isInTabWindow$,isLocalFileExist:Rr.isLocalFileExist$,isScreenReaderEnabled:$r.isScreenReaderEnabled$,locateInMap:Wr.locateInMap$,makeCloudCall:Gr.makeCloudCall$,makeVideoConfCall:Xr.makeVideoConfCall$,minutesCreateFromVideo:Kr.minutesCreateFromVideo$,minutesStart:Zr.minutesStart$,minutesUploadVideo:ts.minutesUploadVideo$,minutesViewDetail:as.minutesViewDetail$,multiSelect:os.multiSelect$,navigateBackPage:ss.navigateBackPage$,navigateToPage:cs.navigateToPage$,nfcReadCardNumber:ds.nfcReadCardNumber$,notifyBLECharacteristicValueChange:ps.notifyBLECharacteristicValueChange$,notifyTranslateEvent:vs.notifyTranslateEvent$,offBLECharacteristicValueChange:gs.offBLECharacteristicValueChange$,offBLEConnectionStateChanged:ys.offBLEConnectionStateChanged$,offBluetoothAdapterStateChange:_s.offBluetoothAdapterStateChange$,offBluetoothDeviceFound:Ps.offBluetoothDeviceFound$,onBLECharacteristicValueChange:Is.onBLECharacteristicValueChange$,onBLEConnectionStateChanged:ks.onBLEConnectionStateChanged$,onBLEPeripheralCharacteristicReadRequest:Ss.onBLEPeripheralCharacteristicReadRequest$,onBLEPeripheralCharacteristicWriteRequest:xs.onBLEPeripheralCharacteristicWriteRequest$,onBLEPeripheralConnectionStateChanged:Ds.onBLEPeripheralConnectionStateChanged$,onBeaconServiceChange:js.onBeaconServiceChange$,onBeaconUpdate:Vs.onBeaconUpdate$,onBluetoothAdapterStateChange:Us.onBluetoothAdapterStateChange$,onBluetoothDeviceFound:Rs.onBluetoothDeviceFound$,onPlayAudioEnd:$s.onPlayAudioEnd$,onRecordEnd:Ws.onRecordEnd$,openBluetoothAdapter:Gs.openBluetoothAdapter$,openChatByChatId:Xs.openChatByChatId$,openChatByConversationId:Ks.openChatByConversationId$,openChatByUserId:Zs.openChatByUserId$,openDocument:tl.openDocument$,openLink:al.openLink$,openLocalFile:ol.openLocalFile$,openLocation:sl.openLocation$,openMicroApp:cl.openMicroApp$,openPageInMicroApp:dl.openPageInMicroApp$,openPageInModalForPC:pl.openPageInModalForPC$,openPageInSlidePanelForPC:vl.openPageInSlidePanelForPC$,openPageInWorkBenchForPC:gl.openPageInWorkBenchForPC$,pauseAudio:yl.pauseAudio$,playAudio:_l.playAudio$,popGesture:Pl.popGesture$,previewFileInDingTalk:Il.previewFileInDingTalk$,previewImage:kl.previewImage$,previewImagesInDingTalkBatch:Sl.previewImagesInDingTalkBatch$,previewMedia:xl.previewMedia$,prompt:Dl.prompt$,quickCallList:jl.quickCallList$,quitPage:Vl.quitPage$,readBLECharacteristicValue:Ul.readBLECharacteristicValue$,readNFC:Rl.readNFC$,removeStorage:$l.removeStorage$,replacePage:Wl.replacePage$,requestAuthCode:Gl.requestAuthCode$,requestMoneySubmmitOrder:Xl.requestMoneySubmmitOrder$,resetScreenView:Kl.resetScreenView$,resumeAudio:Zl.resumeAudio$,rotateScreenView:tc.rotateScreenView$,rsa:ac.rsa$,saveFileToDingTalk:oc.saveFileToDingTalk$,saveImageToPhotosAlbum:sc.saveImageToPhotosAlbum$,saveVideoToPhotosAlbum:cc.saveVideoToPhotosAlbum$,scan:dc.scan$,scanCard:pc.scanCard$,searchMap:vc.searchMap$,setClipboard:gc.setClipboard$,setGestures:yc.setGestures$,setKeepScreenOn:_c.setKeepScreenOn$,setNavigationIcon:Pc.setNavigationIcon$,setNavigationLeft:Ic.setNavigationLeft$,setNavigationTitle:kc.setNavigationTitle$,setScreenBrightness:Sc.setScreenBrightness$,setStorage:xc.setStorage$,share:Dc.share$,showActionSheet:jc.showActionSheet$,showAuthGuide:Vc.showAuthGuide$,showCallMenu:Uc.showCallMenu$,showLoading:Rc.showLoading$,showModal:$c.showModal$,showSharePanel:Wc.showSharePanel$,showToast:Gc.showToast$,singleSelect:Xc.singleSelect$,startAdvertising:Kc.startAdvertising$,startBeaconDiscovery:Zc.startBeaconDiscovery$,startBluetoothDevicesDiscovery:tu.startBluetoothDevicesDiscovery$,startLocating:au.startLocating$,startRecord:ou.startRecord$,stopAdvertising:su.stopAdvertising$,stopAudio:cu.stopAudio$,stopBeaconDiscovery:du.stopBeaconDiscovery$,stopBluetoothDevicesDiscovery:pu.stopBluetoothDevicesDiscovery$,stopLocating:vu.stopLocating$,stopPullDownRefresh:gu.stopPullDownRefresh$,stopRecord:yu.stopRecord$,subscribe:_u.subscribe$,timePicker:Pu.timePicker$,translate:Iu.translate$,translateVoice:ku.translateVoice$,uploadAttachmentToDingTalk:Su.uploadAttachmentToDingTalk$,uploadFile:xu.uploadFile$,vibrate:Du.vibrate$,watchShake:ju.watchShake$,writeBLECharacteristicValue:Vu.writeBLECharacteristicValue$,writeBLEPeripheralCharacteristicValue:Uu.writeBLEPeripheralCharacteristicValue$,writeNFC:Ru.writeNFC$,util:{domainStorage:{getItem:$u.getItem$,getStorageInfo:qu.getStorageInfo$,removeItem:Wu.removeItem$,setItem:Hu.setItem$},openTemporary:{getData:Gu.getData$}}}}(CP);var Ux={},zx={},Rx={},Fx={exports:{}},$x=iP;Fx.exports=$x;var qx=Fx.exports,Wx={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.isMobile=void 0;var t=dE,n=t.getENV();e.isMobile=n.platform===t.ENV_ENUM.ios||n.platform===t.ENV_ENUM.android}(Wx),function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.installCoolAppToGroup=void 0;var t=qx,n=Wx;e.installCoolAppToGroup=function(e){return t._invoke("biz.util.callComponent",{componentType:"h5",params:{url:"/resource-picker/"+(n.isMobile?"mob":"index")+".html?scene=addCoolAppToGroup&params="+encodeURIComponent(JSON.stringify(e)),target:n.isMobile?"":"float",title:"选择群添加应用",wnId:"addCoolAppToGroup",panelHeight:"percent90"}})}}(Rx);var Hx={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.sendMessageToGroup=void 0;var t=qx;e.sendMessageToGroup=function(e){var n,a=JSON.stringify(e).length;return t._invoke("biz.util.callComponent",{componentType:"h5",params:{url:"/im/cool-app-component.html?corpId="+encodeURIComponent(null===(n=null==e?void 0:e.context)||void 0===n?void 0:n.corpId)+"#/send-message?params="+encodeURIComponent(JSON.stringify({body:e,bodyLengthList:[a]})),target:"float",title:"提示",wnId:"sendMessageToGroup",panelHeight:"percent83"}})}}(Hx);var Gx={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.createGroup=void 0;var t=kP;e.createGroup=function(e){var n;return t._invoke("biz.util.callComponent",{componentType:"h5",params:{url:"/im/cool-app-component.html?corpId="+encodeURIComponent(null===(n=null==e?void 0:e.context)||void 0===n?void 0:n.corpId)+"#/create-group?params="+encodeURIComponent(JSON.stringify(e)),target:"float",title:"提示",wnId:"createGroup",panelHeight:"percent83"}})}}(Gx);var Yx={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.addMembers=void 0;var t=qx;e.addMembers=function(e){var n;return t._invoke("biz.util.callComponent",{componentType:"h5",params:{url:"/im/cool-app-component.html?corpId="+encodeURIComponent(null===(n=null==e?void 0:e.context)||void 0===n?void 0:n.corpId)+"#/add-members?params="+encodeURIComponent(JSON.stringify(e)),target:"float",title:"提示",wnId:"addMembers",panelHeight:"percent83"}})}}(Yx);var Xx={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.sendMessageToSingleChat=void 0;var t=kP;e.sendMessageToSingleChat=function(e){var n,a=JSON.stringify(e).length;return t._invoke("biz.util.callComponent",{componentType:"h5",params:{url:"/im/cool-app-component.html?corpId="+encodeURIComponent(null===(n=null==e?void 0:e.context)||void 0===n?void 0:n.corpId)+"#/send-message-to-single-chat?params="+encodeURIComponent(JSON.stringify({body:e,bodyLengthList:[a]})),target:"float",title:"提示",wnId:"sendMessageToSingleChat",panelHeight:"percent83"}})}}(Xx);var Jx={};!function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.batchInstallCoolApp=void 0;var t=qx,n=Wx;e.batchInstallCoolApp=function(e){var a=Object.assign({},e,{isBatchApi:!0});return t._invoke("biz.util.callComponent",{componentType:"h5",params:{url:"/resource-picker/"+(n.isMobile?"mob":"index")+".html?scene=addCoolAppToGroup&params="+encodeURIComponent(JSON.stringify(a)),target:n.isMobile?"":"float",title:"选择会话添加应用",wnId:"addCoolAppToGroup",panelHeight:"percent90"}})}}(Jx),function(e){var t=wo&&wo.__createBinding||(Object.create?function(e,t,n,a){void 0===a&&(a=n),Object.defineProperty(e,a,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,a){void 0===a&&(a=n),e[a]=t[n]}),n=wo&&wo.__exportStar||function(e,n){for(var a in e)"default"===a||n.hasOwnProperty(a)||t(n,e,a)};Object.defineProperty(e,"__esModule",{value:!0}),n(Rx,e),n(Hx,e),n(Gx,e),n(Yx,e),n(Xx,e),n(Jx,e)}(zx),function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.coolAppSdk=void 0;var t=zx;e.coolAppSdk=t}(Ux);var Kx=kP,Qx=CP,Zx=Ux,eO=Object.assign(Kx,Qx.apiObj,{plugin:Zx}),tO=qi({__proto__:null,default:_o(eO)},[eO]);class nO extends Xa{async download(e,t){if(On()||Dn()){const n=new URLSearchParams({type:uO.DOWNLOAD,token:Bt()||"",data:JSON.stringify({url:e,fileName:t})});return window.open("".concat(It.routeBase,"/download?").concat(n),"_self"),Promise.resolve(!0)}return super.download(e,t)}async backendExport(e){if(On()||Dn()){const t=new URLSearchParams({type:uO.BACKEND_EXPORT,token:Bt()||"",data:JSON.stringify(e)});return window.open("".concat(It.routeBase,"/download?").concat(t),"_self"),Promise.resolve(!0)}return super.backendExport(e)}async frontExport(e){if(On()||Dn()){const t=new URLSearchParams({type:uO.FRONT_EXPORT,token:Bt()||"",data:JSON.stringify(e)});return window.open("".concat(It.routeBase,"/download?").concat(t),"_self"),Promise.resolve(!0)}return super.frontExport(e)}getShowViewHeader(){return ibiz.config.view.mobShowViewHeader}getShowPresetBack(){return ibiz.config.view.mobShowPresetBack}}class aO extends nO{async getConfigParams(){}async init(){if(Ja()&&this.initViewport(),!tO)return;const e=await this.getConfigParams();e&&eO.config(e)}setBrowserTitle(e){const t=ibiz.hub.getApp();let n=ibiz.env.AppLabel||t.model.title||this.sourceTitle;ibiz.config.mob.mobShowAppTitle?e&&(n="".concat(n," - ").concat(e)):n=e,tO?eO.setNavigationTitle({title:n}):super.setBrowserTitle(e)}back(){const{goBack:e}=bo();tO?eO.goBackPage({fail:t=>{"API not exists"===t.errorMessage&&e()}}):e()}getShowViewHeader(){return!0}getShowPresetBack(){return!1}calcSafeBottom(){setTimeout(()=>{const e=(()=>{const e=document.createElement("div");e.style.paddingBottom="env(safe-area-inset-bottom)",document.body.appendChild(e);const t=parseInt(window.getComputedStyle(e).paddingBottom,10)||0;return document.body.removeChild(e),t})();document.body.style.setProperty("--safe-area-inset-bottom","".concat(e,"px"))},300)}adaptDingTalkIOS(){setTimeout(()=>{document.body.style.setProperty("--safe-area-inset-bottom","".concat(0,"px"))},300),window.visualViewport&&(window.visualViewport.addEventListener("resize",()=>{document.body.style.height="".concat(window.visualViewport.height,"px"),this.fixViewport(),this.calcSafeBottom()}),window.visualViewport.addEventListener("scroll",()=>{this.fixViewport()}),this.fixViewport())}initViewport(){"complete"===document.readyState?this.adaptDingTalkIOS():window.addEventListener("load",this.adaptDingTalkIOS)}fixViewport(){const e=window.visualViewport;e&&document.documentElement.style.setProperty("--visual-viewport-offset-top","".concat(e.offsetTop,"px"))}}e("aS",aO);class iO extends nO{async init(){const e=window.innerHeight,t=document.documentElement.scrollHeight;if(t>e){const n=t-e;document.body.style.setProperty("--safe-area-inset-bottom","".concat(n,"px")),document.body.style.setProperty("--van-back-top-bottom","80px")}document.addEventListener("blur",()=>{it(()=>{window.scrollTo(0,0)})},!0),window.visualViewport&&(window.visualViewport.addEventListener("resize",()=>{document.body.style.height="".concat(window.visualViewport.height,"px"),this.handleViewport()}),window.visualViewport.addEventListener("scroll",()=>{this.handleViewport()}),this.handleViewport())}back(){const{goBack:e}=bo();e()}handleViewport(){const e=window.visualViewport;e&&document.documentElement.style.setProperty("--visual-viewport-offset-top","".concat(e.offsetTop,"px"))}}e("aT",iO);class oO extends nO{async getConfigParams(){}async init(){if(Ja()&&window.visualViewport&&(window.visualViewport.addEventListener("resize",()=>{document.body.style.height="".concat(window.visualViewport.height,"px"),this.handleViewport()}),window.visualViewport.addEventListener("scroll",()=>{this.handleViewport()}),this.handleViewport()),!window.wx)return;const e=await this.getConfigParams();return e?new Promise((t,n)=>{window.wx.ready(()=>{t()}),window.wx.error(e=>{n(e)}),window.wx.config(e)}):void 0}back(){const{goBack:e}=bo();e()}getShowViewHeader(){return!0}getShowPresetBack(){return!1}handleViewport(){const e=window.visualViewport;e&&document.documentElement.style.setProperty("--visual-viewport-offset-top","".concat(e.offsetTop,"px"))}}e("aU",oO);var rO=Object.defineProperty,sO=(e,t,n)=>(((e,t,n)=>{t in e?rO(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,t+"",n),n);const lO=window.navigator.userAgent.toLowerCase();class cO extends lE{constructor(){super(...arguments),sO(this,"isAndroidWebView",/Android|Adr/i.test(lO)&&/wv/i.test(lO)&&/version\/4\.0/i.test(lO))}async download(e,t){if(this.isAndroidWebView){const n=new URLSearchParams({type:uO.DOWNLOAD,token:Bt()||"",data:JSON.stringify({url:e,fileName:t})});return window.open("".concat(It.routeBase,"/download?").concat(n),"_self"),Promise.resolve(!0)}return super.download(e,t)}async backendExport(e){if(this.isAndroidWebView){const t=new URLSearchParams({type:uO.BACKEND_EXPORT,token:Bt()||"",data:JSON.stringify(e)});return window.open("".concat(It.routeBase,"/download?").concat(t),"_self"),Promise.resolve(!0)}return super.backendExport(e)}async frontExport(e){if(this.isAndroidWebView){const t=new URLSearchParams({type:uO.FRONT_EXPORT,token:Bt()||"",data:JSON.stringify(e)});return window.open("".concat(It.routeBase,"/download?").concat(t),"_self"),Promise.resolve(!0)}return super.frontExport(e)}async openBrowser(e){}getShowViewHeader(){return ibiz.config.view.mobShowViewHeader}getShowPresetBack(){return ibiz.config.view.mobShowPresetBack}}e("aV",cO);var uO=e("aQ",(e=>(e.DOWNLOAD="DOWNLOAD",e.BACKEND_EXPORT="BACKEND_EXPORT",e.FRONT_EXPORT="FRONT_EXPORT",e))(uO||{}));const dO=xe({name:"NotSupportedEditor",props:{modelData:{type:Object,required:!0}},setup:()=>({ns:n("not-supported-editor")}),render(){return Oe("div",{class:this.ns.b()},[Qe("未支持的编辑器类型 - "),this.modelData.editorType])}});var hO={exports:{}};!function(e){e.exports=function(){var e={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},t=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,n=/\d/,a=/\d\d/,i=/\d\d?/,o=/\d*[^-_:/,()\s\d]+/,r={},s=function(e){return(e=+e)+(e>68?1900:2e3)},l=function(e){return function(t){this[e]=+t}},c=[/[+-]\d\d:?(\d\d)?|Z/,function(e){(this.zone||(this.zone={})).offset=function(e){if(!e)return 0;if("Z"===e)return 0;var t=e.match(/([+-]|\d\d)/g),n=60*t[1]+(+t[2]||0);return 0===n?0:"+"===t[0]?-n:n}(e)}],u=function(e){var t=r[e];return t&&(t.indexOf?t:t.s.concat(t.f))},d=function(e,t){var n,a=r.meridiem;if(a){for(var i=1;i<=24;i+=1)if(e.indexOf(a(i,0,t))>-1){n=i>12;break}}else n=e===(t?"pm":"PM");return n},h={A:[o,function(e){this.afternoon=d(e,!1)}],a:[o,function(e){this.afternoon=d(e,!0)}],Q:[n,function(e){this.month=3*(e-1)+1}],S:[n,function(e){this.milliseconds=100*+e}],SS:[a,function(e){this.milliseconds=10*+e}],SSS:[/\d{3}/,function(e){this.milliseconds=+e}],s:[i,l("seconds")],ss:[i,l("seconds")],m:[i,l("minutes")],mm:[i,l("minutes")],H:[i,l("hours")],h:[i,l("hours")],HH:[i,l("hours")],hh:[i,l("hours")],D:[i,l("day")],DD:[a,l("day")],Do:[o,function(e){var t=r.ordinal,n=e.match(/\d+/);if(this.day=n[0],t)for(var a=1;a<=31;a+=1)t(a).replace(/\[|\]/g,"")===e&&(this.day=a)}],w:[i,l("week")],ww:[a,l("week")],M:[i,l("month")],MM:[a,l("month")],MMM:[o,function(e){var t=u("months"),n=(u("monthsShort")||t.map(function(e){return e.slice(0,3)})).indexOf(e)+1;if(n<1)throw new Error;this.month=n%12||n}],MMMM:[o,function(e){var t=u("months").indexOf(e)+1;if(t<1)throw new Error;this.month=t%12||t}],Y:[/[+-]?\d+/,l("year")],YY:[a,function(e){this.year=s(e)}],YYYY:[/\d{4}/,l("year")],Z:c,ZZ:c};function p(n){var a,i;a=n,i=r&&r.formats;for(var o=(n=a.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(t,n,a){var o=a&&a.toUpperCase();return n||i[a]||e[a]||i[o].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(e,t,n){return t||n.slice(1)})})).match(t),s=o.length,l=0;l<s;l+=1){var c=o[l],u=h[c],d=u&&u[0],p=u&&u[1];o[l]=p?{regex:d,parser:p}:c.replace(/^\[|\]$/g,"")}return function(e){for(var t={},n=0,a=0;n<s;n+=1){var i=o[n];if("string"==typeof i)a+=i.length;else{var r=i.regex,l=i.parser,c=e.slice(a),u=r.exec(c)[0];l.call(t,u),e=e.replace(u,"")}}return function(e){var t=e.afternoon;if(void 0!==t){var n=e.hours;t?n<12&&(e.hours+=12):12===n&&(e.hours=0),delete e.afternoon}}(t),t}}return function(e,t,n){n.p.customParseFormat=!0,e&&e.parseTwoDigitYear&&(s=e.parseTwoDigitYear);var a=t.prototype,i=a.parse;a.parse=function(e){var t=e.date,a=e.utc,o=e.args;this.$u=a;var s=o[1];if("string"==typeof s){var l=!0===o[2],c=!0===o[3],u=l||c,d=o[2];c&&(d=o[2]),r=this.$locale(),!l&&d&&(r=n.Ls[d]),this.$d=function(e,t,n,a){try{if(["x","X"].indexOf(t)>-1)return new Date(("X"===t?1e3:1)*e);var i=p(t)(e),o=i.year,r=i.month,s=i.day,l=i.hours,c=i.minutes,u=i.seconds,d=i.milliseconds,h=i.zone,f=i.week,v=new Date,m=s||(o||r?1:v.getDate()),g=o||v.getFullYear(),b=0;o&&!r||(b=r>0?r-1:v.getMonth());var y,w=l||0,_=c||0,E=u||0,P=d||0;return h?new Date(Date.UTC(g,b,m,w,_,E,P+60*h.offset*1e3)):n?new Date(Date.UTC(g,b,m,w,_,E,P)):(y=new Date(g,b,m,w,_,E,P),f&&(y=a(y).week(f).toDate()),y)}catch(e){return new Date("")}}(t,s,a,n),this.init(),d&&!0!==d&&(this.$L=this.locale(d).$L),u&&t!=this.format(s)&&(this.$d=new Date("")),r={}}else if(s instanceof Array)for(var h=s.length,f=1;f<=h;f+=1){o[1]=s[f-1];var v=n.apply(this,o);if(v.isValid()){this.$d=v.$d,this.$L=v.$L,this.init();break}f===h&&(this.$d=new Date(""))}else i.call(this,e)}}}()}(hO);var pO=_o(hO.exports);Li.extend(pO);const fO=e("bA",xe({name:"IBizSpan",props:K(),setup(e,{emit:t}){var a,i;const o=n("span"),r=e.controller,s=je(""),l=r.codeList,c=r.model.textSeparator||(null==(a=r.editorParams)?void 0:a.TEXTSEPARATOR)||(null==(i=r.editorParams)?void 0:i.textseparator)||",";$e(()=>e.value,(e,t)=>{if(e!==t){if(Kt(e))return void(s.value="");const{valueFormat:t,dataType:i,unitName:o}=r.parent;if("SIMPLES"===r.model.valueType)s.value=e.join(c);else if("OBJECT"===r.model.valueType)s.value=e[r.model.objectNameField?r.model.objectNameField:"srfmajortext"];else if("OBJECTS"===r.model.valueType){const t=[];e.forEach(e=>{t.push(e[r.model.objectNameField?r.model.objectNameField:"srfmajortext"])}),s.value=t.join(c)}else if("ADDRESSPICKUP"===r.model.editorType)try{const t=[];JSON.parse(e).forEach(e=>{t.push(e[r.model.objectNameField?r.model.objectNameField:"srfmajortext"])}),s.value=t.join(c)}catch(t){ibiz.log.error("标签地址选择器的值不符合JSON格式".concat(e))}else if(t)try{if(null!=i&&Ut.isDate(i))s.value=Li(e).format(t);else{const i=Li(e).format(t);(n=i)!==(a=t)&&Li(n,a,!0).isValid()?s.value=i:s.value=ibiz.util.text.format("".concat(e),t)}}catch(t){s.value="".concat(e),ibiz.log.error("".concat(e," 值格式化错误"))}else zt("".concat(e))?s.value=Rt("".concat(e)):s.value="".concat(e);o&&(s.value+=o)}var n,a},{immediate:!0});const u=je([]);l&&$e(()=>e.data,e=>{r.loadCodeList(e).then(e=>{u.value=e})},{immediate:!0,deep:!0});const{componentRef:d}=Q(()=>t("focus"),()=>t("blur"));return{ns:o,c:r,text:s,editorRef:d,items:u}},render(){var e,t,n,a,i,o,r,s;let l=null;return l=this.c.codeList&&this.items.length>0?Oe(De("iBizCodeList"),{class:[this.ns.e("code-list"),this.ns.is("reverse-color",!!(null==(e=this.c.editorParams)?void 0:e.REVERSECOLOR)||!!(null==(t=this.c.editorParams)?void 0:t.reversecolor)),this.ns.em("code-list",(null==(a=null==(n=this.c.editorParams)?void 0:n.SHOWMODE)?void 0:a.toLowerCase())||(null==(o=null==(i=this.c.editorParams)?void 0:i.showmode)?void 0:o.toLowerCase()))],codeListItems:this.items,codeList:this.c.codeList,showMode:(null==(r=this.c.editorParams)?void 0:r.SHOWMODE)||(null==(s=this.c.editorParams)?void 0:s.showmode),value:this.text,convertToCodeItemText:this.c.convertToCodeItemText},null):this.text?this.text:"",Oe("span",{class:[this.ns.b(),this.readonly?this.ns.m("readonly"):"",this.disabled?this.ns.m("disabled"):""],ref:"editorRef"},[l])}})),vO=e("bB",xe({name:"IBizSpanLink",props:K(),emits:Z(),setup(e,{emit:t}){const a=n("span-link"),i=e.controller,o=je("");$e(()=>e.value,(e,t)=>{e&&e!==t&&(o.value="".concat(e))},{immediate:!0});const{componentRef:r}=Q(()=>t("focus"),()=>t("blur"));return{ns:a,openLinkView:async()=>{await i.openLinkView(e.data)},curValue:o,editorRef:r}},render(){return Oe("div",{class:[this.ns.b(),this.readonly?this.ns.m("readonly"):""],ref:"editorRef"},[Oe("a",{onClick:this.openLinkView},[this.curValue])])}}));var mO=Object.defineProperty,gO=(e,t,n)=>(((e,t,n)=>{t in e?mO(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n),n);class bO extends Ka{constructor(){super(...arguments),gO(this,"valueItem",""),gO(this,"codeList")}async onInit(){var e,t;if(super.onInit(),(null==(t=null==(e=this.model)?void 0:e.editorItems)?void 0:t[0])&&(this.valueItem=this.model.editorItems[0].id),this.model.appCodeListId){const e=await ibiz.hub.getApp(this.context.srfappid);this.codeList=e.codeList.getCodeList(this.model.appCodeListId)}}async openLinkView(e){const{context:t,params:n}=this.handlePublicParams(e,this.context,this.params);e[this.valueItem]&&(t.srfkey=e[this.valueItem]);const{linkAppViewId:a}=this.model;if(!a)throw new Ft(this.model,ibiz.i18n.t("editor.common.linkViewConfigErr"));return ibiz.commands.execute(Cn.TAG,a,t,n)}}e("bC",bO);var yO=Object.defineProperty,wO=(e,t,n)=>(((e,t,n)=>{t in e?yO(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n),n);class _O{constructor(e){wO(this,"formEditor","IBizSpan"),wO(this,"gridEditor","IBizSpan"),"SPAN_LINK"===e&&(this.formEditor="IBizSpanLink",this.gridEditor="IBizSpanLink")}async createController(e,t){const n=new bO(e,t);return await n.init(),n}}e("bD",_O);const EO=e("bK",xe({name:"IBizInput",props:ee(),emits:Z(),setup(e,{emit:t}){const a=n("input"),i=e.controller,o=i.model,r=je(),s=je(!1),l=Ja(),c=je("left");let u=!1;const h=je(2);"TEXTAREA_10"===o.editorType&&(h.value=10),i.editorParams.enableshowpwd&&(u="true"===i.editorParams.enableshowpwd||"TRUE"===i.editorParams.enableshowpwd),i.editorParams.rows&&(h.value=Number(i.editorParams.rows));const p=qe(()=>{switch(o.editorType){case"MOBTEXT":case"TEXTBOX":default:return"text";case"MOBPASSWORD":case"PASSWORD":return"password";case"MOBTEXTAREA":case"TEXTAREA":return"textarea"}}),f=je("");let v;$e(()=>e.value,(e,t)=>{e!==t&&(e?zt("".concat(e))?f.value=Rt("".concat(e)):f.value=e:f.value="",v=f.value)},{immediate:!0}),Be(()=>{r.value&&(c.value=(()=>{if(r.value)return getComputedStyle(r.value.$el).textAlign;return"left"})())});const m=(e,n="blur")=>{n===i.triggerMode&&t("change",e)};let g,b=!1;const y=un(e=>{v!==e&&m(e,"input"),v=e,b=!1,g&&g()},300,{leading:!0});e.autoFocus&&$e(r,e=>{if(e){const t="textarea"===p.value?"textarea":"input";e.$el.getElementsByTagName(t)[0].focus()}});let w;return{c:i,ns:a,rows:h,type:p,currentVal:f,handleChange:e=>{const t=e.target.value;b=!0,"textarea"===p.value&&(f.value=t),y(t)},handleKeyUp:e=>{e&&"Enter"===e.code&&((()=>{if("textarea"===p.value&&l&&"right"===c.value){const e=r.value.$el.querySelector("textarea");if(e){const t=e.value;t.endsWith(" ")||m("".concat(t," "))}}})(),b&&(g=()=>{r.value.$el.dispatchEvent(e)}))},onBlur:()=>{v!==e.value&&("textarea"===p.value&&"right"===c.value&&l&&v&&v.endsWith(" ")&&(v=v.slice(0,-1)),m(v)),t("blur")},onFocus:()=>{t("focus")},onClear:()=>{m("",i.triggerMode)},inputRef:r,showPassword:s,enableshowpwd:u,switchPwd:()=>{s.value=!s.value},onAIClick:async()=>{const n=i.model.appDataEntityId;if(!n||!i.deACMode)return;const{zIndex:a}=d(),o=a.increment();w=await ibiz.aiChatUtil.getAIChat();const{containerOptions:r,chatOptions:s}=await ibiz.aiChatUtil.getEditorExAIChatParams(i.editorParams,i.context,i.params,e.data,i.deACMode,{chatInstance:w,view:i.view,ctrl:i.ctrl}),l=await ibiz.aiChatUtil.getAIResourceOptions(i.context,i.params);w.create({resourceOptions:l,containerOptions:{zIndex:o,...r},chatOptions:{caption:i.deACMode.logicName,context:{...i.context},params:{...i.params,srfactag:i.deACMode.codeName},appDataEntityId:n,...s,action:(e,n)=>{"backfill"===e&&t("change",n.realcontent)}}})}}},render(){const{unitName:e}=this.c.parent;let t=null;if(this.readonly&&"password"!==this.type)t="".concat(this.currentVal||""),t&&e&&(t+=e);else{const n={};e&&(n.extra=()=>Oe("i",{class:this.ns.e("unit")},[e])),"password"===this.type&&this.enableshowpwd&&(n["right-icon"]=()=>this.showPassword?Oe("ion-icon",{name:"eye-off-outline",onClick:this.switchPwd},null):Oe("ion-icon",{name:"eye-outline",onClick:this.switchPwd},null)),this.c.chatCompletion&&(n.button=()=>Oe("div",{onClick:this.onAIClick,class:this.ns.e("ai-chat"),title:ibiz.i18n.t("editor.textBox.openAiChat")},[Oe("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",preserveAspectRatio:"xMidYMid meet",focusable:"false",fill:"CurrentColor"},[Oe("g",{id:"aae1.Base基础/1.icon图标/2.normal/ai-star","stroke-width":"1","fill-rule":"evenodd"},[Oe("path",{d:"M5.817 1.53l3.158 8.797h.054v.152l1.443 4.021-1.402.001-1.041-2.982H2.495l-1.03 2.982L0 14.5 4.671 1.533l1.146-.003zm7.86 5.424V14.5h-1.213V6.954h1.212zM5.248 3.549l-2.342 6.778h4.706L5.249 3.55zM13.046 0c.075 0 .147.02.204.071a.318.318 0 01.094.181l.064.273c.097.417.17.727.255.968.084.24.177.4.31.523.134.124.318.218.599.306.281.088.65.166 1.15.265a.358.358 0 01.195.095c.056.057.083.13.083.213a.289.289 0 01-.083.21.362.362 0 01-.197.094c-.528.093-.918.167-1.214.255-.295.088-.485.187-.621.324-.137.138-.23.324-.31.606-.08.283-.145.651-.23 1.147a.329.329 0 01-.093.184.293.293 0 01-.206.075.308.308 0 01-.207-.072.322.322 0 01-.1-.188l-.006-.033c-.085-.486-.149-.845-.228-1.12-.079-.274-.17-.452-.305-.585-.135-.133-.323-.23-.618-.32s-.683-.168-1.21-.273a.353.353 0 01-.2-.096.29.29 0 01-.08-.208c0-.079.023-.153.079-.211a.35.35 0 01.2-.097c.5-.098.869-.176 1.15-.263.282-.087.465-.18.597-.302.132-.12.224-.278.306-.511.082-.236.151-.539.244-.947l.071-.312a.312.312 0 01.102-.183.311.311 0 01.205-.069z",id:"aae形状结合"},null)])])])),t=Oe(De("van-field"),Te({ref:"inputRef",modelValue:this.currentVal,placeholder:this.controller.placeHolder,type:"password"===this.type&&this.showPassword?"text":this.type,rows:this.rows,inputmode:"text",onInput:this.handleChange,onKeyup:this.handleKeyUp,onBlur:this.onBlur,onFocus:this.onFocus,class:this.ns.b("input"),disabled:this.disabled,readonly:this.readonly,autosize:"textarea"===this.type,autocomplete:"new-password",clearable:!0,onClear:this.onClear},m(this.$attrs)),function(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!Ve(e)}(n)?n:{default:()=>[n]})}return Oe("div",{class:[this.ns.b(),this.ns.is("textarea",Object.is(this.type,"textarea")),this.disabled?this.ns.m("disabled"):"",this.readonly?this.ns.m("readonly"):""]},[t])}})),PO=e("bL",xe({name:"IBizInputNumber",props:te(),emits:Z(),setup(e,{emit:t}){const a=n("input-number"),i=e.controller,o=je(null);let r=null;const s=je(!1);$e(()=>e.value,(e,t)=>{if(e!==t){const t=hn(e)||""===e?null:Number(e);o.value=Number.isNaN(t)?null:t,r=o.value}},{immediate:!0});const l=(e,n="blur")=>{n===i.triggerMode&&t("change",e)},c=je();e.autoFocus&&$e(c,e=>{if(e){e.$el.getElementsByTagName("input")[0].focus()}});return{ns:a,c:i,currentVal:o,handleChange:e=>{const t=""===e.target.value?null:Number(e.target.value),n=i.precision&&null!==t?pn(t,i.precision):t;n!==r&&(l(n,"input"),r=n)},inputRef:c,onFocus:()=>{t("focus")},onBlur:()=>{r!==e.value&&l(r),t("blur")},show:s,onClear:()=>{l(null,i.triggerMode)}}},render(){const{unitName:e}=this.c.parent;let t=null;return this.readonly?(t="".concat(this.currentVal||""),t&&e&&(t+=e)):t=[Oe(De("van-field"),Te({ref:"inputRef",modelValue:this.currentVal,placeholder:this.c.placeHolder,type:"number",inputmode:"decimal",disabled:this.disabled,clearable:!0,onClear:this.onClear,onFocus:this.onFocus,onBlur:this.onBlur,onInput:this.handleChange},m(this.$attrs)),null),e&&Oe("span",{class:this.ns.e("unit")},[e])],Oe("div",{class:[this.ns.b(),this.disabled?this.ns.m("disabled"):"",this.readonly?this.ns.m("readonly"):""]},[t])}})),NO=e("bM",xe({name:"IBizSignature",props:ee(),emits:Z(),setup(e,{emit:t}){var a;const i=n("signature"),o=e.controller,r=o.model,s=je({["".concat(ibiz.env.tokenHeader,"Authorization")]:"".concat(ibiz.env.tokenPrefix,"Bearer ").concat($t(qt.TOKEN))}),l=je(""),c=je(""),u=je(),d=je(!1),h=je(""),p=je(""),f="true"===(null==(a=o.editorParams)?void 0:a.enablenoaccess);let v=!1;v=o.editorParams.globaldownloadprifix?"true"===o.editorParams.globaldownloadprifix:ibiz.config.common.globalDownloadPrifix;let m="img",g=[{label:ibiz.i18n.t("editor.signature.undo"),type:"undo"},{label:ibiz.i18n.t("editor.signature.rewrite"),type:"rewrite"},{label:ibiz.i18n.t("editor.signature.confirm"),type:"confirm",buttonType:"primary"}];if(r.editorParams&&(r.editorParams.mode&&(m=r.editorParams.mode),r.editorParams.buttons))try{g=JSON.parse(r.editorParams.buttons),g.forEach(e=>{e.label=ibiz.appUtil.resolveI18nText(e.label)})}catch(e){ibiz.log.error(e)}$e(()=>e.data,e=>{if(e){const t={...o.editorParams,enableNoAccess:f,globalDownloadPrifix:v};t.uploadparams&&(t.uploadParams=JSON.parse(t.uploadparams));const n=ibiz.util.file.calcFileUpDownUrl(o.context,o.params,e,t);l.value=n.uploadUrl,c.value=n.downloadUrl}},{immediate:!0,deep:!0}),$e(()=>e.value,async(t,n)=>{t!==n&&(p.value=t?"".concat(t||""):"",await(async()=>{var t,n;if(p.value){if(ibiz.loading.showRedirect(),"img"===m)h.value=p.value;else if(c.value){const n=JSON.parse(p.value)[0];let a=c.value.replace("%fileId%",n.id);try{if(ibiz.config.common.enableDownloadTicket&&!f){const t=await ibiz.util.file.getDownloadTicket(o.context,o.params,e.data||{},{fileId:n.id},o.downloadTicketParams);t&&t.ticket&&(a=c.value.replace("%fileId%",t.ticket))}const i={...o.editorParams,enableNoAccess:f,globalDownloadPrifix:v};i.exportparams&&(i.exportParams=JSON.parse(i.exportparams));const r=await ibiz.util.file.requestFile(a,void 0,{context:o.context,params:o.params,data:e.data,file:{fileId:n.id},extraParams:i,downloadTicketParams:o.downloadTicketParams}),s=await(null==(t=u.value)?void 0:t.signaturePad.blobToDataURL(r));h.value=s}catch(e){ibiz.log.error(e)}}null==(n=u.value)||n.signaturePad.loadImage(h.value,()=>{ibiz.loading.hideRedirect()})}})())},{immediate:!0});const b=e=>{t("change",e)},y=async e=>{const t=await(async e=>{const{type:t}=(e=>({type:e.split(",")[0].split(":")[1].split(";")[0]}))(e),n=Wt(e),a="signature_".concat(Date.now(),".png"),i=new File([n],a,{type:t});return await ibiz.util.file.fileUpload(l.value,i,s.value)})(e);b(JSON.stringify([{name:t.name,id:t.id}]))},w=()=>{var e,t,n;if(d.value=!1,(null==(e=u.value)?void 0:e.signaturePad.isEmpty())||!(null==(t=u.value)?void 0:t.signaturePad.isRedrawn()))return;const a=null==(n=u.value)?void 0:n.signaturePad.toDataURL(void 0,{rotation:-90});if(h.value=a,"file"===m)y(a);else b(a)};return{c:o,ns:i,signatureRef:u,fullScreen:d,currentDataURL:h,buttons:g,getSafeDistance:()=>{switch(Qa()){case Za.ANDROID:return"52px";case Za.IOS:return"82px";default:return"0px"}},handleModalClick:()=>{var t;(!e.disabled&&!e.readonly||h.value)&&(d.value=!0,null==(t=u.value)||t.updateSignaturePad(()=>{it(()=>{var e,t;h.value?null==(e=u.value)||e.signaturePad.fromDataURL(h.value,{rotation:90}):null==(t=u.value)||t.signaturePad.clear()})}))},handleConfirm:w,handleRemove:e=>{var t;e.stopPropagation(),null==(t=u.value)||t.signaturePad.clear(),h.value="",b(null)},handlePadContainerClick:()=>{(e.disabled||e.readonly)&&(d.value=!1)},handleButtonClick:e=>{var t,n;switch(e){case"undo":null==(t=u.value)||t.signaturePad.undoLastStep();break;case"rewrite":null==(n=u.value)||n.signaturePad.clear();break;case"confirm":w()}}}},render(){return Oe("div",{class:[this.ns.b(),this.disabled?this.ns.m("disabled"):"",this.readonly?this.ns.m("readonly"):""]},[Oe("div",{class:this.ns.e("modal"),onClick:this.handleModalClick},[Oe("div",{class:this.ns.em("modal","background")},null),Oe("div",{class:this.ns.em("modal","toolbar")},[this.currentDataURL&&!this.disabled&&!this.readonly&&Oe(De("van-button"),{round:!0,disabled:this.disabled,icon:"cross",type:"primary",onClick:this.handleRemove},null)]),!this.currentDataURL&&Oe("span",{class:this.ns.em("modal","caption")},[ibiz.i18n.t("editor.signature.addSignature")])]),Oe("div",{class:this.ns.e("content"),style:{backgroundImage:"url(".concat(this.currentDataURL,")")}},null),Oe("div",{class:[this.ns.b("overlay"),this.ns.is("full-screen",this.fullScreen),this.ns.is("disabled",this.disabled),this.ns.is("readonly",this.readonly)],style:{[this.ns.cssVarBlockName("spacing-safe")]:this.getSafeDistance()},onClick:this.handlePadContainerClick},[Oe("div",{class:this.ns.be("overlay","container")},[Oe("div",{class:this.ns.be("overlay","header")},[ibiz.i18n.t("editor.signature.signaturePrompt")]),Oe(De("iBizSignaturePad"),{ref:"signatureRef",class:this.ns.be("overlay","pad"),options:{...this.c.model.editorParams,...this.$attrs}},null),Oe("div",{class:this.ns.be("overlay","footer")},[this.buttons.map(e=>Oe(De("van-button"),{disabled:this.disabled,type:e.buttonType&&e.buttonType.toLowerCase()||"default",onClick:()=>this.handleButtonClick(e.type)},{default:()=>[e.label]}))])])])])}}));var IO=Object.defineProperty,AO=(e,t,n)=>(((e,t,n)=>{t in e?IO(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n),n);class kO extends ei{constructor(){super(...arguments),AO(this,"precision"),AO(this,"deService"),AO(this,"deACMode"),AO(this,"chatCompletion",!1)}async onInit(){if(await super.onInit(),this.precision=this.editorParams.precision?fn(this.editorParams.precision):this.model.precision,this.model.editorType&&["TEXTAREA","TEXTAREA_10","MOBTEXTAREA"].includes(this.model.editorType)){const e=this.model;e.appDEACModeId&&(this.deACMode=await wn(e.appDEACModeId,e.appDataEntityId,this.context.srfappid),this.deACMode&&"CHATCOMPLETION"===this.deACMode.actype&&ibiz.env.enableAI&&(this.deService=await ibiz.hub.getApp(e.appId).deService.getService(this.context,e.appDataEntityId),this.chatCompletion=!0))}}}e("bN",kO);var CO=Object.defineProperty,SO=(e,t,n)=>(((e,t,n)=>{t in e?CO(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n),n);class MO{constructor(e){SO(this,"formEditor","IBizInput"),SO(this,"gridEditor","IBizInput"),"NUMBER"===e?(this.formEditor="IBizInputNumber",this.gridEditor="IBizInputNumber"):"SIGNATURE"===e&&(this.formEditor="IBizSignature",this.gridEditor="IBizSignature")}async createController(e,t){const n=new kO(e,t);return await n.init(),n}}e("bO",MO);const xO=e("b_",xe({name:"IBizCommonRightIcon",setup:()=>({ns:n("editor-right-icon")}),render(){return Oe("ion-icon",{class:this.ns.b(),name:"chevron-forward-outline"},null)}})),OO=e("bf",xe({name:"IBizDropdown",props:ne(),emits:Z(),setup(e,{emit:t}){const a=n("dropdown"),i=e.controller,o=je([]),r=je(!1),s=je(!1),l=je(""),c=je([]),u=e=>{if(0===e.length)return[];const t=[];return e.forEach(e=>{const n={label:e.text,value:e.value,children:[]};e.children&&e.children.length>0&&(n.children=u(e.children)),t.push(n)}),t};i.loadCodeList(e.data).then(e=>{o.value=e;for(let t=0;t<o.value.length;t++){if(o.value[t].children){s.value=!0,c.value=u(e);break}}});const d=je("");$e(()=>e.value,e=>{void 0!==e?(d.value=e,null===e&&(d.value="")):d.value=""},{immediate:!0});const h=qe(()=>{const e=o.value.findIndex(e=>e.value===d.value);return-1!==e?o.value[e].text:""}),p=je();e.autoFocus&&$e(p,e=>{e&&e.focus()});const f=e=>{e.stopPropagation(),e.preventDefault(),r.value=!1,t("change",null)},v=()=>{r.value=!1},m=()=>Oe("div",{class:a.be("pop","list")},[0!==o.value.length&&o.value.map(e=>{var n;if(!((null==(n=e.text)?void 0:n.indexOf(l.value))<0))return Oe("div",{class:a.bem("pop","list","item"),onClick:()=>{return n=e,r.value=!1,n&&(d.value=n.value),void t("change",n?n.value:null);var n}},[Oe("div",{class:[a.bem("pop","list","item-text"),a.is("bkcolor",!!(null==e?void 0:e.bkcolor))],style:(null==e?void 0:e.color)||(null==e?void 0:e.bkcolor)?a.cssVarBlock({"pop-color-item":"".concat(e.color||""),"pop-color-item-bg":"".concat(e.bkcolor||"")}):""},[e.sysImage&&Oe(De("iBizIcon"),{icon:e.sysImage},null),e.text]),e.value===d.value&&Oe(De("van-icon"),{class:a.bem("pop","list","selected"),name:"success"},null)])}),0===o.value.length&&Oe(De("iBizNoData"),null,null)]);return yo(()=>{r.value=!1}),{ns:a,c:i,curValue:d,items:o,valueText:h,hasChildren:s,onBlur:()=>{setTimeout(()=>{t("blur")},100)},onFocus:()=>{t("focus")},editorRef:p,treeNodes:c,showPicker:r,getCodeListItem:e=>o.value.find(t=>t.text===e),renderPopHeader:()=>Oe("div",{class:a.be("pop","header")},[Oe("div",{class:a.bem("pop","header","left")},[Oe(De("van-icon"),{name:"cross",onClick:v},null),Oe("span",{class:a.bem("pop","header","caption")},[ibiz.i18n.t("editor.dropdown.pleaseSelect")])]),Oe("div",{class:a.bem("pop","header","right"),onClick:f},[ibiz.i18n.t("editor.dropdown.clear")])]),renderPopContent:()=>Oe("div",{class:a.be("pop","content")},[Oe("div",{class:a.be("pop","search")},[Oe(De("van-field"),{modelValue:l.value,"onUpdate:modelValue":e=>l.value=e,placeholder:ibiz.i18n.t("editor.dropdown.searchPlaceholder")},{"left-icon":()=>Oe("ion-icon",{name:"search-outline"},null)})]),m()]),refreshCodeList:()=>{i.loadCodeList(e.data).then(e=>{o.value=e})},onPopClose:()=>{l.value=""}}},render(){const e=this.valueText.split(",").map(e=>{const t=this.getCodeListItem(e);return Oe("span",{class:[this.ns.b("readonly-text-item"),null==t?void 0:t.textCls,(null==t?void 0:t.bkcolor)?this.ns.bm("readonly-text-item","has-bg"):""],style:(null==t?void 0:t.color)||(null==t?void 0:t.bkcolor)?this.ns.cssVarBlock({"color-readonly":"".concat(t.color||""),"color-item":"".concat(t.color||""),"color-item-bg":"".concat(t.bkcolor||"")}):""},[Oe("span",{class:this.ns.be("readonly-text-item","label")},[e])])}),t=this.getCodeListItem(this.valueText),n=this.hasChildren?ibiz.i18n.t("editor.dropdownList.noSupportTreePicker"):[Oe(De("van-field"),{ref:"editorRef",modelValue:this.valueText,"onUpdate:modelValue":e=>this.valueText=e,clearable:!0,readonly:!0,class:[this.ns.e("select")],placeholder:this.c.placeHolder,onBlur:this.onBlur,disabled:this.disabled,onFocus:this.onFocus,onClick:()=>{this.disabled||(this.showPicker=!0,this.refreshCodeList())},style:(null==t?void 0:t.color)||(null==t?void 0:t.bkcolor)?this.ns.cssVarBlock({"color-item":"".concat(t.color||""),"color-item-bg":"".concat(t.bkcolor||"")}):""},{input:()=>this.valueText?Oe("span",{class:[this.ns.e("select-item"),(null==t?void 0:t.bkcolor)?this.ns.em("select-item","has-bg"):""]},[this.valueText]):Oe("div",{class:[this.ns.e("placeholder")]},[this.c.placeHolder]),"right-icon":Oe(xO,null,null)}),Oe(De("van-popup"),{show:this.showPicker,"onUpdate:show":e=>this.showPicker=e,round:!0,teleport:"body","close-on-popstate":!0,position:"bottom",style:{height:"80%"},onClose:this.onPopClose},{default:()=>[Oe("div",{class:this.ns.b("pop")},[this.renderPopHeader(),this.renderPopContent()])]})];return Oe("div",{class:[this.ns.b(),this.disabled?this.ns.m("disabled"):"",this.readonly?this.ns.m("readonly"):""]},[this.readonly?e:n])}})),DO=e("bg",xe({name:"IBizEmojiPicker",props:ne(),emits:Z(),setup(e,{emit:t}){const a=n("emoji-picker"),i=e.controller,o=je(""),r=je(!1),s=e=>{e.stopPropagation(),e.preventDefault(),r.value=!0},l=e=>{e.stopPropagation(),e.preventDefault(),o.value="",r.value=!1,t("change","")};$e(()=>e.value,(e,t)=>{e!==t&&(o.value=e&&zt("".concat(e))?Rt(e):e)},{immediate:!0});const c=()=>{let e=Oe("span",{class:[a.e("button-content")]},[Oe("svg",{class:a.em("button-content","icon"),viewBox:"0 0 1040 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"1490",width:"1em",height:"1em"},[Oe("path",{d:"M512.075261 1024A511.774217 511.774217 0 1 1 730.482434 48.769072a37.630457 37.630457 0 1 1-32.061149 68.035867 436.513303 436.513303 0 1 0 250.468323 395.270322 37.630457 37.630457 0 0 1 75.260914 0 512.526826 512.526826 0 0 1-512.075261 511.924739z","p-id":"1491"},null),Oe("path",{d:"M333.857416 344.0929a57.348817 57.348817 0 1 0 57.348817 57.348817 57.499339 57.499339 0 0 0-57.348817-57.348817zM686.53006 344.0929a57.348817 57.348817 0 1 0 57.348817 57.348817 57.348817 57.348817 0 0 0-57.348817-57.348817zM515.236219 783.165074c-162.864619 0-262.359547-141.942084-262.359547-219.159782a30.104366 30.104366 0 0 1 60.208731 0c0 48.618551 76.314567 158.951051 202.150816 158.951051s193.571072-134.114949 193.571072-158.951051a30.104366 30.104366 0 0 1 60.208731 0c0 54.488902-90.012054 219.159782-253.779803 219.159782zM1009.549904 207.720123h-67.132735V139.985301a30.104366 30.104366 0 1 0-60.208732 0v67.734822h-67.734822a30.104366 30.104366 0 0 0-30.104366 30.104366 30.104366 30.104366 0 0 0 30.104366 30.104366h67.734822v67.734823a30.104366 30.104366 0 0 0 60.208732 0v-67.734823h67.734823a30.104366 30.104366 0 0 0 30.104365-30.104366 30.104366 30.104366 0 0 0-30.706453-30.104366z","p-id":"1492"},null)]),ibiz.i18n.t("editor.emojiPicker.addEmoji")]);return o.value&&(e=Oe("span",{class:[a.em("button-content","emoji")]},[Oe("span",{innerHTML:o.value},null)])),e};return yo(()=>{r.value=!1}),{ns:a,c:i,emoji:o,visible:r,onSelect:e=>{r.value=!1,o.value=e.data,t("change",Ht(e.data))},onAddEmoji:s,onClearEmoji:l,renderReference:()=>Oe("div",{class:[a.e("button"),a.is("clear",!!o.value)],onClick:s},[c(),o.value&&Oe("svg",{class:a.em("button-content","icon-clear"),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024",width:"1em",height:"1em",onClick:l},[Oe("path",{d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 393.664L407.936 353.6a38.4 38.4 0 1 0-54.336 54.336L457.664 512 353.6 616.064a38.4 38.4 0 1 0 54.336 54.336L512 566.336 616.064 670.4a38.4 38.4 0 1 0 54.336-54.336L566.336 512 670.4 407.936a38.4 38.4 0 1 0-54.336-54.336z"},null)])]),renderReadonly:()=>Oe("div",{class:[a.e("button"),a.is("clear",!!o.value)]},[c()])}},render(){let e=[this.renderReference(),Oe(De("van-popup"),{show:this.visible,"onUpdate:show":e=>this.visible=e,round:!0,position:"bottom",teleport:"body","close-on-popstate":!0},{default:()=>[Oe(De("iBizEmojiSelect"),{continuousList:!0,dark:!0,showSearch:!1,onSelect:this.onSelect},null)]})];return(this.disabled||this.readonly)&&(e=this.renderReadonly()),Oe("div",{class:[this.ns.b(),this.disabled?this.ns.m("disabled"):"",this.readonly?this.ns.m("readonly"):"",this.ns.is("active",this.visible)]},[e])}})),TO=e("bh",xe({name:"IBizCascaderDropdown",props:ne(),emits:Z(),setup(e,{emit:t}){const a=n("cascader-dropdown"),i=e.controller,o=je([]),r=new Map,s=je(""),l=je(null),c=je(!1),u=()=>{c.value=!1};(async()=>{const t=await i.loadCodeList(e.data),{pvaluefield:n}=i.editorParams;if(o.value=((e,t)=>{r.clear(),e.forEach(e=>{r.set(e.value,{...e})});const n=[];return t?e.forEach(e=>{const a=r.get(e.value);if(Kt(e.data[t]))n.push(a);else{const n=r.get(e.data[t]);n&&(n.children||(n.children=[]),n.children.push(a))}}):n.push(...e),n})(t,n),e.value){const t=r.get(e.value);s.value=(null==t?void 0:t.text)||""}})();$e(()=>e.value,e=>{const t=r.get(e||"");s.value=(null==t?void 0:t.text)||""},{immediate:!0});return yo(u),{ns:a,c:i,show:c,treeData:o,selectValue:l,curValue:s,onBlur:()=>{t("blur")},onFocus:()=>{t("focus")},openPopup:()=>{e.disabled||e.readonly||(c.value=!c.value)},onClose:u,onChange:e=>{const{value:n}=e;t("change",n)},onFinish:e=>{const{value:n}=e;u(),t("change",n)}}},render(){return Oe("div",{class:[this.ns.b(),this.disabled?this.ns.m("disabled"):"",this.readonly?this.ns.m("readonly"):""]},[this.readonly&&this.curValue,!this.readonly&&Oe(De("van-field"),{modelValue:this.curValue,"onUpdate:modelValue":e=>this.curValue=e,readonly:!0,disabled:this.disabled,placeholder:this.c.placeHolder,onBlur:this.onBlur,onFocus:this.onFocus,onClick:this.openPopup},{"right-icon":!this.readonly&&Oe(xO,null,null)}),Oe(De("van-popup"),{show:this.show,"onUpdate:show":e=>this.show=e,round:!0,position:"bottom",teleport:"body","close-on-popstate":!0},{default:()=>[Oe(De("van-cascader"),{modelValue:this.selectValue,"onUpdate:modelValue":e=>this.selectValue=e,title:this.c.placeHolder?this.c.placeHolder:" ",options:this.treeData,onClose:this.onClose,onChange:this.onChange,onFinish:this.onFinish},null)]})])}}));var jO=Object.defineProperty,LO=(e,t,n)=>(((e,t,n)=>{t in e?jO(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n),n);class VO extends Ka{constructor(){super(...arguments),LO(this,"placeHolder","请选择"),LO(this,"multiple",!1)}async onInit(){super.onInit()}}e("bi",VO);var BO=Object.defineProperty,UO=(e,t,n)=>(((e,t,n)=>{t in e?BO(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n),n);class zO{constructor(e){UO(this,"formEditor","IBizDropdown"),UO(this,"gridEditor","IBizDropdown");let t="IBizDropdown";switch(e){case"MOBCHECKLIST":case"MDROPDOWNLIST":t="IBizDropdownList";break;case"EMOJI_PICKER":t="IBizEmojiPicker";break;case"MOBDROPDOWNLIST_CASCADER":t="IBizCascaderDropdown"}this.formEditor=t,this.gridEditor=t}async createController(e,t){const n=new VO(e,t);return await n.init(),n}}function RO(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!Ve(e)}e("bj",zO);const FO=e("b1",xe({name:"IBizCheckboxList",props:ae(),emits:Z(),setup(e,{emit:t}){const a=n("checkbox-list"),i=e.controller,o=i.codeList,r=je([]);$e(()=>e.data,e=>{i.loadCodeList(e).then(e=>{r.value=e})},{immediate:!0,deep:!0});const s=qe(()=>o&&o.orMode?o.orMode.toLowerCase():"str");let l=",";o&&o.valueSeparator&&(l=o.valueSeparator);const c=qe({get(){if(!Kt(e.value)){if(Object.is(s.value,"num")&&r){const t=[],n="string"==typeof e.value?parseInt(e.value,10):e.value;return r.value.forEach(e=>{(n&e.value)===e.value&&t.push(e.value)}),t}if(Object.is(s.value,"str")){const t=e.value;if(""!==t){if(o){const e=t.split(l);if(o.codeItemValueNumber)for(let t=0,n=e.length;t<n;t++)e[t]=Number(e[t]);return e}return t.split(",")}}}return[]},set(e){let n=null;if(Object.is(s.value,"num")){let t=0;e.forEach(e=>{const n="string"==typeof e?parseInt(e,10):e;t|=n}),n=t}else if(Object.is(s.value,"str")){const t=[];r.value.length>0&&(r.value.forEach(n=>{-1!==e.findIndex(e=>Object.is(n.value,e))&&t.push(n.value)}),n=t.join(l))}t("change",n)}}),u=qe(()=>{const e=Array.isArray(c.value)?c.value:[c.value];return r.value.filter(t=>e.includes(t.value)).map(e=>e.text).join(",")}),{componentRef:d}=Q(()=>t("focus"),()=>t("blur"));return{ns:a,items:r,selectArray:c,valueText:u,editorRef:d,onSelectArrayChange:e=>{en(e,c.value)||(c.value=e)}}},render(){let e;return Oe("div",{ref:"editorRef",class:[this.ns.b(),this.disabled?this.ns.m("disabled"):"",this.readonly?this.ns.m("readonly"):""]},[this.readonly?this.valueText:Oe(De("van-checkbox-group"),Te({direction:"horizontal",modelValue:this.selectArray,"onUpdate:modelValue":e=>this.selectArray=e,onChange:this.onSelectArrayChange},m(this.$attrs)),RO(e=this.items.map((e,t)=>Oe(De("van-checkbox"),{shape:"square",key:t,name:e.value,disabled:this.disabled},{default:()=>[Oe("span",{class:this.ns.e("text")},[e.text])]})))?e:{default:()=>[e]})])}}));var $O=Object.defineProperty,qO=(e,t,n)=>(((e,t,n)=>{t in e?$O(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,t+"",n),n);class WO extends Ka{constructor(){super(...arguments),qO(this,"codeList")}async onInit(){if(super.onInit(),this.model.appCodeListId){const e=await ibiz.hub.getApp(this.context.srfappid);this.codeList=e.codeList.getCodeList(this.model.appCodeListId)}}}e("b2",WO);var HO=Object.defineProperty,GO=(e,t,n)=>(((e,t,n)=>{t in e?HO(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n),n);class YO{constructor(){GO(this,"formEditor","IBizCheckboxList"),GO(this,"gridEditor","IBizCheckboxList")}async createController(e,t){const n=new WO(e,t);return await n.init(),n}}e("b3",YO);const XO=e("bH",xe({name:"IBizSwitch",props:ie(),emits:Z(),setup(e,{emit:t}){const a=n("switch"),i=je(!1);$e(()=>e.value,(t,n)=>{t!==n&&(i.value=!!t&&1==e.value)},{immediate:!0});const{componentRef:o}=Q(()=>t("focus"),()=>t("blur"));return{ns:a,currentVal:i,handleChange:e=>{t("change",!0===e?1:0)},editorRef:o}},render(){return Oe("div",{class:[this.ns.b()],ref:"editorRef"},[Oe(De("van-switch"),Te({modelValue:this.currentVal,"onUpdate:modelValue":e=>this.currentVal=e,disabled:this.disabled||this.readonly,onChange:this.handleChange},m(this.$attrs)),null)])}}));class JO extends ei{}e("bI",JO);var KO=Object.defineProperty,QO=(e,t,n)=>(((e,t,n)=>{t in e?KO(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n),n);class ZO{constructor(){QO(this,"formEditor","IBizSwitch"),QO(this,"gridEditor","IBizSwitch")}async createController(e,t){const n=new JO(e,t);return await n.init(),n}}function eD(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!Ve(e)}e("bJ",ZO);const tD=e("br",xe({name:"IBizRadio",props:oe(),emits:Z(),setup(e,{emit:t}){const a=n("radio"),i=e.controller,o=i.model,r=je([]),s=qe({get(){var t;return null==(t=r.value.find(t=>t.value==e.value))?void 0:t.value},set(e){t("change",e)}});$e(()=>e.data,e=>{i.loadCodeList(e).then(e=>{r.value=e})},{immediate:!0,deep:!0});const l=qe(()=>{var t;return(null==(t=r.value.find(t=>t.value==e.value))?void 0:t.text)||""}),{componentRef:c}=Q(()=>t("focus"),()=>t("blur"));return{ns:a,editorModel:o,items:r,valueText:l,currentVal:s,editorRef:c}},render(){let e;return Oe("div",{class:[this.ns.b(),this.disabled?this.ns.m("disabled"):"",this.readonly?this.ns.m("readonly"):""],ref:"editorRef"},[this.readonly?this.valueText:Oe(De("van-radio-group"),Te({class:this.ns.e("group"),modelValue:this.currentVal,"onUpdate:modelValue":e=>this.currentVal=e,direction:"horizontal"},m(this.$attrs)),eD(e=this.items.map((e,t)=>Oe(De("van-radio"),{key:t,name:e.value,disabled:this.disabled},{default:()=>[Oe("span",{class:this.ns.e("text")},[e.text])]})))?e:{default:()=>[e]})])}}));class nD extends Ka{}e("bs",nD);var aD=Object.defineProperty,iD=(e,t,n)=>(((e,t,n)=>{t in e?aD(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n),n);class oD{constructor(){iD(this,"formEditor","IBizRadio"),iD(this,"gridEditor","IBizRadio")}async createController(e,t){const n=new nD(e,t);return await n.init(),n}}e("bt",oD);const rD=e("bx",xe({name:"IBizSlider",props:re(),emits:Z(),setup(e,{emit:t}){const a=n("slider"),i=e.controller,o=i.model,{valueFormat:r}=i.parent;let s=1,l=100,c=0,u=!1,d="",h=!1,p=r||"0%",f="line";const v=je(0);o.editorParams&&(o.editorParams.stepValue&&(s=fn(o.editorParams.stepValue)),o.editorParams.stepvalue&&(s=fn(o.editorParams.stepvalue)),o.editorParams.maxValue&&(l=fn(o.editorParams.maxValue)),o.editorParams.maxvalue&&(l=fn(o.editorParams.maxvalue)),o.editorParams.minValue&&(c=fn(o.editorParams.minValue)),o.editorParams.minvalue&&(c=fn(o.editorParams.minvalue)),o.editorParams.range&&(u=i.toBoolean(o.editorParams.range)),o.editorParams.type&&(f=o.editorParams.type),o.editorParams.textItem&&(d=o.editorParams.textItem),o.editorParams.textitem&&(d=o.editorParams.textitem),o.editorParams.showText&&(h=i.toBoolean(o.editorParams.showText)),o.editorParams.showtext&&(h=i.toBoolean(o.editorParams.showtext)),o.editorParams.format&&(p=o.editorParams.format));const m=je(0),{componentRef:g}=Q(()=>t("focus"),()=>t("blur")),b=e=>"line"===f?(e=>u?JSON.parse(e):Number(e))(e):e;$e(()=>e.value,(e,t)=>{e!==t&&(m.value=null==e?u?[0,1]:0:b(e))},{immediate:!0});const y=qe(()=>{if(d){const t=e.data||{};if(t[d])return ibiz.util.text.format("".concat(t[d]),p)}const t=Number(m.value),n=Number(t/l);return ibiz.util.text.format("".concat(n),p)});return{ns:a,currentVal:m,handleChange:e=>{Array.isArray(e)?t("change",JSON.stringify(e)):t("change",e)},step:s,type:f,max:l,min:c,textItem:d,currtval:v,range:u,textVal:y,showText:h,editorRef:g,circleSize:40}},render(){let e=null;return"line"===this.type&&(e=Oe(De("van-slider"),Te({modelValue:this.currentVal,"onUpdate:modelValue":e=>this.currentVal=e,disabled:this.disabled||this.readonly,step:this.step,max:this.max,min:this.min,range:this.range,onChange:this.handleChange},m(this.$attrs)),{button:()=>Oe("div",{class:this.ns.b("button")},[this.currentVal]),"left-button":()=>Oe("div",{class:this.ns.b("button")},[Array.isArray(this.currentVal)?this.currentVal[0]:this.currentVal]),"right-button":()=>Oe("div",{class:this.ns.b("button")},[Array.isArray(this.currentVal)?this.currentVal[1]:this.currentVal])})),"circle"===this.type&&(e=Oe(De("van-circle"),Te({"current-rate":this.currtval,"onUpdate:current-rate":e=>this.currtval=e,rate:this.currentVal,size:this.circleSize,"layer-color":"lightgray","stroke-width":"100"},m(this.$attrs)),{default:()=>{if(!this.showText)return"";let e=String(this.currentVal);return this.textItem&&(e=this.textVal),Oe("div",{class:this.ns.em("circle","text")},[e])}})),Oe("div",{class:[this.ns.b(),this.ns.e(this.type)],ref:"editorRef"},[e])}}));class sD extends ei{}e("by",sD);var lD=Object.defineProperty,cD=(e,t,n)=>(((e,t,n)=>{t in e?lD(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n),n);class uD{constructor(){cD(this,"formEditor","IBizSlider"),cD(this,"gridEditor","IBizSlider")}async createController(e,t){const n=new sD(e,t);return await n.init(),n}}e("bz",uD);const dD=xe({name:"IBizRaw",props:T(),emits:Z(),setup(e){const t=n("raw"),a=e.controller,i=a.model,o=je(""),r=a.editorParams.chunkview,s=a.editorParams.chunkentity;let l="TEXT",c="";i.contentType&&(l=i.contentType),i.editorParams&&i.editorParams.contenttype&&(l=i.editorParams.contenttype),i.editorParams&&i.editorParams.template&&(c=i.editorParams.template.replace(/\/\/n/g,"\n")),i.editorParams&&i.editorParams.TEMPLATE&&(c=i.editorParams.TEMPLATE.replace(/\/\/n/g,"\n"));const u=qe(()=>!(!e.controlParams||"hover"!==e.controlParams.editmode||e.readonly));return $e(()=>e.value,async(t,n)=>{if(t!==n&&("string"!=typeof t&&"number"!=typeof t&&t||(o.value=t),c&&t)){let n=t;if("string"==typeof t)try{n=JSON.parse(t)}catch(e){ibiz.log.error("JSON字符串转换错误")}Array.isArray(n)||Object.assign(n,{data:{...e.data}}),o.value=await ibiz.util.hbs.render(c,n)}},{immediate:!0}),{ns:t,type:l,content:o,template:c,chunkView:r,chunkEntity:s,showFormDefaultContent:u}},render(){return Oe("div",{class:[this.ns.b(),this.disabled?this.ns.m("disabled"):"",this.readonly?this.ns.m("readonly"):"",this.ns.is("show-default",this.showFormDefaultContent)]},[this.content&&Oe(De("iBizRawItem"),{data:this.data,type:this.type,content:this.content,chunkView:this.chunkView,chunkEntity:this.chunkEntity,context:this.controller.context,ctrl:this.controller.ctrl,view:this.controller.view,class:this.ns.b("content")},null)])}});class hD extends ei{}var pD=Object.defineProperty,fD=(e,t,n)=>(((e,t,n)=>{t in e?pD(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n),n);class vD{constructor(){fD(this,"formEditor","IBizRaw"),fD(this,"gridEditor","IBizRaw")}async createController(e,t){const n=new hD(e,t);return await n.init(),n}}const mD=e("bE",xe({name:"IBizStepper",props:se(),emits:Z(),setup(e,{emit:t}){const a=n("stepper"),i=e.controller,o=i.model,r=qe(()=>e.value);let s=1,l=0,c=1/0,u=-1/0;o.editorParams&&(o.editorParams.stepValue&&(s=fn(o.editorParams.stepValue)),o.editorParams.stepvalue&&(s=fn(o.editorParams.stepvalue)),o.editorParams.precision&&(l=fn(o.editorParams.precision)),o.editorParams.maxValue&&(c=fn(o.editorParams.maxValue)),o.editorParams.maxvalue&&(c=fn(o.editorParams.maxvalue)),o.editorParams.minValue&&(u=fn(o.editorParams.minValue)),o.editorParams.minvalue&&(u=fn(o.editorParams.minvalue)));return{ns:a,c:i,currentVal:r,handleChange:n=>{n!=e.value&&t("change",n)},inputRef:je(),step:s,precision:l,max:c,min:u,onFocus:()=>{t("focus")},onBlur:()=>{t("blur")}}},render(){let e=null;return e=this.readonly?"".concat(this.currentVal||""):[Oe(De("van-stepper"),Te({ref:"inputRef",modelValue:this.currentVal,placeholder:this.c.placeHolder,"decimal-length":this.precision,min:this.min,max:this.max,step:this.step,disabled:this.disabled,onChange:this.handleChange,onFocus:this.onFocus,onBlur:this.onBlur},m(this.$attrs)),null)],Oe("div",{class:[this.ns.b(),this.disabled?this.ns.m("disabled"):"",this.readonly?this.ns.m("readonly"):""]},[e])}}));var gD=Object.defineProperty,bD=(e,t,n)=>(((e,t,n)=>{t in e?gD(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,t+"",n),n);class yD extends ei{constructor(){super(...arguments),bD(this,"placeHolder",ibiz.i18n.t("editor.stepper.pleaseEnter"))}}e("bF",yD);var wD=Object.defineProperty,_D=(e,t,n)=>(((e,t,n)=>{t in e?wD(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n),n);class ED{constructor(){_D(this,"formEditor","IBizStepper"),_D(this,"gridEditor","IBizStepper")}async createController(e,t){const n=new yD(e,t);return await n.init(),n}}e("bG",ED);const PD=e("bu",xe({name:"IBizRate",props:le(),emits:Z(),setup(e,{emit:t}){const a=n("rate"),i=je(),o=e.controller.model;let r=5;o.editorParams&&(o.editorParams.maxValue&&(r=fn(o.editorParams.maxValue)),o.editorParams.maxvalue&&(r=fn(o.editorParams.maxvalue))),$e(()=>e.value,(e,t)=>{e!==t&&(i.value=e||0)},{immediate:!0});const{componentRef:s}=Q(()=>t("focus"),()=>t("blur"));return{ns:a,currentVal:i,handleChange:e=>{t("change",e)},max:r,editorRef:s}},render(){return Oe("div",{class:[this.ns.b()],ref:"editorRef"},[Oe(De("van-rate"),Te({modelValue:this.currentVal,"onUpdate:modelValue":e=>this.currentVal=e,disabled:this.disabled||this.readonly,count:this.max,onChange:this.handleChange},m(this.$attrs)),null)])}}));class ND extends ei{}e("bv",ND);var ID=Object.defineProperty,AD=(e,t,n)=>(((e,t,n)=>{t in e?ID(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n),n);class kD{constructor(){AD(this,"formEditor","IBizRate"),AD(this,"gridEditor","IBizRate")}async createController(e,t){const n=new ND(e,t);return await n.init(),n}}e("bw",kD);var CD={exports:{}};!function(e){e.exports=function(){var e,t,n;function a(e,t){return"string"!=typeof e&&e.nodeType?e:t?document.querySelectorAll(e):document.querySelector(e)}e=".rolldate-container{font-size:20px;color:#333;text-align:center}.rolldate-container ul{margin:0;padding:0}.rolldate-container li{list-style-type:none}.rolldate-container header{position:relative;line-height:60px;font-size:18px;border-bottom:1px solid #e0e0e0}.rolldate-container .rolldate-mask{position:fixed;width:100%;height:100%;top:0;left:0;z-index:999;background-color:rgba(37,38,45,.4)}.rolldate-container .rolldate-panel{position:fixed;bottom:0;left:0;width:100%;height:273px;z-index:1000;background:#fff;-webkit-transition:all .3s ease-in-out;transition:all .3s ease-in-out;-webkit-transform:translate3d(0,273px,0);transform:translate3d(0,273px,0)}.rolldate-container .rolldate-btn{position:absolute;left:0;top:0;height:100%;padding:0 15px;color:#666;font-size:16px;cursor:pointer;-webkit-tap-highlight-color:transparent}.rolldate-container .rolldate-confirm{left:auto;right:0;color:#007bff}.rolldate-container .rolldate-content{position:relative;top:20px}.rolldate-container .rolldate-wrapper{display:-webkit-box;display:-ms-flexbox;display:flex}.rolldate-container .rolldate-wrapper>div{-webkit-box-flex:1;-ms-flex:1;flex:1;height:173px;line-height:36px;overflow:hidden;-ms-flex-preferred-size:-8e;flex-basis:-8e;width:1%}.rolldate-container .rolldate-wrapper ul{margin-top:68px}.rolldate-container .rolldate-wrapper li{height:36px}.rolldate-container .rolldate-dim{position:absolute;left:0;top:0;width:100%;height:68px;background:-webkit-gradient(linear, left bottom, left top, from(hsla(0, 0%, 100%, 0.4)), to(hsla(0, 0%, 100%, 0.8)));background:linear-gradient(0deg,hsla(0,0%,100%,.4),hsla(0,0%,100%,.8));pointer-events:none;-webkit-transform:translateZ(0);transform:translateZ(0);z-index:10}.rolldate-container .mask-top{border-bottom:1px solid #ebebeb}.rolldate-container .mask-bottom{top:auto;bottom:1px;border-top:1px solid #ebebeb}.rolldate-container .fadeIn{-webkit-transform:translateZ(0);transform:translateZ(0)}.rolldate-container .fadeOut{-webkit-transform:translate3d(0,273px,0);transform:translate3d(0,273px,0)}@media screen and (max-width:414px){.rolldate-container{font-size:18px}}@media screen and (max-width:320px){.rolldate-container{font-size:15px}}",i=(i=void 0===i?{}:i).insertAt,e&&"undefined"!=typeof document&&(t=document.head||document.getElementsByTagName("head")[0],(n=document.createElement("style")).type="text/css","top"===i&&t.firstChild?t.insertBefore(n,t.firstChild):t.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))),function(e){function t(){return window.performance&&window.performance.now?window.performance.now()+window.performance.timing.navigationStart:+new Date}function n(e){for(var t=arguments.length,n=Array(1<t?t-1:0),a=1;a<t;a++)n[a-1]=arguments[a];for(var i=0;i<n.length;i++){var o,r=n[i];for(o in r)e[o]=r[o]}return e}function a(e){return null==e}function i(e){return!1!==b&&("standard"===b?"transitionEnd"===e?"transitionend":e:b+e.charAt(0).toUpperCase()+e.substr(1))}function o(e,t,n,a){e.addEventListener(t,n,{passive:!1,capture:!!a})}function r(e,t,n,a){e.removeEventListener(t,n,{passive:!1,capture:!!a})}function s(e){for(var t=0,n=0;e;)t-=e.offsetLeft,n-=e.offsetTop,e=e.offsetParent;return{left:t,top:n}}function l(e){var t;return e instanceof window.SVGElement?{top:(t=e.getBoundingClientRect()).top,left:t.left,width:t.width,height:t.height}:{top:e.offsetTop,left:e.offsetLeft,width:e.offsetWidth,height:e.offsetHeight}}function c(e,t){for(var n in t)if(t[n].test(e[n]))return 1}function u(e,t){var a=1<arguments.length&&void 0!==t?t:"click",i=(t=void 0,"mouseup"===e.type||"mousecancel"===e.type?t=e:"touchend"!==e.type&&"touchcancel"!==e.type||(t=e.changedTouches[0]),{}),o=void(t&&(i.screenX=t.screenX||0,i.screenY=t.screenY||0,i.clientX=t.clientX||0,i.clientY=t.clientY||0));if("undefined"!=typeof MouseEvent)try{o=new MouseEvent(a,n({bubbles:!0,cancelable:!0},i))}catch(e){r()}else r();function r(){(o=document.createEvent("Event")).initEvent(a,!0,!0),n(o,i)}o.forwardedTouchEvent=!0,o._constructed=!0,e.target.dispatchEvent(o)}function d(e,t,n,a,i,o,r){t=e-t,n=Math.abs(t)/n;var s=r.deceleration,l=r.itemHeight,c=r.swipeBounceTime,u=r.wheel,d=(r=r.swipeTime,u?4:15);return e+=n/s*(t<0?-1:1),(e=u&&l?Math.round(e/l)*l:e)<a?(e=o?Math.max(a-o/4,a-o/d*n):a,r=c):i<e&&(e=o?Math.min(i+o/4,i+o/d*n):i,r=c),{destination:Math.round(e),duration:r}}function h(){}function p(e){console.error("[BScroll warn]: "+e)}function f(e,t){this.wrapper="string"==typeof e?document.querySelector(e):e,this.wrapper||p("Can not resolve the wrapper DOM."),this.scroller=this.wrapper.children[0],this.scroller||p("The wrapper need at least one child element to be scroller."),this.scrollerStyle=this.scroller.style,this._init(t)}var v,m,g,b,y,w,_,E,P,N,I,A,k,C,S,M;e.exports=(C=(e=(v="undefined"!=typeof window)&&navigator.userAgent.toLowerCase())&&/wechatdevtools/.test(e),m=e&&0<e.indexOf("android"),g=v&&document.createElement("div").style,(b=(()=>{if(v){var e,t={webkit:"webkitTransform",Moz:"MozTransform",O:"OTransform",ms:"msTransform",standard:"transform"};for(e in t)if(void 0!==g[t[e]])return e}return!1})())&&"standard"!==b&&b.toLowerCase(),e=i("transform"),k=i("transition"),y=v&&i("perspective")in g,w=v&&("ontouchstart"in window||C),_=!1!==e,E=v&&k in g,P={transform:e,transition:k,transitionTimingFunction:i("transitionTimingFunction"),transitionDuration:i("transitionDuration"),transitionDelay:i("transitionDelay"),transformOrigin:i("transformOrigin"),transitionEnd:i("transitionEnd")},I={startX:0,startY:0,scrollX:!(N={touchstart:1,touchmove:1,touchend:1,mousedown:2,mousemove:2,mouseup:2}),scrollY:!0,freeScroll:!1,directionLockThreshold:5,eventPassthrough:"",click:!1,tap:!1,bounce:!0,bounceTime:800,momentum:!0,momentumLimitTime:300,momentumLimitDistance:15,swipeTime:2500,swipeBounceTime:500,deceleration:.0015,flickLimitTime:200,flickLimitDistance:100,resizePolling:60,probeType:0,preventDefault:!0,preventDefaultException:{tagName:/^(INPUT|TEXTAREA|BUTTON|SELECT|AUDIO)$/},HWCompositing:!0,useTransition:!0,useTransform:!0,bindToWrapper:!1,disableMouse:w,disableTouch:!w,observeDOM:!0,autoBlur:!0,wheel:!1,snap:!1,scrollbar:!1,pullDownRefresh:!1,pullUpLoad:!1,mouseWheel:!1,stopPropagation:!1,zoom:!1,infinity:!1,dblclick:!1},A={swipe:{style:"cubic-bezier(0.23, 1, 0.32, 1)",fn:function(e){return 1+--e*e*e*e*e}},swipeBounce:{style:"cubic-bezier(0.25, 0.46, 0.45, 0.94)",fn:function(e){return e*(2-e)}},bounce:{style:"cubic-bezier(0.165, 0.84, 0.44, 1)",fn:function(e){return 1- --e*e*e*e}}},S=v?window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||function(e){return window.setTimeout(e,(e.interval||100/60)/2)}:h,M=v?window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||window.oCancelAnimationFrame||function(e){window.clearTimeout(e)}:h,(C=f).prototype._init=function(e){this._handleOptions(e),this._events={},this.x=0,this.y=0,this.directionX=0,this.directionY=0,this.setScale(1),this._addDOMEvents(),this._initExtFeatures(),this._watchTransition(),this.options.observeDOM&&this._initDOMObserver(),this.options.autoBlur&&this._handleAutoBlur(),this.refresh(),this.options.snap||this.scrollTo(this.options.startX,this.options.startY),this.enable()},C.prototype.setScale=function(e){this.lastScale=a(this.scale)?e:this.scale,this.scale=e},C.prototype._handleOptions=function(e){this.options=n({},I,e),this.translateZ=this.options.HWCompositing&&y?" translateZ(0)":"",this.options.useTransition=this.options.useTransition&&E,this.options.useTransform=this.options.useTransform&&_,this.options.preventDefault=!this.options.eventPassthrough&&this.options.preventDefault,this.options.scrollX="horizontal"!==this.options.eventPassthrough&&this.options.scrollX,this.options.scrollY="vertical"!==this.options.eventPassthrough&&this.options.scrollY,this.options.freeScroll=this.options.freeScroll&&!this.options.eventPassthrough,this.options.directionLockThreshold=this.options.eventPassthrough?0:this.options.directionLockThreshold,!0===this.options.tap&&(this.options.tap="tap")},C.prototype._addDOMEvents=function(){this._handleDOMEvents(o)},C.prototype._removeDOMEvents=function(){this._handleDOMEvents(r)},C.prototype._handleDOMEvents=function(e){var t=this.options.bindToWrapper?this.wrapper:window;e(window,"orientationchange",this),e(window,"resize",this),this.options.click&&e(this.wrapper,"click",this,!0),this.options.disableMouse||(e(this.wrapper,"mousedown",this),e(t,"mousemove",this),e(t,"mousecancel",this),e(t,"mouseup",this)),w&&!this.options.disableTouch&&(e(this.wrapper,"touchstart",this),e(t,"touchmove",this),e(t,"touchcancel",this),e(t,"touchend",this)),e(this.scroller,P.transitionEnd,this)},C.prototype._initExtFeatures=function(){this.options.snap&&this._initSnap(),this.options.scrollbar&&this._initScrollbar(),this.options.pullUpLoad&&this._initPullUp(),this.options.pullDownRefresh&&this._initPullDown(),this.options.wheel&&this._initWheel(),this.options.mouseWheel&&this._initMouseWheel(),this.options.zoom&&this._initZoom(),this.options.infinity&&this._initInfinite()},C.prototype._watchTransition=function(){var e,t,n;"function"==typeof Object.defineProperty&&(t=!1,n=(e=this).options.useTransition?"isInTransition":"isAnimating",Object.defineProperty(this,n,{get:function(){return t},set:function(n){t=n;for(var a=e.scroller.children.length?e.scroller.children:[e.scroller],i=t&&!e.pulling?"none":"auto",o=0;o<a.length;o++)a[o].style.pointerEvents=i}}))},C.prototype._handleAutoBlur=function(){this.on("scrollStart",function(){var e=document.activeElement;!e||"INPUT"!==e.tagName&&"TEXTAREA"!==e.tagName||e.blur()})},C.prototype._initDOMObserver=function(){var e,t,n=this;"undefined"!=typeof MutationObserver?(e=void 0,(t=new MutationObserver(function(t){if(!n._shouldNotRefresh()){for(var a=!1,i=!1,o=0;o<t.length;o++){var r=t[o];if("attributes"!==r.type){a=!0;break}if(r.target!==n.scroller){i=!0;break}}a?n.refresh():i&&(clearTimeout(e),e=setTimeout(function(){n._shouldNotRefresh()||n.refresh()},60))}})).observe(this.scroller,{attributes:!0,childList:!0,subtree:!0}),this.on("destroy",function(){t.disconnect()})):this._checkDOMUpdate()},C.prototype._shouldNotRefresh=function(){var e=this.x>this.minScrollX||this.x<this.maxScrollX||this.y>this.minScrollY||this.y<this.maxScrollY;return this.isInTransition||this.stopFromTransition||e},C.prototype._checkDOMUpdate=function(){var e=l(this.scroller),t=e.width,n=e.height;function a(){var i=this;setTimeout(function(){(function(){var i,o;this.destroyed||(i=(e=l(this.scroller)).width,o=e.height,t===i&&n===o||this.refresh(),t=i,n=o,a.call(this))}).call(i)},1e3)}a.call(this)},C.prototype.handleEvent=function(e){switch(e.type){case"touchstart":case"mousedown":this._start(e),this.options.zoom&&e.touches&&1<e.touches.length&&this._zoomStart(e);break;case"touchmove":case"mousemove":this.options.zoom&&e.touches&&1<e.touches.length?this._zoom(e):this._move(e);break;case"touchend":case"mouseup":case"touchcancel":case"mousecancel":this.scaled?this._zoomEnd(e):this._end(e);break;case"orientationchange":case"resize":this._resize();break;case"transitionend":case"webkitTransitionEnd":case"oTransitionEnd":case"MSTransitionEnd":this._transitionEnd(e);break;case"click":!this.enabled||e._constructed||c(e.target,this.options.preventDefaultException)||(e.preventDefault(),e.stopPropagation());break;case"wheel":case"DOMMouseScroll":case"mousewheel":this._onMouseWheel(e)}},C.prototype.refresh=function(){var e="static"===window.getComputedStyle(this.wrapper,null).position,t=l(this.wrapper),n=(this.wrapperWidth=t.width,this.wrapperHeight=t.height,l(this.scroller));this.scrollerWidth=Math.round(n.width*this.scale),this.scrollerHeight=Math.round(n.height*this.scale),this.relativeX=n.left,this.relativeY=n.top,e&&(this.relativeX-=t.left,this.relativeY-=t.top),this.minScrollX=0,this.minScrollY=0,(n=this.options.wheel)?(this.items=this.scroller.children,this.options.itemHeight=this.itemHeight=this.items.length?this.scrollerHeight/this.items.length:0,void 0===this.selectedIndex&&(this.selectedIndex=n.selectedIndex||0),this.options.startY=-this.selectedIndex*this.itemHeight,this.maxScrollX=0,this.maxScrollY=-this.itemHeight*(this.items.length-1)):(this.maxScrollX=this.wrapperWidth-this.scrollerWidth,this.options.infinity||(this.maxScrollY=this.wrapperHeight-this.scrollerHeight),this.maxScrollX<0?(this.maxScrollX-=this.relativeX,this.minScrollX=-this.relativeX):1<this.scale&&(this.maxScrollX=this.maxScrollX/2-this.relativeX,this.minScrollX=this.maxScrollX),this.maxScrollY<0?(this.maxScrollY-=this.relativeY,this.minScrollY=-this.relativeY):1<this.scale&&(this.maxScrollY=this.maxScrollY/2-this.relativeY,this.minScrollY=this.maxScrollY)),this.hasHorizontalScroll=this.options.scrollX&&this.maxScrollX<this.minScrollX,this.hasVerticalScroll=this.options.scrollY&&this.maxScrollY<this.minScrollY,this.hasHorizontalScroll||(this.maxScrollX=this.minScrollX,this.scrollerWidth=this.wrapperWidth),this.hasVerticalScroll||(this.maxScrollY=this.minScrollY,this.scrollerHeight=this.wrapperHeight),this.endTime=0,this.directionX=0,this.directionY=0,this.wrapperOffset=s(this.wrapper),this.trigger("refresh"),this.scaled||this.resetPosition()},C.prototype.enable=function(){this.enabled=!0},C.prototype.disable=function(){this.enabled=!1},(e=f).prototype._start=function(e){var n=N[e.type];1!==n&&0!==e.button||!this.enabled||this.destroyed||this.initiated&&this.initiated!==n||(this.initiated=n,this.options.preventDefault&&!c(e.target,this.options.preventDefaultException)&&e.preventDefault(),this.options.stopPropagation&&e.stopPropagation(),this.moved=!1,this.distX=0,this.distY=0,this.directionX=0,this.directionY=0,this.movingDirectionX=0,this.movingDirectionY=0,this.directionLocked=0,this._transitionTime(),this.startTime=t(),this.options.wheel&&(this.target=e.target),this.stop(),n=e.touches?e.touches[0]:e,this.startX=this.x,this.startY=this.y,this.absStartX=this.x,this.absStartY=this.y,this.pointX=n.pageX,this.pointY=n.pageY,this.trigger("beforeScrollStart"))},e.prototype._move=function(e){if(this.enabled&&!this.destroyed&&N[e.type]===this.initiated){this.options.preventDefault&&e.preventDefault(),this.options.stopPropagation&&e.stopPropagation();var n=(i=e.touches?e.touches[0]:e).pageX-this.pointX,a=i.pageY-this.pointY,i=(this.pointX=i.pageX,this.pointY=i.pageY,this.distX+=n,this.distY+=a,Math.abs(this.distX)),o=Math.abs(this.distY),r=t();if(!(r-this.endTime>this.options.momentumLimitTime&&o<this.options.momentumLimitDistance&&i<this.options.momentumLimitDistance)){if(this.directionLocked||this.options.freeScroll||(i>o+this.options.directionLockThreshold?this.directionLocked="h":o>=i+this.options.directionLockThreshold?this.directionLocked="v":this.directionLocked="n"),"h"===this.directionLocked){if("vertical"===this.options.eventPassthrough)e.preventDefault();else if("horizontal"===this.options.eventPassthrough)return void(this.initiated=!1);a=0}else if("v"===this.directionLocked){if("horizontal"===this.options.eventPassthrough)e.preventDefault();else if("vertical"===this.options.eventPassthrough)return void(this.initiated=!1);n=0}n=this.hasHorizontalScroll?n:0,a=this.hasVerticalScroll?a:0,this.movingDirectionX=0<n?-1:n<0?1:0,this.movingDirectionY=0<a?-1:a<0?1:0,o=this.x+n,i=this.y+a;var s=!1,l=!1,c=!1,u=!1,d=(!1!==(d=this.options.bounce)&&(s=void 0===d.top||d.top,l=void 0===d.bottom||d.bottom,c=void 0===d.left||d.left,u=void 0===d.right||d.right),(o>this.minScrollX||o<this.maxScrollX)&&(o=o>this.minScrollX&&c||o<this.maxScrollX&&u?this.x+n/3:o>this.minScrollX?this.minScrollX:this.maxScrollX),(i>this.minScrollY||i<this.maxScrollY)&&(i=i>this.minScrollY&&s||i<this.maxScrollY&&l?this.y+a/3:i>this.minScrollY?this.minScrollY:this.maxScrollY),this.moved||(this.moved=!0,this.trigger("scrollStart")),this._translate(o,i),r-this.startTime>this.options.momentumLimitTime&&(this.startTime=r,this.startX=this.x,this.startY=this.y,1===this.options.probeType)&&this.trigger("scroll",{x:this.x,y:this.y}),1<this.options.probeType&&this.trigger("scroll",{x:this.x,y:this.y}),document.documentElement.scrollLeft||window.pageXOffset||document.body.scrollLeft);c=document.documentElement.scrollTop||window.pageYOffset||document.body.scrollTop,u=this.pointX-d,n=this.pointY-c,(u>document.documentElement.clientWidth-this.options.momentumLimitDistance||u<this.options.momentumLimitDistance||n<this.options.momentumLimitDistance||n>document.documentElement.clientHeight-this.options.momentumLimitDistance)&&this._end(e)}}},e.prototype._end=function(e){var n,a,i,o,r,s,l,u;this.enabled&&!this.destroyed&&N[e.type]===this.initiated&&(this.initiated=!1,this.options.preventDefault&&!c(e.target,this.options.preventDefaultException)&&e.preventDefault(),this.options.stopPropagation&&e.stopPropagation(),this.trigger("touchEnd",{x:this.x,y:this.y}),this.isInTransition=!1,o=Math.round(this.x),r=Math.round(this.y),n=o-this.absStartX,l=r-this.absStartY,this.directionX=0<n?-1:n<0?1:0,this.directionY=0<l?-1:l<0?1:0,this.options.pullDownRefresh&&this._checkPullDown()||(this._checkClick(e)?this.trigger("scrollCancel"):this.resetPosition(this.options.bounceTime,A.bounce)||(this._translate(o,r),this.endTime=t(),n=this.endTime-this.startTime,l=Math.abs(o-this.startX),e=Math.abs(r-this.startY),this._events.flick&&n<this.options.flickLimitTime&&l<this.options.flickLimitDistance&&e<this.options.flickLimitDistance?this.trigger("flick"):(s=0,this.options.momentum&&n<this.options.momentumLimitTime&&(e>this.options.momentumLimitDistance||l>this.options.momentumLimitDistance)?((i=a=l=e=!1)!==(u=this.options.bounce)&&(e=void 0===u.top||u.top,l=void 0===u.bottom||u.bottom,a=void 0===u.left||u.left,i=void 0===u.right||u.right),u=-1===this.directionX&&a||1===this.directionX&&i?this.wrapperWidth:0,a=-1===this.directionY&&e||1===this.directionY&&l?this.wrapperHeight:0,i=this.hasHorizontalScroll?d(this.x,this.startX,n,this.maxScrollX,this.minScrollX,u,this.options):{destination:o,duration:0},e=this.hasVerticalScroll?d(this.y,this.startY,n,this.maxScrollY,this.minScrollY,a,this.options):{destination:r,duration:0},o=i.destination,r=e.destination,s=Math.max(i.duration,e.duration),this.isInTransition=!0):this.options.wheel&&(r=Math.round(r/this.itemHeight)*this.itemHeight,s=this.options.wheel.adjustTime||400),l=A.swipe,this.options.snap&&(u=this._nearestSnap(o,r),this.currentPage=u,s=this.options.snapSpeed||Math.max(Math.max(Math.min(Math.abs(o-u.x),1e3),Math.min(Math.abs(r-u.y),1e3)),300),o=u.x,r=u.y,this.directionX=0,this.directionY=0,l=this.options.snap.easing||A.bounce),o!==this.x||r!==this.y?((o>this.minScrollX||o<this.maxScrollX||r>this.minScrollY||r<this.maxScrollY)&&(l=A.swipeBounce),this.scrollTo(o,r,s,l)):(this.options.wheel&&(this.selectedIndex=Math.round(Math.abs(this.y/this.itemHeight))),this.trigger("scrollEnd",{x:this.x,y:this.y}))))))},e.prototype._checkClick=function(e){var n,a=this.stopFromTransition&&!this.pulling;if(this.stopFromTransition=!1,this.moved)return!1;if(this.options.wheel)this.target&&this.target.classList.contains(this.options.wheel.wheelWrapperClass)&&(i=Math.abs(Math.round(this.y/this.itemHeight)),o=Math.round((this.pointY+((o=this.wrapper.getBoundingClientRect()).left,-(o.top+window.pageYOffset))-this.wrapperHeight/2)/this.itemHeight),this.target=this.items[i+o]),this.scrollToElement(this.target,this.options.wheel.adjustTime||400,!0,!0,A.swipe);else{if(a)return!1;var i=this.options.dblclick,o=!1;i&&this.lastClickTime&&(i=void 0===(a=i.delay)?300:a,t()-this.lastClickTime<i)&&(o=!0,u(e,"dblclick")),this.options.tap&&(a=e,i=this.options.tap,(n=document.createEvent("Event")).initEvent(i,!0,!0),n.pageX=a.pageX,n.pageY=a.pageY,a.target.dispatchEvent(n)),this.options.click&&!c(e.target,this.options.preventDefaultException)&&u(e),this.lastClickTime=o?null:t()}return!0},e.prototype._resize=function(){var e=this;this.enabled&&(m&&(this.wrapper.scrollTop=0),clearTimeout(this.resizeTimeout),this.resizeTimeout=setTimeout(function(){e.refresh()},this.options.resizePolling))},e.prototype._startProbe=function(){M(this.probeTimer),this.probeTimer=S(function t(){var n=e.getComputedPosition();e.trigger("scroll",n),e.isInTransition?e.probeTimer=S(t):e.trigger("scrollEnd",n)});var e=this},e.prototype._transitionTime=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:0;if(this.scrollerStyle[P.transitionDuration]=e+"ms",this.options.wheel)for(var t=0;t<this.items.length;t++)this.items[t].style[P.transitionDuration]=e+"ms";if(this.indicators)for(var n=0;n<this.indicators.length;n++)this.indicators[n].transitionTime(e)},e.prototype._transitionTimingFunction=function(e){if(this.scrollerStyle[P.transitionTimingFunction]=e,this.options.wheel)for(var t=0;t<this.items.length;t++)this.items[t].style[P.transitionTimingFunction]=e;if(this.indicators)for(var n=0;n<this.indicators.length;n++)this.indicators[n].transitionTimingFunction(e)},e.prototype._transitionEnd=function(e){e.target!==this.scroller||!this.isInTransition||(this._transitionTime(),this.pulling&&1!==this.movingDirectionY)||this.resetPosition(this.options.bounceTime,A.bounce)||(this.isInTransition=!1,3===this.options.probeType)||this.trigger("scrollEnd",{x:this.x,y:this.y})},e.prototype._translate=function(e,t,n){if(a(e)||a(t))throw new Error("[BScroll] Translate x or y is null or undefined.");if(a(n)&&(n=this.scale),this.options.useTransform?this.scrollerStyle[P.transform]="translate("+e+"px,"+t+"px) scale("+n+")"+this.translateZ:(e=Math.round(e),t=Math.round(t),this.scrollerStyle.left=e+"px",this.scrollerStyle.top=t+"px"),this.options.wheel)for(var i=this.options.wheel.rotate,o=void 0===i?25:i,r=0;r<this.items.length;r++){var s=o*(t/this.itemHeight+r);this.items[r].style[P.transform]="rotateX("+s+"deg)"}if(this.x=e,this.y=t,this.setScale(n),this.indicators)for(var l=0;l<this.indicators.length;l++)this.indicators[l].updatePosition()},e.prototype._animate=function(e,n,a,i){var o=this,r=this.x,s=this.y,l=this.lastScale,c=this.scale,u=t(),d=u+a;this.isAnimating=!0,M(this.animateTimer),function h(){var p=t();d<=p?(o.isAnimating=!1,o._translate(e,n,c),o.trigger("scroll",{x:o.x,y:o.y}),o.pulling||o.resetPosition(o.options.bounceTime)||o.trigger("scrollEnd",{x:o.x,y:o.y})):(p=i((p-u)/a),o._translate((e-r)*p+r,(n-s)*p+s,(c-l)*p+l),o.isAnimating&&(o.animateTimer=S(h)),3===o.options.probeType&&o.trigger("scroll",{x:o.x,y:o.y}))}()},e.prototype.scrollBy=function(e,t){e=this.x+e,t=this.y+t,this.scrollTo(e,t,2<arguments.length&&void 0!==arguments[2]?arguments[2]:0,3<arguments.length&&void 0!==arguments[3]?arguments[3]:A.bounce)},e.prototype.scrollTo=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:0,a=3<arguments.length&&void 0!==arguments[3]?arguments[3]:A.bounce;this.x===e&&this.y===t||(this.isInTransition=this.options.useTransition&&0<n&&(e!==this.x||t!==this.y),!n||this.options.useTransition?(this._transitionTimingFunction(a.style),this._transitionTime(n),this._translate(e,t),n&&3===this.options.probeType&&this._startProbe(),n||(this.trigger("scroll",{x:e,y:t}),this._reflow=document.body.offsetHeight,this.resetPosition(this.options.bounceTime,A.bounce))||this.trigger("scrollEnd",{x:e,y:t}),this.options.wheel&&(t>this.minScrollY?this.selectedIndex=0:t<this.maxScrollY?this.selectedIndex=this.items.length-1:this.selectedIndex=Math.round(Math.abs(t/this.itemHeight)))):this._animate(e,t,n,a.fn))},e.prototype.scrollToElement=function(e,t,n,a,i){var o;e&&(e=e.nodeType?e:this.scroller.querySelector(e),!this.options.wheel||e.classList.contains(this.options.wheel.wheelItemClass))&&((o=s(e)).left-=this.wrapperOffset.left,o.top-=this.wrapperOffset.top,!0===n&&(n=Math.round(e.offsetWidth/2-this.wrapper.offsetWidth/2)),!0===a&&(a=Math.round(e.offsetHeight/2-this.wrapper.offsetHeight/2)),o.left-=n||0,o.top-=a||0,o.left=o.left>this.minScrollX?this.minScrollX:o.left<this.maxScrollX?this.maxScrollX:o.left,o.top=o.top>this.minScrollY?this.minScrollY:o.top<this.maxScrollY?this.maxScrollY:o.top,this.options.wheel&&(o.top=Math.round(o.top/this.itemHeight)*this.itemHeight),this.scrollTo(o.left,o.top,t,i))},e.prototype.resetPosition=function(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:0,t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:A.bounce,n=this.x,a=Math.round(n),i=(!this.hasHorizontalScroll||a>this.minScrollX?n=this.minScrollX:a<this.maxScrollX&&(n=this.maxScrollX),a=this.y,Math.round(a));return!this.hasVerticalScroll||i>this.minScrollY?a=this.minScrollY:i<this.maxScrollY&&(a=this.maxScrollY),(n!==this.x||a!==this.y)&&(this.scrollTo(n,a,e,t),!0)},e.prototype.getComputedPosition=function(){var e=window.getComputedStyle(this.scroller,null),t=void 0;return e=this.options.useTransform?(t=+((e=e[P.transform].split(")")[0].split(", "))[12]||e[4]),+(e[13]||e[5])):(t=+e.left.replace(/[^-\d.]/g,""),+e.top.replace(/[^-\d.]/g,"")),{x:t,y:e}},e.prototype.stop=function(){var e;this.options.useTransition&&this.isInTransition?(this.isInTransition=!1,M(this.probeTimer),e=this.getComputedPosition(),this._translate(e.x,e.y),this.options.wheel?this.target=this.items[Math.round(-e.y/this.itemHeight)]:this.trigger("scrollEnd",{x:this.x,y:this.y}),this.stopFromTransition=!0):!this.options.useTransition&&this.isAnimating&&(this.isAnimating=!1,M(this.animateTimer),this.trigger("scrollEnd",{x:this.x,y:this.y}),this.stopFromTransition=!0)},e.prototype.destroy=function(){this.destroyed=!0,this.trigger("destroy"),this.options.useTransition?M(this.probeTimer):M(this.animateTimer),this._removeDOMEvents(),this._events={}},(k=f).prototype.on=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:this;this._events[e]||(this._events[e]=[]),this._events[e].push([t,n])},k.prototype.once=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:this;function a(){this.off(e,a),t.apply(n,arguments)}a.fn=t,this.on(e,a)},k.prototype.off=function(e,t){var n=this._events[e];if(n)for(var a=n.length;a--;)if(n[a][0]===t||n[a][0]&&n[a][0].fn===t){i=void 0,o=void 0;for(var i=n,o=a;o+1<i.length;o++)i[o]=i[o+1];i.pop()}},k.prototype.trigger=function(e){if(e=this._events[e])for(var t=e.length,n=[].concat((e=>{if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)})(e)),a=0;a<t;a++){var i=((e,t)=>{if(Array.isArray(e))return e;if(Symbol.iterator in Object(e)){var n=e,a=t,i=[],o=!0;e=!1,t=void 0;try{for(var r,s=n[Symbol.iterator]();!(o=(r=s.next()).done)&&(i.push(r.value),!a||i.length!==a);o=!0);}catch(n){e=!0,t=n}finally{try{!o&&s.return&&s.return()}finally{if(e)throw t}}return i}throw new TypeError("Invalid attempt to destructure non-iterable instance")})(n[a],2),o=i[0];o&&o.apply(i[1],[].slice.call(arguments,1))}},(C=f).prototype.wheelTo=function(){var e;this.options.wheel&&(e=-(0<arguments.length&&void 0!==arguments[0]?arguments[0]:0)*this.itemHeight,this.scrollTo(0,e))},C.prototype.getSelectedIndex=function(){return this.options.wheel&&this.selectedIndex},C.prototype._initWheel=function(){var e=this.options.wheel;e.wheelWrapperClass||(e.wheelWrapperClass="wheel-scroll"),e.wheelItemClass||(e.wheelItemClass="wheel-item"),void 0===e.selectedIndex&&(e.selectedIndex=0,p("wheel option selectedIndex is required!"))},(e=f).prototype._initMouseWheel=function(){var e=this;this._handleMouseWheelEvent(o),this.on("destroy",function(){clearTimeout(e.mouseWheelTimer),clearTimeout(e.mouseWheelEndTimer),e._handleMouseWheelEvent(r)}),this.firstWheelOpreation=!0},e.prototype._handleMouseWheelEvent=function(e){e(this.wrapper,"wheel",this),e(this.wrapper,"mousewheel",this),e(this.wrapper,"DOMMouseScroll",this)},e.prototype._onMouseWheel=function(e){var t=this;if(this.enabled){e.preventDefault(),this.options.stopPropagation&&e.stopPropagation(),this.firstWheelOpreation&&this.trigger("scrollStart"),this.firstWheelOpreation=!1;var n=void 0===(a=(l=this.options.mouseWheel).speed)?20:a,a=void 0!==(a=l.invert)&&a,i=void 0===(l=l.easeTime)?300:l,o=(clearTimeout(this.mouseWheelTimer),void(this.mouseWheelTimer=setTimeout(function(){t.options.snap||i||t.trigger("scrollEnd",{x:t.x,y:t.y}),t.firstWheelOpreation=!0},400))),r=void 0;switch(!0){case"deltaX"in e:r=1===e.deltaMode?(o=-e.deltaX*n,-e.deltaY*n):(o=-e.deltaX,-e.deltaY);break;case"wheelDeltaX"in e:o=e.wheelDeltaX/120*n,r=e.wheelDeltaY/120*n;break;case"wheelDelta"in e:o=r=e.wheelDelta/120*n;break;case"detail"in e:o=r=-e.detail/3*n;break;default:return}o*=l=a?-1:1,r*=l,a=void(this.hasVerticalScroll||(o=r,r=0));var s,l=void 0;this.options.snap?(a=this.currentPage.pageX,l=this.currentPage.pageY,0<o?a--:o<0&&a++,0<r?l--:r<0&&l++,this._goToPage(a,l)):(a=this.x+Math.round(this.hasHorizontalScroll?o:0),l=this.y+Math.round(this.hasVerticalScroll?r:0),this.movingDirectionX=this.directionX=0<o?-1:o<0?1:0,this.movingDirectionY=this.directionY=0<r?-1:r<0?1:0,a>this.minScrollX?a=this.minScrollX:a<this.maxScrollX&&(a=this.maxScrollX),l>this.minScrollY?l=this.minScrollY:l<this.maxScrollY&&(l=this.maxScrollY),s=this.y===l,this.scrollTo(a,l,i,A.swipe),this.trigger("scroll",{x:this.x,y:this.y}),clearTimeout(this.mouseWheelEndTimer),s&&(this.mouseWheelEndTimer=setTimeout(function(){t.trigger("scrollEnd",{x:t.x,y:t.y})},i)))}},f.Version="1.14.1",f)}(i={exports:{}});var i,o=i.exports;function r(){var e,t,n=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},i=this,o=void 0;if(i.extend(n),n.el){if(!(o=a(n.el))||o.bindRolldate)return;o.bindRolldate=1,i.tap(o,function(){i.show()})}n.value&&(n.el&&("input"==o.nodeName.toLowerCase()?o.value=n.value:o.innerText=n.value),e=n.value.replace(/-/g,"/").replace(/[^\d/:\s]/g,""),(t=new Date(e))&&"Invalid Date"!=t?n.el?o.bindDate=t:i.bindDate=t:console.error("Invalid Date:"+e))}return r.prototype={constructor:r,baseData:function(){return{domId:{YYYY:"rolldate-year",MM:"rolldate-month",DD:"rolldate-day",hh:"rolldate-hour",mm:"rolldate-min",ss:"rolldate-sec"},opts:{el:"",format:"YYYY-MM-DD",beginYear:2e3,endYear:2100,init:null,moveEnd:null,confirm:null,cancel:null,minStep:1,trigger:"tap",lang:{title:"选择日期",cancel:"取消",confirm:"确认",year:"年",month:"月",day:"日",hour:"时",min:"分",sec:"秒"}}}},extend:function(e){var t,n=this.baseData().opts;for(t in n)if(n[t]&&"[object Object]"==Object.prototype.toString.call(n[t]))for(var a in e[t])n[t][a]=(null==e[t][a]?n:e)[t][a];else n[t]=e[t]||n[t];this.config=n},createUI:function(){for(var e=this,t=e.baseData(),n=e.config,i=(n.format=n.format.replace("HH","hh"),t.domId),r=n.format.split(/-|\/|\s|:/g),s=r.length,l="",c=n.el?a(n.el).bindDate||new Date:e.bindDate||new Date,u=n.lang,d=0;d<s;d++){var h=r[d],p=0;if(l+='<div id="'+i[h]+'"><ul class="wheel-scroll">',"YYYY"==h)for(var f=n.beginYear;f<=n.endYear;f++)l+='<li class="wheel-item '+(f==c.getFullYear()?"active":"")+'" data-index="'+p+'">'+f+u.year+"</li>",p++;else if("MM"==h)for(var v=1;v<=12;v++)l+='<li class="wheel-item '+(v==c.getMonth()+1?"active":"")+'" data-index="'+p+'">'+(v<10?"0"+v:v)+u.month+"</li>",p++;else if("DD"==h)for(var m=e.getMonthlyDay(c.getFullYear(),c.getMonth()+1),g=1;g<=m;g++)l+='<li class="wheel-item '+(g==c.getDate()?"active":"")+'" data-index="'+p+'">'+(g<10?"0"+g:g)+u.day+"</li>",p++;else if("hh"==h)for(var b=0;b<=23;b++)l+='<li class="wheel-item '+(b==c.getHours()?"active":"")+'" data-index="'+p+'">'+(b<10?"0"+b:b)+u.hour+"</li>",p++;else if("mm"==h)for(var y=0;y<=59;y+=n.minStep)l+='<li class="wheel-item '+(y==c.getMinutes()?"active":"")+'" data-index="'+p+'">'+(y<10?"0"+y:y)+u.min+"</li>",p++;else if("ss"==h)for(var w=0;w<=59;w++)l+='<li class="wheel-item '+(w==c.getSeconds()?"active":"")+'" data-index="'+p+'">'+(w<10?"0"+w:w)+u.sec+"</li>",p++;l+="</ul></div>"}t='<div class="rolldate-mask"></div>\n <div class="rolldate-panel">\n <header>\n <span class="rolldate-btn rolldate-cancel">'+u.cancel+"</span>\n "+u.title+'\n <span class="rolldate-btn rolldate-confirm">'+u.confirm+'</span>\n </header>\n <section class="rolldate-content">\n <div class="rolldate-dim mask-top"></div>\n <div class="rolldate-dim mask-bottom"></div>\n <div class="rolldate-wrapper">\n '+l+"\n </div>\n </section>\n </div>";for(var _=document.createElement("div"),E=(_.className="rolldate-container",_.innerHTML=t,document.body.appendChild(_),e.scroll={},0);E<s;E++)(t=>{var s=i[r[t]],l=(e.scroll[r[t]]=new o("#"+s,{wheel:{selectedIndex:0}}),e.scroll[r[t]]);s=(t=a("#"+s+" .active"))?t.getAttribute("data-index"):Math.round(c.getMinutes()/n.minStep),l.wheelTo(s),l.on("scrollEnd",function(){if(n.moveEnd&&n.moveEnd.call(e,l),-1!=[i.YYYY,i.MM].indexOf(l.wrapper.id)&&e.scroll.YYYY&&e.scroll.MM&&e.scroll.DD){var t=e.getMonthlyDay(e.getSelected(e.scroll.YYYY),e.getSelected(e.scroll.MM)),o="";if(t!=a("#"+i.DD+" li",1).length){for(var r=1;r<=t;r++)o+='<li class="wheel-item">'+(r<10?"0"+r:r)+u.day+"</li>";a("#"+i.DD+" ul").innerHTML=o,e.scroll.DD.refresh()}}})})(E);a(".rolldate-panel").className="rolldate-panel fadeIn"},tap:function(e,t){var n,a,i;"ontouchstart"in window&&"tap"==this.config.trigger?(n={},i=function(e){e=e.touches[0],n.startX=e.pageX,n.startY=e.pageY,n.sTime=+new Date},a=function(e){var a=e.changedTouches[0];n.endX=a.pageX,n.endY=a.pageY,+new Date-n.sTime<300&&Math.abs(n.endX-n.startX)+Math.abs(n.endY-n.startY)<20&&(e.preventDefault(),t.call(this,e)),n={}},"function"==typeof t?(e.addEventListener("touchstart",i),e.addEventListener("touchend",a)):(e.removeEventListener("touchstart",i),e.removeEventListener("touchend",a))):(i=function(e){t.call(this,e)},"function"==typeof t?e.addEventListener("click",i):e.removeEventListener("click",i))},show:function(){var e=this.config,t=void 0;if(e.el){if(!(t=a(e.el)).bindRolldate)return;"input"==t.nodeName.toLowerCase()&&t.blur()}a(".rolldate-container")||e.init&&!1===e.init.call(this)||(this.createUI(),this.event())},hide:function(e,t){var n=a(".rolldate-panel.fadeIn");n&&(n.className="rolldate-panel fadeOut",this.destroy(e,t))},event:function(){var e=this,t=a(".rolldate-mask"),n=a(".rolldate-cancel"),i=a(".rolldate-confirm");e.tap(t,function(t){e.hide(1,t)}),e.tap(n,function(t){e.hide(1,t)}),e.tap(i,function(){var t,n=e.config,i=void 0,o=n.format,r=new Date;for(t in e.scroll){var s=e.getSelected(e.scroll[t]);o=o.replace(t,s),"YYYY"==t?r.setFullYear(s):"MM"==t?r.setMonth(s-1):"DD"==t?r.setDate(s):"hh"==t?r.setHours(s):"mm"==t?r.setMinutes(s):"ss"==t&&r.setSeconds(s)}if(n.confirm){var l=n.confirm.call(e,o);if(!1===l)return!1;l&&(o=l)}n.el?("input"==(i=a(n.el)).nodeName.toLowerCase()?i.value=o:i.innerText=o,i.bindDate=r):e.bindDate=r,e.hide()})},getMonthlyDay:function(e,t){var n=void 0;return 1==t||3==t||5==t||7==t||8==t||10==t||12==t?n=31:4==t||6==t||11==t||9==t?n=30:2==t&&(n=e%4!=0||e%100==0&&e%400!=0?28:29),n},destroy:function(e,t){var n,i=this,o=i.config;for(n in i.scroll)i.scroll[n].destroy();e&&o.cancel&&o.cancel.call(i,t),i.tap(a(".rolldate-mask"),0),i.tap(a(".rolldate-cancel"),0),i.tap(a(".rolldate-confirm"),0),setTimeout(function(){var e=a(".rolldate-container");e&&document.body.removeChild(e)},300)},getSelected:function(e){return a("#"+e.wrapper.id+" li",1)[e.getSelectedIndex()].innerText.replace(/\D/g,"")}},r.version="3.1.3",r}()}(CD);var SD=_o(CD.exports);const MD=e("b9",xe({name:"IBizDatePicker",props:ce(),emits:Z(),setup(e,{emit:t}){const a=n("date-picker"),i=e.controller,o=i.model,r=Li().year(),s=r-100,l=r+100,c=je(null),u={title:ibiz.i18n.t("editor.datePicker.title"),cancel:ibiz.i18n.t("editor.datePicker.clear"),confirm:ibiz.i18n.t("editor.datePicker.confirm"),year:ibiz.i18n.t("editor.datePicker.year"),month:ibiz.i18n.t("editor.datePicker.month"),day:ibiz.i18n.t("editor.datePicker.day"),hour:ibiz.i18n.t("editor.datePicker.hour"),min:ibiz.i18n.t("editor.datePicker.min"),sec:ibiz.i18n.t("editor.datePicker.sec")},d=je(),h=je("YYYY-MM-DD hh:mm:ss"),p=i.valueFormat;p&&(h.value=p);const f=je();$e(()=>e.value,(e,t)=>{if(e){if(e!==t){const t=Li(e).format(h.value);f.value="Invalid Date"!==t?t:e}}else f.value=""},{immediate:!0});const v=()=>{var e,t;c.value&&(null==(t=(e=c.value).hide)||t.call(e))};return yo(v),Be(()=>{const n=d.value;n&&(c.value=new SD({el:n,format:h.value,beginYear:s,endYear:l,minStep:1,lang:u,trigger:"click",value:f.value,confirm:e=>((e=>{t("change",e)})(e),e),cancel:e=>{(e=>{var n;const a=null==(n=null==e?void 0:e.target)?void 0:n.classList.value;a&&a.includes("rolldate-cancel")&&t("change",null)})(e)},init:()=>{if(e.disabled||e.readonly)return!1}}))}),Fe(()=>{v()}),{ns:a,c:i,editorModel:o,format:h,formatValue:f,onFocus:()=>{t("focus")},onBlur:()=>{t("blur")},editorRef:d}},render(){return Oe("div",{class:[this.ns.b(),this.disabled?this.ns.m("disabled"):"",this.readonly?this.ns.m("readonly"):""]},[this.readonly?this.formatValue:[Oe(De("van-field"),null,{input:Oe("input",{ref:"editorRef",type:"text",value:this.formatValue,placeholder:this.c.placeHolder,onBlur:this.onBlur,onFocus:this.onFocus,disabled:this.disabled,readonly:this.readonly},null),"right-icon":Oe(xO,null,null)})]])}}));var xD=Object.defineProperty,OD=(e,t,n)=>(((e,t,n)=>{t in e?xD(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,t+"",n),n);class DD extends ei{constructor(){super(...arguments),OD(this,"placeHolder","请选择日期")}getFormatByType(e){switch(e){case"MOBDATE":case"DATEPICKER":case"MOBDATE_SECOND":case"DATEPICKEREX_SECOND":default:return"YYYY-MM-DD hh:mm:ss";case"MOBDATE_NOTIME":case"DATEPICKEREX_NOTIME":return"YYYY-MM-DD";case"MOBDATE_HOUR":case"DATEPICKEREX_HOUR":return"YYYY-MM-DD hh";case"MOBDATE_MINUTE":case"DATEPICKEREX_MINUTE":return"YYYY-MM-DD hh:mm";case"MOBDATE_NODAY":case"DATEPICKEREX_NODAY":return"hh:mm:ss";case"MOBDATE_NODAY_NOSECOND":case"DATEPICKEREX_NODAY_NOSECOND":return"hh:mm"}}get valueFormat(){return super.valueFormat?super.valueFormat:this.model.dateTimeFormat?this.model.dateTimeFormat:this.getFormatByType(this.model.editorType)}}e("ba",DD);var TD=Object.defineProperty,jD=(e,t,n)=>(((e,t,n)=>{t in e?TD(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n),n);class LD{constructor(){jD(this,"formEditor","IBizDatePicker"),jD(this,"gridEditor","IBizDatePicker")}async createController(e,t){const n=new DD(e,t);return await n.init(),n}}e("bb",LD);const VD=e("b4",xe({name:"IBizPicker",props:ue(),emits:Z(),setup(e,{emit:t}){const a=n("picker"),i=e.controller,o=je(""),r=je([]),s=je(!1),l=je(!0),c=je(),u=je(!1),d=je("");$e(()=>e.value,t=>{if(t||null===t){o.value=t,null===t&&(o.value="");const n=e.data[i.valueItem];if(-1!==r.value.findIndex(e=>Object.is(e[i.keyName],n)))return;r.value=[],vn(t)||vn(n)||r.value.push({[i.textName]:t,[i.keyName]:n})}},{immediate:!0});const h=async e=>{var n;const a=(null==(n=e.getOrigin)?void 0:n.call(e))||e._deData||e,o=await i.calcFillDataItems(a);o.length&&o.forEach(e=>{t("change",e.value,e.id)}),Object.assign(a,{[i.keyName]:a[i.keyName]?a[i.keyName]:a.srfkey,[i.textName]:a[i.textName]?a[i.textName]:a.srfmajortext}),i.valueItem&&t("change",a[i.keyName],i.valueItem),t("change",a[i.textName])},p=async(t,n)=>{if(i.model.appDataEntityId){const a=t||"".trim();let o;u.value=!0;try{o=await i.getServiceData(a,e.data),o&&(r.value=o.data.map(e=>({text:e[i.textName],value:e[i.keyName],...e})),n&&n instanceof Function&&n(r.value))}finally{u.value=!1}}};let f,v=!1;const m=un(e=>{f!==e&&p(e),f=void 0,v=!1},300,{leading:!0}),g=()=>{const e=i.dataItems;(null==e?void 0:e.length)&&e.forEach(e=>{t("change",null,e.id)}),i.valueItem&&t("change",null,i.valueItem),t("change",null)},b=(i.linkView?1:0)+(i.pickupView?1:0),y=je();e.autoFocus&&$e(y,e=>{e&&e.focus()});const w=e=>{s.value=!1,h(e)},_=()=>{s.value=!1},E=()=>{s.value=!1,g()};return yo(()=>{s.value=!1}),{ns:a,c:i,curValue:o,items:r,pickerAutoCompleteRef:c,loading:u,openPickUpView:async t=>{if(t.stopPropagation(),e.disabled||e.readonly)return;const n=await i.openPickUpView(e.data,JSON.stringify((()=>{const t=[];if(o.value){const n={srfkey:e.data[i.valueItem],srfmajortext:o.value,..."OBJECT"===i.model.valueType&&e.value&&i.objectValueField?e.value[i.objectValueField]:{}};i.deACMode&&i.dataItems.length&&i.dataItems.forEach(t=>Object.assign(n,{[t.appDEFieldId]:e.data[t.id]})),t.push(n)}return t})()));n&&!n[0]&&g(),n&&n[0]&&await h(n[0])},openLinkView:async t=>{if(t.stopPropagation(),e.disabled||e.readonly)return;const n=await i.openLinkView(e.data);n&&n[0]&&await h(n[0])},onACSelect:async e=>{await h(e),l.value=!0},onSearch:p,editorRef:y,onFocus:()=>{t("focus")},onBlur:()=>{t("blur")},closeCircle:b,isDebounce:v,handleChange:e=>{const t=e.target.value;v=!0,m(t)},onConfirm:w,showPicker:s,openPicker:async()=>{e.disabled||e.readonly||(s.value=!0,p())},renderPopHeader:()=>Oe("div",{class:a.be("pop","header")},[Oe("div",{class:a.bem("pop","header","left")},[Oe(De("van-icon"),{name:"cross",onClick:_},null),Oe("span",{class:a.bem("pop","header","caption")},[ibiz.i18n.t("editor.dropdown.pleaseSelect")])]),Oe("div",{class:a.bem("pop","header","right"),onClick:E},[ibiz.i18n.t("editor.dropdown.clear")])]),renderPopContent:()=>Oe("div",{class:a.be("pop","content")},[Oe("div",{class:a.be("pop","search")},[Oe(De("van-field"),{modelValue:d.value,"onUpdate:modelValue":e=>d.value=e,placeholder:ibiz.i18n.t("editor.dropdown.searchPlaceholder")},{"left-icon":()=>Oe("ion-icon",{name:"search-outline"},null)})]),Oe("div",{class:a.be("pop","list")},[0!==r.value.length&&r.value.map(t=>{var n;if((null==(n=t[i.textName])?void 0:n.indexOf(d.value))<0)return;let r=(t[i.textName]||t.srfmajortext)===o.value;return i.valueItem&&(r=(t[i.keyName]||t.srfkey)===e.data[i.valueItem]),Oe("div",{class:a.bem("pop","list","item"),onClick:()=>w(t)},[Oe("div",{class:[a.bem("pop","list","item-text"),a.is("bkcolor",!!(null==t?void 0:t.bkcolor))],style:(null==t?void 0:t.color)||(null==t?void 0:t.bkcolor)?a.cssVarBlock({"pop-color-item":"".concat(t.color||""),"pop-color-item-bg":"".concat(t.bkcolor||"")}):""},[t[i.textName]]),r&&Oe(De("van-icon"),{class:a.bem("pop","list","selected"),name:"success"},null)])}),0===r.value.length&&Oe(De("iBizNoData"),null,null)])]),onPopClose:()=>{d.value=""}}},render(){return this.readonly?Oe("div",{class:[this.ns.b(),this.ns.m("readonly")]},[this.value||""]):Oe("div",{class:[this.ns.b(),this.disabled?this.ns.m("disabled"):""]},[Oe(De("van-field"),{ref:"editorRef",modelValue:this.curValue,"onUpdate:modelValue":e=>this.curValue=e,readonly:!0,placeholder:this.c.placeHolder,disabled:this.disabled,onClick:()=>{this.openPicker()}},{button:()=>this.$slots.append?this.$slots.append({}):this.readonly?null:[this.c.model.pickupAppViewId?Oe(De("van-button"),{size:"small",onClick:this.openPickUpView},{default:()=>[Oe("ion-icon",{name:"search",class:this.ns.e("pickup-search-icon")},null)]}):null,this.c.model.linkAppViewId?Oe(De("van-button"),{size:"small",onClick:this.openLinkView},{default:()=>[Oe("ion-icon",{name:"arrow-redo-sharp",class:this.ns.e("linkview-icon")},null)]}):null]}),Oe(De("van-popup"),{show:this.showPicker,"onUpdate:show":e=>this.showPicker=e,round:!0,"close-on-popstate":!0,position:"bottom",teleport:"body",style:{height:"50%"},onClose:this.onPopClose},{default:()=>[Oe("div",{class:this.ns.b("pop")},[this.renderPopHeader(),this.renderPopContent()])]})])}})),BD=e("b5",xe({name:"IBizMPicker",props:ue(),emits:Z(),setup(e,{emit:t}){const a=n("mpicker"),i=e.controller,o=je([]),r=je([]),s=je([]),l=je(!1),c=(e,t=!0)=>{const n=t?{...e}:{};return{srfkey:e[i.keyName]||e.srfkey,value:e[i.keyName]||e.srfkey,srfmajortext:e[i.textName]||e.srfmajortext,text:e[i.textName]||e.srfmajortext,[i.keyName]:e[i.keyName]||e.srfkey,[i.textName]:e[i.textName]||e.srfmajortext,...n}};$e(()=>e.value,()=>{(()=>{if(o.value=[],s.value=[],e.value){if("OBJECTS"===i.model.valueType)e.value.forEach(e=>{const t=mn(e);Object.assign(t,{[i.keyName]:e[i.objectIdField],[i.textName]:e[i.objectNameField]}),i.objectValueField&&(Object.assign(t,{...e[i.objectValueField]}),delete t[i.objectValueField]),t[i.keyName]&&s.value.push(c(t))});else if(i.objectIdField&&i.model.valueSeparator)e.value.split(i.model.valueSeparator).forEach(e=>{s.value.push(c({[i.keyName]:e}))});else try{s.value=JSON.parse(e.value).map(c)}catch(t){ibiz.log.error(ibiz.i18n.t("editor.mpicker.simpleErr",{value:e.value}))}s.value.forEach(e=>{o.value.push(e[i.keyName]);const t=r.value.findIndex(t=>Object.is(t[i.keyName],e[i.keyName])||Object.is(t.srfkey,e.srfkey));t<0&&r.value.push(c(e))})}})()},{immediate:!0,deep:!0});const u=qe(()=>s.value.map(e=>e.srfmajortext).join(","));return{ns:a,c:i,curValue:o,items:r,valueText:u,selectItems:s,showPicker:l,onSearch:async(t="")=>{if(i.model.appDataEntityId){const n=t.trim(),a=await i.getServiceData(n,e.data);a&&(r.value=a.data.map(e=>c(e)))}},onRemove:n=>{if(e.readonly||e.disabled)return;const a=s.value.findIndex(e=>Object.is(e[i.keyName],n));if(a>=0){s.value.splice(a,1);const e=[];let n=null;s.value.forEach(t=>{"OBJECTS"===i.model.valueType?e.push(i.handleObjectParams(t)):i.objectIdField&&i.model.valueSeparator?e.push(t[i.keyName]):e.push({[i.keyName]:t[i.keyName],[i.textName]:t[i.textName]})}),e.length>0&&(n="OBJECTS"===i.model.valueType?e:i.objectIdField&&i.model.valueSeparator?e.join(i.model.valueSeparator):JSON.stringify(e)),t("change",n)}},onSelect:async e=>{const n=[];let a=null;const o=e.map(e=>{let t=r.value.findIndex(t=>Object.is(t[i.keyName],e)),n={};return t>=0?n=r.value[t]:(t=s.value.findIndex(t=>Object.is(t[i.keyName],e)),t>=0&&(n=s.value[t])),n}),l=o.map(async e=>{const t=await i.calcFillDataItems(e),n={};return t.forEach(e=>{Object.assign(n,{[e.id]:e.value})}),n}),c=await Promise.all(l);o.forEach((e,t)=>{const a=c[t];"OBJECTS"===i.model.valueType?n.push({...i.handleObjectParams(e),...a}):i.objectIdField&&i.model.valueSeparator?n.push(e[i.keyName]):n.push({[i.keyName]:e[i.keyName],[i.textName]:e[i.textName],...a})}),n.length>0&&(a="OBJECTS"===i.model.valueType?n:i.objectIdField&&i.model.valueSeparator?n.join(i.model.valueSeparator):JSON.stringify(n)),t("change",a)},openPickUpView:async n=>{if(n.stopPropagation(),n.preventDefault(),e.disabled||e.readonly)return;let a;s.value.length&&(a=JSON.stringify(s.value));const o=await i.openPickUpView(e.data,a);o&&(async e=>{const n=[];if(e&&Array.isArray(e)){const t=e.map(async e=>{const t=await i.calcFillDataItems(e),n={};return t.forEach(e=>{Object.assign(n,{[e.id]:e.value})}),n}),a=await Promise.all(t);e.forEach((e,t)=>{Object.assign(e,{...c(e,!1),[i.keyName]:e[i.keyName]?e[i.keyName]:e.srfkey,[i.textName]:e[i.textName]?e[i.textName]:e.srfmajortext});const o=a[t];"OBJECTS"===i.model.valueType?n.push({...i.handleObjectParams(e),...o}):i.objectIdField&&i.model.valueSeparator?n.push(e[i.keyName]):n.push({[i.keyName]:e[i.keyName],[i.textName]:e[i.textName],...o}),r.value.findIndex(t=>Object.is(t[i.keyName],e[i.keyName]))<0&&r.value.push(e)})}let a=null;n.length>0&&(a="OBJECTS"===i.model.valueType?n:i.objectIdField&&i.model.valueSeparator?n.join(i.model.valueSeparator):JSON.stringify(n)),t("change",a)})(o)},openPicker:async()=>{},onFocus:()=>{t("focus")},onBlur:()=>{t("blur")}}},render(){return Oe("div",{class:[this.ns.b(),this.disabled?this.ns.m("disabled"):"",this.readonly?this.ns.m("readonly"):""],onClick:()=>{this.openPicker()},ref:"editorRef"},[this.readonly&&this.valueText,!this.readonly&&Oe(De("van-field"),{ref:"editorRef",modelValue:this.valueText,"onUpdate:modelValue":e=>this.valueText=e,clearable:!0,placeholder:this.c.placeHolder,disabled:this.disabled},{input:()=>{if(!this.selectItems.length)return Oe("div",{class:this.ns.e("placeholder")},[this.c.placeHolder]);const e=this.selectItems.length-1>0;return[this.selectItems.slice(0,1).map(e=>Oe("div",{class:this.ns.b("select-item")},[Oe("div",{class:this.ns.be("select-item","text")},[e.srfmajortext]),Oe("div",{class:this.ns.be("select-item","close")},[Oe(De("van-icon"),{name:"cross",onClick:t=>{t.stopPropagation(),this.onRemove(e[this.c.keyName])}},null)])])),e&&Oe("div",{class:[this.ns.b("select-item"),this.ns.bm("select-item","more")],onClick:e=>{this.c.model.pickupAppViewId&&this.openPickUpView(e)}},[Qe("+ "),this.selectItems.length-1])]},"right-icon":()=>this.$slots.append?this.$slots.append({}):this.readonly?null:[this.c.model.pickupAppViewId&&Oe(De("van-button"),{size:"small",onClick:e=>this.openPickUpView(e)},{default:()=>[Oe("ion-icon",{name:"search",class:this.ns.e("pickup-search-icon")},null)]})]})])}})),UD=e("b6",xe({name:"IBizPickerSelectView",props:ue(),emits:Z(),setup(e,{emit:t}){const a=n("picker-select-view"),i=e.controller,o=i.model,r=je(!0);o.editorParams&&o.editorParams.multiple&&(r.value=!i.toBoolean(o.editorParams.multiple));const s=je([]);let l=[];const c=je(""),u=je(Zt(i.context)),d=je(Zt(i.params)),{componentRef:h}=Q(()=>t("focus"),()=>t("blur"));$e(()=>e.value,t=>{if(c.value=t||"",r.value)e.data&&i.valueItem&&e.data[i.valueItem]?(l=[{srfkey:e.data[i.valueItem],srfmajortext:e.value}],d.value.selectedData=l):ibiz.log.error("值项异常");else{s.value=[];const n=[];if(t)if(e.data&&i.valueItem&&e.data[i.valueItem]){const a=e.data[i.valueItem].split(","),o=t.split(",");a.forEach((e,t)=>{n.push({srfmajortext:o[t],srfkey:e})}),n.forEach(e=>{s.value.push(e.srfkey)})}else ibiz.log.error("值项异常");l=n,d.value.selectedData=l}},{immediate:!0,deep:!0});const p=()=>{const e=i.dataItems;(null==e?void 0:e.length)&&e.forEach(e=>{t("change",null,e.id)}),i.valueItem&&t("change",null,i.valueItem),t("change",null)};return{ns:a,c:i,valueText:c,context:u,params:d,editorRef:h,onClear:p,openPicker:async n=>{if(n.stopPropagation(),e.disabled||e.readonly)return;let a="";l&&l.length&&(a=JSON.stringify(l));const o=await i.openPickUpView(e.data,a);o&&(e=>{if(0!==e.length)if(r.value){if(i.valueItem){const n=e[0][i.keyName]?e[0][i.keyName]:e[0].srfkey;t("change",n,i.valueItem)}const n=e[0][i.textName]?e[0][i.textName]:e[0].srfmajortext;t("change",n)}else{let n="",a="";e&&Array.isArray(e)&&e.forEach(e=>{const t=e[i.keyName]?e[i.keyName]:e.srfkey;n+="".concat(t,",");const o=e[i.textName]?e[i.textName]:e.srfmajortext;a+="".concat(o,",")}),n=n.substring(0,n.length-1),a=a.substring(0,a.length-1),i.valueItem&&t("change",n,i.valueItem),t("change",a)}else p()})(o)}}},render(){return Oe("div",{class:[this.ns.b(),this.disabled?this.ns.m("disabled"):"",this.readonly?this.ns.m("readonly"):""]},[this.readonly&&this.valueText,!this.readonly&&Oe(De("van-field"),{ref:"editorRef",modelValue:this.valueText,"onUpdate:modelValue":e=>this.valueText=e,readonly:!0,placeholder:this.c.placeHolder,disabled:this.disabled,onClick:this.openPicker},{button:()=>this.$slots.append?this.$slots.append({}):this.readonly?null:[this.c.model.pickupAppViewId?Oe(De("van-button"),{size:"small",onClick:this.openPicker},{default:()=>[Oe("ion-icon",{name:"search",class:this.ns.e("pickup-search-icon")},null)]}):null]})])}}));var zD=Object.defineProperty,RD=(e,t,n)=>(((e,t,n)=>{t in e?zD(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n),n);class FD extends ei{constructor(){super(...arguments),RD(this,"multiple",!1),RD(this,"pickupView",null),RD(this,"linkView",null),RD(this,"valueItem",""),RD(this,"keyName","srfkey"),RD(this,"textName","srfmajortext"),RD(this,"interfaceName",""),RD(this,"sort",""),RD(this,"noAC",!1),RD(this,"noButton",!1),RD(this,"deACMode"),RD(this,"dataItems",[]),RD(this,"objectIdField",""),RD(this,"objectNameField",""),RD(this,"objectValueField","")}async onInit(){var e,t,n,a;if(super.onInit(),this.initParams(),this.valueItem=(null==(e=this.model.valueItemName)?void 0:e.toLowerCase())||"",this.model.appDataEntityId&&(this.model.appDEDataSetId&&(this.interfaceName=this.model.appDEDataSetId),this.model.appDEACModeId&&(this.deACMode=await wn(this.model.appDEACModeId,this.model.appDataEntityId,this.context.srfappid),this.deACMode))){const{minorSortAppDEFieldId:e,minorSortDir:t}=this.deACMode;e&&t&&(this.sort="".concat(e.toLowerCase(),",").concat(t.toLowerCase())),this.deACMode.textAppDEFieldId&&(this.textName=this.deACMode.textAppDEFieldId),this.deACMode.valueAppDEFieldId&&(this.keyName=this.deACMode.valueAppDEFieldId),this.deACMode.deacmodeDataItems&&(this.dataItems=[],this.deACMode.deacmodeDataItems.forEach(e=>{"value"!==e.id&&"text"!==e.id&&this.dataItems.push(e)}))}this.model.editorType&&["PICKEREX_DROPDOWNVIEW","PICKEREX_DROPDOWNVIEW_LINK","PICKUPVIEW"].includes(this.model.editorType)&&this.initPickupViewParams(),this.objectIdField=null==(t=this.model.objectIdField)?void 0:t.toLowerCase(),this.objectNameField=null==(n=this.model.objectNameField)?void 0:n.toLowerCase(),this.objectValueField=null==(a=this.model.objectValueField)?void 0:a.toLowerCase()}initParams(){switch(this.model.editorType){case"PICKEREX_NOAC":case"PICKEREX_NOAC_LINK":this.noAC=!0;break;case"PICKEREX_NOBUTTON":this.noButton=!0;break;default:this.noButton=!1,this.noAC=!1}}async initPickupViewParams(){this.model.pickupAppViewId&&(this.pickupView=await ibiz.hub.config.view.get(this.model.pickupAppViewId))}async initLinkViewParams(){this.model.linkAppViewId&&(this.linkView=await ibiz.hub.config.view.get(this.model.linkAppViewId))}async getServiceData(e,t){const{context:n,params:a}=this.handlePublicParams(t,this.context,this.params),i={};this.sort&&!Object.is(this.sort,"")&&Object.assign(i,{sort:this.sort}),e&&Object.assign(i,{query:e}),Object.assign(i,{size:1e3});const o=tn(a,i);if(this.interfaceName){const e=ibiz.hub.getApp(this.context.srfappid);return await e.deService.exec(this.model.appDataEntityId,this.interfaceName,n,o)}throw new Ft(this.model,ibiz.i18n.t("editor.common.entityConfigErr"))}async openPickUpView(e,t){await this.initPickupViewParams();const{context:n,params:a}=this.handlePublicParams(e,this.context,this.params);if(t&&(a.selecteddata=t),!this.pickupView)throw new Ft(this.model,ibiz.i18n.t("editor.common.selectViewConfigErr"));const i=await ibiz.hub.config.view.get(this.pickupView.id),{openMode:o="POPUPMODAL"}=i,r=await ibiz.commands.execute(Cn.TAG,this.pickupView.id,n,a,{openMode:o});if(r&&r.ok&&r.data)return r.data;ibiz.log.debug("模态取消或关闭异常",r)}async openLinkView(e){const t=this.context.clone();e[this.valueItem]&&(t.srfkey=e[this.valueItem]);const{context:n,params:a}=this.handlePublicParams(e,t,this.params),{linkAppViewId:i}=this.model;if(!i)throw new Ft(this.model,ibiz.i18n.t("editor.common.linkViewConfigErr"));return ibiz.commands.execute(Cn.TAG,i,n,a)}async calcFillDataItems(e){if(this.deACMode){if(0===this.dataItems.length)return[];return await Promise.all(this.dataItems.map(t=>{const n=e[t.appDEFieldId];return t.format||t.convertToCodeItemText&&t.codeListId||t.customCode,{id:t.id,value:n}}))}return[]}handleObjectParams(e){const t={};return this.objectIdField&&Object.assign(t,{[this.objectIdField]:e[this.keyName]}),this.objectNameField&&Object.assign(t,{[this.objectNameField]:e[this.textName]}),this.objectValueField&&Object.assign(t,{[this.objectValueField]:Zt(e)}),t}}e("b7",FD);var $D=Object.defineProperty,qD=(e,t,n)=>(((e,t,n)=>{t in e?$D(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n),n);class WD{constructor(e){qD(this,"formEditor"),qD(this,"gridEditor");let t="IBizPicker";switch(e){case"MOBMPICKER":case"ADDRESSPICKUP":t="IBizMPicker";break;case"MOBPICKER_DROPDOWNVIEW":case"PICKEREX_DROPDOWNVIEW":t="IBizPickerSelectView"}this.formEditor=t,this.gridEditor=t}async createController(e,t){const n=new FD(e,t);return await n.init(),n}}function HD(e,t,n){const a=je([]),i=je({["".concat(ibiz.env.tokenHeader,"Authorization")]:"".concat(ibiz.env.tokenPrefix,"Bearer ").concat($t(qt.TOKEN))}),o=je(""),r=je(""),s=je(!1),l=je(null),c=je(null),u=je(!1),d=[{id:"file",name:ibiz.i18n.t("editor.upload.uploadFile")},{id:"folder",name:ibiz.i18n.t("editor.upload.uploadFolder")}];$e(()=>e.value,e=>{a.value=e?JSON.parse(e):[]},{immediate:!0}),$e(()=>e.data,e=>{if(e){const t={...n.editorParams,enableNoAccess:n.enableNoAccess,globalDownloadPrifix:n.globalDownloadPrifix};t.uploadparams&&(t.uploadParams=JSON.parse(t.uploadparams)),t.exportparams&&(t.exportParams=JSON.parse(t.exportparams));const a=ibiz.util.file.calcFileUpDownUrl(n.context,n.params,e,t);o.value=a.uploadUrl,r.value=a.downloadUrl}},{immediate:!0,deep:!0}),$e(a,t=>{(null==t?void 0:t.length)&&r.value&&t.forEach(t=>{t.url=t.url||r.value.replace("%fileId%",t.id),ibiz.config.common.enableDownloadTicket&&ibiz.util.file.getDownloadTicket(n.context,n.params,e.data,{fileId:t.id},n.downloadTicketParams).then(e=>{e&&e.ticket&&(t.url=r.value.replace("%fileId%",e.ticket))})})},{immediate:!0}),$e(r,e=>{e&&a.value.length&&a.value.forEach(e=>{e.url=r.value.replace("%fileId%",e.id)})},{immediate:!0});const h=()=>{const e=[...a.value],n=e.length>0?JSON.stringify(e.map(e=>({name:e.name,id:e.id}))):null;t(n)},p=e=>{e&&(ibiz.config.common.enableDownloadTicket&&e.ticket&&ibiz.util.file.setDownloadTicket(e.id,e.ticket),a.value.push({name:e.filename,id:e.fileid}),h())},f=(...e)=>{const t=e[0];throw new Gt({response:{data:JSON.parse(t.message),status:t.status}})},v=async e=>{const t=e.size/1024;let a=e;if(n.imgCompressQuality&&n.imgCompressLimit&&t>n.imgCompressLimit)try{a=await ibiz.util.file.compressImg(a,n.imgCompressMaxWidth,n.imgCompressQuality)}catch(e){ibiz.log.error(ibiz.i18n.t("editor.upload.compressError"))}const r=new FormData;if(r.append("file",a),n.unzip&&n.unzipfileext){const e=a.name,t=e.substring(e.lastIndexOf("."));-1!==n.unzipfileext.indexOf(t)&&r.append("unzip","true")}return new Promise((e,t)=>{ibiz.net.axios({url:o.value,method:"POST",data:r,headers:i.value}).then(n=>{200===n.status?(Array.isArray(n.data)?n.data.forEach(e=>p(e)):p(n.data),e(!0)):(f(n),t())}).catch(()=>{t()})})},m=qe(()=>n.multiple?9999:1);return{files:a,limit:m,loading:s,headers:i,uploadUrl:o,showSheet:u,actionSheet:d,downloadUrl:r,fileSelectRef:l,folderSelectRef:c,onError:f,onRemove:t=>{if(e.disabled)return;const n=a.value.findIndex(e=>e.id===t.id);-1!==n&&a.value.splice(n,1),h()},onSuccess:p,afterRead:async e=>{if(n.showLoading&&(s.value=!0),e.length&&e.length>0)for(let t=0;t<e.length;t++){const n=e[t];await v(n.file)}else await v(e.file);n.showLoading&&(s.value=!1)},onDownload:e=>{const t=e.url||r.value.replace("%fileId%",e.id);n.fileDownload({url:t,name:e.name})},beforeUpload:()=>!(!n.multiple&&1===a.value.length),handleButtonClick:e=>{var t,a;switch(e.stopPropagation(),n.uploadmode){case"ALL":u.value=!0;break;case"FOLDER":null==(t=c.value)||t.click();break;default:null==(a=l.value)||a.click()}},handleFilesSelect:e=>{const t=e.target.files;t&&0!==t.length&&Array.from(t).forEach(e=>v(e))},handleActionSheetSelect:e=>{var t,n;"file"===e.id?null==(t=l.value)||t.click():null==(n=c.value)||n.click()}}}e("b8",WD);const GD=e("bP",xe({name:"IBizFileUpload",props:de(),emits:Z(),setup(e,{emit:t}){const a=n("file-upload"),i=e.controller,{files:o,limit:r,headers:s,loading:l,showSheet:c,uploadUrl:u,actionSheet:d,fileSelectRef:h,folderSelectRef:p,onRemove:f,afterRead:v,onDownload:m,beforeUpload:g,handleFilesSelect:b,handleButtonClick:y,handleActionSheetSelect:w}=HD(e,e=>{t("change",e)},i),_=e=>{const t=e.lastIndexOf(".");if(-1===t)return"";return e.substring(t+1).toLowerCase()};return{c:i,ns:a,limit:r,files:o,headers:s,loading:l,showSheet:c,uploadUrl:u,actionSheet:d,fileSelectRef:h,folderSelectRef:p,onRemove:f,afterRead:v,onDownload:m,getFileName:e=>{const t=e.lastIndexOf(".");if(-1===t)return e;return e.substring(0,t)},beforeUpload:g,getFileSuffix:_,getPreviewImg:e=>{const t=_(e),n=i.fileTypeMap.get(t)||"unknown";return"./assets/img/file/".concat(n,".svg")},handleFilesSelect:b,handleButtonClick:y,handleActionSheetSelect:w}},render(){return Oe("div",{class:[this.ns.b(),this.ns.is("single",!this.c.multiple&&!!this.files.length),this.disabled?this.ns.m("disabled"):"",this.readonly?this.ns.m("readonly"):""]},["DEFAULT"===this.c.uploadmode?Oe(De("van-uploader"),Te({modelValue:this.files,disabled:this.disabled,multiple:this.c.multiple,accept:this.c.accept,"max-count":this.limit,"before-read":this.beforeUpload,"after-read":this.afterRead,"before-delete":this.onRemove},m(this.$attrs)),{default:()=>this.readonly||this.disabled?null:Oe(De("van-button"),{icon:"add-o",type:"primary",loading:this.loading,class:this.ns.b("button")},null),"preview-cover":e=>Oe("div",{class:this.ns.b("item-cover")},[e.name])}):Oe("div",{class:this.ns.e("custom")},[this.readonly||this.disabled?null:Oe(De("van-button"),{icon:"add-o",type:"primary",loading:this.loading,class:this.ns.b("button"),onClick:this.handleButtonClick},null),Oe(De("van-action-sheet"),{"close-on-click-action":!0,actions:this.actionSheet,show:this.showSheet,"onUpdate:show":e=>this.showSheet=e,onSelect:this.handleActionSheetSelect},null),Oe("input",{type:"file",ref:"fileSelectRef",accept:this.c.accept,multiple:this.c.multiple,style:{display:"none"},onChange:this.handleFilesSelect},null),Oe("input",Te({type:"file",ref:"folderSelectRef",style:{display:"none"}},{webkitdirectory:!0,directory:!0},{onChange:this.handleFilesSelect}),null)]),this.files.length>0&&this.c.showfilelist&&Oe("div",{class:this.ns.b("preview")},[this.files.map(e=>Oe("div",{class:this.ns.b("preview-item"),onClick:()=>{this.onDownload(e)}},[Oe("div",{class:this.ns.b("preview-item-left")},[Oe("div",{class:this.ns.b("preview-item-img")},[Oe("img",{src:this.getPreviewImg(e.name),alt:""},null)]),Oe("div",{class:this.ns.b("preview-item-text")},[Oe("div",{class:this.ns.b("preview-item-name")},[this.getFileName(e.name)]),this.getFileSuffix(e.name)&&Oe("div",{class:this.ns.b("preview-item-suffix")},[Qe("."),this.getFileSuffix(e.name)])])]),!this.readonly&&!this.disabled&&Oe("div",{class:this.ns.b("preview-item-action")},[Oe(De("van-icon"),{name:"cross",onClick:t=>{t.stopPropagation(),this.onRemove(e)}},null)])]))])])}})),YD=e("bQ",xe({name:"IBizImageUpload",props:de(),emits:Z(),setup(e,{emit:t}){var a,i;const o=n("image-upload"),r=e.controller;let s="false"!==(null==(a=r.editorParams)?void 0:a.STOPPROPAGATION);(null==(i=r.editorParams)?void 0:i.stoppropagation)&&(s="false"!==r.editorParams.stoppropagation);const{uploadUrl:l,headers:c,files:u,onRemove:d,beforeUpload:h,afterRead:p,limit:f,onDownload:v}=HD(e,e=>{t("change",e)},r),m=e=>{const t=u.value.findIndex(t=>t.id===e.id);wt({images:u.value.map(e=>e.url),startPosition:t})};return{ns:o,c:r,files:u,limit:f,headers:c,uploadUrl:l,result:s,beforeUpload:h,onRemove:d,onPreview:m,afterRead:p,onDownload:v,onClick:(e,t)=>{s&&(t.stopPropagation(),m(e))}}},render(){return Oe("div",{class:[this.ns.b(),this.disabled?this.ns.m("disabled"):"",this.readonly?this.ns.m("readonly"):""]},[Oe(De("van-uploader"),Te({modelValue:this.files,disabled:this.disabled,readonly:this.readonly,multiple:this.c.multiple,accept:this.c.accept,"max-count":this.limit,deletable:!this.disabled&&!this.readonly,"before-read":this.beforeUpload,"after-read":this.afterRead,"before-delete":this.onRemove,"preview-full-image":this.result},m(this.$attrs)),{"preview-cover":e=>Oe("div",{class:this.ns.b("item-cover"),onClick:t=>this.onClick(e,t)},[Oe("img",{src:e.url},null)])})])}})),XD=e("bR",xe({name:"IBizImageSelect",props:de(),emits:Z(),setup(e,{emit:t}){var a,i;const o=n("image-select"),r=e.controller;let s="false"!==(null==(a=r.editorParams)?void 0:a.STOPPROPAGATION);(null==(i=r.editorParams)?void 0:i.stoppropagation)&&(s="false"!==r.editorParams.stoppropagation);const l=je(""),{files:c}=HD(e,e=>{t("change",e)},r),u=e=>{wt({images:c.value.map(e=>e.url)})};return{ns:o,c:r,files:c,svg:l,result:s,onPreview:u,onClick:(e,t)=>{s&&(t.stopPropagation(),u())}}},render(){return Oe("div",{class:[this.ns.b()]},[Oe(De("van-uploader"),Te({modelValue:this.files,disabled:this.disabled,multiple:!1,accept:this.c.accept,"max-count":1,deletable:!1,readonly:!0,"preview-full-image":this.result},m(this.$attrs)),{"preview-cover":e=>Oe("div",{class:this.ns.b("item-cover"),onClick:t=>this.onClick(e,t)},[Oe("img",{src:e.url},null)])})])}})),JD=e("bS",xe({name:"IBizEditorCarousel",props:de(),emits:Z(),setup(e,{emit:t}){const a=n("carousel"),i=e.controller,{files:o}=HD(e,e=>{t("change",e)},i),r=i.model;let s=3e3,l=500,c=!0,u=!0;r.editorParams&&(r.editorParams.autoplay&&(s=fn(r.editorParams.autoplay)),r.editorParams.duration&&(l=fn(r.editorParams.duration)),r.editorParams.showIndicators&&(c="true"===r.editorParams.showIndicators),r.editorParams.showindicators&&(c="true"===r.editorParams.showindicators),r.editorParams.touchable&&(u="true"===r.editorParams.touchable));return{ns:a,c:i,images:qe(()=>o.value.map(e=>({rawContent:e.url}))),autoplay:s,duration:l,showIndicators:c,touchable:u}},render(){return Oe("div",{class:[this.ns.b(),this.disabled?this.ns.m("disabled"):"",this.readonly?this.ns.m("readonly"):""]},[Oe(De("iBizCarousel"),{images:this.images,autoplay:this.autoplay,duration:this.duration,showIndicators:this.showIndicators,touchable:this.touchable,attrs:this.$attrs},null)])}})),KD=e("bT",xe({name:"IBizImageCropping",props:de(),emits:Z(),setup(e,{emit:t}){var a,i,o,r,s,l;const c=n("image-upload-cropping"),u=e.controller,d=je(!1),h=je();let p="false"!==(null==(a=u.editorParams)?void 0:a.STOPPROPAGATION);(null==(i=u.editorParams)?void 0:i.stoppropagation)&&(p="false"!==u.editorParams.stoppropagation);const f={};(null==(o=u.editorParams)?void 0:o.cropWidth)&&Object.assign(f,{cropareaWidth:Number(u.editorParams.cropWidth)}),(null==(r=u.editorParams)?void 0:r.cropwidth)&&Object.assign(f,{cropareaWidth:Number(u.editorParams.cropwidth)}),(null==(s=u.editorParams)?void 0:s.cropHeight)&&Object.assign(f,{cropareaHeight:Number(u.editorParams.cropHeight)}),(null==(l=u.editorParams)?void 0:l.cropheight)&&Object.assign(f,{cropareaHeight:Number(u.editorParams.cropheight)});const{uploadUrl:v,headers:m,files:g,onRemove:b,beforeUpload:y,afterRead:w,limit:_,onDownload:E}=HD(e,e=>{t("change",e)},u),P=e=>{const t=g.value.findIndex(t=>t.id===e.id);wt({images:g.value.map(e=>e.url),startPosition:t})},N=qe(()=>h.value?h.value.content:"");return{ns:c,c:u,files:g,limit:_,headers:m,uploadUrl:v,result:p,beforeUpload:y,onRemove:b,onPreview:P,cropReadedFile:e=>{h.value=e,d.value=!0},onDownload:E,onClick:(e,t)=>{p&&(t.stopPropagation(),P(e))},show:d,tempFile:h,cropImgUrl:N,cropRect:f,cropChange:e=>{if(d.value=!1,!e)return void ibiz.message.info(ibiz.i18n.t("editor.upload.cancelUpload"));const t=(e=>{const t=atob(e.split(",")[1]),n=e.split(",")[0].split(":")[1].split(";")[0],a=new ArrayBuffer(t.length),i=new Uint8Array(a);for(let e=0;e<t.length;e++)i[e]=t.charCodeAt(e);return new Blob([a],{type:n})})(e),n=new File([t],"cropimg.png",{type:t.type});n&&h.value&&(h.value.file=n,w(h.value))}}},render(){return Oe("div",{class:[this.ns.b(),this.disabled?this.ns.m("disabled"):"",this.readonly?this.ns.m("readonly"):""]},[Oe(De("van-uploader"),Te({ref:"uploadRef",modelValue:this.files,disabled:this.disabled,readonly:this.readonly,multiple:!1,accept:this.c.accept,"max-count":this.limit,deletable:!this.disabled&&!this.readonly,"auto-upload":!1,"before-read":this.beforeUpload,"after-read":this.cropReadedFile,"before-delete":this.onRemove,"preview-full-image":this.result},m(this.$attrs)),{"preview-cover":e=>Oe("div",{class:this.ns.b("item-cover"),onClick:t=>this.onClick(e,t)},[Oe("img",{src:e.url},null)])}),Oe(De("van-popup"),{show:this.show,"onUpdate:show":e=>this.show=e,class:this.ns.e("crop-popup")},{default:()=>[Oe(De("iBizCropping"),Te({url:this.cropImgUrl,show:this.show,onChange:this.cropChange},this.cropRect),null)]})])}}));var QD=Object.defineProperty,ZD=(e,t,n)=>(((e,t,n)=>{t in e?QD(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n),n);class eT extends ei{constructor(){super(...arguments),ZD(this,"isDrag",!1),ZD(this,"multiple",!0),ZD(this,"accept",""),ZD(this,"uploadParams"),ZD(this,"exportParams"),ZD(this,"enableNoAccess",!1),ZD(this,"globalDownloadPrifix",!1),ZD(this,"unzip",!1),ZD(this,"unzipfileext",".zip,.rar,.7z"),ZD(this,"uploadmode","DEFAULT"),ZD(this,"showfilelist",!0),ZD(this,"fileTypeMap",new Map([["docx","docx"],["doc","docx"],["dotx","docx"],["dot","docx"],["pdf","pdf"],["txt","text"],["xlsx","excel"],["xls","excel"],["xlsm","excel"],["xlsb","excel"],["csv","excel"],["pptx","ppt"],["jpg","img"],["png","img"],["gif","img"],["bmp","img"],["svg","img"],["mp3","audio"],["wav","audio"],["aac","audio"],["flac","audio"],["wma","audio"],["mp4","video"],["avi","video"],["mov","video"],["mkv","video"],["wmv","video"],["zip","zip"],["rar","zip"],["7z","zip"],["gz","zip"],["tar","zip"]]))}get showLoading(){return this.editorParams.showloading?Boolean(this.editorParams.showloading):ibiz.config.mob.showUploadLoading}get imgCompressLimit(){return this.editorParams.imgcompresslimit?Number(this.editorParams.imgcompresslimit):ibiz.config.imgCompressConfig.limit}get imgCompressQuality(){return this.editorParams.imgcompressquality?Number(this.editorParams.imgcompressquality):ibiz.config.imgCompressConfig.quality}get imgCompressMaxWidth(){return this.editorParams.imgcompressmaxwidth?Number(this.editorParams.imgcompressmaxwidth):ibiz.config.imgCompressConfig.maxWidth}async onInit(){var e;if(await super.onInit(),(null==(e=this.model.editorType)?void 0:e.includes("PICTURE"))&&(this.accept="image/*"),["MOBSINGLEFILEUPLOAD","MOBPICTURE","MOBPICTURE_RAW","FILEUPLOADER_ONE","PICTURE_ONE","PICTURE_ONE_RAW"].includes(this.model.editorType)&&(this.multiple=!1),this.editorParams){const{isDrag:e,multiple:t,accept:n,uploadParams:a,exportParams:i,uploadparams:o,exportparams:r,enablenoaccess:s,unzip:l,uploadmode:c,unzipfileext:u,showfilelist:d,globaldownloadprifix:h}=this.editorParams;if(e&&(this.isDrag=Boolean(e)),t&&(this.multiple=Boolean(t)),n&&(this.accept=n),l&&(this.unzip="true"===l),u&&(this.unzipfileext=u),c&&(this.uploadmode=c),d&&(this.showfilelist="true"===d),a)try{this.uploadParams=JSON.parse(a)}catch(e){throw new Ft(a,ibiz.i18n.t("editor.upload.uploadJsonFormatErr"))}if(o)try{this.uploadParams=JSON.parse(o)}catch(e){throw new Ft(o,ibiz.i18n.t("editor.upload.uploadJsonFormatErr"))}if(i)try{this.exportParams=JSON.parse(i)}catch(e){throw new Ft(i,ibiz.i18n.t("editor.upload.exportJsonFormatErr"))}if(r)try{this.exportParams=JSON.parse(r)}catch(e){throw new Ft(r,ibiz.i18n.t("editor.upload.exportJsonFormatErr"))}s&&(this.enableNoAccess="true"===s),this.globalDownloadPrifix="true"===h||ibiz.config.common.globalDownloadPrifix}}fileDownload(e){ibiz.platform.download(e.url,e.name)}}e("bU",eT);var tT=Object.defineProperty,nT=(e,t,n)=>(((e,t,n)=>{t in e?tT(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n),n);class aT{constructor(e){nT(this,"formEditor","IBizFileUpload"),nT(this,"gridEditor","IBizGridFileUpload");let t="IBizFileUpload";switch(e){case"MOBPICTURE":case"MOBPICTURELIST":case"PICTURE_ONE":case"PICTURE":t="IBizImageUpload";break;case"MOBPICTURE_RAW":case"PICTURE_ONE_RAW":t="IBizImageSelect";break;case"MOBPICTURE_CROPPING":case"PICTURE_CROPPING":t="IBizImageCropping";break;case"CAROUSEL":t="IBizEditorCarousel"}this.formEditor=t}async createController(e,t){const n=new eT(e,t);return await n.init(),n}}e("bV",aT);const iT=e("bo",xe({name:"IBizNumberRangePicker",props:he(),emits:Z(),setup(e,{emit:t}){const a=n("number-range-picker"),i=e.controller,o=i.model,r=je(!1);let s=1/0,l=-1/0,c=0,u="-",d="",h="",p="~";o.editorParams&&(o.editorParams.maxValue&&(s=fn(o.editorParams.maxValue)),o.editorParams.maxvalue&&(s=fn(o.editorParams.maxvalue)),o.editorParams.minValue&&(l=fn(o.editorParams.minValue)),o.editorParams.minvalue&&(l=fn(o.editorParams.minvalue)),o.editorParams.precision&&(c=fn(o.editorParams.precision)),o.editorParams.valueSeparator&&(u=o.editorParams.valueSeparator),o.editorParams.valueseparator&&(u=o.editorParams.valueseparator),o.editorParams.startPlaceHolder&&(d=o.editorParams.startPlaceHolder),o.editorParams.startplaceholder&&(d=o.editorParams.startplaceholder),o.editorParams.endPlaceHolder&&(h=o.editorParams.endPlaceHolder),o.editorParams.endplaceholder&&(h=o.editorParams.endplaceholder),o.editorParams.rangeSeparator&&(p=o.editorParams.rangeSeparator),o.editorParams.rangeseparator&&(p=o.editorParams.rangeseparator));const f=je([]),v=o.editorItems;if(v&&v.length>0){const e=v.map(e=>e.id);f.value=e}const m=je(null),g=je(null);let b,y;const w=e=>null===e?null:0===e&&1/e==-1/0?"-0":String(e),_=()=>{const e=["".concat(w(m.value)),"".concat(w(g.value))].join(u);return e===u?"":e};$e(()=>e.value,(e,t)=>{if(e!==t&&"string"==typeof e){const[t,n]=(e=>{const t=e.trim();if(!t)return[null,null];const n=[];for(let e=0;e<t.length;e++)t[e]===u&&n.push(e);if(0===n.length)return[null,null];const a=e=>{if("null"===(e=e.trim())||""===e)return null;const t=Number(e);return Number.isNaN(t)?null:t},i=e=>null!==a(e)||"null"===e.trim()||""===e.trim();let o=null,r=0;for(const e of n){const n=t.slice(0,e),a=t.slice(e+1);if(i(n)&&i(a)&&(r++,o=e,r>1))break}return 1!==r||null===o?[null,null]:[a(t.slice(0,o)),a(t.slice(o+1))]})(e);m.value=t,g.value=n,b=m.value,y=g.value}},{immediate:!0});const E=(e,n,a="blur")=>{a===i.triggerMode&&t("change",e,n)},{componentRef:P}=Q(()=>{r.value=!0,t("focus")},()=>{_()!==e.value&&E(_(),void 0);const[n,a]=f.value;if(n&&m.value!==e.data[n]){let e=m.value;"-"===m.value&&(e=null),E(e,n)}if(a&&g.value!==e.data[a]){let e=g.value;"-"===g.value&&(e=null),E(e,a)}r.value=!1,t("blur")}),N=()=>{E("",void 0,i.triggerMode);const[e,t]=f.value;e&&E(null,e,i.triggerMode),t&&E(null,t,i.triggerMode)};return{ns:a,c:i,refFormItem:f,minValue:m,maxValue:g,handleChange:(e,t)=>{const n=""===e.target.value?null:"-"===e.target.value?e.target.value:Number(e.target.value);if(0===t?m.value=n:1===t&&(g.value=n),_()!==(()=>{const e=["".concat(w(b)),"".concat(w(y))].join(u);return e===u?"":e})()&&E(_(),void 0,"input"),0===t&&n===b||1===t&&n===y)return;const a=f.value[t];a&&E(n,a,"input"),0===t?b=n:1===t&&(y=n)},max:s,min:l,precision:c,valueSeparator:u,startPlaceHolder:d,endPlaceHolder:h,rangeSeparator:p,editorRef:P,renderClear:()=>e.readonly||e.disabled?null:(m.value||0===m.value||g.value||0===g.value)&&r.value?Oe(De("van-icon"),{class:a.e("clear-icon"),name:"clear",onClick:N},null):null,numberToString:w}},render(){return Oe("div",{class:[this.ns.b(),this.disabled?this.ns.m("disabled"):"",this.readonly?this.ns.m("readonly"):""],ref:"editorRef"},[Oe(De("van-field"),{modelValue:this.numberToString(this.minValue),disabled:this.disabled,readonly:this.readonly,placeholder:this.startPlaceHolder,type:"number",class:this.ns.e("start"),onInput:e=>this.handleChange(e,0)},null),Oe("div",{class:this.ns.b("separator")},[this.rangeSeparator]),Oe(De("van-field"),{type:"number",modelValue:this.numberToString(this.maxValue),disabled:this.disabled,readonly:this.readonly,placeholder:this.endPlaceHolder,class:this.ns.e("end"),onInput:e=>this.handleChange(e,1)},null),this.renderClear()])}}));class oT extends ei{}e("bp",oT);var rT=Object.defineProperty,sT=(e,t,n)=>(((e,t,n)=>{t in e?rT(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n),n);class lT{constructor(){sT(this,"formEditor","IBizNumberRangePicker"),sT(this,"gridEditor","IBizNumberRangePicker")}async createController(e,t){const n=new oT(e,t);return await n.init(),n}}e("bq",lT);const cT=e("bc",xe({name:"IBizDateRangePicker",props:pe(),emits:Z(),setup(e,{emit:t}){const a=n("date-range-picker"),i=e.controller,o=i.model,r=Li().year(),s=r-100,l=r+100,c=je(null),u=je(null);let d=[];const h={title:ibiz.i18n.t("editor.datePicker.title"),cancel:ibiz.i18n.t("editor.datePicker.clear"),confirm:ibiz.i18n.t("editor.datePicker.confirm"),year:ibiz.i18n.t("editor.datePicker.year"),month:ibiz.i18n.t("editor.datePicker.month"),day:ibiz.i18n.t("editor.datePicker.day"),hour:ibiz.i18n.t("editor.datePicker.hour"),min:ibiz.i18n.t("editor.datePicker.min"),sec:ibiz.i18n.t("editor.datePicker.sec")};let p=",",f="",v="",m="~";const g=je(""),b=i.showmode,y=je(!1),w=je(),_=je();o.editorParams&&(o.editorParams.valueSeparator&&(p=o.editorParams.valueSeparator),o.editorParams.valueseparator&&(p=o.editorParams.valueseparator),o.editorParams.startPlaceHolder&&(f=o.editorParams.startPlaceHolder),o.editorParams.startplaceholder&&(f=o.editorParams.startplaceholder),o.editorParams.endPlaceHolder&&(v=o.editorParams.endPlaceHolder),o.editorParams.endplaceholder&&(v=o.editorParams.endplaceholder),o.editorParams.rangeSeparator&&(m=o.editorParams.rangeSeparator),o.editorParams.rangeseparator&&(m=o.editorParams.rangeseparator));const E=je("YYYY-MM-DD"),P=i.valueFormat;P&&(E.value=P);const N=je([]),I=o.editorItems;if(I&&I.length>0){const e=I.map(e=>e.id);N.value=e}const A=qe(()=>{if(N.value&&N.value.length>0){return N.value.map(t=>e.data[t]||"")}return e.value&&"string"==typeof e.value?(d=e.value.split(p),e.value.split(p)):[]}),k=qe(()=>{var e;return(null==(e=A.value)?void 0:e[0])||g.value||""}),C=qe(()=>{var e;return(null==(e=A.value)?void 0:e[1])||""}),S=qe(()=>""===A.value[0]&&""===A.value[1]?"":A.value.join(" ~ ")),M=(e,n)=>{const a=Li(e).format(E.value);if(E.value&&"Invalid Date"!==a?d[n]=a:d[n]=e,g.value=d[0],2===d.length&&(-1===d.findIndex(e=>!!e)?t("change",""):t("change",d.join(p))),N.value){const a=N.value[n];a&&t("change",e,a)}},x=(e,t)=>{var n;const a=null==(n=null==e?void 0:e.target)?void 0:n.classList.value;a&&a.includes("rolldate-cancel")&&M("",t)};Be(()=>{const t={format:E.value,beginYear:s,endYear:l,minStep:1,lang:h,trigger:"click",init:()=>{if(e.disabled||e.readonly)return!1}},n=w.value;n&&(c.value=new SD({el:n,value:k.value,confirm:e=>(M(e,0),e),cancel:e=>{x(e,0)},...t}));const a=_.value;a&&(u.value=new SD({el:a,value:C.value,confirm:e=>(M(e,1),e),cancel:e=>{x(e,1)},...t}))});const O=()=>{var e,t,n,a,i,o,r,s;null==(t=null==(e=w.value)?void 0:e.hide)||t.call(e),null==(a=null==(n=_.value)?void 0:n.hide)||a.call(n),null==(o=null==(i=c.value)?void 0:i.hide)||o.call(i),null==(s=null==(r=u.value)?void 0:r.hide)||s.call(r)};yo(O);const D=()=>{y.value=!1},T=e=>{e.forEach((e,t)=>{M(e,t)}),y.value=!1};Fe(()=>{O()});return{ns:a,c:i,refFormItem:N,format:E,valueSeparator:p,startPlaceHolder:f,endPlaceHolder:v,rangeSeparator:m,startEditorRef:w,endEditorRef:_,endFormatValue:C,startFormatValue:k,rangeText:S,showmode:b,openCalendar:()=>{y.value=!0},renderCalendarMode:()=>Oe(De("van-popup"),{show:y.value,"onUpdate:show":e=>y.value=e,position:"left",style:{height:"100%"}},{default:()=>Oe(zd,{value:A.value,onCancel:D,onSave:T},null)}),onFocus:()=>{t("focus")},onBlur:()=>{t("blur")},expandHidden:e=>Oe("span",{class:a.e("expand-hidden")},[e])}},render(){return"CALENDAR"===this.showmode?Oe("div",{class:[this.ns.b(),this.disabled?this.ns.m("disabled"):"",this.readonly?this.ns.m("readonly"):""]},[Oe(De("van-field"),{class:this.ns.e("calendar-input"),disabled:this.disabled,type:"text",modelValue:this.rangeText,"onUpdate:modelValue":e=>this.rangeText=e,readonly:!0,placeholder:this.c.placeHolder,onClick:this.openCalendar},null),this.renderCalendarMode()]):Oe("div",{class:[this.ns.b(),this.disabled?this.ns.m("disabled"):"",this.readonly?this.ns.m("readonly"):""]},[Oe("div",{class:[this.ns.e("content"),this.ns.is("start",!0)]},[this.expandHidden(this.startFormatValue||this.startPlaceHolder),Oe(De("van-field"),{class:this.ns.e("input")},{input:Oe("input",{ref:"startEditorRef",type:"text",value:this.startFormatValue,placeholder:this.startPlaceHolder,onBlur:this.onBlur,onFocus:this.onFocus,disabled:this.disabled,readonly:this.readonly},null)})]),Oe("div",{class:this.ns.b("separator")},[this.rangeSeparator]),Oe("div",{class:[this.ns.e("content"),this.ns.is("end",!0)]},[this.expandHidden(this.endFormatValue||this.endPlaceHolder),Oe(De("van-field"),{class:this.ns.e("input")},{input:Oe("input",{ref:"endEditorRef",type:"text",value:this.endFormatValue,placeholder:this.endPlaceHolder,onBlur:this.onBlur,onFocus:this.onFocus,disabled:this.disabled,readonly:this.readonly},null)})])])}}));var uT=Object.defineProperty,dT=(e,t,n)=>(((e,t,n)=>{t in e?uT(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,t+"",n),n);class hT extends ei{constructor(){super(...arguments),dT(this,"showmode","DEFAULT")}async onInit(){var e,t;super.onInit(),this.placeHolder||(this.placeHolder=ibiz.i18n.t("editor.dateRangePicker.selectRange")),"CALENDAR"===(null==(e=this.editorParams)?void 0:e.SHOWMODE)&&(this.showmode="CALENDAR"),"CALENDAR"===(null==(t=this.editorParams)?void 0:t.showmode)&&(this.showmode="CALENDAR")}getFormatByType(){switch(this.model.editorType){case"MOBDATERANGE":case"DATERANGE":default:return"YYYY-MM-DD hh:mm:ss";case"MOBDATERANGE_NOTIME":case"DATERANGE_NOTIME":return"YYYY-MM-DD"}}get valueFormat(){return this.model.dateTimeFormat?this.model.dateTimeFormat:super.valueFormat?super.valueFormat:this.getFormatByType()}}e("bd",hT);var pT=Object.defineProperty,fT=(e,t,n)=>(((e,t,n)=>{t in e?pT(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n),n);class vT{constructor(){fT(this,"formEditor","IBizDateRangePicker"),fT(this,"gridEditor","IBizDateRangePicker")}async createController(e,t){const n=new hT(e,t);return await n.init(),n}}e("be",vT);const mT=e("aX",xe({name:"IBizCascader",props:fe(),emits:Z(),setup(e,{emit:t}){const a=n("cascader"),i=e.controller,o=i.model,r=o.editorItems||[],s=je(void 0);let l,c="/";o.editorParams&&(o.editorParams.separator&&(c=o.editorParams.separator),o.editorParams.leaffield&&(l=o.editorParams.leaffield));const u=je([]),d=je([]),h=je(r.map(e=>({name:e.id,value:void 0}))),p=je(!1),f=je(!1),v=()=>{p.value=!1};$e(()=>e.data,e=>{e&&h.value.forEach(t=>{t.value=e[t.name]})},{immediate:!0,deep:!0});const m=async(e,t=0,n=[])=>{const c=()=>{const e=t>1?n[t-2].value:void 0;s.value=void 0,setTimeout(()=>{s.value=e})};try{f.value=!0;const{appDataEntityId:n,appDEDataSetId:s}=r[t];if(n&&s){const{context:h,params:p}=await(async(e,t)=>{const n=i.context.clone(),a={...i.params};if(e>0){const{appDataEntityId:n}=r[e-1],{appId:i,appDataEntityId:o}=r[e],s=await ibiz.hub.getAppDataEntity(o,i),{minorAppDERSs:l}=s;if(l){const e=l.find(e=>e.majorAppDataEntityId===n);e&&e.parentAppDEFieldId&&t&&Object.assign(a,{["n_".concat(e.parentAppDEFieldId.toLowerCase(),"_eq")]:t})}}return{context:n,params:a}})(t,null==e?void 0:e.value),f=ibiz.hub.getApp(o.appId),v=await f.deService.exec(n,s,h,p);if(v.ok&&Array.isArray(v.data)){const n=v.data.map(e=>({data:e,isLoaded:!1,value:e.srfkey,text:e.srfmajortext?e.srfmajortext:ibiz.i18n.t("editor.cascader.title",{index:t}),children:t===r.length-1||l&&e[l]?void 0:[]}));e?(e.isLoaded=!0,e.children=n.length?n:void 0):u.value=n.length?n:[{data:{},value:"empty",isLoaded:!0,disabled:!0,text:ibiz.i18n.t("editor.cascader.noData"),className:a.e("empty")}],d.value.push(...n),n.length||c()}}else c()}catch(e){ibiz.log.error(e),c()}finally{f.value=!1}};return yo(v),{c:i,ns:a,show:p,nodes:u,isLoading:f,selectValue:s,valueItemData:h,onBlur:()=>{t("blur")},onFocus:()=>{t("focus")},onClose:v,onChange:e=>{const{tabIndex:t,value:n,selectedOptions:a}=e,i=t+1,o=d.value.find(e=>e.value===n);!o||o.isLoaded||i===r.length||l&&o.data[l]||m(o,i,a)},openPopup:()=>{e.disabled||e.readonly||((async()=>{u.value=[],d.value=[],await m()})(),p.value=!p.value)},onFinishSelect:e=>{v();const{selectedOptions:n=[]}=e,a=n.map(e=>e.text);h.value.forEach((e,a)=>{e.value=a<n.length?n[a].value:void 0,t("change",e.value,e.name)}),t("change",a.length>0?a.join(c):null)}}},render(){return Ye(Oe("div",{class:[this.ns.b(),this.disabled?this.ns.m("disabled"):"",this.readonly?this.ns.m("readonly"):""]},[this.readonly&&this.value,!this.readonly&&Oe(De("van-field"),{modelValue:this.value,readonly:!0,disabled:this.disabled,placeholder:this.c.placeHolder,onBlur:this.onBlur,onFocus:this.onFocus,onClick:this.openPopup},{"right-icon":!this.readonly&&Oe(xO,null,null)}),Oe(De("van-popup"),{round:!0,teleport:"body",position:"bottom",show:this.show,"onUpdate:show":e=>this.show=e,"close-on-popstate":!0},{default:()=>[Oe(De("van-cascader"),{options:this.nodes,modelValue:this.selectValue,"onUpdate:modelValue":e=>this.selectValue=e,class:this.ns.e("content"),title:this.c.placeHolder,onClose:this.onClose,onChange:this.onChange,onFinish:this.onFinishSelect},null)]})]),[[ot("loading"),this.isLoading]])}}));class gT extends ei{}e("aY",gT);var bT=Object.defineProperty,yT=(e,t,n)=>(((e,t,n)=>{t in e?bT(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n),n);class wT{constructor(){yT(this,"formEditor","IBizCascader"),yT(this,"gridEditor","IBizCascader")}async createController(e,t){const n=new gT(e,t);return await n.init(),n}}e("aZ",wT);const _T={id:"",classname:"",theme:"light",parent:"",toggle:!0,popover:!0,position:"bottom-start",margin:4,preset:!0,color:"#000",default:"#000",target:"",disabled:!1,format:"rgb",singleInput:!1,inputs:!0,opacity:!0,preview:!0,copy:!0,swatches:[],toggleSwatches:!1,closeOnScroll:!1,i18n:{picker:"Color picker",buttons:{copy:"Copy color to clipboard",changeFormat:"Change color format",swatch:"Color swatch: %label%",toggleSwatches:"Toggle Swatches"},sliders:{hue:"Change hue",alpha:"Change opacity"}}},ET=document,PT=ET.documentElement,NT="#000000",IT="button",AT="open",kT="close",CT="color",ST="click",MT="pointerdown",xT="pointermove",OT="pointerup",DT="scroll",TT="keydown",jT="input",LT="change",VT="rgb",BT="hsl",UT={capture:!0},zT=["hex",VT,BT],RT=e=>"string"==typeof e,FT=e=>e instanceof Element,$T=e=>Number.isFinite(RT(e)&&""!==e.trim()?+e:e),{keys:qT,assign:WT,setPrototypeOf:HT,prototype:GT}=Object,{isArray:YT}=Array,XT=e=>null!=e&&"object"==typeof e&&!YT(e)&&!FT(e),JT=(e,t)=>qT(e).forEach(n=>t(n,e[n])),KT=(e,t)=>(JT(t,(t,n)=>{WT(e,{[t]:XT(n)?KT(e[t]||{},n):n})}),e),QT=()=>ET.body,ZT=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:PT;return RT(e)&&e.trim()?[...t.querySelectorAll(e)]:FT(e)?[e]:[]},ej=e=>ZT("".concat(jT,",").concat(IT,",[tabindex]"),e),tj=function(e,t,n){let a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=arguments.length>4?arguments[4]:void 0;const o=ET.createElement(e);return t&&(o.className=t.trim()),n&&(RT(n)?o.innerHTML=n:o.append(...(YT(n)?n:[n]).filter(e=>!!e))),JT(RT(i)?{...a,"aria-label":i}:a,(e,t)=>o.setAttribute(e,t+"")),o},nj=(e,t,n)=>tj("div",t,e,{},n),aj=(e,t)=>(e&&e!==t&&e.replaceWith(t),t),ij=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return tj(IT,"alwan__button "+(arguments.length>1&&void 0!==arguments[1]?arguments[1]:""),arguments.length>2?arguments[2]:void 0,{type:IT,title:arguments.length>3&&void 0!==arguments[3]?arguments[3]:e},e)},oj=function(e,t,n){return tj(jT,"alwan__slider alwan__"+t,"",{type:"range",max:n,step:arguments.length>3&&void 0!==arguments[3]?arguments[3]:1},e)},rj=(e,t)=>e.style.setProperty("--color",t),sj=(e,t,n)=>e.classList.toggle("alwan--"+t,n),lj=(e,t,n)=>{e.style.transform="translate(".concat(t,"px,").concat(n,"px)")},cj=e=>{const{x:t,y:n,width:a,height:i}=e.getBoundingClientRect();return[t,n,a,i,a+t,i+n]},uj=e=>nj(e,"alwan__container"),dj=(e,t)=>e.style.display=t?"none":"",hj=(e,t,n,a)=>e.addEventListener(t,n,a),pj=(e,t,n)=>e.removeEventListener(t,n),fj=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:VT;return t?t+(t===VT?"(".concat(e.r,", ").concat(e.g,", ").concat(e.b):"(".concat(e.h,", ").concat(e.s,"%, ").concat(e.l,"%"))+(e.a<1?", ".concat(e.a,")"):")"):NT},{min:vj,max:mj,abs:gj,round:bj,PI:yj}=Math,wj=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:100,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return e>t?t:e<n?n:e},_j=e=>bj((e%=360)<0?e+360:e),Ej=e=>parseInt(e,16),Pj=e=>{let t,n,{config:a,s:i}=e,o=!1;const r=()=>{const e={};o||(i.t(),o=!0),JT(t,(t,n)=>e[t]=n.value),i.o(e[n]||fj(e,n),!0)},s=()=>{t={};const e="hex"===n||a.singleInput?[n]:[...n+(a.opacity?"a":"")];return nj(e.map(e=>tj("label","",[t[e]=tj(jT,"alwan__input",[],{type:"text",value:i.i[e]}),tj("span","",e)])),"alwan__inputs")};return{p(t){let a,l,c,u,{inputs:d,format:h,i18n:p}=t,f=zT;return!0!==d&&(d=d||{},f=f.filter(e=>d[e])),u=f.length,f=u?f:zT,n=f[mj(f.indexOf(h),0)],i.u(n),u?(u>1&&(c=ij(p.buttons.changeFormat,"",'<svg width="15" height="15" viewBox="0 0 20 20" aria-role="none"><path d="M10 1L5 8h10l-5-7zm0 18l5-7H5l5 7z"></path></svg>'),hj(c,ST,()=>{n=f[(f.indexOf(n)+1)%u],i.u(n),a=aj(a,s())})),a=s(),l=nj(a),hj(l,jT,r),hj(l,LT,()=>{i._(),o=!1}),hj(l,"focusin",e=>e.target.select()),hj(l,TT,t=>"Enter"===t.key&&e.c.v(!1)),uj([l,c])):null},m(e){o||JT(t||{},(t,n)=>n.value=e[t]+"")}}},Nj={ArrowLeft:-1,ArrowRight:1},Ij={ArrowUp:-1,ArrowDown:1},Aj=e=>{let t,n,a,i,o,{s:r}=e;const s={s:0,l:0},l=(e,t)=>{let l,c,[,,u,d]=o;a=e=wj(e,u),i=t=wj(t,d),lj(n,e,t),l=1-t/d,c=l*(1-e/(2*u)),s.s=1===c||0===c?0:(l-c)/vj(c,1-c)*100,s.l=100*c,r.$(s)},c=e=>{let{x:t,y:n,buttons:a}=e;a?l(t-o[0],n-o[1]):u()},u=()=>{r._(),pj(ET,xT,c),pj(ET,OT,u)},d=e=>{t.setPointerCapture(e.pointerId),r.t(),o=cj(t),l(e.x-o[0],e.y-o[1]),hj(ET,xT,c),hj(ET,OT,u)},h=e=>{const n=e.key,s=Nj[n]||0,c=Ij[n]||0;(s||c)&&(e.preventDefault(),o=cj(t),r.t(),l(a+s*o[2]/100,i+c*o[3]/100),r._())};return{p:e=>{let{i18n:a,disabled:i}=e;return n=nj("","alwan__cursor"),t=nj(n,"alwan__selector",a.picker||a.palette),i||(t.tabIndex=0,hj(t,MT,d),hj(t,TT,h)),t},A(e,r){e=(r/=100)+e/100*vj(r,1-r),o=cj(t),a=(e?2*(1-r/e):0)*o[2],i=(1-e)*o[3],lj(n,a,i)}}},kj=e=>{let t,n,a,{s:i,e:o}=e;return{p:e=>{let{opacity:r,i18n:{sliders:s}}=e;return t=oj(s.hue,"hue",360),n=r?oj(s.alpha,"alpha",1,.01):null,a=nj([t,n]),hj(a,LT,()=>o.S(LT)),hj(a,jT,e=>{let{target:n}=e;return i.$({[n===t?"h":"a"]:n.value})}),a},m(e,a){t.value=e+"",n&&(n.value=a+"")}}},Cj=e=>(e<16?"0":"")+e.toString(16),Sj=(e,t,n)=>(e%=12,bj(255*(n-t*vj(n,1-n)*mj(-1,vj(e-3,9-e,1))))),Mj=tj("canvas").getContext("2d"),xj={turn:360,rad:180/yj,grad:.9},Oj=/a?\(\s*([+-]?\d*\.?\d+)(\w*)?\s*[\s,]\s*([+-]?\d*\.?\d+)%?\s*,?\s*([+-]?\d*\.?\d+)%?(?:\s*[\/,]\s*([+-]?\d*\.?\d+)(%)?)?\s*\)?$/,Dj=e=>RT(e)?e:fj(e,(e=>XT(e)&&[BT,VT].find(t=>[...t].every(t=>$T(e[t])))||"")(e)),Tj=e=>(Mj.fillStyle=NT,Mj.fillStyle=e,Mj.fillStyle),jj=e=>{let t=!1;const n=(t,n)=>{let a,i,o,r;var s;return XT(s=t)&&"color"in s?({color:i,label:r}=t):i=t,o=Dj(i),o=Tj(o)===NT?NT:o,r=RT(r)?r:o,a=ij(n.replace("%label%",r),"alwan__swatch","",r),rj(a,o),hj(a,ST,()=>e.s.o(o,!0,!0)),a};return{p(a){let i,o,r,{swatches:s,toggleSwatches:l,i18n:{buttons:c}}=a;return YT(s)&&s.length?(i=nj(s.map(e=>n(e,c.swatch)),"alwan__swatches"),l?(r=function(){t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:!t,sj(i,"collapse",t),e.c.k()},o=ij(c.toggleSwatches,"alwan__toggle-button",'<svg width="20" height="20" viewBox="0 0 24 24" aria-role="none"><path d="M6.984 14.016l5.016-5.016 5.016 5.016h-10.031z"></path></svg>'),hj(o,ST,()=>r()),r(t),nj([i,o])):i):i}}},Lj=e=>({p(t){let n,a,i,o,r,{preview:s,copy:l,i18n:c}=t;return l&&(n=ij(c.buttons.copy,"alwan__cp",'<svg width="18" height="18" viewBox="0 0 24 24" aria-role="none"><path d="M19,21H8V7H19M19,5H8A2,2 0 0,0 6,7V21A2,2 0 0,0 8,23H19A2,2 0 0,0 21,21V7A2,2 0 0,0 19,5M16,1H4A2,2 0 0,0 2,3V17H4V3H16V1Z"></path></svg><svg width="18" height="18" viewBox="0 0 24 24" aria-role="none"><path d="M9,20.42L2.79,14.21L5.62,11.38L9,14.77L18.88,4.88L21.71,7.71L9,20.42Z"></path></svg>'),[i,o]=n.children,a=e=>{dj(i,e),dj(o,!e)},a(!1),r=navigator.clipboard,r&&(hj(n,ST,()=>r.writeText(e.s.C()).then(()=>a(!0))),hj(n,"blur",()=>a()),hj(n,"mouseleave",()=>n.blur()))),s?nj(n,"alwan__preview"):n}}),Vj=(e,t)=>e.map(e=>YT(e)?uj(Vj(e,t)):e.p(t)),Bj={top:[1,5,4,0],bottom:[5,1,4,0],right:[4,0,1,5],left:[0,4,1,5]},Uj={start:[0,1,2],center:[1,0,2],end:[2,1,0]},zj=(e,t)=>{let n,a,i=nj(),o=!1,r=null;const{config:s,s:l}=e,c=((e,t)=>{const n=ij(),a=n.className+" alwan__ref ";let i;return e&&e.id&&(n.id=e.id),{H:o=>(i=aj(i||e,o.preset||!e?n:e),i===n&&(i.className=(a+o.classname).trim(),i.parentNode||QT().append(i)),hj(i,ST,t),i),O(){e?(pj(e,ST,t),aj(i,e)):i.remove()}}})(t,()=>e.toggle()),u=nj(i,"alwan"),[d,h,p,f,v]=(e=>[Aj,Lj,kj,Pj,jj].map(t=>t(e)))(e);return l.V(e=>{rj(n,e.rgb),i.style.cssText="--rgb:".concat(e.r,",").concat(e.g,",").concat(e.b,";--a:").concat(e.a,";--h:").concat(e.h),f.m(e)},e=>{let{a:t,h:n,s:a,l:i}=e;p.m(n,t),d.A(a,i)}),{L(e){const{id:t,color:m=l.i.hsl}=e,{theme:g,parent:b,toggle:y,popover:w,target:_,disabled:E}=KT(s,e);n=c.H(s);let P=ZT(b)[0],N=ZT(_)[0]||n;t&&(u.id=t),sj(u,"dark","dark"===g),i=aj(i,nj(Vj([d,[h,p],f,v],s))),dj(n,!w&&!y),r&&(r.M(),r=null),w?(P=P||y&&QT(),a=nj(u,"alwan__popover-container"),r=((e,t,n,a,i,o)=>{let r,{margin:s,position:l,closeOnScroll:c,toggle:u,disabled:d}=i,{v:h,B:p}=o;s=$T(s)?+s:0;let f=p();const[v,m]=RT(l)?l.split("-"):[],g=t.style,b=e.getRootNode(),y=ej(t),w=y[0],_=y.pop(),E=()=>{const a=[PT.clientWidth,PT.clientHeight],i=cj(e),o=cj(t),l=cj(n),c=[-1,-1];g.height="",!f||!r||i[4]<0||i[5]<0||i[0]>a[0]||i[1]>a[1]||((Bj[v]||Bj.bottom).some(e=>{let t=e%2,n=i[e]+(e<=1?-o[t+2]-s:s);return!(n<0||n+o[t+2]+s>a[t])&&(c[t]=n,t=+!t,(Uj[m]||Uj.center).some(e=>(n=0===e?i[t]:i[t+4]-(2===e?o[t+2]:(o[t+2]+i[t+2])/2),!(n<0||n+o[t+2]>a[t]||(c[t]=n,0)))))}),lj(t,...c.map((e,t)=>(t&&-1===e&&o[3]>a[t]&&(g.height=a[t]-6+"px",o[3]=a[t]-3),bj((e>=0?e:(a[t]-o[t+2])/2)-l[t])))))};u&&hj(t,TT,e=>{let t,{key:n,target:a,shiftKey:i}=e;"Escape"===n?h(!1):"Tab"===n&&(a===w&&i?t=_:a!==_||i||(t=w),t&&(t.focus(),e.preventDefault()))});const P=[t,a,...a.labels||[]],N=e=>{const t=e.composedPath();f&&!P.some(e=>t.includes(e))&&h(!1)},I=new IntersectionObserver(e=>{let[t]=e;r=t.isIntersecting,h(!d&&r&&(!u||f),!0)}),A=t=>{let{target:n}=t;(b instanceof ShadowRoot&&n.contains(b.host)||n.contains(e))&&(E(),c&&h(!1))},k=e=>{e(window,"resize",E),e(ET,DT,A,UT),e(b,DT,A,UT),e(ET,MT,N)};return I.observe(e),k(hj),{I:()=>r,k(e,t){f=e,r&&(E(),u&&t!==e&&(e?w:a).focus())},M(){g.cssText="",I.unobserve(e),k(pj),n.remove()}}})(N,u,a,n,s,this)):(a=u,this.v(!y||!E&&o,!0)),P?P.append(a):N.after(a),E&&[n,...ej(u)].forEach(e=>{e.disabled=!0}),l.o(m)},v(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:!o,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];(t!==o&&(!r||r.I())&&!s.disabled&&s.toggle||n)&&(sj(u,AT,t),r&&r.k(t,o),o=t,e.e.S(o?AT:kT))},B:()=>o,k(){r&&r.k(o,o)},M(){u.remove(),r&&r.M(),c.O()}}},Rj=e=>{const t={h:0,s:0,l:0,r:0,g:0,b:0,a:1,rgb:"",hsl:"",hex:""},n=e.config,a=e.e.S;let i,o,r,s;return{i:t,C:()=>t[r],V(e,t){i=e,o=t},u(e){r=n.format=e},$(e,n){let o=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=arguments.length>3?arguments[3]:void 0;const s=t.hex;WT(t,e),WT(t,n||(e=>{let{h:t,s:n,l:a,a:i}=e;return{r:Sj(t/=30,n/=100,a/=100),g:Sj(t+8,n,a),b:Sj(t+4,n,a),a:i}})(t)),t.s=bj(t.s),t.l=bj(t.l),t.rgb=fj(t),t.hsl=fj(t,BT),t.hex=(e=>{let{r:t,g:n,b:a,a:i}=e;return"#"+Cj(t)+Cj(n)+Cj(a)+(i<1?Cj(bj(255*i)):"")})(t),i(t),s!==t.hex&&(o&&a(CT,t),r&&a(LT,t))},o(e){let a=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=arguments.length>2?arguments[2]:void 0;this.$(...((e,t)=>{let n,a,i=Dj(e).trim();if(/^hsl/.test(i)){const[e,t,n,o,r,s="1",l]=Oj.exec(i)||[];e&&(a={h:_j(+t*(xj[n]||1)),s:wj(+o),l:wj(+r),a:wj(+s/(l?100:1),1)})}if(!a){if(/^[\da-f]+$/i.test(i)&&(i="#"+i),i=Tj(i),"#"===i[0])n={r:Ej(i[1]+i[2]),g:Ej(i[3]+i[4]),b:Ej(i[5]+i[6]),a:1};else{const[e,t,a,o]=i.match(/[\d\.]+/g).map(Number);n={r:e,g:t,b:a,a:o}}a=(e=>{let{r:t,g:n,b:a,a:i}=e;const o=mj(t/=255,n/=255,a/=255),r=vj(t,n,a),s=o-r,l=(o+r)/2;return{h:_j(60*(0===s?0:o===t?(n-a)/s%6:o===n?(a-t)/s+2:o===a?(t-n)/s+4:0)),s:s?s/(1-gj(2*l-1))*100:0,l:100*l,a:i}})(n)}return a.a=t?bj(100*a.a)/100:1,n&&(n.a=a.a),[a,n]})(e,n.opacity),a,i),o(t)},t(){s=t[r]},_(){s!==t[r]&&a(LT,t)}}};class Fj{static version(){return"2.3.1"}static setDefaults(e){KT(_T,e)}constructor(e,t){this.config=KT({},_T),this.e=(e=>{const t={[AT]:[],[kT]:[],[LT]:[],[CT]:[]};return{S(n){let a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.s.i;(t[n]||[]).forEach(t=>t(WT({type:n,source:e},a)))},j(e,n){n&&!(t[e]||[]).includes(n)&&t[e].push(n)},D(e,n){e?t[e]&&(t[e]=n?t[e].filter(e=>e!==n):[]):JT(t,e=>{t[e]=[]})}}})(this),this.s=Rj(this),this.c=zj(this,ZT(e)[0]),this.c.L(t||{})}setOptions(e){e&&this.c.L(e)}setColor(e){return this.s.o(e),this}getColor(){return{...this.s.i}}isOpen(){return this.c.B()}open(){this.c.v(!0)}close(){this.c.v(!1)}toggle(){this.c.v()}on(e,t){this.e.j(e,t)}off(e,t){this.e.D(e,t)}addSwatches(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this.c.L({swatches:this.config.swatches.concat(t)})}removeSwatches(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];this.c.L({swatches:this.config.swatches.filter((e,n)=>!t.some(t=>$T(t)?+t===n:t===e))})}enable(){this.c.L({disabled:!1})}disable(){this.c.L({disabled:!0})}reset(){this.s.o(this.config.default)}reposition(){this.c.k()}trigger(e){this.e.S(e)}destroy(){this.c.M(),JT(this,e=>{this[e]=null}),HT(this,GT)}}const $j=e("bW",xe({name:"IBizColorPicker",props:ve(),emits:Z(),setup(e,{emit:t}){const a=n("color-picker"),i=e.controller,o=je(""),{UIStore:r}=d(),s=xi(),l=je(["#000000","#2C2C2C","#50555C","#ACB3BF","#D0D3D9","#C4C4C4","#DADADA","#E5E5E5","#F0F0F0","#F24E1E","#E99C58","#FFC700","#FF4D00","#FF00D6","#D82E57","#8E1DE8","#0ACF83","#18A0FB","#A259FF","#907CFF"]);$e(()=>e.value,(e,t)=>{e!==t&&(o.value=e||"")},{immediate:!0});const c=je();return Be(()=>{i.color=new Fj("#alwan".concat(s),{theme:r.theme,color:o.value||"",swatches:l.value,...i.colorOptions}),i.color.on("change",e=>{t("change",e[i.colorFormat])})}),{ns:a,c:i,uuid:s,currentVal:o,handleChange:e=>{if(!e)return;const{target:n}=e;if(!n)return;const{value:a}=n;t("change",a)},inputRef:c,onFocus:()=>{t("focus")},onBlur:()=>{t("blur")}}},render(){let e=null;return e=this.readonly?"".concat(this.currentVal||""):[Oe(De("van-field"),{class:[this.ns.e("item"),this.ns.e("color")],modelValue:this.currentVal,"onUpdate:modelValue":e=>this.currentVal=e,disabled:this.disabled,placeholder:this.c.placeHolder,onFocus:this.onFocus,onBlur:this.onBlur,readonly:!0},null),Oe("div",{id:"alwan".concat(this.uuid)},null)],Oe("div",{class:[this.ns.b(),this.disabled?this.ns.m("disabled"):"",this.readonly?this.ns.m("readonly"):""],style:{color:this.currentVal||""}},[e])}}));var qj=Object.defineProperty,Wj=(e,t,n)=>(((e,t,n)=>{t in e?qj(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n),n);class Hj extends ei{constructor(){super(...arguments),Wj(this,"color"),Wj(this,"colorOptions",{}),Wj(this,"colorFormat","hex")}async onInit(){await super.onInit();const{coloroptions:e,colorformat:t}=this.editorParams;e&&(this.colorOptions=JSON.parse(e)),t&&(this.colorFormat=JSON.parse(t))}}e("bX",Hj);var Gj=Object.defineProperty,Yj=(e,t,n)=>(((e,t,n)=>{t in e?Gj(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n),n);class Xj{constructor(){Yj(this,"formEditor","IBizColorPicker"),Yj(this,"gridEditor","IBizColorPicker")}async createController(e,t){const n=new Hj(e,t);return await n.init(),n}}e("bY",Xj);var Jj=Object.defineProperty,Kj=(e,t,n)=>(((e,t,n)=>{t in e?Jj(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n),n);class Qj extends ei{constructor(){super(...arguments),Kj(this,"uploadParams"),Kj(this,"exportParams"),Kj(this,"enableNoAccess",!1),Kj(this,"globalDownloadPrifix",!1),Kj(this,"deService"),Kj(this,"deACMode"),Kj(this,"chatCompletion",!1),Kj(this,"mdeditor",null),Kj(this,"extraActions",[])}async onInit(){if(await super.onInit(),this.editorParams){const{uploadparams:e,exportparams:t,enablenoaccess:n,globaldownloadprifix:a}=this.editorParams;if(e)try{this.uploadParams=JSON.parse(e)}catch(t){throw new Ft(e,ibiz.i18n.t("editor.markdown.uploadJsonFormatErr"))}if(t)try{this.exportParams=JSON.parse(t)}catch(e){throw new Ft(t,ibiz.i18n.t("editor.markdown.exportJsonFormatErr"))}n&&(this.enableNoAccess="true"===n),this.globalDownloadPrifix="true"===a||ibiz.config.common.globalDownloadPrifix}const e=this.model;if(e.appDEACModeId&&(this.deACMode=await wn(e.appDEACModeId,e.appDataEntityId,this.context.srfappid),this.deACMode)){"CHATCOMPLETION"===this.deACMode.actype&&(this.deService=await ibiz.hub.getApp(e.appId).deService.getService(this.context,e.appDataEntityId),this.chatCompletion=!0);const{deuiactionGroup:t}=this.deACMode,n=(null==t?void 0:t.uiactionGroupDetails)||[];n.length>0&&(this.extraActions=n.filter(e=>{var t;return null==(t=e.uiactionId)?void 0:t.startsWith("header_extra")}))}}setMDEditor(e){this.mdeditor=e}calcBaseUrl(e){let t="".concat(ibiz.env.baseUrl,"/").concat(ibiz.env.appId).concat(ibiz.env.uploadFileUrl),n="".concat(ibiz.env.baseUrl,"/").concat(ibiz.env.appId).concat(ibiz.env.downloadFileUrl,"/%fileId%"),a={},i={};return this.uploadParams&&(a=ra(this.uploadParams,e,this.params,this.context)),this.exportParams&&(i=ra(this.exportParams,e,this.params,this.context)),t+=Bi.stringify(a,{addQueryPrefix:!0}),n+=Bi.stringify(i,{addQueryPrefix:!0}),{uploadUrl:t,downloadUrl:n}}fileDownload(e){ibiz.net.request(e.url,{method:"get",responseType:"blob",baseURL:""}).then(t=>{if(200!==t.status)throw new Nt(ibiz.i18n.t("editor.markdown.downloadFailedErr"));if(!t.data)throw new Nt(ibiz.i18n.t("editor.markdown.noExistentErr"));{const n=e.name;Vt(t.data,n)}})}async doCustomUIAction(e,t){const n=this.ctrl.getEventArgs();n.params=Lt(n.params);return(await In.exec(e,{...n},t)).data||[]}}e("bk",Qj);var Zj=Object.defineProperty,eL=(e,t,n)=>(((e,t,n)=>{t in e?Zj(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n),n);class tL{constructor(){eL(this,"formEditor","IBizMarkDown"),eL(this,"gridEditor","IBizMarkDown")}async createController(e,t){const n=new Qj(e,t);return await n.init(),n}}e("bl",tL);var nL=Object.defineProperty,aL=(e,t,n)=>(((e,t,n)=>{t in e?nL(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n),n);class iL extends ei{constructor(){super(...arguments),aL(this,"uploadParams"),aL(this,"exportParams"),aL(this,"showToolbar",!0),aL(this,"defaultHeight",200),aL(this,"showCollapse",!0),aL(this,"valueMode","html"),aL(this,"imageMode","file"),aL(this,"enableNoAccess",!1),aL(this,"globalDownloadPrifix",!1),aL(this,"modules",{toolbar:[[{header:[1,2,3,4,!1]}],["bold","italic","underline","strike"],["link","image","code-block"]]}),aL(this,"quill"),aL(this,"extraActions",[]),aL(this,"deACMode")}async onInit(){if(await super.onInit(),this.editorParams){const{uploadParams:e,exportParams:t,SHOWTOOLBAR:n,VALUEMODE:a,IMAGEMODE:i,MODULES:o,DEFAULTHEIGHT:r,SHOWCOLLAPSE:s,uploadparams:l,exportparams:c,showtoolbar:u,valuemode:d,imagemode:h,modules:p,defaultheight:f,showcollapse:v,enablenoaccess:m,globaldownloadprifix:g}=this.editorParams;if(e)try{this.uploadParams=JSON.parse(e)}catch(e){ibiz.log.error("编辑器[".concat(ibiz.log.error(e),"]编辑器参数 uploadParams 非 json 格式"))}if(l)try{this.uploadParams=JSON.parse(l)}catch(e){ibiz.log.error("编辑器[".concat(ibiz.log.error(e),"]编辑器参数 uploadParams 非 json 格式"))}if(t)try{this.exportParams=JSON.parse(t)}catch(e){ibiz.log.error("编辑器[".concat(ibiz.log.error(e),"]编辑器参数 exportParams 非 json 格式"))}if(c)try{this.exportParams=JSON.parse(c)}catch(e){ibiz.log.error("编辑器[".concat(ibiz.log.error(e),"]编辑器参数 exportParams 非 json 格式"))}n&&(this.showToolbar=this.toBoolean(n)),u&&(this.showToolbar=this.toBoolean(u)),a&&(this.valueMode=a.toLowerCase()),d&&(this.valueMode=d.toLowerCase()),i&&(this.imageMode=i.toLowerCase()),h&&(this.imageMode=h.toLowerCase()),o&&(this.modules=En.execScriptFn({controller:this},o,{isAsync:!1})),p&&(this.modules=En.execScriptFn({controller:this},p,{isAsync:!1})),r&&(this.defaultHeight=Number(r)),f&&(this.defaultHeight=Number(f)),s&&(this.showCollapse=this.toBoolean(s)),v&&(this.showCollapse=this.toBoolean(v)),m&&(this.enableNoAccess="true"===m),this.globalDownloadPrifix="true"===g||ibiz.config.common.globalDownloadPrifix;const b=this.model;if(b.appDEACModeId&&(this.deACMode=await wn(b.appDEACModeId,b.appDataEntityId,this.context.srfappid),this.deACMode)){const{deuiactionGroup:e}=this.deACMode,t=(null==e?void 0:e.uiactionGroupDetails)||[];t.length>0&&(this.extraActions=t.filter(e=>{var t;return null==(t=e.uiactionId)?void 0:t.startsWith("header_extra")}))}}}async doCustomUIAction(e,t){const n=this.ctrl.getEventArgs();n.params=Zt(n.params);return(await In.exec(e,{...n},t)).data||[]}}e("bm",iL);var oL=Object.defineProperty,rL=(e,t,n)=>(((e,t,n)=>{t in e?oL(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n),n);class sL{constructor(){rL(this,"formEditor","IBizQuill"),rL(this,"gridEditor","IBizQuill")}async createController(e,t){const n=new iL(e,t);return await n.init(),n}}function lL(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!Ve(e)}e("bn",sL);const cL=e("bZ",xe({name:"IBizDataMPicker",props:{value:{type:Object,default:[]},items:{type:Object,default:()=>[]},showPicker:{type:Boolean,default:!1}},emits:["update:showPicker","change"],setup(e,{emit:t}){const a=n("data-mpicker"),i=je([]),o=qe({get:()=>i.value,set(e){i.value=e}});$e(()=>e.value,e=>{(e||null===e)&&(i.value=e)},{immediate:!0});const r=je([]);return{ns:a,checkboxRefs:r,curValue:o,emit:t,toggle:e=>{r.value[e].toggle()},onCancel:n=>{n.stopPropagation(),t("update:showPicker",!1),i.value=e.value},onConfirm:e=>{e.stopPropagation(),t("update:showPicker",!1);const n=Zt(i.value);t("change",n)}}},render(){const e=()=>Oe("div",{class:this.ns.b("toolbar"),onClick:e=>{e.stopPropagation()}},[Oe("button",{type:"button",class:this.ns.be("toolbar","cancel"),onClick:e=>{this.onCancel(e)}},[ibiz.i18n.t("editor.common.cancel")]),Oe("button",{type:"button",class:this.ns.be("toolbar","confirm"),onClick:e=>{this.onConfirm(e)}},[ibiz.i18n.t("editor.common.confirm")])]),t=()=>{let e;return Oe(De("van-checkbox-group"),{class:this.ns.b("columns"),modelValue:this.curValue,"onUpdate:modelValue":e=>this.curValue=e},{default:()=>[Oe(De("van-cell-group"),{inset:!0},lL(e=this.items.map((e,t)=>Oe(De("van-cell"),{title:e.text,clickable:!0,onClick:e=>{e.stopPropagation(),this.toggle(t)}},{"right-icon":()=>Oe(De("van-checkbox"),{ref:e=>this.checkboxRefs[t]=e,name:e.value,onClick:e=>e.stopPropagation()},null)})))?e:{default:()=>[e]})]})};return Oe(De("van-popup"),{class:this.ns.b(),show:this.showPicker,"onUpdate:show":e=>this.showPicker=e,round:!0,"close-on-popstate":!0,position:"bottom",teleport:"body","close-on-click-overlay":!1,onClickOverlay:e=>{e.stopPropagation(),this.emit("update:showPicker",!1)}},{default:()=>[e(),t()]})}})),uL=xe({name:"IBizDropdownList",props:ne(),emits:Z(),setup(e,{emit:t}){const a=n("dropdown-list"),i=e.controller,o=je([]),r=je(!1),s=qe(()=>e.value?o.value.filter(t=>-1!==(e.value.split(",")||[]).findIndex(e=>t.value==e)):[]),l=qe(()=>e.value?o.value.filter(t=>-1!==(e.value.split(",")||[]).findIndex(e=>t.value==e)).map(e=>e.value):[]);i.loadCodeList(e.data).then(e=>{o.value=e});const c=e=>{r.value=!1;const n=[];e.forEach(e=>{const t=o.value.find(t=>Object.is(t.value,e));t&&n.push(t)});const a=n.length>0?n.map(e=>e.value).join(","):"";t("change",a)},u=qe(()=>s.value.map(e=>e.text).join(","));return yo(()=>{r.value=!1}),{ns:a,c:i,items:o,showPicker:r,valueText:u,selectItems:s,selectKeys:l,onBlur:()=>{setTimeout(()=>{t("blur")},100)},onFocus:()=>{t("focus")},onRemove:t=>{if(e.readonly||e.disabled)return;const n=l.value.filter(e=>e!==t.value);c(n)},onConfirm:c,refreshCodeList:()=>{i.loadCodeList(e.data).then(e=>{o.value=e})}}},render(){const e=[Oe(De("van-field"),{ref:"editorRef",clearable:!0,readonly:!0,class:[this.ns.e("select")],placeholder:this.c.placeHolder,onBlur:this.onBlur,onFocus:this.onFocus,onClick:()=>{this.disabled||(this.showPicker=!0,this.refreshCodeList())}},{"right-icon":Oe(xO,null,null),input:()=>{if(!this.selectItems.length)return Oe("div",{class:this.ns.e("placeholder")},[this.c.placeHolder]);const e=this.selectItems.length-1>0;return[this.selectItems.slice(0,1).map(e=>Oe("div",{class:this.ns.b("select-item")},[Oe("div",{class:this.ns.be("select-item","text")},[e.text]),Oe("div",{class:this.ns.be("select-item","close")},[Oe(De("van-icon"),{name:"cross",onClick:t=>{t.stopPropagation(),this.onRemove(e)}},null)])])),e&&Oe("div",{class:[this.ns.b("select-item"),this.ns.bm("select-item","more")]},[Qe("+ "),this.selectItems.length-1])]}}),Oe(cL,{items:this.items,onChange:this.onConfirm,showPicker:this.showPicker,"onUpdate:showPicker":e=>this.showPicker=e,value:this.selectKeys},null)];return Oe("div",{class:[this.ns.b(),this.disabled?this.ns.m("disabled"):"",this.readonly?this.ns.m("readonly"):""]},[this.readonly?this.valueText:e])}}),dL=xe({name:"IBizQrcode",props:T(),emits:Z(),setup(e,{attrs:t}){const a=n("qrcode"),i=je("");return $e(()=>e.value,async(e,n)=>{let a="";if(e!==n&&(a=Kt(e)?"":"".concat(e)),a){const e=ibiz.qrcodeUtil.createQrcode(a,{margin:8,...t}),n=await e._getElement();i.value=n.toDataURL()}},{immediate:!0}),{ns:a,dataUrl:i}},render(){let e=Oe(De("van-icon"),{class:this.ns.e("no-img"),size:this.$attrs.width||100,name:"photo-fail"},null);return this.dataUrl&&(e=Oe("img",{class:[this.ns.e("img")],src:this.dataUrl,alt:""},null)),Oe("div",{class:[this.ns.b()]},[e])}});class hL extends ei{}var pL=Object.defineProperty,fL=(e,t,n)=>(((e,t,n)=>{t in e?pL(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n),n);class vL{constructor(){fL(this,"formEditor","IBizQrcode"),fL(this,"gridEditor","IBizQrcode")}async createController(e,t){const n=new hL(e,t);return await n.init(),n}}const mL=e("a_",xe({name:"IBizCheckbox",props:me(),emits:Z(),setup(e,{emit:t}){var a,i,o,r;const s=n("checkbox"),l=e.controller.model;let c=1,u=0;(null==(a=l.editorParams)?void 0:a.selectValue)&&(c=l.editorParams.selectValue),(null==(i=l.editorParams)?void 0:i.selectvalue)&&(c=l.editorParams.selectvalue),(null==(o=l.editorParams)?void 0:o.nullValue)&&(u=l.editorParams.nullValue),(null==(r=l.editorParams)?void 0:r.nullvalue)&&(u=l.editorParams.nullvalue);const d=qe({get:()=>e.value===c,set(e){let n;n=e?c:u,t("change",n)}}),{componentRef:h}=Q(()=>t("focus"),()=>t("blur"));return{ns:s,editorModel:l,currentVal:d,editorRef:h}},render(){return Oe("div",{class:[this.ns.b()],ref:"editorRef"},[Oe(De("van-checkbox"),Te({modelValue:this.currentVal,"onUpdate:modelValue":e=>this.currentVal=e,disabled:this.disabled||this.readonly},m(this.$attrs)),null)])}}));class gL extends ei{}e("a$",gL);var bL=Object.defineProperty,yL=(e,t,n)=>(((e,t,n)=>{t in e?bL(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n),n);class wL{constructor(){yL(this,"formEditor","IBizCheckbox"),yL(this,"gridEditor","IBizCheckbox")}async createController(e,t){const n=new gL(e,t);return await n.init(),n}}e("b0",wL);var _L={exports:{}};!function(e){e.exports=function(){function e(e,t,n,a){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||(n=Promise))(function(t,n){function o(e){try{s(a.next(e))}catch(e){n(e)}}function r(e){try{s(a.throw(e))}catch(e){n(e)}}function s(e){e.done?t(e.value):i(e.value).then(o,r)}s((a=a.apply(e,[])).next())})}function t(e,t){function n(e){return function(t){return a([e,t])}}function a(n){if(i)throw new TypeError("Generator is already executing.");for(;l;)try{if(i=1,o&&(r=2&n[0]?o.return:n[0]?o.throw||((r=o.return)&&r.call(o),0):o.next)&&!(r=r.call(o,n[1])).done)return r;switch(o=0,r&&(n=[2&n[0],r.value]),n[0]){case 0:case 1:r=n;break;case 4:return l.label++,{value:n[1],done:!1};case 5:l.label++,o=n[1],n=[0];continue;case 7:n=l.ops.pop(),l.trys.pop();continue;default:if(!((r=0<(r=l.trys).length&&r[r.length-1])||6!==n[0]&&2!==n[0])){l=0;continue}if(3===n[0]&&(!r||n[1]>r[0]&&n[1]<r[3]))l.label=n[1];else if(6===n[0]&&l.label<r[1])l.label=r[1],r=n;else{if(!(r&&l.label<r[2])){r[2]&&l.ops.pop(),l.trys.pop();continue}l.label=r[2],l.ops.push(n)}}n=t.call(e,l)}catch(e){n=[6,e],o=0}finally{i=r=0}if(5&n[0])throw n[1];return{value:n[0]?n[1]:void 0,done:!0}}var i,o,r,s,l={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return s={next:n(0),throw:n(1),return:n(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s}function n(e){var t=[];return e.AMapUI&&t.push(a(e.AMapUI)),e.Loca&&t.push(i(e.Loca)),Promise.all(t)}function a(e){return new Promise(function(t,n){var a=[];if(e.plugins)for(var i=0;i<e.plugins.length;i+=1)-1==r.AMapUI.plugins.indexOf(e.plugins[i])&&a.push(e.plugins[i]);if(s.AMapUI===o.failed)n("前次请求 AMapUI 失败");else if(s.AMapUI===o.notload){s.AMapUI=o.loading,r.AMapUI.version=e.version||r.AMapUI.version,i=r.AMapUI.version;var c=document.body||document.head,u=document.createElement("script");u.type="text/javascript",u.src="https://webapi.amap.com/ui/"+i+"/main.js",u.onerror=function(e){s.AMapUI=o.failed,n("请求 AMapUI 失败")},u.onload=function(){if(s.AMapUI=o.loaded,a.length)window.AMapUI.loadUI(a,function(){for(var e=0,n=a.length;e<n;e++){var i=a[e].split("/").slice(-1)[0];window.AMapUI[i]=arguments[e]}for(t();l.AMapUI.length;)l.AMapUI.splice(0,1)[0]()});else for(t();l.AMapUI.length;)l.AMapUI.splice(0,1)[0]()},c.appendChild(u)}else s.AMapUI===o.loaded?e.version&&e.version!==r.AMapUI.version?n("不允许多个版本 AMapUI 混用"):a.length?window.AMapUI.loadUI(a,function(){for(var e=0,n=a.length;e<n;e++){var i=a[e].split("/").slice(-1)[0];window.AMapUI[i]=arguments[e]}t()}):t():e.version&&e.version!==r.AMapUI.version?n("不允许多个版本 AMapUI 混用"):l.AMapUI.push(function(e){e?n(e):a.length?window.AMapUI.loadUI(a,function(){for(var e=0,n=a.length;e<n;e++){var i=a[e].split("/").slice(-1)[0];window.AMapUI[i]=arguments[e]}t()}):t()})})}function i(e){return new Promise(function(t,n){if(s.Loca===o.failed)n("前次请求 Loca 失败");else if(s.Loca===o.notload){s.Loca=o.loading,r.Loca.version=e.version||r.Loca.version;var a=r.Loca.version,i=r.AMap.version.startsWith("2"),c=a.startsWith("2");if(i&&!c||!i&&c)n("JSAPI 与 Loca 版本不对应!!");else{i=r.key,c=document.body||document.head;var u=document.createElement("script");u.type="text/javascript",u.src="https://webapi.amap.com/loca?v="+a+"&key="+i,u.onerror=function(e){s.Loca=o.failed,n("请求 AMapUI 失败")},u.onload=function(){for(s.Loca=o.loaded,t();l.Loca.length;)l.Loca.splice(0,1)[0]()},c.appendChild(u)}}else s.Loca===o.loaded?e.version&&e.version!==r.Loca.version?n("不允许多个版本 Loca 混用"):t():e.version&&e.version!==r.Loca.version?n("不允许多个版本 Loca 混用"):l.Loca.push(function(e){e?n(e):n()})})}if(!window)throw Error("AMap JSAPI can only be used in Browser.");var o;!function(e){e.notload="notload",e.loading="loading",e.loaded="loaded",e.failed="failed"}(o||(o={}));var r={key:"",AMap:{version:"1.4.15",plugins:[]},AMapUI:{version:"1.1",plugins:[]},Loca:{version:"1.3.2"}},s={AMap:o.notload,AMapUI:o.notload,Loca:o.notload},l={AMapUI:[],Loca:[]},c=[],u=function(e){"function"==typeof e&&(s.AMap===o.loaded?e(window.AMap):c.push(e))};return{load:function(a){var i=this;return new Promise(function(l,d){if(s.AMap==o.failed)d("");else if(s.AMap==o.notload){var h=a.key,p=a.version,f=a.plugins;if(h){window.AMap&&"lbs.amap.com"!==location.host&&d("禁止多种API加载方式混用"),r.key=h,r.AMap.version=p||r.AMap.version,r.AMap.plugins=f||r.AMap.plugins,s.AMap=o.loading;var v=document.body||document.head;window.___onAPILoaded=function(e){if(delete window.___onAPILoaded,e)s.AMap=o.failed,d(e);else for(s.AMap=o.loaded,n(a).then(function(){l(window.AMap)}).catch(d);c.length;)c.splice(0,1)[0]()};var m=document.createElement("script");m.type="text/javascript",h="https://webapi.amap.com/maps?callback=___onAPILoaded&v="+r.AMap.version+"&key="+h+"&plugin="+r.AMap.plugins.join(","),fetch(h).then(function(n){return e(i,void 0,void 0,function(){var e;return t(this,function(t){switch(t.label){case 0:return[4,n.text()];case 1:return e=t.sent(),m.textContent=e.replace("define.amd","undefined"),v.appendChild(m),[2]}})})}).catch(function(e){s.AMap=o.failed,d(e)})}else d("请填写key")}else if(s.AMap==o.loaded)if(a.key&&a.key!==r.key)d("多个不一致的 key");else if(a.version&&a.version!==r.AMap.version)d("不允许多个版本 JSAPI 混用");else{if(h=[],a.plugins)for(p=0;p<a.plugins.length;p+=1)-1==r.AMap.plugins.indexOf(a.plugins[p])&&h.push(a.plugins[p]);h.length?window.AMap.plugin(h,function(){n(a).then(function(){l(window.AMap)}).catch(d)}):n(a).then(function(){l(window.AMap)}).catch(d)}else if(a.key&&a.key!==r.key)d("多个不一致的 key");else if(a.version&&a.version!==r.AMap.version)d("不允许多个版本 JSAPI 混用");else{var g=[];if(a.plugins)for(p=0;p<a.plugins.length;p+=1)-1==r.AMap.plugins.indexOf(a.plugins[p])&&g.push(a.plugins[p]);u(function(){g.length?window.AMap.plugin(g,function(){n(a).then(function(){l(window.AMap)}).catch(d)}):n(a).then(function(){l(window.AMap)}).catch(d)})}})},reset:function(){delete window.AMap,delete window.AMapUI,delete window.Loca,r={key:"",AMap:{version:"1.4.15",plugins:[]},AMapUI:{version:"1.1",plugins:[]},Loca:{version:"1.3.2"}},s={AMap:o.notload,AMapUI:o.notload,Loca:o.notload},l={AMap:[],AMapUI:[],Loca:[]}}}}()}(_L);var EL=_o(_L.exports);function PL(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!Ve(e)}const NL=xe({name:"IBizMapPicker",props:ge(),emits:Z(),setup(e,{emit:t}){const a=n("map-picker"),i=e.controller,{editorItems:o}=i.model;let r="",s="";if(o){const[e,t]=o;r=e.id||"",s=t.id||""}const l=je(),c=je(),u=qe(()=>{var e,t,n;return null==(n=null==(e=c.value)?void 0:(t=e.$el).querySelector)?void 0:n.call(t,"input")}),d=je(),h=je(),p=je(!1),f=je(!1),v=je(""),m=je(!1);let g,b;const y=je([]);let w;const _={address:"",longitude:null,latitude:null},E=()=>{if(b){const{lng:e,lat:t}=b.getPosition(),n=y.value.findIndex(n=>{const a=n.getPosition();return a.lng===e&&a.lat===t});-1!==n?b.setContent(i.presetMarkers[n].content):b.setMap(null),b=void 0}},P=(e,t)=>{const n=window.AMap;n&&(E(),b=new n.Marker({position:[e,t]}))},N=(e,t)=>{const n=window.AMap;if(!n)return;if(!b)return;const o=new n.Geocoder({}),r=b;o.getAddress([e,t],(n,o)=>{if(b&&b===r&&"complete"===n&&"OK"===o.info&&o.regeocode){const n=o.regeocode.formattedAddress,s=document.createElement("div"),l=document.createElement("img");l.style.width="25px",l.src=i.markerIcon,s.appendChild(l);const c=r.getExtData();if(c&&Qt(c.index)){const e=document.createElement("span");e.className=a.b("dialog-map-marker-index"),e.textContent=c.index,s.appendChild(e)}const u=document.createElement("span");u.className=a.b("popup-map-marker-text"),u.textContent=n,s.appendChild(u),b.setContent(s),b.setMap(g),_.address=n,_.longitude=e,_.latitude=t,v.value=n}})},I=()=>{p.value=!1,w&&(w.clearSuggest(),w.clearSearchResults()),v.value="",_.address="",_.longitude=null,_.latitude=null,E()};Ue(()=>{null==g||g.destroy()});return{ns:a,c:i,inputRef:l,searchRef:c,mapContainerRef:d,searchResultContainerRef:h,dialogVisible:p,isLoading:f,searchValue:v,handleShow:()=>{var t;p.value=!0,null==(t=l.value)||t.blur(),it(async()=>{var t;if(window.AMap||await(async()=>{try{f.value=!0,window._AMapSecurityConfig={securityJsCode:ibiz.env.aMapSecurityJsCode},await EL.load({key:ibiz.env.aMapKey,version:"2.0",plugins:["AMap.PlaceSearch","AMap.Geocoder"],AMapUI:{version:"1.1",plugins:["misc/PoiPicker"]}})}finally{f.value=!1}})(),g&&(null==(t=d.value)?void 0:t.children.length)||(null==g||g.destroy(),(()=>{const e=window.AMap;if(!e)return;if(!d.value)return;const t={viewMode:"3D",zoom:11};i.defaultCenter.length>0&&(t.center=i.defaultCenter),g=new e.Map(d.value,t),i.defaultCity&&(null==g||g.setCity(i.defaultCity)),null==g||g.on("click",e=>{const t=e.lnglat,n=t.lng,a=t.lat;null!=n&&null!=a&&(P(n,a),N(n,a))}),null==g||g.on("complete",()=>{m.value=!0}),i.presetMarkers.length>0&&i.presetMarkers.forEach((t,n)=>{const a=new e.Marker({position:[t.longitude,t.latitude],extData:{index:n+1},...t});y.value.push(a),a.on("click",e=>{const t=e.lnglat,n=t.lng,i=t.lat;null!=n&&null!=i&&(E(),b=a,N(n,i))}),null==g||g.add(a)});const n=window.AMapUI;n&&u.value&&h.value&&n.loadUI(["misc/PoiPicker"],function(e){u.value&&h.value&&e&&(w=new e({input:u.value,placeSearchOptions:{map:g},searchResultsContainer:h.value}),null==w||w.on("poiPicked",function(e){var t,n;E();const a=e.item;a&&(_.address=a.name,_.longitude=null==(t=a.location)?void 0:t.lng,_.latitude=null==(n=a.location)?void 0:n.lat,v.value=a.name,"search"!==e.source&&(null==w||w.searchByKeyword(a.name)))}))})})()),v.value=e.value||"",e.data&&r&&s){const t=e.data[r],n=e.data[s];t&&n&&(null==g||g.setCenter([t,n],!0),P(t,n),N(t,n))}})},handleConfirm:()=>{p.value=!1,r&&t("change",null!=_.longitude?_.longitude:null,r),s&&t("change",null!=_.latitude?_.latitude:null,s),t("change",_.address||""),I()},handleClose:I,handleClear:e=>{e.stopPropagation(),r&&t("change",null,r),s&&t("change",null,s),t("change",""),I()},handleSearchClear:()=>{v.value="",_.address="",_.longitude=null,_.latitude=null,E()},renderPresetMarkers:()=>i.presetMarkers.length?Oe("div",{class:[a.e("preset-markers"),a.is("active",m.value)]},[Oe("div",{class:a.e("preset-markers-inner")},[i.presetMarkers.map((e,t)=>Oe("div",{class:[a.e("preset-marker")],onClick:()=>{E(),b=y.value[t],N(e.longitude,e.latitude)}},[Oe("div",{class:a.e("preset-marker-index"),style:{backgroundImage:"url(".concat(i.markerIcon,")")}},[Oe("span",null,[t+1])]),Oe("div",{class:a.e("preset-marker-content")},[e.title]),e.icon?Oe("img",{src:e.icon,alt:e.title},null):null]))])]):null}},render(){let e;return e=this.readonly?this.value:[Oe(De("van-field"),{class:this.ns.b("input"),ref:"inputRef",modelValue:this.value,readonly:!0,placeholder:this.c.placeHolder,disabled:this.disabled,onClick:this.handleShow},{button:()=>{if(!this.readonly&&this.value)return Oe(De("van-button"),{icon:"clear",onClick:this.handleClear},null)},"right-icon":()=>{if(!this.readonly)return Oe(xO,null,null)}}),Oe(De("van-popup"),{class:this.ns.b("popup"),show:this.dialogVisible,"onUpdate:show":e=>this.dialogVisible=e,round:!0,position:"bottom",teleport:"body","close-on-popstate":!0},{default:()=>{let e,t;return Oe("div",{class:this.ns.b("popup-wrapper")},[Oe("div",{class:this.ns.b("popup-wrapper-content")},[Oe("div",{class:this.ns.b("popup-content-search")},[Oe(De("van-search"),{ref:"searchRef",modelValue:this.searchValue,"onUpdate:modelValue":e=>this.searchValue=e,placeholder:ibiz.i18n.t("editor.mapPicker.searchPlaceholder"),disabled:this.isLoading},null),this.renderPresetMarkers()]),Ye(Oe("div",{class:this.ns.b("popup-map-content")},[Oe("div",{class:this.ns.b("popup-map-container"),ref:"mapContainerRef"},null),Oe("div",{class:this.ns.b("popup-search-result-container"),ref:"searchResultContainerRef"},null)]),[[ot("loading"),this.isLoading]])]),Oe("div",{class:this.ns.b("popup-wrapper-footer")},[Oe(De("van-button"),{class:this.ns.b("popup-confirm"),onClick:this.handleClose},PL(e=ibiz.i18n.t("editor.common.cancel"))?e:{default:()=>[e]}),Oe(De("van-button"),{class:this.ns.b("popup-footer-button"),type:"primary",disabled:this.isLoading,onClick:this.handleConfirm},PL(t=ibiz.i18n.t("editor.common.confirm"))?t:{default:()=>[t]})])])}})],Oe("div",{class:[this.ns.b(),this.disabled?this.ns.m("disabled"):"",this.readonly?this.ns.m("readonly"):""]},[e])}});var IL=Object.defineProperty,AL=(e,t,n)=>(((e,t,n)=>{t in e?IL(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n),n);class kL extends ei{constructor(){super(...arguments),AL(this,"presetMarkers",[]),AL(this,"markerIcon","".concat(ibiz.env.assetsUrl,"/img/poi-marker-default.png")),AL(this,"defaultCenter",[]),AL(this,"defaultCity","")}async onInit(){await super.onInit();const{mapDataSetId:e,mapEntityId:t,defaultCenter:a,defaultCity:i}=this.editorParams;let{mapFieldMap:o}=this.editorParams;if(o&&(o=JSON.parse(o)),t&&e){const a=await ibiz.hub.getApp(this.model.appId).deService.getService(this.context,t),i=await a.exec(e,this.context);if(i.ok){this.presetMarkers=i.data.map(e=>{const t={};for(const n in o)if(Object.prototype.hasOwnProperty.call(o,n)){const a=o[n];t[n]=e[a],["longitude","latitude"].includes(n)&&(t[n]=parseFloat(t[n]))}return t});const e=n("map-picker");this.presetMarkers.forEach((t,n)=>{t.content||(t.content='<div><img src="'.concat(this.markerIcon,'" width="25"><span class="').concat(e.b("dialog-map-marker-index"),'">').concat(n+1,"</span></div>"))})}}a&&(this.defaultCenter=a.split(",")),i&&(this.defaultCity=i)}}var CL=Object.defineProperty,SL=(e,t,n)=>(((e,t,n)=>{t in e?CL(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n),n);class ML{constructor(){SL(this,"formEditor","IBizMapPicker"),SL(this,"gridEditor","IBizMapPicker")}async createController(e,t){const n=new kL(e,t);return await n.init(),n}}const xL=xe({name:"IBizArray",props:be(),emits:Z(),setup(e,{emit:t}){const a=n("array"),i=e.controller,o=i.model;let r,s="default",l=0,c=!1;const u=je([]);o.editorParams&&(o.editorParams.size&&(s=o.editorParams.size),o.editorParams.limit&&(l=fn(o.editorParams.limit)),o.editorParams.maxLength&&(r=fn(o.editorParams.maxLength)),o.editorParams.maxlength&&(r=fn(o.editorParams.maxlength)),o.editorParams.showWordLimit&&(c=i.toBoolean(o.editorParams.showWordLimit)),o.editorParams.showwordlimit&&(c=i.toBoolean(o.editorParams.showwordlimit)));const d=o.dataType,h=Object.is(d,"NUMBER")||Object.is(d,"INTEGER")?"number":"text",p=qe(()=>!(!e.controlParams||"hover"!==e.controlParams.editmode||e.readonly));$e(()=>e.value,(e,t)=>{if(e&&e!==t&&0===u.value.length){const t=e.map(e=>({value:e,key:xi()}));u.value=t}},{immediate:!0});const f=(e="blur")=>{const n=u.value.map(e=>e.value);e===i.triggerMode&&t("change",n)};return{ns:a,c:i,type:h,size:s,limit:l,maxLength:r,showWordLimit:c,items:u,addItem:t=>{if(e.disabled||e.readonly)return;const n={key:xi(),value:""};t?u.value.splice(t,0,n):u.value.push(n),f()},removeItem:e=>{u.value.splice(e,1),f()},handleInput:()=>{f("input")},onBlur:e=>{f("blur"),t("blur",e)},onFocus:e=>{t("focus",e)},showFormDefaultContent:p}},render(){return Oe("div",{class:[this.ns.b(),this.disabled?this.ns.m("disabled"):"",this.readonly?this.ns.m("readonly"):"",this.ns.is("show-default",this.showFormDefaultContent)]},[0===this.items.length?Oe("ion-icon",{class:this.ns.b("add-icon"),name:"add-outline",onClick:this.addItem},null):this.items.map((e,t)=>Oe("div",{class:this.ns.b("item"),key:e.key},[Oe(De("van-field"),Te({type:this.type,size:this.size,modelValue:e.value,"onUpdate:modelValue":t=>e.value=t,placeholder:this.c.placeHolder,maxlength:this.maxLength,"show-word-limit":this.showWordLimit,disabled:this.disabled,readonly:this.readonly,onBlur:this.onBlur,onFocus:this.onFocus,onInput:()=>this.handleInput()},m(this.$attrs)),{extra:()=>{if(!this.disabled&&!this.readonly)return Oe("div",{class:this.ns.b("icons")},[(!this.limit||this.items.length<this.limit)&&Oe("ion-icon",{class:this.ns.b("add-icon"),name:"add",onClick:()=>this.addItem(t+1)},null),Oe("ion-icon",{class:this.ns.b("remove-icon"),name:"remove",onClick:()=>this.removeItem(t)},null)])}})]))])}});class OL extends ei{}var DL=Object.defineProperty,TL=(e,t,n)=>(((e,t,n)=>{t in e?DL(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n),n);class jL{constructor(){TL(this,"formEditor","IBizArray"),TL(this,"gridEditor","IBizArray")}async createController(e,t){const n=new OL(e,t);return await n.init(),n}}const LL=xe({name:"IBizEmbedAIChat",props:ee(),emits:Z(),setup(e){const t=n("embed-ai-chat"),a=e.controller,i=je(null);return Be(()=>{(async()=>{const t=a.model.appDataEntityId,n=a.chatInstance;if(!t||!a.deACMode||!n)return;const{containerOptions:o,chatOptions:r}=await ibiz.aiChatUtil.getEditorExAIChatParams(a.editorParams,a.context,a.params,e.data,a.deACMode,{chatInstance:n,view:a.view,ctrl:a.ctrl}),s=await ibiz.aiChatUtil.getAIResourceOptions(a.context,a.params);n.create({resourceOptions:s,containerOptions:{...o,container:i.value},chatOptions:{caption:a.deACMode.logicName,context:{...a.context},params:{...a.params,srfactag:a.deACMode.codeName},appDataEntityId:t,...r}})})()}),Ue(()=>{const e=a.chatInstance;e&&e.close()}),{c:a,ns:t,aiChatElementRef:i}},render(){return Oe("div",{class:this.ns.b()},[Oe("div",{class:this.ns.e("container"),ref:"aiChatElementRef"},null)])}});var VL=Object.defineProperty,BL=(e,t,n)=>(((e,t,n)=>{t in e?VL(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n),n);class UL extends ei{constructor(){super(...arguments),BL(this,"chatInstance"),BL(this,"deService"),BL(this,"deACMode")}async onInit(){await super.onInit();const e=this.model;e.appDEACModeId&&(this.deACMode=await wn(e.appDEACModeId,e.appDataEntityId,this.context.srfappid),this.deACMode&&"CHATCOMPLETION"===this.deACMode.actype&&ibiz.env.enableAI&&(this.deService=await ibiz.hub.getApp(e.appId).deService.getService(this.context,e.appDataEntityId)));const n=await t.import("@ibiz-template-plugin/ibiz-mob-ai-chat");n&&n.createFlatChat?this.chatInstance=n.createFlatChat():n&&n.default&&n.default.createFlatChat&&(this.chatInstance=n.default.createFlatChat())}}var zL=Object.defineProperty,RL=(e,t,n)=>(((e,t,n)=>{t in e?zL(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n),n);class FL{constructor(){RL(this,"formEditor","IBizEmbedAIChat"),RL(this,"gridEditor","IBizEmbedAIChat")}async createController(e,t){const n=new UL(e,t);return await n.init(),n}}const $L=e("aW",{install:e=>{e.component(xL.name,xL),e.component(dO.name,dO),e.component(EO.name,EO),e.component(PO.name,PO),e.component(NO.name,NO),e.component(fO.name,fO),e.component(vO.name,vO),e.component(XO.name,XO),e.component(tD.name,tD),e.component(OO.name,OO),e.component(uL.name,uL),e.component(DO.name,DO),e.component(TO.name,TO),e.component(FO.name,FO),e.component(rD.name,rD),e.component(dD.name,dD),e.component(mD.name,mD),e.component(PD.name,PD),e.component(MD.name,MD),e.component(VD.name,VD),e.component(BD.name,BD),e.component(GD.name,GD),e.component(XD.name,XD),e.component(YD.name,YD),e.component(iT.name,iT),e.component(cT.name,cT),e.component(mT.name,mT),e.component($j.name,$j),e.component(UD.name,UD),e.component(JD.name,JD),e.component(dL.name,dL),e.component(KD.name,KD),e.component(mL.name,mL),e.component(NL.name,NL),e.component(LL.name,LL),e.component("IBizMarkDown",ct(()=>t.import("./ibiz-markdown-editor-CJML6xAn.js"))),e.component("IBizQuill",ct(()=>t.import("./quill-editor-Dr2Twryp.js"))),e.component("IBizQuillPreview",ct(()=>t.import("./quill-editor-preview-Z4mYt5NV.js"))),ti("ARRAY",()=>new jL),ti("MOBARRAY",()=>new jL),ti("SPAN",()=>new _O),ti("FIELD_TEXT_DYNAMIC_SPAN",()=>new _O),ti("SPAN_LINK",()=>new _O("SPAN_LINK"));const n=new MO;ti("MOBTEXT",()=>n),ti("MOBPASSWORD",()=>n),ti("MOBTEXTAREA",()=>n),ti("MOBNUMBER",()=>new MO("NUMBER")),ti("TEXTBOX",()=>n),ti("PASSWORD",()=>n),ti("TEXTAREA",()=>n),ti("NUMBER",()=>new MO("NUMBER")),ti("TEXTAREA_EMBED_AI_CHAT",()=>new FL),ti("MOBTEXT_SIGNATURE",()=>new MO("SIGNATURE")),ti("TEXTBOX_SIGNATURE",()=>new MO("SIGNATURE")),ti("MOBDROPDOWNLIST",()=>new zO),ti("DROPDOWNLIST",()=>new zO),ti("MOBDROPDOWNLIST_EMOJI_PICKER",()=>new zO("EMOJI_PICKER")),ti("DROPDOWNLIST_EMOJI_PICKER",()=>new zO("EMOJI_PICKER")),ti("DROPDOWNLIST_CASCADER",()=>new zO("MOBDROPDOWNLIST_CASCADER")),ti("MOBDROPDOWNLIST_CASCADER",()=>new zO("MOBDROPDOWNLIST_CASCADER")),ti("MOBCHECKLIST",()=>new zO("MOBCHECKLIST")),ti("MDROPDOWNLIST",()=>new zO("MDROPDOWNLIST")),ti("MOBSWITCH",()=>new ZO),ti("SWITCH",()=>new ZO),ti("MOBCASCADER",()=>new wT),ti("CASCADER",()=>new wT),ti("MOBCOLORPICKER",()=>new Xj),ti("COLORPICKER",()=>new Xj),ti("MOBSLIDER",()=>new uD),ti("SLIDER",()=>new uD),ti("RAW",()=>new vD),ti("MOBSTEPPER",()=>new ED),ti("STEPPER",()=>new ED),ti("MOBRATING",()=>new kD),ti("RATING",()=>new kD),ti("MOBMARKDOWN",()=>new tL),ti("MARKDOWN",()=>new tL),ti("MOBHTMLTEXT",()=>new sL),ti("HTMLEDITOR",()=>new sL),ti("MOBRADIOLIST",()=>new oD),ti("RADIOBUTTONLIST",()=>new oD);const a=new LD;ti("MOBDATE",()=>a),ti("MOBDATE_HOUR",()=>a),ti("MOBDATE_MINUTE",()=>a),ti("MOBDATE_NODAY",()=>a),ti("MOBDATE_NODAY_NOSECOND",()=>a),ti("MOBDATE_NOTIME",()=>a),ti("MOBDATE_SECOND",()=>a),ti("DATEPICKER",()=>a),ti("DATEPICKEREX_HOUR",()=>a),ti("DATEPICKEREX_MINUTE",()=>a),ti("DATEPICKEREX_NODAY",()=>a),ti("DATEPICKEREX_NODAY_NOSECOND",()=>a),ti("DATEPICKEREX_NOTIME",()=>a),ti("DATEPICKEREX_SECOND",()=>a),ti("MOBPICKER",()=>new WD("MOBPICKER")),ti("MOBMPICKER",()=>new WD("MOBMPICKER")),ti("MOBPICKER_DROPDOWNVIEW",()=>new WD("MOBPICKER_DROPDOWNVIEW")),ti("PICKER",()=>new WD("PICKER")),ti("ADDRESSPICKUP",()=>new WD("ADDRESSPICKUP")),ti("PICKEREX_DROPDOWNVIEW",()=>new WD("PICKEREX_DROPDOWNVIEW")),ti("MOBSINGLEFILEUPLOAD",()=>new aT("MOBSINGLEFILEUPLOAD")),ti("MOBMULTIFILEUPLOAD",()=>new aT("MOBMULTIFILEUPLOAD")),ti("FILEUPLOADER_ONE",()=>new aT("FILEUPLOADER_ONE")),ti("FILEUPLOADER",()=>new aT("FILEUPLOADER")),ti("MOBPICTURE",()=>new aT("MOBPICTURE")),ti("MOBPICTURELIST",()=>new aT("MOBPICTURELIST")),ti("MOBPICTURE_RAW",()=>new aT("MOBPICTURE_RAW")),ti("MOBPICTURE_CROPPING",()=>new aT("MOBPICTURE_CROPPING")),ti("PICTURE_ONE",()=>new aT("PICTURE_ONE")),ti("PICTURE",()=>new aT("PICTURE")),ti("PICTURE_ONE_RAW",()=>new aT("PICTURE_ONE_RAW")),ti("PICTURE_CROPPING",()=>new aT("PICTURE_CROPPING")),ti("MOBNUMBERRANGE",()=>new lT),ti("NUMBERRANGE",()=>new lT),ti("MOBDATERANGE",()=>new vT),ti("MOBDATERANGE_NOTIME",()=>new vT),ti("DATERANGE",()=>new vT),ti("DATERANGE_NOTIME",()=>new vT),ti("CHECKBOX",()=>new wL),ti("CHECKBOXLIST",()=>new YO),ti("MAPPICKER",()=>new ML),ti("MOBMAPPICKER",()=>new ML),ti("FIELD_IMAGE_PICTURE_ONE",()=>new aT("MOBPICTURE_RAW")),ti("FIELD_CAROUSEL_PICTURE",()=>new aT("CAROUSEL")),ti("FIELD_TEXTBOX_TEXTBOX",()=>n),ti("FIELD_TEXTAREA_TEXTAREA",()=>n),ti("FIELD_RADIOBUTTONLIST_RADIOBUTTONLIST",()=>new oD),ti("FIELD_CHECKBOXLIST_CHECKBOXLIST",()=>new YO),ti("FIELD_DROPDOWNLIST_DROPDOWNLIST",()=>new zO),ti("FIELD_RATING_RATING",()=>new kD),ti("FIELD_SWITCH_SWITCH",()=>new ZO),ti("FIELD_SLIDER_SLIDER",()=>new uD),ti("FIELD_DATEPICKER_DATEPICKER",()=>new LD),ti("FIELD_DATERANGE_DATERANGE",()=>new vT),ti("FIELD_PICKER_PICKER",()=>new WD("PICKER")),ti("AUTH_USERID_TEXTBOX",()=>n),ti("AUTH_PASSWORD_PASSWORD",()=>n),ti("MOB2DBARCODEREADER",()=>new vL)}}),qL=e("b$",xe({setup(){const e=n("404-view"),t=Ii(),a=Ni();Be(()=>{setTimeout(()=>{const e=document.getElementById("app-loading-x");e&&(e.style.display="none")},300)});return{ns:e,isTop:qe(()=>!a.params.view1),gotoIndexView:()=>{t.push("/")}}},render:()=>Oe("div",null,[Qe("404")])}));function WL(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!Ve(e)}const HL=e("c0",xe({setup(){const e=n("login-view"),t=je(!1),a=je(null),i=Ni(),o=i.query.ru||"/",r="true"===i.query.isLogout,s=je(!1),l=je(null),c=je(!0),u=je(!1),d=St.create({}),h={},p=De("IBizViewShell"),f=Le({username:"",password:""}),v=qe(()=>window.location.href.indexOf("srfthird_auth_success=false")>=0),m=window.navigator.userAgent.toUpperCase();r||v.value||ibiz.env.loginMode===Yt.OAUTH||(-1!==m.indexOf("DINGTALK")?ibiz.thirdAuth.auth("DINGTALK","EMBED"):-1!==m.indexOf("WXWORK")&&ibiz.thirdAuth.auth("WXWORK","EMBED"));const g=je(ibiz.env.AppTitle);(async()=>{const e=(await ibiz.hub.getAppAsync(ibiz.env.appId)).model;e.caption&&!g.value&&(g.value=e.caption)})(),Be(async()=>{const e=Bi.parse(window.location.search.replace("?",""));if(v.value&&ibiz.message.error(ibiz.i18n.t("view.thirdAuthFail")),-1===m.indexOf("DINGTALK")&&-1===m.indexOf("WXWORK")||v.value||r){if("true"===e.isAnonymous){!0===await ibiz.auth.anonymousLogin()&&(window.location.hash=o,window.location.reload())}else{try{const e=await ibiz.hub.config.view.get("AppLoginView");e&&(l.value=e,s.value=!0)}catch(e){ibiz.log.warn(e),window.location.reload()}c.value=!1}ibiz.util.hiddenAppLoading(),u.value=!0}});return{ns:e,title:g,loading:t,formRef:a,loginData:f,isMounted:u,isAnonymous:c,hasLoginView:s,login:async()=>{var e,n;try{if(!f.username)return void ibiz.notification.error({desc:ibiz.i18n.t("view.fillInUserName")});if(!f.password)return void ibiz.notification.error({desc:ibiz.i18n.t("view.fillInPassword")});t.value=!0;const e=await yn();await e.login({loginname:f.username,password:f.password}),t.value=!1}catch(a){ibiz.notification.error({desc:(null==(n=null==(e=null==a?void 0:a.response)?void 0:e.data)?void 0:n.message)||ibiz.i18n.t("view.loginFailed")}),t.value=!1}},renderCustomLoginView:()=>ze(p,{context:d,params:h,viewId:l.value.id})}},render(){if(this.isMounted&&!1===this.isAnonymous){let e;return this.hasLoginView?this.renderCustomLoginView():Oe("div",{class:this.ns.b()},[Oe("div",{class:this.ns.b("logo")},[Oe("img",{class:this.ns.b("logo-img"),src:"./assets/img/login-logo.png"},null),Oe("div",{class:this.ns.b("title")},[this.title])]),Oe(De("van-form"),{class:this.ns.b("form"),ref:"formRef"},{default:()=>[Oe("div",{class:this.ns.b("user")},[Oe("ion-icon",{name:"person"},null),Oe(De("van-field"),{placeholder:ibiz.i18n.t("view.enterUserName"),name:ibiz.i18n.t("view.userName"),modelValue:this.loginData.username,"onUpdate:modelValue":e=>this.loginData.username=e,rules:[{required:!0,message:ibiz.i18n.t("view.fillInUserName")}]},null)]),Oe("div",{class:this.ns.b("password")},[Oe("ion-icon",{name:"lock-closed"},null),Oe(De("van-field"),{placeholder:ibiz.i18n.t("view.enterPassword"),name:ibiz.i18n.t("view.password"),type:"password",modelValue:this.loginData.password,"onUpdate:modelValue":e=>this.loginData.password=e,rules:[{required:!0,message:ibiz.i18n.t("view.fillInPassword")}]},null)])]}),Oe("div",{class:this.ns.b("btns")},[Oe(De("van-button"),{loading:this.loading,class:this.ns.b("login-btn"),onClick:this.login},WL(e=ibiz.i18n.t("view.login"))?e:{default:()=>[e]})])])}return null}}));const GL=e("c1",xe({setup(){const e=n("download-view"),t=Ni(),a=window.navigator.userAgent.toLowerCase(),i=/Android|Adr/i.test(a)&&/wv/i.test(a)&&/version\/4\.0/i.test(a),o=On()||Dn(),r=je(o||i),s=je(""),l=je("init"),c={token:t.query.token,data:t.query.data,type:t.query.type};c.token&&Xt(qt.TOKEN,c.token,0);const u=async()=>{l.value="processing",s.value=ibiz.i18n.t("view.downloading");let e=!1;try{const t=JSON.parse(c.data);switch(c.type){case uO.DOWNLOAD:e=await ibiz.platform.download(t.url,t.fileName);break;case uO.BACKEND_EXPORT:e=await ibiz.platform.backendExport(t);break;case uO.FRONT_EXPORT:e=await ibiz.platform.frontExport(t)}}catch(e){ibiz.message.error(e)}l.value=e?"success":"error",s.value=e?ibiz.i18n.t("view.downloadSuccess"):ibiz.i18n.t("view.downloadFailed")};r.value?(s.value=o?ibiz.i18n.t("view.noSupportDownloadTip"):ibiz.i18n.t("view.noSupportDownload"),l.value="disabled"):u();return Be(()=>{ibiz.util.hiddenAppLoading()}),{ns:e,tooltip:s,status:l,renderTip:()=>{switch(l.value){case"success":return Oe("img",{class:e.b("success-img"),src:"./assets/img/success.png"},null);case"disabled":case"error":return Oe("img",{class:e.b("error-img"),src:"./assets/img/error.png"},null);case"processing":return Oe(De("van-loading"),{type:"spinner"},null)}},onDownload:u,renderButton:()=>{let e;return i&&!o?Oe(De("van-button"),{type:"primary",onClick:()=>ibiz.platform.openBrowser(window.location.href)},function(e){return"function"==typeof e||"[object Object]"===Object.prototype.toString.call(e)&&!Ve(e)}(e=ibiz.i18n.t("view.browserDownload"))?e:{default:()=>[e]}):["init","success","error"].includes(l.value)&&c.data?Oe(De("van-button"),{onClick:u,type:"primary"},{default:()=>[["success","error"].includes(l.value)?ibiz.i18n.t("view.reDownload"):ibiz.i18n.t("view.immediatelyDownload")]}):void 0}}},render(){return Oe("div",{class:[this.ns.b(),this.ns.is("disabled","disabled"===this.status)]},[Oe("div",{class:this.ns.e("tip")},[this.renderTip()]),Oe("div",{class:this.ns.e("tooltip")},[this.tooltip]),this.renderButton()])}}));class YL extends ni{get appmenu(){return this.view.getController("appmenu")}}class XL extends ni{get form(){return this.view.getController("form")}async onCreated(){await super.onCreated();const{childNames:e,modal:t}=this.view;e.push("form"),t.hooks.shouldDismiss.tapPromise(async e=>{if(this.form.state.modified){await ibiz.modal.confirm({title:ibiz.i18n.t("viewEngine.closeRemind"),desc:ibiz.i18n.t("viewEngine.confirmClosePrompt")})||(e.allowClose=!1)}}),this.view.slotProps.form||(this.view.slotProps.form={}),this.view.slotProps.form.loadDefault=!1,this.view.slotProps.toolbar||(this.view.slotProps.toolbar={}),this.view.slotProps.toolbar.manualCalcButtonState=!0}getAllToolbars(){const e=[];return this.leftToolbar&&e.push(this.leftToolbar),this.rightToolbar&&e.push(this.rightToolbar),this.footerToolbar&&e.push(this.footerToolbar),e}updateToolbarState(e,t){this.getAllToolbars().forEach(n=>{n.calcButtonState(e,t)})}async onMounted(){await super.onMounted();const{model:e,evt:t}=this.view,n=this.form.model.appDataEntityId,a=e=>{const a=e.data[0];this.updateToolbarState(a,n);const i={};i.dataInfo=a.srfmajortext||"",t.emit("onViewInfoChange",i)};this.form.evt.on("onLoadSuccess",e=>{a(e);const n=e.data[0];this.view.state.srfactiveviewdata=n,Object.prototype.hasOwnProperty.call(n,"srfreadonly")&&(this.view.context.srfreadonly=n.srfreadonly),t.emit("onDataChange",{...e,actionType:"LOAD"})}),this.form.evt.on("onLoadDraftSuccess",e=>{a(e),t.emit("onDataChange",{...e,actionType:"LOADDRAFT"})}),this.form.evt.on("onSaveSuccess",e=>{const n=_n(this.view.model.appDataEntityId),i=e.data[0];this.view.context[n]!==i.srfkey&&(this.view.context[n]=i.srfkey),a(e),t.emit("onDataChange",{...e,actionType:"SAVE"})}),this.form.evt.on("onRemoveSuccess",e=>{a(e),t.emit("onDataChange",{...e,actionType:"REMOVE"})}),!this.view.state.noLoadDefault&&e.loadDefault&&this.load()}getData(){return this.form.getData()}async load(){return this.form.load()}async save(e){return this.form.save(e)}async refresh(){await this.load()}async call(e,t){if(e===An.SAVE){return{data:[await this.form.save()]}}if(e===An.SAVE_AND_EXIT)return await this.form.save(),{closeView:!0};if(e===An.REMOVE_AND_EXIT){return{closeView:await this.form.remove()}}return e===An.SAVE_AND_NEW?(this.saveAndNew(),null):e===An.REFRESH?(await this.refresh(),null):e===An.SAVE_AND_START?(await this.wfStart(),null):e===An.VIEW_WF_STEP?(await this.wfSubmit(),null):e===ai.WF_WITHDRAW?(await this.wfWithdraw(),null):super.call(e,t)}async saveAndNew(){return await this.form.save(),this.form.state.data=new Nn,this.view.context[_n(this.view.model.appDataEntityId)]=void 0,await this.form.load(),null}async wfStart(){var e,t;await this.save({silent:!0});const n=ibiz.hub.getApp(this.view.context.srfappid),a=await n.deService.getService(this.view.context,this.view.model.appDataEntityId),i=this.form.state.data,o=await a.wf.getWFVersion(null!=(t=null!=(e=i.srfwftag)?e:this.view.params.srfwftag)?t:this.view.context.srfwftag);if(0===o.data.length)throw new Nt(ibiz.i18n.t("viewEngine.noExistVersionErr"));const r=o.data[0],s="WFSTART@".concat(r.wfversion),l=Object.assign(this.view.context.clone(),{activeForm:r["process-form"]}),c={processDefinitionKey:r.definitionkey},u=ii(this.view.model,s);if(!u)return await this.form.wfStart({viewParam:c}),void await this.view.closeView();(await ibiz.commands.execute(Cn.TAG,u.refAppViewId,l,c)).ok&&await this.view.closeView()}wfSubmit(){return this.form.wfSubmit()}async wfWithdraw(){const e=ibiz.hub.getApp(this.view.context.srfappid),t=this.form.state.data,n=await e.deService.getService(this.view.context,this.view.model.appDataEntityId);await n.wf.wfWithdraw(this.view.context,{...this.view.params,taskId:this.view.params.taskId||this.view.params.srftaskid},t instanceof Nn?t.getOrigin():t),ibiz.mc.command.send({srfdecodename:"SysTodo"},"OBJECTUPDATED")}async cancelChanges(e={targetState:"INIT"}){await super.cancelChanges(e),await this.form.cancelChanges(e.targetState)}}var JL=Object.defineProperty,KL=(e,t,n)=>(((e,t,n)=>{t in e?JL(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,t+"",n),n);class QL extends XL{constructor(){super(...arguments),KL(this,"embedViewMap",new Map)}async onCreated(){await super.onCreated();const{childNames:e}=this.view;e.push("drtab")}get drtab(){return this.view.getController("drtab")}async onMounted(){var e;await super.onMounted(),null==(e=this.view.layoutPanel)||e.evt.on("onPresetPanelItemEvent",e=>{var t,n,a;(null==(t=null==e?void 0:e.presetParams)?void 0:t.view)&&(null==(a=null==(n=this.drtab)?void 0:n.state)?void 0:a.activeName)&&this.embedViewMap.set(this.drtab.state.activeName,e.presetParams.view)})}async refresh(){var e,t;if(await super.refresh(),!(null==(t=null==(e=this.drtab)?void 0:e.state)?void 0:t.activeName))return;const n=this.embedViewMap.get(this.drtab.state.activeName);n&&n.call(An.REFRESH)}}class ZL extends oi{get mdctrl(){return this.view.getController("mdctrl")}async call(e,t){return e===An.LOAD_MORE?(await this.loadMore(),null):super.call(e,t)}async onXDataActive(e){const t=ri(e.data[0]);Object.assign(e.context,t),await this.openData(e)}loadMore(){return this.mdctrl.loadMore()}async onCreated(){await super.onCreated()}async onMounted(){await super.onMounted(),this.xdataControl.evt.on("onSelectionChange",async e=>{this.view.evt.emit("onSelectionChange",{...e})}),this.xdataControl.evt.on("onActive",async e=>{this.view.evt.emit("onDataActive",{...e})});const e=this.mdctrl.model.delistItems;if(e){e.findIndex(e=>!!e.enableSort)>=0&&this.view.evt.emit("onPresetClassChange",{data:["enablesort"]})}}}var eV=Object.defineProperty,tV=(e,t,n)=>(((e,t,n)=>{t in e?eV(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,t+"",n),n);class nV extends ni{constructor(){super(...arguments),tV(this,"selectedData",[])}get pickupViewPanel(){return this.view.getController("pickupviewpanel")}async onCreated(){await super.onCreated();const{childNames:e}=this.view;e.push("pickupviewpanel"),this.view.slotProps.pickupviewpanel||(this.view.slotProps.pickupviewpanel={}),this.view.slotProps.pickupviewpanel.singleSelect=!0,this.view.params.selecteddata&&(this.selectedData=JSON.parse(this.view.params.selecteddata),delete this.view.params.selecteddata)}async onMounted(){await super.onMounted(),this.pickupViewPanel.evt.on("onSelectionChange",e=>{this.selectedData=e.data}),this.pickupViewPanel.evt.on("onDataActive",e=>{this.pickupViewPanelDataActive(e.data)}),this.setSelectedData(this.selectedData)}setSelectedData(e){this.selectedData=e,this.pickupViewPanel.setSelectedData(e)}pickupViewPanelDataActive(e){this.selectedData=e,this.view.closeView({ok:!0,data:this.selectedData})}async call(e,t){return e===An.CANCEL?(this.cancel(),null):e===An.OK?(this.confirm(),null):super.call(e,t)}confirm(){this.view.closeView({ok:!0,data:this.selectedData})}cancel(){this.view.closeView({ok:!1,data:[]})}calcViewFooterVisible(){return!0}}class aV extends nV{get simpleList(){return this.view.getController("simplelist")}get okButton(){return this.view.layoutPanel.panelItems.button_okaction}async onCreated(){await super.onCreated(),this.view.params.selectedData&&(this.selectedData=JSON.parse(this.view.params.selectedData),delete this.view.params.selectedData),this.view.params.selecteddata&&(this.selectedData=JSON.parse(this.view.params.selecteddata),delete this.view.params.selecteddata),this.view.slotProps.simplelist||(this.view.slotProps.simplelist={}),this.view.slotProps.pickupviewpanel||(this.view.slotProps.pickupviewpanel={}),this.view.slotProps.pickupviewpanel.singleSelect=!1,this.view.slotProps.pickupviewpanel.selectedData=this.selectedData,this.view.slotProps.simplelist.singleSelect=!1,this.view.slotProps.simplelist.mdctrlActiveMode=2,this.view.slotProps.simplelist.mode="SELECT",this.view.slotProps.simplelist.loadDefault=!1}async onMounted(){await super.onMounted(),this.pickupViewPanel.evt.on("onSelectionChange",e=>{this.pickupViewPanelSelectionChange(e.data)}),this.simpleList.evt.on("onActive",e=>{this.removeSelection(e.data)}),this.simpleList.setData(this.selectedData),this.simpleList.setSelection(this.selectedData),this.simpleList&&(this.view.layoutPanel.panelItems.simplelist.state.visible=!1)}async call(e,t){return e===An.CANCEL?(this.cancel(),null):e===An.OK?(this.confirm(),null):e===An.ADD_ALL?(this.addAll(),null):e===An.REMOVE_ALL?(this.removeAll(),null):e===An.ADD_SELECTION?(this.addSelection(),null):super.call(e,t)}async pickupViewPanelDataActive(){const e=await this.pickupViewPanel.getSelectedData();await this.handlePushSimpleListItems(e)}pickupViewPanelSelectionChange(e){this.simpleList.setData(e),this.simpleList.setSelection(e)}calcDuplicateData(e,t){return t.forEach(t=>{const n=e.findIndex(e=>e.srfkey&&e.srfkey===t.srfkey||e.id===t.id);-1!==n?e.splice(n,1):e.push(t)}),e}async handlePushSimpleListItems(e){const t=await this.pickupViewPanel.getAllData(),n=this.simpleList.getAllData().filter(e=>!t.some(t=>t.srfkey===e.srfkey));n.push(...e);const a=this.handleUniqueItems(n);this.setSelectedData(a)}handleUniqueItems(e){const t=new Map;return e.filter(e=>!t.has(e.srfkey)&&t.set(e.srfkey,1))}async addAll(){const e=await this.pickupViewPanel.getAllData();this.handlePushSimpleListItems(e)}removeAll(){this.setSelectedData([])}async addSelection(){const e=await this.pickupViewPanel.getSelectedData();this.handlePushSimpleListItems(e)}removeSelection(e){const t=this.simpleList.getAllData();e.forEach(e=>{const n=t.findIndex(t=>e.srfkey===t.srfkey);-1!==n&&t.splice(n,1)}),this.setSelectedData(t)}setSelectedData(e){super.setSelectedData(e),this.simpleList.setData(e)}confirm(){const e=this.simpleList.getAllData();this.view.closeView({ok:!0,data:e})}calcViewFooterVisible(){return!0}}class iV extends oi{get tree(){return this.view.getController("tree")}async onCreated(){await super.onCreated(),this.view.slotProps.tree||(this.view.slotProps.tree={})}async openData(e){const{data:t,event:n}=e;return await this.xdataControl.openData(t[0],n)}async newData(e){const{data:t,event:n}=e;return await this.xdataControl.newData(t[0],n)}}class oV extends iV{get xdataControlName(){return"tree"}get tree(){return this.view.getController("tree")}async onMounted(){const{model:e}=this.view;this.xdataControl.evt.on("onSelectionChange",async e=>{const t=e.data.map(e=>e._deData||e);this.view.evt.emit("onSelectionChange",{...e,data:t})}),this.xdataControl.evt.on("onActive",async e=>{const t=e.data.map(e=>e._deData||e);this.view.evt.emit("onDataActive",{...e,data:t})}),e.loadDefault&&this.load()}async onCreated(){super.onCreated(),this.view.slotProps.tree||(this.view.slotProps.tree={}),this.view.slotProps.tree.singleSelect=this.view.state.singleSelect}}var rV=Object.defineProperty,sV=(e,t,n)=>(((e,t,n)=>{t in e?rV(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n),n);class lV extends ni{constructor(){super(...arguments),sV(this,"dataEntity"),sV(this,"embedViewMap",new Map)}get tabExpPanel(){return this.view.getController("tabexppanel")}preprocessTabExpModelLayout(){const e=(t,n=this.view.model.viewLayoutPanel.rootPanelItems)=>{if(null==n?void 0:n.length)for(let a=0;a<n.length;a++){const i=n[a];if(i.id===t)return i;const o=i;if(o.panelItems&&o.panelItems.length>0){const n=e(t,o.panelItems);if(n)return n}}},t=(e,n=this.view.model.viewLayoutPanel.rootPanelItems)=>{for(let a=0;a<n.length;a++){const i=n[a];e.includes(i.id)&&n.splice(a,1);const o=i;o.panelItems&&o.panelItems.length>0&&t(e,o.panelItems)}},{tabLayout:n}=this.view.model,a=["view_tabexppanel","view_tabexppanel_left","view_tabexppanel_bottom","view_tabexppanel_right"];let i="view_tabexppanel";switch(n){case"LEFT":i="view_tabexppanel_left",a.splice(1,1);break;case"BOTTOM":i="view_tabexppanel_bottom",a.splice(2,1);break;case"RIGHT":i="view_tabexppanel_right",a.splice(3,1);break;case"TOP":default:a.splice(0,1);case"FLOW":case"FLOW_NOHEADER":}(n=>{const a=e("tabexppanel");if(!a)return;["view_tabexppanel_left","view_tabexppanel_right"].includes(n)&&(a.layoutPos={...a.layoutPos,grow:1});const i=e(n);i&&(t(["tabexppanel"]),i.panelItems=[a])})(i),t(a)}async onCreated(){this.preprocessTabExpModelLayout(),await super.onCreated();const{childNames:e}=this.view;e.push("tabexppanel"),this.view.slotProps.tabexppanel||(this.view.slotProps.tabexppanel={}),this.view.slotProps.tabexppanel.defaultTabName=this.view.state.srfnav,this.view.model.appDataEntityId&&(this.dataEntity=await ibiz.hub.getAppDataEntity(this.view.model.appDataEntityId,this.view.model.appId)),this.view.slotProps.tabexppanel.hideEditItem=!0}async onMounted(){var e;await super.onMounted(),await this.loadEntityData(),null==(e=this.view.layoutPanel)||e.evt.on("onPresetPanelItemEvent",e=>{var t,n,a;(null==(t=null==e?void 0:e.presetParams)?void 0:t.view)&&(null==(a=null==(n=this.tabExpPanel)?void 0:n.state)?void 0:a.activeName)&&this.embedViewMap.set(this.tabExpPanel.state.activeName,e.presetParams.view)})}async call(e,t){if(e===An.REFRESH)return await this.refresh(),null}async refresh(){var e,t;if(!(null==(t=null==(e=this.tabExpPanel)?void 0:e.state)?void 0:t.activeName))return;await this.loadEntityData(),this.tabExpPanel.refresh();const n=this.embedViewMap.get(this.tabExpPanel.state.activeName);n&&n.call(An.REFRESH)}async loadEntityData(){const e=_n(this.view.model.appDataEntityId);if(this.view.context[e])return super.loadEntityData()}onDEDataChange(e){var t;if(!e.data||e.data.srfdecodename!==(null==(t=this.dataEntity)?void 0:t.codeName))return;let n=!1;const{srfkey:a}=e.data;if("OBJECTUPDATED"===e.subtype){const{srfactiveviewdata:e}=this.view.state;e&&e.srfkey===a&&(n=!0)}n&&this.loadEntityData()}}var cV=Object.defineProperty,uV=(e,t,n)=>(((e,t,n)=>{t in e?cV(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n),n);class dV extends XL{constructor(){super(...arguments),uV(this,"isEditable",!1),uV(this,"isCalcWFToolbar",!0),uV(this,"processForm"),uV(this,"entityService"),uV(this,"wfLinks",[])}get form(){return this.view.getController(this.processForm.name)}get footerButton(){return this.view.layoutPanel.panelItems.wf_action_button}get wfToolbar(){return this.rightToolbar}async onCreated(){await super.onCreated();const e=ibiz.hub.getApp(this.view.context.srfappid);this.entityService=await e.deService.getService(this.view.context,this.view.model.appDataEntityId),await this.calcProcessForm();const{childNames:t}=this.view;t.push(this.processForm.name)}async onMounted(){var e;await super.onMounted(),null==(e=this.wfToolbar)||e.evt.on("onClick",async e=>{"extra"===e.buttonType&&e.eventArg&&this.onLinkClick(e.eventArg)})}async load(){const e=await super.load();return this.isCalcWFToolbar&&this.calcWfToolbar(),e}async refresh(){const e=this.processForm;await this.calcProcessForm(),e===this.processForm&&await super.refresh()}async calcProcessFormName(){const e=await this.entityService.wf.getWFStep(Object.assign(this.view.context.clone(),{...this.view.params}));this.isEditable="true"===e.data.isEditable;return e.data["process-mobform"]?"wfform_".concat(e.data["process-mobform"]):"form"}async calcProcessForm(){const e=await this.calcProcessFormName(),t=si(this.view.model,e.toLowerCase());if(!t)throw new Ft(this.view.model,ibiz.i18n.t("viewEngine.noFoundFormModel",{name:e}));this.processForm=t,this.view.slotProps.form||(this.view.slotProps.form={}),this.view.slotProps.form.modelData=this.processForm}async calcWfToolbar(){var e;if(!this.wfToolbar)throw new Ft(this.view.model,ibiz.i18n.t("viewEngine.missingToolbarModel"));null==(e=this.wfToolbar)||e.clearExtraButtons();const t=await this.entityService.wf.getWFLink(Object.assign(this.view.context.clone(),{taskDefinitionKey:this.view.params.taskDefinitionKey}),this.getData()[0].getOrigin());this.wfLinks=t.data,this.wfLinks.forEach(e=>{e.id=e.id?e.id:xi()}),this.initFooterButton()}async onLinkClick(e){const t=this.wfLinks.find(t=>t.id===e);if(t)return this.wfSubmitByLink(t)}async wfSubmitByLink(e){this.isEditable&&await this.save({silent:!0});const{sequenceflowmobform:t}=e,n=Object.assign(this.view.context.clone(),{isEditable:this.isEditable,processForm:t}),a={...e},i=li(this.view.model,e);if(!i)return await this.form.wfSubmit({viewParam:a}),void await this.view.closeView();(await ibiz.commands.execute(Cn.TAG,i,n,a)).ok&&(ibiz.mc.command.send({srfdecodename:"SysTodo"},"OBJECTUPDATED"),await this.view.closeView())}async call(e,t){return"WFAction"===e?(this.onLinkClick(t.id),null):super.call(e,t)}initFooterButton(){var e;const t=this.wfLinks.map(e=>({id:e.id,caption:e.sequenceFlowName,buttonType:"extra",tooltip:e.sequenceFlowName,name:e.sequenceFlowName}));if(this.footerButton.initWFButtons(t),this.wfLinks.length>0||this.footerToolbar){const t=null==(e=this.viewLayoutPanel)?void 0:e.panelItems.view_footer;t&&(t.state.visible=!0)}}}var hV=Object.defineProperty,pV=(e,t,n)=>(((e,t,n)=>{t in e?hV(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,t+"",n),n);class fV extends dV{constructor(){super(...arguments),pV(this,"isCalcWFToolbar",!1)}async calcProcessFormName(){this.isEditable=this.view.context.isEditable;return this.view.context.processForm?"wfform_".concat(this.view.context.processForm):"form"}async call(e,t){return e===An.OK?(this.onOkButtonClick(),null):e===An.CANCEL?(await this.onCancelButtonClick(),null):super.call(e,t)}async onOkButtonClick(){this.isEditable?await this.save({silent:!0}):this.form.state.modified=!1,await this.form.wfSubmit({}),await this.view.closeView({ok:!0,data:this.getData()})}async onCancelButtonClick(){await this.view.closeView({ok:!1,data:[]})}calcViewFooterVisible(){return!0}}class vV extends dV{async onCreated(){await super.onCreated();const{childNames:e}=this.view;e.push("drtab")}get drtab(){return this.view.getController("drtab")}}var mV=Object.defineProperty,gV=(e,t,n)=>(((e,t,n)=>{t in e?mV(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,t+"",n),n);class bV extends dV{constructor(){super(...arguments),gV(this,"isCalcWFToolbar",!1)}async calcProcessFormName(){this.isEditable=this.view.context.isEditable;return this.view.context.processForm?"wfform_".concat(this.view.context.processForm):"form"}async call(e,t){return e===An.OK?(this.onOkButtonClick(),null):e===An.CANCEL?(await this.onCancelButtonClick(),null):super.call(e,t)}async onOkButtonClick(){this.isEditable&&await this.save(),await this.form.wfStart({}),await this.view.closeView({ok:!0,data:this.getData()})}async onCancelButtonClick(){await this.view.closeView({ok:!1,data:[]})}calcViewFooterVisible(){return!0}}var yV=Object.defineProperty,wV=(e,t,n)=>(((e,t,n)=>{t in e?yV(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,t+"",n),n);class _V extends ni{constructor(){super(...arguments),wV(this,"entityService")}get WFStepTrace(){var e;return null==(e=this.viewLayoutPanel)?void 0:e.panelItems.wf_wfsteptrace}async onMounted(){var e;await super.onMounted();const t=null==(e=this.view.parentView)?void 0:e.model.appDataEntityId;if(!t)throw new Nt(ibiz.i18n.t("viewEngine.notReceivedPrompt"));const n=ibiz.hub.getApp(this.view.context.srfappid);this.entityService=await n.deService.getService(this.view.context,t),await this.load()}async load(){var e;const t=await this.entityService.wf.getWFHistory(this.view.context);t.data&&(null==(e=this.WFStepTrace)||e.setData(t.data))}}class EV extends oi{get dataview(){return this.view.getController("dataview")}async call(e,t){return e===An.LOAD_MORE?(await this.loadMore(),null):super.call(e,t)}loadMore(){var e,t;return(null==(t=(e=this.dataview).loadMore)?void 0:t.call(e))||Promise.resolve()}}class PV extends ni{get dashboard(){return this.view.getController("dashboard")}async onCreated(){await super.onCreated();const{childNames:e}=this.view;e.push("dashboard")}}class NV extends oi{get mdctrl(){return this.view.getController("mdctrl")}async onCreated(){super.onCreated(),this.view.slotProps.mdctrl||(this.view.slotProps.mdctrl={}),this.view.slotProps.mdctrl.singleSelect=this.view.state.singleSelect,this.view.slotProps.mdctrl.selectedData=this.view.state.selectedData,this.view.slotProps.mdctrl.mode="SELECT",this.view.slotProps.mdctrl.mdctrlActiveMode=2}async onMounted(){await super.onMounted();const{model:e}=this.view;this.xdataControl.evt.on("onSelectionChange",async e=>{this.view.evt.emit("onSelectionChange",{...e})}),this.xdataControl.evt.on("onActive",async e=>{this.view.evt.emit("onDataActive",{...e})}),!this.view.state.noLoadDefault&&e.loadDefault&&this.load()}async call(e,t){return"GetAllData"===e?this.mdctrl.state.items:super.call(e,t)}}class IV extends ni{}class AV extends XL{async call(e,t){return e===An.CANCEL?(this.cancel(),null):e===An.OK?(await this.confirm(),null):e===ai.LOAD?(this.load(),null):e===ai.VALIDATE?this.form.validate():super.call(e,t)}async confirm(){await this.form.save(),this.view.closeView({ok:!0,data:this.getData()})}cancel(){this.view.modal.ignoreDismissCheck=!0,this.view.closeView({ok:!1,data:[]})}calcViewFooterVisible(){return!0}}class kV extends oi{get xdataControlName(){return"chart"}get chart(){return this.view.getController("chart")}async onCreated(){await super.onCreated(),this.view.slotProps.chart||(this.view.slotProps.chart={})}}class CV extends oi{async onCreated(){var e,t;await super.onCreated();const n=null==(t=null==(e=this.view.model.viewLayoutPanel)?void 0:e.controls)?void 0:t.find(e=>e.controlType===Un.CALENDAR);n&&"TIMELINE"===n.calendarStyle||(this.view.model.loadDefault=!1)}}class SV extends ni{get wizardPanel(){return this.view.getController("wizardpanel")}async onCreated(){await super.onCreated();const{childNames:e}=this.view;e.push("wizardpanel")}async onMounted(){await super.onMounted(),this.view.slotProps.wizardpanel||(this.view.slotProps.wizardpanel={}),this.wizardPanel.initialize(),this.wizardPanel.evt.on("onFinishSuccess",e=>{this.view.closeView({ok:!0,data:[]})})}async call(e,t){return e===An.REFRESH?(await this.refresh(),null):super.call(e,t)}async refresh(){var e,t;await(null==(t=null==(e=this.wizardPanel)?void 0:e.activeFormController)?void 0:t.load())}}var MV=Object.defineProperty,xV=(e,t,n)=>(((e,t,n)=>{t in e?MV(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,t+"",n),n);class OV extends ni{constructor(){super(...arguments),xV(this,"dataEntity")}get expBar(){return this.view.getController(this.expBarName)}get expBarName(){return"treeexpbar"}get tree(){return this.expBar.xDataController}async onCreated(){await super.onCreated();const{childNames:e}=this.view;e.push("treeexppanel"),this.view.slotProps.treeexppanel||(this.view.slotProps.treeexppanel={}),this.view.model.appDataEntityId&&(this.dataEntity=await ibiz.hub.getAppDataEntity(this.view.model.appDataEntityId,this.view.model.appId))}async onMounted(){await super.onMounted(),this.expBar.state.srfnav=this.view.state.srfnav;const e=_n(this.view.model.appDataEntityId);this.view.context[e]&&await this.loadEntityData()}async call(e,t){if(e===An.REFRESH)return await this.refresh(),null}async refresh(){this.tree.state.mobExpandedKey="",this.expBar.state.srfnav="",await this.tree.refresh()}onDEDataChange(e){var t;if(!e.data||e.data.srfdecodename!==(null==(t=this.dataEntity)?void 0:t.codeName))return;let n=!1;const{srfkey:a}=e.data;if("OBJECTUPDATED"===e.subtype){const{srfactiveviewdata:e}=this.view.state;e&&e.srfkey===a&&(n=!0)}n&&this.loadEntityData()}}class DV extends lV{get searchForm(){return this.view.getController("searchform")}get searchBar(){return this.view.getController("searchbar")}get tabExpPanel(){return this.view.getController("tabexppanel")}preprocessTabExpModelLayout(){}async onCreated(){await super.onCreated();const{childNames:e}=this.view;e.push("searchform","searchbar")}async onMounted(){await super.onMounted();const e=this.viewLayoutPanel.panelItems.view_searchform;if(e){const t=!!this.searchForm;e.state.keepAlive=t,e.state.visible=t}const t=this.viewLayoutPanel.panelItems.view_searchbar;if(t){const e=this.searchBar&&!(!this.searchBar.model.enableQuickSearch&&!this.searchBar.model.enableGroup&&!0!==this.searchBar.model.enableFilter);t.state.visible=e}if(this.searchForm&&this.searchForm.evt.on("onSearch",()=>{this.calcViewParams()}),this.searchBar&&this.searchBar.evt.on("onSearch",()=>{this.calcViewParams()}),this.tabExpPanel){this.tabExpPanel.evt.on("onTabChange",({tab:e})=>{this.calcViewParams(),this.onQuickSearchPlaceHolder(e)});const{activeTabViewPanelModel:e}=this.tabExpPanel;e&&this.onQuickSearchPlaceHolder(e),this.onQuickSearchQuery()}}onQuickSearchQuery(){if(this.searchBar){const e=this.view.modal.routeDepth;if(e){const{pathNodes:t}=ibiz.appUtil.route2routeObject(),n=t[e];n&&n.params&&n.params.query&&(this.searchBar.state.query=n.params.query)}}}async onQuickSearchPlaceHolder(e){let{caption:t}=e;const n=await ibiz.hub.config.view.get(e.embeddedAppDEViewId||""),a=await ibiz.hub.getAppDataEntity(n.appDataEntityId,n.appId);if(a){const e=a.appDEFields.filter(e=>e.enableQuickSearch);if(e.length){const n=[];e.forEach(e=>{e.lnlanguageRes&&e.lnlanguageRes.lanResTag?n.push(ibiz.i18n.t(e.lnlanguageRes.lanResTag,e.logicName)):e.logicName&&n.push(e.logicName)}),n.length>0&&(t=n.join("、"))}}this.searchBar.placeHolder=t||"",this.searchBar.state.quickSearchPlaceHolder=t||""}async call(e,t){return e===An.SEARCH?(await this.searchForm.search(),null):e===An.RESET?(await this.searchForm.reset(),null):e===An.REFRESH?(await this.calcViewParams(),this.refresh(),null):super.call(e,t)}getSearchParams(){const e={};return this.searchForm&&Object.assign(e,this.searchForm.getFilterParams()),this.searchBar&&Object.assign(e,this.searchBar.getFilterParams()),e}calcViewParams(){this.tabExpPanel.state.expViewParams=this.getSearchParams(),this.tabExpPanel.refresh()}}var TV=Object.defineProperty,jV=(e,t,n)=>(((e,t,n)=>{t in e?TV(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,t+"",n),n);class LV extends ni{constructor(){super(...arguments),jV(this,"route",Ni())}async onMounted(){super.onMounted()}async onDestroyed(){super.onDestroyed()}async call(e,t={}){return e===An.LOGIN?(await this.login(t),null):e===An.CANCEL_CHANGES?(await this.cancelChanges(),null):super.call(e,t)}async login(e){let t;const n={},a=e.data[0]||{},i=e.params.panelDataParent;if(this.view.layoutPanel){if(!await this.view.layoutPanel.validate(i))return;const e=this.view.layoutPanel.data;"boolean"==typeof e.isRemember&&(t=e.isRemember),a.captcha&&Object.assign(n,a.captcha),e.srfheaders&&Object.assign(n,e.srfheaders)}let o=a.username;Di(a.orgid)&&(o="".concat(a.username,"@").concat(a.orgid));const r=await yn();await r.login({loginname:o,password:a.password,rememberme:t,headers:n},e=>{this.view.evt.emit("onAfterLogin",{ok:e,panelDataParent:i})})}async cancelChanges(){this.view.layoutPanel&&Object.keys(this.view.layoutPanel.panelItems).forEach(e=>{const t=this.view.layoutPanel.panelItems[e],{viewFieldName:n}=t.model;n&&t.setDataValue("",n)})}}const VV=e("c2",{install:()=>{ibiz.engine.register("VIEW_APPLOGINVIEW",e=>new LV(e)),ibiz.engine.register("VIEW_MobTreeExpView",e=>new OV(e)),ibiz.engine.register("VIEW_APPINDEXVIEW",e=>new YL(e)),ibiz.engine.register("VIEW_MobEditView",e=>new XL(e)),ibiz.engine.register("VIEW_MobEditView3",e=>new QL(e)),ibiz.engine.register("VIEW_MobMDView",e=>new ZL(e)),ibiz.engine.register("VIEW_MobPickupView",e=>new nV(e)),ibiz.engine.register("VIEW_MobMPickupView",e=>new aV(e)),ibiz.engine.register("VIEW_MobPickupMDView",e=>new NV(e)),ibiz.engine.register("VIEW_DEMOBWFDYNAEDITVIEW",e=>new dV(e)),ibiz.engine.register("VIEW_DEMOBWFDYNAEDITVIEW3",e=>new vV(e)),ibiz.engine.register("VIEW_DEMOBWFDYNAACTIONVIEW",e=>new fV(e)),ibiz.engine.register("VIEW_DEMOBWFDYNASTARTVIEW",e=>new bV(e)),ibiz.engine.register("VIEW_MobTabExpView",e=>new lV(e)),ibiz.engine.register("VIEW_MobTreeView",e=>new iV(e)),ibiz.engine.register("VIEW_MobPickupTreeView",e=>new oV(e)),ibiz.engine.register("VIEW_APPWFSTEPTRACEVIEW",e=>new _V(e)),ibiz.engine.register("VIEW_DEMOBLISTVIEW",e=>new ZL(e)),ibiz.engine.register("VIEW_DEMOBDATAVIEW",e=>new EV(e)),ibiz.engine.register("VIEW_APPPORTALVIEW",e=>new PV(e)),ibiz.engine.register("VIEW_DEMOBPORTALVIEW",e=>new PV(e)),ibiz.engine.register("VIEW_DEMOBPORTALVIEW9",e=>new PV(e)),ibiz.engine.register("VIEW_MobPortalView",e=>new PV(e)),ibiz.engine.register("VIEW_DEMOBCUSTOMVIEW",e=>new IV(e)),ibiz.engine.register("VIEW_MobOptionView",e=>new AV(e)),ibiz.engine.register("VIEW_MobChartView",e=>new kV(e)),ibiz.engine.register("VIEW_MobCalendarView",e=>new CV(e)),ibiz.engine.register("VIEW_MobEditView9",e=>new XL(e)),ibiz.engine.register("VIEW_MobMDView9",e=>new ZL(e)),ibiz.engine.register("VIEW_MobTabExpView9",e=>new lV(e)),ibiz.engine.register("VIEW_MobCalendarView9",e=>new CV(e)),ibiz.engine.register("VIEW_MobChartView9",e=>new kV(e)),ibiz.engine.register("VIEW_MobWizardView",e=>new SV(e)),ibiz.engine.register("VIEW_DEMOBTABSEARCHVIEW",e=>new DV(e))}});var BV={name:"Name",tel:"Phone",save:"Save",clear:"Clear",cancel:"Cancel",confirm:"Confirm",delete:"Delete",loading:"Loading...",noCoupon:"No coupons",nameEmpty:"Please fill in the name",addContact:"Add contact",telInvalid:"Malformed phone number",vanCalendar:{end:"End",start:"Start",title:"Calendar",weekdays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],monthTitle:(e,t)=>"".concat(e,"/").concat(t),rangePrompt:e=>"Choose no more than ".concat(e," days")},vanCascader:{select:"Select"},vanPagination:{prev:"Previous",next:"Next"},vanPullRefresh:{pulling:"Pull to refresh...",loosing:"Loose to refresh..."},vanSubmitBar:{label:"Total:"},vanCoupon:{unlimited:"Unlimited",discount:e=>"".concat(10*e,"% off"),condition:e=>"At least ".concat(e)},vanCouponCell:{title:"Coupon",count:e=>"You have ".concat(e," coupons")},vanCouponList:{exchange:"Exchange",close:"Close",enable:"Available",disabled:"Unavailable",placeholder:"Coupon code"},vanAddressEdit:{area:"Area",areaEmpty:"Please select a receiving area",addressEmpty:"Address can not be empty",addressDetail:"Address",defaultAddress:"Set as the default address"},vanAddressList:{add:"Add new address"}},UV=Object.defineProperty,zV=(e,t,n)=>(((e,t,n)=>{t in e?UV(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n),n);const RV=e("i",Ui({legacy:!1,locale:"zh-CN"}));const FV=new class{constructor(){zV(this,"html"),zV(this,"defaultLang"),zV(this,"langMap",new Map),this.defaultLang="zh-CN",this.html=document.querySelector("html");const e=localStorage.getItem("language")||navigator.language||this.defaultLang;RV.global.locale.value=e,this.html.setAttribute("lang",e),this.langMap.set("en",()=>t.import("./index-DlGM9S4F.js")),this.langMap.set("zh-CN",()=>t.import("./index-nnXrw2xr.js"))}async init(){const e=RV.global.locale.value;let t;t=this.langMap.has(e)?this.langMap.get(e):this.langMap.get(this.defaultLang);const n=await t();RV.global.setLocaleMessage(RV.global.locale.value,n.default),"en"===e&&_t.use("en-US",BV),await this.initThemeLocale()}async initThemeLocale(){if(ibiz.env.isEnableMultiLan){const e=RV.global.locale.value,n=(await t.import("@ibiz-template/mob-theme"))[e.replace("-","_").toUpperCase()];if(n&&n.languageItems){const t=n.languageItems||[],a={};t.forEach(e=>{a[e.lanResTag]=e.content}),ibiz.i18n.mergeLocaleMessage(e,a)}}}setLangConfigs(e){Object.keys(e).forEach(t=>{this.langMap.set(t,e[t])})}setLang(e){ibiz.confirm.warning({title:ibiz.i18n.t("locale.prompt"),desc:ibiz.i18n.t("locale.switchLanguagePrompt")}).then(t=>{t&&(localStorage.setItem("language",e),window.location.reload())})}getLang(){return this.html.getAttribute("lang")||this.defaultLang}t(e,t,n){return RV.global.t(e,t,n)}mergeLocaleMessage(e,t){if("string"==typeof e){const n=e;RV.global.mergeLocaleMessage(n,t)}else{const t=e;t&&Object.keys(t).length>0&&Object.keys(t).forEach(e=>{RV.global.mergeLocaleMessage(e,t[e])})}}};var $V=xe({setup(){const{viewStack:e,on:t,off:n}=bo(),a=je("forward"),o=e=>{a.value="push"===e?"forward":"back"},r=Ni();$e(()=>r.fullPath,()=>{const{appContext:e}=p(r),t=null==e?void 0:e.srflang,n=ibiz.i18n.getLang();t&&t!==n&&(localStorage.setItem("language",t),window.location.reload())}),ibiz.platform.init(),t("onBeforeStackChange",o),Ue(()=>{n("onBeforeStackChange",o),ibiz.platform.destroyed(),ye.destoryApp.call(null)});const s=new Map;let l;return Be(()=>{ye.initedApp.tapPromise(async({context:e})=>{var t;null==l||l(),l=ibiz.util.watermark.mount(ibiz.config.watermark,void 0,{...e,...null==(t=ibiz.appData)?void 0:t.context})});const e=window.parent;e&&e.postMessage&&x(()=>{e.postMessage({type:"onRouteChange",url:window.location.href},"*")},1)}),Fe(()=>{null==l||l()}),{viewStack:e,getViewModal:e=>(s.has(e)||s.set(e,new gn({mode:bn.ROUTE,viewUsage:1,routeDepth:1,dismiss:t=>{i.close(e,t),ibiz.platform.back(),s.delete(e)}})),s.get(e)),transitionName:a}},render(){return Oe(De("iBizRouterView"),{manualKey:this.viewStack.currentKey,modal:this.getViewModal(this.viewStack.currentKey)},{default:({Component:e})=>e?Oe(e,null,null):null})}});const qV=new Map([["baseUrl","BaseUrl"],["remoteModelUrl","remoteDynaPath"],["dcSystem","mockDcSystemId"],["enablePermission","enablePermissionValid"],["enableTitle","enableTitle"]]);async function WV(){const e=window.Environment;Object.keys(ibiz.env).forEach(t=>{const n=qV.has(t)?qV.get(t):t;null!=e[n]&&(ibiz.env[t]="customParams"===n||"devtoolConfig"===n?JSON.parse(e[n]):e[n])}),e.AppLabel&&(document.title=e.AppLabel),ibiz.log.setLevel(ibiz.env.logLevel)}var HV=Object.defineProperty,GV=(e,t,n)=>(((e,t,n)=>{t in e?HV(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,t+"",n),n);class YV{constructor(){GV(this,"component","IBizPortalView")}}const XV=xe({name:"IBizPortalView",props:{context:Object,params:{type:Object,default:()=>({})},modelData:{type:Object,required:!0},modal:{type:Object},state:{type:Object}},setup(){var e;const t=n("view"),a=n("portal-view"),i=we((...e)=>new ci(...e)),o=(null==(e=i.model.viewLayoutPanel)?void 0:e.controls)||i.model.controls,{viewType:r,sysCss:s,codeName:l}=i.model,c=r.toLowerCase(),u=null==s?void 0:s.cssName,d=[t.b(),a.b(),t.b(c),t.m(l),u];return{c:i,ns:t,controls:o,viewClassNames:d}},render(){var e;let t=null;if(this.c.state.isCreated){const n={...this.$slots};(null==(e=this.controls)?void 0:e.length)&&this.controls.forEach(e=>{const t=e.name||e.id,a={context:this.c.context,params:this.c.params,provider:this.c.providers[t],modelData:e};this.c.slotProps[t]&&Object.assign(a,this.c.slotProps[t]);const i=n[t];if(i)return void(n[t]=()=>i(a));const o=this.c.providers[t];o&&(n[t]=()=>{const e=De(o.component);return ze(e,{...a})})}),n.dashboard&&(t=n.dashboard())}return Oe("div",{class:this.viewClassNames},[Oe(De("iBizPresetViewHeader"),null,null),t])}}),JV=k(XV,function(e){e.component(XV.name,XV),ui(di.APP_PORTAL_VIEW,()=>new YV),ui(di.DE_MOB_PORTAL_VIEW,()=>new YV),ui(di.DE_MOB_PORTAL_VIEW9,()=>new YV)});var KV=e("I",{install:e=>{ibiz.i18n=FV,ibiz.util.getExcelUtil=()=>t.import("./xlsx-util-CfBSMyVx.js");const n=new lE,a=new aO,i=new iO,o=new oO,r=new cO;hi(Za.BROWSER,()=>n),hi(Za.DINGTALK,()=>a),hi(Za.IOS,()=>i),hi(Za.WECHAT,()=>o),hi(Za.ANDROID,()=>r),e.use(ph),e.use(VV),e.use(_e),e.use(Ee),e.use(Pe),e.use(JV),e.use(sE),e.use(bh),e.use(Ne),e.use(kh),e.use(Dh),e.use(Uh),e.use(lf),e.use(Wh),e.use(rf),e.use(vf),e.use(wf),e.use(If),e.use(Uf),e.use(qf),e.use(tv),e.use(cv),e.use(pv),e.use(yv),e.use(vm),e.use(ym),e.use(Yg),e.use(eb),e.use(ob),e.use(pb),e.use($L)}});function QV(e,t){const n=Re(e,t);n.component("KeepAlive",vt),n.config.errorHandler=function(e){ibiz.util.error.handle(e)};const a=(e,t)=>{n.use(t)};if(ye.useComponent.tap(a),t){const e=t.unmounted;t.unmounted=()=>{e(),ye.useComponent.removeTap(a)}}return n.use(RV),n.use(Pt),n.use(Ie),n.use(KV),ye.createApp.callSync(null,n),n.directive("loading",io),ibiz.plugin.register(n),n}Et();const ZV=xe({name:"HomeView",props:{modal:{type:Object,required:!0}},setup(e){const t=n("home-view");return{viewModal:new gn({mode:bn.ROUTE,viewUsage:1,routeDepth:e.modal.routeDepth+1,dismiss:t=>{e.modal.dismiss(t)}}),ns:t}},render(){return Oe(ht,null,[Oe(De("iBizRouterView"),{class:this.ns.b(),modal:this.viewModal},null),Oe(De("iBizAIButton"),null,null)])}}),eB=xe({name:"RouterShell",props:{modal:{type:Object,required:!0}},setup(e){const t=Ni(),n=Ii(),a=je({}),i=je(!1),o=je(!0),r=e.modal.routeDepth||1;Ue(()=>{(()=>{if(a.value.context){const{context:e}=rt(a.value);e&&e.destroy()}})()});(async()=>{try{const e=await Ae(t,r),n=St.create(e.context);a.value={...e,context:n},i.value=!0}catch(e){n.push({name:"404View".concat(r)})}})();const s=new gn({mode:bn.ROUTE,routeDepth:r+1});return st(()=>{o.value=!0}),pt(()=>{o.value=!1}),{route:t,viewData:a,isLoaded:i,isActivated:o,routeModal:s}},render(){if(!this.isLoaded)return null;const{context:e,params:t,srfnav:n,viewConfig:a}=this.viewData,i=tn({...this.$props,...this.$attrs,context:e,params:t,viewId:a.id,key:a.codeName},{state:{srfnav:n}});return Oe(ht,null,[ze(De("IBizViewShell"),i,this.$slots),this.isActivated&&Oe(De("router-view"),{key:a.codeName,name:pi.ROUTE_MODAL_TAG,modal:this.routeModal},null)])}}),tB=xe({name:"ModalRouterShell",props:{modal:{type:Object,required:!0}},setup(e){const t=Ni(),n=Ii(),a=je(!1),o=je({}),r=[],s=e.modal.routeDepth;let l=null;Ue(()=>{a.value=!0,l&&(l.dismiss(),l=null),(()=>{if(o.value.context){const{context:e}=rt(o.value);e&&e.destroy()}})()});const c=async e=>{var t;if(o.value=await Ae(e,s,!0),a.value)return;o.value.context instanceof St||(o.value.context=St.create(o.value.context));const c=e.params.modalView,u=e.params.modalParams;if(u&&"-"!==u){const e=Bi.parse(u,{strictNullHandling:!0,delimiter:";"});if(e.srfnavctx){const t=JSON.parse(decodeURIComponent(e.srfnavctx));Object.assign(o.value.context,t),delete e.srfnavctx}e.srfnav&&(o.value.srfnav=e.srfnav,delete e.srfnav),nn(e)||(o.value.params?Object.assign(o.value.params,e):o.value.params=e)}if(!o.value.context){const e=St.create({});o.value.context=e}let d,h=o.value.viewConfig;try{h||(h=await ibiz.hub.config.view.get(c)),d=ke({context:o.value.context,params:o.value.params,viewId:h.id})}catch(e){d=qL}const p={width:(null==h?void 0:h.width)||"100%",height:(null==h?void 0:h.height)||"100%",footerHide:!0,isRouteModal:!0,showClose:!1};l=ibiz.overlay.createModal(d,void 0,p),l.present(),r.push(e.fullPath);const f=await l.onWillDismiss();if(l=null,!1===a.value){if(null==(t=window.history.state)?void 0:t.back)n.back();else{const t=e.path,a=t.indexOf("/".concat(pi.ROUTE_MODAL_TAG,"/"));n.replace(t.substring(0,a))}i.close(n.currentRoute.value.fullPath,f||{ok:!1})}};return Ai((e,t)=>{if(!a.value&&r.length>0&&-1!==r.indexOf(t.fullPath)&&-1===r.indexOf(e.fullPath)){const t=p(e).pathNodes,n=t[t.length-1];n&&n.viewName===pi.ROUTE_MODAL_TAG&&c(e)}}),c(t),{}},render:()=>Oe("div",{style:"position: absolute;width: 0;height: 0;"},null)});var nB=Object.defineProperty,aB=(e,t,n)=>(((e,t,n)=>{t in e?nB(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n),n);const iB=e=>1===e?()=>({}):()=>({modal:new gn({mode:bn.ROUTE,viewUsage:1,routeDepth:e})});class oB{static setAuthGuard(e){this.authGuard=e}static getAppContext(e){let t={};return e.params.appContext&&e.params.appContext!==ibiz.env.routePlaceholder&&(t=Bi.parse(e.params.appContext,{strictNullHandling:!0,delimiter:";"})),t}static getRoutes(){const e=async(e,t,n)=>{if(Ti(ibiz.appData)){await this.authGuard(this.getAppContext(e))?n():n(!1)}else n()},t=ibiz.env.routePlaceholder,n="[^/]+=[^/]+|".concat(t),a="[^=/]+",i=[{path:"404",name:"404View2",meta:{preset:!0},component:qL},{path:"".concat(pi.ROUTE_MODAL_TAG,"/:modalView(").concat(a,")/:modalParams(").concat(n,")"),components:{[pi.ROUTE_MODAL_TAG]:tB}},{path:":view2(".concat(a,")/:params2(").concat(n,")"),component:eB,meta:{depth:2},props:iB(2),children:[{path:"404",name:"404View3",meta:{preset:!0},component:qL},{path:"".concat(pi.ROUTE_MODAL_TAG,"/:modalView(").concat(a,")/:modalParams(").concat(n,")"),components:{[pi.ROUTE_MODAL_TAG]:tB}},{path:":view3(".concat(a,")/:params3(").concat(n,")"),component:eB,meta:{depth:3},props:iB(3),children:[{path:"404",name:"404View4",meta:{preset:!0},component:qL},{path:"".concat(pi.ROUTE_MODAL_TAG,"/:modalView(").concat(a,")/:modalParams(").concat(n,")"),components:{[pi.ROUTE_MODAL_TAG]:tB}},{path:":view4(".concat(a,")/:params4(").concat(n,")"),component:eB,meta:{depth:4},props:iB(4)},{path:":pathMatch(.*)*",redirect:{name:"404View4"}}]},{path:":pathMatch(.*)*",redirect:{name:"404View3"}}]},{path:":pathMatch(.*)*",redirect:{name:"404View2"}}];return[{path:"/",redirect:{replace:!0,path:"/".concat(t,"/index/").concat(t)}},{path:"/login",name:"loginView",meta:{preset:!0},beforeEnter:async(e,t,n)=>{await this.authGuard(this.getAppContext(e),!1),n()},component:HL},{path:"/download",name:"downloadView",meta:{preset:!0},component:GL},{path:"/404",name:"404View1",meta:{preset:!0},component:qL},{path:"/appredirectview",name:"appRedirectView",meta:{preset:!0},beforeEnter:e,component:Ce},{path:"/:appContext(".concat(n,")/home/:params1(").concat(n,")"),meta:{home:!0,depth:1},beforeEnter:e,component:ZV,children:i},{path:"/:appContext(".concat(n,")/:view1(").concat(a,")/:params1(").concat(n,")"),beforeEnter:e,meta:{depth:1},component:eB,children:i},{path:"/:pathMatch(.*)*",redirect:{name:"404View1"}}]}static addRoute(e,t,n){if(!e)return;const a=n=>{for(const i of n){if(i&&i.meta&&i.meta.depth===e)return i.children&&i.children.length>0?i.children.push(t):i.children=[t],!0;if(i.children&&i.children.length>0&&a(i.children))return!0}return!1};a(n)}static getRouter(e=[]){if(!this.router){const t=this.getRoutes();if(e&&e.length>0)for(let n=0;n<e.length;n++){const a=e[n],i=es(a.path);if(!ts(i)){ibiz.log.warn("路由配置错误:路由路径有误,请检查路由配置,详情参见:https://open.ibizlab.cn/apphub/zh/guide/router.html");continue}const o=(i.length-1)/2;if(o>1){const e=i.length;a.path="".concat(i[e-2],"/").concat(i[e-1]),this.addRoute(o-1,a,t)}else t.push(a)}this.router=ki({history:Ci(),routes:t});const{init:n}=bo();n(this.router)}return this.router}}aB(oB,"router"),aB(oB,"authGuard");var rB=Object.defineProperty,sB=(e,t,n)=>(((e,t,n)=>{t in e?rB(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,t+"",n),n);class lB{constructor(){sB(this,"hasPermErrPending",!1)}match(e){return e instanceof Gt&&(401===e.status||403===e.status)}async casLogin(){if(!ibiz.env.casLoginUrl)throw new Nt(ibiz.i18n.t("mobApp.unauthorizedHandler.noFoundEnvParams"));const{origin:e}=window.location,t="".concat(e).concat(ibiz.env.baseUrl),n="".concat(t,"/cas/v7/login").concat(Bi.stringify({RU:It.fullPath,base:t},{addQueryPrefix:!0})),a=-1!==ibiz.env.casLoginUrl.indexOf("?"),i=ibiz.env.casLoginUrl+(a?"&":"?")+Bi.stringify({service:n},{addQueryPrefix:!1});window.location.href=i}async oauthLogin(){window.location.href.indexOf("srfthird_auth_success=false")>=0&&(ibiz.log.debug("获取OAUTH的token失败,跳转正常登录页"),this.normalLogin());(await ibiz.thirdAuth.auth("OAUTH","THIRD")).ok||(ibiz.log.debug("获取OAUTH重定向地址失败,跳转正常登录页"),this.normalLogin())}async normalLogin(){const e=window.location.hash.replace("#","");if(e.startsWith("/login"))return;const t="".concat(It.routeBase,"/login?ru=").concat(encodeURIComponent(e));document.body.style.display="none",window.location.href=t,window.location.reload()}async handle403(e){if("APPINIT"===e.tag){if(this.hasPermErrPending)return;this.hasPermErrPending=!0;const e=await ibiz.modal.confirm({title:ibiz.i18n.t("mobApp.unauthorizedHandler.prohibitAccessPrompt"),desc:ibiz.i18n.t("mobApp.unauthorizedHandler.exitPrompt")});if(this.hasPermErrPending=!1,e){await ibiz.auth.logout()&&window.location.reload()}}else ibiz.mc.error.send(e)}handle(e){if(e instanceof Gt){if(401===e.status){return(Bi.parse(window.location.search.replace("?","")).isAnonymous||ibiz.env.enableAnonymous)&&"APPINIT"!==e.tag?ibiz.auth.anonymousLogin().then(e=>{e&&window.location.reload()}):ibiz.env.loginMode===Yt.CAS?this.casLogin():ibiz.env.loginMode===Yt.OAUTH?this.oauthLogin():this.normalLogin(),!0}if(403===e.status)return this.handle403(e),!0}}}class cB{async login(e,t){const{loginname:n,password:a,rememberme:i,headers:o}=e,r=await ibiz.auth.login(n,a,i,o);if(t&&t(r),r){const e=window.location.href.indexOf("srfthird_auth_success=false")>=0,t=window.location.hash.substring(1),n=new RegExp("[?&]ru=([^&]*)"),a=t.match(n),i=a?decodeURIComponent(a[1]):null;if(window.location.hash="",window.history.replaceState({},""),window.location.hash=i||"/",e){const e=window.location.href.replace("?srfthird_auth_success=false","");window.location.href=e}else window.location.reload()}return r}async logout(e){const t=await ibiz.auth.logout();if(t){const t=window.location;if(-1!==t.search.indexOf("isAnonymous=true")){const e="".concat(t.origin).concat(t.pathname).concat(t.hash);window.history.replaceState({},"",e)}e&&e.router&&(await e.router.push("/login?isLogout=true"),ibiz.util.showAppLoading(),window.location.reload())}return t}async loadAppData(e){let t;return t=e&&Object.keys(e).length>0?await ibiz.net.get("/appdata",e):await ibiz.net.get("/appdata"),{ok:t.ok,data:t.data}}async loadOrgData(){const e=await ibiz.net.get("/uaa/getbydcsystem/".concat(ibiz.env.dcSystem));return{ok:e.ok,data:e.data}}}e("ct",cB);var uB=Object.defineProperty,dB=(e,t,n)=>(((e,t,n)=>{t in e?uB(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n),n);class hB{}e("cr",hB),dB(hB,"beforeAuth",new ji),dB(hB,"afterAuth",new ji);class pB{async verify(e,t=!0){if(t){let t=!0;try{ibiz.env.enableAnonymous?await this.anonymousValidate(e):await this.appInit(e)}catch(e){t=!1,e.tag="APPINIT",ibiz.util.error.handle(e)}return t}return await this.initModel(e,!1),!0}async loadAppData(e){if(await ibiz.auth.loadAppData(e)){if(ibiz.appData&&(ibiz.appData.context.modeldesigndefaultmode="close"),window.location.search&&-1!==window.location.search.indexOf("srfignoredevtool=true"))return;zi()}}async loadOrgData(){const e=await yn(),t=await e.loadOrgData();if(t.ok){const e=t.data;if(e){const[t]=e;ibiz.orgData=t}}}async loadTheme(){const e=ibiz.hub.getApp().model.appUIThemes||[];if(e.length>0){const t=e.filter(e=>e.themeParams&&"true"!==e.themeParams["icon-theme"]);if(t.length>0)for(let e=0;e<t.length;e++){const n=t[e];await ibiz.util.theme.loadTheme(n)}const n=e.filter(e=>e.themeParams&&"true"===e.themeParams["icon-theme"]);if(n.length>0)for(let e=0;e<n.length;e++){const t=n[e];await ibiz.util.theme.loadTheme(t,"ICON")}}}async initEnvironment(e){const t=e.userParam;t&&(Object.keys(t).forEach(e=>{const n=ibiz.util.rawValue.format(t[e]),a=e.split(".");let i=ibiz.env;for(let e=0;e<a.length;e++){const t=a[e];e===a.length-1?i[t]=n:(i[t]=i[t]||{},i=i[t])}}),ibiz.env.globalConfig&&(ibiz.config=an(ibiz.config,ibiz.env.globalConfig)),ibiz.log.setLevel(ibiz.env.logLevel))}async initModel(e,t=!0){}async appInit(e){await ye.beforeInitApp.call({context:e}),await hB.beforeAuth.call(null,null),!0===ibiz.env.isSaaSMode&&await this.loadOrgData(),await this.loadAppData(e),await hB.afterAuth.call(null,null),await ye.authedApp.call({context:e}),await this.initModel(e),await ibiz.auth.extendLogin(e),await ibiz.hub.notice.init()}throw401(){throw new Gt({response:{status:401,statusText:ibiz.i18n.t("mobApp.authGuard.noPermission")}})}async anonymousValidate(e){const t=ibiz.auth.getAuthInfo();if(t){let n=t.isAnonymous;try{if(await this.appInit(e),!n)return}catch(t){const{status:a}=t;if(401!==a)throw t;try{n||await ibiz.auth.refreshToken()}catch(e){n=!0}finally{if(n){if(!await ibiz.auth.anonymousLogin())throw new Nt(ibiz.i18n.t("mobApp.authGuard.loginFailed"))}if(await this.appInit(e),!n)return}}}else{if(!await ibiz.auth.anonymousLogin())throw new Nt(ibiz.i18n.t("mobApp.authGuard.loginFailed"));await this.appInit(e)}const n=window.location.hash.split("/"),a=n[n.length-2];let i;try{i=["#","index"].includes(a)&&ibiz.hub.defaultPage?await ibiz.hub.getAppView(ibiz.hub.defaultPage.id):await ibiz.hub.getAppView(a)}catch(e){ibiz.log.error(e)}i&&3===i.accUserMode||this.throw401()}async initTheme(e){const n=await t.import("@ibiz-template/mob-theme"),a=n.default||n;ye.useComponent.callSync(null,a),ibiz.config.theme&&ibiz.util.theme.setTheme(ibiz.config.theme),e.appUIThemes&&await this.loadTheme()}}e("cs",pB);var fB=Object.defineProperty,vB=(e,t,n)=>(((e,t,n)=>{t in e?fB(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n),n);class mB extends pB{constructor(){super(...arguments),vB(this,"hasModelInit",!1),vB(this,"noPermissionModel",!1)}async initModel(e,t=!0){if(!this.hasModelInit||this.hasModelInit&&this.noPermissionModel!==t){new $i(async e=>{if(ibiz.env.isLocalModel){return(await ibiz.net.getModel("./model".concat(e))).data}return(await ibiz.net.get("".concat(ibiz.env.remoteModelUrl).concat(e),void 0,t?{}:{srfdcsystem:ibiz.env.dcSystem})).data},ibiz.env.appId,e,t);const n=await ibiz.hub.getAppAsync(ibiz.env.appId);await this.initEnvironment(n.model),await ye.initedApp.call({context:e,app:n});const a=n.model;ibiz.env.isMob=!0===a.mobileApp,await this.initTheme(n.model),n.model.title&&ibiz.util.setBrowserTitle("")}this.noPermissionModel=t,this.hasModelInit=!0}}}}});
305
+ //# sourceMappingURL=index-C2RpvUdN.js.map