bundle.js 507 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972
  1. !(function (t) {
  2. var e = this.webpackHotUpdate
  3. this.webpackHotUpdate = function (t, i) {
  4. !(function (t, e) {
  5. if (!v[t] || !y[t]) return
  6. for (var i in ((y[t] = !1), e)) Object.prototype.hasOwnProperty.call(e, i) && (c[i] = e[i])
  7. 0 == --p && 0 === d && _()
  8. })(t, i),
  9. e && e(t, i)
  10. }
  11. var i,
  12. n = !0,
  13. g = '6ebc6af84dfdad10b153',
  14. A = {},
  15. r = [],
  16. o = []
  17. function C(t) {
  18. var e = P[t]
  19. if (!e) return O
  20. var n = function (n) {
  21. return (
  22. e.hot.active
  23. ? (P[n] ? -1 === P[n].parents.indexOf(t) && P[n].parents.push(t) : ((r = [t]), (i = n)),
  24. -1 === e.children.indexOf(n) && e.children.push(n))
  25. : (console.warn('[HMR] unexpected require(' + n + ') from disposed module ' + t),
  26. (r = [])),
  27. O(n)
  28. )
  29. },
  30. g = function (t) {
  31. return {
  32. configurable: !0,
  33. enumerable: !0,
  34. get: function () {
  35. return O[t]
  36. },
  37. set: function (e) {
  38. O[t] = e
  39. }
  40. }
  41. }
  42. for (var A in O)
  43. Object.prototype.hasOwnProperty.call(O, A) &&
  44. 'e' !== A &&
  45. 't' !== A &&
  46. Object.defineProperty(n, A, g(A))
  47. return (
  48. (n.e = function (t) {
  49. return (
  50. 'ready' === a && l('prepare'),
  51. d++,
  52. O.e(t).then(e, function (t) {
  53. throw (e(), t)
  54. })
  55. )
  56. function e() {
  57. d--, 'prepare' === a && (f[t] || x(t), 0 === d && 0 === p && _())
  58. }
  59. }),
  60. (n.t = function (t, e) {
  61. return 1 & e && (t = n(t)), O.t(t, -2 & e)
  62. }),
  63. n
  64. )
  65. }
  66. function I(t) {
  67. var e = {
  68. _acceptedDependencies: {},
  69. _declinedDependencies: {},
  70. _selfAccepted: !1,
  71. _selfDeclined: !1,
  72. _disposeHandlers: [],
  73. _main: i !== t,
  74. active: !0,
  75. accept: function (t, i) {
  76. if (void 0 === t) e._selfAccepted = !0
  77. else if ('function' == typeof t) e._selfAccepted = t
  78. else if ('object' == typeof t)
  79. for (var n = 0; n < t.length; n++) e._acceptedDependencies[t[n]] = i || function () {}
  80. else e._acceptedDependencies[t] = i || function () {}
  81. },
  82. decline: function (t) {
  83. if (void 0 === t) e._selfDeclined = !0
  84. else if ('object' == typeof t)
  85. for (var i = 0; i < t.length; i++) e._declinedDependencies[t[i]] = !0
  86. else e._declinedDependencies[t] = !0
  87. },
  88. dispose: function (t) {
  89. e._disposeHandlers.push(t)
  90. },
  91. addDisposeHandler: function (t) {
  92. e._disposeHandlers.push(t)
  93. },
  94. removeDisposeHandler: function (t) {
  95. var i = e._disposeHandlers.indexOf(t)
  96. i >= 0 && e._disposeHandlers.splice(i, 1)
  97. },
  98. check: b,
  99. apply: w,
  100. status: function (t) {
  101. if (!t) return a
  102. s.push(t)
  103. },
  104. addStatusHandler: function (t) {
  105. s.push(t)
  106. },
  107. removeStatusHandler: function (t) {
  108. var e = s.indexOf(t)
  109. e >= 0 && s.splice(e, 1)
  110. },
  111. data: A[t]
  112. }
  113. return (i = void 0), e
  114. }
  115. var s = [],
  116. a = 'idle'
  117. function l(t) {
  118. a = t
  119. for (var e = 0; e < s.length; e++) s[e].call(null, t)
  120. }
  121. var u,
  122. c,
  123. h,
  124. p = 0,
  125. d = 0,
  126. f = {},
  127. y = {},
  128. v = {}
  129. function m(t) {
  130. return +t + '' === t ? +t : t
  131. }
  132. function b(t) {
  133. if ('idle' !== a) throw new Error('check() is only allowed in idle status')
  134. return (
  135. (n = t),
  136. l('check'),
  137. ((e = 1e4),
  138. (e = e || 1e4),
  139. new Promise(function (t, i) {
  140. if ('undefined' == typeof XMLHttpRequest) return i(new Error('No browser support'))
  141. try {
  142. var n = new XMLHttpRequest(),
  143. A = O.p + '' + g + '.hot-update.json'
  144. n.open('GET', A, !0), (n.timeout = e), n.send(null)
  145. } catch (t) {
  146. return i(t)
  147. }
  148. n.onreadystatechange = function () {
  149. if (4 === n.readyState)
  150. if (0 === n.status) i(new Error('Manifest request to ' + A + ' timed out.'))
  151. else if (404 === n.status) t()
  152. else if (200 !== n.status && 304 !== n.status)
  153. i(new Error('Manifest request to ' + A + ' failed.'))
  154. else {
  155. try {
  156. var e = JSON.parse(n.responseText)
  157. } catch (t) {
  158. return void i(t)
  159. }
  160. t(e)
  161. }
  162. }
  163. })).then(function (t) {
  164. if (!t) return l('idle'), null
  165. ;(y = {}), (f = {}), (v = t.c), (h = t.h), l('prepare')
  166. var e = new Promise(function (t, e) {
  167. u = { resolve: t, reject: e }
  168. })
  169. c = {}
  170. return x(0), 'prepare' === a && 0 === d && 0 === p && _(), e
  171. })
  172. )
  173. var e
  174. }
  175. function x(t) {
  176. v[t]
  177. ? ((y[t] = !0),
  178. p++,
  179. (function (t) {
  180. var e = document.createElement('script')
  181. ;(e.charset = 'utf-8'),
  182. (e.src = O.p + '' + t + '.' + g + '.hot-update.js'),
  183. document.head.appendChild(e)
  184. })(t))
  185. : (f[t] = !0)
  186. }
  187. function _() {
  188. l('ready')
  189. var t = u
  190. if (((u = null), t))
  191. if (n)
  192. Promise.resolve()
  193. .then(function () {
  194. return w(n)
  195. })
  196. .then(
  197. function (e) {
  198. t.resolve(e)
  199. },
  200. function (e) {
  201. t.reject(e)
  202. }
  203. )
  204. else {
  205. var e = []
  206. for (var i in c) Object.prototype.hasOwnProperty.call(c, i) && e.push(m(i))
  207. t.resolve(e)
  208. }
  209. }
  210. function w(e) {
  211. if ('ready' !== a) throw new Error('apply() is only allowed in ready status')
  212. var i, n, o, C, I
  213. function s(t) {
  214. for (
  215. var e = [t],
  216. i = {},
  217. n = e.map(function (t) {
  218. return { chain: [t], id: t }
  219. });
  220. n.length > 0;
  221. ) {
  222. var g = n.pop(),
  223. A = g.id,
  224. r = g.chain
  225. if ((C = P[A]) && !C.hot._selfAccepted) {
  226. if (C.hot._selfDeclined) return { type: 'self-declined', chain: r, moduleId: A }
  227. if (C.hot._main) return { type: 'unaccepted', chain: r, moduleId: A }
  228. for (var o = 0; o < C.parents.length; o++) {
  229. var I = C.parents[o],
  230. s = P[I]
  231. if (s) {
  232. if (s.hot._declinedDependencies[A])
  233. return { type: 'declined', chain: r.concat([I]), moduleId: A, parentId: I }
  234. ;-1 === e.indexOf(I) &&
  235. (s.hot._acceptedDependencies[A]
  236. ? (i[I] || (i[I] = []), u(i[I], [A]))
  237. : (delete i[I], e.push(I), n.push({ chain: r.concat([I]), id: I })))
  238. }
  239. }
  240. }
  241. }
  242. return { type: 'accepted', moduleId: t, outdatedModules: e, outdatedDependencies: i }
  243. }
  244. function u(t, e) {
  245. for (var i = 0; i < e.length; i++) {
  246. var n = e[i]
  247. ;-1 === t.indexOf(n) && t.push(n)
  248. }
  249. }
  250. e = e || {}
  251. var p = {},
  252. d = [],
  253. f = {},
  254. y = function () {
  255. console.warn('[HMR] unexpected require(' + x.moduleId + ') to disposed module')
  256. }
  257. for (var b in c)
  258. if (Object.prototype.hasOwnProperty.call(c, b)) {
  259. var x
  260. I = m(b)
  261. var _ = !1,
  262. w = !1,
  263. S = !1,
  264. E = ''
  265. switch (
  266. ((x = c[b] ? s(I) : { type: 'disposed', moduleId: b }).chain &&
  267. (E = '\nUpdate propagation: ' + x.chain.join(' -> ')),
  268. x.type)
  269. ) {
  270. case 'self-declined':
  271. e.onDeclined && e.onDeclined(x),
  272. e.ignoreDeclined ||
  273. (_ = new Error('Aborted because of self decline: ' + x.moduleId + E))
  274. break
  275. case 'declined':
  276. e.onDeclined && e.onDeclined(x),
  277. e.ignoreDeclined ||
  278. (_ = new Error(
  279. 'Aborted because of declined dependency: ' + x.moduleId + ' in ' + x.parentId + E
  280. ))
  281. break
  282. case 'unaccepted':
  283. e.onUnaccepted && e.onUnaccepted(x),
  284. e.ignoreUnaccepted || (_ = new Error('Aborted because ' + I + ' is not accepted' + E))
  285. break
  286. case 'accepted':
  287. e.onAccepted && e.onAccepted(x), (w = !0)
  288. break
  289. case 'disposed':
  290. e.onDisposed && e.onDisposed(x), (S = !0)
  291. break
  292. default:
  293. throw new Error('Unexception type ' + x.type)
  294. }
  295. if (_) return l('abort'), Promise.reject(_)
  296. if (w)
  297. for (I in ((f[I] = c[I]), u(d, x.outdatedModules), x.outdatedDependencies))
  298. Object.prototype.hasOwnProperty.call(x.outdatedDependencies, I) &&
  299. (p[I] || (p[I] = []), u(p[I], x.outdatedDependencies[I]))
  300. S && (u(d, [x.moduleId]), (f[I] = y))
  301. }
  302. var D,
  303. k = []
  304. for (n = 0; n < d.length; n++)
  305. (I = d[n]),
  306. P[I] &&
  307. P[I].hot._selfAccepted &&
  308. f[I] !== y &&
  309. k.push({ module: I, errorHandler: P[I].hot._selfAccepted })
  310. l('dispose'),
  311. Object.keys(v).forEach(function (t) {
  312. !1 === v[t] &&
  313. (function (t) {
  314. delete installedChunks[t]
  315. })(t)
  316. })
  317. for (var M, L, N = d.slice(); N.length > 0; )
  318. if (((I = N.pop()), (C = P[I]))) {
  319. var j = {},
  320. R = C.hot._disposeHandlers
  321. for (o = 0; o < R.length; o++) (i = R[o])(j)
  322. for (
  323. A[I] = j, C.hot.active = !1, delete P[I], delete p[I], o = 0;
  324. o < C.children.length;
  325. o++
  326. ) {
  327. var G = P[C.children[o]]
  328. G && (D = G.parents.indexOf(I)) >= 0 && G.parents.splice(D, 1)
  329. }
  330. }
  331. for (I in p)
  332. if (Object.prototype.hasOwnProperty.call(p, I) && (C = P[I]))
  333. for (L = p[I], o = 0; o < L.length; o++)
  334. (M = L[o]), (D = C.children.indexOf(M)) >= 0 && C.children.splice(D, 1)
  335. for (I in (l('apply'), (g = h), f)) Object.prototype.hasOwnProperty.call(f, I) && (t[I] = f[I])
  336. var T = null
  337. for (I in p)
  338. if (Object.prototype.hasOwnProperty.call(p, I) && (C = P[I])) {
  339. L = p[I]
  340. var V = []
  341. for (n = 0; n < L.length; n++)
  342. if (((M = L[n]), (i = C.hot._acceptedDependencies[M]))) {
  343. if (-1 !== V.indexOf(i)) continue
  344. V.push(i)
  345. }
  346. for (n = 0; n < V.length; n++) {
  347. i = V[n]
  348. try {
  349. i(L)
  350. } catch (t) {
  351. e.onErrored &&
  352. e.onErrored({ type: 'accept-errored', moduleId: I, dependencyId: L[n], error: t }),
  353. e.ignoreErrored || T || (T = t)
  354. }
  355. }
  356. }
  357. for (n = 0; n < k.length; n++) {
  358. var U = k[n]
  359. ;(I = U.module), (r = [I])
  360. try {
  361. O(I)
  362. } catch (t) {
  363. if ('function' == typeof U.errorHandler)
  364. try {
  365. U.errorHandler(t)
  366. } catch (i) {
  367. e.onErrored &&
  368. e.onErrored({
  369. type: 'self-accept-error-handler-errored',
  370. moduleId: I,
  371. error: i,
  372. originalError: t
  373. }),
  374. e.ignoreErrored || T || (T = i),
  375. T || (T = t)
  376. }
  377. else
  378. e.onErrored && e.onErrored({ type: 'self-accept-errored', moduleId: I, error: t }),
  379. e.ignoreErrored || T || (T = t)
  380. }
  381. }
  382. return T
  383. ? (l('fail'), Promise.reject(T))
  384. : (l('idle'),
  385. new Promise(function (t) {
  386. t(d)
  387. }))
  388. }
  389. var P = {}
  390. function O(e) {
  391. if (P[e]) return P[e].exports
  392. var i = (P[e] = {
  393. i: e,
  394. l: !1,
  395. exports: {},
  396. hot: I(e),
  397. parents: ((o = r), (r = []), o),
  398. children: []
  399. })
  400. return t[e].call(i.exports, i, i.exports, C(e)), (i.l = !0), i.exports
  401. }
  402. ;(O.m = t),
  403. (O.c = P),
  404. (O.d = function (t, e, i) {
  405. O.o(t, e) || Object.defineProperty(t, e, { enumerable: !0, get: i })
  406. }),
  407. (O.r = function (t) {
  408. 'undefined' != typeof Symbol &&
  409. Symbol.toStringTag &&
  410. Object.defineProperty(t, Symbol.toStringTag, { value: 'Module' }),
  411. Object.defineProperty(t, '__esModule', { value: !0 })
  412. }),
  413. (O.t = function (t, e) {
  414. if ((1 & e && (t = O(t)), 8 & e)) return t
  415. if (4 & e && 'object' == typeof t && t && t.__esModule) return t
  416. var i = Object.create(null)
  417. if (
  418. (O.r(i),
  419. Object.defineProperty(i, 'default', { enumerable: !0, value: t }),
  420. 2 & e && 'string' != typeof t)
  421. )
  422. for (var n in t)
  423. O.d(
  424. i,
  425. n,
  426. function (e) {
  427. return t[e]
  428. }.bind(null, n)
  429. )
  430. return i
  431. }),
  432. (O.n = function (t) {
  433. var e =
  434. t && t.__esModule
  435. ? function () {
  436. return t.default
  437. }
  438. : function () {
  439. return t
  440. }
  441. return O.d(e, 'a', e), e
  442. }),
  443. (O.o = function (t, e) {
  444. return Object.prototype.hasOwnProperty.call(t, e)
  445. }),
  446. (O.p = ''),
  447. (O.h = function () {
  448. return g
  449. }),
  450. C(24)((O.s = 24))
  451. })([
  452. function (t, e, i) {
  453. var n =
  454. (this && this.__assign) ||
  455. function () {
  456. return (n =
  457. Object.assign ||
  458. function (t) {
  459. for (var e, i = 1, n = arguments.length; i < n; i++)
  460. for (var g in (e = arguments[i]))
  461. Object.prototype.hasOwnProperty.call(e, g) && (t[g] = e[g])
  462. return t
  463. }).apply(this, arguments)
  464. }
  465. Object.defineProperty(e, '__esModule', { value: !0 })
  466. var g = i(3)
  467. ;(e.calcVector = function (t) {
  468. var e = 1 / ((t = n({}, t)).x * t.y < 0 ? Math.abs(t.x - t.y) : t.x + t.y)
  469. return (t.x = t.x * e), (t.y = t.y * e), t
  470. }),
  471. (e.strictLineVector = function (t) {
  472. var i = t.points[1].x - t.points[0].x,
  473. n = t.points[1].y - t.points[0].y,
  474. g = Math.abs(i / 1),
  475. A = Math.abs(n / 1),
  476. r = g > A ? g : A,
  477. o = { x: i / r, y: n / r }
  478. return e.calcVector(o)
  479. }),
  480. (e.lineVector = function (t, i) {
  481. void 0 === i && (i = 0.001)
  482. var n = e.strictLineVector(t)
  483. return Math.abs(n.x) < i && (n.x = 0), Math.abs(n.y) < i && (n.y = 0), n
  484. }),
  485. (e.verticalLine = function (t) {
  486. var i = e.lineVector(t),
  487. n = i.x,
  488. g = i.y
  489. if (n - g != 0) {
  490. var A = { x: g / (g - n), y: n / (n - g) }
  491. return e.calcVector(A)
  492. }
  493. return { x: n, y: g }
  494. }),
  495. (e.lineDis = function (t) {
  496. return Number(
  497. Math.sqrt(
  498. Math.pow(t.points[0].x - t.points[1].x, 2) + Math.pow(t.points[0].y - t.points[1].y, 2)
  499. ).toFixed(4)
  500. )
  501. }),
  502. (e.lineCenter = function (t) {
  503. return { x: (t.points[0].x + t.points[1].x) / 2, y: (t.points[0].y + t.points[1].y) / 2 }
  504. }),
  505. (e.segmentsIntr = function (t, i) {
  506. var n = t.points,
  507. g = n[0],
  508. A = n[1],
  509. r = i.points,
  510. o = r[0],
  511. C = r[1],
  512. I = (A.y - g.y) * (C.x - o.x) - (g.x - A.x) * (o.y - C.y)
  513. if (0 == I) return !1
  514. var s =
  515. ((A.x - g.x) * (C.x - o.x) * (o.y - g.y) +
  516. (A.y - g.y) * (C.x - o.x) * g.x -
  517. (C.y - o.y) * (A.x - g.x) * o.x) /
  518. I,
  519. a =
  520. -(
  521. (A.y - g.y) * (C.y - o.y) * (o.x - g.x) +
  522. (A.x - g.x) * (C.y - o.y) * g.y -
  523. (C.x - o.x) * (A.y - g.y) * o.y
  524. ) / I
  525. return (
  526. !(!e.isContainPoint(t, { x: s, y: a }) || !e.isContainPoint(i, { x: s, y: a })) && {
  527. x: s,
  528. y: a
  529. }
  530. )
  531. }),
  532. (e.segmentsIntrFine = function (t, e) {
  533. var i = t.points,
  534. n = i[0],
  535. g = i[1],
  536. A = e.points,
  537. r = A[0],
  538. o = A[1],
  539. C = (g.y - n.y) * (o.x - r.x) - (n.x - g.x) * (r.y - o.y)
  540. if (0 == C) return !1
  541. var I =
  542. ((g.x - n.x) * (o.x - r.x) * (r.y - n.y) +
  543. (g.y - n.y) * (o.x - r.x) * n.x -
  544. (o.y - r.y) * (g.x - n.x) * r.x) /
  545. C,
  546. s =
  547. -(
  548. (g.y - n.y) * (o.y - r.y) * (r.x - n.x) +
  549. (g.x - n.x) * (o.y - r.y) * n.y -
  550. (o.x - r.x) * (g.y - n.y) * r.y
  551. ) / C
  552. return !isNaN(I) && !isNaN(s) && { x: I, y: s }
  553. }),
  554. (e.pointLineDis = function (t, e) {
  555. var i = 0,
  556. n = t.points[1].x - t.points[0].x,
  557. g = e.x - t.points[0].x,
  558. A = e.x - t.points[1].x,
  559. r = t.points[1].y - t.points[0].y,
  560. o = e.y - t.points[0].y,
  561. C = e.y - t.points[1].y,
  562. I = n * g + r * o,
  563. s = n * n + r * r
  564. if (I <= 0) i = Math.sqrt(g * g + o * o)
  565. else if (I >= s) i = Math.sqrt(A * A + C * C)
  566. else {
  567. var a = I / s,
  568. l = t.points[0].x + n * a,
  569. u = t.points[0].y + r * a
  570. i = Math.sqrt((e.x - l) * (e.x - l) + (u - e.y) * (u - e.y))
  571. }
  572. return i
  573. }),
  574. (e.isContainPoint = function (t, i) {
  575. return !Math.abs(e.pointLineDis(t, i)) || Math.abs(e.pointLineDis(t, i)) < 0.01
  576. }),
  577. (e.getVerLinePoint = function (t, i) {
  578. return e.getVectorPosPoint(e.verticalLine(t), t.points[0], i)
  579. }),
  580. (e.getVectorPosPoint = function (t, i, n) {
  581. var g = { points: [i, { x: i.x + 1e4 * t.x, y: i.y + 1e4 * t.y }] }
  582. return e.getLinePoint(g, n)
  583. }),
  584. (e.getLinePoint = function (t, i) {
  585. var n,
  586. A = i
  587. if (g.type.isNumber(A.x) && g.type.isNumber(A.y)) {
  588. var r = e.lineVector(t),
  589. o = r.x,
  590. C = r.y,
  591. I = Math.abs(o) > Math.abs(C) ? 'x' : 'y'
  592. ;((n = {})[I] = A[I]), (A = n)
  593. }
  594. var s = e.lineVector(t, 1e-4),
  595. a = s.y / s.x,
  596. l = t.points[0].y - a * t.points[0].x
  597. return a > 100 || a < -100
  598. ? { x: t.points[0].x, y: A.y }
  599. : g.type.isNumber(A.x)
  600. ? { x: A.x, y: a * A.x + l }
  601. : g.type.isNumber(A.y)
  602. ? { x: (A.y - l) / a, y: A.y }
  603. : { x: 0, y: 0 }
  604. }),
  605. (e.getFlexLinePoint = function (t, i) {
  606. var n = e.strictLineVector(t),
  607. g = n.x,
  608. A = n.y,
  609. r = (g = Math.abs(g)) > (A = Math.abs(A)) ? { x: i.x } : { y: i.y }
  610. return e.getLinePoint(t, r)
  611. }),
  612. (e.getDisVectorPoints = function (t, e, i) {
  613. var n = Math.atan(t.y / t.x)
  614. return [
  615. { x: e.x + i * Math.cos(n), y: e.y + i * Math.sin(n) },
  616. { x: e.x + -i * Math.cos(n), y: e.y + -i * Math.sin(n) }
  617. ]
  618. }),
  619. (e.getDisPointLinePoints = function (t, i, n) {
  620. return e.getDisVectorPoints(e.lineVector(t), i, n)
  621. }),
  622. (e.getLineDisPoint = function (t, i) {
  623. var n = e.getDisPointLinePoints(t, t.points[0], i),
  624. g = n[0],
  625. A = n[1],
  626. r = e.lineVector(t),
  627. o = e.lineVector({ points: [t.points[0], g] })
  628. return r.x * o.x >= 0 && r.y * o.y >= 0 ? g : A
  629. }),
  630. (e.getLineDisSelectPoint = function (t, i, n) {
  631. var g = e.getDisPointLinePoints(t, i, n),
  632. A = g[0],
  633. r = g[1]
  634. return e.pointLineDis(t, A) < e.pointLineDis(t, r) ? A : r
  635. }),
  636. (e.getDisVerticalLinePoints = function (t, i, n) {
  637. return e.getDisVectorPoints(e.verticalLine(t), i, n)
  638. }),
  639. (e.getLineVerticalChangePoint = function (t, i, n) {
  640. var g = e.segmentsIntrFine(t, i)
  641. return g ? e.getLineVerticalPoint(t, g, e.lineVector(i), n) : g
  642. }),
  643. (e.getLineVerticalPoint = function (t, i, n, g) {
  644. var A = e.getDisVerticalLinePoints(t, i, g),
  645. r = A[0],
  646. o = A[1],
  647. C = e.lineVector({ points: [i, r] }),
  648. I = e.lineVector({ points: [i, o] }),
  649. s = n.x * C.x,
  650. a = n.y * C.y,
  651. l = n.x * I.x,
  652. u = n.x * I.y
  653. return s >= 0 && a >= 0
  654. ? r
  655. : (l >= 0 && u >= 0) || (s < a ? s : a) < (l < u ? l : u)
  656. ? o
  657. : r
  658. }),
  659. (e.getPointCoordinate = function (t) {
  660. return t.x >= 0 && t.y >= 0
  661. ? 1
  662. : t.x >= 0 && t.y <= 0
  663. ? 2
  664. : t.x <= 0 && t.y <= 0
  665. ? 3
  666. : t.x <= 0 && t.y >= 0
  667. ? 4
  668. : 0
  669. }),
  670. (e.getLineCoordinate = function (t) {
  671. var e = t.points[1].x - t.points[0].x,
  672. i = t.points[1].y - t.points[0].y
  673. return e >= 0 && i >= 0 ? 1 : e >= 0 && i <= 0 ? 4 : e <= 0 && i <= 0 ? 3 : 2
  674. }),
  675. (e.getPointCoordDistance = function (t, i) {
  676. return e.getPointCoordinate(t) - e.getPointCoordinate(i)
  677. }),
  678. (e.faceArea = function (t) {
  679. var e = t.length
  680. if (e < 3) return 0
  681. for (var i = t[0].y * (t[e - 1].x - t[1].x), n = 1; n < e; ++n)
  682. i += t[n].y * (t[n - 1].x - t[(n + 1) % e].x)
  683. return Math.abs(i / 2)
  684. }),
  685. (e.pointInside = function (t, e) {
  686. for (var i = !1, n = e.x, g = e.y, A = 0, r = t.length - 1; A < t.length; r = A++) {
  687. var o = t[A].x,
  688. C = t[A].y,
  689. I = t[r].x,
  690. s = t[r].y
  691. C > g != s > g && n <= ((I - o) * (g - C)) / (s - C) + o && (i = !i)
  692. }
  693. return i
  694. }),
  695. (e.isPointInPoly = function (t, e) {
  696. for (var i = e.x, n = e.y, g = !1, A = 0, r = t.length - 1; A < t.length; r = A++) {
  697. var o = t[A],
  698. C = t[r],
  699. I = o.x,
  700. s = o.y,
  701. a = C.x,
  702. l = C.y
  703. s > n != l > n && i < ((a - I) * (n - s)) / (l - s) + I && (g = !g)
  704. }
  705. return g
  706. }),
  707. (e.pointInsideBorder = function (t, i) {
  708. for (var n = 0; n < t.length; n++) {
  709. var g = { points: [t[n], t[n === t.length - 1 ? 0 : n + 1]] }
  710. if (e.isContainPoint(g, i)) return !0
  711. }
  712. return !1
  713. }),
  714. (e.isClockWise = function (t, e) {
  715. var i, n, g
  716. void 0 === e && (e = !0)
  717. var A,
  718. r = 0,
  719. o = e ? -1 : 1
  720. if (null == t || t.length < 3) return !1
  721. var C = t.length
  722. for (i = 0; i < C; i++)
  723. (g = (i + 2) % C),
  724. (A = (t[(n = (i + 1) % C)].x - t[i].x) * (t[g].y * o - t[n].y * o)),
  725. (A -= (t[n].y * o - t[i].y * o) * (t[g].x - t[n].x)) < 0 ? r-- : A > 0 && r++
  726. return r > 0
  727. }),
  728. (e.isLineIntersect = function (t, e) {
  729. var i = t.points[1].y - t.points[0].y,
  730. n = t.points[0].x - t.points[1].x,
  731. g = i * t.points[0].x + n * t.points[0].y,
  732. A = e.points[1].y - e.points[0].y,
  733. r = e.points[0].x - e.points[1].x,
  734. o = A * e.points[0].x + r * e.points[0].y,
  735. C = i * r - A * n
  736. if (0 == C) return !1
  737. var I = (r * g - n * o) / C,
  738. s = (i * o - A * g) / C
  739. if (
  740. (a(t.points[0].x, I, t.points[1].x) || a(t.points[0].y, s, t.points[1].y)) &&
  741. (a(e.points[0].x, I, e.points[1].x) || a(e.points[0].y, s, e.points[1].y))
  742. )
  743. return !0
  744. function a(t, e, i) {
  745. return (
  746. !(Math.abs(t - e) < 1e-6 || Math.abs(e - i) < 1e-6) &&
  747. ((t <= e && e <= i) || (i <= e && e <= t))
  748. )
  749. }
  750. return !1
  751. }),
  752. (e.isFaceIntersect = function (t, i) {
  753. for (var n = 0; n < t.length; n++)
  754. for (
  755. var g = n + 1 === t.length ? 0 : n + 1, A = { points: [t[n], t[g]] }, r = 0;
  756. r < i.length;
  757. r++
  758. ) {
  759. g = r + 1 === i.length ? 0 : r + 1
  760. var o = { points: [i[r], i[g]] },
  761. C = e.isLineIntersect(o, A),
  762. I = e.isLineIntersect(A, o)
  763. if (C && I) return !0
  764. }
  765. return !1
  766. }),
  767. (e.isFaceContain = function (t, i) {
  768. return (
  769. i.every(function (i) {
  770. return e.pointInside(t, i)
  771. }) && !e.isFaceIntersect(t, i)
  772. )
  773. }),
  774. (e.isFaceChild = function (t, i) {
  775. return (
  776. i.every(function (i) {
  777. return e.pointInside(t, i) || e.pointInsideBorder(t, i)
  778. }) && !e.isFaceIntersect(t, i)
  779. )
  780. }),
  781. (e.faceCenter = function (t) {
  782. for (var e = 0, i = 0, n = 0; n < t.length; n++) (e += t[n].x), (i += t[n].y)
  783. return { x: (e /= t.length), y: (i /= t.length) }
  784. }),
  785. (e.faceRotate = function (t, i) {
  786. var n = window.THREE,
  787. g = e.faceCenter(t),
  788. A = new n.Matrix3().translate(-g.x, -g.y),
  789. r = new n.Matrix3().rotate(n.Math.degToRad(i)),
  790. o = new n.Matrix3().translate(g.x, g.y),
  791. C = new n.Matrix3()
  792. return (
  793. C.premultiply(A),
  794. C.premultiply(r),
  795. C.premultiply(o),
  796. t.map(function (t) {
  797. var e = new n.Vector2(t.x, t.y)
  798. return e.applyMatrix3(C), { x: e.x, y: e.y }
  799. })
  800. )
  801. }),
  802. (e.lineStretch = function (t, i) {
  803. t = n(n({}, t), {
  804. points: t.points.map(function (t) {
  805. return { x: t.x, y: t.y }
  806. })
  807. })
  808. var g = e.lineCenter(t),
  809. A = e.getDisPointLinePoints(t, g, i / 2),
  810. r = A[0],
  811. o = A[1]
  812. return (
  813. e.lineDis({ points: [t.points[0], r] }) > e.lineDis({ points: [t.points[0], o] })
  814. ? ((t.points[0].x = o.x),
  815. (t.points[0].y = o.y),
  816. (t.points[1].x = r.x),
  817. (t.points[1].y = r.y))
  818. : ((t.points[0].x = r.x),
  819. (t.points[0].y = r.y),
  820. (t.points[1].x = o.x),
  821. (t.points[1].y = o.y)),
  822. t
  823. )
  824. }),
  825. (e.lineDeg = function (t) {
  826. return (
  827. (180 * Math.atan2(t.points[1].y - t.points[0].y, t.points[1].x - t.points[0].x)) / Math.PI
  828. )
  829. }),
  830. (e.getAngle = function (t, e) {
  831. var i, n, g, A
  832. ~(A = t.points.indexOf(e.points[0]))
  833. ? ((i = t.points[A]), (n = e.points[1]), (g = t.points[Number(!A)]))
  834. : ~(A = t.points.indexOf(e.points[1])) &&
  835. ((i = t.points[A]), (n = e.points[0]), (g = t.points[Number(!A)]))
  836. var r,
  837. o,
  838. C = 0,
  839. I = n.x - i.x,
  840. s = n.y - i.y,
  841. a = g.x - i.x,
  842. l = g.y - i.y
  843. return (
  844. (C = I * a + s * l),
  845. (o = (I * I + s * s) * (a * a + l * l)),
  846. (C /= Math.sqrt(o)) >= 1
  847. ? 0
  848. : C <= -1
  849. ? 180
  850. : (180 * (r = Math.acos(C))) / Math.PI < 180
  851. ? (180 * r) / Math.PI
  852. : 360 - (180 * r) / Math.PI
  853. )
  854. }),
  855. (e.rotatePoint = function (t, e, i) {
  856. var n = t.x - i.x,
  857. g = t.y - i.y,
  858. A = Math.cos(e) * n - Math.sin(e) * g,
  859. r = Math.sin(e) * n + Math.cos(e) * g
  860. return { x: A + i.x, y: r + i.y }
  861. }),
  862. (e.rotateData = function (t, i, n) {
  863. try {
  864. var g = ['furnColumn', 'furnFlue', 'column']
  865. return (
  866. (t = JSON.parse(JSON.stringify(t))).vertex.forEach(function (t) {
  867. var g = e.rotatePoint(t, i, n)
  868. ;(t.x = g.x), (t.y = g.y)
  869. }),
  870. t.tagging.forEach(function (t) {
  871. var g = e.rotatePoint({ x: t.pos[0], y: t.pos[1] }, i, n)
  872. ;(t.pos[0] = g.x), (t.pos[1] = g.y)
  873. }),
  874. ['window', 'door', 'slideDoor', 'groundCase', 'bayCase', 'doubleDoor']
  875. .concat(g)
  876. .forEach(function (g) {
  877. t[g].forEach(function (t) {
  878. var g = e.rotatePoint({ x: t.pos[0], y: t.pos[1] }, i, n),
  879. A = e.rotatePoint({ x: t.pos[2], y: t.pos[3] }, i, n)
  880. ;(t.pos[0] = g.x), (t.pos[1] = g.y), (t.pos[2] = A.x), (t.pos[3] = A.y)
  881. })
  882. }),
  883. g.forEach(function (g) {
  884. t[g].forEach(function (t) {
  885. var g = e.rotatePoint({ x: t.pos[4], y: t.pos[5] }, i, n),
  886. A = e.rotatePoint({ x: t.pos[6], y: t.pos[7] }, i, n)
  887. ;(t.pos[4] = g.x), (t.pos[5] = g.y), (t.pos[6] = A.x), (t.pos[7] = A.y)
  888. })
  889. }),
  890. t
  891. )
  892. } catch (e) {
  893. return t
  894. }
  895. })
  896. },
  897. function (t, e, i) {
  898. var n, g
  899. Object.defineProperty(e, '__esModule', { value: !0 })
  900. var A = i(9)
  901. ;(e.SVGURI = 'http://www.w3.org/2000/svg'),
  902. (e.SVGPATH = 'http://www.w3.org/1999/xlink'),
  903. (e.STATE_CHILD = '__state'),
  904. (e.POINT = 'point'),
  905. (e.DOOR = 'door'),
  906. (e.DOUBLEDOOR = 'double_door'),
  907. (e.COLUMN = 'column'),
  908. (e.CASEMENT = 'casement'),
  909. (e.SLIDEDOOR = 'slideDoor'),
  910. (e.TAGGING = 'tagging'),
  911. (e.GROUNDCASE = 'groundCase'),
  912. (e.BAYCASE = 'bayCase'),
  913. (e.FURNCOLUMN = 'furnColumn'),
  914. (e.FURNFLUE = 'furnFlue'),
  915. (e.LINE = 'line'),
  916. (e.SEFTLINE = 'seftline'),
  917. (e.ARCH =
  918. (((n = {})[e.POINT] = A.i18n.t('modules.model.point')),
  919. (n[e.DOOR] = A.i18n.t('modules.model.door')),
  920. (n[e.DOUBLEDOOR] = A.i18n.t('modules.model.double_door')),
  921. (n[e.COLUMN] = A.i18n.t('modules.model.column')),
  922. (n[e.CASEMENT] = A.i18n.t('modules.model.casement')),
  923. (n[e.SLIDEDOOR] = A.i18n.t('modules.model.slideDoor')),
  924. (n[e.TAGGING] = A.i18n.t('modules.model.tagging')),
  925. (n[e.GROUNDCASE] = A.i18n.t('modules.model.groundCase')),
  926. (n[e.BAYCASE] = A.i18n.t('modules.model.bayCase')),
  927. (n[e.FURNCOLUMN] = A.i18n.t('modules.model.furnColumn')),
  928. (n[e.FURNFLUE] = A.i18n.t('modules.model.furnFlue')),
  929. (n[e.LINE] = A.i18n.t('modules.model.line')),
  930. (n[e.SEFTLINE] = A.i18n.t('modules.model.line')),
  931. n)),
  932. (e.DEFAULT =
  933. (((g = {})[e.DOOR] = { width: 0.8, height: 2 }),
  934. (g[e.DOUBLEDOOR] = { width: 1.6, height: 2 }),
  935. (g[e.SLIDEDOOR] = { width: 1.5, height: 2 }),
  936. (g[e.CASEMENT] = { width: 0.8, height: 1.2 }),
  937. (g[e.BAYCASE] = { width: 1.5, height: 1.2 }),
  938. (g[e.GROUNDCASE] = { width: 1.5, height: 2 }),
  939. (g[e.COLUMN] = { width: 0.65, tick: 0.65 }),
  940. (g[e.FURNCOLUMN] = { width: 0.65, tick: 0.65 }),
  941. (g[e.FURNFLUE] = { width: 0.65, tick: 0.65 }),
  942. (g[e.LINE] = { width: 0.5 }),
  943. g))
  944. },
  945. function (t, e, i) {
  946. var n =
  947. (this && this.__assign) ||
  948. function () {
  949. return (n =
  950. Object.assign ||
  951. function (t) {
  952. for (var e, i = 1, n = arguments.length; i < n; i++)
  953. for (var g in (e = arguments[i]))
  954. Object.prototype.hasOwnProperty.call(e, g) && (t[g] = e[g])
  955. return t
  956. }).apply(this, arguments)
  957. }
  958. Object.defineProperty(e, '__esModule', { value: !0 })
  959. var g = i(29),
  960. A = i(1),
  961. r = i(3),
  962. o = 0,
  963. C = { enter: 'mouseenter', leave: 'mouseleave', click: 'click', drag: 'mousedown' },
  964. I = (function () {
  965. function t(e) {
  966. var i = this
  967. ;(this.zIndex = 0),
  968. (this.render = e.renderer),
  969. (this.id = ++o),
  970. (this.__state = new g.State(n(n({}, e), { select: !1 }), {
  971. afferent: this,
  972. notice: function () {
  973. for (var t = [], e = 0; e < arguments.length; e++) t[e] = arguments[e]
  974. i.notice && i.notice.apply(i, t), i.update && i.update()
  975. var n = Object.keys(t[0].args)
  976. if ((~n.indexOf('x') || ~n.indexOf('y')) && i.wallPos)
  977. try {
  978. i.wallPos()
  979. } catch (t) {}
  980. ~n.indexOf('select') && i.wallSelect && i.wallSelect()
  981. },
  982. childAttr: A.STATE_CHILD,
  983. intercept:
  984. this.intercept &&
  985. function () {
  986. for (var t = [], e = 0; e < arguments.length; e++) t[e] = arguments[e]
  987. return i.intercept.apply(i, t)
  988. }
  989. })),
  990. this.__state.bindDataChange(),
  991. g.getter(this, this.__state),
  992. g.setter(this, this.__state),
  993. Object.defineProperties(this, {
  994. multiple: {
  995. get: function () {
  996. return i.renderer.props.multiple / i.renderer.props.scale
  997. }
  998. }
  999. }),
  1000. t.examples.get(this.renderer).push(this),
  1001. this.grentNode &&
  1002. ((this.real = this.grentNode()),
  1003. this.setHoverStyle &&
  1004. this.setUnHoverStyle &&
  1005. ((this.enter = function () {
  1006. ;(i.real.style.cursor = 'pointer'), i.setHoverStyle()
  1007. }),
  1008. (this.leave = function () {
  1009. i.select || (i.setUnHoverStyle(), (i.real.style.cursor = 'inherit'))
  1010. }),
  1011. (this.wallSelect = function () {
  1012. i.select
  1013. ? ((i.real.style.cursor = 'pointer'), i.setHoverStyle())
  1014. : ((i.real.style.cursor = 'inherit'), i.setUnHoverStyle())
  1015. })),
  1016. this.listen()),
  1017. (this.real.id = 'ele' + o.toString()),
  1018. this.nextTick(function () {
  1019. try {
  1020. i.update()
  1021. } catch (t) {}
  1022. })
  1023. }
  1024. return (
  1025. (t.prototype.intercept = function (t, e, i, n) {
  1026. return e
  1027. }),
  1028. (t.prototype.changeSelect = function (e) {
  1029. var i = this
  1030. this.select !== e &&
  1031. ((this.select = e),
  1032. this.wallSelect && this.wallSelect(),
  1033. this.update && this.update(),
  1034. e &&
  1035. t.examples.get(this.renderer).forEach(function (t) {
  1036. t !== i && t.select && t.changeSelect(!1)
  1037. }))
  1038. }),
  1039. (t.prototype.click = function (t) {
  1040. var e = this
  1041. this.changeSelect(!0),
  1042. this.renderer.processing.attrs.forEach(function (t) {
  1043. var i = e.renderer.processing[t].find(function (t) {
  1044. return t.ele === e
  1045. })
  1046. i && console.log(i)
  1047. }),
  1048. t.stopPropagation()
  1049. }),
  1050. (t.prototype.nextTick = function (t) {
  1051. this.__state.nextTick(t)
  1052. }),
  1053. (t.prototype.nextChange = function (t) {
  1054. this.__state.nextChange(t)
  1055. }),
  1056. (t.prototype.listen = function () {
  1057. ;(this.__draging = !1),
  1058. this.bindEvent('enter'),
  1059. this.bindEvent('leave'),
  1060. this.bindEvent('click'),
  1061. this.bindEvent('drag')
  1062. }),
  1063. (t.prototype.unEvent = function () {
  1064. this.unbindEvent('enter'),
  1065. this.unbindEvent('leave'),
  1066. this.unbindEvent('click'),
  1067. this.unbindEvent('drag')
  1068. }),
  1069. (t.prototype.destroy = function () {
  1070. ;(this.__destroy = !0), this.unEvent()
  1071. var e = t.examples.get(this.renderer)
  1072. ~e.indexOf(this) && (e.splice(e.indexOf(this), 1), this.renderer.remove(this))
  1073. }),
  1074. (t.prototype.bindDrag = function (t) {
  1075. var e = this,
  1076. i = { x: t.offsetX, y: t.offsetY }
  1077. this.dragStart && this.dragStart(t, i)
  1078. var n = r.throttle(function (t) {
  1079. var n = { x: t.offsetX, y: t.offsetY }
  1080. ;(e.__draging = !0),
  1081. e.drag({ x: n.x - i.x, y: n.y - i.y }, n, i),
  1082. t.preventDefault()
  1083. }, 10),
  1084. g = function (t) {
  1085. document.documentElement.removeEventListener('mousemove', n, !1),
  1086. document.documentElement.removeEventListener('mouseup', g, !1),
  1087. (e.__draging = !1),
  1088. e.dragEnd && e.dragEnd({ x: t.offsetX, y: t.offsetY }),
  1089. e.__leave && e.leave()
  1090. }
  1091. document.documentElement.addEventListener('mousemove', n, !1),
  1092. document.documentElement.addEventListener('mouseup', g, !1),
  1093. t.preventDefault()
  1094. }),
  1095. (t.prototype.bindEvent = function (e) {
  1096. var i = this
  1097. if (this[e]) {
  1098. var n = '__bind_' + e
  1099. this[n] && this.unbindEvent(e)
  1100. var g =
  1101. 'drag' === e
  1102. ? this.bindDrag.bind(this)
  1103. : function (n) {
  1104. var g = t.examples.get(i.renderer)
  1105. ;('enter' === e &&
  1106. g.some(function (t) {
  1107. return t.__draging
  1108. })) ||
  1109. (!i.__draging || ('enter' !== e && 'leave' !== e)
  1110. ? i[e](n)
  1111. : (i.__leave = 'leave' === e))
  1112. }
  1113. this.real.addEventListener(C[e], g, !1), (this[n] = g)
  1114. }
  1115. }),
  1116. (t.prototype.unbindEvent = function (t) {
  1117. this['__bind_' + t] && this.real.removeEventListener(C[t], this['__bind_' + t], !1)
  1118. }),
  1119. (t.examples = new Map()),
  1120. (t.multiples = new Map()),
  1121. (t.update = function (e, i) {
  1122. void 0 === i && (i = [])
  1123. var n = t.examples.get(e).concat(i)
  1124. ;(n = Array.from(new Set(n))).forEach(function (t) {
  1125. t.update && t.update()
  1126. })
  1127. }),
  1128. (t.init = function (e) {
  1129. t.examples.set(e, [])
  1130. }),
  1131. t
  1132. )
  1133. })()
  1134. e.CADElement = I
  1135. },
  1136. function (t, e, i) {
  1137. Object.defineProperty(e, '__esModule', { value: !0 }),
  1138. (e.getRange = function (t) {
  1139. var e = Math.abs(Math.min.apply(Math, t)),
  1140. i = Math.abs(Math.max.apply(Math, t))
  1141. return Math.ceil(e + i)
  1142. }),
  1143. (e.getMapMultipleWH = function (t, e, i, n) {
  1144. void 0 === n && (n = 10)
  1145. var g = Math.abs(
  1146. Math.min.apply(
  1147. Math,
  1148. i.vertex.map(function (t) {
  1149. return t.x
  1150. })
  1151. )
  1152. ),
  1153. A = Math.abs(
  1154. Math.max.apply(
  1155. Math,
  1156. i.vertex.map(function (t) {
  1157. return t.x
  1158. })
  1159. )
  1160. ),
  1161. r = Math.abs(
  1162. Math.min.apply(
  1163. Math,
  1164. i.vertex.map(function (t) {
  1165. return t.y
  1166. })
  1167. )
  1168. ),
  1169. o = Math.abs(
  1170. Math.max.apply(
  1171. Math,
  1172. i.vertex.map(function (t) {
  1173. return t.y
  1174. })
  1175. )
  1176. ),
  1177. C = Math.ceil(g + A) / t,
  1178. I = Math.ceil(r + o) / e,
  1179. s = C > I ? C : I,
  1180. a = t * s,
  1181. l = e * s
  1182. return {
  1183. width: a,
  1184. height: l,
  1185. multiple: s,
  1186. left: (g / (g + A)) * a,
  1187. top: (r / (r + o)) * l,
  1188. scale: 1 - (2 * n * s) / a
  1189. }
  1190. }),
  1191. (e.debounce = function (t, e, i, n) {
  1192. void 0 === e && (e = 16)
  1193. var g = null,
  1194. A = [],
  1195. r = 0
  1196. return function () {
  1197. for (var o = [], C = 0; C < arguments.length; C++) o[C] = arguments[C]
  1198. r || (n && n()),
  1199. r++,
  1200. A.push(o),
  1201. clearTimeout(g),
  1202. (g = setTimeout(function () {
  1203. i ? (t(i(A)), (A = [])) : t.apply(void 0, o), (r = 0)
  1204. }, e))
  1205. }
  1206. }),
  1207. (e.throttle = function (t, e) {
  1208. var i = null
  1209. return function () {
  1210. for (var n = [], g = 0; g < arguments.length; g++) n[g] = arguments[g]
  1211. var A = +new Date()
  1212. ;(A - i > e || !i) && (t.apply(void 0, n), (i = A))
  1213. }
  1214. }),
  1215. (e.getType = function (t) {
  1216. return Object.prototype.toString.call(t).slice(8, -1)
  1217. }),
  1218. (e.type = {})
  1219. ;[
  1220. 'String',
  1221. 'Number',
  1222. 'Boolean',
  1223. 'Undefined',
  1224. 'Null',
  1225. 'Object',
  1226. 'Function',
  1227. 'Array',
  1228. 'Date',
  1229. 'RegExp'
  1230. ].forEach(function (t) {
  1231. return (e.type['is' + t] = function (i) {
  1232. return e.getType(i) === t
  1233. })
  1234. }),
  1235. (e.convertBase64UrlToBlob = function (t) {
  1236. for (
  1237. var e = t.split(','),
  1238. i = e[0].match(/:(.*?);/)[1],
  1239. n = atob(e[1]),
  1240. g = n.length,
  1241. A = new Uint8Array(g);
  1242. g--;
  1243. )
  1244. A[g] = n.charCodeAt(g)
  1245. return new Blob([A], { type: i })
  1246. }),
  1247. (e.strEascpeLen = function (t) {
  1248. for (var e = t, i = e.length, n = 0; n < i; n++) {
  1249. ~escape(e.substr(n, 1)).indexOf('%u') && i++
  1250. }
  1251. return i
  1252. })
  1253. },
  1254. function (t, e, i) {
  1255. var n,
  1256. g =
  1257. (this && this.__extends) ||
  1258. ((n = function (t, e) {
  1259. return (n =
  1260. Object.setPrototypeOf ||
  1261. ({ __proto__: [] } instanceof Array &&
  1262. function (t, e) {
  1263. t.__proto__ = e
  1264. }) ||
  1265. function (t, e) {
  1266. for (var i in e) e.hasOwnProperty(i) && (t[i] = e[i])
  1267. })(t, e)
  1268. }),
  1269. function (t, e) {
  1270. function i() {
  1271. this.constructor = t
  1272. }
  1273. n(t, e),
  1274. (t.prototype = null === e ? Object.create(e) : ((i.prototype = e.prototype), new i()))
  1275. }),
  1276. A =
  1277. (this && this.__assign) ||
  1278. function () {
  1279. return (A =
  1280. Object.assign ||
  1281. function (t) {
  1282. for (var e, i = 1, n = arguments.length; i < n; i++)
  1283. for (var g in (e = arguments[i]))
  1284. Object.prototype.hasOwnProperty.call(e, g) && (t[g] = e[g])
  1285. return t
  1286. }).apply(this, arguments)
  1287. },
  1288. r =
  1289. (this && this.__rest) ||
  1290. function (t, e) {
  1291. var i = {}
  1292. for (var n in t)
  1293. Object.prototype.hasOwnProperty.call(t, n) && e.indexOf(n) < 0 && (i[n] = t[n])
  1294. if (null != t && 'function' == typeof Object.getOwnPropertySymbols) {
  1295. var g = 0
  1296. for (n = Object.getOwnPropertySymbols(t); g < n.length; g++)
  1297. e.indexOf(n[g]) < 0 &&
  1298. Object.prototype.propertyIsEnumerable.call(t, n[g]) &&
  1299. (i[n[g]] = t[n[g]])
  1300. }
  1301. return i
  1302. },
  1303. o =
  1304. (this && this.__spreadArrays) ||
  1305. function () {
  1306. for (var t = 0, e = 0, i = arguments.length; e < i; e++) t += arguments[e].length
  1307. var n = Array(t),
  1308. g = 0
  1309. for (e = 0; e < i; e++)
  1310. for (var A = arguments[e], r = 0, o = A.length; r < o; r++, g++) n[g] = A[r]
  1311. return n
  1312. },
  1313. C =
  1314. (this && this.__importDefault) ||
  1315. function (t) {
  1316. return t && t.__esModule ? t : { default: t }
  1317. }
  1318. Object.defineProperty(e, '__esModule', { value: !0 })
  1319. var I = i(2),
  1320. s = C(i(32)),
  1321. a = i(0),
  1322. l = i(3),
  1323. u = (function (t) {
  1324. function e(i) {
  1325. var n = i.minWidth,
  1326. g = void 0 === n ? 0.1 : n,
  1327. o = i.deleteWidth,
  1328. C = void 0 === o ? 0.05 : o,
  1329. I = i.show,
  1330. a = void 0 === I || I,
  1331. l = r(i, ['minWidth', 'deleteWidth', 'show']),
  1332. u = t.call(this, A(A({}, l), { show: a })) || this
  1333. return (
  1334. (u.zIndex = 1),
  1335. (u.linePoints = u.linePoints.map(function (t) {
  1336. var e = new s.default(A(A({}, t), { renderer: u.renderer }), u.attachment)
  1337. return (
  1338. (e.click = function () {
  1339. return u.changeSelect(!0)
  1340. }),
  1341. e
  1342. )
  1343. })),
  1344. (u.minWidth = g),
  1345. (u.deleteWidth = C),
  1346. u.real.setAttribute('class', 'variable'),
  1347. e.attaArch.get(u.attachment)
  1348. ? e.attaArch.get(u.attachment).push(u)
  1349. : e.attaArch.set(u.attachment, [u]),
  1350. u.attachment.update(),
  1351. u
  1352. )
  1353. }
  1354. return (
  1355. g(e, t),
  1356. (e.prototype.setAttachment = function (t) {
  1357. if (
  1358. (void 0 === t && (t = this.attachment),
  1359. console.error('set new attach'),
  1360. this.attachment !== t)
  1361. ) {
  1362. var i = e.attaArch.get(this.attachment),
  1363. n = e.attaArch.get(t) || e.attaArch.set(t, []).get(t)
  1364. i.splice(i.indexOf(this), 1),
  1365. n.push(this),
  1366. this.linePoints.forEach(function (e) {
  1367. e.line = t
  1368. }),
  1369. (this.attachment = t)
  1370. }
  1371. }),
  1372. (e.prototype.checkPointBorder = function (t, e) {
  1373. return (
  1374. void 0 === e && (e = this.attachment),
  1375. a.lineDis({ points: [e.points[0], t] }) < 0.08 ||
  1376. a.lineDis({ points: [e.points[1], t] }) < 0.08 ||
  1377. void 0
  1378. )
  1379. }),
  1380. (e.prototype.checkPoint = function (t, e) {
  1381. return void 0 === e && (e = this.attachment), !a.isContainPoint(e, t)
  1382. }),
  1383. (e.prototype.checkWidth = function (t) {
  1384. return void 0 === t && (t = this.linePoints), a.lineDis({ points: t }) < this.minWidth
  1385. }),
  1386. (e.prototype.checkPointOverlapAttaArch = function (t) {
  1387. return (
  1388. void 0 === t && (t = e.attaArch.get(this.attachment)),
  1389. !(t.length <= 1) &&
  1390. t.some(function (e) {
  1391. return t.some(function (t) {
  1392. return (
  1393. e !== t &&
  1394. (a.isContainPoint({ points: t.linePoints }, e.linePoints[0]) ||
  1395. a.isContainPoint({ points: t.linePoints }, e.linePoints[1]))
  1396. )
  1397. })
  1398. })
  1399. )
  1400. }),
  1401. (e.prototype.checkLineAllPoint = function (t, i) {
  1402. return (
  1403. void 0 === t && (t = e.attaArch.get(this.attachment)),
  1404. void 0 === i && (i = this.attachment),
  1405. 0 !== t.length &&
  1406. t.some(function (t) {
  1407. return (
  1408. !a.isContainPoint(i, t.linePoints[0]) || !a.isContainPoint(i, t.linePoints[1])
  1409. )
  1410. })
  1411. )
  1412. }),
  1413. (e.prototype.getLineNewAll = function (t, i) {
  1414. void 0 === t && (t = this.linePoints), void 0 === i && (i = this)
  1415. var n = o(e.attaArch.get(this.attachment))
  1416. return n.splice(n.indexOf(i), 1, { linePoints: t }), n
  1417. }),
  1418. (e.prototype.qualified = function (t, e) {
  1419. return (
  1420. void 0 === t && (t = this.linePoints),
  1421. void 0 === e && (e = this.attachment),
  1422. !(
  1423. this.checkPointBorder(t[0], e) ||
  1424. this.checkPointBorder(t[0], e) ||
  1425. this.checkPoint(t[0], e) ||
  1426. this.checkPoint(t[1], e) ||
  1427. this.checkWidth(t)
  1428. )
  1429. )
  1430. }),
  1431. (e.prototype.lineChange = function (t, e) {
  1432. var i = this
  1433. void 0 === t && (t = this.attachment.points[0]), void 0 === e && (e = t)
  1434. var n = e.x,
  1435. g = e.y,
  1436. r = this.attachment.points.findIndex(function (e) {
  1437. return e === t
  1438. }),
  1439. o = {
  1440. points:
  1441. 0 === r
  1442. ? [{ x: n, y: g }, this.attachment.points[1]]
  1443. : [this.attachment.points[0], { x: n, y: g }]
  1444. },
  1445. C = a.lineDis({ points: [o.points[r], this.linePoints[0]] }),
  1446. I = a.getDisPointLinePoints(o, o.points[r], C),
  1447. l = I[0],
  1448. u = I[1],
  1449. c =
  1450. a.lineDis({ points: [l, this.linePoints[0]] }) >
  1451. a.lineDis({ points: [u, this.linePoints[0]] })
  1452. ? u
  1453. : l,
  1454. h = a.lineDis({ points: [o.points[r], this.linePoints[1]] }),
  1455. p = a.getDisPointLinePoints(o, o.points[r], h),
  1456. d = p[0],
  1457. f = p[1],
  1458. y =
  1459. a.lineDis({ points: [d, this.linePoints[1]] }) >
  1460. a.lineDis({ points: [f, this.linePoints[1]] })
  1461. ? f
  1462. : d,
  1463. v = (
  1464. a.lineDis({ points: [this.linePoints[0], c] }) <
  1465. a.lineDis({ points: [this.linePoints[0], y] })
  1466. ? [c, y]
  1467. : [y, c]
  1468. ).map(function (t) {
  1469. var e = s.default.prototype.getLineInsertPoint.call(
  1470. A(A({}, i.linePoints[0]), { line: o }),
  1471. t
  1472. )
  1473. return a.pointLineDis(i.attachment, e) > 0.1
  1474. ? a.lineDis({ points: [i.attachment.points[0], e] }) <
  1475. a.lineDis({ points: [i.attachment.points[1], e] })
  1476. ? { x: i.attachment.points[0].x, y: i.attachment.points[0].y }
  1477. : { x: i.attachment.points[1].x, y: i.attachment.points[1].y }
  1478. : e
  1479. })
  1480. return { line: o, points: v }
  1481. }),
  1482. (e.prototype.pointChange = function (t, e) {
  1483. var i = e.x,
  1484. n = e.y
  1485. return 0 ===
  1486. this.linePoints.findIndex(function (e) {
  1487. return e === t
  1488. })
  1489. ? [{ x: i, y: n }, this.linePoints[1]]
  1490. : [this.linePoints[0], { x: i, y: n }]
  1491. }),
  1492. (e.prototype.lineChangeCheck = function (t, e, i) {
  1493. return (
  1494. this.qualified(t, e) &&
  1495. !this.checkLineAllPoint(i, e) &&
  1496. !this.checkPointOverlapAttaArch(i)
  1497. )
  1498. }),
  1499. (e.prototype.intercept = function (t, i, n) {
  1500. var g,
  1501. A = this,
  1502. r = i.x,
  1503. o = i.y
  1504. if (l.type.isUndefined(r) || l.type.isUndefined(o)) return !0
  1505. if (
  1506. (g = this.attachment.points.find(function (e) {
  1507. return t.some(function (t) {
  1508. return t === e
  1509. })
  1510. }))
  1511. ) {
  1512. var C = this.lineChange(g, { x: r, y: o }),
  1513. I = C.points,
  1514. s =
  1515. (C.line,
  1516. t.filter(function (t) {
  1517. return t instanceof e && t.attachment.id === A.attachment.id
  1518. }))
  1519. return (
  1520. (s = Array.from(new Set(s))),
  1521. this.attachment.nextTick(function () {
  1522. if (!A.attachment || !A.attachment.points) return A.destroy()
  1523. var t = A.lineChange(g, { x: g.x, y: g.y }),
  1524. e = t.points
  1525. t.line
  1526. e.forEach(function (t, e) {
  1527. t && ((A.linePoints[e].x = t.x), (A.linePoints[e].y = t.y))
  1528. }),
  1529. A.nextTick(function () {
  1530. A.linePoints &&
  1531. A.linePoints.length &&
  1532. a.lineDis({ points: A.linePoints }) <= A.deleteWidth &&
  1533. A.destroy()
  1534. })
  1535. }),
  1536. this.attachment.update(),
  1537. { __points: I }
  1538. )
  1539. }
  1540. t.findIndex(function (t) {
  1541. return A.linePoints.some(function (e) {
  1542. return e === t
  1543. })
  1544. })
  1545. }),
  1546. (e.prototype.dragEnd = function () {
  1547. var t = this
  1548. this.nextTick(function () {
  1549. a.lineDis({ points: t.linePoints }) <= t.deleteWidth && t.destroy()
  1550. })
  1551. }),
  1552. (e.prototype.destroy = function () {
  1553. var i = e.attaArch.get(this.attachment)
  1554. i &&
  1555. (i.splice(i.indexOf(this), 1),
  1556. console.log(this.linePoints[0], this),
  1557. this.linePoints[0] && this.linePoints[0].destroy && this.linePoints[0].destroy(),
  1558. this.linePoints[1] && this.linePoints[1].destroy && this.linePoints[1].destroy(),
  1559. (this.attachment = null),
  1560. (this.linePoints = null),
  1561. (this.update = null),
  1562. t.prototype.destroy.call(this),
  1563. this.attachment.update())
  1564. }),
  1565. (e.attaArch = new Map()),
  1566. e
  1567. )
  1568. })(I.CADElement)
  1569. e.default = u
  1570. },
  1571. function (t, e, i) {
  1572. var n,
  1573. g =
  1574. (this && this.__extends) ||
  1575. ((n = function (t, e) {
  1576. return (n =
  1577. Object.setPrototypeOf ||
  1578. ({ __proto__: [] } instanceof Array &&
  1579. function (t, e) {
  1580. t.__proto__ = e
  1581. }) ||
  1582. function (t, e) {
  1583. for (var i in e) e.hasOwnProperty(i) && (t[i] = e[i])
  1584. })(t, e)
  1585. }),
  1586. function (t, e) {
  1587. function i() {
  1588. this.constructor = t
  1589. }
  1590. n(t, e),
  1591. (t.prototype = null === e ? Object.create(e) : ((i.prototype = e.prototype), new i()))
  1592. }),
  1593. A =
  1594. (this && this.__assign) ||
  1595. function () {
  1596. return (A =
  1597. Object.assign ||
  1598. function (t) {
  1599. for (var e, i = 1, n = arguments.length; i < n; i++)
  1600. for (var g in (e = arguments[i]))
  1601. Object.prototype.hasOwnProperty.call(e, g) && (t[g] = e[g])
  1602. return t
  1603. }).apply(this, arguments)
  1604. },
  1605. r =
  1606. (this && this.__awaiter) ||
  1607. function (t, e, i, n) {
  1608. return new (i || (i = Promise))(function (g, A) {
  1609. function r(t) {
  1610. try {
  1611. C(n.next(t))
  1612. } catch (t) {
  1613. A(t)
  1614. }
  1615. }
  1616. function o(t) {
  1617. try {
  1618. C(n.throw(t))
  1619. } catch (t) {
  1620. A(t)
  1621. }
  1622. }
  1623. function C(t) {
  1624. var e
  1625. t.done
  1626. ? g(t.value)
  1627. : ((e = t.value),
  1628. e instanceof i
  1629. ? e
  1630. : new i(function (t) {
  1631. t(e)
  1632. })).then(r, o)
  1633. }
  1634. C((n = n.apply(t, e || [])).next())
  1635. })
  1636. },
  1637. o =
  1638. (this && this.__generator) ||
  1639. function (t, e) {
  1640. var i,
  1641. n,
  1642. g,
  1643. A,
  1644. r = {
  1645. label: 0,
  1646. sent: function () {
  1647. if (1 & g[0]) throw g[1]
  1648. return g[1]
  1649. },
  1650. trys: [],
  1651. ops: []
  1652. }
  1653. return (
  1654. (A = { next: o(0), throw: o(1), return: o(2) }),
  1655. 'function' == typeof Symbol &&
  1656. (A[Symbol.iterator] = function () {
  1657. return this
  1658. }),
  1659. A
  1660. )
  1661. function o(A) {
  1662. return function (o) {
  1663. return (function (A) {
  1664. if (i) throw new TypeError('Generator is already executing.')
  1665. for (; r; )
  1666. try {
  1667. if (
  1668. ((i = 1),
  1669. n &&
  1670. (g =
  1671. 2 & A[0]
  1672. ? n.return
  1673. : A[0]
  1674. ? n.throw || ((g = n.return) && g.call(n), 0)
  1675. : n.next) &&
  1676. !(g = g.call(n, A[1])).done)
  1677. )
  1678. return g
  1679. switch (((n = 0), g && (A = [2 & A[0], g.value]), A[0])) {
  1680. case 0:
  1681. case 1:
  1682. g = A
  1683. break
  1684. case 4:
  1685. return r.label++, { value: A[1], done: !1 }
  1686. case 5:
  1687. r.label++, (n = A[1]), (A = [0])
  1688. continue
  1689. case 7:
  1690. ;(A = r.ops.pop()), r.trys.pop()
  1691. continue
  1692. default:
  1693. if (
  1694. !(g = (g = r.trys).length > 0 && g[g.length - 1]) &&
  1695. (6 === A[0] || 2 === A[0])
  1696. ) {
  1697. r = 0
  1698. continue
  1699. }
  1700. if (3 === A[0] && (!g || (A[1] > g[0] && A[1] < g[3]))) {
  1701. r.label = A[1]
  1702. break
  1703. }
  1704. if (6 === A[0] && r.label < g[1]) {
  1705. ;(r.label = g[1]), (g = A)
  1706. break
  1707. }
  1708. if (g && r.label < g[2]) {
  1709. ;(r.label = g[2]), r.ops.push(A)
  1710. break
  1711. }
  1712. g[2] && r.ops.pop(), r.trys.pop()
  1713. continue
  1714. }
  1715. A = e.call(t, r)
  1716. } catch (t) {
  1717. ;(A = [6, t]), (n = 0)
  1718. } finally {
  1719. i = g = 0
  1720. }
  1721. if (5 & A[0]) throw A[1]
  1722. return { value: A[0] ? A[1] : void 0, done: !0 }
  1723. })([A, o])
  1724. }
  1725. }
  1726. },
  1727. C =
  1728. (this && this.__rest) ||
  1729. function (t, e) {
  1730. var i = {}
  1731. for (var n in t)
  1732. Object.prototype.hasOwnProperty.call(t, n) && e.indexOf(n) < 0 && (i[n] = t[n])
  1733. if (null != t && 'function' == typeof Object.getOwnPropertySymbols) {
  1734. var g = 0
  1735. for (n = Object.getOwnPropertySymbols(t); g < n.length; g++)
  1736. e.indexOf(n[g]) < 0 &&
  1737. Object.prototype.propertyIsEnumerable.call(t, n[g]) &&
  1738. (i[n[g]] = t[n[g]])
  1739. }
  1740. return i
  1741. },
  1742. I =
  1743. (this && this.__spreadArrays) ||
  1744. function () {
  1745. for (var t = 0, e = 0, i = arguments.length; e < i; e++) t += arguments[e].length
  1746. var n = Array(t),
  1747. g = 0
  1748. for (e = 0; e < i; e++)
  1749. for (var A = arguments[e], r = 0, o = A.length; r < o; r++, g++) n[g] = A[r]
  1750. return n
  1751. },
  1752. s =
  1753. (this && this.__importDefault) ||
  1754. function (t) {
  1755. return t && t.__esModule ? t : { default: t }
  1756. }
  1757. Object.defineProperty(e, '__esModule', { value: !0 })
  1758. var a = s(i(6)),
  1759. l = i(3),
  1760. u = i(0),
  1761. c = (function (t) {
  1762. function e(i) {
  1763. var n = i.hover,
  1764. g = C(i, ['hover']),
  1765. A = this
  1766. if (!g.renderer) throw g
  1767. return (
  1768. n ||
  1769. (n = {
  1770. fillColor: e.Setting.get(g.renderer).fillColor,
  1771. storkeColor: e.Setting.get(g.renderer).storkeColor
  1772. }),
  1773. ((A = t.call(this, g) || this).hover = n),
  1774. (A.hover.r = A.hover.r || A.init.r),
  1775. A.real.setAttribute('class', 'variable'),
  1776. (A.adopt = !1),
  1777. (A.disable = !1),
  1778. (A.zIndex = 2),
  1779. A
  1780. )
  1781. }
  1782. return (
  1783. g(e, t),
  1784. (e.prototype.setHoverStyle = function () {
  1785. ;(this.fillColor = this.hover.fillColor),
  1786. (this.strokeWidth = this.hover.r),
  1787. (this.storkeColor = this.hover.storkeColor)
  1788. }),
  1789. (e.prototype.setUnHoverStyle = function () {
  1790. ;(this.fillColor = this.init.fillColor),
  1791. (this.strokeWidth = this.init.strokeWidth),
  1792. (this.storkeColor = this.init.storkeColor)
  1793. }),
  1794. (e.prototype.dragStart = function () {
  1795. this.dragStartPoint = { x: this.x, y: this.y }
  1796. }),
  1797. (e.prototype.drag = function (t) {
  1798. if (this.disable || (0 === t.x && 0 === t.y)) return !1
  1799. ;(this.x = this.dragStartPoint.x + t.x * this.multiple),
  1800. (this.y = this.dragStartPoint.y + t.y * this.multiple)
  1801. }),
  1802. (e.prototype.update = function () {
  1803. var e = this
  1804. t.prototype.update.call(this),
  1805. this.renderer.processing.lines
  1806. .filter(function (t) {
  1807. return ~t.ele.points.indexOf(e)
  1808. })
  1809. .map(function (t) {
  1810. return t.ele
  1811. })
  1812. .forEach(function (t) {
  1813. t.showAngle = e.hover && e.fillColor === e.hover.fillColor
  1814. })
  1815. }),
  1816. (e.prototype.intercept = function (t, e, i) {
  1817. var n = this,
  1818. g = e.x,
  1819. r = e.y
  1820. e.select
  1821. if (l.type.isUndefined(g) || l.type.isUndefined(r)) return !0
  1822. if (this.dragStartPoint) {
  1823. for (
  1824. var o,
  1825. C = { x: g, y: r },
  1826. s = this.renderer.processing.lines.map(function (t) {
  1827. return t.ele
  1828. }),
  1829. a = s
  1830. .filter(function (t) {
  1831. return ~t.points.indexOf(n)
  1832. })
  1833. .map(function (t) {
  1834. var e = t.points.indexOf(n),
  1835. i = Number(!e),
  1836. g = s.filter(function (e) {
  1837. return ~e.points.indexOf(t.points[i]) && t !== e
  1838. }),
  1839. A = I(t.points)
  1840. return (A[e] = C), I([{ points: A }], g)
  1841. }),
  1842. c = function (t) {
  1843. var e = a[t]
  1844. if (e.length < 2) return 'continue'
  1845. var i = e.slice(1).map(function (t) {
  1846. var i = u.getAngle(e[0], t)
  1847. return i > 90 && (i = 180 - i), { line: t, angle: u.getAngle(e[0], t) }
  1848. }),
  1849. n = i
  1850. .map(function (t) {
  1851. return A(A({}, t), { angle: t.angle > 90 ? 180 - t.angle : t.angle })
  1852. })
  1853. .sort(function (t, e) {
  1854. return t.angle - e.angle
  1855. })
  1856. if (n[0].angle <= 5) {
  1857. var g = n[0].line
  1858. o = u.getLinePoint(g, o || C)
  1859. }
  1860. var r = i.find(function (t) {
  1861. var e = t.angle
  1862. return e > 85 && e < 95 && 90 !== e
  1863. })
  1864. r &&
  1865. (o = u.getVectorPosPoint(
  1866. u.verticalLine(r.line),
  1867. r.line.points.find(function (t) {
  1868. return ~e[0].points.indexOf(t)
  1869. }),
  1870. o || C
  1871. ))
  1872. },
  1873. h = 0;
  1874. h < a.length;
  1875. h++
  1876. )
  1877. c(h)
  1878. return o
  1879. }
  1880. }),
  1881. (e.prototype.dragEnd = function () {
  1882. return r(this, void 0, void 0, function () {
  1883. var t,
  1884. e,
  1885. n,
  1886. g,
  1887. A,
  1888. r,
  1889. C = this
  1890. return o(this, function (o) {
  1891. switch (o.label) {
  1892. case 0:
  1893. return (
  1894. delete this.dragStartPoint,
  1895. (t = i(4).default),
  1896. (e = this).stopDragEnd || e.dragEnding
  1897. ? [2]
  1898. : ((e.dragEnding = !0),
  1899. (n =
  1900. e.__join_lines &&
  1901. e.__join_lines.find(function (e) {
  1902. return !(
  1903. u.lineDis({ points: e.points }) > 0.1 ||
  1904. (t.attaArch.get(e) && t.attaArch.get(e).length)
  1905. )
  1906. }))
  1907. ? [4, n.judgeMerge()]
  1908. : [3, 4])
  1909. )
  1910. case 1:
  1911. return (g = o.sent())
  1912. ? [
  1913. 4,
  1914. new Promise(function (t) {
  1915. ;(g.adopt = !1),
  1916. n.nextTick(function () {
  1917. g.nextTick(function () {
  1918. n.destroy(), n.destoryPoint(g), t()
  1919. })
  1920. })
  1921. })
  1922. ]
  1923. : [3, 3]
  1924. case 2:
  1925. o.sent(), (o.label = 3)
  1926. case 3:
  1927. return [3, 8]
  1928. case 4:
  1929. ;(A = this.renderer.processing.lines
  1930. .map(function (t) {
  1931. return t.ele
  1932. })
  1933. .filter(function (t) {
  1934. return ~t.points.indexOf(C)
  1935. })),
  1936. (r = 0),
  1937. (o.label = 5)
  1938. case 5:
  1939. return r < A.length ? [4, A[r].judgePoint()] : [3, 8]
  1940. case 6:
  1941. o.sent(), (o.label = 7)
  1942. case 7:
  1943. return r++, [3, 5]
  1944. case 8:
  1945. return (e.dragEnding = !1), this.renderer.processing.depLines(), [2]
  1946. }
  1947. })
  1948. })
  1949. }),
  1950. (e.Setting = new Map()),
  1951. e
  1952. )
  1953. })(a.default)
  1954. e.default = c
  1955. },
  1956. function (t, e, i) {
  1957. var n,
  1958. g =
  1959. (this && this.__extends) ||
  1960. ((n = function (t, e) {
  1961. return (n =
  1962. Object.setPrototypeOf ||
  1963. ({ __proto__: [] } instanceof Array &&
  1964. function (t, e) {
  1965. t.__proto__ = e
  1966. }) ||
  1967. function (t, e) {
  1968. for (var i in e) e.hasOwnProperty(i) && (t[i] = e[i])
  1969. })(t, e)
  1970. }),
  1971. function (t, e) {
  1972. function i() {
  1973. this.constructor = t
  1974. }
  1975. n(t, e),
  1976. (t.prototype = null === e ? Object.create(e) : ((i.prototype = e.prototype), new i()))
  1977. }),
  1978. A =
  1979. (this && this.__assign) ||
  1980. function () {
  1981. return (A =
  1982. Object.assign ||
  1983. function (t) {
  1984. for (var e, i = 1, n = arguments.length; i < n; i++)
  1985. for (var g in (e = arguments[i]))
  1986. Object.prototype.hasOwnProperty.call(e, g) && (t[g] = e[g])
  1987. return t
  1988. }).apply(this, arguments)
  1989. },
  1990. r =
  1991. (this && this.__rest) ||
  1992. function (t, e) {
  1993. var i = {}
  1994. for (var n in t)
  1995. Object.prototype.hasOwnProperty.call(t, n) && e.indexOf(n) < 0 && (i[n] = t[n])
  1996. if (null != t && 'function' == typeof Object.getOwnPropertySymbols) {
  1997. var g = 0
  1998. for (n = Object.getOwnPropertySymbols(t); g < n.length; g++)
  1999. e.indexOf(n[g]) < 0 &&
  2000. Object.prototype.propertyIsEnumerable.call(t, n[g]) &&
  2001. (i[n[g]] = t[n[g]])
  2002. }
  2003. return i
  2004. }
  2005. Object.defineProperty(e, '__esModule', { value: !0 })
  2006. var o = i(2),
  2007. C = i(1),
  2008. I = 1,
  2009. s = (function (t) {
  2010. function e(i) {
  2011. var n = i.strokeWidth,
  2012. g = void 0 === n ? 0 : n,
  2013. o = i.r,
  2014. C = void 0 === o ? 4 : o,
  2015. I = i.r1,
  2016. s = void 0 === I ? 4 : I,
  2017. a = i.fillColor,
  2018. l = i.storkeColor,
  2019. u = r(i, ['strokeWidth', 'r', 'r1', 'fillColor', 'storkeColor']),
  2020. c = this
  2021. return (
  2022. (a = a || e.Setting.get(u.renderer).fillColor),
  2023. (l = l || e.Setting.get(u.renderer).storkeColor),
  2024. ((c =
  2025. t.call(this, A({ storkeColor: l, fillColor: a, r: C, r1: s, strokeWidth: g }, u)) ||
  2026. this).init = { strokeWidth: g, r: C, r1: s, fillColor: a, storkeColor: l }),
  2027. c.update(),
  2028. c
  2029. )
  2030. }
  2031. return (
  2032. g(e, t),
  2033. (e.prototype.grentNode = function () {
  2034. var t = document.createElementNS(C.SVGURI, 'ellipse')
  2035. return t.setAttribute('_id', (I++).toString()), t
  2036. }),
  2037. (e.prototype.update = function () {
  2038. var t = this.r * this.multiple,
  2039. e = this.r1 * this.multiple,
  2040. i = this.strokeWidth * this.multiple
  2041. try {
  2042. this.real.setAttribute('cx', this.x.toString()),
  2043. this.real.setAttribute('cy', this.y.toString()),
  2044. this.real.setAttribute('fill', this.fillColor),
  2045. this.real.setAttribute('rx', t.toString()),
  2046. this.real.setAttribute('ry', e.toString()),
  2047. this.real.setAttribute('stroke-width', i.toString()),
  2048. this.real.setAttribute('stroke', this.storkeColor)
  2049. } catch (t) {
  2050. console.error(this.x)
  2051. }
  2052. }),
  2053. (e.prototype.destroy = function () {
  2054. t.prototype.destroy.call(this)
  2055. }),
  2056. (e.fillColor = 'rgb(0, 200, 175)'),
  2057. (e.storkeColor = 'green'),
  2058. (e.Setting = new Map()),
  2059. e
  2060. )
  2061. })(o.CADElement)
  2062. e.default = s
  2063. },
  2064. function (t, e, i) {
  2065. var n,
  2066. g =
  2067. (this && this.__extends) ||
  2068. ((n = function (t, e) {
  2069. return (n =
  2070. Object.setPrototypeOf ||
  2071. ({ __proto__: [] } instanceof Array &&
  2072. function (t, e) {
  2073. t.__proto__ = e
  2074. }) ||
  2075. function (t, e) {
  2076. for (var i in e) e.hasOwnProperty(i) && (t[i] = e[i])
  2077. })(t, e)
  2078. }),
  2079. function (t, e) {
  2080. function i() {
  2081. this.constructor = t
  2082. }
  2083. n(t, e),
  2084. (t.prototype = null === e ? Object.create(e) : ((i.prototype = e.prototype), new i()))
  2085. }),
  2086. A =
  2087. (this && this.__assign) ||
  2088. function () {
  2089. return (A =
  2090. Object.assign ||
  2091. function (t) {
  2092. for (var e, i = 1, n = arguments.length; i < n; i++)
  2093. for (var g in (e = arguments[i]))
  2094. Object.prototype.hasOwnProperty.call(e, g) && (t[g] = e[g])
  2095. return t
  2096. }).apply(this, arguments)
  2097. },
  2098. r =
  2099. (this && this.__rest) ||
  2100. function (t, e) {
  2101. var i = {}
  2102. for (var n in t)
  2103. Object.prototype.hasOwnProperty.call(t, n) && e.indexOf(n) < 0 && (i[n] = t[n])
  2104. if (null != t && 'function' == typeof Object.getOwnPropertySymbols) {
  2105. var g = 0
  2106. for (n = Object.getOwnPropertySymbols(t); g < n.length; g++)
  2107. e.indexOf(n[g]) < 0 &&
  2108. Object.prototype.propertyIsEnumerable.call(t, n[g]) &&
  2109. (i[n[g]] = t[n[g]])
  2110. }
  2111. return i
  2112. },
  2113. o =
  2114. (this && this.__spreadArrays) ||
  2115. function () {
  2116. for (var t = 0, e = 0, i = arguments.length; e < i; e++) t += arguments[e].length
  2117. var n = Array(t),
  2118. g = 0
  2119. for (e = 0; e < i; e++)
  2120. for (var A = arguments[e], r = 0, o = A.length; r < o; r++, g++) n[g] = A[r]
  2121. return n
  2122. },
  2123. C =
  2124. (this && this.__importDefault) ||
  2125. function (t) {
  2126. return t && t.__esModule ? t : { default: t }
  2127. }
  2128. Object.defineProperty(e, '__esModule', { value: !0 })
  2129. var I = i(1),
  2130. s = C(i(5)),
  2131. a = i(2),
  2132. l = C(i(4)),
  2133. u = i(3),
  2134. c = i(0),
  2135. h = (function (t) {
  2136. function e(e) {
  2137. var i = e.points,
  2138. n = e.fill,
  2139. g = void 0 === n ? 'rgba(0,0,0,0)' : n,
  2140. o = e.stroke,
  2141. C = void 0 === o ? 'rgba(255,255,255,0.5)' : o,
  2142. I = e.width,
  2143. a = void 0 === I ? 1 : I,
  2144. l = e.hover,
  2145. u = r(e, ['points', 'fill', 'stroke', 'width', 'hover']),
  2146. h = this,
  2147. p = [i[0], i[1]],
  2148. d = i.slice(2).map(function (t) {
  2149. return new s.default(A(A({}, t), { renderer: u.renderer }))
  2150. }),
  2151. f = { fill: g, stroke: C, width: a }
  2152. return (
  2153. (l =
  2154. l ||
  2155. A(A({}, f), {
  2156. fill: 'rgba(243, 255, 0, 0.8)',
  2157. strokeBorder: 'rgba(243, 255, 0, 0.8)'
  2158. })),
  2159. ((h =
  2160. t.call(this, A(A({ linePoints: p, hover: l, otherPoints: d }, f), u)) ||
  2161. this).points = h.linePoints.concat(h.otherPoints)),
  2162. (h.selectLineIndex = -1),
  2163. (h.init = f),
  2164. (h.cacheVers = [
  2165. c.lineVector({ points: [h.points[1], h.points[2]] }),
  2166. c.lineVector({ points: [h.points[0], h.points[3]] })
  2167. ]),
  2168. (h.__enterHandle = function () {
  2169. h.hasTriggerEvent() ||
  2170. (~h.selectLineIndex && !h.select) ||
  2171. Object.keys(h.hover).forEach(function (t) {
  2172. return (h[t] = h.hover[t])
  2173. })
  2174. }),
  2175. (h.__leaveHandle = function () {
  2176. h.hasTriggerEvent() ||
  2177. h.select ||
  2178. Object.keys(h.init).forEach(function (t) {
  2179. return (h[t] = h.init[t])
  2180. })
  2181. }),
  2182. (h.__lineEnter = function (t) {
  2183. h.hasTriggerEvent() ||
  2184. ~h.selectLineIndex ||
  2185. h.__draging ||
  2186. ((h.selectLineIndex = h.lines.indexOf(t.target)), h.update())
  2187. }),
  2188. (h.__lineLeave = function (t) {
  2189. h.hasTriggerEvent() || h.__draging || ((h.selectLineIndex = -1), h.update())
  2190. }),
  2191. (h.__lineClick = function (t) {
  2192. return t.stopPropagation()
  2193. }),
  2194. h
  2195. )
  2196. }
  2197. return (
  2198. g(e, t),
  2199. (e.prototype.updateFirstLinePoints = function () {
  2200. this.firstLinePoints = this.attachment.points.map(function (t) {
  2201. return { x: t.x, y: t.y }
  2202. })
  2203. }),
  2204. (e.prototype.grentNode = function () {
  2205. var t = this,
  2206. e = document.createElementNS(I.SVGURI, 'g')
  2207. return (
  2208. (this.wrapPath = document.createElementNS(I.SVGURI, 'path')),
  2209. (this.leftLine = document.createElementNS(I.SVGURI, 'path')),
  2210. (this.rightLine = document.createElementNS(I.SVGURI, 'path')),
  2211. (this.bottomLeft = document.createElementNS(I.SVGURI, 'path')),
  2212. (this.topLine = document.createElementNS(I.SVGURI, 'path')),
  2213. (this.overLine1 = document.createElementNS(I.SVGURI, 'path')),
  2214. (this.overLine2 = document.createElementNS(I.SVGURI, 'path')),
  2215. (this.lines = [
  2216. this.leftLine,
  2217. this.rightLine,
  2218. this.topLine,
  2219. this.overLine1,
  2220. this.overLine2,
  2221. this.bottomLeft
  2222. ]),
  2223. this.wrapPath.setAttribute('stroke', 'rgba(0,0,0,0)'),
  2224. this.nextTick(function () {
  2225. ;(t.points = t.linePoints.concat(t.otherPoints)),
  2226. t.addEvent(),
  2227. t.updateThickness(),
  2228. t.updateFirstLinePoints()
  2229. }),
  2230. e.appendChild(this.overLine1),
  2231. e.appendChild(this.overLine2),
  2232. e.appendChild(this.wrapPath),
  2233. e.appendChild(this.leftLine),
  2234. e.appendChild(this.topLine),
  2235. e.appendChild(this.rightLine),
  2236. e.appendChild(this.bottomLeft),
  2237. e
  2238. )
  2239. }),
  2240. (e.prototype.update = function () {
  2241. var t = this
  2242. if (this.points) {
  2243. var e = this.width * this.multiple
  2244. this.lines.forEach(function (i) {
  2245. i.setAttribute('stroke-width', e.toString()),
  2246. i.setAttribute('stroke-linecap', 'round'),
  2247. i.setAttribute('stroke', t.stroke)
  2248. }),
  2249. u.type.isNumber(this.hoverIndex)
  2250. ? this.lines[this.hoverIndex].setAttribute('stroke', this.hover.strokeBorder)
  2251. : (this.wrapPath.setAttribute('stroke-width', '0'),
  2252. this.wrapPath.setAttribute('fill', this.fill),
  2253. this.wrapPath.setAttribute(
  2254. 'd',
  2255. 'M ' +
  2256. this.points
  2257. .map(function (t) {
  2258. return t.x + ' ' + t.y
  2259. })
  2260. .join(' L ')
  2261. )),
  2262. isNaN(this.points[0].x) ||
  2263. (this.overLine1.setAttribute(
  2264. 'd',
  2265. 'M ' +
  2266. this.points[0].x +
  2267. ' ' +
  2268. this.points[0].y +
  2269. ' L ' +
  2270. this.points[2].x +
  2271. ' ' +
  2272. this.points[2].y
  2273. ),
  2274. this.overLine2.setAttribute(
  2275. 'd',
  2276. 'M ' +
  2277. this.points[3].x +
  2278. ' ' +
  2279. this.points[3].y +
  2280. ' L ' +
  2281. this.points[1].x +
  2282. ' ' +
  2283. this.points[1].y
  2284. ),
  2285. this.topLine.setAttribute(
  2286. 'd',
  2287. 'M ' +
  2288. this.points[3].x +
  2289. ' ' +
  2290. this.points[3].y +
  2291. ' L ' +
  2292. this.points[2].x +
  2293. ' ' +
  2294. this.points[2].y
  2295. ),
  2296. this.leftLine.setAttribute(
  2297. 'd',
  2298. 'M ' +
  2299. this.points[0].x +
  2300. ' ' +
  2301. this.points[0].y +
  2302. ' L ' +
  2303. this.points[3].x +
  2304. ' ' +
  2305. this.points[3].y
  2306. ),
  2307. this.rightLine.setAttribute(
  2308. 'd',
  2309. 'M ' +
  2310. this.points[2].x +
  2311. ' ' +
  2312. this.points[2].y +
  2313. ' L ' +
  2314. this.points[1].x +
  2315. ' ' +
  2316. this.points[1].y
  2317. ),
  2318. this.bottomLeft.setAttribute(
  2319. 'd',
  2320. 'M ' +
  2321. this.points[0].x +
  2322. ' ' +
  2323. this.points[0].y +
  2324. ' L ' +
  2325. this.points[1].x +
  2326. ' ' +
  2327. this.points[1].y
  2328. ),
  2329. ~this.selectLineIndex &&
  2330. this.lines[this.selectLineIndex].setAttribute(
  2331. 'stroke',
  2332. this.hover.strokeBorder
  2333. ),
  2334. this.attachment.update())
  2335. }
  2336. }),
  2337. (e.prototype.hasTriggerEvent = function () {
  2338. return a.CADElement.examples.get(this.renderer).some(function (t) {
  2339. return t.__draging
  2340. })
  2341. }),
  2342. (e.prototype.wallSelect = function () {
  2343. var t = this
  2344. this.select
  2345. ? Object.keys(this.hover).forEach(function (e) {
  2346. return (t[e] = t.hover[e])
  2347. })
  2348. : Object.keys(this.init).forEach(function (e) {
  2349. return (t[e] = t.init[e])
  2350. })
  2351. }),
  2352. (e.prototype.addEvent = function () {
  2353. var t = this
  2354. this.wrapPath.addEventListener('mouseenter', this.__enterHandle, !1),
  2355. this.wrapPath.addEventListener('mouseleave', this.__leaveHandle, !1),
  2356. this.lines.forEach(function (e) {
  2357. e.addEventListener('mouseenter', t.__lineEnter, !1),
  2358. e.addEventListener('mouseleave', t.__lineLeave, !1),
  2359. e.addEventListener('click', t.__lineClick, !1)
  2360. })
  2361. }),
  2362. (e.prototype.updateThickness = function (t) {
  2363. void 0 === t && (t = [this.points[0], this.points[3]]),
  2364. (this.thickness = c.lineDis({ points: t }))
  2365. }),
  2366. (e.prototype.checkPeripheral = function (t) {
  2367. return void 0 === t && (t = this.points), !0
  2368. }),
  2369. (e.prototype.getPeripheral = function (t) {
  2370. void 0 === t && (t = this.points)
  2371. var e = {
  2372. x: this.firstLinePoints[0].x - this.attachment.points[0].x,
  2373. y: this.firstLinePoints[0].y - this.attachment.points[0].y
  2374. },
  2375. i = {
  2376. x: this.firstLinePoints[1].x - this.attachment.points[1].x,
  2377. y: this.firstLinePoints[1].y - this.attachment.points[1].y
  2378. },
  2379. n = e.x || e.y ? e : i,
  2380. g = { x: t[3].x + n.x, y: t[3].y + n.y },
  2381. A = { x: t[2].x + n.x, y: t[2].y + n.y },
  2382. r = { points: [t[0], t[1]] },
  2383. C = c.getDisVerticalLinePoints(r, t[0], this.thickness).sort(function (t, e) {
  2384. return c.lineDis({ points: [t, g] }) - c.lineDis({ points: [e, g] })
  2385. })[0],
  2386. I = c.getDisVerticalLinePoints(r, t[1], this.thickness).sort(function (t, e) {
  2387. return c.lineDis({ points: [t, A] }) - c.lineDis({ points: [e, A] })
  2388. })[0],
  2389. s = c.getDisPointLinePoints({ points: [t[0], C] }, t[0], this.thickness),
  2390. a = s[0],
  2391. l = s[1]
  2392. C = c.lineDis({ points: [a, t[3]] }) > c.lineDis({ points: [l, t[3]] }) ? l : a
  2393. var u = c.getDisPointLinePoints({ points: [t[1], I] }, t[1], this.thickness),
  2394. h = u[0],
  2395. p = u[1],
  2396. d = null
  2397. return (
  2398. c.lineDis({ points: [h, t[2]] }) > c.lineDis({ points: [p, t[2]] })
  2399. ? ((I = p), (d = h))
  2400. : ((I = h), (d = p)),
  2401. Math.abs(c.lineDis({ points: [I, C] }) - c.lineDis({ points: [t[0], t[1]] })) >
  2402. 0.01 && (I = d),
  2403. ((t = o(t))[2] = I),
  2404. (t[3] = C),
  2405. this.checkPeripheral(t) ? [I, C] : []
  2406. )
  2407. }),
  2408. (e.prototype.updatePeripheral = function (t) {
  2409. void 0 === t && (t = this.points)
  2410. var e = this.getPeripheral(t)
  2411. return (
  2412. (this.points[2].x = e[0].x),
  2413. (this.points[2].y = e[0].y),
  2414. (this.points[3].x = e[1].x),
  2415. (this.points[3].y = e[1].y),
  2416. (this.readyPoints = t.slice(0, 2).concat(e)),
  2417. !0
  2418. )
  2419. }),
  2420. (e.prototype.intercept = function (e, i, n) {
  2421. var g,
  2422. r,
  2423. C,
  2424. I,
  2425. s = i.x,
  2426. a = i.y
  2427. if (u.type.isUndefined(s) || u.type.isUndefined(a)) return !0
  2428. if (!1 === (g = t.prototype.intercept.call(this, e, { x: s, y: a }, n))) return g
  2429. if (
  2430. ((r = this.points.findIndex(function (t) {
  2431. return e.some(function (e) {
  2432. return e === t
  2433. })
  2434. })),
  2435. (I = this.attachment.points.findIndex(function (t) {
  2436. return (C = e.find(function (e) {
  2437. return e === t
  2438. }))
  2439. })),
  2440. !~r && C)
  2441. ) {
  2442. ;((h = [])[this.points.indexOf(this.linePoints[0])] = g.__points[0]),
  2443. (h[this.points.indexOf(this.linePoints[1])] = g.__points[1]),
  2444. h.push(this.points[2], this.points[3]),
  2445. (this.firstLinePoints[I] = C)
  2446. var l = this.getPeripheral(h)
  2447. if (
  2448. ((this.cacheVers = [
  2449. c.lineVector({ points: [this.points[1], this.points[2]] }),
  2450. c.lineVector({ points: [this.points[0], this.points[3]] })
  2451. ]),
  2452. 0 === l.length)
  2453. )
  2454. return !1
  2455. } else {
  2456. var h = o(this.points)
  2457. if (!~r) return g
  2458. if (((h[r] = A({}, n[e.indexOf(h[r])])), !(r < 2))) {
  2459. var p,
  2460. d = void 0,
  2461. f = void 0,
  2462. y = void 0,
  2463. v = void 0,
  2464. m = void 0
  2465. 2 === r
  2466. ? ((d = { points: [this.points[1], this.points[2]] }),
  2467. (f = { points: [this.points[0], this.points[3]] }),
  2468. (p = this.points[2]),
  2469. (y = 2),
  2470. (v = 3),
  2471. (m = this.cacheVers[1]))
  2472. : ((f = { points: [this.points[1], this.points[2]] }),
  2473. (d = { points: [this.points[0], this.points[3]] }),
  2474. (p = this.points[3]),
  2475. (y = 3),
  2476. (v = 2),
  2477. (m = d),
  2478. (m = this.cacheVers[0]))
  2479. var b = c.lineVector(d)
  2480. if (b.x - m.x < 0.01 && b.y - m.y < 0.01) {
  2481. var x = c.getLinePoint(d, { x: s, y: a }),
  2482. _ = c.getLinePoint(f, { x: s, y: a }),
  2483. w = f.points[1].x + s - p.x,
  2484. P = f.points[1].y + a - p.y,
  2485. O = c.getLinePoint(f, { x: w, y: P }),
  2486. S =
  2487. Math.abs(this.moveLineDis - c.lineDis({ points: [x, _] })) >
  2488. Math.abs(this.moveLineDis - c.lineDis({ points: [x, O] }))
  2489. ? O
  2490. : _
  2491. ;(h[y] = x), (h[v] = S)
  2492. }
  2493. return (this.readyPoints = h), !0
  2494. }
  2495. if (!this.updatePeripheral(h)) return !1
  2496. }
  2497. return g
  2498. }),
  2499. (e.prototype.dragStart = function (t) {
  2500. var e = this.lines.indexOf(t.target)
  2501. ;(this.__index = e < 3 ? e : -1),
  2502. (this.__startPoints = this.points.map(function (t) {
  2503. return { x: t.x, y: t.y }
  2504. }))
  2505. }),
  2506. (e.prototype.drag = function (t) {
  2507. var e = t.x * this.multiple,
  2508. i = t.y * this.multiple,
  2509. n = ~this.__index ? [this.points[this.__index]] : this.linePoints,
  2510. g = ~this.__index ? [this.__startPoints[this.__index]] : this.__startPoints
  2511. if (this.__index < 2)
  2512. n.forEach(function (t, n) {
  2513. ;(t.x = g[n].x + e), (t.y = g[n].y + i)
  2514. })
  2515. else {
  2516. var A = c.getLinePoint(
  2517. { points: [this.points[0], this.points[3]] },
  2518. { x: this.__startPoints[3].x + e, y: this.__startPoints[3].y + i }
  2519. ),
  2520. r = c.getLinePoint(
  2521. { points: [this.points[1], this.points[2]] },
  2522. { x: this.__startPoints[2].x + e, y: this.__startPoints[2].y + i }
  2523. )
  2524. this.checkPeripheral(
  2525. this.points
  2526. .slice(0, 2)
  2527. .map(function (t) {
  2528. return { x: t.x, y: t.y }
  2529. })
  2530. .concat([r, A])
  2531. ) &&
  2532. ((this.points[3].x = A.x),
  2533. (this.points[3].y = A.y),
  2534. (this.points[2].x = r.x),
  2535. (this.points[2].y = r.y))
  2536. }
  2537. }),
  2538. (e.prototype.dragEnd = function () {
  2539. delete this.dragStartPoints,
  2540. delete this.__index,
  2541. this.updateThickness(),
  2542. this.__leaveHandle(),
  2543. this.__lineLeave(),
  2544. t.prototype.dragEnd.call(this)
  2545. }),
  2546. (e.prototype.delEvent = function () {
  2547. var t = this
  2548. this.wrapPath.removeEventListener('mouseenter', this.__enterHandle, !1),
  2549. this.wrapPath.removeEventListener('mouseleave', this.__leaveHandle, !1),
  2550. this.lines.forEach(function (e) {
  2551. e.removeEventListener('mouseenter', t.__lineEnter, !1),
  2552. e.removeEventListener('mouseleave', t.__lineLeave, !1),
  2553. e.removeEventListener('click', t.__lineClick, !1)
  2554. })
  2555. }),
  2556. (e.prototype.destroy = function () {
  2557. this.delEvent(), t.prototype.destroy.call(this)
  2558. }),
  2559. e
  2560. )
  2561. })(l.default)
  2562. e.default = h
  2563. },
  2564. function (t, e, i) {
  2565. var n,
  2566. g =
  2567. (this && this.__extends) ||
  2568. ((n = function (t, e) {
  2569. return (n =
  2570. Object.setPrototypeOf ||
  2571. ({ __proto__: [] } instanceof Array &&
  2572. function (t, e) {
  2573. t.__proto__ = e
  2574. }) ||
  2575. function (t, e) {
  2576. for (var i in e) e.hasOwnProperty(i) && (t[i] = e[i])
  2577. })(t, e)
  2578. }),
  2579. function (t, e) {
  2580. function i() {
  2581. this.constructor = t
  2582. }
  2583. n(t, e),
  2584. (t.prototype = null === e ? Object.create(e) : ((i.prototype = e.prototype), new i()))
  2585. }),
  2586. A =
  2587. (this && this.__assign) ||
  2588. function () {
  2589. return (A =
  2590. Object.assign ||
  2591. function (t) {
  2592. for (var e, i = 1, n = arguments.length; i < n; i++)
  2593. for (var g in (e = arguments[i]))
  2594. Object.prototype.hasOwnProperty.call(e, g) && (t[g] = e[g])
  2595. return t
  2596. }).apply(this, arguments)
  2597. },
  2598. r =
  2599. (this && this.__rest) ||
  2600. function (t, e) {
  2601. var i = {}
  2602. for (var n in t)
  2603. Object.prototype.hasOwnProperty.call(t, n) && e.indexOf(n) < 0 && (i[n] = t[n])
  2604. if (null != t && 'function' == typeof Object.getOwnPropertySymbols) {
  2605. var g = 0
  2606. for (n = Object.getOwnPropertySymbols(t); g < n.length; g++)
  2607. e.indexOf(n[g]) < 0 &&
  2608. Object.prototype.propertyIsEnumerable.call(t, n[g]) &&
  2609. (i[n[g]] = t[n[g]])
  2610. }
  2611. return i
  2612. },
  2613. o =
  2614. (this && this.__importDefault) ||
  2615. function (t) {
  2616. return t && t.__esModule ? t : { default: t }
  2617. },
  2618. C =
  2619. (this && this.__importStar) ||
  2620. function (t) {
  2621. if (t && t.__esModule) return t
  2622. var e = {}
  2623. if (null != t) for (var i in t) Object.hasOwnProperty.call(t, i) && (e[i] = t[i])
  2624. return (e.default = t), e
  2625. }
  2626. Object.defineProperty(e, '__esModule', { value: !0 })
  2627. var I = i(1),
  2628. s = o(i(4)),
  2629. a = i(0),
  2630. l = { defaultIcon: C(i(34)), darkIcon: C(i(35)) },
  2631. u = (function (t) {
  2632. function e(e) {
  2633. var i = e.points,
  2634. n = e.fill,
  2635. g = void 0 === n ? 'rgba(0,0,0,0)' : n,
  2636. o = e.icon,
  2637. C = void 0 === o ? 'defaultIcon' : o,
  2638. I = e.stroke,
  2639. s = void 0 === I ? 'rgba(255,255,255,0.5)' : I,
  2640. a = e.outWidth,
  2641. l = void 0 === a ? 1 : a,
  2642. u = e.foorWidth,
  2643. c = void 0 === u ? 6 : u,
  2644. h = e.linecap,
  2645. p = void 0 === h ? 'square' : h,
  2646. d = e.foorColor,
  2647. f = void 0 === d ? 'rgba(0,0,0,0)' : d,
  2648. y = e.hover,
  2649. v = e.within,
  2650. m = void 0 === v ? 0 : v,
  2651. b = e.start,
  2652. x = void 0 !== b && b,
  2653. _ = r(e, [
  2654. 'points',
  2655. 'fill',
  2656. 'icon',
  2657. 'stroke',
  2658. 'outWidth',
  2659. 'foorWidth',
  2660. 'linecap',
  2661. 'foorColor',
  2662. 'hover',
  2663. 'within',
  2664. 'start'
  2665. ]),
  2666. w = this,
  2667. P = { fill: g, stroke: s, outWidth: l, foorWidth: c, foorColor: f, linecap: p }
  2668. return (
  2669. (y = y || A(A({}, P), { fill: 'rgba(243, 255, 0, 0.8)' })),
  2670. ((w =
  2671. t.call(this, A(A({ linePoints: i, hover: y, within: m, start: x, icon: C }, P), _)) ||
  2672. this).init = P),
  2673. (w.showStart = !0),
  2674. w
  2675. )
  2676. }
  2677. return (
  2678. g(e, t),
  2679. (e.prototype.grentNode = function () {
  2680. var t = this,
  2681. e = document.createElementNS(I.SVGURI, 'g')
  2682. return (
  2683. (this.arc = document.createElementNS(I.SVGURI, 'path')),
  2684. (this.outLine = document.createElementNS(I.SVGURI, 'path')),
  2685. (this.image = document.createElementNS(I.SVGURI, 'image')),
  2686. e.appendChild(this.outLine),
  2687. e.appendChild(this.arc),
  2688. e.appendChild(this.image),
  2689. this.nextTick(function () {
  2690. t.linePoints &&
  2691. (e.appendChild(t.linePoints[0].real), e.appendChild(t.linePoints[1].real))
  2692. }),
  2693. e
  2694. )
  2695. }),
  2696. (e.prototype.getCalcPoint = function (t) {
  2697. void 0 === t && (t = a.lineDis({ points: this.linePoints }))
  2698. var e = this.linePoints[0]
  2699. return a.getDisVectorPoints(a.verticalLine(this.attachment), e, t)[0]
  2700. }),
  2701. (e.prototype.click = function (e) {
  2702. t.prototype.click.call(this, e), console.log(this.within)
  2703. }),
  2704. (e.prototype.getDrawArgs = function () {
  2705. var t, e, i, n
  2706. 0 === this.within || 2 === this.within
  2707. ? ((i = (t = this.linePoints)[0]), (n = t[1]))
  2708. : ((n = (e = this.linePoints)[0]), (i = e[1]))
  2709. var g,
  2710. A = a.lineDis({ points: this.linePoints }),
  2711. r = a.getDisVerticalLinePoints(this.attachment, i, A),
  2712. o = r[0],
  2713. C = r[1],
  2714. I = { x: 0, y: 0 },
  2715. s = a.lineDis({ points: [o, I] }) < a.lineDis({ points: [C, I] })
  2716. return [
  2717. i,
  2718. n,
  2719. (g = 0 === this.within || 3 === this.within ? (s ? o : C) : s ? C : o),
  2720. A,
  2721. a.isClockWise([i, n, g])
  2722. ]
  2723. }),
  2724. (e.prototype.update = function () {
  2725. this.real.style.display = this.show ? 'initial' : 'none'
  2726. var t = this.getDrawArgs(),
  2727. e = t[0],
  2728. i = t[1],
  2729. n = t[2],
  2730. g = t[3],
  2731. A = t[4]
  2732. if (isNaN(n.x)) this.destroy()
  2733. else if (
  2734. ((this.ctl = [n]),
  2735. this.arc.setAttribute(
  2736. 'd',
  2737. 'M ' +
  2738. e.x +
  2739. ' ' +
  2740. e.y +
  2741. ' L ' +
  2742. n.x +
  2743. ' ' +
  2744. n.y +
  2745. ' A ' +
  2746. g +
  2747. ' ' +
  2748. g +
  2749. ' 0 0 ' +
  2750. (A ? '1' : '0') +
  2751. ' ' +
  2752. i.x +
  2753. ' ' +
  2754. i.y +
  2755. ' Z'
  2756. ),
  2757. this.arc.setAttribute('stroke-width', (this.outWidth * this.multiple).toString()),
  2758. this.arc.setAttribute('stroke', this.stroke),
  2759. this.arc.setAttribute('fill', this.fill),
  2760. this.icon !== this.firstIcon &&
  2761. ((this.image.href.baseVal = l[this.icon]), (this.firstIcon = this.icon)),
  2762. this.outLine.setAttribute('stroke', this.foorColor),
  2763. this.outLine.setAttribute('fill', this.fill),
  2764. this.outLine.setAttribute(
  2765. 'stroke-width',
  2766. (this.foorWidth * this.multiple).toString()
  2767. ),
  2768. this.outLine.setAttribute('stroke-linecap', this.linecap),
  2769. this.outLine.setAttribute(
  2770. 'd',
  2771. 'M ' +
  2772. this.linePoints[0].x +
  2773. ' ' +
  2774. this.linePoints[0].y +
  2775. ' L ' +
  2776. this.linePoints[1].x +
  2777. ' ' +
  2778. this.linePoints[1].y
  2779. ),
  2780. this.attachment.update(),
  2781. this.start && this.showStart)
  2782. ) {
  2783. var r = a.lineDis({ points: this.linePoints }),
  2784. o = a.lineStretch({ points: this.linePoints }, r / 2).points,
  2785. C = a.lineDis({ points: o })
  2786. if (isNaN(C)) return
  2787. var I = 4 * C,
  2788. s = o[1],
  2789. u = s === o[1] ? o[0] : o[1],
  2790. c = a.getDisVerticalLinePoints({ points: this.linePoints }, s, I),
  2791. h =
  2792. a.lineDis({ points: [c[0], n] }) > a.lineDis({ points: [c[1], n] }) ? c[0] : c[1],
  2793. p = a.getDisVerticalLinePoints({ points: this.linePoints }, u, I),
  2794. d =
  2795. a.lineDis({ points: [p[0], n] }) > a.lineDis({ points: [p[1], n] }) ? p[0] : p[1],
  2796. f = a.faceCenter([s, h, d, u]),
  2797. y = a.lineDeg({ points: [s, h] }) + 90
  2798. this.image.setAttribute('width', C.toString()),
  2799. this.image.setAttribute('height', I.toString()),
  2800. this.image.setAttribute('x', (f.x - C / 2).toString()),
  2801. this.image.setAttribute('y', (f.y - I / 2).toString()),
  2802. this.image.setAttribute('transform', 'rotate(' + y + ', ' + f.x + ', ' + f.y + ')'),
  2803. (this.image.style.display = 'block')
  2804. } else this.image.style.display = 'none'
  2805. }),
  2806. (e.prototype.dragStart = function (t) {
  2807. ;(this.__index =
  2808. t.target === this.linePoints[0].real
  2809. ? 0
  2810. : t.target === this.linePoints[1].real
  2811. ? 1
  2812. : -1),
  2813. (this.__startPoints = this.linePoints.map(function (t) {
  2814. return { x: t.x, y: t.y }
  2815. }))
  2816. }),
  2817. (e.prototype.drag = function (t) {
  2818. var e = this,
  2819. i = ~this.__index ? [this.linePoints[this.__index]] : this.linePoints,
  2820. n = ~this.__index ? [this.__startPoints[this.__index]] : this.__startPoints
  2821. i.forEach(function (i, g) {
  2822. ;(i.x = n[g].x + t.x * e.multiple), (i.y = n[g].y + t.y * e.multiple)
  2823. })
  2824. }),
  2825. (e.prototype.dragEnd = function () {
  2826. delete this.dragStartPoints, delete this.__index, t.prototype.dragEnd.call(this)
  2827. }),
  2828. (e.prototype.setHoverStyle = function () {
  2829. var t = this
  2830. Object.keys(this.hover).forEach(function (e) {
  2831. return (t[e] = t.hover[e])
  2832. })
  2833. }),
  2834. (e.prototype.setUnHoverStyle = function () {
  2835. var t = this
  2836. Object.keys(this.init).forEach(function (e) {
  2837. return (t[e] = t.init[e])
  2838. })
  2839. }),
  2840. e
  2841. )
  2842. })(s.default)
  2843. e.default = u
  2844. },
  2845. function (t, e, i) {
  2846. var n =
  2847. (this && this.__importDefault) ||
  2848. function (t) {
  2849. return t && t.__esModule ? t : { default: t }
  2850. }
  2851. Object.defineProperty(e, '__esModule', { value: !0 })
  2852. var g = n(i(30)),
  2853. A = {
  2854. t: function (t, e) {
  2855. for (var i = t.split('.'), n = g.default; i.length; ) n = n[i.shift()]
  2856. return n
  2857. }
  2858. }
  2859. e.i18n = A
  2860. },
  2861. function (t, e, i) {
  2862. var n,
  2863. g =
  2864. (this && this.__extends) ||
  2865. ((n = function (t, e) {
  2866. return (n =
  2867. Object.setPrototypeOf ||
  2868. ({ __proto__: [] } instanceof Array &&
  2869. function (t, e) {
  2870. t.__proto__ = e
  2871. }) ||
  2872. function (t, e) {
  2873. for (var i in e) e.hasOwnProperty(i) && (t[i] = e[i])
  2874. })(t, e)
  2875. }),
  2876. function (t, e) {
  2877. function i() {
  2878. this.constructor = t
  2879. }
  2880. n(t, e),
  2881. (t.prototype = null === e ? Object.create(e) : ((i.prototype = e.prototype), new i()))
  2882. }),
  2883. A =
  2884. (this && this.__assign) ||
  2885. function () {
  2886. return (A =
  2887. Object.assign ||
  2888. function (t) {
  2889. for (var e, i = 1, n = arguments.length; i < n; i++)
  2890. for (var g in (e = arguments[i]))
  2891. Object.prototype.hasOwnProperty.call(e, g) && (t[g] = e[g])
  2892. return t
  2893. }).apply(this, arguments)
  2894. },
  2895. r =
  2896. (this && this.__rest) ||
  2897. function (t, e) {
  2898. var i = {}
  2899. for (var n in t)
  2900. Object.prototype.hasOwnProperty.call(t, n) && e.indexOf(n) < 0 && (i[n] = t[n])
  2901. if (null != t && 'function' == typeof Object.getOwnPropertySymbols) {
  2902. var g = 0
  2903. for (n = Object.getOwnPropertySymbols(t); g < n.length; g++)
  2904. e.indexOf(n[g]) < 0 &&
  2905. Object.prototype.propertyIsEnumerable.call(t, n[g]) &&
  2906. (i[n[g]] = t[n[g]])
  2907. }
  2908. return i
  2909. }
  2910. Object.defineProperty(e, '__esModule', { value: !0 })
  2911. var o = i(2),
  2912. C = i(1),
  2913. I = (function (t) {
  2914. function e(i) {
  2915. var n = i.color,
  2916. g = i.width,
  2917. o = i.showAngle,
  2918. C = void 0 !== o && o,
  2919. I = i.linecap,
  2920. s = void 0 === I ? 'square' : I,
  2921. a = r(i, ['color', 'width', 'showAngle', 'linecap']),
  2922. l = this
  2923. return (
  2924. (g = g || e.Setting.get(a.renderer).width),
  2925. (n = n || e.Setting.get(a.renderer).color),
  2926. ((l =
  2927. t.call(this, A({ color: n, width: g, linecap: s, showAngle: C }, a)) || this).init = {
  2928. color: n,
  2929. width: g,
  2930. linecap: s
  2931. }),
  2932. l
  2933. )
  2934. }
  2935. return (
  2936. g(e, t),
  2937. (e.prototype.intercept = function (t, e, i) {
  2938. return !0
  2939. }),
  2940. (e.prototype.grentNode = function () {
  2941. return document.createElementNS(C.SVGURI, 'path')
  2942. }),
  2943. (e.prototype.update = function () {
  2944. var t = this.width * this.multiple
  2945. this.real.setAttribute('stroke', this.color),
  2946. this.real.setAttribute('stroke-width', t.toString()),
  2947. this.real.setAttribute('stroke-linecap', this.linecap),
  2948. this.real.setAttribute(
  2949. 'd',
  2950. 'M ' +
  2951. this.points[0].x +
  2952. ' ' +
  2953. this.points[0].y +
  2954. ' L ' +
  2955. this.points[1].x +
  2956. ' ' +
  2957. this.points[1].y
  2958. )
  2959. }),
  2960. (e.Setting = new Map()),
  2961. e
  2962. )
  2963. })(o.CADElement)
  2964. e.default = I
  2965. },
  2966. function (t, e, i) {
  2967. var n,
  2968. g =
  2969. (this && this.__extends) ||
  2970. ((n = function (t, e) {
  2971. return (n =
  2972. Object.setPrototypeOf ||
  2973. ({ __proto__: [] } instanceof Array &&
  2974. function (t, e) {
  2975. t.__proto__ = e
  2976. }) ||
  2977. function (t, e) {
  2978. for (var i in e) e.hasOwnProperty(i) && (t[i] = e[i])
  2979. })(t, e)
  2980. }),
  2981. function (t, e) {
  2982. function i() {
  2983. this.constructor = t
  2984. }
  2985. n(t, e),
  2986. (t.prototype = null === e ? Object.create(e) : ((i.prototype = e.prototype), new i()))
  2987. }),
  2988. A =
  2989. (this && this.__assign) ||
  2990. function () {
  2991. return (A =
  2992. Object.assign ||
  2993. function (t) {
  2994. for (var e, i = 1, n = arguments.length; i < n; i++)
  2995. for (var g in (e = arguments[i]))
  2996. Object.prototype.hasOwnProperty.call(e, g) && (t[g] = e[g])
  2997. return t
  2998. }).apply(this, arguments)
  2999. },
  3000. r =
  3001. (this && this.__rest) ||
  3002. function (t, e) {
  3003. var i = {}
  3004. for (var n in t)
  3005. Object.prototype.hasOwnProperty.call(t, n) && e.indexOf(n) < 0 && (i[n] = t[n])
  3006. if (null != t && 'function' == typeof Object.getOwnPropertySymbols) {
  3007. var g = 0
  3008. for (n = Object.getOwnPropertySymbols(t); g < n.length; g++)
  3009. e.indexOf(n[g]) < 0 &&
  3010. Object.prototype.propertyIsEnumerable.call(t, n[g]) &&
  3011. (i[n[g]] = t[n[g]])
  3012. }
  3013. return i
  3014. },
  3015. o =
  3016. (this && this.__importDefault) ||
  3017. function (t) {
  3018. return t && t.__esModule ? t : { default: t }
  3019. }
  3020. Object.defineProperty(e, '__esModule', { value: !0 })
  3021. var C = o(i(12)),
  3022. I = i(1),
  3023. s = o(i(4)),
  3024. a = i(0),
  3025. l = (function (t) {
  3026. function e(e) {
  3027. var i = e.points,
  3028. n = e.fill,
  3029. g = void 0 === n ? 'rgba(0,0,0,0)' : n,
  3030. o = e.seam,
  3031. C = void 0 === o ? 'rgba(255,255,255,0)' : o,
  3032. I = e.bgColor,
  3033. s = void 0 === I ? 'rgba(255,255,255,0.5)' : I,
  3034. a = e.width,
  3035. l = void 0 === a ? 6 : a,
  3036. u = e.stamWidth,
  3037. c = void 0 === u ? 0.5 : u,
  3038. h = e.hover,
  3039. p = r(e, ['points', 'fill', 'seam', 'bgColor', 'width', 'stamWidth', 'hover']),
  3040. d = this,
  3041. f = { fill: g, seam: C, width: l, stamWidth: c }
  3042. return (
  3043. (h = h || A(A({}, f), { fill: 'rgba(243, 255, 0, 0.8)' })),
  3044. ((d =
  3045. t.call(this, A(A({ linePoints: i, bgColor: s, hover: h }, p), f)) || this).eleHover =
  3046. !1),
  3047. d
  3048. )
  3049. }
  3050. return (
  3051. g(e, t),
  3052. (e.prototype.grentNode = function () {
  3053. var t = this,
  3054. e = document.createElementNS(I.SVGURI, 'g')
  3055. return (
  3056. this.nextTick(function () {
  3057. ;(t.outLine = new C.default({
  3058. points: t.linePoints,
  3059. width: t.width,
  3060. color: t.fill,
  3061. renderer: t.renderer
  3062. })),
  3063. (t.innerline = new C.default({
  3064. points: t.linePoints,
  3065. width: t.stamWidth,
  3066. color: t.seam,
  3067. renderer: t.renderer
  3068. })),
  3069. (t.outLine.click = t.innerline.click =
  3070. function () {
  3071. return t.changeSelect(!0)
  3072. }),
  3073. e.appendChild(t.outLine.real),
  3074. e.appendChild(t.innerline.real),
  3075. e.appendChild(t.linePoints[0].real),
  3076. e.appendChild(t.linePoints[1].real),
  3077. t.interceptUpdateStyle(),
  3078. t.outLine.update(),
  3079. t.innerline.update()
  3080. }),
  3081. (this.clip1 = document.createElementNS(I.SVGURI, 'path')),
  3082. (this.clip2 = document.createElementNS(I.SVGURI, 'path')),
  3083. (this.clip3 = document.createElementNS(I.SVGURI, 'path')),
  3084. (this.clip4 = document.createElementNS(I.SVGURI, 'path')),
  3085. e.appendChild(this.clip1),
  3086. e.appendChild(this.clip2),
  3087. e.appendChild(this.clip3),
  3088. e.appendChild(this.clip4),
  3089. e
  3090. )
  3091. }),
  3092. (e.prototype.getStyle = function () {
  3093. return this.eleHover || this.select
  3094. ? this.hover
  3095. : { width: this.width, fill: this.fill, seam: this.seam, stamWidth: this.stamWidth }
  3096. }),
  3097. (e.prototype.interceptUpdateStyle = function () {
  3098. var t = this,
  3099. e = this.outLine.intercept,
  3100. i = this.innerline.intercept
  3101. ;(this.outLine.intercept = function (i, n) {
  3102. var g = i[0],
  3103. A = n.width,
  3104. r = n.color
  3105. if (g === t.outLine && (A || r)) {
  3106. var o = t.getStyle()
  3107. return { width: o.width, color: o.fill }
  3108. }
  3109. return e.call(t)
  3110. }),
  3111. (this.innerline.intercept = function (e, n) {
  3112. var g = e[0],
  3113. A = n.width,
  3114. r = n.color
  3115. if (g === t.innerline && (A || r)) {
  3116. var o = t.getStyle()
  3117. return { width: o.stamWidth, color: o.seam }
  3118. }
  3119. return i.call(t)
  3120. })
  3121. }),
  3122. (e.prototype.update = function () {
  3123. this.outLine &&
  3124. ((this.outLine.width = this.outLine.width + 1e-8),
  3125. (this.innerline.width = this.innerline.width + 1e-8))
  3126. var t = a.getDisVerticalLinePoints(
  3127. this.attachment,
  3128. this.linePoints[0],
  3129. 0.4 * this.width * this.multiple
  3130. ),
  3131. e = t[0],
  3132. i = t[1],
  3133. n = a.getDisVerticalLinePoints(
  3134. this.attachment,
  3135. this.linePoints[1],
  3136. 0.4 * this.width * this.multiple
  3137. ),
  3138. g = n[0],
  3139. A = n[1],
  3140. r = a.getDisVerticalLinePoints(
  3141. this.attachment,
  3142. this.linePoints[0],
  3143. 0.1 * this.width * this.multiple
  3144. ),
  3145. o = r[0],
  3146. C = r[1],
  3147. I = a.getDisVerticalLinePoints(
  3148. this.attachment,
  3149. this.linePoints[1],
  3150. 0.1 * this.width * this.multiple
  3151. ),
  3152. s = I[0],
  3153. l = I[1]
  3154. isNaN(e.x) ||
  3155. (this.clip1.setAttribute('stroke-width', this.multiple.toString()),
  3156. this.clip1.setAttribute('d', 'M ' + e.x + ' ' + e.y + ' L ' + g.x + ' ' + g.y),
  3157. this.clip2.setAttribute('stroke-width', this.multiple.toString()),
  3158. this.clip2.setAttribute('d', 'M ' + i.x + ' ' + i.y + ' L ' + A.x + ' ' + A.y),
  3159. this.clip3.setAttribute('stroke-width', this.multiple.toString()),
  3160. this.clip3.setAttribute('d', 'M ' + o.x + ' ' + o.y + ' L ' + s.x + ' ' + s.y),
  3161. this.clip4.setAttribute('stroke-width', this.multiple.toString()),
  3162. this.clip4.setAttribute('d', 'M ' + C.x + ' ' + C.y + ' L ' + l.x + ' ' + l.y),
  3163. this.clip1.setAttribute('stroke', this.bgColor),
  3164. this.clip2.setAttribute('stroke', this.bgColor),
  3165. this.clip3.setAttribute('stroke', this.bgColor),
  3166. this.clip4.setAttribute('stroke', this.bgColor),
  3167. this.attachment.update())
  3168. }),
  3169. (e.prototype.wallSelect = function () {
  3170. this.update && this.update()
  3171. }),
  3172. (e.prototype.enter = function () {
  3173. ;(this.eleHover = !0), this.update()
  3174. }),
  3175. (e.prototype.leave = function () {
  3176. ;(this.eleHover = !1), this.update()
  3177. }),
  3178. (e.prototype.drag = function (t) {}),
  3179. e
  3180. )
  3181. })(s.default)
  3182. e.default = l
  3183. },
  3184. function (t, e, i) {
  3185. var n,
  3186. g =
  3187. (this && this.__extends) ||
  3188. ((n = function (t, e) {
  3189. return (n =
  3190. Object.setPrototypeOf ||
  3191. ({ __proto__: [] } instanceof Array &&
  3192. function (t, e) {
  3193. t.__proto__ = e
  3194. }) ||
  3195. function (t, e) {
  3196. for (var i in e) e.hasOwnProperty(i) && (t[i] = e[i])
  3197. })(t, e)
  3198. }),
  3199. function (t, e) {
  3200. function i() {
  3201. this.constructor = t
  3202. }
  3203. n(t, e),
  3204. (t.prototype = null === e ? Object.create(e) : ((i.prototype = e.prototype), new i()))
  3205. }),
  3206. A =
  3207. (this && this.__assign) ||
  3208. function () {
  3209. return (A =
  3210. Object.assign ||
  3211. function (t) {
  3212. for (var e, i = 1, n = arguments.length; i < n; i++)
  3213. for (var g in (e = arguments[i]))
  3214. Object.prototype.hasOwnProperty.call(e, g) && (t[g] = e[g])
  3215. return t
  3216. }).apply(this, arguments)
  3217. },
  3218. r =
  3219. (this && this.__rest) ||
  3220. function (t, e) {
  3221. var i = {}
  3222. for (var n in t)
  3223. Object.prototype.hasOwnProperty.call(t, n) && e.indexOf(n) < 0 && (i[n] = t[n])
  3224. if (null != t && 'function' == typeof Object.getOwnPropertySymbols) {
  3225. var g = 0
  3226. for (n = Object.getOwnPropertySymbols(t); g < n.length; g++)
  3227. e.indexOf(n[g]) < 0 &&
  3228. Object.prototype.propertyIsEnumerable.call(t, n[g]) &&
  3229. (i[n[g]] = t[n[g]])
  3230. }
  3231. return i
  3232. },
  3233. o =
  3234. (this && this.__importDefault) ||
  3235. function (t) {
  3236. return t && t.__esModule ? t : { default: t }
  3237. }
  3238. Object.defineProperty(e, '__esModule', { value: !0 })
  3239. var C = (function (t) {
  3240. function e(e) {
  3241. var i = e.hover,
  3242. n = e.color,
  3243. g = void 0 === n ? '#fff' : n,
  3244. o = e.width,
  3245. C = void 0 === o ? 3 : o,
  3246. I = e.linecap,
  3247. s = r(e, ['hover', 'color', 'width', 'linecap']),
  3248. a = this,
  3249. l = { color: g, width: C, linecap: I }
  3250. return (
  3251. (i = i || A(A({}, l), { color: 'rgba(243, 255, 0, 0.8)' })),
  3252. ((a = t.call(this, A({ width: C, color: g }, s)) || this).hover = i),
  3253. (a.init = l),
  3254. (a.disable = !1),
  3255. a.real.setAttribute('class', 'variable'),
  3256. a
  3257. )
  3258. }
  3259. return (
  3260. g(e, t),
  3261. (e.prototype.setHoverStyle = function () {
  3262. var t = this
  3263. console.log(this.hover),
  3264. Object.keys(this.hover).forEach(function (e) {
  3265. return (t[e] = t.hover[e])
  3266. })
  3267. }),
  3268. (e.prototype.setUnHoverStyle = function () {
  3269. var t = this
  3270. Object.keys(this.init).forEach(function (e) {
  3271. return (t[e] = t.init[e])
  3272. })
  3273. }),
  3274. (e.prototype.dragStart = function () {
  3275. this.dragStartPoints = this.points.map(function (t) {
  3276. return { x: t.x, y: t.y }
  3277. })
  3278. }),
  3279. (e.prototype.drag = function (t) {
  3280. var e = this
  3281. if (this.disable) return !1
  3282. this.points.forEach(function (i, n) {
  3283. ;(i.x = e.dragStartPoints[n].x + t.x * e.multiple),
  3284. (i.y = e.dragStartPoints[n].y + t.y * e.multiple)
  3285. })
  3286. }),
  3287. (e.prototype.dragEnd = function () {
  3288. delete this.dragStartPoints
  3289. }),
  3290. e
  3291. )
  3292. })(o(i(10)).default)
  3293. e.default = C
  3294. },
  3295. function (t, e, i) {
  3296. var n,
  3297. g =
  3298. (this && this.__extends) ||
  3299. ((n = function (t, e) {
  3300. return (n =
  3301. Object.setPrototypeOf ||
  3302. ({ __proto__: [] } instanceof Array &&
  3303. function (t, e) {
  3304. t.__proto__ = e
  3305. }) ||
  3306. function (t, e) {
  3307. for (var i in e) e.hasOwnProperty(i) && (t[i] = e[i])
  3308. })(t, e)
  3309. }),
  3310. function (t, e) {
  3311. function i() {
  3312. this.constructor = t
  3313. }
  3314. n(t, e),
  3315. (t.prototype = null === e ? Object.create(e) : ((i.prototype = e.prototype), new i()))
  3316. }),
  3317. A =
  3318. (this && this.__assign) ||
  3319. function () {
  3320. return (A =
  3321. Object.assign ||
  3322. function (t) {
  3323. for (var e, i = 1, n = arguments.length; i < n; i++)
  3324. for (var g in (e = arguments[i]))
  3325. Object.prototype.hasOwnProperty.call(e, g) && (t[g] = e[g])
  3326. return t
  3327. }).apply(this, arguments)
  3328. },
  3329. r =
  3330. (this && this.__rest) ||
  3331. function (t, e) {
  3332. var i = {}
  3333. for (var n in t)
  3334. Object.prototype.hasOwnProperty.call(t, n) && e.indexOf(n) < 0 && (i[n] = t[n])
  3335. if (null != t && 'function' == typeof Object.getOwnPropertySymbols) {
  3336. var g = 0
  3337. for (n = Object.getOwnPropertySymbols(t); g < n.length; g++)
  3338. e.indexOf(n[g]) < 0 &&
  3339. Object.prototype.propertyIsEnumerable.call(t, n[g]) &&
  3340. (i[n[g]] = t[n[g]])
  3341. }
  3342. return i
  3343. },
  3344. o =
  3345. (this && this.__spreadArrays,
  3346. (this && this.__importDefault) ||
  3347. function (t) {
  3348. return t && t.__esModule ? t : { default: t }
  3349. })
  3350. Object.defineProperty(e, '__esModule', { value: !0 })
  3351. var C = i(2),
  3352. I = o(i(5)),
  3353. s = i(0),
  3354. a = i(3),
  3355. l = i(1),
  3356. u = o(i(12)),
  3357. c = (function (t) {
  3358. function e(e) {
  3359. var i = e.minWidth,
  3360. n = void 0 === i ? 0.1 : i,
  3361. g = e.points,
  3362. o = e.renderer,
  3363. C = e.top,
  3364. a = e.bottom,
  3365. l = e.angle,
  3366. c = void 0 === l ? 0 : l,
  3367. h = e.stroke,
  3368. p = void 0 === h ? 'rgba(255,255,255,0.5)' : h,
  3369. d = e.width,
  3370. f = void 0 === d ? 1 : d,
  3371. y = r(e, [
  3372. 'minWidth',
  3373. 'points',
  3374. 'renderer',
  3375. 'top',
  3376. 'bottom',
  3377. 'angle',
  3378. 'stroke',
  3379. 'width'
  3380. ]),
  3381. v = this,
  3382. m = g.map(function (t) {
  3383. return new I.default(A(A({}, t), { renderer: o }))
  3384. }),
  3385. b = m.map(function (t, e) {
  3386. return new u.default({
  3387. points: [m[e], m[e === m.length - 1 ? 0 : e + 1]],
  3388. renderer: o,
  3389. width: f,
  3390. color: p
  3391. })
  3392. })
  3393. ;((v =
  3394. t.call(
  3395. this,
  3396. A(A({}, y), {
  3397. points: m,
  3398. lines: b,
  3399. renderer: o,
  3400. angle: c,
  3401. stroke: p,
  3402. width: f,
  3403. fill: 'rgba(0,0,0,0)'
  3404. })
  3405. ) || this).paths = b),
  3406. (v.points = m),
  3407. (v.zIndex = 1),
  3408. (v.minWidth = n),
  3409. (v.stop = !0)
  3410. var x = []
  3411. return (
  3412. Object.defineProperty(v, 'movePoints', {
  3413. get: function () {
  3414. return x
  3415. },
  3416. set: function (t) {
  3417. ;(x = t),
  3418. t && t.length >= 2
  3419. ? (this.moveLineDis = s.lineDis({ points: x }))
  3420. : delete this.moveLineDis
  3421. }
  3422. }),
  3423. v.real.setAttribute('class', 'variable'),
  3424. Object.defineProperty(v, 'top', {
  3425. get: function () {
  3426. return C
  3427. },
  3428. set: function (t) {
  3429. ;(C = t), this.wallPos && this.wallPos()
  3430. }
  3431. }),
  3432. Object.defineProperty(v, 'bottom', {
  3433. get: function () {
  3434. return a
  3435. },
  3436. set: function (t) {
  3437. ;(a = t), this.wallPos && this.wallPos()
  3438. }
  3439. }),
  3440. v
  3441. )
  3442. }
  3443. return (
  3444. g(e, t),
  3445. (e.prototype.setHoverStyle = function () {
  3446. this.fill = 'rgba(243, 255, 0, 0.8)'
  3447. }),
  3448. (e.prototype.setUnHoverStyle = function () {
  3449. this.fill = 'rgba(243, 255, 0, 0)'
  3450. }),
  3451. (e.prototype.rotate = function (t) {
  3452. var e = this
  3453. if (t === this.angle) return !1
  3454. var i = s.faceRotate(this.points, t - this.angle)
  3455. return (
  3456. !!this.check(i) &&
  3457. ((this.stop = !1),
  3458. this.points.forEach(function (t, e) {
  3459. ;(t.x = i[e].x), (t.y = i[e].y)
  3460. }),
  3461. this.nextTick(function () {
  3462. return (e.stop = !0)
  3463. }),
  3464. !0)
  3465. )
  3466. }),
  3467. (e.prototype.grentNode = function () {
  3468. var t = this,
  3469. e = document.createElementNS(l.SVGURI, 'g')
  3470. return (
  3471. (this.wrapPath = document.createElementNS(l.SVGURI, 'path')),
  3472. e.appendChild(this.wrapPath),
  3473. this.nextTick(function () {
  3474. t.lines.forEach(function (i) {
  3475. ;(i.changeSelect = function (e) {
  3476. e && t.changeSelect(e)
  3477. }),
  3478. i.update(),
  3479. e.appendChild(i.real)
  3480. })
  3481. }),
  3482. e
  3483. )
  3484. }),
  3485. (e.prototype.update = function () {
  3486. var t = this
  3487. this.wrapPath &&
  3488. (this.wrapPath.setAttribute('stroke-width', (this.width * this.multiple).toString()),
  3489. this.wrapPath.setAttribute(
  3490. 'd',
  3491. 'M ' +
  3492. this.points
  3493. .map(function (t) {
  3494. return t.x + ' ' + t.y
  3495. })
  3496. .join(' L ') +
  3497. ' z'
  3498. ),
  3499. this.wrapPath.setAttribute('fill', this.fill),
  3500. this.wrapPath.setAttribute('stroke', this.stroke)),
  3501. this.lines.forEach(function (e) {
  3502. e.real.setAttribute('stroke', t.stroke)
  3503. })
  3504. }),
  3505. (e.prototype.checkWidth = function (t) {
  3506. var e = this
  3507. return (
  3508. void 0 === t && (t = this.points),
  3509. !t.some(function (i, n) {
  3510. var g = t[n === t.length - 1 ? 0 : n + 1]
  3511. return s.lineDis({ points: [i, g] }) <= e.minWidth
  3512. })
  3513. )
  3514. }),
  3515. (e.prototype.qualified = function (t, e) {
  3516. void 0 === t && (t = this.points), void 0 === e && (e = this.room)
  3517. var i = this.renderer.processing.getRoomEles(e)
  3518. return (
  3519. !!s.isFaceContain(i.ground, t) &&
  3520. !i.hole.some(function (e) {
  3521. return s.isFaceIntersect(e, t) || s.isFaceContain(e, t) || s.isFaceContain(t, e)
  3522. })
  3523. )
  3524. }),
  3525. (e.prototype.check = function (t) {
  3526. return void 0 === t && (t = this.points), this.checkWidth(t)
  3527. }),
  3528. (e.prototype.intercept = function (t, e, i) {
  3529. e.x, e.y
  3530. var n = e.angle
  3531. return !a.type.isNumber(n) || this.rotate(n)
  3532. }),
  3533. (e.prototype.directUpdate = function (t) {
  3534. var e = this
  3535. t.forEach(function (t, i) {
  3536. ;(e.points[i].__state.direct = !0),
  3537. (e.points[i].x = t.x),
  3538. (e.points[i].y = t.y),
  3539. (e.points[i].__state.direct = !1),
  3540. e.points[i].update()
  3541. }),
  3542. this.lines.forEach(function (t) {
  3543. t.update()
  3544. }),
  3545. this.update(),
  3546. this.wallPos && this.wallPos(),
  3547. this.fromAsync && this.fromAsync()
  3548. }),
  3549. (e.prototype.dragStart = function (t) {
  3550. if (
  3551. this.lines.some(function (e) {
  3552. return e.real === t.target
  3553. })
  3554. ) {
  3555. var e = this.lines.find(function (e) {
  3556. return e.real === t.target
  3557. })
  3558. this.moveLineDis = s.lineDis(e)
  3559. } else
  3560. this.initPoints = this.points.map(function (t) {
  3561. return { x: t.x, y: t.y }
  3562. })
  3563. }),
  3564. (e.prototype.drag = function (t) {
  3565. var e = this
  3566. if (this.initPoints) {
  3567. this.stop = !1
  3568. var i = this.points.map(function (i, n) {
  3569. return {
  3570. x: e.initPoints[n].x + t.x * e.multiple,
  3571. y: e.initPoints[n].y + t.y * e.multiple
  3572. }
  3573. })
  3574. setTimeout(function () {
  3575. e.directUpdate(i)
  3576. })
  3577. }
  3578. }),
  3579. (e.prototype.dragEnd = function () {
  3580. var t = this
  3581. this.nextTick(function () {
  3582. ;(t.stop = !0), delete t.moveLineDis
  3583. }),
  3584. delete this.initPoints
  3585. }),
  3586. (e.prototype.destroy = function () {
  3587. this.points.forEach(function (t) {
  3588. return t.destroy()
  3589. }),
  3590. (this.room = null),
  3591. (this.points = null),
  3592. (this.update = null),
  3593. t.prototype.destroy.call(this)
  3594. }),
  3595. e
  3596. )
  3597. })(C.CADElement)
  3598. e.default = c
  3599. },
  3600. function (t, e, i) {
  3601. var n,
  3602. g =
  3603. (this && this.__extends) ||
  3604. ((n = function (t, e) {
  3605. return (n =
  3606. Object.setPrototypeOf ||
  3607. ({ __proto__: [] } instanceof Array &&
  3608. function (t, e) {
  3609. t.__proto__ = e
  3610. }) ||
  3611. function (t, e) {
  3612. for (var i in e) e.hasOwnProperty(i) && (t[i] = e[i])
  3613. })(t, e)
  3614. }),
  3615. function (t, e) {
  3616. function i() {
  3617. this.constructor = t
  3618. }
  3619. n(t, e),
  3620. (t.prototype = null === e ? Object.create(e) : ((i.prototype = e.prototype), new i()))
  3621. }),
  3622. A =
  3623. (this && this.__assign) ||
  3624. function () {
  3625. return (A =
  3626. Object.assign ||
  3627. function (t) {
  3628. for (var e, i = 1, n = arguments.length; i < n; i++)
  3629. for (var g in (e = arguments[i]))
  3630. Object.prototype.hasOwnProperty.call(e, g) && (t[g] = e[g])
  3631. return t
  3632. }).apply(this, arguments)
  3633. },
  3634. r =
  3635. (this && this.__awaiter) ||
  3636. function (t, e, i, n) {
  3637. return new (i || (i = Promise))(function (g, A) {
  3638. function r(t) {
  3639. try {
  3640. C(n.next(t))
  3641. } catch (t) {
  3642. A(t)
  3643. }
  3644. }
  3645. function o(t) {
  3646. try {
  3647. C(n.throw(t))
  3648. } catch (t) {
  3649. A(t)
  3650. }
  3651. }
  3652. function C(t) {
  3653. var e
  3654. t.done
  3655. ? g(t.value)
  3656. : ((e = t.value),
  3657. e instanceof i
  3658. ? e
  3659. : new i(function (t) {
  3660. t(e)
  3661. })).then(r, o)
  3662. }
  3663. C((n = n.apply(t, e || [])).next())
  3664. })
  3665. },
  3666. o =
  3667. (this && this.__generator) ||
  3668. function (t, e) {
  3669. var i,
  3670. n,
  3671. g,
  3672. A,
  3673. r = {
  3674. label: 0,
  3675. sent: function () {
  3676. if (1 & g[0]) throw g[1]
  3677. return g[1]
  3678. },
  3679. trys: [],
  3680. ops: []
  3681. }
  3682. return (
  3683. (A = { next: o(0), throw: o(1), return: o(2) }),
  3684. 'function' == typeof Symbol &&
  3685. (A[Symbol.iterator] = function () {
  3686. return this
  3687. }),
  3688. A
  3689. )
  3690. function o(A) {
  3691. return function (o) {
  3692. return (function (A) {
  3693. if (i) throw new TypeError('Generator is already executing.')
  3694. for (; r; )
  3695. try {
  3696. if (
  3697. ((i = 1),
  3698. n &&
  3699. (g =
  3700. 2 & A[0]
  3701. ? n.return
  3702. : A[0]
  3703. ? n.throw || ((g = n.return) && g.call(n), 0)
  3704. : n.next) &&
  3705. !(g = g.call(n, A[1])).done)
  3706. )
  3707. return g
  3708. switch (((n = 0), g && (A = [2 & A[0], g.value]), A[0])) {
  3709. case 0:
  3710. case 1:
  3711. g = A
  3712. break
  3713. case 4:
  3714. return r.label++, { value: A[1], done: !1 }
  3715. case 5:
  3716. r.label++, (n = A[1]), (A = [0])
  3717. continue
  3718. case 7:
  3719. ;(A = r.ops.pop()), r.trys.pop()
  3720. continue
  3721. default:
  3722. if (
  3723. !(g = (g = r.trys).length > 0 && g[g.length - 1]) &&
  3724. (6 === A[0] || 2 === A[0])
  3725. ) {
  3726. r = 0
  3727. continue
  3728. }
  3729. if (3 === A[0] && (!g || (A[1] > g[0] && A[1] < g[3]))) {
  3730. r.label = A[1]
  3731. break
  3732. }
  3733. if (6 === A[0] && r.label < g[1]) {
  3734. ;(r.label = g[1]), (g = A)
  3735. break
  3736. }
  3737. if (g && r.label < g[2]) {
  3738. ;(r.label = g[2]), r.ops.push(A)
  3739. break
  3740. }
  3741. g[2] && r.ops.pop(), r.trys.pop()
  3742. continue
  3743. }
  3744. A = e.call(t, r)
  3745. } catch (t) {
  3746. ;(A = [6, t]), (n = 0)
  3747. } finally {
  3748. i = g = 0
  3749. }
  3750. if (5 & A[0]) throw A[1]
  3751. return { value: A[0] ? A[1] : void 0, done: !0 }
  3752. })([A, o])
  3753. }
  3754. }
  3755. },
  3756. C =
  3757. (this && this.__spreadArrays) ||
  3758. function () {
  3759. for (var t = 0, e = 0, i = arguments.length; e < i; e++) t += arguments[e].length
  3760. var n = Array(t),
  3761. g = 0
  3762. for (e = 0; e < i; e++)
  3763. for (var A = arguments[e], r = 0, o = A.length; r < o; r++, g++) n[g] = A[r]
  3764. return n
  3765. },
  3766. I =
  3767. (this && this.__importDefault) ||
  3768. function (t) {
  3769. return t && t.__esModule ? t : { default: t }
  3770. }
  3771. Object.defineProperty(e, '__esModule', { value: !0 })
  3772. var s = I(i(33)),
  3773. a = I(i(4)),
  3774. l = I(i(7)),
  3775. u = i(1),
  3776. c = i(0),
  3777. h = (function (t) {
  3778. function e() {
  3779. return (null !== t && t.apply(this, arguments)) || this
  3780. }
  3781. return (
  3782. g(e, t),
  3783. (e.prototype.setHoverStyle = function () {
  3784. ;(this.color = this.hover.color),
  3785. (this.width = this.hover.width),
  3786. (this.linecap = this.hover.linecap)
  3787. }),
  3788. (e.prototype.setUnHoverStyle = function () {
  3789. ;(this.color = this.init.color),
  3790. (this.width = this.init.width),
  3791. (this.linecap = this.init.linecap)
  3792. }),
  3793. (e.prototype.dragStart = function () {
  3794. ;(this.clones = []),
  3795. (this.bkpoints = this.points.map(function (t) {
  3796. return { x: t.x, y: t.y }
  3797. })),
  3798. (this.startPoint = this.renderer.screenToRealPoint({ x: 0, y: 0 })),
  3799. (this.bkverctor = c.lineVector(this))
  3800. }),
  3801. (e.prototype.drag = function (t) {
  3802. var e = this.renderer.screenToRealPoint(t)
  3803. this.exterior ||
  3804. this.changePos({ x: e.x - this.startPoint.x, y: e.y - this.startPoint.y })
  3805. }),
  3806. (e.prototype.dragEnd = function () {
  3807. return r(this, void 0, void 0, function () {
  3808. var t,
  3809. e = this
  3810. return o(this, function (i) {
  3811. return (
  3812. (t = this.renderer.processing).lines.forEach(function (t) {
  3813. t.ele.__state.direct = !1
  3814. }),
  3815. t.points.forEach(function (t) {
  3816. t.ele.__state.direct = !1
  3817. }),
  3818. setTimeout(function () {
  3819. e.renderer.processing.depLines()
  3820. }, 500),
  3821. [2]
  3822. )
  3823. })
  3824. })
  3825. }),
  3826. (e.prototype.directUpdate = function (t) {
  3827. this.__state.direct = !0
  3828. var e = C(this.points)
  3829. e.forEach(function (t) {
  3830. return (t.__state.direct = !0)
  3831. }),
  3832. t(),
  3833. (e = Array.from(new Set(e.concat(this.points)))).forEach(function (t) {
  3834. return (t.__state.direct = !1)
  3835. }),
  3836. (this.__state.direct = !1),
  3837. e.concat(e).forEach(function (t) {
  3838. return t.update()
  3839. }),
  3840. this.wallLines
  3841. .filter(function (t) {
  3842. return t.points.some(function (t) {
  3843. return ~e.indexOf(t)
  3844. })
  3845. })
  3846. .forEach(function (t) {
  3847. t.update(),
  3848. t.points[0].wallPos && t.points[0].wallPos(),
  3849. t.points[1].wallPos && t.points[1].wallPos(),
  3850. t.wallPos && t.wallPos(),
  3851. t.fromAsync && t.fromAsync(),
  3852. t.updateJoin()
  3853. })
  3854. }),
  3855. (e.prototype.grentNewJoinLine = function (t, e) {
  3856. var i,
  3857. n = this,
  3858. g = this.renderer.processing,
  3859. r = g.points.find(function (e) {
  3860. return e.ele === t
  3861. }),
  3862. o = g.lines.find(function (t) {
  3863. return t.ele === n
  3864. }),
  3865. I = g.addPoint(
  3866. A(
  3867. {
  3868. id:
  3869. Math.max.apply(
  3870. Math,
  3871. g.points.map(function (t) {
  3872. return t.id
  3873. })
  3874. ) + 1
  3875. },
  3876. e
  3877. )
  3878. )
  3879. g.data.vertex.push({ id: I.id, x: e.x, y: e.y })
  3880. var s = o.ele,
  3881. a = C(s.points)
  3882. return (
  3883. (a[s.points.indexOf(t)] = I.ele),
  3884. s.directUpdate(function () {
  3885. ;(s.points = a), s.listenPointDrag(a)
  3886. }),
  3887. s.update(),
  3888. (i = g.cad.increase(u.SEFTLINE, {
  3889. id: g.getNewLineId(),
  3890. p1: I.id,
  3891. p2: r.id,
  3892. isOut: s.isOut,
  3893. border: s.border,
  3894. exterior: s.exterior
  3895. }).obj),
  3896. this.wallLines
  3897. .filter(function (t) {
  3898. return ~t.points.indexOf(n.points[0]) || ~t.points.indexOf(n.points[1])
  3899. })
  3900. .forEach(function (t) {
  3901. t.update(),
  3902. t.points[0].wallPos && t.points[0].wallPos(),
  3903. t.points[1].wallPos && t.points[1].wallPos(),
  3904. t.wallPos && t.wallPos(),
  3905. t.fromAsync && t.fromAsync()
  3906. }),
  3907. i
  3908. )
  3909. }),
  3910. (e.prototype.getPointJoinLines = function (t) {
  3911. for (
  3912. var e = this,
  3913. i = this.wallLines.filter(function (i) {
  3914. return (
  3915. ~i.points.indexOf(t) &&
  3916. !(~e.points.indexOf(i.points[0]) && ~e.points.indexOf(i.points[1]))
  3917. )
  3918. }),
  3919. n = [],
  3920. g = function (t) {
  3921. n.some(function (e) {
  3922. return ~e.points.indexOf(i[t].points[0]) && ~e.points.indexOf(i[t].points[1])
  3923. }) || n.push(i[t])
  3924. },
  3925. A = 0;
  3926. A < i.length;
  3927. A++
  3928. )
  3929. g(A)
  3930. return n
  3931. }),
  3932. (e.prototype.updatePoint = function (t, e, i) {
  3933. var n = this.getPointJoinLines(t),
  3934. g = n[0],
  3935. r = c.lineVector(this),
  3936. o = Number(!this.points.indexOf(t)),
  3937. C = this.points[o],
  3938. I = !1
  3939. if (g) {
  3940. var s = c.lineVector(g) || g.lineVerctor,
  3941. a = !1
  3942. isNaN(s.x) && !isNaN(r.x) && (I = !0)
  3943. var l = this.points.indexOf(t),
  3944. u = n.every(function (t) {
  3945. var e = c.lineVector(t)
  3946. return (
  3947. Math.abs(Math.abs(e.x) - Math.abs(s.x)) < 0.2 &&
  3948. Math.abs(Math.abs(e.y) - Math.abs(s.y)) < 0.2
  3949. )
  3950. }),
  3951. h =
  3952. (Math.abs(Math.abs(s.x) - Math.abs(r.x)) < 0.2 &&
  3953. Math.abs(Math.abs(s.y) - Math.abs(r.y)) < 0.2) ||
  3954. (n.length > 1 && !u)
  3955. if (!~this.clones.indexOf(l) && (h || I)) {
  3956. if (!I && n.length > 1)
  3957. (g =
  3958. n.find(function (t) {
  3959. var e = c.lineVector(t)
  3960. return e.x - r.x < 0.1 && e.y - r.y < 0.1
  3961. }) ||
  3962. n.find(function (t) {
  3963. var e = c.lineVector(t),
  3964. i = Math.abs(e.x - r.x),
  3965. n = Math.abs(e.y - r.y)
  3966. return (i > 0.1 && i < 0.9) || (n > 0.1 && n < 0.9)
  3967. }) ||
  3968. n[0]),
  3969. (s = g.lineVector || c.lineVector(g))
  3970. var p = A({}, e)
  3971. Math.abs(r.x) > Math.abs(r.y) ? (p.x = t.x) : (p.y = t.y),
  3972. I && (e = p),
  3973. (p.x === t.x && p.y === t.y) ||
  3974. ((g = this.grentNewJoinLine(t, p.x === t.x && p.y === t.y ? e : p)),
  3975. (a = !0),
  3976. this.clones.push(l),
  3977. (t = g.points[Number(!g.points.indexOf(t))]),
  3978. (s = c.lineVector(g)),
  3979. (g.lineVerctor = s))
  3980. }
  3981. if (
  3982. ((e = c.getVectorPosPoint(s, g.points[0], e)),
  3983. (g.lineVector = s),
  3984. !a &&
  3985. i &&
  3986. !I &&
  3987. (Math.abs(Math.abs(s.x) - Math.abs(r.x)) < 0.9 ||
  3988. Math.abs(Math.abs(s.y) - Math.abs(r.y)) < 0.9))
  3989. ) {
  3990. var d = c.segmentsIntrFine(g, {
  3991. points: [C, { x: C.x + 1e4 * this.bkverctor.x, y: C.y + 1e4 * this.bkverctor.y }]
  3992. })
  3993. d && (e = d)
  3994. }
  3995. } else {
  3996. if (this.getPointJoinLines(C).length) {
  3997. var f = this.points.indexOf(t)
  3998. e = {
  3999. x: this.bkpoints[f].x + this.points[o].x - this.bkpoints[o].x,
  4000. y: this.bkpoints[f].y + this.points[o].y - this.bkpoints[o].y
  4001. }
  4002. }
  4003. g = this
  4004. }
  4005. var y = c.lineVector({ points: [C, e] })
  4006. return (
  4007. !(
  4008. isNaN(e.x) ||
  4009. isNaN(e.y) ||
  4010. (i &&
  4011. (Math.abs(Math.abs(this.bkverctor.x) - Math.abs(y.x)) > 0.05 ||
  4012. Math.abs(Math.abs(this.bkverctor.y) - Math.abs(y.y)) > 0.05))
  4013. ) &&
  4014. ((t.__state.direct = !0),
  4015. (t.x = e.x),
  4016. (t.y = e.y),
  4017. t.update(),
  4018. (t.__state.direct = !1),
  4019. g)
  4020. )
  4021. }),
  4022. (e.prototype.getVerPos = function (t) {
  4023. var e = c.verticalLine(this)
  4024. if (0 === e.x) return { x: 0, y: t.y }
  4025. if (0 === e.y) return { x: t.x, y: 0 }
  4026. var i = {
  4027. points: [
  4028. { x: -100 * e.x, y: -100 * e.y },
  4029. { x: 100 * e.x, y: 100 * e.y }
  4030. ]
  4031. },
  4032. n = c.pointLineDis(i, t),
  4033. g = Math.sqrt(Math.pow(t.x, 2) + Math.pow(t.y, 2) - Math.pow(n, 2)),
  4034. A = c.getDisPointLinePoints(i, { x: 0, y: 0 }, g),
  4035. r = A[0],
  4036. o = A[1]
  4037. return c.lineDis({ points: [r, t] }) > c.lineDis({ points: [o, t] }) ? o : r
  4038. }),
  4039. (e.prototype.checkJoinArch = function () {
  4040. var t = a.default.attaArch.get(this)
  4041. if (!t || 0 === t.length) return !1
  4042. var e = t.map(function (t) {
  4043. return [t.linePoints[0].getLineInsertPoint(), t.linePoints[1].getLineInsertPoint()]
  4044. })
  4045. return t.some(function (t, i) {
  4046. return (
  4047. !(e[i][0] && e[i][1] && t.qualified(e[i])) ||
  4048. (t instanceof l.default &&
  4049. 0 === t.getPeripheral(e[i].concat(t.points.slice(2))).length)
  4050. )
  4051. })
  4052. }),
  4053. (e.prototype.updateArchs = function () {
  4054. var t = a.default.attaArch.get(this)
  4055. if (t && 0 !== t.length) {
  4056. var e = t.map(function (t) {
  4057. return t.lineChange().points
  4058. })
  4059. t.forEach(function (t, i) {
  4060. if (
  4061. ((t.__state.direct = !0),
  4062. (t.linePoints[0].__state.direct = !0),
  4063. (t.linePoints[1].__state.direct = !0),
  4064. (t.linePoints[0].x = e[i][0].x),
  4065. (t.linePoints[0].y = e[i][0].y),
  4066. (t.linePoints[1].x = e[i][1].x),
  4067. (t.linePoints[1].y = e[i][1].y),
  4068. t.linePoints[0].update(),
  4069. t.linePoints[1].update(),
  4070. (t.linePoints[0].__state.direct = !1),
  4071. (t.linePoints[1].__state.direct = !1),
  4072. t instanceof l.default)
  4073. ) {
  4074. var n = t.getPeripheral()
  4075. ;(t.points[2].__state.direct = !0),
  4076. (t.points[3].__state.direct = !0),
  4077. (t.points[2].x = n[0].x),
  4078. (t.points[2].y = n[0].y),
  4079. (t.points[3].x = n[1].x),
  4080. (t.points[3].y = n[1].y),
  4081. t.points[2].update(),
  4082. t.points[3].update(),
  4083. (t.points[2].__state.direct = !1),
  4084. (t.points[3].__state.direct = !1)
  4085. }
  4086. ;(t.__state.direct = !1), t.dragEnd(), t.update()
  4087. })
  4088. }
  4089. }),
  4090. (e.prototype.changePos = function (t) {
  4091. var e = this
  4092. ;(0 === t.x && 0 === t.y) || (t = this.getVerPos(t)),
  4093. this.directUpdate(function () {
  4094. e.points.map(function (t) {
  4095. return { x: t.x, y: t.y }
  4096. })
  4097. var i = [0, 1],
  4098. n = e.getPointJoinLines(e.points[0]),
  4099. g = e.getPointJoinLines(e.points[1]),
  4100. A =
  4101. (e.points.map(function (t) {
  4102. return { x: t.x, y: t.y }
  4103. }),
  4104. !0)
  4105. if (0 === n.length) i = [1, 0]
  4106. else if (0 !== g.length) {
  4107. i =
  4108. c.getPointCoordDistance(e.bkverctor, c.lineVector(n[0])) >
  4109. c.getPointCoordDistance(e.bkverctor, c.lineVector(g[0]))
  4110. ? [0, 1]
  4111. : [1, 0]
  4112. }
  4113. i.forEach(function (i, n) {
  4114. A &&
  4115. (e.updatePoint(
  4116. e.points[i],
  4117. { x: e.bkpoints[i].x + t.x, y: e.bkpoints[i].y + t.y },
  4118. !!n
  4119. ) ||
  4120. (A = !1))
  4121. }),
  4122. e.renderer.processing.lines
  4123. .filter(function (t) {
  4124. return (
  4125. ~t.ele.points.indexOf(e.points[0]) || ~t.ele.points.indexOf(e.points[1])
  4126. )
  4127. })
  4128. .forEach(function (t) {
  4129. t.ele.updateArchs()
  4130. })
  4131. })
  4132. }),
  4133. (e.prototype.correct = function () {
  4134. for (
  4135. var t = this.renderer.processing,
  4136. e = t.points.map(function (t) {
  4137. return t.ele
  4138. }),
  4139. i = t.lines.map(function (t) {
  4140. return t.ele
  4141. }),
  4142. n = i.filter(function (t) {
  4143. return ~e.indexOf(t.points[0]) || ~e.indexOf(t.points[1])
  4144. }),
  4145. g = function (t, e, i) {
  4146. return ~t.points.indexOf(e) && ~t.points.indexOf(i)
  4147. },
  4148. A = function (A) {
  4149. var o = i[A],
  4150. I = e.find(function (t) {
  4151. return (
  4152. !~o.points.indexOf(t) &&
  4153. (c.lineDis({ points: [o.points[0], t] }) < 0.02 ||
  4154. c.lineDis({ points: [o.points[1], t] }) < 0.02)
  4155. )
  4156. })
  4157. if (!I) return 'continue'
  4158. var s = 0
  4159. if (
  4160. i.some(function (t) {
  4161. return g(t, I, o.points[0])
  4162. })
  4163. )
  4164. s = 0
  4165. else {
  4166. if (
  4167. !i.some(function (t) {
  4168. return g(t, I, o.points[1])
  4169. })
  4170. )
  4171. return 'continue'
  4172. s = 1
  4173. }
  4174. var a = o.points[s]
  4175. return (
  4176. n
  4177. .filter(function (t) {
  4178. return ~t.points.indexOf(a)
  4179. })
  4180. .forEach(function (t) {
  4181. var e = t.points.indexOf(a),
  4182. i = t.points,
  4183. n = C(i)
  4184. ;(n[e] = I),
  4185. t.directUpdate(function () {
  4186. ;(t.points = n), t.listenPointDrag(n)
  4187. })
  4188. }),
  4189. n
  4190. .filter(function (t) {
  4191. return ~t.points.indexOf(I) && ~t.points.indexOf(a)
  4192. })
  4193. .forEach(function (e) {
  4194. t.lines.splice(
  4195. t.lines.findIndex(function (t) {
  4196. return t.ele === e
  4197. }),
  4198. 1
  4199. ),
  4200. e.destroy()
  4201. }),
  4202. a.destroy(),
  4203. { value: r.correct() }
  4204. )
  4205. },
  4206. r = this,
  4207. o = 0;
  4208. o < i.length;
  4209. o++
  4210. ) {
  4211. var I = A(o)
  4212. if ('object' == typeof I) return I.value
  4213. }
  4214. }),
  4215. e
  4216. )
  4217. })(s.default)
  4218. e.default = h
  4219. },
  4220. function (t, e, i) {
  4221. var n,
  4222. g =
  4223. (this && this.__extends) ||
  4224. ((n = function (t, e) {
  4225. return (n =
  4226. Object.setPrototypeOf ||
  4227. ({ __proto__: [] } instanceof Array &&
  4228. function (t, e) {
  4229. t.__proto__ = e
  4230. }) ||
  4231. function (t, e) {
  4232. for (var i in e) e.hasOwnProperty(i) && (t[i] = e[i])
  4233. })(t, e)
  4234. }),
  4235. function (t, e) {
  4236. function i() {
  4237. this.constructor = t
  4238. }
  4239. n(t, e),
  4240. (t.prototype = null === e ? Object.create(e) : ((i.prototype = e.prototype), new i()))
  4241. }),
  4242. A =
  4243. (this && this.__assign) ||
  4244. function () {
  4245. return (A =
  4246. Object.assign ||
  4247. function (t) {
  4248. for (var e, i = 1, n = arguments.length; i < n; i++)
  4249. for (var g in (e = arguments[i]))
  4250. Object.prototype.hasOwnProperty.call(e, g) && (t[g] = e[g])
  4251. return t
  4252. }).apply(this, arguments)
  4253. },
  4254. r =
  4255. (this && this.__rest) ||
  4256. function (t, e) {
  4257. var i = {}
  4258. for (var n in t)
  4259. Object.prototype.hasOwnProperty.call(t, n) && e.indexOf(n) < 0 && (i[n] = t[n])
  4260. if (null != t && 'function' == typeof Object.getOwnPropertySymbols) {
  4261. var g = 0
  4262. for (n = Object.getOwnPropertySymbols(t); g < n.length; g++)
  4263. e.indexOf(n[g]) < 0 &&
  4264. Object.prototype.propertyIsEnumerable.call(t, n[g]) &&
  4265. (i[n[g]] = t[n[g]])
  4266. }
  4267. return i
  4268. },
  4269. o =
  4270. (this && this.__importDefault) ||
  4271. function (t) {
  4272. return t && t.__esModule ? t : { default: t }
  4273. }
  4274. Object.defineProperty(e, '__esModule', { value: !0 })
  4275. var C = o(i(8)),
  4276. I = i(1),
  4277. s = i(0),
  4278. a = (function (t) {
  4279. function e(e) {
  4280. var i = e.points,
  4281. n = e.foorWidth,
  4282. g = void 0 === n ? 6 : n,
  4283. o = e.foorColor,
  4284. C = void 0 === o ? 'rgba(255,255,255,0.5)' : o,
  4285. I = e.clipColor,
  4286. s = void 0 === I ? 'rgba(0,0,0,1)' : I,
  4287. a = (e.linecap, e.within),
  4288. l = void 0 === a ? 0 : a,
  4289. u = r(e, ['points', 'foorWidth', 'foorColor', 'clipColor', 'linecap', 'within']),
  4290. c = this
  4291. return (
  4292. (i[0].fillColor = 'rgba(0,0,0,0)'),
  4293. (i[1].fillColor = 'rgba(0,0,0,0)'),
  4294. ((c =
  4295. t.call(this, A(A({}, u), { points: i, foorWidth: g, foorColor: C, within: l })) ||
  4296. this).clipColor = s),
  4297. c
  4298. )
  4299. }
  4300. return (
  4301. g(e, t),
  4302. (e.prototype.setHoverStyle = function () {
  4303. ;(this.clipColor = 'rgba(243, 255, 0, 0.8)'),
  4304. (this.foorColor = 'rgba(243, 255, 0, 0.8)')
  4305. }),
  4306. (e.prototype.setUnHoverStyle = function () {
  4307. ;(this.clipColor = 'rgba(0,0,0,1)'), (this.foorColor = 'rgba(255,255,255,0.5)')
  4308. }),
  4309. (e.prototype.grentNode = function () {
  4310. var t = this,
  4311. e = document.createElementNS(I.SVGURI, 'g')
  4312. return (
  4313. (this.clip1 = document.createElementNS(I.SVGURI, 'path')),
  4314. e.appendChild(this.clip1),
  4315. (this.clip2 = document.createElementNS(I.SVGURI, 'path')),
  4316. e.appendChild(this.clip2),
  4317. (this.path1 = document.createElementNS(I.SVGURI, 'path')),
  4318. e.appendChild(this.path1),
  4319. (this.path2 = document.createElementNS(I.SVGURI, 'path')),
  4320. e.appendChild(this.path2),
  4321. (this.left = document.createElementNS(I.SVGURI, 'rect')),
  4322. this.left.setAttribute('width', '0.00001'),
  4323. this.left.setAttribute('height', '0.00001'),
  4324. e.appendChild(this.left),
  4325. (this.right = document.createElementNS(I.SVGURI, 'rect')),
  4326. this.right.setAttribute('width', '0.00001'),
  4327. this.right.setAttribute('height', '0.00001'),
  4328. e.appendChild(this.right),
  4329. this.nextTick(function () {
  4330. e.appendChild(t.linePoints[0].real),
  4331. e.appendChild(t.linePoints[1].real),
  4332. t.linePoints.forEach(function (e) {
  4333. e.changeSelect = function (e) {
  4334. e && t.changeSelect(e)
  4335. }
  4336. })
  4337. }),
  4338. e
  4339. )
  4340. }),
  4341. (e.prototype.update = function () {
  4342. var t,
  4343. e,
  4344. i,
  4345. n,
  4346. g = this.foorWidth * this.multiple,
  4347. A = s.lineDis({ points: this.linePoints }),
  4348. r = 2 * this.multiple,
  4349. o = 0.6 * A
  4350. if (
  4351. (this.within
  4352. ? ((i = (t = this.linePoints)[0]), (n = t[1]))
  4353. : ((n = (e = this.linePoints)[0]), (i = e[1])),
  4354. !isNaN(i.x))
  4355. ) {
  4356. var C = s.getLineDisSelectPoint({ points: this.linePoints }, i, o),
  4357. I = s.getLineDisSelectPoint({ points: this.linePoints }, i, o - r),
  4358. a = s.getLineDisSelectPoint({ points: this.linePoints }, n, o),
  4359. l = s.getLineDisSelectPoint({ points: this.linePoints }, n, o - r),
  4360. u = s.verticalLine({ points: this.linePoints }),
  4361. c = g / 2,
  4362. h = (g - c) / 2 - 1e-4 * this.multiple,
  4363. p = i.x + u.x * h,
  4364. d = i.y + u.y * h,
  4365. f = C.x + u.x * h,
  4366. y = C.y + u.y * h,
  4367. v = I.x + u.x * h,
  4368. m = I.y + u.y * h,
  4369. b = n.x - u.x * h,
  4370. x = n.y - u.y * h,
  4371. _ = a.x - u.x * h,
  4372. w = a.y - u.y * h,
  4373. P = l.x - u.x * h,
  4374. O = l.y - u.y * h
  4375. this.path1.setAttribute('stroke', this.foorColor),
  4376. this.path1.setAttribute('stroke-width', c.toString()),
  4377. this.path1.setAttribute('d', 'M ' + p + ' ' + d + ' L ' + f + ' ' + y),
  4378. this.clip1.setAttribute('stroke', this.clipColor),
  4379. this.clip1.setAttribute(
  4380. 'stroke-width',
  4381. (c - this.bwithin * this.multiple).toString()
  4382. ),
  4383. this.clip1.setAttribute('d', 'M ' + p + ' ' + d + ' L ' + v + ' ' + m),
  4384. this.path2.setAttribute('stroke', this.foorColor),
  4385. this.path2.setAttribute('stroke-width', c.toString()),
  4386. this.path2.setAttribute('d', 'M ' + b + ' ' + x + ' L ' + _ + ' ' + w),
  4387. this.clip2.setAttribute('stroke', this.clipColor),
  4388. this.clip2.setAttribute(
  4389. 'stroke-width',
  4390. (c - this.bwithin * this.multiple).toString()
  4391. ),
  4392. this.clip2.setAttribute('d', 'M ' + b + ' ' + x + ' L ' + P + ' ' + O),
  4393. this.left.setAttribute('x', i.x.toString()),
  4394. this.left.setAttribute('y', i.y.toString()),
  4395. this.left.setAttribute('stroke-width', g.toString()),
  4396. this.left.setAttribute('stroke', 'rgba(0,0,0,0)'),
  4397. this.right.setAttribute('x', n.x.toString()),
  4398. this.right.setAttribute('y', n.y.toString()),
  4399. this.right.setAttribute('stroke-width', g.toString()),
  4400. this.right.setAttribute('stroke', 'rgba(0,0,0,0)'),
  4401. this.attachment.update()
  4402. }
  4403. }),
  4404. e
  4405. )
  4406. })(C.default)
  4407. e.default = a
  4408. },
  4409. function (t, e, i) {
  4410. var n,
  4411. g =
  4412. (this && this.__extends) ||
  4413. ((n = function (t, e) {
  4414. return (n =
  4415. Object.setPrototypeOf ||
  4416. ({ __proto__: [] } instanceof Array &&
  4417. function (t, e) {
  4418. t.__proto__ = e
  4419. }) ||
  4420. function (t, e) {
  4421. for (var i in e) e.hasOwnProperty(i) && (t[i] = e[i])
  4422. })(t, e)
  4423. }),
  4424. function (t, e) {
  4425. function i() {
  4426. this.constructor = t
  4427. }
  4428. n(t, e),
  4429. (t.prototype = null === e ? Object.create(e) : ((i.prototype = e.prototype), new i()))
  4430. }),
  4431. A =
  4432. (this && this.__importDefault) ||
  4433. function (t) {
  4434. return t && t.__esModule ? t : { default: t }
  4435. }
  4436. Object.defineProperty(e, '__esModule', { value: !0 })
  4437. var r = A(i(8)),
  4438. o = i(1),
  4439. C = i(0),
  4440. I = (function (t) {
  4441. function e(e) {
  4442. return t.call(this, e) || this
  4443. }
  4444. return (
  4445. g(e, t),
  4446. (e.prototype.grentNode = function () {
  4447. var t = this,
  4448. e = document.createElementNS(o.SVGURI, 'g')
  4449. return (
  4450. (this.arc1 = document.createElementNS(o.SVGURI, 'path')),
  4451. (this.outLine1 = document.createElementNS(o.SVGURI, 'path')),
  4452. (this.arc2 = document.createElementNS(o.SVGURI, 'path')),
  4453. (this.outLine2 = document.createElementNS(o.SVGURI, 'path')),
  4454. e.appendChild(this.outLine1),
  4455. e.appendChild(this.arc1),
  4456. e.appendChild(this.outLine2),
  4457. e.appendChild(this.arc2),
  4458. this.nextTick(function () {
  4459. e.appendChild(t.linePoints[0].real), e.appendChild(t.linePoints[1].real)
  4460. }),
  4461. e
  4462. )
  4463. }),
  4464. (e.prototype.update = function () {
  4465. var t
  4466. this.real.style.display = this.show ? 'initial' : 'none'
  4467. var e = C.lineCenter({ points: this.linePoints }),
  4468. i = this.getDrawArgs.call({
  4469. linePoints: [this.linePoints[0], e],
  4470. within: 1 === this.within ? 2 : this.within,
  4471. attachment: this.attachment
  4472. }),
  4473. n = i[0],
  4474. g = i[1],
  4475. A = i[2],
  4476. r = i[3],
  4477. o = i[4]
  4478. isNaN(A.x)
  4479. ? this.destroy()
  4480. : (this.arc1.setAttribute(
  4481. 'd',
  4482. 'M ' +
  4483. n.x +
  4484. ' ' +
  4485. n.y +
  4486. ' L ' +
  4487. A.x +
  4488. ' ' +
  4489. A.y +
  4490. ' A ' +
  4491. r +
  4492. ' ' +
  4493. r +
  4494. ' 0 0 ' +
  4495. (o ? '1' : '0') +
  4496. ' ' +
  4497. g.x +
  4498. ' ' +
  4499. g.y +
  4500. ' Z'
  4501. ),
  4502. this.arc1.setAttribute('stroke-width', (this.outWidth * this.multiple).toString()),
  4503. this.arc1.setAttribute('stroke', this.stroke),
  4504. this.arc1.setAttribute('fill', this.fill),
  4505. this.outLine1.setAttribute('stroke', this.foorColor),
  4506. this.outLine1.setAttribute('fill', this.fill),
  4507. this.outLine1.setAttribute(
  4508. 'stroke-width',
  4509. (this.foorWidth * this.multiple).toString()
  4510. ),
  4511. this.outLine1.setAttribute('stroke-linecap', this.linecap),
  4512. this.outLine1.setAttribute(
  4513. 'd',
  4514. 'M ' +
  4515. this.linePoints[0].x +
  4516. ' ' +
  4517. this.linePoints[0].y +
  4518. ' L ' +
  4519. this.linePoints[1].x +
  4520. ' ' +
  4521. this.linePoints[1].y
  4522. ),
  4523. (n = (t = this.getDrawArgs.call({
  4524. linePoints: [this.linePoints[1], e],
  4525. within: 1 === this.within ? 2 : this.within,
  4526. attachment: this.attachment
  4527. }))[0]),
  4528. (g = t[1]),
  4529. (A = t[2]),
  4530. (r = t[3]),
  4531. (o = t[4]),
  4532. isNaN(A.x)
  4533. ? this.destroy()
  4534. : (this.arc2.setAttribute(
  4535. 'd',
  4536. 'M ' +
  4537. n.x +
  4538. ' ' +
  4539. n.y +
  4540. ' L ' +
  4541. A.x +
  4542. ' ' +
  4543. A.y +
  4544. ' A ' +
  4545. r +
  4546. ' ' +
  4547. r +
  4548. ' 0 0 ' +
  4549. (o ? '1' : '0') +
  4550. ' ' +
  4551. g.x +
  4552. ' ' +
  4553. g.y +
  4554. ' Z'
  4555. ),
  4556. this.arc2.setAttribute(
  4557. 'stroke-width',
  4558. (this.outWidth * this.multiple).toString()
  4559. ),
  4560. this.arc2.setAttribute('stroke', this.stroke),
  4561. this.arc2.setAttribute('fill', this.fill),
  4562. this.outLine2.setAttribute('stroke', this.foorColor),
  4563. this.outLine2.setAttribute('fill', this.fill),
  4564. this.outLine2.setAttribute(
  4565. 'stroke-width',
  4566. (this.foorWidth * this.multiple).toString()
  4567. ),
  4568. this.outLine2.setAttribute('stroke-linecap', this.linecap),
  4569. this.outLine2.setAttribute(
  4570. 'd',
  4571. 'M ' +
  4572. this.linePoints[0].x +
  4573. ' ' +
  4574. this.linePoints[0].y +
  4575. ' L ' +
  4576. this.linePoints[1].x +
  4577. ' ' +
  4578. this.linePoints[1].y
  4579. ),
  4580. this.attachment.update()))
  4581. }),
  4582. e
  4583. )
  4584. })(r.default)
  4585. e.default = I
  4586. },
  4587. function (t, e, i) {
  4588. var n,
  4589. g =
  4590. (this && this.__extends) ||
  4591. ((n = function (t, e) {
  4592. return (n =
  4593. Object.setPrototypeOf ||
  4594. ({ __proto__: [] } instanceof Array &&
  4595. function (t, e) {
  4596. t.__proto__ = e
  4597. }) ||
  4598. function (t, e) {
  4599. for (var i in e) e.hasOwnProperty(i) && (t[i] = e[i])
  4600. })(t, e)
  4601. }),
  4602. function (t, e) {
  4603. function i() {
  4604. this.constructor = t
  4605. }
  4606. n(t, e),
  4607. (t.prototype = null === e ? Object.create(e) : ((i.prototype = e.prototype), new i()))
  4608. }),
  4609. A =
  4610. (this && this.__importDefault) ||
  4611. function (t) {
  4612. return t && t.__esModule ? t : { default: t }
  4613. }
  4614. Object.defineProperty(e, '__esModule', { value: !0 })
  4615. var r = A(i(13)),
  4616. o = i(1),
  4617. C = (function (t) {
  4618. function e() {
  4619. return (null !== t && t.apply(this, arguments)) || this
  4620. }
  4621. return (
  4622. g(e, t),
  4623. (e.prototype.grentNode = function () {
  4624. var e = t.prototype.grentNode.call(this)
  4625. return (
  4626. (this.path1 = document.createElementNS(o.SVGURI, 'path')),
  4627. (this.path2 = document.createElementNS(o.SVGURI, 'path')),
  4628. this.path1.setAttribute('stroke', this.stroke),
  4629. this.path2.setAttribute('stroke', this.stroke),
  4630. e.insertBefore(this.path1, e.childNodes[0]),
  4631. e.insertBefore(this.path2, e.childNodes[0]),
  4632. e
  4633. )
  4634. }),
  4635. (e.prototype.update = function () {
  4636. t.prototype.update.call(this),
  4637. this.path1.setAttribute('stroke-width', (this.width * this.multiple).toString()),
  4638. this.path2.setAttribute('stroke-width', (this.width * this.multiple).toString()),
  4639. this.path1.setAttribute(
  4640. 'd',
  4641. 'M ' +
  4642. this.points[0].x +
  4643. ' ' +
  4644. this.points[0].y +
  4645. ' L ' +
  4646. this.points[2].x +
  4647. ' ' +
  4648. this.points[2].y
  4649. ),
  4650. this.path2.setAttribute(
  4651. 'd',
  4652. 'M ' +
  4653. this.points[1].x +
  4654. ' ' +
  4655. this.points[1].y +
  4656. ' L ' +
  4657. this.points[3].x +
  4658. ' ' +
  4659. this.points[3].y
  4660. ),
  4661. this.path1.setAttribute('stroke', this.stroke),
  4662. this.path2.setAttribute('stroke', this.stroke)
  4663. }),
  4664. e
  4665. )
  4666. })(r.default)
  4667. e.default = C
  4668. },
  4669. function (t, e, i) {
  4670. var n,
  4671. g =
  4672. (this && this.__extends) ||
  4673. ((n = function (t, e) {
  4674. return (n =
  4675. Object.setPrototypeOf ||
  4676. ({ __proto__: [] } instanceof Array &&
  4677. function (t, e) {
  4678. t.__proto__ = e
  4679. }) ||
  4680. function (t, e) {
  4681. for (var i in e) e.hasOwnProperty(i) && (t[i] = e[i])
  4682. })(t, e)
  4683. }),
  4684. function (t, e) {
  4685. function i() {
  4686. this.constructor = t
  4687. }
  4688. n(t, e),
  4689. (t.prototype = null === e ? Object.create(e) : ((i.prototype = e.prototype), new i()))
  4690. }),
  4691. A =
  4692. (this && this.__importDefault) ||
  4693. function (t) {
  4694. return t && t.__esModule ? t : { default: t }
  4695. }
  4696. Object.defineProperty(e, '__esModule', { value: !0 })
  4697. var r = A(i(13)),
  4698. o = i(1),
  4699. C = i(0),
  4700. I = (function (t) {
  4701. function e() {
  4702. return (null !== t && t.apply(this, arguments)) || this
  4703. }
  4704. return (
  4705. g(e, t),
  4706. (e.prototype.grentNode = function () {
  4707. var e = t.prototype.grentNode.call(this)
  4708. return (
  4709. (this.g = document.createElementNS(o.SVGURI, 'g')),
  4710. (this.path1 = document.createElementNS(o.SVGURI, 'path')),
  4711. (this.path2 = document.createElementNS(o.SVGURI, 'path')),
  4712. this.path1.setAttribute('stroke', this.stroke),
  4713. this.path1.setAttribute('fill', 'rgba(0,0,0,0)'),
  4714. this.path2.setAttribute('stroke', this.stroke),
  4715. this.path2.setAttribute('fill', 'rgba(0,0,0,0)'),
  4716. this.g.appendChild(this.path1),
  4717. this.g.appendChild(this.path2),
  4718. e.insertBefore(this.g, e.children[0]),
  4719. e
  4720. )
  4721. }),
  4722. (e.prototype.update = function () {
  4723. t.prototype.update.call(this)
  4724. var e = C.faceCenter(this.points),
  4725. i = C.lineDis({ points: [this.points[1], this.points[2]] }) / this.multiple,
  4726. n = C.lineDis({ points: [this.points[2], this.points[3]] }) / this.multiple,
  4727. g = (n - 5 * this.width) / n,
  4728. A = (i - 5 * this.width) / i
  4729. ;(g = g <= 0 ? 1 : g),
  4730. (A = A <= 0 ? 1 : A),
  4731. this.g.setAttribute(
  4732. 'transform',
  4733. 'translate(' +
  4734. e.x +
  4735. ',' +
  4736. e.y +
  4737. ') scale(' +
  4738. (g < A ? A : g) +
  4739. ') translate(' +
  4740. -e.x +
  4741. ',' +
  4742. -e.y +
  4743. ')'
  4744. ),
  4745. this.path1.setAttribute(
  4746. 'stroke-width',
  4747. ((this.width * this.multiple) / (g < A ? A : g)).toString()
  4748. ),
  4749. this.path1.setAttribute(
  4750. 'd',
  4751. 'M ' +
  4752. this.points
  4753. .map(function (t) {
  4754. return t.x + ' ' + t.y
  4755. })
  4756. .join(' L ') +
  4757. ' Z'
  4758. ),
  4759. this.path2.setAttribute('stroke', this.stroke)
  4760. var r = this.points[2],
  4761. o = { points: [this.points[1], this.points[3]] },
  4762. I = C.lineCenter(o),
  4763. s = C.lineDis({ points: [I, r] }) * (1 / 3),
  4764. a = C.getDisVerticalLinePoints(o, I, s),
  4765. l = a[0],
  4766. u = a[1],
  4767. c = C.lineDis({ points: [r, l] }) > C.lineDis({ points: [r, u] }) ? u : l
  4768. C.pointInside(this.points, c) || (c = C.lineCenter(o)),
  4769. this.path2.setAttribute('stroke', this.stroke),
  4770. this.path2.setAttribute('stroke-width', (this.width * this.multiple).toString()),
  4771. this.path2.setAttribute(
  4772. 'd',
  4773. 'M ' +
  4774. this.points[1].x +
  4775. ' ' +
  4776. this.points[1].y +
  4777. ' L ' +
  4778. c.x +
  4779. ' ' +
  4780. c.y +
  4781. ' L ' +
  4782. this.points[3].x +
  4783. ' ' +
  4784. this.points[3].y
  4785. )
  4786. }),
  4787. e
  4788. )
  4789. })(r.default)
  4790. e.default = I
  4791. },
  4792. function (t, e, i) {
  4793. var n,
  4794. g =
  4795. (this && this.__extends) ||
  4796. ((n = function (t, e) {
  4797. return (n =
  4798. Object.setPrototypeOf ||
  4799. ({ __proto__: [] } instanceof Array &&
  4800. function (t, e) {
  4801. t.__proto__ = e
  4802. }) ||
  4803. function (t, e) {
  4804. for (var i in e) e.hasOwnProperty(i) && (t[i] = e[i])
  4805. })(t, e)
  4806. }),
  4807. function (t, e) {
  4808. function i() {
  4809. this.constructor = t
  4810. }
  4811. n(t, e),
  4812. (t.prototype = null === e ? Object.create(e) : ((i.prototype = e.prototype), new i()))
  4813. }),
  4814. A =
  4815. (this && this.__assign) ||
  4816. function () {
  4817. return (A =
  4818. Object.assign ||
  4819. function (t) {
  4820. for (var e, i = 1, n = arguments.length; i < n; i++)
  4821. for (var g in (e = arguments[i]))
  4822. Object.prototype.hasOwnProperty.call(e, g) && (t[g] = e[g])
  4823. return t
  4824. }).apply(this, arguments)
  4825. },
  4826. r =
  4827. (this && this.__rest) ||
  4828. function (t, e) {
  4829. var i = {}
  4830. for (var n in t)
  4831. Object.prototype.hasOwnProperty.call(t, n) && e.indexOf(n) < 0 && (i[n] = t[n])
  4832. if (null != t && 'function' == typeof Object.getOwnPropertySymbols) {
  4833. var g = 0
  4834. for (n = Object.getOwnPropertySymbols(t); g < n.length; g++)
  4835. e.indexOf(n[g]) < 0 &&
  4836. Object.prototype.propertyIsEnumerable.call(t, n[g]) &&
  4837. (i[n[g]] = t[n[g]])
  4838. }
  4839. return i
  4840. }
  4841. Object.defineProperty(e, '__esModule', { value: !0 })
  4842. var o = i(2),
  4843. C = i(1),
  4844. I = i(9),
  4845. s = (function (t) {
  4846. function e(e) {
  4847. var i = e.pos,
  4848. n = e.renderer,
  4849. g = e.fontSize,
  4850. o = void 0 === g ? 12 : g,
  4851. C = e.color,
  4852. I = void 0 === C ? '#fff' : C,
  4853. s = r(e, ['pos', 'renderer', 'fontSize', 'color']),
  4854. a =
  4855. t.call(this, A(A({}, s), { x: i.x, y: i.y, fontSize: o, renderer: n, color: I })) ||
  4856. this
  4857. return (a.zIndex = -1), a
  4858. }
  4859. return (
  4860. g(e, t),
  4861. (e.prototype.changeSelect = function (e) {
  4862. t.prototype.changeSelect.call(this, e)
  4863. }),
  4864. (e.prototype.dragStart = function () {
  4865. this.dragStartPoint = { x: this.x, y: this.y }
  4866. }),
  4867. (e.prototype.drag = function (t) {
  4868. ;(this.x = this.dragStartPoint.x + t.x * this.multiple),
  4869. (this.y = this.dragStartPoint.y + t.y * this.multiple)
  4870. }),
  4871. (e.prototype.grentNode = function () {
  4872. var t = this,
  4873. e = document.createElementNS(C.SVGURI, 'g')
  4874. return (
  4875. (this.titleNode = document.createElementNS(C.SVGURI, 'text')),
  4876. this.titleNode.setAttribute('fill', '#fff'),
  4877. this.titleNode.setAttribute('text-anchor', 'middle'),
  4878. this.titleNode.setAttribute('dy', '.4em'),
  4879. (this.contentNode = document.createElementNS(C.SVGURI, 'text')),
  4880. this.contentNode.setAttribute('fill', '#fff'),
  4881. this.contentNode.setAttribute('text-anchor', 'middle'),
  4882. this.contentNode.setAttribute('dy', '.4em'),
  4883. e.appendChild(this.titleNode),
  4884. e.appendChild(this.contentNode),
  4885. this.nextTick(function () {
  4886. return t.update()
  4887. }),
  4888. e
  4889. )
  4890. }),
  4891. (e.prototype.setHoverStyle = function () {}),
  4892. (e.prototype.setUnHoverStyle = function () {}),
  4893. (e.prototype.update = function () {
  4894. var t = this.fontSize * this.multiple
  4895. this.titleNode.setAttribute('x', this.x.toString()),
  4896. this.titleNode.setAttribute('y', this.y.toString()),
  4897. this.titleNode.setAttribute('font-size', t.toString()),
  4898. (this.titleNode.style.display = this.show && this.showTitle ? 'inherit' : 'none'),
  4899. (this.titleNode.textContent =
  4900. this.title || I.i18n.t('modules.model.tagging_name_tips')),
  4901. this.contentNode.setAttribute('x', this.x.toString()),
  4902. this.contentNode.setAttribute('y', (this.y + t + t / 5).toString()),
  4903. this.contentNode.setAttribute('font-size', t.toString()),
  4904. (this.contentNode.style.display = this.show && this.showContent ? 'inherit' : 'none'),
  4905. (this.contentNode.textContent = this.content),
  4906. this.select
  4907. ? (this.titleNode.setAttribute('fill', 'rgb(0, 200, 175)'),
  4908. this.contentNode.setAttribute('fill', 'rgb(0, 200, 175)'))
  4909. : (this.titleNode.setAttribute('fill', this.color),
  4910. this.contentNode.setAttribute('fill', this.color))
  4911. }),
  4912. (e.prototype.destroy = function () {
  4913. t.prototype.destroy.call(this)
  4914. }),
  4915. e
  4916. )
  4917. })(o.CADElement)
  4918. e.default = s
  4919. },
  4920. function (t, e, i) {
  4921. var n,
  4922. g =
  4923. (this && this.__extends) ||
  4924. ((n = function (t, e) {
  4925. return (n =
  4926. Object.setPrototypeOf ||
  4927. ({ __proto__: [] } instanceof Array &&
  4928. function (t, e) {
  4929. t.__proto__ = e
  4930. }) ||
  4931. function (t, e) {
  4932. for (var i in e) e.hasOwnProperty(i) && (t[i] = e[i])
  4933. })(t, e)
  4934. }),
  4935. function (t, e) {
  4936. function i() {
  4937. this.constructor = t
  4938. }
  4939. n(t, e),
  4940. (t.prototype = null === e ? Object.create(e) : ((i.prototype = e.prototype), new i()))
  4941. }),
  4942. A =
  4943. (this && this.__assign) ||
  4944. function () {
  4945. return (A =
  4946. Object.assign ||
  4947. function (t) {
  4948. for (var e, i = 1, n = arguments.length; i < n; i++)
  4949. for (var g in (e = arguments[i]))
  4950. Object.prototype.hasOwnProperty.call(e, g) && (t[g] = e[g])
  4951. return t
  4952. }).apply(this, arguments)
  4953. },
  4954. r =
  4955. (this && this.__rest) ||
  4956. function (t, e) {
  4957. var i = {}
  4958. for (var n in t)
  4959. Object.prototype.hasOwnProperty.call(t, n) && e.indexOf(n) < 0 && (i[n] = t[n])
  4960. if (null != t && 'function' == typeof Object.getOwnPropertySymbols) {
  4961. var g = 0
  4962. for (n = Object.getOwnPropertySymbols(t); g < n.length; g++)
  4963. e.indexOf(n[g]) < 0 &&
  4964. Object.prototype.propertyIsEnumerable.call(t, n[g]) &&
  4965. (i[n[g]] = t[n[g]])
  4966. }
  4967. return i
  4968. },
  4969. o =
  4970. (this && this.__importDefault) ||
  4971. function (t) {
  4972. return t && t.__esModule ? t : { default: t }
  4973. }
  4974. Object.defineProperty(e, '__esModule', { value: !0 })
  4975. var C = i(1),
  4976. I = o(i(4)),
  4977. s = i(0),
  4978. a = (function (t) {
  4979. function e(e) {
  4980. var i = e.points,
  4981. n = e.width,
  4982. g = void 0 === n ? 3 : n,
  4983. o = r(e, ['points', 'width'])
  4984. return (
  4985. t.call(this, A({ linePoints: i, fill: 'rgba(255,255,255,0.5)', width: g }, o)) || this
  4986. )
  4987. }
  4988. return (
  4989. g(e, t),
  4990. (e.prototype.grentNode = function () {
  4991. var t = this,
  4992. e = document.createElementNS(C.SVGURI, 'g')
  4993. return (
  4994. (this.clip1 = document.createElementNS(C.SVGURI, 'path')),
  4995. (this.clip2 = document.createElementNS(C.SVGURI, 'path')),
  4996. (this.clip3 = document.createElementNS(C.SVGURI, 'path')),
  4997. (this.clip4 = document.createElementNS(C.SVGURI, 'path')),
  4998. (this.clip5 = document.createElementNS(C.SVGURI, 'path')),
  4999. this.clip1.setAttribute('stroke', this.fill),
  5000. this.clip2.setAttribute('stroke', this.fill),
  5001. this.clip3.setAttribute('stroke', this.fill),
  5002. this.clip4.setAttribute('stroke', this.fill),
  5003. this.clip5.setAttribute('stroke', this.fill),
  5004. e.appendChild(this.clip1),
  5005. e.appendChild(this.clip2),
  5006. e.appendChild(this.clip3),
  5007. e.appendChild(this.clip4),
  5008. e.appendChild(this.clip5),
  5009. this.nextTick(function () {
  5010. e.appendChild(t.linePoints[0].real), e.appendChild(t.linePoints[1].real)
  5011. }),
  5012. e
  5013. )
  5014. }),
  5015. (e.prototype.setHoverStyle = function () {
  5016. this.fill = 'rgba(243, 255, 0, 0.8)'
  5017. }),
  5018. (e.prototype.setUnHoverStyle = function () {
  5019. this.fill = 'rgba(255,255,255,0.5)'
  5020. }),
  5021. (e.prototype.update = function () {
  5022. var t = s.getDisVerticalLinePoints(
  5023. this.attachment,
  5024. this.linePoints[0],
  5025. 0.4 * this.width * this.multiple
  5026. ),
  5027. e = t[0],
  5028. i = t[1],
  5029. n = s.getDisVerticalLinePoints(
  5030. this.attachment,
  5031. this.linePoints[1],
  5032. 0.4 * this.width * this.multiple
  5033. ),
  5034. g = n[0],
  5035. A = n[1],
  5036. r = s.getDisVerticalLinePoints(
  5037. this.attachment,
  5038. this.linePoints[0],
  5039. 0.15 * this.width * this.multiple
  5040. ),
  5041. o = r[0],
  5042. C = r[1],
  5043. I = s.getDisVerticalLinePoints(
  5044. this.attachment,
  5045. this.linePoints[1],
  5046. 0.15 * this.width * this.multiple
  5047. ),
  5048. a = I[0],
  5049. l = I[1],
  5050. u = s.lineCenter({ points: [o, a] }),
  5051. c = s.lineCenter({ points: [C, l] })
  5052. isNaN(e.x) ||
  5053. (this.clip1.setAttribute('stroke-width', this.multiple.toString()),
  5054. this.clip1.setAttribute('d', 'M ' + e.x + ' ' + e.y + ' L ' + g.x + ' ' + g.y),
  5055. this.clip2.setAttribute('stroke-width', this.multiple.toString()),
  5056. this.clip2.setAttribute('d', 'M ' + i.x + ' ' + i.y + ' L ' + A.x + ' ' + A.y),
  5057. this.clip3.setAttribute('stroke-width', this.multiple.toString()),
  5058. this.clip3.setAttribute('d', 'M ' + o.x + ' ' + o.y + ' L ' + a.x + ' ' + a.y),
  5059. this.clip4.setAttribute('stroke-width', this.multiple.toString()),
  5060. this.clip4.setAttribute('d', 'M ' + C.x + ' ' + C.y + ' L ' + l.x + ' ' + l.y),
  5061. this.clip5.setAttribute('stroke-width', (6 * this.multiple).toString()),
  5062. this.clip5.setAttribute('d', 'M ' + u.x + ' ' + u.y + ' L ' + c.x + ' ' + c.y),
  5063. this.clip1.setAttribute('stroke', this.fill),
  5064. this.clip2.setAttribute('stroke', this.fill),
  5065. this.clip3.setAttribute('stroke', this.fill),
  5066. this.clip4.setAttribute('stroke', this.fill),
  5067. this.clip5.setAttribute('stroke', this.fill),
  5068. this.attachment.update())
  5069. }),
  5070. (e.prototype.dragStart = function (t) {
  5071. ;(this.move =
  5072. this.linePoints[0].real === t.target || this.linePoints[1].real === t.target),
  5073. (this.dragStartPoints = this.linePoints.map(function (t) {
  5074. return { x: t.x, y: t.y }
  5075. }))
  5076. }),
  5077. (e.prototype.drag = function (t) {
  5078. var e = this
  5079. this.move ||
  5080. this.linePoints.forEach(function (i, n) {
  5081. ;(i.x = e.dragStartPoints[n].x + t.x * e.multiple),
  5082. (i.y = e.dragStartPoints[n].y + t.y * e.multiple)
  5083. })
  5084. }),
  5085. (e.prototype.dragEnd = function () {
  5086. ;(this.move = !1), delete this.dragStartPoints
  5087. }),
  5088. e
  5089. )
  5090. })(I.default)
  5091. e.default = a
  5092. },
  5093. function (t, e, i) {
  5094. var n,
  5095. g =
  5096. (this && this.__extends) ||
  5097. ((n = function (t, e) {
  5098. return (n =
  5099. Object.setPrototypeOf ||
  5100. ({ __proto__: [] } instanceof Array &&
  5101. function (t, e) {
  5102. t.__proto__ = e
  5103. }) ||
  5104. function (t, e) {
  5105. for (var i in e) e.hasOwnProperty(i) && (t[i] = e[i])
  5106. })(t, e)
  5107. }),
  5108. function (t, e) {
  5109. function i() {
  5110. this.constructor = t
  5111. }
  5112. n(t, e),
  5113. (t.prototype = null === e ? Object.create(e) : ((i.prototype = e.prototype), new i()))
  5114. }),
  5115. A =
  5116. (this && this.__assign) ||
  5117. function () {
  5118. return (A =
  5119. Object.assign ||
  5120. function (t) {
  5121. for (var e, i = 1, n = arguments.length; i < n; i++)
  5122. for (var g in (e = arguments[i]))
  5123. Object.prototype.hasOwnProperty.call(e, g) && (t[g] = e[g])
  5124. return t
  5125. }).apply(this, arguments)
  5126. },
  5127. r =
  5128. (this && this.__rest) ||
  5129. function (t, e) {
  5130. var i = {}
  5131. for (var n in t)
  5132. Object.prototype.hasOwnProperty.call(t, n) && e.indexOf(n) < 0 && (i[n] = t[n])
  5133. if (null != t && 'function' == typeof Object.getOwnPropertySymbols) {
  5134. var g = 0
  5135. for (n = Object.getOwnPropertySymbols(t); g < n.length; g++)
  5136. e.indexOf(n[g]) < 0 &&
  5137. Object.prototype.propertyIsEnumerable.call(t, n[g]) &&
  5138. (i[n[g]] = t[n[g]])
  5139. }
  5140. return i
  5141. },
  5142. o =
  5143. (this && this.__importDefault) ||
  5144. function (t) {
  5145. return t && t.__esModule ? t : { default: t }
  5146. }
  5147. Object.defineProperty(e, '__esModule', { value: !0 })
  5148. var C = i(1),
  5149. I = o(i(4)),
  5150. s = i(0),
  5151. a = (function (t) {
  5152. function e(e) {
  5153. var i = e.points,
  5154. n = e.within,
  5155. g = void 0 === n ? 0 : n,
  5156. o = e.width,
  5157. C = void 0 === o ? 1 : o,
  5158. I = r(e, ['points', 'within', 'width'])
  5159. return (
  5160. (i[0].fillColor = 'rgba(0,0,0,0)'),
  5161. (i[1].fillColor = 'rgba(0,0,0,0)'),
  5162. t.call(
  5163. this,
  5164. A(
  5165. {
  5166. linePoints: i,
  5167. fill: 'rgba(243, 255, 0, 0)',
  5168. stroke: 'rgba(255,255,255,0.5)',
  5169. within: g,
  5170. width: C
  5171. },
  5172. I
  5173. )
  5174. ) || this
  5175. )
  5176. }
  5177. return (
  5178. g(e, t),
  5179. (e.prototype.grentNode = function () {
  5180. var t = this,
  5181. e = document.createElementNS(C.SVGURI, 'g')
  5182. return (
  5183. (e.innerHTML =
  5184. '\n <path class="ground-case-out" stroke="' +
  5185. this.stroke +
  5186. '" fill="rgba(0,0,0,0)"/>\n <path class="ground-case-in" stroke="' +
  5187. this.stroke +
  5188. '" fill="rgba(0,0,0,0)" />\n <rect width="0.00001" height="0.00001" class="ground-case-left" stroke="rgba(255,255,255,0)" />\n <rect width="0.00001" height="0.00001" class="ground-case-right" stroke="rgba(255,255,255,0)" />\n '),
  5189. (this.out = e.querySelector('.ground-case-out')),
  5190. (this.in = e.querySelector('.ground-case-in')),
  5191. (this.left = e.querySelector('.ground-case-left')),
  5192. (this.right = e.querySelector('.ground-case-right')),
  5193. this.nextTick(function () {
  5194. e.appendChild(t.linePoints[0].real), e.appendChild(t.linePoints[1].real)
  5195. }),
  5196. e
  5197. )
  5198. }),
  5199. (e.prototype.setHoverStyle = function () {
  5200. this.fill = 'rgba(243, 255, 0, 0.8)'
  5201. }),
  5202. (e.prototype.setUnHoverStyle = function () {
  5203. this.fill = 'rgba(0,0,0,0)'
  5204. }),
  5205. (e.prototype.getOutInPath = function (t, e, i, n, g, A, r) {
  5206. var o = this
  5207. void 0 === A && (A = 0), void 0 === r && (r = 0)
  5208. var C,
  5209. I = i,
  5210. a = s.getDisVerticalLinePoints(this.attachment, t, I),
  5211. l = s.getDisVerticalLinePoints(this.attachment, e, I),
  5212. u = { x: 0, y: 0 },
  5213. c = s.lineDis({ points: [a[0], u] }) < s.lineDis({ points: [a[1], u] }),
  5214. h = this.within ? (c ? a[1] : a[0]) : c ? a[0] : a[1]
  5215. h
  5216. ? (C = l[a.indexOf(h)])
  5217. : (C = this.within
  5218. ? l.find(function (t) {
  5219. return o.rooms.find(function (e) {
  5220. return !s.pointInside(e, t)
  5221. })
  5222. })
  5223. : l.find(function (t) {
  5224. return o.rooms.find(function (e) {
  5225. return s.pointInside(e, t)
  5226. })
  5227. }))
  5228. ? (h = a[l.indexOf(C)])
  5229. : ((h = a[0]), (C = l[0])),
  5230. (A = A || h),
  5231. (r = r || C)
  5232. var p = s.getDisVerticalLinePoints(this.attachment, t, g).sort(function (t, e) {
  5233. return s.lineDis({ points: [A, t] }) - s.lineDis({ points: [A, e] })
  5234. })[1]
  5235. return [
  5236. h,
  5237. C,
  5238. s.getDisVerticalLinePoints(this.attachment, e, g).sort(function (t, e) {
  5239. return s.lineDis({ points: [r, t] }) - s.lineDis({ points: [r, e] })
  5240. })[1],
  5241. p,
  5242. h
  5243. ]
  5244. }),
  5245. (e.prototype.update = function () {
  5246. var t = 3 * this.width * this.multiple,
  5247. e = this.width * this.multiple,
  5248. i = 0.4 * s.lineDis({ points: this.linePoints })
  5249. i / this.multiple > 30 && (i = 30 * this.multiple)
  5250. var n = this.linePoints[0],
  5251. g = this.linePoints[1],
  5252. A = s.getDisPointLinePoints(this.attachment, n, t),
  5253. r = A[0],
  5254. o = A[1],
  5255. C = s.getDisPointLinePoints(this.attachment, g, t),
  5256. I = C[0],
  5257. a = C[1]
  5258. if (
  5259. ((n = s.lineDis({ points: [r, g] }) > s.lineDis({ points: [o, g] }) ? r : o),
  5260. (g = s.lineDis({ points: [I, n] }) > s.lineDis({ points: [a, n] }) ? I : a),
  5261. !isNaN(r.x))
  5262. ) {
  5263. this.left.setAttribute('stroke-width', t.toString()),
  5264. this.left.setAttribute('x', this.linePoints[0].x.toString()),
  5265. this.left.setAttribute('y', this.linePoints[0].y.toString()),
  5266. this.right.setAttribute('stroke-width', t.toString()),
  5267. this.right.setAttribute('x', this.linePoints[1].x.toString()),
  5268. this.right.setAttribute('y', this.linePoints[1].y.toString())
  5269. var l = this.getOutInPath(n, g, t, e, i)
  5270. ;(this.ctl = [l[2], l[3]]),
  5271. this.out.setAttribute('fill', this.fill),
  5272. this.out.setAttribute('stroke-width', e.toString()),
  5273. this.out.setAttribute('stroke', this.stroke),
  5274. this.out.setAttribute(
  5275. 'd',
  5276. l
  5277. .map(function (t, e) {
  5278. return (e ? 'L ' : 'M ') + t.x + ' ' + t.y
  5279. })
  5280. .join(' ')
  5281. )
  5282. var u = s.getLineDisSelectPoint({ points: this.linePoints }, n, t),
  5283. c = s.getLineDisSelectPoint({ points: this.linePoints }, g, t)
  5284. this.in.setAttribute('fill', this.fill),
  5285. this.in.setAttribute('stroke-width', e.toString()),
  5286. this.in.setAttribute('stroke', this.stroke),
  5287. this.in.setAttribute(
  5288. 'd',
  5289. this.getOutInPath(u, c, t, e, i - s.lineDis({ points: [u, n] }), l[0], l[1])
  5290. .map(function (t, e) {
  5291. return (e ? 'L ' : 'M ') + t.x + ' ' + t.y
  5292. })
  5293. .join(' ')
  5294. ),
  5295. this.attachment.update()
  5296. }
  5297. }),
  5298. (e.prototype.dragStart = function (t) {
  5299. ;(this.move =
  5300. this.linePoints[0].real === t.target || this.linePoints[1].real === t.target),
  5301. (this.dragStartPoints = this.linePoints.map(function (t) {
  5302. return { x: t.x, y: t.y }
  5303. }))
  5304. }),
  5305. (e.prototype.drag = function (t) {
  5306. var e = this
  5307. this.move ||
  5308. this.linePoints.forEach(function (i, n) {
  5309. ;(i.x = e.dragStartPoints[n].x + t.x * e.multiple),
  5310. (i.y = e.dragStartPoints[n].y + t.y * e.multiple)
  5311. })
  5312. }),
  5313. (e.prototype.dragEnd = function () {
  5314. ;(this.move = !1), delete this.dragStartPoints
  5315. }),
  5316. e
  5317. )
  5318. })(I.default)
  5319. e.default = a
  5320. },
  5321. function (t, e, i) {
  5322. var n =
  5323. (this && this.__assign) ||
  5324. function () {
  5325. return (n =
  5326. Object.assign ||
  5327. function (t) {
  5328. for (var e, i = 1, n = arguments.length; i < n; i++)
  5329. for (var g in (e = arguments[i]))
  5330. Object.prototype.hasOwnProperty.call(e, g) && (t[g] = e[g])
  5331. return t
  5332. }).apply(this, arguments)
  5333. },
  5334. g =
  5335. (this && this.__awaiter) ||
  5336. function (t, e, i, n) {
  5337. return new (i || (i = Promise))(function (g, A) {
  5338. function r(t) {
  5339. try {
  5340. C(n.next(t))
  5341. } catch (t) {
  5342. A(t)
  5343. }
  5344. }
  5345. function o(t) {
  5346. try {
  5347. C(n.throw(t))
  5348. } catch (t) {
  5349. A(t)
  5350. }
  5351. }
  5352. function C(t) {
  5353. var e
  5354. t.done
  5355. ? g(t.value)
  5356. : ((e = t.value),
  5357. e instanceof i
  5358. ? e
  5359. : new i(function (t) {
  5360. t(e)
  5361. })).then(r, o)
  5362. }
  5363. C((n = n.apply(t, e || [])).next())
  5364. })
  5365. },
  5366. A =
  5367. (this && this.__generator) ||
  5368. function (t, e) {
  5369. var i,
  5370. n,
  5371. g,
  5372. A,
  5373. r = {
  5374. label: 0,
  5375. sent: function () {
  5376. if (1 & g[0]) throw g[1]
  5377. return g[1]
  5378. },
  5379. trys: [],
  5380. ops: []
  5381. }
  5382. return (
  5383. (A = { next: o(0), throw: o(1), return: o(2) }),
  5384. 'function' == typeof Symbol &&
  5385. (A[Symbol.iterator] = function () {
  5386. return this
  5387. }),
  5388. A
  5389. )
  5390. function o(A) {
  5391. return function (o) {
  5392. return (function (A) {
  5393. if (i) throw new TypeError('Generator is already executing.')
  5394. for (; r; )
  5395. try {
  5396. if (
  5397. ((i = 1),
  5398. n &&
  5399. (g =
  5400. 2 & A[0]
  5401. ? n.return
  5402. : A[0]
  5403. ? n.throw || ((g = n.return) && g.call(n), 0)
  5404. : n.next) &&
  5405. !(g = g.call(n, A[1])).done)
  5406. )
  5407. return g
  5408. switch (((n = 0), g && (A = [2 & A[0], g.value]), A[0])) {
  5409. case 0:
  5410. case 1:
  5411. g = A
  5412. break
  5413. case 4:
  5414. return r.label++, { value: A[1], done: !1 }
  5415. case 5:
  5416. r.label++, (n = A[1]), (A = [0])
  5417. continue
  5418. case 7:
  5419. ;(A = r.ops.pop()), r.trys.pop()
  5420. continue
  5421. default:
  5422. if (
  5423. !(g = (g = r.trys).length > 0 && g[g.length - 1]) &&
  5424. (6 === A[0] || 2 === A[0])
  5425. ) {
  5426. r = 0
  5427. continue
  5428. }
  5429. if (3 === A[0] && (!g || (A[1] > g[0] && A[1] < g[3]))) {
  5430. r.label = A[1]
  5431. break
  5432. }
  5433. if (6 === A[0] && r.label < g[1]) {
  5434. ;(r.label = g[1]), (g = A)
  5435. break
  5436. }
  5437. if (g && r.label < g[2]) {
  5438. ;(r.label = g[2]), r.ops.push(A)
  5439. break
  5440. }
  5441. g[2] && r.ops.pop(), r.trys.pop()
  5442. continue
  5443. }
  5444. A = e.call(t, r)
  5445. } catch (t) {
  5446. ;(A = [6, t]), (n = 0)
  5447. } finally {
  5448. i = g = 0
  5449. }
  5450. if (5 & A[0]) throw A[1]
  5451. return { value: A[0] ? A[1] : void 0, done: !0 }
  5452. })([A, o])
  5453. }
  5454. }
  5455. },
  5456. r =
  5457. (this && this.__spreadArrays) ||
  5458. function () {
  5459. for (var t = 0, e = 0, i = arguments.length; e < i; e++) t += arguments[e].length
  5460. var n = Array(t),
  5461. g = 0
  5462. for (e = 0; e < i; e++)
  5463. for (var A = arguments[e], r = 0, o = A.length; r < o; r++, g++) n[g] = A[r]
  5464. return n
  5465. },
  5466. o =
  5467. (this && this.__importDefault) ||
  5468. function (t) {
  5469. return t && t.__esModule ? t : { default: t }
  5470. }
  5471. Object.defineProperty(e, '__esModule', { value: !0 })
  5472. var C = o(i(49)),
  5473. I = o(i(5)),
  5474. s = o(i(11)),
  5475. a = o(i(8)),
  5476. l = o(i(7)),
  5477. u = o(i(20)),
  5478. c = o(i(15)),
  5479. h = o(i(21)),
  5480. p = o(i(17)),
  5481. d = o(i(18)),
  5482. f = i(3),
  5483. y = o(i(12)),
  5484. v = o(i(14)),
  5485. m = o(i(16)),
  5486. b = o(i(19)),
  5487. x = o(i(50))
  5488. ;(e.roateDataY = function (t) {
  5489. return (
  5490. [
  5491. (t = n(n({}, t), {
  5492. vertex: t.vertex.map(function (t) {
  5493. return n(n({}, t), { y: -t.y })
  5494. }),
  5495. window: r(t.window),
  5496. column: r(t.column),
  5497. door: r(t.door),
  5498. groundCase: r(t.groundCase),
  5499. slideDoor: r(t.slideDoor),
  5500. bayCase: r(t.bayCase),
  5501. tagging: r(t.tagging),
  5502. furnColumn: r(t.furnColumn),
  5503. furnFlue: r(t.furnFlue),
  5504. doubleDoor: r(t.doubleDoor)
  5505. })).window,
  5506. t.column,
  5507. t.door,
  5508. t.slideDoor,
  5509. t.tagging,
  5510. t.groundCase,
  5511. t.bayCase,
  5512. t.furnColumn,
  5513. t.furnFlue,
  5514. t.doubleDoor
  5515. ].forEach(function (t) {
  5516. t.forEach(function (e, i) {
  5517. t[i] = n(n({}, e), {
  5518. pos: e.pos.map(function (t, e) {
  5519. return e % 2 ? -t : t
  5520. })
  5521. })
  5522. })
  5523. }),
  5524. t
  5525. )
  5526. }),
  5527. (e.attchTransform = function (t) {
  5528. ;(t.getData = function (i) {
  5529. return (
  5530. void 0 === i && (i = !1),
  5531. {
  5532. floors: t.processings.map(function (n) {
  5533. var g = e.roateDataY(n.toData())
  5534. return (g.dire = n.direction.angle), i && (g = x.default(g, t)), g
  5535. })
  5536. }
  5537. )
  5538. }),
  5539. (t.loadData = function (i) {
  5540. i.floors || ((i.show = !0), (i = { floors: [i] }))
  5541. var n = JSON.parse(JSON.stringify(i))
  5542. n.floors.some(function (t) {
  5543. return t.show
  5544. }) || (n.floors[0].show = !0),
  5545. (n.floors = n.floors.map(function (t) {
  5546. return e.roateDataY(
  5547. (function (t) {
  5548. ;(t.column = t.column || []),
  5549. (t.window = t.window || []),
  5550. (t.doubleDoor = t.doubleDoor || []),
  5551. (t.door = t.door || []),
  5552. (t.groundCase = t.groundCase || []),
  5553. (t.bayCase = t.bayCase || []),
  5554. (t.slideDoor = t.slideDoor || []),
  5555. (t.tagging = t.tagging || []),
  5556. (t.furnColumn = t.furnColumn || []),
  5557. (t.furnFlue = t.furnFlue || [])
  5558. var e = [
  5559. 'column',
  5560. 'window',
  5561. 'door',
  5562. 'groundCase',
  5563. 'bayCase',
  5564. 'slideDoor',
  5565. 'tagging',
  5566. 'furnColumn',
  5567. 'furnFlue'
  5568. ]
  5569. t['vertex-xy'] &&
  5570. ((t.vertex = t['vertex-xy']),
  5571. (t.wall = t.segment.map(function (t) {
  5572. return {
  5573. id: t.id,
  5574. p1: t.a,
  5575. p2: t.b,
  5576. border: t.border,
  5577. exterior: t.exterior
  5578. }
  5579. }))),
  5580. t['outdoor-segment'] &&
  5581. ((t.wall = t.wall.concat(
  5582. t['outdoor-segment'].map(function (t) {
  5583. return { id: t.id, p1: t.a, p2: t.b, border: t.border, exterior: !0 }
  5584. })
  5585. )),
  5586. (t.vertex = t.vertex.concat(t['outdoor-vertex'])))
  5587. for (
  5588. var i,
  5589. n = function (n) {
  5590. var g = t.wall
  5591. .filter(function (e) {
  5592. return e !== t.wall[n]
  5593. })
  5594. .find(function (e) {
  5595. var i = e.p1,
  5596. g = e.p2
  5597. return (
  5598. (i === t.wall[n].p1 && g === t.wall[n].p2) ||
  5599. (g === t.wall[n].p1 && i === t.wall[n].p2)
  5600. )
  5601. })
  5602. g &&
  5603. (e.forEach(function (e) {
  5604. t[e].forEach(function (e) {
  5605. e.line === t.wall[n].id &&
  5606. ((e.line = g.id), console.log('update', e))
  5607. })
  5608. }),
  5609. t.wall.splice(n--, 1)),
  5610. (i = n)
  5611. },
  5612. g = 0;
  5613. g < t.wall.length;
  5614. g++
  5615. )
  5616. n(g), (g = i)
  5617. return (
  5618. (t.vertex = t.vertex.filter(function (e) {
  5619. return t.wall.some(function (t) {
  5620. var i = t.p1,
  5621. n = t.p2
  5622. return e.id === i || e.id === n
  5623. })
  5624. })),
  5625. t
  5626. )
  5627. })(t)
  5628. )
  5629. })),
  5630. !0,
  5631. t.processings.forEach(function (t) {
  5632. t.attrs.forEach(function (e) {
  5633. for (; t[e].length; ) t[e][0].ele.destroy(!0, !0)
  5634. })
  5635. }),
  5636. n.floors.forEach(function (e) {
  5637. var i = t.processings.find(function (t) {
  5638. return t.id === e.id
  5639. })
  5640. i || ((i = t.addProcessing()).id = e.id)
  5641. })
  5642. for (
  5643. var g,
  5644. A = function (e) {
  5645. n.floors.some(function (i) {
  5646. var n = i.id
  5647. return t.processings[e].id === n
  5648. }) || t.delProcessing(t.processings[e--]),
  5649. (g = e)
  5650. },
  5651. r = 0;
  5652. r < t.processings.length;
  5653. r++
  5654. )
  5655. A(r), (r = g)
  5656. t.processings.forEach(function (t) {
  5657. for (
  5658. var e,
  5659. i = function (i) {
  5660. var n = t.render.elements[i]
  5661. ;[
  5662. s.default,
  5663. a.default,
  5664. c.default,
  5665. m.default,
  5666. l.default,
  5667. v.default,
  5668. I.default,
  5669. u.default,
  5670. b.default,
  5671. h.default,
  5672. p.default,
  5673. d.default
  5674. ].some(function (t) {
  5675. return n instanceof t
  5676. }) && (t.render.remove(n), i--),
  5677. (e = i)
  5678. },
  5679. n = 0;
  5680. n < t.render.elements.length;
  5681. n++
  5682. )
  5683. i(n), (n = e)
  5684. }),
  5685. n.floors.forEach(function (e) {
  5686. var i = t.processings.find(function (t) {
  5687. return t.id === e.id
  5688. })
  5689. ;(e.surplus = []),
  5690. i.toEles(e),
  5691. (i.direction.__state.direct = !0),
  5692. (i.direction.angle = e.dire || 0),
  5693. (i.direction.__state.direct = !1),
  5694. i.direction.update(),
  5695. t.adapt(e, void 0, void 0, n.floors[0])
  5696. }),
  5697. setTimeout(function () {
  5698. return !1
  5699. }, 5e3)
  5700. })
  5701. }),
  5702. (e.attchStack = function (t) {
  5703. sessionStorage.clear()
  5704. var e = 0,
  5705. i = new C.default('cad_' + Date.now())
  5706. t.stack = i
  5707. var n = function (t) {
  5708. void 0 === t && (t = e)
  5709. var n = i.getLength()
  5710. return { previous: (1 !== n || 1 !== e) && t > 0, next: t < n - 1 }
  5711. }
  5712. ;(t.clearStack = function () {
  5713. sessionStorage.clear(), i.setLength((e = 0))
  5714. }),
  5715. (t.getCurrentData = function () {
  5716. return i.get(e - 1)
  5717. }),
  5718. (t.preservation = f.debounce(function () {
  5719. if (!t.stoppreservation) {
  5720. var n = t.getData(),
  5721. g = i.getLength() - 1
  5722. ;(0 !== g && JSON.stringify(n) === JSON.stringify(i.get(g))) || (i.push(n), ++e)
  5723. }
  5724. }, 500))
  5725. var g
  5726. Date.now()
  5727. ;(t.previous = function () {
  5728. return n().previous
  5729. ? (--e,
  5730. clearTimeout(g),
  5731. (g = setTimeout(function () {
  5732. t.loadData(i.get(e))
  5733. }, 500)),
  5734. n())
  5735. : n()
  5736. }),
  5737. (t.next = function () {
  5738. return n().next
  5739. ? (++e,
  5740. clearTimeout(g),
  5741. (g = setTimeout(function () {
  5742. t.loadData(i.get(e))
  5743. }, 500)),
  5744. n())
  5745. : n()
  5746. }),
  5747. (t.getStackState = n)
  5748. var A = t.destroy
  5749. t.destroy = function () {
  5750. for (var t = [], e = 0; e < arguments.length; e++) t[e] = arguments[e]
  5751. ;(i = null), A.apply(this, t)
  5752. }
  5753. }),
  5754. (e.autoPreservation = function (t) {
  5755. ;[
  5756. I.default,
  5757. s.default,
  5758. a.default,
  5759. l.default,
  5760. u.default,
  5761. c.default,
  5762. h.default,
  5763. p.default,
  5764. y.default,
  5765. d.default,
  5766. v.default,
  5767. m.default
  5768. ].forEach(function (e) {
  5769. var i = e.prototype.dragEnd
  5770. e.prototype.dragEnd = function () {
  5771. for (var e = [], n = 0; n < arguments.length; n++) e[n] = arguments[n]
  5772. return g(this, void 0, void 0, function () {
  5773. return A(this, function (n) {
  5774. switch (n.label) {
  5775. case 0:
  5776. return i ? [4, i.call.apply(i, r([this], e))] : [3, 2]
  5777. case 1:
  5778. n.sent(), (n.label = 2)
  5779. case 2:
  5780. return (
  5781. setTimeout(function () {
  5782. t.preservation()
  5783. }, 100),
  5784. [2]
  5785. )
  5786. }
  5787. })
  5788. })
  5789. }
  5790. var n = t.destroy
  5791. t.destroy = function () {
  5792. for (var t = [], g = 0; g < arguments.length; g++) t[g] = arguments[g]
  5793. n.apply(this, t), (e.prototype.dragEnd = i)
  5794. }
  5795. })
  5796. var e = t.increase
  5797. ;(t.increase = function () {
  5798. for (var i = [], n = 0; n < arguments.length; n++) i[n] = arguments[n]
  5799. var g = e.call.apply(e, r([t], i))
  5800. return (
  5801. g.error ||
  5802. setTimeout(function () {
  5803. t.preservation()
  5804. }, 100),
  5805. g
  5806. )
  5807. }),
  5808. t.preservation()
  5809. })
  5810. },
  5811. function (t, e, i) {
  5812. var n,
  5813. g =
  5814. (this && this.__extends) ||
  5815. ((n = function (t, e) {
  5816. return (n =
  5817. Object.setPrototypeOf ||
  5818. ({ __proto__: [] } instanceof Array &&
  5819. function (t, e) {
  5820. t.__proto__ = e
  5821. }) ||
  5822. function (t, e) {
  5823. for (var i in e) e.hasOwnProperty(i) && (t[i] = e[i])
  5824. })(t, e)
  5825. }),
  5826. function (t, e) {
  5827. function i() {
  5828. this.constructor = t
  5829. }
  5830. n(t, e),
  5831. (t.prototype = null === e ? Object.create(e) : ((i.prototype = e.prototype), new i()))
  5832. }),
  5833. A =
  5834. (this && this.__spreadArrays) ||
  5835. function () {
  5836. for (var t = 0, e = 0, i = arguments.length; e < i; e++) t += arguments[e].length
  5837. var n = Array(t),
  5838. g = 0
  5839. for (e = 0; e < i; e++)
  5840. for (var A = arguments[e], r = 0, o = A.length; r < o; r++, g++) n[g] = A[r]
  5841. return n
  5842. }
  5843. Object.defineProperty(e, '__esModule', { value: !0 })
  5844. var r = i(2),
  5845. o = i(1),
  5846. C = i(0),
  5847. I = function (t, e) {
  5848. return t.contains
  5849. ? t.contains(e)
  5850. : Array.from(t.childNodes).some(function (t) {
  5851. return t === e
  5852. })
  5853. },
  5854. s = (function (t) {
  5855. function e(e) {
  5856. var i = e.local,
  5857. n = e.renderer,
  5858. g = e.active,
  5859. A = void 0 === g ? 0 : g,
  5860. r = e.show,
  5861. o = void 0 === r || r,
  5862. C = t.call(this, { local: i, renderer: n, dialog: 0, active: A, show: o }) || this
  5863. return (
  5864. (C.items = []),
  5865. (C.layerClick = function () {
  5866. return (C.dialog = 0)
  5867. }),
  5868. n.layer.addEventListener('click', C.layerClick),
  5869. C
  5870. )
  5871. }
  5872. return (
  5873. g(e, t),
  5874. (e.prototype.grentImage = function (t) {
  5875. var e = document.createElementNS(o.SVGURI, 'image')
  5876. return (
  5877. (e.href.baseVal = i(54)),
  5878. e.setAttribute('x', (-t / 2).toString()),
  5879. e.setAttribute('y', (-t / 2).toString()),
  5880. e.setAttribute('width', t.toString()),
  5881. e.setAttribute('height', t.toString()),
  5882. e
  5883. )
  5884. }),
  5885. (e.prototype.grentNode = function () {
  5886. var t = document.createElementNS(o.SVGURI, 'g')
  5887. ;(this.path = document.createElementNS(o.SVGURI, 'path')),
  5888. this.path.setAttribute('stroke', 'rgb(0, 200, 175)'),
  5889. this.path.setAttribute('fill', 'transparent')
  5890. var e = document.createElementNS(o.SVGURI, 'circle')
  5891. e.setAttribute('fill', 'rgb(0, 200, 175)'), e.setAttribute('stroke', '#fff')
  5892. var i = document.createElementNS(o.SVGURI, 'text')
  5893. return (
  5894. i.setAttribute('fill', '#fff'),
  5895. i.setAttribute('text-anchor', 'middle'),
  5896. i.setAttribute('dy', '.4em'),
  5897. (this.temp = document.createElementNS(o.SVGURI, 'g')),
  5898. this.temp.appendChild(e),
  5899. this.temp.appendChild(i),
  5900. (this.temp.style.cursor = 'pointer'),
  5901. (this.dialogLayer = document.createElementNS(o.SVGURI, 'g')),
  5902. (this.itemsLayout = document.createElementNS(o.SVGURI, 'path')),
  5903. this.itemsLayout.setAttribute('fill', 'rgba(255,255,255,0.7)'),
  5904. this.dialogLayer.appendChild(this.itemsLayout),
  5905. t.appendChild(this.path),
  5906. t
  5907. )
  5908. }),
  5909. (e.prototype.update = function () {
  5910. var t = this,
  5911. e = 9 * this.multiple,
  5912. i = 2 * this.multiple
  5913. if (
  5914. ((this.real.style.display = this.show ? 'initial' : 'none'),
  5915. this.path.setAttribute('stroke-width', (2 * this.multiple).toString()),
  5916. this.local.length > 0)
  5917. )
  5918. this.path.setAttribute(
  5919. 'd',
  5920. 'M ' +
  5921. this.local
  5922. .map(function (t) {
  5923. return t.x + ' ' + t.y
  5924. })
  5925. .join(' L ')
  5926. )
  5927. else if ((this.path.setAttribute('d', ''), this.dialog)) return (this.dialog = 0)
  5928. this.items.forEach(function (e) {
  5929. try {
  5930. t.real.removeChild(e)
  5931. } catch (t) {}
  5932. }),
  5933. (this.items = []),
  5934. (this.temp.style.display = this.show ? 'initial' : 'none')
  5935. var n = this.local.length - this.items.length
  5936. if (n > 0)
  5937. for (var g = 0; g < n; g++) {
  5938. var A = this.temp.cloneNode(!0)
  5939. this.real.appendChild(A), this.items.push(A)
  5940. }
  5941. else if (n < 0)
  5942. for (g = 0; g > n; g--) {
  5943. var r = this.items.shift()
  5944. this.real.removeChild(r)
  5945. }
  5946. var o = 0
  5947. for (g = 0; g < this.local.length; g++) {
  5948. var C = this.items[g].querySelector('circle'),
  5949. I = this.items[g].querySelector('text')
  5950. this.items[g].setAttribute(
  5951. 'transform',
  5952. 'translate(' + this.local[g].x + ',' + this.local[g].y + ')'
  5953. ),
  5954. (this.items[g].style.display = 'inherit'),
  5955. C.setAttribute('stroke-width', i.toString()),
  5956. C.setAttribute('r', e.toString()),
  5957. I.setAttribute('font-size', (10 * this.multiple).toString()),
  5958. this.local[g].rangn
  5959. ? (C.setAttribute('fill', '#666666'),
  5960. this.items[g].appendChild(this.grentImage(e + i)))
  5961. : (I.textContent = (++o).toString()),
  5962. this.local[g] === this.active &&
  5963. (I.setAttribute('fill', 'rgb(250,250,0)'),
  5964. C.setAttribute('stroke', 'rgb(250,250,0)'),
  5965. this.items[g].setAttribute('class', 'active'))
  5966. }
  5967. var s = this.calcGroup()
  5968. for (g = 0; g < s.length; g++)
  5969. s[g].body.forEach(function (e) {
  5970. var i = t.local.indexOf(e)
  5971. t.items[i].style.display = 'none'
  5972. })
  5973. this.showDialog(2 * (e + i))
  5974. }),
  5975. (e.prototype.showDialog = function (t) {
  5976. var e = this
  5977. if (0 !== this.dialog) {
  5978. for (var i = 0; i < this.dialogLayer.childNodes.length; i++)
  5979. this.dialogLayer.childNodes[i] !== this.itemsLayout &&
  5980. (this.dialogLayer.removeChild(this.dialogLayer.childNodes[i]), i--)
  5981. this.itemsLayout.innerHTML = ''
  5982. var n = 5 * this.multiple,
  5983. g = (t + n) * this.dialog.items.length,
  5984. A = t + 2 * n,
  5985. r = this.dialog.pos.x - g / 2,
  5986. o = this.dialog.pos.y - A - t,
  5987. C = 8 * this.multiple
  5988. this.itemsLayout.setAttribute(
  5989. 'd',
  5990. '\n M ' +
  5991. r +
  5992. ' ' +
  5993. (o + A) +
  5994. '\n A ' +
  5995. A / 2 +
  5996. ' ' +
  5997. A / 2 +
  5998. ' 0 1 1 ' +
  5999. r +
  6000. ' ' +
  6001. o +
  6002. '\n L ' +
  6003. (r + g) +
  6004. ' ' +
  6005. o +
  6006. '\n A ' +
  6007. A / 2 +
  6008. ' ' +
  6009. A / 2 +
  6010. ' 0 1 1 ' +
  6011. (r + g) +
  6012. ' ' +
  6013. (o + A) +
  6014. '\n L ' +
  6015. (r + g / 2 + C) +
  6016. ' ' +
  6017. (o + A) +
  6018. '\n L ' +
  6019. (r + g / 2) +
  6020. ' ' +
  6021. (o + A + C) +
  6022. '\n L ' +
  6023. (r + g / 2 - C) +
  6024. ' ' +
  6025. (o + A) +
  6026. '\n L ' +
  6027. r +
  6028. ' ' +
  6029. (o + A) +
  6030. '\n '
  6031. )
  6032. var I = function (i, g) {
  6033. i.setAttribute(
  6034. 'transform',
  6035. 'translate(' + (r + (t + n) * g) + ',' + (o + (t / 2 + n)) + ')'
  6036. ),
  6037. (i.style.display = 'inline'),
  6038. e.dialogLayer.appendChild(i)
  6039. }
  6040. this.dialog.items.forEach(function (t, i) {
  6041. I(e.items[e.local.indexOf(t)], i + 1)
  6042. }),
  6043. I(this.items[this.local.indexOf(this.dialog.pos)].cloneNode(!0), 0)
  6044. }
  6045. }),
  6046. (e.prototype.calcGroup = function () {
  6047. var t = this,
  6048. e = 18 * this.multiple,
  6049. i = []
  6050. return (
  6051. this.local.forEach(function (n) {
  6052. if (
  6053. !i.find(function (t) {
  6054. return ~t.body.indexOf(n)
  6055. })
  6056. ) {
  6057. var g = t.local.filter(function (t) {
  6058. return n !== t && C.lineDis({ points: [n, t] }) < e
  6059. })
  6060. g.length > 0 && i.push({ head: n, body: g })
  6061. }
  6062. }),
  6063. i
  6064. )
  6065. }),
  6066. (e.prototype.notice = function () {
  6067. 0 !== this.dialog
  6068. ? this.real.appendChild(this.dialogLayer)
  6069. : I(this.real, this.dialogLayer) && this.real.removeChild(this.dialogLayer)
  6070. }),
  6071. (e.prototype.intercept = function (t, e) {
  6072. var i = this,
  6073. n = e.active
  6074. if (!n) return !0
  6075. var g = this.calcGroup().find(function (t) {
  6076. var e = t.head,
  6077. i = t.body
  6078. return e === n || ~i.indexOf(n)
  6079. })
  6080. if (
  6081. (this.nextTick(function () {
  6082. i.dialog = g ? { pos: g.head, items: A(g.body) } : 0
  6083. }),
  6084. this.active && this.items[this.local.indexOf(this.active)])
  6085. ) {
  6086. var r = this.items[this.local.indexOf(this.active)],
  6087. o = r.querySelector('circle')
  6088. r.querySelector('text').setAttribute('fill', '#fff'),
  6089. o.setAttribute('stroke', '#fff'),
  6090. r.setAttribute('class', 'active')
  6091. }
  6092. return !0
  6093. }),
  6094. (e.prototype.setActive = function (t) {
  6095. this.active = t
  6096. }),
  6097. (e.prototype.click = function (t) {
  6098. t.stopPropagation()
  6099. for (var e = 0; e < this.items.length; e++)
  6100. if (I(this.items[e], t.target) || t.target === this.items[e]) {
  6101. this.setActive(this.local[e])
  6102. break
  6103. }
  6104. }),
  6105. (e.prototype.destroy = function () {
  6106. this.renderer.layer.removeEventListener('click', this.layerClick)
  6107. }),
  6108. e
  6109. )
  6110. })(r.CADElement)
  6111. e.default = s
  6112. },
  6113. function (t, e, i) {
  6114. var n =
  6115. (this && this.__spreadArrays) ||
  6116. function () {
  6117. for (var t = 0, e = 0, i = arguments.length; e < i; e++) t += arguments[e].length
  6118. var n = Array(t),
  6119. g = 0
  6120. for (e = 0; e < i; e++)
  6121. for (var A = arguments[e], r = 0, o = A.length; r < o; r++, g++) n[g] = A[r]
  6122. return n
  6123. },
  6124. g =
  6125. (this && this.__importDefault) ||
  6126. function (t) {
  6127. return t && t.__esModule ? t : { default: t }
  6128. }
  6129. Object.defineProperty(e, '__esModule', { value: !0 }), i(25)
  6130. var A = g(i(26)),
  6131. r = i(39),
  6132. o = i(40),
  6133. C = i(46),
  6134. I = i(48),
  6135. s = i(22),
  6136. a = i(51),
  6137. l = i(52),
  6138. u = i(53),
  6139. c = i(55),
  6140. h = i(56),
  6141. p = g(i(57)),
  6142. d = i(58),
  6143. f = g(i(7))
  6144. e.Column = f.default
  6145. var y = g(i(8))
  6146. e.Door = y.default
  6147. var v = g(i(11))
  6148. e.Casement = v.default
  6149. var m = i(2),
  6150. b = g(i(23)),
  6151. x = g(i(59)),
  6152. _ = g(i(63)),
  6153. w = m.CADElement.prototype.listen
  6154. m.CADElement.prototype.listen = function () {
  6155. for (var t = this, e = [], i = 0; i < arguments.length; i++) e[i] = arguments[i]
  6156. var g = this.render.processing.cad.edits.some(function (e) {
  6157. return t instanceof e
  6158. })
  6159. ;(g || this.render.processing.cad.edit || this instanceof b.default) &&
  6160. w.call.apply(w, n([this], e))
  6161. }
  6162. var P = f.default.prototype.addEvent
  6163. function O(t) {
  6164. var e = t.data,
  6165. i = t.layer,
  6166. n = t.edit,
  6167. g = void 0 === n || n,
  6168. f = t.padding,
  6169. y = void 0 === f ? 20 : f,
  6170. v = new A.default({ dom: i, padding: y })
  6171. return (
  6172. (v.edit = g),
  6173. r.attachInsert(v),
  6174. g
  6175. ? (s.attchTransform(v),
  6176. s.attchStack(v),
  6177. s.autoPreservation(v),
  6178. a.attchDOMTranform(v),
  6179. l.attachDisabled(v),
  6180. p.default(v))
  6181. : (s.attchTransform(v), a.attchDOMTranform(v)),
  6182. h.attchCustom(v),
  6183. c.attachStyle(v),
  6184. I.attachScreenshot(v),
  6185. C.attachSign(v),
  6186. o.attachGauge(v),
  6187. u.attachRote(v),
  6188. g && (v.openMouseHandle(), v.showGauge()),
  6189. d.other(v),
  6190. x.default(v),
  6191. v.loadData(e),
  6192. (v.toCanvas = function (t) {
  6193. return _.default(v, t)
  6194. }),
  6195. v
  6196. )
  6197. }
  6198. ;(f.default.prototype.addEvent = function () {
  6199. for (var t = this, e = [], i = 0; i < arguments.length; i++) e[i] = arguments[i]
  6200. var g = this.render.processing.cad.edits.some(function (e) {
  6201. return t instanceof e
  6202. })
  6203. ;(g || this.render.processing.cad.edit) && P.call.apply(P, n([this], e))
  6204. }),
  6205. (e.structureCAD = O),
  6206. (e.default = O),
  6207. (window.structureCAD = O)
  6208. },
  6209. function (t, e) {
  6210. !(function () {
  6211. try {
  6212. if ('undefined' == typeof SVGElement || Boolean(SVGElement.prototype.innerHTML)) return
  6213. } catch (t) {
  6214. return
  6215. }
  6216. function t(e) {
  6217. switch (e.nodeType) {
  6218. case 1:
  6219. return (function (e) {
  6220. var i = ''
  6221. ;(i += '<' + e.tagName),
  6222. e.hasAttributes() &&
  6223. [].forEach.call(e.attributes, function (t) {
  6224. i += ' ' + t.name + '="' + t.value + '"'
  6225. })
  6226. ;(i += '>'),
  6227. e.hasChildNodes() &&
  6228. [].forEach.call(e.childNodes, function (e) {
  6229. i += t(e)
  6230. })
  6231. return (i += '</' + e.tagName + '>')
  6232. })(e)
  6233. case 3:
  6234. return (function (t) {
  6235. return t.textContent
  6236. .replace(/&/g, '&amp;')
  6237. .replace(/</g, '&lt;')
  6238. .replace(/>/g, '&gt;')
  6239. })(e)
  6240. case 8:
  6241. return (function (t) {
  6242. return '\x3c!--' + t.nodeValue + '--\x3e'
  6243. })(e)
  6244. }
  6245. }
  6246. Object.defineProperty(SVGElement.prototype, 'innerHTML', {
  6247. get: function () {
  6248. var e = ''
  6249. return (
  6250. [].forEach.call(this.childNodes, function (i) {
  6251. e += t(i)
  6252. }),
  6253. e
  6254. )
  6255. },
  6256. set: function (t) {
  6257. for (; this.firstChild; ) this.removeChild(this.firstChild)
  6258. try {
  6259. var e = new DOMParser()
  6260. e.async = !1
  6261. var i =
  6262. "<svg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink'>" +
  6263. t +
  6264. '</svg>',
  6265. n = e.parseFromString(i, 'text/xml').documentElement
  6266. ;[].forEach.call(
  6267. n.childNodes,
  6268. function (t) {
  6269. this.appendChild(this.ownerDocument.importNode(t, !0))
  6270. }.bind(this)
  6271. )
  6272. } catch (t) {
  6273. throw new Error('Error parsing markup string')
  6274. }
  6275. }
  6276. }),
  6277. Object.defineProperty(SVGElement.prototype, 'innerSVG', {
  6278. get: function () {
  6279. return this.innerHTML
  6280. },
  6281. set: function (t) {
  6282. this.innerHTML = t
  6283. }
  6284. })
  6285. })()
  6286. },
  6287. function (t, e, i) {
  6288. var n =
  6289. (this && this.__importDefault) ||
  6290. function (t) {
  6291. return t && t.__esModule ? t : { default: t }
  6292. }
  6293. Object.defineProperty(e, '__esModule', { value: !0 })
  6294. var g = i(3),
  6295. A = n(i(27)),
  6296. r = i(2),
  6297. o = (function () {
  6298. function t(t) {
  6299. var e = this,
  6300. i = t.dom,
  6301. n = t.padding,
  6302. g = void 0 === n ? 20 : n
  6303. ;(this.processings = []),
  6304. Object.defineProperty(this, 'processing', {
  6305. get: function () {
  6306. return this.processings.find(function (t) {
  6307. return t.show
  6308. })
  6309. }
  6310. }),
  6311. (this.layer = i),
  6312. (this.padding = g),
  6313. (this.isDestroy = !1),
  6314. (this.resizeHandle = function () {
  6315. return e.processing.data && e.adapt(e.processing.data)
  6316. }),
  6317. this.init()
  6318. }
  6319. return (
  6320. (t.prototype.addProcessing = function () {
  6321. var t = new A.default({ dom: this.layer })
  6322. return (t.cad = this), this.processings.push(t), t
  6323. }),
  6324. (t.prototype.delProcessing = function (t) {
  6325. t.render.elements.forEach(function (t) {
  6326. return t.destroy()
  6327. }),
  6328. this.processings.splice(this.processings.indexOf(t), 1)
  6329. }),
  6330. (t.prototype.adapt = function (t, e, i, n) {
  6331. void 0 === t && (t = this.processing.data)
  6332. var A = this.processings.find(function (e) {
  6333. return e.data.id === t.id
  6334. })
  6335. ;(e =
  6336. e ||
  6337. A.render.layer.offsetWidth ||
  6338. parseInt(getComputedStyle(A.render.layer).width) ||
  6339. 100),
  6340. (i =
  6341. i ||
  6342. A.render.layer.offsetHeight ||
  6343. parseInt(getComputedStyle(A.render.layer).height) ||
  6344. 100),
  6345. 0 === t.vertex.length
  6346. ? (A.render.props = g.getMapMultipleWH(
  6347. e,
  6348. i,
  6349. {
  6350. vertex: [
  6351. { x: -15, y: -15 },
  6352. { x: -15, y: 15 },
  6353. { x: 15, y: -15 },
  6354. { x: 15, y: 15 }
  6355. ]
  6356. },
  6357. this.padding
  6358. ))
  6359. : (e && i && (A.render.props = g.getMapMultipleWH(e, i, t, this.padding)),
  6360. A.render.props.scale <= 0 &&
  6361. (A.render.props = {
  6362. width: 0,
  6363. height: 0,
  6364. multiple: 0,
  6365. scale: 1,
  6366. top: 0,
  6367. left: 0
  6368. })),
  6369. A.render.adaptLayer(e, i),
  6370. r.CADElement.update(A.render)
  6371. }),
  6372. (t.prototype.init = function () {
  6373. window.addEventListener('resize', this.resizeHandle, !1)
  6374. }),
  6375. (t.prototype.destroy = function () {
  6376. for (var t in (window.removeEventListener('resize', this.resizeHandle, !1),
  6377. this.processing.destroy(),
  6378. (this.processing = null),
  6379. (this.isDestroy = !0),
  6380. this))
  6381. 'function' == typeof this[t] ? (this[t] = function () {}) : delete this[t]
  6382. }),
  6383. t
  6384. )
  6385. })()
  6386. e.default = o
  6387. },
  6388. function (t, e, i) {
  6389. var n =
  6390. (this && this.__assign) ||
  6391. function () {
  6392. return (n =
  6393. Object.assign ||
  6394. function (t) {
  6395. for (var e, i = 1, n = arguments.length; i < n; i++)
  6396. for (var g in (e = arguments[i]))
  6397. Object.prototype.hasOwnProperty.call(e, g) && (t[g] = e[g])
  6398. return t
  6399. }).apply(this, arguments)
  6400. },
  6401. g =
  6402. (this && this.__spreadArrays) ||
  6403. function () {
  6404. for (var t = 0, e = 0, i = arguments.length; e < i; e++) t += arguments[e].length
  6405. var n = Array(t),
  6406. g = 0
  6407. for (e = 0; e < i; e++)
  6408. for (var A = arguments[e], r = 0, o = A.length; r < o; r++, g++) n[g] = A[r]
  6409. return n
  6410. },
  6411. A =
  6412. (this && this.__importDefault) ||
  6413. function (t) {
  6414. return t && t.__esModule ? t : { default: t }
  6415. }
  6416. Object.defineProperty(e, '__esModule', { value: !0 })
  6417. var r = A(i(28)),
  6418. o = i(31),
  6419. C = i(36),
  6420. I = i(37),
  6421. s = i(38),
  6422. a = (function () {
  6423. function t(t) {
  6424. var e = t.dom
  6425. ;(this.render = new r.default({ layer: e, processing: this })),
  6426. (this.id = 1),
  6427. (this.points = []),
  6428. (this.lines = []),
  6429. (this.cases = []),
  6430. (this.doors = []),
  6431. (this.columns = []),
  6432. (this.slideDoors = []),
  6433. (this.groundCases = []),
  6434. (this.taggings = []),
  6435. (this.bayCases = []),
  6436. (this.furnColumns = []),
  6437. (this.furnFlues = []),
  6438. (this.doubleDoors = []),
  6439. this.manageShow()
  6440. }
  6441. return (
  6442. (t.prototype.manageShow = function () {
  6443. var t = this,
  6444. e = !1
  6445. Object.defineProperty(this, 'show', {
  6446. get: function () {
  6447. return e
  6448. },
  6449. set: function (i) {
  6450. console.log('---------', e),
  6451. (e = i),
  6452. (t.render.svg.style.display = e ? 'block' : 'none')
  6453. }
  6454. })
  6455. }),
  6456. (t.prototype.rep = function (t) {
  6457. var e = this
  6458. this.attrs.forEach(function (i) {
  6459. var n = e[i].findIndex(function (e) {
  6460. return e.ele === t
  6461. })
  6462. ~n && ((t.__id = e[i][n] && e[i][n].id), e[i].splice(n, 1))
  6463. }),
  6464. this.render || console.error('鎺夌敤 rep'),
  6465. this.render && this.render.remove(t)
  6466. }),
  6467. (t.prototype.retrofitElementDestroy = function (t) {
  6468. var e = this,
  6469. i = t.destroy
  6470. t.__load_destroy ||
  6471. ((t.__load_destroy = !0),
  6472. (t.destroy = function () {
  6473. for (var n = [], A = 0; A < arguments.length; A++) n[A] = arguments[A]
  6474. n[0]
  6475. ? e.rep(t)
  6476. : t.nextTick(function () {
  6477. return e.rep(t)
  6478. }),
  6479. i.call.apply(i, g([t], n)),
  6480. (t.__load_destroy = !1)
  6481. }))
  6482. }),
  6483. (t.prototype.updateWallPoints = function (t, e, i) {}),
  6484. (t.prototype.retrofitElementIntercept = function (t) {}),
  6485. (t.prototype.depLines = function () {
  6486. for (
  6487. var t,
  6488. e = g(this.lines),
  6489. i = function (i) {
  6490. var n = e[i].ele,
  6491. g = e.some(function (t) {
  6492. var e = t.ele
  6493. return (
  6494. n !== e &&
  6495. ((n.points[0] === e.points[0] && n.points[1] === e.points[1]) ||
  6496. (n.points[1] === e.points[0] && n.points[0] === e.points[1]))
  6497. )
  6498. })
  6499. ;(n.points[0] === n.points[1] || g) && (e[i].ele.destroy(), e.splice(i--, 1)),
  6500. (t = i)
  6501. },
  6502. n = 0;
  6503. n < e.length;
  6504. n++
  6505. )
  6506. i(n), (n = t)
  6507. }),
  6508. (t.prototype.destroy = function () {
  6509. var t = this,
  6510. e = this.attrs.map(function (e) {
  6511. return t[e]
  6512. })
  6513. ;(this.data = {
  6514. id: 1,
  6515. show: !0,
  6516. vertex: [],
  6517. wall: [],
  6518. window: [],
  6519. column: [],
  6520. door: [],
  6521. surplus: [],
  6522. slideDoor: [],
  6523. tagging: [],
  6524. groundCase: [],
  6525. bayCase: [],
  6526. doubleDoor: [],
  6527. furnColumn: [],
  6528. furnFlue: [],
  6529. dire: 0
  6530. }),
  6531. e.forEach(function (t) {
  6532. for (; t.length; ) t[0].ele.destroy(!0)
  6533. }),
  6534. this.render.destroy(),
  6535. (this.render = null)
  6536. }),
  6537. t
  6538. )
  6539. })()
  6540. ;(e._Processing = a), (e.default = a)
  6541. var l = n(n(n(n({}, o.methods), C.methods), I.methods), s.methods)
  6542. Object.keys(l).forEach(function (t) {
  6543. return (a.prototype[t] = l[t])
  6544. })
  6545. },
  6546. function (t, e, i) {
  6547. Object.defineProperty(e, '__esModule', { value: !0 })
  6548. var n = i(2),
  6549. g = i(1),
  6550. A = (function () {
  6551. function t(t) {
  6552. var e = this,
  6553. i = t.layer,
  6554. g = t.width,
  6555. A = void 0 === g ? i.offsetWidth : g,
  6556. r = t.height,
  6557. o = void 0 === r ? i.offsetHeight : r,
  6558. C = t.processing
  6559. ;(this.clickHandle = function () {
  6560. e.elements.forEach(function (t) {
  6561. return t.changeSelect(!1)
  6562. })
  6563. }),
  6564. n.CADElement.init(this),
  6565. (this.props = { left: 0, top: 0, width: A, height: o, multiple: 1, scale: 1 }),
  6566. (this.elements = []),
  6567. (this.processing = C),
  6568. this.init(i)
  6569. }
  6570. return (
  6571. (t.prototype.init = function (t) {
  6572. ;(this.svg = document.createElementNS(g.SVGURI, 'svg')),
  6573. (this.g = document.createElementNS(g.SVGURI, 'g')),
  6574. this.svg.appendChild(this.g),
  6575. (this.layer = t),
  6576. (this.layer.style.position = 'relative'),
  6577. (this.svg.style.position = 'absolute'),
  6578. (this.svg.style.left = '0'),
  6579. (this.svg.style.top = '0'),
  6580. (this.svg.style.right = '0'),
  6581. (this.svg.style.bottom = '0'),
  6582. this.svg.setAttribute('version', '1.0'),
  6583. this.svg.setAttribute('xmlns', 'http://www.w3.org/2000/svg'),
  6584. this.svg.setAttribute('xmlns:xlink', 'http://www.w3.org/1999/xlink'),
  6585. this.svg.addEventListener('click', this.clickHandle, !1),
  6586. this.layer.appendChild(this.svg)
  6587. }),
  6588. (t.prototype.adaptLayer = function (t, e) {
  6589. void 0 === t && (t = this.layer.offsetWidth),
  6590. void 0 === e && (e = this.layer.offsetHeight)
  6591. var i = this.props.width / 2 - this.props.left,
  6592. g = this.props.height / 2 - this.props.top
  6593. this.g.setAttribute(
  6594. 'transform',
  6595. '\n translate(' +
  6596. this.props.left +
  6597. ',' +
  6598. this.props.top +
  6599. ')\n translate(' +
  6600. i +
  6601. ',' +
  6602. g +
  6603. ')\n scale(' +
  6604. this.props.scale +
  6605. ',' +
  6606. this.props.scale +
  6607. ')\n translate(' +
  6608. -i +
  6609. ',' +
  6610. -g +
  6611. ')\n '
  6612. ),
  6613. this.svg.setAttribute('width', t.toString()),
  6614. this.svg.setAttribute('height', e.toString()),
  6615. this.svg.setAttribute('viewBox', '0 0 ' + this.props.width + ' ' + this.props.height),
  6616. (this.realWidth = t),
  6617. (this.realHeight = e),
  6618. n.CADElement.update(this)
  6619. }),
  6620. (t.prototype.render = function () {
  6621. n.CADElement.update(this)
  6622. }),
  6623. (t.prototype.screenToRealPoint = function (t) {
  6624. var e = t.x,
  6625. i = t.y,
  6626. n = this.props.width / 2 - this.props.left,
  6627. g = this.props.height / 2 - this.props.top,
  6628. A = this.props.width / this.props.multiple,
  6629. r = this.props.height / this.props.multiple
  6630. return 0 == A || 0 == r
  6631. ? { x: n, y: g }
  6632. : {
  6633. x: ((e * this.props.width) / A - this.props.left - n) / this.props.scale + n,
  6634. y: ((i * this.props.height) / r - this.props.top - g) / this.props.scale + g
  6635. }
  6636. }),
  6637. (t.prototype.realPointToScreen = function (t) {
  6638. var e = t.x,
  6639. i = t.y,
  6640. n = this.props.width / 2 - this.props.left,
  6641. g = this.props.height / 2 - this.props.top,
  6642. A = this.props.width / this.props.multiple,
  6643. r = this.props.height / this.props.multiple
  6644. return {
  6645. x: (((e - n) * this.props.scale + n + this.props.left) * A) / this.props.width,
  6646. y: (((i - g) * this.props.scale + g + this.props.top) * r) / this.props.height
  6647. }
  6648. }),
  6649. (t.prototype.push = function () {
  6650. for (var t = this, e = [], i = 0; i < arguments.length; i++) e[i] = arguments[i]
  6651. e.forEach(function (e) {
  6652. var i = t.elements.find(function (t) {
  6653. return t.zIndex > e.zIndex
  6654. })
  6655. if (i) {
  6656. try {
  6657. t.g.insertBefore(e.real, i.real)
  6658. } catch (i) {
  6659. t.g.appendChild(e.real)
  6660. }
  6661. t.elements.splice(t.elements.indexOf(i), 0, e)
  6662. } else t.g.appendChild(e.real), t.elements.push(e)
  6663. })
  6664. }),
  6665. (t.prototype.remove = function () {
  6666. for (var t = this, e = [], i = 0; i < arguments.length; i++) e[i] = arguments[i]
  6667. e.forEach(function (e) {
  6668. try {
  6669. t.g.removeChild(e.real)
  6670. } catch (t) {}
  6671. ~t.elements.indexOf(e) && t.elements.splice(t.elements.indexOf(e), 1)
  6672. })
  6673. }),
  6674. (t.prototype.destroy = function () {
  6675. this.svg.removeEventListener('click', this.clickHandle, !1),
  6676. this.layer.removeChild(this.svg)
  6677. }),
  6678. t
  6679. )
  6680. })()
  6681. e.default = A
  6682. },
  6683. function (t, e, i) {
  6684. var n =
  6685. (this && this.__assign) ||
  6686. function () {
  6687. return (n =
  6688. Object.assign ||
  6689. function (t) {
  6690. for (var e, i = 1, n = arguments.length; i < n; i++)
  6691. for (var g in (e = arguments[i]))
  6692. Object.prototype.hasOwnProperty.call(e, g) && (t[g] = e[g])
  6693. return t
  6694. }).apply(this, arguments)
  6695. },
  6696. g =
  6697. (this && this.__awaiter) ||
  6698. function (t, e, i, n) {
  6699. return new (i || (i = Promise))(function (g, A) {
  6700. function r(t) {
  6701. try {
  6702. C(n.next(t))
  6703. } catch (t) {
  6704. A(t)
  6705. }
  6706. }
  6707. function o(t) {
  6708. try {
  6709. C(n.throw(t))
  6710. } catch (t) {
  6711. A(t)
  6712. }
  6713. }
  6714. function C(t) {
  6715. var e
  6716. t.done
  6717. ? g(t.value)
  6718. : ((e = t.value),
  6719. e instanceof i
  6720. ? e
  6721. : new i(function (t) {
  6722. t(e)
  6723. })).then(r, o)
  6724. }
  6725. C((n = n.apply(t, e || [])).next())
  6726. })
  6727. },
  6728. A =
  6729. (this && this.__generator) ||
  6730. function (t, e) {
  6731. var i,
  6732. n,
  6733. g,
  6734. A,
  6735. r = {
  6736. label: 0,
  6737. sent: function () {
  6738. if (1 & g[0]) throw g[1]
  6739. return g[1]
  6740. },
  6741. trys: [],
  6742. ops: []
  6743. }
  6744. return (
  6745. (A = { next: o(0), throw: o(1), return: o(2) }),
  6746. 'function' == typeof Symbol &&
  6747. (A[Symbol.iterator] = function () {
  6748. return this
  6749. }),
  6750. A
  6751. )
  6752. function o(A) {
  6753. return function (o) {
  6754. return (function (A) {
  6755. if (i) throw new TypeError('Generator is already executing.')
  6756. for (; r; )
  6757. try {
  6758. if (
  6759. ((i = 1),
  6760. n &&
  6761. (g =
  6762. 2 & A[0]
  6763. ? n.return
  6764. : A[0]
  6765. ? n.throw || ((g = n.return) && g.call(n), 0)
  6766. : n.next) &&
  6767. !(g = g.call(n, A[1])).done)
  6768. )
  6769. return g
  6770. switch (((n = 0), g && (A = [2 & A[0], g.value]), A[0])) {
  6771. case 0:
  6772. case 1:
  6773. g = A
  6774. break
  6775. case 4:
  6776. return r.label++, { value: A[1], done: !1 }
  6777. case 5:
  6778. r.label++, (n = A[1]), (A = [0])
  6779. continue
  6780. case 7:
  6781. ;(A = r.ops.pop()), r.trys.pop()
  6782. continue
  6783. default:
  6784. if (
  6785. !(g = (g = r.trys).length > 0 && g[g.length - 1]) &&
  6786. (6 === A[0] || 2 === A[0])
  6787. ) {
  6788. r = 0
  6789. continue
  6790. }
  6791. if (3 === A[0] && (!g || (A[1] > g[0] && A[1] < g[3]))) {
  6792. r.label = A[1]
  6793. break
  6794. }
  6795. if (6 === A[0] && r.label < g[1]) {
  6796. ;(r.label = g[1]), (g = A)
  6797. break
  6798. }
  6799. if (g && r.label < g[2]) {
  6800. ;(r.label = g[2]), r.ops.push(A)
  6801. break
  6802. }
  6803. g[2] && r.ops.pop(), r.trys.pop()
  6804. continue
  6805. }
  6806. A = e.call(t, r)
  6807. } catch (t) {
  6808. ;(A = [6, t]), (n = 0)
  6809. } finally {
  6810. i = g = 0
  6811. }
  6812. if (5 & A[0]) throw A[1]
  6813. return { value: A[0] ? A[1] : void 0, done: !0 }
  6814. })([A, o])
  6815. }
  6816. }
  6817. },
  6818. r =
  6819. (this && this.__spreadArrays) ||
  6820. function () {
  6821. for (var t = 0, e = 0, i = arguments.length; e < i; e++) t += arguments[e].length
  6822. var n = Array(t),
  6823. g = 0
  6824. for (e = 0; e < i; e++)
  6825. for (var A = arguments[e], r = 0, o = A.length; r < o; r++, g++) n[g] = A[r]
  6826. return n
  6827. }
  6828. Object.defineProperty(e, '__esModule', { value: !0 })
  6829. var o = i(3),
  6830. C = (function () {
  6831. function t(t, e) {
  6832. var i = this,
  6833. n = e.notice,
  6834. C = e.intercept,
  6835. I = e.childAttr,
  6836. s = e.afferent
  6837. return (
  6838. (this.updateNotices = []),
  6839. (this.changeNotices = []),
  6840. (this.getSubAll = function () {
  6841. var t = []
  6842. return (
  6843. i.subscribe.forEach(function (e) {
  6844. t.push.apply(t, e.getSubAll())
  6845. }),
  6846. r(i.subscribe, t)
  6847. )
  6848. }),
  6849. (this.data = t),
  6850. (this.subscribe = []),
  6851. (this.updateKeys = new Set()),
  6852. (this.attrs = []),
  6853. (this.intercept = C),
  6854. (this.afferent = s),
  6855. (this.notice = n),
  6856. (this.direct = !1),
  6857. (this.childAttr = I),
  6858. (this.deleteUpdateKey = this.deleteUpdateKey.bind(this)),
  6859. (this.addUpdateKey = this.addUpdateKey.bind(this)),
  6860. (this.changeNotices = []),
  6861. (this.setHandle = o.debounce(
  6862. function (t) {
  6863. return g(i, void 0, void 0, function () {
  6864. var e
  6865. return A(this, function (i) {
  6866. switch (i.label) {
  6867. case 0:
  6868. return [4, this.setVal.apply(this, t)]
  6869. case 1:
  6870. return (
  6871. (e = i.sent()),
  6872. Object.keys(t[4]).forEach(this.deleteUpdateKey),
  6873. this.noticeTick(),
  6874. this.noticeAll(e || { args: {} }),
  6875. e && this.noticeChange(),
  6876. [2]
  6877. )
  6878. }
  6879. })
  6880. })
  6881. },
  6882. 0,
  6883. function (t) {
  6884. var e = t[0][0],
  6885. i = e.sub,
  6886. n = e.current,
  6887. g = e.state,
  6888. A = e.childAttr,
  6889. r = {}
  6890. return (
  6891. t.forEach(function (t) {
  6892. var e = t[0],
  6893. i = e.key,
  6894. n = e.val
  6895. return (r[i] = n)
  6896. }),
  6897. [i, n, g, A, r]
  6898. )
  6899. },
  6900. function () {
  6901. i.changeNotices = []
  6902. }
  6903. )),
  6904. this
  6905. )
  6906. }
  6907. return (
  6908. (t.prototype.addUpdateKey = function (t) {
  6909. var e = this
  6910. this.updateKeys.add(t),
  6911. this.subscribe.forEach(function (t) {
  6912. t.updateKeys.has(e) || t.addUpdateKey(e)
  6913. })
  6914. }),
  6915. (t.prototype.deleteUpdateKey = function (t) {
  6916. var e = this
  6917. this.updateKeys.delete(t),
  6918. 0 === this.updateKeys.size &&
  6919. (this.subscribe.forEach(function (t) {
  6920. t.deleteUpdateKey(e)
  6921. }),
  6922. this.test && this.test())
  6923. }),
  6924. (t.prototype.noticeTick = function () {
  6925. if (0 === this.updateKeys.size)
  6926. for (; this.updateNotices.length; ) this.updateNotices.shift()()
  6927. this.subscribe.forEach(function (t) {
  6928. return t.noticeTick()
  6929. })
  6930. }),
  6931. (t.prototype.noticeChange = function () {
  6932. for (; this.changeNotices.length; ) this.changeNotices.shift()()
  6933. this.subscribe.forEach(function (t) {
  6934. return t.noticeChange()
  6935. })
  6936. }),
  6937. (t.prototype.nextTick = function (t) {
  6938. var e = this
  6939. setTimeout(function () {
  6940. 0 === e.updateKeys.size
  6941. ? t()
  6942. : (e.updateNotices.push(t),
  6943. setTimeout(function () {
  6944. if (~e.updateNotices.indexOf(t)) {
  6945. e.updateNotices.slice(e.updateNotices.indexOf(t), 1)
  6946. t()
  6947. }
  6948. }, 200))
  6949. })
  6950. }),
  6951. (t.prototype.nextChange = function (t) {
  6952. this.changeNotices.push(t)
  6953. }),
  6954. (t.prototype.interceptAll = function (t) {
  6955. return g(this, void 0, void 0, function () {
  6956. var e, i, n, g, C, I
  6957. return A(this, function (A) {
  6958. for (
  6959. e = [], i = [], g = r([this], this.getSubAll()), C = void 0, I = 0;
  6960. (C = g[I]);
  6961. I++
  6962. )
  6963. if ((i.push(C.afferent), C.intercept)) {
  6964. if (((n = C.intercept(i, t, e)), e.push(n), o.type.isBoolean(n) && !n))
  6965. return [2, !1]
  6966. } else e.push(void 0)
  6967. return [2, e]
  6968. })
  6969. })
  6970. }),
  6971. (t.prototype.noticeAll = function (t) {
  6972. t = n(n({}, t), {
  6973. state: { data: this.afferent || this, trigger: t.state, ret: void 0 }
  6974. })
  6975. var e = this.notice(t)
  6976. t.state.ret = e
  6977. for (var i = 0; i < this.subscribe.length; i++) this.subscribe[i].noticeAll(t)
  6978. return t
  6979. }),
  6980. (t.prototype.bindDataChange = function () {
  6981. var t = this
  6982. ;(this.__firstBind = !0),
  6983. Object.keys(this.data).forEach(function (e) {
  6984. t.attrs.push(e), t.bindItem(t, t, t.data, e, t.childAttr)
  6985. }),
  6986. (this.__firstBind = !1)
  6987. }),
  6988. (t.prototype.getSeftSub = function () {
  6989. return [
  6990. this,
  6991. this.subscribe.flatMap(function (t) {
  6992. return t.getSeftSub()
  6993. })
  6994. ]
  6995. }),
  6996. (t.prototype.setVal = function (t, e, i, r, C) {
  6997. return g(this, void 0, void 0, function () {
  6998. var g,
  6999. I,
  7000. s,
  7001. a = this
  7002. return A(this, function (A) {
  7003. switch (A.label) {
  7004. case 0:
  7005. return (
  7006. (g = { args: C }),
  7007. !o.type.isUndefined(C.x) && o.type.isUndefined(C.y)
  7008. ? (C.y = this.afferent.y)
  7009. : !o.type.isUndefined(C.y) &&
  7010. o.type.isUndefined(C.x) &&
  7011. (C.x = this.afferent.x),
  7012. [4, t.interceptAll(C)]
  7013. )
  7014. case 1:
  7015. return (I = A.sent())
  7016. ? ((s = n({}, C)),
  7017. I.forEach(function (t) {
  7018. return (s = n(n({}, s), t))
  7019. }),
  7020. Object.keys(i).forEach(function (n) {
  7021. s.hasOwnProperty(n) &&
  7022. i[n] !== s[n] &&
  7023. (a.relieveOldSubs(i[n], r),
  7024. (i[n] = s[n]),
  7025. a.continueListen(t, e, i, n, r, s[n]))
  7026. }),
  7027. [2, g])
  7028. : [2, null]
  7029. }
  7030. })
  7031. })
  7032. }),
  7033. (t.prototype.relieveOldSubs = function (e, i) {
  7034. var n = this
  7035. o.type.isUndefined(e) ||
  7036. (e instanceof t || (i && e[i] instanceof t)
  7037. ? this.relieveOldSub(e, i)
  7038. : o.type.isArray(e)
  7039. ? e.forEach(function (t, e) {
  7040. n.relieveOldSub(t, i)
  7041. })
  7042. : o.type.isObject(e) &&
  7043. Object.values(e).forEach(function (t) {
  7044. n.relieveOldSub(t, i)
  7045. }))
  7046. }),
  7047. (t.prototype.relieveOldSub = function (e, i) {
  7048. e instanceof t
  7049. ? e.subscribe.splice(e.subscribe.indexOf(this), 1)
  7050. : i && e[i] instanceof t && e[i].subscribe.splice(e[i].subscribe.indexOf(this), 1)
  7051. }),
  7052. (t.prototype.continueListen = function (e, i, n, g, A, r) {
  7053. var C = this
  7054. o.type.isNull(r) ||
  7055. o.type.isUndefined(r) ||
  7056. (r instanceof t || (A && r[A] instanceof t)
  7057. ? ~(r instanceof t ? r : r[A]).subscribe.indexOf(e) ||
  7058. this.bindItem(e, i[g], n, g, A, !0)
  7059. : o.type.isArray(r)
  7060. ? r.forEach(function (t, n) {
  7061. C.bindItem(e, i[g], r, n, A, !0)
  7062. })
  7063. : o.type.isObject(r) &&
  7064. Object.keys(n[g]).forEach(function (t) {
  7065. C.bindItem(e, i[g], r, t, A, !0)
  7066. }))
  7067. }),
  7068. (t.prototype.bindItem = function (e, i, n, g, A, r) {
  7069. void 0 === r && (r = !1),
  7070. n instanceof t
  7071. ? n.subscribe.push(e)
  7072. : A && n[g] && n[g][A] instanceof t && n[g][A].subscribe.push(e),
  7073. r ||
  7074. (Object.defineProperty(i, g, {
  7075. get: function () {
  7076. return n[g]
  7077. },
  7078. set: function (t) {
  7079. this.__firstBind || this.direct
  7080. ? ((n[g] = t), this.continueListen(e, i, n, g, A, t))
  7081. : (this.addUpdateKey(g),
  7082. this.setHandle({
  7083. sub: e,
  7084. current: i,
  7085. state: n,
  7086. key: g,
  7087. childAttr: A,
  7088. val: t
  7089. }))
  7090. }
  7091. }),
  7092. this.continueListen(e, i, n, g, A, n[g]))
  7093. }),
  7094. t
  7095. )
  7096. })()
  7097. ;(e._State = C),
  7098. (e.getter = function (t, e) {
  7099. e.attrs.forEach(function (i) {
  7100. Object.defineProperty(t, i, {
  7101. configurable: !0,
  7102. get: function () {
  7103. return e[i]
  7104. }
  7105. })
  7106. })
  7107. }),
  7108. (e.setter = function (t, e) {
  7109. e.attrs.forEach(function (i) {
  7110. Object.defineProperty(t, i, {
  7111. configurable: !0,
  7112. set: function (t) {
  7113. e[i] = t
  7114. }
  7115. })
  7116. })
  7117. }),
  7118. (e.State = C)
  7119. },
  7120. function (t, e, i) {
  7121. Object.defineProperty(e, '__esModule', { value: !0 }),
  7122. (e.default = {
  7123. menu: {
  7124. __name: '鑿滃崟',
  7125. music: '鑳屾櫙闊充箰',
  7126. base: '鍩虹璁剧疆',
  7127. information: '鍦烘櫙淇℃伅',
  7128. screen: '鍒濆鐢婚潰',
  7129. hotspot: '娣诲姞鐑偣',
  7130. guide: '鑷姩瀵艰',
  7131. sign: '鍦伴潰Logo',
  7132. walk: '婕父鍙',
  7133. model: '3D妯″瀷',
  7134. cad: '鎴峰瀷鍥�',
  7135. data: '鏁版嵁瀵规帴',
  7136. custom: '涓婁紶涓嬭浇',
  7137. videos: '娣诲姞瑙嗛',
  7138. vrhouse: '鐪嬫埧 4Dkankan',
  7139. business: '鐪嬪簵 4Dkankan',
  7140. scene: '鍦烘櫙璺宠浆',
  7141. video: '娣诲姞瑙嗛',
  7142. decor: '涓€閿崲瑁�',
  7143. link: '鍦烘櫙鍏宠仈'
  7144. },
  7145. modules: {
  7146. __name: '妯″潡',
  7147. base: {
  7148. __name: '鍩虹璁剧疆',
  7149. qrcode: '鍦烘櫙浜岀淮鐮�',
  7150. qrcode_download: '涓嬭浇浜岀淮鐮�',
  7151. qrcode_tips: '鑷畾涔塴ogo',
  7152. scene_link: '鍦烘櫙鍦板潃',
  7153. scene_link_copy: '澶嶅埗閾炬帴',
  7154. scene_link_copy_tips: '鍦烘櫙閾炬帴澶嶅埗鎴愬姛',
  7155. bgm: '鑳屾櫙闊充箰',
  7156. pano_text: '婕父瑙嗚鍙',
  7157. mode_2d_text: '骞抽潰鍥惧彲瑙�',
  7158. mode_3d_text: '涓夌淮妯″瀷鍙',
  7159. map_text: '灏忓湴鍥鹃瑙堝彲瑙�',
  7160. vr_text: 'VR妯″紡鍙',
  7161. vr_tips: '璇峰湪鎵嬫満灞曠ず椤甸潰瑙傜湅VR鏁堟灉',
  7162. guide_text: '鑷姩瀵艰鍙',
  7163. rule_text: '鏍囧昂鍙',
  7164. cad_text: '淇鍥炬埛鍨嬪彲瑙�',
  7165. measure_text: '娴嬮噺宸ュ叿鍙',
  7166. measure_tips: '缂栬緫妯″紡涓嬫棤娉曚娇鐢ㄦ祴璺濆姛鑳斤紝璇峰湪灞曠ず椤甸潰鎿嶄綔',
  7167. turned_vr: 'VR鍔熻兘宸瞷status}',
  7168. turned_map: '灏忓湴鍥惧姛鑳藉凡{status}',
  7169. turned_cad: '淇鍥炬埛鍨嬪姛鑳藉凡{status}',
  7170. turned_m2d: '骞抽潰瑙嗚鍔熻兘宸瞷status}',
  7171. turned_m3d: '涓夌淮瑙嗚鍔熻兘宸瞷status}',
  7172. turned_pano: '婕父瑙嗚鍔熻兘宸瞷status}',
  7173. turned_rule: '鏍囧昂鍔熻兘宸瞷status}',
  7174. turned_guide: '鑷姩瀵艰鍔熻兘宸瞷status}',
  7175. turned_measure: '娴嬭窛鍔熻兘宸瞷status}',
  7176. shortcut_copy: '涓€閿鍒�',
  7177. share_link: '鍒嗕韩閾炬帴缁欏ソ鍙�',
  7178. measure_show_tips: '璇峰湪灞曠ず椤甸潰浣跨敤娴嬭窛鍔熻兘',
  7179. delete_measure_line: '鍒犻櫎娴嬮噺绾�',
  7180. please_click_tips: "'璇风偣鍑烩€滃厑璁糕€�'",
  7181. vr_fail_app_tips:
  7182. '娴忚鍣ㄦ湭鑳芥娴嬪埌杞姩銆傝鍦ㄦ墜鏈烘垨娴忚鍣ㄨ缃腑寮€鍚簡杩愬姩鍜屾柟鍚戣闂瓑璁剧疆锛岀劧鍚庡埛鏂版椤甸潰銆�',
  7183. vr_fail_safari_tips:
  7184. '娴忚鍣ㄦ湭鑳芥娴嬪埌杞姩銆備负瀹屾暣浣撻獙VR鏁堟灉锛岃鎵撳紑 鈥滆缃€� > 鈥淪afari鈥� > 鈥滈殣绉佸拰瀹夊叏鈥� 涓嬬殑 鈥滆繍鍔ㄥ拰鏂瑰悜璁块棶鈥� 寮€鍏筹紝鐒跺悗鍒锋柊姝ら〉闈€€�',
  7185. loading_bottom_text: '鍥涚淮鏃朵唬鎻愪緵鎶€鏈敮鎸�',
  7186. vr_fail_reopen_tips:
  7187. '杩愬姩鍜屾柟鍚戣闂け璐ャ€傛偍闇€瑕佸畬鍏ㄥ叧闂搴旂敤锛岀劧鍚庡啀娆℃墦寮€锛屽苟鍏佽璁块棶杩愬姩涓庢柟鍚�',
  7188. add_music_title: '娣诲姞鑳屾櫙闊充箰',
  7189. add_music_tips: '鏀寔MP3銆乄AV绛夐煶棰戞牸寮忥紝涓嶈秴杩�5MB',
  7190. re_add_music: '閲嶆柊娣诲姞',
  7191. re_add_title: '閲嶆柊娣诲姞鑳屾櫙闊充箰',
  7192. re_add_tips:
  7193. '鏂版坊鍔犵殑闊充箰浼氭浛鎹㈠凡娣诲姞鐨勯煶涔愶紝<br>纭畾缁х画娣诲姞鍚楋紵',
  7194. re_add_mobile_tips: '閲嶆柊娣诲姞灏嗕細瑕嗙洊宸叉坊鍔犻煶涔�',
  7195. delete_tips: '鎮ㄧ‘瀹氬垹闄ゅ綋鍓嶉煶涔愬悧锛�',
  7196. delete_title: '鍒犻櫎鑳屾櫙闊充箰',
  7197. bgm_empty_tips: '璇烽€夋嫨鑳屾櫙闊充箰',
  7198. wechat: '寰俊',
  7199. friend_circle: '鏈嬪弸鍦�'
  7200. },
  7201. information: {
  7202. __name: '鍦烘櫙淇℃伅',
  7203. title: '鏍囬',
  7204. title_tips: '璇峰~鍐欐爣棰�',
  7205. title_require: '璇锋坊鍔犳爣棰橈紙{limit}瀛椾互鍐咃級',
  7206. description: '绠€浠�',
  7207. description_tips: '璇峰~鍐欑畝浠�',
  7208. link: '娣诲姞閾炬帴',
  7209. link_text_tips: '璇峰~鍐欓摼鎺ユ枃鏈�',
  7210. link_href_tips: '璇峰~鍐欓摼鎺ュ湴鍧€',
  7211. link_text_require: '璇峰~鍐欓摼鎺ユ枃鏈�',
  7212. link_href_require: '璇峰~鍐欓摼鎺ュ湴鍧€',
  7213. classify: '鍒嗙被',
  7214. upload_time: '涓婁紶鏃堕棿',
  7215. record: '鏈褰�',
  7216. shoot_count: '鎷嶆憚鏁伴噺',
  7217. password: '璁块棶瀵嗙爜',
  7218. password_tips: '璁块棶瀵嗙爜',
  7219. password_desc:
  7220. '璁剧疆瀹屽瘑鐮佸悗锛屽綋鍏朵粬浜鸿闂偍鐨勫満鏅椂锛岄渶瑕佽緭鍏ユ偍璁剧疆鐨勫瘑鐮佹墠鑳借闂€傚鏃犻渶璁剧疆鐐瑰嚮鈥滃叕寮€鈥濆嵆鍙€�',
  7221. password_require: '璇疯緭鍏limit}浣嶆暟鐨勫瘑鐮�',
  7222. logo_edit: '缂栬緫椤甸潰Logo',
  7223. logo_exit: '閫€鍑洪〉闈ogo缂栬緫',
  7224. logo_show_bottom: '鏄剧ず鍒濆Logo',
  7225. logo_style1: '椤堕儴Logo-鏂�',
  7226. logo_style2: '椤堕儴Logo-闀�',
  7227. logo_delete: '鏄惁鍒犻櫎宸蹭笂浼燣ogo锛�'
  7228. },
  7229. screen: {
  7230. __name: '鍒濆鐢婚潰',
  7231. current: '褰撳墠鍒濆瑙嗚',
  7232. current_set: '璁剧疆涓哄垵濮嬬敾闈�',
  7233. tips: '绉诲姩灞忓箷,鐐瑰嚮淇濆瓨鎮ㄧ殑鍒濆鐢婚潰銆�'
  7234. },
  7235. hotspot: {
  7236. __name: '娣诲姞鐑偣',
  7237. add: '娣诲姞鐑偣',
  7238. edit: '缂栬緫鐑偣',
  7239. count: '宸叉坊鍔犵儹鐐�',
  7240. location: '鐑偣瀹氫綅',
  7241. location_tips: '灏嗙儹鐐规爣璁板苟鎷栧姩鍒板悎閫傜殑浣嶇疆銆�',
  7242. location_modify: '淇敼鐑偣浣嶇疆',
  7243. location_confirm: '纭畾鐑偣浣嶇疆',
  7244. location_desc:
  7245. '璇蜂簬宸︽柟涓や釜鍦烘櫙鍖哄煙鎷栧姩鐑偣骞跺鍑嗘墍闇€鏍囪鐨勪綅缃€�',
  7246. style: '閫夋嫨鐑偣鏍峰紡',
  7247. style_desc:
  7248. '閫夋嫨榛樿鏍峰紡锛屾垨鑰呮墜鍔ㄤ笂浼犲浘鐗囪嚜瀹氫箟鏍峰紡锛屼笂浼犲浘鐗囨牸寮廝NG/JPG',
  7249. style_name: '鏍峰紡',
  7250. style_dele: '鏄惁鍒犻櫎璇ユ牱寮忥紵',
  7251. style_manage: '绠$悊',
  7252. style_exit: '閫€鍑�',
  7253. media_photo: '鍙坊鍔犲浘鐗囦互涓板瘜鐑偣鍐呭',
  7254. media_video: '鍙笂浼犳湰鍦拌棰戯紝杩涜鏇村鐨勫睍绀�',
  7255. media_voice: '鍙笂浼犳湰鍦伴煶棰戝唴瀹硅繘琛岀儹鐐硅瑙�',
  7256. media_link: '鍙坊鍔犺棰戠殑瓒呴摼鎺ワ紝瑙嗛灏嗗湪鐑偣閲屾挱鏀�',
  7257. title: '鏍囬',
  7258. title_tips: '璇峰~鍐欐爣棰�',
  7259. title_require: '璇锋坊鍔犳爣棰橈紙{limit}瀛椾互鍐咃級',
  7260. description: '绠€浠�',
  7261. description_tips: '璇峰~鍐欑畝浠�',
  7262. text_link: '娣诲姞閾炬帴',
  7263. text_link_text_tips: '璇峰~鍐欓摼鎺ユ枃鏈�',
  7264. text_link_href_tips: '璇峰~鍐欓摼鎺ュ湴鍧€',
  7265. text_link_text_require: '閾炬帴鏂囨湰涓嶈兘涓虹┖',
  7266. text_link_href_require: '閾炬帴鍦板潃涓嶈兘涓虹┖',
  7267. link: '宓屽叆寮忛摼鎺�',
  7268. link_require: '璇锋坊鍔犲閾�',
  7269. photo: '鍥剧墖',
  7270. voice: '闊抽',
  7271. video: '瑙嗛',
  7272. photo_tips: '鏀寔JPG銆丳NG绛夊浘鐗囨牸寮忥紝涓嶈秴杩噞size}MB',
  7273. voice_tips: '鏀寔MP3銆乄AV绛夐煶棰戞牸寮忥紝涓嶈秴杩噞size}MB',
  7274. video_tips: '鏀寔MP4銆丮OV绛夎棰戞牸寮忥紝涓嶈秴杩噞size}MB',
  7275. photo_require: '璇锋坊鍔犲浘鐗�',
  7276. voice_require: '璇锋坊鍔犻煶棰�',
  7277. video_require: '璇锋坊鍔犺棰�',
  7278. m_location_tips1: '灏嗕笂涓嬪垎灞忕儹鐐瑰鍑嗗悓涓€涓墍鏍囪鐩爣',
  7279. m_location_tips2: '纭畾鐑偣浣嶇疆锛岀偣鍑讳笅涓€姝ョ紪杈戝唴瀹�',
  7280. m_location_up: '涓婃柟',
  7281. m_location_left: '宸︿晶',
  7282. m_location_move_tips:
  7283. '杈呭姪鏍″噯浣嶇疆鍙兘涓嶅噯纭紝<br>璇锋鏌ュ苟鎷栧姩鍒皗direction}鐩稿悓浣嶇疆',
  7284. set_visible_btn: '璁剧疆鐑偣鍙',
  7285. save_visible_btn: '淇濆瓨褰撳墠璁剧疆',
  7286. save_hotspot_done: '淇濆瓨鐑偣鎴愬姛',
  7287. save_hotspot_fail: '淇濆瓨鐑偣澶辫触',
  7288. delete_hotspot_tips: '鏄惁鍒犻櫎褰撳墠鐑偣锛�',
  7289. delete_hotspot_done: '鐑偣鍒犻櫎鎴愬姛',
  7290. delete_hotspot_fail: '鐑偣鍒犻櫎澶辫触',
  7291. cant_add_hotspot_tips: '鏃犳硶娣诲姞鐑偣',
  7292. cant_add_hotspot_content: '鐑偣鏁扮洰宸茶揪鏈€澶э細{limit}',
  7293. link_text_tips: '閾炬帴鏍囬',
  7294. link_href_tips: '閾炬帴',
  7295. link_text_require: '璇峰~鍐欓摼鎺ユ枃鏈�',
  7296. link_href_require: '璇峰~鍐欓摼鎺ュ湴鍧€',
  7297. add_media: '娣诲姞澶氬獟浣�'
  7298. },
  7299. guide: {
  7300. __name: '鑷姩瀵艰',
  7301. route: '瀵艰埅璺嚎',
  7302. view: '鍒囨崲瑙嗚',
  7303. record: '寮€濮嬪綍鍒�',
  7304. record_audio: '褰曢煶',
  7305. pause: '鏆傚仠',
  7306. stop: '鍋滄',
  7307. end: '缁撴潫',
  7308. delete: '鍒犻櫎',
  7309. continue: '缁х画褰曞埗',
  7310. preview: '棰勮',
  7311. clear: '娓呯┖',
  7312. sync: '澹扮敾鍚屾',
  7313. sound: '褰曞埗闊抽',
  7314. file: '涓婁紶闊抽',
  7315. file_add: '娣诲姞闊抽',
  7316. tips: '鐐瑰嚮寮€濮嬪綍鍒跺瑙�',
  7317. start: '寮€濮�',
  7318. finish: '瀹屾垚褰曞埗',
  7319. less: '灏忎簬',
  7320. replace_tips: '鏄惁閲嶆柊褰曞埗瀵艰锛�',
  7321. replace_content: '閲嶆柊褰曞埗灏嗚鐩栦箣鍓嶇殑鏁版嵁',
  7322. sound_open_fail_tips: '楹﹀厠椋庡紑鍚け璐�',
  7323. sound_tips: '楹﹀厠椋庡紑鍚け璐ワ紝鏄惁缁х画褰曞埗锛�',
  7324. sound_content:
  7325. '鎮ㄩ渶瑕佸湪娴忚鍣ㄧ殑璁剧疆涓厑璁告缃戠珯浣跨敤楹﹀厠椋庯紝骞朵笖娣诲姞楹﹀厠椋庤澶囷紝鐒跺悗鍒锋柊璇ラ〉闈€€�',
  7326. upload_sound_done: '涓婁紶璇煶璁茶В鎴愬姛',
  7327. upload_sound_fail: '涓婁紶璇煶璁茶В澶辫触',
  7328. delete_sound_done: '鍒犻櫎璇煶璁茶В鎴愬姛',
  7329. delete_sound_fail: '鍒犻櫎璇煶璁茶В澶辫触',
  7330. room_title: '鏍囬',
  7331. room_title_tips: '璇疯緭鍏ュ瑙堟爣棰�',
  7332. room_title_require: '璇疯緭鍏ユ爣棰�',
  7333. room_panel_title: '瀵艰淇℃伅',
  7334. room_sound_title: '褰曞埗闊抽',
  7335. delete_video_content: '鎮ㄥ綋鍓嶅綍鍒剁殑鐢婚潰灏嗕細琚垹闄�',
  7336. delete_file_content: '鎮ㄥ綋鍓嶄笂浼犵殑璇煶璁茶В灏嗕細琚垹闄�',
  7337. delete_sound_content: '宸插綍鍒堕厤闊冲皢浼氳鍒犻櫎',
  7338. camera_save_success: '闀滃ご淇濆瓨鎴愬姛',
  7339. clear_video_tip: '鎮ㄥ綋鍓嶅綍鍒剁殑鍐呭灏嗕細琚竻绌�',
  7340. saving_sound: '姝e湪淇濆瓨褰曢煶',
  7341. save_sound_done: '褰曢煶淇濆瓨鎴愬姛',
  7342. save_sound_fail: '褰曢煶淇濆瓨澶辫触',
  7343. no_sound_tips: '褰撳墠涓嶆敮鎸佸綍闊�<br>鍙湪寰俊鎴栫數鑴戠褰曢煶',
  7344. sound_success_tips: '楹﹀厠椋庡紑鍚垚鍔�',
  7345. sound_fail_tips: '褰撳墠涓嶆敮鎸佸綍闊�<br>鍏紬鍙蜂俊鎭厤缃敊璇�',
  7346. wechat_sound_fail_tips: '寰俊楹﹀厠椋庡紑鍚け璐�',
  7347. open_sound_guide_tips:
  7348. '鍙兘鎮ㄨ嫢瑕佸紑鍚綍闊筹紝璇蜂簬寰俊鐨勮缃€旈殣绉佲€旀巿鏉冪鐞嗕腑寮€鍚€備笖淇濊瘉褰曢煶璁惧姝e父',
  7349. sound_cant_open_tips:
  7350. '姝ゆ祻瑙堝櫒涓嶆敮鎸佸綍闊炽€�<br>寤鸿鏇存崲鍏朵粬涓绘祦娴忚鍣紝浣撻獙鏇翠匠',
  7351. replace_sound_tips: '鏄惁閲嶆柊褰曞埗锛�',
  7352. replace_sound_content: '宸叉湁璇煶璁茶В灏嗕細琚浛鎹�',
  7353. merge_sound_fail: '鍚堝苟璇煶璁茶В澶辫触',
  7354. sound_limit: '褰曞埗鏃堕暱涓簕time}鍒嗛挓锛屽綋鍓嶅凡缁忚揪鍒颁笂闄�',
  7355. select_to_record: '璇烽€夋嫨瀵瑰簲鐐逛綅杩涜鏈尯鍩熺殑瀵艰褰曞埗'
  7356. },
  7357. sign: {
  7358. title: 'Logo鏍峰紡',
  7359. size: 'Logo澶у皬',
  7360. style0: '鏍峰紡涓€',
  7361. style1: '鏍峰紡浜�',
  7362. style2: '鏍峰紡涓�',
  7363. style3: '鎵嬪姩涓婁紶'
  7364. },
  7365. walk: {
  7366. title: '婕父鍙',
  7367. tips1:
  7368. '閫氳繃璁剧疆婕父鍙锛岃繘涓€姝ヤ紭鍖栧湪婕父鏃跺嚭鐜扮殑浣撻獙锛涗緥濡傦紝鎮ㄥ湪婕父鏃讹紝鍑虹幇绌块€忔埧闂寸殑鎯呭喌銆�',
  7369. tips2: '閫氳繃鐐归€夊悇涓极娓哥偣鐨勮繛绾垮嵆鍙缃极娓哥偣鐨勫彲琛屾€с€�',
  7370. save: '淇濆瓨褰撳墠璁剧疆',
  7371. hide: '闅愯棌璇ョ偣浣嶇疆',
  7372. show: '鏄剧ず璇ョ偣浣嶇疆',
  7373. pano_tips:
  7374. '鎻愮ず锛氭偍闅愯棌浜嗗垵濮嬬敾闈㈢偣浣嶏紝姝ゆ搷浣滃皢浣胯繘鍏ュ満鏅悗鏃犳硶婕父銆�'
  7375. },
  7376. model: {
  7377. __name: '3D妯″瀷',
  7378. cad: 'CAD瑙嗚',
  7379. cad_download: '骞抽潰鍥句笅杞�',
  7380. view: '鍒囨崲瑙嗚',
  7381. title: '澧炴坊缁撴瀯',
  7382. title_door: '闂ㄧ獥绫�',
  7383. title_component: '鏋勫缓绫�',
  7384. title_other: '鍏朵粬',
  7385. attribute: '灞炴€�',
  7386. door: '闂�',
  7387. double_door: '闂�',
  7388. slideDoor: '绉婚棬',
  7389. casement: '绐�',
  7390. bayCase: '椋樼獥',
  7391. groundCase: '钀藉湴绐�',
  7392. column: '鏌卞瓙',
  7393. furnColumn: '妗嗘灦鏌�',
  7394. furnFlue: '鐑熼亾',
  7395. point: '鐐�',
  7396. line: '澧�',
  7397. tagging: '鏍囨敞',
  7398. tagging_name_tips: '璇疯緭鍏ュ悕绉�',
  7399. tagging_area_tips: '杈撳叆闈㈢Н锛屾敮鎸佸皬鏁扮偣鍚庨潰涓や綅',
  7400. direction: '鎸囧崡閽�',
  7401. wallLine: '澧欏睘鎬�',
  7402. widget_delete: '{widget}灏嗚鍒犻櫎',
  7403. panel_btn_default: '鎭㈠榛樿',
  7404. panel_btn_delete: '鍒犻櫎閮ㄤ欢',
  7405. attr_angle: '鏃嬭浆瑙掑害',
  7406. attr_within: '缈昏浆鏂瑰悜',
  7407. attr_ewidth: '瀹藉害',
  7408. attr_eheight: '楂樺害',
  7409. attr_tick: '鍘氬害',
  7410. attr_showTitle: '鏍囨敞鍚嶇О',
  7411. attr_showContent: '鏍囨敞闈㈢Н',
  7412. attr_top: '椤堕儴',
  7413. attr_bottom: '搴曢儴',
  7414. attr_estart: '鍏ユ埛闂�',
  7415. success: '鎴愬姛娣诲姞{widget}',
  7416. error_location: '褰撳墠浣嶇疆鏃犳硶娣诲姞{widget}',
  7417. error_outdoor: '鎴峰鏃犳硶娣诲姞{widget}',
  7418. error_something: '褰撳墠浣嶇疆鐐规湁寤虹瓚锛屾棤娉曟坊鍔爗widget}',
  7419. error_widget: '褰撳墠浣嶇疆涓嶅彲娣诲姞{widget}',
  7420. enter_adjust_floor: '杩涘叆鍦伴潰楂樺害璋冭妭妯″紡',
  7421. exit_adjust_floor: '閫€鍑哄湴闈㈤珮搴﹁皟鑺傛ā寮�',
  7422. color_title: '閲忚鍣ㄩ鑹诧細'
  7423. },
  7424. cad: {
  7425. __name: '鎴峰瀷鍥�',
  7426. name: '鎴峰瀷鍥�',
  7427. no_tip: '涓嶅啀鎻愮ず',
  7428. reset: '閲嶇疆',
  7429. cad_download: '鎴峰瀷鍥句笅杞�',
  7430. cad_download_ing: '涓嬭浇涓€�',
  7431. label_tip: '鐐瑰嚮鍙抽敭鎴朎sc閿彲浠ラ€€鍑烘坊鍔犳爣娉ㄣ€�',
  7432. wall_tip: '鐐瑰嚮鍙抽敭鎴朎sc閿彲浠ラ€€鍑虹敾澧欍€�',
  7433. save_undf_tip: '鏃犳硶淇濆瓨绌烘埛鍨嬪浘銆�',
  7434. reload_tip:
  7435. '鍗冲皢瀵煎叆鐢辨ā鍨嬬敓鎴愮殑鎴峰瀷鍥撅紝姝ゆ搷浣滀細娓呯┖鐜版湁鎴峰瀷锛屾槸鍚︾户缁紵',
  7436. reset_tip: '姝ゆ搷浣滀細娓呯┖鐜版湁鎴峰瀷锛屾槸鍚︾户缁紵',
  7437. title_door: '闂ㄧ獥',
  7438. title_component: '鏋勫缓',
  7439. title_wall: '鐢诲',
  7440. title_other: '鏍囨敞',
  7441. border_wall: '澶栧',
  7442. wall: '鍐呭',
  7443. attribute: '灞炴€�',
  7444. door: '闂�',
  7445. slideDoor: '绉婚棬',
  7446. doubleDoor: '鍙屽紑闂�',
  7447. casement: '绐�',
  7448. bayCase: '椋樼獥',
  7449. groundCase: '钀藉湴绐�',
  7450. column: '鏌卞瓙',
  7451. furnColumn: '妗嗘灦鏌�',
  7452. furnFlue: '鐑熼亾',
  7453. point: '鐐�',
  7454. line: '澧�',
  7455. tagging: '鍗曚釜',
  7456. un_data_tip: '鏃犳硶涓嬭浇绌烘埛鍨嬪浘锛岃鍏堢粯鍒躲€�',
  7457. taggings: '澶氫釜',
  7458. tagging_name_tips: '璇疯緭鍏ュ悕绉�',
  7459. tagging_custom_name_tips: '鑷畾涔夋埧闂村悕绉�',
  7460. tagging_area_tips: '杈撳叆闈㈢Н锛屾敮鎸佸皬鏁扮偣鍚庨潰涓や綅',
  7461. direction: '鎸囧崡閽�',
  7462. wallLine: '澧欏睘鎬�',
  7463. widget_delete: '{widget}灏嗚鍒犻櫎',
  7464. panel_btn_default: '鎭㈠榛樿',
  7465. panel_btn_delete: '鍒犻櫎閮ㄤ欢',
  7466. attr_angle: '鏃嬭浆瑙掑害',
  7467. attr_within: '缈昏浆鏂瑰悜',
  7468. attr_ewidth: '瀹藉害',
  7469. attr_eheight: '楂樺害',
  7470. attr_tick: '鍘氬害',
  7471. attr_showTitle: '鏍囨敞鍚嶇О',
  7472. attr_showContent: '鏍囨敞闈㈢Н',
  7473. attr_top: '椤堕儴',
  7474. attr_bottom: '搴曢儴',
  7475. attr_estart: '鍏ユ埛闂�',
  7476. success: '鎴愬姛娣诲姞{widget}',
  7477. error_location: '褰撳墠浣嶇疆鏃犳硶娣诲姞{widget}',
  7478. error_outdoor: '鎴峰鏃犳硶娣诲姞{widget}',
  7479. error_something: '褰撳墠浣嶇疆鐐规湁寤虹瓚锛屾棤娉曟坊鍔爗widget}',
  7480. error_widget: '褰撳墠浣嶇疆涓嶅彲娣诲姞{widget}',
  7481. enter_adjust_floor: '杩涘叆鍦伴潰楂樺害璋冭妭妯″紡',
  7482. exit_adjust_floor: '閫€鍑哄湴闈㈤珮搴﹁皟鑺傛ā寮�',
  7483. color_title: '閲忚鍣ㄩ鑹诧細',
  7484. hall_tests: '鏁村,瀹㈠巺,璧板粖,椁愬巺,璧峰眳瀹�,瀹㈤鍘�,鐜勫叧,闂ㄥ巺',
  7485. room_tests: '涓诲崸,鍎跨鎴�,娆″崸,瀹㈠崸,鑰佷汉鎴�,鍗у',
  7486. other_tests:
  7487. '涔︽埧,鍘ㄦ埧,鍗敓闂�,澶氬姛鑳藉,闃冲彴,鍌ㄧ墿闂�,姝ュ叆寮忚。鏌�,澶栨櫙,闇插彴锛堟棤椤讹級,褰辫闂�,鍏ユ埧鑺卞洯',
  7488. rotate: '鏃嬭浆'
  7489. },
  7490. videos: {
  7491. __name: '娣诲姞瑙嗛',
  7492. tips: '璇峰厛鐐瑰嚮鍦烘櫙鐨勫熀鍑嗛潰锛岀‘瀹氳棰戜綅缃�',
  7493. panel_title: '瑙嗛灞炴€�',
  7494. panel_preview: '棰勮',
  7495. panel_upload: '涓婁紶瑙嗛',
  7496. panel_upload_tips: '鏀寔MP4瑙嗛鏍煎紡',
  7497. panel_move: '浣嶇Щ',
  7498. panel_zoom: '缂╂斁',
  7499. panel_thickness: '鍘氬害',
  7500. recoverRatio: '鎭㈠鍘熷姣斾緥',
  7501. recoverRatioTip: '鎭㈠瑙嗛鏂囦欢鍘熷闀垮姣�'
  7502. },
  7503. custom: {
  7504. model_title: '妯″瀷涓嬭浇',
  7505. uploading: '鏂囦欢涓婁紶涓�...',
  7506. download: '鍘熷妯″瀷涓嬭浇',
  7507. download_panos: '涓嬭浇鐐逛綅鍥�',
  7508. upload: '淇敼妯″瀷涓婁紶',
  7509. title1: '妯″瀷涓嬭浇/涓婁紶鍔熻兘鏁欑▼',
  7510. tips11:
  7511. '1.涓嬭浇鍦烘櫙妯″瀷鐨勫帇缂╁寘鍚庯紝浣跨敤涓夌淮杞欢鎵撳紑瑙e帇鍚庢枃浠垛€渕esh.obj鈥濓紝鍗冲彲寮€灞曠紪杈戯紱',
  7512. tips12:
  7513. '2.缂栬緫瀹屾垚鍚庯紝寤鸿灏嗘ā鍨嬭创鍥捐繘琛岀儤鐒欙紝鐑樼剻璐村浘闇€鎺у埗鍦�1.5M浠ュ唴锛屽悓鏃讹紝淇濆瓨鐨刼bj鏂囦欢闇€瑕佹帶鍒跺湪3M浠ュ唴锛�',
  7514. tips13: '3.瀹屾垚1銆�2姝ラ鍚庯紝灏唎bj,mtl,璐村浘鎵撳寘涓簔ip鍘嬬缉鍖呬笂浼犲嵆鍙€�',
  7515. title2: '娉細',
  7516. tips21: '1.璇峰敖閲忔帶鍒舵枃浠跺ぇ灏忥紝浠ュ厤娴忚鐨勬椂鍊欏崱椤匡紝褰卞搷浣撻獙銆�',
  7517. tips22: '2.璇峰皢obj鍙婂帇缂╁寘鐨勫悕绉颁繚鎸佷竴鑷达紝鍚﹀垯浼氭浛鎹㈠け璐ャ€�',
  7518. get_image_fail:
  7519. '鑾峰彇璐村浘澶辫触锛屽彲鑳界綉缁滅姸鎬佷笉浣筹紝璇锋鏌ユ偍鐨勭綉缁滆缃苟閲嶆柊灏濊瘯銆�',
  7520. download_model_fail: '妯″瀷涓嬭浇澶辫触',
  7521. reupload_tips: '涓婁紶鍚庣偣鍑讳繚瀛樺苟鍙戝竷鐢熸晥',
  7522. panoramic_upload: '鍏ㄦ櫙鐓х墖涓婁紶',
  7523. panoramic_upload_tips: '涓婁紶鍚庣偣鍑烩€滀繚瀛樺苟鍙戝竷鈥濆嵆鐢熸晥',
  7524. panoramic_upload_box_tips: '璇蜂笂浼犲搴旂偣浣嶅悕绉扮殑JPG鍥剧墖',
  7525. panoramic_download: '鍏ㄦ櫙鐓х墖涓嬭浇',
  7526. panoramic_download_tips: '璇峰嬁淇敼鐓х墖鍚嶇О鍜屾牸寮�',
  7527. panoramic: '鍏ㄦ櫙鍥剧墖',
  7528. ball_video: '鐞冨箷瑙嗛',
  7529. ball_video_upload_tips: '涓婁紶鍚庣偣鍑烩€滀繚瀛樺苟鍙戝竷鈥濆嵆鐢熸晥',
  7530. ball_video_download_tips: '璇峰嬁淇敼瑙嗛鍚嶇О鍜屾牸寮�',
  7531. ball_video_upload_box_tips: '鐞冨箷瑙嗛鏀寔MP4鏍煎紡锛屼笉瓒呰繃1024M',
  7532. upload_title: '涓婁紶鏂囦欢',
  7533. upload_format_error: '鏂囦欢鏍煎紡閿欒锛岃閲嶆柊涓婁紶',
  7534. upload_name_error: '鏂囦欢鍚嶇О閿欒锛岃閲嶆柊涓婁紶',
  7535. upload_success: '涓婁紶鎴愬姛锛屼繚瀛樺苟鍙戝竷鍚庢墠鑳界敓鏁�',
  7536. upload_code_5017: '涓婁紶妯″瀷澶辫触锛岃鍙傜収鍙充晶鏁欑▼',
  7537. upload_code_5018: 'zip鏂囦欢鍙兘鏈変竴灞傜洰褰曟垨鏃犵洰褰�',
  7538. upload_code_5019: '蹇呴』鏈変笖浠呮湁涓€涓猳bj鍜宮tl鏂囦欢',
  7539. upload_code_5020: '璐村浘闇€鎺у埗鍦�1.5M浠ュ唴锛宱bj鏂囦欢闇€瑕佹帶鍒跺湪20M浠ュ唴銆�',
  7540. upload_code_5012: '鏁版嵁涓嶆甯�',
  7541. upload_code_5023: '涓婁紶鏂囦欢鏍煎紡涓嶆纭紝鍙兘鏄痡pg鎴杕p4鏍煎紡',
  7542. download_tips: '涓嬭浇鍚庡悕绉颁笌鏍煎紡璇峰嬁淇敼',
  7543. download_fail: '涓嬭浇澶辫触'
  7544. },
  7545. vrhouse: {
  7546. __name: 'VR鐪嬫埧',
  7547. linkto_management: '鍓嶅線鐪嬫埧绠$悊鍚庡彴',
  7548. refer: '鍒锋柊',
  7549. scene_link: '鍦烘櫙閾炬帴'
  7550. },
  7551. business: {
  7552. __name: '鍟嗗湀妯″潡',
  7553. list_title: '鍦烘櫙鐑偣鍒楄〃',
  7554. list_unf: '褰撳墠鍦烘櫙娌℃湁鐑偣',
  7555. add_tip_info: '璇峰湪鍦烘櫙涓坊鍔犵儹鐐瑰悗锛屽啀缁戝畾鐑偣',
  7556. linkto_management: '鍓嶅線鐪嬪簵绠$悊鍚庡彴',
  7557. refer: '鍒锋柊',
  7558. scene_link: '鍦烘櫙閾炬帴',
  7559. explain: '璇存槑',
  7560. shopexplain: {
  7561. 1: '褰撳墠鍟嗗搧鏁版嵁鏉ユ簮浜庡満鏅粦瀹氱殑4DKanKan搴楅摵鍟嗗搧鏁版嵁锛屽闇€澧炲姞璇风偣鍑�',
  7562. 2: '姝ゅ璺宠浆'
  7563. },
  7564. select_style: '閫夋嫨鐑偣鏍峰紡',
  7565. join_info: '鍏宠仈鍟嗗搧淇℃伅',
  7566. add_com: '娣诲姞鍟嗗搧',
  7567. join_info_show: '鍏宠仈鍟嗗搧浼氬湪鐑偣涓睍绀�',
  7568. select_com: '閫夋嫨鍟嗗搧'
  7569. },
  7570. link: {
  7571. __name: '璺宠浆鍏宠仈',
  7572. title1: '閿佸畾鍏宠仈鐐�',
  7573. title2: '缂栬緫鍏宠仈鐐�',
  7574. title3: '鍏ㄦ櫙鍥惧叧鑱�',
  7575. list_text: ' 宸插叧鑱斿満鏅�({l_count}), 鍏ㄦ櫙鍥�({p_count})',
  7576. btn_new_text: '娣诲姞鍏宠仈鐐�',
  7577. btn_add_title: '鍏宠仈鐐瑰畾浣�',
  7578. btn_add_text: '纭畾鍏宠仈鐐逛綅缃�',
  7579. btn_add_desc: '灏嗗叧鑱旂偣鏍囪骞舵嫋鍔ㄥ埌鍚堥€傜殑浣嶇疆銆�',
  7580. btn_edit_text: '淇敼鍏宠仈鐐逛綅缃�',
  7581. style: '鍏宠仈鐐规牱寮�',
  7582. style_name: '鏍峰紡',
  7583. style_desc: '鏀寔鑷畾涔夊浘鏍囷紝寤鸿灏哄涓�128x128 鍍忕礌锛屾牸寮忎负jpg/png銆�',
  7584. style_dele:
  7585. '鏄惁鍒犻櫎璇ユ牱寮忥紵<br />濡傝鏍峰紡鍦ㄥ叾瀹冨叧鑱旂偣浣跨敤锛屼篃灏嗚鍒犻櫎',
  7586. desc_title: '鎻忚堪',
  7587. desc_tips: '璇疯緭鍏ユ弿杩板唴瀹�',
  7588. desc_require: '璇疯緭鍏ユ弿杩板唴瀹�',
  7589. type: '閫夋嫨鍏宠仈绫诲瀷',
  7590. type_photo:
  7591. '鏀寔涓婁紶瀹介珮姣斾负2:1鐨勫崟寮犲叏鏅浘鐗囷紝寤鸿鍍忕礌涓嶅皬浜�6000x3000鍍忕礌锛屾枃浠朵笉瓒呰繃120M銆�',
  7592. type_photo_require: '璇蜂笂浼犲叏鏅浘',
  7593. type_link: '璇疯緭鍏ョ洰鏍囧満鏅摼鎺�',
  7594. type_link_tips: 'http(s)://',
  7595. type_link_require: '璇疯緭鍏ラ渶瑕佽烦杞殑鍦烘櫙閾炬帴',
  7596. enter_title: '杩涘叆鐢婚潰',
  7597. enter_require: '璇疯缃繘鍏ョ敾闈�',
  7598. enter_btn_text: '璁剧疆杩涘叆鐢婚潰',
  7599. outer_title: '璺冲嚭鐐逛綅缃�',
  7600. outer_style: '璺冲嚭鐐规牱寮�',
  7601. outer_desc: '鏀寔鑷畾涔夊浘鏍囷紝寤鸿灏哄涓�128x128鍍忕礌锛屾牸寮忎负jpg/png銆�',
  7602. outer_require: '璇疯缃烦鍑虹偣浣嶇疆',
  7603. outer_btn_text: '璁剧疆璺冲嚭鐐逛綅缃�',
  7604. links_title: '閫夋嫨鍏ㄦ櫙鍥�',
  7605. links_tips: '閫夋嫨鍏ㄦ櫙鍥撅紝鎷栧姩鍒板乏渚х敾闈㈢浉搴斾綅缃紝杩涜璺宠浆璁剧疆銆�',
  7606. links_cancel_tips: '鍙栨秷鍏宠仈璁剧疆'
  7607. }
  7608. },
  7609. login: {
  7610. __name: '鐧诲綍',
  7611. title: '鎻愮ず',
  7612. login: '鍘荤櫥褰�',
  7613. logon: '鐧诲綍瀹屾瘯锛岀户缁�',
  7614. login_tips: '鎮ㄦ病鏈夌櫥褰曪紝璇蜂簬涓婚〉鐧诲綍鍚庡啀缂栬緫'
  7615. },
  7616. common: {
  7617. __name: '鍏敤',
  7618. on: '鎵撳紑',
  7619. off: '鍏抽棴',
  7620. add: '娣诲姞',
  7621. set: '纭畾',
  7622. ok: '纭畾',
  7623. save: '淇濆瓨',
  7624. cancel: '鍙栨秷',
  7625. complete: '瀹屾垚',
  7626. edit: '淇敼',
  7627. giveup: '鏀惧純',
  7628. commit: '鎻愪氦',
  7629. photo: '鍥剧墖',
  7630. voice: '闊抽',
  7631. video: '瑙嗛',
  7632. bgm: '闊充箰',
  7633. crop: '瑁佸壀',
  7634. upload: '涓婁紶',
  7635. download: '涓嬭浇',
  7636. change: '鏇存敼',
  7637. unnamed: '鏈懡鍚�',
  7638. publish: '淇濆瓨骞跺彂甯�',
  7639. publish_text: '淇濆瓨骞跺彂甯冩垚鍔燂紒',
  7640. publish_tips: '鏄惁绔嬪埢鍓嶅線瑙傜湅鎮ㄧ殑鍦烘櫙锛�',
  7641. publish_btn_ok: '绔嬪埢鍓嶅線',
  7642. publish_btn_no: '鏆傛椂涓嶅幓',
  7643. public: '鍏紑',
  7644. private: '鍔犲瘑',
  7645. waiting: '璇风◢绛�...',
  7646. audio: '闊抽',
  7647. second: '绉�',
  7648. delete: '鍒犻櫎',
  7649. prev: '涓婁竴姝�',
  7650. next: '涓嬩竴姝�',
  7651. meter: '绾meter}绫�',
  7652. guide: '瀵艰',
  7653. rule: '娴嬮噺宸ュ叿',
  7654. roaming: '婕父',
  7655. continue: '缁х画',
  7656. ensure_delete: '纭畾鍒犻櫎',
  7657. text_limit: '闄愬埗{limit}瀛楀唴',
  7658. default: '榛樿',
  7659. custom: '鑷畾涔�',
  7660. back: '杩斿洖',
  7661. will_delete: '灏嗚鍒犻櫎',
  7662. setup: '璁剧疆',
  7663. exit: '閫€鍑�',
  7664. size: '澶у皬',
  7665. music: {
  7666. __name: '鑳屾櫙闊充箰',
  7667. none: '鏃�',
  7668. cheerfu: '娆㈠揩',
  7669. ethereal: '绌虹伒',
  7670. rhythmic: '鑺傚',
  7671. nostalgic: '鎬€鏃�',
  7672. missing: '鎯冲康',
  7673. retro: '澶嶅彜',
  7674. strings: '鐞村鸡',
  7675. happy: '鎰夊揩'
  7676. },
  7677. category: {
  7678. __name: '鍒嗙被',
  7679. museum: '鏂囧崥',
  7680. estate: '鍦颁骇',
  7681. eshop: '鐢靛晢',
  7682. catering: '椁愰ギ',
  7683. home: '瀹跺眳',
  7684. other: '鍏朵粬'
  7685. },
  7686. uploads: {
  7687. __name: '鏂囦欢涓婁紶',
  7688. uploading: '涓婁紶涓�',
  7689. uploaded: '宸蹭笂浼�',
  7690. wait: '绛夊緟涓婁紶...',
  7691. error: '涓婁紶鍑洪敊',
  7692. add: '娣诲姞鏂囦欢',
  7693. start: '寮€濮嬩笂浼�',
  7694. file_require: '璇锋坊鍔犳枃浠�',
  7695. cant_upload: '鎮ㄧ殑娴忚鍣ㄤ笉鏀寔涓婁紶鏂囦欢',
  7696. not_support: '鎮ㄩ€夋嫨鐨勪笉鏄祻瑙堝櫒鏀寔鐨剓fileType}鏂囦欢,璇烽噸鏂伴€夋嫨',
  7697. too_large: '鏂囦欢杩囧ぇ锛屼笉鑳藉ぇ浜巤size}MB',
  7698. too_large_reupload_tips: '涓婁紶瑙嗛杩囧ぇ锛岃閲嶆柊涓婁紶'
  7699. },
  7700. tips: { __name: '鎻愮ず', wait: '璇风瓑寰�...' }
  7701. },
  7702. tips: {
  7703. __name: '寮圭獥銆佹彁绀�',
  7704. title: '鎻愮ず',
  7705. set_done: '璁剧疆鎴愬姛',
  7706. set_fail: '璁剧疆澶辫触',
  7707. save_done: '淇濆瓨鎴愬姛',
  7708. save_fail: '淇濆瓨澶辫触',
  7709. delete: '鏄惁鍒犻櫎锛�',
  7710. delete_done: '鍒犻櫎鎴愬姛',
  7711. delete_fail: '鍒犻櫎澶辫触',
  7712. upload_done: '涓婁紶鎴愬姛',
  7713. upload_fail: '涓婁紶澶辫触',
  7714. exception: '寮傚父閿欒',
  7715. network_error: '缃戠粶杩炴帴澶辫触锛岃绋嶅悗鍐嶈瘯',
  7716. file_notfound: '鏂囦欢涓嶅瓨鍦�',
  7717. scene_notfound: '鍦烘櫙涓嶅瓨鍦�',
  7718. params_notfound: '缂哄皯蹇呰鍙傛暟',
  7719. camera_notfound: '鎵句笉鍒拌鍦烘櫙瀵瑰簲鐨勭浉鏈�',
  7720. password_error: '瀵嗙爜閿欒',
  7721. data_error: '鏁版嵁涓嶆甯�',
  7722. auth_deny: '鏃犳潈鎿嶄綔璇ュ満鏅�',
  7723. clear: '鏄惁娓呯┖锛�',
  7724. upload_pic_fail: '涓婁紶鍥剧墖澶辫触',
  7725. wait: '璇风◢鍚�...',
  7726. house_type_save_fail: '鎴峰瀷淇濆瓨澶辫触'
  7727. },
  7728. show: {
  7729. __name: '灞曠ず椤甸潰',
  7730. on: '寮€鍚�',
  7731. off: '鍏抽棴',
  7732. measure: '娴嬭窛宸ュ叿',
  7733. measure_start: '璧风偣',
  7734. measure_end: '缁堢偣',
  7735. measure_button: '纭畾{status}',
  7736. location_up: '涓婃柟',
  7737. location_left: '宸︿晶',
  7738. location_start_tips: '璇峰厛鍦▄direction}鐐瑰嚮',
  7739. location_end_tips: '璧风偣纭畾瀹屾瘯锛岃瀹氫綅缁堢偣',
  7740. vr: 'VR妯″紡',
  7741. share: '鍒嗕韩',
  7742. music: '{status}闊充箰',
  7743. password_tips: '瀵嗙爜',
  7744. password_require: '璇疯緭鍏ュ瘑鐮�'
  7745. },
  7746. components: {
  7747. user_guid: {
  7748. __name: '鐢ㄦ埛寮曞',
  7749. title: '鎿嶄綔鎻愮ず',
  7750. pano: '琛岃蛋<br />鐐瑰嚮浠绘剰鏂瑰悜绉诲姩',
  7751. rotate: '鏃嬭浆瑙嗚<br />宸﹀彸婊戝姩灞忓箷锛屾棆杞瑙�',
  7752. zoom: '缂╂斁<br />鍙屾寚婊戝姩鏀惧ぇ鎴栫缉灏忚鍥�',
  7753. set: '鎴戠煡閬撲簡'
  7754. }
  7755. }
  7756. })
  7757. },
  7758. function (t, e, i) {
  7759. var n =
  7760. (this && this.__assign) ||
  7761. function () {
  7762. return (n =
  7763. Object.assign ||
  7764. function (t) {
  7765. for (var e, i = 1, n = arguments.length; i < n; i++)
  7766. for (var g in (e = arguments[i]))
  7767. Object.prototype.hasOwnProperty.call(e, g) && (t[g] = e[g])
  7768. return t
  7769. }).apply(this, arguments)
  7770. },
  7771. g =
  7772. (this && this.__spreadArrays) ||
  7773. function () {
  7774. for (var t = 0, e = 0, i = arguments.length; e < i; e++) t += arguments[e].length
  7775. var n = Array(t),
  7776. g = 0
  7777. for (e = 0; e < i; e++)
  7778. for (var A = arguments[e], r = 0, o = A.length; r < o; r++, g++) n[g] = A[r]
  7779. return n
  7780. },
  7781. A =
  7782. (this && this.__importDefault) ||
  7783. function (t) {
  7784. return t && t.__esModule ? t : { default: t }
  7785. }
  7786. Object.defineProperty(e, '__esModule', { value: !0 })
  7787. var r = A(i(5)),
  7788. o = A(i(14)),
  7789. C = A(i(11)),
  7790. I = A(i(8)),
  7791. s = A(i(15)),
  7792. a = A(i(7)),
  7793. l = A(i(16)),
  7794. u = A(i(17)),
  7795. c = A(i(18)),
  7796. h = A(i(19)),
  7797. p = A(i(20)),
  7798. d = A(i(21))
  7799. ;(e.methods = {
  7800. addPoint: function (t) {
  7801. var e = t.id,
  7802. i = t.x,
  7803. n = t.y,
  7804. g = { id: e, ele: new r.default({ x: i, y: n, renderer: this.render }) }
  7805. return this.points.push(g), this.generateElement(g.ele), g
  7806. },
  7807. addLine: function (t) {
  7808. var e = t.id,
  7809. i = t.p1,
  7810. n = t.p2,
  7811. g = t.border,
  7812. A = t.exterior,
  7813. r = t.isOut,
  7814. C = {
  7815. id: e,
  7816. ele: new o.default({
  7817. border: g,
  7818. exterior: A,
  7819. points: [
  7820. this.points.find(function (t) {
  7821. return t.id === i
  7822. }).ele,
  7823. this.points.find(function (t) {
  7824. return t.id === n
  7825. }).ele
  7826. ],
  7827. renderer: this.render,
  7828. isOut: r
  7829. }),
  7830. border: g,
  7831. isOut: r,
  7832. exterior: A
  7833. }
  7834. return (
  7835. this.lines.push(C),
  7836. this.generateElement(C.ele),
  7837. A &&
  7838. (C.ele.points.forEach(function (t) {
  7839. return t.real.setAttribute('pointer-events', 'none')
  7840. }),
  7841. (C.ele.zIndex = -1)),
  7842. C
  7843. )
  7844. },
  7845. addCase: function (t) {
  7846. var e = t.pos,
  7847. i = t.line,
  7848. n = t.top,
  7849. g = void 0 === n ? null : n,
  7850. A = t.bottom,
  7851. r = void 0 === A ? null : A,
  7852. o = {
  7853. ele: new C.default({
  7854. renderer: this.render,
  7855. attachment: this.lines.find(function (t) {
  7856. return t.id === i
  7857. }).ele,
  7858. points: [
  7859. { x: e[0], y: e[1] },
  7860. { x: e[2], y: e[3] }
  7861. ],
  7862. top: g,
  7863. bottom: r
  7864. })
  7865. }
  7866. return this.cases.push(o), this.generateElement(o.ele), o
  7867. },
  7868. addDoor: function (t) {
  7869. var e = t.pos,
  7870. i = t.line,
  7871. n = t.top,
  7872. g = void 0 === n ? null : n,
  7873. A = t.bottom,
  7874. r = void 0 === A ? null : A,
  7875. o = t.within,
  7876. C = t.show,
  7877. s = t.start,
  7878. a = {
  7879. ele: new I.default({
  7880. show: C,
  7881. renderer: this.render,
  7882. attachment: this.lines.find(function (t) {
  7883. return t.id === i
  7884. }).ele,
  7885. points: [
  7886. { x: e[0], y: e[1] },
  7887. { x: e[2], y: e[3] }
  7888. ],
  7889. top: g,
  7890. bottom: r,
  7891. within: o,
  7892. start: s
  7893. })
  7894. }
  7895. return this.doors.push(a), this.generateElement(a.ele), a
  7896. },
  7897. adddDoubleDoor: function (t) {
  7898. var e = t.pos,
  7899. i = t.line,
  7900. n = t.top,
  7901. g = void 0 === n ? null : n,
  7902. A = t.bottom,
  7903. r = void 0 === A ? null : A,
  7904. o = t.within,
  7905. C = t.show,
  7906. I = t.start,
  7907. s = {
  7908. ele: new l.default({
  7909. show: C,
  7910. renderer: this.render,
  7911. attachment: this.lines.find(function (t) {
  7912. return t.id === i
  7913. }).ele,
  7914. points: [
  7915. { x: e[0], y: e[1] },
  7916. { x: e[2], y: e[3] }
  7917. ],
  7918. top: g,
  7919. bottom: r,
  7920. within: o,
  7921. start: I
  7922. })
  7923. }
  7924. return this.doubleDoors.push(s), this.generateElement(s.ele), s
  7925. },
  7926. addSlideDoor: function (t) {
  7927. var e = t.pos,
  7928. i = t.line,
  7929. n = t.top,
  7930. g = void 0 === n ? null : n,
  7931. A = t.bottom,
  7932. r = void 0 === A ? null : A,
  7933. o = t.within,
  7934. C = void 0 === o ? 0 : o,
  7935. I = {
  7936. ele: new s.default({
  7937. within: C,
  7938. bwithin: 1.5,
  7939. renderer: this.render,
  7940. attachment: this.lines.find(function (t) {
  7941. return t.id === i
  7942. }).ele,
  7943. points: [
  7944. { x: e[0], y: e[1] },
  7945. { x: e[2], y: e[3] }
  7946. ],
  7947. top: g,
  7948. bottom: r
  7949. })
  7950. }
  7951. return this.slideDoors.push(I), this.generateElement(I.ele), I
  7952. },
  7953. addBayCase: function (t) {
  7954. var e = t.pos,
  7955. i = t.line,
  7956. n = t.top,
  7957. g = void 0 === n ? null : n,
  7958. A = t.bottom,
  7959. r = void 0 === A ? null : A,
  7960. o = t.within,
  7961. C = {
  7962. ele: new d.default({
  7963. renderer: this.render,
  7964. attachment: this.lines.find(function (t) {
  7965. return t.id === i
  7966. }).ele,
  7967. points: [
  7968. { x: e[0], y: e[1] },
  7969. { x: e[2], y: e[3] }
  7970. ],
  7971. top: g,
  7972. bottom: r,
  7973. within: o
  7974. })
  7975. }
  7976. return this.bayCases.push(C), this.generateElement(C.ele), C
  7977. },
  7978. addGroundCase: function (t) {
  7979. var e = t.pos,
  7980. i = t.line,
  7981. n = t.top,
  7982. g = void 0 === n ? null : n,
  7983. A = t.bottom,
  7984. r = void 0 === A ? null : A,
  7985. o = {
  7986. ele: new p.default({
  7987. renderer: this.render,
  7988. attachment: this.lines.find(function (t) {
  7989. return t.id === i
  7990. }).ele,
  7991. points: [
  7992. { x: e[0], y: e[1] },
  7993. { x: e[2], y: e[3] }
  7994. ],
  7995. top: g,
  7996. bottom: r
  7997. })
  7998. }
  7999. return this.groundCases.push(o), this.generateElement(o.ele), o
  8000. },
  8001. addColumn: function (t) {
  8002. var e = t.pos,
  8003. i = t.line,
  8004. n = {
  8005. ele: new a.default({
  8006. renderer: this.render,
  8007. attachment: this.lines.find(function (t) {
  8008. return t.id === i
  8009. }).ele,
  8010. points: [
  8011. { x: e[0], y: e[1] },
  8012. { x: e[2], y: e[3] },
  8013. { x: e[6], y: e[7] },
  8014. { x: e[4], y: e[5] }
  8015. ]
  8016. })
  8017. }
  8018. return this.columns.push(n), this.generateElement(n.ele), n
  8019. },
  8020. addFurnColumn: function (t) {
  8021. var e = t.pos,
  8022. i = t.angle,
  8023. n = {
  8024. ele: new u.default({
  8025. points: [
  8026. { x: e[0], y: e[1] },
  8027. { x: e[2], y: e[3] },
  8028. { x: e[4], y: e[5] },
  8029. { x: e[6], y: e[7] }
  8030. ],
  8031. renderer: this.render,
  8032. angle: i
  8033. })
  8034. }
  8035. return this.furnColumns.push(n), this.generateElement(n.ele), n
  8036. },
  8037. addRoom: function (t) {
  8038. for (
  8039. var e,
  8040. i,
  8041. g = this,
  8042. A = t.points.map(function (t) {
  8043. return g.addPoint(n(n({}, t), { id: g.getNewPointId() }))
  8044. }),
  8045. r = [],
  8046. o = 0;
  8047. o < A.length - 1;
  8048. o++
  8049. )
  8050. r.push(
  8051. this.addLine({
  8052. id: this.getNewLineId(),
  8053. p1: A[o].id,
  8054. p2: A[o + 1].id,
  8055. isOut: !1,
  8056. border: !1
  8057. })
  8058. )
  8059. return (
  8060. r.forEach(function (t) {
  8061. return t.ele.update()
  8062. }),
  8063. (e = this.data.vertex).push.apply(
  8064. e,
  8065. A.map(function (t) {
  8066. return { id: t.id, x: t.ele.x, y: t.ele.y }
  8067. })
  8068. ),
  8069. (i = this.data.wall).push.apply(
  8070. i,
  8071. r.map(function (t) {
  8072. return t.id
  8073. })
  8074. ),
  8075. r
  8076. )
  8077. },
  8078. addFurnFlue: function (t) {
  8079. var e = t.pos,
  8080. i = t.angle,
  8081. n = {
  8082. ele: new c.default({
  8083. points: [
  8084. { x: e[0], y: e[1] },
  8085. { x: e[2], y: e[3] },
  8086. { x: e[4], y: e[5] },
  8087. { x: e[6], y: e[7] }
  8088. ],
  8089. renderer: this.render,
  8090. angle: i
  8091. })
  8092. }
  8093. return this.furnFlues.push(n), this.generateElement(n.ele), n
  8094. },
  8095. addTagging: function (t) {
  8096. var e = t.pos,
  8097. i = t.title,
  8098. n = t.content,
  8099. g = t.show,
  8100. A = void 0 === g || g,
  8101. r = t.showTitle,
  8102. o = t.showContent,
  8103. C = {
  8104. ele: new h.default({
  8105. show: A,
  8106. pos: { x: e[0], y: e[1] },
  8107. title: i,
  8108. content: n,
  8109. renderer: this.render,
  8110. showTitle: r,
  8111. showContent: o
  8112. })
  8113. }
  8114. return this.taggings.push(C), this.generateElement(C.ele), C
  8115. },
  8116. generateElement: function (t) {
  8117. this.render.push(t),
  8118. this.retrofitElementDestroy(t),
  8119. t instanceof o.default && this.retrofitElementIntercept(t)
  8120. },
  8121. generateElements: function () {
  8122. var t = this
  8123. g(
  8124. this.lines.map(function (t) {
  8125. return t.ele
  8126. }),
  8127. this.points.map(function (t) {
  8128. return t.ele
  8129. }),
  8130. this.cases.map(function (t) {
  8131. return t.ele
  8132. }),
  8133. this.doors.map(function (t) {
  8134. return t.ele
  8135. }),
  8136. this.columns.map(function (t) {
  8137. return t.ele
  8138. })
  8139. ).forEach(function (e) {
  8140. return t.generateElement(e)
  8141. })
  8142. },
  8143. toEles: function (t) {
  8144. var e,
  8145. i = this,
  8146. n = t.vertex,
  8147. g = t.wall,
  8148. A = t.window,
  8149. r = t.door,
  8150. o = t.column,
  8151. C = t.slideDoor,
  8152. I = t.tagging,
  8153. s = t.groundCase,
  8154. a = t.bayCase,
  8155. l = t.furnColumn,
  8156. u = t.furnFlue,
  8157. c = t.doubleDoor
  8158. ;(this.data = t),
  8159. console.log(g),
  8160. n.forEach(function (t) {
  8161. return i.addPoint(t)
  8162. }),
  8163. g.forEach(function (t) {
  8164. var e = t.p1,
  8165. n = t.p2,
  8166. g = t.id,
  8167. A = t.border,
  8168. r = t.exterior
  8169. i.addLine({ p1: e, p2: n, id: g, border: A, exterior: r, isOut: !1 })
  8170. }),
  8171. (e = [A, r, o, C, s, a, c].map(function (t) {
  8172. return (
  8173. t.forEach(function (t) {
  8174. var e = g.find(function (e) {
  8175. var i = e.id
  8176. return t.line === i
  8177. })
  8178. if (e) {
  8179. var n = e.p1,
  8180. A = e.p2,
  8181. r = i.lines.find(function (t) {
  8182. t.id
  8183. var e = t.ele.points.map(function (t) {
  8184. return i.points.find(function (e) {
  8185. return e.ele === t
  8186. }).id
  8187. })
  8188. return ~e.indexOf(n) && ~e.indexOf(A)
  8189. })
  8190. t.line = r.id
  8191. } else t.line = 0
  8192. }),
  8193. (t = t.filter(function (t) {
  8194. return !t.pos.some(function (t) {
  8195. return null === t
  8196. })
  8197. }))
  8198. )
  8199. })),
  8200. (A = e[0]),
  8201. (r = e[1]),
  8202. (o = e[2]),
  8203. (C = e[3]),
  8204. (s = e[4]),
  8205. (a = e[5]),
  8206. (c = e[6]),
  8207. A.forEach(function (t) {
  8208. return 0 !== t.line && i.addCase(t)
  8209. }),
  8210. r.forEach(function (t) {
  8211. return 0 !== t.line && i.addDoor(t)
  8212. }),
  8213. o.forEach(function (t) {
  8214. return 0 !== t.line && i.addColumn(t)
  8215. }),
  8216. C.forEach(function (t) {
  8217. return 0 !== t.line && i.addSlideDoor(t)
  8218. }),
  8219. s.forEach(function (t) {
  8220. return 0 !== t.line && i.addGroundCase(t)
  8221. }),
  8222. a.forEach(function (t) {
  8223. return 0 !== t.line && i.addBayCase(t)
  8224. }),
  8225. I.forEach(function (t) {
  8226. return i.addTagging(t)
  8227. }),
  8228. c.forEach(function (t) {
  8229. return i.adddDoubleDoor(t)
  8230. }),
  8231. l.forEach(function (t) {
  8232. i.addFurnColumn(t)
  8233. }),
  8234. u.forEach(function (t) {
  8235. i.addFurnFlue(t)
  8236. }),
  8237. this.referElements(),
  8238. (this.id = t.id),
  8239. (this.show = t.show)
  8240. },
  8241. referElements: function () {
  8242. var t = this
  8243. g(this.lines, this.points, this.cases, this.doors, this.columns).forEach(function (e) {
  8244. var i = e.ele
  8245. t.render.g.removeChild(i.real), t.render.elements.splice(t.render.elements.indexOf(i), 1)
  8246. }),
  8247. this.generateElements()
  8248. }
  8249. }),
  8250. (e.methods.attrs = [
  8251. 'cases',
  8252. 'doors',
  8253. 'slideDoors',
  8254. 'doubleDoors',
  8255. 'columns',
  8256. 'lines',
  8257. 'points',
  8258. 'groundCases',
  8259. 'taggings',
  8260. 'bayCases',
  8261. 'furnColumns',
  8262. 'furnFlues'
  8263. ])
  8264. },
  8265. function (t, e, i) {
  8266. var n,
  8267. g =
  8268. (this && this.__extends) ||
  8269. ((n = function (t, e) {
  8270. return (n =
  8271. Object.setPrototypeOf ||
  8272. ({ __proto__: [] } instanceof Array &&
  8273. function (t, e) {
  8274. t.__proto__ = e
  8275. }) ||
  8276. function (t, e) {
  8277. for (var i in e) e.hasOwnProperty(i) && (t[i] = e[i])
  8278. })(t, e)
  8279. }),
  8280. function (t, e) {
  8281. function i() {
  8282. this.constructor = t
  8283. }
  8284. n(t, e),
  8285. (t.prototype = null === e ? Object.create(e) : ((i.prototype = e.prototype), new i()))
  8286. }),
  8287. A =
  8288. (this && this.__importDefault) ||
  8289. function (t) {
  8290. return t && t.__esModule ? t : { default: t }
  8291. }
  8292. Object.defineProperty(e, '__esModule', { value: !0 })
  8293. var r = A(i(5)),
  8294. o = i(3),
  8295. C = i(0),
  8296. I = (function (t) {
  8297. function e(e, i) {
  8298. var n = t.call(this, e) || this
  8299. return (n.line = i), n
  8300. }
  8301. return (
  8302. g(e, t),
  8303. (e.prototype.getLineInsertPoint = function (t) {
  8304. void 0 === t && (t = this)
  8305. var e = C.getLinePoint(this.line, t)
  8306. return e
  8307. }),
  8308. (e.prototype.intercept = function (t, e) {
  8309. var i = e.x,
  8310. n = e.y
  8311. return (
  8312. !(!o.type.isUndefined(i) && !o.type.isUndefined(n)) ||
  8313. this.getLineInsertPoint({ x: i, y: n })
  8314. )
  8315. }),
  8316. e
  8317. )
  8318. })(r.default)
  8319. e.default = I
  8320. },
  8321. function (t, e, i) {
  8322. var n,
  8323. g =
  8324. (this && this.__extends) ||
  8325. ((n = function (t, e) {
  8326. return (n =
  8327. Object.setPrototypeOf ||
  8328. ({ __proto__: [] } instanceof Array &&
  8329. function (t, e) {
  8330. t.__proto__ = e
  8331. }) ||
  8332. function (t, e) {
  8333. for (var i in e) e.hasOwnProperty(i) && (t[i] = e[i])
  8334. })(t, e)
  8335. }),
  8336. function (t, e) {
  8337. function i() {
  8338. this.constructor = t
  8339. }
  8340. n(t, e),
  8341. (t.prototype = null === e ? Object.create(e) : ((i.prototype = e.prototype), new i()))
  8342. }),
  8343. A =
  8344. (this && this.__assign) ||
  8345. function () {
  8346. return (A =
  8347. Object.assign ||
  8348. function (t) {
  8349. for (var e, i = 1, n = arguments.length; i < n; i++)
  8350. for (var g in (e = arguments[i]))
  8351. Object.prototype.hasOwnProperty.call(e, g) && (t[g] = e[g])
  8352. return t
  8353. }).apply(this, arguments)
  8354. },
  8355. r =
  8356. (this && this.__awaiter) ||
  8357. function (t, e, i, n) {
  8358. return new (i || (i = Promise))(function (g, A) {
  8359. function r(t) {
  8360. try {
  8361. C(n.next(t))
  8362. } catch (t) {
  8363. A(t)
  8364. }
  8365. }
  8366. function o(t) {
  8367. try {
  8368. C(n.throw(t))
  8369. } catch (t) {
  8370. A(t)
  8371. }
  8372. }
  8373. function C(t) {
  8374. var e
  8375. t.done
  8376. ? g(t.value)
  8377. : ((e = t.value),
  8378. e instanceof i
  8379. ? e
  8380. : new i(function (t) {
  8381. t(e)
  8382. })).then(r, o)
  8383. }
  8384. C((n = n.apply(t, e || [])).next())
  8385. })
  8386. },
  8387. o =
  8388. (this && this.__generator) ||
  8389. function (t, e) {
  8390. var i,
  8391. n,
  8392. g,
  8393. A,
  8394. r = {
  8395. label: 0,
  8396. sent: function () {
  8397. if (1 & g[0]) throw g[1]
  8398. return g[1]
  8399. },
  8400. trys: [],
  8401. ops: []
  8402. }
  8403. return (
  8404. (A = { next: o(0), throw: o(1), return: o(2) }),
  8405. 'function' == typeof Symbol &&
  8406. (A[Symbol.iterator] = function () {
  8407. return this
  8408. }),
  8409. A
  8410. )
  8411. function o(A) {
  8412. return function (o) {
  8413. return (function (A) {
  8414. if (i) throw new TypeError('Generator is already executing.')
  8415. for (; r; )
  8416. try {
  8417. if (
  8418. ((i = 1),
  8419. n &&
  8420. (g =
  8421. 2 & A[0]
  8422. ? n.return
  8423. : A[0]
  8424. ? n.throw || ((g = n.return) && g.call(n), 0)
  8425. : n.next) &&
  8426. !(g = g.call(n, A[1])).done)
  8427. )
  8428. return g
  8429. switch (((n = 0), g && (A = [2 & A[0], g.value]), A[0])) {
  8430. case 0:
  8431. case 1:
  8432. g = A
  8433. break
  8434. case 4:
  8435. return r.label++, { value: A[1], done: !1 }
  8436. case 5:
  8437. r.label++, (n = A[1]), (A = [0])
  8438. continue
  8439. case 7:
  8440. ;(A = r.ops.pop()), r.trys.pop()
  8441. continue
  8442. default:
  8443. if (
  8444. !(g = (g = r.trys).length > 0 && g[g.length - 1]) &&
  8445. (6 === A[0] || 2 === A[0])
  8446. ) {
  8447. r = 0
  8448. continue
  8449. }
  8450. if (3 === A[0] && (!g || (A[1] > g[0] && A[1] < g[3]))) {
  8451. r.label = A[1]
  8452. break
  8453. }
  8454. if (6 === A[0] && r.label < g[1]) {
  8455. ;(r.label = g[1]), (g = A)
  8456. break
  8457. }
  8458. if (g && r.label < g[2]) {
  8459. ;(r.label = g[2]), r.ops.push(A)
  8460. break
  8461. }
  8462. g[2] && r.ops.pop(), r.trys.pop()
  8463. continue
  8464. }
  8465. A = e.call(t, r)
  8466. } catch (t) {
  8467. ;(A = [6, t]), (n = 0)
  8468. } finally {
  8469. i = g = 0
  8470. }
  8471. if (5 & A[0]) throw A[1]
  8472. return { value: A[0] ? A[1] : void 0, done: !0 }
  8473. })([A, o])
  8474. }
  8475. }
  8476. },
  8477. C =
  8478. (this && this.__rest) ||
  8479. function (t, e) {
  8480. var i = {}
  8481. for (var n in t)
  8482. Object.prototype.hasOwnProperty.call(t, n) && e.indexOf(n) < 0 && (i[n] = t[n])
  8483. if (null != t && 'function' == typeof Object.getOwnPropertySymbols) {
  8484. var g = 0
  8485. for (n = Object.getOwnPropertySymbols(t); g < n.length; g++)
  8486. e.indexOf(n[g]) < 0 &&
  8487. Object.prototype.propertyIsEnumerable.call(t, n[g]) &&
  8488. (i[n[g]] = t[n[g]])
  8489. }
  8490. return i
  8491. },
  8492. I =
  8493. (this && this.__spreadArrays) ||
  8494. function () {
  8495. for (var t = 0, e = 0, i = arguments.length; e < i; e++) t += arguments[e].length
  8496. var n = Array(t),
  8497. g = 0
  8498. for (e = 0; e < i; e++)
  8499. for (var A = arguments[e], r = 0, o = A.length; r < o; r++, g++) n[g] = A[r]
  8500. return n
  8501. },
  8502. s =
  8503. (this && this.__importDefault) ||
  8504. function (t) {
  8505. return t && t.__esModule ? t : { default: t }
  8506. }
  8507. Object.defineProperty(e, '__esModule', { value: !0 })
  8508. var a = s(i(10)),
  8509. l = i(0),
  8510. u = (i(3), s(i(4))),
  8511. c = i(1),
  8512. h = (function (t) {
  8513. function e(e) {
  8514. var i = e.isOut,
  8515. n = e.hover,
  8516. g = e.width,
  8517. r = void 0 === g ? 3 : g,
  8518. o = e.border,
  8519. I = void 0 !== o && o,
  8520. s = e.exterior,
  8521. a = C(e, ['isOut', 'hover', 'width', 'border', 'exterior']),
  8522. l = t.call(this, A(A({}, a), { width: r })) || this
  8523. return (
  8524. (l.hover = n || A(A({}, l.init), { color: 'rgba(243, 255, 0, 0.8)' })),
  8525. (l.isOut = i),
  8526. (l.adopt = !1),
  8527. (l.border = I),
  8528. (l.exterior = s),
  8529. l.listenPointDrag(),
  8530. Object.defineProperty(l, 'wallLines', {
  8531. get: function () {
  8532. return a.renderer.processing.lines.map(function (t) {
  8533. return t.ele
  8534. })
  8535. }
  8536. }),
  8537. l
  8538. )
  8539. }
  8540. return (
  8541. g(e, t),
  8542. (e.prototype.setHoverStyle = function () {
  8543. ;(this.color = this.hover.color),
  8544. (this.width = this.hover.width),
  8545. (this.linecap = this.hover.linecap)
  8546. }),
  8547. (e.prototype.setUnHoverStyle = function () {
  8548. ;(this.color = this.init.color),
  8549. (this.width = this.init.width),
  8550. (this.linecap = this.init.linecap)
  8551. }),
  8552. (e.prototype.destoryPoint = function (t) {
  8553. return r(this, void 0, void 0, function () {
  8554. return o(this, function (e) {
  8555. return t.destroy(), [2]
  8556. })
  8557. })
  8558. }),
  8559. (e.prototype.listenPointDrag = function (t) {
  8560. var e = this
  8561. void 0 === t && (t = this.points),
  8562. t.forEach(function (t) {
  8563. t.__join_lines
  8564. ? ~t.__join_lines.indexOf(e) || t.__join_lines.push(e)
  8565. : (t.__join_lines = [e])
  8566. })
  8567. }),
  8568. (e.prototype.getDelRetain = function () {
  8569. return { delIndex: 0, retainIndex: 1 }
  8570. }),
  8571. (e.prototype.judgeMerge = function () {
  8572. return r(this, void 0, void 0, function () {
  8573. var t,
  8574. i,
  8575. n,
  8576. g,
  8577. A,
  8578. r = this
  8579. return o(this, function (o) {
  8580. switch (o.label) {
  8581. case 0:
  8582. if (
  8583. this.points[0] === this.points[1] ||
  8584. l.lineDis({ points: this.points }) > e.minWidth ||
  8585. (u.default.attaArch.get(this) && u.default.attaArch.get(this).length)
  8586. )
  8587. return [2]
  8588. t = this.wallLines
  8589. try {
  8590. ;(g = this.getDelRetain()), (i = g.delIndex), (n = g.retainIndex)
  8591. } catch (t) {
  8592. return [2]
  8593. }
  8594. return (
  8595. (A = this.points[n]),
  8596. [
  8597. 4,
  8598. Promise.all(
  8599. t.map(function (t) {
  8600. var e
  8601. if (t !== r && ~(e = t.points.indexOf(r.points[i])))
  8602. return new Promise(function (g) {
  8603. t.nextTick(function () {
  8604. var A = I(t.points)
  8605. ;(A[e] = r.points[n]),
  8606. A[i] === A[n]
  8607. ? t.destroy()
  8608. : (t.renderer.processing.updateWallPoints(t, t.points, A),
  8609. (t.points = A),
  8610. t.listenPointDrag(A),
  8611. t.update(),
  8612. t.nextTick(function () {
  8613. return t.updateJoin()
  8614. })),
  8615. g()
  8616. })
  8617. })
  8618. })
  8619. )
  8620. ]
  8621. )
  8622. case 1:
  8623. return (
  8624. o.sent(),
  8625. (this.points[i].x = this.points[n].x),
  8626. (this.points[i].y = this.points[n].y),
  8627. (this.points[i].adopt = !0),
  8628. setTimeout(function () {
  8629. r.wallLines.some(function (t) {
  8630. return ~t.points.indexOf(A)
  8631. }) || r.points[n].destroy()
  8632. }, 500),
  8633. [2, this.points[i]]
  8634. )
  8635. }
  8636. })
  8637. })
  8638. }),
  8639. (e.prototype.judgePoint = function () {
  8640. return r(this, void 0, void 0, function () {
  8641. var t,
  8642. e,
  8643. i,
  8644. n = this
  8645. return o(this, function (g) {
  8646. switch (g.label) {
  8647. case 0:
  8648. ;(t = function (t) {
  8649. var i, g, A, r, C
  8650. return o(this, function (s) {
  8651. switch (s.label) {
  8652. case 0:
  8653. if (
  8654. ((i = e.points[t]),
  8655. !e.renderer.processing.points.some(function (t) {
  8656. return t.ele === i
  8657. }))
  8658. )
  8659. return [2, 'continue']
  8660. ;(g = e.renderer.processing),
  8661. (A = I(e.wallLines).filter(function (t) {
  8662. return t !== n && !t.exterior
  8663. })),
  8664. 0.1,
  8665. (A = A.filter(function (t) {
  8666. return l.pointLineDis(t, i) <= 0.1
  8667. })),
  8668. (r = function (t) {
  8669. var e, r, C, I
  8670. return o(this, function (o) {
  8671. switch (o.label) {
  8672. case 0:
  8673. return (
  8674. (e = A[t]),
  8675. (r = g.lines
  8676. .filter(function (t) {
  8677. var i = t.ele
  8678. return (
  8679. ~i.points.indexOf(e.points[0]) &&
  8680. i.points.indexOf(e.points[1])
  8681. )
  8682. })
  8683. .map(function (t) {
  8684. return t.ele
  8685. })),
  8686. (C = []),
  8687. r.forEach(function (t) {
  8688. return (C = C.concat(u.default.attaArch.get(t) || []))
  8689. }),
  8690. (I = l.getLinePoint(e, i)),
  8691. C.find(function (t) {
  8692. return l.pointLineDis({ points: t.linePoints }, I) < 0.001
  8693. })
  8694. ? [3, 5]
  8695. : [3, 1]
  8696. )
  8697. case 1:
  8698. if (!(l.pointLineDis(e, I) < 0.1)) return [3, 5]
  8699. ;(i.x = I.x), (i.y = I.y), (o.label = 2)
  8700. case 2:
  8701. return (
  8702. o.trys.push([2, 4, , 5]),
  8703. [
  8704. 4,
  8705. new Promise(function (t, A) {
  8706. i.nextTick(function () {
  8707. n.renderer.processing.points.some(function (t) {
  8708. return t.ele === i
  8709. }) || A()
  8710. var r = g.lineInsertPoint(e, i),
  8711. o = r.promis
  8712. if (!r.ret) return t()
  8713. o.then(function () {
  8714. ;(i.x = I.x),
  8715. (i.y = I.y),
  8716. i.wallPos && i.wallPos(),
  8717. t()
  8718. }),
  8719. e.wallPos && e.wallPos()
  8720. })
  8721. })
  8722. ]
  8723. )
  8724. case 3:
  8725. return o.sent(), [3, 5]
  8726. case 4:
  8727. return o.sent(), [2, 'break']
  8728. case 5:
  8729. return [2]
  8730. }
  8731. })
  8732. }),
  8733. (C = 0),
  8734. (s.label = 1)
  8735. case 1:
  8736. return C < A.length ? [5, r(C)] : [3, 4]
  8737. case 2:
  8738. if ('break' === s.sent()) return [3, 4]
  8739. s.label = 3
  8740. case 3:
  8741. return C++, [3, 1]
  8742. case 4:
  8743. return [2]
  8744. }
  8745. })
  8746. }),
  8747. (e = this),
  8748. (i = 0),
  8749. (g.label = 1)
  8750. case 1:
  8751. return i < this.points.length ? [5, t(i)] : [3, 4]
  8752. case 2:
  8753. g.sent(), (g.label = 3)
  8754. case 3:
  8755. return i++, [3, 1]
  8756. case 4:
  8757. return [2]
  8758. }
  8759. })
  8760. })
  8761. }),
  8762. (e.prototype.updateJoin = function () {
  8763. var t = this,
  8764. e = this.wallLines
  8765. ;(this.points[0].__join_lines = e.filter(function (e) {
  8766. return ~e.points.indexOf(t.points[0])
  8767. })),
  8768. (this.points[1].__join_lines = e.filter(function (e) {
  8769. return ~e.points.indexOf(t.points[1])
  8770. }))
  8771. }),
  8772. (e.prototype.removeJoin = function (t) {
  8773. void 0 === t && (t = this)
  8774. var e = t.points[0].__join_lines,
  8775. i = t.points[1].__join_lines
  8776. e.splice(e.indexOf(t), 1), i.splice(i.indexOf(t), 1)
  8777. }),
  8778. (e.prototype.checkCross = function (t) {
  8779. var e = this
  8780. void 0 === t && (t = this.points)
  8781. var i = this.renderer.processing
  8782. return this.wallLines
  8783. .filter(function (t) {
  8784. return ~t.points.indexOf(e.points[0]) || ~t.points.indexOf(e.points[1])
  8785. })
  8786. .some(function (n) {
  8787. var g = n.points.indexOf(e.points[0]),
  8788. A = n.points.indexOf(e.points[1]),
  8789. r = I(n.points)
  8790. return (
  8791. ~g && (r[g] = t[0]),
  8792. ~A && (r[A] = t[1]),
  8793. e.wallLines.some(function (g) {
  8794. if (!~g.points.indexOf(n.points[0]) && !~g.points.indexOf(n.points[1])) {
  8795. var A = l.segmentsIntr(g, { points: r })
  8796. if (!A) return !1
  8797. if (
  8798. 0 !== l.lineDis({ points: [r[0], A] }) &&
  8799. 0 !== l.lineDis({ points: [r[1], A] }) &&
  8800. 0 !== l.lineDis({ points: [g.points[0], A] }) &&
  8801. 0 !== l.lineDis({ points: [g.points[1], A] })
  8802. )
  8803. return !0
  8804. var o = i.getRoomsByLine(n)
  8805. o = (o = o.length ? o : i.getHolesByLine(n))[0].ground || o[0].pos
  8806. var C = i.getRoomsByLine(g)
  8807. return (
  8808. o !==
  8809. (C = (C = C.length ? C : i.getHolesByLine(g))[0].ground || C[0].pos) &&
  8810. ((o = o.map(function (n) {
  8811. var g = i.points.find(function (t) {
  8812. var e = t.id
  8813. return n === e
  8814. }).ele
  8815. return g === e.points[0] ? t[0] : g === e.points[1] ? t[1] : g
  8816. })),
  8817. (C = C.map(function (n) {
  8818. var g = i.points.find(function (t) {
  8819. var e = t.id
  8820. return n === e
  8821. }).ele
  8822. return g === e.points[0] ? t[0] : g === e.points[1] ? t[1] : g
  8823. })),
  8824. l.isFaceIntersect(o, C))
  8825. )
  8826. }
  8827. })
  8828. )
  8829. })
  8830. }),
  8831. (e.prototype.intercept = function (t, e, i) {
  8832. e.x, e.y, e.points
  8833. return !0
  8834. }),
  8835. (e.prototype.grentNode = function () {
  8836. var e = document.createElementNS(c.SVGURI, 'g')
  8837. return (
  8838. (this.origin = t.prototype.grentNode.call(this)),
  8839. (this.ground = document.createElementNS(c.SVGURI, 'g')),
  8840. (this.temp = document.createElementNS(c.SVGURI, 'g')),
  8841. e.appendChild(this.ground),
  8842. e.appendChild(this.origin),
  8843. e.appendChild(this.temp),
  8844. this.temp.setAttribute('pointer-events', 'none'),
  8845. e
  8846. )
  8847. }),
  8848. (e.prototype.update = function () {
  8849. var t = this,
  8850. e = u.default.attaArch.get(this),
  8851. i = this.multiple * this.width * (this.border ? 2 : 1.333)
  8852. this.origin.setAttribute('stroke-width', i.toString()),
  8853. this.origin.setAttribute('stroke-linecap', this.linecap)
  8854. try {
  8855. this.origin.setAttribute(
  8856. 'd',
  8857. 'M ' +
  8858. this.points[0].x +
  8859. ' ' +
  8860. this.points[0].y +
  8861. ' L ' +
  8862. this.points[1].x +
  8863. ' ' +
  8864. this.points[1].y
  8865. )
  8866. } catch (t) {}
  8867. if (
  8868. (this.exterior
  8869. ? (this.origin.setAttribute(
  8870. 'stroke',
  8871. this.color === this.hover.color ? this.color : '#5e5e5e'
  8872. ),
  8873. this.origin.setAttribute(
  8874. 'stroke-dasharray',
  8875. 10 * this.multiple + ', ' + 10 * this.multiple
  8876. ))
  8877. : this.origin.setAttribute('stroke', this.color),
  8878. !this.exterior && e && e.length > 0)
  8879. ) {
  8880. this.origin.setAttribute('stroke', 'rgba(0,0,0,0)')
  8881. for (
  8882. var n = [],
  8883. g = function (t) {
  8884. if (
  8885. n.some(function (e) {
  8886. return e.some(function (i) {
  8887. return i === e[t]
  8888. })
  8889. })
  8890. )
  8891. return 'continue'
  8892. var i = e.filter(function (i) {
  8893. return (
  8894. i.linePoints &&
  8895. i.linePoints.length &&
  8896. (l.pointLineDis({ points: e[t].linePoints }, i.linePoints[0]) < 0.1 ||
  8897. l.pointLineDis({ points: e[t].linePoints }, i.linePoints[1]) < 0.1)
  8898. )
  8899. })
  8900. i.length && n.push(i)
  8901. },
  8902. A = 0;
  8903. A < e.length;
  8904. A++
  8905. )
  8906. g(A)
  8907. var r = []
  8908. n.forEach(function (e) {
  8909. var i = e
  8910. .reduce(function (t, e) {
  8911. return t.concat(e.linePoints)
  8912. }, [])
  8913. .sort(function (e, i) {
  8914. return (
  8915. l.lineDis({ points: [e, t.points[0]] }) -
  8916. l.lineDis({ points: [i, t.points[0]] })
  8917. )
  8918. }),
  8919. n = []
  8920. l.pointLineDis(t, i[0]) < 0.1 && n.push(i[0]),
  8921. l.pointLineDis(t, i[i.length - 1]) < 0.1 && n.push(i[i.length - 1]),
  8922. n.length && r.push(n)
  8923. }),
  8924. (r = r.sort(function (e, i) {
  8925. return (
  8926. l.lineDis({ points: [e[0], t.points[0]] }) -
  8927. l.lineDis({ points: [i[0], t.points[0]] })
  8928. )
  8929. })),
  8930. (this.ground.innerHTML = '')
  8931. var o = ''
  8932. for (A = 1; A < r.length; A++) {
  8933. var C = r[A - 1][r[A - 1].length - 1],
  8934. I = r[A][0]
  8935. o +=
  8936. '<path \n stroke="' +
  8937. (this.exterior && 'rgba(243, 255, 0, 0.8)' !== this.color
  8938. ? 'rgb(150,150,150)'
  8939. : this.color) +
  8940. '" \n stroke-width="' +
  8941. i +
  8942. '" \n stroke-linecap="butt" \n d="M ' +
  8943. C.x +
  8944. ' ' +
  8945. C.y +
  8946. ' L ' +
  8947. I.x +
  8948. ' ' +
  8949. I.y +
  8950. '"></path>'
  8951. }
  8952. if (
  8953. (r.length &&
  8954. 2 === r[0].length &&
  8955. (o =
  8956. '<path \n stroke="' +
  8957. (this.exterior && 'rgba(243, 255, 0, 0.8)' !== this.color
  8958. ? 'rgb(150,150,150)'
  8959. : this.color) +
  8960. '" \n stroke-width="' +
  8961. i +
  8962. '" \n stroke-linecap="butt" \n d="M ' +
  8963. this.points[0].x +
  8964. ' ' +
  8965. this.points[0].y +
  8966. ' L ' +
  8967. r[0][0].x +
  8968. ' ' +
  8969. r[0][0].y +
  8970. '"></path>' +
  8971. o),
  8972. r.length &&
  8973. 2 === r[r.length - 1].length &&
  8974. (o =
  8975. o +
  8976. '<path \n stroke="' +
  8977. (this.exterior && 'rgba(243, 255, 0, 0.8)' !== this.color
  8978. ? 'rgb(150,150,150)'
  8979. : this.color) +
  8980. '" \n stroke-width="' +
  8981. i +
  8982. '" \n stroke-linecap="butt" \n d="M ' +
  8983. r[r.length - 1][1].x +
  8984. ' ' +
  8985. r[r.length - 1][1].y +
  8986. ' L ' +
  8987. this.points[1].x +
  8988. ' ' +
  8989. this.points[1].y +
  8990. '"></path>'),
  8991. 1 === r.length && 1 === r[0].length)
  8992. ) {
  8993. var s = e.find(function (t) {
  8994. return ~t.linePoints.indexOf(r[0][0])
  8995. }),
  8996. a = s.linePoints[Number(!s.linePoints.indexOf(r[0][0]))]
  8997. C =
  8998. l.lineDis({ points: [a, this.points[0]] }) >
  8999. l.lineDis({ points: [a, this.points[1]] })
  9000. ? this.points[0]
  9001. : this.points[1]
  9002. o +=
  9003. '<path \n stroke="' +
  9004. (this.exterior && 'rgba(243, 255, 0, 0.8)' !== this.color
  9005. ? 'rgb(150,150,150)'
  9006. : this.color) +
  9007. '" \n stroke-width="' +
  9008. i +
  9009. '" \n stroke-linecap="butt" \n d="M ' +
  9010. C.x +
  9011. ' ' +
  9012. C.y +
  9013. ' L ' +
  9014. r[0][0].x +
  9015. ' ' +
  9016. r[0][0].y +
  9017. '"></path>'
  9018. }
  9019. 0 === r.length &&
  9020. (o +=
  9021. '<path \n stroke="' +
  9022. (this.exterior && 'rgba(243, 255, 0, 0.8)' !== this.color
  9023. ? 'rgb(150,150,150)'
  9024. : this.color) +
  9025. '" \n stroke-width="' +
  9026. i +
  9027. '" \n stroke-linecap="butt" \n d="M ' +
  9028. this.points[0].x +
  9029. ' ' +
  9030. this.points[0].y +
  9031. ' L ' +
  9032. this.points[1].x +
  9033. ' ' +
  9034. this.points[1].y +
  9035. '"></path>'),
  9036. (this.ground.innerHTML = o)
  9037. } else this.ground.innerHTML = ''
  9038. if (((this.temp.innerHTML = ''), this.showAngle || this.color === this.hover.color)) {
  9039. var h = this.renderer.processing.lines
  9040. .filter(function (e) {
  9041. return (
  9042. e.ele !== t &&
  9043. (~e.ele.points.indexOf(t.points[0]) || ~e.ele.points.indexOf(t.points[1]))
  9044. )
  9045. })
  9046. .map(function (t) {
  9047. return t.ele
  9048. })
  9049. if (0 !== h.length) {
  9050. var p =
  9051. this.renderer.screenToRealPoint({ x: 20, y: 0 }).x -
  9052. this.renderer.screenToRealPoint({ x: 0, y: 0 }).x
  9053. h.forEach(function (e) {
  9054. var i = l.getAngle(e, t),
  9055. n = ~e.points.indexOf(t.points[0]) ? t.points[0] : t.points[1],
  9056. g = l.getLineDisSelectPoint(e, n, p),
  9057. A = l.getLineDisSelectPoint(t, n, p),
  9058. r = l.lineCenter({ points: [g, A] })
  9059. if (!isNaN(r.x) && !isNaN(i) && i > 10 && i < 170) {
  9060. i = (i = Math.round(i)) >= 89 && i <= 91 ? 90 : i
  9061. var o = document.createElementNS(c.SVGURI, 'text')
  9062. o.setAttribute('fill', '#fff'),
  9063. o.setAttribute('text-anchor', 'middle'),
  9064. o.setAttribute('dominant-baseline', 'middle'),
  9065. o.setAttribute('x', r.x.toString()),
  9066. o.setAttribute('y', r.y.toString()),
  9067. o.setAttribute('font-size', (9 * t.multiple).toString()),
  9068. (o.textContent = parseInt(i + '').toString() + '掳'),
  9069. t.temp.appendChild(o)
  9070. }
  9071. })
  9072. }
  9073. }
  9074. }),
  9075. (e.prototype.destroy = function () {
  9076. var e = this,
  9077. i = this.wallLines
  9078. i.splice(i.indexOf(this), 1)
  9079. var n = u.default.attaArch.get(this)
  9080. if (n) {
  9081. n = I(n)
  9082. var g = i.find(function (t) {
  9083. return (
  9084. (t.points[0] === e.points[0] && t.points[1] === e.points[1]) ||
  9085. (t.points[1] === e.points[0] && t.points[0] === e.points[1])
  9086. )
  9087. })
  9088. n.forEach(function (t) {
  9089. g ? t.setAttachment(g) : t.destroy()
  9090. })
  9091. }
  9092. this.nextTick(function () {
  9093. i.filter(function (t) {
  9094. return ~t.points.indexOf(e.points[0]) || ~t.points.indexOf(e.points[1])
  9095. }).forEach(function (t) {
  9096. return t.updateJoin()
  9097. })
  9098. }),
  9099. t.prototype.destroy.call(this),
  9100. this.removeJoin(),
  9101. i.some(function (t) {
  9102. return ~t.points.indexOf(e.points[0])
  9103. }) || this.points[0].destroy(),
  9104. i.some(function (t) {
  9105. return ~t.points.indexOf(e.points[1])
  9106. }) || this.points[1].destroy()
  9107. }),
  9108. (e.minWidth = 0.1),
  9109. e
  9110. )
  9111. })(a.default)
  9112. e.default = h
  9113. },
  9114. function (t, e) {
  9115. t.exports =
  9116. 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACEAAACECAYAAAAeNUIyAAAIPklEQVR4Xs2bZw8cNRCGXxN67y0gOqKDEIgiOkLwO/jAr0SiCRCRIggEEiAEUEivJIFUGPRsxqe9u123K8JSPiS3az87Mx6PXzvBzC6XdC6E8I/W3Mxsg6RLgpldKckknV0niANcKilECGwACBY5v2qDmNnFWAAAxupDrAVkFmAIYqUgQwBjECsBGQNIQSwVxAEIwsE2GxOzDy0crCkLxMFyENEi50MI52pnjZkxA/iTbCUQsQPySPH0LQXIxUSzaxyAXNDlgVyrsUTsi4Q26poaC9TExNCHDIK0ANS6ow/DrJkKVjNjCrIgFbmg3xnuuKLlRe+ks4gDEAMtzYCAvlvNWnrwhW+Rd892Ly8BpIV/Uj5MvsBBLmvpreGdqfplyoxrsshcATXnyxWDDFZwgwG1ItcAcCaE8O+s+0ajeskWGQXoklUqqJYEki2is/N7QZCkBSZrR8n0agTB98QAIMmWtUR8uxIEAOqPuSAcoimG8Mx6kSQSWuo9vvx0iQWq3DG1fJqlQIpdMLWK5vw19PuIa6pcsDDEgGuqXbAUCAchNigF/qmJgeKM2eKm1neqZkfrILn3qKzYnGDOojmd67Dmd7sw0zYA8aCko5KOLOLXmsF7gX2jpOuBeFQSVjgcQjhU21nr82Z2iyQgLooQsa/Dkg6t0jXugpsl3TTJmG6J+HcscsStsvQY6QHcgAXGIPh3Bj8aQjjQauqx98zsNmKgD8Czs+7ov78017gFbpWEBeZaCqKzyKIx4gAEIQCDeSkFEV1zLISwv9U1Zna7u2A0MeYg4tgE68GaWeMWiDGQ/IZSCFZJQIqmby8GCMLs0lAK0SU5SbhmX841ZnanpGtLAHKzY2wsgvXAkGu82CEGAChuNZaInWIRQKZixAGYhteVWiCVrEq+YMo1ZobfN0q6uhYguuMBF0lKBp99plt9JWGBa1o66LYGZgY9U2lU9k103im+/WODSpCzkvZHpQYQIpp6cV0NYXZvCOFkX6kB5A5JrQJYDTzW2xNC+LuLif6bZnaVu2aVstHpzgUOMAfRZaQLZ2K4JiuM13y6P4sFdocQTvXfHVNqVgFCEP4RQjgzC59SagBh1nBkuWjjy/eFEHDFXMspNai9JKFFXMOX44I5C0wyZu4T/fD2rkYQvnxX7pwku8x6sOISFiYsU9r+chcQC8lWBNEDwTUlmZUYwAVFR1bFEA4CwN0JENI4AMyC4rP3KggHIZGRWWddA8BJd0HxWdlgssr5rweCa/qZFQDWgiqAZggHYY3BNUxf1gBiICsXVueJnFX84BVrnKqpxIszZg5gmb9XB+YyB59kTDNDIzjeElCLArk7r6O8e4t5LemXmrm9BACqOFSijUC85xubHZJ+WweIbw/uk0SR3d2pAaKbdZJ+d4sUpdsWa/gZ6v2S7unfqYkQ9IkcsEvST6uwiMfAw5JYlaeUmj5E/LidknYuM1gd4CG3wJQR++6YtS4W2ZEqRkrd4TUJAKT6uZaCIEZ2S9q+iEVcrH3M65FRpWbIHX1aLPJjC4gH4eNeq44aLmWJ/kt7PFgHC9Wh3n0P84gk9KpkK4XANehW35dUS26Bp1wwzS4NpRDxSyLIaN1oZqyqz4zJhbWBOWZCRFaCtdtH9puZIQ8QhIN65ViHtZaImRUh/rsQwsQifiPl6Val5t0WdQX9W9K35BEHeLZRKOmuszwnCdW9pQFCLrm3VizrDXYQCOSAJ2r96J0wayjtWzUN5KatUakhoJhSrbpTixWPe1yd6Cs1TZHdMrrH0zakIt4fUmpaXVPKw8z6IafUoF3hmipVtpDgmM+oqRwzptQAwsJTlXQSIATwwbEkl1NqcA3V+KKNLIsLmpSaZbgGxZekNroCZ1c4V3xZD2otElde1plkCZCF6BaLC7IiIDWZda/HwKhWFX1cBOEgZNYn/TwrFSNYgGm4tbQ+LYbogXCsPWYRAKjCKAezWlW1JeILvmIyfWdBYmEMQNXmqcoSPRBihITGQVusMZiGuKAKYC5t1yQDD1YKWY6bKPvYtVVLRQtBeIzEG+rcLCtW62Y/tskdNRYrefb/AWFmrA+/hhCQgdfavKq7j/LuAyAkfT5Uxq+KygFeljSBiALJF7HaWdXgHtBUcS9FoSRaIo7JOfhHIYQTq4IwM6b0G/1N8iwEYyOifbYKEDOjWnt1VqcYgoggxMify7KIS5XEAId8U20Mgocoxz4OIbA3WKiZGdeZcMHkWlO/wxQEz7EifhpCYI/Q1NwCr6d0ihwEAxOsuIYtX1UzM85FmAXJYqgEgoEBwDXFIA7wmi9wSfhSiBgjn4QQKFyTze/VvVlQhXX91EDwPGUbCW30Xo2ZcRDDLCAfFLVaCDpl2mKRORAzQyp+RRL1aHFrgaBzpi2ZdXJ10mMAF7BXqWpAvN+oL7Cv/MJFEgTzF2st4KTngXjbJf8qen+YNQaxlWODmtPj/lg74p0aQLics84ih5Wb4vjDqNSwxWNh4arCuho7NJLgkb5SQ0S/4xZZNQhiG4E9eKcGv+Ia0u0qXIMLiCGy72STPDeQmSGMkGwGzyYWNBGHOZtmF8QxpQaLMOc5JlpW2y7pq9o7NYBQAwCyiGs4V/tZ0pdjm+TcnRry/wuu2LZaZJukzalKPvuFfn7F9CUh1TSCcIukr3Ob5CwEo/oZBgsTIJOjxAQR+9KtboHsJrkIwkHII89L4lwz1YgBLLClVCgphnAQ7tQQI6g1Qw2ATX5MVbxLr4LogbBiYpG+azD7N26BYgD6rIZwEKYv5yTRIgy62ZWabAzMmrAJwkEQSDhuIlixAFcfmv4nxH+8RMcvoX23QgAAAABJRU5ErkJggg=='
  9117. },
  9118. function (t, e) {
  9119. t.exports =
  9120. 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACEAAACECAYAAAAeNUIyAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAABphJREFUeNrsW2tTHEUU7enZAXYD4bkICCKaqNFUtPxiaUzUWH73H2sV5bt8lkETX2VFQiCoRBNY1rDrXHK6qtPOo++dnsEPuVUdyOzM9Nl7b3ffc7qJlVJjaRuiNW1x2kZ1+g+1EVxoGgD1qzUuRLjQaghAC/1Rv0pbH9CFpAEgLfQTmQvauaFuIP8BkAWiTiCZAFRBRwYI2f2AOZBpuuDBUB5pWV8o9wblAYR+/iMAkJQBKPNEVY94AfAFYb+0VcO9x7NW4nlvZM2qAw8PRL4gdOA4J4wv5Z2YZc/ZySpef2K8MGI+54ZmRPgesmFkrWaR0CvDis/2I2dZjVRzdgxgOBwemcQ8ogtNA0C/D40OunDYQIX1EICsIWo8MmwKQN48UVdohvD0ke9kFTo0BsCAO2OGCo0JwUA6bVcFkhsC7tohBULfvFey2LEWMC6QAed+zirqm6yFSRhiKR+UADEhYIVOUk/kuXogTWItzHo3NOwQhLSoQh3xAP3wJMSADBBa/U8sqZAbVY36TaiiegoXeicAYCZtCwTisbS18cF+gyDm0jZLid2yUHXxc7fmoaYtAJnzxDQ+1DUDmC6arEyc5moC0QUAXcbAtOWqUKGhd867HvCZtqfhER0AAHlgSrJ2aADpVgRhPBBJCbHJEbLbzNBoDP+pUKsoNzQmByZDLuURPDLvef8CPOC1unL0icjK7p2c0MQAcLruombKml1dAOSpiSYqK+OReefaInKAXeDEeDAWAGkjnH0AmBBWWP0YulNbqDfRhs04nhcBSNu2eZBetKSa3XghzXwrLe/u2ujH4dYmNl7I+zepfqEa03XhKcxyozUCoApu2xRQWYXuvbTdUjIx3dcDt9wKLmuI7sNVoYFQEt5I20HWUMuzDkIzFgDAATzQ4/KO/UChIXq4VVTNR55zwbISCOfo+IYq2MLKGh1FQBYsauBjJsn7oWhgz+eFTg5s+d7PnWpJ/15R+Tt7QwD4TZWIZZJw2DaKmbWdAeAuPOa9jSll5SbbD3NygL2PWmVroYXQJBjOmxKpKIRI0sJ6I+Ymj5Qa12ZUc4c3ssI5S5XUq6io9lSz52qozzNpO0u/PIsynnjEXw0BoX7XIFW1DBrDsOj/d2pWakbQ55rKOVPzBG6Ia8yBM+gncuNiAzEcMrRHCMDZtK26k6QLwmbhCXLkKACAMeTeCpcGLgN51eGbAMCShJVHAEKj5ZqSHfChJHwBtWolaWAFYbuueKovrSnP+chNvtP2Il6YMDxwTnlKkb7xjlBj0s+rJWUbFT0vqRy5sKpSoxBbAvK9ytbBSR54ngNAKpJ04Wq3zmwjCae4L9SCtSICkBct4kwAXuaIZXZJEcN1HYFHOpZAdo4rllm2axas00xiY4dgTvgs2Z9p29CokjfS9rdQRJPOqLQkbKTl3b2oamYL7fe0fUc8JU+pOV8zkF14vlCpuQpX1WF7NoAy8jOOMR/KIzQN3M6a5Mq4aAehmQkAYgceECk1GwFC80ceAA4XHceomRGEYBsh6IWQBjoAwtkl3AKAw1A0cB/jeo+ZhId1SAOnSooVAnAT5aCXVCRVasySPZcBYBMAvGVHKSs/QLbvOQB2uABCKDUd1J2TGAXXJRV5CJEkARgxbXyk1Lh2HkPvJOy4dKBYvouCps7NljwAr6XtginNnsRI+VA9UGXrtgnIVKs2+YkAhCj8e8J609doSL9pk2Q3MYnqXVKCrWZPo6r+dZel6xxd4pLyPHbAMCoFLqftcV8aSECuBCzv6IzOW3lCiS7hnBcrMCvXA7NSQryEJJoVAljE892qrHxBCGQRHiitxjQjppcZdWaXk9yctaMLjyx4aFxXODoFdwEj175RAGQVHmMNb8kqOglXz2XkwEXJYhhDceGCaaPTO5jinwawccGXuh8j2SRUz+wak2cuCNUesp9jcIR5uJFbc44iYSX76KY4XtdYutdxoUmj+mXdVWrIE+8o/6NtVWwTJUPmmRpKuLeRdHX8TRiFgI4yvG9IclahS8TmA1C5OuwXVG89H/LTxtK7HBAAEeRPXJJcxkXbmKaXK4aGtrB+SNtHWSS5jHccwHW/VvQA8dPPili675kamg3XBEn4ddq+LKISHGlgFAXqmvL/i6lv0/Z5GUnm0EBKpo/T9qNnDnwDD3ixdMmZmleg1uQB+FQ9EGS9z9RwxfE+hhmBf8YJDX3rrzgAqtQTfWT7NScHvkAY2Ju5VcZ/glpkDR74SQm2tSkc/wowABSuxDvxNYq7AAAAAElFTkSuQmCC'
  9121. },
  9122. function (t, e, i) {
  9123. Object.defineProperty(e, '__esModule', { value: !0 }),
  9124. (e.methods = {
  9125. getRoomEles: function (t) {
  9126. var e = this
  9127. return {
  9128. ground: t.ground.map(function (t) {
  9129. return e.points.find(function (e) {
  9130. return e.id === t
  9131. }).ele
  9132. }),
  9133. hole: t.hole.map(function (t) {
  9134. return t.pos.map(function (t) {
  9135. return e.points.find(function (e) {
  9136. return e.id === t
  9137. }).ele
  9138. })
  9139. })
  9140. }
  9141. }
  9142. })
  9143. },
  9144. function (t, e, i) {
  9145. var n =
  9146. (this && this.__assign) ||
  9147. function () {
  9148. return (n =
  9149. Object.assign ||
  9150. function (t) {
  9151. for (var e, i = 1, n = arguments.length; i < n; i++)
  9152. for (var g in (e = arguments[i]))
  9153. Object.prototype.hasOwnProperty.call(e, g) && (t[g] = e[g])
  9154. return t
  9155. }).apply(this, arguments)
  9156. },
  9157. g =
  9158. (this && this.__spreadArrays) ||
  9159. function () {
  9160. for (var t = 0, e = 0, i = arguments.length; e < i; e++) t += arguments[e].length
  9161. var n = Array(t),
  9162. g = 0
  9163. for (e = 0; e < i; e++)
  9164. for (var A = arguments[e], r = 0, o = A.length; r < o; r++, g++) n[g] = A[r]
  9165. return n
  9166. }
  9167. Object.defineProperty(e, '__esModule', { value: !0 })
  9168. var A = function (t, e) {
  9169. return void 0 === e && (e = 2), Number(t.toFixed(e))
  9170. }
  9171. e.methods = {
  9172. baseArchToData: function (t) {
  9173. return {
  9174. line: this.getLineId(t.attachment),
  9175. pos: [
  9176. A(t.linePoints[0].x),
  9177. A(t.linePoints[0].y),
  9178. A(t.linePoints[1].x),
  9179. A(t.linePoints[1].y)
  9180. ],
  9181. top: t.top,
  9182. bottom: t.bottom
  9183. }
  9184. },
  9185. roomArchToData: function (t) {
  9186. return {
  9187. pos: [
  9188. A(t.points[0].x),
  9189. A(t.points[0].y),
  9190. A(t.points[1].x),
  9191. A(t.points[1].y),
  9192. A(t.points[2].x),
  9193. A(t.points[2].y),
  9194. A(t.points[3].x),
  9195. A(t.points[3].y)
  9196. ],
  9197. top: t.top,
  9198. bottom: t.bottom,
  9199. angle: t.angle
  9200. }
  9201. },
  9202. pointToData: function (t) {
  9203. var e = t.ele
  9204. return { id: t.id, x: A(e.x), y: A(e.y) }
  9205. },
  9206. lineToData: function (t) {
  9207. var e = t.ele,
  9208. i = t.id,
  9209. n = t.border
  9210. return {
  9211. id: i,
  9212. p1: this.getPointId(e.points[0]),
  9213. p2: this.getPointId(e.points[1]),
  9214. border: n,
  9215. exterior: e.exterior
  9216. }
  9217. },
  9218. doorToData: function (t) {
  9219. var e = t.ele,
  9220. i = this.baseArchToData(e)
  9221. return (
  9222. (i.within = e.within),
  9223. (i.show = e.show),
  9224. (i.ctl = [e.ctl[0].x, -e.ctl[0].y]),
  9225. (i.start = e.start),
  9226. i
  9227. )
  9228. },
  9229. DoubleDoorToData: function (t) {
  9230. var e = t.ele,
  9231. i = this.baseArchToData(e)
  9232. return (i.within = e.within), (i.show = e.show), i
  9233. },
  9234. slideDoorToData: function (t) {
  9235. var e = t.ele,
  9236. i = this.baseArchToData(e)
  9237. return (i.within = e.within), (i.show = e.show), i
  9238. },
  9239. caseToData: function (t) {
  9240. var e = t.ele
  9241. return this.baseArchToData(e)
  9242. },
  9243. groundCaseToData: function (t) {
  9244. var e = t.ele
  9245. return this.baseArchToData(e)
  9246. },
  9247. BayCaseToData: function (t) {
  9248. var e = t.ele,
  9249. i = this.baseArchToData(e)
  9250. return (
  9251. (i.within = e.within), (i.ctl = [e.ctl[0].x, -e.ctl[0].y, e.ctl[1].x, -e.ctl[1].y]), i
  9252. )
  9253. },
  9254. columnToData: function (t) {
  9255. var e = t.ele,
  9256. i = this.baseArchToData(e)
  9257. return n(n({}, i), {
  9258. pos: g(i.pos, [A(e.points[3].x), A(e.points[3].y), A(e.points[2].x), A(e.points[2].y)])
  9259. })
  9260. },
  9261. taggingToData: function (t) {
  9262. var e = t.ele
  9263. return {
  9264. pos: [e.x, e.y],
  9265. title: e.title,
  9266. content: e.content,
  9267. showTitle: e.showTitle,
  9268. showContent: e.showContent
  9269. }
  9270. },
  9271. furnColumnToData: function (t) {
  9272. var e = t.ele
  9273. return this.roomArchToData(e)
  9274. },
  9275. furnFlueToData: function (t) {
  9276. var e = t.ele
  9277. return this.roomArchToData(e)
  9278. },
  9279. getNewPointId: function () {
  9280. return 0 === this.points.length
  9281. ? 1
  9282. : Math.max.apply(
  9283. Math,
  9284. this.points.map(function (t) {
  9285. return t.id
  9286. })
  9287. ) + 1
  9288. },
  9289. getNewLineId: function () {
  9290. return 0 === this.lines.length
  9291. ? 1
  9292. : Math.max.apply(
  9293. Math,
  9294. this.lines.map(function (t) {
  9295. return t.id
  9296. })
  9297. ) + 1
  9298. },
  9299. getLineId: function (t) {
  9300. var e = this.lines.find(function (e) {
  9301. return e.ele === t
  9302. })
  9303. return e ? e.id : 0
  9304. },
  9305. getPointId: function (t) {
  9306. return this.points.find(function (e) {
  9307. return e.ele === t
  9308. }).id
  9309. },
  9310. toData: function () {
  9311. var t = this,
  9312. e = this.points.map(function (e) {
  9313. return t.pointToData(e)
  9314. }),
  9315. i = this.columns.map(function (e) {
  9316. return t.columnToData(e)
  9317. }),
  9318. n = this.cases.map(function (e) {
  9319. return t.caseToData(e)
  9320. }),
  9321. g = this.doors.map(function (e) {
  9322. return t.doorToData(e)
  9323. }),
  9324. A = this.slideDoors.map(function (e) {
  9325. return t.slideDoorToData(e)
  9326. }),
  9327. r = this.groundCases.map(function (e) {
  9328. return t.groundCaseToData(e)
  9329. }),
  9330. o = this.taggings.map(function (e) {
  9331. return t.taggingToData(e)
  9332. }),
  9333. C = this.bayCases.map(function (e) {
  9334. return t.BayCaseToData(e)
  9335. }),
  9336. I = this.doubleDoors.map(function (e) {
  9337. return t.DoubleDoorToData(e)
  9338. }),
  9339. s = this.furnColumns.map(function (e) {
  9340. return t.furnColumnToData(e)
  9341. }),
  9342. a = this.furnFlues.map(function (e) {
  9343. return t.furnFlueToData(e)
  9344. }),
  9345. l = []
  9346. return (
  9347. this.lines.forEach(function (e) {
  9348. try {
  9349. l.push(t.lineToData(e))
  9350. } catch (t) {}
  9351. }),
  9352. {
  9353. id: this.id,
  9354. show: this.show,
  9355. vertex: e,
  9356. wall: l,
  9357. window: n,
  9358. door: g,
  9359. column: i,
  9360. surplus: this.data.surplus,
  9361. slideDoor: A,
  9362. groundCase: r,
  9363. tagging: o,
  9364. doubleDoor: I,
  9365. bayCase: C,
  9366. furnColumn: s,
  9367. furnFlue: a,
  9368. dire: this.data.dire
  9369. }
  9370. )
  9371. }
  9372. }
  9373. },
  9374. function (t, e, i) {
  9375. var n =
  9376. (this && this.__spreadArrays) ||
  9377. function () {
  9378. for (var t = 0, e = 0, i = arguments.length; e < i; e++) t += arguments[e].length
  9379. var n = Array(t),
  9380. g = 0
  9381. for (e = 0; e < i; e++)
  9382. for (var A = arguments[e], r = 0, o = A.length; r < o; r++, g++) n[g] = A[r]
  9383. return n
  9384. },
  9385. g =
  9386. (this && this.__importDefault) ||
  9387. function (t) {
  9388. return t && t.__esModule ? t : { default: t }
  9389. }
  9390. Object.defineProperty(e, '__esModule', { value: !0 })
  9391. var A = g(i(4)),
  9392. r = i(0),
  9393. o = i(1)
  9394. e.methods = {
  9395. lineInsertPoint: function (t, e) {
  9396. var i = this,
  9397. g = [],
  9398. C = [],
  9399. I = this,
  9400. s = I.points.find(function (t) {
  9401. return t.ele === e
  9402. })
  9403. return s
  9404. ? (I.lines.forEach(function (a) {
  9405. var l = a.ele
  9406. a.border
  9407. if (
  9408. ~l.points.indexOf(t.points[0]) &&
  9409. ~l.points.indexOf(t.points[1]) &&
  9410. !I.lines.some(function (t) {
  9411. var i = t.ele
  9412. return ~i.points.indexOf(e) && ~i.points.indexOf(l.points[0])
  9413. })
  9414. ) {
  9415. var u = A.default.attaArch.get(l)
  9416. i.cad.increase
  9417. var c = {
  9418. ele: i.cad.increase(o.SEFTLINE, {
  9419. id: i.getNewLineId(),
  9420. p1: I.getPointId(l.points[0]),
  9421. p2: s.id,
  9422. border: l.border,
  9423. exterior: l.exterior,
  9424. isOut: l.isOut
  9425. }).obj
  9426. }
  9427. C.push(c), c.ele.update()
  9428. var h = [s.ele, l.points[1]]
  9429. ;(l.points = h),
  9430. l.listenPointDrag([s.ele, l.points[1]]),
  9431. g.push(
  9432. new Promise(function (t) {
  9433. l.nextTick(function () {
  9434. l.updateJoin(),
  9435. c.ele.updateJoin(),
  9436. u &&
  9437. n(u).forEach(function (t) {
  9438. r.pointLineDis(c.ele, t.linePoints[0]) < 0.1 &&
  9439. r.pointLineDis(c.ele, t.linePoints[1]) < 0.1 &&
  9440. t.setAttachment(c.ele)
  9441. }),
  9442. setTimeout(t, 200)
  9443. })
  9444. })
  9445. )
  9446. }
  9447. }),
  9448. { lines: C, promis: Promise.all(g), ret: !0 })
  9449. : { ret: !1 }
  9450. }
  9451. }
  9452. },
  9453. function (t, e, i) {
  9454. var n =
  9455. (this && this.__assign) ||
  9456. function () {
  9457. return (n =
  9458. Object.assign ||
  9459. function (t) {
  9460. for (var e, i = 1, n = arguments.length; i < n; i++)
  9461. for (var g in (e = arguments[i]))
  9462. Object.prototype.hasOwnProperty.call(e, g) && (t[g] = e[g])
  9463. return t
  9464. }).apply(this, arguments)
  9465. },
  9466. g =
  9467. (this && this.__spreadArrays) ||
  9468. function () {
  9469. for (var t = 0, e = 0, i = arguments.length; e < i; e++) t += arguments[e].length
  9470. var n = Array(t),
  9471. g = 0
  9472. for (e = 0; e < i; e++)
  9473. for (var A = arguments[e], r = 0, o = A.length; r < o; r++, g++) n[g] = A[r]
  9474. return n
  9475. },
  9476. A =
  9477. (this && this.__importDefault) ||
  9478. function (t) {
  9479. return t && t.__esModule ? t : { default: t }
  9480. }
  9481. Object.defineProperty(e, '__esModule', { value: !0 })
  9482. var r = A(i(4)),
  9483. o = A(i(13)),
  9484. C = i(3),
  9485. I = i(0),
  9486. s = i(1),
  9487. a = i(9),
  9488. l = [s.TAGGING, s.LINE, s.SEFTLINE],
  9489. u = [
  9490. s.POINT,
  9491. s.DOOR,
  9492. s.COLUMN,
  9493. s.CASEMENT,
  9494. s.ARCH,
  9495. s.SLIDEDOOR,
  9496. s.GROUNDCASE,
  9497. s.BAYCASE,
  9498. s.DOUBLEDOOR
  9499. ],
  9500. c = [s.FURNCOLUMN, s.FURNFLUE]
  9501. e.attachInsert = function (t) {
  9502. var e,
  9503. i = function (e, i) {
  9504. var n = t.processing,
  9505. g = n.lines
  9506. .map(function (t) {
  9507. return t.ele
  9508. })
  9509. .filter(function (t) {
  9510. return !t.exterior
  9511. })
  9512. .map(function (t) {
  9513. return { dis: I.pointLineDis(t, e), line: t }
  9514. })
  9515. .sort(function (t, e) {
  9516. return t.dis - e.dis
  9517. })
  9518. .find(function (t) {
  9519. return (
  9520. I.pointLineDis(t.line, I.getLinePoint(t.line, { x: e.x })) < 0.1 ||
  9521. I.pointLineDis(t.line, I.getLinePoint(t.line, { y: e.y })) < 0.1
  9522. )
  9523. })
  9524. if (!g)
  9525. return {
  9526. error: !0,
  9527. msg: a.i18n.t('modules.model.error_location', { widget: s.ARCH[i] }),
  9528. obj: null
  9529. }
  9530. var A = g.line,
  9531. o =
  9532. (n.lines.find(function (t) {
  9533. return t.ele === A
  9534. }),
  9535. r.default.attaArch.get(A),
  9536. I.getLinePoint(A, e))
  9537. if (i === s.POINT)
  9538. return I.pointLineDis(g.line, o) > 0.1
  9539. ? {
  9540. error: !0,
  9541. msg: a.i18n.t('modules.model.error_location', { widget: '' }),
  9542. obj: null
  9543. }
  9544. : [A, o]
  9545. var l = (function (t, e, i) {
  9546. var n = I.getDisPointLinePoints(t, e, i / 2)
  9547. return [n[0], n[1]]
  9548. })(A, o, s.DEFAULT[i].width)
  9549. return C.type.isArray(l) ? [A, l, e] : { error: !0, msg: l }
  9550. },
  9551. A =
  9552. (((e = {})[s.POINT] = function (e, i) {
  9553. var g = t.processing
  9554. g.insertModel = !0
  9555. var A = g.addPoint(n({ id: g.getNewPointId() }, i))
  9556. g.data.vertex.push({ id: A.id, x: A.ele.x, y: A.ele.y })
  9557. var r = g.lineInsertPoint(e, A.ele),
  9558. o = r.lines,
  9559. C = r.promis
  9560. if (r.ret)
  9561. return (
  9562. C.then(function () {
  9563. return (g.insertModel = !1)
  9564. }),
  9565. o.map(function (t) {
  9566. return t.ele
  9567. })
  9568. )
  9569. }),
  9570. (e[s.DOOR] = function (e, i, n, g, A) {
  9571. var r = t.processing
  9572. return r.addDoor({
  9573. pos: [i[0].x, i[0].y, i[1].x, i[1].y],
  9574. line: r.getLineId(e),
  9575. start: !1,
  9576. within: 0
  9577. }).ele
  9578. }),
  9579. (e[s.DOUBLEDOOR] = function (e, i, n, g, A) {
  9580. var r = t.processing
  9581. return r.adddDoubleDoor({
  9582. pos: [i[0].x, i[0].y, i[1].x, i[1].y],
  9583. line: r.getLineId(e),
  9584. start: !1,
  9585. within: 0
  9586. }).ele
  9587. }),
  9588. (e[s.SLIDEDOOR] = function (e, i, n, g, A) {
  9589. var r = t.processing
  9590. return r.addSlideDoor({
  9591. within: 0,
  9592. pos: [i[0].x, i[0].y, i[1].x, i[1].y],
  9593. line: r.getLineId(e)
  9594. }).ele
  9595. }),
  9596. (e[s.GROUNDCASE] = function (e, i, n, g, A) {
  9597. var r = t.processing
  9598. return r.addGroundCase({ pos: [i[0].x, i[0].y, i[1].x, i[1].y], line: r.getLineId(e) })
  9599. .ele
  9600. }),
  9601. (e[s.BAYCASE] = function (e, i, n, g, A) {
  9602. var r = t.processing
  9603. return r.addBayCase({
  9604. pos: [i[0].x, i[0].y, i[1].x, i[1].y],
  9605. line: r.getLineId(e),
  9606. within: 0
  9607. }).ele
  9608. }),
  9609. (e[s.CASEMENT] = function (e, i, n, g, A) {
  9610. var r = t.processing
  9611. return r.addCase({ pos: [i[0].x, i[0].y, i[1].x, i[1].y], line: r.getLineId(e) }).ele
  9612. }),
  9613. (e[s.COLUMN] = function (e, i, n) {
  9614. var g = t.processing,
  9615. A = I.getDisVerticalLinePoints(e, i[0], s.DEFAULT[s.COLUMN].width),
  9616. r = (A[0], A[1])
  9617. if (!r)
  9618. return a.i18n.t('modules.model.error_widget', {
  9619. widget: a.i18n.t('modules.model.column')
  9620. })
  9621. var o = I.getDisVerticalLinePoints(e, i[1], s.DEFAULT[s.COLUMN].tick),
  9622. C = o[0],
  9623. l = o[1],
  9624. u = I.lineDis({ points: [C, r] }) > I.lineDis({ points: [l, r] }) ? l : C
  9625. return g.addColumn({
  9626. pos: [i[0].x, i[0].y, i[1].x, i[1].y, r.x, r.y, u.x, u.y],
  9627. line: g.getLineId(e)
  9628. }).ele
  9629. }),
  9630. (e[s.TAGGING] = function (e) {
  9631. return t.processing.addTagging({
  9632. pos: [e.x, e.y],
  9633. title: '',
  9634. content: '',
  9635. showTitle: !0,
  9636. showContent: !0
  9637. }).ele
  9638. }),
  9639. (e[s.FURNCOLUMN] = function (e, i, n, g) {
  9640. return t.processing.addFurnColumn({ pos: e, angle: 0 }).ele
  9641. }),
  9642. (e[s.FURNFLUE] = function (e, i, n, g) {
  9643. return t.processing.addFurnFlue({ pos: e, angle: 0 }).ele
  9644. }),
  9645. (e[s.LINE] = function (e) {
  9646. t.processing
  9647. var i = s.DEFAULT[s.LINE].width,
  9648. n = {
  9649. points: [
  9650. { x: e.x - i / 2, y: e.y },
  9651. { x: e.x + i / 2, y: e.y }
  9652. ]
  9653. },
  9654. g = t.processing.lines.some(function (t) {
  9655. var e = t.ele
  9656. return I.segmentsIntr(e, n)
  9657. })
  9658. return g &&
  9659. ((n = {
  9660. points: [
  9661. { x: e.x - i / 2, y: e.y },
  9662. { x: e.x + i / 2, y: e.y }
  9663. ]
  9664. }),
  9665. (g = t.processing.lines.some(function (t) {
  9666. var e = t.ele
  9667. return I.segmentsIntr(e, n)
  9668. })))
  9669. ? a.i18n.t('modules.model.error_widget', { widget: a.i18n.t('modules.model.line') })
  9670. : t.processing.furnColumns
  9671. .concat(t.processing.furnFlues)
  9672. .map(function (t) {
  9673. return t.ele
  9674. })
  9675. .every(function (t) {
  9676. return (
  9677. !I.isFaceIntersect(n.points, t.points) &&
  9678. !I.isFaceContain(n.points, t.points) &&
  9679. !I.isFaceContain(t.points, n.points)
  9680. )
  9681. })
  9682. ? t.processing.addRoom(n)[0].ele
  9683. : a.i18n.t('modules.model.error_widget', { widget: a.i18n.t('modules.model.line') })
  9684. }),
  9685. (e[s.SEFTLINE] = function (e) {
  9686. return t.processing.addLine(e).ele
  9687. }),
  9688. e)
  9689. t.increase = function (e, r, I, h, p) {
  9690. void 0 === I && (I = null), void 0 === h && (h = null), void 0 === p && (p = !1)
  9691. var d = t.processing.render
  9692. if (A[e]) {
  9693. var f,
  9694. y = p ? d.screenToRealPoint(r) : r
  9695. if (~u.indexOf(e) || ~c.indexOf(e)) {
  9696. var v = ~c.indexOf(e)
  9697. ? (function (e, i) {
  9698. var g = t.processing,
  9699. A = s.DEFAULT[i].width / 2,
  9700. r = s.DEFAULT[i].tick / 2,
  9701. C = [
  9702. { x: e.x - A, y: e.y + r },
  9703. { x: e.x + A, y: e.y + r },
  9704. { x: e.x + A, y: e.y - r },
  9705. { x: e.x - A, y: e.y - r }
  9706. ],
  9707. I = (n(n({}, o.default.prototype), { renderer: g.render, minWidth: 0.1 }), [])
  9708. return (
  9709. C.forEach(function (t) {
  9710. I.push(t.x), I.push(t.y)
  9711. }),
  9712. [I]
  9713. )
  9714. })(y, e)
  9715. : i(y, e)
  9716. if (!C.type.isArray(v)) return v
  9717. var m = A[e].apply(A, g(v, [I, h]))
  9718. if ('string' == typeof m) return { error: !0, msg: m, obj: null }
  9719. f = m
  9720. } else if (~l.indexOf(e) && 'string' == typeof (f = A[e](y)))
  9721. return { error: !0, msg: f, obj: null }
  9722. return (
  9723. t.preservation && t.preservation(),
  9724. { error: !1, msg: a.i18n.t('modules.model.success', { widget: s.ARCH[e] }), obj: f }
  9725. )
  9726. }
  9727. }
  9728. var h = t.destroy
  9729. t.destroy = function () {
  9730. for (var e = [], i = 0; i < arguments.length; i++) e[i] = arguments[i]
  9731. var n = t.processing
  9732. n.render
  9733. ;(n = null), h.apply(this, e)
  9734. }
  9735. }
  9736. },
  9737. function (t, e, i) {
  9738. var n =
  9739. (this && this.__spreadArrays) ||
  9740. function () {
  9741. for (var t = 0, e = 0, i = arguments.length; e < i; e++) t += arguments[e].length
  9742. var n = Array(t),
  9743. g = 0
  9744. for (e = 0; e < i; e++)
  9745. for (var A = arguments[e], r = 0, o = A.length; r < o; r++, g++) n[g] = A[r]
  9746. return n
  9747. },
  9748. g =
  9749. (this && this.__importDefault) ||
  9750. function (t) {
  9751. return t && t.__esModule ? t : { default: t }
  9752. }
  9753. Object.defineProperty(e, '__esModule', { value: !0 })
  9754. var A = g(i(41)),
  9755. r = g(i(42))
  9756. e.attachGauge = function (t) {
  9757. var e = {
  9758. processings: [],
  9759. setGaugeAttrs: [],
  9760. showGauge: [],
  9761. setGaugeModel: [],
  9762. hideGauge: [],
  9763. showDire: [],
  9764. hideDire: [],
  9765. setDireAttrs: [],
  9766. setAngle: []
  9767. },
  9768. i = t.delProcessing
  9769. t.delProcessing = function (g) {
  9770. for (var A = [], r = 1; r < arguments.length; r++) A[r - 1] = arguments[r]
  9771. var o = e.processings.indexOf(g)
  9772. return (
  9773. console.error('-------', o),
  9774. ~o &&
  9775. Object.keys(e).forEach(function (t) {
  9776. e[t].splice(o, 1)
  9777. }),
  9778. i.call.apply(i, n([t, g], A))
  9779. )
  9780. }
  9781. var g = t.addProcessing
  9782. ;(t.addProcessing = function () {
  9783. for (var i = [], C = 0; C < arguments.length; C++) i[C] = arguments[C]
  9784. var I,
  9785. s = g.call.apply(g, n([t], i))
  9786. e.processings.push(s)
  9787. var a = s.lines,
  9788. l = a.push,
  9789. u = s.points,
  9790. c = u.push,
  9791. h = function (t) {
  9792. ;(t.__label_intercept = t.intercept),
  9793. (t.intercept = function () {
  9794. for (var e = [], i = 0; i < arguments.length; i++) e[i] = arguments[i]
  9795. return I.update(), t.__label_intercept.apply(t, e)
  9796. })
  9797. },
  9798. p = function (t) {
  9799. ;(t.__label_intercept = t.drag),
  9800. (t.drag = function () {
  9801. for (var e = [], i = 0; i < arguments.length; i++) e[i] = arguments[i]
  9802. return I.update(), t.__label_intercept.apply(t, e)
  9803. })
  9804. }
  9805. e.setGaugeAttrs.push(function (t) {
  9806. ;(I.__state.direct = !0),
  9807. Object.keys(t).forEach(function (e) {
  9808. I[e] = t[e]
  9809. }),
  9810. (I.__state.direct = !1),
  9811. I.update()
  9812. })
  9813. var d = function () {
  9814. I || ((I = new A.default({ processing: s })), (t.gauge = I)),
  9815. (a.push = function () {
  9816. for (var t = [], e = 0; e < arguments.length; e++) t[e] = arguments[e]
  9817. var i = l.apply(a, t)
  9818. return (
  9819. I.update(),
  9820. t.forEach(function (t) {
  9821. var e = t.ele
  9822. return p(e)
  9823. }),
  9824. i
  9825. )
  9826. }),
  9827. u.forEach(function (t) {
  9828. var e = t.ele
  9829. return h(e)
  9830. }),
  9831. a.forEach(function (t) {
  9832. var e = t.ele
  9833. return p(e)
  9834. }),
  9835. (u.push = function () {
  9836. for (var t = [], e = 0; e < arguments.length; e++) t[e] = arguments[e]
  9837. return (
  9838. t.forEach(function (t) {
  9839. var e = t.ele
  9840. return h(e)
  9841. }),
  9842. c.apply(u, t)
  9843. )
  9844. }),
  9845. s.render.push(I)
  9846. }
  9847. e.showGauge.push(d),
  9848. o && d(),
  9849. e.setGaugeModel.push(function (t) {
  9850. return I
  9851. ? ((I.surround = 1 === t),
  9852. new Promise(function (t) {
  9853. return I.nextTick(t)
  9854. }))
  9855. : new Promise(function (t) {
  9856. return t(void 0)
  9857. })
  9858. }),
  9859. e.hideGauge.push(function () {
  9860. ;(a.push = l),
  9861. (u.push = c),
  9862. u.forEach(function (t) {
  9863. var e = t.ele
  9864. return (e.intercept = e.__label_intercept)
  9865. }),
  9866. s.render.remove(I)
  9867. })
  9868. var f = new r.default({ angle: 0, renderer: s.render })
  9869. return (
  9870. (s.direction = f),
  9871. e.showDire.push(function () {
  9872. ;(f.show = !0), s.render.push(f)
  9873. }),
  9874. e.hideDire.push(function () {
  9875. ;(f.show = !1), s.render.remove(f)
  9876. }),
  9877. e.setDireAttrs.push(function (t) {
  9878. return (
  9879. Object.keys(t).forEach(function (e) {
  9880. f[e] = t[e]
  9881. }),
  9882. new Promise(function (t) {
  9883. return f.nextTick(t)
  9884. })
  9885. )
  9886. }),
  9887. s
  9888. )
  9889. }),
  9890. (t.setGaugeAttrs = function (t) {
  9891. return (
  9892. console.error(e.setGaugeAttrs),
  9893. Promise.all(
  9894. e.setGaugeAttrs.map(function (e) {
  9895. return e(t)
  9896. })
  9897. )
  9898. )
  9899. })
  9900. var o = !1
  9901. ;(t.showGauge = function () {
  9902. o ||
  9903. ((o = !0),
  9904. e.showGauge.forEach(function (t) {
  9905. return t()
  9906. }))
  9907. }),
  9908. (t.setGaugeModel = function (t) {
  9909. return Promise.all(
  9910. e.setGaugeModel.map(function (e) {
  9911. return e(t)
  9912. })
  9913. )
  9914. }),
  9915. (t.hideGauge = function () {
  9916. o &&
  9917. ((o = !0),
  9918. e.hideGauge.forEach(function (t) {
  9919. return t()
  9920. }))
  9921. })
  9922. var C = t.destroy
  9923. ;(t.destroy = function () {
  9924. for (var e = [], i = 0; i < arguments.length; i++) e[i] = arguments[i]
  9925. t.hideGauge(), (o = !1), C.apply(this, e)
  9926. }),
  9927. (t.showDire = function () {
  9928. e.showDire.forEach(function (t) {
  9929. return t()
  9930. })
  9931. }),
  9932. (t.hideDire = function () {
  9933. e.hideDire.forEach(function (t) {
  9934. return t()
  9935. })
  9936. }),
  9937. (t.setDireAttrs = function (t) {
  9938. return Promise.all(
  9939. e.setDireAttrs.map(function (e) {
  9940. return e(t)
  9941. })
  9942. )
  9943. }),
  9944. (t.setAngle = function (e) {
  9945. ;(t.processing.data.dire = e), (t.processing.direction.angle = e)
  9946. })
  9947. }
  9948. },
  9949. function (t, e, i) {
  9950. var n,
  9951. g =
  9952. (this && this.__extends) ||
  9953. ((n = function (t, e) {
  9954. return (n =
  9955. Object.setPrototypeOf ||
  9956. ({ __proto__: [] } instanceof Array &&
  9957. function (t, e) {
  9958. t.__proto__ = e
  9959. }) ||
  9960. function (t, e) {
  9961. for (var i in e) e.hasOwnProperty(i) && (t[i] = e[i])
  9962. })(t, e)
  9963. }),
  9964. function (t, e) {
  9965. function i() {
  9966. this.constructor = t
  9967. }
  9968. n(t, e),
  9969. (t.prototype = null === e ? Object.create(e) : ((i.prototype = e.prototype), new i()))
  9970. }),
  9971. A =
  9972. (this && this.__assign) ||
  9973. function () {
  9974. return (A =
  9975. Object.assign ||
  9976. function (t) {
  9977. for (var e, i = 1, n = arguments.length; i < n; i++)
  9978. for (var g in (e = arguments[i]))
  9979. Object.prototype.hasOwnProperty.call(e, g) && (t[g] = e[g])
  9980. return t
  9981. }).apply(this, arguments)
  9982. },
  9983. r =
  9984. (this && this.__rest) ||
  9985. function (t, e) {
  9986. var i = {}
  9987. for (var n in t)
  9988. Object.prototype.hasOwnProperty.call(t, n) && e.indexOf(n) < 0 && (i[n] = t[n])
  9989. if (null != t && 'function' == typeof Object.getOwnPropertySymbols) {
  9990. var g = 0
  9991. for (n = Object.getOwnPropertySymbols(t); g < n.length; g++)
  9992. e.indexOf(n[g]) < 0 &&
  9993. Object.prototype.propertyIsEnumerable.call(t, n[g]) &&
  9994. (i[n[g]] = t[n[g]])
  9995. }
  9996. return i
  9997. }
  9998. Object.defineProperty(e, '__esModule', { value: !0 })
  9999. var o = i(2),
  10000. C = i(1),
  10001. I = i(0),
  10002. s = 0,
  10003. a = function (t, e, i, n, g, A, r, o, a) {
  10004. var l = document.createElementNS(C.SVGURI, 'g'),
  10005. u = { points: [t, e] },
  10006. c = 'lineBoth' + s++,
  10007. h = I.getDisVerticalLinePoints(u, t, n),
  10008. p = h[0],
  10009. d = h[1],
  10010. f = I.getDisVerticalLinePoints(u, e, n),
  10011. y = f[0],
  10012. v = f[1],
  10013. m = document.createElementNS(C.SVGURI, 'path')
  10014. l.appendChild(m),
  10015. m.setAttribute('stroke', a),
  10016. m.setAttribute('stroke-width', i.toString()),
  10017. 'top' === o || 'right' === o
  10018. ? m.setAttribute('d', 'M ' + p.x + ' ' + p.y + ' L ' + y.x + ' ' + y.y)
  10019. : m.setAttribute('d', 'M ' + d.x + ' ' + d.y + ' L ' + v.x + ' ' + v.y),
  10020. m.setAttribute('id', c)
  10021. var b = m.cloneNode(!0)
  10022. b.setAttribute('d', 'M ' + p.x + ' ' + p.y + ' L ' + d.x + ' ' + d.y),
  10023. l.appendChild(b),
  10024. (b = m.cloneNode(!0)).setAttribute('d', 'M ' + y.x + ' ' + y.y + ' L ' + v.x + ' ' + v.y),
  10025. l.appendChild(b)
  10026. var x = (A.toString().length / 2.5) * g,
  10027. _ = A / 2 - x,
  10028. w = document.createElementNS(C.SVGURI, 'text')
  10029. w.setAttribute('x', _.toString()),
  10030. w.setAttribute('y', '0'),
  10031. w.setAttribute('style', 'fill: ' + a + '; font-size: ' + g + 'px')
  10032. var P = document.createElementNS(C.SVGURI, 'textPath')
  10033. P.setAttributeNS(C.SVGPATH, 'xlink:href', '#' + c),
  10034. P.appendChild(document.createTextNode(A + 'm')),
  10035. w.appendChild(P)
  10036. var O = I.lineVector({ points: [t, e] }),
  10037. S = document.createElementNS(C.SVGURI, 'path')
  10038. S.setAttribute('stroke', a),
  10039. S.setAttribute('stroke-width', i.toString()),
  10040. O.x > O.y
  10041. ? S.setAttribute(
  10042. 'd',
  10043. 'M ' + t.x + ' ' + t.y + ' L ' + (e.x - _ - 2 * x - r) + ' ' + e.y
  10044. )
  10045. : S.setAttribute(
  10046. 'd',
  10047. 'M ' + t.x + ' ' + t.y + ' L ' + e.x + ' ' + (e.y - _ - 2 * x - r)
  10048. )
  10049. var E = S.cloneNode(!0)
  10050. return (
  10051. O.x > O.y
  10052. ? E.setAttribute('d', 'M ' + (e.x - _ + r) + ' ' + t.y + ' L ' + e.x + ' ' + e.y)
  10053. : E.setAttribute('d', 'M ' + t.x + ' ' + (e.y - _ + r) + ' L ' + e.x + ' ' + e.y),
  10054. l.appendChild(E),
  10055. l.appendChild(S),
  10056. (m.style.display = 'none'),
  10057. l.appendChild(w),
  10058. l
  10059. )
  10060. },
  10061. l = (function (t) {
  10062. function e(e) {
  10063. var i = e.processing,
  10064. n = e.padding,
  10065. g = void 0 === n ? 10 : n,
  10066. o = e.spacing,
  10067. C = void 0 === o ? 4 : o,
  10068. I = e.minPX,
  10069. s = void 0 === I ? 50 : I,
  10070. a = e.width,
  10071. l = void 0 === a ? 1 : a,
  10072. u = e.showBottom,
  10073. c = void 0 === u || u,
  10074. h = e.showTop,
  10075. p = void 0 === h || h,
  10076. d = e.showLeft,
  10077. f = void 0 === d || d,
  10078. y = e.showRight,
  10079. v = void 0 === y || y,
  10080. m = e.surround,
  10081. b = void 0 !== m && m,
  10082. x = e.stroke,
  10083. _ = void 0 === x ? '#fff' : x,
  10084. w = r(e, [
  10085. 'processing',
  10086. 'padding',
  10087. 'spacing',
  10088. 'minPX',
  10089. 'width',
  10090. 'showBottom',
  10091. 'showTop',
  10092. 'showLeft',
  10093. 'showRight',
  10094. 'surround',
  10095. 'stroke'
  10096. ]),
  10097. P =
  10098. t.call(
  10099. this,
  10100. A(
  10101. {
  10102. renderer: i.render,
  10103. minPX: s,
  10104. width: l,
  10105. showBottom: c,
  10106. showTop: p,
  10107. showLeft: f,
  10108. showRight: v,
  10109. surround: b,
  10110. stroke: _
  10111. },
  10112. w
  10113. )
  10114. ) || this
  10115. return (
  10116. (P.padding = g),
  10117. (P.spacing = C),
  10118. (P.processing = i),
  10119. Object.defineProperty(P, 'points', {
  10120. get: function () {
  10121. return this.processing.points
  10122. }
  10123. }),
  10124. P.update(),
  10125. P
  10126. )
  10127. }
  10128. return (
  10129. g(e, t),
  10130. (e.prototype.grentNode = function () {
  10131. ;(this.top = document.createElementNS(C.SVGURI, 'g')),
  10132. (this.left = document.createElementNS(C.SVGURI, 'g')),
  10133. (this.right = document.createElementNS(C.SVGURI, 'g')),
  10134. (this.bottom = document.createElementNS(C.SVGURI, 'g'))
  10135. var t = document.createElementNS(C.SVGURI, 'g')
  10136. return (
  10137. t.appendChild(this.top),
  10138. t.appendChild(this.left),
  10139. t.appendChild(this.right),
  10140. t.appendChild(this.bottom),
  10141. t
  10142. )
  10143. }),
  10144. (e.prototype.calcSplit = function () {
  10145. var t = this.processing.render,
  10146. e = this.minPX,
  10147. i = I.lineDis({
  10148. points: [t.screenToRealPoint({ x: 0, y: 0 }), t.screenToRealPoint({ x: e, y: 0 })]
  10149. }),
  10150. n = I.lineDis({
  10151. points: [t.screenToRealPoint({ x: 0, y: 0 }), t.screenToRealPoint({ x: 0, y: e })]
  10152. }),
  10153. g = this.points.map(function (t) {
  10154. return t.ele
  10155. }),
  10156. r = [],
  10157. o = [],
  10158. C = [],
  10159. s = [],
  10160. a = function (t, e, r) {
  10161. var o, C
  10162. g.sort(e),
  10163. g.forEach(function (e) {
  10164. return 0 === t.length || e[r] > t[t.length - 1]
  10165. ? t.push(e[r])
  10166. : e[r] < t[0] && t.unshift(e[r])
  10167. })
  10168. for (var s = 'x' === r ? i : n, a = { x: 0, y: 0 }, l = 0; l < t.length - 2; l++) {
  10169. var u = A(A({}, a), (((o = {})[r] = t[l]), o)),
  10170. c = A(A({}, a), (((C = {})[r] = t[l + 1]), C))
  10171. I.lineDis({ points: [u, c] }) < s && (t.splice(l + 1, 1), l--)
  10172. }
  10173. t.length > 2 && t.splice(t.length - 2, 2, t[t.length - 1])
  10174. }
  10175. return (
  10176. a(
  10177. r,
  10178. function (t, e) {
  10179. return t.x - e.x ? t.x - e.x : e.y - t.y
  10180. },
  10181. 'y'
  10182. ),
  10183. a(
  10184. C,
  10185. function (t, e) {
  10186. return e.x - t.x ? e.x - t.x : e.y - t.y
  10187. },
  10188. 'y'
  10189. ),
  10190. a(
  10191. o,
  10192. function (t, e) {
  10193. return t.y - e.y ? t.y - e.y : e.x - t.x
  10194. },
  10195. 'x'
  10196. ),
  10197. a(
  10198. s,
  10199. function (t, e) {
  10200. return e.y - t.y ? e.y - t.y : e.x - t.x
  10201. },
  10202. 'x'
  10203. ),
  10204. { left: r, top: o, right: C, bottom: s }
  10205. )
  10206. }),
  10207. (e.prototype.update = function () {
  10208. var t = this
  10209. if (0 !== this.points.length && 0 !== this.processing.render.props.width) {
  10210. var e = this.processing.render,
  10211. i = 10 * this.width * this.multiple,
  10212. n = this.calcSplit(),
  10213. g = n.left,
  10214. A = n.right,
  10215. r = n.top,
  10216. o = n.bottom,
  10217. C = e.screenToRealPoint({ x: this.padding, y: this.padding }),
  10218. I = e.screenToRealPoint({
  10219. x: e.props.width / e.props.multiple - this.padding,
  10220. y: e.props.height / e.props.multiple - this.padding
  10221. })
  10222. if (this.surround) {
  10223. var s = this.points.map(function (t) {
  10224. return t.ele.x
  10225. }),
  10226. l = this.points.map(function (t) {
  10227. return t.ele.y
  10228. }),
  10229. u = Math.max.apply(Math, s),
  10230. c = Math.min.apply(Math, s),
  10231. h = Math.max.apply(Math, l),
  10232. p = Math.min.apply(Math, l)
  10233. Math.abs(C.x - c) < Math.abs(C.y - p) && Math.abs(I.x - u) - Math.abs(I.y - h)
  10234. ? ((I = { x: I.x, y: h + Math.abs(C.x - c) }),
  10235. (C = { x: C.x, y: p - Math.abs(C.x - c) }))
  10236. : ((I = { x: u + Math.abs(C.y - h), y: I.y }),
  10237. (C = { x: c - Math.abs(C.y - p), y: I.y }))
  10238. }
  10239. var d = function (e, n, g, A) {
  10240. for (var r = 0; r < e.length - 1; r++) {
  10241. var o = 0 === r ? e[r] : e[r] + (t.spacing / 2) * t.multiple,
  10242. C = r + 1 === e.length ? e[r + 1] : e[r + 1] - (t.spacing / 2) * t.multiple
  10243. g(
  10244. a(
  10245. n(o),
  10246. n(C),
  10247. t.width * t.multiple,
  10248. 4 * t.width * t.multiple,
  10249. i,
  10250. Number(Math.abs(e[r + 1] - e[r]).toFixed(2)),
  10251. 10 * t.multiple,
  10252. A,
  10253. t.stroke
  10254. )
  10255. )
  10256. }
  10257. }
  10258. ;[this.left, this.top, this.right, this.bottom].forEach(function (t) {
  10259. for (; t.childNodes.length; ) t.removeChild(t.childNodes[0])
  10260. }),
  10261. this.showLeft &&
  10262. d(
  10263. g,
  10264. function (t) {
  10265. return { x: C.x, y: t }
  10266. },
  10267. function (e) {
  10268. return t.left.appendChild(e)
  10269. },
  10270. 'left'
  10271. ),
  10272. this.showBottom &&
  10273. d(
  10274. o,
  10275. function (t) {
  10276. return { x: t, y: I.y }
  10277. },
  10278. function (e) {
  10279. return t.bottom.appendChild(e)
  10280. },
  10281. 'bottom'
  10282. ),
  10283. this.showTop &&
  10284. d(
  10285. r,
  10286. function (t) {
  10287. return { x: t, y: C.y }
  10288. },
  10289. function (e) {
  10290. e
  10291. .querySelector('text')
  10292. .setAttribute('transform', 'translate(0, ' + i / 1.2 + ')'),
  10293. t.top.appendChild(e)
  10294. },
  10295. 'top'
  10296. ),
  10297. this.showRight &&
  10298. d(
  10299. A,
  10300. function (t) {
  10301. return { x: I.x, y: t }
  10302. },
  10303. function (e) {
  10304. e
  10305. .querySelector('text')
  10306. .setAttribute('transform', 'translate(-' + i / 1.2 + ', 0)'),
  10307. t.right.appendChild(e)
  10308. },
  10309. 'right'
  10310. )
  10311. }
  10312. }),
  10313. e
  10314. )
  10315. })(o.CADElement)
  10316. e.default = l
  10317. },
  10318. function (t, e, i) {
  10319. var n,
  10320. g =
  10321. (this && this.__extends) ||
  10322. ((n = function (t, e) {
  10323. return (n =
  10324. Object.setPrototypeOf ||
  10325. ({ __proto__: [] } instanceof Array &&
  10326. function (t, e) {
  10327. t.__proto__ = e
  10328. }) ||
  10329. function (t, e) {
  10330. for (var i in e) e.hasOwnProperty(i) && (t[i] = e[i])
  10331. })(t, e)
  10332. }),
  10333. function (t, e) {
  10334. function i() {
  10335. this.constructor = t
  10336. }
  10337. n(t, e),
  10338. (t.prototype = null === e ? Object.create(e) : ((i.prototype = e.prototype), new i()))
  10339. }),
  10340. A =
  10341. (this && this.__assign) ||
  10342. function () {
  10343. return (A =
  10344. Object.assign ||
  10345. function (t) {
  10346. for (var e, i = 1, n = arguments.length; i < n; i++)
  10347. for (var g in (e = arguments[i]))
  10348. Object.prototype.hasOwnProperty.call(e, g) && (t[g] = e[g])
  10349. return t
  10350. }).apply(this, arguments)
  10351. },
  10352. r =
  10353. (this && this.__rest) ||
  10354. function (t, e) {
  10355. var i = {}
  10356. for (var n in t)
  10357. Object.prototype.hasOwnProperty.call(t, n) && e.indexOf(n) < 0 && (i[n] = t[n])
  10358. if (null != t && 'function' == typeof Object.getOwnPropertySymbols) {
  10359. var g = 0
  10360. for (n = Object.getOwnPropertySymbols(t); g < n.length; g++)
  10361. e.indexOf(n[g]) < 0 &&
  10362. Object.prototype.propertyIsEnumerable.call(t, n[g]) &&
  10363. (i[n[g]] = t[n[g]])
  10364. }
  10365. return i
  10366. },
  10367. o =
  10368. (this && this.__importDefault) ||
  10369. function (t) {
  10370. return t && t.__esModule ? t : { default: t }
  10371. }
  10372. Object.defineProperty(e, '__esModule', { value: !0 })
  10373. var C = i(2),
  10374. I = i(1),
  10375. s = i(0),
  10376. a = o(i(43)),
  10377. l = o(i(44)),
  10378. u = o(i(45)),
  10379. c = { defaultIcon: l.default, darkIcon: u.default },
  10380. h = (function (t) {
  10381. function e(e) {
  10382. var i = e.fontSize,
  10383. n = void 0 === i ? 8 : i,
  10384. g = e.r,
  10385. o = void 0 === g ? 50 : g,
  10386. C = e.icon,
  10387. I = void 0 === C ? 'defaultIcon' : C,
  10388. s = e.border,
  10389. a = void 0 === s ? 3 : s,
  10390. l = e.right,
  10391. u = void 0 === l ? 20 : l,
  10392. c = e.top,
  10393. h = void 0 === c ? 20 : c,
  10394. p = e.ArgDire,
  10395. d = void 0 === p ? 15 : p,
  10396. f = e.simple,
  10397. y = void 0 !== f && f,
  10398. v = e.angle,
  10399. m = void 0 === v ? 0 : v,
  10400. b = r(e, [
  10401. 'fontSize',
  10402. 'r',
  10403. 'icon',
  10404. 'border',
  10405. 'right',
  10406. 'top',
  10407. 'ArgDire',
  10408. 'simple',
  10409. 'angle'
  10410. ])
  10411. return (
  10412. t.call(
  10413. this,
  10414. A(
  10415. {
  10416. fontSize: n,
  10417. r: o,
  10418. border: a,
  10419. right: u,
  10420. top: h,
  10421. ArgDire: d,
  10422. simple: y,
  10423. icon: I,
  10424. angle: m
  10425. },
  10426. b
  10427. )
  10428. ) || this
  10429. )
  10430. }
  10431. return (
  10432. g(e, t),
  10433. (e.prototype.grentNode = function () {
  10434. var t = document.createElementNS(I.SVGURI, 'g')
  10435. ;(this.dire = document.createElementNS(I.SVGURI, 'image')),
  10436. (this.bg = document.createElementNS(I.SVGURI, 'image')),
  10437. (this.bg.href.baseVal = a.default),
  10438. (this.inner = document.createElementNS(I.SVGURI, 'circle')),
  10439. this.inner.setAttribute('fill', 'rgba(41,41,41,1)')
  10440. var e = document.createElementNS(I.SVGURI, 'text')
  10441. return (
  10442. e.setAttribute('fill', '#fff'),
  10443. e.setAttribute('text-anchor', 'middle'),
  10444. (this.topText = e.cloneNode(!0)),
  10445. (this.rightText = e.cloneNode(!0)),
  10446. (this.leftText = e.cloneNode(!0)),
  10447. (this.bottomText = e.cloneNode(!0)),
  10448. (this.topText.textContent = 'N'),
  10449. this.topText.setAttribute('fill', '#00A0E9'),
  10450. (this.rightText.textContent = 'E'),
  10451. (this.leftText.textContent = 'W'),
  10452. (this.bottomText.textContent = 'S'),
  10453. this.bottomText.setAttribute('fill', '#D84141'),
  10454. (this.arc = document.createElementNS(I.SVGURI, 'path')),
  10455. this.arc.setAttribute('fill', 'rgba(255,255,255,0.3)'),
  10456. t.appendChild(this.inner),
  10457. t.appendChild(this.arc),
  10458. t.appendChild(this.bg),
  10459. t.appendChild(this.dire),
  10460. t.appendChild(this.topText),
  10461. t.appendChild(this.rightText),
  10462. t.appendChild(this.bottomText),
  10463. t.appendChild(this.leftText),
  10464. t
  10465. )
  10466. }),
  10467. (e.prototype.intercept = function () {
  10468. return !0
  10469. }),
  10470. (e.prototype.update = function () {
  10471. var t = this.r / 2 + this.border + this.right,
  10472. e = this.r / 2 + this.border + this.top,
  10473. i = this.renderer,
  10474. n = this.fontSize * this.multiple,
  10475. g = this.border * this.multiple,
  10476. A = i.screenToRealPoint({ x: i.props.width / i.props.multiple - e, y: t })
  10477. if (!isNaN(A.x) && !isNaN(A.y)) {
  10478. var r = this.r * this.multiple,
  10479. o = (n + 3 * g + r) / 2
  10480. this.inner.setAttribute('r', o.toString()),
  10481. this.inner.setAttribute('cx', A.x.toString()),
  10482. this.inner.setAttribute('cy', A.y.toString()),
  10483. this.icon !== this.firstIcon &&
  10484. ((this.dire.href.baseVal = c[this.icon]), (this.firstIcon = this.icon)),
  10485. this.dire.setAttribute('x', (A.x - r / 2).toString()),
  10486. this.dire.setAttribute('y', (A.y - r / 2).toString()),
  10487. this.dire.setAttribute('width', r.toString()),
  10488. this.dire.setAttribute('height', r.toString()),
  10489. this.bg.setAttribute('x', (A.x - r / 2).toString()),
  10490. this.bg.setAttribute('y', (A.y - r / 2).toString()),
  10491. this.bg.setAttribute('width', r.toString()),
  10492. this.bg.setAttribute('height', r.toString()),
  10493. this.topText.setAttribute('x', A.x.toString()),
  10494. this.topText.setAttribute('y', (A.y - r / 2 - n / 2 + g).toString()),
  10495. this.topText.setAttribute('font-size', n.toString()),
  10496. this.rightText.setAttribute('x', (A.x + r / 2 + g).toString()),
  10497. this.rightText.setAttribute('y', (A.y + n / 2).toString()),
  10498. this.rightText.setAttribute('font-size', n.toString()),
  10499. this.bottomText.setAttribute('x', A.x.toString()),
  10500. this.bottomText.setAttribute('y', (A.y + r / 2 + n).toString()),
  10501. this.bottomText.setAttribute('font-size', n.toString()),
  10502. this.leftText.setAttribute('x', (A.x - r / 2 - n + g).toString()),
  10503. this.leftText.setAttribute('y', (A.y + g).toString()),
  10504. this.leftText.setAttribute('font-size', n.toString())
  10505. var C = this.ArgDire * this.multiple,
  10506. I = { points: [A, { x: A.x - C, y: A.y - r / 2 - n - g }] },
  10507. a = { points: [A, { x: A.x + C, y: A.y - r / 2 - n - g }] },
  10508. l = s.getDisPointLinePoints(I, I.points[0], o),
  10509. u = l[0],
  10510. h = l[1],
  10511. p = s.getDisPointLinePoints(a, a.points[0], o),
  10512. d = p[0],
  10513. f = p[1],
  10514. y =
  10515. s.lineDis({ points: [I.points[1], u] }) > s.lineDis({ points: [I.points[1], h] })
  10516. ? h
  10517. : u,
  10518. v =
  10519. s.lineDis({ points: [a.points[1], d] }) > s.lineDis({ points: [a.points[1], f] })
  10520. ? f
  10521. : d
  10522. this.arc.setAttribute(
  10523. 'd',
  10524. 'M ' +
  10525. A.x +
  10526. ' ' +
  10527. A.y +
  10528. ' L ' +
  10529. y.x +
  10530. ' ' +
  10531. y.y +
  10532. ' A ' +
  10533. o +
  10534. ' ' +
  10535. o +
  10536. ' 0 0 1 ' +
  10537. v.x +
  10538. ' ' +
  10539. v.y +
  10540. ' Z'
  10541. ),
  10542. this.real.setAttribute(
  10543. 'transform',
  10544. 'rotate(' + (this.angle || 0) + ' ' + A.x + ' ' + A.y + ')'
  10545. ),
  10546. this.simple
  10547. ? ((this.leftText.style.display = 'none'),
  10548. (this.rightText.style.display = 'none'),
  10549. (this.bg.style.display = 'none'),
  10550. (this.inner.style.display = 'none'),
  10551. (this.arc.style.display = 'none'))
  10552. : ((this.leftText.style.display = 'inherit'),
  10553. (this.rightText.style.display = 'inherit'),
  10554. (this.bg.style.display = 'inherit'),
  10555. (this.inner.style.display = 'inherit'),
  10556. (this.arc.style.display = 'inherit'))
  10557. }
  10558. }),
  10559. e
  10560. )
  10561. })(C.CADElement)
  10562. e.default = h
  10563. },
  10564. function (t, e, i) {
  10565. Object.defineProperty(e, '__esModule', { value: !0 }),
  10566. (e.default =
  10567. 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAYAAABw4pVUAAAACXBIWXMAAAsTAAALEwEAmpwYAAA57mlUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4KPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgNS42LWMxMzggNzkuMTU5ODI0LCAyMDE2LzA5LzE0LTAxOjA5OjAxICAgICAgICAiPgogICA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPgogICAgICA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIgogICAgICAgICAgICB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iCiAgICAgICAgICAgIHhtbG5zOnhtcE1NPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvbW0vIgogICAgICAgICAgICB4bWxuczpzdEV2dD0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL3NUeXBlL1Jlc291cmNlRXZlbnQjIgogICAgICAgICAgICB4bWxuczpkYz0iaHR0cDovL3B1cmwub3JnL2RjL2VsZW1lbnRzLzEuMS8iCiAgICAgICAgICAgIHhtbG5zOnBob3Rvc2hvcD0iaHR0cDovL25zLmFkb2JlLmNvbS9waG90b3Nob3AvMS4wLyIKICAgICAgICAgICAgeG1sbnM6dGlmZj0iaHR0cDovL25zLmFkb2JlLmNvbS90aWZmLzEuMC8iCiAgICAgICAgICAgIHhtbG5zOmV4aWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20vZXhpZi8xLjAvIj4KICAgICAgICAgPHhtcDpDcmVhdG9yVG9vbD5BZG9iZSBQaG90b3Nob3AgQ0MgMjAxNyAoV2luZG93cyk8L3htcDpDcmVhdG9yVG9vbD4KICAgICAgICAgPHhtcDpDcmVhdGVEYXRlPjIwMTktMDQtMDJUMTg6MDg6MDQrMDg6MDA8L3htcDpDcmVhdGVEYXRlPgogICAgICAgICA8eG1wOk1ldGFkYXRhRGF0ZT4yMDE5LTA0LTAyVDE4OjA4OjA0KzA4OjAwPC94bXA6TWV0YWRhdGFEYXRlPgogICAgICAgICA8eG1wOk1vZGlmeURhdGU+MjAxOS0wNC0wMlQxODowODowNCswODowMDwveG1wOk1vZGlmeURhdGU+CiAgICAgICAgIDx4bXBNTTpJbnN0YW5jZUlEPnhtcC5paWQ6ZmNiZDY2ZjMtNWIwZC01MjQ2LWI2YWItZjYyNGJjMzIyYTcyPC94bXBNTTpJbnN0YW5jZUlEPgogICAgICAgICA8eG1wTU06RG9jdW1lbnRJRD5hZG9iZTpkb2NpZDpwaG90b3Nob3A6MzEzMmMzMmMtNTUyZi0xMWU5LWEwMGUtZTdmMzVhMTA0MmVkPC94bXBNTTpEb2N1bWVudElEPgogICAgICAgICA8eG1wTU06T3JpZ2luYWxEb2N1bWVudElEPnhtcC5kaWQ6NzJjOGU4ZjctNWJlZC1mZDQyLTlhYTQtNGYxZDQ0MDE5OTRjPC94bXBNTTpPcmlnaW5hbERvY3VtZW50SUQ+CiAgICAgICAgIDx4bXBNTTpIaXN0b3J5PgogICAgICAgICAgICA8cmRmOlNlcT4KICAgICAgICAgICAgICAgPHJkZjpsaSByZGY6cGFyc2VUeXBlPSJSZXNvdXJjZSI+CiAgICAgICAgICAgICAgICAgIDxzdEV2dDphY3Rpb24+Y3JlYXRlZDwvc3RFdnQ6YWN0aW9uPgogICAgICAgICAgICAgICAgICA8c3RFdnQ6aW5zdGFuY2VJRD54bXAuaWlkOjcyYzhlOGY3LTViZWQtZmQ0Mi05YWE0LTRmMWQ0NDAxOTk0Yzwvc3RFdnQ6aW5zdGFuY2VJRD4KICAgICAgICAgICAgICAgICAgPHN0RXZ0OndoZW4+MjAxOS0wNC0wMlQxODowODowNCswODowMDwvc3RFdnQ6d2hlbj4KICAgICAgICAgICAgICAgICAgPHN0RXZ0OnNvZnR3YXJlQWdlbnQ+QWRvYmUgUGhvdG9zaG9wIENDIDIwMTcgKFdpbmRvd3MpPC9zdEV2dDpzb2Z0d2FyZUFnZW50PgogICAgICAgICAgICAgICA8L3JkZjpsaT4KICAgICAgICAgICAgICAgPHJkZjpsaSByZGY6cGFyc2VUeXBlPSJSZXNvdXJjZSI+CiAgICAgICAgICAgICAgICAgIDxzdEV2dDphY3Rpb24+c2F2ZWQ8L3N0RXZ0OmFjdGlvbj4KICAgICAgICAgICAgICAgICAgPHN0RXZ0Omluc3RhbmNlSUQ+eG1wLmlpZDpmY2JkNjZmMy01YjBkLTUyNDYtYjZhYi1mNjI0YmMzMjJhNzI8L3N0RXZ0Omluc3RhbmNlSUQ+CiAgICAgICAgICAgICAgICAgIDxzdEV2dDp3aGVuPjIwMTktMDQtMDJUMTg6MDg6MDQrMDg6MDA8L3N0RXZ0OndoZW4+CiAgICAgICAgICAgICAgICAgIDxzdEV2dDpzb2Z0d2FyZUFnZW50PkFkb2JlIFBob3Rvc2hvcCBDQyAyMDE3IChXaW5kb3dzKTwvc3RFdnQ6c29mdHdhcmVBZ2VudD4KICAgICAgICAgICAgICAgICAgPHN0RXZ0OmNoYW5nZWQ+Lzwvc3RFdnQ6Y2hhbmdlZD4KICAgICAgICAgICAgICAgPC9yZGY6bGk+CiAgICAgICAgICAgIDwvcmRmOlNlcT4KICAgICAgICAgPC94bXBNTTpIaXN0b3J5PgogICAgICAgICA8ZGM6Zm9ybWF0PmltYWdlL3BuZzwvZGM6Zm9ybWF0PgogICAgICAgICA8cGhvdG9zaG9wOkNvbG9yTW9kZT4zPC9waG90b3Nob3A6Q29sb3JNb2RlPgogICAgICAgICA8dGlmZjpPcmllbnRhdGlvbj4xPC90aWZmOk9yaWVudGF0aW9uPgogICAgICAgICA8dGlmZjpYUmVzb2x1dGlvbj43MjAwMDAvMTAwMDA8L3RpZmY6WFJlc29sdXRpb24+CiAgICAgICAgIDx0aWZmOllSZXNvbHV0aW9uPjcyMDAwMC8xMDAwMDwvdGlmZjpZUmVzb2x1dGlvbj4KICAgICAgICAgPHRpZmY6UmVzb2x1dGlvblVuaXQ+MjwvdGlmZjpSZXNvbHV0aW9uVW5pdD4KICAgICAgICAgPGV4aWY6Q29sb3JTcGFjZT42NTUzNTwvZXhpZjpDb2xvclNwYWNlPgogICAgICAgICA8ZXhpZjpQaXhlbFhEaW1lbnNpb24+MTAwPC9leGlmOlBpeGVsWERpbWVuc2lvbj4KICAgICAgICAgPGV4aWY6UGl4ZWxZRGltZW5zaW9uPjEwMDwvZXhpZjpQaXhlbFlEaW1lbnNpb24+CiAgICAgIDwvcmRmOkRlc2NyaXB0aW9uPgogICA8L3JkZjpSREY+CjwveDp4bXBtZXRhPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgIAo8P3hwYWNrZXQgZW5kPSJ3Ij8+GZD5AAAAACBjSFJNAAB6JQAAgIMAAPn/AACA6QAAdTAAAOpgAAA6mAAAF2+SX8VGAAAGxklEQVR42uxdTWhVRxT+ThKTkrh4gQQRJCgGN49kUxqCuCq4cWFAhUZCRHFRoUR0ZcSdXRjcKGbVjUhLwJJWSRYuFApCSImlKEYXSpQoKJQKzaaiVfm6yFGCmZn3cnPffffnfBACd+beOed8b+acO/fMDJADkDxG8lgedGlCPvBFTvRAAwxGiMEIMUIMRogRknBoO0uyMcJ9jSRnjZDahOjdEe7rzlJ435CiHtBN8lagyjyAngiP7tF7fe3eItlthKzGEwDbSW5NihBta7u2bYSshIgQwASAIU+V+wB6Izy6V+91YQjAhLZdTJCcJtniKdtB8pGnrJPkgqfsBMkTnrIFkp2eskckd3jKWkhOF6GHvAJw0tNLHgNYItnnKPsbQCvJtjWQ3wagVe/9vKwPwJK26cJJlTX3hJwGMEJys6f8RwDDnrKHAMpraKus97gwrG25iNwMYERlzTchIvIXgEsAznmq/AxgP8kNMTh2p0PXZx/Qtlw4B+CSypp9QkiWSA4GqlwAsNMzNL0C8AeAPR7H7iLkg/65CHE59D0A7mhbrqFsp8ro02+QZClLjruV5AOSBwN1BvTtWxxl+0lOOq53kRx2XG8m2ey4Pkyyy3F9kuR+x3VRmQYCch9U3VqzFk1tI/mMZH+gzk2SQ54I56WLrBjkEn12i6NsiOTNwL39qtO2rIa4u0g+d/1KtbxMctEVOdVySHA9m2SbylL23NOluuzK+nvHIZL3SG70lI+TPJsCOc+SHPeUbVQdDmXB4KVK4ynJMZJTrtlaku0kj6ZAj6Mk2x3XG1X2sSr8ZikNhAyqk9sWqNNA8jrJ8xns4edV9oYK/vJBhcgyUaEPqrPbFXprJnmX5JEMkXFEZW6r4CefhSLKegnfr07vUKDOFpIzGSJkhuSWCv7xeSiSrLcCXer8xkJdPOvQIXhMde1Ku7Ab1QleX8tEYIbIaFPdpnyRYxqFblRneDfU5TNIxhbV6XyU7/u1Emqa5GWSm6p0ijM5ImSmmqCE5Ca10XQSQrWQHCX5guQp1xxSUaFzaqfUNqO+D3G1anwzySskH4cm4wpExoDa4krgW08igvTpDOlN3zxQzokoq+6zrs8J9RJKdKZ0Ueem2gtARLvquqi6xzIzHcu7gohQRCaw/Mn0HwD7CtA59qmuZRFJNnNFk9gEhvWMIN1xPvAWyackv/elzRicdtuhNntaISsz0sO3kjyjuUxzJL8j2WFmX2WnDrXNnNrqTCAbM9bIalw/hU7pN/CWApPQojaYUpuM1yXiIrlB4+9JFaRUQDJKqvuk2mJDahxXkZ22DdYGQxKQCl1xFsurj+b17z6AeVfyssFpv04sZ0/26v8eAO9FZGdUQhqxvCSs57MHt2I5ifkjSb+JyPOCG78LwNcrbFQG8HrlD1n/FkTkQyRCAo23aYMfifpTRH4qOCHDAL5cYfiHIvKvjRMGg8FgSCzs1Y2/1rPf1AcAP4jIfwV36s0AvgWwnmyUN7bXicFgMBgMeYmyIkYUNnWy2iaxTJ00VWikmsnFewBu228btzXk7QUwCKBMMt7JRZK/ayM2/R6t16x5+t1gMCTVPS3JIQY0rFOQT2lAAF4UNQ1Ida9fGpAjUe6AJcrxQKKJcpZKWrWdap9KasnWke1Wm2RrW46wfqdfl72BdQ332TRsJpOArkdV11jX4jfE+AsY0umUdgDXCvDDv6a6PoxzSVtcEZct+qz3ok9bFr3KHvVZFm0bBwRtk/zGAba1Rsq21qhScNt8JkVC2/ZMKRLWNjBLkZC2xV+KBLdNMNOyCaZtE5uybWJtI+VP9Voz8YHOthpPFxm2GX+KyLDjKlJEhh3okjJCgkceqQEf+6ar1YkOOK4fJnnRcX2E5Ijj+kWShz0/hilP230qW3OFyLImQ2pN3qZFZElErgaqnAQwKyJ3HMp2APgKwA3Hfb1wn9rZCPdSsnm4D6O8AaDPlaShMs3Cc7Sf1rkqIkuZIaRC79kE4Dj8R9J9A+BXEXnnKAuea+shpMdh0HcAftG2XDgN4Hg1M9p5mAe6THI0UD4XGMpeeiIy50mfGjm9DAxNcwE5RkleTto+9ZgA7IDnSDpNMSp5hrJOAK/XsuZC6752Hb2qbZQCaU0XVNZ8EyIie0XkrafYe/pmhOEqOGwpvKeKishbEdlbhB7ifT+Ant7sqRI69TmE0CnTEwCG0pRzlqZvFtsBPBGRxaR6iLb1RNs2Qj4zzoKI7A5UqcWQBRHZLSILRsja8R5AFMMt6L2ZQFNWBI26Lk8XWGZmTZ/tdWKEGIwQI8RghOQETTnR401eCPl/AKBc4r28/8mlAAAAAElFTkSuQmCC')
  10568. },
  10569. function (t, e, i) {
  10570. Object.defineProperty(e, '__esModule', { value: !0 }),
  10571. (e.default =
  10572. 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAYAAABw4pVUAAAACXBIWXMAAAsTAAALEwEAmpwYAAA57mlUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4KPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgNS42LWMxMzggNzkuMTU5ODI0LCAyMDE2LzA5LzE0LTAxOjA5OjAxICAgICAgICAiPgogICA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPgogICAgICA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIgogICAgICAgICAgICB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iCiAgICAgICAgICAgIHhtbG5zOnhtcE1NPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvbW0vIgogICAgICAgICAgICB4bWxuczpzdEV2dD0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL3NUeXBlL1Jlc291cmNlRXZlbnQjIgogICAgICAgICAgICB4bWxuczpkYz0iaHR0cDovL3B1cmwub3JnL2RjL2VsZW1lbnRzLzEuMS8iCiAgICAgICAgICAgIHhtbG5zOnBob3Rvc2hvcD0iaHR0cDovL25zLmFkb2JlLmNvbS9waG90b3Nob3AvMS4wLyIKICAgICAgICAgICAgeG1sbnM6dGlmZj0iaHR0cDovL25zLmFkb2JlLmNvbS90aWZmLzEuMC8iCiAgICAgICAgICAgIHhtbG5zOmV4aWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20vZXhpZi8xLjAvIj4KICAgICAgICAgPHhtcDpDcmVhdG9yVG9vbD5BZG9iZSBQaG90b3Nob3AgQ0MgMjAxNyAoV2luZG93cyk8L3htcDpDcmVhdG9yVG9vbD4KICAgICAgICAgPHhtcDpDcmVhdGVEYXRlPjIwMTktMDQtMDJUMTg6MDg6MTErMDg6MDA8L3htcDpDcmVhdGVEYXRlPgogICAgICAgICA8eG1wOk1ldGFkYXRhRGF0ZT4yMDE5LTA0LTAyVDE4OjA4OjExKzA4OjAwPC94bXA6TWV0YWRhdGFEYXRlPgogICAgICAgICA8eG1wOk1vZGlmeURhdGU+MjAxOS0wNC0wMlQxODowODoxMSswODowMDwveG1wOk1vZGlmeURhdGU+CiAgICAgICAgIDx4bXBNTTpJbnN0YW5jZUlEPnhtcC5paWQ6YjliYTljZjQtZGJkMy0zNzQ2LWFiYzItMTY3OWU5MDE0ZTIxPC94bXBNTTpJbnN0YW5jZUlEPgogICAgICAgICA8eG1wTU06RG9jdW1lbnRJRD5hZG9iZTpkb2NpZDpwaG90b3Nob3A6MzY3NTdiNWMtNTUyZi0xMWU5LWEwMGUtZTdmMzVhMTA0MmVkPC94bXBNTTpEb2N1bWVudElEPgogICAgICAgICA8eG1wTU06T3JpZ2luYWxEb2N1bWVudElEPnhtcC5kaWQ6ZTA5YzJmMmYtOGM5Zi1mZTQwLTgyMTEtMGNjZmY2ZDFmNzZkPC94bXBNTTpPcmlnaW5hbERvY3VtZW50SUQ+CiAgICAgICAgIDx4bXBNTTpIaXN0b3J5PgogICAgICAgICAgICA8cmRmOlNlcT4KICAgICAgICAgICAgICAgPHJkZjpsaSByZGY6cGFyc2VUeXBlPSJSZXNvdXJjZSI+CiAgICAgICAgICAgICAgICAgIDxzdEV2dDphY3Rpb24+Y3JlYXRlZDwvc3RFdnQ6YWN0aW9uPgogICAgICAgICAgICAgICAgICA8c3RFdnQ6aW5zdGFuY2VJRD54bXAuaWlkOmUwOWMyZjJmLThjOWYtZmU0MC04MjExLTBjY2ZmNmQxZjc2ZDwvc3RFdnQ6aW5zdGFuY2VJRD4KICAgICAgICAgICAgICAgICAgPHN0RXZ0OndoZW4+MjAxOS0wNC0wMlQxODowODoxMSswODowMDwvc3RFdnQ6d2hlbj4KICAgICAgICAgICAgICAgICAgPHN0RXZ0OnNvZnR3YXJlQWdlbnQ+QWRvYmUgUGhvdG9zaG9wIENDIDIwMTcgKFdpbmRvd3MpPC9zdEV2dDpzb2Z0d2FyZUFnZW50PgogICAgICAgICAgICAgICA8L3JkZjpsaT4KICAgICAgICAgICAgICAgPHJkZjpsaSByZGY6cGFyc2VUeXBlPSJSZXNvdXJjZSI+CiAgICAgICAgICAgICAgICAgIDxzdEV2dDphY3Rpb24+c2F2ZWQ8L3N0RXZ0OmFjdGlvbj4KICAgICAgICAgICAgICAgICAgPHN0RXZ0Omluc3RhbmNlSUQ+eG1wLmlpZDpiOWJhOWNmNC1kYmQzLTM3NDYtYWJjMi0xNjc5ZTkwMTRlMjE8L3N0RXZ0Omluc3RhbmNlSUQ+CiAgICAgICAgICAgICAgICAgIDxzdEV2dDp3aGVuPjIwMTktMDQtMDJUMTg6MDg6MTErMDg6MDA8L3N0RXZ0OndoZW4+CiAgICAgICAgICAgICAgICAgIDxzdEV2dDpzb2Z0d2FyZUFnZW50PkFkb2JlIFBob3Rvc2hvcCBDQyAyMDE3IChXaW5kb3dzKTwvc3RFdnQ6c29mdHdhcmVBZ2VudD4KICAgICAgICAgICAgICAgICAgPHN0RXZ0OmNoYW5nZWQ+Lzwvc3RFdnQ6Y2hhbmdlZD4KICAgICAgICAgICAgICAgPC9yZGY6bGk+CiAgICAgICAgICAgIDwvcmRmOlNlcT4KICAgICAgICAgPC94bXBNTTpIaXN0b3J5PgogICAgICAgICA8ZGM6Zm9ybWF0PmltYWdlL3BuZzwvZGM6Zm9ybWF0PgogICAgICAgICA8cGhvdG9zaG9wOkNvbG9yTW9kZT4zPC9waG90b3Nob3A6Q29sb3JNb2RlPgogICAgICAgICA8dGlmZjpPcmllbnRhdGlvbj4xPC90aWZmOk9yaWVudGF0aW9uPgogICAgICAgICA8dGlmZjpYUmVzb2x1dGlvbj43MjAwMDAvMTAwMDA8L3RpZmY6WFJlc29sdXRpb24+CiAgICAgICAgIDx0aWZmOllSZXNvbHV0aW9uPjcyMDAwMC8xMDAwMDwvdGlmZjpZUmVzb2x1dGlvbj4KICAgICAgICAgPHRpZmY6UmVzb2x1dGlvblVuaXQ+MjwvdGlmZjpSZXNvbHV0aW9uVW5pdD4KICAgICAgICAgPGV4aWY6Q29sb3JTcGFjZT42NTUzNTwvZXhpZjpDb2xvclNwYWNlPgogICAgICAgICA8ZXhpZjpQaXhlbFhEaW1lbnNpb24+MTAwPC9leGlmOlBpeGVsWERpbWVuc2lvbj4KICAgICAgICAgPGV4aWY6UGl4ZWxZRGltZW5zaW9uPjEwMDwvZXhpZjpQaXhlbFlEaW1lbnNpb24+CiAgICAgIDwvcmRmOkRlc2NyaXB0aW9uPgogICA8L3JkZjpSREY+CjwveDp4bXBtZXRhPgogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIAogICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgCiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAKICAgICAgICAgICAgICAgICAgICAgICAgICAgIAo8P3hwYWNrZXQgZW5kPSJ3Ij8+hSv1CAAAACBjSFJNAAB6JQAAgIMAAPn/AACA6QAAdTAAAOpgAAA6mAAAF2+SX8VGAAADBUlEQVR42uycO2/UQBRGz10tCggkBAqyiKCCCkRPBw00IChAYgON/wb/xg1hFwpooEsFRSToEFSk42UeQilQhII8FDFSErxmH17bd/mOFMnZ9YwyOfY39ng8FkJAtIeO/gUSIiREQoSESIiQEAkREiIhQkKEhEiIkBAJERIiIUJCJERIiJAQCRES4p2uhz/SzMp3SNLzAMTRWtluHuagdefkwLoFGLDmvSHm4agpPUOStAO8y387QRxlns+QeehDLgDH85+L6tTbEVdF24qs2iMrSfcBKXAk/+Q7EBFHW4qsZri0Qwb59mVFVnMsF3zWU2Q1EVlJegD4DBza880P4BhxtKnIqpcrBTIADgJXFVntiCv3seUzspL0MPAJ2D+kyM/8amtDkVUP10pkACwA1xVZ9XFnhH1uK7LqiKwkXQQ+8u+B0V/AEnH0RZE1W24y2ih1F7ihyGr26sp9bPmKrCRdYnuo3UYsGoCTxNF7Rdbszg4bx6W3exJvQiYZXnclxE9kJekp4O2EVZwmjtYVWc115m47d09Ceg2VlZC/SNJzwNkpajiT1yEhLYgrV7HlYl7W0YXOcjZlh9wx6wF3JaQCvvUWswqqyTy01UtkDSqo44GEVMf9CupYkZDqbgxfAa+nqOJNXoeEVEi/obL1Hnxehk5CCFMNnZiZhk4qlrIOvJig6Mu8rO7UW3K11ffUQFcPqEIIEz2gMjM9oJqRmA/AszGKPP8jQ5HVjnuSFW+NczcNKIQw1jQgM9M0oBnL+QqsjrDr6k4ZiqzZcm8e48plZOXRM9JkazPTZOuaBG0AT0t2ebJXhiKr2autvtdGuX2lLYRQ+kqbmemVtpolbQKPC756VCRDkdVcbPU9N8j1wgEhhMKFA8xMCwc0JGqL3c/KHw6Tociqj8GQbUVW3ZGVx9Cu5ZnMzPXyTO4XMDOzLIQw2N60zHt75mVFucGctMNHZP1PaFVSCRESIiFCQiRESIiECAmRECEhQkIkREiIhAgJkRAhIRIiJERIiIQICXHP7wEAHiDp1oKzlp8AAAAASUVORK5CYII=')
  10573. },
  10574. function (t, e, i) {
  10575. Object.defineProperty(e, '__esModule', { value: !0 }),
  10576. (e.default =
  10577. 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAYAAABw4pVUAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAwFJREFUeNrsnc1r1EAYhzNLpYqCKMpiqyc9KeLVm170ouhBwa1e/B88+d/k4rr1Az+wHpSCooeC3kRP9mbUsYIIioqy6zvuCEXTdD8mmbzL88AkaTIzbPpsfpNNk63p9XoJ1IcGvwKEAEIQAghBCCAEIYAQhABCACEIAYQgBBCCEEAIQgAhgBCEAEK0M6XhRRpjiiuk9vCf+cXmUlE1DfegTU3IG+uc8yZlSfuOGA3vmsIjJLUudt/4n3bLUdLVfIRMwhhyRMouX44yqNcjrvKWiazKIyu1G2RqpWzzaz5JaUps/SSy4nBslYzELx8nsuIxl7OuRWTFiKzUbpLpBylb/tnyVcpOia1vRFa1nMiR4dgs5SSRVY+4Uh9bOiMrtVtl+l7KxjWa/PBnW5+JrGo4VSDDMS3lNJFVHRcGqHOeyKoislK7Q6bvkvUvjP6SMiOxtUJklcvZZLCr1K7OGSIr7tmV+tjSFVmpnUn6l9rNgE3dzu2R2MqIrPKODjOMS22fSbQJGeXyuioheiIrtXtl8fWIXeyT2FomsuIN5moHd01CWpHaIuQ/UntQpgfG6GG/7wMhNYgrVbGl4r6s7dONue6YA3LDGBdblxES4kVeOtQN0E03aWVEViDmA/RxjTEkHFcD9NFGSCBslr2Q2csxunjl+0BIQDqR2iKkhNhqIyR8bC3L7NkITZ/7tgipydlWR9MOahPiYmuYT4g9hJQbW29l9mSIJk+lTYaQ+gzubW07p1HIjaR/i896uDo3EVJ+bH2U2eIAVRel7gpCquHKJMaVZiF3pXwv2O5utr6DkOpiy93Vfr+gyoKvg5CanG11tO6UZiELUr7krHePtN1DSPWx5Z4hvJ2z6ZbfhpCaxFZH8w5pF/Iw6X9ZwF/c8gOExIst940Nq/9Wft2vQ0hE5tdYVskkfF/W46T/iJvjEULix1a3OTvrjgzjlhFSv9hSjeF/4TKoA0IQAghBCCAEIYAQhABCACEIAYQgBBCCEEAIQgAhgBCEAEIQAkH5LcAAKoHVGsvfGGUAAAAASUVORK5CYII=')
  10578. },
  10579. function (t, e, i) {
  10580. var n =
  10581. (this && this.__spreadArrays) ||
  10582. function () {
  10583. for (var t = 0, e = 0, i = arguments.length; e < i; e++) t += arguments[e].length
  10584. var n = Array(t),
  10585. g = 0
  10586. for (e = 0; e < i; e++)
  10587. for (var A = arguments[e], r = 0, o = A.length; r < o; r++, g++) n[g] = A[r]
  10588. return n
  10589. },
  10590. g =
  10591. (this && this.__importDefault) ||
  10592. function (t) {
  10593. return t && t.__esModule ? t : { default: t }
  10594. }
  10595. Object.defineProperty(e, '__esModule', { value: !0 })
  10596. var A = g(i(47)),
  10597. r = i(3)
  10598. e.attachSign = function (t) {
  10599. var e = { border: 2, r: 5 },
  10600. i = t.addProcessing
  10601. ;(t.addProcessing = function () {
  10602. for (var g = [], r = 0; r < arguments.length; r++) g[r] = arguments[r]
  10603. var o = i.call.apply(i, n([t], g))
  10604. A.default.Setting.set(o.render, e)
  10605. var C = new A.default({ pos: { x: 0, y: 0 }, dire: 0, renderer: o.render })
  10606. return (C.zIndex = 1), o.render.push(C), (o.sign = C), o
  10607. }),
  10608. (t.setSign = function (e, i) {
  10609. var n = t.processing.sign
  10610. r.type.isNumber(i) && (n.dire = i), (n.pos = e)
  10611. }),
  10612. (t.hideSign = function () {
  10613. var e = t.processing.sign
  10614. return (
  10615. (e.show = !1),
  10616. new Promise(function (t) {
  10617. return e.nextTick(t)
  10618. })
  10619. )
  10620. }),
  10621. (t.showSign = function () {
  10622. var e = t.processing.sign
  10623. return (
  10624. (e.show = !0),
  10625. new Promise(function (t) {
  10626. return e.nextTick(t)
  10627. })
  10628. )
  10629. }),
  10630. (t.setDefaultSignStyle = function (i) {
  10631. var n = t.processing.sign
  10632. i.border && ((e.border = i.border), (n.border = i.border)),
  10633. i.r && ((e.r = i.r), (n.r = i.r)),
  10634. i.color && (n.color = i.color)
  10635. })
  10636. }
  10637. },
  10638. function (t, e, i) {
  10639. var n,
  10640. g =
  10641. (this && this.__extends) ||
  10642. ((n = function (t, e) {
  10643. return (n =
  10644. Object.setPrototypeOf ||
  10645. ({ __proto__: [] } instanceof Array &&
  10646. function (t, e) {
  10647. t.__proto__ = e
  10648. }) ||
  10649. function (t, e) {
  10650. for (var i in e) e.hasOwnProperty(i) && (t[i] = e[i])
  10651. })(t, e)
  10652. }),
  10653. function (t, e) {
  10654. function i() {
  10655. this.constructor = t
  10656. }
  10657. n(t, e),
  10658. (t.prototype = null === e ? Object.create(e) : ((i.prototype = e.prototype), new i()))
  10659. }),
  10660. A =
  10661. (this && this.__assign) ||
  10662. function () {
  10663. return (A =
  10664. Object.assign ||
  10665. function (t) {
  10666. for (var e, i = 1, n = arguments.length; i < n; i++)
  10667. for (var g in (e = arguments[i]))
  10668. Object.prototype.hasOwnProperty.call(e, g) && (t[g] = e[g])
  10669. return t
  10670. }).apply(this, arguments)
  10671. },
  10672. r =
  10673. (this && this.__rest) ||
  10674. function (t, e) {
  10675. var i = {}
  10676. for (var n in t)
  10677. Object.prototype.hasOwnProperty.call(t, n) && e.indexOf(n) < 0 && (i[n] = t[n])
  10678. if (null != t && 'function' == typeof Object.getOwnPropertySymbols) {
  10679. var g = 0
  10680. for (n = Object.getOwnPropertySymbols(t); g < n.length; g++)
  10681. e.indexOf(n[g]) < 0 &&
  10682. Object.prototype.propertyIsEnumerable.call(t, n[g]) &&
  10683. (i[n[g]] = t[n[g]])
  10684. }
  10685. return i
  10686. }
  10687. Object.defineProperty(e, '__esModule', { value: !0 })
  10688. var o = i(2),
  10689. C = i(1),
  10690. I = 0,
  10691. s = (function (t) {
  10692. function e(i) {
  10693. var n = i.border,
  10694. g = i.r,
  10695. o = i.show,
  10696. C = void 0 === o || o,
  10697. s = i.color,
  10698. a = void 0 === s ? 'rgb(0, 200, 175)' : s,
  10699. l = r(i, ['border', 'r', 'show', 'color'])
  10700. return (
  10701. (n = n || e.Setting.get(l.renderer).border),
  10702. (g = g || e.Setting.get(l.renderer).r),
  10703. I++,
  10704. t.call(this, A({ border: n, r: g, show: C, color: a }, l)) || this
  10705. )
  10706. }
  10707. return (
  10708. g(e, t),
  10709. (e.prototype.grentNode = function () {
  10710. var t = document.createElementNS(C.SVGURI, 'g')
  10711. ;(this.inner = document.createElementNS(C.SVGURI, 'circle')),
  10712. this.inner.setAttribute('stroke', '#fff'),
  10713. (this.arc = document.createElementNS(C.SVGURI, 'path')),
  10714. this.arc.setAttribute('fill', 'url(#orange_red' + I + ')')
  10715. var e = document.createElementNS(C.SVGURI, 'defs'),
  10716. i = document.createElementNS(C.SVGURI, 'linearGradient')
  10717. i.setAttribute('id', 'orange_red' + I),
  10718. i.setAttribute('x1', '0%'),
  10719. i.setAttribute('y1', '0%'),
  10720. i.setAttribute('x2', '100%'),
  10721. i.setAttribute('y2', '100%')
  10722. var n = document.createElementNS(C.SVGURI, 'stop')
  10723. n.setAttribute('offset', '0%')
  10724. var g = document.createElementNS(C.SVGURI, 'stop')
  10725. return (
  10726. g.setAttribute('offset', '100%'),
  10727. i.appendChild(n),
  10728. i.appendChild(g),
  10729. e.appendChild(i),
  10730. t.appendChild(this.arc),
  10731. t.appendChild(this.inner),
  10732. t.appendChild(e),
  10733. t.setAttribute('class', 'sign'),
  10734. (this.$stop1 = n),
  10735. (this.$stop2 = g),
  10736. t
  10737. )
  10738. }),
  10739. (e.prototype.update = function () {
  10740. this.inner.setAttribute('fill', this.color),
  10741. this.$stop1.setAttribute('style', 'stop-color:' + this.color + '; stop-opacity:1'),
  10742. this.$stop2.setAttribute('style', 'stop-color:' + this.color + '; stop-opacity:0.4'),
  10743. this.inner.setAttribute('r', (this.r * this.multiple).toString()),
  10744. this.inner.setAttribute('stroke-width', (this.border * this.multiple).toString()),
  10745. this.inner.setAttribute('cx', this.pos.x.toString()),
  10746. this.inner.setAttribute('cy', this.pos.y.toString())
  10747. var t = 0.4 * this.r * this.multiple,
  10748. e = 1.6 * this.r * this.multiple,
  10749. i = 2.8 * this.r * this.multiple
  10750. this.arc.setAttribute(
  10751. 'd',
  10752. '\n M ' +
  10753. this.pos.x +
  10754. ' ' +
  10755. (this.pos.y - t) +
  10756. ' \n L ' +
  10757. (this.pos.x + i) +
  10758. ' ' +
  10759. (this.pos.y - e) +
  10760. ' \n L ' +
  10761. (this.pos.x + i) +
  10762. ' ' +
  10763. (this.pos.y + e) +
  10764. ' \n L ' +
  10765. this.pos.x +
  10766. ' ' +
  10767. (this.pos.y + t) +
  10768. ' Z\n '
  10769. ),
  10770. this.real.setAttribute(
  10771. 'transform',
  10772. 'rotate(' + this.dire + ' ' + this.pos.x + ' ' + this.pos.y + ')'
  10773. ),
  10774. (this.real.style.display = this.show ? 'inherit' : 'none')
  10775. }),
  10776. (e.Setting = new Map()),
  10777. e
  10778. )
  10779. })(o.CADElement)
  10780. e.default = s
  10781. },
  10782. function (t, e, i) {
  10783. var n =
  10784. (this && this.__assign) ||
  10785. function () {
  10786. return (n =
  10787. Object.assign ||
  10788. function (t) {
  10789. for (var e, i = 1, n = arguments.length; i < n; i++)
  10790. for (var g in (e = arguments[i]))
  10791. Object.prototype.hasOwnProperty.call(e, g) && (t[g] = e[g])
  10792. return t
  10793. }).apply(this, arguments)
  10794. },
  10795. g =
  10796. (this && this.__awaiter) ||
  10797. function (t, e, i, n) {
  10798. return new (i || (i = Promise))(function (g, A) {
  10799. function r(t) {
  10800. try {
  10801. C(n.next(t))
  10802. } catch (t) {
  10803. A(t)
  10804. }
  10805. }
  10806. function o(t) {
  10807. try {
  10808. C(n.throw(t))
  10809. } catch (t) {
  10810. A(t)
  10811. }
  10812. }
  10813. function C(t) {
  10814. var e
  10815. t.done
  10816. ? g(t.value)
  10817. : ((e = t.value),
  10818. e instanceof i
  10819. ? e
  10820. : new i(function (t) {
  10821. t(e)
  10822. })).then(r, o)
  10823. }
  10824. C((n = n.apply(t, e || [])).next())
  10825. })
  10826. },
  10827. A =
  10828. (this && this.__generator) ||
  10829. function (t, e) {
  10830. var i,
  10831. n,
  10832. g,
  10833. A,
  10834. r = {
  10835. label: 0,
  10836. sent: function () {
  10837. if (1 & g[0]) throw g[1]
  10838. return g[1]
  10839. },
  10840. trys: [],
  10841. ops: []
  10842. }
  10843. return (
  10844. (A = { next: o(0), throw: o(1), return: o(2) }),
  10845. 'function' == typeof Symbol &&
  10846. (A[Symbol.iterator] = function () {
  10847. return this
  10848. }),
  10849. A
  10850. )
  10851. function o(A) {
  10852. return function (o) {
  10853. return (function (A) {
  10854. if (i) throw new TypeError('Generator is already executing.')
  10855. for (; r; )
  10856. try {
  10857. if (
  10858. ((i = 1),
  10859. n &&
  10860. (g =
  10861. 2 & A[0]
  10862. ? n.return
  10863. : A[0]
  10864. ? n.throw || ((g = n.return) && g.call(n), 0)
  10865. : n.next) &&
  10866. !(g = g.call(n, A[1])).done)
  10867. )
  10868. return g
  10869. switch (((n = 0), g && (A = [2 & A[0], g.value]), A[0])) {
  10870. case 0:
  10871. case 1:
  10872. g = A
  10873. break
  10874. case 4:
  10875. return r.label++, { value: A[1], done: !1 }
  10876. case 5:
  10877. r.label++, (n = A[1]), (A = [0])
  10878. continue
  10879. case 7:
  10880. ;(A = r.ops.pop()), r.trys.pop()
  10881. continue
  10882. default:
  10883. if (
  10884. !(g = (g = r.trys).length > 0 && g[g.length - 1]) &&
  10885. (6 === A[0] || 2 === A[0])
  10886. ) {
  10887. r = 0
  10888. continue
  10889. }
  10890. if (3 === A[0] && (!g || (A[1] > g[0] && A[1] < g[3]))) {
  10891. r.label = A[1]
  10892. break
  10893. }
  10894. if (6 === A[0] && r.label < g[1]) {
  10895. ;(r.label = g[1]), (g = A)
  10896. break
  10897. }
  10898. if (g && r.label < g[2]) {
  10899. ;(r.label = g[2]), r.ops.push(A)
  10900. break
  10901. }
  10902. g[2] && r.ops.pop(), r.trys.pop()
  10903. continue
  10904. }
  10905. A = e.call(t, r)
  10906. } catch (t) {
  10907. ;(A = [6, t]), (n = 0)
  10908. } finally {
  10909. i = g = 0
  10910. }
  10911. if (5 & A[0]) throw A[1]
  10912. return { value: A[0] ? A[1] : void 0, done: !0 }
  10913. })([A, o])
  10914. }
  10915. }
  10916. }
  10917. Object.defineProperty(e, '__esModule', { value: !0 })
  10918. var r = i(3)
  10919. e.attachScreenshot = function (t) {
  10920. t.screenshot = function (e) {
  10921. var i = e.width,
  10922. o = void 0 === i ? 2048 : i,
  10923. C = e.height,
  10924. I = void 0 === C ? 2048 : C,
  10925. s = e.bgColor,
  10926. a = void 0 === s ? 'rgba(0,0,0,0)' : s,
  10927. l = e.data,
  10928. u = e.spadding,
  10929. c = e.format,
  10930. h = void 0 === c ? 'image/png' : c
  10931. return g(void 0, void 0, void 0, function () {
  10932. var e, i, C, s, c, p, d, f
  10933. return A(this, function (y) {
  10934. return (
  10935. (e = t.processing.render),
  10936. (i = n({}, e.props)),
  10937. (C = new Image()),
  10938. (s = document.createElement('canvas')),
  10939. (c = s.getContext('2d')),
  10940. (p = t.processing.points.map(function (t) {
  10941. return t.ele.x
  10942. })),
  10943. (d = t.processing.points.map(function (t) {
  10944. return t.ele.y
  10945. })),
  10946. (f = t.padding),
  10947. (t.padding = u),
  10948. t.adapt(l, o, I),
  10949. (s.width = o),
  10950. (s.height = I),
  10951. (c.fillStyle = a),
  10952. c.fillRect(0, 0, s.width, s.height),
  10953. [
  10954. 2,
  10955. new Promise(function (n, a) {
  10956. return g(void 0, void 0, void 0, function () {
  10957. return A(this, function (l) {
  10958. return (
  10959. (C.onload = function () {
  10960. return g(void 0, void 0, void 0, function () {
  10961. var g
  10962. return A(this, function (A) {
  10963. return (
  10964. c.drawImage(C, 0, 0),
  10965. (g = {
  10966. file: r.convertBase64UrlToBlob(s.toDataURL(h)),
  10967. width: o,
  10968. height: I,
  10969. left: t.processing.render.realPointToScreen({
  10970. x: Math.min.apply(Math, p),
  10971. y: 0
  10972. }).x,
  10973. top: t.processing.render.realPointToScreen({
  10974. x: 0,
  10975. y: Math.min.apply(Math, d)
  10976. }).y,
  10977. bottom:
  10978. I -
  10979. t.processing.render.realPointToScreen({
  10980. x: 0,
  10981. y: Math.max.apply(Math, d)
  10982. }).y,
  10983. right:
  10984. o -
  10985. t.processing.render.realPointToScreen({
  10986. x: Math.max.apply(Math, p),
  10987. y: 0
  10988. }).x,
  10989. bound: {
  10990. left: Math.min.apply(Math, p),
  10991. top: Math.min.apply(Math, d),
  10992. bottom: Math.max.apply(Math, d),
  10993. right: Math.max.apply(Math, p)
  10994. }
  10995. }),
  10996. (e.props = i),
  10997. (t.padding = f),
  10998. e.adaptLayer(),
  10999. n(g),
  11000. [2]
  11001. )
  11002. })
  11003. })
  11004. }),
  11005. (C.onerror = function (n) {
  11006. ;(e.props = i), (t.padding = f), e.adaptLayer(), a(n)
  11007. }),
  11008. (C.src =
  11009. 'data:image/svg+xml;base64,' +
  11010. window.btoa(unescape(encodeURIComponent(e.svg.outerHTML)))),
  11011. [2]
  11012. )
  11013. })
  11014. })
  11015. })
  11016. ]
  11017. )
  11018. })
  11019. })
  11020. }
  11021. }
  11022. },
  11023. function (t, e, i) {
  11024. Object.defineProperty(e, '__esModule', { value: !0 })
  11025. var n = (function () {
  11026. function t(t) {
  11027. ;(this.length = t + '__length'),
  11028. (this.index = t + '__index'),
  11029. (this.name = t),
  11030. (this.keys = []),
  11031. this.init()
  11032. }
  11033. return (
  11034. (t.prototype.init = function () {
  11035. sessionStorage.setItem(this.length, '0')
  11036. }),
  11037. (t.prototype.getKey = function (t) {
  11038. return this.name + '__' + t
  11039. }),
  11040. (t.prototype.getData = function () {
  11041. return sessionStorage.getItem(this.index)
  11042. }),
  11043. (t.prototype.getLength = function () {
  11044. return Number(sessionStorage.getItem(this.length))
  11045. }),
  11046. (t.prototype.setLength = function (t) {
  11047. sessionStorage.setItem(this.length, t)
  11048. }),
  11049. (t.prototype.push = function (t) {
  11050. var e = this.getLength(),
  11051. i = this.getKey(this.getLength())
  11052. return (
  11053. sessionStorage.setItem(i, JSON.stringify(t)),
  11054. this.keys.push(i),
  11055. this.setLength(e + 1),
  11056. t
  11057. )
  11058. }),
  11059. (t.prototype.pop = function () {
  11060. var t = this.getLength(),
  11061. e = this.get(t - 1)
  11062. return this.setLength(t - 1), e
  11063. }),
  11064. (t.prototype.get = function (t) {
  11065. var e = this.getKey(t)
  11066. return JSON.parse(sessionStorage.getItem(e))
  11067. }),
  11068. (t.prototype.clear = function () {
  11069. this.setLength(0),
  11070. this.keys.forEach(function (t) {
  11071. return sessionStorage.removeItem(t)
  11072. }),
  11073. (this.keys = [this.length])
  11074. }),
  11075. t
  11076. )
  11077. })()
  11078. e.default = n
  11079. },
  11080. function (t, e, i) {
  11081. i.r(e),
  11082. i.d(e, 'default', function () {
  11083. return r
  11084. })
  11085. var n = i(6),
  11086. g = i.n(n),
  11087. A = i(0)
  11088. function r(t, e) {
  11089. let i = Date.now(),
  11090. n = [],
  11091. r = [],
  11092. o = []
  11093. function C(t, e, i, g, A, o, I) {
  11094. for (let s = 0; s < t.length; ++s) {
  11095. if (A.indexOf(s) > -1 || o.indexOf(I) > -1) continue
  11096. let a = t[s],
  11097. l = a.p1.id,
  11098. u = a.p2.id
  11099. if (I == l || I == u) {
  11100. let c = JSON.parse(JSON.stringify(i)),
  11101. h = JSON.parse(JSON.stringify(g)),
  11102. p = JSON.parse(JSON.stringify(A)),
  11103. d = JSON.parse(JSON.stringify(o)),
  11104. f = I
  11105. h.push(a.id),
  11106. c.push(I),
  11107. p.push(s),
  11108. d.push(I),
  11109. f == l ? (f = u) : f == u && (f = l),
  11110. e == f ? (r.push(c), n.push(h)) : C(t, e, c, h, p, d, f)
  11111. }
  11112. }
  11113. }
  11114. function I(t, e, i, n) {
  11115. let g = []
  11116. for (let t = 0; t < n.length; ++t) {
  11117. let e = n[t]
  11118. g.push(e)
  11119. }
  11120. let A = !0
  11121. for (var r = 0; r < i.length; ++r) {
  11122. if (e.indexOf(t[r]) > -1) {
  11123. A = !1
  11124. continue
  11125. }
  11126. let i = t[r]
  11127. var C = i.p1,
  11128. I = i.p2,
  11129. a = { x: (C.x + I.x) / 2, y: (C.y + I.y) / 2 }
  11130. if (!(s(C, g) && s(I, g) && s(a, g))) return !1
  11131. }
  11132. if (A) {
  11133. let i = []
  11134. return (
  11135. i.push(e[0]),
  11136. i.push(e[e.length - 1]),
  11137. i.push(t[0]),
  11138. i.push(t[t.length - 1]),
  11139. o.push(i),
  11140. !1
  11141. )
  11142. }
  11143. return !0
  11144. }
  11145. function s(t, e) {
  11146. for (var i = 0; i < e.length; ++i) {
  11147. if (a(t, e[i])) return !0
  11148. }
  11149. return !!(function (t, e) {
  11150. for (var i = t.x, n = t.y, g = !1, A = 0, r = e.length - 1; A < e.length; r = A++) {
  11151. var o = e[A],
  11152. C = e[r],
  11153. I = o.x,
  11154. s = o.y,
  11155. a = C.x,
  11156. l = C.y
  11157. s > n != l > n && i < ((a - I) * (n - s)) / (l - s) + I && (g = !g)
  11158. }
  11159. return g
  11160. })(t, e)
  11161. }
  11162. function a(t, e) {
  11163. return t.x == e.x && t.y == e.y
  11164. }
  11165. let l = t.wall.map(e => ({
  11166. p1: t.vertex.find(({ id: t }) => e.p1 === t),
  11167. p2: t.vertex.find(({ id: t }) => e.p2 === t),
  11168. id: e.id
  11169. }))
  11170. function u(t, e, i) {
  11171. return (t.x * e.y + e.x * i.y + i.x * t.y - e.x * t.y - i.x * e.y - t.x * i.y) / 2
  11172. }
  11173. !(function (t) {
  11174. for (let e = 0; e < t.length; ++e) {
  11175. let i = [],
  11176. n = [],
  11177. g = [],
  11178. A = t[e],
  11179. r = A.p1.id,
  11180. o = A.p2.id
  11181. n.push(o), g.push(A.id)
  11182. let I = null
  11183. t.splice(e, 1)
  11184. for (let e = 0; e < t.length; ++e) {
  11185. let A = t[e]
  11186. if (r == A.p1.id || r == A.p2.id) {
  11187. let s = JSON.parse(JSON.stringify(n)),
  11188. a = JSON.parse(JSON.stringify(g)),
  11189. l = [],
  11190. u = JSON.parse(JSON.stringify(i)),
  11191. c = r
  11192. s.push(r),
  11193. a.push(A.id),
  11194. l.push(e),
  11195. (I = c == A.p1.id ? A.p2.id : A.p1.id),
  11196. u.push(c),
  11197. C(t, o, s, a, l, u, I)
  11198. }
  11199. }
  11200. }
  11201. })(JSON.parse(JSON.stringify(l))),
  11202. (r = r.map(e => e.map(e => t.vertex.find(({ id: t }) => e === t)))),
  11203. (n = n.map(t => t.map(t => l.find(({ id: e }) => t === e)))),
  11204. (function () {
  11205. for (var t = 0; t < r.length; ++t)
  11206. for (var e = t + 1; e < r.length; ++e)
  11207. if (I(n[t], n[e], r[t], r[e])) r.splice(e, 1), n.splice(e, 1), --e
  11208. else if (I(n[e], n[t], r[e], r[t])) {
  11209. r.splice(t, 1), n.splice(t, 1), --t, --e
  11210. break
  11211. }
  11212. })(),
  11213. (function () {
  11214. let t = []
  11215. for (let e = 0; e < o.length; ++e) {
  11216. let i = o[e],
  11217. g = []
  11218. ;(g[0] = null), (g[1] = null)
  11219. for (
  11220. let t = 0;
  11221. t < n.length &&
  11222. (i[0] == n[t][0] && i[1] == n[t][n[t].length - 1]
  11223. ? (g[0] = t)
  11224. : i[2] == n[t][0] && i[3] == n[t][n[t].length - 1] && (g[1] = t),
  11225. null == g[0] || null == g[1]);
  11226. ++t
  11227. );
  11228. null != g[0] && null != g[1] && t.push(g)
  11229. }
  11230. o = t
  11231. })(),
  11232. (r = r.sort((t, e) => Number(!Object(A.isFaceContain)(t, e)))),
  11233. (t.room = n.map((t, e) => ({ wall: t.map(({ id: t }) => t), ground: r[e] }))),
  11234. test_debugger &&
  11235. (window.testCenterPoints && e.processing.render.remove(...window.testCenterPoints),
  11236. (window.testCenterPoints = r.map(t => {
  11237. let i = (function (t) {
  11238. for (var e = 0, i = 0, n = 0, g = t[1], A = 2; A < t.length; A++) {
  11239. var r = t[A],
  11240. o = u(t[0], g, r)
  11241. ;(n += o),
  11242. (e += (t[0].x + g.x + r.x) * o),
  11243. (i += (t[0].y + g.y + r.y) * o),
  11244. (g = r)
  11245. }
  11246. return { x: e / n / 3, y: i / n / 3 }
  11247. })(t.map(t => ({ ...t, y: -t.y }))),
  11248. n =
  11249. 'rgba(' +
  11250. Math.floor(255 * Math.random()) +
  11251. ',' +
  11252. Math.floor(255 * Math.random()) +
  11253. ',' +
  11254. Math.floor(255 * Math.random()) +
  11255. ',0.8)',
  11256. A = new g.a({
  11257. fillColor: n,
  11258. storkeColor: n,
  11259. x: i.x,
  11260. y: i.y,
  11261. renderer: e.processing.render
  11262. })
  11263. return e.processing.render.push(A), A
  11264. })),
  11265. window.testCenterPoints.forEach((i, g) => {
  11266. let A = {
  11267. pointEles: t.room[g].ground.map(
  11268. t => e.processing.points.find(({ id: e }) => e === t.id).ele.real
  11269. ),
  11270. lineEles: n[g].map(t => e.processing.lines.find(({ id: e }) => e === t.id).ele.real),
  11271. center: i.real,
  11272. pointData: r[g],
  11273. lineData: n[g]
  11274. }
  11275. console.log(A)
  11276. }))
  11277. let c = Date.now()
  11278. return console.warn('璁$畻瀹屾瘯锛岃€楁椂' + (c - i)), t
  11279. }
  11280. },
  11281. function (t, e, i) {
  11282. Object.defineProperty(e, '__esModule', { value: !0 }),
  11283. (e.attchDOMTranform = function (t) {
  11284. var e = function (e) {
  11285. var i = t.processing.render
  11286. if (e.target === i.svg) {
  11287. var n = i.props.left,
  11288. g = i.props.top,
  11289. A = function (A) {
  11290. ;(i.props.left = n - (e.pageX - A.pageX) * i.props.multiple),
  11291. (i.props.top = g - (e.pageY - A.pageY) * i.props.multiple),
  11292. i.adaptLayer(),
  11293. t.propsChange && t.propsChange(),
  11294. A.preventDefault()
  11295. },
  11296. r = function () {
  11297. document.documentElement.removeEventListener('mousemove', A, !1),
  11298. document.documentElement.removeEventListener('mouseup', r, !1)
  11299. }
  11300. document.documentElement.addEventListener('mousemove', A, !1),
  11301. document.documentElement.addEventListener('mouseup', r, !1),
  11302. e.preventDefault()
  11303. }
  11304. },
  11305. i = function (e) {
  11306. var i = t.processing.render,
  11307. n = e.wheelDelta
  11308. ? window.opera
  11309. ? -e.wheelDelta / 120
  11310. : e.wheelDelta / 120
  11311. : e.detail
  11312. ? -e.detail / 3
  11313. : 0,
  11314. g = i.props.scale + (n > 0 ? 0.08 : -0.08)
  11315. g > 0.1 && ((i.props.scale = g), i.adaptLayer(), t.propsChange && t.propsChange())
  11316. }
  11317. ;(t.openMouseHandle = function () {
  11318. var n = t.layer
  11319. n.addEventListener('mousedown', e, !1), n.addEventListener('mousewheel', i, !1)
  11320. }),
  11321. (t.closeMouseHandle = function () {
  11322. var n = t.layer
  11323. n.removeEventListener('mousedown', e, !1), n.removeEventListener('mousewheel', i, !1)
  11324. })
  11325. var n = t.destroy
  11326. t.destroy = function () {
  11327. for (var e = [], i = 0; i < arguments.length; i++) e[i] = arguments[i]
  11328. t.closeMouseHandle(), n.apply(this, e)
  11329. }
  11330. })
  11331. },
  11332. function (t, e, i) {
  11333. var n =
  11334. (this && this.__importDefault) ||
  11335. function (t) {
  11336. return t && t.__esModule ? t : { default: t }
  11337. }
  11338. Object.defineProperty(e, '__esModule', { value: !0 })
  11339. var g = i(2),
  11340. A = n(i(4)),
  11341. r = n(i(7))
  11342. e.attachDisabled = function (t) {
  11343. var e = [
  11344. 'increase',
  11345. 'getStackState',
  11346. 'preservation',
  11347. 'previous',
  11348. 'next',
  11349. 'closeMouseHandle',
  11350. 'showGauge',
  11351. 'hideGauge'
  11352. ],
  11353. i = []
  11354. ;(t.forbidden = function () {
  11355. i.length !== e.length &&
  11356. (t.hideGauge(),
  11357. t.closeMouseHandle(),
  11358. g.CADElement.examples.get(t.processing.render).forEach(function (t) {
  11359. return t.unEvent()
  11360. }),
  11361. A.default.attaArch.forEach(function (t) {
  11362. t.forEach(function (t) {
  11363. t instanceof r.default && t.delEvent()
  11364. })
  11365. }),
  11366. e.forEach(function (e) {
  11367. i.push(t[e]), delete t[e]
  11368. }))
  11369. }),
  11370. (t.available = function () {
  11371. i.length === e.length &&
  11372. (e.forEach(function (e, n) {
  11373. return (t[e] = i[n])
  11374. }),
  11375. (i = []),
  11376. g.CADElement.examples.get(t.processing.render).forEach(function (t) {
  11377. return t.listen()
  11378. }),
  11379. A.default.attaArch.forEach(function (t) {
  11380. t.forEach(function (t) {
  11381. return t instanceof r.default && t.addEvent()
  11382. })
  11383. }),
  11384. t.showGauge(),
  11385. t.openMouseHandle())
  11386. })
  11387. }
  11388. },
  11389. function (t, e, i) {
  11390. var n =
  11391. (this && this.__assign) ||
  11392. function () {
  11393. return (n =
  11394. Object.assign ||
  11395. function (t) {
  11396. for (var e, i = 1, n = arguments.length; i < n; i++)
  11397. for (var g in (e = arguments[i]))
  11398. Object.prototype.hasOwnProperty.call(e, g) && (t[g] = e[g])
  11399. return t
  11400. }).apply(this, arguments)
  11401. },
  11402. g =
  11403. (this && this.__spreadArrays) ||
  11404. function () {
  11405. for (var t = 0, e = 0, i = arguments.length; e < i; e++) t += arguments[e].length
  11406. var n = Array(t),
  11407. g = 0
  11408. for (e = 0; e < i; e++)
  11409. for (var A = arguments[e], r = 0, o = A.length; r < o; r++, g++) n[g] = A[r]
  11410. return n
  11411. },
  11412. A =
  11413. (this && this.__importDefault) ||
  11414. function (t) {
  11415. return t && t.__esModule ? t : { default: t }
  11416. }
  11417. Object.defineProperty(e, '__esModule', { value: !0 })
  11418. var r = A(i(23))
  11419. e.attachRote = function (t) {
  11420. var e = t.addProcessing
  11421. ;(t.addProcessing = function () {
  11422. for (var i = [], n = 0; n < arguments.length; n++) i[n] = arguments[n]
  11423. var A = e.call.apply(e, g([t], i)),
  11424. o = new r.default({ renderer: A.render, local: [] })
  11425. return (
  11426. (o.zIndex = 2),
  11427. A.render.push(o),
  11428. (o.setActive = function (e) {
  11429. t.activeRoute(o.local.indexOf(e))
  11430. }),
  11431. A
  11432. )
  11433. }),
  11434. (t.showRotes = function () {
  11435. var e = t.processing.rote
  11436. return (
  11437. (e.show = !0),
  11438. new Promise(function (t) {
  11439. return e.nextTick(t)
  11440. })
  11441. )
  11442. }),
  11443. (t.hideRotes = function () {
  11444. var e = t.processing.rote
  11445. return (
  11446. (e.show = !1),
  11447. new Promise(function (t) {
  11448. return e.nextTick(t)
  11449. })
  11450. )
  11451. }),
  11452. (t.setRoutes = function (e) {
  11453. var i = t.processing.rote
  11454. ;(e = e.map(function (t, i) {
  11455. if (t.rangn) {
  11456. var g = (function (t) {
  11457. var i = e
  11458. .slice(0, t)
  11459. .reverse()
  11460. .find(function (t) {
  11461. return !t.rangn
  11462. })
  11463. return (
  11464. i ||
  11465. e.slice(t).find(function (t) {
  11466. return !t.rangn
  11467. })
  11468. )
  11469. })(i)
  11470. if (g) return n(n({}, g), { rangn: !0 })
  11471. }
  11472. return n({}, t)
  11473. })),
  11474. t.clearRoutes(function () {
  11475. i.local = g(e)
  11476. })
  11477. }),
  11478. (t.pushRoute = function (e) {
  11479. t.clearRoutes(function () {
  11480. setTimeout(function () {}, 100)
  11481. })
  11482. }),
  11483. (t.activeRoute = function (e) {
  11484. var i = t.processing.rote
  11485. i.nextTick(function () {
  11486. i.active = i.local[e]
  11487. })
  11488. }),
  11489. (t.popRoute = function (e) {
  11490. var i = t.processing.rote
  11491. i.local.splice(e, 1),
  11492. i.nextTick(function () {
  11493. return (i.local = g(i.local))
  11494. })
  11495. }),
  11496. (t.clearRoutes = function (e) {
  11497. var i = t.processing.rote
  11498. ;(i.local = []),
  11499. (i.dialog = 0),
  11500. i.nextTick(function () {
  11501. return e && e()
  11502. })
  11503. })
  11504. }
  11505. },
  11506. function (t, e) {
  11507. t.exports =
  11508. 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAMAAAC6V+0/AAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAt1BMVEVHcEz///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////+6urrFxcXR0dHY2NjX19fDw8P////Hx8fg4ODj4+PQ0NDCwsLGxsb///////////////+Zk85TAAAAPHRSTlMAAgQiHSZ5yO+B2fPfw70siHVCZ337ODSO0YM7rJLjzVINSDDpcBkUXfljCAQ4lcV6BgpEkKlgQ0CZ3FCcXUtcAAAAAWJLR0QB/wIt3gAAAAd0SU1FB+MFHgsMLLYaoF4AAADtSURBVBjTbVCJcoIwFNxQuSIWEYMoUOSQo/S0p+37/+9qIraNnb7JZDK7m012gfNhBvsXuZjoiNpNyyZHR5jp8qk3m17+avw5Jx4swqWITsgq9sR6aWKySVL7eDfKrkQeKPtt7BdUAlVcC3vXKLLdWQ0yT55IdO3oa246hqK/hoGwd4GB3dze3T88MgTjfyKR74Gn55fXt3fAsaRQrn0uqsINB2XR9cVRKYkDpQmDiviRwRjTAJwOkmUoqcF3IcyL13mLAXZ6Eqqpy4CcBVbk/wjBeC0il7p0Bq1NmyqZkSjRwaaFISN9/i0d2hNf1CoSHV2Lm8sAAAAldEVYdGRhdGU6Y3JlYXRlADIwMTktMDUtMzBUMTE6MTI6NDQrMDg6MDCJUf45AAAAJXRFWHRkYXRlOm1vZGlmeQAyMDE5LTA1LTMwVDExOjEyOjQ0KzA4OjAw+AxGhQAAAABJRU5ErkJggg=='
  11509. },
  11510. function (t, e, i) {
  11511. var n =
  11512. (this && this.__spreadArrays) ||
  11513. function () {
  11514. for (var t = 0, e = 0, i = arguments.length; e < i; e++) t += arguments[e].length
  11515. var n = Array(t),
  11516. g = 0
  11517. for (e = 0; e < i; e++)
  11518. for (var A = arguments[e], r = 0, o = A.length; r < o; r++, g++) n[g] = A[r]
  11519. return n
  11520. },
  11521. g =
  11522. (this && this.__importDefault) ||
  11523. function (t) {
  11524. return t && t.__esModule ? t : { default: t }
  11525. }
  11526. Object.defineProperty(e, '__esModule', { value: !0 })
  11527. var A = g(i(5)),
  11528. r = g(i(6)),
  11529. o = g(i(10))
  11530. e.attachStyle = function (t) {
  11531. var e = { fillColor: 'rgb(0, 200, 175)', storkeColor: 'green' },
  11532. i = { fillColor: 'rgba(245, 255, 0, 0.7)', storkeColor: 'rgba(245, 255, 255, 0.3)' }
  11533. t.setDefaultPointStyle = function (n) {
  11534. n.storkeColor && (e.storkeColor = n.storkeColor),
  11535. n.fillColor && (e.fillColor = n.fillColor),
  11536. n.hoverStorkeColor && (i.storkeColor = n.hoverStorkeColor),
  11537. n.hoverFillColor && (i.fillColor = n.hoverFillColor),
  11538. setTimeout(function () {
  11539. t.loadData(t.getData())
  11540. }, 100)
  11541. }
  11542. var g = { width: 3, color: 'rgb(255,255,255)' },
  11543. C = t.addProcessing
  11544. ;(t.addProcessing = function () {
  11545. for (var I = [], s = 0; s < arguments.length; s++) I[s] = arguments[s]
  11546. var a = C.call.apply(C, n([t], I))
  11547. return (
  11548. r.default.Setting.set(a.render, e),
  11549. A.default.Setting.set(a.render, i),
  11550. o.default.Setting.set(a.render, g),
  11551. a
  11552. )
  11553. }),
  11554. (t.setDefaultLineStyle = function (e) {
  11555. e.width && (g.width = e.width),
  11556. e.color && (g.color = e.color),
  11557. setTimeout(function () {
  11558. t.loadData(t.getData())
  11559. }, 100)
  11560. })
  11561. }
  11562. },
  11563. function (t, e, i) {
  11564. Object.defineProperty(e, '__esModule', { value: !0 }),
  11565. (e.attchCustom = function (t) {
  11566. t.edits = []
  11567. })
  11568. },
  11569. function (t, e, i) {
  11570. var n =
  11571. (this && this.__spreadArrays) ||
  11572. function () {
  11573. for (var t = 0, e = 0, i = arguments.length; e < i; e++) t += arguments[e].length
  11574. var n = Array(t),
  11575. g = 0
  11576. for (e = 0; e < i; e++)
  11577. for (var A = arguments[e], r = 0, o = A.length; r < o; r++, g++) n[g] = A[r]
  11578. return n
  11579. }
  11580. Object.defineProperty(e, '__esModule', { value: !0 })
  11581. var g = i(0)
  11582. function A(t, e) {
  11583. var i = e.addCase,
  11584. A = e.addDoor,
  11585. r = e.addColumn,
  11586. o = e.addLine,
  11587. C = e.addSlideDoor,
  11588. I = e.addBayCase,
  11589. s = e.addGroundCase,
  11590. a = e.addFurnColumn,
  11591. l = e.addFurnFlue,
  11592. u = e.adddDoubleDoor,
  11593. c = function (t) {
  11594. Object.defineProperties(t, {
  11595. ewidth: {
  11596. get: function () {
  11597. return Number(g.lineDis({ points: t.linePoints }).toFixed(2))
  11598. },
  11599. set: function (e) {
  11600. if (!(e <= 0 || e === t.ewidth)) {
  11601. var i = g.lineCenter({ points: t.linePoints }),
  11602. n = g.getDisPointLinePoints(t.attachment, i, e / 2),
  11603. A = n[0],
  11604. r = n[1]
  11605. g.lineDis({ points: [t.linePoints[0], A] }) >
  11606. g.lineDis({ points: [t.linePoints[0], r] })
  11607. ? ((t.linePoints[0].x = r.x),
  11608. (t.linePoints[0].y = r.y),
  11609. (t.linePoints[1].x = A.x),
  11610. (t.linePoints[1].y = A.y))
  11611. : ((t.linePoints[0].x = A.x),
  11612. (t.linePoints[0].y = A.y),
  11613. (t.linePoints[1].x = r.x),
  11614. (t.linePoints[1].y = r.y))
  11615. }
  11616. }
  11617. },
  11618. maxWidth: {
  11619. get: function () {
  11620. var e = [t.attachment],
  11621. i = [],
  11622. n = [],
  11623. A = function (e, i, n) {
  11624. var A = e.linePoints || e.points
  11625. return { dis: g.lineDis({ points: [t.linePoints[i], A[n]] }), point: A[n] }
  11626. }
  11627. e.forEach(function (e) {
  11628. e !== t &&
  11629. (i.push(A(e, 0, 0)), i.push(A(e, 0, 1)), n.push(A(e, 1, 0)), n.push(A(e, 1, 1)))
  11630. }),
  11631. i.sort(function (t, e) {
  11632. return t.dis - e.dis
  11633. }),
  11634. n.sort(function (t, e) {
  11635. return t.dis - e.dis
  11636. })
  11637. var r =
  11638. i[0].dis > n[0].dis
  11639. ? [t.linePoints[1], n[0].point]
  11640. : [t.linePoints[0], i[0].point]
  11641. return Number(
  11642. (2 * g.lineDis({ points: r }) + g.lineDis({ points: t.linePoints })).toFixed(2)
  11643. )
  11644. }
  11645. },
  11646. minWidth: {
  11647. get: function () {
  11648. return 0
  11649. }
  11650. }
  11651. })
  11652. },
  11653. h = function (e) {
  11654. Object.defineProperties(e, {
  11655. estart: {
  11656. get: function () {
  11657. return e.start
  11658. },
  11659. set: function (i) {
  11660. i &&
  11661. t.processing.doors.forEach(function (t) {
  11662. t.ele.start = !1
  11663. }),
  11664. (e.start = i),
  11665. t.preservation()
  11666. }
  11667. }
  11668. })
  11669. },
  11670. p = function (t) {
  11671. Object.defineProperties(t, {
  11672. tick: {
  11673. get: function () {
  11674. return Math.max(
  11675. Number(g.lineDis({ points: [t.points[0], t.points[3]] }).toFixed(2)),
  11676. Number(g.lineDis({ points: [t.points[1], t.points[2]] }).toFixed(2))
  11677. )
  11678. },
  11679. set: function (e) {
  11680. e <= 0 ||
  11681. e === t.oldVal ||
  11682. ((t.oldVal = e), (t.thickness = e), t.updatePeripheral())
  11683. }
  11684. },
  11685. maxTick: {
  11686. get: function () {
  11687. return 10
  11688. }
  11689. },
  11690. minTick: {
  11691. get: function () {
  11692. return 0
  11693. }
  11694. }
  11695. })
  11696. }
  11697. ;(e.addCase = function () {
  11698. for (var t = [], e = 0; e < arguments.length; e++) t[e] = arguments[e]
  11699. var g = i.call.apply(i, n([this], t))
  11700. return c(g.ele), g
  11701. }),
  11702. (e.addBayCase = function () {
  11703. for (var t = [], e = 0; e < arguments.length; e++) t[e] = arguments[e]
  11704. var i = I.call.apply(I, n([this], t))
  11705. return c(i.ele), i
  11706. }),
  11707. (e.addGroundCase = function () {
  11708. for (var t = [], e = 0; e < arguments.length; e++) t[e] = arguments[e]
  11709. var i = s.call.apply(s, n([this], t))
  11710. return c(i.ele), i
  11711. }),
  11712. (e.addDoor = function () {
  11713. for (var t = [], e = 0; e < arguments.length; e++) t[e] = arguments[e]
  11714. var i = A.call.apply(A, n([this], t))
  11715. return c(i.ele), h(i.ele), i
  11716. }),
  11717. (e.addSlideDoor = function () {
  11718. for (var t = [], e = 0; e < arguments.length; e++) t[e] = arguments[e]
  11719. var i = C.call.apply(C, n([this], t))
  11720. return c(i.ele), i
  11721. }),
  11722. (e.adddDoubleDoor = function () {
  11723. for (var t = [], e = 0; e < arguments.length; e++) t[e] = arguments[e]
  11724. var i = u.call.apply(u, n([this], t))
  11725. return c(i.ele), i
  11726. }),
  11727. (e.addColumn = function () {
  11728. for (var t = [], e = 0; e < arguments.length; e++) t[e] = arguments[e]
  11729. var i = r.call.apply(r, n([this], t))
  11730. return c(i.ele), p(i.ele), i
  11731. }),
  11732. (e.addLine = function () {
  11733. for (var t = [], e = 0; e < arguments.length; e++) t[e] = arguments[e]
  11734. var i = o.call.apply(o, n([this], t))
  11735. return i
  11736. })
  11737. var d = function (t) {
  11738. Object.defineProperties(t, {
  11739. ewidth: {
  11740. get: function () {
  11741. return Number(g.lineDis({ points: [t.points[0], t.points[1]] }).toFixed(2))
  11742. },
  11743. set: function (e) {
  11744. if (!(e <= 0 || e === t.ewidth)) {
  11745. var i = g.lineStretch({ points: [t.points[0], t.points[1]] }, e),
  11746. n = g.lineStretch({ points: [t.points[2], t.points[3]] }, e),
  11747. A = i.points.concat(n.points)
  11748. t.check(A) && t.directUpdate(A)
  11749. }
  11750. }
  11751. },
  11752. maxWidth: {
  11753. get: function () {
  11754. return 10
  11755. }
  11756. },
  11757. minWidth: {
  11758. get: function () {
  11759. return 0
  11760. }
  11761. }
  11762. })
  11763. },
  11764. f = function (t) {
  11765. Object.defineProperties(t, {
  11766. tick: {
  11767. get: function () {
  11768. return Number(g.lineDis({ points: [t.points[1], t.points[2]] }).toFixed(2))
  11769. },
  11770. set: function (e) {
  11771. if (!(e <= 0 || e === t.tick)) {
  11772. var i = g.lineStretch({ points: [t.points[0], t.points[3]] }, e),
  11773. n = g.lineStretch({ points: [t.points[1], t.points[2]] }, e),
  11774. A = [i.points[0], n.points[0], n.points[1], i.points[1]]
  11775. t.check(A) && t.directUpdate(A)
  11776. }
  11777. }
  11778. },
  11779. maxTick: {
  11780. get: function () {
  11781. return 10
  11782. }
  11783. },
  11784. minTick: {
  11785. get: function () {
  11786. return 0
  11787. }
  11788. }
  11789. })
  11790. },
  11791. y = function (t) {
  11792. Object.defineProperties(t, {
  11793. maxAngle: {
  11794. get: function () {
  11795. return 360
  11796. }
  11797. },
  11798. minAngle: {
  11799. get: function () {
  11800. return 0
  11801. }
  11802. }
  11803. })
  11804. }
  11805. ;(e.addFurnColumn = function () {
  11806. for (var t = [], e = 0; e < arguments.length; e++) t[e] = arguments[e]
  11807. var i = a.call.apply(a, n([this], t))
  11808. return d(i.ele), f(i.ele), y(i.ele), i
  11809. }),
  11810. (e.addFurnFlue = function () {
  11811. for (var t = [], e = 0; e < arguments.length; e++) t[e] = arguments[e]
  11812. var i = l.call.apply(l, n([this], t))
  11813. return d(i.ele), f(i.ele), y(i.ele), i
  11814. })
  11815. }
  11816. e.default = function (t) {
  11817. var e = t.addProcessing
  11818. t.addProcessing = function () {
  11819. for (var i = [], g = 0; g < arguments.length; g++) i[g] = arguments[g]
  11820. var r = e.call.apply(e, n([t], i))
  11821. return A(t, r), r
  11822. }
  11823. }
  11824. },
  11825. function (t, e, i) {
  11826. var n =
  11827. (this && this.__spreadArrays) ||
  11828. function () {
  11829. for (var t = 0, e = 0, i = arguments.length; e < i; e++) t += arguments[e].length
  11830. var n = Array(t),
  11831. g = 0
  11832. for (e = 0; e < i; e++)
  11833. for (var A = arguments[e], r = 0, o = A.length; r < o; r++, g++) n[g] = A[r]
  11834. return n
  11835. }
  11836. Object.defineProperty(e, '__esModule', { value: !0 }),
  11837. (e.other = function (t) {
  11838. var e = !1,
  11839. i = t.addProcessing
  11840. ;(t.addProcessing = function () {
  11841. for (var g = [], A = 0; A < arguments.length; A++) g[A] = arguments[A]
  11842. var r = i.call.apply(i, n([t], g)),
  11843. o = r.addTagging
  11844. return (
  11845. (r.addTagging = function (t) {
  11846. return (t.show = e), o.call(r, t)
  11847. }),
  11848. r
  11849. )
  11850. }),
  11851. (t.hideLabel = function () {
  11852. ;(e = !1),
  11853. t.processings.forEach(function (t) {
  11854. t.taggings.forEach(function (t) {
  11855. return (t.ele.show = e)
  11856. })
  11857. })
  11858. }),
  11859. (t.showLabel = function () {
  11860. ;(e = !0),
  11861. t.processings.forEach(function (t) {
  11862. t.taggings.forEach(function (t) {
  11863. return (t.ele.show = e)
  11864. })
  11865. })
  11866. })
  11867. })
  11868. },
  11869. function (t, e, i) {
  11870. var n =
  11871. (this && this.__awaiter) ||
  11872. function (t, e, i, n) {
  11873. return new (i || (i = Promise))(function (g, A) {
  11874. function r(t) {
  11875. try {
  11876. C(n.next(t))
  11877. } catch (t) {
  11878. A(t)
  11879. }
  11880. }
  11881. function o(t) {
  11882. try {
  11883. C(n.throw(t))
  11884. } catch (t) {
  11885. A(t)
  11886. }
  11887. }
  11888. function C(t) {
  11889. var e
  11890. t.done
  11891. ? g(t.value)
  11892. : ((e = t.value),
  11893. e instanceof i
  11894. ? e
  11895. : new i(function (t) {
  11896. t(e)
  11897. })).then(r, o)
  11898. }
  11899. C((n = n.apply(t, e || [])).next())
  11900. })
  11901. },
  11902. g =
  11903. (this && this.__generator) ||
  11904. function (t, e) {
  11905. var i,
  11906. n,
  11907. g,
  11908. A,
  11909. r = {
  11910. label: 0,
  11911. sent: function () {
  11912. if (1 & g[0]) throw g[1]
  11913. return g[1]
  11914. },
  11915. trys: [],
  11916. ops: []
  11917. }
  11918. return (
  11919. (A = { next: o(0), throw: o(1), return: o(2) }),
  11920. 'function' == typeof Symbol &&
  11921. (A[Symbol.iterator] = function () {
  11922. return this
  11923. }),
  11924. A
  11925. )
  11926. function o(A) {
  11927. return function (o) {
  11928. return (function (A) {
  11929. if (i) throw new TypeError('Generator is already executing.')
  11930. for (; r; )
  11931. try {
  11932. if (
  11933. ((i = 1),
  11934. n &&
  11935. (g =
  11936. 2 & A[0]
  11937. ? n.return
  11938. : A[0]
  11939. ? n.throw || ((g = n.return) && g.call(n), 0)
  11940. : n.next) &&
  11941. !(g = g.call(n, A[1])).done)
  11942. )
  11943. return g
  11944. switch (((n = 0), g && (A = [2 & A[0], g.value]), A[0])) {
  11945. case 0:
  11946. case 1:
  11947. g = A
  11948. break
  11949. case 4:
  11950. return r.label++, { value: A[1], done: !1 }
  11951. case 5:
  11952. r.label++, (n = A[1]), (A = [0])
  11953. continue
  11954. case 7:
  11955. ;(A = r.ops.pop()), r.trys.pop()
  11956. continue
  11957. default:
  11958. if (
  11959. !(g = (g = r.trys).length > 0 && g[g.length - 1]) &&
  11960. (6 === A[0] || 2 === A[0])
  11961. ) {
  11962. r = 0
  11963. continue
  11964. }
  11965. if (3 === A[0] && (!g || (A[1] > g[0] && A[1] < g[3]))) {
  11966. r.label = A[1]
  11967. break
  11968. }
  11969. if (6 === A[0] && r.label < g[1]) {
  11970. ;(r.label = g[1]), (g = A)
  11971. break
  11972. }
  11973. if (g && r.label < g[2]) {
  11974. ;(r.label = g[2]), r.ops.push(A)
  11975. break
  11976. }
  11977. g[2] && r.ops.pop(), r.trys.pop()
  11978. continue
  11979. }
  11980. A = e.call(t, r)
  11981. } catch (t) {
  11982. ;(A = [6, t]), (n = 0)
  11983. } finally {
  11984. i = g = 0
  11985. }
  11986. if (5 & A[0]) throw A[1]
  11987. return { value: A[0] ? A[1] : void 0, done: !0 }
  11988. })([A, o])
  11989. }
  11990. }
  11991. },
  11992. A =
  11993. (this && this.__spreadArrays) ||
  11994. function () {
  11995. for (var t = 0, e = 0, i = arguments.length; e < i; e++) t += arguments[e].length
  11996. var n = Array(t),
  11997. g = 0
  11998. for (e = 0; e < i; e++)
  11999. for (var A = arguments[e], r = 0, o = A.length; r < o; r++, g++) n[g] = A[r]
  12000. return n
  12001. },
  12002. r =
  12003. (this && this.__importDefault) ||
  12004. function (t) {
  12005. return t && t.__esModule ? t : { default: t }
  12006. }
  12007. Object.defineProperty(e, '__esModule', { value: !0 })
  12008. var o = i(22),
  12009. C = i(2),
  12010. I = r(i(60)),
  12011. s = r(i(62)),
  12012. a = i(0),
  12013. l = function (t, e) {
  12014. var i = t.processing,
  12015. n = i.doors,
  12016. g = i.slideDoors,
  12017. r = i.groundCases,
  12018. o = i.cases,
  12019. C = i.points,
  12020. I = i.taggings,
  12021. s = i.bayCases,
  12022. a = A(i.furnFlues, i.furnColumns, i.columns),
  12023. l = A(i.lines),
  12024. u = A(o, n)
  12025. I.forEach(function (t) {
  12026. var i = 3 * e
  12027. t.ele.fontSize = i < 12 ? 12 : i
  12028. }),
  12029. a.forEach(function (t) {
  12030. t.ele.width = 0.33 * e
  12031. }),
  12032. g.forEach(function (t) {
  12033. ;(t.ele.foorWidth = (2 * e) / (t.ele.attachment.border ? 1 : 2)),
  12034. (t.ele.bwithin = e / 2 / (t.ele.attachment.border ? 1 : 2))
  12035. }),
  12036. o.forEach(function (t) {
  12037. ;(t.ele.width = (4 * e) / 2 / (t.ele.attachment.border ? 1 : 1.5)),
  12038. (t.ele.stamWidth = (0.1 * e) / (t.ele.attachment.border ? 1 : 2)),
  12039. (t.ele.outLine.width = t.ele.width),
  12040. (t.ele.outLine.color = t.ele.fill),
  12041. (t.ele.innerline.width = t.ele.stamWidth),
  12042. (t.ele.innerline.color = t.ele.seam),
  12043. t.ele.innerline.update()
  12044. }),
  12045. l.forEach(function (t) {
  12046. t.ele.width = e
  12047. }),
  12048. s.forEach(function (t) {
  12049. t.ele.width = (0.33 * e) / (t.ele.attachment.border ? 1 : 2)
  12050. }),
  12051. r.forEach(function (t) {
  12052. t.ele.width = (e / 2) * (t.ele.attachment.border ? 1 : 2)
  12053. }),
  12054. n.forEach(function (t) {
  12055. ;(t.ele.foorWidth = (2 * e) / (t.ele.attachment.border ? 1 : 2)),
  12056. (t.ele.outWidth = (0.33 * e) / (t.ele.attachment.border ? 1 : 2))
  12057. }),
  12058. C.forEach(function (t) {
  12059. ;(t.ele.r1 = e + 1), (t.ele.r = e + 1)
  12060. }),
  12061. u.forEach(function (t) {
  12062. ;(t.ele.linePoints[0].r1 = e + 1),
  12063. (t.ele.linePoints[0].r = e + 1),
  12064. (t.ele.linePoints[1].r1 = e + 1),
  12065. (t.ele.linePoints[1].r = e + 1)
  12066. }),
  12067. t.setDireAttrs({
  12068. fontSize: 2.6 * e,
  12069. r: 16.6 * e,
  12070. border: e,
  12071. right: 6.3 * e,
  12072. top: 6.3 * e,
  12073. ArgDire: 5 * e
  12074. })
  12075. }
  12076. e.default = function (t) {
  12077. var e = t.screenshot
  12078. t.screenshot = function (i) {
  12079. var A = void 0 === i ? {} : i,
  12080. r = A.width,
  12081. u = void 0 === r ? 2880 : r,
  12082. c = A.height,
  12083. h = void 0 === c ? 1620 : c,
  12084. p = A.primaryColor,
  12085. d = void 0 === p ? '#fff' : p,
  12086. f = A.archColor,
  12087. y = void 0 === f ? 'rgba(0,0,0,0)' : f,
  12088. v = A.bgColor,
  12089. m = void 0 === v ? 'rgba(0,0,0,0)' : v,
  12090. b = A.textColor,
  12091. x = void 0 === b ? '#fff' : b,
  12092. _ = A.archBorder,
  12093. w = void 0 === _ ? d : _,
  12094. P = A.data,
  12095. O = void 0 === P ? t.getData(!0, !0) : P,
  12096. S = A.padding,
  12097. E = void 0 === S ? 450 : S,
  12098. D = A.showGauge,
  12099. k = void 0 === D || D,
  12100. M = A.lineWidth,
  12101. L = void 0 === M ? 10 : M,
  12102. N = A.spliceGauge,
  12103. j = void 0 !== N && N,
  12104. R = A.showDire,
  12105. G = void 0 !== R && R,
  12106. T = A.showTags,
  12107. V = void 0 === T || T,
  12108. U = A.showDoorStart,
  12109. W = void 0 === U || U,
  12110. Z = A.showMapping,
  12111. B = void 0 !== Z && Z,
  12112. Q = A.format,
  12113. F = void 0 === Q ? 'image/png' : Q,
  12114. H = A.errreturn,
  12115. J = void 0 !== H && H
  12116. return n(void 0, void 0, void 0, function () {
  12117. var i, n, A, r, c, p, f, v, b, _, P, S, D, M, N, R, T, U, Z, Q, H
  12118. return g(this, function (g) {
  12119. switch (g.label) {
  12120. case 0:
  12121. return (
  12122. (O = o.roateDataY(
  12123. O.floors.find(function (t) {
  12124. return t.show
  12125. })
  12126. )),
  12127. (i = t.processing.lines[0] ? t.processing.lines[0].ele.width : 3),
  12128. (t.processing.render.layer.style.opacity = '0'),
  12129. (n = []),
  12130. (A = []),
  12131. C.CADElement.examples.get(t.processing.render).forEach(function (t) {
  12132. A.push(
  12133. new Promise(function (e) {
  12134. return t.nextTick(e)
  12135. })
  12136. )
  12137. }),
  12138. [4, Promise.all(A)]
  12139. )
  12140. case 1:
  12141. for (
  12142. g.sent(),
  12143. C.CADElement.examples.get(t.processing.render).forEach(function (t) {
  12144. ;(t.__state.direct = !0), t.changeSelect(!1)
  12145. }),
  12146. B &&
  12147. ((r = []),
  12148. s
  12149. .default(O)
  12150. .map(function (t) {
  12151. return t
  12152. })
  12153. .sort(function (t, e) {
  12154. return a.isFaceContain(t, e) ? 1 : -1
  12155. })
  12156. .forEach(function (e, i) {
  12157. var g = t.processing.taggings.find(function (t) {
  12158. return a.pointInside(e, t.ele) && !~r.indexOf(t)
  12159. }),
  12160. A = new I.default({
  12161. points: e,
  12162. label: g ? g.ele.title : '',
  12163. show: !0,
  12164. renderer: t.processing.render
  12165. })
  12166. ;(A.zIndex = -i - 3),
  12167. A.update(),
  12168. t.processing.render.push(A),
  12169. n.push(A),
  12170. r.push(g)
  12171. })),
  12172. (c = [
  12173. {
  12174. key: 'stroke',
  12175. attr: [
  12176. 'doors',
  12177. 'columns',
  12178. 'bayCases',
  12179. 'furnColumns',
  12180. 'furnFlues',
  12181. 'doubleDoors'
  12182. ],
  12183. oldVals: [],
  12184. newColor: w
  12185. },
  12186. { key: 'fill', attr: ['groundCases'], oldVals: [], newColor: w },
  12187. { key: 'seam', attr: ['cases'], oldVals: [], newColor: d },
  12188. { key: 'bgColor', attr: ['cases'], oldVals: [], newColor: d },
  12189. { key: 'color', attr: ['lines'], oldVals: [], newColor: d },
  12190. { key: 'icon', attr: ['doors'], oldVals: [], newColor: d },
  12191. {
  12192. key: 'fill',
  12193. attr: [
  12194. 'cases',
  12195. 'doors',
  12196. 'columns',
  12197. 'bayCases',
  12198. 'furnColumns',
  12199. 'furnFlues',
  12200. 'slideDoors',
  12201. 'doubleDoors'
  12202. ],
  12203. oldVals: [],
  12204. newColor: y
  12205. },
  12206. { key: 'foorColor', attr: ['slideDoors'], oldVals: [], newColor: w },
  12207. { key: 'clipColor', attr: ['slideDoors'], oldVals: [], newColor: y },
  12208. { key: 'color', attr: ['taggings'], oldVals: [], newColor: x }
  12209. ]).forEach(function (e) {
  12210. var i = e.key,
  12211. n = e.attr,
  12212. g = e.oldVals,
  12213. A = e.newColor
  12214. n.forEach(function (e) {
  12215. g.push(
  12216. t.processing[e].map(function (t) {
  12217. return t.ele[i]
  12218. })
  12219. ),
  12220. t.processing[e].forEach(function (t) {
  12221. var e = t.ele
  12222. e[i] = 'icon' === i ? ('#fff' !== A ? 'darkIcon' : 'defaultIcon') : A
  12223. })
  12224. })
  12225. }),
  12226. p = t.processing.direction,
  12227. f = p.show,
  12228. !p.show && G ? t.showDire() : G || t.hideDire(),
  12229. v = t.processing.taggings[0] && t.processing.taggings[0].ele.show,
  12230. t.processing.taggings.forEach(function (t) {
  12231. return (t.ele.show = V)
  12232. }),
  12233. b = t.processing.points[0].ele.fillColor,
  12234. _ = t.processing.lines[0].ele.init.color,
  12235. t.processing.points.forEach(function (t) {
  12236. t.ele.fillColor = 'rgba(0,0,0,0)'
  12237. }),
  12238. P = []
  12239. .concat(t.processing.doors)
  12240. .concat(t.processing.groundCases)
  12241. .concat(t.processing.cases)
  12242. .concat(t.processing.doubleDoors),
  12243. Z = 0;
  12244. Z < P.length;
  12245. Z++
  12246. )
  12247. (Q = P[Z].ele.points || P[Z].ele.linePoints) &&
  12248. Q.forEach(function (t) {
  12249. return (t.fillColor = 'rgba(0,0,0,0)')
  12250. })
  12251. t.setGaugeModel(1),
  12252. (S = p.icon),
  12253. t.setDireAttrs({ simple: !0, icon: '#fff' !== d ? 'darkIcon' : 'defaultIcon' }),
  12254. (D = t.processing.doors.map(function (t) {
  12255. return t.ele.showStart
  12256. })),
  12257. t.processing.doors.forEach(function (t) {
  12258. return (t.ele.showStart = W)
  12259. }),
  12260. (M = t.gauge && t.gauge.stroke),
  12261. t.gauge && t.gauge.minPX,
  12262. k &&
  12263. ((N = {
  12264. width: L / 2,
  12265. showTop: !1,
  12266. showRight: !1,
  12267. padding: 3.3 * L,
  12268. stroke: d
  12269. }),
  12270. j
  12271. ? ((N.minPX = 12 * L), console.log('---', N.minPX))
  12272. : (N.minPX = Math.max(u, h)),
  12273. t.setGaugeAttrs(N)),
  12274. l(t, L),
  12275. C.CADElement.examples.get(t.processing.render).forEach(function (t) {
  12276. return t.update()
  12277. }),
  12278. (g.label = 2)
  12279. case 2:
  12280. return (
  12281. g.trys.push([2, 4, , 5]),
  12282. [
  12283. 4,
  12284. e.call(this, {
  12285. width: u,
  12286. height: h,
  12287. bgColor: m,
  12288. data: O,
  12289. spadding: E,
  12290. showGauge: k,
  12291. lineWidth: L,
  12292. format: F
  12293. })
  12294. ]
  12295. )
  12296. case 3:
  12297. return (R = g.sent()), [3, 5]
  12298. case 4:
  12299. return (U = g.sent()), J ? [2, U] : ((T = U), [3, 5])
  12300. case 5:
  12301. for (
  12302. k &&
  12303. t.setGaugeAttrs({
  12304. minPX: 50,
  12305. width: 1,
  12306. showTop: !0,
  12307. showRight: !0,
  12308. padding: 10,
  12309. stroke: M
  12310. }),
  12311. t.setDireAttrs({ simple: !1, icon: S }),
  12312. Z = 0;
  12313. Z < P.length;
  12314. Z++
  12315. )
  12316. (Q = P[Z].ele.points || P[Z].ele.linePoints) &&
  12317. Q.map(function (t) {
  12318. return (t.fillColor = b)
  12319. })
  12320. if (
  12321. (l(t, i),
  12322. t.setGaugeModel(0),
  12323. t.processing.points.forEach(function (t) {
  12324. return (t.ele.fillColor = b)
  12325. }),
  12326. t.processing.lines.forEach(function (t) {
  12327. return (t.ele.color = _)
  12328. }),
  12329. (H = t.processing.render).remove.apply(H, n),
  12330. f ? t.showDire() : t.hideDire(),
  12331. v
  12332. ? t.processing.taggings.forEach(function (t) {
  12333. return (t.ele.show = !0)
  12334. })
  12335. : t.processing.taggings.forEach(function (t) {
  12336. return (t.ele.show = !1)
  12337. }),
  12338. t.processing.doors.forEach(function (t, e) {
  12339. t.ele.showStart = D[e]
  12340. }),
  12341. (t.processing.render.layer.style.opacity = '1'),
  12342. c.forEach(function (e) {
  12343. var i = e.key,
  12344. n = e.attr,
  12345. g = e.oldVals
  12346. n.forEach(function (e, n) {
  12347. t.processing[e].forEach(function (t, e) {
  12348. t.ele[i] = g[n][e]
  12349. })
  12350. })
  12351. }),
  12352. C.CADElement.examples.get(t.processing.render).forEach(function (t) {
  12353. ;(t.__state.direct = !1), t.update()
  12354. }),
  12355. T)
  12356. )
  12357. throw T
  12358. return [2, R]
  12359. }
  12360. })
  12361. })
  12362. }
  12363. }
  12364. },
  12365. function (t, e, i) {
  12366. var n,
  12367. g =
  12368. (this && this.__extends) ||
  12369. ((n = function (t, e) {
  12370. return (n =
  12371. Object.setPrototypeOf ||
  12372. ({ __proto__: [] } instanceof Array &&
  12373. function (t, e) {
  12374. t.__proto__ = e
  12375. }) ||
  12376. function (t, e) {
  12377. for (var i in e) e.hasOwnProperty(i) && (t[i] = e[i])
  12378. })(t, e)
  12379. }),
  12380. function (t, e) {
  12381. function i() {
  12382. this.constructor = t
  12383. }
  12384. n(t, e),
  12385. (t.prototype = null === e ? Object.create(e) : ((i.prototype = e.prototype), new i()))
  12386. })
  12387. Object.defineProperty(e, '__esModule', { value: !0 })
  12388. var A = i(2),
  12389. r = i(1),
  12390. o = i(61),
  12391. C = 0,
  12392. I = (function (t) {
  12393. function e(e) {
  12394. return t.call(this, e) || this
  12395. }
  12396. return (
  12397. g(e, t),
  12398. (e.prototype.grentNode = function () {
  12399. var t = 'pattern-' + ++C,
  12400. e = document.createElementNS(r.SVGURI, 'g')
  12401. return (
  12402. (this.path = document.createElementNS(r.SVGURI, 'path')),
  12403. (this.pattern = document.createElementNS(r.SVGURI, 'pattern')),
  12404. (this.maping = document.createElementNS(r.SVGURI, 'image')),
  12405. this.pattern.append(this.maping),
  12406. this.pattern.setAttribute('id', t),
  12407. this.pattern.setAttribute('patternUnits', 'userSpaceOnUse'),
  12408. this.path.setAttribute('fill', 'url(#' + t + ')'),
  12409. e.appendChild(this.path),
  12410. e.appendChild(this.pattern),
  12411. e
  12412. )
  12413. }),
  12414. (e.prototype.update = function () {
  12415. var t =
  12416. 'M' +
  12417. this.points
  12418. .map(function (t) {
  12419. return ' ' + t.x + ' ' + t.y + ' '
  12420. })
  12421. .join('L') +
  12422. 'z',
  12423. e = this.renderer.screenToRealPoint({ x: 30, y: 30 }),
  12424. i = this.renderer.screenToRealPoint({ x: 0, y: 0 }),
  12425. n = Math.abs(e.x - i.x),
  12426. g = Math.abs(e.y - i.y)
  12427. ;(this.icon && this.icon === this.firstIcon) ||
  12428. ((this.icon = o.getMaping(this.label)),
  12429. (this.maping.href.baseVal = this.icon),
  12430. (this.firstIcon = this.icon)),
  12431. this.maping.setAttribute('width', n.toString()),
  12432. this.maping.setAttribute('height', g.toString()),
  12433. this.pattern.setAttribute('width', n.toString()),
  12434. this.pattern.setAttribute('height', g.toString()),
  12435. this.path.setAttribute('d', t)
  12436. }),
  12437. e
  12438. )
  12439. })(A.CADElement)
  12440. e.default = I
  12441. },
  12442. function (t, e, i) {
  12443. Object.defineProperty(e, '__esModule', { value: !0 })
  12444. var n = i(9),
  12445. g = [
  12446. {
  12447. name: 'hall',
  12448. img: 'data:image/jpg;base64,/9j/4QAYRXhpZgAASUkqAAgAAAAAAAAAAAAAAP/sABFEdWNreQABAAQAAAA8AAD/7gAOQWRvYmUAZMAAAAAB/9sAhAAGBAQEBQQGBQUGCQYFBgkLCAYGCAsMCgoLCgoMEAwMDAwMDBAMDg8QDw4MExMUFBMTHBsbGxwfHx8fHx8fHx8fAQcHBw0MDRgQEBgaFREVGh8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx//wAARCAAgACADAREAAhEBAxEB/8QAWQABAQEBAAAAAAAAAAAAAAAAAgADCAEBAQEBAAAAAAAAAAAAAAAAAAECAxABAAICAgMAAAAAAAAAAAAAAQACESExQVFxAxEBAAAAAAAAAAAAAAAAAAAAAP/aAAwDAQACEQMRAD8A6L+ihirm3U4tsrci68+4VV5U349wNfmqYs4t3CDfSwBZFDMoqoKZgOm0kFfawBYBHEoqgq4gOmkkC+gpmpi3UDK3IO/PuFVeUNePcDX5iGbGbdwj/9k='
  12449. },
  12450. {
  12451. name: 'room',
  12452. img: 'data:image/jpg;base64,/9j/4QAYRXhpZgAASUkqAAgAAAAAAAAAAAAAAP/sABFEdWNreQABAAQAAAA8AAD/7gAOQWRvYmUAZMAAAAAB/9sAhAAGBAQEBQQGBQUGCQYFBgkLCAYGCAsMCgoLCgoMEAwMDAwMDBAMDg8QDw4MExMUFBMTHBsbGxwfHx8fHx8fHx8fAQcHBw0MDRgQEBgaFREVGh8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx//wAARCAAgACADAREAAhEBAxEB/8QAXAABAQEAAAAAAAAAAAAAAAAAAgAGAQEBAQAAAAAAAAAAAAAAAAAAAQYQAQABBAEEAwAAAAAAAAAAAAECABEhEgNRYYGRwSIUEQEBAAAAAAAAAAAAAAAAAAAAEf/aAAwDAQACEQMRAD8A1rHnJu3Lsq/UnIfRWTrTlyfo1vBx1ZL8VKRcf6NbzcdSSfFKQSPOzNeXVE+rOS+mrRTVZusnLbJbwXqBCamU72b1FSmrle9m9AYKMHWRkvkt5L1UUxGZtIy2wW8NqBAamF7Xb1FSGrhO129AYCsDaTkvgt5bVUTLnZu3Fqi/YhJfZVgXJ+jW0DHRinzUhVx/o1tMx0Ir80hRJc5M14tlT7MJD7asH//Z'
  12453. },
  12454. {
  12455. name: 'other',
  12456. img: 'data:image/jpg;base64,/9j/4QAYRXhpZgAASUkqAAgAAAAAAAAAAAAAAP/sABFEdWNreQABAAQAAAA8AAD/7gAOQWRvYmUAZMAAAAAB/9sAhAAGBAQEBQQGBQUGCQYFBgkLCAYGCAsMCgoLCgoMEAwMDAwMDBAMDg8QDw4MExMUFBMTHBsbGxwfHx8fHx8fHx8fAQcHBw0MDRgQEBgaFREVGh8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx//wAARCAAgACADAREAAhEBAxEB/8QAUwABAQEAAAAAAAAAAAAAAAAAAQAHAQEBAAAAAAAAAAAAAAAAAAAAAxAAAwADAQAAAAAAAAAAAAAAAAERIUGBIhEBAAAAAAAAAAAAAAAAAAAAAP/aAAwDAQACEQMRAD8A31P00yAK6BV0Bb9JICxamAbl4Bbl4A4tbAsWJAG7OgW7OgOLGgJL02wCOgUdAWvSaA//2Q=='
  12457. }
  12458. ],
  12459. A = [
  12460. { texts: n.i18n.t('modules.cad.hall_tests').split(','), mapping: 'hall' },
  12461. { texts: n.i18n.t('modules.cad.room_tests').split(','), mapping: 'room' },
  12462. { texts: n.i18n.t('modules.cad.other_tests').split(','), mapping: 'other' }
  12463. ]
  12464. ;(e.labelTexts = A.reduce(function (t, e) {
  12465. return t.concat(e.texts)
  12466. }, [])),
  12467. (e.getMaping = function (t) {
  12468. var e = A.find(function (e) {
  12469. return ~e.texts.indexOf(t)
  12470. })
  12471. return g.find(function (t) {
  12472. return t.name === (e ? e.mapping : 'other')
  12473. }).img
  12474. })
  12475. },
  12476. function (t, e, i) {
  12477. i.r(e),
  12478. i.d(e, 'default', function () {
  12479. return r
  12480. })
  12481. var n = i(6),
  12482. g = i.n(n),
  12483. A = i(0)
  12484. function r(t, e) {
  12485. t = (function (t, e) {
  12486. let i = t.wall,
  12487. n = t.vertex
  12488. for (let t = 0; t < n.length; t++) {
  12489. let e = n[t]
  12490. n.filter(
  12491. t =>
  12492. t !== e &&
  12493. ((t.x === e.x && t.y === e.y) || Object(A.lineDis)({ points: [t, e] }) < 0.1)
  12494. ).forEach(t => {
  12495. i.forEach(i => {
  12496. i.p1 === t.id && (i.p1 = e.id), i.p2 === t.id && (i.p2 = e.id)
  12497. }),
  12498. ~n.indexOf(t) && n.splice(n.indexOf(t), 1)
  12499. })
  12500. }
  12501. for (let e = 0; e < i.length; e++) {
  12502. let n = i[e]
  12503. n.p1 === n.p2 &&
  12504. (['case', 'door', 'slideDoor', 'column', 'groundCase', 'bayCase'].forEach(e => {
  12505. for (let i = 0; i < t[e] && t[e].length; i++) {
  12506. t[e][i].line === n.id && t[e].splice(i--, 1)
  12507. }
  12508. }),
  12509. i.splice(e--, 1))
  12510. }
  12511. for (let t = 0; t < i.length; t++) {
  12512. let e = i[t],
  12513. g = n.find(({ id: e }) => e === i[t].p1),
  12514. r = n.find(({ id: e }) => e === i[t].p2),
  12515. o = { points: [g, r] },
  12516. C = 0
  12517. for (C = t + 1; C < i.length; C++) {
  12518. let t = i[C]
  12519. if (t === e) continue
  12520. let I = n.find(({ id: t }) => t === i[C].p1),
  12521. s = n.find(({ id: t }) => t === i[C].p2)
  12522. if (g === I || g === s || r === I || r === s) continue
  12523. let a = { points: [I, s] },
  12524. l = Object(A.segmentsIntr)(o, a)
  12525. if (
  12526. Object(A.lineDis)({ points: [g, l] }) < 0.1 ||
  12527. Object(A.lineDis)({ points: [r, l] }) < 0.1 ||
  12528. Object(A.lineDis)({ points: [I, l] }) < 0.1 ||
  12529. Object(A.lineDis)({ points: [s, l] }) < 0.1
  12530. )
  12531. continue
  12532. if (!l) continue
  12533. let u = Math.max(...n.map(({ id: t }) => t)) + 1,
  12534. c = Math.max(...i.map(({ id: t }) => t))
  12535. n.push({ ...l, id: u }),
  12536. i.splice(i.indexOf(e), 1, { p1: g.id, p2: u, id: ++c }, { p1: r.id, p2: u, id: ++c }),
  12537. i.splice(i.indexOf(t), 1, { p1: I.id, p2: u, id: ++c }, { p1: s.id, p2: u, id: ++c })
  12538. break
  12539. }
  12540. C !== i.length && t--
  12541. }
  12542. return t
  12543. })(t)
  12544. let i = Date.now()
  12545. console.log('寮€濮嬭绠楁埧闂�')
  12546. let n = [],
  12547. r = [],
  12548. o = []
  12549. function C(t, e, i, g, A, o, I) {
  12550. for (let s = 0; s < t.length; ++s) {
  12551. if (A.indexOf(s) > -1 || o.indexOf(I) > -1) continue
  12552. let a = t[s],
  12553. l = a.p1.id,
  12554. u = a.p2.id
  12555. if (I == l || I == u) {
  12556. let c = JSON.parse(JSON.stringify(i)),
  12557. h = JSON.parse(JSON.stringify(g)),
  12558. p = JSON.parse(JSON.stringify(A)),
  12559. d = JSON.parse(JSON.stringify(o)),
  12560. f = I
  12561. h.push(a.id),
  12562. c.push(I),
  12563. p.push(s),
  12564. d.push(I),
  12565. f == l ? (f = u) : f == u && (f = l),
  12566. e == f ? (r.push(c), n.push(h)) : C(t, e, c, h, p, d, f)
  12567. }
  12568. }
  12569. }
  12570. function I(t, e, i, n) {
  12571. let g = []
  12572. for (let t = 0; t < n.length; ++t) {
  12573. let e = n[t]
  12574. g.push(e)
  12575. }
  12576. let A = !0
  12577. for (var r = 0; r < i.length; ++r) {
  12578. if (e.indexOf(t[r]) > -1) {
  12579. A = !1
  12580. continue
  12581. }
  12582. let i = t[r]
  12583. var C = i.p1,
  12584. I = i.p2,
  12585. a = { x: (C.x + I.x) / 2, y: (C.y + I.y) / 2 }
  12586. if (!(s(C, g) && s(I, g) && s(a, g))) return !1
  12587. }
  12588. if (A) {
  12589. let i = []
  12590. return (
  12591. i.push(e[0]),
  12592. i.push(e[e.length - 1]),
  12593. i.push(t[0]),
  12594. i.push(t[t.length - 1]),
  12595. o.push(i),
  12596. !1
  12597. )
  12598. }
  12599. return !0
  12600. }
  12601. function s(t, e) {
  12602. for (var i = 0; i < e.length; ++i) {
  12603. if (a(t, e[i])) return !0
  12604. }
  12605. return !!(function (t, e) {
  12606. for (var i = t.x, n = t.y, g = !1, A = 0, r = e.length - 1; A < e.length; r = A++) {
  12607. var o = e[A],
  12608. C = e[r],
  12609. I = o.x,
  12610. s = o.y,
  12611. a = C.x,
  12612. l = C.y
  12613. s > n != l > n && i < ((a - I) * (n - s)) / (l - s) + I && (g = !g)
  12614. }
  12615. return g
  12616. })(t, e)
  12617. }
  12618. function a(t, e) {
  12619. return t.x == e.x && t.y == e.y
  12620. }
  12621. let l = t.wall.map(e => ({
  12622. p1: t.vertex.find(({ id: t }) => e.p1 === t),
  12623. p2: t.vertex.find(({ id: t }) => e.p2 === t),
  12624. id: e.id
  12625. }))
  12626. function u(t, e, i) {
  12627. return (t.x * e.y + e.x * i.y + i.x * t.y - e.x * t.y - i.x * e.y - t.x * i.y) / 2
  12628. }
  12629. !(function (t) {
  12630. for (let e = 0; e < t.length; ++e) {
  12631. let i = [],
  12632. n = [],
  12633. g = [],
  12634. A = []
  12635. for (let t = 0; t <= e; ++t) i.push(t)
  12636. let r = t[e],
  12637. o = r.p1.id,
  12638. I = r.p2.id
  12639. g.push(I), A.push(r.id)
  12640. let s = null
  12641. for (let r = e + 1; r < t.length; ++r) {
  12642. let e = t[r]
  12643. if (o == e.p1.id || o == e.p2.id) {
  12644. let a = JSON.parse(JSON.stringify(g)),
  12645. l = JSON.parse(JSON.stringify(A)),
  12646. u = JSON.parse(JSON.stringify(i)),
  12647. c = JSON.parse(JSON.stringify(n)),
  12648. h = o
  12649. a.push(o),
  12650. l.push(e.id),
  12651. u.push(r),
  12652. (s = h == e.p1.id ? e.p2.id : e.p1.id),
  12653. c.push(h),
  12654. C(t, I, a, l, u, c, s)
  12655. }
  12656. }
  12657. }
  12658. })(l),
  12659. (r = r.map(e => e.map(e => t.vertex.find(({ id: t }) => e === t)))),
  12660. (n = n.map(t => t.map(t => l.find(({ id: e }) => t === e)))),
  12661. (function () {
  12662. for (var t = 0; t < r.length; ++t)
  12663. for (var e = t + 1; e < r.length; ++e)
  12664. if (I(n[t], n[e], r[t], r[e])) r.splice(e, 1), n.splice(e, 1), --e
  12665. else if (I(n[e], n[t], r[e], r[t])) {
  12666. r.splice(t, 1), n.splice(t, 1), --t, --e
  12667. break
  12668. }
  12669. })(),
  12670. (function () {
  12671. let t = []
  12672. for (let e = 0; e < o.length; ++e) {
  12673. let i = o[e],
  12674. g = []
  12675. ;(g[0] = null), (g[1] = null)
  12676. for (
  12677. let t = 0;
  12678. t < n.length &&
  12679. (i[0] == n[t][0] && i[1] == n[t][n[t].length - 1]
  12680. ? (g[0] = t)
  12681. : i[2] == n[t][0] && i[3] == n[t][n[t].length - 1] && (g[1] = t),
  12682. null == g[0] || null == g[1]);
  12683. ++t
  12684. );
  12685. null != g[0] && null != g[1] && t.push(g)
  12686. }
  12687. o = t
  12688. })(),
  12689. (t.room = n.map((t, e) => ({ wall: t.map(({ id: t }) => t), ground: r[e] })))
  12690. let c = Date.now()
  12691. return (
  12692. console.warn('璁$畻瀹屾瘯锛岃€楁椂' + (c - i)),
  12693. e &&
  12694. (window.testCenterPoints && e.processing.render.remove(...window.testCenterPoints),
  12695. (window.testCenterPoints = r.map(t => {
  12696. let i = (function (t) {
  12697. for (var e = 0, i = 0, n = 0, g = t[1], A = 2; A < t.length; A++) {
  12698. var r = t[A],
  12699. o = u(t[0], g, r)
  12700. ;(n += o),
  12701. (e += (t[0].x + g.x + r.x) * o),
  12702. (i += (t[0].y + g.y + r.y) * o),
  12703. (g = r)
  12704. }
  12705. return { x: e / n / 3, y: i / n / 3 }
  12706. })(t.map(t => ({ ...t, y: -t.y }))),
  12707. n =
  12708. 'rgba(' +
  12709. Math.floor(255 * Math.random()) +
  12710. ',' +
  12711. Math.floor(255 * Math.random()) +
  12712. ',' +
  12713. Math.floor(255 * Math.random()) +
  12714. ',0.8)',
  12715. A = new g.a({
  12716. fillColor: n,
  12717. storkeColor: n,
  12718. x: i.x,
  12719. y: i.y,
  12720. renderer: e.processing.render
  12721. })
  12722. return e.processing.render.push(A), A
  12723. })),
  12724. window.testCenterPoints.forEach((i, g) => {
  12725. t.room[g].ground.map(t => e.processing.points.find(({ id: e }) => e === t.id).ele.real),
  12726. n[g].map(t => e.processing.lines.find(({ id: e }) => e === t.id).ele.real),
  12727. i.real,
  12728. r[g],
  12729. n[g]
  12730. console.log(r[g], r[g])
  12731. })),
  12732. r
  12733. )
  12734. }
  12735. },
  12736. function (t, e, i) {
  12737. var n =
  12738. (this && this.__awaiter) ||
  12739. function (t, e, i, n) {
  12740. return new (i || (i = Promise))(function (g, A) {
  12741. function r(t) {
  12742. try {
  12743. C(n.next(t))
  12744. } catch (t) {
  12745. A(t)
  12746. }
  12747. }
  12748. function o(t) {
  12749. try {
  12750. C(n.throw(t))
  12751. } catch (t) {
  12752. A(t)
  12753. }
  12754. }
  12755. function C(t) {
  12756. var e
  12757. t.done
  12758. ? g(t.value)
  12759. : ((e = t.value),
  12760. e instanceof i
  12761. ? e
  12762. : new i(function (t) {
  12763. t(e)
  12764. })).then(r, o)
  12765. }
  12766. C((n = n.apply(t, e || [])).next())
  12767. })
  12768. },
  12769. g =
  12770. (this && this.__generator) ||
  12771. function (t, e) {
  12772. var i,
  12773. n,
  12774. g,
  12775. A,
  12776. r = {
  12777. label: 0,
  12778. sent: function () {
  12779. if (1 & g[0]) throw g[1]
  12780. return g[1]
  12781. },
  12782. trys: [],
  12783. ops: []
  12784. }
  12785. return (
  12786. (A = { next: o(0), throw: o(1), return: o(2) }),
  12787. 'function' == typeof Symbol &&
  12788. (A[Symbol.iterator] = function () {
  12789. return this
  12790. }),
  12791. A
  12792. )
  12793. function o(A) {
  12794. return function (o) {
  12795. return (function (A) {
  12796. if (i) throw new TypeError('Generator is already executing.')
  12797. for (; r; )
  12798. try {
  12799. if (
  12800. ((i = 1),
  12801. n &&
  12802. (g =
  12803. 2 & A[0]
  12804. ? n.return
  12805. : A[0]
  12806. ? n.throw || ((g = n.return) && g.call(n), 0)
  12807. : n.next) &&
  12808. !(g = g.call(n, A[1])).done)
  12809. )
  12810. return g
  12811. switch (((n = 0), g && (A = [2 & A[0], g.value]), A[0])) {
  12812. case 0:
  12813. case 1:
  12814. g = A
  12815. break
  12816. case 4:
  12817. return r.label++, { value: A[1], done: !1 }
  12818. case 5:
  12819. r.label++, (n = A[1]), (A = [0])
  12820. continue
  12821. case 7:
  12822. ;(A = r.ops.pop()), r.trys.pop()
  12823. continue
  12824. default:
  12825. if (
  12826. !(g = (g = r.trys).length > 0 && g[g.length - 1]) &&
  12827. (6 === A[0] || 2 === A[0])
  12828. ) {
  12829. r = 0
  12830. continue
  12831. }
  12832. if (3 === A[0] && (!g || (A[1] > g[0] && A[1] < g[3]))) {
  12833. r.label = A[1]
  12834. break
  12835. }
  12836. if (6 === A[0] && r.label < g[1]) {
  12837. ;(r.label = g[1]), (g = A)
  12838. break
  12839. }
  12840. if (g && r.label < g[2]) {
  12841. ;(r.label = g[2]), r.ops.push(A)
  12842. break
  12843. }
  12844. g[2] && r.ops.pop(), r.trys.pop()
  12845. continue
  12846. }
  12847. A = e.call(t, r)
  12848. } catch (t) {
  12849. ;(A = [6, t]), (n = 0)
  12850. } finally {
  12851. i = g = 0
  12852. }
  12853. if (5 & A[0]) throw A[1]
  12854. return { value: A[0] ? A[1] : void 0, done: !0 }
  12855. })([A, o])
  12856. }
  12857. }
  12858. },
  12859. A =
  12860. (this && this.__spreadArrays) ||
  12861. function () {
  12862. for (var t = 0, e = 0, i = arguments.length; e < i; e++) t += arguments[e].length
  12863. var n = Array(t),
  12864. g = 0
  12865. for (e = 0; e < i; e++)
  12866. for (var A = arguments[e], r = 0, o = A.length; r < o; r++, g++) n[g] = A[r]
  12867. return n
  12868. }
  12869. Object.defineProperty(e, '__esModule', { value: !0 })
  12870. e.default = function (t, e) {
  12871. return n(void 0, void 0, void 0, function () {
  12872. var i, n, r, o, C, I, s, a, l, u
  12873. return g(this, function (g) {
  12874. switch (g.label) {
  12875. case 0:
  12876. return (
  12877. (i = 3),
  12878. (n = t.processing.render.layer),
  12879. (r = t.processing.render.g),
  12880. (o =
  12881. (t.processing.render.layer.offsetWidth ||
  12882. parseInt(getComputedStyle(t.processing.render.layer).width)) * i),
  12883. (C =
  12884. (t.processing.render.layer.offsetHeight ||
  12885. parseInt(getComputedStyle(t.processing.render.layer).height)) * i),
  12886. (n.style.visibility = 'hidden'),
  12887. t.processing.doors.forEach(function (t) {
  12888. t.ele.showStart = !1
  12889. }),
  12890. (I = A(
  12891. t.processing.points,
  12892. t.processing.lines,
  12893. t.processing.doors,
  12894. t.processing.columns,
  12895. t.processing.cases,
  12896. t.processing.bayCases,
  12897. t.processing.slideDoors,
  12898. t.processing.groundCases,
  12899. t.processing.furnFlues,
  12900. t.processing.furnColumns
  12901. )).length
  12902. ? [
  12903. 4,
  12904. Promise.all(
  12905. I.map(function (t) {
  12906. var e = t.ele
  12907. return new Promise(function (t) {
  12908. return e.nextTick(t)
  12909. })
  12910. })
  12911. )
  12912. ]
  12913. : [2]
  12914. )
  12915. case 1:
  12916. return g.sent(), (s = n.querySelector('.sign')), [4, t.hideSign()]
  12917. case 2:
  12918. g.sent(), (g.label = 3)
  12919. case 3:
  12920. return (
  12921. g.trys.push([3, 5, , 6]),
  12922. [
  12923. 4,
  12924. t.screenshot({
  12925. width: o,
  12926. height: C,
  12927. bgColor: 'rgba(0,0,0,0)',
  12928. padding: t.padding * i,
  12929. showGauge: !1,
  12930. lineWidth: 2,
  12931. showDire: !1,
  12932. showTags: !1,
  12933. showDoorStart: !1,
  12934. errreturn: !0
  12935. })
  12936. ]
  12937. )
  12938. case 4:
  12939. for (
  12940. a = g.sent().file,
  12941. n.style.backgroundImage = 'url(' + URL.createObjectURL(a) + ')',
  12942. l = 0;
  12943. l < r.children.length;
  12944. l++
  12945. )
  12946. r.children[l] !== s && r.removeChild(r.children[l--])
  12947. return [3, 6]
  12948. case 5:
  12949. return (
  12950. (u = g.sent()),
  12951. console.error(u),
  12952. (t.padding = t.padding * i),
  12953. (t.processing.render.layer.style.transformOrigin = 'left top'),
  12954. (t.processing.render.layer.style.transform = 'scale(' + 1 / i + ')'),
  12955. t.setDefaultSignStyle({ r: 5 * i }),
  12956. t.adapt(t.processing.data, o, C),
  12957. [3, 6]
  12958. )
  12959. case 6:
  12960. return (
  12961. (s.style.display = 'block'), (n.style.visibility = 'visible'), [4, t.showSign()]
  12962. )
  12963. case 7:
  12964. return g.sent(), e && e(), [2]
  12965. }
  12966. })
  12967. })
  12968. }
  12969. }
  12970. ])